PageSourceSearch

https://vidbox.wtf/_next/static/chunks/app/collection/page.1e6cbb9b.js

js vidbox.wtf collected 2026-10-10 02:45:19 UTC 5,577 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5607],{48313:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>u});var l=a(95155),s=a(12115),r=a(15239),c=a(52619),o=a.n(c);let n=(0,s.memo)(e=>{var t;let a,{collection:c}=e,[n,i]=(0,s.useState)(!1);return(0,l.jsx)(o(),{href:"/collection/".concat(c.id),prefetch:!1,children:(0,l.jsx)("div",{className:"group relative overflow-hidden rounded-lg",children:(0,l.jsxs)("div",{className:"relative aspect-[16/9] w-full",children:[!n&&(0,l.jsx)("div",{className:"absolute inset-0 animate-pulse bg-gray-200 dark:bg-gray-800"}),(0,l.jsx)(r.default,{src:c.backdrop_path?"https://image.tmdb.org/t/p/w780".concat(c.backdrop_path):"https://image.tmdb.org/t/p/w780".concat(c.poster_path),alt:c.name,fill:!0,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw",className:"object-cover transition-all duration-500 ".concat(n?"opacity-100 scale-100":"opacity-0 scale-105"," group-hover:scale-110"),quality:80,placeholder:"blur",blurDataURL:"data:image/svg+xml;base64,".concat((a='\n<svg width="'.concat(780,'" height="').concat(439,'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n  <rect width="').concat(780,'" height="').concat(439,'" fill="#1a1a1a">\n    <animate attributeName="opacity" values="0.5;1;0.5" dur="2s" repeatCount="indefinite"/>\n  </rect>\n</svg>
1'),window.btoa(a))),onLoadingComplete:()=>i(!0)}),(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/50 to-transparent opacity-80"}),(0,l.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-end p-4",children:[(0,l.jsx)("h2",{className:"text-xl font-bold text-white group-hover:text-yellow-500 transition-colors",children:c.name}),(0,l.jsx)("p",{className:"mt-2 text-sm text-gray-300 line-clamp-2",children:c.overview}),(0,l.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,l.jsxs)("span",{className:"rounded bg-yellow-500 px-2 py-1 text-xs font-semibold text-black",children:[c.parts.length," Movies"]}),(0,l.jsx)("span",{className:"text-xs text-gray-400",children:(null==(t=c.parts[0])?void 0:t.release_date)&&"First Release: ".concat(new Date(c.parts[0].release_date).getFullYear())})]})]})]})})})});async function i(e,t){let a=await fetch(e,t);if(!a.ok)throw Error("HTTP error! status: ".concat(a.status));return await a.json()}n.displayName="CollectionCard";var d=a(65142),m=a(83693),x=a.n(m);let p=[...new Set([645,86311,10,119,531241,8945,2344,748,141290,286904,302331,133830,141748,522577,1173608,33514,230,131635,404609,263,31562,141649,248534,10194,528,8650,939352,304,286948,730098,121938,328])],h="collections-data";function u(){let[e,t]=(0,s.useState)([]),[a,r]=(0,s.useState)([]),[c,o]=(0,s.useState)(!0),[m,u]=(0,s.useState)(null),[g,f]=(0,s.useState)(""),v=async()=>{try{let e=localStorage.getItem(h);if(e){let{data:a,timestamp:l}=JSON.parse(e);if(Date.now()-l<864e5){t(a),r(a),o(!1);return}}let a=(await Promise.allSettled(p.map(e=>i("https://api.themoviedb.org/3/collection/".concat(e,"?api_key=").concat("ef311eb0b9b07b9c73e9fb0a732cc150"),{headers:{accept:"application/json"},next:{revalidate:86400}})))).filter(e=>"fulfilled"===e.status&&!!e.value).map(e=>e.value);localStorage.setItem(h,JSON.stringify({data:a,timestamp:Date.now()})),t(a),r(a)}catch(e){console.error("Failed to fetch collections:",e),u("Failed to load collections. Please try again later.")}finally{o(!1)}},w=x()(t=>{if(f(t),!t.trim())return void r(e);r(e.filter(e=>e.name.toLowerCase().includes(t.toLowerCase())))},300);return((0,s.useEffect)(()=>{v()},[]),m)?(0,l.jsx)("div",{className:"flex min-h-screen flex-col items-center justify-center bg-gray-900 px-4 text-center",children:(0,l.jsxs)("div",{className:"rounded-lg bg-gray-800 p-8 shadow-lg",children:[(0,l.jsx)("svg",{className:"mx-auto h-12 w-12 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),(0,l.jsx)("h2",{className:"mt-4 text-xl font-semibold text-white",children:"Something went wrong"}),(0,l.jsx)("p",{className:"mt-2 text-gray-400",children:m}),(0,l.jsx)("button",{onClick:()=>window.location.reload(),className:"mt-4 rounded-md bg-red-500 px-4 py-2 text-sm font-medium text-white hover:bg-red-600 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2",children:"Try Again"})]})}):(0,l.jsxs)("div",{className:"mx-auto min-h-[80vh] w-full max-w-[1440px] pt-20 space-y-4 px-4 md:px-6 lg:px-8 py-6",children:[(0,l.jsx)("div",{className:"mb-6",children:(0,l.jsx)(d.p,{type:"text",placeholder:"Search collections...",className:"w-full rounded-lg py-4 capitalize text-black dark:text-white",onChange:e=>w(e.target.value),defaultValue:g})}),(0,l.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:c?(0,l.jsx)(l.Fragment,{children:[...Array(6)].map((e,t)=>(0,l.jsx)("div",{className:"aspect-[16/9] animate-pulse rounded-lg bg-gray-200 dark:bg-gray-800"},"skeleton-".concat(t)))}):a.length>0?a.map(e=>(0,l.jsx)(n,{collection:e},e.id)):g.trim()?(0,l.jsxs)("div",{className:"col-span-full text-center text-gray-500",children:['No collections found matching "',g,'"']}):(0,l.jsx)("div",{className:"col-span-full text-center text-gray-500",children:"No collections available"})})]})}},85365:(e,t,a)=>{Promise.resolve().then(a.bind(a,48313))}},e=>{e.O(0,[7405,2076,8096,7358],()=>e(e.s=85365)),_N_E=e.O()}]);

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.