12 lines
144 KiB
Plaintext
12 lines
144 KiB
Plaintext
"use strict";(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["6593"],{858788:function(e,l,o){o.d(l,{e:function(){return B}}),o("679308"),o("490629");var i=o("320165"),t=o("101199"),n=o("469935"),a=o.n(n),d=o("855436"),r=o("48795"),u=o("242875"),s=o("604785"),c=o("988805"),v=o("426112"),f=o("889429"),m=o("414061"),h=o("46892"),p=o("326367"),_=o("394408"),g=o("618759"),w=o("759894"),x=o("554469"),y=o("244297"),k=o("629686"),I=o("880327"),b=o("335924"),S=o("31992"),C=o("504420"),N=o("777293"),E=o("234150");function j(e){var l;let{awemeInfo:o,ableMiniType:n,followStatus:d,logParams:u}=e,s=(0,t.useRef)(null);return(0,i.jsx)(r.Tooltip,{className:a()(C.default.xgTip,{[C.default.ableMiniType]:n}),position:"left",content:(0,i.jsx)(i.Fragment,{children:"前往西瓜视频关注该作者"}),getPopupContainer:()=>s.current||document.body,children:(0,i.jsx)("div",{ref:s,children:(0,i.jsx)(E.a,{id:"xgIcon",href:(0,h.GN)(null==o?void 0:null===(l=o.authorInfo)||void 0===l?void 0:l.uid),target:"_blank",rel:"noopener noreferrer",className:C.default.xgIcon,onClick:()=>{var e;m.emit(m.EVENT.videoPause,"XgIcon_onClick"),N.Z.sendLog("follow",(0,k._)({urlParamList:["previous_page"],author_id:null==o?void 0:null===(e=o.authorInfo)||void 0===e?void 0:e.uid,group_id:null==o?void 0:o.awemeId,enter_from:(0,w.mo)(),is_full_screen:(0,I.r)()?"1":"0",tab_name:(0,S.zD)()||(0,b.Rs)("tab_name")||"",aweme_type:null==o?void 0:o.awemeType,from_xigua:1,relation:String(d)},u))}})})})}var T=JSON.parse('{"v":"5.7.1","fr":60,"ip":0,"op":91,"w":90,"h":90,"nm":"合成 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状图层 2","parent":2,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":80,"s":[100],"e":[0]},{"t":90}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.8,"y":0.66},"o":{"x":0.4,"y":0},"t":2,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13.5,0],[13.562,0]],"c":true}],"e":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13.5,0],[13.562,0]],"c":true}]},{"i":{"x":0.6,"y":1},"o":{"x":0.2,"y":0.34},"t":7,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13.5,0],[13.562,0]],"c":true}],"e":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-7.224,-14.544],[10.21,2.806]],"c":true}]},{"t":13}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2,"s":[1,1,1,1],"e":[0.996078431606,0.172549024224,0.333333343267,1]},{"t":13}],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":90,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.8,"y":0.68},"o":{"x":0.4,"y":0},"t":2,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13.5,0],[13.562,0]],"c":true}],"e":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-0.062,9.062],[0.021,-8.958]],"c":true}]},{"i":{"x":0.6,"y":1},"o":{"x":0.2,"y":0.32},"t":7,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-0.062,9.062],[0.021,-8.958]],"c":true}],"e":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-2.81,10.208],[-12.518,0.573]],"c":true}]},{"t":13}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2,"s":[1,1,1,1],"e":[0.996078431606,0.172549024224,0.333333343267,1]},{"t":13}],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 1","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"形状图层 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[1],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":19,"s":[100],"e":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.4],"y":[0]},"t":80,"s":[100],"e":[0]},{"t":90}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[45,45,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.6,0.6,0.833],"y":[1,1,5.167]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,3.333]},"t":0,"s":[100,100,100],"e":[60,60,100]},{"i":{"x":[0.6,0.6,0.833],"y":[1,1,1]},"o":{"x":[0.4,0.4,0.167],"y":[0,0,5.682]},"t":2,"s":[60,60,100],"e":[115,115,100]},{"i":{"x":[0.6,0.6,0.833],"y":[1,1,1]},"o":{"x":[0.4,0.4,0.167],"y":[0,0,0]},"t":13,"s":[115,115,100],"e":[95,95,100]},{"i":{"x":[0.6,0.6,0.564],"y":[1,1,1]},"o":{"x":[0.314,0.314,0.206],"y":[0,0,0]},"t":19,"s":[95,95,100],"e":[100,100,100]},{"i":{"x":[1,1,0.839],"y":[1,1,1]},"o":{"x":[0.4,0.4,0.304],"y":[0,0,0]},"t":25,"s":[100,100,100],"e":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,14.333]},"o":{"x":[0.4,0.4,0.167],"y":[0,0,-13.333]},"t":80,"s":[100,100,100],"e":[20,20,100]},{"t":90}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-19.882,0],[0,-19.882],[19.882,0],[0,19.882]],"o":[[19.882,0],[0,19.882],[-19.882,0],[0,-19.882]],"v":[[0,-36],[36,0],[0,36],[-36,0]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2,"s":[0.996078431606,0.172549024224,0.333333343267,1],"e":[1,1,1,1]},{"t":13}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'),L=JSON.parse('{"v":"5.7.1","fr":60,"ip":0,"op":11,"w":90,"h":90,"nm":"合成 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状图层 2","parent":2,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0],"e":[100]},{"t":10}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13.5,0],[13.562,0]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":90,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13.5,0],[13.562,0]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 1","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"形状图层 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.412],"y":[1]},"o":{"x":[0],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":10}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[45,45,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.392,0.392,0.839],"y":[1,1,1]},"o":{"x":[0,0,0.167],"y":[0,0,13.333]},"t":0,"s":[20,20,100],"e":[100,100,100]},{"t":10}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-19.882,0],[0,-19.882],[19.882,0],[0,19.882]],"o":[[19.882,0],[0,19.882],[-19.882,0],[0,-19.882]],"v":[[0,-36],[36,0],[0,36],[-36,0]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.996078431606,0.172549024224,0.333333343267,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'),M=o("396868"),R=o("548669"),A=o("700762"),P=o("157762"),V=o("316213");let z=(0,d.ZP)(()=>o.e("47876").then(o.bind(o,382332)),{ssr:!1}),D=(0,f.b_)();function B(e){var l,o,n,d,f,k,I;let{awemeInfo:b={},loginUserInfo:S,shortcut:E={},isShowKeyHotTip:B,ableMiniType:F=!1,followBtnMouseEnter:W,followBtnMouseLeave:U,isXgVideo:Z,isFollowClickedRef:H,actionFollow:O,actionUnFollow:K,showImBtn:G,player:q,isMobileOversea:Y,onCooperAitonClick:Q,loginPanelTarget:X,toast:$,abtestData:J,onFollowBtnClick:ee,isLogin:el}=e,eo=(0,t.useRef)(null),ei=(0,t.useRef)(!1),et=(0,t.useRef)(null),{isiPad:en,isMobile:ea}=(0,u.X)(),[ed,er]=(0,t.useState)(!1),[eu,es]=(0,t.useState)(!0),[ec,ev]=(0,t.useState)(!1),ef=null==J?void 0:J.reduceLottie,em=(0,t.useRef)(null),eh=(0,t.useRef)(null),{followStatus:ep}=(0,P.r)({selfUid:null==S?void 0:null===(l=S.info)||void 0===l?void 0:l.uid,actionUid:null==b?void 0:null===(o=b.authorInfo)||void 0===o?void 0:o.uid,defaultFollowerStatus:null==b?void 0:null===(n=b.authorInfo)||void 0===n?void 0:n.followerStatus,defaultFollowStatus:null==b?void 0:null===(d=b.authorInfo)||void 0===d?void 0:d.followStatus}),e_=()=>{var e,l,o,i;let t=null===(l=em.current)||void 0===l?void 0:null===(e=l.getLottieInstance)||void 0===e?void 0:e.call(l),n=null===(i=eh.current)||void 0===i?void 0:null===(o=i.getLottieInstance)||void 0===o?void 0:o.call(i),a=()=>{var e;null==t||null===(e=t.goToAndStop)||void 0===e||e.call(t,0),er(!1),es(!0)},d=()=>{var e;null==n||null===(e=n.goToAndStop)||void 0===e||e.call(n,0),er(!0),es(!1)},r=()=>{a(),ei.current=!1},u=()=>{d(),ei.current=!1};return{follow:()=>{a(),setTimeout(()=>{var e;null==t||null===(e=t.play)||void 0===e||e.call(t),D&&r()}),!G&&(ei.current=!0),H.current=!1},unfollow:()=>{d(),setTimeout(()=>{var e;null==n||null===(e=n.play)||void 0===e||e.call(n),D&&u()}),!G&&(ei.current=!0),H.current=!1},followEnd:r,unfollowEnd:u,setFollowStatus:d,setUnFollowStatus:a}};(0,t.useEffect)(()=>{var e,l,o;ei.current=!1,(null===(l=eo.current)||void 0===l?void 0:null===(e=l.authorInfo)||void 0===e?void 0:e.uid)!==(null==b?void 0:null===(o=b.authorInfo)||void 0===o?void 0:o.uid)?ep===c.$u.UnFollow?e_().setUnFollowStatus():e_().setFollowStatus():((0,_.F)(ep)?e_().follow():e_().unfollow(),ef&&ev(!0)),eo.current=b},[ep]);let eg=(0,t.useCallback)(async()=>{if(Z){var e;m.emit(m.EVENT.videoPause,"FollowButton_onClick"),window.open((0,h.GN)(null==b?void 0:null===(e=b.authorInfo)||void 0===e?void 0:e.uid),(0,p.f)()?"_self":"_blank");return}if((0,v.gc)(b)){$?$("广告视频不支持此功能"):M.F.info("广告视频不支持此功能");return}if(Q)return;H.current=!0;let l=(0,_.V)(ep);!ei.current&&(l?null==K||K({clickFrom:"hot_key",loginPanelTarget:X}):null==O||O({clickFrom:"hot_key",loginPanelTarget:X}),G&&(ei.current=!1),(0,s.VY)({info:{[x.BW.Follow]:!l},awemeId:null==b?void 0:b.awemeId,abData:0}))},[b,K,O,ep,Z,Q,H,G,X]);(0,t.useEffect)(()=>{if(q)return null==q||q.on("onFollow",eg),()=>{null==q||q.off("onFollow",eg)}},[q,eg]);let{inImmersive:ew}=(0,A.O)({player:q,isActive:!0});return(0,i.jsx)(r.Tooltip,{position:"left",style:ea||en||!B||ed||Z||Y?{display:"none"}:{},className:C.default.tipStyle,content:(0,i.jsx)("div",{className:C.default.shortcutTip,children:(0,i.jsxs)(i.Fragment,{children:["关注",(null==E?void 0:null===(f=E.follow)||void 0===f?void 0:f.badgeText)&&(0,i.jsx)("span",{className:C.default.tipKey,children:E.follow.badgeText})]})}),getPopupContainer:()=>et.current||document.body,children:(0,i.jsx)("div",{ref:et,className:a()(C.default.followWrap,{[C.default.followWrapMobile]:(0,g.tq)()}),"data-e2e":"feed-follow-icon",children:(0,i.jsxs)("div",{onMouseEnter:e=>{!ed&&(null==W||W(e))},onMouseLeave:e=>{N.Z.sendLog("hover_follow_icon",{enter_from:(0,w.mo)()}),!ed&&(null==U||U(e))},onClick:e=>{var l,o,i,t;if(Y&&e.stopPropagation(),!el&&Y){(0,R.Z)({success:async()=>{window.location.reload()},enterMethod:"comment",next:`https://${null===(i=window)||void 0===i?void 0:null===(o=i.location)||void 0===o?void 0:o.host}`,headerText:"登录抖音"});return}if(null==q||q.emit("shortcutTopic"),(null==e?void 0:null===(l=e.target)||void 0===l?void 0:l.id)==="xgIcon")return;if(Z){m.emit(m.EVENT.videoPause,"FollowButton_onClick"),window.open((0,h.GN)(null==b?void 0:null===(t=b.authorInfo)||void 0===t?void 0:t.uid),(0,p.f)()?"_self":"_blank");return}H.current=!0,null==ee||ee();let n=(0,_.V)(ep);(!ei.current&&!ed||D)&&(n?null==K||K({clickFrom:void 0,loginPanelTarget:X}):null==O||O({clickFrom:void 0,loginPanelTarget:X}),(0,s.VY)({info:{[x.BW.Follow]:!n},awemeId:null==b?void 0:b.awemeId,abData:0}))},className:a()(C.default.followWrapBox),children:[Z&&(0,i.jsx)(j,{awemeInfo:b,ableMiniType:F,followStatus:ep,logParams:{is_pure:ew?"1":"0"}}),!Z&&!D&&(ec||!ef?(null==b?void 0:null===(k=b.authorInfo)||void 0===k?void 0:k.uid)!==(null==S?void 0:null===(I=S.info)||void 0===I?void 0:I.uid)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z,{hidden:ed,onComplete:()=>e_().unfollowEnd(),className:C.default.followIcon,data:T,ref:em,loop:!1,autoplay:!1,onInit:()=>{ef&&((0,_.F)(ep)?e_().follow():e_().unfollow())}}),(0,i.jsx)(z,{hidden:eu,onComplete:()=>e_().followEnd(),className:a()(C.default.followIcon,{[C.default.hideFollowedLottie]:Y&&ed}),data:L,ref:eh,loop:!1,autoplay:!1})]}):(0,i.jsx)(V.z,{svg:(0,i.jsx)(y.Z,{}),className:a()(C.default.followIcon,C.default.followIconLow,{[C.default.hidden]:(0,_.V)(ep)})})),!Z&&D&&(0,i.jsx)(V.z,{svg:(0,i.jsx)(y.Z,{}),className:a()(C.default.followIcon,C.default.followIconLow,{[C.default.hidden]:(0,_.V)(ep)})})]})})})}},19886:function(e,l,o){o.d(l,{Z:function(){return A}});var i=o("629686"),t=o("402748");o("490629");var n=o("320165"),a=o("101199"),d=o("469935"),r=o.n(d),u=o("121998"),s=o("48795"),c=o("855357"),v=o("46892"),f=o("880327"),m=o("759894"),h=o("504420"),p=o("858788"),_=o("952379"),g=o("396868"),w=o("316213");function x(e){let{onAvatarClick:l,preventAvatarDefaultHandle:o,handleAvatarClick:i,player:t,toast:d}=e,u=(0,a.useCallback)(()=>{d?d("广告视频不支持此功能"):g.F.info("广告视频不支持此功能")},[]);return(0,a.useEffect)(()=>{if(t)return null==t||t.on("onFollow",u),()=>{null==t||t.off("onFollow",u)}},[t,u]),(0,n.jsx)("div",{className:r()(h.default.followWrap),children:(0,n.jsx)("div",{className:r()(h.default.followWrapBox),onClick:e=>{null==l||l(e,{clickMethod:"click_icon"}),o||null==i||i()},children:(0,n.jsx)(w.z,{className:h.default.followIcon,svg:(0,n.jsx)(_.Z,{style:{fontSize:"24px"}})})})})}var y=o("414061");let k=(0,a.forwardRef)((e,l)=>(0,n.jsxs)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10z",fill:"#fff"}),(0,n.jsx)("path",{d:"M4.876 8.407l8.918-3.185a.9.9 0 0 1 1.15 1.15l-3.185 8.919a.9.9 0 0 1-1.62.16l-1.431-2.387a.72.72 0 0 1 .071-.84l4.327-5.037c.072-.084-.043-.199-.127-.126l-5.037 4.326a.72.72 0 0 1-.84.072l-2.387-1.432a.9.9 0 0 1 .16-1.62z",fill:"#FE2C55"})]})));var I=o("777293"),b=o("176449");function S(e){var l,o;let{isShowKeyHotTip:i,imBtnMouseEnter:t,imBtnMouseLeave:d,awemeInfo:u,player:c,loginUserInfo:v,abtestData:f}=e,m=a.useRef(null);return(0,n.jsx)(s.Tooltip,{position:"left",style:i?{}:{display:"none"},className:h.default.tipStyle,content:(0,n.jsx)("div",{className:h.default.shortcutTip,children:"私信"}),getPopupContainer:()=>m.current||document.body,children:(0,n.jsx)("div",{ref:m,className:r()(h.default.followWrap),children:(0,n.jsx)("div",{onMouseEnter:e=>{null==t||t(e),I.Z.sendLog("chatIconHover")},onMouseLeave:e=>null==d?void 0:d(e),onClick:()=>{var e,l;I.Z.sendLog("chatIconClick"),y.emit(y.EVENT.sendImUserMsg,{uid:null==u?void 0:null===(e=u.authorInfo)||void 0===e?void 0:e.uid,enterMethod:"friend_im_icon"}),null==c||null===(l=c.exitFullscreen)||void 0===l||l.call(c),y.emit(y.EVENT.pageFullScreen,{fullScreen:!1,playerId:null==c?void 0:c.playerId})},className:r()(h.default.followWrapBox),children:(null==u?void 0:null===(l=u.authorInfo)||void 0===l?void 0:l.uid)!==(null==v?void 0:null===(o=v.info)||void 0===o?void 0:o.uid)&&(0,n.jsx)(b.Z,{className:r()(h.default.followIcon,h.default.imIcon),src:k,width:20,height:20,viewBox:"0 0 20 20"})})})})}var C=o("426112"),N=o("72430"),E=o("499059"),j=o("628077"),T=o("326367"),L=o("332009"),M=o("234150"),R=o("656266");function A(e){var l,o,d;let{player:_,awemeInfo:w={},customHrefParams:k={},shortcut:b={},onAvatarClick:A=null,preventAvatarDefaultHandle:P=!0,ableMiniType:V=!1,showFollowBtn:z=!0,showImBtn:D=!1,showAdBtn:B=!1,onCooperAitonClick:F,loginUserInfo:W,isShowKeyHotTip:U,isFollowClickedRef:Z,loginPanelTarget:H,actionFollow:O,actionUnFollow:K,followBtnMouseEnter:G,followBtnMouseLeave:q,imBtnMouseEnter:Y,imBtnMouseLeave:Q,isMobileOversea:X,className:$,avatarClassName:J,toast:ee,abtestData:el,onFollowBtnClick:eo,onAvatarRef:ei,avatarType:et="extraSmall",isLogin:en}=e,[ea,ed]=(0,a.useState)(!1),er=(0,a.useCallback)(()=>{var e;return null==_?void 0:null===(e=_.pause)||void 0===e?void 0:e.call(_)},[_]),eu=(0,a.useRef)(null),es=(0,a.useRef)(null),ec=(0,a.useMemo)(()=>{var e,l;return(null==w?void 0:w.awemeType)===c.e.XgVideo?(0,v.GN)(null==w?void 0:null===(e=w.authorInfo)||void 0===e?void 0:e.uid):(0,v.HC)(null==w?void 0:null===(l=w.authorInfo)||void 0===l?void 0:l.secUid,(0,u.stringify)((0,i._)({is_full_screen:(0,f.r)()?"1":"0",enter_method:"video_title",from_gid:w.groupId,vid:null==w?void 0:w.awemeId},k)))},[w,k]),ev=(0,a.useMemo)(()=>(0,n.jsx)("div",{className:h.default.shortcutTip,children:"前往西瓜视频访问作者主页"}),[]),ef=null==w?void 0:null===(l=w.authorInfo)||void 0===l?void 0:l.avatarUri,em=(null==w?void 0:w.awemeType)===c.e.XgVideo;!function(e){let{awemeInfo:l,onAvatarClick:o,preventAvatarDefaultHandle:i,onCooperAitonClick:t,handleAvatarClick:n,userHref:d,player:r,toast:u,abtestData:s}=e,c=(0,a.useCallback)(e=>{var a;let{isInModal:c}=null!==(a=E.Le.getConfig(E.gI.IsInModalVideo))&&void 0!==a?a:{};if((0,C.Jt)(l)&&(0,C.Gu)(l)){u?u("广告视频暂不支持此快捷方式"):g.F.info("广告视频暂不支持此快捷方式");return}if((c||L.s.getPlayerScene(null==r?void 0:r.playerId)===N.lT.Detail)&&(0,C.gc)(l)){u?u("广告视频暂不支持此快捷方式"):g.F.info("广告视频暂不支持此快捷方式");return}if(t)return;let v=null==o?void 0:o(e,{clickMethod:"hot_key"});if(!(0,C.Jt)(l)||!!(0,C.Gu)(l))i||n(),!v&&((0,j.$)(s,l)?y.emit(y.EVENT.changeRoute,{to:d}):window.open(d,(0,T.f)()?"_self":"_blank"))},[l,o,n,i,d,t,r,s,u]),v=(0,a.useCallback)(()=>{var e;let{isInModal:o}=null!==(e=E.Le.getConfig(E.gI.IsInModalVideo))&&void 0!==e?e:{};if((o||L.s.getPlayerScene(null==r?void 0:r.playerId)===N.lT.Detail)&&(0,C.gc)(l)){u?u("广告视频不支持此功能"):g.F.info("广告视频不支持此功能");return}},[l]);(0,a.useEffect)(()=>{if(r)return null==r||r.on("onAvatar",c),null==r||r.on("onFollow",v),()=>{null==r||r.off("onAvatar",c),null==r||r.off("onFollow",v)}},[r,c,v])}({awemeInfo:w,onAvatarClick:A,preventAvatarDefaultHandle:P,onCooperAitonClick:F,handleAvatarClick:er,userHref:ec,player:_,toast:ee,abtestData:el});let eh=(0,a.useCallback)(()=>{I.Z.sendLog("hover_author_head",{enter_from:(0,m.mo)(),click_from:"click_icon"})},[]);return(0,n.jsxs)("div",{className:r()(h.default.avatarWrap,h.default.animation,{[h.default.ableMiniType]:V,[h.default.cooperAvatar]:F},$),ref:eu,children:[(0,n.jsx)(M.a,{className:h.default.avatar,"data-e2e":"video-avatar",onMouseEnter:eh,onClick:e=>{if(!X){if(F){e.preventDefault(),null==F||F();return}null==_||_.emit("shortcutTopic"),null==A||A(e,{clickMethod:"click_icon"}),P||er()}},href:ec,target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(s.Tooltip,{position:"left",className:h.default.shortcutTipWrap,style:em?{}:{display:"none"},content:ev,getPopupContainer:()=>(null==es?void 0:es.current)||document.body,children:(0,n.jsx)("div",{ref:e=>{es.current=e,null==ei||ei(e)},children:(0,n.jsx)(R.q,{src:ef,type:"extraSmall",className:r()(h.default.horizontalAvatar,h.default.avatarImageWrap,J)})})})}),z&&(null==w?void 0:null===(o=w.authorInfo)||void 0===o?void 0:o.uid)!==(null==W?void 0:null===(d=W.info)||void 0===d?void 0:d.uid)&&(0,n.jsx)(p.e,{isLogin:en,awemeInfo:w,loginUserInfo:W,shortcut:b,isMobileOversea:X,isShowKeyHotTip:U,ableMiniType:V,followBtnMouseEnter:G,followBtnMouseLeave:q,setShowAvatarTip:ed,showAvatarTip:ea,isXgVideo:em,isFollowClickedRef:Z,actionFollow:O,actionUnFollow:K,showImBtn:D,player:_,onCooperAitonClick:F,loginPanelTarget:H,abtestData:el,onFollowBtnClick:eo}),D&&(0,n.jsx)(S,{isShowKeyHotTip:U,showAvatarTip:ea,setShowAvatarTip:ed,imBtnMouseEnter:Y,imBtnMouseLeave:Q,awemeInfo:w,player:_,loginUserInfo:W,abtestData:el}),B&&(0,n.jsx)(x,(0,t._)((0,i._)({},e),{player:_}))]})}},777293:function(e,l,o){var i=o(624508);l.Z=new i.h({hover_author_head:{eventName:"hover_author_head",params:{enter_from:"",click_from:""}},hover_follow_icon:{eventName:"hover_follow_icon",params:{enter_from:""}},livesdkLiveShow:{eventName:"livesdk_live_show",params:{enter_from_merge:"",enter_method:"web_video_head",action_type:"",request_id:"",is_vs:0,vs_episode_id:"",vs_ep_group_id:"",vs_season_id:"",vs_episode_stage:"",anchor_id:"",room_id:"",is_paidlive:"",watch_paidlive_status:""}},livesdkRecLivePlay:{eventName:"livesdk_rec_live_play",params:{anchor_id:"",room_id:"",enter_from_merge:"web_others_homepage",enter_method:"web_video_head",game_name:"",live_type:"",is_aweme_tied:0,game_live_source:"",url:"",url_path:"",action_type:"click",request_id:"",stream_type:"",is_vs:0,vs_episode_id:"",vs_ep_group_id:"",vs_season_id:"",vs_episode_stage:"",is_paidlive:0,watch_paidlive_status:""}},livesdkMiniWindowPlay:{eventName:"livesdk_mini_window_preview_play",params:{anchor_id:"",room_id:"",enter_from_merge:"web_others_homepage",enter_method:"web_video_head",game_name:"",live_type:"",is_aweme_tied:0,game_live_source:"",url:"",url_path:"",action_type:"click",request_id:"",is_click_mini_window:"0"}},follow:{eventName:"follow",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0",tab_name:"",click_method:"",aweme_type:"",from_xigua:0,relation:""}},followCancel:{eventName:"follow_cancel",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0",tab_name:""}},topknotLoginShow:{eventName:"topknot_login_show",params:{group_id:"",relation:0}},chatIconHover:{eventName:"chat_icon_hover",params:{}},chatIconClick:{eventName:"chat_icon_click",params:{}}})},996473:function(e,l,o){o.r(l),o.d(l,{InteractionInner:function(){return o9},InteractionNew:function(){return io},Interaction:function(){return il}});var i=o("629686"),t=o("402748");o("490629");var n=o("320165"),a=o("101199"),d=o("890710"),r=o("469935"),u=o.n(r),s=o("48795"),c=o("242875"),v=o("540129"),f=o("356336"),m=o("573031"),h=o("414061"),p=o("273372"),_=o("618759"),g=o("889429"),w=o("609555"),x=o("636081"),y=o("365169"),k=o("493630"),I=o("768114"),b=o("426038"),S=o("709705");o("683656"),o("759943");var C=o("350856"),N=o.n(C),E=o("855357"),j=o("782166"),T=o("880327"),L=o("759894"),M=o("335924"),R=o("499059"),A=o("853344"),P=o("31992"),V=o("48094"),z=o("396868"),D=o("624508"),B=new D.h({clickCommentButton:{eventName:"click_comment_button",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0",tab_name:"",click_method:"",from_follow_list:"0",trending_topic:"",first_tag_name:"",top:0,aweme_type:-1,item_duration_ms:0}},follow:{eventName:"follow",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0",tab_name:"",click_method:"",relation:"",trending_topic:"",first_tag_name:"",top:0,aweme_type:-1,is_pure:""}},followCancel:{eventName:"follow_cancel",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0",tab_name:"",trending_topic:"",first_tag_name:"",top:0}},shareVideo:{eventName:"share_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",type:"",is_full_screen:"0",from_follow_list:"0",aweme_type:"",pic_cnt:0,tab_name:"",is_pure:"",click_method:"",is_from_aweme_search_engine:0}}});let F=e=>{var l,o,i,t,n,a,d,r,u,s,c,v,f,m,h,p,_,g,w;return{author_id:null==e?void 0:null===(l=e.authorInfo)||void 0===l?void 0:l.uid,group_id:null==e?void 0:e.awemeId,log_pb:null==e?void 0:e.logPb,compilation_id:null==e?void 0:null===(o=e.mixInfo)||void 0===o?void 0:o.mixId,impressionData:null==e?void 0:e.impressionData,awemeId:null==e?void 0:e.awemeId,vduration:null==e?void 0:null===(i=e.video)||void 0===i?void 0:i.duration,isH265:(null==e?void 0:null===(a=e.video)||void 0===a?void 0:null===(n=a.bitRateList)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.isH265)||(null==e?void 0:null===(d=e.video)||void 0===d?void 0:d.isH265),qualityType:(null==e?void 0:null===(s=e.video)||void 0===s?void 0:null===(u=s.bitRateList)||void 0===u?void 0:null===(r=u[0])||void 0===r?void 0:r.qualityType)||(null==e?void 0:null===(c=e.video)||void 0===c?void 0:c.qualityType),bitRate:(null==e?void 0:null===(m=e.video)||void 0===m?void 0:null===(f=m.bitRateList)||void 0===f?void 0:null===(v=f[0])||void 0===v?void 0:v.bitRate)||(null==e?void 0:null===(h=e.video)||void 0===h?void 0:h.bitRate),videoFormat:null==e?void 0:null===(p=e.video)||void 0===p?void 0:p.videoFormat,gearName:(null==e?void 0:null===(w=e.video)||void 0===w?void 0:null===(g=w.bitRateList)||void 0===g?void 0:null===(_=g[0])||void 0===_?void 0:_.gearName)||""}};var W=o("734123"),U=o.n(W),Z=o("437589"),H=o("726625"),O=o("692956"),K=o("611311"),G=o("913285"),q=o("310383");let Y=(0,a.memo)(e=>{var l,o;let{awemeInfo:t,abtestData:d,shortcut:r,disableClick:s,onRelatedClick:c,loginUserInfo:v,fullScreenTarget:f,loginDispatch:m,reportExtraParams:h,isSearchPlayer:p,onShareToFriend:_,player:g,inImmersive:w,hasDouPlusEntrance:x,onDouPlusClick:y,singleBox:k,setSingleBox:b,renderCallback:S}=e,{type:C,changeType:N}=(0,K.P)({delayDisappear:50,delayShow:null!==(o=null==d?void 0:d.interactionDelay)&&void 0!==o?o:Z.o}),[E,j]=(0,a.useState)("icon"),[T,L]=(0,a.useState)(0),M=(0,a.useRef)(!1),R=(0,a.useRef)(null),A=(0,a.useCallback)(()=>{var e,l,o,i,n;if((null==t?void 0:null===(e=t.awemeControl)||void 0===e?void 0:e.canShare)!==!1){j("icon"),null==b||b("share_btn");L((null!==(n=null==g?void 0:null===(i=g.root)||void 0===i?void 0:null===(o=i.getBoundingClientRect)||void 0===o?void 0:null===(l=o.call(i))||void 0===l?void 0:l.height)&&void 0!==n?n:180)-180),N("share_btn"),!(null==d?void 0:d.enableZustand)&&(null==S||S())}},[t,g,N,b,null==d?void 0:d.enableZustand,S]),P=(0,a.useCallback)(e=>{var l;if(null===(l=R.current)||void 0===l?!void 0:!l.contains(e.target))!(null==M?void 0:M.current)&&N("")},[N]),V=(0,a.useCallback)(e=>{var l;if(null===(l=R.current)||void 0===l?!void 0:!l.contains(e.target))A()},[A]),z=(0,a.useCallback)(e=>{var l;if(null===(l=R.current)||void 0===l?!void 0:!l.contains(e.target))A()},[A]);return(0,a.useEffect)(()=>{"share_btn"!==k&&N("",!0)},[k,N]),(0,n.jsxs)("div",{className:I.default.shareWrap,onMouseLeave:P,onMouseEnter:V,onClick:z,children:[(0,n.jsx)(O.Z,{shortcut:r,scene:"video",ableMiniType:!0,canAnimation:!1,disableShare:(null==t?void 0:null===(l=t.awemeControl)||void 0===l?void 0:l.canShare)===!1,abtestData:d,awemeInfo:t}),((null==d?void 0:d.useCache)!==1||"share_btn"===C)&&(0,n.jsx)(H.Z,{onDouPlusClick:x?y:void 0,toast:e.videoToast,shareShowMethod:E,awemelogPb:null==t?void 0:t.logPb,awemeInfo:t,className:u()(I.default.shareBox,I.default.shareCode,{[I.default.relate]:c},"recommend-login-panel"),loginUserInfo:v,fullScreenTarget:f,loginDispatch:m,hidden:s||"share_btn"!==C,abtestData:d,handleClose:()=>N(""),shortcutObj:r,onMouseEnter:()=>void 0,onMouseLeave:()=>void 0,reportExtraParams:(0,i._)({is_pure:w?"1":"0"},h),shareeListHeight:T,onFriendSearching:e=>{M.current=e},isSearchPlayer:p,handleShareToFriend:_,handleShareSuccess:()=>null==g?void 0:g.emit(W.Events.USER_ACTION,{action:"share"})})]})}),Q=(0,a.memo)(e=>{let l=(0,q.N)();return(0,n.jsx)(G.k,{componentName:"ShareSection",Slardar:l,children:(0,n.jsx)(Y,(0,i._)({},e))})});var X=o("426112"),$=o("816565"),J=o("72430"),ee=o("19886");o("706056"),o("228983"),o("656562"),o("992871");var el=o("536793"),eo=o("706869"),ei=o("20113"),et=o("206698"),en=o("762167"),ea=o("403154"),ed=o("46892"),er=o("947383"),eu=o("133060"),es=o("205030"),ec=o("777293"),ev=o("504420"),ef=o("638183"),em=o("858788"),eh=o("339808");let ep=e=>{var l,o,i,t,n,a,d,r;let{uid:u,roomId:s,logId:c,episodeExtra:v,streamType:f,paidLiveData:m}=e;ec.Z.sendLog("livesdkRecLivePlay",{enter_from_merge:(null===(o=location.href)||void 0===o?void 0:null===(l=o.includes)||void 0===l?void 0:l.call(o,"/jingxuan"))?"web_homepage_discover":(0,ea.r)()||"web_video_detail",enter_method:"web_video_head",anchor_id:u,room_id:s,game_name:"",live_type:"game",game_live_source:"game_web",url:location.href,url_path:location.pathname,is_paidlive:Number(null==m?void 0:m.paid_type),watch_paidlive_status:(null==m?void 0:m.view_right)?"regular":(null==m?void 0:m.duration)>=180?"try_end":"try",request_id:c,stream_type:null!==(r=es.PY[f])&&void 0!==r?r:"other",is_vs:v?1:0,vs_episode_id:v?null===(i=v.episode_extra)||void 0===i?void 0:i.episode_id_str:"",vs_ep_group_id:v?null===(t=v.episode_extra)||void 0===t?void 0:t.item_id:"",vs_season_id:v?null===(n=v.episode_extra)||void 0===n?void 0:n.season_id_str:"",vs_episode_stage:v?(null===(d=v.episode_extra)||void 0===d?void 0:null===(a=d.mod)||void 0===a?void 0:a.episode_stage)===ei.W.FirstLive?"premiere":"live":""})};function e_(e){var l,o,t,d,r,s,c;let[v,f]=(0,a.useState)(!1),{awemeInfo:m={},logId:h,className:p,ableMiniType:w,isEcomLive:x=!1,isActive:y,useAuto:k,from:I,showFollowBtn:b,isLogin:S,loginUserInfo:C,shortcut:N={},isMobileOversea:E,isShowKeyHotTip:j,followBtnMouseEnter:T,followBtnMouseLeave:L,setShowAvatarTip:M,showAvatarTip:A,isXgVideo:P,isFollowClickedRef:V,actionFollow:z,actionUnFollow:D,showImBtn:B,player:F,onCooperAitonClick:W,loginPanelTarget:U,onFollowBtnClick:Z}=e,H=(0,a.useMemo)(()=>{var e,l;return null==m?void 0:null===(l=m.authorInfo)||void 0===l?void 0:null===(e=l.roomData)||void 0===e?void 0:e.paid_live_data},[null==m?void 0:null===(l=m.authorInfo)||void 0===l?void 0:l.roomData]),O=(0,eh.a)(),{avatarUri:K,roomData:G,roomId:q,uid:Y}=null==m?void 0:m.authorInfo,{awemeId:Q}=m,[ee,ei]=(0,a.useState)({show:!1,hover:!1}),es=(0,a.useMemo)(()=>{var e,l;return{enter_from_merge:(null===(l=O.href)||void 0===l?void 0:null===(e=l.includes)||void 0===e?void 0:e.call(l,"/jingxuan"))?"web_homepage_discover":(0,ea.r)(),enter_method_temai:"web_video_head",enter_method:"web_video_head",action_type:"click",room_id:q,anchor_id:Y,group_id:Q,request_id:h,is_livehead_preview_mini_window_show:"0",__is_replaced_live__:(null==m?void 0:m.__is_replaced_live__)||"0",mini_window_show_type:ee.show?ee.hover?"mouse_hover":"automatic":""}},[ee,Q,q,h,m,O,Y]),ec=m.rawAdData&&(0,$.hj)(m)?(0,X.Rx)(m):null,e_=(0,X.nT)(m),eg=null==G?void 0:null===(o=G.owner)||void 0===o?void 0:o.web_rid,ew=`f_lh_${eg}`,ex=(0,el.T)(),ey=(0,a.useMemo)(()=>ec?(0,$.at)({rawAdData:ec,extraParams:es}):(0,ed.cc)((0,i._)({web_rid:eg},es)),[ec,eg,es]),ek=a.useMemo(()=>({is_paidlive:Number(null==H?void 0:H.paid_type),watch_paidlive_status:(null==H?void 0:H.view_right)?"regular":(null==H?void 0:H.duration)>=180?"try_end":"try"}),[H]),eI=()=>{var e;if(null===(e=O.pathname)||void 0===e?void 0:e.includes("/jingxuan")){let e=R.Le.getConfig(R.gI.IsInModalVideo);return((null==e?!void 0:!e.isInModal)||(null==e?void 0:e.modalEnterFrom)===et.a.WaterFall)&&!0}return I===J.lT.Recommend||I===J.lT.Follow};return(0,n.jsxs)("div",{className:u()(ev.default.avatarWrap,p,{[ev.default.ableMiniType]:w}),children:[(0,n.jsx)(ef.nh,{openMultiTaskWindowInWindow:(0,_.DT)(),isShow:y,adType:e_,type:"default",src:K,uid:Y,cid:null==ec?void 0:ec.creative_id,isEcomLive:x,paidLiveParams:ek,onClick:l=>{var o,i,t,n,a,d,r;if(ep({uid:Y,roomId:q,logId:h,location:O,episodeExtra:null==G?void 0:G.episode_extra,streamType:null==G?void 0:null===(o=G.stream_url)||void 0===o?void 0:o.stream_orientation,paidLiveData:H}),null==e||null===(t=e.player)||void 0===t||null===(i=t.pause)||void 0===i||i.call(t),ec&&(0,en.E)("realtime_click",{tag:(0,er.f)(),value:null==ec?void 0:ec.creative_id,log_extra:null==ec?void 0:ec.log_extra,refer:"profile"}),eI()){let[o,i]=ey.split("?"),t="";try{t=new URL(o).pathname.slice(1)}catch(e){}if(t){null==l||null===(n=l.preventDefault)||void 0===n||n.call(l),null==e||null===(d=e.player)||void 0===d||null===(a=d.exitFullscreen)||void 0===a||a.call(d);let o="";I===J.lT.Recommend&&(o=`/root/live/${t}`),I===J.lT.Follow&&(o=`/follow/live/${t}`),(null===(r=O.pathname)||void 0===r?void 0:r.includes("/jingxuan"))&&(o=`/root/live/${t}`);let u=`${o}?${i}`;(0,eo.X)({href:u,reusePlayer:v?1:0,webRid:t,abtestData:ex,reuseId:ew,roomId:q,from:I,usePreCreate:!0,roomData:G,_reusePlayer:0})}}},liveRoomUrl:ey,liveRoomParam:{logId:h,episodeExtra:null==G?void 0:G.episode_extra,streamType:null==G?void 0:null===(t=G.stream_url)||void 0===t?void 0:t.stream_orientation},isFirstLive:(null==G?void 0:null===(r=G.episode_extra)||void 0===r?void 0:null===(d=r.mod)||void 0===d?void 0:d.episode_stage)===2,groupId:Q,disableBorderAnim:(0,g.b_)()||(0,g.Sb)(),disableAllAnim:!!eu.f.isInactiveAnimation(ex)&&!y,awemeInfo:e.awemeInfo,isLogin:e.isLogin,from:e.from,forceSmall:!0,onShowChange:ei,logParams:es,showWindow:e.showWindow,player:e.player,useAuto:k,fixed:e.fixed}),b&&(null==m?void 0:null===(s=m.authorInfo)||void 0===s?void 0:s.uid)!==(null==C?void 0:null===(c=C.info)||void 0===c?void 0:c.uid)&&(0,n.jsx)(em.e,{isLogin:S,awemeInfo:m,loginUserInfo:C,shortcut:N,isMobileOversea:E,isShowKeyHotTip:j,ableMiniType:w,followBtnMouseEnter:T,followBtnMouseLeave:L,setShowAvatarTip:M,showAvatarTip:A,isXgVideo:P,isFollowClickedRef:V,actionFollow:z,actionUnFollow:D,showImBtn:B,player:F,onCooperAitonClick:W,loginPanelTarget:U,abtestData:ex,onFollowBtnClick:Z})]})}function eg(e){let{logInfo:l,player:o,onAvatarClick:d,isOpenKeyHotEvent:r}=e,u=(0,a.useRef)("");try{var s;u.current=null===(s=JSON.parse(null==l?void 0:l.log_pb))||void 0===s?void 0:s.impr_id}catch(e){u.current=""}return(0,a.useEffect)(()=>{if(o){let e=e=>{r&&(null==d||d(e,{clickMethod:"hot_key"}))};return null==o||o.on("onAvatar",e),()=>{null==o||o.off("onAvatar",e)}}},[o,d]),(0,n.jsx)(e_,(0,t._)((0,i._)({},e),{logId:u.current}))}let ew=(0,a.memo)(e=>{var l,o,i,t,d,r,u,v,f,m,p,g,w,x,y,k;let{disableHoverShow:b,isHoverShow:S,canShowAvatarTip:C,canShowAvatarImBtn:N,canShowAvatarFollowBtn:j,canShowAvatarAdBtn:T,canShowAvatar:M,awemeInfo:A,logInfo:P,loginUserInfo:V,isLogin:z,loginDispatch:D,followStatus:B,player:F,fullScreenTarget:W,isFollowClickedRef:U,onAvatarClick:Z,shortcut:H,reportExtraParams:O,actionFollow:K,actionUnFollow:G,onFollowBtnClick:q,loginPanelTarget:Y,toast:Q,abtestData:el,avatarTipText:eo,from:ei,scene:et,isActive:en,onAvatarRef:ea,text:ed,renderCallback:er}=e,{isiPad:eu,isMobile:es}=(0,c.X)(),ec=(0,a.useMemo)(()=>(null==A?void 0:A.awemeType)===E.e.XgVideo,[A]),[ev,ef]=(0,a.useState)(!1),[em,eh]=(0,a.useState)(!1),[ep,e_]=(0,a.useState)(!1),ew=(0,a.useRef)(null);(0,a.useEffect)(()=>h.listen(h.EVENT.LiveHeadLiveEnd,e=>{var l;let{anchorId:o}=e;o===(null==A?void 0:null===(l=A.authorInfo)||void 0===l?void 0:l.uid)&&e_(!0)}),[A]);let ex=!es&&!eu&&!ec&&!ev&&!em&&C&&!(0,X.Jt)(A),ey=(0,X.BD)(A),ek=(0,$.hj)(A)&&(null==A?void 0:null===(l=A.authorInfo)||void 0===l?void 0:l.roomId)&&((null==ey?void 0:null===(o=ey.lynx_raw_data)||void 0===o?void 0:o.open_url)||(null==ey?void 0:ey.open_url)),eI=(0,X.Kf)(A);if(!M)return null;let eb=((null==A?void 0:null===(d=A.authorInfo)||void 0===d?void 0:null===(t=d.roomData)||void 0===t?void 0:null===(i=t.owner)||void 0===i?void 0:i.web_rid)||ek)&&!ep&&"creator_center"!==(0,L.vM)();return(0,n.jsx)(n.Fragment,{children:eb?(0,n.jsx)("div",{className:I.default.avatarBox,children:(0,n.jsx)(eg,{openMultiTaskWindowInWindow:(0,_.DT)(),isActive:en,player:F,statusText:ed,loginUserInfo:V,awemeInfo:A,logInfo:P,isLogin:z,loginDispatch:D,fullScreenTarget:W,isFollowClickedRef:U,onAvatarClick:Z,shortcut:H,reportExtraParams:O,ableMiniType:!0,isOpenKeyHotEvent:!0,isFirstLive:(null==A?void 0:null===(f=A.authorInfo)||void 0===f?void 0:null===(v=f.roomData)||void 0===v?void 0:null===(u=v.episode_extra)||void 0===u?void 0:null===(r=u.mod)||void 0===r?void 0:r.episode_stage)===2,abtestData:el,liveModalType:ei===J.lT.Recommend?"recommend":"follow",isEcomLive:(null==A?void 0:null===(w=A.authorInfo)||void 0===w?void 0:null===(g=w.roomData)||void 0===g?void 0:null===(p=g.ecom_data)||void 0===p?void 0:null===(m=p.room_cart_v2)||void 0===m?void 0:m.show_cart)===1||ek,from:ei,showWindow:!eI&&en,useAuto:!(null===(x=R.Le.getConfig(R.gI.IsInLookMiniModal))||void 0===x?void 0:x.isInMiniModal),scene:et,fixed:!1,actionFollow:K,actionUnFollow:G,showImBtn:N,showFollowBtn:j,onFollowBtnClick:q,followStatus:B,loginPanelTarget:Y,followBtnMouseEnter:()=>ef(!0),followBtnMouseLeave:()=>ef(!1)})}):(0,n.jsx)(s.Tooltip,{position:"left",style:ex&&S&&!b?{}:{display:"none"},content:(0,n.jsx)("div",{className:I.default.shortcutTip,children:(0,n.jsxs)(n.Fragment,{children:[null!=eo?eo:"进入作者主页",(null==H?void 0:null===(y=H.avatar)||void 0===y?void 0:y.badgeText)&&(0,n.jsx)("span",{className:I.default.tipKey,children:null==H?void 0:null===(k=H.avatar)||void 0===k?void 0:k.badgeText})]})}),getPopupContainer:()=>ew.current||document.body,children:(0,n.jsx)("div",{ref:ew,"data-click-from":"click_icon",style:{position:"relative"},children:(0,n.jsx)(ee.Z,{player:F,loginUserInfo:V,actionFollow:K,actionUnFollow:G,awemeInfo:A,isLogin:z,loginDispatch:D,fullScreenTarget:W,isFollowClickedRef:U,onAvatarClick:Z,shortcut:H,reportExtraParams:O,ableMiniType:!0,isShowTip:!0,isShowKeyHotTip:!b,followStatus:B,followBtnMouseEnter:()=>{ef(!0),!(null==el?void 0:el.enableZustand)&&(null==er||er())},followBtnMouseLeave:()=>{ef(!1),!(null==el?void 0:el.enableZustand)&&(null==er||er())},imBtnMouseEnter:()=>eh(!0),imBtnMouseLeave:()=>eh(!1),showImBtn:N,showFollowBtn:j,showAdBtn:T,loginPanelTarget:Y,toast:Q,abtestData:el,onFollowBtnClick:q,onAvatarRef:ea})})})})}),ex=e=>{let l=(0,q.N)();return(0,n.jsx)(G.k,{componentName:"AvatarSection",Slardar:l,children:(0,n.jsx)(ew,(0,i._)({},e))})};o("76375");var ey=o("593124"),ek=o("966473"),eI=o("263832"),eb=o("37821"),eS=o("432218"),eC=o("515264"),eN=o("601034"),eE=o("749113"),ej=o("367340"),eT=o("600767"),eL=o("535112");o("679308"),o("313036");var eM=o("89063"),eR=o("638052"),eA=o("708003"),eP=o("670400"),eV=o("227831");let ez=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=(0,a.useRef)(),[i,t]=(0,a.useState)(""),[n,d]=(0,a.useState)(),r=(0,a.useRef)(e);return r.current=e,(0,a.useEffect)(()=>{o.current=void 0,d(void 0),t("")},l),{data:n,status:i,getData:()=>(!o.current&&(o.current=r.current().then(e=>(t(l=>l?l:(d(e),"success")),e)).catch(e=>{throw t(e=>e||"error"),e})),o.current),setData(e){o.current=Promise.resolve(e),t("success"),d(e)}}},eD=e=>{let{awemeId:l,description:o,getAwemeInfo:i,handleClick:t}=e,d=(0,a.useRef)(!1),r=async()=>{try{if(d.current)return;let e=o.awemeInfo||await i();t({clickMethod:"related_video_icon",awemeInfo:e}),eR.logInstance.sendLog("relatedVideoCardClick",{enter_from:(0,eN.yW)(),group_id:o.awemeId,from_group_id:l})}catch(e){eA.F.info("暂无相关推荐")}finally{d.current=!1}},s=(0,ek.Y)(()=>{eR.logInstance.sendLog("relatedVideoCardShow",{enter_from:(0,eN.yW)(),group_id:o.awemeId,title_content:o.title,duration:o.duration})});return(0,a.useEffect)(()=>{!o.awemeInfo&&i()},[!o.awemeInfo]),(0,n.jsx)("div",{ref:s,className:u()(eP.default.outerContainer,eP.default.noMarginBottom,"isDark","dark"),onMouseEnter:()=>{eR.logInstance.sendLog("relatedVideoCardHover",{enter_from:(0,eN.yW)(),group_id:o.awemeId,title_content:o.title,duration:o.duration})},onClick:r,children:(0,n.jsxs)("div",{className:u()(eP.default.mixContainer,eP.default.noMarginBottom),children:[(0,n.jsxs)("div",{className:eP.default.coverContainer,children:[(0,n.jsx)(eV.Q,{src:o.cover,skeletonClass:eP.default.defaultImg,className:u()(eP.default.cover,eP.default.relatedCover),iconHeight:80,width:80,iconWidth:60,height:60}),(0,n.jsx)("div",{className:eP.default.duration,children:U().Util.format(o.duration/1e3)})]}),(0,n.jsx)("div",{className:u()(eP.default.textContainer),style:{maxWidth:164},children:(0,n.jsxs)("p",{className:u()(eP.default.relatedTitle,eP.default.noMarginBottom),children:[(0,n.jsx)("strong",{children:"相关推荐:"}),((e,l)=>{let o=(null==e?void 0:e.length)>l?`${null==e?void 0:e.slice(0,l)}...`:e;return(0,n.jsx)(eM.default,{noWrapper:!0,options:{className:eP.default.twemojiText,base:"//p-pc-weboff.byteimg.com/tos-cn-i-9r5gewecjs/twemoji/"},children:(0,n.jsx)("span",{children:o})})})(o.title,20)]})})]})})};var eB=o("942645"),eF=o("176449"),eW=o("27964");let eU=function(e,l){var o,t,n,a,d,r,u,s,c,v,f;let m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return{};let h=0;return h=(null===(o=e.seriesInfo)||void 0===o?void 0:o.seriesId)?(null===(s=e.seriesInfo)||void 0===s?void 0:s.totalEpisode)===(null===(c=e.seriesInfo)||void 0===c?void 0:c.currentEpisode)?0:1:(null===(v=e.mixInfo)||void 0===v?void 0:v.totalEpisode)===(null===(f=e.mixInfo)||void 0===f?void 0:f.currentEpisode)?0:1,(0,i._)({playlet_id:null===(t=e.seriesInfo)||void 0===t?void 0:t.seriesId,compilation_id:null===(n=e.mixInfo)||void 0===n?void 0:n.mixId,group_id:e.awemeId,enter_from:(0,eN.yW)(),enter_from_merge:(0,L.vM)(),bar_type:"related_video",entrance_cnt:m.length,is_update:h,item_duration_ms:(null==e?void 0:null===(a=e.video)||void 0===a?void 0:a.duration)||0,bar_tag_name:null==e?void 0:null===(u=e.webRawData)||void 0===u?void 0:null===(r=u.CTR)||void 0===r?void 0:null===(d=r.recommendScore)||void 0===d?void 0:d.relateAiTag,player_display_mode:(0,L.Ok)()},l||{})},eZ=()=>{let e=R.Le.getConfig(R.gI.PlayerCardInfo);return(null==e?void 0:e.isActive)&&e.expandCardType===ey.L.Related},eH=e=>{let{onRelatedClick:l,player:o,awemeInfo:d,getAwemeInfo:r,ableMiniType:s=!0,reportExtraParams:c={},videoTags:v=[],abtestData:f}=e,m=(0,a.useRef)(null),h=()=>{var e,l;let o=null===(l=m.current)||void 0===l?void 0:null===(e=l.getLottieInstance)||void 0===e?void 0:e.call(l);return{enter:()=>{var e;null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[0,15],!0)},leave:()=>{var e;null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[16,25],!0)}}},p=(0,ek.x)(()=>{eW.Z.sendLog("bottomBarShow",eU(d,c,v))}),_=(null==f?void 0:f.reduceLottie)||(0,g.b_)(),[w,x]=(0,a.useState)(!_);return(0,a.useEffect)(()=>{if(_&&w){var e,l;null===(e=(l=h()).enter)||void 0===e||e.call(l)}},[w,_]),(0,n.jsxs)("div",{ref:p,className:u()(eL.default.related,{[eL.default.ableMiniType]:s}),onClick:async e=>{eW.Z.sendLog("bottomBarClick",(0,t._)((0,i._)({},eU(d,c,v)),{action:eZ()?"close":"open"})),eW.Z.sendLog("relatedVideoClick",{enter_from:c.enter_from,enter_from_merge:c.enter_from_merge,group_id:null==d?void 0:d.awemeId,author_id:null==d?void 0:d.authorUserId}),l(e,{awemeInfo:(0,t._)((0,i._)({},d),{relatedRecommend:(0,t._)((0,i._)({},d.relatedRecommend),{popoverAwemeInfo:await r()})}),clickMethod:"icon"})},onMouseEnter:()=>{if(w){var e,l;null===(e=(l=h()).enter)||void 0===e||e.call(l)}else!(0,g.b_)()&&x(!0)},onMouseLeave:()=>{if(eW.Z.sendLog("hover_related_video_icon",{enter_from:(0,L.mo)()}),w){var e,l;null===(e=(l=h()).leave)||void 0===e||e.call(l)}},children:[w?(0,n.jsx)(eB.default,{className:eL.default.icon,ref:m,data:eS,loop:!1,autoplay:!1}):(0,n.jsx)(eF.Z,{src:eC.Z,viewBox:"0 0 36 36",className:eL.default.icon}),(0,n.jsx)("div",{className:eL.default.desc,children:eE.a.t("related",{},"看相关")})]})};var eO=e=>{var l,o,d,r,c;let{from:v,isInnerFeed:f,isHoverShow:m,shortcut:p,player:_,onRelatedClick:g,ableMiniType:w,reportExtraParams:x={},awemeInfo:y,videoTags:k,abtestData:b,isShow:S=!0}=e,C=!f&&(null==y?void 0:null===(d=y.webRawData)||void 0===d?void 0:null===(o=d.CTR)||void 0===o?void 0:null===(l=o.recommendScore)||void 0===l?void 0:l.showRelateVideo)===eI.TP.ShowSideCarOnly&&"undefined"!=typeof window&&"/"===window.location.pathname,N=(0,a.useRef)(null),{status:E,data:j,setData:T,getData:L}=ez(()=>(0,ej.WW)({count:1,awemeId:y.awemeId}),[y.awemeId]),{getData:M}=ez(async()=>{if(null==j?void 0:j.awemeInfo)return j.awemeInfo;if(null==j?void 0:j.awemeId){let{detail:e,statusCode:l}=await (0,eT.m_)({awemeId:j.awemeId,originType:eb.F.RelatedPlugin});if(l)throw Error();return(0,t._)((0,i._)({},e),{debugInfo:j.debugInfo})}},[j]),R=!!((null==j?void 0:j.cover)&&(null==j?void 0:j.awemeId)&&(null==j?void 0:j.title)),A=(!C||!!E)&&R;(0,a.useEffect)(()=>{if(!!C)return h.listen(h.EVENT.RelatedAwemeListUpdate,e=>{let{videoFeed:l,awemeList:o}=e;if(l===ey.t.Related){let e=o.findIndex(e=>{let{awemeId:l}=e;return l===y.awemeId});if(e>-1&&o[e+1]){let{awemeId:l,video:i,desc:t}=o[e+1];T({awemeId:l,title:t,duration:i.duration,cover:i.cover,debugInfo:null,awemeInfo:o[e+1]})}}})},[y.awemeId,C]);let P=C&&"success"===E;(0,a.useEffect)(()=>{if(_){let e=async e=>{let{e:l,clickMethod:o="hot_key"}=e;eW.Z.sendLog("bottomBarClick",(0,t._)((0,i._)({},eU(y,x,k)),{action:eZ()?"close":"open"})),null==g||g(l,{awemeInfo:(0,t._)((0,i._)({},y),{relatedRecommend:(0,t._)((0,i._)({},y.relatedRecommend),{popoverAwemeInfo:await M()})}),clickMethod:o})};return null==_||_.on("onRelated",e),()=>{null==_||_.off("onRelated",e)}}},[_,g,y,x,k]);let V=P?(0,n.jsx)(eD,{awemeId:y.awemeId,getAwemeInfo:M,description:j,handleClick:e=>{g(null,e)}}):(0,n.jsxs)("div",{className:u()(I.default.shortcutTip,I.default.shortcutTipPopover),children:["相关推荐",(null===(r=p.related)||void 0===r?void 0:r.badgeText)&&(0,n.jsx)("span",{className:I.default.tipKey,children:null===(c=p.related)||void 0===c?void 0:c.badgeText})]});return S?(0,n.jsx)(s.Popover,{position:"left",rePosKey:Number(A),className:u()(I.default.shortcutTipWrap,I.default.shortcutTipWrapPopover,P&&I.default.shortcutTipWrapPopoverCard),style:m&&A?{}:{display:"none"},content:A&&V,getPopupContainer:()=>N.current||document.body,children:(0,n.jsx)("div",{ref:N,style:{position:"relative"},onMouseEnter:()=>{C&&L()},children:(0,n.jsx)(eH,{player:_,onRelatedClick:g,getAwemeInfo:M,ableMiniType:w,reportExtraParams:x,awemeInfo:y,videoTags:k,abtestData:b})})},Number(f)):null},eK=o("157762"),eG=o("474221"),eq=o("569982"),eY=o("932624"),eQ=new D.h({hover_comment_icon:{eventName:"hover_comment_icon",params:{enter_from:""}},clickCommentButton:{eventName:"click_comment_button",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0",tab_name:"",click_method:"",from_follow_list:"0",relation:"",aweme_type:"",pic_cnt:0,item_duration_ms:0,play_current_time:0}}}),eX=o("56568"),e$=o("63601"),eJ=o("332009"),e0=o("316213");let e1=e=>{let{count:l,className:o,textClassName:t,toggleComment:d,reportExtraParams:r,awemeInfo:s,ableMiniType:c,onLottieComplete:v,abtestData:f}=e,m=(0,a.useMemo)(()=>{var e,l,o,i,t,n,a,d,r,u,c,v,f,m,h,p,_,g,w;return{author_id:null==s?void 0:null===(e=s.authorInfo)||void 0===e?void 0:e.uid,group_id:null==s?void 0:s.awemeId,log_pb:null==s?void 0:s.logPb,compilation_id:null==s?void 0:null===(l=s.mixInfo)||void 0===l?void 0:l.mixId,impressionData:null==s?void 0:s.impressionData,awemeId:null==s?void 0:s.awemeId,vduration:null==s?void 0:null===(o=s.video)||void 0===o?void 0:o.duration,isH265:(null==s?void 0:null===(n=s.video)||void 0===n?void 0:null===(t=n.bitRateList)||void 0===t?void 0:null===(i=t[0])||void 0===i?void 0:i.isH265)||(null==s?void 0:null===(a=s.video)||void 0===a?void 0:a.isH265),qualityType:(null==s?void 0:null===(u=s.video)||void 0===u?void 0:null===(r=u.bitRateList)||void 0===r?void 0:null===(d=r[0])||void 0===d?void 0:d.qualityType)||(null==s?void 0:null===(c=s.video)||void 0===c?void 0:c.qualityType),bitRate:(null==s?void 0:null===(m=s.video)||void 0===m?void 0:null===(f=m.bitRateList)||void 0===f?void 0:null===(v=f[0])||void 0===v?void 0:v.bitRate)||(null==s?void 0:null===(h=s.video)||void 0===h?void 0:h.bitRate),videoFormat:null==s?void 0:null===(p=s.video)||void 0===p?void 0:p.videoFormat,gearName:(null==s?void 0:null===(w=s.video)||void 0===w?void 0:null===(g=w.bitRateList)||void 0===g?void 0:null===(_=g[0])||void 0===_?void 0:_.gearName)||""}},[s]),h=(0,e$.n)(),[p,_]=(0,a.useState)(!1),w=(0,a.useRef)(null),x=null==f?void 0:f.reduceLottie,y=()=>{var e,l;let o=null===(l=w.current)||void 0===l?void 0:null===(e=l.getLottieInstance)||void 0===e?void 0:e.call(l);return{enter:()=>{var e;null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[0,33],!0)},leave:()=>{var e;null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[59,83],!0)}}},k=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!(0,g.b_)()){let e=k.current,l=()=>{var e,l;null===(e=(l=y()).enter)||void 0===e||e.call(l)},o=()=>{var e,l;null===(e=(l=y()).leave)||void 0===e||e.call(l)};return null==e||e.addEventListener("mouseenter",l),null==e||e.addEventListener("mouseleave",o),()=>{null==e||e.removeEventListener("mouseenter",l),null==e||e.removeEventListener("mouseleave",o)}}},[]);let I=(0,a.useCallback)(e=>{var l,o,t,n,a;let{clickMethod:u="click_icon"}=e;null==h||h.emit("shortcutTopic");let c=d({clickMethod:u});if("click_icon"===u&&c&&(null==h||h.emit(W.Events.USER_ACTION,{action:"open_comment"})),eQ.sendLog("clickCommentButton",(0,i._)({urlParamList:["previous_page","fir_previous_page"],enter_from:(0,L.mo)(),author_id:null==s?void 0:null===(l=s.authorInfo)||void 0===l?void 0:l.uid,group_id:null==s?void 0:s.awemeId,log_pb:null==m?void 0:m.log_pb,is_full_screen:(0,T.r)()?"1":"0",is_full_webscreen:eJ.s.getIsPageFullscreen()?"1":"0",tab_name:(0,P.zD)()||(0,M.Rs)("tab_name")||"",click_method:u,click_from:u,from_follow_list:(null===(o=R.Le.getConfig(R.gI.FromFollowList))||void 0===o?void 0:o.tag)?"1":"0",aweme_type:`${(null==s?void 0:s.isSlides)?E.e.Slides:null==s?void 0:s.awemeType}`,pic_cnt:null!==(a=null==s?void 0:null===(t=s.images)||void 0===t?void 0:t.length)&&void 0!==a?a:0,action:c?"open":"close",item_duration_ms:(null==s?void 0:null===(n=s.video)||void 0===n?void 0:n.duration)||0,play_current_time:Math.floor((null==h?void 0:h.currentTime)||0)},r||{},(0,eG.t)())),(0,X.Jt)(s)){let e=(0,X.Rx)(s);(0,en.E)("click_comment",{tag:(0,er.f)(),value:e.creative_id,log_extra:e.log_extra}),(0,en.E)("othershow",{tag:(0,er.f)(),value:e.creative_id,log_extra:e.log_extra,refer:"comment"})}},[h,d,s,r,m]),b=(0,a.useCallback)(()=>{x&&_(!0)},[x]),S=(0,a.useCallback)(()=>{eQ.sendLog("hover_comment_icon",{enter_from:(0,L.mo)()})},[]);return(0,a.useEffect)(()=>{if(h)return null==h||h.on("showComment",I),()=>{null==h||h.off("showComment",I)}},[h,I]),(0,n.jsxs)("div",{className:u()(eX.default.container,o,{[eX.default.ableMiniType]:c,[eX.default.animation4]:!0}),"data-e2e":"feed-comment-icon",onClick:()=>I({clickMethod:"click_icon"}),onMouseEnter:b,onMouseLeave:S,ref:k,children:[(0,n.jsx)("div",{className:eX.default.iconWrap,children:(0,g.b_)()||"creator_center"===(0,L.vM)()||x&&!p?(0,n.jsx)(e0.z,{svg:(0,n.jsx)(eq.Z,{}),className:eX.default.commentIcon}):(0,n.jsx)(eB.default,{ref:w,data:eY,loop:!1,autoplay:!1,onComplete:()=>{null==v||v()},onInit:()=>{if(x){var e,l;null===(e=(l=y()).enter)||void 0===e||e.call(l)}}})}),!!l&&(0,n.jsx)("div",{className:u()(eX.default.count,t,eX.default.lessFontWeight),children:l})]})};o("374954");var e2=o("988805"),e5=o("604785"),e3=o("79902"),e4=o("554469"),e7=o("997010"),e6=o("416374"),e8=o("954887"),e9=o("764910"),le=o("431493"),ll=o("427202"),lo=o("10099");function li(e){var l,o,i;let{awemeInfo:t,isLogin:d,loginUserInfo:r,loginDispatch:s,fullScreenTarget:c,loginPanelTarget:v,reportExtraParams:f={},ableMiniType:m=!1,onLottieComplete:h,recordPreferVideoSwitch:p=!1,disableClick:_=!1,refIsDigged:w={},setIsDigged:x,onDiggSuccessCb:k,abtestData:I}=e,b=(0,e$.n)(),S=(0,a.useRef)(!0),C=(0,a.useRef)(!1),E=(0,a.useRef)(!1),j=(0,a.useRef)(null),M=(0,a.useRef)(!1),A=(0,a.useRef)(),{isWebMiniWin:P}=(0,y.Iq)(e=>{let{isWebMiniWin:l}=e;return{isWebMiniWin:l}}),[V,D]=(0,a.useState)(0),[B,F]=(0,a.useState)(()=>{let e=(null==I?void 0:I.changeCandle)||"";if(null==e?void 0:e.includes(null==t?void 0:t.awemeId))return 2;if((0,g.b_)())return 1;if("creator_center"===(0,L.vM)())return 1;return 0}),U=null==I?void 0:I.reduceLottie,{count:Z,diggStatus:H}=(0,e9.P)({selfUid:null==r?void 0:null===(l=r.info)||void 0===l?void 0:l.uid,awemeId:null==t?void 0:t.awemeId,defaultCount:null==t?void 0:null===(o=t.stats)||void 0===o?void 0:o.diggCount,defaultDiggStatus:(null==t?void 0:t.userDigged)?e2.gZ.Digged:e2.gZ.UnDigg});w.current=H,(0,a.useEffect)(()=>{x(H)},[H]);let{resetUsedKeyDownTime:O,resetDiggTime:K,checkIsCancelDigg:G}=(0,ll._)({diggState:H===e2.gZ.Digged}),{digg:q,unDigg:Y,hoverDigg:Q}=(0,e8.ic)({selfUid:null==r?void 0:null===(i=r.info)||void 0===i?void 0:i.uid,isLogin:d,awemeInfo:t,onLoginSuccess:async()=>{if(await (null==s?void 0:s({type:"updateUserInfo"})),"video_detail"===(0,L.vM)()){var e,l;await (0,le.a8)({secUid:null==t?void 0:null===(e=t.authorInfo)||void 0===e?void 0:e.secUid,uid:null==t?void 0:null===(l=t.authorInfo)||void 0===l?void 0:l.uid})}},reportExtraParams:f,accountParentEl:(0,T.r)()&&c,defaultDiggStatus:(null==t?void 0:t.userDigged)?e2.gZ.Digged:e2.gZ.UnDigg,success:k,loginPanelTarget:v,scene:eJ.s.getPlayerScene(null==b?void 0:b.playerId),teaEvtParams:{is_small_window:0}}),X=(0,a.useCallback)(e=>{if(E.current=!0,p){var l;let e=R.Le.getConfig(R.gI.AwemePcRecRawData)||{videoPrefer:{fsn:[],like:[],halfMin:[],min:[]}},o=e.videoPrefer.like;o.filter((e,l)=>l%2==0).includes(null==t?void 0:t.groupId)||o.push(null==t?void 0:t.groupId,null==t?void 0:null===(l=t.authorInfo)||void 0===l?void 0:l.uid),R.Le.setConfig(R.gI.AwemePcRecRawData,e),(0,R.xL)(t,b,"lk")}H===e2.gZ.Digged?Y({clickMethod:e}):(q({clickMethod:e}),"hidden"===document.visibilityState&&P&&(null==b?void 0:b.root)&&z.F.info("点赞成功",b.root)),b.emit(W.Events.USER_ACTION,{action:"digg",status:H===e2.gZ.Digged?"close":"open"}),(0,e5.VY)({info:{[e4.BW.Favorite]:H!==e2.gZ.Digged},awemeId:null==t?void 0:t.awemeId,abData:0})},[H,q,Y,p,B,P]);A.current=X,(0,a.useEffect)(()=>{let e=(null==I?void 0:I.changeCandle)||"";(null==e?void 0:e.includes(null==t?void 0:t.awemeId))?F(2):(0,g.b_)()?F(1):"creator_center"===(0,L.vM)()?F(1):F(0)},[I,t]),(0,a.useEffect)(()=>{H&&K()},[H]),(0,a.useEffect)(()=>{if(b){let e=N()(e=>{var l;null===(l=A.current)||void 0===l||l.call(A,e)},1e3,{leading:!0,trailing:!1}),l=l=>{let{clickMethod:o}=l;if(U&&D(2),!H){e(o);return}if(!H||"hot_key"===o)G()&&e(o),O()};return null==b||b.on("onStar",l),()=>{null==b||b.off("onStar",l)}}},[b,null==t?void 0:t.awemeId,H]);let $=()=>{var e,l;let o=null===(l=j.current)||void 0===l?void 0:null===(e=l.getLottieInstance)||void 0===e?void 0:e.call(l),i=()=>{var e,l;null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[0,1],!0),null==o||null===(l=o.goToAndStop)||void 0===l||l.call(o,88,!0)},t=()=>{var e,l;null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[0,1],!0),null==o||null===(l=o.goToAndStop)||void 0===l||l.call(o,0,!0)};return{setLikedStatus:i,setUnLikedStatus:t,like:()=>{var e;C.current=!0,E.current=!1,null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[39,88],!0)},dislike:()=>{var e;C.current=!0,E.current=!1,null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[124,162],!0)},enter:()=>{var e,l;H?null==o||null===(l=o.playSegments)||void 0===l||l.call(o,[96,120],!0):null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[0,32],!0)},leave:()=>{var e,l;H?null==o||null===(l=o.playSegments)||void 0===l||l.call(o,[64,88],!0):null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[162,186],!0)},end:()=>{C.current=!1,!M.current&&(H?i():t())}}},J=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(0===B){let e=J.current,l=()=>{var e,l;M.current=!0,null===(e=(l=$()).enter)||void 0===e||e.call(l)},o=()=>{var e,l;M.current=!1,null===(e=(l=$()).leave)||void 0===e||e.call(l)};return null==e||e.addEventListener("mouseenter",l),null==e||e.addEventListener("mouseleave",o),()=>{null==e||e.removeEventListener("mouseenter",l),null==e||e.removeEventListener("mouseleave",o)}}},[$,B]),(0,a.useEffect)(()=>{if(S.current){H?$().setLikedStatus():$().setUnLikedStatus(),S.current=!1;return}E.current?H?$().like():$().dislike():(H?$().setLikedStatus():$().setUnLikedStatus(),E.current=!1)},[H,B]),(0,n.jsxs)("div",{className:u()(e6.default.digg,e6.default.animation4,{[e6.default.isDigged]:H,[e6.default.ableMiniType]:m}),onClick:()=>{if(!_)null==b||b.emit("shortcutTopic"),X()},ref:J,"data-e2e-state":H?"video-player-is-digged":"video-player-no-digged","data-e2e":"video-player-digg",onMouseEnter:()=>{U&&D(1)},onMouseLeave:Q,children:[(0,n.jsxs)("div",{className:e6.default.lottieWraper,children:[2===B?(0,n.jsx)("div",{className:u()(e6.default.heart,{[e6.default.candle]:H})}):null,1===B?(0,n.jsx)(e0.z,{svg:(0,n.jsx)(e7.Z,{}),className:u()(e6.default.diggSvg,{[e6.default.isDigg]:H})}):null,0===B?0===V&&U?(0,n.jsx)(e0.z,{svg:(0,n.jsx)(e7.Z,{}),className:u()(e6.default.diggSvg,{[e6.default.isDigg]:H})}):(0,n.jsx)(eB.default,{ref:j,className:e6.default.diggLottie,data:e3,loop:!1,autoplay:!1,onComplete:()=>{null==h||h(),$().end()},onInit:()=>{if(1===V){var e,l;null===(e=(l=$()).enter)||void 0===e||e.call(l)}}}):null]}),(0,n.jsx)("div",{className:u()(e6.default.count,e6.default.diggIcon,e6.default.lessFontWeight),children:(0,lo.A)({count:Z,displayWord:"赞"})})]})}function lt(e){let l=(0,q.N)();return(0,n.jsx)(G.k,{componentName:"Digg",Slardar:l,children:(0,n.jsx)(li,(0,i._)({},e))})}var ln=o("333047"),la=o("475137"),ld=o("991798"),lr=new D.h({hover_favorite_video_icon:{eventName:"hover_favorite_video_icon",params:{enter_from:""}},clickFavoriteVideo:{eventName:"click_favorite_video",params:{click_from:"icon",previous_page:"",author_id:"",group_id:"",log_pb:"",enter_from:"",is_full_screen:"0",click_method:"",aweme_type:"",pic_cnt:"",tab_name:"",play_current_time:0}},clickCancelFavoriteVideo:{eventName:"click_cancel_favorite_video",params:{click_from:"icon",previous_page:"",author_id:"",group_id:"",log_pb:"",enter_from:"",is_full_screen:"0",tab_name:"",play_current_time:0}}}),lu=o("81038"),ls=o("746517"),lc=o("961677"),lv=o("970214"),lf=o("27163");function lm(e){var l,o,t;let{awemeInfo:d,isLogin:r,loginUserInfo:s,loginDispatch:c,fullScreenTarget:v,toast:f,ableMiniType:m=!1,reportExtraParams:h={},onLottieComplete:p,refIsCollected:_={},disableClick:w=!1,abtestData:x,loginPanelTarget:k,from:I,recordPreferVideoSwitch:b}=e,S=(0,a.useRef)(!0),C=(0,a.useRef)(!1),N=(0,a.useRef)(!1),j=(0,a.useRef)(null),A=(0,a.useRef)(null),V=(0,a.useRef)(!1),D=(0,e$.n)(),B=null==x?void 0:x.reduceLottie,[F,U]=(0,a.useState)(0),{isWebMiniWin:Z}=(0,y.Iq)(e=>{let{isWebMiniWin:l}=e;return{isWebMiniWin:l}}),H=e=>{if("hidden"===document.visibilityState&&Z&&(null==D?void 0:D.root)){z.F.info(e,D.root);return}if(f){f(e);return}z.F.info(e)},O=(0,T.r)()&&v,K=eJ.s.getPlayerScene(null==D?void 0:D.playerId),G={is_small_window:0},q=async()=>{if(null==c||c({type:"updateUserInfo"}),"video_detail"===(0,L.vM)()){var e,l;await (0,le.a8)({secUid:null==d?void 0:null===(e=d.authorInfo)||void 0===e?void 0:e.secUid,uid:null==d?void 0:null===(l=d.authorInfo)||void 0===l?void 0:l.uid})}},{unCollect:Y,collect:Q}=(0,lv.pD)({selfUid:null==s?void 0:null===(l=s.info)||void 0===l?void 0:l.uid,awemeInfo:d,defaultCollectStatus:(null==d?void 0:d.userCollected)?e2.c.Collected:e2.c.Uncollected,isLogin:r,accountParentEl:O,loginPanelTarget:k,reportExtraParams:h,scene:K,onLoginSuccess:q,success:e=>{let{action:l,successMsg:o}=e;"collect"===l&&H(o||e2.a$.CollectSuccess),null==D||D.emit(W.Events.USER_ACTION,{action:"collect",status:"collect"===l?"on":"off"})},fail:e=>{switch(e.statusCode){case ln.ERROR_CODE.ERROR_USER_UNLOGIN:return;case ln.ERROR_CODE.ERROR_COLLECT_TOO_FAST:H(e2.a$.TooFast);return;case ln.ERROR_CODE.ERROR_COLLECT_RESTRICTED:H(e2.a$.CollectBan);return;default:H(e2.a$.CollectFail);return}},teaEvtParams:G}),X=(0,a.useCallback)(function(){for(var e=arguments.length,l=Array(e),o=0;o<e;o++)l[o]=arguments[o];Y(...l),(0,e5.VY)({info:{[e4.BW.Collect]:!1},awemeId:null==d?void 0:d.awemeId,abData:0})},[Y]),$=(0,a.useCallback)(function(){for(var e=arguments.length,l=Array(e),o=0;o<e;o++)l[o]=arguments[o];b&&(0,R.xL)(d,D,"fav"),Q(...l),(0,e5.VY)({info:{[e4.BW.Collect]:!0},awemeId:null==d?void 0:d.awemeId,abData:0})},[Q,x]),{collectStatus:J,count:ee}=(0,lf.u)({selfUid:null==s?void 0:null===(o=s.info)||void 0===o?void 0:o.uid,awemeId:null==d?void 0:d.awemeId,defaultCollectStatus:(null==d?void 0:d.userCollected)?e2.c.Collected:e2.c.Uncollected,defaultCount:null==d?void 0:null===(t=d.stats)||void 0===t?void 0:t.collectCount}),el=(0,a.useRef)(r);el.current=r;let eo=e=>{var l,o;if(el.current){e();return}(0,ls.default)({success:async()=>{await q(),el.current?e():setTimeout(()=>{eo(e)},1e3)},headerText:"登录后即可收藏",enterMethod:"favorite_video_entry",next:`https://${null===(o=window)||void 0===o?void 0:null===(l=o.location)||void 0===l?void 0:l.host}`,teaEvtParams:G},O)},ei=()=>{var e,l;let o=null===(l=j.current)||void 0===l?void 0:null===(e=l.getLottieInstance)||void 0===e?void 0:e.call(l),i=()=>{var e,l;null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[0,1],!0),null==o||null===(l=o.goToAndStop)||void 0===l||l.call(o,115,!0)},t=()=>{var e,l;null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[0,1],!0),null==o||null===(l=o.goToAndStop)||void 0===l||l.call(o,0,!0)};return{toLottieStart:t,toLottieEnd:i,addCollect:()=>{var e;C.current=!0,N.current=!1,null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[58,92],!0)},cancelCollect:()=>{var e;C.current=!0,N.current=!1,null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[151,170],!0)},enter:()=>{var e,l;J?null==o||null===(l=o.playSegments)||void 0===l||l.call(o,[121,145],!0):null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[10,43],!0)},leave:()=>{var e,l;J?null==o||null===(l=o.playSegments)||void 0===l||l.call(o,[92,115],!0):null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[195,207],!0)},end:()=>{C.current=!1,!V.current&&(J?i():t())}}},et=e=>{if(w)return;let{clickMethod:l="icon"}=e||{};if(B&&U(2),!C.current||(0,g.b_)()){var o,t,n,a;N.current=!0,J===e2.c.Collected?lr.sendLog("clickCancelFavoriteVideo",(0,i._)({click_from:"icon",urlParamList:["previous_page"],author_id:null==d?void 0:null===(o=d.authorInfo)||void 0===o?void 0:o.uid,group_id:null==d?void 0:d.awemeId,log_pb:null==d?void 0:d.logPb,enter_from:(0,L.mo)(),is_full_screen:(0,T.r)()?"1":"0",tab_name:(0,P.zD)()||(0,M.Rs)("tab_name")||"",play_current_time:Math.floor((null==D?void 0:D.currentTime)||0)},h)):lr.sendLog("clickFavoriteVideo",(0,i._)({click_from:"icon",urlParamList:["previous_page"],author_id:null==d?void 0:null===(t=d.authorInfo)||void 0===t?void 0:t.uid,group_id:null==d?void 0:d.awemeId,log_pb:null==d?void 0:d.logPb,enter_from:(0,L.mo)(),is_full_screen:(0,T.r)()?"1":"0",click_method:l,tab_name:(0,P.zD)()||(0,M.Rs)("tab_name")||"",aweme_type:`${(null==d?void 0:d.isSlides)?E.e.Slides:null==d?void 0:d.awemeType}`,pic_cnt:`${null!==(a=null==d?void 0:null===(n=d.images)||void 0===n?void 0:n.length)&&void 0!==a?a:0}`,play_current_time:Math.floor((null==D?void 0:D.currentTime)||0)},h)),null==D||D.emit("shortcutTopic"),J===e2.c.Collected?X({clickMethod:l}):$({clickMethod:l})}},en=(0,a.useCallback)(()=>{B&&U(1)},[B]),ea=(0,a.useCallback)(()=>{lr.sendLog("hover_favorite_video_icon",{enter_from:(0,L.mo)()})},[]);return(0,a.useEffect)(()=>{let e=A.current,l=()=>{var e,l;V.current=!0,null===(e=(l=ei()).enter)||void 0===e||e.call(l)},o=()=>{var e,l;V.current=!1,null===(e=(l=ei()).leave)||void 0===e||e.call(l)};return null==e||e.addEventListener("mouseenter",l),null==e||e.addEventListener("mouseleave",o),()=>{null==e||e.removeEventListener("mouseenter",l),null==e||e.removeEventListener("mouseleave",o)}},[ei]),(0,a.useEffect)(()=>(null==D||D.on("onCollect",et),()=>{null==D||D.off("onCollect",et)}),[D,et]),(0,a.useEffect)(()=>{if(S.current){J===e2.c.Collected?ei().toLottieEnd():ei().toLottieStart(),S.current=!1;return}N.current?J===e2.c.Collected?ei().addCollect():ei().cancelCollect():(J===e2.c.Collected?ei().toLottieEnd():ei().toLottieStart(),N.current=!1)},[J]),(0,a.useEffect)(()=>{_.current=J},[_,J]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:u()(lu.default.collect,{[lu.default.ableMiniType]:m,[lu.default.animation4]:!0}),onClick:()=>et(),onMouseEnter:en,onMouseLeave:ea,ref:A,"data-e2e-state":J?"video-player-is-collected":"video-player-no-collect","data-e2e":"video-player-collect",children:[(0,n.jsx)("div",{className:lu.default.lottieWraper,children:(0,g.b_)()||"creator_center"===(0,L.vM)()||B&&0===F?(0,n.jsx)(e0.z,{svg:(0,n.jsx)(ld.Z,{}),className:u()(lu.default.collectionSvg,{[lu.default.active]:J})}):(0,n.jsx)(eB.default,{ref:j,className:lu.default.collectLottie,data:la,loop:!1,autoplay:!1,onComplete:()=>{null==p||p(),ei().end()},onInit:()=>{if(B&&1===F){var e,l;null===(e=(l=ei()).enter)||void 0===e||e.call(l)}}})}),(0,n.jsx)("div",{className:u()(lu.default.count,lu.default.lessFontWeight),children:(0,lo.A)({count:ee,displayWord:"收藏"})})]}),(0,n.jsx)(lc.Z,{hidden:w,userInfo:s,referenceElement:A.current,awemeInfo:d,abTestData:x,collected:e2.c.Collected===J,collectMethod:$,unCollectMethod:X,afterLogin:eo,from:I})]})}function lh(e){let l=(0,q.N)();return(0,n.jsx)(G.k,{componentName:"Collection",Slardar:l,children:(0,n.jsx)(lm,(0,i._)({},e))})}var lp=o("935372"),l_=o("63746"),lg=o("495394"),lw=o("276343"),lx=o("394408"),ly=o("250532"),lk=o("326367"),lI=o("566118"),lb=o("540075"),lS=new D.h({hover_more_active_icon:{eventName:"hover_more_active_icon",params:{enter_from:""}},dislike:{eventName:"dislike",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",enter_method:"",is_full_screen:"0",tab_name:"",click_method:"",from_follow_list:"0",aweme_type:"",is_insert_wallpaper:0,is_show_outside:0,item_duration_ms:0}},report:{eventName:"report",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",enter_method:"",is_full_screen:"0",play_current_time:0}},creatorDataEntranceClick:{eventName:"creator_data_entrance_click",params:{}},creatorDataEntranceShow:{eventName:"creator_data_entrance_show",params:{}},continuedAppBroadcastClick:{eventName:"continued_app_broadcast_click",params:{enter_from:""}},moreFeatureShow:{eventName:"more_features_show",params:{enter_from:""}}}),lC=o("872177"),lN=o("662892"),lE=o("288559"),lj=o("734299"),lT=o("183030"),lL=o("546143"),lM=o("824734"),lR=o("915242"),lA=o("658010"),lP=o("507782");let lV=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({xmlns:"http://www.w3.org/2000/svg",width:27,height:27,fill:"none",ref:l},e),{children:(0,n.jsx)("path",{d:"M18.544 22.86H8.42V9.697l5.821-5.821a1.79 1.79 0 0 1 2.531 0c.118.118.215.278.291.48.076.203.114.397.114.583v.354l-1.114 4.404h5.518c.54 0 1.012.203 1.417.608.405.405.608.877.608 1.417v2.025a2.059 2.059 0 0 1-.152.759l-3.037 7.137c-.152.338-.405.625-.76.861a1.978 1.978 0 0 1-1.113.354zM6.79 9.697V22.86H4.366a1.625 1.625 0 0 1-1.625-1.625v-9.91c0-.898.728-1.626 1.625-1.626h2.425z",fill:"#13C15A"})}))),lz=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({xmlns:"http://www.w3.org/2000/svg",width:26,height:26,fill:"none",ref:l},e),{children:(0,n.jsx)("path",{d:"M5.063 3.36a.812.812 0 1 0-1.15 1.148l19.5 19.5a.812.812 0 1 0 1.15-1.149l-2.966-2.966 2.365-5.56a2.067 2.067 0 0 0 .152-.76V11.55c0-.54-.202-1.012-.607-1.417-.405-.405-.878-.608-1.418-.608h-5.517l1.114-4.403v-.355c0-.185-.038-.38-.114-.582a1.33 1.33 0 0 0-.291-.48 1.79 1.79 0 0 0-2.531 0l-4.672 4.67L5.063 3.36zM19.052 22.686H8.928V11.818l10.758 10.758c-.206.073-.417.11-.634.11zM7.3 10.19l-.666-.666H4.875c-.897 0-1.625.728-1.625 1.625v9.912c0 .897.728 1.625 1.625 1.625H7.3V10.19z",fill:"#13C15A"})}))),lD=(0,a.forwardRef)((e,l)=>(0,n.jsxs)("svg",(0,t._)((0,i._)({width:36,height:36,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:[(0,n.jsx)("path",{d:"M28.528 20.913l.113-1.053h1.033a.527.527 0 0 0 .522-.524.51.51 0 0 0-.177-.377.574.574 0 0 0-.377-.148h-.898l.105-.905c.05-.313-.21-.536-.46-.578-.317-.053-.54.212-.58.463l-.114 1.052h-1.033a.527.527 0 0 0-.522.525c0 .286.235.525.522.525h.93l-.105.904c-.046.298.197.534.475.58.28 0 .519-.178.566-.464z",fill:"#fff"}),(0,n.jsx)("path",{d:"M33.39 19.332c.147-1.232.13-2.611-.242-3.81a.557.557 0 0 0-.493-.385c-.061-.009-.122.013-.182.022l-.758.246c-.278-1.771-1.029-2.74-1.98-3.285a.62.62 0 0 0-.296-.087.493.493 0 0 0-.284.1.602.602 0 0 0-.197.242l-.004.011-.003.012c-.162.58-.601 1.425-1.867 2.119-.82.454-1.53.884-2.11 1.36l.229-2.184a.839.839 0 1 0-1.668-.175l-.737 7.024c-.104.902-.986 1.703-1.986 1.703-.952 0-1.557-.711-1.466-1.518v-.006l.738-7.028a.838.838 0 1 0-1.668-.175l-.737 7.024c-.21 1.882 1.266 3.38 3.133 3.38 1.334 0 2.567-.758 3.21-1.866.877 1.212 2.384 1.977 4.102 1.977 2.513 0 4.906-1.942 5.266-4.699v-.002zm-2.865-2.167l1.377-.421c.08.62.157 1.469.038 2.394-.238 1.974-1.908 3.483-3.856 3.483-1.034 0-1.988-.388-2.624-1.045-.397-.426-.912-1.16-.834-2.241v-.004c.04-.85.289-1.47.795-2.025.507-.556 1.273-1.05 2.348-1.651l.003-.002c.832-.425 1.507-.965 1.946-1.659.274.424.431.924.55 1.578v.002l.237 1.579c.002.01.011.015.02.012zM3.767 13.452a.839.839 0 0 1 .834-.75h1.453c2.412 0 4.18 1.976 3.936 4.393v.004l-.262 2.48c-.263 2.32-2.325 4.213-4.672 4.213H3.603a.838.838 0 0 1-.834-.927l.998-9.413zm1.588.927l-.82 7.736h.521c1.47 0 2.834-1.228 3.006-2.723l.26-2.465v-.002c.144-1.443-.864-2.546-2.268-2.546h-.699zM14.36 12.275c-1.848 0-3.457 1.481-3.654 3.308l-.477 4.557-.001.01c-.174 1.885 1.215 3.475 3.134 3.475 1.848 0 3.457-1.482 3.653-3.308v-.003l.478-4.554v-.01c.175-1.886-1.214-3.475-3.133-3.475zm-2.462 8.034l.476-4.547c.107-.993 1.014-1.81 1.986-1.81.899 0 1.548.707 1.464 1.639l-.476 4.547c-.108.993-1.014 1.81-1.986 1.81-.9 0-1.548-.707-1.464-1.64z",fill:"#fff"})]})));var lB={Enable:0,0:"Enable",OutDate:1,1:"OutDate",Private:2,2:"Private"},lF=o("250146");let lW=e=>{let{followStatus:l,handleClickNotInteresting:o,handleClickReport:i,handleClickDelete:t,handleClickUnfollow:n,handleClickPhoneResume:d,showList:r,awemeInfo:s,loginUserInfo:c,dataAnalysisStatus:v,handleClickAnalysis:f,userInfo:m,handleClickASR:h,isAsrOn:p,player:_,recommendTriggered:g,showRecommendToFriend:w,handleClickRecommendIcon:x,abtestData:y,onDouPlusClick:k,loginDispatch:I,moreBoxParamsRef:b}=e;return(0,a.useMemo)(()=>{var e,a,S,C,N,E,j,T,L;return[...(null==s?void 0:null===(e=s.status)||void 0===e?void 0:e.allowSelfRecommendToFriend)&&w?[{icon:g?lz:lV,svgProps:{width:27,height:27,viewBox:"0 0 27 27"},desc:g?"取消推荐":"推荐",key:"recommendIcon",onClick:x,hidden:!(null==s?void 0:null===(a=s.status)||void 0===a?void 0:a.allowSelfRecommendToFriend),className:lC.default.recommendIcon}]:[],{icon:lD,isSemiIcon:!1,desc:"上热门",key:"douPlus",customComponent:!0,onClick:(e,l)=>{null==k||k({from:"more",seq:l,hasCoupon:b.current.douPlusShowCoupon})},hidden:!k},{icon:lE.Z,isSemiIcon:!0,desc:"不感兴趣",key:"notInterestingIcon",onClick:()=>o(),hidden:"undefined"!=typeof window&&(null===(N=window)||void 0===N?void 0:null===(C=N.location)||void 0===C?void 0:null===(S=C.pathname)||void 0===S?void 0:S.indexOf("/video"))!==-1||!(null==r?void 0:r.notInterestingIcon)||(null==s?void 0:null===(E=s.authorInfo)||void 0===E?void 0:E.uid)===(null==c?void 0:null===(j=c.info)||void 0===j?void 0:j.uid)},{icon:lj.Z,isSemiIcon:!0,desc:"手机续播",key:"phoneResume",onClick:d,hidden:!(null==r?void 0:r.phoneResume)},{icon:lN.Z,desc:"取消关注",key:"unfollow",onClick:n,hidden:l===e2.$u.UnFollow||!(null==r?void 0:r.unfollow)},{icon:lT.Z,isSemiIcon:!0,desc:"举报",key:"report",onClick:i,hidden:!(null==r?void 0:r.report)||(null==s?void 0:null===(T=s.authorInfo)||void 0===T?void 0:T.uid)===(null==m?void 0:m.uid)||(0,X.Kf)(s)},{icon:lP.Z,desc:"删除",key:"deleteSelfPost",onClick:t,hidden:!(null==r?void 0:r.deleteSelfPost)||!(null==m?void 0:m.uid)||m.uid!==(null==s?void 0:null===(L=s.authorInfo)||void 0===L?void 0:L.uid),className:lC.default.deleteIcon},{icon:lM.Z,desc:"数据分析",key:"dataAnalysis",onClick:f,hidden:!(null==r?void 0:r.dataAnalysis),className:u()(lC.default.analysisIcon,{[lC.default.disableItem]:v!==lB.Enable})},{icon:p?lA.Z:lR.Z,desc:"支持转文稿",key:"showASRIcon",onClick:h,hidden:!(null==r?void 0:r.asrState),className:p?lC.default.asrIconOn:lC.default.asrIconOff},{icon:lL.Z,isSemiIcon:!0,desc:"快捷键列表",key:"shortcutList",onClick:()=>{(0,lF.n5)({logParams:{clickMethod:"more_button"},abTestData:y,userInfo:c,userDispatch:I}),null==_||_.emit(W.Events.USER_ACTION,{action:"show_short_cut_list"})},hidden:!(null==r?void 0:r.shortcutList)}].filter(e=>!e.hidden)},[l,o,i,n,d,x,r,s,c,v,f,m,h,p,_,g,I])};var lU=o("847742"),lZ=o("386206"),lH=o("69509"),lO=o("318133"),lK=o("253262"),lG=o("724538"),lq=o("542029");function lY(e){let{width:l,awemeInfo:o,loginDispatch:i,isLogin:t,isShow:d,fullScreenTarget:r,loginPanelTarget:u,toast:s,player:c,abtestData:v,uid:f}=e,{musicName:m,mid:h}=(null==o?void 0:o.music)||{},[p,_]=(0,a.useState)(null),[g,w]=(0,a.useState)(0),[x,y]=(0,a.useState)(null),k=(0,a.useCallback)(async()=>{let e=await (0,lU.XL)({musicId:h});if(0===e.statusCode){var l,o,i;_((null===(l=e.musicInfo)||void 0===l?void 0:l.collectStat)||e2.c.Uncollected),w(null!==(i=null==e?void 0:null===(o=e.musicInfo)||void 0===o?void 0:o.userCount)&&void 0!==i?i:0)}},[h]);(0,a.useEffect)(()=>{d&&(null==x?void 0:x.awemeId)!==o.awemeId&&(k(),y(o))},[o,d]);let{collect:I,unCollect:C}=(0,lK.S)({musicId:h,onLoginSuccess:()=>{null==i||i({type:"updateUserInfo"})},awemeInfo:o,isLogin:t,accountParentEl:(0,T.r)()&&r,loginPanelTarget:u,toast:s}),{collectStatus:N}=(0,lG.v)({musicId:h,isLogin:t,defaultCollectStatus:null===p?e2.c.Uncollected:p}),E=(0,a.useMemo)(()=>f?String(f):"unlogin",[f]),[j,L]=(0,a.useState)(!1);(0,a.useEffect)(()=>{L(1!==((0,S.$o)(b.LocalStorageKeys.PlayerMoreMusicStudioRedDot)||{})[E])},[E]);let M=(0,a.useCallback)(()=>{let e=(0,S.$o)(b.LocalStorageKeys.PlayerMoreMusicStudioRedDot)||{};e[E]=1,(0,S.qQ)(b.LocalStorageKeys.PlayerMoreMusicStudioRedDot,e),L(!1),window.open("https://music.douyin.com/studio?ug_source=cpdl_douyinpc_peiyue","_blank")},[E]);return(0,n.jsxs)("div",{className:lO.default.musicDetail,style:{maxWidth:l?`${l}px`:"unset"},"data-e2e":"more-music-detail",children:[(0,n.jsx)("div",{className:lO.default.musicText,children:(0,n.jsxs)("div",{className:lO.default.text,children:[(0,n.jsxs)("div",{className:lO.default.musicName,children:[(0,n.jsx)(eF.Z,{src:lH.Z,width:36,height:36,viewBox:"0 0 36 36"}),m]}),(0,n.jsxs)("div",{className:lO.default.useCount,children:[(0,lZ.qe)(g),"人使用"]})]})}),(0,n.jsxs)("div",{className:lO.default.studioBtn,onClick:M,"data-e2e":"more-music-studio-entry",children:[(0,n.jsx)(eF.Z,{src:lH.Z,width:14,height:14,viewBox:"0 0 36 36",className:lO.default.studioBtnIcon}),(0,n.jsx)("span",{className:lO.default.studioBtnText,children:"去创作AI音乐"}),j&&(0,n.jsx)("span",{className:lO.default.studioBtnRedDot})]}),null!==p?(0,n.jsx)(lq.Z,{collapseStatus:N===e2.c.Collected,isFetching:!1,handleClick:()=>{N===e2.c.Collected?C():(I(),null==c||c.emit(W.Events.USER_ACTION,{action:"collect_music"}))}}):(0,n.jsx)(lq.Z,{isFetching:!0})]})}var lQ=o("98394"),lX=o("771410"),l$=o("905151"),lJ=o.p+"media/apng.19438de369b247de.png",l0=o.p+"media/pocket.d7a03eb18f9d1cea.png";function l1(e){let{couponAnimate:l,seq:o,onCouponChange:i,isLogin:t}=e,d=(0,a.useRef)(null),[r,c]=(0,a.useState)(t?"UnCheck":"None"),[v,f]=(0,a.useState)(""),[m,h]=(0,a.useState)(!1),[p,_]=(0,a.useState)(!1),[g,w]=(0,a.useState)(!1),[x,y]=(0,a.useState)(null);(0,a.useLayoutEffect)(()=>{let e=!1,l="";return fetch(lJ).then(e=>e.blob()).then(o=>{if(!e)y(l=URL.createObjectURL(o))}),"UnCheck"===r&&(0,lQ.b)().then(l=>{if(!e)(null==l?void 0:l.couponShowText)?(c("Available"),f(l.couponShowText),i(!0),lX.Z.report("show_dou_plus",{dou_plus_source:"origin_entrance",dou_plus_sub_source:"douyin",dou_plus_medium:"douyin_PC_moresettings",dou_plus_entrance_type:1,dou_plus_entrance_level:1,dou_plus_entrance_seq:o,dou_plus_referer:"homepage_hot",target_step:1,has_coupon:1})):c("None")}),()=>{e=!0,l&&URL.revokeObjectURL(l)}},[]);let k="svg",I=!1;return"Available"!==r||g?"None"===r&&!p&&(k=m?"apng":"svg"):(k=l?"pocket":"svg",I=!l),(0,n.jsx)(s.Tooltip,{className:u()(l$.default.douPlusTip,{[l$.default.none]:"Available"!==r}),position:"bottomLeft",clickTriggerToHide:!0,content:(0,n.jsx)("div",{className:l$.default.douPlusTipContent,children:v}),getPopupContainer:()=>d.current,showArrow:null,children:(0,n.jsxs)("div",{className:l$.default.content,ref:d,children:["Available"!==r&&x&&(0,n.jsx)("img",{src:x,onLoad:()=>{h(!0)},onError:()=>{_(!0)},className:u()(l$.default.img,{[l$.default.apngHide]:"apng"===k})}),"None"!==r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("img",{src:l0,className:u()(l$.default.pocket,{[l$.default.ani]:"pocket"===k}),onError:()=>{w(!0)}}),I&&(0,n.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAeCAYAAAA2Lt7lAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATtSURBVHgBZVbNa11FFP+duTc1rWASqws/IC9aWnBjIxS0Yo0LKbpqF0IXgkIpLv0PNK5cVMG1oBT/grgTKhiLgt34AkIgVslLSb/SpH2hSdP33r1zembOmfuRXt7lzcw985tzfudrCPbwxxfnUJSfMHGHHDrIwyqB4TsgEgEOU+hq2JAGrsfyjQruo6Q+2PXLweDnfOGLS7Xsua+/hOd5LkqZedkjyxQASbETcBwwEr4NQd6G3hbkv7y3Mz925ZuviM/NdwRzlR8OgHCAL6Go0EMElFywhKM2wZCkfTWP32rzgkXFzgBjN3emcpTDOR6VoNEjYDAEex+lAmQ8CLqBKB2idHGw0puIHahnqSKZfNwdL8/kfgwdV3pZD/QUCryfgjCMYJQ8FsFN3TjlWh/b4YU67uSOqAPnQJmTYzOlxeioHq5Zg9kHNsWpJanrgT7BcmPZtMSKm0YEt5fqaGkg1tbYeL9I8yGj1TOLD3IB9ao9B0uopogsPPnJ7a1ZGlWBEKYSSTRxcDrnE0c7dHUlah/MsrAwwTCWww89BcweAaaeBm89AF+7CdraBu2zkGwcpyOP/KNTkznfGQOdPQn82gVu3DWn1RryS4fhPvsQmDxYIZFEml+4Ciz+A3rCFBk8NwE68zby3zY4d1duT/C4Y3z+AVG3B/5zBbS+obKHn4G7cNrAoTkylHwZDeHefw1+fRPU26iVOfoyaHYG/MaroJ+WQd17U8TvfhfDppggyi50ENziDjwL/n9TzCzg3jmmu0cjAZdcKQqdi794fRtYvgO8OAnMyB7sgv7bBX7vA9ceRKOIT33LKWUD53xMtD0hwidfAR04BJeRaj0cpmSwUiJOlbckoXhvAFq+Abp8C7Q2bIWWHHCxHSRWC8pij3H+OGVvvqBaE9WvU0/6zT2U3//N2e0R3CCkh7OooyqxnfDK+haazSzxJUGcZePAH+sG7trgzjy6dBf56h7RI09hDwtG2E9cyqSg8LpgtgBTAKfgRDEaYS7/tLIF/9ctBawS0bJ4S/yxsBLzhmLdEHn21X4B5LAumVxobqUw85ZjZqn/sYvy+n2400dAz0sePBzB//Iv+HIP2YhUKCFE21NxDxjyjd+aDzaFys9aR5ha2RktlFdo5NLHBhESMnOZQGkl4mYZQTtNxYLRmmB2kg3EdSWNvYasYGQSTrGUEGvYeWpWW1WG24WEqZfH0LMiTVZ4olA0SeHiPq2owRhq9KNACFGqQ1aMUp8SxTkP2RnLqwo125KFWgWnLdFOr8oh1+1Z+ae6ZzO2c3FjTxrDdOSial32H6zg2htKYcVMozUZA6wb40kxrLkvLbPoV84KKnlOzNRk2o2CzY3N3tPMUrsmKBNWH3LPfrsZCQzQ/i5CFhIVcDLWGmWz+TDXVslvNVKU+Ob2faJaa4LGoU8UhEXPbV0aSnleyyW9e46a8FxfEohSg6v9orWGUvSRUl8xmNpleCTgtvPMFT0unfLCRlGi2qu31HlGXVXLYA2+Uipmv3IW9SCXuSWNqNnzXYF4nZJzaw411i2Q24+5NB1eX8PIdOxR94cZp7LlWTFoTauhFD2phlK04lgqYixmcS2MuWB9S6ZQPmJGe9vnY8+QLrEo8/daTonnHP90Tv46HuWk8zwRF124N/K0chp4d3DVBu5VMnIJttUeLV1aTCKPAcNq/1Y+xOUuAAAAAElFTkSuQmCC",className:l$.default.badge})]}),(0,n.jsx)(eF.Z,{src:lD,height:36,width:36,viewBox:"0 0 36 36",className:u()(l$.default.svg,{[l$.default.show]:"svg"===k||"pocket"===k,[l$.default.apngAni]:"apng"===k,[l$.default.logo]:"pocket"===k,[l$.default.ani]:"pocket"===k})})]})})}function l2(e){let{abtestData:l,seq:o,onCouponChange:i,isLogin:t}=e;return(0,a.useEffect)(()=>{i(!1)},[]),(0,n.jsx)(l1,{couponAnimate:!0,seq:o,onCouponChange:i,isLogin:t})}var l5=o("37285"),l3=o("547304"),l4=o("352871");let l7={notInterestingIcon:!0,unfollow:!0,report:!0,shortcutList:!1,dataAnalysis:!1,phoneResume:!1};function l6(e){var l,o,d,r,s,c,v,f,m,p,_,g;let{player:w,awemeInfo:x,loginUserInfo:y,loginDispatch:k,deleteCurrentSwiper:I,singleBox:b,setSingleBox:S,logInfo:C,isFollowClickedRef:N,toast:j,videoReportModalContainer:M,reportExtraParams:A={},ableMiniType:P=!1,showList:V,abtestData:D,actionUnFollow:B,showMusicDetail:F=!0,isLogin:U,onDislike:H,loginPanelTarget:O,fullScreenTarget:G,isInnerFeed:q=!1,recordPreferVideoSwitch:Y,recommendTriggered:Q,showRecommendToFriend:$,onDouPlusClick:J}=e,{type:ee,changeType:el}=(0,K.P)({delayDisappear:50,delayShow:null!==(g=null==D?void 0:D.interactionDelay)&&void 0!==g?g:Z.o}),[eo,ei]=(0,a.useState)(V.asrState===l_.Kw.On);(0,a.useEffect)(()=>{V.asrState===l_.Kw.On&&ei(!0)},[V]);let et=(0,a.useRef)(null),en=(0,a.useRef)(null),ea=(0,l4.I7)(null==x?void 0:x.awemeType,U),er=(0,a.useMemo)(()=>V?(0,t._)((0,i._)({},l7,V),{phoneResume:ea}):l7,[V,ea]),eu=(0,a.useMemo)(()=>{var e;return((null==x?void 0:x.createTime)+2592e3)*1e3<Date.now()?lB.OutDate:(null==x?void 0:null===(e=x.status)||void 0===e?void 0:e.privateStatus)!==0?lB.Private:lB.Enable},[null==x?void 0:x.createTime,null==x?void 0:null===(l=x.status)||void 0===l?void 0:l.privateStatus]),{followStatus:es}=(0,eK.r)({selfUid:null==y?void 0:null===(o=y.info)||void 0===o?void 0:o.uid,actionUid:null==x?void 0:null===(d=x.authorInfo)||void 0===d?void 0:d.uid,defaultFollowerStatus:null==x?void 0:null===(r=x.authorInfo)||void 0===r?void 0:r.followerStatus,defaultFollowStatus:null==x?void 0:null===(s=x.authorInfo)||void 0===s?void 0:s.followStatus}),ec=(0,a.useCallback)(()=>{N.current=!0,(0,lx.V)(es)&&(B(),el("",!0))},[es,el,B]),ev=(0,a.useCallback)(async function(){let{clickMethod:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{clickMethod:"icon"};if(!!(null==er?void 0:er.notInterestingIcon))Y&&(0,R.xL)(x,w,"dislike"),await H({clickMethod:e,reportExtraParams:A}),el("",!0),w.emit(W.Events.USER_ACTION,{action:"dislike"}),(0,e5.VY)({info:{[e4.BW.Dislike]:!0},awemeId:null==x?void 0:x.awemeId,abData:0})},[el,er,H,A,w,null==x?void 0:x.awemeId]),ef=(0,a.useCallback)(async()=>{var e,l,o,i;if((0,X.Jt)(x)&&(0,X.Gu)(x)){null==w||w.emit(l5.B.AdReport);return}null==w||w.emit(W.Events.USER_ACTION,{action:"report"}),lS.sendLog("report",{urlParamList:["previous_page"],enter_from:(0,L.mo)(),author_id:null==x?void 0:null===(e=x.authorInfo)||void 0===e?void 0:e.uid,group_id:null==x?void 0:x.awemeId,log_pb:null==C?void 0:C.log_pb,is_full_screen:(0,T.r)()?"1":"0",play_current_time:Math.floor((null==w?void 0:w.currentTime)||0)}),h.emit(h.EVENT.videoPause,"More_onClickReport");if(x.awemeType===E.e.XgVideo){h.emit(h.EVENT.videoPause,"More_onClickReport1"),window.open((0,ed.Tl)({videoid:null==x?void 0:x.awemeId,param:"envoke_tipoff",value:"1"}),(0,lk.f)()?"_self":void 0),null==I||I();return}(0,lp.m)({title:(null==x?void 0:x.awemeType)===E.e.Note?"举报图集":"举报视频",type:"video",pipeline_id:(null==x?void 0:x.awemeType)===E.e.Note?"161":"157",object_id:null==x?void 0:x.awemeId,onClose:()=>{(0,ly.m)("reportModal"),h.emit(h.EVENT.videoRemoveStopPlayNext)},onShow:()=>{h.emit(h.EVENT.videoStopPlayNext),(0,ly.o)({pauseCustomShortcut:!0,pauseGlobalShortcut:!0,pausePlayControlShortcut:!0},"reportModal")},userInfo:null==y?void 0:y.info,loginDispatch:k,owner_id:null==x?void 0:null===(l=x.authorInfo)||void 0===l?void 0:l.uid,owner_sec_id:(null==x?void 0:null===(o=x.authorInfo)||void 0===o?void 0:o.secUid)||"",enter_from:(0,eN.yW)(),onReport:()=>{(0,e5.VY)({info:{[e4.BW.Report]:!0},awemeId:null==x?void 0:x.awemeId,abData:0})},abtestData:D},null!=M?M:(0,T.r)()&&(null==w?void 0:null===(i=w.config)||void 0===i?void 0:i.fullscreenTarget)),el("")},[x,el,C,M,y,k,w]),em=a.useCallback(()=>{switch(eu){case lB.OutDate:j("发布超过30天的作品暂不支持分析");break;case lB.Private:j("私密作品暂不支持分析");break;default:lS.sendLog("creatorDataEntranceClick"),window.open((0,ed.hj)(null==x?void 0:x.awemeId),(0,lk.f)()?"_self":"_blank")}},[null==x?void 0:x.awemeId,eu,j]),eh=a.useCallback(async()=>{try{var e;null==w||w.emit(W.Events.USER_ACTION,{action:"phone_resume"}),lS.sendLog("continuedAppBroadcastClick",{enter_from:(0,L.vM)()});let{statusCode:l}=await (0,lg.wU)({item_id:x.awemeId,item_type:x.awemeType,record_type:2,play_progress:Math.floor(null!==(e=null==w?void 0:w.currentTime)&&void 0!==e?e:0),to_client:1});0===l?(h.emit(h.EVENT.videoPause,"More_onClickPhoneResume"),j("打开手机抖音继续观看")):j("网络错误,请稍后再试")}catch(e){j("网络错误,请稍后再试")}finally{el("",!0)}},[x,el,null==w?void 0:w.currentTime,j,w]),ep=a.useCallback(()=>{Q?null==w||w.emit(W.Events.USER_ACTION,{action:"cancel_recommend",source:"more_panel"}):null==w||w.emit(W.Events.USER_ACTION,{action:"recommend",source:"more_panel"}),el("",!0)},[w,Q,el]),e_=a.useCallback(()=>{ei(e=>{var l;return z.F.infoInModalVideo(e?"操作成功,此视频将不会在后台转为文稿":"已开启视频转文稿功能"),(0,l_.fG)({userId:null==y?void 0:null===(l=y.info)||void 0===l?void 0:l.uid,itemId:null==x?void 0:x.awemeId,status:e?l_.Kw.Off:l_.Kw.On}),!e})},[x,y]),eg=a.useCallback(async()=>{let e=null==x?void 0:x.awemeId;if(!!e){if((0,lI.i)(x)){z.F.info("当前视频为版权视频,不可操作");return}h.emit(h.EVENT.videoPause,"More_onClickDelete"),(0,l3.Z)({title:"你的作品将被永久删除,无法找回,确认删除?",cancelBtnText:"暂不删除",confirmBtnText:"确认删除",onConfirm:()=>new Promise(l=>{(0,lw.FD)({awemeIds:`${e}`}).then(e=>{if(e.isSuccess){var o;null==I||I(),z.F.info("删除成功");let e=null!==(o=R.Le.getConfig(R.gI.DeletePostList))&&void 0!==o?o:[];R.Le.setConfig(R.gI.DeletePostList,[...e,x]),l()}else z.F.info("作品因风险因素未能删除成功"),l()})}),onCancel:()=>{}})}},[x,I]);(0,a.useEffect)(()=>{"more"!==b&&el("",!0)},[b]);let ew=new Map([["notInterestingIcon","video-player-no-like"],["report","video-player-report"],["shortcutList","video-player-shoret-cut"]]),ex=(0,a.useRef)({douPlusShowCoupon:!1}),ey=(0,a.useCallback)(e=>{ex.current.douPlusShowCoupon=e},[]);(0,a.useEffect)(()=>{"more"===ee&&J&&lX.Z.report("show_dou_plus",{dou_plus_source:"origin_entrance",dou_plus_sub_source:"douyin",dou_plus_medium:"douyin_PC_moresettings",dou_plus_entrance_type:1,dou_plus_entrance_level:1,dou_plus_entrance_seq:eI.findIndex(e=>"douPlus"===e.key),dou_plus_referer:"homepage_hot",target_step:1,has_coupon:0})},[ee]);let eI=lW({followStatus:es,handleClickNotInteresting:ev,handleClickReport:ef,handleClickDelete:eg,handleClickUnfollow:ec,handleClickPhoneResume:eh,handleClickRecommendIcon:ep,showList:er,awemeInfo:x,loginUserInfo:y,dataAnalysisStatus:eu,handleClickAnalysis:em,userInfo:null==y?void 0:y.info,handleClickASR:e_,isAsrOn:eo,player:w,recommendTriggered:Q,showRecommendToFriend:$,abtestData:D,onDouPlusClick:J,loginDispatch:k,moreBoxParamsRef:ex});(0,a.useEffect)(()=>{var e,l;let o=(null==x?void 0:null===(e=x.authorInfo)||void 0===e?void 0:e.uid)!==(null==y?void 0:null===(l=y.info)||void 0===l?void 0:l.uid)&&(null==er?void 0:er.notInterestingIcon);return o&&(null==w||w.on(l5.B.Dislike,ev)),null==w||w.on("showReportModal",ef),()=>{o&&(null==w||w.off(l5.B.Dislike,ev)),null==w||w.off("showReportModal",ef)}},[w,ev,x,er,ef,y]);let eb=(0,a.useCallback)(()=>{lS.sendLog("moreFeatureShow",{enter_from:(0,L.vM)()}),(null==er?void 0:er.dataAnalysis)&&lS.sendLog("creatorDataEntranceShow")},[null==er?void 0:er.dataAnalysis]),eS=null==x?void 0:null===(v=x.status)||void 0===v?void 0:null===(c=v.videoMute)||void 0===c?void 0:c.isMute,eC=F&&(null==x?void 0:null===(f=x.music)||void 0===f?void 0:f.status)&&(null==x?void 0:null===(m=x.music)||void 0===m?void 0:m.playUrl.uri)&&!eS,eE=(0,ek.x)(eb),ej=(0,a.useCallback)(()=>{var e;S("more"),el("more"),h.emit(null==h?void 0:null===(e=h.EVENT)||void 0===e?void 0:e.clarityRel,{hoverSelected:!0})},[]),eT=(0,a.useCallback)(()=>{var e;lS.sendLog("hover_more_active_icon",{enter_from:(0,L.mo)()}),el(""),h.emit(null==h?void 0:null===(e=h.EVENT)||void 0===e?void 0:e.clarityRel,{hoverSelected:!1})},[]);return(0,n.jsxs)("div",{className:u()(lC.default.more,{[lC.default.ableMiniType]:P}),onMouseEnter:ej,onMouseLeave:eT,ref:et,"data-e2e":"video-play-more",children:[(0,n.jsx)(eF.Z,{src:lb.Z,viewBox:"0 0 36 36",height:36,width:36,needRenderInSSR:!0,className:lC.default.svgWraper}),(0,n.jsx)("div",{ref:eE,className:lC.default.moreBox,style:{display:"more"!==ee?"none":"flex",width:(null==eI?void 0:eI.length)<=3&&eC?"240px":`${72*(null==eI?void 0:eI.length)+24}px`},onMouseEnter:()=>{el("more")},onMouseLeave:()=>{el("",!0)},children:"more"!==ee?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:lC.default.moreList,ref:en,children:eI.map((e,l)=>{var o;return(0,n.jsxs)("div",{className:u()(lC.default.itemWrap,e.className),onClick:o=>e.onClick(o,l),"data-e2e":null!==(o=ew.get(e.key))&&void 0!==o?o:"",children:[(0,n.jsxs)("div",{className:lC.default.itemIcon,children:[e.customComponent&&"douPlus"===e.key&&(0,n.jsx)(l2,{abtestData:D,seq:l,onCouponChange:ey,isLogin:U},e.key),!e.customComponent&&(e.isSemiIcon?(0,n.jsx)(e.icon,{className:lC.default.semiIcon}):(0,n.jsx)(eF.Z,(0,i._)({src:e.icon,height:36,width:36,viewBox:"0 0 36 36"},(null==e?void 0:e.svgProps)||{})))]}),(0,n.jsx)("div",{className:lC.default.itenDesc,children:e.desc})]},e.key)})}),eC&&(0,n.jsx)(lY,{width:null==en?void 0:null===(p=en.current)||void 0===p?void 0:p.clientWidth,awemeInfo:x,isLogin:U,loginDispatch:k,isShow:"more"===ee,fullScreenTarget:G,loginPanelTarget:O,toast:j,player:w,abtestData:D,uid:null==y?void 0:null===(_=y.info)||void 0===_?void 0:_.uid})]})})]})}function l8(e){let l=(0,q.N)();return(0,n.jsx)(G.k,{componentName:"More",Slardar:l,children:(0,n.jsx)(l6,(0,i._)({},e))})}var l9=o("700762"),oe=o("45390"),ol=o("701412"),oo=o("537694"),oi=o("295207"),ot=o("939165"),on=o("590555"),oa=o("751548"),od=o("687875"),or=o("469809"),ou=o("908219"),os=o.n(ou),oc=o("103680"),ov=o("366202"),of=o("570831"),om=o("58957"),oh=o("193143"),op=o("755890");let o_=e=>{let{awemeInfo:l,player:o,size:d}=e,[r,s]=(0,a.useState)(1e3*o.currentTime),[c,v]=(0,a.useState)(!1),f=(0,a.useRef)(),m=(0,a.useRef)(!1),h=(0,a.useCallback)(()=>{var e,l,o,i;m.current=!1,null===(l=window.documentPictureInPicture)||void 0===l||null===(e=l.window)||void 0===e||e.removeEventListener("mousemove",_),null===(i=window.documentPictureInPicture)||void 0===i||null===(o=i.window)||void 0===o||o.removeEventListener("mouseup",g)},[]),p=e=>{var i,t,n,a;return{position:(null==o?void 0:o.currentTime)||0,enter_from:(0,L.mo)(),enter_from_merge:(0,L.vM)(),tab_name:(0,P.zD)()||(0,M.Rs)("tab_name")||"",rate:null==e?void 0:e.percent,action:(null==e?void 0:e.currentTime)>(null==e?void 0:e.prePlayTime)?"forward":"rewind",is_small_window:(0,oh.f)()?"1":"0",is_chapter_bar:(null==l?void 0:null===(i=l.chapterInfo)||void 0===i?void 0:i.status)?1:0,chapter_index:(0,of.P)({awemeInfo:l,currentTime:null==e?void 0:e.currentTime}),group_id:null==l?void 0:l.awemeId,author_id:null==l?void 0:null===(t=l.authorInfo)||void 0===t?void 0:t.uid,vduration:null==l?void 0:null===(n=l.video)||void 0===n?void 0:n.duration,if_continued_play:R.Le.getConfig(R.gI.PlayRecord)?(0,op.v)(l.awemeId)?1:0:"",before_rate:(null==e?void 0:e.prePlayTime)*1e3/(null==l?void 0:null===(a=l.video)||void 0===a?void 0:a.duration),before_position:null==e?void 0:e.prePlayTime,is_ting_window:1,player_display_mode:(0,L.Ok)()}},_=(0,a.useCallback)(e=>{if(!!m.current)try{let l=f.current.getBoundingClientRect(),i=e.clientX-l.left,t=(i=Math.max(0,Math.min(l.width,i)))/l.width,n=o.duration*t;o.seek(n),s(1e3*n)}catch(e){h()}},[h,o]),g=(0,a.useCallback)(()=>{m.current?h():eR.logInstance.sendLog("progressClick",(0,t._)((0,i._)({},p({})),{click_method:"click"}))},[h]);(0,a.useEffect)(()=>()=>{m.current&&h()},[h]);let w=(0,a.useCallback)(e=>{if(m.current)return;let l=f.current.getBoundingClientRect(),n=e.clientX-l.left,a=(n=Math.max(0,Math.min(l.width,n)))/l.width,d=o.duration*a;o.seek(d),eR.logInstance.sendLog("progressClick",(0,t._)((0,i._)({},p({})),{click_method:"click"}))},[o]),x=(0,a.useCallback)(e=>{var l,o;e.stopPropagation(),e.preventDefault(),m.current=!0,null===(l=window.documentPictureInPicture)||void 0===l||l.window.addEventListener("mousemove",_),null===(o=window.documentPictureInPicture)||void 0===o||o.window.addEventListener("mouseup",g)},[_,g]);(0,a.useEffect)(()=>{if(o){let e=e=>{if(!m.current){var l;s((null!==(l=e.currentTime)&&void 0!==l?l:0)*1e3)}};return o.on("timeupdate",e),()=>{o.off("timeupdate",e)}}},[o]);let y=d.height>490;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:u()(om.default.time,om.default.left,{[om.default.bigSize]:y}),children:(0,lZ.$y)(r)}),(0,n.jsx)("div",{className:u()(om.default.progressWrapper,{[om.default.bigSize]:y}),ref:f,onClick:w,onMouseEnter:()=>{v(!0)},onMouseLeave:()=>{v(!1)},onMouseDown:x,children:(0,n.jsxs)("div",{className:u()(om.default.progress,{[om.default.bigSize]:y}),children:[(0,n.jsx)("div",{className:u()(om.default.currentProgress,{[om.default.bigSize]:y}),style:{width:`${r/(null==l?void 0:l.video.duration)*100}%`}}),(0,n.jsx)("div",{className:u()(om.default.progressHoverDot,{[om.default.show]:c}),style:{left:`${r/(null==l?void 0:l.video.duration)*100}%`}})]})}),(0,n.jsx)("div",{className:u()(om.default.time,om.default.right,{[om.default.bigSize]:y}),children:(0,lZ.$y)(null==l?void 0:l.video.duration)})]})};var og=o("678305"),ow=o("317226");let ox=(0,a.forwardRef)((e,l)=>(0,n.jsxs)("svg",(0,t._)((0,i._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:[(0,n.jsx)("path",{d:"M13.213 1.964c0-.399-.471-.611-.77-.347l-2.958 2.61a.618.618 0 0 0 0 .926l2.958 2.61c.299.264.77.051.77-.348V5.583a7.71 7.71 0 1 1-7.89 3.76.797.797 0 0 0-1.38-.797 9.304 9.304 0 1 0 9.27-4.574V1.964z",fill:"#fff"}),(0,n.jsx)("path",{d:"M8.93 16.546c0 .473.254.753.69.753.441 0 .696-.275.696-.753v-5.57c0-.525-.338-.873-.841-.873-.291 0-.587.104-.96.358l-.93.65c-.265.176-.4.368-.4.586 0 .286.213.498.498.498.151 0 .28-.046.504-.192l.711-.503h.031v5.046zM11.497 15.799c0 .794.997 1.588 2.404 1.588 1.61 0 2.695-1.012 2.695-2.523 0-1.37-.93-2.305-2.28-2.305-.607 0-1.183.228-1.428.56h-.072l.145-1.832h2.684c.421 0 .66-.203.66-.566 0-.364-.244-.576-.66-.576h-2.938c-.571 0-.867.238-.904.732l-.192 2.668c-.03.478.26.784.686.784.192 0 .342-.062.649-.322a1.65 1.65 0 0 1 1.007-.368c.748 0 1.282.519 1.282 1.277 0 .784-.555 1.329-1.34 1.329-.529 0-.944-.244-1.271-.732-.172-.244-.338-.338-.556-.338-.348 0-.57.276-.57.623z",fill:"#fff"})]}))),oy=(0,a.forwardRef)((e,l)=>(0,n.jsxs)("svg",(0,t._)((0,i._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:[(0,n.jsx)("path",{d:"M12.09 1.617a.463.463 0 0 0-.77.347v1.953a9.304 9.304 0 1 0 8.738 4.629.797.797 0 1 0-1.381.797 7.71 7.71 0 1 1-7.357-3.826v1.898c0 .4.47.612.77.348l2.957-2.61a.618.618 0 0 0 0-.926l-2.957-2.61z",fill:"#fff"}),(0,n.jsx)("path",{d:"M9.62 17.299c-.437 0-.691-.28-.691-.753V11.5h-.031l-.711.503c-.224.146-.353.192-.504.192a.486.486 0 0 1-.498-.498c0-.218.135-.41.4-.587l.929-.649c.373-.254.67-.358.96-.358.504 0 .841.348.841.872v5.571c0 .478-.254.753-.695.753zM13.9 17.387c-1.407 0-2.403-.794-2.403-1.588 0-.348.223-.623.57-.623.219 0 .385.093.556.337.327.488.743.732 1.272.732.784 0 1.34-.545 1.34-1.329 0-.758-.535-1.277-1.283-1.277-.347 0-.7.13-1.007.368-.306.26-.457.322-.649.322-.425 0-.716-.306-.685-.784l.192-2.668c.036-.494.332-.732.903-.732h2.939c.415 0 .66.213.66.576s-.24.566-.66.566h-2.684l-.146 1.833h.073c.244-.333.82-.561 1.428-.561 1.35 0 2.28.934 2.28 2.305 0 1.51-1.086 2.523-2.696 2.523z",fill:"#fff"})]}))),ok=(0,a.forwardRef)((e,l)=>(0,n.jsxs)("svg",(0,t._)((0,i._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:[(0,n.jsx)("path",{d:"M20.24 16.78V7.21c0-1.96-2.13-3.19-3.83-2.21l-4.15 2.39-4.15 2.4c-1.7.98-1.7 3.43 0 4.41l4.15 2.4 4.15 2.39c1.7.98 3.83-.24 3.83-2.21z",fill:"#fff",fillOpacity:".5"}),(0,n.jsx)("path",{d:"M3.76 5.07c.41 0 .75.34.75.75v12.36c0 .41-.34.75-.75.75s-.75-.34-.75-.75V5.82c0-.41.33-.75.75-.75z",fill:"#fff"})]}))),oI=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M6.328 5.177c0-.971 1.037-1.578 1.866-1.093l11.512 6.736c.83.486.83 1.7 0 2.186L8.194 19.742c-.83.485-1.866-.122-1.866-1.093V5.177z",fill:"#161823"})}))),ob=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M2 0a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1H2zM11 0a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1h-3z",fill:"#161823"})}))),oS=e=>{let{size:l,player:o,disablePrev:i,disableNext:t,awemeInfo:d}=e,[r,s]=(0,a.useState)(i),[c,v]=(0,a.useState)(t),[f,m]=(0,a.useState)(o.paused);(0,a.useEffect)(()=>{let e=h.listen(h.EVENT.ListenVideoPipWindowStatusSync,e=>{let{to:l,type:o,newVal:i}=e;"pip"===l&&("disableNextStatusSync"===o&&v(i),"disablePrevStatusSync"===o&&s(i))});return()=>{e()}},[s,v]);(0,a.useEffect)(()=>{if(o){let e=()=>{m(!0)},l=()=>{m(!1)};return o.on("pause",e),o.on("play",l),()=>{o.off("pause",e),o.off("play",l)}}},[o]);let p=os()(()=>{if(!r)h.emit(h.EVENT.ListenVideoPipWindowStatusSync,{from:"pip",to:"main",type:"playPrev",newVal:""})},300,{leading:!0,trailing:!0}),_=os()(()=>{if(!c)h.emit(h.EVENT.ListenVideoPipWindowStatusSync,{from:"pip",to:"main",type:"playNext",newVal:""})},300,{leading:!0,trailing:!0}),g=l.height>490,w=g&&l.width>480;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:(0,n.jsx)(eF.Z,{width:g?32:24,height:g?32:24,viewBox:"0 0 24 24",src:ox,className:u()(ow.default.controlNoramlIcon),onClick:()=>{eR.logInstance.sendLog("clickPrevious15s",{enter_from:(0,eN.yW)(),is_ting_window:1,group_id:d.awemeId}),o.seek(Math.max(0,o.currentTime-15),o.paused?"pause":"play")}})}),(0,n.jsxs)("div",{className:u()(ow.default.center,{[ow.default.bigSize]:g,[ow.default.bigWidth]:g?w:l.width>480}),children:[(0,n.jsx)(eF.Z,{width:g?32:24,height:g?32:24,viewBox:"0 0 24 24",src:ok,className:u()(ow.default.controlNoramlIcon,{[ow.default.disable]:r}),onClick:p}),(0,n.jsxs)("div",{className:u()(ow.default.playBg,{[ow.default.bigSize]:g,[ow.default.bigWidth]:g?w:l.width>480}),onClick:()=>{null==o||o.emit(og.xf,{action:"switch_play_pause",paused:o.paused}),o.paused?o.play():o.pause()},children:[f&&(0,n.jsx)(eF.Z,{width:g?36:24,height:g?36:24,viewBox:"0 0 24 24",src:oI}),!f&&(0,n.jsx)(eF.Z,{width:g?24:16,height:g?24:16,viewBox:"0 0 16 16",src:ob})]}),(0,n.jsx)(eF.Z,{width:g?32:24,height:g?32:24,viewBox:"0 0 24 24",src:ok,className:u()(ow.default.controlNoramlIcon,ow.default.next,{[ow.default.disable]:c}),onClick:_})]}),(0,n.jsx)("div",{children:(0,n.jsx)(eF.Z,{width:g?32:24,height:g?32:24,viewBox:"0 0 24 24",src:oy,className:u()(ow.default.controlNoramlIcon),onClick:()=>{eR.logInstance.sendLog("clickNext15s",{enter_from:(0,eN.yW)(),is_ting_window:1,group_id:d.awemeId}),o.seek(Math.min(o.duration,o.currentTime+15),o.paused?"pause":"play")}})})]})};var oC=o("806217"),oN=o("772342"),oE=o("138957"),oj=o("901363"),oT=o("995270");let oL=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M13.701 3.249a5.75 5.75 0 0 1 5.75 5.75v2a5.75 5.75 0 0 1-5.75 5.75h-1.566l.415.415a.75.75 0 0 1-1.06 1.06l-1.528-1.527a.99.99 0 0 1 0-1.4l1.527-1.528a.75.75 0 0 1 1.06 1.061l-.418.419h1.57a4.25 4.25 0 0 0 4.25-4.25v-2a4.25 4.25 0 0 0-4.25-4.25h-1.75v-1.5h1.75zM7.343 1.772a.75.75 0 0 1 1.06 0L9.931 3.3a.99.99 0 0 1 0 1.4L8.403 6.227a.75.75 0 0 1-1.06-1.06l.413-.413H6.299a4.25 4.25 0 0 0-4.25 4.25v2a4.25 4.25 0 0 0 4.25 4.25h1.75v1.5h-1.75a5.75 5.75 0 0 1-5.75-5.75v-2a5.75 5.75 0 0 1 5.75-5.75h1.465l-.421-.421a.75.75 0 0 1 0-1.06z",fill:"#fff"})}))),oM=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M11 3.25a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1 0-1.5h9zM11 9.25a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1 0-1.5h9zM11 15.25a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1 0-1.5h9zM16.504 2.755a.75.75 0 0 1 .75.75V12.5h1.493c.905 0 1.344 1.105.687 1.727l-2.248 2.125a1 1 0 0 1-1.374 0l-2.248-2.125c-.658-.622-.219-1.727.686-1.727h1.504V3.505a.75.75 0 0 1 .75-.75z",fill:"#fff"})}))),oR=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M11 3.25a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1 0-1.5h9zM11 9.25a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1 0-1.5h9zM11 15.25a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1 0-1.5h9zM16.494 16.624a.75.75 0 0 1-.75-.75V6.879h-1.493c-.904 0-1.344-1.105-.686-1.727l2.248-2.125a1 1 0 0 1 1.374 0l2.248 2.125c.657.622.218 1.727-.687 1.727h-1.504v8.995a.75.75 0 0 1-.75.75z",fill:"#fff"})}))),oA=(0,a.forwardRef)((e,l)=>(0,n.jsxs)("svg",(0,t._)((0,i._)({width:10,height:6,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:[(0,n.jsx)("g",{clipPath:"url(#ic_tip_svg__clip0_6469_14503)",children:(0,n.jsx)("path",{d:"M3.887 1.75a1.5 1.5 0 0 1 2.346.151L9.52 6.646l.06.094C10.164 7.724 9.46 9 8.287 9H1.713C.503 9-.21 7.64.48 6.646L3.767 1.9l.12-.151z",fill:"#33343F",stroke:"#33343F"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"ic_tip_svg__clip0_6469_14503",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h10v6H0z"})})})]})));var oP=o("588246"),oV=o("721968"),oz=o("55938");let oD=e=>{let{isInnerFeed:l,player:o,size:i,awemeInfo:t}=e,[d,r]=(0,a.useState)(!1),[s,c]=(0,a.useState)((()=>{if(!l)return Number((0,oP.G9)());{var e;let l=(0,S.$o)(b.LocalStorageKeys.PLAYER_INNER_NEXT_AUTOPLAY),o=null===(e=R.Le.getConfig(R.gI.InnerAutoPlay))||void 0===e?void 0:e.modeIndex;if("number"==typeof o)return o;if(Number(l))return 2===Number(l)?oV.KM.Reverse:oV.KM.Nomal;return null===l?oV.KM.Nomal:oV.KM.Cycle}})()),f=l?["order","reverse","loop"]:["loop","order"],m={order:"sequential",loop:"single",reverse:"inverted"};(0,a.useEffect)(()=>{if(l){let e=oz.e.getPipWindow({scene:oi.d.ListenVideo});if(e){let l=e=>{var l,i;let t=null==e?void 0:null===(l=e.target)||void 0===l?void 0:l.tagName;if("INPUT"!==t&&"TEXTAREA"!==t&&(null==e?void 0:null===(i=e.target)||void 0===i?void 0:i.contentEditable)!=="true")(null==e?void 0:e.code)===v.SHORTCUT_KEY.autoPlay.code&&!(0,oT.QD)()&&c(e=>{let l=(e+1)%3;return o.emit(l5.B.UpdateAutoPlay,{index:l}),h.emit(h.EVENT.changeInnerAutoPlay,l),l})};return e.addEventListener("keydown",l),()=>{e.removeEventListener("keydown",l)}}}},[l,o]),(0,a.useEffect)(()=>{if(o&&!l){let e=e=>{c(e=>(e+1)%2)};return null==o||o.on(l5.B.UpdateAutoPlaySwitch,e),()=>{null==o||o.off(l5.B.UpdateAutoPlaySwitch,e)}}},[o,l]);let p=i.height>490;return(0,n.jsxs)("div",{className:u()(oj.default.playOrderContainer,{[oj.default.bgSize]:p}),onClick:()=>{c(e=>{let i=(e+1)%f.length;return eR.logInstance.sendLog("clickRepeatPlayback",{enter_from:(0,eN.yW)(),group_id:null==t?void 0:t.awemeId,is_ting_window:1,status:m[f[i]]}),l?(o.emit(l5.B.UpdateAutoPlay,{index:i}),h.emit(h.EVENT.changeInnerAutoPlay,i)):((0,S.qQ)(b.LocalStorageKeys.PLAYER_NEXT_AUTOPLAY,String(i)),o.emit("updateIsAutoPlay")),i})},onMouseEnter:()=>{r(!0)},onMouseLeave:()=>{r(!1)},children:["loop"===f[s]&&(0,n.jsx)(eF.Z,{width:p?32:20,height:p?32:20,src:oL,viewBox:"0 0 20 20",className:u()(oj.default.noramlIcon)}),"order"===f[s]&&(0,n.jsx)(eF.Z,{width:p?32:20,height:p?32:20,src:oM,viewBox:"0 0 20 20",className:u()(oj.default.noramlIcon)}),"reverse"===f[s]&&(0,n.jsx)(eF.Z,{width:p?32:20,height:p?32:20,src:oR,viewBox:"0 0 20 20",className:u()(oj.default.noramlIcon)}),d&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eF.Z,{width:10,height:6,src:oA,viewBox:"0 0 10 6",className:oj.default.tipArrow}),(0,n.jsx)("div",{className:oj.default.tip,children:{order:"顺序播放",loop:"循环播放",reverse:"倒序播放"}[f[s]]})]})]})},oB=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M10 4.75H6.5A4.25 4.25 0 0 0 2.25 9v3a4.25 4.25 0 0 0 4.25 4.25h7A4.25 4.25 0 0 0 17.75 12V7.467h1.5V12a5.75 5.75 0 0 1-5.75 5.75h-7A5.75 5.75 0 0 1 .75 12V9A5.75 5.75 0 0 1 6.5 3.25H10v1.5zm3.322 3.394c1.696 0 2.024 1.072 2.024 2.936 0 1.992-.336 3.016-2.016 3.016-1.688 0-2.015-1.024-2.015-2.904s.327-3.048 2.007-3.048zM7.68 14H6.504V9.384L5.32 10V8.944l1.432-.704h.928V14zm2.676 0h-1.32v-1.32h1.32V14zm2.959-4.816c-.776 0-.81.608-.81 1.984 0 1.296.017 1.896.825 1.896.784 0 .8-.6.8-1.936 0-1.344-.016-1.944-.816-1.944zM12 2.207a.5.5 0 0 1 .854-.353l1.793 1.792a.5.5 0 0 1 0 .708l-1.793 1.792A.5.5 0 0 1 12 5.793V2.207zm4 0a.5.5 0 0 1 .854-.353l1.793 1.792a.5.5 0 0 1 0 .708l-1.793 1.792A.5.5 0 0 1 16 5.793V2.207z",fill:"#fff"})}))),oF=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M10 4.75H6.5A4.25 4.25 0 0 0 2.25 9v3a4.25 4.25 0 0 0 4.25 4.25h7A4.25 4.25 0 0 0 17.75 12V7.467h1.5V12a5.75 5.75 0 0 1-5.75 5.75h-7A5.75 5.75 0 0 1 .75 12V9A5.75 5.75 0 0 1 6.5 3.25H10v1.5zM5.408 8.144c1.696 0 2.024 1.072 2.024 2.936 0 1.992-.336 3.016-2.016 3.016-1.688 0-2.016-1.024-2.016-2.904s.328-3.048 2.008-3.048zM16.731 9.28H14.5l-.08 1.24c.288-.216.512-.264.872-.264 1.16 0 1.815.944 1.815 1.864 0 1.4-1.055 1.976-2.055 1.976-.848 0-1.472-.392-1.88-1.048l.768-.704c.247.432.591.696 1.095.696.512 0 .929-.368.929-.888 0-.64-.433-.984-.969-.984-.367 0-.567.152-.823.464l-.88-.344.2-3.048h3.24v1.04zM9.208 14h-1.32v-1.32h1.32V14zm4.025-4.824L11.193 14h-1.16l1.96-4.688H9.386V8.24h3.847v.936zM5.4 9.184c-.776 0-.808.608-.808 1.984 0 1.296.016 1.896.824 1.896.784 0 .8-.6.8-1.936 0-1.344-.016-1.944-.816-1.944zM12 2.207a.5.5 0 0 1 .854-.353l1.793 1.792a.5.5 0 0 1 0 .708l-1.793 1.792A.5.5 0 0 1 12 5.793V2.207zm4 0a.5.5 0 0 1 .854-.353l1.793 1.792a.5.5 0 0 1 0 .708l-1.793 1.792A.5.5 0 0 1 16 5.793V2.207z",fill:"#fff"})}))),oW=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M10 4.75H6.5A4.25 4.25 0 0 0 2.25 9v3a4.25 4.25 0 0 0 4.25 4.25h7A4.25 4.25 0 0 0 17.75 12V7.467h1.5V12a5.75 5.75 0 0 1-5.75 5.75h-7A5.75 5.75 0 0 1 .75 12V9A5.75 5.75 0 0 1 6.5 3.25H10v1.5zm5.802 4.53H13.57l-.08 1.24c.288-.216.512-.264.872-.264 1.16 0 1.816.944 1.816 1.864 0 1.4-1.056 1.976-2.056 1.976-.848 0-1.472-.392-1.88-1.048l.768-.704c.248.432.592.696 1.095.696.512 0 .929-.368.93-.888 0-.64-.434-.984-.97-.984-.367 0-.567.152-.823.464l-.88-.344.2-3.048h3.24v1.04zM5.68 14H4.504V9.384L3.32 10V8.944l1.432-.704h.928V14zm2.176 0h-1.32v-1.32h1.32V14zm2.146-5.856c1.256 0 2 .664 2 1.76 0 .616-.248 1.04-.76 1.6l-1.384 1.512h2.16V14H8.266l-.016-.864 1.976-2.048c.24-.256.424-.472.52-.648a.924.924 0 0 0 .128-.512c0-.368-.288-.72-.792-.72-.488 0-.816.224-1.056.736l-.872-.592c.424-.768 1.064-1.208 1.832-1.208h.016zM12 2.207a.5.5 0 0 1 .854-.353l1.793 1.792a.5.5 0 0 1 0 .708l-1.793 1.792A.5.5 0 0 1 12 5.793V2.207zm4 0a.5.5 0 0 1 .854-.353l1.793 1.792a.5.5 0 0 1 0 .708l-1.793 1.792A.5.5 0 0 1 16 5.793V2.207z",fill:"#fff"})}))),oU=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M10 4.75H6.5A4.25 4.25 0 0 0 2.25 9v3a4.25 4.25 0 0 0 4.25 4.25h7A4.25 4.25 0 0 0 17.75 12V7.467h1.5V12a5.75 5.75 0 0 1-5.75 5.75h-7A5.75 5.75 0 0 1 .75 12V9A5.75 5.75 0 0 1 6.5 3.25H10v1.5zm4.794 4.53h-2.232l-.08 1.24c.288-.216.513-.264.873-.264 1.16 0 1.815.944 1.815 1.864 0 1.4-1.056 1.976-2.056 1.976-.848 0-1.472-.392-1.88-1.048l.768-.704c.248.432.592.696 1.096.696.511 0 .928-.368.928-.888 0-.64-.432-.984-.968-.984-.368 0-.568.152-.824.464l-.88-.344.2-3.048h3.24v1.04zM7.68 14H6.504V9.384L5.32 10V8.944l1.432-.704h.928V14zm2.676 0h-1.32v-1.32h1.32V14zM12 2.207a.5.5 0 0 1 .854-.353l1.793 1.792a.5.5 0 0 1 0 .708l-1.793 1.792A.5.5 0 0 1 12 5.793V2.207zm4 0a.5.5 0 0 1 .854-.353l1.793 1.792a.5.5 0 0 1 0 .708l-1.793 1.792A.5.5 0 0 1 16 5.793V2.207z",fill:"#fff"})}))),oZ=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M10 4.75H6.5A4.25 4.25 0 0 0 2.25 9v3a4.25 4.25 0 0 0 4.25 4.25h7A4.25 4.25 0 0 0 17.75 12V7.467h1.5V12a5.75 5.75 0 0 1-5.75 5.75h-7A5.75 5.75 0 0 1 .75 12V9A5.75 5.75 0 0 1 6.5 3.25H10v1.5zm3.354 3.394c1.695 0 2.023 1.072 2.023 2.936 0 1.992-.336 3.016-2.016 3.016-1.688 0-2.015-1.024-2.015-2.904s.328-3.048 2.008-3.048zm-7.266 0c1.256 0 2 .664 2 1.76 0 .616-.248 1.04-.76 1.6l-1.384 1.512h2.16V14H4.352l-.016-.864 1.976-2.048c.24-.256.424-.472.52-.648a.924.924 0 0 0 .128-.512c0-.368-.288-.72-.792-.72-.488 0-.816.224-1.056.736l-.872-.592c.424-.768 1.064-1.208 1.832-1.208h.016zm4.3 5.856h-1.32v-1.32h1.32V14zm2.958-4.816c-.776 0-.809.608-.809 1.984 0 1.296.016 1.896.824 1.896.784 0 .8-.6.8-1.936 0-1.344-.016-1.944-.815-1.944zM12 2.207a.5.5 0 0 1 .854-.353l1.793 1.792a.5.5 0 0 1 0 .708l-1.793 1.792A.5.5 0 0 1 12 5.793V2.207zm4 0a.5.5 0 0 1 .854-.353l1.793 1.792a.5.5 0 0 1 0 .708l-1.793 1.792A.5.5 0 0 1 16 5.793V2.207z",fill:"#fff"})}))),oH=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M10 4.75H6.5A4.25 4.25 0 0 0 2.25 9v3a4.25 4.25 0 0 0 4.25 4.25h7A4.25 4.25 0 0 0 17.75 12V7.467h1.5V12a5.75 5.75 0 0 1-5.75 5.75h-7A5.75 5.75 0 0 1 .75 12V9A5.75 5.75 0 0 1 6.5 3.25H10v1.5zM7.864 9.168l-1.408 1.296h.096c.904.056 1.536.792 1.536 1.688 0 1.176-.912 1.944-2.184 1.944-.648 0-1.36-.336-1.744-.84l.664-.816c.304.392.696.584 1.176.584.544 0 .92-.376.92-.872 0-.512-.456-.8-.992-.8-.312 0-.6.024-.864.072v-.888L6.376 9.28H4.328V8.24h3.536v.928zm5.427-1.024c1.696 0 2.024 1.072 2.024 2.936 0 1.992-.336 3.016-2.016 3.016-1.688 0-2.016-1.024-2.016-2.904s.328-3.048 2.008-3.048zM10.325 14h-1.32v-1.32h1.32V14zm2.958-4.816c-.776 0-.808.608-.808 1.984 0 1.296.016 1.896.824 1.896.784 0 .8-.6.8-1.936 0-1.344-.016-1.944-.816-1.944zM12 2.207a.5.5 0 0 1 .854-.353l1.793 1.792a.5.5 0 0 1 0 .708l-1.793 1.792A.5.5 0 0 1 12 5.793V2.207zm4 0a.5.5 0 0 1 .854-.353l1.793 1.792a.5.5 0 0 1 0 .708l-1.793 1.792A.5.5 0 0 1 16 5.793V2.207z",fill:"#fff"})}))),oO=e=>{let{player:l,size:o,awemeInfo:i}=e,[t,d]=(0,a.useState)(l.playbackRate||1),[r,s]=(0,a.useState)(!1),c=e=>{let{rate:o,clickMethod:i}=e;"manual"===i&&(l.emit("playRatioChange",o),l.emit("updatePlayBackRatio",o)),l.config.defaultPlaybackRate=Number(o),l.playbackRate=Number(o),d(Number(o))};(0,a.useEffect)(()=>{if(l){let e=()=>{if(t!==l.playbackRate)1.75===l.playbackRate?d(1.5):c({rate:l.playbackRate})};return 1.75===l.playbackRate&&d(1.5),l.on(W.Events.RATE_CHANGE,e),()=>{l.off(W.Events.RATE_CHANGE,e)}}},[l,t,c]);let v=o.height>490;return(0,n.jsxs)("div",{className:u()(oj.default.playRateContainer,{[oj.default.bgSize]:v}),onMouseEnter:()=>{s(!0)},onMouseLeave:()=>{s(!1)},children:[.75===t&&(0,n.jsx)(eF.Z,{width:v?32:20,height:v?32:20,src:oF,viewBox:"0 0 20 20",className:u()(oj.default.noramlIcon)}),1===t&&(0,n.jsx)(eF.Z,{width:v?32:20,height:v?32:20,src:oB,viewBox:"0 0 20 20",className:u()(oj.default.noramlIcon)}),1.25===t&&(0,n.jsx)(eF.Z,{width:v?32:20,height:v?32:20,src:oW,viewBox:"0 0 20 20",className:u()(oj.default.noramlIcon)}),1.5===t&&(0,n.jsx)(eF.Z,{width:v?32:20,height:v?32:20,src:oU,viewBox:"0 0 20 20",className:u()(oj.default.noramlIcon)}),2===t&&(0,n.jsx)(eF.Z,{width:v?32:20,height:v?32:20,src:oZ,viewBox:"0 0 20 20",className:u()(oj.default.noramlIcon)}),3===t&&(0,n.jsx)(eF.Z,{width:v?32:20,height:v?32:20,src:oH,viewBox:"0 0 20 20",className:u()(oj.default.noramlIcon)}),r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:oj.default.space}),(0,n.jsx)("div",{className:oj.default.playbackRate,children:["0.75","1.0","1.25","1.5","2.0","3.0"].map(e=>(0,n.jsxs)("span",{className:u()(oj.default.item,{[oj.default.active]:l.playbackRate===Number(e)||1.75===l.playbackRate&&1.5===Number(e)}),onClick:()=>{c({rate:Number(e),clickMethod:"manual"}),s(!1)},children:[e,"x"]},e))})]})]})};o("104882");let oK=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M7.71 3.047c1.762-1.626 4.615-.376 4.615 2.021v9.864c0 2.397-2.853 3.647-4.615 2.021l-2.856-2.637a.25.25 0 0 0-.17-.066H3.576a2.75 2.75 0 0 1-2.75-2.75v-3a2.75 2.75 0 0 1 2.75-2.75h1.11a.25.25 0 0 0 .169-.066L7.71 3.047zm3.115 2.021c0-1.09-1.297-1.657-2.097-.919L5.87 6.786a1.75 1.75 0 0 1-1.186.464h-1.11c-.69 0-1.25.56-1.25 1.25v3c0 .69.56 1.25 1.25 1.25h1.11c.44 0 .863.166 1.186.464l2.857 2.637c.8.739 2.097.17 2.097-.92V5.069zm6.88-.421l.197.289a9.194 9.194 0 0 1-.198 10.423l-.434.61-1.222-.87.435-.61.166-.244a7.683 7.683 0 0 0 1.276-4.242 7.684 7.684 0 0 0-1.276-4.243l-.166-.242-.435-.612 1.222-.87.434.61zm-2.907 2.14l.119.174a5.515 5.515 0 0 1-.12 6.257l-.434.611-1.221-.871.435-.61.17-.258a4.01 4.01 0 0 0 0-4.175l-.17-.257-.435-.611 1.221-.87.435.61z",fill:"#fff"})}))),oG=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M8.585 3.047C10.346 1.42 13.2 2.67 13.2 5.068v9.864c0 2.397-2.853 3.647-4.615 2.021l-2.856-2.637a.25.25 0 0 0-.17-.066H4.45A2.75 2.75 0 0 1 1.7 11.5v-3a2.75 2.75 0 0 1 2.75-2.75h1.11a.25.25 0 0 0 .169-.066l2.856-2.637zM11.7 5.068c0-1.09-1.297-1.657-2.097-.919L6.746 6.786a1.75 1.75 0 0 1-1.186.464H4.45c-.69 0-1.25.56-1.25 1.25v3c0 .69.56 1.25 1.25 1.25h1.11c.44 0 .863.166 1.186.464l2.857 2.637c.8.739 2.097.17 2.097-.92V5.069zm4.569 1.48c1.101.763 1.835 2.02 1.835 3.453 0 1.432-.734 2.69-1.835 3.452l-.657.454-.909-1.313.656-.454c.704-.487 1.147-1.269 1.147-2.139 0-.87-.443-1.652-1.147-2.139l-.656-.454.91-1.313.656.454z",fill:"#fff"})}))),oq=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M6.09 7.25h-.34c-.69 0-1.25.56-1.25 1.25v3c0 .69.56 1.25 1.25 1.25h1.11c.44 0 .863.166 1.186.464l2.856 2.637c.801.739 2.098.17 2.098-.92v-.77l1.425 1.424c-.46 1.956-2.947 2.839-4.54 1.368l-2.857-2.637a.25.25 0 0 0-.169-.066H5.75A2.75 2.75 0 0 1 3 11.5v-3c0-1.174.736-2.174 1.771-2.568L6.09 7.25zm3.795-4.203C11.646 1.42 14.5 2.67 14.5 5.068v6.372l3.06 3.06-1.06 1.06L4.94 4 6 2.94l1.92 1.92 1.965-1.813zM13 5.068c0-1.09-1.297-1.657-2.098-.919l-1.92 1.772L13 9.939V5.07z",fill:"#fff"})}))),oY=e=>{let{player:l,size:o,awemeInfo:i,enterMethod:t}=e,[d,r]=(0,a.useState)(null==l?void 0:l.volume),[s,c]=(0,a.useState)(null==l?void 0:l.muted),[v,f]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(l){let e=()=>{r(l.volume),c(l.muted)};return l.on(W.Events.VOLUME_CHANGE,e),()=>{l.off(W.Events.VOLUME_CHANGE,e)}}},[l]),(0,a.useEffect)(()=>{if(l){let e=e=>{((null==e?void 0:e.action)==="change_muted"||(null==e?void 0:e.action)==="change_volume")&&setTimeout(()=>{r(l.volume),c(l.muted)})};return l.on(W.Events.USER_ACTION,e),()=>{l.off(W.Events.USER_ACTION,e)}}},[l]);let m=(0,a.useRef)(),h=(0,a.useRef)(!1),p=(0,a.useCallback)(()=>{var e,l,o,i;h.current=!1,null===(l=window.documentPictureInPicture)||void 0===l||null===(e=l.window)||void 0===e||e.removeEventListener("mousemove",_),null===(i=window.documentPictureInPicture)||void 0===i||null===(o=i.window)||void 0===o||o.removeEventListener("mouseup",g)},[]),_=(0,a.useCallback)(e=>{if(!!h.current)try{let o=m.current.getBoundingClientRect(),i=e.clientX-o.left,t=(i=Math.max(0,Math.min(o.width,i)))/o.width;l.volume=Number(t.toFixed(3)),l.volume>0&&(l.muted=!1),l.emit(W.Events.USER_ACTION,{action:"change_volume",props:{muted:l.muted,volume:l.volume}})}catch(e){p()}},[p,l]),g=(0,a.useCallback)(()=>{h.current&&p()},[p]);(0,a.useEffect)(()=>()=>{h.current&&p()},[p]);let w=(0,a.useCallback)(e=>{if(h.current)return;let o=m.current.getBoundingClientRect(),i=e.clientX-o.left,t=(i=Math.max(0,Math.min(o.width,i)))/o.width;l.volume=Number(t.toFixed(3)),l.volume>0&&(l.muted=!1),l.emit(W.Events.USER_ACTION,{action:"change_volume",props:{muted:l.muted,volume:l.volume}})},[l]),x=(0,a.useCallback)(e=>{var l,o;e.stopPropagation(),e.preventDefault(),h.current=!0,null===(l=window.documentPictureInPicture)||void 0===l||l.window.addEventListener("mousemove",_),null===(o=window.documentPictureInPicture)||void 0===o||o.window.addEventListener("mouseup",g)},[_,g]),y=o.height>490;return(0,n.jsxs)("div",{className:u()(oj.default.volumeContainer,{[oj.default.bgSize]:y}),onMouseEnter:()=>{f(!0)},onMouseLeave:()=>{f(!1)},children:[(s||0===d)&&(0,n.jsx)(eF.Z,{width:y?32:20,height:y?32:20,viewBox:"0 0 20 20",src:oq,className:u()(oj.default.noramlIcon),onClick:()=>{l.muted=!1,l.volume<.01&&(l.volume=.2)}}),!s&&d>=.5&&(0,n.jsx)(eF.Z,{width:y?32:20,height:y?32:20,src:oK,viewBox:"0 0 20 20",className:u()(oj.default.noramlIcon),onClick:()=>{l.muted=!0}}),!s&&d<.5&&d>0&&(0,n.jsx)(eF.Z,{width:y?32:20,height:y?32:20,src:oG,viewBox:"0 0 20 20",className:u()(oj.default.noramlIcon),onClick:()=>{l.muted=!0}}),(0,n.jsx)("div",{className:u()(oj.default.space,{[oj.default.show]:v})}),(0,n.jsxs)("div",{className:u()(oj.default.volumeSlider,{[oj.default.show]:v}),children:[(0,n.jsxs)("div",{className:oj.default.volumeProgress,onClick:w,ref:m,children:[(0,n.jsx)("div",{className:oj.default.volumeInner,style:{width:s?0:`${100*d}%`}}),(0,n.jsx)("div",{className:oj.default.dot,onMouseDown:x,style:{left:s?0:`${100*d}%`}})]}),(0,n.jsx)("div",{className:oj.default.volumeLabel,children:l.muted?0:Math.round(100*Math.max(Math.min(l.volume,1),0))})]})]})};var oQ=o("534133");let oX=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M17.125 12.088c.45 0 .863-.002 1.197.043.356.048.731.16 1.04.47l.108.119c.229.283.32.61.362.92.045.335.043.748.043 1.198 0 .45.002.863-.043 1.197-.042.311-.133.637-.362.921l-.108.12c-.309.308-.684.421-1.04.469-.334.045-.747.043-1.197.043h-1c-.45 0-.863.002-1.197-.043-.311-.042-.638-.134-.921-.362l-.12-.108c-.308-.309-.421-.684-.469-1.04-.045-.334-.043-.747-.043-1.197 0-.45-.002-.863.043-1.197.048-.356.16-.731.47-1.04l.119-.108c.284-.229.61-.32.92-.362.335-.045.748-.043 1.198-.043h1zM9.371 2.75c1.625 0 2.91 0 3.925.12 1.03.121 1.88.376 2.589.958l.176.152c.173.157.334.326.482.506l.105.135c.508.681.74 1.488.854 2.454.09.76.11 1.67.116 2.763h-1.5c-.005-1.075-.025-1.908-.105-2.587-.092-.778-.255-1.278-.513-1.657l-.116-.156a3.257 3.257 0 0 0-.33-.346l-.121-.105c-.398-.326-.924-.524-1.813-.629-.906-.107-2.087-.108-3.749-.108h-1c-1.18 0-2.019 0-2.674.057-.564.048-.94.133-1.236.266l-.122.06a3.25 3.25 0 0 0-1.213 1.128l-.121.207c-.168.314-.272.713-.327 1.358C2.622 7.981 2.62 8.82 2.62 10s.001 2.019.057 2.674c.055.645.159 1.044.327 1.358l.121.207c.3.473.717.862 1.213 1.127l.122.06c.296.134.672.22 1.236.267.655.056 1.494.057 2.674.057h2.76c.008.374.025.635.071.868.043.218.105.429.182.632H8.37c-1.154 0-2.067 0-2.8-.061-.65-.056-1.211-.164-1.722-.394l-.217-.106a4.75 4.75 0 0 1-1.773-1.646l-.177-.304c-.304-.569-.436-1.196-.5-1.938-.062-.733-.06-1.647-.06-2.801 0-1.154-.002-2.068.06-2.8.064-.743.196-1.37.5-1.94l.177-.303a4.75 4.75 0 0 1 1.773-1.646l.217-.106c.51-.23 1.072-.338 1.721-.393.734-.063 1.647-.062 2.801-.062h1zm6.754 10.838c-.492 0-.786.002-.997.03a.708.708 0 0 0-.178.042l-.002.001v.002a.713.713 0 0 0-.042.178c-.029.21-.031.505-.031.997s.002.786.03.997a.713.713 0 0 0 .042.178l.001.002h.002a.713.713 0 0 0 .178.042c.21.029.505.03.997.03h1c.492 0 .786-.001.997-.03a.713.713 0 0 0 .178-.041l.002-.001v-.002a.713.713 0 0 0 .042-.178c.029-.21.031-.505.031-.997s-.002-.786-.03-.997a.713.713 0 0 0-.042-.178l-.001-.002H18.3a.708.708 0 0 0-.178-.042c-.21-.03-.505-.031-.997-.031h-1zm-5.926-5.76H7.95l-.188.002 3.122 3.123-1.06 1.06L6.7 8.894l-.002.185v2.25H5.2v-2.25c0-.45-.002-.863.043-1.197.042-.311.134-.637.362-.921l.108-.12c.309-.308.684-.421 1.04-.469.334-.045.747-.043 1.197-.043h2.25v1.5z",fill:"#fff"})}))),o$=(0,a.forwardRef)((e,l)=>(0,n.jsx)("svg",(0,t._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,n.jsx)("path",{d:"M15.583 14.168c.431.432.465 1.098.074 1.489-.39.39-1.057.357-1.489-.075L10 11.414l-4.168 4.168c-.432.432-1.098.465-1.489.075-.39-.39-.357-1.057.075-1.489L8.586 10 4.418 5.832c-.432-.432-.465-1.098-.075-1.489.39-.39 1.057-.357 1.489.075L10 8.586l4.168-4.168c.432-.432 1.099-.465 1.49-.075.39.39.356 1.057-.075 1.489L11.414 10l4.169 4.168z",fill:"#fff"})}))),oJ=e=>{var l;let{player:o,size:i,isInnerFeed:t,parentWin:d,enterMethod:r,awemeInfo:s}=e,[c,v]=(0,a.useState)(!(0,_.DT)()),[f,m]=(0,a.useState)(!1),p=(0,oC.Z)(()=>{v((0,oQ.nz)())});(0,oN.Z)("resize",()=>p(),{target:null===(l=window.documentPictureInPicture)||void 0===l?void 0:l.window}),(0,oE.Z)(()=>p(),50);let g=i.height>490;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:oj.default.left,children:[(0,n.jsx)(oY,{player:o,size:i,awemeInfo:s}),(0,n.jsx)(oD,{player:o,isInnerFeed:t,size:i,awemeInfo:s}),(0,n.jsx)(oO,{player:o,size:i,awemeInfo:s})]}),(0,n.jsxs)("div",{className:oj.default.right,children:[(0,n.jsxs)("div",{className:u()(oj.default.backContaienr,{[oj.default.bigSize]:g}),onMouseEnter:()=>{m(!0)},onMouseLeave:()=>{m(!1)},children:[(0,n.jsx)(eF.Z,{width:g?32:20,height:g?32:20,viewBox:"0 0 20 20",src:oX,className:u()(oj.default.noramlIcon),style:c?{marginRight:0}:{},onClick:()=>{R.Le.setConfig(R.gI.ListenVideoExit,{method:"return_fullscreen"}),h.emit(h.EVENT.PipBackToTab,{from:"listenvideo"}),oo.T.exit(),null==d||d.focus(),(0,_.DT)()&&oc.invoke("pipParentWinShow")}}),!!f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eF.Z,{width:10,height:6,src:oA,viewBox:"0 0 10 6",className:oj.default.tipArrow}),(0,n.jsx)("div",{className:oj.default.tip,children:"返回大窗观看"})]})]}),!c&&(0,n.jsx)(eF.Z,{width:g?32:20,height:g?32:20,viewBox:"0 0 20 20",src:o$,className:u()(oj.default.noramlIcon),style:{marginRight:0},onClick:()=>{R.Le.setConfig(R.gI.ListenVideoExit,{method:"close"}),oo.T.exit()}})]})]})};var o0=o("81683");let o1=e=>{var l,o,i,t,d;let{player:r,awemeInfo:s,className:c,disablePrev:v,disableNext:f,isInnerFeed:m,parentWin:p,enterMethod:_}=e,[g,w]=(0,a.useState)({width:0,height:0});(0,a.useEffect)(()=>{let e=oz.e.getPipWindow({scene:oi.d.ListenVideo})||window.documentPictureInPicture.window,l=()=>{e&&w({width:e.innerWidth,height:e.innerHeight})},o=os()(l,200,{leading:!0,trailing:!0});if(l(),e)return e.addEventListener("resize",o),()=>{e.removeEventListener("resize",o)}},[]),(0,a.useEffect)(()=>{if(r){var e,l;null==r||null===(e=r.setUserActive)||void 0===e||e.call(r,!0),null==r||null===(l=r.play)||void 0===l||l.call(r)}},[]);let x=g.height>490,y=g.height>411&&g.height<=490;return(0,n.jsxs)("div",{className:u()(ov.default.container,c),children:[(0,n.jsx)("div",{className:u()(ov.default.header,{[ov.default.bigSize]:x}),children:(0,n.jsx)(oJ,{awemeInfo:s,player:r,isInnerFeed:m,parentWin:p,size:g,enterMethod:_})}),(0,n.jsxs)("div",{className:u()(ov.default.playerInfo,{[ov.default.midSize]:y,[ov.default.bigSize]:x}),children:[(0,n.jsx)(eV.Q,{src:(null==s?void 0:null===(l=s.video)||void 0===l?void 0:l.originCover)||(null==s?void 0:null===(t=s.varietyVideo)||void 0===t?void 0:null===(i=t.cover)||void 0===i?void 0:null===(o=i.url_list)||void 0===o?void 0:o[0]),alt:s.desc,skeletonClass:ov.default.defaultImg,className:ov.default.cover,iconWidth:22,iconHeight:36,onClick:()=>{h.emit(h.EVENT.PipBackToTab,{from:"listenvideo"}),oo.T.exit(),null==p||p.focus(),isInClient()&&oc.invoke("pipParentWinShow")}}),(0,n.jsxs)("div",{className:ov.default.desc,children:[(0,n.jsx)("p",{className:ov.default.title,children:s.desc}),(0,n.jsx)(o0.Z,{text:`@${null==s?void 0:null===(d=s.authorInfo)||void 0===d?void 0:d.nickname}`,className:u()(ov.default.nickname)})]})]}),(0,n.jsx)("div",{className:u()(ov.default.playerProgress,{[ov.default.bigSize]:x}),children:(0,n.jsx)(o_,{awemeInfo:s,player:r,size:g})}),(0,n.jsx)("div",{className:u()(ov.default.control,{[ov.default.bigSize]:x}),children:(0,n.jsx)(oS,{awemeInfo:s,player:r,disablePrev:v,disableNext:f,size:g})})]})};var o2=o("36897");let o5=e=>{let{isInnerFeed:l=!1,isFirst:o,isAuthorCardShow:i=!1,isLast:t,isShowRelatedCard:n=!1,nextAwemeInfo:a,listenFeedPrevAwemeInfo:d,listenFeedNextAwemeInfo:r,canUseListenFeed:u,prevAwemeInfo:s,isListenVideoMiniWin:c}=e,v=!l&&u;return{disableNext:v&&c?!r:t&&!(i||n)||(i||n)&&!a,disablePrev:v&&c?!d:o&&!(i||n)||(i||n)&&!s}},o3=e=>{let{onClick:l,player:o,awemeInfo:i,ableMiniType:t=!0,reportExtraParams:r={},isInnerFeed:s,isActive:c,playNextFunc:v,playPrevFunc:f,disableNext:m,disablePrev:p,hideModalWhenPip:_,setHideModalByPip:g,modalClose:w,isFirst:x,isAuthorCardShow:k,isLast:I,isShowRelatedCard:b,nextAwemeInfo:S,listenFeedPrevAwemeInfo:C,listenFeedNextAwemeInfo:N,canUseListenFeed:E,prevAwemeInfo:j}=e,{changeIsListenVideoMiniWin:T,isListenVideoMiniWin:L}=(0,y.Iq)(e=>{let{changeIsListenVideoMiniWin:l,isListenVideoMiniWin:o}=e;return{changeIsListenVideoMiniWin:l,isListenVideoMiniWin:o}}),{listenVideoContainer:M}=(0,y.Iq)(e=>{let{listenVideoContainer:l}=e;return{listenVideoContainer:l}}),A=(0,a.useRef)(null),{awemeFeed:P}=(0,o2.j)(),V=(0,a.useRef)(!1),z=(0,a.useRef)(!1),D=(0,a.useRef)(!1);(0,a.useEffect)(()=>{var e;let l=h.listen(h.EVENT.PipBackToTab,e=>{let{from:l}=e;"listenvideo"===l&&(V.current=!0)}),i=h.listen(h.EVENT.changeMinWinListen,e=>{let{isMiniWin:l}=e;if(_){if(l)null==g||g(!0);else{if((null==o?void 0:o.fullscreen)||z.current){z.current=!1;return}if(V.current){null==g||g(!1);return}null==g||g(!1),P.dispatch("modalAwemeInfo",null),null==w||w()}}}),t=()=>{if(null==o?void 0:o.fullscreen)return;let e=oz.e.getPipWindow({scene:oi.d.ListenVideo});e&&e.close(),null==g||g(!1),z.current=!0};return null==o||null===(e=o.on)||void 0===e||e.call(o,W.Events.FULLSCREEN_REQUEST,t),()=>{var e;i(),l(),null==o||null===(e=o.off)||void 0===e||e.call(o,W.Events.FULLSCREEN_REQUEST,t)}},[P,_,o,g,w]),(0,a.useEffect)(()=>{!c&&clearTimeout(A.current)},[c]),(0,ot.o)(()=>{let e=h.listen(h.EVENT.ListenVideoPipWindowStatusSync,e=>{if(!D.current){if(c){let{from:l,to:o,type:i}=e;"pip"===l&&"main"===o&&("playNext"===i&&v({from:"click_button"}),"playPrev"===i&&f({from:"click_button"}))}}});return()=>{e()}},[v,f,c]);let{disableNext:B,disablePrev:F}=o5({isInnerFeed:s,isFirst:x,isAuthorCardShow:k,isLast:I,isShowRelatedCard:b,nextAwemeInfo:S,listenFeedPrevAwemeInfo:C,listenFeedNextAwemeInfo:N,canUseListenFeed:E,prevAwemeInfo:j,isListenVideoMiniWin:L}),U=(0,on.d)(m),Z=(0,on.d)(p),H=(0,a.useCallback)(async()=>{var e,l,t,a;!M&&(M=document.createElement("div")),D.current=!0,d.render((0,n.jsx)(o1,{player:o,awemeInfo:i,isInnerFeed:s,isActive:c,disableNext:null!==(e=U.current)&&void 0!==e?e:B,disablePrev:null!==(l=Z.current)&&void 0!==l?l:F,parentWin:window,enterMethod:"interaction_ting"}),M);let r=oz.e.getPipWindow({scene:oi.d.ListenVideo});if(r){let e=oo.T.detachEl();e&&d.unmountComponentAtNode(e),(null==r?void 0:null===(a=r.document)||void 0===a?void 0:null===(t=a.body)||void 0===t?void 0:t.firstChild)&&r.document.body.removeChild(r.document.body.firstChild),oo.T.attachPlayer(o,{window:r,element:M,onEnter:()=>{D.current=!1,eR.logInstance.sendLog("enterTingDouyin",{enter_from:(0,eN.yW)(),enter_method:"interaction_ting",group_id:null==i?void 0:i.awemeId})},onLeave:()=>{var e;D.current=!1,eR.logInstance.sendLog("exitTingDouyin",{enter_from:(0,eN.yW)(),group_id:i.awemeId,enter_method:"interaction_ting",exit_method:(null===(e=R.Le.getConfig(R.gI.ListenVideoExit))||void 0===e?void 0:e.method)||"other"}),oz.e.unRegister({scene:oi.d.ListenVideo}),T(!1),h.emit(h.EVENT.changeMinWinListen,{isMiniWin:!1,pipWindow:null}),clearTimeout(A.current),A.current=setTimeout(()=>{o.config.autoplay=!0,o.autoplay=!0,o.play()},200)}}),oz.e.register({scene:oi.d.ListenVideo,pipWindow:r}),T(!0),h.emit(h.EVENT.changeMinWinListen,{isMiniWin:!0,pipWindow:r}),D.current=!1}else{let e=await oo.T.requestWindow({config:{disallowReturnToOpener:!0,width:320,height:180,docPiPNode:M,docPiPStyle:`
|
|
*::-webkit-scrollbar {
|
|
display: none !important;
|
|
}
|
|
|
|
body {
|
|
overflow-x: hidden;
|
|
padding:0;
|
|
margin:0;
|
|
min-width:320px;
|
|
}
|
|
`,alwaysKeepDocumentWindow:!0},onEnter:()=>{D.current=!1,eR.logInstance.sendLog("enterTingDouyin",{enter_from:(0,eN.yW)(),enter_method:"interaction_ting",group_id:null==i?void 0:i.awemeId})},onLeave:()=>{var e;D.current=!1,eR.logInstance.sendLog("exitTingDouyin",{enter_from:(0,eN.yW)(),group_id:i.awemeId,enter_method:"interaction_ting",exit_method:(null===(e=R.Le.getConfig(R.gI.ListenVideoExit))||void 0===e?void 0:e.method)||"other"}),oz.e.unRegister({scene:oi.d.ListenVideo}),T(!1),h.emit(h.EVENT.changeMinWinListen,{isMiniWin:!1,pipWindow:null}),clearTimeout(A.current),A.current=setTimeout(()=>{o.config.autoplay=!0,o.autoplay=!0,o.play()},200)},player:o});T(!0),oz.e.register({scene:oi.d.ListenVideo,pipWindow:e}),h.emit(h.EVENT.changeMinWinListen,{isMiniWin:!0,pipWindow:e})}},[o,s,T,v,f,c,F,B,i,M]),O=(0,on.d)(o),K=(0,on.d)(L),G=(0,on.d)(H);(0,ot.o)(()=>{let e=eJ.s.getPlayersByScene(J.lT.Modal)||[];if(o&&c&&(0===e.length||e.length>0&&eJ.s.getPlayerScene(o.playerId)===J.lT.Modal)){let e=oz.e.getPipWindow({scene:oi.d.ListenVideo});K.current&&e&&G.current()}},[c,i,o]),(0,ot.o)(()=>{let e=oz.e.getPipWindow({scene:oi.d.ListenVideo});if(e&&c&&L){let l=l=>{let o=[od.bf.ArrowUp.keyCode,od.bf.ArrowDown.keyCode,od.bf.T.keyCode,od.bf.Equal.keyCode,od.bf.Minus.keyCode];!s&&o.push(od.bf.K.keyCode),o.includes(null==l?void 0:l.keyCode)&&e.opener.postMessage({type:"KEY_DOWN",data:{code:null==l?void 0:l.code,keyCode:null==l?void 0:l.keyCode,metaKey:null==l?void 0:l.metaKey,ctrlKey:null==l?void 0:l.ctrlKey,shiftKey:null==l?void 0:l.shiftKey}},"*")};return e.addEventListener("keydown",l),()=>{e.removeEventListener("keydown",l)}}},[c,L,s]),(0,ot.o)(()=>{if(o&&c){let e=async()=>{if(L){let e=oz.e.getPipWindow({scene:oi.d.ListenVideo});e&&e.close(),h.emit(h.EVENT.ListenVideoPipWindowClose)}else H()};return null==o||o.on("onListenVideo",e),()=>{null==o||o.off("onListenVideo",e)}}},[o,i,r,H,c,L]),(0,a.useEffect)(()=>{if(o){let e=()=>{c?o.setUserActive(!0):!o.isUserActive&&o.pause()};return o.on("play",e),()=>{o.off("play",e)}}},[o,i,c]),(0,ot.o)(()=>{let e=eJ.s.getPlayersByScene(J.lT.Modal)||[];!L&&O.current&&c&&(0===e.length||e.length>0&&eJ.s.getPlayerScene(O.current.playerId)===J.lT.Modal)&&setTimeout(()=>{var e,l;null===(l=O.current)||void 0===l||null===(e=l.setUserActive)||void 0===e||e.call(l,!0)},10)},[L,c]);let q=(0,ek.x)(()=>{eR.logInstance.sendLog("tingDouyinShow",{enter_from:(0,eN.yW)(),enter_method:"interaction_ting",group_id:null==i?void 0:i.awemeId})});return(0,n.jsxs)("div",{ref:q,className:u()(or.default.listenVideo,{[or.default.ableMiniType]:t}),onClick:e=>{H(),eR.logInstance.sendLog("tingDouyinClick",{enter_from:(0,eN.yW)(),enter_method:"interaction_ting",group_id:null==i?void 0:i.awemeId}),null==l||l({e,clickMethod:"icon"})},onMouseEnter:()=>{},onMouseLeave:()=>{},children:[(0,n.jsx)(e0.z,{svg:(0,n.jsx)(oa.Z,{className:u()(or.default.icon,or.default.shakeIcon)})}),(0,n.jsx)("div",{className:or.default.desc,children:eE.a.t("listen_video",{},"听抖音")})]})},o4=()=>(0,n.jsxs)("div",{className:u()(I.default.shortcutTip),children:["听抖音",!!(null==v?void 0:v.SHORTCUT_KEY.listenVideo.badgeText)&&(0,n.jsx)("span",{className:or.default.tipKey,children:null==v?void 0:v.SHORTCUT_KEY.listenVideo.badgeText})]}),o7=e=>{let{isInnerFeed:l,isHoverShow:o,player:i,ableMiniType:t,reportExtraParams:d={},awemeInfo:r,playNextFunc:c,playPrevFunc:v,isActive:f,disablePrev:m,disableNext:h,hideModalWhenPip:p,setHideModalByPip:_,modalClose:g,isFirst:w,isAuthorCardShow:x,isLast:y,isShowRelatedCard:k,nextAwemeInfo:b,listenFeedPrevAwemeInfo:S,listenFeedNextAwemeInfo:C,canUseListenFeed:N,prevAwemeInfo:E}=e,j=(0,a.useRef)(null);return(0,n.jsx)(s.Tooltip,{position:"left",className:u()(I.default.shortcutTipWrap),style:o?{}:{display:"none"},content:o4(),getPopupContainer:()=>j.current||document.body,children:(0,n.jsx)("div",{ref:j,style:{position:"relative",color:"#fff"},children:(0,n.jsx)(o3,{player:i,ableMiniType:t,reportExtraParams:d,awemeInfo:r,isInnerFeed:l,playNextFunc:c,playPrevFunc:v,isActive:f,disablePrev:m,disableNext:h,hideModalWhenPip:p,setHideModalByPip:_,modalClose:g,isFirst:w,isAuthorCardShow:x,isLast:y,isShowRelatedCard:k,nextAwemeInfo:b,listenFeedPrevAwemeInfo:S,listenFeedNextAwemeInfo:C,canUseListenFeed:N,prevAwemeInfo:E})})})};var o6=o("178834"),o8=o("499117");let o9=(0,ol.X)(e=>{var l,o,r,C,D,W,U,Z,H,O,K;let{toggleComment:G,awemeInfo:q,loginUserInfo:Y,loginDispatch:X,deleteCurrentSwiper:$,fullScreenTarget:J,onAvatarClick:ee,onRelatedClick:el,onAiCardClick:eo,abtestData:ei,videoToast:et,videoReportModalContainer:en,moreBoxShowList:ea,onDouPlusClick:ed,reportExtraParams:er={},recordPreferVideoSwitch:eu,shortcutKeyDisable:es,canShowAvatarFollowBtn:ec=!0,canShowAvatarImBtn:ev=!1,canShowAvatarAdBtn:ef=!1,canShowAvatar:em=!0,canShowCollection:eh=!0,canShowAvatarTip:ep=!0,canShowChatEntry:e_=!0,className:eg,actionFollow:ew,actionUnFollow:ey,showMusicDetail:ek,avatarTipText:eI,from:eb,isActive:eS,onDislike:eC,toast:eN,isInnerFeed:eE=!1,hideMore:ej=!1,disableClick:eT=!1,disableHoverShow:eL=!1,videoTags:eM,isSearchPlayer:eR,scene:eA,onFollowBtnClick:eP,onShareToFriend:eV,isDetail:ez,recommendTriggered:eD,showRecommendToFriend:eB,playNextFunc:eF,playPrevFunc:eW,listenVideoDisablePrev:eU,listenVideoDisableNext:eZ,canShowListenVideo:eH=!1,hideModalWhenPip:eG,setHideModalByPip:eq,modalClose:eY,isFirst:eQ,isLast:eX,isAuthorCardShow:eJ,isShowRelatedCard:e0,nextAwemeInfo:e2,listenFeedPrevAwemeInfo:e5,listenFeedNextAwemeInfo:e3,canUseListenFeed:e4,prevAwemeInfo:e7,hideAiSearchEntry:e6,isShowAiCard:e8}=e,{isLogin:e9}=Y,{isiPad:le,isMobile:ll}=(0,c.X)(),[li,ln]=(0,a.useState)(""),[la,ld]=(0,a.useState)(0),lr=(0,a.useRef)(!1),lu=(0,a.useRef)(null),ls=(0,a.useRef)(""),lc=(0,a.useRef)(!1),lv=(0,a.useRef)(!1),lf=(0,a.useRef)(null),lm=(0,a.useRef)(null),lp=(0,a.useRef)(null),l_=(0,a.useRef)(null),lg=(0,a.useRef)(null),lw=(0,e$.n)();(0,a.useRef)(lw).current=lw;let[lx,ly]=(0,a.useState)(!0),lk=F(q);(0,a.useMemo)(()=>!Y.isLogin&&lx,[ei,Y,lx]);let{inImmersive:lI}=(0,l9.O)({player:lw,isActive:!0}),{globalCommentCount:lb}=(0,a.useContext)(x.v)||{},{followStatus:lS,text:lC}=(0,eK.r)({selfUid:null==Y?void 0:null===(l=Y.info)||void 0===l?void 0:l.uid,actionUid:null==q?void 0:null===(o=q.authorInfo)||void 0===o?void 0:o.uid,defaultFollowerStatus:null==q?void 0:null===(r=q.authorInfo)||void 0===r?void 0:r.followerStatus,defaultFollowStatus:null==q?void 0:null===(C=q.authorInfo)||void 0===C?void 0:C.followStatus}),lN=(0,a.useMemo)(()=>["related"],[]),lE=v.getShortcut({disable:es,exclude:lN});!function(e){let{player:l,awemeInfo:o,inImmersive:t,fullScreenTarget:n,videoToast:d,reportExtraParams:r}=e,{isWebMiniWin:u}=(0,y.Iq)(e=>{let{isWebMiniWin:l}=e;return{isWebMiniWin:l}}),s=(0,a.useRef)(o),c=(0,a.useRef)("");(0,a.useEffect)(()=>{var e;c.current="",(null===(e=s.current)||void 0===e?void 0:e.awemeId)!==(null==o?void 0:o.awemeId)&&(null==o?void 0:o.awemeId)&&(s.current=o)},[o]);let v=(0,a.useCallback)(e=>{"hidden"===document.visibilityState&&u&&(null==l?void 0:l.root)?z.F.info(e,l.root):d(e)},[d,u,l]),f=(0,a.useCallback)(async()=>{let{shareLinkDesc:e,shareUrl:l}=(null==o?void 0:o.shareInfo)||{},i=l&&`${l}&from=web_code_link`,t=await (0,V.Rc)(i);c.current=e&&e.replace("%s",t)},[null==o?void 0:o.shareInfo]),m=(0,a.useCallback)(N()(async e=>{var l,a,d,u,s,m;if((null==o?void 0:null===(l=o.status)||void 0===l?void 0:l.allowShare)===!1){v("该视频已被限制分享");return}!c.current&&await f(),(0,j.J)(c.current,{target:(0,T.r)()&&n?n:null}),B.sendLog("shareVideo",(0,i._)({urlParamList:["previous_page"],author_id:null==o?void 0:null===(a=o.authorInfo)||void 0===a?void 0:a.uid,group_id:null==o?void 0:o.awemeId,enter_from:(0,L.mo)(),log_pb:null==o?void 0:o.logPb,type:"copy_link",is_full_screen:(0,T.r)()?"1":"0",click_method:null!==(s=null==e?void 0:e.clickMethod)&&void 0!==s?s:"hot_key",tab_name:(0,P.zD)()||(0,M.Rs)("tab_name")||"",from_follow_list:(null===(d=R.Le.getConfig(R.gI.FromFollowList))||void 0===d?void 0:d.tag)?"1":"0",aweme_type:`${(null==o?void 0:o.isSlides)?E.e.Slides:null==o?void 0:o.awemeType}`,pic_cnt:null!==(m=null==o?void 0:null===(u=o.images)||void 0===u?void 0:u.length)&&void 0!==m?m:0,is_pure:t?"1":"0",is_from_aweme_search_engine:(0,A.V)()?1:0},r)),v("已复制链接,快去分享给好友")},500),[f,v,t,o,n]);(0,a.useEffect)(()=>(null==l||l.on("showShareCode",m),()=>{null==l||l.off("showShareCode",m)}),[l,m])}({player:lw,inImmersive:lI,awemeInfo:q,fullScreenTarget:J,videoToast:et,reportExtraParams:er}),!function(e){let{player:l}=e,o=(0,a.useCallback)(e=>{let l={isUse:!1,expireTime:Number(Date.now())+2592e5,useHistory:{3:!0}},o=(0,S.$o)(b.LocalStorageKeys.ShortcutKeyTopicInfo);if(e){!o&&(o=l),o.isUse=e,(0,S.qQ)(b.LocalStorageKeys.ShortcutKeyTopicInfo,o);return}if(o){let e=((null==o?void 0:o.expireTime)||0)-Number(Date.now()),l=Math.ceil(e/864e5);if(o.isUse||!(e>0)||o.useHistory[l])return;o.useHistory[l]=!0,(0,S.qQ)(b.LocalStorageKeys.ShortcutKeyTopicInfo,o)}else(0,S.qQ)(b.LocalStorageKeys.ShortcutKeyTopicInfo,l)},[]);(0,a.useEffect)(()=>(null==l||l.on("shortcutTopic",o),()=>{null==l||l.off("shortcutTopic",o)}),[l,o])}({player:lw});let{aiEntryVisible:lj}=(0,k.$)({isLogin:e9,awemeInfo:q}),lT=Number(null==ei?void 0:ei.aiSummary)>f.AiSummaryType.V0;(0,a.useEffect)(()=>{var e,l;if((null==lu?void 0:null===(e=lu.current)||void 0===e?void 0:e.parentElement)&&!m.H.baseOpt(ei)){let e=()=>{var e,l,o;let i=null==lu?void 0:null===(o=lu.current)||void 0===o?void 0:null===(l=o.parentElement)||void 0===l?void 0:null===(e=l.getBoundingClientRect())||void 0===e?void 0:e.width;h.emit(h.EVENT.InteractionWidthChange,{width:i,awemeId:null==q?void 0:q.awemeId})};e();let o=(null==lw?void 0:lw.root)||(null==lu?void 0:null===(l=lu.current)||void 0===l?void 0:l.parentElement),i=p.Z.bind(o,e);return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),null==i||i()}}},[q,lw]);let{isMainland:lL}=(0,y.Iq)(e=>{let{isMainland:l}=e;return{isMainland:l}}),lM=lL&&!(0,_.xo)(),{imIsAddEntry:lR,imIsReplaceTab:lA,imIsSlidePopup:lP}=ei||{},[,lV]=(0,a.useState)(0),lz=(0,a.useCallback)(()=>{lV(e=>e+1)},[]);return(0,n.jsxs)("div",{className:u()(I.default.videoInteractionWrapper,eg,{[I.default.qq]:(0,g.GP)(),[I.default.disableFilter]:!1}),ref:lu,children:[e_&&(null==lw?void 0:lw.root)&&(lR||lA||lP)?(0,d.createPortal)((0,n.jsx)(o8.ChatWhilePlayEntry,{awemeInfo:q,loginUserInfo:Y}),lw.root):null,ez||e6||!lj?null:(0,n.jsx)(s.Tooltip,{position:"left",className:u()(I.default.shortcutTipWrap,I.default.askAiTip),style:ll||le||!lx||eL?{display:"none"}:{},content:(0,n.jsx)("div",{className:I.default.shortcutTip,children:"AI抖音"}),getPopupContainer:()=>lg.current||document.body,children:(0,n.jsx)("div",{ref:lg,style:{position:"relative"},children:(0,n.jsx)(o6.H,{awemeInfo:q,isShowAiCard:e8,onAiRelatedClick:lT?()=>{null==eo||eo(null,{clickMethod:"click_button"})}:void 0})})}),(0,n.jsxs)("div",{className:u()(I.default.container,{[I.default.dropShadowFilter]:!m.H.baseOpt(ei)||eS}),children:[em?(0,n.jsx)(ex,{disableHoverShow:eL,isHoverShow:lx,canShowAvatarTip:ep,canShowAvatarImBtn:ev,canShowAvatarFollowBtn:ec,canShowAvatarAdBtn:ef,canShowAvatar:em,awemeInfo:q,logInfo:lk,loginUserInfo:Y,isLogin:e9,loginDispatch:X,followStatus:lS,player:lw,fullScreenTarget:J,isFollowClickedRef:lr,onAvatarClick:ee,shortcut:lE,reportExtraParams:er,actionFollow:ew,actionUnFollow:ey,onFollowBtnClick:eP,loginPanelTarget:lf.current,toast:eN,abtestData:ei,avatarTipText:eI,from:eb,scene:eA,isActive:eS,text:lC,onAvatarRef:e=>{l_.current=e},renderCallback:lz}):null,(0,n.jsx)(s.Tooltip,{position:"left",className:I.default.shortcutTipWrap,style:ll||le||!lx||eL?{display:"none"}:{},clickTriggerToHide:!0,content:(0,n.jsxs)("div",{className:I.default.shortcutTip,children:[la?"取消点赞":"点赞",(null===(D=lE.like)||void 0===D?void 0:D.badgeText)&&(0,n.jsx)("span",{className:I.default.tipKey,children:null===(W=lE.like)||void 0===W?void 0:W.badgeText})]}),getPopupContainer:()=>lm.current||document.body,children:(0,n.jsx)("div",{ref:lm,style:{position:"relative"},children:(0,n.jsx)(lt,{loginPanelTarget:lf.current,toast:et,awemeInfo:q,isLogin:e9,loginUserInfo:Y,loginDispatch:X,fullScreenTarget:J,reportExtraParams:(0,t._)((0,i._)({},er),{relation:null!==(H=null==er?void 0:er.relation)&&void 0!==H?H:String(lS)}),ableMiniType:!0,onLottieComplete:()=>"digg"===ls.current,onDiggSuccessCb:e=>{if((null==e?void 0:e.action)!=="digg")return},recordPreferVideoSwitch:eu,disableClick:eT,refIsDigged:lc,setIsDigged:ld,abtestData:ei})})}),(0,n.jsx)(s.Tooltip,{position:"left",className:I.default.shortcutTipWrap,style:ll||le||!lx||eL?{display:"none"}:{},content:(0,n.jsxs)("div",{className:I.default.shortcutTip,children:["评论",(null===(U=lE.comment)||void 0===U?void 0:U.badgeText)&&(0,n.jsx)("span",{className:I.default.tipKey,children:lE.comment.badgeText})]}),getPopupContainer:()=>lp.current||document.body,children:(0,n.jsx)("div",{ref:lp,style:{position:"relative"},children:(0,n.jsx)(e1,{count:(0,lo.A)({count:Number(lb||(null==q?void 0:null===(Z=q.stats)||void 0===Z?void 0:Z.commentCount)),displayWord:"抢首评"}),type:"comment",toggleComment:G,awemeInfo:q,reportExtraParams:(0,t._)((0,i._)({},er),{relation:null!==(O=null==er?void 0:er.relation)&&void 0!==O?O:String(lS)}),ableMiniType:!0,onLottieComplete:()=>"comment"===ls.current,abtestData:ei,loginDispatch:X})})}),eh?(0,n.jsx)(lh,{loginPanelTarget:lf.current,awemeInfo:q,isLogin:e9,loginUserInfo:Y,loginDispatch:X,fullScreenTarget:J,toast:et,shortcut:lE,disableClick:eT,ableMiniType:!0,reportExtraParams:(0,t._)((0,i._)({},er),{relation:null!==(K=null==er?void 0:er.relation)&&void 0!==K?K:String(lS)}),onLottieComplete:()=>"collection"===ls.current,refIsCollected:lv,abtestData:ei,from:eb,recordPreferVideoSwitch:eu}):null,(0,n.jsx)(Q,{awemeInfo:q,abtestData:ei,shortcut:lE,disableClick:eT,onRelatedClick:el,loginUserInfo:Y,fullScreenTarget:J,loginDispatch:X,reportExtraParams:er,isSearchPlayer:eR,onShareToFriend:eV,player:lw,inImmersive:lI,hasDouPlusEntrance:lM,onDouPlusClick:ed,singleBox:li,setSingleBox:ln,videoToast:et,renderCallback:lz}),el?(0,n.jsx)(eO,{from:eb,isHoverShow:lx,isInnerFeed:eE,awemeInfo:q,shortcut:lE,player:lw,onRelatedClick:el,ableMiniType:!0,reportExtraParams:er,videoTags:eM,abtestData:ei,isShow:!(0,w.P)(q)}):null,eH&&(0,w.P)(q)?(0,n.jsx)(o7,{isHoverShow:lx,isInnerFeed:eE,awemeInfo:q,player:lw,ableMiniType:!0,reportExtraParams:er,playNextFunc:eF,playPrevFunc:eW,isActive:eS,disablePrev:eU,disableNext:eZ,hideModalWhenPip:eG,setHideModalByPip:eq,modalClose:eY,isFirst:eQ,isAuthorCardShow:eJ,isLast:eX,isShowRelatedCard:e0,nextAwemeInfo:e2,listenFeedPrevAwemeInfo:e5,listenFeedNextAwemeInfo:e3,canUseListenFeed:e4,prevAwemeInfo:e7}):null,!ej&&(0,n.jsx)(l8,{loginPanelTarget:lf.current,player:lw,singleBox:li,setSingleBox:ln,awemeInfo:q,loginUserInfo:Y,isLogin:e9,logInfo:lk,loginDispatch:X,deleteCurrentSwiper:$,onDislike:eC,fullScreenTarget:J,isFollowClickedRef:lr,toast:et,videoReportModalContainer:en,ableMiniType:!0,showList:ea,abtestData:ei,actionUnFollow:ey,showMusicDetail:ek,isInnerFeed:eE,recordPreferVideoSwitch:eu,recommendTriggered:eD,showRecommendToFriend:eB,onDouPlusClick:lM?ed:void 0,reportExtraParams:er})]}),(0,n.jsx)("div",{className:"disturb-login-panel",ref:lf})]})}),ie=(0,oe.K)(o9),il=e=>{let l=(0,q.N)();return(0,n.jsx)(G.k,{componentName:"Interaction",Slardar:l,children:(0,n.jsx)(o9,(0,i._)({},e))})},io=e=>{let l=(0,q.N)();return(0,n.jsx)(G.k,{componentName:"InteractionNew",Slardar:l,children:(0,n.jsx)(ie,(0,i._)({},e))})}},692956:function(e,l,o){o.d(l,{Z:function(){return _}}),o("490629");var i=o("320165"),t=o("101199"),n=o("469935"),a=o.n(n),d=o("759894"),r=o("889429"),u=o("462609"),s=o("160786"),c=o("792786"),v=o("624508"),f=new v.h({hover_share_icon:{eventName:"hover_share_icon",params:{enter_from:""}}}),m=o("942645"),h=o("10099"),p=o("316213");function _(e){var l,o;let{ableMiniType:n,disableShare:v=!1,type:_,canAnimation:g,awemeInfo:w,abtestData:x,scene:y,alienatedIcon:k}=e,[I,b]=(0,t.useState)(!1),S=null==x?void 0:x.reduceLottie,C=(0,t.useRef)(null),N=(0,t.useRef)(null),E=(0,t.useCallback)(()=>{S&&b(!0)},[S]),j=(0,t.useCallback)(()=>{f.sendLog("hover_share_icon",{enter_from:(0,d.mo)()})},[]),T=()=>{var e,l;let o=null===(l=N.current)||void 0===l?void 0:null===(e=l.getLottieInstance)||void 0===e?void 0:e.call(l);return{enter:()=>{var e;null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[0,33],!0)},leave:()=>{var e;null==o||null===(e=o.playSegments)||void 0===e||e.call(o,[62,86],!0)}}};(0,t.useEffect)(()=>{if(v)return;let e=C.current,l=()=>{var e,l;null===(e=(l=T()).enter)||void 0===e||e.call(l)},o=()=>{var e,l;null===(e=(l=T()).leave)||void 0===e||e.call(l)};return null==e||e.addEventListener("mouseenter",l),null==e||e.addEventListener("mouseleave",o),()=>{null==e||e.removeEventListener("mouseenter",l),null==e||e.removeEventListener("mouseleave",o)}},[]);let L=(0,t.useMemo)(()=>{let e=(0,i.jsx)(p.z,{svg:(0,i.jsx)(s.Z,{}),className:c.default.shareSvg}),l=(0,i.jsx)(m.default,{ref:N,data:u,loop:!1,autoplay:!1});return(0,r.b_)()||"user"===y||"creator_center"===(0,d.vM)()?e:S&&!I?e:l},[x,I]);return(0,i.jsxs)("div",{className:a()(c.default.share,c.default[_],{[c.default.ableMiniType]:n,[c.default.disable]:v,[c.default.inVideo]:"video"===y}),ref:C,"data-e2e":"video-player-share",onMouseEnter:E,onMouseLeave:j,children:[(0,i.jsx)("div",{className:c.default.animationWrap,children:(0,i.jsxs)("div",{className:a()(c.default.iconWrap,c.default[_]),children:[k,L]})}),"user"!==y&&(0,i.jsx)("div",{className:c.default.count,children:(0,h.A)({count:null!==(o=null==w?void 0:null===(l=w.stats)||void 0===l?void 0:l.shareCount)&&void 0!==o?o:0,displayWord:"分享"})})]})}}}]); |