芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/woocomposer/assets/js/woocomposer.min.js
function animate_products(){jQuery(".wooproduct").each(function(e,i){var t=jQuery(this).attr("id"),o=jQuery(this).data("animation");"animated no-animation"!==o&&jQuery("#"+t).addClass(o)})}function isOnScreen(e){var i=jQuery(window),t={top:i.scrollTop(),left:i.scrollLeft()},o=jQuery(e).outerHeight()-80,i=(t.right=t.left+i.width(),t.bottom=t.top+i.height()-o,jQuery(e).offset());return i.right=i.left+jQuery(e).outerWidth(),i.bottom=i.top+jQuery(e).outerHeight(),!(t.right
i.right||t.bottom
i.bottom)}function add_woocomposer_popupclass(){var e=jQuery(".quick-view-single-product > div").height();jQuery(window).height()<=e?jQuery("html").addClass("woocomposer-popup"):jQuery("html").removeClass("woocomposer-popup")}!function(d){d.fn.unveil=function(e,i){let s=d(window),n=e||0,t=1
=i-n&&o<=t+n});r=e.trigger("unveil"),l=l.not(r)}return this.one("unveil",function(){var e;(e=this.getAttribute(o)||this.getAttribute("data-src"))&&(this.setAttribute("src",e),"function"==typeof i)&&i.call(this)}),s.scroll(a),s.resize(a),a(),this}}(window.jQuery||window.Zepto),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(l){"use strict";let o=window.Slick||{};(o=function(){let n=0;return function(e,i){let t=this,o,s;if(t.defaults={accessibility:!0,arrows:!0,autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging(e,i){return'
'+(i+1)+"
"},dots:!1,draggable:!0,easing:"linear",fade:!1,infinite:!0,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,pauseOnHover:!0,responsive:null,slide:"div",slidesToShow:1,slidesToScroll:1,speed:300,swipe:!0,touchMove:!0,touchThreshold:5,useCSS:!0,vertical:!1},t.initials={animating:!1,autoPlayTimer:null,currentSlide:0,currentLeft:null,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1},l.extend(t,t.initials),t.activeBreakpoint=null,t.animType=null,t.animProp=null,t.breakpoints=[],t.breakpointSettings=[],t.cssTransitions=!1,t.paused=!1,t.positionProp=null,t.$slider=l(e),t.$slidesCache=null,t.transformType=null,t.transitionType=null,t.windowWidth=0,t.windowTimer=null,t.options=l.extend({},t.defaults,i),t.originalSettings=t.options,(o=t.options.responsive||null)&&-1
=o.slideCount)return!1;o.unload(),"number"==typeof i?0===i&&0===o.$slides.length?l(e).appendTo(o.$slideTrack):t?l(e).insertBefore(o.$slides.eq(i)):l(e).insertAfter(o.$slides.eq(i)):!0===t?l(e).prependTo(o.$slideTrack):l(e).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).remove(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},o.prototype.animateSlide=function(e,i){const t={},o=this;!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,i):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,i):!1===o.cssTransitions?l({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step(e){!1===o.options.vertical?t[o.animType]="translate("+e+"px, 0px)":t[o.animType]="translate(0px,"+e+"px)",o.$slideTrack.css(t)},complete(){i&&i.call()}}):(o.applyTransition(),!1===o.options.vertical?t[o.animType]="translate3d("+e+"px, 0px, 0px)":t[o.animType]="translate3d(0px,"+e+"px, 0px)",o.$slideTrack.css(t),i&&setTimeout(function(){o.disableTransition(),i.call()},o.options.speed))},o.prototype.applyTransition=function(e){var i=this,t={};!1===i.options.fade?t[i.transitionType]=i.transformType+" "+i.options.speed+"ms "+i.options.cssEase:t[i.transitionType]="opacity "+i.options.speed+"ms "+i.options.cssEase,(!1===i.options.fade?i.$slideTrack:i.$slides.eq(e)).css(t)},o.prototype.autoPlay=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer),e.slideCount>e.options.slidesToShow&&!0!==e.paused&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},o.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},o.prototype.autoPlayIterator=function(){var e=this;!1===e.options.infinite?1===e.direction?(e.currentSlide+1===e.slideCount-1&&(e.direction=0),e.slideHandler(e.currentSlide+e.options.slidesToScroll)):(e.currentSlide-1==0&&(e.direction=1),e.slideHandler(e.currentSlide-e.options.slidesToScroll)):e.slideHandler(e.currentSlide+e.options.slidesToScroll)},o.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow=l('
').appendTo(e.$slider),e.$nextArrow=l('
').appendTo(e.$slider),!0!==e.options.infinite)&&e.$prevArrow.addClass("slick-disabled")},o.prototype.buildDots=function(){let e=this,i,t;if(!0===e.options.dots&&e.slideCount>e.options.slidesToShow){for(t='
',i=0;i<=e.getDotCount();i+=1)t+="
"+e.options.customPaging.call(this,e,i)+"
";t+="
",e.$dots=l(t).appendTo(e.$slider),e.$dots.find("li").first().addClass("slick-active")}},o.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slidesCache=e.$slides,e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?l('
').appendTo(e.$slider):e.$slides.wrapAll('
').parent(),e.$list=e.$slideTrack.wrap('
').parent(),e.$slideTrack.css("opacity",0),!0===e.options.centerMode&&(e.options.infinite=!0,e.options.slidesToScroll=1,e.options.slidesToShow%2==0)&&(e.options.slidesToShow=3),l("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),!0===e.options.accessibility&&e.$list.prop("tabIndex",0),e.setSlideClasses(0),!0===e.options.draggable&&e.$list.addClass("draggable")},o.prototype.checkResponsive=function(){let e=this,i,t;if(e.originalSettings.responsive&&-1
i.options.slidesToShow&&(i.slideOffset=i.slideWidth*i.options.slidesToShow*-1,s=o*i.options.slidesToShow*-1),i.slideCount%i.options.slidesToScroll!=0&&e+i.options.slidesToScroll>i.slideCount&&i.slideCount>i.options.slidesToShow&&(i.slideOffset=i.slideCount%i.options.slidesToShow*i.slideWidth*-1,s=i.slideCount%i.options.slidesToShow*o*-1)):i.slideCount%i.options.slidesToShow!=0&&e+i.options.slidesToScroll>i.slideCount&&i.slideCount>i.options.slidesToShow&&(i.slideOffset=i.options.slidesToShow*i.slideWidth-i.slideCount%i.options.slidesToShow*i.slideWidth,s=i.slideCount%i.options.slidesToShow*o),!0===i.options.centerMode&&(i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)-i.slideWidth),t=!1===i.options.vertical?e*i.slideWidth*-1+i.slideOffset:e*o*-1+s},o.prototype.init=function(){var e=this;l(e.$slider).hasClass("slick-initialized")||(l(e.$slider).addClass("slick-initialized"),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.checkResponsive()),null!==e.options.onInit&&e.options.onInit.call(this,e)},o.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.on("click.slick",{message:"next"},e.changeSlide))},o.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&l("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide)},o.prototype.initializeEvents=function(){const e=this;e.initArrowEvents(),e.initDotEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),!0===e.options.pauseOnHover&&!0===e.options.autoplay&&(e.$list.on("mouseenter.slick",e.autoPlayClear),e.$list.on("mouseleave.slick",e.autoPlay)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),l(window).on("orientationchange.slick.slick-"+e.instanceUid,function(){e.checkResponsive(),e.setPosition()}),l(window).on("resize.slick.slick-"+e.instanceUid,function(){l(window).width!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=l(window).width(),e.checkResponsive(),e.setPosition()},50))}),l(window).on("load.slick.slick-"+e.instanceUid,e.setPosition)},o.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show(),!0===e.options.autoplay&&e.autoPlay()},o.prototype.keyHandler=function(e){37===e.keyCode?this.changeSlide({data:{message:"previous"}}):39===e.keyCode&&this.changeSlide({data:{message:"next"}})},o.prototype.lazyLoad=function(){let e=this,i,t,o,s;s=!0===e.options.centerMode?(o=e.options.slidesToShow+e.currentSlide-1)+e.options.slidesToShow+2:(o=e.options.infinite?e.options.slidesToShow+e.currentSlide:e.currentSlide)+e.options.slidesToShow,i=e.$slider.find(".slick-slide").slice(o,s),l("img[data-lazy]",i).not("[src]").each(function(){l(this).css({opacity:0}).attr("src",l(this).attr("data-lazy")).removeClass("slick-loading").load(function(){l(this).animate({opacity:1},200)})}),e.currentSlide>=e.slideCount-e.options.slidesToShow?(t=e.$slider.find(".slick-cloned").slice(0,e.options.slidesToShow),l("img[data-lazy]",t).not("[src]").each(function(){l(this).css({opacity:0}).attr("src",l(this).attr("data-lazy")).removeClass("slick-loading").load(function(){l(this).animate({opacity:1},200)})})):0===e.currentSlide&&(t=e.$slider.find(".slick-cloned").slice(-1*e.options.slidesToShow),l("img[data-lazy]",t).not("[src]").each(function(){l(this).css({opacity:0}).attr("src",l(this).attr("data-lazy")).removeClass("slick-loading").load(function(){l(this).animate({opacity:1},200)})}))},o.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},o.prototype.postSlide=function(e){var i=this;null!==i.options.onAfterChange&&i.options.onAfterChange.call(this,i,e),i.animating=!1,i.setPosition(),!(i.swipeLeft=null)===i.options.autoplay&&!1===i.paused&&i.autoPlay()},o.prototype.progressiveLazyLoad=function(){let e=this,i;0
=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.setSlideClasses(0),e.setPosition(),null!==e.options.onReInit&&e.options.onReInit.call(this,e)},o.prototype.removeSlide=function(e,i){var t=this;if(e="boolean"==typeof e?!0===(i=e)?0:t.slideCount-1:!0===i?--e:e,t.slideCount<1||e<0||e>t.slideCount-1)return!1;t.unload(),t.$slideTrack.children(this.options.slide).eq(e).remove(),t.$slides=t.$slideTrack.children(this.options.slide),t.$slideTrack.children(this.options.slide).remove(),t.$slideTrack.append(t.$slides),t.$slidesCache=t.$slides,t.reinit()},o.prototype.setCSS=function(e){let i=this,t={},o,s;o="left"==i.positionProp?e+"px":"0px",s="top"==i.positionProp?e+"px":"0px",t[i.positionProp]=e,!1!==i.transformsEnabled&&(!(t={})===i.cssTransitions?t[i.animType]="translate("+o+", "+s+")":t[i.animType]="translate3d("+o+", "+s+", 0px)"),i.$slideTrack.css(t)},o.prototype.setDimensions=function(){var e=this;e.options.centerMode,e.$slideTrack.children(".slick-slide").width(e.slideWidth),!1===e.options.vertical?(e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length)),!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding})):(e.$list.height(e.$slides.first().outerHeight()*e.options.slidesToShow),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight()*e.$slideTrack.children(".slick-slide").length)),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"}))},o.prototype.setFade=function(){let t=this,o;t.$slides.each(function(e,i){o=t.slideWidth*e*-1,l(i).css({position:"relative",left:o,top:0,zIndex:800,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:900,opacity:1})},o.prototype.setPosition=function(){var e=this;e.setValues(),e.setDimensions(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade()},o.prototype.setProps=function(){var e=this;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===document.body.style.WebkitTransition&&void 0===document.body.style.MozTransition&&void 0===document.body.style.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),void 0!==document.body.style.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition"),void 0!==document.body.style.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition"),void 0!==document.body.style.msTransform&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=null!==e.animType},o.prototype.setValues=function(){var e=this;e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical?e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow):e.slideWidth=Math.ceil(e.listWidth)},o.prototype.setSlideClasses=function(e){let i=this,t,o,s;var n=i.$slider.find(".slick-slide").data("animation");i.$slider.find(".slick-slide").removeClass(n),i.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center"),o=i.$slider.find(".slick-slide"),!0===i.options.centerMode?(((t=Math.floor(i.options.slidesToShow/2))<=e&&e<=i.slideCount-1-t?i.$slides.slice(e-t,e+t+1):(s=i.options.slidesToShow+e,o.slice(s-t+1,s+t+2))).addClass("slick-active"),0===e?o.eq(o.length-1-i.options.slidesToShow).addClass("slick-center"):e===i.slideCount-1&&o.eq(i.options.slidesToShow).addClass("slick-center"),i.$slides.eq(e).addClass("slick-center")):(0
e.options.slidesToShow)){for(o=!0===e.options.centerMode?e.options.slidesToShow+1:e.options.slidesToShow,i=e.slideCount;i>e.slideCount-o;--i)t=i-1,l(e.$slides[t]).clone().attr("id","").prependTo(e.$slideTrack).addClass("slick-cloned");for(i=0;i
l.slideCount-l.options.slidesToShow+s)?(i=l.currentSlide,l.animateSlide(o,function(){l.postSlide(i)}),!1):(!0===l.options.autoplay&&clearInterval(l.autoPlayTimer),t=i<0?l.slideCount%l.options.slidesToScroll!=0?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount-l.options.slidesToScroll:i>l.slideCount-1?0:i,l.animating=!0,null!==l.options.onBeforeChange&&e!==l.currentSlide&&l.options.onBeforeChange.call(this,l,l.currentSlide,t),l.currentSlide=t,l.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),!0===l.options.fade?(l.fadeSlide(t,function(){l.postSlide(t)}),!1):void l.animateSlide(n,function(){l.postSlide(t)})))},o.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},o.prototype.swipeDirection=function(){let e,i,t,o;return e=this.touchObject.startX-this.touchObject.curX,i=this.touchObject.startY-this.touchObject.curY,t=Math.atan2(i,e),(o=(o=Math.round(180*t/Math.PI))<0?360-Math.abs(o):o)<=45&&0<=o||o<=360&&315<=o?"left":135<=o&&o<=225?"right":"vertical"},o.prototype.swipeEnd=function(e){var i=this;if(i.$list.removeClass("dragging"),void 0===i.touchObject.curX)return!1;if(i.touchObject.swipeLength>=i.touchObject.minSwipe)switch(l(e.target).on("click.slick",function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),l(e.target).off("click.slick")}),i.swipeDirection()){case"left":i.slideHandler(i.currentSlide+i.options.slidesToScroll),i.touchObject={};break;case"right":i.slideHandler(i.currentSlide-i.options.slidesToScroll),i.touchObject={}}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},o.prototype.swipeHandler=function(e){var i=this;if("ontouchend"in document&&!1===i.options.swipe)return!1;if(!1===i.options.draggable&&!e.originalEvent.touches)return!1;switch(i.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,i.touchObject.minSwipe=i.listWidth/i.options.touchThreshold,e.data.action){case"start":i.swipeStart(e);break;case"move":i.swipeMove(e);break;case"end":i.swipeEnd(e)}},o.prototype.swipeMove=function(e){var i=this,t=void 0!==e.originalEvent?e.originalEvent.touches:null,o=i.getLeft(i.currentSlide);return!(!i.$list.hasClass("dragging")||t&&1!==t.length)&&(i.touchObject.curX=void 0!==t?t[0].pageX:e.clientX,i.touchObject.curY=void 0!==t?t[0].pageY:e.clientY,i.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(i.touchObject.curX-i.touchObject.startX,2))),"vertical"!==i.swipeDirection()?(void 0!==e.originalEvent&&4
i.touchObject.startX?1:-1,!1===i.options.vertical?i.swipeLeft=o+i.touchObject.swipeLength*t:i.swipeLeft=o+i.touchObject.swipeLength*(i.$list.height()/i.listWidth)*t,!0!==i.options.fade&&!1!==i.options.touchMove&&(!0===i.animating?(i.swipeLeft=null,!1):void i.setCSS(i.swipeLeft))):void 0)},o.prototype.swipeStart=function(e){let i=this,t;if(1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,i.$list.addClass("dragging")},o.prototype.unfilterSlides=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).remove(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},o.prototype.unload=function(){var e=this;l(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&(e.$prevArrow.remove(),e.$nextArrow.remove()),e.$slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style")},o.prototype.updateArrows=function(){var e=this;!0===e.options.arrows&&!0!==e.options.infinite&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.removeClass("slick-disabled"),e.$nextArrow.removeClass("slick-disabled"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled"),e.$nextArrow.removeClass("slick-disabled")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&(e.$nextArrow.addClass("slick-disabled"),e.$prevArrow.removeClass("slick-disabled")))},o.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active"),e.$dots.find("li").eq(e.currentSlide/e.options.slidesToScroll).addClass("slick-active"))},l.fn.slick=function(t){return this.each(function(e,i){i.slick=new o(i,t)})},l.fn.slickAdd=function(t,o,s){return this.each(function(e,i){i.slick.addSlide(t,o,s)})},l.fn.slickCurrentSlide=function(){return this.get(0).slick.getCurrent()},l.fn.slickFilter=function(t){return this.each(function(e,i){i.slick.filterSlides(t)})},l.fn.slickGoTo=function(t){return this.each(function(e,i){i.slick.slideHandler(t)})},l.fn.slickNext=function(){return this.each(function(e,i){i.slick.changeSlide({data:{message:"next"}})})},l.fn.slickPause=function(){return this.each(function(e,i){i.slick.autoPlayClear(),i.slick.paused=!0})},l.fn.slickPlay=function(){return this.each(function(e,i){i.slick.paused=!1,i.slick.autoPlay()})},l.fn.slickPrev=function(){return this.each(function(e,i){i.slick.changeSlide({data:{message:"previous"}})})},l.fn.slickRemove=function(t,o){return this.each(function(e,i){i.slick.removeSlide(t,o)})},l.fn.slickSetOption=function(t,o,s){return this.each(function(e,i){i.slick.options[t]=o,!0===s&&(i.slick.unload(),i.slick.reinit())})},l.fn.slickUnfilter=function(){return this.each(function(e,i){i.slick.unfilterSlides()})},l.fn.unslick=function(){return this.each(function(e,i){i.slick.destroy()})}}),jQuery(document).ready(function(e){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&jQuery(".wcmp-product").addClass("wcmp-mobile"),jQuery(".wcmp-sale-circle").each(function(e,i){var t=jQuery(".wcmp-sale-circle").find("span"),o=t.outerWidth();t.css({height:o+"px","line-height":o+"px"})}),jQuery("body").append('
');const r=jQuery(".woocomposer_grid > .woocomposer");let a=0;jQuery("body").on("click",".quick-view-loop",function(i){i.preventDefault();i=jQuery(this).parent().parent().parent();if(1<=(i=jQuery(this).closest(".wooproduct")).find("selected").length)i.removeClass("selected"),jQuery(".wcmp-view-wrap").slideUp(function(){jQuery(this).remove()});else{jQuery(".wcmp-view-wrap").remove();var t=r.children(),o=(r.children().removeClass("selected"),i.addClass("selected"),jQuery(".wcmp-view-wrap").slideUp(function(){jQuery(this).remove()}),i.height(),i.outerWidth(!0)),s=i.index()+1,n=jQuery(".wcmp-quick-view-wrapper").data("columns"),l=s/n;let e="";e=(a=Math.floor(l)==l&&jQuery.isNumeric(l)?l:Math.floor(s/n)+1)*n-1;l=t.length,l=(e>=l&&(e=l-1),o/2-5+(s-1)%n*o),s=(t.removeClass("edge"),jQuery(t[e]).addClass("edge"),i.children(".wcmp-quick-view-wrapper").html()),n=(jQuery(".edge").after('
'+s+'
'),jQuery(".wcmp-view-content").height());jQuery(".wcmp-view-wrap").animate({height:n},{duration:500,complete(){jQuery(this).css("overflow","visible"),jQuery(this).trigger("viewLoaded")}})}}),jQuery("body").click(function(e){e.target==this&&0
.woocomposer").slick(o)})}),jQuery("body").on("click",".wcmp-close",function(e){e.preventDefault();jQuery(".woocomposer_grid").children(".wooproduct").removeClass("selected");e=jQuery(".wcmp-view-content").height(),e=(jQuery(window).innerHeight()+e)/2,e=jQuery(".wcmp-view-wrap").offset().top-e;jQuery(".wcmp-view-wrap").slideUp(function(){jQuery(this).remove()}),jQuery("html, body").animate({scrollTop:e},{duration:500,complete(){}})}),jQuery("body").on("click","a.swatch-anchor",function(e){e.preventDefault();let t="";var o=jQuery(this).parent().parent().data("attribute-name"),s=jQuery(this).parent().data("value"),n=jQuery(this).closest(".variations_form").data("product_variations"),e=jQuery(this).closest(".variations_form"),i=jQuery(this).closest(".product").find(".wcmp-quickview-img");for(let i=0;i
.woocommerce-message").append('
Continue Shopping
'),jQuery(".wcmp-continue").click(function(){jQuery(".woocommerce-message").slideUp(500,function(){jQuery(this).remove()})}),jQuery(".quick-view-single").click(function(e){e.preventDefault();e=jQuery(this).parent().parent().find(".wcmp-quick-view-wrapper").html(),jQuery(".quick-view-single-product").html(e),jQuery(".quick-view-single-product").fadeIn("fast"),jQuery(".quick-view-single-product .wcmp-image-carousel").slick({arrows:!0,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1}),e=jQuery(".quick-view-single-product").find(".variations_form").length;0!=e&&(jQuery(".variations_form").wc_variation_form(),jQuery(".variations_form .variations select").change()),add_woocomposer_popupclass()}),jQuery(".quick-view-loop-popup").click(function(e){e.preventDefault();e=jQuery(this).closest(".wooproduct").find(".wcmp-quick-view-wrapper").html(),jQuery(".quick-view-single-product").html(e),jQuery(".quick-view-single-product").fadeIn("fast"),jQuery(".quick-view-single-product .wcmp-image-carousel").slick({arrows:!0,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1}),e=jQuery(".quick-view-single-product").find(".variations_form").length;0!=e&&(jQuery(".variations_form").wc_variation_form(),jQuery(".variations_form .variations select").change()),add_woocomposer_popupclass()}),jQuery("body").on("click",".wcmp-close-single",function(){jQuery(".quick-view-single-product").fadeOut(500),jQuery("html").removeClass("woocomposer-popup")}),jQuery(".wcmp-single-image-carousel").slick({arrows:!0,infinite:!0,draggable:!1,speed:500,slidesToShow:1,slidesToScroll:1})}),jQuery(document).on("viewLoaded",function(){jQuery(".wcmp-view-wrap .wcmp-image-carousel").slick({arrows:!0,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1});const i=jQuery(".wcmp-view-content").height();jQuery(".wcmp-view-wrap").animate({height:i},{duration:500,complete(){var e=(jQuery(window).innerHeight()-i)/2,e=jQuery(".wcmp-view-wrap").offset().top-e;jQuery("html, body").animate({scrollTop:e},{duration:500,complete(){}})}}),0!=jQuery(".wcmp-view-wrap").find(".variations_form").length&&(jQuery(".variations_form").wc_variation_form(),jQuery(".variations_form .variations select").change())}),jQuery(window).scroll(function(){animate_products()}),jQuery(window).load(function(){animate_products();const s=jQuery(".woocomposer_carousel").find(".wcmp_vc_inline").length;1<=s&&(jQuery(".woocomposer_carousel").each(function(e,i){var t=jQuery(this).attr("id"),o=jQuery(this).attr("data-slick"),o=(jQuery("#"+t+" > .woocomposer").slick(o),jQuery("#"+t+" > .woocomposer").find(".wooproduct").length);jQuery("#"+t+" > .woocomposer").find("slick-track").css("width",300*o),jQuery("#"+t+" > .woocomposer").find(".wooproduct").each(function(e,i){jQuery(this).css("width","300px")}),console.log(s)}),jQuery(".quick-view-single-product .wcmp-image-carousel, .wcmp-single-image-carousel").each(function(e,i){jQuery(this).slick({arrows:!0,infinite:!0,draggable:!1,speed:500,slidesToShow:1,slidesToScroll:1})}))}),jQuery(window).resize(function(e){add_woocomposer_popupclass()});