@univerjs-pro/thread-comment-datasource 0.5.2 → 0.5.3-nightly.202501051605

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 _0xb43bae=_0x3412;(function(_0x37dcbc,_0x1881bf){const _0x5f535e=_0x3412,_0x868897=_0x37dcbc();while(!![]){try{const _0x5f24d7=parseInt(_0x5f535e(0x19d))/0x1*(parseInt(_0x5f535e(0x132))/0x2)+parseInt(_0x5f535e(0x153))/0x3+-parseInt(_0x5f535e(0x198))/0x4*(parseInt(_0x5f535e(0x124))/0x5)+parseInt(_0x5f535e(0x16f))/0x6+parseInt(_0x5f535e(0x179))/0x7+parseInt(_0x5f535e(0x189))/0x8*(parseInt(_0x5f535e(0x17c))/0x9)+parseInt(_0x5f535e(0x185))/0xa*(-parseInt(_0x5f535e(0x170))/0xb);if(_0x5f24d7===_0x1881bf)break;else _0x868897['push'](_0x868897['shift']());}catch(_0x4115d4){_0x868897['push'](_0x868897['shift']());}}}(_0x2ba9,0x1a3f4));Object[_0xb43bae(0x162)](exports,Symbol[_0xb43bae(0x186)],{'value':_0xb43bae(0x176)});const C=require(_0xb43bae(0x168)),T=require(_0xb43bae(0x15d)),c=require(_0xb43bae(0x13f)),w=require(_0xb43bae(0x156)),P=require(_0xb43bae(0x136)),U=require(_0xb43bae(0x15c)),M=require('@univerjs/network'),R=_0xb43bae(0x146);var I=(_0x16d5d3=>(_0x16d5d3[_0x16d5d3[_0xb43bae(0x130)]=0x0]='OpenOrReOpen',_0x16d5d3[_0x16d5d3['Solved']=0x1]=_0xb43bae(0x18e),_0x16d5d3[_0x16d5d3[_0xb43bae(0x161)]=-0x1]=_0xb43bae(0x161),_0x16d5d3))(I||{}),v=(_0x2a8782=>(_0x2a8782[_0x2a8782[_0xb43bae(0x19a)]=0x0]=_0xb43bae(0x19a),_0x2a8782[_0x2a8782[_0xb43bae(0x175)]=0x1]=_0xb43bae(0x175),_0x2a8782[_0x2a8782['Reply']=0x2]=_0xb43bae(0x14c),_0x2a8782[_0x2a8782[_0xb43bae(0x12c)]=0x3]='Edit',_0x2a8782[_0x2a8782[_0xb43bae(0x16c)]=0x4]=_0xb43bae(0x16c),_0x2a8782[_0x2a8782[_0xb43bae(0x137)]=0x5]=_0xb43bae(0x137),_0x2a8782[_0x2a8782['UNRECOGNIZED']=-0x1]=_0xb43bae(0x161),_0x2a8782))(v||{});const g=_0x3a3882=>c[_0xb43bae(0x196)](new Date(+_0x3a3882))[_0xb43bae(0x134)](_0xb43bae(0x16b)),$=async(_0x1d6194,_0x3b13f8)=>{const _0x5a5c6b=_0xb43bae,_0x9690b3=_0x1d6194[_0x5a5c6b(0x158)](c[_0x5a5c6b(0x17a)]),_0x49c1d1=_0x1d6194[_0x5a5c6b(0x158)](M['HTTPService']);_0x3b13f8[_0x5a5c6b(0x15a)](_0x9eda04=>{const _0x4a0d53=_0x5a5c6b;_0x9690b3[_0x4a0d53(0x143)](_0x9eda04)&&_0x3b13f8['delete'](_0x9eda04);}),_0x3b13f8[_0x5a5c6b(0x172)]&&(await _0x49c1d1['get'](_0x5a5c6b(0x11e),{'params':{'userIDs':[..._0x3b13f8]}}))[_0x5a5c6b(0x148)]['users']['forEach'](_0x403cd8=>{const _0x5dfc69=_0x5a5c6b;_0x403cd8&&_0x9690b3[_0x5dfc69(0x15b)](_0x403cd8);});};var E=Object[_0xb43bae(0x162)],q=Object[_0xb43bae(0x141)],A=(_0x1d5d98,_0x2ec67f,_0x45460c,_0x571eea)=>{for(var _0x2a3b03=_0x571eea>0x1?void 0x0:_0x571eea?q(_0x2ec67f,_0x45460c):_0x2ec67f,_0x33946=_0x1d5d98['length']-0x1,_0x139e25;_0x33946>=0x0;_0x33946--)(_0x139e25=_0x1d5d98[_0x33946])&&(_0x2a3b03=(_0x571eea?_0x139e25(_0x2ec67f,_0x45460c,_0x2a3b03):_0x139e25(_0x2a3b03))||_0x2a3b03);return _0x571eea&&_0x2a3b03&&E(_0x2ec67f,_0x45460c,_0x2a3b03),_0x2a3b03;},_=(_0x3a9627,_0x3da0db)=>(_0x42097d,_0x16d2c9)=>_0x3da0db(_0x42097d,_0x16d2c9,_0x3a9627);let S=class extends c[_0xb43bae(0x199)]{constructor(_0xccf9c,_0x2f6fd1,_0x35b4aa,_0x1b7284){const _0x3f472e=_0xb43bae;super(),this[_0x3f472e(0x154)]=_0xccf9c,this['_threadCommentModel']=_0x2f6fd1,this[_0x3f472e(0x18a)]=_0x35b4aa,this[_0x3f472e(0x17d)]=_0x1b7284,this[_0x3f472e(0x171)](),this[_0x3f472e(0x174)]();}[_0xb43bae(0x174)](){const _0xebabbe=_0xb43bae;this[_0xebabbe(0x144)](this[_0xebabbe(0x177)][_0xebabbe(0x133)]['pipe'](U[_0xebabbe(0x184)](0x10))[_0xebabbe(0x14e)](_0x3af688=>{const _0x3d3938=_0xebabbe,_0x550d17=new Set();_0x3af688[_0x3d3938(0x15a)](_0x2b5102=>{const _0x4161a0=_0x3d3938;switch(_0x2b5102[_0x4161a0(0x164)]){case'add':{const _0x2f16e2=_0x2b5102[_0x4161a0(0x152)][_0x4161a0(0x128)];_0x550d17['add'](_0x2f16e2);break;}}}),$(this[_0x3d3938(0x17d)],_0x550d17);}));}[_0xb43bae(0x171)](){const _0xe5d710=_0xb43bae;this[_0xe5d710(0x144)](this[_0xe5d710(0x154)][_0xe5d710(0x133)][_0xe5d710(0x14e)](async _0x52a926=>{const _0x19982c=_0xe5d710;var _0x59686a,_0x4a0417,_0x27ecc3,_0x17afe1;const _0x450087=(_0x59686a=this[_0x19982c(0x177)][_0x19982c(0x178)](_0x52a926['unitId'])[_0x19982c(0x195)](_0x236c86=>_0x236c86[_0x19982c(0x194)]===_0x52a926[_0x19982c(0x194)]))==null?void 0x0:_0x59686a[_0x19982c(0x12d)];if(!_0x450087)return;const {unitId:_0x40f43a,subUnitId:_0x230830}=_0x450087;switch(_0x52a926['user']&&this[_0x19982c(0x18a)][_0x19982c(0x15b)](_0x52a926[_0x19982c(0x123)]),_0x52a926['type']){case v[_0x19982c(0x175)]:break;case v[_0x19982c(0x14c)]:{this[_0x19982c(0x177)][_0x19982c(0x15f)](_0x40f43a,_0x230830,{'unitId':_0x40f43a,'subUnitId':_0x230830,'ref':'','id':_0x52a926[_0x19982c(0x19b)],'dT':g(+_0x52a926['createTimestamp']),'threadId':_0x52a926[_0x19982c(0x194)],'personId':(_0x27ecc3=(_0x4a0417=_0x52a926[_0x19982c(0x123)])==null?void 0x0:_0x4a0417['userID'])!=null?_0x27ecc3:_0x52a926[_0x19982c(0x17b)],'text':JSON[_0x19982c(0x149)](_0x52a926[_0x19982c(0x140)]),'parentId':_0x450087['id']});break;}case v['Delete']:{const _0x50d7c9=this[_0x19982c(0x177)]['getComment'](_0x40f43a,_0x230830,_0x52a926[_0x19982c(0x19b)]);_0x50d7c9&&_0x50d7c9[_0x19982c(0x13a)]&&this[_0x19982c(0x177)][_0x19982c(0x15e)](_0x40f43a,_0x230830,_0x52a926[_0x19982c(0x19b)]);break;}case v[_0x19982c(0x12c)]:{this[_0x19982c(0x177)][_0x19982c(0x14b)](_0x40f43a,_0x230830,{'commentId':_0x52a926['replyId'],'text':JSON[_0x19982c(0x149)](_0x52a926[_0x19982c(0x140)])});break;}case v[_0x19982c(0x137)]:{const _0x3e9bda=(_0x17afe1=this[_0x19982c(0x177)][_0x19982c(0x178)](_0x52a926[_0x19982c(0x150)])[_0x19982c(0x195)](_0x2ceeca=>_0x2ceeca[_0x19982c(0x194)]===_0x52a926[_0x19982c(0x194)]))==null?void 0x0:_0x17afe1[_0x19982c(0x12d)];_0x3e9bda&&this[_0x19982c(0x177)][_0x19982c(0x13d)](_0x40f43a,_0x230830,_0x3e9bda['id'],_0x52a926[_0x19982c(0x18c)]===I[_0x19982c(0x18e)]);break;}}}));}};function _0x2ba9(){const _0x138d72=['13976XArLzC','_userService','slice','solved','_initDataSource','Solved','/edit','Plugin','setConfig','requireSession','IThreadCommentDataSourceService','threadId','find','dayjs','_threadCommentDataSource','2204FLtzeV','Disposable','Unknown','replyId','/list','41xDKhLj','/universer-api/user/list','UniverCollaborationClientPlugin','merge','stringify','pluginName','user','1875kfVcQa','length','IConfigService','comment','personId','Injector','_configService','_threadCommentDataSourceService','Edit','root','getCurrentUser','post','OpenOrReOpen','/delete','982jZTfCW','commentUpdate$','format','filter','@univerjs/thread-comment','Solve','syncUpdateMutationToColla','error','parentId','_sessionService','DependentOn','resolveComment','customRanges','@univerjs/core','content','getOwnPropertyDescriptor','_httpService','getUser','disposeWithMe','reply','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','ThreadCommentModel','body','parse','COMMENT','updateComment','Reply','onReady','subscribe','listComments','unitId','comments','payload','232083DUwbPB','_commentService','map','@univerjs/thread-comment-ui','CustomRangeType','get','/universer-api/comment/unit/','forEach','addUser','rxjs','@univerjs-pro/license','deleteComment','addComment','UniverThreadCommentDataSourcePlugin','UNRECOGNIZED','defineProperty','UNIVER_UNKNOWN','type','UniverThreadCommentUIPlugin','/solved','CollaborationSessionService','@univerjs-pro/collaboration-client','createTimestamp','userID','YYYY/MM/DD\x20HH:mm','Delete','code','replies','452556jifRnx','15026YsfYKO','_init','size','getMemberID','_initUserSync','Add','Module','_threadCommentModel','getUnit','711592ZyolUt','UserManagerService','userId','999ZydUYE','_injector','values','rangeId','UniverInstanceType','/add','resolved','Inject','bufferTime','1130loexpA','toStringTag','_config','rangeType'];_0x2ba9=function(){return _0x138d72;};return _0x2ba9();}S=A([_(0x0,c['Inject'](C['CommentService'])),_(0x1,c[_0xb43bae(0x183)](P[_0xb43bae(0x147)])),_(0x2,c[_0xb43bae(0x183)](c[_0xb43bae(0x17a)])),_(0x3,c[_0xb43bae(0x183)](c[_0xb43bae(0x129)]))],S);function _0x3412(_0x3202a8,_0x3c475a){const _0x2ba9d1=_0x2ba9();return _0x3412=function(_0x3412d4,_0x22f3e0){_0x3412d4=_0x3412d4-0x11e;let _0x2a8c46=_0x2ba9d1[_0x3412d4];return _0x2a8c46;},_0x3412(_0x3202a8,_0x3c475a);}const x='thread-comment-data-source.config',D={};var Y=Object[_0xb43bae(0x162)],G=Object[_0xb43bae(0x141)],H=(_0x70b232,_0x56265c,_0x6fc4a5,_0x3e82f5)=>{const _0x11b717=_0xb43bae;for(var _0x210d2c=_0x3e82f5>0x1?void 0x0:_0x3e82f5?G(_0x56265c,_0x6fc4a5):_0x56265c,_0x120ec6=_0x70b232[_0x11b717(0x125)]-0x1,_0x29f373;_0x120ec6>=0x0;_0x120ec6--)(_0x29f373=_0x70b232[_0x120ec6])&&(_0x210d2c=(_0x3e82f5?_0x29f373(_0x56265c,_0x6fc4a5,_0x210d2c):_0x29f373(_0x210d2c))||_0x210d2c);return _0x3e82f5&&_0x210d2c&&Y(_0x56265c,_0x6fc4a5,_0x210d2c),_0x210d2c;},p=(_0x31cf9d,_0x1e4bab)=>(_0xcff12a,_0x2d13be)=>_0x1e4bab(_0xcff12a,_0x2d13be,_0x31cf9d);function J(_0x1fa347,_0x4a0a62){const _0x2f39d1=_0xb43bae,_0xd95dba=_0x1fa347[_0x2f39d1(0x16e)][0x0];return{..._0x4a0a62,'id':_0xd95dba[_0x2f39d1(0x19b)],'resolved':_0x1fa347['solved']===0x1,'dT':g(_0xd95dba[_0x2f39d1(0x169)]),'personId':_0xd95dba[_0x2f39d1(0x17b)],'threadId':_0xd95dba[_0x2f39d1(0x194)]};}function F(_0x35b5e0,_0x56bdb6,_0x424925){const _0x117993=_0xb43bae;var _0x4b146b,_0x731eb7;if(((_0x731eb7=(_0x4b146b=_0x35b5e0==null?void 0x0:_0x35b5e0['replies'])==null?void 0x0:_0x4b146b['length'])!=null?_0x731eb7:0x0)>0x0){const _0x179f4a=(_0xddda0d,_0x4b2f35)=>({'id':_0xddda0d[_0x117993(0x19b)],'threadId':_0xddda0d[_0x117993(0x194)],'dT':g(_0xddda0d['createTimestamp']),'personId':_0xddda0d[_0x117993(0x17b)],'resolved':_0x35b5e0[_0x117993(0x18c)]===I[_0x117993(0x18e)],'unitId':_0x56bdb6,'subUnitId':_0x424925,'text':JSON[_0x117993(0x149)](_0xddda0d[_0x117993(0x140)]),'parentId':_0x4b2f35}),_0x57884c=_0x179f4a(_0x35b5e0[_0x117993(0x16e)][0x0]);return{..._0x57884c,'children':_0x35b5e0[_0x117993(0x16e)][_0x117993(0x18b)](0x1)[_0x117993(0x155)](_0x5426e7=>_0x179f4a(_0x5426e7,_0x57884c['id']))};}return null;}let f=class{constructor(_0x1c56cd,_0x2abb11,_0x955b92,_0x50766c){const _0x4750f3=_0xb43bae;this[_0x4750f3(0x142)]=_0x1c56cd,this['_userService']=_0x2abb11,this[_0x4750f3(0x13b)]=_0x955b92,this[_0x4750f3(0x17d)]=_0x50766c;}async[_0xb43bae(0x15f)](_0x510e16){const _0x184316=_0xb43bae;var _0x3c64db,_0x316880;const {parentId:_0x50e1dd,unitId:_0x1a3c25,text:_0x43ff52,threadId:_0x3951e2}=_0x510e16,_0x2f8630=(_0x316880=(_0x3c64db=_0x43ff52[_0x184316(0x13e)])==null?void 0x0:_0x3c64db[_0x184316(0x135)](_0x46e496=>_0x46e496[_0x184316(0x188)]===c[_0x184316(0x157)][_0x184316(0x14a)])[_0x184316(0x155)](_0x5d71fd=>_0x5d71fd['rangeId']))!=null?_0x316880:[],_0x34dd80=JSON[_0x184316(0x121)](_0x43ff52),_0x4b32cf=(await this[_0x184316(0x13b)][_0x184316(0x192)](_0x1a3c25))['getMemberID']();if(_0x50e1dd){const _0xb483d2={'memberId':_0x4b32cf,'unitId':_0x1a3c25,'content':_0x34dd80,'mention':_0x2f8630,'threadId':_0x3951e2},_0xc2dae4=(await this[_0x184316(0x142)][_0x184316(0x12f)]('/universer-api/comment/unit/'+_0x1a3c25+'/reply',{'body':_0xb483d2}))[_0x184316(0x148)][_0x184316(0x145)];return{..._0x510e16,'id':_0xc2dae4[_0x184316(0x19b)],'dT':c['dayjs'](+_0xc2dae4['createTimestamp'])[_0x184316(0x134)](_0x184316(0x16b)),'personId':_0xc2dae4['userId']};}else{const _0x73372a={'memberId':_0x4b32cf,'unitId':_0x1a3c25,'content':_0x34dd80,'mention':_0x2f8630},_0x29745e=await this[_0x184316(0x142)][_0x184316(0x12f)](_0x184316(0x159)+_0x1a3c25+_0x184316(0x181),{'body':_0x73372a});return J(_0x29745e[_0x184316(0x148)][_0x184316(0x127)],_0x510e16);}}async['updateComment'](_0x4b2844){const _0x5a2a65=_0xb43bae;var _0x33cb2d,_0x29e00f;const {text:_0x2eaacb,unitId:_0x3c4231}=_0x4b2844,_0x51ab37=(_0x29e00f=(_0x33cb2d=_0x2eaacb[_0x5a2a65(0x13e)])==null?void 0x0:_0x33cb2d[_0x5a2a65(0x135)](_0x272993=>_0x272993[_0x5a2a65(0x188)]===c[_0x5a2a65(0x157)][_0x5a2a65(0x14a)])['map'](_0xc57ee6=>_0xc57ee6[_0x5a2a65(0x17f)]))!=null?_0x29e00f:[],_0x3fdb98=JSON[_0x5a2a65(0x121)](_0x2eaacb),_0x37a838=_0x4b2844[_0x5a2a65(0x194)],_0x4bbaca=_0x4b2844['id'],_0x374c2f={'memberId':(await this[_0x5a2a65(0x13b)][_0x5a2a65(0x192)](_0x3c4231))[_0x5a2a65(0x173)](),'unitId':_0x3c4231,'threadId':_0x37a838,'mention':_0x51ab37,'content':_0x3fdb98,'replyId':_0x4bbaca},_0x452f7b=await this[_0x5a2a65(0x142)][_0x5a2a65(0x12f)](_0x5a2a65(0x159)+_0x3c4231+_0x5a2a65(0x18f),{'body':_0x374c2f});return!_0x452f7b['body'][_0x5a2a65(0x139)]||_0x452f7b[_0x5a2a65(0x148)][_0x5a2a65(0x139)]['code']===0x1;}async[_0xb43bae(0x13d)](_0x1abe0c){const _0x25bf85=_0xb43bae,{unitId:_0x456ebe}=_0x1abe0c,_0x21fd33=_0x1abe0c['threadId'],_0x5e06b9={'memberId':this[_0x25bf85(0x18a)][_0x25bf85(0x12e)]()[_0x25bf85(0x16a)],'unitId':_0x456ebe,'threadId':_0x21fd33,'solved':_0x1abe0c[_0x25bf85(0x182)]?I[_0x25bf85(0x18e)]:I[_0x25bf85(0x130)]},_0x2e1c1f=await this[_0x25bf85(0x142)][_0x25bf85(0x12f)](_0x25bf85(0x159)+_0x456ebe+_0x25bf85(0x166),{'body':_0x5e06b9});return!_0x2e1c1f['body'][_0x25bf85(0x139)]||_0x2e1c1f[_0x25bf85(0x148)][_0x25bf85(0x139)][_0x25bf85(0x16d)]===0x1;}async['deleteComment'](_0x4dd51a,_0x504707,_0x10cea5,_0x3afc0d){const _0x136d26=_0xb43bae,_0x453596={'memberId':(await this[_0x136d26(0x13b)]['requireSession'](_0x4dd51a))[_0x136d26(0x173)](),'threadId':_0x10cea5,'replyId':_0x3afc0d,'unitId':_0x4dd51a},_0x17790b=await this[_0x136d26(0x142)][_0x136d26(0x12f)](_0x136d26(0x159)+_0x4dd51a+_0x136d26(0x131),{'body':_0x453596});return!_0x17790b[_0x136d26(0x148)][_0x136d26(0x139)]||_0x17790b['body'][_0x136d26(0x139)]['code']===0x1;}async[_0xb43bae(0x14f)](_0x3e09e6,_0x4a81b9,_0x75f0d7){const _0x7b7f03=_0xb43bae,_0x2cf733={'unitId':_0x3e09e6,'threadId':_0x75f0d7},_0x22e2e6=await this[_0x7b7f03(0x142)][_0x7b7f03(0x12f)](_0x7b7f03(0x159)+_0x3e09e6+_0x7b7f03(0x19c),{'body':_0x2cf733}),_0x5ea34a=_0x75f0d7[_0x7b7f03(0x155)](_0x4ae83f=>F(_0x22e2e6[_0x7b7f03(0x148)][_0x7b7f03(0x151)][_0x4ae83f],_0x3e09e6,_0x4a81b9))['filter'](Boolean);return Object[_0x7b7f03(0x17e)](_0x22e2e6[_0x7b7f03(0x148)]['users'])['forEach'](_0x5515d3=>{const _0x3ed5e4=_0x7b7f03;this[_0x3ed5e4(0x18a)]['addUser'](_0x5515d3);}),_0x5ea34a;}['saveCommentToSnapshot'](_0x31ddbe){const _0x203a6f=_0xb43bae;return{'id':_0x31ddbe['id'],'threadId':_0x31ddbe[_0x203a6f(0x194)],'ref':_0x31ddbe['ref']};}};f=H([p(0x0,c[_0xb43bae(0x183)](M['HTTPService'])),p(0x1,c[_0xb43bae(0x183)](c[_0xb43bae(0x17a)])),p(0x2,c['Inject'](C[_0xb43bae(0x167)])),p(0x3,c['Inject'](c[_0xb43bae(0x129)]))],f);var L=Object['defineProperty'],Z=Object[_0xb43bae(0x141)],W=(_0x41bbac,_0xd0d45d,_0xb1c2ab,_0x145ae6)=>{for(var _0x103cf0=_0x145ae6>0x1?void 0x0:_0x145ae6?Z(_0xd0d45d,_0xb1c2ab):_0xd0d45d,_0x1273d5=_0x41bbac['length']-0x1,_0x3d1954;_0x1273d5>=0x0;_0x1273d5--)(_0x3d1954=_0x41bbac[_0x1273d5])&&(_0x103cf0=(_0x145ae6?_0x3d1954(_0xd0d45d,_0xb1c2ab,_0x103cf0):_0x3d1954(_0x103cf0))||_0x103cf0);return _0x145ae6&&_0x103cf0&&L(_0xd0d45d,_0xb1c2ab,_0x103cf0),_0x103cf0;},O=(_0x385ce4,_0x83af0e)=>(_0x55f8dd,_0x20e47a)=>_0x83af0e(_0x55f8dd,_0x20e47a,_0x385ce4);let b=class extends c[_0xb43bae(0x199)]{constructor(_0x2e4bcb,_0x752526){const _0x155ec3=_0xb43bae;super(),this[_0x155ec3(0x12b)]=_0x2e4bcb,this[_0x155ec3(0x197)]=_0x752526,this['_initDataSource']();}[_0xb43bae(0x18d)](){const _0x32e1f1=_0xb43bae;this[_0x32e1f1(0x12b)]['dataSource']=this[_0x32e1f1(0x197)],this[_0x32e1f1(0x12b)][_0x32e1f1(0x138)]=!0x1;}};b=W([O(0x0,P[_0xb43bae(0x193)]),O(0x1,c[_0xb43bae(0x183)](f))],b);var j=Object[_0xb43bae(0x162)],B=Object['getOwnPropertyDescriptor'],K=(_0x2f4809,_0xc2797f,_0x1dc8aa)=>_0xc2797f in _0x2f4809?j(_0x2f4809,_0xc2797f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1dc8aa}):_0x2f4809[_0xc2797f]=_0x1dc8aa,V=(_0x22cba2,_0x3f7a90,_0x324f80,_0x5cd568)=>{const _0x447fb7=_0xb43bae;for(var _0x3d7deb=_0x5cd568>0x1?void 0x0:_0x5cd568?B(_0x3f7a90,_0x324f80):_0x3f7a90,_0x54b345=_0x22cba2[_0x447fb7(0x125)]-0x1,_0xeeff5f;_0x54b345>=0x0;_0x54b345--)(_0xeeff5f=_0x22cba2[_0x54b345])&&(_0x3d7deb=(_0x5cd568?_0xeeff5f(_0x3f7a90,_0x324f80,_0x3d7deb):_0xeeff5f(_0x3d7deb))||_0x3d7deb);return _0x5cd568&&_0x3d7deb&&j(_0x3f7a90,_0x324f80,_0x3d7deb),_0x3d7deb;},y=(_0x11a7ec,_0xd1a4f)=>(_0x16ecd3,_0x32cd6e)=>_0xd1a4f(_0x16ecd3,_0x32cd6e,_0x11a7ec),N=(_0x5585ae,_0x58c858,_0x8733d7)=>K(_0x5585ae,typeof _0x58c858!='symbol'?_0x58c858+'':_0x58c858,_0x8733d7);exports[_0xb43bae(0x160)]=class extends c[_0xb43bae(0x190)]{constructor(_0x510c2f=D,_0x4ebf05,_0x96b412){const _0x4685cf=_0xb43bae;super(),this[_0x4685cf(0x187)]=_0x510c2f,this[_0x4685cf(0x17d)]=_0x4ebf05,this['_configService']=_0x96b412;const {..._0x543fba}=c[_0x4685cf(0x120)]({},D,this[_0x4685cf(0x187)]);this[_0x4685cf(0x12a)][_0x4685cf(0x191)](x,_0x543fba);}['onStarting'](){[[f],[b],[S]]['forEach'](_0x520a03=>{const _0x2bef99=_0x3412;this[_0x2bef99(0x17d)]['add'](_0x520a03);});}[_0xb43bae(0x14d)](){const _0x46b79=_0xb43bae;this[_0x46b79(0x17d)]['get'](b),this[_0x46b79(0x17d)][_0x46b79(0x158)](S);}},N(exports[_0xb43bae(0x160)],_0xb43bae(0x122),R),N(exports['UniverThreadCommentDataSourcePlugin'],'type',c[_0xb43bae(0x180)][_0xb43bae(0x163)]),exports[_0xb43bae(0x160)]=V([c[_0xb43bae(0x13c)](w[_0xb43bae(0x165)],C[_0xb43bae(0x11f)],T['UniverLicensePlugin']),y(0x1,c[_0xb43bae(0x183)](c[_0xb43bae(0x129)])),y(0x2,c[_0xb43bae(0x126)])],exports[_0xb43bae(0x160)]);
1
+ 'use strict';const _0x1fe1df=_0x6417;(function(_0x817d9f,_0x110b6f){const _0x35e0a5=_0x6417,_0x1a9fc4=_0x817d9f();while(!![]){try{const _0x33d14a=parseInt(_0x35e0a5(0xec))/0x1+-parseInt(_0x35e0a5(0xf6))/0x2+-parseInt(_0x35e0a5(0x10f))/0x3*(parseInt(_0x35e0a5(0x105))/0x4)+parseInt(_0x35e0a5(0x112))/0x5*(-parseInt(_0x35e0a5(0xf0))/0x6)+parseInt(_0x35e0a5(0xf1))/0x7*(-parseInt(_0x35e0a5(0x11d))/0x8)+parseInt(_0x35e0a5(0x134))/0x9*(parseInt(_0x35e0a5(0x14b))/0xa)+parseInt(_0x35e0a5(0x11b))/0xb;if(_0x33d14a===_0x110b6f)break;else _0x1a9fc4['push'](_0x1a9fc4['shift']());}catch(_0x34d14d){_0x1a9fc4['push'](_0x1a9fc4['shift']());}}}(_0x60ad,0x67de1));function _0x6417(_0x24ffd7,_0x1132e6){const _0x60adb2=_0x60ad();return _0x6417=function(_0x6417d2,_0x394e8c){_0x6417d2=_0x6417d2-0xdb;let _0x84ec4e=_0x60adb2[_0x6417d2];return _0x84ec4e;},_0x6417(_0x24ffd7,_0x1132e6);}Object[_0x1fe1df(0x140)](exports,Symbol['toStringTag'],{'value':_0x1fe1df(0x12c)});const C=require('@univerjs-pro/collaboration-client'),T=require(_0x1fe1df(0x143)),c=require(_0x1fe1df(0x13f)),w=require(_0x1fe1df(0x151)),P=require(_0x1fe1df(0x10b)),U=require(_0x1fe1df(0x149)),M=require('@univerjs/network'),R='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';function _0x60ad(){const _0xa7ab74=['DependentOn','values','Edit','CommentService','error','@univerjs/core','defineProperty','_threadCommentDataSourceService','map','@univerjs-pro/license','/universer-api/user/list','/delete','UNIVER_UNKNOWN','UserManagerService','_sessionService','rxjs','/reply','558170IjnfsL','_config','personId','_injector','userID','saveCommentToSnapshot','@univerjs/thread-comment-ui','setConfig','length','_commentService','updateComment','Inject','CustomRangeType','Injector','Unknown','addUser','comments','format','YYYY/MM/DD\x20HH:mm','requireSession','rangeType','root','COMMENT','UniverThreadCommentUIPlugin','pluginName','_httpService','threadId','UNRECOGNIZED','code','822841NpNnCS','Add','_threadCommentDataSource','symbol','618pAXCkH','121926UnALaI','user','users','unitId','listComments','900262ekidNi','forEach','rangeId','_userService','filter','resolved','dayjs','thread-comment-data-source.config','deleteComment','_configService','parentId','body','getMemberID','replyId','userId','4rJzrAq','Delete','getComment','size','parse','createTimestamp','@univerjs/thread-comment','UniverThreadCommentDataSourcePlugin','replies','_initUserSync','1177122cTRqMR','comment','get','24655wVPaBo','ThreadCommentModel','Disposable','getOwnPropertyDescriptor','payload','UniverCollaborationClientPlugin','_initDataSource','/universer-api/comment/unit/','add','5719120dlmrIg','bufferTime','160TrpVJk','commentUpdate$','type','OpenOrReOpen','_threadCommentModel','resolveComment','post','solved','addComment','getUser','Reply','disposeWithMe','slice','/add','content','Module','UniverLicensePlugin','getUnit','find','_init','Solved','customRanges','Solve','126lAZkxl','merge','UniverInstanceType','stringify','ref','subscribe'];_0x60ad=function(){return _0xa7ab74;};return _0x60ad();}var I=(_0x2bee3e=>(_0x2bee3e[_0x2bee3e['OpenOrReOpen']=0x0]='OpenOrReOpen',_0x2bee3e[_0x2bee3e[_0x1fe1df(0x131)]=0x1]=_0x1fe1df(0x131),_0x2bee3e[_0x2bee3e[_0x1fe1df(0xea)]=-0x1]=_0x1fe1df(0xea),_0x2bee3e))(I||{}),v=(_0x521562=>(_0x521562[_0x521562[_0x1fe1df(0xdd)]=0x0]=_0x1fe1df(0xdd),_0x521562[_0x521562['Add']=0x1]='Add',_0x521562[_0x521562['Reply']=0x2]=_0x1fe1df(0x127),_0x521562[_0x521562[_0x1fe1df(0x13c)]=0x3]='Edit',_0x521562[_0x521562[_0x1fe1df(0x106)]=0x4]=_0x1fe1df(0x106),_0x521562[_0x521562[_0x1fe1df(0x133)]=0x5]=_0x1fe1df(0x133),_0x521562[_0x521562['UNRECOGNIZED']=-0x1]=_0x1fe1df(0xea),_0x521562))(v||{});const g=_0x109b72=>c[_0x1fe1df(0xfc)](new Date(+_0x109b72))[_0x1fe1df(0xe0)](_0x1fe1df(0xe1)),$=async(_0x9a34ce,_0x26e63f)=>{const _0x3cf1f6=_0x1fe1df,_0x56b45d=_0x9a34ce['get'](c[_0x3cf1f6(0x147)]),_0x46e605=_0x9a34ce[_0x3cf1f6(0x111)](M['HTTPService']);_0x26e63f[_0x3cf1f6(0xf7)](_0xfe774f=>{const _0x5c47b9=_0x3cf1f6;_0x56b45d[_0x5c47b9(0x126)](_0xfe774f)&&_0x26e63f['delete'](_0xfe774f);}),_0x26e63f[_0x3cf1f6(0x108)]&&(await _0x46e605[_0x3cf1f6(0x111)](_0x3cf1f6(0x144),{'params':{'userIDs':[..._0x26e63f]}}))[_0x3cf1f6(0x101)][_0x3cf1f6(0xf3)]['forEach'](_0x5d3d0f=>{const _0x11c54f=_0x3cf1f6;_0x5d3d0f&&_0x56b45d[_0x11c54f(0xde)](_0x5d3d0f);});};var E=Object[_0x1fe1df(0x140)],q=Object[_0x1fe1df(0x115)],A=(_0x444c24,_0x2355e9,_0x2b6c81,_0x138627)=>{const _0x6a8d55=_0x1fe1df;for(var _0x478332=_0x138627>0x1?void 0x0:_0x138627?q(_0x2355e9,_0x2b6c81):_0x2355e9,_0x4a6a54=_0x444c24[_0x6a8d55(0x153)]-0x1,_0x30491c;_0x4a6a54>=0x0;_0x4a6a54--)(_0x30491c=_0x444c24[_0x4a6a54])&&(_0x478332=(_0x138627?_0x30491c(_0x2355e9,_0x2b6c81,_0x478332):_0x30491c(_0x478332))||_0x478332);return _0x138627&&_0x478332&&E(_0x2355e9,_0x2b6c81,_0x478332),_0x478332;},_=(_0x49a656,_0x254d24)=>(_0x13a67a,_0xf7e0a2)=>_0x254d24(_0x13a67a,_0xf7e0a2,_0x49a656);let S=class extends c[_0x1fe1df(0x114)]{constructor(_0x43ebaf,_0x186b0d,_0x1291fd,_0x32cc85){const _0x295bd2=_0x1fe1df;super(),this['_commentService']=_0x43ebaf,this[_0x295bd2(0x121)]=_0x186b0d,this[_0x295bd2(0xf9)]=_0x1291fd,this[_0x295bd2(0x14e)]=_0x32cc85,this[_0x295bd2(0x130)](),this[_0x295bd2(0x10e)]();}[_0x1fe1df(0x10e)](){const _0x4b6a32=_0x1fe1df;this[_0x4b6a32(0x128)](this[_0x4b6a32(0x121)][_0x4b6a32(0x11e)]['pipe'](U[_0x4b6a32(0x11c)](0x10))['subscribe'](_0x3072af=>{const _0x4b9414=_0x4b6a32,_0x5a96fa=new Set();_0x3072af[_0x4b9414(0xf7)](_0x168872=>{const _0x2c6e70=_0x4b9414;switch(_0x168872[_0x2c6e70(0x11f)]){case'add':{const _0x14451b=_0x168872[_0x2c6e70(0x116)][_0x2c6e70(0x14d)];_0x5a96fa[_0x2c6e70(0x11a)](_0x14451b);break;}}}),$(this[_0x4b9414(0x14e)],_0x5a96fa);}));}[_0x1fe1df(0x130)](){const _0x10a0db=_0x1fe1df;this[_0x10a0db(0x128)](this[_0x10a0db(0x154)][_0x10a0db(0x11e)][_0x10a0db(0x139)](async _0x4d0ee6=>{const _0x29b360=_0x10a0db;var _0x267ae5,_0x32d46d,_0x1128d1,_0x1852de;const _0x24f999=(_0x267ae5=this[_0x29b360(0x121)][_0x29b360(0x12e)](_0x4d0ee6[_0x29b360(0xf4)])[_0x29b360(0x12f)](_0x415845=>_0x415845[_0x29b360(0xe9)]===_0x4d0ee6[_0x29b360(0xe9)]))==null?void 0x0:_0x267ae5[_0x29b360(0xe4)];if(!_0x24f999)return;const {unitId:_0x239e70,subUnitId:_0x184dc5}=_0x24f999;switch(_0x4d0ee6['user']&&this[_0x29b360(0xf9)][_0x29b360(0xde)](_0x4d0ee6[_0x29b360(0xf2)]),_0x4d0ee6[_0x29b360(0x11f)]){case v[_0x29b360(0xed)]:break;case v['Reply']:{this['_threadCommentModel']['addComment'](_0x239e70,_0x184dc5,{'unitId':_0x239e70,'subUnitId':_0x184dc5,'ref':'','id':_0x4d0ee6[_0x29b360(0x103)],'dT':g(+_0x4d0ee6[_0x29b360(0x10a)]),'threadId':_0x4d0ee6[_0x29b360(0xe9)],'personId':(_0x1128d1=(_0x32d46d=_0x4d0ee6['user'])==null?void 0x0:_0x32d46d[_0x29b360(0x14f)])!=null?_0x1128d1:_0x4d0ee6[_0x29b360(0x104)],'text':JSON[_0x29b360(0x109)](_0x4d0ee6[_0x29b360(0x12b)]),'parentId':_0x24f999['id']});break;}case v[_0x29b360(0x106)]:{const _0xa3c959=this[_0x29b360(0x121)][_0x29b360(0x107)](_0x239e70,_0x184dc5,_0x4d0ee6[_0x29b360(0x103)]);_0xa3c959&&_0xa3c959[_0x29b360(0x100)]&&this[_0x29b360(0x121)][_0x29b360(0xfe)](_0x239e70,_0x184dc5,_0x4d0ee6[_0x29b360(0x103)]);break;}case v['Edit']:{this[_0x29b360(0x121)]['updateComment'](_0x239e70,_0x184dc5,{'commentId':_0x4d0ee6[_0x29b360(0x103)],'text':JSON[_0x29b360(0x109)](_0x4d0ee6[_0x29b360(0x12b)])});break;}case v['Solve']:{const _0x36f59a=(_0x1852de=this['_threadCommentModel'][_0x29b360(0x12e)](_0x4d0ee6[_0x29b360(0xf4)])[_0x29b360(0x12f)](_0x343972=>_0x343972[_0x29b360(0xe9)]===_0x4d0ee6[_0x29b360(0xe9)]))==null?void 0x0:_0x1852de['root'];_0x36f59a&&this[_0x29b360(0x121)][_0x29b360(0x122)](_0x239e70,_0x184dc5,_0x36f59a['id'],_0x4d0ee6[_0x29b360(0x124)]===I['Solved']);break;}}}));}};S=A([_(0x0,c[_0x1fe1df(0x156)](C[_0x1fe1df(0x13d)])),_(0x1,c['Inject'](P[_0x1fe1df(0x113)])),_(0x2,c[_0x1fe1df(0x156)](c[_0x1fe1df(0x147)])),_(0x3,c[_0x1fe1df(0x156)](c[_0x1fe1df(0xdc)]))],S);const x=_0x1fe1df(0xfd),D={};var Y=Object[_0x1fe1df(0x140)],G=Object[_0x1fe1df(0x115)],H=(_0x36452e,_0x2e26e0,_0x3910b4,_0x233c25)=>{const _0x59b634=_0x1fe1df;for(var _0x154058=_0x233c25>0x1?void 0x0:_0x233c25?G(_0x2e26e0,_0x3910b4):_0x2e26e0,_0x6ba646=_0x36452e[_0x59b634(0x153)]-0x1,_0x73c964;_0x6ba646>=0x0;_0x6ba646--)(_0x73c964=_0x36452e[_0x6ba646])&&(_0x154058=(_0x233c25?_0x73c964(_0x2e26e0,_0x3910b4,_0x154058):_0x73c964(_0x154058))||_0x154058);return _0x233c25&&_0x154058&&Y(_0x2e26e0,_0x3910b4,_0x154058),_0x154058;},p=(_0x233126,_0x329ad1)=>(_0x4b3a63,_0x3267b1)=>_0x329ad1(_0x4b3a63,_0x3267b1,_0x233126);function J(_0x451e14,_0x19a9b9){const _0x768c6f=_0x1fe1df,_0x242a5b=_0x451e14[_0x768c6f(0x10d)][0x0];return{..._0x19a9b9,'id':_0x242a5b[_0x768c6f(0x103)],'resolved':_0x451e14['solved']===0x1,'dT':g(_0x242a5b['createTimestamp']),'personId':_0x242a5b[_0x768c6f(0x104)],'threadId':_0x242a5b[_0x768c6f(0xe9)]};}function F(_0x5d9b94,_0x5d6f50,_0x357b75){const _0x6f5d6e=_0x1fe1df;var _0x87e387,_0x1fa147;if(((_0x1fa147=(_0x87e387=_0x5d9b94==null?void 0x0:_0x5d9b94[_0x6f5d6e(0x10d)])==null?void 0x0:_0x87e387[_0x6f5d6e(0x153)])!=null?_0x1fa147:0x0)>0x0){const _0x211428=(_0x29e2a3,_0x1ed96c)=>({'id':_0x29e2a3['replyId'],'threadId':_0x29e2a3[_0x6f5d6e(0xe9)],'dT':g(_0x29e2a3[_0x6f5d6e(0x10a)]),'personId':_0x29e2a3['userId'],'resolved':_0x5d9b94['solved']===I[_0x6f5d6e(0x131)],'unitId':_0x5d6f50,'subUnitId':_0x357b75,'text':JSON[_0x6f5d6e(0x109)](_0x29e2a3[_0x6f5d6e(0x12b)]),'parentId':_0x1ed96c}),_0x6df2ec=_0x211428(_0x5d9b94[_0x6f5d6e(0x10d)][0x0]);return{..._0x6df2ec,'children':_0x5d9b94[_0x6f5d6e(0x10d)][_0x6f5d6e(0x129)](0x1)[_0x6f5d6e(0x142)](_0x37b912=>_0x211428(_0x37b912,_0x6df2ec['id']))};}return null;}let f=class{constructor(_0x137789,_0x2d4487,_0x19e2bb,_0x20fc4b){const _0x18d450=_0x1fe1df;this[_0x18d450(0xe8)]=_0x137789,this[_0x18d450(0xf9)]=_0x2d4487,this[_0x18d450(0x148)]=_0x19e2bb,this[_0x18d450(0x14e)]=_0x20fc4b;}async[_0x1fe1df(0x125)](_0xaa44df){const _0x5d2cbb=_0x1fe1df;var _0x5f88f6,_0x1387e0;const {parentId:_0x27c288,unitId:_0x3606c3,text:_0x3f6087,threadId:_0x4a811e}=_0xaa44df,_0x2ef75b=(_0x1387e0=(_0x5f88f6=_0x3f6087['customRanges'])==null?void 0x0:_0x5f88f6['filter'](_0x10cec3=>_0x10cec3[_0x5d2cbb(0xe3)]===c[_0x5d2cbb(0xdb)][_0x5d2cbb(0xe5)])[_0x5d2cbb(0x142)](_0xb09ea6=>_0xb09ea6[_0x5d2cbb(0xf8)]))!=null?_0x1387e0:[],_0x4bd0d6=JSON['stringify'](_0x3f6087),_0x585034=(await this[_0x5d2cbb(0x148)][_0x5d2cbb(0xe2)](_0x3606c3))[_0x5d2cbb(0x102)]();if(_0x27c288){const _0x52006={'memberId':_0x585034,'unitId':_0x3606c3,'content':_0x4bd0d6,'mention':_0x2ef75b,'threadId':_0x4a811e},_0xa09e35=(await this[_0x5d2cbb(0xe8)][_0x5d2cbb(0x123)](_0x5d2cbb(0x119)+_0x3606c3+_0x5d2cbb(0x14a),{'body':_0x52006}))['body']['reply'];return{..._0xaa44df,'id':_0xa09e35['replyId'],'dT':c[_0x5d2cbb(0xfc)](+_0xa09e35[_0x5d2cbb(0x10a)])[_0x5d2cbb(0xe0)](_0x5d2cbb(0xe1)),'personId':_0xa09e35[_0x5d2cbb(0x104)]};}else{const _0x1d6d92={'memberId':_0x585034,'unitId':_0x3606c3,'content':_0x4bd0d6,'mention':_0x2ef75b},_0x207b5d=await this[_0x5d2cbb(0xe8)][_0x5d2cbb(0x123)](_0x5d2cbb(0x119)+_0x3606c3+_0x5d2cbb(0x12a),{'body':_0x1d6d92});return J(_0x207b5d['body'][_0x5d2cbb(0x110)],_0xaa44df);}}async[_0x1fe1df(0x155)](_0x113b38){const _0x422101=_0x1fe1df;var _0x473944,_0x560789;const {text:_0x291955,unitId:_0x58e32b}=_0x113b38,_0x591db4=(_0x560789=(_0x473944=_0x291955[_0x422101(0x132)])==null?void 0x0:_0x473944[_0x422101(0xfa)](_0x4b01b0=>_0x4b01b0[_0x422101(0xe3)]===c[_0x422101(0xdb)][_0x422101(0xe5)])[_0x422101(0x142)](_0x20b4ac=>_0x20b4ac[_0x422101(0xf8)]))!=null?_0x560789:[],_0x1f3a87=JSON[_0x422101(0x137)](_0x291955),_0x114589=_0x113b38[_0x422101(0xe9)],_0x125125=_0x113b38['id'],_0x20616b={'memberId':(await this[_0x422101(0x148)][_0x422101(0xe2)](_0x58e32b))[_0x422101(0x102)](),'unitId':_0x58e32b,'threadId':_0x114589,'mention':_0x591db4,'content':_0x1f3a87,'replyId':_0x125125},_0x2619ca=await this[_0x422101(0xe8)][_0x422101(0x123)](_0x422101(0x119)+_0x58e32b+'/edit',{'body':_0x20616b});return!_0x2619ca['body'][_0x422101(0x13e)]||_0x2619ca[_0x422101(0x101)][_0x422101(0x13e)]['code']===0x1;}async[_0x1fe1df(0x122)](_0x58c0c5){const _0x3974be=_0x1fe1df,{unitId:_0x5aa9a3}=_0x58c0c5,_0x53fc34=_0x58c0c5[_0x3974be(0xe9)],_0x51a9c7={'memberId':this[_0x3974be(0xf9)]['getCurrentUser']()[_0x3974be(0x14f)],'unitId':_0x5aa9a3,'threadId':_0x53fc34,'solved':_0x58c0c5[_0x3974be(0xfb)]?I[_0x3974be(0x131)]:I[_0x3974be(0x120)]},_0x220665=await this[_0x3974be(0xe8)]['post'](_0x3974be(0x119)+_0x5aa9a3+'/solved',{'body':_0x51a9c7});return!_0x220665['body'][_0x3974be(0x13e)]||_0x220665['body'][_0x3974be(0x13e)][_0x3974be(0xeb)]===0x1;}async[_0x1fe1df(0xfe)](_0x3ebb77,_0x2f1c4a,_0x14a33f,_0x10611a){const _0x4779eb=_0x1fe1df,_0x25d708={'memberId':(await this[_0x4779eb(0x148)][_0x4779eb(0xe2)](_0x3ebb77))[_0x4779eb(0x102)](),'threadId':_0x14a33f,'replyId':_0x10611a,'unitId':_0x3ebb77},_0x5beb0c=await this['_httpService'][_0x4779eb(0x123)](_0x4779eb(0x119)+_0x3ebb77+_0x4779eb(0x145),{'body':_0x25d708});return!_0x5beb0c[_0x4779eb(0x101)][_0x4779eb(0x13e)]||_0x5beb0c[_0x4779eb(0x101)][_0x4779eb(0x13e)]['code']===0x1;}async[_0x1fe1df(0xf5)](_0x1171df,_0x19db0e,_0x242ee2){const _0x3b090c=_0x1fe1df,_0xd54802={'unitId':_0x1171df,'threadId':_0x242ee2},_0x4ea196=await this[_0x3b090c(0xe8)]['post'](_0x3b090c(0x119)+_0x1171df+'/list',{'body':_0xd54802}),_0x1573d6=_0x242ee2[_0x3b090c(0x142)](_0x37b552=>F(_0x4ea196[_0x3b090c(0x101)][_0x3b090c(0xdf)][_0x37b552],_0x1171df,_0x19db0e))[_0x3b090c(0xfa)](Boolean);return Object[_0x3b090c(0x13b)](_0x4ea196[_0x3b090c(0x101)]['users'])[_0x3b090c(0xf7)](_0x119f6d=>{const _0x4a3534=_0x3b090c;this[_0x4a3534(0xf9)][_0x4a3534(0xde)](_0x119f6d);}),_0x1573d6;}[_0x1fe1df(0x150)](_0x5d11f0){const _0x2e9b1c=_0x1fe1df;return{'id':_0x5d11f0['id'],'threadId':_0x5d11f0['threadId'],'ref':_0x5d11f0[_0x2e9b1c(0x138)]};}};f=H([p(0x0,c[_0x1fe1df(0x156)](M['HTTPService'])),p(0x1,c[_0x1fe1df(0x156)](c[_0x1fe1df(0x147)])),p(0x2,c[_0x1fe1df(0x156)](C['CollaborationSessionService'])),p(0x3,c['Inject'](c[_0x1fe1df(0xdc)]))],f);var L=Object[_0x1fe1df(0x140)],Z=Object[_0x1fe1df(0x115)],W=(_0x24c96c,_0xaa38c,_0x56ccc9,_0x18bd7a)=>{const _0x41b9d3=_0x1fe1df;for(var _0x5f34d8=_0x18bd7a>0x1?void 0x0:_0x18bd7a?Z(_0xaa38c,_0x56ccc9):_0xaa38c,_0x3ccd67=_0x24c96c[_0x41b9d3(0x153)]-0x1,_0x27cc54;_0x3ccd67>=0x0;_0x3ccd67--)(_0x27cc54=_0x24c96c[_0x3ccd67])&&(_0x5f34d8=(_0x18bd7a?_0x27cc54(_0xaa38c,_0x56ccc9,_0x5f34d8):_0x27cc54(_0x5f34d8))||_0x5f34d8);return _0x18bd7a&&_0x5f34d8&&L(_0xaa38c,_0x56ccc9,_0x5f34d8),_0x5f34d8;},O=(_0x2919d9,_0x3742a7)=>(_0x30f8ae,_0x2cb19e)=>_0x3742a7(_0x30f8ae,_0x2cb19e,_0x2919d9);let b=class extends c[_0x1fe1df(0x114)]{constructor(_0x3b1253,_0x202a71){const _0x293d0f=_0x1fe1df;super(),this[_0x293d0f(0x141)]=_0x3b1253,this[_0x293d0f(0xee)]=_0x202a71,this['_initDataSource']();}[_0x1fe1df(0x118)](){const _0x358fb3=_0x1fe1df;this[_0x358fb3(0x141)]['dataSource']=this[_0x358fb3(0xee)],this[_0x358fb3(0x141)]['syncUpdateMutationToColla']=!0x1;}};b=W([O(0x0,P['IThreadCommentDataSourceService']),O(0x1,c[_0x1fe1df(0x156)](f))],b);var j=Object[_0x1fe1df(0x140)],B=Object[_0x1fe1df(0x115)],K=(_0x43a1d0,_0x4570ba,_0x1a38f0)=>_0x4570ba in _0x43a1d0?j(_0x43a1d0,_0x4570ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a38f0}):_0x43a1d0[_0x4570ba]=_0x1a38f0,V=(_0x15e6f0,_0x54fedb,_0x28b606,_0x1f4c9d)=>{const _0x1c8718=_0x1fe1df;for(var _0x3b3895=_0x1f4c9d>0x1?void 0x0:_0x1f4c9d?B(_0x54fedb,_0x28b606):_0x54fedb,_0x53edff=_0x15e6f0[_0x1c8718(0x153)]-0x1,_0x27fa39;_0x53edff>=0x0;_0x53edff--)(_0x27fa39=_0x15e6f0[_0x53edff])&&(_0x3b3895=(_0x1f4c9d?_0x27fa39(_0x54fedb,_0x28b606,_0x3b3895):_0x27fa39(_0x3b3895))||_0x3b3895);return _0x1f4c9d&&_0x3b3895&&j(_0x54fedb,_0x28b606,_0x3b3895),_0x3b3895;},y=(_0xe25e34,_0x150034)=>(_0x38de2a,_0x274eb4)=>_0x150034(_0x38de2a,_0x274eb4,_0xe25e34),N=(_0x565eb4,_0x33b448,_0x30b90e)=>K(_0x565eb4,typeof _0x33b448!=_0x1fe1df(0xef)?_0x33b448+'':_0x33b448,_0x30b90e);exports[_0x1fe1df(0x10c)]=class extends c['Plugin']{constructor(_0x116ba8=D,_0x1537fb,_0x1c9768){const _0x31fd2a=_0x1fe1df;super(),this['_config']=_0x116ba8,this[_0x31fd2a(0x14e)]=_0x1537fb,this[_0x31fd2a(0xff)]=_0x1c9768;const {..._0x198f9f}=c[_0x31fd2a(0x135)]({},D,this[_0x31fd2a(0x14c)]);this[_0x31fd2a(0xff)][_0x31fd2a(0x152)](x,_0x198f9f);}['onStarting'](){const _0x2bbc6a=_0x1fe1df;[[f],[b],[S]][_0x2bbc6a(0xf7)](_0x4dc801=>{const _0x155a11=_0x2bbc6a;this[_0x155a11(0x14e)][_0x155a11(0x11a)](_0x4dc801);});}['onReady'](){const _0x59d654=_0x1fe1df;this['_injector'][_0x59d654(0x111)](b),this[_0x59d654(0x14e)][_0x59d654(0x111)](S);}},N(exports['UniverThreadCommentDataSourcePlugin'],_0x1fe1df(0xe7),R),N(exports[_0x1fe1df(0x10c)],_0x1fe1df(0x11f),c[_0x1fe1df(0x136)][_0x1fe1df(0x146)]),exports[_0x1fe1df(0x10c)]=V([c[_0x1fe1df(0x13a)](w[_0x1fe1df(0xe6)],C[_0x1fe1df(0x117)],T[_0x1fe1df(0x12d)]),y(0x1,c['Inject'](c[_0x1fe1df(0xdc)])),y(0x2,c['IConfigService'])],exports[_0x1fe1df(0x10c)]);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3bdc18=_0xf802;(function(_0x3dcaee,_0x2d42f4){const _0x176979=_0xf802,_0x53263b=_0x3dcaee();while(!![]){try{const _0x538f2b=-parseInt(_0x176979(0x1ac))/0x1*(parseInt(_0x176979(0x1fc))/0x2)+parseInt(_0x176979(0x1f8))/0x3+-parseInt(_0x176979(0x1ee))/0x4+parseInt(_0x176979(0x1fa))/0x5+-parseInt(_0x176979(0x1c6))/0x6+parseInt(_0x176979(0x1f1))/0x7+parseInt(_0x176979(0x1ec))/0x8*(parseInt(_0x176979(0x1ab))/0x9);if(_0x538f2b===_0x2d42f4)break;else _0x53263b['push'](_0x53263b['shift']());}catch(_0xe2f9ee){_0x53263b['push'](_0x53263b['shift']());}}}(_0x20bb,0xb7785));import{CommentService as _0x35b059,CollaborationSessionService as _0x8c1a27,UniverCollaborationClientPlugin as _0x387457}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x28642f}from'@univerjs-pro/license';function _0x20bb(){const _0x101b52=['UNRECOGNIZED','personId','_initUserSync','_config','code','find','type','disposeWithMe','error','_threadCommentModel','Solved','symbol','subscribe','_sessionService','getMemberID','solved','/delete','body','updateComment','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','pluginName','UNIVER_UNKNOWN','comment','user','getUser','parentId','/list','OpenOrReOpen','replies','requireSession','filter','comments','defineProperty','root','426312yitfBU','stringify','619572aJytce','map','_threadCommentDataSourceService','1750462vHgUXm','getComment','unitId','parse','deleteComment','thread-comment-data-source.config','_configService','3897738ehzvtJ','Add','3898895VPrEPZ','Edit','16370WvIFXC','users','addUser','Solve','commentUpdate$','YYYY/MM/DD\x20HH:mm','setConfig','forEach','COMMENT','getUnit','userId','_initDataSource','Reply','format','post','createTimestamp','36ddBAQE','125rVXOKY','get','getCurrentUser','_init','content','/universer-api/comment/unit/','_commentService','_httpService','add','threadId','_threadCommentDataSource','replyId','saveCommentToSnapshot','length','payload','getOwnPropertyDescriptor','pipe','rangeType','addComment','customRanges','dataSource','Delete','userID','/solved','resolveComment','_userService','3676416MUAelm','delete','_injector','onStarting'];_0x20bb=function(){return _0x101b52;};return _0x20bb();}import{dayjs as _0x48ced7,UserManagerService as _0x426d68,Inject as _0x1eb374,Injector as _0x5c40b1,Disposable as _0x2f32a1,CustomRangeType as _0x1415bf,UniverInstanceType as _0x1f859b,DependentOn as _0x5662ab,Plugin as _0x4bceec,merge as _0x5519cd,IConfigService as _0x5bebfc}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x1017cc}from'@univerjs/thread-comment-ui';function _0xf802(_0x565483,_0x402004){const _0x20bb9a=_0x20bb();return _0xf802=function(_0xf802d4,_0x547781){_0xf802d4=_0xf802d4-0x1a5;let _0x2ebb75=_0x20bb9a[_0xf802d4];return _0x2ebb75;},_0xf802(_0x565483,_0x402004);}import{ThreadCommentModel as _0x5837b1,IThreadCommentDataSourceService as _0x31dc4e}from'@univerjs/thread-comment';import{bufferTime as _0x473cd5}from'rxjs';import{HTTPService as _0x1be0c4}from'@univerjs/network';const B=_0x3bdc18(0x1dd);var v=(_0x5e24db=>(_0x5e24db[_0x5e24db[_0x3bdc18(0x1e5)]=0x0]=_0x3bdc18(0x1e5),_0x5e24db[_0x5e24db[_0x3bdc18(0x1d4)]=0x1]='Solved',_0x5e24db[_0x5e24db[_0x3bdc18(0x1ca)]=-0x1]='UNRECOGNIZED',_0x5e24db))(v||{}),p=(_0x3e0abd=>(_0x3e0abd[_0x3e0abd['Unknown']=0x0]='Unknown',_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1f9)]=0x1]=_0x3bdc18(0x1f9),_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1a7)]=0x2]=_0x3bdc18(0x1a7),_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1fb)]=0x3]=_0x3bdc18(0x1fb),_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1c1)]=0x4]=_0x3bdc18(0x1c1),_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1ff)]=0x5]='Solve',_0x3e0abd[_0x3e0abd['UNRECOGNIZED']=-0x1]=_0x3bdc18(0x1ca),_0x3e0abd))(p||{});const O=_0x2bbe81=>_0x48ced7(new Date(+_0x2bbe81))[_0x3bdc18(0x1a8)]('YYYY/MM/DD\x20HH:mm'),K=async(_0x4ee733,_0x20f049)=>{const _0x4bf02f=_0x3bdc18,_0x5b0ff2=_0x4ee733['get'](_0x426d68),_0x287b7f=_0x4ee733['get'](_0x1be0c4);_0x20f049[_0x4bf02f(0x203)](_0x119be5=>{const _0x2ab9ba=_0x4bf02f;_0x5b0ff2[_0x2ab9ba(0x1e2)](_0x119be5)&&_0x20f049[_0x2ab9ba(0x1c7)](_0x119be5);}),_0x20f049['size']&&(await _0x287b7f['get']('/universer-api/user/list',{'params':{'userIDs':[..._0x20f049]}}))[_0x4bf02f(0x1db)][_0x4bf02f(0x1fd)][_0x4bf02f(0x203)](_0x5d7b06=>{const _0x4320f2=_0x4bf02f;_0x5d7b06&&_0x5b0ff2[_0x4320f2(0x1fe)](_0x5d7b06);});};var V=Object['defineProperty'],z=Object[_0x3bdc18(0x1bb)],Q=(_0x3740c4,_0x3fa05e,_0x12fc80,_0x4a763f)=>{for(var _0x16d664=_0x4a763f>0x1?void 0x0:_0x4a763f?z(_0x3fa05e,_0x12fc80):_0x3fa05e,_0xddb9af=_0x3740c4['length']-0x1,_0x17661c;_0xddb9af>=0x0;_0xddb9af--)(_0x17661c=_0x3740c4[_0xddb9af])&&(_0x16d664=(_0x4a763f?_0x17661c(_0x3fa05e,_0x12fc80,_0x16d664):_0x17661c(_0x16d664))||_0x16d664);return _0x4a763f&&_0x16d664&&V(_0x3fa05e,_0x12fc80,_0x16d664),_0x16d664;},_=(_0x2eb656,_0x4f8314)=>(_0x4753fb,_0x163190)=>_0x4f8314(_0x4753fb,_0x163190,_0x2eb656);let f=class extends _0x2f32a1{constructor(_0x1a150c,_0x3add72,_0x2cfbe4,_0x5eb323){const _0x4811be=_0x3bdc18;super(),this[_0x4811be(0x1b2)]=_0x1a150c,this[_0x4811be(0x1d3)]=_0x3add72,this[_0x4811be(0x1c5)]=_0x2cfbe4,this[_0x4811be(0x1c8)]=_0x5eb323,this[_0x4811be(0x1af)](),this[_0x4811be(0x1cc)]();}['_initUserSync'](){const _0x4b7e9c=_0x3bdc18;this[_0x4b7e9c(0x1d1)](this['_threadCommentModel'][_0x4b7e9c(0x200)][_0x4b7e9c(0x1bc)](_0x473cd5(0x10))[_0x4b7e9c(0x1d6)](_0x484d91=>{const _0x2db3ed=_0x4b7e9c,_0x4d6208=new Set();_0x484d91[_0x2db3ed(0x203)](_0x31d3d0=>{const _0x37c7a1=_0x2db3ed;switch(_0x31d3d0[_0x37c7a1(0x1d0)]){case _0x37c7a1(0x1b4):{const _0x2b2288=_0x31d3d0[_0x37c7a1(0x1ba)][_0x37c7a1(0x1cb)];_0x4d6208['add'](_0x2b2288);break;}}}),K(this['_injector'],_0x4d6208);}));}['_init'](){const _0x559287=_0x3bdc18;this[_0x559287(0x1d1)](this[_0x559287(0x1b2)]['commentUpdate$'][_0x559287(0x1d6)](async _0x5b3b57=>{const _0x5808a8=_0x559287;var _0x945cce,_0x48043e,_0x406f32,_0x5ebf48;const _0x1e8685=(_0x945cce=this[_0x5808a8(0x1d3)]['getUnit'](_0x5b3b57[_0x5808a8(0x1f3)])[_0x5808a8(0x1cf)](_0x1040c4=>_0x1040c4['threadId']===_0x5b3b57['threadId']))==null?void 0x0:_0x945cce['root'];if(!_0x1e8685)return;const {unitId:_0x592796,subUnitId:_0x2c8487}=_0x1e8685;switch(_0x5b3b57[_0x5808a8(0x1e1)]&&this[_0x5808a8(0x1c5)][_0x5808a8(0x1fe)](_0x5b3b57[_0x5808a8(0x1e1)]),_0x5b3b57[_0x5808a8(0x1d0)]){case p[_0x5808a8(0x1f9)]:break;case p[_0x5808a8(0x1a7)]:{this[_0x5808a8(0x1d3)][_0x5808a8(0x1be)](_0x592796,_0x2c8487,{'unitId':_0x592796,'subUnitId':_0x2c8487,'ref':'','id':_0x5b3b57['replyId'],'dT':O(+_0x5b3b57[_0x5808a8(0x1aa)]),'threadId':_0x5b3b57[_0x5808a8(0x1b5)],'personId':(_0x406f32=(_0x48043e=_0x5b3b57[_0x5808a8(0x1e1)])==null?void 0x0:_0x48043e[_0x5808a8(0x1c2)])!=null?_0x406f32:_0x5b3b57[_0x5808a8(0x1a5)],'text':JSON['parse'](_0x5b3b57[_0x5808a8(0x1b0)]),'parentId':_0x1e8685['id']});break;}case p['Delete']:{const _0x21926d=this['_threadCommentModel'][_0x5808a8(0x1f2)](_0x592796,_0x2c8487,_0x5b3b57[_0x5808a8(0x1b7)]);_0x21926d&&_0x21926d[_0x5808a8(0x1e3)]&&this[_0x5808a8(0x1d3)]['deleteComment'](_0x592796,_0x2c8487,_0x5b3b57[_0x5808a8(0x1b7)]);break;}case p['Edit']:{this[_0x5808a8(0x1d3)][_0x5808a8(0x1dc)](_0x592796,_0x2c8487,{'commentId':_0x5b3b57[_0x5808a8(0x1b7)],'text':JSON[_0x5808a8(0x1f4)](_0x5b3b57[_0x5808a8(0x1b0)])});break;}case p[_0x5808a8(0x1ff)]:{const _0x42400c=(_0x5ebf48=this[_0x5808a8(0x1d3)][_0x5808a8(0x205)](_0x5b3b57[_0x5808a8(0x1f3)])['find'](_0x534e22=>_0x534e22[_0x5808a8(0x1b5)]===_0x5b3b57['threadId']))==null?void 0x0:_0x5ebf48[_0x5808a8(0x1eb)];_0x42400c&&this[_0x5808a8(0x1d3)][_0x5808a8(0x1c4)](_0x592796,_0x2c8487,_0x42400c['id'],_0x5b3b57[_0x5808a8(0x1d9)]===v['Solved']);break;}}}));}};f=Q([_(0x0,_0x1eb374(_0x35b059)),_(0x1,_0x1eb374(_0x5837b1)),_(0x2,_0x1eb374(_0x426d68)),_(0x3,_0x1eb374(_0x5c40b1))],f);const X=_0x3bdc18(0x1f6),P={};var k=Object[_0x3bdc18(0x1ea)],ee=Object[_0x3bdc18(0x1bb)],re=(_0x4a160c,_0x415775,_0x2d801d,_0x6a6a4d)=>{const _0x2a23b1=_0x3bdc18;for(var _0x26cfe4=_0x6a6a4d>0x1?void 0x0:_0x6a6a4d?ee(_0x415775,_0x2d801d):_0x415775,_0x40d769=_0x4a160c[_0x2a23b1(0x1b9)]-0x1,_0x393b20;_0x40d769>=0x0;_0x40d769--)(_0x393b20=_0x4a160c[_0x40d769])&&(_0x26cfe4=(_0x6a6a4d?_0x393b20(_0x415775,_0x2d801d,_0x26cfe4):_0x393b20(_0x26cfe4))||_0x26cfe4);return _0x6a6a4d&&_0x26cfe4&&k(_0x415775,_0x2d801d,_0x26cfe4),_0x26cfe4;},I=(_0x2f4d8a,_0x34830d)=>(_0x3bca56,_0x5637b2)=>_0x34830d(_0x3bca56,_0x5637b2,_0x2f4d8a);function te(_0x9a3543,_0x345a2b){const _0x1d7eed=_0x3bdc18,_0x73720d=_0x9a3543['replies'][0x0];return{..._0x345a2b,'id':_0x73720d['replyId'],'resolved':_0x9a3543['solved']===0x1,'dT':O(_0x73720d['createTimestamp']),'personId':_0x73720d[_0x1d7eed(0x1a5)],'threadId':_0x73720d[_0x1d7eed(0x1b5)]};}function se(_0x309e42,_0x3215bf,_0x43e30d){const _0x57e5a3=_0x3bdc18;var _0x407189,_0x4764ed;if(((_0x4764ed=(_0x407189=_0x309e42==null?void 0x0:_0x309e42[_0x57e5a3(0x1e6)])==null?void 0x0:_0x407189['length'])!=null?_0x4764ed:0x0)>0x0){const _0x45d8b9=(_0xd22c19,_0x2b022e)=>({'id':_0xd22c19[_0x57e5a3(0x1b7)],'threadId':_0xd22c19[_0x57e5a3(0x1b5)],'dT':O(_0xd22c19[_0x57e5a3(0x1aa)]),'personId':_0xd22c19[_0x57e5a3(0x1a5)],'resolved':_0x309e42[_0x57e5a3(0x1d9)]===v[_0x57e5a3(0x1d4)],'unitId':_0x3215bf,'subUnitId':_0x43e30d,'text':JSON[_0x57e5a3(0x1f4)](_0xd22c19['content']),'parentId':_0x2b022e}),_0x434b1b=_0x45d8b9(_0x309e42['replies'][0x0]);return{..._0x434b1b,'children':_0x309e42[_0x57e5a3(0x1e6)]['slice'](0x1)[_0x57e5a3(0x1ef)](_0x4be4f4=>_0x45d8b9(_0x4be4f4,_0x434b1b['id']))};}return null;}let S=class{constructor(_0x24e667,_0x5572a4,_0x3cfeab,_0x4a9ed2){const _0x19a370=_0x3bdc18;this[_0x19a370(0x1b3)]=_0x24e667,this[_0x19a370(0x1c5)]=_0x5572a4,this[_0x19a370(0x1d7)]=_0x3cfeab,this[_0x19a370(0x1c8)]=_0x4a9ed2;}async[_0x3bdc18(0x1be)](_0x46e15a){const _0x3bc4f6=_0x3bdc18;var _0x48902b,_0x4cf324;const {parentId:_0x9e8baf,unitId:_0x424586,text:_0x5a250a,threadId:_0x1347ab}=_0x46e15a,_0x2fa257=(_0x4cf324=(_0x48902b=_0x5a250a['customRanges'])==null?void 0x0:_0x48902b[_0x3bc4f6(0x1e8)](_0x40e8ad=>_0x40e8ad[_0x3bc4f6(0x1bd)]===_0x1415bf[_0x3bc4f6(0x204)])[_0x3bc4f6(0x1ef)](_0x446d69=>_0x446d69['rangeId']))!=null?_0x4cf324:[],_0x539f8f=JSON['stringify'](_0x5a250a),_0x171c95=(await this[_0x3bc4f6(0x1d7)][_0x3bc4f6(0x1e7)](_0x424586))[_0x3bc4f6(0x1d8)]();if(_0x9e8baf){const _0x26f908={'memberId':_0x171c95,'unitId':_0x424586,'content':_0x539f8f,'mention':_0x2fa257,'threadId':_0x1347ab},_0x522dcb=(await this['_httpService'][_0x3bc4f6(0x1a9)](_0x3bc4f6(0x1b1)+_0x424586+'/reply',{'body':_0x26f908}))[_0x3bc4f6(0x1db)]['reply'];return{..._0x46e15a,'id':_0x522dcb['replyId'],'dT':_0x48ced7(+_0x522dcb[_0x3bc4f6(0x1aa)])['format'](_0x3bc4f6(0x201)),'personId':_0x522dcb[_0x3bc4f6(0x1a5)]};}else{const _0x300e9b={'memberId':_0x171c95,'unitId':_0x424586,'content':_0x539f8f,'mention':_0x2fa257},_0x5c9cf3=await this[_0x3bc4f6(0x1b3)][_0x3bc4f6(0x1a9)](_0x3bc4f6(0x1b1)+_0x424586+'/add',{'body':_0x300e9b});return te(_0x5c9cf3[_0x3bc4f6(0x1db)][_0x3bc4f6(0x1e0)],_0x46e15a);}}async[_0x3bdc18(0x1dc)](_0x305a05){const _0x502e57=_0x3bdc18;var _0x38e21e,_0x1508ec;const {text:_0xa8cc32,unitId:_0x5ac86f}=_0x305a05,_0x4d64fa=(_0x1508ec=(_0x38e21e=_0xa8cc32[_0x502e57(0x1bf)])==null?void 0x0:_0x38e21e['filter'](_0x318dfb=>_0x318dfb[_0x502e57(0x1bd)]===_0x1415bf['COMMENT'])[_0x502e57(0x1ef)](_0x2d5374=>_0x2d5374['rangeId']))!=null?_0x1508ec:[],_0x266530=JSON[_0x502e57(0x1ed)](_0xa8cc32),_0xdf1873=_0x305a05[_0x502e57(0x1b5)],_0x4742bb=_0x305a05['id'],_0x27fa2f={'memberId':(await this[_0x502e57(0x1d7)]['requireSession'](_0x5ac86f))['getMemberID'](),'unitId':_0x5ac86f,'threadId':_0xdf1873,'mention':_0x4d64fa,'content':_0x266530,'replyId':_0x4742bb},_0x1df711=await this[_0x502e57(0x1b3)][_0x502e57(0x1a9)](_0x502e57(0x1b1)+_0x5ac86f+'/edit',{'body':_0x27fa2f});return!_0x1df711[_0x502e57(0x1db)][_0x502e57(0x1d2)]||_0x1df711['body'][_0x502e57(0x1d2)][_0x502e57(0x1ce)]===0x1;}async[_0x3bdc18(0x1c4)](_0x527d55){const _0x1fca56=_0x3bdc18,{unitId:_0x182b72}=_0x527d55,_0x19882f=_0x527d55[_0x1fca56(0x1b5)],_0x30f803={'memberId':this[_0x1fca56(0x1c5)][_0x1fca56(0x1ae)]()[_0x1fca56(0x1c2)],'unitId':_0x182b72,'threadId':_0x19882f,'solved':_0x527d55['resolved']?v[_0x1fca56(0x1d4)]:v[_0x1fca56(0x1e5)]},_0x3ca022=await this[_0x1fca56(0x1b3)][_0x1fca56(0x1a9)](_0x1fca56(0x1b1)+_0x182b72+_0x1fca56(0x1c3),{'body':_0x30f803});return!_0x3ca022['body'][_0x1fca56(0x1d2)]||_0x3ca022[_0x1fca56(0x1db)]['error']['code']===0x1;}async[_0x3bdc18(0x1f5)](_0x24eade,_0x2fe2f2,_0x4f38ec,_0x4f0b4f){const _0x483d91=_0x3bdc18,_0x41384e={'memberId':(await this['_sessionService'][_0x483d91(0x1e7)](_0x24eade))[_0x483d91(0x1d8)](),'threadId':_0x4f38ec,'replyId':_0x4f0b4f,'unitId':_0x24eade},_0x48e88b=await this[_0x483d91(0x1b3)][_0x483d91(0x1a9)](_0x483d91(0x1b1)+_0x24eade+_0x483d91(0x1da),{'body':_0x41384e});return!_0x48e88b[_0x483d91(0x1db)][_0x483d91(0x1d2)]||_0x48e88b[_0x483d91(0x1db)][_0x483d91(0x1d2)]['code']===0x1;}async['listComments'](_0x1bdb68,_0x37c9c3,_0x3e2471){const _0x44dd4b=_0x3bdc18,_0x27f860={'unitId':_0x1bdb68,'threadId':_0x3e2471},_0x51c836=await this[_0x44dd4b(0x1b3)]['post']('/universer-api/comment/unit/'+_0x1bdb68+_0x44dd4b(0x1e4),{'body':_0x27f860}),_0x1704a7=_0x3e2471['map'](_0x238a17=>se(_0x51c836[_0x44dd4b(0x1db)][_0x44dd4b(0x1e9)][_0x238a17],_0x1bdb68,_0x37c9c3))[_0x44dd4b(0x1e8)](Boolean);return Object['values'](_0x51c836['body'][_0x44dd4b(0x1fd)])[_0x44dd4b(0x203)](_0x46fb32=>{const _0x421a38=_0x44dd4b;this['_userService'][_0x421a38(0x1fe)](_0x46fb32);}),_0x1704a7;}[_0x3bdc18(0x1b8)](_0x52a9eb){const _0x5eb107=_0x3bdc18;return{'id':_0x52a9eb['id'],'threadId':_0x52a9eb[_0x5eb107(0x1b5)],'ref':_0x52a9eb['ref']};}};S=re([I(0x0,_0x1eb374(_0x1be0c4)),I(0x1,_0x1eb374(_0x426d68)),I(0x2,_0x1eb374(_0x8c1a27)),I(0x3,_0x1eb374(_0x5c40b1))],S);var oe=Object[_0x3bdc18(0x1ea)],ne=Object['getOwnPropertyDescriptor'],ie=(_0x714854,_0x56be87,_0x2909a7,_0x2e7f5e)=>{for(var _0x2e8c0a=_0x2e7f5e>0x1?void 0x0:_0x2e7f5e?ne(_0x56be87,_0x2909a7):_0x56be87,_0x36b9cc=_0x714854['length']-0x1,_0x1b0166;_0x36b9cc>=0x0;_0x36b9cc--)(_0x1b0166=_0x714854[_0x36b9cc])&&(_0x2e8c0a=(_0x2e7f5e?_0x1b0166(_0x56be87,_0x2909a7,_0x2e8c0a):_0x1b0166(_0x2e8c0a))||_0x2e8c0a);return _0x2e7f5e&&_0x2e8c0a&&oe(_0x56be87,_0x2909a7,_0x2e8c0a),_0x2e8c0a;},M=(_0x8c3f31,_0x379eb0)=>(_0x2613f3,_0x204c62)=>_0x379eb0(_0x2613f3,_0x204c62,_0x8c3f31);let b=class extends _0x2f32a1{constructor(_0x5b1b5c,_0x4aca0b){const _0x3d2d11=_0x3bdc18;super(),this['_threadCommentDataSourceService']=_0x5b1b5c,this[_0x3d2d11(0x1b6)]=_0x4aca0b,this[_0x3d2d11(0x1a6)]();}[_0x3bdc18(0x1a6)](){const _0x484146=_0x3bdc18;this['_threadCommentDataSourceService'][_0x484146(0x1c0)]=this['_threadCommentDataSource'],this[_0x484146(0x1f0)]['syncUpdateMutationToColla']=!0x1;}};b=ie([M(0x0,_0x31dc4e),M(0x1,_0x1eb374(S))],b);var $=Object['defineProperty'],ce=Object['getOwnPropertyDescriptor'],ae=(_0x9451cc,_0xcaae0b,_0x44f90a)=>_0xcaae0b in _0x9451cc?$(_0x9451cc,_0xcaae0b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44f90a}):_0x9451cc[_0xcaae0b]=_0x44f90a,de=(_0x19b94e,_0x599e77,_0x284f9,_0x1940f5)=>{const _0x5296bb=_0x3bdc18;for(var _0x56198a=_0x1940f5>0x1?void 0x0:_0x1940f5?ce(_0x599e77,_0x284f9):_0x599e77,_0x2e9fb5=_0x19b94e[_0x5296bb(0x1b9)]-0x1,_0x25fefe;_0x2e9fb5>=0x0;_0x2e9fb5--)(_0x25fefe=_0x19b94e[_0x2e9fb5])&&(_0x56198a=(_0x1940f5?_0x25fefe(_0x599e77,_0x284f9,_0x56198a):_0x25fefe(_0x56198a))||_0x56198a);return _0x1940f5&&_0x56198a&&$(_0x599e77,_0x284f9,_0x56198a),_0x56198a;},N=(_0x2951e0,_0x41d405)=>(_0xa197f5,_0x22e987)=>_0x41d405(_0xa197f5,_0x22e987,_0x2951e0),j=(_0x135fec,_0x5d4d8e,_0x537a06)=>ae(_0x135fec,typeof _0x5d4d8e!=_0x3bdc18(0x1d5)?_0x5d4d8e+'':_0x5d4d8e,_0x537a06);let C=class extends _0x4bceec{constructor(_0x41a829=P,_0x1a492b,_0x38ba39){const _0x3014a1=_0x3bdc18;super(),this['_config']=_0x41a829,this['_injector']=_0x1a492b,this[_0x3014a1(0x1f7)]=_0x38ba39;const {..._0x93b49c}=_0x5519cd({},P,this[_0x3014a1(0x1cd)]);this[_0x3014a1(0x1f7)][_0x3014a1(0x202)](X,_0x93b49c);}[_0x3bdc18(0x1c9)](){const _0x42aec4=_0x3bdc18;[[S],[b],[f]][_0x42aec4(0x203)](_0x53cd6f=>{const _0x510648=_0x42aec4;this[_0x510648(0x1c8)]['add'](_0x53cd6f);});}['onReady'](){const _0x54d001=_0x3bdc18;this[_0x54d001(0x1c8)][_0x54d001(0x1ad)](b),this[_0x54d001(0x1c8)][_0x54d001(0x1ad)](f);}};j(C,_0x3bdc18(0x1de),B),j(C,_0x3bdc18(0x1d0),_0x1f859b[_0x3bdc18(0x1df)]),C=de([_0x5662ab(_0x1017cc,_0x387457,_0x28642f),N(0x1,_0x1eb374(_0x5c40b1)),N(0x2,_0x5bebfc)],C);export{C as UniverThreadCommentDataSourcePlugin};
1
+ const _0x4f9de0=_0x355c;(function(_0x43e4ba,_0x7e378e){const _0x1c9af4=_0x355c,_0x9fcc04=_0x43e4ba();while(!![]){try{const _0x30f493=parseInt(_0x1c9af4(0x1d5))/0x1+-parseInt(_0x1c9af4(0x1f1))/0x2*(parseInt(_0x1c9af4(0x1c0))/0x3)+-parseInt(_0x1c9af4(0x1f2))/0x4+parseInt(_0x1c9af4(0x1a3))/0x5+parseInt(_0x1c9af4(0x1b0))/0x6*(parseInt(_0x1c9af4(0x1b6))/0x7)+parseInt(_0x1c9af4(0x1d7))/0x8*(parseInt(_0x1c9af4(0x1f4))/0x9)+-parseInt(_0x1c9af4(0x1af))/0xa;if(_0x30f493===_0x7e378e)break;else _0x9fcc04['push'](_0x9fcc04['shift']());}catch(_0x1f38c5){_0x9fcc04['push'](_0x9fcc04['shift']());}}}(_0x2f17,0x5471b));import{CommentService as _0xb82afd,CollaborationSessionService as _0xba28f6,UniverCollaborationClientPlugin as _0x455ec6}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x1ab329}from'@univerjs-pro/license';import{dayjs as _0x2cb74d,UserManagerService as _0x2fd8fb,Inject as _0x1ac765,Injector as _0x2ab7e2,Disposable as _0x5d9e64,CustomRangeType as _0x48186c,UniverInstanceType as _0x47b162,DependentOn as _0x1d4b60,Plugin as _0x6a9b03,merge as _0x3dc6c2,IConfigService as _0x2bdb0f}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x3382d0}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x2397ca,IThreadCommentDataSourceService as _0x552be6}from'@univerjs/thread-comment';import{bufferTime as _0x2af3f4}from'rxjs';import{HTTPService as _0x5739a4}from'@univerjs/network';const B=_0x4f9de0(0x1fc);var v=(_0x386269=>(_0x386269[_0x386269['OpenOrReOpen']=0x0]=_0x4f9de0(0x1fe),_0x386269[_0x386269['Solved']=0x1]=_0x4f9de0(0x19c),_0x386269[_0x386269[_0x4f9de0(0x1bc)]=-0x1]='UNRECOGNIZED',_0x386269))(v||{}),p=(_0xdb5d54=>(_0xdb5d54[_0xdb5d54[_0x4f9de0(0x1d4)]=0x0]=_0x4f9de0(0x1d4),_0xdb5d54[_0xdb5d54['Add']=0x1]=_0x4f9de0(0x1ad),_0xdb5d54[_0xdb5d54[_0x4f9de0(0x1ab)]=0x2]=_0x4f9de0(0x1ab),_0xdb5d54[_0xdb5d54[_0x4f9de0(0x1db)]=0x3]=_0x4f9de0(0x1db),_0xdb5d54[_0xdb5d54[_0x4f9de0(0x1e7)]=0x4]=_0x4f9de0(0x1e7),_0xdb5d54[_0xdb5d54['Solve']=0x5]=_0x4f9de0(0x1cd),_0xdb5d54[_0xdb5d54['UNRECOGNIZED']=-0x1]=_0x4f9de0(0x1bc),_0xdb5d54))(p||{});const O=_0x368cb8=>_0x2cb74d(new Date(+_0x368cb8))[_0x4f9de0(0x1fd)](_0x4f9de0(0x1fb)),K=async(_0x2ea836,_0x214cc0)=>{const _0x204d94=_0x4f9de0,_0x49470f=_0x2ea836[_0x204d94(0x1b1)](_0x2fd8fb),_0x35a457=_0x2ea836[_0x204d94(0x1b1)](_0x5739a4);_0x214cc0[_0x204d94(0x1ce)](_0x48fbe5=>{const _0x82b926=_0x204d94;_0x49470f[_0x82b926(0x1a5)](_0x48fbe5)&&_0x214cc0['delete'](_0x48fbe5);}),_0x214cc0[_0x204d94(0x1b8)]&&(await _0x35a457[_0x204d94(0x1b1)](_0x204d94(0x1a0),{'params':{'userIDs':[..._0x214cc0]}}))[_0x204d94(0x1d0)][_0x204d94(0x1a7)][_0x204d94(0x1ce)](_0x40b0c0=>{const _0x4c324c=_0x204d94;_0x40b0c0&&_0x49470f[_0x4c324c(0x206)](_0x40b0c0);});};var V=Object[_0x4f9de0(0x1f8)],z=Object[_0x4f9de0(0x1ff)],Q=(_0x3f0ff3,_0x2f0d3d,_0x1a12c0,_0x5e2185)=>{const _0x488fe0=_0x4f9de0;for(var _0x55833b=_0x5e2185>0x1?void 0x0:_0x5e2185?z(_0x2f0d3d,_0x1a12c0):_0x2f0d3d,_0x27a780=_0x3f0ff3[_0x488fe0(0x1b5)]-0x1,_0x14d26e;_0x27a780>=0x0;_0x27a780--)(_0x14d26e=_0x3f0ff3[_0x27a780])&&(_0x55833b=(_0x5e2185?_0x14d26e(_0x2f0d3d,_0x1a12c0,_0x55833b):_0x14d26e(_0x55833b))||_0x55833b);return _0x5e2185&&_0x55833b&&V(_0x2f0d3d,_0x1a12c0,_0x55833b),_0x55833b;},_=(_0x53d301,_0x2ccede)=>(_0x52512e,_0x1105be)=>_0x2ccede(_0x52512e,_0x1105be,_0x53d301);let f=class extends _0x5d9e64{constructor(_0x41cb29,_0x4f806b,_0xe737fa,_0x30a88e){const _0x4639b4=_0x4f9de0;super(),this[_0x4639b4(0x1be)]=_0x41cb29,this['_threadCommentModel']=_0x4f806b,this[_0x4639b4(0x1f5)]=_0xe737fa,this[_0x4639b4(0x1ec)]=_0x30a88e,this[_0x4639b4(0x1cf)](),this[_0x4639b4(0x1d1)]();}[_0x4f9de0(0x1d1)](){const _0x156b64=_0x4f9de0;this[_0x156b64(0x1e0)](this[_0x156b64(0x1c7)][_0x156b64(0x1e2)][_0x156b64(0x1cb)](_0x2af3f4(0x10))[_0x156b64(0x1e3)](_0xc01528=>{const _0x3dccc2=_0x156b64,_0x4a65af=new Set();_0xc01528[_0x3dccc2(0x1ce)](_0x4965a6=>{const _0x3340e6=_0x3dccc2;switch(_0x4965a6[_0x3340e6(0x1ef)]){case'add':{const _0x38c3d0=_0x4965a6[_0x3340e6(0x1b2)][_0x3340e6(0x1c1)];_0x4a65af['add'](_0x38c3d0);break;}}}),K(this[_0x3dccc2(0x1ec)],_0x4a65af);}));}[_0x4f9de0(0x1cf)](){const _0x25ac79=_0x4f9de0;this['disposeWithMe'](this[_0x25ac79(0x1be)][_0x25ac79(0x1e2)]['subscribe'](async _0x263444=>{const _0x291013=_0x25ac79;var _0x3dcc2d,_0x1c100d,_0x4a7207,_0xe1439a;const _0x29954b=(_0x3dcc2d=this[_0x291013(0x1c7)]['getUnit'](_0x263444[_0x291013(0x1d2)])['find'](_0x58cf7c=>_0x58cf7c[_0x291013(0x200)]===_0x263444['threadId']))==null?void 0x0:_0x3dcc2d['root'];if(!_0x29954b)return;const {unitId:_0x2f93e5,subUnitId:_0x242c88}=_0x29954b;switch(_0x263444[_0x291013(0x1c3)]&&this[_0x291013(0x1f5)]['addUser'](_0x263444[_0x291013(0x1c3)]),_0x263444[_0x291013(0x1ef)]){case p[_0x291013(0x1ad)]:break;case p[_0x291013(0x1ab)]:{this[_0x291013(0x1c7)][_0x291013(0x1a4)](_0x2f93e5,_0x242c88,{'unitId':_0x2f93e5,'subUnitId':_0x242c88,'ref':'','id':_0x263444['replyId'],'dT':O(+_0x263444['createTimestamp']),'threadId':_0x263444[_0x291013(0x200)],'personId':(_0x4a7207=(_0x1c100d=_0x263444['user'])==null?void 0x0:_0x1c100d['userID'])!=null?_0x4a7207:_0x263444[_0x291013(0x1ba)],'text':JSON[_0x291013(0x1ed)](_0x263444[_0x291013(0x1e1)]),'parentId':_0x29954b['id']});break;}case p[_0x291013(0x1e7)]:{const _0x4e2a8b=this[_0x291013(0x1c7)][_0x291013(0x1d8)](_0x2f93e5,_0x242c88,_0x263444[_0x291013(0x1fa)]);_0x4e2a8b&&_0x4e2a8b[_0x291013(0x204)]&&this[_0x291013(0x1c7)][_0x291013(0x202)](_0x2f93e5,_0x242c88,_0x263444[_0x291013(0x1fa)]);break;}case p[_0x291013(0x1db)]:{this[_0x291013(0x1c7)][_0x291013(0x1f9)](_0x2f93e5,_0x242c88,{'commentId':_0x263444['replyId'],'text':JSON[_0x291013(0x1ed)](_0x263444[_0x291013(0x1e1)])});break;}case p['Solve']:{const _0x559634=(_0xe1439a=this['_threadCommentModel'][_0x291013(0x1c8)](_0x263444['unitId'])['find'](_0x2780c1=>_0x2780c1['threadId']===_0x263444[_0x291013(0x200)]))==null?void 0x0:_0xe1439a[_0x291013(0x1a8)];_0x559634&&this['_threadCommentModel']['resolveComment'](_0x2f93e5,_0x242c88,_0x559634['id'],_0x263444[_0x291013(0x1a9)]===v[_0x291013(0x19c)]);break;}}}));}};f=Q([_(0x0,_0x1ac765(_0xb82afd)),_(0x1,_0x1ac765(_0x2397ca)),_(0x2,_0x1ac765(_0x2fd8fb)),_(0x3,_0x1ac765(_0x2ab7e2))],f);const X='thread-comment-data-source.config',P={};var k=Object[_0x4f9de0(0x1f8)],ee=Object[_0x4f9de0(0x1ff)],re=(_0x128334,_0x2e9b34,_0x52f0f2,_0x364dfd)=>{const _0x5ccf8d=_0x4f9de0;for(var _0x5a7ce1=_0x364dfd>0x1?void 0x0:_0x364dfd?ee(_0x2e9b34,_0x52f0f2):_0x2e9b34,_0x592ece=_0x128334[_0x5ccf8d(0x1b5)]-0x1,_0x55f392;_0x592ece>=0x0;_0x592ece--)(_0x55f392=_0x128334[_0x592ece])&&(_0x5a7ce1=(_0x364dfd?_0x55f392(_0x2e9b34,_0x52f0f2,_0x5a7ce1):_0x55f392(_0x5a7ce1))||_0x5a7ce1);return _0x364dfd&&_0x5a7ce1&&k(_0x2e9b34,_0x52f0f2,_0x5a7ce1),_0x5a7ce1;},I=(_0x186726,_0x4f4e51)=>(_0x16ada6,_0x2c5bba)=>_0x4f4e51(_0x16ada6,_0x2c5bba,_0x186726);function te(_0x4cc0fa,_0x140233){const _0x4d27a8=_0x4f9de0,_0x4fe7ed=_0x4cc0fa[_0x4d27a8(0x1eb)][0x0];return{..._0x140233,'id':_0x4fe7ed['replyId'],'resolved':_0x4cc0fa['solved']===0x1,'dT':O(_0x4fe7ed[_0x4d27a8(0x1b4)]),'personId':_0x4fe7ed[_0x4d27a8(0x1ba)],'threadId':_0x4fe7ed[_0x4d27a8(0x200)]};}function se(_0x313fd0,_0x1efacf,_0x2ab778){const _0x492431=_0x4f9de0;var _0x93d167,_0x3fa91d;if(((_0x3fa91d=(_0x93d167=_0x313fd0==null?void 0x0:_0x313fd0[_0x492431(0x1eb)])==null?void 0x0:_0x93d167['length'])!=null?_0x3fa91d:0x0)>0x0){const _0x403ad0=(_0x266e13,_0xce0c80)=>({'id':_0x266e13[_0x492431(0x1fa)],'threadId':_0x266e13['threadId'],'dT':O(_0x266e13[_0x492431(0x1b4)]),'personId':_0x266e13[_0x492431(0x1ba)],'resolved':_0x313fd0[_0x492431(0x1a9)]===v[_0x492431(0x19c)],'unitId':_0x1efacf,'subUnitId':_0x2ab778,'text':JSON[_0x492431(0x1ed)](_0x266e13[_0x492431(0x1e1)]),'parentId':_0xce0c80}),_0x422e48=_0x403ad0(_0x313fd0[_0x492431(0x1eb)][0x0]);return{..._0x422e48,'children':_0x313fd0['replies'][_0x492431(0x1bf)](0x1)[_0x492431(0x1a2)](_0x113378=>_0x403ad0(_0x113378,_0x422e48['id']))};}return null;}function _0x355c(_0x2c73e3,_0x46fcb9){const _0x2f17ad=_0x2f17();return _0x355c=function(_0x355c8b,_0xf4ddd9){_0x355c8b=_0x355c8b-0x19c;let _0x53a218=_0x2f17ad[_0x355c8b];return _0x53a218;},_0x355c(_0x2c73e3,_0x46fcb9);}let S=class{constructor(_0x3245a2,_0x1247f3,_0x2471b7,_0x23d030){const _0x57bcd5=_0x4f9de0;this[_0x57bcd5(0x1c6)]=_0x3245a2,this['_userService']=_0x1247f3,this[_0x57bcd5(0x1cc)]=_0x2471b7,this[_0x57bcd5(0x1ec)]=_0x23d030;}async[_0x4f9de0(0x1a4)](_0x7df7a6){const _0x3145de=_0x4f9de0;var _0x561588,_0x3a1b40;const {parentId:_0x20b700,unitId:_0x4e6d8e,text:_0x33e59f,threadId:_0x2fbb2e}=_0x7df7a6,_0x400162=(_0x3a1b40=(_0x561588=_0x33e59f['customRanges'])==null?void 0x0:_0x561588[_0x3145de(0x1c4)](_0x462c32=>_0x462c32['rangeType']===_0x48186c[_0x3145de(0x1ea)])['map'](_0x20c538=>_0x20c538[_0x3145de(0x1ee)]))!=null?_0x3a1b40:[],_0x2627e6=JSON[_0x3145de(0x19d)](_0x33e59f),_0x2729ba=(await this[_0x3145de(0x1cc)][_0x3145de(0x1da)](_0x4e6d8e))['getMemberID']();if(_0x20b700){const _0x5da7ad={'memberId':_0x2729ba,'unitId':_0x4e6d8e,'content':_0x2627e6,'mention':_0x400162,'threadId':_0x2fbb2e},_0x5657b4=(await this[_0x3145de(0x1c6)][_0x3145de(0x1ac)](_0x3145de(0x1c9)+_0x4e6d8e+_0x3145de(0x1e6),{'body':_0x5da7ad}))[_0x3145de(0x1d0)][_0x3145de(0x19e)];return{..._0x7df7a6,'id':_0x5657b4['replyId'],'dT':_0x2cb74d(+_0x5657b4[_0x3145de(0x1b4)])[_0x3145de(0x1fd)](_0x3145de(0x1fb)),'personId':_0x5657b4[_0x3145de(0x1ba)]};}else{const _0x3199bd={'memberId':_0x2729ba,'unitId':_0x4e6d8e,'content':_0x2627e6,'mention':_0x400162},_0x514d18=await this[_0x3145de(0x1c6)][_0x3145de(0x1ac)](_0x3145de(0x1c9)+_0x4e6d8e+_0x3145de(0x1c2),{'body':_0x3199bd});return te(_0x514d18[_0x3145de(0x1d0)][_0x3145de(0x1f7)],_0x7df7a6);}}async[_0x4f9de0(0x1f9)](_0x4a9de4){const _0x27cdc9=_0x4f9de0;var _0x793c47,_0x1bcacd;const {text:_0x3ee8b3,unitId:_0x4d312d}=_0x4a9de4,_0x5701a1=(_0x1bcacd=(_0x793c47=_0x3ee8b3[_0x27cdc9(0x1e9)])==null?void 0x0:_0x793c47['filter'](_0x529961=>_0x529961[_0x27cdc9(0x1d9)]===_0x48186c['COMMENT'])[_0x27cdc9(0x1a2)](_0x1ed55d=>_0x1ed55d[_0x27cdc9(0x1ee)]))!=null?_0x1bcacd:[],_0x1877d2=JSON[_0x27cdc9(0x19d)](_0x3ee8b3),_0x5cdd67=_0x4a9de4[_0x27cdc9(0x200)],_0x287d42=_0x4a9de4['id'],_0x3926f5={'memberId':(await this[_0x27cdc9(0x1cc)][_0x27cdc9(0x1da)](_0x4d312d))[_0x27cdc9(0x1dc)](),'unitId':_0x4d312d,'threadId':_0x5cdd67,'mention':_0x5701a1,'content':_0x1877d2,'replyId':_0x287d42},_0xfec835=await this[_0x27cdc9(0x1c6)]['post']('/universer-api/comment/unit/'+_0x4d312d+_0x27cdc9(0x1ae),{'body':_0x3926f5});return!_0xfec835[_0x27cdc9(0x1d0)][_0x27cdc9(0x1f6)]||_0xfec835['body'][_0x27cdc9(0x1f6)][_0x27cdc9(0x1bd)]===0x1;}async[_0x4f9de0(0x1f0)](_0x2434fe){const _0x3f1e49=_0x4f9de0,{unitId:_0x43764d}=_0x2434fe,_0x30f5e0=_0x2434fe[_0x3f1e49(0x200)],_0x4a75a2={'memberId':this['_userService'][_0x3f1e49(0x1dd)]()[_0x3f1e49(0x1e4)],'unitId':_0x43764d,'threadId':_0x30f5e0,'solved':_0x2434fe[_0x3f1e49(0x1c5)]?v[_0x3f1e49(0x19c)]:v[_0x3f1e49(0x1fe)]},_0x4a9466=await this[_0x3f1e49(0x1c6)][_0x3f1e49(0x1ac)](_0x3f1e49(0x1c9)+_0x43764d+_0x3f1e49(0x1d3),{'body':_0x4a75a2});return!_0x4a9466['body']['error']||_0x4a9466[_0x3f1e49(0x1d0)]['error'][_0x3f1e49(0x1bd)]===0x1;}async[_0x4f9de0(0x202)](_0x56df15,_0x55605d,_0x37b75f,_0xd1385){const _0x9845c9=_0x4f9de0,_0x32eb45={'memberId':(await this['_sessionService'][_0x9845c9(0x1da)](_0x56df15))[_0x9845c9(0x1dc)](),'threadId':_0x37b75f,'replyId':_0xd1385,'unitId':_0x56df15},_0x111b21=await this[_0x9845c9(0x1c6)]['post'](_0x9845c9(0x1c9)+_0x56df15+'/delete',{'body':_0x32eb45});return!_0x111b21[_0x9845c9(0x1d0)][_0x9845c9(0x1f6)]||_0x111b21[_0x9845c9(0x1d0)]['error'][_0x9845c9(0x1bd)]===0x1;}async[_0x4f9de0(0x1f3)](_0x38ac6b,_0x3dba3d,_0x22adbc){const _0x120b93=_0x4f9de0,_0x808edd={'unitId':_0x38ac6b,'threadId':_0x22adbc},_0x12f73e=await this[_0x120b93(0x1c6)][_0x120b93(0x1ac)](_0x120b93(0x1c9)+_0x38ac6b+_0x120b93(0x1bb),{'body':_0x808edd}),_0xe52794=_0x22adbc[_0x120b93(0x1a2)](_0x481528=>se(_0x12f73e[_0x120b93(0x1d0)][_0x120b93(0x1b7)][_0x481528],_0x38ac6b,_0x3dba3d))['filter'](Boolean);return Object[_0x120b93(0x1e5)](_0x12f73e[_0x120b93(0x1d0)][_0x120b93(0x1a7)])[_0x120b93(0x1ce)](_0x38d0c0=>{const _0x5eba11=_0x120b93;this[_0x5eba11(0x1f5)][_0x5eba11(0x206)](_0x38d0c0);}),_0xe52794;}[_0x4f9de0(0x1e8)](_0x14d28a){const _0x767095=_0x4f9de0;return{'id':_0x14d28a['id'],'threadId':_0x14d28a[_0x767095(0x200)],'ref':_0x14d28a['ref']};}};S=re([I(0x0,_0x1ac765(_0x5739a4)),I(0x1,_0x1ac765(_0x2fd8fb)),I(0x2,_0x1ac765(_0xba28f6)),I(0x3,_0x1ac765(_0x2ab7e2))],S);function _0x2f17(){const _0x7ebfad=['updateComment','replyId','YYYY/MM/DD\x20HH:mm','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','format','OpenOrReOpen','getOwnPropertyDescriptor','threadId','onReady','deleteComment','setConfig','parentId','symbol','addUser','Solved','stringify','reply','onStarting','/universer-api/user/list','syncUpdateMutationToColla','map','163505UciroX','addComment','getUser','_configService','users','root','solved','_threadCommentDataSourceService','Reply','post','Add','/edit','1311330RsvKZQ','10974ITJfXz','get','payload','add','createTimestamp','length','2058LZYpCZ','comments','size','_threadCommentDataSource','userId','/list','UNRECOGNIZED','code','_commentService','slice','1179shMuTN','personId','/add','user','filter','resolved','_httpService','_threadCommentModel','getUnit','/universer-api/comment/unit/','_config','pipe','_sessionService','Solve','forEach','_init','body','_initUserSync','unitId','/solved','Unknown','581120aVTGMl','pluginName','2275600oIEZQL','getComment','rangeType','requireSession','Edit','getMemberID','getCurrentUser','UNIVER_UNKNOWN','_initDataSource','disposeWithMe','content','commentUpdate$','subscribe','userID','values','/reply','Delete','saveCommentToSnapshot','customRanges','COMMENT','replies','_injector','parse','rangeId','type','resolveComment','2558jGCEDN','1825336JSIjWy','listComments','9oqvkgX','_userService','error','comment','defineProperty'];_0x2f17=function(){return _0x7ebfad;};return _0x2f17();}var oe=Object[_0x4f9de0(0x1f8)],ne=Object['getOwnPropertyDescriptor'],ie=(_0x5cc536,_0x2b52ca,_0x5b032e,_0x55923e)=>{const _0xcef42a=_0x4f9de0;for(var _0x5c5239=_0x55923e>0x1?void 0x0:_0x55923e?ne(_0x2b52ca,_0x5b032e):_0x2b52ca,_0x5116d5=_0x5cc536[_0xcef42a(0x1b5)]-0x1,_0x3df08c;_0x5116d5>=0x0;_0x5116d5--)(_0x3df08c=_0x5cc536[_0x5116d5])&&(_0x5c5239=(_0x55923e?_0x3df08c(_0x2b52ca,_0x5b032e,_0x5c5239):_0x3df08c(_0x5c5239))||_0x5c5239);return _0x55923e&&_0x5c5239&&oe(_0x2b52ca,_0x5b032e,_0x5c5239),_0x5c5239;},M=(_0x2a2d83,_0x34c36c)=>(_0x3f542b,_0x4873c3)=>_0x34c36c(_0x3f542b,_0x4873c3,_0x2a2d83);let b=class extends _0x5d9e64{constructor(_0x4081c7,_0x4e3f23){const _0x52c540=_0x4f9de0;super(),this['_threadCommentDataSourceService']=_0x4081c7,this[_0x52c540(0x1b9)]=_0x4e3f23,this[_0x52c540(0x1df)]();}[_0x4f9de0(0x1df)](){const _0x1518fa=_0x4f9de0;this[_0x1518fa(0x1aa)]['dataSource']=this['_threadCommentDataSource'],this[_0x1518fa(0x1aa)][_0x1518fa(0x1a1)]=!0x1;}};b=ie([M(0x0,_0x552be6),M(0x1,_0x1ac765(S))],b);var $=Object[_0x4f9de0(0x1f8)],ce=Object[_0x4f9de0(0x1ff)],ae=(_0x2aa640,_0x29217a,_0x1124ea)=>_0x29217a in _0x2aa640?$(_0x2aa640,_0x29217a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1124ea}):_0x2aa640[_0x29217a]=_0x1124ea,de=(_0x1a9972,_0x6561dc,_0xb32f65,_0x20eaa6)=>{const _0x3df5c0=_0x4f9de0;for(var _0x1c56ef=_0x20eaa6>0x1?void 0x0:_0x20eaa6?ce(_0x6561dc,_0xb32f65):_0x6561dc,_0x318681=_0x1a9972[_0x3df5c0(0x1b5)]-0x1,_0x199877;_0x318681>=0x0;_0x318681--)(_0x199877=_0x1a9972[_0x318681])&&(_0x1c56ef=(_0x20eaa6?_0x199877(_0x6561dc,_0xb32f65,_0x1c56ef):_0x199877(_0x1c56ef))||_0x1c56ef);return _0x20eaa6&&_0x1c56ef&&$(_0x6561dc,_0xb32f65,_0x1c56ef),_0x1c56ef;},N=(_0x48db88,_0x436262)=>(_0x310511,_0x539716)=>_0x436262(_0x310511,_0x539716,_0x48db88),j=(_0x4dd3b7,_0x3b820c,_0x198b5f)=>ae(_0x4dd3b7,typeof _0x3b820c!=_0x4f9de0(0x205)?_0x3b820c+'':_0x3b820c,_0x198b5f);let C=class extends _0x6a9b03{constructor(_0x4f6877=P,_0x26c71d,_0x1b6f54){const _0x8f437=_0x4f9de0;super(),this[_0x8f437(0x1ca)]=_0x4f6877,this['_injector']=_0x26c71d,this[_0x8f437(0x1a6)]=_0x1b6f54;const {..._0x296cf3}=_0x3dc6c2({},P,this[_0x8f437(0x1ca)]);this[_0x8f437(0x1a6)][_0x8f437(0x203)](X,_0x296cf3);}[_0x4f9de0(0x19f)](){const _0x4f2bf4=_0x4f9de0;[[S],[b],[f]][_0x4f2bf4(0x1ce)](_0x3e6dbc=>{const _0x522b9c=_0x4f2bf4;this['_injector'][_0x522b9c(0x1b3)](_0x3e6dbc);});}[_0x4f9de0(0x201)](){const _0x589cb4=_0x4f9de0;this[_0x589cb4(0x1ec)][_0x589cb4(0x1b1)](b),this[_0x589cb4(0x1ec)][_0x589cb4(0x1b1)](f);}};j(C,_0x4f9de0(0x1d6),B),j(C,_0x4f9de0(0x1ef),_0x47b162[_0x4f9de0(0x1de)]),C=de([_0x1d4b60(_0x3382d0,_0x455ec6,_0x1ab329),N(0x1,_0x1ac765(_0x2ab7e2)),N(0x2,_0x2bdb0f)],C);export{C as UniverThreadCommentDataSourcePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5af292,_0x180766){const _0x2fef4b=_0x4459,_0x2439c2=_0x5af292();while(!![]){try{const _0x3ad8a7=-parseInt(_0x2fef4b(0x1cc))/0x1*(-parseInt(_0x2fef4b(0x237))/0x2)+parseInt(_0x2fef4b(0x1f3))/0x3+parseInt(_0x2fef4b(0x1c6))/0x4*(-parseInt(_0x2fef4b(0x236))/0x5)+-parseInt(_0x2fef4b(0x1ce))/0x6+-parseInt(_0x2fef4b(0x1f9))/0x7+parseInt(_0x2fef4b(0x1c8))/0x8+parseInt(_0x2fef4b(0x200))/0x9*(-parseInt(_0x2fef4b(0x1d0))/0xa);if(_0x3ad8a7===_0x180766)break;else _0x2439c2['push'](_0x2439c2['shift']());}catch(_0x5ef34b){_0x2439c2['push'](_0x2439c2['shift']());}}}(_0x2b13,0x4c815),function(_0xc7f385,_0x5948eb){const _0x3bc6a3=_0x4459;typeof exports==_0x3bc6a3(0x226)&&typeof module<'u'?_0x5948eb(exports,require(_0x3bc6a3(0x202)),require(_0x3bc6a3(0x1f8)),require('@univerjs/core'),require(_0x3bc6a3(0x1e1)),require('@univerjs/thread-comment'),require(_0x3bc6a3(0x1d1)),require(_0x3bc6a3(0x232))):typeof define=='function'&&define[_0x3bc6a3(0x1c0)]?define([_0x3bc6a3(0x1cb),_0x3bc6a3(0x202),_0x3bc6a3(0x1f8),_0x3bc6a3(0x207),_0x3bc6a3(0x1e1),_0x3bc6a3(0x1b6),_0x3bc6a3(0x1d1),_0x3bc6a3(0x232)],_0x5948eb):(_0xc7f385=typeof globalThis<'u'?globalThis:_0xc7f385||self,_0x5948eb(_0xc7f385[_0x3bc6a3(0x20e)]={},_0xc7f385[_0x3bc6a3(0x1be)],_0xc7f385[_0x3bc6a3(0x1d6)],_0xc7f385[_0x3bc6a3(0x1df)],_0xc7f385[_0x3bc6a3(0x1bc)],_0xc7f385[_0x3bc6a3(0x1b4)],_0xc7f385['rxjs'],_0xc7f385[_0x3bc6a3(0x233)]));}(this,function(_0x3af5b4,_0x59505a,_0x4d9111,_0x507fcc,_0xdbbb36,_0x116f1f,_0x2ca91c,_0x587fb4){'use strict';const _0x4886a4=_0x4459;const _0x1d8488=_0x4886a4(0x1f6);var _0xfba5d=(_0x1d374c=>(_0x1d374c[_0x1d374c[_0x4886a4(0x1c4)]=0x0]=_0x4886a4(0x1c4),_0x1d374c[_0x1d374c[_0x4886a4(0x1e0)]=0x1]=_0x4886a4(0x1e0),_0x1d374c[_0x1d374c[_0x4886a4(0x20d)]=-0x1]=_0x4886a4(0x20d),_0x1d374c))(_0xfba5d||{}),_0x344264=(_0x30901d=>(_0x30901d[_0x30901d['Unknown']=0x0]=_0x4886a4(0x1f5),_0x30901d[_0x30901d[_0x4886a4(0x1ec)]=0x1]=_0x4886a4(0x1ec),_0x30901d[_0x30901d[_0x4886a4(0x1fe)]=0x2]=_0x4886a4(0x1fe),_0x30901d[_0x30901d['Edit']=0x3]=_0x4886a4(0x1c2),_0x30901d[_0x30901d['Delete']=0x4]=_0x4886a4(0x206),_0x30901d[_0x30901d['Solve']=0x5]=_0x4886a4(0x1ed),_0x30901d[_0x30901d['UNRECOGNIZED']=-0x1]=_0x4886a4(0x20d),_0x30901d))(_0x344264||{});const _0x1cbe91=_0x240f07=>_0x507fcc['dayjs'](new Date(+_0x240f07))[_0x4886a4(0x21a)]('YYYY/MM/DD\x20HH:mm'),_0x33746b=async(_0x490f69,_0x1d13da)=>{const _0x4b9c81=_0x4886a4,_0x4b804d=_0x490f69[_0x4b9c81(0x20a)](_0x507fcc[_0x4b9c81(0x1b9)]),_0x190964=_0x490f69[_0x4b9c81(0x20a)](_0x587fb4['HTTPService']);_0x1d13da['forEach'](_0x35026e=>{const _0x429b67=_0x4b9c81;_0x4b804d[_0x429b67(0x21b)](_0x35026e)&&_0x1d13da[_0x429b67(0x1d8)](_0x35026e);}),_0x1d13da[_0x4b9c81(0x214)]&&(await _0x190964['get']('/universer-api/user/list',{'params':{'userIDs':[..._0x1d13da]}}))['body'][_0x4b9c81(0x1b3)][_0x4b9c81(0x1dd)](_0x3bd8e4=>{_0x3bd8e4&&_0x4b804d['addUser'](_0x3bd8e4);});};var _0x3d8961=Object['defineProperty'],_0x257963=Object[_0x4886a4(0x20c)],_0x996be9=(_0x168f29,_0x210174,_0x80132a,_0x597dae)=>{const _0xdee704=_0x4886a4;for(var _0x3b7dd6=_0x597dae>0x1?void 0x0:_0x597dae?_0x257963(_0x210174,_0x80132a):_0x210174,_0x40cf17=_0x168f29[_0xdee704(0x234)]-0x1,_0xa112be;_0x40cf17>=0x0;_0x40cf17--)(_0xa112be=_0x168f29[_0x40cf17])&&(_0x3b7dd6=(_0x597dae?_0xa112be(_0x210174,_0x80132a,_0x3b7dd6):_0xa112be(_0x3b7dd6))||_0x3b7dd6);return _0x597dae&&_0x3b7dd6&&_0x3d8961(_0x210174,_0x80132a,_0x3b7dd6),_0x3b7dd6;},_0x4cab37=(_0x2b0937,_0x50ae5f)=>(_0xd04513,_0x37bc0b)=>_0x50ae5f(_0xd04513,_0x37bc0b,_0x2b0937);let _0x44847b=class extends _0x507fcc[_0x4886a4(0x1cd)]{constructor(_0x4c3b2c,_0x3192a6,_0x49ef53,_0x236689){const _0x449fea=_0x4886a4;super(),this[_0x449fea(0x1f7)]=_0x4c3b2c,this[_0x449fea(0x1cf)]=_0x3192a6,this[_0x449fea(0x220)]=_0x49ef53,this[_0x449fea(0x22a)]=_0x236689,this['_init'](),this[_0x449fea(0x1f0)]();}[_0x4886a4(0x1f0)](){const _0x5976ef=_0x4886a4;this['disposeWithMe'](this[_0x5976ef(0x1cf)]['commentUpdate$']['pipe'](_0x2ca91c[_0x5976ef(0x1fc)](0x10))[_0x5976ef(0x1b7)](_0xc6d8e6=>{const _0x277a02=new Set();_0xc6d8e6['forEach'](_0x1fff71=>{const _0xdeb100=_0x4459;switch(_0x1fff71['type']){case _0xdeb100(0x204):{const _0x4c379d=_0x1fff71['payload'][_0xdeb100(0x22d)];_0x277a02[_0xdeb100(0x204)](_0x4c379d);break;}}}),_0x33746b(this['_injector'],_0x277a02);}));}[_0x4886a4(0x1d7)](){const _0x16f04b=_0x4886a4;this['disposeWithMe'](this['_commentService'][_0x16f04b(0x21d)][_0x16f04b(0x1b7)](async _0x5740c=>{const _0x1f51bd=_0x16f04b;var _0x128149,_0x298226,_0x4c01c8,_0x2678f4;const _0x2e342a=(_0x128149=this[_0x1f51bd(0x1cf)][_0x1f51bd(0x1c5)](_0x5740c[_0x1f51bd(0x1de)])['find'](_0x2f7a9f=>_0x2f7a9f[_0x1f51bd(0x1bb)]===_0x5740c[_0x1f51bd(0x1bb)]))==null?void 0x0:_0x128149[_0x1f51bd(0x222)];if(!_0x2e342a)return;const {unitId:_0x184ad9,subUnitId:_0x2c50b4}=_0x2e342a;switch(_0x5740c['user']&&this[_0x1f51bd(0x220)][_0x1f51bd(0x1c9)](_0x5740c[_0x1f51bd(0x1bd)]),_0x5740c[_0x1f51bd(0x215)]){case _0x344264[_0x1f51bd(0x1ec)]:break;case _0x344264[_0x1f51bd(0x1fe)]:{this[_0x1f51bd(0x1cf)]['addComment'](_0x184ad9,_0x2c50b4,{'unitId':_0x184ad9,'subUnitId':_0x2c50b4,'ref':'','id':_0x5740c[_0x1f51bd(0x1f4)],'dT':_0x1cbe91(+_0x5740c[_0x1f51bd(0x1d4)]),'threadId':_0x5740c[_0x1f51bd(0x1bb)],'personId':(_0x4c01c8=(_0x298226=_0x5740c[_0x1f51bd(0x1bd)])==null?void 0x0:_0x298226[_0x1f51bd(0x217)])!=null?_0x4c01c8:_0x5740c[_0x1f51bd(0x22c)],'text':JSON[_0x1f51bd(0x1e8)](_0x5740c[_0x1f51bd(0x216)]),'parentId':_0x2e342a['id']});break;}case _0x344264[_0x1f51bd(0x206)]:{const _0x3822ec=this[_0x1f51bd(0x1cf)][_0x1f51bd(0x1e4)](_0x184ad9,_0x2c50b4,_0x5740c['replyId']);_0x3822ec&&_0x3822ec['parentId']&&this[_0x1f51bd(0x1cf)][_0x1f51bd(0x1e6)](_0x184ad9,_0x2c50b4,_0x5740c['replyId']);break;}case _0x344264[_0x1f51bd(0x1c2)]:{this['_threadCommentModel'][_0x1f51bd(0x1f1)](_0x184ad9,_0x2c50b4,{'commentId':_0x5740c[_0x1f51bd(0x1f4)],'text':JSON[_0x1f51bd(0x1e8)](_0x5740c[_0x1f51bd(0x216)])});break;}case _0x344264[_0x1f51bd(0x1ed)]:{const _0x4a10ed=(_0x2678f4=this[_0x1f51bd(0x1cf)][_0x1f51bd(0x1c5)](_0x5740c['unitId'])['find'](_0x363b2d=>_0x363b2d[_0x1f51bd(0x1bb)]===_0x5740c[_0x1f51bd(0x1bb)]))==null?void 0x0:_0x2678f4[_0x1f51bd(0x222)];_0x4a10ed&&this[_0x1f51bd(0x1cf)][_0x1f51bd(0x208)](_0x184ad9,_0x2c50b4,_0x4a10ed['id'],_0x5740c[_0x1f51bd(0x1dc)]===_0xfba5d[_0x1f51bd(0x1e0)]);break;}}}));}};_0x44847b=_0x996be9([_0x4cab37(0x0,_0x507fcc['Inject'](_0x59505a[_0x4886a4(0x1da)])),_0x4cab37(0x1,_0x507fcc[_0x4886a4(0x1d3)](_0x116f1f['ThreadCommentModel'])),_0x4cab37(0x2,_0x507fcc['Inject'](_0x507fcc[_0x4886a4(0x1b9)])),_0x4cab37(0x3,_0x507fcc[_0x4886a4(0x1d3)](_0x507fcc[_0x4886a4(0x213)]))],_0x44847b);const _0x3d5763=_0x4886a4(0x22b),_0x206a62={};var _0x3d0664=Object['defineProperty'],_0x1083a8=Object[_0x4886a4(0x20c)],_0x2655cd=(_0x396ea6,_0x35a5b4,_0x131130,_0x8e3041)=>{const _0x18ed75=_0x4886a4;for(var _0x5d6a8c=_0x8e3041>0x1?void 0x0:_0x8e3041?_0x1083a8(_0x35a5b4,_0x131130):_0x35a5b4,_0x196525=_0x396ea6[_0x18ed75(0x234)]-0x1,_0x40268c;_0x196525>=0x0;_0x196525--)(_0x40268c=_0x396ea6[_0x196525])&&(_0x5d6a8c=(_0x8e3041?_0x40268c(_0x35a5b4,_0x131130,_0x5d6a8c):_0x40268c(_0x5d6a8c))||_0x5d6a8c);return _0x8e3041&&_0x5d6a8c&&_0x3d0664(_0x35a5b4,_0x131130,_0x5d6a8c),_0x5d6a8c;},_0x4daff7=(_0x2a7ad8,_0x2a7565)=>(_0x517130,_0x29102c)=>_0x2a7565(_0x517130,_0x29102c,_0x2a7ad8);function _0x48ff43(_0x17414d,_0x592f08){const _0x221584=_0x4886a4,_0x31c4c0=_0x17414d['replies'][0x0];return{..._0x592f08,'id':_0x31c4c0[_0x221584(0x1f4)],'resolved':_0x17414d[_0x221584(0x1dc)]===0x1,'dT':_0x1cbe91(_0x31c4c0[_0x221584(0x1d4)]),'personId':_0x31c4c0[_0x221584(0x22c)],'threadId':_0x31c4c0[_0x221584(0x1bb)]};}function _0x490eca(_0x127652,_0x28239f,_0x3e8f09){const _0xc030a3=_0x4886a4;var _0x4cdb72,_0x480eb5;if(((_0x480eb5=(_0x4cdb72=_0x127652==null?void 0x0:_0x127652['replies'])==null?void 0x0:_0x4cdb72[_0xc030a3(0x234)])!=null?_0x480eb5:0x0)>0x0){const _0xa9d2d8=(_0x4f3fbc,_0x2cee6c)=>({'id':_0x4f3fbc['replyId'],'threadId':_0x4f3fbc[_0xc030a3(0x1bb)],'dT':_0x1cbe91(_0x4f3fbc[_0xc030a3(0x1d4)]),'personId':_0x4f3fbc[_0xc030a3(0x22c)],'resolved':_0x127652[_0xc030a3(0x1dc)]===_0xfba5d[_0xc030a3(0x1e0)],'unitId':_0x28239f,'subUnitId':_0x3e8f09,'text':JSON[_0xc030a3(0x1e8)](_0x4f3fbc[_0xc030a3(0x216)]),'parentId':_0x2cee6c}),_0x2ab8f1=_0xa9d2d8(_0x127652[_0xc030a3(0x212)][0x0]);return{..._0x2ab8f1,'children':_0x127652[_0xc030a3(0x212)][_0xc030a3(0x1b5)](0x1)[_0xc030a3(0x1fa)](_0xa3c602=>_0xa9d2d8(_0xa3c602,_0x2ab8f1['id']))};}return null;}let _0x392dcf=class{constructor(_0x915f48,_0x400c53,_0x7e7de6,_0x1a8a44){const _0x3e43fe=_0x4886a4;this['_httpService']=_0x915f48,this[_0x3e43fe(0x220)]=_0x400c53,this['_sessionService']=_0x7e7de6,this[_0x3e43fe(0x22a)]=_0x1a8a44;}async[_0x4886a4(0x205)](_0x4d2c64){const _0x410474=_0x4886a4;var _0x3600c1,_0x140a64;const {parentId:_0x33625c,unitId:_0x27a5be,text:_0x4eea5e,threadId:_0x550da8}=_0x4d2c64,_0x395e91=(_0x140a64=(_0x3600c1=_0x4eea5e['customRanges'])==null?void 0x0:_0x3600c1[_0x410474(0x224)](_0x144cf2=>_0x144cf2[_0x410474(0x231)]===_0x507fcc[_0x410474(0x21c)]['COMMENT'])[_0x410474(0x1fa)](_0x31d99a=>_0x31d99a[_0x410474(0x227)]))!=null?_0x140a64:[],_0x59aa06=JSON['stringify'](_0x4eea5e),_0x4ef261=(await this[_0x410474(0x1ca)][_0x410474(0x1ee)](_0x27a5be))[_0x410474(0x1c7)]();if(_0x33625c){const _0x2ac4a2={'memberId':_0x4ef261,'unitId':_0x27a5be,'content':_0x59aa06,'mention':_0x395e91,'threadId':_0x550da8},_0x3071ae=(await this[_0x410474(0x1db)][_0x410474(0x1c3)](_0x410474(0x219)+_0x27a5be+_0x410474(0x1f2),{'body':_0x2ac4a2}))['body'][_0x410474(0x229)];return{..._0x4d2c64,'id':_0x3071ae[_0x410474(0x1f4)],'dT':_0x507fcc[_0x410474(0x1fd)](+_0x3071ae[_0x410474(0x1d4)])['format'](_0x410474(0x210)),'personId':_0x3071ae['userId']};}else{const _0x4bbe58={'memberId':_0x4ef261,'unitId':_0x27a5be,'content':_0x59aa06,'mention':_0x395e91},_0x4c2534=await this[_0x410474(0x1db)][_0x410474(0x1c3)](_0x410474(0x219)+_0x27a5be+_0x410474(0x1e5),{'body':_0x4bbe58});return _0x48ff43(_0x4c2534[_0x410474(0x209)][_0x410474(0x1c1)],_0x4d2c64);}}async[_0x4886a4(0x1f1)](_0x542b6c){const _0xbd5cea=_0x4886a4;var _0x10ae95,_0x260614;const {text:_0x200d23,unitId:_0x110c1f}=_0x542b6c,_0x45ea7a=(_0x260614=(_0x10ae95=_0x200d23[_0xbd5cea(0x1e7)])==null?void 0x0:_0x10ae95[_0xbd5cea(0x224)](_0x2d0958=>_0x2d0958[_0xbd5cea(0x231)]===_0x507fcc['CustomRangeType']['COMMENT'])[_0xbd5cea(0x1fa)](_0x4128dd=>_0x4128dd['rangeId']))!=null?_0x260614:[],_0x4b54e0=JSON['stringify'](_0x200d23),_0x123b03=_0x542b6c[_0xbd5cea(0x1bb)],_0x42e7d6=_0x542b6c['id'],_0x122643={'memberId':(await this[_0xbd5cea(0x1ca)][_0xbd5cea(0x1ee)](_0x110c1f))[_0xbd5cea(0x1c7)](),'unitId':_0x110c1f,'threadId':_0x123b03,'mention':_0x45ea7a,'content':_0x4b54e0,'replyId':_0x42e7d6},_0x5ebdf9=await this[_0xbd5cea(0x1db)][_0xbd5cea(0x1c3)]('/universer-api/comment/unit/'+_0x110c1f+_0xbd5cea(0x1ef),{'body':_0x122643});return!_0x5ebdf9[_0xbd5cea(0x209)][_0xbd5cea(0x201)]||_0x5ebdf9[_0xbd5cea(0x209)][_0xbd5cea(0x201)][_0xbd5cea(0x211)]===0x1;}async[_0x4886a4(0x208)](_0x16cc89){const _0x2beabd=_0x4886a4,{unitId:_0x408f90}=_0x16cc89,_0x2e2537=_0x16cc89[_0x2beabd(0x1bb)],_0x3fe6bb={'memberId':this[_0x2beabd(0x220)]['getCurrentUser']()[_0x2beabd(0x217)],'unitId':_0x408f90,'threadId':_0x2e2537,'solved':_0x16cc89['resolved']?_0xfba5d[_0x2beabd(0x1e0)]:_0xfba5d['OpenOrReOpen']},_0x1e5e7a=await this[_0x2beabd(0x1db)][_0x2beabd(0x1c3)](_0x2beabd(0x219)+_0x408f90+_0x2beabd(0x1fb),{'body':_0x3fe6bb});return!_0x1e5e7a[_0x2beabd(0x209)][_0x2beabd(0x201)]||_0x1e5e7a['body'][_0x2beabd(0x201)][_0x2beabd(0x211)]===0x1;}async['deleteComment'](_0xdcfb0c,_0x1abe5a,_0x10bb3d,_0x3e9a33){const _0x330aca=_0x4886a4,_0x326ca5={'memberId':(await this['_sessionService'][_0x330aca(0x1ee)](_0xdcfb0c))[_0x330aca(0x1c7)](),'threadId':_0x10bb3d,'replyId':_0x3e9a33,'unitId':_0xdcfb0c},_0xbe316e=await this[_0x330aca(0x1db)][_0x330aca(0x1c3)](_0x330aca(0x219)+_0xdcfb0c+'/delete',{'body':_0x326ca5});return!_0xbe316e['body'][_0x330aca(0x201)]||_0xbe316e[_0x330aca(0x209)]['error'][_0x330aca(0x211)]===0x1;}async[_0x4886a4(0x1e3)](_0x5bf8f3,_0x407f1d,_0x458648){const _0x5ca634=_0x4886a4,_0x4d205e={'unitId':_0x5bf8f3,'threadId':_0x458648},_0x1ac567=await this[_0x5ca634(0x1db)][_0x5ca634(0x1c3)](_0x5ca634(0x219)+_0x5bf8f3+'/list',{'body':_0x4d205e}),_0x451bf2=_0x458648[_0x5ca634(0x1fa)](_0xee7467=>_0x490eca(_0x1ac567[_0x5ca634(0x209)][_0x5ca634(0x1d9)][_0xee7467],_0x5bf8f3,_0x407f1d))[_0x5ca634(0x224)](Boolean);return Object['values'](_0x1ac567[_0x5ca634(0x209)]['users'])[_0x5ca634(0x1dd)](_0x3322ce=>{const _0x557c2f=_0x5ca634;this[_0x557c2f(0x220)]['addUser'](_0x3322ce);}),_0x451bf2;}[_0x4886a4(0x20b)](_0x15d2d4){const _0x22ccb0=_0x4886a4;return{'id':_0x15d2d4['id'],'threadId':_0x15d2d4[_0x22ccb0(0x1bb)],'ref':_0x15d2d4[_0x22ccb0(0x1eb)]};}};_0x392dcf=_0x2655cd([_0x4daff7(0x0,_0x507fcc[_0x4886a4(0x1d3)](_0x587fb4[_0x4886a4(0x1d5)])),_0x4daff7(0x1,_0x507fcc['Inject'](_0x507fcc[_0x4886a4(0x1b9)])),_0x4daff7(0x2,_0x507fcc[_0x4886a4(0x1d3)](_0x59505a[_0x4886a4(0x235)])),_0x4daff7(0x3,_0x507fcc['Inject'](_0x507fcc[_0x4886a4(0x213)]))],_0x392dcf);var _0x2ff54a=Object[_0x4886a4(0x225)],_0x50ecdc=Object[_0x4886a4(0x20c)],_0x1769ff=(_0x1cf35c,_0x4a1102,_0x169ef8,_0x5a1cf4)=>{for(var _0x2da33f=_0x5a1cf4>0x1?void 0x0:_0x5a1cf4?_0x50ecdc(_0x4a1102,_0x169ef8):_0x4a1102,_0x2cfe85=_0x1cf35c['length']-0x1,_0x28ca7d;_0x2cfe85>=0x0;_0x2cfe85--)(_0x28ca7d=_0x1cf35c[_0x2cfe85])&&(_0x2da33f=(_0x5a1cf4?_0x28ca7d(_0x4a1102,_0x169ef8,_0x2da33f):_0x28ca7d(_0x2da33f))||_0x2da33f);return _0x5a1cf4&&_0x2da33f&&_0x2ff54a(_0x4a1102,_0x169ef8,_0x2da33f),_0x2da33f;},_0x88e979=(_0x34e344,_0x35b57f)=>(_0x5c462a,_0x2d90ee)=>_0x35b57f(_0x5c462a,_0x2d90ee,_0x34e344);let _0x378c33=class extends _0x507fcc[_0x4886a4(0x1cd)]{constructor(_0xbe7dba,_0xf22831){const _0x2e94aa=_0x4886a4;super(),this[_0x2e94aa(0x1ff)]=_0xbe7dba,this[_0x2e94aa(0x1b8)]=_0xf22831,this['_initDataSource']();}['_initDataSource'](){const _0x2062db=_0x4886a4;this[_0x2062db(0x1ff)][_0x2062db(0x218)]=this[_0x2062db(0x1b8)],this['_threadCommentDataSourceService'][_0x2062db(0x21f)]=!0x1;}};_0x378c33=_0x1769ff([_0x88e979(0x0,_0x116f1f['IThreadCommentDataSourceService']),_0x88e979(0x1,_0x507fcc[_0x4886a4(0x1d3)](_0x392dcf))],_0x378c33);var _0x51b597=Object['defineProperty'],_0x97d188=Object[_0x4886a4(0x20c)],_0x16aff9=(_0x55f1ae,_0x291b2c,_0x5e17dc)=>_0x291b2c in _0x55f1ae?_0x51b597(_0x55f1ae,_0x291b2c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e17dc}):_0x55f1ae[_0x291b2c]=_0x5e17dc,_0x1968de=(_0x40da0e,_0x133f8a,_0xce4fcc,_0x55101a)=>{const _0x4ab540=_0x4886a4;for(var _0xd8e1a0=_0x55101a>0x1?void 0x0:_0x55101a?_0x97d188(_0x133f8a,_0xce4fcc):_0x133f8a,_0x3bc3ed=_0x40da0e[_0x4ab540(0x234)]-0x1,_0x3c469b;_0x3bc3ed>=0x0;_0x3bc3ed--)(_0x3c469b=_0x40da0e[_0x3bc3ed])&&(_0xd8e1a0=(_0x55101a?_0x3c469b(_0x133f8a,_0xce4fcc,_0xd8e1a0):_0x3c469b(_0xd8e1a0))||_0xd8e1a0);return _0x55101a&&_0xd8e1a0&&_0x51b597(_0x133f8a,_0xce4fcc,_0xd8e1a0),_0xd8e1a0;},_0x1fd84e=(_0x3153fb,_0x57134e)=>(_0x5aff15,_0x2e9574)=>_0x57134e(_0x5aff15,_0x2e9574,_0x3153fb),_0x327633=(_0x41c2cb,_0x3322ee,_0x1c1b31)=>_0x16aff9(_0x41c2cb,typeof _0x3322ee!=_0x4886a4(0x1e2)?_0x3322ee+'':_0x3322ee,_0x1c1b31);_0x3af5b4[_0x4886a4(0x203)]=class extends _0x507fcc[_0x4886a4(0x21e)]{constructor(_0x382e6a=_0x206a62,_0x45c143,_0x1afd28){const _0x207ce1=_0x4886a4;super(),this[_0x207ce1(0x230)]=_0x382e6a,this[_0x207ce1(0x22a)]=_0x45c143,this['_configService']=_0x1afd28;const {..._0x5c22cf}=_0x507fcc['merge']({},_0x206a62,this[_0x207ce1(0x230)]);this[_0x207ce1(0x228)][_0x207ce1(0x223)](_0x3d5763,_0x5c22cf);}[_0x4886a4(0x1e9)](){[[_0x392dcf],[_0x378c33],[_0x44847b]]['forEach'](_0x3c8f6c=>{const _0x94a7e7=_0x4459;this[_0x94a7e7(0x22a)]['add'](_0x3c8f6c);});}[_0x4886a4(0x22f)](){const _0x603991=_0x4886a4;this['_injector'][_0x603991(0x20a)](_0x378c33),this[_0x603991(0x22a)][_0x603991(0x20a)](_0x44847b);}},_0x327633(_0x3af5b4[_0x4886a4(0x203)],_0x4886a4(0x20f),_0x1d8488),_0x327633(_0x3af5b4['UniverThreadCommentDataSourcePlugin'],'type',_0x507fcc[_0x4886a4(0x1bf)][_0x4886a4(0x22e)]),_0x3af5b4[_0x4886a4(0x203)]=_0x1968de([_0x507fcc['DependentOn'](_0xdbbb36[_0x4886a4(0x1ea)],_0x59505a[_0x4886a4(0x221)],_0x4d9111[_0x4886a4(0x1d2)]),_0x1fd84e(0x1,_0x507fcc[_0x4886a4(0x1d3)](_0x507fcc[_0x4886a4(0x213)])),_0x1fd84e(0x2,_0x507fcc['IConfigService'])],_0x3af5b4[_0x4886a4(0x203)]),Object[_0x4886a4(0x225)](_0x3af5b4,Symbol[_0x4886a4(0x1ba)],{'value':'Module'});}));function _0x4459(_0x254088,_0x494435){const _0x2b134c=_0x2b13();return _0x4459=function(_0x445979,_0x5082a7){_0x445979=_0x445979-0x1b3;let _0x33aee0=_0x2b134c[_0x445979];return _0x33aee0;},_0x4459(_0x254088,_0x494435);}function _0x2b13(){const _0x3e1cc9=['solved','forEach','unitId','UniverCore','Solved','@univerjs/thread-comment-ui','symbol','listComments','getComment','/add','deleteComment','customRanges','parse','onStarting','UniverThreadCommentUIPlugin','ref','Add','Solve','requireSession','/edit','_initUserSync','updateComment','/reply','1219995QSMteA','replyId','Unknown','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','_commentService','@univerjs-pro/license','481432YOLhPU','map','/solved','bufferTime','dayjs','Reply','_threadCommentDataSourceService','44721BFRTAQ','error','@univerjs-pro/collaboration-client','UniverThreadCommentDataSourcePlugin','add','addComment','Delete','@univerjs/core','resolveComment','body','get','saveCommentToSnapshot','getOwnPropertyDescriptor','UNRECOGNIZED','UniverProThreadCommentDatasource','pluginName','YYYY/MM/DD\x20HH:mm','code','replies','Injector','size','type','content','userID','dataSource','/universer-api/comment/unit/','format','getUser','CustomRangeType','commentUpdate$','Plugin','syncUpdateMutationToColla','_userService','UniverCollaborationClientPlugin','root','setConfig','filter','defineProperty','object','rangeId','_configService','reply','_injector','thread-comment-data-source.config','userId','personId','UNIVER_UNKNOWN','onReady','_config','rangeType','@univerjs/network','UniverNetwork','length','CollaborationSessionService','4295fRQezq','2CNagJf','users','UniverThreadComment','slice','@univerjs/thread-comment','subscribe','_threadCommentDataSource','UserManagerService','toStringTag','threadId','UniverThreadCommentUi','user','UniverProCollaborationClient','UniverInstanceType','amd','comment','Edit','post','OpenOrReOpen','getUnit','64TBwxkC','getMemberID','3464136SNFZsk','addUser','_sessionService','exports','223633gZywvN','Disposable','2007042UgEdRE','_threadCommentModel','670rzqZGJ','rxjs','UniverLicensePlugin','Inject','createTimestamp','HTTPService','UniverProLicense','_init','delete','comments','CommentService','_httpService'];_0x2b13=function(){return _0x3e1cc9;};return _0x2b13();}
1
+ function _0x1b03(_0x18a919,_0x4d83df){const _0x1bab5c=_0x1bab();return _0x1b03=function(_0x1b03d7,_0x3feb08){_0x1b03d7=_0x1b03d7-0x1cc;let _0x1c620c=_0x1bab5c[_0x1b03d7];return _0x1c620c;},_0x1b03(_0x18a919,_0x4d83df);}(function(_0x50d824,_0x53b879){const _0xf2bd8f=_0x1b03,_0x23c848=_0x50d824();while(!![]){try{const _0x5b9df4=parseInt(_0xf2bd8f(0x202))/0x1+parseInt(_0xf2bd8f(0x1e4))/0x2+-parseInt(_0xf2bd8f(0x204))/0x3+-parseInt(_0xf2bd8f(0x201))/0x4*(-parseInt(_0xf2bd8f(0x239))/0x5)+parseInt(_0xf2bd8f(0x21e))/0x6+parseInt(_0xf2bd8f(0x1ef))/0x7*(-parseInt(_0xf2bd8f(0x1ed))/0x8)+-parseInt(_0xf2bd8f(0x20f))/0x9;if(_0x5b9df4===_0x53b879)break;else _0x23c848['push'](_0x23c848['shift']());}catch(_0x3c0bac){_0x23c848['push'](_0x23c848['shift']());}}}(_0x1bab,0xe3ec1),function(_0x58f069,_0xac202b){const _0xc6fe07=_0x1b03;typeof exports==_0xc6fe07(0x23b)&&typeof module<'u'?_0xac202b(exports,require(_0xc6fe07(0x1f2)),require(_0xc6fe07(0x20a)),require(_0xc6fe07(0x20c)),require(_0xc6fe07(0x226)),require(_0xc6fe07(0x210)),require('rxjs'),require(_0xc6fe07(0x1e2))):typeof define==_0xc6fe07(0x1da)&&define[_0xc6fe07(0x1d9)]?define([_0xc6fe07(0x247),'@univerjs-pro/collaboration-client',_0xc6fe07(0x20a),_0xc6fe07(0x20c),_0xc6fe07(0x226),'@univerjs/thread-comment',_0xc6fe07(0x20b),_0xc6fe07(0x1e2)],_0xac202b):(_0x58f069=typeof globalThis<'u'?globalThis:_0x58f069||self,_0xac202b(_0x58f069[_0xc6fe07(0x1d1)]={},_0x58f069[_0xc6fe07(0x1e9)],_0x58f069['UniverProLicense'],_0x58f069[_0xc6fe07(0x1d6)],_0x58f069[_0xc6fe07(0x255)],_0x58f069['UniverThreadComment'],_0x58f069['rxjs'],_0x58f069['UniverNetwork']));}(this,function(_0x5b6bc1,_0x56d81b,_0x5d2e76,_0x479855,_0x1281be,_0x19372d,_0x1a2419,_0x24c58e){'use strict';const _0x3a3154=_0x1b03;const _0x3d3481='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var _0x203d12=(_0x773955=>(_0x773955[_0x773955['OpenOrReOpen']=0x0]='OpenOrReOpen',_0x773955[_0x773955[_0x3a3154(0x1ee)]=0x1]=_0x3a3154(0x1ee),_0x773955[_0x773955[_0x3a3154(0x245)]=-0x1]=_0x3a3154(0x245),_0x773955))(_0x203d12||{}),_0x3deeb3=(_0x16cb0a=>(_0x16cb0a[_0x16cb0a[_0x3a3154(0x203)]=0x0]=_0x3a3154(0x203),_0x16cb0a[_0x16cb0a[_0x3a3154(0x1db)]=0x1]=_0x3a3154(0x1db),_0x16cb0a[_0x16cb0a[_0x3a3154(0x24c)]=0x2]='Reply',_0x16cb0a[_0x16cb0a[_0x3a3154(0x24b)]=0x3]=_0x3a3154(0x24b),_0x16cb0a[_0x16cb0a[_0x3a3154(0x21c)]=0x4]='Delete',_0x16cb0a[_0x16cb0a['Solve']=0x5]=_0x3a3154(0x1fc),_0x16cb0a[_0x16cb0a[_0x3a3154(0x245)]=-0x1]=_0x3a3154(0x245),_0x16cb0a))(_0x3deeb3||{});const _0x3f37b6=_0x181438=>_0x479855[_0x3a3154(0x213)](new Date(+_0x181438))[_0x3a3154(0x200)](_0x3a3154(0x23d)),_0x32437e=async(_0x9139af,_0x16f726)=>{const _0x23e3e3=_0x3a3154,_0x5d819d=_0x9139af[_0x23e3e3(0x1f5)](_0x479855[_0x23e3e3(0x1eb)]),_0x35bf6f=_0x9139af[_0x23e3e3(0x1f5)](_0x24c58e[_0x23e3e3(0x229)]);_0x16f726['forEach'](_0x15c726=>{const _0xdcd621=_0x23e3e3;_0x5d819d[_0xdcd621(0x258)](_0x15c726)&&_0x16f726['delete'](_0x15c726);}),_0x16f726[_0x23e3e3(0x231)]&&(await _0x35bf6f[_0x23e3e3(0x1f5)](_0x23e3e3(0x257),{'params':{'userIDs':[..._0x16f726]}}))[_0x23e3e3(0x1ff)][_0x23e3e3(0x22e)][_0x23e3e3(0x227)](_0x286d8c=>{_0x286d8c&&_0x5d819d['addUser'](_0x286d8c);});};var _0x40471b=Object[_0x3a3154(0x1d5)],_0x136d83=Object[_0x3a3154(0x1d3)],_0x190987=(_0x39796e,_0x2dca2f,_0x51677f,_0xb10aec)=>{const _0x11378c=_0x3a3154;for(var _0x23d3a6=_0xb10aec>0x1?void 0x0:_0xb10aec?_0x136d83(_0x2dca2f,_0x51677f):_0x2dca2f,_0x2a89f7=_0x39796e[_0x11378c(0x1f9)]-0x1,_0x404ad1;_0x2a89f7>=0x0;_0x2a89f7--)(_0x404ad1=_0x39796e[_0x2a89f7])&&(_0x23d3a6=(_0xb10aec?_0x404ad1(_0x2dca2f,_0x51677f,_0x23d3a6):_0x404ad1(_0x23d3a6))||_0x23d3a6);return _0xb10aec&&_0x23d3a6&&_0x40471b(_0x2dca2f,_0x51677f,_0x23d3a6),_0x23d3a6;},_0x119e06=(_0x35a32a,_0x23ef94)=>(_0x27c973,_0x3292bb)=>_0x23ef94(_0x27c973,_0x3292bb,_0x35a32a);let _0x975638=class extends _0x479855[_0x3a3154(0x20e)]{constructor(_0x17b7de,_0x294ab1,_0x7046df,_0x36bf34){const _0x5e6aa4=_0x3a3154;super(),this['_commentService']=_0x17b7de,this['_threadCommentModel']=_0x294ab1,this[_0x5e6aa4(0x1f6)]=_0x7046df,this[_0x5e6aa4(0x1e1)]=_0x36bf34,this[_0x5e6aa4(0x1e7)](),this[_0x5e6aa4(0x205)]();}[_0x3a3154(0x205)](){const _0x1dc92e=_0x3a3154;this[_0x1dc92e(0x1ec)](this[_0x1dc92e(0x218)][_0x1dc92e(0x22d)][_0x1dc92e(0x219)](_0x1a2419['bufferTime'](0x10))[_0x1dc92e(0x223)](_0x1b1e86=>{const _0x31e3cb=new Set();_0x1b1e86['forEach'](_0x5d88de=>{const _0x2adf25=_0x1b03;switch(_0x5d88de[_0x2adf25(0x1df)]){case _0x2adf25(0x225):{const _0x1fa9a3=_0x5d88de[_0x2adf25(0x221)]['personId'];_0x31e3cb[_0x2adf25(0x225)](_0x1fa9a3);break;}}}),_0x32437e(this['_injector'],_0x31e3cb);}));}[_0x3a3154(0x1e7)](){const _0x1207ea=_0x3a3154;this['disposeWithMe'](this[_0x1207ea(0x1f3)][_0x1207ea(0x22d)][_0x1207ea(0x223)](async _0x2ec0da=>{const _0x40a59b=_0x1207ea;var _0x496757,_0x3c3d2,_0x32785c,_0x1e27ce;const _0x2d1b51=(_0x496757=this[_0x40a59b(0x218)]['getUnit'](_0x2ec0da[_0x40a59b(0x23f)])[_0x40a59b(0x1d7)](_0x540861=>_0x540861[_0x40a59b(0x22f)]===_0x2ec0da[_0x40a59b(0x22f)]))==null?void 0x0:_0x496757[_0x40a59b(0x1fd)];if(!_0x2d1b51)return;const {unitId:_0x2de79d,subUnitId:_0x378243}=_0x2d1b51;switch(_0x2ec0da[_0x40a59b(0x1f4)]&&this[_0x40a59b(0x1f6)][_0x40a59b(0x222)](_0x2ec0da['user']),_0x2ec0da[_0x40a59b(0x1df)]){case _0x3deeb3[_0x40a59b(0x1db)]:break;case _0x3deeb3['Reply']:{this[_0x40a59b(0x218)][_0x40a59b(0x22b)](_0x2de79d,_0x378243,{'unitId':_0x2de79d,'subUnitId':_0x378243,'ref':'','id':_0x2ec0da['replyId'],'dT':_0x3f37b6(+_0x2ec0da[_0x40a59b(0x234)]),'threadId':_0x2ec0da[_0x40a59b(0x22f)],'personId':(_0x32785c=(_0x3c3d2=_0x2ec0da[_0x40a59b(0x1f4)])==null?void 0x0:_0x3c3d2['userID'])!=null?_0x32785c:_0x2ec0da[_0x40a59b(0x250)],'text':JSON[_0x40a59b(0x236)](_0x2ec0da[_0x40a59b(0x208)]),'parentId':_0x2d1b51['id']});break;}case _0x3deeb3[_0x40a59b(0x21c)]:{const _0x566fbe=this['_threadCommentModel']['getComment'](_0x2de79d,_0x378243,_0x2ec0da[_0x40a59b(0x230)]);_0x566fbe&&_0x566fbe[_0x40a59b(0x1de)]&&this[_0x40a59b(0x218)][_0x40a59b(0x256)](_0x2de79d,_0x378243,_0x2ec0da[_0x40a59b(0x230)]);break;}case _0x3deeb3['Edit']:{this['_threadCommentModel'][_0x40a59b(0x252)](_0x2de79d,_0x378243,{'commentId':_0x2ec0da[_0x40a59b(0x230)],'text':JSON[_0x40a59b(0x236)](_0x2ec0da[_0x40a59b(0x208)])});break;}case _0x3deeb3[_0x40a59b(0x1fc)]:{const _0x3ba560=(_0x1e27ce=this['_threadCommentModel']['getUnit'](_0x2ec0da[_0x40a59b(0x23f)])[_0x40a59b(0x1d7)](_0x5a752b=>_0x5a752b['threadId']===_0x2ec0da[_0x40a59b(0x22f)]))==null?void 0x0:_0x1e27ce[_0x40a59b(0x1fd)];_0x3ba560&&this[_0x40a59b(0x218)][_0x40a59b(0x1d4)](_0x2de79d,_0x378243,_0x3ba560['id'],_0x2ec0da[_0x40a59b(0x249)]===_0x203d12[_0x40a59b(0x1ee)]);break;}}}));}};_0x975638=_0x190987([_0x119e06(0x0,_0x479855[_0x3a3154(0x1fe)](_0x56d81b[_0x3a3154(0x214)])),_0x119e06(0x1,_0x479855[_0x3a3154(0x1fe)](_0x19372d[_0x3a3154(0x20d)])),_0x119e06(0x2,_0x479855[_0x3a3154(0x1fe)](_0x479855[_0x3a3154(0x1eb)])),_0x119e06(0x3,_0x479855[_0x3a3154(0x1fe)](_0x479855['Injector']))],_0x975638);const _0x25dfd9=_0x3a3154(0x21f),_0x4394c9={};var _0x6d48aa=Object[_0x3a3154(0x1d5)],_0x20770c=Object[_0x3a3154(0x1d3)],_0x624d9c=(_0x5a600d,_0x42022e,_0x334501,_0xa0671d)=>{const _0x2a5029=_0x3a3154;for(var _0x311c1b=_0xa0671d>0x1?void 0x0:_0xa0671d?_0x20770c(_0x42022e,_0x334501):_0x42022e,_0x5c6e5d=_0x5a600d[_0x2a5029(0x1f9)]-0x1,_0x2defce;_0x5c6e5d>=0x0;_0x5c6e5d--)(_0x2defce=_0x5a600d[_0x5c6e5d])&&(_0x311c1b=(_0xa0671d?_0x2defce(_0x42022e,_0x334501,_0x311c1b):_0x2defce(_0x311c1b))||_0x311c1b);return _0xa0671d&&_0x311c1b&&_0x6d48aa(_0x42022e,_0x334501,_0x311c1b),_0x311c1b;},_0x333401=(_0x32d6de,_0x8ea76d)=>(_0x2d2338,_0x322509)=>_0x8ea76d(_0x2d2338,_0x322509,_0x32d6de);function _0x5f0eb9(_0x3c5269,_0x4abf9c){const _0x2be681=_0x3a3154,_0x17ec9e=_0x3c5269[_0x2be681(0x217)][0x0];return{..._0x4abf9c,'id':_0x17ec9e[_0x2be681(0x230)],'resolved':_0x3c5269[_0x2be681(0x249)]===0x1,'dT':_0x3f37b6(_0x17ec9e[_0x2be681(0x234)]),'personId':_0x17ec9e[_0x2be681(0x250)],'threadId':_0x17ec9e[_0x2be681(0x22f)]};}function _0x2dd6a4(_0x118c6b,_0x5adaba,_0x308575){const _0x17fa30=_0x3a3154;var _0x54a6f2,_0x32f88f;if(((_0x32f88f=(_0x54a6f2=_0x118c6b==null?void 0x0:_0x118c6b[_0x17fa30(0x217)])==null?void 0x0:_0x54a6f2[_0x17fa30(0x1f9)])!=null?_0x32f88f:0x0)>0x0){const _0x3eb296=(_0x1dc745,_0x5a65a6)=>({'id':_0x1dc745[_0x17fa30(0x230)],'threadId':_0x1dc745[_0x17fa30(0x22f)],'dT':_0x3f37b6(_0x1dc745[_0x17fa30(0x234)]),'personId':_0x1dc745[_0x17fa30(0x250)],'resolved':_0x118c6b[_0x17fa30(0x249)]===_0x203d12[_0x17fa30(0x1ee)],'unitId':_0x5adaba,'subUnitId':_0x308575,'text':JSON[_0x17fa30(0x236)](_0x1dc745[_0x17fa30(0x208)]),'parentId':_0x5a65a6}),_0x160ba4=_0x3eb296(_0x118c6b[_0x17fa30(0x217)][0x0]);return{..._0x160ba4,'children':_0x118c6b[_0x17fa30(0x217)][_0x17fa30(0x207)](0x1)['map'](_0x13f516=>_0x3eb296(_0x13f516,_0x160ba4['id']))};}return null;}let _0x2ee27a=class{constructor(_0x127b80,_0x5ca129,_0x72270e,_0x13ae60){const _0x7ec077=_0x3a3154;this['_httpService']=_0x127b80,this[_0x7ec077(0x1f6)]=_0x5ca129,this[_0x7ec077(0x242)]=_0x72270e,this[_0x7ec077(0x1e1)]=_0x13ae60;}async[_0x3a3154(0x22b)](_0x494f3b){const _0x165782=_0x3a3154;var _0x579229,_0x5e039f;const {parentId:_0x2013a4,unitId:_0x14e1e8,text:_0x2f7a4d,threadId:_0x5ad4a5}=_0x494f3b,_0x259d8b=(_0x5e039f=(_0x579229=_0x2f7a4d[_0x165782(0x24a)])==null?void 0x0:_0x579229[_0x165782(0x1cf)](_0x155562=>_0x155562[_0x165782(0x1fa)]===_0x479855[_0x165782(0x23e)][_0x165782(0x206)])['map'](_0x1cb1f2=>_0x1cb1f2[_0x165782(0x246)]))!=null?_0x5e039f:[],_0x209646=JSON[_0x165782(0x1d2)](_0x2f7a4d),_0xa5a5a8=(await this[_0x165782(0x242)][_0x165782(0x24d)](_0x14e1e8))[_0x165782(0x23a)]();if(_0x2013a4){const _0x3af636={'memberId':_0xa5a5a8,'unitId':_0x14e1e8,'content':_0x209646,'mention':_0x259d8b,'threadId':_0x5ad4a5},_0x5f1d0c=(await this['_httpService'][_0x165782(0x244)]('/universer-api/comment/unit/'+_0x14e1e8+_0x165782(0x21d),{'body':_0x3af636}))[_0x165782(0x1ff)][_0x165782(0x1e5)];return{..._0x494f3b,'id':_0x5f1d0c['replyId'],'dT':_0x479855[_0x165782(0x213)](+_0x5f1d0c[_0x165782(0x234)])[_0x165782(0x200)](_0x165782(0x23d)),'personId':_0x5f1d0c[_0x165782(0x250)]};}else{const _0x19e0d0={'memberId':_0xa5a5a8,'unitId':_0x14e1e8,'content':_0x209646,'mention':_0x259d8b},_0x21e3c5=await this[_0x165782(0x240)]['post']('/universer-api/comment/unit/'+_0x14e1e8+_0x165782(0x1ce),{'body':_0x19e0d0});return _0x5f0eb9(_0x21e3c5[_0x165782(0x1ff)][_0x165782(0x224)],_0x494f3b);}}async['updateComment'](_0x14c619){const _0x13f680=_0x3a3154;var _0x2052f6,_0x4fd00f;const {text:_0x6c5287,unitId:_0x5150b3}=_0x14c619,_0x584c27=(_0x4fd00f=(_0x2052f6=_0x6c5287[_0x13f680(0x24a)])==null?void 0x0:_0x2052f6[_0x13f680(0x1cf)](_0x557c9c=>_0x557c9c[_0x13f680(0x1fa)]===_0x479855['CustomRangeType'][_0x13f680(0x206)])[_0x13f680(0x209)](_0x4c314c=>_0x4c314c[_0x13f680(0x246)]))!=null?_0x4fd00f:[],_0x3668a0=JSON['stringify'](_0x6c5287),_0x411ac3=_0x14c619['threadId'],_0x5e51db=_0x14c619['id'],_0x59cc74={'memberId':(await this[_0x13f680(0x242)][_0x13f680(0x24d)](_0x5150b3))[_0x13f680(0x23a)](),'unitId':_0x5150b3,'threadId':_0x411ac3,'mention':_0x584c27,'content':_0x3668a0,'replyId':_0x5e51db},_0x2d1642=await this[_0x13f680(0x240)][_0x13f680(0x244)](_0x13f680(0x1cd)+_0x5150b3+_0x13f680(0x232),{'body':_0x59cc74});return!_0x2d1642[_0x13f680(0x1ff)][_0x13f680(0x241)]||_0x2d1642[_0x13f680(0x1ff)][_0x13f680(0x241)][_0x13f680(0x21a)]===0x1;}async['resolveComment'](_0x38ba04){const _0x3dcfaa=_0x3a3154,{unitId:_0x31b056}=_0x38ba04,_0x12a31c=_0x38ba04[_0x3dcfaa(0x22f)],_0x196448={'memberId':this['_userService'][_0x3dcfaa(0x1ea)]()[_0x3dcfaa(0x254)],'unitId':_0x31b056,'threadId':_0x12a31c,'solved':_0x38ba04[_0x3dcfaa(0x1f0)]?_0x203d12[_0x3dcfaa(0x1ee)]:_0x203d12[_0x3dcfaa(0x243)]},_0x30c55f=await this[_0x3dcfaa(0x240)]['post'](_0x3dcfaa(0x1cd)+_0x31b056+'/solved',{'body':_0x196448});return!_0x30c55f[_0x3dcfaa(0x1ff)][_0x3dcfaa(0x241)]||_0x30c55f[_0x3dcfaa(0x1ff)][_0x3dcfaa(0x241)][_0x3dcfaa(0x21a)]===0x1;}async[_0x3a3154(0x256)](_0x4d3d82,_0x285f7e,_0x1ff03d,_0x5ea10e){const _0x17a30d=_0x3a3154,_0x22e0ea={'memberId':(await this['_sessionService']['requireSession'](_0x4d3d82))[_0x17a30d(0x23a)](),'threadId':_0x1ff03d,'replyId':_0x5ea10e,'unitId':_0x4d3d82},_0xe0c0bc=await this[_0x17a30d(0x240)][_0x17a30d(0x244)](_0x17a30d(0x1cd)+_0x4d3d82+_0x17a30d(0x215),{'body':_0x22e0ea});return!_0xe0c0bc['body'][_0x17a30d(0x241)]||_0xe0c0bc[_0x17a30d(0x1ff)][_0x17a30d(0x241)][_0x17a30d(0x21a)]===0x1;}async[_0x3a3154(0x248)](_0x28a486,_0x5f2a77,_0x1ebf26){const _0x5846c3=_0x3a3154,_0x3affb9={'unitId':_0x28a486,'threadId':_0x1ebf26},_0x14b745=await this[_0x5846c3(0x240)][_0x5846c3(0x244)](_0x5846c3(0x1cd)+_0x28a486+_0x5846c3(0x1f7),{'body':_0x3affb9}),_0x5958c5=_0x1ebf26['map'](_0x57746a=>_0x2dd6a4(_0x14b745[_0x5846c3(0x1ff)][_0x5846c3(0x1e6)][_0x57746a],_0x28a486,_0x5f2a77))[_0x5846c3(0x1cf)](Boolean);return Object[_0x5846c3(0x212)](_0x14b745[_0x5846c3(0x1ff)][_0x5846c3(0x22e)])[_0x5846c3(0x227)](_0x6cc544=>{this['_userService']['addUser'](_0x6cc544);}),_0x5958c5;}[_0x3a3154(0x1f8)](_0x38a614){const _0x54e8be=_0x3a3154;return{'id':_0x38a614['id'],'threadId':_0x38a614[_0x54e8be(0x22f)],'ref':_0x38a614[_0x54e8be(0x235)]};}};_0x2ee27a=_0x624d9c([_0x333401(0x0,_0x479855[_0x3a3154(0x1fe)](_0x24c58e[_0x3a3154(0x229)])),_0x333401(0x1,_0x479855['Inject'](_0x479855[_0x3a3154(0x1eb)])),_0x333401(0x2,_0x479855[_0x3a3154(0x1fe)](_0x56d81b[_0x3a3154(0x233)])),_0x333401(0x3,_0x479855[_0x3a3154(0x1fe)](_0x479855[_0x3a3154(0x22a)]))],_0x2ee27a);var _0x198ee2=Object[_0x3a3154(0x1d5)],_0x4aedb7=Object[_0x3a3154(0x1d3)],_0xb8b79d=(_0x653df2,_0x12e0af,_0x5315bb,_0x51e23e)=>{const _0x1a2bda=_0x3a3154;for(var _0x166572=_0x51e23e>0x1?void 0x0:_0x51e23e?_0x4aedb7(_0x12e0af,_0x5315bb):_0x12e0af,_0x2a0b96=_0x653df2[_0x1a2bda(0x1f9)]-0x1,_0x3b03c7;_0x2a0b96>=0x0;_0x2a0b96--)(_0x3b03c7=_0x653df2[_0x2a0b96])&&(_0x166572=(_0x51e23e?_0x3b03c7(_0x12e0af,_0x5315bb,_0x166572):_0x3b03c7(_0x166572))||_0x166572);return _0x51e23e&&_0x166572&&_0x198ee2(_0x12e0af,_0x5315bb,_0x166572),_0x166572;},_0x2e7f60=(_0x5f39d2,_0x238f6c)=>(_0x4f254e,_0x3ca22b)=>_0x238f6c(_0x4f254e,_0x3ca22b,_0x5f39d2);let _0x20385c=class extends _0x479855[_0x3a3154(0x20e)]{constructor(_0x5d946c,_0x421079){const _0x1ce65b=_0x3a3154;super(),this[_0x1ce65b(0x1d8)]=_0x5d946c,this[_0x1ce65b(0x211)]=_0x421079,this[_0x1ce65b(0x1dc)]();}[_0x3a3154(0x1dc)](){const _0x40253a=_0x3a3154;this[_0x40253a(0x1d8)][_0x40253a(0x251)]=this['_threadCommentDataSource'],this[_0x40253a(0x1d8)][_0x40253a(0x1d0)]=!0x1;}};_0x20385c=_0xb8b79d([_0x2e7f60(0x0,_0x19372d[_0x3a3154(0x24f)]),_0x2e7f60(0x1,_0x479855[_0x3a3154(0x1fe)](_0x2ee27a))],_0x20385c);var _0x333ee9=Object[_0x3a3154(0x1d5)],_0x458de0=Object[_0x3a3154(0x1d3)],_0x18d4fa=(_0x518f3e,_0x1451d0,_0x4a4a19)=>_0x1451d0 in _0x518f3e?_0x333ee9(_0x518f3e,_0x1451d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a4a19}):_0x518f3e[_0x1451d0]=_0x4a4a19,_0x3c90c3=(_0x1303dc,_0x117f17,_0x5935ae,_0x4cabe5)=>{const _0x4edef4=_0x3a3154;for(var _0x984dff=_0x4cabe5>0x1?void 0x0:_0x4cabe5?_0x458de0(_0x117f17,_0x5935ae):_0x117f17,_0x225b14=_0x1303dc[_0x4edef4(0x1f9)]-0x1,_0x1b89c7;_0x225b14>=0x0;_0x225b14--)(_0x1b89c7=_0x1303dc[_0x225b14])&&(_0x984dff=(_0x4cabe5?_0x1b89c7(_0x117f17,_0x5935ae,_0x984dff):_0x1b89c7(_0x984dff))||_0x984dff);return _0x4cabe5&&_0x984dff&&_0x333ee9(_0x117f17,_0x5935ae,_0x984dff),_0x984dff;},_0x50bd57=(_0x59bbaa,_0x45bf07)=>(_0x5b817b,_0x231fa1)=>_0x45bf07(_0x5b817b,_0x231fa1,_0x59bbaa),_0x119466=(_0x4eb6e2,_0x49cd0d,_0x17790f)=>_0x18d4fa(_0x4eb6e2,typeof _0x49cd0d!='symbol'?_0x49cd0d+'':_0x49cd0d,_0x17790f);_0x5b6bc1[_0x3a3154(0x253)]=class extends _0x479855[_0x3a3154(0x1e3)]{constructor(_0x2c3e4c=_0x4394c9,_0x378b14,_0x4dded6){const _0x8c2d19=_0x3a3154;super(),this[_0x8c2d19(0x228)]=_0x2c3e4c,this['_injector']=_0x378b14,this[_0x8c2d19(0x1f1)]=_0x4dded6;const {..._0x1b44b1}=_0x479855[_0x8c2d19(0x237)]({},_0x4394c9,this[_0x8c2d19(0x228)]);this[_0x8c2d19(0x1f1)][_0x8c2d19(0x1dd)](_0x25dfd9,_0x1b44b1);}[_0x3a3154(0x220)](){const _0x30577e=_0x3a3154;[[_0x2ee27a],[_0x20385c],[_0x975638]][_0x30577e(0x227)](_0x4ce798=>{const _0x1053db=_0x30577e;this[_0x1053db(0x1e1)][_0x1053db(0x225)](_0x4ce798);});}[_0x3a3154(0x216)](){const _0x2d9596=_0x3a3154;this[_0x2d9596(0x1e1)][_0x2d9596(0x1f5)](_0x20385c),this['_injector'][_0x2d9596(0x1f5)](_0x975638);}},_0x119466(_0x5b6bc1[_0x3a3154(0x253)],_0x3a3154(0x24e),_0x3d3481),_0x119466(_0x5b6bc1[_0x3a3154(0x253)],_0x3a3154(0x1df),_0x479855[_0x3a3154(0x1fb)][_0x3a3154(0x22c)]),_0x5b6bc1[_0x3a3154(0x253)]=_0x3c90c3([_0x479855[_0x3a3154(0x23c)](_0x1281be[_0x3a3154(0x1e8)],_0x56d81b[_0x3a3154(0x1cc)],_0x5d2e76[_0x3a3154(0x238)]),_0x50bd57(0x1,_0x479855[_0x3a3154(0x1fe)](_0x479855[_0x3a3154(0x22a)])),_0x50bd57(0x2,_0x479855['IConfigService'])],_0x5b6bc1[_0x3a3154(0x253)]),Object[_0x3a3154(0x1d5)](_0x5b6bc1,Symbol[_0x3a3154(0x1e0)],{'value':_0x3a3154(0x21b)});}));function _0x1bab(){const _0x34e294=['parentId','type','toStringTag','_injector','@univerjs/network','Plugin','1499130whxQdj','reply','comments','_init','UniverThreadCommentUIPlugin','UniverProCollaborationClient','getCurrentUser','UserManagerService','disposeWithMe','376OwLphq','Solved','128429hlrOSY','resolved','_configService','@univerjs-pro/collaboration-client','_commentService','user','get','_userService','/list','saveCommentToSnapshot','length','rangeType','UniverInstanceType','Solve','root','Inject','body','format','3181548XpPLbH','253225wFygTv','Unknown','5326836bqNjDJ','_initUserSync','COMMENT','slice','content','map','@univerjs-pro/license','rxjs','@univerjs/core','ThreadCommentModel','Disposable','1431063ZAUGxc','@univerjs/thread-comment','_threadCommentDataSource','values','dayjs','CommentService','/delete','onReady','replies','_threadCommentModel','pipe','code','Module','Delete','/reply','6821598smCYrG','thread-comment-data-source.config','onStarting','payload','addUser','subscribe','comment','add','@univerjs/thread-comment-ui','forEach','_config','HTTPService','Injector','addComment','UNIVER_UNKNOWN','commentUpdate$','users','threadId','replyId','size','/edit','CollaborationSessionService','createTimestamp','ref','parse','merge','UniverLicensePlugin','10lbHxgQ','getMemberID','object','DependentOn','YYYY/MM/DD\x20HH:mm','CustomRangeType','unitId','_httpService','error','_sessionService','OpenOrReOpen','post','UNRECOGNIZED','rangeId','exports','listComments','solved','customRanges','Edit','Reply','requireSession','pluginName','IThreadCommentDataSourceService','userId','dataSource','updateComment','UniverThreadCommentDataSourcePlugin','userID','UniverThreadCommentUi','deleteComment','/universer-api/user/list','getUser','UniverCollaborationClientPlugin','/universer-api/comment/unit/','/add','filter','syncUpdateMutationToColla','UniverProThreadCommentDatasource','stringify','getOwnPropertyDescriptor','resolveComment','defineProperty','UniverCore','find','_threadCommentDataSourceService','amd','function','Add','_initDataSource','setConfig'];_0x1bab=function(){return _0x34e294;};return _0x1bab();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/thread-comment-datasource",
3
- "version": "0.5.2",
3
+ "version": "0.5.3-nightly.202501051605",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -45,33 +45,20 @@
45
45
  "rxjs": ">=7.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "@univerjs-pro/collaboration-client": "0.5.2",
49
- "@univerjs-pro/license": "0.5.2",
50
- "@univerjs/core": "0.5.2",
51
- "@univerjs/network": "0.5.2",
52
- "@univerjs/thread-comment": "0.5.2",
53
- "@univerjs/thread-comment-ui": "0.5.2",
54
- "@univerjs/protocol": "0.1.40-alpha.10"
48
+ "@univerjs-pro/collaboration-client": "0.5.3-nightly.202501051605",
49
+ "@univerjs/network": "0.5.3-nightly.202501051605",
50
+ "@univerjs-pro/license": "0.5.3-nightly.202501051605",
51
+ "@univerjs/core": "0.5.3-nightly.202501051605",
52
+ "@univerjs/protocol": "0.1.40-alpha.10",
53
+ "@univerjs/thread-comment-ui": "0.5.3-nightly.202501051605",
54
+ "@univerjs/thread-comment": "0.5.3-nightly.202501051605"
55
55
  },
56
56
  "devDependencies": {
57
57
  "rxjs": "^7.8.1",
58
58
  "typescript": "^5.7.2",
59
- "vite": "^6.0.3",
59
+ "vite": "^6.0.6",
60
60
  "vitest": "^2.1.8",
61
- "@univerjs-infra/shared": "0.5.2"
62
- },
63
- "space": {
64
- ".": {
65
- "import": "./lib/es/index.js",
66
- "require": "./lib/cjs/index.js",
67
- "types": "./lib/types/index.d.ts"
68
- },
69
- "./*": {
70
- "import": "./lib/es/*",
71
- "require": "./lib/cjs/*",
72
- "types": "./lib/types/index.d.ts"
73
- },
74
- "./lib/*": "./lib/*"
61
+ "@univerjs-infra/shared": "0.5.3"
75
62
  },
76
63
  "scripts": {
77
64
  "test": "vitest run",