(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4052],{29387:function(t){var e;e=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var s,r=function(t,n,i){void 0===i&&(i={});var o,s,r,a,c=new Date(t);return(void 0===(o=i)&&(o={}),(a=e[r=n+"|"+(s=o.timeZoneName||"short")])||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:s}),e[r]=a),a).formatToParts(c)},a=function(e,n){for(var i=r(e,n),s=[],a=0;a=0&&(s[d]=parseInt(u,10))}var p=s[3],h=s[0]+"-"+s[1]+"-"+s[2]+" "+(24===p?0:p)+":"+s[4]+":"+s[5]+":000",f=+e;return(o.utc(h).valueOf()-(f-=f%1e3))/6e4},c=i.prototype;c.tz=function(t,e){void 0===t&&(t=s);var n,i=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:t}),c=Math.round((r-new Date(a))/1e3/60),l=-(15*Math.round(r.getTimezoneOffset()/15))-c;if(Number(l)){if(n=o(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(l,!0),e){var u=n.utcOffset();n=n.add(i-u,"minute")}}else n=this.utcOffset(0,e);return n.$x.$timezone=t,n},c.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=r(this.valueOf(),e,{timeZoneName:t}).find(function(t){return"timezonename"===t.type.toLowerCase()});return n&&n.value};var l=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return l.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return l.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,r=n||e||s,c=a(+o(),r);if("string"!=typeof t)return o(t).tz(r);var l=function(t,e,n){var i=t-60*e*1e3,o=a(i,n);if(e===o)return[i,e];var s=a(i-=60*(o-e)*1e3,n);return o===s?[i,o]:[t-60*Math.min(o,s)*1e3,Math.max(o,s)]}(o.utc(t,i).valueOf(),c,r),u=l[0],d=l[1],p=o(u).utcOffset(d);return p.$x.$timezone=r,p},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){s=t}}},t.exports=e()},89564:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tools/ticket/history",function(){return n(93747)}])},94308:function(t,e){"use strict";e.Z={src:"/_next/static/media/success.d8a92069.svg",height:96,width:96,blurWidth:0,blurHeight:0}},93747:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return O}});var i=n(82729),o=n(85893),s=n(4281),r=n(7159),a=n(61232),c=n(41664),l=n.n(c),u=n(515),d=n(4115),p=n(67294),h=n(21073),f=n(11163),x=n.n(f),m=n(29323),g=n(27484),S=n.n(g),v=n(29387),w=n.n(v),b=n(99260),j=n(81763),_=n(74406),N=n(26181),P=n(58199);function y(){let t=(0,i._)(["\n height: 72px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 0 16px;\n .title {\n font-size: 14px;\n line-height: 20px;\n font-weight: 600;\n }\n .label {\n margin-top: 4px;\n font-size: 12px;\n line-height: 16px;\n color: #60646c;\n }\n"]);return y=function(){return t},t}function k(){let t=(0,i._)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n font-size: 14px;\n line-height: 20px;\n font-weight: 600;\n height: 64px;\n padding: 0 12px;\n border-radius: 8px;\n &:hover {\n background-color: #fff;\n }\n .item {\n flex: 2;\n &:last-child {\n text-align: right;\n flex: 1;\n }\n .time {\n font-size: 12px;\n line-height: 16px;\n font-weight: 400;\n color: #60646c;\n padding-left: 4px;\n }\n .icon {\n margin-left: 4px;\n cursor: pointer;\n }\n &.detail {\n font-size: 12px;\n line-height: 16px;\n font-weight: 400;\n color: #60646c;\n padding-left: 4px;\n cursor: pointer;\n &:hover {\n color: #30a46c;\n }\n }\n }\n"]);return k=function(){return t},t}function E(){let t=(0,i._)(["\n width: 100%;\n max-width: 1440px;\n margin: 0 auto;\n padding: 0 24px;\n\n .header {\n display: flex;\n flex-direction: row;\n align-items: center;\n height: 76px;\n .icon {\n width: 16px;\n height: 16px;\n margin-right: 6px;\n transform: rotate(90deg);\n }\n font-size: 22px;\n line-height: 28px;\n font-weight: 600;\n }\n .container {\n background-color: #f9f9fb;\n border-radius: 12px;\n min-height: 672px;\n margin-bottom: 24px;\n padding: 12px;\n\n overflow: auto;\n\n .scroll-box {\n height: 100%;\n overflow: auto;\n min-width: 1024px;\n\n .loading-area {\n margin-top: 128px;\n }\n }\n .table-header {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 8px;\n min-width: 1024px;\n\n .header-title {\n flex: 2;\n font-size: 12px;\n line-height: 16px;\n font-weight: 600;\n color: #65636d;\n &:last-child {\n text-align: right;\n flex: 1;\n }\n }\n }\n }\n "," {\n width: 100%;\n\n .header {\n height: 56px;\n padding: 0 16px;\n font-size: 16px;\n line-height: 24px;\n font-weight: 600;\n .icon {\n margin-right: 12px;\n }\n }\n .container {\n padding: 0;\n background-color: unset;\n border-radius: 0;\n .table-header {\n display: none;\n min-width: unset;\n }\n .scroll-box {\n height: calc(100vh);\n overflow: auto;\n min-width: unset;\n }\n }\n }\n"]);return E=function(){return t},t}S().extend(w());var O=!0;e.default=(0,m.Pi)(()=>{let{t}=(0,a.$G)("tools"),[e,n]=(0,p.useState)([]),[i,c]=(0,p.useState)(!1),u=(0,p.useRef)(null),d=[{title:t("txn.type")},{title:t("tools.ticket.token")},{title:t("tools.ticket.state")},{title:t("tools.ticket.id")},{title:t("txn.time")},{title:t("tools.update.time")},{title:t("tools.ticket.operation")}];return(0,p.useEffect)(()=>{if(h.account.isInited&&!h.account.isLogin){let t=encodeURIComponent("https://".concat(j.OB.wwwDomain,"/tools/ticket"));x().push("/login?backurl=".concat(t))}},[h.account]),(0,p.useEffect)(()=>{(!h.account.isInited||h.account.isLogin)&&(c(!0),r.nA.getMemoRecoveryList().then(t=>{(0,_.Z)(t)&&n(t)}).catch(s.Notify).finally(()=>{c(!1)}))},[h.account]),(0,p.useEffect)(()=>{if(!h.account.isInited||h.account.isLogin)return u.current&&clearInterval(u.current),e.filter(t=>![2,5].includes(t.status)).length>0&&(u.current=setInterval(()=>{r.nA.getMemoRecoveryList().then(t=>{(0,_.Z)(t)&&n(t)}).catch(s.Notify)},15e3)),()=>{u.current&&clearInterval(u.current)}},[h.account,e]),(0,o.jsxs)(D,{children:[(0,o.jsxs)(l(),{className:"header",href:"./",children:[(0,o.jsx)(s.Icon,{name:"Arrow",className:"icon"}),(0,o.jsx)("div",{children:t("tools.ticket.ticket.history")})]}),(0,o.jsxs)("div",{className:"container",children:[(0,o.jsx)("div",{className:"table-header",children:d.map((t,e)=>(0,o.jsx)("div",{className:"header-title",children:t.title},e))}),(0,o.jsxs)("div",{className:"scroll-box",children:[i&&(0,o.jsx)(s.Loading,{}),!i&&0===e.length&&(0,o.jsx)(N.Z,{type:"nodata"}),!i&&e.length>0&&(0,o.jsx)(s.FlatList,{data:e,windowScroll:!0,getItemSize:()=>h.B.isMobile?64:72,renderItem:t=>(0,o.jsx)(z,{...t})})]})]})]})});let z=(0,m.Pi)(t=>{let{t:e}=(0,a.$G)("tools"),n=()=>{s.pop.push((0,o.jsx)(u.Z,{detail:t}))};return h.B.isMobile?(0,o.jsxs)(I,{onClick:n,children:[(0,o.jsxs)(s.Layout.RowBetween,{children:[(0,o.jsx)("div",{className:"title",children:t.question_type===P.bR.NotReceived?e("tools.ticket.option1"):e("tools.ticket.option2")}),(0,o.jsx)("div",{className:"title",children:(0,o.jsx)(d.m,{status:t.status})})]}),(0,o.jsxs)(s.Layout.RowBetween,{children:[(0,o.jsx)("div",{className:"label",children:"".concat((0,j.eu)(t.quantity)," ").concat(t.symbol)}),(0,o.jsx)("div",{className:"label",children:"".concat([P.ZB.SupportStatus_Inject,P.ZB.SupportStatus_Pass,P.ZB.SupportStatus_Pending,P.ZB.SupportStatus_Success].includes(t.status)?"Updated at":""," ").concat(S()(t.updated).format("YYYY/MM/DD HH:mm:ss"))})]})]}):(0,o.jsxs)(C,{children:[(0,o.jsx)("div",{className:"item",children:t.question_type===P.bR.NotReceived?e("tools.ticket.option1"):e("tools.ticket.option2")}),(0,o.jsx)("div",{className:"item",children:"".concat(t.quantity," ").concat(t.symbol)}),(0,o.jsx)("div",{className:"item",children:(0,o.jsx)(d.m,{status:t.status})}),(0,o.jsxs)(s.Layout.RowMiddle,{className:"item",children:[(0,o.jsxs)("div",{children:[t.record_id.slice(0,6)+"..."+t.record_id.slice(-6)," "]}),(0,o.jsx)(s.Icon,{name:"copy",onClick:()=>{(0,b.Copy)(t.record_id),(0,s.Notify)(e("txn.copied"))},className:"icon"})]}),(0,o.jsxs)(s.Layout.RowMiddle,{className:"item",children:[(0,o.jsx)("span",{children:S()(t.created).format("HH:mm:ss")}),(0,o.jsx)("span",{className:"time",children:S()(t.created).format("YYYY/MM/DD")})]}),(0,o.jsxs)(s.Layout.RowMiddle,{className:"item",children:[(0,o.jsx)("span",{children:S()(t.updated).format("HH:mm:ss")}),(0,o.jsx)("span",{className:"time",children:S()(t.updated).format("YYYY/MM/DD")})]}),(0,o.jsx)("div",{className:"item detail",onClick:n,children:t.status===P.ZB.SupportStatus_Inject?e("tools.viewreason"):e("tools.details")})]})}),I=j.zo.div(y()),C=j.zo.div(k()),D=j.zo.div(E(),j.Uh.mobile)},58199:function(t,e,n){"use strict";var i,o,s,r,a,c,l,u,d,p,h,f,x,m,g,S,v,w,b,j,_,N,P,y,k,E,O,z,I,C,D,L,A,R,M,B,Z,T,Y,U,F,$,W,G;n.d(e,{AO:function(){return S},hh:function(){return u},mQ:function(){return w},kN:function(){return b},up:function(){return v},Qv:function(){return d},gl:function(){return c},wY:function(){return i},rk:function(){return x},y3:function(){return o},o0:function(){return a},ZB:function(){return h},bR:function(){return f},gA:function(){return l},oZ:function(){return j}}),n(67294),(P=i||(i={}))[P.EnterEmailOrMobile=0]="EnterEmailOrMobile",P[P.UsePasswordLogin=1]="UsePasswordLogin",P[P.SignUp=2]="SignUp",P[P.SetPassword=3]="SetPassword",P[P.RetrievePasswordStage1=4]="RetrievePasswordStage1",P[P.RetrievePasswordStage2=5]="RetrievePasswordStage2",P[P.RetrievePasswordStage3=6]="RetrievePasswordStage3",P[P.ScanLogin=7]="ScanLogin",P[P.ReferralCode=8]="ReferralCode",P[P.PassKey=9]="PassKey",P[P.PassKeyFailed=10]="PassKeyFailed",P[P.AuthorizeDevice=11]="AuthorizeDevice",P[P.AuthorizeEmailOrPhone=12]="AuthorizeEmailOrPhone",P[P.AuthDeviceSuccess=13]="AuthDeviceSuccess",P[P.SignUpPhone=14]="SignUpPhone",P[P.AuthorizePhone=15]="AuthorizePhone",P[P.ResetPassPhone=16]="ResetPassPhone",P[P.VerificationCodeLogin=17]="VerificationCodeLogin",P[P.VerificationCodePhone=18]="VerificationCodePhone",(y=o||(o={}))[y.NONE=0]="NONE",y[y.PHONE_CODE=1]="PHONE_CODE",y[y.MAIL_CODE=2]="MAIL_CODE",y[y.PHONE_PASSWD=3]="PHONE_PASSWD",y[y.PAY_PASS=4]="PAY_PASS",y[y.GOOGLE_CODE=5]="GOOGLE_CODE",y[y.CAPTCHA_CODE=6]="CAPTCHA_CODE",y[y.EMAIL_PASSWD=7]="EMAIL_PASSWD",y[y.MODIFY_PASSWD=8]="MODIFY_PASSWD",(k=s||(s={}))[k.Home=0]="Home",k[k.Job=1]="Job",(E=r||(r={}))[E.ContentWriter=0]="ContentWriter",E[E.LocalizationTranslator=1]="LocalizationTranslator",E[E.UserExperienceDesigner=2]="UserExperienceDesigner",E[E.ProductManager=3]="ProductManager",E[E.YouTubeVideoProducer=4]="YouTubeVideoProducer",(O=a||(a={})).noSend="0",O.pay="1",O.payed="2",O.reject="-3",(z=c||(c={}))[z.Long=0]="Long",z[z.Short=1]="Short",(I=l||(l={}))[I.BUY=0]="BUY",I[I.SELL=1]="SELL",(C=u||(u={}))[C.BUY=0]="BUY",C[C.SELL=1]="SELL",(D=d||(d={}))[D.Fixed=1]="Fixed",D[D.Flexible=2]="Flexible",(L=p||(p={}))[L.Process=0]="Process",L[L.Profiting=1]="Profiting",L[L.Ending=2]="Ending",L[L.Profit_Adding=3]="Profit_Adding",L[L.Ended=4]="Ended",L[L.Early_Redem=5]="Early_Redem",(A=h||(h={}))[A.SupportStatus_Init=0]="SupportStatus_Init",A[A.SupportStatus_Pass=1]="SupportStatus_Pass",A[A.SupportStatus_Inject=2]="SupportStatus_Inject",A[A.SupportStatus_Pending=3]="SupportStatus_Pending",A[A.SupportStatus_StopInAccount=4]="SupportStatus_StopInAccount",A[A.SupportStatus_Success=5]="SupportStatus_Success",(R=f||(f={}))[R.NotReceived=1]="NotReceived",R[R.WithdrawFail=2]="WithdrawFail",(M=x||(x={}))[M.sms=0]="sms",M[M.whatsapp=1]="whatsapp",M[M.telegram=2]="telegram",(B=m||(m={})).image=".png,.jpg,.jpeg,.webp,.etc",B.video=".mp4,.avi,.mkv,.wmv,.flv,.mov,.webm,.3gp,.h265,.etc",(Z=g||(g={}))[Z.UNKNOWN=0]="UNKNOWN",Z[Z.TEXT=1]="TEXT",Z[Z.IMAGE=2]="IMAGE",Z[Z.VIDEO=3]="VIDEO",(T=S||(S={}))[T.UNKNOWN=0]="UNKNOWN",T[T.EXEMPT=1]="EXEMPT",T[T.PENDING=2]="PENDING",T[T.SUBMITTING=3]="SUBMITTING",T[T.REJECTED=4]="REJECTED",T[T.APPROVED=5]="APPROVED",(Y=v||(v={}))[Y.Status_Created=0]="Status_Created",Y[Y.Status_WaitConfirm=1]="Status_WaitConfirm",Y[Y.Status_Confirm=2]="Status_Confirm",Y[Y.Status_USED=3]="Status_USED",Y[Y.Status_Expire=-1]="Status_Expire",(U=w||(w={})).OrderPending="Order pending for a long time",U.OrderExpiredFailed="Order expired/failed, buy payment made",U.CannotBePlaced="Order cannot be placed",U.Others="Others",U.FiatNotReceived="Fiat not received",(F=b||(b={}))[F.Buy=1]="Buy",F[F.Sell=2]="Sell",($=j||(j={}))[$.Pending=1]="Pending",$[$.Rejected=2]="Rejected",$[$.Approved=3]="Approved",$[$.Faild=4]="Faild",(W=_||(_={}))[W.inside=0]="inside",W[W.appInside=1]="appInside",W[W.outer=2]="outer",W[W.none=3]="none",(G=N||(N={}))[G.tool=0]="tool",G[G.products=2]="products",G[G.bot=3]="bot",G[G.resource=4]="resource",G[G.payments=5]="payments",G[G.earn=6]="earn",G[G.trade=7]="trade"},29787:function(t,e,n){"use strict";var i=n(85893),o=n(4281),s=n(41686),r=n(25675),a=n.n(r),c=n(94308),l=n(11163),u=n.n(l),d=n(61232);e.Z=()=>{let{t}=(0,d.$G)("tools");return(0,i.jsxs)(p,{closeable:!1,children:[(0,i.jsxs)(o.Layout.ColCenter,{className:"title-box",children:[(0,i.jsx)(a(),{src:c.Z,alt:"success-img",className:"success-img"}),(0,i.jsx)("div",{className:"text-sub",children:t("tools.submit.title")}),(0,i.jsx)("div",{className:"text-label",children:t("tools.submit.label")})]}),(0,i.jsxs)(o.Layout.RowMiddle,{className:"container",children:[(0,i.jsx)(o.Button,{className:"button view",onClick:()=>{u().pathname.includes("/tools/ticket/history")?(o.pop.close(),u().reload()):(o.pop.close(),u().push("./ticket/history"))},children:t("tools.submit.verify")}),(0,i.jsx)(o.Button,{className:"button",onClick:o.pop.back,children:t("tools.submit.got")})]})]})};let p=(0,s.ZP)(o.Pop).withConfig({componentId:"sc-f3f8e144-0"})(["width:428px;.title-box{.success-img{width:96px;height:96px;align-self:center;}.text-sub{font-size:24px;line-height:36px;font-weight:600;margin-top:24px;text-align:center;}.text-label{font-size:16px;line-height:24px;font-weight:400;margin-top:12px;text-align:center;}}.container{gap:12px;.button{margin-top:24px;flex:1;height:48px;border-radius:12px;background-color:#bdee63;font-size:16px;line-height:24px;font-weight:600;&.view{background-color:#f0f0f3;}}}"])},515:function(t,e,n){"use strict";var i=n(82729),o=n(85893),s=n(4281),r=n(67294),a=n(4115),c=n(7159),l=n(29787),u=n(61232),d=n(81763),p=n(58199),h=n(30381),f=n.n(h);function x(){let t=(0,i._)(["\n width: 428px;\n .container {\n margin-top: 16px;\n .drap-input {\n width: 0;\n height: 0;\n position: absolute;\n opacity: 0;\n }\n }\n .button {\n margin-top: 24px;\n width: 100%;\n height: 48px;\n border-radius: 12px;\n background-color: #bdee63;\n font-size: 16px;\n line-height: 24px;\n font-weight: 600;\n }\n"]);return x=function(){return t},t}function m(){let t=(0,i._)(["\n cursor: pointer;\n text-decoration: underline;\n &:hover {\n opacity: 0.7;\n }\n"]);return m=function(){return t},t}function g(){let t=(0,i._)(["\n border-radius: 12px;\n font-size: 12px;\n line-height: 16px;\n padding: 12px;\n margin: 6px 0;\n &.loading {\n background-color: rgba(0, 0, 85, 0.02);\n color: #60646c;\n }\n &.completed {\n background-color: rgba(0, 0, 85, 0.02);\n color: #60646c;\n }\n &.resubmit {\n background-color: rgba(255, 191, 1, 0.19);\n color: #ab6400;\n }\n"]);return g=function(){return t},t}function S(){let t=(0,i._)(["\n align-items: flex-start;\n padding: 6px 0;\n .title {\n font-size: 14px;\n line-height: 20px;\n color: #8b8d98;\n }\n .right-box {\n max-width: 50%;\n .value {\n font-size: 14px;\n line-height: 20px;\n font-weight: 500;\n word-wrap: break-word;\n max-width: 100%;\n text-align: right;\n }\n }\n"]);return S=function(){return t},t}e.Z=t=>{var e,n;let{detail:i}=t,{t:h}=(0,u.$G)("tools"),f=(0,r.useRef)(null),[x,m]=(0,r.useState)(),{upload:g}=d.PT.useUploadFileToS3(),[S,j]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{(async()=>{if(x)try{j(!0);let t=await c.nA.uploadPictureApi([{name:x.name,content_type:x.type,size:x.size,watermark:"CWallet"}]),e=null==t?void 0:t[0];if(!e)return(0,s.Notify)(h("tools.upload.notify2"));await g(x,e.upload_url,e.headers),await c.nA.updateTicketProof({record_id:i.record_id,proof_url:e.visit_url}),s.pop.close(),s.pop.push((0,o.jsx)(l.Z,{}))}catch(t){(0,s.Notify)(t)}finally{j(!1)}})()},[x]),(0,o.jsx)(v,{title:h("tools.ticket.title"),children:(0,o.jsxs)("div",{className:"container",children:[(0,o.jsx)(w,{title:h("tools.ticket.id"),value:i.record_id}),(0,o.jsx)(w,{title:h("tools.ticket.type"),value:i.question_type===p.bR.NotReceived?h("tools.ticket.option1"):h("tools.ticket.option2")}),(0,o.jsx)(w,{title:h("tools.ticket.state"),children:(0,o.jsx)(a.m,{status:i.status})}),(0,o.jsx)(b,{status:i.status,reason:i.inject_reason,time:i.planed_pay_time}),(0,o.jsx)(w,{title:h("tools.ticket.token"),value:"".concat((0,d.eu)(i.quantity)," ").concat(i.symbol)}),(0,o.jsx)(w,{title:h("tools.service"),value:"".concat(p.ZB.SupportStatus_Success!==i.status?h("tools.coin.fee.planed"):""," ").concat((0,d.eu)(null!==(e=i.service_fee)&&void 0!==e?e:0)," ").concat(i.symbol)}),(0,o.jsx)(w,{title:"Index",value:null!==(n=i.index)&&void 0!==n?n:"-"}),(0,o.jsx)(w,{title:h("tools.ticket.tx"),value:i.tx_hash}),2===i.status?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.Button,{loading:S,className:"button",onClick:()=>{var t;return null===(t=f.current)||void 0===t?void 0:t.click()},children:h("tools.ticket.resubmit")}),(0,o.jsx)("input",{ref:f,className:"drap-input",size:52428800,type:"file",accept:".mp4",onChange:t=>{var e;let n=null===(e=t.target.files)||void 0===e?void 0:e[0];if(n){if(n.size>52428800){(0,s.Notify)(h("tools.upload.notify1"));return}m(n),f.current&&(f.current.value="")}}})]}):null]})})};let v=(0,d.zo)(s.Pop)(x()),w=t=>{let{title:e,value:n,children:i}=t;return(0,o.jsxs)(N,{children:[(0,o.jsx)("div",{className:"title",children:e}),(0,o.jsxs)(s.Layout.RowMiddle,{className:"right-box",children:[n&&(0,o.jsx)("div",{className:"value",children:n}),i]})]})},b=t=>{let{status:e,reason:n,time:i}=t,{t:a}=(0,u.$G)("tools"),c=(0,r.useMemo)(()=>({0:a("tools.ticket.key.hours"),1:a("tools.ticket.key.minutes"),2:a("tools.ticket.key.seconds")}),[]),[l]=d.PT.useCountdown(f().utc(i).valueOf()),h=(0,r.useMemo)(()=>{let[t,e,n,i]=l;return[(24*Number(t)+Number(e)).toString().padStart(2,"0"),n,i]},[l]);switch(e){case p.ZB.SupportStatus_Success:return(0,o.jsx)(_,{className:"completed",children:(0,o.jsx)("div",{children:a("tools.ticket.status1")})});case p.ZB.SupportStatus_Inject:let x={"Incomplete or unclear video proof":a("tools.coin.reason.Incomplete"),"Duplicate transaction proof":(0,o.jsxs)(o.Fragment,{children:[" ",a("tools.coin.reason.transaction1"),(0,o.jsx)(j,{onClick:()=>{s.pop.back(),(0,d.aL)()},children:a("tools.coin.reason.contactsupport")}),a("tools.coin.reason.transaction2")]})},m=n&&x[n]||a("tools.ticket.status2");return(0,o.jsx)(_,{className:"resubmit",children:(0,o.jsx)("div",{children:m})});case p.ZB.SupportStatus_Pending:case p.ZB.SupportStatus_Pass:return(0,o.jsxs)(_,{className:"loading",children:[a("tools.ticket.status.countdown"),h.map((t,e)=>"".concat(t," ").concat(c[e])).join(" ")]});default:return(0,o.jsx)(_,{className:"loading",children:(0,o.jsx)("div",{children:a("tools.ticket.status3")})})}},j=d.zo.span(m()),_=(0,d.zo)(s.Layout.RowMiddle)(g()),N=(0,d.zo)(s.Layout.RowBetween)(S())},4115:function(t,e,n){"use strict";n.d(e,{m:function(){return c}});var i=n(85893),o=n(4281),s=n(61232),r=n(41686),a=n(58199);let c=t=>{let{status:e}=t,{t:n}=(0,s.$G)("tools");switch(e){case a.ZB.SupportStatus_Success:return(0,i.jsx)(u,{className:"completed",children:(0,i.jsx)("div",{children:n("tools.ticket.completed")})});case a.ZB.SupportStatus_Inject:return(0,i.jsx)(u,{className:"canceled",children:(0,i.jsx)("div",{children:n("tools.ticket.reject")})});case a.ZB.SupportStatus_Pending:case a.ZB.SupportStatus_Pass:return(0,i.jsxs)(u,{className:"transfer",children:[(0,i.jsx)(o.Icon,{name:"loader2",className:"icon"}),(0,i.jsx)("div",{children:n("tools.in.transfer")})]});default:return(0,i.jsxs)(u,{className:"pending",children:[(0,i.jsx)(o.Icon,{name:"loader2",className:"icon"}),(0,i.jsx)("div",{children:n("tools.ticket.processing")})]})}},l=(0,r.F4)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),u=(0,r.ZP)(o.Layout.RowMiddle).withConfig({componentId:"sc-1e4437a1-0"})(["display:flex;padding:2px 4px;align-items:center;gap:4px;width:min-content;justify-content:center;border-radius:4px;white-space:nowrap;font-weight:600;font-size:12px;line-height:16px;.icon{width:16px;height:16px;}&.completed{background-color:#d6f1df;color:#30a46c;}&.failed{background-color:#fff7f7;color:#e5484d;}&.pending{background-color:#ffefd6;color:#f76b15;.icon{fill:#f76b15;animation:"," 2s linear infinite;}}&.canceled{background-color:#fff7f7;color:#e5484d;}&.transfer{background-color:#edf2fe;color:#3e63dd;.icon{fill:#3e63dd;animation:"," 2s linear infinite;}}"],l,l)}},function(t){t.O(0,[4885,2888,9774,179],function(){return t(t.s=89564)}),_N_E=t.O()}]);