var module_96174123380=function(){var __hs_messages={};i18n_getmessage=function(){return hs_i18n_getMessage(__hs_messages,hsVars.language,arguments)},i18n_getlanguage=function(){return hsVars.language};var modalElement=document.querySelectorAll(".ftr_btn_item .popup");modalElement&&Array.prototype.slice.call(modalElement).forEach((function(ele,index){ele.addEventListener("click",(function(e){var getDataId=this.getAttribute("data-id"),video2=document.getElementById(getDataId).querySelector(".videoSrc");if(video2){var videoSrc=video2.getAttribute("data-src");video2.setAttribute("src",videoSrc)}ele.parentElement.classList.toggle("ftr-search-open"),e.preventDefault()}))}));var modalElement2=document.querySelectorAll(".footer .close-icon.popup-ftr");modalElement2&&Array.prototype.slice.call(modalElement2).forEach((function(ele,index){ele.addEventListener("click",(function(e){ele.parentElement.parentElement.parentElement.parentElement.parentElement.classList.remove("ftr-search-open"),e.preventDefault()}))}));var popupWrapper=document.querySelectorAll(".footer .custom-wrapper-popup");popupWrapper&&Array.prototype.slice.call(popupWrapper).forEach((function(ele,index){ele.addEventListener("click",(function(e){var getVideoTag=ele.querySelector(".videoSrc");getVideoTag&&getVideoTag.setAttribute("src",""),ele.parentElement.parentElement.classList.remove("ftr-search-open"),e.preventDefault()}))}));var popupInnerWrapper=document.querySelectorAll(".footer .inner-popup-container");popupInnerWrapper&&Array.prototype.slice.call(popupInnerWrapper).forEach((function(ele,index){ele.addEventListener("click",(function(e){var getVideoTag=ele.querySelector(".videoSrc");getVideoTag&&getVideoTag.setAttribute("src",""),e.stopPropagation(),e.preventDefault()}))}));var backToTopButtons=document.querySelectorAll(".back_to_top");if(backToTopButtons){function smoothScrollBackToTop(e){e.preventDefault();var startPosition=window.pageYOffset,distance=0-startPosition,start=null;window.requestAnimationFrame((function step(timestamp){start||(start=timestamp);var progress=timestamp-start;window.scrollTo(0,function(t,b,c,d){return(t/=d/2)<1?c/2*t*t*t+b:c/2*((t-=2)*t*t+2)+b}(progress,startPosition,distance,750)),progress<750&&window.requestAnimationFrame(step)}))}backToTopButtons.forEach((function(backToTopButton){backToTopButton.addEventListener("click",smoothScrollBackToTop)})),window.addEventListener("scroll",(function(){document.body.scrollTop>=400||document.documentElement.scrollTop>=400?document.body.classList.add("backtotop_show"):document.body.classList.remove("backtotop_show")}))}}();