"use strict";var Themeoo,$cs_body,$cs_main,$cs_masthead,$cs_window,$cs_document,cs_is_device,cs_is_sticky,cs_is_transparent,cs_is_small,cs_has_admin_bar,cs_is_blank,cs_no_mobile_anim,cs_sticky_height,cs_admin_bar_height,cs_header_height,cs_header_top;!function(e,i,t,s){var a,o,n,r,l,c,d,f,u,h;Themeoo={staticVariables:function(){l=e(i),e(t),a=e("body"),o=e(".cd-top"),h=e("#wpadminbar"),n=e("#masthead"),r=e("#main"),c=!!navigator.userAgent.toLowerCase().match(/(android|webos|blackberry|ipod|iphone|ipad|opera mini|iemobile|windows phone|windows mobile)/),d=!!parseInt(s.sticky),f=!!a.hasClass("admin-bar"),parseInt(s.header)?parseInt(s.header):50;var u=this;u.getAdminBarHeight(),u.getHeaderHeight(),u.getHeaderTop()},getAdminBarHeight:function(){return f?h.height():0},getHeaderHeight:function(){return u=n?n.outerHeight():0},getHeaderTop:function(){return n&&n.offset()?n.offset().top:0},initFormPlaceHolder:function(){var s=i.hasOwnProperty("operamini")&&"[object OperaMini]"===Object.prototype.toString.call(i.operamini),a="placeholder"in t.createElement("input")&&!s,o="placeholder"in t.createElement("textarea")&&!s;if(!a||!o){var n=[];a||n.push("input[placeholder]"),o||n.push("textarea[placeholder]"),e(n.join(",")).each((function(){var i=e(this),t=i.attr("placeholder");""===i.val()&&i.val(t),i.focus((function(){this.value===t&&(this.value="")})).blur((function(){""===e.trim(this.value)&&(this.value=t)}))})),e("form").submit((function(){e(this).find(n).each((function(){this.value===e(this).attr("placeholder")&&(this.value="")}))}))}},initTooltip:function(){e("[data-toggle=tooltip]").tooltip()},showBackToTop:function(){l.scrollTop()>300?(o.addClass("cd-is-visible"),a.addClass("scrolled")):o.removeClass("cd-is-visible cd-fade-out"),l.scrollTop()>1200&&o.addClass("cd-fade-out")},initBackToTop:function(){o.on("click",(function(i){i.preventDefault(),e("body,html").animate({scrollTop:0},700)}))},initTransparentHeader:function(){a.hasClass("transparent-header")||e(".transparent-header .page-builder .themeoo-row:first-of-type .container:first-of-type, .transparent-header .page-builder .themeoo-row:first-of-type .container-fluid:first-of-type").css("padding-top",n.height()+20)},initMobileMenu:function(){e("#themeoo-mobile-toggle").on("click",(function(i){i.preventDefault(),e(this).toggleClass("cs-collapse"),e("#navigation-mobile").slideToggle(500,"easeInOutExpo")})),e("#navigation-mobile li:has(ul) > .themeoo-dropdown-plus").on("click",(function(i){i.preventDefault(),e(this).toggleClass("cs-times"),e(this).parent().find("> ul").slideToggle(500,"easeInOutExpo")})),e("#navigation-mobile li:has(ul) > a:not(.themeoo-dropdown-plus)").on("click",(function(i){if("#"===e(this).attr("href")){i.preventDefault();var t=e(this).parent();t.find("> .themeoo-dropdown-plus").toggleClass("cs-times"),t.find("> ul").slideToggle(500,"easeInOutExpo")}}))},themeoo_is_small:function(){return i.innerWidths?(n.trigger("close-modals").addClass("is-sticky"),r.css("padding-top",i)):(n.removeClass("is-sticky"),r.removeAttr("style")),t>i+s?n.addClass("is-compact"):n.removeClass("is-compact"))}))}},initFixSticky:function(){d&&Themeoo.themeoo_is_small()?(n.removeClass("is-sticky is-compact"),r.removeAttr("style")):a.removeClass("cs-is-small")},initContentProduct:function(){var i=e(".product-item");e(".largeGrid").click((function(){return e(this).find("a").addClass("active"),e(".smallGrid a").removeClass("active"),i.addClass("large"),setTimeout((function(){e(".info-large").show()}),200),setTimeout((function(){e(".view_gallery").trigger("click")}),400),!1})),e(".smallGrid").click((function(){return e(this).find("a").addClass("active"),e(".largeGrid a").removeClass("active"),i.removeClass("large"),e(".make3D").removeClass("animate"),e(".info-large").fadeOut("fast"),setTimeout((function(){e("div.flip-back").trigger("click")}),400),!1})),e(".colors-large a").click((function(){return!1})),i.each((function(t,s){e(s).find(".view_gallery").click((function(){e(s).find("div.carouselNext, div.carouselPrev").removeClass("visible");var i=e(s).find(".make3D");i.length&&(i.addClass("flip-10"),setTimeout((function(){i.removeClass("flip-10").addClass("flip90").find("div.shadow").show().fadeTo(80,1,(function(){e(s).find(".product-front, .product-front div.shadow").hide()}))}),50),setTimeout((function(){i.removeClass("flip90").addClass("flip190"),e(s).find(".product-back").show().find("div.shadow").show().fadeTo(90,0),setTimeout((function(){i.removeClass("flip190").addClass("flip180").find("div.shadow").hide(),setTimeout((function(){i.css("transition","100ms ease-out"),e(s).find(".cx, .cy").addClass("s1"),setTimeout((function(){e(s).find(".cx, .cy").addClass("s2")}),100),setTimeout((function(){e(s).find(".cx, .cy").addClass("s3")}),200),e(s).find("div.carouselNext, div.carouselPrev").addClass("visible")}),100)}),100)}),150))})),e(s).find(".flip-back").click((function(i){i.preventDefault();var t=e(s).find(".make3D");t.length&&(t.removeClass("flip180").addClass("flip190"),setTimeout((function(){t.removeClass("flip190").addClass("flip90"),e(s).find(".product-back div.shadow").css("opacity",0).fadeTo(100,1,(function(){e(s).find(".product-back, .product-back div.shadow").hide(),e(s).find(".product-front, .product-front div.shadow").show()}))}),50),setTimeout((function(){t.removeClass("flip90").addClass("flip-10"),e(s).find(".product-front div.shadow").show().fadeTo(100,0),setTimeout((function(){e(s).find(".product-front div.shadow").hide(),t.removeClass("flip-10").css("transition","100ms ease-out"),e(s).find(".cx, .cy").removeClass("s1 s2 s3")}),100)}),150))})),function(t){var s=e(t).find(".carousel ul"),a=i.outerWidth(),o=0,n=!1,r=0;e(s).attr("rel",r),e(s).find("li").each((function(){o+=a})),e(s).css("width",o),e(".carousel li").css("width",a),e(".carousel").css("width",a),e(".arrows-perspective").css("width",a),e(t).find("div.carouselNext").on("click",(function(){var i=Math.abs(parseInt(e(s).css("left")))+a;i!==o&&!0!==n&&(e(s).css({left:"-"+i+"px",transition:"300ms ease-out"}),n=!0,r++,e(s).attr("rel",r),setTimeout((function(){n=!1}),300))})),e(t).find("div.carouselPrev").on("click",(function(){var i=Math.abs(parseInt(e(s).css("left")))-a;i<0||!0===n||(e(s).css({left:"-"+i+"px",transition:"300ms ease-out"}),n=!0,r--,e(s).attr("rel",r),setTimeout((function(){n=!1}),300))}))}(s)})),e(".sizes a span, .categories a span").each((function(i,t){e(t).append(''),e(t).parent().on("click",(function(){return e(this).hasClass("checked")?(e(t).find(".y").removeClass("animate"),setTimeout((function(){e(t).find(".x").removeClass("animate")}),50),e(this).removeClass("checked"),!1):(e(t).find(".x").addClass("animate"),setTimeout((function(){e(t).find(".y").addClass("animate")}),100),e(this).addClass("checked"),!1)}))})),e(".add_to_cart").click((function(){var i=e(this).parent(),t=i.offset();a.append('
');var s=e("div.floating-cart");i.clone().appendTo(s),e(s).css({top:t.top+"px",left:t.left+"px"}).fadeIn("slow").addClass("moveToCart"),setTimeout((function(){a.addClass("MakeFloatingCart")}),800)}))},responsiveEmbed:function(){e("iframe").each((function(){if(this.width&&this.height){var e=parseFloat(this.width)/parseFloat(this.height),t=parseFloat(i.getComputedStyle(this.parentElement,null).width.replace("px",""));this.style.maxWidth="100%",this.style.maxHeight=Math.round(t/e).toString()+"px"}}))},onResize:function(){this.initTransparentHeader(),this.responsiveEmbed()},onScroll:function(){this.showBackToTop()},init:function(){var e=this;e.onResize=e.onResize.bind(e),e.onScroll=e.onScroll.bind(e),e.staticVariables(),e.onResize(),e.onScroll(),e.initTooltip(),e.initBackToTop(),e.initFormPlaceHolder(),e.initMobileMenu(),e.initStickyHeader(),e.initFixSticky()}},e(t).ready((function(){Themeoo.init(),l.resize(Themeoo.onResize).resize(),l.scroll(Themeoo.onScroll).scroll(),new Plyr(".player");var i=e(".grid-container");e(".lazy").lazy({effect:"fadeIn",effectTime:2e3,threshold:0,afterLoad:function(e){e.removeClass("lazy"),e.removeClass("loaded"),i.length>0&&i.imagesLoaded((function(){i.masonry({itemSelector:".post-grid-wrap",percentPosition:!0,fitWidth:!0})}))}})}))}(jQuery,window,document,themeoo_ajax); //# sourceMappingURL=themeoo.js.map