'use strict';$(document).ready(function(){var a=$(".interactivehero .carousel-indicators").children(),b=$(".interactivehero-icon-picker-li"),f=$(".interactive-hero-carousel .carousel-inner .carousel-i"),g=$(".interactivehero-icon-label");b.each((h,n)=>{$(n).click(()=>{g.removeClass("font-weight-bold");$(g.get(h)).addClass("font-weight-bold");f.removeClass("active");$(f.get(h)).addClass("active");a.removeClass("active");$(a.get(h)).addClass("active")})})}); $(document).ready(function(){function a(c){k.find(".refresh-btn").addClass("d-none");window.matchMedia("(max-width: 859.98px)").matches?f("mobile",c):window.matchMedia("(min-width: 860px)").matches&&window.matchMedia("(max-width: 1083.98px)").matches?f("tablet",c):window.matchMedia("(min-width: 1084px)").matches&&f("desktop",c)}function b(c){var d=n;n=c;return d==c?!1:!0}function f(c,d){if(b(c)){var l="",p="";$("video.video-hero-media").each(function(){var e=$(this);0{let d="";$(".interactivehero-v2").each(function(){$(this).find(".play-pause-btn .pause-btn.d-block").removeClass("d-block").addClass("d-none");$(this).find(".play-pause-btn .play-btn").removeClass("d-none").addClass("d-block");d=$(this).find(".video-hero .video-hero-media").get(0);void 0!==d&&d.pause(); $(this).removeClass("video-content-animation")})});v.each(function(c,d){w.click(l=>{"true"===$(l.currentTarget).attr("aria-checked")?(hideCard($(this)),playBtnFunction(d),$(this).get(0).play()):(showCard($(this)),pauseBtnFunction(d),$(this).get(0).pause())})});k.find(".m-ambient-video video").each(function(){$(this).on("play",function(c){c.preventDefault();hideCard($(this))})});k.find(".m-ambient-video video").each(function(){$(this).on("ended",function(c){c.preventDefault();showCard($(this))})}); k.find(".refresh-btn").on("click",function(){$(this).closest(".carousel-i").find("video")[0].play();$(this).addClass("d-none");hideCard($(this))});for(g=0;gh.currentTime=0);a.closest(".is-carousel").find(".video-hero .m-ambient-video video").each((g,h)=>h.play());b.removeClass("active");b.eq(f).addClass("active")};