"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2006],{3885:(e,t,n)=>{n.d(t,{QD:()=>p,XT:()=>d,Yn:()=>u,iH:()=>s,rO:()=>h,tR:()=>m,xI:()=>c});var i=n(62186),o=n(17784),l=n(62738),r=n(72153),a=n(97397);const d=(0,i.default)("div",{target:"e18e4obn0"})((({theme:e})=>[(0,r.zy)({theme:e,fontFamily:"TikTokDisplayFont",fontWeight:"semiBold",typography:"P1"}),{position:"relative",width:"208px",height:"36px",padding:"0",margin:"0",marginTop:"16px"}]),"label:DivShareFollowContainer;"),s=(0,i.default)("div",{target:"e18e4obn1"})((({hide:e,status:t})=>{const n=t===o.ns||t===o._K,i=t===o.ns||t===o.ze;return[{display:"flex",position:"absolute",left:"0",top:"0",opacity:Number(n),zIndex:e?-1:"unset"},i?{transition:"opacity 0.5s"}:null]}),"label:DivMessageContainer;"),u=(0,i.default)(l.A,{target:"e18e4obn2"})((({theme:{direction:e}})=>(0,r.mp)({direction:e,marginEnd:8})),"label:StyledArrowLeftRight;"),c=(0,i.default)(a.y,{target:"e18e4obn3"})((({theme:{direction:e}})=>[{height:"36px",lineHeight:"22px"},(0,r.mp)({direction:e,marginEnd:8})]),"label:StyledMessageButton;"),p=(0,i.default)("div",{target:"e18e4obn4"})((({hide:e,status:t})=>{const n=t===o.ns||t===o._K,i=t===o.ns||t===o.ze;return[{position:"absolute",left:"0",top:"0",minWidth:"208px",height:"36px",lineHeight:"22px",zIndex:e?-1:"unset",opacity:Number(n)},i?{transition:"opacity 0.5s"}:null]}),"label:DivFollowButtonWrapper;"),h=(0,i.default)(a.y,{target:"e18e4obn5"})({minWidth:"208px",lineHeight:"22px"},"label:StyledFollowButton;"),m=(0,i.default)("div",{target:"e18e4obn6"})((({theme:{direction:e,colors:t}})=>[{display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box",width:"36px",height:"36px",border:"1px solid rgba(22, 24, 35, .12)",borderRadius:"4px",cursor:"pointer",position:"relative",backgroundColor:t.BGSecondary2,float:(0,r.t7)(e,"end"),":hover":{backgroundColor:t.BGView}}]),"label:DivFollowIconContainer;")},72539:(e,t,n)=>{n.r(t),n.d(t,{default:()=>xe});var i=n(2787),o=n(40099),l=n(25616),r=n(60484),a=n(49057),d=n(40935),s=n(44935),u=n(89311),c=n(39771),p=n(72688),h=n(60066),m=n(21765),f=n(59504),g=n(25047),b=n(46682),v=n(73580),x=n(87664),y=n(48615),_=n(81211),w=n(37434),C=n(86152),I=n(88920),Y=n(58305),k=n(45297),T=n(52913),S=n(54129),D=n(82548),E=n(16891),P=n(67518),B=n(97706),F=n(62186),M=n(72153);const A=(0,F.default)("div",{target:"e162h3pn0"})({padding:"16px",width:"264px",wordBreak:"break-word"},"label:DivTipWrapper;"),L=(0,F.default)("h3",{target:"e162h3pn1"})((({theme:e})=>(0,M.zy)({theme:e,typography:"P2",color:"ConstTextInverse",fontWeight:"semiBold"})),{marginBottom:"4px"},"label:H3TipTitle;"),z=(0,F.default)("p",{target:"e162h3pn2"})((({theme:e})=>(0,M.zy)({theme:e,typography:"P3",color:"ConstTextInverse"})),"label:PTipDesc;"),N=(0,F.default)("div",{target:"e162h3pn3"})({display:"flex",justifyContent:"flex-end"},"label:DivButtonWrapper;"),q=(0,F.default)("button",{target:"e162h3pn4"})(M.WA,(({theme:e})=>(0,M.zy)({theme:e,typography:"P2",color:"ConstTextInverse",fontWeight:"semiBold"})),{cursor:"pointer"},"label:ButtonOk;"),W=(0,F.default)("button",{target:"e162h3pn5"})(M.WA,(({theme:e})=>(0,M.zy)({theme:e,typography:"P2",color:"ConstTextInverse",fontWeight:"semiBold"})),{cursor:"pointer"},"label:ButtonCancel;"),H=(0,o.memo)((({showPopover:e,title:t,description:n,cancelText:l,okText:r,onOkClick:a,onCancel:d})=>{const{colors:s,direction:u}=(0,P.u)(),c=(0,o.useRef)(!1);(0,o.useEffect)((()=>{let t;return e&&(t=window.setTimeout((()=>{c.current=!0,d("auto_cancel")}),5e3)),()=>clearTimeout(t)}),[d,e]),(0,o.useEffect)((()=>()=>{e&&!c.current&&d("other")}),[e]);const p=(0,o.useCallback)((()=>{a()}),[a]),h=(0,o.useCallback)((()=>{c.current=!0,d("cancel")}),[d]),m="ltr"===u?"bottomLeft":"bottomRight";return(0,i.Y)(B.z,{active:e,backgroundColor:s.ConstSecondary2,placement:m,arrowMargin:"58px",margin:"0",children:(0,i.FD)(A,{children:[(0,i.Y)(L,{children:t}),(0,i.Y)(z,{children:n}),(0,i.FD)(N,{children:[(0,i.Y)(W,{onClick:h,children:l}),r&&(0,i.Y)(q,{onClick:p,children:r})]})]})})}));var U=n(86079),R=n(73211),j=n(97397),O=n(24643),$=n(84987);const K={id:"edit-fd9cf296",use:"edit-fd9cf296-usage",viewBox:"0 0 20 20",content:''};function V(e){const t=(0,o.useContext)($.X);return(0,o.useLayoutEffect)((()=>(t.add(K),()=>{t.remove("edit-fd9cf296")})),[]),(0,O.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,O.jsx)("use",{xlinkHref:"#edit-fd9cf296"},void 0)}),void 0)}const X=(0,F.default)("div",{target:"e33dl3i0"})({position:"relative",height:"36px",padding:0,margin:0,marginTop:"16px",display:"flex",alignItems:"center"},"label:DivEditContainer;"),J=(0,F.default)(j.y,{target:"e33dl3i1"})((({theme:{direction:e}})=>[{height:"36px",fontSize:"16px",display:"flex",alignItems:"center",padding:"0 16px",minWidth:"136px",lineHeight:"24px","> span":{whiteSpace:"nowrap"}},(0,M.mp)({direction:e,marginEnd:8})]),"label:StyledEditButton;"),G=(0,F.default)(V,{target:"e33dl3i2"})((({theme:{direction:e,colors:t}})=>[{width:"20px",height:"20px",color:t.Primary2},(0,M.mp)({direction:e,marginEnd:6})]),"label:StyledEditIcon;");var Q,Z=n(61456);!function(e){e.VerifyTip="1",e.ProfileUpdateTip="2"}(Q||(Q={}));const ee=(0,o.memo)((function(){const e=(0,l.s)();return(0,o.useEffect)((()=>{E.f.sendEvent("Promote_entrance_show",{enter_from:"personal_page_profile"})}),[]),(0,i.FD)(J,{size:"medium",onClick:()=>{E.f.sendEvent("Promote_entrance_click",{enter_from:"personal_page_profile"}),window.location.href="/promote/web/main?enter_from=personal_page_profile"},children:[(0,i.Y)(x.x,{color:"Primary2"}),(0,i.Y)("span",{style:{marginInlineStart:6},children:e("Promote_web_entrance_profile")})]})})),te=(0,o.memo)((function({user:e}){var t,n,r;const[d,s]=(0,o.useState)(!1),[u,c]=(0,o.useState)(!1),{uniqueIdModifyTime:h,nickNameModifyTime:m}=e,[f,g]=(0,o.useState)({changeable:!0,nextTimeStr:""}),[x,E]=(0,o.useState)({changeable:!0,nextTimeStr:""}),{language:P}=null!==(t=(0,a.W)((()=>["language"]),[]))&&void 0!==t?t:{},{config:B}=null!==(n=(0,y.U)((()=>["config"]),[]))&&void 0!==n?n:{},F=null!==(r=null==B?void 0:B.nickNameControlDay)&&void 0!==r?r:"7",M=null!=P?P:"en",[{newUniqueInfo:A},L]=(0,b.S)(R.it),z=(0,_.U)({pathname:(0,p.fJR)({uniqueId:A.uniqueId}),search:{}}),N=(0,l.s)(),[q,W]=(0,o.useState)(""),j=(0,w.Us)(),O=(0,v.Nj)(T.r);(0,o.useEffect)((()=>{j.appContext&&O.setContext(j.appContext)}),[j.appContext,O]),(0,o.useEffect)((()=>{if(h){const{changeable:e,nextTime:t}=(0,Z.l)(Number(h),30),n=(0,C.SV)(Number(t),M,"MMM D, YYYY");g({changeable:e,nextTimeStr:n})}}),[M,h]),(0,o.useEffect)((()=>{if(m){const{changeable:e,nextTime:t}=(0,Z.l)(Number(m),Number(F)),n=(0,C.SV)(Number(t),M,"MMM D, YYYY");E((t=>Object.assign(Object.assign({},t),{changeable:e,nextTimeStr:n})))}}),[M,m,F]);const{removeEditProfilePop:$}=(0,I.gR)();(0,o.useEffect)((()=>{const e=!(0,Y._S)(k.vt)&&!$;e&&(S.s.handleShowProfileTooltip({enter_from:"personal_homepage"}),(0,Y.AP)(k.vt,"1"),D.U.handlePopupShow({enter_method:"edit_profile_popup"})),c(e)}),[$]),(0,o.useEffect)((()=>{const e=(0,Y.Hd)(k.Iw);e&&(W(e),s(!0),(0,Y.X)(k.Iw))}),[]);const K=(0,o.useCallback)((()=>{S.s.handleClickEditProfile({enter_from:"personal_homepage"}),W("personal_homepage"),s(!0)}),[]),V=(0,o.useCallback)((()=>{s(!1)}),[]),Q=(0,o.useCallback)((e=>{S.s.handleCloseProfileTooltip({enter_from:"personal_homepage",close_method:e}),c(!1)}),[]),te=(0,o.useCallback)((e=>{(0,Y.J2)(k.BP,e?"1":"2"),L.SetSaveCode(R.jp),s(!1),setTimeout((()=>{window.location.href=z}),3e3)}),[z,L]),ne=!!e.HasPromoteEntry;return(0,i.FD)(X,{"data-e2e":"edit-profile-entrance",children:[(0,i.FD)(J,{onClick:K,size:"medium",children:[(0,i.Y)(G,{}),(0,i.Y)("span",{children:N("editprofile_editprofile")})]}),ne&&(0,i.Y)(ee,{}),(0,i.Y)(U.W,{editProfileFrom:q,uniqueIdChangeInfo:f,nameChangeInfo:x,onUpdated:te,onCloseModal:V,visible:d,user:e,nickNameControlDay:F}),(0,i.Y)(H,{onCancel:Q,showPopover:u,cancelText:N("editprofile_close"),title:N("editprofile_tooltip_title"),description:N("editprofile_tooltip_subtitle")})]})}));var ne=n(99260),ie=n(46463),oe=n(17784),le=n(7751),re=n(56152),ae=n(96689),de=n(34012),se=n(67963),ue=n(45445),ce=n(25754),pe=n(38597),he=n(95197),me=n(3885);const fe=(0,o.memo)((function({user:e,style:t={}}){var n,r;const s=(0,l.s)(),{user:u,language:c="en"}=null!==(n=(0,a.W)((()=>["user","language"]),[]))&&void 0!==n?n:{},p=(0,o.useRef)(null),h=(0,o.useRef)(null),{relation:m,uniqueId:f}=e,g=!!u&&f===u.uniqueId,b=(0,ae.K)({query:{enter_method:"click_follow"}}),{handleFollow:v,text:x,isFollowing:y,relation:_}=(0,d.Tu)({uniqueId:null!==(r=null==e?void 0:e.uniqueId)&&void 0!==r?r:"",onNeedLogin:b}),[w,C]=(0,o.useState)(!1),I=3===_,Y=4===_,k=y&&!(null==u?void 0:u.hasIMPermission),T=Y||I||k,S=(0,o.useCallback)((()=>ce.w.handleEnterChatList()),[]);(0,o.useEffect)((()=>{Y&&pe.h.handleBlockShow(!Y)}),[Y]);const D=(0,o.useCallback)((()=>{C(!0)}),[]),E=(0,o.useCallback)((()=>{C(!1)}),[]),P=(0,o.useCallback)((e=>{Y?D():v(e)}),[Y,D,v]),{path:B,target:F}=(0,de._Y)(c);return(0,i.FD)(i.FK,{children:[(0,i.FD)(me.XT,{style:t,children:[!g&&(0,i.Y)(oe.Ay,{timeout:300,in:!y||!(null==u?void 0:u.hasIMPermission),nodeRef:p,children:n=>(0,i.Y)(me.QD,{ref:p,status:n,style:t,children:(0,i.FD)(me.rO,{size:"medium",buttonTheme:T?"default":"primary",hide:y&&(null==u?void 0:u.hasIMPermission),"data-e2e":"follow-button",onClick:P,style:t,"aria-label":`${x} ${null==e?void 0:e.nickname}`,children:[2===m?(0,i.Y)(me.Yn,{}):null,x]})})}),!g&&(null==u?void 0:u.hasIMPermission)&&(0,i.Y)(oe.Ay,{timeout:300,in:y,nodeRef:h,children:t=>(0,i.FD)(me.iH,{hide:!y,status:t,ref:h,children:[(0,i.Y)(se.N_,{forceSSR:!1,to:`${B}&u=${null==e?void 0:e.id}`,target:F,onClick:S,style:{textDecoration:"none"},children:(0,i.Y)(me.xI,{size:"medium",buttonTheme:"line",children:s("webdm_message_button")})}),(0,i.Y)(he.m,{overlay:s("user_action_unfollow"),placement:"bottom",children:(0,i.Y)(me.tR,{onClick:v,children:2===m?(0,i.Y)(le.A,{width:20,height:20}):(0,i.Y)(re.A,{width:20,height:20})})})]})})]}),(0,i.Y)(ue.j,{visible:w,uniqueId:f,onClose:E})]})}));var ge=n(29046),be=n(6709),ve=n(343);const xe=(0,o.memo)((function({detailInfo:e}){const t=(0,l.s)(),{user:n}=e,{language:b="en",user:v}=(0,r.L$)((0,a.W)((()=>["language","user"]),[])),{uniqueId:x,secUid:y,nickname:_,secret:w}=(0,r.L$)(n),{isFollowing:C}=(0,d.Tu)({uniqueId:x}),I=(0,ne.b3)({uniqueId:x,secUid:y}),Y=(0,s.CE)(x),{isRTL:k}=(0,u.m)(),T=null==v?void 0:v.ftcUser,S=(0,o.useMemo)((()=>{var e;return I?null:{report_type:"user",object_id:null!==(e=null==n?void 0:n.id)&&void 0!==e?e:"",owner_id:null==n?void 0:n.id,secUid:y,nickname:_,lang:b}}),[b,I,null==n?void 0:n.id,y,_]),{signature:D,isUnderAge18:E,id:P,isEmbedBanned:B=!1,profileEmbedPermission:F,eventList:M}=(0,r.L$)(n),A=D||t("No bio yet."),L=(0,c.I)(`https://www.tiktok.com${(0,p.fJR)({uniqueId:x,secUid:y})}`,{sender_device:"pc"}),z=Boolean(w)||3===F||E,N=2===F||B,q=(null==M?void 0:M.length)?M.map((e=>({eventId:e.id,eventStartTime:Number(e.start_time),authorId:P}))):void 0;return n?(0,i.FD)(m.L0,{embedType:1,embedCode:Y,hideActions:I,isProfile:I,isFollowing:C,isEmbedDisabled:z,isEmbedBanned:N,uniqueId:x,itemListKey:"user",report:S,shareUrl:L,uid:P,style:{maxWidth:"624px",paddingRight:k?0:"92px",paddingLeft:k?"92px":0,minHeight:"140px",display:"flex",flexDirection:"column"},children:[(0,i.FD)(f.b_,{children:[(0,i.Y)(g.q,{user:n,isFTC:T,e2eTag:"user-avatar",supportsStories:!0}),(0,i.FD)(f.il,{children:[(0,i.Y)(ve.q,{detailInfo:e}),!I&&(0,i.Y)(fe,{user:n}),I&&!T&&(0,i.Y)(te,{user:n})]})]}),(0,i.Y)(ie.A,{detailInfo:e,useUpdatedCreatorHeader:!1,isProfile:I}),(0,i.Y)(be.bM,{"data-e2e":"user-bio",children:A}),(0,i.Y)(ge.x,{user:n}),q?(0,i.Y)(be.WX,{children:(0,i.Y)(h._,{displayMultiEvents:!0,eventList:q})}):null]}):null}))},87664:(e,t,n)=>{n.d(t,{x:()=>r});var i=n(18047),o=n(52837),l=n(40099),r=(0,o.r)((function(e){return l.createElement("svg",(0,i._)({fill:"currentColor"},e,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",className:e.className}),l.createElement("path",{d:"M27.31 2.3c.7.4 1.1 1.16 1.06 1.97-.26 4.75-.12 9.08.62 12.42.36 1.65.83 2.92 1.39 3.87 1.28-4.09 3.35-7.57 6.39-9.61a2.11 2.11 0 0 1 2.28-.06c.7.43 1.1 1.23 1.02 2.06l-.01.05a12.25 12.25 0 0 0-.06.93c-.02.64-.03 1.54.02 2.55.11 2.1.49 4.36 1.37 5.92 2.62 4.62 1.74 10.43-.48 14.9-1.33 2.7-3.88 4.85-6.8 6.33a22.54 22.54 0 0 1-10 2.37c-9.18 0-15.7-4.65-17.91-9.9-1.47-3.47-1.43-7.44-.73-10.74.36-1.67.9-3.23 1.55-4.56a9.9 9.9 0 0 1 2.47-3.3 2.11 2.11 0 0 1 3.39 1.15 30.5 30.5 0 0 0 1.66 4.95c.45-9.18 3.5-16.68 10.55-21.26a2.11 2.11 0 0 1 2.22-.05Zm8.59 16.02c-.96 1.77-1.73 4-2.25 6.64a2.11 2.11 0 0 1-2.95 1.54c-3.35-1.5-5.03-5.07-5.87-8.88A42.8 42.8 0 0 1 24 8.84c-4.01 4.46-5.61 11.1-5.2 19.89a2.12 2.12 0 0 1-2.13 2.25 4.86 4.86 0 0 1-3.35-1.5c-.82-.8-1.49-1.81-2.04-2.86-.4-.73-.75-1.53-1.08-2.36-.21.62-.4 1.3-.56 2-.58 2.74-.54 5.75.48 8.17 1.42 3.35 6.17 7.28 14 7.28 2.86 0 5.73-.73 8.1-1.92 2.4-1.21 4.1-2.8 4.9-4.4 1.87-3.78 2.23-7.97.59-10.86a16.53 16.53 0 0 1-1.8-6.21Z"}))}))}}]);