PageSourceSearch

https://cybershoke.net/assets/DiscordConnect-IHnMLHjN.js

js cybershoke.net collected 2026-10-04 05:23:04 UTC 9,856 bytes, 68 lines download raw bytes

1import{j as t,r as o}from"./vendor-react-BGN68_Lp.js";import{W as x,T as h,S as p,L as g,a as m,b as w,c as l,d as f}from"./Lite24-DYLjN9V6.js";import{aB as j,a9 as L,g as v}from"./index-uear5Vpj.js";import{g as s}from"./vendor-styled-pkIKgjgv.js";import{u as d}from"./vendor-redux-D8sX5Eqv.js";import{u}from"./vendor-i18n-BWleq_Sd.js";import"./PremiumContent.styles-C1qOahR3.js";import"./LandingsIcons-B-Qxfyf-.js";import"./vendor-socket-DSYo_sTV.js";import"./vendor-router-CYD8mbvC.js";const y=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:t.jsx("path",{d:"M6.97386 12C6.7162 12 6.46906 11.8978 6.28654 11.7158L3.26104 8.68761C3.08924 8.50314 2.99571 8.25916 3.00015 8.00707C3.0046 7.75497 3.10667 7.51444 3.28487 7.33616C3.46307 7.15787 3.70349 7.05575 3.95546 7.0513C4.20744 7.04685 4.4513 7.14043 4.63568 7.31231L6.96997 9.64772L12.3388 4.28407C12.4294 4.19377 12.5369 4.12221 12.6552 4.07347C12.7734 4.02472 12.9001 3.99976 13.028 4C13.1559 4.00024 13.2825 4.02568 13.4005 4.07487C13.5186 4.12406 13.6258 4.19603 13.7161 4.28667C13.8063 4.37731 13.8779 4.48486 13.9266 4.60316C13.9753 4.72146 14.0002 4.8482 14 4.97615C13.9998 5.1041 13.9743 5.23075 13.9252 5.34886C13.876 5.46698 13.8041 5.57425 13.7135 5.66456L7.66247 11.7197C7.479 11.9006 7.2314 12.0013 6.97386 12Z",fill:"#64D3AB"})}),b=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:t.jsx("path",{d:"M5.70571 3.00017C5.56814 2.99692 5.43305 3.03977 5.31922 3.12282C5.20538 3.20586 5.11846 3.32501 5.07054 3.46359C5.02261 3.60217 5.01607 3.75332 5.05181 3.89608C5.08755 4.03884 5.16381 4.16603 5.26998 4.26007L9.32087 7.9885L5.26998 11.7156C5.19654 11.7736 5.13503 11.8472 5.08931 11.9319C5.0436 12.0167 5.01465 12.1106 5.00429 12.2079C4.99393 12.3052 5.00238 12.4037 5.02911 12.4973C5.05584 12.5909 5.10027 12.6777 5.15962 12.752C5.21897 12.8263 5.29197 12.8866 5.37403 12.9292C5.4561 12.9718 5.54547 12.9957 5.63654 12.9995C5.72762 13.0032 5.81844 12.9868 5.90332 12.9512C5.98819 12.9155 6.0653 12.8613 6.12981 12.7922L10.7677 8.52887C10.8405 8.46209 10.899 8.37921 10.9391 8.2858C10.9792 8.19239 11 8.09071 11 7.98784C11 7.88497 10.9792 7.7833 10.9391 7.68989C10.899 7.59648 10.8405 7.51351 10.7677 7.44674L6.12981 3.17934C6.01265 3.06753 5.86237 3.00397 5.70571 3.00001V3.00017Z",fill:"#9EA7BE"})}),D=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.8103 6.67744C25.5632 7.41403 25.5632 8.60828 24.8103 9.34487L11.1081 22.75L3.18969 15.0033C2.43677 14.2668 2.43677 13.0725 3.18969 12.3359C3.94261 11.5993 5.16333 11.5993 5.91624 12.3359L11.1081 17.4151L22.0838 6.67744C22.8367 5.94085 24.0574 5.94085 24.8103 6.67744Z",fill:"#B1BCD7"})}),B=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.05036 1.5C4.59747 1.5 1.7688 4.13282 1.5 7.47873L5.02303 8.91916C5.32154 8.71727 5.68217 8.59898 6.07013 8.59898C6.10489 8.59898 6.13952 8.60015 6.17385 8.60206L7.74056 6.35642L7.74041 6.32468C7.74041 4.97301 8.8523 3.87333 10.2193 3.87333C11.5861 3.87333 12.698 4.97301 12.698 6.32468C12.698 7.67636 11.5861 8.77618 10.2193 8.77618C10.2004 8.77618 10.1817 8.77574 10.163 8.7753L7.92852 10.352C7.92971 10.3806 7.93075 10.4098 7.93075 10.4389C7.93075 11.4536 7.09613 12.2788 6.07013 12.2788C5.16954 12.2788 4.41649 11.6432 4.24591 10.8014L1.72645 9.77139C2.50654 12.4997 5.0413 14.5 8.05036 14.5C11.6806 14.5 14.6235 11.5898 14.6235 8.00021C14.6235 4.41009 11.6806 1.5 8.05036 1.5ZM5.61993 11.3631L4.8125 11.0332C4.95559 11.3278 5.20314 11.5745 5.53182 11.71C6.24236 12.0027 7.06153 11.6693 7.35767 10.966C7.50105 10.6261 7.50195 10.2506 7.35975 9.90972C7.21784 9.56868 6.95009 9.30273 6.60581 9.16079C6.26421 9.02017 5.89824 9.02531 5.57669 9.14536L6.41072 9.4864C6.93479 9.7024 7.18263 10.2975 6.96421 10.8157C6.74623 11.3341 6.144 11.5792 5.61993 11.3631ZM10.219 4.69171C11.1298 4.69171 11.8707 5.42448 11.8707 6.32506C11.8707 7.22563 11.1298 7.95812 10.219 7.95826C9.30831 7.95826 8.56731 7.22578 8.56731 6.32506C8.56731 5.42448 9.30831 4.69171 10.219 4.69171ZM10.2218 5.09534C9.53655 5.09534 8.98097 5.
164459 8.98097 6.32227C8.98097 6.9998 9.53655 7.54919 10.2218 7.54919C10.9071 7.54919 11.4627 6.99994 11.4627 6.32227C11.4627 5.64459 10.9071 5.09534 10.2218 5.09534Z",fill:"white"})}),S=s.div`
2    display: flex;
3    align-items: center;
4    justify-content: space-between;
5    margin-top: 24px;
6
7    h6 {
8        color: #6f7a8c;
9        font-size: 14px;
10        font-weight: 500;
11        line-height: 140%;
12    }
13`,M=s.div`
14    border-radius: 8px;
15    background: #4e5b7b;
16    padding: 14px 18px 14px 14px;
17    display: flex;
18    margin-top: 24px;
19`,A=s.div`
20    padding-left: 14px;
21
22    h6 {
23        font-size: 14px;
24        font-weight: 600;
25    }
26
27    p {
28        color: #b1bfd7;
29        font-size: 12px;
30        font-weight: 400;
31        margin-top: 6px;
32        margin-bottom: 14px;
33        line-height: 120%;
34        width: 260px;
35    }
36`,T=s.div`
37    display: flex;
38    align-items: center;
39    gap: 16px;
40
41    div {
42        display: flex;
43        align-items: center;
44        gap: 4px;
45        font-size: 14px;
46        font-weight: 400;
47    }
48
49    svg {
50        width: 16px;
51    }
52
53    img {
54        width: 15px;
55    }
56`,Z=s.div`
57    display: flex;
58    flex-direction: row-reverse;
59    margin-left: auto;
60
61    img {
62        border-radius: 36px;
63        border: 3px solid #4e5b7b;
64        width: 36px;
65        margin-left: -10px;
66        height: 36px;
67    }
68`,N=()=>{const{t:i}=u(),[n,a]=o.useState({}),c=d(e=>e.auth.name),C=d(e=>e.auth.avatar);o.useEffect(()=>{j("/api/v1/events/promo/discord/connect").then(e=>{e&&e.data&&a(e.data)})},[]);const r=[{title:"DiscordLite1",text:"DiscordLite1Text",btn:"Authorize",action:()=>{window.open("//auth.cybershoke.net/steam")},completed:n.auth},{title:"DiscordLite2",text:"DiscordLite2Text",btn:"Connect",action:()=>{window.open("//auth.cybershoke.net/connect/discord")},completed:n.connection}];return t.jsx(x,{children:t.jsxs("div",{children:[t.jsx(h,{style:{maxWidth:500,minWidth:460},children:i("AccConnection")}),t.jsx(p,{style:{maxWidth:350},children:i("AccConnection2")}),t.jsx(g,{children:r.map(e=>t.jsxs(m,{className:e.completed&&"done",children:[t.jsxs(w,{children:[e.completed?t.jsxs(l,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[t.jsx("path",{opacity:"0.4",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"#64D3AB"}),t.jsx("path",{d:"M10.833 15.083C10.6343 15.083 10.4437 15.0042 10.303 14.864L7.97 12.53C7.83752 12.3878 7.7654 12.1998 7.76882 12.0055C7.77225 11.8112 7.85096 11.6258 7.98838 11.4884C8.12579 11.351 8.31118 11.2723 8.50548 11.2688C8.69978 11.2654 8.88782 11.3375 9.03 11.47L10.83 13.27L14.97 9.136C15.0399 9.0664 15.1227 9.01124 15.2139 8.97368C15.3051 8.93611 15.4028 8.91687 15.5014 8.91705C15.6 8.91724 15.6976 8.93685 15.7887 8.97476C15.8797 9.01267 15.9624 9.06814 16.032 9.138C16.1016 9.20787 16.1568 9.29075 16.1943 9.38193C16.2319 9.47311 16.2511 9.5708 16.2509 9.66942C16.2508 9.76803 16.2312 9.86565 16.1932 9.95668C16.1553 10.0477 16.0999 10.1304 16.03 10.2L11.364 14.867C11.2225 15.0064 11.0316 15.084 10.833 15.083Z",fill:"#64D3AB"})]}):t.jsxs(l,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[t.jsx("path",{opacity:"0.4",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"#D45050"}),t.jsx("path",{d:"M13.061 12L15.53 9.53C15.6625 9.38782 15.7346 9.19978 15.7312 9.00548C15.7277 8.81118 15.649 8.62579 15.5116 8.48838C15.3742 8.35097 15.1888 8.27225 14.9945 8.26882C14.8002 8.2654 14.6122 8.33752 14.47 8.47L12 10.939L9.53 8.47C9.38783 8.33752 9.19978 8.2654 9.00548 8.26882C8.81118 8.27225 8.62579 8.35097 8.48838 8.48838C8.35097 8.62579 8.27225 8.81118 8.26883 9.00548C8.2654 9.19978 8.33752 9.38782 8.47 9.53L10.939 12L8.47 14.47C8.39631 14.5387 8.33721 14.6215 8.29622 14.7135C8.25523 14.8055 8.23319 14.9048 8.23141 15.0055C8.22963 15.1062 8.24816 15.2062 8.28588 15.2996C8.3236 15.393 8.37974 15.4778 8.45096 15.549C8.52218 15.6203 8.60702 15.6764 8.7004 15.7141C8.79379 15.7518 8.89382 15.7704 8.99452 15.7686C9.09523 15.7668 9.19454 15.7448 9.28654 15.7038C9.37854 15.6628 9.46134 15.6037 9.53 15.53L12 13.061L14.47 15.53C14.6122 15.6625 14.8002 15.7346 14.9945 15.7312C15.1888 15.7277 15.3742 15.649 15.5116 15.5116C15.649 15.3742 15.7277 15.1888 15.7312 14.9945C15.7346 14.8002 15.6625 14.6122 15.53 14.47L13.061 12Z",fill:"#D45050"})]}),t.jsxs("div",{children:[t.jsx("h6",{children:i(e.title)}),t.jsx("p",{children:i(e.text)})]})]}),e.btn&&t.jsxs("button",{onClick:e.completed?()=>{}:e.action,children:[e.completed?i("Completed"):i(e.btn),e.completed&&t.jsx(y,{})]})]}))}),n.connection&&t.jsxs(S,{children:[t.jsx("h6",{children:i("AnotherDiscord")}),t.jsx(f,{style:{marginTop:0},children:t.jsxs("button",{onClick:()=>L.disconnectLink("discord").then(e=>{e&&window.location.reload()}),children:[i("ChangeAcc"),t.jsx(b,{})]})})]}),n.connection&&n.auth&&t.jsxs(M,{children:[t.jsx(D,{}),t.jsxs(A,{children:[t.jsx("h6",{children:i("ReadyToPlay")}),t.jsx("p",{dangerouslySetInnerHTML:{__html:i("ReadyToPlayText")}}),t.jsxs(T,{children:[t.jsxs("div",{children:[t.jsx(B,{}),c]}),t.jsxs("div",{children:[t.jsx("img",{loading:"lazy",src:v("/img/socials/settings/discord.svg"),alt:""}),n.data.name]})]})]}),t.jsxs(Z,{children:[t.jsx("img",{loading:"lazy",src:n.data.avatar,alt:""}),t.jsx("img",{loading:"lazy",src:C,alt:""})]})]})]})})};export{N 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.