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

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 _0x1549d6=_0x5d29;(function(_0x4131bc,_0x41d19b){const _0x1b1c0c=_0x5d29,_0x4f7293=_0x4131bc();while(!![]){try{const _0x2e5725=-parseInt(_0x1b1c0c(0xcc))/0x1+-parseInt(_0x1b1c0c(0xd3))/0x2*(parseInt(_0x1b1c0c(0x9e))/0x3)+-parseInt(_0x1b1c0c(0xb3))/0x4+-parseInt(_0x1b1c0c(0xdf))/0x5+parseInt(_0x1b1c0c(0xbf))/0x6+parseInt(_0x1b1c0c(0xfd))/0x7+parseInt(_0x1b1c0c(0xd0))/0x8;if(_0x2e5725===_0x41d19b)break;else _0x4f7293['push'](_0x4f7293['shift']());}catch(_0x1bbf78){_0x4f7293['push'](_0x4f7293['shift']());}}}(_0xf895,0x9e9ea));function _0x5d29(_0x3bea2e,_0x446f36){const _0xf895b7=_0xf895();return _0x5d29=function(_0x5d29c7,_0x4a6243){_0x5d29c7=_0x5d29c7-0x8c;let _0x1cef2e=_0xf895b7[_0x5d29c7];return _0x1cef2e;},_0x5d29(_0x3bea2e,_0x446f36);}Object[_0x1549d6(0xbd)](exports,Symbol[_0x1549d6(0xd7)],{'value':'Module'});const C=require(_0x1549d6(0xfa)),T=require(_0x1549d6(0xe1)),c=require(_0x1549d6(0x9f)),w=require(_0x1549d6(0x105)),P=require(_0x1549d6(0xf9)),U=require(_0x1549d6(0xaa)),M=require(_0x1549d6(0xd2)),R=_0x1549d6(0xee);var I=(_0x2ec2df=>(_0x2ec2df[_0x2ec2df['OpenOrReOpen']=0x0]='OpenOrReOpen',_0x2ec2df[_0x2ec2df['Solved']=0x1]=_0x1549d6(0x95),_0x2ec2df[_0x2ec2df['UNRECOGNIZED']=-0x1]=_0x1549d6(0xf1),_0x2ec2df))(I||{}),v=(_0x113867=>(_0x113867[_0x113867['Unknown']=0x0]=_0x1549d6(0xa7),_0x113867[_0x113867[_0x1549d6(0xbc)]=0x1]=_0x1549d6(0xbc),_0x113867[_0x113867[_0x1549d6(0xc8)]=0x2]='Reply',_0x113867[_0x113867[_0x1549d6(0xd5)]=0x3]=_0x1549d6(0xd5),_0x113867[_0x113867[_0x1549d6(0xca)]=0x4]=_0x1549d6(0xca),_0x113867[_0x113867['Solve']=0x5]=_0x1549d6(0xb5),_0x113867[_0x113867['UNRECOGNIZED']=-0x1]=_0x1549d6(0xf1),_0x113867))(v||{});const g=_0x40fc87=>c['dayjs'](new Date(+_0x40fc87))['format'](_0x1549d6(0xc5)),$=async(_0x5ac679,_0x6c2b62)=>{const _0x38d39a=_0x1549d6,_0x5aee32=_0x5ac679[_0x38d39a(0xc6)](c[_0x38d39a(0x8c)]),_0x193818=_0x5ac679[_0x38d39a(0xc6)](M['HTTPService']);_0x6c2b62[_0x38d39a(0xd9)](_0x2f02b0=>{_0x5aee32['getUser'](_0x2f02b0)&&_0x6c2b62['delete'](_0x2f02b0);}),_0x6c2b62[_0x38d39a(0x101)]&&(await _0x193818[_0x38d39a(0xc6)]('/universer-api/user/list',{'params':{'userIDs':[..._0x6c2b62]}}))[_0x38d39a(0xc2)]['users'][_0x38d39a(0xd9)](_0x45a79c=>{const _0x355209=_0x38d39a;_0x45a79c&&_0x5aee32[_0x355209(0xb1)](_0x45a79c);});};function _0xf895(){const _0x2b27fa=['Edit','symbol','toStringTag','parentId','forEach','IConfigService','requireSession','reply','/reply','payload','5326265zQAIzh','_initUserSync','@univerjs-pro/license','_config','Inject','UniverLicensePlugin','subscribe','HTTPService','unitId','saveCommentToSnapshot','syncUpdateMutationToColla','resolved','code','/add','getComment','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','userId','_threadCommentModel','UNRECOGNIZED','onReady','UniverInstanceType','CommentService','Injector','IThreadCommentDataSourceService','onStarting','/edit','@univerjs/thread-comment','@univerjs-pro/collaboration-client','_commentService','customRanges','8752065fpPLML','ref','type','pluginName','size','stringify','thread-comment-data-source.config','Disposable','@univerjs/thread-comment-ui','map','bufferTime','UserManagerService','CollaborationSessionService','merge','resolveComment','slice','createTimestamp','listComments','updateComment','comments','Solved','replies','values','parse','userID','commentUpdate$','length','_threadCommentDataSourceService','comment','494649LUgrBa','@univerjs/core','dayjs','disposeWithMe','filter','/universer-api/comment/unit/','find','_injector','/solved','Unknown','personId','_sessionService','rxjs','getMemberID','DependentOn','error','OpenOrReOpen','add','getOwnPropertyDescriptor','addUser','addComment','4670884wqmljh','/delete','Solve','post','solved','replyId','user','_httpService','threadId','Add','defineProperty','UniverThreadCommentDataSourcePlugin','3846402ExCDPV','users','_userService','body','root','_init','YYYY/MM/DD\x20HH:mm','get','_initDataSource','Reply','getUnit','Delete','content','392590YRZuSH','format','COMMENT','CustomRangeType','12390328QHtSzl','Plugin','@univerjs/network','2OVYXNb','rangeType'];_0xf895=function(){return _0x2b27fa;};return _0xf895();}var E=Object[_0x1549d6(0xbd)],q=Object[_0x1549d6(0xb0)],A=(_0x33b2ff,_0x2edcc3,_0x1494b4,_0x563fc5)=>{const _0x401eff=_0x1549d6;for(var _0x2f1350=_0x563fc5>0x1?void 0x0:_0x563fc5?q(_0x2edcc3,_0x1494b4):_0x2edcc3,_0x44fa4c=_0x33b2ff[_0x401eff(0x9b)]-0x1,_0x187410;_0x44fa4c>=0x0;_0x44fa4c--)(_0x187410=_0x33b2ff[_0x44fa4c])&&(_0x2f1350=(_0x563fc5?_0x187410(_0x2edcc3,_0x1494b4,_0x2f1350):_0x187410(_0x2f1350))||_0x2f1350);return _0x563fc5&&_0x2f1350&&E(_0x2edcc3,_0x1494b4,_0x2f1350),_0x2f1350;},_=(_0x12ce91,_0x4941d9)=>(_0x3b3017,_0xd92f52)=>_0x4941d9(_0x3b3017,_0xd92f52,_0x12ce91);let S=class extends c[_0x1549d6(0x104)]{constructor(_0x4db0f0,_0x25a521,_0x5cabd2,_0x5e089b){const _0x5173e4=_0x1549d6;super(),this['_commentService']=_0x4db0f0,this['_threadCommentModel']=_0x25a521,this[_0x5173e4(0xc1)]=_0x5cabd2,this[_0x5173e4(0xa5)]=_0x5e089b,this[_0x5173e4(0xc4)](),this[_0x5173e4(0xe0)]();}[_0x1549d6(0xe0)](){const _0x5be4b2=_0x1549d6;this[_0x5be4b2(0xa1)](this[_0x5be4b2(0xf0)][_0x5be4b2(0x9a)]['pipe'](U[_0x5be4b2(0x107)](0x10))[_0x5be4b2(0xe5)](_0x368737=>{const _0x23c1e9=_0x5be4b2,_0x78db9=new Set();_0x368737[_0x23c1e9(0xd9)](_0x22283b=>{const _0x5a1aff=_0x23c1e9;switch(_0x22283b[_0x5a1aff(0xff)]){case _0x5a1aff(0xaf):{const _0x23c649=_0x22283b[_0x5a1aff(0xde)][_0x5a1aff(0xa8)];_0x78db9[_0x5a1aff(0xaf)](_0x23c649);break;}}}),$(this[_0x23c1e9(0xa5)],_0x78db9);}));}[_0x1549d6(0xc4)](){const _0x4d3019=_0x1549d6;this['disposeWithMe'](this[_0x4d3019(0xfb)][_0x4d3019(0x9a)][_0x4d3019(0xe5)](async _0x4762da=>{const _0xa29558=_0x4d3019;var _0xefb556,_0x1a52f9,_0x5d01a5,_0x4ce33e;const _0x1d57fe=(_0xefb556=this[_0xa29558(0xf0)][_0xa29558(0xc9)](_0x4762da[_0xa29558(0xe7)])[_0xa29558(0xa4)](_0x344029=>_0x344029[_0xa29558(0xbb)]===_0x4762da[_0xa29558(0xbb)]))==null?void 0x0:_0xefb556[_0xa29558(0xc3)];if(!_0x1d57fe)return;const {unitId:_0x3c129c,subUnitId:_0x352311}=_0x1d57fe;switch(_0x4762da[_0xa29558(0xb9)]&&this[_0xa29558(0xc1)]['addUser'](_0x4762da[_0xa29558(0xb9)]),_0x4762da[_0xa29558(0xff)]){case v[_0xa29558(0xbc)]:break;case v[_0xa29558(0xc8)]:{this[_0xa29558(0xf0)][_0xa29558(0xb2)](_0x3c129c,_0x352311,{'unitId':_0x3c129c,'subUnitId':_0x352311,'ref':'','id':_0x4762da[_0xa29558(0xb8)],'dT':g(+_0x4762da[_0xa29558(0x91)]),'threadId':_0x4762da[_0xa29558(0xbb)],'personId':(_0x5d01a5=(_0x1a52f9=_0x4762da[_0xa29558(0xb9)])==null?void 0x0:_0x1a52f9[_0xa29558(0x99)])!=null?_0x5d01a5:_0x4762da[_0xa29558(0xef)],'text':JSON[_0xa29558(0x98)](_0x4762da['content']),'parentId':_0x1d57fe['id']});break;}case v['Delete']:{const _0x5166c0=this['_threadCommentModel'][_0xa29558(0xed)](_0x3c129c,_0x352311,_0x4762da[_0xa29558(0xb8)]);_0x5166c0&&_0x5166c0[_0xa29558(0xd8)]&&this[_0xa29558(0xf0)]['deleteComment'](_0x3c129c,_0x352311,_0x4762da[_0xa29558(0xb8)]);break;}case v['Edit']:{this[_0xa29558(0xf0)]['updateComment'](_0x3c129c,_0x352311,{'commentId':_0x4762da[_0xa29558(0xb8)],'text':JSON[_0xa29558(0x98)](_0x4762da[_0xa29558(0xcb)])});break;}case v[_0xa29558(0xb5)]:{const _0x3edbed=(_0x4ce33e=this[_0xa29558(0xf0)][_0xa29558(0xc9)](_0x4762da[_0xa29558(0xe7)])[_0xa29558(0xa4)](_0x1f9c1d=>_0x1f9c1d[_0xa29558(0xbb)]===_0x4762da[_0xa29558(0xbb)]))==null?void 0x0:_0x4ce33e['root'];_0x3edbed&&this[_0xa29558(0xf0)][_0xa29558(0x8f)](_0x3c129c,_0x352311,_0x3edbed['id'],_0x4762da[_0xa29558(0xb7)]===I[_0xa29558(0x95)]);break;}}}));}};S=A([_(0x0,c[_0x1549d6(0xe3)](C[_0x1549d6(0xf4)])),_(0x1,c['Inject'](P['ThreadCommentModel'])),_(0x2,c[_0x1549d6(0xe3)](c[_0x1549d6(0x8c)])),_(0x3,c[_0x1549d6(0xe3)](c[_0x1549d6(0xf5)]))],S);const x=_0x1549d6(0x103),D={};var Y=Object['defineProperty'],G=Object[_0x1549d6(0xb0)],H=(_0x2f70d7,_0x3311e7,_0x2456d4,_0x3d33db)=>{const _0x457f8d=_0x1549d6;for(var _0x3b796a=_0x3d33db>0x1?void 0x0:_0x3d33db?G(_0x3311e7,_0x2456d4):_0x3311e7,_0x2589d0=_0x2f70d7[_0x457f8d(0x9b)]-0x1,_0x5f54e5;_0x2589d0>=0x0;_0x2589d0--)(_0x5f54e5=_0x2f70d7[_0x2589d0])&&(_0x3b796a=(_0x3d33db?_0x5f54e5(_0x3311e7,_0x2456d4,_0x3b796a):_0x5f54e5(_0x3b796a))||_0x3b796a);return _0x3d33db&&_0x3b796a&&Y(_0x3311e7,_0x2456d4,_0x3b796a),_0x3b796a;},p=(_0x1ecd44,_0x2a1ebc)=>(_0x2775fb,_0x57e3a1)=>_0x2a1ebc(_0x2775fb,_0x57e3a1,_0x1ecd44);function J(_0x23dc9c,_0x4272e0){const _0x49dd9d=_0x1549d6,_0x5888ff=_0x23dc9c[_0x49dd9d(0x96)][0x0];return{..._0x4272e0,'id':_0x5888ff[_0x49dd9d(0xb8)],'resolved':_0x23dc9c[_0x49dd9d(0xb7)]===0x1,'dT':g(_0x5888ff['createTimestamp']),'personId':_0x5888ff['userId'],'threadId':_0x5888ff['threadId']};}function F(_0x4400f5,_0x1e122a,_0x4f3f68){const _0x25913b=_0x1549d6;var _0x54ae0d,_0x3b5313;if(((_0x3b5313=(_0x54ae0d=_0x4400f5==null?void 0x0:_0x4400f5['replies'])==null?void 0x0:_0x54ae0d[_0x25913b(0x9b)])!=null?_0x3b5313:0x0)>0x0){const _0x2a2cc0=(_0x3c27f9,_0x2d5b4d)=>({'id':_0x3c27f9[_0x25913b(0xb8)],'threadId':_0x3c27f9['threadId'],'dT':g(_0x3c27f9['createTimestamp']),'personId':_0x3c27f9[_0x25913b(0xef)],'resolved':_0x4400f5[_0x25913b(0xb7)]===I[_0x25913b(0x95)],'unitId':_0x1e122a,'subUnitId':_0x4f3f68,'text':JSON[_0x25913b(0x98)](_0x3c27f9[_0x25913b(0xcb)]),'parentId':_0x2d5b4d}),_0x242ab7=_0x2a2cc0(_0x4400f5[_0x25913b(0x96)][0x0]);return{..._0x242ab7,'children':_0x4400f5['replies'][_0x25913b(0x90)](0x1)['map'](_0xb527d5=>_0x2a2cc0(_0xb527d5,_0x242ab7['id']))};}return null;}let f=class{constructor(_0x320224,_0x19ba45,_0x15a9ef,_0xa02e06){const _0x5cbc09=_0x1549d6;this[_0x5cbc09(0xba)]=_0x320224,this[_0x5cbc09(0xc1)]=_0x19ba45,this[_0x5cbc09(0xa9)]=_0x15a9ef,this[_0x5cbc09(0xa5)]=_0xa02e06;}async[_0x1549d6(0xb2)](_0x4eb85a){const _0x45fe64=_0x1549d6;var _0x44e4d9,_0x344246;const {parentId:_0xa89fd9,unitId:_0x85c905,text:_0x4c8698,threadId:_0x174a42}=_0x4eb85a,_0x4d314e=(_0x344246=(_0x44e4d9=_0x4c8698[_0x45fe64(0xfc)])==null?void 0x0:_0x44e4d9['filter'](_0x182447=>_0x182447['rangeType']===c['CustomRangeType'][_0x45fe64(0xce)])[_0x45fe64(0x106)](_0x20e8e7=>_0x20e8e7['rangeId']))!=null?_0x344246:[],_0x48a573=JSON[_0x45fe64(0x102)](_0x4c8698),_0x463425=(await this[_0x45fe64(0xa9)][_0x45fe64(0xdb)](_0x85c905))[_0x45fe64(0xab)]();if(_0xa89fd9){const _0xe25640={'memberId':_0x463425,'unitId':_0x85c905,'content':_0x48a573,'mention':_0x4d314e,'threadId':_0x174a42},_0x41f223=(await this['_httpService']['post'](_0x45fe64(0xa3)+_0x85c905+_0x45fe64(0xdd),{'body':_0xe25640}))['body'][_0x45fe64(0xdc)];return{..._0x4eb85a,'id':_0x41f223['replyId'],'dT':c[_0x45fe64(0xa0)](+_0x41f223['createTimestamp'])[_0x45fe64(0xcd)]('YYYY/MM/DD\x20HH:mm'),'personId':_0x41f223[_0x45fe64(0xef)]};}else{const _0x4e7c13={'memberId':_0x463425,'unitId':_0x85c905,'content':_0x48a573,'mention':_0x4d314e},_0x4846b4=await this[_0x45fe64(0xba)][_0x45fe64(0xb6)](_0x45fe64(0xa3)+_0x85c905+_0x45fe64(0xec),{'body':_0x4e7c13});return J(_0x4846b4[_0x45fe64(0xc2)][_0x45fe64(0x9d)],_0x4eb85a);}}async[_0x1549d6(0x93)](_0x5d685c){const _0x358c1a=_0x1549d6;var _0x2211cd,_0x19dfbd;const {text:_0x5b9126,unitId:_0x44e88d}=_0x5d685c,_0x1b8221=(_0x19dfbd=(_0x2211cd=_0x5b9126[_0x358c1a(0xfc)])==null?void 0x0:_0x2211cd[_0x358c1a(0xa2)](_0x55a090=>_0x55a090[_0x358c1a(0xd4)]===c[_0x358c1a(0xcf)][_0x358c1a(0xce)])['map'](_0x351636=>_0x351636['rangeId']))!=null?_0x19dfbd:[],_0x27e6a7=JSON['stringify'](_0x5b9126),_0x5b5693=_0x5d685c[_0x358c1a(0xbb)],_0x146508=_0x5d685c['id'],_0x24e180={'memberId':(await this[_0x358c1a(0xa9)][_0x358c1a(0xdb)](_0x44e88d))[_0x358c1a(0xab)](),'unitId':_0x44e88d,'threadId':_0x5b5693,'mention':_0x1b8221,'content':_0x27e6a7,'replyId':_0x146508},_0x3487f7=await this[_0x358c1a(0xba)]['post'](_0x358c1a(0xa3)+_0x44e88d+_0x358c1a(0xf8),{'body':_0x24e180});return!_0x3487f7[_0x358c1a(0xc2)][_0x358c1a(0xad)]||_0x3487f7['body'][_0x358c1a(0xad)][_0x358c1a(0xeb)]===0x1;}async['resolveComment'](_0x1c92aa){const _0x2b1dc6=_0x1549d6,{unitId:_0x114b1b}=_0x1c92aa,_0x3535f3=_0x1c92aa['threadId'],_0x333abb={'memberId':this[_0x2b1dc6(0xc1)]['getCurrentUser']()[_0x2b1dc6(0x99)],'unitId':_0x114b1b,'threadId':_0x3535f3,'solved':_0x1c92aa[_0x2b1dc6(0xea)]?I[_0x2b1dc6(0x95)]:I[_0x2b1dc6(0xae)]},_0x4052d8=await this[_0x2b1dc6(0xba)][_0x2b1dc6(0xb6)](_0x2b1dc6(0xa3)+_0x114b1b+_0x2b1dc6(0xa6),{'body':_0x333abb});return!_0x4052d8['body'][_0x2b1dc6(0xad)]||_0x4052d8[_0x2b1dc6(0xc2)][_0x2b1dc6(0xad)][_0x2b1dc6(0xeb)]===0x1;}async['deleteComment'](_0x172b4c,_0x51a899,_0x17c797,_0x3a35d6){const _0x20c850=_0x1549d6,_0x316211={'memberId':(await this[_0x20c850(0xa9)][_0x20c850(0xdb)](_0x172b4c))['getMemberID'](),'threadId':_0x17c797,'replyId':_0x3a35d6,'unitId':_0x172b4c},_0x34f02b=await this[_0x20c850(0xba)]['post'](_0x20c850(0xa3)+_0x172b4c+_0x20c850(0xb4),{'body':_0x316211});return!_0x34f02b[_0x20c850(0xc2)][_0x20c850(0xad)]||_0x34f02b[_0x20c850(0xc2)]['error']['code']===0x1;}async[_0x1549d6(0x92)](_0x520333,_0x52b3f5,_0x13e5fd){const _0x35a80c=_0x1549d6,_0x1d78b1={'unitId':_0x520333,'threadId':_0x13e5fd},_0x3dabc1=await this['_httpService'][_0x35a80c(0xb6)](_0x35a80c(0xa3)+_0x520333+'/list',{'body':_0x1d78b1}),_0x1770d6=_0x13e5fd[_0x35a80c(0x106)](_0x3503a1=>F(_0x3dabc1['body'][_0x35a80c(0x94)][_0x3503a1],_0x520333,_0x52b3f5))['filter'](Boolean);return Object[_0x35a80c(0x97)](_0x3dabc1[_0x35a80c(0xc2)][_0x35a80c(0xc0)])[_0x35a80c(0xd9)](_0x1a34ab=>{const _0x117962=_0x35a80c;this[_0x117962(0xc1)]['addUser'](_0x1a34ab);}),_0x1770d6;}[_0x1549d6(0xe8)](_0x3347ad){const _0x3adaa4=_0x1549d6;return{'id':_0x3347ad['id'],'threadId':_0x3347ad[_0x3adaa4(0xbb)],'ref':_0x3347ad[_0x3adaa4(0xfe)]};}};f=H([p(0x0,c[_0x1549d6(0xe3)](M[_0x1549d6(0xe6)])),p(0x1,c[_0x1549d6(0xe3)](c[_0x1549d6(0x8c)])),p(0x2,c[_0x1549d6(0xe3)](C[_0x1549d6(0x8d)])),p(0x3,c[_0x1549d6(0xe3)](c[_0x1549d6(0xf5)]))],f);var L=Object['defineProperty'],Z=Object['getOwnPropertyDescriptor'],W=(_0x331edb,_0x73c4de,_0x19bff1,_0xa1d6c4)=>{for(var _0x42cdeb=_0xa1d6c4>0x1?void 0x0:_0xa1d6c4?Z(_0x73c4de,_0x19bff1):_0x73c4de,_0x5b2ef9=_0x331edb['length']-0x1,_0x431c6b;_0x5b2ef9>=0x0;_0x5b2ef9--)(_0x431c6b=_0x331edb[_0x5b2ef9])&&(_0x42cdeb=(_0xa1d6c4?_0x431c6b(_0x73c4de,_0x19bff1,_0x42cdeb):_0x431c6b(_0x42cdeb))||_0x42cdeb);return _0xa1d6c4&&_0x42cdeb&&L(_0x73c4de,_0x19bff1,_0x42cdeb),_0x42cdeb;},O=(_0x4040bc,_0x181916)=>(_0x1ee382,_0x1ce335)=>_0x181916(_0x1ee382,_0x1ce335,_0x4040bc);let b=class extends c[_0x1549d6(0x104)]{constructor(_0x168539,_0x5298d1){const _0x40d750=_0x1549d6;super(),this['_threadCommentDataSourceService']=_0x168539,this['_threadCommentDataSource']=_0x5298d1,this[_0x40d750(0xc7)]();}[_0x1549d6(0xc7)](){const _0x4c6e74=_0x1549d6;this[_0x4c6e74(0x9c)]['dataSource']=this['_threadCommentDataSource'],this['_threadCommentDataSourceService'][_0x4c6e74(0xe9)]=!0x1;}};b=W([O(0x0,P[_0x1549d6(0xf6)]),O(0x1,c[_0x1549d6(0xe3)](f))],b);var j=Object['defineProperty'],B=Object[_0x1549d6(0xb0)],K=(_0x5319bb,_0x54e136,_0x37cd89)=>_0x54e136 in _0x5319bb?j(_0x5319bb,_0x54e136,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37cd89}):_0x5319bb[_0x54e136]=_0x37cd89,V=(_0x23766b,_0x163016,_0x4ee178,_0x178996)=>{const _0x13a405=_0x1549d6;for(var _0x27d4fc=_0x178996>0x1?void 0x0:_0x178996?B(_0x163016,_0x4ee178):_0x163016,_0xe9d0a9=_0x23766b[_0x13a405(0x9b)]-0x1,_0x17a23c;_0xe9d0a9>=0x0;_0xe9d0a9--)(_0x17a23c=_0x23766b[_0xe9d0a9])&&(_0x27d4fc=(_0x178996?_0x17a23c(_0x163016,_0x4ee178,_0x27d4fc):_0x17a23c(_0x27d4fc))||_0x27d4fc);return _0x178996&&_0x27d4fc&&j(_0x163016,_0x4ee178,_0x27d4fc),_0x27d4fc;},y=(_0x15e6ed,_0x2c5a97)=>(_0x337a67,_0x3a32a5)=>_0x2c5a97(_0x337a67,_0x3a32a5,_0x15e6ed),N=(_0x35a8ae,_0x2f4a12,_0x52d6a8)=>K(_0x35a8ae,typeof _0x2f4a12!=_0x1549d6(0xd6)?_0x2f4a12+'':_0x2f4a12,_0x52d6a8);exports[_0x1549d6(0xbe)]=class extends c[_0x1549d6(0xd1)]{constructor(_0xfd5c99=D,_0x51864c,_0x4ec7a4){const _0x230309=_0x1549d6;super(),this[_0x230309(0xe2)]=_0xfd5c99,this['_injector']=_0x51864c,this['_configService']=_0x4ec7a4;const {..._0x29bdc1}=c[_0x230309(0x8e)]({},D,this['_config']);this['_configService']['setConfig'](x,_0x29bdc1);}[_0x1549d6(0xf7)](){[[f],[b],[S]]['forEach'](_0x3ac2a3=>{const _0x162492=_0x5d29;this[_0x162492(0xa5)][_0x162492(0xaf)](_0x3ac2a3);});}[_0x1549d6(0xf2)](){const _0x481b54=_0x1549d6;this[_0x481b54(0xa5)][_0x481b54(0xc6)](b),this['_injector'][_0x481b54(0xc6)](S);}},N(exports[_0x1549d6(0xbe)],_0x1549d6(0x100),R),N(exports[_0x1549d6(0xbe)],'type',c[_0x1549d6(0xf3)]['UNIVER_UNKNOWN']),exports[_0x1549d6(0xbe)]=V([c[_0x1549d6(0xac)](w['UniverThreadCommentUIPlugin'],C['UniverCollaborationClientPlugin'],T[_0x1549d6(0xe4)]),y(0x1,c['Inject'](c[_0x1549d6(0xf5)])),y(0x2,c[_0x1549d6(0xda)])],exports[_0x1549d6(0xbe)]);
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
+ function _0x39b7(){const _0x25baad=['getUser','/universer-api/comment/unit/','Solve','userID','saveCommentToSnapshot','resolveComment','requireSession','thread-comment-data-source.config','users','_commentService','parse','post','get','_init','slice','Solved','type','UNRECOGNIZED','payload','symbol','createTimestamp','length','customRanges','disposeWithMe','getOwnPropertyDescriptor','1135QjwXpv','map','dataSource','16CjzLfj','root','commentUpdate$','/reply','_configService','7718568eTPDVc','subscribe','defineProperty','_injector','filter','9588460OIlVED','parentId','add','setConfig','syncUpdateMutationToColla','/list','39828liiwWf','replies','forEach','/solved','getComment','27mnFJof','/delete','OpenOrReOpen','find','_config','_sessionService','_httpService','values','UNIVER_UNKNOWN','replyId','rangeId','/universer-api/user/list','Reply','userId','_threadCommentDataSourceService','Add','/edit','updateComment','error','addComment','YYYY/MM/DD\x20HH:mm','getCurrentUser','body','solved','COMMENT','format','unitId','code','Edit','personId','getMemberID','_initUserSync','Unknown','threadId','_threadCommentModel','delete','143128GjLTHm','addUser','_threadCommentDataSource','192498JSLVyh','getUnit','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','20240690zlcmEM','user','/add','content','rangeType','_userService','deleteComment','resolved','_initDataSource','644085otUAhz','Delete'];_0x39b7=function(){return _0x25baad;};return _0x39b7();}const _0xb2cefb=_0x2139;(function(_0x3cdb01,_0xe93dfb){const _0x47a4ac=_0x2139,_0x16adc7=_0x3cdb01();while(!![]){try{const _0x3cafa4=parseInt(_0x47a4ac(0x160))/0x1*(-parseInt(_0x47a4ac(0x18a))/0x2)+-parseInt(_0x47a4ac(0x16c))/0x3+parseInt(_0x47a4ac(0x18f))/0x4+-parseInt(_0x47a4ac(0x187))/0x5*(-parseInt(_0x47a4ac(0x19a))/0x6)+parseInt(_0x47a4ac(0x194))/0x7+parseInt(_0x47a4ac(0x15d))/0x8*(-parseInt(_0x47a4ac(0x19f))/0x9)+-parseInt(_0x47a4ac(0x163))/0xa;if(_0x3cafa4===_0xe93dfb)break;else _0x16adc7['push'](_0x16adc7['shift']());}catch(_0x4d67ce){_0x16adc7['push'](_0x16adc7['shift']());}}}(_0x39b7,0xedc03));import{CommentService as _0xce5dc0,CollaborationSessionService as _0x510978,UniverCollaborationClientPlugin as _0xf10e65}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x5b4e07}from'@univerjs-pro/license';import{dayjs as _0x126894,UserManagerService as _0x3bdbd0,Inject as _0x175140,Injector as _0x337a27,Disposable as _0x130362,CustomRangeType as _0x4e3a56,UniverInstanceType as _0x3b5a87,DependentOn as _0x2f1801,Plugin as _0x341093,merge as _0x59cb66,IConfigService as _0x4779df}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x4be0c1}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x399eb5,IThreadCommentDataSourceService as _0xef3fc4}from'@univerjs/thread-comment';import{bufferTime as _0x472058}from'rxjs';import{HTTPService as _0x101e18}from'@univerjs/network';const B=_0xb2cefb(0x162);function _0x2139(_0x450861,_0x212b63){const _0x39b767=_0x39b7();return _0x2139=function(_0x21392,_0x2078f6){_0x21392=_0x21392-0x149;let _0x57c1b8=_0x39b767[_0x21392];return _0x57c1b8;},_0x2139(_0x450861,_0x212b63);}var v=(_0x54c9ab=>(_0x54c9ab[_0x54c9ab[_0xb2cefb(0x1a1)]=0x0]=_0xb2cefb(0x1a1),_0x54c9ab[_0x54c9ab['Solved']=0x1]='Solved',_0x54c9ab[_0x54c9ab[_0xb2cefb(0x17f)]=-0x1]=_0xb2cefb(0x17f),_0x54c9ab))(v||{}),p=(_0x5aa590=>(_0x5aa590[_0x5aa590[_0xb2cefb(0x159)]=0x0]=_0xb2cefb(0x159),_0x5aa590[_0x5aa590[_0xb2cefb(0x1ae)]=0x1]=_0xb2cefb(0x1ae),_0x5aa590[_0x5aa590[_0xb2cefb(0x1ab)]=0x2]=_0xb2cefb(0x1ab),_0x5aa590[_0x5aa590[_0xb2cefb(0x155)]=0x3]=_0xb2cefb(0x155),_0x5aa590[_0x5aa590[_0xb2cefb(0x16d)]=0x4]=_0xb2cefb(0x16d),_0x5aa590[_0x5aa590[_0xb2cefb(0x170)]=0x5]=_0xb2cefb(0x170),_0x5aa590[_0x5aa590['UNRECOGNIZED']=-0x1]=_0xb2cefb(0x17f),_0x5aa590))(p||{});const O=_0x4e9cf2=>_0x126894(new Date(+_0x4e9cf2))[_0xb2cefb(0x152)]('YYYY/MM/DD\x20HH:mm'),K=async(_0x3d1121,_0x16b1cf)=>{const _0xbeded7=_0xb2cefb,_0x3177e0=_0x3d1121[_0xbeded7(0x17a)](_0x3bdbd0),_0x463b55=_0x3d1121[_0xbeded7(0x17a)](_0x101e18);_0x16b1cf[_0xbeded7(0x19c)](_0xad7bdd=>{const _0x17dbb6=_0xbeded7;_0x3177e0[_0x17dbb6(0x16e)](_0xad7bdd)&&_0x16b1cf[_0x17dbb6(0x15c)](_0xad7bdd);}),_0x16b1cf['size']&&(await _0x463b55[_0xbeded7(0x17a)](_0xbeded7(0x1aa),{'params':{'userIDs':[..._0x16b1cf]}}))[_0xbeded7(0x14f)][_0xbeded7(0x176)]['forEach'](_0x3974ff=>{const _0x14546c=_0xbeded7;_0x3974ff&&_0x3177e0[_0x14546c(0x15e)](_0x3974ff);});};var V=Object[_0xb2cefb(0x191)],z=Object['getOwnPropertyDescriptor'],Q=(_0x138d37,_0x40c8e9,_0x274e4d,_0x29d359)=>{const _0x280245=_0xb2cefb;for(var _0x5f0397=_0x29d359>0x1?void 0x0:_0x29d359?z(_0x40c8e9,_0x274e4d):_0x40c8e9,_0x3b43cb=_0x138d37[_0x280245(0x183)]-0x1,_0x22f7d8;_0x3b43cb>=0x0;_0x3b43cb--)(_0x22f7d8=_0x138d37[_0x3b43cb])&&(_0x5f0397=(_0x29d359?_0x22f7d8(_0x40c8e9,_0x274e4d,_0x5f0397):_0x22f7d8(_0x5f0397))||_0x5f0397);return _0x29d359&&_0x5f0397&&V(_0x40c8e9,_0x274e4d,_0x5f0397),_0x5f0397;},_=(_0x9e383c,_0x4ebfe0)=>(_0x58d345,_0x575d08)=>_0x4ebfe0(_0x58d345,_0x575d08,_0x9e383c);let f=class extends _0x130362{constructor(_0x2c6a95,_0x419724,_0x25b9b1,_0x481e85){const _0x294746=_0xb2cefb;super(),this[_0x294746(0x177)]=_0x2c6a95,this[_0x294746(0x15b)]=_0x419724,this['_userService']=_0x25b9b1,this[_0x294746(0x192)]=_0x481e85,this[_0x294746(0x17b)](),this['_initUserSync']();}[_0xb2cefb(0x158)](){const _0x203629=_0xb2cefb;this[_0x203629(0x185)](this[_0x203629(0x15b)][_0x203629(0x18c)]['pipe'](_0x472058(0x10))['subscribe'](_0x393f74=>{const _0x5b3b8f=_0x203629,_0x25e6bc=new Set();_0x393f74[_0x5b3b8f(0x19c)](_0x5706e8=>{const _0x19fed5=_0x5b3b8f;switch(_0x5706e8[_0x19fed5(0x17e)]){case _0x19fed5(0x196):{const _0x28f700=_0x5706e8[_0x19fed5(0x180)][_0x19fed5(0x156)];_0x25e6bc[_0x19fed5(0x196)](_0x28f700);break;}}}),K(this[_0x5b3b8f(0x192)],_0x25e6bc);}));}[_0xb2cefb(0x17b)](){const _0x2cfc7b=_0xb2cefb;this[_0x2cfc7b(0x185)](this['_commentService'][_0x2cfc7b(0x18c)][_0x2cfc7b(0x190)](async _0x470350=>{const _0xed4446=_0x2cfc7b;var _0x392e4b,_0x1cbdc7,_0x3529f0,_0x29285e;const _0x4dead7=(_0x392e4b=this['_threadCommentModel'][_0xed4446(0x161)](_0x470350[_0xed4446(0x153)])[_0xed4446(0x1a2)](_0x2fd8a5=>_0x2fd8a5[_0xed4446(0x15a)]===_0x470350[_0xed4446(0x15a)]))==null?void 0x0:_0x392e4b[_0xed4446(0x18b)];if(!_0x4dead7)return;const {unitId:_0x1d5b2d,subUnitId:_0x5ccbc7}=_0x4dead7;switch(_0x470350[_0xed4446(0x164)]&&this[_0xed4446(0x168)]['addUser'](_0x470350['user']),_0x470350['type']){case p[_0xed4446(0x1ae)]:break;case p[_0xed4446(0x1ab)]:{this[_0xed4446(0x15b)][_0xed4446(0x14c)](_0x1d5b2d,_0x5ccbc7,{'unitId':_0x1d5b2d,'subUnitId':_0x5ccbc7,'ref':'','id':_0x470350[_0xed4446(0x1a8)],'dT':O(+_0x470350[_0xed4446(0x182)]),'threadId':_0x470350[_0xed4446(0x15a)],'personId':(_0x3529f0=(_0x1cbdc7=_0x470350[_0xed4446(0x164)])==null?void 0x0:_0x1cbdc7[_0xed4446(0x171)])!=null?_0x3529f0:_0x470350[_0xed4446(0x1ac)],'text':JSON['parse'](_0x470350[_0xed4446(0x166)]),'parentId':_0x4dead7['id']});break;}case p[_0xed4446(0x16d)]:{const _0x4adc16=this[_0xed4446(0x15b)][_0xed4446(0x19e)](_0x1d5b2d,_0x5ccbc7,_0x470350[_0xed4446(0x1a8)]);_0x4adc16&&_0x4adc16[_0xed4446(0x195)]&&this[_0xed4446(0x15b)][_0xed4446(0x169)](_0x1d5b2d,_0x5ccbc7,_0x470350['replyId']);break;}case p[_0xed4446(0x155)]:{this[_0xed4446(0x15b)]['updateComment'](_0x1d5b2d,_0x5ccbc7,{'commentId':_0x470350['replyId'],'text':JSON['parse'](_0x470350[_0xed4446(0x166)])});break;}case p[_0xed4446(0x170)]:{const _0x3987a3=(_0x29285e=this['_threadCommentModel']['getUnit'](_0x470350[_0xed4446(0x153)])[_0xed4446(0x1a2)](_0x1133ff=>_0x1133ff['threadId']===_0x470350['threadId']))==null?void 0x0:_0x29285e['root'];_0x3987a3&&this[_0xed4446(0x15b)]['resolveComment'](_0x1d5b2d,_0x5ccbc7,_0x3987a3['id'],_0x470350['solved']===v['Solved']);break;}}}));}};f=Q([_(0x0,_0x175140(_0xce5dc0)),_(0x1,_0x175140(_0x399eb5)),_(0x2,_0x175140(_0x3bdbd0)),_(0x3,_0x175140(_0x337a27))],f);const X=_0xb2cefb(0x175),P={};var k=Object[_0xb2cefb(0x191)],ee=Object[_0xb2cefb(0x186)],re=(_0x3a337a,_0x34a490,_0x1f615c,_0xbb50ac)=>{const _0x5827a7=_0xb2cefb;for(var _0x176b4b=_0xbb50ac>0x1?void 0x0:_0xbb50ac?ee(_0x34a490,_0x1f615c):_0x34a490,_0x316e94=_0x3a337a[_0x5827a7(0x183)]-0x1,_0x29b277;_0x316e94>=0x0;_0x316e94--)(_0x29b277=_0x3a337a[_0x316e94])&&(_0x176b4b=(_0xbb50ac?_0x29b277(_0x34a490,_0x1f615c,_0x176b4b):_0x29b277(_0x176b4b))||_0x176b4b);return _0xbb50ac&&_0x176b4b&&k(_0x34a490,_0x1f615c,_0x176b4b),_0x176b4b;},I=(_0x18311d,_0x25a7fa)=>(_0x37f7ad,_0x4cc96e)=>_0x25a7fa(_0x37f7ad,_0x4cc96e,_0x18311d);function te(_0x5f26b4,_0x350abd){const _0x949eec=_0xb2cefb,_0x3d0b4a=_0x5f26b4['replies'][0x0];return{..._0x350abd,'id':_0x3d0b4a[_0x949eec(0x1a8)],'resolved':_0x5f26b4['solved']===0x1,'dT':O(_0x3d0b4a[_0x949eec(0x182)]),'personId':_0x3d0b4a['userId'],'threadId':_0x3d0b4a[_0x949eec(0x15a)]};}function se(_0x4d3033,_0x303c40,_0x4ee917){const _0x29f33e=_0xb2cefb;var _0x1291fa,_0x1fd957;if(((_0x1fd957=(_0x1291fa=_0x4d3033==null?void 0x0:_0x4d3033[_0x29f33e(0x19b)])==null?void 0x0:_0x1291fa[_0x29f33e(0x183)])!=null?_0x1fd957:0x0)>0x0){const _0x3f7138=(_0x2eb4bc,_0x4e82ff)=>({'id':_0x2eb4bc[_0x29f33e(0x1a8)],'threadId':_0x2eb4bc[_0x29f33e(0x15a)],'dT':O(_0x2eb4bc[_0x29f33e(0x182)]),'personId':_0x2eb4bc[_0x29f33e(0x1ac)],'resolved':_0x4d3033[_0x29f33e(0x150)]===v[_0x29f33e(0x17d)],'unitId':_0x303c40,'subUnitId':_0x4ee917,'text':JSON[_0x29f33e(0x178)](_0x2eb4bc[_0x29f33e(0x166)]),'parentId':_0x4e82ff}),_0x58d6a3=_0x3f7138(_0x4d3033[_0x29f33e(0x19b)][0x0]);return{..._0x58d6a3,'children':_0x4d3033[_0x29f33e(0x19b)][_0x29f33e(0x17c)](0x1)[_0x29f33e(0x188)](_0x1b792d=>_0x3f7138(_0x1b792d,_0x58d6a3['id']))};}return null;}let S=class{constructor(_0x425f7e,_0x14dd59,_0x37b633,_0x78ee5e){const _0x300099=_0xb2cefb;this[_0x300099(0x1a5)]=_0x425f7e,this['_userService']=_0x14dd59,this[_0x300099(0x1a4)]=_0x37b633,this[_0x300099(0x192)]=_0x78ee5e;}async[_0xb2cefb(0x14c)](_0xfc2308){const _0x26717d=_0xb2cefb;var _0x56e0d9,_0xfdfa47;const {parentId:_0x2d79f5,unitId:_0x2ae79e,text:_0x2882ad,threadId:_0x5592fa}=_0xfc2308,_0x8aac86=(_0xfdfa47=(_0x56e0d9=_0x2882ad[_0x26717d(0x184)])==null?void 0x0:_0x56e0d9['filter'](_0x3ed04f=>_0x3ed04f[_0x26717d(0x167)]===_0x4e3a56[_0x26717d(0x151)])[_0x26717d(0x188)](_0x2e6bb4=>_0x2e6bb4[_0x26717d(0x1a9)]))!=null?_0xfdfa47:[],_0xf15a1c=JSON['stringify'](_0x2882ad),_0x582df1=(await this['_sessionService'][_0x26717d(0x174)](_0x2ae79e))[_0x26717d(0x157)]();if(_0x2d79f5){const _0x5ba790={'memberId':_0x582df1,'unitId':_0x2ae79e,'content':_0xf15a1c,'mention':_0x8aac86,'threadId':_0x5592fa},_0x542630=(await this[_0x26717d(0x1a5)][_0x26717d(0x179)](_0x26717d(0x16f)+_0x2ae79e+_0x26717d(0x18d),{'body':_0x5ba790}))[_0x26717d(0x14f)]['reply'];return{..._0xfc2308,'id':_0x542630[_0x26717d(0x1a8)],'dT':_0x126894(+_0x542630[_0x26717d(0x182)])['format'](_0x26717d(0x14d)),'personId':_0x542630[_0x26717d(0x1ac)]};}else{const _0x365d6f={'memberId':_0x582df1,'unitId':_0x2ae79e,'content':_0xf15a1c,'mention':_0x8aac86},_0x2f2e89=await this['_httpService'][_0x26717d(0x179)](_0x26717d(0x16f)+_0x2ae79e+_0x26717d(0x165),{'body':_0x365d6f});return te(_0x2f2e89[_0x26717d(0x14f)]['comment'],_0xfc2308);}}async[_0xb2cefb(0x14a)](_0x25af52){const _0x40360b=_0xb2cefb;var _0x1f53c3,_0x9ae9e;const {text:_0x489286,unitId:_0x1e3e43}=_0x25af52,_0x46c015=(_0x9ae9e=(_0x1f53c3=_0x489286[_0x40360b(0x184)])==null?void 0x0:_0x1f53c3[_0x40360b(0x193)](_0x555f46=>_0x555f46[_0x40360b(0x167)]===_0x4e3a56['COMMENT'])[_0x40360b(0x188)](_0xcad277=>_0xcad277[_0x40360b(0x1a9)]))!=null?_0x9ae9e:[],_0x3273c6=JSON['stringify'](_0x489286),_0x37d4a7=_0x25af52['threadId'],_0x27d1ff=_0x25af52['id'],_0x2a9a53={'memberId':(await this[_0x40360b(0x1a4)]['requireSession'](_0x1e3e43))[_0x40360b(0x157)](),'unitId':_0x1e3e43,'threadId':_0x37d4a7,'mention':_0x46c015,'content':_0x3273c6,'replyId':_0x27d1ff},_0x441493=await this[_0x40360b(0x1a5)][_0x40360b(0x179)](_0x40360b(0x16f)+_0x1e3e43+_0x40360b(0x149),{'body':_0x2a9a53});return!_0x441493[_0x40360b(0x14f)]['error']||_0x441493[_0x40360b(0x14f)]['error'][_0x40360b(0x154)]===0x1;}async[_0xb2cefb(0x173)](_0x1438a8){const _0x52f5b4=_0xb2cefb,{unitId:_0x24b8a8}=_0x1438a8,_0x217943=_0x1438a8[_0x52f5b4(0x15a)],_0x27a8c3={'memberId':this[_0x52f5b4(0x168)][_0x52f5b4(0x14e)]()[_0x52f5b4(0x171)],'unitId':_0x24b8a8,'threadId':_0x217943,'solved':_0x1438a8[_0x52f5b4(0x16a)]?v[_0x52f5b4(0x17d)]:v[_0x52f5b4(0x1a1)]},_0xf8b74b=await this[_0x52f5b4(0x1a5)][_0x52f5b4(0x179)](_0x52f5b4(0x16f)+_0x24b8a8+_0x52f5b4(0x19d),{'body':_0x27a8c3});return!_0xf8b74b[_0x52f5b4(0x14f)][_0x52f5b4(0x14b)]||_0xf8b74b[_0x52f5b4(0x14f)][_0x52f5b4(0x14b)][_0x52f5b4(0x154)]===0x1;}async[_0xb2cefb(0x169)](_0x45271d,_0x327790,_0x5ca23e,_0x19863d){const _0x9d1e1=_0xb2cefb,_0x34faae={'memberId':(await this[_0x9d1e1(0x1a4)]['requireSession'](_0x45271d))[_0x9d1e1(0x157)](),'threadId':_0x5ca23e,'replyId':_0x19863d,'unitId':_0x45271d},_0x30b8c7=await this[_0x9d1e1(0x1a5)]['post']('/universer-api/comment/unit/'+_0x45271d+_0x9d1e1(0x1a0),{'body':_0x34faae});return!_0x30b8c7[_0x9d1e1(0x14f)][_0x9d1e1(0x14b)]||_0x30b8c7[_0x9d1e1(0x14f)][_0x9d1e1(0x14b)][_0x9d1e1(0x154)]===0x1;}async['listComments'](_0x13a3cc,_0x468c8a,_0x36a19c){const _0x23bf5b=_0xb2cefb,_0x3c5e7c={'unitId':_0x13a3cc,'threadId':_0x36a19c},_0x10d3e=await this[_0x23bf5b(0x1a5)]['post'](_0x23bf5b(0x16f)+_0x13a3cc+_0x23bf5b(0x199),{'body':_0x3c5e7c}),_0x1a2bd4=_0x36a19c['map'](_0x34ab71=>se(_0x10d3e[_0x23bf5b(0x14f)]['comments'][_0x34ab71],_0x13a3cc,_0x468c8a))['filter'](Boolean);return Object[_0x23bf5b(0x1a6)](_0x10d3e[_0x23bf5b(0x14f)]['users'])['forEach'](_0x134e9b=>{const _0x47b10f=_0x23bf5b;this[_0x47b10f(0x168)]['addUser'](_0x134e9b);}),_0x1a2bd4;}[_0xb2cefb(0x172)](_0x2fed8e){return{'id':_0x2fed8e['id'],'threadId':_0x2fed8e['threadId'],'ref':_0x2fed8e['ref']};}};S=re([I(0x0,_0x175140(_0x101e18)),I(0x1,_0x175140(_0x3bdbd0)),I(0x2,_0x175140(_0x510978)),I(0x3,_0x175140(_0x337a27))],S);var oe=Object[_0xb2cefb(0x191)],ne=Object[_0xb2cefb(0x186)],ie=(_0x41cfad,_0x141c18,_0x250607,_0x2aa389)=>{for(var _0x3ceb61=_0x2aa389>0x1?void 0x0:_0x2aa389?ne(_0x141c18,_0x250607):_0x141c18,_0xcb5884=_0x41cfad['length']-0x1,_0x4c29b6;_0xcb5884>=0x0;_0xcb5884--)(_0x4c29b6=_0x41cfad[_0xcb5884])&&(_0x3ceb61=(_0x2aa389?_0x4c29b6(_0x141c18,_0x250607,_0x3ceb61):_0x4c29b6(_0x3ceb61))||_0x3ceb61);return _0x2aa389&&_0x3ceb61&&oe(_0x141c18,_0x250607,_0x3ceb61),_0x3ceb61;},M=(_0x5dda87,_0x3a32da)=>(_0x4e130d,_0x5654dd)=>_0x3a32da(_0x4e130d,_0x5654dd,_0x5dda87);let b=class extends _0x130362{constructor(_0x456fef,_0x4a335c){const _0x3ca059=_0xb2cefb;super(),this['_threadCommentDataSourceService']=_0x456fef,this['_threadCommentDataSource']=_0x4a335c,this[_0x3ca059(0x16b)]();}[_0xb2cefb(0x16b)](){const _0x50be81=_0xb2cefb;this[_0x50be81(0x1ad)][_0x50be81(0x189)]=this[_0x50be81(0x15f)],this['_threadCommentDataSourceService'][_0x50be81(0x198)]=!0x1;}};b=ie([M(0x0,_0xef3fc4),M(0x1,_0x175140(S))],b);var $=Object[_0xb2cefb(0x191)],ce=Object[_0xb2cefb(0x186)],ae=(_0x253e30,_0x1e6fc0,_0x26eecf)=>_0x1e6fc0 in _0x253e30?$(_0x253e30,_0x1e6fc0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26eecf}):_0x253e30[_0x1e6fc0]=_0x26eecf,de=(_0x164118,_0x2e6198,_0x592a61,_0x3ca5ff)=>{const _0xe809a4=_0xb2cefb;for(var _0x2df2cc=_0x3ca5ff>0x1?void 0x0:_0x3ca5ff?ce(_0x2e6198,_0x592a61):_0x2e6198,_0x53fed4=_0x164118[_0xe809a4(0x183)]-0x1,_0x1630d0;_0x53fed4>=0x0;_0x53fed4--)(_0x1630d0=_0x164118[_0x53fed4])&&(_0x2df2cc=(_0x3ca5ff?_0x1630d0(_0x2e6198,_0x592a61,_0x2df2cc):_0x1630d0(_0x2df2cc))||_0x2df2cc);return _0x3ca5ff&&_0x2df2cc&&$(_0x2e6198,_0x592a61,_0x2df2cc),_0x2df2cc;},N=(_0x4555a1,_0x48712c)=>(_0x166a03,_0xedd2d8)=>_0x48712c(_0x166a03,_0xedd2d8,_0x4555a1),j=(_0x43353f,_0x391b88,_0x23bfaf)=>ae(_0x43353f,typeof _0x391b88!=_0xb2cefb(0x181)?_0x391b88+'':_0x391b88,_0x23bfaf);let C=class extends _0x341093{constructor(_0x11dc78=P,_0x33b968,_0x1848df){const _0xb43f6f=_0xb2cefb;super(),this[_0xb43f6f(0x1a3)]=_0x11dc78,this[_0xb43f6f(0x192)]=_0x33b968,this[_0xb43f6f(0x18e)]=_0x1848df;const {..._0x4084df}=_0x59cb66({},P,this[_0xb43f6f(0x1a3)]);this[_0xb43f6f(0x18e)][_0xb43f6f(0x197)](X,_0x4084df);}['onStarting'](){const _0x1eae93=_0xb2cefb;[[S],[b],[f]][_0x1eae93(0x19c)](_0x51472e=>{const _0xd8980=_0x1eae93;this[_0xd8980(0x192)][_0xd8980(0x196)](_0x51472e);});}['onReady'](){const _0x55b38f=_0xb2cefb;this[_0x55b38f(0x192)][_0x55b38f(0x17a)](b),this[_0x55b38f(0x192)][_0x55b38f(0x17a)](f);}};j(C,'pluginName',B),j(C,_0xb2cefb(0x17e),_0x3b5a87[_0xb2cefb(0x1a7)]),C=de([_0x2f1801(_0x4be0c1,_0xf10e65,_0x5b4e07),N(0x1,_0x175140(_0x337a27)),N(0x2,_0x4779df)],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 _0x5a0b(_0x3ae785,_0x4ae665){const _0x48ac40=_0x48ac();return _0x5a0b=function(_0x5a0ba5,_0x270aca){_0x5a0ba5=_0x5a0ba5-0x1c0;let _0x316137=_0x48ac40[_0x5a0ba5];return _0x316137;},_0x5a0b(_0x3ae785,_0x4ae665);}function _0x48ac(){const _0x195ea5=['@univerjs-pro/collaboration-client','disposeWithMe','Add','replyId','userId','_commentService','Inject','Edit','_initUserSync','UNRECOGNIZED','forEach','threadId','dataSource','dayjs','object','pluginName','setConfig','parentId','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','requireSession','stringify','Unknown','rxjs','slice','length','CommentService','solved','UniverInstanceType','rangeType','toStringTag','Delete','getUnit','payload','Plugin','bufferTime','type','userID','_config','thread-comment-data-source.config','HTTPService','_initDataSource','unitId','subscribe','UniverNetwork','code','add','user','UniverThreadCommentUIPlugin','get','/solved','OpenOrReOpen','error','body','@univerjs/thread-comment-ui','Injector','_threadCommentDataSourceService','resolved','783070ssmFhc','/universer-api/user/list','resolveComment','format','map','UniverThreadCommentUi','customRanges','updateComment','Disposable','replies','symbol','2668456MladWV','/universer-api/comment/unit/','Solve','getOwnPropertyDescriptor','post','onStarting','_userService','rangeId','6GYNCeS','/list','UniverProLicense','73394qcBZmI','CustomRangeType','getCurrentUser','addComment','exports','defineProperty','amd','604192bXnPIT','@univerjs/core','36PUAQXN','Solved','personId','2332218ILskjg','root','_threadCommentDataSource','UNIVER_UNKNOWN','comments','find','content','parse','users','COMMENT','_init','128421TAQqTl','@univerjs/network','reply','UniverThreadCommentDataSourcePlugin','_httpService','getComment','getMemberID','3592660bdXCIK','@univerjs/thread-comment','_injector','8nmEAeW','onReady','Reply','UniverLicensePlugin','_sessionService','IConfigService','_threadCommentModel','addUser','deleteComment','ThreadCommentModel','YYYY/MM/DD\x20HH:mm','filter','syncUpdateMutationToColla','UserManagerService','commentUpdate$','CollaborationSessionService','UniverThreadComment','createTimestamp','_configService'];_0x48ac=function(){return _0x195ea5;};return _0x48ac();}(function(_0x3ba83e,_0x34dcdf){const _0x292210=_0x5a0b,_0x1a8ef2=_0x3ba83e();while(!![]){try{const _0x4d0b55=parseInt(_0x292210(0x1f4))/0x1+parseInt(_0x292210(0x215))/0x2*(-parseInt(_0x292210(0x20b))/0x3)+parseInt(_0x292210(0x1fb))/0x4+parseInt(_0x292210(0x212))/0x5+-parseInt(_0x292210(0x1f1))/0x6*(-parseInt(_0x292210(0x200))/0x7)+-parseInt(_0x292210(0x1e9))/0x8+parseInt(_0x292210(0x1fd))/0x9*(-parseInt(_0x292210(0x1de))/0xa);if(_0x4d0b55===_0x34dcdf)break;else _0x1a8ef2['push'](_0x1a8ef2['shift']());}catch(_0x5c9467){_0x1a8ef2['push'](_0x1a8ef2['shift']());}}}(_0x48ac,0x6fd97),function(_0x287510,_0x11bcbc){const _0x5d93c8=_0x5a0b;typeof exports==_0x5d93c8(0x236)&&typeof module<'u'?_0x11bcbc(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require(_0x5d93c8(0x1fc)),require(_0x5d93c8(0x1da)),require(_0x5d93c8(0x213)),require(_0x5d93c8(0x23e)),require('@univerjs/network')):typeof define=='function'&&define[_0x5d93c8(0x1fa)]?define([_0x5d93c8(0x1f8),_0x5d93c8(0x228),'@univerjs-pro/license',_0x5d93c8(0x1fc),'@univerjs/thread-comment-ui',_0x5d93c8(0x213),'rxjs',_0x5d93c8(0x20c)],_0x11bcbc):(_0x287510=typeof globalThis<'u'?globalThis:_0x287510||self,_0x11bcbc(_0x287510['UniverProThreadCommentDatasource']={},_0x287510['UniverProCollaborationClient'],_0x287510[_0x5d93c8(0x1f3)],_0x287510['UniverCore'],_0x287510[_0x5d93c8(0x1e3)],_0x287510[_0x5d93c8(0x225)],_0x287510[_0x5d93c8(0x23e)],_0x287510[_0x5d93c8(0x1d0)]));}(this,function(_0x376163,_0x276753,_0x5a84a0,_0x1fb8c0,_0x3cbda3,_0x104cb1,_0x36a777,_0x57201e){'use strict';const _0x4d9f9a=_0x5a0b;const _0x20cc89=_0x4d9f9a(0x23a);var _0x2eff32=(_0x407f31=>(_0x407f31[_0x407f31[_0x4d9f9a(0x1d7)]=0x0]='OpenOrReOpen',_0x407f31[_0x407f31[_0x4d9f9a(0x1fe)]=0x1]=_0x4d9f9a(0x1fe),_0x407f31[_0x407f31[_0x4d9f9a(0x231)]=-0x1]='UNRECOGNIZED',_0x407f31))(_0x2eff32||{}),_0x41aaba=(_0x27dcb2=>(_0x27dcb2[_0x27dcb2['Unknown']=0x0]=_0x4d9f9a(0x23d),_0x27dcb2[_0x27dcb2['Add']=0x1]=_0x4d9f9a(0x22a),_0x27dcb2[_0x27dcb2[_0x4d9f9a(0x217)]=0x2]=_0x4d9f9a(0x217),_0x27dcb2[_0x27dcb2[_0x4d9f9a(0x22f)]=0x3]='Edit',_0x27dcb2[_0x27dcb2[_0x4d9f9a(0x1c3)]=0x4]=_0x4d9f9a(0x1c3),_0x27dcb2[_0x27dcb2['Solve']=0x5]=_0x4d9f9a(0x1eb),_0x27dcb2[_0x27dcb2[_0x4d9f9a(0x231)]=-0x1]='UNRECOGNIZED',_0x27dcb2))(_0x41aaba||{});const _0x376d2e=_0x1aee35=>_0x1fb8c0[_0x4d9f9a(0x235)](new Date(+_0x1aee35))[_0x4d9f9a(0x1e1)](_0x4d9f9a(0x21f)),_0x201389=async(_0x3be564,_0x107b2d)=>{const _0x3dc7ee=_0x4d9f9a,_0xbe6bdf=_0x3be564[_0x3dc7ee(0x1d5)](_0x1fb8c0['UserManagerService']),_0x250cb1=_0x3be564[_0x3dc7ee(0x1d5)](_0x57201e[_0x3dc7ee(0x1cc)]);_0x107b2d[_0x3dc7ee(0x232)](_0x24b195=>{_0xbe6bdf['getUser'](_0x24b195)&&_0x107b2d['delete'](_0x24b195);}),_0x107b2d['size']&&(await _0x250cb1[_0x3dc7ee(0x1d5)](_0x3dc7ee(0x1df),{'params':{'userIDs':[..._0x107b2d]}}))[_0x3dc7ee(0x1d9)][_0x3dc7ee(0x208)][_0x3dc7ee(0x232)](_0x395e79=>{const _0x498afc=_0x3dc7ee;_0x395e79&&_0xbe6bdf[_0x498afc(0x21c)](_0x395e79);});};var _0x2354d0=Object[_0x4d9f9a(0x1f9)],_0x2d2acd=Object['getOwnPropertyDescriptor'],_0x2f6c96=(_0x5dcd00,_0x46b7ca,_0x38e899,_0x27738d)=>{const _0x1c7806=_0x4d9f9a;for(var _0x37acd7=_0x27738d>0x1?void 0x0:_0x27738d?_0x2d2acd(_0x46b7ca,_0x38e899):_0x46b7ca,_0xa983e7=_0x5dcd00[_0x1c7806(0x240)]-0x1,_0x35ef98;_0xa983e7>=0x0;_0xa983e7--)(_0x35ef98=_0x5dcd00[_0xa983e7])&&(_0x37acd7=(_0x27738d?_0x35ef98(_0x46b7ca,_0x38e899,_0x37acd7):_0x35ef98(_0x37acd7))||_0x37acd7);return _0x27738d&&_0x37acd7&&_0x2354d0(_0x46b7ca,_0x38e899,_0x37acd7),_0x37acd7;},_0xa5461b=(_0x24260b,_0x3c0c18)=>(_0x3fa041,_0x17ddc0)=>_0x3c0c18(_0x3fa041,_0x17ddc0,_0x24260b);let _0x10335a=class extends _0x1fb8c0['Disposable']{constructor(_0x41424a,_0x2fbbbc,_0x2dcfe2,_0x84bd55){const _0x3763b2=_0x4d9f9a;super(),this[_0x3763b2(0x22d)]=_0x41424a,this[_0x3763b2(0x21b)]=_0x2fbbbc,this['_userService']=_0x2dcfe2,this[_0x3763b2(0x214)]=_0x84bd55,this[_0x3763b2(0x20a)](),this[_0x3763b2(0x230)]();}[_0x4d9f9a(0x230)](){const _0x3095af=_0x4d9f9a;this['disposeWithMe'](this[_0x3095af(0x21b)]['commentUpdate$']['pipe'](_0x36a777[_0x3095af(0x1c7)](0x10))[_0x3095af(0x1cf)](_0xe0c0b7=>{const _0x2db191=_0x3095af,_0x1acbf2=new Set();_0xe0c0b7[_0x2db191(0x232)](_0x492274=>{const _0x3b65bc=_0x2db191;switch(_0x492274[_0x3b65bc(0x1c8)]){case _0x3b65bc(0x1d2):{const _0xf6a7f6=_0x492274[_0x3b65bc(0x1c5)][_0x3b65bc(0x1ff)];_0x1acbf2[_0x3b65bc(0x1d2)](_0xf6a7f6);break;}}}),_0x201389(this[_0x2db191(0x214)],_0x1acbf2);}));}[_0x4d9f9a(0x20a)](){const _0x373649=_0x4d9f9a;this[_0x373649(0x229)](this['_commentService'][_0x373649(0x223)][_0x373649(0x1cf)](async _0x13d02e=>{const _0x4d7bff=_0x373649;var _0x544314,_0x34d07b,_0x5b7972,_0x1b5016;const _0x4c26cb=(_0x544314=this[_0x4d7bff(0x21b)][_0x4d7bff(0x1c4)](_0x13d02e[_0x4d7bff(0x1ce)])[_0x4d7bff(0x205)](_0x3c7cc4=>_0x3c7cc4[_0x4d7bff(0x233)]===_0x13d02e[_0x4d7bff(0x233)]))==null?void 0x0:_0x544314[_0x4d7bff(0x201)];if(!_0x4c26cb)return;const {unitId:_0x5bb92e,subUnitId:_0x126213}=_0x4c26cb;switch(_0x13d02e[_0x4d7bff(0x1d3)]&&this[_0x4d7bff(0x1ef)][_0x4d7bff(0x21c)](_0x13d02e['user']),_0x13d02e['type']){case _0x41aaba[_0x4d7bff(0x22a)]:break;case _0x41aaba['Reply']:{this[_0x4d7bff(0x21b)][_0x4d7bff(0x1f7)](_0x5bb92e,_0x126213,{'unitId':_0x5bb92e,'subUnitId':_0x126213,'ref':'','id':_0x13d02e['replyId'],'dT':_0x376d2e(+_0x13d02e['createTimestamp']),'threadId':_0x13d02e['threadId'],'personId':(_0x5b7972=(_0x34d07b=_0x13d02e[_0x4d7bff(0x1d3)])==null?void 0x0:_0x34d07b[_0x4d7bff(0x1c9)])!=null?_0x5b7972:_0x13d02e[_0x4d7bff(0x22c)],'text':JSON['parse'](_0x13d02e[_0x4d7bff(0x206)]),'parentId':_0x4c26cb['id']});break;}case _0x41aaba[_0x4d7bff(0x1c3)]:{const _0x1c998d=this[_0x4d7bff(0x21b)][_0x4d7bff(0x210)](_0x5bb92e,_0x126213,_0x13d02e[_0x4d7bff(0x22b)]);_0x1c998d&&_0x1c998d[_0x4d7bff(0x239)]&&this['_threadCommentModel'][_0x4d7bff(0x21d)](_0x5bb92e,_0x126213,_0x13d02e[_0x4d7bff(0x22b)]);break;}case _0x41aaba[_0x4d7bff(0x22f)]:{this['_threadCommentModel'][_0x4d7bff(0x1e5)](_0x5bb92e,_0x126213,{'commentId':_0x13d02e[_0x4d7bff(0x22b)],'text':JSON['parse'](_0x13d02e[_0x4d7bff(0x206)])});break;}case _0x41aaba[_0x4d7bff(0x1eb)]:{const _0x3297b9=(_0x1b5016=this[_0x4d7bff(0x21b)][_0x4d7bff(0x1c4)](_0x13d02e['unitId'])[_0x4d7bff(0x205)](_0x97ac66=>_0x97ac66['threadId']===_0x13d02e[_0x4d7bff(0x233)]))==null?void 0x0:_0x1b5016[_0x4d7bff(0x201)];_0x3297b9&&this[_0x4d7bff(0x21b)]['resolveComment'](_0x5bb92e,_0x126213,_0x3297b9['id'],_0x13d02e[_0x4d7bff(0x242)]===_0x2eff32[_0x4d7bff(0x1fe)]);break;}}}));}};_0x10335a=_0x2f6c96([_0xa5461b(0x0,_0x1fb8c0[_0x4d9f9a(0x22e)](_0x276753[_0x4d9f9a(0x241)])),_0xa5461b(0x1,_0x1fb8c0['Inject'](_0x104cb1[_0x4d9f9a(0x21e)])),_0xa5461b(0x2,_0x1fb8c0[_0x4d9f9a(0x22e)](_0x1fb8c0[_0x4d9f9a(0x222)])),_0xa5461b(0x3,_0x1fb8c0[_0x4d9f9a(0x22e)](_0x1fb8c0[_0x4d9f9a(0x1db)]))],_0x10335a);const _0xc7f234=_0x4d9f9a(0x1cb),_0x41f537={};var _0x1ab47e=Object['defineProperty'],_0x53fc3b=Object[_0x4d9f9a(0x1ec)],_0x3cbbc6=(_0x2ad72f,_0x17dbb0,_0x1c515e,_0x3db944)=>{for(var _0x46eed2=_0x3db944>0x1?void 0x0:_0x3db944?_0x53fc3b(_0x17dbb0,_0x1c515e):_0x17dbb0,_0x2cf0c4=_0x2ad72f['length']-0x1,_0x458062;_0x2cf0c4>=0x0;_0x2cf0c4--)(_0x458062=_0x2ad72f[_0x2cf0c4])&&(_0x46eed2=(_0x3db944?_0x458062(_0x17dbb0,_0x1c515e,_0x46eed2):_0x458062(_0x46eed2))||_0x46eed2);return _0x3db944&&_0x46eed2&&_0x1ab47e(_0x17dbb0,_0x1c515e,_0x46eed2),_0x46eed2;},_0x5108be=(_0x2142fe,_0x2ad189)=>(_0x369432,_0x159ec9)=>_0x2ad189(_0x369432,_0x159ec9,_0x2142fe);function _0x3c60a8(_0x19774a,_0x509fdc){const _0x5bb327=_0x4d9f9a,_0x4169f4=_0x19774a[_0x5bb327(0x1e7)][0x0];return{..._0x509fdc,'id':_0x4169f4[_0x5bb327(0x22b)],'resolved':_0x19774a[_0x5bb327(0x242)]===0x1,'dT':_0x376d2e(_0x4169f4[_0x5bb327(0x226)]),'personId':_0x4169f4[_0x5bb327(0x22c)],'threadId':_0x4169f4[_0x5bb327(0x233)]};}function _0x49bdf8(_0x48c830,_0x6cc767,_0x2a4672){const _0x139df5=_0x4d9f9a;var _0x1b1548,_0x8b784e;if(((_0x8b784e=(_0x1b1548=_0x48c830==null?void 0x0:_0x48c830[_0x139df5(0x1e7)])==null?void 0x0:_0x1b1548[_0x139df5(0x240)])!=null?_0x8b784e:0x0)>0x0){const _0x509e37=(_0x2a65b6,_0x155886)=>({'id':_0x2a65b6[_0x139df5(0x22b)],'threadId':_0x2a65b6['threadId'],'dT':_0x376d2e(_0x2a65b6[_0x139df5(0x226)]),'personId':_0x2a65b6[_0x139df5(0x22c)],'resolved':_0x48c830['solved']===_0x2eff32[_0x139df5(0x1fe)],'unitId':_0x6cc767,'subUnitId':_0x2a4672,'text':JSON[_0x139df5(0x207)](_0x2a65b6[_0x139df5(0x206)]),'parentId':_0x155886}),_0x420cd8=_0x509e37(_0x48c830[_0x139df5(0x1e7)][0x0]);return{..._0x420cd8,'children':_0x48c830[_0x139df5(0x1e7)][_0x139df5(0x23f)](0x1)['map'](_0x1dce82=>_0x509e37(_0x1dce82,_0x420cd8['id']))};}return null;}let _0x49a9ec=class{constructor(_0x38a0c8,_0x55894a,_0x3fd161,_0x4ebc5a){const _0xe17a12=_0x4d9f9a;this[_0xe17a12(0x20f)]=_0x38a0c8,this[_0xe17a12(0x1ef)]=_0x55894a,this[_0xe17a12(0x219)]=_0x3fd161,this[_0xe17a12(0x214)]=_0x4ebc5a;}async['addComment'](_0x2ef58a){const _0x3a47a2=_0x4d9f9a;var _0x3ceab5,_0x239460;const {parentId:_0x4989dc,unitId:_0x1d355e,text:_0x5d1bc9,threadId:_0x37e51a}=_0x2ef58a,_0x444d9e=(_0x239460=(_0x3ceab5=_0x5d1bc9['customRanges'])==null?void 0x0:_0x3ceab5[_0x3a47a2(0x220)](_0x2dfd8f=>_0x2dfd8f['rangeType']===_0x1fb8c0[_0x3a47a2(0x1f5)][_0x3a47a2(0x209)])['map'](_0x3131f4=>_0x3131f4['rangeId']))!=null?_0x239460:[],_0x3b6828=JSON[_0x3a47a2(0x23c)](_0x5d1bc9),_0xace7f6=(await this[_0x3a47a2(0x219)]['requireSession'](_0x1d355e))['getMemberID']();if(_0x4989dc){const _0x63e140={'memberId':_0xace7f6,'unitId':_0x1d355e,'content':_0x3b6828,'mention':_0x444d9e,'threadId':_0x37e51a},_0x26145a=(await this[_0x3a47a2(0x20f)][_0x3a47a2(0x1ed)](_0x3a47a2(0x1ea)+_0x1d355e+'/reply',{'body':_0x63e140}))[_0x3a47a2(0x1d9)][_0x3a47a2(0x20d)];return{..._0x2ef58a,'id':_0x26145a[_0x3a47a2(0x22b)],'dT':_0x1fb8c0['dayjs'](+_0x26145a[_0x3a47a2(0x226)])[_0x3a47a2(0x1e1)](_0x3a47a2(0x21f)),'personId':_0x26145a[_0x3a47a2(0x22c)]};}else{const _0x378200={'memberId':_0xace7f6,'unitId':_0x1d355e,'content':_0x3b6828,'mention':_0x444d9e},_0x5a1b7a=await this[_0x3a47a2(0x20f)][_0x3a47a2(0x1ed)]('/universer-api/comment/unit/'+_0x1d355e+'/add',{'body':_0x378200});return _0x3c60a8(_0x5a1b7a['body']['comment'],_0x2ef58a);}}async[_0x4d9f9a(0x1e5)](_0x90e89a){const _0x3a6033=_0x4d9f9a;var _0xd74a3e,_0x4f0238;const {text:_0x595df0,unitId:_0x4272ab}=_0x90e89a,_0x50d7e3=(_0x4f0238=(_0xd74a3e=_0x595df0[_0x3a6033(0x1e4)])==null?void 0x0:_0xd74a3e[_0x3a6033(0x220)](_0x2d99d7=>_0x2d99d7[_0x3a6033(0x1c1)]===_0x1fb8c0['CustomRangeType']['COMMENT'])[_0x3a6033(0x1e2)](_0x340cfb=>_0x340cfb[_0x3a6033(0x1f0)]))!=null?_0x4f0238:[],_0x7f45a=JSON[_0x3a6033(0x23c)](_0x595df0),_0x59e0c4=_0x90e89a[_0x3a6033(0x233)],_0x104bf9=_0x90e89a['id'],_0x5004cd={'memberId':(await this[_0x3a6033(0x219)]['requireSession'](_0x4272ab))[_0x3a6033(0x211)](),'unitId':_0x4272ab,'threadId':_0x59e0c4,'mention':_0x50d7e3,'content':_0x7f45a,'replyId':_0x104bf9},_0x1e2c7e=await this['_httpService'][_0x3a6033(0x1ed)](_0x3a6033(0x1ea)+_0x4272ab+'/edit',{'body':_0x5004cd});return!_0x1e2c7e['body'][_0x3a6033(0x1d8)]||_0x1e2c7e['body'][_0x3a6033(0x1d8)][_0x3a6033(0x1d1)]===0x1;}async[_0x4d9f9a(0x1e0)](_0x482997){const _0x27f68b=_0x4d9f9a,{unitId:_0x83ce0}=_0x482997,_0x5b23e4=_0x482997[_0x27f68b(0x233)],_0x4ca9f9={'memberId':this[_0x27f68b(0x1ef)][_0x27f68b(0x1f6)]()[_0x27f68b(0x1c9)],'unitId':_0x83ce0,'threadId':_0x5b23e4,'solved':_0x482997[_0x27f68b(0x1dd)]?_0x2eff32[_0x27f68b(0x1fe)]:_0x2eff32[_0x27f68b(0x1d7)]},_0x4c3493=await this['_httpService']['post'](_0x27f68b(0x1ea)+_0x83ce0+_0x27f68b(0x1d6),{'body':_0x4ca9f9});return!_0x4c3493['body']['error']||_0x4c3493[_0x27f68b(0x1d9)]['error'][_0x27f68b(0x1d1)]===0x1;}async['deleteComment'](_0x7a2a9a,_0x23443c,_0x3d313a,_0xc82788){const _0x282be2=_0x4d9f9a,_0x23fe2b={'memberId':(await this[_0x282be2(0x219)][_0x282be2(0x23b)](_0x7a2a9a))[_0x282be2(0x211)](),'threadId':_0x3d313a,'replyId':_0xc82788,'unitId':_0x7a2a9a},_0x4f5f5f=await this['_httpService'][_0x282be2(0x1ed)](_0x282be2(0x1ea)+_0x7a2a9a+'/delete',{'body':_0x23fe2b});return!_0x4f5f5f[_0x282be2(0x1d9)][_0x282be2(0x1d8)]||_0x4f5f5f[_0x282be2(0x1d9)]['error'][_0x282be2(0x1d1)]===0x1;}async['listComments'](_0x41976e,_0x3eaf56,_0x2bb3e4){const _0x160704=_0x4d9f9a,_0x2252e3={'unitId':_0x41976e,'threadId':_0x2bb3e4},_0x1aa5c7=await this['_httpService'][_0x160704(0x1ed)]('/universer-api/comment/unit/'+_0x41976e+_0x160704(0x1f2),{'body':_0x2252e3}),_0x34d2d6=_0x2bb3e4[_0x160704(0x1e2)](_0x53ee28=>_0x49bdf8(_0x1aa5c7['body'][_0x160704(0x204)][_0x53ee28],_0x41976e,_0x3eaf56))[_0x160704(0x220)](Boolean);return Object['values'](_0x1aa5c7[_0x160704(0x1d9)][_0x160704(0x208)])[_0x160704(0x232)](_0x270652=>{const _0x22b15a=_0x160704;this[_0x22b15a(0x1ef)]['addUser'](_0x270652);}),_0x34d2d6;}['saveCommentToSnapshot'](_0x1c2aab){const _0x9c3792=_0x4d9f9a;return{'id':_0x1c2aab['id'],'threadId':_0x1c2aab[_0x9c3792(0x233)],'ref':_0x1c2aab['ref']};}};_0x49a9ec=_0x3cbbc6([_0x5108be(0x0,_0x1fb8c0[_0x4d9f9a(0x22e)](_0x57201e[_0x4d9f9a(0x1cc)])),_0x5108be(0x1,_0x1fb8c0[_0x4d9f9a(0x22e)](_0x1fb8c0[_0x4d9f9a(0x222)])),_0x5108be(0x2,_0x1fb8c0[_0x4d9f9a(0x22e)](_0x276753[_0x4d9f9a(0x224)])),_0x5108be(0x3,_0x1fb8c0[_0x4d9f9a(0x22e)](_0x1fb8c0[_0x4d9f9a(0x1db)]))],_0x49a9ec);var _0x3c4331=Object[_0x4d9f9a(0x1f9)],_0x33339e=Object[_0x4d9f9a(0x1ec)],_0x553b50=(_0x48683b,_0x40823b,_0x494600,_0x3bcbde)=>{const _0x19cf45=_0x4d9f9a;for(var _0x1d24b8=_0x3bcbde>0x1?void 0x0:_0x3bcbde?_0x33339e(_0x40823b,_0x494600):_0x40823b,_0x1d0735=_0x48683b[_0x19cf45(0x240)]-0x1,_0x5d4d29;_0x1d0735>=0x0;_0x1d0735--)(_0x5d4d29=_0x48683b[_0x1d0735])&&(_0x1d24b8=(_0x3bcbde?_0x5d4d29(_0x40823b,_0x494600,_0x1d24b8):_0x5d4d29(_0x1d24b8))||_0x1d24b8);return _0x3bcbde&&_0x1d24b8&&_0x3c4331(_0x40823b,_0x494600,_0x1d24b8),_0x1d24b8;},_0x22ab3a=(_0x60cca3,_0x119591)=>(_0x5a13c7,_0x19803d)=>_0x119591(_0x5a13c7,_0x19803d,_0x60cca3);let _0x551b50=class extends _0x1fb8c0[_0x4d9f9a(0x1e6)]{constructor(_0x4c7f0c,_0x3fb064){const _0xb93e2e=_0x4d9f9a;super(),this[_0xb93e2e(0x1dc)]=_0x4c7f0c,this[_0xb93e2e(0x202)]=_0x3fb064,this[_0xb93e2e(0x1cd)]();}[_0x4d9f9a(0x1cd)](){const _0x17c8af=_0x4d9f9a;this[_0x17c8af(0x1dc)][_0x17c8af(0x234)]=this['_threadCommentDataSource'],this['_threadCommentDataSourceService'][_0x17c8af(0x221)]=!0x1;}};_0x551b50=_0x553b50([_0x22ab3a(0x0,_0x104cb1['IThreadCommentDataSourceService']),_0x22ab3a(0x1,_0x1fb8c0[_0x4d9f9a(0x22e)](_0x49a9ec))],_0x551b50);var _0x26ea32=Object[_0x4d9f9a(0x1f9)],_0x334f87=Object['getOwnPropertyDescriptor'],_0xaa9b4b=(_0x28d204,_0x585abe,_0x38637e)=>_0x585abe in _0x28d204?_0x26ea32(_0x28d204,_0x585abe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38637e}):_0x28d204[_0x585abe]=_0x38637e,_0x2e9f95=(_0x47e493,_0x52003b,_0x4b2e19,_0x2c4eaf)=>{const _0x5a700f=_0x4d9f9a;for(var _0x5b61a5=_0x2c4eaf>0x1?void 0x0:_0x2c4eaf?_0x334f87(_0x52003b,_0x4b2e19):_0x52003b,_0x593446=_0x47e493[_0x5a700f(0x240)]-0x1,_0x2c5e5b;_0x593446>=0x0;_0x593446--)(_0x2c5e5b=_0x47e493[_0x593446])&&(_0x5b61a5=(_0x2c4eaf?_0x2c5e5b(_0x52003b,_0x4b2e19,_0x5b61a5):_0x2c5e5b(_0x5b61a5))||_0x5b61a5);return _0x2c4eaf&&_0x5b61a5&&_0x26ea32(_0x52003b,_0x4b2e19,_0x5b61a5),_0x5b61a5;},_0x4798c5=(_0x114126,_0x46042c)=>(_0x439d22,_0xc775d0)=>_0x46042c(_0x439d22,_0xc775d0,_0x114126),_0x11aac8=(_0x56271e,_0x5bfa49,_0x29d822)=>_0xaa9b4b(_0x56271e,typeof _0x5bfa49!=_0x4d9f9a(0x1e8)?_0x5bfa49+'':_0x5bfa49,_0x29d822);_0x376163[_0x4d9f9a(0x20e)]=class extends _0x1fb8c0[_0x4d9f9a(0x1c6)]{constructor(_0x5c457d=_0x41f537,_0x25ec19,_0x20236f){const _0x325b11=_0x4d9f9a;super(),this[_0x325b11(0x1ca)]=_0x5c457d,this[_0x325b11(0x214)]=_0x25ec19,this[_0x325b11(0x227)]=_0x20236f;const {..._0x4c4b36}=_0x1fb8c0['merge']({},_0x41f537,this['_config']);this[_0x325b11(0x227)][_0x325b11(0x238)](_0xc7f234,_0x4c4b36);}[_0x4d9f9a(0x1ee)](){const _0x164b96=_0x4d9f9a;[[_0x49a9ec],[_0x551b50],[_0x10335a]][_0x164b96(0x232)](_0x51fd3d=>{const _0x3279a7=_0x164b96;this[_0x3279a7(0x214)][_0x3279a7(0x1d2)](_0x51fd3d);});}[_0x4d9f9a(0x216)](){const _0x27b481=_0x4d9f9a;this[_0x27b481(0x214)]['get'](_0x551b50),this[_0x27b481(0x214)][_0x27b481(0x1d5)](_0x10335a);}},_0x11aac8(_0x376163['UniverThreadCommentDataSourcePlugin'],_0x4d9f9a(0x237),_0x20cc89),_0x11aac8(_0x376163[_0x4d9f9a(0x20e)],_0x4d9f9a(0x1c8),_0x1fb8c0[_0x4d9f9a(0x1c0)][_0x4d9f9a(0x203)]),_0x376163[_0x4d9f9a(0x20e)]=_0x2e9f95([_0x1fb8c0['DependentOn'](_0x3cbda3[_0x4d9f9a(0x1d4)],_0x276753['UniverCollaborationClientPlugin'],_0x5a84a0[_0x4d9f9a(0x218)]),_0x4798c5(0x1,_0x1fb8c0[_0x4d9f9a(0x22e)](_0x1fb8c0[_0x4d9f9a(0x1db)])),_0x4798c5(0x2,_0x1fb8c0[_0x4d9f9a(0x21a)])],_0x376163['UniverThreadCommentDataSourcePlugin']),Object[_0x4d9f9a(0x1f9)](_0x376163,Symbol[_0x4d9f9a(0x1c2)],{'value':'Module'});}));
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.202501041605",
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/license": "0.5.3-nightly.202501041605",
49
+ "@univerjs/core": "0.5.3-nightly.202501041605",
50
+ "@univerjs-pro/collaboration-client": "0.5.3-nightly.202501041605",
51
+ "@univerjs/network": "0.5.3-nightly.202501041605",
52
+ "@univerjs/protocol": "0.1.40-alpha.10",
53
+ "@univerjs/thread-comment": "0.5.3-nightly.202501041605",
54
+ "@univerjs/thread-comment-ui": "0.5.3-nightly.202501041605"
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",