PageSourceSearch

https://cybershoke.net/assets/LotSell-CO19_Ey-.js

js cybershoke.net collected 2026-10-04 05:22:25 UTC 3,708 bytes, 35 lines download raw bytes

1import{r as l,j as e}from"./vendor-react-BGN68_Lp.js";import{g as x}from"./vendor-styled-pkIKgjgv.js";import{G as L}from"./LotGraph-pS2YWBj7.js";import{a as P,u as v}from"./vendor-redux-D8sX5Eqv.js";import{ab as y,g as n,q as b,b as N,s as _,ax as E,v as M}from"./index-uear5Vpj.js";import{W as B,T as w,a as D,I as G,b as R,P as c,c as W,d as m,A as H,R as q,B as F}from"./LotBuy.styles-Bhm_g0Gl.js";import{u as O}from"./vendor-i18n-BWleq_Sd.js";import"./vendor-socket-DSYo_sTV.js";import"./vendor-router-CYD8mbvC.js";const Q=x.div`
2    height: 38px;
3    margin-bottom: 4px;
4
5    div {
6        font-weight: 400;
7        font-size: 12px;
8        color: #5e6c7e;
9        display: flex;
10        align-items: center;
11
12        &:first-child,
13        &:last-child {
14            justify-content: center;
15        }
16    }
17`,U=x.div`
18    height: 64px;
19
20    div {
21        font-weight: 400;
22        font-size: 12px;
23        color: #5e6c7e;
24        display: flex;
25        align-items: center;
26
27        &:first-child,
28        &:last-child {
29            justify-content: center;
30        }
31    }
32`,J=x.div`
33    padding-top: 16px;
34    height: 200px;
35`,ae=()=>{const{t}=O(),g=P(),[o,S]=l.useState(1),[d,T]=l.useState(!1),[i,h]=l.useState(0),[r,I]=l.useState(0),[j,k]=l.useState([]),[p,u]=l.useState(!1),{item:a,action:A}=v(s=>s.modals.data.LOT_SELL),z=v(s=>s.auth.isAuth);l.useEffect(()=>{i>1e5&&h(1e5)},[i]),l.useEffect(()=>{a.amount&&S(a.amount),h(Math.floor(a.price/1.1)),y.getItemData(a.url_name).then(s=>{s&&k(s.data.lots.chart)})},[a]),l.useEffect(()=>{I(i+Math.ceil(i*.1))},[i]);const f=()=>g(N(null)),C=()=>{p||d&&(r>
35=1&&r<=2e4?(u(!0),y.sellItem(a.hash,i).then(s=>{s&&(_(t("LotIsPushedToMarket")),g(E({type:a.category,id:a.hash})),A?.(o),f())}).finally(()=>u(!1))):M(t("LotLimits")))};return e.jsxs(B,{children:[e.jsx("img",{loading:"lazy",src:n("/img/pay/close-modal.png"),className:"modal-close",onClick:f,alt:""}),e.jsx(w,{children:t("Sell2")}),e.jsxs(D,{children:[e.jsxs(Q,{children:[e.jsx("div",{children:t("QuantityShort")}),e.jsx("div",{children:t("Name")}),e.jsx("div",{children:t("Price")})]}),e.jsxs(U,{children:[e.jsx("div",{children:o}),e.jsxs(G,{children:[e.jsx("img",{loading:"lazy",src:a.web_assets?.cell,alt:""}),e.jsxs(R,{children:[e.jsx("h5",{children:b(a.subtitle)}),e.jsx("div",{children:b(a.title)})]})]}),e.jsx("div",{children:e.jsxs(c,{className:"input",children:[e.jsx("input",{type:"number",autoFocus:!0,value:i==0?"":i,onChange:s=>h(+s.target.value)}),e.jsx("img",{loading:"lazy",src:n("/img/general/diamond.svg"),alt:""})]})})]})]}),j.length>0&&e.jsx(J,{children:e.jsx(L,{dataArray:j,height:"200"})}),e.jsxs(W,{children:[e.jsx("div",{children:e.jsxs(m,{children:[e.jsxs("h6",{children:[t("IntermediateTotal"),":"]}),e.jsxs(c,{children:[e.jsx("span",{children:i}),e.jsx("img",{loading:"lazy",src:n("/img/general/diamond.svg"),alt:""})]})]})}),e.jsx("div",{children:e.jsxs(m,{children:[e.jsxs("h6",{children:[t("Tax"),":"]}),e.jsxs(c,{children:[e.jsx("span",{children:r-i}),e.jsx("img",{loading:"lazy",src:n("/img/general/diamond.svg"),alt:""})]})]})}),e.jsx("div",{children:e.jsxs(m,{children:[e.jsxs("h6",{children:[t("Total"),":"]}),e.jsxs(c,{children:[e.jsx("span",{children:r}),e.jsx("img",{loading:"lazy",src:n("/img/general/diamond.svg"),alt:""})]})]})})]}),e.jsx(H,{children:e.jsx("div",{children:e.jsxs("label",{className:"container",children:[e.jsx("input",{className:"filter",type:"checkbox",checked:d,onChange:s=>T(s.target.checked)}),e.jsx("span",{className:"checkmark"}),e.jsx("p",{dangerouslySetInnerHTML:{__html:t("AcceptTermsInDeposit")}})]})})}),e.jsx(q,{}),e.jsx(F,{className:"modal-button",onClick:C,disabled:o<1||!d||!z||p,children:t("Sell")})]})};export{ae 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.