PageSourceSearch

https://cybershoke.net/assets/index-Bu6Gk3kO.js

js cybershoke.net collected 2026-10-04 05:22:01 UTC 8,964 bytes, 26 lines download raw bytes

1import{r as l,j as e,i as S}from"./vendor-react-BGN68_Lp.js";import{b as G,a as J,u as m}from"./vendor-redux-D8sX5Eqv.js";import{x as K,g as r,aJ as Q,aK as T,aL as E,y as B,c as X,v as o,q as D,s as k,ae as O,a9 as ee,ar as ae,aM as se,t as v,aN as te,b as R,aO as ne,aP as ie,ac as le}from"./index-uear5Vpj.js";import{p as U}from"./premiumApi-WY_Mz-No.js";import{U as ce,L as re,p as oe,i as de}from"./index-CQifdGyk.js";import{T as ue,C as me,L as he,a as pe,O as ge,D as xe,b as fe,S as ye,M as je,c as be,W as _e,d as Me,e as Pe,f as h,g as ve,h as Ce,B as N,i as Ie,A as C}from"./AutoSub.styles-C3Oieddq.js";import{g as Ae}from"./vendor-styled-pkIKgjgv.js";import{u as we}from"./vendor-i18n-BWleq_Sd.js";import"./vendor-socket-DSYo_sTV.js";import"./vendor-router-CYD8mbvC.js";const Le=Ae.div`
2    padding: 40px;
3    border-radius: 15px;
4    background: #171c2a;
5    width: 800px;
6
7    h2 {
8        font-weight: 900;
9        font-size: 27px;
10        color: #ecf1f8;
11    }
12
13    @media all and (max-width: 650px) {
14        width: 95%;
15        padding: 24px;
16
17        h2 {
18            font-size: 20px;
19            align-items: flex-start;
20        }
21
22        .subtitle {
23            font-size: 12px;
24        }
25    }
26`,p=(a,i,g)=>{const x=()=>["USD","EUR"].includes(a.currency)?(a.price/Math.round(a.time/86400/30)).toFixed(2):Math.round(a.price/Math.round(a.time/86400/30));return g?.symbolFirst?`${a.currency_symbol}${x()}`:`${i?a.price:x()} ${a.currency_symbol}`},Se=a=>{const{t:i}=we(),g=J(),x=m(s=>s.root.isTelegramWebApp),d=m(s=>s.root.premiumPlans[a.data.type]),b=m(s=>s.auth.email),z=m(s=>s.payments.exchange),I=m(s=>s.auth.balance),W=m(s=>s.auth.premium.group),[n,_]=l.useState(null),[A,w]=l.useState([]),[f,V]=l.useState(!1),[$,L]=l.useState(!1),[y,F]=l.useState(""),[u,j]=l.useState(!1),H=a.data.type==="PREMIUM"&&W==="LITE"&&!a.data.recepients;l.useEffect(()=>{a.data.customPlans?(_(a.data.customPlans[0]),w(a.data.customPlans)):d&&(_(d[d.length-1]),w(d))},[d,a.data.customPlans]);const M=()=>a.setModal(null),q=()=>{let s=I<n.currency_conversion.RUB,t=te(I,n.currency,z);g(R("DEPOSIT_MODAL",{buyingPrice:s?n.price_coins:n.price_coins+t,page:s?"premium":"premium-buy",premId:n.id,autoChecked:f}))},Y=()=>{O(i("AcceptTermsNotification")),L(!0),setTimeout(()=>{L(!1)},500)},Z=()=>{if(u)return;j(!0);const s=U.giftPremium(n.id,Object.keys(a.data.recepients)).then(t=>{let c=n.price_coins;if(t.result=="error")return t.message?o(D(t.message)):(t.code=="002"&&(v("balance_top_up_modal_open",{source:"gift premium"}),a.setModal("DEPOSIT_MODAL",{buyingPrice:c,page:null}),o(i("NoMoneyOnBalance"))),o(i("NoMoneyOnBalance")));k(i("GiftSent")),a.changeBalance({step:null,summ:n.price_coins})});return M(),s.finally(()=>j(!1))},P=async s=>{if(!u){if(!f)return Y();if(!b&&y.length<1)return O(i("EnterEmail"));
26if(window.autobuyId=n.id,b||await ee.setSettings(`option=update_email&email=${y}`).then(t=>{t&&g(ae(y))}),se())return j(!0),U.buyPrem(n.id,n.access_recurring,s).then(t=>{if(M(),t){if(t.result=="error")a.setAutobuy(!0),t.code=="undefined"?o(i("NotSoFast")):(t.code==205&&(v("balance_top_up_modal_open",{source:"buy premium"}),a.setModal("DEPOSIT_MODAL",{buyingPrice:n.price_coins,page:"premium",premId:n.id})),t.alert&&(t.code==205?o(i("NoMoneyOnBalance")):t.code==201?o(i("AlreadyHavePrivilege")):t.code==200&&o(i("WaitEndSubscription"))));else if(v("premium_purchase_modal_open",{plan:n.issue_name}),n.access_recurring)oe.depositWithCustomPostData(t.data).then(c=>{if(c){if(c.href)return window.open(c.href);de(c)}});else if(a.changeBalance({step:"setNew",summ:t.data.money}),t.data&&(a.setVip({group:t.data.privilege=="LITE"?"LITE":"PREMIUM",expires:t.data.endtime,expires_date:E(t.data.endtime),date_buy:B()}),a.setModal("VIP_PURCHASE",{type:t.data.privilege,endtime:t.data.endtime})),t.code==200)return k(D(t.alert_text))}}).finally(()=>j(!1));o(i("NeedLogin"))}};if(n)return x?e.jsx(ce,{closeModal:M}):e.jsxs(Le,{children:[e.jsx(K,{}),e.jsxs("div",{children:[e.jsxs(ue,{children:[e.jsx("img",{loading:"lazy",src:r("/pages/other/modals/icons/crown.svg"),alt:""}),i("PremiumActivation",{type:a.data.type=="PREMIUM"?"PREMIUM":"LITE"})]}),e.jsxs(me,{children:[e.jsxs(he,{children:[e.jsx(pe,{children:Q(A)?.map((s,t)=>{if(!(!s.access_single&&!a.data.recepients))return e.jsxs(ge,{className:s.id==n.id&&"active",onClick:()=>_(s),children:[e.jsxs("div",{children:[e.jsx(xe,{children:s.id==n.id&&e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6626 4.16437C14.057 4.55021 14.057 5.17577 13.6626 5.5616L6.48525 12.5833L2.33754 8.52556C1.94315 8.13973 1.94315 7.51417 2.33754 7.12834C2.73192 6.7425 3.37135 6.7425 3.76573 7.12834L6.48525 9.78888L12.2344 4.16437C12.6288 3.77854 13.2682 3.77854 13.6626 4.16437Z",fill:"white"})})}),e.jsx(fe,{children:T(Math.round(s.time/86400/30))}),s.discount&&e.jsx(ye,{children:i("Discount")+" "+s.discount+"%"})]}),e.jsx("div",{children:e.jsxs("div",{children:[e.jsxs(je,{children:[p(s),"/",i("Month")]}),s.time/86400/30!=1&&e.jsx(be,{children:p(s,!0)})]})})]})})}),H&&e.jsxs(_e,{children:[i("liteSavesInInventory"),e.jsx("img",{loading:"lazy",src:r("/img/modals/autosub/stars.svg"),alt:""})]})]}),e.jsxs(Me,{children:[e.jsxs(Pe,{className:"grey-scroll",children:[e.jsxs(h,{children:[e.jsx("p",{children:a.data.type=="PREMIUM"?"PREMIUM":"LITE"}),e.jsx("p",{children:T(Math.round(n.time/86400/30))})]}),a.data.recepients?e.jsxs(l.Fragment,{children:[e.jsxs(h,{children:[e.jsx("p",{}),e.jsxs("p",{children:[i("totalCost"),e.jsx(S,{placement:"top",content:i("priceVaryByRegion"),children:e.jsx("img",{loading:"lazy",src:r("/pages/leaderboard/icons/faq-grey.svg"),alt:""})})]})]}),Object.values(a.data.recepients).map(s=>{const t=s.subs_group_list.find(c=>c.id===n.id);if(t)return e.jsxs(h,{children:[e.jsxs("p",{children:["– ",s.name]}),e.jsxs("p",{children:[t.price," ",t.currency_symbol]})]})})]}):e.jsxs(l.Fragment,{children:[e.jsxs(h,{children:[e.jsx("p",{children:i("MonthSumm")}),n.badges?.page_discout?.old_price?e.jsxs("p",{children:[n.badges?.page_discout?.old_price," ",n.currency_symbol]}):e.jsxs("p",{children:[n.time/86400/30!=1&&e.jsx("span",{children:p(A[0])})," ",p(n)]})]}),e.jsxs(h,{children:[e.jsxs("p",{children:[i("NextPayment"),e.jsx(S,{placement:"top",content:i("NextPayTippy"),children:e.jsx("img",{loading:"lazy",src:r("/pages/leaderboard/icons/faq-grey.svg"),alt:""})})]}),e.jsx("p",{children:E(B()+n.time)})]})]})]}),e.jsxs(ve,{children:[e.jsx("h4",{children:i("Total")}),e.jsx("h4",{children:p(n,!0)})]}),!a.data.customPlans&&e.jsxs(Ce,{className:"container",children:[e.jsx("input",{className:"filter",type:"checkbox",checked:f,onChange:()=>V(!f)}),e.jsx("span",{className:X("checkmark",$&&"bouncing-check")}),e.jsx("p",{dangerouslySetInnerHTML:{__html:i("AcceptTermsInDeposit")}})]}),!a.data.customPlans&&!b&&e.jsxs(re,{style:{marginTop:12},children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:e.jsx("path",{d:"M9.49666 10.7341L2.92416 6.06843C3.2936 5.47479 3.80802 4.98493 4.41901 4.64494C5.03 4.30495 5.71745 4.12602 6.41666 4.125H15.5834C16.2816 4.12537 16.9683 4.30302 17.5792 4.64129C18.1901 4.97955 18.705 5.46737 19.0759 6.05902L12.5217 10.7158C12.0745 11.0144 11.5496 11.1753 11.0119 11.1786C10.4742 11.1819 9.94738 11.0273 9.49666 10.7341Z
26M19.69 7.88343L13.5667 12.2282C12.8034 12.7357 11.9074 13.0068 10.9908 13.0075C10.0899 13.0067 9.20946 12.7387 8.46081 12.2376L2.31 7.88343C2.30085 8.0025 2.29166 8.13093 2.29166 8.25V13.75C2.2933 14.8435 2.72843 15.8918 3.50166 16.665C4.27489 17.4382 5.32314 17.8734 6.41666 17.875H15.5834C16.6769 17.8734 17.7251 17.4382 18.4983 16.665C19.2716 15.8918 19.7067 14.8435 19.7084 13.75V8.25C19.7084 8.13093 19.6992 8.0025 19.69 7.88343Z",fill:"#707A9B"})}),e.jsx("input",{type:"mailto",placeholder:i("YourEmail"),value:y,onChange:s=>F(s.target.value)})]}),a.data.recepients?e.jsx(N,{onClick:Z,disabled:u,children:i("Pay")}):e.jsxs(N,{onClick:()=>P(null),disabled:u,children:[i("PAY-BY-CARD"),e.jsxs("div",{children:[e.jsx("img",{loading:"lazy",src:r("/pages/other/modals/icons/visa.svg"),alt:""}),e.jsx("img",{loading:"lazy",src:r("/pages/other/modals/icons/mastercard.svg"),alt:""})]})]}),e.jsxs(Ie,{children:[n.access_recurring_sbp&&e.jsx(C,{onClick:()=>P(null),disabled:u,children:e.jsx("img",{loading:"lazy",src:r("/pages/other/modals/icons/sbp.svg"),alt:""})}),n.access_recurring_paypal&&e.jsx(C,{onClick:()=>P("paypal"),disabled:u,children:e.jsx("img",{loading:"lazy",src:r("/pages/other/modals/icons/paypal.svg"),alt:""})}),n.access_recurring&&e.jsx(C,{onClick:q,children:i("ChangePaymentMethod")})]})]})]})]})]})},Te=a=>({data:a.modals.data.AUTOSUB_MODAL,isOpen:a.modals.modalId=="AUTOSUB_MODAL",defaultPayment:a.payments.defaultPayment}),Ve=G(Te,{changeBalance:le,setAutobuy:ie,setModal:R,setVip:ne})(Se);export{p as convertValue,Ve 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.