PageSourceSearch

https://web.clearplay.com/assets/js/MovieBattleListPage-B5JvdaF6.js

js clearplay.com collected 2026-09-25 02:59:36 UTC 5,704 bytes, 2 lines download raw bytes

1import{j as e}from"./ui-vendor-B9FU00c2.js";import{a as c}from"./battleUtils-C00ndARK.js";/* empty css               */import{a as n,L as i}from"./react-vendor-DVK4bn_F.js";import{c as S}from"./battles.queries-Dkaq-2CW.js";import{e as _,A as l}from"./index-DG8EoGz3.js";import{H as p,S as f}from"./Header-CvHkkptR.js";import{O as E,W as M}from"./WhatIsClearplay-C8o6hmNj.js";import{g as y}from"./canonicalUrl-BCi6A9l1.js";import"./utils-Dikuy6K6.js";import"./Close-BiNfIps-.js";const T=({src:s,alt:d,movieName:o})=>{const[m,h]=n.useState(!1),a=n.useCallback(()=>{h(!0)},[]);return m||!s?e.jsx("div",{className:"poster-fallback",children:e.jsx("span",{className:"fallback-title",children:o})}):e.jsx("img",{src:s,alt:d,className:"movie-poster",loading:"lazy",decoding:"async",onError:a})},z=({isBest:s=!0})=>{const d=s?"allTime":"bottom",{data:o,isLoading:m,error:h}=S({dataset:d,totalItems:100}),[a,x]=n.useState(null),[r,w]=n.useState(window.innerWidth<=1129),[j]=n.useState(null);n.useEffect(()=>{const t=()=>w(window.innerWidth<=1129);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);const v=s?"100 Best Movie Battle Winners":"100 Worst Movie Battle Winners",b="ClearPlay Movie Battle - Vote for your favorite movies and discover new films. Compare movies head-to-head and see which ones come out on top in our community-driven movie battles.",u=y(s?"movieBattleTop100":"movieBattleBottom100"),N=Array.isArray(o)?o:[];return m?e.jsxs("div",{id:"movies-page-root",children:[e.jsx(p,{tabIndex:a,setTabIndex:x,showSidebarInMenu:r,activeSidebarNav:j,showReviewsSidebar:r,activeReviewsSection:"movie-battles"}),e.jsx("div",{className:"loading-container",children:e.jsx("p",{children:"Loading battle results..."})})]}):h?e.jsxs("div",{id:"movies-page-root",children:[e.jsx(p,{tabIndex:a,setTabIndex:x,showSidebarInMenu:r,activeSidebarNav:j,showReviewsSidebar:r,activeReviewsSection:"movie-battles"}),e.jsx("div",{className:"error-container",children:e.jsx("p",{children:"Unable to load battle results. Please try again later."})})]}):e.jsxs("div",{id:"movies-page-root",children:[e.jsxs(_,{children:[e.jsx("title",{children:v}),e.jsx("meta",{name:"description",content:b}),e.jsx("link",{rel:"canonical",href:u}),e.jsx("meta",{property:"og:url",content:u}),e.jsx("meta",{property:"og:title",content:v}),e.jsx("meta",{property:"og:description",content:b}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:site_name",content:"ClearPlay"})]}),e.jsx(p,{tabIndex:a,setTabIndex:x,showSidebarInMenu:r,activeSidebarNav:j,showReviewsSidebar:r,activeReviewsSection:"movie-battles"}),e.jsxs("div",{className:"movies-content-row",children:[!r&&a===null&&e.jsxs("div",{className:"movies-sidebar-stack",children:[e.jsxs("div",{className:"breadcrumb breadcrumb-spacing",children:[e.jsx(i,{to:l.NEW_MOVIES_BY_RELEASE,className:"breadcrumb-link",children:"Home"})," ",">"," ",e.jsx(i,{to:l.MOVIE_BATTLES,className:"breadcrumb-link",children:"Movie Battle"})," ","> ",e.jsx("span",{children:s?"100 Best Winners":"100 Worst Winners"})]}),e.jsx(f,{activeSection:s?"battle-top100":"battle-bottom100"})]}),e.jsxs("div",{className:"movies-main-content",id:"movie-battle-list-page-wrapper",children:[a===1&&e.jsx(E,{}),a===0&&e.jsx(M,{}),a===null&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"battle-list-header",children:e.jsxs("div",{className:"header-content",children:[e.jsx("h1",{children:s?"100 Best Movie Battle Winners":"100 Worst Movie Battle Winners"}),e.jsxs("div",{className:"header-links",children:[e.jsx(i,{to:l.MOVIE_BATTLES,className:"header-link",children:"← BACK TO BATTLES"}),e.jsxs(i,{to:s?l.MOVIE_BATTLE_BOTTOM100:l.MOVIE_BATTLE_TOP100,className:"header-link",children:["VIEW ",s?"WORST":"BEST"," WINNERS"]})]})]})}),e.jsx("section",{className:"battle-list-section",children:e.jsx("div",{className:"content-wrapper",children:N.length===0?e.jsx("p",{style:{color:"#fff",textAlign:"center",padding:"2rem"},children:"No movies found in this category."}):e.jsx("div",{className:"battle-list-grid",children:N.map((t,g)=>e.jsxs("div",{className:"battle-list-item",children:[e.jsx("div",{className:"rank-section",children:e.jsxs("span",{className:"rank-number",children:["#",g+1]})}),e.jsx(i,{to:c(t.title_id,t.name,t.movie_id),className:"movie-poster-section",children:e.jsx(T,{src:t.image_file,alt:t.name,movieName:t.name})}),e.jsxs("div",{className:"movie-stats-section",children:[e.jsx("h3",{className:"movie-title",children:e.jsx(i,{to:c(t.title_id,t.name,t.movie_id),children:t.name})}),e.jsxs("div",{className:"stats-row",children:[e.jsxs("div",{className:"stat-item",children:[e.jsxs("strong",{children:[Math.round(t.percent_won*100),"%"]}
1)," (",t.won.toLocaleString()," ","wins)"]}),e.jsxs("div",{className:"stat-item",children:[e.jsxs("strong",{children:[Math.round(t.percent_lost*100),"%"]})," (",t.lost.toLocaleString()," ","losses)"]}),e.jsxs("div",{className:"stat-item",children:[e.jsx("strong",{children:"100%"})," (",t.battles.toLocaleString()," viewed)"]})]}),t.lost_to&&t.lost_to.title_id&&e.jsxs("div",{className:"matchup-item",children:[e.jsx("span",{className:"label",children:"Recently Conquered:"})," ",e.jsx(i,{to:c(t.lost_to.title_id,t.lost_to.name,t.lost_to.movie_id),className:"movie-link",children:t.lost_to.name})]}),t.beat&&t.beat.title_id&&e.jsxs("div",{className:"matchup-item",children:[e.jsx("span",{className:"label",children:"Recently Defeated By:"})," ",e.jsx(i,{to:c(t.beat.title_id,t.beat.name,t.beat.movie_id),className:"movie-link",children:t.beat.name})]})]})]},`${t.title_id}-${t.won}-${g}`))})})})]})]})]})]})};export{z as default};
2//# sourceMappingURL=MovieBattleListPage-B5JvdaF6.js.map

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.