var module_72214549656=void $(document).ready((function(){$(".animate-items, .cstm-top-banner-cta").animate({opacity:1},1e3),$(".animate-items").css({height:$(".animate-item:first").height()-60,"min-height":$(".animate-item:first").height()-60}),$(window).on("resize",(function(){$(".animate-items").css({height:$(".animate-item:first").height()-60,"min-height":$(".animate-item:first").height()-60})})),$(".eap-hero").css("background-color",$(".animate-item.active").attr("data-color")),$(".animate-items").length>1&&setInterval((function(){let curActItem=$(".animate-item.active");curActItem.fadeOut(),$(".heads strong:eq("+curActItem.index()+")").fadeOut(),$(".heads strong:eq("+curActItem.index()+")").removeClass("active"),curActItem.is(":last-child")?$("body").find(".animate-item:first-child").addClass("active"):curActItem.next(".animate-item").addClass("active"),curActItem.removeClass("active"),setTimeout((function(){$(".animate-item.active").fadeIn(),$(".heads strong:eq("+$(".animate-item.active").index()+")").fadeIn(),$(".heads strong:eq("+$(".animate-item.active").index()+")").addClass("active"),$(".eap-hero").css("background-color",$(".animate-item.active").attr("data-color"))}),400)}),5e3),$(".video-btn").on("click",(function(e){e.preventDefault(),$("body").addClass("video_popup_open");var this_ele=$(this);if(this_ele.parents(".careers-hero").find(".video-container").hasClass("self-video"))$(".video-container").find("#my_video")[0].play();else if(this_ele.parents(".careers-hero").find(".video-container").hasClass("iframe-video")){var symbol=$(".video-container").find("iframe")[0].src.indexOf("?")>-1?"&":"?";$(".video-container").find("iframe")[0].src+=symbol+"autoplay=1"}else console.log("no video tag found");$(this).parents(".careers-hero").find(".popup-container").fadeIn(2e3)})),$(".close-popup").on("click",(function(){$("body").removeClass("video_popup_open");var this_ele=$(this);if(this_ele.parents(".careers-hero").find(".video-container").hasClass("self-video"))$(".video-container").find("#my_video")[0].pause();else if(this_ele.parents(".careers-hero").find(".video-container").hasClass("iframe-video")){var video_split=$(".video-container").find("iframe").attr("src").split("?");$(".video-container").find("iframe").attr("src",video_split[0])}else console.log("no video tag found");$(this).parents(".popup-container").fadeOut()}))})); //# sourceURL=https://5213739.fs1.hubspotusercontent-na1.net/hubfs/5213739/hub_generated/module_assets/1/72214549656/1752243794175/module_Careers_Hero_Banner.js