1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1794],{7228:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/payment/yuequ",function(){return r(67661)}])},27004:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>A});var a=r(37876),n=r(14232),i=r(10748),o=r(32937),l=r(52563),s=r(6445),c=r(72636),d=r(69877),p=r(94822),x=r(84528),h=r(96988),m=r(98145),u=r(35831);let y=({num:e})=>(0,a.jsx)(o.A,{sx:{backgroundColor:"#aaa",color:"white",minWidth:40,minHeight:40,borderRadius:"50%",lineHeight:"40px",fontSize:16,textAlign:"center",fontWeight:"bold"},children:e}),g=({router:e})=>{let t,r,[i,o]=(0,n.useState)(300);(0,m.A)();let p=Object.entries(e.query).map(([e,t])=>({key:e,value:t}));return(0,n.useEffect)(()=>(t=setInterval(()=>{i>0&&o(e=>e-1)},1e3),r=setInterval(async()=>{let e=await c.WG.getPaymentStatus({region:h.A.getState().region,body:p});if(e&&e.payStatus&&0!==e.payStatus){let t=e.redirectURL??d.J.thankYou;window.location.href=t}},3e4),()=>{clearInterval(t),clearInterval(r)}),[]),(0,n.useEffect)(()=>{i<=0&&(clearInterval(t),clearInterval(r),window.location.href=d.J.thankYou)},[i]),(0,a.jsx)(l.A,{sx:{mx:1,color:s.A[600],fontWeight:"bold",fontSize:20},children:i>0?`0${Math.floor(i/60)}:${(i%60).toString().padStart(2,"0")}`:"00:00"})},f=({index:e,caption:t})=>(0,a.jsxs)(o.A,{sx:{display:"flex",alignItems:"center",mt:1},children:[(0,a.jsx)(y,{num:e}),(0,a.jsx)(o.A,{sx:{mx:1.5},children:t})]}),A=({paymentStatus:e,payAmount:t,payCurr:r,router:n,paymentType:s})=>{let{t:c}=(0,u.Bd)(),h=n.query.payURL?decodeURIComponent(n.query.payURL):n.query.QRCode?n.query.QRCode:"",m=(e=>{switch(e){case"wechat":return{name:"WeChat Pay",imageUrl:"http://a.cdnsbn.com/images/common/payment_wechatpayjan24.png",imageHeight:"80",fgColor:"#09B83E",eyeColor:"#09B83E"};case"alipay":return{name:"Alipay",imageUrl:"http://a.cdnsbn.com/images/common/payment_alipayfeb24.png",fgColor:"#0375f6",eyeColor:"#0375f6"};case"pix":return{name:"PIX",imageUrl:"https://a.cdnsbn.com/images/common/payment/pix.jpg",imageHeight:"80",fgColor:"#32BCAD",eyeColor:"#32BCAD"};default:return{name:"Payment",imageUrl:"",fgColor:"#000000",eyeColor:"#000000"}}})(s);return(0,a.jsxs)(o.A,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:[(0,a.jsx)(x.A,{children:(0,a.jsx)("img",{src:m.imageUrl,height:m.imageHeight,alt:m.name})}),(0,a.jsxs)(o.A,{sx:{backgroundColor:"#fafafa",flex:"1 1 100%",py:2},children:[(0,a.jsxs)(x.A,{sx:{textAlign:"center"},children:[(0,a.jsxs)(l.A,{children:[(0,a.jsx)("span",{children:e?.soid??""}),(0,a.jsxs)("span",{style:{margin:"0 8px"},children:["(",r??e?.payCurr,": $",t??e?.payAmount??0,")"]})]}),(0,a.jsx)(l.A,{sx:{fontWeight:"bold",fontSize:20,my:1},children:c("arr801").replace("%s",m.name)}),(0,a.jsx)(o.A,{sx:{width:270,height:270,margin:"0 auto"},children:(0,a.jsx)(i.rg,{id:"payme-qrcode",value:h,bgColor:"white",fgColor:m.fgColor,size:250,eyeRadius:5,eyeColor:m.eyeColor,qrStyle:"dots",logoWidth:50,logoPadding:10})}),(0,a.jsxs)(o.A,{sx:{my:3,display:"inline-flex",alignItems:"center"},children:[c("arr802")," ",(0,a.jsx)(g,{router:n})]}),(0,a.jsx)(l.A,{children:c("arr803")})]}),(0,a.jsxs)(x.A,{sx:{borderTop:"1px solid #ccc",pt:2,mt:2},children:[(0,a.jsx)(l.A,{sx:{fontWeight:"bold",fontSize:20,mb:1},children:c("arr804").replace("%s",m.name)}),(0,a.jsxs)(p.Y,{children:[(0,a.jsx)(f,{index:1,caption:c("arr805").replace("%s",m.name)}),(0,a.jsx)(f,{index:2,caption:c("arr806")}),(0,a.jsx)(f,{index:3,caption:c("arr807")})]}),(0,a.jsx)(o.A,{sx:{mt:2,display:"inline-flex"},children:(0,a.jsx)(l.A,{sx:{color:"#888",cursor:"pointer",":hover":{textDecoration:"underline"}},onClick:()=>window.location.href=d.J.thankYou,children:c("arr808")})})]})]})]})}},38362:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=({children:e})=>e},67661:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>s,default:()=>c});var a=r(37876),n=r(89099),i=r(38362),o=r(27004);let l=e=>{let{paymentStatus:t,payAmount:r,payCurr:i}=e,l=(0,n.useRouter)(),s=l.query.type,c="wechat";return"alipay"===s?c="alipay":"wechat"===s&&(c="wechat"),(0,a.jsx)(o.Ay,{paymentStatus:t,payAmount:r,payCurr:i,router:l,paymentType:c})};l.layout=i.A;var s=!0;let c=l},94822:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i});var a=r(13224),n=r(76252);let i=n.A.div` 2 display: grid; 3 grid-template-columns: auto auto auto; 4 gap: 20px; 5 6 ${(0,a.B)("mobile")} { 7 display: block; 8 margin-top: 15px; 9 } 10`}},e=>{e.O(0,[8086,636,6593,8792],()=>e(e.s=7228)),_N_E=e.O()}]);
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.