| 1 |
- !function(e){"use strict";var t=window.VAMTAM=window.VAMTAM||{};t.debounce=function(e,t,i){var n;return function(){var o=this,a=arguments,r=i&&!n;clearTimeout(n),n=setTimeout(function(){n=null,i||e.apply(o,a)},t),r&&e.apply(o,a)}},t.offset=function(e){var t=e.getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+n,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.scroll_handlers.length;e++)t.scroll_handlers[e].measure(t.latestKnownScrollY);for(e=0;e<t.scroll_handlers.length;e++)t.scroll_handlers[e].mutate(t.latestKnownScrollY);i=!1}))},window.addEventListener("scroll",t.onScroll,{passive:!0}),t.load_script=function(e,t){var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,t&&(i.onload=t),document.getElementsByTagName("script")[0].before(i)}}(),function(e,t){"use strict";window.vamtam_yepnope=function(e,t){function i(){}function n(e){return Object(e)===e}function o(e){return"string"==typeof e}function a(){c&&c.parentNode||(c=t.getElementsByTagName("script")[0])}function r(r,s){var u,f,h;o(r)?u=r:n(r)&&(u=r._url||r.src,f=r.attrs,h=r.timeout),s=s||i,f=f||{};var g,v,w=t.createElement("script");for(v in h=h||l.errorTimeout,w.src=u,p&&(w.event="onclick",w.id=w.htmlFor=f.id||"yn_"+d++),f)w.setAttribute(v,f[v]);w.onreadystatechange=w.onload=function(){if(!g&&(!(t=w.readyState)||"loaded"==t||"complete"==t||"uninitialized"==t)){if(g=1,p)try{w.onclick()}catch(e){}s.call(e)}var t;w.onload=w.onreadystatechange=w.onerror=null},w.onerror=function(){g=1,s(new Error("Script Error: "+u))},m(function(){g||(g=1,s(new Error("Timeout: "+u)),w.parentNode.removeChild(w))},h),a(),c.parentNode.insertBefore(w,c)}function s(r,s){var l,d,u={};n(r)?(l=r._url||r.href,u=r.attrs||{}):o(r)&&(l=r);var p=t.createElement("link");for(d in s=s||i,p.href=l,p.rel="stylesheet",p.media="only x",p.type="text/css",m(function(){p.media=u.media||"all"}),u)p.setAttribute(d,u[d]);a(),c.parentNode.appendChild(p),m(function(){s.call(e)})}function l(e,t,i){var o;n(e)&&(e=(o=e).src||o.href),e=l.urlFormatter(e,t),o?o._url=e:o={_url:e};var a,c=(a=e.split("?")[0]).substr(a.lastIndexOf(".")+1);if("js"===c)r(o,i);else{if("css"!==c)throw new Error("Unable to determine filetype.");s(o,i)}}var c,m=e.setTimeout,d=0,u={}.toString,p=!(!t.attachEvent||e.opera&&"[object Opera]"==u.call(e.opera));return l.errorTimeout=1e4,l.injectJs=r,l.injectCss=s,l.urlFormatter=function(e,t){var i=e,n=[],o=[];for(var a in t)t.hasOwnProperty(a)&&(t[a]?n.push(encodeURIComponent(a)):o.push(encodeURIComponent(a)));return(n.length||o.length)&&(i+="?"),n.length&&(i+="yep="+n.join(",")),o.length&&(i+=(n.length?"&":"")+"nope="+o.join(",")),i},l}(window,document);var i=[];document.addEventListener("DOMContentLoaded",function(){var e=[];"punchgs"in window?(window.vamtamgs=window.GreenSockGlobals=window.punchgs,window._gsQueue=window._gsDefine=null):(window.vamtamgs=window.GreenSockGlobals={},window._gsQueue=window._gsDefine=null,e.push(window.VAMTAM_FRONT.jspath+"plugins/thirdparty/gsap/TweenLite.min.js",window.VAMTAM_FRONT.jspath+"plugins/thirdparty/gsap/TimelineLite.min.js",window.VAMTAM_FRONT.jspath+"plugins/thirdparty/gsap/plugins/CSSPlugin.min.js")),window.vamtam_greensock_loaded=!1,"scroll-behavior"in document.documentElement.style||e.push(window.VAMTAM_FRONT.jspath+"plugins/thirdparty/smoothscroll.js");var t=0,n=function(){++t>=e.length&&(window.GreenSockGlobals=window._gsQueue=window._gsDefine=null,window.vamtam_greensock_loaded=!0,function(){for(var e=0;e<i.length;e++)i[e].call(window)}())};if(e.length>0)for(var o=0;o<e.length;o++)vamtam_yepnope.injectJs(e[o],n);else n()}),window.vamtam_greensock_wait=function(e){var t=function(){requestAnimationFrame(e)};window.vamtam_greensock_loaded?t():i.push(t)}}(jQuery),function(){"use strict";var e,t,i=function(){for(var e,t,i=Array.prototype.slice.call(arguments),n=document.createDocumentFragment();t=i.shift();)if("string"==typeof t)for((e=document.createElement("div")).innerHTML=t;e.firstChild;)n.appendChild(e.firstChild);else n.appendChild(t);return n},n={before:function(){var e=i.apply(this,arguments);this.parentNode.insertBefore(e,this)},after:function(){var e=i.apply(this,arguments);this.parentNode.insertBefore(e,this.nextSibling)},replaceWith:function(){if(this.parentNode){var e=i.apply(this,arguments);this.parentNode.replaceChild(e,this)}},remove:function(){this.parentNode&&this.parentNode.removeChild(this)}},o=["before","after","replaceWith","remove"];["Element","DocumentType","CharacterData"].forEach(function(e){o.forEach(function(t){if(window[e]){if(window[e].prototype[t])return;window[e].prototype[t]=n[t]}})}),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(e){e.hasOwnProperty("prepend")||Object.defineProperty(e,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach(function(e){var i=e instanceof Node;t.appendChild(i?e:document.createTextNode(String(e)))}),this.insertBefore(t,this.firstChild)}})}),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])}return t}),window.Element&&((e=Element.prototype).matches=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.msMatchesSelector||function(e){for(var t=(this.parentNode||this.document).querySelectorAll(e),i=-1;t[++i]&&t[i]!=this;);return!!t[i]}),window.Element&&((t=Element.prototype).closest=t.closest||function(e){for(var t=this;t.matches&&!t.matches(e);)t=t.parentNode;return t.matches?t:null})}(),"document"in self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))?function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var i,n=arguments.length;for(i=0;i<n;i++)e=arguments[i],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:i.call(this,e)}}e=null}():function(e){"use strict";if("Element"in e){var t="classList",i="prototype",n=e.Element[i],o=Object,a=String[i].trim||function(){return this.replace(/^\s+|\s+$/g,"")},r=Array[i].indexOf||function(e){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===e)return t;return-1},s=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},l=function(e,t){if(""===t)throw new s("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new s("INVALID_CHARACTER_ERR","String contains an invalid character");return r.call(e,t)},c=function(e){for(var t=a.call(e.getAttribute("class")||""),i=t?t.split(/\s+/):[],n=0,o=i.length;n<o;n++)this.push(i[n]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},m=c[i]=[],d=function(){return new c(this)};if(s[i]=Error[i],m.item=function(e){return this[e]||null},m.contains=function(e){return-1!==l(this,e+="")},m.add=function(){for(var e,t=arguments,i=0,n=t.length,o=!1;e=t[i]+"",-1===l(this,e)&&(this.push(e),o=!0),++i<n;);o&&this._updateClassName()},m.remove=function(){var e,t,i=arguments,n=0,o=i.length,a=!1;do{for(e=i[n]+"",t=l(this,e);-1!==t;)this.splice(t,1),a=!0,t=l(this,e)}while(++n<o);a&&this._updateClassName()},m.toggle=function(e,t){e+="";var i=this.contains(e),n=i?!0!==t&&"remove":!1!==t&&"add";return n&&this[n](e),!0===t||!1===t?t:!i},m.toString=function(){return this.join(" ")},o.defineProperty){var u={get:d,enumerable:!0,configurable:!0};try{o.defineProperty(n,t,u)}catch(e){-2146823252===e.number&&(u.enumerable=!1,o.defineProperty(n,t,u))}}else o[i].__defineGetter__&&n.__defineGetter__(t,d)}}(self)),function(e){"use strict";window.VAMTAM=window.VAMTAM||{},window.VAMTAM.MEDIA=window.VAMTAM.MEDIA||{layout:{}};var t=[{min:0,max:window.VAMTAM_FRONT.beaver_small,className:"layout-small"},{min:window.VAMTAM_FRONT.beaver_responsive+1,max:1/0,className:"layout-max"},{min:window.VAMTAM_FRONT.beaver_responsive+1,max:window.VAMTAM_FRONT.content_width,className:"layout-max-low"},{min:0,max:window.VAMTAM_FRONT.beaver_responsive,className:"layout-below-max"}];document.addEventListener("DOMContentLoaded",function(){if(document.body.classList.contains("responsive-layout")&&"matchMedia"in window){var e=t.length,i=window.VAMTAM.debounce(function(){for(var i={},n=0;n<e;n++){var o="(min-width: "+t[n].min+"px)";t[n].max!==1/0&&(o+=" and (max-width: "+t[n].max+"px)"),window.matchMedia(o).matches?i[t[n].className]=!0:i[t[n].className]=!1}window.VAMTAM.MEDIA.layout=i},100);window.addEventListener("resize",i,!1),window.addEventListener("load",i,!1),i()}else window.VAMTAM.MEDIA.layout={"layout-max":!0,"layout-below-max":!1}})}(),function(e,t,i){"use strict";vamtam_greensock_wait(function(){var i=e("header.main-header"),n=e("#main"),o=e("body"),a=i.find(".header-contents"),r=document.getElementById("vamtam-megamenu-main-menu-toggle"),s=document.querySelector("#main-menu > .mega-menu-wrap > .mega-menu-toggle");r&&r.addEventListener("click",function(e){e.preventDefault(),requestAnimationFrame(function(){var e=s.classList.contains("mega-menu-open");r.classList.toggle("mega-menu-open",!e),s.classList.toggle("mega-menu-open",!e)})});var l,c=document.getElementById("vamtam-overlay-menu"),m=document.querySelector(".vamtam-overlay-menu-toggle"),d=!1;document.body.addEventListener("click",function(e){var t=e.target.closest("button");t&&t.classList.contains("vamtam-overlay-menu-toggle")&&(e.preventDefault(),requestAnimationFrame(function(){if(d=!d){l=m.cloneNode(!0);var e=m.getBoundingClientRect();document.body.appendChild(l),Object.assign(l.style,{position:"fixed",top:e.top+"px",left:e.left+"px"}),requestAnimationFrame(function(){c.classList.add("open"),l.classList.add("is-active")})}else l.classList.remove("is-active"),c.classList.remove("open"),setTimeout(function(){requestAnimationFrame(function(){l.remove()})},650)}))});var u,p,f=e("#main-menu .sub-menu, #top-nav-wrapper .sub-menu");window.addEventListener("resize",window.VAMTAM.debounce(function(){var t=window.innerWidth;f.show().removeClass("invert-position").each(function(){e(this).offset().left+e(this).width()>t&&e(this).addClass("invert-position")}),f.css("display","")},100),!1);var h=function(){clearTimeout(u),u=setTimeout(g,200)},g=function(){window.removeEventListener("scroll",h,{passive:!0}),t.blockStickyHeaderAnimation=!1,setTimeout(function(){requestAnimationFrame(function(){document.body.classList.remove("no-sticky-header-animation-tmp")})},50),p&&p()},v=function(e,l,c){requestAnimationFrame(function(){var l=e.offset().top;t.blockStickyHeaderAnimation=!0;var m=0;i.hasClass("layout-standard")||i.hasClass("logo-text-menu")?m=l>=n.offset().top?i.find(".second-row-columns").height():i.height():o.hasClass("no-sticky-header-animation")?m=i.height():(m=a.height(),"stickyHeader"in t&&t.stickyHeader.singleRowStick(),document.body.classList.add("no-sticky-header-animation-tmp"));var d=l-t.admin_bar_fix-m;p=c,window.addEventListener("scroll",h,{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")),r&&r.classList.remove("mega-menu-open"),s&&s.classList.remove("mega-menu-open")})};if(window.FLBuilderLayout&&Object.assign(window.FLBuilderLayout,{_scrollToElement:function(e,t){var i=window.FLBuilderLayoutConfig.anchorLinkAnimations;e.length&&(r.classList.toggle("mega-menu-open",!1),s.classList.toggle("mega-menu-open",!1),v(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"),n=e("#"+i.split("#")[1]),o=document.createElement("a");o.href=i,n.length&&o.pathname===window.location.pathname&&(r.classList.toggle("mega-menu-open",!1),s.classList.toggle("mega-menu-open",!1),v(n),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 w=e(window.location.hash);w.length>0&&e(window).add("html, body, #page").scrollTop(0),setTimeout(function(){v(w)},400)}var y=[];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"),y.push([i,e(this),e("#"+i)])}}),y.length){var b=0,A=0,T=null;t.addScrollHandler({init:function(){},add_current_menu_item:function(e){for(var t=0;t<y.length;t++)y[t][0]===e&&y[t][1][0].classList.add("mega-current-menu-item","current-menu-item")},measure:function(e){b=window.innerHeight,A=document.body.offsetHeight,this.upmost=1/0,this.upmost_data=null;for(var t=0;t<y.length;t++){var i=y[t][2];if(i.length){var n=i.offset().top+10;n>e&&n<this.upmost&&(n<e+b/2||n<e+b&&e+b===A)&&(this.upmost_data=y[t],this.upmost=n)}}},mutate:function(t){for(var i=0;i<y.length;i++)y[i][2].length&&(y[i][1][0].classList.remove("mega-current-menu-item","current-menu-item"),y[i][1][0].childNodes[0].blur());this.upmost_data?(this.add_current_menu_item(this.upmost_data[0]),"history"in window&&(null!==T?T[0]:"")!==this.upmost_data[0]&&(window.history.pushState(this.upmost_data[0],e("> a",this.upmost_data[1]).text(),0!==t?"#"+this.upmost_data[0]:location.href.replace(location.hash,"")),T=e.extend({},this.upmost_data))):null===this.upmost_data&&null!==T&&this.add_current_menu_item(T[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")&&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}),n=e.getAttribute("data-progressive-animation");if("dummy"===n)i.fromTo(e,1,{opacity:1},{opacity:1},"0"),t&&i.to(e,1,{opacity:1},"1");else if("rotate"===n)i.fromTo(e,1,{rotation:-180},{rotation:0},"0"),t&&i.to(e,1,{rotation:180},"1");else if("fade"===n)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"===n)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"===n)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"===n)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"===n)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"===n)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"===n)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"===n)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"===n)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"===n)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"===n)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"===n)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"===n)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"===n)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"===n)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"===n)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"===n){var o=e.querySelector(".page-header-line"),a=e.querySelector(".desc"),r=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"),a&&i.fromTo(a,1,{y:0,opacity:1},{y:30,opacity:0,ease:vamtamgs.Quad.easeIn},"0"),r&&i.fromTo(r,1,{opacity:.3},{opacity:.7,ease:vamtamgs.Quad.easeIn},"0"),o&&i.to(o,1,{scaleX:0,y:30,opacity:0,ease:vamtamgs.Quad.easeIn},"0")}else"custom"===n&&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.winHeight=window.innerHeight,this.blockAnimations=!0,requestAnimationFrame(function(){for(var n=0;n<t.length;n++)t[n].vamtamProgressiveTimeline.timeline&&t[n].vamtamProgressiveTimeline.timeline.progress(0),t[n].vamtamProgressiveTimeline.wrapper&&(Object.assign(t[n].vamtamProgressiveTimeline.pusher.style,{top:"",width:"",height:""}),Object.assign(t[n].vamtamProgressiveTimeline.wrapper.style,{top:"",width:"",height:"",position:""}));requestAnimationFrame(function(){var n,o,a=window.pageYOffset,r=[];for(n=0;n<t.length;n++){var s=e.offset(t[n]).top;Object.assign(t[n].vamtamProgressiveTimeline,{top:s,height:t[n].offsetHeight,width:t[n].offsetWidth}),i.calculatePinDuration(t[n])}for(n=0;n<t.length;n++){var l=t[n].vamtamProgressiveTimeline;i.canActivate(l.options.mobile)?(l.timeline=i.buildTimeline(t[n],"progressive"===l.options.type&&l.options.exit),l.pusher&&(l.pusher.parentElement.minHeight=l.options.pin+"px",l.pusher.style.height=l.pinDuration+"px",l.pusher.classList.contains("fl-col")||(l.pusher.style.width=l.width+"px"),l.wrapper.style.height=l.height+"px",l.wrapper.style.top=i.getPinTrigger(l)+"px",l.wrapper.classList.add("vamtam-pin-active"))):l.timeline&&(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",r.push(l.wrapper)))}o=r,requestAnimationFrame(function(){o.forEach(function(e){e.style.display=""})}),i.blockAnimations=!1,i.measure(a),i.mutate(a)})})},init:function(){var i,n;for(this.winHeight=window.innerHeight,i=0;i<t.length;i++){var o=Object.assign({},this.defaultOptions,JSON.parse(t[i].getAttribute("data-vamtam-animation-options"))||{}),a=e.offset(t[i]).top;t[i].vamtamProgressiveTimeline={top:a,height:t[i].offsetHeight,width:t[i].offsetWidth,options:o},this.calculatePinDuration(t[i]),t[i].style.transformOrigin=t[i].vamtamProgressiveTimeline.options.origin,this.canActivate(o.mobile)?t[i].vamtamProgressiveTimeline.timeline=this.buildTimeline(t[i],"progressive"===o.type&&o.exit):t[i].vamtamProgressiveTimeline.timeline=null}for(i=0;i<t.length;i++){var r=t[i].vamtamProgressiveTimeline;(n=t[i].closest(".fl-row"))&&n.classList.add("vamtam-animation-inside"),!1!==r.options.pin&&(n.classList.add("vamtam-pin-inside"),r.pusher=document.createElement("div"),r.pusher.classList.add("vamtam-pin-pusher"),t[i].classList.contains("fl-col")&&(r.pusher.classList.add("fl-col"),r.pusher.classList.add("fl-node-"+t[i].attributes["data-node"].value),r.pusher.style.width=""),r.wrapper=document.createElement("div"),r.wrapper.classList.add("vamtam-pin-wrapper"),r.wrapper.style.willChange="transform, position",r.wrapper.style.height=r.height+"px",r.wrapper.style.top=this.getPinTrigger(r)+"px",t[i].before(r.pusher),r.wrapper.appendChild(t[i]),r.pusher.appendChild(r.wrapper),t[i].style.width="100%",r.pusher.parentElement.style.position="relative",r.timeline&&"parent"!==r.options.pin&&(r.pusher.parentElement.style.minHeight=r.options.pin+"px"),this.canActivate(r.options.mobile)&&(Object.assign(r.pusher.style,{width:r.width+"px",height:r.pinDuration+"px"}),r.wrapper.classList.add("vamtam-pin-active")))}window.addEventListener("resize",window.VAMTAM.debounce(this.onresize,100).bind(this),!1)},measure:function(){},mutate:function(e){if(!this.blockAnimations)for(var i=0;i<t.length;i++){var n=t[i].vamtamProgressiveTimeline;if(n.timeline&&e+this.winHeight>n.top){var o,a,r=n.top+n.height/2;if(!1!==n.options.pin)"center"===n.options.pinTrigger?a=e+this.winHeight/2:"bottom"===n.options.pinTrigger?a=e+this.winHeight-n.height/2:"top"===n.options.pinTrigger&&(a=e+n.height/2),o=2*(a-r)/(r+n.pinDuration-n.height-r)-1;else o=1-(r-e)/Math.min(this.winHeight/2,r);o-=n.options.delay,"progressive"===n.options.type?(n.timeline.totalDuration()>1||!t[i].vamtamProgressiveTimeline.options.exit?(o=Math.min(1,Math.max(-1,o)),o+=1):o=Math.min(1,Math.max(0,o)),n.timeline.seek(o)):!n.used&&o>=0?(n.used=!0,n.timeline.timeScale(2).play()):n.used&&n.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<this.rows.length;e++){var t=this.rows[e],i=t.getAttribute("data-parallax-image");if(!t.vamtamParallaxLoaded&&i){var n=new Image;n.addEventListener("load",this.loadImageCallback),n.row=t,n.src=i}}window.addEventListener("resize",window.VAMTAM.debounce(this.onresize,100).bind(this),!1),window.addEventListener("load",window.VAMTAM.debounce(this.onresize,100).bind(this),!1),this.onresize()},loadImageCallback:function(e){var t=e.target.row,i=t.firstElementChild,n=document.createElement("div");n.classList.add("vamtam-parallax-bg"),Object.assign(n.style,{backgroundImage:"url("+e.target.src+")",backgroundSize:"cover",backgroundRepeat:"repeat",position:"absolute",top:"-300px",right:0,bottom:"-300px",left:0,"will-change":"transform"}),requestAnimationFrame(function(){t.vamtamParallaxLoaded=!0;var e=i.querySelector(".fl-node-content");e.before(n),i.style.overflow="hidden",e.style.zIndex=1,e.style.position="relative"})},onresize:function(){requestAnimationFrame(function(){for(var t=window.pageYOffset,i=0;i<this.rows.length;i++)this.rows[i].vamtamParallaxOffset=e.offset(this.rows[i].firstElementChild);this.measure(t),this.mutate(t)}.bind(this))},measure:function(){},mutate:function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].vamtamParallaxLoaded){var i=this.rows[t].getAttribute("data-parallax-speed"),n=-(e-this.rows[t].vamtamParallaxOffset.top)/i;this.rows[t].firstElementChild.firstElementChild.style.transform="translateY("+n+"px)"}}},window.FLBuilderLayout&&Object.assign(window.FLBuilderLayout,{_initParallaxBackgrounds:function(){if(!i)if(i=!0,document.body.classList.contains("fl-builder-active"))for(var t=document.querySelectorAll(".fl-row-bg-parallax"),n=0;n<t.length;n++){var o=t[n],a=o.getAttribute("data-parallax-image");Object.assign(o.style,{backgroundImage:"url("+a+")",backgroundSize:"cover",backgroundRepeat:"repeat"})}else e.addScrollHandler(e.parallaxBackground)},_scrollParallaxBackgrounds:function(){jQuery(window).off("scroll.fl-bg-parallax")}})}(window.VAMTAM),function(e,t){"use strict";window.VAMTAM=window.VAMTAM||{},e(function(){var t,i;window.VAMTAM.admin_bar_fix=document.body.classList.contains("admin-bar")?32:0,/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&requestAnimationFrame(function(){document.documentElement.classList.add("ios-safari")}),"FLBuilder"in window&&FLBuilder.addHook("didPublishLayout",function(){window.dispatchEvent(new Event("resize"))}),i=document.querySelector(".boxed-layout"),window.addEventListener("scroll",function(){clearTimeout(t),requestAnimationFrame(function(){i.style.pointerEvents="none",t=setTimeout(function(){i.style.pointerEvents=""},300)})},{passive:!0}),window.VAMTAM.resizeElements=function(){e(".portfolio-image-wrapper,\t\t\t\t.boxed-layout .media-inner,\t\t\t\t.boxed-layout .loop-wrapper.news .thumbnail,\t\t\t\t.boxed-layout .portfolio-image .thumbnail,\t\t\t\t.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;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 a(){var e,t=document.querySelectorAll("img[data-srcset]");if(i)for(e=0;e<t.length;e++)"vamtamLazyLoaded"in t[e]||(t[e].vamtamLazyLoaded=!0,i.observe(t[e]));else for(e=0;e<t.length;e++)"vamtamLazyLoaded"in t[e]||(t[e].vamtamLazyLoaded=!0,o(t[e]));var n=document.querySelectorAll(".vamtam-responsive-wrapper:not(.image-loaded) img:not([srcset])");for(e=0;e<n.length;e++)"vamtamLazyLoaded"in n[e]||(n[e].vamtamLazyLoaded=!0,o(n[e]))}"IntersectionObserver"in window&&(i=new IntersectionObserver(function(e){e.forEach(function(e){(e.intersectionRatio>0||e.isIntersecting)&&(o(e.target),i.unobserve(e.target))})},{rootMargin:"200px"})),document.addEventListener("DOMContentLoaded",function(){new MutationObserver(a).observe(document.body,{childList:!0,subtree:!0}),a()})}(window.VAMTAM),function(e,t){"use strict";e(function(){var t="cubeportfolio"in e.fn,i=!1,n=e(window),o=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")})},a=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.singlePageCallback=s[i.singlePageCallback]),t.on("initComplete.cbp",function(){"slider"===i.layoutMode&&(o(t),n.on("resize.vamtamcube",function(){o(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()})})},r=function(){if(document.getElementsByClassName("vamtam-cubeportfolio").length)if(t)a();else if(!i){i=!0;var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=VAMTAM_FRONT.cube_path,n.onload=function(){t="cubeportfolio"in e.fn,a()},document.getElementsByTagName("script")[0].before(n)}},s={portfolio:function(t){var i=this;e.ajax({url:t,type:"GET",dataType:"html"}).done(function(t){i.updateSinglePage(t),r(),e(document).trigger("vamtam-single-page-project-loaded")}).fail(function(){i.updateSinglePage("AJAX Error! Please refresh the page!")})}};e(document).bind("vamtam-attempt-cube-load",r),r(),window.addEventListener("resize",window.VAMTAM.debounce(r,100),!1)})}(jQuery),function(e,t){"use strict";e(function(){var t=e(".fixed-header-box .cart-dropdown"),i=e(".vamtam-cart-dropdown-link"),n=e(".products",i),o=e(".widget",t),a=!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"),o=0;o<i.length;o++)e+=parseInt(i[o].innerHTML.split("<span")[0].replace(/[^\d]/g,""),10);e=e>=0?e:"",n.text(e),n.removeClass("cart-empty"),t.removeClass("hidden")}else{var a=t.hasClass("show-if-empty");n.addClass("cart-empty"),n.text("0"),t.toggleClass("hidden",!a)}});var r=0,s=function(){r=+new Date,t.addClass("state-hover"),o.stop(!0,!0).fadeIn(300,function(){a=!0})},l=function(){var e=new Date-r;e>1e3?(t.removeClass("state-hover"),o.stop(!0,!0).fadeOut(300,function(){a=!1})):setTimeout(function(){t.is(":hover")||l()},1e3-e)};t.on("mouseenter",function(){s()}).on("mouseleave",function(){l()}),i.not(".no-dropdown").bind("click",function(e){a?l():s(),e.preventDefault()})})}(jQuery);
|