!function(e){"use strict";var t=window.VAMTAM=window.VAMTAM||{};t.debounce=function(e,t,i){var a;return function(){var n=this,o=arguments,s=i&&!a;clearTimeout(a),a=setTimeout(function(){a=null,i||e.apply(n,o)},t),s&&e.apply(n,o)}},t.offset=function(e){var t=e.getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,a=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+a,left:t.left+i}},t.scroll_handlers=[],t.latestKnownScrollY=0;var i=!1;t.addScrollHandler=function(e){requestAnimationFrame(function(){e.init(),t.scroll_handlers.push(e),e.measure(t.latestKnownScrollY),e.mutate(t.latestKnownScrollY)})},t.onScroll=function(){t.latestKnownScrollY=window.pageYOffset,i||(i=!0,requestAnimationFrame(function(){var e;for(e=0;e=t.length&&(window.GreenSockGlobals=window._gsQueue=window._gsDefine=null,window.vamtam_greensock_loaded=!0,function(){for(var e=0;e0)for(var o=0;o .mega-menu-wrap > .mega-menu-toggle"),l=document.querySelector("#main-menu");s&&s.addEventListener("click",function(e){e.preventDefault(),requestAnimationFrame(function(){var e=(r||s).classList.contains("mega-menu-open");s.classList.toggle("mega-menu-open",!e),(r||l).classList.toggle("mega-menu-open",!e)})});var m,c=document.getElementById("vamtam-overlay-menu"),d=document.querySelector(".vamtam-overlay-menu-toggle"),u=!1;document.body.addEventListener("click",function(e){var t=e.target.closest("button");t&&t.classList.contains("vamtam-overlay-menu-toggle")&&function(e){e.preventDefault(),requestAnimationFrame(function(){if(u=!u){m=d.cloneNode(!0);var e=d.getBoundingClientRect();document.body.appendChild(m),Object.assign(m.style,{position:"fixed",top:e.top+"px",left:e.left+"px"}),requestAnimationFrame(function(){c.classList.add("open"),m.classList.add("is-active")})}else m.classList.remove("is-active"),c.classList.remove("open"),setTimeout(function(){requestAnimationFrame(function(){m.remove()})},650)})}(e)});var p,h,f=e("#main-menu .sub-menu");if(f.length){var w=window.VAMTAM.debounce(function(){requestAnimationFrame(function(){var t=window.innerWidth;f.show().removeClass("invert-position").each(function(){e(this).offset().left+e(this).width()>t-50&&e(this).addClass("invert-position")}),f.css("display","")})},100);w(),window.addEventListener("resize",w,!1)}if(l&&l.classList.contains("vamtam-basic-menu")){var g=e(l).find(".sub-menu"),v=e(l).find(".menu-item > a");v.on("click",function(t){if(l.classList.contains("mega-menu-open")){var i=this.parentElement;if(!this.classList.contains("menu-item-on")&&i.classList.contains("menu-item-has-children")){t.preventDefault();var a=e(i).find(".sub-menu");g.attr("style",""),a.attr("style","display: block !important;"),v.not(this).removeClass("menu-item-on"),this.classList.add("menu-item-on")}}})}var y=function(){clearTimeout(p),p=setTimeout(b,200)},b=function(){window.removeEventListener("scroll",y,{passive:!0}),t.blockStickyHeaderAnimation=!1,setTimeout(function(){requestAnimationFrame(function(){document.body.classList.remove("no-sticky-header-animation-tmp")})},50),h&&h()},A=function(e,l,m){requestAnimationFrame(function(){var l=e.offset().top;t.blockStickyHeaderAnimation=!0;var c=0;i.hasClass("layout-standard")||i.hasClass("logo-text-menu")?c=l>=a.offset().top?i.find(".second-row-columns").height():i.height():n.hasClass("no-sticky-header-animation")?c=i.height():(c=o.height(),"stickyHeader"in t&&t.stickyHeader.singleRowStick(),document.body.classList.add("no-sticky-header-animation-tmp"));var d=l-t.admin_bar_fix-c;h=m,window.addEventListener("scroll",y,{passive:!0}),window.scroll({left:0,top:d,behavior:"smooth"}),e.attr("id")&&(history.pushState?history.pushState(null,null,"#"+e.attr("id")):window.location.hash=e.attr("id")),s&&s.classList.remove("mega-menu-open"),r&&r.classList.remove("mega-menu-open")})};if(window.FLBuilderLayout&&Object.assign(window.FLBuilderLayout,{_scrollToElement:function(e,t){var i=window.FLBuilderLayoutConfig.anchorLinkAnimations;e.length&&(s.classList.remove("mega-menu-open"),r.classList.remove("mega-menu-open"),A(e,i.duration,t))}}),e(document.body).on("click",".vamtam-animated-page-scroll[href], .vamtam-animated-page-scroll [href], .vamtam-animated-page-scroll [data-href], .mega-vamtam-animated-page-scroll[href], .mega-vamtam-animated-page-scroll [href], .mega-vamtam-animated-page-scroll [data-href]",function(t){var i=e(this).prop("href")||e(this).data("href"),a=e("#"+i.split("#")[1]),n=document.createElement("a");n.href=i,a.length&&n.pathname===window.location.pathname&&(s.classList.remove("mega-menu-open"),r.classList.remove("mega-menu-open"),A(a),t.preventDefault())}),""!==window.location.hash&&(e('.vamtam-animated-page-scroll[href*="'+window.location.hash+'"]').length||e('.vamtam-animated-page-scroll [href*="'+window.location.hash+'"]').length||e('.vamtam-animated-page-scroll [data-href*="'+window.location.hash+'"]').length||e('.mega-vamtam-animated-page-scroll[href*="'+window.location.hash+'"]').length||e('.mega-vamtam-animated-page-scroll [href*="'+window.location.hash+'"]').length||e('.mega-vamtam-animated-page-scroll [data-href*="'+window.location.hash+'"]').length)){var T=e(window.location.hash);T.length>0&&e(window).add("html, body, #page").scrollTop(0),setTimeout(function(){A(T)},400)}var L=[];if(e("#main-menu").find(".mega-menu, .menu").find(".maybe-current-menu-item, .mega-current-menu-item, .current-menu-item").each(function(){var t=e("> a",this);if(t.prop("href").indexOf("#")>-1){var i=t.prop("href").split("#")[1];"#"+i!==window.location.hash&&e(this).removeClass("mega-current-menu-item current-menu-item"),L.push([i,e(this),e("#"+i)])}}),L.length){var M=0,x=0,_=null;t.addScrollHandler({init:function(){},add_current_menu_item:function(e){for(var t=0;te&&a a",this.upmost_data[1]).text(),0!==t?"#"+this.upmost_data[0]:location.href.replace(location.hash,"")),_=e.extend({},this.upmost_data))):null===this.upmost_data&&null!==_&&this.add_current_menu_item(_[0])}})}})}(jQuery,window.VAMTAM),function(e,t){"use strict";window.addEventListener("load",function(){var t=document.querySelectorAll("[data-progressive-animation]");!t.length||document.body.classList.contains("fl-builder-active")||window.matchMedia("(prefers-reduced-motion: reduce)").matches||vamtam_greensock_wait(function(){e.addScrollHandler({defaultOptions:{origin:"center center",type:"progressive",exit:!0,delay:0,mobile:!1,pin:!1,pinTrigger:"center"},blockAnimations:!1,canActivate:function(t){return t||!e.MEDIA.layout["layout-below-max"]},buildTimeline:function(e,t){var i=new vamtamgs.TimelineLite({paused:!0}),a=e.getAttribute("data-progressive-animation");if("dummy"===a)i.fromTo(e,1,{opacity:1},{opacity:1},"0"),t&&i.to(e,1,{opacity:1},"1");else if("rotate"===a)i.fromTo(e,1,{rotation:-180},{rotation:0},"0"),t&&i.to(e,1,{rotation:180},"1");else if("fade"===a)i.fromTo(e,1,{opacity:0},{opacity:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{y:-100},"1.6");else if("move-from-top"===a)i.fromTo(e,1,{y:-160,opacity:0},{y:0,opacity:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{y:-100},"1.6");else if("move-from-bottom"===a)i.fromTo(e,1,{y:100,opacity:0},{y:0,opacity:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{y:-50},"1.6");else if("move-from-left"===a)i.fromTo(e,1,{x:-160,opacity:0},{x:0,opacity:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{x:-100},"1.6");else if("move-from-right"===a)i.fromTo(e,1,{x:160,opacity:0},{x:0,opacity:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{x:100},"1.6");else if("scale-in"===a)i.fromTo(e,1,{opacity:0,scaleX:0,scaleY:0},{opacity:1,scaleX:1,scaleY:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6");else if("scale-out"===a)i.fromTo(e,1,{opacity:0,scaleX:2,scaleY:2},{opacity:1,scaleX:1,scaleY:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6");else if("move-scale-in-from-top"===a)i.fromTo(e,1,{y:-160,opacity:0,scaleX:.6,scaleY:.6},{y:0,opacity:1,scaleX:1,scaleY:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{y:-100},"1.6");else if("move-scale-in-from-bottom"===a)i.fromTo(e,1,{y:160,opacity:0,scaleX:.6,scaleY:.6},{y:0,opacity:1,scaleX:1,scaleY:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{y:-100},"1.6");else if("move-scale-in-from-left"===a)i.fromTo(e,1,{x:-160,opacity:0,scaleX:.6,scaleY:.6},{x:0,opacity:1,scaleX:1,scaleY:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{x:-100},"1.6");else if("move-scale-in-from-right"===a)i.fromTo(e,1,{x:160,opacity:0,scaleX:.6,scaleY:.6},{x:0,opacity:1,scaleX:1,scaleY:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{x:100},"1.6");else if("move-scale-out-from-top"===a)i.fromTo(e,1,{y:-160,opacity:0,scaleX:1.6,scaleY:1.6},{y:0,opacity:1,scaleX:1,scaleY:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{y:-100},"1.6");else if("move-scale-out-from-bottom"===a)i.fromTo(e,1,{y:160,opacity:0,scaleX:1.6,scaleY:1.6},{y:0,opacity:1,scaleX:1,scaleY:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{y:-100},"1.6");else if("move-scale-out-from-left"===a)i.fromTo(e,1,{x:-160,opacity:0,scaleX:1.6,scaleY:1.6},{x:0,opacity:1,scaleX:1,scaleY:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{x:-100},"1.6");else if("move-scale-out-from-right"===a)i.fromTo(e,1,{x:160,opacity:0,scaleX:1.6,scaleY:1.6},{x:0,opacity:1,scaleX:1,scaleY:1},"0"),t&&i.to(e,.4,{opacity:0},"1.6"),t&&i.to(e,1,{x:100},"1.6");else if("rotate-from-top-right"===a)i.fromTo(e,1,{y:-200,x:120,rotation:-10,opacity:0},{y:0,x:0,rotation:0,opacity:1},"0"),t&&i.fromTo(e,1,{immediateRender:!1,y:0},{y:-70},"1.6");else if("page-title"===a){var n=e.querySelector(".page-header-line"),o=e.querySelector(".desc"),s=document.getElementById("sub-header").querySelector(".text-shadow");i.fromTo(e.querySelector("h1"),.9,{y:0,opacity:1},{y:-10,opacity:0,ease:vamtamgs.Quad.easeIn},"0.1"),o&&i.fromTo(o,1,{y:0,opacity:1},{y:30,opacity:0,ease:vamtamgs.Quad.easeIn},"0"),s&&i.to(s,1,{className:"text-shadow shadow-darkened",ease:vamtamgs.Quad.easeIn},"0"),n&&i.to(n,1,{scaleX:0,y:30,opacity:0,ease:vamtamgs.Quad.easeIn},"0")}else"custom"===a&&i.to(e,1,{className:e.getAttribute("data-progressive-animation-custom")},"1");return i},getPinTrigger:function(e){return"center"===e.options.pinTrigger?this.winHeight/2-e.height/2:"bottom"===e.options.pinTrigger?this.winHeight-e.height:"top"===e.options.pinTrigger?0:void 0},calculatePinDuration:function(t){if(e.MEDIA.layout["layout-below-max"])t.vamtamProgressiveTimeline.pinDuration=0;else if("parent"===t.vamtamProgressiveTimeline.options.pin){var i=t.closest(".fl-row-content");t.vamtamProgressiveTimeline.pinDuration=i.offsetHeight-(t.vamtamProgressiveTimeline.top-e.offset(i).top)}else t.vamtamProgressiveTimeline.pinDuration=+t.vamtamProgressiveTimeline.options.pin},onresize:function(){var i=this;this.winWidth!==window.innerWidth&&(this.winWidth=window.innerWidth,this.winHeight=window.innerHeight,this.blockAnimations=!0,requestAnimationFrame(function(){for(var a=0;a1||!l.options.exit?l.timeline.seek(1):l.timeline.seek(0):l.timeline.seek(1),l.timeline=null,l.pusher&&(l.pusher.parentElement.minHeight="",l.wrapper.classList.remove("vamtam-pin-active"),l.wrapper.style.display="block",s.push(l.wrapper)))}n=s,requestAnimationFrame(function(){n.forEach(function(e){e.style.display=""})}),i.blockAnimations=!1,i.measure(o),i.mutate(o)})}))},init:function(){var i,a;for(this.winHeight=window.innerHeight,this.winWidth=window.innerWidth,i=0;ia.top){var n,o,s=a.top+a.height/2;if(!1!==a.options.pin)"center"===a.options.pinTrigger?o=e+this.winHeight/2:"bottom"===a.options.pinTrigger?o=e+this.winHeight-a.height/2:"top"===a.options.pinTrigger&&(o=e+a.height/2),n=2*(o-s)/(s+a.pinDuration-a.height-s)-1;else n=1-(s-e)/Math.min(this.winHeight/2,s);n-=a.options.delay,"progressive"===a.options.type?(a.timeline.totalDuration()>1||!t[i].vamtamProgressiveTimeline.options.exit?(n=Math.min(1,Math.max(-1,n)),n+=1):n=Math.min(1,Math.max(0,n)),a.timeline.seek(n)):!a.used&&n>=0?(a.used=!0,a.timeline.timeScale(2).play()):a.used&&!a.timeline.isActive()&&a.timeline.progress()<1&&a.timeline.seek(1)}}}})})},{passive:!0})}(window.VAMTAM),function(e,t){"use strict";var i=!1;e.parallaxBackground={init:function(){this.rows=document.querySelectorAll(".fl-row-bg-parallax");for(var e=0;e .vamtam-video-frame").find("iframe, object, embed, video").each(function(){setTimeout(function(){requestAnimationFrame(function(){var t=this.offsetWidth;this.style.width="100%","0"===this.width&&"0"===this.height?this.style.height=9*t/16+"px":this.style.height=this.height*t/this.width+"px",e(this).trigger("vamtam-video-resized")}.bind(this))}.bind(this),50)}),setTimeout(function(){requestAnimationFrame(function(){e(".mejs-time-rail").css("width","-=1px")})},100)},window.addEventListener("resize",window.VAMTAM.debounce(window.VAMTAM.resizeElements,100),!1),window.VAMTAM.resizeElements()}),document.addEventListener("DOMContentLoaded",function(){if(window.VAMTAM.load_script(VAMTAM_FRONT.jspath+"build/low-priority.min.js"),!(window.CSS&&window.CSS.supports&&window.CSS.supports("(--foo: red)"))){window.VAMTAM.load_script(VAMTAM_FRONT.jspath+"plugins/thirdparty/css-variables-polyfill.js");var e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=VAMTAM_FRONT.jspath+"../css/dist/ie11.css",document.body.appendChild(e)}},{passive:!0})}(jQuery),function(e,t){"use strict";var i,a=window.CSS&&window.CSS.supports&&window.CSS.supports("(--foo: red)");function n(){this.removeEventListener("load",n),requestAnimationFrame(function(){!this.classList.contains("vamtam-lazyload-noparent")&&this.parentElement?this.parentElement.classList.add("image-loaded"):this.classList.add("image-loaded")}.bind(this))}function o(e){var t=e.dataset.srcset;t?(requestAnimationFrame(function(){e.addEventListener("load",n),e.srcset=t}),delete e.dataset.srcset):n.call(e)}function s(){var e,t=document.querySelectorAll("img[data-srcset]");if(!a){var n=document.querySelectorAll(".vamtam-responsive-wrapper:not(.image-loaded), .vamtam-lazyload-noparent:not(.image-loaded)");for(e=0;e0||e.isIntersecting)&&(o(e.target),i.unobserve(e.target))})},{rootMargin:"200px"})),document.addEventListener("DOMContentLoaded",function(){new MutationObserver(s).observe(document.body,{childList:!0,subtree:!0}),s()})}(window.VAMTAM),function(e,t){"use strict";e(function(){var t="cubeportfolio"in e.fn,i=!1,a=e(window),n=function(e){requestAnimationFrame(function(){var t=e.find(".cbp-wrapper"),i=e.find(".cbp-wrapper-outer");t.width()<=i.width()?e.addClass("vamtam-cube-narrow"):e.removeClass("vamtam-cube-narrow")})},o=function(){e(".vamtam-cubeportfolio[data-options]:not(.vamtam-cube-loaded)").filter(":visible").each(function(){var t=e(this),i=t.data("options");"singlePageCallback"in i||(i.singlePageDelegate=null),i.singlePageCallback=r[i.singlePageCallback]||null,t.on("initComplete.cbp",function(){"slider"===i.layoutMode&&(n(t),a.on("resize.vamtamcube",function(){n(t)}))}),t.addClass("vamtam-cube-loaded").cubeportfolio(i),t.on("vamtam-video-resized","iframe, object, embed, video",function(){t.data("cubeportfolio").layoutAndAdjustment()}),this.addEventListener("vamtamlazyloaded",function(){t.data("cubeportfolio").layoutAndAdjustment()})})},s=function(){if(document.getElementsByClassName("vamtam-cubeportfolio").length)if(t)o();else if(!i){i=!0;var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=VAMTAM_FRONT.cube_path,a.onload=function(){t="cubeportfolio"in e.fn,o()},document.getElementsByTagName("script")[0].before(a)}},r={portfolio:function(t){var i=this;e.ajax({url:t,type:"GET",dataType:"html"}).done(function(t){i.updateSinglePage(t),s(),e(document).trigger("vamtam-single-page-project-loaded")}).fail(function(){i.updateSinglePage("AJAX Error! Please refresh the page!")})}};e(document).on("vamtam-attempt-cube-load",s),s(),window.addEventListener("resize",window.VAMTAM.debounce(s,100),!1),window.addEventListener("load",function(){e(".cbp").each(function(){try{this.data("cubeportfolio").layoutAndAdjustment()}catch(e){}})},!1)})}(jQuery),function(e,t){"use strict";e(function(){var t=e(".fixed-header-box .cart-dropdown"),i=e(".vamtam-cart-dropdown-link"),a=e(".products",i),n=e(".widget",t),o=!1;e(document.body).on("added_to_cart removed_from_cart wc_fragments_refreshed wc_fragments_loaded",function(){if(parseInt(Cookies.get("woocommerce_items_in_cart")||0,10)>0){for(var e=0,i=document.querySelector(".widget_shopping_cart").querySelectorAll("li .quantity"),n=0;n=0?e:"",a.text(e),a.removeClass("cart-empty"),t.removeClass("hidden")}else{var o=t.hasClass("show-if-empty");a.addClass("cart-empty"),a.text("0"),t.toggleClass("hidden",!o)}});var s=0,r=function(){s=+new Date,t.addClass("state-hover"),n.stop(!0,!0).fadeIn(300,function(){o=!0})},l=function(){var e=new Date-s;e>1e3?(t.removeClass("state-hover"),n.stop(!0,!0).fadeOut(300,function(){o=!1})):setTimeout(function(){t.is(":hover")||l()},1e3-e)};t.on("mouseenter",function(){r()}).on("mouseleave",function(){l()}),i.not(".no-dropdown").on("click",function(e){o?l():r(),e.preventDefault()})})}(jQuery);