/*! jQuery Migrate v3.3.2 | (c) OpenJS Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],i=1;i<=3;i++){if(+o[i]<+n[i])return 1;if(+n[i]<+o[i])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.3.2",n.console&&n.console.log&&(s&&e("3.0.0")||n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var r={};function u(e){var t=n.console;s.migrateDeduplicateWarnings&&r[e]||(r[e]=!0,s.migrateWarnings.push(e),t&&t.warn&&!s.migrateMute&&(t.warn("JQMIGRATE: "+e),s.migrateTrace&&t.trace&&t.trace()))}function t(e,t,r,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n),r},set:function(e){u(n),r=e}})}function o(e,t,r,n){e[t]=function(){return u(n),r.apply(this,arguments)}}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){r={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("jQuery is not compatible with Quirks Mode");var i,a,c,d={},l=s.fn.init,p=s.find,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,y=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(i in s.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(u("jQuery( '#' ) is not a valid selector"),t[0]=[]),l.apply(this,t)},s.fn.init.prototype=s.fn,s.find=function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&f.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(y,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("Attribute selector with '#' was not fixed: "+r[0])}}return p.apply(this,r)},p)Object.prototype.hasOwnProperty.call(p,i)&&(s.find[i]=p[i]);o(s.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property"),o(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse"),o(s,"holdReady",s.holdReady,"jQuery.holdReady is deprecated"),o(s,"unique",s.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),t(s.expr,"filters",s.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),t(s.expr,":",s.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&o(s,"trim",function(e){return null==e?"":(e+"").replace(m,"")},"jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(o(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"jQuery.nodeName is deprecated"),o(s,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(o(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()}),o(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[Object.prototype.toString.call(e)]||"object":typeof e},"jQuery.type is deprecated"),o(s,"isFunction",function(e){return"function"==typeof e},"jQuery.isFunction() is deprecated"),o(s,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated")),s.ajax&&(a=s.ajax,c=/(=)\?(?=&|$)|\?\?/,s.ajax=function(){var e=a.apply(this,arguments);return e.promise&&(o(e,"success",e.done,"jQXHR.success is deprecated and removed"),o(e,"error",e.fail,"jQXHR.error is deprecated and removed"),o(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e},e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(c.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&c.test(e.data))&&u("JSON-to-JSONP auto-promotion is deprecated")}));var g=s.fn.removeAttr,h=s.fn.toggleClass,v=/\S+/g;function j(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}s.fn.removeAttr=function(e){var r=this;return s.each(e.match(v),function(e,t){s.expr.match.bool.test(t)&&(u("jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),g.apply(this,arguments)};var Q,b=!(s.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?h.apply(this,arguments):(u("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))}),w=/^[a-z]/,x=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return b=!0,e=r.apply(this,arguments),b=!1,e})}),s.swap=function(e,t,r,n){var o,i,a={};for(i in b||u("jQuery.swap() is undocumented and deprecated"),t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=r.apply(e,n||[]),t)e.style[i]=a[i];return o},e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("JQMIGRATE: jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),s.cssNumber||(s.cssNumber={}),Q=s.fn.css,s.fn.css=function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=j(e),n=r,w.test(n)&&x.test(n[0].toUpperCase()+n.slice(1))||s.cssNumber[r]||u('Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))};var A,k,S,M,N=s.data;s.data=function(e,t,r){var n,o,i;if(t&&"object"==typeof t&&2===arguments.length){for(i in n=s.hasData(e)&&N.call(this,e),o={},t)i!==j(i)?(u("jQuery.data() always sets/gets camelCased names: "+i),n[i]=t[i]):o[i]=t[i];return N.call(this,e,o),t}return t&&"string"==typeof t&&t!==j(t)&&(n=s.hasData(e)&&N.call(this,e))&&t in n?(u("jQuery.data() always sets/gets camelCased names: "+t),2");t!==e&&T(e)!==T(t)&&u("HTML tags must be properly nested and closed: "+e)}var O=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,q=s.htmlPrefilter;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.htmlPrefilter=function(e){return P(e),e.replace(O,"<$1>")}},s.htmlPrefilter=function(e){return P(e),q(e)};var D,_=s.fn.offset;s.fn.offset=function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?_.apply(this,arguments):(u("jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},s.ajax&&(D=s.param,s.param=function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)});var E,F,J=s.fn.andSelf||s.fn.addBack;return s.fn.andSelf=function(){return u("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),J.apply(this,arguments)},s.Deferred&&(E=s.Deferred,F=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],s.Deferred=function(e){var i=E(),a=i.promise();return i.pipe=a.pipe=function(){var o=arguments;return u("deferred.pipe() is deprecated"),s.Deferred(function(n){s.each(F,function(e,t){var r="function"==typeof o[e]&&o[e];i[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===a?n.promise():this,r?[e]:arguments)})}),o=null}).promise()},e&&e.call(i,i),i},s.Deferred.exceptionHook=E.exceptionHook),s}); ; /*! * jQuery blockUI plugin * Version 2.70.0-2014.11.23 * Requires jQuery v1.7 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2013 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Thanks to Amir-Hossein Sobhi for some excellent contributions! */ !function(){"use strict";function e(e){function t(t,n){var s,h,k=t==window,y=n&&n.message!==undefined?n.message:undefined;if(!(n=e.extend({},e.blockUI.defaults,n||{})).ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=y===undefined?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&"string"!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,g={};e(t).data("blockUI.history",g),g.el=m,g.parent=m.parentNode,g.display=m.style.display,g.position=m.style.position,g.parent&&g.parent.removeChild(m)}e(t).data("blockUI.onUnblock",n.onUnblock);var v,I,w,U,x=n.baseZ;v=e(r||n.forceIframe?'':''),I=e(n.theme?'':''),n.theme&&k?(U='"):n.theme?(U='"):U=k?'':'',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&v.css("opacity",0);var C=[v,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=a(t,"borderTopWidth"),T=a(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(n.css&&n.css.top?parseInt(n.css.top,10):0)+') + "px"';o.setExpression("top",i)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&v.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):d(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,d=e(t),a=d.data("blockUI.history"),c=d.data("blockUI.timeout");c&&(clearTimeout(c),d.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=d.data("blockUI.onUnblock"),d.removeData("blockUI.onUnblock"));var r;r=l?e(document.body).children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0==--s&&n(r,a,o,t)})):n(r,a,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(d,n,s):e(document).unbind(d,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,d=e(t.target);return d.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),d.parents("div."+s.blockMsgClass).length>0||0===d.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[!0===e?b.length-1:0];t&&t.focus()}}function d(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-a(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-a(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function a(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('
');t&&s.append("

"+t+"

"),o&&s.append("

"+o+"

"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();; jQuery(function(o){if("undefined"==typeof wc_add_to_cart_params)return!1;function t(){this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),o(document.body).on("click",".add_to_cart_button",{addToCartHandler:this},this.onAddToCart).on("click",".remove_from_cart_button",{addToCartHandler:this},this.onRemoveFromCart).on("added_to_cart",this.updateButton).on("added_to_cart removed_from_cart",{addToCartHandler:this},this.updateFragments)}t.prototype.addRequest=function(t){this.requests.push(t),1===this.requests.length&&this.run()},t.prototype.run=function(){var t=this,a=t.requests[0].complete;t.requests[0].complete=function(){"function"==typeof a&&a(),t.requests.shift(),0'+wc_add_to_cart_params.i18n_view_cart+""),o(document.body).trigger("wc_cart_button_updated",[e]))},t.prototype.updateFragments=function(t,a){a&&(o.each(a,function(t){o(t).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),o.each(a,function(t,a){o(t).replaceWith(a),o(t).stop(!0).css("opacity","1").unblock()}),o(document.body).trigger("wc_fragments_loaded"))},new t});; (function ( $ ) { 'use strict'; $( document ).ready( function () { $( 'body' ).on( 'adding_to_cart', function ( event, $button, data ) { if ( $button && $button.hasClass( 'vc_gitem-link' ) ) { $button .addClass( 'vc-gitem-add-to-cart-loading-btn' ) .parents( '.vc_grid-item-mini' ) .addClass( 'vc-woocommerce-add-to-cart-loading' ) .append( $( '
' ) ); } } ).on( 'added_to_cart', function ( event, fragments, cart_hash, $button ) { if ( 'undefined' === typeof ($button) ) { $button = $( '.vc-gitem-add-to-cart-loading-btn' ); } if ( $button && $button.hasClass( 'vc_gitem-link' ) ) { $button .removeClass( 'vc-gitem-add-to-cart-loading-btn' ) .parents( '.vc_grid-item-mini' ) .removeClass( 'vc-woocommerce-add-to-cart-loading' ) .find( '.vc_wc-load-add-to-loader-wrapper' ).remove(); } } ); } ); })( window.jQuery ); ; var $ = jQuery.noConflict(), ST_WC_FRONT_SWATCH = ST_WC_FRONT_SWATCH || {}; (function($){ "use strict"; ST_WC_FRONT_SWATCH.onSelect = function() { $("body").on("click", "ul.st-swatch-preview span.st-custom-attribute", function(){ if ( $(this).parents().is( '.swiper-entry, .products-loop, .quick-view-popup' ) ) return; var $attribute = $(this).closest("[data-attribute]").data("attribute"), $select = $("select#"+$attribute ), $name = $(this).data("name"), $value = $(this).data("value"), $li = $(this).parent("li"); // Check if this combination is available // var $swatches = $(this).parents('.variations_form.cart'); // var $variations = $.parseJSON( $swatches.attr("data-product_variations") ); // ST_WC_FRONT_SWATCH.productLoop.updateAttributes( $swatches, $variations ); if ( ! $select.find( 'option[value="' + $value + '"]' ).length ) { $select.val(" ").trigger("change"); $li.siblings().removeClass("selected"); window.alert( wc_add_to_cart_variation_params.i18n_no_matching_variations_text ); return; } if( $li.hasClass("selected") ) { $li.removeClass("selected"); $select.val(" "); if( sten_wc_params.is_singular_product == 1 && sten_wc_params.is_customize_preview ) { $li.css({ 'border-color':$li.data("border-color") }); } } else { $li.addClass('selected').siblings().removeClass("selected"); $select.val( $value ); if( sten_wc_params.is_singular_product == 1 && sten_wc_params.is_customize_preview ) { $li.removeAttr("style"); $li.siblings().css({ 'border-color':$li.data("border-color") }); $li.css({ 'border-color':$li.data("active-border-color") }); } } $select.trigger("change"); }); }, ST_WC_FRONT_SWATCH.onSelectUpdateAttribute = function() { $("body.single-product form.variations_form").on('woocommerce_update_variation_values', function(){ $( this ).find("ul.st-swatch-preview").each(function(){ var $this = this, $attribute = $($this).data("attribute"), $select = document.getElementById( $attribute ), // $("select#"+$attribute ), - it has issues in other languages ( jquery selector doesn't accepts special chars ) $options = $($select).find("option"), $eq = $($select).find("option").eq(1), $li = $($this).find("li"), $current = $($select).find("option:selected"), $selects = [], $selected = ''; $options.each(function(){ if ($(this).val() !== '') { $selects.push( $(this).val() ); $selected = $current ? $current.val() : $eq.val(); } }); $li.each(function(){ var $this = this, $value = $($this).find("span.st-custom-attribute").attr("data-value"); $($this).removeClass("selected sten-li-disabled").addClass("sten-li-disabled"); if( $selects.indexOf( $value.toString() ) !== -1 ) { $($this).removeClass("sten-li-disabled"); if( $value.toString() == $selected ) { $($this).addClass("selected"); } } }); }); }); }, ST_WC_FRONT_SWATCH.onClear = function(){ $("body.single-product").on("click", "a.reset_variations", function(){ var $selected = $(this).closest('form.variations_form').find("ul.st-swatch-preview li.selected"); $selected.removeClass( 'selected' ); if( sten_wc_params.is_singular_product == 1 && sten_wc_params.is_customize_preview ) { $selected.css({ 'border-color':$selected.data("border-color") }); } }); }, ST_WC_FRONT_SWATCH.productLoop = { init : function() { ST_WC_FRONT_SWATCH.productLoop.itemSwatches(); ST_WC_FRONT_SWATCH.productLoop.addToCart(); }, itemSwatches: function() { $("div.st-swatch-in-loop").each(function(){ var $swatches = $(this), $terms = $swatches.find("span.st-custom-attribute:not(.sten-disabled)"), $reset_btn = $swatches.find("a.sten-reset-loop-variation, .et-delete"), $product = $swatches.closest(".product-type-variable"), $variations = $.parseJSON( $swatches.attr("data-product_variations") ), $uls = $swatches.find("ul.has-default-attribute"); // force update for out of stock products ST_WC_FRONT_SWATCH.productLoop.updateAttributes( $swatches, $variations ); // !force update for out of stock products // enable variation default attribute by default in product loop $uls.each( function(){ var $ul = $(this), $ul_reset_btn = $ul.parent("div.st-swatch-in-loop").find("a.sten-reset-loop-variation"); $ul_reset_btn.show(); var $attributes = ST_WC_FRONT_SWATCH.productLoop.getChosenAttributes( $swatches ), $current_attributes = $attributes.data; if( $attributes.count === $attributes.chosenCount ) { ST_WC_FRONT_SWATCH.productLoop.updateAttributes( $swatches, $variations ); var $matching_variations = ST_WC_FRONT_SWATCH.productLoop.findMatchingVariations( $variations, $current_attributes ), $variation = $matching_variations.shift(); if( $variation ) { ST_WC_FRONT_SWATCH.productLoop.foundVariation( $product, $swatches, $variation ); } else { $ul_reset_btn.trigger( 'click' ); } } else { ST_WC_FRONT_SWATCH.productLoop.updateAttributes( $swatches, $variations ); } }); // swatch click $terms.on( "click", function(){ var $term = $(this), $li = $term.parent("li"); if( $term.hasClass('sten-disabled') ) { return false; } $product.find("span.st-custom-attribute").removeClass("sten-disabled sten-enabled"); $product.find("span.st-custom-attribute").parent("li").removeClass("sten-li-disabled sten-li-enabled"); if( $li.hasClass("selected") && sten_wc_params.is_customize_preview ) { $li.css({ 'border-color':$li.data("border-color") }); } if( !$li.hasClass("selected") ) { $li.addClass("selected").siblings().removeClass("selected"); if( sten_wc_params.is_customize_preview ) { $li.removeAttr("style"); $li.siblings().css({ 'border-color':$li.data("border-color") }); $li.css({ 'border-color':$li.data("active-border-color") }); } $reset_btn.show(); } var $attributes = ST_WC_FRONT_SWATCH.productLoop.getChosenAttributes( $swatches ), $current_attributes = $attributes.data; if( $attributes.count === $attributes.chosenCount ) { ST_WC_FRONT_SWATCH.productLoop.updateAttributes( $swatches, $variations ); var $matching_variations = ST_WC_FRONT_SWATCH.productLoop.findMatchingVariations( $variations, $current_attributes ), $variation = $matching_variations.shift(); if( $variation ) { ST_WC_FRONT_SWATCH.productLoop.foundVariation( $product, $swatches, $variation ); } else { $reset_btn.trigger( 'click' ); } } else { ST_WC_FRONT_SWATCH.productLoop.updateAttributes( $swatches, $variations ); } }); // reset click $reset_btn.on( "click", function(){ $swatches.removeAttr( 'data-variation_id' ); if( sten_wc_params.is_customize_preview ) { var $sel = $swatches.find("ul.st-swatch-preview li.selected"); $sel.css({ 'border-color':$sel.data("border-color") }); } $swatches.find("ul.st-swatch-preview li").removeClass("selected sten-li-disabled sten-li-enabled"); $swatches.find("ul.st-swatch-preview span").removeClass("sten-disabled sten-enabled"); $product.find("a.add_to_cart_button") .removeClass("st-swatch-btn-ready st-swatch-btn-readmore st-swatch-btn-text-changed added loading") .text( sten_wc_params.select_options_btn_text ); $product.find("a.added_to_cart").remove(); var $price = $product.find("span.price").not( '.price-cloned' ), $price_cloned = $product.find( '.price-cloned' ); if ( $price_cloned.length ) { $price.html( $price_cloned.html() ); $price_cloned.remove(); } // force update for out of stock products $variations = $.parseJSON( $swatches.attr("data-product_variations") ); ST_WC_FRONT_SWATCH.productLoop.updateAttributes( $swatches, $variations ); // !force update for out of stock products ST_WC_FRONT_SWATCH.productLoop.variationsImageUpdate( $product, false ); $(this).hide(); }); }); }, getChosenAttributes: function ( $swatches ) { var $data = {}, $count = 0, $chosen = 0, $swatch = $swatches.find("ul.st-swatch-preview"); $swatch.each(function(){ var $attr_name = 'attribute_' + $(this).data("attribute"), $value = $(this).find("li.selected span.st-custom-attribute").attr("data-value") || ''; $value = $value.toString(); if ( $value.length > 0 ) { $chosen++; } $count++; $data[ $attr_name ] = $value; }); return { 'count': $count, 'chosenCount': $chosen, 'data': $data, }; }, updateAttributes: function( $swatches, $variations ) { var $attributes = ST_WC_FRONT_SWATCH.productLoop.getChosenAttributes( $swatches ), $current_attributes = $attributes.data, $available_options_count = 0, $swatch = $swatches.find( 'ul.st-swatch-preview'); $swatch.each(function( $idx, $ele ){ var $current_attribute_swatch = $( $ele ), $current_attribute_name = "attribute_" + $current_attribute_swatch.data("attribute"), $selected_attr_val = $current_attribute_swatch.find("li.selected span.st-custom-attribute").data("value"), $selected_attr_val_valid = true, $check_attributes = $.extend( true, {}, $current_attributes ); $check_attributes[ $current_attribute_name ] = ''; var $matching_variations = ST_WC_FRONT_SWATCH.productLoop.findMatchingVariations( $variations, $check_attributes ); //console.log($matching_variations); // Loop through matching variations for( var $num in $matching_variations ) { if ( typeof $matching_variations[ $num ] !== 'undefined' ) { var $variation_attributes = $matching_variations[ $num ].attributes; for( var $attribute_name in $variation_attributes ) { if( $variation_attributes.hasOwnProperty( $attribute_name ) ) { var $attribute_val = $variation_attributes[ $attribute_name ], $variation_active = ''; if ( $attribute_name === $current_attribute_name ) { if ( $matching_variations[ $num ].variation_is_active ) { $variation_active = 'sten-enabled'; } // ! Add et-out-of-stock class // if ( ! $matching_variations[ $num ].is_in_stock ) { // $swatch.find( 'span.st-custom-attribute[data-value="' + $attribute_val + '"]' ).parent( "li" ).addClass( "et-out-of-stock" ); // } else { // $swatch.find( 'span.st-custom-attribute[data-value="' + $attribute_val + '"]' ).parent( "li" ).removeClass( "et-out-of-stock" ); // } if( $attribute_val ) { $current_attribute_swatch.find('span.st-custom-attribute[data-value="' + $attribute_val + '"]').addClass("sten-enabled"); } else { // apply for all swatches $current_attribute_swatch.find("span.st-custom-attribute").addClass("sten-enabled"); } } } } } } $available_options_count = $current_attribute_swatch.find('span.st-custom-attribute.sten-enabled' ).length; if ( $selected_attr_val && ( $available_options_count === 0 || $current_attribute_swatch .find('span.st-custom-attribute.sten-enabled[data-value="' + ST_WC_FRONT_SWATCH.productLoop.addSlashes( $selected_attr_val ) + '"]' ) .length === 0 ) ) { $selected_attr_val_valid = false; } // Disable terms if not available $current_attribute_swatch.find('span.st-custom-attribute:not(.sten-enabled)' ).addClass("sten-disabled"); $current_attribute_swatch.find('span.st-custom-attribute:not(.sten-enabled)' ).parent("li").addClass("sten-li-disabled"); // Choose selected value. if ( $selected_attr_val ) { // If the previously selected value is no longer available, // fall back to the placeholder (it's going to be there). if ( !$selected_attr_val_valid ) { $current_attribute_swatch.find("li.selected").removeClass('selected'); } } else { $current_attribute_swatch.find("li.selected").removeClass('selected'); } }); }, findMatchingVariations: function( $variations, $current_attributes ) { var $matching = []; for( var $i = 0; $i < $variations.length; $i++ ){ var $variation = $variations[$i]; if( ST_WC_FRONT_SWATCH.productLoop.isMatch( $variation.attributes, $current_attributes ) ) { $matching.push( $variation ); } } return $matching; }, isMatch: function( $variation_attributes, $current_attributes ) { var $match = true; for( var $attr_name in $variation_attributes ) { if( $variation_attributes.hasOwnProperty( $attr_name ) ) { var $val1 = $variation_attributes[ $attr_name ], $val2 = $current_attributes[ $attr_name ]; if( ( typeof $val1 !== "undefined" ) && ( typeof $val2 !== "undefined" ) && ( $val1.length !== 0 ) && ( $val2.length !== 0 ) && ( $val1 !== $val2 ) ) { $match = false; } } } return $match; }, foundVariation: function( $product, $swatches, $variation ) { var $price = $product.find("span.price").not( '.price-cloned' ), $price_clone = $price.clone().addClass( 'price-cloned' ).css( 'display', 'none' ); $swatches.attr("data-variation_id", $variation.variation_id ); if( $variation.price_html ) { if ( !$product.find( '.price-cloned' ).length ) { $product.append($price_clone); } $price.replaceWith( $variation.price_html ); } else { if ( $product.find( '.price-cloned' ).length ) { $price.replaceWith( $price_clone.html() ); $price_clone.remove(); } } // Update Image ST_WC_FRONT_SWATCH.productLoop.variationsImageUpdate( $product, $variation ); // change add to cart button text ST_WC_FRONT_SWATCH.productLoop.changeAddToCartBtnText( $product, $variation ); }, variationsImageUpdate: function( $product, $variation ) { var $product_img = $product.find("img.wp-post-image, img.attachment-woocommerce_thumbnail"); var $parent = $product.find( '.st-swatch-in-loop' ); // ! Etheme change sku for product quick-view-popup if ( $product_img.parents().is( '.quick-view-popup' ) ) { if ( $variation.sku ) { if ( ! $( '.sku_wrapper .sku' ).attr( 'data-o_content' ) ) { $( '.sku_wrapper .sku' ).attr( 'data-o_content' , $( '.sku_wrapper .sku' ).html() ); } $( '.sku_wrapper .sku' ).html( $variation.sku ); } else { $( '.sku_wrapper .sku' ).html( $( '.sku_wrapper .sku' ).attr( 'data-o_content' ) ); } } if ( $product_img.parents().is( '.quick-view-popup' ) && $variation && $variation.st_image_src && $variation.image.src && $variation.st_image_src.length > 1 ) { // ST_WC_FRONT_SWATCH.productLoop.setVariationAttr( $product_img, 'src', $variation.st_image_src[0] ); // ST_WC_FRONT_SWATCH.productLoop.setVariationAttr( $product_img, 'srcset', $variation.st_image_src[0] ); // ST_WC_FRONT_SWATCH.productLoop.setVariationAttr( $product_img, 'sizes', $variation.image.sizes ); ST_WC_FRONT_SWATCH.productLoop.setVariationAttr( $product_img, 'src', $variation.image.full_src ); ST_WC_FRONT_SWATCH.productLoop.setVariationAttr( $product_img, 'srcset', $variation.image.full_src ); ST_WC_FRONT_SWATCH.productLoop.setVariationAttr( $product_img, 'sizes', $variation.sizes ); } else if( $variation && $variation.st_image_src && $variation.image.src && $variation.st_image_src.length > 1 ) { if ( !$parent.is('.st-swatch-popup') && $product_img.parents().is( '.product-image-wrapper' ) ) { $( $product_img ).parents( '.product-image-wrapper' ).addClass( 'variation-changed' ); } ST_WC_FRONT_SWATCH.productLoop.setVariationAttr( $product_img, 'src', $variation.st_image_src[0] ); ST_WC_FRONT_SWATCH.productLoop.setVariationAttr( $product_img, 'srcset', $variation.st_image_srcset ); ST_WC_FRONT_SWATCH.productLoop.setVariationAttr( $product_img, 'sizes', $variation.st_image_sizes ); } else { if ( !$parent.is('.st-swatch-popup') && $product_img.parents().is( '.product-image-wrapper' ) ) { $( $product_img ).parents( '.product-image-wrapper' ).removeClass( 'variation-changed' ); } ST_WC_FRONT_SWATCH.productLoop.resetVariationAttr( $product_img, 'src' ); ST_WC_FRONT_SWATCH.productLoop.resetVariationAttr( $product_img, 'srcset' ); ST_WC_FRONT_SWATCH.productLoop.resetVariationAttr( $product_img, 'sizes' ); } }, changeAddToCartBtnText: function( $product, $variation ) { var $btn = $product.find("a.add_to_cart_button"), $txt = ''; $btn.removeClass("added"); if( Object.keys( $variation.attributes ).length === $product.find( "ul.st-swatch-preview" ).length ) { if ( $variation.is_in_stock === true ) { $txt = sten_wc_params.add_to_cart_btn_text; $btn.addClass("st-swatch-btn-ready").removeClass("st-swatch-btn-readmore"); } else { $txt = sten_wc_params.read_more_btn_text; $btn.addClass("st-swatch-btn-readmore").removeClass("st-swatch-btn-ready"); } } else { $txt = sten_wc_params.select_options_btn_text; $btn.removeClass( "st-swatch-btn-ready st-swatch-btn-readmore" ); } $btn.addClass( "st-swatch-btn-text-changed" ).text( $txt ); }, setVariationAttr: function ( $el, $attr, $value ) { if ( undefined === $el.attr( 'data-o_' + $attr ) ) { $el.attr( 'data-o_' + $attr, ( !$el.attr( $attr ) ) ? '' : $el.attr( $attr ) ); } if ( false === $value ) { $el.removeAttr( $attr ); } else { $el.attr( $attr, $value ); } }, resetVariationAttr: function ( $el, $attr ) { $el.parents( '.content-product, .product-content' ).find( '.et-out-of-stock' ).removeClass('et-out-of-stock'); if ( undefined !== $el.attr( 'data-o_' + $attr ) ) { $el.attr( $attr, $el.attr( 'data-o_' + $attr ) ); } }, addSlashes: function ( $string ) { $string = $string.toString(); $string = $string.replace( /'/g, '\\\'' ); $string = $string.replace( /"/g, '\\\"' ); return $string; }, addToCart: function(){ $(document).on("click", "a.product_type_variable.add_to_cart_button.st-swatch-btn-ready", function(e){ var $btn = $( this ), $swatches = $btn.closest(".product-type-variable").find("div.st-swatch-in-loop"), $variation_id = $swatches.attr( 'data-variation_id' ); if( typeof $variation_id == "undefined" || $variation_id == '' ) { return true; } var $product_id = $btn.data("product_id"), $quantity = $btn.data("quantity"), $item = {}; $swatches.find("ul.st-swatch-preview").each(function(){ var $attribute = $(this).data("attribute"), $attribute_val = $(this).find("li.selected span").data("value"); $item[ "attribute_" + $attribute ] = $attribute_val; }); $btn.removeClass( 'added' ); $btn.addClass( 'loading' ); var $data = { action : 'sten_wc_product_loop_add_to_cart', product_id : $product_id, quantity : $quantity, variation_id : $variation_id, variation : $item, }; $( 'body' ).trigger( 'adding_to_cart', [ $btn, $data ] ); $.ajax({ type : "POST", url : sten_wc_params.ajax_url, data : $data, success : function ( $response ) { if( !$response ) { return false; } if ( $response.error && $response.product_url ) { window.location = $response.product_url; return false; } // update cart fragment var $fragments = $response.fragments, $cart_hash = $response.cart_hash; if ( $fragments ) { $.each( $fragments, function ( $key, $value ) { $( $key ).replaceWith( $value ); } ); } $( '.quick-view-popup .mfp-close' ).trigger( 'click' ); $btn.addClass( 'added' ); $( 'body' ).trigger( 'added_to_cart', [ $fragments, $cart_hash, $btn ] ); $btn.parents( '.product-type-variable' ).find( '.st-swatch-in-loop .et-delete' ).trigger( 'click' ); }, error : function ( $error ) { console.log( $error ); } }); e.preventDefault(); }); }, }; ST_WC_FRONT_SWATCH.documentOnReady = { init : function() { ST_WC_FRONT_SWATCH.onSelect(); ST_WC_FRONT_SWATCH.onClear(); ST_WC_FRONT_SWATCH.onSelectUpdateAttribute(); ST_WC_FRONT_SWATCH.productLoop.init(); }, ET_In_Popup: function(){ $(document).on( 'click', '.st-swatch-et-disabled li span', function(e) { if ( $(this).parents().is( '.quick-view-popup' ) ) return; var parent = $(this).parents( '.st-swatch-in-loop' ); var content_product = parent.parents('.content-product'); parent.addClass( 'active' ); $(this).parents('.product-details').addClass('st-swatch-popup-active'); $.each( parent.closest('div').find( 'div.et_st-default-holder' ), function() { var et_html = $(this).html(); et_html = et_html.replace( 'st-swatch-size-small', 'st-swatch-size-normal' ); et_html = et_html.replace( 'st-swatch-et-disabled', 'st-swatch-et-anabled' ); $(this).parents( '.st-swatch-in-loop' ).find( '.st-swatch-preview-wrap .et_st-popup-holder' ).append( et_html ); }); var height = parent.find( 'div.et_st-default-holder' ).height(); parent.find( 'div.et_st-default-holder' ).css( 'min-height', height ); parent.find( 'div.et_st-default-holder ul' ).remove(); parent.find( '.sten-reset-loop-variation' ).remove(); if (!content_product.find('.product-image-wrapper').is('.variation-changed')) { content_product.find('.product-image-wrapper').addClass('variation-changed') } ST_WC_FRONT_SWATCH.productLoop.itemSwatches(); }); $(document).on( 'click', '.st-swatch-in-loop .et-delete', function(e) { if ( $(this).parents().is( '.quick-view-popup' ) ) return; var parent = $(this).parents( '.st-swatch-in-loop' ); var content_product = parent.parents('.content-product'); $.each( $(this).parents( '.st-swatch-in-loop' ).find( 'div.st-swatch-preview-wrap .et_st-popup-holder ul' ), function() { var et_html = $(this).removeClass( 'st-swatch-et-anabled' ).addClass( 'st-swatch-et-disabled' ); var attribute = $(this).data( 'attribute' ); $(this).parents( '.st-swatch-in-loop' ).find( 'div.et_st-default-holder[data-et-holder="' + attribute + '"]' ).prepend( et_html ); }); $(this).parents( '.st-swatch-in-loop' ).removeClass( 'active' ); $(this).parents('.product-details').removeClass('st-swatch-popup-active'); $(this).parents( '.st-swatch-in-loop' ).find( '.st-swatch-preview-wrap .et_st-popup-holder ul' ).remove(); if (content_product.find('.product-image-wrapper').is('.variation-changed')) { content_product.find('.product-image-wrapper').removeClass('variation-changed') } ST_WC_FRONT_SWATCH.productLoop.itemSwatches(); }); }, }; $(document).ready( ST_WC_FRONT_SWATCH.documentOnReady.init ); $(document).ready( ST_WC_FRONT_SWATCH.documentOnReady.ET_In_Popup ); })(jQuery);; (function($) { var wa_time_out, wa_time_in; $(document).ready(function() { $(".wa__btn_popup").on("click", function() { if ($(".wa__popup_chat_box").hasClass("wa__active")) { $(".wa__popup_chat_box").removeClass("wa__active"); $(".wa__btn_popup").removeClass("wa__active"); clearTimeout(wa_time_in); if ($(".wa__popup_chat_box").hasClass("wa__lauch")) { wa_time_out = setTimeout(function() { $(".wa__popup_chat_box").removeClass("wa__pending"); $(".wa__popup_chat_box").removeClass("wa__lauch"); }, 400); } } else { $(".wa__popup_chat_box").addClass("wa__pending"); $(".wa__popup_chat_box").addClass("wa__active"); $(".wa__btn_popup").addClass("wa__active"); clearTimeout(wa_time_out); if (!$(".wa__popup_chat_box").hasClass("wa__lauch")) { wa_time_in = setTimeout(function() { $(".wa__popup_chat_box").addClass("wa__lauch"); }, 100); } } }); function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000); var expires = "expires=" + d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(";"); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == " ") { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } $("#nta-wa-gdpr").change(function() { if (this.checked) { setCookie("nta-wa-gdpr", "accept", 30); if (getCookie("nta-wa-gdpr") != "") { $('.nta-wa-gdpr').hide(500); $('.wa__popup_content_item').each(function(){ $(this).removeClass('pointer-disable'); $('.wa__popup_content_list').off('click'); }) } } }); if (getCookie("nta-wa-gdpr") != "") { $('.wa__popup_content_list').off('click'); } else{ $('.wa__popup_content_list').click(function(){ $('.nta-wa-gdpr').delay(500).css({"background" : "red", "color" : "#fff"}); }); } }); })(jQuery); ; /* _ _ _ _ ___| (_) ___| | __ (_)___ / __| | |/ __| |/ / | / __| \__ \ | | (__| < _ | \__ \ |___/_|_|\___|_|\_(_)/ |___/ |__/ Version: 1.8.0 Author: Ken Wheeler Website: http://kenwheeler.github.io Docs: http://kenwheeler.github.io/slick Repo: http://github.com/kenwheeler/slick Issues: http://github.com/kenwheeler/slick/issues */ /* global window, document, define, jQuery, setInterval, clearInterval */ !function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};e=function(){function e(e,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(e),appendDots:i(e),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('