Перейти к контентуПерейти к справке об удобстве использования
Samsung и Cookies

На этом сайте используются файлы cookie. Нажимая ПРИНЯТЬ или продолжая просмотр сайта, вы разрешаете их использование. Подробнее.

Выберите ваш регион или язык.

',u=t("body"),p=u.find(r.wrap),g={tagSort:"current"},h=function(e,a){var n=e.attr(s.attr.pagePath),i=e.attr(s.attr.tagSort)||g.tagSort;n=n?t.changeScene7domain.getChangeLiveLinkPath(n):"",t.CDPCommonFunc.requestCDPAPI(e,{jsonDatas:{rootPath:n,contentPerPage:s.datas.contentPerPage,pageNum:s.datas.pageNum,sort:i},successFunc:f,errorFunc:C,prop:a})},f=function(e,t,a,n,i){200==e.resultCode?(s.datas.resultData=e.hubListData,s.datas.resultData.list.length>0?a.length&&P(t,a,i):n.length&&n.remove()):n.length&&n.remove(),s.datas.apiNum++},C=function(e){s.datas.apiNum++,e.remove()},P=function(e,t,a){if(s.datas.products=s.datas.resultData.list,s.datas.products.length)for(var n=t.find(r.list),i=d,o=0;of;f++)p=o.tags[f],p.tagID&&p.title&&(C="#"==p.title.substr(0,1)||i&&"#"==p.title.substr(p.title.length-1)?p.title:P+p.title,h+=g.replace(m.hashtagLink,t.CDPCommonFunc.getHashTagUrl(p.tagID)).replace(m.hashtagText,C).replace(m.hastagOmni,o.pageTrack+":tag_"+p.title).replace(m.hastagGaLa,"tag_"+p.title)+"\n");u.children().remove(),u.append(h)}else c.remove();a==s.datas.products.length-1&&t.CDPCommonFunc.setReinitInteraction(n)})})},v=function(e,t){m=t.RESPONSIVE_NAME===a.RESPONSIVE.MOBILE.NAME?!0:!1},_=function(){var e=t("body");e.on(i.RESPONSIVE.CHANGE,v),e.trigger(i.RESPONSIVE.GET_STATUS)},b=function(e){return"true"==e.attr(l.datas.api)?e.find(r.moreBtn).length?9999:n.isAemEditMode()?parseInt(e.attr(m?l.datas.mo:l.datas.pc)):9999:e.find(r.moreBtn).length?9999:n.isAemEditMode()?9999:parseInt(e.attr(m?l.datas.mo:l.datas.pc))},S=function(){_(),t.CDPCommonFunc.init(r),t.CDPCommonFunc.setDefaultValue({}),t.CDPCommonFunc.setTemplateCodes({});var a,n=p.length,i=0;if(p.length){s=t.CDPCommonFunc.defaultVal;for(var m=0;n>m;m++)a=p.eq(m),"true"==a.attr(s.attr.useAPI)&&(t.CDPCommonFunc.defaultVal.datas.contentPerPage=b(a),h(a,i),i++);0==i?o.feedColumn.init():t(e).on("load",function(){setTimeout(function(){o.feedColumn.init()},1e3)})}};return{init:S}}(),t(function(){o.columnDataFeed.init()})}(window,window.jQuery); !function(e,n){"use strict";"undefined"==typeof e.smg&&(e.smg={}),"undefined"==typeof e.smg.aem&&(e.smg.aem={}),"undefined"==typeof e.smg.aem.components&&(e.smg.aem.components={}),"undefined"==typeof e.smg.aem.components.hub&&(e.smg.aem.components.hub={}),"undefined"==typeof e.smg.aem.components.hub.common&&(e.smg.aem.components.hub.common={});var o=e.smg.aem.varStatic,t=(e.smg.aem.util,e.smg.aem.customEvent),a=e.smg.aem.components.hub.common.pageNav;a=function(){var a=!1,s=null,i={scrollX:!0,scrollY:!1,scrollbars:!1,disablePointer:!0,disableTouch:!1,disableMouse:!1,interactiveScrollbars:!1,preventDefaultException:{tagName:/(a|img|span)/i}},r="is-active-iscroll",f=(n(e),n(".hu-page-nav")),u=n(".hu-page-nav__wrap"),c=n(".hu-page-nav__menu"),l=n(".hu-page-nav__menu-list"),d=l.find("li"),h=l.find("a"),g=l.width(),v=l.find(".s-active").index(),p=function(){var e=n("body"),s=function(e,n){a=n.RESPONSIVE_NAME===o.RESPONSIVE.MOBILE.NAME?!0:!1},i=function(){e.on(t.RESPONSIVE.CHANGE,n.proxy(s,this)),e.trigger(t.RESPONSIVE.GET_STATUS)},r=function(){e.off(t.RESPONSIVE.CHANGE),e.off(t.RESPONSIVE.GET_STATUS)};return{run:i,reset:r}}(),m=function(){return f.length?f:n(".hu-page-nav")},w=function(){var o=m(),t="s-nav-fixed",a=function(){n(e).on("floating.scroll",n.proxy(function(){var e=r();e.scrollTop>e.offset?s():i()}))},s=function(){o.hasClass(t)||o.addClass(t)},i=function(){o.hasClass(t)&&o.removeClass(t)},r=function(){return{offset:o.length?o.offset().top:0,scrollTop:n(e).scrollTop()}},f=function(){n(e).off("floating.scroll")},u=function(){a(),n(e).on("scroll",n.proxy(function(){n(e).trigger("floating.scroll")}))};return{run:u,reset:f}}(),C=function(){var o=m(),t=o.find(".hu-page-nav__menu-list"),s=t.find("li >a"),i=t.find("li.s-active >a"),r=o.find(".bar"),f=26,u=function(e,n){var o=e&&e.length?e.position().left+f:0,t=e.outerWidth(!0)-2*f;r.css("transition-duration","1s").stop()[n?"css":"animate"]({left:o,width:t},{duration:550})},c=function(){s.on("mouseenter focus",function(e){if(e.preventDefault(),!a){var o=n(e.currentTarget);u(o,!0)}}),t.on("mouseleave",function(e){if(e.preventDefault(),!a){{n(e.currentTarget)}u(i,!0)}}),t.find("li:last > a").addClass("js-loop-hidden"),o.find(".hu-page-nav__inner").on("keydown",function(e){var a=n(e.target);9==e.keyCode&&o.hasClass("s-nav-opened")&&(a.hasClass("js-loop-hidden")?e.shiftKey||(e.preventDefault(),o.find(".hu-page-nav__headline-link").parent().focus()):a.find(".hu-page-nav__headline-link").length&&e.shiftKey&&(e.preventDefault(),t.find(".js-loop-hidden").focus()))})},l=function(){s.off("mouseenter focus"),t.off("mouseleave")},d=function(){n(e).on("resize orientationchange",function(){u(i,!0)})},h=function(){n(e).on("load",function(){u(i,!0)})},g=function(){c(),u(i,!0),h(),setTimeout(function(){u(i,!0)},3e3)};return{run:g,resize:d,reset:l}}(),S=function(){var o=(m(),function(){n(e).on("floating.resize",n.proxy(function(){clearTimeout(s),s=setTimeout(n.proxy(function(){C.resize()}),100)}))}),i=function(){o(),n(e).on("resize orientationchange",n.proxy(function(){n(e).trigger("floating.resize")})),n("body").on(t.RESPONSIVE.CHANGE,n.proxy(r,this))},r=function(){a||(n("body").removeClass("layer-opened"),f.removeClass("s-nav-opened"))},u=function(){n(e).off("floating.resize")};return{run:i,reset:u}}(),N=function(){var e=m(),o=e.find(".hu-page-nav__headline-button"),t="s-nav-opened",s="layer-opened",i=o.data("open-title"),r=o.data("close-title"),f=function(){o.on("click",n.proxy(function(f){f.preventDefault(),a&&(e.hasClass(t)?(e.removeClass(t),n("body").removeClass(s),o.text(i)):(e.addClass(t),e.hasClass("s-nav-fixed")&&n("body").addClass(s),o.text(r)))}))};f()},y={shadowLeftOn:function(){f.hasClass("is-active-left-shadow")||f.addClass("is-active-left-shadow")},shadowLeftOff:function(){f.hasClass("is-active-left-shadow")&&f.removeClass("is-active-left-shadow")},shadowRightOn:function(){f.hasClass("is-active-right-shadow")||f.addClass("is-active-right-shadow")},shadowRightOff:function(){f.hasClass("is-active-right-shadow")&&f.removeClass("is-active-right-shadow")},mouseShadowLeft:function(e){0>e?y.shadowLeftOn():50>e&&y.shadowLeftOff()},mouseShadowRight:function(e,n){0>=e&&e>n?y.shadowRightOn():n>=e&&y.shadowRightOff()},tabShadowLeft:function(e){e>0?y.shadowLeftOn():y.shadowLeftOff()},tabShadowRight:function(e,n){n>=e&&y.shadowRightOn(),e>=n&&y.shadowRightOff()},reset:function(){l.css({transform:"translate(0px, 0px)"}),c.scrollLeft(0),setTimeout(function(){y.shadowLeftOff()},100)},resize:function(e,n,o){return a?void(f.hasClass(r)&&f.removeClass(r)):(n>e?f.hasClass(r)||f.addClass(r):e>n&&f.hasClass(r)&&f.removeClass(r),void o.refresh())},active:function(){var o=new IScroll(c[0],i),t=o.maxScrollX,s=o.x,r=u.width()-200;l.on("touchstart.pageNav mousedown.pageNav",function(){c.scrollLeft()>0&&(c.scrollLeft(0),o.refresh())}),l.on("touchmove.pageNav mousemove.pageNav transitionend.pageNav webkitTransitionEnd.pageNav oTransitionEnd.pageNav otransitionend.pageNav",function(){a||(t=o.maxScrollX,s=o.x,y.mouseShadowLeft(s),y.mouseShadowRight(s,t),h.on("click",function(e){o.moved&&e.preventDefault()}))}),d.on("mouseenter.pageNav",function(){n(this);d.removeClass("s-active")}),h.on("mouseleave.pageNav focusout.pageNav",function(){0>v||d.eq(v).addClass("s-active")}),h.on("keyup.pageNav",function(e){if(9==e.keyCode){var t=n(this),a=(t.parent(),t.parent().index()),s=c.scrollLeft(),i=c.width(),r=l.width(),f=r-i;0==a&&y.reset(),y.tabShadowLeft(s),y.tabShadowRight(s,f),o.x=s,d.removeClass("s-active")}}),n(e).on("load.pageNav resize.pageNav",function(){r=u.width()-200,g=l.width(),setTimeout(function(){t=o.maxScrollX,s=o.x,y.resize(r,g,o),y.mouseShadowLeft(s),y.mouseShadowRight(s,t)},100)})}},E=function(){var o=n(e),t=n(document),a=m(),s=a.find(".hu-page-nav__progress-bar"),i=function(){var e=o.outerHeight(!0),n=t.outerHeight(),a=o.scrollTop(),s=a/(n-e)*100;return s},r=function(){s.attr("value",i())},f=function(){o.off("load.progress resize.progress orietationchange.progress").on("load.progress resize.progress orietationchange.progress",r),o.off("scroll.progress").on("scroll.progress",r)},u=function(){s.length&&(r(),f())};return{run:u}}(),x=function(){f.length&&(p.run(),w.run(),C.run(),E.run(),N(),S.run(),y.active())};return{init:x}}(),n(function(){a.init()})}(window,window.jQuery); !function(e,i){"use strict";"undefined"==typeof e.smg&&(e.smg={}),"undefined"==typeof e.smg.aem&&(e.smg.aem={}),"undefined"==typeof e.smg.aem.components&&(e.smg.aem.components={}),"undefined"==typeof e.smg.aem.components.hub&&(e.smg.aem.components.hub={});var s=e.smg.aem.varStatic,l=e.smg.aem.util,t=e.smg.aem.customEvent,n=e.smg.aem.components.hub;n.pageIntro=function(){var n={wrap:".hu-page-intro",carousel:".hu-page-intro__topic",carouselArrow:".slick-arrow",moreBtn:".hu-page-intro__topic-more-btn",slide:".js-topic-slide",slickInit:"slick-initialized",slickPrev:".slick-prev",slickNext:".slick-next",arrowDisabled:"is-inactive",arrowActive:"is-active",slickOpts:{rtl:i("html").hasClass("rtl"),dots:!1,infinite:!1,speed:500,arrows:!1,slidesToShow:1,slidesToScroll:1}},a={isMobile:null,prevMode:"",firstLoad:!0},r=null,o=null,d=0,u=null,c=function(){r=i("body"),o=i(n.wrap),d=o.length},f=function(){return i("html").hasClass("aem-AuthorLayer-Edit")},p=function(e,i,s,l,t,a){var r=t.parent();if(e.hasClass(n.slickInit)){for(var o=null,d=0;s>d;d++)o=i.eq(d)[0].outerHTML,0==d&&(l+="
    \n"),l+=o+"\n",d==s-1&&(l+="
\n");e.slick("unslick"),e.find(n.slide).remove(),e.append(l)}i.show().removeAttr("style"),i.length>3?(e.find("ul>li:gt(2)").hide(),r.css("display","inline-block")):r.hide(),a.hide(),a.off("click")},m=function(s,t,a,r,o,d){if(!l.isAemEditMode()&&!f()){var u=o.parent(),c=null,p=Math.floor(i(e).width()>1440?1080:.75*i(e).width()),m=0,v=[],h=0,g=0,b=n.arrowActive,k=n.arrowDisabled,C="data-current-slide";if(u.hide(),s.find(n.slickPrev).addClass(k).removeClass(b).prop("disabled",!0),s.find(n.slickNext).removeClass(k).addClass(b).prop("disabled",!1),s.attr(C,"0"),r&&(a.show().removeAttr("style"),!t.hasClass(n.slickInit))){for(;r>h;h++)c=a.eq(h),m+=c.outerWidth(!0),0==h&&(v[g]=[]),m>=p?(g++,m=c.outerWidth(!0),v[g]=[],v[g].push(c[0].outerHTML)):v[g].push(c[0].outerHTML);if(g>0){for(var w=0,E=null,M="";g>=w;w++){E=v[w],M+='
\n',M+="
    \n";for(var A=0;A\n",M+="
\n"}s.attr("data-is-sliding","false"),t.find("ul").remove(),t.append(M),t.slick(n.slickOpts),t.on("afterChange",function(e,i,l){e.preventDefault(),s.attr("data-is-sliding","false").attr(C,l)}),t.on("beforeChange",function(e,l,t,a){if(e.preventDefault(),t!=a){var r=i(l.$slides),o=s.find(n.slickPrev),d=s.find(n.slickNext);0==a?(o.removeClass(b).addClass(k).prop("disabled",!0),d.removeClass(k).addClass(b).prop("disabled",!1)):Number(s.attr(C))+1==r.length-1?(o.removeClass(k).addClass(b).prop("disabled",!1),d.removeClass(b).addClass(k).prop("disabled",!0)):(o.removeClass(k).addClass(b).prop("disabled",!1),d.removeClass(k).addClass(b).prop("disabled",!1))}}),d.show(),d.on("click",function(e){e.preventDefault();var l=i(e.currentTarget),a=s.attr("data-is-sliding"),r=Number(s.attr(C)),o=-1;"true"==a||l.hasClass(k)||(s.attr("data-is-sliding","true"),o=l.hasClass(n.slickNext.substring(1))?r+1:r-1,t.slick("slickGoTo",o))})}else d.hide()}}},v=function(e){for(var i=null,s=null,l=null,t=null,l=null,a=null,r=0,u=0,c="";d>u;u++)i=o.eq(u),s=i.find(n.carousel),l=i.find(n.carouselArrow),t=s.find("ul>li"),a=i.find(n.moreBtn),r=t.length,e?p(s,t,r,c,a,l):m(i,s,t,r,a,l)},h=function(){r.on(t.RESPONSIVE.CHANGE,g),r.trigger(t.RESPONSIVE.GET_STATUS),o.on("click",n.moreBtn,b)},g=function(e,i){var l="";i.RESPONSIVE_NAME==s.RESPONSIVE.MOBILE.NAME?(a.isMobile=!0,l="mobile"):(a.isMobile=!1,l="desktop"),a.prevMode!=l&&(clearTimeout(u),a.firstLoad?(v(a.isMobile),a.firstLoad=!1):u=setTimeout(function(){v(a.isMobile)},400)),a.prevMode=l},b=function(e){e.preventDefault();var s=i(e.currentTarget),l=s.closest(n.wrap),t=l.find(n.moreBtn),a=l.find("ul>li"),r=t.parent(),o=a.length,d=null,u=3;d=setInterval(function(){u==o?clearInterval(d):(a.eq(u).fadeIn(500).css({display:"inline-block",opacity:1}),r.hide(),u++)},100)},k=function(){l.isAemEditMode()||(c(),d&&h())};return{init:k}}(),i(function(){n.pageIntro.init()})}(window,window.jQuery); !function(e,t){"use strict";"undefined"==typeof e.smg&&(e.smg={}),"undefined"==typeof e.smg.aem&&(e.smg.aem={}),"undefined"==typeof e.smg.aem.components&&(e.smg.aem.components={}),"undefined"==typeof e.smg.aem.components.marketing&&(e.smg.aem.components.marketing={});var s=e.smg.aem.varStatic,l=e.smg.aem.util,i=(e.smg.aem.customEvent,e.smg.aem.components.marketing);i.featureFullBleed=function(){var i=document,a=t(i),n={wrap:".ma-g-c-feature-fullbleed",contentWrap:".ma-g-c-feature-fullbleed__wrap",ctaPlayBtn:".js-pop-btn",videoCloseBtn:".js-pop-close",bgVideoWrap:".s-video-bg",videoSetEl:".mp4-video.js-video",videoWrap:".mp4-video.js-video .s-video-player",carouselContainer:".js-pr-carousel-container, .js-cm-carousel-container"};return{init:function(e,t){(this.container=e).size()&&(this.opts=l.def(n,t||{}),this.setElements(),this.$wrap.length&&(this.activateMp4MobileAutoplay(),this.bindEvents()))},setElements:function(){this.$wrap=this.container.find(this.opts.wrap),this.$bgVideoWrap=this.$wrap.find(this.opts.bgVideoWrap),this.$ctaPlayBtn=this.$wrap.find(this.opts.ctaPlayBtn),this.$videoCloseBtn=this.$wrap.find(this.opts.videoCloseBtn),this.$videoSetEl=this.$bgVideoWrap.find(this.opts.videoSetEl),this.$videoWrap=this.$bgVideoWrap.find(this.opts.videoWrap),this.$body=t("body"),this.fullScreen={},this.isMobileState=!(l.winSize().w<=s.RESPONSIVE.MOBILE.WIDTH)},bindEvents:function(){this.youtubeTimeoutObj={},this.$ctaPlayBtn.off("click.featureFullBleed").on("click.featureFullBleed",t.proxy(this.ctaPlayBtnHandler,this)),this.$videoCloseBtn.off("click.featureFullBleed").on("click.featureFullBleed",t.proxy(this.videoCloseBtnHandler,this)),t(e).on("orientationchange.featureFullBleed",t.proxy(this.onOrientationchange,this)),t(e).on("load.featureFullBleed resize.featureFullBleed",t.proxy(this.onResponsiveChange,this)),a.off("mozfullscreenchange.featureFullBleed webkitfullscreenchange.featureFullBleed fullscreenchange.featureFullBleed").on("mozfullscreenchange.featureFullBleed webkitfullscreenchange.featureFullBleed fullscreenchange.featureFullBleed",t.proxy(this.fullScreenChangeEventHandler,this))},setLayoutState:function(){this.isMobileState=l.winSize().w<=s.RESPONSIVE.MOBILE.WIDTH?!0:!1},ctaPlayBtnHandler:function(e){var i=t(e.currentTarget),a=i.data("vid-data").divID,n=t("#"+a).closest(this.opts.wrap),o=this.youtubeTimeoutObj,r=i.closest(this.opts.carouselContainer),d=t("#"+a).closest(".s-video-wrap"),u=d.find(".s-video-container"),c=i.closest(this.opts.contentWrap).find(this.opts.bgVideoWrap),f=c.find("video"),h=d.find(this.opts.videoCloseBtn),p=n.hasClass("ma-g-c-feature-fullbleed--video-embed");n.addClass("s-video-on"),"youtube"===i.data("vid-type")&&(n.addClass("s-video-youtube"),o=setTimeout(function(){n.addClass("s-youtube-ready")},4500)),t(i).closest(".ma-g-feature-fullbleed").hasClass("slick-slide")||t("body").addClass(s.CSS.LAYER_OPENED),r.hasClass("slick-initialized")&&(r.slick("setOption","draggable",!1),r.slick("setOption","swipe",!1)),f.length&&(this.mp4PlayStatus=f[0].paused?!1:!0),f.length&&!f[0].paused&&f[0].pause(),u.attr("tabindex",0).off("keydown.featureFullBleed").on("keydown.featureFullBleed",function(e){t(e.target).hasClass("s-video-container")&&(!p||p&&l.winSize().w<=s.RESPONSIVE.MOBILE.WIDTH)&&9===e.which&&e.shiftKey&&(e.preventDefault(),h.focus())}),h.off("keydown.featureFullBleed").on("keydown.featureFullBleed",function(e){(!p||p&&l.winSize().w<=s.RESPONSIVE.MOBILE.WIDTH)&&(9!==e.which||e.shiftKey||(e.preventDefault(),u.focus()))})},videoCloseBtnHandler:function(e){var l=t(e.currentTarget),i=l.data("div-id"),a=t("#"+i).closest(this.opts.wrap),n=this.youtubeTimeoutObj,o=l.closest(this.opts.carouselContainer),r=t("#"+i).closest(".s-video-wrap"),d=r.find(".s-video-container"),u=t("#"+i).closest(this.opts.wrap).find(this.opts.bgVideoWrap),c=u.find("video"),f=r.find(this.opts.videoCloseBtn);clearTimeout(n),a.removeClass("s-video-on").removeClass("s-video-youtube").removeClass("s-youtube-ready"),t(l).closest(".ma-g-feature-fullbleed").hasClass("slick-slide")||t("body").removeClass(s.CSS.LAYER_OPENED),o.hasClass("slick-initialized")&&(o.slick("setOption","draggable",!0),o.slick("setOption","swipe",!0)),this.mp4PlayStatus&&c.length&&c[0].paused&&c[0].play(),d.attr("tabindex",-1).off("keydown.featureFullBleed"),f.off("keydown.featureFullBleed")},activateMp4MobileAutoplay:function(){if(this.$videoSetEl.length)for(var e=0;e=l&&a>=d?e.playStatus[t]||(s[0].play(),e.playStatus[t]=!0):e.playStatus[t]&&(setTimeout(function(){s[0].pause(),s[0].currentTime=0},50),e.playStatus[t]=!1)}})},resetPlayStatus:function(){this.playStatus=[]},linkOver:function(){var e="s-hover-enter",s="s-hover-leave";this.$linkOver.length<1||this.$linkOverButton.on("mouseenter focus",t.proxy(function(o){var i=t(o.currentTarget).closest(this.opts.linkOver);i.removeClass(s).addClass(e),i.on("mouseleave",function(){var o=t(this);o.addClass(s),setTimeout(function(){o.removeClass(e),o.removeClass(s)},500)})},this))}}}(),t(function(){o.storyFullBleed.init(t("body"))})}(window,window.jQuery),function(e,t){"use strict";"undefined"==typeof e.smg&&(e.smg={}),"undefined"==typeof e.smg.aem&&(e.smg.aem={}),"undefined"==typeof e.smg.aem.components&&(e.smg.aem.components={}),"undefined"==typeof e.smg.aem.components.hub&&(e.smg.aem.components.hub={});var s=e.smg.aem.varStatic,o=e.smg.aem.util,i=e.smg.aem.customEvent,l=e.smg.aem.components.hub;l.storyFullBleedMp4Responsive=function(){var l={storyFullbleedWrap:".hu-story-fullbleed",mp4Video:".hu-story-fullbleed__video-bg .js-mp4-autoplay",sVideoPlayer:".s-video-player"};return{init:function(e,t){(this.container=e).size()&&(this.opts=o.def(l,t||{}),this.setElements(),this.$storyFullbleedWrap.length&&this.setBindEvents())},setElements:function(){this.$storyFullbleedWrap=t(this.opts.storyFullbleedWrap),this.$mp4VideoWrap=this.$storyFullbleedWrap.find(this.opts.mp4Video),this.$sVideoPlayer=this.$storyFullbleedWrap.find(this.opts.sVideoPlayer),this.resImgs=this.$storyFullbleedWrap.find("."+s.CSS.JS_IMG_SRC),this.resDataAttr=s.DATA_ATTR.SRC_MOBILE,this.prevResDataAttr=s.DATA_ATTR.SRC_MOBILE},setBindEvents:function(){this.container.on(i.RESPONSIVE.CHANGE,t.proxy(this.onResponsiveChange,this)),this.container.trigger(i.RESPONSIVE.GET_STATUS)},changeMp4ResponseVideoURL:function(o){if(this.prevResDataAttr){var i=this.$mp4VideoWrap;i.length&&i.each(function(l){var a=i.eq(l),n=a.find(".s-video"),r="";o===s.DATA_ATTR.SRC_PC?r=a.data("vid-data").videoURL:o===s.DATA_ATTR.SRC_MOBILE&&(r=a.data("vid-data").videoMobileURL),n.find("source").attr("src",r),n[0].load(),t(n[0]).off("loadeddata").on("loadeddata",function(){n.trigger("resetPlayStatus.storyFullBleed"),t(e).trigger("scroll.storyFullBleed")})})}},onResponsiveChange:function(e,t){switch(t.RESPONSIVE_NAME){case s.RESPONSIVE.DESKTOP.NAME:this.resDataAttr=s.DATA_ATTR.SRC_PC;break;case s.RESPONSIVE.MOBILE.NAME:this.resDataAttr=s.DATA_ATTR.SRC_MOBILE;break;default:this.resDataAttr=s.DATA_ATTR.SRC_PC}this.changeMp4ResponseVideoURL(this.resDataAttr),this.prevResDataAttr=this.resDataAttr}}}(),t(function(){8!==document.documentMode&&l.storyFullBleedMp4Responsive.init(t("body"))})}(window,window.jQuery),function(e,t){"use strict";"undefined"==typeof e.smg&&(e.smg={}),"undefined"==typeof e.smg.aem&&(e.smg.aem={}),"undefined"==typeof e.smg.aem.components&&(e.smg.aem.components={}),"undefined"==typeof e.smg.aem.components.hub&&(e.smg.aem.components.hub={});var s=e.smg.aem.varStatic,o=e.smg.aem.util,i=e.smg.aem.customEvent,l=e.smg.aem.components.hub;l.storyFullBleedMp4ResponsiveChangeData=function(){var e={storyFullbleedWrap:".hu-story-fullbleed",mp4Video:".hu-story-fullbleed__video-bg .js-mp4-autoplay",imgDiv:".hu-story-fullbleed__figure .js-img-src"};return{init:function(t,s){(this.container=t).size()&&(this.opts=o.def(e,s||{}),this.setElements(),this.$storyFullbleedWrap.length&&this.setBindEvents())},setElements:function(){this.$storyFullbleedWrap=t(this.opts.storyFullbleedWrap),this.$mp4VideoWrap=this.$storyFullbleedWrap.find(this.opts.mp4Video),this.$imgDiv=this.$storyFullbleedWrap.find(this.opts.imgDiv)},setBindEvents:function(){this.container.on(i.RESPONSIVE.CHANGE,t.proxy(this.onResponsiveChange,this)),this.container.trigger(i.RESPONSIVE.GET_STATUS)},onResponsiveChange:function(e,t){switch(t.RESPONSIVE_NAME){case s.RESPONSIVE.DESKTOP.NAME:this.resDataAttr=s.DATA_ATTR.SRC_PC;break;case s.RESPONSIVE.MOBILE.NAME:this.resDataAttr=s.DATA_ATTR.SRC_MOBILE;break;default:this.resDataAttr=s.DATA_ATTR.SRC_PC}this.prevResDataAttr=this.resDataAttr,this.storyFullBleedMp4ResponsiveChange(this.resDataAttr)},storyFullBleedMp4ResponsiveChange:function(e){if(this.prevResDataAttr){var t=this.$storyFullbleedWrap;t.length&&t.each(function(o){var i=t.eq(o).find(".hu-story-fullbleed__video-bg .js-mp4-autoplay"),a=t.eq(o).find(".hu-story-fullbleed__figure .js-img-src");if(i.length){var n=i.eq(0);e===s.DATA_ATTR.SRC_PC?l.storyFullBleedMp4ResponsiveChangeData.storyFullBleedSectionClass(a,n,"pc"):e===s.DATA_ATTR.SRC_MOBILE&&l.storyFullBleedMp4ResponsiveChangeData.storyFullBleedSectionClass(a,n,"mobile")}else if(e===s.DATA_ATTR.SRC_PC){var r=a.closest(".hu-story-fullbleed");l.storyFullBleedMp4ResponsiveChangeData.onDivWrapRemove(a,r,"pc")}else if(e===s.DATA_ATTR.SRC_MOBILE){var r=a.closest(".hu-story-fullbleed");l.storyFullBleedMp4ResponsiveChangeData.onDivWrapRemove(a,r,"mobile")}})}},onDivWrapRemove:function(e,s,o){if(e.length){var i=t(e).eq(0),l=i.data("src-"+o);"mobile"!=o||void 0!=l&&""!=l||(l=i.data("src-pc")),void 0==l||""==l?(e.closest("picture").css("display","none"),s.hasClass("hu-story-fullbleed--text-only")||s.addClass("hu-story-fullbleed--text-only"),s.removeClass("hu-story-fullbleed--has-asset")):(e.closest("picture").css("display","block"),s.hasClass("hu-story-fullbleed--has-asset")||s.addClass("hu-story-fullbleed--has-asset"),s.removeClass("hu-story-fullbleed--text-only"))}},storyFullBleedSectionClass:function(e,s,o){var i,l=s.closest(".hu-story-fullbleed");if("pc"==o?i=s.data("vid-data").videoURL:"mobile"==o&&(i=s.data("vid-data").videoMobileURL),""==i){if(s.closest(".hu-story-fullbleed__video-bg").css("display","none"),s.closest(".hu-story-fullbleed__figure").find("picture").css("display","block"),e.length){var a=t(e).eq(0),n=a.data("src-"+o);"mobile"!=o||void 0!=n&&""!=n||(n=a.data("src-pc")),void 0==n||""==n?(l.hasClass("hu-story-fullbleed--text-only")||l.addClass("hu-story-fullbleed--text-only"),l.removeClass("hu-story-fullbleed--has-asset"),e.closest("picture").css("display","none")):e.closest("picture").css("display","block")}}else s.closest(".hu-story-fullbleed__video-bg").css("display","block"),s.closest(".hu-story-fullbleed__figure").find("picture").css("display","none"),l.hasClass("hu-story-fullbleed--has-asset")||l.addClass("hu-story-fullbleed--has-asset"),l.removeClass("hu-story-fullbleed--text-only")}}}(),t(function(){l.storyFullBleedMp4ResponsiveChangeData.init(t("body"))})}(window,window.jQuery);