PageSourceSearch

https://static.antigravity.tech/assets/www/_next/static/chunks/pages/affiliate/record-77ab6ce125a200ed.js

js antigravity.tech collected 2026-10-03 21:57:31 UTC 8,051 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8183],{19915:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>_});var r=a(63857),i=a(43081),n=a.n(i),o=a(14232),s=a(5811),c=a(15891),d=a(37200),l=a(32022),u=a(92135),h=a(29961),f=a(13985),p=a(34743),w=a.n(p),x=a(37876);let _=(0,s.PA)(function(){var e,t=(0,c.P)(),a=t.areaStore,i=a.regionInfo,s=a.LANG,p=t.metaStore.isMobile,_=(0,o.useState)(!1),m=_[0],k=_[1],g=(0,o.useState)([]),v=g[0],j=g[1],y=(0,o.useState)({current:1,pageSize:10,total:0}),W=y[0],b=y[1],H=(0,o.useState)(function(){return p||window.innerWidth<768}),M=H[0],S=H[1],N=(0,o.useRef)(W);N.current=W;var E=(0,o.useCallback)((e=(0,r.A)(n().mark(function e(t,a){var r;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,k(!0),e.next=4,d.default.listWithdrawPage(t,a);case 4:0===(r=e.sent).code&&r.data&&(j(r.data.list||[]),b({current:r.data.pageNumber||t,pageSize:r.data.pageSize||a,total:r.data.totalCount||0})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error("Failed to fetch withdraw records:",e.t0);case 11:return e.prev=11,k(!1),e.finish(11);case 14:case"end":return e.stop()}},e,null,[[0,8,11,14]])}
1)),function(t,a){return e.apply(this,arguments)}),[]);(0,o.useEffect)(function(){E(W.current,W.pageSize)},[]),(0,o.useEffect)(function(){var e=function(){E(1,N.current.pageSize)};return window.addEventListener("affiliate:withdrawSuccess",e),function(){window.removeEventListener("affiliate:withdrawSuccess",e)}},[E]),(0,o.useEffect)(function(){var e=function(){var e=window.innerWidth;S(p||e<768)};e();var t=null,a=function(){t&&window.clearTimeout(t),t=setTimeout(function(){e()},50)};return window.addEventListener("resize",a),function(){window.removeEventListener("resize",a),t&&window.clearTimeout(t)}},[p]);var L=function(e){if(!e)return"-";if("object"==typeof e&&"timestamp"in e)t=Number(e.timestamp);else{if("number"!=typeof e)return"-";t=e}if(!t||Number.isNaN(t))return"-";var t,a=new Date(t),r=String(a.getMonth()+1).padStart(2,"0"),i=String(a.getDate()).padStart(2,"0"),n=a.getFullYear();return"".concat(r,"/").concat(i,"/").concat(n)},T=(0,o.useMemo)(function(){return function(e){return null==e?"—":({"-1":s["affiliate.order_rejected"]||"Rejected",0:s["affiliate.order_pending_review"]||"Pending",1:s["affiliate.order_process"]||"Processing",9:s["affiliate.order_success"]||"Success"})[String(e)]||"—"}},[s]),V=(0,o.useMemo)(function(){return function(e,t){if(!(null!=e&&e.data))return"-";try{var a,r=JSON.parse(e.data),i=e.type;if(["bank","bank_cn","alipay","paypal","wxapp"].includes(i))switch(i){case"bank":case"bank_cn":a=s["affiliate.account_bank"]||"Bank";break;case"alipay":a=s["affiliate.account_alipay_account"]||"Alipay";break;case"paypal":a=s["affiliate.account_paypal_account"]||"PayPal";break;case"wxapp":a="WeChat";break;default:a=i}else a=i;if(r&&"object"==typeof r&&"account"in r){var n=r.account;if("string"==typeof n&&n.trim())return(0,f.maskWithdrawAccount)(i,n,a,t)}return a}catch(e){return console.error("Failed to parse withdraw account data:",e),"-"}}},[s]),A=(0,o.useMemo)(function(){return[{id:"createTime",accessorKey:"createTime",header:s["affiliate.orders_create_date"]||"Withdraw Time",minWidth:140,cell:function(e){return L((0,e.getValue)())}},{id:"amount",accessorKey:"amount",header:s["affiliate.withdraw_amount"]||"Withdraw Amount",minWidth:140,cell:function(e){var t=e.row.original.amount;return(0,f.formatAffiliatePrice)(t,null==i?void 0:i.code)}},{id:"withdrawAccount",accessorKey:"withdrawAccountObj",header:s["affiliate.withdraw_account"]||"Withdraw Account",minWidth:250,ellipsis:!0,cell:function(e){return V(e.row.original.withdrawAccountObj,null==i?void 0:i.code)}},{id:"state",accessorKey:"state",header:s["affiliate.orders_withdraw_status"]||"Withdraw State",minWidth:140,cell:function(e){var t=T((0,e.getValue)());return(0,x.jsx)("span",{className:w().tag,children:t})}}]},[T,V,s,null==i?void 0:i.code]);return(0,x.jsx)(l.A,{type:"withdraw_record",isLoading:!1,children:(0,x.jsx)("div",{className:w().recordContainer,children:v.length>0||m?(0,x.jsx)(h.A,{data:v,columns:A,loading:m,emptyText:s["affiliate.orders_no_data"]||"No Data",fixedColumns:M?[0]:void 0,className:M?w().mobileTable:void 0,pagination:{current:W.current,pageSize:W.pageSize,total:W.total,onChange:function(e,t){E(e,t),setTimeout(function(){var e=document.querySelector(".CenterTabs_headerItemsWrapper__fwYP0");if(e){var t=e.offsetTop;window.scrollTo({top:t+30,behavior:"smooth"})}},100)},trackingType:"withdraw"}}):(0,x.jsx)(u.A,{text:s["affiliate.orders_no_data"]||"No Data",iconType:"danger",className:w().affiliateEmptyBox})})})})},28064:e=>{e.exports={emptyBox:"EmptyBox_emptyBox__4f0e_",text:"EmptyBox_text__Vdeea"}},31170:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/affiliate/record",function(){return a(19915)}])},34743:e=>{e.exports={recordContainer:"record_recordContainer__1MamA",mobileTable:"record_mobileTable__d5WdS",tag:"record_tag__m7_4H",affiliateEmptyBox:"record_affiliateEmptyBox__ENNHo"}},92135:(e,t,a)=>{"use strict";a.d(t,{A:()=>s}),a(14232);var r=a(69241),i=a(28064),n=a.n(i),o=a(37876);let s=function(e){var t=e.text,a=e.i18nkey,i=e.iconType,s=e.className;return(0,o.jsxs)("div",{className:(0,r.A)(n().emptyBox,void 0===s?"":s),children:["danger"===(void 0===i?"warning":i)?(0,o.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,o.jsx)("path",{d:"M31 25L51 25",stroke:"#262626",strokeWidth:"2"}),(0,o.jsx)("path",{d:"M24 25H28",stroke:"#262626",strokeWidth:"2"}),(0,o.jsx)("path",{d:"M24 35H28",stroke:"#262626",strokeWidth:"2"}),(0,o.jsx)("path",{d:"M24 45H28",stroke:"#262626",strokeWidth:"2"}),(0,o.jsx)("path",{d:"M31 35L51 35",stroke:"#262626",strokeWidth:"2"}),(0,o.jsx)("path",{d:"M31 45H41",stroke:"#262626",strokeWidth:"2"}),(0,o.jsx)("path",{d:"M64 17.5859V41H62V18.4141L54.5859 11H16V69H62V65H64V71H14V9H55.4141L64 17.5859Z",fill:"#262626"}),(0,o.jsx)("path",{d:"M15 17L6.5 18.5L15 70",stroke:"#262626",strokeWidth:"2"}),(0,o.jsxs)("g",{clipPath:"url(#clip0_1295_28267)",children:[(0,o.jsx)("path",{d:"M72.999 58.7197L68.7188 63H52.999V43H72.999V58.7197Z",fill:"#FF453A"}),(0,o.jsx)("path",{d:"M66.334 49.667L59.6673 56.3336",stroke:"#F3F2ED",strokeWidth:"1.5"}),(0,o.jsx)("path",{d:"M59.6665 49.667L66.3331 56.3336",stroke:"#F3F2ED",strokeWidth:"1.5"})]}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_1295_28267",children:(0,o.jsx)("rect",{width:"20",height:"20",fill:"white",transform:"translate(53 43)"})})})]}):(0,o.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,o.jsx)("path",{d:"M31 25L51 25",stroke:"#262626",strokeWidth:"2"}),(0,o.jsx)("path",{d:"M24 25H28",stroke:"#262626",strokeWidth:"2"}),(0,o.jsx)("path",{d:"M24 35H28",stroke:"#262626",strokeWidth:"2"}),(0,o.jsx)("path",{d:"M24 45H28",stroke:"#262626",strokeWidth:"2"}),(0,o.jsx)("path",{d:"M31 35L51 35",stroke:"#262626",strokeWidth:"2"}),(0,o.jsx)("path",{d:"M31 45H41",stroke:"#262626",strokeWidth:"2"}),(0,o.jsx)("path",{d:"M64 17.5859V41H62V18.4141L54.5859 11H16V69H62V65H64V71H14V9H55.4141L64 17.5859Z",fill:"#262626"}),(0,o.jsx)("path",{d:"M15 17L6.5 18.5L15 70",stroke:"#262626",strokeWidth:"2"}),(0,o.jsxs)("g",{clipPath:"url(#clip0_5722_23005)",children:[(0,o.jsx)("path",{d:"M73 58.6152L68.6152 63H53V43H73V58.6152Z",fill:"#FF7300"}),(0,o.jsx)("line",{x1:"62.918",y1:"48",x2:"62.918",y2:"54.6667",stroke:"#F3F2ED",strokeWidth:"1.5"}),(0,o.jsx)("line",{x1:"62.918",y1:"56.333",x2:"62.918",y2:"57.9997",stroke:"#F3F2ED",strokeWidth:"1.5"})]}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_5722_23005",children:(0,o.jsx)("rect",{width:"20",height:"20",fill:"white",transform:"translate(53 43)"})})})]}),(0,o.jsx)("p",{className:n().text,"data-i18nkey":void 0===a?"":a,children:t})]})}}},e=>{e.O(0,[8992,9723,2683,5278,9840,5715,2447,636,6593,8792],()=>e(e.s=31170)),_N_E=e.O()}]);
2//# sourceMappingURL=record-77ab6ce125a200ed.js.map

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.