PageSourceSearch

https://tomato.gg/assets/index-Bz0EfwtM.js

js tomato.gg collected 2026-10-04 05:20:32 UTC 6,850 bytes, 1 lines download raw bytes

1import{j as e,s as y,K as v,d as i,t as n,M as s,u as b,r as c,a as j,b as p,g as t,R as o,i as I,o as g,e as T,c as u,f as _,h as S}from"./index-D6h6POgK.js";import{C as N}from"./CoachingPromo-D36Pw6Y7.js";import{G as C}from"./GenericPage-LB9a0fml.js";import{T as H}from"./TankFilters2-DEKmmqEJ.js";import{T as M}from"./TankGridItem-BItQuocB.js";import"./ArrowClockwise.es-C8elHHK1.js";import"./identity-CdjJNdvM.js";import"./usePlayerData-XBlMaULM.js";import"./TierFilter-DdnFT0y3.js";import"./FilterButton-G2ptpqqN.js";const E=i.div.withConfig({displayName:"SearchBarButton__InputContainer",componentId:"sc-uclo4i-0"})(["width:500px;height:50px;background-color:",";border-radius:5px;cursor:pointer;padding:4px 10px;color:",";display:flex;align-items:center;justify-content:space-between;transition:background 0.2s;margin-top:20px;&:hover{background-color:",";}@media (max-width:","px){display:none;}"],n.darkgray1,n.gray2,n.gray10,s),G=i.div.withConfig({displayName:"SearchBarButton__LeftSection",componentId:"sc-uclo4i-1"})(["display:flex;align-items:center;gap:10px;font-size:18px;"]);function P(){return e.jsxs(E,{onClick:()=>document.dispatchEvent(new KeyboardEvent("keydown",{key:"/"})),children:[e.jsxs(G,{children:[e.jsx(y,{size:22,weight:"bold"}),"Search players, tanks, or clans"]}),e.jsx("div",{className:"key",children:e.jsx(v,{children:"/"})})]})}const A=i.main.withConfig({displayName:"HomePage__Main",componentId:"sc-1qp9ekg-0"})(["display:flex;flex-direction:column;justify-content:space-between;align-items:center;margin:-70px -10px -10px;@media (max-width:","px){}"],s),q=i.div.withConfig({displayName:"HomePage__HeaderImageInner",componentId:"sc-1qp9ekg-1"})(['background-image:url("/leopard-1.webp");top:0px;left:70px;width:100%;height:400px;background-size:cover;background-repeat:no-repeat;background-position:center;overflow:hidden;@media (max-width:',"px){height:300px;}"],s),z=i.div.withConfig({displayName:"HomePage__HeaderImage",componentId:"sc-1qp9ekg-2"})(["height:100%;width:100%;background:rgba(10,10,10,0.7);"]),B=i.div.withConfig({displayName:"HomePage__Gradient",componentId:"sc-1qp9ekg-3"})(["height:100%;width:100%;background:",";background:linear-gradient( 180deg,hsla(218,15%,8%,0) 0%,hsla(218,15%,8%,0.5018382352941176) 80%,hsla(218,15%,8%,0.7455357142857143) 90%,hsla(218,15%,8%,1) 100% );display:grid;grid-template-columns:1fr 1fr;@media (max-width:","px){display:flex;}"],n.darkgray6,s),R=i.div.withConfig({displayName:"HomePage__TopSection",componentId:"sc-1qp9ekg-4"})(["margin-top:-320px;margin-bottom:150px;display:flex;justify-content:center;align-items:center;color:",";font-size:16px;display:grid;grid-template-columns:1fr 1fr;gap:15px;.rightSection{display:flex;align-items:flex-start;flex-direction:column;gap:20px;.description{font-size:18px;font-weight:500;color:",";}.statsSection{display:flex;align-items:center;justify-content:center;gap:40px;.title{font-size:16px;font-weight:400;color:",";}.value{font-size:32px;font-weight:600;color:white;}.divider{width:1px;height:50px;background:",";}}@media (max-width:","px){display:none;}}@media (max-width:","px){margin-top:-200px;margin-bottom:50px;grid-template-columns:1fr;}"],n.gray3,n.gray1,n.gray3,n.gray9,s,s),L=i.img.withConfig({displayName:"HomePage__LogoImage",componentId:"sc-1qp9ekg-5"})(["width:min(80vw,464px);height:auto;"]),D=i.div.withConfig({displayName:"HomePage__TankGrid",componentId:"sc-1qp9ekg-6"})(["display:flex;flex-wrap:wrap;gap:4px;margin-top:10px;margin-bottom:20px;"]),K=i.div.withConfig({displayName:"HomePage__SectionTitle",componentId:"sc-1qp9ekg-7"})(["font-size:24px;font-weight:600;letter-spacing:-1px;margin-bottom:10px;display:flex;gap:20px;"]),F=i.div.withConfig({displayName:"HomePage__LoadMoreContainer",componentId:"sc-1qp9ekg-8"})(["display:flex;justify-content:center;margin-bottom:20px;"]);i.div.withConfig({displayName:"HomePage__Links",componentId:"sc-1qp9ekg-9"})(["margin-top:30px;display:flex;flex-wrap:wrap;justify-content:center;gap:15px;@media (max-width:","px){width:525px;}@media (max-width:","px){width:250px;}"],s,600);
1function W({tankDetails:d}){const r=b(a=>a.server),[l,f]=c.useState(d),[m,w]=c.useState(48),h=j("download_mod","control"),x=h==="variant_a";return c.useEffect(()=>{p("page-visit",{page:"home"}),globalThis.reviq=globalThis.reviq||[],globalThis.reviq.push(a=>{a.setKv("page","home")})},[]),t({route:o.TANK_PAGE}),t({route:o.MOD_GUIDE}),t({route:o.SERVER_STATS,server:r}),t({route:o.META_INSIGHTS,server:r}),t({route:o.MAPS,server:r}),t({route:o.TANK_PERFORMANCE,server:r,mode:"recent",days:30}),t({route:o.TANK_ECONOMICS,mode:"all",days:30}),t({route:o.MOE,server:r}),t({route:o.GAMES}),e.jsx(e.Fragment,{children:e.jsxs(A,{children:[e.jsx(q,{children:e.jsx(z,{children:e.jsx(B,{})})}),e.jsx(C,{showVideo:!1,showBillboard:!1,children:e.jsxs("div",{style:{padding:15},children:[e.jsxs(R,{children:[e.jsxs("div",{children:[e.jsx(L,{src:"/tomato-gg.webp",alt:"tomato.gg title logo",width:704,height:129,loading:"eager"}),"The premier source for World of Tanks statistics",e.jsx(P,{})]}),e.jsxs("div",{className:"rightSection",children:[e.jsx("div",{className:"description",children:"Get personalized battle analysis with the Tomato.gg mod"}),e.jsxs("div",{className:"statsSection",children:[e.jsxs("div",{className:"statsSectionItem",children:[e.jsx("div",{className:"value",children:"250M+"}),e.jsx("div",{className:"title",children:"Replays uploaded"})]}),e.jsx("div",{className:"divider"}),e.jsxs("div",{className:"statsSectionItem",children:[e.jsx("div",{className:"value",children:"200,000+"}),e.jsx("div",{className:"title",children:"Mod users"})]})]}),e.jsx("a",{"aria-label":x?"Download Tomato.gg from WGMods":"Download Tomato.gg from Wargaming",href:I,target:"_blank",rel:"noreferrer",children:e.jsxs(g,{style:{marginBottom:10},color:"red",variant:"solid",size:"3",onClick:()=>{p("download_mod",{variant:h})},children:[e.jsx(T,{size:20,weight:"fill"}),x?"Download from WGMods":"Download for Windows"]})})]})]}),e.jsx("div",{style:{marginBottom:20},children:e.jsx(N,{location:"home"})}),e.jsxs("div",{children:[e.jsxs(K,{children:["Popular Tanks",e.jsx(u,{to:t({route:o.TANK_PAGE}),children:e.jsx(g,{variant:"ghost",style:{marginTop:5},children:"See All"})})]}),e.jsx(H,{data:d,setFilteredData:f,saveInUrl:!1,disableFilters:{moe:!0,mastery:!0,minBattles:!0,inGarage:!0}}),e.jsx(D,{children:l.toSorted((a,k)=>k.count-a.count).slice(0,m).map(a=>e.jsx(u,{to:t({route:o.TANK_PAGE,server:r,id:a.id,name:a.name}),onClick:()=>{p("tank-selection",{name:a.name,id:a.id,location:"home"})},children:e.jsx(M,{tank:a})},a.id))}),m<l.length&&e.jsx(F,{children:e.jsxs(g,{variant:"soft",size:"2",onClick:()=>w(a=>a+48),children:["Load More (",l.length-m," remaining)"]})})]})]})})]})})}function ae(){const{data:d}=_(S());return d?e.jsx(W,{tankDetails:d}):null}export{ae as component};

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.