@univerjs-pro/thread-comment-datasource 0.5.2 → 0.5.3

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 _0x2556b8=_0xe5de;(function(_0x582d3c,_0x5158b5){const _0x4d432d=_0xe5de,_0x44690e=_0x582d3c();while(!![]){try{const _0x4f692a=parseInt(_0x4d432d(0x1a6))/0x1*(parseInt(_0x4d432d(0x1d4))/0x2)+parseInt(_0x4d432d(0x1ce))/0x3+-parseInt(_0x4d432d(0x1c3))/0x4+parseInt(_0x4d432d(0x1f9))/0x5*(-parseInt(_0x4d432d(0x1cd))/0x6)+-parseInt(_0x4d432d(0x209))/0x7+-parseInt(_0x4d432d(0x1b2))/0x8*(-parseInt(_0x4d432d(0x1fb))/0x9)+-parseInt(_0x4d432d(0x1ee))/0xa;if(_0x4f692a===_0x5158b5)break;else _0x44690e['push'](_0x44690e['shift']());}catch(_0x4eb6df){_0x44690e['push'](_0x44690e['shift']());}}}(_0x81c2,0xd5190));function _0x81c2(){const _0xa93a=['Edit','createTimestamp','getMemberID','_sessionService','_initUserSync','threadId','Add','UniverCollaborationClientPlugin','parentId','UserManagerService','type','map','format','_configService','Delete','_commentService','forEach','listComments','IThreadCommentDataSourceService','pluginName','dayjs','@univerjs/core','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','rangeId','_injector','Reply','userID','18199tzzcVo','_init','requireSession','Solved','delete','thread-comment-data-source.config','body','Solve','Plugin','comment','code','UniverThreadCommentUIPlugin','8ikdlxw','resolveComment','resolved','solved','@univerjs/network','Inject','stringify','_initDataSource','error','@univerjs/thread-comment-ui','disposeWithMe','getCurrentUser','user','payload','OpenOrReOpen','/universer-api/user/list','/solved','4660944xUGbNJ','customRanges','merge','replies','HTTPService','syncUpdateMutationToColla','@univerjs-pro/license','getUser','addUser','rxjs','90eFzpyX','4856820oZtWhY','UNRECOGNIZED','_threadCommentDataSourceService','defineProperty','CollaborationSessionService','reply','118qlEOBj','replyId','length','UniverThreadCommentDataSourcePlugin','UNIVER_UNKNOWN','onReady','add','YYYY/MM/DD\x20HH:mm','get','updateComment','userId','getUnit','getOwnPropertyDescriptor','CustomRangeType','Module','CommentService','addComment','/universer-api/comment/unit/','content','dataSource','commentUpdate$','/list','_threadCommentDataSource','_config','users','UniverInstanceType','9273200pGwQAB','Disposable','subscribe','root','getComment','unitId','Injector','slice','/reply','IConfigService','pipe','383155JXtHml','_userService','14481297BUroHG','values','ref','COMMENT','_httpService','Unknown','post','_threadCommentModel','ThreadCommentModel','filter','deleteComment','parse','rangeType','DependentOn','1307915LdtqkU'];_0x81c2=function(){return _0xa93a;};return _0x81c2();}Object[_0x2556b8(0x1d1)](exports,Symbol['toStringTag'],{'value':_0x2556b8(0x1e2)});const C=require('@univerjs-pro/collaboration-client'),T=require(_0x2556b8(0x1c9)),c=require(_0x2556b8(0x21f)),w=require(_0x2556b8(0x1bb)),P=require('@univerjs/thread-comment'),U=require(_0x2556b8(0x1cc)),M=require(_0x2556b8(0x1b6)),R=_0x2556b8(0x220);var I=(_0x234743=>(_0x234743[_0x234743[_0x2556b8(0x1c0)]=0x0]=_0x2556b8(0x1c0),_0x234743[_0x234743[_0x2556b8(0x1a9)]=0x1]='Solved',_0x234743[_0x234743['UNRECOGNIZED']=-0x1]=_0x2556b8(0x1cf),_0x234743))(I||{}),v=(_0x4833eb=>(_0x4833eb[_0x4833eb[_0x2556b8(0x200)]=0x0]=_0x2556b8(0x200),_0x4833eb[_0x4833eb[_0x2556b8(0x210)]=0x1]=_0x2556b8(0x210),_0x4833eb[_0x4833eb['Reply']=0x2]=_0x2556b8(0x1a4),_0x4833eb[_0x4833eb['Edit']=0x3]='Edit',_0x4833eb[_0x4833eb['Delete']=0x4]='Delete',_0x4833eb[_0x4833eb['Solve']=0x5]=_0x2556b8(0x1ad),_0x4833eb[_0x4833eb['UNRECOGNIZED']=-0x1]=_0x2556b8(0x1cf),_0x4833eb))(v||{});const g=_0x336bf6=>c[_0x2556b8(0x21e)](new Date(+_0x336bf6))[_0x2556b8(0x216)](_0x2556b8(0x1db)),$=async(_0x3a968f,_0x50ddb2)=>{const _0x4ea972=_0x2556b8,_0x277531=_0x3a968f[_0x4ea972(0x1dc)](c['UserManagerService']),_0x1d7aab=_0x3a968f[_0x4ea972(0x1dc)](M[_0x4ea972(0x1c7)]);_0x50ddb2['forEach'](_0x14b581=>{const _0x28cc94=_0x4ea972;_0x277531[_0x28cc94(0x1ca)](_0x14b581)&&_0x50ddb2[_0x28cc94(0x1aa)](_0x14b581);}),_0x50ddb2['size']&&(await _0x1d7aab[_0x4ea972(0x1dc)](_0x4ea972(0x1c1),{'params':{'userIDs':[..._0x50ddb2]}}))['body'][_0x4ea972(0x1ec)][_0x4ea972(0x21a)](_0x2d7a1f=>{const _0x2f9e17=_0x4ea972;_0x2d7a1f&&_0x277531[_0x2f9e17(0x1cb)](_0x2d7a1f);});};var E=Object[_0x2556b8(0x1d1)],q=Object[_0x2556b8(0x1e0)],A=(_0x4afbf7,_0x876b1c,_0x287702,_0x2052bd)=>{const _0x9a318a=_0x2556b8;for(var _0x1b1bb8=_0x2052bd>0x1?void 0x0:_0x2052bd?q(_0x876b1c,_0x287702):_0x876b1c,_0x36007f=_0x4afbf7[_0x9a318a(0x1d6)]-0x1,_0xcd6515;_0x36007f>=0x0;_0x36007f--)(_0xcd6515=_0x4afbf7[_0x36007f])&&(_0x1b1bb8=(_0x2052bd?_0xcd6515(_0x876b1c,_0x287702,_0x1b1bb8):_0xcd6515(_0x1b1bb8))||_0x1b1bb8);return _0x2052bd&&_0x1b1bb8&&E(_0x876b1c,_0x287702,_0x1b1bb8),_0x1b1bb8;},_=(_0x110b48,_0x54aff9)=>(_0x230e3f,_0x2dea47)=>_0x54aff9(_0x230e3f,_0x2dea47,_0x110b48);function _0xe5de(_0x4f5757,_0x2ec4bb){const _0x81c264=_0x81c2();return _0xe5de=function(_0xe5de88,_0x2eaf10){_0xe5de88=_0xe5de88-0x1a4;let _0x2c2709=_0x81c264[_0xe5de88];return _0x2c2709;},_0xe5de(_0x4f5757,_0x2ec4bb);}let S=class extends c[_0x2556b8(0x1ef)]{constructor(_0x36865d,_0x178ddd,_0xfc10aa,_0x5536c5){const _0x301f4c=_0x2556b8;super(),this['_commentService']=_0x36865d,this[_0x301f4c(0x202)]=_0x178ddd,this[_0x301f4c(0x1fa)]=_0xfc10aa,this[_0x301f4c(0x222)]=_0x5536c5,this[_0x301f4c(0x1a7)](),this['_initUserSync']();}[_0x2556b8(0x20e)](){const _0x2a5ce0=_0x2556b8;this[_0x2a5ce0(0x1bc)](this['_threadCommentModel'][_0x2a5ce0(0x1e8)][_0x2a5ce0(0x1f8)](U['bufferTime'](0x10))[_0x2a5ce0(0x1f0)](_0x2ec81a=>{const _0x596c13=_0x2a5ce0,_0x5dbb24=new Set();_0x2ec81a['forEach'](_0x47f220=>{const _0x6eac47=_0xe5de;switch(_0x47f220[_0x6eac47(0x214)]){case _0x6eac47(0x1da):{const _0x43dc06=_0x47f220[_0x6eac47(0x1bf)]['personId'];_0x5dbb24['add'](_0x43dc06);break;}}}),$(this[_0x596c13(0x222)],_0x5dbb24);}));}[_0x2556b8(0x1a7)](){const _0x5ddc1c=_0x2556b8;this[_0x5ddc1c(0x1bc)](this[_0x5ddc1c(0x219)][_0x5ddc1c(0x1e8)][_0x5ddc1c(0x1f0)](async _0x31cb0e=>{const _0x32d777=_0x5ddc1c;var _0x15c075,_0x58fef0,_0x53d742,_0x5e51a5;const _0xbb5aea=(_0x15c075=this[_0x32d777(0x202)][_0x32d777(0x1df)](_0x31cb0e[_0x32d777(0x1f3)])['find'](_0x385762=>_0x385762[_0x32d777(0x20f)]===_0x31cb0e[_0x32d777(0x20f)]))==null?void 0x0:_0x15c075[_0x32d777(0x1f1)];if(!_0xbb5aea)return;const {unitId:_0x53129f,subUnitId:_0x2ff014}=_0xbb5aea;switch(_0x31cb0e[_0x32d777(0x1be)]&&this[_0x32d777(0x1fa)]['addUser'](_0x31cb0e[_0x32d777(0x1be)]),_0x31cb0e[_0x32d777(0x214)]){case v['Add']:break;case v[_0x32d777(0x1a4)]:{this[_0x32d777(0x202)][_0x32d777(0x1e4)](_0x53129f,_0x2ff014,{'unitId':_0x53129f,'subUnitId':_0x2ff014,'ref':'','id':_0x31cb0e[_0x32d777(0x1d5)],'dT':g(+_0x31cb0e[_0x32d777(0x20b)]),'threadId':_0x31cb0e[_0x32d777(0x20f)],'personId':(_0x53d742=(_0x58fef0=_0x31cb0e[_0x32d777(0x1be)])==null?void 0x0:_0x58fef0[_0x32d777(0x1a5)])!=null?_0x53d742:_0x31cb0e[_0x32d777(0x1de)],'text':JSON['parse'](_0x31cb0e[_0x32d777(0x1e6)]),'parentId':_0xbb5aea['id']});break;}case v[_0x32d777(0x218)]:{const _0x3c93f1=this[_0x32d777(0x202)][_0x32d777(0x1f2)](_0x53129f,_0x2ff014,_0x31cb0e[_0x32d777(0x1d5)]);_0x3c93f1&&_0x3c93f1[_0x32d777(0x212)]&&this['_threadCommentModel'][_0x32d777(0x205)](_0x53129f,_0x2ff014,_0x31cb0e['replyId']);break;}case v[_0x32d777(0x20a)]:{this['_threadCommentModel'][_0x32d777(0x1dd)](_0x53129f,_0x2ff014,{'commentId':_0x31cb0e[_0x32d777(0x1d5)],'text':JSON[_0x32d777(0x206)](_0x31cb0e[_0x32d777(0x1e6)])});break;}case v[_0x32d777(0x1ad)]:{const _0x4bfc6a=(_0x5e51a5=this[_0x32d777(0x202)][_0x32d777(0x1df)](_0x31cb0e[_0x32d777(0x1f3)])['find'](_0x2f40a7=>_0x2f40a7['threadId']===_0x31cb0e['threadId']))==null?void 0x0:_0x5e51a5[_0x32d777(0x1f1)];_0x4bfc6a&&this[_0x32d777(0x202)][_0x32d777(0x1b3)](_0x53129f,_0x2ff014,_0x4bfc6a['id'],_0x31cb0e[_0x32d777(0x1b5)]===I[_0x32d777(0x1a9)]);break;}}}));}};S=A([_(0x0,c[_0x2556b8(0x1b7)](C[_0x2556b8(0x1e3)])),_(0x1,c['Inject'](P[_0x2556b8(0x203)])),_(0x2,c[_0x2556b8(0x1b7)](c[_0x2556b8(0x213)])),_(0x3,c[_0x2556b8(0x1b7)](c[_0x2556b8(0x1f4)]))],S);const x=_0x2556b8(0x1ab),D={};var Y=Object['defineProperty'],G=Object['getOwnPropertyDescriptor'],H=(_0x122e5a,_0x1604b4,_0x131cd2,_0x357a80)=>{const _0x57efe6=_0x2556b8;for(var _0x3464e0=_0x357a80>0x1?void 0x0:_0x357a80?G(_0x1604b4,_0x131cd2):_0x1604b4,_0x21b1d2=_0x122e5a[_0x57efe6(0x1d6)]-0x1,_0x4da8ba;_0x21b1d2>=0x0;_0x21b1d2--)(_0x4da8ba=_0x122e5a[_0x21b1d2])&&(_0x3464e0=(_0x357a80?_0x4da8ba(_0x1604b4,_0x131cd2,_0x3464e0):_0x4da8ba(_0x3464e0))||_0x3464e0);return _0x357a80&&_0x3464e0&&Y(_0x1604b4,_0x131cd2,_0x3464e0),_0x3464e0;},p=(_0x4163b2,_0x2a2c58)=>(_0x3690f3,_0x2b77ce)=>_0x2a2c58(_0x3690f3,_0x2b77ce,_0x4163b2);function J(_0x4c1e29,_0x19046f){const _0x333b19=_0x2556b8,_0x314225=_0x4c1e29[_0x333b19(0x1c6)][0x0];return{..._0x19046f,'id':_0x314225[_0x333b19(0x1d5)],'resolved':_0x4c1e29['solved']===0x1,'dT':g(_0x314225[_0x333b19(0x20b)]),'personId':_0x314225[_0x333b19(0x1de)],'threadId':_0x314225['threadId']};}function F(_0x4621ba,_0x4abdc5,_0x2435b6){const _0x529236=_0x2556b8;var _0x8ad7ff,_0x1cafcc;if(((_0x1cafcc=(_0x8ad7ff=_0x4621ba==null?void 0x0:_0x4621ba[_0x529236(0x1c6)])==null?void 0x0:_0x8ad7ff[_0x529236(0x1d6)])!=null?_0x1cafcc:0x0)>0x0){const _0x2bb1ef=(_0x3a01a1,_0x2c3ad2)=>({'id':_0x3a01a1[_0x529236(0x1d5)],'threadId':_0x3a01a1[_0x529236(0x20f)],'dT':g(_0x3a01a1[_0x529236(0x20b)]),'personId':_0x3a01a1[_0x529236(0x1de)],'resolved':_0x4621ba[_0x529236(0x1b5)]===I[_0x529236(0x1a9)],'unitId':_0x4abdc5,'subUnitId':_0x2435b6,'text':JSON['parse'](_0x3a01a1[_0x529236(0x1e6)]),'parentId':_0x2c3ad2}),_0x207bb8=_0x2bb1ef(_0x4621ba['replies'][0x0]);return{..._0x207bb8,'children':_0x4621ba[_0x529236(0x1c6)][_0x529236(0x1f5)](0x1)[_0x529236(0x215)](_0x3b3663=>_0x2bb1ef(_0x3b3663,_0x207bb8['id']))};}return null;}let f=class{constructor(_0x3ccacb,_0x418309,_0x126050,_0x307342){const _0x964bdb=_0x2556b8;this[_0x964bdb(0x1ff)]=_0x3ccacb,this['_userService']=_0x418309,this[_0x964bdb(0x20d)]=_0x126050,this[_0x964bdb(0x222)]=_0x307342;}async['addComment'](_0x3e06a9){const _0x68e94=_0x2556b8;var _0x51795e,_0x588beb;const {parentId:_0x37b058,unitId:_0x3c3199,text:_0x4a5e14,threadId:_0x4946bc}=_0x3e06a9,_0x366b68=(_0x588beb=(_0x51795e=_0x4a5e14[_0x68e94(0x1c4)])==null?void 0x0:_0x51795e['filter'](_0x38d05c=>_0x38d05c[_0x68e94(0x207)]===c['CustomRangeType'][_0x68e94(0x1fe)])['map'](_0x3bee62=>_0x3bee62[_0x68e94(0x221)]))!=null?_0x588beb:[],_0xd744c1=JSON[_0x68e94(0x1b8)](_0x4a5e14),_0x3542e0=(await this[_0x68e94(0x20d)][_0x68e94(0x1a8)](_0x3c3199))[_0x68e94(0x20c)]();if(_0x37b058){const _0x30cdc0={'memberId':_0x3542e0,'unitId':_0x3c3199,'content':_0xd744c1,'mention':_0x366b68,'threadId':_0x4946bc},_0x247d50=(await this[_0x68e94(0x1ff)][_0x68e94(0x201)](_0x68e94(0x1e5)+_0x3c3199+_0x68e94(0x1f6),{'body':_0x30cdc0}))['body'][_0x68e94(0x1d3)];return{..._0x3e06a9,'id':_0x247d50[_0x68e94(0x1d5)],'dT':c['dayjs'](+_0x247d50[_0x68e94(0x20b)])['format'](_0x68e94(0x1db)),'personId':_0x247d50['userId']};}else{const _0x2e252c={'memberId':_0x3542e0,'unitId':_0x3c3199,'content':_0xd744c1,'mention':_0x366b68},_0xaf457b=await this[_0x68e94(0x1ff)][_0x68e94(0x201)](_0x68e94(0x1e5)+_0x3c3199+'/add',{'body':_0x2e252c});return J(_0xaf457b[_0x68e94(0x1ac)][_0x68e94(0x1af)],_0x3e06a9);}}async[_0x2556b8(0x1dd)](_0x1c92e6){const _0x4a4a7a=_0x2556b8;var _0x1d3d25,_0x247cd0;const {text:_0x610bb4,unitId:_0x376c9e}=_0x1c92e6,_0x14f789=(_0x247cd0=(_0x1d3d25=_0x610bb4[_0x4a4a7a(0x1c4)])==null?void 0x0:_0x1d3d25[_0x4a4a7a(0x204)](_0x138628=>_0x138628[_0x4a4a7a(0x207)]===c[_0x4a4a7a(0x1e1)][_0x4a4a7a(0x1fe)])['map'](_0x380e50=>_0x380e50['rangeId']))!=null?_0x247cd0:[],_0x43bb40=JSON[_0x4a4a7a(0x1b8)](_0x610bb4),_0x283815=_0x1c92e6[_0x4a4a7a(0x20f)],_0x5e7584=_0x1c92e6['id'],_0x118260={'memberId':(await this['_sessionService'][_0x4a4a7a(0x1a8)](_0x376c9e))['getMemberID'](),'unitId':_0x376c9e,'threadId':_0x283815,'mention':_0x14f789,'content':_0x43bb40,'replyId':_0x5e7584},_0x433206=await this[_0x4a4a7a(0x1ff)][_0x4a4a7a(0x201)](_0x4a4a7a(0x1e5)+_0x376c9e+'/edit',{'body':_0x118260});return!_0x433206[_0x4a4a7a(0x1ac)]['error']||_0x433206[_0x4a4a7a(0x1ac)]['error'][_0x4a4a7a(0x1b0)]===0x1;}async[_0x2556b8(0x1b3)](_0x365ada){const _0x97b408=_0x2556b8,{unitId:_0x17a9eb}=_0x365ada,_0xc4c72b=_0x365ada['threadId'],_0x26abf8={'memberId':this[_0x97b408(0x1fa)][_0x97b408(0x1bd)]()[_0x97b408(0x1a5)],'unitId':_0x17a9eb,'threadId':_0xc4c72b,'solved':_0x365ada[_0x97b408(0x1b4)]?I[_0x97b408(0x1a9)]:I[_0x97b408(0x1c0)]},_0x912d5b=await this[_0x97b408(0x1ff)][_0x97b408(0x201)](_0x97b408(0x1e5)+_0x17a9eb+_0x97b408(0x1c2),{'body':_0x26abf8});return!_0x912d5b['body'][_0x97b408(0x1ba)]||_0x912d5b['body'][_0x97b408(0x1ba)]['code']===0x1;}async['deleteComment'](_0x36dbb3,_0x491305,_0x494888,_0x35ccd9){const _0x5d68cc=_0x2556b8,_0x203311={'memberId':(await this[_0x5d68cc(0x20d)][_0x5d68cc(0x1a8)](_0x36dbb3))['getMemberID'](),'threadId':_0x494888,'replyId':_0x35ccd9,'unitId':_0x36dbb3},_0x3a0afd=await this[_0x5d68cc(0x1ff)][_0x5d68cc(0x201)](_0x5d68cc(0x1e5)+_0x36dbb3+'/delete',{'body':_0x203311});return!_0x3a0afd[_0x5d68cc(0x1ac)][_0x5d68cc(0x1ba)]||_0x3a0afd[_0x5d68cc(0x1ac)][_0x5d68cc(0x1ba)][_0x5d68cc(0x1b0)]===0x1;}async[_0x2556b8(0x21b)](_0x597fd2,_0x307b5c,_0x78bb07){const _0x5bcb02=_0x2556b8,_0x409701={'unitId':_0x597fd2,'threadId':_0x78bb07},_0x2e185b=await this[_0x5bcb02(0x1ff)]['post'](_0x5bcb02(0x1e5)+_0x597fd2+_0x5bcb02(0x1e9),{'body':_0x409701}),_0x5ea61a=_0x78bb07['map'](_0x52c0f9=>F(_0x2e185b['body']['comments'][_0x52c0f9],_0x597fd2,_0x307b5c))['filter'](Boolean);return Object[_0x5bcb02(0x1fc)](_0x2e185b['body'][_0x5bcb02(0x1ec)])['forEach'](_0x3782fc=>{const _0x2879c5=_0x5bcb02;this[_0x2879c5(0x1fa)][_0x2879c5(0x1cb)](_0x3782fc);}),_0x5ea61a;}['saveCommentToSnapshot'](_0x1d51f3){const _0x25e0d6=_0x2556b8;return{'id':_0x1d51f3['id'],'threadId':_0x1d51f3['threadId'],'ref':_0x1d51f3[_0x25e0d6(0x1fd)]};}};f=H([p(0x0,c[_0x2556b8(0x1b7)](M[_0x2556b8(0x1c7)])),p(0x1,c[_0x2556b8(0x1b7)](c[_0x2556b8(0x213)])),p(0x2,c[_0x2556b8(0x1b7)](C[_0x2556b8(0x1d2)])),p(0x3,c['Inject'](c[_0x2556b8(0x1f4)]))],f);var L=Object[_0x2556b8(0x1d1)],Z=Object[_0x2556b8(0x1e0)],W=(_0x4e4d33,_0x457d08,_0x20012d,_0x21f4cb)=>{const _0x576423=_0x2556b8;for(var _0x26dfb7=_0x21f4cb>0x1?void 0x0:_0x21f4cb?Z(_0x457d08,_0x20012d):_0x457d08,_0x59ff2c=_0x4e4d33[_0x576423(0x1d6)]-0x1,_0x13cd69;_0x59ff2c>=0x0;_0x59ff2c--)(_0x13cd69=_0x4e4d33[_0x59ff2c])&&(_0x26dfb7=(_0x21f4cb?_0x13cd69(_0x457d08,_0x20012d,_0x26dfb7):_0x13cd69(_0x26dfb7))||_0x26dfb7);return _0x21f4cb&&_0x26dfb7&&L(_0x457d08,_0x20012d,_0x26dfb7),_0x26dfb7;},O=(_0x381374,_0x346360)=>(_0x3a3630,_0x1a09c2)=>_0x346360(_0x3a3630,_0x1a09c2,_0x381374);let b=class extends c[_0x2556b8(0x1ef)]{constructor(_0x47f2ae,_0x3006a2){const _0x38a4fe=_0x2556b8;super(),this[_0x38a4fe(0x1d0)]=_0x47f2ae,this[_0x38a4fe(0x1ea)]=_0x3006a2,this[_0x38a4fe(0x1b9)]();}[_0x2556b8(0x1b9)](){const _0x331071=_0x2556b8;this[_0x331071(0x1d0)][_0x331071(0x1e7)]=this['_threadCommentDataSource'],this['_threadCommentDataSourceService'][_0x331071(0x1c8)]=!0x1;}};b=W([O(0x0,P[_0x2556b8(0x21c)]),O(0x1,c[_0x2556b8(0x1b7)](f))],b);var j=Object[_0x2556b8(0x1d1)],B=Object[_0x2556b8(0x1e0)],K=(_0x427f3d,_0x2b896a,_0x4c2b0f)=>_0x2b896a in _0x427f3d?j(_0x427f3d,_0x2b896a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c2b0f}):_0x427f3d[_0x2b896a]=_0x4c2b0f,V=(_0x20b78c,_0x5d4d73,_0x25f56e,_0x20937a)=>{const _0x6e49d=_0x2556b8;for(var _0x1bc033=_0x20937a>0x1?void 0x0:_0x20937a?B(_0x5d4d73,_0x25f56e):_0x5d4d73,_0x1c74d0=_0x20b78c[_0x6e49d(0x1d6)]-0x1,_0x3693d1;_0x1c74d0>=0x0;_0x1c74d0--)(_0x3693d1=_0x20b78c[_0x1c74d0])&&(_0x1bc033=(_0x20937a?_0x3693d1(_0x5d4d73,_0x25f56e,_0x1bc033):_0x3693d1(_0x1bc033))||_0x1bc033);return _0x20937a&&_0x1bc033&&j(_0x5d4d73,_0x25f56e,_0x1bc033),_0x1bc033;},y=(_0x5ecf53,_0x1608cc)=>(_0x28fde3,_0x25bf8c)=>_0x1608cc(_0x28fde3,_0x25bf8c,_0x5ecf53),N=(_0x36c0ac,_0x43e14b,_0x55b3b1)=>K(_0x36c0ac,typeof _0x43e14b!='symbol'?_0x43e14b+'':_0x43e14b,_0x55b3b1);exports[_0x2556b8(0x1d7)]=class extends c[_0x2556b8(0x1ae)]{constructor(_0x45f99f=D,_0x2a73df,_0x4aeb99){const _0x446706=_0x2556b8;super(),this[_0x446706(0x1eb)]=_0x45f99f,this[_0x446706(0x222)]=_0x2a73df,this['_configService']=_0x4aeb99;const {..._0x4f77ab}=c[_0x446706(0x1c5)]({},D,this[_0x446706(0x1eb)]);this[_0x446706(0x217)]['setConfig'](x,_0x4f77ab);}['onStarting'](){const _0x56239c=_0x2556b8;[[f],[b],[S]][_0x56239c(0x21a)](_0x965c03=>{const _0x1cd4d2=_0x56239c;this[_0x1cd4d2(0x222)][_0x1cd4d2(0x1da)](_0x965c03);});}[_0x2556b8(0x1d9)](){const _0x161fd5=_0x2556b8;this['_injector'][_0x161fd5(0x1dc)](b),this[_0x161fd5(0x222)][_0x161fd5(0x1dc)](S);}},N(exports[_0x2556b8(0x1d7)],_0x2556b8(0x21d),R),N(exports[_0x2556b8(0x1d7)],_0x2556b8(0x214),c[_0x2556b8(0x1ed)][_0x2556b8(0x1d8)]),exports['UniverThreadCommentDataSourcePlugin']=V([c[_0x2556b8(0x208)](w[_0x2556b8(0x1b1)],C[_0x2556b8(0x211)],T['UniverLicensePlugin']),y(0x1,c[_0x2556b8(0x1b7)](c['Injector'])),y(0x2,c[_0x2556b8(0x1f7)])],exports[_0x2556b8(0x1d7)]);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3bdc18=_0xf802;(function(_0x3dcaee,_0x2d42f4){const _0x176979=_0xf802,_0x53263b=_0x3dcaee();while(!![]){try{const _0x538f2b=-parseInt(_0x176979(0x1ac))/0x1*(parseInt(_0x176979(0x1fc))/0x2)+parseInt(_0x176979(0x1f8))/0x3+-parseInt(_0x176979(0x1ee))/0x4+parseInt(_0x176979(0x1fa))/0x5+-parseInt(_0x176979(0x1c6))/0x6+parseInt(_0x176979(0x1f1))/0x7+parseInt(_0x176979(0x1ec))/0x8*(parseInt(_0x176979(0x1ab))/0x9);if(_0x538f2b===_0x2d42f4)break;else _0x53263b['push'](_0x53263b['shift']());}catch(_0xe2f9ee){_0x53263b['push'](_0x53263b['shift']());}}}(_0x20bb,0xb7785));import{CommentService as _0x35b059,CollaborationSessionService as _0x8c1a27,UniverCollaborationClientPlugin as _0x387457}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x28642f}from'@univerjs-pro/license';function _0x20bb(){const _0x101b52=['UNRECOGNIZED','personId','_initUserSync','_config','code','find','type','disposeWithMe','error','_threadCommentModel','Solved','symbol','subscribe','_sessionService','getMemberID','solved','/delete','body','updateComment','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','pluginName','UNIVER_UNKNOWN','comment','user','getUser','parentId','/list','OpenOrReOpen','replies','requireSession','filter','comments','defineProperty','root','426312yitfBU','stringify','619572aJytce','map','_threadCommentDataSourceService','1750462vHgUXm','getComment','unitId','parse','deleteComment','thread-comment-data-source.config','_configService','3897738ehzvtJ','Add','3898895VPrEPZ','Edit','16370WvIFXC','users','addUser','Solve','commentUpdate$','YYYY/MM/DD\x20HH:mm','setConfig','forEach','COMMENT','getUnit','userId','_initDataSource','Reply','format','post','createTimestamp','36ddBAQE','125rVXOKY','get','getCurrentUser','_init','content','/universer-api/comment/unit/','_commentService','_httpService','add','threadId','_threadCommentDataSource','replyId','saveCommentToSnapshot','length','payload','getOwnPropertyDescriptor','pipe','rangeType','addComment','customRanges','dataSource','Delete','userID','/solved','resolveComment','_userService','3676416MUAelm','delete','_injector','onStarting'];_0x20bb=function(){return _0x101b52;};return _0x20bb();}import{dayjs as _0x48ced7,UserManagerService as _0x426d68,Inject as _0x1eb374,Injector as _0x5c40b1,Disposable as _0x2f32a1,CustomRangeType as _0x1415bf,UniverInstanceType as _0x1f859b,DependentOn as _0x5662ab,Plugin as _0x4bceec,merge as _0x5519cd,IConfigService as _0x5bebfc}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x1017cc}from'@univerjs/thread-comment-ui';function _0xf802(_0x565483,_0x402004){const _0x20bb9a=_0x20bb();return _0xf802=function(_0xf802d4,_0x547781){_0xf802d4=_0xf802d4-0x1a5;let _0x2ebb75=_0x20bb9a[_0xf802d4];return _0x2ebb75;},_0xf802(_0x565483,_0x402004);}import{ThreadCommentModel as _0x5837b1,IThreadCommentDataSourceService as _0x31dc4e}from'@univerjs/thread-comment';import{bufferTime as _0x473cd5}from'rxjs';import{HTTPService as _0x1be0c4}from'@univerjs/network';const B=_0x3bdc18(0x1dd);var v=(_0x5e24db=>(_0x5e24db[_0x5e24db[_0x3bdc18(0x1e5)]=0x0]=_0x3bdc18(0x1e5),_0x5e24db[_0x5e24db[_0x3bdc18(0x1d4)]=0x1]='Solved',_0x5e24db[_0x5e24db[_0x3bdc18(0x1ca)]=-0x1]='UNRECOGNIZED',_0x5e24db))(v||{}),p=(_0x3e0abd=>(_0x3e0abd[_0x3e0abd['Unknown']=0x0]='Unknown',_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1f9)]=0x1]=_0x3bdc18(0x1f9),_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1a7)]=0x2]=_0x3bdc18(0x1a7),_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1fb)]=0x3]=_0x3bdc18(0x1fb),_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1c1)]=0x4]=_0x3bdc18(0x1c1),_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1ff)]=0x5]='Solve',_0x3e0abd[_0x3e0abd['UNRECOGNIZED']=-0x1]=_0x3bdc18(0x1ca),_0x3e0abd))(p||{});const O=_0x2bbe81=>_0x48ced7(new Date(+_0x2bbe81))[_0x3bdc18(0x1a8)]('YYYY/MM/DD\x20HH:mm'),K=async(_0x4ee733,_0x20f049)=>{const _0x4bf02f=_0x3bdc18,_0x5b0ff2=_0x4ee733['get'](_0x426d68),_0x287b7f=_0x4ee733['get'](_0x1be0c4);_0x20f049[_0x4bf02f(0x203)](_0x119be5=>{const _0x2ab9ba=_0x4bf02f;_0x5b0ff2[_0x2ab9ba(0x1e2)](_0x119be5)&&_0x20f049[_0x2ab9ba(0x1c7)](_0x119be5);}),_0x20f049['size']&&(await _0x287b7f['get']('/universer-api/user/list',{'params':{'userIDs':[..._0x20f049]}}))[_0x4bf02f(0x1db)][_0x4bf02f(0x1fd)][_0x4bf02f(0x203)](_0x5d7b06=>{const _0x4320f2=_0x4bf02f;_0x5d7b06&&_0x5b0ff2[_0x4320f2(0x1fe)](_0x5d7b06);});};var V=Object['defineProperty'],z=Object[_0x3bdc18(0x1bb)],Q=(_0x3740c4,_0x3fa05e,_0x12fc80,_0x4a763f)=>{for(var _0x16d664=_0x4a763f>0x1?void 0x0:_0x4a763f?z(_0x3fa05e,_0x12fc80):_0x3fa05e,_0xddb9af=_0x3740c4['length']-0x1,_0x17661c;_0xddb9af>=0x0;_0xddb9af--)(_0x17661c=_0x3740c4[_0xddb9af])&&(_0x16d664=(_0x4a763f?_0x17661c(_0x3fa05e,_0x12fc80,_0x16d664):_0x17661c(_0x16d664))||_0x16d664);return _0x4a763f&&_0x16d664&&V(_0x3fa05e,_0x12fc80,_0x16d664),_0x16d664;},_=(_0x2eb656,_0x4f8314)=>(_0x4753fb,_0x163190)=>_0x4f8314(_0x4753fb,_0x163190,_0x2eb656);let f=class extends _0x2f32a1{constructor(_0x1a150c,_0x3add72,_0x2cfbe4,_0x5eb323){const _0x4811be=_0x3bdc18;super(),this[_0x4811be(0x1b2)]=_0x1a150c,this[_0x4811be(0x1d3)]=_0x3add72,this[_0x4811be(0x1c5)]=_0x2cfbe4,this[_0x4811be(0x1c8)]=_0x5eb323,this[_0x4811be(0x1af)](),this[_0x4811be(0x1cc)]();}['_initUserSync'](){const _0x4b7e9c=_0x3bdc18;this[_0x4b7e9c(0x1d1)](this['_threadCommentModel'][_0x4b7e9c(0x200)][_0x4b7e9c(0x1bc)](_0x473cd5(0x10))[_0x4b7e9c(0x1d6)](_0x484d91=>{const _0x2db3ed=_0x4b7e9c,_0x4d6208=new Set();_0x484d91[_0x2db3ed(0x203)](_0x31d3d0=>{const _0x37c7a1=_0x2db3ed;switch(_0x31d3d0[_0x37c7a1(0x1d0)]){case _0x37c7a1(0x1b4):{const _0x2b2288=_0x31d3d0[_0x37c7a1(0x1ba)][_0x37c7a1(0x1cb)];_0x4d6208['add'](_0x2b2288);break;}}}),K(this['_injector'],_0x4d6208);}));}['_init'](){const _0x559287=_0x3bdc18;this[_0x559287(0x1d1)](this[_0x559287(0x1b2)]['commentUpdate$'][_0x559287(0x1d6)](async _0x5b3b57=>{const _0x5808a8=_0x559287;var _0x945cce,_0x48043e,_0x406f32,_0x5ebf48;const _0x1e8685=(_0x945cce=this[_0x5808a8(0x1d3)]['getUnit'](_0x5b3b57[_0x5808a8(0x1f3)])[_0x5808a8(0x1cf)](_0x1040c4=>_0x1040c4['threadId']===_0x5b3b57['threadId']))==null?void 0x0:_0x945cce['root'];if(!_0x1e8685)return;const {unitId:_0x592796,subUnitId:_0x2c8487}=_0x1e8685;switch(_0x5b3b57[_0x5808a8(0x1e1)]&&this[_0x5808a8(0x1c5)][_0x5808a8(0x1fe)](_0x5b3b57[_0x5808a8(0x1e1)]),_0x5b3b57[_0x5808a8(0x1d0)]){case p[_0x5808a8(0x1f9)]:break;case p[_0x5808a8(0x1a7)]:{this[_0x5808a8(0x1d3)][_0x5808a8(0x1be)](_0x592796,_0x2c8487,{'unitId':_0x592796,'subUnitId':_0x2c8487,'ref':'','id':_0x5b3b57['replyId'],'dT':O(+_0x5b3b57[_0x5808a8(0x1aa)]),'threadId':_0x5b3b57[_0x5808a8(0x1b5)],'personId':(_0x406f32=(_0x48043e=_0x5b3b57[_0x5808a8(0x1e1)])==null?void 0x0:_0x48043e[_0x5808a8(0x1c2)])!=null?_0x406f32:_0x5b3b57[_0x5808a8(0x1a5)],'text':JSON['parse'](_0x5b3b57[_0x5808a8(0x1b0)]),'parentId':_0x1e8685['id']});break;}case p['Delete']:{const _0x21926d=this['_threadCommentModel'][_0x5808a8(0x1f2)](_0x592796,_0x2c8487,_0x5b3b57[_0x5808a8(0x1b7)]);_0x21926d&&_0x21926d[_0x5808a8(0x1e3)]&&this[_0x5808a8(0x1d3)]['deleteComment'](_0x592796,_0x2c8487,_0x5b3b57[_0x5808a8(0x1b7)]);break;}case p['Edit']:{this[_0x5808a8(0x1d3)][_0x5808a8(0x1dc)](_0x592796,_0x2c8487,{'commentId':_0x5b3b57[_0x5808a8(0x1b7)],'text':JSON[_0x5808a8(0x1f4)](_0x5b3b57[_0x5808a8(0x1b0)])});break;}case p[_0x5808a8(0x1ff)]:{const _0x42400c=(_0x5ebf48=this[_0x5808a8(0x1d3)][_0x5808a8(0x205)](_0x5b3b57[_0x5808a8(0x1f3)])['find'](_0x534e22=>_0x534e22[_0x5808a8(0x1b5)]===_0x5b3b57['threadId']))==null?void 0x0:_0x5ebf48[_0x5808a8(0x1eb)];_0x42400c&&this[_0x5808a8(0x1d3)][_0x5808a8(0x1c4)](_0x592796,_0x2c8487,_0x42400c['id'],_0x5b3b57[_0x5808a8(0x1d9)]===v['Solved']);break;}}}));}};f=Q([_(0x0,_0x1eb374(_0x35b059)),_(0x1,_0x1eb374(_0x5837b1)),_(0x2,_0x1eb374(_0x426d68)),_(0x3,_0x1eb374(_0x5c40b1))],f);const X=_0x3bdc18(0x1f6),P={};var k=Object[_0x3bdc18(0x1ea)],ee=Object[_0x3bdc18(0x1bb)],re=(_0x4a160c,_0x415775,_0x2d801d,_0x6a6a4d)=>{const _0x2a23b1=_0x3bdc18;for(var _0x26cfe4=_0x6a6a4d>0x1?void 0x0:_0x6a6a4d?ee(_0x415775,_0x2d801d):_0x415775,_0x40d769=_0x4a160c[_0x2a23b1(0x1b9)]-0x1,_0x393b20;_0x40d769>=0x0;_0x40d769--)(_0x393b20=_0x4a160c[_0x40d769])&&(_0x26cfe4=(_0x6a6a4d?_0x393b20(_0x415775,_0x2d801d,_0x26cfe4):_0x393b20(_0x26cfe4))||_0x26cfe4);return _0x6a6a4d&&_0x26cfe4&&k(_0x415775,_0x2d801d,_0x26cfe4),_0x26cfe4;},I=(_0x2f4d8a,_0x34830d)=>(_0x3bca56,_0x5637b2)=>_0x34830d(_0x3bca56,_0x5637b2,_0x2f4d8a);function te(_0x9a3543,_0x345a2b){const _0x1d7eed=_0x3bdc18,_0x73720d=_0x9a3543['replies'][0x0];return{..._0x345a2b,'id':_0x73720d['replyId'],'resolved':_0x9a3543['solved']===0x1,'dT':O(_0x73720d['createTimestamp']),'personId':_0x73720d[_0x1d7eed(0x1a5)],'threadId':_0x73720d[_0x1d7eed(0x1b5)]};}function se(_0x309e42,_0x3215bf,_0x43e30d){const _0x57e5a3=_0x3bdc18;var _0x407189,_0x4764ed;if(((_0x4764ed=(_0x407189=_0x309e42==null?void 0x0:_0x309e42[_0x57e5a3(0x1e6)])==null?void 0x0:_0x407189['length'])!=null?_0x4764ed:0x0)>0x0){const _0x45d8b9=(_0xd22c19,_0x2b022e)=>({'id':_0xd22c19[_0x57e5a3(0x1b7)],'threadId':_0xd22c19[_0x57e5a3(0x1b5)],'dT':O(_0xd22c19[_0x57e5a3(0x1aa)]),'personId':_0xd22c19[_0x57e5a3(0x1a5)],'resolved':_0x309e42[_0x57e5a3(0x1d9)]===v[_0x57e5a3(0x1d4)],'unitId':_0x3215bf,'subUnitId':_0x43e30d,'text':JSON[_0x57e5a3(0x1f4)](_0xd22c19['content']),'parentId':_0x2b022e}),_0x434b1b=_0x45d8b9(_0x309e42['replies'][0x0]);return{..._0x434b1b,'children':_0x309e42[_0x57e5a3(0x1e6)]['slice'](0x1)[_0x57e5a3(0x1ef)](_0x4be4f4=>_0x45d8b9(_0x4be4f4,_0x434b1b['id']))};}return null;}let S=class{constructor(_0x24e667,_0x5572a4,_0x3cfeab,_0x4a9ed2){const _0x19a370=_0x3bdc18;this[_0x19a370(0x1b3)]=_0x24e667,this[_0x19a370(0x1c5)]=_0x5572a4,this[_0x19a370(0x1d7)]=_0x3cfeab,this[_0x19a370(0x1c8)]=_0x4a9ed2;}async[_0x3bdc18(0x1be)](_0x46e15a){const _0x3bc4f6=_0x3bdc18;var _0x48902b,_0x4cf324;const {parentId:_0x9e8baf,unitId:_0x424586,text:_0x5a250a,threadId:_0x1347ab}=_0x46e15a,_0x2fa257=(_0x4cf324=(_0x48902b=_0x5a250a['customRanges'])==null?void 0x0:_0x48902b[_0x3bc4f6(0x1e8)](_0x40e8ad=>_0x40e8ad[_0x3bc4f6(0x1bd)]===_0x1415bf[_0x3bc4f6(0x204)])[_0x3bc4f6(0x1ef)](_0x446d69=>_0x446d69['rangeId']))!=null?_0x4cf324:[],_0x539f8f=JSON['stringify'](_0x5a250a),_0x171c95=(await this[_0x3bc4f6(0x1d7)][_0x3bc4f6(0x1e7)](_0x424586))[_0x3bc4f6(0x1d8)]();if(_0x9e8baf){const _0x26f908={'memberId':_0x171c95,'unitId':_0x424586,'content':_0x539f8f,'mention':_0x2fa257,'threadId':_0x1347ab},_0x522dcb=(await this['_httpService'][_0x3bc4f6(0x1a9)](_0x3bc4f6(0x1b1)+_0x424586+'/reply',{'body':_0x26f908}))[_0x3bc4f6(0x1db)]['reply'];return{..._0x46e15a,'id':_0x522dcb['replyId'],'dT':_0x48ced7(+_0x522dcb[_0x3bc4f6(0x1aa)])['format'](_0x3bc4f6(0x201)),'personId':_0x522dcb[_0x3bc4f6(0x1a5)]};}else{const _0x300e9b={'memberId':_0x171c95,'unitId':_0x424586,'content':_0x539f8f,'mention':_0x2fa257},_0x5c9cf3=await this[_0x3bc4f6(0x1b3)][_0x3bc4f6(0x1a9)](_0x3bc4f6(0x1b1)+_0x424586+'/add',{'body':_0x300e9b});return te(_0x5c9cf3[_0x3bc4f6(0x1db)][_0x3bc4f6(0x1e0)],_0x46e15a);}}async[_0x3bdc18(0x1dc)](_0x305a05){const _0x502e57=_0x3bdc18;var _0x38e21e,_0x1508ec;const {text:_0xa8cc32,unitId:_0x5ac86f}=_0x305a05,_0x4d64fa=(_0x1508ec=(_0x38e21e=_0xa8cc32[_0x502e57(0x1bf)])==null?void 0x0:_0x38e21e['filter'](_0x318dfb=>_0x318dfb[_0x502e57(0x1bd)]===_0x1415bf['COMMENT'])[_0x502e57(0x1ef)](_0x2d5374=>_0x2d5374['rangeId']))!=null?_0x1508ec:[],_0x266530=JSON[_0x502e57(0x1ed)](_0xa8cc32),_0xdf1873=_0x305a05[_0x502e57(0x1b5)],_0x4742bb=_0x305a05['id'],_0x27fa2f={'memberId':(await this[_0x502e57(0x1d7)]['requireSession'](_0x5ac86f))['getMemberID'](),'unitId':_0x5ac86f,'threadId':_0xdf1873,'mention':_0x4d64fa,'content':_0x266530,'replyId':_0x4742bb},_0x1df711=await this[_0x502e57(0x1b3)][_0x502e57(0x1a9)](_0x502e57(0x1b1)+_0x5ac86f+'/edit',{'body':_0x27fa2f});return!_0x1df711[_0x502e57(0x1db)][_0x502e57(0x1d2)]||_0x1df711['body'][_0x502e57(0x1d2)][_0x502e57(0x1ce)]===0x1;}async[_0x3bdc18(0x1c4)](_0x527d55){const _0x1fca56=_0x3bdc18,{unitId:_0x182b72}=_0x527d55,_0x19882f=_0x527d55[_0x1fca56(0x1b5)],_0x30f803={'memberId':this[_0x1fca56(0x1c5)][_0x1fca56(0x1ae)]()[_0x1fca56(0x1c2)],'unitId':_0x182b72,'threadId':_0x19882f,'solved':_0x527d55['resolved']?v[_0x1fca56(0x1d4)]:v[_0x1fca56(0x1e5)]},_0x3ca022=await this[_0x1fca56(0x1b3)][_0x1fca56(0x1a9)](_0x1fca56(0x1b1)+_0x182b72+_0x1fca56(0x1c3),{'body':_0x30f803});return!_0x3ca022['body'][_0x1fca56(0x1d2)]||_0x3ca022[_0x1fca56(0x1db)]['error']['code']===0x1;}async[_0x3bdc18(0x1f5)](_0x24eade,_0x2fe2f2,_0x4f38ec,_0x4f0b4f){const _0x483d91=_0x3bdc18,_0x41384e={'memberId':(await this['_sessionService'][_0x483d91(0x1e7)](_0x24eade))[_0x483d91(0x1d8)](),'threadId':_0x4f38ec,'replyId':_0x4f0b4f,'unitId':_0x24eade},_0x48e88b=await this[_0x483d91(0x1b3)][_0x483d91(0x1a9)](_0x483d91(0x1b1)+_0x24eade+_0x483d91(0x1da),{'body':_0x41384e});return!_0x48e88b[_0x483d91(0x1db)][_0x483d91(0x1d2)]||_0x48e88b[_0x483d91(0x1db)][_0x483d91(0x1d2)]['code']===0x1;}async['listComments'](_0x1bdb68,_0x37c9c3,_0x3e2471){const _0x44dd4b=_0x3bdc18,_0x27f860={'unitId':_0x1bdb68,'threadId':_0x3e2471},_0x51c836=await this[_0x44dd4b(0x1b3)]['post']('/universer-api/comment/unit/'+_0x1bdb68+_0x44dd4b(0x1e4),{'body':_0x27f860}),_0x1704a7=_0x3e2471['map'](_0x238a17=>se(_0x51c836[_0x44dd4b(0x1db)][_0x44dd4b(0x1e9)][_0x238a17],_0x1bdb68,_0x37c9c3))[_0x44dd4b(0x1e8)](Boolean);return Object['values'](_0x51c836['body'][_0x44dd4b(0x1fd)])[_0x44dd4b(0x203)](_0x46fb32=>{const _0x421a38=_0x44dd4b;this['_userService'][_0x421a38(0x1fe)](_0x46fb32);}),_0x1704a7;}[_0x3bdc18(0x1b8)](_0x52a9eb){const _0x5eb107=_0x3bdc18;return{'id':_0x52a9eb['id'],'threadId':_0x52a9eb[_0x5eb107(0x1b5)],'ref':_0x52a9eb['ref']};}};S=re([I(0x0,_0x1eb374(_0x1be0c4)),I(0x1,_0x1eb374(_0x426d68)),I(0x2,_0x1eb374(_0x8c1a27)),I(0x3,_0x1eb374(_0x5c40b1))],S);var oe=Object[_0x3bdc18(0x1ea)],ne=Object['getOwnPropertyDescriptor'],ie=(_0x714854,_0x56be87,_0x2909a7,_0x2e7f5e)=>{for(var _0x2e8c0a=_0x2e7f5e>0x1?void 0x0:_0x2e7f5e?ne(_0x56be87,_0x2909a7):_0x56be87,_0x36b9cc=_0x714854['length']-0x1,_0x1b0166;_0x36b9cc>=0x0;_0x36b9cc--)(_0x1b0166=_0x714854[_0x36b9cc])&&(_0x2e8c0a=(_0x2e7f5e?_0x1b0166(_0x56be87,_0x2909a7,_0x2e8c0a):_0x1b0166(_0x2e8c0a))||_0x2e8c0a);return _0x2e7f5e&&_0x2e8c0a&&oe(_0x56be87,_0x2909a7,_0x2e8c0a),_0x2e8c0a;},M=(_0x8c3f31,_0x379eb0)=>(_0x2613f3,_0x204c62)=>_0x379eb0(_0x2613f3,_0x204c62,_0x8c3f31);let b=class extends _0x2f32a1{constructor(_0x5b1b5c,_0x4aca0b){const _0x3d2d11=_0x3bdc18;super(),this['_threadCommentDataSourceService']=_0x5b1b5c,this[_0x3d2d11(0x1b6)]=_0x4aca0b,this[_0x3d2d11(0x1a6)]();}[_0x3bdc18(0x1a6)](){const _0x484146=_0x3bdc18;this['_threadCommentDataSourceService'][_0x484146(0x1c0)]=this['_threadCommentDataSource'],this[_0x484146(0x1f0)]['syncUpdateMutationToColla']=!0x1;}};b=ie([M(0x0,_0x31dc4e),M(0x1,_0x1eb374(S))],b);var $=Object['defineProperty'],ce=Object['getOwnPropertyDescriptor'],ae=(_0x9451cc,_0xcaae0b,_0x44f90a)=>_0xcaae0b in _0x9451cc?$(_0x9451cc,_0xcaae0b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44f90a}):_0x9451cc[_0xcaae0b]=_0x44f90a,de=(_0x19b94e,_0x599e77,_0x284f9,_0x1940f5)=>{const _0x5296bb=_0x3bdc18;for(var _0x56198a=_0x1940f5>0x1?void 0x0:_0x1940f5?ce(_0x599e77,_0x284f9):_0x599e77,_0x2e9fb5=_0x19b94e[_0x5296bb(0x1b9)]-0x1,_0x25fefe;_0x2e9fb5>=0x0;_0x2e9fb5--)(_0x25fefe=_0x19b94e[_0x2e9fb5])&&(_0x56198a=(_0x1940f5?_0x25fefe(_0x599e77,_0x284f9,_0x56198a):_0x25fefe(_0x56198a))||_0x56198a);return _0x1940f5&&_0x56198a&&$(_0x599e77,_0x284f9,_0x56198a),_0x56198a;},N=(_0x2951e0,_0x41d405)=>(_0xa197f5,_0x22e987)=>_0x41d405(_0xa197f5,_0x22e987,_0x2951e0),j=(_0x135fec,_0x5d4d8e,_0x537a06)=>ae(_0x135fec,typeof _0x5d4d8e!=_0x3bdc18(0x1d5)?_0x5d4d8e+'':_0x5d4d8e,_0x537a06);let C=class extends _0x4bceec{constructor(_0x41a829=P,_0x1a492b,_0x38ba39){const _0x3014a1=_0x3bdc18;super(),this['_config']=_0x41a829,this['_injector']=_0x1a492b,this[_0x3014a1(0x1f7)]=_0x38ba39;const {..._0x93b49c}=_0x5519cd({},P,this[_0x3014a1(0x1cd)]);this[_0x3014a1(0x1f7)][_0x3014a1(0x202)](X,_0x93b49c);}[_0x3bdc18(0x1c9)](){const _0x42aec4=_0x3bdc18;[[S],[b],[f]][_0x42aec4(0x203)](_0x53cd6f=>{const _0x510648=_0x42aec4;this[_0x510648(0x1c8)]['add'](_0x53cd6f);});}['onReady'](){const _0x54d001=_0x3bdc18;this[_0x54d001(0x1c8)][_0x54d001(0x1ad)](b),this[_0x54d001(0x1c8)][_0x54d001(0x1ad)](f);}};j(C,_0x3bdc18(0x1de),B),j(C,_0x3bdc18(0x1d0),_0x1f859b[_0x3bdc18(0x1df)]),C=de([_0x5662ab(_0x1017cc,_0x387457,_0x28642f),N(0x1,_0x1eb374(_0x5c40b1)),N(0x2,_0x5bebfc)],C);export{C as UniverThreadCommentDataSourcePlugin};
1
+ const _0x49a43c=_0x9690;(function(_0x2b01e8,_0x5843fb){const _0x676c49=_0x9690,_0x109221=_0x2b01e8();while(!![]){try{const _0x178de6=-parseInt(_0x676c49(0x1aa))/0x1+-parseInt(_0x676c49(0x183))/0x2*(parseInt(_0x676c49(0x1d4))/0x3)+-parseInt(_0x676c49(0x19a))/0x4*(-parseInt(_0x676c49(0x1c9))/0x5)+-parseInt(_0x676c49(0x1cb))/0x6*(parseInt(_0x676c49(0x1d9))/0x7)+-parseInt(_0x676c49(0x19f))/0x8+-parseInt(_0x676c49(0x1d1))/0x9+parseInt(_0x676c49(0x17f))/0xa;if(_0x178de6===_0x5843fb)break;else _0x109221['push'](_0x109221['shift']());}catch(_0x3b9878){_0x109221['push'](_0x109221['shift']());}}}(_0xeb68,0x8b680));import{CommentService as _0x23b448,CollaborationSessionService as _0x46fd22,UniverCollaborationClientPlugin as _0x192a75}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x2e972a}from'@univerjs-pro/license';import{dayjs as _0x5828b6,UserManagerService as _0x21a274,Inject as _0x1ece54,Injector as _0x2e703f,Disposable as _0x2599c0,CustomRangeType as _0x29e93f,UniverInstanceType as _0x1c4ab6,DependentOn as _0x2312d9,Plugin as _0x515e41,merge as _0xae27d9,IConfigService as _0x597de3}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x54a460}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x2acc31,IThreadCommentDataSourceService as _0x5c11c1}from'@univerjs/thread-comment';import{bufferTime as _0x59e321}from'rxjs';import{HTTPService as _0x2731d6}from'@univerjs/network';const B=_0x49a43c(0x195);function _0x9690(_0x2452d0,_0x1dc44c){const _0xeb6850=_0xeb68();return _0x9690=function(_0x96907f,_0x7ea2e7){_0x96907f=_0x96907f-0x176;let _0x2146b6=_0xeb6850[_0x96907f];return _0x2146b6;},_0x9690(_0x2452d0,_0x1dc44c);}function _0xeb68(){const _0x6a8991=['/universer-api/user/list','onStarting','user','content','Add','1092163SzMvtW','Solved','Delete','slice','thread-comment-data-source.config','find','delete','createTimestamp','UNRECOGNIZED','Edit','_sessionService','YYYY/MM/DD\x20HH:mm','/edit','userId','ref','unitId','getUser','_userService','_threadCommentModel','resolved','root','filter','map','getOwnPropertyDescriptor','rangeType','subscribe','threadId','users','body','setConfig','code','65ZSwVka','parse','114uyvfIU','getUnit','COMMENT','dataSource','onReady','_commentService','4188393RPgvVI','/delete','/add','418428vfjapf','comment','length','replyId','personId','55489KJkNrc','solved','_httpService','replies','stringify','updateComment','disposeWithMe','_initDataSource','pluginName','format','/universer-api/comment/unit/','_initUserSync','38578290mFDUuj','userID','listComments','get','14UXMmgH','OpenOrReOpen','_threadCommentDataSourceService','rangeId','commentUpdate$','comments','symbol','error','Unknown','post','_threadCommentDataSource','deleteComment','/reply','Solve','_injector','customRanges','size','forEach','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','getMemberID','resolveComment','/list','addUser','39436PLUzbz','Reply','add','_config','_configService','5844024typqxV','requireSession','type','defineProperty','_init','getCurrentUser'];_0xeb68=function(){return _0x6a8991;};return _0xeb68();}var v=(_0x4e8ba6=>(_0x4e8ba6[_0x4e8ba6[_0x49a43c(0x184)]=0x0]='OpenOrReOpen',_0x4e8ba6[_0x4e8ba6[_0x49a43c(0x1ab)]=0x1]=_0x49a43c(0x1ab),_0x4e8ba6[_0x4e8ba6[_0x49a43c(0x1b2)]=-0x1]=_0x49a43c(0x1b2),_0x4e8ba6))(v||{}),p=(_0x374bea=>(_0x374bea[_0x374bea[_0x49a43c(0x18b)]=0x0]='Unknown',_0x374bea[_0x374bea[_0x49a43c(0x1a9)]=0x1]=_0x49a43c(0x1a9),_0x374bea[_0x374bea[_0x49a43c(0x19b)]=0x2]=_0x49a43c(0x19b),_0x374bea[_0x374bea['Edit']=0x3]='Edit',_0x374bea[_0x374bea[_0x49a43c(0x1ac)]=0x4]=_0x49a43c(0x1ac),_0x374bea[_0x374bea['Solve']=0x5]=_0x49a43c(0x190),_0x374bea[_0x374bea['UNRECOGNIZED']=-0x1]=_0x49a43c(0x1b2),_0x374bea))(p||{});const O=_0x16fd64=>_0x5828b6(new Date(+_0x16fd64))[_0x49a43c(0x17c)]('YYYY/MM/DD\x20HH:mm'),K=async(_0x8a5188,_0x502646)=>{const _0xcca3bb=_0x49a43c,_0x473bfa=_0x8a5188['get'](_0x21a274),_0x28ced9=_0x8a5188[_0xcca3bb(0x182)](_0x2731d6);_0x502646[_0xcca3bb(0x194)](_0x5c3904=>{const _0x2d5b15=_0xcca3bb;_0x473bfa[_0x2d5b15(0x1ba)](_0x5c3904)&&_0x502646[_0x2d5b15(0x1b0)](_0x5c3904);}),_0x502646[_0xcca3bb(0x193)]&&(await _0x28ced9[_0xcca3bb(0x182)](_0xcca3bb(0x1a5),{'params':{'userIDs':[..._0x502646]}}))[_0xcca3bb(0x1c6)][_0xcca3bb(0x1c5)][_0xcca3bb(0x194)](_0xa8b9f3=>{const _0x528cd3=_0xcca3bb;_0xa8b9f3&&_0x473bfa[_0x528cd3(0x199)](_0xa8b9f3);});};var V=Object[_0x49a43c(0x1a2)],z=Object[_0x49a43c(0x1c1)],Q=(_0x46f9bf,_0x8142e7,_0x9d8ced,_0x49d523)=>{const _0x25e520=_0x49a43c;for(var _0x549f84=_0x49d523>0x1?void 0x0:_0x49d523?z(_0x8142e7,_0x9d8ced):_0x8142e7,_0x4fa447=_0x46f9bf[_0x25e520(0x1d6)]-0x1,_0x52d49e;_0x4fa447>=0x0;_0x4fa447--)(_0x52d49e=_0x46f9bf[_0x4fa447])&&(_0x549f84=(_0x49d523?_0x52d49e(_0x8142e7,_0x9d8ced,_0x549f84):_0x52d49e(_0x549f84))||_0x549f84);return _0x49d523&&_0x549f84&&V(_0x8142e7,_0x9d8ced,_0x549f84),_0x549f84;},_=(_0x520715,_0x8341b6)=>(_0x2b9058,_0x271b7a)=>_0x8341b6(_0x2b9058,_0x271b7a,_0x520715);let f=class extends _0x2599c0{constructor(_0x11191f,_0xe47969,_0x551968,_0x23999c){const _0x30528d=_0x49a43c;super(),this[_0x30528d(0x1d0)]=_0x11191f,this[_0x30528d(0x1bc)]=_0xe47969,this['_userService']=_0x551968,this['_injector']=_0x23999c,this[_0x30528d(0x1a3)](),this[_0x30528d(0x17e)]();}['_initUserSync'](){const _0x16afbb=_0x49a43c;this[_0x16afbb(0x179)](this[_0x16afbb(0x1bc)][_0x16afbb(0x187)]['pipe'](_0x59e321(0x10))['subscribe'](_0x519fae=>{const _0x4fb04a=_0x16afbb,_0x4d1b03=new Set();_0x519fae['forEach'](_0x428849=>{const _0x4549bf=_0x9690;switch(_0x428849[_0x4549bf(0x1a1)]){case _0x4549bf(0x19c):{const _0x29a28e=_0x428849['payload'][_0x4549bf(0x1d8)];_0x4d1b03[_0x4549bf(0x19c)](_0x29a28e);break;}}}),K(this[_0x4fb04a(0x191)],_0x4d1b03);}));}[_0x49a43c(0x1a3)](){const _0x4e4d07=_0x49a43c;this['disposeWithMe'](this[_0x4e4d07(0x1d0)]['commentUpdate$'][_0x4e4d07(0x1c3)](async _0x4a2b3e=>{const _0x550d7f=_0x4e4d07;var _0x31c451,_0x3d3ea6,_0xd2c1cd,_0xf5ffa7;const _0xbb3fd=(_0x31c451=this[_0x550d7f(0x1bc)][_0x550d7f(0x1cc)](_0x4a2b3e['unitId'])[_0x550d7f(0x1af)](_0x286dd5=>_0x286dd5[_0x550d7f(0x1c4)]===_0x4a2b3e[_0x550d7f(0x1c4)]))==null?void 0x0:_0x31c451['root'];if(!_0xbb3fd)return;const {unitId:_0x20ab2d,subUnitId:_0x468198}=_0xbb3fd;switch(_0x4a2b3e[_0x550d7f(0x1a7)]&&this[_0x550d7f(0x1bb)][_0x550d7f(0x199)](_0x4a2b3e[_0x550d7f(0x1a7)]),_0x4a2b3e['type']){case p[_0x550d7f(0x1a9)]:break;case p[_0x550d7f(0x19b)]:{this[_0x550d7f(0x1bc)]['addComment'](_0x20ab2d,_0x468198,{'unitId':_0x20ab2d,'subUnitId':_0x468198,'ref':'','id':_0x4a2b3e[_0x550d7f(0x1d7)],'dT':O(+_0x4a2b3e['createTimestamp']),'threadId':_0x4a2b3e[_0x550d7f(0x1c4)],'personId':(_0xd2c1cd=(_0x3d3ea6=_0x4a2b3e[_0x550d7f(0x1a7)])==null?void 0x0:_0x3d3ea6['userID'])!=null?_0xd2c1cd:_0x4a2b3e[_0x550d7f(0x1b7)],'text':JSON['parse'](_0x4a2b3e[_0x550d7f(0x1a8)]),'parentId':_0xbb3fd['id']});break;}case p[_0x550d7f(0x1ac)]:{const _0x24a774=this[_0x550d7f(0x1bc)]['getComment'](_0x20ab2d,_0x468198,_0x4a2b3e[_0x550d7f(0x1d7)]);_0x24a774&&_0x24a774['parentId']&&this[_0x550d7f(0x1bc)][_0x550d7f(0x18e)](_0x20ab2d,_0x468198,_0x4a2b3e[_0x550d7f(0x1d7)]);break;}case p[_0x550d7f(0x1b3)]:{this[_0x550d7f(0x1bc)][_0x550d7f(0x178)](_0x20ab2d,_0x468198,{'commentId':_0x4a2b3e[_0x550d7f(0x1d7)],'text':JSON[_0x550d7f(0x1ca)](_0x4a2b3e[_0x550d7f(0x1a8)])});break;}case p[_0x550d7f(0x190)]:{const _0x97a19f=(_0xf5ffa7=this[_0x550d7f(0x1bc)][_0x550d7f(0x1cc)](_0x4a2b3e[_0x550d7f(0x1b9)])[_0x550d7f(0x1af)](_0x366f61=>_0x366f61[_0x550d7f(0x1c4)]===_0x4a2b3e[_0x550d7f(0x1c4)]))==null?void 0x0:_0xf5ffa7[_0x550d7f(0x1be)];_0x97a19f&&this[_0x550d7f(0x1bc)][_0x550d7f(0x197)](_0x20ab2d,_0x468198,_0x97a19f['id'],_0x4a2b3e[_0x550d7f(0x1da)]===v[_0x550d7f(0x1ab)]);break;}}}));}};f=Q([_(0x0,_0x1ece54(_0x23b448)),_(0x1,_0x1ece54(_0x2acc31)),_(0x2,_0x1ece54(_0x21a274)),_(0x3,_0x1ece54(_0x2e703f))],f);const X=_0x49a43c(0x1ae),P={};var k=Object[_0x49a43c(0x1a2)],ee=Object['getOwnPropertyDescriptor'],re=(_0x1b0a59,_0x48d557,_0x1bd142,_0xf77e03)=>{const _0x24cd14=_0x49a43c;for(var _0x3bdb30=_0xf77e03>0x1?void 0x0:_0xf77e03?ee(_0x48d557,_0x1bd142):_0x48d557,_0x2fc757=_0x1b0a59[_0x24cd14(0x1d6)]-0x1,_0x671b48;_0x2fc757>=0x0;_0x2fc757--)(_0x671b48=_0x1b0a59[_0x2fc757])&&(_0x3bdb30=(_0xf77e03?_0x671b48(_0x48d557,_0x1bd142,_0x3bdb30):_0x671b48(_0x3bdb30))||_0x3bdb30);return _0xf77e03&&_0x3bdb30&&k(_0x48d557,_0x1bd142,_0x3bdb30),_0x3bdb30;},I=(_0x2040e7,_0x14d6cb)=>(_0x278bb9,_0x3d923e)=>_0x14d6cb(_0x278bb9,_0x3d923e,_0x2040e7);function te(_0x3a5b42,_0x2054ad){const _0x2ad0f3=_0x49a43c,_0x28cb15=_0x3a5b42['replies'][0x0];return{..._0x2054ad,'id':_0x28cb15['replyId'],'resolved':_0x3a5b42[_0x2ad0f3(0x1da)]===0x1,'dT':O(_0x28cb15['createTimestamp']),'personId':_0x28cb15['userId'],'threadId':_0x28cb15[_0x2ad0f3(0x1c4)]};}function se(_0x33556d,_0x577371,_0x5730ea){const _0xd17a4f=_0x49a43c;var _0x41d62d,_0x15004a;if(((_0x15004a=(_0x41d62d=_0x33556d==null?void 0x0:_0x33556d[_0xd17a4f(0x176)])==null?void 0x0:_0x41d62d[_0xd17a4f(0x1d6)])!=null?_0x15004a:0x0)>0x0){const _0x3dd3d4=(_0x5364ac,_0x33f65c)=>({'id':_0x5364ac[_0xd17a4f(0x1d7)],'threadId':_0x5364ac['threadId'],'dT':O(_0x5364ac[_0xd17a4f(0x1b1)]),'personId':_0x5364ac[_0xd17a4f(0x1b7)],'resolved':_0x33556d[_0xd17a4f(0x1da)]===v[_0xd17a4f(0x1ab)],'unitId':_0x577371,'subUnitId':_0x5730ea,'text':JSON[_0xd17a4f(0x1ca)](_0x5364ac[_0xd17a4f(0x1a8)]),'parentId':_0x33f65c}),_0x47459d=_0x3dd3d4(_0x33556d['replies'][0x0]);return{..._0x47459d,'children':_0x33556d['replies'][_0xd17a4f(0x1ad)](0x1)[_0xd17a4f(0x1c0)](_0x153a37=>_0x3dd3d4(_0x153a37,_0x47459d['id']))};}return null;}let S=class{constructor(_0xf7d4bb,_0x12cb1b,_0x1adfac,_0x3a11a4){const _0x55beac=_0x49a43c;this[_0x55beac(0x1db)]=_0xf7d4bb,this[_0x55beac(0x1bb)]=_0x12cb1b,this['_sessionService']=_0x1adfac,this[_0x55beac(0x191)]=_0x3a11a4;}async['addComment'](_0x556818){const _0x179109=_0x49a43c;var _0x4ab0d3,_0x8ebbe7;const {parentId:_0x21a265,unitId:_0x1826ff,text:_0x219fc5,threadId:_0x2cbbb1}=_0x556818,_0x2f0f2e=(_0x8ebbe7=(_0x4ab0d3=_0x219fc5[_0x179109(0x192)])==null?void 0x0:_0x4ab0d3['filter'](_0x26b1a9=>_0x26b1a9[_0x179109(0x1c2)]===_0x29e93f[_0x179109(0x1cd)])[_0x179109(0x1c0)](_0x65aab4=>_0x65aab4[_0x179109(0x186)]))!=null?_0x8ebbe7:[],_0x5d6d63=JSON[_0x179109(0x177)](_0x219fc5),_0x2f92a0=(await this[_0x179109(0x1b4)][_0x179109(0x1a0)](_0x1826ff))['getMemberID']();if(_0x21a265){const _0x33764b={'memberId':_0x2f92a0,'unitId':_0x1826ff,'content':_0x5d6d63,'mention':_0x2f0f2e,'threadId':_0x2cbbb1},_0x455159=(await this['_httpService'][_0x179109(0x18c)](_0x179109(0x17d)+_0x1826ff+_0x179109(0x18f),{'body':_0x33764b}))[_0x179109(0x1c6)]['reply'];return{..._0x556818,'id':_0x455159[_0x179109(0x1d7)],'dT':_0x5828b6(+_0x455159['createTimestamp'])[_0x179109(0x17c)](_0x179109(0x1b5)),'personId':_0x455159[_0x179109(0x1b7)]};}else{const _0xeb0482={'memberId':_0x2f92a0,'unitId':_0x1826ff,'content':_0x5d6d63,'mention':_0x2f0f2e},_0x33f1de=await this[_0x179109(0x1db)][_0x179109(0x18c)](_0x179109(0x17d)+_0x1826ff+_0x179109(0x1d3),{'body':_0xeb0482});return te(_0x33f1de[_0x179109(0x1c6)][_0x179109(0x1d5)],_0x556818);}}async[_0x49a43c(0x178)](_0xf6cbf1){const _0x2152e0=_0x49a43c;var _0x1b5627,_0x49a654;const {text:_0x91e25a,unitId:_0x14d1ea}=_0xf6cbf1,_0x31a615=(_0x49a654=(_0x1b5627=_0x91e25a[_0x2152e0(0x192)])==null?void 0x0:_0x1b5627[_0x2152e0(0x1bf)](_0x358055=>_0x358055['rangeType']===_0x29e93f[_0x2152e0(0x1cd)])[_0x2152e0(0x1c0)](_0x177018=>_0x177018[_0x2152e0(0x186)]))!=null?_0x49a654:[],_0x1c2ed1=JSON[_0x2152e0(0x177)](_0x91e25a),_0x3d3499=_0xf6cbf1[_0x2152e0(0x1c4)],_0x1c476a=_0xf6cbf1['id'],_0x4ef064={'memberId':(await this[_0x2152e0(0x1b4)]['requireSession'](_0x14d1ea))[_0x2152e0(0x196)](),'unitId':_0x14d1ea,'threadId':_0x3d3499,'mention':_0x31a615,'content':_0x1c2ed1,'replyId':_0x1c476a},_0x21002f=await this[_0x2152e0(0x1db)][_0x2152e0(0x18c)]('/universer-api/comment/unit/'+_0x14d1ea+_0x2152e0(0x1b6),{'body':_0x4ef064});return!_0x21002f[_0x2152e0(0x1c6)][_0x2152e0(0x18a)]||_0x21002f['body'][_0x2152e0(0x18a)][_0x2152e0(0x1c8)]===0x1;}async[_0x49a43c(0x197)](_0x4b8d2e){const _0x54314d=_0x49a43c,{unitId:_0xee532e}=_0x4b8d2e,_0x19dc57=_0x4b8d2e[_0x54314d(0x1c4)],_0x102427={'memberId':this[_0x54314d(0x1bb)][_0x54314d(0x1a4)]()[_0x54314d(0x180)],'unitId':_0xee532e,'threadId':_0x19dc57,'solved':_0x4b8d2e[_0x54314d(0x1bd)]?v[_0x54314d(0x1ab)]:v['OpenOrReOpen']},_0x28c23a=await this[_0x54314d(0x1db)][_0x54314d(0x18c)](_0x54314d(0x17d)+_0xee532e+'/solved',{'body':_0x102427});return!_0x28c23a[_0x54314d(0x1c6)][_0x54314d(0x18a)]||_0x28c23a[_0x54314d(0x1c6)]['error']['code']===0x1;}async['deleteComment'](_0x3fb400,_0x3d85f9,_0x5776d5,_0x25ef5b){const _0x16a5a0=_0x49a43c,_0x2d7cb1={'memberId':(await this[_0x16a5a0(0x1b4)][_0x16a5a0(0x1a0)](_0x3fb400))[_0x16a5a0(0x196)](),'threadId':_0x5776d5,'replyId':_0x25ef5b,'unitId':_0x3fb400},_0x29abd3=await this[_0x16a5a0(0x1db)]['post']('/universer-api/comment/unit/'+_0x3fb400+_0x16a5a0(0x1d2),{'body':_0x2d7cb1});return!_0x29abd3[_0x16a5a0(0x1c6)]['error']||_0x29abd3[_0x16a5a0(0x1c6)][_0x16a5a0(0x18a)]['code']===0x1;}async[_0x49a43c(0x181)](_0x3260e0,_0x3eb225,_0x307497){const _0x23f259=_0x49a43c,_0x34e3e1={'unitId':_0x3260e0,'threadId':_0x307497},_0x14ae4a=await this[_0x23f259(0x1db)][_0x23f259(0x18c)](_0x23f259(0x17d)+_0x3260e0+_0x23f259(0x198),{'body':_0x34e3e1}),_0xdd7049=_0x307497[_0x23f259(0x1c0)](_0x5a137d=>se(_0x14ae4a[_0x23f259(0x1c6)][_0x23f259(0x188)][_0x5a137d],_0x3260e0,_0x3eb225))['filter'](Boolean);return Object['values'](_0x14ae4a[_0x23f259(0x1c6)][_0x23f259(0x1c5)])['forEach'](_0x176f84=>{const _0x52358f=_0x23f259;this[_0x52358f(0x1bb)][_0x52358f(0x199)](_0x176f84);}),_0xdd7049;}['saveCommentToSnapshot'](_0x5a78f9){const _0x549115=_0x49a43c;return{'id':_0x5a78f9['id'],'threadId':_0x5a78f9[_0x549115(0x1c4)],'ref':_0x5a78f9[_0x549115(0x1b8)]};}};S=re([I(0x0,_0x1ece54(_0x2731d6)),I(0x1,_0x1ece54(_0x21a274)),I(0x2,_0x1ece54(_0x46fd22)),I(0x3,_0x1ece54(_0x2e703f))],S);var oe=Object[_0x49a43c(0x1a2)],ne=Object[_0x49a43c(0x1c1)],ie=(_0x5a4fdb,_0x3b3ef7,_0x3a2d4f,_0x29fc71)=>{const _0x34feb=_0x49a43c;for(var _0x2bdc18=_0x29fc71>0x1?void 0x0:_0x29fc71?ne(_0x3b3ef7,_0x3a2d4f):_0x3b3ef7,_0x3a8f07=_0x5a4fdb[_0x34feb(0x1d6)]-0x1,_0x5e4979;_0x3a8f07>=0x0;_0x3a8f07--)(_0x5e4979=_0x5a4fdb[_0x3a8f07])&&(_0x2bdc18=(_0x29fc71?_0x5e4979(_0x3b3ef7,_0x3a2d4f,_0x2bdc18):_0x5e4979(_0x2bdc18))||_0x2bdc18);return _0x29fc71&&_0x2bdc18&&oe(_0x3b3ef7,_0x3a2d4f,_0x2bdc18),_0x2bdc18;},M=(_0x54978c,_0x36ded4)=>(_0x2e0ec2,_0x1fcfd3)=>_0x36ded4(_0x2e0ec2,_0x1fcfd3,_0x54978c);let b=class extends _0x2599c0{constructor(_0x50c7b7,_0x4f6eaf){const _0x3cc4b1=_0x49a43c;super(),this['_threadCommentDataSourceService']=_0x50c7b7,this[_0x3cc4b1(0x18d)]=_0x4f6eaf,this[_0x3cc4b1(0x17a)]();}[_0x49a43c(0x17a)](){const _0x8165da=_0x49a43c;this[_0x8165da(0x185)][_0x8165da(0x1ce)]=this[_0x8165da(0x18d)],this[_0x8165da(0x185)]['syncUpdateMutationToColla']=!0x1;}};b=ie([M(0x0,_0x5c11c1),M(0x1,_0x1ece54(S))],b);var $=Object[_0x49a43c(0x1a2)],ce=Object['getOwnPropertyDescriptor'],ae=(_0x3602d0,_0x5e1c6a,_0x425c24)=>_0x5e1c6a in _0x3602d0?$(_0x3602d0,_0x5e1c6a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425c24}):_0x3602d0[_0x5e1c6a]=_0x425c24,de=(_0xb86562,_0xe24f36,_0x109451,_0x4279e2)=>{const _0xd17deb=_0x49a43c;for(var _0x5bc738=_0x4279e2>0x1?void 0x0:_0x4279e2?ce(_0xe24f36,_0x109451):_0xe24f36,_0x3ab4f6=_0xb86562[_0xd17deb(0x1d6)]-0x1,_0x20290a;_0x3ab4f6>=0x0;_0x3ab4f6--)(_0x20290a=_0xb86562[_0x3ab4f6])&&(_0x5bc738=(_0x4279e2?_0x20290a(_0xe24f36,_0x109451,_0x5bc738):_0x20290a(_0x5bc738))||_0x5bc738);return _0x4279e2&&_0x5bc738&&$(_0xe24f36,_0x109451,_0x5bc738),_0x5bc738;},N=(_0x32242e,_0x2973e0)=>(_0x339dcf,_0x1acc45)=>_0x2973e0(_0x339dcf,_0x1acc45,_0x32242e),j=(_0x385c20,_0x34acf6,_0x28fe6f)=>ae(_0x385c20,typeof _0x34acf6!=_0x49a43c(0x189)?_0x34acf6+'':_0x34acf6,_0x28fe6f);let C=class extends _0x515e41{constructor(_0x5be38a=P,_0x22b334,_0x3bb2f0){const _0x24c639=_0x49a43c;super(),this[_0x24c639(0x19d)]=_0x5be38a,this[_0x24c639(0x191)]=_0x22b334,this[_0x24c639(0x19e)]=_0x3bb2f0;const {..._0x5e4da5}=_0xae27d9({},P,this[_0x24c639(0x19d)]);this['_configService'][_0x24c639(0x1c7)](X,_0x5e4da5);}[_0x49a43c(0x1a6)](){const _0x3c8632=_0x49a43c;[[S],[b],[f]][_0x3c8632(0x194)](_0x5c544a=>{const _0x2d2ca3=_0x3c8632;this[_0x2d2ca3(0x191)][_0x2d2ca3(0x19c)](_0x5c544a);});}[_0x49a43c(0x1cf)](){const _0x2187d2=_0x49a43c;this[_0x2187d2(0x191)][_0x2187d2(0x182)](b),this['_injector']['get'](f);}};j(C,_0x49a43c(0x17b),B),j(C,_0x49a43c(0x1a1),_0x1c4ab6['UNIVER_UNKNOWN']),C=de([_0x2312d9(_0x54a460,_0x192a75,_0x2e972a),N(0x1,_0x1ece54(_0x2e703f)),N(0x2,_0x597de3)],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(_0x4cd3b6,_0x3f975b){const _0xa4281e=_0x213f,_0x20792d=_0x4cd3b6();while(!![]){try{const _0x4d072e=-parseInt(_0xa4281e(0x76))/0x1+-parseInt(_0xa4281e(0xe5))/0x2*(-parseInt(_0xa4281e(0xda))/0x3)+-parseInt(_0xa4281e(0xc0))/0x4+parseInt(_0xa4281e(0xb6))/0x5*(-parseInt(_0xa4281e(0xe1))/0x6)+parseInt(_0xa4281e(0xee))/0x7*(parseInt(_0xa4281e(0xef))/0x8)+parseInt(_0xa4281e(0xbf))/0x9*(-parseInt(_0xa4281e(0x9d))/0xa)+parseInt(_0xa4281e(0x84))/0xb;if(_0x4d072e===_0x3f975b)break;else _0x20792d['push'](_0x20792d['shift']());}catch(_0x426c30){_0x20792d['push'](_0x20792d['shift']());}}}(_0x1617,0xd5dab),function(_0x143190,_0x350d64){const _0x3780ad=_0x213f;typeof exports==_0x3780ad(0xc9)&&typeof module<'u'?_0x350d64(exports,require(_0x3780ad(0xe0)),require(_0x3780ad(0xb2)),require('@univerjs/core'),require(_0x3780ad(0xca)),require(_0x3780ad(0xdd)),require(_0x3780ad(0xeb)),require(_0x3780ad(0x8f))):typeof define==_0x3780ad(0xb0)&&define[_0x3780ad(0xe4)]?define(['exports',_0x3780ad(0xe0),_0x3780ad(0xb2),_0x3780ad(0x73),_0x3780ad(0xca),_0x3780ad(0xdd),'rxjs',_0x3780ad(0x8f)],_0x350d64):(_0x143190=typeof globalThis<'u'?globalThis:_0x143190||self,_0x350d64(_0x143190['UniverProThreadCommentDatasource']={},_0x143190['UniverProCollaborationClient'],_0x143190[_0x3780ad(0x7e)],_0x143190[_0x3780ad(0xa8)],_0x143190[_0x3780ad(0x79)],_0x143190['UniverThreadComment'],_0x143190[_0x3780ad(0xeb)],_0x143190[_0x3780ad(0x6f)]));}(this,function(_0x906bb0,_0x1202b0,_0x476a94,_0x3363e0,_0x568744,_0x3c9c3d,_0x1eb0da,_0x105fba){'use strict';const _0x4e7149=_0x213f;const _0x21bea2=_0x4e7149(0x88);var _0x599247=(_0x4d5c80=>(_0x4d5c80[_0x4d5c80['OpenOrReOpen']=0x0]=_0x4e7149(0xd1),_0x4d5c80[_0x4d5c80['Solved']=0x1]='Solved',_0x4d5c80[_0x4d5c80[_0x4e7149(0x9f)]=-0x1]=_0x4e7149(0x9f),_0x4d5c80))(_0x599247||{}),_0x19d9b7=(_0x53bfb2=>(_0x53bfb2[_0x53bfb2['Unknown']=0x0]=_0x4e7149(0xd2),_0x53bfb2[_0x53bfb2[_0x4e7149(0xa6)]=0x1]=_0x4e7149(0xa6),_0x53bfb2[_0x53bfb2[_0x4e7149(0xf4)]=0x2]=_0x4e7149(0xf4),_0x53bfb2[_0x53bfb2['Edit']=0x3]=_0x4e7149(0x95),_0x53bfb2[_0x53bfb2[_0x4e7149(0xcc)]=0x4]='Delete',_0x53bfb2[_0x53bfb2['Solve']=0x5]=_0x4e7149(0xbc),_0x53bfb2[_0x53bfb2[_0x4e7149(0x9f)]=-0x1]=_0x4e7149(0x9f),_0x53bfb2))(_0x19d9b7||{});const _0x466a5e=_0x38e131=>_0x3363e0[_0x4e7149(0xa4)](new Date(+_0x38e131))[_0x4e7149(0xf1)](_0x4e7149(0x9b)),_0x19dd50=async(_0x5c6eaf,_0xd3265e)=>{const _0x53d97f=_0x4e7149,_0x1e3210=_0x5c6eaf[_0x53d97f(0xed)](_0x3363e0[_0x53d97f(0x83)]),_0x37e3e7=_0x5c6eaf[_0x53d97f(0xed)](_0x105fba[_0x53d97f(0xbe)]);_0xd3265e[_0x53d97f(0xb3)](_0x4d383e=>{const _0x5cdfef=_0x53d97f;_0x1e3210[_0x5cdfef(0xac)](_0x4d383e)&&_0xd3265e['delete'](_0x4d383e);}),_0xd3265e[_0x53d97f(0xa0)]&&(await _0x37e3e7[_0x53d97f(0xed)](_0x53d97f(0xec),{'params':{'userIDs':[..._0xd3265e]}}))[_0x53d97f(0xdb)][_0x53d97f(0xbd)][_0x53d97f(0xb3)](_0x4db59d=>{const _0x1136ab=_0x53d97f;_0x4db59d&&_0x1e3210[_0x1136ab(0xa2)](_0x4db59d);});};var _0x610164=Object[_0x4e7149(0x7a)],_0x3d4ae4=Object['getOwnPropertyDescriptor'],_0xfe6d8e=(_0x47c934,_0x257235,_0x1811e4,_0x55ea35)=>{for(var _0x5584cd=_0x55ea35>0x1?void 0x0:_0x55ea35?_0x3d4ae4(_0x257235,_0x1811e4):_0x257235,_0x568dad=_0x47c934['length']-0x1,_0x50c403;_0x568dad>=0x0;_0x568dad--)(_0x50c403=_0x47c934[_0x568dad])&&(_0x5584cd=(_0x55ea35?_0x50c403(_0x257235,_0x1811e4,_0x5584cd):_0x50c403(_0x5584cd))||_0x5584cd);return _0x55ea35&&_0x5584cd&&_0x610164(_0x257235,_0x1811e4,_0x5584cd),_0x5584cd;},_0x56dfda=(_0x1f9a47,_0x4d8fcc)=>(_0xf5ea69,_0xcfafdc)=>_0x4d8fcc(_0xf5ea69,_0xcfafdc,_0x1f9a47);let _0x50b6c4=class extends _0x3363e0[_0x4e7149(0x87)]{constructor(_0x51383a,_0x3eb54c,_0x53b7c3,_0x2cd9f9){const _0x4e8296=_0x4e7149;super(),this['_commentService']=_0x51383a,this[_0x4e8296(0xde)]=_0x3eb54c,this[_0x4e8296(0xf6)]=_0x53b7c3,this[_0x4e8296(0xf2)]=_0x2cd9f9,this[_0x4e8296(0xad)](),this[_0x4e8296(0x7f)]();}[_0x4e7149(0x7f)](){const _0x13adec=_0x4e7149;this[_0x13adec(0x80)](this[_0x13adec(0xde)][_0x13adec(0xd7)][_0x13adec(0xc2)](_0x1eb0da[_0x13adec(0x99)](0x10))[_0x13adec(0xdc)](_0x293f1e=>{const _0x4a004a=_0x13adec,_0x5680a4=new Set();_0x293f1e[_0x4a004a(0xb3)](_0x145bca=>{const _0xd26635=_0x4a004a;switch(_0x145bca[_0xd26635(0xc1)]){case _0xd26635(0xe7):{const _0x11f0ad=_0x145bca['payload'][_0xd26635(0xf3)];_0x5680a4['add'](_0x11f0ad);break;}}}),_0x19dd50(this[_0x4a004a(0xf2)],_0x5680a4);}));}[_0x4e7149(0xad)](){const _0x1e7eab=_0x4e7149;this[_0x1e7eab(0x80)](this[_0x1e7eab(0x98)][_0x1e7eab(0xd7)][_0x1e7eab(0xdc)](async _0x3497bd=>{const _0x370539=_0x1e7eab;var _0x2e5f6b,_0x378fe8,_0x386b3b,_0x4e683c;const _0x17cf09=(_0x2e5f6b=this[_0x370539(0xde)][_0x370539(0x81)](_0x3497bd[_0x370539(0xc7)])[_0x370539(0xd6)](_0x44a6dd=>_0x44a6dd[_0x370539(0x71)]===_0x3497bd[_0x370539(0x71)]))==null?void 0x0:_0x2e5f6b[_0x370539(0xe6)];if(!_0x17cf09)return;const {unitId:_0x588bdd,subUnitId:_0x496a6d}=_0x17cf09;switch(_0x3497bd['user']&&this[_0x370539(0xf6)][_0x370539(0xa2)](_0x3497bd[_0x370539(0xc4)]),_0x3497bd[_0x370539(0xc1)]){case _0x19d9b7[_0x370539(0xa6)]:break;case _0x19d9b7['Reply']:{this['_threadCommentModel']['addComment'](_0x588bdd,_0x496a6d,{'unitId':_0x588bdd,'subUnitId':_0x496a6d,'ref':'','id':_0x3497bd[_0x370539(0xd9)],'dT':_0x466a5e(+_0x3497bd['createTimestamp']),'threadId':_0x3497bd[_0x370539(0x71)],'personId':(_0x386b3b=(_0x378fe8=_0x3497bd[_0x370539(0xc4)])==null?void 0x0:_0x378fe8[_0x370539(0xaf)])!=null?_0x386b3b:_0x3497bd[_0x370539(0x8d)],'text':JSON[_0x370539(0xd8)](_0x3497bd[_0x370539(0xf0)]),'parentId':_0x17cf09['id']});break;}case _0x19d9b7['Delete']:{const _0x173d4b=this[_0x370539(0xde)][_0x370539(0xbb)](_0x588bdd,_0x496a6d,_0x3497bd['replyId']);_0x173d4b&&_0x173d4b['parentId']&&this[_0x370539(0xde)][_0x370539(0xd5)](_0x588bdd,_0x496a6d,_0x3497bd[_0x370539(0xd9)]);break;}case _0x19d9b7['Edit']:{this[_0x370539(0xde)][_0x370539(0x82)](_0x588bdd,_0x496a6d,{'commentId':_0x3497bd['replyId'],'text':JSON[_0x370539(0xd8)](_0x3497bd[_0x370539(0xf0)])});break;}case _0x19d9b7[_0x370539(0xbc)]:{const _0xbec286=(_0x4e683c=this['_threadCommentModel']['getUnit'](_0x3497bd[_0x370539(0xc7)])['find'](_0x54b66d=>_0x54b66d[_0x370539(0x71)]===_0x3497bd[_0x370539(0x71)]))==null?void 0x0:_0x4e683c['root'];_0xbec286&&this[_0x370539(0xde)][_0x370539(0xba)](_0x588bdd,_0x496a6d,_0xbec286['id'],_0x3497bd['solved']===_0x599247[_0x370539(0xc6)]);break;}}}));}};_0x50b6c4=_0xfe6d8e([_0x56dfda(0x0,_0x3363e0[_0x4e7149(0x8b)](_0x1202b0[_0x4e7149(0xcf)])),_0x56dfda(0x1,_0x3363e0['Inject'](_0x3c9c3d[_0x4e7149(0x78)])),_0x56dfda(0x2,_0x3363e0[_0x4e7149(0x8b)](_0x3363e0[_0x4e7149(0x83)])),_0x56dfda(0x3,_0x3363e0['Inject'](_0x3363e0['Injector']))],_0x50b6c4);const _0x98f3e2=_0x4e7149(0xc3),_0x1dec57={};var _0x348dc1=Object[_0x4e7149(0x7a)],_0x45bc84=Object[_0x4e7149(0xa9)],_0x47d8b7=(_0x350bbd,_0x51caed,_0x1f5c57,_0x4b4f2e)=>{const _0x24f59d=_0x4e7149;for(var _0x3d264f=_0x4b4f2e>0x1?void 0x0:_0x4b4f2e?_0x45bc84(_0x51caed,_0x1f5c57):_0x51caed,_0x261c4b=_0x350bbd[_0x24f59d(0xe2)]-0x1,_0x3ebf43;_0x261c4b>=0x0;_0x261c4b--)(_0x3ebf43=_0x350bbd[_0x261c4b])&&(_0x3d264f=(_0x4b4f2e?_0x3ebf43(_0x51caed,_0x1f5c57,_0x3d264f):_0x3ebf43(_0x3d264f))||_0x3d264f);return _0x4b4f2e&&_0x3d264f&&_0x348dc1(_0x51caed,_0x1f5c57,_0x3d264f),_0x3d264f;},_0x944bf6=(_0x3af492,_0x4f6d26)=>(_0x309247,_0x4214b6)=>_0x4f6d26(_0x309247,_0x4214b6,_0x3af492);function _0x52021a(_0x19fdec,_0x3ad294){const _0x2fe4a9=_0x4e7149,_0x705876=_0x19fdec[_0x2fe4a9(0x93)][0x0];return{..._0x3ad294,'id':_0x705876[_0x2fe4a9(0xd9)],'resolved':_0x19fdec[_0x2fe4a9(0xa7)]===0x1,'dT':_0x466a5e(_0x705876[_0x2fe4a9(0xd4)]),'personId':_0x705876[_0x2fe4a9(0x8d)],'threadId':_0x705876[_0x2fe4a9(0x71)]};}function _0x446a4d(_0x503c5b,_0x5c8d04,_0x4ed96f){const _0x3c8307=_0x4e7149;var _0x271034,_0xe0fb38;if(((_0xe0fb38=(_0x271034=_0x503c5b==null?void 0x0:_0x503c5b[_0x3c8307(0x93)])==null?void 0x0:_0x271034['length'])!=null?_0xe0fb38:0x0)>0x0){const _0x42fd73=(_0x2a2993,_0x389507)=>({'id':_0x2a2993[_0x3c8307(0xd9)],'threadId':_0x2a2993['threadId'],'dT':_0x466a5e(_0x2a2993['createTimestamp']),'personId':_0x2a2993[_0x3c8307(0x8d)],'resolved':_0x503c5b[_0x3c8307(0xa7)]===_0x599247[_0x3c8307(0xc6)],'unitId':_0x5c8d04,'subUnitId':_0x4ed96f,'text':JSON['parse'](_0x2a2993[_0x3c8307(0xf0)]),'parentId':_0x389507}),_0x3d1b56=_0x42fd73(_0x503c5b['replies'][0x0]);return{..._0x3d1b56,'children':_0x503c5b[_0x3c8307(0x93)][_0x3c8307(0xdf)](0x1)[_0x3c8307(0xe8)](_0x2b8c7a=>_0x42fd73(_0x2b8c7a,_0x3d1b56['id']))};}return null;}let _0x3e1d45=class{constructor(_0x5775e9,_0x51e769,_0x516a74,_0x5238ee){const _0x2c046c=_0x4e7149;this['_httpService']=_0x5775e9,this[_0x2c046c(0xf6)]=_0x51e769,this[_0x2c046c(0xf7)]=_0x516a74,this[_0x2c046c(0xf2)]=_0x5238ee;}async[_0x4e7149(0x72)](_0x16c277){const _0x463303=_0x4e7149;var _0x1a5ed0,_0x21dfca;const {parentId:_0x411f2f,unitId:_0x12f337,text:_0x328e7a,threadId:_0x11eb62}=_0x16c277,_0xb98e86=(_0x21dfca=(_0x1a5ed0=_0x328e7a[_0x463303(0x8c)])==null?void 0x0:_0x1a5ed0[_0x463303(0xce)](_0x4819c4=>_0x4819c4[_0x463303(0x91)]===_0x3363e0[_0x463303(0xa1)]['COMMENT'])[_0x463303(0xe8)](_0x4631dc=>_0x4631dc['rangeId']))!=null?_0x21dfca:[],_0x34b2bd=JSON['stringify'](_0x328e7a),_0x26e4bc=(await this['_sessionService'][_0x463303(0x9c)](_0x12f337))['getMemberID']();if(_0x411f2f){const _0xc04984={'memberId':_0x26e4bc,'unitId':_0x12f337,'content':_0x34b2bd,'mention':_0xb98e86,'threadId':_0x11eb62},_0x3d04b4=(await this['_httpService'][_0x463303(0xab)](_0x463303(0x8a)+_0x12f337+'/reply',{'body':_0xc04984}))['body'][_0x463303(0xb9)];return{..._0x16c277,'id':_0x3d04b4[_0x463303(0xd9)],'dT':_0x3363e0[_0x463303(0xa4)](+_0x3d04b4[_0x463303(0xd4)])[_0x463303(0xf1)](_0x463303(0x9b)),'personId':_0x3d04b4[_0x463303(0x8d)]};}else{const _0x12dbec={'memberId':_0x26e4bc,'unitId':_0x12f337,'content':_0x34b2bd,'mention':_0xb98e86},_0x56e251=await this[_0x463303(0x90)]['post'](_0x463303(0x8a)+_0x12f337+_0x463303(0x97),{'body':_0x12dbec});return _0x52021a(_0x56e251[_0x463303(0xdb)]['comment'],_0x16c277);}}async[_0x4e7149(0x82)](_0x1ff25c){const _0x40b611=_0x4e7149;var _0x51eff6,_0x2d33ec;const {text:_0x4edba3,unitId:_0x432e56}=_0x1ff25c,_0x55bfaf=(_0x2d33ec=(_0x51eff6=_0x4edba3['customRanges'])==null?void 0x0:_0x51eff6[_0x40b611(0xce)](_0x32ea85=>_0x32ea85['rangeType']===_0x3363e0[_0x40b611(0xa1)]['COMMENT'])['map'](_0x2c11e4=>_0x2c11e4[_0x40b611(0xa3)]))!=null?_0x2d33ec:[],_0x37d7be=JSON[_0x40b611(0x74)](_0x4edba3),_0x2e9949=_0x1ff25c[_0x40b611(0x71)],_0x5f59f6=_0x1ff25c['id'],_0x467739={'memberId':(await this[_0x40b611(0xf7)][_0x40b611(0x9c)](_0x432e56))[_0x40b611(0xb8)](),'unitId':_0x432e56,'threadId':_0x2e9949,'mention':_0x55bfaf,'content':_0x37d7be,'replyId':_0x5f59f6},_0x2f7a29=await this[_0x40b611(0x90)][_0x40b611(0xab)]('/universer-api/comment/unit/'+_0x432e56+_0x40b611(0x7c),{'body':_0x467739});return!_0x2f7a29[_0x40b611(0xdb)]['error']||_0x2f7a29[_0x40b611(0xdb)][_0x40b611(0xc8)][_0x40b611(0x9e)]===0x1;}async[_0x4e7149(0xba)](_0x55d43a){const _0x3920fd=_0x4e7149,{unitId:_0xb64024}=_0x55d43a,_0x5b9eb0=_0x55d43a[_0x3920fd(0x71)],_0xd722cc={'memberId':this[_0x3920fd(0xf6)]['getCurrentUser']()[_0x3920fd(0xaf)],'unitId':_0xb64024,'threadId':_0x5b9eb0,'solved':_0x55d43a[_0x3920fd(0xb5)]?_0x599247[_0x3920fd(0xc6)]:_0x599247['OpenOrReOpen']},_0xbe909c=await this[_0x3920fd(0x90)][_0x3920fd(0xab)](_0x3920fd(0x8a)+_0xb64024+'/solved',{'body':_0xd722cc});return!_0xbe909c[_0x3920fd(0xdb)]['error']||_0xbe909c[_0x3920fd(0xdb)][_0x3920fd(0xc8)][_0x3920fd(0x9e)]===0x1;}async[_0x4e7149(0xd5)](_0x3aa07f,_0x147caa,_0x429acc,_0x8cf7ae){const _0x3e1f43=_0x4e7149,_0x93f5b0={'memberId':(await this[_0x3e1f43(0xf7)][_0x3e1f43(0x9c)](_0x3aa07f))['getMemberID'](),'threadId':_0x429acc,'replyId':_0x8cf7ae,'unitId':_0x3aa07f},_0x3f3c7b=await this['_httpService'][_0x3e1f43(0xab)]('/universer-api/comment/unit/'+_0x3aa07f+'/delete',{'body':_0x93f5b0});return!_0x3f3c7b[_0x3e1f43(0xdb)]['error']||_0x3f3c7b['body'][_0x3e1f43(0xc8)][_0x3e1f43(0x9e)]===0x1;}async[_0x4e7149(0xcb)](_0x1f9581,_0x1273ae,_0x5d92de){const _0x22a0a9=_0x4e7149,_0x2b6dac={'unitId':_0x1f9581,'threadId':_0x5d92de},_0x1f7d4e=await this[_0x22a0a9(0x90)][_0x22a0a9(0xab)](_0x22a0a9(0x8a)+_0x1f9581+_0x22a0a9(0x96),{'body':_0x2b6dac}),_0x297fa5=_0x5d92de[_0x22a0a9(0xe8)](_0x346dc1=>_0x446a4d(_0x1f7d4e[_0x22a0a9(0xdb)]['comments'][_0x346dc1],_0x1f9581,_0x1273ae))[_0x22a0a9(0xce)](Boolean);return Object[_0x22a0a9(0x89)](_0x1f7d4e['body'][_0x22a0a9(0xbd)])[_0x22a0a9(0xb3)](_0x4c5c32=>{const _0x408b95=_0x22a0a9;this[_0x408b95(0xf6)][_0x408b95(0xa2)](_0x4c5c32);}),_0x297fa5;}['saveCommentToSnapshot'](_0x58dd14){const _0x45bd3d=_0x4e7149;return{'id':_0x58dd14['id'],'threadId':_0x58dd14[_0x45bd3d(0x71)],'ref':_0x58dd14[_0x45bd3d(0x9a)]};}};_0x3e1d45=_0x47d8b7([_0x944bf6(0x0,_0x3363e0['Inject'](_0x105fba[_0x4e7149(0xbe)])),_0x944bf6(0x1,_0x3363e0[_0x4e7149(0x8b)](_0x3363e0[_0x4e7149(0x83)])),_0x944bf6(0x2,_0x3363e0['Inject'](_0x1202b0['CollaborationSessionService'])),_0x944bf6(0x3,_0x3363e0[_0x4e7149(0x8b)](_0x3363e0['Injector']))],_0x3e1d45);var _0x1c1754=Object[_0x4e7149(0x7a)],_0x264766=Object['getOwnPropertyDescriptor'],_0x318fe1=(_0x197883,_0x3ca6cd,_0x1a5dd3,_0x447690)=>{const _0x98e7ca=_0x4e7149;for(var _0x337a0d=_0x447690>0x1?void 0x0:_0x447690?_0x264766(_0x3ca6cd,_0x1a5dd3):_0x3ca6cd,_0x506523=_0x197883[_0x98e7ca(0xe2)]-0x1,_0x6a904;_0x506523>=0x0;_0x506523--)(_0x6a904=_0x197883[_0x506523])&&(_0x337a0d=(_0x447690?_0x6a904(_0x3ca6cd,_0x1a5dd3,_0x337a0d):_0x6a904(_0x337a0d))||_0x337a0d);return _0x447690&&_0x337a0d&&_0x1c1754(_0x3ca6cd,_0x1a5dd3,_0x337a0d),_0x337a0d;},_0x2657f4=(_0x34bd90,_0x7e0cfa)=>(_0x38049d,_0x2d9ec3)=>_0x7e0cfa(_0x38049d,_0x2d9ec3,_0x34bd90);let _0x428556=class extends _0x3363e0[_0x4e7149(0x87)]{constructor(_0x2f528f,_0x125a27){const _0x48ead5=_0x4e7149;super(),this[_0x48ead5(0xe9)]=_0x2f528f,this['_threadCommentDataSource']=_0x125a27,this['_initDataSource']();}[_0x4e7149(0xe3)](){const _0x401c8b=_0x4e7149;this[_0x401c8b(0xe9)][_0x401c8b(0xd0)]=this[_0x401c8b(0xaa)],this['_threadCommentDataSourceService'][_0x401c8b(0x85)]=!0x1;}};_0x428556=_0x318fe1([_0x2657f4(0x0,_0x3c9c3d['IThreadCommentDataSourceService']),_0x2657f4(0x1,_0x3363e0['Inject'](_0x3e1d45))],_0x428556);var _0x2c13b2=Object[_0x4e7149(0x7a)],_0xc30170=Object[_0x4e7149(0xa9)],_0x5af70a=(_0x44971,_0x3ccf6e,_0x4b437b)=>_0x3ccf6e in _0x44971?_0x2c13b2(_0x44971,_0x3ccf6e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b437b}):_0x44971[_0x3ccf6e]=_0x4b437b,_0x47a739=(_0x45c2af,_0x185169,_0x43b11c,_0x1dcc8b)=>{for(var _0x525c02=_0x1dcc8b>0x1?void 0x0:_0x1dcc8b?_0xc30170(_0x185169,_0x43b11c):_0x185169,_0x41a0d2=_0x45c2af['length']-0x1,_0x3bf336;_0x41a0d2>=0x0;_0x41a0d2--)(_0x3bf336=_0x45c2af[_0x41a0d2])&&(_0x525c02=(_0x1dcc8b?_0x3bf336(_0x185169,_0x43b11c,_0x525c02):_0x3bf336(_0x525c02))||_0x525c02);return _0x1dcc8b&&_0x525c02&&_0x2c13b2(_0x185169,_0x43b11c,_0x525c02),_0x525c02;},_0x43087d=(_0x54695d,_0x4146dd)=>(_0x3cd0d8,_0x178579)=>_0x4146dd(_0x3cd0d8,_0x178579,_0x54695d),_0x1c1b36=(_0x4256d0,_0x325071,_0x29fcc3)=>_0x5af70a(_0x4256d0,typeof _0x325071!=_0x4e7149(0xcd)?_0x325071+'':_0x325071,_0x29fcc3);_0x906bb0[_0x4e7149(0x7d)]=class extends _0x3363e0[_0x4e7149(0xc5)]{constructor(_0x48625d=_0x1dec57,_0x4df3af,_0x5cbb7b){const _0x18dc40=_0x4e7149;super(),this[_0x18dc40(0x7b)]=_0x48625d,this['_injector']=_0x4df3af,this[_0x18dc40(0x94)]=_0x5cbb7b;const {..._0x1f170a}=_0x3363e0[_0x18dc40(0x92)]({},_0x1dec57,this[_0x18dc40(0x7b)]);this['_configService'][_0x18dc40(0x77)](_0x98f3e2,_0x1f170a);}[_0x4e7149(0xa5)](){const _0x273ef3=_0x4e7149;[[_0x3e1d45],[_0x428556],[_0x50b6c4]][_0x273ef3(0xb3)](_0x3d5b8f=>{const _0x2ec2e9=_0x273ef3;this[_0x2ec2e9(0xf2)][_0x2ec2e9(0xe7)](_0x3d5b8f);});}[_0x4e7149(0xd3)](){const _0x4d9a10=_0x4e7149;this[_0x4d9a10(0xf2)][_0x4d9a10(0xed)](_0x428556),this[_0x4d9a10(0xf2)][_0x4d9a10(0xed)](_0x50b6c4);}},_0x1c1b36(_0x906bb0[_0x4e7149(0x7d)],'pluginName',_0x21bea2),_0x1c1b36(_0x906bb0[_0x4e7149(0x7d)],_0x4e7149(0xc1),_0x3363e0[_0x4e7149(0x8e)][_0x4e7149(0x86)]),_0x906bb0['UniverThreadCommentDataSourcePlugin']=_0x47a739([_0x3363e0[_0x4e7149(0x75)](_0x568744[_0x4e7149(0xf5)],_0x1202b0[_0x4e7149(0xea)],_0x476a94[_0x4e7149(0xae)]),_0x43087d(0x1,_0x3363e0[_0x4e7149(0x8b)](_0x3363e0[_0x4e7149(0xb7)])),_0x43087d(0x2,_0x3363e0[_0x4e7149(0xb4)])],_0x906bb0[_0x4e7149(0x7d)]),Object['defineProperty'](_0x906bb0,Symbol[_0x4e7149(0x70)],{'value':_0x4e7149(0xb1)});}));function _0x213f(_0x4fcc9e,_0x8c1a73){const _0x161754=_0x1617();return _0x213f=function(_0x213f07,_0x4d3c7d){_0x213f07=_0x213f07-0x6f;let _0x2745de=_0x161754[_0x213f07];return _0x2745de;},_0x213f(_0x4fcc9e,_0x8c1a73);}function _0x1617(){const _0x1526ed=['size','CustomRangeType','addUser','rangeId','dayjs','onStarting','Add','solved','UniverCore','getOwnPropertyDescriptor','_threadCommentDataSource','post','getUser','_init','UniverLicensePlugin','userID','function','Module','@univerjs-pro/license','forEach','IConfigService','resolved','111560VKvXDm','Injector','getMemberID','reply','resolveComment','getComment','Solve','users','HTTPService','8015724bGHTwK','2625676CAnLvM','type','pipe','thread-comment-data-source.config','user','Plugin','Solved','unitId','error','object','@univerjs/thread-comment-ui','listComments','Delete','symbol','filter','CommentService','dataSource','OpenOrReOpen','Unknown','onReady','createTimestamp','deleteComment','find','commentUpdate$','parse','replyId','9WFjsla','body','subscribe','@univerjs/thread-comment','_threadCommentModel','slice','@univerjs-pro/collaboration-client','66sAyWUM','length','_initDataSource','amd','403170PkUvOy','root','add','map','_threadCommentDataSourceService','UniverCollaborationClientPlugin','rxjs','/universer-api/user/list','get','7xUcDfH','13828640MxYoWu','content','format','_injector','personId','Reply','UniverThreadCommentUIPlugin','_userService','_sessionService','UniverNetwork','toStringTag','threadId','addComment','@univerjs/core','stringify','DependentOn','419009cZODQe','setConfig','ThreadCommentModel','UniverThreadCommentUi','defineProperty','_config','/edit','UniverThreadCommentDataSourcePlugin','UniverProLicense','_initUserSync','disposeWithMe','getUnit','updateComment','UserManagerService','8295188khyMga','syncUpdateMutationToColla','UNIVER_UNKNOWN','Disposable','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','values','/universer-api/comment/unit/','Inject','customRanges','userId','UniverInstanceType','@univerjs/network','_httpService','rangeType','merge','replies','_configService','Edit','/list','/add','_commentService','bufferTime','ref','YYYY/MM/DD\x20HH:mm','requireSession','10JsuXgM','code','UNRECOGNIZED'];_0x1617=function(){return _0x1526ed;};return _0x1617();}
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",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -45,33 +45,20 @@
45
45
  "rxjs": ">=7.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "@univerjs-pro/collaboration-client": "0.5.2",
49
- "@univerjs-pro/license": "0.5.2",
50
- "@univerjs/core": "0.5.2",
51
- "@univerjs/network": "0.5.2",
52
- "@univerjs/thread-comment": "0.5.2",
53
- "@univerjs/thread-comment-ui": "0.5.2",
54
- "@univerjs/protocol": "0.1.40-alpha.10"
48
+ "@univerjs-pro/collaboration-client": "0.5.3",
49
+ "@univerjs-pro/license": "0.5.3",
50
+ "@univerjs/protocol": "0.1.40-alpha.10",
51
+ "@univerjs/core": "0.5.3",
52
+ "@univerjs/network": "0.5.3",
53
+ "@univerjs/thread-comment-ui": "0.5.3",
54
+ "@univerjs/thread-comment": "0.5.3"
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",