PageSourceSearch

https://cybershoke.net/assets/NewYearGiveaway-DnAaU_Bb.js

js cybershoke.net collected 2026-10-04 05:23:18 UTC 28,797 bytes, 777 lines download raw bytes

1import{r as g,j as e,i as A}from"./vendor-react-BGN68_Lp.js";import{g as t}from"./vendor-styled-pkIKgjgv.js";import{c as m,g as o,ad as K,N as T,fe as J,ff as Q,al as z,dU as U,dR as X,fg as ee,dk as ie,fh as te,dK as ne,e0 as se,dN as D}from"./index-uear5Vpj.js";import{a as N,u as w}from"./vendor-redux-D8sX5Eqv.js";import{u as k}from"./vendor-i18n-BWleq_Sd.js";import{u as ae}from"./useHorizontalScroll-CeR4nMTb.js";import{T as re}from"./TransparentHeaderWrapper-C-Fzq3DK.js";import"./vendor-socket-DSYo_sTV.js";import"./vendor-router-CYD8mbvC.js";const oe=t.div`
2    display: flex;
3    flex-direction: column;
4    gap: 4px;
5    max-height: 427px;
6    overflow-y: auto;
7    padding-right: 10px;
8`,le=t.div`
9    display: flex;
10    border-radius: 8px;
11    background: #202636;
12    padding-left: 2px;
13
14    &.success {
15        background: linear-gradient(
16            90deg,
17            rgb(41, 66, 87) 30%,
18            rgb(69, 108, 140) 130%
19        );
20    }
21`,de=t.div`
22    width: 78px;
23    height: 78px;
24    flex-shrink: 0;
25    border-radius: 6px;
26    padding: 8px;
27    display: flex;
28    align-items: center;
29    justify-content: center;
30    margin-block: 2px;
31    overflow: hidden;
32
33    &::before {
34        content: '';
35        width: 100%;
36        height: 100%;
37        position: absolute;
38        top: 0;
39        left: 0;
40        background: -10% -10% / 70%;
41        opacity: 0.2;
42    }
43
44    &.category-1 {
45        background: linear-gradient(300deg, #c641db -75%, #81327e 90%);
46        &::before {
47            background-image: url(${o("/pages/newyear/challenge/challenge_bg_1.png")});
48        }
49    }
50    &.category-2 {
51        background: linear-gradient(300deg, #ffd687 -75%, #d49025 90%);
52        &::before {
53            background-image: url(${o("/pages/newyear/challenge/challenge_bg_2.png")});
54            opacity: 0.4;
55        }
56    }
57    &.category-3 {
58        background: linear-gradient(300deg, #6fc9f9 -75%, #004861 90%);
59        &::before {
60            background-image: url(${o("/pages/newyear/challenge/challenge_bg_3.png")});
61        }
62    }
63    &.category-4 {
64        background: linear-gradient(300deg, #71d4ad -75%, #004c24 90%);
65        &::before {
66            background-image: url(${o("/pages/newyear/challenge/challenge_bg_4.png")});
67            opacity: 0.1;
68        }
69    }
70
71    img {
72        width: 100%;
73    }
74`,ce=t.div`
75    padding: 12px;
76    padding-left: 14px;
77    width: 100%;
78    display: flex;
79    flex-direction: column;
80    justify-content: space-between;
81    gap: 2px;
82
83    & > div {
84        display: flex;
85        align-items: center;
86        justify-content: space-between;
87        gap: 14px;
88    }
89`,pe=t.div`
90    display: flex;
91    align-items: center;
92    gap: 6px;
93    color: #c7d3e2;
94    font-size: 12px;
95    line-height: 130%;
96`,ge=t.div`
97    display: flex;
98    align-items: center;
99    gap: 8px;
100    width: 100%;
101
102    p {
103        color: #c7d3e2;
104        font-size: 14px;
105        font-weight: 600;
106    }
107
108    div {
109        border-radius: 2px;
110        background: rgba(15, 22, 36, 0.74);
111        width: 100%;
112        height: 4px;
113
114        span {
115            border-radius: 2px;
116            background: #b4d7f4;
117            min-width: 17px;
118            height: 4px;
119            display: block;
120            max-width: 100%;
121        }
122    }
123`,b=t.button`
124    border-radius: 5px;
125    border: 1px solid #7ec5ff;
126    padding: 4px 10px;
127    color: #7ec5ff;
128    font-size: 12px;
129    font-weight: 500;
130    background: transparent;
131
132    &.filled {
133        background: #7ec5ff;
134        border: none;
135        color: black;
136    }
137`,xe=t.p`
138    font-family: Roboto;
139    font-weight: 600;
140    font-style: SemiBold;
141    font-size: 14px;
142    line-height: 100%;
143    letter-spacing: 0%;
144    color: rgba(180, 215, 244, 1);
145`,R=t.div`
146    display: flex;
147    align-items: center;
148    gap: 3px;
149    font-size: 15px;
150    font-weight: 900;
151    line-height: 14px;
152
153    img {
154        width: 18px;
155        height: 18px;
156    }
157`,fe=()=>{const i=N(),{t:s}=k(),[r,a]=g.useState(null),l=w(n=>n.auth),d=w(n=>n.giveaway),x=(n,h)=>{r||(a(n),i(h(n)).finally(()=>a(null)))};if(!d)return null;const f=d.user_data.list_challenges;return e.jsx(oe,{className:"blue-scroll",children:f.map((n,h)=>e.jsxs(le,{className:m(n.status_result===2&&"success"),children:[e.jsx(de,{className:m(n.category&&`category-${n.category}`),children:e.jsx("img",{loading:"lazy",src:n.img,alt:"pic"})}),e.jsxs(ce,{children:[e.jsxs("div",{children:[e.jsx(pe,{dangerouslySetInnerHTML:{__html:s(n.name)}}),e.jsxs(R,{children:[`+${n.count_tickets}`,e.jsx("img",{loading:"lazy",src:o("/pages/newyear/icons/mini-tickets.png"),alt:""})]})]}),e.jsxs("div",{children:[n.status_result===2&&e.jsx(xe,{children:s`nyGiveawayAwardReceived`}),n.status_result!==2&&e.jsxs(g.Fragment,{children:[e.jsxs(ge,{children:[e.jsxs("p",{children:[n.progress,"/",n.max_progress]}),e.jsx("div",{children:e.jsx("span",{style:{width:`${n.progress/n.max_progress*100}%`}})})]}),l.isAuth?e.jsxs(g.Fragment,{children:[n.status_result===0&&e.jsx(b,{onClick:()=>x(n.id,J),disabled:r===n.id,children:s`Start`}),n.status_result===1&&e.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[e.jsx(b,{onClick:()=>x(n.id,Q),disabled:r===n.id,children:s`Check`}),n.redirect_url&&e.jsx(he,{url:n.redirect_url,children:e.jsx(b,{className:"filled",children:s`Open_`})})]})]}):e.jsx(b,{onClick:()=>window.location.replace(K("/steam")),children:s`Authorize`})]})]})]})]},h))})},he=({url:i,children:s})=>i.startsWith("http")?e.jsx("a",{href:i,target:"_blank",rel:"noreferrer",children:s}):e.jsx(T,{to:i,children:s}),me=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:e.jsx("path",{d:"M9.3125 15H10.5V10C10.5 4.485 14.7608 0 20 0C25.2393 0 29.5 4.485 29.5 10V15H30.6875C32.6508 15 34.25 16.6817 34.25 18.75V36.25C34.25 38.3183 32.6508 40 30.6875 40H9.3125C7.34917 40 5.75 38.3183 5.75 36.25V18.75C5.75 16.6817 7.34917 15 9.3125 15ZM26.3333 10C26.3333 6.32333 23.4928 3.33333 20 3.33333C16.5072 3.33333 13.6667 6.32333 13.6667 10V15H26.3333V10ZM18.4167 27.87V31.6667C18.4167 32.5867 19.1244 33.3333 20 33.3333C20.8756 33.3333 21.5833 32.5867 21.5833 31.6667V27.87C22.5254 27.2917 23.1667 26.2283 23.1667 25C23.1667 23.1617 21.7464 21.6667 20 21.6667C18.2536 21.6667 16.8333 23.1617 16.8333 25C16.8333 26.2283 17.4746 27.2917 18.4167 27.87Z",fill:"#6080FF"})}),ue=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M2.3999 8.00001C2.3999 7.55823 2.75809 7.20001 3.1999 7.20001H12.7999C13.2417 7.20001 13.5999 7.55823 13.5999 8.00001C13.5999 8.44182 13.2417 8.80001 12.7999 8.80001H3.1999C2.75809 8.80001 2.3999 8.44182 2.3999 8.00001Z",fill:"#D5D9E4"})}),we=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M12.7999 7.19999H8.7999V3.19999C8.7999 2.75818 8.44171 2.39999 7.9999 2.39999C7.55812 2.39999 7.1999 2.75818 7.1999 3.19999V7.19999H3.1999C2.75809 7.19999 2.3999 7.55821 2.3999 7.99999C2.3999 8.44181 2.75809 8.79999 3.1999 8.79999H7.1999V12.8C7.1999 13.2418 7.55812 13.6 7.9999 13.6C8.44171 13.6 8.7999 13.2418 8.7999 12.8V8.79999H12.7999C13.2417 8.79999 13.5999 8.44181 13.5999 7.99999C13.5999 7.55821 13.2417 7.19999 12.7999 7.19999Z",fill:"#D5D9E4"})}),be=()=>e.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M14.4446 8.4957V5.94013C14.4446 4.80673 13.9764 3.71975 13.1429 2.91831C12.3094 2.11687 11.1789 1.66663 10.0002 1.66663C8.82142 1.66663 7.69095 2.11687 6.85746 2.91831C6.02396 3.71975 5.5557 4.80673 5.5557 5.94013V8.4957C4.24016 9.12815 3.3335 10.4188 3.3335 11.9231V14.4871C3.33509 15.5067 3.75703 16.4841 4.50683 17.2051C5.25663 17.926 6.27312 18.3318 7.3335 18.3333H12.6668C13.7272 18.3318 14.7437 17.926 15.4935 17.2051C16.2433 16.4841 16.6652 15.5067 16.6668 14.4871V11.9231C16.6668 10.4188 15.7602 9.12815 14.4446 8.4957ZM10.889 13.6324C10.889 13.8591 10.7954 14.0765 10.6287 14.2368C10.462 14.3971 10.2359 14.4871 10.0002 14.4871C9.76442 14.4871 9.53833 14.3971 9.37163 14.2368C9.20494 14.0765 9.11129 13.8591 9.11129 13.6324V12.7777C9.11129 12.5511 9.20494 12.3337 9.37163 12.1734C9.53833 12.0131 9.76442 11.9231 10.0002 11.9231C10.2359 11.9231 10.462 12.0131 10.6287 12.1734C10.7954 12.3337 10.889 12.5511 10.889 12.7777V13.6324ZM12.6668 8.07691H7.3335V5.94013C7.3335 5.26009 7.61445 4.6079 8.11454 4.12704C8.61464 3.64618 9.29292 3.37604 10.0002 3.37604C10.7074 3.37604 11.3857 3.64618 11.8858 4.12704C12.3859 4.6079 12.6668 5.26009 12.6668 5.94013V8.07691Z",fill:"#202222"})}),ye=t.div`
158    margin-top: 20px;
159`,je=t.div`
160    display: flex;
161    flex-direction: row;
162    gap: 19px;
163    overflow-x: auto;
164    padding-bottom: 8px;
165`,j=t.div`
166    height: 235px;
167    border-radius: 5px 5px 0 0;
168    background: linear-gradient(180deg, rgba(25, 29, 40, 0) 0%, #1c2237 100%);
169    padding: 16px 12px 28px 12px;
170`,v=t.div`
171    border-top: 2px solid #38426c;
172    background: linear-gradient(180deg, #1b2136 0%, rgba(25, 29, 40, 0) 83.33%);
173    padding: 24px 14px 0 14px;
174    height: 66px;
175
176    a {
177        display: flex;
178        align-items: center;
179        justify-content: center;
180        gap: 10px;
181
182        & > img {
183            width: 34px;
184            height: 34px;
185            border-radius: 50%;
186        }
187    }
188`,ve=t.p`
189    color: #d5d9e4;
190    font-size: 12px;
191    font-weight: 500;
192    margin-bottom: 3px;
193`,ke=t.div`
194    display: flex;
195    align-items: center;
196    gap: 3px;
197    color: #7a9aff;
198    font-size: 13px;
199    font-weight: 700;
200
201    img {
202        width: 14px;
203        height: 14px;
204    }
205`,y=t.div`
206    flex: 1;
207    display: flex;
208    align-items: center;
209    justify-content: center;
210
211    img {
212        max-width: 80%;
213        padding: 8px;
214    }
215`,G=t.div`
216    display: flex;
217    flex-direction: column;
218    gap: 2px;
219    background: url(${o("/pages/newyear/bg_skin_dots.png")})
220        0 0 / 120%;
221`,M=t.p`
222    font-size: 12px;
223`,I=t.h3`
224    font-size: 15px;
225    font-weight: 700;
226    line-height: 18px;
227    margin: 1px 0 10px 0;
228    text-transform: none;
229    text-align: left;
230`,H=t.div`
231    display: flex;
232    align-items: center;
233    gap: 5px;
234    color: #d5d9e4;
235    font-size: 12px;
236    font-weight: 500;
237
238    img {
239        width: 16px;
240        height: 16px;
241    }
242`,S=t.div`
243    position: absolute;
244    top: 8px;
245    left: 8px;
246    border-radius: 2px;
247    background: rgba(145, 175, 253, 0.12);
248    padding: 3px 7px;
249    color: #d5d9e4;
250    font-size: 12px;
251    font-weight: 700;
252`,$=t.div`
253    border-radius: 3px;
254    background: #38426c;
255    padding: 3px 12px;
256    font-size: 11px;
257    font-weight: 600;
258    line-height: 14px;
259    position: absolute;
260    top: 0;
261    left: 50%;
262    transform: translate(-50%, -50%);
263    white-space: nowrap;
264`,V=t.div`
265    position: absolute;
266    right: 12px;
267    top: 12px;
268    display: flex;
269    align-items: center;
270    gap: 5px;
271    color: #ff9838;
272    font-size: 14px;
273    font-weight: 700;
274
275    img {
276        width: 16px;
277    }
278`,_=t.img`
279    position: absolute;
280    width: 100%;
281    object-fit: cover;
282    opacity: 20%;
283    display: none;
284`,W=t.div`
285    min-width: 240px;
286    flex: 1;
287    scroll-snap-align: start;
288
289    &.active {
290        ${_} {
291            display: block;
292        }
293
294        ${$} {
295            background: #6080ff;
296        }
297
298        ${v} {
299            border-color: #6080ff;
300            background: linear-gradient(
301                180deg,
302                rgba(96, 128, 255, 0.24) 0%,
303                rgba(96, 128, 255, 0) 83.33%
304            );
305        }
306
307        ${j} {
308            background:
309                linear-gradient(
310                    170deg,
311                    rgba(8, 11, 17, 0) 56.02%,
312                    rgba(8, 11, 17, 0.9) 128.89%
313                ),
314                linear-gradient(
315                    169deg,
316                    rgba(62, 79, 168, 0) 5.09%,
317                    rgba(96, 128, 255, 0.9) 137.16%
318                ),
319                linear-gradient(
320                    187deg,
321                    rgba(8, 11, 17, 0) -15.32%,
322                    rgba(8, 11, 17, 0.9) 113.92%
323                );
324        }
325
326        ${S} {
327            background: #6080ff;
328            color: #fff;
329        }
330    }
331
332    &.notStarted {
333        user-select: none;
334
335        ${v} {
336            border-top: 2px solid #38426c;
337            background: linear-gradient(
338                180deg,
339                rgba(27, 33, 54, 0.3) 0%,
340                rgba(25, 29, 40, 0) 83.33%
341            );
342        }
343
344        ${j} {
345            background: linear-gradient(
346                180deg,
347                rgba(25, 29, 40, 0) 0%,
348                rgba(28, 34, 55, 0.32) 100%
349            );
350            opacity: 0.1;
351        }
352
353        ${y} {
354            filter: grayscale(1);
355        }
356
357        ${$} {
358            display: none;
359        }
360    }
361`,_e=t.div`
362    position: absolute;
363    left: 50%;
364    top: calc(50% - 33px);
365    transform: translate(-50%, -50%);
366    display: flex;
367    align-items: center;
368    flex-direction: column;
369    gap: 12px;
370    color: #6080ff;
371    font-size: 14px;
372    font-weight: 500;
373
374    svg {
375        width: 40px;
376    }
377`,Ce=()=>{const i=w(l=>l.giveaway.raffle_skinsfall_list),s=i?.findIndex(l=>l.is_active),r=g.useRef(),a=g.useRef();return ae(r),g.useEffect(()=>{const l=r.current,d=a.current;if(s===-1||!l||!d)return;const x=l.clientWidth,f=l.scrollLeft,n=d.offsetLeft,h=d.offsetWidth,u=n-x/2+h/2-f;l.scrollTo({left:u,behavior:"smooth"})},[s]),i?e.jsx(ye,{children:e.jsx(je,{className:"blue-x-scroll",ref:r,children:i.map((l,d)=>e.jsx(Se,{index:d,giveaway:l,ref:d===s?a:null},d))})}):null},ze=["knife","usp","ak47","awp","negev","deagle","p90","aug","m4a4","ssg","glock","ak47","knife","p250","m4a1s","awp","famas","deagle","tec9","xm1014","awp","p90","ssg","m4a4"],L=(i,s="Europe/Moscow")=>new Date(i.toLocaleString("en-US",{timeZone:s})),Se=g.forwardRef(({giveaway:i,index:s},r)=>{const{t:a,i18n:l}=k(),d=c=>U(c,l.language,{day:"numeric",month:"long"}),x=Math.floor(Date.now()/1e3),f=i.is_active,n=i.unixtime_start<x,h=g.useMemo(()=>{if(i.unixtime_end>Date.now()/1e3)return null;if(i.user_status===2)return a`nyGiveawayYouWon`;if(!i.is_active)return a`nyFinishedGiveaway`;if(i.is_active&&i.user_status===1)return a`youAreIn`;if(i.is_active)return a`nyActiveGiveaway`},[i,a]);return n?e.jsxs(W,{className:m(f&&"active"),ref:r,children:[e.jsx(_,{src:o("/pages/newyear/bg_active_snow.png")}),e.jsxs(j,{children:[e.jsx(S,{children:s+1}),e.jsxs(V,{children:[z(i.item_data.price),e.jsx("img",{loading:"lazy",src:o("/img/general/coin1.png"),alt:""})]}),e.jsx(y,{children:e.jsx("img",{loading:"lazy",src:i.item_data.img,alt:""})}),e.jsxs(G,{children:[e.jsx(M,{children:i.item_data.name.split(" | ")[0]}),e.jsx(I,{children:i.item_data.name.split(" | ")[1]}
377),e.jsxs(H,{children:[e.jsx("img",{loading:"lazy",src:o("/pages/newyear/icons/calendar.svg"),alt:""}),d(new Date(i.unixtime_end*1e3))]})]})]}),e.jsxs(v,{children:[h&&e.jsx($,{children:h}),i.winner?.steamid64&&e.jsxs(T,{to:`/profile/${i.winner.steamid64}`,children:[e.jsx("img",{loading:"lazy",src:i.winner.avatar,alt:""}),e.jsxs("div",{children:[e.jsx(ve,{className:"limited-length",children:i.winner.name}),e.jsxs(ke,{children:[i.winner.count_tickets,e.jsx("img",{loading:"lazy",src:o("/pages/newyear/icons/mini-tickets.png"),alt:""})]})]})]})]})]}):e.jsxs(W,{className:"notStarted",ref:r,children:[e.jsxs(_e,{children:[e.jsx(me,{}),d(L(new Date(i.unixtime_start*1e3)))]}),e.jsxs(j,{children:[e.jsx(S,{children:s+1}),i.item_data?e.jsxs(g.Fragment,{children:[e.jsxs(V,{children:[z(i.item_data.price),e.jsx("img",{loading:"lazy",src:o("/img/general/coin1.png"),alt:""})]}),e.jsx(y,{children:e.jsx("img",{loading:"lazy",src:i.item_data.img,alt:""})}),e.jsxs(G,{children:[e.jsx(M,{children:i.item_data.name.split(" | ")[0]}),e.jsx(I,{children:i.item_data.name.split(" | ")[1]}
377),e.jsxs(H,{children:[e.jsx("img",{loading:"lazy",src:o("/pages/newyear/icons/calendar.svg"),alt:""}),d(L(new Date(i.unixtime_start*1e3)))]})]})]}):e.jsx(y,{children:e.jsx("img",{loading:"lazy",style:{height:"72px",marginTop:"32px",transform:"scale(-1, 1) rotate(-10deg)"},src:o(`/img/weapons_new/${ze[s]}.svg`),alt:""})})]}),e.jsx(v,{})]})}),$e=t.div`
378    display: grid;
379    grid-template-columns: 1fr 272px;
380    gap: 2px;
381
382    @media (max-width: 1300px) {
383        grid-template-columns: repeat(2, 1fr);
384    }
385`,Te=t.div`
386    border-radius: 6px 0 0 6px;
387    background:
388        linear-gradient(
389            170deg,
390            rgba(8, 11, 17, 0) 56.02%,
391            rgba(8, 11, 17, 0.9) 128.89%
392        ),
393        linear-gradient(
394            169deg,
395            rgba(62, 79, 168, 0) 5.09%,
396            rgba(96, 128, 255, 0.9) 137.16%
397        ),
398        linear-gradient(
399            187deg,
400            rgba(8, 11, 17, 0) -15.32%,
401            rgba(8, 11, 17, 0.9) 113.92%
402        );
403    padding: 20px;
404    display: flex;
405    flex-direction: column;
406    align-items: flex-start;
407    gap: 20px;
408
409    ${_} {
410        display: block;
411        width: 70%;
412        left: calc(50% - 35%);
413    }
414`,Ne=t.div`
415    border-radius: 0 6px 6px 0;
416    background:
417        linear-gradient(
418            170deg,
419            rgba(8, 11, 17, 0) 56.02%,
420            rgba(8, 11, 17, 0.9) 128.89%
421        ),
422        linear-gradient(
423            169deg,
424            rgba(62, 79, 168, 0) 5.09%,
425            rgba(96, 128, 255, 0.9) 137.16%
426        ),
427        linear-gradient(
428            187deg,
429            rgba(8, 11, 17, 0) -15.32%,
430            rgba(8, 11, 17, 0.9) 113.92%
431        );
432    padding: 12px;
433    display: flex;
434    flex-direction: column;
435    gap: 12px;
436`,De=t.div`
437    height: 368px;
438    display: flex;
439    flex-direction: column;
440    gap: 2px;
441    overflow-y: auto;
442    padding-right: 10px;
443`,Ge=t.div`
444    display: flex;
445    align-items: center;
446
447    img {
448        width: 22px;
449    }
450
451    span {
452        color: #adbcd0;
453        font-size: 14px;
454        font-weight: 700;
455        text-transform: uppercase;
456        margin: 0 8px 0 6px;
457    }
458
459    div {
460        color: #d5d9e4;
461        padding: 3px 7px;
462        border-radius: 2px;
463        background: rgba(145, 175, 253, 0.12);
464        font-size: 12px;
465        font-weight: 700;
466    }
467`,E=t.div`
468    display: flex;
469    align-items: center;
470    gap: 8px;
471
472    img {
473        width: 22px;
474        height: 22px;
475        border-radius: 50%;
476    }
477
478    span {
479        color: #adbcd0;
480        font-size: 12px;
481        font-weight: 700;
482    }
483`,Me=t.div`
484    display: flex;
485    align-items: center;
486    justify-content: space-between;
487    border-radius: 4px;
488    background: rgba(0, 0, 0, 0.24);
489    padding: 12px;
490
491    &.currentUser {
492        background: linear-gradient(0deg, #2a3767 -25%, #202947 100%);
493        border: 1px solid rgba(54, 73, 148, 1);
494
495        ${E} span {
496            color: rgba(191, 213, 255, 1);
497        }
498    }
499`,Ie=t.div`
500    width: 100%;
501    background: url(${o("/pages/newyear/bg_skin_dots.png")})
502        0 0 / 100%;
503`,He=t.div`
504    width: 100%;
505`,P=t.button`
506    border-radius: 6px;
507    background: #ffc860;
508    height: 42px;
509    padding: 6px 20px;
510    width: 100%;
511    display: flex;
512    flex-direction: row;
513    align-items: center;
514    justify-content: center;
515    gap: 6px;
516
517    p {
518        color: #13131b;
519        font-size: 13px;
520        font-weight: 600;
521    }
522
523    svg {
524        width: 20px;
525        height: 20px;
526    }
527
528    &.notActive {
529        background: rgba(240, 179, 88, 0.5);
530        cursor: default;
531
532        &:hover {
533            filter: none;
534        }
535    }
536`,Ve=t.div`
537    flex: 1;
538    display: flex;
539    align-items: center;
540    justify-content: center;
541
542    img {
543        max-width: 70%;
544    }
545`,We=t.div`
546    position: absolute;
547    right: 12px;
548    top: 12px;
549    display: flex;
550    align-items: center;
551    gap: 5px;
552    color: #ff9838;
553    font-size: 14px;
554    font-weight: 700;
555
556    img {
557        width: 16px;
558    }
559`,Le=t.div`
560    font-size: 12px;
561`,Pe=t.div`
562    margin: 1px 0 10px 0;
563    font-size: 15px;
564    font-weight: 700;
565    line-height: 18px;
566`,Be=t.div`
567    display: flex;
568    align-items: center;
569    gap: 5px;
570    color: #d5d9e4;
571    font-size: 12px;
572    font-weight: 500;
573
574    img {
575        width: 16px;
576        height: 16px;
577    }
578`,Ae=t.div`
579    border-radius: 6px;
580    background: rgba(145, 175, 253, 0.06);
581    display: flex;
582    align-items: center;
583    justify-content: space-between;
584    margin-bottom: 10px;
585
586    button {
587        border-radius: 6px;
588        background: rgba(145, 175, 253, 0.12);
589        width: 32px;
590        height: 32px;
591        display: flex;
592        align-items: center;
593        justify-content: center;
594
595        svg {
596            width: 16px;
597            height: 16px;
598        }
599
600        &.disabled {
601            cursor: default;
602            opacity: 0.5;
603        }
604    }
605
606    div {
607        display: flex;
608        align-items: center;
609        gap: 6px;
610        color: #ecf1f8;
611        font-size: 14px;
612
613        img {
614            width: 18px;
615            height: 18px;
616        }
617    }
618`,Ue=t.div`
619    position: absolute;
620    left: 8px;
621    top: 8px;
622    border-radius: 2px;
623    background: #6080ff;
624    padding: 3px 7px;
625    color: #fff;
626    font-size: 12px;
627    font-weight: 700;
628`,Re=({index:i})=>{const s=N(),{t:r}=k(),[a,l]=g.useState(1),[d,x]=g.useState(!1),f=w(p=>p.auth),n=w(p=>p.giveaway.raffle_skinsfall_list),h=w(p=>p.giveaway.user_data.list_tickets),c=n[i];if(!c)return null;const u=h?.filter(p=>!p.is_use).length||0,F=h?.filter(p=>p?.id_skinsfall_season===c?.id_skinsfall_season),Z=()=>{a<1||u<a||d||(x(!0),s(ee(c.id_skinsfall_season,a)).finally(()=>x(!1)),l(1))},q=()=>l(p=>Math.max(1,p-1)),Y=()=>l(p=>Math.max(1,Math.min(u,p+1)));return e.jsxs($e,{children:[e.jsxs(Te,{children:[e.jsx(_,{src:o("/pages/newyear/bg_active_snow.png")}),e.jsx(Ue,{children:`${X(r`Day`)} ${i+1}`}),e.jsxs(We,{children:[z(c?c.item_data.price:0),e.jsx("img",{loading:"lazy",src:o("/img/general/coin1.png"),alt:""})]}),e.jsx(Ve,{children:e.jsx("img",{loading:"lazy",src:c.item_data.img,alt:""})}),e.jsxs(Ie,{children:[e.jsx(Le,{children:c.item_data.name.split(" | ")[0]}),e.jsx(Pe,{children:c.item_data.name.split(" | ")[1]}),e.jsxs(Be,{children:[c.user_status===0&&e.jsxs(g.Fragment,{children:[e.jsx("img",{loading:"lazy",src:o("/pages/newyear/icons/info.svg"),alt:""}),r`nyGiveawayUseTicketsToParticipate`]}),c.user_status===1&&e.jsxs(g.Fragment,{children:[e.jsx("img",{loading:"lazy",src:o("/pages/newyear/icons/check.svg"),alt:""}),r`youAreIn`]})]})]}),e.jsxs(He,{children:[e.jsxs(Ae,{children:[e.jsx("button",{className:m(a-1<1&&"disabled"),onClick:q,children:e.jsx(ue,{})}),e.jsxs("div",{children:[a,e.jsx("img",{loading:"lazy",src:o("/pages/newyear/icons/mini-tickets.png"),alt:""})]}),e.jsx("button",{className:m(a+1>u&&"disabled"),onClick:Y,children:e.jsx(we,{})})]}),u<1?e.jsx(A,{placement:"top",content:r`nyGiveawayButtonUnavaliableTippy`,children:e.jsxs(P,{className:"notActive",children:[e.jsx("p",{children:r`nyGiveawayNotEnoughTickets`}),e.jsx(be,{})]})}):e.jsx(P,{className:m(u<1&&"notActive"),onClick:Z,disabled:d,children:e.jsx("p",{children:r`BecomeParticipator`})})]})]}),e.jsxs(Ne,{children:[e.jsxs(Ge,{children:[e.jsx("img",{loading:"lazy",src:o("/pages/newyear/icons/players.svg"),alt:""}),e.jsx("span",{children:r`users`}),e.jsx("div",{children:c.count_players})]}),e.jsxs(De,{className:"blue-scroll",children:[c&&f.isAuth&&e.jsx(B,{player:f,t
628icketsCount:F.length,currentUser:!0}),c.players_season&&c.players_season.map((p,O)=>p.steamid64!==f?.steamid64&&e.jsx(B,{player:p,ticketsCount:p.count_tickets},O))]})]})]})},B=({player:i,ticketsCount:s,currentUser:r})=>e.jsx(T,{to:`/profile/${i.steamid64}`,children:e.jsxs(Me,{className:m(r&&"currentUser"),children:[e.jsxs(E,{children:[e.jsx("img",{loading:"lazy",src:i.avatar,alt:""}),e.jsx("span",{className:"limited-length",children:i.name})]}),e.jsxs(R,{children:[s,e.jsx("img",{loading:"lazy",src:o("/pages/newyear/icons/mini-tickets.png"),alt:""})]})]})}),Ee=t.div`
629    padding-top: 78px;
630    background: #101119;
631    margin-bottom: 24px;
632
633    @media (max-width: 1000px) {
634        padding-top: 24px;
635    }
636`,Fe=t.h1`
637    display: flex;
638    align-items: center;
639    gap: 10px;
640    color: #fff;
641    font-size: 26px;
642    font-weight: 700;
643    text-transform: none;
644    line-height: 36px;
645
646    img {
647        width: 34px;
648    }
649
650    @media (max-width: 1000px) {
651        font-size: 20px;
652
653        img {
654            width: 30px;
655        }
656    }
657`,Ze=t.h2`
658    margin-top: 10px;
659    color: #c1c8da;
660    font-size: 13px;
661    font-weight: 500;
662    line-height: 140%;
663`,qe=t.div`
664    display: grid;
665    grid-template-columns: 1fr 540px;
666    gap: 10px;
667    margin: 20px 0;
668
669    & > div {
670        border-radius: 12px;
671        background: rgba(0, 0, 0, 0.24);
672        padding: 12px;
673    }
674
675    &.full {
676        grid-template-columns: 1fr;
677    }
678
679    @media (max-width: 1300px) {
680        grid-template-columns: repeat(2, 1fr);
681    }
682
683    @media (max-width: 1150px) {
684        grid-template-columns: 1fr;
685        overflow-x: auto;
686
687        & > div {
688            min-width: 440px;
689        }
690    }
691`,Ye=t.div`
692    max-width: 1200px;
693    width: 90%;
694    margin: 0 auto;
695
696    @media (max-width: 1000px) {
697        width: 100vw;
698        padding: 0 12px;
699    }
700`,Oe=t.p`
701    color: #c7d3e2;
702    font-size: 14px;
703    padding-right: 24px;
704`,Ke=t.div`
705    border-radius: 0 8px 8px 0;
706    border-left: 3px solid #6080ff;
707    background: linear-gradient(90deg, rgba(37, 49, 93, 0) 0%, #25315d 100%);
708    display: flex;
709    height: 52px;
710    padding-left: 24px;
711    margin-bottom: 12px;
712
713    & > div {
714        display: flex;
715        justify-content: space-between;
716        align-items: center;
717        z-index: 1;
718        width: 100%;
719    }
720
721    & > img {
722        position: absolute;
723        right: 0;
724        top: 0;
725        height: 100%;
726    }
727
728    h3 {
729        text-transform: none;
730        font-size: 18px;
731        font-weight: 700;
732        line-height: 140%;
733    }
734
735    @media (max-width: 1000px) {
736        height: 58px;
737        padding-left: 16px;
738        padding-block: 8px;
739
740        h3 {
741            font-size: 16px;
742        }
743    }
744`,Je=t.img`
745    position: absolute;
746    top: 0;
747    left: 0;
748    width: 100%;
749`,Qe=t.div`
750    display: flex;
751    align-items: center;
752    gap: 6px;
753    padding-right: 120px;
754    height: 100%;
755
756    p {
757        color: #7a9aff;
758        font-size: 22px;
759        font-weight: 700;
760    }
761
762    img {
763        position: absolute;
764        bottom: 0;
765        right: 0;
766        width: 109px;
767    }
768
769    @media (max-width: 1000px) {
770        padding-right: 24px;
771
772        img {
773            width: 22px;
774            position: relative;
775        }
776    }
777`,C=({children:i,text:s})=>e.jsxs(Ke,{children:[e.jsx("img",{loading:"lazy",src:o("/pages/newyear/snow-bg.png"),alt:""}),e.jsxs("div",{children:[e.jsx("h3",{children:s}),i]})]}),di=()=>{const i=N(),{t:s,i18n:r}=k(),a=w(n=>n.giveaway),l=ie();g.useEffect(()=>{i(te())},[]);const d=n=>U(n,r.language,{day:"numeric",month:"long"}),x=a?.raffle_skinsfall_list?a.raffle_skinsfall_list.findIndex(n=>n.is_active):-1,f=a?.raffle_data?.unixtime_end?d(a?.raffle_data?.unixtime_end*1e3):null;return e.jsxs(re,{children:[e.jsx(ne,{title:`${s("nyGiveawayTitle")} - CYBERSHOKE`,descr:s("nyGiveawayDescription")}),e.jsxs(Ee,{children:[e.jsx(Je,{src:o("/pages/newyear/bg.jpg"),alt:""}),e.jsxs(Ye,{children:[e.jsxs(Fe,{children:[e.jsx("img",{loading:"lazy",src:o("/pages/newyear/icons/guns.svg"),alt:""}),s`nyGiveawayTitle`]}),e.jsx(Ze,{children:s`nyGiveawayDescription`}),e.jsxs(qe,{className:m(x===-1&&"full"),children:[x!==-1&&e.jsxs("div",{children:[e.jsx(C,{text:s`nyActiveGiveaway`,children:a?.raffle_skinsfall_list?.[x]?.unixtime_end&&e.jsxs(Oe,{children:[s`nyGiveawayResultsIn`," ",e.jsx(Xe,{timeUntil:a?.raffle_skinsfall_list[x].unixtime_end})]})}),e.jsx(Re,{index:x})]}),e.jsxs("div",{children:[e.jsx(C,{text:s`nyGiveawayCompleteTasksForTickets`,children:e.jsxs(Qe,{children:[e.jsx(A,{placement:"top",content:s`nyGiveawayCurrentTickets`,children:e.jsx("p",{children:a?.user_data?.list_tickets?.filter(n=>!n.is_use).length||0})}),e.jsx("img",{loading:"lazy",src:o(`/pages/newyear/${l?"icons/mini-tickets.png":"big-tickets.png"}`),alt:""})]})}),e.jsx(fe,{})]})]}),e.jsxs("div",{children:[e.jsx(C,{text:`${s("nyGiveawayDaily")} ${f}`}),e.jsx(Ce,{list:a?a.raffle_skinsfall_list:[]})]}),e.jsx(se,{style:{width:"100%",maxWidth:"100%"},list:[{question:"newyear1",answer:"newyear1text"},{question:"newyear3",answer:"newyear3text"},{question:"newyear2",answer:"newyear2text"},{question:"newyear4",answer:"newyear4text"},{question:"newyear5",answer:"newyear5text"}]})]})]})]})},Xe=({timeUntil:i})=>{const[s,r]=g.useState(null);return g.useEffect(()=>{if(!i)return;r(D(i));const a=setInterval(()=>{r(D(i))},1e3);return()=>clearInterval(a)},[i]),e.jsx(e.Fragment,{children:s})};export{di 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.