1"use strict";(self.webpackChunkdefi_insight_react=self.webpackChunkdefi_insight_react||[]).push([[2144],{35204:(e,s,i)=>{i.d(s,{p:()=>l});var n=i(12919),a=i(74772),o=i(39615);const l=e=>{const{title:s,isOpen:i,onClose:l,onConfirm:t,type:r,includeOfficialAccount:d}=e;return(0,o.jsxs)(a.W,{on:i,className:"db-add-addressModal",onRequestClose:l,children:[s&&(0,o.jsx)("div",{className:"db-add-addressModal-title",children:s}),(0,o.jsx)("div",{className:"db-add-addressModal-content",children:(0,o.jsx)(n.Z,{isShowRecent:!1,inputClassName:"db-add-addressModal-input",type:r,inParent:!1,isLimitHeight:!0,onSelect:t,includeOfficialAccount:d,panelClassName:"db-add-addressModal-panel"})})]})}},2144:(e,s,i)=>{i.r(s),i.d(s,{SAY_HI_SHARE_LINK:()=>O.sn,convertHiMessageToLocal:()=>O.zs,convertHiOfferToLocal:()=>O.gl,default:()=>ke,formatMessageDate:()=>O.GN,formatMessageGroupDate:()=>O.JC,formatOfferPrice:()=>O.wx,formatOfferPriceNumber:()=>O.ZS,getExpiredDaysCount:()=>O.Bp,getLastMessageTimeFromSession:()=>O.IC,isMessageByMe:()=>O.wZ,isSystemMessage:()=>O.Ew,isUnchargedOfferMessage:()=>O.ok,isUnreadMessageByOtherSide:()=>O.P3,parseHiMessageData:()=>O.sb,parseSystemMessageData:()=>O.cN});var n=i(63199),a=i(25038),o=i(90500),l=i(27559),t=i(74687),r=i(46432),d=i(22618),c=i(32416),_=i(11961),v=i(97319),m=i(50115),h=i(13791),u=i(25523),f=i(61792),x=i(71068),p=i(43208),j=i(73335),C=i(67818),N=i(67812),g=i(10643),I=i(20067),H=i(68976),k=i(24200),w=i(69752),b=i(15665),y=i(12520),P=i(51706),M=i(85191),S=i(34112),T=i(45158),O=i(28577),F=i(82308),E=i(36162),L=i(24113),W=i(21519),A=i(60393),D=i(43572);const B={container:"TalkerItem_container__ycnUN",pinnedConversationItem:"TalkerItem_pinnedConversationItem__tpvMG",active:"TalkerItem_active__nmrJf",leftCol:"TalkerItem_leftCol__k8PUw",avatarWrapper:"TalkerItem_avatarWrapper__kKFf6",unreadCount:"TalkerItem_unreadCount__xPXtZ",rightCol:"TalkerItem_rightCol__hD-Oa",rightColFloor1:"TalkerItem_rightColFloor1__B-vGR",hasAccount:"TalkerItem_hasAccount__iarXJ",rightColFloor2:"TalkerItem_rightColFloor2__0gW7j",draftIcon:"TalkerItem_draftIcon__7RB0e",commentText:"TalkerItem_commentText__W5Sgs",previewMessage_offer:"TalkerItem_previewMessage_offer__iOISO",previewOfferStatus_charged_marked:"TalkerItem_previewOfferStatus_charged_marked__6GwXp",offerNumber:"TalkerItem_offerNumber__-+hjU",previewMessage_normal:"TalkerItem_previewMessage_normal__IxETR",msgTime:"TalkerItem_msgTime__7ELGd"};var U=i(39615);const R=e=>{var s,i,l,t;let{conversation:r,draft:d}=e;const{t:c}=(0,o.$G)(),{address:_}=(0,v.yI)(),{normalMsgType:m,normalAbbrText:h,isOffer:u,isOfferFromSystem:x,offer:p,offerFromMe:j}=(0,a.useMemo)((()=>{var e,s,i,n,a,o,l;const{type:t,textValue:d}=(0,O.sb)(null===(e=r.latest_preview_msg)||void 0===e?void 0:e.data),{offer:c}=(0,O.cN)(null===(s=r.last_display_message)||void 0===s?void 0:s.data);return{normalMsgType:t,normalAbbrText:d,isOffer:"offer"===(null===(i=r.latest_preview_msg)||void 0===i?void 0:i.type)||(null===(n=r.latest_preview_msg)||void 0===n||null===(a=n.attributes)||void 0===a?void 0:a.is_from_system)&&!!c,isOfferFromSystem:!!c,offer:c?(0,O.gl)(c):null===(o=r.latest_preview_msg)||void 0===o?void 0:o.offer,offerFromMe:(null===(l=r.latest_preview_msg)||void 0===l?void 0:l.sendor_id)===_}}),[r,_]),C=(0,a.useMemo)((()=>{switch(m){case"text":case"richtext":return(0,U.jsx)("div",{className:(0,n.default)(B.previewMessage_normal,B["previewNormalMsg_".concat(m)]),children:h.trim()||null});default:return null}}),[m,h]),N="offer_boost"===(null===(s=r.last_display_message)||void 0===s?void 0:s.type),g=(0,a.useMemo)((()=>{var e,s;return(0,O.ZS)((null===(e=r.last_display_message)||void 0===e||null===(s=e.data)||void 0===s?void 0:s.price)+(null===p||void 0===p?void 0:p.price),"$")}),[null===(i=r.last_display_message)||void 0===i?void 0:i.data,null===p||void 0===p?void 0:p.price]);if(d)return(0,U.jsx)("div",{className:(0,n.default)(B.previewMessage_normal,B.previewNormalMsg_text),children:d.trim()});if(!r.latest_preview_msg)return null;if(!u)return C;if(!x&&("uncharged"===(null===p||void 0===p?void 0:p.status)&&j||"charged"===(null===p||void 0===p?void 0:p.status)&&!j))return C;switch(null===p||void 0===p?void 0:p.status){case"uncharged":if(N)return j?(0,U.jsx)("span",{className:B.previewMessage_offer,children:(0,U.jsxs)(o.cC,{i18nKey:"SystemMessageItem.myOfferBoosted",values:{price:g},children:["Your Offer has been boosted to",(0,U.jsx)("span",{className:B.offerNumber,children:"$0"})]})}):(0,U.jsx)("span",{className:B.previewMessage_offer,children:(0,U.jsxs)(o.cC,{className:B.previewMessage_offer,i18nKey:"HiHomeConversationItem.readEarn",values:{price:g},children:["read & earn",(0,U.jsx)("span",{className:B.offerNumber,children:"$0"})]})});case"charged":return j?(0,U.jsxs)(o.cC,{i18nKey:"SystemMessageItem.charged",values:{name:(0,f.Pl)(null===r||void 0===r?void 0:r.other_side),amount:(0,O.wx)(p,"$")},children:["Earned","","'s","",(0,U.jsx)("span",{className:B.offerStatus_charged_by_me_marked,children:"$0"})," offer"]}):(0,U.jsx)("span",{className:(0,n.default)(B.previewMessage_offer,B["previewOfferStatus_".concat(p.status)]),children:j||x?(0,U.jsxs)(o.cC,{i18nKey:"HiHomeConversationItem.1k3ns3w",values:{name:(0,f.Pl)(null===r||void 0===r?void 0:r.other_side),price:(0,O.wx)(p)},children:[(null===r||void 0===r||null===(l=r.other_side_system_account)||void 0===l?void 0:l.name)||(null===r||void 0===r||null===(t=r.other_side_official_account)||void 0===t?void 0:t.name)||(0,f.Pl)(null===r||void 0===r?void 0:r.other_side),"accepted y
1our",(0,U.jsx)("span",{className:B.offerNumber,children:(0,O.wx)(p)}),"offer"]}):(0,U.jsxs)(U.Fragment,{children:[c("HiHomeConversationItem.1xghkdz")," ",(0,U.jsx)("span",{className:B.previewOfferStatus_charged_marked,children:(0,O.wx)(p)})]})});case"expired":return(0,U.jsxs)("span",{className:(0,n.default)(B.previewMessage_offer,B["previewOfferStatus_".concat(p.status)]),children:[(0,U.jsx)("span",{className:B.offerNumber,children:(0,O.wx)(p)}),c("HiHomeConversationItem.1htckga")]});default:return null}},Z=e=>{var s,i,o,l,t;let{conversation:d,index:c=0,isActive:_=!1,isLocal:v=!1,draft:m="",onClick:h}=e;const{userDict:u}=(0,I.Lj)(),x=u[(null===d||void 0===d||null===(s=d.other_side)||void 0===s?void 0:s.id)||""]||d.other_side,p=d.other_side_official_account,j=d.other_side_system_account,C=!!p,N=!!j,g=(0,a.useMemo)((()=>{if(N)return{otherSideHiId:(0,f.o1)(null===j||void 0===j?void 0:j.id),otherSideName:null===j||void 0===j?void 0:j.name,sessionId:null===d||void 0===d?void 0:d.id};if(C){const e=null===p||void 0===p?void 0:p.name;return{otherSideHiId:(0,f.Dk)(null===p||void 0===p?void 0:p.id),otherSideName:e,sessionId:null===d||void 0===d?void 0:d.id,isOfficialAccount:!0,target:p}}return{otherSideHiId:null===x||void 0===x?void 0:x.id,otherSideName:(0,f.Pl)(x),sessionId:null===d||void 0===d?void 0:d.id,target:x}}),[x,p,d,C,N,j]),H=(0,a.useMemo)((()=>d?N||C?[null!==d&&void 0!==d&&d.is_pinned?D.p.UNPIN:D.p.PIN,D.p.ARCHIVE]:[null!==d&&void 0!==d&&d.is_pinned?D.p.UNPIN:D.p.PIN,D.p.ARCHIVE,D.p.ADDRESS_LABEL]:[]),[d,C,N]),k=(0,a.useCallback)((()=>{h(d)}),[h,d]);return(0,U.jsx)(D.Z,{trigger:["contextMenu"],config:g,menuTypeList:H,children:(0,U.jsxs)("div",{className:(0,n.default)(B.container,d.is_pinned&&B.pinnedConversationItem,_?B.active:null),onClick:k,children:[(0,U.jsx)("div",{className:B.leftCol,children:(0,U.jsxs)("div",{className:B.avatarWrapper,children:[j?(0,U.jsx)(L.O,{data:j,size:38}):p?(0,U.jsx)(E.x,{data:p,size:38,logoOption:{size:18}}):(0,U.jsx)(W.Y,{info:x,size:38}),!v&&d.unread_message_count>0?(0,U.jsx)("div",{className:B.unreadCount,children:(0,P.z9)(d.unread_message_count)}):null]})}),(0,U.jsxs)("div",{className:B.rightCol,children:[(0,U.jsxs)("div",{className:(0,n.default)(B.rightColFloor1,j||p||(0,f.Pl)(x,!0)?B.hasAccount:null),children:[j?j.name:p?null===p||void 0===p?void 0:p.name:(0,U.jsxs)(U.Fragment,{children:[null!==x&&void 0!==x&&x.is_suicide?(0,U.jsx)(A.d,{}):(0,f.Pl)(x,!0),null!==x&&void 0!==x&&null!==(i=x.desc)&&void 0!==i&&null!==(o=i.user)&&void 0!==o&&o.memo?(0,U.jsx)("span",{className:B.commentText,children:null===x||void 0===x||null===(l=x.desc)||void 0===l||null===(t=l.user)||void 0===t?void 0:t.memo}):null]}),(0,U.jsxs)("span",{className:B.msgTime,children:["\xb7 ",d.lastMsgTimeStr]})]}),(0,U.jsxs)("div",{className:B.rightColFloor2,children:[m&&!_?(0,U.jsx)(r.Tg,{className:B.draftIcon}):null,v?null:(0,U.jsx)(R,{draft:_?"":m,conversation:d})]})]})]})})},G=(0,a.memo)((e=>(0,U.jsx)(Z,{...e}))),$=(0,a.memo)((()=>{const{isDark:e}=(0,m.F)(),s=(0,a.useMemo)((()=>e?F.DJ:F.rd),[e]);return(0,U.jsx)(U.Fragment,{children:Array(10).fill(0).map(((e,i)=>(0,U.jsxs)("div",{className:B.container,children:[(0,U.jsx)("div",{className:B.leftCol,children:(0,U.jsx)("div",{className:B.avatarWrapper,children:(0,U.jsx)(s,{height:38,width:38})})}),(0,U.jsxs)("div",{className:B.rightCol,children:[(0,U.jsx)("div",{className:B.rightColFloor1,children:(0,U.jsx)(l.Z,{width:120,height:18})}),(0,U.jsx)("div",{className:B.rightColFloor2,children:(0,U.jsx)(l.Z,{width:84,height:12})})]})]},i)))})})),z={hiConversation:"HiConversation_hiConversation__2asLN",conversationList:"HiConversation_conversationList__b7VQ2",header:"HiConversation_header__-uQ1a",shareIcons:"HiConversation_shareIcons__PldEo",copyButton:"HiConversation_copyButton__dC+he",shareIcon:"HiConversation_shareIcon__s3N98",headerContent:"HiConversation_headerContent__U9sTz",headerIcon:"HiConversation_headerIcon__xzi82",headerPrice:"HiConversation_headerPrice__r01YS",headerPriceDetail:"HiConversation_headerPriceDetail__ScA22",noConversationPlaceholder:"HiConversation_noConversationPlaceholder__A-0lZ",text:"HiConversation_text__NLGNE",editHiInfoPanel:"HiConversation_editHiInfoPanel__aJEDa",bannerPlaceholder:"HiConversation_bannerPlaceholder__ru0Yc",banner:"HiConversation_banner__NjCpV",title:"HiConversation_title__F7pZq",intro:"HiConversation_intro__IAcfq",link:"HiConversation_link__3Xs4x",hiInfo:"HiConversation_hiInfo__AfNQO",hiInfoItem:"HiConversation_hiInfoItem__b+vRs",hiInfoItemLeft:"HiConversation_hiInfoItemLeft__b-QkW",name:"HiConversation_name__0bA3h",icon:"HiConversation_icon__5Ltpg",hiInfoItemRight:"HiConversation_hiInfoItemRight__3XM9T",highlight:"HiConversation_highlight__rJsVH",editPen:"HiConversation_editPen__f7ioF",editInput:"HiConversation_editInput__8DYyx",numberInput:"HiConversation_numberInput__zCSYE",prefix:"HiConversation_prefix__9-jwJ",splitLine:"HiConversation_splitLine__Sahkm",editHiInfoPopover:"HiConversation_editHiInfoPopover__cgz3J"};var q=i(80792);const J=e=>{let{address:s,onClose:i,offerPrice:n}=e;const{t:l}=(0,o.$G)(),t=(0,H.C)(),{data:d,...c}=(0,b.Pc)(s),_=(0,a.useMemo)((()=>(null!==d&&void 0!==d&&d.initial_price?null===d||void 0===d?void 0:d.initial_price:1e4)/1e4),[null===d||void 0===d?void 0:d.initial_price]),[v,m]=(0,a.useState)(!1),[h,u]=(0,a.useState)(),{mutateAsync:f}=(0,S.Jr)(),p=(0,a.useCallback)((()=>{!h||h===_||h<.01||h>999?m(!1):f(1e4*parseFloat(h.toFixed(2))).then((()=>{m(!1),c.refetch()}))}),[h,c,_,f]),j=(0,a.useCallback)((()=>{i(),t.push("/hi-whitepaper")}),[i,t]);return(0,U.jsxs)("div",{className:z.editHiInfoPanel,children:[(0,U.jsx)("div",{className:z.bannerPlaceholder,children:(0,U.jsxs)("div",{className:z.banner,children:[(0,U.jsx)("div",{className:z.title,children:l("HiConversation.19ieqk1")}),(0,U.jsx)("div",{className:z.intro,children:l("HiConversation.xr3trx")}),(0,U.jsx)("div",{className:z.link,onClick:j,children:l("HiConversation.ao03h6")})]})}),(0,U.jsxs)("div",{className:z.hiInfo,children:[(0,U.jsxs)("div",{className:z.hiInfoItem,children:[(0,U.jsxs)("div",{className:z.hiInfoItemLeft,children:[(0,U.jsx)(r.fE,{}),(0,U.jsx)("span",{className:z.name,children:l("HiConversation.11wz4iv")})]}),(0,U.jsxs)("div",{className:z.hiInfoItemRight,children:[v?(0,U.jsx)(r.$O,{className:z.editPen,onClick:p}):(0,U.jsx)(r._f,{className:z.editPen,onClick:()=>m(!0)}),v?(0,U.jsxs)("div",{className:z.editInput,children:[(0,U.jsx)(x.Z,{onChange:u,defaultValue:Number(_.toFixed(2)),autoFocus:!0,min:.1,max:999,type:"number",onPressEnter:p,className:z.numberInput}),(0,U.jsx)("span",{className:z.prefix,children:"$"})]}):(0,U.jsxs)(U.Fragment,{children:["$ ",((null===d||void 0===d?void 0:d.initial_price)||0)/1e4]})]})]}),(0,U.jsxs)("div",{className:z.hiInfoItem,children:[(0,U.jsxs)("div",{className:z.hiInfoItemLeft,children:[(0,U.jsx)(r.uK,{}),(0,U.jsx)("span",{className:z.name,children:l("HiConversation.zqxen5")})]}),(0,U.jsx)("div",{className:z.hiInfoItemRight,children:null===d||void 0===d?void 0:d.uncharged_offer_count})]}),(0,U.jsx)("div",{className:z.splitLine}),(0,U.jsxs)("div",{className:z.hiInfoItem,children:[(0,U.jsxs)("div",{className:z.hiInfoItemLeft,children:[(0,U.jsx)(r.fx,{}),(0,U.jsx)("span",{className:z.name,children:l("HiConversation.muhike")}),(0,U.jsx)(N.y,{title:l("HiConversation.1dw42d0"),placement:"bottom",children:(0,U.jsx)(r.D6,{className:z.icon})})]}),(0,U.jsx)("div",{className:z.hiInfoItemRight,children:(0,U.jsxs)("span",{className:z.highlight,children:["$ ",n]})})]})]})]})},K=e=>{let{setConversation:s,onSetActiveUser:i}=e;const{t:n}=(0,o.$G)(),d=(0,H.C)(),{address:c}=(0,v.yI)(),{data:_,isLoading:h,isFetched:u,isFetching:x,refreshAllPage:F,...E}=(0,S.O0)(),{data:L,...W}=(0,b.Pc)(c),A=(0,I._p)(),{isDark:D}=(0,m.F)(),{socket:B}=(0,I.ob)(),R=(0,t.TH)(),Z=(0,a.useRef)(null),[K,V]=(0,a.useState)(!1),{on:Y,turnOn:X,turnOff:Q}=(0,w.h)(!0);(0,a.useEffect)((()=>{!K&&null!==B&&void 0!==B&&B.connected&&(V(!0),F())}),[K,F,null===B||void 0===B?void 0:B.connected]),(0,a.useEffect)((()=>{F(),(0,I.Eg)()}),[null===L||void 0===L?void 0:L.unread_message_count,F]),(0,a.useEffect)((()=>{const e=window.setInterval(F,null!==B&&void 0!==B&&B.connected?6e4:1e4);return()=>clearInterval(e)}),[null===B||void 0===B?void 0:B.connected]),(0,a.useEffect)((()=>
1{if(null===B||void 0===B||!B.connected)return;const e=e=>{F(),q.log("on session")};return B.on("session",e),()=>{B.off("session",e)}}),[null===B||void 0===B?void 0:B.connected,F,B,W]);const ee=(0,a.useMemo)((()=>{var e;const s=null===(e=R.pathname.match(/\/hi\/+(.*)/))||void 0===e?void 0:e[1];return null===s||void 0===s?void 0:s.toLowerCase()}),[R.pathname]),se=(0,a.useCallback)((()=>{!E.hasPreviousPage||E.isFetchingPreviousPage||h||E.fetchNextPage()}),[E,h]),ie=(0,a.useMemo)((()=>!!ee&&(0,f.mO)(ee)),[ee]);(0,a.useEffect)((()=>{ee&&(((0,y.Oh)(ee)||ie)&&ee!==c?i(ee):d.replace("/hi"))}),[ie,c,i,ee]),(0,a.useEffect)((()=>()=>s(null)),[c]);const[ne,ae]=(0,a.useState)(null);(0,a.useEffect)((()=>{null!==ne&&void 0!==ne&&ne.is_active&&s(ne)}),[s,ne]);const{data:oe}=(0,S.qR)({other_side_id:(null===ne||void 0===ne?void 0:ne.other_user_id)||ee}),le=(0,a.useCallback)((e=>{d.replace("/hi"),ae(e)}),[]);(0,a.useEffect)((()=>{if(oe&&(null===oe||void 0===oe||!oe.is_active)){const e=null===_||void 0===_?void 0:_.findIndex((e=>e.other_user_id===oe.other_user_id));if(e>-1){i(""),d.replace("/hi");const s=(e+_.length+1)%_.length;_[s]?ae(_[s]):ae(null)}(0,T.oZ)(oe.other_user_id)}}),[ae,_,oe,null===oe||void 0===oe?void 0:oe.is_active,R,i]);const{isError:te}=(0,k.e9)((0,f.n7)(ee));(0,a.useLayoutEffect)((()=>{te&&(s(null),d.replace("/hi"))}),[d,te,s]);const re=(0,a.useCallback)((()=>{(0,M.d)("Hi Frens! Here is my SayHi Link on DeBank Hi: \n".concat(O.sn,"/").concat(c,"\nSend a message for my attention via this link.\ud83d\ude04\n\n#DeBankHi"))}),[c]);(0,a.useEffect)((()=>{if(_.length>0){if(!ee)return;ae(null);const e=_.find((e=>e.other_user_id===ee));e&&ae(e)}}),[_,ee]);const de=(0,a.useMemo)((()=>(0,P.ZI)((null!==L&&void 0!==L&&L.offer_price?null===L||void 0===L?void 0:L.offer_price:0)/1e4,2)),[null===L||void 0===L?void 0:L.offer_price]);return(0,a.useEffect)((()=>{var e;null!==R&&void 0!==R&&null!==(e=R.pathname)&&void 0!==e&&e.includes("/hi")&&X()}),[null===R||void 0===R?void 0:R.pathname,X]),(0,U.jsxs)("div",{className:z.hiConversation,children:[(0,U.jsxs)("div",{className:z.header,children:[c&&W.isFetched&&Y?(0,U.jsx)(p.Z,{content:(0,U.jsx)(J,{address:c,onClose:Q,offerPrice:de}),placement:"rightTop",trigger:"click",overlayClassName:z.editHiInfoPopover,children:(0,U.jsxs)("div",{className:z.headerContent,children:[(0,U.jsx)(r.c$,{className:z.headerIcon}),(0,U.jsx)("div",{className:z.headerLeft,children:(0,U.jsxs)("div",{className:z.headerPrice,children:[W.isLoading?(0,U.jsx)(g.g,{}):(0,U.jsxs)(U.Fragment,{children:["$",de]}),(0,U.jsx)(r.uJ,{className:z.headerPriceDetail})]})})]})}):(0,U.jsx)(l.Z,{width:100,height:20}),(0,U.jsxs)("div",{className:z.shareIcons,children:[(0,U.jsx)(N.y,{title:n("HiConversation.twitter"),children:(0,U.jsx)(r.sb,{className:z.shareIcon,onClick:re})}),(0,U.jsx)(C.q,{text:"".concat(O.sn,"/").concat(c),className:z.copyButton,successMessage:n("HiConversation.copySuccess"),children:(0,U.jsx)(N.y,{title:n("HiConversation.copy"),children:(0,U.jsx)(r.yp,{className:z.shareIcon})})})]})]}),(0,U.jsxs)("div",{className:z.conversationList,ref:Z,children:[ee||x||_.length?null:(0,U.jsxs)("div",{className:z.noConversationPlaceholder,children:[D?(0,U.jsx)(r.Ej,{}):(0,U.jsx)(r.F7,{}),(0,U.jsx)("span",{className:z.text,children:n("HiConversation.g0x8di")})]}),null!==_&&void 0!==_&&_.length?(0,U.jsx)(j.OO,{style:{height:"100%"},data:_,overscan:20,endReached:se,itemContent:(e,s)=>null!==s&&void 0!==s&&s.is_active?(0,U.jsx)(G,{draft:A[s.id],isActive:s.id===(null===ne||void 0===ne?void 0:ne.id),conversation:s,index:e,onClick:le},s.id):null}):null,x?(0,U.jsx)($,{}):null]})]})};var V=i(40136),Y=i(62395),X=i(35204);const Q="HiWelcome_welcomeNewUser__pTOKg",ee="HiWelcome_welcomeNewUserContainer__aMdW3",se="HiWelcome_welcomeNewUserBannerBg__GwHJS",ie="HiWelcome_welcomeNewUserBanner__a1ydb",ne="HiWelcome_welcomeNewUserBannerDark__A0JMk",ae="HiWelcome_title__waSvt",oe="HiWelcome_icon__RE4ri",le="HiWelcome_mainText__ZWeWW",te="HiWelcome_link__LN0gP",re="HiWelcome_createConversationButton__sLGmo",de=()=>{const{t:e}=(0,o.$G)(),{isDark:s}=(0,m.F)(),i=(0,t.k6)(),{on:a,turnOn:l,turnOff:c}=(0,w.h)(!1);return(0,U.jsxs)("div",{className:Q,children:[(0,U.jsxs)(d.Z,{className:ee,children:[(0,U.jsx)("div",{className:se,children:(0,U.jsx)("div",{className:(0,n.default)(ie,s&&ne),children:(0,U.jsxs)("div",{className:ae,children:[e("HiWelcome.1vbeg6c"),(0,U.jsx)(r.$1,{className:oe})]})})}),(0,U.jsxs)("div",{className:le,children:[e("HiWelcome.1k5j0kv"),(0,U.jsx)("div",{className:te,onClick:()=>i.push("/hi-whitepaper"),children:e("HiWelcome.1bqw0pp")})]})]}),(0,U.jsxs)(Y.z,{type:"primary",className:re,onClick:l,children:[(0,U.jsx)(r.Ed,{className:oe}),e("HiWelcome.1de4o6q")]}),(0,U.jsx)(X.p,{isOpen:a,title:e("HiWelcome.1de4o6q"),onClose:c,type:"hi",includeOfficialAccount:!0,onConfirm:e=>{c(),i.push("/hi/".concat((0,y.OU)(e)?"0a".concat(e):e))}})]})},ce="Chats_chatContainer__ibNB6",_e="Chats_sidebar__5o2Ra",ve="Chats_main__5mN9z",me="Chats_noConversationPlaceholder__m0QHS",he="Chats_text__GE+tw",ue="Chats_welcomeNewUser__xGlOt",fe="Chats_welcomeNewUserContainer__L6dc7",xe="Chats_welcomeNewUserBannerBg__TPzfJ",pe="Chats_welcomeNewUserBanner__YbFYH",je="Chats_welcomeNewUserBannerDark__QPn9A",Ce="Chats_title__fie-D",Ne="Chats_icon__4KTLS",ge="Chats_mainText__XG357",Ie="Chats_link__LHUfm",He="Chats_createConversationButton__6oG4q",ke=()=>{const{t:e}=(0,o.$G)(),[s,i]=(0,a.useState)(null),{isDark:x}=(0,m.F)(),{address:p,isVerified:j}=(0,v.yI)(),C=(0,t.k6)(),[N,g]=(0,a.useState)(null),{data:I}=(0,T.qR)({other_side_id:N});(0,a.useEffect)((()=>{u.K.report({category:"View Debank Hi",action:"Debank Hi_".concat((0,h.Xb)())})}),[]);const H=(0,a.useCallback)((e=>{N&&g(null),i(e)}),[N,g,i]),k=(0,a.useCallback)((e=>
1{e!==p&&e!==(null===s||void 0===s?void 0:s.other_user_id)&&(null!==s&&void 0!==s&&s.other_user_id&&i(null),g(e))}),[s,p]),w=(0,a.useMemo)((()=>{var e,i;return s?"".concat(null!==s&&void 0!==s&&s.other_side_system_account?null===s||void 0===s||null===(e=s.other_side_system_account)||void 0===e?void 0:e.name:null!==s&&void 0!==s&&s.other_side_official_account?null===s||void 0===s||null===(i=s.other_side_official_account)||void 0===i?void 0:i.name:(0,f.Pl)(null===s||void 0===s?void 0:s.other_side,!0),"-hi"):"Hi"}),[s]);return(0,U.jsxs)(a.Fragment,{children:[(0,U.jsx)(c.c,{titlePrefix:w}),p&&j?(0,U.jsx)(l.y,{highlightColor:"var(--bg-light-color)",baseColor:"var(--bg-default-color)",children:(0,U.jsxs)("div",{className:ce,children:[(0,U.jsx)("div",{className:_e,children:(0,U.jsx)(K,{setConversation:H,onSetActiveUser:k})}),(0,U.jsxs)("div",{className:ve,children:[N?(0,U.jsx)(V.Z,{addr:N,sessionId:null===I||void 0===I?void 0:I.id}):null,!N&&s&&(0,U.jsx)(V.Z,{sessionId:null===s||void 0===s?void 0:s.id,addr:s.other_user_id}),!N&&!s&&(0,U.jsx)(de,{})]})]})}):(0,U.jsxs)("div",{className:ce,children:[(0,U.jsx)("div",{className:_e,children:(0,U.jsxs)("div",{className:me,children:[x?(0,U.jsx)(r.Ej,{}):(0,U.jsx)(r.F7,{}),(0,U.jsx)("span",{className:he,children:e("HiConversation.g0x8di")})]})}),(0,U.jsx)("div",{className:ve,children:(0,U.jsxs)("div",{className:ue,children:[(0,U.jsxs)(d.Z,{className:fe,children:[(0,U.jsx)("div",{className:xe,children:(0,U.jsx)("div",{className:(0,n.default)(pe,x&&je),children:(0,U.jsxs)("div",{className:Ce,children:[e("HiWelcome.1vbeg6c"),(0,U.jsx)(r.$1,{className:Ne})]})})}),(0,U.jsxs)("div",{className:ge,children:[e("HiWelcome.1k5j0kv"),(0,U.jsx)("div",{className:Ie,onClick:()=>C.push("/hi-whitepaper"),children:e("HiWelcome.1bqw0pp")})]})]}),(0,U.jsx)(_.PO,{className:He})]})})]})]},p)}}}]); 2//# sourceMappingURL=2144.4ae7bf06.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.