PageSourceSearch

https://www.btse.com/static/js/eHLvdjk7.js

js btse.com collected 2026-10-03 21:19:46 UTC 9,522 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"btse@2f4cc265"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a0c53b89-8f32-4cab-8fa5-cf7e9a74f1d5",e._sentryDebugIdIdentifier="sentry-dbid-a0c53b89-8f32-4cab-8fa5-cf7e9a74f1d5")}catch(a){}}();import{aY as e,r as t,aE as a,ar as r,aM as s,ak as n,a9 as l,am as u,aN as o,a8 as i,aa as c,aK as d,af as m,as as p,ae as f,aS as y,a5 as C,a6 as v,ab as S,ad as g,ap as A,an as w}from"./B-0vxubZ.js";import{U as E,dR as I,i as x,aI as R,l as b,w as N,iZ as h,af as _,u as T,o as M,cI as F,R as L,d0 as U,cN as O,cM as k,nG as P,py as j,iY as W}from"./fTPyrBIP.js";import{E as B,w as D,a as G,b as H,c as Y}from"./CcpsHvDf.js";import{_ as z}from"./SJUTAzMa.js";import{h as K,g as $}from"./BphGmIDb.js";import"./CEBSnBgb.js";import"./D8-5GxBK.js";import"./chunk-lottie.tqfMQl6Y.js";import"./SmGL2nNO.js";import"./chunk-web3.BZXhiO4y.js";import"./chunk-web3-onboard-utils.iUTN3q_9.js";import"./chunk-sentry.DKA24Cnk.js";import"./DjxVUbdV.js";import"./chunk-echarts.K2WzvGbX.js";import"./DiwcCmib.js";import"./B4GGByMv.js";const q={class:"confirm-body"},V={class:"confirm-desc"},X={class:"label"},Z={class:"value flex-box gap-6 items-center"},J={class:"summary-list"},Q={class:"flex-box justify-between summary-row"},ee={class:"val flex-box items-end flex-column gap-4"},te={class:"network-fee"},ae={class:"flex-box justify-between summary-row"},re={class:"val"},se=z({__name:"ExpressSellResultConfirmDialog",props:{summary:{type:Object,default:()=>({sourceCurrency:"",targetCurrency:"",inAmount:"",outAmount:"",exchangeRate:"",paymentMethod:"",totalFee:"",transactionId:""})}},emits:["dialog:closed"],setup(y,{emit:C}){const v=y,{t:S}=e(),g=R(),A=C,w=t(""),T=t(!0);function M(e,t="max8"){return null==e||""===e?"-":_(e,{formatKey:t,defaultValue:"-"})}return a((()=>{!async function(){var e,t,a,r;const s=null==(e=v.summary)?void 0:e.sourceCurrency,n=null==(t=v.summary)?void 0:t.inAmount,l=null==(a=B[s])?void 0:a.network;if(l){T.value=!0,w.value="";try{const e=await N.getWithdrawCryptoTxnLimitation(null==(r=v.summary)?void 0:r.sourceCurrencyMapping,h.SELF,l),{feeMin:t,feeMax:a,feeRate:s,extraRate:u,extraAmount:o}=(null==e?void 0:e.withdrawFees)||{},i=D({amount:n,feeMin:t,feeMax:a,feeRate:s,extraRate:u,extraAmount:o,isExcludeFee:!1});w.value=i}catch{w.value=""}finally{T.value=!1}}else T.value=!1}()})),(e,t)=>{const a=r("BaseButton"),C=s("loading");return l(),n(b,{class:"express-sell-result-confirm-dialog",width:p(g).isMobile?"90%":"560px",isBrandNewStyle:"",onClosed:t[1]||(t[1]=e=>A("dialog:closed",{confirmed:!1}))},{header:u((()=>[f(m(p(S)("wallet.expressSell.resultConfirm.title")),1)])),body:u((()=>{var e;return[o((l(),i("div",q,[c("div",V,[c("div",X,m(p(S)("wallet.expressSell.resultConfirm.sellDescription")),1),c("div",Z,[d(E,{class:"icon",name:y.summary.sourceCurrencyMapping,type:p(I).COIN,size:"24"},null,8,["name","type"]),f(" "+m(M(y.summary.inAmount))+" "+m(y.summary.sourceCurrencyMapping),1)])]),c("div",J,[c("div",Q,[c("span",null,m(p(S)("wallet.expressSell.resultConfirm.sellAmount")),1),c("div",ee,[c("div",null,m(M(y.summary.inAmount))+" "+m(y.summary.sourceCurrencyMapping),1),c("div",te,m(p(S)("wallet.expressSell.resultConfirm.networkFee"))+": "+m(M(w.value))+" "+m(y.summary.sourceCurrencyMapping),1)])]),c("div",ae,[c("span",null,m(p(S)("wallet.expressSell.resultConfirm.receiveAmount")),1),c("span",re," ≈ "+m(M(y.summary.outAmount))+" "+m(null==(e=y.summary.targetCurrency)?void 0:e.toUpperCase()),1)]),d(x,{genre:"warning",class:"mb-32"},{default:u((()=>[f(m(p(S)("wallet.expressSell.resultConfirm.warning")),1)])),_:1})]),d(a,{class:"w-100 primary pointer",size:"large",onClick:t[0]||(t[0]=e=>A("dialog:closed",{confirmed:!0}))},{default:u((()=>[f(m(p(S)("t.confirm")),1)])),_:1})])),[[C,T.value]])]})),_:1},8,["width"])}}},[["__scopeId","data-v-233c5504"]]),ne=["href"],le={key:1},ue={class:"button-wrap"},oe=z({__name:"WalletExpressSellResultConfirmationStatus",props:{status:{type:String,default:H.FAIL},errorType:{type:String,default:G.UNSUCCESSFUL},paymentMethod:{type:String,default:""},unitPrice:{type:String,default:""},totalSell:{type:String,default:""},receiveAmount:{type:String,default:""},receiveCurrency:{type:String,default:""},sellCurrency:{type:String,default:""}},emits:["onSellAgain"],setup(t){const a=T(),s=y(),{t:o}=e(),A=R(),{lang:w}=C(a),E=t,I=v((()=>{switch(E.status){case H.PROCESSING:return K.PROCESSING;case H.FAIL:default:return K.FAIL}})),x=v((()=>{switch(E.status){case H.PROCESSING:return o("t.processing");case H.FAIL:return o("t.unsuccessful");default:return""}})),b=v((()=>{switch(E.status){case H.PROCESSING:case H.FAIL:return o("t.sellAgain");default:return""}})),N=v((()=>{switch(E.errorType){case G.UNSUPPORTED_CURRENCY:return o("wallet.expressSell.resultConfirm.unsupportedCurrency");case G.INSUFFICIENT_BALANCE:return o("wallet.expressSell.resultConfirm.insufficientBalance");case G.REACH_TRANSACTION_LIMIT:return o("wallet.expressSell.resultConfirm.reachTransactionLimit");default:return o("t.errorSubmitMsg")}})),h=v((()=>M(w.value,"NEW_TICKET")));function _(){s.replace({name:L.WALLET_TRANSACTION_HISTORY,params:{lang:w.value,category:F.EXPRESS_BUY_SELL}})}return(e,a)=>{const s=r("i18n-t"),y=r("BaseButton");return l(),n($,{class:"status",iconType:I.value,title:x.value,isMobileSize:p(A).isMobile,isShowViewHistory:!1,isShowButton:!1},{content:u((()=>[E.status===p(H).PROCESSING?(l(),i(g,{key:0},[c("p",null,m(p(o)("wallet.expressSell.resultConfirm.processing.des1")),1
1),c("p",null,m(p(o)("wallet.expressSell.resultConfirm.processing.des2")),1),c("p",{class:"view-history",onClick:_},m(p(o)("t.viewHistory")),1)],64)):S("",!0),E.status===p(H).FAIL?(l(),i(g,{key:1},[t.errorType===p(G).UNSUCCESSFUL?(l(),i(g,{key:0},[c("p",null,m(N.value),1),d(s,{keypath:"t.errorTryAgain",tag:"div"},{customerSupport:u((()=>[c("a",{class:"link",href:h.value,target:"_blank",rel:"noreferrer noopener"},m(p(o)("t.customerSupport")),9,ne)])),_:1})],64)):(l(),i("p",le,m(N.value),1))],64)):S("",!0),c("div",ue,[d(y,{class:"flex-1 primary",size:"large",onClick:a[0]||(a[0]=t=>e.$emit("onSellAgain"))},{default:u((()=>[f(m(b.value),1)])),_:1})])])),_:1},8,["iconType","title","isMobileSize"])}}},[["__scopeId","data-v-a875a857"]]),ie={class:"wallet-express-sell-result-confirmation"},ce={key:0,class:"loading-state"},de=z({__name:"WalletExpressSellResultStandaloneConfirmation",setup(e){const a=y(),r=A(),u=T(),{lang:c,currencyMap:d,isInitialWalletInfoLoading:m}=C(u),{$openDialog:f}=U(),g=t(Y.CONFIRM),E=t({}),I=t(!1),x=t(G.UNSUCCESSFUL),R=v((()=>d.value[E.value.sourceCurrencyMapping]||{})),b=v((()=>[Y.PROCESSING,Y.FAIL].includes(g.value)));function _(e){var t;return`${e.sourceCurrencyMapping}-${(null==(t=e.targetCurrency)?void 0:t.toUpperCase())??""}`}function M(e){g.value=Y.FAIL,x.value=e}async function F(){if(m.value)return;const e=function(e={}){var t;return{providerWalletAddress:e.providerWalletAddress,transactionId:e.transactionId,sourceCurrency:e.sourceCurrency,sourceCurrencyMapping:null==(t=B[e.sourceCurrency])?void 0:t.currency,targetCurrency:e.targetCurrency,inAmount:e.inAmount,outAmount:e.outAmount,partnerContext:e.partnerContext,offramp:e.offramp,paymentMethod:e.paymentMethod,totalFee:e.totalFee,countryCode:e.countryCode,exchangeRate:e.exchangeRate}}(r.query);if(E.value=e,function(e){return!Object.keys(B).includes(e.sourceCurrency)}(e))return void M(G.UNSUPPORTED_CURRENCY);if(function(e){return Number(R.value.available||0)<Number(e.inAmount||0)}(e))return void M(G.INSUFFICIENT_BALANCE);if(await async function(e){var t;const a=Number(e.outAmount||0);try{const{providers:r=[]}=await N.getExpressSellInfo({pair:_(e),amount:a}),s=r.find((e=>e.providerMethodKey===P.ONRAMPER_ONRAMPER)),n=Number((null==(t=null==s?void 0:s.limitSetting)?void 0:t.singleAmountMax)||0);return n&&a>n}catch{M(G.UNSUCCESSFUL)}}(e))return void M(G.REACH_TRANSACTION_LIMIT);const t=await async function(e){const t=await f(se,{summary:e});return!0===(null==t?void 0:t.confirmed)}(e);t?g.value=Y.AUTH:H()}async function D({twoFACode:e,otpCode:t}){I.value=!0;try{await N.requestExpressSell(function(e,{twoFACode:t,otpCode:a}){return{provider:h.ONRAMPER,method:W.ONRAMPER,amount:e.inAmount,settlementCurrency:_(e),ext:{providerWalletAddress:e.providerWalletAddress,partnerContext:e.partnerContext,transactionId:e.transactionId,sourceCurrency:e.sourceCurrency,targetCurrency:e.targetCurrency,outAmount:Number(e.outAmount),exchangeRate:Number(e.exchangeRate)},twoFACode:t,otpCode:a}}(E.value,{twoFACode:e,otpCode:t})),g.value=Y.PROCESSING}catch(a){if(j.includes(a))return void M(G.UNSUCCESSFUL)}finally{I.value=!1}}function H(){a.replace({name:L.EXPRESS_SELL,params:{lang:c.value},query:{}}).catch((()=>{}))}return w((()=>m.value),(e=>{e||F()}),{immediate:!0}),(e,t)=>{const a=s("loading");return l(),i("div",ie,[g.value===p(Y).CONFIRM?o((l(),i("div",ce,null,512)),[[a,!0]]):g.value===p(Y).AUTH?(l(),n(k,{key:1,class:"result-confirm-auth",verification:D,sendEmailType:p(O).WITHDRAW_CRYPTO,isLoading:I.value,onPrevious:H,autoSendEmail:"",isPaymentEmailOtp:"",showPreviousButton:""},null,8,["sendEmailType","isLoading"])):b.value?(l(),n(oe,{key:2,status:g.value,errorType:x.value,onOnSellAgain:H},null,8,["status","errorType"])):S("",!0)])}}},[["__scopeId","data-v-efc0dfb5"]]);export{de as default};
2//# sourceMappingURL=eHLvdjk7.js.map

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.