(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6350,7602,8806],{21384:(e,t,l)=>{Promise.resolve().then(l.bind(l,46332)),Promise.resolve().then(l.bind(l,19619)),Promise.resolve().then(l.bind(l,13057)),Promise.resolve().then(l.bind(l,30514)),Promise.resolve().then(l.bind(l,76350)),Promise.resolve().then(l.bind(l,13990)),Promise.resolve().then(l.bind(l,26521))},26521:(e,t,l)=>{"use strict";l.d(t,{default:()=>c});var s=l(95155),a=l(12115),n=l(29061),i=l(95838),r=l(76951);let o=(0,l(55028).default)(()=>Promise.resolve().then(l.bind(l,46332)).then(e=>e.ContentRow),{loadableGenerated:{webpack:()=>[46332]},ssr:!1});function c(e){let{initialData:t,contentType:l,initialType:c="ft"}=e,[d,m]=a.useState(null),[u,x]=a.useState(null!=l?l:"movie"),p=a.useMemo(()=>{let e="";return("tr"===d?"Top Rated":"pp"===d?"Popular":"Featured").toUpperCase()},[d]),h=a.useCallback(async()=>{if(!d||!u)return;let e={tr:{movie:"movie/top_rated",tv:"tv/top_rated"},ft:{movie:"movie/now_playing",tv:"tv/airing_today"},pp:{movie:"movie/popular",tv:"tv/popular"}}[d][u];return(0,r.t)("".concat(e,"?language=en-US&page=1"))},[d,u]),{data:v,isLoading:f,isFetching:g}=(0,i.I)({queryKey:["discover-content",d||c,u],queryFn:h,placeholderData:t,staleTime:864e5,enabled:!!d&&!!u});return(0,s.jsxs)("div",{className:"flex flex-col gap-0 py-8",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-8 px-4 max-sm:flex-col sm:px-16",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 max-sm:items-center",children:[(0,s.jsx)("h3",{className:"text-outline text-6xl font-bold text-primary sm:text-8xl lg:ml-2.5 lg:text-9xl",children:p.split("").map((e,t)=>(0,s.jsx)("span",{className:n.letterStyle,children:e},"letter-".concat(t)))}),(0,s.jsx)("div",{className:"max-sm:text-center",children:(0,s.jsx)("p",{className:"text-xl font-semibold uppercase tracking-[10px]",children:"".concat("movie"===u?"Movies":"Series")})})]}),(0,s.jsxs)("div",{className:"flex w-full flex-1 items-center justify-center gap-4 sm:justify-end",children:[(0,s.jsxs)("select",{value:null!=d?d:"ft",onChange:e=>{m(e.target.value)},className:"select select-primary w-max max-w-xs",children:[(0,s.jsx)("option",{value:"ft",children:"Featured"}),(0,s.jsx)("option",{value:"tr",children:"Top Rated"}),l&&(0,s.jsx)("option",{value:"pp",children:"Popular"})]}),!l&&(0,s.jsxs)("select",{value:u,onChange:e=>{x(e.target.value)},className:"select select-primary w-max max-w-xs",children:[(0,s.jsx)("option",{value:"movie",children:"Movies"}),(0,s.jsx)("option",{value:"tv",children:"Series"})]})]})]}),(0,s.jsx)("div",{className:"",children:(0,s.jsx)(o,{...v,contentType:u,isLoading:g,isToggled:!0})})]})}},76350:(e,t,l)=>{"use strict";l.r(t),l.d(t,{SpotlightContent:()=>x});var s=l(95155),a=l(12115),n=l(6874),i=l.n(n),r=l(47475),o=l(28791),c=l(64315),d=l(76951),m=l(66766),u=l(52596);function x(e){var t;let{results:l,contentType:n}=e,[x,p]=(0,a.useState)(null),[h,v]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=l.filter(e=>{let{backdrop_path:t,overview:l}=e;return t&&l}),t=e.length?e:l.filter(e=>{let{backdrop_path:t}=e;return t});v((0,r.J1)(t))},[l]),(0,a.useEffect)(()=>{let e=async()=>{if(!h)return;let e=await (0,d.t)("".concat(n,"/").concat(null==h?void 0:h.id,"/images?include_image_language=en&language=en-US"));if(e){let t=e.logos[0];if(!t||0===e.logos.length){p(null);return}p(t||e.logos[0])}};if(h)return e(),()=>{p(null)}},[h]),h&&(0,s.jsx)(o.l,{backdrop:h.backdrop_path,title:h.title||h.name,spotlight:!0,children:(0,s.jsx)("section",{className:"flex w-full justify-end",children:(0,s.jsxs)("div",{className:"flex flex-col items-end justify-items-end gap-4 sm:w-[60vw] md:gap-10 lg:w-[40vw]",children:[x?(0,s.jsx)("div",{className:(0,u.A)("h-auto",x.height>652?"w-1/2":"w-2/3"),children:(0,s.jsx)(m.default,{src:"https://image.tmdb.org/t/p/"+"".concat(x.height>652?"w300":"w500","/").concat(x.file_path),alt:x.file_path,width:250,height:250,unoptimized:!0,className:"h-full w-full object-contain object-right"})}):(0,s.jsx)("h2",{className:"line-clamp-3 py-1.5 text-right text-3xl font-bold drop-shadow-2xl lg:text-5xl",children:null===(t=h.title||h.name)||void 0===t?void 0:t.toUpperCase()}),(0,s.jsx)("p",{className:"line-clamp-2 text-right drop-shadow-2xl max-sm:text-sm",children:h.overview}),(0,s.jsxs)(i(),{href:"/".concat(n,"/").concat(h.id),className:"btn btn-outline btn-primary w-max xl:btn-lg",children:[(0,s.jsx)(c.gSK,{size:18}),"Watch Now"]})]})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[2150,6446,5891,5479,6874,5242,4277,6967,6766,4258,5557,6332,9670,1509,8441,1684,7358],()=>t(21384)),_N_E=e.O()}]);