(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5095],{29972:function(){},49980:function(e,t,n){Promise.resolve().then(n.bind(n,74753)),Promise.resolve().then(n.bind(n,90461)),Promise.resolve().then(n.bind(n,6922)),Promise.resolve().then(n.t.bind(n,75897,23)),Promise.resolve().then(n.bind(n,16775)),Promise.resolve().then(n.bind(n,51787)),Promise.resolve().then(n.bind(n,27036)),Promise.resolve().then(n.bind(n,75611)),Promise.resolve().then(n.bind(n,8809)),Promise.resolve().then(n.bind(n,805)),Promise.resolve().then(n.bind(n,4057))},68613:function(e,t,n){"use strict";var l=n(12325);t.Z=e=>(0,l.jsx)("svg",{width:"0.66em",height:"1em",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,l.jsx)("path",{d:"M6.83 5.29001L2.59 1.05001C2.49704 0.956281 2.38644 0.881887 2.26458 0.831118C2.14272 0.780349 2.01202 0.754211 1.88 0.754211C1.74799 0.754211 1.61729 0.780349 1.49543 0.831118C1.37357 0.881887 1.26297 0.956281 1.17 1.05001C0.983753 1.23737 0.879211 1.49082 0.879211 1.75501C0.879211 2.0192 0.983753 2.27265 1.17 2.46001L4.71 6.00001L1.17 9.54001C0.983753 9.72737 0.879211 9.98082 0.879211 10.245C0.879211 10.5092 0.983753 10.7626 1.17 10.95C1.26344 11.0427 1.37426 11.116 1.4961 11.1658C1.61794 11.2155 1.7484 11.2408 1.88 11.24C2.01161 11.2408 2.14207 11.2155 2.26391 11.1658C2.38575 11.116 2.49656 11.0427 2.59 10.95L6.83 6.71001C6.92373 6.61705 6.99813 6.50645 7.04889 6.38459C7.09966 6.26273 7.1258 6.13202 7.1258 6.00001C7.1258 5.868 7.09966 5.73729 7.04889 5.61543C6.99813 5.49357 6.92373 5.38297 6.83 5.29001Z",fill:"currentColor"})})},20149:function(e,t,n){"use strict";var l=n(12325);t.Z=e=>(0,l.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,l.jsx)("path",{d:"M7.40994 5.99994L11.7099 1.70994C11.8982 1.52164 12.004 1.26624 12.004 0.999941C12.004 0.73364 11.8982 0.478245 11.7099 0.289941C11.5216 0.101638 11.2662 -0.00415039 10.9999 -0.00415039C10.7336 -0.00415039 10.4782 0.101638 10.2899 0.289941L5.99994 4.58994L1.70994 0.289941C1.52164 0.101638 1.26624 -0.00415039 0.999939 -0.00415039C0.733637 -0.00415039 0.478243 0.101638 0.289939 0.289941C0.101635 0.478245 -0.00415277 0.73364 -0.00415277 0.999941C-0.00415278 1.26624 0.101635 1.52164 0.289939 1.70994L4.58994 5.99994L0.289939 10.2899C0.196211 10.3829 0.121816 10.4935 0.0710478 10.6154C0.0202791 10.7372 -0.00585938 10.8679 -0.00585938 10.9999C-0.00585938 11.132 0.0202791 11.2627 0.0710478 11.3845C0.121816 11.5064 0.196211 11.617 0.289939 11.7099C0.382902 11.8037 0.493503 11.8781 0.615362 11.9288C0.737221 11.9796 0.867927 12.0057 0.999939 12.0057C1.13195 12.0057 1.26266 11.9796 1.38452 11.9288C1.50638 11.8781 1.61698 11.8037 1.70994 11.7099L5.99994 7.40994L10.2899 11.7099C10.3829 11.8037 10.4935 11.8781 10.6154 11.9288C10.7372 11.9796 10.8679 12.0057 10.9999 12.0057C11.132 12.0057 11.2627 11.9796 11.3845 11.9288C11.5064 11.8781 11.617 11.8037 11.7099 11.7099C11.8037 11.617 11.8781 11.5064 11.9288 11.3845C11.9796 11.2627 12.0057 11.132 12.0057 10.9999C12.0057 10.8679 11.9796 10.7372 11.9288 10.6154C11.8781 10.4935 11.8037 10.3829 11.7099 10.2899L7.40994 5.99994Z",fill:"currentColor"})})},65593:function(e,t,n){"use strict";var l=n(12325),r=n(81892);let i=n(71712).forwardRef((e,t)=>{let{children:n,className:i,containerClassName:s}=e;return(0,l.jsx)("div",{className:(0,r.cn)("embla overflow-hidden",i),ref:t,children:(0,l.jsx)("div",{className:(0,r.cn)("embla__container flex [&>*]:shrink-0 [&>*]:grow-0",s),children:n})})});i.displayName="CarouselBase",t.Z=i},74881:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});var l=n(71712);let r=e=>{let[t,n]=(0,l.useState)(!0),[r,i]=(0,l.useState)(!0),s=(0,l.useCallback)(()=>{e&&e.scrollPrev()},[e]),a=(0,l.useCallback)(()=>{e&&e.scrollNext()},[e]),o=(0,l.useCallback)(e=>{n(!e.canScrollPrev()),i(!e.canScrollNext())},[]);return(0,l.useEffect)(()=>{e&&(o(e),e.on("reInit",o).on("select",o))},[e,o]),{prevBtnDisabled:t,nextBtnDisabled:r,onPrevButtonClick:s,onNextButtonClick:a}}},74753:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var l=n(12325);n(71712);var r=n(92162);function i(e){let{children:t,placeholder:n=null,className:i}=e,{ref:s,inView:a}=(0,r.YD)({triggerOnce:!0});return(0,l.jsx)("div",{ref:s,className:i,children:a?t:n})}},46676:function(e,t,n){"use strict";var l=n(12325),r=n(71712),i=n(11708),s=n.n(i),a=n(62274),o=n(20149),c=n(44628);t.Z=e=>{let{isOpen:t,contentClassName:n,overlayClassName:i,children:d,bodyOpenClassName:u,onRequestClose:m,closeButtonProps:f,...p}=e;return(0,r.useEffect)(()=>{0!=window.innerWidth-document.body.offsetWidth&&document.body.style.setProperty("--scroll-width",String(window.innerWidth-document.body.offsetWidth))},[t]),(0,l.jsxs)(s(),{isOpen:t,overlayClassName:(0,c.cn)("fixed inset-0 bg-black/50 z-zDialog flex items-center justify-center",i),ariaHideApp:!1,className:(0,c.cn)("relative bg-content-1 outline-none",n),bodyOpenClassName:(0,c.cn)(u),onRequestClose:m,...p,children:[d,(0,l.jsx)(a.X,{size:32,isIconOnly:!0,variant:"text",color:"default",className:"absolute top-2 right-2",...f,onClick:m,children:(0,l.jsx)(o.Z,{className:"w-3 h-3"})})]})}},94822:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var l=n(12325),r=n(62370),i=n(38835);function s(e){let{src:t}=e;return t?(null==t?void 0:t.startsWith("https://www.youtube.com"))?(0,l.jsx)("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/".concat(i.Z.parseUrl(t).query.v,"?autoplay=1&showinfo=0"),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0}):(0,l.jsx)("video",{controls:!0,className:"w-full h-full",src:(0,r.I)(t),playsInline:!0,autoPlay:!0}):null}n(71712)},59482:function(e,t,n){"use strict";n.d(t,{A:function(){return d},Z:function(){return c}});var l=n(12325),r=n(28413),i=n(35770),s=n(60508),a=n(69759),o=n(44628);function c(e){let{avatar:t,name:n,subName:s}=e;return(0,l.jsxs)(r.Z,{className:"group/actor w-full flex-col items-center duration-300 hover:scale-105 cursor-pointer",children:[(0,l.jsxs)("div",{className:"w-full relative aspect-square rounded-lg overflow-hidden",children:[(0,l.jsx)(i.default,{src:t,alt:n,className:""}),(0,l.jsx)("div",{className:(0,o.cn)("absolute inset-0 border-2 border-primary opacity-0","duration-300 group-hover/actor:opacity-100 rounded-lg overflow-hidden")})]}),(0,l.jsx)(a.Z,{size:14,className:"mt-2 group-hover/actor:text-primary duration-300 text-center line-clamp-2",children:n}),(0,l.jsx)(a.Z,{size:12,className:"mt-1 text-foreground-700 text-center",children:s})]})}function d(){return(0,l.jsxs)(r.Z,{className:"flex-col items-center",children:[(0,l.jsx)(s.Z,{className:"w-full aspect-square rounded-lg"}),(0,l.jsxs)(r.Z,{className:"w-full flex-col items-center mt-2 h-[53px] gap-0.5",children:[(0,l.jsx)(s.Z,{className:"w-3/4 h-5 rounded-lg"}),(0,l.jsx)(s.Z,{className:"mt-1 w-1/3 h-3 rounded-lg"})]})]})}n(71712)},84707:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var l=n(12325),r=n(35770),i=n(6632),s=n(69759),a=n(44628),o=n(96343);function c(e){let{title:t,thumbnail:n,createdAtSec:c,description:d,link:u}=e;return(0,l.jsxs)("div",{className:"h-full flex flex-col ring-[1px] ring-[#3F3F3F50] rounded-lg overflow-hidden",children:[(0,l.jsx)(i.Z,{href:u,"aria-label":"Article thumbnail: ".concat(t),className:(0,a.cn)("aspect-[297/175] relative overflow-hidden","[&>img]:hover:scale-[103%] [&>img]:duration-300"),children:(0,l.jsx)(r.default,{src:n,alt:t})}),(0,l.jsxs)("div",{className:"flex-1 p-3 lg:p-4 xl-6 2xl:7",children:[(0,l.jsx)(s.Z,{size:{initial:12,lg:14},className:"text-foreground-600",children:(0,o.p6)(1e3*c)}),(0,l.jsx)(i.Z,{href:u,"aria-label":t,className:"hover:text-primary duration-300",children:(0,l.jsx)(s.Z,{size:{initial:16,lg:18},className:"mt-2 lg:mt-4 font-semibold line-clamp-2 leading-[1.5]",title:t,children:t})}),(0,l.jsx)(s.Z,{size:{initial:14,lg:16},className:"mt-2 lg:mt-4 text-foreground-600 line-clamp-4 leading-[1.5]",title:d,children:d})]})]})}n(71712)},47690:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var l=n(12325),r=n(28413),i=n(6632),s=n(68613),a=n(69759),o=n(44628);function c(e){let{className:t,title:n,seeAllHref:c,slots:d}=e;return(0,l.jsxs)(r.Z,{className:(0,o.cn)("items-center justify-between","pb-3 lg:pb-6",t),children:[(0,l.jsxs)(i.Z,{className:(0,o.cn)("flex gap-3 items-center","gap-2 lg:gap-3"),href:c,children:[(0,l.jsx)(a.Z,{size:{initial:24,lg:32},font:"title",children:n}),!!c&&(0,l.jsx)("div",{className:(0,o.cn)("cursor-pointer flex items-center gap-[8px] text-[16px] lg:text-[24px] pt-1 lg:pt-2"),children:(0,l.jsx)(s.Z,{})})]}),null==d?void 0:d.right]})}n(71712)},31372:function(e,t,n){"use strict";n.d(t,{l:function(){return l}});let l={TAG:{list_by_ids:"list-by-ids"},ARTICLE:{list_by_ids:"list-by-ids",list:"list"},CATEGORY:{list:"list-category"},AUTH:{login:"auth-login",login_google:"auth_google",login_username:"login_username",register:"auth-register",one_click:"register-one-click"},VIDEO:{list:"list-videos",get:"get-video",bookmark:"bookmark-video",report_error:"report-video-error"},ACTOR:{get:"get-actor",list:"let-actor"},FILM:{get:"get-film",list:"list-film",list_bookmark:"list-film-bookmark",rate:"rate-film",check_bookmark:"check-film-bookmark",bookmark:"bookmark-film",related:"related-film"},COMMENT:{like:"like-comment",submit:"submit-comment"}}},38762:function(e,t,n){"use strict";n.d(t,{H3:function(){return l},Jx:function(){return r},be:function(){return i}});let l={continue_watch:"continue_watch"},r={rate:"rate"},i={access_token:"access_token"}},66730:function(e,t,n){"use strict";n.d(t,{c:function(){return s},n:function(){return a}});var l=n(38762),r=n(81892),i=n(64139);let s=(0,n(37366).O4)(l.H3.continue_watch,{videos:[],isLoading:!0},{getItem(e){var t,n;return{isLoading:!1,videos:null!==(n=null===(t=(0,r.o3)(localStorage.getItem(e)))||void 0===t?void 0:t.videos)&&void 0!==n?n:[]}},setItem(e,t){localStorage.setItem(e,JSON.stringify(t))},removeItem(e){localStorage.removeItem(e)}});function a(){let[e,t]=(0,i.useAtom)(s);return{videos:e.videos,unshift:e=>{e.progress&&e.duration&&t(t=>{var n;t.isLoading=!1;let l=null===(n=t.videos)||void 0===n?void 0:n.findIndex(t=>t.id===e.id);return e.progress>95*e.duration/100&&-1!==l?(t.videos.splice(l,1),{...t,videos:[...t.videos]}):-1!==l?(t.videos[l]=e,t):(t.videos=t.videos.filter(t=>t.film.id!==e.film.id),{...t,videos:[e,...t.videos.slice(0,4)]})})}}}},81892:function(e,t,n){"use strict";n.d(t,{cn:function(){return i},o3:function(){return s}});var l=n(49751),r=n(42536);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.m)((0,l.W)(t))||void 0}let s=e=>{try{return JSON.parse(e)}catch(e){return null}}},96343:function(e,t,n){"use strict";n.d(t,{SY:function(){return o},p6:function(){return a}});var l=n(19203),r=n.n(l),i=n(5416),s=n.n(i);function a(e){return r()(e).format("DD [th\xe1ng] MM, YYYY")}function o(e){var t;let{day:n,from:l=r()()}=e;return l.diff(n,"day")>20?a(n):null!==(t=l.to(n))&&void 0!==t?t:a(n)}r().extend(s())},62370:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var l=n(78570);let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?e.startsWith("http")?e:"".concat(l.Z.MEDIA_BASE,"/").concat(e):""}},6922:function(e,t,n){"use strict";function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}n.r(t),n.d(t,{default:function(){return s}});var r=n(71712),i=n(72181);function s(e){let{locale:t,...n}=e;if(!t)throw Error("Failed to determine locale in `NextIntlClientProvider`, please provide the `locale` prop explicitly.\n\nSee https://next-intl.dev/docs/configuration#locale");return r.createElement(i.IntlProvider,l({locale:t},n))}},46085:function(e,t,n){"use strict";var l,r;n.d(t,{P:function(){return l}}),(r=l||(l={})).director="director",r.cast="cast"},66706:function(e,t,n){"use strict";n.d(t,{jC:function(){return a},tR:function(){return o},Py:function(){return c}});var l=n(39690),r=n(47856),i=n(96662);function s(e){let{seconds:t=0}=e.createdAt||{};return{id:Number(e.id),title:e.title,slug:e.slug,thumbnail:e.thumbnail,createdAtSec:t>0?Number(t):0,description:e.shortDescription}}let a=async e=>{var t,n;let{data:a=[],pageIndex:o,pageSize:c,articleCount:d,pageCount:u}=await i.Rw.listArticle({countryCode:"VN",pageIndex:null!==(t=null==e?void 0:e.pageIndex)&&void 0!==t?t:0,pageSize:null!==(n=null==e?void 0:e.pageSize)&&void 0!==n?n:24,postType:l.hQ.POST_ALL,includeAuthorInfo:!0,sort:[{name:"published_at",type:r.E.DESC}]})||{};return{articles:a.map(s),totalCount:d,totalPage:u,request:{pageIndex:o,pageSize:c}}},o=async e=>{let{ids:t}=e,{data:n=[]}=await i.Rw.getPosts({id:t})||{};return n.map(e=>s(e))},c=async e=>i._J.listHashtag({id:e})},96662:function(e,t,n){"use strict";n.d(t,{Mr:function(){return k},Rw:function(){return I},$I:function(){return E},Gt:function(){return O},_J:function(){return A},Oi:function(){return C},Zx:function(){return z},Eg:function(){return _},so:function(){return S}});var l=n(37134),r=n(83800),i=n(13077),s=n(4645),a=n(99829),o=n(11673),c=n(73025),d=n(14854),u=n(29972),m=n(25300),f=n(10775),p=n(38762),h=n(87961),g=n(78570),x=n(64272),v=n(56243);class j{constructor(){this.logDebug=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(0,x.yv)()&&("undefined"==typeof localStorage||"true"!==localStorage.getItem("log"))||console.debug(...t)},this.logger=e=>async t=>{this.logDebug("%c[REQUEST] -> [".concat(t.service.typeName," > ").concat(t.method.name,"]:"),"background-color: #deeb34; color: #000; font-size: 14px",t);try{let n=await e(t);return this.logDebug("%c[RESPONSE] -> [".concat(t.service.typeName," > ").concat(t.method.name,"]:"),"background-color: #23d947; color: #000; font-size: 14px",n),n}catch(n){let e=v.K.from(n);return this.logDebug("%c[ERROR] -> [".concat(t.service.typeName,"] > ").concat(t.method.name,"]: "),"background-color: #c0392b; color: #000; font-size: 14px",n),Promise.reject(e)}}}}let b=new j().logger;var N=n(96906);let y=e=>async t=>{if(t.header.get("Authorization"))return e(t);try{let l=await ((0,x.sk)()?n.e(6792).then(n.bind(n,96792)).then(e=>e.cookies):void 0),r=(0,x.sk)()?(0,h.ej)(p.be.access_token,{cookies:l}):(0,h.ej)(p.be.access_token);return t.header.set("x-language","vi"),r&&t.header.set("Authorization","Bearer "+r),e(t)}catch(n){return e(t)}},w=()=>{let e=!(0,x.sk)()||(0,x.D0)()||N.env.NEXT_PHASE?g.Z.GRPC_SERVER:"http://gate:8888";return(0,x.sk)()?(0,u.createGrpcWebTransport)({baseUrl:e,httpVersion:"1.1",interceptors:N.env.NEXT_PHASE?void 0:[y]}):(0,m.u)({baseUrl:e,interceptors:[y,b]})},Z=e=>{let t=w(),n={};for(let[l,r]of Object.entries(e.methods)){let i=async function(n,l){var i,s;let a=await t.unary(e,r,null==l?void 0:l.signal,null==l?void 0:l.timeoutMs,null==l?void 0:l.headers,n);return null==l||null===(i=l.onHeader)||void 0===i||i.call(l,a.header),null==l||null===(s=l.onTrailer)||void 0===s||s.call(l,a.trailer),(0,f.W)(a.message)};null!=i&&(n[l]=i)}return n},C=Z(o.MY),k=Z(l.cr),S=Z(l.if);Z(i.r);let E=Z(a.O),I=Z(r.V5),O=Z(c.v),z=Z(c.T),_=Z(d._),A=Z(s.K)},98906:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});var l=n(78570);let r=e=>"".concat(l.Z.DOMAIN,"/blog/").concat(e)},53296:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var l=n(78570);let r=()=>"".concat(l.Z.DOMAIN,"/blog")},27036:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var l=n(12325),r=n(28413),i=n(35770),s=n(69759),a=n(65593),o=n(46676),c=n(94822),d=n(1277),u=n(44628),m=n(19203),f=n.n(m);let p={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function h(){let e,t,n,l,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=null,s=0,a=!1,o=!1,c=!1,d=!1;function u(){n||(a||t.emit("autoplay:play"),function(){let{ownerWindow:e}=t.internalEngine();e.clearTimeout(s),s=e.setTimeout(N,l[t.selectedScrollSnap()]),i=new Date().getTime(),t.emit("autoplay:timerset")}(),a=!0)}function m(){n||(a&&t.emit("autoplay:stop"),function(){let{ownerWindow:e}=t.internalEngine();e.clearTimeout(s),s=0,i=null,t.emit("autoplay:timerstopped")}(),a=!1)}function f(){if(g())return c=a,m();c&&u()}function g(){let{ownerDocument:e}=t.internalEngine();return"hidden"===e.visibilityState}function x(){o||m()}function v(){o||u()}function j(){o=!0,m()}function b(){o=!1,u()}function N(){let{index:n}=t.internalEngine(),l=n.clone().add(1).get(),r=t.scrollSnapList().length-1,i=e.stopOnLastSnap&&l===r;if(t.canScrollNext()?t.scrollNext(d):t.scrollTo(0,d),t.emit("autoplay:select"),i)return m();u()}return{name:"autoplay",options:r,init:function(i,s){t=i;let{mergeOptions:a,optionsAtMedia:o}=s,c=a(p,h.globalOptions);if(e=o(a(c,r)),t.scrollSnapList().length<=1)return;d=e.jump,n=!1,l=function(e,t){let n=e.scrollSnapList();return"number"==typeof t?n.map(()=>t):t(n,e)}(t,e.delay);let{eventStore:N,ownerDocument:y}=t.internalEngine(),w=!!t.internalEngine().options.watchDrag,Z=function(e,t){let n=e.rootNode();return t&&t(n)||n}(t,e.rootNode);N.add(y,"visibilitychange",f),w&&t.on("pointerDown",x),w&&!e.stopOnInteraction&&t.on("pointerUp",v),e.stopOnMouseEnter&&N.add(Z,"mouseenter",j),e.stopOnMouseEnter&&!e.stopOnInteraction&&N.add(Z,"mouseleave",b),e.stopOnFocusIn&&t.on("slideFocusStart",m),e.stopOnFocusIn&&!e.stopOnInteraction&&N.add(t.containerNode(),"focusout",u),e.playOnInit&&!g()&&u()},destroy:function(){t.off("pointerDown",x).off("pointerUp",v).off("slideFocusStart",m),m(),n=!0,a=!1},play:function(e){void 0!==e&&(d=e),u()},stop:function(){a&&m()},reset:function(){a&&u()},isPlaying:function(){return a},timeUntilNext:function(){return i?l[t.selectedScrollSnap()]-(new Date().getTime()-i):null}}}function g(e,t,n){return Math.min(Math.max(e,t),n)}function x(e){return"number"==typeof e&&!isNaN(e)}function v(){let e,t,n,l,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=[],s=0,a=0,o=0,c=!1;function d(){p(e.selectedScrollSnap(),1)}function u(){c=!1}function m(){c=!1,s=0,a=0}function f(){let t=e.internalEngine().scrollBody.duration();a=t?0:1,c=!0,t||d()}function p(t,n){e.scrollSnapList().forEach((l,r)=>{let a=Math.abs(n),d=i[r],u=r===t,m=g(u?d+a:d-a,0,1);i[r]=m;let f=u&&c,p=e.previousScrollSnap();f&&(i[p]=1-m),u&&function(t,n){let{index:l,dragHandler:r,scrollSnaps:i}=e.internalEngine(),a=r.pointerDown(),c=1/(i.length-1),d=t,u=a?e.selectedScrollSnap():e.previousScrollSnap();if(a&&d===u){let e=-1*Math.sign(s);d=u,u=l.clone().set(u).add(e).get()}o=u*c+(d-u)*c*n}(t,m),function(t){let n=e.internalEngine().slideRegistry[t],{scrollSnaps:l,containerRect:r}=e.internalEngine(),s=i[t];n.forEach(n=>{let i=e.slideNodes()[n].style,a=parseFloat(s.toFixed(2)),o=a>0,c=function(t){let{axis:n}=e.internalEngine(),l=n.scroll.toUpperCase();return"translate".concat(l,"(").concat(n.direction(t),"px)")}(o?l[t]:r.width+2);o&&(i.transform=c),i.opacity=a.toString(),i.pointerEvents=s>.5?"auto":"none",o||(i.transform=c)})}(r)})}function h(){let{dragHandler:t,index:n,scrollBody:l}=e.internalEngine(),r=e.selectedScrollSnap();if(!t.pointerDown())return r;let i=Math.sign(l.velocity()),a=Math.sign(s),o=n.clone().set(r).add(-1*i).get();return i&&a?a===i?o:r:null}function v(){let{target:n,location:l}=e.internalEngine(),r=n.get()-l.get(),o=h(),c=!x(o);return!function(n){let{dragHandler:l,scrollBody:r}=n.internalEngine(),o=l.pointerDown(),c=r.velocity(),d=r.duration(),u=h(),m=!x(u);if(o){if(!c)return;s+=c,a=Math.abs(c/t),function(t){let{scrollSnaps:n,location:l,target:r}=e.internalEngine();x(t)&&!(i[t]<.5)&&(l.set(n[t]),r.set(l))}(u)}if(!o){if(!d||m)return;a+=(1-i[u])/d,a*=.68}m||p(u,a)}(e),!(c||Math.abs(r)>=1)&&i[o]>.999}function j(){return o}return{name:"fade",options:r,init:function(r){let s=(e=r).selectedScrollSnap(),{scrollBody:a,containerRect:o,axis:p}=e.internalEngine();t=g(.75*p.measureSize(o),200,500),c=!1,i=e.scrollSnapList().map((e,t)=>t===s?1:0),n=a.settled,l=e.scrollProgress,a.settled=v,e.scrollProgress=j,e.on("select",f).on("slideFocus",d).on("pointerDown",m).on("pointerUp",u),function(){let{translate:t,slideLooper:n}=e.internalEngine();t.clear(),t.toggleActive(!1),n.loopPoints.forEach(e=>{let{translate:t}=e;t.clear(),t.toggleActive(!1)})}(),d()},destroy:function(){let{scrollBody:t}=e.internalEngine();t.settled=n,e.scrollProgress=l,e.off("select",f).off("slideFocus",d).off("pointerDown",m).off("pointerUp",u),e.slideNodes().forEach(e=>{let t=e.style;t.opacity="",t.transform="",t.pointerEvents="",e.getAttribute("style")||e.removeAttribute("style")})}}}h.globalOptions=void 0,v.globalOptions=void 0;var j=n(64058),b=n(43534),N=n(76492),y=n(71712),w=n(59598),Z=n(93692),C=n(62274),k=n(6632),S=n(89734),E=n(64139);let I=(0,y.memo)(e=>{let{className:t,categoryIds:n}=e,[{categoryMap:i}]=(0,E.useAtom)(S.L);return(0,l.jsx)(r.Z,{as:"ul",className:(0,u.cn)("gap-2 flex-wrap empty:hidden",t),children:n.map(e=>{let t=i.get(e);return t?(0,l.jsx)("li",{children:(0,l.jsx)(k.Z,{href:t.href,className:(0,C.N)({size:24,color:"default_400",variant:"default"}),children:t.name})},"category-".concat(e)):null})})});I.displayName="Categories";var O=n(2107);let z=(0,y.memo)(e=>{let{className:t,star:n,infos:i}=e;return(0,l.jsxs)(r.Z,{className:(0,u.cn)(t),children:[!!n&&(0,l.jsxs)(r.Z,{center:!0,className:"px-2 h-[32px] gap-1 bg-primary text-primary-foreground flex rounded-lg",children:[(0,l.jsx)(O.GK,{fontSize:18,className:"pb-[2px]"}),(0,l.jsx)(s.Z,{size:14,className:"font-semibold mt-[2px]",children:n})]}),(0,l.jsx)(r.Z,{as:"ul",className:"items-center [&_li:last-child]:border-r-0",children:i.filter(Boolean).map((e,t)=>(0,l.jsx)("li",{className:"px-3 border-r",children:(0,l.jsx)(s.Z,{size:14,className:"font-semibold",children:e})},"info-".concat(t)))})]})});z.displayName="Info";let _=(0,y.memo)(e=>{let{className:t,href:n,dotCount:i,currDotIndex:a,name:o,rate:c,description:d,year:m,categoryIds:f,episode:p,onDotClick:h}=e,g=(0,b.useTranslations)(),[{categoryMap:x}]=(0,E.useAtom)(S.L);return(0,l.jsxs)("div",{className:(0,u.cn)("py-3 relative",t),children:[(0,l.jsx)("div",{className:(0,u.cn)("absolute inset-0","lg:hidden"),style:{backgroundImage:"linear-gradient(to bottom, transparent, hsl(var(--color-background) / 100%)"}}),(0,l.jsxs)(r.Z,{className:(0,u.cn)("container relative items-end gap-3"),children:[(0,l.jsxs)("div",{className:"grow min-w-0 min-h-[38px]",children:[(0,l.jsx)(s.Z,{size:40,className:"font-medium line-clamp-2 drop-shadow-placeOn",font:"highlight",children:o}),!!d&&(0,l.jsx)(s.Z,{size:16,className:"max-sm:hidden line-clamp-4",children:d}),(0,l.jsxs)(r.Z,{className:"items-center gap-2 mt-2",children:[(0,l.jsxs)(r.Z,{className:"items-center gap-1 text-primary",children:[(0,l.jsx)(O.GK,{className:"text-[10px]"}),(0,l.jsx)(s.Z,{size:12,className:"font-bold leading-[100%]",children:c})," "]}),!!m&&(0,l.jsx)(s.Z,{size:12,className:"border-l border-foreground-700 pl-2",children:m}),!!p&&(0,l.jsx)(s.Z,{className:"border-l border-foreground-700 pl-2",size:12,children:g("general.labels.total_episodes",{count:p})})]}),(0,l.jsx)(r.Z,{as:"ul",className:(0,u.cn)("mt-2 gap-2 flex-wrap empty:hidden"),children:f.map(e=>{let t=x.get(e);return t?(0,l.jsx)("li",{children:(0,l.jsx)(k.Z,{href:t.href,className:(0,C.N)({size:20,color:"default_400",variant:"default"}),children:t.name})},"category-".concat(e)):null})})]}),(0,l.jsxs)(r.Z,{className:"flex-col items-center gap-3",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("div",{children:(0,l.jsx)(k.Z,{href:n,className:(0,C.N)({size:36,color:"primary",isIconOnly:!0}),children:(0,l.jsx)(O.JF,{})})}),(0,l.jsx)(r.Z,{className:"relative justify-center gap-1",as:"ul",onClick:e=>e.stopPropagation(),children:Array(i).fill("").map((e,t)=>(0,l.jsx)("li",{children:(0,l.jsx)("div",{"data-active":t===a,className:"group/dot relative h-1 w-1 data-[active=true]:w-2 duration-300 border bg-foreground-700 cursor-pointer rounded-full",onClick:()=>h(t),children:(0,l.jsx)("div",{className:"absolute inset-[-1px] border-[1.5px] border-foreground-700 group-data-[active=true]/dot:bg-foreground group-data-[active=true]/dot:border-foreground duration-300"})})},t))})]})]})]})});_.displayName="MobileContent";let A=(0,y.memo)(e=>{let{className:t,description:n,href:i,showTrailerBtn:a,onPlayTrailer:o}=e,c=(0,b.useTranslations)();return(0,l.jsxs)("div",{className:t,children:[(0,l.jsx)(s.Z,{size:16,className:"line-clamp-4",children:n}),(0,l.jsxs)(r.Z,{className:"mt-6 items-center gap-6",children:[(0,l.jsxs)(k.Z,{className:(0,C.N)({size:48,color:"primary"}),href:i,children:[(0,l.jsx)(O.JF,{}),c("general.buttons.play")]}),a&&(0,l.jsxs)(C.X,{size:48,variant:"outline",color:"primary",onClick:o,children:[(0,l.jsx)(O.zA,{className:"text-[22px]"}),c("home.buttons.trailer")]})]})]})});A.displayName="More";var P=e=>{var t;let{className:n,films:m}=e,p=(0,N.useRouter)(),g=(0,b.useTranslations)(),[x,C]=(0,y.useState)(0),k=(0,w.Z)({max:d.f.lg}),[S,E]=(0,y.useState)(),[O,P]=(0,j.Z)({loop:!0},[v(),h({playOnInit:!0,delay:4e3,stopOnFocusIn:!1,stopOnInteraction:!1})]);return(0,y.useEffect)(()=>{null==P||P.on("select",e=>{C(e.selectedScrollSnap())})},[P]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("section",{className:(0,u.cn)("xl:pb-0 lg:pb-[76px] pb-0"),children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(a.Z,{ref:O,children:null==m?void 0:m.map((e,t)=>(0,l.jsx)("div",{className:"w-full",onClick:()=>{k&&p.push(e.href)},children:(0,l.jsxs)(r.Z,{className:(0,u.cn)("items-center relative","min-[1700px]:aspect-[1920/850] min-[1800px]:aspect-[1920/800] xl:aspect-[1920/1000] lg:aspect-[1920/1000]",n),children:[(0,l.jsx)("div",{className:(0,u.cn)("absolute inset-0 blur-[50px]","max-lg:hidden"),style:{transform:"translate3d(0, 0, 0)"},children:(0,l.jsx)(i.default,{src:e.thumbnail,alt:e.name,unoptimized:!1,priority:0===t})}),(0,l.jsx)("div",{className:"absolute inset-0",style:{backgroundImage:"linear-gradient(to right, hsl(var(--color-background) / 80%), transparent, hsl(var(--color-background) / 60%)"}}),(0,l.jsx)("div",{className:"absolute inset-0",style:{backgroundImage:"linear-gradient(to bottom, transparent, transparent 80%, hsl(var(--color-background) / 95%)"}}),(0,l.jsx)("div",{className:(0,u.cn)("w-full relative","lg:container"),children:(0,l.jsxs)(r.Z,{className:"items-center",children:[(0,l.jsxs)(r.Z,{className:(0,u.cn)("flex-col shrink-0","max-lg:hidden w-[36%] xl:w-[23%]"),children:[(0,l.jsx)(s.Z,{size:{initial:56,xl:62},font:"highlight",className:"drop-shadow-placeOn line-clamp-3 !leading-[100%] !font-medium",children:e.name}),(0,l.jsx)(z,{className:"mt-4 xl:mt-6 item-center",star:e.rating,infos:[String(f()(e.releaseDate).get("year")),e.type===Z.u.series&&e.totalEpisode?g("general.labels.total_episodes",{count:e.totalEpisode}):void 0]}),(0,l.jsx)(I,{className:"mt-6",categoryIds:e.categoryIds}),(0,l.jsx)(A,{className:"mt-6",href:e.href,description:e.description,onPlayTrailer:()=>{E(e.trailerPath),P.plugins().autoplay.stop()},showTrailerBtn:!!e.trailerPath})]}),(0,l.jsxs)("div",{className:(0,u.cn)("min-w-0","lg:ml-[2.6%] ml-0 xl:w-[59%] max-xl:grow"),children:[(0,l.jsx)("div",{className:"aspect-[920/644] sm:aspect-[988/456] lg:aspect-[920/644] w-full relative rounded-lg overflow-hidden",children:(0,l.jsx)(i.default,{src:""==e.thumbnail?e.posterPath:e.thumbnail,alt:e.name,unoptimized:!1,priority:0===t})}),(0,l.jsx)("div",{className:(0,u.cn)("absolute inset-0","lg:hidden"),style:{backgroundImage:"linear-gradient(to bottom, hsl(var(--color-background) / 80%), transparent 15%, transparent 70%, hsl(var(--color-background) / 100%)"}})]}),(0,l.jsx)(_,{rate:e.rating,episode:e.totalEpisode,year:f()(e.releaseDate).get("year"),href:e.href,className:"lg:hidden absolute bottom-0 inset-x-0",name:e.name,description:e.description,currDotIndex:x,dotCount:5,categoryIds:e.categoryIds,onDotClick:e=>{var t,n;null==P||P.scrollTo(e),null===(n=P.plugins())||void 0===n||null===(t=n.autoplay)||void 0===t||t.reset()}})]})})]})},"film-".concat(e.id)))}),(0,l.jsx)("div",{className:(0,u.cn)("absolute container flex items-center pointer-events-none","max-lg:hidden bottom-0 xl:inset-0 justify-end max-xl:translate-y-2/3"),children:(0,l.jsx)("ul",{className:(0,u.cn)("flex flex-row xl:flex-col pointer-events-auto justify-between","w-full xl:w-[13.9%] xl:aspect-[204/605] gap-5 xl:gap-0"),children:null==m?void 0:null===(t=m.slice(0,5))||void 0===t?void 0:t.map((e,t)=>(0,l.jsx)("li",{className:"max-xl:aspect-[16/9] max-xl:w-1/5",children:(0,l.jsxs)("div",{className:"aspect-[16/9] bg-default relative cursor-pointer hover:brightness-110 duration-300 rounded-lg overflow-hidden",onClick:()=>{var e,n;P.scrollTo(t),null===(n=P.plugins())||void 0===n||null===(e=n.autoplay)||void 0===e||e.reset()},children:[(0,l.jsx)(i.default,{src:""==e.thumbnail?e.posterPath:e.thumbnail,alt:e.name,priority:!0,unoptimized:!1}),(0,l.jsx)("div",{className:(0,u.cn)("absolute inset-0 pointer-events-none border-2 border-primary opacity-0 duration-300 rounded-lg overflow-hidden",t===x&&"opacity-100")})]})},"video-".concat(e.id)))})})]})}),(0,l.jsx)(o.Z,{isOpen:!!S,contentClassName:"w-[calc(100%-32px)] max-w-[900px]",onRequestClose:()=>{E(void 0),setTimeout(()=>{P.plugins().autoplay.play()},500)},children:(0,l.jsx)("div",{className:"w-full aspect-[16/10]",children:(0,l.jsx)(c.Z,{src:S})})})]})}},75611:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var l=n(12325),r=n(62274),i=n(28413),s=n(2107),a=n(65593),o=n(74881),c=n(84707),d=n(47690),u=n(48990),m=n(31372),f=n(44628),p=n(98906),h=n(53296),g=n(64058),x=n(43534),v=n(71712),j=n(20815),b=n(66706),N=n(28360);function y(e){let{className:t}=e,n=(0,x.useTranslations)(),{data:y,isLoading:w}=(0,j.useQuery)({queryKey:[m.l.ARTICLE.list],queryFn:()=>(0,b.jC)({pageIndex:0,pageSize:12})}),Z=(0,v.useMemo)(()=>{var e;return w||!y?[]:null!==(e=null==y?void 0:y.articles)&&void 0!==e?e:[]},[y,w]),[C,k]=(0,g.Z)({slidesToScroll:"auto",duration:20}),{prevBtnDisabled:S,nextBtnDisabled:E,onPrevButtonClick:I,onNextButtonClick:O}=(0,o.X)(k);return(0,l.jsxs)(N.Z,{className:(0,f.cn)("container",t),children:[(0,l.jsx)(d.Z,{title:n("blog.title"),seeAllHref:(0,h.D)(),slots:{right:(0,l.jsxs)(i.Z,{className:"items-center gap-3",children:[(0,l.jsx)(r.X,{size:32,isIconOnly:!0,color:"default",disabled:S,onClick:I,children:(0,l.jsx)(s.D6,{className:"text-[14px]"})}),(0,l.jsx)(r.X,{size:32,isIconOnly:!0,color:"default",disabled:E,onClick:O,children:(0,l.jsx)(s.Ec,{className:"text-[14px]"})})]})}}),(0,l.jsx)("div",{className:"-m-[6px] lg:-m-2",children:(0,l.jsx)(a.Z,{ref:C,containerClassName:"flex",children:null==Z?void 0:Z.map((e,t)=>{var n;return(0,l.jsx)("div",{className:"w-1/2 max-sm:min-w-[calc(100%/1.5)] sm:w-1/3 lg:w-1/4 p-[6px] lg:p-2",children:(0,l.jsx)(c.Z,{title:e.title,thumbnail:e.thumbnail||u.Iv.articleThumbnail,description:e.description,createdAtSec:null!==(n=e.createdAtSec)&&void 0!==n?n:0,link:e.slug?(0,p.G)(e.slug):""},e.id)},t)})})})]})}},28360:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var l=n(12325),r=n(44628);function i(e){let{className:t,children:n,...i}=e;return(0,l.jsx)("section",{...i,className:(0,r.cn)("mt-10 lg:mt-16",t),children:n})}n(71712)},8809:function(e,t,n){"use strict";n.r(t),n.d(t,{ContinueSkeleton:function(){return y},default:function(){return b}});var l=n(12325),r=n(47690),i=n(26904),s=n(35770),a=n(6632),o=n(60508),c=n(69759),d=n(48990),u=n(43534);function m(e){let{href:t,thumbnail:n,name:r,episode:i,progress:o,duration:m}=e,f=(0,u.useTranslations)();return(0,l.jsxs)(a.Z,{href:t,className:"o-videoCard duration-300 hover:scale-[103%]",children:[(0,l.jsxs)("div",{className:"relative aspect-[16/9] overflow-hidden cursor-pointer rounded-lg",children:[(0,l.jsx)(s.default,{src:n,alt:r,sizes:"20vw",thumbnailDefault:d.Iv.placeholderH}),(0,l.jsx)("div",{className:"absolute inset-x-0 bottom-0 bg-[linear-gradient(to_bottom,transparent,#0C0B11)] h-[40%] flex items-end justify-end px-2 pb-2",children:void 0!==i&&(0,l.jsx)(c.Z,{size:{initial:22,lg:24},className:"font-semibold",font:"highlight",style:{background:"linear-gradient(360deg, #494949, white 60%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:f("general.labels.episode_number",{episode:i})})}),!!(o&&m)&&(0,l.jsx)("div",{className:"absolute inset-x-0 h-1 bg-default/60 bottom-0",children:(0,l.jsx)("div",{className:"h-full bg-primary",style:{width:"".concat(Math.min(Math.round(o/m*100),100),"%")}})})]}),(0,l.jsx)("div",{className:"mt-2 min-h-[48px]",children:(0,l.jsx)(c.Z,{size:14,className:"font-medium hover:text-foreground cursor-pointer line-clamp-2 leading-[1.5]",children:r})})]})}function f(){return(0,l.jsxs)("div",{children:[(0,l.jsx)(o.Z,{className:"aspect-[16/9] rounded-lg"}),(0,l.jsx)(o.Z,{className:"mt-2 h-[22px] w-full rounded-lg"}),(0,l.jsx)(o.Z,{className:"mt-1 h-[22px] w-2/3 rounded-lg"})]})}n(71712);var p=n(92162);function h(e){let{className:t,videos:n,isLoading:r,skeletonCount:s=5,hasMore:a,classNames:o,fetchMore:c}=e,d=(0,u.useTranslations)(),{ref:h}=(0,p.YD)({skip:!a,onChange:e=>{e&&(null==c||c())}});return(0,l.jsxs)("div",{className:t,children:[(0,l.jsxs)("ul",{className:"grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-5 gap-3 lg:gap-6",children:[!r&&(null==n?void 0:n.map(e=>{let t=e.episode?"".concat(e.film.name," - ").concat(d("general.labels.episode_number",{episode:e.name})):"".concat(e.film.name);return(0,l.jsx)("li",{className:null==o?void 0:o.item,children:(0,l.jsx)(m,{duration:e.duration,progress:e.progress,href:e.href,name:t,thumbnail:e.thumbnail,episode:e.episode})},"video-".concat(e.id))})),!!r&&Array(s).fill("").map((e,t)=>(0,l.jsx)("li",{className:null==o?void 0:o.item,children:(0,l.jsx)(f,{})},"skeleton-".concat(t)))]}),!!a&&(0,l.jsx)("div",{className:"flex justify-center h-20 items-end",ref:h,children:(0,l.jsx)(i.default,{className:"text-primary text-[28px]"})})]})}var g=n(66730),x=n(44628),v=n(64139),j=n(28360);function b(e){let[{videos:t,isLoading:n}]=(0,v.useAtom)(g.c);return(null==t?void 0:t.length)||n?(0,l.jsx)(N,{...e,children:(0,l.jsx)(h,{isLoading:n,videos:null!=t?t:[],classNames:{item:"max-lg:[&:nth-child(n+5)]:hidden"}})}):null}let N=e=>{let{className:t,children:n}=e,i=(0,u.useTranslations)();return(0,l.jsxs)(j.Z,{className:(0,x.cn)("container",t),children:[(0,l.jsx)(r.Z,{title:i("home.continue.title")}),n]})};function y(e){return(0,l.jsx)(N,{...e,children:(0,l.jsx)(h,{isLoading:!0,videos:[]})})}},805:function(e,t,n){"use strict";n.r(t),n.d(t,{SectionSkeleton:function(){return h},default:function(){return f}});var l=n(12325),r=n(6632),i=n(65593),s=n(59482),a=n(47690),o=n(44628),c=n(64058),d=n(43534);n(71712);var u=n(46085),m=n(28360);function f(e){let{actors:t}=e,n=(0,d.useTranslations)(),[a]=(0,c.Z)({slidesToScroll:"auto"});return(null==t?void 0:t.length)?(0,l.jsx)(p,{children:(0,l.jsx)("div",{className:"",children:(0,l.jsx)(i.Z,{ref:a,children:null==t?void 0:t.map(e=>(0,l.jsx)(r.Z,{href:e.href,"aria-label":e.name,className:"ml-0.5 lg:ml-2 first:ml-0 pr-4 shrink-0 w-[108px] lg:w-[132px]",children:(0,l.jsx)(s.Z,{avatar:e.avatar,name:e.name,subName:e.type===u.P.director?n("general.labels.director"):n("general.labels.cast")})},"actor-".concat(e.id)))})})}):null}function p(e){let{children:t}=e,n=(0,d.useTranslations)();return(0,l.jsxs)(m.Z,{className:(0,o.cn)("container"),children:[(0,l.jsx)(a.Z,{title:n("home.actor.title")}),t]})}function h(){return(0,l.jsx)(p,{children:(0,l.jsx)("ul",{className:"flex overflow-hidden",children:Array(20).fill("").map((e,t)=>(0,l.jsx)("li",{className:"ml-0.5 lg:ml-2 first:ml-0 p-2 shrink-0 w-[108px] lg:w-[132px]",children:(0,l.jsx)(s.A,{})},"actor-skeleton-".concat(t)))})})}},4057:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var l=n(12325),r=n(62274),i=n(28413),s=n(2107),a=n(74881),o=n(47690),c=n(65593),d=n(61980),u=n(52072),m=n(1277);let f=n(71712).forwardRef((e,t)=>{let{filmList:n,isLoading:r,isShowRank:i,sizes:s,unoptimize:a}=e,{onHover:o,render:f}=(0,d.Z)({openDelay:400});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"-m-[6px] lg:-m-2",children:[!r&&(0,l.jsx)(c.Z,{ref:t,containerClassName:"flex",children:null==n?void 0:n.map((e,t)=>(0,l.jsx)("div",{className:"w-1/3 sm:w-1/5 lg:w-[calc(100%/7)] p-[6px] lg:p-2",onMouseEnter:t=>{o(t.currentTarget,e)},children:(0,l.jsx)(u.Z,{...e,sizes:null!=s?s:"(min-width: ".concat(m.f.sm,"px) 312px, 33vw"),unoptimize:a,thumbnail:e.posterPath,rank:i?t+1:void 0})},"film-".concat(e.id)))}),r&&(0,l.jsx)("div",{className:"flex gap-3 lg:gap-4 p-[6px] lg:p-2",children:Array(7).fill("").map((e,t)=>(0,l.jsx)("div",{className:"w-1/3 max-lg:[&:nth-child(n+4)]:hidden lg:w-[calc(100%/7)] rounded-lg overflow-hidden",children:(0,l.jsx)(u.A,{})},"skeleton-".concat(t)))})]}),f()]})});f.displayName="FilmListSlide";var p=n(44628),h=n(64058),g=n(28360);function x(e){let{title:t,films:n,className:c}=e,[d,u]=(0,h.Z)({slidesToScroll:"auto",duration:20}),{prevBtnDisabled:m,nextBtnDisabled:x,onPrevButtonClick:v,onNextButtonClick:j}=(0,a.X)(u);return(null==n?void 0:n.length)?(0,l.jsxs)(g.Z,{className:(0,p.cn)("container",c),children:[(0,l.jsx)(o.Z,{title:t,seeAllHref:"/top",slots:{right:(0,l.jsxs)(i.Z,{className:"items-center gap-3",children:[(0,l.jsx)(r.X,{size:32,isIconOnly:!0,color:"default",disabled:m,onClick:v,children:(0,l.jsx)(s.D6,{className:"text-[14px]"})}),(0,l.jsx)(r.X,{size:32,isIconOnly:!0,color:"default",disabled:x,onClick:j,children:(0,l.jsx)(s.Ec,{className:"text-[14px]"})})]})}}),(0,l.jsx)(f,{filmList:n,ref:d,isShowRank:!0,unoptimize:!1})]}):null}}},function(e){e.O(0,[2971,385,1787,3534,5897,8350,7168,1032,1708,8835,4058,2946,7e3,461,8318,2540,1744],function(){return e(e.s=49980)}),_N_E=e.O()}]);