"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9129],{48868:(e,t,n)=>{n.d(t,{I9:()=>c,Tq:()=>l,tR:()=>r});var o=n(14374),i=n(71111),s=n(31209);const c=(0,o._)((0,i.atom)({}),{rehydrationKey:"webapp.comment.items"});c.debugLabel="commentItemAtom";const{useAtomService:d,useServiceState:l,useServiceDispatchers:m,getStaticApi:r}=(0,s.i)(c,((e,t)=>({setItem(e){t(c,(t=>Object.assign(Object.assign({},t),{[e.cid]:e})))},setItemDiggState(n){e(c)[n.cid]&&t(c,(e=>Object.assign(Object.assign({},e),{[n.cid]:Object.assign(Object.assign({},e[n.cid]),{user_digged:n.digged})})))},setItemDiggCount(n){e(c)[n.cid]&&t(c,(e=>Object.assign(Object.assign({},e),{[n.cid]:Object.assign(Object.assign({},e[n.cid]),{digg_count:n.count})})))},removeItem(e){t(c,(t=>{const n=t,o=e;return n[o],function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{const n=Object.assign({},t);return e.forEach((e=>{n[e.cid]=Object.assign(Object.assign({},n[e.cid]),e)})),n}))},multiRemoveCommentItem(e){t(c,(t=>{const n=Object.assign({},t);return e.forEach((e=>{delete n[e]})),n}))},reduceOrIncreaseCommentCount({cid:n,isReduce:o}){var i,s;const d=e(c);if(!d[n])return;const l=Number(null!==(s=null===(i=d[n])||void 0===i?void 0:i.reply_comment_total)&&void 0!==s?s:0);t(c,(e=>Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},e[n]),{reply_comment_total:o?l-1:l+1})})))}})))},64747:(e,t,n)=>{n.d(t,{lN:()=>P,OL:()=>M,BY:()=>T,kH:()=>k,_B:()=>R});var o=n(84573),i=n.n(o),s=n(300),c=n.n(s),d=n(18499),l=n(93608),m=n(11983),r=n(22248),a=n(53764),u=n(14374),_=n(71111),p=n(31209),v=n(2408),h=n(84908),g=n(41548),f=n(60072),b=n(48868),y=n(8800),C=(n(4474),n(39785)),O=n(39228),I=n(26325),w=function(e,t,n,o){return new(n||(n=Promise))((function(i,s){function c(e){try{l(o.next(e))}catch(e){s(e)}}function d(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,d)}l((o=o.apply(e,t||[])).next())}))};const j=(0,C.M)({csr:function(e){return w(this,void 0,void 0,(function*(){return O.hd.get("/api/comment/list/",{query:Object.assign(Object.assign({},e),{count:20,aid:1988,app_language:"ja-JP",device_platform:"web_pc",current_region:"JP",fromWeb:1,enter_from:"tiktok_web"}),baseUrlType:2})}))}});var S,E=function(e,t,n,o){return new(n||(n=Promise))((function(i,s){function c(e){try{l(o.next(e))}catch(e){s(e)}}function d(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,d)}l((o=o.apply(e,t||[])).next())}))};!function(e){e[e.Like=1]="Like",e[e.Unlike=2]="Unlike"}(S||(S={}));const P={awemeId:void 0,cursor:"0",comments:[],hasMore:!0,loading:!1,isFirstLoad:!1,fetchType:"load_by_current"},L=(0,u._)((0,_.atom)({}),{rehydrationKey:"webapp.comment"});L.debugLabel="commentAtom";const{useAtomService:k,useServiceState:R,useServiceDispatchers:T,getStaticApi:M}=(0,p.i)(L,((e,t)=>({setCommentItem({itemId:e="",item:n}){n&&t(L,(t=>{var o;return Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},null!==(o=t[e])&&void 0!==o?o:P),n)})}))},setReplyLoading(n){var o,i,s,c;const[d,l]=x(e,n);d&&(d.replyCache=Object.assign(Object.assign({},null!==(o=d.replyCache)&&void 0!==o?o:{comments:null!==(i=d.reply_comment)&&void 0!==i?i:[],cursor:null!==(c=null===(s=d.reply_comment)||void 0===s?void 0:s.length)&&void 0!==c?c:"0",hasMore:!0}),{loading:n.loading}),U(t,n.itemId,l,Object.assign({},d)))},setReplyComment(n){const[o,i]=x(e,n);o&&U(t,n.itemId,i,Object.assign(Object.assign({},o),{reply_comment:n.comments}))},setReplyCommentCache(n){var o,i;const[s,c]=x(e,n);s&&(s.replyCache={comments:n.comments,cursor:n.cursor,hasMore:n.hasMore,loading:null!==(i=null===(o=s.replyCache)||void 0===o?void 0:o.loading)&&void 0!==i&&i},U(t,n.itemId,c,Object.assign({},s)))},deleteCommentFromList(n){var o,i;const{index:s,subIndex:c,itemId:d}=n;if(void 0===c)U(t,d,s);else{const n=e(L)[d];if(!n)return;const l=Object.assign({},n.comments[s]);null===(o=l.reply_comment)||void 0===o||o.splice(c,1),null===(i=l.replyCache)||void 0===i||i.comments.splice(c,1),U(t,d,s,l)}},addCommentToFirst(e){t(L,(t=>{var n,o;return Object.assign(Object.assign({},t),{[e.aweme_id]:Object.assign(Object.assign(Object.assign({},P),t[e.aweme_id]),{comments:[{cid:e.cid,reply_comment:[],replyCache:null},...null!==(o=null===(n=t[e.aweme_id])||void 0===n?void 0:n.comments)&&void 0!==o?o:[]]})})}))},addReplyToFirst({comment:n,position:o}){var i,s,c,d;const l=e(L),{aweme_id:m}=n,r=l[m];if(!r)return;const a=r.comments[o];if(!a)return;const u=Object.assign({},a);u.reply_comment=[{cid:n.cid,reply_comment:null,replyCache:null},...null!==(i=a.reply_comment)&&void 0!==i?i:[]],u.replyCache=Object.assign(Object.assign({},null!==(s=u.replyCache)&&void 0!==s?s:{cursor:"0",hasMore:!0,loading:!1}),{comments:[{cid:n.cid,reply_comment:null,replyCache:null},...null!==(d=null===(c=u.replyCache)||void 0===c?void 0:c.comments)&&void 0!==d?d:[]]}),U(t,m,o,u)},handlePostSuccess(e){const{users:t,commentItems:n}=F([e]);(0,d.unstable_batchedUpdates)((()=>{this.addCommentToFirst(e),(0,h.Gp)().multiSetUser(t),(0,b.tR)().multiSetCommentItem(n),(0,f.ud)().reduceOrIncreaseCommentCount({id:e.aweme_id,isReduce:!1})}))},handleReplySuccess(e){const{comment:t,position:n}=e,{users:o,commentItems:i}=F([t],{ignoreReply:!0}),s=(0,b.tR)();(0,d.unstable_batchedUpdates)((()=>{this.addReplyToFirst({comment:t,position:n}),(0,h.Gp)().multiSetUser(o),s.multiSetCommentItem(i),s.reduceOrIncreaseCommentCount({cid:t.reply_id}),(0,f.ud)().reduceOrIncreaseCommentCount({id:t.aweme_id,isReduce:!1})}))},fetchComment(t){var n,o,i,s;return E(this,void 0,void 0,(function*(){const l=e(L),{aweme_id:m,insert_ids:a,fetch_type:u="load_by_current"}=t,_=null!==(n=l[t.aweme_id])&&void 0!==n?n:{awemeId:void 0,cursor:"0",comments:[],hasMore:!0,loading:!0},p=(0,v.PJ)(e(v.WH));if(!_.hasMore)return;const g=_.cursor;this.setCommentItem({item:{awemeId:m,loading:!0},itemId:m});try{const e=yield j({insert_ids:"0"===g?a:void 0,aweme_id:m,cursor:g,is_non_personalized:p});if((0,r.G)(e.status_code,[0]),0===e.status_code&&(null===(o=e.comments)||void 0===o?void 0:o.length)){const{users:t,comments:n,commentItems:o}=F(e.comments,{logId:null===(i=e.log_pb)||void 0===i?void 0:i.impr_id}),s=_.comments,l=c()(s.concat(n),"cid");(0,d.unstable_batchedUpdates)((()=>{(0,h.Gp)().multiSetUser(t),(0,b.tR)().multiSetCommentItem(o),this.setCommentItem({item:{comments:l,hasMore:Boolean(e.has_more),cursor:e.cursor,loading:!1,isFirstLoad:0===Number(g),fetchType:u},itemId:m}),e.total&&(0,f.ud)().setCommentCount({id:m,commentCount:Number(e.total)})}))}else 0!==e.status_code||(null===(s=e.comments)||void 0===s?void 0:s.length)||e.has_more||this.setCommentItem({item:{hasMore:Boolean(e.has_more),loading:!1},itemId:m})}catch(e){this.setCommentItem({item:{loading:!1},itemId:m})}}))},fetchCommentReply(t){var n,o,i,s;return E(this,void 0,void 0,(function*(){const[l,m]=D(e,t);if(m){this.setReplyLoading(Object.assign(Object.assign({},l),{loading:!0}));try{const e=yield function(e){return w(this,void 0,void 0,(function*(){return O.hd.get("/api/comment/list/reply/",{query:Object.assign(Object.assign({},e),{count:3,aid:1988,app_language:"ja-JP",device_platform:"web_pc",current_region:"JP",fromWeb:1,enter_from:"tiktok_web"}),baseUrlType:2})}))}({comment_id:l.cid,item_id:l.itemId,cursor:null!==(o=null===(n=m.replyCache)||void 0===n?void 0:n.cursor)&&void 0!==o?o:"0"});if((0,r.G)(e.status_code,[0]),0===e.status_code){const{users:t,comments:n,commentItems:o}=F(e.comments,{logId:null===(i=e.log_pb)||void 0===i?void 0:i.impr_id}),r=null!==(s=m.reply_comment)&&void 0!==s?s:[],a=c()(r.concat(n),"cid");(0,d.unstable_batchedUpdates)((()=>{(0,h.Gp)().multiSetUser(t),(0,b.tR)().multiSetCommentItem(o),this.setReplyComment(Object.assign({comments:[...a]},l)),this.setReplyCommentCache(Object.assign({comments:[...a],hasMore:Boolean(e.has_more),cursor:e.cursor},l)),this.setReplyLoading(Object.assign(Object.assign({},l),{loading:!1}))}))}}catch(e){this.setReplyLoading(Object.assign(Object.assign({},l),{loading:!1}))}}else console.warn("No item here in fetch commoent reply")}))},handleCollapseReply(t){const[n]=x(e,t);n?this.setReplyComment(Object.assign(Object.assign({},t),{comments:[]})):console.warn("item is null")},handleShowMoreReply(t){return E(this,void 0,void 0,(function*(){const[{cid:n,itemId:o},i]=D(e,t);if(l.f.sendEvent("show_more_reply",{parent_comment_id:n,group_id:o}),!i)return void console.warn("item is null");if(!i.reply_comment||!i.replyCache)return this.fetchCommentReply(t);const s=i.reply_comment.length,c=i.replyCache.comments.length;if(sc?c:s+3;return this.setReplyComment(Object.assign(Object.assign({},t),{comments:i.replyCache.comments.slice(0,e)}))}return this.fetchCommentReply(t)}))},handleCommentLike(t){var n,o;return E(this,void 0,void 0,(function*(){const i=e(b.I9),s=e(h.p9),c=i[t.cid],r=s.users[null!==(n=null==c?void 0:c.user)&&void 0!==n?n:""];if(!c)return void console.warn("No comment item here in hendle comment like");const u=c.user_digged?2:1;try{const e=yield function(e){return w(this,void 0,void 0,(function*(){return O.hd.post("/api/comment/digg/",{query:Object.assign(Object.assign({},e),{aid:1988,channel_id:0}),headers:{[I.nk]:O.hd.csrfToken},baseUrlType:2})}))}({aweme_id:t.itemId,cid:t.cid,digg_type:u}),n=(0,g.T)();if(0===(null==e?void 0:e.status_code)?l.f.sendEvent(1===u?"like_comment":"cancel_like_comment",{comment_id:t.cid,group_id:t.itemId,comment_user_id:null!==(o=null==r?void 0:r.id)&&void 0!==o?o:"",author_id:t.teaAuthorId}):3002043===(null==e?void 0:e.status_code)?(m.F.destroy(),m.F.open({content:n(2===u?"comment_turnoff_unlike":"comment_turnoff_like"),duration:3,getContainer:a.M,getContainerPosition:"fixed"})):(null==e?void 0:e.status_code)?(m.F.destroy(),m.F.open({content:n("Sorry, something wrong with the server, please try again."),duration:3,widthType:"half",getContainer:a.M,getContainerPosition:"fixed"})):(m.F.destroy(),m.F.open({content:n("comment_nointernet_toast"),duration:3,widthType:"half",getContainer:a.M,getContainerPosition:"fixed"})),0===e.status_code){let e,n;1===u?(e=1,n=c.digg_count+1):(e=0,n=Math.max(c.digg_count-1,0));const o=(0,b.tR)();(0,d.unstable_batchedUpdates)((()=>{o.setItemDiggState({cid:t.cid,digged:e}),o.setItemDiggCount({cid:t.cid,count:n})}))}else 3002043===e.status_code&&(0,f.ud)().updateItem({id:t.itemId,itemCommentStatus:3})}catch(e){}}))},handleCommentDelete(e){return E(this,void 0,void 0,(function*(){const t=(0,g.T)(),{itemId:n,cid:o,parentCid:i,subIndex:s}=e;try{const c=yield function(e){return w(this,void 0,void 0,(function*(){return O.hd.post("/api/comment/delete/",{query:e,baseUrlType:2,headers:{[I.nk]:O.hd.csrfToken}})}))}({cid:o});if(0===c.status_code?m.F.open({content:t("comment_delete_success"),duration:3,widthType:"half",getContainer:a.M,getContainerPosition:"fixed"}):m.F.open({content:t("comment_delete_failed"),duration:3,widthType:"half",getContainer:a.M,getContainerPosition:"fixed"}),0===c.status_code){const t=(0,b.tR)();(0,d.unstable_batchedUpdates)((()=>{this.deleteCommentFromList(e),t.removeItem(o),(0,f.ud)().reduceOrIncreaseCommentCount({id:n,isReduce:!0}),void 0!==s&&i&&t.reduceOrIncreaseCommentCount({cid:i,isReduce:!0})}))}}catch(e){}}))},switchVideo(e){return E(this,void 0,void 0,(function*(){const{currId:t,insertCid:n}=e;yield this.fetchComment({insert_ids:n,aweme_id:t})}))},handleCommentsPreload(e){const{aweme_id:t,fetch_type:n,has_more:o,cursor:i,total:s}=e,{users:c,comments:l,commentItems:m}=F(e.comments);(0,d.unstable_batchedUpdates)((()=>{(0,h.Gp)().multiSetUser(c),(0,b.tR)().multiSetCommentItem(m),this.setCommentItem({item:{comments:l,hasMore:Boolean(o),cursor:i,loading:!1,isFirstLoad:!0,fetchType:n},itemId:t}),s&&(0,f.ud)().setCommentCount({id:t,commentCount:Number(s)})}))}})));function D(e,t){const[n,o]=x(e,t);return[t,n,o]}function x(e,{itemId:t,cid:n}){const o=e(L)[t];if(!o)return[void 0,-1];const i=o.comments,s=i.findIndex((({cid:e})=>e===n));return-1!==s?[i[s],s]:[void 0,-1]}function U(e,t,n,o){-1!==n&&e(L,(e=>{var s,c;const d=null!==(c=null===(s=e[t])||void 0===s?void 0:s.comments)&&void 0!==c?c:[];let l=[];return l=o?[...d.slice(0,n),i()(Object.assign(Object.assign({},d[n]),o)),...d.slice(n+1)]:[...d.slice(0,n),...d.slice(n+1)],Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign(Object.assign({},P),e[t]),{comments:l})})}))}function F(e=[],t={}){return e.reduce(((e,n)=>{const{user:o,reply_comment:i}=n;return e.users.push((0,y.bg)(o)),(null!=i?i:[]).forEach((({user:t})=>{e.users.push((0,y.bg)(t))})),e.comments.push(A(n,t)),(0,y.PT)(n,t).forEach((t=>{e.commentItems.push(t)})),e}),{users:[],comments:[],commentItems:[]})}function A(e,t={}){var n;return{cid:e.cid,logId:t.logId,reply_comment:null===(n=e.reply_comment)||void 0===n?void 0:n.map((e=>A(e,t))),replyCache:null}}},99129:(e,t,n)=>{n.d(t,{K1:()=>I,M$:()=>P,Oz:()=>E,Zr:()=>j,bE:()=>L,mV:()=>w,oS:()=>S});var o=n(58632),i=n(5441),s=n(32862),c=n(54888),d=n(49057),l=n(71281),m=n(39228),r=n(93608),a=n(44597),u=n(49393),_=n(40099),p=n(71828),v=n(5412),h=n(32125),g=n(21367),f=n(60484),b=n(64747),y=n(60072),C=n(41271),O=n(88920);const I=()=>{var e,t;const{isElectronApp:n}=(0,i.B)(),o="undefined"==typeof window?"v1":null!==(t=null===(e=(0,s.OW)("web_on_device_ml",{vid:"v1"}))||void 0===e?void 0:e.vid)&&void 0!==t?t:"v1";return{enableOnDeviceML:"v1"!==o&&!n,isMLWithModel:("v2"===o||"v3"===o)&&"undefined"!=typeof WebAssembly,isMLWithStrategy:"v4"===o,isMLWithModelLowThreshold:"v2"===o}},w=()=>{var e;const{enablePlayerPreloadDowngradePredict:t,disablePreloadPredict:n,playerPreloadPredictStrategy:i}=(0,O.Mz)(),s=(0,g.nr)(),{playerPreloadStrategy:m}=(0,C.P)(c.$,{selector:e=>{var t,n,o,i;return{playerPreloadStrategy:null===(i=null===(o=null===(n=null===(t=e.bizContext)||void 0===t?void 0:t.config)||void 0===n?void 0:n.onDeviceMLConfig)||void 0===o?void 0:o.playerPreload)||void 0===i?void 0:i.playerPreloadStrategy}},dependencies:[]}),{abTestVersion:r}=(0,f.L$)((0,d.W)((()=>["abTestVersion"]),[])),_=null!==(e=(0,l.qt)(r,"tt_player_preload"))&&void 0!==e?e:{maxQueueCount:3,preloadTime:10},v=e=>{var t,n,o;if(e===u.EVideoSlideSpeed.Normal)return void s.updatePredictedPreloadConfig({maxQueueCount:null==_?void 0:_.maxQueueCount,preloadTime:null==_?void 0:_.preloadTime});const c=e===u.EVideoSlideSpeed.Slow?"gt_12s":"lt_12s",d=null===(n=null===(t=null==i?void 0:i.label_index_mapping)||void 0===t?void 0:t.findIndex)||void 0===n?void 0:n.call(t,(e=>e===c)),l=null===(o=null==i?void 0:i.plans)||void 0===o?void 0:o[d];console.debug("[Video Preload] Predict preload config: ",l),s.updatePredictedPreloadConfig(l)};return e=>{if(n||!m)return;const i=m,s=u.EScene.VIDEO_PRELOAD,c=new u.Sibyl({biz:a.vh.TIKTOK_WEB_FYP}),d=c.createStrategyEngine({abConfig:i,scene:s});d&&(d.setThresholdCallback((()=>(0,o.__awaiter)(void 0,void 0,void 0,(function*(){var n,o,l;if(t){const t=c.strategyInference({abConfig:i,scene:s});return p.F.handleModelPredict({hit:Number(t===u.EVideoSlideSpeed.Slow),scene:u.EScene.VIDEO_PRELOAD,predict_value:-1,group_id:e,threshold:-1}),v(t)}try{const{package:t="",engine_config:s={inputs:[],outputs:[]}}=null!==(n=null==i?void 0:i.preload_ml)&&void 0!==n?n:{},m=(yield c.createEngine({scene:u.EScene.VIDEO_PRELOAD,modelUrl:t,inputs:null!==(o=null==s?void 0:s.inputs)&&void 0!==o?o:[],outputs:null!==(l=null==s?void 0:s.outputs)&&void 0!==l?l:[]})).inference({features:{}}),r=d.hitThresholdValue(m),{thresholdValue:a}=d.getInferenceStrategy();console.debug("[Video Preload] Inference result: ",m,"hit: ",r),v(r?u.EVideoSlideSpeed.Slow:u.EVideoSlideSpeed.Fast),p.F.handleModelPredict({hit:Number(r),scene:u.EScene.VIDEO_PRELOAD,predict_value:m,group_id:e,model_url:t,threshold:a})}catch(e){throw v(u.EVideoSlideSpeed.Normal),e}})))),d.reportInferenceResult())}},j=new Map,S=new Map,E=(e,t)=>{const[n,i]=(0,b.kH)((t=>{var n,o;return null!==(o=null===(n=t[e])||void 0===n?void 0:n.comments)&&void 0!==o?o:[]}),h.bN);return{comments:n,preloadCommentList:(e,n)=>(0,o.__awaiter)(void 0,void 0,void 0,(function*(){var o;if(!S.get(null==e?void 0:e.aweme_id))try{i.setCommentItem({item:{awemeId:null==e?void 0:e.aweme_id,loading:!0},itemId:null==e?void 0:e.aweme_id});const{comments:s,cursor:c,has_more:d,total:l}=yield m.hd.get("/api/comment/list/",{query:Object.assign(Object.assign({},e),{count:20,aid:1988,app_language:"ja-JP",device_platform:"web_pc",current_region:"JP",fromWeb:1,enter_from:"tiktok_web"}),baseUrlType:2});S.set(e.aweme_id,{aweme_id:e.aweme_id,comments:null!==(o=s)&&void 0!==o?o:[],cursor:Number(c),has_more:Boolean(d),total:Number(l),fetch_type:"preload_by_ml"}),v.ao.handleCommentPreload({play_mode:t,group_id:e.aweme_id,preload_type:n})}catch(e){}finally{i.setCommentItem({item:{awemeId:null==e?void 0:e.aweme_id,loading:!1},itemId:null==e?void 0:e.aweme_id})}}))}},P=e=>{const t=(0,g.nr)();(0,_.useEffect)((()=>{if(!r.f.dataCollectionEnabled)return;if("homepage_hot"!==e)return;const n=new a.nu({biz:a.vh.TIKTOK_WEB_FYP,teaInstance:r.f.getInstance()});return null==n||n.observe(),()=>{null==n||n.destroy(),t.updatePredictedPreloadConfig({})}}),[])},L=(e,t)=>{var n,o;return t<0||t>=(null==e?void 0:e.length)?[]:(null!==(o=null===(n=null==e?void 0:e.slice)||void 0===n?void 0:n.call(e,t+1,t+5))&&void 0!==o?o:[]).map((e=>(0,y.ud)().getStaticItem(e))).map((e=>{var t;const{video:n,statsV2:o,id:i}=(0,f.L$)(e),{diggCount:s,commentCount:c,shareCount:d,playCount:l,collectCount:m}=(0,f.L$)(o);return{group_id:i,duration:null!==(t=null==n?void 0:n.duration)&&void 0!==t?t:0,like_cnt:Number(null!=s?s:0),comment_cnt:Number(null!=c?c:0),share_cnt:Number(null!=d?d:0),play_cnt:Number(null!=l?l:0),collect_cnt:Number(null!=m?m:0)}}))}},5412:(e,t,n)=>{n.d(t,{ao:()=>m,uO:()=>o});var o,i,s=n(58632),c=n(93608),d=n(92603),l=n(40040);!function(e){e[e.Loading=0]="Loading",e[e.Loaded=1]="Loaded"}(o||(o={})),function(e){e.Original="original",e.Reply="reply",e.ReplyToReply="reply_to_reply"}(i||(i={}));const m={handleCommentClick:e=>{c.f.sendEvent("click_comment_button",e)},handleCommentLike:e=>{var{isLike:t}=e,n=(0,s.__rest)(e,["isLike"]);const o=t?"like_comment":"cancel_like_comment";c.f.sendEvent(o,n)},handlePostComment:e=>{const t=(0,d.Hd)(l.DK);c.f.sendEvent("post_comment",Object.assign(Object.assign({},e),{from_group_id:t}))},handleShowMoreReply:e=>{c.f.sendEvent("show_more_reply",e)},handleCommentShow:e=>{c.f.sendEvent("video_comment_show",e)},handleSearchAt:e=>{c.f.sendEvent("search_comment_at",e)},handleSelectAt:e=>{c.f.sendEvent("add_comment_at",e)},handleEmojiSelect:e=>{c.f.sendEvent("search_comment_emoji",e)},handleClose:e=>{c.f.sendEvent("close_comment",e)},handleLeaveComment:e=>{c.f.sendEvent("leave_commet_page",e)},handleKeepComment:e=>{c.f.sendEvent("keep_editing_comment",e)},handleCopyCommentUrl:e=>{c.f.sendEvent("web_comment_url",e)},handleTapComment:e=>{c.f.sendEvent("tap_comment",e)},handleCloseCommentTab:()=>{c.f.sendEvent("close_comment_tab",{enter_method:"click_cancel"})},handleCloseCommentPanel:e=>{c.f.sendEvent("close_comment",e)},handleMentionItemShow:e=>{c.f.sendEvent("tag_mention_head_show",Object.assign(Object.assign({},e),{function:"mention"}))},handleClickBackToTop:e=>{c.f.sendEvent("click_back_to_top",e)},handleCommentModuleExpose:e=>{c.f.sendEvent("reply_module_show",{type:e.type})},handleCommentExpose:e=>{c.f.sendEvent("reply_show",Object.assign({},e))},handleCommentIconClick:e=>{c.f.sendEvent("comment_icon_click",e)},handleCommentPanelClose:e=>{c.f.sendEvent("comment_panel_close",e)},handleCommentSeeMoreClick:()=>{c.f.sendEvent("comment_see_more_click")},handleCommentLoadComplete:e=>{c.f.sendEvent("comments_load_complete",e)},handleCommentLoadMore:e=>{c.f.sendEvent("comment_load_more",e)},handleCommentPreload:e=>{c.f.sendEvent("comments_preload",e)}}}}]);