function closePassanger4818v1(){jQuery(".pass-dropdown").hasClass("open")&&(jQuery(".pass-dropdown .btn-dropdown").click(),setTimeout(function(){jQuery(".modal-backdrop").addClass("hide")},500))}function applyChanges4818v1(){jQuery(".vwoRentCar").length||(jQuery('.main_menu_sub ul>li>a[href*="cars.cartrawler.com/flynas/"]').clone(!0).appendTo(".widget-menu ul").wrap('<li class="vwoRentCar"><\/li>'),jQuery(".vwoRentCar a").prepend('<img src="https://useruploads.visualwebsiteoptimizer.com/useruploads/176372/images/41d876f274d39b69f491f169d71ad876_rentcar.png" alt="" />'))}function checkURL4818v1(){location.pathname=="/"||location.pathname=="/en"||location.pathname=="/ar"||location.pathname=="/en-ae"||location.pathname=="/ar-ae"||location.pathname=="/en-ae/home"||location.pathname=="/ar-ae/home"||location.pathname=="/en/home"||location.pathname=="/ar/home"?(jQuery("body").addClass("template-home"),applyChanges4818v1()):jQuery("body").removeClass("template-home")}window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(timeOutFn){return setTimeout(timeOutFn,1e3/60)};window.v1_C4818_J4210=function(){if(typeof jQuery!=typeof undefined&&jQuery(".search-widget").length&&!jQuery(".v1_C4818_J4210").length){jQuery("body").addClass("v1_C4818_J4210");checkURL4818v1(),function(){var send=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(){return this.addEventListener("load",function(){checkURL4818v1()}),send.apply(this,arguments)}}();jQuery(document).on("click","#main-tab.nav-tabs li a[data-bs-target]",function(){(location.pathname=="/"||location.pathname=="/en"||location.pathname=="/ar"||location.pathname=="/en-ae"||location.pathname=="/ar-ae"||location.pathname=="/en-ae/home"||location.pathname=="/ar-ae/home"||location.pathname=="/en/home"||location.pathname=="/ar/home")&&jQuery("body").hasClass("stickyWidget")&&(jQuery(this).parent().hasClass("vwoActive")?(jQuery(this).parent().removeClass("vwoActive"),jQuery("body").removeClass("showTabs")):(jQuery(this).parent().siblings().removeClass("vwoActive"),jQuery(this).parent().addClass("vwoActive"),jQuery("body").addClass("showTabs")))});jQuery(document).mouseup(function(e){if(location.pathname=="/"||location.pathname=="/en"||location.pathname=="/ar"||location.pathname=="/en-ae"||location.pathname=="/ar-ae"||location.pathname=="/en-ae/home"||location.pathname=="/ar-ae/home"||location.pathname=="/en/home"||location.pathname=="/ar/home"){var container=jQuery(".tabcon .tabpanel1>.tab-content");container.is(e.target)||container.has(e.target).length!==0||jQuery("body").removeClass("showTabs")}});jQuery(document).on("click",".widget-menu ul li.vwoRentCar a",function(){jQuery("body").removeClass("showTabs");jQuery(".vwoActive").removeClass("vwoActive")});jQuery(document).on("click",".modal-backdrop, .stickyWidget #main-tab.tab-nav li a",function(){closePassanger4818v1()});jQuery(document).on("click",".stickyWidget .multi-city-date .datepicker_input, .stickyWidget .widget-content .datepicker_con.form-group.round-trip-date .datepicker_input",function(){closePassanger4818v1();window.scrollTo(0,0)});jQuery(window).scroll(function(){if($(".swiper-form-wrap").is(":visible")&&(location.pathname=="/"||location.pathname=="/en"||location.pathname=="/ar"||location.pathname=="/en-ae"||location.pathname=="/ar-ae"||location.pathname=="/en-ae/home"||location.pathname=="/ar-ae/home"||location.pathname=="/en/home"||location.pathname=="/ar/home")){jQuery("body").removeClass("showTabs");jQuery(".vwoActive").removeClass("vwoActive");var elem=jQuery(".swiper-form-wrap");if(jQuery(window).scrollTop()+100>elem.offset().top+elem.height())jQuery("body").addClass("stickyWidget"),jQuery(".search-widget .tab-content .active").hide();else{jQuery("body").removeClass("stickyWidget");jQuery(".search-widget .nav-tabs .nav-item a.active").length===0?(jQuery(".search-widget .nav-tabs > :first-child > a").addClass("active"),jQuery(".search-widget .tab-content > :first-child").addClass("active")):jQuery(".search-widget .tab-content .active").show();jQuery(".search-widget .nav-tabs .nav-item a.active").on("click",function(){jQuery(".search-widget .tab-content .active").show()})}}});jQuery(window).scroll()}else window.requestAnimationFrame(v1_C4818_J4210)};window.v1_C4818_J4210();
//# sourceMappingURL=/sb/nmap/abtest-sticky-js.js.v7de777cefc3f9aa96b4646d8800bd066d8120262