1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0f23b-3050-0000-9f5a-10c1aad2e1b6";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="d1c1f9f2-4eba-5ae2-892e-80b038b31b6a")}catch(e){}}();import{j as t,cd as M,bu as m,r as d,ce as b,bJ as j,b$ as E,bC as v,c1 as L,bR as T}from"../jse/index-index-C-ZSJqRk.js";import{g as S,u as I}from"./index-CwwgwO2L.js";import{t as _,v as k,C as q,y as A,P as U,U as D,D as H,z as O}from"./WechatQrCodeModal-COaixSrk.js";import"./useTranslation-CkInUBVD.js";function F(){return window.self===window.top?null:t.jsx(W,{})}function W(){const{defaultQrcodeRef:h,qrcodeModalRefs:y,cashAppQrcodeRef:C,wechatQrcodeRef:g,pixQrcodeRef:w,upiQrcodeRef:R}=_(),{handleRedirectOrQrcode:c}=k({qrcodeModalRefs:y});function s(e){window.parent.postMessage({from:"_clink",type:"third_party_payment_complete",data:{status:e}},"*")}const[P]=M(),i=m(e=>e.setCurrentLocale),p=m(e=>e.setCached),l=P.get("locale");d.useEffect(()=>{p(!0);const e=b(l??"");i(e),j.changeLanguage(e)},[l,i,p]);const f=E().sessionId??"";d.useEffect(()=>{window.parent.postMessage({type:"qrcode_response_required"},"*")},[]),d.useEffect(()=>{async function e(u){const n=u.data;if(typeof u.data=="object"){if(!["sessionId","paymentResponse"].every(o=>Reflect.has(n.data,o)))throw new Error("payResponse is not a valid third-party payment response");try{const o=await S(f,{errorMessageMode:"none"}),{tokenValue:x}=o;I.getState().setToken(x);const r=n.data.paymentResponse.channelPaymentResponse.action?.type;r&&O.find(Q=>Q.value===r)&&v.getState().setCurrentPaymentType(r),await c(n.data.paymentResponse,{orderId:"",clickUuid:T(64),paymentMethod:L().paymentType})}catch{}}}return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[c,f]);const a={closable:!1,mask:{blur:!1,enabled:!1},styles:{root:{"--ant-box-shadow":"none","--ant-line-width-focus":"0"}}};return t.jsxs("div",{id:"qrcode-hosted-page",children:[t.jsx(q,{ref:C,onComplete:s,modalProps:a}),t.jsx(A,{ref:g,onComplete:s,modalProps:a}),t.jsx(U,{ref:w,onComplete:s,modalProps:a}),t.jsx(D,{ref:R,onComplete:s,modalProps:a}),t.jsx(H,{ref:h,onComplete:s,modalProps:a})]})}export{F as default}; 2 3//# chunkId=d1c1f9f2-4eba-5ae2-892e-80b038b31b6a
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.