PageSourceSearch

https://wepc.io/_nuxt/Cf0wBvBZ.js

js wepc.io collected 2026-10-08 09:45:01 UTC 12,113 bytes, 1 lines download raw bytes

1import{j as L,r as m,R as K,P as N,l as U,s as v,S as X,T as I,I as q,y as ee,Q as te,o as C,w as se,c as b,m as D,a as e,F as R,d as P,t as f,n as h,J as S,U as ae,p as oe,V as ne,_ as G,C as le,D as re,E as ie,G as V,W as ce,X as ue,B as de,g as pe,O as me,Y as Ce,b as W,M as A,K as B,L as Z,N as j}from"./4eUF_KIF.js";import{_ as ve}from"./dQRsCWM_.js";import{_ as fe}from"./CYATcopr.js";import{q as ye,u as he}from"./Cvy-ttcA.js";import{f as Q}from"./B77HAoWr.js";const be={class:"amount mt-3 align-items-center"},we={class:"ml-3"},ge={class:"wallet mt-3 align-items-center"},_e={class:"ml-3"},ke=["innerHTML"],xe={key:1,class:"text-center mt-6"},Te={key:2,class:"text-center"},Me={class:"mb-6 font-bold"},Ie={class:"flex justify-content-center gap-4 mt-5"},Ee=L({__name:"deposit-data-view",setup(Y,{expose:_}){const t=m(null),l=m(!1),c=m("0"),r=m(!1),k=K(),u=m(!1),x=m(""),d=N(),{wrapAsyncCall:p}=U(),y=v(()=>t.value?d.currencies.find(o=>{var s;return o.id===((s=t.value)==null?void 0:s.currencyId)}):null),w=X(),E=v(()=>{var o;return((o=y.value)==null?void 0:o.ticker)??""}),n=v(()=>y?new I("1".padEnd(y.value.decimals+1,"0")):0),a=v(()=>t.value?new I(t.value.amountToDeposit).div(n.value).toFixed(y.value.decimals):"0"),T=async()=>{if(!t.value){l.value=!1;return}const o=await oe(`fin/check-deposit/${t.value.depositId}`);o.status==="SUCCESS"&&(l.value=!0,c.value=o.actualAmount)},M=()=>{p(async()=>{var o;await ne(`fin/mark-deposit-pending/${(o=t.value)==null?void 0:o.depositId}`,{}),r.value=!0})},i=o=>{t.value=o,l.value=!1,r.value=!1;const s=new ye(0,"H");s.addData(o.addressTo),s.make(),x.value=s.createSvgTag({cellColor:(g,Ze)=>"#000"}),u.value=!0},$=q(),H=()=>{var o;navigator.clipboard.writeText(((o=t.value)==null?void 0:o.addressTo)??""),$.success("Wallet copied to clipboard")},F=()=>{navigator.clipboard.writeText(a.value??""),$.success("Amount copied to clipboard")};ee(u,(o,s)=>{o?w.addHandler("balanceUpdated",T):w.removeHandler("balanceUpdated",T),!o&&s&&(r.value||l.value)&&k.push("/")});const{confirm:z}=he(),O=async()=>r.value||l.value?!0:z("If you conducted a transaction on the blockchain but did not click 'I paid,' you might lose your money. Are you sure?").then(()=>!0),J=async()=>{await O(),u.value=!1};return _({showDia:i}),(o,s)=>(C(),te(ae,{showed:u.value,"onUpdate:showed":s[0]||(s[0]=g=>u.value=g),header:"Deposit Data","can-close":O},{default:se(()=>{var g;return[!l.value&&!r.value?(C(),b(R,{key:0},[e("div",be,[s[2]||(s[2]=P(" Amount ")),e("b",we,f(h(Q)(a.value))+" "+f(E.value),1),e("a",{href:"#",class:"copy ml-3 flex align-items-center justify-content-center",onClick:S(F,["prevent"]),onTouchend:F},s[1]||(s[1]=[e("img",{src:"data:image/svg+xml,%3Csvg width='24' height='25' viewB
1ox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8.5V5.7C16 4.5799 16 4.01984 15.782 3.59202C15.5903 3.21569 15.2843 2.90973 14.908 2.71799C14.4802 2.5 13.9201 2.5 12.8 2.5H5.2C4.0799 2.5 3.51984 2.5 3.09202 2.71799C2.71569 2.90973 2.40973 3.21569 2.21799 3.59202C2 4.01984 2 4.5799 2 5.7V13.3C2 14.4201 2 14.9802 2.21799 15.408C2.40973 15.7843 2.71569 16.0903 3.09202 16.282C3.51984 16.5 4.0799 16.5 5.2 16.5H8M11.2 22.5H18.8C19.9201 22.5 20.4802 22.5 20.908 22.282C21.2843 22.0903 21.5903 21.7843 21.782 21.408C22 20.9802 22 20.4201 22 19.3V11.7C22 10.5799 22 10.0198 21.782 9.59202C21.5903 9.21569 21.2843 8.90973 20.908 8.71799C20.4802 8.5 19.9201 8.5 18.8 8.5H11.2C10.0799 8.5 9.51984 8.5 9.09202 8.71799C8.71569 8.90973 8.40973 9.21569 8.21799 9.59202C8 10.0198 8 10.5799 8 11.7V19.3C8 20.4201 8 20.9802 8.21799 21.408C8.40973 21.7843 8.71569 22.0903 9.09202 22.282C9.51984 22.5 10.0799 22.5 11.2 22.5Z' stroke='%234A50C6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"},null,-1)]),32)]),e("div",ge,[s[4]||(s[4]=P(" Wallet ")),e("b",_e,f((g=t.value)==null?void 0:g.addressTo),1),e("a",{href:"#",class:"copy ml-3 flex align-items-center justify-content-center",onClick:S(H,["prevent"]),onTouchend:H},s[3]||(s[3]=[e("img",{src:"data:image/svg+xml,%3Csvg width='24' height='25' viewB
1ox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8.5V5.7C16 4.5799 16 4.01984 15.782 3.59202C15.5903 3.21569 15.2843 2.90973 14.908 2.71799C14.4802 2.5 13.9201 2.5 12.8 2.5H5.2C4.0799 2.5 3.51984 2.5 3.09202 2.71799C2.71569 2.90973 2.40973 3.21569 2.21799 3.59202C2 4.01984 2 4.5799 2 5.7V13.3C2 14.4201 2 14.9802 2.21799 15.408C2.40973 15.7843 2.71569 16.0903 3.09202 16.282C3.51984 16.5 4.0799 16.5 5.2 16.5H8M11.2 22.5H18.8C19.9201 22.5 20.4802 22.5 20.908 22.282C21.2843 22.0903 21.5903 21.7843 21.782 21.408C22 20.9802 22 20.4201 22 19.3V11.7C22 10.5799 22 10.0198 21.782 9.59202C21.5903 9.21569 21.2843 8.90973 20.908 8.71799C20.4802 8.5 19.9201 8.5 18.8 8.5H11.2C10.0799 8.5 9.51984 8.5 9.09202 8.71799C8.71569 8.90973 8.40973 9.21569 8.21799 9.59202C8 10.0198 8 10.5799 8 11.7V19.3C8 20.4201 8 20.9802 8.21799 21.408C8.40973 21.7843 8.71569 22.0903 9.09202 22.282C9.51984 22.5 10.0799 22.5 11.2 22.5Z' stroke='%234A50C6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"},null,-1)]),32)]),e("div",{class:"mt-3 qrcode-container text-center",innerHTML:x.value},null,8,ke)],64)):r.value&&!l.value?(C(),b("div",xe,s[5]||(s[5]=[e("svg",{width:"155",height:"165",viewBox:"0 0 155 165",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("circle",{cx:"77.5",cy:"87.5",r:"77.5",fill:"#CCCCCC"}),e("g",{"clip-path":"url(#clip0_237_2453)"},[e("path",{d:"M129.802 17.2632H28.6688C26.9147 55.2921 52.5113 78.8457 52.5113 78.8457C52.5113 78.8457 27.2727 98.8609 28.5972 137.247H129.838C131.163 98.2533 105.423 77.2731 105.423 77.2731C105.423 77.2731 132.201 52.2183 129.802 17.2632Z",fill:"#F9EACA"}),e("path",{d:"M35.1482 138.498C34.468 129.277 35.7926 119.913 39.0146 111.227C64.11 117.518 113.048 100.719 113.048 100.719C125.542 112.943 122.678 135.639 122.678 135.639L35.1482 138.498Z",fill:"#FFB339"}),e("path",{d:"M21.9386 3.68137L133.49 0C139.254 6.75513 135.638 17.2631 135.638 17.2631H21.9386C16.7835 12.5095 21.9386 3.68137 21.9386 3.68137Z",fill:"#4A50C6"}),e("path",{d:"M21.9386 137.462L133.49 133.78C139.254 140.535 135.638 151.043 135.638 151.043H21.9386C16.7835 146.29 21.9386 137.462 21.9386 137.462Z",fill:"#4A50C6"}),e("path",{d:"M18.4297 10.6866L137.427 9.22119",stroke:"black","stroke-width":"1.4274","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M18.251 145.646L137.75 143.502",stroke:"black","stroke-width":"1.4274","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M45.1367 54.1482C54.194 71.7688 59.6355 77.2729 59.6355 77.2729C72.4876 77.2015 93.9315 80.4897 93.9315 80.4897C105.316 73.5916 114.194 53.3262 114.194 53.3262C89.7787 61.5467 45.1367 54.1482 45.1367 54.1482Z",fill:"#FFB339"}),e("path",{d:"M113.084 100.719C92.7859 96.4305 39.0508 111.227 39.0508 111.227C62.6069 121.628 113.084 100.719 113.084 100.719Z",fill:"black"}),e("path",{d:"M45.1367 54.1482C79.8265 48.2509 114.194 53.3262 114.194 53.3262C89.8503 64.1916 45.1367 54.1482 45.1367 54.1482Z",fill:"black"}),e("path",{d:"M59.6348 77.2731C63.6085 83.2777 72.809 85.9226 74.4558 87.6381C76.1025 89.3537 74.0978 96.6093 76.0309 97.8245C77.9999 99.0754 78.5727 88.5317 79.6467 88.0313C80.7207 87.5309 81.1861 92.5347 82.7613 91.9271C84.3722 91.3553 84.3006 87.0305 85.482 86.2085C86.6634 85.4222 91.6753 82.4556 93.8949 80.4541C96.1145 78.4526 73.1312 73.699 73.1312 73.699L59.6348 77.2731Z",fill:"#FFB339"}),e("g",{opacity:"0.5"},[e("path",{d:"M47.4994 26.3415C39.1223 30.6305 47.3562 63.5483 57.917 60.0457C68.4779 56.5073 55.6975 22.124 47.4994 26.3415Z",fill:"white"}),e("path",{d:"M61.3176 64.4775C57.6302 66.8007 61.2102 75.3429 65.5419 72.7696C69.8737 70.1962 65.4345 61.9041 61.3176 64.4775Z",fill:"white"})])]),e("defs",null,[e("clipPath",{id:"clip0_237_2453"},[e("rect",{width:"120",height:"151.079",fill:"white",transform:"translate(18)"})])])],-1),e("h2",{class:"mt-7 mb-4"},"Waiting for payment",-1)]))):l.value?(C(),b("div",Te,[s[6]||(s[6]=e("img",{class:"mb-5",style:{display:"inline-block"},src:fe,alt:"success"},null,-1)),s[7]||(s[7]=e("h2",{class:"mt-4 mb-3 success"},"Success",-1)),e("p",Me,"You bought "+f(c.value)+" WEPC",1)])):D("",!0),e("div",Ie,[!r.value&&!l.value?(C(),b("button",{key:0,class:"btn btn_green-linear",onClick:M},"I paid")):D("",!0),e("button",{class:"btn",onClick:J},"Close")])]}),_:1},8,["showed"]))}}
1),Ve=G(Ee,[["__scopeId","data-v-37d3fb77"]]),Ae={class:"deposits mt-7 relative",style:{"margin-bottom":"200px"}},De={class:"deposits__container"},Se={class:"deposits__inner"},$e={class:"deposits-panel mt-8"},He={class:"flex flex-column gap-3"},Fe={class:"flex flex-column gap-3"},Oe={class:"required",for:"deposits-eth-address"},Pe={class:"flex flex-column gap-3"},We={key:0,class:"balance"},Be=L({__name:"deposits.client",setup(Y){const _=le("depositViewRef"),t=re({email:"",phoneNumber:"",addressFrom:"",amountToObtain:"",cryptoCurrencyId:"WEPC_ERC20"}),c=ie({email:{email:ue},amountToObtain:{required:V,numeric:ce},addressFrom:{required:V},cryptoCurrencyId:{required:V}},t,{$scope:!1}),{wrapAsyncCall:r}=U(),k=N(),u=q(),x=de(),d=m(""),p=v(()=>t.cryptoCurrencyId?k.currencies.find(n=>n.id===t.cryptoCurrencyId):null),y=v(()=>{var n;return p.value?new I("1".padEnd(((n=p.value)==null?void 0:n.decimals)+1,"0")):0}),w=v(()=>{var n;return((n=p.value)==null?void 0:n.ticker)??""});pe(()=>{t.email=x.user.email}),me(()=>[t.amountToObtain,t.cryptoCurrencyId],async()=>{if(!t.cryptoCurrencyId||!t.amountToObtain)return d.value="";try{const n={amountToObtain:t.amountToObtain.toString(),cryptoCurrencyId:t.cryptoCurrencyId},{amountToDeposit:a}=await j("fin/calculate-deposit",n);return d.value=new I(a).div(y.value).toFixed(p.value.decimals)}catch{return d.value=""}},{debounce:500});async function E(){await c.value.$validate()&&await r(async()=>{var a;const n=await j("fin/deposit",{...t,amountToObtain:t.amountToObtain+""});(a=_.value)==null||a.showDia(n)},n=>(n==null?void 0:n.status)==420?(u.error("Invalid blockchain wallet"),!0):!1)}return(n,a)=>{var M;const T=Ce("v-select");return C(),b(R,null,[e("div",Ae,[e("div",De,[e("div",Se,[a[7]||(a[7]=e("div",{class:"flex justify-content-center"},[e("h1",{class:"deposits__main-title text-center"},"Deposit")],-1)),e("div",$e,[a[6]||(a[6]=e("div",{class:"pr-8"},[e("img",{src:ve,alt:"WEPC coin"}),e("ul",{class:"list-none mt-6"},[e("li",null,"WEPC - is not a security"),e("li",null,"WEPC - is not a company share"),e("li",null,"WEPC - is not a hedging instrument"),e("li",null,"WEPC - is not an investment instrument"),e("li",null,"WEPC - is an in-game token assigned for in-game settlements")])],-1)),e("div",null,[e("form",{onSubmit:S(E,["prevent"]),class:"w-full flex flex-column gap-5"},[e("div",He,[a[3]||(a[3]=e("label",{class:"required"},"Currency / Blockchain",-1)),W(T,{class:A(["buy-sell__form-select",{invalid:h(c).cryptoCurrencyId.$error}]),options:h(k).currencies,placeholder:"Select",label:"name",reduce:i=>i.id,filterable:!1,searchable:!1,modelValue:t.cryptoCurrencyId,"onUpdate:modelValue":a[0]||(a[0]=i=>t.cryptoCurrencyId=i),clearable:!1},null,8,["options","reduce","modelValue","class"])]),e("div",Fe,[e("label",Oe,"The address you pay "+f((M=p.value)==null?void 0:M.name)+" from",1),B(e("input",{id:"deposits-eth-address","onUpdate:modelValue":a[1]||(a[1]=i=>t.addressFrom=i),type:"text",placeholder:"Address",class:A({invalid:h(c).addressFrom.$error})},null,2),[[Z,t.addressFrom]])]),e("div",Pe,[a[4]||(a[4]=e("label",{class:"required"},"WEPC - Amount To Obtain",-1)),B(e("input",{id:"deposits-google-auth","onUpdate:modelValue":a[2]||(a[2]=i=>t.amountToObtain=i),type:"number",placeholder:"Amount",class:A({invalid:h(c).amountToObtain.$error})},null,2),[[Z,t.amountToObtain]]),d.value&&w.value?(C(),b("p",We,"~ "+f(h(Q)(d.value))+" "+f(w.value),1)):D("",!0)]),a[5]||(a[5]=e("div",null,[e("button",{class:"btn btn_green-linear font-bold"},"Make Deposit")],-1))],32)])])])])]),W(Ve,{ref_key:"depositViewRef",ref:_},null,512)],64)}}}),Re=G(Be,[["__scopeId","data-v-cdb37f40"]]);export{Re 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.