var Dell,s_dell;(function(n){n.belowthefold=function(t,i){var r=n(window).outerHeight()+n(window).scrollTop();return r<=n(t).offset().top-i.threshold};n.abovethetop=function(t,i){var r=n(window).scrollTop();return r>=n(t).offset().top+n(t).outerHeight()-i.threshold};n.rightofscreen=function(t,i){var r=n(window).width()+n(window).scrollLeft();return r<=n(t).offset().left-i.threshold};n.leftofscreen=function(t,i){var r=n(window).scrollLeft();return r>=n(t).offset().left+n(t).width()-i.threshold};n.inviewport=function(t,i){return!n.rightofscreen(t,i)&&!n.leftofscreen(t,i)&&!n.belowthefold(t,i)&&!n.abovethetop(t,i)};n.extend(n.expr[":"],{"below-the-fold":function(t){return n.belowthefold(t,{threshold:0})},"above-the-top":function(t){return n.abovethetop(t,{threshold:0})},"left-of-screen":function(t){return n.leftofscreen(t,{threshold:0})},"right-of-screen":function(t){return n.rightofscreen(t,{threshold:0})},"in-viewport":function(t){return n.inviewport(t,{threshold:0})}})})(jQuery);Dell=window.Dell||{};s_dell=window.s_dell||{};Dell.Transactional=Dell.Transactional||{};Dell.Transactional.VideoPlayer=Dell.Transactional.VideoPlayer||{};Dell.Transactional.VideoPlayer.api=function(){var n=function(n,t,i,r,u){var e="//player.ooyala.com/static/v4/stable/latest/skin-plugin/skin.json",f;n&&t&&(i=i||!1,r=r||!1,u=u||!1,f=new Dell.Transactional.VideoPlayer.ResponsiveOoyalaPlayer,$("#"+n).data("player",f),window.ooyalaConfigSource&&(e=window.ooyalaConfigSource),Dell.Transactional.VideoPlayer.Scripts.ensureLoaded(function(){var o={pcode:"RvYmY6hur13N6wMKKnX_HgCa0VEU",playerBrandingId:"b71985dbc2bf441f93da7897f568754b",autoplay:i,loop:r,debug:!1,playlistsPlugin:{data:[""]},useFirstVideoFromPlaylist:!1,initialBitrate:{level:1,duration:15},skin:{config:e,inline:{startScreen:{showDescription:!1,showTitle:!1},pauseScreen:{showDescription:!1,showTitle:!1}}},onCreate:f.onCreate};u&&(o.initialVolume=0);window.mediaplayerid=OO.Player.create(n,t,o);$("#"+n).data("ooyalaPlayer",window.mediaplayerid);f.initilize(n,t,$(this));Dell.Transactional.VideoPlayer.PlayerStore.addPlayer(n,f,i)}))},t=function(n){if(n){var t=n.find(".video-data-container");t&&t.length>0&&t.each(function(){var n=$(this).attr("data-id"),t=$(this).attr("data-code"),i=$.trim($(this).data("autoplay")).toLowerCase()==="true",r=$.trim($(this).data("loopvideo")).toLowerCase()==="true",u=$.trim($(this).data("disableaudio")).toLowerCase()==="true";n&&t&&Dell.Transactional.VideoPlayer.api.initialize(n,t,i,r,u)})}};return{initialize:n,initializeContainer:t}}();Dell.Transactional.VideoPlayer.ResponsiveOoyalaPlayer=function(){function g(n,r,u){i=n;s=u;t=r;e(i)}function e(n){var t=$('.oo-thumbnail-container[data-video-id="'+n+'"]');t.removeClass("showSpinner").hide()}var o={},n={},s,t,i,r=!1,u=!1,f=!1,h=function(){try{n.getState()!=="paused"&&n.pause()}catch(t){console.log(t.message)}},c=function(){n.getState()!=="playing"&&n.play()},l=function(){n.setVolume(0)},a=function(){try{return n.getState()}catch(t){return console.log(t.message),null}},v=function(){!r&&t&&(r=!0,Dell.Transactional.VideoPlayer.Omniture.trackVideoStart(t));Dell.Transactional.VideoPlayer.ClosedCaptions.findClosedCaptions(n);var u=$('.media-player .media-player-container[data-video-id!="'+i+'"]');u.length>0&&u.each(function(){var n=$(this).attr("id"),t=$(this).attr("data-code"),i=$.trim($(this).data("autoplay")).toLowerCase()==="true",r=$.trim($(this).data("loopvideo")).toLowerCase()==="true",u=$.trim($(this).data("disableaudio")).toLowerCase()==="true";Dell.Transactional.VideoPlayer.api.initialize(n,t,i,r,u);e(n)})},y=function(n,i,r){var f=i/r;!u&&t&&f>.8&&(u=!0,Dell.Transactional.VideoPlayer.Omniture.trackVideoEighty(t))},p=function(){!f&&t&&(f=!0,Dell.Transactional.VideoPlayer.Omniture.trackVideoComplete(t))},w=function(){Dell.Transactional.VideoPlayer.PlayerStore.pauseAllExceptThis(i)},b=function(){n.getState()!=="playing"?$("img.rollup-image[data-id='"+i+"']").show():$("img.rollup-image[data-id='"+i+"']").hide()},k=function(){$("img.rollup-image[data-id='"+i+"']").hide()},d=function(t){n=t;o=t.mb;t.mb.subscribe(OO.EVENTS.PLAYBACK_READY,"player",k);t.mb.subscribe(OO.EVENTS.INITIAL_PLAY,"player",v);t.mb.subscribe(OO.EVENTS.PLAY,"player",w);t.mb.subscribe("playheadTimeChanged","player",y);t.mb.subscribe("endScreenShown","player",p);t.mb.subscribe(OO.EVENTS.ERROR,"player",b);$(".oo-icon-play-slick").attr("data-testid","");$(".oo-icon-play-slick").attr("data-testid","oo_video_start_button")};return{initilize:g,onCreate:d,pauseThis:h,playThis:c,muteThis:l,currentPlayStatus:a}};Dell.Transactional.VideoPlayer.Omniture=function(){var n=function(n){s_dell&&s_dell.apl&&(s_dell.linkTrackVars="prop2,prop13,prop49,eVar24",s_dell.linkTrackEvents="event16",s_dell.events=s_dell.apl(s_dell.events,"event16",",",2),s_dell.eVar24=n,s_dell.tl(!0,"o",n))},t=function(n){s_dell&&s_dell.apl&&(s_dell.linkTrackVars="prop2,prop13,prop49,eVar24",s_dell.linkTrackEvents="event33",s_dell.events=s_dell.apl(s_dell.events,"event33",",",2),s_dell.eVar24=n,s_dell.tl(!0,"o",n))},i=function(n){s_dell&&s_dell.apl&&(s_dell.linkTrackVars="prop2,prop13,prop49,eVar24",s_dell.linkTrackEvents="event34",s_dell.events=s_dell.apl(s_dell.events,"event34",",",2),s_dell.eVar24=n,s_dell.tl(!0,"o",n))};return{trackVideoStart:n,trackVideoEighty:t,trackVideoComplete:i}}();Dell.Transactional.VideoPlayer.ClosedCaptions=function(){function r(r){var o=r.getCurrentItemClosedCaptionsLanguages(),u=o.languages,f,e;for(n=i==="zh"?t==="cn"||t==="my"||t==="sg"?"zh-hans":"zh-hant":i+"-"+t,f=0;f0){for(e=document.createDocumentFragment(),o=document.getElementsByTagName("head")[0],i=0;i0||n(".media-player").length>0&&n(".oo-thumbnail-container").length==0}if(i()){var t=n(".media-player-container");t.length>0&&t.each(function(){var t=n(this).attr("id"),i=n(this).attr("data-code"),r=n.trim(n(this).data("autoplay")).toLowerCase()==="true",u=n.trim(n(this).data("loopvideo")).toLowerCase()==="true",f=n.trim(n(this).data("disableaudio")).toLowerCase()==="true";Dell.Transactional.VideoPlayer.api.initialize(t,i,r,u,f)})}else n('button[data-toggle="oo-video"]').on("click",function(t){var i;t.preventDefault();i=n(this);i.parent().addClass("showSpinner");var u=i.attr("data-video-id"),r=n("#"+u),f=r.attr("data-code"),e=n.trim(r.data("loopvideo")).toLowerCase()==="true",o=n.trim(r.data("disableaudio")).toLowerCase()==="true";Dell.Transactional.VideoPlayer.api.initialize(u,f,!0,e,o)})}).call(Dell.Transactional.VideoPlayer)}(jQuery,document);Dell=window.Dell||{};s_dell=window.s_dell||{};Dell.Transactional=Dell.Transactional||{};Dell.Transactional.VideoPlayer=Dell.Transactional.VideoPlayer||{};Dell.Transactional.VideoPlayer.ViewportPlay=function(){var t=!1,n={Init:function(){t||(n.PlayViewportVideos(),n.PauseOffScreenVideos(),n.BindEvents(),t=!0);n.Enable=!0},Enable:!0,BindEvents:function(){$(window).on("scroll",n.Events.OnWindowScroll);$(window).on("resize",n.Events.OnWindowResize)},Events:{OnWindowScroll:function(){n.Enable&&(n.PlayViewportVideos(),n.PauseOffScreenVideos())},OnWindowResize:function(){n.Enable&&(n.PlayViewportVideos(),n.PauseOffScreenVideos())}},PlayViewportVideos:function(){$(".ooyala-responsive-video[data-playinviewport='True']:in-viewport").each(function(){n.PlayVideoByElement($(this))})},PauseOffScreenVideos:function(){$(".ooyala-responsive-video[data-playinviewport='True']:below-the-fold").each(function(){n.PauseVideoByElement($(this))});$(".ooyala-responsive-video[data-playinviewport='True']:above-the-top").each(function(){n.PauseVideoByElement($(this))});$(".ooyala-responsive-video[data-playinviewport='True']:left-of-screen").each(function(){n.PauseVideoByElement($(this))});$(".ooyala-responsive-video[data-playinviewport='True']:right-of-screen").each(function(){n.PauseVideoByElement($(this))})},PauseVideoByElement:function(n){var i=$.trim(n.find(".video-data-container").data("autoplay")).toLowerCase()==="true",t;n.find(".video-data-container").data("player")&&(t=$.trim(n.find(".video-data-container").data("player").currentPlayStatus()).toLowerCase(),i||t!=="playing"||n.data("viewportpause",!0),n.find(".video-data-container").data("player").pauseThis())},PlayVideoByElement:function(n){var i=$.trim(n.find(".video-data-container").data("autoplay")).toLowerCase()==="true",r=$.trim(n.find(".video-data-container").data("loopvideo")).toLowerCase()==="true",t;n.find(".video-data-container").data("player")&&(t=$.trim(n.find(".video-data-container").data("player").currentPlayStatus()).toLowerCase(),(i||n.data("viewportpause"))&&(r||t!=="ready")&&n.find(".video-data-container").data("player").playThis(),n.data("viewportpause",!1))},PlayPauseVideoById:function(t){$(".ooyala-responsive-video[data-playinviewport='True'][data-id='"+t+"']:in-viewport").each(function(){n.PlayVideoByElement($(this))});$(".ooyala-responsive-video[data-playinviewport='True'][data-id='"+t+"']:below-the-fold").each(function(){n.PauseVideoByElement($(this))});$(".ooyala-responsive-video[data-playinviewport='True'][data-id='"+t+"']:above-the-top").each(function(){n.PauseVideoByElement($(this))});$(".ooyala-responsive-video[data-playinviewport='True'][data-id='"+t+"']:left-of-screen").each(function(){n.PauseVideoByElement($(this))});$(".ooyala-responsive-video[data-playinviewport='True'][data-id='"+t+"']:right-of-screen").each(function(){n.PauseVideoByElement($(this))})}},i=function(){n.Init()},r=function(){n.Enable=!1},u=function(t){n.Enable&&n.PlayPauseVideoById(t)};return{enable:i,disable:r,playPauseVideoByVideoId:u}}();$(document).ready(function(){Dell.Transactional.VideoPlayer.ViewportPlay.enable()})