mono/reference/tiktok/files/60248.341443e1.js
2026-01-29 18:35:51 +01:00

1 line
26 KiB
JavaScript

"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([["60248"],{61937:function(e,n,t){t.d(n,{I9:function(){return m},Tq:function(){return _},tR:function(){return h}});var o=t(35383),r=t(5377),c=t(45996),i=t(16327),a=t(11201),s=t(73455),u=t(4676),l=t(10625),m=(0,s._)((0,l.p)("commentItemAtom@tiktok/webapp-atoms",{}),{rehydrationKey:"webapp.comment.items"}),d=(0,u.i)(m,function(e,n){var t;return t={setItem:function(e){n(m,function(n){return(0,c._)((0,r._)({},n),(0,o._)({},e.cid,e))})},setItemDiggState:function(t){e(m)[t.cid]&&n(m,function(e){var n,i;return(0,c._)((0,r._)({},e),(0,o._)({},t.cid,(0,c._)((0,r._)({},e[t.cid]),{user_digged:t.digged,is_author_digged:null!=(i=t.is_author_digged)?i:null==(n=e[t.cid])?void 0:n.is_author_digged})))})},setItemDiggCount:function(t){e(m)[t.cid]&&n(m,function(e){return(0,c._)((0,r._)({},e),(0,o._)({},t.cid,(0,c._)((0,r._)({},e[t.cid]),{digg_count:t.count})))})}},(0,o._)(t,"removeItem",function(e){n(m,function(n){return n[e],(0,i._)(n,[e].map(a._))})}),(0,o._)(t,"multiSetCommentItem",function(e){n(m,function(n){var t=(0,r._)({},n);return e.forEach(function(e){t[e.cid]=(0,r._)({},t[e.cid],e)}),t})}),(0,o._)(t,"multiRemoveCommentItem",function(e){n(m,function(n){var t=(0,r._)({},n);return e.forEach(function(e){delete t[e]}),t})}),(0,o._)(t,"reduceOrIncreaseCommentCount",function(t){var i,a,s=t.cid,u=t.isReduce,l=e(m);if(l[s]){var d=Number(null!=(a=null==(i=l[s])?void 0:i.reply_comment_total)?a:0);n(m,function(e){return(0,c._)((0,r._)({},e),(0,o._)({},s,(0,c._)((0,r._)({},e[s]),{reply_comment_total:u?d-1:d+1})))})}}),t}),_=(d.useAtomService,d.useServiceState),h=(d.useServiceDispatchers,d.getStaticApi)},31847:function(e,n,t){t.d(n,{lN:function(){return D},BY:function(){return H},_B:function(){return G},kH:function(){return B},OL:function(){return j}});var o=t(79066),r=t(35383),c=t(5377),i=t(45996),a=t(6586),s=t(54333),u=t(72516),l=t(54122),m=t(61945),d=t(18499),_=t(73455),h=t(4676),f=t(10625),p=t(64781),v=t(8686),g=t(35144),C=t(77226),y=t(35702),k=t(13495),w=t(57007),S=t(55453),b=t(77214),I=t(83751),E=t(35379),R=t(7871),O=t(72702),T=t(61937),L=t(91781),F=t(26869),A=t(75434),M=t(91402),P=t(42646),U=t(56904),x=(0,M.M)({csr:function(e){return(0,o._)(function(){return(0,u.__generator)(this,function(n){return[2,P.h.get("/api/comment/list/",{query:(0,i._)((0,c._)({},e),{count:20,aid:1988,app_language:"ja-JP",device_platform:"web_pc",current_region:"JP",fromWeb:1,enter_from:"tiktok_web"}),baseUrlType:U.Z4.FixedWww})]})})()},ssr:function(e){return(0,o._)(function(){var n,t,o;return(0,u.__generator)(this,function(r){switch(r.label){case 0:n=(0,A.yK)(),t=(0,F.stringifyUrl)({url:"consul://tiktok.comment.api/api/comment/list/",query:(0,i._)((0,c._)({},e),{aid:1988,count:20,device_platform:"web_pc",fromWeb:1})}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.fetch(t,{method:"GET",timeout:5e3,headers:(0,i._)((0,c._)({},n.headers),{referer:n.href})})];case 2:return[2,r.sent().json()];case 3:return o=r.sent(),n.logger.error("ssr fetch catch err: ".concat(o)),[2,{status_code:w.s.UnknownError,reply_style:1,has_more:1,cursor:"0"}];case 4:return[2]}})})()}}),D={awemeId:void 0,cursor:"0",comments:[],hasMore:!0,loading:!1,isFirstLoad:!1,fetchType:"load_by_current",currentAspect:"all"},N=(0,_._)((0,f.p)("commentAtom@tiktok/webapp-atoms",{}),{rehydrationKey:"webapp.comment"}),W=(0,h.i)(N,function(e,n){return{switchAspect:function(t){return(0,o._)(function(t){var o,a,s,m;return(0,u.__generator)(this,function(u){switch(u.label){case 0:if(o=t.itemId,a=t.aspect,(null==(s=e(N)[o])?void 0:s.loading)||(null==(m=e(N)[o])?void 0:m.currentAspect)===a)return[2];return n(N,function(e){return(0,i._)((0,c._)({},e),(0,r._)({},o,(0,l.A)((0,i._)((0,c._)({},D),{currentAspect:a}))))}),[4,this.fetchComment({aweme_id:o,cursor:0,fetch_type:"load_by_current",commentAspect:a})];case 1:return u.sent(),[2]}})}).apply(this,arguments)},setCommentItem:function(e){var t=e.itemId,o=void 0===t?"":t,a=e.item;a&&n(N,function(e){var n;return(0,i._)((0,c._)({},e),(0,r._)({},o,(0,c._)({},null!=(n=e[o])?n:D,a)))})},setReplyLoading:function(t){var o,r,s,u,l=(0,a._)(V(e,t),2),m=l[0],d=l[1];m&&(m.replyCache=(0,i._)((0,c._)({},null!=(u=m.replyCache)?u:{comments:null!=(r=m.reply_comment)?r:[],cursor:null!=(s=null==(o=m.reply_comment)?void 0:o.length)?s:"0",hasMore:!0}),{loading:t.loading}),q(n,t.itemId,d,(0,c._)({},m)))},setReplyComment:function(t){var o=(0,a._)(V(e,t),2),r=o[0],s=o[1];r&&q(n,t.itemId,s,(0,i._)((0,c._)({},r),{reply_comment:t.comments}))},setReplyCommentCache:function(t){var o,r,i=(0,a._)(V(e,t),2),s=i[0],u=i[1];s&&(s.replyCache={comments:t.comments,cursor:t.cursor,hasMore:t.hasMore,loading:null!=(r=null==(o=s.replyCache)?void 0:o.loading)&&r},q(n,t.itemId,u,(0,c._)({},s)))},deleteCommentFromList:function(t){var o=t.index,r=t.subIndex,i=t.itemId;if(void 0===r)q(n,i,o);else{var a,s,u=e(N)[i];if(!u)return;var l=(0,c._)({},u.comments[o]);null==(a=l.reply_comment)||a.splice(r,1),null==(s=l.replyCache)||s.comments.splice(r,1),q(n,i,o,l)}},addCommentToFirst:function(e){n(N,function(n){var t,o;return(0,i._)((0,c._)({},n),(0,r._)({},e.aweme_id,(0,i._)((0,c._)({},D,n[e.aweme_id]),{comments:[{cid:e.cid,reply_comment:[],replyCache:null}].concat((0,s._)(null!=(o=null==(t=n[e.aweme_id])?void 0:t.comments)?o:[]))})))})},addReplyToFirst:function(t){var o,r,a,u,l=t.comment,m=t.position,d=e(N),_=l.aweme_id,h=d[_];if(h){var f=h.comments[m];if(f){var p=(0,c._)({},f);p.reply_comment=[{cid:l.cid,reply_comment:null,replyCache:null}].concat((0,s._)(null!=(r=f.reply_comment)?r:[])),p.replyCache=(0,i._)((0,c._)({},null!=(a=p.replyCache)?a:{cursor:"0",hasMore:!0,loading:!1}),{comments:[{cid:l.cid,reply_comment:null,replyCache:null}].concat((0,s._)(null!=(u=null==(o=p.replyCache)?void 0:o.comments)?u:[]))}),q(n,_,m,p)}}},handlePostSuccess:function(e){var n=this,t=J([e]),o=t.users,r=t.commentItems;(0,d.unstable_batchedUpdates)(function(){n.addCommentToFirst(e),(0,E.Gp)().multiSetUser(o),(0,T.tR)().multiSetCommentItem(r),(0,O.ud)().reduceOrIncreaseCommentCount({id:e.aweme_id,isReduce:!1})})},handleReplySuccess:function(e){var n=this,t=e.comment,o=e.position,r=J([t],{ignoreReply:!0}),c=r.users,i=r.commentItems,a=(0,T.tR)();(0,d.unstable_batchedUpdates)(function(){n.addReplyToFirst({comment:t,position:o}),(0,E.Gp)().multiSetUser(c),a.multiSetCommentItem(i),a.reduceOrIncreaseCommentCount({cid:t.reply_id}),(0,O.ud)().reduceOrIncreaseCommentCount({id:t.aweme_id,isReduce:!1})})},fetchComment:function(n,t){return(0,o._)(function(){var o,r,c,i,a,s,l,_,h,f,v,g,C,y,S,R,L,F,A,M,P,U,D,W,B,G,H,j;return(0,u.__generator)(this,function(u){switch(u.label){case 0:var K;if(o=this,r=e(N),c=n.aweme_id,i=n.insert_ids,s=void 0===(a=n.fetch_type)?"load_by_current":a,_=null!=(l=r[n.aweme_id])?l:{awemeId:void 0,cursor:"0",comments:[],hasMore:!0,loading:!0,currentAspect:"all"},v=(f="string"==typeof(K=null!=(h=n.commentAspect)?h:_.currentAspect)&&K.startsWith("topic_")?{subTopicId:K.split("_")[1]}:"number"==typeof K?{subCategory:K}:{}).subTopicId,g=f.subCategory,C=(0,I.PJ)(e(I.WH)),!_.hasMore)return[2];y=_.cursor,this.setCommentItem({item:{awemeId:c,loading:!0},itemId:c}),u.label=1;case 1:if(u.trys.push([1,10,,11]),!(v||g))return[3,3];return[4,(0,p.iB)({itemID:c,subTopicId:v,subCategory:g,cursor:y})];case 2:return F=u.sent(),[3,5];case 3:return[4,x({insert_ids:"0"===y?i:void 0,aweme_id:c,cursor:y,is_non_personalized:C})];case 4:F=u.sent(),u.label=5;case 5:if(L=F,(0,k.G)(L.status_code,[w.s.Ok]),!(L.status_code===w.s.Ok&&(null==(S=L.comments)?void 0:S.length)))return[3,8];if(P=(M=J(L.comments,{logId:null==(A=L.log_pb)?void 0:A.impr_id})).users,U=M.comments,D=M.commentItems,!t)return[3,7];return W=t.translateTo,B=t.count,G=D.filter(function(e){return"un"!==e.comment_language&&e.comment_language!==W}).slice(0,B),[4,(0,b.mx)().fetchCommentTranslation(G,W,!0)];case 6:u.sent(),u.label=7;case 7:return H=_.comments,j=(0,m.A)(H.concat(U),"cid"),(0,d.unstable_batchedUpdates)(function(){(0,E.Gp)().multiSetUser(P),(0,T.tR)().multiSetCommentItem(D),o.setCommentItem({item:{comments:j,hasMore:!!L.has_more,cursor:L.cursor,loading:!1,isFirstLoad:0===Number(y),fetchType:s},itemId:c}),L.total&&(0,O.ud)().setCommentCount({id:c,commentCount:Number(L.total)})}),[3,9];case 8:L.status_code!==w.s.Ok||(null==(R=L.comments)?void 0:R.length)||L.has_more||this.setCommentItem({item:{hasMore:!!L.has_more,loading:!1},itemId:c}),u.label=9;case 9:return[3,11];case 10:return u.sent(),this.setCommentItem({item:{loading:!1},itemId:c}),[3,11];case 11:return[2]}})}).call(this)},fetchCommentReply:function(n){return(0,o._)(function(){var t,r,l,_,h,f,p,v,g,C,y,S,b,I,R;return(0,u.__generator)(this,function(O){switch(O.label){case 0:if(t=this,l=(r=(0,a._)(K(e,n),2))[0],!(_=r[1]))return[2,void console.warn("No item here in fetch commoent reply")];this.setReplyLoading((0,i._)((0,c._)({},l),{loading:!0})),O.label=1;case 1:var L;return O.trys.push([1,3,,4]),[4,(L={comment_id:l.cid,item_id:l.itemId,cursor:null!=(f=null==(h=_.replyCache)?void 0:h.cursor)?f:"0"},(0,o._)(function(){return(0,u.__generator)(this,function(e){return[2,P.h.get("/api/comment/list/reply/",{query:(0,i._)((0,c._)({},L),{count:3,aid:1988,app_language:"ja-JP",device_platform:"web_pc",current_region:"JP",fromWeb:1,enter_from:"tiktok_web"}),baseUrlType:U.Z4.FixedWww})]})})())];case 2:return p=O.sent(),(0,k.G)(p.status_code,[w.s.Ok]),p.status_code===w.s.Ok&&(C=(g=J(p.comments,{logId:null==(v=p.log_pb)?void 0:v.impr_id})).users,y=g.comments,S=g.commentItems,I=null!=(b=_.reply_comment)?b:[],R=(0,m.A)(I.concat(y),"cid"),(0,d.unstable_batchedUpdates)(function(){(0,E.Gp)().multiSetUser(C),(0,T.tR)().multiSetCommentItem(S),t.setReplyComment((0,c._)({comments:(0,s._)(R)},l)),t.setReplyCommentCache((0,c._)({comments:(0,s._)(R),hasMore:!!p.has_more,cursor:p.cursor},l)),t.setReplyLoading((0,i._)((0,c._)({},l),{loading:!1}))})),[3,4];case 3:return O.sent(),this.setReplyLoading((0,i._)((0,c._)({},l),{loading:!1})),[3,4];case 4:return[2]}})}).call(this)},handleCollapseReply:function(n){if(!(0,a._)(V(e,n),1)[0])return void console.warn("item is null");this.setReplyComment((0,i._)((0,c._)({},n),{comments:[]}))},handleShowMoreReply:function(n){return(0,o._)(function(){var t,o,r,s,l,m,d,_;return(0,u.__generator)(this,function(u){return(r=(o=(t=(0,a._)(K(e,n),2))[0]).cid,s=o.itemId,l=t[1],C.f.sendEvent("show_more_reply",{parent_comment_id:r,group_id:s}),l)?l.reply_comment&&l.replyCache&&(m=l.reply_comment.length)<(d=l.replyCache.comments.length)?(_=m+3>d?d:m+3,[2,this.setReplyComment((0,i._)((0,c._)({},n),{comments:l.replyCache.comments.slice(0,_)}))]):[2,this.fetchCommentReply(n)]:[2,void console.warn("item is null")]})}).call(this)},handleCommentLike:function(n){return(0,o._)(function(){var t,a,s,l,m,_,h,f,p,k,b,I,L,F,A,M,x;return(0,u.__generator)(this,function(D){switch(D.label){case 0:if(a=e(T.I9),s=e(E.p9),l=a[n.cid],_=null==(m=(0,g.x)().user)?void 0:m.uid,h=null==(t=e(O.Pu)[n.itemId])?void 0:t.authorId,p=s.users[null!=(f=null==l?void 0:l.user)?f:""],!l)return[2,void console.warn("No comment item here in hendle comment like")];k=l.user_digged?2:1,D.label=1;case 1:var N;return D.trys.push([1,3,,4]),[4,(N={aweme_id:n.itemId,cid:n.cid,digg_type:k},(0,o._)(function(){return(0,u.__generator)(this,function(e){return[2,P.h.post("/api/comment/digg/",{query:(0,i._)((0,c._)({},N),{aid:1988,channel_id:w.F.Hot}),headers:(0,r._)({},U.nk,P.h.csrfToken),baseUrlType:U.Z4.FixedWww})]})})())];case 2:return b=D.sent(),I=(0,R.T)(),(null==b?void 0:b.status_code)===w.s.Ok?C.f.sendEvent(1===k?"like_comment":"cancel_like_comment",{comment_id:n.cid,group_id:n.itemId,comment_user_id:null!=(L=null==p?void 0:p.id)?L:"",author_id:n.teaAuthorId,enter_method:n.enterMethod}):(null==b?void 0:b.status_code)===w.s.CommentLikePermissionDisable?(y.F.destroy(),y.F.open({content:I(2===k?"comment_turnoff_unlike":"comment_turnoff_like"),duration:3,getContainer:S.M,getContainerPosition:"fixed"})):(null==b?void 0:b.status_code)?(y.F.destroy(),y.F.open({content:I("Sorry, something wrong with the server, please try again."),duration:3,widthType:"half",getContainer:S.M,getContainerPosition:"fixed"})):(y.F.destroy(),y.F.open({content:I("comment_nointernet_toast"),duration:3,widthType:"half",getContainer:S.M,getContainerPosition:"fixed"})),b.status_code===w.s.Ok?(1===k?(F=1,A=l.digg_count+1,_===h&&(M=!0)):(F=0,A=Math.max(l.digg_count-1,0),_===h&&(M=!1)),x=(0,T.tR)(),(0,d.unstable_batchedUpdates)(function(){x.setItemDiggState({cid:n.cid,digged:F,is_author_digged:M}),x.setItemDiggCount({cid:n.cid,count:A})})):b.status_code===w.s.CommentLikePermissionDisable&&(0,O.ud)().updateItem({id:n.itemId,itemCommentStatus:v.v.OFF}),[3,4];case 3:return D.sent(),[3,4];case 4:return[2]}})})()},handleCommentDelete:function(e){return(0,o._)(function(){var n,t,c,i,a,s,l,m;return(0,u.__generator)(this,function(_){switch(_.label){case 0:n=this,t=(0,R.T)(),c=e.itemId,i=e.cid,a=e.parentCid,s=e.subIndex,_.label=1;case 1:var h;return _.trys.push([1,3,,4]),[4,(h={cid:i},(0,o._)(function(){return(0,u.__generator)(this,function(e){return[2,P.h.post("/api/comment/delete/",{query:h,baseUrlType:U.Z4.FixedWww,headers:(0,r._)({},U.nk,P.h.csrfToken)})]})})())];case 2:return(l=_.sent()).status_code===w.s.Ok?y.F.open({content:t("comment_delete_success"),duration:3,widthType:"half",getContainer:S.M,getContainerPosition:"fixed"}):y.F.open({content:t("comment_delete_failed"),duration:3,widthType:"half",getContainer:S.M,getContainerPosition:"fixed"}),l.status_code===w.s.Ok&&(m=(0,T.tR)(),(0,d.unstable_batchedUpdates)(function(){n.deleteCommentFromList(e),m.removeItem(i),(0,O.ud)().reduceOrIncreaseCommentCount({id:c,isReduce:!0}),void 0!==s&&a&&m.reduceOrIncreaseCommentCount({cid:a,isReduce:!0})})),[3,4];case 3:return _.sent(),[3,4];case 4:return[2]}})}).call(this)},switchVideo:function(e){return(0,o._)(function(){var n,t;return(0,u.__generator)(this,function(o){switch(o.label){case 0:return n=e.currId,t=e.insertCid,[4,this.fetchComment({insert_ids:t,aweme_id:n})];case 1:return o.sent(),[2]}})}).call(this)},handleCommentsPreload:function(e){var n=this,t=e.aweme_id,o=e.fetch_type,r=e.has_more,c=e.cursor,i=e.total,a=J(e.comments),s=a.users,u=a.comments,l=a.commentItems;(0,d.unstable_batchedUpdates)(function(){(0,E.Gp)().multiSetUser(s),(0,T.tR)().multiSetCommentItem(l),n.setCommentItem({item:{comments:u,hasMore:!!r,cursor:c,loading:!1,isFirstLoad:!0,fetchType:o},itemId:t}),i&&(0,O.ud)().setCommentCount({id:t,commentCount:Number(i)})})}}}),B=W.useAtomService,G=W.useServiceState,H=W.useServiceDispatchers,j=W.getStaticApi;function K(e,n){var t=(0,a._)(V(e,n),2);return[n,t[0],t[1]]}function V(e,n){var t=n.itemId,o=n.cid,r=e(N)[t];if(!r)return[void 0,-1];var c=r.comments,i=c.findIndex(function(e){return e.cid===o});return -1!==i?[c[i],i]:[void 0,-1]}function q(e,n,t,o){-1!==t&&e(N,function(e){var a,u,m=null!=(u=null==(a=e[n])?void 0:a.comments)?u:[],d=[];return d=o?(0,s._)(m.slice(0,t)).concat([(0,l.A)((0,c._)({},m[t],o))],(0,s._)(m.slice(t+1))):(0,s._)(m.slice(0,t)).concat((0,s._)(m.slice(t+1))),(0,i._)((0,c._)({},e),(0,r._)({},n,(0,i._)((0,c._)({},D,e[n]),{comments:d})))})}function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce(function(e,t){var o=t.user,r=t.reply_comment;return e.users.push((0,L.bg)(o)),(null!=r?r:[]).forEach(function(n){var t=n.user;e.users.push((0,L.bg)(t))}),e.comments.push(function e(n){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{cid:n.cid,logId:o.logId,reply_comment:null==(t=n.reply_comment)?void 0:t.map(function(n){return e(n,o)}),replyCache:null}}(t,n)),(0,L.PT)(t,n).forEach(function(n){e.commentItems.push(n)}),e},{users:[],comments:[],commentItems:[]})}},91781:function(e,n,t){t.d(n,{PT:function(){return function e(n){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,a.A)(n,"user","reply_comment");if(r.user=null!=(t=n.user.unique_id)?t:"",!n.reply_comment||o.ignoreReply)return[r];var c=n.reply_comment.reduce(function(n,t){return e(t).forEach(function(e){n.push(e)}),n},[]);return[r].concat((0,i._)(c))}},bg:function(){return d}});var o,r=t(35383),c=t(5377),i=t(54333),a=t(53036),s=t(48007),u=t(8561),l=(o={},(0,r._)(o,s.m33.FollowRelationUnknown,u.yf.UNKNOW),(0,r._)(o,s.m33.NoRelationStatus,u.yf.NONE),(0,r._)(o,s.m33.FollowingStatus,u.yf.FOLLOW),(0,r._)(o,s.m33.FollowEachOtherStatus,u.yf.MUTAL),(0,r._)(o,s.m33.FollowRequestStatus,u.yf.FOLLOWING_REQUEST),o);function m(e){var n,t;return null!=(t=null==e||null==(n=e.url_list)?void 0:n.find(function(e){return!/\.webp/.test(e)}))?t:""}function d(e,n){var t=e.avatar_larger,o=e.avatar_medium,r=e.avatar_thumb,i=e.uid,a=e.short_id,d=e.unique_id,_=e.sec_uid,h=e.room_id,f=e.nickname,p=e.is_block,v=e.is_blocked,g=e.follow_status,C=e.signature,y=e.show_favorite_list,k=e.custom_verify,w=e.enterprise_verify_reason,S=e.comment_setting,b=e.duet_setting,I=e.is_ad_fake,E=e.is_private_account,R=e.secret,O=e.show_secret_banner,T=e.stitch_setting,L=e.follower_status;return{avatarLarger:m(t),avatarMedium:m(o),avatarThumb:m(r),id:i,shortId:a,uniqueId:null!=d?d:"",secUid:null!=_?_:"",roomId:h?String(h):void 0,nickname:f,relation:function(e){var n=e.is_block,t=e.is_blocked,o=e.follow_status,r=e.follower_status;if(null!=o)return n?u.yf.BLOCK:t?u.yf.BLOCKED:o===s.m33.NoRelationStatus&&r===s.FU4.FollowerFollowStatus?u.yf.FOLLOWER:l[o]}({is_block:p,is_blocked:v,follow_status:g,follower_status:L}),signature:C,openFavorite:y,verified:!!(k||w),commentSetting:S,duetSetting:b,stitchSetting:T,isADVirtual:I,privateAccount:!!E||!!R,secret:!!R,createTime:0,showPrivateBanner:!!O,extraInfo:(0,c._)({followerStatus:L},n)}}},10354:function(e,n,t){t.d(n,{Q:function(){return v}});var o=t(48748),r=t(95170),c=t(7120),i=t(54333),a=t(79262),s=t(19293),u=t(62564),l=t(54161),m=t(78990),d=t(82379),_=t(1455),h=t(59952);function f(e,n,t,o){var r,c=arguments.length,i=c<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,t):o;if(("undefined"==typeof Reflect?"undefined":(0,a._)(Reflect))==="object"&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,n,t,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(i=(c<3?r(i):c>3?r(n,t,i):r(n,t))||i);return c>3&&i&&Object.defineProperty(n,t,i),i}function p(e,n){if(("undefined"==typeof Reflect?"undefined":(0,a._)(Reflect))==="object"&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}var v=function(e){function n(){for(var e,t=arguments.length,c=Array(t),a=0;a<t;a++)c[a]=arguments[a];return(0,r._)(this,n),(e=(0,o._)(this,n,(0,i._)(c))).defaultState=(0,h.$V)(),e}return(0,c._)(n,e),n.prototype.updateVideo=function(e){var n=this;return e.pipe((0,u.T)(function(e){return(0,h.LM)().updateVideo(e),n.noop()}))},n}(m.E);v.jotaiAtom=h.yA,f([(0,d.Mj)(),p("design:type",Function),p("design:paramtypes",[void 0===s.c?Object:s.c]),p("design:returntype",void 0)],v.prototype,"updateVideo",null),v=f([(0,_.nV)("VideoPlayerJotai")],v),h.yA.__SIGI_MODULE__=v,(0,l.y)(v)},39950:function(e,n,t){t.d(n,{ao:function(){return d},uO:function(){return m}});var o,r=t(5377),c=t(45996),i=t(16327),a=t(77226),s=t(67503),u=t(60724),l=t(47149),m=((o={})[o.Loading=0]="Loading",o[o.Loaded=1]="Loaded",o),d={handleCommentClick:function(e){a.f.sendEvent("click_comment_button",e)},handleCommentLike:function(e){var n=e.isLike,t=(0,i._)(e,["isLike"]);a.f.sendEvent(n?"like_comment":"cancel_like_comment",t)},handlePostComment:function(e){var n=(0,s.Hd)(u.DK);a.f.sendEvent("post_comment",(0,c._)((0,r._)({},e),{from_group_id:n}))},handleShowMoreReply:function(e){a.f.sendEvent("show_more_reply",e)},handleCommentShow:function(e){a.f.sendEvent("video_comment_show",e)},handleSearchAt:function(e){a.f.sendEvent("search_comment_at",e)},handleSelectAt:function(e){a.f.sendEvent("add_comment_at",e)},handleEmojiSelect:function(e){a.f.sendEvent("search_comment_emoji",e)},handleClose:function(e){a.f.sendEvent("close_comment",e)},handleLeaveComment:function(e){a.f.sendEvent("leave_commet_page",e)},handleKeepComment:function(e){a.f.sendEvent("keep_editing_comment",e)},handleCopyCommentUrl:function(e){a.f.sendEvent("web_comment_url",e)},handleTapComment:function(e){a.f.sendEvent("tap_comment",e)},handleCloseCommentTab:function(){a.f.sendEvent("close_comment_tab",{enter_method:l.c.ClickCancel})},handleCloseCommentPanel:function(e){a.f.sendEvent("close_comment",e)},handleMentionItemShow:function(e){a.f.sendEvent("tag_mention_head_show",(0,c._)((0,r._)({},e),{function:"mention"}))},handleClickBackToTop:function(e){a.f.sendEvent("click_back_to_top",e)},handleCommentModuleExpose:function(e){a.f.sendEvent("reply_module_show",{type:e.type})},handleCommentExpose:function(e){a.f.sendEvent("reply_show",(0,r._)({},e))},handleCommentIconClick:function(e){a.f.sendEvent("comment_icon_click",e)},handleCommentPanelClose:function(e){a.f.sendEvent("comment_panel_close",e)},handleCommentSeeMoreClick:function(){a.f.sendEvent("comment_see_more_click")},handleCommentLoadComplete:function(e){a.f.sendEvent("comments_load_complete",e)},handleCommentLoadMore:function(e){a.f.sendEvent("comment_load_more",e)},handleCommentPreload:function(e){a.f.sendEvent("comments_preload",e)}}},90059:function(e,n,t){t.d(n,{$G:function(){return P},Cy:function(){return I},HT:function(){return L},Kq:function(){return y},M2:function(){return b},TI:function(){return F},VQ:function(){return O},ez:function(){return k},fk:function(){return T},fo:function(){return M},k0:function(){return w},ks:function(){return R},n:function(){return A},nX:function(){return S},rU:function(){return E}});var o,r,c,i,a,s,u,l,m,d,_,h,f,p,v=t(5377),g=t(45996),C=t(77226),y=((o={}).ClickEnter="click_enter",o.ClickIcon="click_icon",o.ClickViewAll="click_view_all",o.ClickSearch="homepage_click_search",o.ClickMoreGeneralList="click_more_general_list",o.ClickSearchResult="click_search_result",o.SearchHistory="search_history",o.RecomSearch="recom_search",o.ManagePersonalise="manage_personalise",o),k=((r={}).Hot="hot",r.Sav="top",r.Music="music",r.SearchBar="search_bar_outer",r.ExploreAll="explore_all",r),w=((c={}).EnrichSug="enrich_sug",c.NormalSug="normal_sug",c),S=((i={}).User="user",i.Video="video",i.General="general",i.Live="live",i.Photo="photo",i),b=((a={}).RecomSearchFeedback="recom_search_feedback",a),I=((s={}).RecomSearch="recom_search",s.SearchHistory="search_history",s.videoTitleChallenge="video_title_challenge",s.NormalSearch="normal_search",s.SearchOuter="search_outer",s.SwitchTab="switch_tab",s.ClickMoreGeneralList="click_more_general_list",s.SearchSug="search_sug",s.DefaultSearchKeyword="default_search_keyword",s.CommentRelatedSearch="comment_related_search",s.CommentHighlightedWords="comment_highlighted_words",s.RelatedSearch="related_search",s),E=((u={}).Sug="sug",u.RecomSearch="recom_search",u.SearchBar="related_search_anchor_v2",u.CommentRelatedSearch="comment_related_search",u.CommentHighlightedWords="comment_highlighted_words",u.RelatedSearch="related_search",u.ExploreAll="explore_all",u),R=((l={}).Tag="tag",l.Person="person",l.LiveCard="live_card",l.HotUser="hot_user",l),O=((m={}).ClickIntoLive="click_into_live",m.ClickInfo="click_info",m.ClickClose="click_close",m.ClickBlankSpace="click_blank_space",m.ClickDone="click_done",m),T=((d={}).Report="report",d.NotRelevant="not_relevant",d.Close="close",d),L=((_={}).Enter="enter",_.Cancel="cancel",_),F=((h={}).NotInterested="Not interested",h.UnrelatedContent="Unrelated content",h.InappropriateContent="Inappropriate content",h.Others="others",h.Cancel="cancel",h),A=((f={})[f.OnToOff=1]="OnToOff",f[f.OffToOn=2]="OffToOn",f[f.RemainOff=3]="RemainOff",f[f.RemainOn=4]="RemainOn",f),M=((p={}).On="on",p.Off="off",p),P={handleSugClick:function(e){C.f.sendEvent("trending_words_click",e)},handleSugImpression:function(e){C.f.sendEvent("trending_words_show",e)},handleSugGroupImpression:function(e){C.f.sendEvent("trending_show",e)},handleSearchEntry:function(e){C.f.sendEvent("enter_search",e)},handleSearchImpression:function(e){C.f.sendEvent("search_result_show",(0,v._)({token_type:"person"},e))},handleSearchVideoImpression:function(e){C.f.sendEvent("search_result_show_video",(0,v._)({},e))},handleSearch:function(e){C.f.sendEvent("search",(0,g._)((0,v._)({},e),{is_success:1}))},handleSearchResultClick:function(e){C.f.sendEvent("search_result_click",(0,v._)({},e))},handleSearchSessionFinish:function(e){C.f.sendEvent("search_session_finish",e)},handleSearchResultEmpty:function(e){C.f.sendEvent("empty_search",(0,v._)({},e))},handleClickSearch:function(e){var n=e.target;C.f.sendEvent("click_search",{target:void 0===n?"homepage_click_search":n})},handleEnterSearchPage:function(e){var n=e.enter_method;C.f.sendEvent("enter_search_page",{enter_method:void 0===n?"homepage_click_search":n})},handleEnterSearchBlankPage:function(e){C.f.sendEvent("enter_search_blankpage",e)},handleSearchHistory:function(e){C.f.sendEvent("search_history",e)},handleTrendingWordsShow:function(e){C.f.sendEvent("trending_words_show",e)},handleTrendingWordsClick:function(e){C.f.sendEvent("trending_words_click",e)},handleTrendingShow:function(e){C.f.sendEvent("trending_show",e)},handleCommentRelatedSearchBoardShow:function(e){C.f.sendEvent("comment_related_search_board_show",e)},handleCommentRelatedSearchBoardClick:function(e){C.f.sendEvent("comment_related_search_board_click",e)},handleSugReportConfirm:function(e){C.f.sendEvent("sug_report_confirm",e)},handleSugReportLaunch:function(e){C.f.sendEvent("sug_report_launch",e)},handleChallengeTitleClick:function(e){C.f.sendEvent("challenge_title_click",e)},handleClickSearchFeedback:function(e){C.f.sendEvent("click_search_feedback",e)},handleSearchTextSubmit:function(e){C.f.sendEvent("search_text_submit",e)},handleSearchFeedbackStatus:function(e){C.f.sendEvent("search_feedback_status",e)},handleManageSearchPopupShow:function(e){C.f.sendEvent("manage_search_popup_show",e)},handleManageSearchPopupClick:function(e){C.f.sendEvent("manage_search_popup_click",e)},handleSearchNonPersonalizationEntranceShow:function(e){C.f.sendEvent("search_non_personalization_entrance_show",e)}}}}]);