PageSourceSearch

https://mintminer.com/assets/AirwallexPaymentView-B8lpCeaG.js

js mintminer.com collected 2026-10-06 08:10:15 UTC 3,691 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-misc-B-nM3tYW.js","assets/vendor-vue-Dzwqm9Y9.js","assets/vendor-misc-DB0Q8XAf.css"])))=>i.map(i=>d[i]);
2import{z as k,_ as b}from"./index-BB-1BiLf.js";import{d as T,r as y,o as E,D as N,K as C,B as a,z as _,k as I,G as d,u,Z as S,X as P,C as m}from"./vendor-vue-Dzwqm9Y9.js";import{_ as R}from"./AppLayout.vue_vue_type_script_setup_true_lang-DU-NXSvm.js";import{r as A,P as L}from"./paymentFlow-cys_N5rS.js";import{u as z}from"./vendor-i18n-BuoWFzps.js";import"./vendor-misc-B-nM3tYW.js";import"./AppHeader.vue_vue_type_style_index_0_scoped_80f3916c_lang-CWJeTQGo.js";import"./useClipboard-00CrFCqB.js";import"./featureFlags-DuhANbyz.js";import"./LocaleSwitcher-DwqRgoPh.js";/* empty css                                                                       */const B={class:"mx-auto max-w-lg space-y-6 py-8"},V={key:0,class:"flex items-center justify-center py-20"},M={key:1,class:"card p-8 text-center"},O={class:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-red-100 dark:bg-red-900/30"},Y={class:"text-lg font-semibold text-gray-900 dark:text-white"},q={class:"mt-2 text-sm text-gray-500 dark:text-gray-400"},D={key:2,class:"card p-6"},F={class:"flex flex-col items-center space-y-4 py-4"},U={class:"text-sm text-gray-500 dark:text-gray-400"},re=T({__name:"AirwallexPaymentView",setup($){const{t:n,locale:f}=z(),w=P(),x=S(),i=y(!0),l=y("");function s(t){const e=w.query[t];return Array.isArray(e)?e[0]||"":typeof e=="string"?e:""}function g(t){const e=new URL("/payment/result",window.location.origin),o=s("order_id"),r=s("out_trade_no"),c=s("resume_token");return(o||t.orderId>0)&&e.searchParams.set("order_id",o||String(t.orderId)),(r||t.outTradeNo)&&e.searchParams.set("out_trade_no",r||t.outTradeNo),(c||t.resumeToken)&&e.searchParams.set("resume_token",c||t.resumeToken),e.toString()}function h(){if(typeof window>"u")return null;const t=Number(s("order_id"))||0,e=s("out_trade_no"),o=s("resume_token"),r=A(window.localStorage.getItem(L),o?{resumeToken:o}:{});return!r||r.paymentType!=="airwallex"||t>0&&r.orderId!==t||e&&r.outTradeNo!==e||!r.intentId||!r.clientSecret?null:r}return E(async()=>{const t=h(),e=f.value.toLowerCase().startsWith("zh")?"zh":"en";if(!t){i.value=!1,l.value=n("payment.airwallexMissingParams");return}try{const r=await(await k(()=>import("./vendor-misc-B-nM3tYW.js").then(v=>v.i),__vite__mapDeps([0,1,2]))).init({env:t.paymentEnv==="prod"?"prod":"demo",enabledElements:["payments"],locale:e});i.value=!1;const c={intent_id:t.intentId,client_secret:t.clientSecret,currency:t.currency||"CNY",country_code:t.countryCode||"CN",successUrl:g(t)};if(!r.payments)throw new Error(n("payment.airwallexLoadFailed"));const p=r.payments.redirectToCheckout(c);typeof p=="string"&&p&&window.location.assign(p)}catch(o){i.value=!1,l.value=o instanceof Error&&o.message?o.message:n("payment.airwallexLoadFailed")}}),(t,e)=>(m(),N(R,null,{default:C(()=>[a("div",B,[i.value?(m(),_("div",V,[...e[1]||(e[1]=[a("div",{class:"h-8 w-8 animate-spin rounded-full border-4 border-emerald-500 border-t-transparent"},null,-1)])])):l.value?(m(),_("div",M,[a("div",O,[I(b,{name:"exclamationCircle",size:"xl",class:"text-red-500"})]),a("h3",Y,d(u(n)("payment.airwallexLoadFailed")),1),a("p",q,d(l.value),1),a("button",{class:"btn btn-primary mt-6",onClick:e[0]||(e[0]=o=>u(x).push("/purchase"))},d(u(n)("payment.result.backToRecharge")),1)])):(m(),_("div",D,[a("div",F,[e[2]||(e[2]=a("div",{class:"h-10 w-10 animate-spin rounded-full border-4 border-emerald-500 border-t-transparent"},null,-1)),a("p",U,d(u(n)("payment.qr.payInNewWindowHint")),1)])]))])]),_:1}))}});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.