'use strict';var aniCommon=aniCommon||{};"use strict"; (function(){(function(l){var p=void 0===l.firstLoad;l.firstLoad=!1;return p})(aniCommon)&&(aniCommon.utility=function(){return{delayCall:function(l,p){var q;return function(){clearTimeout(q);q=setTimeout(l,p)}},reducedAnimation:function(){aniCommon.isReducedAnimation=window.matchMedia("(prefers-reduced-motion)").matches;!0===aniCommon.isReducedAnimation?$("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 l(){setTimeout(function(){e={};$("[data-s-wdg]").addClass("s-wdgItem");$("[data-s-wdg*\x3d'#']").addClass("fadehiddenOffscreen");$("body").append("\x3cstyle\x3e.fadehiddenOffscreen {opacity:0;}\x3c/style\x3e");r=document.querySelectorAll(".s-wdgItem");var c=1,y=new window.IntersectionObserver(function(t,f){t.forEach(function(g){if(g.isIntersecting){if(!$(g.target).attr("data-s-wdg-toreset")&&$(g.target).hasClass("animate-position")){$(g.target).attr("data-s-wdg-toreset",c);e[c]= {};var h=$(g.target).offset().top,z=h+$(g.target).height(),u=getComputedStyle($(g.target)[0]).transform;"none"===u?a=u=0:(u=parseFloat(getComputedStyle($(g.target)[0]).transform.split(",")[5]),a=parseFloat(getComputedStyle($(g.target)[0]).transform.split(",")[4]));var x=parseInt($(g.target).attr("data-s-wdg"));x=$(window).height()*(-1*x/100)+u;e[c].top=h;e[c].bottom=z;e[c].originaltransform=u;e[c].originalleft=a;e[c].belowadjust=x;c++}-1b&&-100e[c].bottom&&$(this).css("transform","translate3d("+e[c].originalleft+"px,"+e[c].belowadjust+"px,0)")}$(this).removeClass("s-wdgToReset");$(this).removeClass("is-scrollTop");$(this).removeClass("is-scrollDown");$(this).removeClass("Aniscroll")}})}if(function(c){var y=void 0===c.firstLoad;c.firstLoad=!1;return y}(aniScroll)){var q,m,n,w,a,b,e,r,v={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)q=void 0===m?$(window).scrollTop():m,m=$(window).scrollTop(),b=m-q,n=$(window).height(),w=n/3,v.top=$(window).scrollTop(),v.dead=$(window).scrollTop()+w,v.bottom=$(window).scrollTop()+180+w,k.top=$(window).scrollTop()+n-180-w,k.dead=$(window).scrollTop()+n-180,k.bottom=$(window).scrollTop()+n,p()});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");e={};l()},500));l()}})(); $(document).ready(function(){function l(){$(".wdg-device-highlight-tile-content .wdg-device-specs-grid .wdg-device-specs-flex .wdg-device-category-content .wdg-device-spec-content .c-heading-3").css("height","");$(".wdg-device-highlight-tile-content .wdg-device-specs-grid .wdg-device-specs-flex .wdg-device-category-content .wdg-device-spec-content .c-paragraph-3").css("height","");setTimeout(function(){p(".wdg-device-highlight-tile-content .wdg-device-specs-grid .wdg-device-specs-flex .wdg-device-category-content .wdg-device-spec-content .c-heading-3"); p(".wdg-device-highlight-tile-content .wdg-device-specs-grid .wdg-device-specs-flex .wdg-device-category-content .wdg-device-spec-content .c-paragraph-3")},500)}function p(a){$(".wdg-device-highlight-tile").each(function(){var b=0;$(this).find(a).each(function(){b=b>$(this).height()?b:$(this).height()});$(this).find(a).height(b)})}function q(a){$(".wdg-device-model").find(".m-ambient-video").is(":visible")&&$(".wdg-device-model").find("video").get(0).pause();$(".wdg-device-model").hide();$(".wdg-device-model .refresh-btn").hide(); $(".wdg-device-spec-content .wdg-device-tile-expand").removeClass("active");var b=a.attr("data-video-src"),e=a.attr("data-paragraph-info"),r=a.attr("data-heading"),v=a.attr("data-dark-theme"),k=a.attr("data-dark-theme-replay");a.attr("data-popup");var c=a.attr("data-opened"),y=a.attr("data-close"),t=a.attr("data-dialog"),f=a.parent().find(".popup-image").find("img").attr("src"),g=a.attr("data-image-alt"),h=a.parents(".wdg-device-specs-flex").find(".wdg-device-category-content").length,z=0=x){d.find(".tile-modal").removeAttr("style");var A=a.parents().hasClass("lastTileOfContent")?a.parents(".wdg-device-spec-content").offset().top-a.parents(".wdg-device-specs-grid").offset().top-400:a.parents(".wdg-device-spec-content").offset().top- a.parents(".wdg-device-specs-grid").offset().top;d.css({left:0,right:"initial",top:A})}else d.removeAttr("style"),0!=a.parents(".wdg-device-category-content").index()%2?d.css({left:"initial",right:0}):d.css({left:0,right:"initial"});d.removeAttr("class").addClass("wdg-device-model foldIn");d.find(".c-paragraph-2").html(e);d.find(".tile-modal").attr("aria-label",r+" "+c);d.find(".wdg-device-cross").removeClass("dark-theme");d.find(".wdg-device-cross").addClass(v);u.removeClass("dark-theme");u.addClass(k); d.find(".wdg-device-cross").attr("aria-label",y+" "+r+" "+t);b?(768<=x?(a=a.parents(".wdg-device-specs-flex").height()-z,3>h&&(a=2*a-70),h=d.find(".tile-modal"),h.removeAttr("style"),h.css({height:a,display:"flex","flex-direction":"column"}),f=h.find(".wdg-device-cross"),f.removeAttr("style"),f.css("align-self","flex-end")):(a=a.parents(".wdg-device-spec-content").outerHeight(),h=d.find(".tile-modal"),h.removeAttr("style"),h.css({"min-height":a})),d.find(".c-image").css("display","none"),d.find(".m-ambient-video").show(), f=d.find(".tilevideo"),f.attr("aria-label",e),f.find("source").remove(),e=document.createElement("source"),e.setAttribute("src",b),e.setAttribute("type","video/mp4"),f.append(e),f[0].load(),f[0].addEventListener("ended",function(){d.find(".refresh-btn").show()},!0)):(768<=x?(a=a.parents(".wdg-device-specs-flex").height()-z,3>h&&(a=2*a-70),h=d.find(".tile-modal"),h.removeAttr("style"),h.css({height:a})):(a=a.parents(".wdg-device-spec-content").outerHeight(),h=d.find(".tile-modal"),h.removeAttr("style"), h.css({"min-height":a})),d.find(".m-ambient-video").hide(),d.find(".c-image").css("display","block"),d.find(".c-image").attr("src",f),d.find(".c-image").attr("alt",g));d.show();d.find(".tile-modal .wdg-device-cross").focus()}}function m(a){if(w.matches&&767<$(window).outerWidth()){var b=a.find(".wdg-device-highlight-tile-content").height()+100;a.css("min-height",b)}else a.removeAttr("style")}function n(a,b){var e=!1;$(".wdg-device-model").each(function(v,k){$(k).is(":visible")&&(e=!0,$(k).parent().find(".m-ambient-video").is(":visible")&& $(k).parent().find("video").get(0).pause())});if(e){var r=!1;setTimeout(function(){a||$(document.activeElement).parents().each(function(v,k){"tile-modal"==k.className&&9==b&&(r=!0)});r||($(".wdg-device-model").hide(),$(".wdg-device-specs-grid .wdg-device-tile-expand.active").focus())},0)}}var w=window.matchMedia("(prefers-reduced-motion: reduce)");navigator.userAgent.match(/Trident\/7.0/)?w.addListener("change",function(){$(".wdg-device-highlight-tile").each(function(a,b){a=$(b);m(a)})}):w.addEventListener("change", function(){$(".wdg-device-highlight-tile").each(function(a,b){a=$(b);m(a)})});l();$(".wdg-device-highlight-tile:not(.business-style) .wdg-device-spec-content").click(function(){var a=$(this).find(".wdg-device-tile-expand");q(a)});$(".wdg-device-spec-content .wdg-device-tile-expand").click(function(){var a=$(this);q(a)});$(window).scroll(function(){$(".wdg-device-highlight-tile-content").each(function(a,b){a=$(b);767<$(window).outerWidth()?(b=a.offset().top,$(window).scrollTop()+200>=b?a.removeClass("content-z-index"): a.hasClass("content-z-index")||a.addClass("content-z-index")):a.removeClass("content-z-index")})});$(".wdg-device-highlight-tile .wdg-device-model .focus-jump-close").focus(function(){$(this).parent().find(".tile-modal .wdg-device-cross").focus()});$(".wdg-device-highlight-tile .wdg-device-highlight-tile-content .wdg-device-specs-grid .wdg-device-specs-flex .wdg-device-category-content .wdg-device-tile-expand,.wdg-device-highlight-tile .wdg-device-highlight-tile-content .wdg-device-specs-grid .wdg-device-specs-flex .wdg-device-category-content .c-paragraph-2,.wdg-device-highlight-tile .wdg-device-highlight-tile-content .wdg-device-specs-grid .wdg-device-specs-flex .wdg-device-category-content .c-heading-3,.wdg-device-highlight-tile .wdg-device-highlight-tile-content .wdg-device-specs-grid .wdg-device-specs-flex .wdg-device-category-content .c-call-to-action").focus(function(){$(this).parents(".wdg-device-specs-flex").find(".wdg-device-category-content").addClass("is-scrollDown")}); $(".wdg-device-model .wdg-device-cross").click(function(){$(this).parent().find(".m-ambient-video").is(":visible")&&$(this).parent().find("video").get(0).pause();var a=$(this).parents(".wdg-device-model");a.find(".refresh-btn").hide();a.addClass("foldout");setTimeout(function(){a.hide()},300);$(this).parents(".wdg-device-specs-grid").find(".wdg-device-tile-expand.active").focus()});$(".wdg-device-model .refresh-btn").click(function(){var a=$(this),b=a.parents(".wdg-device-model");a.parent().find("video").get(0).play(); a.hide();b.find(".wdg-device-cross").focus()});$(document).on("click",function(a){0<$(a.target).closest(".tile-modal").length||0<$(a.target).closest(".wdg-device-cross").length||$(a.target).hasClass("wdg-device-tile-expand")||$(a.target).hasClass("wdg-device-spec-content")||0<$(a.target).parents(".wdg-device-spec-content").length||n(!1,"")});$(".wdg-device-highlight-tile").each(function(a,b){a=$(b);m(a)});window.addEventListener("resize",aniCommon.utility.delayCall(function(){n(!0,"");$(".wdg-device-highlight-tile").each(function(a, b){a=$(b);m(a)});l()},500));$(document).on("keydown",function(a){9!==a.keyCode&&27!==a.keyCode||n(!1,a.keyCode)})});