'use strict';var iconIndicatorPointer=$(".interactivehero .carousel-indicators").children(),iconAnchor=$(".interactivehero-icon-picker-li"),iconParentBody=$(".interactive-hero-carousel .carousel-inner .carousel-i"),iconLabel=$(".interactivehero-icon-label"); iconAnchor.each((g,d)=>{$(d).click(()=>{iconLabel.removeClass("font-weight-bold");$(iconLabel.get(g)).addClass("font-weight-bold");iconParentBody.removeClass("active");$(iconParentBody.get(g)).addClass("active");iconIndicatorPointer.removeClass("active");$(iconIndicatorPointer.get(g)).addClass("active")})}); $(document).ready(function(){function g(a){k.find(".refresh-btn").addClass("d-none");window.matchMedia("(max-width: 767px)").matches?p("mobile",a):window.matchMedia("(min-width: 768px)").matches&&window.matchMedia("(max-width: 1083px)").matches?p("tablet",a):window.matchMedia("(min-width: 1083px)").matches&&p("desktop",a)}function d(a){var e=r;r=a;return e==a?!1:!0}function p(a,e){if(d(a)){var b="",l="";$("video.video-hero-media").each(function(){var c=$(this);0b.currentTime=0);$(".video-hero .m-ambient-video video").each((e,b)=>b.play());f=$(".interactivehero .carousel-i.active").index()}).on("keydown",function(a){13==a.keyCode&&$(this).trigger("click")}).on("focus",function(a){$(this).trigger("click")});var n=$(".interactivehero .interactivehero-icon-picker-li");$(".interactivehero .carousel-control-prev").on("click",function(a){a.preventDefault();$(".interactivehero-icon-picker-li").removeClass("active"); setTimeout(function(){$(".interactivehero-icon-picker-li").removeClass("active");f=0b.currentTime=0);$(".video-hero .m-ambient-video video").each((e,b)=>b.play());u.attr("class","interactivehero-icon-label text-center font-weight-normal")},100)});$(".interactivehero .carousel-control-next").on("click",function(a){a.preventDefault();$(".interactivehero-icon-picker-li").removeClass("active"); setTimeout(function(){$(".interactivehero-icon-picker-li").removeClass("active");f=f+1b.currentTime=0);$(".interactivehero .video-hero .m-ambient-video video").each((e,b)=>b.play());u.attr("class","interactivehero-icon-label text-center font-weight-normal")},100)});$(".animation-off:not(.animation-toggle) .interactivehero .carousel .video-hero .m-ambient-video video").each(function(){$(this).removeAttr("autoplay").removeClass("play-video"); $(this).closest(".carousel").find(".video-content-animation").find(".interactive-hero-inner-card.opacity-0").css("opacity",1);$(this).closest(".interactivehero").find(".refresh-button").addClass("d-none")});k.find(".m-ambient-video video").each(function(){$(this).on("play",function(a){a.preventDefault();$(this).closest(".carousel-i").find(".video-content-animation .interactive-hero-inner-card").addClass("interactive-hero-inner-card opacity-0").css("opacity",0);t&&$(this).closest(".carousel-i").find(".video-content-animation.window-business .interactive-hero-inner-card").css("opacity", 1)})});k.find(".m-ambient-video video").each(function(){$(this).on("ended",function(a){a.preventDefault();$(this).closest(".carousel-i").find(".video-content-animation .interactive-hero-inner-card").addClass("isFinished");$(this).closest(".carousel-i").find(".refresh-btn").removeClass("d-none");$(this)[0].autoplay=!1;$(this)[0].load()})});k.find(".refresh-btn").on("click",function(){$(this).closest(".carousel-i").find("video")[0].play();$(this).addClass("d-none");t&&$(this).closest(".carousel-i").find(".video-content-animation .interactive-hero-inner-card").addClass("interactive-hero-inner-card opacity-0").css("opacity", 0).removeClass("isFinished")})}); document.addEventListener("AEM_ANIMATION_ENABLED",g=>{var d=$(".interactivehero");!0===g.detail?(d.find(".carousel .video-hero .m-ambient-video .refresh-btn").removeClass("d-none"),d.find(".carousel .video-hero .m-ambient-video video").attr("autoplay",!0).addClass("play-video")):(d.find(".carousel .video-hero .m-ambient-video .refresh-btn").addClass("d-none"),d.find(".carousel .video-hero .m-ambient-video video").removeAttr("autoplay").removeClass("play-video"),d.find(".carousel .video-content-animation").find(".interactive-hero-inner-card.opacity-0").css("opacity",1))});