PageSourceSearch

https://bifu.co/_next/static/chunks/pages/balance/withdraw/third-party-list/[channel]-735c63dc49e0e2c0.js

js bifu.co collected 2026-10-07 06:42:49 UTC 11,449 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4dd9e86b-f860-4b0d-ba79-f5653e9c8f11",e._sentryDebugIdIdentifier="sentry-dbid-4dd9e86b-f860-4b0d-ba79-f5653e9c8f11")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3986],{540258:function(e,t,n){var i=n(644261),a=n(361546);e.exports=function(e){return"number"==typeof e||a(e)&&"[object Number]"==i(e)}},690837:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/balance/withdraw/third-party-list/[channel]",function(){return n(186189)}])},508967:function(e,t,n){"use strict";n.r(t);var i=n(397458),a=n(652983),r=n(623242),o=n.n(r),l=n(587240),c=n.n(l),s=n(809375);let d=new(o())({id:"action_copy",use:"action_copy-usage",viewBox:"0 0 20 20",content:'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20" id="action_copy"><path stroke="currentcolor" stroke-linecap="round" stroke-width="1.667" d="M6.667 6.666V6c0-.934 0-1.4.181-1.757.16-.314.415-.569.729-.728.356-.182.823-.182 1.756-.182H14c.934 0 1.4 0 1.757.182.313.16.568.414.728.728.182.357.182.823.182 1.757v4.666c0 .934 0 1.4-.182 1.757-.16.314-.415.569-.728.728-.357.182-.823.182-1.757.182h-.667m0-4V14c0 .933 0 1.4-.181 1.756-.16.314-.415.569-.729.729-.356.181-.823.181-1.756.181H6c-.933 0-1.4 0-1.757-.181a1.67 1.67 0 0 1-.728-.729c-.182-.356-.182-.823-.182-1.756V9.333c0-.933 0-1.4.182-1.757.16-.313.415-.568.728-.728.357-.182.824-.182 1.757-.182h4.667c.933 0 1.4 0 1.756.182.314.16.569.415.729.728.181.357.181.824.181 1.757Z" /></symbol>'});t.default=e=>(a.useEffect(()=>{c().has(d.id)||c().add(d)},[]),(0,i.jsx)(s.Z,{glyph:"action_copy",...e}))},492126:function(e,t,n){"use strict";n.r(t);var i=n(397458),a=n(652983),r=n(623242),o=n.n(r),l=n(587240),c=n.n(l),s=n(809375);let d=new(o())({id:"action_delete",use:"action_delete-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" id="action_delete"><path fill="currentcolor" fill-rule="evenodd" d="M15.6 3v3.6H21v1.8h-1.8V21H4.8V8.4H3V6.6h5.4V3zm-1.8 1.8h-3.6v1.8h3.6zM6.6 8.4v10.8h10.8V8.4z" clip-rule="evenodd" /></symbol>'});t.default=e=>(a.useEffect(()=>{c().has(d.id)||c().add(d)},[]),(0,i.jsx)(s.Z,{glyph:"action_delete",...e}))},575432:function(e,t,n){"use strict";n.r(t);var i=n(397458),a=n(652983),r=n(623242),o=n.n(r),l=n(587240),c=n.n(l),s=n(809375);let d=new(o())({id:"action_edit",use:"action_edit-usage",viewBox:"0 0 24 24",content:'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" id="action_edit"><path stroke="currentcolor" stroke-linecap="square" stroke-width="2" d="M11 4H4v16h16v-7" /><path stroke="currentcolor" stroke-linecap="square" stroke-width="2" d="M9 15v-3l9-9 3 3-9 9z" /></symbol>'});t.default=e=>(a.useEffect(()=>{c().has(d.id)||c().add(d)},[]),(0,i.jsx)(s.Z,{glyph:"action_edit",...e}))},206380:function(e,t,n){"use strict";var i=n(397458);n(652983),t.Z=e=>(0,i.jsx)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 2.5H3.33333H12.6667H14V14.5H12.6667H3.33333H2V2.5ZM12.6667 13.1667V3.83333H3.33333V13.1667H12.6667ZM8.66667 7.83333H11.3333V9.16667H8.66667V11.8333H7.33333V9.16667H4.66667V7.83333H7.33333V5.16667H8.66667V7.83333Z",fill:"currentColor"})})},186189:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return E},default:function(){return I}});var i=n(397458),a=n(544269),r=n(16563),o=n(133697),l=n(612480),c=n(20474),s=n(231028),d=n(417816),u=n(880732),p=n(581052),h=n(206380),x=n(508967),f=n(215716),g=n(631777),m=n(540258),b=n.n(m),w=n(889135),y=n(163913),v=n(652983),k=n(845230),Z=n(711466),j=n(566962),C=n(382970),_=n(84594),H=n(862535),S=n(581554);function V(e){let{mode:t,initialAccount:n,open:a,channel:r,onClose:l,onSubmit:c}=e,{t:s}=(0,o.Z)("balance"),d=s("create"===t?"addThirdPartyAccount":"editThirdPartyAccount",{channel:r});return(0,i.jsx)(H.ZP,{open:a,onClose:(e,t)=>{"backdropClick"!==t&&l()},title:(0,i.jsx)("span",{style:{width:"100%",textAlign:"left",fontSize:"14px",lineHeight:"22px",fontWeight:500},children:d}),PaperProps:{sx:{maxWidth:"400px","& > div":{padding:"24px"}}},defaultBtn:!1,children:(0,i.jsx)(S.Z,{channel:r,onSubmit:c,mode:t,initialAccount:n})})}let z=(0,p.ZP)(s.Z)(e=>{let{theme:t}=e;return{padding:"6px 12px",height:"40px",borderRadius:"8px",width:"100%",backgroundColor:t.palette.mode===j.h.Light?t.palette.surface.popup.secondary:t.palette.background.level4Card,flexDirection:"row",alignItems:"center"}}),P=(0,p.ZP)(s.Z)(e=>{let{theme:t,selected:n}=e;return{gap:t.spacing(1.5),marginTop:t.spacing(1.5),borderRadius:t.spacing(1),backgroundColor:t.palette.mode===j.h.Light?t.palette.background.bg1:t.palette.background.level2Card,fontSize:14,padding:t.spacing(1.5),paddingBottom:"19px",border:"1px solid ".concat(n?t.palette.primary.main:t.palette.mode===j.h.Light?t.palette.stroke.border.default:t.palette.background.level2Card),cursor:"pointer",":hover":{backgroundColor:t.palette.background.level3Card},transition:"all .3s ease-in-out"}});function A(e){let{channel:t,sx:n}=e,{t:l}=(0,o.Z)("balance"),{t:c}=(0,o.Z)(),p=(0,a.Z)(),m=(0,r.Z)(p.breakpoints.up("md")),{enqueueSnackbar:H}=(0,y.Ds)(),S=(0,w.useRouter)(),[,A]=(0,k.Z)(),{data:B,isLoading:E,handleDeleteAccount:I,submitEditAccount:M,submitAddAccount:R}=(0,C.H)(t),[T,L]=(0,v.useState)(m?null:0),D=(0,v.useMemo)(()=>b()(T)?B[T]:null,[B,T]),W=(0,v.useCallback)(async e=>{await I(e)},[I]),N=(0,v.useCallback)((e,t)=>{e.stopPropagation(),A(t),H(c("copyToClipboard"),{variant:"info"})},[A,H,c]),q=(0,v.useCallback)(e=>{S.push({pathname:"/balance/withdraw/third-party/",query:{id:e,channel:t}})},[t,S]),[F,O]=(0,v.useState)("create"),[X,G]=(0,v.useState)(null),[J,K]=(0,v.useState)(!1),Q=(0,v.useCallback)(()=>{K(!1),O("create"),G(null)},[]),U=(0,v.useCallback)(e=>{if(!m){S.push({pathname:"/balance/withdraw/edit-third-party-account",query:{channel:t,id:e.id}});return}O("edit"),G(e),K(!0)},[t,S,m]),Y=(0,v.useCallback)(()=>
1{if(!m){S.push({pathname:"/balance/withdraw/add-third-party-account",query:{channel:t}});return}O("create"),K(!0)},[t,S,m]),$=(0,v.useCallback)(async e=>{let{account:t}=e;try{"create"===F?await R(t):await M(X.id,t),H(c("saveSuccess"),{variant:"info"}),Q()}catch(e){e instanceof Z.C?H(e.message,{variant:"error"}):console.error(e)}},[F,H,c,Q,R,M,X]),ee=(0,v.useCallback)(()=>{S.back()},[S]);return E?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.Z,{sx:n,children:[(0,i.jsxs)(s.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",fontSize:{md:14,xs:16},children:[m?(0,i.jsx)(d.Z,{children:l("selectThirdPartyAccount",{channel:t})}):(0,i.jsx)(f.Oo,{options:[{text:l("selectWithdrawalAccount"),onClick:ee}],sx:{display:"inline-flex",fontWeight:500,fontSize:16,color:p.palette.text.primary,lineHeight:"40px"}}),(0,i.jsxs)(s.Z,{direction:"row",alignItems:"center",gap:.5,onClick:Y,color:"primary.main",sx:{cursor:"pointer"},children:[(0,i.jsx)(h.Z,{style:{marginBottom:4}}),l("add")]})]}),B&&0!==B.length?(0,i.jsxs)(s.Z,{mt:{md:1.5},children:[B.map((e,n)=>(0,i.jsxs)(P,{selected:T===n,onMouseEnter:()=>{m&&L(n)},onMouseLeave:()=>{m&&L(null)},onClick:()=>L(n),children:[(()=>{let n=(0,i.jsx)(s.Z,{direction:"row",alignItems:"center",children:(0,i.jsx)(_.Z,{handleWithdrawal:()=>q(e.id),handleEdit:()=>U(e),handleDelete:()=>W(e.id),deleteTxt:{title:"deleteAccount",desc:"deleteAccountConfirm",success:"deleteAccountSuccess"}})}),a=(0,i.jsx)(d.Z,{color:p.palette.text.secondary,lineHeight:"22px",children:l("accountEmailWithChannel",{channel:t})});return m?(0,i.jsxs)(i.Fragment,{children:[n,a]}):(0,i.jsxs)(s.Z,{direction:"row",justifyContent:"space-between",children:[a,n]})})(),(0,i.jsx)(s.Z,{gap:.5,children:(0,i.jsxs)(z,{justifyContent:"space-between",children:[e.email,(0,i.jsx)(x.default,{onClick:t=>N(t,e.email)})]})})]},e.id)),!m&&D?(0,i.jsx)(s.Z,{sx:{width:1,background:p.palette.mode===j.h.Light?p.palette.surface.popup.primary:p.palette.background.level1Card,p:2,position:"fixed",bottom:0,left:0,zIndex:1},children:(0,i.jsx)(u.Z,{variant:"contained",sx:{borderRadius:1},fullWidth:!0,onClick:()=>q(D.id),children:l("next")})}):null]}):(0,i.jsx)(g.Z,{})]}),(0,i.jsx)(V,{open:J,onClose:Q,mode:F,channel:t,initialAccount:null==X?void 0:X.email,onSubmit:$})]})}let B=e=>{let{channel:t}=e,{t:n}=(0,o.Z)("balance"),l=(0,a.Z)(),s=(0,r.Z)(l.breakpoints.up("md"));return(0,i.jsx)(c.f,{title:n("withdraw"),hideBreadcrumbs:!s,sx:s?void 0:{p:0,".root-content":{p:l.spacing(2,2,6.75)}},children:(0,i.jsx)(A,{channel:t,sx:{mt:{md:2.25}}})})};B.getLayout=function(e){return(0,i.jsx)(l.gz,{needLogin:!0,children:e})};var E=!0,I=B},84594:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var i=n(397458),a=n(381947),r=n(231028),o=n(16563),l=n(880732),c=n(75206),s=n(581052),d=n(544269),u=n(492126),p=n(575432),h=n(862535),x=n(133697),f=n(163913),g=n(652983),m=n(566962);let b=(0,s.ZP)(r.Z)(e=>{let{theme:t}=e;return{height:32,color:t.palette.primary.main,fontSize:16,padding:"0 12px",justifyContent:"center",":last-of-type":{paddingRight:0},[t.breakpoints.down("md")]:{height:18}}});function w(e){let{handleWithdrawal:t,handleEdit:n,handleDelete:s,deleteTxt:w}=e,{t:y}=(0,x.Z)(),{t:v}=(0,x.Z)("action"),{t:k}=(0,x.Z)("balance"),Z=(0,d.Z)(),j=(0,o.Z)(Z.breakpoints.up("md")),{enqueueSnackbar:C}=(0,f.Ds)(),[_,H]=(0,g.useState)(!1),[S,V]=(0,g.useState)(!1),z=()=>H(!0),P=async()=>{V(!0);try{await s(),H(!1),C(k(w.success),{variant:"info"})}catch(e){C(e.message,{variant:"error"})}finally{V(!1)}};return(0,i.jsxs)(r.Z,{direction:"row",alignItems:"center",gap:{xs:0,md:1.5},children:[j?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Z,{variant:"contained",sx:{borderRadius:1},size:"medium",onClick:t,children:y("withdrawal")}),(0,i.jsx)(l.Z,{color:"secondary",variant:"contained",sx:{borderRadius:1,background:Z.palette.mode===m.h.Light?Z.palette.surface.popup.secondary:Z.palette.background.level5Card},size:"medium",onClick:n,children:y("edit")}),(0,i.jsx)(l.Z,{color:"secondary",variant:"contained",size:"medium",sx:{borderRadius:1,background:Z.palette.mode===m.h.Light?Z.palette.surface.popup.secondary:Z.palette.background.level5Card,
1color:Z.palette.error.main,"&:hover":{color:Z.palette.error.main}},onClick:z,children:v("delete")})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b,{onClick:n,children:(0,i.jsx)(p.default,{})}),(0,i.jsx)(b,{onClick:z,children:(0,i.jsx)(u.default,{})})]}),(0,i.jsxs)(h.ZP,{open:_,onClose:()=>H(!1),showClose:j,defaultBtn:!1,title:(0,i.jsx)(c.Z,{sx:{fontSize:{xs:16,md:14},fontWeight:500,textAlign:{xs:"center",md:"left"}},children:k(w.title)}),sx:{p:{xs:2.5,md:3}},children:[(0,i.jsx)(c.Z,{sx:{mt:{xs:0,md:-1},mb:{xs:2.5,md:3},textAlign:{xs:"center",md:"left"}},children:k(w.desc)}),(0,i.jsxs)(r.Z,{direction:"row",alignItems:"center",spacing:1.5,sx:{width:{xs:1,md:212},ml:"auto"},children:[(0,i.jsx)(l.Z,{color:j?"secondary":"info",variant:"outlined",sx:{flex:1},onClick:()=>H(!1),children:y("cancel")}),(0,i.jsx)(a.Z,{color:j?"primary":"info",variant:"contained",loading:S,sx:{flex:1},onClick:P,children:y("confirm")})]})]})]})}}},function(e){e.O(0,[49774,26182,36723,76227,16675,66523,88996,71874,15714,91495,1267,54158,976,26176,2110,92888,40179],function(){return e(e.s=690837)}),_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.