"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2206],{48367:(e,t,n)=>{n.r(t),n.d(t,{default:()=>xd});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(95868),y=n(46251),w=n(12628),k=n(72153),j=n(67518),C=n(25616),S=n(49730),L=n(29909),T=n(82715),I=n(23255),P=n(62186),D=n(67963),A=n(74499),O=n(46102),E=n(84987);const B={id:"single-logo-dark-3ed5e24d",use:"single-logo-dark-3ed5e24d-usage",viewBox:"0 0 25 42",content:''};function F(e){const t=(0,o.useContext)(E.X);return(0,o.useLayoutEffect)((()=>(t.add(B),()=>{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)(E.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 $=(0,P.default)(D.N_,{target:"e13d6vb50"})([{fontSize:0},(0,k.jJ)({max:1071,style:{display:"flex",justifyContent:"center",alignItems:"center",marginInlineStart:"unset !important"}})],"label:StyledLinkLogo;");$.defaultProps=Object.assign(Object.assign({},$.defaultProps),{"data-e2e":"tiktok-logo"});const N=(0,P.default)(A.A,{target:"e13d6vb51"})([(0,k.jJ)({max:1071,style:{display:"none"}})],"label:StyledLogoLight;"),U=(0,P.default)(O.A,{target:"e13d6vb52"})([(0,k.jJ)({max:1071,style:{display:"none"}})],"label:StyledLogoDark;"),q=(0,P.default)(F,{target:"e13d6vb53"})([(0,k.jJ)({min:1072,style:{display:"none"}})],"label:StyledSingleLogoLight;"),z=(0,P.default)(M,{target:"e13d6vb54"})([(0,k.jJ)({min:1072,style:{display:"none"}})],"label:StyledSingleLogoDark;"),W=(0,o.memo)((function({style:e={},controlledExpanded:t=!1,controlledCom:n=!1}){const i=(0,C.s)(),{isDark:a}=(0,j.u)(),{pathname:l}=(0,f.useLocation)(),r=(0,L.sL)(),s=(0,S.E)(),d=(0,o.useCallback)((e=>{(0,b.tO)(l)&&(e.preventDefault(),r.resetRecommendList({}),s()),I.t.handleClickLogo()}),[l,r,s]),c=i("TikTok i18n title"),u=(0,o.useMemo)((()=>n?a?(0,p.jsx)(p.Fragment,{children:t?(0,p.jsx)(O.A,{alt:c,height:42,width:118}):(0,p.jsx)(M,{height:42,width:25,alt:c})}):(0,p.jsx)(p.Fragment,{children:t?(0,p.jsx)(A.A,{height:42,width:118,alt:c}):(0,p.jsx)(F,{height:42,width:25,alt:c})}):a?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(U,{alt:c,height:42,width:118}),(0,p.jsx)(z,{height:42,width:25,alt:c})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(N,{height:42,width:118,alt:c}),(0,p.jsx)(q,{height:42,width:25,alt:c})]})),[a,c,t,n]);return(0,p.jsxs)($,{to:T.OZ.home,onClick:d,style:Object.assign({position:"relative"},e),ariaLabel:i("accessibilityLabels_forYou_nav_tiktok_btn"),children:[u,(0,p.jsx)("strong",{children:c})]})}));var H=n(35626),V=n.n(H),K=n(75248);function J(e,t,n=!0,i=!0){return(0,o.useCallback)((t=>{32!==t.keyCode&&13!==t.keyCode||(n&&t.preventDefault(),i&&t.stopPropagation(),null==e||e())}),t)}var X=n(56111),G=n(95185),Y=n(51664),Z=n(35656),Q=n(85041),ee=n(58305),te=n(54344),ne=n(82535),ie=n(50289),oe=n(4538);const ae=(0,P.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;"),le=(0,P.default)(Q.E,{target:"e797se24"})([{flexGrow:1,height:"32px",":hover":{textDecoration:"none"}},(0,k.jJ)({max:1071,style:{display:"none"}})],"label:StyledUserContentLink;"),re=(k.PR,(0,P.default)("div",{target:"e797se26"})({display:"flex",flexDirection:"row",alignItems:"center"},"label:DivUserTitleWrapper;")),se=(0,P.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;"),de=(0,P.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;"),ce=(0,P.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;"),ue=(0,P.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 pe=n(32125),he=n(84908);const ge=(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,he.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}}),pe.bN),{secUid:g,verified:m,nickname:v,relation:f}=(0,d.L$)(h),x=(0,Y.r$)(h),{isShowLive:_}=x,b=_?Z.B:Q.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,Y.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,Y.Fu)({isShowLive:_,autoReport:!0,once:!0,enterMethod:"suggested_others_photo",reportTrigger:_,reportValidator:()=>void 0!==f,liveExtraParams:_?S:{},user:h});const L=(0,o.useCallback)((()=>{_&&ne.q.handleEnterUser({to_user_id:null==h?void 0:h.id,enter_method:s}),I.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]),T=(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,ee.dG)(e)}),[L,ee.dG]);return(0,p.jsxs)(ae,{onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,ref:y,onKeyDown:T,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)(te.W,Object.assign(Object.assign({size:32},x),{isSmallerBadge:!0}))}),(0,p.jsxs)(le,{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)(re,{children:[(0,p.jsx)(se,{"data-e2e":`${l}-user-title`,children:a}),m&&(0,p.jsx)("div",{"data-e2e":`${l}-user-bluev`,children:(0,p.jsx)(ie.s,{width:14,height:14})})]}),(0,p.jsx)(de,{"data-e2e":`${l}-user-desc`,children:v})]})]})})));var me=n(11328);const ve=(0,o.memo)((function(){return(0,p.jsxs)(ce,{children:[(0,p.jsx)(me.EA.Avatar,{style:{width:32,height:32}}),(0,p.jsxs)(ue,{children:[(0,p.jsx)(me.EA.Title,{style:{width:107,height:12}}),(0,p.jsx)(me.EA.Title,{style:{width:66,height:12}})]})]})}));var fe=n(49057),xe=(n(51356),n(26930));n(35267);const _e=({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 be=n(73256);const ye=({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)"}}),we=(0,P.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"}),ye({color:t.LineSecondary}),(0,k.jJ)({max:1071,style:{padding:"8px 0"}})]),"label:DivUserContainer;"),ke=(0,P.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;"),je=((0,k.jJ)({max:1071,style:{display:"none"}}),(0,P.default)("p",{target:"e4a681b3"})((({theme:e})=>(0,k.zy)({theme:e,color:"Primary",fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P3"})),"label:PShowMoreText;")),Ce=(0,P.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;");Ce.defaultProps=Object.assign(Object.assign({},Ce.defaultProps),{"data-e2e":"see-all"});const Se=(0,P.default)(be.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;"),Le=(0,P.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;"),Te=(0,P.default)("ul",{target:"e4a681b7"})({padding:0,margin:0,listStyleType:"none"},"label:UlAccountList;"),Ie=(0,o.forwardRef)((function({title:e,listType:t,loading:n=!0,children:i},o){const a=(0,X._0)((e=>0===e[t].list.length),pe.bN),l=(0,s.Tt)();return(0,p.jsxs)(we,{bottomBar:"following"===t,ref:o,children:[!l&&(0,p.jsx)(ke,{"data-e2e":`${t}-accounts`,children:e}),l&&(0,p.jsx)(ke,{"data-e2e":`${t}-accounts`,children:n?(0,p.jsx)(me.EA.Title,{style:{width:150,height:18}}):e}),(a||l)&&n?Array(1).fill("").map(((e,t)=>(0,p.jsx)(ve,{},t))):i]})})),Pe=(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,X.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)=>V()(e,t))),u=(0,o.useRef)(0);u.current=l.length;const{needRefresh:h,setPathname:g,pathname:m}=(0,G.$q)();(0,o.useEffect)((()=>{h&&c.getFollowingList({count:a}),g(m)}),[c,h,a]);const{setPlaying:v}=(0,K.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)&&I.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}=_e({hasMore:s,isShowingMore:n,totalLength:d,showNum:a,loading:r}),S=f.current&&k&&s||!s&&!k,L=J((0,o.useCallback)((()=>{var e;x(),(s&&k||!s&&k)&&(null===(e=_.current[u.current-1])||void 0===e||e.setFocus())}),[x,s,k]),[x,s,k]),T=t("desktop_logged_in_profile");let P=0;return(0,p.jsxs)(Ie,{loading:r,listType:"following",title:T,children:[(0,p.jsx)(Te,{children:d?l.map(((e,t)=>e?(0,p.jsx)("li",{children:(0,p.jsx)(ge,{index:t-P,ref:b(t-P),uniqueId:e,e2ePrefix:"following",itemType:"following",enterMethod:"click_navigation"})},e):(P++,null))):(0,p.jsx)(Le,{children:t("sidenav_follow_hint")})}),r?(0,p.jsx)("div",{style:{marginTop:"4px"},children:(0,p.jsx)(ve,{})}):null,y&&(0,p.jsxs)(Ce,{"data-e2e":"following-see-all",onClick:x,onKeyDown:L,"aria-expanded":S,"aria-labelledby":"side-nav-following-see-all",children:[(0,p.jsx)(je,{id:"side-nav-following-see-all",children:w}),(0,p.jsx)(Se,{fill:e.colors.Primary,width:16,height:16,up:n})]})]})}));var De=n(54622),Ae=n(90159),Oe=n(47926),Ee=n(62738),Be=n(72688),Fe=n(96689),Re=n(40935),Me=n(29098),$e=n(97397);const Ne=(0,P.default)(D.N_,{target:"e85wp610"})({":hover":{textDecoration:"none"}},"label:StyledLink;"),Ue=(0,P.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;"),qe=(0,P.default)("div",{target:"e85wp612"})((({theme:{direction:e}})=>[{display:"flex",flex:"1"},(0,k.mp)({direction:e,paddingEnd:"24px"})]),"label:DivUserInfo;"),ze=(0,P.default)("div",{target:"e85wp613"})((({theme:{direction:e}})=>[{maxWidth:"450px",padding:"1px 0"},(0,k.mp)({direction:e,paddingStart:"12px"})]),"label:DivUserDesc;"),We=(0,P.default)("div",{target:"e85wp614"})({display:"flex",alignItems:"center",height:"22px",lineHeight:"22px"},"label:DivTopPart;"),He=(0,P.default)("span",{target:"e85wp615"})((({theme:e})=>[(0,k.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"bold",typography:"P2"})]),"label:SpanUniqueId;"),Ve=(0,P.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;"),Ke=(0,P.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;"),Je=(0,P.default)("p",{target:"e85wp618"})({maxWidth:"450px"},k.PR,"label:PSignature;"),Xe=(0,P.default)("p",{target:"e85wp619"})({maxWidth:"450px"},k.PR,"label:POther;"),Ge=(0,P.default)("span",{target:"e85wp6110"})((({theme:{direction:e}})=>(0,k.mp)({direction:e,paddingStart:"8px"})),"label:SpanSecond;"),Ye=(0,P.default)($e.y,{target:"e85wp6111"})((({theme:{direction:e}})=>({flexShrink:0,"& > svg":[(0,k.mp)({direction:e,marginEnd:"6px"})]})),"label:StyledFollowButton;"),Ze=(0,P.default)(Me.A,{target:"e85wp6112"})((({theme:{direction:e}})=>(0,k.mp)({direction:e,marginStart:"4px"})),"label:StyledVerifiedBadgeColor;"),Qe=(0,o.memo)((function({uniqueId:e,enterMethod:t,onClose:n}){const i=(0,C.s)(),a=(0,he.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}}),pe.bN),{id:l,nickname:r,secUid:s,signature:c,verified:u,followerCount:h,videoCount:g}=(0,d.L$)(a),m=(0,Be.fJR)({uniqueId:e,secUid:null!=s?s:""}),v=(0,Y.r$)(a),{isShowLive:f}=v,x=f?Z.B:Q.E,_=(0,Y.AL)({user:a,enterMethod:t}),b=(0,Fe.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)((()=>{ne.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)(qe,{children:[(0,p.jsx)(x,{uniqueId:e,secUid:s,teaParams:_,shouldStopPropagation:!1,onClick:I,children:(0,p.jsx)(oe.i,Object.assign({},v,{liveTheme:6,size:48}))}),(0,p.jsxs)(ze,{children:[(0,p.jsxs)(We,{children:[(0,p.jsx)(He,{children:e}),u&&(0,p.jsx)(Ze,{width:14,height:14}),(0,p.jsx)(Ve,{children:r})]}),(0,p.jsx)(Ke,{className:"bottom-part",children:c?(0,p.jsx)(Je,{className:"signature",children:c}):(0,p.jsxs)(Xe,{children:[(0,p.jsxs)("span",{children:[i("Video"),": ",g]}),(0,p.jsxs)(Ge,{children:[i("Followers"),": ",(0,d.D1)(h)]})]})})]})]}),(0,p.jsxs)(Ye,{size:"small",id:l,buttonTheme:S,onClick:L,children:[2===j?(0,p.jsx)(Ee.A,{}):null,w]})]})},l)})),et=(0,P.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;"),tt=(0,P.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;"),nt=(0,P.default)("div",{target:"exlovqy2"})((({theme:{direction:e}})=>[{display:"flex"},(0,k.mp)({direction:e,marginStart:"14px"})]),"label:DivTabsContainer;"),it=(0,P.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;"),ot=(0,P.default)("span",{target:"exlovqy4"})((({theme:{direction:e}})=>[(0,k.mp)({direction:e,paddingStart:"4px"})]),"label:SpanCount;"),at=(0,P.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;"),lt=(0,P.default)("div",{target:"exlovqy6"})((({isHidden:e})=>({flex:"1",overflowY:e?"hidden":"auto"})),"label:DivMain;"),rt=(0,P.default)("div",{target:"exlovqy7"})({boxSizing:"border-box",width:"100%",padding:"16px 0 16px 12px"},"label:DivUserList;"),st=(0,P.default)("div",{target:"exlovqy8"})({boxSizing:"border-box",display:"flex",alignItems:"center",width:"100%",padding:"8px 12px"},"label:DivLoadingContainer;"),dt=(0,P.default)("div",{target:"exlovqy9"})({width:"48px",height:"48px",flexShrink:0},"label:DivAvatarContainer;"),ct=(0,P.default)("div",{target:"exlovqy10"})((({theme:{direction:e}})=>[{flexGrow:1},(0,k.mp)({direction:e,marginStart:"12px"})]),"label:DivSkeletonTitleContainer;"),ut=(0,P.default)("div",{target:"exlovqy11"})({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"label:DivEmptyContainer;"),pt=(0,P.default)("p",{target:"exlovqy12"})((({theme:e})=>[(0,k.zy)({theme:e,fontFamily:"TikTokFont",fontWeight:"bold",lineHeight:"24px",typography:"P1"})]),"label:PTitle;"),ht=(0,P.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;"),gt={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"}},mt=(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,fe.W)((()=>["user"]),[]))&&void 0!==t?t:{},s=(0,o.useRef)(null),[c,u]=(0,X.Gd)((e=>({following:e.following,follower:e.follower,suggest:e.suggest})),((e,t)=>V()(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,Ae._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)(Oe.i,{isOpen:n,compact:!0,closeOnBackdropClick:!0,onClose:e.onClose,children:(0,p.jsxs)(et,{children:[(0,p.jsxs)(tt,{children:[(0,p.jsxs)(nt,{children:[r&&["following","follower"].map((e=>(0,p.jsxs)(it,{active:g===e,onClick:v(e),children:[(0,p.jsx)("span",{children:l(gt[e].title)}),(c[e].total||!c[e].loading)&&(0,p.jsx)(ot,{children:(0,d.D1)(c[e].total)})]},e))),a&&(0,p.jsx)(it,{active:"suggest"===g,onClick:v("suggest"),children:(0,p.jsx)("span",{children:l("common_registration_username_suggested")})})]}),(0,p.jsx)(at,{onClick:e.onClose,children:(0,p.jsx)(De.A,{width:14,height:14,style:{color:"rgba(22, 24, 35, 0.75)"}})})]}),(0,p.jsx)(lt,{isHidden:x&&!f.length,ref:s,onScroll:y,children:b?(0,p.jsxs)(rt,{children:[c[g].list.map((t=>(0,p.jsx)(Qe,{uniqueId:t,enterMethod:h[g],onClose:e.onClose},t))),x&&w.map(((e,t)=>(0,p.jsxs)(st,{children:[(0,p.jsx)(dt,{children:(0,p.jsx)(me.EA.Avatar,{})}),(0,p.jsxs)(ct,{children:[(0,p.jsx)(me.EA.Title,{style:{width:"119px",height:"16px",margin:"4px 0 12px"}}),(0,p.jsx)(me.EA.Title,{style:{width:"254px",height:"12px"}})]}),(0,p.jsx)(me.EA.Button,{style:{width:"106px",height:"36px",flexShrink:0}})]},t)))]}):(0,p.jsxs)(ut,{children:[(0,p.jsx)(pt,{children:l(gt[g].title)}),(0,p.jsx)(ht,{children:l(gt[g].empty)})]})})]})})}));var vt=n(22972);const ft=(0,o.memo)((function(e){const{onEnterItem:t,onLeaveItem:n}=e,i=(0,C.s)(),{pathname:a}=(0,f.useLocation)(),l=(0,vt.kq)((e=>e.uniqueId),pe.bN),r=(0,he.nW)((e=>e.users[null!=l?l:""]),pe.bN),s=(0,o.useRef)(""),[d,c]=(0,o.useState)(!1),[u,h]=(0,o.useState)(!1),[{list:g,totalLength:m},v]=(0,X.Gd)((e=>{const{list:t}=e.suggest;return{list:t,totalLength:t.length}})),{needRefresh:x,setPathname:_}=(0,G.$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,X.Nl)();(0,xe.o)((()=>{}),[e])}();const{setPlaying:y}=(0,K.S4)(),w=(0,o.useCallback)((()=>{c(!d),!d&&I.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=J((0,o.useCallback)((()=>{var e;w(),!d&&(null===(e=k.current[4])||void 0===e||e.setFocus())}),[w,d]),[w,d]),T=(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]),P=(0,o.useCallback)((e=>()=>{null==n||n(e)}),[n]),D=(0,o.useCallback)((()=>{h(!1),y(!0)}),[y]),A=(({pathname:e,user:t})=>{var n;const{user:i}=null!==(n=(0,fe.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 A?(0,p.jsxs)(Ie,{ref:j,listType:"suggest",title:i("sug_accounts"),children:[(0,p.jsx)(Te,{children:g.map(((e,t)=>e?(0,p.jsx)("li",{children:(0,p.jsx)(ge,{itemType:"suggest",ref:S(t),onMouseEnter:T(e,t),onMouseLeave:P(e),uniqueId:e,e2ePrefix:"suggest",style:!d&&t>=5?{display:"none"}:void 0,enterMethod:"click_panel"})},e):null))}),m>5&&(0,p.jsx)(Ce,{onClick:w,onKeyDown:L,"aria-expanded":d,"aria-labelledby":"side-nav-suggest-see-all",children:(0,p.jsx)(je,{"data-e2e":"suggest-see-all",id:"side-nav-suggest-see-all",children:O})}),(0,p.jsx)(mt,{visible:u,type:"suggest",onClose:D})]}):null}));var xt,_t=n(93608);!function(e){e.DiscoverLinkShow="discover_link_show",e.ClickDiscoverLink="click_discover_link"}(xt||(xt={}));var bt=n(58632),yt=n(64162),wt=n(4126),kt=n(93995),jt=n(26324),Ct=n(35572),St=n(95719),Lt=n(62564),Tt=n(74690),It=n(80339),Pt=n(55322),Dt=n(7672),At=n(55099);let Ot=class{constructor(e){this.fetch=e}getDiscoverList(e){return this.fetch.get("/node/share/discover/list",{query:{pageType:e}}).pipe((0,Lt.T)((e=>e.body.discoverList)))}};Ot=(0,bt.__decorate)([(0,Dt._)(),(0,bt.__metadata)("design:paramtypes",[At.p])],Ot);let Et=class extends yt.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,Ct.p)((({pageType:e})=>this.service.getDiscoverList(e).pipe((0,St.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},_t.f.event("discover_link_show",a)}))})),(0,Lt.T)((e=>this.getActions().setList({list:e}))),(0,Tt.Z)(this.getActions().setLoading({loading:!0})),(0,It.q)(this.getActions().setLoading({loading:!1}),this.terminate()),(0,Pt.n)({})))))}};(0,bt.__decorate)([(0,wt.h5)(),(0,bt.__metadata)("design:type",Function),(0,bt.__metadata)("design:paramtypes",[Object,Object]),(0,bt.__metadata)("design:returntype",void 0)],Et.prototype,"setList",null),(0,bt.__decorate)([(0,wt.h5)(),(0,bt.__metadata)("design:type",Function),(0,bt.__metadata)("design:paramtypes",[Object,Object]),(0,bt.__metadata)("design:returntype",void 0)],Et.prototype,"setLoading",null),(0,bt.__decorate)([(0,wt.Mj)({payloadGetter:1}),(0,bt.__metadata)("design:type",Function),(0,bt.__metadata)("design:paramtypes",[jt.c]),(0,bt.__metadata)("design:returntype",void 0)],Et.prototype,"getDiscoverList",null),Et=(0,bt.__decorate)([(0,kt.n)("DiscoverList"),(0,bt.__metadata)("design:paramtypes",[Ot])],Et);var Bt=n(75431),Ft=n(20957),Rt=n(3229),Mt=n(81825);const $t=(0,Bt.i7)({"0%":{transform:"translateX(-240px)"},"100%":{transform:"translateX(328px)"}}),Nt=(0,P.default)("div",{target:"eikhr9j0"})((({theme:{colors:e}})=>({overflow:"hidden",width:"208px",height:"24px",marginBottom:"12px",borderRadius:"12px",background:e.BGPlaceholderOpaque})),"label:DivDiscoverSkeletonItem;"),Ut=(0,P.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:`${$t} 1.5s cubic-bezier(0, 0, 1, 1) infinite`},"label:DivLinearGradient;"),qt=(0,P.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,P.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 Wt=(0,P.default)("ul",{target:"eikhr9j4"})({display:"flex",flexWrap:"wrap",width:"100%",padding:0,margin:0,listStyleType:"none"},"label:UlDiscoverListContainer;");Wt.defaultProps=Object.assign(Object.assign({},Wt.defaultProps),{"data-e2e":"nav-discover-list"});const Ht={display:"block",width:"fit-content",maxWidth:"100%",":hover":{textDecoration:"none"}},Vt=(0,P.default)(D.N_,{target:"eikhr9j5"})(Ht,"label:StyledLink;");Vt.defaultProps=Object.assign(Object.assign({},Vt.defaultProps),{"data-e2e":"nav-discover-href"});const Kt=(0,P.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;"),Jt=(0,P.default)(Ft.A,{target:"eikhr9j8"})({flexShrink:0},"label:StyledNumber;"),Xt=(0,P.default)(Rt.A,{target:"eikhr9j9"})({flexShrink:0},"label:StyledMusicNote;"),Gt=(0,P.default)(Mt.A,{target:"eikhr9j10"})({flexShrink:0},"label:StyledMagnifyingGlass;"),Yt=(0,P.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;"),Zt=(0,P.default)("li",{target:"eikhr9j12"})({display:"block"},"label:LiItemContainer;"),Qt=function(){var e;const t=(0,C.s)(),{pathname:n}=(0,f.useLocation)(),{language:i}=null!==(e=(0,fe.W)((()=>["language","abTestVersion"]),[]))&&void 0!==e?e:{},[{list:a,loading:l},r]=(0,g.S)(Et,{selector:e=>{const{list:t,loading:n}=e;return{list:t,loading:n}},dependencies:[]}),{needRefresh:s,setPathname:d}=(0,G.$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},_t.f.event("click_discover_link",a),n){case 3:ne.q.handleEnterTagDetail({enter_method:"discover"});break;case 4:ne.q.handleEnterMusicDetail({enter_method:"discover"});break;default:ne.q.handleDiscoveryPage({enter_method:"discover"})}var a}),[]);return!l&&a.length<4?null:(0,p.jsxs)(qt,{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)(Wt,{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)(Jt,{width:16,height:16});break;case 4:l=(0,p.jsx)(Xt,{width:16,height:16});break;default:l=(0,p.jsx)(Gt,{width:16,height:16})}return(0,p.jsx)(Zt,{children:(0,p.jsx)(Vt,{id:`sidenav-discover-list-item-${t}`,to:a,onClick:c(e,t),children:(0,p.jsxs)(Kt,{children:[l,(0,p.jsx)(Yt,{children:o})]})},t)},t)}))})})]})};var en=n(90217);const tn=n.p+"113990b20fae6f3bb49b.png",nn=n.p+"f0008e2854620a01f652.png",on=n.p+"45636daedb8648c2e33c.png",an=n.p+"5fa49876a48136384338.png",ln=(0,P.default)("div",{target:"e125wy4z0"})((({theme:{colors:e}})=>[{display:"none"},ye({color:e.LineSecondary}),(0,k.jJ)({max:1071,style:{display:"flex",flexDirection:"column",alignItems:"center",padding:"8px 0"}})]),"label:DivEhEntranceSideContainer;");ln.defaultProps=Object.assign(Object.assign({},ln.defaultProps),{"data-e2e":"eh-footer-icon"});const rn=(0,P.default)("div",{target:"e125wy4z1"})((({isDark:e})=>[{display:"block",width:"32px",height:"32px",margin:"8px",backgroundSize:"cover",backgroundImage:e?`url(${nn})`:`url(${an})`,": hover":{backgroundImage:e?`url(${tn})`:`url(${on})`}}]),"label:DivEhEntranceSide;"),sn=(0,P.default)("div",{target:"e125wy4z2"})((({theme:{direction:e}})=>[(0,k.mp)({direction:e,paddingEnd:"8px"}),{height:"50px",textAlign:"center",position:"relative",marginBottom:"30px"}]),"label:DivEffectHouseEntranceContainer;");sn.defaultProps=Object.assign(Object.assign({},sn.defaultProps),{"data-e2e":"eh-footer-banner"});const dn=(0,P.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;"),cn=(0,P.default)(D.N_,{target:"e125wy4z4"})([{display:"flex",alignItems:"center",justifyContent:"center",":hover":{[`${dn}`]:{transform:"scale(1.06)",transition:"transform 200ms cubic-bezier(0.25, 0, 0.25, 1)",textDecoration:"none"}}}],"label:StyledEHEntranceLink;");var un=n(17627);const pn=function(){const{isDark:e}=(0,j.u)(),{ehLink:t}=(0,s.$r)({}),n=(0,o.useCallback)((()=>{I.t.handleClickEntrance({enter_method:"click_banner"})}),[]),i=(0,o.useRef)(null);return(0,en.B)({intersectionHandler:()=>{I.t.handleEntranceShow({enter_method:"banner"})},element:i,threshold:[.5]}),(0,p.jsx)(ln,{ref:i,children:(0,p.jsx)(D.N_,{forceSSR:!0,to:t,target:"_blank",onClick:n,children:(0,p.jsx)(rn,{isDark:e})},t)})},hn=()=>{const e=(0,C.s)(),{ehLink:t}=(0,s.$r)({linkIncludeVid:!0}),n=(0,o.useCallback)((()=>{I.t.handleClickEntrance({enter_method:"click_banner"})}),[]),i=(0,o.useRef)(null);return(0,en.B)({intersectionHandler:()=>{I.t.handleEntranceShow({enter_method:"banner"})},element:i,threshold:[.5]}),(0,p.jsx)(sn,{ref:i,children:(0,p.jsx)(cn,{forceSSR:!0,to:t,target:"_blank",onClick:n,children:(0,p.jsx)(un.Lw,{shortText:e("tteh_webapp_acquisitionBanner_1"),longText:e("tteh_webapp_acquisitionBanner_2")})},t)})};var gn=n(73580),mn=n(4474),vn=n(30662),fn=n(45297),xn=n(64407),_n=n(18499);const bn=(0,P.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;"),yn=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,Ae._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,_n.createPortal)((0,p.jsx)(bn,{style:{transform:r},isControlByBtn:l,children:e}),document.body):null},wn=(0,P.default)("span",{target:"e1k5k7j00"})((({theme:{colors:e},isLiveStreaming:t,isDisabled:n})=>({color:n?e.TextQuaternary:t?e.Primary:e.TextPrimary})),"label:SpanText;"),kn=[(0,Bt.i7)({"0%":{y:"4px",height:"10px"},"40%":{y:"4px",height:"12px"},"70%":{y:"4px",height:"6px"},"100%":{y:"4px",height:"10px"}}),(0,Bt.i7)({"0%":{y:"4px",height:"6px"},"40%":{y:"4px",height:"10px"},"70%":{y:"4px",height:"12px"},"100%":{y:"4px",height:"6px"}}),(0,Bt.i7)({"0%":{y:"4px",height:"8px"},"40%":{y:"4px",height:"12px"},"70%":{y:"4px",height:"6px"},"100%":{y:"4px",height:"8px"}})],jn=(0,P.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:`${kn[0]} .5s ease-out infinite`},":nth-of-type(2)":{animation:`${kn[1]} .5s ease-out infinite`},":nth-of-type(3)":{animation:`${kn[2]} .5s ease-out infinite`}}}:null]),"label:SvgLiveIcon;"),Cn=(0,P.default)("div",{target:"e1k5k7j02"})((({theme:{colors:e,direction:t},isShowAll:n,isControlByBtn:i})=>{const o={[`${wn}`]:{display:"none"},[`${jn}`]:[(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;"),Sn=(0,P.default)(D.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;"),Ln=(0,P.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;"),Tn=(0,P.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;"),In=(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)(jn,{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 Pn=n(88091),Dn=n(9981),An=n(42693);function On({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,Dn.A)(),l=(0,An.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)(Tn,{isShowAll:e,isControlByBtn:t,children:(0,p.jsx)(Pn.Fm,{color:"TextTertiary",children:n})})}const En=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,gn.Nj)(vn.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,ee._S)(fn.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,ee.AP)(fn.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,mn.stringifyUrl)({url:P,query:{lang:b}}),A=(0,o.useMemo)((()=>f?(0,p.jsxs)(Ln,{onClick:L,children:[(0,p.jsx)(In,{isDisabled:!0,isLiveStreaming:g}),(0,p.jsx)(wn,{isLiveStreaming:g,"data-e2e":"go-live-entrance-text",isDisabled:!0,children:j})]}):(0,p.jsxs)(Sn,{forceSSR:!0,to:D,onClick:L,children:[(0,p.jsx)(In,{isDisabled:!1,isLiveStreaming:g}),(0,p.jsx)(wn,{isLiveStreaming:g,"data-e2e":"go-live-entrance-text",isDisabled:!1,children:j})]})),[f,!1,D,g,L,j]),O=(0,o.useCallback)((()=>d(!1)),[]);return(0,o.useEffect)((()=>{var e;s&&xn.Xg.OBSRevokeRemindShow({anchor_id:null!==(e=_.uid)&&void 0!==e?e:""})}),[s,_.uid]),(0,p.jsxs)(Cn,{ref:S,onMouseEnter:T,onMouseLeave:I,"data-e2e":"go-live-entrance",isShowAll:t,isControlByBtn:n,children:[A,!g&&k&&(0,p.jsx)(On,{isShowAll:t,isControlByBtn:n}),(0,p.jsx)(yn,{active:c,text:j,scrollRef:e,containerRef:S,isShowAll:t,isControlByBtn:n}),(0,p.jsx)(w.rd,{visible:s,onOkClick:O,duration:x})]})};var Bn=n(71281),Fn=n(38812),Rn=n(33805),Mn=n(16680);const $n=(0,P.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,P.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,P.default)($e.y,{target:"efna91q2"})({marginTop:"20px",width:"100%"},"label:StyledLogin;");Un.defaultProps=Object.assign(Object.assign({},Un.defaultProps),{"data-e2e":"nav-login-button"});const qn=function(e){var t,n;const i=(0,C.s)(),a=(0,Mn.b1)(),{isShowAll:l,isControlByBtn:r}=e,s=(0,fe.W)((()=>["abTestVersion"]),[]),d=null!==(t=(0,Bn.qt)(null==s?void 0:s.abTestVersion,"search_video"))&&void 0!==t?t:"v1",{user:c}=null!==(n=(0,fe.W)((()=>["user"]),[]))&&void 0!==n?n:{},u=Boolean(c),h=(0,o.useCallback)((()=>{const e=(0,Fn.Y)()||(0,Fn.CW)();a.openModal({query:{enter_method:"click_navigation",enter_from:_t.f.commonParams.page_name,redirect_url:(0,Rn.Q2)(),last_group_id:e,type:"general_search"!==_t.f.commonParams.page_name&&"search_video"!==_t.f.commonParams.page_name&&"search_user"!==_t.f.commonParams.page_name||"v3"!==d&&"v4"!==d||u?"":"loginsearchmore"}}),I.t.handleClickNav({target:"login"})}),[a,d,u]);return(0,p.jsxs)($n,{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),Wn=n(72771),Hn=n(72950),Vn=n(23592),Kn=n(74987),Jn=n(44598),Xn=n(35041);const Gn={id:"person_arrow_left_fill-a2d06cac",use:"person_arrow_left_fill-a2d06cac-usage",viewBox:"0 0 24 24",content:''};function Yn(e){const t=(0,o.useContext)(E.X);return(0,o.useLayoutEffect)((()=>(t.add(Gn),()=>{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 Zn,Qn=n(16300),ei=n(76943),ti=n(52178),ni=n(22993),ii=n(89274),oi=n(30459),ai=n(92249),li=n(67616),ri=n(51199),si=n(7859),di=n(27375),ci=n(31922),ui=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"}(Zn||(Zn={}));var pi=n(70388),hi=n(10828),gi=n(77181),mi=n(7089),vi=n(73611),fi=n(85149),xi=n(58542);const _i=(0,P.default)(Vn.A,{target:"en5j2390"})({width:"32px",height:"32px",padding:"4px"},"label:StyledMessageIcon;"),bi=(0,P.default)(fi.A,{target:"en5j2391"})({width:"32px",height:"32px",padding:"4px",color:xi.Tj4.UITextPrimaryDisplay},"label:StyledActiveMessageIcon;"),yi=({canUseBcVisible:e,setCanUseBcVisible:t})=>{const[n,i]=(0,mi.hG)((e=>e.businessPermission),pe.bN),a=3===(0,vi.Ap)((e=>e.drawerType));return(0,ci.$l)(),(0,ci.qT)(),(0,o.useEffect)((()=>{i.getBusinessPermissionList()}),[i]),(0,o.useEffect)((()=>{n.comment&&n.message&&i.getBusinessAccountInfoResponse()}),[n,i]),(0,p.jsxs)(p.Fragment,{children:[a?(0,p.jsx)(bi,{}):(0,p.jsx)(_i,{}),e&&(0,p.jsx)(gi.oL,{canUseBcVisible:e,setCanUseBcVisible:t})]})};var wi=n(94914),ki=n(53737);const ji={path:"/following",Icon:ti.A,ActiveIcon:ni.A,text:"Following",teaReport:()=>{I.t.handleClickNav({target:"following"}),ne.q.handleEnterFollowing({enter_method:"navigation_bar"})},hoverTeaReportParams:{type:"following_icon"},linkProps:{"data-e2e":"nav-following",disableAutoLang:!1}},Ci={path:"/friends",Icon:ti.A,ActiveIcon:ni.A,text:"Friends",teaReport:()=>{I.t.handleClickNav({target:"friends"})},hoverTeaReportParams:{type:"friends"},linkProps:{"data-e2e":"nav-friends",disableAutoLang:!1}},Si={path:"/explore",Icon:zn.A,ActiveIcon:Wn.A,text:"pc_web_explore_main_header",teaReport:()=>{I.t.handleClickNav({target:"explore"}),ne.q.handleEnterExplore({enter_method:"click_explore_tab"})},hoverTeaReportParams:{type:"explore"},linkProps:{"data-e2e":"nav-explore",disableAutoLang:!1}},Li={path:"/live",Icon:ii.A,ActiveIcon:oi.A,text:"LIVE",teaReport:()=>{I.t.handleClickNav({target:"live"}),ne.q.handleEnterLiveDiscover({enter_method:"navigation_bar"})},hoverTeaReportParams:{type:"live"},linkProps:{"data-e2e":"nav-live",disableAutoLang:!1}},Ti={path:"/tiktokstudio/upload?from=webapp",Icon:Hn.A,ActiveIcon:Hn.A,isIconPadding:!0,text:"Upload",teaReport:()=>{I.t.handleClickNav({target:"upload"})},hoverTeaReportParams:{type:"upload"},linkProps:{"data-e2e":"nav-upload",disableAutoLang:!1}},Ii={path:"/messages",Icon:Vn.A,ActiveIcon:Vn.A,isIconPadding:!0,text:"webdm_message_button",teaReport:()=>{I.t.handleClickNav({target:"messages"}),ui.w.handleEnterChatList()},hoverTeaReportParams:{type:"messages"},linkProps:{"data-e2e":"nav-messages",disableAutoLang:!1}},Pi={path:"/",Icon:ai.A,ActiveIcon:li.A,text:"Profile",teaReport:()=>{I.t.handleClickNav({target:"profile"})},hoverTeaReportParams:{type:"profile"},linkProps:{"data-e2e":"nav-profile",disableAutoLang:!1},isIconPadding:!0};function Di({currentPath:e,configPath:t}){return e===t}const Ai=function(e){const{text:t,path:n,onClick:i,onLoad:a,onCheckActive:l=Di,Container:r=pi.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)(),A=(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 O=(0,o.useRef)(null),E=(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]),B=(0,o.useCallback)((()=>{x&&v||P(!1)}),[v,x]),F=(0,o.useMemo)((()=>x&&!1===v?{justifyContent:"center"}:{}),[v,x]);return(0,p.jsx)("li",{children:(0,p.jsx)("div",{ref:O,children:(0,p.jsxs)(r,Object.assign(Object.assign({to:n,onClick:A},u),{forceSSR:m,style:F,onMouseEnter:E,onMouseLeave:B,children:[null!=c?c:e.isIconPadding?(0,p.jsx)(pi.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)(pi.yv,{active:S,isShowAll:v,isControlByBtn:x,children:b(t)}),e.topRightBadge,(0,p.jsx)(yn,{active:I,text:b(t),scrollRef:g,containerRef:O,isShowAll:v,isControlByBtn:x})]}))})})},Oi=(0,o.memo)((function({scrollRef:e,isShowAll:t,isControlByBtn:n}){const i=(0,w.FU)(),{pathname:a}=(0,f.useLocation)(),l=(0,L.sL)(),[d,{setEnterForyou:c}]=(0,wi.C_)((e=>e.enterForyou)),[u,g]=(0,o.useState)(!1),m=(0,C.s)(),{lang:v="",userUniqueId:x="",avatar:_,hasIMPermission:y}=(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:k,redDotCount:j}=(0,h.P)(ri.M);(0,o.useEffect)((()=>{!(0,b.tO)(a)&&c(!1)}),[c,a]);const T=(0,o.useCallback)((()=>d&&(0,b.Fj)(a)||(0,b.tO)(a)),[a,d]),P=(0,o.useCallback)((()=>(0,b.U0)(a)),[a]),D=(0,S.E)(),A=(0,si.OB)(!0),O=(0,si.o0)(A),{hasNonPersonalizedMenu:E}=(0,s.cE)(),B=E&&!A,F=(0,o.useCallback)((e=>{B&&O(),(0,b.tO)(a)&&(e.preventDefault(),l.resetRecommendList({}),D())}),[B,a,O,l,D]),R=!k&&j>0;(0,o.useEffect)((()=>{R&&I.t.handleShowFollowingRedDot()}),[R]),(0,o.useEffect)((()=>{if((0,b.eD)(a))return g(!1),void(0,ee.AP)(fn.z3,"1");(0,ee._S)(fn.z3)||(g(!0),I.t.handleShowNewLabel())}),[a]);const M=(0,o.useCallback)((()=>{R&&I.t.handleRemoveFollowingRedDot({enter_method:"click_homepage_follow"}),B&&O()}),[R,B,O]),$=(0,Fe.G)({modalConfig:{query:{redirect_url:`${hi.C}/friends`,enter_method:"friends_side_navigation"}}}),N=(0,o.useCallback)((e=>{x?ne.q.handleEnterFriends({enter_method:"friends_side_navigation"}):($(),e.preventDefault(),e.stopPropagation())}),[$,x]),U=(0,o.useCallback)((()=>{u&&I.t.handleRemoveNewLabel({enter_method:"click_explore_tab"})}),[u]),{showProfileLeftBar:q}=(0,s.eb)();(0,s.AP)()&&_&&(Pi.IconComponent=(0,p.jsx)(pi.Bs,{src:_})),Pi.path=`/@${x}`;const z=(0,Fe.G)({modalConfig:{isRedirectToProfilePage:!0,query:{enter_method:"profile_side_navigation"}}}),{showNewLiveIcon:W}=(0,s.vh)(),{enableMessageRefactor:H,enableUploadRefactor:V}=(0,s.NF)(),K=(0,o.useMemo)((()=>y&&H),[H,y]);W&&(Li.Icon=Kn.A,Li.ActiveIcon=Jn.A,Li.isIconPadding=!0);const J=(0,o.useCallback)((e=>{x?ne.q.handleEnterProfile({enter_method:"profile_side_navigation"}):(z(),e.preventDefault(),e.stopPropagation())}),[z,x]),X=(0,o.useMemo)((()=>R?(0,p.jsx)(pi.Vk,{children:(0,p.jsx)(pi.NT,{children:(0,p.jsx)("circle",{cx:3,cy:3,r:3,fill:"#FE2C55"})})}):void 0),[R]),G=(0,o.useMemo)((()=>u?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(pi.FV,{isShowAll:t,isControlByBtn:n,children:m("Inbox_New")}),(0,p.jsx)(pi.M7,{isShowAll:t,isControlByBtn:n,children:(0,p.jsx)(pi.NT,{children:(0,p.jsx)("circle",{cx:3,cy:3,r:3,fill:"#FE2C55"})})})]}):void 0),[t,n,u,m]),Y=(Z=(0,si.OB)(!0),{path:"/",Icon:Qn.A,ActiveIcon:ei.A,text:Z?"for_you":"nonpersonalizedFeeds_LIVEfeed_navP_menuLink",teaReport:()=>{I.t.handleClickNav({target:"trending"}),ne.q.handleEnterTrending({enter_method:"navigation_bar"})},hoverTeaReportParams:{type:"for_you"},linkProps:{"data-e2e":"nav-foryou",disableAutoLang:!0}});var Z;Y.path=`/${v}`;const Q=(0,s.RC)();Q&&(ji.Icon=Xn.A,ji.ActiveIcon=Yn,ji.isIconPadding=!0);const te=(0,w.sw)(a),ie=(0,o.useCallback)((()=>{_t.f.event("livesdk_live_tab_show")}),[]),oe=(0,o.useMemo)((()=>n?pi.SL:pi.ah),[n]),ae=(0,s.yc)(),le=(0,p.jsx)(Ai,Object.assign(Object.assign({},Si),{Container:oe,isShowAll:t,isControlByBtn:n,scrollRef:e,topRightBadge:G,onClick:U})),re=(0,ki.VB)((e=>e.messageCount),pe.bN),se=(0,mi.VR)((e=>e.businessPermission.message),pe.bN),de=(0,di.lH)(re),[ce,ue]=(0,o.useState)(!1),he=(0,o.useMemo)((()=>re>0?(0,p.jsx)(pi.f7,{isShowAll:t,isControlByBtn:n,children:de}):void 0),[de,t,n,re]),ge=(0,ci.Yy)({setCanUseBcVisible:ue});return(0,p.jsx)(pi.BX,{children:(0,p.jsxs)(pi.ev,{children:["v1"===ae&&le,(0,p.jsx)(Ai,Object.assign(Object.assign({},Y),{Container:oe,isShowAll:t,isControlByBtn:n,scrollRef:e,onClick:F,onCheckActive:T})),"v2"===ae&&le,(0,p.jsx)(Ai,Object.assign(Object.assign({},ji),{Container:oe,isShowAll:t,isControlByBtn:n,onClick:M,topRightBadge:X,scrollRef:e})),Q&&(0,p.jsx)(Ai,Object.assign(Object.assign({},Ci),{Container:oe,isShowAll:t,isControlByBtn:n,onClick:N,scrollRef:e})),"v0"===ae&&le,i&&(0,p.jsx)(Ai,Object.assign({onLoad:ie,forceSSR:!te,Container:oe,isShowAll:t,isControlByBtn:n,scrollRef:e,onCheckActive:P},Li)),K&&(0,p.jsx)(Ai,Object.assign({scrollRef:e,isShowAll:t,Container:oe,isControlByBtn:n,topRightBadge:he,forceSSR:se,IconComponent:(0,p.jsx)(yi,{canUseBcVisible:ce,setCanUseBcVisible:ue}),onClick:ge},Ii)),V&&(0,p.jsx)(Ai,Object.assign({scrollRef:e,isShowAll:t,Container:oe,isControlByBtn:n},Ti)),q&&(0,p.jsx)(Ai,Object.assign(Object.assign({},Pi),{Container:oe,isShowAll:t,isControlByBtn:n,scrollRef:e,onClick:J}))]})})}));var Ei=n(87933),Bi=n(72916),Fi=n(8453);let Ri=class extends yt.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,Bi.n)((({userId:e,itemOffset:t,offsetLeft:n,timeout:i})=>(0,Ei.O)(i).pipe((0,Fi.u)(this.getActions().setShowing({userId:e,itemOffset:t,offsetLeft:n}))))))}};(0,bt.__decorate)([(0,wt.h5)(),(0,bt.__metadata)("design:type",Function),(0,bt.__metadata)("design:paramtypes",[Object,Object]),(0,bt.__metadata)("design:returntype",void 0)],Ri.prototype,"setShowing",null),(0,bt.__decorate)([(0,wt.Mj)(),(0,bt.__metadata)("design:type",Function),(0,bt.__metadata)("design:paramtypes",[jt.c]),(0,bt.__metadata)("design:returntype",void 0)],Ri.prototype,"itemEnter",null),Ri=(0,bt.__decorate)([(0,kt.n)("SideNavigation")],Ri);var Mi=n(10287);const $i=(0,P.default)(D.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;"),Ni=(0,P.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;"),Ui=(0,P.default)("div",{target:"e1chvlyy2"})({display:"flex"},"label:DivTitleWrapper;"),qi=(0,P.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;"),zi=(0,P.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;"),Wi=(0,P.default)("div",{target:"e1chvlyy5"})([{height:"16px",":hover":{textDecoration:"none"}}],"label:StyledIcon;"),Hi=(0,P.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 Vi=n(97625),Ki=n(40500),Ji=n(77976);const Xi=(0,Ji.w)($i),Gi=(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,ee.dG)(e)}),[]);return(0,p.jsxs)(Xi,{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)(zi,{children:(0,p.jsx)(Wi,{tabIndex:-1,style:{color:"#FFFFFF"},children:"tag"===l?(0,p.jsx)(Vi.U,{size:16}):(0,p.jsx)(Ki.B,{size:16})})}),(0,p.jsxs)(Ni,{tabIndex:-1,children:[(0,p.jsx)(Ui,{children:(0,p.jsx)(qi,{"data-e2e":`${l}-title`,children:a})}),(0,p.jsx)(Hi,{"data-e2e":`${l}-author`,children:s})]})]})}))),Yi=(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,Mi.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,X.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)=>V()(e,t))),_=(0,o.useRef)(0);_.current=g.length;const{needRefresh:b,setPathname:y,pathname:w}=(0,G.$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)&&I.t.handleClickNav({target:"see_more"})}),[x,v,s,u,l]),L=(0,o.useRef)([]),T=(0,o.useCallback)((e=>t=>{L.current[e]=t}),[]),{shouldShowToggle:P,showMoreText:D,isSeeMore:A}=_e({hasMore:v,isShowingMore:s,totalLength:f,showNum:u,loading:m}),O=k.current&&A&&v||!v&&!A,E=J((0,o.useCallback)((()=>{var e;S(),(v&&A||!v&&A)&&(null===(e=L.current[_.current-1])||void 0===e||e.setFocus())}),[S,v,A]),[S,v,A]),B=n(a.length>0||!l?"pcWeb_leftNavBar_suggestForYou":"desktop_logged_in_profile");if(!l&&i&&0===a.length)return null;let F=0;return(0,p.jsxs)(Ie,{loading:!i,listType:"following",title:B,children:[(0,p.jsxs)(Te,{children:[a.map(((e,t)=>{const{type:n,title:i}=e;return"author"===n?(0,p.jsx)("li",{children:(0,p.jsx)(ge,{index:t,isSuggestedContent:!0,ref:T(t),uniqueId:i,e2ePrefix:"following",itemType:"following",enterMethod:"click_navigation"})},e.title):(0,p.jsx)("li",{children:(0,p.jsx)(Gi,{ref:T(t),item:e,index:t})},e.title)})),g.map(((e,t)=>!e||c.includes(e)?(F++,null):(0,p.jsx)("li",{children:(0,p.jsx)(ge,{index:t+a.length-F,ref:T(t+a.length-F),uniqueId:e,e2ePrefix:"following",itemType:"following",enterMethod:"click_navigation"})},e))),0===g.length&&0===a.length&&(0,p.jsx)(Le,{children:n("sidenav_follow_hint")})]}),m?(0,p.jsx)("div",{style:{marginTop:"4px"},children:(0,p.jsx)(ve,{})}):null,P&&(0,p.jsxs)(Ce,{"data-e2e":"following-see-all",onClick:S,onKeyDown:E,"aria-expanded":O,"aria-labelledby":"side-nav-following-see-all",children:[(0,p.jsx)(je,{id:"side-nav-following-see-all",children:D}),(0,p.jsx)(Se,{fill:e.colors.Primary,width:16,height:16,up:s})]})]})}));var Zi=n(47726);const Qi=(e,t)=>e?e.replace(/{lang}/g,t):"",eo=(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;"),oo=(0,Ji.w)(io),ao=(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,en.B)({intersectionHandler:u,element:c,threshold:[.5]}),e?(0,p.jsx)(no,{ref:c,style:l,children:e.map((e=>(0,p.jsx)(oo,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 lo=n(97706);const ro=(0,P.default)("div",{target:"e12xcklg0"})((({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;"),so=e=>[(0,k.zy)({theme:e,color:"TextTertiary",fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P4",isLink:!0}),{display:"inline-block",marginRight:"6px",marginTop:"5px"}],co=(0,P.default)("span",{target:"e12xcklg1"})((({theme:e})=>so(e)),"label:SpanCopyright;");co.defaultProps=Object.assign(Object.assign({},co.defaultProps),{"data-e2e":"copyright"});const uo=(0,P.default)("div",{target:"e12xcklg2"})({marginBottom:"8px",position:"relative"},"label:DivMoreContainer;"),po=(0,P.default)("span",{target:"e12xcklg3"})((({theme:e})=>so(e)),{cursor:"pointer"},"label:SpanMoreText;");po.defaultProps=Object.assign(Object.assign({},po.defaultProps),{"data-e2e":"more-link"});const ho=(0,P.default)("div",{target:"e12xcklg4"})({padding:"15px 16px 20px",width:"fit-content",maxWidth:"200px"},"label:DivMorePopupWrapper;"),go=(0,P.default)(D.N_,{target:"e12xcklg5"})((({theme:e})=>[(0,k.zy)({theme:e,typography:"P2",fontWeight:"semiBold"}),{display:"block",":hover":{textDecoration:"none",color:e.colors.Primary},"& + &":{marginTop:"20px"}}]),"label:StyledMoreLink;"),mo=(0,P.default)("div",{target:"e12xcklg6"})((({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;"),vo=(0,P.default)(be.A,{target:"e12xcklg7"})((({theme:{direction:e}})=>[(0,k.mp)({direction:e,marginStart:"6px"}),{width:"11px"}]),"label:StyledChevronDownFill;"),fo=(0,P.default)("h4",{target:"e12xcklg8"})((({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;"),xo=(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,to.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),_t.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)(ro,{isControlByBtn:e,isShowAll:t,children:[g&&(0,p.jsx)(hn,{}),n&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(fo,{first:!0,isActive:k("Company"),isCollapsible:w,onClick:()=>y("Company"),children:n.title}),(!w||k("Company"))&&(0,p.jsx)(ao,{navList:n.children,e2e:"page-link",pageListType:"Company"})]}),i&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(fo,{isCollapsible:w,isActive:k("Program"),onClick:()=>y("Program"),children:i.title}),(!w||k("Program"))&&(0,p.jsx)(ao,{navList:i.children,e2e:"program-link",pageListType:"Program"})]}),a&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(fo,{isCollapsible:w,isActive:k("Legal"),onClick:()=>y("Legal"),children:a.title}),(!w||k("Legal"))&&(0,p.jsx)(ao,{navList:a.children,e2e:"legal-link",pageListType:"Legal"})]}),m&&!v&&(0,p.jsxs)(mo,{onClick:()=>f(!0),children:[r("feed_caption_see_more"),(0,p.jsx)(vo,{})]}),l.length>0&&(0,p.jsx)(uo,{children:(0,p.jsxs)(po,{onMouseEnter:u,onMouseLeave:h,children:[r("more"),(0,p.jsx)(lo.z,{active:c,placement:"topLeft",verticalOffset:5,children:(0,p.jsx)(ho,{children:l.map((({title:e,href:t})=>(0,p.jsx)(go,{forceSSR:!0,to:t,target:"_blank",children:e},e)))})})]})}),(0,p.jsxs)(co,{children:["© ",j]})]})})),_o=(0,o.memo)((function({lang:e,isControlByBtn:t,isShowAll:n}){const i=(0,Zi.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:eo(e,i.navTabs)},programList:{title:o.navTitle,children:eo(e,o.navTabs)},legalList:{title:a.navTitle,children:eo(e,a.navTabs)},moreList:{title:l.navTitle,children:eo(e,l.navTabs)}}})(e,i);return(0,p.jsx)(xo,{isControlByBtn:t,isShowAll:n,companyList:o,programList:a,legalList:l,moreList:r&&r.children.length>0?r.children:[]})}));var bo=n(43723),yo=n(14374),wo=n(31209),ko=n(39785);const jo=(0,ko.M)({csr:e=>Promise.resolve({})}),Co={},So=(0,yo._)((0,bo.p)("webappFooterAtom@tiktok/webapp-atoms",Co),{rehydrationKey:"launcher.sideNavPage.webappFooter"}),{useAtomService:Lo,useServiceDispatchers:To,useServiceState:Io}=(0,wo.i)(So,((e,t)=>({fetchWebappFooterContent({locale:n,countryCode:i}){return o=this,a=void 0,r=function*(){try{const o=yield jo({locale:n,countryCode:i}),a=e(So);t(So,Object.assign(Object.assign({},a),o))}catch(e){console.error("Error fetching footer content:",e),t(So,{})}},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(So,Co)}})));var Po;!function(e){e.Sidebar="sidebar",e.Footer="footer"}(Po||(Po={}));const Do=(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]=Lo();return(0,xe.o)((()=>a.fetchWebappFooterContent({locale:n,countryCode:i})),[n,i,a]),(0,p.jsx)(Zi.n4,{slug:"footer-webapp",locale:n||"en",countryCode:i||"US",preview:!1,initialState:o,children:(0,p.jsx)(_o,{lang:n||"en",isShowAll:t,isControlByBtn:e})})}));var Ao=n(54888);const Oo=(0,o.memo)((function({isControlByBtn:e,isShowAll:t}){const n=(0,C.s)(),{region:i}=(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:o}=(0,h.P)(Ao.$,{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:a,programList:l,legalList:s}=(0,u.Db)(),d=(null!=o?o:[]).filter((e=>-1===(null==s?void 0:s.children.findIndex((({key:t})=>t===e.key)))||"copyright-policy"===e.key));return"DE"===(null==i?void 0:i.trim().toUpperCase())&&d.splice(3,0,{href:"https://www.tiktok.com/transparency/de-de/german-state-treaty/",key:"MStV",title:"Transparenz (MStV)"}),"AT"===(null==i?void 0:i.trim().toUpperCase())&&d.push({href:"https://www.tiktok.com/transparency/de-de/koplg-about/",key:"kopig",title:"KoPi-G"}),(0,p.jsx)(xo,{isControlByBtn:e,isShowAll:t,companyList:a,programList:l,legalList:s,moreList:d})}));const Eo=(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:A}=(0,h.P)(w.C6),O=(0,Mi.SE)();(0,o.useEffect)((()=>{(()=>{var e,t,n,i;e=this,t=void 0,i=function*(){yield O.initMlModel(),yield O.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())}))})()}),[O]);const E=Boolean(C),B=(0,o.useRef)(null),[{profileUserId:F,offsetTop:R,offsetLeft:M},$]=(0,g.S)(Ri,{selector:({profileUserId:e,itemOffset:t,offsetLeft:n})=>({profileUserId:e,offsetTop:t,offsetLeft:n}),dependencies:[]}),{isMacElectronApp:N,isElectronApp:U}=(0,_.B)(),q=(0,s.TP)(),[z,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=B.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)),$.itemEnter({userId:e,itemOffset:r,timeout:1e3,offsetLeft:n})}),[$]),K=(0,o.useCallback)((()=>{$.itemEnter({userId:null,timeout:0})}),[$]),J=(0,o.useCallback)((()=>{$.itemEnter({userId:F,timeout:0})}),[$,F]),X=(0,o.useCallback)((()=>{$.itemEnter({userId:null,timeout:500})}),[$]),G=(0,o.useCallback)((()=>{F&&$.itemEnter({userId:null,timeout:0})}),[$,F]);(0,o.useEffect)((()=>{const e=v()((()=>{$.itemEnter({userId:null,timeout:0})}),1e3);return window.addEventListener("scroll",e),()=>{window.addEventListener("scroll",e)}}),[$]);const Y=(0,g.w)(w.p2);(0,o.useEffect)((()=>{(null==C?void 0:C.uid)&&!P&&(null==A?void 0:A.showComputerLiveEntrance)&&Y.getCreateRoomInfo({})}),[Y,C,null==A?void 0:A.showComputerLiveEntrance,P]);const Z=z,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=B.current)||void 0===e?void 0:e.dom)&&void 0!==t?t:null})}),[u,c]),(0,o.useEffect)((()=>{F&&X()}),[X,I]),(0,p.jsxs)(pi.V$,{transStatus:n,extraWidth:a,isShowAll:c,style:ee,isControlByBtn:m,children:[(0,p.jsx)(pi.Fb,{extraTop:i,extraWidth:a,onScroll:G,ref:B,isShowAll:c,isControlByBtn:m,shouldTransparent:j,children:(0,p.jsxs)(pi.R1,{isShowAll:c,isControlByBtn:m,children:[N&&(0,p.jsx)(W,{style:{marginBottom:"8px",marginInlineStart:"8px"},controlledCom:m,controlledExpanded:c}),(0,p.jsx)(Oi,{scrollRef:B,isShowAll:c,isControlByBtn:m}),(null==A?void 0:A.showComputerLiveEntrance)&&!U&&(0,p.jsx)(En,{scrollRef:B,isShowAll:c,isControlByBtn:m}),!E&&(0,p.jsx)(qn,{isShowAll:c,isControlByBtn:m}),t||(0,p.jsxs)(p.Fragment,{children:[!q&&(0,p.jsx)(ft,{onEnterItem:V,onLeaveItem:K}),E&&!D&&(0,p.jsx)(Pe,{}),D&&(0,p.jsx)(Yi,{}),T&&(0,p.jsx)(pn,{}),!q&&(0,p.jsx)(Qt,{}),(0,p.jsx)(pi.fd,{})]}),S||L?(0,p.jsx)(Do,{lang:e,isShowAll:c,isControlByBtn:m,reportBotImpression:l}):(0,p.jsx)(Oo,{isShowAll:c,isControlByBtn:m,reportBotImpression:l})]})}),m&&(0,p.jsx)(w.bG,{}),F&&(0,p.jsx)(y.t,{followTheme:"primary",paddingTop:24,paddingStart:Z?20:0,hideSignature:!0,fixedLeft:Z?52:M,top:R,uniqueId:F,onMouseEnter:J,onMouseLeave:X})]})}));var Bo=n(72898),Fo=n(98819),Ro=n(33543);const Mo=(0,Bo.I)("div",{target:"e1u58fka0"})({width:Ro.pJ,flexShrink:0,zIndex:99},(0,k.jJ)({max:Fo.f.Medium,style:{width:Ro.dK}}),"label:DivSideNavPlaceholderContainer;"),$o=(0,Bo.I)("div",{target:"e1u58fka1"})((({$isNavFullOpen:e,$shouldTransparent:t,theme:{direction:n,colors:i}})=>[{width:e?Ro.pJ:Ro.dK,height:"100vh",display:"flex",alignItems:"center",overflowY:"hidden",overflowX:"clip",overscrollBehavior:"contain",flexDirection:"column",flexShrink:0,backgroundColor:t?"transparent":xi.Tj4.UIPageFlat1,position:"fixed",boxSizing:"content-box"},(0,k.jJ)({max:Fo.f.Medium,style:{width:Ro.dK,["ltr"===n?"borderRight":"borderLeft"]:e?`1px solid ${i.ShadowPrimary}`:""}})]),"label:DivSideNavContainer;"),No=(0,Bo.I)("div",{target:"e1u58fka2"})({display:"flex",flexDirection:"column",paddingTop:"1.25rem",paddingBottom:"0.5rem",flexShrink:0,gap:"1rem",width:"100%",alignItems:"center"},"label:DivFixedContentContainer;"),Uo=(0,Bo.I)("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:Fo.f.Medium,style:{paddingInlineStart:"unset",justifyContent:"center"}})]),"label:DivLogoWrapper;"),qo=(0,Bo.I)("div",{target:"e1u58fka4"})((({$isNavFullOpen:e})=>[{display:"flex"},(0,k.jJ)({max:Fo.f.Medium,style:{paddingInlineStart:"unset",justifyContent:"center"}},{min:Fo.f.Medium+1,style:{width:e?"13rem":"2.5rem"}})]),"label:DivSearchWrapper;"),zo=(0,Bo.I)("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;"),Wo=(0,Bo.I)("div",{target:"e1u58fka6"})((({$isNavFullOpen:e})=>[{marginTop:"1rem",marginBottom:"-0.5rem",width:e?Ro.pJ:Ro.dK,paddingInlineStart:"0.5rem"},(0,k.jJ)({max:Fo.f.Medium,style:{width:Ro.dK}})]),"label:DivLiveSuggestedContainer;"),Ho=(0,Bo.I)("div",{target:"e1u58fka7"})((({$isDrawerOpen:e})=>[{marginTop:"1rem",display:"flex",flexDirection:"column",alignItems:"center"},(0,k.jJ)({max:Fo.f.Medium,style:{display:"none"}}),{opacity:e?0:1,transition:`opacity ${Ro.Fd}ms`},e&&{display:"none"}]),"label:SubMainNavContentContainer;"),Vo=(0,Bo.I)("div",{target:"e1u58fka8"})((({$isDrawerOpen:e})=>[{display:"flex",flexDirection:"column",alignItems:"center"},(0,k.jJ)({max:Fo.f.Medium,style:{display:"none"}}),e&&{display:"none"}]),"label:SubMainNavFooterContainer;"),Ko=(0,Bo.I)("div",{target:"e1u58fka9"})((({$isDrawerOpen:e,$shouldTransparent:t})=>({position:"absolute",height:"100%",width:e?Ro.dK:`calc(${Ro.pJ} - 2.5rem)`,transition:`width ${Ro.Fd}ms`,top:0,left:0,backgroundColor:t&&!e?"transparent":xi.Tj4.UIPageFlat1})),"label:DivAnimationCover;");var Jo=n(72642),Xo=n(54731),Go=n(23461),Yo=n(78121),Zo=n(62541),Qo=n(4212),ea=n(88479),ta=n(14496),na=n(6585);const ia={drawerType:0,text:"web_navigation_activity",Icon:ea.A,ActiveIcon:ta.A,teaReport:()=>{},e2eTag:"nav-activity"},oa={drawerType:1,text:"more",Icon:Xo.A,ActiveIcon:Xo.A,teaReport:()=>{},iconSize:24,e2eTag:"nav-more-menu"},aa={drawerType:2,text:"Search",Icon:Go.A,ActiveIcon:Go.A,teaReport:()=>{},e2eTag:"nav-search"},la={path:"/following",Icon:Xn.A,ActiveIcon:Yn,text:"Following",teaReport:()=>{I.t.handleClickNav({target:"following"}),ne.q.handleEnterFollowing({enter_method:"navigation_bar"})},hoverTeaReportParams:{type:"following_icon"},linkProps:{"data-e2e":"nav-following",disableAutoLang:!1},iconSize:24},ra={path:"/friends",Icon:ti.A,ActiveIcon:ni.A,text:"Friends",teaReport:()=>{I.t.handleClickNav({target:"friends"})},hoverTeaReportParams:{type:"friends"},linkProps:{"data-e2e":"nav-friends",disableAutoLang:!1}},sa={path:"/explore",Icon:zn.A,ActiveIcon:Wn.A,text:"pc_web_explore_main_header",teaReport:()=>{I.t.handleClickNav({target:"explore"}),ne.q.handleEnterExplore({enter_method:"click_explore_tab"})},hoverTeaReportParams:{type:"explore"},linkProps:{"data-e2e":"nav-explore",disableAutoLang:!1}},da={path:"/tiktokstudio/upload?from=webapp",Icon:Hn.A,ActiveIcon:Hn.A,text:"Upload",teaReport:()=>{I.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:na.H.UploadKey},ca={path:"/messages",Icon:Vn.A,ActiveIcon:Vn.A,text:"webdm_message_button",teaReport:()=>{I.t.handleClickNav({target:"messages"})},hoverTeaReportParams:{type:"messages"},linkProps:{"data-e2e":"nav-messages",disableAutoLang:!1},iconSize:24},ua={path:"/",Icon:ai.A,ActiveIcon:li.A,text:"Profile",teaReport:()=>{I.t.handleClickNav({target:"profile"})},hoverTeaReportParams:{type:"profile"},linkProps:{"data-e2e":"nav-profile",disableAutoLang:!1},iconSize:24},pa=e=>({path:"/live",Icon:ii.A,ActiveIcon:oi.A,text:"ttlive_navigation_live_entrance",teaReport:()=>{I.t.handleClickNav({target:"live"}),ne.q.handleEnterLiveDiscover({enter_method:"navigation_bar",click_type:e})},hoverTeaReportParams:{type:"live"},linkProps:{"data-e2e":"nav-discover-live",disableAutoLang:!1}}),ha={entranceType:"back",Icon:Yo.A,ActiveIcon:Yo.A,text:"pm_mt_viewer_overlay_back_btn",teaReport:()=>{},linkProps:{"data-e2e":"nav-live-back",disableAutoLang:!1},iconSize:12},ga={entranceType:"goLive",Icon:Zo.A,ActiveIcon:Zo.A,text:"go_live",teaReport:()=>{},linkProps:{"data-e2e":"nav-go-live",disableAutoLang:!1},iconSize:24},ma={entranceType:"creatorTools",Icon:Qo.A,ActiveIcon:Qo.A,text:"pcWeb_navi_creatorTools",teaReport:()=>{},linkProps:{"data-e2e":"nav-creator-tools",disableAutoLang:!1},iconSize:24};var va=n(44061);const fa={minWidth:"0",height:"2.5rem",padding:"0"},xa={width:"2.5rem","& > div":{"& > .TUXButton-label":{display:"none"}}},_a=(0,Bo.I)(xi.I05,{target:"ej7on1p0"})((({$isDrawerOpen:e,$isNavFullOpen:t,$isActive:n,$fixedHover:i})=>[(0,k.jJ)({max:Fo.f.Medium,style:xa},{min:Fo.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 ${Ro.Fd}ms`}}}}),!t&&{width:"2.5rem","& > div":{"& > .TUXButton-label":{width:"0",margin:"0 !important",opacity:0,transition:`opacity ${Ro.Fd}ms`}}},{":not(:hover)":{backgroundColor:i?xi.Tj4.UIShapeNeutral4:"unset"},"&.TUXButton.TUXButton":Object.assign(Object.assign({},fa),{":hover":{backgroundColor:xi.Tj4.UIShapeNeutral4}})},n&&{"&.TUXButton.TUXButton":{color:xi.Tj4.UITextPrimaryDisplay}}]),"label:StyledTUXNavButton;"),ba=(0,Bo.I)(xi.N0Y,{target:"ej7on1p1"})((0,k.jJ)({min:Fo.f.Medium+1,style:{display:""}}),"label:StyledTUXTooltip;"),ya=(0,Bo.I)("div",{target:"ej7on1p2"})({width:"2rem",height:"2rem",justifyContent:"center",alignItems:"center",display:"flex",position:"relative"},"label:DivIconWithRedDotContainer;"),wa=(0,Bo.I)("div",{target:"ej7on1p3"})((({theme:e})=>[{position:"absolute",top:"0"},(0,k.mp)({direction:e.direction,end:"0"})]),"label:DivRedDotContainer;"),ka=(0,Bo.I)("div",{target:"ej7on1p4"})({display:"flex",flexDirection:"column",gap:"0.25rem"},"label:DivMainNavContainer;"),ja=(0,Bo.I)(xi.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)"}},fa)},(0,k.jJ)({max:Fo.f.Medium,style:xa},{min:Fo.f.Medium+1,style:t?{width:e?"2.5rem":"13rem",transition:`width ${Ro.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:xi.Tj4.UITextPlaceholder})}}:{width:e?"2.5rem":"13rem",transition:`width ${Ro.Fd}ms`}}),!t&&xa]),"label:StyledTUXSearchButton;"),Ca=(0,Bo.I)("div",{target:"ej7on1p6"})((({theme:e})=>[{position:"absolute",top:"3px"},(0,k.mp)({direction:e.direction,end:"1px"})]),"label:DivFollowingRedDotContainer;"),Sa=(0,Bo.I)("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;"),La=(0,Bo.I)("div",{target:"ej7on1p8"})((({theme:e})=>({width:"1.6rem",height:"1.6rem",justifyContent:"center",alignItems:"center",display:"flex",position:"relative",backgroundColor:e.colors.UIShapeNeutral4,borderRadius:"1.6rem"})),"label:DivLiveBackBtnBg;"),Ta=(0,Bo.I)("div",{target:"ej7on1p9"})({marginBottom:"10px"},"label:DivLiveBackBtnWrapper;");var Ia=n(12016),Pa=n(26263),Da=n(26290),Aa=n(57741),Oa=n(26236);const Ea=n.p+"1636a3fa705aa30e24a2.png",Ba=n.p+"3c0048bedd74670755ca.png",Fa=n.p+"5b895cdb52ca004749f7.png",Ra=Bt.i7`
0%, 100% {
transform: scaleY(1);
}
50% {
transform: scaleY(0.5);
}
`,Ma=Bt.i7`
from {
opacity: 0;
}
to {
opacity: 1;
}
`,$a=(0,P.default)("div",{target:"egn9vfa0"})({display:"flex",width:32,height:32},"label:LiveSideNavIconWrapper;"),Na=(0,P.default)(oe.i,{target:"egn9vfa1"})({margin:"auto",height:"100% !important",opacity:0,animation:`${Ma} .6s ease-in-out forwards`},"label:StyledUserAvatar;"),Ua=(0,P.default)(ii.A,{target:"egn9vfa2"})({margin:"auto",width:"100%",height:"100%"},"label:StyledOldLiveIcon;"),qa=(0,P.default)(oi.A,{target:"egn9vfa3"})({margin:"auto",width:"100%",height:"100%"},"label:StyledOldLiveIconFill;"),za=(0,P.default)(Aa.A,{target:"egn9vfa4"})({margin:"auto",width:"100%",height:"100%"},"label:StyledLiveIcon;"),Wa=(0,P.default)(Oa.A,{target:"egn9vfa5"})({margin:"auto",width:"100%",height:"100%"},"label:StyledLiveIconFill;"),Ha=(e,t)=>e?Fa:t.isDark?Ea:Ba,Va=(0,P.default)("div",{target:"egn9vfa6"})((({theme:e,isActive:t})=>({display:"flex",width:32,height:32,backgroundImage:`url(${Ha(t,e)})`,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",justifyContent:"center",alignItems:"end"})),"label:DivAniLiveIcon;"),Ka=P.default.div`
display: flex;
align-items: flex-end;
height: 8px;
margin-bottom: 10px;
gap: 2px;
`,Ja=(0,P.default)("div",{target:"egn9vfa7"})((({theme:e,isActive:t})=>({width:"2px",height:"8px",backgroundColor:t?e.colors.ConstTextInverse:e.colors.UIText1,transformOrigin:"bottom",animation:`${Ra} 1s infinite`,":nth-of-type(1)":{animationDelay:"0s"},":nth-of-type(2)":{animationDelay:"0.2s"},":nth-of-type(3)":{animationDelay:"0.4s"}})),"label:DivAniBar;");function Xa(){var e;const{abTestVersion:t}=(0,d.L$)((0,fe.W)((()=>["abTestVersion"]),[])),n=(0,o.useMemo)((()=>function(){const e=null===window||void 0===window?void 0:window.location.href;if(!e)return null;try{return new URL(e).searchParams.get("live_nav_entrance")}catch(e){return null}}()),[]);return n||(null!==(e=function(e){var t,n;return null===(n=null===(t=null==e?void 0:e.parameters)||void 0===t?void 0:t.live_nav_entrance)||void 0===n?void 0:n.vid}(t))&&void 0!==e?e:"v0")}var Ga;!function(e){e.LiveShow="livesdk_live_show",e.LiveClick="livesdk_rec_live_play",e.GoLiveHover="livesdk_sidebar_go_live_hover",e.CreatorToolsHover="livesdk_sidebar_creator_tools_hover",e.LiveBackClick="livesdk_sidebar_back_click"}(Ga||(Ga={}));const Ya=e=>{_t.f.event("livesdk_live_show",{enter_from_merge:e.enterFromMerge,enter_method:e.enterMethod,request_id:e.requestId,room_id:e.roomId,action_type:e.actionType,anchor_id:e.anchorId})},Za=e=>{_t.f.event("livesdk_rec_live_play",{enter_from_merge:e.enterFromMerge,enter_method:e.enterMethod,request_id:e.requestId,room_id:e.roomId,action_type:e.actionType,anchor_id:e.anchorId})},Qa=e=>{_t.f.event("livesdk_sidebar_go_live_hover",Object.assign({},e))},el=e=>{_t.f.event("livesdk_sidebar_creator_tools_hover",Object.assign({},e))},tl=e=>{var t,n,i;const{isActive:a,renderData:l}=e,r=Xa(),s=(0,o.useCallback)((e=>({src:null==e?void 0:e.avatar_thumb.url_list[0],uniqueId:null==e?void 0:e.display_id,pureLivePath:e?(0,Be.G2o)({uniqueId:null==e?void 0:e.display_id,secUid:null==e?void 0:e.sec_uid}):""})),[]),d=(0,o.useMemo)((()=>"v0"!==r&&l.length),[l.length,r]),c=(0,o.useCallback)(((e,t)=>{var n,i;e.preventDefault(),e.stopPropagation();const o=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.owner,a=_t.f.commonParams.page_name,l="live_entrance_head";Za({enterFromMerge:a,enterMethod:l,requestId:null==t?void 0:t.rid,roomId:null===(i=null==t?void 0:t.data)||void 0===i?void 0:i.id_str,anchorId:null==o?void 0:o.id_str,actionType:"click"});const{pureLivePath:r}=s(o);window.open(`${r}?enter_from_merge=${a}&enter_method=${l}`,"_blank")}),[s]),u=(0,o.useMemo)((()=>d&&"v2"===r),[d,r]),[h,g]=(0,o.useState)(0);(0,o.useEffect)((()=>{if(!u)return;const e=setInterval((()=>{g((e=>(e+1)%l.length))}),5e3);return()=>clearInterval(e)}),[u,l.length]);const m=null!==(t=l[h])&&void 0!==t?t:l[0],v=null===(n=null==m?void 0:m.data)||void 0===n?void 0:n.owner,f=(0,o.useRef)(new Set);(0,o.useEffect)((()=>{var e;d&&v&&!f.current.has(v.id_str)&&(Ya({enterFromMerge:_t.f.commonParams.page_name,enterMethod:"live_entrance_head",requestId:m.rid,roomId:null===(e=m.data)||void 0===e?void 0:e.id_str,anchorId:null==v?void 0:v.id_str,actionType:"click"}),f.current.add(v.id_str))}),[h,l.length]);const x=(0,o.useMemo)((()=>"v2"===r?(0,p.jsx)(Va,{isActive:a,children:(0,p.jsxs)(Ka,{children:[(0,p.jsx)(Ja,{isActive:a}),(0,p.jsx)(Ja,{isActive:a}),(0,p.jsx)(Ja,{isActive:a})]})}):"v1"===r?a?(0,p.jsx)(Wa,{}):(0,p.jsx)(za,{}):a?(0,p.jsx)(qa,{}):(0,p.jsx)(Ua,{})),[a,r]);return(0,p.jsx)($a,{children:d?(0,p.jsx)(Na,Object.assign(Object.assign({liveTheme:6,size:32},s(v)),{isShowLiveTag:!1,onClick:e=>c(e,m)}),null!==(i=null==v?void 0:v.id_str)&&void 0!==i?i:"0"):x})},nl=(0,P.default)("div",{target:"e4yn4440"})({display:"flex",width:"100%",height:"100%"},"label:DivTriggerButtonWrapper;"),il=(0,P.default)("div",{target:"e4yn4441"})((({theme:e,status:t})=>({maxHeight:268,minWidth:248,borderRadius:12,boxShadow:"0px 5px 26px 0px rgba(0, 0, 0, 0.1)",background:e.colors.UISheetFlat3,padding:4,opacity:"open"===t?1:0,overflowX:"hidden",overflowY:"auto","&::-webkit-scrollbar":{display:"none"}})),"label:DivLiveFollowListWrapper;"),ol=(0,P.default)("ul",{target:"e4yn4442"})({listStyle:"none",padding:0,margin:0},"label:UlLiveFollowList;");var al=n(43303),ll=n(3761),rl=n(35948);const sl=(0,P.default)("li",{target:"e1wpvvah0"})((({theme:e})=>({display:"flex",padding:"6px 14px",margin:0,width:"100%",height:48,borderRadius:8,cursor:"pointer",gap:10,alignItems:"center",":hover":{background:e.colors.UIShapeNeutral4}})),"label:LiLiveFollowItem;"),dl=(0,P.default)("div",{target:"e1wpvvah1"})({height:"36px",with:"36px",position:"relative"},"label:DivUserAvatarWrapper;"),cl=(0,P.default)(oe.i,{target:"e1wpvvah2"})({height:"100%",with:"100%"},"label:StyledUserAvatar;"),ul=(0,P.default)("div",{target:"e1wpvvah3"})({height:"100%"},"label:DivUserInfo;"),pl=(0,P.default)("div",{target:"e1wpvvah4"})({display:"flex",alignItems:"center"},"label:DivUserUniqueIdName;"),hl=(0,P.default)("div",{target:"e1wpvvah5"})((({theme:e})=>[(0,k.zy)({theme:e,color:"TextPrimary",fontFamily:"TikTokFont",fontWeight:"bold",typography:"P2"})]),"label:SpanUserUniqueIdName;"),gl=(0,P.default)("div",{target:"e1wpvvah6"})((({theme:e})=>[(0,k.zy)({theme:e,color:"UIText1",fontFamily:"TikTokFont",fontWeight:"normal",typography:"P4"})]),"label:DivUserNickName;"),ml=(0,P.default)("div",{target:"e1seni5j0"})((({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",width:16,height:16,borderRadius:999,border:`2px solid ${e.colors.UISheetFlat3}`,backgroundColor:"rgba(251, 30, 112, 1)",position:"absolute",right:0,bottom:0})),"label:DivIconWrapper;"),vl=P.default.div`
display: flex;
align-items: flex-end;
height: 5px;
gap: 1px;
`,fl=Bt.i7`
0%, 100% {
transform: scaleY(1);
}
50% {
transform: scaleY(0.6);
}
`,xl=(0,P.default)("div",{target:"e1seni5j1"})((({theme:e})=>({width:"1px",height:"5px",backgroundColor:e.colors.ConstTextInverse,transformOrigin:"bottom",animation:`${fl} 1s infinite`,":nth-of-type(1)":{animationDelay:"0s"},":nth-of-type(2)":{animationDelay:"0.2s"},":nth-of-type(3)":{animationDelay:"0.4s"}})),"label:DivAniBar;"),_l=()=>(0,p.jsx)(ml,{children:(0,p.jsxs)(vl,{children:[(0,p.jsx)(xl,{}),(0,p.jsx)(xl,{}),(0,p.jsx)(xl,{})]})});var bl=n(28970);const yl=e=>{var t,n,i,a,l,r,s;const{item:d}=e,c=(0,o.useCallback)((e=>({src:null==e?void 0:e.avatar_thumb.url_list[0],uniqueId:null==e?void 0:e.display_id,pureLivePath:e?(0,Be.G2o)({uniqueId:null==e?void 0:e.display_id,secUid:null==e?void 0:e.sec_uid}):""})),[]),u=(0,o.useCallback)((e=>{var t,n,i,o;const a=_t.f.commonParams.page_name,l="live_entrance_hover_list";Za({enterFromMerge:a,enterMethod:l,requestId:e.rid,roomId:null===(t=e.data)||void 0===t?void 0:t.id_str,anchorId:null===(i=null===(n=e.data)||void 0===n?void 0:n.owner)||void 0===i?void 0:i.id_str,actionType:"click"});const{pureLivePath:r}=c(null===(o=e.data)||void 0===o?void 0:o.owner);window.open(`${r}?enter_from_merge=${a}&enter_method=${l}`,"_blank")}),[c]),h=(0,o.useRef)(null),g=(0,o.useRef)(!1),[m,v]=(0,bl.A)(h,{threshold:[.3]});return(0,o.useEffect)((()=>{var e,t,n;!g.current&&m&&v&&v>=.3&&(Ya({enterFromMerge:_t.f.commonParams.page_name,enterMethod:"live_entrance_hover_list",requestId:d.rid,roomId:null===(e=d.data)||void 0===e?void 0:e.id_str,anchorId:null===(n=null===(t=d.data)||void 0===t?void 0:t.owner)||void 0===n?void 0:n.id_str,actionType:"click"}),g.current=!0)}),[m,v]),(0,p.jsxs)(sl,{onClick:()=>u(d),ref:h,children:[(0,p.jsxs)(dl,{children:[(0,p.jsx)(cl,Object.assign({isShowLiveTag:!1,size:36},c(null===(t=d.data)||void 0===t?void 0:t.owner))),(0,p.jsx)(_l,{})]}),(0,p.jsxs)(ul,{children:[(0,p.jsxs)(pl,{children:[(0,p.jsx)(hl,{children:null===(i=null===(n=d.data)||void 0===n?void 0:n.owner)||void 0===i?void 0:i.display_id}),(null===(l=null===(a=d.data)||void 0===a?void 0:a.owner)||void 0===l?void 0:l.verified)?(0,p.jsx)(ie.s,{width:16,height:16}):null]}),(0,p.jsx)(gl,{children:null===(s=null===(r=d.data)||void 0===r?void 0:r.owner)||void 0===s?void 0:s.nickname})]})]})},wl=e=>{const{children:t,loading:n,renderData:i}=e,[a,l]=(0,o.useState)(!1),r="v0"===Xa()||n||0===i.length,s=!r&&a,{refs:d,context:c,floatingStyles:u}=(0,al.we)({placement:"right-start",open:s,onOpenChange:e=>{l(!r&&e)},whileElementsMounted:ll.ll,middleware:[(0,rl.cY)(8),(0,rl.BN)(),(0,rl.UU)()]}),{isMounted:h,status:g}=(0,al.$X)(c,{duration:300}),m=(0,al.Mk)(c,{delay:{open:0,close:0},handleClose:(0,al.iB)()}),v=(0,al.iQ)(c),f=(0,al.It)(c,{role:"dialog"}),x=(0,al.s9)(c),{getReferenceProps:_,getFloatingProps:b}=(0,al.bv)([m,v,f,x]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(nl,Object.assign(Object.assign({ref:d.setReference},_()),{children:t})),h?(0,p.jsx)(al.XF,{children:(0,p.jsx)(il,Object.assign(Object.assign({ref:d.setFloating,style:Object.assign({transition:"opacity 300ms cubic-bezier(0.65, 0, 0.35, 1)",zIndex:4500},u),status:g},b()),{children:(0,p.jsx)(ol,{children:i.map(((e,t)=>{var n;return(0,p.jsx)(yl,{item:e},(null===(n=e.data)||void 0===n?void 0:n.id_str)||t)}))})}))}):null]})},kl=(0,P.default)("div",{target:"erqqgfs0"})({display:"flex",width:"100%",height:"100%"},"label:DivTriggerButtonWrapper;"),jl=(0,P.default)("div",{target:"erqqgfs1"})((({theme:e,status:t})=>({maxHeight:268,minWidth:248,borderRadius:12,boxShadow:"0px 5px 26px 0px rgba(0, 0, 0, 0.1)",background:e.colors.UISheetFlat3,padding:4,opacity:"open"===t?1:0,overflowX:"hidden",overflowY:"auto","&::-webkit-scrollbar":{display:"none"}})),"label:DivLiveFloatWrapper;"),Cl=(0,P.default)("ul",{target:"erqqgfs2"})({listStyle:"none",padding:0,margin:0},"label:UlFloatList;"),Sl=(0,P.default)("li",{target:"erqqgfs3"})((({theme:e})=>[(0,k.zy)({theme:e,color:"UIText1",fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P3"}),{display:"flex",alignItems:"center",borderRadius:8,padding:14,cursor:"pointer",":hover":{backgroundColor:e.colors.UIShapeNeutral4}}]),"label:LiFloatItemWrapper;"),Ll=e=>{const{children:t,floatChildren:n,hideFloat:i,handleFloatShow:a}=e,[l,r]=(0,o.useState)(!1),s=!i&&l,{refs:d,context:c,floatingStyles:u}=(0,al.we)({placement:"right-start",open:s,onOpenChange:e=>{r(!i&&e)},whileElementsMounted:ll.ll,middleware:[(0,rl.cY)(8),(0,rl.BN)(),(0,rl.UU)()]}),{isMounted:h,status:g}=(0,al.$X)(c,{duration:300});(0,o.useEffect)((()=>{h&&(null==a||a())}),[h]);const m=(0,al.Mk)(c,{delay:{open:0,close:0},handleClose:(0,al.iB)()}),v=(0,al.iQ)(c),f=(0,al.It)(c,{role:"dialog"}),x=(0,al.s9)(c),{getReferenceProps:_,getFloatingProps:b}=(0,al.bv)([m,v,f,x]);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(kl,Object.assign(Object.assign({ref:d.setReference},_()),{children:t})),h?(0,p.jsx)(al.XF,{children:(0,p.jsx)(jl,Object.assign(Object.assign({ref:d.setFloating,style:Object.assign({transition:"opacity 300ms cubic-bezier(0.65, 0, 0.35, 1)",zIndex:4500},u),status:g},b()),{children:n}))}):null]})};var Tl=n(8227),Il=n(56070),Pl=n(58673);const Dl=e=>{var t,n,i;const{children:a}=e,l=(0,C.s)(),r=(0,fe.W)((()=>["user","language"]),[]),{hasOBSLivePermission:s}=(e=>{const{data:t,isSuccess:n}=(0,Pl.I)({enabled:e,queryKey:["/webcast/room/live_podcast/"],queryFn:()=>function(e,t){const{method:n="GET"}=t;switch(n.toUpperCase()){case"GET":default:return Il.h.get(e,t);case"POST":return Il.h.post(e,t)}}("/webcast/room/live_podcast/",{baseUrlType:4})});return(0,o.useMemo)((()=>{var e,i,o,a;return n&&(null===(e=t.data)||void 0===e?void 0:e.can_be_live_podcast)?{hasOBSLivePermission:null!==(a=null===(o=null===(i=t.data)||void 0===i?void 0:i.live_scenario)||void 0===o?void 0:o.enable_live_third_party)&&void 0!==a&&a}:{hasOBSLivePermission:!1}}),[n,t])})(!!(null==r?void 0:r.user)),d=(0,o.useCallback)((()=>{var e,t;Qa({user_id:null===(e=null==r?void 0:r.user)||void 0===e?void 0:e.uid,action_type:"click",entrance_type:"golive_ls"});const n=`${Tl.vI.studioDownload}?enter_from=web_live_nav&open_ls=1&lang=${null!==(t=null==r?void 0:r.language)&&void 0!==t?t:"en"}`;window.open(n,"_blank")}),[null==r?void 0:r.language,null===(t=null==r?void 0:r.user)||void 0===t?void 0:t.uid]),c=(0,o.useCallback)((()=>{var e,t;Qa({user_id:null===(e=null==r?void 0:r.user)||void 0===e?void 0:e.uid,action_type:"click",entrance_type:"golive_obs"});const n=`${w.Ox}/producer?enter_from=web_live_nav&lang=${null!==(t=null==r?void 0:r.language)&&void 0!==t?t:"en"}`;window.open(n,"_blank")}),[null==r?void 0:r.language,null===(n=null==r?void 0:r.user)||void 0===n?void 0:n.uid]),u=(0,o.useCallback)((()=>{var e,t;Qa({user_id:null===(e=null==r?void 0:r.user)||void 0===e?void 0:e.uid,action_type:"show",entrance_type:"golive_ls"}),s&&Qa({user_id:null===(t=null==r?void 0:r.user)||void 0===t?void 0:t.uid,action_type:"show",entrance_type:"golive_obs"})}),[null===(i=null==r?void 0:r.user)||void 0===i?void 0:i.uid,s]),h=(0,o.useMemo)((()=>(0,p.jsxs)(Cl,{children:[(0,p.jsx)(Sl,{onClick:d,children:l("ttlive_navigation_goLIVE_live_studio")}),s&&(0,p.jsx)(Sl,{onClick:c,children:l("ttlive_navigation_goLIVE_obs")})]})),[d,c,s,l]);return(0,p.jsx)(Ll,{floatChildren:h,hideFloat:!1,handleFloatShow:u,children:a})},Al=e=>{var t,n,i;const{children:a}=e,l=(0,C.s)(),r=(0,fe.W)((()=>["user","language"]),[]),s=(0,o.useCallback)((()=>{var e,t;el({user_id:null===(e=null==r?void 0:r.user)||void 0===e?void 0:e.uid,action_type:"click",entrance_type:"live_center"});const n=`${w.Ox}?enter_from=web_live_nav&lang=${null!==(t=null==r?void 0:r.language)&&void 0!==t?t:"en"}`;window.open(n,"_blank")}),[null==r?void 0:r.language,null===(t=null==r?void 0:r.user)||void 0===t?void 0:t.uid]),d=(0,o.useCallback)((()=>{var e,t;el({user_id:null===(e=null==r?void 0:r.user)||void 0===e?void 0:e.uid,action_type:"click",entrance_type:"live_creator_hub"});const n=`${w.x2}?enter_from=web_live_nav&lang=${null!==(t=null==r?void 0:r.language)&&void 0!==t?t:"en"}`;window.open(n,"_blank")}),[null==r?void 0:r.language,null===(n=null==r?void 0:r.user)||void 0===n?void 0:n.uid]),c=(0,o.useCallback)((()=>{var e,t;el({user_id:null===(e=null==r?void 0:r.user)||void 0===e?void 0:e.uid,action_type:"show",entrance_type:"live_creator_hub"}),el({user_id:null===(t=null==r?void 0:r.user)||void 0===t?void 0:t.uid,action_type:"show",entrance_type:"live_center"})}),[null===(i=null==r?void 0:r.user)||void 0===i?void 0:i.uid]),u=(0,o.useMemo)((()=>(0,p.jsxs)(Cl,{children:[(0,p.jsx)(Sl,{onClick:s,children:l("live_center_title")}),(0,p.jsx)(Sl,{onClick:d,children:l("live_creator_hub_name")})]})),[d,s,l]);return(0,p.jsx)(Ll,{floatChildren:u,hideFloat:!1,handleFloatShow:c,children:a})},Ol=(0,o.memo)((function(e){const{path:t,text:n,handleClick:i,handleMouseEnter:a,handleItemLeave:l,isDrawerOpen:r,isNavFullOpen:s,active:d,linkProps:c,forceSSR:u}=e,h=(0,C.s)(),{loading:g,renderData:m}=(0,w.oQ)("follow","web_h264"),v=(0,o.useCallback)((()=>(0,p.jsx)(tl,{isActive:d,loading:g,renderData:m})),[d,g,m]);return(0,p.jsx)(wl,{loading:g,renderData:m,children:(0,p.jsx)(D.N_,Object.assign(Object.assign({to:t,onClick:i},c),{forceSSR:u,onMouseEnter:a,onMouseLeave:l,tabIndex:-1,children:(0,p.jsx)(_a,{variant:"secondary",label:h(n),leadingIcon:v(),$isDrawerOpen:r,$isNavFullOpen:s,$isActive:d,"aria-label":h(n),role:"listitem"})}))})})),El=(0,o.memo)((function(e){const{text:t,onClick:n,onLoad:i,Icon:a,teaReport:l,entranceType:r,hoverTeaReportParams:s,e2eTag:d,topRightBadge:c,iconSize:u,handleBackClick:h}=e,g=(0,C.s)(),[{isDrawerOpen:m,isNavFullOpen:v},{closeDrawer:f}]=(0,vi.K5)((e=>({isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),pe.bN),x=(0,fe.W)((()=>["user"]),[]),{handleItemEnter:_,handleItemLeave:b}=(0,va.C)(),{handleSideBarTooltipHoverReport:y}=(0,w.JY)(),k=(0,o.useCallback)((e=>{var t,i;f(),l(),null==n||n(e),"back"===r&&(i={user_id:null===(t=null==x?void 0:x.user)||void 0===t?void 0:t.uid},_t.f.event("livesdk_sidebar_back_click",Object.assign({},i)),null==h||h())}),[null==x?void 0:x.user,f,r,h,n,l]),j=(0,o.useCallback)((()=>{(null==s?void 0:s.type)&&y(s.type),_()}),[_,y,null==s?void 0:s.type]);(0,o.useEffect)((()=>{null==i||i()}),[i]);const S=(0,o.useCallback)((()=>"back"===r?(0,p.jsx)(ya,{children:(0,p.jsx)(La,{style:{fontSize:`${null!=u?u:32}px`},children:(0,p.jsx)(a,{})})}):(0,p.jsxs)(ya,{style:{fontSize:`${null!=u?u:32}px`},children:[(0,p.jsx)(a,{}),(0,p.jsx)(wa,{children:c})]})),[a,r,u,c]);let L;switch(r){case"goLive":L=Dl;break;case"creatorTools":L=Al;break;case"back":L=Ta;break;default:L=o.Fragment}return(0,p.jsx)(L,{children:(0,p.jsx)(_a,{"data-e2e":d,variant:"secondary",onMouseEnter:j,label:g(t),onClick:k,leadingIcon:S(),$isDrawerOpen:m,$isNavFullOpen:v,$isActive:!1,"aria-label":g(t),role:"listitem","aria-pressed":!1,onMouseLeave:b})})}));function Bl({currentPath:e,configPath:t}){return e===t}const Fl=(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,e2eTag:h}=e,g=(0,C.s)(),[{drawerType:m,isDrawerOpen:v,isNavFullOpen:f},{closeDrawer:x,openDrawer:_}]=(0,vi.K5)((e=>({drawerType:e.drawerType,isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),pe.bN),{handleItemEnter:b,handleItemLeave:y}=(0,va.C)(),[k,j]=(0,o.useState)(s===m),{handleSideBarTooltipHoverReport:S}=(0,w.JY)(),L=k?l:a,T=(0,o.useCallback)((e=>{r(),null==n||n(e),k?x():(_(s),0===s&&_t.f.sendEvent("notification_panel_show",{enter_method:"click_inbox_button"}))}),[k,x,s,n,_,r]),I=(0,o.useCallback)((()=>{(null==d?void 0:d.type)&&S(d.type),b()}),[b,S,null==d?void 0:d.type]);(0,o.useEffect)((()=>{j(s===m&&v)}),[m,s,v]),(0,o.useEffect)((()=>{null==i||i()}),[i]);const P=(0,o.useCallback)((()=>(0,p.jsxs)(ya,{style:{fontSize:`${null!=u?u:32}px`},children:[(0,p.jsx)(L,{}),(0,p.jsx)(wa,{children:c})]})),[L,u,c]);return(0,p.jsx)(ba,{variant:"secondary",placement:"right",content:g(t),size:"small",visible:!1,children:(0,p.jsx)(_a,{"data-e2e":h,variant:"secondary",onMouseEnter:I,label:g(t),onClick:T,leadingIcon:P(),$isDrawerOpen:v,$isNavFullOpen:f,$isActive:k,"aria-label":g(t),role:"listitem","aria-pressed":k,onMouseLeave:y})})})),Rl=(0,o.memo)((function(e){const{path:t,text:n,onClick:i,onMouseEnter:a,onLoad:l,onCheckActive:r=Bl,Icon:s,ActiveIcon:d,teaReport:c,hoverTeaReportParams:u,topRightBadge:h,iconSize:g,linkProps:m,forceSSR:v,e2eTag:x}=e,_=(0,C.s)(),{pathname:b}=(0,f.useLocation)(),[y,k]=(0,o.useState)(r({configPath:t,currentPath:b})),{handleSideBarTooltipHoverReport:j}=(0,w.JY)(),[{isDrawerOpen:S,isNavFullOpen:L},{closeDrawer:T}]=(0,vi.K5)((e=>({isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),pe.bN),I=y?d:s,P=(0,o.useCallback)((e=>{T(),c(),null==i||i(e)}),[T,i,c]),{handleItemEnter:A,handleItemLeave:O}=(0,va.C)(),E=(0,o.useCallback)((()=>{(null==u?void 0:u.type)&&j(u.type),A(),null==a||a()}),[A,j,null==u?void 0:u.type,a]);(0,o.useEffect)((()=>{k(r({configPath:t,currentPath:location.pathname})&&!S)}),[r,t,b,S]),(0,o.useEffect)((()=>{null==l||l()}),[l]);const B=(0,o.useCallback)((()=>(0,p.jsxs)(ya,{style:{fontSize:`${null!=g?g:32}px`},children:[(0,p.jsx)(I,{}),(0,p.jsx)(wa,{children:h})]})),[I,g,h]);return(0,o.useMemo)((()=>"/live"===t),[t])?(0,p.jsx)(Ol,{path:t,text:n,handleClick:P,handleMouseEnter:E,handleItemLeave:O,isDrawerOpen:S,isNavFullOpen:L,active:y,linkProps:m,forceSSR:v}):(0,p.jsx)(ba,{variant:"secondary",placement:"right",content:_(n),size:"small",visible:!1,children:(0,p.jsx)(D.N_,Object.assign(Object.assign({to:t,onClick:P},m),{forceSSR:v,onMouseEnter:E,onMouseLeave:O,tabIndex:-1,children:(0,p.jsx)(_a,{"data-e2e":x,variant:"secondary",label:_(n),leadingIcon:B(),$isDrawerOpen:S,$isNavFullOpen:L,$isActive:y,"aria-label":_(n),role:"listitem"})}))})})),Ml=(0,o.memo)((function(e){const{path:t,text:n,onClick:i,onLoad:a,onCheckActive:l=Bl,Icon:r,ActiveIcon:s,teaReport:d,hoverTeaReportParams:c,topRightBadge:u,iconSize:h,linkProps:g,forceSSR:m,e2eTag:v,promotionalTooltipText:x,tooltipKey:_,promotionalShowCondition:b}=e,y=(0,C.s)(),{pathname:k}=(0,f.useLocation)(),[j,S]=(0,o.useState)(l({configPath:t,currentPath:k})),{handleSideBarTooltipHoverReport:L}=(0,w.JY)(),[{isDrawerOpen:T,isNavFullOpen:I},{closeDrawer:P}]=(0,vi.K5)((e=>({isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),pe.bN),A=j?s:r,O=(0,o.useCallback)((e=>{P(),d(),null==i||i(e)}),[P,i,d]),{handleItemEnter:E,handleItemLeave:B}=(0,va.C)(),{hideTooltip:F,OneTimeTooltip:R}=(0,Ia.w)(_),M=(0,Pa.Y)(_).getLocalStorage(!0),$=(void 0===b||b)&&M,[N,U]=(0,o.useState)($);(0,o.useEffect)((()=>{const e=()=>{U(!1),F()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[F]);const q=(0,o.useCallback)((()=>{F(),U(!1),(null==c?void 0:c.type)&&L(c.type),E()}),[E,L,F,null==c?void 0:c.type]);(0,o.useEffect)((()=>{S(l({configPath:t,currentPath:location.pathname})&&!T)}),[l,t,k,T]),(0,o.useEffect)((()=>{null==a||a()}),[a]);const z=(0,o.useCallback)((()=>(0,p.jsxs)(ya,{style:{fontSize:`${null!=h?h:32}px`},children:[(0,p.jsx)(A,{}),(0,p.jsx)(wa,{children:u})]})),[A,h,u]),W=(0,p.jsx)(_a,{"data-e2e":v,variant:"secondary",label:y(n),leadingIcon:z(),$isDrawerOpen:T,$isNavFullOpen:I,$isActive:j,$fixedHover:N,"aria-label":y(n),role:"listitem"});return(0,p.jsx)(ba,{variant:"secondary",placement:"right",content:y(n),size:"small",visible:!1,children:(0,p.jsx)(D.N_,Object.assign(Object.assign({to:t,onClick:O},g),{forceSSR:m,onMouseEnter:q,onMouseLeave:B,tabIndex:-1,children:$?(0,p.jsx)(R,{content:(0,p.jsx)(Da.F.P1,{children:y(x)}),placement:"right",children:W}):W}))})}));var $l=n(38893),Nl=n(67823),Ul=n(16469),ql=n(44349),zl=n(87715),Wl=n(47888),Hl=n(28086),Vl=n(84643),Kl=n(57431),Jl=n(13196),Xl=n(61886);const Gl=({isSecondLevel:e})=>{var t;const{isElectronApp:n}=(0,_.B)(),{pathname:i}=(0,f.useLocation)(),a=(0,o.useMemo)((()=>(0,w.sw)(i)),[i]),[{atomState:l}]=(0,Hl.I)(Vl.v),r=l.rechargeEntryPermission;if(a||n)return!1;const{user:s,region:d,abTestVersion:c}=(0,Kl.x)(),u=null!==(t=(0,Bn.V7)(c,"live_recharge_supply_entrances_for_us"))&&void 0!==t?t:"v0",p=(0,Jl.qQ)(d)&&"v0"!==u;return s?r&&(e||p):p},Yl=({isSecondLevel:e})=>{const[{atomState:t}]=(0,Hl.I)(Vl.v),{isWebRechargedBefore:n}=t,{user:i}=(0,d.L$)((0,fe.W)((()=>["user"]),[]));return(0,o.useMemo)((()=>{const t={show_page:e?"web_main_nav_secondary":"web_main_nav_primary",request_page:"webapp",style:"icon_and_text",entrance_style:"widget"};return i&&(t.is_web_recharged_before=n?"yes":"no"),t}),[i,e,n])},Zl=({isSecondLevel:e})=>{const t=(0,gn.Nj)(Xl.y_),n=Yl({isSecondLevel:e});return(0,o.useCallback)((()=>{t.handleLiveWebGetCoinClick(n)}),[n])};var Ql=n(60072),er=n(91210),tr=n(83266);const nr=[3,1,2,8,7,9],ir=[0,4],or=[3,1,5,2,4,9,0,6,10,8,7],ar=[3,1,2,4,9,0,6,5,10,8,7],lr=[3,5,1,2,4,9,0,6,10,8,7],rr=[11,14,12,13,7];function sr(){const{pathname:e}=(0,f.useLocation)(),[{browserList:t},n]=(0,L.NY)((e=>{var t;return{list:e.list,browserList:e.browserList,preloadList:null!==(t=e.preloadList)&&void 0!==t?t:[],cursor:e.cursor}}),pe.bN),{user:i={},wid:a}=(0,d.L$)((0,fe.W)((()=>["user","wid"]),[])),{uniqueId:l="",secUid:r="",uid:c=""}=i,u=(0,he.nW)((e=>e.users[l]),pe.bN),p=(0,Ql.mG)(),h=(0,he.eI)(),[{browserList:g},m]=(0,er.ZV)((e=>({browserList:e.browserList})),pe.bN),[{uniqueId:v},x]=(0,tr.q)(),[_,y]=(0,o.useState)((0,b.tO)(e)),{enableSideNavPreloadAndCache:w,enableFYPSideNavPreloadAndCache:k}=(0,s.oJ)(),j=(0,o.useCallback)((()=>{return e=this,t=void 0,o=function*(){var e;const t=yield n.getFeedCacheList();if(!t)return;const{statusCode:i,itemList:o=[],log_pb:l}=t;if(0===i){const t=null===(e=o.slice)||void 0===e?void 0:e.call(o,0,3);Ul.lL.setItem("itemList",t),Ul.lL.setItem("log_pb",l),function(e,t){Ul.lL.setItem("cacheUid",e),Ul.lL.setItem("cacheWid",t);const n=(0,T.kv)(window.location.pathname);Ul.lL.setItem("pageName",null==n?void 0:n.name)}(c,a),function(e){try{Nl.A.remove(ql.n2,{domain:"www.tiktok.com"});const t=JSON.stringify({expireTimestamp:(0,zl._1)(e),itemIds:e.map((e=>e.id))});Nl.A.set(ql.n2,t,{secure:!0,expires:5,domain:"www.tiktok.com"})}catch(e){console.warn(`[Cookie] Set Feed Cache Cookie Error: ${e}`)}}(t)}else(0,Wl.dG)(i);(0,Wl.bA)(i)},new((i=void 0)||(i=Promise))((function(n,a){function l(e){try{s(o.next(e))}catch(e){a(e)}}function r(e){try{s(o.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(l,r)}s((o=o.apply(e,t||[])).next())}));var e,t,i,o}),[n,c,a]);return{handlePrefetchForYou:(0,o.useCallback)((()=>{var e,i,o,l,r,s;if(0!==t.length||_||!k)return;y(!0);const{cacheUid:d,cacheWid:u,itemList:h,pageName:g="unknown",log_pb:m}=Ul.lL.getStorage();Ul.lL.removeAll();const{status:v,validItemList:f}=(0,zl.Mc)({itemList:h,cacheUid:d,cacheWid:u,wid:a,uid:c});if([0,4,8].includes(v)){n.setListFromCache({itemList:f,statusCode:0,log_pb:m});const t=null!==(o=null===(i=null===(e=f[0])||void 0===e?void 0:e.video)||void 0===i?void 0:i.originCover)&&void 0!==o?o:null===(s=null===(r=null===(l=f[0])||void 0===l?void 0:l.video)||void 0===r?void 0:r.zoomCover)||void 0===s?void 0:s[720];if(t){const e=document.createElement("link");e.rel="prefetch",e.href=t,document.head.appendChild(e)}}0===v&&p.checkItemValidation(f.map((e=>e.id)).join(",")).then((e=>{if(e){const{statusCode:t,availabities:i=[]}=e;if(0===t){let e=0;i.forEach((({id:t,available:i})=>{i||(e++,n.setDeleteVideo(t))})),0!==e&&(0,Wl.Ao)(f.length,e)}}else console.error("Received undefined response from checkItemValidation")})).catch((e=>{console.error("Error occurred when deleting invalid video",e)})),(0,Wl.Pv)(v,g),j()}),[t.length,_,n,c,p,a,k,j]),handlePrefetchProfile:(0,Ae._g)((()=>{var e;if(!w)return;const t="number"!=typeof(null===(e=null==u?void 0:u.extraInfo)||void 0===e?void 0:e.statusCode);l&&t&&!g.length&&!v&&(h.getUserDetail({userId:c,secUid:r}),m.getItemList({secUid:r,userUniqueId:l}),x.setCachedUser(l))}),[w,l,r,u,h,c,m,x,g,v],1e3)}}const dr=({node:e,isSecondLevel:t})=>{const n=(0,gn.Nj)(Xl.y_),i=Yl({isSecondLevel:t});return(0,o.useEffect)((()=>{n.handleLiveWebGetCoinShow(i)}),[]),(0,p.jsx)(p.Fragment,{children:e})};var cr=n(87260),ur=n(466);const pr=(0,o.memo)((function(e){var t,n;const{isLiveNav:i,handleBackClick:a}=e,{pathname:l}=(0,f.useLocation)(),{region:c,language:u}=(0,d.L$)((0,fe.W)((()=>["region","language"]),[])),m=(0,L.sL)(),[v,{setEnterForyou:x}]=(0,wi.C_)((e=>e.enterForyou)),_=(0,$l.rP)(),{userUniqueId:y="",avatar:k}=(0,h.P)(r.L,{selector:({appContext:e})=>{const{user:t}=null!=e?e:{};return{userUniqueId:null==t?void 0:t.uniqueId,avatar:null==t?void 0:t.avatarUri[0]}},dependencies:[]}),j=(0,b.tO)(l),{closeDrawer:C}=(0,vi.PS)(),{handlePrefetchForYou:T,handlePrefetchProfile:P}=sr();(0,o.useEffect)((()=>{!j&&x(!1)}),[x,l]),(0,o.useEffect)((()=>{C()}),[l]);const D=(0,o.useCallback)((()=>v&&(0,b.Fj)(l)||j),[l,v]),A=(0,o.useCallback)((()=>(0,b.U0)(l)),[l]),O=(0,o.useCallback)((e=>{l===Tl.vI.liveDiscover&&(e.preventDefault(),window.location.reload())}),[l]),E=(0,S.E)(),B=(0,si.OB)(!0),F=(0,si.o0)(B),{hasNonPersonalizedMenu:R}=(0,s.cE)(),M=R&&!B,$=(0,o.useCallback)((e=>{M&&F(),j&&(e.preventDefault(),m.resetRecommendList({}),E(),window.history.replaceState(window.history.state,"use-update-url","/"),_.removeActiveItem())}),[M,j,F,m,E,_]),{hasVisitedFollowing:N,redDotCount:U}=(0,h.P)(ri.M),q=!N&&U>0;(0,o.useEffect)((()=>{q&&I.t.handleShowFollowingRedDot()}),[q]);const z=(0,o.useCallback)((()=>{q&&I.t.handleRemoveFollowingRedDot({enter_method:"click_homepage_follow"}),M&&F()}),[q,M,F]),W=(0,o.useMemo)((()=>q?(0,p.jsx)(Ca,{children:(0,p.jsx)(pi.NT,{children:(0,p.jsx)("circle",{cx:3,cy:3,r:3,fill:"#FE2C55"})})}):void 0),[q]),H=(0,ki.VB)((e=>e.messageCount),pe.bN),V=(0,di.lH)(H),K=(0,o.useMemo)((()=>H>0?(0,p.jsx)(Sa,{long:H>=10,children:(0,p.jsx)(Da.F.P4,{weight:"bold",color:"UIShapeText1OnPrimary",children:V})}):void 0),[V,H]),[J,X]=(0,o.useState)(!1),{businessPermission:G,businessAccountInfoResponse:Y}=(0,mi.VR)((e=>e),pe.bN),Z=(0,o.useCallback)((()=>(0,p.jsx)(yi,{canUseBcVisible:J,setCanUseBcVisible:X})),[J]),Q=(0,ci.Yy)({setCanUseBcVisible:X}),[{noticeList:ee,reportInboxNoticeCount:te},ie]=(0,g.S)(Jo.kK,{selector:e=>({noticeList:e.noticeCount,reportInboxNoticeCount:e.reportInbox.count,isFooterRequest:e.isFooterRequest}),dependencies:[]});(0,o.useEffect)((()=>{ie.fetchNoticeCount(),ie.fetchReportInbox({region:c,language:u})}),[ie,c,u]);const{totalText:oe,totalLong:ae,totalUnreadCount:le}=(0,o.useMemo)((()=>{const e=ee.reduce(((e,{count:t})=>e+t),0)+te;return{totalText:(0,di.lH)(e),totalLong:e>10,totalUnreadCount:e}}),[ee,te]),re=(0,Fe.G)({modalConfig:{isRedirectToProfilePage:!0,query:{enter_method:"profile_side_navigation"}}}),se=(0,o.useCallback)((e=>{y?ne.q.handleEnterProfile({enter_method:"profile_side_navigation"}):(re(),e.preventDefault(),e.stopPropagation())}),[re,y]),de=(0,o.useMemo)((()=>le>0?(0,p.jsx)(Sa,{long:ae,children:(0,p.jsx)(Da.F.P4,{weight:"bold",color:"UIShapeText1OnPrimary",children:oe})}):void 0),[ae,oe,le]),ce=Zl({isSecondLevel:!1}),ue={0:Object.assign(Object.assign({},ia),{topRightBadge:de}),1:Object.assign({},sa),2:Object.assign(Object.assign({},la),{topRightBadge:W,onClick:z}),3:Object.assign(Object.assign({},(ge=B,{path:"/",Icon:Qn.A,ActiveIcon:ei.A,text:ge?"for_you":"nonpersonalizedFeeds_LIVEfeed_navP_menuLink",teaReport:()=>{I.t.handleClickNav({target:"trending"}),ne.q.handleEnterTrending({enter_method:"navigation_bar"})},hoverTeaReportParams:{type:"for_you"},linkProps:{"data-e2e":"nav-foryou",disableAutoLang:!0}})),{onCheckActive:D,onClick:$,onMouseEnter:T}),4:Object.assign({},ra),5:Object.assign(Object.assign({},(he=l===Tl.vI.liveDiscover?"refresh_live":"enter_live",{path:"/live",Icon:ii.A,ActiveIcon:oi.A,text:"LIVE",teaReport:()=>{I.t.handleClickNav({target:"live"}),ne.q.handleEnterLiveDiscover({enter_method:"navigation_bar",click_type:he})},hoverTeaReportParams:{type:"live"},linkProps:{"data-e2e":"nav-live",disableAutoLang:!1}})),{onCheckActive:A,onClick:O}),6:Object.assign(Object.assign({},ca),{path:(null===(t=Y.data)||void 0===t?void 0:t.can_use_bc)&&null!==(n=Y.data.redirect_url)&&void 0!==n?n:ca.path,Icon:Z,ActiveIcon:Z,topRightBadge:K,forceSSR:G.message,onClick:Q}),7:Object.assign({},oa),8:Object.assign(Object.assign({},ua),{path:`/@${y}`,Icon:k?()=>(0,p.jsx)(pi.Bs,{src:k,style:{padding:"3px"}}):ua.Icon,ActiveIcon:k?()=>(0,p.jsx)(pi.Bs,{src:k,style:{padding:"3px"}}):ua.ActiveIcon,onClick:se,onMouseEnter:P}),9:Object.assign(Object.assign({},da),{promotionalShowCondition:!!y}),10:{text:"WebApp_coin_recharge_1",path:`${cr.I7.coin}?enter_from=web_main_nav_primary`,forceSSR:!0,Icon:ur.A,ActiveIcon:ur.A,iconSize:24,teaReport:ce,wrapper:e=>(0,p.jsx)(dr,{node:e,isSecondLevel:!1},"WebApp_coin_recharge_1")},11:Object.assign({},ha),13:Object.assign({},ma),12:Object.assign({},ga),14:Object.assign(Object.assign({},pa(l===Tl.vI.liveDiscover?"refresh_live":"enter_live")),{onCheckActive:A,onClick:O})};var he,ge;const me=(e=>{const{user:t}=(0,d.L$)((0,fe.W)((()=>["user"]),[])),n=(0,w.FU)(),i=Gl({isSecondLevel:!1}),{vid:o}=(0,s.Oj)(),a=nr;if(t&&(a.push(...ir),t.hasIMPermission&&a.push(6)),n&&a.push(5),i&&a.push(10),e)return rr;switch(o){case"v1":case"v0":default:return or.filter((e=>a.includes(e)));case"v2":return ar.filter((e=>a.includes(e)));case"v3":return lr.filter((e=>a.includes(e)))}})(i);return(0,p.jsx)(ka,{children:me.map((e=>{const t=ue[e],n=(e=>"path"in e?"tooltipKey"in e?(0,p.jsx)(Ml,Object.assign({},e),e.text):(0,p.jsx)(Rl,Object.assign({},e),e.text):"entranceType"in e?(0,p.jsx)(El,Object.assign(Object.assign({},e),{handleBackClick:a}),e.text):(0,p.jsx)(Fl,Object.assign({},e),e.text))(t),{wrapper:i}=t;return i?i(n):n}))})}));var hr=n(22224);const gr=(0,P.default)("div",{target:"e1lvfea00"})((({theme:{colors:e,direction:t}})=>[{width:Ro.dl,height:"100vh",position:"fixed",insetInlineStart:Ro.dK,backgroundColor:xi.Tj4.UIPageFlat1,zIndex:99,borderRight:`1px solid ${e.ShadowPrimary}`,borderLeft:`1px solid ${e.ShadowPrimary}`,overscrollBehavior:"contain","&.drawer-enter":{transform:`translateX(${"ltr"===t?"-":""}${Ro.$O})`,opacity:.3,zIndex:-1,borderLeft:0,borderRight:0},"&.drawer-enter-active":{transform:"translateX(0)",opacity:1,transition:`transform ${Ro.Fd}ms, opacity ${Ro.Fd}ms`},"&.drawer-exit":{transform:"translateX(0)",opacity:1,zIndex:-1,borderLeft:0,borderRight:0},"&.drawer-exit-active":{transform:`translateX(${"ltr"===t?"-":""}${Ro.$O})`,opacity:.3,transition:`transform ${Ro.Fd}ms, opacity ${Ro.Fd}ms`}}]),"label:DivDrawerContainer;"),mr=(0,P.default)("div",{target:"e1lvfea01"})({position:"absolute",top:"1.5rem",insetInlineEnd:"1rem",display:"flex",alignItems:"center",justifyContent:"center"},"label:DivDrawerCloseButtonContainer;"),vr=(0,P.default)(xi.I05,{target:"e1lvfea02"})({"&.TUXButton.TUXButton":{minWidth:"0",height:"1.75rem",padding:"0"},width:"1.75rem","& > div":{"& > .TUXButton-label":{display:"none"}}},"label:StyledTUXMoreCloseButton;"),fr=(0,P.default)("div",{target:"e1lvfea03"})({top:0,insetInlineStart:`calc(${Ro.dl} + ${Ro.dK})`,position:"fixed",width:"100vw",height:"100vh",zIndex:99},"label:DivDrawerMask;"),xr=(0,P.default)("div",{target:"e1lvfea04"})({"& > div":{maxHeight:"100vh"}},"label:DivActivityContainer;"),_r=(0,P.default)("div",{target:"e1lvfea05"})({padding:"0.5rem",paddingInlineEnd:"0"},"label:DivSearchContainer;"),br=(0,P.default)("div",{target:"e1lvfea06"})({width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"start"},"label:DivMessageDrawerContainer;"),yr=(0,P.default)("div",{target:"e1lvfea07"})({height:"4.4rem",paddingTop:"1.0rem",paddingLeft:"0.5rem"},"label:DivSearchDriverHeader;");var wr=n(16851),kr=n(92925);const jr=(0,o.memo)((function(){const e=(0,o.useRef)(!1),t=(0,wr.Cp)();return(0,o.useEffect)((()=>{e.current||(t.fetchNoticeData(),e.current=!0)}),[t]),(0,p.jsx)(xr,{children:(0,p.jsx)(kr.b,{})})}));var Cr=n(85245);const Sr=(0,o.memo)((function({}){const e=(0,vi.PS)(),t=(0,C.s)();return(0,p.jsxs)(_r,{children:[(0,p.jsx)(yr,{children:(0,p.jsxs)(Da.F.H2,{weight:"bold",children:[" ",t("Search")," "]})}),(0,p.jsx)(Cr.v,{isFullSideNav:!0,onSubmitSuccess:()=>{e.closeDrawer()}})]})})),Lr=(0,o.memo)((function({messageDrawer:e}){return(0,p.jsx)(br,{children:e})})),Tr=(0,P.default)("div",{target:"eo17pdf0"})({width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"start"},"label:DivMoreDrawerContainer;"),Ir=(0,P.default)("div",{target:"eo17pdf1"})({height:Ro.in,display:"flex",flexDirection:"row",gap:"0.5rem",paddingTop:"1.5rem",paddingBottom:"1rem",marginInlineStart:"1rem",flexShrink:0,alignItems:"start"},"label:DivMoreDrawerHeader;"),Pr=(0,P.default)("div",{target:"eo17pdf2"})({width:"1.5rem",height:"1.5rem",display:"flex",justifyContent:"center",alignItems:"center"},"label:DivBackIconWrapper;"),Dr=(0,P.default)(xi.I05,{target:"eo17pdf3"})({"&.TUXButton.TUXButton":{minWidth:"0",height:"1.5rem",padding:"0"},width:"1.5rem","& > div":{"& > .TUXButton-label":{display:"none"}}},"label:StyledTUXMoreBackButton;"),Ar=(0,P.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;"),Or=(0,P.default)("li",{target:"eo17pdf5"})({width:"100%",listStyleType:"none"},"label:LiMoreButtonContainer;"),Er=(0,P.default)(xi.I05,{target:"eo17pdf6"})({"&.TUXButton.TUXButton":{minWidth:"0",height:"2.5rem",padding:"0",":hover":{backgroundColor:`${xi.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 Br=n(56723),Fr=n(96141),Rr=n(86389),Mr=n(91825),$r=n(67842),Nr=n(4929),Ur=n(13392),qr=n(47079),zr=n(77734),Wr=n(21620),Hr=n(51391),Vr=n(82850),Kr=n(42230),Jr=n(15936),Xr=n(509);const Gr=()=>{var e;const t=(0,fe.W)((()=>["user","language","abTestVersion","region"]),[]),n=null!==(e=(0,Bn.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,l=a?w.HL.PORTRAIT:w.HL.MORE,r=(0,o.useCallback)((()=>{Xr.d.handleClickAnalyticsButton()}),[]),s=(0,o.useCallback)((()=>{const e=`${Tl.vI.studioDownload}?enter_from=profile`;i&&window.open(e,"_blank"),window.location.href=e}),[i]),d=(0,o.useCallback)((()=>{_t.f.sendEvent("Promote_entrance_click",{enter_from:"menu_creator_tool"})}),[]),c=(0,o.useCallback)((()=>_t.f.sendEvent("live_manager_entrance_click",{enter_from:"menu_creator_tool",enter_method:"creator_tools"})),[]);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:r,onKeyDown:(0,Jr.B)(r)},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=${l}&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:`${Tl.vI.studioDownload}?enter_from=profile`,forceSSR:!0,e2eTag:"live-studio-entrance",onClick:s,onKeyDown:(0,Jr.B)(s)},4:{text:"Promote_web_entrance_profile",href:"/promote/web/main?enter_from=menu_creator_tool",forceSSR:!0,target:i?"_blank":"_self",onClick:d,onKeyDown:(0,Jr.B)(d)},5:{text:"LIVE_shopping_prelogin_nav",href:(()=>{if(a)return`${w.sl}?enter_from=tiktok_web`;const e=Object.keys(w.zp),n=(null==t?void 0:t.region.toLowerCase())||"us",i=e.includes(n)?n:"us",o=w.zp[n]===(null==t?void 0:t.language)?t.language:"en";return`${w.o1}/${i}/creator/live${o?`?lang=${o}`:""}`})(),forceSSR:!0,onClick:c}}},Yr=()=>{const e=(0,C.s)(),t=(0,fe.W)((()=>["user","language","abTestVersion","region"]),[]),n=null==t?void 0:t.user,{isElectronApp:i}=(0,_.B)(),{ehLink:a}=(0,s.$r)({linkIncludeVid:!0}),l=(0,o.useCallback)((()=>{I.t.handleClickEntrance({enter_method:"click_banner"})}),[]),r=(0,o.useCallback)(((e="click")=>{_t.f.sendEvent("click_creator_tools",{enter_method:e})}),[]),d=(0,o.useMemo)((()=>!Ul.bc.getItem(qr.Q)||(null==n?void 0:n.hasCollectionsRedDot)),[null==n?void 0:n.hasCollectionsRedDot]),c=(0,o.useCallback)((()=>{Wr.I.handleEnterCollectionsPage(),Ul.bc.setItem(qr.Q,!0)}),[]),u=Gr()[3],[h,g]=(0,Ur.Su)(zr.GC,{selector:e=>{var t;return null!==(t=e.redDot)&&void 0!==t?t:[]},dependencies:[]}),m=(0,o.useCallback)((()=>{-1!==h.indexOf(2)&&g.updateRedDot({type:2,redirect:`${location.origin}/business-suite`,isElectronApp:i}),ne.q.handleEnterBusiness()}),[h,g,i]),v=(0,o.useCallback)((()=>{ne.q.handleEnterSet({enter_method:"top_bar"})}),[]),f=(0,o.useMemo)((()=>{var e,n;return null!==(n=null===(e=Nr.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]),x=(0,o.useCallback)((()=>{Hr.j.handleLanguageClick({enter_method:"top_bar"})}),[]),b=(0,Ur.Ph)(Rr.i,{selector:e=>e.hasNewFeedbackReply,dependencies:[]}),y=(0,gn.Nj)(Xl.y_),w=(0,o.useCallback)((()=>{if(!(null==n?void 0:n.uid)&&(0,Mr.mR)()){const e=new URLSearchParams(location.search);y.handleRechargeLoginClick(Object.assign({click_area:Xl.oD.top_list_feedback,guided_from_app_type:"",request_page:"webapp",enter_from:e.get("enter_from"),enter_source:""},(0,Mr.h8)()))}Vr.S.handleEnterFeedback(b?"history":"new")}),[b,y,null==n?void 0:n.uid]),k=(0,Fr.ur)(),j=(0,o.useCallback)((()=>{Kr.R.handleClickGetApp({enter_method:"under_profile_icon_button"}),k.setIsModalShow(!0)}),[k]),{handleClickLogout:S}=(0,$r.W)(n),L=Zl({isSecondLevel:!0});return{6:{text:"WebApp_coin_recharge_1",href:`${cr.I7.coin}?enter_from=web_main_nav_secondary`,forceSSR:!0,e2eTag:"nav-more-menu_get-coins",onClick:L,wrapper:e=>(0,p.jsx)(dr,{node:e,isSecondLevel:!0})},1:{text:"tteh_webapp_acquisitionBanner_1",href:a,forceSSR:!0,target:"_blank",onClick:l,onKeyDown:(0,Jr.B)(l)},2:{text:"pcWeb_navi_creatorTools",e2eTag:"creator-tools",nestedMenu:0,onClick:()=>r("click")},10:{text:"tiktok_series_webapp_option",href:"/series",forceSSR:!0,e2eTag:"tiktok-series-entrance",target:i?"_blank":void 0,hasNew:d,onClick:c,onKeyDown:(0,Jr.B)(c)},8:Object.assign({},u),0:{text:"web_business_suite_entry",href:-1!==h.indexOf(2)?"":"/business-suite",target:i?"_blank":void 0,forceSSR:!0,e2eTag:"business-entrance",onClick:m,onKeyDown:(0,Jr.B)(m)},11:{text:i?"desktop_app_accountSettings":"settings",href:"/setting",forceSSR:!0,e2eTag:"settings-entrance",onClick:v,onKeyDown:(0,Jr.B)(v)},7:{text:f,nestedMenu:2,e2eTag:"language-select",onClick:x,ariaLabel:e("accessibilityLabels_settings_language",{language:f})},4:{text:"Feedback and help",href:b?"/feedback/report":"/feedback",hasNew:b,forceSSR:!0,e2eTag:"feedback-entrance",onClick:w,onKeyDown:(0,Jr.B)(w)},3:{text:"pc_web_dark_mode",nestedMenu:1,ariaLabel:e("accessibilityLabels_settings_darkModeOn")},5:{text:"get_app",onClick:j,onKeyDown:(0,Jr.B)(j)},9:{text:"log_out",e2eTag:"logout-entrance",onClick:S(),onKeyDown:(0,Jr.B)(S())}}},Zr=(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)(D.N_,{to:i,onClick:o,onKeyDown:a,forceSSR:l,target:r,"data-e2e":s,tabIndex:-1,children:(0,p.jsx)(Er,{size:"small",variant:"secondary",label:t(n),trailingIcon:c&&(0,p.jsx)(xi.Tyj,{size:"14"}),"aria-label":null!=d?d:t(n),role:"listitem"})}):null})),Qr=(0,o.memo)((function(e){const t=(0,C.s)(),{nestedMenu:n,text:i,onClick:a,e2eTag:l,ariaLabel:r}=e,[,{changeMoreNestedMenu:s}]=(0,vi.K5)((e=>({moreDrawerNestedMenu:e.moreDrawerNestedMenu})),pe.bN),d=(0,o.useCallback)((e=>{null==a||a(e),s(n)}),[s,n,a]),c=(0,Jr.B)(d);return(0,p.jsx)(Er,{size:"small",variant:"secondary",label:t(i),onClick:d,onKeyDown:c,trailingIcon:(0,p.jsx)(xi.aL3,{autoMirror:!0,size:"16",color:"UIShapeNeutral2"}),"data-e2e":l,"aria-label":null!=r?r:t(i),role:"listbox"})})),es=(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)(Er,{size:"small",variant:"secondary",label:t(n),onClick:i,onKeyDown:o,trailingIcon:r&&(0,p.jsx)(xi.Tyj,{size:"14"}),"data-e2e":a,"aria-label":null!=l?l:t(n),role:"listbox"})}));var ts=n(38739),ns=n(5321),is=n(72241),os=n(243),as=n.n(os),ls=n(89076),rs=n(6986),ss=n(42712),ds=n(30488);const cs=(0,o.memo)((function(){const{user:e}=(0,d.L$)((0,fe.W)((()=>["user"]),[])),{moreDrawerNestedMenu:t}=(0,vi.Ap)((e=>({moreDrawerNestedMenu:e.moreDrawerNestedMenu})),pe.bN),n=(0,o.useRef)(!1);n.current=(0,ss.Y)(),(0,o.useEffect)((()=>{I.t.handleEntranceShow({enter_method:"banner"}),rs.W.handleShowEntrance(),Xr.d.handleProfileHoveShow(n.current),ns.U.handleDarkModeShow()}),[]);const i=!!(null==e?void 0:e.hasPromoteEntry);return(0,o.useEffect)((()=>{i&&0===t&&_t.f.sendEvent("Promote_entrance_show",{enter_from:"menu_creator_tool"})}),[t,i]),(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(ds.l,{})})}));var us=n(13990);const ps=[6,1,10,8,0,2,7,3,11,4,5,9],hs=[7,4,3],gs=()=>{var e,t,n,i;const{user:a}=(0,d.L$)((0,fe.W)((()=>["user"]),[])),{abTestVersion:l}=(0,d.L$)((0,fe.W)((()=>["abTestVersion"]),[])),{pathname:r}=(0,f.useLocation)(),s=[];(null==a?void 0:a.analyticsOn)&&!a.proAccountInfo.businessSuiteEntrance&&s.push(0);const c=(0,x.U)((()=>["searchVideoForLoggedin","studioDownloadEntrance","liveStudioEnable","liveAnchorEntrance"]),[]),u=(0,ss.Y)();!(0,o.useMemo)((()=>r===Tl.vI.studioDownload),[r])&&(null===(e=null==c?void 0:c.liveAnchorEntrance)||void 0===e?void 0:e.liveStudio)&&!u&&s.push(3),(null==a?void 0:a.hasPromoteEntry)&&s.push(4);const p=null===(t=null==c?void 0:c.liveAnchorEntrance)||void 0===t?void 0:t.liveCenter;(0,o.useEffect)((()=>{p&&xn.Xg.handleLiveCenterShow({anchor_id:null==a?void 0:a.uid})}),[p,null==a?void 0:a.uid]);const{isElectronApp:h}=(0,_.B)();return p&&!h&&s.push(1),(null===(n=null==c?void 0:c.liveAnchorEntrance)||void 0===n?void 0:n.creatorHub)&&!h&&s.push(2),"v1"===(null!==(i=(0,Bn.qt)(l,"live_manager_entrance"))&&void 0!==i?i:"v0")&&s.push(5),[5,4,0,1,2,3].filter((e=>s.includes(e)))},ms=e=>{let t;return t="href"in e?(0,p.jsx)(Zr,Object.assign({},e)):"nestedMenu"in e?(0,p.jsx)(Qr,Object.assign({},e)):(0,p.jsx)(es,Object.assign({},e)),(0,p.jsx)(Or,{children:e.wrapper?e.wrapper(t):t})},vs=(0,o.memo)((function(e){var t;const{disableToggleTheme:n,isLiveNav:i}=e,a=(0,C.s)(),{language:l}=null!==(t=(0,fe.W)((()=>["language"]),[]))&&void 0!==t?t:{},[{moreDrawerNestedMenu:r},{changeMoreNestedMenu:c}]=(0,vi.K5)((e=>({moreDrawerNestedMenu:e.moreDrawerNestedMenu})),pe.bN),u=Yr(),g=Gr(),m=(e=>{const{disableToggleTheme:t}=e,{isElectronApp:n}=(0,_.B)(),{value:i,currentThemeOption:a,setCurrentThemeOption:l}=(0,o.useContext)(is.xm),r=(0,gn.Nj)(ts.Gs);(0,o.useEffect)((()=>{r.setIsDarkMode(i)}),[r,i]);const s=(0,o.useCallback)((e=>{t||(ns.U.handleDarkModeClick(),n&&as().app.themeChange({isDark:i}),Nl.A.set(fn.HF,"1",fn.Ah),null==l||l(e))}),[t,n,l,i]);return{0:{text:"web_dark_mode_automatic",onClick:()=>s("auto"),onKeyDown:(0,Jr.B)((()=>s("auto"))),selected:"auto"===a},1:{text:"pc_web_dark_mode",onClick:()=>s("dark"),onKeyDown:(0,Jr.B)((()=>s("dark"))),selected:"dark"===a},2:{text:"pc_web_light_mode",onClick:()=>s("light"),onKeyDown:(0,Jr.B)((()=>s("light"))),selected:"light"===a},3:{text:"pc_web_device_theme",onClick:()=>s("system"),onKeyDown:(0,Jr.B)((()=>s("system"))),selected:"system"===a}}})({disableToggleTheme:n}),v=(()=>{const{pathname:e,search:t}=(0,f.useLocation)(),n=(0,ls.K)(),i=(0,o.useCallback)((i=>()=>{let o;o=(0,b.Iz)(e)?`/${i}`:(0,mn.stringifyUrl)({url:e,query:Object.assign(Object.assign({},(0,mn.parse)(t)),{lang:i})}),n({lang:i,url:o})}),[e,n,t]),a=Jr.B;return Nr.wX.reduce(((e,t)=>(e[t.value]={text:t.label,onClick:i(t.value),onKeyDown:a(i(t.value))},e)),{})})(),x={3:a("more"),0:a(u[2].text),1:a(u[3].text),2:a("Language")},y=(0,o.useCallback)((()=>{if(3!==r)return(0,p.jsx)(Dr,{shape:"capsule",variant:"secondary",label:"",leadingIcon:(0,p.jsx)(Pr,{children:(0,p.jsx)(xi.pdK,{size:"12",autoMirror:!0})}),onClick:()=>c(3),"aria-label":a("Back"),role:"button"})}),[c,r,a]),k=(({isLiveNav:e})=>{const{user:t}=(0,d.L$)((0,fe.W)((()=>["user"]),[])),n=[...hs];t&&n.push(11,9),!e&&(null==t?void 0:t.hasCollectionsAccess)&&n.push(10);const{switchedType:i}=(0,h.P)(us.Eq,{selector:e=>({switchedType:e.switchedType}),dependencies:[]});!e&&(null==t?void 0:t.proAccountInfo.businessSuiteEntrance)&&"personal_account"!==i&&n.push(0);const{isElectronApp:o}=(0,_.B)(),{isVideoDetailExperiment:a}=(0,s.ac)();!e&&(a||o)&&n.push(5);const l=Gl({isSecondLevel:!0});!e&&l&&n.push(6);const{showEhEntrance:r}=(0,s.$r)({});!e&&r&&n.push(1);const c=gs();!e&&c.length>0&&n.push(2);const u=(0,ss.Y)();return!e&&u&&n.push(8),ps.filter((e=>n.includes(e)))})({isLiveNav:i}),j=gs(),S=(()=>{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)))})(),L=(0,o.useCallback)((()=>{const e=Nr.wX.reduce(((e,t)=>(t.value===l?(e.unshift(t),v[l].selected=!0):e.push(t),e)),[]);switch(r){case 0:return j.map((e=>ms(g[e])));case 1:return S.map((e=>ms(m[e])));case 2:return e.map((e=>ms(v[e.value])));default:return k.map((e=>ms(u[e])))}}),[j,g,S,m,l,v,k,u,r]);return(0,p.jsxs)(Tr,{children:[(0,p.jsxs)(Ir,{children:[y(),(0,p.jsx)(Da.F.H2,{weight:"bold",children:x[r]})]}),(0,p.jsx)(Ar,{"data-e2e":"see-more-popup",id:Br.hc,role:"listbox",children:L()}),(0,p.jsx)(cs,{})]})}));var fs=n(70461);const xs=(0,o.memo)((function({isDrawerOpen:e,disableToggleTheme:t,messageDrawer:n,isLiveNav:i}){const a=(0,C.s)(),[{drawerType:l,moreDrawerNestedMenu:r,isDrawerAlwaysOpen:s,defaultDrawerType:d},{closeDrawer:c,completeCloseDrawer:u,completeOpenDrawer:h}]=(0,vi.K5)((e=>({drawerType:e.drawerType,moreDrawerNestedMenu:e.moreDrawerNestedMenu,isDrawerAlwaysOpen:e.isDrawerAlwaysOpen,defaultDrawerType:e.defaultDrawerType})),pe.bN),{activePage:g}=(0,hr.jx)((e=>e),pe.bN),m=(0,o.useMemo)((()=>e&&!s||s&&l!==d),[e,s,l,d]);(0,o.useEffect)((()=>{const e=e=>{"Escape"===e.key&&c()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[c]);const v=(0,o.useCallback)((()=>{switch(l){case 0:return(0,p.jsx)(jr,{});case 1:return(0,p.jsx)(vs,{disableToggleTheme:t,isLiveNav:i});case 2:return(0,p.jsx)(Sr,{});case 3:return(0,p.jsx)(Lr,{messageDrawer:n});default:return(0,p.jsx)(p.Fragment,{})}}),[l,t,n]),f=!(1===l&&3!==r||0===l&&"main"!==g||3===l);return(0,p.jsxs)(p.Fragment,{children:[m&&(0,p.jsx)(fr,{onClick:c,onScroll:c,onWheel:c}),(0,p.jsx)(fs.A,{in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:Ro.Fd,classNames:"drawer",onEntered:h,onExited:u,children:(0,p.jsxs)(gr,{children:[v(),f&&(0,p.jsx)(mr,{children:(0,p.jsx)(vr,{onClick:c,label:"",leadingIcon:(0,p.jsx)(xi.gn,{size:"16"}),variant:"secondary",tabIndex:0,"aria-label":a("Close"),role:"button",shape:"capsule"})})]})})]})}));var _s=n(86702),bs=n(93678);const ys={id:"single-logo-dark-3ed5e24d",use:"single-logo-dark-3ed5e24d-usage",viewBox:"0 0 25 42",content:''};function ws(e){const t=(0,o.useContext)(E.X);return(0,o.useLayoutEffect)((()=>(t.add(ys),()=>{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 ks={id:"single-logo-light-1115c5dd",use:"single-logo-light-1115c5dd-usage",viewBox:"0 0 25 42",content:''};function js(e){const t=(0,o.useContext)(E.X);return(0,o.useLayoutEffect)((()=>(t.add(ks),()=>{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 Cs=(0,Bo.I)(D.N_,{target:"e1x4ogdq0"})((({$isDrawerOpen:e})=>[{fontSize:0},(0,k.jJ)({max:Fo.f.Medium,style:{display:"flex",justifyContent:"center",alignItems:"center",marginInlineStart:"unset !important"}}),e&&{display:"flex",justifyContent:"center",alignItems:"center",marginInlineStart:"unset !important"}]),"label:StyledLinkLogo;");Cs.defaultProps=Object.assign(Object.assign({},Cs.defaultProps),{"data-e2e":"tiktok-logo"});const Ss=(0,Bo.I)(_s.A,{target:"e1x4ogdq1"})((({$isDrawerOpen:e})=>[(0,k.jJ)({max:Fo.f.Medium,style:{display:"none"}}),e&&{display:"none"}]),"label:StyledLogoLight;"),Ls=(0,Bo.I)(bs.A,{target:"e1x4ogdq2"})((({$isDrawerOpen:e})=>[(0,k.jJ)({max:Fo.f.Medium,style:{display:"none"}}),e&&{display:"none"}]),"label:StyledLogoDark;"),Ts=(0,Bo.I)(ws,{target:"e1x4ogdq3"})((({$isDrawerOpen:e})=>[(0,k.jJ)({min:Fo.f.Medium,style:!e&&{display:"none"}})]),"label:StyledSingleLogoLight;"),Is=(0,Bo.I)(js,{target:"e1x4ogdq4"})((({$isDrawerOpen:e})=>[(0,k.jJ)({min:Fo.f.Medium,style:!e&&{display:"none"}})]),"label:StyledSingleLogoDark;"),Ps=(0,o.memo)((function({style:e={}}){const t=(0,C.s)(),{isDark:n}=(0,j.u)(),{pathname:i}=(0,f.useLocation)(),a=(0,L.sL)(),{isDrawerOpen:l,isNavFullOpen:r}=(0,vi.Ap)((e=>({isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),pe.bN),s=(0,S.E)(),d=(0,o.useCallback)((e=>{(0,b.tO)(i)&&(e.preventDefault(),a.resetRecommendList({}),s()),I.t.handleClickLogo()}),[i,a,s]),c=t("TikTok i18n title"),u=(0,o.useMemo)((()=>n?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(Ls,{alt:c,height:42,width:118,$isDrawerOpen:l}),(0,p.jsx)("div",{style:{marginInlineStart:r?"0":"1px"},children:(0,p.jsx)(Is,{height:42,width:25,alt:c,$isDrawerOpen:l})})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(Ss,{height:42,width:118,alt:c,$isDrawerOpen:l}),(0,p.jsx)("div",{style:{marginInlineStart:r?"0":"1px"},children:(0,p.jsx)(Ts,{height:42,width:25,alt:c,$isDrawerOpen:l})})]})),[n,c,l,r]);return(0,p.jsxs)(Cs,{to:T.OZ.home,onClick:d,style:Object.assign({position:"relative"},e),ariaLabel:t("accessibilityLabels_forYou_nav_tiktok_btn"),$isDrawerOpen:l,children:[u,(0,p.jsx)("strong",{children:c})]})}));var Ds=n(89107),As=n(24728);const Os=(0,o.memo)((function(e){const{onClick:t,onLoad:n,Icon:i,teaReport:a,drawerType:l,e2eTag:r}=e,s=(0,Ur.Ph)(Ds.C,{selector:e=>e.searchValue,dependencies:[]}),{placeholder:d}=(0,As.H1)(!1),[{drawerType:c,isDrawerOpen:u,isNavFullOpen:h},{closeDrawer:g,openDrawer:m}]=(0,vi.K5)((e=>({drawerType:e.drawerType,isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),pe.bN),[v,f]=(0,o.useState)(l===c),x=(0,o.useCallback)((e=>{a(),null==t||t(e),v?g():m(l)}),[v,g,l,t,m,a]),_=(0,o.useCallback)((e=>{v&&"Enter"===e.key?(a(),null==t||t(e),g()):"Tab"!==e.key&&(a(),null==t||t(e),m(l))}),[v,g,l,t,m,a]);return(0,o.useEffect)((()=>{f(l===c)}),[c,l]),(0,o.useEffect)((()=>{null==n||n()}),[n]),(0,p.jsx)(ja,{"data-e2e":r,variant:"secondary",shape:"capsule",label:s||d,onClick:x,onKeyDown:_,leadingIcon:(0,p.jsx)(ya,{children:(0,p.jsx)(i,{})}),$isDrawerOpen:u,$isNavFullOpen:h,$hasUserContent:!!s,"aria-label":d,role:"searchbox"})})),Es=(0,P.default)(xi.I05,{target:"enq7hkb0"})((({shape:e})=>[{width:"12.5rem",height:"2.5rem",shape:e,marginBottom:"24px"}]),"label:StyledLeftSidePrimaryButtonRedesign;"),Bs=(0,P.default)(xi.I05,{target:"enq7hkb1"})({width:"12.5rem",height:"2.5rem"},"label:StyledLeftSidePrimaryButton;"),Fs=(0,o.memo)((function(){const e=(0,C.s)(),t=(0,Mn.b1)(),{isInTopRightButtonTreatment:n,isInTopRightButtonLeftNavHide:i}=(0,s.ng)(),a=(0,o.useCallback)(((e=!1)=>()=>{const n=(0,Fn.Y)()||(0,Fn.CW)();t.openModal({closeable:!0,isSignup:e,query:{enter_method:"click_top_bar",redirect_url:(0,Rn.Q2)(),last_group_id:n}})}),[t]);return i?null:(0,p.jsx)(Es,{id:"header-login-button",label:e("log_in"),onClick:a(!1),shape:n?"capsule":"default"})})),Rs=(0,o.memo)((function(e){const t=(0,C.s)(),n=(0,f.useHistory)(),i=(0,gn.Nj)(Xl.y_),[{atomState:a}]=(0,Hl.I)(Vl.v),{rechargeEntryPermission:l,isWebRechargedBefore:r}=a,s=l;(0,o.useEffect)((()=>{s&&i.handleLiveWebGetCoinShow({show_page:"live_page",is_web_recharged_before:r?"yes":"no",request_page:"webapp",style:"icon_and_text"})}),[s,r,i]);const d=(0,o.useCallback)((()=>{i.handleLiveWebGetCoinClick({show_page:"live_page",is_web_recharged_before:r?"yes":"no",request_page:"webapp",style:"icon_and_text"})}),[r,i]),c=(0,o.useCallback)((()=>{const t=!!e.adsSource,i=`${cr.I7.coin}${t?"/YYJWret":"/rLJKRPE"}`;n.push(`${i}?enter_from=web_live_nav`)}),[n,e.adsSource]),u=(0,o.useCallback)((()=>{d(),c()}),[d,c]);return s?(0,p.jsx)(Bs,{"data-e2e":"LivePage-GetCoin",leadingIcon:(0,p.jsx)(ur.A,{}),label:t("WebApp_coin_recharge_1"),onClick:u}):null})),Ms=(0,o.memo)((function(e){var t;const n=null!==(t=e.showRechargeButton)&&void 0!==t&&t,{user:i}=(0,Ur.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)(Rs,{adsSource:e.adsSource}):null:(0,p.jsx)(Fs,{})})),$s=(0,o.forwardRef)((function({title:e,loading:t=!0,children:n},i){const o=(0,X._0)((e=>0===e.following.list.length),pe.bN);return(0,p.jsxs)(we,{bottomBar:!0,ref:i,children:[(0,p.jsx)(Da.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)(ve,{},t))):n]})})),Ns=(0,P.default)(xi.I05,{target:"ecn8j020"})({width:"13rem",height:"2.5rem",marginTop:"0.25rem",paddingLeft:"0 !important",paddingRight:"0 !important",":not(:hover)":{backgroundColor:"unset"},":hover":{backgroundColor:`${xi.Tj4.UIShapeNeutral4} !important`},"& > :first-of-type":{gap:"1rem",justifyContent:"start",marginInlineStart:"0.25rem",fontWeight:"normal","& > .TUXButton-label":{margin:"unset !important"}}},"label:StyledTUXShowMoreButton;"),Us=(0,P.default)("div",{target:"ecn8j021"})({width:"28px",height:"28px",display:"flex",alignItems:"center",justifyContent:"center"},"label:StyledArrowDownContainer;"),qs=(0,P.default)(be.A,{target:"ecn8j022"})((({up:e})=>[{transition:"all 0.3s",transform:e?"rotate(180deg)":"none",marginInlineStart:"4px"}]),"label:StyledArrowDown;"),zs=(0,P.default)("ul",{target:"ecn8j023"})({padding:0,margin:0,listStyleType:"none",display:"flex",flexDirection:"column",gap:"0.25rem"},"label:UlAccountList;"),Ws=(0,o.memo)((function(){return(0,p.jsxs)(ce,{style:{width:"200px"},children:[(0,p.jsx)(me.EA.Avatar,{style:{width:32,height:32}}),(0,p.jsxs)(ue,{children:[(0,p.jsx)(me.EA.Title,{style:{width:107,height:12}}),(0,p.jsx)(me.EA.Title,{style:{width:66,height:12}})]})]})})),Hs=(0,P.default)(xi.I05,{target:"e164dpcp0"})({":not(:hover)":{backgroundColor:"unset"},":hover":{backgroundColor:`${xi.Tj4.UIShapeNeutral4} !important`},minWidth:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",width:"13rem !important",height:"2.75rem !important",overflow:"visible","& > :first-of-type":{justifyContent:"start",marginInlineStart:"0.25rem","& > .TUXButton-label":{display:"none !important"}}},"label:StyledTUXFollowingAccountButton;"),Vs=(0,P.default)("div",{target:"e164dpcp1"})({display:"flex",flexDirection:"row",alignItems:"center"},"label:DivUserTitleWrapper;"),Ks=(0,P.default)(Da.F.P1,{target:"e164dpcp2"})({maxWidth:"126px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},"label:StyledNicknameText;"),Js=(0,P.default)(Da.F.P1,{target:"e164dpcp3"})({maxWidth:"144px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},"label:StyledUsernameText;"),Xs=(0,P.default)(Q.E,{target:"e164dpcp4"})([{flexGrow:1,display:"flex",flexDirection:"column",alignItems:"start",":hover":{textDecoration:"none"}}],"label:StyledUserContentLink;"),Gs=(0,P.default)("div",{target:"e164dpcp6"})((({theme:{direction:e}})=>[(0,k.mp)({direction:e,marginEnd:"12px",marginStart:"2px"}),{width:"100%",height:"100%",display:"flex",alignItems:"center"}]),"label:DivAvatarWrapper;"),Ys=(0,o.memo)((0,o.forwardRef)((function(e,t){const n=(0,C.s)(),{itemType:i,uniqueId:a,e2ePrefix:l="",enterMethod:r="click_panel",index:s,isSuggestedContent:c}=e,u=(0,he.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}}),pe.bN),{secUid:h,verified:g,nickname:m,relation:v}=(0,d.L$)(u),f=(0,Y.r$)(u),{isShowLive:x}=f,_=x?Z.B:Q.E,b=(0,o.useRef)(null),y=(0,o.useRef)(null),w=(0,Y.AL)({user:u,enterMethod:r}),k=(0,o.useMemo)((()=>{if(x){let e="";return e="following"===i?"following":"suggest"===i?"recommend":"others",{enter_from_merge:e,enter_method:"suggested_others_photo"}}return{}}),[x,i]);(0,Y.Fu)({isShowLive:x,autoReport:!0,once:!0,enterMethod:"suggested_others_photo",reportTrigger:x,reportValidator:()=>void 0!==v,liveExtraParams:x?k:{},user:u});const j=(0,o.useCallback)((()=>{x&&ne.q.handleEnterUser({to_user_id:null==u?void 0:u.id,enter_method:r}),I.t.handleClickNav({target:x?"live_detail":"others_homepage",item_list_index:s,from_item_list:c?"suggested_for_you":"following_accounts"})}),[x,null==u?void 0:u.id,r,c,s]),S=(0,o.useCallback)((e=>{var t;13===e.keyCode&&(null===(t=y.current)||void 0===t||t.linkClick()),32===e.keyCode&&e.preventDefault()}),[]),L=(0,o.useCallback)((e=>{j(),(0,ee.dG)(e)}),[j]),T=(0,o.useCallback)((()=>{var e;null===(e=b.current)||void 0===e||e.focus()}),[]);return(0,o.useImperativeHandle)(t,(()=>({get offsetTop(){var e,t;return null!==(t=null===(e=b.current)||void 0===e?void 0:e.offsetTop)&&void 0!==t?t:0},get offsetLeft(){var e,t;return null!==(t=null===(e=b.current)||void 0===e?void 0:e.offsetLeft)&&void 0!==t?t:0},setFocus:T})),[T]),(0,p.jsx)(Hs,{ref:b,label:"",onKeyDown:S,leadingIcon:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_,{uniqueId:a,secUid:h,teaParams:w,"data-e2e":`${l}-user-avatar`,ref:y,onClick:L,extraQuery:k,tabIndex:-1,ariaLabel:n("accessibilityLabels_link_userProfile",{username:null==u?void 0:u.nickname}),children:(0,p.jsx)(Gs,{children:(0,p.jsx)(te.W,Object.assign(Object.assign({size:28},f),{isSmallerBadge:!0}))})}),(0,p.jsxs)(Xs,{uniqueId:a,secUid:h,teaParams:w,onClick:L,tabIndex:-1,ariaLabel:n("accessibilityLabels_link_userProfile",{username:null==u?void 0:u.nickname}),children:[(0,p.jsxs)(Vs,{children:[(0,p.jsx)(Ks,{weight:"medium","data-e2e":`${l}-user-title`,children:m}),g&&(0,p.jsx)("div",{"data-e2e":`${l}-user-bluev`,children:(0,p.jsx)(ie.s,{width:14,height:14})})]}),(0,p.jsx)(Js,{weight:"normal","data-e2e":`${l}-user-desc`,children:a})]})]}),variant:"secondary"})}))),Zs=(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,X.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)=>V()(e,t))),d=(0,o.useRef)(0);d.current=i.length;const{needRefresh:c,setPathname:u,pathname:h}=(0,G.$q)();(0,o.useEffect)((()=>{c&&s.getFollowingList({count:5}),u(h)}),[s,c,5]);const{setPlaying:g}=(0,K.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)&&I.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}=_e({hasMore:l,isShowingMore:t,totalLength:r,showNum:5,loading:a}),w=m.current&&y&&l||!l&&!y,k=J((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]),[v,l,y]),j=e("desktop_logged_in_profile");let S=0;return(0,p.jsxs)($s,{loading:a,title:j,children:[(0,p.jsx)(zs,{children:r?i.map(((e,t)=>e?(0,p.jsx)("li",{children:(0,p.jsx)(Ys,{index:t-S,ref:x(t-S),uniqueId:e,e2ePrefix:"following",itemType:"following",enterMethod:"click_navigation"})},e):(S++,null))):(0,p.jsx)(Da.F.P3,{style:{padding:"0 8px"},children:e("sidenav_follow_hint")})}),a?(0,p.jsx)("div",{style:{marginTop:"4px"},children:(0,p.jsx)(Ws,{})}):null,_&&(0,p.jsx)(Ns,{"data-e2e":"following-see-all",onClick:v,onKeyDown:k,"aria-expanded":w,"aria-labelledby":"side-nav-following-see-all",label:b,variant:"secondary",leadingIcon:(0,p.jsx)(Us,{children:(0,p.jsx)(qs,{up:!y,width:15,height:15})})})]})})),Qs=(0,P.default)("div",{target:"eo220d80"})((({theme:{colors:e}})=>[{position:"relative",borderTop:`1px solid ${e.LineSecondary}`,paddingTop:"16px",width:"12.5rem"}]),"label:DivFooterContainer;"),ed=e=>[(0,k.zy)({theme:e,color:"TextTertiary",fontFamily:"TikTokFont",fontWeight:"semiBold",typography:"P4",isLink:!0}),{display:"inline-block",marginRight:"6px",marginTop:"5px"}],td=(0,P.default)("span",{target:"eo220d81"})((({theme:e})=>ed(e)),"label:SpanCopyright;");td.defaultProps=Object.assign(Object.assign({},td.defaultProps),{"data-e2e":"copyright"});const nd=(0,P.default)("div",{target:"eo220d82"})({marginBottom:"8px",position:"relative"},"label:DivMoreContainer;"),id=(0,P.default)("span",{target:"eo220d83"})((({theme:e})=>ed(e)),{cursor:"pointer"},"label:SpanMoreText;");id.defaultProps=Object.assign(Object.assign({},id.defaultProps),{"data-e2e":"more-link"});const od=(0,P.default)("div",{target:"eo220d84"})({padding:"15px 16px 20px",width:"fit-content",maxWidth:"200px"},"label:DivMorePopupWrapper;"),ad=(0,P.default)(D.N_,{target:"eo220d85"})((({theme:e})=>[(0,k.zy)({theme:e,typography:"P2",fontWeight:"semiBold"}),{display:"block",":hover":{textDecoration:"none",color:e.colors.Primary},"& + &":{marginTop:"20px"}}]),"label:StyledMoreLink;"),ld=(0,P.default)("div",{target:"eo220d86"})((({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;"),rd=(0,P.default)(be.A,{target:"eo220d87"})((({theme:{direction:e}})=>[(0,k.mp)({direction:e,marginStart:"6px"}),{width:"11px"}]),"label:StyledChevronDownFill;"),sd=(0,P.default)("h4",{target:"eo220d88"})((({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;"),dd=(0,o.memo)((function(){const e=(0,C.s)(),{active:t,handleMouseEnter:n,handleMouseLeave:i}=(0,to.K)(),{region:a}=(0,h.P)(r.L,{selector:e=>{var t;return{region:null===(t=e.appContext)||void 0===t?void 0:t.region}},dependencies:[]}),{$legalList:l}=(0,h.P)(Ao.$,{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:s,programList:c,legalList:g}=(0,u.Db)(),{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),_t.f.sendEvent("click_footer_button",{footer_button:null!=e?e:""})},w=e=>_===e,k=`${(new Date).getFullYear()} TikTok`,j=(null!=l?l:[]).filter((e=>-1===(null==g?void 0:g.children.findIndex((({key:t})=>t===e.key)))||"copyright-policy"===e.key));return"DE"===(null==a?void 0:a.trim().toUpperCase())&&j.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())&&j.push({href:"https://www.tiktok.com/transparency/de-de/koplg-about/",key:"kopig",title:"KoPi-G"}),(0,p.jsxs)(Qs,{children:[s&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(sd,{first:!0,isActive:w("Company"),isCollapsible:!0,onClick:()=>y("Company"),children:s.title}),w("Company")&&(0,p.jsx)(ao,{navList:s.children,e2e:"page-link",pageListType:"Company"})]}),c&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(sd,{isCollapsible:!0,isActive:w("Program"),onClick:()=>y("Program"),children:c.title}),w("Program")&&(0,p.jsx)(ao,{navList:c.children,e2e:"program-link",pageListType:"Program"})]}),g&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(sd,{isCollapsible:!0,isActive:w("Legal"),onClick:()=>y("Legal"),children:g.title}),w("Legal")&&(0,p.jsx)(ao,{navList:g.children,e2e:"legal-link",pageListType:"Legal"})]}),m&&!v&&(0,p.jsxs)(ld,{onClick:()=>f(!0),children:[e("feed_caption_see_more"),(0,p.jsx)(rd,{})]}),j.length>0&&(0,p.jsx)(nd,{children:(0,p.jsxs)(id,{onMouseEnter:n,onMouseLeave:i,children:[e("more"),(0,p.jsx)(lo.z,{active:t,placement:"topLeft",verticalOffset:5,children:(0,p.jsx)(od,{children:j.map((({title:e,href:t})=>(0,p.jsx)(ad,{forceSSR:!0,to:t,target:"_blank",children:e},e)))})})]})}),(0,p.jsxs)(td,{children:["© ",k]})]})})),cd=(0,o.memo)((function(){return(0,p.jsx)(dd,{})}));var ud=n(65556);const pd=(0,o.memo)((function(){const{user:e}=(0,Ur.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,fe.W)((()=>["region"]),[])),[,n]=(0,Hl.I)(Vl.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,{})})),hd=(0,o.memo)((function({showRechargeButton:e,reportBotImpression:t,deviceType:n,handleItemClick:i,shouldTransparent:a,shouldDisableToggleTheme:l,adsSource:r,messageDrawer:d,isLiveNav:c,handleBackClick:u}){const h=(0,s.rl)(),g=(0,fe.W)((()=>["user"]),[]),m=null==g?void 0:g.user,v=!!(0,f.useRouteMatch)([T.OZ.messages]),{isDrawerOpen:x,isNavFullOpen:_}=(0,vi.Ap)((e=>({isDrawerOpen:e.isDrawerOpen,isNavFullOpen:e.isNavFullOpen})),pe.bN),{completeCloseDrawer:b,setIsDrawerAlwaysOpenAndDefaultDrawerType:y}=(0,vi.PS)();return(0,o.useEffect)((()=>{h&&y({isDrawerAlwaysOpen:v,defaultDrawerType:v?3:void 0}),v||b()}),[b,v,h,y]),(0,ud.c)(),(0,p.jsxs)(Mo,{children:[(0,p.jsxs)($o,{$isNavFullOpen:_,$shouldTransparent:a,children:[(0,p.jsx)(Ko,{$isDrawerOpen:x,$shouldTransparent:a}),(0,p.jsxs)(No,{children:[(0,p.jsx)(Uo,{$isNavFullOpen:_,children:(0,p.jsx)(Ps,{})}),!c&&(0,p.jsx)(qo,{$isNavFullOpen:_,children:(0,p.jsx)(Os,Object.assign({},aa))})]}),(0,p.jsxs)(zo,{children:[(0,p.jsx)(pr,{isLiveNav:c,handleBackClick:u}),(0,p.jsxs)(Ho,{$isDrawerOpen:x,children:[(0,p.jsx)(Ms,{showRechargeButton:e,adsSource:r}),m&&!e&&(0,p.jsx)(Zs,{})]}),e&&(0,p.jsxs)(Wo,{$isNavFullOpen:_,children:[(0,p.jsx)(w.QI,{deviceType:n,handleItemClick:i,isDrawerOpen:x}),(0,p.jsx)(w.$O,{deviceType:n,handleItemClick:i,isDrawerOpen:x})]}),(0,p.jsx)(Vo,{$isDrawerOpen:x,children:(0,p.jsx)(cd,{reportBotImpression:t})})]}),(0,p.jsx)(xs,{isDrawerOpen:x,disableToggleTheme:l,messageDrawer:d,isLiveNav:c})]}),(0,p.jsx)(pd,{})]})}));var gd=n(81659),md=n(12731),vd=n(2365);const fd=[T.OZ.setting,T.OZ.settingBlockList,T.OZ.feedback,T.OZ.feedbackReport,T.OZ.feedbackHistory,T.OZ.upload,T.OZ.download,...T.OZ.downloadWithLang],xd=()=>{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.Oj)(),m=(0,s.rl)();m||fd.push(T.OZ.messages);const v=(0,a.W5)(fd)||p,{language:f="en"}=(0,d.L$)(e),x=(0,o.useRef)(null),{sideNavWidth:_}=(0,gd.vV)(),b=(0,o.useCallback)((()=>{n.setSideNavActive(!1)}),[n]),{popupHeight:y}=(0,c.H)(),w=(0,i.Y)(l.Ay,{timeout:300,in:t,nodeRef:x,children:e=>(0,i.FD)("div",{ref:x,children:[(0,i.Y)(md.is,{status:e,onClick:b}),(0,i.Y)(Eo,{extraWidth:_,extraTop:y,transStatus:e,lang:f})]})}),k=(0,o.useCallback)((()=>h?(0,i.Y)(hd,{messageDrawer:m?(0,i.Y)(vd.U,{}):void 0}):(0,i.Y)(md.V$,{children:w})),[h]);return v?(0,i.Y)(i.FK,{}):k()}},28237:(e,t,n)=>{n.d(t,{HV:()=>a,OW:()=>r});var i=n(31209);const o=(0,n(43723).p)("confirmLogoutAtom@tiktok/webapp-atoms",{showModal:!1,modalType:0}),{useAtomService:a,useServiceState:l,useServiceDispatchers:r}=(0,i.i)(o,((e,t)=>({setShowModal(n){t(o,(()=>Object.assign(Object.assign({},e(o)),{showModal:n})))},setModalType(n){t(o,(()=>Object.assign(Object.assign({},e(o)),{modalType:n})))}})))},94914:(e,t,n)=>{n.d(t,{C_:()=>a,m$:()=>r,nF:()=>l});var i=n(31209);const o=(0,n(43723).p)("videoAsForyouAtom@tiktok/webapp-atoms",{enterForyou:!1}),{useAtomService:a,useServiceDispatchers:l,useServiceState:r,getStaticApi:s}=(0,i.i)(o,((e,t)=>({setEnterForyou(e){t(o,(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}},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}))}}},72898:(e,t,n)=>{n.d(t,{I:()=>o});var i=n(62186);const o=(()=>{const e={apply:function(e,t,n){return e(n[0],Object.assign(Object.assign({},n[1]),{shouldForwardProp:e=>{var t,i,o;return"theme"!==e&&!e.toString().startsWith("$")&&(null===(o=null===(i=null===(t=n[1])||void 0===t?void 0:t.shouldForwardProp)||void 0===i?void 0:i.call(t,e))||void 0===o||o)}}))}};return new Proxy(i.default,e)})()},30662:(e,t,n)=>{n.d(t,{tG:()=>s});var i,o,a=n(58632),l=n(7672),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",e.SnsDetailPage="ecom_email_subscription_and_save"}(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",ecom_email_subscription_and_save:"SNS_QR_code_instructions1"},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",ecom_email_subscription_and_save:"SNS_QR_code_instructions2"}}},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}}},4538:(e,t,n)=>{n.d(t,{i:()=>_});var i,o=n(58632),a=n(24643),l=n(25616),r=n(75431),s=n(62186),d=n(72153),c=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 u="1800ms",p=(0,r.i7)({"0%":{transform:"scale(.95)"},"50%":{transform:"scale(.9)"},"100%":{transform:"scale(.95)"}}),h=(0,r.i7)({"0%":{transform:"scale(1)"},"40%":{transform:"scale(1.15)"},"45%":{transform:"scale(1.16)"},"95%":{transform:"scale(1)"},"100%":{transform:"scale(1)"}}),g=(0,s.default)("svg",{target:"e1vl87hj0"})({position:"absolute"},"label:SvgRoundCircle;"),m=(0,s.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:`${h} ${u} ease-out infinite`,boxShadow:"0 -0.5px 0.5px 0.5px rgba(255,119,146,.5)"}}:null),"label:DivContainer;"),v=(0,s.default)(c.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:`${p} ${u} ease-out infinite`,animationDelay:".9s"}:null]),"label:StyledAvatar;"),f=(0,s.default)("span",{target:"e1vl87hj3"})((({theme:e,isOnTop:t=!1,isBiggerBadge:n=!1})=>[(0,d.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;"),x=function({size:e=48}){return(0,a.jsxs)(g,{width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:e/2,cy:e/2,r:e/2-.75,stroke:"url(#paint0_linear)",strokeWidth:"1.5"}),(0,a.jsx)("defs",{children:(0,a.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,a.jsx)("stop",{stopColor:"#FF1764"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#ED3495"})]})})]})},_=function(e){var{className:t,needAnimation:n=!1,isShowLive:i=!0,size:r=32,isShowLiveTag:s=!0,isTagShowingOnTop:d=!1,e2eTag:c,isBiggerBadge:u}=e,p=(0,o.__rest)(e,["className","needAnimation","isShowLive","size","isShowLiveTag","isTagShowingOnTop","e2eTag","isBiggerBadge"]);const h=(0,l.s)(),g=i&&n,_=i?r-6:r,b=g?r-4:r;return(0,a.jsxs)(m,{isAnimating:g,className:t,"data-e2e":c,style:{width:r,height:r},children:[i&&(0,a.jsx)(x,{size:b}),(0,a.jsx)(v,Object.assign({isAnimating:g,enable:!0,size:_},p)),i&&s&&(0,a.jsx)(f,{isOnTop:d,isBiggerBadge:u,children:h("LIVE")})]})}},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])}},67842:(e,t,n)=>{n.d(t,{W:()=>s});var i=n(88920),o=n(8615),a=n(52401),l=n(28237),r=n(40099);const s=e=>{const{setShowModal:t,setModalType:n}=(0,l.OW)(),s=(0,i.ZO)()&&(null==e?void 0:e.suggestAccountBind),d=(0,r.useCallback)((()=>{n(1),t(!0),o._.handleLinkPhoneOrEmailPopupShow({enterMethod:"logout"})}),[n,t]),c=(0,r.useCallback)((()=>{t(!0),a.z.logoutNotify()}),[t]);return{handleClickLogout:(0,r.useCallback)((()=>s?d:c),[c,d,s])}}},30488:(e,t,n)=>{n.d(t,{l:()=>k});var i=n(24643),o=n(42832),a=n(28237),l=n(40099),r=n(21482),s=n(75792),d=n(82715),c=n(52401),u=n(47172),p=n(99789),h=n.n(p),g=n(4474),m=n(25616),v=n(48615),f=n(58305),x=n(96689),_=n(33805),b=n(22884),y=n(30615),w=n(95481);const k=(0,l.memo)((function(){const e=(0,m.s)(),{pathname:t,search:n}=(0,u.useLocation)(),p=(0,v.U)((()=>["searchVideoForLoggedin"]),[]),[{showModal:k,modalType:j},{setShowModal:C,setModalType:S}]=(0,a.HV)((e=>({showModal:e.showModal,modalType:e.modalType}))),L={loginPath:s.tH.linkPhoneOrEmail,isLinkPhoneOrEmail:!0},T=(0,x.K)(L,void 0,!0),I=(0,l.useCallback)((()=>{try{C(!1),T()}catch(e){}}),[C,T]),P=(0,l.useCallback)((()=>{S(2),c.z.logoutNotify({enter_method:"link_phone_number"})}),[S]),D=(0,l.useCallback)((()=>{C(!1),c.z.logoutCancel(2===j||1===j?{enter_method:"link_phone_number"}:{})}),[C,j]),A=(null==p?void 0:p.searchVideoForLoggedin)&&[d.$T.searchHome(),d.$T.searchVideo()].includes(t)||[d.$T.messages(),d.$T.upload()].includes(t),O=(0,g.stringify)(h()((0,g.parse)(n),"q","t","showLogin","loginType")),E=O?`?${O}`:"",B=`https://www.tiktok.com${d.$T.foryou()}${E}`,F=(0,l.useCallback)((()=>"undefined"==typeof window?"":`${(0,_.AF)()}${E}`),[E]),R=(0,l.useCallback)((()=>{(0,f._S)(b.pF)&&(0,f.sc)(b.pF),(0,f._S)(b.Jq)&&(0,f.sc)(b.Jq),(0,y.iM)(A?B:F(),2===j||1===j?{enter_method:"link_phone_number"}:{})}),[B,F,A,j]);return(0,i.jsx)(w.aF,{visible:k,onClose:()=>C(!1),maskCloseable:!0,cancelMouseLeaveBubble:!0,children:1===j?(0,i.jsxs)(r.h0,{children:[(0,i.jsx)(o.F,{size:40}),(0,i.jsx)(r.nm,{children:e("login_fb_noLonger_LogInEase")}),(0,i.jsx)(r.aX,{children:e("login_fb_noLonger_LinkPhoneNumberReminder")}),(0,i.jsx)(r.iZ,{size:"small",onClick:I,children:e("login_fb_noLonger_LinkPhone")}),(0,i.jsx)(r.iZ,{size:"small",onClick:P,children:(0,i.jsxs)("span",{style:{color:"rgba(255, 76, 58, 1)"},children:[" ",e("log_out")," "]})})]}):(0,i.jsxs)(r.RA,{children:[(0,i.jsx)(r.C6,{children:e("Log_out_sheet_2")}),2===j&&(0,i.jsx)(r.rI,{children:e("login_fb_confirmLogOut_body")}),(0,i.jsxs)(r.rs,{children:[(0,i.jsx)(r.AR,{size:"small",onClick:D,children:e(2===j?"login_fb_confirmLogOut_stay_cta":"Cancel")}),(0,i.jsx)(r.AR,{size:"small",buttonTheme:"line",onClick:R,children:e("log_out")})]})]})})}))},95185:(e,t,n)=>{n.d(t,{$q:()=>_,FO:()=>x,NE:()=>f,Wg:()=>w,XV:()=>b,vy:()=>y});var i=n(46682),o=n(41271),a=n(40099),l=n(47172),r=(n(69970),n(58305)),s=n(45297),d=n(86389),c=n(59952),u=n(95810),p=n(82715),h=n(49677),g=n(96141),m=n(7089),v=n(32125);function f(){const[e,t]=(0,g.nO)((e=>({isModalShow:e.isModalShow,isExpand:e.isExpand})),v.bN);(0,a.useEffect)((()=>{const n=n=>{if(e.isModalShow)return;n.preventDefault();const i=e.isExpand||!(0,r._S)(s.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 x(e){const t=(0,i.w)(d.i);(0,a.useEffect)((()=>{e&&!e.ftcUser&&t.getNewestReply()}),[e,t])}const _=()=>{const e=(0,a.useRef)(""),t=[p.OZ.searchHome,p.OZ.searchUser,p.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 b(){const{photoSensitiveVideosSetting:e}=(0,o.P)(c.w);(0,a.useEffect)((()=>{h._.handleRemovePhotosensitiveStatus(1===e?"on":"off")}),[])}function y(){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(u.oe))&&i&&(0===i.indexOf("aweme")||0===i.indexOf("sslocal"))&&i.length<=2953?{isShow:!0,url:i}:{isShow:!1}}),[])}function w(){const e=(0,m.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(67963),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))}))}}}]);