PageSourceSearch

https://cybershoke.net/assets/Vote-By8UIbSV.js

js cybershoke.net collected 2026-10-04 05:22:31 UTC 11,302 bytes, 197 lines download raw bytes

1import{r,j as e}from"./vendor-react-BGN68_Lp.js";import{p as V}from"./pickemApi-BdXgbqao.js";import{L as w}from"./AwardListTitle.styles-csTcIf4F.js";import{a as _,u as j}from"./vendor-redux-D8sX5Eqv.js";import{g as b,x as Z,b as z,b4 as P}from"./index-uear5Vpj.js";import{g as a}from"./vendor-styled-pkIKgjgv.js";import{u as S}from"./vendor-i18n-BWleq_Sd.js";import"./vendor-socket-DSYo_sTV.js";import"./vendor-router-CYD8mbvC.js";const T=n=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",...n},r.createElement("g",{clipPath:"url(#clip0_34919_361)"},r.createElement("path",{d:"M11.5008 3.18406V4.84806H8.43678C7.74879 4.84806 7.12479 5.08006 6.62879 5.48806H6.62078C6.33278 5.48806 6.10878 5.25606 6.11678 4.96806V3.18406C6.11678 2.89606 6.34079 2.66406 6.62879 2.66406H10.9808C11.2688 2.66406 11.5008 2.89606 11.5008 3.18406Z",fill:"currentColor"}),r.createElement("path",{d:"M14.1809 4.00815C14.1809 4.00815 14.2049 4.10415 14.1809 4.14415L14.1089 4.25615C13.9329 4.52015 13.7009 4.74415 13.4369 4.92815C13.2529 4.88015 13.0609 4.85615 12.8689 4.84815H12.1809V2.80815C12.1809 2.80815 12.2209 2.73615 12.2609 2.74415L12.7249 2.88815C13.2929 3.05615 13.7889 3.41615 14.1089 3.90415L14.1809 4.00815Z",fill:"currentColor"}),r.createElement("path",{d:"M3.82888 4.47212H0.396883C0.180883 4.47212 0.00488281 4.29612 0.00488281 4.07212C0.00488281 3.84812 0.180883 3.67212 0.404883 3.67212H3.82888C4.05288 3.67212 4.22888 3.84812 4.22888 4.07212C4.22888 4.29612 4.05288 4.47212 3.82888 4.47212Z",fill:"currentColor"}),r.createElement("path",{d:"M11.5008 11.1521V12.8161C11.5008 13.1041 11.2688 13.3361 10.9808 13.3361H6.62878C6.34078 13.3361 6.10878 13.1041 6.11678 12.8161V11.0321C6.11678 10.7441 6.33278 10.5201 6.62078 10.5121H6.62878C7.12478 10.9201 7.74878 11.1521 8.43678 11.1521H11.5008Z",fill:"currentColor"}),r.createElement("path",{d:"M14.1809 11.856C14.1809 11.856 14.2049 11.952 14.1809 11.992L14.1089 12.104C13.7889 12.584 13.2929 12.944 12.7249 13.112L12.2609 13.256C12.2609 13.256 12.1809 13.24 12.1809 13.2V11.152H12.8689C13.0609 11.144 13.2449 11.12 13.4289 11.072C13.6929 11.256 13.9249 11.488 14.1009 11.752L14.1729 11.856H14.1809Z",fill:"currentColor"}),r.createElement("path",{d:"M3.82882 12.3281H0.396826C0.172826 12.3281 -0.00317383 12.1521 -0.00317383 11.9281C-0.00317383 11.7041 0.172826 11.5281 0.396826 11.5281H3.82082C4.04482 11.5281 4.22082 11.7041 4.22082 11.9281C4.22082 12.1521 4.04482 12.3281 3.82082 12.3281H3.82882Z",fill:"currentColor"}),r.createElement("path",{d:"M14.4928 6.86412C14.4928 6.86412 14.4848 6.81612 14.4768 6.79212L14.0688 6.67212H14.0528C14.0528 6.67212 13.9888 6.69612 13.9888 6.72812V9.27215C13.9888 9.27215 14.0208 9.33615 14.0528 9.33615C14.0528 9.33615 14.0608 9.32815 14.0688 9.32815L14.4768 9.20815C14.4768 9.20815 14.4768 9.16015 14.4848 9.13615C14.4928 9.05615 14.5008 8.97615 14.5008 8.89615V7.10412C14.5008 7.02412 14.4928 6.94412 14.4848 6.86412H14.4928Z",fill:"currentColor"}),r.createElement("path",{d:"M13.3088 7.10404V8.89607C13.3088 9.16807 13.0848 9.40007 12.8048 9.40807H8.42881C8.14081 9.40007 7.9248 9.17607 7.9248 8.89607V7.10404C7.9248 6.82404 8.14081 6.60004 8.42881 6.59204H12.8048C13.0848 6.60004 13.3088 6.83204 13.3088 7.10404Z",fill:"currentColor"}),r.createElement("path",{d:"M15.9888 8.07212L15.9168 8.17612C15.8528 8.27212 15.7888 8.36012 15.7088 8.44012C15.4048 8.79212 14.9888 9.04815 14.5328 9.19215L14.4848 9.20815L14.0768 9.32815L14.0608 9.33615C14.0288 9.33615 13.9968 9.30415 13.9968 9.27215V6.72812C13.9968 6.72812 14.0288 6.67212 14.0608 6.67212H14.0768L14.4848 6.79212L14.5328 6.80812C14.9968 6.95212 15.4048 7.20812 15.7088 7.56012C15.7888 7.64012 15.8528 7.72812 15.9168 7.82412L15.9888 7.93612C15.9888 7.93612 16.0208 8.02412 15.9888 8.07212Z",fill:"currentColor"}),r.createElement("path",{d:"M6.40482 8.0001C6.40482 8.2241 6.22882 8.4001 6.01282 8.4001H2.86082C2.63682 8.4001 2.46082 8.2241 2.46082 8.0001C2.46082 7.7761 2.63682 7.6001 2.86082 7.6001H6.01282C6.22882 7.6001 6.40482 7.7761 6.40482 8.0001Z",fill:"currentColor"})),r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_34919_361"},r.createElement("rect",{width:16,height:16,fill:"white"})))),I=a.div`
2    background: #161b25;
3    border-radius: 12px;
4    padding: 40px;
5    width: 762px;
6`,F=a.h2`
7    width: 60%;
8    margin: 0 auto;
9    margin-bottom: 24px;
10    font-weight: 700;
11    font-size: 24px;
12    color: #ecf1f8;
13    text-align: center;
14`,N=a.input`
15    height: 48px;
16    background: #1a202d;
17    border-radius: 6px;
18    padding-left: 40px;
19    margin-bottom: 12px;
20
21    &,
22    &::placeholder {
23        font-weight: 400;
24        font-size: 14px;
25        color: #778597;
26    }
27`,d=a.div`
28    display: flex;
29    flex-direction: column;
30    gap: 8px;
31    max-height: 400px;
32    overflow: auto;
33    width: calc(100% + 9px);
34    padding-right: 9px;
35
36    ${w} {
37        padding-bottom: 10px;
38    }
39`,p=a.div`
40    display: grid;
41    gap: 14px;
42    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
43
44    @media (max-width: 1000px) {
45        grid-template-columns: 1fr 1fr 1fr;
46    }
47`,h=a.button`
48    height: 166px;
49    background: url(${b("/pages/pickem//card_bg.png")})
50        no-repeat center center / cover;
51    border-radius: 7px;
52    overflow: hidden;
53    display: flex;
54    flex-direction: column;
55    position: relative;
56
57    p {
58        font-weight: 600;
59        font-size: 14px;
60        color: #ffffff;
61        height: 40px;
62        width: 100%;
63        display: flex;
64        align-items: center;
65        justify-content: center;
66        background: rgba(45, 53, 77, 0.95);
67        backdrop-filter: blur(6px);
68        padding: 0 12px;
69    }
70
71    &.active {
72        background: rgba(96, 128, 255, 0.24);
73
74        p {
75            color: #6080ff;
76        }
77    }
78`,U=a.div`
79    height: 100%;
80    display: flex;
81    align-items: center;
82    justify-content: center;
83    width: 100%;
84
85    img {
86        width: 95%;
87        object-fit: cover;
88        height: 100%;
89        image-rendering: auto;
90    }
91`,f=a.div`
92    height: 100%;
93    display: flex;
94    align-items: center;
95    justify-content: center;
96    width: 100%;
97
98    img {
99        width: 48px;
100        height: 48px;
101        object-fit: contain;
102        image-rendering: auto;
103    }
104`,O=a.img`
105    position: absolute;
106    left: 8px;
107    top: 8px;
108    width: 24px;
109    height: 24px;
110    object-fit: contain;
111    z-index: 1;
112`,A=a(f)`
113    /* overflow: hidden; */
114
115    img {
116        height: 100%;
117        width: auto;
118        position: absolute;
119        left: 50%;
120        top: 50%;
121        transform: translate(-50%, -50%) scale(1.2);
122    }
123`,B=a.svg`
124    position: absolute;
125    left: 17px;
126    top: 50%;
127    transform: translateY(-50%);
128`,Y=a.div`
129    position: absolute;
130    right: 0px;
131    bottom: 35px;
132    z-index: 1;
133
134    svg {
135        display: block;
136    }
137
138    div {
139        border-radius: 5px;
140        position: absolute;
141        z-index: 1;
142        right: 0;
143        top: 50%;
144        transform: translateY(-50%);
145        padding: 4px;
146        min-width: 50px;
147        display: flex;
148        justify-content: center;
149        align-items: center;
150        gap: 3px;
151        font-size: 13px;
152        font-weight: 700;
153
154        img {
155            width: 16px;
156        }
157    }
158
159    &.green div {
160        color: #62b34e;
161        background: linear-gradient(
162            90deg,
163            rgba(101, 217, 72, 0.3) 0%,
164            rgba(54, 115, 38, 0.3) 100%
165        );
166
167        path {
168            fill: #62b34e;
169        }
170    }
171
172    &.yellow div {
173        background: linear-gradient(
174            90deg,
175            rgba(217, 144, 72, 0.3) 0%,
176            rgba(115, 84, 38, 0.3) 100%
177        );
178        color: #ffad33;
179
180        path {
181            fill: #ffad33;
182        }
183    }
184
185    &.red div {
186        color: #ff4d4d;
187        background: linear-gradient(
188            90deg,
189            rgba(217, 72, 72, 0.3) 0%,
190            rgba(115, 38, 38, 0.3) 100%
191        );
192
193        path {
194            fill: #ff4d4d;
195        }
196    }
197`,X=()=>{const{t:n}=S(),C=_(),[g,v]=r.useState(""),{teams:s,maps:y,awardsStageId:H}=j(t=>t.pickem),{type:l,info:x,action:c,availableTeams:o,hideSearch:L}=j(t=>t.modals.data.PICKEM_VOTE),k=()=>C(z(null)),u=t=>{C(P({type:l==0?"maps":l==1?"teams":"players",id:x?.id,data:t}))},E=t=>t>=70?"green":t>=40?"yellow":"red",m=t=>{k(),u(t),V.setPickem({id:H,data:{[x?.id]:t}}).then(i=>{i||u()})},M={0:e.jsx(d,{children:e.jsx(p,{children:y.map(t=>e.jsxs(h,{onClick:()=>m(t.id),children:[e.jsx(A,{children:e.jsx("img",{loading:"lazy",src:b(`/img/maps/2/${t.name}.jpg`),alt:""})}),e.jsx("p",{children:t.name})]}))})}),1:e.jsx(d,{style:{maxHeight:"425px"},className:"grey-scroll",children:e.jsx(p,{children:(o.length?o:Object.keys(s)).map(t=>e.jsxs(h,{onClick:()=>m(t),children:[e.jsx(f,{children:e.jsx("img",{loading:"lazy",src:s[t].assets.logo,alt:""})}),e.jsx("p",{children:s[t].name_short})]}))})}),2:e.jsx(d,{className:"grey-scroll",children:(o.length?o:Object.keys(s)).filter(t=>s[t].name?.toLowerCase().includes(g.toLowerCase())||s[t].players.some(i=>i.name?.toLowerCase().includes(g.toLowerCase()))).map(t=>e.jsxs("div",{children:[e.jsxs(w,{children:[e.jsx("p",{children:s[t].name}),e.jsx("span",{})]}),e.jsx(p,{children:s[t].players.filter(i=>i.name).map(i=>e.jsxs(h,{onClick:()=>c?c(i):m(i.steamid64),children:[e.jsxs(Y,{className:E(i.stats.Firepower),children:[e.jsxs("div",{children:[e.jsx(T,{}),i.stats.Firepower]}),e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"54",height:"44",viewBox:"0 0 54 44",fill:"none",children:[e.jsx("path",{d:"M6 6C2.68629 6 0 8.68629 0 12V32C0 35.3137 2.68629 38 6 38H48C51.3137 38 54 40.6863 54 44V0C54 3.31371 51.3137 6 48 6H6Z",fill:"url(#paint0_linear_34919_1986)"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"paint0_linear_34919_1986",x1:"54",y1:"22",x2:"3.00001",y2:"22",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#171C2A"}),e.jsx("stop",{offset:"1",stopColor:"#22283A"})]})})]})]}),e.jsx(O,{src:s[t].assets.logo,alt:""}),e.jsx(U,{children:e.jsx("img",{loading:"lazy",src:i.avatar,alt:""})}),e.jsx("p",{children:i.name})]}))})]}))}),3:e.jsx(d,{style:{maxHeight:"425px"},className:"grey-scroll",children:e.jsx(p,{children:o.map(t=>e.jsxs(h,{onClick:()=>c&&c(Number(t)),children:[e.jsx(f,{children:e.jsx("img",{loading:"lazy",src:s[t].assets.logo,alt:""})}),e.jsx("p",{children:s[t].name_short})]}))})})};return e.jsxs(I,{children:[e.jsx(Z,{}),e.jsx(F,{children:n(x?.name)}
197),l==2&&!L&&e.jsxs("div",{children:[e.jsx(N,{placeholder:n("Search")+"...",value:g,autoFocus:!0,onChange:t=>v(t.target.value)}),e.jsx(B,{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:e.jsx("path",{d:"M1.64527 1.64397C-0.546145 3.83538 -0.546145 7.40001 1.64527 9.59142C3.51341 11.4596 6.38285 11.7285 8.54565 10.4096L11.7498 13.6138C12.2648 14.1287 13.1001 14.1287 13.6122 13.6138C14.1272 13.0988 14.1272 12.2663 13.6122 11.7514L10.4081 8.54149C11.7298 6.37868 11.4609 3.5121 9.58987 1.6411C7.39845 -0.54745 3.83383 -0.54745 1.64527 1.64397ZM7.95346 3.28037C9.24084 4.56776 9.24084 6.66477 7.95346 7.95215C6.66607 9.23954 4.56907 9.23954 3.28168 7.95215C1.9943 6.66477 1.9943 4.56776 3.28168 3.28037C4.56907 1.99299 6.66607 1.99299 7.95346 3.28037Z",fill:"#778597"})})]}),M[l]]})};export{X as default};

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.