!function(e){"use strict";var t={init:function(){elementorFrontend.hooks.addAction("frontend/element_ready/mo-counter.default",t.elementCounter),elementorFrontend.hooks.addAction("frontend/element_ready/mo-countdown.default",t.elementDountdown),elementorFrontend.hooks.addAction("frontend/element_ready/mo-tabs.default",t.elementTab),elementorFrontend.hooks.addAction("frontend/element_ready/mo-pricing-block.default",t.elementPricing),elementorFrontend.hooks.addAction("frontend/element_ready/mo-video-box.default",t.elementVideo),elementorFrontend.hooks.addAction("frontend/element_ready/mo-testimonials.default",t.elementTestimonial),elementorFrontend.hooks.addAction("frontend/element_ready/mo-teams.default",t.elementTeams),elementorFrontend.hooks.addAction("frontend/element_ready/mo-teams-carousel.default",t.elementTeamsCarousel),elementorFrontend.hooks.addAction("frontend/element_ready/mo-marquee-carousel.default",t.elementMarqueeCarousel),elementorFrontend.hooks.addAction("frontend/element_ready/mo-portfolio.default",t.elementPortfolio),elementorFrontend.hooks.addAction("frontend/element_ready/mo-portfolio-carousel.default",t.elementPortfolioCarousel),elementorFrontend.hooks.addAction("frontend/element_ready/mo-posts.default",t.elementPosts),elementorFrontend.hooks.addAction("frontend/element_ready/mo-information.default",t.elementInformation),elementorFrontend.hooks.addAction("frontend/element_ready/mo-brand.default",t.elementBrand),elementorFrontend.hooks.addAction("frontend/element_ready/mo-box-hover.default",t.elementBoxHover),elementorFrontend.hooks.addAction("frontend/element_ready/mo-locations_map.default",t.elementLocationMap),elementorFrontend.hooks.addAction("frontend/element_ready/mo-heading-fancy.default",t.elementHeadingFancy),elementorFrontend.hooks.addAction("frontend/element_ready/column",t.elementColumn)},elementColumn:function(t){if(t.hasClass("column-style-bg-overflow-right")){var a=t.offset().left,o=e(window).width()-a+10;t.children(".elementor-column-wrap").append('
'),t.children(".elementor-column-wrap").children(".bg-overfolow").css("width",o),e(window).on("debouncedresize",function(a){var n=t.offset().left;o=e(window).width()-n+10,t.children(".elementor-column-wrap").children(".bg-overfolow").css("width",o)})}if(t.hasClass("column-style-bg-overflow-left")){var n=e(window).width()-(t.offset().left+t.outerWidth()),i=e(window).width()-n+10;t.children(".elementor-column-wrap").append('
'),t.children(".elementor-column-wrap").children(".bg-overfolow").css("width",i),e(window).on("debouncedresize",function(a){i=e(window).width()-n+10,t.children(".elementor-column-wrap").children(".bg-overfolow").css("width",i)})}},elementTestimonial:function(e){var a=e.find(".init-carousel-owl");t.initCarousel(a)},elementPosts:function(e){var a=e.find(".init-carousel-owl");t.initCarousel(a)},elementPortfolioCarousel:function(e){var a=e.find(".init-carousel-owl");t.initCarousel(a),jQuery(".lightbox-gallery").each(function(){jQuery(this).magnificPopup({type:"image",image:{titleSrc:"title",verticalFit:!0},gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]}})})},elementTeamsCarousel:function(e){var a=e.find(".init-carousel-owl");t.initCarousel(a)},elementPortfolio:function(t){t.find(".projects-grid").each(function(){var t=e(this);t.imagesLoaded(function(){t.isotope({itemSelector:".project-item",animationEngine:"css"})});var a=e(".project_filters");a.find("a").on("click",function(){var o=e(this);if(o.hasClass("selected"))return!1;o.parents(".project_filters"),a.find(".selected").removeClass("selected"),o.addClass("selected");var n=e(this).attr("data-filter");return t.isotope({filter:n}),!1}),jQuery(".lightbox-gallery").each(function(){jQuery(this).magnificPopup({type:"image",image:{titleSrc:"title",verticalFit:!0},gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]}})})})},elementInformation:function(e){var a=e.find(".init-carousel-owl");t.initCarousel(a)},elementBrand:function(e){var a=e.find(".init-carousel-owl");t.initCarousel(a)},elementCounter:function(e){e.find(".counter").counterUp({delay:10,time:2e3})},elementTab:function(t){e(".mo-tabs").each(function(){e(this).find(".tabs-heading li").first().addClass("current"),e(this).find(".tab-content").first().addClass("current")}),e(".tabs-heading li").on("click",function(){var t=e(this).attr("data-tab");e(this).siblings().removeClass("current"),e(this).parents(".mo-tabs").find(".tab-content").removeClass("current"),e(this).addClass("current"),e("#"+t).addClass("current")})},elementDountdown:function(t){e(".mo-countdown").each(function(){var t=e(this).data("date"),a=e(this).data("day"),o=e(this).data("days"),n=e(this).data("hour"),i=e(this).data("hours"),d=e(this).data("min"),l=e(this).data("mins"),s=e(this).data("second"),r=e(this).data("seconds");e(this).countdown({date:t,day:a,days:o,hour:n,hours:i,minute:d,minutes:l,second:s,seconds:r},function(){alert("Done!")})})},elementPricing:function(t){e(".pricing").waypoint(function(){e(".pricing-best").addClass("depth")}),e(".pricing-item").on("mouseenter",function(){e(this).closest(".vc_row .vc_inner, .elementor-section .elementor-container").find(".pricing-item").removeClass("active"),e(this).addClass("active")})},elementVideo:function(e){jQuery(".lightbox-video").each(function(){jQuery(this).magnificPopup({type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1,iframe:{patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1"},youtube_short:{index:"youtu.be/",id:"youtu.be/",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"}}}})})},elementBoxHover:function(e){var a=e.find(".init-carousel-owl");t.initCarousel(a)},elementLocationMap:function(t){var a=[],o=0;e("#locations_map_content .maker-item").each(function(){var t=[];t.id=e(this).data("id");var n=e(this).data("lat");n&&(n=n.split(","),t.latLng=[n[0],n[1]]),t.data="",t.options={},a[o]=t,o++}),e("#map_canvas_mo_01").gmap3({map:{options:{draggable:!0,mapTypeControl:!0,mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:!1,panControl:!0,rotateControl:!1,scaleControl:!0,streetViewControl:!0,zoomControl:!0,center:a[0].latLng,zoom:12}},marker:{values:a,options:{draggable:!1},events:{click:function(t,a,o){var n=e("div[data-id="+o.id+"].maker-item .marker-hidden-content").html(),i=e(this).gmap3("get"),d=e(this).gmap3({get:{name:"infowindow"}});d?(d.open(i,t),d.setContent(n)):e(this).gmap3({infowindow:{anchor:t,options:{content:n}}})}}}});var n=e("#map_canvas_mo_01").gmap3("get");e(".location-item").on("click",function(){e(".location-item .location-item-inner").removeClass("active"),e(this).find(".location-item-inner").first().addClass("active");var t=e(this).data("id"),a=e("#map_canvas_mo_01").gmap3({get:{id:t}});new google.maps.event.trigger(a,"click"),n.setCenter(a.getPosition())})},initCarousel:function(e){if(e.length){var t=e.data("items")?e.data("items"):5,a=e.data("items_lg")?e.data("items_lg"):4,o=e.data("items_md")?e.data("items_md"):3,n=e.data("items_sm")?e.data("items_sm"):2,i=e.data("items_xs")?e.data("items_xs"):1,d=e.data("items_xx")?e.data("items_xx"):1,l=!!e.data("loop")&&e.data("loop"),s=e.data("speed")?e.data("speed"):200,r=!!e.data("auto_play")&&e.data("auto_play"),m=!!e.data("auto_play_speed")&&e.data("auto_play_speed"),c=e.data("auto_play_timeout")?e.data("auto_play_timeout"):1e3,u=!!e.data("auto_play_hover")&&e.data("auto_play_hover"),f=!!e.data("navigation")&&e.data("navigation"),h=!!e.data("pagination")&&e.data("pagination"),p=!!e.data("mouse_drag")&&e.data("mouse_drag"),v=!!e.data("touch_drag")&&e.data("touch_drag"),g=!!e.hasClass("carousel-center");e.owlCarousel({center:g,nav:f,autoplay:r,autoplayTimeout:c,autoplaySpeed:m,autoplayHoverPause:u,navText:['',''],autoHeight:!1,loop:l,dots:h,rewind:!0,smartSpeed:s,mouseDrag:p,touchDrag:v,merge:!0,responsive:{0:{items:1,nav:!1},320:{items:d,nav:!1},640:{items:i,nav:!1},768:{items:n},992:{items:o},1200:{items:a},1400:{items:t}}}),e.find(".owl-item.active").eq(1).addClass("center"),e.on("translated.owl.carousel",function(t){e.find(".owl-item.center").removeClass("center"),e.find(".owl-stage .active").eq(1).addClass("center")})}}};e(window).on("elementor/frontend/init",t.init)}(jQuery);