"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2206],{13391:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Qr});var i=n(2787),o=n(40099),a=n(11060),l=n(17784),r=n(50970),s=n(88920),d=n(60484),c=n(15942),u=n(21683),p=n(24643),h=n(41271),g=n(46682),m=n(70364),v=n.n(m),f=n(47172),x=n(48615),_=n(5441),b=n(78662),y=n(46251),w=n(89005),k=n(72153),j=n(67518),C=n(25616),S=n(49730),L=n(82715),T=n(23255),I=n(62186),P=n(31355),D=n(74499),E=n(46102),B=n(84987);const O={id:"single-logo-dark-3ed5e24d",use:"single-logo-dark-3ed5e24d-usage",viewBox:"0 0 25 42",content:''};function A(e){const t=(0,o.useContext)(B.X);return(0,o.useLayoutEffect)((()=>(t.add(O),()=>{t.remove("single-logo-dark-3ed5e24d")})),[]),(0,p.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,p.jsx)("use",{xlinkHref:"#single-logo-dark-3ed5e24d"},void 0)}),void 0)}const R={id:"single-logo-light-1115c5dd",use:"single-logo-light-1115c5dd-usage",viewBox:"0 0 25 42",content:''};function M(e){const t=(0,o.useContext)(B.X);return(0,o.useLayoutEffect)((()=>(t.add(R),()=>{t.remove("single-logo-light-1115c5dd")})),[]),(0,p.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,p.jsx)("use",{xlinkHref:"#single-logo-light-1115c5dd"},void 0)}),void 0)}const F=(0,I.default)(P.N_,{target:"e13d6vb50"})([{fontSize:0},(0,k.jJ)({max:1071,style:{display:"flex",justifyContent:"center",alignItems:"center",marginInlineStart:"unset !important"}})],"label:StyledLinkLogo;");F.defaultProps=Object.assign(Object.assign({},F.defaultProps),{"data-e2e":"tiktok-logo"});const N=(0,I.default)(D.A,{target:"e13d6vb51"})([(0,k.jJ)({max:1071,style:{display:"none"}})],"label:StyledLogoLight;"),U=(0,I.default)(E.A,{target:"e13d6vb52"})([(0,k.jJ)({max:1071,style:{display:"none"}})],"label:StyledLogoDark;"),$=(0,I.default)(A,{target:"e13d6vb53"})([(0,k.jJ)({min:1072,style:{display:"none"}})],"label:StyledSingleLogoLight;"),z=(0,I.default)(M,{target:"e13d6vb54"})([(0,k.jJ)({min:1072,style:{display:"none"}})],"label:StyledSingleLogoDark;"),q=(0,o.memo)((function({style:e={},controlledExpanded:t=!1,controlledCom:n=!1}){var i,a;const l=(0,C.s)(),{isDark:r}=(0,j.u)(),{pathname:s}=(0,f.useLocation)(),d=(0,S.sL)(),c=(0,S.E7)(void 0,null!==(a=null===(i=(0,L.jN)(s))||void 0===i?void 0:i.name)&&void 0!==a?a:L.eU.foryou),u=(0,o.useCallback)((e=>{(0,b.tO)(s)&&(e.preventDefault(),d.resetRecommendList({}),c()),T.t.handleClickLogo()}),[s,d,c]),h=l("TikTok i18n title"),g=(0,o.useMemo)((()=>n?r?(0,p.jsx)(p.Fragment,{children:t?(0,p.jsx)(E.A,{alt:h,height:42,width:118}):(0,p.jsx)(M,{height:42,width:25,alt:h})}):(0,p.jsx)(p.Fragment,{children:t?(0,p.jsx)(D.A,{height:42,width:118,alt:h}):(0,p.jsx)(A,{height:42,width:25,alt:h})}):r?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(U,{alt:h,height:42,width:118}),(0,p.jsx)(z,{height:42,width:25,alt:h})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(N,{height:42,width:118,alt:h}),(0,p.jsx)($,{height:42,width:25,alt:h})]})),[r,h,t,n]);return(0,p.jsxs)(F,{to:L.OZ.home,onClick:u,style:Object.assign({position:"relative"},e),ariaLabel:l("accessibilityLabels_forYou_nav_tiktok_btn"),children:[g,(0,p.jsx)("strong",{children:h})]})}));var W=n(35626),H=n.n(W),V=n(87802),K=n(84872),J=n(56111),X=n(95185),G=n(51664),Y=n(35656),Z=n(85041),Q=n(58305),ee=n(82535),te=n(50289),ne=n(13685);const ie=(0,I.default)("div",{target:"e797se20"})((({theme:e})=>[{padding:"8px",display:"flex",flexDirection:"row",alignItems:"center",position:"relative",borderRadius:"4px",":hover":{textDecoration:"none"}},(0,k.RE)({theme:e})]),"label:DivUserLinkContainer;"),oe=(0,I.default)(ne.i,{target:"e797se22"})((({isSmall:e=!1})=>[({theme:{direction:t}})=>[(0,k.mp)({direction:t,marginEnd:e?"6px":"12px"}),(0,k.jJ)({max:1071,style:(0,k.mp)({direction:t,marginStart:"2px",marginEnd:"0"})})],{flex:"0 0 48px"}]),"label:StyledUserAvatar;"),ae=(0,I.default)(Z.E,{target:"e797se24"})([{flexGrow:1,height:"32px",":hover":{textDecoration:"none"}},(0,k.jJ)({max:1071,style:{display:"none"}})],"label:StyledUserContentLink;"),le=(k.PR,(0,I.default)("div",{target:"e797se26"})({display:"flex",flexDirection:"row",alignItems:"center"},"label:DivUserTitleWrapper;")),re=(0,I.default)("span",{target:"e797se27"})((({theme:e})=>[(0,k.zy)({theme:e,typography:"P2",color:"TextPrimary",fontWeight:"bold",fontFamily:"TikTokDisplayFont"}),{marginTop:"-2px",maxWidth:"145px"}]),k.PR,"label:SpanUserTitle;"),se=(0,I.default)("p",{target:"e797se29"})((({theme:e})=>[(0,k.zy)({theme:e,fontWeight:"normal",typography:"P4",fontFamily:"TikTokFont",color:"TextSecondary"}),{lineHeight:"15px",maxWidth:"145px"}]),k.PR,"label:PUserDesc;"),de=(0,I.default)("div",{target:"e797se213"})((({theme:{direction:e}})=>[{padding:"8px",display:"flex",flexDirection:"row",alignItems:"center",height:"48px"},(0,k.jJ)({max:1071,style:[{justifyContent:"center",width:"48px",height:"48px",marginBottom:"0",padding:"0 8px",borderRadius:"4px"},(0,k.mp)({direction:e,marginStart:"2px"})]})]),"label:DivUserSkeletonContainerV2;"),ce=(0,I.default)("div",{target:"e797se214"})((({theme:{direction:e}})=>[{display:"flex",flexDirection:"column",justifyContent:"space-around",height:"48px"},(0,k.mp)({direction:e,marginStart:"12px"}),(0,k.jJ)({max:1071,style:{display:"none"}})]),"label:DivSkeletonTitleGroup;");var ue=n(32125),pe=n(84908);const he=(0,o.memo)((0,o.forwardRef)((function(e,t){const n=(0,C.s)(),{itemType:i,uniqueId:a,e2ePrefix:l="",style:r,enterMethod:s="click_panel",index:c,isSuggestedContent:u}=e,h=(0,pe.nW)((e=>{const t=e.users[a];if(!t)return null;const{verified:n,avatarThumb:i,secUid:o,nickname:l,roomId:r,id:s,relation:d}=t;return{avatarThumb:i,secUid:o,verified:n,nickname:l,roomId:r,id:s,uniqueId:a,relation:d}}),ue.bN),{secUid:g,verified:m,nickname:v,relation:f}=(0,d.L$)(h),x=(0,G.r$)(h),{isShowLive:_}=x,b=_?Y.B:Z.E,y=(0,o.useRef)(null),w=(0,o.useRef)(null),k=(0,o.useCallback)((()=>{var e;null===(e=y.current)||void 0===e||e.focus()}),[]);(0,o.useImperativeHandle)(t,(()=>({get offsetTop(){var e,t;return null!==(t=null===(e=y.current)||void 0===e?void 0:e.offsetTop)&&void 0!==t?t:0},get offsetLeft(){var e,t;return null!==(t=null===(e=y.current)||void 0===e?void 0:e.offsetLeft)&&void 0!==t?t:0},setFocus:k})),[k]);const j=(0,G.AL)({user:h,enterMethod:s}),S=(0,o.useMemo)((()=>{if(_){let e="";return e="following"===i?"following":"suggest"===i?"recommend":"others",{enter_from_merge:e,enter_method:"suggested_others_photo"}}return{}}),[_,i]);(0,G.Fu)({isShowLive:_,autoReport:!0,once:!0,enterMethod:"suggested_others_photo",reportTrigger:_,reportValidator:()=>void 0!==f,liveExtraParams:_?S:{},user:h});const L=(0,o.useCallback)((()=>{_&&ee.q.handleEnterUser({to_user_id:null==h?void 0:h.id,enter_method:s}),T.t.handleClickNav({target:_?"live_detail":"others_homepage",item_list_index:c,from_item_list:u?"suggested_for_you":"following_accounts"})}),[_,null==h?void 0:h.id,s,u,c]),I=(0,o.useCallback)((e=>{var t;13===e.keyCode&&(null===(t=w.current)||void 0===t||t.linkClick()),32===e.keyCode&&e.preventDefault()}),[]),P=(0,o.useCallback)((e=>{L(),(0,Q.dG)(e)}),[L,Q.dG]);return(0,p.jsxs)(ie,{onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,ref:y,onKeyDown:I,role:"link",tabIndex:0,style:r,"aria-label":n("accessibilityLabels_link_userProfile",{username:null==h?void 0:h.nickname}),children:[(0,p.jsx)(b,{uniqueId:a,secUid:g,teaParams:j,"data-e2e":`${l}-user-avatar`,ref:w,onClick:P,extraQuery:S,tabIndex:-1,ariaLabel:n("accessibilityLabels_link_userProfile",{username:null==h?void 0:h.nickname}),children:(0,p.jsx)(oe,Object.assign(Object.assign({liveTheme:6,size:32},x),{isShowLiveTag:!1}))}),(0,p.jsxs)(ae,{uniqueId:a,secUid:g,teaParams:j,onClick:P,tabIndex:-1,ariaLabel:n("accessibilityLabels_link_userProfile",{username:null==h?void 0:h.nickname}),children:[(0,p.jsxs)(le,{children:[(0,p.jsx)(re,{"data-e2e":`${l}-user-title`,children:a}),m&&(0,p.jsx)("div",{"data-e2e":`${l}-user-bluev`,children:(0,p.jsx)(te.s,{width:14,height:14})})]}),(0,p.jsx)(se,{"data-e2e":`${l}-user-desc`,children:v})]})]})})));var ge=n(11328);const me=(0,o.memo)((function(){return(0,p.jsxs)(de,{children:[(0,p.jsx)(ge.EA.Avatar,{style:{width:32,height:32}}),(0,p.jsxs)(ce,{children:[(0,p.jsx)(ge.EA.Title,{style:{width:107,height:12}}),(0,p.jsx)(ge.EA.Title,{style:{width:66,height:12}})]})]})}));var ve=n(49057),fe=(n(51356),n(13549));n(35267);const xe=({hasMore:e,isShowingMore:t,totalLength:n,showNum:i,loading:o})=>{const a=(0,C.s)(),l=e||!t;return{shouldShowToggle:Boolean(n)&&!o&&(e||t||n>i),showMoreText:a(l?"feed_caption_see_more":"see_less"),isSeeMore:l}};var _e=n(73256);const be=({color:e,position:t="relative",isBottom:n=!1})=>({position:t,[n?"::after":"::before"]:{content:'""',position:"absolute",left:"8px",right:"8px",[n?"bottom":"top"]:0,height:"1px",background:e,transform:"scaleY(0.5)"}}),ye=(0,I.default)("div",{target:"e4a681b0"})((({theme:e,theme:{colors:t}})=>[{padding:"16px 0"},(0,k.zy)({theme:e,color:"TextSecondary",fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P3"}),be({color:t.LineSecondary}),(0,k.jJ)({max:1071,style:{padding:"8px 0"}})]),"label:DivUserContainer;"),we=(0,I.default)("h2",{target:"e4a681b1"})([{padding:"0 8px",marginBottom:"8px"},({theme:e})=>(0,k.zy)({theme:e,fontWeight:"semiBold",typography:"P3"}),(0,k.jJ)({max:1071,style:{display:"none"}})],"label:H2Title;"),ke=((0,k.jJ)({max:1071,style:{display:"none"}}),(0,I.default)("p",{target:"e4a681b3"})((({theme:e})=>(0,k.zy)({theme:e,color:"Primary",fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P3"})),"label:PShowMoreText;")),je=(0,I.default)("button",{target:"e4a681b4"})([{background:"transparent",border:"none",padding:"0 8px",marginTop:"8px",cursor:"pointer"},(0,k.jJ)({max:1071,style:{display:"none"}})],"label:ButtonShowMoreText;");je.defaultProps=Object.assign(Object.assign({},je.defaultProps),{"data-e2e":"see-all"});const Ce=(0,I.default)(_e.A,{target:"e4a681b5"})((({up:e,theme:{direction:t}})=>[(0,k.mp)({direction:t,marginStart:"4px"}),{transition:"all 0.3s",transform:e?"rotate(180deg)":"none",display:"none"}]),"label:StyledArrowDown;"),Se=(0,I.default)("p",{target:"e4a681b6"})((({theme:e})=>[(0,k.zy)({theme:e,color:"TextTertiary",fontFamily:"TikTokFont",fontWeight:"normal",typography:"P3"}),{padding:"0 8px"},(0,k.jJ)({max:1071,style:{display:"none"}})]),"label:PFollowEmptyHint;"),Le=(0,I.default)("ul",{target:"e4a681b7"})({padding:0,margin:0,listStyleType:"none"},"label:UlAccountList;"),Te=(0,o.forwardRef)((function({title:e,listType:t,loading:n=!0,children:i},o){const a=(0,J._0)((e=>0===e[t].list.length),ue.bN),l=(0,s.Tt)();return(0,p.jsxs)(ye,{bottomBar:"following"===t,ref:o,children:[!l&&(0,p.jsx)(we,{"data-e2e":`${t}-accounts`,children:e}),l&&(0,p.jsx)(we,{"data-e2e":`${t}-accounts`,children:n?(0,p.jsx)(ge.EA.Title,{style:{width:150,height:18}}):e}),(a||l)&&n?Array(1).fill("").map(((e,t)=>(0,p.jsx)(me,{},t))):i]})})),Ie=(0,o.memo)((function(){const e=(0,j.u)(),t=(0,C.s)(),[n,i]=(0,o.useState)(!1),a=10,[{authorIdList:l,loading:r,hasMore:s,totalLength:d},c]=(0,J.Gd)((e=>{const{list:t,loading:i,hasMore:o}=e.following;return{authorIdList:n?t:t.slice(0,a),loading:i,hasMore:o,totalLength:t.length}}),((e,t)=>H()(e,t))),u=(0,o.useRef)(0);u.current=l.length;const{needRefresh:h,setPathname:g,pathname:m}=(0,X.$q)();(0,o.useEffect)((()=>{h&&c.getFollowingList({count:a}),g(m)}),[c,h,a]);const{setPlaying:v}=(0,V.S4)(),f=(0,o.useRef)(!1),x=(0,o.useCallback)((()=>{f.current=!0,s&&n||i(!n),s&&c.getFollowingList({count:a}),!n||(s||!n)&&T.t.handleClickNav({target:"see_more"})}),[c,s,n,a,v]),_=(0,o.useRef)([]),b=(0,o.useCallback)((e=>t=>{_.current[e]=t}),[]),{shouldShowToggle:y,showMoreText:w,isSeeMore:k}=xe({hasMore:s,isShowingMore:n,totalLength:d,showNum:a,loading:r}),S=f.current&&k&&s||!s&&!k,L=(0,o.useCallback)((()=>{var e;x(),(s&&k||!s&&k)&&(null===(e=_.current[u.current-1])||void 0===e||e.setFocus())}),[x,s,k]),I=(0,K.x)(L,[x,s,k]),P=t("desktop_logged_in_profile");let D=0;return(0,p.jsxs)(Te,{loading:r,listType:"following",title:P,children:[(0,p.jsx)(Le,{children:d?l.map(((e,t)=>e?(0,p.jsx)("li",{children:(0,p.jsx)(he,{index:t-D,ref:b(t-D),uniqueId:e,e2ePrefix:"following",itemType:"following",enterMethod:"click_navigation"})},e):(D++,null))):(0,p.jsx)(Se,{children:t("sidenav_follow_hint")})}),r?(0,p.jsx)("div",{style:{marginTop:"4px"},children:(0,p.jsx)(me,{})}):null,y&&(0,p.jsxs)(je,{"data-e2e":"following-see-all",onClick:x,onKeyDown:I,"aria-expanded":S,"aria-labelledby":"side-nav-following-see-all",children:[(0,p.jsx)(ke,{id:"side-nav-following-see-all",children:w}),(0,p.jsx)(Ce,{fill:e.colors.Primary,width:16,height:16,up:n})]})]})}));var Pe=n(54622),De=n(90159),Ee=n(47926),Be=n(62738),Oe=n(72688),Ae=n(96689),Re=n(40935),Me=n(29098),Fe=n(97397);const Ne=(0,I.default)(P.N_,{target:"e85wp610"})({":hover":{textDecoration:"none"}},"label:StyledLink;"),Ue=(0,I.default)("div",{target:"e85wp611"})((({theme:{colors:e}})=>({display:"flex",alignItems:"center",padding:"8px 12px",borderRadius:"4px",transition:"background-color 300ms",":hover":{backgroundColor:e.BGView},":active":{backgroundColor:e.BGInput}})),"label:DivUserContainer;"),$e=(0,I.default)("div",{target:"e85wp612"})((({theme:{direction:e}})=>[{display:"flex",flex:"1"},(0,k.mp)({direction:e,paddingEnd:"24px"})]),"label:DivUserInfo;"),ze=(0,I.default)("div",{target:"e85wp613"})((({theme:{direction:e}})=>[{maxWidth:"450px",padding:"1px 0"},(0,k.mp)({direction:e,paddingStart:"12px"})]),"label:DivUserDesc;"),qe=(0,I.default)("div",{target:"e85wp614"})({display:"flex",alignItems:"center",height:"22px",lineHeight:"22px"},"label:DivTopPart;"),We=(0,I.default)("span",{target:"e85wp615"})((({theme:e})=>[(0,k.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"bold",typography:"P2"})]),"label:SpanUniqueId;"),He=(0,I.default)("span",{target:"e85wp616"})((({theme:e,theme:{direction:t,colors:n}})=>[(0,k.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"normal",lineHeight:"15px",typography:"P4"}),{color:n.TextSecondary},(0,k.mp)({direction:t,paddingStart:"4px"})]),"label:SpanNickname;"),Ve=(0,I.default)("div",{target:"e85wp617"})((({theme:e,theme:{colors:t}})=>[(0,k.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"normal",typography:"P3"}),{height:"20px",marginTop:"4px",color:t.TextSecondary}]),"label:DivBottomPart;"),Ke=(0,I.default)("p",{target:"e85wp618"})({maxWidth:"450px"},k.PR,"label:PSignature;"),Je=(0,I.default)("p",{target:"e85wp619"})({maxWidth:"450px"},k.PR,"label:POther;"),Xe=(0,I.default)("span",{target:"e85wp6110"})((({theme:{direction:e}})=>(0,k.mp)({direction:e,paddingStart:"8px"})),"label:SpanSecond;"),Ge=(0,I.default)(Fe.y,{target:"e85wp6111"})((({theme:{direction:e}})=>({flexShrink:0,"& > svg":[(0,k.mp)({direction:e,marginEnd:"6px"})]})),"label:StyledFollowButton;"),Ye=(0,I.default)(Me.A,{target:"e85wp6112"})((({theme:{direction:e}})=>(0,k.mp)({direction:e,marginStart:"4px"})),"label:StyledVerifiedBadgeColor;"),Ze=(0,o.memo)((function({uniqueId:e,enterMethod:t,onClose:n}){const i=(0,C.s)(),a=(0,pe.nW)((t=>{const n=t.users[e],i=t.stats[e];if(!n)return null;const{verified:o,avatarThumb:a,secUid:l,nickname:r,roomId:s,id:d,relation:c,signature:u,secret:p}=n,{followerCount:h=0,videoCount:g=0}=null!=i?i:{};return{avatarThumb:a,secUid:l,verified:o,nickname:r,roomId:s,id:d,uniqueId:e,signature:u,relation:c,secret:p,followerCount:h,videoCount:g}}),ue.bN),{id:l,nickname:r,secUid:s,signature:c,verified:u,followerCount:h,videoCount:g}=(0,d.L$)(a),m=(0,Oe.fJR)({uniqueId:e,secUid:null!=s?s:""}),v=(0,G.r$)(a),{isShowLive:f}=v,x=f?Y.B:Z.E,_=(0,G.AL)({user:a,enterMethod:t}),b=(0,Ae.K)(),{handleFollow:y,text:w,isFollowing:k,relation:j}=(0,Re.Tu)({uniqueId:e,onNeedLogin:b}),S=k?"default":"line",L=(0,o.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),y(e)}),[y]),T=(0,o.useCallback)((()=>{ee.q.handleEnterUser({to_user_id:l,enter_method:t}),null==n||n()}),[t,l,n]),I=(0,o.useCallback)((e=>{e.stopPropagation(),null==n||n()}),[n]);return(0,p.jsx)(Ne,{to:m,onClick:T,children:(0,p.jsxs)(Ue,{children:[(0,p.jsxs)($e,{children:[(0,p.jsx)(x,{uniqueId:e,secUid:s,teaParams:_,shouldStopPropagation:!1,onClick:I,children:(0,p.jsx)(ne.i,Object.assign({},v,{liveTheme:6,size:48}))}),(0,p.jsxs)(ze,{children:[(0,p.jsxs)(qe,{children:[(0,p.jsx)(We,{children:e}),u&&(0,p.jsx)(Ye,{width:14,height:14}),(0,p.jsx)(He,{children:r})]}),(0,p.jsx)(Ve,{className:"bottom-part",children:c?(0,p.jsx)(Ke,{className:"signature",children:c}):(0,p.jsxs)(Je,{children:[(0,p.jsxs)("span",{children:[i("Video"),": ",g]}),(0,p.jsxs)(Xe,{children:[i("Followers"),": ",(0,d.D1)(h)]})]})})]})]}),(0,p.jsxs)(Ge,{size:"small",id:l,buttonTheme:S,onClick:L,children:[2===j?(0,p.jsx)(Be.A,{}):null,w]})]})},l)})),Qe=(0,I.default)("div",{target:"exlovqy0"})({display:"flex",flexDirection:"column",position:"absolute",width:"700px",height:"500px",left:"50%",top:"50%",transform:"translate(-50%, -50%)",background:"#fff",boxShadow:"0 2px 12px rgba(0, 0, 0, .12)",borderRadius:"8px"},"label:DivAccountListModal;"),et=(0,I.default)("div",{target:"exlovqy1"})((({theme:{colors:e}})=>({position:"relative",height:"56px","::after":{position:"absolute",left:"0",bottom:"0",content:'""',width:"100%",height:"1px",transform:"scaleY(.5)",background:e.LinePrimary}})),"label:DivHeader;"),tt=(0,I.default)("div",{target:"exlovqy2"})((({theme:{direction:e}})=>[{display:"flex"},(0,k.mp)({direction:e,marginStart:"14px"})]),"label:DivTabsContainer;"),nt=(0,I.default)("div",{target:"exlovqy3"})((({theme:e,active:t,theme:{colors:n}})=>[(0,k.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:t?"bold":"semiBold",typography:"P2"}),{position:"relative",margin:"24px 30px 0",color:t?n.TextPrimary:n.TextTertiary,cursor:"pointer"},t?{"::after":{position:"absolute",left:"0",bottom:"-10px",content:'""',width:"100%",height:"2px",background:n.TextPrimary}}:null]),"label:DivTab;"),it=(0,I.default)("span",{target:"exlovqy4"})((({theme:{direction:e}})=>[(0,k.mp)({direction:e,paddingStart:"4px"})]),"label:SpanCount;"),ot=(0,I.default)("div",{target:"exlovqy5"})((({theme:{colors:e,direction:t}})=>[{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:"16px",width:"32px",height:"32px",background:e.BGView,borderRadius:"16px",cursor:"pointer"},(0,k.mp)({direction:t,end:"16px"})]),"label:DivCloseBtn;"),at=(0,I.default)("div",{target:"exlovqy6"})((({isHidden:e})=>({flex:"1",overflowY:e?"hidden":"auto"})),"label:DivMain;"),lt=(0,I.default)("div",{target:"exlovqy7"})({boxSizing:"border-box",width:"100%",padding:"16px 0 16px 12px"},"label:DivUserList;"),rt=(0,I.default)("div",{target:"exlovqy8"})({boxSizing:"border-box",display:"flex",alignItems:"center",width:"100%",padding:"8px 12px"},"label:DivLoadingContainer;"),st=(0,I.default)("div",{target:"exlovqy9"})({width:"48px",height:"48px",flexShrink:0},"label:DivAvatarContainer;"),dt=(0,I.default)("div",{target:"exlovqy10"})((({theme:{direction:e}})=>[{flexGrow:1},(0,k.mp)({direction:e,marginStart:"12px"})]),"label:DivSkeletonTitleContainer;"),ct=(0,I.default)("div",{target:"exlovqy11"})({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"label:DivEmptyContainer;"),ut=(0,I.default)("p",{target:"exlovqy12"})((({theme:e})=>[(0,k.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"bold",lineHeight:"24px",typography:"P1"})]),"label:PTitle;"),pt=(0,I.default)("p",{target:"exlovqy13"})((({theme:e,theme:{colors:t}})=>[(0,k.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"normal",typography:"P2"}),{marginTop:"8px",color:t.TextSecondary}]),"label:PDesc;"),ht={following:{title:"following",empty:"following_my_empty_desc"},follower:{title:"Followers",empty:"followers_my_empty_desc"},suggest:{title:"common_registration_username_suggested",empty:"profile_suggested_empty_toast"}},gt=(0,o.memo)((function(e){var t;const{visible:n,type:i,shouldShowSuggested:a=!0}=e,l=(0,C.s)(),{user:r}=null!==(t=(0,ve.W)((()=>["user"]),[]))&&void 0!==t?t:{},s=(0,o.useRef)(null),[c,u]=(0,J.Gd)((e=>({following:e.following,follower:e.follower,suggest:e.suggest})),((e,t)=>H()(e,t))),h={following:"pop_up_following",follower:"pop_up_follower",suggest:"pop_up_suggest"},[g,m]=(0,o.useState)(r?i:"suggest");(0,o.useEffect)((()=>{const{loading:e,list:t}=c.follower;n&&!t.length&&e&&u.getFollowerList({count:20})}),[c,u,n]),(0,o.useEffect)((()=>{n&&m(i)}),[i,n]);const v=(0,o.useCallback)((e=>()=>{m(e),s.current&&(s.current.scrollTop=0)}),[m]),{list:f,loading:x,hasMore:_}=c[g],b=0!==f.length||x,y=(0,De._g)((()=>{var e;if("suggest"===g||x||!_)return;const{scrollTop:t=0,scrollHeight:n=0}=null!==(e=null==s?void 0:s.current)&&void 0!==e?e:{};t&&n-t<480&&("following"===g?u.getFollowingList({count:20}):u.getFollowerList({count:20}))}),[u,g,x,_],200),w=(0,o.useMemo)((()=>Array.from({length:f.length?1:7}).fill(0)),[f.length]);return(0,p.jsx)(Ee.i,{isOpen:n,compact:!0,closeOnBackdropClick:!0,onClose:e.onClose,children:(0,p.jsxs)(Qe,{children:[(0,p.jsxs)(et,{children:[(0,p.jsxs)(tt,{children:[r&&["following","follower"].map((e=>(0,p.jsxs)(nt,{active:g===e,onClick:v(e),children:[(0,p.jsx)("span",{children:l(ht[e].title)}),(c[e].total||!c[e].loading)&&(0,p.jsx)(it,{children:(0,d.D1)(c[e].total)})]},e))),a&&(0,p.jsx)(nt,{active:"suggest"===g,onClick:v("suggest"),children:(0,p.jsx)("span",{children:l("common_registration_username_suggested")})})]}),(0,p.jsx)(ot,{onClick:e.onClose,children:(0,p.jsx)(Pe.A,{width:14,height:14,style:{color:"rgba(22, 24, 35, 0.75)"}})})]}),(0,p.jsx)(at,{isHidden:x&&!f.length,ref:s,onScroll:y,children:b?(0,p.jsxs)(lt,{children:[c[g].list.map((t=>(0,p.jsx)(Ze,{uniqueId:t,enterMethod:h[g],onClose:e.onClose},t))),x&&w.map(((e,t)=>(0,p.jsxs)(rt,{children:[(0,p.jsx)(st,{children:(0,p.jsx)(ge.EA.Avatar,{})}),(0,p.jsxs)(dt,{children:[(0,p.jsx)(ge.EA.Title,{style:{width:"119px",height:"16px",margin:"4px 0 12px"}}),(0,p.jsx)(ge.EA.Title,{style:{width:"254px",height:"12px"}})]}),(0,p.jsx)(ge.EA.Button,{style:{width:"106px",height:"36px",flexShrink:0}})]},t)))]}):(0,p.jsxs)(ct,{children:[(0,p.jsx)(ut,{children:l(ht[g].title)}),(0,p.jsx)(pt,{children:l(ht[g].empty)})]})})]})})}));var mt=n(22972);const vt=(0,o.memo)((function(e){const{onEnterItem:t,onLeaveItem:n}=e,i=(0,C.s)(),{pathname:a}=(0,f.useLocation)(),l=(0,mt.kq)((e=>e.uniqueId),ue.bN),r=(0,pe.nW)((e=>e.users[null!=l?l:""]),ue.bN),s=(0,o.useRef)(""),[d,c]=(0,o.useState)(!1),[u,h]=(0,o.useState)(!1),[{list:g,totalLength:m},v]=(0,J.Gd)((e=>{const{list:t}=e.suggest;return{list:t,totalLength:t.length}})),{needRefresh:x,setPathname:_}=(0,X.$q)();(0,o.useEffect)((()=>{var e;(0,b.cj)(a)?s.current!==(null==r?void 0:r.id)&&r&&(s.current=null!==(e=r.id)&&void 0!==e?e:"",v.getRecommendList({pathname:a,userId:null==r?void 0:r.id})):(s.current="-1",x&&v.getRecommendList({pathname:a})),_(a)}),[v,x,a,_,r]),function(){const e=(0,J.Nl)();(0,fe.o)((()=>{}),[e])}();const{setPlaying:y}=(0,V.S4)(),w=(0,o.useCallback)((()=>{c(!d),!d&&T.t.handleClickNav({target:"see_more"})}),[d,y]),k=(0,o.useRef)([]),j=(0,o.useRef)(null),S=(0,o.useCallback)((e=>t=>{k.current[e]=t}),[]),L=(0,o.useCallback)((()=>{var e;w(),!d&&(null===(e=k.current[4])||void 0===e||e.setFocus())}),[w,d]),I=(0,K.x)(L,[w,d]),P=(0,o.useCallback)(((e,n)=>()=>{var i,o,a,l;null==t||t(e,(null!==(o=null===(i=k.current[n])||void 0===i?void 0:i.offsetTop)&&void 0!==o?o:0)+(null!==(l=null===(a=j.current)||void 0===a?void 0:a.offsetTop)&&void 0!==l?l:0),0)}),[t]),D=(0,o.useCallback)((e=>()=>{null==n||n(e)}),[n]),E=(0,o.useCallback)((()=>{h(!1),y(!0)}),[y]),B=(({pathname:e,user:t})=>{var n;const{user:i}=null!==(n=(0,ve.W)((()=>["user"]),[]))&&void 0!==n?n:{};return!((0,b.pz)(e)||(0,b.Iy)(e)||(0,b.nq)(e)||(0,b.Ke)(e)||(0,b.gq)(e)&&!i||(0,b.cj)(e)&&((null==t?void 0:t.secret)||void 0!==t&&(null==t?void 0:t.uniqueId)===(null==i?void 0:i.uniqueId)))})({pathname:a,user:r}),O=(0,o.useMemo)((()=>i(d?"see_less":"see_all")),[d,i]);return B?(0,p.jsxs)(Te,{ref:j,listType:"suggest",title:i("sug_accounts"),children:[(0,p.jsx)(Le,{children:g.map(((e,t)=>e?(0,p.jsx)("li",{children:(0,p.jsx)(he,{itemType:"suggest",ref:S(t),onMouseEnter:P(e,t),onMouseLeave:D(e),uniqueId:e,e2ePrefix:"suggest",style:!d&&t>=5?{display:"none"}:void 0,enterMethod:"click_panel"})},e):null))}),m>5&&(0,p.jsx)(je,{onClick:w,onKeyDown:I,"aria-expanded":d,"aria-labelledby":"side-nav-suggest-see-all",children:(0,p.jsx)(ke,{"data-e2e":"suggest-see-all",id:"side-nav-suggest-see-all",children:O})}),(0,p.jsx)(gt,{visible:u,type:"suggest",onClose:E})]}):null}));var ft,xt=n(93608);!function(e){e.DiscoverLinkShow="discover_link_show",e.ClickDiscoverLink="click_discover_link"}(ft||(ft={}));var _t=n(58632),bt=n(64162),yt=n(4126),wt=n(93995),kt=n(26324),jt=n(35572),Ct=n(95719),St=n(62564),Lt=n(74690),Tt=n(80339),It=n(55322),Pt=n(38203),Dt=n(39228);let Et=class{constructor(e){this.fetch=e}getDiscoverList(e){return this.fetch.get("/node/share/discover/list",{query:{pageType:e}}).pipe((0,St.T)((e=>e.body.discoverList)))}};Et=(0,_t.__decorate)([(0,Pt._)(),(0,_t.__metadata)("design:paramtypes",[Dt.pM])],Et);let Bt=class extends bt.E{constructor(e){super(),this.defaultState={list:[],loading:!1},this.service=e}setList(e,t){const{list:n}=t;e.list=n}setLoading(e,t){const{loading:n}=t;e.loading=n}getDiscoverList(e){return e.pipe((0,jt.p)((({pageType:e})=>this.service.getDiscoverList(e).pipe((0,Ct.M)((e=>{e.forEach(((e,t)=>{const{type:n,title:i,isInternalLink:o}=e;var a;a={link_type:n,order:t,content:i,is_experiment:o?1:0},xt.f.event("discover_link_show",a)}))})),(0,St.T)((e=>this.getActions().setList({list:e}))),(0,Lt.Z)(this.getActions().setLoading({loading:!0})),(0,Tt.q)(this.getActions().setLoading({loading:!1}),this.terminate()),(0,It.n)({})))))}};(0,_t.__decorate)([(0,yt.h5)(),(0,_t.__metadata)("design:type",Function),(0,_t.__metadata)("design:paramtypes",[Object,Object]),(0,_t.__metadata)("design:returntype",void 0)],Bt.prototype,"setList",null),(0,_t.__decorate)([(0,yt.h5)(),(0,_t.__metadata)("design:type",Function),(0,_t.__metadata)("design:paramtypes",[Object,Object]),(0,_t.__metadata)("design:returntype",void 0)],Bt.prototype,"setLoading",null),(0,_t.__decorate)([(0,yt.Mj)({payloadGetter:1}),(0,_t.__metadata)("design:type",Function),(0,_t.__metadata)("design:paramtypes",[kt.c]),(0,_t.__metadata)("design:returntype",void 0)],Bt.prototype,"getDiscoverList",null),Bt=(0,_t.__decorate)([(0,wt.n)("DiscoverList"),(0,_t.__metadata)("design:paramtypes",[Et])],Bt);var Ot=n(75431),At=n(20957),Rt=n(3229),Mt=n(81825);const Ft=(0,Ot.i7)({"0%":{transform:"translateX(-240px)"},"100%":{transform:"translateX(328px)"}}),Nt=(0,I.default)("div",{target:"eikhr9j0"})((({theme:{colors:e}})=>({overflow:"hidden",width:"208px",height:"24px",marginBottom:"12px",borderRadius:"12px",background:e.BGPlaceholderOpaque})),"label:DivDiscoverSkeletonItem;"),Ut=(0,I.default)("div",{target:"eikhr9j1"})({width:"120px",height:"24px",background:"linear-gradient(90deg, rgba(22, 24, 35, 0) 0%, rgba(22, 24, 35, .06) 50.52%, rgba(22, 24, 35, 0) 100%)",animation:`${Ft} 1.5s cubic-bezier(0, 0, 1, 1) infinite`},"label:DivLinearGradient;"),$t=(0,I.default)("div",{target:"eikhr9j2"})((({theme:{colors:e}})=>[{position:"relative",boxSizing:"border-box",width:"100%",padding:"16px 8px 8px 8px","::after":{content:'""',position:"absolute",top:"0",width:"calc(100% - 16px)",height:"1px",background:e.LineSecondary,transform:"scaleY(.5)"}},(0,k.jJ)({max:1071,style:{display:"none"}})]),"label:DivDiscoverContainer;"),zt=(0,I.default)("h2",{target:"eikhr9j3"})((({theme:e})=>[(0,k.zy)({theme:e,color:"TextSecondary",fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P3"}),{paddingBottom:"16px"}]),"label:H2DiscoverTitle;");zt.defaultProps=Object.assign(Object.assign({},zt.defaultProps),{"data-e2e":"nav-discover-title"});const qt=(0,I.default)("ul",{target:"eikhr9j4"})({display:"flex",flexWrap:"wrap",width:"100%",padding:0,margin:0,listStyleType:"none"},"label:UlDiscoverListContainer;");qt.defaultProps=Object.assign(Object.assign({},qt.defaultProps),{"data-e2e":"nav-discover-list"});const Wt={display:"block",width:"fit-content",maxWidth:"100%",":hover":{textDecoration:"none"}},Ht=(0,I.default)(P.N_,{target:"eikhr9j5"})(Wt,"label:StyledLink;");Ht.defaultProps=Object.assign(Object.assign({},Ht.defaultProps),{"data-e2e":"nav-discover-href"});const Vt=(0,I.default)("div",{target:"eikhr9j6"})((({theme:e,theme:{colors:t,direction:n}})=>[{display:"flex",boxSizing:"border-box",width:"fit-content",maxWidth:"100%",height:"24px",marginBottom:"12px",padding:"3px 10px",border:`1px solid ${t.LinePrimary}`,borderRadius:"12px",background:t.BGSecondary2},(0,k.RE)({theme:e}),(0,k.mp)({direction:n,marginEnd:"8px"})]),"label:DivDiscoverItemContainer;"),Kt=(0,I.default)(At.A,{target:"eikhr9j8"})({flexShrink:0},"label:StyledNumber;"),Jt=(0,I.default)(Rt.A,{target:"eikhr9j9"})({flexShrink:0},"label:StyledMusicNote;"),Xt=(0,I.default)(Mt.A,{target:"eikhr9j10"})({flexShrink:0},"label:StyledMagnifyingGlass;"),Gt=(0,I.default)("p",{target:"eikhr9j11"})(k.PR,(({theme:e,theme:{direction:t}})=>[(0,k.zy)({theme:e,color:"TextSecondary",fontFamily:"TikTokFont",fontWeight:"normal",typography:"P3"}),{lineHeight:"18px"},(0,k.mp)({direction:t,paddingStart:"6px"})]),"label:PText;"),Yt=(0,I.default)("li",{target:"eikhr9j12"})({display:"block"},"label:LiItemContainer;"),Zt=function(){var e;const t=(0,C.s)(),{pathname:n}=(0,f.useLocation)(),{language:i}=null!==(e=(0,ve.W)((()=>["language","abTestVersion"]),[]))&&void 0!==e?e:{},[{list:a,loading:l},r]=(0,g.S)(Bt,{selector:e=>{const{list:t,loading:n}=e;return{list:t,loading:n}},dependencies:[]}),{needRefresh:s,setPathname:d}=(0,X.$q)();(0,o.useEffect)((()=>{const e=(0,b.M5)(n);s&&r.getDiscoverList({pageType:e}),d(n)}),[r,n]);const c=(0,o.useCallback)(((e,t)=>()=>{const{type:n,title:i,isInternalLink:o}=e;switch(a={link_type:n,order:t,content:i,is_experiment:o?1:0},xt.f.event("click_discover_link",a),n){case 3:ee.q.handleEnterTagDetail({enter_method:"discover"});break;case 4:ee.q.handleEnterMusicDetail({enter_method:"discover"});break;default:ee.q.handleDiscoveryPage({enter_method:"discover"})}var a}),[]);return!l&&a.length<4?null:(0,p.jsxs)($t,{children:[(0,p.jsx)(zt,{children:t("Discover")}),l?(0,p.jsxs)("div",{children:[(0,p.jsx)(Nt,{children:(0,p.jsx)(Ut,{})}),(0,p.jsx)(Nt,{children:(0,p.jsx)(Ut,{})})]}):(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(qt,{children:a.map(((e,t)=>{const{type:n,title:o}=e;let{link:a}=e,l=null;switch(a=`${a.replace("https://www.tiktok.com","")}?lang=${i}`,n){case 3:l=(0,p.jsx)(Kt,{width:16,height:16});break;case 4:l=(0,p.jsx)(Jt,{width:16,height:16});break;default:l=(0,p.jsx)(Xt,{width:16,height:16})}return(0,p.jsx)(Yt,{children:(0,p.jsx)(Ht,{id:`sidenav-discover-list-item-${t}`,to:a,onClick:c(e,t),children:(0,p.jsxs)(Vt,{children:[l,(0,p.jsx)(Gt,{children:o})]})},t)},t)}))})})]})};var Qt=n(90217);const en=n.p+"113990b20fae6f3bb49b.png",tn=n.p+"f0008e2854620a01f652.png",nn=n.p+"45636daedb8648c2e33c.png",on=n.p+"5fa49876a48136384338.png",an=(0,I.default)("div",{target:"e125wy4z0"})((({theme:{colors:e}})=>[{display:"none"},be({color:e.LineSecondary}),(0,k.jJ)({max:1071,style:{display:"flex",flexDirection:"column",alignItems:"center",padding:"8px 0"}})]),"label:DivEhEntranceSideContainer;");an.defaultProps=Object.assign(Object.assign({},an.defaultProps),{"data-e2e":"eh-footer-icon"});const ln=(0,I.default)("div",{target:"e125wy4z1"})((({isDark:e})=>[{display:"block",width:"32px",height:"32px",margin:"8px",backgroundSize:"cover",backgroundImage:e?`url(${tn})`:`url(${on})`,": hover":{backgroundImage:e?`url(${en})`:`url(${nn})`}}]),"label:DivEhEntranceSide;"),rn=(0,I.default)("div",{target:"e125wy4z2"})((({theme:{direction:e}})=>[(0,k.mp)({direction:e,paddingEnd:"8px"}),{height:"50px",textAlign:"center",position:"relative",marginBottom:"30px"}]),"label:DivEffectHouseEntranceContainer;");rn.defaultProps=Object.assign(Object.assign({},rn.defaultProps),{"data-e2e":"eh-footer-banner"});const sn=(0,I.default)("div",{target:"e125wy4z3"})((({theme:{direction:e}})=>(0,k.mp)({direction:e})),{position:"absolute",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",maxWidth:"200px"},"label:DivEntranceTextContainer;"),dn=(0,I.default)(P.N_,{target:"e125wy4z4"})([{display:"flex",alignItems:"center",justifyContent:"center",":hover":{[`${sn}`]:{transform:"scale(1.06)",transition:"transform 200ms cubic-bezier(0.25, 0, 0.25, 1)",textDecoration:"none"}}}],"label:StyledEHEntranceLink;");var cn=n(17627);const un=function(){const{isDark:e}=(0,j.u)(),{ehLink:t}=(0,s.$r)({}),n=(0,o.useCallback)((()=>{T.t.handleClickEntrance({enter_method:"click_banner"})}),[]),i=(0,o.useRef)(null);return(0,Qt.B)({intersectionHandler:()=>{T.t.handleEntranceShow({enter_method:"banner"})},element:i,threshold:[.5]}),(0,p.jsx)(an,{ref:i,children:(0,p.jsx)(P.N_,{forceSSR:!0,to:t,target:"_blank",onClick:n,children:(0,p.jsx)(ln,{isDark:e})},t)})},pn=()=>{const e=(0,C.s)(),{ehLink:t}=(0,s.$r)({linkIncludeVid:!0}),n=(0,o.useCallback)((()=>{T.t.handleClickEntrance({enter_method:"click_banner"})}),[]),i=(0,o.useRef)(null);return(0,Qt.B)({intersectionHandler:()=>{T.t.handleEntranceShow({enter_method:"banner"})},element:i,threshold:[.5]}),(0,p.jsx)(rn,{ref:i,children:(0,p.jsx)(dn,{forceSSR:!0,to:t,target:"_blank",onClick:n,children:(0,p.jsx)(cn.Lw,{shortText:e("tteh_webapp_acquisitionBanner_1"),longText:e("tteh_webapp_acquisitionBanner_2")})},t)})};var hn=n(73580),gn=n(4474),mn=n(30662),vn=n(45297),fn=n(64407),xn=n(18499);const _n=(0,I.default)("div",{target:"enmnmya0"})((({theme:e,isControlByBtn:t})=>[(0,k.zy)({theme:e,fontFamily:"TikTokFont",typography:"P3",color:"ConstTextInverse",fontWeight:"normal"}),{display:t?"block":"none",position:"fixed",left:0,top:0,padding:"12px",borderRadius:"8px",zIndex:100,background:"#4b4b4b"},!t&&(0,k.jJ)({max:1071,style:{display:"block"}})]),"label:DivNavHintContainer;"),bn=function({text:e,active:t,containerRef:n,scrollRef:i,isShowAll:a,isControlByBtn:l}){const{transform:r}=function({containerRef:e,scrollRef:t,isShowAll:n}){const{direction:i}=(0,j.u)(),[a,l]=(0,o.useState)(-1e3),[r,s]=(0,o.useState)(-1e3),d=()=>{var t,n;if(!e.current)return;const o=e.current.getBoundingClientRect();s(null!==(t="ltr"===i?o.left+o.width+12:o.left-12)&&void 0!==t?t:0),l(null!==(n=o.top+o.height/2)&&void 0!==n?n:0)},c=(0,De._g)(d,[e,i],200),u=(0,o.useCallback)(d,[e,i]);return(0,o.useEffect)((()=>{void 0!==n&&d()}),[d,n]),(0,o.useEffect)((()=>{var e;const n=null===(e=t.current)||void 0===e?void 0:e.dom;return window.addEventListener("resize",c),null==n||n.addEventListener("scroll",u),window.addEventListener("recalculate-tip-position",u),c(),()=>{window.removeEventListener("resize",c),window.removeEventListener("recalculate-tip-position",u),null==n||n.removeEventListener("scroll",u)}}),[e,c,u,t]),{top:a,left:r,transform:`translate(${"ltr"===i?"0":"-100%"}, -50%) translate(${r}px, ${a}px)`}}({containerRef:n,scrollRef:i,isShowAll:a});return t?(0,xn.createPortal)((0,p.jsx)(_n,{style:{transform:r},isControlByBtn:l,children:e}),document.body):null},yn=(0,I.default)("span",{target:"e1k5k7j00"})((({theme:{colors:e},isLiveStreaming:t,isDisabled:n})=>({color:n?e.TextQuaternary:t?e.Primary:e.TextPrimary})),"label:SpanText;"),wn=[(0,Ot.i7)({"0%":{y:"4px",height:"10px"},"40%":{y:"4px",height:"12px"},"70%":{y:"4px",height:"6px"},"100%":{y:"4px",height:"10px"}}),(0,Ot.i7)({"0%":{y:"4px",height:"6px"},"40%":{y:"4px",height:"10px"},"70%":{y:"4px",height:"12px"},"100%":{y:"4px",height:"6px"}}),(0,Ot.i7)({"0%":{y:"4px",height:"8px"},"40%":{y:"4px",height:"12px"},"70%":{y:"4px",height:"6px"},"100%":{y:"4px",height:"8px"}})],kn=(0,I.default)("svg",{target:"e1k5k7j01"})((({isLiveStreaming:e,theme:{direction:t}})=>[(0,k.mp)({direction:t,marginEnd:"4px"}),e?{rect:{transformOrigin:"center",transform:"rotateZ(180deg)",":nth-of-type(1)":{animation:`${wn[0]} .5s ease-out infinite`},":nth-of-type(2)":{animation:`${wn[1]} .5s ease-out infinite`},":nth-of-type(3)":{animation:`${wn[2]} .5s ease-out infinite`}}}:null]),"label:SvgLiveIcon;"),jn=(0,I.default)("div",{target:"e1k5k7j02"})((({theme:{colors:e,direction:t},isShowAll:n,isControlByBtn:i})=>{const o={[`${yn}`]:{display:"none"},[`${kn}`]:[(0,k.mp)({direction:t,marginEnd:"0"})]};return[{padding:"8px",position:"relative","::before":{content:'""',position:"absolute",left:"8px",top:"0px",right:"8px",height:"1px",background:e.LineSecondary,transform:"scaleY(0.5)"}},!i&&(0,k.jJ)({max:1071,style:o}),i&&!1===n&&o]}),"label:DivGoLiveEntranceContainer;"),Cn=(0,I.default)(P.N_,{target:"e1k5k7j03"})((({theme:e})=>[(0,k.zy)({theme:e,typography:"P2",fontWeight:"bold",fontFamily:"TikTokFont"}),{textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",height:"36px",background:e.colors.BGInput,":hover":{textDecoration:"none"}},(0,k.RE)({theme:e,hover:"rgba(22, 24, 35, 0.1)",active:"rgba(22, 24, 35, 0.14)"})]),"label:StyledLink;"),Sn=(0,I.default)("div",{target:"e1k5k7j04"})((({theme:e})=>[(0,k.zy)({theme:e,typography:"P2",fontWeight:"bold",fontFamily:"TikTokFont"}),{textAlign:"center",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",height:"36px",background:e.colors.BGInput,":hover":{textDecoration:"none"}},(0,k.RE)({theme:e,hover:"rgba(22, 24, 35, 0.1)",active:"rgba(22, 24, 35, 0.14)"})]),"label:DivText;"),Ln=(0,I.default)("div",{target:"e1k5k7j05"})((({isShowAll:e,isControlByBtn:t})=>[{margin:"12px 0 8px 0"},!t&&(0,k.jJ)({max:1071,style:{display:"none"}}),t&&!1===e&&{display:"none"}]),"label:DivEventRemindContainer;"),Tn=(0,o.memo)((function({isLiveStreaming:e,isDisabled:t}){const{colors:n}=(0,j.u)(),i=t?n.TextQuaternary:e?n.Primary:n.Primary2;return(0,p.jsxs)(kn,{isLiveStreaming:!t&&e,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("rect",{x:"4.1665",y:"4.16797",width:"2.69231",height:"11.6667",rx:"0.5",fill:i}),(0,p.jsx)("rect",{x:"8.65381",y:"9.02734",width:"2.69231",height:"6.80555",rx:"0.5",fill:i}),(0,p.jsx)("rect",{x:"13.1406",y:"7.08594",width:"2.69231",height:"8.75",rx:"0.5",fill:i})]})}));var In=n(88091),Pn=n(9981),Dn=n(42693);function En({isShowAll:e,isControlByBtn:t}){const n=(()=>{const{roomCreateInfo:e}=(0,h.P)(w.p2),t=(0,C.s)(),{title:n,event_start_time:i}=null==e?void 0:e.event_info,o=(e=>{const t=Math.floor(Date.now()/1e3);return t>=e?0:Math.floor((e-t)/60)})(i),a=(0,Pn.A)(),l=(0,Dn.A)((()=>{0===o&&l(),a()}),3e4);return 0===o?t("webLIVE_enableEvent_LIVEPage_eventStartNowReminder"):t("webLIVE_enableEvent_LIVEPage_eventReminder",{event_name:n,num:o})})();return(0,p.jsx)(Ln,{isShowAll:e,isControlByBtn:t,children:(0,p.jsx)(In.Fm,{color:"TextTertiary",children:n})})}const Bn=function({scrollRef:e,isShowAll:t,isControlByBtn:n}){var i,a;const l=(0,C.s)(),[s,d]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),g=(0,w.AU)(),{permissionInfo:m}=(0,h.P)(w.C6),{roomCreateInfo:v}=(0,h.P)(w.p2),f=1===Number(null===(i=null==v?void 0:v.obs_accees_recall_info)||void 0===i?void 0:i.status),x=((0,w.Py)(Number(null===(a=null==v?void 0:v.obs_accees_recall_info)||void 0===a?void 0:a.duration))||1).toString(),{user:_,lang:b}=(0,h.P)(r.L,{dependencies:[],selector:({appContext:e,lang:t})=>{var n,i,o;return{user:{uniqueId:null===(n=null==e?void 0:e.user)||void 0===n?void 0:n.uniqueId,secUid:null===(i=null==e?void 0:e.user)||void 0===i?void 0:i.secUid,uid:null===(o=null==e?void 0:e.user)||void 0===o?void 0:o.uid},lang:t}}}),y=(0,hn.Nj)(mn.tG),k=null==v?void 0:v.event_info,j=l(f?"go_live":g?"live_on_status":"go_live"),S=(0,o.useRef)(null),L=(0,o.useCallback)((()=>{var e;if(!g&&!f){const t=(0,Q._S)(vn.Kt);y.handleLiveStreamEntranceClick({anchor_id:null!==(e=_.uid)&&void 0!==e?e:"",is_notified:t?0:1,is_application_needed:(null==m?void 0:m.hasLiveApplyPermission)?1:0})}f&&d(!0),(0,Q.AP)(vn.Kt,JSON.stringify({name:_.uniqueId}))}),[g,y,_.uid,_.uniqueId,null==m?void 0:m.hasLiveApplyPermission,f]),T=(0,o.useCallback)((()=>{n&&t||u(!0)}),[t,n]),I=(0,o.useCallback)((()=>{n&&t||u(!1)}),[t,n]),P=`${w.Ox}/producer?enter_from=webapp`,D=(0,gn.stringifyUrl)({url:P,query:{lang:b}}),E=(0,o.useMemo)((()=>f?(0,p.jsxs)(Sn,{onClick:L,children:[(0,p.jsx)(Tn,{isDisabled:!0,isLiveStreaming:g}),(0,p.jsx)(yn,{isLiveStreaming:g,"data-e2e":"go-live-entrance-text",isDisabled:!0,children:j})]}):(0,p.jsxs)(Cn,{forceSSR:!0,to:D,onClick:L,children:[(0,p.jsx)(Tn,{isDisabled:!1,isLiveStreaming:g}),(0,p.jsx)(yn,{isLiveStreaming:g,"data-e2e":"go-live-entrance-text",isDisabled:!1,children:j})]})),[f,!1,D,g,L,j]),B=(0,o.useCallback)((()=>d(!1)),[]);return(0,o.useEffect)((()=>{var e;s&&fn.Xg.OBSRevokeRemindShow({anchor_id:null!==(e=_.uid)&&void 0!==e?e:""})}),[s,_.uid]),(0,p.jsxs)(jn,{ref:S,onMouseEnter:T,onMouseLeave:I,"data-e2e":"go-live-entrance",isShowAll:t,isControlByBtn:n,children:[E,!g&&k&&(0,p.jsx)(En,{isShowAll:t,isControlByBtn:n}),(0,p.jsx)(bn,{active:c,text:j,scrollRef:e,containerRef:S,isShowAll:t,isControlByBtn:n}),(0,p.jsx)(w.rd,{visible:s,onOkClick:B,duration:x})]})};var On=n(67842),An=n(71281),Rn=n(33805),Mn=n(38812);const Fn=(0,I.default)("div",{target:"efna91q0"})((({isShowAll:e,isControlByBtn:t})=>[{position:"relative",padding:"20px 8px 24px 8px",margin:"0","::before":{content:'""',position:"absolute",height:"1px",left:"8px",right:"8px",background:"rgba(22, 24, 35, .12)",transform:"scaleY(.5)",top:"0"}},!t&&(0,k.jJ)({max:1071,style:{display:"none"}}),t&&!1===e&&{display:"none"}]),"label:DivFrameContainer;"),Nn=(0,I.default)("p",{target:"efna91q1"})((({theme:e})=>(0,k.zy)({theme:e,typography:"P2",color:"TextTertiary"})),"label:PLoginHint;");Nn.defaultProps=Object.assign(Object.assign({},Nn.defaultProps),{"data-e2e":"nav-login-tip"});const Un=(0,I.default)(Fe.y,{target:"efna91q2"})({marginTop:"20px",width:"100%"},"label:StyledLogin;");Un.defaultProps=Object.assign(Object.assign({},Un.defaultProps),{"data-e2e":"nav-login-button"});const $n=function(e){var t,n;const i=(0,C.s)(),a=(0,On.b1)(),{isShowAll:l,isControlByBtn:r}=e,s=(0,ve.W)((()=>["abTestVersion"]),[]),d=null!==(t=(0,An.qt)(null==s?void 0:s.abTestVersion,"search_video"))&&void 0!==t?t:"v1",{user:c}=null!==(n=(0,ve.W)((()=>["user"]),[]))&&void 0!==n?n:{},u=Boolean(c),h=(0,o.useCallback)((()=>{const e=(0,Mn.Y)()||(0,Mn.CW)();a.openModal({query:{enter_method:"click_navigation",enter_from:xt.f.commonParams.page_name,redirect_url:(0,Rn.Q2)(),last_group_id:e,type:"general_search"!==xt.f.commonParams.page_name&&"search_video"!==xt.f.commonParams.page_name&&"search_user"!==xt.f.commonParams.page_name||"v3"!==d&&"v4"!==d||u?"":"loginsearchmore"}}),T.t.handleClickNav({target:"login"})}),[a,d,u]);return(0,p.jsxs)(Fn,{isShowAll:l,isControlByBtn:r,children:[(0,p.jsx)(Nn,{children:i("sidenav_login_cta")}),(0,p.jsx)(Un,{buttonTheme:"line",onClick:h,children:i("Log In")})]})};var zn=n(64690),qn=n(72771),Wn=n(72950),Hn=n(23592),Vn=n(74987),Kn=n(44598),Jn=n(35041);const Xn={id:"person_arrow_left_fill-a2d06cac",use:"person_arrow_left_fill-a2d06cac-usage",viewBox:"0 0 24 24",content:''};function Gn(e){const t=(0,o.useContext)(B.X);return(0,o.useLayoutEffect)((()=>(t.add(Xn),()=>{t.remove("person_arrow_left_fill-a2d06cac")})),[]),(0,p.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,p.jsx)("use",{xlinkHref:"#person_arrow_left_fill-a2d06cac"},void 0)}),void 0)}var Yn,Zn=n(16300),Qn=n(76943),ei=n(52178),ti=n(22993),ni=n(89274),ii=n(30459),oi=n(92249),ai=n(67616),li=n(51199),ri=n(7859),si=n(27375),di=n(25754);!function(e){e.Show="livesdk_live_tab_show",e.DOBPromptingShow="livesdk_dob_prompting_popup_show",e.DOBPromptingClick="livesdk_dob_prompting_popup_click",e.BODSettingShow="livesdk_dob_set_popup_show",e.BODSettingClick="livesdk_dob_set_popup_click",e.AgeNonCompliance="livesdk_age_under_13_popup_show",e.CreatorPrompting="livesdk_creator_prompting_popup_show",e.LoginPromptingShow="livesdk_login_prompting_popup_show",e.LoginPromptingClick="livesdk_login_prompting_popup_click",e.LockPageShow="livesdk_lock_live_page_show"}(Yn||(Yn={}));var ci=n(70388),ui=n(10828),pi=n(31922),hi=n(65556),gi=n(77181),mi=n(7089);const vi=(0,I.default)(Hn.A,{target:"en5j2390"})({width:"32px",height:"32px",padding:"4px"},"label:StyledMessageIcon;"),fi=({canUseBcVisible:e,setCanUseBcVisible:t})=>{const[n,i]=(0,mi.hG)((e=>e.businessPermission),ue.bN);return(0,pi.$)(),(0,hi.c)(),(0,pi.q)(),(0,o.useEffect)((()=>{i.getBusinessPermissionList()}),[i]),(0,o.useEffect)((()=>{n.comment&&n.message&&i.getBusinessAccountInfoResponse()}),[n,i]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(vi,{}),e&&(0,p.jsx)(gi.oL,{canUseBcVisible:e,setCanUseBcVisible:t})]})};var xi=n(94914),_i=n(53737);const bi={path:"/following",Icon:ei.A,ActiveIcon:ti.A,text:"Following",teaReport:()=>{T.t.handleClickNav({target:"following"}),ee.q.handleEnterFollowing({enter_method:"navigation_bar"})},hoverTeaReportParams:{type:"following_icon"},linkProps:{"data-e2e":"nav-following",disableAutoLang:!1}},yi={path:"/friends",Icon:ei.A,ActiveIcon:ti.A,text:"Friends",teaReport:()=>{T.t.handleClickNav({target:"friends"})},hoverTeaReportParams:{type:"friends"},linkProps:{"data-e2e":"nav-friends",disableAutoLang:!1}},wi={path:"/explore",Icon:zn.A,ActiveIcon:qn.A,text:"pc_web_explore_main_header",teaReport:()=>{T.t.handleClickNav({target:"explore"}),ee.q.handleEnterExplore({enter_method:"click_explore_tab"})},hoverTeaReportParams:{type:"explore"},linkProps:{"data-e2e":"nav-explore",disableAutoLang:!1}},ki={path:"/live",Icon:ni.A,ActiveIcon:ii.A,text:"LIVE",teaReport:()=>{T.t.handleClickNav({target:"live"}),ee.q.handleEnterLiveDiscover({enter_method:"navigation_bar"})},hoverTeaReportParams:{type:"live"},linkProps:{"data-e2e":"nav-live",disableAutoLang:!1}},ji={path:"/tiktokstudio/upload",Icon:Wn.A,ActiveIcon:Wn.A,isIconPadding:!0,text:"Upload",teaReport:()=>{T.t.handleClickNav({target:"upload"})},hoverTeaReportParams:{type:"upload"},linkProps:{"data-e2e":"nav-upload",disableAutoLang:!1}},Ci={path:"/messages",Icon:Hn.A,ActiveIcon:Hn.A,isIconPadding:!0,text:"webdm_message_button",teaReport:()=>{T.t.handleClickNav({target:"messages"}),di.w.handleEnterChatList()},hoverTeaReportParams:{type:"messages"},linkProps:{"data-e2e":"nav-messages",disableAutoLang:!1}},Si={path:"/",Icon:oi.A,ActiveIcon:ai.A,text:"Profile",teaReport:()=>{T.t.handleClickNav({target:"profile"})},hoverTeaReportParams:{type:"profile"},linkProps:{"data-e2e":"nav-profile",disableAutoLang:!1},isIconPadding:!0};function Li({currentPath:e,configPath:t}){return e===t}const Ti=function(e){const{text:t,path:n,onClick:i,onLoad:a,onCheckActive:l=Li,Container:r=ci.ah,Icon:s,ActiveIcon:d,IconComponent:c,linkProps:u,teaReport:h,scrollRef:g,forceSSR:m,isShowAll:v,isControlByBtn:x,hoverTeaReportParams:_}=e,b=(0,C.s)(),{pathname:y}=(0,f.useLocation)(),{colors:k}=(0,j.u)(),[S,L]=(0,o.useState)(l({configPath:n,currentPath:y})),T=S?d:s,[I,P]=(0,o.useState)(!1),{handleSideBarTooltipHoverReport:D}=(0,w.JY)(),E=(0,o.useCallback)((e=>{h(),null==i||i(e)}),[i,h]);(0,o.useEffect)((()=>{L(l({configPath:n,currentPath:location.pathname}))}),[l,n,y]),(0,o.useEffect)((()=>{null==a||a()}),[a]);const B=(0,o.useRef)(null),O=(0,o.useCallback)((()=>{const e=document.documentElement.offsetWidth<1072;(x?!1===v:e)&&((null==_?void 0:_.type)&&D(_.type),P(!0))}),[D,null==_?void 0:_.type,x,v]),A=(0,o.useCallback)((()=>{x&&v||P(!1)}),[v,x]),R=(0,o.useMemo)((()=>x&&!1===v?{justifyContent:"center"}:{}),[v,x]);return(0,p.jsx)("li",{children:(0,p.jsx)("div",{ref:B,children:(0,p.jsxs)(r,Object.assign(Object.assign({to:n,onClick:E},u),{forceSSR:m,style:R,onMouseEnter:O,onMouseLeave:A,children:[null!=c?c:e.isIconPadding?(0,p.jsx)(ci.V2,{padding:4,width:32,height:32,fontSize:24,children:(0,p.jsx)(T,{fill:S?k.Primary:k.Primary2,width:24,height:24})}):(0,p.jsx)(T,{fill:S?k.Primary:k.Primary2,width:32,height:32}),(0,p.jsx)(ci.yv,{active:S,isShowAll:v,isControlByBtn:x,children:b(t)}),e.topRightBadge,(0,p.jsx)(bn,{active:I,text:b(t),scrollRef:g,containerRef:B,isShowAll:v,isControlByBtn:x})]}))})})},Ii=(0,o.memo)((function({scrollRef:e,isShowAll:t,isControlByBtn:n}){var i,a;const l=(0,w.FU)(),{pathname:d}=(0,f.useLocation)(),c=(0,S.sL)(),[u,{setEnterForyou:g}]=(0,xi.C_)((e=>e.enterForyou)),[m,v]=(0,o.useState)(!1),x=(0,C.s)(),{lang:_="",userUniqueId:y="",avatar:k,hasIMPermission:j}=(0,h.P)(r.L,{selector:({appContext:e})=>{const{language:t,user:n}=null!=e?e:{};return{lang:t,userUniqueId:null==n?void 0:n.uniqueId,avatar:null==n?void 0:n.avatarUri[0],hasIMPermission:null==n?void 0:n.hasIMPermission}},dependencies:[]}),{hasVisitedFollowing:I,redDotCount:P}=(0,h.P)(li.M);(0,o.useEffect)((()=>{!(0,b.tO)(d)&&g(!1)}),[g,d]);const D=(0,o.useCallback)((()=>u&&(0,b.Fj)(d)||(0,b.tO)(d)),[d,u]),E=(0,o.useCallback)((()=>(0,b.U0)(d)),[d]),B=(0,S.E7)(void 0,null!==(a=null===(i=(0,L.jN)(d))||void 0===i?void 0:i.name)&&void 0!==a?a:L.eU.foryou),O=(0,ri.OB)(!0),A=(0,ri.o0)(O),{hasNonPersonalizedMenu:R}=(0,s.cE)(),M=R&&!O,F=(0,o.useCallback)((e=>{M&&A(),(0,b.tO)(d)&&(e.preventDefault(),c.resetRecommendList({}),B())}),[M,d,A,c,B]),N=!I&&P>0;(0,o.useEffect)((()=>{N&&T.t.handleShowFollowingRedDot()}),[N]),(0,o.useEffect)((()=>{if((0,b.eD)(d))return v(!1),void(0,Q.AP)(vn.z3,"1");(0,Q._S)(vn.z3)||(v(!0),T.t.handleShowNewLabel())}),[d]);const U=(0,o.useCallback)((()=>{N&&T.t.handleRemoveFollowingRedDot({enter_method:"click_homepage_follow"}),M&&A()}),[N,M,A]),$=(0,Ae.G)({modalConfig:{query:{redirect_url:`${ui.C}/friends`,enter_method:"friends_side_navigation"}}}),z=(0,o.useCallback)((e=>{y?ee.q.handleEnterFriends({enter_method:"friends_side_navigation"}):($(),e.preventDefault(),e.stopPropagation())}),[$,y]),q=(0,o.useCallback)((()=>{m&&T.t.handleRemoveNewLabel({enter_method:"click_explore_tab"})}),[m]),{showProfileLeftBar:W}=(0,s.eb)();(0,s.AP)()&&k&&(Si.IconComponent=(0,p.jsx)(ci.Bs,{src:k})),Si.path=`/@${y}`;const H=(0,Ae.G)({modalConfig:{isRedirectToProfilePage:!0,query:{enter_method:"profile_side_navigation"}}}),{showNewLiveIcon:V}=(0,s.vh)(),{enableMessageRefactor:K,enableUploadRefactor:J}=(0,s.NF)(),X=(0,o.useMemo)((()=>j&&K),[K,j]);V&&(ki.Icon=Vn.A,ki.ActiveIcon=Kn.A,ki.isIconPadding=!0);const G=(0,o.useCallback)((e=>{y?ee.q.handleEnterProfile({enter_method:"profile_side_navigation"}):(H(),e.preventDefault(),e.stopPropagation())}),[H,y]),Y=(0,o.useMemo)((()=>N?(0,p.jsx)(ci.Vk,{children:(0,p.jsx)(ci.NT,{children:(0,p.jsx)("circle",{cx:3,cy:3,r:3,fill:"#FE2C55"})})}):void 0),[N]),Z=(0,o.useMemo)((()=>m?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(ci.FV,{isShowAll:t,isControlByBtn:n,children:x("Inbox_New")}),(0,p.jsx)(ci.M7,{isShowAll:t,isControlByBtn:n,children:(0,p.jsx)(ci.NT,{children:(0,p.jsx)("circle",{cx:3,cy:3,r:3,fill:"#FE2C55"})})})]}):void 0),[t,n,m,x]),te=(ne=(0,ri.OB)(!0),{path:"/",Icon:Zn.A,ActiveIcon:Qn.A,text:ne?"for_you":"nonpersonalizedFeeds_LIVEfeed_navP_menuLink",teaReport:()=>{T.t.handleClickNav({target:"trending"}),ee.q.handleEnterTrending({enter_method:"navigation_bar"})},hoverTeaReportParams:{type:"for_you"},linkProps:{"data-e2e":"nav-foryou",disableAutoLang:!0}});var ne;te.path=`/${_}`;const ie=(0,s.RC)();ie&&(bi.Icon=Jn.A,bi.ActiveIcon=Gn,bi.isIconPadding=!0);const oe=(0,w.sw)(d),ae=(0,o.useCallback)((()=>{xt.f.event("livesdk_live_tab_show")}),[]),le=(0,o.useMemo)((()=>n?ci.SL:ci.ah),[n]),re=(0,s.yc)(),se=(0,p.jsx)(Ti,Object.assign(Object.assign({},wi),{Container:le,isShowAll:t,isControlByBtn:n,scrollRef:e,topRightBadge:Z,onClick:q})),de=(0,_i.VB)((e=>e.messageCount),ue.bN),ce=(0,mi.VR)((e=>e.businessPermission.message),ue.bN),pe=(0,si.lH)(de),[he,ge]=(0,o.useState)(!1),me=(0,o.useMemo)((()=>de>0?(0,p.jsx)(ci.f7,{isShowAll:t,isControlByBtn:n,children:pe}):void 0),[pe,t,n,de]);return(0,p.jsx)(ci.BX,{children:(0,p.jsxs)(ci.ev,{children:["v1"===re&&se,(0,p.jsx)(Ti,Object.assign(Object.assign({},te),{Container:le,isShowAll:t,isControlByBtn:n,scrollRef:e,onClick:F,onCheckActive:D})),"v2"===re&&se,(0,p.jsx)(Ti,Object.assign(Object.assign({},bi),{Container:le,isShowAll:t,isControlByBtn:n,onClick:U,topRightBadge:Y,scrollRef:e})),ie&&(0,p.jsx)(Ti,Object.assign(Object.assign({},yi),{Container:le,isShowAll:t,isControlByBtn:n,onClick:z,scrollRef:e})),"v0"===re&&se,l&&(0,p.jsx)(Ti,Object.assign({onLoad:ae,forceSSR:!oe,Container:le,isShowAll:t,isControlByBtn:n,scrollRef:e,onCheckActive:E},ki)),X&&(0,p.jsx)(Ti,Object.assign({scrollRef:e,isShowAll:t,Container:le,isControlByBtn:n,topRightBadge:me,forceSSR:ce,IconComponent:(0,p.jsx)(fi,{canUseBcVisible:he,setCanUseBcVisible:ge})},Ci)),J&&(0,p.jsx)(Ti,Object.assign({scrollRef:e,isShowAll:t,Container:le,isControlByBtn:n},ji)),W&&(0,p.jsx)(Ti,Object.assign(Object.assign({},Si),{Container:le,isShowAll:t,isControlByBtn:n,scrollRef:e,onClick:G}))]})})}));var Pi=n(87933),Di=n(72916),Ei=n(8453);let Bi=class extends bt.E{constructor(){super(...arguments),this.defaultState={profileUserId:null,itemOffset:0,offsetLeft:0}}setShowing(e,t){e.profileUserId=t.userId,t.itemOffset&&(e.itemOffset=t.itemOffset),t.offsetLeft&&(e.offsetLeft=t.offsetLeft)}itemEnter(e){return e.pipe((0,Di.n)((({userId:e,itemOffset:t,offsetLeft:n,timeout:i})=>(0,Pi.O)(i).pipe((0,Ei.u)(this.getActions().setShowing({userId:e,itemOffset:t,offsetLeft:n}))))))}};(0,_t.__decorate)([(0,yt.h5)(),(0,_t.__metadata)("design:type",Function),(0,_t.__metadata)("design:paramtypes",[Object,Object]),(0,_t.__metadata)("design:returntype",void 0)],Bi.prototype,"setShowing",null),(0,_t.__decorate)([(0,yt.Mj)(),(0,_t.__metadata)("design:type",Function),(0,_t.__metadata)("design:paramtypes",[kt.c]),(0,_t.__metadata)("design:returntype",void 0)],Bi.prototype,"itemEnter",null),Bi=(0,_t.__decorate)([(0,wt.n)("SideNavigation")],Bi);var Oi=n(10287);const Ai=(0,I.default)(P.N_,{target:"e1chvlyy0"})((({theme:e})=>[{padding:"8px",display:"flex",flexDirection:"row",alignItems:"center",position:"relative",borderRadius:"4px",":hover":{textDecoration:"none"}},(0,k.RE)({theme:e})]),"label:DivLinkContainer;"),Ri=(0,I.default)("div",{target:"e1chvlyy1"})([{height:"32px",":hover":{textDecoration:"none"},display:"flex",flexDirection:"column",justifyContent:"center"},(0,k.jJ)({max:1071,style:{display:"none"}})],"label:DivContentContainer;"),Mi=(0,I.default)("div",{target:"e1chvlyy2"})({display:"flex"},"label:DivTitleWrapper;"),Fi=(0,I.default)("span",{target:"e1chvlyy3"})((({theme:e})=>[(0,k.zy)({theme:e,typography:"P2",color:"TextPrimary",fontWeight:"bold",fontFamily:"TikTokDisplayFont"}),{marginTop:"-2px",maxWidth:"145px"}]),k.PR,"label:SpanTitle;"),Ni=(0,I.default)("div",{target:"e1chvlyy4"})([({theme:{direction:e}})=>[(0,k.mp)({direction:e,marginEnd:"12px"}),(0,k.jJ)({max:1071,style:(0,k.mp)({direction:e,marginStart:"2px",marginEnd:"0"})})],{height:"32px",width:"32px",display:"flex",background:"#000000",borderRadius:"50%",justifyContent:"center",alignItems:"center"}],"label:DivIconBG;"),Ui=(0,I.default)("div",{target:"e1chvlyy5"})([{height:"16px",":hover":{textDecoration:"none"}}],"label:StyledIcon;"),$i=(0,I.default)("p",{target:"e1chvlyy6"})((({theme:e})=>[(0,k.zy)({theme:e,fontWeight:"normal",typography:"P4",fontFamily:"TikTokFont",color:"TextSecondary"}),{lineHeight:"15px",maxWidth:"145px"}]),k.PR,"label:PAuthor;");var zi=n(97625),qi=n(40500),Wi=n(77976);const Hi=(0,Wi.w)(Ai),Vi=(0,o.memo)((0,o.forwardRef)((function(e,t){const{item:n,index:i}=e,{title:a,type:l,id:r,author:s}=n,d=(0,o.useRef)(null),c=(0,o.useRef)(null),u="tag"===l?`/tag/${a}`:`/music/${a.split(" ").join("-").concat(`-${r}`)}`,h=(0,o.useCallback)((()=>{var e;null===(e=d.current)||void 0===e||e.focus()}),[]);(0,o.useImperativeHandle)(t,(()=>({get offsetTop(){var e,t;return null!==(t=null===(e=d.current)||void 0===e?void 0:e.offsetTop)&&void 0!==t?t:0},get offsetLeft(){var e,t;return null!==(t=null===(e=d.current)||void 0===e?void 0:e.offsetLeft)&&void 0!==t?t:0},setFocus:h})),[h]);const g=(0,o.useCallback)((e=>{var t;13===e.keyCode&&(null===(t=c.current)||void 0===t||t.linkClick()),32===e.keyCode&&e.preventDefault()}),[]),m=(0,o.useCallback)((e=>{(0,Q.dG)(e)}),[]);return(0,p.jsxs)(Hi,{onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,ref:d,onKeyDown:g,role:"link",tabIndex:0,to:u,onClick:m,etClick:{etName:"click_navigation_bar",etParams:{target:"tag"===l?"challenge":"single_song",option_clicked:"suggested_for_you",item_list_index:i,from_item_list:"suggested_for_you"}},children:[(0,p.jsx)(Ni,{children:(0,p.jsx)(Ui,{tabIndex:-1,style:{color:"#FFFFFF"},children:"tag"===l?(0,p.jsx)(zi.U,{size:16}):(0,p.jsx)(qi.B,{size:16})})}),(0,p.jsxs)(Ri,{tabIndex:-1,children:[(0,p.jsx)(Mi,{children:(0,p.jsx)(Fi,{"data-e2e":`${l}-title`,children:a})}),(0,p.jsx)($i,{"data-e2e":`${l}-author`,children:s})]})]})}))),Ki=(0,o.memo)((function(){const e=(0,j.u)(),{user:t}=(0,h.P)(r.L,{selector:e=>{var t;return{user:null===(t=e.appContext)||void 0===t?void 0:t.user}},dependencies:[]}),n=(0,C.s)(),[{isSuggestedItemListReady:i,suggestedItemList:a}]=(0,Oi.TP)(),l=!!t,[s,d]=(0,o.useState)(!1),c=a.filter((e=>"author"===e.type)).map((e=>e.title)),u=10,[{authorIdList:g,loading:m,hasMore:v,totalLength:f},x]=(0,J.Gd)((e=>{const{list:t,loading:n,hasMore:o}=e.following;return{authorIdList:s?t:t.slice(0,u-a.length),loading:l&&n||!i,hasMore:l&&o,totalLength:t.length}}),((e,t)=>H()(e,t))),_=(0,o.useRef)(0);_.current=g.length;const{needRefresh:b,setPathname:y,pathname:w}=(0,X.$q)();(0,o.useEffect)((()=>{l&&b&&x.getFollowingList({count:u}),y(w)}),[x,b,u,l]);const k=(0,o.useRef)(!1),S=(0,o.useCallback)((()=>{k.current=!0,v&&s||d(!s),v&&l&&x.getFollowingList({count:u}),(v||!s)&&T.t.handleClickNav({target:"see_more"})}),[x,v,s,u,l]),L=(0,o.useRef)([]),I=(0,o.useCallback)((e=>t=>{L.current[e]=t}),[]),{shouldShowToggle:P,showMoreText:D,isSeeMore:E}=xe({hasMore:v,isShowingMore:s,totalLength:f,showNum:u,loading:m}),B=k.current&&E&&v||!v&&!E,O=(0,o.useCallback)((()=>{var e;S(),(v&&E||!v&&E)&&(null===(e=L.current[_.current-1])||void 0===e||e.setFocus())}),[S,v,E]),A=(0,K.x)(O,[S,v,E]),R=n(a.length>0||!l?"pcWeb_leftNavBar_suggestForYou":"desktop_logged_in_profile");if(!l&&i&&0===a.length)return null;let M=0;return(0,p.jsxs)(Te,{loading:!i,listType:"following",title:R,children:[(0,p.jsxs)(Le,{children:[a.map(((e,t)=>{const{type:n,title:i}=e;return"author"===n?(0,p.jsx)("li",{children:(0,p.jsx)(he,{index:t,isSuggestedContent:!0,ref:I(t),uniqueId:i,e2ePrefix:"following",itemType:"following",enterMethod:"click_navigation"})},e.title):(0,p.jsx)("li",{children:(0,p.jsx)(Vi,{ref:I(t),item:e,index:t})},e.title)})),g.map(((e,t)=>!e||c.includes(e)?(M++,null):(0,p.jsx)("li",{children:(0,p.jsx)(he,{index:t+a.length-M,ref:I(t+a.length-M),uniqueId:e,e2ePrefix:"following",itemType:"following",enterMethod:"click_navigation"})},e))),0===g.length&&0===a.length&&(0,p.jsx)(Se,{children:n("sidenav_follow_hint")})]}),m?(0,p.jsx)("div",{style:{marginTop:"4px"},children:(0,p.jsx)(me,{})}):null,P&&(0,p.jsxs)(je,{"data-e2e":"following-see-all",onClick:S,onKeyDown:A,"aria-expanded":B,"aria-labelledby":"side-nav-following-see-all",children:[(0,p.jsx)(ke,{id:"side-nav-following-see-all",children:D}),(0,p.jsx)(Ce,{fill:e.colors.Primary,width:16,height:16,up:s})]})]})}));var Ji=n(47726);const Xi=(e,t)=>e?e.replace(/{lang}/g,t):"",Gi=(e,t)=>t.map((t=>{const{shortTitle:n,url:i}=t,o=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o[(0,k.zy)({theme:e,color:"TextTertiary",fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P4",isLink:!0}),Object.assign({display:"inline-block",marginRight:"6px",marginTop:"5px"},t)]),"label:StyledNavLink;"),eo=(0,Wi.w)(Qi),to=(0,o.memo)((function({navList:e,e2e:t,forceSSR:n=!0,reportShow:i,reportClick:a,containerStyle:l,linkStyle:r,disableAutoLang:s,pageListType:d=""}){const c=(0,o.useRef)(null),u=(0,o.useCallback)((()=>{null==i||i()}),[i]);return(0,Qt.B)({intersectionHandler:u,element:c,threshold:[.5]}),e?(0,p.jsx)(Zi,{ref:c,style:l,children:e.map((e=>(0,p.jsx)(eo,Object.assign({forceSSR:n,to:e.href,"data-e2e":t,target:"_blank",fontStyle:r,disableAutoLang:s},a&&{onClick:a},{etClick:{etName:"click_footer_sub_menu",etParams:{sub_menu:e.href.split("?")[0],footer_button:d}},children:e.title}),e.href)))}):(0,p.jsx)(p.Fragment,{})}));var no=n(97706);const io=(0,I.default)("div",{target:"el3hfgg0"})((({theme:{colors:e,direction:t},isControlByBtn:n,isShowAll:i})=>[{position:"relative",paddingTop:"16px","::before":{content:'""',position:"absolute",left:"8px",right:"8px",top:0,height:"1px",background:e.LineSecondary,transform:"scaleY(0.5)"}},n&&!1===i&&{display:"none"},(0,k.mp)({direction:t,paddingStart:"8px"}),!n&&(0,k.jJ)({max:1071,style:{display:"none"}})]),"label:DivFooterContainer;"),oo=e=>[(0,k.zy)({theme:e,color:"TextTertiary",fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P4",isLink:!0}),{display:"inline-block",marginRight:"6px",marginTop:"5px"}],ao=(0,I.default)("span",{target:"el3hfgg1"})((({theme:e})=>oo(e)),"label:SpanCopyright;");ao.defaultProps=Object.assign(Object.assign({},ao.defaultProps),{"data-e2e":"copyright"});const lo=(0,I.default)("div",{target:"el3hfgg2"})({marginBottom:"8px",position:"relative"},"label:DivMoreContainer;"),ro=(0,I.default)("span",{target:"el3hfgg3"})((({theme:e})=>oo(e)),{cursor:"pointer"},"label:SpanMoreText;");ro.defaultProps=Object.assign(Object.assign({},ro.defaultProps),{"data-e2e":"more-link"});const so=(0,I.default)("div",{target:"el3hfgg4"})({padding:"15px 16px 20px",width:"fit-content",maxWidth:"200px"},"label:DivMorePopupWrapper;"),co=(0,I.default)(P.N_,{target:"el3hfgg5"})((({theme:e})=>[(0,k.zy)({theme:e,typography:"P2",fontWeight:"semiBold"}),{display:"block",":hover":{textDecoration:"none",color:e.colors.Primary},"& + &":{marginTop:"20px"}}]),"label:StyledMoreLink;"),uo=(0,I.default)("div",{target:"el3hfgg6"})((({theme:e})=>(0,k.zy)({theme:e,color:"TextQuaternary",fontFamily:"TikTokFont",fontWeight:"semiBold"})),{display:"flex",alignItems:"center",cursor:"pointer",fontSize:"12px",position:"relative",bottom:"2px",marginBottom:"20px"},"label:DivSeeMoreNav;"),po=(0,I.default)(_e.A,{target:"el3hfgg7"})((({theme:{direction:e}})=>[(0,k.mp)({direction:e,marginStart:"6px"}),{width:"11px"}]),"label:StyledChevronDownFill;"),ho=(0,I.default)("h4",{target:"el3hfgg8"})((({first:e,isCollapsible:t})=>({fontSize:"15px",lineHeight:"22px",marginTop:e?0:"15px",cursor:t?"pointer":"unset"})),(({theme:e,isActive:t})=>(0,k.zy)({theme:e,color:t?"TextPrimary":"TextTertiary",fontFamily:"TikTokDisplayFont",fontWeight:"bold"})),"label:H4LinkListHeader;"),go=(0,o.memo)((function({isControlByBtn:e,isShowAll:t,companyList:n,programList:i,legalList:a,moreList:l}){const r=(0,C.s)(),{active:c,handleMouseEnter:u,handleMouseLeave:h}=(0,Yi.K)(),{showEhEntrance:g}=(0,s.$r)({}),{isBot:m}=(0,d.L$)((0,x.U)((()=>["isBot"]),[])),[v,f]=(0,o.useState)(null!=m&&m),[_,b]=(0,o.useState)(null),y=e=>{b(_===e?null:e),xt.f.sendEvent("click_footer_button",{footer_button:null!=e?e:""})},{isCollapsibleFooter:w}=(0,s.vh)(),k=e=>w&&_===e,j=`${(new Date).getFullYear()} TikTok`;return(0,p.jsxs)(io,{isControlByBtn:e,isShowAll:t,children:[g&&(0,p.jsx)(pn,{}),n&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(ho,{first:!0,isActive:k("Company"),isCollapsible:w,onClick:()=>y("Company"),children:n.title}),(!w||k("Company"))&&(0,p.jsx)(to,{navList:n.children,e2e:"page-link",pageListType:"Company"})]}),i&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(ho,{isCollapsible:w,isActive:k("Program"),onClick:()=>y("Program"),children:i.title}),(!w||k("Program"))&&(0,p.jsx)(to,{navList:i.children,e2e:"program-link",pageListType:"Program"})]}),a&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(ho,{isCollapsible:w,isActive:k("Legal"),onClick:()=>y("Legal"),children:a.title}),(!w||k("Legal"))&&(0,p.jsx)(to,{navList:a.children,e2e:"legal-link",pageListType:"Legal"})]}),m&&!v&&(0,p.jsxs)(uo,{onClick:()=>f(!0),children:[r("feed_caption_see_more"),(0,p.jsx)(po,{})]}),l.length>0&&(0,p.jsx)(lo,{children:(0,p.jsxs)(ro,{onMouseEnter:u,onMouseLeave:h,children:[r("more"),(0,p.jsx)(no.z,{active:c,placement:"topLeft",verticalOffset:5,children:(0,p.jsx)(so,{children:l.map((({title:e,href:t})=>(0,p.jsx)(co,{forceSSR:!0,to:t,target:"_blank",children:e},e)))})})]})}),(0,p.jsxs)(ao,{children:["© ",j]})]})})),mo=(0,o.memo)((function({lang:e,isControlByBtn:t,isShowAll:n}){const i=(0,Ji.f8)(),{companyList:o,programList:a,legalList:l,moreList:r}=((e="en",t)=>{const n=(null==t?void 0:t.navigation)||[],i=n[0]||{navTitle:"",navTabs:[]},o=n[1]||{navTitle:"",navTabs:[]},a=n[2]||{navTitle:"",navTabs:[]},l=n[3]||{navTitle:"",navTabs:[]};return{companyList:{title:i.navTitle,children:Gi(e,i.navTabs)},programList:{title:o.navTitle,children:Gi(e,o.navTabs)},legalList:{title:a.navTitle,children:Gi(e,a.navTabs)},moreList:{title:l.navTitle,children:Gi(e,l.navTabs)}}})(e,i);return(0,p.jsx)(go,{isControlByBtn:t,isShowAll:n,companyList:o,programList:a,legalList:l,moreList:r&&r.children.length>0?r.children:[]})}));var vo=n(14374),fo=n(71111),xo=n(31209),_o=n(39785);const bo=(0,_o.M)({csr:e=>Promise.resolve({})}),yo={},wo=(0,vo._)((0,fo.atom)(yo),{rehydrationKey:"launcher.sideNavPage.webappFooter"}),{useAtomService:ko,useServiceDispatchers:jo,useServiceState:Co}=(0,xo.i)(wo,((e,t)=>({fetchWebappFooterContent({locale:n,countryCode:i}){return o=this,a=void 0,r=function*(){try{const o=yield bo({locale:n,countryCode:i}),a=e(wo);t(wo,Object.assign(Object.assign({},a),o))}catch(e){console.error("Error fetching footer content:",e),t(wo,{})}},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{s(r.next(e))}catch(e){t(e)}}function i(e){try{s(r.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof l?o:new l((function(e){e(o)}))).then(n,i)}s((r=r.apply(o,a||[])).next())}));var o,a,l,r},resetWebFooterData(){t(wo,yo)}})));var So;!function(e){e.Sidebar="sidebar",e.Footer="footer"}(So||(So={}));const Lo=(0,o.memo)((function({isControlByBtn:e,isShowAll:t}){const{language:n="en",region:i="US"}=(0,h.P)(r.L,{selector:e=>{var t,n;return{language:null===(t=e.appContext)||void 0===t?void 0:t.language,region:null===(n=e.appContext)||void 0===n?void 0:n.region}},dependencies:[]}),[o,a]=ko();return(0,fe.o)((()=>a.fetchWebappFooterContent({locale:n,countryCode:i})),[n,i,a]),(0,p.jsx)(Ji.n4,{slug:"footer-webapp",locale:n||"en",countryCode:i||"US",preview:!1,initialState:o,children:(0,p.jsx)(mo,{lang:n||"en",isShowAll:t,isControlByBtn:e})})}));var To=n(54888);const Io=(0,o.memo)((function({isControlByBtn:e,isShowAll:t}){const n=(0,C.s)(),{isTTP:i}=(0,d.L$)((0,x.U)((()=>["isTTP"]),[])),{language:o,region:a}=(0,h.P)(r.L,{selector:e=>{var t,n;return{language:null===(t=e.appContext)||void 0===t?void 0:t.language,region:null===(n=e.appContext)||void 0===n?void 0:n.region}},dependencies:[]}),{$legalList:l}=(0,h.P)(To.$,{selector:e=>{var t,i;return{$legalList:null===(i=null===(t=e.bizContext)||void 0===t?void 0:t.navList.find((({title:e})=>e===n("Legal"))))||void 0===i?void 0:i.children}},dependencies:[]}),{pageList:s,programList:c,legalList:g}=(0,u.Db)(),m=(null!=l?l:[]).filter((e=>-1===(null==g?void 0:g.children.findIndex((({key:t})=>t===e.key)))||"copyright-policy"===e.key));if("DE"===(null==a?void 0:a.trim().toUpperCase())&&m.splice(3,0,{href:"https://www.tiktok.com/transparency/de-de/german-state-treaty/",key:"MStV",title:"Transparenz (MStV)"}),"AT"===(null==a?void 0:a.trim().toUpperCase())&&m.push({href:"https://www.tiktok.com/transparency/de-de/koplg-about/",key:"kopig",title:"KoPi-G"}),"IL"===(null==a?void 0:a.trim().toUpperCase())&&("he-IL"===(null==o?void 0:o.trim())||"en"===(null==o?void 0:o.trim()))){const e="he-IL"===(null==o?void 0:o.trim())?"כדי לראות את הסכם הפשרה בת\"צ 67824-07-20 שהרבני נ' .TikTok Pte. Ltd, לחץ כאן.":"View the settlement agreement in CA 67824-07-20 Shaharabani v. TikTok Pte. Ltd.",t=(i?"https://lf16-tiktok-web.tiktokcdn-us.com/obj/tiktok-web-tx/tiktok/webapp/main/webapp-desktop/":"https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok/webapp/main/webapp-desktop/")+"Shaharabani Signed Settlement Agreement.pdf";m.push({key:"il-settlement",title:e,href:t})}return(0,p.jsx)(go,{isControlByBtn:e,isShowAll:t,companyList:s,programList:c,legalList:g,moreList:m})}));const Po=(0,o.memo)((function({lang:e,slot:t,transStatus:n,extraTop:i,extraWidth:a,reportBotImpression:l,isShowAll:c,handleSetScrollDom:u,isControlByBtn:m,shouldTransparent:j}){const{user:C}=(0,h.P)(r.L,{selector:e=>{var t;return{user:null===(t=e.appContext)||void 0===t?void 0:t.user,isSideNavActive:e.sideNavActive}},dependencies:[]}),{isBot:S}=(0,d.L$)((0,x.U)((()=>["isBot"]),[])),L=(0,s.Vn)(),{showEhEntrance:T}=(0,s.$r)({}),{pathname:I}=(0,f.useLocation)(),P=(0,w.mU)(),D=(0,s.Tt)(),{permissionInfo:E}=(0,h.P)(w.C6),B=(0,Oi.SE)();(0,o.useEffect)((()=>{(()=>{var e,t,n,i;e=this,t=void 0,i=function*(){yield B.initMlModel(),yield B.getSuggestedForyouList()},new((n=void 0)||(n=Promise))((function(o,a){function l(e){try{s(i.next(e))}catch(e){a(e)}}function r(e){try{s(i.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,r)}s((i=i.apply(e,t||[])).next())}))})()}),[B]);const O=Boolean(C),A=(0,o.useRef)(null),[{profileUserId:R,offsetTop:M,offsetLeft:F},N]=(0,g.S)(Bi,{selector:({profileUserId:e,itemOffset:t,offsetLeft:n})=>({profileUserId:e,offsetTop:t,offsetLeft:n}),dependencies:[]}),{isMacElectronApp:U,isElectronApp:$}=(0,_.B)(),z=(0,s.TP)(),[W,H]=(0,o.useState)(!1),V=(0,o.useCallback)(((e,t,n)=>{var i,o;const a=document.documentElement.scrollTop||document.body.scrollTop,l=null!==(o=null===(i=A.current)||void 0===i?void 0:i.scrollTop)&&void 0!==o?o:0;let r;window.innerWidth<1072?(r=t-l+a-k.uF+20,H(!0)):(r=t-l+a+10,H(!1)),N.itemEnter({userId:e,itemOffset:r,timeout:1e3,offsetLeft:n})}),[N]),K=(0,o.useCallback)((()=>{N.itemEnter({userId:null,timeout:0})}),[N]),J=(0,o.useCallback)((()=>{N.itemEnter({userId:R,timeout:0})}),[N,R]),X=(0,o.useCallback)((()=>{N.itemEnter({userId:null,timeout:500})}),[N]),G=(0,o.useCallback)((()=>{R&&N.itemEnter({userId:null,timeout:0})}),[N,R]);(0,o.useEffect)((()=>{const e=v()((()=>{N.itemEnter({userId:null,timeout:0})}),1e3);return window.addEventListener("scroll",e),()=>{window.addEventListener("scroll",e)}}),[N]);const Y=(0,g.w)(w.p2);(0,o.useEffect)((()=>{(null==C?void 0:C.uid)&&!P&&(null==E?void 0:E.showComputerLiveEntrance)&&Y.getCreateRoomInfo({})}),[Y,C,null==E?void 0:E.showComputerLiveEntrance,P]);const Z=W,Q=(0,g.w)(w.C6);(0,o.useEffect)((()=>{(null==C?void 0:C.uid)&&Q.getLivePermission()}),[Q,C]);const ee=(0,o.useMemo)((()=>m?{position:(0,b.qd)(I)?void 0:"relative"}:{}),[I]);return(0,o.useEffect)((()=>{var e,t;null==u||u({current:null!==(t=null===(e=A.current)||void 0===e?void 0:e.dom)&&void 0!==t?t:null})}),[u,c]),(0,o.useEffect)((()=>{R&&X()}),[X,I]),(0,p.jsxs)(ci.V$,{transStatus:n,extraWidth:a,isShowAll:c,style:ee,isControlByBtn:m,children:[(0,p.jsx)(ci.Fb,{extraTop:i,extraWidth:a,onScroll:G,ref:A,isShowAll:c,isControlByBtn:m,shouldTransparent:j,children:(0,p.jsxs)(ci.R1,{isShowAll:c,isControlByBtn:m,children:[U&&(0,p.jsx)(q,{style:{marginBottom:"8px",marginInlineStart:"8px"},controlledCom:m,controlledExpanded:c}),(0,p.jsx)(Ii,{scrollRef:A,isShowAll:c,isControlByBtn:m}),(null==E?void 0:E.showComputerLiveEntrance)&&!$&&(0,p.jsx)(Bn,{scrollRef:A,isShowAll:c,isControlByBtn:m}),!O&&(0,p.jsx)($n,{isShowAll:c,isControlByBtn:m}),t||(0,p.jsxs)(p.Fragment,{children:[!z&&(0,p.jsx)(vt,{onEnterItem:V,onLeaveItem:K}),O&&!D&&(0,p.jsx)(Ie,{}),D&&(0,p.jsx)(Ki,{}),T&&(0,p.jsx)(un,{}),!z&&(0,p.jsx)(Zt,{}),(0,p.jsx)(ci.fd,{})]}),S||L?(0,p.jsx)(Lo,{lang:e,isShowAll:c,isControlByBtn:m,reportBotImpression:l}):(0,p.jsx)(Io,{isShowAll:c,isControlByBtn:m,reportBotImpression:l})]})}),m&&(0,p.jsx)(w.bG,{}),R&&(0,p.jsx)(y.t,{followTheme:"primary",paddingTop:24,paddingStart:Z?20:0,hideSignature:!0,fixedLeft:Z?52:F,top:M,uniqueId:R,onMouseEnter:J,onMouseLeave:X})]})}));var Do=n(98819),Eo=n(58542),Bo=n(33543);const Oo=(0,I.default)("div",{target:"e1u58fka0"})({width:Bo.pJ,flexShrink:0,zIndex:99},(0,k.jJ)({max:Do.f.Medium,style:{width:Bo.dK}}),"label:DivSideNavPlaceholderContainer;"),Ao=(0,I.default)("div",{target:"e1u58fka1"})((({$isNavFullOpen:e,$shouldTransparent:t,theme:{direction:n,colors:i}})=>[{width:e?Bo.pJ:Bo.dK,height:"100vh",display:"flex",alignItems:"center",overflowY:"hidden",overflowX:"clip",overscrollBehavior:"contain",flexDirection:"column",flexShrink:0,backgroundColor:t?"transparent":Eo.Tj4.UIPageFlat1,position:"fixed",boxSizing:"content-box"},(0,k.jJ)({max:Do.f.Medium,style:{width:Bo.dK,["ltr"===n?"borderRight":"borderLeft"]:e?`1px solid ${i.ShadowPrimary}`:""}})]),"label:DivSideNavContainer;"),Ro=(0,I.default)("div",{target:"e1u58fka2"})({display:"flex",flexDirection:"column",paddingTop:"1.25rem",paddingBottom:"0.5rem",flexShrink:0,gap:"1rem",width:"100%",alignItems:"center"},"label:DivFixedContentContainer;"),Mo=(0,I.default)("div",{target:"e1u58fka3"})((({$isNavFullOpen:e})=>[{display:"flex",paddingInlineStart:e?"0.5rem":"unset",width:e?"13rem":"2.5rem",justifyContent:e?"start":"center"},(0,k.jJ)({max:Do.f.Medium,style:{paddingInlineStart:"unset",justifyContent:"center"}})]),"label:DivLogoWrapper;"),Fo=(0,I.default)("div",{target:"e1u58fka4"})((({$isNavFullOpen:e})=>[{display:"flex"},(0,k.jJ)({max:Do.f.Medium,style:{paddingInlineStart:"unset",justifyContent:"center"}},{min:Do.f.Medium+1,style:{width:e?"13rem":"2.5rem"}})]),"label:DivSearchWrapper;"),No=(0,I.default)("div",{target:"e1u58fka5"})({display:"flex",flexDirection:"column",overflowY:"scroll",width:"100%",alignItems:"center",paddingTop:"0.25rem",paddingBottom:"0.5rem","-ms-overflow-style":"none",scrollbarWidth:"none","::-webkit-scrollbar":{display:"none"}},"label:DivScrollingContentContainer;"),Uo=(0,I.default)("div",{target:"e1u58fka6"})((({$isNavFullOpen:e})=>[{marginTop:"1rem",marginBottom:"-0.5rem",width:e?Bo.pJ:Bo.dK,paddingInlineStart:"0.5rem"},(0,k.jJ)({max:Do.f.Medium,style:{width:Bo.dK}})]),"label:DivLiveSuggestedContainer;"),$o=(0,I.default)("div",{target:"e1u58fka7"})((({$isDrawerOpen:e})=>[{marginTop:"1rem",display:"flex",flexDirection:"column",alignItems:"center"},(0,k.jJ)({max:Do.f.Medium,style:{display:"none"}}),{opacity:e?0:1,transition:`opacity ${Bo.Fd}ms`},e&&{display:"none"}]),"label:SubMainNavContentContainer;"),zo=(0,I.default)("div",{target:"e1u58fka8"})((({$isDrawerOpen:e})=>[{display:"flex",flexDirection:"column",alignItems:"center"},(0,k.jJ)({max:Do.f.Medium,style:{display:"none"}}),e&&{display:"none"}]),"label:SubMainNavFooterContainer;"),qo=(0,I.default)("div",{target:"e1u58fka9"})((({$isDrawerOpen:e,$shouldTransparent:t})=>({position:"absolute",height:"100%",width:e?Bo.dK:`calc(${Bo.pJ} - 2.5rem)`,transition:`width ${Bo.Fd}ms`,top:0,left:0,backgroundColor:t&&!e?"transparent":Eo.Tj4.UIPageFlat1})),"label:DivAnimationCover;");var Wo=n(72642),Ho=n(54731),Vo=n(23461),Ko=n(88479),Jo=n(14496),Xo=n(6585);const Go={drawerType:0,text:"web_navigation_activity",Icon:Ko.A,ActiveIcon:Jo.A,teaReport:()=>{}},Yo={drawerType:1,text:"more",Icon:Ho.A,ActiveIcon:Ho.A,teaReport:()=>{},iconSize:24},Zo={drawerType:2,text:"Search",Icon:Vo.A,ActiveIcon:Vo.A,teaReport:()=>{}},Qo={path:"/following",Icon:Jn.A,ActiveIcon:Gn,text:"Following",teaReport:()=>{T.t.handleClickNav({target:"following"}),ee.q.handleEnterFollowing({enter_method:"navigation_bar"})},hoverTeaReportParams:{type:"following_icon"},linkProps:{"data-e2e":"nav-following",disableAutoLang:!1},iconSize:24},ea={path:"/friends",Icon:ei.A,ActiveIcon:ti.A,text:"Friends",teaReport:()=>{T.t.handleClickNav({target:"friends"})},hoverTeaReportParams:{type:"friends"},linkProps:{"data-e2e":"nav-friends",disableAutoLang:!1}},ta={path:"/explore",Icon:zn.A,ActiveIcon:qn.A,text:"pc_web_explore_main_header",teaReport:()=>{T.t.handleClickNav({target:"explore"}),ee.q.handleEnterExplore({enter_method:"click_explore_tab"})},hoverTeaReportParams:{type:"explore"},linkProps:{"data-e2e":"nav-explore",disableAutoLang:!1}},na={path:"/live",Icon:ni.A,ActiveIcon:ii.A,text:"LIVE",teaReport:()=>{T.t.handleClickNav({target:"live"}),ee.q.handleEnterLiveDiscover({enter_method:"navigation_bar"})},hoverTeaReportParams:{type:"live"},linkProps:{"data-e2e":"nav-live",disableAutoLang:!1}},ia={path:"/tiktokstudio/upload",Icon:Wn.A,ActiveIcon:Wn.A,text:"Upload",teaReport:()=>{T.t.handleClickNav({target:"upload"})},hoverTeaReportParams:{type:"upload"},linkProps:{"data-e2e":"nav-upload",disableAutoLang:!1},iconSize:24,promotionalTooltipText:"ecom_creator_half_screen_create_video_title",tooltipKey:Xo.H.UploadKey},oa={path:"/messages",Icon:Hn.A,ActiveIcon:Hn.A,text:"webdm_message_button",teaReport:()=>{T.t.handleClickNav({target:"messages"})},hoverTeaReportParams:{type:"messages"},linkProps:{"data-e2e":"nav-messages",disableAutoLang:!1},iconSize:24},aa={path:"/",Icon:oi.A,ActiveIcon:ai.A,text:"Profile",teaReport:()=>{T.t.handleClickNav({target:"profile"})},hoverTeaReportParams:{type:"profile"},linkProps:{"data-e2e":"nav-profile",disableAutoLang:!1},iconSize:24};var la=n(44061);const ra={minWidth:"0",height:"2.5rem",padding:"0"},sa={width:"2.5rem","& > div":{"& > .TUXButton-label":{display:"none"}}},da=(0,I.default)(Eo.I05,{target:"ej7on1p0"})((({isDrawerOpen:e,isNavFullOpen:t,isActive:n,fixedHover:i})=>[(0,k.jJ)({max:Do.f.Medium,style:sa},{min:Do.f.Medium+1,style:t&&{width:"13rem","& > div":{gap:"0.75rem",justifyContent:"start",marginInlineStart:"0.25rem","& > .TUXButton-label":{margin:"0 !important",opacity:e?0:1,transition:`opacity ${Bo.Fd}ms`}}}}),!t&&{width:"2.5rem","& > div":{"& > .TUXButton-label":{width:"0",margin:"0 !important",opacity:0,transition:`opacity ${Bo.Fd}ms`}}},{":not(:hover)":{backgroundColor:i?Eo.Tj4.UIShapeNeutral4:"unset"},"&.TUXButton.TUXButton":Object.assign(Object.assign({},ra),{":hover":{backgroundColor:Eo.Tj4.UIShapeNeutral4}})},n&&{"&.TUXButton.TUXButton":{color:Eo.Tj4.UITextPrimaryDisplay}}]),"label:StyledTUXNavButton;"),ca=(0,I.default)(Eo.N0Y,{target:"ej7on1p1"})((0,k.jJ)({min:Do.f.Medium+1,style:{display:""}}),"label:StyledTUXTooltip;"),ua=(0,I.default)("div",{target:"ej7on1p2"})({width:"2rem",height:"2rem",justifyContent:"center",alignItems:"center",display:"flex",position:"relative"},"label:DivIconWithRedDotContainer;"),pa=(0,I.default)("div",{target:"ej7on1p3"})((({theme:e})=>[{position:"absolute",top:"0"},(0,k.mp)({direction:e.direction,end:"0"})]),"label:DivRedDotContainer;"),ha=(0,I.default)("div",{target:"ej7on1p4"})({display:"flex",flexDirection:"column",gap:"0.25rem"},"label:DivMainNavContainer;"),ga=(0,I.default)(Eo.I05,{target:"ej7on1p5"})((({isDrawerOpen:e,isNavFullOpen:t,hasUserContent:n,theme:{isDark:i}})=>[{"&.TUXButton.TUXButton":Object.assign({backgroundColor:i?"rgb(31,31,31)":"rgb(242,242,242)",":hover":{backgroundColor:i?"rgb(31,31,31)":"rgb(242,242,242)"}},ra)},(0,k.jJ)({max:Do.f.Medium,style:sa},{min:Do.f.Medium+1,style:t?{width:e?"2.5rem":"13rem",transition:`width ${Bo.Fd}ms`,"& > div":{gap:"0.25rem",justifyContent:"start",marginInlineStart:"0.25rem","& > .TUXButton-label":Object.assign({margin:"0 !important",marginRight:"10px !important",fontWeight:"normal",fontSize:"14px"},!n&&{color:Eo.Tj4.UITextPlaceholder})}}:{width:e?"2.5rem":"13rem",transition:`width ${Bo.Fd}ms`}}),!t&&sa]),"label:StyledTUXSearchButton;"),ma=(0,I.default)("div",{target:"ej7on1p6"})((({theme:e})=>[{position:"absolute",top:"3px"},(0,k.mp)({direction:e.direction,end:"1px"})]),"label:DivFollowingRedDotContainer;"),va=(0,I.default)("sup",{target:"ej7on1p7"})((({long:e,theme:t})=>[(0,k.mp)({direction:t.direction,end:"-4px"}),{background:t.colors.Primary,minWidth:"1rem",height:"1rem",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"0.5rem",position:"absolute",top:"-20%"},e?{padding:"0 6px"}:{}]),"label:SupBadge;");var fa=n(73611),xa=n(12016),_a=n(26263),ba=n(26290);function ya({currentPath:e,configPath:t}){return e===t}const wa=(0,o.memo)((function(e){const{text:t,onClick:n,onLoad:i,Icon:a,ActiveIcon:l,teaReport:r,drawerType:s,hoverTeaReportParams:d,topRightBadge:c,iconSize:u}=e,h=(0,C.s)(),[{drawerType:g,isDrawerOpen:m,isNavFullOpen:v},{closeDrawer:f,openDrawer:x}]=(0,fa.K5)((e=>({drawerType:e.drawerType,isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),ue.bN),{handleItemEnter:_,handleItemLeave:b}=(0,la.C)(),[y,k]=(0,o.useState)(s===g),{handleSideBarTooltipHoverReport:j}=(0,w.JY)(),S=y?l:a,L=(0,o.useCallback)((e=>{r(),null==n||n(e),y?f():(x(s),0===s&&xt.f.sendEvent("notification_panel_show",{enter_method:"click_inbox_button"}))}),[y,f,s,n,x,r]),T=(0,o.useCallback)((()=>{(null==d?void 0:d.type)&&j(d.type),_()}),[_,j,null==d?void 0:d.type]);(0,o.useEffect)((()=>{k(s===g&&m)}),[g,s,m]),(0,o.useEffect)((()=>{null==i||i()}),[i]);const I=(0,o.useCallback)((()=>(0,p.jsxs)(ua,{style:{fontSize:`${null!=u?u:32}px`},children:[(0,p.jsx)(S,{}),(0,p.jsx)(pa,{children:c})]})),[S,u,c]);return(0,p.jsx)(ca,{variant:"secondary",placement:"right",content:h(t),size:"small",visible:!1,children:(0,p.jsx)(da,{variant:"secondary",onMouseEnter:T,label:h(t),onClick:L,leadingIcon:I(),isDrawerOpen:m,isNavFullOpen:v,isActive:y,"aria-label":h(t),role:"listitem","aria-pressed":y,onMouseLeave:b})})})),ka=(0,o.memo)((function(e){const{path:t,text:n,onClick:i,onLoad:a,onCheckActive:l=ya,Icon:r,ActiveIcon:s,teaReport:d,hoverTeaReportParams:c,topRightBadge:u,iconSize:h,linkProps:g,forceSSR:m}=e,v=(0,C.s)(),{pathname:x}=(0,f.useLocation)(),[_,b]=(0,o.useState)(l({configPath:t,currentPath:x})),{handleSideBarTooltipHoverReport:y}=(0,w.JY)(),[{isDrawerOpen:k,isNavFullOpen:j},{closeDrawer:S}]=(0,fa.K5)((e=>({isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),ue.bN),L=_?s:r,T=(0,o.useCallback)((e=>{S(),d(),null==i||i(e)}),[S,i,d]),{handleItemEnter:I,handleItemLeave:D}=(0,la.C)(),E=(0,o.useCallback)((()=>{(null==c?void 0:c.type)&&y(c.type),I()}),[I,y,null==c?void 0:c.type]);(0,o.useEffect)((()=>{b(l({configPath:t,currentPath:location.pathname})&&!k)}),[l,t,x,k]),(0,o.useEffect)((()=>{null==a||a()}),[a]);const B=(0,o.useCallback)((()=>(0,p.jsxs)(ua,{style:{fontSize:`${null!=h?h:32}px`},children:[(0,p.jsx)(L,{}),(0,p.jsx)(pa,{children:u})]})),[L,h,u]);return(0,p.jsx)(ca,{variant:"secondary",placement:"right",content:v(n),size:"small",visible:!1,children:(0,p.jsx)(P.N_,Object.assign(Object.assign({to:t,onClick:T},g),{forceSSR:m,onMouseEnter:E,onMouseLeave:D,tabIndex:-1,children:(0,p.jsx)(da,{variant:"secondary",label:v(n),leadingIcon:B(),isDrawerOpen:k,isNavFullOpen:j,isActive:_,"aria-label":v(n),role:"listitem"})}))})})),ja=(0,o.memo)((function(e){const{path:t,text:n,onClick:i,onLoad:a,onCheckActive:l=ya,Icon:r,ActiveIcon:s,teaReport:d,hoverTeaReportParams:c,topRightBadge:u,iconSize:h,linkProps:g,forceSSR:m,promotionalTooltipText:v,tooltipKey:x,promotionalShowCondition:_}=e,b=(0,C.s)(),{pathname:y}=(0,f.useLocation)(),[k,j]=(0,o.useState)(l({configPath:t,currentPath:y})),{handleSideBarTooltipHoverReport:S}=(0,w.JY)(),[{isDrawerOpen:L,isNavFullOpen:T},{closeDrawer:I}]=(0,fa.K5)((e=>({isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),ue.bN),D=k?s:r,E=(0,o.useCallback)((e=>{I(),d(),null==i||i(e)}),[I,i,d]),{handleItemEnter:B,handleItemLeave:O}=(0,la.C)(),{hideTooltip:A,OneTimeTooltip:R}=(0,xa.w)(x),M=(0,_a.Y)(x).getLocalStorage(!0),F=(void 0===_||_)&&M,[N,U]=(0,o.useState)(F),$=F?R:o.Fragment;(0,o.useEffect)((()=>{const e=()=>{U(!1),A()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[A]);const z=(0,o.useCallback)((()=>{A(),U(!1),(null==c?void 0:c.type)&&S(c.type),B()}),[B,S,A,null==c?void 0:c.type]);(0,o.useEffect)((()=>{j(l({configPath:t,currentPath:location.pathname})&&!L)}),[l,t,y,L]),(0,o.useEffect)((()=>{null==a||a()}),[a]);const q=(0,o.useCallback)((()=>(0,p.jsxs)(ua,{style:{fontSize:`${null!=h?h:32}px`},children:[(0,p.jsx)(D,{}),(0,p.jsx)(pa,{children:u})]})),[D,h,u]);return(0,p.jsx)(ca,{variant:"secondary",placement:"right",content:b(n),size:"small",visible:!1,children:(0,p.jsx)(P.N_,Object.assign(Object.assign({to:t,onClick:E},g),{forceSSR:m,onMouseEnter:z,onMouseLeave:O,tabIndex:-1,children:(0,p.jsx)($,{content:(0,p.jsx)(ba.F.P1,{children:b(v)}),placement:"right",children:(0,p.jsx)(da,{variant:"secondary",label:b(n),leadingIcon:q(),isDrawerOpen:L,isNavFullOpen:T,isActive:k,fixedHover:N,"aria-label":b(n),role:"listitem"})})}))})})),Ca=[3,1,2,8,7,9],Sa=[0,4],La=[3,1,5,2,4,9,0,6,8,7],Ta=[3,1,2,4,9,0,6,5,8,7],Ia=[3,5,1,2,4,9,0,6,8,7],Pa=(0,o.memo)((function(){var e,t,n,i;const{pathname:a}=(0,f.useLocation)(),l=(0,S.sL)(),[c,{setEnterForyou:u}]=(0,xi.C_)((e=>e.enterForyou)),{userUniqueId:m="",avatar:v}=(0,h.P)(r.L,{selector:({appContext:e})=>{const{language:t,user:n}=null!=e?e:{};return{lang:t,userUniqueId:null==n?void 0:n.uniqueId,avatar:null==n?void 0:n.avatarUri[0]}},dependencies:[]}),{closeDrawer:x}=(0,fa.PS)();(0,o.useEffect)((()=>{!(0,b.tO)(a)&&u(!1)}),[u,a]),(0,o.useEffect)((()=>{x()}),[a]);const _=(0,o.useCallback)((()=>c&&(0,b.Fj)(a)||(0,b.tO)(a)),[a,c]),y=(0,o.useCallback)((()=>(0,b.U0)(a)),[a]),k=(0,S.E7)(void 0,null!==(t=null===(e=(0,L.jN)(a))||void 0===e?void 0:e.name)&&void 0!==t?t:L.eU.foryou),j=(0,ri.OB)(!0),C=(0,ri.o0)(j),{hasNonPersonalizedMenu:I}=(0,s.cE)(),P=I&&!j,D=(0,o.useCallback)((e=>{P&&C(),(0,b.tO)(a)&&(e.preventDefault(),l.resetRecommendList({}),k())}),[P,a,C,l,k]),{hasVisitedFollowing:E,redDotCount:B}=(0,h.P)(li.M),O=!E&&B>0;(0,o.useEffect)((()=>{O&&T.t.handleShowFollowingRedDot()}),[O]);const A=(0,o.useCallback)((()=>{O&&T.t.handleRemoveFollowingRedDot({enter_method:"click_homepage_follow"}),P&&C()}),[O,P,C]),R=(0,o.useMemo)((()=>O?(0,p.jsx)(ma,{children:(0,p.jsx)(ci.NT,{children:(0,p.jsx)("circle",{cx:3,cy:3,r:3,fill:"#FE2C55"})})}):void 0),[O]),M=(0,_i.VB)((e=>e.messageCount),ue.bN),F=(0,si.lH)(M),N=(0,o.useMemo)((()=>M>0?(0,p.jsx)(va,{long:M>10,children:(0,p.jsx)(ba.F.P4,{weight:"bold",color:"UIShapeText1OnPrimary",children:F})}):void 0),[F,M]),[U,$]=(0,o.useState)(!1),{businessPermission:z,businessAccountInfoResponse:q}=(0,mi.VR)((e=>e),ue.bN),W=(0,o.useCallback)((()=>(0,p.jsx)(fi,{canUseBcVisible:U,setCanUseBcVisible:$})),[U]),[{noticeList:H,reportInboxNoticeCount:V},K]=(0,g.S)(Wo.kK,{selector:e=>({noticeList:e.noticeCount,reportInboxNoticeCount:e.reportInbox.count,isFooterRequest:e.isFooterRequest}),dependencies:[]}),{region:J,language:X}=(0,d.L$)((0,ve.W)((()=>["region","language"]),[]));(0,o.useEffect)((()=>{K.fetchNoticeCount(),K.fetchReportInbox({region:J,language:X})}),[K,J,X]);const{totalText:G,totalLong:Y,totalUnreadCount:Z}=(0,o.useMemo)((()=>{const e=H.reduce(((e,{count:t})=>e+t),0)+V;return{totalText:(0,si.lH)(e),totalLong:e>10,totalUnreadCount:e}}),[H,V]),Q=(0,Ae.G)({modalConfig:{isRedirectToProfilePage:!0,query:{enter_method:"profile_side_navigation"}}}),te=(0,o.useCallback)((e=>{m?ee.q.handleEnterProfile({enter_method:"profile_side_navigation"}):(Q(),e.preventDefault(),e.stopPropagation())}),[Q,m]),ne=(0,o.useMemo)((()=>Z>0?(0,p.jsx)(va,{long:Y,children:(0,p.jsx)(ba.F.P4,{weight:"bold",color:"UIShapeText1OnPrimary",children:G})}):void 0),[Y,G,Z]),ie={0:Object.assign(Object.assign({},Go),{topRightBadge:ne}),1:Object.assign({},ta),2:Object.assign(Object.assign({},Qo),{topRightBadge:R,onClick:A}),3:Object.assign(Object.assign({},(oe=j,{path:"/",Icon:Zn.A,ActiveIcon:Qn.A,text:oe?"for_you":"nonpersonalizedFeeds_LIVEfeed_navP_menuLink",teaReport:()=>{T.t.handleClickNav({target:"trending"}),ee.q.handleEnterTrending({enter_method:"navigation_bar"})},hoverTeaReportParams:{type:"for_you"},linkProps:{"data-e2e":"nav-foryou",disableAutoLang:!0}})),{onCheckActive:_,onClick:D}),4:Object.assign({},ea),5:Object.assign(Object.assign({},na),{onCheckActive:y}),6:Object.assign(Object.assign({},oa),{path:(null===(n=q.data)||void 0===n?void 0:n.can_use_bc)&&null!==(i=q.data.redirect_url)&&void 0!==i?i:oa.path,Icon:W,ActiveIcon:W,topRightBadge:N,forceSSR:z.message}),7:Object.assign({},Yo),8:Object.assign(Object.assign({},aa),{path:`/@${m}`,Icon:v?()=>(0,p.jsx)(ci.Bs,{src:v,style:{padding:"3px"}}):aa.Icon,ActiveIcon:v?()=>(0,p.jsx)(ci.Bs,{src:v,style:{padding:"3px"}}):aa.ActiveIcon,onClick:te}),9:Object.assign(Object.assign({},ia),{promotionalShowCondition:!!m})};var oe;const ae=(()=>{const{user:e}=(0,d.L$)((0,ve.W)((()=>["user"]),[])),t=(0,w.FU)(),{vid:n}=(0,s.vY)(),i=Ca;switch(e&&(i.push(...Sa),e.hasIMPermission&&i.push(6)),t&&i.push(5),n){case"v1":case"v0":default:return La.filter((e=>i.includes(e)));case"v2":return Ta.filter((e=>i.includes(e)));case"v3":return Ia.filter((e=>i.includes(e)))}})();return(0,p.jsx)(ha,{children:ae.map((e=>{const t=ie[e];return"path"in t?"tooltipKey"in t?(0,p.jsx)(ja,Object.assign({},t)):(0,p.jsx)(ka,Object.assign({},t)):(0,p.jsx)(wa,Object.assign({},t))}))})}));var Da=n(22224);const Ea="20rem",Ba="24rem",Oa=(0,I.default)("div",{target:"e1lvfea00"})((({theme:{colors:e,direction:t}})=>[{width:Ea,height:"100vh",position:"fixed",insetInlineStart:Bo.dK,backgroundColor:Eo.Tj4.UIPageFlat1,zIndex:99,borderRight:`1px solid ${e.ShadowPrimary}`,borderLeft:`1px solid ${e.ShadowPrimary}`,overscrollBehavior:"contain","&.drawer-enter":{transform:`translateX(${"ltr"===t?"-":""}${Ba})`,opacity:.3,zIndex:-1,borderLeft:0,borderRight:0},"&.drawer-enter-active":{transform:"translateX(0)",opacity:1,transition:`transform ${Bo.Fd}ms, opacity ${Bo.Fd}ms`},"&.drawer-exit":{transform:"translateX(0)",opacity:1,zIndex:-1,borderLeft:0,borderRight:0},"&.drawer-exit-active":{transform:`translateX(${"ltr"===t?"-":""}${Ba})`,opacity:.3,transition:`transform ${Bo.Fd}ms, opacity ${Bo.Fd}ms`}}]),"label:DivDrawerContainer;"),Aa=(0,I.default)("div",{target:"e1lvfea01"})({position:"absolute",top:"1.5rem",insetInlineEnd:"1rem",display:"flex",alignItems:"center",justifyContent:"center"},"label:DivDrawerCloseButtonContainer;"),Ra=(0,I.default)(Eo.I05,{target:"e1lvfea02"})({"&.TUXButton.TUXButton":{minWidth:"0",height:"1.75rem",padding:"0"},width:"1.75rem","& > div":{"& > .TUXButton-label":{display:"none"}}},"label:StyledTUXMoreCloseButton;"),Ma=(0,I.default)("div",{target:"e1lvfea03"})({top:0,insetInlineStart:`calc(${Ea} + ${Bo.dK})`,position:"fixed",width:"100vw",height:"100vh",zIndex:99},"label:DivDrawerMask;"),Fa=(0,I.default)("div",{target:"e1lvfea04"})({"& > div":{maxHeight:"100vh"}},"label:DivActivityContainer;"),Na=(0,I.default)("div",{target:"e1lvfea05"})({padding:"0.5rem",paddingInlineEnd:"0"},"label:DivSearchContainer;"),Ua=(0,I.default)("div",{target:"e1lvfea06"})({height:"4.4rem",paddingTop:"1.0rem",paddingLeft:"0.5rem"},"label:DivSearchDriverHeader;");var $a=n(52261),za=n(92925);const qa=(0,o.memo)((function(){const e=(0,o.useRef)(!1),t=(0,$a.Cp)();return(0,o.useEffect)((()=>{e.current||(t.fetchNoticeData(),e.current=!0)}),[t]),(0,p.jsx)(Fa,{children:(0,p.jsx)(za.b,{})})}));var Wa=n(85245);const Ha=(0,o.memo)((function({}){const e=(0,fa.PS)(),t=(0,C.s)();return(0,p.jsxs)(Na,{children:[(0,p.jsx)(Ua,{children:(0,p.jsxs)(ba.F.H2,{weight:"bold",children:[" ",t("Search")," "]})}),(0,p.jsx)(Wa.v,{isFullSideNav:!0,onSubmitSuccess:()=>{e.closeDrawer()}})]})})),Va=(0,I.default)("div",{target:"eo17pdf0"})({width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"start"},"label:DivMoreDrawerContainer;"),Ka=(0,I.default)("div",{target:"eo17pdf1"})({height:"4.5rem",display:"flex",flexDirection:"row",gap:"0.5rem",paddingTop:"1.5rem",paddingBottom:"1rem",marginInlineStart:"1rem",flexShrink:0,alignItems:"start"},"label:DivMoreDrawerHeader;"),Ja=(0,I.default)("div",{target:"eo17pdf2"})({width:"1.5rem",height:"1.5rem",display:"flex",justifyContent:"center",alignItems:"center"},"label:DivBackIconWrapper;"),Xa=(0,I.default)(Eo.I05,{target:"eo17pdf3"})({"&.TUXButton.TUXButton":{minWidth:"0",height:"1.5rem",padding:"0"},width:"1.5rem","& > div":{"& > .TUXButton-label":{display:"none"}}},"label:StyledTUXMoreBackButton;"),Ga=(0,I.default)("ul",{target:"eo17pdf4"})({display:"flex",flexDirection:"column",overflowY:"scroll",width:"100%",alignItems:"center",gap:"0.25rem",listStyleType:"none",margin:"0",padding:"0.5rem","-ms-overflow-style":"none",scrollbarWidth:"none","::-webkit-scrollbar":{display:"none"}},"label:UlMoreScrollingContentContainer;"),Ya=(0,I.default)("li",{target:"eo17pdf5"})({width:"100%",listStyleType:"none"},"label:LiMoreButtonContainer;"),Za=(0,I.default)(Eo.I05,{target:"eo17pdf6"})({"&.TUXButton.TUXButton":{minWidth:"0",height:"2.5rem",padding:"0",":hover":{backgroundColor:`${Eo.Tj4.UIShapeNeutral4}`}},width:"100%",":not(:hover)":{backgroundColor:"unset"},"& > div":{gap:"1rem",justifyContent:"space-between",marginInlineStart:"0.5rem",marginInlineEnd:"0.5rem","& > .TUXButton-label":{margin:"unset"}}},"label:StyledTUXMoreOptionButton;");var Qa=n(56723);const el=(0,fo.atom)({showModal:!1,modalType:0});el.debugLabel="confirmLogoutAtom";const{useAtomService:tl,useServiceState:nl,useServiceDispatchers:il}=(0,xo.i)(el,((e,t)=>({setShowModal(n){t(el,(()=>Object.assign(Object.assign({},e(el)),{showModal:n})))},setModalType(n){t(el,(()=>Object.assign(Object.assign({},e(el)),{modalType:n})))}})));var ol=n(61886),al=n(16469),ll=n(86389),rl=n(91825),sl=n(65754),dl=n(4929),cl=n(13392),ul=n(87260),pl=n(28086),hl=n(84643),gl=n(20203),ml=n(21620),vl=n(51391),fl=n(82850),xl=n(42230),_l=n(8615),bl=n(52401),yl=n(77734),wl=n(15936),kl=n(8227),jl=n(509);const Cl=()=>{var e;const t=(0,ve.W)((()=>["user","language","abTestVersion","region"]),[]),n=null!==(e=(0,An.qt)(null==t?void 0:t.abTestVersion,"creator_center_reverse"))&&void 0!==e?e:"v2",{isElectronApp:i}=(0,_.B)(),a=(null==t?void 0:t.user)?w.HL.PORTRAIT:w.HL.MORE,l=(0,o.useCallback)((()=>{jl.d.handleClickAnalyticsButton()}),[]),r=(0,o.useCallback)((()=>{const e=`${kl.vI.studioDownload}?enter_from=profile`;i&&window.open(e,"_blank"),window.location.href=e}),[i]),s=(0,o.useCallback)((()=>{xt.f.sendEvent("Promote_entrance_click",{enter_from:"menu_creator_tool"})}),[]);return{0:{text:"view_analytics",forceSSR:!0,href:"v1"!==n?"/tiktokstudio/analytics/overview?from=dropdown_button":"/analytics",e2eTag:"analytics-entrance",target:i?"_blank":"_self",onClick:l,onKeyDown:(0,wl.B)(l)},1:{text:"live_center_title",href:`${w.Ox}?enter_from=${w.HL.PROFILE_HOVER}&lang=${null==t?void 0:t.language}`,forceSSR:!0,e2eTag:"live-center",target:i?"_blank":void 0},2:{text:"live_creator_hub_name",href:`${w.x2}?enter_from=${a}&lang=${null==t?void 0:t.language}®ion=${null==t?void 0:t.region}`,forceSSR:!0,e2eTag:"live-creator-hub",target:i?"_blank":void 0},3:{text:"ls_live_studio",href:`${kl.vI.studioDownload}?enter_from=profile`,forceSSR:!0,e2eTag:"live-studio-entrance",onClick:r,onKeyDown:(0,wl.B)(r)},4:{text:"Promote_web_entrance_profile",href:"/promote/web/main?enter_from=menu_creator_tool",forceSSR:!0,target:i?"_blank":"_self",onClick:s,onKeyDown:(0,wl.B)(s)}}},Sl=()=>{const e=(0,C.s)(),t=(0,ve.W)((()=>["user","language","abTestVersion","region"]),[]),n=null==t?void 0:t.user,{isElectronApp:i}=(0,_.B)(),a=(0,f.useHistory)(),l=(0,hn.Nj)(ol.y_),[{atomState:{isWebRechargedBefore:r}}]=(0,pl.I)(hl.v),d=(0,o.useCallback)((()=>{l.handleLiveWebGetCoinClick({show_page:"setting",is_web_recharged_before:r?"yes":"no",request_page:"webapp",style:"icon_and_text"});const e=`${ul.I7.coin}?enter_from=web_main_nav`;i?window.open(e,"_blank"):a.push(e)}),[i,r,a,l]),{ehLink:c}=(0,s.$r)({linkIncludeVid:!0}),u=(0,o.useCallback)((()=>{T.t.handleClickEntrance({enter_method:"click_banner"})}),[]),p=(0,o.useCallback)(((e="click")=>{xt.f.sendEvent("click_creator_tools",{enter_method:e})}),[]),h=(0,o.useMemo)((()=>!al.bc.getItem(gl.Q)||(null==n?void 0:n.hasCollectionsRedDot)),[null==n?void 0:n.hasCollectionsRedDot]),g=(0,o.useCallback)((()=>{ml.I.handleEnterCollectionsPage(),al.bc.setItem(gl.Q,!0)}),[]),m=Cl()[3],[v,x]=(0,cl.Su)(yl.GC,{selector:e=>{var t;return null!==(t=e.redDot)&&void 0!==t?t:[]},dependencies:[]}),b=(0,o.useCallback)((()=>{-1!==v.indexOf(2)&&x.updateRedDot({type:2,redirect:`${location.origin}/business-suite`,isElectronApp:i}),ee.q.handleEnterBusiness()}),[v,x,i]),y=(0,o.useCallback)((()=>{ee.q.handleEnterSet({enter_method:"top_bar"})}),[]),w=(0,o.useMemo)((()=>{var e,n;return null!==(n=null===(e=dl.wX.find((({value:e})=>e===(null==t?void 0:t.language))))||void 0===e?void 0:e.label)&&void 0!==n?n:"Language"}),[null==t?void 0:t.language]),k=(0,o.useCallback)((()=>{vl.j.handleLanguageClick({enter_method:"top_bar"})}),[]),j=(0,cl.Ph)(ll.i,{selector:e=>e.hasNewFeedbackReply,dependencies:[]}),S=(0,o.useCallback)((()=>{if(!(null==n?void 0:n.uid)&&(0,rl.mR)()){const e=new URLSearchParams(location.search);l.handleRechargeLoginClick(Object.assign({click_area:ol.oD.top_list_feedback,guided_from_app_type:"",request_page:"webapp",enter_from:e.get("enter_from"),enter_source:""},(0,rl.h8)()))}fl.S.handleEnterFeedback(j?"history":"new")}),[j,l,null==n?void 0:n.uid]),L=(0,sl.ur)(),I=(0,o.useCallback)((()=>{xl.R.handleClickGetApp({enter_method:"under_profile_icon_button"}),L.setIsModalShow(!0)}),[L]),{setShowModal:P,setModalType:D}=il(),E=(0,o.useCallback)((()=>{D(1),P(!0),_l._.handleLinkPhoneOrEmailPopupShow({enterMethod:"logout"})}),[D,P]),B=(0,o.useCallback)((()=>{P(!0),bl.z.logoutNotify()}),[P]),O=(0,s.ZO)()&&(null==n?void 0:n.suggestAccountBind),A=(0,o.useCallback)((()=>O?E:B),[B,E,O]);return{6:{text:"WebApp_coin_recharge_1",href:"/coin?enter_from=web_main_nav",forceSSR:!0,e2eTag:"recharge-entrance",target:i?"_blank":void 0,onClick:d,onKeyDown:(0,wl.B)(d)},1:{text:"tteh_webapp_acquisitionBanner_1",href:c,forceSSR:!0,target:"_blank",onClick:u,onKeyDown:(0,wl.B)(u)},2:{text:"pcWeb_navi_creatorTools",e2eTag:"creator-tools",nestedMenu:0,onClick:()=>p("click")},10:{text:"tiktok_series_webapp_option",href:"/series",forceSSR:!0,e2eTag:"tiktok-series-entrance",target:i?"_blank":void 0,hasNew:h,onClick:g,onKeyDown:(0,wl.B)(g)},8:Object.assign({},m),0:{text:"web_business_suite_entry",href:-1!==v.indexOf(2)?"":"/business-suite",target:i?"_blank":void 0,forceSSR:!0,e2eTag:"business-entrance",onClick:b,onKeyDown:(0,wl.B)(b)},11:{text:i?"desktop_app_accountSettings":"settings",href:"/setting",forceSSR:!0,e2eTag:"settings-entrance",onClick:y,onKeyDown:(0,wl.B)(y)},7:{text:w,nestedMenu:2,e2eTag:"language-select",onClick:k,ariaLabel:e("accessibilityLabels_settings_language",{language:w})},4:{text:"Feedback and help",href:j?"/feedback/report":"/feedback",hasNew:j,forceSSR:!0,e2eTag:"feedback-entrance",onClick:S,onKeyDown:(0,wl.B)(S)},3:{text:"pc_web_dark_mode",nestedMenu:1,ariaLabel:e("accessibilityLabels_settings_darkModeOn")},5:{text:"get_app",onClick:I,onKeyDown:(0,wl.B)(I)},9:{text:"Log out",e2eTag:"logout-entrance",onClick:A(),onKeyDown:(0,wl.B)(A())}}},Ll=(0,o.memo)((function(e){const t=(0,C.s)(),{text:n,href:i,onClick:o,onKeyDown:a,forceSSR:l,target:r,e2eTag:s,ariaLabel:d,selected:c}=e;return i?(0,p.jsx)(Ya,{children:(0,p.jsx)(P.N_,{to:i,onClick:o,onKeyDown:a,forceSSR:l,target:r,"data-e2e":s,tabIndex:-1,children:(0,p.jsx)(Za,{size:"small",variant:"secondary",label:t(n),trailingIcon:c&&(0,p.jsx)(Eo.Tyj,{autoMirror:!0,size:"14"}),"aria-label":null!=d?d:t(n),role:"listitem"})})}):null})),Tl=(0,o.memo)((function(e){const t=(0,C.s)(),{nestedMenu:n,text:i,onClick:a,e2eTag:l,ariaLabel:r}=e,[,{changeMoreNestedMenu:s}]=(0,fa.K5)((e=>({moreDrawerNestedMenu:e.moreDrawerNestedMenu})),ue.bN),d=(0,o.useCallback)((e=>{null==a||a(e),s(n)}),[s,n,a]),c=(0,wl.B)(d);return(0,p.jsx)(Ya,{children:(0,p.jsx)(Za,{size:"small",variant:"secondary",label:t(i),onClick:d,onKeyDown:c,trailingIcon:(0,p.jsx)(Eo.aL3,{autoMirror:!0,size:"16",color:"UIShapeNeutral2"}),"data-e2e":l,"aria-label":null!=r?r:t(i),role:"listbox"})})})),Il=(0,o.memo)((function(e){const t=(0,C.s)(),{text:n,onClick:i,onKeyDown:o,e2eTag:a,ariaLabel:l,selected:r}=e;return(0,p.jsx)(Ya,{children:(0,p.jsx)(Za,{size:"small",variant:"secondary",label:t(n),onClick:i,onKeyDown:o,trailingIcon:r&&(0,p.jsx)(Eo.Tyj,{autoMirror:!0,size:"14"}),"data-e2e":a,"aria-label":null!=l?l:t(n),role:"listbox"})})}));var Pl=n(38739),Dl=n(5321),El=n(72241),Bl=n(243),Ol=n.n(Bl),Al=n(67823),Rl=n(89076),Ml=n(42832),Fl=n(22884),Nl=n(30615),Ul=n(95481),$l=n(33399),zl=n(75792),ql=n(99789),Wl=n.n(ql);const Hl=(0,o.memo)((function(){const e=(0,C.s)(),{pathname:t,search:n}=(0,f.useLocation)(),i=(0,x.U)((()=>["searchVideoForLoggedin"]),[]),[{showModal:a,modalType:l},{setShowModal:r,setModalType:s}]=tl((e=>({showModal:e.showModal,modalType:e.modalType}))),d={loginPath:zl.tH.linkPhoneOrEmail,isLinkPhoneOrEmail:!0},c=(0,Ae.K)(d,void 0,!0),u=(0,o.useCallback)((()=>{try{r(!1),c()}catch(e){}}),[r,c]),h=(0,o.useCallback)((()=>{s(2),bl.z.logoutNotify({enter_method:"link_phone_number"})}),[s]),g=(0,o.useCallback)((()=>{r(!1),bl.z.logoutCancel(2===l||1===l?{enter_method:"link_phone_number"}:{})}),[r,l]),m=(null==i?void 0:i.searchVideoForLoggedin)&&[L.$T.searchHome(),L.$T.searchVideo()].includes(t)||[L.$T.messages(),L.$T.upload()].includes(t),v=(0,gn.stringify)(Wl()((0,gn.parse)(n),"q","t","showLogin","loginType")),_=v?`?${v}`:"",b=`https://www.tiktok.com${L.$T.foryou()}${_}`,y=(0,o.useCallback)((()=>"undefined"==typeof window?"":`${(0,Rn.AF)()}${_}`),[_]),w=(0,o.useCallback)((()=>{(0,Q._S)(Fl.pF)&&(0,Q.sc)(Fl.pF),(0,Q._S)(Fl.Jq)&&(0,Q.sc)(Fl.Jq),(0,Nl.iM)(m?b:y(),2===l||1===l?{enter_method:"link_phone_number"}:{})}),[b,y,m,l]);return(0,p.jsx)(Ul.aF,{visible:a,onClose:()=>r(!1),maskCloseable:!0,cancelMouseLeaveBubble:!0,children:1===l?(0,p.jsxs)($l.h0,{children:[(0,p.jsx)(Ml.F,{size:40}),(0,p.jsx)($l.nm,{children:e("login_fb_noLonger_LogInEase")}),(0,p.jsx)($l.aX,{children:e("login_fb_noLonger_LinkPhoneNumberReminder")}),(0,p.jsx)($l.iZ,{size:"small",onClick:u,children:e("login_fb_noLonger_LinkPhone")}),(0,p.jsx)($l.iZ,{size:"small",onClick:h,children:(0,p.jsxs)("span",{style:{color:"rgba(255, 76, 58, 1)"},children:[" ",e("Log out")," "]})})]}):(0,p.jsxs)($l.RA,{children:[(0,p.jsx)($l.C6,{children:e("Log_out_sheet_2")}),2===l&&(0,p.jsx)($l.rI,{children:e("login_fb_confirmLogOut_body")}),(0,p.jsxs)($l.rs,{children:[(0,p.jsx)($l.AR,{size:"small",onClick:g,children:e(2===l?"login_fb_confirmLogOut_stay_cta":"Cancel")}),(0,p.jsx)($l.AR,{size:"small",buttonTheme:"line",onClick:w,children:e("Log out")})]})]})})}));var Vl=n(6986),Kl=n(42712);const Jl=(0,o.memo)((function(){const{user:e}=(0,d.L$)((0,ve.W)((()=>["user"]),[])),{moreDrawerNestedMenu:t}=(0,fa.Ap)((e=>({moreDrawerNestedMenu:e.moreDrawerNestedMenu})),ue.bN),n=(0,o.useRef)(!1);n.current=(0,Kl.Y)(),(0,o.useEffect)((()=>{T.t.handleEntranceShow({enter_method:"banner"}),Vl.W.handleShowEntrance(),jl.d.handleProfileHoveShow(n.current),Dl.U.handleDarkModeShow()}),[]);const i=!!(null==e?void 0:e.hasPromoteEntry);return(0,o.useEffect)((()=>{i&&0===t&&xt.f.sendEvent("Promote_entrance_show",{enter_from:"menu_creator_tool"})}),[t,i]),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(Hl,{})})}));var Xl=n(13990);const Gl=[6,1,10,8,0,2,7,3,11,4,5,9],Yl=[7,4,3],Zl=()=>{var e,t,n;const{user:i}=(0,d.L$)((0,ve.W)((()=>["user"]),[])),{pathname:a}=(0,f.useLocation)(),l=[];(null==i?void 0:i.analyticsOn)&&!i.proAccountInfo.businessSuiteEntrance&&l.push(0);const r=(0,x.U)((()=>["searchVideoForLoggedin","studioDownloadEntrance","liveStudioEnable","liveAnchorEntrance"]),[]),s=(0,Kl.Y)();!(0,o.useMemo)((()=>a===kl.vI.studioDownload),[a])&&(null===(e=null==r?void 0:r.liveAnchorEntrance)||void 0===e?void 0:e.liveStudio)&&!s&&l.push(3),(null==i?void 0:i.hasPromoteEntry)&&l.push(4);const c=null===(t=null==r?void 0:r.liveAnchorEntrance)||void 0===t?void 0:t.liveCenter;(0,o.useEffect)((()=>{c&&fn.Xg.handleLiveCenterShow({anchor_id:null==i?void 0:i.uid})}),[c,null==i?void 0:i.uid]);const{isElectronApp:u}=(0,_.B)();return c&&!u&&l.push(1),(null===(n=null==r?void 0:r.liveAnchorEntrance)||void 0===n?void 0:n.creatorHub)&&!u&&l.push(2),[4,0,1,2,3].filter((e=>l.includes(e)))},Ql=e=>"href"in e?(0,p.jsx)(Ll,Object.assign({},e)):"nestedMenu"in e?(0,p.jsx)(Tl,Object.assign({},e)):(0,p.jsx)(Il,Object.assign({},e)),er=(0,o.memo)((function(e){var t;const{disableToggleTheme:n}=e,i=(0,C.s)(),{language:a}=null!==(t=(0,ve.W)((()=>["language"]),[]))&&void 0!==t?t:{},[{moreDrawerNestedMenu:l},{changeMoreNestedMenu:r}]=(0,fa.K5)((e=>({moreDrawerNestedMenu:e.moreDrawerNestedMenu})),ue.bN),c=Sl(),u=Cl(),g=(e=>{const{disableToggleTheme:t}=e,{isElectronApp:n}=(0,_.B)(),{value:i,currentThemeOption:a,setCurrentThemeOption:l}=(0,o.useContext)(El.xm),r=(0,hn.Nj)(Pl.Gs);(0,o.useEffect)((()=>{r.setIsDarkMode(i)}),[r,i]);const s=(0,o.useCallback)((e=>{t||(Dl.U.handleDarkModeClick(),n&&Ol().app.themeChange({isDark:i}),Al.A.set(vn.HF,"1",vn.Ah),null==l||l(e))}),[t,n,l,i]);return{0:{text:"web_dark_mode_automatic",onClick:()=>s("auto"),onKeyDown:(0,wl.B)((()=>s("auto"))),selected:"auto"===a},1:{text:"pc_web_dark_mode",onClick:()=>s("dark"),onKeyDown:(0,wl.B)((()=>s("dark"))),selected:"dark"===a},2:{text:"pc_web_light_mode",onClick:()=>s("light"),onKeyDown:(0,wl.B)((()=>s("light"))),selected:"light"===a},3:{text:"pc_web_device_theme",onClick:()=>s("system"),onKeyDown:(0,wl.B)((()=>s("system"))),selected:"system"===a}}})({disableToggleTheme:n}),m=(()=>{const{pathname:e,search:t}=(0,f.useLocation)(),n=(0,Rl.K)(),i=(0,o.useCallback)((i=>()=>{let o;o=(0,b.Iz)(e)?`/${i}`:(0,gn.stringifyUrl)({url:e,query:Object.assign(Object.assign({},(0,gn.parse)(t)),{lang:i})}),n({lang:i,url:o})}),[e,n,t]),a=wl.B;return dl.wX.reduce(((e,t)=>(e[t.value]={text:t.label,onClick:i(t.value),onKeyDown:a(i(t.value))},e)),{})})(),v={3:i("more"),0:i(c[2].text),1:i(c[3].text),2:i("Language")},x=(0,o.useCallback)((()=>{if(3!==l)return(0,p.jsx)(Xa,{shape:"capsule",variant:"secondary",label:"",leadingIcon:(0,p.jsx)(Ja,{children:(0,p.jsx)(Eo.pdK,{size:"12",autoMirror:!0})}),onClick:()=>r(3),"aria-label":i("Back"),role:"button"})}),[r,l,i]),y=(()=>{const{user:e}=(0,d.L$)((0,ve.W)((()=>["user"]),[])),t=Yl,{pathname:n}=(0,f.useLocation)();e&&t.push(11,9),(null==e?void 0:e.hasCollectionsAccess)&&t.push(10);const{switchedType:i}=(0,h.P)(Xl.Eq,{selector:e=>({switchedType:e.switchedType}),dependencies:[]});(null==e?void 0:e.proAccountInfo.businessSuiteEntrance)&&"personal_account"!==i&&t.push(0);const{isElectronApp:a}=(0,_.B)(),{isVideoDetailExperiment:l}=(0,s.ac)();(l||a)&&t.push(5);const r=(0,hn.Nj)(ol.y_),c=(0,o.useMemo)((()=>(0,w.sw)(n)),[n]),[{atomState:u}]=(0,pl.I)(hl.v),{rechargeEntryPermission:p,isWebRechargedBefore:g}=u,m=p&&!c,v=(0,o.useCallback)((()=>{r.handleLiveWebGetCoinShow({show_page:"setting",is_web_recharged_before:g?"yes":"no",request_page:"webapp",style:"icon_and_text"})}),[r,g]);(0,o.useEffect)((()=>{m&&v()}),[m,v]),m&&!a&&t.push(6);const{showEhEntrance:x}=(0,s.$r)({});return x&&t.push(1),Zl().length>0&&t.push(2),(0,Kl.Y)()&&t.push(8),Gl.filter((e=>t.includes(e)))})(),k=Zl(),j=(()=>{const{pathname:e}=(0,f.useLocation)(),t=(0,o.useMemo)((()=>(0,w.sw)(e)),[e]),{isInAutoDarkModeControl:n,isInAutoDarkModeTreatment:i,isInAutoDarkModeExperiment:a}=(0,s.WE)(),l=[1,2];return t||n||l.push(0),t||!a||i||l.push(3),[0,3,1,2].filter((e=>l.includes(e)))})(),S=(0,o.useCallback)((()=>{const e=dl.wX.reduce(((e,t)=>(t.value===a?(e.unshift(t),m[a].selected=!0):e.push(t),e)),[]);switch(l){case 0:return k.map((e=>Ql(u[e])));case 1:return j.map((e=>Ql(g[e])));case 2:return e.map((e=>Ql(m[e.value])));default:return y.map((e=>Ql(c[e])))}}),[k,u,j,g,a,m,y,c,l]);return(0,p.jsxs)(Va,{children:[(0,p.jsxs)(Ka,{children:[x(),(0,p.jsx)(ba.F.H2,{weight:"bold",children:v[l]})]}),(0,p.jsx)(Ga,{"data-e2e":"see-more-popup",id:Qa.hc,role:"listbox",children:S()}),(0,p.jsx)(Jl,{})]})}));var tr=n(70461);const nr=(0,o.memo)((function({isDrawerOpen:e,disableToggleTheme:t}){const n=(0,C.s)(),[{drawerType:i,moreDrawerNestedMenu:a},{closeDrawer:l,completeCloseDrawer:r,completeOpenDrawer:s}]=(0,fa.K5)((e=>({drawerType:e.drawerType,moreDrawerNestedMenu:e.moreDrawerNestedMenu})),ue.bN),{activePage:d}=(0,Da.jx)((e=>e),ue.bN);(0,o.useEffect)((()=>{const e=e=>{"Escape"===e.key&&l()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[l]);const c=(0,o.useCallback)((()=>{switch(i){case 0:return(0,p.jsx)(qa,{});case 1:return(0,p.jsx)(er,{disableToggleTheme:t});case 2:return(0,p.jsx)(Ha,{});default:return(0,p.jsx)(p.Fragment,{})}}),[i]),u=!(1===i&&3!==a||0===i&&"main"!==d);return(0,p.jsxs)(p.Fragment,{children:[e&&(0,p.jsx)(Ma,{onClick:l,onScroll:l,onWheel:l}),(0,p.jsx)(tr.A,{in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:Bo.Fd,classNames:"drawer",onEntered:s,onExited:r,children:(0,p.jsxs)(Oa,{children:[c(),u&&(0,p.jsx)(Aa,{children:(0,p.jsx)(Ra,{onClick:l,label:"",leadingIcon:(0,p.jsx)(Eo.gn,{size:"16"}),variant:"secondary",tabIndex:0,"aria-label":n("Close"),role:"button",shape:"capsule"})})]})})]})}));var ir=n(86702),or=n(93678);const ar={id:"single-logo-dark-3ed5e24d",use:"single-logo-dark-3ed5e24d-usage",viewBox:"0 0 25 42",content:''};function lr(e){const t=(0,o.useContext)(B.X);return(0,o.useLayoutEffect)((()=>(t.add(ar),()=>{t.remove("single-logo-dark-3ed5e24d")})),[]),(0,p.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,p.jsx)("use",{xlinkHref:"#single-logo-dark-3ed5e24d"},void 0)}),void 0)}const rr={id:"single-logo-light-1115c5dd",use:"single-logo-light-1115c5dd-usage",viewBox:"0 0 25 42",content:''};function sr(e){const t=(0,o.useContext)(B.X);return(0,o.useLayoutEffect)((()=>(t.add(rr),()=>{t.remove("single-logo-light-1115c5dd")})),[]),(0,p.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,p.jsx)("use",{xlinkHref:"#single-logo-light-1115c5dd"},void 0)}),void 0)}const dr=(0,I.default)(P.N_,{target:"e1x4ogdq0"})((({isDrawerOpen:e})=>[{fontSize:0},(0,k.jJ)({max:Do.f.Medium,style:{display:"flex",justifyContent:"center",alignItems:"center",marginInlineStart:"unset !important"}}),e&&{display:"flex",justifyContent:"center",alignItems:"center",marginInlineStart:"unset !important"}]),"label:StyledLinkLogo;");dr.defaultProps=Object.assign(Object.assign({},dr.defaultProps),{"data-e2e":"tiktok-logo"});const cr=(0,I.default)(ir.A,{target:"e1x4ogdq1"})((({isDrawerOpen:e})=>[(0,k.jJ)({max:Do.f.Medium,style:{display:"none"}}),e&&{display:"none"}]),"label:StyledLogoLight;"),ur=(0,I.default)(or.A,{target:"e1x4ogdq2"})((({isDrawerOpen:e})=>[(0,k.jJ)({max:Do.f.Medium,style:{display:"none"}}),e&&{display:"none"}]),"label:StyledLogoDark;"),pr=(0,I.default)(lr,{target:"e1x4ogdq3"})((({isDrawerOpen:e})=>[(0,k.jJ)({min:Do.f.Medium,style:!e&&{display:"none"}})]),"label:StyledSingleLogoLight;"),hr=(0,I.default)(sr,{target:"e1x4ogdq4"})((({isDrawerOpen:e})=>[(0,k.jJ)({min:Do.f.Medium,style:!e&&{display:"none"}})]),"label:StyledSingleLogoDark;"),gr=(0,o.memo)((function({style:e={}}){var t,n;const i=(0,C.s)(),{isDark:a}=(0,j.u)(),{pathname:l}=(0,f.useLocation)(),r=(0,S.sL)(),{isDrawerOpen:s,isNavFullOpen:d}=(0,fa.Ap)((e=>({isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),ue.bN),c=(0,S.E7)(void 0,null!==(n=null===(t=(0,L.jN)(l))||void 0===t?void 0:t.name)&&void 0!==n?n:L.eU.foryou),u=(0,o.useCallback)((e=>{(0,b.tO)(l)&&(e.preventDefault(),r.resetRecommendList({}),c()),T.t.handleClickLogo()}),[l,r,c]),h=i("TikTok i18n title"),g=(0,o.useMemo)((()=>a?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(ur,{alt:h,height:42,width:118,isDrawerOpen:s}),(0,p.jsx)("div",{style:{marginInlineStart:d?"0":"1px"},children:(0,p.jsx)(hr,{height:42,width:25,alt:h,isDrawerOpen:s})})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(cr,{height:42,width:118,alt:h,isDrawerOpen:s}),(0,p.jsx)("div",{style:{marginInlineStart:d?"0":"1px"},children:(0,p.jsx)(pr,{height:42,width:25,alt:h,isDrawerOpen:s})})]})),[a,h,s,d]);return(0,p.jsxs)(dr,{to:L.OZ.home,onClick:u,style:Object.assign({position:"relative"},e),ariaLabel:i("accessibilityLabels_forYou_nav_tiktok_btn"),isDrawerOpen:s,children:[g,(0,p.jsx)("strong",{children:h})]})}));var mr=n(89107),vr=n(24728);const fr=(0,o.memo)((function(e){const{onClick:t,onLoad:n,Icon:i,teaReport:a,drawerType:l}=e,r=(0,cl.Ph)(mr.C,{selector:e=>e.searchValue,dependencies:[]}),{placeholder:s}=(0,vr.H1)(!1),[{drawerType:d,isDrawerOpen:c,isNavFullOpen:u},{closeDrawer:h,openDrawer:g}]=(0,fa.K5)((e=>({drawerType:e.drawerType,isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),ue.bN),[m,v]=(0,o.useState)(l===d),f=(0,o.useCallback)((e=>{a(),null==t||t(e),m?h():g(l)}),[m,h,l,t,g,a]),x=(0,o.useCallback)((e=>{m&&"Enter"===e.key?(a(),null==t||t(e),h()):"Tab"!==e.key&&(a(),null==t||t(e),g(l))}),[m,h,l,t,g,a]);return(0,o.useEffect)((()=>{v(l===d)}),[d,l]),(0,o.useEffect)((()=>{null==n||n()}),[n]),(0,p.jsx)(ga,{variant:"secondary",shape:"capsule",label:r||s,onClick:f,onKeyDown:x,leadingIcon:(0,p.jsx)(ua,{children:(0,p.jsx)(i,{})}),isDrawerOpen:c,isNavFullOpen:u,hasUserContent:!!r,"aria-label":s,role:"searchbox"})})),xr=(0,I.default)(Eo.I05,{target:"enq7hkb0"})({width:"12.5rem",height:"2.5rem"},"label:StyledLeftSidePrimaryButton;");var _r=n(466);const br=(0,o.memo)((function(){const e=(0,C.s)(),t=(0,On.b1)(),n=(0,o.useCallback)(((e=!1)=>()=>{const n=(0,Mn.Y)()||(0,Mn.CW)();t.openModal({closeable:!0,isSignup:e,query:{enter_method:"click_top_bar",redirect_url:(0,Rn.Q2)(),last_group_id:n}})}),[t]);return(0,p.jsx)(xr,{id:"header-login-button",label:e("Log In"),onClick:n(!1)})})),yr=(0,o.memo)((function(){const e=(0,C.s)(),t=(0,f.useHistory)(),n=(0,hn.Nj)(ol.y_),[{atomState:i}]=(0,pl.I)(hl.v),{rechargeEntryPermission:a,isWebRechargedBefore:l}=i,r=a,s=(0,o.useCallback)((()=>{n.handleLiveWebGetCoinShow({show_page:"live_page",is_web_recharged_before:l?"yes":"no",request_page:"webapp",style:"icon_and_text"})}),[l,n]);(0,o.useEffect)((()=>{s()}),[s]);const d=(0,o.useCallback)((()=>{n.handleLiveWebGetCoinClick({show_page:"live_page",is_web_recharged_before:l?"yes":"no",request_page:"webapp",style:"icon_and_text"})}),[l,n]),c=(0,o.useCallback)((()=>{t.push(`${ul.I7.coin}?enter_from=web_live_nav`)}),[t]),u=(0,o.useCallback)((()=>{d(),c()}),[d,c]);return r?(0,p.jsx)(xr,{"data-e2e":"LivePage-GetCoin",leadingIcon:(0,p.jsx)(_r.A,{}),label:e("WebApp_coin_recharge_1"),onClick:u}):null})),wr=(0,o.memo)((function(e){var t;const n=null!==(t=e.showRechargeButton)&&void 0!==t&&t,{user:i}=(0,cl.Ph)(r.L,{selector:e=>{var t;return{user:null===(t=e.appContext)||void 0===t?void 0:t.user}},dependencies:[]});return i?n?(0,p.jsx)(yr,{}):null:(0,p.jsx)(br,{})})),kr=(0,o.forwardRef)((function({title:e,loading:t=!0,children:n},i){const o=(0,J._0)((e=>0===e.following.list.length),ue.bN);return(0,p.jsxs)(ye,{bottomBar:!0,ref:i,children:[(0,p.jsx)(ba.F.P1,{"data-e2e":"following-accounts",weight:"medium",style:{padding:"0 8px",marginBottom:"8px"},children:e}),o&&t?Array(1).fill("").map(((e,t)=>(0,p.jsx)(me,{},t))):n]})})),jr=(0,I.default)(Eo.I05,{target:"ecn8j020"})({width:"13rem",height:"2.5rem",marginTop:"0.25rem",paddingLeft:"0 !important",paddingRight:"0 !important",":not(:hover)":{backgroundColor:"unset"},":hover":{backgroundColor:`${Eo.Tj4.UIShapeNeutral4} !important`},"& > :first-of-type":{gap:"1rem",justifyContent:"start",marginInlineStart:"0.25rem",fontWeight:"normal","& > .TUXButton-label":{margin:"unset !important"}}},"label:StyledTUXShowMoreButton;"),Cr=(0,I.default)("div",{target:"ecn8j021"})({width:"28px",height:"28px",display:"flex",alignItems:"center",justifyContent:"center"},"label:StyledArrowDownContainer;"),Sr=(0,I.default)(_e.A,{target:"ecn8j022"})((({up:e})=>[{transition:"all 0.3s",transform:e?"rotate(180deg)":"none",marginInlineStart:"4px"}]),"label:StyledArrowDown;"),Lr=(0,I.default)("ul",{target:"ecn8j023"})({padding:0,margin:0,listStyleType:"none",display:"flex",flexDirection:"column",gap:"0.25rem"},"label:UlAccountList;"),Tr=(0,o.memo)((function(){return(0,p.jsxs)(de,{style:{width:"200px"},children:[(0,p.jsx)(ge.EA.Avatar,{style:{width:32,height:32}}),(0,p.jsxs)(ce,{children:[(0,p.jsx)(ge.EA.Title,{style:{width:107,height:12}}),(0,p.jsx)(ge.EA.Title,{style:{width:66,height:12}})]})]})})),Ir=(0,I.default)(Eo.I05,{target:"e164dpcp0"})({":not(:hover)":{backgroundColor:"unset"},":hover":{backgroundColor:`${Eo.Tj4.UIShapeNeutral4} !important`},minWidth:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",width:"13rem !important",height:"2.75rem !important","& > :first-of-type":{justifyContent:"start",marginInlineStart:"0.25rem","& > .TUXButton-label":{display:"none !important"}}},"label:StyledTUXFollowingAccountButton;"),Pr=(0,I.default)("div",{target:"e164dpcp1"})({display:"flex",flexDirection:"row",alignItems:"center"},"label:DivUserTitleWrapper;"),Dr=(0,I.default)(ba.F.P1,{target:"e164dpcp2"})({maxWidth:"126px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},"label:StyledNicknameText;"),Er=(0,I.default)(ba.F.P1,{target:"e164dpcp3"})({maxWidth:"144px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},"label:StyledUsernameText;"),Br=(0,I.default)(Z.E,{target:"e164dpcp4"})([{flexGrow:1,display:"flex",flexDirection:"column",alignItems:"start",":hover":{textDecoration:"none"}}],"label:StyledUserContentLink;"),Or=(0,I.default)(ne.i,{target:"e164dpcp5"})({margin:"auto",marginInlineEnd:"12px",height:"100% !important"},"label:StyledUserAvatar;"),Ar=(0,o.memo)((function(e){const t=(0,C.s)(),{itemType:n,uniqueId:i,e2ePrefix:a="",enterMethod:l="click_panel",index:r,isSuggestedContent:s}=e,c=(0,pe.nW)((e=>{const t=e.users[i];if(!t)return null;const{verified:n,avatarThumb:o,secUid:a,nickname:l,roomId:r,id:s,relation:d}=t;return{avatarThumb:o,secUid:a,verified:n,nickname:l,roomId:r,id:s,uniqueId:i,relation:d}}),ue.bN),{secUid:u,verified:h,nickname:g,relation:m}=(0,d.L$)(c),v=(0,G.r$)(c),{isShowLive:f}=v,x=f?Y.B:Z.E,_=(0,o.useRef)(null),b=(0,G.AL)({user:c,enterMethod:l}),y=(0,o.useMemo)((()=>{if(f){let e="";return e="following"===n?"following":"suggest"===n?"recommend":"others",{enter_from_merge:e,enter_method:"suggested_others_photo"}}return{}}),[f,n]);(0,G.Fu)({isShowLive:f,autoReport:!0,once:!0,enterMethod:"suggested_others_photo",reportTrigger:f,reportValidator:()=>void 0!==m,liveExtraParams:f?y:{},user:c});const w=(0,o.useCallback)((()=>{f&&ee.q.handleEnterUser({to_user_id:null==c?void 0:c.id,enter_method:l}),T.t.handleClickNav({target:f?"live_detail":"others_homepage",item_list_index:r,from_item_list:s?"suggested_for_you":"following_accounts"})}),[f,null==c?void 0:c.id,l,s,r]),k=(0,o.useCallback)((e=>{var t;13===e.keyCode&&(null===(t=_.current)||void 0===t||t.linkClick()),32===e.keyCode&&e.preventDefault()}),[]),j=(0,o.useCallback)((e=>{w(),(0,Q.dG)(e)}),[w]);return(0,p.jsx)(Ir,{label:"",onKeyDown:k,leadingIcon:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(x,{uniqueId:i,secUid:u,teaParams:b,"data-e2e":`${a}-user-avatar`,ref:_,onClick:j,extraQuery:y,tabIndex:-1,ariaLabel:t("accessibilityLabels_link_userProfile",{username:null==c?void 0:c.nickname}),children:(0,p.jsx)(Or,Object.assign(Object.assign({liveTheme:6,size:28},v),{isShowLiveTag:!1}))}),(0,p.jsxs)(Br,{uniqueId:i,secUid:u,teaParams:b,onClick:j,tabIndex:-1,ariaLabel:t("accessibilityLabels_link_userProfile",{username:null==c?void 0:c.nickname}),children:[(0,p.jsxs)(Pr,{children:[(0,p.jsx)(Dr,{weight:"medium","data-e2e":`${a}-user-title`,children:g}),h&&(0,p.jsx)("div",{"data-e2e":`${a}-user-bluev`,children:(0,p.jsx)(te.s,{width:14,height:14})})]}),(0,p.jsx)(Er,{weight:"normal","data-e2e":`${a}-user-desc`,children:i})]})]}),variant:"secondary"})})),Rr=(0,o.memo)((function(){const e=(0,C.s)(),[t,n]=(0,o.useState)(!1),[{authorIdList:i,loading:a,hasMore:l,totalLength:r},s]=(0,J.Gd)((e=>{const{list:n,loading:i,hasMore:o}=e.following;return{authorIdList:t?n:n.slice(0,5),loading:i,hasMore:o,totalLength:n.length}}),((e,t)=>H()(e,t))),d=(0,o.useRef)(0);d.current=i.length;const{needRefresh:c,setPathname:u,pathname:h}=(0,X.$q)();(0,o.useEffect)((()=>{c&&s.getFollowingList({count:5}),u(h)}),[s,c,5]);const{setPlaying:g}=(0,V.S4)(),m=(0,o.useRef)(!1),v=(0,o.useCallback)((()=>{m.current=!0,l&&t||n(!t),l&&s.getFollowingList({count:5}),!t||(l||!t)&&T.t.handleClickNav({target:"see_more"})}),[s,l,t,5,g]),f=(0,o.useRef)([]),x=(0,o.useCallback)((e=>t=>{f.current[e]=t}),[]),{shouldShowToggle:_,showMoreText:b,isSeeMore:y}=xe({hasMore:l,isShowingMore:t,totalLength:r,showNum:5,loading:a}),w=m.current&&y&&l||!l&&!y,k=(0,o.useCallback)((()=>{var e;v(),(l&&y||!l&&y)&&(null===(e=f.current[d.current-1])||void 0===e||e.setFocus())}),[v,l,y]),j=(0,K.x)(k,[v,l,y]),S=e("desktop_logged_in_profile");let L=0;return(0,p.jsxs)(kr,{loading:a,title:S,children:[(0,p.jsx)(Lr,{children:r?i.map(((e,t)=>e?(0,p.jsx)("li",{children:(0,p.jsx)(Ar,{index:t-L,ref:x(t-L),uniqueId:e,e2ePrefix:"following",itemType:"following",enterMethod:"click_navigation"})},e):(L++,null))):(0,p.jsx)(ba.F.P3,{style:{padding:"0 8px"},children:e("sidenav_follow_hint")})}),a?(0,p.jsx)("div",{style:{marginTop:"4px"},children:(0,p.jsx)(Tr,{})}):null,_&&(0,p.jsx)(jr,{"data-e2e":"following-see-all",onClick:v,onKeyDown:j,"aria-expanded":w,"aria-labelledby":"side-nav-following-see-all",label:b,variant:"secondary",leadingIcon:(0,p.jsx)(Cr,{children:(0,p.jsx)(Sr,{up:!y,width:15,height:15})})})]})})),Mr=(0,I.default)("div",{target:"e18xsmh0"})((({theme:{colors:e}})=>[{position:"relative",borderTop:`1px solid ${e.LineSecondary}`,paddingTop:"16px",width:"12.5rem"}]),"label:DivFooterContainer;"),Fr=e=>[(0,k.zy)({theme:e,color:"TextTertiary",fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P4",isLink:!0}),{display:"inline-block",marginRight:"6px",marginTop:"5px"}],Nr=(0,I.default)("span",{target:"e18xsmh1"})((({theme:e})=>Fr(e)),"label:SpanCopyright;");Nr.defaultProps=Object.assign(Object.assign({},Nr.defaultProps),{"data-e2e":"copyright"});const Ur=(0,I.default)("div",{target:"e18xsmh2"})({marginBottom:"8px",position:"relative"},"label:DivMoreContainer;"),$r=(0,I.default)("span",{target:"e18xsmh3"})((({theme:e})=>Fr(e)),{cursor:"pointer"},"label:SpanMoreText;");$r.defaultProps=Object.assign(Object.assign({},$r.defaultProps),{"data-e2e":"more-link"});const zr=(0,I.default)("div",{target:"e18xsmh4"})({padding:"15px 16px 20px",width:"fit-content",maxWidth:"200px"},"label:DivMorePopupWrapper;"),qr=(0,I.default)(P.N_,{target:"e18xsmh5"})((({theme:e})=>[(0,k.zy)({theme:e,typography:"P2",fontWeight:"semiBold"}),{display:"block",":hover":{textDecoration:"none",color:e.colors.Primary},"& + &":{marginTop:"20px"}}]),"label:StyledMoreLink;"),Wr=(0,I.default)("div",{target:"e18xsmh6"})((({theme:e})=>(0,k.zy)({theme:e,color:"TextQuaternary",fontFamily:"TikTokFont",fontWeight:"semiBold"})),{display:"flex",alignItems:"center",cursor:"pointer",fontSize:"12px",position:"relative",bottom:"2px",marginBottom:"20px"},"label:DivSeeMoreNav;"),Hr=(0,I.default)(_e.A,{target:"e18xsmh7"})((({theme:{direction:e}})=>[(0,k.mp)({direction:e,marginStart:"6px"}),{width:"11px"}]),"label:StyledChevronDownFill;"),Vr=(0,I.default)("h4",{target:"e18xsmh8"})((({first:e,isCollapsible:t})=>({fontSize:"15px",lineHeight:"22px",marginTop:e?0:"5px",cursor:t?"pointer":"unset"})),(({theme:e,isActive:t})=>(0,k.zy)({theme:e,color:t?"TextPrimary":"TextTertiary",fontFamily:"TikTokDisplayFont",fontWeight:"bold"})),"label:H4LinkListHeader;"),Kr=(0,o.memo)((function({}){const e=(0,C.s)(),{active:t,handleMouseEnter:n,handleMouseLeave:i}=(0,Yi.K)(),{isTTP:a}=(0,d.L$)((0,x.U)((()=>["isTTP"]),[])),{language:l,region:s}=(0,h.P)(r.L,{selector:e=>{var t,n;return{language:null===(t=e.appContext)||void 0===t?void 0:t.language,region:null===(n=e.appContext)||void 0===n?void 0:n.region}},dependencies:[]}),{$legalList:c}=(0,h.P)(To.$,{selector:t=>{var n,i;return{$legalList:null===(i=null===(n=t.bizContext)||void 0===n?void 0:n.navList.find((({title:t})=>t===e("Legal"))))||void 0===i?void 0:i.children}},dependencies:[]}),{pageList:g,programList:m,legalList:v}=(0,u.Db)(),{isBot:f}=(0,d.L$)((0,x.U)((()=>["isBot"]),[])),[_,b]=(0,o.useState)(null!=f&&f),[y,w]=(0,o.useState)(null),k=e=>{w(y===e?null:e),xt.f.sendEvent("click_footer_button",{footer_button:null!=e?e:""})},j=e=>y===e,S=`${(new Date).getFullYear()} TikTok`,L=(null!=c?c:[]).filter((e=>-1===(null==v?void 0:v.children.findIndex((({key:t})=>t===e.key)))||"copyright-policy"===e.key));if("DE"===(null==s?void 0:s.trim().toUpperCase())&&L.splice(3,0,{href:"https://www.tiktok.com/transparency/de-de/german-state-treaty/",key:"MStV",title:"Transparenz (MStV)"}),"AT"===(null==s?void 0:s.trim().toUpperCase())&&L.push({href:"https://www.tiktok.com/transparency/de-de/koplg-about/",key:"kopig",title:"KoPi-G"}),"IL"===(null==s?void 0:s.trim().toUpperCase())&&("he-IL"===(null==l?void 0:l.trim())||"en"===(null==l?void 0:l.trim()))){const e="he-IL"===l.trim()?"כדי לראות את הסכם הפשרה בת\"צ 67824-07-20 שהרבני נ' .TikTok Pte. Ltd, לחץ כאן.":"View the settlement agreement in CA 67824-07-20 Shaharabani v. TikTok Pte. Ltd.",t=(a?"https://lf16-tiktok-web.tiktokcdn-us.com/obj/tiktok-web-tx/tiktok/webapp/main/webapp-desktop/":"https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok/webapp/main/webapp-desktop/")+"Shaharabani Signed Settlement Agreement.pdf";L.push({key:"il-settlement",title:e,href:t})}return(0,p.jsxs)(Mr,{children:[g&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(Vr,{first:!0,isActive:j("Company"),isCollapsible:!0,onClick:()=>k("Company"),children:g.title}),j("Company")&&(0,p.jsx)(to,{navList:g.children,e2e:"page-link",pageListType:"Company"})]}),m&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(Vr,{isCollapsible:!0,isActive:j("Program"),onClick:()=>k("Program"),children:m.title}),j("Program")&&(0,p.jsx)(to,{navList:m.children,e2e:"program-link",pageListType:"Program"})]}),v&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(Vr,{isCollapsible:!0,isActive:j("Legal"),onClick:()=>k("Legal"),children:v.title}),j("Legal")&&(0,p.jsx)(to,{navList:v.children,e2e:"legal-link",pageListType:"Legal"})]}),f&&!_&&(0,p.jsxs)(Wr,{onClick:()=>b(!0),children:[e("feed_caption_see_more"),(0,p.jsx)(Hr,{})]}),L.length>0&&(0,p.jsx)(Ur,{children:(0,p.jsxs)($r,{onMouseEnter:n,onMouseLeave:i,children:[e("more"),(0,p.jsx)(no.z,{active:t,placement:"topLeft",verticalOffset:5,children:(0,p.jsx)(zr,{children:L.map((({title:e,href:t})=>(0,p.jsx)(qr,{forceSSR:!0,to:t,target:"_blank",children:e},e)))})})]})}),(0,p.jsxs)(Nr,{children:["© ",S]})]})})),Jr=(0,o.memo)((function(){const{user:e}=(0,cl.Ph)(r.L,{selector:e=>{var t;return{user:null===(t=e.appContext)||void 0===t?void 0:t.user}},dependencies:[]}),{region:t}=(0,d.L$)((0,ve.W)((()=>["region"]),[])),[,n]=(0,pl.I)(hl.v);return(0,o.useEffect)((()=>{var i;const o=`${null===window||void 0===window?void 0:window.location.host}${null===window||void 0===window?void 0:window.location.pathname}`;n({uid:null!==(i=null==e?void 0:e.uid)&&void 0!==i?i:"",region:t,source:o})}),[e,t]),(0,p.jsx)(p.Fragment,{})})),Xr=(0,o.memo)((function({showRechargeButton:e,reportBotImpression:t,deviceType:n,handleItemClick:i,shouldTransparent:a,shouldDisableToggleTheme:l}){const r=(0,ve.W)((()=>["user"]),[]),s=null==r?void 0:r.user,{isDrawerOpen:d,isNavFullOpen:c}=(0,fa.Ap)((e=>({isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),ue.bN),{completeCloseDrawer:u}=(0,fa.PS)();return(0,o.useEffect)((()=>{u()}),[u]),(0,p.jsxs)(Oo,{children:[(0,p.jsxs)(Ao,{$isNavFullOpen:c,$shouldTransparent:a,children:[(0,p.jsx)(qo,{$isDrawerOpen:d,$shouldTransparent:a}),(0,p.jsxs)(Ro,{children:[(0,p.jsx)(Mo,{$isNavFullOpen:c,children:(0,p.jsx)(gr,{})}),(0,p.jsx)(Fo,{$isNavFullOpen:c,children:(0,p.jsx)(fr,Object.assign({},Zo))})]}),(0,p.jsxs)(No,{children:[(0,p.jsx)(Pa,{}),(0,p.jsxs)($o,{$isDrawerOpen:d,children:[(0,p.jsx)(wr,{showRechargeButton:e}),s&&!e&&(0,p.jsx)(Rr,{})]}),e&&(0,p.jsxs)(Uo,{$isNavFullOpen:c,children:[(0,p.jsx)(w.QI,{deviceType:n,handleItemClick:i,isDrawerOpen:d}),(0,p.jsx)(w.$O,{deviceType:n,handleItemClick:i,isDrawerOpen:d})]}),(0,p.jsx)(zo,{$isDrawerOpen:d,children:(0,p.jsx)(Kr,{reportBotImpression:t})})]}),(0,p.jsx)(nr,{isDrawerOpen:d,disableToggleTheme:l})]}),(0,p.jsx)(Jr,{})]})}));var Gr=n(81659),Yr=n(12731);const Zr=[L.OZ.messages,L.OZ.setting,L.OZ.settingBlockList,L.OZ.feedback,L.OZ.feedbackReport,L.OZ.feedbackHistory,L.OZ.upload,L.OZ.download,...L.OZ.downloadWithLang],Qr=()=>{const[{appContext:e,isSideNavActive:t},n]=(0,g.S)(r.L,{selector:e=>({appContext:e.appContext,isSideNavActive:e.sideNavActive}),dependencies:[]}),p=(0,u.oY)(),{showFullSideNav:h}=(0,s.vY)(),m=(0,a.W5)(Zr)||p,{language:v="en"}=(0,d.L$)(e),f=(0,o.useRef)(null),{sideNavWidth:x}=(0,Gr.vV)(),_=(0,o.useCallback)((()=>{n.setSideNavActive(!1)}),[n]),{popupHeight:b}=(0,c.H)(),y=(0,i.Y)(l.Ay,{timeout:300,in:t,nodeRef:f,children:e=>(0,i.FD)("div",{ref:f,children:[(0,i.Y)(Yr.is,{status:e,onClick:_}),(0,i.Y)(Po,{extraWidth:x,extraTop:b,transStatus:e,lang:v})]})}),w=(0,o.useCallback)((()=>h?(0,i.Y)(Xr,{}):(0,i.Y)(Yr.V$,{children:y})),[h]);return m?(0,i.Y)(i.FK,{}):w()}},87802:(e,t,n)=>{n.d(t,{Jz:()=>l,R4:()=>c,S4:()=>r,VN:()=>u,i3:()=>d});var i=n(71111),o=n(31209);const a=(0,i.atom)({mute:!0,playing:!0,volume:0,currentCaption:null,enableCaption:!1}),{useServiceState:l,useServiceDispatchers:r,useAtomService:s}=(0,o.i)(a,((e,t)=>({setMute(e){t(a,(t=>Object.assign(Object.assign({},t),{mute:e})))},setVolume(e){t(a,(t=>Object.assign(Object.assign({},t),{volume:Math.min(Math.max(0,e),1)})))},setPlaying(e){t(a,(t=>Object.assign(Object.assign({},t),{playing:e})))},setCurrentCaption(e){t(a,(t=>Object.assign(Object.assign({},t),{currentCaption:e})))},setEnableCaption(e){t(a,(t=>Object.assign(Object.assign({},t),{enableCaption:e})))}}))),d=()=>l((e=>e.mute)),c=()=>l((e=>e.volume)),u=()=>l((e=>e.playing))},56111:(e,t,n)=>{n.d(t,{cF:()=>E,Nl:()=>D,Gd:()=>I,_0:()=>P});var i=n(71111),o=n(31209),a=n(14374),l=n(22113),r=n.n(l),s=n(84908),d=n(39785),c=n(78662),u=n(39228),p=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function l(e){try{s(i.next(e))}catch(e){a(e)}}function r(e){try{s(i.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,r)}s((i=i.apply(e,t||[])).next())}))};const h=(0,d.M)({csr:function(e,t){return p(this,void 0,void 0,(function*(){let n=28,i=17;return(0,c.gq)(e)?n=50:(0,c.cj)(e)?(n=30,i=15):n=30,(yield u.hd.get("/node/share/discover",{query:{noUser:"0",count:n,scene:i,pageId:t,userId:t}})).body[0].exploreList}))}}),g={list:[],hasMore:!0,loading:!0,maxCursor:0,minCursor:0,total:0,statusCode:0};function m(e,t,n){const{list:i,maxCursor:o,minCursor:a,total:l,statusCode:s,hasMore:d}=n;e(t,(e=>Object.assign(Object.assign({},e),{list:r()(e.list.concat(i)),maxCursor:o,minCursor:a,total:null!=l?l:e.total,statusCode:null!=s?s:e.statusCode,hasMore:null!=d?d:-1!==o,loading:!1})))}function v(e,t,n,i,o){var a,l,r,d,c;return l=this,r=void 0,c=function*(){try{const{count:l,scene:r,isNonPersonalized:d,secUid:c}=i,{list:h,maxCursor:g=0,minCursor:v=0}=e(n);t(n,(e=>Object.assign(Object.assign({},e),{loading:!0})));const f=yield function(e){return p(this,void 0,void 0,(function*(){return u.hd.get("/api/user/list/",{query:e,baseUrlType:2})}))}({scene:r,maxCursor:g,minCursor:v,count:l,isNonPersonalized:d,secUid:c});!function({set:e,atom:t,response:n,idList:i,useSorting:o=!1}){const{maxCursor:a,minCursor:l,userList:r=[],total:d,statusCode:c,hasMore:u}=n,p=(0,s.Gp)();p.multiSetUser(r.map((({user:e})=>e))),p.multiSetUserStats(r.map((({user:e,stats:t})=>({uniqueId:e.uniqueId,stats:t})))),m(e,t,{list:o?r.sort(((e,t)=>{var n,i,o,a;return(null!==(i=null===(n=t.user.roomId)||void 0===n?void 0:n.length)&&void 0!==i?i:0)-(null!==(a=null===(o=e.user.roomId)||void 0===o?void 0:o.length)&&void 0!==a?a:0)})).map((({user:{uniqueId:e}})=>e)).filter((e=>i.indexOf(e)<0)):r.map((({user:{uniqueId:e}})=>e)).filter((e=>i.indexOf(e)<0)),maxCursor:a,minCursor:l,total:d,statusCode:c,hasMore:u})}({set:t,atom:n,response:f,idList:h,useSorting:null!==(a=null==o?void 0:o.useSorting)&&void 0!==a&&a})}catch(e){}},new((d=void 0)||(d=Promise))((function(e,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function i(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof d?o:new d((function(e){e(o)}))).then(n,i)}o((c=c.apply(l,r||[])).next())}))}function f(e){const t=e.toLowerCase().replace(/([-_][a-z])/g,(e=>e.toUpperCase().replace("-","").replace("_",""))),n=(0,a._)((0,i.atom)(g),{rehydrationKey:`webapp.accountList.${t}`});return n.debugLabel=`${t}ListAtom`,n}var x=n(18499),_=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function l(e){try{s(i.next(e))}catch(e){a(e)}}function r(e){try{s(i.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,r)}s((i=i.apply(e,t||[])).next())}))};const b=f("following"),y=f("follower"),w=f("suggest"),k=f("friend"),j=f("others_following"),C=f("others_follower"),S=f("suggested_follow"),L=(0,i.atom)({following:b,follower:y,suggest:w,friend:k,others_following:j,others_follower:C,suggested_follow:S}),T=(0,i.atom)((e=>({following:e(b),follower:e(y),suggest:e(w),friend:e(k),others_following:e(j),others_follower:e(C),suggested_follow:e(S)})),((e,t,n)=>{t(e(L)[n.key],n.data)}));T.debugLabel="accountListAtom";const{useAtomService:I,useServiceState:P,useServiceDispatchers:D,getStaticApi:E}=(0,o.i)(T,((e,t)=>({resetList(e){t(T,{key:e.key,data:g})},resetUserFollowInfo(){(0,x.unstable_batchedUpdates)((()=>{t(C,g),t(j,g)}))},getRecommendList(e){return _(this,void 0,void 0,(function*(){try{const{pathname:n,userId:i=""}=e,o=yield h(n,i);t(w,g);const a=o.map((({cardItem:e})=>({avatarLarger:e.cover,avatarMedium:e.cover,avatarThumb:e.cover,id:e.id,nickname:e.title,relation:e.extraInfo.relation,signature:e.description,uniqueId:e.subTitle.replace(/^@/,""),verified:e.extraInfo.verified,secUid:e.extraInfo.secUid,roomId:e.extraInfo.roomId}))).sort(((e,t)=>{var n,i;return(null!==(n=null==e?void 0:e.relation)&&void 0!==n?n:0)-(null!==(i=null==t?void 0:t.relation)&&void 0!==i?i:0)})).sort(((e,t)=>{var n,i,o,a;return(null!==(i=null===(n=null==t?void 0:t.roomId)||void 0===n?void 0:n.length)&&void 0!==i?i:0)-(null!==(a=null===(o=null==e?void 0:e.roomId)||void 0===o?void 0:o.length)&&void 0!==a?a:0)}));(0,s.Gp)().multiSetUser(a),m(t,w,{list:a.map((({uniqueId:e})=>e)),hasMore:!1})}catch(e){}}))},getFollowingList(n){return _(this,void 0,void 0,(function*(){yield v(e,t,b,{count:n.count,scene:21},{useSorting:!0})}))},getFollowerList(n){return _(this,void 0,void 0,(function*(){yield v(e,t,y,{count:n.count,scene:67})}))},getFriendsList(n){var i;return _(this,void 0,void 0,(function*(){yield v(e,t,k,{count:null!==(i=n.count)&&void 0!==i?i:30,scene:150})}))},getSuggestedList(n){var i;return _(this,void 0,void 0,(function*(){yield v(e,t,S,{count:null!==(i=n.count)&&void 0!==i?i:30,isNonPersonalized:n.isNonPersonalized,scene:151})}))},getTargetFollowerList(n){var i;return _(this,void 0,void 0,(function*(){yield v(e,t,C,{count:null!==(i=n.count)&&void 0!==i?i:30,secUid:n.secUid,scene:67})}))},getTargetFollowingList(n){var i;return _(this,void 0,void 0,(function*(){yield v(e,t,j,{count:null!==(i=n.count)&&void 0!==i?i:30,secUid:n.secUid,scene:21})}))}})))},22972:(e,t,n)=>{n.d(t,{UO:()=>c,kq:()=>d});var i=n(14374),o=n(71111),a=n(31209);const l=(0,i._)((0,o.atom)({uniqueId:void 0}),{rehydrationKey:"webapp.recommendUserList"});l.debugLabel="recommendUserListAtom";const{useAtomService:r,useServiceDispatchers:s,useServiceState:d,getStaticApi:c}=(0,a.i)(l,((e,t)=>({setUniqueId(e){t(l,(t=>Object.assign(Object.assign({},t),{uniqueId:e})))}})))},94914:(e,t,n)=>{n.d(t,{C_:()=>l,m$:()=>s,nF:()=>r});var i=n(71111),o=n(31209);const a=(0,i.atom)({enterForyou:!1});a.debugLabel="videoAsForyouAtom";const{useAtomService:l,useServiceDispatchers:r,useServiceState:s,getStaticApi:d}=(0,o.i)(a,((e,t)=>({setEnterForyou(e){t(a,(t=>Object.assign(Object.assign({},t),{enterForyou:e})))}})))},90217:(e,t,n)=>{n.d(t,{B:()=>o});var i=n(40099);function o({intersectionHandler:e,outerSectionHandler:t,element:n,threshold:o,root:a,rootMargin:l="0px",unobserveAfterIntersect:r,skip:s}){const d=(0,i.useRef)();return(0,i.useEffect)((()=>{if(s)return;const i=n=>{var i;const o=n[0];o.isIntersecting&&e?(e(o),r&&(null===(i=d.current)||void 0===i||i.unobserve(o.target))):!o.isIntersecting&&t&&t(o)};try{const e={rootMargin:l,threshold:o};(null==a?void 0:a.current)&&(e.root=a.current),d.current=new IntersectionObserver(i,e),(null==n?void 0:n.current)&&d.current&&d.current.observe(n.current)}catch(e){console.error(e)}return()=>{var e;null===(e=d.current)||void 0===e||e.disconnect()}}),[n,e,t,o,r,s,l,a]),d}},98819:(e,t,n)=>{n.d(t,{f:()=>i});const i={XSmall:480,Small:768,Medium:1024,Large:1280,XLarge:1440}},12016:(e,t,n)=>{n.d(t,{w:()=>r});var i=n(24643),o=n(40099),a=n(58542),l=n(26263);const r=e=>{const t=(0,l.Y)(e),[n,r]=(0,o.useState)(t.getLocalStorage(!0));return{hideTooltip:t=>{null==t||t(),(0,l.Y)(e).setLocalStorage(!1),r(!1)},OneTimeTooltip:e=>(0,i.jsx)(a.N0Y,Object.assign(Object.assign({},e),{visible:n}))}}},30662:(e,t,n)=>{n.d(t,{tG:()=>s});var i,o,a=n(58632),l=n(38203),r=n(93608);!function(e){e.Share="livesdk_share",e.Report="livesdk_live_user_report",e.ReportSuccess="livesdk_report_success",e.ChatClose="livesdk_comment_close",e.HoverUserCardShow="livesdk_user_card_show",e.Follow="livesdk_follow",e.Take="livesdk_live_action",e.SetupPopShow="livesdk_live_tab_popup_show",e.AnchorEnterRoom="livesdk_anchor_enter_room",e.Show="livesdk_live_show",e.ClickEntrance="livesdk_rec_live_play",e.Unfollow="livesdk_unfollow"}(i||(i={})),function(e){e.LiveCover="live_cover",e.SuggestedOthersPhoto="suggested_others_photo",e.NextIconClick="next_icon_click",e.Others="others",e.VideoHeadBrowser="video_head_browser",e.Creator="creator",e.VideoHead="video_head",e.LiveHead="live_head",e.OthersPhoto="others_photo",e.ClickOneColumnUser="click_main_btn",e.TopLiveCell="top_live_cell",e.VideoLiveCell="video_live_cell",e.FollowingTop="top_window",e.FollowingPreview="live_cover_preview"}(o||(o={}));let s=class{constructor(){this.handleLiveEntranceShow=e=>{r.f.event("livesdk_live_show",e)},this.handleLiveEntranceClick=e=>{r.f.event("livesdk_rec_live_play",e)},this.handleLiveStreamEntranceClick=e=>{r.f.event("livesdk_live_action",Object.assign({live_type:"third_party"},e))}}};s=(0,a.__decorate)([(0,l._)()],s)},95810:(e,t,n)=>{n.d(t,{Hi:()=>a,oe:()=>i});const i="ecom_email";var o;!function(e){e.OrderDetails="ecom_email_redesign_order_details_page",e.LogisticsDetails="ecom_email_redesign_logistics_page",e.OrderRating="ecom_email_redesign_write_review_page",e.RefundDetails="ecom_email_redesign_refund_detail_page",e.RequestRefund="ecom_email_redesign_request_refund",e.Orders="ecom_email_redesign_orders",e.Vouchers="ecom_email_redesign_vouchers",e.ShoppingCart="ecom_email_redesign_shopping_cart",e.CustomerMsg="ecom_email_customer_inbox_chat_detail",e.CustomerMute="ecom_email_customer_inbox_chat_mute",e.CustomerMuteAll="ecom_email_customer_inbox_chat_mute_all",e.ShopTabHomepage="ecom_email_shopping_mall_home_page",e.HalfScreenPDP="ecom_email_shopping_mall_home_pdp",e.HalfScreenDealPage="ecom_email_shopping_mall_channel",e.PDP="ecom_email_product_detail_page",e.CouponAddOnPage="ecom_email_redesign_vouchers_detail",e.PromotionProductList="ecom_email_promotion_products_list"}(o||(o={}));const a={title:{ecom_email_redesign_order_details_page:"email_redesign_webapp_order_details_page_title",ecom_email_redesign_logistics_page:"email_redesign_webapp_logistics_page_title",ecom_email_redesign_write_review_page:"email_redesign_webapp_write_review_page_title",ecom_email_redesign_refund_detail_page:"email_redesign_webapp_refund_detail_page_title",ecom_email_redesign_request_refund:"email_redesign_webapp_request_refund_title",ecom_email_redesign_orders:"email_redesign_webapp_orders_title",ecom_email_redesign_vouchers:"email_redesign_webapp_vouchers_title",ecom_email_redesign_shopping_cart:"email_redesign_webapp_shopping_cart_title",ecom_email_customer_inbox_chat_detail:"seller_messages_email_webapp_reply_title",ecom_email_customer_inbox_chat_mute:"seller_messages_email_webapp_mute_title",ecom_email_customer_inbox_chat_mute_all:"seller_messages_email_webapp_setting_title",ecom_email_shopping_mall_home_page:"Ecom_email_pc_shoptab_homepage_title",ecom_email_shopping_mall_home_pdp:"Ecom_email_pc_pdp_shoptab_homepage_title",ecom_email_shopping_mall_channel:"Ecom_email_pc_deal_page_shoptab_homepage_title",ecom_email_product_detail_page:"Ecom_email_pc_pdp_title",ecom_email_redesign_vouchers_detail:"Ecom_email_pc_coupon_add_on_title",ecom_email_promotion_products_list:"Ecom_email_pc_free_shipping_add_on_page_title"},desc:{ecom_email_redesign_order_details_page:"email_redesign_webapp_order_details_page_context",ecom_email_redesign_logistics_page:"email_redesign_webapp_logistics_page_context",ecom_email_redesign_write_review_page:"email_redesign_webapp_write_review_page_context",ecom_email_redesign_refund_detail_page:"email_redesign_webapp_refund_detail_page_context",ecom_email_redesign_request_refund:"email_redesign_webapp_request_refund_context",ecom_email_redesign_orders:"email_redesign_webapp_orders_context",ecom_email_redesign_vouchers:"email_redesign_webapp_vouchers_context",ecom_email_redesign_shopping_cart:"email_redesign_webapp_shopping_cart_context",ecom_email_customer_inbox_chat_detail:"seller_messages_email_webapp_reply_desc",ecom_email_customer_inbox_chat_mute:"seller_messages_email_webapp_mute_desc",ecom_email_customer_inbox_chat_mute_all:"seller_messages_email_webapp_setting_desc",ecom_email_shopping_mall_home_page:"Ecom_email_pc_shoptab_homepage_description",ecom_email_shopping_mall_home_pdp:"Ecom_email_pc_pdp_shoptab_homepage_description",ecom_email_shopping_mall_channel:"Ecom_email_pc_deal_page_shoptab_homepage_description",ecom_email_product_detail_page:"Ecom_email_pc_pdp_description",ecom_email_redesign_vouchers_detail:"Ecom_email_pc_coupon_add_on_description",ecom_email_promotion_products_list:"Ecom_email_pc_free_shipping_add_on_page_description"}}},84872:(e,t,n)=>{n.d(t,{x:()=>o});var i=n(40099);function o(e,t,n=!0,o=!0){return(0,i.useCallback)((t=>{32!==t.keyCode&&13!==t.keyCode||(n&&t.preventDefault(),o&&t.stopPropagation(),null==e||e())}),t)}},51356:(e,t,n)=>{n.d(t,{b_:()=>o});var i=n(94810);function o(e){const t=i.A.isRealUniqueId(e),n=i.A.isPureNumber(e,!1);return t?{uniqueId:e.toLowerCase(),secUid:""}:n?{uniqueId:"",secUid:"",userId:e}:{uniqueId:"",secUid:e}}},13685:(e,t,n)=>{n.d(t,{i:()=>s});var i=n(58632),o=n(24643),a=n(25616),l=n(75870),r=n(32680);const s=function(e){var{className:t,needAnimation:n=!1,isShowLive:s=!0,size:d=32,isShowLiveTag:c=!0,isTagShowingOnTop:u=!1,e2eTag:p,isBiggerBadge:h}=e,g=(0,i.__rest)(e,["className","needAnimation","isShowLive","size","isShowLiveTag","isTagShowingOnTop","e2eTag","isBiggerBadge"]);const m=(0,a.s)(),v=s&&n,f=s?d-6:d,x=v?d-4:d;return(0,o.jsxs)(r.Le,{isAnimating:v,className:t,"data-e2e":p,style:{width:d,height:d},children:[s&&(0,o.jsx)(l.N,{size:x}),(0,o.jsx)(r.dl,Object.assign({isAnimating:v,enable:!0,size:f},g)),s&&c&&(0,o.jsx)(r.Cx,{isOnTop:u,isBiggerBadge:h,children:m("LIVE")})]})}},75870:(e,t,n)=>{n.d(t,{N:()=>a});var i=n(24643),o=n(32680);const a=function({size:e=48}){return(0,i.jsxs)(o.Vb,{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("circle",{cx:e/2,cy:e/2,r:e/2-.75,stroke:"url(#paint0_linear)",strokeWidth:"1.5"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear",x1:-20.9902*e/48,y1:24*e/48,x2:27.0098*e/48,y2:65.9805*e/48,gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#FF1764"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#ED3495"})]})})]})}},32680:(e,t,n)=>{n.d(t,{Cx:()=>g,Le:()=>p,Vb:()=>u,dl:()=>h});var i,o=n(75431),a=n(62186),l=n(72153),r=n(92846);!function(e){e[e.UserFeed=0]="UserFeed",e[e.Feed=1]="Feed",e[e.Browser=2]="Browser",e[e.List=3]="List",e[e.UserPage=4]="UserPage",e[e.Search=5]="Search",e[e.RecommendList=6]="RecommendList"}(i||(i={}));const s="1800ms",d=(0,o.i7)({"0%":{transform:"scale(.95)"},"50%":{transform:"scale(.9)"},"100%":{transform:"scale(.95)"}}),c=(0,o.i7)({"0%":{transform:"scale(1)"},"40%":{transform:"scale(1.15)"},"45%":{transform:"scale(1.16)"},"95%":{transform:"scale(1)"},"100%":{transform:"scale(1)"}}),u=(0,a.default)("svg",{target:"e1vl87hj0"})({position:"absolute"},"label:SvgRoundCircle;"),p=(0,a.default)("div",{target:"e1vl87hj1"})({position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},(({isAnimating:e})=>e?{":after":{content:'""',position:"absolute",left:1,top:1,right:1,bottom:1,borderRadius:"50%",border:"1px solid rgba(255, 119, 146, .5)",animation:`${c} ${s} ease-out infinite`,boxShadow:"0 -0.5px 0.5px 0.5px rgba(255,119,146,.5)"}}:null),"label:DivContainer;"),h=(0,a.default)(r.e,{target:"e1vl87hj2"})((({enable:e,theme:{colors:t},isAnimating:n})=>[{borderColor:t.LineSecondary,borderWidth:"0.5px",cursor:e?"pointer":"unset",backgroundColor:"rgba(136, 136, 136, 0.5)"},n?{animation:`${d} ${s} ease-out infinite`,animationDelay:".9s"}:null]),"label:StyledAvatar;"),g=(0,a.default)("span",{target:"e1vl87hj3"})((({theme:e,isOnTop:t=!1,isBiggerBadge:n=!1})=>[(0,l.zy)({theme:e,typography:"P4",fontWeight:"bold",color:"ConstTextInverse"}),{position:"absolute",background:"linear-gradient(131.17deg, #FF1764 0%, #ED3495 94.15%)",top:t?"-6px":"unset",left:"50%",transform:"translateX(-50%)",wordBreak:"keep-all",zIndex:1},n?{height:"26px",lineHeight:"21px",padding:"1px 8px",bottom:t?"unset":"-8px",border:`2px solid ${e.colors.BGPrimary}`,borderRadius:"5px"}:{height:"15px",lineHeight:"16px",padding:"0 4px",bottom:t?"unset":"-2px",borderRadius:"2px"}]),"label:SpanLiveBadge;")},22568:(e,t,n)=>{n.d(t,{U:()=>p});var i=n(24643),o=n(40099),a=n(90159),l=n(62186),r=n(72153);const s=(0,l.default)("div",{target:"e1b4u1n0"})({position:"absolute",padding:"0 4px",top:"0",transformOrigin:"right top",transition:"opacity .5s",opacity:0},(({theme:{direction:e}})=>{const t=(0,r.t7)(e,"end");return[(0,r.mp)({direction:e,end:"0"}),{transformOrigin:`${t} top`}]}),"label:DivScrollBar;"),d=(0,l.default)("div",{target:"e1b4u1n1"})({overflowX:"hidden",overflowY:"auto",overscrollBehaviorY:"contain",perspective:"1px",transformStyle:"preserve-3d","::-webkit-scrollbar":{width:0,height:0},[`:hover ${s}`]:{opacity:1}},(({theme:{direction:e}})=>{const t=(0,r.t7)(e,"end");return[(0,r.mp)({direction:e,paddingEnd:"12px"}),{perspectiveOrigin:`${t} top`}]}),"label:DivScrollContainer;"),c=(0,l.default)("div",{target:"e1b4u1n2"})("label:DivScrollWrapper;"),u=(0,l.default)("div",{target:"e1b4u1n3"})((({theme:{colors:e}})=>({width:"6px",height:"100%",borderRadius:"3px",background:e.BGPlaceholderDefault})),"label:DivScrollBarThumb;"),p=(0,o.memo)((0,o.forwardRef)((function({children:e,Wrapper:t=c,onScroll:n,onScrollBottom:l,bottomThreshold:r=100,className:p,style:h,wrapperStyle:g},m){const v=(0,o.useRef)(null),[f,x]=(0,o.useState)(0),[_,b]=(0,o.useState)(0),y=(0,o.useMemo)((()=>{const e=f>=_?0:Math.pow(f,2)/_,t=(f-e)/(_-f);return{height:e,transform:`matrix3d(${[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,-1].join(",")}) scale(${1/t}) translateZ(${1-1/t}px) translateZ(-2px)`}}),[f,_]);(0,o.useImperativeHandle)(m,(()=>({get scrollTop(){var e,t;return null!==(t=null===(e=v.current)||void 0===e?void 0:e.scrollTop)&&void 0!==t?t:0},get dom(){return v.current}})),[]);const w=(0,a._g)((()=>{if(!v.current)return;const{current:e}=v,{height:t}=e.getBoundingClientRect(),{scrollHeight:n}=e;x(t),b(n)}),[],300),k=(0,o.useCallback)((()=>{if(!v.current||!l)return;const{scrollTop:e}=v.current;null==n||n({scrollTop:e}),f+e+r>=_&&l()}),[l,n,f,r,_]);return(0,o.useEffect)((()=>{const e=new window.MutationObserver((function(e){e.length&&w()}));return v.current&&e.observe(v.current,{childList:!0,subtree:!0}),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w),e.disconnect()}}),[w]),(0,i.jsxs)(d,{ref:v,onScroll:k,className:p,style:h,children:[(0,i.jsx)(t,{style:g,children:e}),(0,i.jsx)(s,{style:y,children:(0,i.jsx)(u,{})})]})})))},51664:(e,t,n)=>{n.d(t,{AL:()=>h,Fu:()=>p,r$:()=>u});var i=n(58632),o=n(41271),a=n(73580),l=n(40099),r=n(93608),s=n(72688),d=n(30662),c=n(50970);function u(e){const t=(0,o.P)(c.L,{dependencies:[],selector:e=>{var t;return null===(t=e.appContext)||void 0===t?void 0:t.user}});return{isShowLive:(0,l.useMemo)((()=>Boolean((null==e?void 0:e.roomId)&&"0"!==(null==e?void 0:e.roomId)&&(null==t?void 0:t.uid)!==e.id)),[null==t?void 0:t.uid,null==e?void 0:e.id,null==e?void 0:e.roomId]),src:null==e?void 0:e.avatarThumb,uniqueId:null==e?void 0:e.uniqueId,pureLivePath:e?(0,s.G2o)({uniqueId:null==e?void 0:e.uniqueId,secUid:null==e?void 0:e.secUid}):""}}function p({reportTrigger:e,user:t,enterMethod:n,autoReport:i,reportValidator:o,once:s,liveExtraParams:c}){const u=(0,a.Nj)(d.tG),[p,g]=(0,l.useState)(!1),m=(0,l.useMemo)((()=>{var e,i;return Object.assign({anchor_id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:"",follow_status:null!==(i=null==t?void 0:t.relation)&&void 0!==i?i:-1,room_id:null==t?void 0:t.roomId,enter_from_merge:r.f.commonParams.page_name,enter_method:n,action_type:"click"},c)}),[n,c,null==t?void 0:t.id,null==t?void 0:t.relation,null==t?void 0:t.roomId]),v=(0,l.useCallback)((()=>{p&&s||(u.handleLiveEntranceShow(m),g(!0))}),[p,u,s,m]);return(0,l.useEffect)((()=>{i&&e&&o()&&v()}),[e]),{handleExposure:v,teaParams:h({user:t,enterMethod:n}),reportParams:m}}function h(e){var{user:t,enterMethod:n}=e,o=(0,i.__rest)(e,["user","enterMethod"]);return(0,l.useMemo)((()=>{var e,i,a;return Object.assign({anchor_id:null!==(e=null==t?void 0:t.id)&&void 0!==e?e:"",follow_status:null!==(i=null==t?void 0:t.relation)&&void 0!==i?i:-1,room_id:null==t?void 0:t.roomId,enter_from_merge:r.f.commonParams.page_name,enter_from:r.f.commonParams.page_name,action_type:"click",enter_method:n,to_user_id:null!==(a=null==t?void 0:t.id)&&void 0!==a?a:""},o)}),[t,n,o])}},95185:(e,t,n)=>{n.d(t,{$q:()=>y,FO:()=>_,NE:()=>x,Wg:()=>j,XV:()=>w,sJ:()=>b,vy:()=>k});var i=n(46682),o=n(41271),a=n(40099),l=n(47172),r=n(44613),s=(n(69970),n(65754)),d=n(58305),c=n(45297),u=n(86389),p=n(59952),h=n(95810),g=n(82715),m=n(49677),v=n(7089),f=n(32125);function x(){const[e,t]=(0,s.nO)((e=>({isModalShow:e.isModalShow,isExpand:e.isExpand})),f.bN);(0,a.useEffect)((()=>{const n=n=>{if(e.isModalShow)return;n.preventDefault();const i=e.isExpand||!(0,d._S)(c.v1);i&&t.handleShowSnack(!0),t.storeDeferredPrompt(n),t.setIsPwaInstallable(!0),t.setIsExpand(i)};return window.addEventListener("beforeinstallprompt",n),()=>{window.removeEventListener("beforeinstallprompt",n)}}),[t,e.isExpand,e.isModalShow])}function _(e){const t=(0,i.w)(u.i);(0,a.useEffect)((()=>{e&&!e.ftcUser&&t.getNewestReply()}),[e,t])}function b(e,t,n){(0,a.useEffect)((()=>{e&&new r.N({aid:1459,service:"www.tiktok.com",host:1180===t?"https://ttwid-sg.tiktok.com":"https://ttwid-va.tiktok.com",ttwidExtraParams:{needFid:!1}}).init()}),[t,null==n?void 0:n.type,e])}const y=()=>{const e=(0,a.useRef)(""),t=[g.OZ.searchHome,g.OZ.searchUser,g.OZ.searchVideo],{pathname:n}=(0,l.useLocation)(),i=t.includes(n)&&!t.includes(e.current)||!t.includes(n),o=(0,a.useCallback)((t=>e.current=t),[]);return{needRefresh:i,setPathname:o,pathname:n}};function w(){const{photoSensitiveVideosSetting:e}=(0,o.P)(p.w);(0,a.useEffect)((()=>{m._.handleRemovePhotosensitiveStatus(1===e?"on":"off")}),[])}function k(){const{search:e}=(0,l.useLocation)();return(0,a.useMemo)((()=>{const t=new URLSearchParams(e),n=t.get("scene"),i=t.get("redirect_url");return 0===(null==n?void 0:n.indexOf(h.oe))&&i&&(0===i.indexOf("aweme")||0===i.indexOf("sslocal"))&&i.length<=2953?{isShow:!0,url:i}:{isShow:!1}}),[])}function j(){const e=(0,v.kV)();(0,a.useEffect)((()=>{e.getBusinessPermissionList()}),[e])}},70388:(e,t,n)=>{n.d(t,{BX:()=>_,Bs:()=>S,EH:()=>s,FV:()=>k,Fb:()=>d,M7:()=>j,NT:()=>y,R1:()=>u,SL:()=>v,V$:()=>c,V2:()=>C,Vk:()=>w,ah:()=>m,ev:()=>b,f7:()=>L,fd:()=>f,yv:()=>x});var i=n(62186),o=n(17784),a=n(22568),l=n(31355),r=n(72153);const s=72,d=(0,i.default)(a.U,{target:"e14l9ebt0"})((({extraTop:e=0,extraWidth:t,isControlByBtn:n,isShowAll:i,shouldTransparent:o,theme:{colors:a,direction:l}})=>{const d={padding:"0 8px",width:`${s}px`,flex:`0 0 ${s}px`,boxShadow:`0px 2px 8px ${a.ShadowSecondary}`};return[{top:r.uF+e,bottom:"0",width:`${null!=t?t:356}px`,background:o?"transparent":a.BGPrimary,position:"fixed",zIndex:99},n&&{borderRight:"rtl"===l?"none":`1px solid ${a.LineSecondary}`,borderLeft:"rtl"!==l?"none":`1px solid ${a.LineSecondary}`},(0,r.mp)({direction:l,paddingEnd:"8px"}),n&&!1===i&&d,!n&&(0,r.jJ)({max:1071,style:Object.assign(Object.assign({},d),{borderRight:`1px solid ${a.LineSecondary}`})})]}),"label:StyledScroll;"),c=(0,i.default)("div",{target:"e14l9ebt1"})((({transStatus:e,extraWidth:t,isShowAll:n,isControlByBtn:i})=>{const a=e===o.ns||e===o.ze,l={width:`${s}px`,flex:`0 0 ${s}px`};return[{position:"relative",height:"100%",width:`${null!=t?t:356}px`,flex:`0 0 ${null!=t?t:356}px`},(0,r.jJ)({max:767,style:{zIndex:99,[`${d}`]:[null,a?{transition:"all 0.3s"}:null]}}),!i&&(0,r.jJ)({max:1071,style:l}),i&&!1===n&&l,i&&(0,r.jJ)({max:1071,style:{position:"absolute"}})]}),"label:DivSideNavContainer;"),u=(0,i.default)("div",{target:"e14l9ebt2"})((({theme:{direction:e},isControlByBtn:t,isShowAll:n})=>{const i={padding:"12px 0 26px"};return[{flexShrink:0,padding:"20px 0 26px",boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"stretch",minHeight:"100%"},(0,r.mp)({direction:e,paddingStart:"8px"}),t&&!1===n&&i,!t&&(0,r.jJ)({max:1071,style:i})]}),"label:DivWrapper;"),p=({theme:e})=>[{position:"relative",display:"flex",justifyContent:"flex-start",alignItems:"center",padding:"8px",boxSizing:"border-box",borderRadius:"4px",fontSize:"32px",":hover":{textDecoration:"none"},":active":{textDecoration:"none"}},(0,r.RE)({theme:e})],h=({theme:e})=>[...p({theme:e}),(0,r.jJ)({max:1071,style:{justifyContent:"center"}})],g=({theme:e})=>[...p({theme:e})],m=(0,i.default)(l.N_,{target:"e14l9ebt4"})(h,"label:StyledLink;"),v=(0,i.default)(l.N_,{target:"e14l9ebt5"})(g,"label:StyledLinkV2;"),f=(0,i.default)("div",{target:"e14l9ebt6"})({flex:"1 1 0px"},"label:DivPlaceholder;"),x=(0,i.default)("span",{target:"e14l9ebt7"})((({active:e,theme:t,isShowAll:n,isControlByBtn:i,theme:{direction:o}})=>[(0,r.zy)({theme:t,fontFamily:"TikTokFont",fontWeight:"bold",typography:"P1",lineHeight:"32px",color:e?"Primary":"Primary2"}),(0,r.mp)({direction:o,marginStart:"8px"}),i&&!1===n&&{display:"none"},!i&&(0,r.jJ)({max:1071,style:{display:"none"}})]),"label:SpanMainNavText;"),_=(0,i.default)("nav",{target:"e14l9ebt8"})([{marginBottom:"8px",padding:"0"},(0,r.jJ)({max:1071,style:{padding:"0"}})],"label:NavMainNavContainer;"),b=(0,i.default)("ul",{target:"e14l9ebt9"})([{padding:0,margin:0,listStyleType:"none"}],"label:UlMainNav;"),y=(0,i.default)("svg",{target:"e14l9ebt12"})({width:"6px",height:"6px",verticalAlign:"top"},"label:SvgRedDot;"),w=(0,i.default)("div",{target:"e14l9ebt13"})((({theme:e})=>[{marginInlineStart:"2px",marginTop:"3px"},(0,r.zy)({theme:e,typography:"P1"})]),"label:DivRedDotContainer;"),k=(0,i.default)("div",{target:"e14l9ebt14"})((({theme:e,theme:{direction:t,colors:n},isShowAll:i,isControlByBtn:o})=>[(0,r.zy)({theme:e,color:"ConstTextInverse"}),{height:"20px",padding:"0 8px",borderRadius:"10px",backgroundColor:n.Primary,fontSize:"13px",lineHeight:"20px",fontWeight:600},(0,r.mp)({direction:t,marginStart:"6px"}),!o&&(0,r.jJ)({max:1071,style:[{display:"none"},(0,r.mp)({direction:t,marginStart:"0"})]}),o&&!1===i&&{display:"none"}]),"label:DivNewLabelContainer;"),j=(0,i.default)("div",{target:"e14l9ebt15"})((({theme:e,isShowAll:t,isControlByBtn:n})=>[{display:"none",marginInlineStart:"2px",marginTop:"3px"},(0,r.zy)({theme:e,typography:"P1"}),!n&&(0,r.jJ)({max:1071,style:{display:"block"}}),n&&!1===t&&{display:"block"}]),"label:DivExploreRedDotContainer;"),C=(0,i.default)("div",{target:"e14l9ebt16"})((({width:e,height:t,padding:n,fontSize:i})=>[{width:`${e}px`,height:`${t}px`,fontSize:`${i}px`,padding:`${n}px`},{display:"flex"}]),"label:DivIconPaddingContainer;"),S=(0,i.default)("img",{target:"e14l9ebt17"})({width:"32px",height:"32px",padding:"4px",borderRadius:"50%"},"label:ImgAvatar;"),L=(0,i.default)("div",{target:"e14l9ebt18"})((({theme:e,theme:{direction:t,colors:n},isControlByBtn:i,isShowAll:o})=>[(0,r.zy)({theme:e,color:"ConstTextInverse"}),{height:"20px",padding:"0 8px",borderRadius:"10px",backgroundColor:n.Primary,fontSize:"13px",lineHeight:"20px",fontWeight:600,marginBottom:"10px"},(0,r.mp)({direction:t,marginStart:"3px"}),!i&&(0,r.jJ)({max:1071,style:[{position:"absolute",top:"3px"},(0,r.mp)({direction:t,start:"27px"})]}),i&&!o&&[{position:"absolute",top:"3px"},(0,r.mp)({direction:t,start:"27px"})]]),"label:DivMessageBadgeContainer;")},49677:(e,t,n)=>{n.d(t,{_:()=>a});var i,o=n(93608);!function(e){e.General="general",e.Photosensitive="photosensitive",e.LoggedOut="logged_out",e.AgeRestriction="age_restriction"}(i||(i={}));const a={handleRemovePhotosensitiveStatus:e=>{o.f.sendEvent("tns_remove_photosensitive_status",{status:e})},handleShowMaskLayer:e=>{o.f.sendEvent("tns_show_mask_layer",e)},handleShowPhotosensitiveRemoved:e=>{o.f.sendEvent("tns_show_photosensitive_removed",e)},handleMaskLayerClickSkip:e=>{o.f.sendEvent("tns_mask_layer_click_skip",e)},handleMaskLayerClickWatch:e=>{o.f.sendEvent("tns_mask_layer_click_watch",e)},handleCCMaskShow:e=>{o.f.sendEvent("cc_mask_show",e)},handleClickLogInCCMask:e=>{o.f.sendEvent("click_log_in_cc_mask",e)}}},77976:(e,t,n)=>{n.d(t,{w:()=>s});var i=n(58632),o=n(24643),a=n(40099),l=n(93608);const r=a.memo;function s(e){return r((function(t){const{etClick:n,etImpression:r}=t,s=(0,i.__rest)(t,["etClick","etImpression"]);let d=(0,a.useRef)(null),c=!1;"ref"in t&&(c=!0,d=t.ref);const u=(0,a.useRef)();if((0,a.useEffect)((()=>{if(!r)return;const{etName:e,etParams:t,etValidate:n=!0,threshold:i,unobserveAfterIntersect:o,skip:a}=r;if(a)return;const s=i=>{var a;i[0].isIntersecting&&(l.f.sendEvent(e,t,!0,n),o&&(null===(a=u.current)||void 0===a||a.unobserve(i[0].target)))};try{const e={rootMargin:"0px",threshold:i};u.current=new IntersectionObserver(s,e),d.current&&u.current&&u.current.observe(d.current)}catch(e){console.error(e)}return()=>{var e;null===(e=u.current)||void 0===e||e.disconnect()}}),[r]),!n)return(0,o.jsx)(e,Object.assign({ref:c||r?d:void 0},t));const p=s,{etName:h,etParams:g,etValidate:m=!0}=n,v=()=>l.f.sendEvent(h,g,!0,m);if(delete p.etClick,"onClick"in s){const e=s.onClick;p.onClick=t=>(0,i.__awaiter)(this,void 0,void 0,(function*(){e(t),yield v()}))}else p.onClick=()=>(0,i.__awaiter)(this,void 0,void 0,(function*(){return yield v()}));return(0,o.jsx)(e,Object.assign({ref:c||r?d:void 0},p))}))}}}]);