PageSourceSearch

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

js btse.com collected 2026-09-25 18:38:50 UTC 4,937 bytes, 2 lines download raw bytes

1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t.SENTRY_RELEASE={id:"btse@5f19a485"};var e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="806c67c9-f8e8-4dfe-8ab3-aa5c442d390b",t._sentryDebugIdIdentifier="sentry-dbid-806c67c9-f8e8-4dfe-8ab3-aa5c442d390b")}catch(s){}}();import{aL as t,ar as e,ak as s,a9 as a,am as r,a8 as n,ab as o,af as i,aa as c}from"./PmfENnFs.js";import{o as u,oW as I,oV as p,pb as l,pc as d,o$ as E,pd as _}from"./BhKTELSe.js";import{g as S,h as P}from"./tad1MRrM.js";import{_ as A}from"./CRPzHAml.js";import"./DzIKp7QL.js";import"./ByGuns7q.js";import"./chunk-lottie.zeumoeGY.js";import"./CXr9G-CP.js";import"./chunk-web3.7EmC4Up1.js";import"./chunk-web3-onboard-utils.D-9VMiP0.js";import"./chunk-sentry.q36DUBwH.js";import"./cvxruSMo.js";import"./chunk-echarts.AHWYl6Ef.js";import"./ByOB-9wo.js";import"./DTvt6p8J.js";const T={COMPLETED:"COMPLETED",PROCESSING:"PROCESSING",FAILURE:"FAILURE"},h={name:"PayApiResult",components:{Status:S},props:{status:{type:String,default:T.COMPLETED}},data:()=>({PAY_API_RESULT_STATUS:T}),computed:{...t(["lang"]),iconType(){switch(this.status){case T.COMPLETED:return P.SUCCESS;case T.PROCESSING:return P.PROCESSING;case T.FAILURE:case p.PIQ_FAIL_PAYMENT_PROCESSING:case p.PIQ_FAIL_BANK_DECLINE:case p.PIQ_FAIL_REQUEST_COMPLETION:case p.PIQ_FAIL_CARD_AUTHENTICATION:default:return P.FAIL}},statusTitle(){switch(this.status){case T.COMPLETED:return this.$t("pay.payment_success");case T.PROCESSING:return this.$t("t.processing");case T.FAILURE:case p.PIQ_FAIL_PAYMENT_PROCESSING:case p.PIQ_FAIL_BANK_DECLINE:case p.PIQ_FAIL_REQUEST_COMPLETION:case p.PIQ_FAIL_CARD_AUTHENTICATION:default:return this.$t("t.somethingWentWrong")}},isPiqSpecificFail(){return[p.PIQ_FAIL_PAYMENT_PROCESSING,p.PIQ_FAIL_BANK_DECLINE,p.PIQ_FAIL_REQUEST_COMPLETION,p.PIQ_FAIL_CARD_AUTHENTICATION].includes(this.status)},failContantKey(){return I[this.status]||""},supportUrl(){return u(this.lang,"NEW_TICKET")}}},y={key:0},m=["href"],f=["href"],L=["href"];const R={INITIAL:"INITIAL",RESULT:"RESULT"},C={name:"WalletPiqPayWidget",components:{PayApiResult:A(h,[["render",function(t,u,I,p,l,d){const E=e("i18n-t"),_=e("Status");return a(),s(_,{class:"status",iconType:d.iconType,title:d.statusTitle,isShowViewHistory:!1,isShowButton:!1},{content:r((()=>[I.status===l.PAY_API_RESULT_STATUS.COMPLETED?(a(),n("div",y,i(t.$t("wallet.payment.statusSuccess")),1)):I.status===l.PAY_API_RESULT_STATUS.PROCESSING?(a(),s(E,{key:1,keypath:"wallet.payment.statusProcessing",tag:"div"},{customerSupport:r((()=>[c("a",{class:"link",href:d.supportUrl,target:"_blank",rel:"noreferrer noopener"},i(t.$t("t.customerSupport")),9,m)])),_:1})):I.status===l.PAY_API_RESULT_STATUS.FAILURE?(a(),s(E,{key:2,keypath:"wallet.payment.statusFailed",tag:"div"},{customerSupport:r((()=>[c("a",{class:"link",href:d.supportUrl,target:"_blank",rel:"noreferrer noopener"},i(t.$t("t.customerSupport")),9,f)])),_:1})):d.isPiqSpecificFail?(a(),s(E,{key:3,keypath:d.failContantKey,tag:"div"},{customerSupport:r((()=>[c("a",{class:"support-link",href:d.supportUrl,target:"_blank",rel:"noopener nofollow"},i(t.$t("t.customerSupport")),9,L)])),_:1},8,["keypath"])):o("",!0)])),_:1},8,["iconType","title"])}],["__scopeId","data-v-288dc9cf"]])},data:()=>({PAY_API_STEP:R,step:R.INITIAL,resultStatus:T.FAILURE}),computed:{...t(["lang"]),orderId(){return this.$route.query.orderId||""}},mounted(){this.orderId&&this.getPaymentInfo()},methods:{async getPaymentInfo(){try{const{merchantId:t,userId:e,pToken:s,currency:a,amount:r,transactionHash:n}=await l.getPaymentInfo(this.orderId)||{},o={merchantId:t,userId:e,pToken:s,currency:a,amount:r,transactionHash:n,callback:this.paymentIqActions,locale:this.lang,storeAccount:!1,showAccounts:"false",singlePageFlow:!0};E(o)}catch(t){return Promise.reject(t)}},paymentIqActions(t){var e;const{SUCCESS:s,FAILURE:a,PENDING:r,UNRESOLVED:n}=_,o=console;switch(o.log("=== PIQ Data Log ==="),o.log(t),t.cbType){case s:return void this.checkStatus();case r:case a:case n:{const s=d[null==(e=t.data)?void 0:e.statusCode];return s?(this.step=R.RESULT,void(this.resultStatus=s)):void this.checkStatus()}default:return}},async checkStatus(){try{const{status:t,redirectUrl:e}=await l.getTransactionResult(this.orderId)||{};if(e)return void(window.location=e);this.step=R.RESULT,this.resultStatus=t}catch(t){return Promise.reject(t)}}}},N={class:"pay-widget-container"},g={key:0,id:"paymentiqCashier",class:"paymentiq-cashier"};const U=A(C,[["render",function(t,r,i,c,u,I){const p=e("PayApiResult");return a(),n("div",N,[u.step===u.PAY_API_STEP.INITIAL?(a(),n("div",g)):u.step===u.PAY_API_STEP.RESULT?(a(),s(p,{key:1,status:u.resultStatus},null,8,["status"])):o("",!0)])}],["__scopeId","data-v-941f65e2"]]);export{U as default};
2//# sourceMappingURL=h6r47KZe.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.