PageSourceSearch

https://assets.debank.com/static/js/4365.c8f2e40b.chunk.js

js debank.com collected 2026-10-01 10:34:02 UTC 7,197 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkdefi_insight_react=self.webpackChunkdefi_insight_react||[]).push([[4365],{74365:(e,l,n)=>{n.r(l),n.d(l,{default:()=>y});var o=n(25038),t=n(90500),s=n(74687),r=n(32416),i=n(17127),a=n(44385),c=n(87792),d=n(24718),u=n(27559),h=n(52808),v=n(86564),_=n(51706);const f={pageHeader:"FollowerList_pageHeader__sl4Px",container:"FollowerList_container__LQbyf",title:"FollowerList_title__Ge2pZ",table:"FollowerList_table__z29fO",lastCol:"FollowerList_lastCol__E5xL8",netWorth:"FollowerList_netWorth__gV9qa",tvf:"FollowerList_tvf__-zL8x",followers:"FollowerList_followers__sebSV"};var w=n(39615);const m=()=>{const{t:e}=(0,t.$G)(),{id:l}=(0,s.UO)()||{},{data:n}=(0,c.mh)(l),[m,y]=(0,o.useState)(1),[g,x]=(0,o.useState)("-user_usd_value"),{data:F,isLoading:b,isError:p,refetch:j}=(0,d.sJ)(l,m,g),q=(0,d.m3)(l),k=(0,o.useMemo)((()=>(e=>{let{onFollowChange:l,refetch:n}=e;return[{title:(0,w.jsx)(t.Wb,{children:e=>e("FollowerList_columns.1kpnv")}),key:"id",width:"40%",render:e=>{let{row:l,rowIndex:o}=e;return(0,w.jsx)(v.Oe,{info:l,onMemoChange:n,enableClickToOpenProfile:!0})},skeleton:(0,w.jsx)("div",{className:f.innerCell,children:(0,w.jsx)(u.Z,{width:104})})},{title:(0,w.jsx)(t.Wb,{children:e=>e("MemberList_columns.q6o2ej")}),width:"20%",key:"user_usd_value",sortable:!0,forceSort:!0,defaultSortOrder:"desc",render:e=>{var l;let{row:n}=e;return(0,w.jsx)("div",{className:f.netWorth,children:(0,_.Qm)(null===n||void 0===n||null===(l=n.desc)||void 0===l?void 0:l.usd_value)})},skeleton:(0,w.jsx)(u.Z,{width:104})},{title:(0,w.jsxs)("span",{className:f.tvfWrap,children:["TVF"," ",(0,w.jsx)("span",{className:f.followersHeader,children:(0,w.jsx)(t.Wb,{children:e=>e("MemberList_columns.10p5vt0")})})]}),width:"40%",key:"tvf",render:e=>{let{row:n}=e;return(0,w.jsxs)("div",{className:f.lastCol,children:[(0,w.jsxs)("div",{className:f.colTvf,children:[(0,w.jsx)("div",{className:f.tvf,children:(0,_.Qm)(n.tvf)}),(0,w.jsx)("div",{className:f.followers,children:(0,_.ao)(null===n||void 0===n?void 0:n.follower_count,0)})]}),(0,w.jsx)(h.eg,{address:n.id,type:"icon",userInfo:n,operateCallback:e=>l({userId:n.id,isFollowing:e})})]})},skeleton:(0,w.jsx)("div",{className:f.innerCell,children:(0,w.jsx)(u.Z,{width:104})})}]})({refetch:j,onFollowChange:q})),[j,q]),C=(0,o.useCallback)((e=>{let[[l,n]]=e;x(l?"".concat("desc"===n?"-":"").concat(l):""),y(1)}),[x,y]),N=(0,o.useMemo)((()=>!!(null!==F&&void 0!==F&&F.total_count&&(null===F||void 0===F?void 0:F.total_count)>d.xQ)&&{current:m,defaultPageSize:d.xQ,onChange:e=>{y(e)},total:null===F||void 0===F?void 0:F.total_count,showQuickJumper:!0,showSizeChanger:!1}),[m,null===F||void 0===F?void 0:F.total_count,y]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(r.c,{titlePrefix:(null===n||void 0===n?void 0:n.name)||(null===n||void 0===n?void 0:n.id)||""}),(0,w.jsx)(i.k,{title:(null===n||void 0===n?void 0:n.name)||(null===n||void 0===n?void 0:n.id),enableBack:!0,className:f.pageHeader}),(0,w.jsxs)("div",{className:f.container,children:[(0,w.jsx)("div",{className:f.title,children:e("FollowerList.19t454l")}),(0,w.jsx)(a.iA,{className:f.table,columns:k,data:null===F||void 0===F?void 0:F.followers,isError:p,reload:j,showEmpty:!0,showReload:!0,emptyIconType:"user",pagination:N,loading:b,onSort:C})]})]})},y=(0,o.memo)(m)},87792:(e,l,n)=>{n.d(l,{Kn:()=>g,SN:()=>y,W8:()=>m,gJ:()=>_,mh:()=>w,pZ:()=>x});var o=n(79970),t=n(3299),s=n(76287),r=n(93982),i=n(74687),a=n(12520),c=n(87868),d=n(70117),u=n(28708),h=n(73064),v=n(69233);const _=()=>{const e=(0,i.k6)();return(0,o.D)({mutationFn:e=>u.WY.post("/channel/create",e),onSuccess(l,n){null!==l&&void 0!==l&&l.is_success?(s.Z.success("Created"),e.push("/channel/".concat(n.id))):s.Z.error("Failed")},onError(e){(0,c._N)(e)}})},f=e=>(0,h.T)(null===e||void 0===e?void 0:e.channel),w=e=>{const l=(0,a.dO)();return(0,t.a)({queryKey:["/channel",e,l],queryFn:async()=>u.WY.get("/channel",{id:e}),enabled:!!e,gcTime:1e3,select:f,meta:{showError:!0}})},m=(e,l,n)=>{if(n)return d.Eh.setQueriesData({queryKey:["/channel",e,l]},(e=>(0,r.ZP)(e,n)))},y=e=>{const l=(0,a.dO)();return(0,o.D)({mutationFn:l=>u.WY.post("/channel/edit",{id:e,...l}),onSuccess(n,o){if(null===n||void 0===n||!n.is_success)return void s.Z.error("Failed");s.Z.success("Success");const t=e=>{e&&Object.assign(e,o)};m(e,l,(e=>{t(null===e||void 0===e?void 0:e.channel)})),(0,v.tb)(e,l,t)}})},g=e=>{const l=(0,a.dO)();return(0,o.D)({mutationFn:l=>u.WY.post("/channel/transfer",{id:e,target_owner_id:l}),onSuccess(n){null!==n&&void 0!==n&&n.is_success?(s.Z.success("Success"),((e,l)=>{d.Eh.invalidateQueries({queryKey:["/channel",e,l]})})(e,l)):s.Z.error("Failed")},onError(e){(0,c._N)(e||"Failed")}})},x=e=>
1{const l="/channel/validate_channel_id";return(0,t.a)({queryKey:[l,e],queryFn:()=>u.WY.post(l,{id:e}),enabled:!!e})}},69233:(e,l,n)=>{n.d(l,{Lx:()=>f,gi:()=>h,mV:()=>u,qw:()=>_,tb:()=>w,yV:()=>v});var o=n(3299),t=n(93982),s=n(12520),r=n(70117),i=n(28708),a=n(73064);const c=e=>(0,t.ZP)(e,(e=>{e.channels.forEach(((e,l)=>{(0,a.T)(e)}))})),d="channel-list",u=100,h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const l=(0,s.dO)(),n="/channel/list";return(0,o.a)({queryKey:[d,l,n,e],queryFn:()=>i.WY.get(n,{limit:u,start:(Number(e)-1)*u}),select:c})},v=e=>{const l=(0,s.dO)(),n="/channel/following_channels";return(0,o.a)({queryKey:[d,l,n,e],queryFn:()=>i.WY.get(n,{user_id:e}),select:c,enabled:!!e})},_=()=>{const e=(0,s.dO)(),l="/channel/owned_channels";return(0,o.a)({queryKey:[d,e,l],queryFn:()=>i.WY.get(l),select:c})},f=()=>{const e=(0,s.dO)();return(l,n)=>{e&&(n&&(e=>{r.Eh.invalidateQueries({queryKey:[d,e,"/channel/following_channels"]})})(e),w(l,e,(e=>{if(!e)return e;e.is_following=n,e.follower_count=n?e.follower_count+1:e.follower_count>1?e.follower_count-1:0})))}},w=(e,l,n)=>{r.Eh.setQueriesData({queryKey:[d,l]},(l=>l?(0,t.ZP)(l,(l=>{var o;const t=null===l||void 0===l||null===(o=l.channels)||void 0===o?void 0:o.find((l=>l.id===e));t&&n(t)})):l))}},24718:(e,l,n)=>{n.d(l,{m$:()=>_,m3:()=>v,sJ:()=>h,xQ:()=>u});var o=n(3299),t=n(93982),s=n(25038),r=n(97319),i=n(70117),a=n(28708),c=n(87792);const d="/channel/followers",u=100,h=(e,l,n)=>(0,o.a)({queryKey:[d,e,l,n],queryFn:()=>{const o={id:e,start:(Number(l)-1)*u,limit:u,order_by:n};return a.WY.get(d,o)}}),v=e=>{const{userInfo:l}=(0,r.yI)();return n=>{let{userId:o,isFollowing:s}=n;i.Eh.setQueriesData({queryKey:[d,e]},(e=>e?(0,t.ZP)(e,(e=>{var n;const t=null===e||void 0===e||null===(n=e.followers)||void 0===n?void 0:n.find((e=>e.id===o));if(t){var r;t.is_following=s,t.follower_count=s?t.follower_count+1:t.follower_count>1?t.follower_count-1:0;const e=(null===l||void 0===l||null===(r=l.desc)||void 0===r?void 0:r.usd_value)||0;t.tvf=s?t.tvf+e:t.tvf-e,t.tvf<0&&(t.tvf=0)}})):e))}},_=e=>{const{address:l}=(0,r.yI)();return(0,s.useCallback)((n=>{i.Eh.invalidateQueries({queryKey:[d,e]}),(0,c.W8)(e,l,(e=>{e&&(e.channel.is_following=n,e.channel.follower_count=n?(e.channel.follower_count||0)+1:e.channel.follower_count>0?e.channel.follower_count-1:0)}))}),[e,l])}},73064:(e,l,n)=>{n.d(l,{T:()=>t});var o=n(51706);const t=e=>(e._followerCount=(0,o.ao)(e.follower_count),e)}}]);
2//# sourceMappingURL=4365.c8f2e40b.chunk.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.