"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3654],{15936:(e,t,o)=>{o.d(t,{B:()=>l});var a=o(40099);const l=(e,t=["Enter"])=>(0,a.useCallback)((o=>{t.some((e=>o.key===e))&&e(o)}),[e,t])},13196:(e,t,o)=>{o.d(t,{hX:()=>a,qQ:()=>l});const a=e=>[...e].map((e=>`${e.codePointAt(0)}`)),l=e=>"us"===(null==e?void 0:e.toLowerCase())},35656:(e,t,o)=>{o.d(t,{B:()=>d});var a=o(58632),l=o(24643),i=o(4474),n=o(40099),r=o(72688),s=o(67963);const d=(0,n.forwardRef)((function(e,t){var{uniqueId:o,secUid:d,extraQuery:c={},children:p,replace:u=!1,isInBrowserMode:m=!1,teaParams:g,stopPropagation:h=!0,shouldDirectOpenLive:x=!1,onClick:b,onLinkClick:f}=e,k=(0,a.__rest)(e,["uniqueId","secUid","extraQuery","children","replace","isInBrowserMode","teaParams","stopPropagation","shouldDirectOpenLive","onClick","onLinkClick"]);const _=(0,n.useMemo)((()=>({pathname:(0,r.G2o)({uniqueId:o,secUid:d}),search:c})),[c,d,o]),v=(0,n.useRef)(null),y=(0,n.useCallback)((e=>{e.preventDefault();const t=(0,i.stringifyUrl)({url:(0,r.G2o)({uniqueId:o,secUid:d}),query:c});x?window.location.href=t:window.open(t,"tiktok_live_view_window")}),[o,d,c]),C=(0,n.useCallback)((e=>{y(e),h&&e.stopPropagation(),null==b||b(e),null==f||f(e,_.pathname)}),[y,h,b,f,_.pathname]),T=(0,n.useCallback)((e=>{var t;13===e.keyCode&&(e.preventDefault(),e.stopPropagation(),null===(t=v.current)||void 0===t||t.click())}),[]);return(0,n.useImperativeHandle)(t,(()=>({linkClick:()=>{var e;null===(e=v.current)||void 0===e||e.click()}}))),(0,l.jsx)(s.N_,Object.assign({to:_},k,{replace:u||m,ref:v,target:"tiktok_live_view_window",onClick:C,onKeyDown:T,children:p}))}))},44061:(e,t,o)=>{o.d(t,{C:()=>i});var a=o(40099),l=o(34012);const i=()=>{const e=(0,a.useRef)(null),[t,o]=(0,a.useState)(!1),i=(0,l.Ig)();return{showing:t&&!i,handleItemEnter:(0,a.useCallback)((()=>{e.current=setTimeout((()=>{e.current&&o(!0)}),1e3)}),[]),handleItemLeave:(0,a.useCallback)((()=>{e.current&&(clearTimeout(e.current),e.current=null),e.current=setTimeout((()=>{e.current&&o(!1)}),1e3)}),[]),handleCardEnter:(0,a.useCallback)((()=>{e.current&&(clearTimeout(e.current),e.current=null),o(!0)}),[]),handleCardLeave:(0,a.useCallback)((()=>{e.current=setTimeout((()=>{o(!1)}),500)}),[])}}},46251:(e,t,o)=>{o.d(t,{t:()=>U});var a=o(24643),l=o(40099),i=o(41183),n=o(50289),r=o(92846),s=o(97397),d=o(72688),c=o(58305),p=o(25616),u=o(22248),m=o(40772),g=o(60484),h=o(49057),x=o(81211),b=o(40935),f=o(96689),k=o(38975),_=o(62186),v=o(72153),y=o(85041);const C=(0,_.default)("div",{target:"er095111"})((({paddingStart:e=0,theme:{direction:t}})=>[{zIndex:100,position:"absolute"},(0,v.mp)({direction:t,paddingStart:e})]),"label:DivProfileOuterContainer;"),T=(0,_.default)("div",{target:"er095112"})((({theme:{colors:e,isDark:t}})=>({position:"relative",width:"320px",boxSizing:"border-box",padding:"20px",background:e.BGSecondary,boxShadow:t?"unset":`0px 4px 16px ${e.ShadowPrimary}`,borderRadius:"8px"})),"label:DivProfileContainer;"),w=(0,_.default)("div",{target:"er095113"})({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},"label:DivHeadContainer;"),S=(0,_.default)(y.E,{target:"er095114"})((({theme:e})=>(0,v.zy)({theme:e,color:"TextPrimary",fontWeight:"bold",fontFamily:"TikTokDisplayFont",typography:"H5"})),v.AB,"label:StyledUserTitle;"),j=(0,_.default)(y.E,{target:"er095115"})((({theme:e})=>(0,v.zy)({theme:e,color:"TextPrimary",fontWeight:"semiBold",fontFamily:"TikTokFont",typography:"P3"})),v.AB,"label:StyledUserName;"),D=(0,_.default)(y.E,{target:"er095116"})({display:"block",width:"44px",flex:"0 0 44px"},"label:StyledAvatarLink;"),P=(0,_.default)("p",{target:"er095117"})({marginTop:"8px"},"label:PUserStat;"),M=(0,_.default)("span",{target:"er095118"})((({theme:e})=>[(0,v.zy)({theme:e,fontWeight:"bold",typography:"H3"}),(0,v.mp)({direction:e.direction,marginEnd:"6px"}),{fontSize:"17px",lineHeight:"20px",display:"inline-block"}]),"label:SpanUserStatsText;"),z=(0,_.default)("span",{target:"er095119"})((({theme:e})=>[(0,v.zy)({theme:e,color:"TextSecondary",typography:"H3"}),{fontSize:"17px",lineHeight:"20px",display:"inline-block",":not(:last-of-type)":(0,v.mp)({direction:e.direction,marginEnd:"12px"})}]),"label:SpanUserStatsDesc;"),L=(0,_.default)("p",{target:"er0951110"})((({theme:e})=>[(0,v.zy)({theme:e,typography:"P3"}),{paddingTop:"16px",marginTop:"16px",borderTop:`1px solid ${e.colors.LineSecondary2}`}]),"label:PSignature;");var F=o(32125),I=o(84908);const U=(0,l.memo)((function(e){var t,o;const{uniqueId:_,top:v,target:y="_blank",hideSignature:U,fixedLeft:E,paddingStart:B,paddingTop:H,groupId:W,followTheme:A,teaParams:O,onClick:R}=e,q=(0,p.s)(),[N,G]=(0,I.JY)((e=>({user:e.users[_],stats:e.stats[_]})),F.bN),{isADVirtual:$}=null!==(t=null==N?void 0:N.user)&&void 0!==t?t:{},{language:Q}=null!==(o=(0,h.W)((()=>["language"]),[]))&&void 0!==o?o:{},V=(0,f.G)({modalConfig:{query:{enter_method:"click_follow",group_id:W}}}),J=Object.assign({enter_method:"click_hover"},O);W&&(J.group_id=W);const{isFollowing:K,handleFollow:X,text:Y}=(0,b.Tu)({uniqueId:_,onNeedLogin:V,teaParams:J}),{secUid:Z,id:ee}=(0,g.L$)(N.user);(0,l.useEffect)((()=>{N.stats&&!N.stats.needFix||G.getUserDetail({uniqueId:_,secUid:Z,language:Q})}),[G,N.stats,Q,Z,_]),(0,l.useEffect)((()=>{i.c.handleDropdownCardShow()}),[]);const te=(0,l.useMemo)((()=>({to_user_id:ee,author_id:ee,enter_method:"click_dropdown_card"})),[ee]),oe=(0,x.U)({pathname:(0,d.fJR)({uniqueId:_,secUid:Z})}),ae=(0,m.w)(),le=(0,l.useCallback)((e=>{(0,c.Gu)(e),null==R||R(e),$||("_blank"===y?window.open(oe,"_blank"):ae(e,{href:oe,shouldUsePush:!0}))}),[ae,oe,R,$,y]);if(!N.user)return(0,u.d)(["item.user"]);const{avatarThumb:ie,nickname:ne,verified:re,signature:se,stateControlledMedia:de}=N.user,{stats:ce}=N;return W&&(te.group_id=W),(0,a.jsx)(C,{paddingStart:B,paddingTop:H,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,style:{top:(null!=v?v:0)+40,left:E},children:(0,a.jsxs)(T,{children:[(0,a.jsxs)(w,{children:[(0,a.jsx)(D,{uniqueId:_,secUid:Z,target:y,rel:"opener",teaParams:te,"data-e2e":"user-card-avatar",onClick:le,children:(0,a.jsx)(r.e,{size:44,src:ie})}),(0,a.jsx)(s.y,{size:"small",onClick:X,buttonTheme:K?"default":null!=A?A:"line","data-e2e":"user-card-follow",children:Y})]}),(0,a.jsxs)(S,{uniqueId:_,secUid:Z,target:y,rel:"opener",teaParams:te,children:[(0,a.jsx)("span",{"data-e2e":"user-card-username",children:_}),re&&(0,a.jsx)(n.s,{width:14,height:14,"data-e2e":"user-card-bluev"})]}),(0,a.jsx)("br",{}),(0,a.jsx)(j,{uniqueId:_,secUid:Z,target:y,rel:"opener",teaParams:te,"data-e2e":"user-card-nickname",children:ne}),(0,a.jsx)(k.w,{stateControlledMedia:de,labelType:2}),(0,a.jsxs)(P,{children:[(0,a.jsx)(M,{"data-e2e":"user-card-follower-count",children:ce?(0,g.D1)(ce.followerCount):"--"}),(0,a.jsx)(z,{"data-e2e":"user-card-follower",children:q("Followers")}),(0,a.jsx)(M,{"data-e2e":"user-card-like-count",children:ce?(0,g.D1)(Number(ce.heart)||ce.heartCount):"--"}),(0,a.jsx)(z,{"data-e2e":"user-card-like",children:q("Likes")})]}),se&&!U&&(0,a.jsx)(L,{"data-e2e":"user-card-user-bio",children:se})]})})}))},38975:(e,t,o)=>{o.d(t,{w:()=>g});var a,l=o(24643),i=o(40099),n=o(41664),r=o(81138),s=o(7476),d=o(62186),c=o(72153);!function(e){e[e.User=0]="User",e[e.Caption=1]="Caption",e[e.ToolTip=2]="ToolTip"}(a||(a={}));const p=(0,d.default)("div",{target:"e2imevf0"})((({labelType:e,theme:{colors:t}})=>[{display:"flex",width:"fit-content",borderRadius:"2px",alignItems:"center"},1===e?{backgroundColor:t.ConstBGInverse3,padding:"0 5px"}:0===e?{cursor:"pointer",backgroundColor:t.BGInput,padding:"1px 4px"}:{cursor:"pointer",flexDirection:"row-reverse"}]),"label:DivSCMLabel;"),u=(0,d.default)("div",{target:"e2imevf1"})((({labelType:e,theme:t})=>[(0,c.zy)({theme:t,fontFamily:"TikTokFont",fontWeight:2===e?"normal":"semiBold"}),1===e?{fontSize:"13px",lineHeight:"22px",color:t.colors.ConstTextInverse,marginLeft:"4px"}:0===e?{fontSize:"12px",lineHeight:"18px",color:t.colors.TextPrimary,marginLeft:"4px"}:{fontSize:"14px",lineHeight:"22px",color:t.colors.TextTertiary,marginRight:"4px"}]),"label:DivSCMText;");var m=o(45962);const g=(0,i.memo)((({stateControlledMedia:e,isUserPage:t,labelType:o,style:a={}})=>{const[d,c]=(0,i.useState)(!1),g=(0,i.useCallback)((()=>{c(!1),s.E.handleQuit()}),[]),h=(0,i.useCallback)((()=>{c(!0),s.E.handleTagClick()}),[]),x=(0,i.useCallback)((()=>{s.E.handleSCMLearnMore()}),[]);return(0,i.useEffect)((()=>{e&&t&&s.E.handleSCMPageView()}),[t,Boolean(e)]),e?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(p,{style:a,labelType:o,onClick:h,children:[2===o?(0,l.jsx)(n.N,{size:12}):(0,l.jsx)(r.o,{size:14}),(0,l.jsx)(u,{labelType:o,children:null==e?void 0:e.text})]}),(0,l.jsx)(m.V,{pathname:null==e?void 0:e.url,visible:d,onClose:g,isWebapp:!0,onJump:x})]}):null}))},45962:(e,t,o)=>{o.d(t,{V:()=>z});var a=o(24643),l=o(40099),i=o(47172),n=o(81138),r=o(7476),s=o(25616),d=o(60484),c=o(53764),p=o(95481),u=o(49057),m=o(48615),g=o(34131),h=o(62186),x=o(72153),b=o(67963);const f=(0,h.default)("div",{target:"es1egko0"})({padding:"24px 20px 6px",width:"310px",borderRadius:"8px",textAlign:"center",wordBreak:"break-word",display:"flex",flexDirection:"column",alignItems:"center"},"label:DivMobileWrapper;"),k=(0,h.default)("div",{target:"es1egko1"})((({theme:e})=>({padding:"32px",width:"400px",borderRadius:"8px",textAlign:"center",wordBreak:"break-word",display:"flex",flexDirection:"column",alignItems:"center",color:e.colors.TextPrimary})),"label:DivDesktopWrapper;"),_=(0,h.default)("div",{target:"es1egko4"})((({theme:e})=>[{textAlign:"center",fontSize:"20px",lineHeight:"24px",margin:"16px 0 12px"},(0,x.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"bold",color:"TextPrimary"})]),"label:DivMobileTitle;"),v=(0,h.default)("div",{target:"es1egko5"})((({theme:e})=>[{textAlign:"center",fontSize:"24px",lineHeight:"36px",margin:"16px 0"},(0,x.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"bold",color:"TextPrimary"})]),"label:DivDesktopTitle;"),y=(0,h.default)("div",{target:"es1egko6"})((({theme:e})=>[{textAlign:"center",fontSize:"15px",lineHeight:"18px"},(0,x.zy)({theme:e,fontFamily:"TikTokFont",color:"TextSecondary"})]),"label:DivMobileContent;"),C=(0,h.default)("div",{target:"es1egko7"})((({theme:e})=>[{textAlign:"center",fontSize:"16px",lineHeight:"22px"},(0,x.zy)({theme:e,fontFamily:"TikTokFont",color:"TextSecondary"})]),"label:DivDesktopContent;"),T=(0,h.default)("div",{target:"es1egko8"})({display:"flex",marginTop:"16px"},"label:DivDesktopBtnWrapper;"),w={width:"100%",height:"44px",fontSize:"15px",lineHeight:"44px",textDecoration:"none"},S={width:"164px",height:"48px",fontSize:"16px",lineHeight:"48px",borderRadius:"4px"},j=(0,h.default)(b.N_,{target:"es1egko9"})((({theme:e})=>[(0,x.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"semiBold"}),Object.assign(Object.assign({},w),{margin:"22px 0 2px",borderRadius:"2px",color:`${e.colors.ConstTextInverse} !important`,backgroundColor:e.colors.Primary,display:"block"})]),"label:StyledMobileLink;"),D=(0,h.default)(b.N_,{target:"es1egko10"})((({theme:e})=>[(0,x.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"bold"}),Object.assign(Object.assign({},S),{backgroundColor:e.colors.Primary,color:`${e.colors.ConstTextInverse} !important`,display:"block"})]),"label:StyledDesktopLink;"),P=(0,h.default)("div",{target:"es1egko11"})((({theme:e})=>[(0,x.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"normal"}),Object.assign(Object.assign({},w),{backgroundColor:e.colors.BGTertiary,color:e.colors.TextReverse2})]),"label:DivMobileDismiss;"),M=(0,h.default)("div",{target:"es1egko12"})((({theme:e})=>[(0,x.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"bold"}),Object.assign(Object.assign({},S),{backgroundColor:e.colors.BGSecondary2,marginRight:"8px",color:e.colors.TextPrimary,border:`1px solid ${e.colors.LineSecondary2}`,cursor:"pointer"})]),"label:DivDesktopDismiss;"),z=(0,l.memo)((({visible:e,pathname:t,newWindow:o=!1,isWebapp:h=!1,onClose:x,onJump:b})=>{const{language:w,user:S,region:z}=(0,d.L$)((0,u.W)((()=>["language","user","region"]),[])),{isMobile:L}=(0,d.L$)((0,m.U)((()=>["isMobile"]),[])),F=(0,s.s)(),I=(0,i.useLocation)(),U=(0,g.FR)({location:I,to:{pathname:t,search:{lang:w,user_id:null==S?void 0:S.uid,is_user_log_in:S?1:0,country_code:z}}}),E=(0,c.M)();return(0,l.useEffect)((()=>{h&&e&&r.E.handleSCMDescPopUp()}),[h,e]),L?(0,a.jsx)(p.aF,{visible:e,maskCloseable:!0,onClose:x,children:(0,a.jsxs)(f,{children:[(0,a.jsx)(n.o,{size:48,center:!0}),(0,a.jsx)(_,{children:F("scm_label_and_appeal_modal_title")}),(0,a.jsx)(y,{children:F("scm_label_and_appeal_modal_desc")}),(0,a.jsx)(j,{target:o?"_blank":void 0,forceSSR:!0,to:U,onClick:b,children:F("scm_label_and_appeal_modal_button_learn_more")}),(0,a.jsx)(P,{onClick:x,children:F("scm_label_and_appeal_modal_button_dismiss")})]})}):(0,a.jsx)(p.aF,{parentRef:E,visible:e,maskCloseable:!0,onClose:x,children:(0,a.jsxs)(k,{children:[(0,a.jsx)(n.o,{size:64,center:!0}),(0,a.jsx)(v,{children:F("scm_label_and_appeal_modal_title")}),(0,a.jsx)(C,{children:F("scm_label_and_appeal_modal_desc")}),(0,a.jsxs)(T,{children:[(0,a.jsx)(M,{onClick:x,children:F("scm_label_and_appeal_modal_button_dismiss")}),(0,a.jsx)(D,{target:o?"_blank":void 0,forceSSR:!0,to:U,onClick:b,children:F("scm_label_and_appeal_modal_button_learn_more")})]})]})})}))},7476:(e,t,o)=>{o.d(t,{E:()=>i});var a,l=o(93608);!function(e){e.SCMPageView="scm_page_view",e.SCMTagClick="scm_tag_click",e.SCMDescriptionPop="scm_description_pop",e.SCMLearnMoreClick="scm_learn_more_click",e.SCMQuit="scm_quit"}(a||(a={}));const i={handleSCMPageView:()=>{l.f.event("scm_page_view")},handleTagClick:()=>{l.f.event("scm_tag_click")},handleQuit:()=>{l.f.event("scm_quit")},handleSCMLearnMore:()=>{l.f.event("scm_learn_more_click")},handleSCMDescPopUp:()=>{l.f.event("scm_description_pop")}}},41183:(e,t,o)=>{o.d(t,{c:()=>l});var a=o(93608);const l={handleDropdownCardShow:()=>{a.f.sendEvent("dropdown_card_show")},handleProfileDropdownClick:e=>{a.f.sendEvent("profile_click",e)}}}}]);