@univerjs-pro/thread-comment-datasource 0.5.2 → 0.5.3-experimental.20250106-4af1f4e

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 _0x40835f=_0x5c7e;(function(_0x2ce84e,_0x2883bb){const _0x236621=_0x5c7e,_0x335986=_0x2ce84e();while(!![]){try{const _0x5eed92=-parseInt(_0x236621(0x1a4))/0x1+-parseInt(_0x236621(0x191))/0x2*(parseInt(_0x236621(0x17f))/0x3)+parseInt(_0x236621(0x1ce))/0x4+-parseInt(_0x236621(0x179))/0x5*(parseInt(_0x236621(0x1d1))/0x6)+parseInt(_0x236621(0x17a))/0x7*(parseInt(_0x236621(0x1bd))/0x8)+-parseInt(_0x236621(0x17c))/0x9+parseInt(_0x236621(0x1c5))/0xa*(parseInt(_0x236621(0x194))/0xb);if(_0x5eed92===_0x2883bb)break;else _0x335986['push'](_0x335986['shift']());}catch(_0x5a5afe){_0x335986['push'](_0x335986['shift']());}}}(_0x3556,0x9e990));function _0x3556(){const _0xe3a9d8=['UNIVER_UNKNOWN','30845410dbfZag','replyId','comment','userId','pipe','_threadCommentDataSource','length','_initUserSync','body','505352IWoTAt','Solve','@univerjs-pro/collaboration-client','474ztljtH','rangeType','personId','unitId','delete','updateComment','rxjs','/universer-api/user/list','pluginName','_injector','values','/solved','user','@univerjs/core','/delete','comments','solved','find','Injector','filter','setConfig','requireSession','disposeWithMe','code','getUser','onReady','users','type','parentId','CommentService','getOwnPropertyDescriptor','getComment','listComments','OpenOrReOpen','reply','payload','dayjs','_config','stringify','Reply','Module','46455JRGDoY','14PGqrcT','rangeId','7385706OXOvub','HTTPService','addComment','2876043NDziYk','format','IConfigService','UniverInstanceType','@univerjs/thread-comment','_httpService','resolveComment','replies','Plugin','UNRECOGNIZED','UniverThreadCommentDataSourcePlugin','symbol','@univerjs/network','getMemberID','Add','@univerjs-pro/license','deleteComment','Solved','2UGXTdC','error','toStringTag','11UGqodN','/edit','onStarting','subscribe','_init','COMMENT','Delete','CustomRangeType','/universer-api/comment/unit/','_threadCommentModel','_userService','Unknown','post','UniverCollaborationClientPlugin','customRanges','commentUpdate$','707633LpdUwg','add','addUser','defineProperty','size','slice','getUnit','getCurrentUser','get','content','_sessionService','UserManagerService','Edit','YYYY/MM/DD\x20HH:mm','Inject','createTimestamp','/reply','UniverLicensePlugin','Disposable','parse','bufferTime','forEach','_commentService','_threadCommentDataSourceService','dataSource','2638696IKsOwB','map','ref','UniverThreadCommentUIPlugin','/add','threadId','_initDataSource'];_0x3556=function(){return _0xe3a9d8;};return _0x3556();}Object[_0x40835f(0x1a7)](exports,Symbol[_0x40835f(0x193)],{'value':_0x40835f(0x178)});const C=require(_0x40835f(0x1d0)),T=require(_0x40835f(0x18e)),c=require(_0x40835f(0x1de)),w=require('@univerjs/thread-comment-ui'),P=require(_0x40835f(0x183)),U=require(_0x40835f(0x1d7)),M=require(_0x40835f(0x18b)),R='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var I=(_0x5b734d=>(_0x5b734d[_0x5b734d[_0x40835f(0x171)]=0x0]='OpenOrReOpen',_0x5b734d[_0x5b734d[_0x40835f(0x190)]=0x1]='Solved',_0x5b734d[_0x5b734d[_0x40835f(0x188)]=-0x1]=_0x40835f(0x188),_0x5b734d))(I||{}),v=(_0x260ba3=>(_0x260ba3[_0x260ba3[_0x40835f(0x19f)]=0x0]=_0x40835f(0x19f),_0x260ba3[_0x260ba3['Add']=0x1]=_0x40835f(0x18d),_0x260ba3[_0x260ba3[_0x40835f(0x177)]=0x2]='Reply',_0x260ba3[_0x260ba3[_0x40835f(0x1b0)]=0x3]=_0x40835f(0x1b0),_0x260ba3[_0x260ba3['Delete']=0x4]=_0x40835f(0x19a),_0x260ba3[_0x260ba3[_0x40835f(0x1cf)]=0x5]=_0x40835f(0x1cf),_0x260ba3[_0x260ba3[_0x40835f(0x188)]=-0x1]='UNRECOGNIZED',_0x260ba3))(v||{});const g=_0x7a020c=>c[_0x40835f(0x174)](new Date(+_0x7a020c))[_0x40835f(0x180)](_0x40835f(0x1b1)),$=async(_0xeb876b,_0x208655)=>{const _0x5dcc62=_0x40835f,_0x2b2b6a=_0xeb876b[_0x5dcc62(0x1ac)](c[_0x5dcc62(0x1af)]),_0x13bdfa=_0xeb876b[_0x5dcc62(0x1ac)](M[_0x5dcc62(0x17d)]);_0x208655['forEach'](_0x206ee8=>{const _0x595057=_0x5dcc62;_0x2b2b6a[_0x595057(0x1e9)](_0x206ee8)&&_0x208655[_0x595057(0x1d5)](_0x206ee8);}),_0x208655[_0x5dcc62(0x1a8)]&&(await _0x13bdfa[_0x5dcc62(0x1ac)](_0x5dcc62(0x1d8),{'params':{'userIDs':[..._0x208655]}}))[_0x5dcc62(0x1cd)][_0x5dcc62(0x1eb)][_0x5dcc62(0x1b9)](_0xe2b0eb=>{const _0x5afb6e=_0x5dcc62;_0xe2b0eb&&_0x2b2b6a[_0x5afb6e(0x1a6)](_0xe2b0eb);});};var E=Object[_0x40835f(0x1a7)],q=Object[_0x40835f(0x1ef)],A=(_0x2a640f,_0x185121,_0x5a7915,_0x4fec07)=>{const _0x534a99=_0x40835f;for(var _0xbce4cf=_0x4fec07>0x1?void 0x0:_0x4fec07?q(_0x185121,_0x5a7915):_0x185121,_0x12268b=_0x2a640f[_0x534a99(0x1cb)]-0x1,_0x251b0a;_0x12268b>=0x0;_0x12268b--)(_0x251b0a=_0x2a640f[_0x12268b])&&(_0xbce4cf=(_0x4fec07?_0x251b0a(_0x185121,_0x5a7915,_0xbce4cf):_0x251b0a(_0xbce4cf))||_0xbce4cf);return _0x4fec07&&_0xbce4cf&&E(_0x185121,_0x5a7915,_0xbce4cf),_0xbce4cf;},_=(_0x184bff,_0x3ff0cf)=>(_0x1e1dde,_0x12b9a8)=>_0x3ff0cf(_0x1e1dde,_0x12b9a8,_0x184bff);let S=class extends c[_0x40835f(0x1b6)]{constructor(_0x518616,_0x1ec1fd,_0x3c5bfe,_0x1dd7db){const _0x54a966=_0x40835f;super(),this['_commentService']=_0x518616,this[_0x54a966(0x19d)]=_0x1ec1fd,this['_userService']=_0x3c5bfe,this[_0x54a966(0x1da)]=_0x1dd7db,this[_0x54a966(0x198)](),this[_0x54a966(0x1cc)]();}['_initUserSync'](){const _0x5ea301=_0x40835f;this[_0x5ea301(0x1e7)](this[_0x5ea301(0x19d)][_0x5ea301(0x1a3)][_0x5ea301(0x1c9)](U[_0x5ea301(0x1b8)](0x10))['subscribe'](_0x47ec88=>{const _0x5034c7=_0x5ea301,_0x44ccc7=new Set();_0x47ec88['forEach'](_0x64381e=>{const _0x274f82=_0x5c7e;switch(_0x64381e[_0x274f82(0x1ec)]){case _0x274f82(0x1a5):{const _0x5c6425=_0x64381e[_0x274f82(0x173)][_0x274f82(0x1d3)];_0x44ccc7[_0x274f82(0x1a5)](_0x5c6425);break;}}}),$(this[_0x5034c7(0x1da)],_0x44ccc7);}));}[_0x40835f(0x198)](){const _0x48a30e=_0x40835f;this[_0x48a30e(0x1e7)](this[_0x48a30e(0x1ba)][_0x48a30e(0x1a3)][_0x48a30e(0x197)](async _0x423698=>{const _0x4cd2e1=_0x48a30e;var _0xae8abe,_0x4e70b5,_0x439660,_0x5eedc5;const _0x1cd68e=(_0xae8abe=this[_0x4cd2e1(0x19d)][_0x4cd2e1(0x1aa)](_0x423698[_0x4cd2e1(0x1d4)])[_0x4cd2e1(0x1e2)](_0x48b2f5=>_0x48b2f5[_0x4cd2e1(0x1c2)]===_0x423698[_0x4cd2e1(0x1c2)]))==null?void 0x0:_0xae8abe['root'];if(!_0x1cd68e)return;const {unitId:_0x59ce4e,subUnitId:_0x1b2c92}=_0x1cd68e;switch(_0x423698['user']&&this[_0x4cd2e1(0x19e)][_0x4cd2e1(0x1a6)](_0x423698['user']),_0x423698[_0x4cd2e1(0x1ec)]){case v[_0x4cd2e1(0x18d)]:break;case v[_0x4cd2e1(0x177)]:{this[_0x4cd2e1(0x19d)]['addComment'](_0x59ce4e,_0x1b2c92,{'unitId':_0x59ce4e,'subUnitId':_0x1b2c92,'ref':'','id':_0x423698['replyId'],'dT':g(+_0x423698[_0x4cd2e1(0x1b3)]),'threadId':_0x423698[_0x4cd2e1(0x1c2)],'personId':(_0x439660=(_0x4e70b5=_0x423698[_0x4cd2e1(0x1dd)])==null?void 0x0:_0x4e70b5['userID'])!=null?_0x439660:_0x423698[_0x4cd2e1(0x1c8)],'text':JSON[_0x4cd2e1(0x1b7)](_0x423698[_0x4cd2e1(0x1ad)]),'parentId':_0x1cd68e['id']});break;}case v[_0x4cd2e1(0x19a)]:{const _0x24982a=this[_0x4cd2e1(0x19d)][_0x4cd2e1(0x1f0)](_0x59ce4e,_0x1b2c92,_0x423698['replyId']);_0x24982a&&_0x24982a[_0x4cd2e1(0x1ed)]&&this[_0x4cd2e1(0x19d)][_0x4cd2e1(0x18f)](_0x59ce4e,_0x1b2c92,_0x423698['replyId']);break;}case v[_0x4cd2e1(0x1b0)]:{this[_0x4cd2e1(0x19d)]['updateComment'](_0x59ce4e,_0x1b2c92,{'commentId':_0x423698['replyId'],'text':JSON['parse'](_0x423698[_0x4cd2e1(0x1ad)])});break;}case v[_0x4cd2e1(0x1cf)]:{const _0x159963=(_0x5eedc5=this['_threadCommentModel'][_0x4cd2e1(0x1aa)](_0x423698[_0x4cd2e1(0x1d4)])['find'](_0x27903b=>_0x27903b['threadId']===_0x423698[_0x4cd2e1(0x1c2)]))==null?void 0x0:_0x5eedc5['root'];_0x159963&&this['_threadCommentModel'][_0x4cd2e1(0x185)](_0x59ce4e,_0x1b2c92,_0x159963['id'],_0x423698[_0x4cd2e1(0x1e1)]===I[_0x4cd2e1(0x190)]);break;}}}));}};S=A([_(0x0,c[_0x40835f(0x1b2)](C[_0x40835f(0x1ee)])),_(0x1,c[_0x40835f(0x1b2)](P['ThreadCommentModel'])),_(0x2,c[_0x40835f(0x1b2)](c[_0x40835f(0x1af)])),_(0x3,c[_0x40835f(0x1b2)](c[_0x40835f(0x1e3)]))],S);const x='thread-comment-data-source.config',D={};var Y=Object[_0x40835f(0x1a7)],G=Object[_0x40835f(0x1ef)],H=(_0x6aa2e0,_0x997f1f,_0x411683,_0x15277c)=>{const _0x5c28b6=_0x40835f;for(var _0x5b339b=_0x15277c>0x1?void 0x0:_0x15277c?G(_0x997f1f,_0x411683):_0x997f1f,_0x2a1b4d=_0x6aa2e0[_0x5c28b6(0x1cb)]-0x1,_0x2b1833;_0x2a1b4d>=0x0;_0x2a1b4d--)(_0x2b1833=_0x6aa2e0[_0x2a1b4d])&&(_0x5b339b=(_0x15277c?_0x2b1833(_0x997f1f,_0x411683,_0x5b339b):_0x2b1833(_0x5b339b))||_0x5b339b);return _0x15277c&&_0x5b339b&&Y(_0x997f1f,_0x411683,_0x5b339b),_0x5b339b;},p=(_0x1b37f4,_0x3d1c53)=>(_0x13521d,_0x57fc52)=>_0x3d1c53(_0x13521d,_0x57fc52,_0x1b37f4);function J(_0x1dba25,_0x3e6b02){const _0x59820e=_0x40835f,_0x1ed942=_0x1dba25['replies'][0x0];return{..._0x3e6b02,'id':_0x1ed942[_0x59820e(0x1c6)],'resolved':_0x1dba25[_0x59820e(0x1e1)]===0x1,'dT':g(_0x1ed942[_0x59820e(0x1b3)]),'personId':_0x1ed942[_0x59820e(0x1c8)],'threadId':_0x1ed942[_0x59820e(0x1c2)]};}function F(_0x28b058,_0x1af6e5,_0x572a8d){const _0x1a5221=_0x40835f;var _0x4aa683,_0x4a3ab5;if(((_0x4a3ab5=(_0x4aa683=_0x28b058==null?void 0x0:_0x28b058[_0x1a5221(0x186)])==null?void 0x0:_0x4aa683['length'])!=null?_0x4a3ab5:0x0)>0x0){const _0x289ef2=(_0x281fa6,_0x17acba)=>({'id':_0x281fa6[_0x1a5221(0x1c6)],'threadId':_0x281fa6[_0x1a5221(0x1c2)],'dT':g(_0x281fa6[_0x1a5221(0x1b3)]),'personId':_0x281fa6[_0x1a5221(0x1c8)],'resolved':_0x28b058[_0x1a5221(0x1e1)]===I[_0x1a5221(0x190)],'unitId':_0x1af6e5,'subUnitId':_0x572a8d,'text':JSON['parse'](_0x281fa6[_0x1a5221(0x1ad)]),'parentId':_0x17acba}),_0x706814=_0x289ef2(_0x28b058[_0x1a5221(0x186)][0x0]);return{..._0x706814,'children':_0x28b058[_0x1a5221(0x186)][_0x1a5221(0x1a9)](0x1)[_0x1a5221(0x1be)](_0x4df532=>_0x289ef2(_0x4df532,_0x706814['id']))};}return null;}let f=class{constructor(_0x40c846,_0x4d5994,_0xf5c40d,_0x2a2100){const _0x4cbdfd=_0x40835f;this['_httpService']=_0x40c846,this[_0x4cbdfd(0x19e)]=_0x4d5994,this[_0x4cbdfd(0x1ae)]=_0xf5c40d,this[_0x4cbdfd(0x1da)]=_0x2a2100;}async[_0x40835f(0x17e)](_0x4973f5){const _0x81493f=_0x40835f;var _0x12d698,_0x24127e;const {parentId:_0x466b72,unitId:_0x399684,text:_0x226a82,threadId:_0x475eab}=_0x4973f5,_0x4f3fed=(_0x24127e=(_0x12d698=_0x226a82[_0x81493f(0x1a2)])==null?void 0x0:_0x12d698['filter'](_0x1a1987=>_0x1a1987[_0x81493f(0x1d2)]===c[_0x81493f(0x19b)][_0x81493f(0x199)])['map'](_0xff1e52=>_0xff1e52['rangeId']))!=null?_0x24127e:[],_0x54205d=JSON['stringify'](_0x226a82),_0x23fe6c=(await this[_0x81493f(0x1ae)]['requireSession'](_0x399684))[_0x81493f(0x18c)]();if(_0x466b72){const _0x29c4e6={'memberId':_0x23fe6c,'unitId':_0x399684,'content':_0x54205d,'mention':_0x4f3fed,'threadId':_0x475eab},_0x4d5ac5=(await this[_0x81493f(0x184)][_0x81493f(0x1a0)]('/universer-api/comment/unit/'+_0x399684+_0x81493f(0x1b4),{'body':_0x29c4e6}))[_0x81493f(0x1cd)][_0x81493f(0x172)];return{..._0x4973f5,'id':_0x4d5ac5[_0x81493f(0x1c6)],'dT':c[_0x81493f(0x174)](+_0x4d5ac5[_0x81493f(0x1b3)])[_0x81493f(0x180)](_0x81493f(0x1b1)),'personId':_0x4d5ac5[_0x81493f(0x1c8)]};}else{const _0x22c56b={'memberId':_0x23fe6c,'unitId':_0x399684,'content':_0x54205d,'mention':_0x4f3fed},_0x10459c=await this[_0x81493f(0x184)][_0x81493f(0x1a0)](_0x81493f(0x19c)+_0x399684+_0x81493f(0x1c1),{'body':_0x22c56b});return J(_0x10459c['body'][_0x81493f(0x1c7)],_0x4973f5);}}async[_0x40835f(0x1d6)](_0x4a8ffe){const _0x1248c4=_0x40835f;var _0x30347c,_0x3369a6;const {text:_0x4689ef,unitId:_0x3846a8}=_0x4a8ffe,_0x312f26=(_0x3369a6=(_0x30347c=_0x4689ef[_0x1248c4(0x1a2)])==null?void 0x0:_0x30347c[_0x1248c4(0x1e4)](_0x11fe22=>_0x11fe22[_0x1248c4(0x1d2)]===c[_0x1248c4(0x19b)][_0x1248c4(0x199)])[_0x1248c4(0x1be)](_0x3b9ae8=>_0x3b9ae8[_0x1248c4(0x17b)]))!=null?_0x3369a6:[],_0x45389c=JSON[_0x1248c4(0x176)](_0x4689ef),_0x3ee69e=_0x4a8ffe[_0x1248c4(0x1c2)],_0x25f4f6=_0x4a8ffe['id'],_0x539d47={'memberId':(await this['_sessionService'][_0x1248c4(0x1e6)](_0x3846a8))['getMemberID'](),'unitId':_0x3846a8,'threadId':_0x3ee69e,'mention':_0x312f26,'content':_0x45389c,'replyId':_0x25f4f6},_0x20d0f5=await this[_0x1248c4(0x184)][_0x1248c4(0x1a0)](_0x1248c4(0x19c)+_0x3846a8+_0x1248c4(0x195),{'body':_0x539d47});return!_0x20d0f5[_0x1248c4(0x1cd)][_0x1248c4(0x192)]||_0x20d0f5[_0x1248c4(0x1cd)][_0x1248c4(0x192)][_0x1248c4(0x1e8)]===0x1;}async[_0x40835f(0x185)](_0x45a168){const _0x45389a=_0x40835f,{unitId:_0x14d08a}=_0x45a168,_0x25dc1d=_0x45a168['threadId'],_0x414efd={'memberId':this[_0x45389a(0x19e)][_0x45389a(0x1ab)]()['userID'],'unitId':_0x14d08a,'threadId':_0x25dc1d,'solved':_0x45a168['resolved']?I['Solved']:I[_0x45389a(0x171)]},_0x4c7c6e=await this[_0x45389a(0x184)][_0x45389a(0x1a0)]('/universer-api/comment/unit/'+_0x14d08a+_0x45389a(0x1dc),{'body':_0x414efd});return!_0x4c7c6e[_0x45389a(0x1cd)][_0x45389a(0x192)]||_0x4c7c6e[_0x45389a(0x1cd)][_0x45389a(0x192)][_0x45389a(0x1e8)]===0x1;}async[_0x40835f(0x18f)](_0xc15b8f,_0x1a98c0,_0x3faf27,_0x28b7ae){const _0x2d7440=_0x40835f,_0x247f5a={'memberId':(await this['_sessionService']['requireSession'](_0xc15b8f))[_0x2d7440(0x18c)](),'threadId':_0x3faf27,'replyId':_0x28b7ae,'unitId':_0xc15b8f},_0x570bd3=await this['_httpService'][_0x2d7440(0x1a0)](_0x2d7440(0x19c)+_0xc15b8f+_0x2d7440(0x1df),{'body':_0x247f5a});return!_0x570bd3[_0x2d7440(0x1cd)]['error']||_0x570bd3[_0x2d7440(0x1cd)][_0x2d7440(0x192)]['code']===0x1;}async[_0x40835f(0x170)](_0x182c95,_0x5cf1e9,_0x2190e3){const _0x1af7e5=_0x40835f,_0x18f993={'unitId':_0x182c95,'threadId':_0x2190e3},_0x261099=await this[_0x1af7e5(0x184)][_0x1af7e5(0x1a0)](_0x1af7e5(0x19c)+_0x182c95+'/list',{'body':_0x18f993}),_0x17efc8=_0x2190e3[_0x1af7e5(0x1be)](_0x4d8c3f=>F(_0x261099[_0x1af7e5(0x1cd)][_0x1af7e5(0x1e0)][_0x4d8c3f],_0x182c95,_0x5cf1e9))[_0x1af7e5(0x1e4)](Boolean);return Object[_0x1af7e5(0x1db)](_0x261099[_0x1af7e5(0x1cd)]['users'])[_0x1af7e5(0x1b9)](_0x8f756e=>{const _0x5e3320=_0x1af7e5;this[_0x5e3320(0x19e)][_0x5e3320(0x1a6)](_0x8f756e);}),_0x17efc8;}['saveCommentToSnapshot'](_0x5bb21c){const _0x44ce1f=_0x40835f;return{'id':_0x5bb21c['id'],'threadId':_0x5bb21c[_0x44ce1f(0x1c2)],'ref':_0x5bb21c[_0x44ce1f(0x1bf)]};}};function _0x5c7e(_0x1164ba,_0x5d3b38){const _0x35561a=_0x3556();return _0x5c7e=function(_0x5c7ef,_0x4a1489){_0x5c7ef=_0x5c7ef-0x170;let _0x4522ee=_0x35561a[_0x5c7ef];return _0x4522ee;},_0x5c7e(_0x1164ba,_0x5d3b38);}f=H([p(0x0,c[_0x40835f(0x1b2)](M['HTTPService'])),p(0x1,c[_0x40835f(0x1b2)](c[_0x40835f(0x1af)])),p(0x2,c[_0x40835f(0x1b2)](C['CollaborationSessionService'])),p(0x3,c[_0x40835f(0x1b2)](c['Injector']))],f);var L=Object[_0x40835f(0x1a7)],Z=Object[_0x40835f(0x1ef)],W=(_0x4174d4,_0x3e2676,_0x29627d,_0x3ec078)=>{for(var _0x189183=_0x3ec078>0x1?void 0x0:_0x3ec078?Z(_0x3e2676,_0x29627d):_0x3e2676,_0x5eef2c=_0x4174d4['length']-0x1,_0x17cb17;_0x5eef2c>=0x0;_0x5eef2c--)(_0x17cb17=_0x4174d4[_0x5eef2c])&&(_0x189183=(_0x3ec078?_0x17cb17(_0x3e2676,_0x29627d,_0x189183):_0x17cb17(_0x189183))||_0x189183);return _0x3ec078&&_0x189183&&L(_0x3e2676,_0x29627d,_0x189183),_0x189183;},O=(_0x25a18f,_0x46eafd)=>(_0x6c266c,_0x56d483)=>_0x46eafd(_0x6c266c,_0x56d483,_0x25a18f);let b=class extends c[_0x40835f(0x1b6)]{constructor(_0xae4575,_0x51cbd3){const _0x551ed3=_0x40835f;super(),this[_0x551ed3(0x1bb)]=_0xae4575,this[_0x551ed3(0x1ca)]=_0x51cbd3,this[_0x551ed3(0x1c3)]();}['_initDataSource'](){const _0x35a42c=_0x40835f;this[_0x35a42c(0x1bb)][_0x35a42c(0x1bc)]=this[_0x35a42c(0x1ca)],this[_0x35a42c(0x1bb)]['syncUpdateMutationToColla']=!0x1;}};b=W([O(0x0,P['IThreadCommentDataSourceService']),O(0x1,c[_0x40835f(0x1b2)](f))],b);var j=Object['defineProperty'],B=Object[_0x40835f(0x1ef)],K=(_0xf35658,_0x20c164,_0x264eae)=>_0x20c164 in _0xf35658?j(_0xf35658,_0x20c164,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x264eae}):_0xf35658[_0x20c164]=_0x264eae,V=(_0x4646c6,_0x459564,_0xb3758b,_0x25414f)=>{const _0x4ce310=_0x40835f;for(var _0x1b49ab=_0x25414f>0x1?void 0x0:_0x25414f?B(_0x459564,_0xb3758b):_0x459564,_0x33472f=_0x4646c6[_0x4ce310(0x1cb)]-0x1,_0x336dc8;_0x33472f>=0x0;_0x33472f--)(_0x336dc8=_0x4646c6[_0x33472f])&&(_0x1b49ab=(_0x25414f?_0x336dc8(_0x459564,_0xb3758b,_0x1b49ab):_0x336dc8(_0x1b49ab))||_0x1b49ab);return _0x25414f&&_0x1b49ab&&j(_0x459564,_0xb3758b,_0x1b49ab),_0x1b49ab;},y=(_0x1603ea,_0x242718)=>(_0x120603,_0x1153d9)=>_0x242718(_0x120603,_0x1153d9,_0x1603ea),N=(_0x4fc542,_0x155b2f,_0x4c16de)=>K(_0x4fc542,typeof _0x155b2f!=_0x40835f(0x18a)?_0x155b2f+'':_0x155b2f,_0x4c16de);exports[_0x40835f(0x189)]=class extends c[_0x40835f(0x187)]{constructor(_0x365508=D,_0x33a7e7,_0x1740b5){const _0x2c54cb=_0x40835f;super(),this[_0x2c54cb(0x175)]=_0x365508,this[_0x2c54cb(0x1da)]=_0x33a7e7,this['_configService']=_0x1740b5;const {..._0x5d02e9}=c['merge']({},D,this[_0x2c54cb(0x175)]);this['_configService'][_0x2c54cb(0x1e5)](x,_0x5d02e9);}[_0x40835f(0x196)](){const _0x3d18f0=_0x40835f;[[f],[b],[S]][_0x3d18f0(0x1b9)](_0x20b52b=>{const _0x3d4da2=_0x3d18f0;this[_0x3d4da2(0x1da)][_0x3d4da2(0x1a5)](_0x20b52b);});}[_0x40835f(0x1ea)](){const _0x296846=_0x40835f;this['_injector'][_0x296846(0x1ac)](b),this[_0x296846(0x1da)][_0x296846(0x1ac)](S);}},N(exports[_0x40835f(0x189)],_0x40835f(0x1d9),R),N(exports['UniverThreadCommentDataSourcePlugin'],_0x40835f(0x1ec),c[_0x40835f(0x182)][_0x40835f(0x1c4)]),exports[_0x40835f(0x189)]=V([c['DependentOn'](w[_0x40835f(0x1c0)],C[_0x40835f(0x1a1)],T[_0x40835f(0x1b5)]),y(0x1,c[_0x40835f(0x1b2)](c[_0x40835f(0x1e3)])),y(0x2,c[_0x40835f(0x181)])],exports['UniverThreadCommentDataSourcePlugin']);
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 _0x28ccda=_0x68f5;(function(_0x3baf1d,_0x32ad2e){const _0x345608=_0x68f5,_0x552711=_0x3baf1d();while(!![]){try{const _0x3a6e48=-parseInt(_0x345608(0x169))/0x1*(-parseInt(_0x345608(0x14c))/0x2)+parseInt(_0x345608(0x18d))/0x3+parseInt(_0x345608(0x189))/0x4*(parseInt(_0x345608(0x19a))/0x5)+-parseInt(_0x345608(0x157))/0x6+parseInt(_0x345608(0x163))/0x7*(-parseInt(_0x345608(0x182))/0x8)+parseInt(_0x345608(0x174))/0x9+-parseInt(_0x345608(0x183))/0xa;if(_0x3a6e48===_0x32ad2e)break;else _0x552711['push'](_0x552711['shift']());}catch(_0x58b628){_0x552711['push'](_0x552711['shift']());}}}(_0x5f1d,0x25f4c));import{CommentService as _0x12249c,CollaborationSessionService as _0x5b73bc,UniverCollaborationClientPlugin as _0x39fca1}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x508010}from'@univerjs-pro/license';import{dayjs as _0x397212,UserManagerService as _0x12a5e3,Inject as _0x3a0570,Injector as _0xe262b1,Disposable as _0x143e3d,CustomRangeType as _0x3ba666,UniverInstanceType as _0x847d30,DependentOn as _0x594ede,Plugin as _0x2c670a,merge as _0x1ae5f5,IConfigService as _0x59e28e}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x1d8280}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x4808d8,IThreadCommentDataSourceService as _0x1b74e6}from'@univerjs/thread-comment';import{bufferTime as _0x3a8559}from'rxjs';import{HTTPService as _0x4ec0a8}from'@univerjs/network';const B=_0x28ccda(0x168);var v=(_0x17042e=>(_0x17042e[_0x17042e[_0x28ccda(0x15b)]=0x0]=_0x28ccda(0x15b),_0x17042e[_0x17042e[_0x28ccda(0x167)]=0x1]=_0x28ccda(0x167),_0x17042e[_0x17042e[_0x28ccda(0x19d)]=-0x1]=_0x28ccda(0x19d),_0x17042e))(v||{}),p=(_0x43ea2b=>(_0x43ea2b[_0x43ea2b[_0x28ccda(0x14e)]=0x0]=_0x28ccda(0x14e),_0x43ea2b[_0x43ea2b[_0x28ccda(0x152)]=0x1]='Add',_0x43ea2b[_0x43ea2b['Reply']=0x2]=_0x28ccda(0x186),_0x43ea2b[_0x43ea2b[_0x28ccda(0x18f)]=0x3]=_0x28ccda(0x18f),_0x43ea2b[_0x43ea2b[_0x28ccda(0x1ab)]=0x4]='Delete',_0x43ea2b[_0x43ea2b['Solve']=0x5]=_0x28ccda(0x15a),_0x43ea2b[_0x43ea2b[_0x28ccda(0x19d)]=-0x1]=_0x28ccda(0x19d),_0x43ea2b))(p||{});function _0x68f5(_0x4d633b,_0x7b5f){const _0x5f1dfd=_0x5f1d();return _0x68f5=function(_0x68f54e,_0x4eb9f0){_0x68f54e=_0x68f54e-0x14a;let _0x4c47bb=_0x5f1dfd[_0x68f54e];return _0x4c47bb;},_0x68f5(_0x4d633b,_0x7b5f);}const O=_0x12a445=>_0x397212(new Date(+_0x12a445))[_0x28ccda(0x1a5)]('YYYY/MM/DD\x20HH:mm'),K=async(_0x49da19,_0x38c33b)=>{const _0x2b6397=_0x28ccda,_0x1aac10=_0x49da19['get'](_0x12a5e3),_0x4c5463=_0x49da19[_0x2b6397(0x188)](_0x4ec0a8);_0x38c33b[_0x2b6397(0x176)](_0x2a101d=>{const _0xf77f40=_0x2b6397;_0x1aac10[_0xf77f40(0x1a1)](_0x2a101d)&&_0x38c33b['delete'](_0x2a101d);}),_0x38c33b[_0x2b6397(0x17b)]&&(await _0x4c5463[_0x2b6397(0x188)]('/universer-api/user/list',{'params':{'userIDs':[..._0x38c33b]}}))['body'][_0x2b6397(0x18a)]['forEach'](_0x320376=>{const _0x3c8207=_0x2b6397;_0x320376&&_0x1aac10[_0x3c8207(0x178)](_0x320376);});};var V=Object['defineProperty'],z=Object['getOwnPropertyDescriptor'],Q=(_0x11230a,_0x1e8bb6,_0x24733a,_0x13667d)=>{const _0x19a184=_0x28ccda;for(var _0x3b641d=_0x13667d>0x1?void 0x0:_0x13667d?z(_0x1e8bb6,_0x24733a):_0x1e8bb6,_0x23d86e=_0x11230a[_0x19a184(0x195)]-0x1,_0x587c87;_0x23d86e>=0x0;_0x23d86e--)(_0x587c87=_0x11230a[_0x23d86e])&&(_0x3b641d=(_0x13667d?_0x587c87(_0x1e8bb6,_0x24733a,_0x3b641d):_0x587c87(_0x3b641d))||_0x3b641d);return _0x13667d&&_0x3b641d&&V(_0x1e8bb6,_0x24733a,_0x3b641d),_0x3b641d;},_=(_0x3dd55e,_0x18efc0)=>(_0x6cb4e4,_0x4b9866)=>_0x18efc0(_0x6cb4e4,_0x4b9866,_0x3dd55e);let f=class extends _0x143e3d{constructor(_0x498459,_0x5abb79,_0x245bf3,_0x4ee7dc){const _0x90e601=_0x28ccda;super(),this[_0x90e601(0x19e)]=_0x498459,this[_0x90e601(0x16e)]=_0x5abb79,this[_0x90e601(0x154)]=_0x245bf3,this[_0x90e601(0x14d)]=_0x4ee7dc,this[_0x90e601(0x16f)](),this[_0x90e601(0x14f)]();}[_0x28ccda(0x14f)](){const _0x573b7a=_0x28ccda;this[_0x573b7a(0x159)](this[_0x573b7a(0x16e)][_0x573b7a(0x161)][_0x573b7a(0x1a2)](_0x3a8559(0x10))[_0x573b7a(0x192)](_0x55bb1f=>{const _0xacfcce=_0x573b7a,_0x410be6=new Set();_0x55bb1f[_0xacfcce(0x176)](_0x2302ec=>{const _0x34bd09=_0xacfcce;switch(_0x2302ec[_0x34bd09(0x16a)]){case _0x34bd09(0x17c):{const _0x57533e=_0x2302ec[_0x34bd09(0x180)][_0x34bd09(0x162)];_0x410be6[_0x34bd09(0x17c)](_0x57533e);break;}}}),K(this[_0xacfcce(0x14d)],_0x410be6);}));}[_0x28ccda(0x16f)](){const _0x18f716=_0x28ccda;this[_0x18f716(0x159)](this[_0x18f716(0x19e)]['commentUpdate$'][_0x18f716(0x192)](async _0x5870ce=>{const _0x47ee85=_0x18f716;var _0x4b10df,_0x3396aa,_0x2b953d,_0x30ab61;const _0x26d0b1=(_0x4b10df=this[_0x47ee85(0x16e)][_0x47ee85(0x171)](_0x5870ce[_0x47ee85(0x15f)])['find'](_0x443096=>_0x443096[_0x47ee85(0x1a0)]===_0x5870ce['threadId']))==null?void 0x0:_0x4b10df[_0x47ee85(0x16b)];if(!_0x26d0b1)return;const {unitId:_0x4ad7b2,subUnitId:_0x5b6cbb}=_0x26d0b1;switch(_0x5870ce['user']&&this[_0x47ee85(0x154)][_0x47ee85(0x178)](_0x5870ce[_0x47ee85(0x194)]),_0x5870ce[_0x47ee85(0x16a)]){case p['Add']:break;case p['Reply']:{this[_0x47ee85(0x16e)]['addComment'](_0x4ad7b2,_0x5b6cbb,{'unitId':_0x4ad7b2,'subUnitId':_0x5b6cbb,'ref':'','id':_0x5870ce[_0x47ee85(0x17d)],'dT':O(+_0x5870ce[_0x47ee85(0x15d)]),'threadId':_0x5870ce[_0x47ee85(0x1a0)],'personId':(_0x2b953d=(_0x3396aa=_0x5870ce['user'])==null?void 0x0:_0x3396aa[_0x47ee85(0x1ad)])!=null?_0x2b953d:_0x5870ce[_0x47ee85(0x15c)],'text':JSON[_0x47ee85(0x15e)](_0x5870ce[_0x47ee85(0x165)]),'parentId':_0x26d0b1['id']});break;}case p[_0x47ee85(0x1ab)]:{const _0x39d6f7=this[_0x47ee85(0x16e)][_0x47ee85(0x199)](_0x4ad7b2,_0x5b6cbb,_0x5870ce[_0x47ee85(0x17d)]);_0x39d6f7&&_0x39d6f7[_0x47ee85(0x172)]&&this[_0x47ee85(0x16e)][_0x47ee85(0x160)](_0x4ad7b2,_0x5b6cbb,_0x5870ce[_0x47ee85(0x17d)]);break;}case p['Edit']:{this['_threadCommentModel'][_0x47ee85(0x155)](_0x4ad7b2,_0x5b6cbb,{'commentId':_0x5870ce['replyId'],'text':JSON[_0x47ee85(0x15e)](_0x5870ce[_0x47ee85(0x165)])});break;}case p['Solve']:{const _0x23c139=(_0x30ab61=this['_threadCommentModel']['getUnit'](_0x5870ce['unitId'])[_0x47ee85(0x17f)](_0x268454=>_0x268454['threadId']===_0x5870ce[_0x47ee85(0x1a0)]))==null?void 0x0:_0x30ab61[_0x47ee85(0x16b)];_0x23c139&&this[_0x47ee85(0x16e)]['resolveComment'](_0x4ad7b2,_0x5b6cbb,_0x23c139['id'],_0x5870ce[_0x47ee85(0x196)]===v[_0x47ee85(0x167)]);break;}}}));}};f=Q([_(0x0,_0x3a0570(_0x12249c)),_(0x1,_0x3a0570(_0x4808d8)),_(0x2,_0x3a0570(_0x12a5e3)),_(0x3,_0x3a0570(_0xe262b1))],f);function _0x5f1d(){const _0x4e0913=['comments','post','syncUpdateMutationToColla','onReady','Delete','requireSession','userID','_configService','comment','_config','188696aWgqRg','_injector','Unknown','_initUserSync','stringify','/list','Add','_threadCommentDataSource','_userService','updateComment','/delete','1391958xdALqy','code','disposeWithMe','Solve','OpenOrReOpen','userId','createTimestamp','parse','unitId','deleteComment','commentUpdate$','personId','49091TsvJNt','symbol','content','thread-comment-data-source.config','Solved','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','3eBJgKa','type','root','rangeId','defineProperty','_threadCommentModel','_init','/edit','getUnit','parentId','replies','1764072GFSVpY','saveCommentToSnapshot','forEach','dataSource','addUser','/reply','_initDataSource','size','add','replyId','_sessionService','find','payload','setConfig','184FdpILB','3227780iShVID','ref','rangeType','Reply','filter','get','20HYVDxt','users','body','map','627303DbEcGr','getMemberID','Edit','values','error','subscribe','reply','user','length','solved','_threadCommentDataSourceService','customRanges','getComment','183385ZAFcWW','getOwnPropertyDescriptor','resolveComment','UNRECOGNIZED','_commentService','onStarting','threadId','getUser','pipe','_httpService','/universer-api/comment/unit/','format','COMMENT'];_0x5f1d=function(){return _0x4e0913;};return _0x5f1d();}const X=_0x28ccda(0x166),P={};var k=Object['defineProperty'],ee=Object[_0x28ccda(0x19b)],re=(_0x35a205,_0x908dfb,_0x1b8d90,_0x12b36a)=>{for(var _0xd23f6f=_0x12b36a>0x1?void 0x0:_0x12b36a?ee(_0x908dfb,_0x1b8d90):_0x908dfb,_0x3bd0ed=_0x35a205['length']-0x1,_0x5c42e8;_0x3bd0ed>=0x0;_0x3bd0ed--)(_0x5c42e8=_0x35a205[_0x3bd0ed])&&(_0xd23f6f=(_0x12b36a?_0x5c42e8(_0x908dfb,_0x1b8d90,_0xd23f6f):_0x5c42e8(_0xd23f6f))||_0xd23f6f);return _0x12b36a&&_0xd23f6f&&k(_0x908dfb,_0x1b8d90,_0xd23f6f),_0xd23f6f;},I=(_0x45065d,_0x418bf8)=>(_0x26fa1c,_0x4c965c)=>_0x418bf8(_0x26fa1c,_0x4c965c,_0x45065d);function te(_0x5dac7b,_0x569a2f){const _0x1bd1fc=_0x28ccda,_0x1d1e68=_0x5dac7b['replies'][0x0];return{..._0x569a2f,'id':_0x1d1e68[_0x1bd1fc(0x17d)],'resolved':_0x5dac7b[_0x1bd1fc(0x196)]===0x1,'dT':O(_0x1d1e68['createTimestamp']),'personId':_0x1d1e68['userId'],'threadId':_0x1d1e68[_0x1bd1fc(0x1a0)]};}function se(_0x2c19f9,_0x371030,_0x19d95b){const _0x1e2bd8=_0x28ccda;var _0x1d2ac4,_0x44f486;if(((_0x44f486=(_0x1d2ac4=_0x2c19f9==null?void 0x0:_0x2c19f9['replies'])==null?void 0x0:_0x1d2ac4[_0x1e2bd8(0x195)])!=null?_0x44f486:0x0)>0x0){const _0x3e7442=(_0x46c68e,_0x26fc10)=>({'id':_0x46c68e[_0x1e2bd8(0x17d)],'threadId':_0x46c68e[_0x1e2bd8(0x1a0)],'dT':O(_0x46c68e[_0x1e2bd8(0x15d)]),'personId':_0x46c68e[_0x1e2bd8(0x15c)],'resolved':_0x2c19f9[_0x1e2bd8(0x196)]===v['Solved'],'unitId':_0x371030,'subUnitId':_0x19d95b,'text':JSON[_0x1e2bd8(0x15e)](_0x46c68e['content']),'parentId':_0x26fc10}),_0x257580=_0x3e7442(_0x2c19f9['replies'][0x0]);return{..._0x257580,'children':_0x2c19f9[_0x1e2bd8(0x173)]['slice'](0x1)[_0x1e2bd8(0x18c)](_0x8ace9c=>_0x3e7442(_0x8ace9c,_0x257580['id']))};}return null;}let S=class{constructor(_0x5f2978,_0x4a74c9,_0x216da2,_0x4b9ca3){const _0xe1828e=_0x28ccda;this[_0xe1828e(0x1a3)]=_0x5f2978,this['_userService']=_0x4a74c9,this[_0xe1828e(0x17e)]=_0x216da2,this[_0xe1828e(0x14d)]=_0x4b9ca3;}async['addComment'](_0x4e4621){const _0x5662d4=_0x28ccda;var _0x40d66a,_0x24fbb2;const {parentId:_0x722309,unitId:_0x4acb5b,text:_0xca96f,threadId:_0x4e59de}=_0x4e4621,_0x340392=(_0x24fbb2=(_0x40d66a=_0xca96f[_0x5662d4(0x198)])==null?void 0x0:_0x40d66a[_0x5662d4(0x187)](_0x33fa34=>_0x33fa34[_0x5662d4(0x185)]===_0x3ba666[_0x5662d4(0x1a6)])[_0x5662d4(0x18c)](_0x49ca72=>_0x49ca72[_0x5662d4(0x16c)]))!=null?_0x24fbb2:[],_0xc23240=JSON['stringify'](_0xca96f),_0x1fd9fd=(await this[_0x5662d4(0x17e)]['requireSession'](_0x4acb5b))[_0x5662d4(0x18e)]();if(_0x722309){const _0x133f38={'memberId':_0x1fd9fd,'unitId':_0x4acb5b,'content':_0xc23240,'mention':_0x340392,'threadId':_0x4e59de},_0x2e6080=(await this[_0x5662d4(0x1a3)][_0x5662d4(0x1a8)](_0x5662d4(0x1a4)+_0x4acb5b+_0x5662d4(0x179),{'body':_0x133f38}))[_0x5662d4(0x18b)][_0x5662d4(0x193)];return{..._0x4e4621,'id':_0x2e6080['replyId'],'dT':_0x397212(+_0x2e6080[_0x5662d4(0x15d)])['format']('YYYY/MM/DD\x20HH:mm'),'personId':_0x2e6080[_0x5662d4(0x15c)]};}else{const _0xcdbd67={'memberId':_0x1fd9fd,'unitId':_0x4acb5b,'content':_0xc23240,'mention':_0x340392},_0x2a8b08=await this[_0x5662d4(0x1a3)][_0x5662d4(0x1a8)](_0x5662d4(0x1a4)+_0x4acb5b+'/add',{'body':_0xcdbd67});return te(_0x2a8b08['body'][_0x5662d4(0x14a)],_0x4e4621);}}async[_0x28ccda(0x155)](_0x4ca19f){const _0x46a4ef=_0x28ccda;var _0x513f01,_0x361a24;const {text:_0x42131e,unitId:_0xadcb89}=_0x4ca19f,_0x38f242=(_0x361a24=(_0x513f01=_0x42131e['customRanges'])==null?void 0x0:_0x513f01[_0x46a4ef(0x187)](_0x2aa2ff=>_0x2aa2ff[_0x46a4ef(0x185)]===_0x3ba666[_0x46a4ef(0x1a6)])['map'](_0x7c471=>_0x7c471[_0x46a4ef(0x16c)]))!=null?_0x361a24:[],_0x1a4fa2=JSON[_0x46a4ef(0x150)](_0x42131e),_0x202c5a=_0x4ca19f[_0x46a4ef(0x1a0)],_0x4006c5=_0x4ca19f['id'],_0x5db48e={'memberId':(await this[_0x46a4ef(0x17e)]['requireSession'](_0xadcb89))[_0x46a4ef(0x18e)](),'unitId':_0xadcb89,'threadId':_0x202c5a,'mention':_0x38f242,'content':_0x1a4fa2,'replyId':_0x4006c5},_0x476680=await this['_httpService']['post'](_0x46a4ef(0x1a4)+_0xadcb89+_0x46a4ef(0x170),{'body':_0x5db48e});return!_0x476680[_0x46a4ef(0x18b)][_0x46a4ef(0x191)]||_0x476680[_0x46a4ef(0x18b)][_0x46a4ef(0x191)][_0x46a4ef(0x158)]===0x1;}async[_0x28ccda(0x19c)](_0x4dac24){const _0x20344e=_0x28ccda,{unitId:_0x454539}=_0x4dac24,_0x43ab1f=_0x4dac24[_0x20344e(0x1a0)],_0x4eb56c={'memberId':this['_userService']['getCurrentUser']()[_0x20344e(0x1ad)],'unitId':_0x454539,'threadId':_0x43ab1f,'solved':_0x4dac24['resolved']?v[_0x20344e(0x167)]:v['OpenOrReOpen']},_0x259e34=await this[_0x20344e(0x1a3)][_0x20344e(0x1a8)](_0x20344e(0x1a4)+_0x454539+'/solved',{'body':_0x4eb56c});return!_0x259e34['body'][_0x20344e(0x191)]||_0x259e34[_0x20344e(0x18b)]['error'][_0x20344e(0x158)]===0x1;}async['deleteComment'](_0x17d478,_0x5a398d,_0x55c1d4,_0x193fae){const _0x45f166=_0x28ccda,_0x5c6626={'memberId':(await this['_sessionService'][_0x45f166(0x1ac)](_0x17d478))[_0x45f166(0x18e)](),'threadId':_0x55c1d4,'replyId':_0x193fae,'unitId':_0x17d478},_0x3a3f35=await this[_0x45f166(0x1a3)][_0x45f166(0x1a8)](_0x45f166(0x1a4)+_0x17d478+_0x45f166(0x156),{'body':_0x5c6626});return!_0x3a3f35[_0x45f166(0x18b)]['error']||_0x3a3f35[_0x45f166(0x18b)][_0x45f166(0x191)][_0x45f166(0x158)]===0x1;}async['listComments'](_0x24e523,_0x551d2,_0x11761e){const _0x4e69d4=_0x28ccda,_0x1198fc={'unitId':_0x24e523,'threadId':_0x11761e},_0x396144=await this['_httpService'][_0x4e69d4(0x1a8)](_0x4e69d4(0x1a4)+_0x24e523+_0x4e69d4(0x151),{'body':_0x1198fc}),_0x387efc=_0x11761e['map'](_0x43f3fa=>se(_0x396144[_0x4e69d4(0x18b)][_0x4e69d4(0x1a7)][_0x43f3fa],_0x24e523,_0x551d2))[_0x4e69d4(0x187)](Boolean);return Object[_0x4e69d4(0x190)](_0x396144[_0x4e69d4(0x18b)][_0x4e69d4(0x18a)])['forEach'](_0x2c0aa9=>{const _0x44b41c=_0x4e69d4;this[_0x44b41c(0x154)]['addUser'](_0x2c0aa9);}),_0x387efc;}[_0x28ccda(0x175)](_0x6e8813){const _0x1ae0a7=_0x28ccda;return{'id':_0x6e8813['id'],'threadId':_0x6e8813[_0x1ae0a7(0x1a0)],'ref':_0x6e8813[_0x1ae0a7(0x184)]};}};S=re([I(0x0,_0x3a0570(_0x4ec0a8)),I(0x1,_0x3a0570(_0x12a5e3)),I(0x2,_0x3a0570(_0x5b73bc)),I(0x3,_0x3a0570(_0xe262b1))],S);var oe=Object[_0x28ccda(0x16d)],ne=Object['getOwnPropertyDescriptor'],ie=(_0xfe44,_0x1919f8,_0x2d5c36,_0x11d858)=>{const _0x4d9538=_0x28ccda;for(var _0x4e57f3=_0x11d858>0x1?void 0x0:_0x11d858?ne(_0x1919f8,_0x2d5c36):_0x1919f8,_0x468385=_0xfe44[_0x4d9538(0x195)]-0x1,_0x248330;_0x468385>=0x0;_0x468385--)(_0x248330=_0xfe44[_0x468385])&&(_0x4e57f3=(_0x11d858?_0x248330(_0x1919f8,_0x2d5c36,_0x4e57f3):_0x248330(_0x4e57f3))||_0x4e57f3);return _0x11d858&&_0x4e57f3&&oe(_0x1919f8,_0x2d5c36,_0x4e57f3),_0x4e57f3;},M=(_0x3edf9a,_0x18ee9a)=>(_0x736ea9,_0x49285c)=>_0x18ee9a(_0x736ea9,_0x49285c,_0x3edf9a);let b=class extends _0x143e3d{constructor(_0x5625d2,_0x4fbfc9){const _0x3fbba5=_0x28ccda;super(),this[_0x3fbba5(0x197)]=_0x5625d2,this[_0x3fbba5(0x153)]=_0x4fbfc9,this['_initDataSource']();}[_0x28ccda(0x17a)](){const _0x40729f=_0x28ccda;this['_threadCommentDataSourceService'][_0x40729f(0x177)]=this['_threadCommentDataSource'],this['_threadCommentDataSourceService'][_0x40729f(0x1a9)]=!0x1;}};b=ie([M(0x0,_0x1b74e6),M(0x1,_0x3a0570(S))],b);var $=Object['defineProperty'],ce=Object[_0x28ccda(0x19b)],ae=(_0x2a8ed9,_0x5425e8,_0x75ea59)=>_0x5425e8 in _0x2a8ed9?$(_0x2a8ed9,_0x5425e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x75ea59}):_0x2a8ed9[_0x5425e8]=_0x75ea59,de=(_0x1fa78d,_0xc001de,_0x437a20,_0x19b538)=>{const _0x406266=_0x28ccda;for(var _0x226c2f=_0x19b538>0x1?void 0x0:_0x19b538?ce(_0xc001de,_0x437a20):_0xc001de,_0x505e3a=_0x1fa78d[_0x406266(0x195)]-0x1,_0x1a9326;_0x505e3a>=0x0;_0x505e3a--)(_0x1a9326=_0x1fa78d[_0x505e3a])&&(_0x226c2f=(_0x19b538?_0x1a9326(_0xc001de,_0x437a20,_0x226c2f):_0x1a9326(_0x226c2f))||_0x226c2f);return _0x19b538&&_0x226c2f&&$(_0xc001de,_0x437a20,_0x226c2f),_0x226c2f;},N=(_0x16cedb,_0x50f6ae)=>(_0x4f0b0c,_0x32eb40)=>_0x50f6ae(_0x4f0b0c,_0x32eb40,_0x16cedb),j=(_0x3e33a3,_0x9d2e43,_0x41db73)=>ae(_0x3e33a3,typeof _0x9d2e43!=_0x28ccda(0x164)?_0x9d2e43+'':_0x9d2e43,_0x41db73);let C=class extends _0x2c670a{constructor(_0x1028c3=P,_0x236814,_0x176dd6){const _0x13ed80=_0x28ccda;super(),this[_0x13ed80(0x14b)]=_0x1028c3,this['_injector']=_0x236814,this[_0x13ed80(0x1ae)]=_0x176dd6;const {..._0x2233ee}=_0x1ae5f5({},P,this['_config']);this[_0x13ed80(0x1ae)][_0x13ed80(0x181)](X,_0x2233ee);}[_0x28ccda(0x19f)](){const _0x40484d=_0x28ccda;[[S],[b],[f]][_0x40484d(0x176)](_0x5b3fe1=>{const _0x1afa0e=_0x40484d;this[_0x1afa0e(0x14d)][_0x1afa0e(0x17c)](_0x5b3fe1);});}[_0x28ccda(0x1aa)](){const _0x384d65=_0x28ccda;this[_0x384d65(0x14d)][_0x384d65(0x188)](b),this[_0x384d65(0x14d)][_0x384d65(0x188)](f);}};j(C,'pluginName',B),j(C,_0x28ccda(0x16a),_0x847d30['UNIVER_UNKNOWN']),C=de([_0x594ede(_0x1d8280,_0x39fca1,_0x508010),N(0x1,_0x3a0570(_0xe262b1)),N(0x2,_0x59e28e)],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 _0x46f1(_0x21443d,_0x5e511a){const _0x37c560=_0x37c5();return _0x46f1=function(_0x46f1d9,_0x253dda){_0x46f1d9=_0x46f1d9-0xc8;let _0x202f69=_0x37c560[_0x46f1d9];return _0x202f69;},_0x46f1(_0x21443d,_0x5e511a);}function _0x37c5(){const _0x4f6086=['2251840UgGzqT','UniverCollaborationClientPlugin','rxjs','Reply','pluginName','map','reply','saveCommentToSnapshot','UniverProLicense','_commentService','Add','forEach','body','onStarting','solved','_userService','UniverThreadCommentDataSourcePlugin','Unknown','_injector','UserManagerService','_configService','ThreadCommentModel','Solve','Edit','user','Module','personId','HTTPService','Disposable','UNIVER_UNKNOWN','dataSource','exports','UniverLicensePlugin','disposeWithMe','_config','IConfigService','CollaborationSessionService','/add','@univerjs/thread-comment-ui','Solved','setConfig','_initUserSync','Inject','UniverNetwork','thread-comment-data-source.config','addComment','CustomRangeType','/solved','_threadCommentDataSource','Injector','content','@univerjs/core','replyId','getUnit','type','syncUpdateMutationToColla','users','/universer-api/user/list','get','addUser','updateComment','2187936ApgRfR','resolved','customRanges','7WmtySJ','@univerjs-pro/license','deleteComment','UniverThreadComment','dayjs','/universer-api/comment/unit/','error','pipe','code','UniverThreadCommentUIPlugin','@univerjs/thread-comment','comments','_threadCommentModel','@univerjs-pro/collaboration-client','format','toStringTag','ref','symbol','filter','UNRECOGNIZED','_init','function','userID','Delete','YYYY/MM/DD\x20HH:mm','/reply','UniverProThreadCommentDatasource','/edit','userId','UniverProCollaborationClient','CommentService','threadId','_sessionService','commentUpdate$','createTimestamp','add','getComment','replies','1418697EVmyMS','unitId','DependentOn','defineProperty','_threadCommentDataSourceService','slice','getOwnPropertyDescriptor','IThreadCommentDataSourceService','length','COMMENT','find','parse','/list','listComments','values','1565296KgbIXj','getUser','_initDataSource','bufferTime','Plugin','rangeId','subscribe','stringify','OpenOrReOpen','getCurrentUser','9506456xoTzjB','_httpService','payload','2228610vKAPcG','post','requireSession','/delete','getMemberID','resolveComment','840632ZlzXFd','root'];_0x37c5=function(){return _0x4f6086;};return _0x37c5();}(function(_0x3ce4c9,_0x36ae30){const _0x29a04e=_0x46f1,_0x3434aa=_0x3ce4c9();while(!![]){try{const _0x2a95b9=-parseInt(_0x29a04e(0x113))/0x1+-parseInt(_0x29a04e(0x100))/0x2+-parseInt(_0x29a04e(0xf1))/0x3+parseInt(_0x29a04e(0xc8))/0x4+parseInt(_0x29a04e(0x115))/0x5+parseInt(_0x29a04e(0x10d))/0x6+parseInt(_0x29a04e(0xcb))/0x7*(parseInt(_0x29a04e(0x10a))/0x8);if(_0x2a95b9===_0x36ae30)break;else _0x3434aa['push'](_0x3434aa['shift']());}catch(_0x11e731){_0x3434aa['push'](_0x3434aa['shift']());}}}(_0x37c5,0x70873),function(_0x5ed793,_0x949f2c){const _0x13cdce=_0x46f1;typeof exports=='object'&&typeof module<'u'?_0x949f2c(exports,require(_0x13cdce(0xd8)),require(_0x13cdce(0xcc)),require(_0x13cdce(0x148)),require(_0x13cdce(0x13b)),require(_0x13cdce(0xd5)),require(_0x13cdce(0x117)),require('@univerjs/network')):typeof define==_0x13cdce(0xe0)&&define['amd']?define([_0x13cdce(0x134),'@univerjs-pro/collaboration-client','@univerjs-pro/license',_0x13cdce(0x148),_0x13cdce(0x13b),_0x13cdce(0xd5),_0x13cdce(0x117),'@univerjs/network'],_0x949f2c):(_0x5ed793=typeof globalThis<'u'?globalThis:_0x5ed793||self,_0x949f2c(_0x5ed793[_0x13cdce(0xe5)]={},_0x5ed793[_0x13cdce(0xe8)],_0x5ed793[_0x13cdce(0x11d)],_0x5ed793['UniverCore'],_0x5ed793['UniverThreadCommentUi'],_0x5ed793[_0x13cdce(0xce)],_0x5ed793[_0x13cdce(0x117)],_0x5ed793[_0x13cdce(0x140)]));}(this,function(_0xb81cba,_0x4ebbea,_0x19d3fd,_0x1d4eaa,_0x27cbe3,_0x5bbffd,_0x167f00,_0x394e71){'use strict';const _0x12c703=_0x46f1;const _0x116508='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var _0x5194f4=(_0x1012ca=>(_0x1012ca[_0x1012ca[_0x12c703(0x108)]=0x0]=_0x12c703(0x108),_0x1012ca[_0x1012ca[_0x12c703(0x13c)]=0x1]='Solved',_0x1012ca[_0x1012ca[_0x12c703(0xde)]=-0x1]=_0x12c703(0xde),_0x1012ca))(_0x5194f4||{}),_0x25b835=(_0x5c342b=>(_0x5c342b[_0x5c342b[_0x12c703(0x126)]=0x0]=_0x12c703(0x126),_0x5c342b[_0x5c342b[_0x12c703(0x11f)]=0x1]='Add',_0x5c342b[_0x5c342b[_0x12c703(0x118)]=0x2]=_0x12c703(0x118),_0x5c342b[_0x5c342b['Edit']=0x3]=_0x12c703(0x12c),_0x5c342b[_0x5c342b[_0x12c703(0xe2)]=0x4]='Delete',_0x5c342b[_0x5c342b[_0x12c703(0x12b)]=0x5]=_0x12c703(0x12b),_0x5c342b[_0x5c342b['UNRECOGNIZED']=-0x1]=_0x12c703(0xde),_0x5c342b))(_0x25b835||{});const _0x204ccb=_0x5a01c0=>_0x1d4eaa['dayjs'](new Date(+_0x5a01c0))[_0x12c703(0xd9)](_0x12c703(0xe3)),_0x1335a4=async(_0x3ee0f1,_0x9dc27c)=>{const _0x5d1606=_0x12c703,_0x5def33=_0x3ee0f1[_0x5d1606(0x14f)](_0x1d4eaa[_0x5d1606(0x128)]),_0x1cee00=_0x3ee0f1['get'](_0x394e71[_0x5d1606(0x130)]);_0x9dc27c[_0x5d1606(0x120)](_0x2bec55=>{const _0x23146e=_0x5d1606;_0x5def33[_0x23146e(0x101)](_0x2bec55)&&_0x9dc27c['delete'](_0x2bec55);}),_0x9dc27c['size']&&(await _0x1cee00[_0x5d1606(0x14f)](_0x5d1606(0x14e),{'params':{'userIDs':[..._0x9dc27c]}}))[_0x5d1606(0x121)]['users'][_0x5d1606(0x120)](_0x3a86ac=>{_0x3a86ac&&_0x5def33['addUser'](_0x3a86ac);});};var _0x437a70=Object[_0x12c703(0xf4)],_0x43bf9f=Object[_0x12c703(0xf7)],_0x1fbbd6=(_0xe71b9,_0x4315af,_0x4cfc08,_0x4c02ab)=>{const _0x26f8ca=_0x12c703;for(var _0x1f07c0=_0x4c02ab>0x1?void 0x0:_0x4c02ab?_0x43bf9f(_0x4315af,_0x4cfc08):_0x4315af,_0x3971db=_0xe71b9[_0x26f8ca(0xf9)]-0x1,_0x8de014;_0x3971db>=0x0;_0x3971db--)(_0x8de014=_0xe71b9[_0x3971db])&&(_0x1f07c0=(_0x4c02ab?_0x8de014(_0x4315af,_0x4cfc08,_0x1f07c0):_0x8de014(_0x1f07c0))||_0x1f07c0);return _0x4c02ab&&_0x1f07c0&&_0x437a70(_0x4315af,_0x4cfc08,_0x1f07c0),_0x1f07c0;},_0x3c7ce2=(_0x321227,_0x3cca87)=>(_0x19a599,_0x4163aa)=>_0x3cca87(_0x19a599,_0x4163aa,_0x321227);let _0x372d93=class extends _0x1d4eaa[_0x12c703(0x131)]{constructor(_0x2121f2,_0x1713f8,_0x8993ea,_0x3a1352){const _0x25f088=_0x12c703;super(),this[_0x25f088(0x11e)]=_0x2121f2,this[_0x25f088(0xd7)]=_0x1713f8,this[_0x25f088(0x124)]=_0x8993ea,this[_0x25f088(0x127)]=_0x3a1352,this[_0x25f088(0xdf)](),this[_0x25f088(0x13e)]();}[_0x12c703(0x13e)](){const _0x379aa5=_0x12c703;this['disposeWithMe'](this[_0x379aa5(0xd7)][_0x379aa5(0xec)][_0x379aa5(0xd2)](_0x167f00[_0x379aa5(0x103)](0x10))[_0x379aa5(0x106)](_0x2ae4b4=>{const _0x1a8230=_0x379aa5,_0x2c9746=new Set();_0x2ae4b4[_0x1a8230(0x120)](_0x26ee34=>{const _0x3ed479=_0x1a8230;switch(_0x26ee34[_0x3ed479(0x14b)]){case _0x3ed479(0xee):{const _0x2b1eea=_0x26ee34[_0x3ed479(0x10c)][_0x3ed479(0x12f)];_0x2c9746[_0x3ed479(0xee)](_0x2b1eea);break;}}}),_0x1335a4(this[_0x1a8230(0x127)],_0x2c9746);}));}[_0x12c703(0xdf)](){const _0x5a9fa6=_0x12c703;this[_0x5a9fa6(0x136)](this[_0x5a9fa6(0x11e)]['commentUpdate$'][_0x5a9fa6(0x106)](async _0x5c2f7e=>{const _0xd5c905=_0x5a9fa6;var _0x413164,_0x3f04fe,_0x5bbd1d,_0x4973c0;const _0x35c02e=(_0x413164=this[_0xd5c905(0xd7)][_0xd5c905(0x14a)](_0x5c2f7e[_0xd5c905(0xf2)])[_0xd5c905(0xfb)](_0x4b4679=>_0x4b4679[_0xd5c905(0xea)]===_0x5c2f7e[_0xd5c905(0xea)]))==null?void 0x0:_0x413164[_0xd5c905(0x114)];if(!_0x35c02e)return;const {unitId:_0xe46b1c,subUnitId:_0x475db0}=_0x35c02e;switch(_0x5c2f7e['user']&&this[_0xd5c905(0x124)][_0xd5c905(0x150)](_0x5c2f7e[_0xd5c905(0x12d)]),_0x5c2f7e[_0xd5c905(0x14b)]){case _0x25b835[_0xd5c905(0x11f)]:break;case _0x25b835['Reply']:{this['_threadCommentModel'][_0xd5c905(0x142)](_0xe46b1c,_0x475db0,{'unitId':_0xe46b1c,'subUnitId':_0x475db0,'ref':'','id':_0x5c2f7e['replyId'],'dT':_0x204ccb(+_0x5c2f7e[_0xd5c905(0xed)]),'threadId':_0x5c2f7e[_0xd5c905(0xea)],'personId':(_0x5bbd1d=(_0x3f04fe=_0x5c2f7e['user'])==null?void 0x0:_0x3f04fe[_0xd5c905(0xe1)])!=null?_0x5bbd1d:_0x5c2f7e[_0xd5c905(0xe7)],'text':JSON[_0xd5c905(0xfc)](_0x5c2f7e[_0xd5c905(0x147)]),'parentId':_0x35c02e['id']});break;}case _0x25b835[_0xd5c905(0xe2)]:{const _0xb6bdd7=this[_0xd5c905(0xd7)][_0xd5c905(0xef)](_0xe46b1c,_0x475db0,_0x5c2f7e[_0xd5c905(0x149)]);_0xb6bdd7&&_0xb6bdd7['parentId']&&this[_0xd5c905(0xd7)]['deleteComment'](_0xe46b1c,_0x475db0,_0x5c2f7e['replyId']);break;}case _0x25b835[_0xd5c905(0x12c)]:{this[_0xd5c905(0xd7)][_0xd5c905(0x151)](_0xe46b1c,_0x475db0,{'commentId':_0x5c2f7e[_0xd5c905(0x149)],'text':JSON['parse'](_0x5c2f7e[_0xd5c905(0x147)])});break;}case _0x25b835[_0xd5c905(0x12b)]:{const _0x3490bc=(_0x4973c0=this[_0xd5c905(0xd7)][_0xd5c905(0x14a)](_0x5c2f7e[_0xd5c905(0xf2)])['find'](_0x22ad87=>_0x22ad87[_0xd5c905(0xea)]===_0x5c2f7e[_0xd5c905(0xea)]))==null?void 0x0:_0x4973c0[_0xd5c905(0x114)];_0x3490bc&&this[_0xd5c905(0xd7)][_0xd5c905(0x112)](_0xe46b1c,_0x475db0,_0x3490bc['id'],_0x5c2f7e['solved']===_0x5194f4['Solved']);break;}}}));}};_0x372d93=_0x1fbbd6([_0x3c7ce2(0x0,_0x1d4eaa[_0x12c703(0x13f)](_0x4ebbea[_0x12c703(0xe9)])),_0x3c7ce2(0x1,_0x1d4eaa[_0x12c703(0x13f)](_0x5bbffd[_0x12c703(0x12a)])),_0x3c7ce2(0x2,_0x1d4eaa[_0x12c703(0x13f)](_0x1d4eaa[_0x12c703(0x128)])),_0x3c7ce2(0x3,_0x1d4eaa[_0x12c703(0x13f)](_0x1d4eaa['Injector']))],_0x372d93);const _0x48979b=_0x12c703(0x141),_0x1227cf={};var _0x306676=Object[_0x12c703(0xf4)],_0x90f218=Object[_0x12c703(0xf7)],_0x3b6b0e=(_0x45435c,_0x23f82d,_0x1d8a3f,_0x5c690d)=>{const _0x599381=_0x12c703;for(var _0x235aa2=_0x5c690d>0x1?void 0x0:_0x5c690d?_0x90f218(_0x23f82d,_0x1d8a3f):_0x23f82d,_0x13da9a=_0x45435c[_0x599381(0xf9)]-0x1,_0x268091;_0x13da9a>=0x0;_0x13da9a--)(_0x268091=_0x45435c[_0x13da9a])&&(_0x235aa2=(_0x5c690d?_0x268091(_0x23f82d,_0x1d8a3f,_0x235aa2):_0x268091(_0x235aa2))||_0x235aa2);return _0x5c690d&&_0x235aa2&&_0x306676(_0x23f82d,_0x1d8a3f,_0x235aa2),_0x235aa2;},_0x2920aa=(_0x1e4e98,_0x5279e5)=>(_0x41c387,_0x4dc21b)=>_0x5279e5(_0x41c387,_0x4dc21b,_0x1e4e98);function _0xafcea7(_0xcc2d5c,_0x3f3cad){const _0x589cac=_0x12c703,_0xc59948=_0xcc2d5c[_0x589cac(0xf0)][0x0];return{..._0x3f3cad,'id':_0xc59948[_0x589cac(0x149)],'resolved':_0xcc2d5c[_0x589cac(0x123)]===0x1,'dT':_0x204ccb(_0xc59948[_0x589cac(0xed)]),'personId':_0xc59948[_0x589cac(0xe7)],'threadId':_0xc59948[_0x589cac(0xea)]};}function _0x201257(_0x39204b,_0x1a9baa,_0x3297f5){const _0x371056=_0x12c703;var _0x59d3c0,_0x286981;if(((_0x286981=(_0x59d3c0=_0x39204b==null?void 0x0:_0x39204b['replies'])==null?void 0x0:_0x59d3c0['length'])!=null?_0x286981:0x0)>0x0){const _0x374897=(_0xc2f3b4,_0x143c6b)=>({'id':_0xc2f3b4[_0x371056(0x149)],'threadId':_0xc2f3b4[_0x371056(0xea)],'dT':_0x204ccb(_0xc2f3b4['createTimestamp']),'personId':_0xc2f3b4[_0x371056(0xe7)],'resolved':_0x39204b[_0x371056(0x123)]===_0x5194f4[_0x371056(0x13c)],'unitId':_0x1a9baa,'subUnitId':_0x3297f5,'text':JSON[_0x371056(0xfc)](_0xc2f3b4[_0x371056(0x147)]),'parentId':_0x143c6b}),_0x317683=_0x374897(_0x39204b['replies'][0x0]);return{..._0x317683,'children':_0x39204b['replies'][_0x371056(0xf6)](0x1)[_0x371056(0x11a)](_0x5b5943=>_0x374897(_0x5b5943,_0x317683['id']))};}return null;}let _0x3f9a97=class{constructor(_0x582854,_0x500fbd,_0x42967a,_0x3229e8){const _0x18242f=_0x12c703;this[_0x18242f(0x10b)]=_0x582854,this[_0x18242f(0x124)]=_0x500fbd,this[_0x18242f(0xeb)]=_0x42967a,this['_injector']=_0x3229e8;}async[_0x12c703(0x142)](_0x4fda9e){const _0x250bc3=_0x12c703;var _0x10988f,_0x35662b;const {parentId:_0xe979ed,unitId:_0x534f34,text:_0x21d8ac,threadId:_0xf27dbe}=_0x4fda9e,_0x27d767=(_0x35662b=(_0x10988f=_0x21d8ac[_0x250bc3(0xca)])==null?void 0x0:_0x10988f['filter'](_0x1b85b9=>_0x1b85b9['rangeType']===_0x1d4eaa[_0x250bc3(0x143)]['COMMENT'])['map'](_0x1365d0=>_0x1365d0[_0x250bc3(0x105)]))!=null?_0x35662b:[],_0x484755=JSON[_0x250bc3(0x107)](_0x21d8ac),_0x57ca73=(await this[_0x250bc3(0xeb)]['requireSession'](_0x534f34))['getMemberID']();if(_0xe979ed){const _0x2f6b9c={'memberId':_0x57ca73,'unitId':_0x534f34,'content':_0x484755,'mention':_0x27d767,'threadId':_0xf27dbe},_0x51d682=(await this[_0x250bc3(0x10b)][_0x250bc3(0x10e)](_0x250bc3(0xd0)+_0x534f34+_0x250bc3(0xe4),{'body':_0x2f6b9c}))['body'][_0x250bc3(0x11b)];return{..._0x4fda9e,'id':_0x51d682[_0x250bc3(0x149)],'dT':_0x1d4eaa[_0x250bc3(0xcf)](+_0x51d682['createTimestamp'])[_0x250bc3(0xd9)](_0x250bc3(0xe3)),'personId':_0x51d682['userId']};}else{const _0x222df8={'memberId':_0x57ca73,'unitId':_0x534f34,'content':_0x484755,'mention':_0x27d767},_0xa63e3a=await this[_0x250bc3(0x10b)][_0x250bc3(0x10e)](_0x250bc3(0xd0)+_0x534f34+_0x250bc3(0x13a),{'body':_0x222df8});return _0xafcea7(_0xa63e3a[_0x250bc3(0x121)]['comment'],_0x4fda9e);}}async[_0x12c703(0x151)](_0x46d36d){const _0x549c3c=_0x12c703;var _0x103bd,_0x49c4f6;const {text:_0x5eabd9,unitId:_0xda1b11}=_0x46d36d,_0x3a62e5=(_0x49c4f6=(_0x103bd=_0x5eabd9['customRanges'])==null?void 0x0:_0x103bd[_0x549c3c(0xdd)](_0x3217c2=>_0x3217c2['rangeType']===_0x1d4eaa['CustomRangeType'][_0x549c3c(0xfa)])[_0x549c3c(0x11a)](_0x26634c=>_0x26634c[_0x549c3c(0x105)]))!=null?_0x49c4f6:[],_0x5bb6e4=JSON['stringify'](_0x5eabd9),_0xe6cf1a=_0x46d36d[_0x549c3c(0xea)],_0x4c23d2=_0x46d36d['id'],_0x5c3df6={'memberId':(await this[_0x549c3c(0xeb)][_0x549c3c(0x10f)](_0xda1b11))[_0x549c3c(0x111)](),'unitId':_0xda1b11,'threadId':_0xe6cf1a,'mention':_0x3a62e5,'content':_0x5bb6e4,'replyId':_0x4c23d2},_0x34a687=await this[_0x549c3c(0x10b)][_0x549c3c(0x10e)]('/universer-api/comment/unit/'+_0xda1b11+_0x549c3c(0xe6),{'body':_0x5c3df6});return!_0x34a687[_0x549c3c(0x121)][_0x549c3c(0xd1)]||_0x34a687[_0x549c3c(0x121)][_0x549c3c(0xd1)][_0x549c3c(0xd3)]===0x1;}async[_0x12c703(0x112)](_0x391372){const _0x5d183a=_0x12c703,{unitId:_0xb8afbb}=_0x391372,_0x52b845=_0x391372[_0x5d183a(0xea)],_0x294909={'memberId':this[_0x5d183a(0x124)][_0x5d183a(0x109)]()[_0x5d183a(0xe1)],'unitId':_0xb8afbb,'threadId':_0x52b845,'solved':_0x391372[_0x5d183a(0xc9)]?_0x5194f4[_0x5d183a(0x13c)]:_0x5194f4[_0x5d183a(0x108)]},_0x5276ef=await this['_httpService'][_0x5d183a(0x10e)](_0x5d183a(0xd0)+_0xb8afbb+_0x5d183a(0x144),{'body':_0x294909});return!_0x5276ef[_0x5d183a(0x121)][_0x5d183a(0xd1)]||_0x5276ef[_0x5d183a(0x121)][_0x5d183a(0xd1)][_0x5d183a(0xd3)]===0x1;}async[_0x12c703(0xcd)](_0x1aa571,_0x516ca4,_0x398592,_0x16974f){const _0x429f32=_0x12c703,_0xcf01b9={'memberId':(await this[_0x429f32(0xeb)][_0x429f32(0x10f)](_0x1aa571))[_0x429f32(0x111)](),'threadId':_0x398592,'replyId':_0x16974f,'unitId':_0x1aa571},_0x573335=await this[_0x429f32(0x10b)][_0x429f32(0x10e)](_0x429f32(0xd0)+_0x1aa571+_0x429f32(0x110),{'body':_0xcf01b9});return!_0x573335['body'][_0x429f32(0xd1)]||_0x573335[_0x429f32(0x121)]['error'][_0x429f32(0xd3)]===0x1;}async[_0x12c703(0xfe)](_0x18a05b,_0x28e03,_0x3ddc76){const _0x4acc2c=_0x12c703,_0xee5d3={'unitId':_0x18a05b,'threadId':_0x3ddc76},_0x574ec7=await this[_0x4acc2c(0x10b)][_0x4acc2c(0x10e)](_0x4acc2c(0xd0)+_0x18a05b+_0x4acc2c(0xfd),{'body':_0xee5d3}),_0xb78d91=_0x3ddc76[_0x4acc2c(0x11a)](_0x12f6da=>_0x201257(_0x574ec7[_0x4acc2c(0x121)][_0x4acc2c(0xd6)][_0x12f6da],_0x18a05b,_0x28e03))[_0x4acc2c(0xdd)](Boolean);return Object[_0x4acc2c(0xff)](_0x574ec7[_0x4acc2c(0x121)][_0x4acc2c(0x14d)])['forEach'](_0xcf32a=>{this['_userService']['addUser'](_0xcf32a);}),_0xb78d91;}[_0x12c703(0x11c)](_0x9b936e){const _0x2aeedc=_0x12c703;return{'id':_0x9b936e['id'],'threadId':_0x9b936e[_0x2aeedc(0xea)],'ref':_0x9b936e[_0x2aeedc(0xdb)]};}};_0x3f9a97=_0x3b6b0e([_0x2920aa(0x0,_0x1d4eaa[_0x12c703(0x13f)](_0x394e71['HTTPService'])),_0x2920aa(0x1,_0x1d4eaa[_0x12c703(0x13f)](_0x1d4eaa[_0x12c703(0x128)])),_0x2920aa(0x2,_0x1d4eaa[_0x12c703(0x13f)](_0x4ebbea[_0x12c703(0x139)])),_0x2920aa(0x3,_0x1d4eaa[_0x12c703(0x13f)](_0x1d4eaa[_0x12c703(0x146)]))],_0x3f9a97);var _0x40e942=Object['defineProperty'],_0x4b7bec=Object[_0x12c703(0xf7)],_0xaf621b=(_0x982ed3,_0x4357e7,_0x34b071,_0x255fce)=>{const _0x6e4691=_0x12c703;for(var _0x14ac3a=_0x255fce>0x1?void 0x0:_0x255fce?_0x4b7bec(_0x4357e7,_0x34b071):_0x4357e7,_0x32d526=_0x982ed3[_0x6e4691(0xf9)]-0x1,_0x51237a;_0x32d526>=0x0;_0x32d526--)(_0x51237a=_0x982ed3[_0x32d526])&&(_0x14ac3a=(_0x255fce?_0x51237a(_0x4357e7,_0x34b071,_0x14ac3a):_0x51237a(_0x14ac3a))||_0x14ac3a);return _0x255fce&&_0x14ac3a&&_0x40e942(_0x4357e7,_0x34b071,_0x14ac3a),_0x14ac3a;},_0x93b05b=(_0x3aaecb,_0x2503e2)=>(_0x3ade5e,_0x4590e6)=>_0x2503e2(_0x3ade5e,_0x4590e6,_0x3aaecb);let _0x1dc213=class extends _0x1d4eaa[_0x12c703(0x131)]{constructor(_0x1aab61,_0x59cd2d){const _0x4f73d2=_0x12c703;super(),this[_0x4f73d2(0xf5)]=_0x1aab61,this[_0x4f73d2(0x145)]=_0x59cd2d,this[_0x4f73d2(0x102)]();}[_0x12c703(0x102)](){const _0x38a405=_0x12c703;this[_0x38a405(0xf5)][_0x38a405(0x133)]=this[_0x38a405(0x145)],this[_0x38a405(0xf5)][_0x38a405(0x14c)]=!0x1;}};_0x1dc213=_0xaf621b([_0x93b05b(0x0,_0x5bbffd[_0x12c703(0xf8)]),_0x93b05b(0x1,_0x1d4eaa['Inject'](_0x3f9a97))],_0x1dc213);var _0x40350b=Object[_0x12c703(0xf4)],_0xace297=Object[_0x12c703(0xf7)],_0x44b0d=(_0x1fca8c,_0x5e114d,_0x403b89)=>_0x5e114d in _0x1fca8c?_0x40350b(_0x1fca8c,_0x5e114d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x403b89}):_0x1fca8c[_0x5e114d]=_0x403b89,_0x14899d=(_0x21e112,_0x1a9229,_0x26d9f5,_0x23cf5f)=>{const _0x214622=_0x12c703;for(var _0x52de8a=_0x23cf5f>0x1?void 0x0:_0x23cf5f?_0xace297(_0x1a9229,_0x26d9f5):_0x1a9229,_0x12039b=_0x21e112[_0x214622(0xf9)]-0x1,_0x111bcd;_0x12039b>=0x0;_0x12039b--)(_0x111bcd=_0x21e112[_0x12039b])&&(_0x52de8a=(_0x23cf5f?_0x111bcd(_0x1a9229,_0x26d9f5,_0x52de8a):_0x111bcd(_0x52de8a))||_0x52de8a);return _0x23cf5f&&_0x52de8a&&_0x40350b(_0x1a9229,_0x26d9f5,_0x52de8a),_0x52de8a;},_0x5bc41f=(_0x19fbc8,_0x41dcc8)=>(_0x111d41,_0x2dc83f)=>_0x41dcc8(_0x111d41,_0x2dc83f,_0x19fbc8),_0x4d22f3=(_0x5382db,_0xf74b5a,_0x262f19)=>_0x44b0d(_0x5382db,typeof _0xf74b5a!=_0x12c703(0xdc)?_0xf74b5a+'':_0xf74b5a,_0x262f19);_0xb81cba['UniverThreadCommentDataSourcePlugin']=class extends _0x1d4eaa[_0x12c703(0x104)]{constructor(_0x2f7bf2=_0x1227cf,_0x4e4f49,_0x52b6c3){const _0x368ff7=_0x12c703;super(),this[_0x368ff7(0x137)]=_0x2f7bf2,this[_0x368ff7(0x127)]=_0x4e4f49,this[_0x368ff7(0x129)]=_0x52b6c3;const {..._0x49a0ff}=_0x1d4eaa['merge']({},_0x1227cf,this[_0x368ff7(0x137)]);this[_0x368ff7(0x129)][_0x368ff7(0x13d)](_0x48979b,_0x49a0ff);}[_0x12c703(0x122)](){const _0x4119d7=_0x12c703;[[_0x3f9a97],[_0x1dc213],[_0x372d93]][_0x4119d7(0x120)](_0x3c0703=>{const _0x1ce672=_0x4119d7;this[_0x1ce672(0x127)]['add'](_0x3c0703);});}['onReady'](){const _0xee4700=_0x12c703;this[_0xee4700(0x127)]['get'](_0x1dc213),this[_0xee4700(0x127)]['get'](_0x372d93);}},_0x4d22f3(_0xb81cba[_0x12c703(0x125)],_0x12c703(0x119),_0x116508),_0x4d22f3(_0xb81cba[_0x12c703(0x125)],'type',_0x1d4eaa['UniverInstanceType'][_0x12c703(0x132)]),_0xb81cba['UniverThreadCommentDataSourcePlugin']=_0x14899d([_0x1d4eaa[_0x12c703(0xf3)](_0x27cbe3[_0x12c703(0xd4)],_0x4ebbea[_0x12c703(0x116)],_0x19d3fd[_0x12c703(0x135)]),_0x5bc41f(0x1,_0x1d4eaa['Inject'](_0x1d4eaa['Injector'])),_0x5bc41f(0x2,_0x1d4eaa[_0x12c703(0x138)])],_0xb81cba[_0x12c703(0x125)]),Object['defineProperty'](_0xb81cba,Symbol[_0x12c703(0xda)],{'value':_0x12c703(0x12e)});}));
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-experimental.20250106-4af1f4e",
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-experimental.20250106-4af1f4e",
49
+ "@univerjs/core": "0.5.3-experimental.20250106-4af1f4e",
50
+ "@univerjs-pro/license": "0.5.3-experimental.20250106-4af1f4e",
51
+ "@univerjs/thread-comment": "0.5.3-experimental.20250106-4af1f4e",
52
+ "@univerjs/network": "0.5.3-experimental.20250106-4af1f4e",
53
+ "@univerjs/protocol": "0.1.40-alpha.10",
54
+ "@univerjs/thread-comment-ui": "0.5.3-experimental.20250106-4af1f4e"
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",