"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2e3],{2e3:(e,a,l)=>{l.d(a,{default:()=>b});var t=l(5155),s=l(8770),r=l(4608),i=l(8830),n=l(9547),o=l(5950),c=l(6182),d=l(2994),h=l(1650),p=l(7691),x=l(5786),u=l(3709),m=l(6850),j=l(7266),g=l(5887),w=l(7644),f=l(4364),y=l(2900),v=l(1866),S=l(6046),_=l(4475),N=l(2115);let E="https://media-assets-cachable-prod-e1pjapsk.q62.uk/cdn-cgi/image/";function b(e){let[a,{toggle:l}]=(0,x.j)(),b=(0,s.xd)(),F=(0,m.U)("(max-width: ".concat(b.breakpoints.xs,")")),A=(0,j.useTranslations)(),k=(0,j.useLocale)(),R=(0,g.rd)(),I=(0,g.a8)(),G=(0,S.useSearchParams)(),T=F?"-1.7rem":"-2rem",D=(0,u.XH)({fixedAt:60});return(0,N.useEffect)(()=>{_.hotjar.initialize({id:3841658,sv:6})},[]),(0,t.jsxs)(r.G,{layout:"alt",header:{height:60,collapsed:!D,offset:!1},navbar:{width:300,breakpoint:"sm",collapsed:{mobile:!a,desktop:!a}},padding:"md",children:[(0,t.jsx)(r.G.Header,{children:(0,t.jsx)(i.Group,{h:"100%",px:"md",justify:"space-between",children:(0,t.jsxs)(i.Group,{justify:"space-between",style:{flex:1},children:[!a&&(0,t.jsx)(n.w,{opened:!1,onClick:l,size:"sm",hiddenFrom:"sm"}),(0,t.jsxs)(i.Group,{ml:"0",gap:"md",visibleFrom:"sm",children:[(0,t.jsx)(g.N_,{prefetch:!0,href:"/",children:(0,t.jsx)(o.N,{children:A("home")})}),(0,t.jsx)(g.N_,{prefetch:!0,href:"/movies",children:(0,t.jsx)(o.N,{children:A("movies")})}),(0,t.jsx)(g.N_,{prefetch:!0,href:"/tv-shows",children:(0,t.jsx)(o.N,{children:A("tvshows")})}),(0,t.jsx)(g.N_,{prefetch:!0,href:"/contact",children:(0,t.jsx)(o.N,{children:A("contact")})})]}),(0,t.jsx)(i.Group,{align:"center",children:(0,t.jsx)(v.J,{defaultLocaleDisplayName:g.hT.FROM_LANG_TAG[k].nativeDisplayName,onLocaleSelect:e=>{null!=e&&(R.replace("".concat(I,"?").concat(G.toString()),{locale:e}),R.refresh())}})})]})})}),(0,t.jsxs)(r.G.Navbar,{p:"md",children:[(0,t.jsx)(i.Group,{children:(0,t.jsx)(n.w,{opened:!0,onClick:l,size:"sm"})}),(0,t.jsx)(c.$,{h:"xl"}),(0,t.jsx)(g.N_,{prefetch:!0,href:"/",children:(0,t.jsx)(o.N,{children:A("home")})}),(0,t.jsx)(c.$,{h:"xl"}),(0,t.jsx)(g.N_,{prefetch:!0,href:"/movies",children:(0,t.jsx)(o.N,{children:A("movies")})}),(0,t.jsx)(c.$,{h:"xl"}),(0,t.jsx)(g.N_,{prefetch:!0,href:"/tv-shows",children:(0,t.jsx)(o.N,{children:A("tvshows")})}),(0,t.jsx)(c.$,{h:"xl"}),(0,t.jsx)(g.N_,{prefetch:!0,href:"/contact",children:(0,t.jsx)(o.N,{children:A("contact")})}),(0,t.jsx)(c.$,{h:"xl"})]}),(0,t.jsx)(r.G.Main,{children:(0,t.jsxs)(d.m,{size:"xl",children:[(0,t.jsx)(c.$,{h:"xl"}),(0,t.jsx)(c.$,{h:"xl"}),(0,t.jsxs)(h.B,{component:"article",children:[(0,t.jsx)(p.h,{order:2,children:A("latest_movie_updates")}),(0,t.jsx)(w.F,{height:"auto",dragFree:!0,slideSize:{base:"10%"},slideGap:"md",align:"start",controlSize:F?30:40,containScroll:"trimSnaps",styles:{control:{marginLeft:T,marginRight:T,backgroundColor:"var(--mantine-color-white) !important",color:"var(--mantine-color-black) !important",border:"1px solid var(--mantine-color-gray-3) !important"}},children:e.recentMovieReleases.map(e=>(0,t.jsx)(w.F.Slide,{children:(0,t.jsx)(f.N,{alt:"".concat(e.title," (").concat(e.year,")"),quality:e.quality,title:e.title,year:e.year,url:"".concat(k,"/movie?id=").concat(e.id,"&releaseId=").concat(e.releaseId),imageBaseUrl:E,imagePath:"".concat(e.posterImagePath)})},e.id))})]}),(0,t.jsx)(c.$,{h:"xl"}),(0,t.jsxs)(h.B,{component:"article",children:[(0,t.jsx)(p.h,{order:2,children:A("latest_tvshow_updates")}),(0,t.jsx)(w.F,{height:"auto",dragFree:!0,slideSize:{base:"10%"},slideGap:"md",align:"start",controlSize:F?30:40,containScroll:"trimSnaps",styles:{control:{marginLeft:T,marginRight:T,backgroundColor:"var(--mantine-color-white) !important",color:"var(--mantine-color-black) !important",border:"1px solid var(--mantine-color-gray-3) !important"}},children:e.recentTvShowUpdates.map(e=>(0,t.jsx)(w.F.Slide,{children:(0,t.jsx)(y.A,{alt:"".concat(e.title," (").concat(e.year,")"),title:e.title,year:e.year,url:"".concat(k,"/tv-show?id=").concat(e.id,"&s=").concat(e.season,"&e=").concat(e.episode,"&releaseId=").concat(e.releaseId),imageBaseUrl:E,imagePath:"".concat(e.posterImagePath),season:e.season,episode:e.episode})},e.id))})]})]})})]})}},1866:(e,a,l)=>{l.d(a,{J:()=>p});var t=l(5155),s=l(5887),r=l(1498),i=l(4304),n=l(8830),o=l(6694),c=l(5950),d=l(156),h=l(2115);function p(e){let[a,l]=(0,h.useState)(e.defaultLocaleDisplayName),p=(0,r.B)({onDropdownClose:()=>p.resetSelectedOption(),onDropdownOpen:e=>{"keyboard"===e?p.selectActiveOption():p.updateSelectedOptionIndex("active")}}),x=Object.keys(s.hT.FROM_NATIVE_DISPLAY_NAME).map(e=>(0,t.jsx)(i.G.Option,{value:e,active:e===a,children:(0,t.jsxs)(n.Group,{gap:"xs",children:[(0,t.jsx)("span",{children:e}),e===a&&(0,t.jsx)(o.S,{size:12})]})},s.hT.FROM_NATIVE_DISPLAY_NAME[e].langTag));return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(i.G,{store:p,position:"bottom-end",width:"auto",withArrow:!0,withinPortal:!1,onOptionSubmit:a=>{p.closeDropdown(),l(a),e.onLocaleSelect(s.hT.FROM_NATIVE_DISPLAY_NAME[a].langTag)},children:[(0,t.jsx)(i.G.Target,{children:(0,t.jsx)(c.N,{style:{alignItems:"center",display:"inline-flex"},variant:"default",size:"lg","aria-label":"todo",onClick:()=>p.toggleDropdown(),children:(0,t.jsx)(d.A,{})})}),(0,t.jsx)(i.G.Dropdown,{children:(0,t.jsx)(i.G.Options,{children:x})})]})})}},4364:(e,a,l)=>{l.d(a,{N:()=>u});var t=l(5155),s=l(5887),r=l(2208),i=l(1801),n=l(1663),o=l(8830),c=l(1791),d=l(6182),h=l(1650),p=l(9371),x=l(6524);let u=e=>(0,t.jsxs)(r.Z,{padding:"lg",radius:"md",children:[(0,t.jsx)(i.y,{pos:"relative",children:(0,t.jsxs)(s.N_,{href:e.url,children:[(0,t.jsx)(n._,{src:"".concat(e.imageBaseUrl,"w=160,f=auto/").concat(e.imagePath),srcSet:"".concat(e.imageBaseUrl,"w=240,f=auto/").concat(e.imagePath," 240w, ").concat(e.imageBaseUrl,"w=160,f=auto/").concat(e.imagePath," 160w"),sizes:"(max-width: 1200px) 160px, 240px",style:{aspectRatio:2/3,background:'url("/no-image-holder.svg") no-repeat center center/contain',objectFit:"fill"},alt:e.alt,loading:"lazy"}),(0,t.jsx)(o.Group,{style:{flexFlow:"row-reverse wrap-reverse"},pos:"absolute",bottom:0,right:0,p:16,gap:"xs",children:e.quality&&(0,t.jsx)(c.E,{size:"lg",radius:"sm",color:x.f[e.quality],children:e.quality})})]})}),(0,t.jsx)(d.$,{h:"md"}),(0,t.jsxs)(h.B,{align:"center",gap:"0",w:"100%",children:[(0,t.jsx)(p.E,{w:{base:150,xs:150,sm:170,md:170,lg:170,xl:220},fw:500,style:{textAlign:"center",display:"block",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:e.title}),(0,t.jsx)(p.E,{fw:500,style:{textAlign:"center"},children:e.year})]})]})},6524:(e,a,l)=>{l.d(a,{f:()=>d,y:()=>h});var t=l(5155),s=l(5808),r=l(8830),i=l(1791),n=l(9371),o=l(6832),c=l(2444);let d={CAM:"red",TELESYNC:"orange",SD:"yellow",HD:"green",FHD:"blue"};function h(e){return(0,t.jsx)(o.l,{label:e.label,allowDeselect:!1,renderOption:a=>{var l;let{option:s,checked:o}=a,h=null===(l=e.releases[s.value].quality)||void 0===l?void 0:l.key,p=e.releases[s.value].audioLangs.join(" • ");return(0,t.jsxs)(r.Group,{flex:"1",gap:"xs",children:[h&&(0,t.jsx)(i.E,{radius:"xs",color:d[h],children:h}),(0,t.jsxs)(n.E,{children:[" ",p," "]}),o&&(0,t.jsx)(c.A,{})]})},placeholder:e.placeholder,value:e.releaseId,defaultValue:e.defaultReleaseId,data:Object.values(e.releases).sort((e,a)=>{let l=a.quality,t=e.quality;return s.R.compare(l,t)}).map(a=>{var l;return{value:a.id,label:null==e.releases[a.id].quality?"".concat(e.releases[a.id].audioLangs.join(" • ")):"".concat(null===(l=e.releases[a.id].quality)||void 0===l?void 0:l.key," ").concat(e.releases[a.id].audioLangs.join(" • "))}}),onOptionSubmit:a=>{e.onReleaseSelected(a)}})}},2900:(e,a,l)=>{l.d(a,{A:()=>x});var t=l(5155),s=l(5887),r=l(2208),i=l(1801),n=l(1663),o=l(8830),c=l(1791),d=l(6182),h=l(1650),p=l(9371);let x=e=>{let a=null!=e.season&&null!=e.episode&&"S".concat(e.season,"E").concat(e.episode)||null;return(0,t.jsxs)(r.Z,{padding:"lg",radius:"md",children:[(0,t.jsx)(i.y,{pos:"relative",children:(0,t.jsxs)(s.N_,{href:e.url,children:[(0,t.jsx)(n._,{src:"".concat(e.imageBaseUrl,"w=160,f=auto/").concat(e.imagePath),srcSet:"".concat(e.imageBaseUrl,"w=240,f=auto/").concat(e.imagePath," 240w, ").concat(e.imageBaseUrl,"w=160,f=auto/").concat(e.imagePath," 160w"),sizes:"(max-width: 1200px) 160px, 240px",style:{aspectRatio:2/3,background:'url("/no-image-holder.svg") no-repeat center center/contain',objectFit:"fill"},alt:e.alt,loading:"lazy"}),(0,t.jsx)(o.Group,{pos:"absolute",top:0,right:0,p:16,gap:"xs",children:a&&(0,t.jsx)(c.E,{size:"lg",radius:"sm",color:"black",children:a})})]})}),(0,t.jsx)(d.$,{h:"md"}),(0,t.jsxs)(h.B,{align:"center",gap:"0",w:"100%",children:[(0,t.jsx)(p.E,{w:{base:150,xs:150,sm:170,md:170,lg:170,xl:220},fw:500,style:{textAlign:"center",display:"block",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:e.title}),(0,t.jsx)(p.E,{fw:500,style:{textAlign:"center"},children:e.year})]})]})}},5808:(e,a,l)=>{l.d(a,{R:()=>t});class t{static fromKey(e){return null==e?null:t[e]}static compare(e,a){return null==e&&null!=a?-1:null!=e&&null==a?1:(null==e?void 0:e.key)==(null==a?void 0:a.key)?0:e.priority-a.priority}constructor(e,a){this.key=e,this.priority=a}}t.CAM=new t("CAM",0),t.TELESYNC=new t("TELESYNC",1),t.SD=new t("SD",2),t.HD=new t("HD",3),t.FHD=new t("FHD",4)},5887:(e,a,l)=>{l.d(a,{N_:()=>n,a8:()=>c,hT:()=>r,rd:()=>d});var t=l(5433),s=l(1182);class r{constructor(e,a,l){this.key=e,this.langTag=a,this.nativeDisplayName=l}}r.EN_US=new r("EN_US","en-US","English (US)"),r.RU=new r("RU","ru","Русский"),r.HY=new r("HY","hy","Հայերեն"),r.ES_ES=new r("ES_ES","es-ES","Espa\xf1ola (espa\xf1a)"),r.FR_FR=new r("FR_FR","fr-FR","Fran\xe7ais (France)"),r.IT=new r("IT","it","Italiana"),r.HI=new r("HI","hi","हिन्दी"),r.FROM_LANG_TAG={ru:r.RU,"en-US":r.EN_US,hy:r.HY,"es-ES":r.ES_ES,"fr-FR":r.FR_FR,it:r.IT,hi:r.HI},r.FROM_NATIVE_DISPLAY_NAME={"English (US)":r.EN_US,Русский:r.RU,Հայերեն:r.HY,"Espa\xf1ola (espa\xf1a)":r.ES_ES,"Fran\xe7ais (France)":r.FR_FR,Italiana:r.IT,हिन्दी:r.HI};let i=(0,t.o)({locales:Object.keys(r.FROM_LANG_TAG),defaultLocale:"en-US",localePrefix:"as-needed"}),{Link:n,redirect:o,usePathname:c,useRouter:d,getPathname:h}=(0,s.xp)(i)}}]);