@univerjs-pro/thread-comment-datasource 0.16.1 → 0.17.0-insiders.20260318-d69dc16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x320824=_0x3448;function _0x4f97(){const _0x17a9ed=['listComments','CommentService','DependentOn','requireSession','customRanges','/delete','size','YYYY/MM/DD\x20HH:mm','6xxZifR','473ueSshA','user','/edit','length','/add','threadId','forEach','_httpService','filter','/universer-api/user/list','values','unitId','rangeId','ThreadCommentModel','code','/universer-api/comment/unit/','Unknown','_initDataSource','UniverInstanceType','CollaborationSessionService','2060073rICuiO','get','content','map','comments','286010FvwHGc','stringify','27100KwSeRg','CustomRangeType','addComment','Reply','dayjs','UNIVER_UNKNOWN','_commentService','UniverThreadCommentUIPlugin','root','pluginName','pipe','_config','userId','_sessionService','getMemberID','add','resolveComment','Delete','UniverThreadCommentDataSourcePlugin','userID','_init','Injector','413KKssRe','getOwnPropertyDescriptor','getUnit','payload','createTimestamp','error','IThreadCommentDataSourceService','382tBUBfu','rangeType','find','subscribe','1692700xoGuUx','_configService','personId','Module','delete','toStringTag','UserManagerService','UNRECOGNIZED','replyId','_threadCommentDataSource','comment','addUser','getComment','replies','UniverCollaborationClientPlugin','bufferTime','Solve','parse','_initUserSync','dataSource','/solved','_threadCommentDataSourceService','Disposable','1452304dqXssr','merge','thread-comment-data-source.config','Solved','solved','COMMENT','commentUpdate$','2523936SDwldi','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','OpenOrReOpen','format','_userService','HTTPService','post','getUser','body','type','Inject','slice','Add','defineProperty','Edit','users','174MuCQwi','resolved','setConfig','_threadCommentModel','_injector','/list'];_0x4f97=function(){return _0x17a9ed;};return _0x4f97();}(function(_0x289cb4,_0x413791){const _0x50013d=_0x3448,_0x9d40e5=_0x289cb4();while(!![]){try{const _0x4d5a04=-parseInt(_0x50013d(0x1e8))/0x1*(parseInt(_0x50013d(0x1ef))/0x2)+-parseInt(_0x50013d(0x221))/0x3*(parseInt(_0x50013d(0x1d2))/0x4)+-parseInt(_0x50013d(0x1f3))/0x5+parseInt(_0x50013d(0x1b6))/0x6*(-parseInt(_0x50013d(0x20a))/0x7)+parseInt(_0x50013d(0x211))/0x8+-parseInt(_0x50013d(0x1cb))/0x9+parseInt(_0x50013d(0x1d0))/0xa*(parseInt(_0x50013d(0x1b7))/0xb);if(_0x4d5a04===_0x413791)break;else _0x9d40e5['push'](_0x9d40e5['shift']());}catch(_0xf696bb){_0x9d40e5['push'](_0x9d40e5['shift']());}}}(_0x4f97,0x48e61));Object[_0x320824(0x21e)](exports,Symbol[_0x320824(0x1f8)],{'value':_0x320824(0x1f6)});const b=require('@univerjs-pro/collaboration-client'),T=require('@univerjs-pro/license'),c=require('@univerjs/core'),w=require('@univerjs/thread-comment-ui'),M=require('@univerjs/thread-comment'),j=require('rxjs'),P=require('@univerjs/network'),U=_0x320824(0x212);var I=(_0x562c3a=>(_0x562c3a[_0x562c3a['OpenOrReOpen']=0x0]=_0x320824(0x213),_0x562c3a[_0x562c3a[_0x320824(0x20d)]=0x1]='Solved',_0x562c3a[_0x562c3a[_0x320824(0x1fa)]=-0x1]='UNRECOGNIZED',_0x562c3a))(I||{}),v=(_0x246be9=>(_0x246be9[_0x246be9[_0x320824(0x1c7)]=0x0]=_0x320824(0x1c7),_0x246be9[_0x246be9[_0x320824(0x21d)]=0x1]='Add',_0x246be9[_0x246be9[_0x320824(0x1d5)]=0x2]=_0x320824(0x1d5),_0x246be9[_0x246be9[_0x320824(0x21f)]=0x3]=_0x320824(0x21f),_0x246be9[_0x246be9['Delete']=0x4]=_0x320824(0x1e3),_0x246be9[_0x246be9[_0x320824(0x203)]=0x5]=_0x320824(0x203),_0x246be9[_0x246be9['UNRECOGNIZED']=-0x1]=_0x320824(0x1fa),_0x246be9))(v||{});const f=_0x21ebfd=>c[_0x320824(0x1d6)](new Date(+_0x21ebfd))[_0x320824(0x214)](_0x320824(0x22e)),R=async(_0x32f931,_0x21fc0e)=>{const _0x504151=_0x320824,_0x57fb28=_0x32f931['get'](c[_0x504151(0x1f9)]),_0x3ea110=_0x32f931[_0x504151(0x1cc)](P['HTTPService']);_0x21fc0e[_0x504151(0x1bd)](_0x41ae85=>{const _0xc82df=_0x504151;_0x57fb28[_0xc82df(0x218)](_0x41ae85)&&_0x21fc0e[_0xc82df(0x1f7)](_0x41ae85);}),_0x21fc0e[_0x504151(0x22d)]&&(await _0x3ea110[_0x504151(0x1cc)](_0x504151(0x1c0),{'params':{'userIDs':[..._0x21fc0e]}}))['body'][_0x504151(0x220)][_0x504151(0x1bd)](_0x1486ca=>{const _0x22a211=_0x504151;_0x1486ca&&_0x57fb28[_0x22a211(0x1fe)](_0x1486ca);});};var $=Object[_0x320824(0x1e9)],E=(_0xc48fca,_0x4e173e,_0x2bf1e9,_0xd6fd4b)=>{const _0x3f779e=_0x320824;for(var _0x26fa8f=_0xd6fd4b>0x1?void 0x0:_0xd6fd4b?$(_0x4e173e,_0x2bf1e9):_0x4e173e,_0x1bff71=_0xc48fca[_0x3f779e(0x1ba)]-0x1,_0x11ae3b;_0x1bff71>=0x0;_0x1bff71--)(_0x11ae3b=_0xc48fca[_0x1bff71])&&(_0x26fa8f=_0x11ae3b(_0x26fa8f)||_0x26fa8f);return _0x26fa8f;},S=(_0x4c690b,_0xac982f)=>(_0x45bc73,_0x1f747d)=>_0xac982f(_0x45bc73,_0x1f747d,_0x4c690b);let _=class extends c[_0x320824(0x209)]{constructor(_0x24a123,_0x587a3f,_0x3a7409,_0x22b132){const _0x4ded85=_0x320824;super(),this[_0x4ded85(0x1d8)]=_0x24a123,this[_0x4ded85(0x224)]=_0x587a3f,this[_0x4ded85(0x215)]=_0x3a7409,this['_injector']=_0x22b132,this[_0x4ded85(0x1e6)](),this['_initUserSync']();}[_0x320824(0x205)](){const _0x32ff98=_0x320824;this['disposeWithMe'](this[_0x32ff98(0x224)][_0x32ff98(0x210)][_0x32ff98(0x1dc)](j[_0x32ff98(0x202)](0x10))[_0x32ff98(0x1f2)](_0x2ea23d=>{const _0x21897a=_0x32ff98,_0x2273e4=new Set();_0x2ea23d[_0x21897a(0x1bd)](_0x481c88=>{const _0x5ca8b5=_0x21897a;if(_0x481c88[_0x5ca8b5(0x21a)]===_0x5ca8b5(0x1e1)){const _0x1012c8=_0x481c88[_0x5ca8b5(0x1eb)][_0x5ca8b5(0x1f5)];_0x2273e4[_0x5ca8b5(0x1e1)](_0x1012c8);}}),R(this['_injector'],_0x2273e4);}));}[_0x320824(0x1e6)](){const _0x21e10c=_0x320824;this['disposeWithMe'](this[_0x21e10c(0x1d8)][_0x21e10c(0x210)][_0x21e10c(0x1f2)](async _0x3b9455=>{const _0x1ca81a=_0x21e10c;var _0x39a7bc,_0x3be3a1,_0x440939,_0x201b2e;const _0x11f726=(_0x39a7bc=this[_0x1ca81a(0x224)][_0x1ca81a(0x1ea)](_0x3b9455['unitId'])[_0x1ca81a(0x1f1)](_0x1e679f=>_0x1e679f[_0x1ca81a(0x1bc)]===_0x3b9455[_0x1ca81a(0x1bc)]))==null?void 0x0:_0x39a7bc[_0x1ca81a(0x1da)];if(!_0x11f726)return;const {unitId:_0x5a64b3,subUnitId:_0x40653e}=_0x11f726;switch(_0x3b9455[_0x1ca81a(0x1b8)]&&this[_0x1ca81a(0x215)][_0x1ca81a(0x1fe)](_0x3b9455['user']),_0x3b9455[_0x1ca81a(0x21a)]){case v[_0x1ca81a(0x21d)]:break;case v['Reply']:{this[_0x1ca81a(0x224)][_0x1ca81a(0x1d4)](_0x5a64b3,_0x40653e,{'unitId':_0x5a64b3,'subUnitId':_0x40653e,'ref':'','id':_0x3b9455[_0x1ca81a(0x1fb)],'dT':f(+_0x3b9455['createTimestamp']),'threadId':_0x3b9455[_0x1ca81a(0x1bc)],'personId':(_0x440939=(_0x3be3a1=_0x3b9455[_0x1ca81a(0x1b8)])==null?void 0x0:_0x3be3a1[_0x1ca81a(0x1e5)])!=null?_0x440939:_0x3b9455[_0x1ca81a(0x1de)],'text':JSON[_0x1ca81a(0x204)](_0x3b9455[_0x1ca81a(0x1cd)]),'parentId':_0x11f726['id']});break;}case v['Delete']:{const _0x30e719=this[_0x1ca81a(0x224)][_0x1ca81a(0x1ff)](_0x5a64b3,_0x40653e,_0x3b9455[_0x1ca81a(0x1fb)]);_0x30e719&&_0x30e719['parentId']&&this[_0x1ca81a(0x224)]['deleteComment'](_0x5a64b3,_0x40653e,_0x3b9455[_0x1ca81a(0x1fb)]);break;}case v['Edit']:{this['_threadCommentModel']['updateComment'](_0x5a64b3,_0x40653e,{'commentId':_0x3b9455['replyId'],'text':JSON[_0x1ca81a(0x204)](_0x3b9455['content'])});break;}case v['Solve']:{const _0x22f02a=(_0x201b2e=this[_0x1ca81a(0x224)][_0x1ca81a(0x1ea)](_0x3b9455[_0x1ca81a(0x1c2)])[_0x1ca81a(0x1f1)](_0x4c56ad=>_0x4c56ad['threadId']===_0x3b9455['threadId']))==null?void 0x0:_0x201b2e[_0x1ca81a(0x1da)];_0x22f02a&&this['_threadCommentModel'][_0x1ca81a(0x1e2)](_0x5a64b3,_0x40653e,_0x22f02a['id'],_0x3b9455['solved']===I[_0x1ca81a(0x20d)]);break;}}}));}};_=E([S(0x0,c[_0x320824(0x21b)](b[_0x320824(0x228)])),S(0x1,c[_0x320824(0x21b)](M[_0x320824(0x1c4)])),S(0x2,c[_0x320824(0x21b)](c[_0x320824(0x1f9)])),S(0x3,c[_0x320824(0x21b)](c[_0x320824(0x1e7)]))],_);const q=_0x320824(0x20c),D={};var A=Object[_0x320824(0x1e9)],x=(_0x614bc9,_0x2816f9,_0x2312a4,_0x2dc4c2)=>{const _0x4d41fa=_0x320824;for(var _0x205f06=_0x2dc4c2>0x1?void 0x0:_0x2dc4c2?A(_0x2816f9,_0x2312a4):_0x2816f9,_0x342237=_0x614bc9[_0x4d41fa(0x1ba)]-0x1,_0x304db1;_0x342237>=0x0;_0x342237--)(_0x304db1=_0x614bc9[_0x342237])&&(_0x205f06=_0x304db1(_0x205f06)||_0x205f06);return _0x205f06;},C=(_0x56bfb8,_0x4dbe4b)=>(_0x270730,_0x5ea6a2)=>_0x4dbe4b(_0x270730,_0x5ea6a2,_0x56bfb8);function Y(_0xe3b5e9,_0x1011d0){const _0x40e66d=_0x320824,_0x6f779d=_0xe3b5e9[_0x40e66d(0x200)][0x0];return{..._0x1011d0,'id':_0x6f779d[_0x40e66d(0x1fb)],'resolved':_0xe3b5e9[_0x40e66d(0x20e)]===0x1,'dT':f(_0x6f779d[_0x40e66d(0x1ec)]),'personId':_0x6f779d[_0x40e66d(0x1de)],'threadId':_0x6f779d[_0x40e66d(0x1bc)]};}function G(_0x193ed8,_0x2ff490,_0x2cf254){const _0x27bbb9=_0x320824;var _0x3d3bd1,_0x43c80c;if(((_0x43c80c=(_0x3d3bd1=_0x193ed8==null?void 0x0:_0x193ed8['replies'])==null?void 0x0:_0x3d3bd1[_0x27bbb9(0x1ba)])!=null?_0x43c80c:0x0)>0x0){const _0xbe8caa=(_0x519c91,_0x511fee)=>({'id':_0x519c91[_0x27bbb9(0x1fb)],'threadId':_0x519c91[_0x27bbb9(0x1bc)],'dT':f(_0x519c91['createTimestamp']),'personId':_0x519c91[_0x27bbb9(0x1de)],'resolved':_0x193ed8[_0x27bbb9(0x20e)]===I[_0x27bbb9(0x20d)],'unitId':_0x2ff490,'subUnitId':_0x2cf254,'text':JSON['parse'](_0x519c91[_0x27bbb9(0x1cd)]),'parentId':_0x511fee}),_0x46fc10=_0xbe8caa(_0x193ed8[_0x27bbb9(0x200)][0x0]);return{..._0x46fc10,'children':_0x193ed8[_0x27bbb9(0x200)][_0x27bbb9(0x21c)](0x1)[_0x27bbb9(0x1ce)](_0x2adc9b=>_0xbe8caa(_0x2adc9b,_0x46fc10['id']))};}return null;}let p=class{constructor(_0x2bb934,_0x3866e6,_0x350035){const _0x551145=_0x320824;this['_httpService']=_0x2bb934,this[_0x551145(0x215)]=_0x3866e6,this['_sessionService']=_0x350035;}async['addComment'](_0x369eb3){const _0x570935=_0x320824;var _0x4ebe7d,_0x3c4d2d;const {parentId:_0x3dad1e,unitId:_0x52d254,text:_0x24cfef,threadId:_0xd3a9db}=_0x369eb3,_0x3b882c=(_0x3c4d2d=(_0x4ebe7d=_0x24cfef['customRanges'])==null?void 0x0:_0x4ebe7d[_0x570935(0x1bf)](_0x1ba2c3=>_0x1ba2c3[_0x570935(0x1f0)]===c[_0x570935(0x1d3)][_0x570935(0x20f)])[_0x570935(0x1ce)](_0x1481a=>_0x1481a[_0x570935(0x1c3)]))!=null?_0x3c4d2d:[],_0x28ea37=JSON[_0x570935(0x1d1)](_0x24cfef),_0x69cb38=(await this['_sessionService'][_0x570935(0x22a)](_0x52d254))[_0x570935(0x1e0)]();if(_0x3dad1e){const _0x148fe3={'memberId':_0x69cb38,'unitId':_0x52d254,'content':_0x28ea37,'mention':_0x3b882c,'threadId':_0xd3a9db},_0xaf5458=(await this[_0x570935(0x1be)][_0x570935(0x217)](_0x570935(0x1c6)+_0x52d254+'/reply',{'body':_0x148fe3}))[_0x570935(0x219)]['reply'];return{..._0x369eb3,'id':_0xaf5458[_0x570935(0x1fb)],'dT':c[_0x570935(0x1d6)](+_0xaf5458[_0x570935(0x1ec)])[_0x570935(0x214)](_0x570935(0x22e)),'personId':_0xaf5458[_0x570935(0x1de)]};}else{const _0x50bf70={'memberId':_0x69cb38,'unitId':_0x52d254,'content':_0x28ea37,'mention':_0x3b882c},_0x23d068=await this[_0x570935(0x1be)][_0x570935(0x217)](_0x570935(0x1c6)+_0x52d254+_0x570935(0x1bb),{'body':_0x50bf70});return Y(_0x23d068['body'][_0x570935(0x1fd)],_0x369eb3);}}async['updateComment'](_0x14ea21){const _0x41fbc2=_0x320824;var _0x162537,_0x532d7e;const {text:_0x3aba0d,unitId:_0x4a6234}=_0x14ea21,_0x3cc595=(_0x532d7e=(_0x162537=_0x3aba0d[_0x41fbc2(0x22b)])==null?void 0x0:_0x162537[_0x41fbc2(0x1bf)](_0x2948fa=>_0x2948fa[_0x41fbc2(0x1f0)]===c[_0x41fbc2(0x1d3)][_0x41fbc2(0x20f)])[_0x41fbc2(0x1ce)](_0x3ece4c=>_0x3ece4c['rangeId']))!=null?_0x532d7e:[],_0x1089cd=JSON[_0x41fbc2(0x1d1)](_0x3aba0d),_0x5142d5=_0x14ea21['threadId'],_0x1e6a29=_0x14ea21['id'],_0x11e368={'memberId':(await this[_0x41fbc2(0x1df)][_0x41fbc2(0x22a)](_0x4a6234))[_0x41fbc2(0x1e0)](),'unitId':_0x4a6234,'threadId':_0x5142d5,'mention':_0x3cc595,'content':_0x1089cd,'replyId':_0x1e6a29},_0x101d8b=await this[_0x41fbc2(0x1be)][_0x41fbc2(0x217)](_0x41fbc2(0x1c6)+_0x4a6234+_0x41fbc2(0x1b9),{'body':_0x11e368});return!_0x101d8b[_0x41fbc2(0x219)][_0x41fbc2(0x1ed)]||_0x101d8b[_0x41fbc2(0x219)][_0x41fbc2(0x1ed)][_0x41fbc2(0x1c5)]===0x1;}async['resolveComment'](_0xd2b682){const _0x1bfecb=_0x320824,{unitId:_0xa8fbe}=_0xd2b682,_0x1c7acf=_0xd2b682[_0x1bfecb(0x1bc)],_0xc37f5c={'memberId':this['_userService']['getCurrentUser']()[_0x1bfecb(0x1e5)],'unitId':_0xa8fbe,'threadId':_0x1c7acf,'solved':_0xd2b682[_0x1bfecb(0x222)]?I['Solved']:I['OpenOrReOpen']},_0x4825ce=await this['_httpService'][_0x1bfecb(0x217)](_0x1bfecb(0x1c6)+_0xa8fbe+_0x1bfecb(0x207),{'body':_0xc37f5c});return!_0x4825ce[_0x1bfecb(0x219)][_0x1bfecb(0x1ed)]||_0x4825ce[_0x1bfecb(0x219)][_0x1bfecb(0x1ed)]['code']===0x1;}async['deleteComment'](_0x1a6ce7,_0x22c8fd,_0x8bec7a,_0x14f9c5){const _0x35cc7a=_0x320824,_0x588ba3={'memberId':(await this[_0x35cc7a(0x1df)][_0x35cc7a(0x22a)](_0x1a6ce7))[_0x35cc7a(0x1e0)](),'threadId':_0x8bec7a,'replyId':_0x14f9c5,'unitId':_0x1a6ce7},_0x2cdb16=await this['_httpService'][_0x35cc7a(0x217)]('/universer-api/comment/unit/'+_0x1a6ce7+_0x35cc7a(0x22c),{'body':_0x588ba3});return!_0x2cdb16[_0x35cc7a(0x219)]['error']||_0x2cdb16[_0x35cc7a(0x219)][_0x35cc7a(0x1ed)][_0x35cc7a(0x1c5)]===0x1;}async[_0x320824(0x227)](_0x18e15b,_0x21b1cf,_0x435e5c){const _0x68aeb6=_0x320824,_0x43e348={'unitId':_0x18e15b,'threadId':_0x435e5c},_0x55037e=await this[_0x68aeb6(0x1be)][_0x68aeb6(0x217)](_0x68aeb6(0x1c6)+_0x18e15b+_0x68aeb6(0x226),{'body':_0x43e348}),_0x485f03=_0x435e5c['map'](_0x4e3091=>G(_0x55037e[_0x68aeb6(0x219)][_0x68aeb6(0x1cf)][_0x4e3091],_0x18e15b,_0x21b1cf))['filter'](Boolean);return Object[_0x68aeb6(0x1c1)](_0x55037e['body']['users'])['forEach'](_0x17d020=>{const _0x3cdd41=_0x68aeb6;this[_0x3cdd41(0x215)]['addUser'](_0x17d020);}),_0x485f03;}['saveCommentToSnapshot'](_0x44b7be){const _0x3b4965=_0x320824;return{'id':_0x44b7be['id'],'threadId':_0x44b7be[_0x3b4965(0x1bc)],'ref':_0x44b7be['ref']};}};function _0x3448(_0x395b86,_0x4cf981){_0x395b86=_0x395b86-0x1b6;const _0x4f973b=_0x4f97();let _0x344854=_0x4f973b[_0x395b86];return _0x344854;}p=x([C(0x0,c[_0x320824(0x21b)](P[_0x320824(0x216)])),C(0x1,c[_0x320824(0x21b)](c['UserManagerService'])),C(0x2,c[_0x320824(0x21b)](b[_0x320824(0x1ca)]))],p);var H=Object[_0x320824(0x1e9)],J=(_0x2667d3,_0x3c1636,_0x269e79,_0x52f0f9)=>{const _0x394286=_0x320824;for(var _0x3cc25b=_0x52f0f9>0x1?void 0x0:_0x52f0f9?H(_0x3c1636,_0x269e79):_0x3c1636,_0x49aa38=_0x2667d3[_0x394286(0x1ba)]-0x1,_0xdcb04e;_0x49aa38>=0x0;_0x49aa38--)(_0xdcb04e=_0x2667d3[_0x49aa38])&&(_0x3cc25b=_0xdcb04e(_0x3cc25b)||_0x3cc25b);return _0x3cc25b;},y=(_0xf63a0e,_0x4756b1)=>(_0x59a3e5,_0x36d21f)=>_0x4756b1(_0x59a3e5,_0x36d21f,_0xf63a0e);let g=class extends c[_0x320824(0x209)]{constructor(_0x2ab398,_0xec44db){const _0x482cce=_0x320824;super(),this[_0x482cce(0x208)]=_0x2ab398,this[_0x482cce(0x1fc)]=_0xec44db,this['_initDataSource']();}[_0x320824(0x1c8)](){const _0x1b8e42=_0x320824;this[_0x1b8e42(0x208)][_0x1b8e42(0x206)]=this['_threadCommentDataSource'],this[_0x1b8e42(0x208)]['syncUpdateMutationToColla']=!0x1;}};g=J([y(0x0,M[_0x320824(0x1ee)]),y(0x1,c[_0x320824(0x21b)](p))],g);var F=Object['defineProperty'],L=Object['getOwnPropertyDescriptor'],Z=(_0x3dd349,_0x5de03d,_0x287618)=>_0x5de03d in _0x3dd349?F(_0x3dd349,_0x5de03d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x287618}):_0x3dd349[_0x5de03d]=_0x287618,W=(_0x3e9922,_0x4cf239,_0x1bb037,_0x366262)=>{const _0x1fdeca=_0x320824;for(var _0x236d6b=_0x366262>0x1?void 0x0:_0x366262?L(_0x4cf239,_0x1bb037):_0x4cf239,_0x3be541=_0x3e9922[_0x1fdeca(0x1ba)]-0x1,_0x4a5858;_0x3be541>=0x0;_0x3be541--)(_0x4a5858=_0x3e9922[_0x3be541])&&(_0x236d6b=_0x4a5858(_0x236d6b)||_0x236d6b);return _0x236d6b;},O=(_0x73f52b,_0x6bac67)=>(_0x3a3c09,_0x16ac1d)=>_0x6bac67(_0x3a3c09,_0x16ac1d,_0x73f52b),N=(_0x44db95,_0x187ac1,_0x4da549)=>Z(_0x44db95,typeof _0x187ac1!='symbol'?_0x187ac1+'':_0x187ac1,_0x4da549);exports[_0x320824(0x1e4)]=class extends c['Plugin']{constructor(_0x6229ca=D,_0x1a8746,_0x37be96){const _0xd0e435=_0x320824;super(),this[_0xd0e435(0x1dd)]=_0x6229ca,this[_0xd0e435(0x225)]=_0x1a8746,this[_0xd0e435(0x1f4)]=_0x37be96;const {..._0x4e2b9d}=c[_0xd0e435(0x20b)]({},D,this[_0xd0e435(0x1dd)]);this[_0xd0e435(0x1f4)][_0xd0e435(0x223)](q,_0x4e2b9d);}['onStarting'](){const _0x190055=_0x320824;[[p],[g],[_]][_0x190055(0x1bd)](_0x2d83dc=>{const _0x657fb0=_0x190055;this[_0x657fb0(0x225)]['add'](_0x2d83dc);});}['onReady'](){const _0x3d9ef8=_0x320824;this[_0x3d9ef8(0x225)][_0x3d9ef8(0x1cc)](g),this['_injector'][_0x3d9ef8(0x1cc)](_);}},N(exports[_0x320824(0x1e4)],_0x320824(0x1db),U),N(exports[_0x320824(0x1e4)],_0x320824(0x21a),c[_0x320824(0x1c9)][_0x320824(0x1d7)]),exports[_0x320824(0x1e4)]=W([c[_0x320824(0x229)](w[_0x320824(0x1d9)],b[_0x320824(0x201)],T['UniverLicensePlugin']),O(0x1,c[_0x320824(0x21b)](c['Injector'])),O(0x2,c['IConfigService'])],exports[_0x320824(0x1e4)]);
1
+ function _0x2d45(){const _0x1875f0=['get','payload','iterator','_init','onStarting','UserManagerService','@univerjs-pro/license','prototype','getComment','filter','10iThujB','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','CommentUpdateEventType','body','IThreadCommentDataSourceService','/delete','deleteComment','rangeId','Solved','Plugin','230832qbPiii','type','32884cemXwH','Solve','Reply','8161632fVRpzt','forEach','resolveComment','updateComment','getOwnPropertyDescriptor','resolved','UniverLicensePlugin','content','enumerable','values','root','delete','rxjs','getUser','value','stringify','toStringTag','@univerjs-pro/collaboration-client','20304jpMgqC','replyId','userId','getUnit','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','/reply','rangeType','listComments','_configService','parentId','CommentService','OpenOrReOpen','reply','bufferTime','commentUpdate$','815zFYmCE','comment','post','dayjs','userID','size','syncUpdateMutationToColla','decorate','IConfigService','Edit','_initUserSync','configurable','/edit','Module','/add','88uKeMUR','pipe','COMMENT','/list','replies','HTTPService','Inject','0.17.0-insiders.20260318-d69dc16','defineProperty','1715880tsaOLD','format','_threadCommentDataSource','string','4WsAXBP','thread-comment-data-source.config','1694Cwhzak','dataSource','@univerjs/network','Disposable','memberId','version','user','CollaborationSessionService','saveCommentToSnapshot','object','ThreadCommentModel','createTimestamp','symbol','UniverThreadCommentUIPlugin','customRanges','unitId','/solved','users','personId','addComment','add','requireSession','_initDataSource','comments','/universer-api/user/list','getCurrentUser','solved','_threadCommentDataSourceService','Delete','map','_httpService','find','CommentSolvedStatus','length','constructor','@univerjs/protocol','setConfig','_sessionService','UniverThreadCommentDataSourcePlugin','subscribe','parse','merge','DependentOn','call','Injector','7994184KPhowh','error','94305gmEski','/universer-api/comment/unit/','YYYY/MM/DD\x20HH:mm','packageName','toPrimitive','@univerjs-pro/thread-comment-datasource','@univerjs/thread-comment','addUser','function','onReady','CustomRangeType','_userService','slice','UniverCollaborationClientPlugin','_injector','@univerjs/core','Add','@univerjs/thread-comment-ui','default','_commentService','pluginName','_config','disposeWithMe','mention','writable','getMemberID','threadId','code','_threadCommentModel','ref'];_0x2d45=function(){return _0x1875f0;};return _0x2d45();}const _0x540e9b=_0x39e2;(function(_0x1ea921,_0x3061be){const _0x41a067=_0x39e2,_0x4a082d=_0x1ea921();while(!![]){try{const _0x21e873=-parseInt(_0x41a067(0x14d))/0x1+parseInt(_0x41a067(0x18f))/0x2*(parseInt(_0x41a067(0x1c0))/0x3)+-parseInt(_0x41a067(0x14f))/0x4*(-parseInt(_0x41a067(0x173))/0x5)+-parseInt(_0x41a067(0x1be))/0x6+-parseInt(_0x41a067(0x191))/0x7*(-parseInt(_0x41a067(0x164))/0x8)+parseInt(_0x41a067(0x152))/0x9*(-parseInt(_0x41a067(0x143))/0xa)+-parseInt(_0x41a067(0x182))/0xb*(-parseInt(_0x41a067(0x18b))/0xc);if(_0x21e873===_0x3061be)break;else _0x4a082d['push'](_0x4a082d['shift']());}catch(_0xd789cd){_0x4a082d['push'](_0x4a082d['shift']());}}}(_0x2d45,0xa8b15));const _0x23e2c8={};_0x23e2c8[_0x540e9b(0x160)]=_0x540e9b(0x180),Object[_0x540e9b(0x18a)](exports,Symbol[_0x540e9b(0x162)],_0x23e2c8);let e=require(_0x540e9b(0x163)),t=require(_0x540e9b(0x13f)),n=require(_0x540e9b(0x1cf)),r=require(_0x540e9b(0x1d1)),i=require(_0x540e9b(0x1b4)),a=require(_0x540e9b(0x1c6)),o=require(_0x540e9b(0x15e)),s=require(_0x540e9b(0x193));var c=_0x540e9b(0x1c5),l=_0x540e9b(0x189);const u=_0x462166=>(0x0,n[_0x540e9b(0x176)])(new Date(+_0x462166))[_0x540e9b(0x18c)](_0x540e9b(0x1c2)),d=async(_0x3554f8,_0x594614)=>{const _0x5672fc=_0x540e9b;let _0x116400=_0x3554f8[_0x5672fc(0x139)](n[_0x5672fc(0x13e)]),_0x3f539a=_0x3554f8[_0x5672fc(0x139)](s[_0x5672fc(0x187)]);_0x594614[_0x5672fc(0x153)](_0x7ba9e7=>{const _0x2a4069=_0x5672fc;_0x116400[_0x2a4069(0x15f)](_0x7ba9e7)&&_0x594614[_0x2a4069(0x15d)](_0x7ba9e7);}),_0x594614[_0x5672fc(0x178)]&&(await _0x3f539a[_0x5672fc(0x139)](_0x5672fc(0x1a9),{'params':{'userIDs':[..._0x594614]}}))[_0x5672fc(0x146)][_0x5672fc(0x1a2)][_0x5672fc(0x153)](_0x3c5cb2=>{const _0x6c8898=_0x5672fc;_0x3c5cb2&&_0x116400[_0x6c8898(0x1c7)](_0x3c5cb2);});};function f(_0x142088,_0x4347e7){return function(_0x516e07,_0x235a3b){_0x4347e7(_0x516e07,_0x235a3b,_0x142088);};}function p(_0xe855e,_0x3b42b9,_0x256bd4,_0x1dbd31){const _0x2edb9c=_0x540e9b;var _0x1295a9=arguments[_0x2edb9c(0x1b2)],_0xb7c397=_0x1295a9<0x3?_0x3b42b9:_0x1dbd31===null?_0x1dbd31=Object[_0x2edb9c(0x156)](_0x3b42b9,_0x256bd4):_0x1dbd31,_0x2ecfd1;if(typeof Reflect==_0x2edb9c(0x19a)&&typeof Reflect[_0x2edb9c(0x17a)]==_0x2edb9c(0x1c8))_0xb7c397=Reflect[_0x2edb9c(0x17a)](_0xe855e,_0x3b42b9,_0x256bd4,_0x1dbd31);else{for(var _0x88ef70=_0xe855e[_0x2edb9c(0x1b2)]-0x1;_0x88ef70>=0x0;_0x88ef70--)(_0x2ecfd1=_0xe855e[_0x88ef70])&&(_0xb7c397=(_0x1295a9<0x3?_0x2ecfd1(_0xb7c397):_0x1295a9>0x3?_0x2ecfd1(_0x3b42b9,_0x256bd4,_0xb7c397):_0x2ecfd1(_0x3b42b9,_0x256bd4))||_0xb7c397);}return _0x1295a9>0x3&&_0xb7c397&&Object[_0x2edb9c(0x18a)](_0x3b42b9,_0x256bd4,_0xb7c397),_0xb7c397;}let m=class extends n[_0x540e9b(0x194)]{constructor(_0x4f063d,_0xfcc04c,_0x5c3f5e,_0x1f8032){const _0x3afc6e=_0x540e9b;super(),this[_0x3afc6e(0x1d3)]=_0x4f063d,this[_0x3afc6e(0x137)]=_0xfcc04c,this[_0x3afc6e(0x1cb)]=_0x5c3f5e,this[_0x3afc6e(0x1ce)]=_0x1f8032,this[_0x3afc6e(0x13c)](),this[_0x3afc6e(0x17d)]();}[_0x540e9b(0x17d)](){const _0xd02f42=_0x540e9b;this[_0xd02f42(0x1d6)](this[_0xd02f42(0x137)][_0xd02f42(0x172)][_0xd02f42(0x183)]((0x0,o[_0xd02f42(0x171)])(0x10))[_0xd02f42(0x1b8)](_0x1fde1d=>{const _0x14ba6d=_0xd02f42;let _0x5dbd49=new Set();_0x1fde1d[_0x14ba6d(0x153)](_0x2e10e8=>{const _0xd7144=_0x14ba6d;switch(_0x2e10e8[_0xd7144(0x14e)]){case _0xd7144(0x1a5):{let _0x22462b=_0x2e10e8[_0xd7144(0x13a)][_0xd7144(0x1a3)];_0x5dbd49[_0xd7144(0x1a5)](_0x22462b);break;}default:break;}}),d(this[_0x14ba6d(0x1ce)],_0x5dbd49);}));}[_0x540e9b(0x13c)](){const _0x560b62=_0x540e9b;this[_0x560b62(0x1d6)](this[_0x560b62(0x1d3)][_0x560b62(0x172)][_0x560b62(0x1b8)](async _0x3b5b4e=>{const _0x5cc02f=_0x560b62;var _0x3fc44f;let _0x133e99=(_0x3fc44f=this[_0x5cc02f(0x137)][_0x5cc02f(0x167)](_0x3b5b4e[_0x5cc02f(0x1a0)])[_0x5cc02f(0x1b0)](_0x485578=>_0x485578[_0x5cc02f(0x1da)]===_0x3b5b4e[_0x5cc02f(0x1da)]))==null?void 0x0:_0x3fc44f[_0x5cc02f(0x15c)];if(!_0x133e99)return;let {unitId:_0x1559df,subUnitId:_0x2dc8b0}=_0x133e99;switch(_0x3b5b4e[_0x5cc02f(0x197)]&&this[_0x5cc02f(0x1cb)][_0x5cc02f(0x1c7)](_0x3b5b4e[_0x5cc02f(0x197)]),_0x3b5b4e[_0x5cc02f(0x14e)]){case i[_0x5cc02f(0x145)][_0x5cc02f(0x1d0)]:break;case i[_0x5cc02f(0x145)][_0x5cc02f(0x151)]:var _0x44dcac,_0x2f7610;this[_0x5cc02f(0x137)][_0x5cc02f(0x1a4)](_0x1559df,_0x2dc8b0,{'unitId':_0x1559df,'subUnitId':_0x2dc8b0,'ref':'','id':_0x3b5b4e[_0x5cc02f(0x165)],'dT':u(+_0x3b5b4e[_0x5cc02f(0x19c)]),'threadId':_0x3b5b4e[_0x5cc02f(0x1da)],'personId':(_0x44dcac=(_0x2f7610=_0x3b5b4e[_0x5cc02f(0x197)])==null?void 0x0:_0x2f7610[_0x5cc02f(0x177)])==null?_0x3b5b4e[_0x5cc02f(0x166)]:_0x44dcac,'text':JSON[_0x5cc02f(0x1b9)](_0x3b5b4e[_0x5cc02f(0x159)]),'parentId':_0x133e99['id']});break;case i[_0x5cc02f(0x145)][_0x5cc02f(0x1ad)]:{let _0x101315=this[_0x5cc02f(0x137)][_0x5cc02f(0x141)](_0x1559df,_0x2dc8b0,_0x3b5b4e[_0x5cc02f(0x165)]);_0x101315&&_0x101315[_0x5cc02f(0x16d)]&&this[_0x5cc02f(0x137)][_0x5cc02f(0x149)](_0x1559df,_0x2dc8b0,_0x3b5b4e[_0x5cc02f(0x165)]);break;}case i[_0x5cc02f(0x145)][_0x5cc02f(0x17c)]:this[_0x5cc02f(0x137)][_0x5cc02f(0x155)](_0x1559df,_0x2dc8b0,{'commentId':_0x3b5b4e[_0x5cc02f(0x165)],'text':JSON[_0x5cc02f(0x1b9)](_0x3b5b4e[_0x5cc02f(0x159)])});break;case i[_0x5cc02f(0x145)][_0x5cc02f(0x150)]:{var _0xb2a940;let _0x5e27f3=(_0xb2a940=this[_0x5cc02f(0x137)][_0x5cc02f(0x167)](_0x3b5b4e[_0x5cc02f(0x1a0)])[_0x5cc02f(0x1b0)](_0x3c8c72=>_0x3c8c72[_0x5cc02f(0x1da)]===_0x3b5b4e[_0x5cc02f(0x1da)]))==null?void 0x0:_0xb2a940[_0x5cc02f(0x15c)];_0x5e27f3&&this[_0x5cc02f(0x137)][_0x5cc02f(0x154)](_0x1559df,_0x2dc8b0,_0x5e27f3['id'],_0x3b5b4e[_0x5cc02f(0x1ab)]===i[_0x5cc02f(0x1b1)][_0x5cc02f(0x14b)]);break;}default:break;}}));}};m=p([f(0x0,(0x0,n[_0x540e9b(0x188)])(e[_0x540e9b(0x16e)])),f(0x1,(0x0,n[_0x540e9b(0x188)])(a[_0x540e9b(0x19b)])),f(0x2,(0x0,n[_0x540e9b(0x188)])(n[_0x540e9b(0x13e)])),f(0x3,(0x0,n[_0x540e9b(0x188)])(n[_0x540e9b(0x1bd)]))],m);const h=_0x540e9b(0x190);Symbol(h);const g={};function _(_0x52cef3,_0x342913){const _0x5a638b=_0x540e9b;let _0x5e873f=_0x52cef3[_0x5a638b(0x186)][0x0];return{..._0x342913,'id':_0x5e873f[_0x5a638b(0x165)],'resolved':_0x52cef3[_0x5a638b(0x1ab)]===0x1,'dT':u(_0x5e873f[_0x5a638b(0x19c)]),'personId':_0x5e873f[_0x5a638b(0x166)],'threadId':_0x5e873f[_0x5a638b(0x1da)]};}function v(_0x1a99cc,_0x58cef5,_0x19bb9f){const _0x5616cc=_0x540e9b;var _0x4283d3,_0x183800;if(((_0x4283d3=_0x1a99cc==null||(_0x183800=_0x1a99cc[_0x5616cc(0x186)])==null?void 0x0:_0x183800[_0x5616cc(0x1b2)])==null?0x0:_0x4283d3)>0x0){let _0x241d99=(_0x236061,_0x1f514e)=>({'id':_0x236061[_0x5616cc(0x165)],'threadId':_0x236061[_0x5616cc(0x1da)],'dT':u(_0x236061[_0x5616cc(0x19c)]),'personId':_0x236061[_0x5616cc(0x166)],'resolved':_0x1a99cc[_0x5616cc(0x1ab)]===i[_0x5616cc(0x1b1)][_0x5616cc(0x14b)],'unitId':_0x58cef5,'subUnitId':_0x19bb9f,'text':JSON[_0x5616cc(0x1b9)](_0x236061[_0x5616cc(0x159)]),'parentId':_0x1f514e}),_0x3fbffd=_0x241d99(_0x1a99cc[_0x5616cc(0x186)][0x0]);return{..._0x3fbffd,'children':_0x1a99cc[_0x5616cc(0x186)][_0x5616cc(0x1cc)](0x1)[_0x5616cc(0x1ae)](_0x13b43e=>_0x241d99(_0x13b43e,_0x3fbffd['id']))};}return null;}function _0x39e2(_0x54fcca,_0x29699b){_0x54fcca=_0x54fcca-0x137;const _0x2d45b4=_0x2d45();let _0x39e247=_0x2d45b4[_0x54fcca];return _0x39e247;}let y=class{constructor(_0x421c03,_0x31910,_0x41eb23){const _0x5c1e11=_0x540e9b;this[_0x5c1e11(0x1af)]=_0x421c03,this[_0x5c1e11(0x1cb)]=_0x31910,this[_0x5c1e11(0x1b6)]=_0x41eb23;}async[_0x540e9b(0x1a4)](_0x2955bf){const _0x1f3469=_0x540e9b;var _0x410f01,_0xf15ef1;let {parentId:_0x5632ee,unitId:_0x521373,text:_0x1fd79a,threadId:_0x52b5d4}=_0x2955bf,_0x36c195=(_0x410f01=(_0xf15ef1=_0x1fd79a[_0x1f3469(0x19f)])==null?void 0x0:_0xf15ef1[_0x1f3469(0x142)](_0x5c04d6=>_0x5c04d6[_0x1f3469(0x16a)]===n[_0x1f3469(0x1ca)][_0x1f3469(0x184)])[_0x1f3469(0x1ae)](_0x31624f=>_0x31624f[_0x1f3469(0x14a)]))==null?[]:_0x410f01,_0x9695d7=JSON[_0x1f3469(0x161)](_0x1fd79a),_0x2a2697=(await this[_0x1f3469(0x1b6)][_0x1f3469(0x1a6)](_0x521373))[_0x1f3469(0x1d9)]();if(_0x5632ee){const _0xbb1e4d={};_0xbb1e4d[_0x1f3469(0x195)]=_0x2a2697,_0xbb1e4d[_0x1f3469(0x1a0)]=_0x521373,_0xbb1e4d[_0x1f3469(0x159)]=_0x9695d7,_0xbb1e4d[_0x1f3469(0x1d7)]=_0x36c195,_0xbb1e4d[_0x1f3469(0x1da)]=_0x52b5d4;let _0x5ec951=_0xbb1e4d,_0x3b54b9=(await this[_0x1f3469(0x1af)][_0x1f3469(0x175)](_0x1f3469(0x1c1)+_0x521373+_0x1f3469(0x169),{'body':_0x5ec951}))[_0x1f3469(0x146)][_0x1f3469(0x170)];return{..._0x2955bf,'id':_0x3b54b9[_0x1f3469(0x165)],'dT':(0x0,n[_0x1f3469(0x176)])(+_0x3b54b9[_0x1f3469(0x19c)])[_0x1f3469(0x18c)](_0x1f3469(0x1c2)),'personId':_0x3b54b9[_0x1f3469(0x166)]};}else{const _0x4b6e67={};_0x4b6e67[_0x1f3469(0x195)]=_0x2a2697,_0x4b6e67[_0x1f3469(0x1a0)]=_0x521373,_0x4b6e67[_0x1f3469(0x159)]=_0x9695d7,_0x4b6e67[_0x1f3469(0x1d7)]=_0x36c195;let _0xbc2b59=_0x4b6e67;const _0x4ba2a4={};return _0x4ba2a4[_0x1f3469(0x146)]=_0xbc2b59,_((await this[_0x1f3469(0x1af)][_0x1f3469(0x175)](_0x1f3469(0x1c1)+_0x521373+_0x1f3469(0x181),_0x4ba2a4))[_0x1f3469(0x146)][_0x1f3469(0x174)],_0x2955bf);}}async[_0x540e9b(0x155)](_0x4e4bbd){const _0x884f6e=_0x540e9b;var _0xba71a0,_0x27cf1e;let {text:_0x2632c3,unitId:_0x2f094b}=_0x4e4bbd,_0x3a0c8b=(_0xba71a0=(_0x27cf1e=_0x2632c3[_0x884f6e(0x19f)])==null?void 0x0:_0x27cf1e[_0x884f6e(0x142)](_0x1ca08a=>_0x1ca08a[_0x884f6e(0x16a)]===n[_0x884f6e(0x1ca)][_0x884f6e(0x184)])[_0x884f6e(0x1ae)](_0x6a55b1=>_0x6a55b1[_0x884f6e(0x14a)]))==null?[]:_0xba71a0,_0x3afa25=JSON[_0x884f6e(0x161)](_0x2632c3),_0x2e97b1=_0x4e4bbd[_0x884f6e(0x1da)],_0x19a1a9=_0x4e4bbd['id'],_0x51cde7={'memberId':(await this[_0x884f6e(0x1b6)][_0x884f6e(0x1a6)](_0x2f094b))[_0x884f6e(0x1d9)](),'unitId':_0x2f094b,'threadId':_0x2e97b1,'mention':_0x3a0c8b,'content':_0x3afa25,'replyId':_0x19a1a9},_0x4b12a4=await this[_0x884f6e(0x1af)][_0x884f6e(0x175)](_0x884f6e(0x1c1)+_0x2f094b+_0x884f6e(0x17f),{'body':_0x51cde7});return!_0x4b12a4[_0x884f6e(0x146)][_0x884f6e(0x1bf)]||_0x4b12a4[_0x884f6e(0x146)][_0x884f6e(0x1bf)][_0x884f6e(0x1db)]===0x1;}async[_0x540e9b(0x154)](_0x2cb785){const _0x1391c9=_0x540e9b;let {unitId:_0x31f60b}=_0x2cb785,_0x68ef61=_0x2cb785[_0x1391c9(0x1da)],_0x1532d3={'memberId':this[_0x1391c9(0x1cb)][_0x1391c9(0x1aa)]()[_0x1391c9(0x177)],'unitId':_0x31f60b,'threadId':_0x68ef61,'solved':_0x2cb785[_0x1391c9(0x157)]?i[_0x1391c9(0x1b1)][_0x1391c9(0x14b)]:i[_0x1391c9(0x1b1)][_0x1391c9(0x16f)]},_0x37c521=await this[_0x1391c9(0x1af)][_0x1391c9(0x175)](_0x1391c9(0x1c1)+_0x31f60b+_0x1391c9(0x1a1),{'body':_0x1532d3});return!_0x37c521[_0x1391c9(0x146)][_0x1391c9(0x1bf)]||_0x37c521[_0x1391c9(0x146)][_0x1391c9(0x1bf)][_0x1391c9(0x1db)]===0x1;}async[_0x540e9b(0x149)](_0x4053ab,_0x51539d,_0x3ef6b8,_0x686573){const _0x4a0c26=_0x540e9b;let _0x32718f={'memberId':(await this[_0x4a0c26(0x1b6)][_0x4a0c26(0x1a6)](_0x4053ab))[_0x4a0c26(0x1d9)](),'threadId':_0x3ef6b8,'replyId':_0x686573,'unitId':_0x4053ab},_0x1745d6=await this[_0x4a0c26(0x1af)][_0x4a0c26(0x175)](_0x4a0c26(0x1c1)+_0x4053ab+_0x4a0c26(0x148),{'body':_0x32718f});return!_0x1745d6[_0x4a0c26(0x146)][_0x4a0c26(0x1bf)]||_0x1745d6[_0x4a0c26(0x146)][_0x4a0c26(0x1bf)][_0x4a0c26(0x1db)]===0x1;}async[_0x540e9b(0x16b)](_0x141112,_0x5d152a,_0x391003){const _0x28c15f=_0x540e9b,_0xc5d3c6={};_0xc5d3c6[_0x28c15f(0x1a0)]=_0x141112,_0xc5d3c6[_0x28c15f(0x1da)]=_0x391003;let _0x5592ac=_0xc5d3c6,_0x566da8=await this[_0x28c15f(0x1af)][_0x28c15f(0x175)](_0x28c15f(0x1c1)+_0x141112+_0x28c15f(0x185),{'body':_0x5592ac}),_0xec130f=_0x391003[_0x28c15f(0x1ae)](_0x51b3a2=>v(_0x566da8[_0x28c15f(0x146)][_0x28c15f(0x1a8)][_0x51b3a2],_0x141112,_0x5d152a))[_0x28c15f(0x142)](Boolean);return Object[_0x28c15f(0x15b)](_0x566da8[_0x28c15f(0x146)][_0x28c15f(0x1a2)])[_0x28c15f(0x153)](_0x34af80=>{const _0x45d9a3=_0x28c15f;this[_0x45d9a3(0x1cb)][_0x45d9a3(0x1c7)](_0x34af80);}),_0xec130f;}[_0x540e9b(0x199)](_0xb37378){const _0x1d2c1d=_0x540e9b,_0x4847a6={};return _0x4847a6['id']=_0xb37378['id'],_0x4847a6[_0x1d2c1d(0x1da)]=_0xb37378[_0x1d2c1d(0x1da)],_0x4847a6[_0x1d2c1d(0x138)]=_0xb37378[_0x1d2c1d(0x138)],_0x4847a6;}};y=p([f(0x0,(0x0,n[_0x540e9b(0x188)])(s[_0x540e9b(0x187)])),f(0x1,(0x0,n[_0x540e9b(0x188)])(n[_0x540e9b(0x13e)])),f(0x2,(0x0,n[_0x540e9b(0x188)])(e[_0x540e9b(0x198)]))],y);let b=class extends n[_0x540e9b(0x194)]{constructor(_0x404c4d,_0x352350){const _0x34ed0e=_0x540e9b;super(),this[_0x34ed0e(0x1ac)]=_0x404c4d,this[_0x34ed0e(0x18d)]=_0x352350,this[_0x34ed0e(0x1a7)]();}[_0x540e9b(0x1a7)](){const _0x8c7ed8=_0x540e9b;this[_0x8c7ed8(0x1ac)][_0x8c7ed8(0x192)]=this[_0x8c7ed8(0x18d)],this[_0x8c7ed8(0x1ac)][_0x8c7ed8(0x179)]=!0x1;}};b=p([f(0x0,a[_0x540e9b(0x147)]),f(0x1,(0x0,n[_0x540e9b(0x188)])(y))],b);function x(_0x128a46){'@babel/helpers - typeof';const _0x2d7484=_0x540e9b;return x=typeof Symbol==_0x2d7484(0x1c8)&&typeof Symbol[_0x2d7484(0x13b)]==_0x2d7484(0x19d)?function(_0x308a0e){return typeof _0x308a0e;}:function(_0x1efb9b){const _0x5ca818=_0x2d7484;return _0x1efb9b&&typeof Symbol==_0x5ca818(0x1c8)&&_0x1efb9b[_0x5ca818(0x1b3)]===Symbol&&_0x1efb9b!==Symbol[_0x5ca818(0x140)]?_0x5ca818(0x19d):typeof _0x1efb9b;},x(_0x128a46);}function S(_0x471400,_0x6b3e0f){const _0x4d5bae=_0x540e9b;if(x(_0x471400)!=_0x4d5bae(0x19a)||!_0x471400)return _0x471400;var _0x1560c5=_0x471400[Symbol[_0x4d5bae(0x1c4)]];if(_0x1560c5!==void 0x0){var _0x3ce26d=_0x1560c5[_0x4d5bae(0x1bc)](_0x471400,_0x6b3e0f||_0x4d5bae(0x1d2));if(x(_0x3ce26d)!=_0x4d5bae(0x19a))return _0x3ce26d;throw TypeError(_0x4d5bae(0x144));}return(_0x6b3e0f===_0x4d5bae(0x18e)?String:Number)(_0x471400);}function C(_0x5b62f9){const _0x113a57=_0x540e9b;var _0x3ebbc2=S(_0x5b62f9,_0x113a57(0x18e));return x(_0x3ebbc2)==_0x113a57(0x19d)?_0x3ebbc2:_0x3ebbc2+'';}function w(_0x45d1cd,_0x10ce4d,_0x239110){const _0x4cf2ab=_0x540e9b,_0x2c5031={};return _0x2c5031[_0x4cf2ab(0x160)]=_0x239110,_0x2c5031[_0x4cf2ab(0x15a)]=!0x0,_0x2c5031[_0x4cf2ab(0x17e)]=!0x0,_0x2c5031[_0x4cf2ab(0x1d8)]=!0x0,((_0x10ce4d=C(_0x10ce4d))in _0x45d1cd?Object[_0x4cf2ab(0x18a)](_0x45d1cd,_0x10ce4d,_0x2c5031):_0x45d1cd[_0x10ce4d]=_0x239110,_0x45d1cd);}let T=class extends n[_0x540e9b(0x14c)]{constructor(_0x285063=g,_0x5cf980,_0x5603c7){const _0xc17b29=_0x540e9b;super(),this[_0xc17b29(0x1d5)]=_0x285063,this[_0xc17b29(0x1ce)]=_0x5cf980,this[_0xc17b29(0x16c)]=_0x5603c7;let {..._0x4dbbb9}=(0x0,n[_0xc17b29(0x1ba)])({},g,this[_0xc17b29(0x1d5)]);this[_0xc17b29(0x16c)][_0xc17b29(0x1b5)](h,_0x4dbbb9);}[_0x540e9b(0x13d)](){const _0x4ffc2e=_0x540e9b;[[y],[b],[m]][_0x4ffc2e(0x153)](_0xc1364e=>{const _0x59811a=_0x4ffc2e;this[_0x59811a(0x1ce)][_0x59811a(0x1a5)](_0xc1364e);});}[_0x540e9b(0x1c9)](){const _0x44cdc8=_0x540e9b;this[_0x44cdc8(0x1ce)][_0x44cdc8(0x139)](b),this[_0x44cdc8(0x1ce)][_0x44cdc8(0x139)](m);}};w(T,_0x540e9b(0x1d4),_0x540e9b(0x168)),w(T,_0x540e9b(0x1c3),c),w(T,_0x540e9b(0x196),l),T=p([(0x0,n[_0x540e9b(0x1bb)])(r[_0x540e9b(0x19e)],e[_0x540e9b(0x1cd)],t[_0x540e9b(0x158)]),f(0x1,(0x0,n[_0x540e9b(0x188)])(n[_0x540e9b(0x1bd)])),f(0x2,n[_0x540e9b(0x17b)])],T),Object[_0x540e9b(0x18a)](exports,_0x540e9b(0x1b7),{'enumerable':!0x0,'get':function(){return T;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1c4990=_0x37a2;(function(_0x54bbc5,_0xe0f6fc){const _0x38a8ac=_0x37a2,_0x1381ee=_0x54bbc5();while(!![]){try{const _0x3aa1eb=-parseInt(_0x38a8ac(0xef))/0x1+-parseInt(_0x38a8ac(0x10b))/0x2*(-parseInt(_0x38a8ac(0xf2))/0x3)+-parseInt(_0x38a8ac(0x102))/0x4+parseInt(_0x38a8ac(0xee))/0x5+parseInt(_0x38a8ac(0x118))/0x6*(-parseInt(_0x38a8ac(0x110))/0x7)+-parseInt(_0x38a8ac(0xf7))/0x8+parseInt(_0x38a8ac(0x106))/0x9;if(_0x3aa1eb===_0xe0f6fc)break;else _0x1381ee['push'](_0x1381ee['shift']());}catch(_0x3fd14b){_0x1381ee['push'](_0x1381ee['shift']());}}}(_0x5d44,0x4be44));import{CommentService as _0x278af8,CollaborationSessionService as _0x5417b5,UniverCollaborationClientPlugin as _0x4fb59d}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x2c8ed9}from'@univerjs-pro/license';import{dayjs as _0x5b2334,UserManagerService as _0x4e911f,Inject as _0x108585,Injector as _0x2d7221,Disposable as _0x2c9fc3,CustomRangeType as _0x11ff2a,UniverInstanceType as _0x22c964,DependentOn as _0x4a4332,Plugin as _0x21d69d,merge as _0x49cd4d,IConfigService as _0x440bd9}from'@univerjs/core';function _0x5d44(){const _0x24d7fe=['userId','Delete','UNRECOGNIZED','/delete','_sessionService','_config','reply','requireSession','users','syncUpdateMutationToColla','slice','Unknown','Reply','1859205ZqtcBQ','185859TLmOvm','OpenOrReOpen','body','1038rYgssC','threadId','_init','replies','customRanges','2004256PfLaNi','userID','_initUserSync','pluginName','resolved','root','/reply','rangeId','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','length','updateComment','870664OYMeBY','UNIVER_UNKNOWN','symbol','defineProperty','3931740HkgxHN','/list','dataSource','/edit','type','2766gefcSB','/add','Solved','listComments','map','35rhqpDw','delete','get','personId','Add','/universer-api/comment/unit/','parse','addComment','386772kwDwfN','forEach','add','getUnit','format','YYYY/MM/DD\x20HH:mm','parentId','_threadCommentDataSource','resolveComment','error','subscribe','saveCommentToSnapshot','onReady','rangeType','ref','stringify','replyId','values','_configService','createTimestamp','_injector','comments','_commentService','post','getOwnPropertyDescriptor','setConfig','/universer-api/user/list','commentUpdate$','addUser','getComment','pipe','_userService','_threadCommentDataSourceService','_initDataSource','getMemberID','deleteComment','thread-comment-data-source.config','Edit','onStarting','user','getUser','_threadCommentModel','Solve','solved','filter','COMMENT','disposeWithMe','code','_httpService','content','unitId'];_0x5d44=function(){return _0x24d7fe;};return _0x5d44();}import{UniverThreadCommentUIPlugin as _0x33ba46}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x54e638,IThreadCommentDataSourceService as _0x7340a4}from'@univerjs/thread-comment';import{bufferTime as _0x3ed3f1}from'rxjs';import{HTTPService as _0x23a127}from'@univerjs/network';const W=_0x1c4990(0xff);var I=(_0x3e2845=>(_0x3e2845[_0x3e2845[_0x1c4990(0xf0)]=0x0]='OpenOrReOpen',_0x3e2845[_0x3e2845[_0x1c4990(0x10d)]=0x1]='Solved',_0x3e2845[_0x3e2845[_0x1c4990(0xe3)]=-0x1]=_0x1c4990(0xe3),_0x3e2845))(I||{}),v=(_0xb69aba=>(_0xb69aba[_0xb69aba[_0x1c4990(0xec)]=0x0]=_0x1c4990(0xec),_0xb69aba[_0xb69aba[_0x1c4990(0x114)]=0x1]=_0x1c4990(0x114),_0xb69aba[_0xb69aba[_0x1c4990(0xed)]=0x2]=_0x1c4990(0xed),_0xb69aba[_0xb69aba[_0x1c4990(0xd3)]=0x3]=_0x1c4990(0xd3),_0xb69aba[_0xb69aba[_0x1c4990(0xe2)]=0x4]=_0x1c4990(0xe2),_0xb69aba[_0xb69aba[_0x1c4990(0xd8)]=0x5]=_0x1c4990(0xd8),_0xb69aba[_0xb69aba[_0x1c4990(0xe3)]=-0x1]='UNRECOGNIZED',_0xb69aba))(v||{});function _0x37a2(_0x4089be,_0x559117){_0x4089be=_0x4089be-0xc3;const _0x5d44ad=_0x5d44();let _0x37a29e=_0x5d44ad[_0x4089be];return _0x37a29e;}const y=_0x40d80b=>_0x5b2334(new Date(+_0x40d80b))[_0x1c4990(0x11c)](_0x1c4990(0x11d)),B=async(_0x3cc7f2,_0x442646)=>{const _0x3429a9=_0x1c4990,_0x5a03fc=_0x3cc7f2[_0x3429a9(0x112)](_0x4e911f),_0x2fda37=_0x3cc7f2['get'](_0x23a127);_0x442646[_0x3429a9(0x119)](_0x4dcb1c=>{const _0x24859f=_0x3429a9;_0x5a03fc[_0x24859f(0xd6)](_0x4dcb1c)&&_0x442646[_0x24859f(0x111)](_0x4dcb1c);}),_0x442646['size']&&(await _0x2fda37[_0x3429a9(0x112)](_0x3429a9(0xc8),{'params':{'userIDs':[..._0x442646]}}))[_0x3429a9(0xf1)][_0x3429a9(0xe9)][_0x3429a9(0x119)](_0x39929e=>{const _0x55272c=_0x3429a9;_0x39929e&&_0x5a03fc[_0x55272c(0xca)](_0x39929e);});};var K=Object[_0x1c4990(0xc6)],V=(_0x36a719,_0x446352,_0x630a7a,_0x19e310)=>{const _0x296f3c=_0x1c4990;for(var _0x1a0b07=_0x19e310>0x1?void 0x0:_0x19e310?K(_0x446352,_0x630a7a):_0x446352,_0x350ed8=_0x36a719[_0x296f3c(0x100)]-0x1,_0x47c209;_0x350ed8>=0x0;_0x350ed8--)(_0x47c209=_0x36a719[_0x350ed8])&&(_0x1a0b07=_0x47c209(_0x1a0b07)||_0x1a0b07);return _0x1a0b07;},p=(_0x4f7ad6,_0x5ef58f)=>(_0x26b672,_0x161874)=>_0x5ef58f(_0x26b672,_0x161874,_0x4f7ad6);let _=class extends _0x2c9fc3{constructor(_0x7df6b6,_0x43303f,_0xc1cb11,_0x76d89f){const _0x3510e0=_0x1c4990;super(),this[_0x3510e0(0xc4)]=_0x7df6b6,this[_0x3510e0(0xd7)]=_0x43303f,this['_userService']=_0xc1cb11,this[_0x3510e0(0x12c)]=_0x76d89f,this[_0x3510e0(0xf4)](),this[_0x3510e0(0xf9)]();}[_0x1c4990(0xf9)](){const _0x233f80=_0x1c4990;this[_0x233f80(0xdc)](this['_threadCommentModel'][_0x233f80(0xc9)][_0x233f80(0xcc)](_0x3ed3f1(0x10))[_0x233f80(0x122)](_0x14df9b=>{const _0x175d5a=_0x233f80,_0x4753e7=new Set();_0x14df9b[_0x175d5a(0x119)](_0x40cd96=>{const _0x298787=_0x175d5a;if(_0x40cd96[_0x298787(0x10a)]===_0x298787(0x11a)){const _0x179b2f=_0x40cd96['payload'][_0x298787(0x113)];_0x4753e7[_0x298787(0x11a)](_0x179b2f);}}),B(this[_0x175d5a(0x12c)],_0x4753e7);}));}[_0x1c4990(0xf4)](){const _0x4c9bf3=_0x1c4990;this[_0x4c9bf3(0xdc)](this[_0x4c9bf3(0xc4)][_0x4c9bf3(0xc9)][_0x4c9bf3(0x122)](async _0x123081=>{const _0x1a1548=_0x4c9bf3;var _0x58c976,_0x5013ef,_0x56f182,_0x433c01;const _0x15b03a=(_0x58c976=this[_0x1a1548(0xd7)][_0x1a1548(0x11b)](_0x123081[_0x1a1548(0xe0)])['find'](_0x12282c=>_0x12282c[_0x1a1548(0xf3)]===_0x123081[_0x1a1548(0xf3)]))==null?void 0x0:_0x58c976[_0x1a1548(0xfc)];if(!_0x15b03a)return;const {unitId:_0x5b2556,subUnitId:_0x47606f}=_0x15b03a;switch(_0x123081[_0x1a1548(0xd5)]&&this[_0x1a1548(0xcd)][_0x1a1548(0xca)](_0x123081['user']),_0x123081[_0x1a1548(0x10a)]){case v[_0x1a1548(0x114)]:break;case v['Reply']:{this[_0x1a1548(0xd7)][_0x1a1548(0x117)](_0x5b2556,_0x47606f,{'unitId':_0x5b2556,'subUnitId':_0x47606f,'ref':'','id':_0x123081[_0x1a1548(0x128)],'dT':y(+_0x123081[_0x1a1548(0x12b)]),'threadId':_0x123081[_0x1a1548(0xf3)],'personId':(_0x56f182=(_0x5013ef=_0x123081[_0x1a1548(0xd5)])==null?void 0x0:_0x5013ef['userID'])!=null?_0x56f182:_0x123081['userId'],'text':JSON[_0x1a1548(0x116)](_0x123081[_0x1a1548(0xdf)]),'parentId':_0x15b03a['id']});break;}case v['Delete']:{const _0x37fef5=this[_0x1a1548(0xd7)][_0x1a1548(0xcb)](_0x5b2556,_0x47606f,_0x123081['replyId']);_0x37fef5&&_0x37fef5[_0x1a1548(0x11e)]&&this[_0x1a1548(0xd7)]['deleteComment'](_0x5b2556,_0x47606f,_0x123081[_0x1a1548(0x128)]);break;}case v[_0x1a1548(0xd3)]:{this[_0x1a1548(0xd7)][_0x1a1548(0x101)](_0x5b2556,_0x47606f,{'commentId':_0x123081[_0x1a1548(0x128)],'text':JSON[_0x1a1548(0x116)](_0x123081[_0x1a1548(0xdf)])});break;}case v[_0x1a1548(0xd8)]:{const _0x5b1f61=(_0x433c01=this['_threadCommentModel'][_0x1a1548(0x11b)](_0x123081[_0x1a1548(0xe0)])['find'](_0x383b3f=>_0x383b3f[_0x1a1548(0xf3)]===_0x123081[_0x1a1548(0xf3)]))==null?void 0x0:_0x433c01[_0x1a1548(0xfc)];_0x5b1f61&&this[_0x1a1548(0xd7)][_0x1a1548(0x120)](_0x5b2556,_0x47606f,_0x5b1f61['id'],_0x123081['solved']===I[_0x1a1548(0x10d)]);break;}}}));}};_=V([p(0x0,_0x108585(_0x278af8)),p(0x1,_0x108585(_0x54e638)),p(0x2,_0x108585(_0x4e911f)),p(0x3,_0x108585(_0x2d7221))],_);const z=_0x1c4990(0xd2),O={};var k=Object[_0x1c4990(0xc6)],Q=(_0x4bb896,_0x3c563d,_0x3dcc2e,_0x3a5e29)=>{for(var _0x223ec3=_0x3a5e29>0x1?void 0x0:_0x3a5e29?k(_0x3c563d,_0x3dcc2e):_0x3c563d,_0x53dec0=_0x4bb896['length']-0x1,_0x56ffab;_0x53dec0>=0x0;_0x53dec0--)(_0x56ffab=_0x4bb896[_0x53dec0])&&(_0x223ec3=_0x56ffab(_0x223ec3)||_0x223ec3);return _0x223ec3;},b=(_0x267a8b,_0x437b0f)=>(_0x81f267,_0x5e3a5f)=>_0x437b0f(_0x81f267,_0x5e3a5f,_0x267a8b);function X(_0x3f0a39,_0x34f7d2){const _0x13a7d7=_0x1c4990,_0x34b8a7=_0x3f0a39[_0x13a7d7(0xf5)][0x0];return{..._0x34f7d2,'id':_0x34b8a7[_0x13a7d7(0x128)],'resolved':_0x3f0a39[_0x13a7d7(0xd9)]===0x1,'dT':y(_0x34b8a7[_0x13a7d7(0x12b)]),'personId':_0x34b8a7[_0x13a7d7(0xe1)],'threadId':_0x34b8a7['threadId']};}function ee(_0x748a8d,_0x2fef79,_0x5407fb){const _0x395350=_0x1c4990;var _0x199550,_0x5b80fe;if(((_0x5b80fe=(_0x199550=_0x748a8d==null?void 0x0:_0x748a8d[_0x395350(0xf5)])==null?void 0x0:_0x199550['length'])!=null?_0x5b80fe:0x0)>0x0){const _0x41758e=(_0x4f7dee,_0x169062)=>({'id':_0x4f7dee[_0x395350(0x128)],'threadId':_0x4f7dee['threadId'],'dT':y(_0x4f7dee['createTimestamp']),'personId':_0x4f7dee[_0x395350(0xe1)],'resolved':_0x748a8d[_0x395350(0xd9)]===I[_0x395350(0x10d)],'unitId':_0x2fef79,'subUnitId':_0x5407fb,'text':JSON[_0x395350(0x116)](_0x4f7dee[_0x395350(0xdf)]),'parentId':_0x169062}),_0x391086=_0x41758e(_0x748a8d[_0x395350(0xf5)][0x0]);return{..._0x391086,'children':_0x748a8d['replies'][_0x395350(0xeb)](0x1)[_0x395350(0x10f)](_0x2eb096=>_0x41758e(_0x2eb096,_0x391086['id']))};}return null;}let S=class{constructor(_0x50ab96,_0x3aaf62,_0x554d8e){const _0x2fea0f=_0x1c4990;this[_0x2fea0f(0xde)]=_0x50ab96,this[_0x2fea0f(0xcd)]=_0x3aaf62,this[_0x2fea0f(0xe5)]=_0x554d8e;}async[_0x1c4990(0x117)](_0x1a7d5f){const _0x749028=_0x1c4990;var _0x52c72b,_0x15a47e;const {parentId:_0x490d09,unitId:_0x396f65,text:_0x3004c3,threadId:_0x513f4c}=_0x1a7d5f,_0x2e4409=(_0x15a47e=(_0x52c72b=_0x3004c3[_0x749028(0xf6)])==null?void 0x0:_0x52c72b[_0x749028(0xda)](_0x165cfc=>_0x165cfc[_0x749028(0x125)]===_0x11ff2a[_0x749028(0xdb)])[_0x749028(0x10f)](_0x186c68=>_0x186c68[_0x749028(0xfe)]))!=null?_0x15a47e:[],_0x2184b9=JSON[_0x749028(0x127)](_0x3004c3),_0x385dd5=(await this[_0x749028(0xe5)][_0x749028(0xe8)](_0x396f65))[_0x749028(0xd0)]();if(_0x490d09){const _0x487cfe={'memberId':_0x385dd5,'unitId':_0x396f65,'content':_0x2184b9,'mention':_0x2e4409,'threadId':_0x513f4c},_0x422576=(await this[_0x749028(0xde)][_0x749028(0xc5)]('/universer-api/comment/unit/'+_0x396f65+_0x749028(0xfd),{'body':_0x487cfe}))[_0x749028(0xf1)][_0x749028(0xe7)];return{..._0x1a7d5f,'id':_0x422576[_0x749028(0x128)],'dT':_0x5b2334(+_0x422576['createTimestamp'])[_0x749028(0x11c)]('YYYY/MM/DD\x20HH:mm'),'personId':_0x422576[_0x749028(0xe1)]};}else{const _0x369960={'memberId':_0x385dd5,'unitId':_0x396f65,'content':_0x2184b9,'mention':_0x2e4409},_0x535b31=await this[_0x749028(0xde)][_0x749028(0xc5)](_0x749028(0x115)+_0x396f65+_0x749028(0x10c),{'body':_0x369960});return X(_0x535b31['body']['comment'],_0x1a7d5f);}}async['updateComment'](_0x369df0){const _0x48629d=_0x1c4990;var _0x23b1d0,_0x36d45c;const {text:_0x404232,unitId:_0x41e7b6}=_0x369df0,_0x29d593=(_0x36d45c=(_0x23b1d0=_0x404232[_0x48629d(0xf6)])==null?void 0x0:_0x23b1d0[_0x48629d(0xda)](_0x1806e6=>_0x1806e6['rangeType']===_0x11ff2a['COMMENT'])[_0x48629d(0x10f)](_0xae005d=>_0xae005d[_0x48629d(0xfe)]))!=null?_0x36d45c:[],_0x171d31=JSON['stringify'](_0x404232),_0x1c7e3a=_0x369df0['threadId'],_0x2b5a73=_0x369df0['id'],_0x3f7d42={'memberId':(await this[_0x48629d(0xe5)]['requireSession'](_0x41e7b6))['getMemberID'](),'unitId':_0x41e7b6,'threadId':_0x1c7e3a,'mention':_0x29d593,'content':_0x171d31,'replyId':_0x2b5a73},_0x4c3a8b=await this[_0x48629d(0xde)]['post']('/universer-api/comment/unit/'+_0x41e7b6+_0x48629d(0x109),{'body':_0x3f7d42});return!_0x4c3a8b['body'][_0x48629d(0x121)]||_0x4c3a8b[_0x48629d(0xf1)][_0x48629d(0x121)][_0x48629d(0xdd)]===0x1;}async['resolveComment'](_0x3e49a5){const _0x8f86e2=_0x1c4990,{unitId:_0x20fc31}=_0x3e49a5,_0x2f95c2=_0x3e49a5['threadId'],_0x2a8a3f={'memberId':this[_0x8f86e2(0xcd)]['getCurrentUser']()[_0x8f86e2(0xf8)],'unitId':_0x20fc31,'threadId':_0x2f95c2,'solved':_0x3e49a5[_0x8f86e2(0xfb)]?I[_0x8f86e2(0x10d)]:I[_0x8f86e2(0xf0)]},_0x2bbce0=await this['_httpService'][_0x8f86e2(0xc5)](_0x8f86e2(0x115)+_0x20fc31+'/solved',{'body':_0x2a8a3f});return!_0x2bbce0[_0x8f86e2(0xf1)]['error']||_0x2bbce0['body'][_0x8f86e2(0x121)][_0x8f86e2(0xdd)]===0x1;}async[_0x1c4990(0xd1)](_0x24fcdd,_0x1288a7,_0x53f267,_0x2f707f){const _0x141d46=_0x1c4990,_0x160c26={'memberId':(await this[_0x141d46(0xe5)][_0x141d46(0xe8)](_0x24fcdd))['getMemberID'](),'threadId':_0x53f267,'replyId':_0x2f707f,'unitId':_0x24fcdd},_0x3b8df8=await this[_0x141d46(0xde)][_0x141d46(0xc5)](_0x141d46(0x115)+_0x24fcdd+_0x141d46(0xe4),{'body':_0x160c26});return!_0x3b8df8['body'][_0x141d46(0x121)]||_0x3b8df8['body']['error'][_0x141d46(0xdd)]===0x1;}async[_0x1c4990(0x10e)](_0x55bc69,_0x53a9ce,_0x330570){const _0x2439f2=_0x1c4990,_0x16ee93={'unitId':_0x55bc69,'threadId':_0x330570},_0x5c7c4d=await this[_0x2439f2(0xde)][_0x2439f2(0xc5)](_0x2439f2(0x115)+_0x55bc69+_0x2439f2(0x107),{'body':_0x16ee93}),_0x2cfb57=_0x330570[_0x2439f2(0x10f)](_0xb9d311=>ee(_0x5c7c4d['body'][_0x2439f2(0xc3)][_0xb9d311],_0x55bc69,_0x53a9ce))[_0x2439f2(0xda)](Boolean);return Object[_0x2439f2(0x129)](_0x5c7c4d[_0x2439f2(0xf1)][_0x2439f2(0xe9)])['forEach'](_0x5c2d1c=>{const _0x17d590=_0x2439f2;this['_userService'][_0x17d590(0xca)](_0x5c2d1c);}),_0x2cfb57;}[_0x1c4990(0x123)](_0x19e459){const _0x218cc9=_0x1c4990;return{'id':_0x19e459['id'],'threadId':_0x19e459[_0x218cc9(0xf3)],'ref':_0x19e459[_0x218cc9(0x126)]};}};S=Q([b(0x0,_0x108585(_0x23a127)),b(0x1,_0x108585(_0x4e911f)),b(0x2,_0x108585(_0x5417b5))],S);var re=Object['getOwnPropertyDescriptor'],te=(_0x1b4820,_0x1d946c,_0x470e7d,_0x2b234e)=>{const _0x2932ec=_0x1c4990;for(var _0x2aafea=_0x2b234e>0x1?void 0x0:_0x2b234e?re(_0x1d946c,_0x470e7d):_0x1d946c,_0x5522c6=_0x1b4820[_0x2932ec(0x100)]-0x1,_0x2227b2;_0x5522c6>=0x0;_0x5522c6--)(_0x2227b2=_0x1b4820[_0x5522c6])&&(_0x2aafea=_0x2227b2(_0x2aafea)||_0x2aafea);return _0x2aafea;},M=(_0x3f0353,_0x381eb5)=>(_0xad62ff,_0x2c6546)=>_0x381eb5(_0xad62ff,_0x2c6546,_0x3f0353);let f=class extends _0x2c9fc3{constructor(_0x4d80fa,_0x4e8550){const _0x507e42=_0x1c4990;super(),this[_0x507e42(0xce)]=_0x4d80fa,this[_0x507e42(0x11f)]=_0x4e8550,this['_initDataSource']();}[_0x1c4990(0xcf)](){const _0x273b0e=_0x1c4990;this[_0x273b0e(0xce)][_0x273b0e(0x108)]=this[_0x273b0e(0x11f)],this[_0x273b0e(0xce)][_0x273b0e(0xea)]=!0x1;}};f=te([M(0x0,_0x7340a4),M(0x1,_0x108585(S))],f);var se=Object[_0x1c4990(0x105)],oe=Object[_0x1c4990(0xc6)],ne=(_0x2e56ff,_0x1a590,_0x2984f2)=>_0x1a590 in _0x2e56ff?se(_0x2e56ff,_0x1a590,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2984f2}):_0x2e56ff[_0x1a590]=_0x2984f2,ie=(_0x8bb360,_0x469d97,_0x529a7e,_0x6b3b8)=>{const _0x1e3213=_0x1c4990;for(var _0x4bae41=_0x6b3b8>0x1?void 0x0:_0x6b3b8?oe(_0x469d97,_0x529a7e):_0x469d97,_0x87d4aa=_0x8bb360[_0x1e3213(0x100)]-0x1,_0x297edd;_0x87d4aa>=0x0;_0x87d4aa--)(_0x297edd=_0x8bb360[_0x87d4aa])&&(_0x4bae41=_0x297edd(_0x4bae41)||_0x4bae41);return _0x4bae41;},N=(_0x5071fe,_0xf3b938)=>(_0x41a703,_0x4bbe2e)=>_0xf3b938(_0x41a703,_0x4bbe2e,_0x5071fe),$=(_0x134d42,_0x2ee20b,_0x11136e)=>ne(_0x134d42,typeof _0x2ee20b!=_0x1c4990(0x104)?_0x2ee20b+'':_0x2ee20b,_0x11136e);let g=class extends _0x21d69d{constructor(_0x416df8=O,_0x2e5463,_0xe1cafb){const _0x57e98c=_0x1c4990;super(),this[_0x57e98c(0xe6)]=_0x416df8,this[_0x57e98c(0x12c)]=_0x2e5463,this[_0x57e98c(0x12a)]=_0xe1cafb;const {..._0x39e32f}=_0x49cd4d({},O,this[_0x57e98c(0xe6)]);this[_0x57e98c(0x12a)][_0x57e98c(0xc7)](z,_0x39e32f);}[_0x1c4990(0xd4)](){[[S],[f],[_]]['forEach'](_0x42786a=>{const _0x108275=_0x37a2;this[_0x108275(0x12c)][_0x108275(0x11a)](_0x42786a);});}[_0x1c4990(0x124)](){const _0x440764=_0x1c4990;this[_0x440764(0x12c)][_0x440764(0x112)](f),this['_injector'][_0x440764(0x112)](_);}};$(g,_0x1c4990(0xfa),W),$(g,_0x1c4990(0x10a),_0x22c964[_0x1c4990(0x103)]),g=ie([_0x4a4332(_0x33ba46,_0x4fb59d,_0x2c8ed9),N(0x1,_0x108585(_0x2d7221)),N(0x2,_0x440bd9)],g);export{g as UniverThreadCommentDataSourcePlugin};
1
+ const _0x19b457=_0x1b12;function _0x20a1(){const _0x5ef902=['Solved','_threadCommentDataSourceService','delete','disposeWithMe','Solve','writable','replies','slice','/delete','/universer-api/user/list','_initUserSync','default','replyId','defineProperty','/list','Delete','size','userId','value','stringify','Reply','forEach','resolveComment','YYYY/MM/DD\x20HH:mm','resolved','solved','function','0.17.0-insiders.20260318-d69dc16','customRanges','createTimestamp','find','comment','version','pipe','unitId','add','_configService','memberId','_init','payload','constructor','enumerable','addUser','root','getComment','395rMpxZz','749984EAmqfn','_sessionService','commentUpdate$','personId','type','thread-comment-data-source.config','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','code','_commentService','mention','8586QQhlGg','rangeId','symbol','dataSource','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','360IIiehX','Add','getOwnPropertyDescriptor','syncUpdateMutationToColla','post','addComment','/reply','getUser','content','rangeType','length','iterator','ref','format','getUnit','packageName','subscribe','decorate','/universer-api/comment/unit/','onStarting','threadId','COMMENT','1557350CBRIfd','saveCommentToSnapshot','values','setConfig','onReady','_userService','user','_threadCommentModel','_initDataSource','body','OpenOrReOpen','/solved','string','prototype','comments','getMemberID','listComments','getCurrentUser','@univerjs-pro/thread-comment-datasource','reply','users','error','_httpService','object','605037TkIqGZ','pluginName','_injector','_threadCommentDataSource','filter','map','62eluayt','toPrimitive','/add','deleteComment','call','parentId','_config','11RxuBjy','Edit','userID','5738SZCOgm','parse','configurable','66159DLyDWX','updateComment','/edit','786681vwrCMr','requireSession'];_0x20a1=function(){return _0x5ef902;};return _0x20a1();}(function(_0xd7cdbb,_0xc9fbf4){const _0x316d92=_0x1b12,_0x32fff1=_0xd7cdbb();while(!![]){try{const _0x2e604a=parseInt(_0x316d92(0x95))/0x1*(parseInt(_0x316d92(0x9f))/0x2)+parseInt(_0x316d92(0x8f))/0x3+parseInt(_0x316d92(0xd5))/0x4+parseInt(_0x316d92(0xd4))/0x5*(-parseInt(_0x316d92(0xdf))/0x6)+-parseInt(_0x316d92(0xa5))/0x7+-parseInt(_0x316d92(0xe5))/0x8*(parseInt(_0x316d92(0xa2))/0x9)+parseInt(_0x316d92(0x77))/0xa*(parseInt(_0x316d92(0x9c))/0xb);if(_0x2e604a===_0xc9fbf4)break;else _0x32fff1['push'](_0x32fff1['shift']());}catch(_0x1de111){_0x32fff1['push'](_0x32fff1['shift']());}}}(_0x20a1,0x28aa1));import{CollaborationSessionService as _0x3493b0,CommentService as _0x48a745,UniverCollaborationClientPlugin as _0x254729}from'@univerjs-pro/collaboration-client';function _0x1b12(_0x1cad93,_0x48b07c){_0x1cad93=_0x1cad93-0x73;const _0x20a1d4=_0x20a1();let _0x1b12a6=_0x20a1d4[_0x1cad93];return _0x1b12a6;}import{UniverLicensePlugin as _0x205133}from'@univerjs-pro/license';import{CustomRangeType as _0x463d7a,DependentOn as _0x1e9232,Disposable as _0x26365f,IConfigService as _0x364c81,Inject as _0x38f24b,Injector as _0x3bb55e,Plugin as _0x84fe4e,UserManagerService as _0x613a7d,dayjs as _0x3b7160,merge as _0x26af19}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0xf96549}from'@univerjs/thread-comment-ui';import{CommentSolvedStatus as _0x213cbd,CommentUpdateEventType as _0x24e577}from'@univerjs/protocol';import{IThreadCommentDataSourceService as _0x3bee15,ThreadCommentModel as _0x23cf46}from'@univerjs/thread-comment';import{bufferTime as _0x551496}from'rxjs';import{HTTPService as _0x247a2e}from'@univerjs/network';var x=_0x19b457(0x89),S=_0x19b457(0xc2);const C=_0x5c1d90=>_0x3b7160(new Date(+_0x5c1d90))[_0x19b457(0xf2)](_0x19b457(0xbe)),w=async(_0x4171e0,_0x5416e1)=>{const _0x3e14d5=_0x19b457;let _0x541a73=_0x4171e0[_0x3e14d5(0xe3)](_0x613a7d),_0x15b22f=_0x4171e0[_0x3e14d5(0xe3)](_0x247a2e);_0x5416e1[_0x3e14d5(0xbc)](_0x54adf9=>{const _0x4ff9fb=_0x3e14d5;_0x541a73[_0x4ff9fb(0xec)](_0x54adf9)&&_0x5416e1[_0x4ff9fb(0xa9)](_0x54adf9);}),_0x5416e1[_0x3e14d5(0xb7)]&&(await _0x15b22f[_0x3e14d5(0xe3)](_0x3e14d5(0xb0),{'params':{'userIDs':[..._0x5416e1]}}))[_0x3e14d5(0x80)][_0x3e14d5(0x8b)][_0x3e14d5(0xbc)](_0x2103e4=>{const _0x4f42de=_0x3e14d5;_0x2103e4&&_0x541a73[_0x4f42de(0xd1)](_0x2103e4);});};function T(_0x546f43,_0x4917cd){return function(_0x5a19aa,_0x432e65){_0x4917cd(_0x5a19aa,_0x432e65,_0x546f43);};}function E(_0x45af5d,_0x2029af,_0x14c08e,_0x2f23b7){const _0x303274=_0x19b457;var _0x2ad509=arguments[_0x303274(0xef)],_0x233fe7=_0x2ad509<0x3?_0x2029af:_0x2f23b7===null?_0x2f23b7=Object[_0x303274(0xe7)](_0x2029af,_0x14c08e):_0x2f23b7,_0x143a89;if(typeof Reflect==_0x303274(0x8e)&&typeof Reflect[_0x303274(0xf6)]==_0x303274(0xc1))_0x233fe7=Reflect[_0x303274(0xf6)](_0x45af5d,_0x2029af,_0x14c08e,_0x2f23b7);else{for(var _0x5694ad=_0x45af5d[_0x303274(0xef)]-0x1;_0x5694ad>=0x0;_0x5694ad--)(_0x143a89=_0x45af5d[_0x5694ad])&&(_0x233fe7=(_0x2ad509<0x3?_0x143a89(_0x233fe7):_0x2ad509>0x3?_0x143a89(_0x2029af,_0x14c08e,_0x233fe7):_0x143a89(_0x2029af,_0x14c08e))||_0x233fe7);}return _0x2ad509>0x3&&_0x233fe7&&Object[_0x303274(0xb4)](_0x2029af,_0x14c08e,_0x233fe7),_0x233fe7;}let D=class extends _0x26365f{constructor(_0xc22e2d,_0x1665d5,_0x2db097,_0x169d90){const _0x64efe8=_0x19b457;super(),this[_0x64efe8(0xdd)]=_0xc22e2d,this[_0x64efe8(0x7e)]=_0x1665d5,this[_0x64efe8(0x7c)]=_0x2db097,this[_0x64efe8(0x91)]=_0x169d90,this[_0x64efe8(0xcd)](),this[_0x64efe8(0xb1)]();}[_0x19b457(0xb1)](){const _0x49b6fa=_0x19b457;this[_0x49b6fa(0xaa)](this[_0x49b6fa(0x7e)][_0x49b6fa(0xd7)][_0x49b6fa(0xc8)](_0x551496(0x10))[_0x49b6fa(0xf5)](_0xa4d7d2=>{const _0x181416=_0x49b6fa;let _0x2cd3f6=new Set();_0xa4d7d2[_0x181416(0xbc)](_0xa36f5c=>{const _0x375d98=_0x181416;switch(_0xa36f5c[_0x375d98(0xd9)]){case _0x375d98(0xca):{let _0x1c94cc=_0xa36f5c[_0x375d98(0xce)][_0x375d98(0xd8)];_0x2cd3f6[_0x375d98(0xca)](_0x1c94cc);break;}default:break;}}),w(this[_0x181416(0x91)],_0x2cd3f6);}));}[_0x19b457(0xcd)](){const _0x30e077=_0x19b457;this[_0x30e077(0xaa)](this[_0x30e077(0xdd)][_0x30e077(0xd7)][_0x30e077(0xf5)](async _0x2d4fb5=>{const _0x39d149=_0x30e077;var _0x47db85;let _0x41616b=(_0x47db85=this[_0x39d149(0x7e)][_0x39d149(0xf3)](_0x2d4fb5[_0x39d149(0xc9)])[_0x39d149(0xc5)](_0x51cb6d=>_0x51cb6d[_0x39d149(0x75)]===_0x2d4fb5[_0x39d149(0x75)]))==null?void 0x0:_0x47db85[_0x39d149(0xd2)];if(!_0x41616b)return;let {unitId:_0x109316,subUnitId:_0x303d2a}=_0x41616b;switch(_0x2d4fb5[_0x39d149(0x7d)]&&this[_0x39d149(0x7c)][_0x39d149(0xd1)](_0x2d4fb5[_0x39d149(0x7d)]),_0x2d4fb5[_0x39d149(0xd9)]){case _0x24e577[_0x39d149(0xe6)]:break;case _0x24e577[_0x39d149(0xbb)]:var _0x3266b8,_0x1155e8;this[_0x39d149(0x7e)][_0x39d149(0xea)](_0x109316,_0x303d2a,{'unitId':_0x109316,'subUnitId':_0x303d2a,'ref':'','id':_0x2d4fb5[_0x39d149(0xb3)],'dT':C(+_0x2d4fb5[_0x39d149(0xc4)]),'threadId':_0x2d4fb5[_0x39d149(0x75)],'personId':(_0x3266b8=(_0x1155e8=_0x2d4fb5[_0x39d149(0x7d)])==null?void 0x0:_0x1155e8[_0x39d149(0x9e)])==null?_0x2d4fb5[_0x39d149(0xb8)]:_0x3266b8,'text':JSON[_0x39d149(0xa0)](_0x2d4fb5[_0x39d149(0xed)]),'parentId':_0x41616b['id']});break;case _0x24e577[_0x39d149(0xb6)]:{let _0x2c6d9b=this[_0x39d149(0x7e)][_0x39d149(0xd3)](_0x109316,_0x303d2a,_0x2d4fb5[_0x39d149(0xb3)]);_0x2c6d9b&&_0x2c6d9b[_0x39d149(0x9a)]&&this[_0x39d149(0x7e)][_0x39d149(0x98)](_0x109316,_0x303d2a,_0x2d4fb5[_0x39d149(0xb3)]);break;}case _0x24e577[_0x39d149(0x9d)]:this[_0x39d149(0x7e)][_0x39d149(0xa3)](_0x109316,_0x303d2a,{'commentId':_0x2d4fb5[_0x39d149(0xb3)],'text':JSON[_0x39d149(0xa0)](_0x2d4fb5[_0x39d149(0xed)])});break;case _0x24e577[_0x39d149(0xab)]:{var _0x25926b;let _0x4ae3bc=(_0x25926b=this[_0x39d149(0x7e)][_0x39d149(0xf3)](_0x2d4fb5[_0x39d149(0xc9)])[_0x39d149(0xc5)](_0x1caf9c=>_0x1caf9c[_0x39d149(0x75)]===_0x2d4fb5[_0x39d149(0x75)]))==null?void 0x0:_0x25926b[_0x39d149(0xd2)];_0x4ae3bc&&this[_0x39d149(0x7e)][_0x39d149(0xbd)](_0x109316,_0x303d2a,_0x4ae3bc['id'],_0x2d4fb5[_0x39d149(0xc0)]===_0x213cbd[_0x39d149(0xa7)]);break;}default:break;}}));}};D=E([T(0x0,_0x38f24b(_0x48a745)),T(0x1,_0x38f24b(_0x23cf46)),T(0x2,_0x38f24b(_0x613a7d)),T(0x3,_0x38f24b(_0x3bb55e))],D);const O=_0x19b457(0xda);Symbol(O);const k={};function A(_0x3f63e4,_0x131c5e){const _0x4a647c=_0x19b457;let _0x8b17b5=_0x3f63e4[_0x4a647c(0xad)][0x0];return{..._0x131c5e,'id':_0x8b17b5[_0x4a647c(0xb3)],'resolved':_0x3f63e4[_0x4a647c(0xc0)]===0x1,'dT':C(_0x8b17b5[_0x4a647c(0xc4)]),'personId':_0x8b17b5[_0x4a647c(0xb8)],'threadId':_0x8b17b5[_0x4a647c(0x75)]};}function j(_0x38b68d,_0x16c78d,_0x35ee46){const _0x5edd57=_0x19b457;var _0x524c8e,_0x585e51;if(((_0x524c8e=_0x38b68d==null||(_0x585e51=_0x38b68d[_0x5edd57(0xad)])==null?void 0x0:_0x585e51[_0x5edd57(0xef)])==null?0x0:_0x524c8e)>0x0){let _0x52c4c3=(_0x572a0a,_0x5e3686)=>({'id':_0x572a0a[_0x5edd57(0xb3)],'threadId':_0x572a0a[_0x5edd57(0x75)],'dT':C(_0x572a0a[_0x5edd57(0xc4)]),'personId':_0x572a0a[_0x5edd57(0xb8)],'resolved':_0x38b68d[_0x5edd57(0xc0)]===_0x213cbd[_0x5edd57(0xa7)],'unitId':_0x16c78d,'subUnitId':_0x35ee46,'text':JSON[_0x5edd57(0xa0)](_0x572a0a[_0x5edd57(0xed)]),'parentId':_0x5e3686}),_0x506148=_0x52c4c3(_0x38b68d[_0x5edd57(0xad)][0x0]);return{..._0x506148,'children':_0x38b68d[_0x5edd57(0xad)][_0x5edd57(0xae)](0x1)[_0x5edd57(0x94)](_0x389d8e=>_0x52c4c3(_0x389d8e,_0x506148['id']))};}return null;}let M=class{constructor(_0x4b5d84,_0x8c88ec,_0x57e946){const _0x28bdde=_0x19b457;this[_0x28bdde(0x8d)]=_0x4b5d84,this[_0x28bdde(0x7c)]=_0x8c88ec,this[_0x28bdde(0xd6)]=_0x57e946;}async[_0x19b457(0xea)](_0x24518d){const _0xed5409=_0x19b457;var _0x4a81fe,_0x30f45b;let {parentId:_0x1a1021,unitId:_0x4e309f,text:_0x1f0be1,threadId:_0x1b0185}=_0x24518d,_0x4fe9ab=(_0x4a81fe=(_0x30f45b=_0x1f0be1[_0xed5409(0xc3)])==null?void 0x0:_0x30f45b[_0xed5409(0x93)](_0x43be24=>_0x43be24[_0xed5409(0xee)]===_0x463d7a[_0xed5409(0x76)])[_0xed5409(0x94)](_0xea1621=>_0xea1621[_0xed5409(0xe0)]))==null?[]:_0x4a81fe,_0xb78ed7=JSON[_0xed5409(0xba)](_0x1f0be1),_0x47b108=(await this[_0xed5409(0xd6)][_0xed5409(0xa6)](_0x4e309f))[_0xed5409(0x86)]();if(_0x1a1021){const _0x500a6b={};_0x500a6b[_0xed5409(0xcc)]=_0x47b108,_0x500a6b[_0xed5409(0xc9)]=_0x4e309f,_0x500a6b[_0xed5409(0xed)]=_0xb78ed7,_0x500a6b[_0xed5409(0xde)]=_0x4fe9ab,_0x500a6b[_0xed5409(0x75)]=_0x1b0185;let _0x2c8fb4=_0x500a6b,_0x1b18b3=(await this[_0xed5409(0x8d)][_0xed5409(0xe9)](_0xed5409(0x73)+_0x4e309f+_0xed5409(0xeb),{'body':_0x2c8fb4}))[_0xed5409(0x80)][_0xed5409(0x8a)];return{..._0x24518d,'id':_0x1b18b3[_0xed5409(0xb3)],'dT':_0x3b7160(+_0x1b18b3[_0xed5409(0xc4)])[_0xed5409(0xf2)](_0xed5409(0xbe)),'personId':_0x1b18b3[_0xed5409(0xb8)]};}else{const _0x56721e={};_0x56721e[_0xed5409(0xcc)]=_0x47b108,_0x56721e[_0xed5409(0xc9)]=_0x4e309f,_0x56721e[_0xed5409(0xed)]=_0xb78ed7,_0x56721e[_0xed5409(0xde)]=_0x4fe9ab;let _0x3a6a0e=_0x56721e;const _0x2a8f9e={};return _0x2a8f9e[_0xed5409(0x80)]=_0x3a6a0e,A((await this[_0xed5409(0x8d)][_0xed5409(0xe9)](_0xed5409(0x73)+_0x4e309f+_0xed5409(0x97),_0x2a8f9e))[_0xed5409(0x80)][_0xed5409(0xc6)],_0x24518d);}}async[_0x19b457(0xa3)](_0x412afd){const _0xa1a331=_0x19b457;var _0xb4b714,_0x23d08d;let {text:_0x5c572f,unitId:_0x1fcad8}=_0x412afd,_0xcb2ab9=(_0xb4b714=(_0x23d08d=_0x5c572f[_0xa1a331(0xc3)])==null?void 0x0:_0x23d08d[_0xa1a331(0x93)](_0x9328d1=>_0x9328d1[_0xa1a331(0xee)]===_0x463d7a[_0xa1a331(0x76)])[_0xa1a331(0x94)](_0x16fb76=>_0x16fb76[_0xa1a331(0xe0)]))==null?[]:_0xb4b714,_0x2a448c=JSON[_0xa1a331(0xba)](_0x5c572f),_0x107186=_0x412afd[_0xa1a331(0x75)],_0x305e82=_0x412afd['id'],_0x3e13b2={'memberId':(await this[_0xa1a331(0xd6)][_0xa1a331(0xa6)](_0x1fcad8))[_0xa1a331(0x86)](),'unitId':_0x1fcad8,'threadId':_0x107186,'mention':_0xcb2ab9,'content':_0x2a448c,'replyId':_0x305e82},_0xa3be5e=await this[_0xa1a331(0x8d)][_0xa1a331(0xe9)](_0xa1a331(0x73)+_0x1fcad8+_0xa1a331(0xa4),{'body':_0x3e13b2});return!_0xa3be5e[_0xa1a331(0x80)][_0xa1a331(0x8c)]||_0xa3be5e[_0xa1a331(0x80)][_0xa1a331(0x8c)][_0xa1a331(0xdc)]===0x1;}async[_0x19b457(0xbd)](_0x21585e){const _0x53ee6f=_0x19b457;let {unitId:_0x418107}=_0x21585e,_0x1e4ec7=_0x21585e[_0x53ee6f(0x75)],_0x2a644e={'memberId':this[_0x53ee6f(0x7c)][_0x53ee6f(0x88)]()[_0x53ee6f(0x9e)],'unitId':_0x418107,'threadId':_0x1e4ec7,'solved':_0x21585e[_0x53ee6f(0xbf)]?_0x213cbd[_0x53ee6f(0xa7)]:_0x213cbd[_0x53ee6f(0x81)]},_0x39442b=await this[_0x53ee6f(0x8d)][_0x53ee6f(0xe9)](_0x53ee6f(0x73)+_0x418107+_0x53ee6f(0x82),{'body':_0x2a644e});return!_0x39442b[_0x53ee6f(0x80)][_0x53ee6f(0x8c)]||_0x39442b[_0x53ee6f(0x80)][_0x53ee6f(0x8c)][_0x53ee6f(0xdc)]===0x1;}async[_0x19b457(0x98)](_0x101456,_0x5178a0,_0x53e88e,_0x5ea0bd){const _0x268fc6=_0x19b457;let _0x258c0f={'memberId':(await this[_0x268fc6(0xd6)][_0x268fc6(0xa6)](_0x101456))[_0x268fc6(0x86)](),'threadId':_0x53e88e,'replyId':_0x5ea0bd,'unitId':_0x101456},_0xa34b35=await this[_0x268fc6(0x8d)][_0x268fc6(0xe9)](_0x268fc6(0x73)+_0x101456+_0x268fc6(0xaf),{'body':_0x258c0f});return!_0xa34b35[_0x268fc6(0x80)][_0x268fc6(0x8c)]||_0xa34b35[_0x268fc6(0x80)][_0x268fc6(0x8c)][_0x268fc6(0xdc)]===0x1;}async[_0x19b457(0x87)](_0x1c6179,_0x41e4ae,_0x1b076e){const _0x2f8684=_0x19b457,_0x362f3b={};_0x362f3b[_0x2f8684(0xc9)]=_0x1c6179,_0x362f3b[_0x2f8684(0x75)]=_0x1b076e;let _0x379278=_0x362f3b,_0x11f1df=await this[_0x2f8684(0x8d)][_0x2f8684(0xe9)](_0x2f8684(0x73)+_0x1c6179+_0x2f8684(0xb5),{'body':_0x379278}),_0x463058=_0x1b076e[_0x2f8684(0x94)](_0x1b92ae=>j(_0x11f1df[_0x2f8684(0x80)][_0x2f8684(0x85)][_0x1b92ae],_0x1c6179,_0x41e4ae))[_0x2f8684(0x93)](Boolean);return Object[_0x2f8684(0x79)](_0x11f1df[_0x2f8684(0x80)][_0x2f8684(0x8b)])[_0x2f8684(0xbc)](_0x498ca6=>{const _0x4f1ced=_0x2f8684;this[_0x4f1ced(0x7c)][_0x4f1ced(0xd1)](_0x498ca6);}),_0x463058;}[_0x19b457(0x78)](_0x47b132){const _0x18d72f=_0x19b457,_0x295558={};return _0x295558['id']=_0x47b132['id'],_0x295558[_0x18d72f(0x75)]=_0x47b132[_0x18d72f(0x75)],_0x295558[_0x18d72f(0xf1)]=_0x47b132[_0x18d72f(0xf1)],_0x295558;}};M=E([T(0x0,_0x38f24b(_0x247a2e)),T(0x1,_0x38f24b(_0x613a7d)),T(0x2,_0x38f24b(_0x3493b0))],M);let N=class extends _0x26365f{constructor(_0x238c59,_0xa6de16){const _0x412c54=_0x19b457;super(),this[_0x412c54(0xa8)]=_0x238c59,this[_0x412c54(0x92)]=_0xa6de16,this[_0x412c54(0x7f)]();}[_0x19b457(0x7f)](){const _0x37f75b=_0x19b457;this[_0x37f75b(0xa8)][_0x37f75b(0xe2)]=this[_0x37f75b(0x92)],this[_0x37f75b(0xa8)][_0x37f75b(0xe8)]=!0x1;}};N=E([T(0x0,_0x3bee15),T(0x1,_0x38f24b(M))],N);function P(_0x10a86d){'@babel/helpers - typeof';const _0x591d52=_0x19b457;return P=typeof Symbol==_0x591d52(0xc1)&&typeof Symbol[_0x591d52(0xf0)]==_0x591d52(0xe1)?function(_0x5b4695){return typeof _0x5b4695;}:function(_0xf472be){const _0x54e38e=_0x591d52;return _0xf472be&&typeof Symbol==_0x54e38e(0xc1)&&_0xf472be[_0x54e38e(0xcf)]===Symbol&&_0xf472be!==Symbol[_0x54e38e(0x84)]?_0x54e38e(0xe1):typeof _0xf472be;},P(_0x10a86d);}function F(_0x460ddb,_0x10a5b4){const _0x5e4227=_0x19b457;if(P(_0x460ddb)!=_0x5e4227(0x8e)||!_0x460ddb)return _0x460ddb;var _0x24f724=_0x460ddb[Symbol[_0x5e4227(0x96)]];if(_0x24f724!==void 0x0){var _0x59c1b5=_0x24f724[_0x5e4227(0x99)](_0x460ddb,_0x10a5b4||_0x5e4227(0xb2));if(P(_0x59c1b5)!=_0x5e4227(0x8e))return _0x59c1b5;throw TypeError(_0x5e4227(0xe4));}return(_0x10a5b4===_0x5e4227(0x83)?String:Number)(_0x460ddb);}function I(_0xe05890){const _0x413703=_0x19b457;var _0x48a90d=F(_0xe05890,_0x413703(0x83));return P(_0x48a90d)==_0x413703(0xe1)?_0x48a90d:_0x48a90d+'';}function L(_0x59f5ce,_0x52d5d7,_0x4b7452){const _0x1f64bf=_0x19b457,_0x1948c3={};return _0x1948c3[_0x1f64bf(0xb9)]=_0x4b7452,_0x1948c3[_0x1f64bf(0xd0)]=!0x0,_0x1948c3[_0x1f64bf(0xa1)]=!0x0,_0x1948c3[_0x1f64bf(0xac)]=!0x0,((_0x52d5d7=I(_0x52d5d7))in _0x59f5ce?Object[_0x1f64bf(0xb4)](_0x59f5ce,_0x52d5d7,_0x1948c3):_0x59f5ce[_0x52d5d7]=_0x4b7452,_0x59f5ce);}let R=class extends _0x84fe4e{constructor(_0x2c09c4=k,_0x3a7df2,_0x52be77){const _0x10d03b=_0x19b457;super(),this[_0x10d03b(0x9b)]=_0x2c09c4,this[_0x10d03b(0x91)]=_0x3a7df2,this[_0x10d03b(0xcb)]=_0x52be77;let {..._0x4ec637}=_0x26af19({},k,this[_0x10d03b(0x9b)]);this[_0x10d03b(0xcb)][_0x10d03b(0x7a)](O,_0x4ec637);}[_0x19b457(0x74)](){const _0x226bb7=_0x19b457;[[M],[N],[D]][_0x226bb7(0xbc)](_0x46803d=>{const _0x46f14a=_0x226bb7;this[_0x46f14a(0x91)][_0x46f14a(0xca)](_0x46803d);});}[_0x19b457(0x7b)](){const _0x2227e7=_0x19b457;this[_0x2227e7(0x91)][_0x2227e7(0xe3)](N),this[_0x2227e7(0x91)][_0x2227e7(0xe3)](D);}};L(R,_0x19b457(0x90),_0x19b457(0xdb)),L(R,_0x19b457(0xf4),x),L(R,_0x19b457(0xc7),S),R=E([_0x1e9232(_0xf96549,_0x254729,_0x205133),T(0x1,_0x38f24b(_0x3bb55e)),T(0x2,_0x364c81)],R);export{R as UniverThreadCommentDataSourcePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1c4990=_0x37a2;(function(_0x54bbc5,_0xe0f6fc){const _0x38a8ac=_0x37a2,_0x1381ee=_0x54bbc5();while(!![]){try{const _0x3aa1eb=-parseInt(_0x38a8ac(0xef))/0x1+-parseInt(_0x38a8ac(0x10b))/0x2*(-parseInt(_0x38a8ac(0xf2))/0x3)+-parseInt(_0x38a8ac(0x102))/0x4+parseInt(_0x38a8ac(0xee))/0x5+parseInt(_0x38a8ac(0x118))/0x6*(-parseInt(_0x38a8ac(0x110))/0x7)+-parseInt(_0x38a8ac(0xf7))/0x8+parseInt(_0x38a8ac(0x106))/0x9;if(_0x3aa1eb===_0xe0f6fc)break;else _0x1381ee['push'](_0x1381ee['shift']());}catch(_0x3fd14b){_0x1381ee['push'](_0x1381ee['shift']());}}}(_0x5d44,0x4be44));import{CommentService as _0x278af8,CollaborationSessionService as _0x5417b5,UniverCollaborationClientPlugin as _0x4fb59d}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x2c8ed9}from'@univerjs-pro/license';import{dayjs as _0x5b2334,UserManagerService as _0x4e911f,Inject as _0x108585,Injector as _0x2d7221,Disposable as _0x2c9fc3,CustomRangeType as _0x11ff2a,UniverInstanceType as _0x22c964,DependentOn as _0x4a4332,Plugin as _0x21d69d,merge as _0x49cd4d,IConfigService as _0x440bd9}from'@univerjs/core';function _0x5d44(){const _0x24d7fe=['userId','Delete','UNRECOGNIZED','/delete','_sessionService','_config','reply','requireSession','users','syncUpdateMutationToColla','slice','Unknown','Reply','1859205ZqtcBQ','185859TLmOvm','OpenOrReOpen','body','1038rYgssC','threadId','_init','replies','customRanges','2004256PfLaNi','userID','_initUserSync','pluginName','resolved','root','/reply','rangeId','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','length','updateComment','870664OYMeBY','UNIVER_UNKNOWN','symbol','defineProperty','3931740HkgxHN','/list','dataSource','/edit','type','2766gefcSB','/add','Solved','listComments','map','35rhqpDw','delete','get','personId','Add','/universer-api/comment/unit/','parse','addComment','386772kwDwfN','forEach','add','getUnit','format','YYYY/MM/DD\x20HH:mm','parentId','_threadCommentDataSource','resolveComment','error','subscribe','saveCommentToSnapshot','onReady','rangeType','ref','stringify','replyId','values','_configService','createTimestamp','_injector','comments','_commentService','post','getOwnPropertyDescriptor','setConfig','/universer-api/user/list','commentUpdate$','addUser','getComment','pipe','_userService','_threadCommentDataSourceService','_initDataSource','getMemberID','deleteComment','thread-comment-data-source.config','Edit','onStarting','user','getUser','_threadCommentModel','Solve','solved','filter','COMMENT','disposeWithMe','code','_httpService','content','unitId'];_0x5d44=function(){return _0x24d7fe;};return _0x5d44();}import{UniverThreadCommentUIPlugin as _0x33ba46}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x54e638,IThreadCommentDataSourceService as _0x7340a4}from'@univerjs/thread-comment';import{bufferTime as _0x3ed3f1}from'rxjs';import{HTTPService as _0x23a127}from'@univerjs/network';const W=_0x1c4990(0xff);var I=(_0x3e2845=>(_0x3e2845[_0x3e2845[_0x1c4990(0xf0)]=0x0]='OpenOrReOpen',_0x3e2845[_0x3e2845[_0x1c4990(0x10d)]=0x1]='Solved',_0x3e2845[_0x3e2845[_0x1c4990(0xe3)]=-0x1]=_0x1c4990(0xe3),_0x3e2845))(I||{}),v=(_0xb69aba=>(_0xb69aba[_0xb69aba[_0x1c4990(0xec)]=0x0]=_0x1c4990(0xec),_0xb69aba[_0xb69aba[_0x1c4990(0x114)]=0x1]=_0x1c4990(0x114),_0xb69aba[_0xb69aba[_0x1c4990(0xed)]=0x2]=_0x1c4990(0xed),_0xb69aba[_0xb69aba[_0x1c4990(0xd3)]=0x3]=_0x1c4990(0xd3),_0xb69aba[_0xb69aba[_0x1c4990(0xe2)]=0x4]=_0x1c4990(0xe2),_0xb69aba[_0xb69aba[_0x1c4990(0xd8)]=0x5]=_0x1c4990(0xd8),_0xb69aba[_0xb69aba[_0x1c4990(0xe3)]=-0x1]='UNRECOGNIZED',_0xb69aba))(v||{});function _0x37a2(_0x4089be,_0x559117){_0x4089be=_0x4089be-0xc3;const _0x5d44ad=_0x5d44();let _0x37a29e=_0x5d44ad[_0x4089be];return _0x37a29e;}const y=_0x40d80b=>_0x5b2334(new Date(+_0x40d80b))[_0x1c4990(0x11c)](_0x1c4990(0x11d)),B=async(_0x3cc7f2,_0x442646)=>{const _0x3429a9=_0x1c4990,_0x5a03fc=_0x3cc7f2[_0x3429a9(0x112)](_0x4e911f),_0x2fda37=_0x3cc7f2['get'](_0x23a127);_0x442646[_0x3429a9(0x119)](_0x4dcb1c=>{const _0x24859f=_0x3429a9;_0x5a03fc[_0x24859f(0xd6)](_0x4dcb1c)&&_0x442646[_0x24859f(0x111)](_0x4dcb1c);}),_0x442646['size']&&(await _0x2fda37[_0x3429a9(0x112)](_0x3429a9(0xc8),{'params':{'userIDs':[..._0x442646]}}))[_0x3429a9(0xf1)][_0x3429a9(0xe9)][_0x3429a9(0x119)](_0x39929e=>{const _0x55272c=_0x3429a9;_0x39929e&&_0x5a03fc[_0x55272c(0xca)](_0x39929e);});};var K=Object[_0x1c4990(0xc6)],V=(_0x36a719,_0x446352,_0x630a7a,_0x19e310)=>{const _0x296f3c=_0x1c4990;for(var _0x1a0b07=_0x19e310>0x1?void 0x0:_0x19e310?K(_0x446352,_0x630a7a):_0x446352,_0x350ed8=_0x36a719[_0x296f3c(0x100)]-0x1,_0x47c209;_0x350ed8>=0x0;_0x350ed8--)(_0x47c209=_0x36a719[_0x350ed8])&&(_0x1a0b07=_0x47c209(_0x1a0b07)||_0x1a0b07);return _0x1a0b07;},p=(_0x4f7ad6,_0x5ef58f)=>(_0x26b672,_0x161874)=>_0x5ef58f(_0x26b672,_0x161874,_0x4f7ad6);let _=class extends _0x2c9fc3{constructor(_0x7df6b6,_0x43303f,_0xc1cb11,_0x76d89f){const _0x3510e0=_0x1c4990;super(),this[_0x3510e0(0xc4)]=_0x7df6b6,this[_0x3510e0(0xd7)]=_0x43303f,this['_userService']=_0xc1cb11,this[_0x3510e0(0x12c)]=_0x76d89f,this[_0x3510e0(0xf4)](),this[_0x3510e0(0xf9)]();}[_0x1c4990(0xf9)](){const _0x233f80=_0x1c4990;this[_0x233f80(0xdc)](this['_threadCommentModel'][_0x233f80(0xc9)][_0x233f80(0xcc)](_0x3ed3f1(0x10))[_0x233f80(0x122)](_0x14df9b=>{const _0x175d5a=_0x233f80,_0x4753e7=new Set();_0x14df9b[_0x175d5a(0x119)](_0x40cd96=>{const _0x298787=_0x175d5a;if(_0x40cd96[_0x298787(0x10a)]===_0x298787(0x11a)){const _0x179b2f=_0x40cd96['payload'][_0x298787(0x113)];_0x4753e7[_0x298787(0x11a)](_0x179b2f);}}),B(this[_0x175d5a(0x12c)],_0x4753e7);}));}[_0x1c4990(0xf4)](){const _0x4c9bf3=_0x1c4990;this[_0x4c9bf3(0xdc)](this[_0x4c9bf3(0xc4)][_0x4c9bf3(0xc9)][_0x4c9bf3(0x122)](async _0x123081=>{const _0x1a1548=_0x4c9bf3;var _0x58c976,_0x5013ef,_0x56f182,_0x433c01;const _0x15b03a=(_0x58c976=this[_0x1a1548(0xd7)][_0x1a1548(0x11b)](_0x123081[_0x1a1548(0xe0)])['find'](_0x12282c=>_0x12282c[_0x1a1548(0xf3)]===_0x123081[_0x1a1548(0xf3)]))==null?void 0x0:_0x58c976[_0x1a1548(0xfc)];if(!_0x15b03a)return;const {unitId:_0x5b2556,subUnitId:_0x47606f}=_0x15b03a;switch(_0x123081[_0x1a1548(0xd5)]&&this[_0x1a1548(0xcd)][_0x1a1548(0xca)](_0x123081['user']),_0x123081[_0x1a1548(0x10a)]){case v[_0x1a1548(0x114)]:break;case v['Reply']:{this[_0x1a1548(0xd7)][_0x1a1548(0x117)](_0x5b2556,_0x47606f,{'unitId':_0x5b2556,'subUnitId':_0x47606f,'ref':'','id':_0x123081[_0x1a1548(0x128)],'dT':y(+_0x123081[_0x1a1548(0x12b)]),'threadId':_0x123081[_0x1a1548(0xf3)],'personId':(_0x56f182=(_0x5013ef=_0x123081[_0x1a1548(0xd5)])==null?void 0x0:_0x5013ef['userID'])!=null?_0x56f182:_0x123081['userId'],'text':JSON[_0x1a1548(0x116)](_0x123081[_0x1a1548(0xdf)]),'parentId':_0x15b03a['id']});break;}case v['Delete']:{const _0x37fef5=this[_0x1a1548(0xd7)][_0x1a1548(0xcb)](_0x5b2556,_0x47606f,_0x123081['replyId']);_0x37fef5&&_0x37fef5[_0x1a1548(0x11e)]&&this[_0x1a1548(0xd7)]['deleteComment'](_0x5b2556,_0x47606f,_0x123081[_0x1a1548(0x128)]);break;}case v[_0x1a1548(0xd3)]:{this[_0x1a1548(0xd7)][_0x1a1548(0x101)](_0x5b2556,_0x47606f,{'commentId':_0x123081[_0x1a1548(0x128)],'text':JSON[_0x1a1548(0x116)](_0x123081[_0x1a1548(0xdf)])});break;}case v[_0x1a1548(0xd8)]:{const _0x5b1f61=(_0x433c01=this['_threadCommentModel'][_0x1a1548(0x11b)](_0x123081[_0x1a1548(0xe0)])['find'](_0x383b3f=>_0x383b3f[_0x1a1548(0xf3)]===_0x123081[_0x1a1548(0xf3)]))==null?void 0x0:_0x433c01[_0x1a1548(0xfc)];_0x5b1f61&&this[_0x1a1548(0xd7)][_0x1a1548(0x120)](_0x5b2556,_0x47606f,_0x5b1f61['id'],_0x123081['solved']===I[_0x1a1548(0x10d)]);break;}}}));}};_=V([p(0x0,_0x108585(_0x278af8)),p(0x1,_0x108585(_0x54e638)),p(0x2,_0x108585(_0x4e911f)),p(0x3,_0x108585(_0x2d7221))],_);const z=_0x1c4990(0xd2),O={};var k=Object[_0x1c4990(0xc6)],Q=(_0x4bb896,_0x3c563d,_0x3dcc2e,_0x3a5e29)=>{for(var _0x223ec3=_0x3a5e29>0x1?void 0x0:_0x3a5e29?k(_0x3c563d,_0x3dcc2e):_0x3c563d,_0x53dec0=_0x4bb896['length']-0x1,_0x56ffab;_0x53dec0>=0x0;_0x53dec0--)(_0x56ffab=_0x4bb896[_0x53dec0])&&(_0x223ec3=_0x56ffab(_0x223ec3)||_0x223ec3);return _0x223ec3;},b=(_0x267a8b,_0x437b0f)=>(_0x81f267,_0x5e3a5f)=>_0x437b0f(_0x81f267,_0x5e3a5f,_0x267a8b);function X(_0x3f0a39,_0x34f7d2){const _0x13a7d7=_0x1c4990,_0x34b8a7=_0x3f0a39[_0x13a7d7(0xf5)][0x0];return{..._0x34f7d2,'id':_0x34b8a7[_0x13a7d7(0x128)],'resolved':_0x3f0a39[_0x13a7d7(0xd9)]===0x1,'dT':y(_0x34b8a7[_0x13a7d7(0x12b)]),'personId':_0x34b8a7[_0x13a7d7(0xe1)],'threadId':_0x34b8a7['threadId']};}function ee(_0x748a8d,_0x2fef79,_0x5407fb){const _0x395350=_0x1c4990;var _0x199550,_0x5b80fe;if(((_0x5b80fe=(_0x199550=_0x748a8d==null?void 0x0:_0x748a8d[_0x395350(0xf5)])==null?void 0x0:_0x199550['length'])!=null?_0x5b80fe:0x0)>0x0){const _0x41758e=(_0x4f7dee,_0x169062)=>({'id':_0x4f7dee[_0x395350(0x128)],'threadId':_0x4f7dee['threadId'],'dT':y(_0x4f7dee['createTimestamp']),'personId':_0x4f7dee[_0x395350(0xe1)],'resolved':_0x748a8d[_0x395350(0xd9)]===I[_0x395350(0x10d)],'unitId':_0x2fef79,'subUnitId':_0x5407fb,'text':JSON[_0x395350(0x116)](_0x4f7dee[_0x395350(0xdf)]),'parentId':_0x169062}),_0x391086=_0x41758e(_0x748a8d[_0x395350(0xf5)][0x0]);return{..._0x391086,'children':_0x748a8d['replies'][_0x395350(0xeb)](0x1)[_0x395350(0x10f)](_0x2eb096=>_0x41758e(_0x2eb096,_0x391086['id']))};}return null;}let S=class{constructor(_0x50ab96,_0x3aaf62,_0x554d8e){const _0x2fea0f=_0x1c4990;this[_0x2fea0f(0xde)]=_0x50ab96,this[_0x2fea0f(0xcd)]=_0x3aaf62,this[_0x2fea0f(0xe5)]=_0x554d8e;}async[_0x1c4990(0x117)](_0x1a7d5f){const _0x749028=_0x1c4990;var _0x52c72b,_0x15a47e;const {parentId:_0x490d09,unitId:_0x396f65,text:_0x3004c3,threadId:_0x513f4c}=_0x1a7d5f,_0x2e4409=(_0x15a47e=(_0x52c72b=_0x3004c3[_0x749028(0xf6)])==null?void 0x0:_0x52c72b[_0x749028(0xda)](_0x165cfc=>_0x165cfc[_0x749028(0x125)]===_0x11ff2a[_0x749028(0xdb)])[_0x749028(0x10f)](_0x186c68=>_0x186c68[_0x749028(0xfe)]))!=null?_0x15a47e:[],_0x2184b9=JSON[_0x749028(0x127)](_0x3004c3),_0x385dd5=(await this[_0x749028(0xe5)][_0x749028(0xe8)](_0x396f65))[_0x749028(0xd0)]();if(_0x490d09){const _0x487cfe={'memberId':_0x385dd5,'unitId':_0x396f65,'content':_0x2184b9,'mention':_0x2e4409,'threadId':_0x513f4c},_0x422576=(await this[_0x749028(0xde)][_0x749028(0xc5)]('/universer-api/comment/unit/'+_0x396f65+_0x749028(0xfd),{'body':_0x487cfe}))[_0x749028(0xf1)][_0x749028(0xe7)];return{..._0x1a7d5f,'id':_0x422576[_0x749028(0x128)],'dT':_0x5b2334(+_0x422576['createTimestamp'])[_0x749028(0x11c)]('YYYY/MM/DD\x20HH:mm'),'personId':_0x422576[_0x749028(0xe1)]};}else{const _0x369960={'memberId':_0x385dd5,'unitId':_0x396f65,'content':_0x2184b9,'mention':_0x2e4409},_0x535b31=await this[_0x749028(0xde)][_0x749028(0xc5)](_0x749028(0x115)+_0x396f65+_0x749028(0x10c),{'body':_0x369960});return X(_0x535b31['body']['comment'],_0x1a7d5f);}}async['updateComment'](_0x369df0){const _0x48629d=_0x1c4990;var _0x23b1d0,_0x36d45c;const {text:_0x404232,unitId:_0x41e7b6}=_0x369df0,_0x29d593=(_0x36d45c=(_0x23b1d0=_0x404232[_0x48629d(0xf6)])==null?void 0x0:_0x23b1d0[_0x48629d(0xda)](_0x1806e6=>_0x1806e6['rangeType']===_0x11ff2a['COMMENT'])[_0x48629d(0x10f)](_0xae005d=>_0xae005d[_0x48629d(0xfe)]))!=null?_0x36d45c:[],_0x171d31=JSON['stringify'](_0x404232),_0x1c7e3a=_0x369df0['threadId'],_0x2b5a73=_0x369df0['id'],_0x3f7d42={'memberId':(await this[_0x48629d(0xe5)]['requireSession'](_0x41e7b6))['getMemberID'](),'unitId':_0x41e7b6,'threadId':_0x1c7e3a,'mention':_0x29d593,'content':_0x171d31,'replyId':_0x2b5a73},_0x4c3a8b=await this[_0x48629d(0xde)]['post']('/universer-api/comment/unit/'+_0x41e7b6+_0x48629d(0x109),{'body':_0x3f7d42});return!_0x4c3a8b['body'][_0x48629d(0x121)]||_0x4c3a8b[_0x48629d(0xf1)][_0x48629d(0x121)][_0x48629d(0xdd)]===0x1;}async['resolveComment'](_0x3e49a5){const _0x8f86e2=_0x1c4990,{unitId:_0x20fc31}=_0x3e49a5,_0x2f95c2=_0x3e49a5['threadId'],_0x2a8a3f={'memberId':this[_0x8f86e2(0xcd)]['getCurrentUser']()[_0x8f86e2(0xf8)],'unitId':_0x20fc31,'threadId':_0x2f95c2,'solved':_0x3e49a5[_0x8f86e2(0xfb)]?I[_0x8f86e2(0x10d)]:I[_0x8f86e2(0xf0)]},_0x2bbce0=await this['_httpService'][_0x8f86e2(0xc5)](_0x8f86e2(0x115)+_0x20fc31+'/solved',{'body':_0x2a8a3f});return!_0x2bbce0[_0x8f86e2(0xf1)]['error']||_0x2bbce0['body'][_0x8f86e2(0x121)][_0x8f86e2(0xdd)]===0x1;}async[_0x1c4990(0xd1)](_0x24fcdd,_0x1288a7,_0x53f267,_0x2f707f){const _0x141d46=_0x1c4990,_0x160c26={'memberId':(await this[_0x141d46(0xe5)][_0x141d46(0xe8)](_0x24fcdd))['getMemberID'](),'threadId':_0x53f267,'replyId':_0x2f707f,'unitId':_0x24fcdd},_0x3b8df8=await this[_0x141d46(0xde)][_0x141d46(0xc5)](_0x141d46(0x115)+_0x24fcdd+_0x141d46(0xe4),{'body':_0x160c26});return!_0x3b8df8['body'][_0x141d46(0x121)]||_0x3b8df8['body']['error'][_0x141d46(0xdd)]===0x1;}async[_0x1c4990(0x10e)](_0x55bc69,_0x53a9ce,_0x330570){const _0x2439f2=_0x1c4990,_0x16ee93={'unitId':_0x55bc69,'threadId':_0x330570},_0x5c7c4d=await this[_0x2439f2(0xde)][_0x2439f2(0xc5)](_0x2439f2(0x115)+_0x55bc69+_0x2439f2(0x107),{'body':_0x16ee93}),_0x2cfb57=_0x330570[_0x2439f2(0x10f)](_0xb9d311=>ee(_0x5c7c4d['body'][_0x2439f2(0xc3)][_0xb9d311],_0x55bc69,_0x53a9ce))[_0x2439f2(0xda)](Boolean);return Object[_0x2439f2(0x129)](_0x5c7c4d[_0x2439f2(0xf1)][_0x2439f2(0xe9)])['forEach'](_0x5c2d1c=>{const _0x17d590=_0x2439f2;this['_userService'][_0x17d590(0xca)](_0x5c2d1c);}),_0x2cfb57;}[_0x1c4990(0x123)](_0x19e459){const _0x218cc9=_0x1c4990;return{'id':_0x19e459['id'],'threadId':_0x19e459[_0x218cc9(0xf3)],'ref':_0x19e459[_0x218cc9(0x126)]};}};S=Q([b(0x0,_0x108585(_0x23a127)),b(0x1,_0x108585(_0x4e911f)),b(0x2,_0x108585(_0x5417b5))],S);var re=Object['getOwnPropertyDescriptor'],te=(_0x1b4820,_0x1d946c,_0x470e7d,_0x2b234e)=>{const _0x2932ec=_0x1c4990;for(var _0x2aafea=_0x2b234e>0x1?void 0x0:_0x2b234e?re(_0x1d946c,_0x470e7d):_0x1d946c,_0x5522c6=_0x1b4820[_0x2932ec(0x100)]-0x1,_0x2227b2;_0x5522c6>=0x0;_0x5522c6--)(_0x2227b2=_0x1b4820[_0x5522c6])&&(_0x2aafea=_0x2227b2(_0x2aafea)||_0x2aafea);return _0x2aafea;},M=(_0x3f0353,_0x381eb5)=>(_0xad62ff,_0x2c6546)=>_0x381eb5(_0xad62ff,_0x2c6546,_0x3f0353);let f=class extends _0x2c9fc3{constructor(_0x4d80fa,_0x4e8550){const _0x507e42=_0x1c4990;super(),this[_0x507e42(0xce)]=_0x4d80fa,this[_0x507e42(0x11f)]=_0x4e8550,this['_initDataSource']();}[_0x1c4990(0xcf)](){const _0x273b0e=_0x1c4990;this[_0x273b0e(0xce)][_0x273b0e(0x108)]=this[_0x273b0e(0x11f)],this[_0x273b0e(0xce)][_0x273b0e(0xea)]=!0x1;}};f=te([M(0x0,_0x7340a4),M(0x1,_0x108585(S))],f);var se=Object[_0x1c4990(0x105)],oe=Object[_0x1c4990(0xc6)],ne=(_0x2e56ff,_0x1a590,_0x2984f2)=>_0x1a590 in _0x2e56ff?se(_0x2e56ff,_0x1a590,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2984f2}):_0x2e56ff[_0x1a590]=_0x2984f2,ie=(_0x8bb360,_0x469d97,_0x529a7e,_0x6b3b8)=>{const _0x1e3213=_0x1c4990;for(var _0x4bae41=_0x6b3b8>0x1?void 0x0:_0x6b3b8?oe(_0x469d97,_0x529a7e):_0x469d97,_0x87d4aa=_0x8bb360[_0x1e3213(0x100)]-0x1,_0x297edd;_0x87d4aa>=0x0;_0x87d4aa--)(_0x297edd=_0x8bb360[_0x87d4aa])&&(_0x4bae41=_0x297edd(_0x4bae41)||_0x4bae41);return _0x4bae41;},N=(_0x5071fe,_0xf3b938)=>(_0x41a703,_0x4bbe2e)=>_0xf3b938(_0x41a703,_0x4bbe2e,_0x5071fe),$=(_0x134d42,_0x2ee20b,_0x11136e)=>ne(_0x134d42,typeof _0x2ee20b!=_0x1c4990(0x104)?_0x2ee20b+'':_0x2ee20b,_0x11136e);let g=class extends _0x21d69d{constructor(_0x416df8=O,_0x2e5463,_0xe1cafb){const _0x57e98c=_0x1c4990;super(),this[_0x57e98c(0xe6)]=_0x416df8,this[_0x57e98c(0x12c)]=_0x2e5463,this[_0x57e98c(0x12a)]=_0xe1cafb;const {..._0x39e32f}=_0x49cd4d({},O,this[_0x57e98c(0xe6)]);this[_0x57e98c(0x12a)][_0x57e98c(0xc7)](z,_0x39e32f);}[_0x1c4990(0xd4)](){[[S],[f],[_]]['forEach'](_0x42786a=>{const _0x108275=_0x37a2;this[_0x108275(0x12c)][_0x108275(0x11a)](_0x42786a);});}[_0x1c4990(0x124)](){const _0x440764=_0x1c4990;this[_0x440764(0x12c)][_0x440764(0x112)](f),this['_injector'][_0x440764(0x112)](_);}};$(g,_0x1c4990(0xfa),W),$(g,_0x1c4990(0x10a),_0x22c964[_0x1c4990(0x103)]),g=ie([_0x4a4332(_0x33ba46,_0x4fb59d,_0x2c8ed9),N(0x1,_0x108585(_0x2d7221)),N(0x2,_0x440bd9)],g);export{g as UniverThreadCommentDataSourcePlugin};
1
+ const _0x19b457=_0x1b12;function _0x20a1(){const _0x5ef902=['Solved','_threadCommentDataSourceService','delete','disposeWithMe','Solve','writable','replies','slice','/delete','/universer-api/user/list','_initUserSync','default','replyId','defineProperty','/list','Delete','size','userId','value','stringify','Reply','forEach','resolveComment','YYYY/MM/DD\x20HH:mm','resolved','solved','function','0.17.0-insiders.20260318-d69dc16','customRanges','createTimestamp','find','comment','version','pipe','unitId','add','_configService','memberId','_init','payload','constructor','enumerable','addUser','root','getComment','395rMpxZz','749984EAmqfn','_sessionService','commentUpdate$','personId','type','thread-comment-data-source.config','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','code','_commentService','mention','8586QQhlGg','rangeId','symbol','dataSource','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','360IIiehX','Add','getOwnPropertyDescriptor','syncUpdateMutationToColla','post','addComment','/reply','getUser','content','rangeType','length','iterator','ref','format','getUnit','packageName','subscribe','decorate','/universer-api/comment/unit/','onStarting','threadId','COMMENT','1557350CBRIfd','saveCommentToSnapshot','values','setConfig','onReady','_userService','user','_threadCommentModel','_initDataSource','body','OpenOrReOpen','/solved','string','prototype','comments','getMemberID','listComments','getCurrentUser','@univerjs-pro/thread-comment-datasource','reply','users','error','_httpService','object','605037TkIqGZ','pluginName','_injector','_threadCommentDataSource','filter','map','62eluayt','toPrimitive','/add','deleteComment','call','parentId','_config','11RxuBjy','Edit','userID','5738SZCOgm','parse','configurable','66159DLyDWX','updateComment','/edit','786681vwrCMr','requireSession'];_0x20a1=function(){return _0x5ef902;};return _0x20a1();}(function(_0xd7cdbb,_0xc9fbf4){const _0x316d92=_0x1b12,_0x32fff1=_0xd7cdbb();while(!![]){try{const _0x2e604a=parseInt(_0x316d92(0x95))/0x1*(parseInt(_0x316d92(0x9f))/0x2)+parseInt(_0x316d92(0x8f))/0x3+parseInt(_0x316d92(0xd5))/0x4+parseInt(_0x316d92(0xd4))/0x5*(-parseInt(_0x316d92(0xdf))/0x6)+-parseInt(_0x316d92(0xa5))/0x7+-parseInt(_0x316d92(0xe5))/0x8*(parseInt(_0x316d92(0xa2))/0x9)+parseInt(_0x316d92(0x77))/0xa*(parseInt(_0x316d92(0x9c))/0xb);if(_0x2e604a===_0xc9fbf4)break;else _0x32fff1['push'](_0x32fff1['shift']());}catch(_0x1de111){_0x32fff1['push'](_0x32fff1['shift']());}}}(_0x20a1,0x28aa1));import{CollaborationSessionService as _0x3493b0,CommentService as _0x48a745,UniverCollaborationClientPlugin as _0x254729}from'@univerjs-pro/collaboration-client';function _0x1b12(_0x1cad93,_0x48b07c){_0x1cad93=_0x1cad93-0x73;const _0x20a1d4=_0x20a1();let _0x1b12a6=_0x20a1d4[_0x1cad93];return _0x1b12a6;}import{UniverLicensePlugin as _0x205133}from'@univerjs-pro/license';import{CustomRangeType as _0x463d7a,DependentOn as _0x1e9232,Disposable as _0x26365f,IConfigService as _0x364c81,Inject as _0x38f24b,Injector as _0x3bb55e,Plugin as _0x84fe4e,UserManagerService as _0x613a7d,dayjs as _0x3b7160,merge as _0x26af19}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0xf96549}from'@univerjs/thread-comment-ui';import{CommentSolvedStatus as _0x213cbd,CommentUpdateEventType as _0x24e577}from'@univerjs/protocol';import{IThreadCommentDataSourceService as _0x3bee15,ThreadCommentModel as _0x23cf46}from'@univerjs/thread-comment';import{bufferTime as _0x551496}from'rxjs';import{HTTPService as _0x247a2e}from'@univerjs/network';var x=_0x19b457(0x89),S=_0x19b457(0xc2);const C=_0x5c1d90=>_0x3b7160(new Date(+_0x5c1d90))[_0x19b457(0xf2)](_0x19b457(0xbe)),w=async(_0x4171e0,_0x5416e1)=>{const _0x3e14d5=_0x19b457;let _0x541a73=_0x4171e0[_0x3e14d5(0xe3)](_0x613a7d),_0x15b22f=_0x4171e0[_0x3e14d5(0xe3)](_0x247a2e);_0x5416e1[_0x3e14d5(0xbc)](_0x54adf9=>{const _0x4ff9fb=_0x3e14d5;_0x541a73[_0x4ff9fb(0xec)](_0x54adf9)&&_0x5416e1[_0x4ff9fb(0xa9)](_0x54adf9);}),_0x5416e1[_0x3e14d5(0xb7)]&&(await _0x15b22f[_0x3e14d5(0xe3)](_0x3e14d5(0xb0),{'params':{'userIDs':[..._0x5416e1]}}))[_0x3e14d5(0x80)][_0x3e14d5(0x8b)][_0x3e14d5(0xbc)](_0x2103e4=>{const _0x4f42de=_0x3e14d5;_0x2103e4&&_0x541a73[_0x4f42de(0xd1)](_0x2103e4);});};function T(_0x546f43,_0x4917cd){return function(_0x5a19aa,_0x432e65){_0x4917cd(_0x5a19aa,_0x432e65,_0x546f43);};}function E(_0x45af5d,_0x2029af,_0x14c08e,_0x2f23b7){const _0x303274=_0x19b457;var _0x2ad509=arguments[_0x303274(0xef)],_0x233fe7=_0x2ad509<0x3?_0x2029af:_0x2f23b7===null?_0x2f23b7=Object[_0x303274(0xe7)](_0x2029af,_0x14c08e):_0x2f23b7,_0x143a89;if(typeof Reflect==_0x303274(0x8e)&&typeof Reflect[_0x303274(0xf6)]==_0x303274(0xc1))_0x233fe7=Reflect[_0x303274(0xf6)](_0x45af5d,_0x2029af,_0x14c08e,_0x2f23b7);else{for(var _0x5694ad=_0x45af5d[_0x303274(0xef)]-0x1;_0x5694ad>=0x0;_0x5694ad--)(_0x143a89=_0x45af5d[_0x5694ad])&&(_0x233fe7=(_0x2ad509<0x3?_0x143a89(_0x233fe7):_0x2ad509>0x3?_0x143a89(_0x2029af,_0x14c08e,_0x233fe7):_0x143a89(_0x2029af,_0x14c08e))||_0x233fe7);}return _0x2ad509>0x3&&_0x233fe7&&Object[_0x303274(0xb4)](_0x2029af,_0x14c08e,_0x233fe7),_0x233fe7;}let D=class extends _0x26365f{constructor(_0xc22e2d,_0x1665d5,_0x2db097,_0x169d90){const _0x64efe8=_0x19b457;super(),this[_0x64efe8(0xdd)]=_0xc22e2d,this[_0x64efe8(0x7e)]=_0x1665d5,this[_0x64efe8(0x7c)]=_0x2db097,this[_0x64efe8(0x91)]=_0x169d90,this[_0x64efe8(0xcd)](),this[_0x64efe8(0xb1)]();}[_0x19b457(0xb1)](){const _0x49b6fa=_0x19b457;this[_0x49b6fa(0xaa)](this[_0x49b6fa(0x7e)][_0x49b6fa(0xd7)][_0x49b6fa(0xc8)](_0x551496(0x10))[_0x49b6fa(0xf5)](_0xa4d7d2=>{const _0x181416=_0x49b6fa;let _0x2cd3f6=new Set();_0xa4d7d2[_0x181416(0xbc)](_0xa36f5c=>{const _0x375d98=_0x181416;switch(_0xa36f5c[_0x375d98(0xd9)]){case _0x375d98(0xca):{let _0x1c94cc=_0xa36f5c[_0x375d98(0xce)][_0x375d98(0xd8)];_0x2cd3f6[_0x375d98(0xca)](_0x1c94cc);break;}default:break;}}),w(this[_0x181416(0x91)],_0x2cd3f6);}));}[_0x19b457(0xcd)](){const _0x30e077=_0x19b457;this[_0x30e077(0xaa)](this[_0x30e077(0xdd)][_0x30e077(0xd7)][_0x30e077(0xf5)](async _0x2d4fb5=>{const _0x39d149=_0x30e077;var _0x47db85;let _0x41616b=(_0x47db85=this[_0x39d149(0x7e)][_0x39d149(0xf3)](_0x2d4fb5[_0x39d149(0xc9)])[_0x39d149(0xc5)](_0x51cb6d=>_0x51cb6d[_0x39d149(0x75)]===_0x2d4fb5[_0x39d149(0x75)]))==null?void 0x0:_0x47db85[_0x39d149(0xd2)];if(!_0x41616b)return;let {unitId:_0x109316,subUnitId:_0x303d2a}=_0x41616b;switch(_0x2d4fb5[_0x39d149(0x7d)]&&this[_0x39d149(0x7c)][_0x39d149(0xd1)](_0x2d4fb5[_0x39d149(0x7d)]),_0x2d4fb5[_0x39d149(0xd9)]){case _0x24e577[_0x39d149(0xe6)]:break;case _0x24e577[_0x39d149(0xbb)]:var _0x3266b8,_0x1155e8;this[_0x39d149(0x7e)][_0x39d149(0xea)](_0x109316,_0x303d2a,{'unitId':_0x109316,'subUnitId':_0x303d2a,'ref':'','id':_0x2d4fb5[_0x39d149(0xb3)],'dT':C(+_0x2d4fb5[_0x39d149(0xc4)]),'threadId':_0x2d4fb5[_0x39d149(0x75)],'personId':(_0x3266b8=(_0x1155e8=_0x2d4fb5[_0x39d149(0x7d)])==null?void 0x0:_0x1155e8[_0x39d149(0x9e)])==null?_0x2d4fb5[_0x39d149(0xb8)]:_0x3266b8,'text':JSON[_0x39d149(0xa0)](_0x2d4fb5[_0x39d149(0xed)]),'parentId':_0x41616b['id']});break;case _0x24e577[_0x39d149(0xb6)]:{let _0x2c6d9b=this[_0x39d149(0x7e)][_0x39d149(0xd3)](_0x109316,_0x303d2a,_0x2d4fb5[_0x39d149(0xb3)]);_0x2c6d9b&&_0x2c6d9b[_0x39d149(0x9a)]&&this[_0x39d149(0x7e)][_0x39d149(0x98)](_0x109316,_0x303d2a,_0x2d4fb5[_0x39d149(0xb3)]);break;}case _0x24e577[_0x39d149(0x9d)]:this[_0x39d149(0x7e)][_0x39d149(0xa3)](_0x109316,_0x303d2a,{'commentId':_0x2d4fb5[_0x39d149(0xb3)],'text':JSON[_0x39d149(0xa0)](_0x2d4fb5[_0x39d149(0xed)])});break;case _0x24e577[_0x39d149(0xab)]:{var _0x25926b;let _0x4ae3bc=(_0x25926b=this[_0x39d149(0x7e)][_0x39d149(0xf3)](_0x2d4fb5[_0x39d149(0xc9)])[_0x39d149(0xc5)](_0x1caf9c=>_0x1caf9c[_0x39d149(0x75)]===_0x2d4fb5[_0x39d149(0x75)]))==null?void 0x0:_0x25926b[_0x39d149(0xd2)];_0x4ae3bc&&this[_0x39d149(0x7e)][_0x39d149(0xbd)](_0x109316,_0x303d2a,_0x4ae3bc['id'],_0x2d4fb5[_0x39d149(0xc0)]===_0x213cbd[_0x39d149(0xa7)]);break;}default:break;}}));}};D=E([T(0x0,_0x38f24b(_0x48a745)),T(0x1,_0x38f24b(_0x23cf46)),T(0x2,_0x38f24b(_0x613a7d)),T(0x3,_0x38f24b(_0x3bb55e))],D);const O=_0x19b457(0xda);Symbol(O);const k={};function A(_0x3f63e4,_0x131c5e){const _0x4a647c=_0x19b457;let _0x8b17b5=_0x3f63e4[_0x4a647c(0xad)][0x0];return{..._0x131c5e,'id':_0x8b17b5[_0x4a647c(0xb3)],'resolved':_0x3f63e4[_0x4a647c(0xc0)]===0x1,'dT':C(_0x8b17b5[_0x4a647c(0xc4)]),'personId':_0x8b17b5[_0x4a647c(0xb8)],'threadId':_0x8b17b5[_0x4a647c(0x75)]};}function j(_0x38b68d,_0x16c78d,_0x35ee46){const _0x5edd57=_0x19b457;var _0x524c8e,_0x585e51;if(((_0x524c8e=_0x38b68d==null||(_0x585e51=_0x38b68d[_0x5edd57(0xad)])==null?void 0x0:_0x585e51[_0x5edd57(0xef)])==null?0x0:_0x524c8e)>0x0){let _0x52c4c3=(_0x572a0a,_0x5e3686)=>({'id':_0x572a0a[_0x5edd57(0xb3)],'threadId':_0x572a0a[_0x5edd57(0x75)],'dT':C(_0x572a0a[_0x5edd57(0xc4)]),'personId':_0x572a0a[_0x5edd57(0xb8)],'resolved':_0x38b68d[_0x5edd57(0xc0)]===_0x213cbd[_0x5edd57(0xa7)],'unitId':_0x16c78d,'subUnitId':_0x35ee46,'text':JSON[_0x5edd57(0xa0)](_0x572a0a[_0x5edd57(0xed)]),'parentId':_0x5e3686}),_0x506148=_0x52c4c3(_0x38b68d[_0x5edd57(0xad)][0x0]);return{..._0x506148,'children':_0x38b68d[_0x5edd57(0xad)][_0x5edd57(0xae)](0x1)[_0x5edd57(0x94)](_0x389d8e=>_0x52c4c3(_0x389d8e,_0x506148['id']))};}return null;}let M=class{constructor(_0x4b5d84,_0x8c88ec,_0x57e946){const _0x28bdde=_0x19b457;this[_0x28bdde(0x8d)]=_0x4b5d84,this[_0x28bdde(0x7c)]=_0x8c88ec,this[_0x28bdde(0xd6)]=_0x57e946;}async[_0x19b457(0xea)](_0x24518d){const _0xed5409=_0x19b457;var _0x4a81fe,_0x30f45b;let {parentId:_0x1a1021,unitId:_0x4e309f,text:_0x1f0be1,threadId:_0x1b0185}=_0x24518d,_0x4fe9ab=(_0x4a81fe=(_0x30f45b=_0x1f0be1[_0xed5409(0xc3)])==null?void 0x0:_0x30f45b[_0xed5409(0x93)](_0x43be24=>_0x43be24[_0xed5409(0xee)]===_0x463d7a[_0xed5409(0x76)])[_0xed5409(0x94)](_0xea1621=>_0xea1621[_0xed5409(0xe0)]))==null?[]:_0x4a81fe,_0xb78ed7=JSON[_0xed5409(0xba)](_0x1f0be1),_0x47b108=(await this[_0xed5409(0xd6)][_0xed5409(0xa6)](_0x4e309f))[_0xed5409(0x86)]();if(_0x1a1021){const _0x500a6b={};_0x500a6b[_0xed5409(0xcc)]=_0x47b108,_0x500a6b[_0xed5409(0xc9)]=_0x4e309f,_0x500a6b[_0xed5409(0xed)]=_0xb78ed7,_0x500a6b[_0xed5409(0xde)]=_0x4fe9ab,_0x500a6b[_0xed5409(0x75)]=_0x1b0185;let _0x2c8fb4=_0x500a6b,_0x1b18b3=(await this[_0xed5409(0x8d)][_0xed5409(0xe9)](_0xed5409(0x73)+_0x4e309f+_0xed5409(0xeb),{'body':_0x2c8fb4}))[_0xed5409(0x80)][_0xed5409(0x8a)];return{..._0x24518d,'id':_0x1b18b3[_0xed5409(0xb3)],'dT':_0x3b7160(+_0x1b18b3[_0xed5409(0xc4)])[_0xed5409(0xf2)](_0xed5409(0xbe)),'personId':_0x1b18b3[_0xed5409(0xb8)]};}else{const _0x56721e={};_0x56721e[_0xed5409(0xcc)]=_0x47b108,_0x56721e[_0xed5409(0xc9)]=_0x4e309f,_0x56721e[_0xed5409(0xed)]=_0xb78ed7,_0x56721e[_0xed5409(0xde)]=_0x4fe9ab;let _0x3a6a0e=_0x56721e;const _0x2a8f9e={};return _0x2a8f9e[_0xed5409(0x80)]=_0x3a6a0e,A((await this[_0xed5409(0x8d)][_0xed5409(0xe9)](_0xed5409(0x73)+_0x4e309f+_0xed5409(0x97),_0x2a8f9e))[_0xed5409(0x80)][_0xed5409(0xc6)],_0x24518d);}}async[_0x19b457(0xa3)](_0x412afd){const _0xa1a331=_0x19b457;var _0xb4b714,_0x23d08d;let {text:_0x5c572f,unitId:_0x1fcad8}=_0x412afd,_0xcb2ab9=(_0xb4b714=(_0x23d08d=_0x5c572f[_0xa1a331(0xc3)])==null?void 0x0:_0x23d08d[_0xa1a331(0x93)](_0x9328d1=>_0x9328d1[_0xa1a331(0xee)]===_0x463d7a[_0xa1a331(0x76)])[_0xa1a331(0x94)](_0x16fb76=>_0x16fb76[_0xa1a331(0xe0)]))==null?[]:_0xb4b714,_0x2a448c=JSON[_0xa1a331(0xba)](_0x5c572f),_0x107186=_0x412afd[_0xa1a331(0x75)],_0x305e82=_0x412afd['id'],_0x3e13b2={'memberId':(await this[_0xa1a331(0xd6)][_0xa1a331(0xa6)](_0x1fcad8))[_0xa1a331(0x86)](),'unitId':_0x1fcad8,'threadId':_0x107186,'mention':_0xcb2ab9,'content':_0x2a448c,'replyId':_0x305e82},_0xa3be5e=await this[_0xa1a331(0x8d)][_0xa1a331(0xe9)](_0xa1a331(0x73)+_0x1fcad8+_0xa1a331(0xa4),{'body':_0x3e13b2});return!_0xa3be5e[_0xa1a331(0x80)][_0xa1a331(0x8c)]||_0xa3be5e[_0xa1a331(0x80)][_0xa1a331(0x8c)][_0xa1a331(0xdc)]===0x1;}async[_0x19b457(0xbd)](_0x21585e){const _0x53ee6f=_0x19b457;let {unitId:_0x418107}=_0x21585e,_0x1e4ec7=_0x21585e[_0x53ee6f(0x75)],_0x2a644e={'memberId':this[_0x53ee6f(0x7c)][_0x53ee6f(0x88)]()[_0x53ee6f(0x9e)],'unitId':_0x418107,'threadId':_0x1e4ec7,'solved':_0x21585e[_0x53ee6f(0xbf)]?_0x213cbd[_0x53ee6f(0xa7)]:_0x213cbd[_0x53ee6f(0x81)]},_0x39442b=await this[_0x53ee6f(0x8d)][_0x53ee6f(0xe9)](_0x53ee6f(0x73)+_0x418107+_0x53ee6f(0x82),{'body':_0x2a644e});return!_0x39442b[_0x53ee6f(0x80)][_0x53ee6f(0x8c)]||_0x39442b[_0x53ee6f(0x80)][_0x53ee6f(0x8c)][_0x53ee6f(0xdc)]===0x1;}async[_0x19b457(0x98)](_0x101456,_0x5178a0,_0x53e88e,_0x5ea0bd){const _0x268fc6=_0x19b457;let _0x258c0f={'memberId':(await this[_0x268fc6(0xd6)][_0x268fc6(0xa6)](_0x101456))[_0x268fc6(0x86)](),'threadId':_0x53e88e,'replyId':_0x5ea0bd,'unitId':_0x101456},_0xa34b35=await this[_0x268fc6(0x8d)][_0x268fc6(0xe9)](_0x268fc6(0x73)+_0x101456+_0x268fc6(0xaf),{'body':_0x258c0f});return!_0xa34b35[_0x268fc6(0x80)][_0x268fc6(0x8c)]||_0xa34b35[_0x268fc6(0x80)][_0x268fc6(0x8c)][_0x268fc6(0xdc)]===0x1;}async[_0x19b457(0x87)](_0x1c6179,_0x41e4ae,_0x1b076e){const _0x2f8684=_0x19b457,_0x362f3b={};_0x362f3b[_0x2f8684(0xc9)]=_0x1c6179,_0x362f3b[_0x2f8684(0x75)]=_0x1b076e;let _0x379278=_0x362f3b,_0x11f1df=await this[_0x2f8684(0x8d)][_0x2f8684(0xe9)](_0x2f8684(0x73)+_0x1c6179+_0x2f8684(0xb5),{'body':_0x379278}),_0x463058=_0x1b076e[_0x2f8684(0x94)](_0x1b92ae=>j(_0x11f1df[_0x2f8684(0x80)][_0x2f8684(0x85)][_0x1b92ae],_0x1c6179,_0x41e4ae))[_0x2f8684(0x93)](Boolean);return Object[_0x2f8684(0x79)](_0x11f1df[_0x2f8684(0x80)][_0x2f8684(0x8b)])[_0x2f8684(0xbc)](_0x498ca6=>{const _0x4f1ced=_0x2f8684;this[_0x4f1ced(0x7c)][_0x4f1ced(0xd1)](_0x498ca6);}),_0x463058;}[_0x19b457(0x78)](_0x47b132){const _0x18d72f=_0x19b457,_0x295558={};return _0x295558['id']=_0x47b132['id'],_0x295558[_0x18d72f(0x75)]=_0x47b132[_0x18d72f(0x75)],_0x295558[_0x18d72f(0xf1)]=_0x47b132[_0x18d72f(0xf1)],_0x295558;}};M=E([T(0x0,_0x38f24b(_0x247a2e)),T(0x1,_0x38f24b(_0x613a7d)),T(0x2,_0x38f24b(_0x3493b0))],M);let N=class extends _0x26365f{constructor(_0x238c59,_0xa6de16){const _0x412c54=_0x19b457;super(),this[_0x412c54(0xa8)]=_0x238c59,this[_0x412c54(0x92)]=_0xa6de16,this[_0x412c54(0x7f)]();}[_0x19b457(0x7f)](){const _0x37f75b=_0x19b457;this[_0x37f75b(0xa8)][_0x37f75b(0xe2)]=this[_0x37f75b(0x92)],this[_0x37f75b(0xa8)][_0x37f75b(0xe8)]=!0x1;}};N=E([T(0x0,_0x3bee15),T(0x1,_0x38f24b(M))],N);function P(_0x10a86d){'@babel/helpers - typeof';const _0x591d52=_0x19b457;return P=typeof Symbol==_0x591d52(0xc1)&&typeof Symbol[_0x591d52(0xf0)]==_0x591d52(0xe1)?function(_0x5b4695){return typeof _0x5b4695;}:function(_0xf472be){const _0x54e38e=_0x591d52;return _0xf472be&&typeof Symbol==_0x54e38e(0xc1)&&_0xf472be[_0x54e38e(0xcf)]===Symbol&&_0xf472be!==Symbol[_0x54e38e(0x84)]?_0x54e38e(0xe1):typeof _0xf472be;},P(_0x10a86d);}function F(_0x460ddb,_0x10a5b4){const _0x5e4227=_0x19b457;if(P(_0x460ddb)!=_0x5e4227(0x8e)||!_0x460ddb)return _0x460ddb;var _0x24f724=_0x460ddb[Symbol[_0x5e4227(0x96)]];if(_0x24f724!==void 0x0){var _0x59c1b5=_0x24f724[_0x5e4227(0x99)](_0x460ddb,_0x10a5b4||_0x5e4227(0xb2));if(P(_0x59c1b5)!=_0x5e4227(0x8e))return _0x59c1b5;throw TypeError(_0x5e4227(0xe4));}return(_0x10a5b4===_0x5e4227(0x83)?String:Number)(_0x460ddb);}function I(_0xe05890){const _0x413703=_0x19b457;var _0x48a90d=F(_0xe05890,_0x413703(0x83));return P(_0x48a90d)==_0x413703(0xe1)?_0x48a90d:_0x48a90d+'';}function L(_0x59f5ce,_0x52d5d7,_0x4b7452){const _0x1f64bf=_0x19b457,_0x1948c3={};return _0x1948c3[_0x1f64bf(0xb9)]=_0x4b7452,_0x1948c3[_0x1f64bf(0xd0)]=!0x0,_0x1948c3[_0x1f64bf(0xa1)]=!0x0,_0x1948c3[_0x1f64bf(0xac)]=!0x0,((_0x52d5d7=I(_0x52d5d7))in _0x59f5ce?Object[_0x1f64bf(0xb4)](_0x59f5ce,_0x52d5d7,_0x1948c3):_0x59f5ce[_0x52d5d7]=_0x4b7452,_0x59f5ce);}let R=class extends _0x84fe4e{constructor(_0x2c09c4=k,_0x3a7df2,_0x52be77){const _0x10d03b=_0x19b457;super(),this[_0x10d03b(0x9b)]=_0x2c09c4,this[_0x10d03b(0x91)]=_0x3a7df2,this[_0x10d03b(0xcb)]=_0x52be77;let {..._0x4ec637}=_0x26af19({},k,this[_0x10d03b(0x9b)]);this[_0x10d03b(0xcb)][_0x10d03b(0x7a)](O,_0x4ec637);}[_0x19b457(0x74)](){const _0x226bb7=_0x19b457;[[M],[N],[D]][_0x226bb7(0xbc)](_0x46803d=>{const _0x46f14a=_0x226bb7;this[_0x46f14a(0x91)][_0x46f14a(0xca)](_0x46803d);});}[_0x19b457(0x7b)](){const _0x2227e7=_0x19b457;this[_0x2227e7(0x91)][_0x2227e7(0xe3)](N),this[_0x2227e7(0x91)][_0x2227e7(0xe3)](D);}};L(R,_0x19b457(0x90),_0x19b457(0xdb)),L(R,_0x19b457(0xf4),x),L(R,_0x19b457(0xc7),S),R=E([_0x1e9232(_0xf96549,_0x254729,_0x205133),T(0x1,_0x38f24b(_0x3bb55e)),T(0x2,_0x364c81)],R);export{R as UniverThreadCommentDataSourcePlugin};
@@ -1,3 +1,3 @@
1
- import { IAccessor } from '@univerjs/core';
1
+ import type { IAccessor } from '@univerjs/core';
2
2
  export declare const stringifyDT: (createTimestamp: number) => string;
3
3
  export declare const syncUsers: (accessor: IAccessor, relativeUsers: Set<string>) => Promise<void>;
@@ -1,11 +1,12 @@
1
- import { IUniverThreadCommentDataSourceConfig } from './controllers/config.schema';
2
- import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
1
+ import type { IUniverThreadCommentDataSourceConfig } from './controllers/config.schema';
2
+ import { IConfigService, Injector, Plugin } from '@univerjs/core';
3
3
  export declare class UniverThreadCommentDataSourcePlugin extends Plugin {
4
4
  private readonly _config;
5
5
  protected _injector: Injector;
6
6
  private readonly _configService;
7
7
  static pluginName: string;
8
- static type: UniverInstanceType;
8
+ static packageName: string;
9
+ static version: string;
9
10
  constructor(_config: IUniverThreadCommentDataSourceConfig | undefined, _injector: Injector, _configService: IConfigService);
10
11
  onStarting(): void;
11
12
  onReady(): void;
@@ -1,4 +1,4 @@
1
- import { IBaseComment, IThreadComment, IThreadCommentDataSource } from '@univerjs/thread-comment';
1
+ import type { IBaseComment, IThreadComment, IThreadCommentDataSource } from '@univerjs/thread-comment';
2
2
  import { CollaborationSessionService } from '@univerjs-pro/collaboration-client';
3
3
  import { UserManagerService } from '@univerjs/core';
4
4
  import { HTTPService } from '@univerjs/network';
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3d2c(_0x3d0f84,_0x27be1f){_0x3d0f84=_0x3d0f84-0x19a;const _0x2316dd=_0x2316();let _0x3d2c86=_0x2316dd[_0x3d0f84];return _0x3d2c86;}function _0x2316(){const _0x4ff98a=['threadId','subscribe','onReady','dayjs','CollaborationSessionService','updateComment','_commentService','get','Edit','UNIVER_UNKNOWN','userID','3254FxHqbB','rxjs','add','2490264TROSQZ','HTTPService','error','UniverProThreadCommentDatasource','code','toStringTag','CustomRangeType','OpenOrReOpen','171UNGvZg','UniverThreadCommentUi','UniverThreadComment','2037304ZSwkOj','rangeType','Add','dataSource','UniverProLicense','body','Module','function','getOwnPropertyDescriptor','145585GUUQTb','getUser','user','filter','@univerjs/core','/solved','forEach','unitId','stringify','_userService','7SLfrGz','replyId','Disposable','CommentService','resolveComment','@univerjs/thread-comment','UserManagerService','_sessionService','comment','/universer-api/user/list','slice','parse','post','4312496QcWiDy','delete','_threadCommentModel','addUser','content','UNRECOGNIZED','_threadCommentDataSourceService','requireSession','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','solved','UniverThreadCommentUIPlugin','UniverThreadCommentDataSourcePlugin','onStarting','/list','userId','UniverLicensePlugin','commentUpdate$','@univerjs/network','/reply','listComments','_injector','_httpService','IConfigService','root','@univerjs/thread-comment-ui','syncUpdateMutationToColla','merge','_initUserSync','439640BHafQB','YYYY/MM/DD\x20HH:mm','type','payload','parentId','getUnit','format','/delete','Unknown','UniverCore','disposeWithMe','ThreadCommentModel','UniverInstanceType','_config','customRanges','createTimestamp','@univerjs-pro/license','/add','Injector','getMemberID','264gSYEdM','amd','deleteComment','reply','pipe','UniverNetwork','symbol','UniverProCollaborationClient','ref','defineProperty','_init','Reply','Solved','Solve','Delete','users','bufferTime','Plugin','replies','map','_initDataSource','addComment','@univerjs-pro/collaboration-client','/edit','rangeId','/universer-api/comment/unit/','_threadCommentDataSource','setConfig','26079deuoLV','length','comments','Inject','resolved'];_0x2316=function(){return _0x4ff98a;};return _0x2316();}(function(_0x479fa5,_0x28c803){const _0x2dd055=_0x3d2c,_0x597863=_0x479fa5();while(!![]){try{const _0xb85466=-parseInt(_0x2dd055(0x1bd))/0x1*(-parseInt(_0x2dd055(0x1b2))/0x2)+parseInt(_0x2dd055(0x1a2))/0x3+parseInt(_0x2dd055(0x1e0))/0x4+parseInt(_0x2dd055(0x1c9))/0x5*(-parseInt(_0x2dd055(0x210))/0x6)+parseInt(_0x2dd055(0x1d3))/0x7*(parseInt(_0x2dd055(0x1c0))/0x8)+parseInt(_0x2dd055(0x1b5))/0x9+parseInt(_0x2dd055(0x1fc))/0xa;if(_0xb85466===_0x28c803)break;else _0x597863['push'](_0x597863['shift']());}catch(_0x5e72ad){_0x597863['push'](_0x597863['shift']());}}}(_0x2316,0xa0f09),function(_0x4c1147,_0x4a716f){const _0x80ca34=_0x3d2c;typeof exports=='object'&&typeof module<'u'?_0x4a716f(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/thread-comment-ui'),require('@univerjs/thread-comment'),require('rxjs'),require('@univerjs/network')):typeof define==_0x80ca34(0x1c7)&&define[_0x80ca34(0x211)]?define(['exports',_0x80ca34(0x19c),_0x80ca34(0x20c),_0x80ca34(0x1cd),_0x80ca34(0x1f8),_0x80ca34(0x1d8),'rxjs',_0x80ca34(0x1f1)],_0x4a716f):(_0x4c1147=typeof globalThis<'u'?globalThis:_0x4c1147||self,_0x4a716f(_0x4c1147[_0x80ca34(0x1b8)]={},_0x4c1147[_0x80ca34(0x217)],_0x4c1147[_0x80ca34(0x1c4)],_0x4c1147[_0x80ca34(0x205)],_0x4c1147[_0x80ca34(0x1be)],_0x4c1147[_0x80ca34(0x1bf)],_0x4c1147[_0x80ca34(0x1b3)],_0x4c1147[_0x80ca34(0x215)]));}(this,function(_0x385d40,_0x369bd8,_0x47e426,_0xa66518,_0x1b42b9,_0x4a626a,_0x10c18f,_0x4c6741){'use strict';const _0x12bde9=_0x3d2c;const _0x381fe7=_0x12bde9(0x1e8);var _0x5f4b83=(_0x3bbd7c=>(_0x3bbd7c[_0x3bbd7c[_0x12bde9(0x1bc)]=0x0]=_0x12bde9(0x1bc),_0x3bbd7c[_0x3bbd7c[_0x12bde9(0x21c)]=0x1]=_0x12bde9(0x21c),_0x3bbd7c[_0x3bbd7c[_0x12bde9(0x1e5)]=-0x1]='UNRECOGNIZED',_0x3bbd7c))(_0x5f4b83||{}),_0x387e95=(_0x28a4a1=>(_0x28a4a1[_0x28a4a1[_0x12bde9(0x204)]=0x0]=_0x12bde9(0x204),_0x28a4a1[_0x28a4a1['Add']=0x1]=_0x12bde9(0x1c2),_0x28a4a1[_0x28a4a1[_0x12bde9(0x21b)]=0x2]=_0x12bde9(0x21b),_0x28a4a1[_0x28a4a1['Edit']=0x3]='Edit',_0x28a4a1[_0x28a4a1[_0x12bde9(0x21e)]=0x4]=_0x12bde9(0x21e),_0x28a4a1[_0x28a4a1['Solve']=0x5]='Solve',_0x28a4a1[_0x28a4a1[_0x12bde9(0x1e5)]=-0x1]=_0x12bde9(0x1e5),_0x28a4a1))(_0x387e95||{});const _0x43f364=_0x3aa1ca=>_0xa66518[_0x12bde9(0x1aa)](new Date(+_0x3aa1ca))['format'](_0x12bde9(0x1fd)),_0x368d8c=async(_0x26d658,_0x31e6a8)=>{const _0x1677a9=_0x12bde9,_0x1f629a=_0x26d658[_0x1677a9(0x1ae)](_0xa66518[_0x1677a9(0x1d9)]),_0x979477=_0x26d658[_0x1677a9(0x1ae)](_0x4c6741[_0x1677a9(0x1b6)]);_0x31e6a8[_0x1677a9(0x1cf)](_0x16f3bf=>{const _0x518c43=_0x1677a9;_0x1f629a[_0x518c43(0x1ca)](_0x16f3bf)&&_0x31e6a8[_0x518c43(0x1e1)](_0x16f3bf);}),_0x31e6a8['size']&&(await _0x979477[_0x1677a9(0x1ae)](_0x1677a9(0x1dc),{'params':{'userIDs':[..._0x31e6a8]}}))[_0x1677a9(0x1c5)]['users']['forEach'](_0x8d6400=>{const _0x4dc5e6=_0x1677a9;_0x8d6400&&_0x1f629a[_0x4dc5e6(0x1e3)](_0x8d6400);});};var _0x2ca868=Object['getOwnPropertyDescriptor'],_0x4c136a=(_0x6b60cd,_0x505064,_0x42d0b5,_0x357ce3)=>{for(var _0x194cca=_0x357ce3>0x1?void 0x0:_0x357ce3?_0x2ca868(_0x505064,_0x42d0b5):_0x505064,_0x30b2e4=_0x6b60cd['length']-0x1,_0x30b196;_0x30b2e4>=0x0;_0x30b2e4--)(_0x30b196=_0x6b60cd[_0x30b2e4])&&(_0x194cca=_0x30b196(_0x194cca)||_0x194cca);return _0x194cca;},_0x59dab2=(_0x4997bc,_0x61feea)=>(_0x1d8267,_0x20ba7e)=>_0x61feea(_0x1d8267,_0x20ba7e,_0x4997bc);let _0x4184d8=class extends _0xa66518[_0x12bde9(0x1d5)]{constructor(_0x100132,_0x574281,_0x4d7ada,_0x4fbef9){const _0x28d610=_0x12bde9;super(),this['_commentService']=_0x100132,this[_0x28d610(0x1e2)]=_0x574281,this['_userService']=_0x4d7ada,this['_injector']=_0x4fbef9,this[_0x28d610(0x21a)](),this['_initUserSync']();}[_0x12bde9(0x1fb)](){const _0x340744=_0x12bde9;this[_0x340744(0x206)](this['_threadCommentModel']['commentUpdate$'][_0x340744(0x214)](_0x10c18f[_0x340744(0x220)](0x10))['subscribe'](_0x566359=>{const _0x185bfc=_0x340744,_0x2b364e=new Set();_0x566359[_0x185bfc(0x1cf)](_0x241c54=>{const _0x523779=_0x185bfc;if(_0x241c54[_0x523779(0x1fe)]===_0x523779(0x1b4)){const _0x47af20=_0x241c54[_0x523779(0x1ff)]['personId'];_0x2b364e[_0x523779(0x1b4)](_0x47af20);}}),_0x368d8c(this[_0x185bfc(0x1f4)],_0x2b364e);}));}['_init'](){const _0x574426=_0x12bde9;this[_0x574426(0x206)](this[_0x574426(0x1ad)][_0x574426(0x1f0)][_0x574426(0x1a8)](async _0x1e2765=>{const _0x1508a8=_0x574426;var _0x46499b,_0x1c788b,_0x4576c2,_0x5722e3;const _0x485161=(_0x46499b=this[_0x1508a8(0x1e2)][_0x1508a8(0x201)](_0x1e2765[_0x1508a8(0x1d0)])['find'](_0x3c3661=>_0x3c3661['threadId']===_0x1e2765[_0x1508a8(0x1a7)]))==null?void 0x0:_0x46499b[_0x1508a8(0x1f7)];if(!_0x485161)return;const {unitId:_0x1de645,subUnitId:_0x399e2b}=_0x485161;switch(_0x1e2765['user']&&this['_userService']['addUser'](_0x1e2765[_0x1508a8(0x1cb)]),_0x1e2765['type']){case _0x387e95[_0x1508a8(0x1c2)]:break;case _0x387e95[_0x1508a8(0x21b)]:{this[_0x1508a8(0x1e2)][_0x1508a8(0x19b)](_0x1de645,_0x399e2b,{'unitId':_0x1de645,'subUnitId':_0x399e2b,'ref':'','id':_0x1e2765[_0x1508a8(0x1d4)],'dT':_0x43f364(+_0x1e2765[_0x1508a8(0x20b)]),'threadId':_0x1e2765[_0x1508a8(0x1a7)],'personId':(_0x4576c2=(_0x1c788b=_0x1e2765['user'])==null?void 0x0:_0x1c788b[_0x1508a8(0x1b1)])!=null?_0x4576c2:_0x1e2765[_0x1508a8(0x1ee)],'text':JSON[_0x1508a8(0x1de)](_0x1e2765['content']),'parentId':_0x485161['id']});break;}case _0x387e95[_0x1508a8(0x21e)]:{const _0x4bbd90=this[_0x1508a8(0x1e2)]['getComment'](_0x1de645,_0x399e2b,_0x1e2765['replyId']);_0x4bbd90&&_0x4bbd90[_0x1508a8(0x200)]&&this[_0x1508a8(0x1e2)][_0x1508a8(0x212)](_0x1de645,_0x399e2b,_0x1e2765['replyId']);break;}case _0x387e95[_0x1508a8(0x1af)]:{this['_threadCommentModel'][_0x1508a8(0x1ac)](_0x1de645,_0x399e2b,{'commentId':_0x1e2765[_0x1508a8(0x1d4)],'text':JSON[_0x1508a8(0x1de)](_0x1e2765[_0x1508a8(0x1e4)])});break;}case _0x387e95[_0x1508a8(0x21d)]:{const _0x278cd=(_0x5722e3=this[_0x1508a8(0x1e2)][_0x1508a8(0x201)](_0x1e2765[_0x1508a8(0x1d0)])['find'](_0x56bd82=>_0x56bd82[_0x1508a8(0x1a7)]===_0x1e2765[_0x1508a8(0x1a7)]))==null?void 0x0:_0x5722e3[_0x1508a8(0x1f7)];_0x278cd&&this[_0x1508a8(0x1e2)][_0x1508a8(0x1d7)](_0x1de645,_0x399e2b,_0x278cd['id'],_0x1e2765['solved']===_0x5f4b83[_0x1508a8(0x21c)]);break;}}}));}};_0x4184d8=_0x4c136a([_0x59dab2(0x0,_0xa66518[_0x12bde9(0x1a5)](_0x369bd8[_0x12bde9(0x1d6)])),_0x59dab2(0x1,_0xa66518[_0x12bde9(0x1a5)](_0x4a626a[_0x12bde9(0x207)])),_0x59dab2(0x2,_0xa66518[_0x12bde9(0x1a5)](_0xa66518['UserManagerService'])),_0x59dab2(0x3,_0xa66518[_0x12bde9(0x1a5)](_0xa66518[_0x12bde9(0x20e)]))],_0x4184d8);const _0x5a5f98='thread-comment-data-source.config',_0x584180={};var _0xe1ceb4=Object['getOwnPropertyDescriptor'],_0x49d1ca=(_0x359a16,_0x32ccf8,_0x1413ec,_0x132601)=>{const _0x2ff045=_0x12bde9;for(var _0x1c22a0=_0x132601>0x1?void 0x0:_0x132601?_0xe1ceb4(_0x32ccf8,_0x1413ec):_0x32ccf8,_0x47b88d=_0x359a16[_0x2ff045(0x1a3)]-0x1,_0x3f776b;_0x47b88d>=0x0;_0x47b88d--)(_0x3f776b=_0x359a16[_0x47b88d])&&(_0x1c22a0=_0x3f776b(_0x1c22a0)||_0x1c22a0);return _0x1c22a0;},_0x309ed0=(_0x5c6425,_0x44d186)=>(_0x12ce66,_0x53da26)=>_0x44d186(_0x12ce66,_0x53da26,_0x5c6425);function _0x3a580c(_0xc2b70f,_0x50c6b0){const _0x2f59b5=_0x12bde9,_0x320778=_0xc2b70f[_0x2f59b5(0x222)][0x0];return{..._0x50c6b0,'id':_0x320778['replyId'],'resolved':_0xc2b70f[_0x2f59b5(0x1e9)]===0x1,'dT':_0x43f364(_0x320778[_0x2f59b5(0x20b)]),'personId':_0x320778['userId'],'threadId':_0x320778[_0x2f59b5(0x1a7)]};}function _0x1263d8(_0x751563,_0x3f4eb5,_0x5e2867){const _0x53bb9e=_0x12bde9;var _0x12799f,_0x425f3c;if(((_0x425f3c=(_0x12799f=_0x751563==null?void 0x0:_0x751563[_0x53bb9e(0x222)])==null?void 0x0:_0x12799f[_0x53bb9e(0x1a3)])!=null?_0x425f3c:0x0)>0x0){const _0x112f31=(_0x59e90f,_0x59897b)=>({'id':_0x59e90f[_0x53bb9e(0x1d4)],'threadId':_0x59e90f[_0x53bb9e(0x1a7)],'dT':_0x43f364(_0x59e90f[_0x53bb9e(0x20b)]),'personId':_0x59e90f['userId'],'resolved':_0x751563[_0x53bb9e(0x1e9)]===_0x5f4b83[_0x53bb9e(0x21c)],'unitId':_0x3f4eb5,'subUnitId':_0x5e2867,'text':JSON[_0x53bb9e(0x1de)](_0x59e90f['content']),'parentId':_0x59897b}),_0x9fc0c1=_0x112f31(_0x751563['replies'][0x0]);return{..._0x9fc0c1,'children':_0x751563[_0x53bb9e(0x222)][_0x53bb9e(0x1dd)](0x1)[_0x53bb9e(0x223)](_0x13ee11=>_0x112f31(_0x13ee11,_0x9fc0c1['id']))};}return null;}let _0x14852d=class{constructor(_0x435bd9,_0x28ba5b,_0x57abf8){const _0x568f13=_0x12bde9;this[_0x568f13(0x1f5)]=_0x435bd9,this['_userService']=_0x28ba5b,this[_0x568f13(0x1da)]=_0x57abf8;}async[_0x12bde9(0x19b)](_0x357fea){const _0x60938c=_0x12bde9;var _0x300c6e,_0x1fb6f8;const {parentId:_0x5d68a7,unitId:_0x734663,text:_0x22abc2,threadId:_0x201c40}=_0x357fea,_0x1acb5a=(_0x1fb6f8=(_0x300c6e=_0x22abc2[_0x60938c(0x20a)])==null?void 0x0:_0x300c6e['filter'](_0x2ea3e8=>_0x2ea3e8[_0x60938c(0x1c1)]===_0xa66518[_0x60938c(0x1bb)]['COMMENT'])[_0x60938c(0x223)](_0x4c684b=>_0x4c684b['rangeId']))!=null?_0x1fb6f8:[],_0x3a78c1=JSON[_0x60938c(0x1d1)](_0x22abc2),_0x21be09=(await this[_0x60938c(0x1da)]['requireSession'](_0x734663))[_0x60938c(0x20f)]();if(_0x5d68a7){const _0x61c2c5={'memberId':_0x21be09,'unitId':_0x734663,'content':_0x3a78c1,'mention':_0x1acb5a,'threadId':_0x201c40},_0x8c8931=(await this[_0x60938c(0x1f5)]['post'](_0x60938c(0x19f)+_0x734663+_0x60938c(0x1f2),{'body':_0x61c2c5}))[_0x60938c(0x1c5)][_0x60938c(0x213)];return{..._0x357fea,'id':_0x8c8931[_0x60938c(0x1d4)],'dT':_0xa66518['dayjs'](+_0x8c8931[_0x60938c(0x20b)])[_0x60938c(0x202)](_0x60938c(0x1fd)),'personId':_0x8c8931['userId']};}else{const _0x281437={'memberId':_0x21be09,'unitId':_0x734663,'content':_0x3a78c1,'mention':_0x1acb5a},_0x4ada82=await this[_0x60938c(0x1f5)][_0x60938c(0x1df)](_0x60938c(0x19f)+_0x734663+_0x60938c(0x20d),{'body':_0x281437});return _0x3a580c(_0x4ada82[_0x60938c(0x1c5)][_0x60938c(0x1db)],_0x357fea);}}async[_0x12bde9(0x1ac)](_0x2413a8){const _0x97b2c7=_0x12bde9;var _0x33a649,_0x43566f;const {text:_0x1f3d28,unitId:_0x427fe5}=_0x2413a8,_0x279e81=(_0x43566f=(_0x33a649=_0x1f3d28[_0x97b2c7(0x20a)])==null?void 0x0:_0x33a649['filter'](_0x14be66=>_0x14be66[_0x97b2c7(0x1c1)]===_0xa66518[_0x97b2c7(0x1bb)]['COMMENT'])[_0x97b2c7(0x223)](_0x4f4667=>_0x4f4667[_0x97b2c7(0x19e)]))!=null?_0x43566f:[],_0x2bb815=JSON[_0x97b2c7(0x1d1)](_0x1f3d28),_0x3fcf47=_0x2413a8[_0x97b2c7(0x1a7)],_0x5eca48=_0x2413a8['id'],_0x483c42={'memberId':(await this[_0x97b2c7(0x1da)]['requireSession'](_0x427fe5))['getMemberID'](),'unitId':_0x427fe5,'threadId':_0x3fcf47,'mention':_0x279e81,'content':_0x2bb815,'replyId':_0x5eca48},_0x3cfb93=await this[_0x97b2c7(0x1f5)]['post'](_0x97b2c7(0x19f)+_0x427fe5+_0x97b2c7(0x19d),{'body':_0x483c42});return!_0x3cfb93[_0x97b2c7(0x1c5)][_0x97b2c7(0x1b7)]||_0x3cfb93[_0x97b2c7(0x1c5)][_0x97b2c7(0x1b7)][_0x97b2c7(0x1b9)]===0x1;}async[_0x12bde9(0x1d7)](_0x12133b){const _0x60bd62=_0x12bde9,{unitId:_0x315b42}=_0x12133b,_0x1126ae=_0x12133b[_0x60bd62(0x1a7)],_0x141f48={'memberId':this[_0x60bd62(0x1d2)]['getCurrentUser']()[_0x60bd62(0x1b1)],'unitId':_0x315b42,'threadId':_0x1126ae,'solved':_0x12133b[_0x60bd62(0x1a6)]?_0x5f4b83['Solved']:_0x5f4b83['OpenOrReOpen']},_0x550293=await this['_httpService'][_0x60bd62(0x1df)](_0x60bd62(0x19f)+_0x315b42+_0x60bd62(0x1ce),{'body':_0x141f48});return!_0x550293[_0x60bd62(0x1c5)]['error']||_0x550293[_0x60bd62(0x1c5)][_0x60bd62(0x1b7)]['code']===0x1;}async[_0x12bde9(0x212)](_0x3d6459,_0xe859f4,_0x2e223f,_0x53e31b){const _0xbe89a9=_0x12bde9,_0x4ffa4f={'memberId':(await this[_0xbe89a9(0x1da)][_0xbe89a9(0x1e7)](_0x3d6459))['getMemberID'](),'threadId':_0x2e223f,'replyId':_0x53e31b,'unitId':_0x3d6459},_0x1c7a13=await this[_0xbe89a9(0x1f5)]['post'](_0xbe89a9(0x19f)+_0x3d6459+_0xbe89a9(0x203),{'body':_0x4ffa4f});return!_0x1c7a13[_0xbe89a9(0x1c5)][_0xbe89a9(0x1b7)]||_0x1c7a13[_0xbe89a9(0x1c5)][_0xbe89a9(0x1b7)][_0xbe89a9(0x1b9)]===0x1;}async[_0x12bde9(0x1f3)](_0xd18e15,_0x576375,_0x52476f){const _0x3f42c8=_0x12bde9,_0x5d8f78={'unitId':_0xd18e15,'threadId':_0x52476f},_0x1d8612=await this['_httpService'][_0x3f42c8(0x1df)]('/universer-api/comment/unit/'+_0xd18e15+_0x3f42c8(0x1ed),{'body':_0x5d8f78}),_0x2a311b=_0x52476f[_0x3f42c8(0x223)](_0x3f359d=>_0x1263d8(_0x1d8612[_0x3f42c8(0x1c5)][_0x3f42c8(0x1a4)][_0x3f359d],_0xd18e15,_0x576375))[_0x3f42c8(0x1cc)](Boolean);return Object['values'](_0x1d8612[_0x3f42c8(0x1c5)][_0x3f42c8(0x21f)])[_0x3f42c8(0x1cf)](_0x3930f5=>{const _0x4b7ad3=_0x3f42c8;this[_0x4b7ad3(0x1d2)][_0x4b7ad3(0x1e3)](_0x3930f5);}),_0x2a311b;}['saveCommentToSnapshot'](_0x1c421f){const _0x24bf2c=_0x12bde9;return{'id':_0x1c421f['id'],'threadId':_0x1c421f[_0x24bf2c(0x1a7)],'ref':_0x1c421f[_0x24bf2c(0x218)]};}};_0x14852d=_0x49d1ca([_0x309ed0(0x0,_0xa66518[_0x12bde9(0x1a5)](_0x4c6741[_0x12bde9(0x1b6)])),_0x309ed0(0x1,_0xa66518[_0x12bde9(0x1a5)](_0xa66518[_0x12bde9(0x1d9)])),_0x309ed0(0x2,_0xa66518[_0x12bde9(0x1a5)](_0x369bd8[_0x12bde9(0x1ab)]))],_0x14852d);var _0xc587c1=Object['getOwnPropertyDescriptor'],_0x406b50=(_0x368638,_0x4b7879,_0x48e6de,_0x2adb2a)=>{for(var _0x108c1e=_0x2adb2a>0x1?void 0x0:_0x2adb2a?_0xc587c1(_0x4b7879,_0x48e6de):_0x4b7879,_0x3c2198=_0x368638['length']-0x1,_0x386bbd;_0x3c2198>=0x0;_0x3c2198--)(_0x386bbd=_0x368638[_0x3c2198])&&(_0x108c1e=_0x386bbd(_0x108c1e)||_0x108c1e);return _0x108c1e;},_0x1a9ba1=(_0x5b64e8,_0x4d4c37)=>(_0x303ec2,_0x13f5d8)=>_0x4d4c37(_0x303ec2,_0x13f5d8,_0x5b64e8);let _0x52afc6=class extends _0xa66518[_0x12bde9(0x1d5)]{constructor(_0x2abe23,_0x15c9a0){const _0x535d96=_0x12bde9;super(),this[_0x535d96(0x1e6)]=_0x2abe23,this[_0x535d96(0x1a0)]=_0x15c9a0,this['_initDataSource']();}[_0x12bde9(0x19a)](){const _0x2a398=_0x12bde9;this[_0x2a398(0x1e6)][_0x2a398(0x1c3)]=this['_threadCommentDataSource'],this[_0x2a398(0x1e6)][_0x2a398(0x1f9)]=!0x1;}};_0x52afc6=_0x406b50([_0x1a9ba1(0x0,_0x4a626a['IThreadCommentDataSourceService']),_0x1a9ba1(0x1,_0xa66518[_0x12bde9(0x1a5)](_0x14852d))],_0x52afc6);var _0x1c3b87=Object['defineProperty'],_0x1dd6e4=Object[_0x12bde9(0x1c8)],_0x25e32=(_0x371a62,_0x278369,_0x25171c)=>_0x278369 in _0x371a62?_0x1c3b87(_0x371a62,_0x278369,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25171c}):_0x371a62[_0x278369]=_0x25171c,_0x2e2ead=(_0x588746,_0x3a2a33,_0x1d3d0c,_0xe4ad41)=>{const _0x565e24=_0x12bde9;for(var _0x4bf82f=_0xe4ad41>0x1?void 0x0:_0xe4ad41?_0x1dd6e4(_0x3a2a33,_0x1d3d0c):_0x3a2a33,_0x3553fd=_0x588746[_0x565e24(0x1a3)]-0x1,_0x302e2e;_0x3553fd>=0x0;_0x3553fd--)(_0x302e2e=_0x588746[_0x3553fd])&&(_0x4bf82f=_0x302e2e(_0x4bf82f)||_0x4bf82f);return _0x4bf82f;},_0x2fd0cb=(_0x1a71c5,_0x55cb9f)=>(_0x5523b5,_0x5c8455)=>_0x55cb9f(_0x5523b5,_0x5c8455,_0x1a71c5),_0x4bbf9d=(_0x2538f7,_0x1e8e27,_0x2bebdf)=>_0x25e32(_0x2538f7,typeof _0x1e8e27!=_0x12bde9(0x216)?_0x1e8e27+'':_0x1e8e27,_0x2bebdf);_0x385d40[_0x12bde9(0x1eb)]=class extends _0xa66518[_0x12bde9(0x221)]{constructor(_0x59ff59=_0x584180,_0x37346a,_0x50f7d3){const _0x933647=_0x12bde9;super(),this[_0x933647(0x209)]=_0x59ff59,this[_0x933647(0x1f4)]=_0x37346a,this['_configService']=_0x50f7d3;const {..._0x2eb91a}=_0xa66518[_0x933647(0x1fa)]({},_0x584180,this[_0x933647(0x209)]);this['_configService'][_0x933647(0x1a1)](_0x5a5f98,_0x2eb91a);}[_0x12bde9(0x1ec)](){[[_0x14852d],[_0x52afc6],[_0x4184d8]]['forEach'](_0x482d40=>{const _0x5d4638=_0x3d2c;this['_injector'][_0x5d4638(0x1b4)](_0x482d40);});}[_0x12bde9(0x1a9)](){const _0x2c6ea7=_0x12bde9;this[_0x2c6ea7(0x1f4)][_0x2c6ea7(0x1ae)](_0x52afc6),this[_0x2c6ea7(0x1f4)][_0x2c6ea7(0x1ae)](_0x4184d8);}},_0x4bbf9d(_0x385d40[_0x12bde9(0x1eb)],'pluginName',_0x381fe7),_0x4bbf9d(_0x385d40[_0x12bde9(0x1eb)],_0x12bde9(0x1fe),_0xa66518[_0x12bde9(0x208)][_0x12bde9(0x1b0)]),_0x385d40['UniverThreadCommentDataSourcePlugin']=_0x2e2ead([_0xa66518['DependentOn'](_0x1b42b9[_0x12bde9(0x1ea)],_0x369bd8['UniverCollaborationClientPlugin'],_0x47e426[_0x12bde9(0x1ef)]),_0x2fd0cb(0x1,_0xa66518[_0x12bde9(0x1a5)](_0xa66518[_0x12bde9(0x20e)])),_0x2fd0cb(0x2,_0xa66518[_0x12bde9(0x1f6)])],_0x385d40[_0x12bde9(0x1eb)]),Object[_0x12bde9(0x219)](_0x385d40,Symbol[_0x12bde9(0x1ba)],{'value':_0x12bde9(0x1c6)});}));
1
+ function _0x1e71(){const _0x378063=['@univerjs-pro/collaboration-client','7640379BQYXrt','_userService','HTTPService','find','/reply','disposeWithMe','symbol','writable','size','_initUserSync','ThreadCommentModel','_threadCommentDataSourceService','toStringTag','Plugin','stringify','solved','getCurrentUser','_config','/universer-api/comment/unit/','get','_init','_injector','customRanges','value','error','_sessionService','onStarting','object','IConfigService','content','getOwnPropertyDescriptor','packageName','onReady','OpenOrReOpen','root','Edit','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','COMMENT','payload','UniverThreadCommentUi','pipe','amd','bufferTime','resolved','UniverLicensePlugin','values','UniverProLicense','threadId','prototype','_initDataSource','Solve','/add','944314sihRSQ','Injector','/delete','configurable','mention','dayjs','_configService','reply','@univerjs/core','0.17.0-insiders.20260318-d69dc16','add','comment','UniverThreadCommentDataSourcePlugin','@univerjs/network','enumerable','userID','decorate','code','598906iAJKOv','284560GadWPP','UNRECOGNIZED','constructor','UniverCollaborationClientPlugin','DependentOn','rangeType','getUser','function','CommentService','/universer-api/user/list','rxjs','requireSession','replyId','version','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','length','getComment','UniverNetwork','rangeId','UserManagerService','setConfig','commentUpdate$','type','personId','_commentService','3710833OqRPlK','call','Disposable','UniverThreadCommentUIPlugin','Solved','Module','subscribe','merge','@univerjs-pro/thread-comment-datasource','memberId','map','40wQSMLM','11090100dRqybl','deleteComment','slice','@univerjs/thread-comment','addComment','parentId','toPrimitive','6ZGuuxW','thread-comment-data-source.config','addUser','ref','updateComment','users','post','string','createTimestamp','saveCommentToSnapshot','userId','parse','18BpZoqH','replies','pluginName','CustomRangeType','@univerjs-pro/license','Add','iterator','UniverCore','UniverThreadComment','UniverProCollaborationClient','resolveComment','getUnit','26NqXXlW','IThreadCommentDataSourceService','16wWqBPQ','YYYY/MM/DD\x20HH:mm','/solved','body','2027612ISBkdL','syncUpdateMutationToColla','listComments','user','@univerjs/thread-comment-ui','_threadCommentDataSource','defineProperty','unitId','delete','default','/list','filter','Inject','exports','comments','getMemberID','_httpService','/edit','forEach','Reply','CollaborationSessionService','UniverProThreadCommentDatasource','dataSource','1KbQlKX','_threadCommentModel','Delete','format','Unknown'];_0x1e71=function(){return _0x378063;};return _0x1e71();}function _0x4dda(_0x59b554,_0x355bc3){_0x59b554=_0x59b554-0x16a;const _0x1e7121=_0x1e71();let _0x4ddad=_0x1e7121[_0x59b554];return _0x4ddad;}(function(_0x27abe3,_0x2e9fb2){const _0x3b5b23=_0x4dda,_0x38983c=_0x27abe3();while(!![]){try{const _0x478d30=-parseInt(_0x3b5b23(0x1ee))/0x1*(-parseInt(_0x3b5b23(0x17a))/0x2)+parseInt(_0x3b5b23(0x1b9))/0x3*(-parseInt(_0x3b5b23(0x1d7))/0x4)+-parseInt(_0x3b5b23(0x18d))/0x5+parseInt(_0x3b5b23(0x1c5))/0x6*(parseInt(_0x3b5b23(0x1a6))/0x7)+-parseInt(_0x3b5b23(0x1d3))/0x8*(parseInt(_0x3b5b23(0x1f4))/0x9)+-parseInt(_0x3b5b23(0x1b1))/0xa*(parseInt(_0x3b5b23(0x18c))/0xb)+parseInt(_0x3b5b23(0x1b2))/0xc*(parseInt(_0x3b5b23(0x1d1))/0xd);if(_0x478d30===_0x2e9fb2)break;else _0x38983c['push'](_0x38983c['shift']());}catch(_0x594e8a){_0x38983c['push'](_0x38983c['shift']());}}}(_0x1e71,0xe1b54),function(_0xd487a,_0x34ea13){const _0x45b5ab=_0x4dda;typeof exports==_0x45b5ab(0x20f)&&typeof module<'u'?_0x34ea13(exports,require(_0x45b5ab(0x1f3)),require(_0x45b5ab(0x1c9)),require(_0x45b5ab(0x182)),require(_0x45b5ab(0x1db)),require(_0x45b5ab(0x1b5)),require(_0x45b5ab(0x197)),require(_0x45b5ab(0x187))):typeof define==_0x45b5ab(0x194)&&define[_0x45b5ab(0x16f)]?define([_0x45b5ab(0x1e4),_0x45b5ab(0x1f3),_0x45b5ab(0x1c9),_0x45b5ab(0x182),_0x45b5ab(0x1db),_0x45b5ab(0x1b5),_0x45b5ab(0x197),_0x45b5ab(0x187)],_0x34ea13):(_0xd487a=typeof globalThis<'u'?globalThis:_0xd487a||self,_0x34ea13(_0xd487a[_0x45b5ab(0x1ec)]={},_0xd487a[_0x45b5ab(0x1ce)],_0xd487a[_0x45b5ab(0x174)],_0xd487a[_0x45b5ab(0x1cc)],_0xd487a[_0x45b5ab(0x16d)],_0xd487a[_0x45b5ab(0x1cd)],_0xd487a[_0x45b5ab(0x197)],_0xd487a[_0x45b5ab(0x19e)]));}(this,function(_0x40a882,_0x1566d0,_0x2ec3fd,_0x10079f,_0x5a2071,_0x3072bb,_0x761b51,_0x35d0ec){const _0x529f1e=_0x4dda,_0x2ef31a={};_0x2ef31a[_0x529f1e(0x20b)]=_0x529f1e(0x1ab),Object[_0x529f1e(0x1dd)](_0x40a882,Symbol[_0x529f1e(0x200)],_0x2ef31a);var _0x574f46=_0x529f1e(0x1ae),_0x1513ad=_0x529f1e(0x183);let _0x2fe5f0=function(_0x3b8999){const _0x686ffe=_0x529f1e;return _0x3b8999[_0x3b8999[_0x686ffe(0x215)]=0x0]=_0x686ffe(0x215),_0x3b8999[_0x3b8999[_0x686ffe(0x1aa)]=0x1]=_0x686ffe(0x1aa),_0x3b8999[_0x3b8999[_0x686ffe(0x18e)]=-0x1]=_0x686ffe(0x18e),_0x3b8999;}({}),_0x2f5b03=function(_0x4a8fbd){const _0x18a441=_0x529f1e;return _0x4a8fbd[_0x4a8fbd[_0x18a441(0x1f2)]=0x0]=_0x18a441(0x1f2),_0x4a8fbd[_0x4a8fbd[_0x18a441(0x1ca)]=0x1]=_0x18a441(0x1ca),_0x4a8fbd[_0x4a8fbd[_0x18a441(0x1ea)]=0x2]=_0x18a441(0x1ea),_0x4a8fbd[_0x4a8fbd[_0x18a441(0x217)]=0x3]=_0x18a441(0x217),_0x4a8fbd[_0x4a8fbd[_0x18a441(0x1f0)]=0x4]=_0x18a441(0x1f0),_0x4a8fbd[_0x4a8fbd[_0x18a441(0x178)]=0x5]=_0x18a441(0x178),_0x4a8fbd[_0x4a8fbd[_0x18a441(0x18e)]=-0x1]=_0x18a441(0x18e),_0x4a8fbd;}({}),_0x5f2e21=_0x2ece24=>(0x0,_0x10079f[_0x529f1e(0x17f)])(new Date(+_0x2ece24))[_0x529f1e(0x1f1)](_0x529f1e(0x1d4)),_0x57110a=async(_0x2a374b,_0x9951c3)=>{const _0x4b7ce7=_0x529f1e;let _0x308c30=_0x2a374b[_0x4b7ce7(0x207)](_0x10079f[_0x4b7ce7(0x1a0)]),_0x55b24e=_0x2a374b[_0x4b7ce7(0x207)](_0x35d0ec[_0x4b7ce7(0x1f6)]);_0x9951c3[_0x4b7ce7(0x1e9)](_0xa07a22=>{const _0x39b1b1=_0x4b7ce7;_0x308c30[_0x39b1b1(0x193)](_0xa07a22)&&_0x9951c3[_0x39b1b1(0x1df)](_0xa07a22);}),_0x9951c3[_0x4b7ce7(0x1fc)]&&(await _0x55b24e[_0x4b7ce7(0x207)](_0x4b7ce7(0x196),{'params':{'userIDs':[..._0x9951c3]}}))[_0x4b7ce7(0x1d6)][_0x4b7ce7(0x1be)][_0x4b7ce7(0x1e9)](_0x5d5284=>{const _0x88f08=_0x4b7ce7;_0x5d5284&&_0x308c30[_0x88f08(0x1bb)](_0x5d5284);});};function _0x501d89(_0x4d2235,_0xf254d4){return function(_0xe4ed26,_0x3fef07){_0xf254d4(_0xe4ed26,_0x3fef07,_0x4d2235);};}function _0x30b094(_0x383911,_0x104d8d,_0x5c2ae3,_0x4e04bf){const _0x286b13=_0x529f1e;var _0x39c4a6=arguments[_0x286b13(0x19c)],_0x359426=_0x39c4a6<0x3?_0x104d8d:_0x4e04bf===null?_0x4e04bf=Object[_0x286b13(0x212)](_0x104d8d,_0x5c2ae3):_0x4e04bf,_0x27d7a9;if(typeof Reflect==_0x286b13(0x20f)&&typeof Reflect[_0x286b13(0x18a)]==_0x286b13(0x194))_0x359426=Reflect[_0x286b13(0x18a)](_0x383911,_0x104d8d,_0x5c2ae3,_0x4e04bf);else{for(var _0x56533c=_0x383911[_0x286b13(0x19c)]-0x1;_0x56533c>=0x0;_0x56533c--)(_0x27d7a9=_0x383911[_0x56533c])&&(_0x359426=(_0x39c4a6<0x3?_0x27d7a9(_0x359426):_0x39c4a6>0x3?_0x27d7a9(_0x104d8d,_0x5c2ae3,_0x359426):_0x27d7a9(_0x104d8d,_0x5c2ae3))||_0x359426);}return _0x39c4a6>0x3&&_0x359426&&Object[_0x286b13(0x1dd)](_0x104d8d,_0x5c2ae3,_0x359426),_0x359426;}let _0x450691=class extends _0x10079f[_0x529f1e(0x1a8)]{constructor(_0x5e226d,_0x5873dd,_0x4cdb4c,_0x183818){const _0x4e023e=_0x529f1e;super(),this[_0x4e023e(0x1a5)]=_0x5e226d,this[_0x4e023e(0x1ef)]=_0x5873dd,this[_0x4e023e(0x1f5)]=_0x4cdb4c,this[_0x4e023e(0x209)]=_0x183818,this[_0x4e023e(0x208)](),this[_0x4e023e(0x1fd)]();}[_0x529f1e(0x1fd)](){const _0xa1f122=_0x529f1e;this[_0xa1f122(0x1f9)](this[_0xa1f122(0x1ef)][_0xa1f122(0x1a2)][_0xa1f122(0x16e)]((0x0,_0x761b51[_0xa1f122(0x170)])(0x10))[_0xa1f122(0x1ac)](_0x2e0632=>{const _0x4ecdd1=_0xa1f122;let _0x17bc7f=new Set();_0x2e0632[_0x4ecdd1(0x1e9)](_0x4a0ebf=>{const _0x14fab5=_0x4ecdd1;switch(_0x4a0ebf[_0x14fab5(0x1a3)]){case _0x14fab5(0x184):{let _0x967ef=_0x4a0ebf[_0x14fab5(0x16c)][_0x14fab5(0x1a4)];_0x17bc7f[_0x14fab5(0x184)](_0x967ef);break;}default:break;}}),_0x57110a(this[_0x4ecdd1(0x209)],_0x17bc7f);}));}[_0x529f1e(0x208)](){const _0x4438a4=_0x529f1e;this[_0x4438a4(0x1f9)](this[_0x4438a4(0x1a5)][_0x4438a4(0x1a2)][_0x4438a4(0x1ac)](async _0x410696=>{const _0x35d22f=_0x4438a4;var _0x3ceafa;let _0x2193b6=(_0x3ceafa=this[_0x35d22f(0x1ef)][_0x35d22f(0x1d0)](_0x410696[_0x35d22f(0x1de)])[_0x35d22f(0x1f7)](_0x5f4e0b=>_0x5f4e0b[_0x35d22f(0x175)]===_0x410696[_0x35d22f(0x175)]))==null?void 0x0:_0x3ceafa[_0x35d22f(0x216)];if(!_0x2193b6)return;let {unitId:_0x4a75e9,subUnitId:_0x33814e}=_0x2193b6;switch(_0x410696[_0x35d22f(0x1da)]&&this[_0x35d22f(0x1f5)][_0x35d22f(0x1bb)](_0x410696[_0x35d22f(0x1da)]),_0x410696[_0x35d22f(0x1a3)]){case _0x2f5b03[_0x35d22f(0x1ca)]:break;case _0x2f5b03[_0x35d22f(0x1ea)]:var _0x1c799f,_0x15f22b;this[_0x35d22f(0x1ef)][_0x35d22f(0x1b6)](_0x4a75e9,_0x33814e,{'unitId':_0x4a75e9,'subUnitId':_0x33814e,'ref':'','id':_0x410696[_0x35d22f(0x199)],'dT':_0x5f2e21(+_0x410696[_0x35d22f(0x1c1)]),'threadId':_0x410696[_0x35d22f(0x175)],'personId':(_0x1c799f=(_0x15f22b=_0x410696[_0x35d22f(0x1da)])==null?void 0x0:_0x15f22b[_0x35d22f(0x189)])==null?_0x410696[_0x35d22f(0x1c3)]:_0x1c799f,'text':JSON[_0x35d22f(0x1c4)](_0x410696[_0x35d22f(0x211)]),'parentId':_0x2193b6['id']});break;case _0x2f5b03[_0x35d22f(0x1f0)]:{let _0x5786cc=this[_0x35d22f(0x1ef)][_0x35d22f(0x19d)](_0x4a75e9,_0x33814e,_0x410696[_0x35d22f(0x199)]);_0x5786cc&&_0x5786cc[_0x35d22f(0x1b7)]&&this[_0x35d22f(0x1ef)][_0x35d22f(0x1b3)](_0x4a75e9,_0x33814e,_0x410696[_0x35d22f(0x199)]);break;}case _0x2f5b03[_0x35d22f(0x217)]:this[_0x35d22f(0x1ef)][_0x35d22f(0x1bd)](_0x4a75e9,_0x33814e,{'commentId':_0x410696[_0x35d22f(0x199)],'text':JSON[_0x35d22f(0x1c4)](_0x410696[_0x35d22f(0x211)])});break;case _0x2f5b03[_0x35d22f(0x178)]:{var _0xd7a85b;let _0x53e626=(_0xd7a85b=this[_0x35d22f(0x1ef)][_0x35d22f(0x1d0)](_0x410696[_0x35d22f(0x1de)])[_0x35d22f(0x1f7)](_0x183799=>_0x183799[_0x35d22f(0x175)]===_0x410696[_0x35d22f(0x175)]))==null?void 0x0:_0xd7a85b[_0x35d22f(0x216)];_0x53e626&&this[_0x35d22f(0x1ef)][_0x35d22f(0x1cf)](_0x4a75e9,_0x33814e,_0x53e626['id'],_0x410696[_0x35d22f(0x203)]===_0x2fe5f0[_0x35d22f(0x1aa)]);break;}default:break;}}));}};_0x450691=_0x30b094([_0x501d89(0x0,(0x0,_0x10079f[_0x529f1e(0x1e3)])(_0x1566d0[_0x529f1e(0x195)])),_0x501d89(0x1,(0x0,_0x10079f[_0x529f1e(0x1e3)])(_0x3072bb[_0x529f1e(0x1fe)])),_0x501d89(0x2,(0x0,_0x10079f[_0x529f1e(0x1e3)])(_0x10079f[_0x529f1e(0x1a0)])),_0x501d89(0x3,(0x0,_0x10079f[_0x529f1e(0x1e3)])(_0x10079f[_0x529f1e(0x17b)]))],_0x450691);let _0x29396d=_0x529f1e(0x1ba);Symbol(_0x29396d);let _0x5f4ee6={};function _0x2d76a4(_0x4f4c28,_0x25d4db){const _0x36c673=_0x529f1e;let _0x46c3f6=_0x4f4c28[_0x36c673(0x1c6)][0x0];return{..._0x25d4db,'id':_0x46c3f6[_0x36c673(0x199)],'resolved':_0x4f4c28[_0x36c673(0x203)]===0x1,'dT':_0x5f2e21(_0x46c3f6[_0x36c673(0x1c1)]),'personId':_0x46c3f6[_0x36c673(0x1c3)],'threadId':_0x46c3f6[_0x36c673(0x175)]};}function _0x44dcb8(_0x1c4ecd,_0x120cff,_0x3a787d){const _0x142b7f=_0x529f1e;var _0x32c407,_0x8e3cdd;if(((_0x32c407=_0x1c4ecd==null||(_0x8e3cdd=_0x1c4ecd[_0x142b7f(0x1c6)])==null?void 0x0:_0x8e3cdd[_0x142b7f(0x19c)])==null?0x0:_0x32c407)>0x0){let _0x4f2ac8=(_0x388491,_0x295220)=>({'id':_0x388491[_0x142b7f(0x199)],'threadId':_0x388491[_0x142b7f(0x175)],'dT':_0x5f2e21(_0x388491[_0x142b7f(0x1c1)]),'personId':_0x388491[_0x142b7f(0x1c3)],'resolved':_0x1c4ecd[_0x142b7f(0x203)]===_0x2fe5f0[_0x142b7f(0x1aa)],'unitId':_0x120cff,'subUnitId':_0x3a787d,'text':JSON[_0x142b7f(0x1c4)](_0x388491[_0x142b7f(0x211)]),'parentId':_0x295220}),_0x51e654=_0x4f2ac8(_0x1c4ecd[_0x142b7f(0x1c6)][0x0]);return{..._0x51e654,'children':_0x1c4ecd[_0x142b7f(0x1c6)][_0x142b7f(0x1b4)](0x1)[_0x142b7f(0x1b0)](_0x1b66fb=>_0x4f2ac8(_0x1b66fb,_0x51e654['id']))};}return null;}let _0x4d9b10=class{constructor(_0xb3cede,_0x43fc53,_0xb2440b){const _0x3ead93=_0x529f1e;this[_0x3ead93(0x1e7)]=_0xb3cede,this[_0x3ead93(0x1f5)]=_0x43fc53,this[_0x3ead93(0x20d)]=_0xb2440b;}async[_0x529f1e(0x1b6)](_0x5de573){const _0x18bb0b=_0x529f1e;var _0x5b059c,_0x139efd;let {parentId:_0x5103eb,unitId:_0x87015d,text:_0x595795,threadId:_0x72a8c8}=_0x5de573,_0x3a3692=(_0x5b059c=(_0x139efd=_0x595795[_0x18bb0b(0x20a)])==null?void 0x0:_0x139efd[_0x18bb0b(0x1e2)](_0x478968=>_0x478968[_0x18bb0b(0x192)]===_0x10079f[_0x18bb0b(0x1c8)][_0x18bb0b(0x16b)])[_0x18bb0b(0x1b0)](_0x4ea83d=>_0x4ea83d[_0x18bb0b(0x19f)]))==null?[]:_0x5b059c,_0x1e8bb8=JSON[_0x18bb0b(0x202)](_0x595795),_0x53ece7=(await this[_0x18bb0b(0x20d)][_0x18bb0b(0x198)](_0x87015d))[_0x18bb0b(0x1e6)]();if(_0x5103eb){const _0x128dff={};_0x128dff[_0x18bb0b(0x1af)]=_0x53ece7,_0x128dff[_0x18bb0b(0x1de)]=_0x87015d,_0x128dff[_0x18bb0b(0x211)]=_0x1e8bb8,_0x128dff[_0x18bb0b(0x17e)]=_0x3a3692,_0x128dff[_0x18bb0b(0x175)]=_0x72a8c8;let _0x1435cd=_0x128dff,_0x2a3778=(await this[_0x18bb0b(0x1e7)][_0x18bb0b(0x1bf)](_0x18bb0b(0x206)+_0x87015d+_0x18bb0b(0x1f8),{'body':_0x1435cd}))[_0x18bb0b(0x1d6)][_0x18bb0b(0x181)];return{..._0x5de573,'id':_0x2a3778[_0x18bb0b(0x199)],'dT':(0x0,_0x10079f[_0x18bb0b(0x17f)])(+_0x2a3778[_0x18bb0b(0x1c1)])[_0x18bb0b(0x1f1)](_0x18bb0b(0x1d4)),'personId':_0x2a3778[_0x18bb0b(0x1c3)]};}else{const _0x28d968={};_0x28d968[_0x18bb0b(0x1af)]=_0x53ece7,_0x28d968[_0x18bb0b(0x1de)]=_0x87015d,_0x28d968[_0x18bb0b(0x211)]=_0x1e8bb8,_0x28d968[_0x18bb0b(0x17e)]=_0x3a3692;let _0x5a9306=_0x28d968;const _0xeda816={};return _0xeda816[_0x18bb0b(0x1d6)]=_0x5a9306,_0x2d76a4((await this[_0x18bb0b(0x1e7)][_0x18bb0b(0x1bf)](_0x18bb0b(0x206)+_0x87015d+_0x18bb0b(0x179),_0xeda816))[_0x18bb0b(0x1d6)][_0x18bb0b(0x185)],_0x5de573);}}async[_0x529f1e(0x1bd)](_0x1798af){const _0x57b3c7=_0x529f1e;var _0xf4be99,_0x43705b;let {text:_0x783feb,unitId:_0x2b436c}=_0x1798af,_0x54287c=(_0xf4be99=(_0x43705b=_0x783feb[_0x57b3c7(0x20a)])==null?void 0x0:_0x43705b[_0x57b3c7(0x1e2)](_0x530942=>_0x530942[_0x57b3c7(0x192)]===_0x10079f[_0x57b3c7(0x1c8)][_0x57b3c7(0x16b)])[_0x57b3c7(0x1b0)](_0xfad718=>_0xfad718[_0x57b3c7(0x19f)]))==null?[]:_0xf4be99,_0x5c3dad=JSON[_0x57b3c7(0x202)](_0x783feb),_0x235bc4=_0x1798af[_0x57b3c7(0x175)],_0x59bcab=_0x1798af['id'],_0x2e450d={'memberId':(await this[_0x57b3c7(0x20d)][_0x57b3c7(0x198)](_0x2b436c))[_0x57b3c7(0x1e6)](),'unitId':_0x2b436c,'threadId':_0x235bc4,'mention':_0x54287c,'content':_0x5c3dad,'replyId':_0x59bcab},_0x3ae93a=await this[_0x57b3c7(0x1e7)][_0x57b3c7(0x1bf)](_0x57b3c7(0x206)+_0x2b436c+_0x57b3c7(0x1e8),{'body':_0x2e450d});return!_0x3ae93a[_0x57b3c7(0x1d6)][_0x57b3c7(0x20c)]||_0x3ae93a[_0x57b3c7(0x1d6)][_0x57b3c7(0x20c)][_0x57b3c7(0x18b)]===0x1;}async[_0x529f1e(0x1cf)](_0x525191){const _0xf15882=_0x529f1e;let {unitId:_0x26391b}=_0x525191,_0x5322b4=_0x525191[_0xf15882(0x175)],_0x524dcc={'memberId':this[_0xf15882(0x1f5)][_0xf15882(0x204)]()[_0xf15882(0x189)],'unitId':_0x26391b,'threadId':_0x5322b4,'solved':_0x525191[_0xf15882(0x171)]?_0x2fe5f0[_0xf15882(0x1aa)]:_0x2fe5f0[_0xf15882(0x215)]},_0x1cd360=await this[_0xf15882(0x1e7)][_0xf15882(0x1bf)](_0xf15882(0x206)+_0x26391b+_0xf15882(0x1d5),{'body':_0x524dcc});return!_0x1cd360[_0xf15882(0x1d6)][_0xf15882(0x20c)]||_0x1cd360[_0xf15882(0x1d6)][_0xf15882(0x20c)][_0xf15882(0x18b)]===0x1;}async[_0x529f1e(0x1b3)](_0x7fb40a,_0x1c199f,_0x10b45a,_0x2a6299){const _0x2b28a7=_0x529f1e;let _0x466585={'memberId':(await this[_0x2b28a7(0x20d)][_0x2b28a7(0x198)](_0x7fb40a))[_0x2b28a7(0x1e6)](),'threadId':_0x10b45a,'replyId':_0x2a6299,'unitId':_0x7fb40a},_0x29a70=await this[_0x2b28a7(0x1e7)][_0x2b28a7(0x1bf)](_0x2b28a7(0x206)+_0x7fb40a+_0x2b28a7(0x17c),{'body':_0x466585});return!_0x29a70[_0x2b28a7(0x1d6)][_0x2b28a7(0x20c)]||_0x29a70[_0x2b28a7(0x1d6)][_0x2b28a7(0x20c)][_0x2b28a7(0x18b)]===0x1;}async[_0x529f1e(0x1d9)](_0x58ea4d,_0x382c19,_0x41f343){const _0x399f28=_0x529f1e,_0x56da5a={};_0x56da5a[_0x399f28(0x1de)]=_0x58ea4d,_0x56da5a[_0x399f28(0x175)]=_0x41f343;let _0x1e6dd4=_0x56da5a,_0x34d830=await this[_0x399f28(0x1e7)][_0x399f28(0x1bf)](_0x399f28(0x206)+_0x58ea4d+_0x399f28(0x1e1),{'body':_0x1e6dd4}),_0x495cf3=_0x41f343[_0x399f28(0x1b0)](_0x5e6ba8=>_0x44dcb8(_0x34d830[_0x399f28(0x1d6)][_0x399f28(0x1e5)][_0x5e6ba8],_0x58ea4d,_0x382c19))[_0x399f28(0x1e2)](Boolean);return Object[_0x399f28(0x173)](_0x34d830[_0x399f28(0x1d6)][_0x399f28(0x1be)])[_0x399f28(0x1e9)](_0x18dcd7=>{const _0x8d74ca=_0x399f28;this[_0x8d74ca(0x1f5)][_0x8d74ca(0x1bb)](_0x18dcd7);}),_0x495cf3;}[_0x529f1e(0x1c2)](_0x4e856e){const _0x1dd65a=_0x529f1e,_0x3e15e6={};return _0x3e15e6['id']=_0x4e856e['id'],_0x3e15e6[_0x1dd65a(0x175)]=_0x4e856e[_0x1dd65a(0x175)],_0x3e15e6[_0x1dd65a(0x1bc)]=_0x4e856e[_0x1dd65a(0x1bc)],_0x3e15e6;}};_0x4d9b10=_0x30b094([_0x501d89(0x0,(0x0,_0x10079f[_0x529f1e(0x1e3)])(_0x35d0ec[_0x529f1e(0x1f6)])),_0x501d89(0x1,(0x0,_0x10079f[_0x529f1e(0x1e3)])(_0x10079f[_0x529f1e(0x1a0)])),_0x501d89(0x2,(0x0,_0x10079f[_0x529f1e(0x1e3)])(_0x1566d0[_0x529f1e(0x1eb)]))],_0x4d9b10);let _0x310c91=class extends _0x10079f[_0x529f1e(0x1a8)]{constructor(_0x4cb64b,_0x936bbe){const _0x25a3cc=_0x529f1e;super(),this[_0x25a3cc(0x1ff)]=_0x4cb64b,this[_0x25a3cc(0x1dc)]=_0x936bbe,this[_0x25a3cc(0x177)]();}[_0x529f1e(0x177)](){const _0x9df512=_0x529f1e;this[_0x9df512(0x1ff)][_0x9df512(0x1ed)]=this[_0x9df512(0x1dc)],this[_0x9df512(0x1ff)][_0x9df512(0x1d8)]=!0x1;}};_0x310c91=_0x30b094([_0x501d89(0x0,_0x3072bb[_0x529f1e(0x1d2)]),_0x501d89(0x1,(0x0,_0x10079f[_0x529f1e(0x1e3)])(_0x4d9b10))],_0x310c91);function _0x2dd76f(_0x1eddc0){'@babel/helpers - typeof';const _0x3c1a1a=_0x529f1e;return _0x2dd76f=typeof Symbol==_0x3c1a1a(0x194)&&typeof Symbol[_0x3c1a1a(0x1cb)]==_0x3c1a1a(0x1fa)?function(_0x270cd5){return typeof _0x270cd5;}:function(_0x240604){const _0x2be19d=_0x3c1a1a;return _0x240604&&typeof Symbol==_0x2be19d(0x194)&&_0x240604[_0x2be19d(0x18f)]===Symbol&&_0x240604!==Symbol[_0x2be19d(0x176)]?_0x2be19d(0x1fa):typeof _0x240604;},_0x2dd76f(_0x1eddc0);}function _0x441d29(_0x412079,_0x156db7){const _0xbd111e=_0x529f1e;if(_0x2dd76f(_0x412079)!=_0xbd111e(0x20f)||!_0x412079)return _0x412079;var _0xdf06bf=_0x412079[Symbol[_0xbd111e(0x1b8)]];if(_0xdf06bf!==void 0x0){var _0x15799c=_0xdf06bf[_0xbd111e(0x1a7)](_0x412079,_0x156db7||_0xbd111e(0x1e0));if(_0x2dd76f(_0x15799c)!=_0xbd111e(0x20f))return _0x15799c;throw TypeError(_0xbd111e(0x16a));}return(_0x156db7===_0xbd111e(0x1c0)?String:Number)(_0x412079);}function _0x228931(_0x1289cb){const _0x448233=_0x529f1e;var _0x58b0d1=_0x441d29(_0x1289cb,_0x448233(0x1c0));return _0x2dd76f(_0x58b0d1)==_0x448233(0x1fa)?_0x58b0d1:_0x58b0d1+'';}function _0x4a925d(_0x126a14,_0x2a7f75,_0x8109f8){const _0x5cdd3b=_0x529f1e,_0x1b95b9={};return _0x1b95b9[_0x5cdd3b(0x20b)]=_0x8109f8,_0x1b95b9[_0x5cdd3b(0x188)]=!0x0,_0x1b95b9[_0x5cdd3b(0x17d)]=!0x0,_0x1b95b9[_0x5cdd3b(0x1fb)]=!0x0,((_0x2a7f75=_0x228931(_0x2a7f75))in _0x126a14?Object[_0x5cdd3b(0x1dd)](_0x126a14,_0x2a7f75,_0x1b95b9):_0x126a14[_0x2a7f75]=_0x8109f8,_0x126a14);}let _0x4fe1f9=class extends _0x10079f[_0x529f1e(0x201)]{constructor(_0x3e9e8c=_0x5f4ee6,_0x115857,_0x4bdde2){const _0x2f4409=_0x529f1e;super(),this[_0x2f4409(0x205)]=_0x3e9e8c,this[_0x2f4409(0x209)]=_0x115857,this[_0x2f4409(0x180)]=_0x4bdde2;let {..._0x128702}=(0x0,_0x10079f[_0x2f4409(0x1ad)])({},_0x5f4ee6,this[_0x2f4409(0x205)]);this[_0x2f4409(0x180)][_0x2f4409(0x1a1)](_0x29396d,_0x128702);}[_0x529f1e(0x20e)](){const _0x38016d=_0x529f1e;[[_0x4d9b10],[_0x310c91],[_0x450691]][_0x38016d(0x1e9)](_0x1962f7=>{const _0x344761=_0x38016d;this[_0x344761(0x209)][_0x344761(0x184)](_0x1962f7);});}[_0x529f1e(0x214)](){const _0x27432b=_0x529f1e;this[_0x27432b(0x209)][_0x27432b(0x207)](_0x310c91),this[_0x27432b(0x209)][_0x27432b(0x207)](_0x450691);}};_0x4a925d(_0x4fe1f9,_0x529f1e(0x1c7),_0x529f1e(0x19b)),_0x4a925d(_0x4fe1f9,_0x529f1e(0x213),_0x574f46),_0x4a925d(_0x4fe1f9,_0x529f1e(0x19a),_0x1513ad),_0x4fe1f9=_0x30b094([(0x0,_0x10079f[_0x529f1e(0x191)])(_0x5a2071[_0x529f1e(0x1a9)],_0x1566d0[_0x529f1e(0x190)],_0x2ec3fd[_0x529f1e(0x172)]),_0x501d89(0x1,(0x0,_0x10079f[_0x529f1e(0x1e3)])(_0x10079f[_0x529f1e(0x17b)])),_0x501d89(0x2,_0x10079f[_0x529f1e(0x210)])],_0x4fe1f9),Object[_0x529f1e(0x1dd)](_0x40a882,_0x529f1e(0x186),{'enumerable':!0x0,'get':function(){return _0x4fe1f9;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/thread-comment-datasource",
3
- "version": "0.16.1",
3
+ "version": "0.17.0-insiders.20260318-d69dc16",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -45,27 +45,28 @@
45
45
  "rxjs": ">=7.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "@univerjs-pro/collaboration-client": "0.16.1",
49
- "@univerjs/core": "0.16.1",
50
- "@univerjs/network": "0.16.1",
51
- "@univerjs/thread-comment": "0.16.1",
48
+ "@univerjs-pro/license": "0.17.0-insiders.20260318-d69dc16",
49
+ "@univerjs-pro/collaboration-client": "0.17.0-insiders.20260318-d69dc16",
50
+ "@univerjs/network": "0.17.0-insiders.20260318-d69dc16",
52
51
  "@univerjs/protocol": "0.1.48",
53
- "@univerjs/thread-comment-ui": "0.16.1",
54
- "@univerjs-pro/license": "0.16.1"
52
+ "@univerjs/thread-comment-ui": "0.17.0-insiders.20260318-d69dc16",
53
+ "@univerjs/core": "0.17.0-insiders.20260318-d69dc16",
54
+ "@univerjs/thread-comment": "0.17.0-insiders.20260318-d69dc16"
55
55
  },
56
56
  "devDependencies": {
57
57
  "rxjs": "7.8.2",
58
58
  "typescript": "^5.9.3",
59
- "vite": "^7.3.1",
60
- "vitest": "^4.0.18",
61
- "@univerjs-infra/shared": "0.16.1"
59
+ "vitest": "^4.1.0",
60
+ "@univerjs-infra/shared": "0.17.0"
62
61
  },
63
62
  "scripts": {
64
63
  "test": "vitest run",
65
64
  "test:watch": "vitest",
66
65
  "coverage": "vitest run --coverage",
67
66
  "typecheck": "tsc --noEmit",
68
- "build": "univer-cli build"
67
+ "build:bundle": "univer-cli build",
68
+ "build:types": "tsc -p tsconfig.node.json",
69
+ "build": "pnpm run build:bundle && pnpm run build:types"
69
70
  },
70
71
  "module": "./lib/es/index.js"
71
72
  }