!function(e){"use strict";function t(e,t){return void 0!==e?e:t}e(document).on("ready",function(){window.vcexHovers(),window.vcexResponsiveCSS(),window.vcexResponsiveText(),window.vcexCarousels(),window.vcexCountDown(),window.vcexAnimatedText(),window.vcexSkillbar(),window.vcexIsotopeGrids(),window.vcexNavbarFilterLinks(),window.vcexNavbarMobileSelect()}),e(window).on("load",function(){window.vcexBeforeAfter(),window.vcexMilestone(),window.vcexStickyNavbar()}),e(window).resize(function(){window.vcexResponsiveText()}),e(window).on("orientationchange",function(){window.vcexIsotopeGrids(),window.vcexNavbarFilterLinks()});var i=!1;"undefined"!=typeof wpexLocalize&&(i=wpexLocalize.isRTL),"function"!=typeof window.vcexResponsiveText&&(window.vcexResponsiveText=function(i){e(".wpex-responsive-txt").each(function(){var i=e(this),n=i.width(),a=i.data(),o=t(a.minFontSize,13),s=t(a.maxFontSize,40),c=n/t(a.responsiveTextRatio,10),r=c>s?s:c'+i+"")}),"function"!=typeof window.vcexResponsiveCSS&&(window.vcexResponsiveCSS=function(t){var i="",n={},a={};e(".wpex-vc-rcss").remove(),a.d="",a="undefined"!=typeof wpexLocalize?e.extend(a,wpexLocalize.responsiveDataBreakpoints):{tl:"1024px",tp:"959px",pl:"767px",pp:"479px"},e.each(a,function(e){n[e]=""}),e("[data-wpex-rcss]").each(function(t,i){var o=e(this),s="wpex-rcss-"+t,c=o.data("wpex-rcss");o.addClass(s),e.each(c,function(t,i){var o=i,c=t;e.each(a,function(e){o[e]&&(n[e]+="."+s+"{"+c+":"+o[e]+"!important;}")})})}),e.each(n,function(e,t){"d"==e?i+=t:t&&(i+="@media (max-width: "+a[e]+") { "+t+" }")}),i&&(i='",e("head").append(i))}),"function"!=typeof window.vcexCarousels&&(window.vcexCarousels=function(t){void 0!==e.fn.wpexOwlCarousel&&void 0!==e.fn.imagesLoaded&&e(".wpex-carousel",t).each(function(){var t=e(this),n=t.data("wpex-carousel");if(n){var a={animateIn:!1,animateOut:!1,lazyLoad:!1,autoplayHoverPause:!0,rtl:!!i,navText:['',''],responsive:{0:{items:n.itemsMobilePortrait},480:{items:n.itemsMobileLandscape},768:{items:n.itemsTablet},960:{items:n.items}}};t.imagesLoaded(function(){t.wpexOwlCarousel(e.extend(!0,{},a,n))})}else console.log("Total Notice: The Carousel template in your child theme needs updating to include wpex-carousel data attribute.")})}),"function"!=typeof window.vcexCountDown&&(window.vcexCountDown=function(t){void 0!==e.fn.countdown&&e(".vcex-countdown",t).each(function(){var t=e(this),i=t.data("countdown"),n=t.data("days"),a=t.data("hours"),o=t.data("minutes"),s=t.data("seconds"),c=t.data("timezone");c&&void 0!==moment.tz&&e.isFunction(moment.tz)&&(i=moment.tz(i,c).toDate()),i&&t.countdown(i,function(e){t.html(e.strftime('
%-D '+n+'
%-H '+a+'
%-M '+o+'
%-S '+s+"
"))})})}),"function"!=typeof window.vcexAnimatedText&&(window.vcexAnimatedText=function(t){"function"==typeof Typed&&void 0!==e.fn.appear&&e(".vcex-typed-text",t).each(function(){var t=e(this),i=t.data("settings");t.appear(function(){i.typeSpeed=parseInt(i.typeSpeed),i.backDelay=parseInt(i.backDelay),i.backSpeed=parseInt(i.backSpeed),i.startDelay=parseInt(i.startDelay),i.strings=t.data("strings");new Typed(this,i)})})}),"function"!=typeof window.vcexMilestone&&(window.vcexMilestone=function(t){"function"==typeof CountUp&&void 0!==e.fn.appear&&e(".vcex-countup",t).each(function(){var t=e(this),i=t.data("options"),n=i.startVal,a=i.endVal,o=i.decimals,s=i.duration,c={useEasing:!0,useGrouping:!0,separator:i.separator,decimal:i.decimal,prefix:"",suffix:""},r=new CountUp(this,n,a,o,s,c);t.appear(function(){r.start()})})}),"function"!=typeof window.vcexSkillbar&&(window.vcexSkillbar=function(t){void 0!==e.fn.appear&&e(".vcex-skillbar",t).each(function(){var t=e(this);t.appear(function(){t.find(".vcex-skillbar-bar").animate({width:e(this).attr("data-percent")},800)})},{accX:0,accY:0})}),"function"!=typeof window.vcexBeforeAfter&&(window.vcexBeforeAfter=function(t){void 0!==e.fn.twentytwenty&&e(".vcex-image-ba",t).each(function(){var t=e(this);t.twentytwenty(t.data("options"))})}),"function"!=typeof window.vcexIsotopeGrids&&(window.vcexIsotopeGrids=function(){void 0!==e.fn.imagesLoaded&&void 0!==e.fn.isotope&&e(".vcex-isotope-grid").each(function(){var t=e(this);t.imagesLoaded(function(){var n,a=t.prev("ul.vcex-filter-links");if(a.length){var o=a.find("a");(n=t.data("filter"))&&!a.find('[data-filter="'+n+'"]').length&&(n=""),o.click(function(){return s.isotope({filter:e(this).attr("data-filter")}),e(this).parents("ul").find("li").removeClass("active"),e(this).parent("li").addClass("active"),!1})}var s=t.isotope({itemSelector:".vcex-isotope-entry",transformsEnabled:!0,isOriginLeft:!i,transitionDuration:t.data("transition-duration")?t.data("transition-duration")+"s":"0.4s",layoutMode:t.data("layout-mode")?t.data("layout-mode"):"masonry",filter:n})})})}),"function"!=typeof window.vcexNavbarFilterLinks&&(window.vcexNavbarFilterLinks=function(t){void 0!==e.fn.imagesLoaded&&void 0!==e.fn.isotope&&e(".vcex-filter-nav",t).each(function(){var t,n=e(this),a=e("#"+n.data("filter-grid"));a.hasClass("wpex-row")||(a=a.find(".wpex-row")),a.length&&(a.removeClass("vcex-isotope-grid"),a.imagesLoaded(function(){if(a.hasClass("vcex-navbar-filter-grid"))t=a.isotope();else{a.addClass("vcex-navbar-filter-grid");var o=n.data("filter");o&&!n.find('[data-filter="'+o+'"]').length&&(o=""),t=a.isotope({itemSelector:".col",transformsEnabled:!0,isOriginLeft:!i,transitionDuration:n.data("transition-duration")?n.data("transition-duration")+"s":"0.4s",layoutMode:n.data("layout-mode")?n.data("layout-mode"):"masonry",filter:o})}var s=n.find("a");s.click(function(){var i=e(this);return t.isotope({filter:e(this).attr("data-filter")}),s.removeClass("active"),i.addClass("active"),!1})}))})}),"function"!=typeof window.vcexStickyNavbar&&(window.vcexStickyNavbar=function(t){var i=e(".vcex-navbar-sticky"),n=e(window);n.scrollTop();i.length&&i.each(function(){var t=e(this),i=!1,a=t.data("sticky-endpoint")?e(t.data("sticky-endpoint")):"",o=e('
');function s(){var i=0,n="";if(n=t.data("vcex-sticky-offset-items")?t.data("vcex-sticky-offset-items"):"#top-bar-wrap-sticky-wrapper.wpex-can-sticky,#site-header-sticky-wrapper.wpex-can-sticky #site-header,#site-navigation-sticky-wrapper.wpex-can-sticky,#wpex-mobile-menu-fixed-top,#wpadminbar")return n=n.split(","),e.each(n,function(t,n){var a=e(n);a.is(":visible")&&(i=parseInt(i)+parseInt(a.outerHeight()))}),i}function c(){i&&(o.css("height","").removeClass("is-sticky").addClass("not-sticky"),t.css({width:"",top:""}),i=!1)}function r(){var n,r=e(window).scrollTop(),d=s();r>o.offset().top-d&&0!==r?(n=d,t.is(":visible")?i?t.css({top:s()}):(o.css("height",t.outerHeight()).removeClass("not-sticky").addClass("is-sticky"),t.css({top:n,width:o.width()}),i=!0):c(),a.length&&a.is(":visible")&&(r>a.offset().top-d-t.outerHeight()?o.addClass("sticky-hidden"):o.removeClass("sticky-hidden"))):c()}t.wrapAll(o),o=t.parent(".vcex-navbar-sticky-wrapper"),r(),n.scroll(function(){r()}),n.resize(function(){r(),i?(t.is(":visible")||c(),o.css("height",t.outerHeight()),t.css({top:s(),width:o.width()})):r()}),n.on("orientationchange",function(e){c(),r()})})}),"function"!=typeof window.vcexNavbarMobileSelect&&(window.vcexNavbarMobileSelect=function(t){var i=e(".vcex-navbar-mobile-select");i.length&&i.each(function(){var t=e(this),i=e(this).find("select"),n=t.parent(".vcex-navbar").find(".vcex-navbar-inner");i.change(function(){var t=e(this).val();t&&n.find('a[href="'+t+'"]').get(0).click()})})})}(jQuery);