(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31294,e=>{"use strict";var t=e.i(16340);let s=t.forwardRef(function({title:e,titleId:s,...r},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m12.75 15 3-3m0 0-3-3m3 3h-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["ArrowRightCircleIcon",0,s],31294)},83764,e=>{"use strict";var t=e.i(21628),s=e.i(101),r=e.i(18656),a=e.i(31294),i=e.i(64204),l=e.i(55230);let n=(0,r.default)("pages",{errormessagewithcode:"{statusCode} - {error}",internalservererror:"Internal Server Error",serviceunavailable:"Service Unavailable",somethingwentwrong:"Something Went Wrong",oops:"Oops",returnHome:"Return Home"}),o=({statusCode:e})=>{let r=(0,l.useIntl)(),o=e=>{switch(e){case 500:return r.formatMessage(n.internalservererror);case 503:return r.formatMessage(n.serviceunavailable);default:return e?r.formatMessage(n.somethingwentwrong):r.formatMessage(n.oops)}};return(0,t.jsxs)("div",{className:"error-message",children:[(0,t.jsx)(s.default,{title:o(e)}),(0,t.jsx)("div",{className:"text-4xl",children:e?r.formatMessage(n.errormessagewithcode,{statusCode:e,error:o(e)}):o(e)}),(0,t.jsxs)(i.default,{href:"/",className:"mt-2 flex",children:[r.formatMessage(n.returnHome),(0,t.jsx)(a.ArrowRightCircleIcon,{className:"ml-2 h-6 w-6"})]})]})};o.getInitialProps=async({res:e,err:t})=>({statusCode:e?e.statusCode:t?t.statusCode:void 0}),e.s(["default",0,o])},84204,e=>{"use strict";e.s(["withProperties",0,function(e,t){return Object.keys(t).forEach(s=>{Object.assign(e,{[s]:t[s]})}),e}])},65267,e=>{"use strict";var t=e.i(21628);e.s(["default",0,({children:e,extraMargin:s=0,subtext:r})=>(0,t.jsx)("div",{className:"mt-8 md:flex md:items-center md:justify-between",children:(0,t.jsxs)("div",{className:`min-w-0 flex-1 mx-${s}`,children:[(0,t.jsx)("h2",{className:"mb-4 truncate text-2xl font-bold leading-7 text-gray-100 sm:overflow-visible sm:text-4xl sm:leading-9 md:mb-0","data-testid":"page-header",children:(0,t.jsx)("span",{className:"text-overseerr",children:e})}),r&&(0,t.jsx)("div",{className:"mt-2 text-gray-400",children:r})]})})])},83933,e=>{"use strict";var t=e.i(21628),s=e.i(248),r=e.i(84204),a=e.i(64204),i=e.i(16340);let l=(0,r.withProperties)(({image:e,url:r,name:l,canExpand:n=!1})=>{let[o,d]=(0,i.useState)(!1);return(0,t.jsxs)(a.default,{href:r,className:`relative flex h-32 items-center justify-center sm:h-36 ${n?"w-full":"w-56 sm:w-72"} transform-gpu cursor-pointer p-8 shadow ring-1 transition duration-300 ease-in-out ${o?"scale-105 bg-gray-700/100 ring-gray-500":"scale-100 bg-gray-800/80 ring-gray-700"} overflow-hidden rounded-xl bg-cover bg-center`,onMouseEnter:()=>{d(!0)},onMouseLeave:()=>d(!1),onKeyDown:e=>{"Enter"===e.key&&d(!0)},role:"link",tabIndex:0,children:[(0,t.jsx)(s.default,{type:"tmdb",src:e,alt:"",style:{width:"100%",height:"100%",objectFit:"cover"},fill:!0}),(0,t.jsx)("div",{className:`absolute inset-0 z-10 h-full w-full transition duration-300 ${o?"bg-gray-800/10":"bg-gray-800/30"}`}),(0,t.jsx)("div",{className:"relative z-20 w-full truncate whitespace-normal text-center text-2xl font-bold text-white sm:text-3xl",children:l})]})},{Placeholder:()=>(0,t.jsx)("div",{className:"relative h-32 w-56 animate-pulse rounded-xl bg-gray-700 sm:h-40 sm:w-72"})});e.s(["default",0,l])},2928,e=>{"use strict";var t=e.i(21628),s=e.i(65267),r=e.i(7259),a=e.i(101),i=e.i(59048),l=e.i(83933),n=e.i(83764),o=e.i(18656),d=e.i(55230),c=e.i(17725);let m=(0,o.default)("components.Discover.TvGenreList",{seriesgenres:"Series Genres"}),u=()=>{let e=(0,d.useIntl)(),{data:o,error:u}=(0,c.default)("/api/v1/discover/genreslider/tv");return o||u?o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{title:e.formatMessage(m.seriesgenres)}),(0,t.jsx)("div",{className:"mb-5 mt-1",children:(0,t.jsx)(s.default,{children:e.formatMessage(m.seriesgenres)})}),(0,t.jsx)("ul",{className:"cards-horizontal",children:o.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsx)(l.default,{name:e.name,image:`https://image.tmdb.org/t/p/w1280_filter(duotone,${i.genreColorMap[e.id]??i.genreColorMap[0]})${e.backdrops[4]}`,url:`/discover/tv/genre/${e.id}`,canExpand:!0})},`genre-${e.id}-${s}`))})]}):(0,t.jsx)(n.default,{statusCode:404}):(0,t.jsx)(r.default,{})};e.s(["default",0,()=>(0,t.jsx)(u,{})],2928)},80786,(e,t,s)=>{let r="/discover/tv/genres";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(2928)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})},22803,e=>{e.v(t=>Promise.all(["static/chunks/0ew8-m0zm5cyd.js"].map(t=>e.l(t))).then(()=>t(24305)))},95396,e=>{e.v(t=>Promise.all(["static/chunks/0t1npidrcrw2c.js"].map(t=>e.l(t))).then(()=>t(44474)))}]);