'use strict';$(document).ready(function(){function n(a,b){a.preventDefault();var d=$(a.target);let f=d.find("a").width()+5;d=d.position().left+d.find("a").position().left;var e=document.getElementsByClassName("tabcontent");for(var g=0;g{var b=(b=a.innerHTML)&&b.includes("\x26lt;glyph\x26gt;")?b.split("\x26lt;glyph\x26gt;").join('\x3cspan class\x3d"configurator-inline-glyph glyph-prepend glyph-prepend-large glyph-prepend-').split("\x26lt;/glyph\x26gt;").join('"\x3e\x3c/span\x3e'):b;a.innerHTML=b});q=document.querySelector(".product-showcase-mainContainer"); (new IntersectionObserver(a=>{a.forEach(b=>{b.isIntersecting&&(y(),h())})})).observe(q);var x=function(){var a=document.getElementsByClassName("fixed-sticky sticky-direction-top");return void 0!==a[0]?a[0].offsetHeight:0},y=function(){var a=document.querySelectorAll(".m-content-placement-item .sticky-header"),b=document.querySelectorAll(".product-showcase-mainContainer .sticky-header");a&&a.forEach(d=>d.style.top=x()+"px");b&&b.forEach(d=>d.style.top=x()+"px")};$(document).on("click",".c-pivot",function(){let a= $(".sticky-header .tablinks.active").find("a").width()+5,b=$(".sticky-header .tablinks.active").position().left+$(".sticky-header .tablinks.active").find("a").position().left;$(".slider").css({left:b+"px",width:a+"px"})});$(document).on("click",".configurator-tech-spec-button",function(){let a=$(".sticky-header .tablinks.active").find("a").width()+5,b=$(".sticky-header .tablinks.active").position().left+$(".sticky-header .tablinks.active").find("a").position().left;$(".slider").css({left:b+"px",width:a+ "px"});setTimeout(()=>{r($(".product-showcase-mainContainer .m-content-placement-item .c-table table tr"),$(".m-content-placement-item"));t($("div.sticky-header"));u($(".product-showcase-mainContainer .m-content-placement-item"))},1E3)});$(window).on("load resize",function(a){let b=$(".sticky-header .tablinks.active").find("a").width()+5,d=$(".sticky-header .tablinks.active").position().left+$(".sticky-header .tablinks.active").find("a").position().left;$(".slider").css({left:d+"px",width:b+"px"}); setTimeout(()=>{r($(".product-showcase-mainContainer .m-content-placement-item .c-table table tr"),$(".m-content-placement-item"));null!=document.querySelector("#animData")&&"resize"!=a.type||t($("div.sticky-header"));u($(".product-showcase-mainContainer .m-content-placement-item"))},1E3);$(".RegionPivot");$(".pi-page-bar");$(".m-page-bar");(function(){if(540>window.innerWidth){var f=$(".product-showcase-mainContainer .mobile-show ul.tab").css("position"),e=window.screen.availWidth/document.documentElement.clientWidth; 3>window.devicePixelRatio||2>e||"sticky"!=f||($(".product-showcase-mainContainer .mobile-show ul.tab").css("position","relative"),$(".product-showcase .mobile-show ul.tab").addClass("removetoptosticky"),$(".product-showcase .mobile-show ul.tab").removeClass("addtoptosticky"))}else{f=$(".product-showcase-mainContainer .tab-hvp-show .sticky-header").css("position");const g=document.querySelector("#animData");e=window.screen.availWidth/document.documentElement.clientWidth;3>window.devicePixelRatio|| 2>e?null==g&&"static"==f&&$(".product-showcase-mainContainer .tab-hvp-show .sticky-header").css("position","sticky"):null==g&&"sticky"==f&&$(".product-showcase-mainContainer .tab-hvp-show .sticky-header").css("position","static")}})()});var v=!1;let h=function(){$(document).on("scroll",function(){if(539a&&0!=a&&!v&&(v=!0,r($(".product-showcase-mainContainer .m-content-placement-item .c-table table tr"), $(".m-content-placement-item")),t($("div.sticky-header")),u($(".product-showcase-mainContainer .m-content-placement-item")))}})},z=0,w=0,k=0,c=0;var l=!1;$(window).on("scroll",function(){z=$(".tab-hvp-show .m-content-placement-item .case-animate").offset().top;w=$(".tab-hvp-show .m-content-placement-item .case-animate").height();w*=3;void 0!=$(".product-showcase .m-expansion-panel").offset()&&(c=$(".product-showcase .m-expansion-panel").offset().top);k=window.pageYOffset;z+wk&&1==l&&($(".tab-hvp-show .m-content-placement-item .sticky-header").removeClass("sticky-background"),$(".tab-hvp-show .m-content-placement-item .sticky-header .c-heading-3").removeClass("sticky-border"),l=!1)}else $(".mobile-show .sticky-header").addClass("sticky-background-white"),a=$(".tab-hvp-show .m-content-placement-item .sticky-header").offset().top,a=1082k&&1==l&&($(".tab-hvp-show .m-content-placement-item .sticky-header").removeClass("sticky-background-white"),$(".tab-hvp-show .m-content-placement-item .sticky-header .c-heading-3").removeClass("sticky-border"),l=!1);0{$(".product-showcase .m-expansion-panel").removeClass("opacity-zero")}, 1500)});$(document).on("click",".tablinks",function(a){n(a,$(this).attr("data-content-id"))});$(".mobile-show .tab .tablinks").attr("tabindex","0");$(".mobile-show .tab li a").attr("tabindex","-1");var p=!1;$("li.nav-tab-1").focus(function(){p=!0;m=!1});var m=!1;$("li.nav-tab-2").focus(function(){m=!0;p=!1});$(".mobile-show .tab li").on("keydown",function(a){try{if(37===a.which||37===a.keyCode)p?($(".mobile-show .tab .nav-tab-2").focus(),$(".mobile-show .tab .nav-tab-2").click(),p=!1):($(".mobile-show .tab .nav-tab-1").focus(), $(".mobile-show .tab .nav-tab-1").click(),m=!1);if(39===a.which||39===a.keyCode)m?($(".mobile-show .tab .nav-tab-1").focus(),$(".mobile-show .tab .nav-tab-1").click(),m=!1):($(".mobile-show .tab .nav-tab-2").focus(),$(".mobile-show .tab .nav-tab-2").click(),p=!1)}catch(b){console.log(b)}13==event.keyCode&&n(event,$(this).attr("data-content-id"))});$(".superscript").on("click",function(a){document.body.classList.contains("animation-on")&&(a.preventDefault(),a=$(this).attr("href"),$(a).trigger("focus"), $("html, body").animate({scrollTop:$(a).offset().top-200},500))})});var aniCommon=aniCommon||{};"use strict"; (function(){(function(n){var r=void 0===n.firstLoad;n.firstLoad=!1;return r})(aniCommon)&&(aniCommon.utility=function(){return{delayCall:function(n,r){var t;return function(){clearTimeout(t);t=setTimeout(n,r)}},reducedAnimation:function(){const n=document.querySelector("#animData");aniCommon.isReducedAnimation=window.matchMedia("(prefers-reduced-motion)").matches;!0===aniCommon.isReducedAnimation||null!==n?$("body").addClass("animation-off"):$("body").addClass("animation-on");return aniCommon.isReducedAnimation}}}(), aniCommon.isReducedAnimation=aniCommon.utility.reducedAnimation(),window.matchMedia("(prefers-reduced-motion: reduce)").addEventListener("change",()=>{aniCommon.isReducedAnimation=aniCommon.utility.reducedAnimation()}))})();var aniScroll=aniScroll||{};"use strict"; (function(){function n(){setTimeout(function(){h={};$("[data-s-wdg]").addClass("s-wdgItem");$("[data-s-wdg*\x3d'#']").addClass("fadehiddenOffscreen");$("body").append("\x3cstyle\x3e.fadehiddenOffscreen {opacity:0;}\x3c/style\x3e");z=document.querySelectorAll(".s-wdgItem");var c=1,l=new window.IntersectionObserver(function(p,m){p.forEach(function(a){if(a.isIntersecting){if(!$(a.target).attr("data-s-wdg-toreset")&&$(a.target).hasClass("animate-position")){$(a.target).attr("data-s-wdg-toreset",c);h[c]= {};var b=$(a.target).offset().top,d=b+$(a.target).height(),f=getComputedStyle($(a.target)[0]).transform;"none"===f?y=f=0:(f=parseFloat(getComputedStyle($(a.target)[0]).transform.split(",")[5]),y=parseFloat(getComputedStyle($(a.target)[0]).transform.split(",")[4]));var e=parseInt($(a.target).attr("data-s-wdg"));e=$(window).height()*(-1*e/100)+f;h[c].top=b;h[c].bottom=d;h[c].originaltransform=f;h[c].originalleft=y;h[c].belowadjust=e;c++}-1v&&-100h[c].bottom&&$(this).css("transform","translate3d("+h[c].originalleft+"px,"+h[c].belowadjust+"px,0)")}$(this).removeClass("s-wdgToReset");$(this).removeClass("is-scrollTop");$(this).removeClass("is-scrollDown");$(this).removeClass("Aniscroll")}})}if(function(c){var l=void 0===c.firstLoad;c.firstLoad=!1;return l}(aniScroll)){var t,u,q,x,y,v,h,z,w={top:0, dead:0,bottom:0},k={top:0,dead:0,bottom:0};$(window).on("load scroll",function(){if(0<$(".s-wdgActive").length||0<$(".s-wdgToReset").length)t=void 0===u?$(window).scrollTop():u,u=$(window).scrollTop(),v=u-t,q=$(window).height(),x=q/3,w.top=$(window).scrollTop(),w.dead=$(window).scrollTop()+x,w.bottom=$(window).scrollTop()+180+x,k.top=$(window).scrollTop()+q-180-x,k.dead=$(window).scrollTop()+q-180,k.bottom=$(window).scrollTop()+q,r()});window.addEventListener("resize",aniCommon.utility.delayCall(function(){$(".s-wdgItem").removeAttr("style"); $(".s-wdgItem").removeClass("s-wdgItem");$(".fadehiddenOffscreen").removeClass("fadehiddenOffscreen");$(".s-wdgActive").removeClass("s-wdgActive");$(".s-wdgToReset").removeClass("s-wdgToReset");$("[data-s-wdg-toreset]").removeAttr("data-s-wdg-toreset");h={};n()},500));n()}})();