var Dell=window.Dell||{},s_dell=window.s_dell||{};Dell.Transactional=Dell.Transactional||{};Dell.Transactional.Gaming=Dell.Transactional.Gaming||{};Dell.Transactional.Gaming.MediaModal=function(){var t=0,i=0,n,r;return $(window).load(function(){t=$(window).height();i=$(window).width()}),n={Init:function(){$(".gaming").length>0&&$("a[data-modalid]").length>0&&$(".aw-modal[data-modalid]").length>0&&n.BindEvents()},BindEvents:function(){$("a[data-modalid]").on("click",n.Events.ModalButtonOrLinkOnClick);$(".aw-modal[data-modalid]").on("hidden.bs.modal",n.Events.ModalDialogOnClose);$(".aw-modal[data-modalid]").on("shown.bs.modal",n.Events.ModalDialogOnShown);$(window).on("resize",n.Events.OnWindowResize)},Events:{ModalButtonOrLinkOnClick:function(){var t=$(".aw-modal[data-modalid="+$.trim($(this).data("modalid"))+"]"),u=$.trim(t.data("modaltype")),i,r;return t.modal(),u==="ooyala"?(i=n.GetOoyalaPlayer(t),i!=null&&i.playThis()):(r=n.GetYoutubePlayer(t),r!=null&&r.PlayThis()),!1},ModalDialogOnClose:function(){var t=$(this),u=$.trim(t.data("modaltype")),i,r;u==="ooyala"?(i=n.GetOoyalaPlayer(t),i!=null&&i.pauseThis()):(r=n.GetYoutubePlayer(t),r!=null&&r.PauseThis())},OnWindowResize:function(){t=$(window).height();i=$(window).width();n.AdjustModal()},ModalDialogOnShown:function(){n.AdjustModal()}},GetOoyalaPlayer:function(n){var i=n.find(".video-data-container"),t;return i.length>0&&(t=i.data("player"),t)?t:null},GetYoutubePlayer:function(n){var t=n.find(".youtube-video-control"),i;return t&&t.length>0&&(i=t.data("player"),i)?i:null},AdjustModal:function(){var n=t;$(".aw-modal .modal-content:in-viewport").each(function(){var i=$(this).outerHeight(),t,r;i>=n?$(this).css("margin-top","0"):(t=(n-i)/2,r=$(".device-xs").is(":visible"),t=r?t-20:t-50,t>0?$(this).css("margin-top",t+"px"):$(this).css("margin-top","0"))})}},r=function(){n.Init()},{Init:r}}();Dell=window.Dell||{};s_dell=window.s_dell||{};Dell.Transactional=Dell.Transactional||{};Dell.Transactional.Gaming=Dell.Transactional.Gaming||{};Dell.Transactional.Gaming.HotKeys=function(){var n={Init:function(){n.BindEvents()},BindEvents:function(){$(document).on("keypress",n.Events.OnDocumentKeyPress)},Events:{OnDocumentKeyPress:function(t){var i=t.keyCode||t.which;t.ctrlKey&&t.shiftKey&&(i===69||i===5)?n.UiOperations.OpenCmsPage():t.ctrlKey&&t.shiftKey&&(i===65||i===1)?n.UiOperations.ShowCmsAssetUrl():t.ctrlKey&&t.shiftKey&&(i===77||i===13)&&n.UiOperations.ShowMicrocontentKeys()}},UiOperations:{OpenCmsPage:function(){var n=$("meta[name='cmsurl']").attr("content"),t;n!=null&&n.length>0&&confirm("Edit page?")&&(n=n.replace(/local.dell.com/i,"cmscontent.dell.com"),t=$("meta[name='cmsurlqs']").attr("content"),t!=null&&t.length>0&&(n=n.indexOf("?")>-1?n+"&"+t:n+"?"+t),window.open(n,"cmsEditWin"))},ShowCmsAssetUrl:function(){$(".gaming").hasClass("active-cms-assets")?($(".gaming").removeClass("active-cms-assets"),$("[data-metaasset]").removeClass("active"),$(".cms-assets").remove()):($("[data-metaasset]").addClass("active"),$("[data-metaasset]").each(function(){var n=$(this).data("metaasset");$(this).append('
Asset Link<\/a><\/div>')}),$("[data-metainfo]").each(function(){var n=$(this).data("metainfo");$(this).append('
'+n+"<\/div>")}),$(".gaming").addClass("active-cms-assets"))},ShowMicrocontentKeys:function(){$(".gaming").hasClass("active-cms-microcontent")?($(".gaming").removeClass("active-cms-microcontent"),$(".cms-assets").remove()):($("[data-metainfo]").each(function(){var n=$(this).data("metainfo");$(this).append('
'+n+"<\/div>")}),$(".gaming").addClass("active-cms-microcontent"))}}},t=function(){n.Init()};return{Init:t}}();Dell=window.Dell||{};s_dell=window.s_dell||{};Dell.Transactional=Dell.Transactional||{};Dell.Transactional.Gaming=Dell.Transactional.Gaming||{};Dell.Transactional.Gaming.FullBleed=function(){var n={Init:function(){n.Events.OnScroll();n.BindEvents();n.UiOperations.AdjustArrowButton();n.UiOperations.AlterH2Tag()},BindEvents:function(){$(".arrow-scroll").on("click",n.Events.ScrollToNextSection);$(window).on("scroll",n.Events.OnScroll)},Events:{OnScroll:function(){n.UiOperations.AdjustArrowButton()},ScrollToNextSection:function(){var n=$(this).closest(".aw-section");n=n.next();$("html, body").animate({scrollTop:n.offset().top},"1000")}},UiOperations:{AdjustArrowButton:function(){var n;$(".arrow-scroll").removeClass("show");n=$(".full-bleed:in-viewport").last();n.length>0&&($(window).scrollTop()+$(window).height()-40>n.offset().top&&$(window).scrollTop()+$(window).height()",{html:$(this).html()}).attr("class","aw-fullbleed-title")})}}},t=function(){n.Init()};return{Init:t}}();Dell=window.Dell||{};s_dell=window.s_dell||{};Dell.Transactional=Dell.Transactional||{};Dell.Transactional.Gaming=Dell.Transactional.Gaming||{};Dell.Transactional.Gaming.ProductTile=function(){var n={Init:function(){n.BindEvents();n.UiOperations.ApplyThemesForOverlay()},BindEvents:function(){$(".nav-trigger").on("change",n.Events.OnOverlayChange)},Events:{OnOverlayChange:function(){this.checked?$("body").addClass("noscroll"):$("body").removeClass("noscroll")}},UiOperations:{ApplyThemesForOverlay:function(){$(".product-tile-section").each(function(){var n=$(this).closest(".aw-section");n.hasClass("white-text-theme")&&n.find(".overlay").addClass("white-text-theme");n.hasClass("light-background-theme")&&n.find(".overlay").addClass("light-background-theme");n.hasClass("dark-background-theme")&&n.find(".overlay").addClass("dark-background-theme")})}}},t=function(){n.Init()};return{Init:t}}();Dell=window.Dell||{};s_dell=window.s_dell||{};Dell.Transactional=Dell.Transactional||{};Dell.Transactional.Gaming=Dell.Transactional.Gaming||{};Dell.Transactional.Gaming.Popover=function(){var n={Init:function(){n.UiOperations.InitializePopup();n.BindEvents()},BindEvents:function(){$(document).on("click",".popover .popover-close",n.Events.OnClosePopup);$("[data-toggle='popover']").on("shown.bs.popover",n.Events.OnShowPopup)},Events:{OnClosePopup:function(){$(".popover").remove();$("body.learn-alienware").find(".modalpopover").remove();$('[data-toggle="popover"]').popover("hide")},OnShowPopup:function(){n.UiOperations.ApplyThemesforPopOver($(this));var t=$(".device-xs").is(":visible");t&&$(".popover").css({top:$(".popover").position().top-$(this).position().top})}},UiOperations:{InitializePopup:function(){$('[data-toggle="popover"]').each(function(){$(this).popover({html:!0,delay:{show:500,hide:500},content:function(){var n=$(".device-xs").is(":visible");return n?($(this).removeData("trigger"),$("body.learn-alienware").find(".modalpopover").remove(),$("body.learn-alienware").append("