PageSourceSearch

https://www.tabi.lol/assets/status-BWxQpN5W.js

js tabi.lol collected 2026-10-01 15:16:21 UTC 4,180 bytes, 1 lines download raw bytes

1import{r as t,at as d,aj as f,l as C,b as w,j as s,ag as g,w as h,B as L}from"./index-WbIxiSre.js";import{u as p,P as i}from"./scan-CeZEiOEg.js";import{u as E}from"./index-BiPHCEHW.js";var v=function(n,a,e){e===void 0&&(e={});var r=E(n),o=t.useRef(null),m=t.useCallback(function(){o.current&&clearInterval(o.current)},[]);return t.useEffect(function(){if(!(!d(a)||a<0))return e.immediate&&r(),o.current=setInterval(r,a),m},[a,e.immediate]),m};const b=({title:n,titleId:a,...e},r)=>t.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 60 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":a,...e},n?t.createElement("title",{id:a},n):null,t.createElement("path",{d:"M30 5C43.8 5 55 16.2 55 30C55 43.8 43.8 55 30 55C16.2 55 5 43.8 5 30C5 16.2 16.2 5 30 5ZM30 50C41.05 50 50 41.05 50 30C50 18.95 41.05 10 30 10C18.95 10 10 18.95 10 30C10 41.05 18.95 50 30 50ZM38.8387 17.6256L42.3742 21.1612L30 33.5355L26.4645 30L38.8387 17.6256Z",fill:"#EAA13B"})),N=t.forwardRef(b),j=({title:n,titleId:a,...e},r)=>t.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":a,...e},n?t.createElement("title",{id:a},n):null,t.createElement("path",{d:"M10.5 30C10.5 18.9543 19.4543 10 30.5 10C41.5457 10 50.5 18.9543 50.5 30C50.5 41.0457 41.5457 50 30.5 50C19.4543 50 10.5 41.0457 10.5 30ZM30.5 5C16.6929 5 5.5 16.1929 5.5 30C5.5 43.807 16.6929 55 30.5 55C44.307 55 55.5 43.807 55.5 30C55.5 16.1929 44.307 5 30.5 5ZM44.1427 23.6428L40.6073 20.1072L28 32.7145L21.0178 25.7323L17.4822 29.2677L28 39.7855L44.1427 23.6428Z",fill:"#5EC16A"})),B=t.forwardRef(j),y=({title:n,titleId:a,...e},r)=>t.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":a,...e},n?t.createElement("title",{id:a},n):null,t.createElement("path",{d:"M30.5 55C16.6929 55 5.5 43.807 5.5 30C5.5 16.1929 16.6929 5 30.5 5C44.307 5 55.5 16.1929 55.5 30C55.5 43.807 44.307 55 30.5 55ZM30.5 50C41.5457 50 50.5 41.0457 50.5 30C50.5 18.9543 41.5457 10 30.5 10C19.4543 10 10.5 18.9543 10.5 30C10.5 41.0457 19.4543 50 30.5 50ZM30.5 26.4645L37.571 19.3934L41.1065 22.9289L34.0355 30L41.1065 37.071L37.571 40.6065L30.5 33.5355L23.4289 40.6065L19.8934 37.071L26.9645 30L19.8934 22.9289L23.4289 19.3934L30.5 26.4645Z",fill:"#FF323F"})),M=t.forwardRef(y);function Z(){const{state:n}=f(),{orderNo:a}=n||{},{data:e,refetch:r}=p(a),o=C(),m=v(async()=>{var u;const x=await r();[i.FAILED,i.CANCELLED,i.EXPIRED,i.SUCCESS].includes((u=x.data)==null?void 0:u.status)&&m()},2e3);t.useEffect(()=>()=>{m()},[]);const{t:l}=w(),c=t.useMemo(()=>(e==null?void 0:e.status)===i.SUCCESS?{text:l("scan.Payment success"),icon:s.jsx(B,{}),subText:"",detail:"",iconClassName:""}:[i.FAILED,i.CANCELLED,i.EXPIRED].includes(e==null?void 0:e.status)?{text:l("scan.Payment failed"),icon:s.jsx(M,{}),subText:"",detail:"",iconClassName:""}:{text:l("scan.Payment is processing..."),icon:s.jsx(N,{}),subText:l("scan.Verifying transaction, please wait."),detail:l("scan.The payment is being processed in the background. You can close this page or check it in the history."),iconClassName:"animate-spin"},[e==null?void 0:e.status,l]);return s.jsxs(s.Fragment,{children:[s.jsx(g,{title:"Tabi Wallet",onBack:()=>o("/scan",{replace:!0})}),s.jsxs("div",{className:"pt-[170px]",children:[s.jsx("div",{className:h("w-[60px] h-[60px] mx-auto",c.iconClassName),children:c.icon}),s.jsx("div",{className:"self-stretch text-black text-[22px] font-semibold leading-[normal] text-center mt-[20px]",children:c.text}),!!c.subText&&s.jsx("div",{className:"text-[#5B5B5B] text-sm font-normal leading-[normal] text-center mt-[12px]",children:c.subText}),s.jsxs("div",{className:"max-w-[550PX] fixed bottom-0 left-1/2 -translate-x-1/2 pb-safe-or-6 px-5 w-full py-6",children:[!!c.detail&&s.jsx("div",{className:"w-full text-[#5B5B5B] text-center text-xs font-normal leading-[18px]",children:c.detail}),s.jsx(L,{type:"large",className:"w-full mt-6",onClick:()=>{o("/billing/aeon",{state:{id:e==null?void 0:e.order_no,isFromScan:!0}})},children:l("scan.View details")})]})]})]})}export{Z 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.