1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9115],{59115:(e,t,l)=>{l.d(t,{Q:()=>U,A:()=>B});var n=l(37876),i=l(14232),r=l(34820),a=l(88517),o=l(63240),s=l(72563);let u=e=>{var t,l,r,u;let{selected:c,index:d,onClick:p,slide:m,autoplayDelay:x=15e3,timerResetKey:f=0,autoplayStartTime:h=null}=e,v=(0,i.useMemo)(()=>!!m&&(0,o.FC)(m),[m]),w=(0,i.useRef)(null),g=(0,i.useRef)(null),b=(0,i.useRef)(0);(0,i.useEffect)(()=>{if(!w.current)return;if(!c||null===h){w.current.style.transform="scaleX(0)",null!==g.current&&(cancelAnimationFrame(g.current),g.current=null);return}let e=()=>{if(!w.current||null===h)return;let t=Math.min(Date.now()-h,x),l=Math.min(t/x,1);w.current.style.transform="scaleX(".concat(l,")"),t<x&&c&&(g.current=requestAnimationFrame(e))};return e(),()=>{null!==g.current&&(cancelAnimationFrame(g.current),g.current=null)}},[c,h,x,f]);let[y,_]=(0,i.useState)(!1);return v?null:(0,n.jsx)("div",{className:"EmblaTopThumbs embla-thumbs__slide".concat(c?" embla-thumbs__slide--selected":""),children:(0,n.jsxs)("button",{onClick:()=>{let e=Date.now();e-b.current<500||(b.current=e,p())},type:"button",className:"relative w-full",children:[(0,n.jsx)("div",{className:"flex-none border-[1px] tablet:border-[2px] xl:border-[3px] flex items-center justify-center cursor-pointer rounded-[6px] overflow-hidden ease-out duration-500 ".concat(c?"border-white scale-[1.075]":"border-black/12 opacity-60"),style:c?{boxShadow:"2px 2px 8px 0px rgba(0, 0, 0, 0.24)"}:{},children:(0,n.jsx)("img",{src:!y&&((null==m||null==(t=m.image)?void 0:t.landscape)||(null==m||null==(l=m.image)?void 0:l.landscape_title))?(0,a.Tu)({imageUrl:(null==m||null==(r=m.image)?void 0:r.landscape)||(null==m||null==(u=m.image)?void 0:u.landscape_title)}):s.Uk,alt:null==m?void 0:m.title,className:"w-full ".concat(c?"opacity-100":""),loading:"lazy",onError:()=>_(!0)})},d),c&&(0,n.jsx)("div",{className:"absolute -bottom-[6px] tablet:-bottom-[12px] left-0 right-0 h-[2px] tablet:h-[4px] xl:h-[4px] bg-white/20 rounded-full overflow-hidden",children:(0,n.jsx)("div",{ref:w,className:"h-full bg-white rounded-full",style:{transform:"scaleX(0)",transformOrigin:"left",willChange:"transform"}},"progress-".concat(d,"-").concat(f))})]})})};var c=l(98381),d=l(86308),p=l.n(d),m=l(46727),x=l(49038),f=l(23982),h=l(54244),v=l(67013),w=l(25953),g=l(22587),b=l(60184),y=l(4772),_=l(93480),k=l(43326),j=l(18847),N=l.n(j),S=l(59316),E=l(89099);let M=N()(()=>Promise.all([l.e(3649),l.e(3012)]).then(l.bind(l,93012)),{loadableGenerated:{webpack:()=>[93012]},ssr:!1}),T=N()(()=>l.e(900).then(l.bind(l,90900)),{loadableGenerated:{webpack:()=>[90900]},ssr:!1});function D(e){var t,l,r,s,u,d,j,N,D,A,I,O,R;let{slide:C,block:F,isInview:P,index:z}=e,L=(0,E.useRouter)(),{checkLive:V,checkDataLive:U,preSecond:B,nextSecond:G,preMin:H,nextMin:X,isShowLiveLabel:q}=(0,m.A)({slide:C,block:F}),{viewportType:K,width:Y}=(0,_.Ay)(),{configs:$}=(0,i.useContext)(k.B),Q=(0,i.useMemo)(()=>{var e;return(null==$||null==(e=$.image)?void 0:e.bg_live)||"/images/bg_live_default.png"},[$]),W=(0,i.useMemo)(()=>{var e;return(null==$||null==(e=$.image)?void 0:e.bg_time_event)||"/images/bg_time_event_default.png"},[$]),{isStartPlayTrailer:J,setIsStartPlayTrailer:Z,isPlaySuccess:ee,setIsPlaySuccess:et}=(0,g.A)(),el=(0,b.GV)(e=>e.app.isMutedTrailerPlayer),en=(0,b.jL)(),ei=(0,i.useMemo)(()=>{var e,t,l;let n=[];return(null==C||null==(e=C.detail)?void 0:e.priority_tag)&&n.push({data:C.detail.priority_tag,color:!0}),(null==C||null==(l=C.detail)||null==(t=l.meta_data)?void 0:t.length)&&C.detail.meta_data.forEach(e=>{n.push({data:e,color:!1})}),n},[C]),er=(0,i.useMemo)(()=>{let e=L.query.id;return(0,a.d)({data:C||{},type:(null==F?void 0:F.type)||"",parentId:e})||"/"},[C,F,z]),ea=(0,i.useMemo)(()=>(B||B||G||X)&&void 0!==B&&void 0!==G&&void 0!==H&&void 0!==X,[B,G,H,X]),[eo,es]=(0,i.useState)(!1),eu=(0,i.useMemo)(()=>!!C&&(0,o.FC)(C),[C]);(0,i.useEffect)(()=>{P||es(!1)},[P]),(0,i.useEffect)(()=>{var e;let t;return P||(et(!1),Z(!1)),P&&(null==C||null==(e=C.trailer_info)?void 0:e.url)&&(t=setTimeout(()=>{Z(!0)},1500)),()=>{clearTimeout(t)}},[P,C]),(0,i.useEffect)(()=>{U();let e=setInterval(()=>{U()},1e3);return()=>{clearInterval(e)}},[C,F]);let ec=(0,i.useMemo)(()=>Y<=768,[Y]),ed=(0,i.useMemo)(()=>{let e="string"==typeof(null==C?void 0:C.view_count_fmt)&&""!==C.view_count_fmt.trim(),t=(null==F?void 0:F.block_type)==="highlight"||(null==F?void 0:F.block_type)==="horizontal_highlight"||(null==F?void 0:F.block_type)==="horizontal_slider"||(null==F?void 0:F.block_type)==="feature_horizontal_slider"||(null==F?void 0:F.block_type)==="horizontal_highlight_without_background"||(null==F?void 0:F.block_type)==="horizontal_slider_with_background";return!!e&&!!t},[F,C,null==L?void 0:L.asPath]),[ep,em]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{em(!1)},[P]),eu)?null:(0,n.jsxs)("div",{className:"TopSlideItem relative",children:[(0,n.jsxs)("div",{className:"relative w-full h-full",children:[P&&(null==C||null==(t=C.trailer_info)?void 0:t.url)&&J&&(0,n.jsxs)("div",{className:"w-full h-full absolute top-0 left-0",children:[(0,n.jsx)(M,{url:null==C||null==(l=C.trailer_info)?void 0:l.url,isMuted:el,type:w.W.top_slider,isStartPlay:J,onError:()=>et(!1),onPlaySuccess:()=>et(!0),onEnded:()=>{et(!1)}}),(0,n.jsx)("img",{src:ec?"/images/Mask_High-light_New_Final.png":"/images/Mask_High-light_New_Final_PC.png",alt:"bg",className:"w-full h-[101%] absolute bottom-0 left-0 translate-y-[5px]"})]}),(0,n.jsxs)("div",{className:"ease-out duration-1000 relative z-[1] ".concat(ee?"opacity-0":"opacity-100"),children:[(0,n.jsx)(c.A,{imageAlt:(null==C?void 0:C.title_vie)||(null==C?void 0:C.title)||"",imageClassName:"w-full min-w-full max-w-full",imageUrl:(0,a.Tu)({imageUrl:(null==C||null==(r=C.image)?void 0:r.landscape)||(null==C||null==(s=C.image)?void 0:s.landscape_title)}),type:"top",block:F,slide:C,blockDirection:"horizontal",imageRadius:"roun
1ded-0"}),(0,n.jsx)("img",{src:ec?"/images/Mask_High-light_New_Final.png":"/images/Mask_High-light_New_Final_PC.png",alt:"bg",className:"w-full h-[101%] tablet:h-full absolute top-0 left-0"})]})]}),P&&(0,n.jsxs)("div",{onMouseLeave:()=>es(!1),className:"".concat(p().infoContainer," mt-[24px] tablet:mt-0 mb-[32px] tablet:mb-0 px-[16px] tablet:px-0 z-[1] tablet:absolute tablet:left-[24px] xl:left-[48px] tablet:right-[16px] bigscreen:left-[104px] w2k:left-[140px] w4k:left-[210px] tablet:bottom-[24px] tablet:w-1/2 xl:w-[632px] w2k:w-[842px] w4k:w-[1263px] xl:bottom-[270px] 2xl:bottom-[330px] w2k:bottom-[578px] w4k:bottom-[870px]"),children:[(null==C?void 0:C.achievement_info)&&(null==C||null==(u=C.achievement_info)?void 0:u.length)>0&&(0,n.jsx)(S.A,{slide:C}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"w-full",children:(null==C||null==(d=C.image)?void 0:d.title)&&!ep?(0,n.jsx)("img",{src:(null==(j=C.image)?void 0:j.title)||"",alt:"title image",className:"max-w-full max-h-[74px] tablet:max-h-[48px] xl:max-h-[120px] xl:max-w-[632px] w2k:w-full w2k:max-w-[842px] w2k:max-h-[160px] w4k:max-w-[1263px] w4k:max-h-[240px]",onError:()=>em(!0)}):(0,n.jsx)("p",{className:"text-shadow-top-slide text-[24px] md:text-[28px] xl:text-[48px] w2k:text-[64px] w4k:text-[72px] leading-[29px] xl:leading-[54px] font-[600] line-clamp-2 max-w-[632px] xl:max-h-[170px] w2k:max-h-fit w2k:leading-[130%] w2k:max-w-[842px] w4k:max-w-[1263px]",children:(null==C?void 0:C.title_vie)||(null==C?void 0:C.title)})})}),(0,n.jsx)("div",{className:"mt-[16px] w2k:mt-[24px] w4k:mt-[36px]",children:(0,n.jsx)(v.A,{slide:C,block:F,type:"top-slide"})}),(ei&&(null==ei?void 0:ei.length)>0||(null==C||null==(N=C.detail)?void 0:N.short_description))&&(0,n.jsxs)("div",{className:"flex items-center gap-[2px] md:gap-[6px] mt-[8px] w2k:mt-[24px] w4k:mt-[36px] tablet:max-w-none truncate",children:[ei&&(null==ei?void 0:ei.length)>0&&(0,n.jsx)("div",{className:"max-w-[390px] xl:max-w-[590px] w2k:max-w-full",children:(0,n.jsx)("div",{className:"whitespace-nowrap overflow-hidden truncate [&>div]:inline-flex [&>div]:items-center [&>div]:gap-[6px]",children:(0,n.jsx)(h.A,{metaData:ei,type:"top-slide"})})}),(null==C||null==(D=C.detail)?void 0:D.short_description)&&(0,n.jsx)("button",{"aria-label":"show more",className:"hover:cursor-pointer hidden xl:flex transition-all duration-300 ease-in w-[24px] h-[24px] w2k:w-[32px] w2k:h-[32px] w4k:w-[48px] w4k:h-[48px] rounded-full items-center justify-center bg-white-007 border border-white-016 ".concat(eo?"opacity-0":"opacity-100"," ").concat(ei&&(null==ei?void 0:ei.length)>0?"ml-[18px] w2k:ml-[24px] w4k:ml-[36px]":""),onMouseEnter:()=>es(!0),children:(0,n.jsx)(x.z44,{size:16,className:"FaCaretDown w2k:w-[20px] w2k:h-[15px] w4k:w-[30px] w4k:h-[24px]"})})]}),(null==C||null==(A=C.detail)?void 0:A.short_description)&&(0,n.jsx)(n.Fragment,{children:K===_.Mn.DESKTOP?(0,n.jsx)("div",{className:"mt-[8px] max-h-0 overflow-hidden transition-all duration-300 ease-in ".concat(eo?"max-h-[100px] w2k:max-h-[170px]":""),children:(0,n.jsx)("p",{className:"font-[500] text-[18px] w2k:text-[24px] w4k:text-[36px] line-clamp-3 w-full text-shadow-top-slide",children:null==C||null==(I=C.detail)?void 0:I.short_description})}):(0,n.jsx)("div",{children:(0,n.jsx)("p",{className:"mt-[8px] font-[500] text-[12px] tablet:text-[14px] leading-[130%] line-clamp-3 w-full text-shadow-top-slide",children:null==C||null==(O=C.detail)?void 0:O.short_description})})}),(0,n.jsxs)("div",{className:"relative flex items-center gap-[8px]",children:[q&&(V&&!ea?(0,n.jsxs)("div",{className:"relative inline-flex items-center justify-center h-[22px] tablet:h-[24px] xl:h-[28px] w2k:h-[40px] w4k:h-[60px] w-fit text-center px-[8px] w2k:px-[16px] w4k:px-[32px] py-[1px] text-[14px] w2k:text-[18px] w4k:text-[24px] mt-[12px] w2k:mt-[24px] w4k:mt-[36px] leading-[100%] overflow-hidden rounded-[4px] w2k:rounded-[12px] w4k:rounded-[18px]",children:[(0,n.jsx)("div",{className:"absolute inset-0",style:{background:"url(".concat(W,") no-repeat left center / auto 100%"),borderTopRightRadius:"6px",borderBottomRightRadius:"6px",width:"100%",height:"100%"}}),(0,n.jsx)("span",{className:"relative z-1",children:V})]}):(0,n.jsx)(n.Fragment,{children:ea&&V?(0,n.jsxs)("div",{className:"inline-flex items-center gap-[6px] mt-[12px]",children:[(0,n.jsx)("div",{className:p().countdown_container,children:(0,n.jsxs)("div",{className:p()["move-number"],children:[(0,n.jsx)("div",{className:"flex items-center justify-center",children:H}),(0,n.jsx)("div",{className:"flex items-center justify-center",children:X})]},"s-".concat(H,"-").concat(X))}),(0,n.jsx)("span",{children:":"}),(0,n.jsx)("div",{className:p().countdown_container,children:(0,n.jsxs)("div",{className:p()["move-number"],children:[(0,n.jsx)("div",{className:"flex items-center justify-center",children:B}),(0,n.jsx)("div",{className:"flex items-center justify-center",children:G})]},"m-".concat(B,"-").concat(G))})]}):(null==C?void 0:C.label_event)?(0,n.jsxs)("div",{className:"relative inline-flex items-center justify-center h-[22px] tablet:h-[24px] xl:h-[28px] w2k:h-[40px] w4k:h-[60px] w-fit text-center px-[8px] w2k:px-[16px] w4k:px-[32px] py-[1px] text-[14px] w2k:text-[18px] w4k:text-[24px] font-[700] mt-[12px] w2k:mt-[24px] w4k:mt-[36px] leading-[100%] overflow-hidden rounded-[4px] w2k:rounded-[12px] w4k:rounded-[18px]",children:[(0,n.jsx)("div",{className:"absolute inset-0",style:{background:"url(".concat(Q,") no-repeat left center / auto 100%"),borderTopRightRadius:"6px",borderBottomRightRadius:"6px",width:"100%",height:"100%"}}),(0,n.jsx)("span",{className:"relative z-1",children:null==C?void 0:C.label_event})]}):""})),ed&&(0,n.jsx)("div",{className:"relative shrink-0 mt-[12px]",children:(0,n.jsx)(T,{view_count:(null==C?void 0:C.view_count_fmt)?{view_count:null!=(R=C.view_count)?R:0,view_count_fmt:C.view_count_fmt}:null,variant:"top_items",className:"w-fit",begin_time:(null==C?void 0:C.begin_time)||(null==C?void 0:C.start_time),end_time:null==C?void 0:C.end_time})})]}),(0,n.jsx)("div",{className:" mt-[24px] tablet:mt-[32px] xl:mt-[40px] w2k:mt-[80px] w4k:mt-[124px]",children:(0,n.jsx)(f.A,{block:F,slide:C,type:"top-slide",slideLink:er,isMuted:el,index:z,blockIndexSortedRecommend:0,onClickVolume:()=>en((0,y.cE)(!el))})})]})]})}function A(e,t,l){return Math.min(Math.max(e,t),l)}function I(e){return"number"==typeof e&&!isNaN(e)}function O(e={}){let t,l,n,i,r=[],a=0,o=0,s=0,u=!1;function c(){x(t.selectedScrollSnap(),1)}function d(){u=!1}function p(){u=!1,a=0,o=0}function m(){let e=t.internalEngine().scrollBody.duration();o=+!e,u=!0,e||c()}
1function x(e,l){t.scrollSnapList().forEach((n,i)=>{let o=Math.abs(l),c=r[i],d=i===e,p=A(d?c+o:c-o,0,1);r[i]=p;let m=d&&u,x=t.previousScrollSnap();m&&(r[x]=1-p),d&&function(e,l){let{index:n,dragHandler:i,scrollSnaps:r}=t.internalEngine(),o=i.pointerDown(),u=1/(r.length-1),c=e,d=o?t.selectedScrollSnap():t.previousScrollSnap();if(o&&c===d){let e=-1*Math.sign(a);c=d,d=n.clone().set(d).add(e).get()}s=d*u+(c-d)*u*l}(e,p),function(e){let l=t.internalEngine().slideRegistry[e],{scrollSnaps:n,containerRect:i}=t.internalEngine(),a=r[e];l.forEach(l=>{let r=t.slideNodes()[l].style,o=parseFloat(a.toFixed(2)),s=o>0,u=function(e){let{axis:l}=t.internalEngine(),n=l.scroll.toUpperCase();return`translate${n}(${l.direction(e)}px)`}(s?n[e]:i.width+2);s&&(r.transform=u),r.opacity=o.toString(),r.pointerEvents=a>.5?"auto":"none",s||(r.transform=u)})}(i)})}function f(){let{dragHandler:e,index:l,scrollBody:n}=t.internalEngine(),i=t.selectedScrollSnap();if(!e.pointerDown())return i;let r=Math.sign(n.velocity()),o=Math.sign(a),s=l.clone().set(i).add(-1*r).get();return r&&o?o===r?s:i:null}function h(){let{target:e,location:n}=t.internalEngine(),i=Math.abs(e.get()-n.get())>=1,s=f(),u=!I(s);return!function(e){let{dragHandler:n,scrollBody:i}=e.internalEngine(),s=n.pointerDown(),u=i.velocity(),c=i.duration(),d=f(),p=!I(d);if(s){if(!u)return;a+=u,o=Math.abs(u/l);let{scrollSnaps:e,location:n,target:i}=t.internalEngine();I(d)&&!(r[d]<.5)&&(n.set(e[d]),i.set(n))}if(!s){if(!c||p)return;o+=(1-r[d])/c,o*=.68}p||x(d,o)}(t),!u&&!i&&r[s]>.999}function v(){return s}return{name:"fade",options:e,init:function(e){let a=(t=e).selectedScrollSnap(),{scrollBody:o,containerRect:s,axis:x}=t.internalEngine();l=A(.75*x.measureSize(s),200,500),u=!1,r=t.scrollSnapList().map((e,t)=>+(t===a)),n=o.settled,i=t.scrollProgress,o.settled=h,t.scrollProgress=v,t.on("select",m).on("slideFocus",c).on("pointerDown",p).on("pointerUp",d),function(){let{translate:e,slideLooper:l}=t.internalEngine();e.clear(),e.toggleActive(!1),l.loopPoints.forEach(({translate:e})=>{e.clear(),e.toggleActive(!1)})}(),c()},destroy:function(){let{scrollBody:e}=t.internalEngine();e.settled=n,t.scrollProgress=i,t.off("select",m).off("slideFocus",c).off("pointerDown",p).off("pointerUp",d),t.slideNodes().forEach(e=>{let t=e.style;t.opacity="",t.transform="",t.pointerEvents="",e.getAttribute("style")||e.removeAttribute("style")})}}}O.globalOptions=void 0;let R={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function C(e={}){let t,l,n,i,r=null,a=0,o=!1,s=!1,u=!1,c=!1;function d(){if(!n){if(x()){u=!0;return}o||l.emit("autoplay:play");let{ownerWindow:e}=l.internalEngine();e.clearTimeout(a),a=e.setTimeout(g,i[l.selectedScrollSnap()]),r=new Date().getTime(),l.emit("autoplay:timerset"),o=!0}}function p(){if(!n){o&&l.emit("autoplay:stop");let{ownerWindow:e}=l.internalEngine();e.clearTimeout(a),a=0,r=null,l.emit("autoplay:timerstopped"),o=!1}}function m(){if(x())return u=o,p();u&&d()}function x(){let{ownerDocument:e}=l.internalEngine();return"hidden"===e.visibilityState}function f(){s||p()}function h(){s||d()}function v(){s=!0,p()}function w(){s=!1,d()}function g(){let{index:e}=l.internalEngine(),n=e.clone().add(1).get(),i=l.scrollSnapList().length-1,r=t.stopOnLastSnap&&n===i;if(l.canScrollNext()?l.scrollNext(c):l.scrollTo(0,c),l.emit("autoplay:select"),r)return p();d()}return{name:"autoplay",options:e,init:function(r,a){l=r;let{mergeOptions:o,optionsAtMedia:s}=a,u=o(R,C.globalOptions);if(t=s(o(u,e)),l.scrollSnapList().length<=1)return;c=t.jump,n=!1,i=function(e,t){let l=e.scrollSnapList();return"number"==typeof t?l.map(()=>t):t(l,e)}(l,t.delay);let{eventStore:x,ownerDocument:g}=l.internalEngine(),b=!!l.internalEngine().options.watchDrag,y=function(e,t){let l=e.rootNode();return t&&t(l)||l}(l,t.rootNode);x.add(g,"visibilitychange",m),b&&l.on("pointerDown",f),b&&!t.stopOnInteraction&&l.on("pointerUp",h),t.stopOnMouseEnter&&x.add(y,"mouseenter",v),t.stopOnMouseEnter&&!t.stopOnInteraction&&x.add(y,"mouseleave",w),t.stopOnFocusIn&&l.on("slideFocusStart",p),t.stopOnFocusIn&&!t.stopOn
1Interaction&&x.add(l.containerNode(),"focusout",d),t.playOnInit&&d()},destroy:function(){l.off("pointerDown",f).off("pointerUp",h).off("slideFocusStart",p),p(),n=!0,o=!1},play:function(e){void 0!==e&&(c=e),d()},stop:function(){o&&p()},reset:function(){o&&d()},isPlaying:function(){return o},timeUntilNext:function(){return r?i[l.selectedScrollSnap()]-(new Date().getTime()-r):null}}}C.globalOptions=void 0;var F=l(36410),P=l(63174),z=l(59150),L=l(83726),V=l(66360);let U=(0,i.createContext)({isMuted:!0,isInViewport:!1}),B=e=>{var t;let{width:l}=(0,_.Ay)(),a=(0,b.jL)(),{slidesItems:s,block:c}=e,[d,p]=(0,i.useState)(0),{timeStartBlockPlayer:m}=(0,b.GV)(e=>e.blockSlice),{tabActive:x}=(0,b.GV)(e=>e.app),{isInViewport:f,targetElement:h}=(0,z.B)({threshold:.3}),v=(0,i.useRef)(!0),w=(0,i.useMemo)(()=>C({delay:15e3,stopOnInteraction:!1,stopOnMouseEnter:!1}),[]),[g,j]=(0,i.useState)(0),[N,S]=(0,i.useState)(!1),E=(0,i.useRef)(Date.now()),M=(0,i.useRef)(null),T=(0,i.useRef)(void 0),A=(0,i.useRef)(x),I=(0,i.useRef)(null),R=(0,i.useRef)(null),B=(0,i.useRef)(null),G=()=>{let e=sessionStorage.getItem(V._0O);window.scrollY>Number(e)?sessionStorage.setItem(V.A4V,"down"):sessionStorage.setItem(V.A4V,"up"),sessionStorage.setItem(V._0O,String(window.scrollY))};(0,i.useEffect)(()=>(window.addEventListener("scroll",G),()=>{window.removeEventListener("scroll",G)}),[]),(0,i.useEffect)(()=>{if(f&&!(null==v?void 0:v.current)&&"up"===sessionStorage.getItem(V.A4V)){var e,t;let l=void 0!==m;if(l&&j(e=>e+1),a((0,F.dV)()),l&&setTimeout(()=>{if(w&&"function"==typeof w.reset)try{w.reset()}catch(e){}},100),null==(e=window.topSliderPlayer)?void 0:e.getMediaElement){let e=null==(t=window.topSliderPlayer)?void 0:t.getMediaElement();e&&(e.currentTime=0,e.play().then(()=>{}).catch(()=>{e&&(e.muted=!0,e.play().then(()=>{}).catch(()=>{}))}))}}v.current=f},[f,v,a,w,m]);let H=(0,i.useMemo)(()=>{var e;let t=sessionStorage.getItem(V.COX);if(t)return null==s||null==(e=s.data)?void 0:e.map(e=>({...e,trailer_info:{url:t||"https://vodcdn.fptplay.net/POVOD/encoded/2025/11/09/moonriver-2025-kr-mas-001-d711e1b5322e7cbb/H264/master.m3u8"}}))},[s]),X=(0,i.useContext)(k.B),q=(0,b.GV)(e=>e.user.info),{configs:K}=X,{mapViewCountToItem:Y,viewCountsMap:$}=(0,L.N)(),{data:Q,fetchRecommendBlock:W}=(0,P.V)({dataIndex:c||{},dataDefault:s||{},blockId:(null==c?void 0:c.id)||"",profile_id:(null==q||null==(t=q.profile)?void 0:t.profile_id)||"",cache_time:(null==K?void 0:K.recommend_ttl)||"0",isLogged:(null==q?void 0:q.user_id_str)!==""}),J=(0,i.useMemo)(()=>{let e=H||(Q?(0,o.UD)(Q):[]);return(null==$?void 0:$.size)&&(null==e?void 0:e.length)?e.map(e=>Y(e)).slice(0,Number(null==K?void 0:K.number_item_of_page)||30):e.slice(0,Number(null==K?void 0:K.number_item_of_page)||30)},[Q,H,$,Y]);(0,i.useEffect)(()=>{W(K)},[null==c?void 0:c.id]);let[Z,ee]=(0,r.A)({loop:!0},[O(),w]),et=(0,i.useMemo)(()=>({loop:!0,align:"center",containScroll:"keepSnaps",dragFree:!0,skipSnaps:!1}),[]),[el,en]=(0,r.A)(et),ei=(0,i.useCallback)(e=>{if(ee&&en){if(ee.selectedScrollSnap()===e)return void en.scrollTo(e,!1);try{ee.scrollTo(e,!0)}catch(e){}}},[ee,en]),er=(0,i.useRef)(null),ea=(0,i.useCallback)(()=>{if(er.current)try{let e=er.current.scrollHeight;a((0,y.CX)(e))}catch(e){}},[er,a]),eo=(0,i.useCallback)(()=>{if(!ee||!en)return;let e=ee.selectedScrollSnap();if(p(e),requestAnimationFrame(()=>{if(en)try{en.scrollTo(e,!1)}catch(e){}}),j(e=>e+1),E.current=Date.now(),T.current=m,M.current&&(clearTimeout(M.current),M.current=null),I.current&&(clearTimeout(I.current),I.current=null),w&&"function"==typeof w.play&&f&&!m){R.current=Date.now(),S(!0);try{"function"==typeof w.reset&&w.reset(),w.play(),R.current=Date.now(),S(!0)}catch(e){setTimeout(()=>{try{"function"==typeof w.reset&&w.reset(),w.play(),R.current=Date.now(),S(!0)}catch(e){}},500)}}else R.current=null,S(!1)},[ee,en,p,w,f,m]);(0,i.useEffect)(()=>{if(ee)return eo(),ee.on("select",eo).on("reInit",eo),()=>{ee.off("select",eo).off("reInit",eo)}},[ee,eo]);let[es,eu]=(0,i.useState)(!0);return(0,i.useEffect)(()=>(B.current&&(clearTimeout(B.current),B.current=null),f&&!m&&ee&&w&&(B.current=setTimeout(()=>{if(!N||null===R.current)try{"function"==typeof w.reset&&w.reset(),w.play(),R.current=Date.now(),S(!0),j(e=>e+1)}catch(e){}},16e3)),()=>
1{B.current&&(clearTimeout(B.current),B.current=null)}),[f,m,ee,w,N]),(0,i.useEffect)(()=>{if(ee&&w&&"function"==typeof w.play&&"function"==typeof w.stop){try{M.current&&(clearTimeout(M.current),M.current=null);let e=!1===A.current;if(!0===x&&e&&f&&!m){if(E.current=Date.now(),"function"==typeof w.reset)try{w.reset()}catch(e){}j(e=>e+1),R.current=Date.now(),S(!0);try{w.play()}catch(e){}A.current=x,T.current=m;return}if(!f){w.stop(),R.current=null,S(!1),T.current=m,A.current=x;return}let t=void 0!==T.current,l=void 0===m&&t;if(m){w.stop(),R.current=null,S(!1),T.current=m,A.current=x;return}if(l){E.current=Date.now(),ee.scrollNext(),T.current=m,A.current=x;return}try{w.play(),null===R.current&&(R.current=Date.now(),S(!0))}catch(e){setTimeout(()=>{try{"function"==typeof w.reset&&w.reset(),w.play(),R.current=Date.now(),S(!0)}catch(e){}},500)}T.current=m,A.current=x}catch(e){}return()=>{M.current&&(clearTimeout(M.current),M.current=null),I.current&&(clearTimeout(I.current),I.current=null)}}},[ee,f,m,w,x]),(0,i.useEffect)(()=>{let e=setTimeout(()=>{ea()},1e3);return()=>{clearTimeout(e)}},[ea]),(0,n.jsx)(U.Provider,{value:{isMuted:es,handleChangeIsMuted:()=>eu(!es),isInViewport:f},children:(0,n.jsxs)("div",{className:"embla",id:"top_slider",ref:er,children:[(0,n.jsx)("div",{className:"embla__viewport",ref:Z,children:(0,n.jsx)("div",{className:"embla__container",ref:h,children:Array.isArray(J)&&J.length>0&&J.map((e,t)=>(0,n.jsx)("div",{className:"embla__slide ".concat(t===d?"embla__slide--active":""),children:(0,n.jsx)(D,{slide:e,block:c,isInview:t===d,index:t})},t))})}),(0,n.jsx)("div",{className:"embla-thumbs ".concat(l<1240?"f-container w-full":""),children:(0,n.jsx)("div",{className:"embla-thumbs__viewport pb-[4px]",ref:el,children:(0,n.jsx)("div",{className:"embla-thumbs__container",children:Array.isArray(J)&&J.length>0&&J.map((e,t)=>(0,n.jsx)(u,{slide:e,onClick:()=>ei(t),selected:t===d,index:t,autoplayDelay:15e3,timerResetKey:g,autoplayStartTime:t===d&&N?R.current:null},t))})})})]})})}},59316:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(37876),i=l(14232);function r(e){let{slide:t}=e,[l,r]=(0,i.useState)(new Set),a=(0,i.useMemo)(()=>{var e;return(null==t||null==(e=t.achievement_info)?void 0:e.filter(e=>(null==e?void 0:e.type)==="image"))||[]},[t]);return(0,n.jsx)("div",{className:"VodAchievementInfo flex flex-wrap items-center gap-[12px] w2k:gap-[16px] w4k:gap-[24px] mb-[12px] tablet:mb-[16px] w2k:mb-[24px] w4k:mb-[36px]",children:a&&(null==a?void 0:a.length)>0&&a.map((e,i)=>l.has(i)?null:(0,n.jsx)("div",{children:(0,n.jsx)("img",{src:e.content,alt:(null==t?void 0:t.title_vie)||(null==t?void 0:t.title),className:"h-[28px] w2k:h-[40px] w4k:h-[60px]",onError:()=>{r(e=>new Set(e).add(i))}})},i))})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.