jQuery(document).ready(function(e){e("form.wkfe-newsletter-form-element").on("submit",function(t){t.preventDefault(),e.ajax({url:wkfelocalizesettings.ajax_url,type:"post",data:{action:"wkfe_mailchimp_ajax_form_data_receiver",fields:e("form#wkfe-mailchimp").serialize(),security:wkfelocalizesettings.wkfe_security_nonce},beforeSend:function(){e("form.wkfe-newsletter-form-element div.submit").append('<div class="loading-ring"></div>')},success:function(t){e(".wkfe-mailchimp-wrapper #mailchimp-status").css("margin-bottom","20px").empty(),e("form.wkfe-newsletter-form-element div.submit div.loading-ring").remove(),e(".wkfe-mailchimp-wrapper #mailchimp-status").append(t)},error:function(t){console.log(t.responseJSON),e(".wkfe-mailchimp-wrapper #mailchimp-status").empty().css("margin-bottom","0px"),e("form.wkfe-newsletter-form-element div.submit div.loading-ring").remove(),e(".wkfe-mailchimp-wrapper #mailchimp-status").text(t.responseJSON.data.message)}})}),e(".border").length&&jQuery(window).load(function(){$portfolio_selectors=e(".border>li>a"),$portfolio_selectors.on("click",function(){e(this).attr("data-filter");return!1})}),e(".slash").length&&jQuery(window).load(function(){$portfolio_selectors=e(".slash>li>a"),$portfolio_selectors.on("click",function(){e(this).attr("data-filter");return!1})}),e(".round").length&&jQuery(window).load(function(){$portfolio_selectors=e(".round>li>a"),$portfolio_selectors.on("click",function(){e(this).attr("data-filter");return!1})}),[1,2,3,4].forEach(function(t){e(".hover-"+t).length&&e(".hover-"+t).mixItUp({})}),jQuery(document).ready(function(){e("#hover-1 .portfolio-item").each(function(){e(this).hoverdir()})}),e("#tgx-hero-unit .carousel-inner .item").css({height:e(window).height()+"px"}),e(window).resize(function(){e("#tgx-hero-unit .carousel-inner .item").css({height:e(window).height()+"px"})}),e(".tgx-project").length&&jQuery(".tgx-project").addClass("owl-carousel").owlCarousel({pagination:!0,center:!0,margin:100,dots:!1,loop:!0,items:2,nav:!0,navClass:["owl-carousel-left","owl-carousel-right"],navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],autoHeight:!0,autoplay:!1,responsive:{0:{items:1},600:{items:1},1000:{items:2}}}),e(".wkfe-click-to-tweet .wkfe-tweet").on("click",function(){var t=window.location.href.split("?")[0],a=e(this).parentsUntil(".wkfe-click-to-tweet").find(".tweet-text").text().trim(),i="https://twitter.com/share?url="+encodeURIComponent(t)+"&text="+encodeURIComponent(a);window.open(i,"_blank","toolbar=yes,scrollbars=yes,resizable=yes,top=100,left=100,width=720,height=500")}),e(".wkfe-search .wkfe-search-form-wrapper").css("display","block"),e(".wkfe-search .search-click-handler").on("click",function(t){var a=e(this).parent().attr("id");e(this).toggleClass("active"),e("#"+a).find(".wkfe-search-form-wrapper").toggleClass("active"),e(".wkfe-site-social .wkfe-site-social-platform-wrapper").hasClass("active")&&e(".wkfe-site-social .wkfe-site-social-platform-wrapper").removeClass("active"),e(".wkfe-site-social .site-social-click-handler").hasClass("active")&&e(".wkfe-site-social .site-social-click-handler").removeClass("active")}),e(".wkfe-site-social .wkfe-site-social-platform-wrapper").css("display","block"),e(".wkfe-site-social .site-social-click-handler").on("click",function(t){var a=e(this).parent().attr("id");e(this).toggleClass("active"),e("#"+a).find(".wkfe-site-social-platform-wrapper").toggleClass("active"),e(".wkfe-search .wkfe-search-form-wrapper").hasClass("active")&&e(".wkfe-search .wkfe-search-form-wrapper").removeClass("active"),e(".wkfe-search .search-click-handler").hasClass("active")&&e(".wkfe-search .search-click-handler").removeClass("active")}),e(".wkfe-contact .wkfe-contact-content-wrapper").css("display","block"),e(".wkfe-contact .contact-click-handler i").on("click",function(t){var a="#wkfe-contact-"+e(this).parent().data("handler");e(this).parent().toggleClass("active"),e(a).find(".wkfe-contact-content-wrapper").toggleClass("active")})}),jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/widgetkit-for-elementor-lottie-animation.default",function(e,t){let a=e.find(".lottie-animation-wrapper");if(a.length){let e;e="autoplay"==a.data("animation-play");var i=lottie.loadAnimation({container:a[0],renderer:a.data("animation-renderer"),loop:a.data("animation-loop"),autoplay:e,path:a.data("animation-path")});if(a.on("mouseenter",function(){"onhover"==a.data("animation-play")&&i.goToAndPlay(0)}),a.on("click",function(){"onclick"==a.data("animation-play")&&i.goToAndPlay(0)}),"viewport"==a.data("animation-play")){function o(e){var a=t(window).scrollTop(),i=a+t(window).height(),o=t(e).offset().top;return o+t(e).height()<=i&&o>=a}o(a)&&i.play(),t(window).scroll(function(){o(a)&&i.play()})}a.data("animation-speed")&&i.setSpeed(parseInt(a.data("animation-speed"))),a.data("animation-reverse")&&i.setDirection(-1)}})});