1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[780],{4860:function(e,l,i){"use strict";i.d(l,{w:function(){return t}});let t=async e=>{let{text:l,url:i}=e;try{await navigator.share({title:"RiveStream",text:l,url:i})}catch(e){console.error(e)}}},532:function(e,l,i){"use strict";var t=i(2676),a=i(5271),n=i(2719),s=i(9092),o=i(6399),d=i.n(o),c=i(6228),r=i(5789);i(1863),l.Z=e=>{let{imageArr:l,setIndex:i,mobileHeight:o,desktopHeight:v,objectFit:u}=e,[h,m]=(0,a.useState)(0),[g,_]=(0,a.useState)(""),[p,x]=(0,a.useState)(!1),[j,y]=(0,a.useState)(l),[w,N]=(0,a.useState)(!1),D=localStorage.getItem("RiveStreamSettings"),f=D?JSON.parse(D).mode:"dark";(0,a.useEffect)(()=>{document.documentElement.style.setProperty("--carousel-desktop-height",v),document.documentElement.style.setProperty("--carousel-mobile-height",o),document.documentElement.style.setProperty("--carousel-object-fit",u);let e=setInterval(()=>{k()},15e3);return()=>{clearInterval(e)}}),(0,a.useEffect)(()=>{0===l.length?y(["/images/logoSq.svg"]):y(l)},[l]);let k=()=>{console.log({images:j}),_("right"),m(e=>e===j.length-1?0:(e+1)%j.length),i(e=>e===j.length-1?0:(e+1)%j.length)};return(0,t.jsx)("div",{className:d().carousel,children:(0,t.jsxs)("div",{className:"".concat(d().carousel_images," ").concat(p?null:"skeleton"),children:[(0,t.jsx)(n.M,{mode:"sync",children:(0,t.jsx)(s.E.div,{initial:"right"===g?"hiddenRight":"hiddenLeft",animate:"visible",exit:"exit",variants:{hiddenRight:{x:"10%",opacity:0}
1,hiddenLeft:{x:"-10%",opacity:0},visible:{x:"0",opacity:p?1:0,transition:{duration:1}},exit:{opacity:0,x:"-10%",transition:{duration:.7}}},className:"".concat(p?"skeleton":null," ").concat(d().img),children:(0,t.jsx)(r.LazyLoadImage,{effect:"opacity",alt:"carousel",src:"".concat(w?"dark"===f?"/images/logoSq.svg":"/images/logoSq-white.svg":j[h]),className:"".concat(p?null:"skeleton"),onLoad:()=>{setTimeout(()=>{x(!0)},100)},onError:e=>{N(!0)},loading:"lazy"},h)},h)}),(0,t.jsxs)("div",{className:d().slide_direction,children:[(0,t.jsx)(c.aMQ,{className:d().left,onClick:()=>{_("left"),m(e=>e-1<0?j.length-1:e-1),i(e=>e-1<0?j.length-1:e-1)}}),(0,t.jsx)(c.AV3,{className:d().right,onClick:k})]})]})})}},246:function(e,l,i){"use strict";var t=i(2676),a=i(5271),n=i(5587),s=i.n(n),o=i(7846),d=i(113),c=i.n(d),r=i(3257),v=i(9220),u=i(689),h=i(2754),m=i.n(h),g=i(2390),_=i(5789);i(1863);let p=[1,2,3,4,5,6,7,8,9,10];l.Z=e=>{var l,i,n,d,h,x,j,y,w,N,D,f,k,b,S,C,M,L,F,I,E,Z;let{id:R,type:A,data:P,mode:T}=e,[B,Y]=(0,a.useState)("overview"),[q,z]=(0,a.useState)(),[H,O]=(0,a.useState)(!0),[W,J]=(0,a.useState)(""),[G,Q]=(0,a.useState)(1),[V,U]=(0,a.useState)(!0),[K,X]=(0,a.useState)(1),[$,ee]=(0,a.useState)(1),[el,ei]=(0,a.useState)(),[et,ea]=(0,a.useState)(),[en,es]=(0,a.useState)(!1),eo=(0,a.useRef)(null),ed=[];null==P||null===(l=P.genres)||void 0===l||l.map(e=>{ed.push(e.name)});let ec=[];null==P||null===(i=P.spoken_languages)||void 0===i||i.map(e=>{ec.push((null==e?void 0:e.english_name)||(null==e?void 0:e.name))});let er=[];null==P||null===(n=P.production_countries)||void 0===n||n.map(e=>{er.push(e.name)});let ev=[];null==P||null===(d=P.production_companies)||void 0===d||d.map(e=>{ev.push(e.name)});let eu=new Date((null==P?void 0:P.release_date)||(null==P?void 0:P.first_air_date)),eh=new Date(null==P?void 0:P.last_air_date),em=new Date(null==P?void 0:P.birthday),eg=["January","February","March","April","May","June","July","August","September","October","November","December"];(0,a.useEffect)(()=>{(async()=>{try{let e=await (0,o.Z)({requestID:"genresMovie"}),l=await (0,o.Z)({requestID:"genresTv"});ei(e.genres),ea(l.genres)}catch(e){console.error("Error fetching genres:",e)}})()},[]),(0,a.useEffect)(()=>{U(!0),(async()=>{let e=B.charAt(0).toUpperCase()+B.slice(1);if("overview"!==B)try{let l;"episodes"===B?l=await (0,o.Z)({requestID:"".concat(A).concat(e),id:R,season:G}):(l=await (0,o.Z)({requestID:"".concat(A).concat(e),id:R,page:K}),X(null==l?void 0:l.page),ee(null==l?void 0:l.total_pages)),z(l),U(!1)}catch(e){console.error("Error fetching data:",e)}})()},[B,G,K]);let e_=()=>{var e;null==eo||null===(e=eo.current)||void 0===e||e.scrollTo(0,0)};return(0,t.jsx)("div",{className:s().MetaDetailPage,children:(0,t.jsxs)("div",{className:s().MetaDetails,ref:eo,children:[(0,t.jsxs)("div",{className:s().category,children:["tv"===A?(0,t.jsx)("p",{className:"".concat("episodes"===B?s().active:s().inactive),onClick:()=>Y("episodes"),children:"Episodes"}):null,(0,t.jsx)("p",{className:"".concat("overview"===B?s().active:s().inactive),onClick:()=>Y("overview"),children:"Overview"}),"person"!==A?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"".concat("casts"===B?s().active:s().inactive),onClick:()=>Y("casts"),children:"Casts"}),(0,t.jsx)("p",{className:"".concat("reviews"===B?s().active:s().inactive),onClick:()=>Y("reviews"),children:"Reviews"}),(0,t.jsx)("p",{className:"".concat("related"===B?s().active:s().inactive),onClick:()=>Y("related"),children:"Related"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"".concat("movie"===B?s().active:s().inactive),onClick:()=>Y("movie"),children:"Movies"}),(0,t.jsx)("p",{className:"".concat("tv"===B?s().active:s().inactive),onClick:()=>Y("tv"),children:"TV Shows"})]})]}),"tv"===A&&"episodes"===B?(0,t.jsxs)("div",{className:s().EpisodeList,children:[(0,t.jsx)("select",{name:"season",id:"season",value:G,onChange:e=>Q(e.target.value),children:null==P?void 0:null===(h=P.seasons)||void 0===h?void 0:h.map((e,l)=>(console.log({i:l}),(0,t.jsxs)("option",{value:null==e?void 0:e.season_number,selected:0==l,children:[e.name," "," (".concat(e.episode_
1count,")")]},e.id)))}),"episodes"===B&&(null==q?void 0:null===(x=q.episodes)||void 0===x?void 0:x.map(e=>(0,t.jsxs)("div",{className:"".concat(s().episode," ").concat(W===(null==e?void 0:e.id)?s().ReviewDetail:null," ").concat(new Date(null==e?void 0:e.air_date)>=new Date?s().notAired:null),onClick:()=>J(l=>l!==(null==e?void 0:e.id)?null==e?void 0:e.id:""),children:[(0,t.jsx)(c(),{href:"/watch?type=tv&id=".concat(null==e?void 0:e.show_id,"&season=").concat(null==e?void 0:e.season_number,"&episode=").concat(null==e?void 0:e.episode_number),className:"".concat(s().CardSmall),onClick:e=>e.stopPropagation(),children:(0,t.jsx)("div",{className:"".concat(s().img," ").concat(H?"skeleton":null),children:(0,t.jsx)(_.LazyLoadImage,{src:"".concat(en?"dark"!==T?"/images/logoBlack.svg":
1"/images/logoWhite.svg":(null==e?void 0:e.still_path)!==null&&(null==e?void 0:e.still_path)!==void 0?"https://image.tmdb.org/t/p/original/"+(null==e?void 0:e.still_path):"dark"!==T?"/images/logoBlack.svg":"/images/logoWhite.svg"),height:"100%",width:"100%",useIntersectionObserver:!0,effect:"opacity",className:"".concat(s().img," ").concat(H?"skeleton":null),onLoad:()=>{O(!1)},onError:e=>{es(!0),O(!1)},loading:"lazy"},null==e?void 0:e.id)})}),(0,t.jsxs)("div",{className:s().details,children:[(0,t.jsxs)("h4",{children:["EP ".concat(e.episode_number),"".concat((null==e?void 0:e.name)?" : "+(null==e?void 0:e.name):null)]}),(0,t.jsxs)("p",{children:["".concat((null==e?void 0:e.vote_average)>=0?"⢠"+(null==e?void 0:e.vote_average.toFixed(1)):null)," ",(null==e?void 0:e.runtime)>=60?"⢠".concat(Math.floor((null==e?void 0:e.runtime)/60),"hr ").concat(((null==e?void 0:e.runtime)%60).toFixed(0),"min"):null,(null==e?void 0:e.runtime)<60?"⢠".concat(((null==e?void 0:e.runtime)%60).toFixed(0),"min "):null,new Date(null==e?void 0:e.air_date)>=new Date?(0,t.jsx)("span",{className:s().notAiredTag,children:"⢠".concat(new Date(null==e?void 0:e.air_date).getDate()," ").concat(eg[new Date(null==e?void 0:e.air_date).getMonth()]," ").concat(new Date(null==e?void 0:e.air_date).getFullYear())}):null]}),(0,t.jsxs)(c(),{className:"".concat(s().links," btn"),href:"/watch?type=tv&id=".concat(null==e?void 0:e.show_id,"&season=").concat(null==e?void 0:e.season_number,"&episode=").concat(null==e?void 0:e.episode_number),onClick:e=>e.stopPropagation(),children:["watch ",(0,t.jsx)(v.gmG,{})]}),(0,t.jsx)("p",{children:null==e?void 0:e.overview})]})]})))]}):null,"tv"===A&&"episodes"===B&&(null==q?void 0:null===(j=q.episodes)||void 0===j?void 0:j.length)===0?(0,t.jsx)("p",{children:"No Episodes Found"}):null,"tv"===A&&"episodes"===B&&void 0===q?p.map(e=>(0,t.jsx)("div",{className:s().episode,children:(0,t.jsx)(u.Z,{height:100,className:s().CardSmall,style:{margin:"0.5rem 0"}})})):null,(0,t.jsxs)("div",{className:s().categoryDetails,children:["overview"===B&&"person"!==A&&(0,t.jsxs)(t.Fragment,{children:[(null==P?void 0:P.tagline)?(0,t.jsx)("h4",{children:(0,t.jsx)("q",{children:null==P?void 0:P.tagline})}):null,(0,t.jsx)("p",{children:null==P?void 0:P.overview}),eu.getDate()?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:"Release"}),(0,t.jsx)("p",{children:"".concat(eu.getDate()," ").concat(eg[eu.getMonth()]," ").concat(eu.getFullYear())})]}):null,(null==P?void 0:P.runtime)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:"Runtime"}),(0,t.jsxs)("p",{children:[(null==P?void 0:P.runtime)>=60?"".concat(Math.floor((null==P?void 0:P.runtime)/60),"hr ").concat(((null==P?void 0:P.runtime)%60).toFixed(0),"min"):null,(null==P?void 0:P.runtime)<60?"".concat(((null==P?void 0:P.runtime)%60).toFixed(0)," min"):null]})]}):null,(null==ed?void 0:ed.length)>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:"Genre"}),(0,t.jsx)("p",{children:null==ed?void 0:ed.join(", ")})]}):null,"tv"===A&&(null==P?void 0:P.status)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:"Show Details"}),(null==P?void 0:P.status)&&(0,t.jsxs)("p",{children:[" Status : ",null==P?void 0:P.status]}),(null==P?void 0:P.number_of_seasons)&&(0,t.jsxs)("p",{children:[" Total Seasons : ",null==P?void 0:P.number_of_seasons]}),(null==P?void 0:P.number_of_episodes)&&(0,t.jsxs)("p",{children:[" Total Episodes : ",null==P?void 0:P.number_of_episodes]}),(null==P?void 0:P.next_episode_to_air)!==null?(0,t.jsxs)("p",{children:[" ","Next Episode to Air :"," ",null==P?void 0:null===(y=P.next_episode_to_air)||void 0===y?void 0:y.episode_number," (",new Date(null==P?void 0:null===(w=P.next_episode_to_air)||void 0===w?void 0:w.air_date).getDate()," ",eg[new Date(null==P?void 0:null===(N=P.next_episode_to_air)||void 0===N?void 0:N.air_date).getMonth()]," ",new Date(null==P?void 0:null===(D=P.next_episode_to_air)||void 0===D?void 0:D.air_date).getFullYear(),")"]}):null,eu&&eh&&(0,t.jsxs)("p",{children:[" ","Aired :"," ","".concat(eu.getDate()," ").concat(eg[eu.getMonth()]," ").concat(eu.getFullYear())," ","-"," ",(null==P?void 0:P.in_production)?"ongoing":"".concat(eh.getDate()," ").concat(eg[eh.getMonth()]," ").concat(eh.getFullYear())]})]}),(null==ec?void 0:ec.length)>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:"Spoken Languages"}),(0,t.jsx)("p",{children:null==ec?void 0:ec.join(", ")})]}):null,(null==er?void 0:er.length)>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:"Production Countries"}),(0,t.jsx)("p",{children:null==er?void 0:er.join(", ")})]}):null,(null==ev?void 0:ev.length)>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:"Production Companies"}),(0,t.jsx)("p",{children:null==ev?void 0:ev.join(", ")})]}):null]}),"overview"===B&&"person"===A&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{children:null==P?void 0:P.biography}),em.getDate()?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:"Birthday"}),(0,t.jsx)("p",{children:"".concat(em.getDate()," ").concat(eg[em.getMonth()]," ").concat(em.getFullYear())})]}):null,(null==P?void 0:P.place_of_birth)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:"Place of Birth"}),(0,t.jsx)("p",{children:null==P?void 0:P.place_of_birth})]}):null,(null==P?void 0:P.known_for_department)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:"Department"}),(0,t.jsx)("p",{children:null==P?void 0:P.known_for_department})]}):null]}),"overview"===B&&(void 0==P||null===P)&&(0,t.jsx)(u.Z,{count:10,style:{margin:"0.5rem 0"}}),(0,t.jsx)("div",{className:s().casts,children:"casts"===B&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h4",{className:s().header,children:"Cast"}),null==q?void 0:null===(f=q.cast)||void 0===f?void 0:f.map(e=>(0,t.jsxs)("div",{className:s().cast,children:[(0,t.jsx)(c(),{href:"/person?id=".concat(null==e?void 0:e.id),className:s().CardSmall,children:(0,t.jsx)("div",{className:"".concat(s().img," ").concat(H?"skeleton":null),children:(0,t.jsx)(_.LazyLoadImage,{src:"".concat(en?"dar
1k"!==T?"/images/logoBlack.svg":
1"/images/logoWhite.svg":(null==e?void 0:e.profile_path)!==null&&(null==e?void 0:e.profile_path)!==void 0?"https://image.tmdb.org/t/p/original/"+(null==e?void 0:e.profile_path):"dark"!==T?"/images/logoBlack.svg":"/images/logoWhite.svg"),height:"100%",width:"100%",useIntersectionObserver:!0,effect:"opacity",className:"".concat(s().img," ").concat(H?"skeleton":null),onLoad:()=>{O(!1)},onError:e=>{es(!0),O(!1)},loading:"lazy"},null==e?void 0:e.id)})}),(0,t.jsxs)("div",{className:s().castName,children:[(0,t.jsx)("h4",{children:null==e?void 0:e.name}),(0,t.jsx)("p",{children:null==e?void 0:e.character})]})]})),"casts"===B&&void 0===q&&p.map(e=>(0,t.jsxs)("div",{className:s().cast,children:[(0,t.jsx)(u.Z,{height:100,width:100}),(0,t.jsx)(u.Z,{height:20,width:50})]})),(0,t.jsx)("h4",{className:s().header,children:"Crew"}),null==q?void 0:null===(k=q.crew)||void 0===k?void 0:k.map(e=>(0,t.jsxs)("div",{className:s().cast,children:[(0,t.jsx)(c(),{href:"/person?id=".concat(null==e?void 0:e.id),className:s().CardSmall,children:(0,t.jsx)("div",{className:"".concat(s().img," ").concat(H?"skeleton":null),children:(0,t.jsx)(_.LazyLoadImage,{src:"".concat(en?"dark"!==T?"/images/logoBlack.svg":
1"/images/logoWhite.svg":(null==e?void 0:e.profile_path)!==null&&(null==e?void 0:e.profile_path)!==void 0?"https://image.tmdb.org/t/p/original/"+(null==e?void 0:e.profile_path):"dark"!==T?"/images/logoBlack.svg":"/images/logoWhite.svg"),height:"100%",width:"100%",useIntersectionObserver:!0,effect:"opacity",className:"".concat(s().img," ").concat(H?"skeleton":null),onLoad:()=>{O(!1)},onError:e=>{es(!0),O(!1)},loading:"lazy"},null==e?void 0:e.id)})}),(0,t.jsxs)("div",{className:s().castName,children:[(0,t.jsx)("h4",{children:null==e?void 0:e.name}),(0,t.jsx)("p",{children:(null==e?void 0:e.character)||(null==e?void 0:e.job)})]})]})),"casts"===B&&void 0===q&&p.map(e=>(0,t.jsxs)("div",{className:s().cast,children:[(0,t.jsx)(u.Z,{height:100,width:100}),(0,t.jsx)(u.Z,{height:20,width:50})]}))]})}),(0,t.jsxs)("div",{className:s().MovieList,children:[(0,t.jsxs)(t.Fragment,{children:["related"===B&&(null==q?void 0:null===(b=q.results)||void 0===b?void 0:b.map(e=>(0,t.jsx)(r.Z,{data:e,media_type:A,genresMovie:el,genresTv:et}))),"related"===B&&(null==q?void 0:null===(S=q.results)||void 0===S?void 0:S.length)>0&&(0,t.jsx)(m(),{containerClassName:s().pagination,pageClassName:s().page_item,activeClassName:s().paginateActive,onPageChange:e=>{X(e.selected+1),console.log({event:e}),K>$&&X($),window.scrollTo(0,0),e_()},pageCount:$,breakLabel:" ... ",previousLabel:(0,t.jsx)(g._u0,{className:s().paginationIcons}),nextLabel:(0,t.jsx)(g.bBv,{className:s().paginationIcons})})]}),"related"===B&&(null==q?void 0:null===(C=q.results)||void 0===C?void 0:C.length)===0&&(0,t.jsx)("p",{children:"No Recommendations"}),"related"===B&&void 0===q&&p.map(e=>(0,t.jsxs)("div",{className:s().MovieList,children:[(0,t.jsx)(u.Z,{height:150,width:100}),(0,t.jsxs)("div",{children:[(0,t.jsx)(u.Z,{height:20,width:150}),(0,t.jsx)(u.Z,{height:20,width:150}),(0,t.jsx)(u.Z,{height:20,width:150})]})]}))]}),(0,t.jsxs)("div",{className:s().ReviewList,children:["reviews"===B&&(null==q?void 0:null===(M=q.results)||void 0===M?void 0:M.map(e=>{var l;let i=new Date(null==e?void 0:e.created_at);return(0,t.jsxs)("div",{className:"".concat(s().Review," ").concat(W===(null==e?void 0:e.id)?s().ReviewDetail:null),onClick:()=>J(l=>l!==(null==e?void 0:e.id)?null==e?void 0:e.id:""),children:[(0,t.jsx)("h4",{children:null==e?void 0:e.author}),(0,t.jsx)("p",{children:"".concat(i.getDate()," ").concat(eg[i.getMonth()]," ").concat(i.getFullYear())}),(0,t.jsxs)("p",{className:s().rating,children:[(0,t.jsx)(v.QJe,{})," ",null==e?void 0:null===(l=e.author_details)||void 0===l?void 0:l.rating]}),(0,t.jsx)("p",{children:null==e?void 0:e.content})]})})),"reviews"===B&&(null==q?void 0:null===(L=q.results)||void 0===L?void 0:L.length)===0?(0,t.jsx)("div",{className:s().Review,children:(0,t.jsx)("p",{children:"No Reviews Found"})}):null,"reviews"===B&&void 0===q&&p.map(e=>(0,t.jsx)(u.Z,{height:200,width:250}))]}),(0,t.jsxs)("div",{className:s().MovieList,children:["movie"===B&&(null==q?void 0:null===(F=q.cast)||void 0===F?void 0:F.map((e,l)=>(0,t.jsxs)("div",{className:s().numberedCard,children:[(0,t.jsx)(r.Z,{data:e,media_type:"movie",genresMovie:el,genresTv:et}),(0,t.jsx)("span",{className:s().number,children:l+1})]}))),"movie"===B&&(null==P?void 0:P.known_for_department)!=="Acting"&&(null==q?void 0:null===(I=q.crew)||void 0===I?void 0:I.map((e,l)=>(0,t.jsxs)("div",{className:s().numberedCard,children:[(0,t.jsx)(r.Z,{data:e,media_type:"movie",genresMovie:el,genresTv:et}),(0,t.jsx)("span",{className:s().number,children:l+1})]}))),"movie"===B&&void 0===q&&p.map(e=>(0,t.jsxs)("div",{className:s().MovieList,children:[(0,t.jsx)(u.Z,{height:150,width:100}),(0,t.jsx)(u.Z,{height:50,width:150})]}))]}),(0,t.jsxs)("div",{className:s().MovieList,children:["tv"===B&&(null==q?void 0:null===(E=q.cast)||void 0===E?void 0:E.map((e,l)=>(0,t.jsxs)("div",{className:s().numberedCard,children:[(0,t.jsx)(r.Z,{data:e,media_type:"tv",genresMovie:el,genresTv:et}),(0,t.jsx)("span",{className:s().number,children:l+1})]}))),"tv"===B&&(null==P?void 0:P.known_for_department)!=="Acting"&&(null==q?void 0:null===(Z=q.crew)||void 0===Z?void 0:Z.map((e,l)=>(0,t.jsxs)("div",{className:s().numberedCard,children:[(0,t.jsx)(r.Z,{data:e,media_type:"tv",genresMovie:el,genresTv:et}),(0,t.jsx)("span",{className:s().number,children:l+1})]}))),"tv"===B&&void 0===q&&p.map(e=>(0,t.jsxs)("div",{className:s().MovieList,children:[(0,t.jsx)(u.Z,{height:150,width:100}),(0,t.jsx)(u.Z,{height:50,width:150})]}))]})]})]})})}},3257:function(e,l,i){"use strict";var t=i(2676),a=i(5271),n=i(5479),s=i.n(n),o=i(113),d=i.n(o),c=i(689),r=i(5789);
1i(1863),l.Z=e=>{var l,i,n,o;let{data:v,media_type:u,genresMovie:h,genresTv:m}=e,[g,_]=(0,a.useState)(!0),[p,x]=(0,a.useState)(h),[j,y]=(0,a.useState)(m),[w,N]=(0,a.useState)(!0),[D,f]=(0,a.useState)(!1),k=new Date(null==v?void 0:v.release_date).getFullYear(),b=null==v?void 0:v.original_language,S="dark";{let e=localStorage.getItem("RiveStreamSettings");S=e?JSON.parse(e).mode:"dark"}let C=[];return null==v||null===(l=v.genre_ids)||void 0===l||l.map(e=>{(null==v?void 0:v.media_type)==="movie"||"movie"===u?null==p||p.map(l=>{(null==l?void 0:l.id)===e&&C.push(null==l?void 0:l.name)}):((null==v?void 0:v.media_type)==="tv"||"tv"===u)&&(null==j||j.map(l=>{(null==l?void 0:l.id)===e&&C.push(null==l?void 0:l.name)}))}),console.log({Genres:C}),(0,t.jsxs)(d(),{href:"".concat((null==v?void 0:v.media_type)==="person"?"/person?id="+(null==v?void 0:v.id):"/detail?type="+((null==v?void 0:v.media_type)||u)+"&id="+(null==v?void 0:v.id)),className:s().MovieCardSmall,"aria-label":(null==v?void 0:v.name)||"poster","data-tooltip-id":"tooltip","data-tooltip-html":"".concat((null==v?void 0:null===(i=v.title)||void 0===i?void 0:i.length)>50||(null==v?void 0:null===(n=v.name)||void 0===n?void 0:n.length)>50?(null==v?void 0:v.title)||(null==v?void 0:v.name):""),children:[(0,t.jsx)("div",{className:"".concat(s().img," ").concat((null==v?void 0:v.poster_path)!==null&&(null==v?void 0:v.poster_path)!==void 0?"skeleton":null),children:(0,t.jsx)(r.LazyLoadImage,{src:"".concat(D?"light"===S?"/images/logoSq.png":
1"/images/logoSq-white.png":(null==v?void 0:v.poster_path)
1!==null&&(null==v?void 0:v.poster_path)!==void 0||(null==v?void 0:v.profile_path)!==null&&(null==v?void 0:v.profile_path)!==void 0||(null==v?void 0:v.still_path)!==null&&(null==v?void 0:v.still_path)!==void 0?"https://image.tmdb.org/t/p/original/"+((null==v?void 0:v.poster_path)||(null==v?void 0:v.profile_path)||(null==v?void 0:v.still_path)):"dark"===S?"/images/logoWhite.svg":"/images/logoBlack.svg"),height:"100%",width:"100%",useIntersectionObserver:!0,effect:"opacity",className:"".concat(s().img," ").concat(g?"skeleton":null),onLoad:()=>{setTimeout(()=>{_(!1),N(!1)},100)},loading:"lazy",onError:e=>{f(!0),_(!1)},alt:(null==v?void 0:v.id)||"sm"},null==v?void 0:v.id)}),(0,t.jsxs)("div",{className:"".concat(s().metaData),children:[(0,t.jsx)("h1",{children:(null==v?void 0:v.title)||(null==v?void 0:v.name)||(0,t.jsx)(c.Z,{count:2})}),(0,t.jsxs)("p",{children:[(null==(o=(null==v?void 0:v.media_type)||u)?void 0:o.charAt(0).toUpperCase())+(null==o?void 0:o.slice(1)),(null==v?void 0:v.vote_average)?" ⢠".concat(null==v?void 0:v.vote_average.toFixed(1)):null,Number.isNaN(k)?null:" ⢠".concat(k)," ",void 0!==b?" ⢠".concat(b.toUpperCase()):null]}),null==C?void 0:C.join(", ")]})]},null==v?void 0:v.id)}},6399:function(e){e.exports={carousel_images:"style_carousel_images__JQL2M",img:"style_img__KgVvm",slide_direction:"style_slide_direction__y7IW7",left:"style_left__IxrTJ",right:"style_right__mDJkV",loading:"style_loading__t6GYf",loaded:"style_loaded__Gk14T"}},5587:function(e){e.exports={MetaDetailPage:"style_MetaDetailPage__UF6Ld",MetaDetails:"style_MetaDetails__yPAII",category:"style_category__sH_EL",casts:"style_casts__zmtm3",header:"style_header__GgN4u",cast:"style_cast__sgw_A",img:"style_img__nT_gb",MovieList:"style_MovieList__ryAod",ReviewList:"style_ReviewList__Wi1hW",EpisodeList:"style_EpisodeList__kI4Oy",Review:"style_Review__2QoLT",rating:"style_rating__cRqOT",ReviewDetail:"style_ReviewDetail__s_pkA",numberedCard:"style_numberedCard__9w7Kk",number:"style_number__NqOyY",episode:"style_episode__Ckhuq",details:"style_details__Llcv5",links:"style_links__axdpl",pagination:"style_pagination__TC6es",page_item:"style_page_item__VwI1e",inactive:"style_inactive__he4tc",active:"style_active__owFEY",paginateActive:"style_paginateActive__hY_87",disabled:"style_disabled__86iCm",notAired:"style_notAired__f45uQ",notAiredTag:"style_notAiredTag__GFllV",CardSmall:"style_CardSmall__FhSgR"}},5479:function(e){e.exports={MovieCardSmall:"style_MovieCardSmall__ZFLlv",img:"style_img__1DQdE",metaData:"style_metaData__MIuCO"}},6123:function(e){e.exports={DetailPage:"Detail_DetailPage__BBEh0",biggerPic:"Detail_biggerPic__SvKDQ",CarouselLoading:"Detail_CarouselLoading__S9kLU",biggerDetail:"Detail_biggerDetail__83V8j",curvy:"Detail_curvy__dsmxD",curvy5:"Detail_curvy5__zYYKD",curvy2:"Detail_curvy2__oGdYz",curvy3:"Detail_curvy3__rlfpo",curvy4:"Detail_curvy4__S3jmN",DetailBanner:"Detail_DetailBanner___z6rc",poster:"Detail_poster__ISQTx",rating:"Detail_rating__VlszR",HomeHeroMeta:"Detail_HomeHeroMeta__sfmb0",HomeHeroMetaRow2:"Detail_HomeHeroMetaRow2__kAAmG",type:"Detail_type__0BiHq",links:"Detail_links__yJ__5",HomeHeroIcons:"Detail_HomeHeroIcons__gW_rC",PersonPage:"Detail_PersonPage__QtqgY",detailBiggerPic:"Detail_detailBiggerPic__k5YnG",IconsMobileNone:"Detail_IconsMobileNone__jABOF"}}}]);
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.