Edit File: themify.builder.script.min.js
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,h,f){b instanceof String&&(b=String(b));for(var m=b.length,p=0;p<m;p++){var a=b[p];if(h.call(f,a,p,b))return{i:p,v:a}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,h,f){b!=Array.prototype&&b!=Object.prototype&&(b[h]=f.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b}; $jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(b,h,f,m){if(h){f=$jscomp.global;b=b.split(".");for(m=0;m<b.length-1;m++){var p=b[m];p in f||(f[p]={});f=f[p]}b=b[b.length-1];m=f[b];h=h(m);h!=m&&null!=h&&$jscomp.defineProperty(f,b,{configurable:!0,writable:!0,value:h})}};$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(b,f){return $jscomp.findInternal(this,b,f).v}},"es6-impl","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(b){return $jscomp.SYMBOL_PREFIX+(b||"")+$jscomp.symbolCounter_++}; $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.iterator;b||(b=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[b]&&$jscomp.defineProperty(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(b){var h=0;return $jscomp.iteratorPrototype(function(){return h<b.length?{done:!1,value:b[h++]}:{done:!0}})}; $jscomp.iteratorPrototype=function(b){$jscomp.initSymbolIterator();b={next:b};b[$jscomp.global.Symbol.iterator]=function(){return this};return b};$jscomp.iteratorFromArray=function(b,h){$jscomp.initSymbolIterator();b instanceof String&&(b+="");var f=0,m={next:function(){if(f<b.length){var p=f++;return{value:h(p,b[p]),done:!1}}m.next=function(){return{done:!0,value:void 0}};return m.next()}};m[Symbol.iterator]=function(){return m};return m}; $jscomp.polyfill("Array.prototype.keys",function(b){return b?b:function(){return $jscomp.iteratorFromArray(this,function(b){return b})}},"es6-impl","es3");var ThemifyBuilderModuleJs; (function(b){var h=Array.prototype.slice,f=Array.prototype.splice,m={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1},p=b(window),a=b(document),c=[],e=p.height(),d,g=function(){var t=c.length;if(Themify.is_builder_active||0===t)window.addEventListener("scroll",g,{passive:!0,capture:!0}),p.on("tfsmartresize.sticky",l),window.MutationObserver&&d&&d.disconnect(),c=[];else for(var r=p.scrollTop(),w=a.height(), n=w-e,n=r>n?n-r:0,f=0;f<t;++f){var k=c[f],h=k.stickyWrapper.offset().top,m=k.stickyElement.outerHeight(),h=h-k.topSpacing-n;k.stickyWrapper.css("height",m);if(r<=h)null!==k.currentTop&&(k.stickyElement.css({width:"",position:"",top:""}).parent().removeClass(k.className),k.stickyElement.trigger("sticky-end",[k]),k.currentTop=null);else{h=w-m-k.topSpacing-k.bottomSpacing-r-n;h=0>h?h+k.topSpacing:k.topSpacing;if(k.currentTop!==h){var y=k.stickyElement.width();if(k.getWidthFrom)var z=k.stickyElement.innerWidth()- y,y=b(k.getWidthFrom).width()-z||y;else k.widthFromWrapper&&(y=k.stickyWrapper.width());k.stickyElement.css({width:y,position:"fixed",top:h}).parent().addClass(k.className);null===k.currentTop?k.stickyElement.trigger("sticky-start",[k]):k.stickyElement.trigger("sticky-update",[k]);k.currentTop===k.topSpacing&&k.currentTop>h||null===k.currentTop&&h<k.topSpacing?k.stickyElement.trigger("sticky-bottom-reached",[k]):null!==k.currentTop&&h===k.topSpacing&&k.currentTop<h&&k.stickyElement.trigger("sticky-bottom-unreached", [k]);k.currentTop=h}y=k.stickyWrapper.parent();z=k.stickyElement.offset().top;z+m>=y.offset().top+y.outerHeight()&&z<=k.topSpacing?k.stickyElement.css({position:"absolute",top:"",bottom:0}):k.stickyElement.css({position:"fixed",top:h,bottom:""})}}},l=function(){var a=c.length;if(0<a){e=p.height();for(var d=0;d<a;d++){var g=c[d],n=null;g.getWidthFrom&&g.responsiveWidth?n=b(g.getWidthFrom).width():g.widthFromWrapper&&(n=g.stickyWrapper.width());null!=n&&g.stickyElement.css("width",n)}}},n={init:function(a){return this.each(function(){var d= b.extend({},m,a),g=b(this),e=g.prop("id"),t=e?e+"-"+m.wrapperClassName:m.wrapperClassName,l=b("<div></div>").prop("id",t).addClass(d.wrapperClassName);g.wrapAll(function(){if(0===b(this).parent("#"+t).length)return l});e=g.parent();d.center&&e.css({width:g.outerWidth(),marginLeft:"auto",marginRight:"auto"});"right"===g.css("float")&&g.css({"float":"none"}).parent().css({"float":"right"});d.stickyElement=g;d.stickyWrapper=e;d.currentTop=null;c.push(d);n.setWrapperHeight(this);n.setupChangeListeners(this)})}, setWrapperHeight:function(a){a=b(a);var d=a.parent();d&&d.css("height",a.outerHeight())},setupChangeListeners:function(a){window.MutationObserver?(d=new window.MutationObserver(function(b){(b[0].addedNodes.length||b[0].removedNodes.length)&&n.setWrapperHeight(a)}),d.observe(a,{subtree:!0,childList:!0})):(a.addEventListener("DOMNodeInserted",function(){n.setWrapperHeight(a)},{passive:!0}),a.addEventListener("DOMNodeRemoved",function(){n.setWrapperHeight(a)},{passive:!0}))},update:g,unstick:function(a){return this.each(function(){for(var a= b(this),d=-1,g=c.length;0<g--;)c[g].stickyElement.get(0)===this&&(f.call(c,g,1),d=g);-1!==d&&a.unwrap().css({width:"",position:"",top:"","float":""})})}};b.fn.sticky=function(a){if(n[a])return n[a].apply(this,h.call(arguments,1));if("object"!==typeof a&&a)b.error("Method "+a+" does not exist on jQuery.sticky");else return n.init.apply(this,arguments)};b.fn.unstick=function(a){if(n[a])return n[a].apply(this,h.call(arguments,1));if("object"!==typeof a&&a)b.error("Method "+a+" does not exist on jQuery.sticky"); else return n.unstick.apply(this,arguments)};b(function(){Themify.is_builder_active||(setTimeout(g,0),window.addEventListener("scroll",g,{passive:!0,capture:!0}),p.on("tfsmartresize.sticky",l))})})(jQuery); (function(b){b.fn.tabify=function(){return this.each(function(){if(!this.getAttribute("data-tabify")){this.setAttribute("data-tabify",!0);var h=this.getElementsByClassName("tab-nav");if(void 0!==h[0]){var f=h[0].getElementsByTagName("li"),m=this;f[0].classList.add("current");for(var p=f.length-1;-1<p;--p)b(f[p]).on("click",function(){b(this).addClass("current").attr("aria-expanded","true").siblings().removeClass("current").attr("aria-expanded","false");b(this).closest(".module-tab").find(".tab-nav-current-active").text(b(this).text()); var a=b(this).find("a").attr("href");b(a).attr("aria-hidden","false").trigger("resize").siblings(".tab-content").attr("aria-hidden","true");Themify.body.triggerHandler("tb_tabs_switch",[a,m]);Themify.is_builder_active||b(window).triggerHandler("resize");b(this).closest(".module-tab").find(".tab-nav-current-active").click();return!1});f=null;for(p=h.length-1;-1<p;--p)for(var f=h[p].querySelectorAll('a[href^="#tab-"]'),a=f.length-1;-1<a;--a)b(f[a]).on("click",function(a){a.preventDefault();a=b(this).prop("hash").replace("#tab-", "");a=b(".tab-nav:first",m).siblings(".tab-content").eq(a-1).prop("id");b('a[href^="#'+a+'"]').trigger("click")});h=null;b(".tab-nav-current-active",m).click(function(){var a=b(this);a.hasClass("clicked")?a.removeClass("clicked"):(0<a.position().left&&a.position().left<=a.closest(".module-tab").width()/2?a.next(".tab-nav").removeClass("right-align").addClass("center-align"):a.position().left>a.closest(".module-tab").width()/2?a.next(".tab-nav").removeClass("center-align").addClass("right-align"): a.next(".tab-nav").removeClass("center-align right-align"),a.addClass("clicked"))})}}})};b.fn.themifyBuilderImagesLoaded||(b.fn.themifyBuilderImagesLoaded=function(b){var f=this.filter("img"),h=f.length;f.bind("load.imgloaded",function(){0>=--h&&"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="!==this.src&&(f.unbind("load.imgloaded"),b.call(f,this))}).each(function(){if(this.complete||void 0===this.complete){var b=this.src;this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="; this.src=b}});return this})})(jQuery); (function(b,h){function f(a,g){this.element=a;this.options=b.extend({},e,g);this.init()}var m=b(h),p=null,a=!1,c=!1,e={xpos:"50%",speedFactor:.1};f.prototype={items:[],top:0,index:0,scrollEvent:null,init:function(){this.top=this.element.offset().top;this.items.push(this);c||(p=m.height(),a=ThemifyBuilderModuleJs._isMobile(),m.on("tfsmartresize.builderParallax",this.resize.bind(this)),this.scrollEvent=this.scroll.bind(this),h.addEventListener("scroll",this.scrollEvent,{passive:!0,capture:!0}),c=!0); this.update()},scroll:function(){for(var a in this.items)this.items[a].update(a)},resize:function(){p=m.height();for(var a in this.items)this.items[a].top=this.items[a].element.offset().top,this.items[a].update(a)},destroy:function(a){void 0!==this.items[a]&&(this.items.splice(a,1),0===this.items.length&&(m.off("tfsmartresize.builderParallax"),h.removeEventListener("scroll",this.scrollEvent,{passive:!0,capture:!0}),c=!1))},update:function(b){if(!1===document.body.contains(this.element[0])||-1===this.element[0].className.indexOf("builder-parallax-scrolling"))this.destroy(b); else{b=m.scrollTop();var d=this.element.offset().top,c=this.element.outerHeight(!0);d+c<b||d>b+p||(a?(d=this.element.outerWidth(!0),d=Math.round(.15*(c>d?c:d)),200>d&&(d=200),this.element.css({backgroundSize:"auto "+Math.round(c+2*d)+"px","background-position-y":Math.round((this.top-b)*this.options.speedFactor-d)+"px"})):this.element.css("background-position-y",Math.round((this.top-b)*this.options.speedFactor)+"px"))}}};b.fn.builderParallax=function(a){return this.each(function(){b.data(this,"plugin_builderParallax", new f(b(this),a))})}})(jQuery,window); (function(b,h,f,m,p){ThemifyBuilderModuleJs={wow:null,is_mobile:null,loaded:{},fwvideos:[],init:function(){if("complete"!==m.readyState&&"interactive"!==m.readyState)b(m).on("ready",this.document_ready);else this.document_ready();if(h.loaded)this.window_load();else b(h).on("load",this.window_load);if(h.onresize)this.window_resize();else b(h).on("tfsmartresize.moduleTabs",this.window_resize)},document_ready:function(){var a=ThemifyBuilderModuleJs;a.setupBodyClasses();b.event.trigger("themify_builder_loaded"); if(""===tbLocalScript.fullwidth_support)b(h).on("tfsmartresize.tbfullwidth",function(b){a.setupFullwidthRows(null,!0)});a.tabsClick();f.is_builder_active||(a.addonLoad(),""===tbLocalScript.fullwidth_support&&a.setupFullwidthRows(),a.GridBreakPoint(),tbLocalScript.isAnimationActive&&a.wowInit(),a.carousel(),a.touchdropdown(),a.tabs(),a.onInfScr(),a.menuModuleMobileStuff(),a.playFocusedVideoBg(),a.alertModule(),a.pageBreakPagination(),b(h).on("hashchange",this.tabsDeepLink),a.optinModuleInit());a.showcaseGallery(); b(h).on("tfsmartresize.tblink",function(){a.menuModuleMobileStuff(!0)});a.InitScrollHighlight();a.readMoreLink();a.galleryPagination();a.loginModuleInit()},window_load:function(){var a=ThemifyBuilderModuleJs;h.loaded=!0;f.is_builder_active?a.wowApplyOnHover():(a.parallaxScrollingInit(),a.charts(),a.fullwidthVideo(),a.backgroundSlider(),a.backgroundZoom(),a.backgroundZooming(),a.stickyElementInit(),tbLocalScript.isParallaxActive&&a.backgroundScrolling(),a.tabsDeepLink(),a.gallery(),f.body.on("infiniteloaded.themify", function(b,e){if("undefined"!==typeof tbLocalScript){var d=e[0].getElementsByClassName("tb_async_module");null===tbLocalScript.addons&&(tbLocalScript.addons={});for(var c=d.length-1;-1<c;--c){var l=d[c].getAttribute("data-data");if(l){var l=JSON.parse(l),n=d[c].getAttribute("data-external"),n=n?JSON.parse(n):null,t;for(t in l)a.loaded[t]===p&&(a.loaded=!0,n&&(l[t].external=n),tbLocalScript.addons[t]=l[t],a.addonLoad(e,t))}d[c].parentNode.removeChild(d[c])}f.body.triggerHandler("builder_load_module_partial", [e]);a.loadOnAjax(e)}}));a.videoPlay();a.accordion()},window_resize:function(){var a=m.querySelectorAll(".module-tab[data-tab-breakpoint]"),b=a.length;if(0<b)for(var e=h.innerWidth,d=0;d<b;++d)if(parseInt(a[d].getAttribute("data-tab-breakpoint"))>=e)a[d].classList.add("responsive-tab-style");else{a[d].classList.remove("responsive-tab-style");for(var g=a[d].getElementsByClassName("tab-nav"),l=g.length-1;-1<l;--l)g[l].classList.remove("right-align"),g[l].classList.remove("center-align")}},wowInit:function(a, c){function e(){d.animationOnScroll(c);d.wow=new WOW({live:!0,offset:"undefined"!==typeof tbLocalScript&&tbLocalScript?parseInt(tbLocalScript.animationOffset):100});d.wow.init();(function(){"undefined"!==typeof d.wow.__proto__&&(d.wow.__proto__.applyStyle=function(a,b){var d=a.getAttribute("data-wow-duration"),c=a.getAttribute("class"),e=c.match(/animation_effect_repeat_(\d*)/),g=c.match(/animation_effect_delay_((?:\d+\.?\d*|\.\d+))/);null!==g&&(g=g[1]+"s");null!==e&&(e=e[1]);return this.animate(function(c){return function(){return c.customStyle(a, b,d,g,e)}}(this))})})();f.is_builder_active||d.wowApplyOnHover()}var d=ThemifyBuilderModuleJs;if(c&&d.wow)d.wow.doSync(),d.wow.sync();else if(a=a||e,"undefined"!==typeof tbLocalScript&&"undefined"!==typeof tbLocalScript.animationInviewSelectors&&(b(tbLocalScript.animationInviewSelectors.toString()).length||b(".hover-wow").length)){if(d.wow)return a(),d.wow;f.LoadCss(tbLocalScript.builder_url+"/css/animate.min.css",null,null,null,function(){f.LoadAsync(themify_vars.url+"/js/wow.min.js",a,null,null, function(){return d.wow})})}},wowApplyOnHover:function(){var a=!1;b(m).on("mouseenter",".hover-wow",function(){if(!1===a){a=!0;var c=this.getAttribute("class").match(/hover-animation-(\w*)/),e=this.style.animationName;""!=e&&b(this).css("animation-name","").removeClass(e);b(this).off("animationend").one("animationend",function(d){b(this).removeClass("animated tb_hover_animate "+d.originalEvent.animationName);a=!1}).addClass("animated tb_hover_animate "+c[1])}})},setupFullwidthRows:function(a,c){function e(a){var b= k.data(x+"-"+a);if(b===p&&"desktop"!==x)for(var d=w.indexOf(x)+1;4>d;++d)if(w[d]!==p&&(b=k.data(w[d]+"-"+a),b!==p)){k.data(x+"-"+a,b);break}return b!==p?b.split(","):[]}if(""===tbLocalScript.fullwidth_support){if(a)if(a[0].classList.contains("fullwidth")||a[0].classList.contains("fullwidth_row_container"))a=a.get();else return;else if(f.is_builder_active||this.rows===p?(a=m.querySelectorAll(".themify_builder_content .module_row.fullwidth,.themify_builder_content .module_row.fullwidth_row_container"), f.is_builder_active||(this.rows=a)):a=this.rows,0===a.length)return;var d=b(tbLocalScript.fullwidth_container),g=d.outerWidth(),d=d.offset().left;if(0!==g){var l="",n=tbLocalScript.breakpoints.tablet,t=tbLocalScript.breakpoints.tablet_landscape,r=tbLocalScript.breakpoints.mobile,w=["mobile","tablet","tablet_landscape","desktop"],q=b(h).width(),x="desktop";q<=r?x="mobile":q<=n[1]?x="tablet":q<=t[1]&&(x="tablet_landscape");n=0;for(t=a.length;n<t;++n){var k=b(a[n]);var v=k.closest(".themify_builder_content"), r=v.offset().left-d,q=g-r-v.outerWidth();if(v[0].classList.contains("tb_zooming_50")||v[0].classList.contains("tb_zooming_75"))q=r=0;if(!f.is_builder_active)var u=k.attr("class").match(/module_row_(\d+)/)[1],l=l+(".themify_builder.themify_builder_content .themify_builder_"+v.data("postid")+"_row.module_row_"+u+".module_row{");if(a[n].classList.contains("fullwidth"))v=e("margin"),u="",v[0]?(u=v[0],l+="margin-left:calc("+v[0]+" - "+Math.abs(r)+"px);"):l+="margin-left:"+-r+"px;",v[1]?(""!==u&&(u+=" + "), u+=v[1],l+="margin-right:calc("+v[1]+" - "+Math.abs(q)+"px);"):l+="margin-right:"+-q+"px;",l+=""!==u?"width:calc("+g+"px - ("+u+"));":"width:"+g+"px;";else if(l+="margin-left:"+-r+"px;margin-right:"+-q+"px;width:"+g+"px;",r||q)v=e("padding"),u="+",r&&(v[0]?(0>r&&(u="-"),l+="padding-left:calc("+v[0]+" "+u+" "+Math.abs(r)+"px);"):l+="padding-left:"+Math.abs(r)+"px;"),q&&(v[1]?(u=0<q?"+":"-",l+="padding-right:calc("+v[1]+" "+u+" "+Math.abs(q)+"px);"):l+="padding-right:"+Math.abs(q)+"px;");f.is_builder_active? (a[n].style.paddingRight=a[n].style.paddingLeft=a[n].style.marginRight=a[n].style.marginLeft="",a[n].style.cssText+=l,l=""):l+="}"}f.is_builder_active||(l='<style id="tb-fulllwidth-styles" type="text/css">'+l+"</style>",b("#tb-fulllwidth-styles").remove(),m.head.insertAdjacentHTML("beforeend",l),!0!==c&&b(h).triggerHandler("resize"))}}},addQueryArg:function(a,b,e){e=e||h.location.href;var d,c=new RegExp("([?&])"+a+"=.*?(&|#|$)(.*)","gi");return c.test(e)?"undefined"!==typeof b&&null!==b?e.replace(c, "$1"+a+"="+b+"$2$3"):(d=e.split("#"),e=d[0].replace(c,"$1$3").replace(/(&|\?)$/,""),"undefined"!==typeof d[1]&&null!==d[1]&&(e+="#"+d[1]),e):"undefined"!==typeof b&&null!==b?(c=-1!==e.indexOf("?")?"&":"?",d=e.split("#"),e=d[0]+c+a+"="+b,"undefined"!==typeof d[1]&&null!==d[1]&&(e+="#"+d[1]),e):e},onInfScr:function(){var a=ThemifyBuilderModuleJs;b(m).ajaxSend(function(b,e,d){b=d.url.replace(/^(.*?)(\/page\/\d+\/)/i,"$2");e=/^\/page\/\d+\//i;var c;null!==(c=e.exec(b))&&c.index===e.lastIndex&&e.lastIndex++; null!==c&&(d.url=a.addQueryArg("themify_builder_infinite_scroll","yes",d.url))})},InitScrollHighlight:function(){1!=tbLocalScript.loadScrollHighlight||!f.is_builder_active&&null===m.querySelector("div[class*=tb_section-]")||f.LoadAsync(tbLocalScript.builder_url+"/js/themify.scroll-highlight.js",function(){themifyScrollHighlight.init(tbScrollHighlight?tbScrollHighlight:{})},null,null,function(){return"undefined"!==typeof themifyScrollHighlight})},backgroundSlider:function(a){function c(){var a=tbLocalScript.backgroundSlider.autoplay, a=parseInt(a,10);10>=a&&(a*=1E3);e.each(function(){var d=b(this),c=d.parent(),e=[],t=[],r=d.data("bgmode"),w=d.data("sliderspeed");d.find("li").each(function(){e.push(b(this).attr("data-bg"));t.push(b(this).attr("data-bg-alt"))});var q=4<e.length?4:e.length;c.tb_backstretch(e,{speed:parseInt(w),duration:a,mode:r});var e=null,m=c.data("tb_backstretch");d.find(".row-slider-prev,.row-slider-next").on("click",function(a){a.preventDefault();b(this).hasClass("row-slider-prev")?m.prev():m.next()});d.find(".row-slider-dot").on("click", function(){m.show(b(this).data("index"))});var k=d.find(".row-slider-slides > li");k.length&&(k.eq(0).addClass("row-slider-dot-active"),d.parent().on("tb_backstretch.show",function(a,b){var d=k.eq(m.index);d.length&&(k.removeClass("row-slider-dot-active"),d.addClass("row-slider-dot-active"))}));if("kenburns-effect"===d.attr("data-bgmode")){var v,u=0;d.parent().on("tb_backstretch.before",function(a,b){setTimeout(function(){v!=b.index&&(b.$wrap.find("img").last().addClass("kenburns-effect"+(u+1>q?u= 1:++u)),v=b.index)},50)}).on("tb_backstretch.after",function(a,b){var d=b.$wrap.find("img").last();/kenburns-effect\d/.test(d.attr("class"))||(d.addClass("kenburns-effect"+(u+1>q?u=1:++u)),v=b.index)})}b(h).on("backstretch.before backstretch.show",function(a,b,d){f.is_builder_active&&c.css("zIndex",0);t[d]!==p&&setTimeout(function(){b.$wrap.find("img:not(.deleteable)").attr("alt",t[d])},1)})})}var e=b(".tb_slider",a);0<e.length&&("undefined"===typeof b.fn.tb_backstretch?f.LoadAsync(themify_vars.url+ "/js/backstretch.themify-version.js",c,null,null,function(){return"undefined"!==typeof b.fn.tb_backstretch}):c())},fullwidthVideo:function(a,c){a&&(a=a.data("fullwidthvideo")?a:b("[data-fullwidthvideo]",a));c=c||b(".themify_builder");a=a||b("[data-fullwidthvideo]",c);if(0<a.length){var e=this,d=this._isMobile(),g=[],l=[],n=[];a.each(function(a){a=b(this);var c=a.data("fullwidthvideo");if(!c)return!0;a.children(".big-video-wrap").remove();c=f.parseVideo(c);"youtube"===c.type?!d&&c.id&&g.push({el:a, id:c.id}):"vimeo"===c.type?!d&&c.id&&l.push({el:a,id:c.id}):n.push(a)});a=null;if(0<n.length)if(d){for(var t=n.length-1;-1<t;--t)if("play"===n[t].data("playonmobile")){var r=n[t].data("fullwidthvideo"),r='<div class="big-video-wrap"><video class="video-'+f.hash(t+"-"+r)+'" muted="true" autoplay="true" loop="true" playsinline="true" ><source src="'+r+'" type="video/mp4"></video></div>';n[t][0].insertAdjacentHTML("afterbegin",r)}n=null}else f.LoadAsync(themify_vars.url+"/js/bigvideo.js",function(){e.fullwidthVideoCallBack(n); n=null},null,null,function(){return"undefined"!==typeof b.fn.ThemifyBgVideo});0<l.length&&f.LoadAsync(tbLocalScript.builder_url+"/js/froogaloop.min.js",function(){e.fullwidthVimeoCallBack(l);l=null},null,null,function(){return"undefined"!==typeof $f});0<g.length&&(b.fn.ThemifyYTBPlayer?e.fullwidthYoutobeCallBack(g):f.LoadAsync(tbLocalScript.builder_url+"/js/themify-youtube-bg.js",function(){e.fullwidthYoutobeCallBack(g);g=null},null,null,function(){return"undefined"!==typeof b.fn.ThemifyYTBPlayer}))}}, videoParams:function(a){var b="unmute"!==a[0].getAttribute("data-mutevideo");a="unloop"!==a[0].getAttribute("data-unloopvideo");return{mute:b,loop:a}},fullwidthVideoCallBack:function(a){for(var b=a.length-1;-1<b;--b){var e=a[b].data("fullwidthvideo"),d=ThemifyBuilderModuleJs.videoParams(a[b]);a[b].ThemifyBgVideo({url:e,doLoop:d.loop,ambient:d.mute,id:f.hash(b+"-"+e)})}},fullwidthYoutobeCallBack:function(a){function b(){for(var b=a.length-1;-1<b;--b){var c=e.videoParams(a[b].el);a[b].el.ThemifyYTBPlayer({videoID:a[b].id, id:a[b].el.closest(".themify_builder_content").data("postid")+"_"+b,mute:c.mute,loop:c.loop,mobileFallbackImage:tbLocalScript.videoPoster})}}var e=this;"undefined"===typeof YT||"undefined"===typeof YT.Player?f.LoadAsync("//www.youtube.com/iframe_api",function(){h.onYouTubePlayerAPIReady=b},null,null,function(){return"undefined"!==typeof YT&&"undefined"!==typeof YT.Player}):b()},fullwidthVimeoCallBack:function(a){function c(a){var b=a.outerWidth(!0),d=a.outerHeight(!0),c=Math.ceil(b/1.7);a.find("iframe").width(b).height(c).css({left:0, top:(d-c)/2})}var e=this;"undefined"===typeof e.fullwidthVimeoCallBack.counter&&(e.fullwidthVimeoCallBack.counter=1,b(h).on("tfsmartresize.tfVideo",function k(d){for(var r in a)a[r]&&(d=a[r].el.children(".themify-video-vmieo"),0<d.length?c(d):delete a[r]);0===a.length&&(e.fullwidthVimeoCallBack.counter="undefined",b(h).off("tfsmartresize.tfVideo",k))}));var d=m.getElementsByClassName("themify-video-vmieo").length,g;for(g in a)if(a[g]){var l=a[g].el,n=d+parseInt(g),t=e.videoParams(l),r=m.createElement("div"), f=m.createElement("iframe");r.className="big-video-wrap themify-video-vmieo";f.id="themify-vimeo-"+n;f.setAttribute("frameborder",0);f.setAttribute("allowfullscreen",!0);f.setAttribute("webkitallowfullscreen",!0);f.setAttribute("mozallowfullscreen",!0);f.src="//player.vimeo.com/video/"+a[g].id+"?api=1&portrait=0&title=0&badge=0&player_id=themify-vimeo-"+n;r.appendChild(f);l[0].insertAdjacentElement("afterbegin",r);var q=$f(f);q.addEvent("ready",function(){q.api("setLoop",t.loop);q.api("setVolume", t.mute?0:1);q.api("fullscreen",0);var a=l.children(".themify-video-vmieo");1<a.length&&a.slice(1).remove();c(a);q.api("play")})}},playFocusedVideoBg:function(){var a=ThemifyBuilderModuleJs,c=function(){f.is_builder_active&&(h.removeEventListener("scroll",c,{passive:!0,capture:!0}),h.removeEventListener("mouseenter",c,{passive:!0,capture:!0}),h.removeEventListener("keydown",c,{passive:!0,capture:!0}),b(h).off("assignVideo",c));if(!(0< !a.fwvideos.length)){var e=h.innerHeight,d;for(d in a.fwvideos){var g= a.fwvideos[d].getPlayer();if(g.isPlaying||!g.source)break;var l=g.P.getBoundingClientRect();0<=l.bottom&&l.top<=e&&(g.show(g.source),g.isPlaying=!0)}}};h.addEventListener("scroll",c,{passive:!0,capture:!0});h.addEventListener("mouseenter",c,{passive:!0,capture:!0});h.addEventListener("keydown",c,{passive:!0,capture:!0});b(h).on("assignVideo",c)},charts:function(a){function c(){function a(a){var d="",c=m.createElement("style");c.type="text/css";c.id="chart-html5-styles";for(var e in a)d+='.module-feature-chart-html5[data-progress="'+ e+'"] .chart-html5-full,.module-feature-chart-html5[data-progress="'+e+'"] .chart-html5-fill {transform:rotate('+a[e]+"deg);}";c.styleSheet?c.styleSheet.cssText=d:c.appendChild(m.createTextNode(d));b("#chart-html5-styles").remove();m.getElementsByTagName("head")[0].insertAdjacentElement("beforeend",c)}var c=function(a){var b=Math.min(a.data("size"),a.closest(".module-feature").width()),d=Math.ceil(b/2);a.css({width:b,height:b}).find(".chart-html5-mask").css({borderRadius:"0 "+d+"px "+d+"px 0",clip:"rect(0px, "+ b+"px, "+b+"px, "+d+"px)"});a.find(".chart-html5-fill").addClass("chart-loaded").css({borderRadius:d+"px 0 0 "+d+"px",clip:"rect(0px, "+d+"px, "+b+"px, 0px)"})},n=(1.8).toFixed(2),t=!1;e.each(function(){var a=b(this).data("progress-end");a===p&&(a=100);d.charts_data[a]===p&&(d.charts_data[a]=parseFloat(n*a).toFixed(2)-.1,t=!0);c(b(this))});!0===t&&a(d.charts_data);if(!f.body[0].classList.contains("full-section-scrolling-horizontal"))e.each(function(){var a=b(this);a.closest(".module_row_slide").is(":not(:first-child)")? a.waypoint(function(){a.attr("data-progress",a.data("progress-end"))},{horizontal:!0,offset:"right-in-view"}):a.waypoint(function(){a.attr("data-progress",a.data("progress-end"))},{offset:"100%",triggerOnce:!0})});else if(!f.is_builder_active)f.body.on("themify_onepage_afterload",function(a,d){d.find(".module-feature-chart-html5").each(function(){b(this).attr("data-progress",b(this).data("progress-end"))})});b(h).on("tfsmartresize.charts",function(){e.each(function(){c(b(this))})})}var e=b(".module-feature-chart-html5", a),d=this;0<e.length&&(this.charts_data===p&&(this.charts_data={}),f.LoadAsync(themify_vars.url+"/js/waypoints.min.js",c,null,null,function(){return"undefined"!==typeof b.fn.waypoint}))},carousel:function(a){var c=b(".themify_builder_slider",a);if(0<c.length){var e=this,d=function(){return tbLocalScript&&tbLocalScript.breakpoints?tbLocalScript.breakpoints.mobile>h.innerWidth:e._isMobile()},g=function(){var a=function(a){if("video"===a.data("type")){var d=a.children().map(function(){return b(this).height()}); a.parent().height(Math.max.apply(null,d))}else if(a.closest(".module-slider").is(".slider-overlay, .slider-caption-overlay")){var d=a.find(".slide-content"),c=0;d.eq(0).attr("style")===p?(c=parseFloat(d.eq(0).css("bottom")),a.data("captionOffset",c)):a.data("captionOffset")&&(c=a.data("captionOffset"));d.each(function(){var d=b(this),e=d.closest(".slide-inner-wrap").height()-a.parent().height();d.css("bottom",e+c)})}},e=function(a,d){a.carouFredSel(d);if(d.auto&&0===d.auto.timeoutDuration&&d.next&& d.prev&&d.scroll)b([d.next,d.prev].join()).on("click",function(){a.trigger("finish").trigger(b(this).is(d.next)?"next":"prev",[{duration:2*d.scroll.duration}])})};c.each(function(){if(this.classList.contains("carousel_init"))return!0;this.classList.add("carousel_init");var c=b(this),g=c.find("img").length,f=c.closest(".themify_builder_slider_wrap"),n="undefined"===typeof c.data("height")?"variable":c.data("height"),l=d()&&c.data("mob-visible")?c.data("mob-visible"):{min:1,max:c.data("visible")},k= {responsive:!0,circular:!0,infinite:!0,height:n,items:{visible:l,width:150,height:"variable"},onCreate:function(d){f.css({visibility:"visible",height:"auto"});c.trigger("updateSizes");b(".tb_slider_loader").remove();"auto"===n&&a(c)},swipe:{onMouse:!0,onTouch:!0,options:{swipeLeft:function(){c.trigger("next",!0)},swipeRight:function(){c.trigger("prev",!0)},click:function(a,d){var e=c.closest(".carousel-wrap").prev().find(".themify_builder_slider").first();e.trigger("slideTo",b('li[data-index="'+b(d).closest("li").data("index")+ '"]',e))}}}};2>c.children().length?(f.css({visibility:"visible",height:"auto"}),b(".tb_slider_loader").remove(),b(h).triggerHandler("resize")):(c.data("horizontal")&&"yes"===c.data("horizontal")?(k.mousewheel=!0,k.swipe={onMouse:!0,onTouch:!0},k.items={visible:l},k.scroll={items:2,duration:1E3,timeoutDuration:0,easing:"linear"},k.auto=!1,k.circular=!1,k.infinite=!1):(0<parseInt(c.data("auto-scroll"))?k.auto={play:!0,timeoutDuration:parseInt(1E3*c.data("auto-scroll"))}:"continuously"===c.data("effect")|| "undefined"===typeof c.data("auto-scroll")&&0!==parseInt(c.data("auto-scroll"))||(k.auto=!1),"continuously"===c.data("effect")?(l=c.data("speed"),l=.5==l?.1:4==l?.04:.07,k.auto={timeoutDuration:0},k.align=!1,k.scroll={delay:1E3,easing:"linear",items:c.data("scroll"),duration:l,pauseOnHover:c.data("pause-on-hover")}):k.scroll={items:c.data("scroll"),pauseOnHover:c.data("pause-on-hover"),duration:parseInt(1E3*c.data("speed")),fx:c.data("effect")},l=c.data("id"),"yes"===c.data("arrow")&&(k.prev="."+ l+" .carousel-prev",k.next="."+l+" .carousel-next"),"yes"===c.data("pagination")&&(k.pagination={container:"."+l+" .carousel-pager",items:c.data("visible")})),"no"===c.data("wrap")&&(k.circular=!1,k.infinite=!1),c.data("sync")&&(k.synchronise=[c.data("sync"),!1]),0<g?c.imagesLoaded(function(){e(c,k)}):e(c,k),b(".mejs__video").on("resize",function(a){a.stopPropagation()}),b(h).on("tfsmartresize",function(){b(".mejs__video").resize();c.trigger("updateSizes");"auto"===n&&a(c);c.data("mob-visible")&& d()?c.trigger("finish").trigger("configuration",{items:{visible:c.data("mob-visible")}}):c.trigger("finish").trigger("configuration",{items:{visible:c.data("visible")}})}))})};f.LoadAsync(themify_vars.includesURL+"js/imagesloaded.min.js",function(){"undefined"===typeof b.fn.carouFredSel?f.LoadAsync(themify_vars.url+"/js/carousel.min.js",g,null,null,function(){return"undefined"!==typeof b.fn.carouFredSel}):g()},null,null,function(){return"undefined"!==typeof b.fn.imagesLoaded})}},addonLoad:function(a, b){if("undefined"!==typeof tbLocalScript&&tbLocalScript&&tbLocalScript.addons&&0<Object.keys(tbLocalScript.addons).length){if(b){if(tbLocalScript.addons[b]===p)return;var c={};c[b]=tbLocalScript.addons[b]}else c=tbLocalScript.addons;for(var d in c)if(null!==m.querySelector(c[d].selector)){c[d].css&&f.LoadCss(c[d].css,c[d].ver);if(c[d].js){if(c[d].external){var g=m.createElement("script"),l=m.getElementsByTagName("script")[0];g.type="text/javascript";g.text=c[d].external;l.parentNode.insertBefore(g, l)}f.LoadAsync(c[d].js,null,c[d].ver)}delete tbLocalScript.addons[d];if(a)break}f.is_builder_active||(tbLocalScript.addons=null)}},loadOnAjax:function(a,c){var e=ThemifyBuilderModuleJs;"row"===c&&e.setupFullwidthRows(a);e.touchdropdown(a);e.tabs(a);e.carousel(a);e.charts(a);e.fullwidthVideo(a,null);e.backgroundSlider(a);var d=null,g=null,l=null;a&&(d=a.find(".builder-zoom-scrolling"),a[0].classList.contains("builder-zoom-scrolling")&&(d=d.add(a)),g=a.find(".builder-zooming"),a[0].classList.contains("builder-zooming")&& (g=g.add(a)),tbLocalScript.isParallaxActive&&(l=a.find(".builder-parallax-scrolling"),a[0].classList.contains("builder-parallax-scrolling")&&(l=l.add(a))));(null===d||0<d.length)&&e.backgroundZoom(d);(null===g||0<g.length)&&e.backgroundZooming(g);tbLocalScript.isParallaxActive&&(null===l||0<l.length)&&e.backgroundScrolling(l);e.menuModuleMobileStuff(!1,a);tbLocalScript.isAnimationActive&&e.wowInit(null,a);e.gallery(a);d="module"===c&&null!==tb_app.activeModel?tb_app.activeModel.get("mod_name"):!1; e.addonLoad(a,d);e.pageBreakPagination(a);f.InitCarousel(a);f.InitMap(a);f.InitGallery(a);"undefined"!==typeof wc_single_product_params&&b(".wc-tabs-wrapper, .woocommerce-tabs, #rating",a).trigger("init")},touchdropdown:function(a){tbLocalScript.isTouch&&(b.fn.themifyDropdown?b(".module-menu .nav",a).themifyDropdown():f.LoadAsync(themify_vars.url+"/js/themify.dropdown.js",function(){b(".module-menu .nav",a).themifyDropdown()},null,null,function(){return"undefined"!==typeof b.fn.themifyDropdown}))}, accordion:function(){f.body.on("click.themify",".accordion-title",function(a){a.preventDefault();var c=b(this),e=c.next();a=c.closest("li");var d=a.parent(),g=c.closest(".module.module-accordion").data("behavior"),l=a.toggleClass("current").siblings().removeClass("current");d.hasClass("tf-init-accordion")||d.addClass("tf-init-accordion");"accordion"===g&&l.find(".accordion-content").slideUp().attr("aria-expanded","false").closest("li").removeClass("builder-accordion-active");if(a.hasClass("builder-accordion-active"))e.slideUp(), a.removeClass("builder-accordion-active"),a.attr("aria-expanded","false"),e.attr("aria-expanded","false");else if(a.addClass("builder-accordion-active"),e.slideDown(function(){if("accordion"===g&&h.scrollY>e.offset().top){var a=b("html,body");a.animate({scrollTop:c.offset().top},{duration:tbScrollHighlight.speed,complete:function(){if(""!=tbScrollHighlight.fixedHeaderSelector&&0<b(tbScrollHighlight.fixedHeaderSelector).length){var d=Math.ceil(c.offset().top-b(tbScrollHighlight.fixedHeaderSelector).outerHeight(!0)); a.stop().animate({scrollTop:d},300)}}})}}),a.attr("aria-expanded","true"),e.attr("aria-expanded","true"),(a=e.hasClass("default-closed")?e.find(".themify_map"):!1)&&0<a.length)for(d=0,l=a.length;d<l;++d){var n=b(a[d]).data("gmap_object");"undefined"===typeof n.already_centered||n.already_centered||(n.already_centered=!1);if(!n.already_centered){var m=n.getCenter();google.maps.event.trigger(n,"resize");n.setCenter(m);n.already_centered=!0}}f.body.triggerHandler("tb_accordion_switch",[e]);f.is_builder_active|| b(h).triggerHandler("resize")})},tabs:function(a){var c=b(".module.module-tab",a);a&&a[0].classList.contains("module-tab")&&(c=c.add(a));c.each(function(){var a=b(this.getElementsByClassName("tab-nav")[0]),c=a.outerHeight();200<c&&a.siblings(".tab-content").css("min-height",c);f.is_builder_active&&this.removeAttribute("data-tabify");b(this).tabify()})},tabsClick:function(){f.body.on("click",'a[href*="#tab-"]',function(a){if(!b(this).closest(".tab-nav").length){var c=b(this.hash);c.length&&c.closest(".module-tab").length&& (c.closest(".module-tab").find('.tab-nav a[href="'+this.hash+'"]').click(),a.preventDefault())}})},tabsDeepLink:function(){var a=decodeURIComponent(h.location.hash),a=a.replace("!/","");if(""!==a&&"#"!==a&&-1===a.search("/")&&null!==m.querySelector(a+".tab-content")){var c=b(a).closest(".module-tab");0<c.length&&(b('a[href="'+a+'"]').click(),b("html, body").animate({scrollTop:c.offset().top-100},1E3))}},backgroundScrolling:function(a){a||(a=b(".builder-parallax-scrolling"));a.builderParallax()},backgroundZoom:function(a){function c(e){null!== e&&(a=b(".themify_builder .builder-zoom-scrolling"));if(0<a.length){var d=h.innerHeight;a.each(function(){var a=this.getBoundingClientRect();0<=a.bottom&&a.top<=d&&(a=140-(a.top+this.offsetHeight)/(d+this.offsetHeight)*40,b(this).css("background-size",a+"%"))})}else h.removeEventListener("scroll",c,{passive:!0,capture:!0})}a||(a=b(".themify_builder .builder-zoom-scrolling"));0<a.length&&(c(null),h.addEventListener("scroll",c,{passive:!0,capture:!0}))},backgroundZooming:function(a){function c(e){null!== e&&(a=b(".themify_builder .builder-zooming"));if(0<a.length){var d=h.innerHeight,f=m.documentElement.clientHeight,l=m.body.clientHeight;a.each(function(){var a;if(a=!this.classList.contains("active-zooming"))a=this.getBoundingClientRect(),a=a.top+this.clientHeight>=(d||f||l)/2&&a.bottom-this.clientHeight<=(d||f||l)/3;a&&b(this).addClass("active-zooming")})}else h.removeEventListener("scroll",c,{passive:!0,capture:!0})}a||(a=b(".themify_builder .builder-zooming"));0<a.length&&(c(null),h.addEventListener("scroll", c,{passive:!0,capture:!0}))},animationOnScroll:function(a){var c=ThemifyBuilderModuleJs,e=tbLocalScript.animationInviewSelectors;f.body.addClass("animation-on");(function(){a=a||!1;0<b(e).length?f.body[0].classList.contains("animation-running")||f.body[0].classList.add("animation-running"):f.body[0].classList.contains("animation-running")&&f.body[0].classList.add("animation-running");b.each(e,function(a,c){b(c).addClass("wow")});if(a)if(c.wow)c.wow.doSync();else{var d=c.wowInit();d&&d.doSync()}})()}, setupBodyClasses:function(){var a=[];this._isTouch()&&a.push("builder-is-touch");this._isMobile()&&a.push("builder-is-mobile");tbLocalScript.isParallaxActive&&a.push("builder-parallax-scrolling-active");if(!f.is_builder_active)for(var b=m.getElementsByClassName("themify_builder_content"),e=b.length-1;-1<e;--e)if(b[e].getElementsByClassName("module_row")[0]!==p){a.push("has-builder");break}for(e=a.length-1;-1<e;--e)f.body[0].classList.add(a[e])},_isTouch:function(){return this._isMobile()||"ontouchstart"in h||0<navigator.msMaxTouchPoints||navigator.maxTouchPoints},_isMobile:function(){null===this.is_mobile&&(this.is_mobile=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/));return this.is_mobile},galleryPagination:function(){f.body.on("click",".module-gallery .pagenav a",function(a){a.preventDefault();var c=b(this).closest(".module-gallery");b.ajax({url:this,beforeSend:function(){c.addClass("builder_gallery_load")}, complete:function(){c.removeClass("builder_gallery_load")},success:function(a){a&&(c.html(b(a).find(".module-gallery").first().html()),ThemifyBuilderModuleJs.gallery(c))}})})},pageBreakPagination:function(a){var c=b(".post-pagination",a);a&&a[0].classList.contains("post-pagination")&&(c=c.add(a));0!==c.length&&(c.addClass("pagenav clearfix").contents().filter(function(){if(null!==this.nodeValue&&""!==this.nodeValue.replace(/ /g,""))return 1!==this.nodeType}).wrap("<span class='current number'></span>"), c.find("a").addClass("number"),c.css("display","block").find("strong").remove())},gallery:function(a){var c=b(".module-gallery",a),e=this,d=[];a&&a[0].classList.contains("module-gallery")&&(c=c.add(a));c.each(function(){if(this.classList.contains("gallery-masonry"))d.push(b(this));else if(this.classList.contains("layout-slider")){var a=b(".themify_builder_slider",this);2===a.length&&(a=a.eq(1).children("li"),a.each(function(){b(this).off("click.gallerySlider").on("click.gallerySlider",function(a){a.preventDefault(); b(this).closest(".themify_builder_slider").eq(0).trigger("slideTo",b(this).index())})}),a=null)}else this.classList.contains("layout-showcase")&&e.showcaseGalleryCallback(b(this).find("a").first())});0<d.length&&f.LoadAsync(themify_vars.includesURL+"js/imagesloaded.min.js",function(){f.LoadAsync(themify_vars.includesURL+"js/masonry.min.js",function(){for(var a=f.body[0].classList.contains("rtl"),c=0,e=d.length;c<e;++c){var h=d[c].imagesLoaded();h.always(function(c){c=b(c.elements[0]);var d=c.data("masonry"); d&&d.destroy();c.masonry({itemSelector:".gallery-item",isOriginLeft:!a,stamp:".module-title",gutter:".module-gallery-gutter"});h.off("always")})}d=null},null,null,function(){return"undefined"!==typeof b.fn.masonry})},null,null,function(){return"undefined"!==typeof b.fn.imagesLoaded})},showcaseGallery:function(){var a=this;f.body.on("click",".module-gallery.layout-showcase a",function(c){c.preventDefault();a.showcaseGalleryCallback(b(this))})},showcaseGalleryCallback:function(a){var c=a.closest(".gallery").find(".gallery-showcase-image"), e=c.find(".gallery-showcase-title");e.css({opacity:"",visibility:""});c.addClass("builder_gallery_load").find("img").prop("src",a.data("image"));c.find(".gallery-showcase-title-text").html(a.prop("title"));c.find(".gallery-showcase-caption").html(a.data("caption"));!b.trim(e.text())&&e.css({opacity:0,visibility:"hidden"});c.find("img").one("load",function(){c.removeClass("builder_gallery_load")})},parallaxScrollingInit:function(a,c){function e(){new Rellax(a,{round:!1});f.is_builder_active||b(m).ajaxComplete(function(){var a= m.querySelectorAll("[data-parallax-element-speed]");a.length&&new Rellax(a,{round:!1})})}if(tbLocalScript.isParallaxScrollActive){if(a)if(c)a=a.get();else{var d=a.data("parallax-element-speed"),g=a.get(0);a=Array.prototype.slice.call(g.querySelectorAll("[data-parallax-element-speed]"));d&&a.push(g)}else a=m.querySelectorAll("[data-parallax-element-speed]");0<a.length&&("undefined"===typeof Rellax?f.LoadAsync(tbLocalScript.builder_url+"/js/themify.parallaxit.js",e,!1,!1,function(){return"undefined"!== typeof Rellax}):e())}},menuModuleMobileStuff:function(a,c){var e=b(".module.module-menu",c);if(0<e.length){var d=h.innerWidth,g=function(){var a=b(".mobile-menu-module");a.prop("class","mobile-menu-module").next(".body-overlay").removeClass("body-overlay-on");f.body.removeClass("menu-module-left menu-module-right");setTimeout(function(){if(f.body.hasClass("close-left-menu")||f.body.hasClass("close-right-menu"))f.body.removeClass("close-left-menu close-right-menu"),a.empty()},300)};0===b(".mobile-menu-module").length&& f.body[0].insertAdjacentHTML("beforeend",'<div class="themify_builder"><div class="mobile-menu-module"></div><div class="body-overlay"></div></div>');e.each(function(){var c=b(this),e=c.data("menu-breakpoint");if(e){var f=c.find('div[class*="-container"]'),n=c.find(".menu-module-burger");d>=e?(f.show(),n.hide()):(f.hide(),n.css("display","block"),c.addClass("module-menu-mobile-active"));a||(0<c.next("style").length&&(e=c.next("style").html().replace(/\.[^{]+/g,function(a){return a+", .mobile-menu-module"+ a.replace(/\.themify_builder\s|\.module-menu/g,"")}),c.next("style").html(e)),c[0].insertAdjacentHTML("afterbegin",'<a class="menu-module-burger"><span class="menu-module-burger-inner"></span></a>'))}});if(a||f.is_builder_active)g();else{var l=b(".menu-module-burger"),e=l.parent().data("menu-breakpoint"),n=l.parent().data("menu-style");if(l.length&&d<e&&"mobile-menu-dropdown"===n){var m=b(".module-menu-container");f.body.on("click",function(a){a=b(a.target);!a.closest(".module-menu-container").length&& m.is(":visible")&&!a.closest(".menu-module-burger").length&&l.is(":visible")&&(l.removeClass("is-open"),m.removeClass("is-open"))})}f.body.on("click",".menu-module-burger",function(a){a.preventDefault();a=b(this).parent().data("menu-style");if("mobile-menu-dropdown"===a)b(this).siblings(".module-menu-container").toggleClass("is-open"),b(this).toggleClass("is-open");else{var c=b(this).parent().data("menu-direction"),d=b(this).parent().data("gs"),e=b(this).parent().data("element-id"),n=b(this).parent().find('div[class*="-container"] > ul').clone(), l=n.prop("class").replace(/nav|menu-bar|fullwidth|vertical|with-sub-arrow/g,""),g=b(this).parent().prop("class").match(/menu-[\d\-]+/g),d=p===d?"":" "+d,g=g?g[0]:"",n=n.removeAttr("id").removeAttr("class").addClass("nav");n.find("ul").length&&n.find("ul").prev("a").append('<i class="toggle-menu "></i>');f.body.addClass("menu-module-"+c);b(".mobile-menu-module").addClass(c+" "+l+" "+g+" "+e+" "+a+d+" module-menu").html(n).prepend('<a class="menu-close"><span class="menu-close-inner"></span></a>').next(".body-overlay").addClass("body-overlay-on")}}).on("click", ".mobile-menu-module ul .toggle-menu",function(a){var c=b(this),d=c.closest("a");a.preventDefault();d.next("ul").toggle();c.hasClass("menu-close")?c.removeClass("menu-close"):c.addClass("menu-close")}).on("click",'.mobile-menu-module ul a[href="#"]',function(a){a.preventDefault()}).on("click",".mobile-menu-module > .menu-close, .mobile-menu-module + .body-overlay",function(){var a="close-"+(b(".mobile-menu-module").hasClass("right")?"right":"left");f.body.addClass(a+"-menu");g()})}}},GridBreakPoint:function(){function a(){var a= b(h).width(),m="desktop";a<=d?m="mobile":a<=e[1]?m="tablet":a<=c[1]&&(m="tablet_landscape");if(m!==l){var r=(a="desktop"===m)||"desktop"===l;a?f.body[0].classList.remove("tb_responsive_mode"):f.body[0].classList.add("tb_responsive_mode");for(var p=g.length-1;-1<p;--p){var q=g[p].children,x=g[p].getAttribute("data-col_"+m),k=q[0],v=q[q.length-1],u=g[p].getAttribute("data-basecol");if(r)for(var y=q.length-1;-1<y;--y){var z=q[y].getAttribute("data-w");z&&(q[y].style.width=a?z+"%":"")}y=g[p].getAttribute("data-"+ m+"_dir");k&&v&&("rtl"===y?(k.classList.remove("first"),k.classList.add("last"),v.classList.remove("last"),v.classList.add("first"),g[p].classList.add("direction-rtl")):(k.classList.remove("last"),k.classList.add("first"),v.classList.remove("first"),v.classList.add("last"),g[p].classList.remove("direction-rtl")));if(u&&!a)if(!1!==l&&"desktop"!==l&&(g[p].classList.remove("tb_3col"),(k=g[p].getAttribute("data-col_"+l))&&g[p].classList.remove(b.trim(k.replace("tb_3col","").replace("mobile","column").replace("tablet", "column")))),x&&"-auto"!==x&&x!==m+"-auto"){if(x=g[p].getAttribute("data-col_"+m))for(g[p].classList.add("tb_grid_classes"),g[p].classList.add("col-count-"+u),x=x.split(" "),y=x.length-1;-1<y;--y)g[p].classList.add(b.trim(x[y].replace("mobile","column").replace("tablet","column")))}else g[p].classList.remove("tb_grid_classes"),g[p].classList.remove("col-count-"+u)}l=m}}var c=tbLocalScript.breakpoints.tablet_landscape,e=tbLocalScript.breakpoints.tablet,d=tbLocalScript.breakpoints.mobile,g=m.querySelectorAll(".row_inner,.subrow_inner"), l=!1;a();b(h).on("tfsmartresize.themify_grid",function(b){b.isTrigger||a()})},readMoreLink:function(){f.body.on("click",".module-text-more",function(a){a.preventDefault();b(this).hasClass("tb-text-more-link")?(b(this).removeClass("tb-text-more-link").addClass("tb-text-less-link"),b(this).parent().find(".more-text").slideDown(400,"linear")):(b(this).removeClass("tb-text-less-link").addClass("tb-text-more-link"),b(this).parent().find(".more-text").slideUp(400,"linear"))})},stickyElementInit:function(){if(!tbLocalScript.isStickyScrollActive)return!0; var a=function(){var a=m.body,e=m.documentElement,d=Math.max(a.scrollHeight,a.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight),f=h.innerHeight||e.clientHeight||a.clientHeight;b("[data-sticky-active]").each(function(){var c=b(this),e=c.data("sticky-active"),g=e.stick.value?parseInt(e.stick.value):0,h="px"===e.stick.val_unit?g:g/100*f,g={topSpacing:h,zIndex:null,className:"tb_sticky_scroll_active"};"bottom"===e.stick.position&&(g.topSpacing=f-this.offsetHeight-h);if(e.unstick)if("builder_end"=== e.unstick.el_type){var e=c.closest(".themify_builder_content"),w=e.closest("#tbp_header");0!==w.length&&(w=m.getElementById("tbp_content"),w=null!==w?w.getElementsByClassName("themify_builder_content")[0]:a.getElementsByClassName("themify_builder_content")[1],w!==p&&(e=b(w)));e=e.offset().top+e.outerHeight(!0);g.bottomSpacing=d-e}else{var w=b(".tb_"+("row"===e.unstick.el_type?e.unstick.el_row_target:e.unstick.el_mod_target)).first(),q=e.unstick.value?parseInt(e.unstick.value):0;"%"===e.unstick.val_unit&& (q=q/100*f);w.length&&(h=d-(w.offset().top+this.offsetHeight+h),"bottom"===e.unstick.current?h="hits"===e.unstick.rule?h+(f-q):h+(f-(w.outerHeight(!0)+q)):"this"===e.unstick.current?(h=d-w.offset().top,"passes"===e.unstick.rule&&(h-=this.offsetHeight)):h="hits"===e.unstick.rule?h+q:h-q,g.bottomSpacing=h)}c.sticky(g)})};a();b(h).on("tfsmartresize.sticky",function(){b("[data-sticky-active]").each(function(){b(this).unstick()});a()})},alertModule:function(a){var c=b(".module.module-alert",a);a&&a[0].classList.contains("module-alert")&& (c=c.add(a));var e=function(a){return a&&!isNaN(parseFloat(a))&&isFinite(a)},d=function(a,b,c){var d=new Date;d.setTime(d.getTime()+864E5*c);m.cookie=a+"="+b+";expires="+d.toUTCString()+";path=/"},g=function(a){var c;var d=a?(c=a.data("alert-message"))?a.closest(".alert-inner"):a.closest(".module-alert"):b(this);d.slideUp(400,function(){if(c&&!d.parent().find(".alert-message").length){var a=b('<div class="alert-message" />').html(c+'<div class="alert-close ti-close" />');d.parent().html(a);a.hide().slideDown(400)}})}; c.each(function(){var a=b(this),c=0,f=0,h=a.data("module-id"),p=a.data("alert-limit"),a=a.data("auto-close");if(e(p)){a:{var q=h+"=";for(var x=m.cookie.split(";"),k=0,v=x.length;k<v;++k){for(var u=x[k];" "===u.charAt(0);)u=u.substring(1);if(0===u.indexOf(q)){q=u.substring(q.length,u.length);break a}}q=""}q&&(q=q.split("|"),q[1]&&(f=+q[0],c=+q[1]));p!==f?d(h,p+"|1",365):p>c&&(++c,d(h,p+"|"+c,365))}e(a)&&setTimeout(g.bind(this),1E3*a)});f.body.on("click",".module-alert .alert-close",function(a){a.preventDefault(); g(b(this))})},loginModuleInit:function(){f.body.on("click",".module-login .tb_login_links a",function(a){a.preventDefault();b(this).closest(".module").find(".tb_lostpassword_username input").val(b(this).closest(".module").find(".tb_login_username input").val());b(this).closest("form").slideUp().siblings().slideDown()})},videoPlay:function(){f.body.on("click",".tb_video_overlay",function(a){a.preventDefault();a.stopPropagation();a=this.getAttribute("data-href");var b=f.parseVideo(a),e=this.parentNode; if("youtube"===b.type||"vimeo"===b.type){var d=m.createElement("iframe");d.frameborder="0";d.allowfullscreen=!0;d.src="youtube"===b.type?"https://www.youtube.com/embed/"+b.id+"?autoplay=1&autohide=1&border=0&wmode=opaque&enablejsapi=1":"//player.vimeo.com/video/"+b.id+"?api=1&autoplay=1&portrait=0&title=0&badge=0";this.hasAttribute("data-muted")&&(d.src+="&mute=1")}else d=m.createElement("video"),d.src=a,d.autoplay=!0,d.controls=!0,this.hasAttribute("data-muted")&&(d.mute=!0),d.poster=this.getElementsByTagName("img")[0].src; e.innerHTML="";e.appendChild(d)})},optinModuleInit:function(){f.body.on("submit",".tb_optin_form",function(a){a.preventDefault();var c=b(this);c.hasClass("processing")||(c.addClass("processing"),b.ajax({url:c.attr("action"),type:"POST",data:c.serialize(),success:function(a){a.success?"s1"===c.data("success")?h.location.href=a.data.redirect:c.fadeOut().closest(".module").find(".tb_optin_success_message").fadeIn():h.console&&console.log(a.data.error)},complete:function(){c.removeClass("processing")}}))})}}; ThemifyBuilderModuleJs.init()})(jQuery,window,Themify,document,void 0);
Back to File Manager