@univerjs-pro/thread-comment-datasource 0.5.0-nightly.202411291606 → 0.5.1

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';function _0x3bec(){const _0x23b345=['/edit','/universer-api/comment/unit/','setConfig','deleteComment','/delete','DependentOn','user','CustomRangeType','post','users','getMemberID','UNRECOGNIZED','_initUserSync','UniverThreadCommentUIPlugin','1368152IwzLYh','bufferTime','27162LkRrco','getUser','userId','symbol','54MzXQjp','pluginName','174oaJJiI','YYYY/MM/DD\x20HH:mm','rangeId','error','unitId','solved','_threadCommentDataSourceService','_threadCommentDataSource','Edit','onStarting','dataSource','1EsqGJN','Add','syncUpdateMutationToColla','UNIVER_UNKNOWN','parse','_config','_threadCommentModel','_commentService','_configService','506RCZrRE','Disposable','type','IThreadCommentDataSourceService','listComments','filter','OpenOrReOpen','content','comment','find','Plugin','addUser','Delete','resolveComment','@univerjs/network','getOwnPropertyDescriptor','resolved','@univerjs/thread-comment','forEach','Solve','getComment','subscribe','Unknown','length','_sessionService','get','add','disposeWithMe','replies','size','UniverInstanceType','onReady','_httpService','@univerjs/thread-comment-ui','getUnit','personId','Injector','thread-comment-data-source.config','@univerjs/core','body','requireSession','CommentService','parentId','364524RRknnT','Solved','HTTPService','map','dayjs','format','defineProperty','stringify','COMMENT','10mkSOIl','threadId','UniverThreadCommentDataSourcePlugin','_injector','addComment','rangeType','Reply','replyId','UserManagerService','_userService','rxjs','values','code','userID','CollaborationSessionService','75124kuKDDY','ref','root','@univerjs-pro/license','_initDataSource','1155270YbbdMM','/list','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','7637984oSMoSU','commentUpdate$','comments','1702372nEOVTC','Inject','delete','updateComment','UniverLicensePlugin','UniverCollaborationClientPlugin'];_0x3bec=function(){return _0x23b345;};return _0x3bec();}const _0x62ceb6=_0x52de;(function(_0x336c02,_0x5af880){const _0x28d12f=_0x52de,_0x5635d9=_0x336c02();while(!![]){try{const _0x251d5d=parseInt(_0x28d12f(0x128))/0x1*(parseInt(_0x28d12f(0x17f))/0x2)+-parseInt(_0x28d12f(0x195))/0x3+parseInt(_0x28d12f(0x193))/0x4*(parseInt(_0x28d12f(0x165))/0x5)+-parseInt(_0x28d12f(0x19b))/0x6*(-parseInt(_0x28d12f(0x174))/0x7)+parseInt(_0x28d12f(0x17c))/0x8+-parseInt(_0x28d12f(0x199))/0x9*(parseInt(_0x28d12f(0x179))/0xa)+-parseInt(_0x28d12f(0x131))/0xb*(parseInt(_0x28d12f(0x15c))/0xc);if(_0x251d5d===_0x5af880)break;else _0x5635d9['push'](_0x5635d9['shift']());}catch(_0x59e2b9){_0x5635d9['push'](_0x5635d9['shift']());}}}(_0x3bec,0xab4f0));Object[_0x62ceb6(0x162)](exports,Symbol['toStringTag'],{'value':'Module'});function _0x52de(_0x20c2ae,_0x32087e){const _0x3bec06=_0x3bec();return _0x52de=function(_0x52de87,_0x1031e2){_0x52de87=_0x52de87-0x11f;let _0x4e121e=_0x3bec06[_0x52de87];return _0x4e121e;},_0x52de(_0x20c2ae,_0x32087e);}const C=require('@univerjs-pro/collaboration-client'),N=require(_0x62ceb6(0x177)),c=require(_0x62ceb6(0x157)),T=require(_0x62ceb6(0x152)),y=require(_0x62ceb6(0x142)),w=require(_0x62ceb6(0x16f)),P=require(_0x62ceb6(0x13f)),U=_0x62ceb6(0x17b);var I=(_0x59d411=>(_0x59d411[_0x59d411['OpenOrReOpen']=0x0]=_0x62ceb6(0x137),_0x59d411[_0x59d411[_0x62ceb6(0x15d)]=0x1]='Solved',_0x59d411[_0x59d411[_0x62ceb6(0x190)]=-0x1]='UNRECOGNIZED',_0x59d411))(I||{}),v=(_0x58324d=>(_0x58324d[_0x58324d[_0x62ceb6(0x147)]=0x0]=_0x62ceb6(0x147),_0x58324d[_0x58324d[_0x62ceb6(0x129)]=0x1]=_0x62ceb6(0x129),_0x58324d[_0x58324d[_0x62ceb6(0x16b)]=0x2]=_0x62ceb6(0x16b),_0x58324d[_0x58324d['Edit']=0x3]=_0x62ceb6(0x125),_0x58324d[_0x58324d[_0x62ceb6(0x13d)]=0x4]=_0x62ceb6(0x13d),_0x58324d[_0x58324d[_0x62ceb6(0x144)]=0x5]='Solve',_0x58324d[_0x58324d[_0x62ceb6(0x190)]=-0x1]=_0x62ceb6(0x190),_0x58324d))(v||{});const g=_0x41d88d=>c[_0x62ceb6(0x160)](new Date(+_0x41d88d))[_0x62ceb6(0x161)](_0x62ceb6(0x19c)),R=async(_0x161927,_0x3b23a9)=>{const _0x53cb48=_0x62ceb6,_0x5d6f62=_0x161927['get'](c[_0x53cb48(0x16d)]),_0x3ec8ae=_0x161927[_0x53cb48(0x14a)](P[_0x53cb48(0x15e)]);_0x3b23a9[_0x53cb48(0x143)](_0x3e79c2=>{const _0x267eb0=_0x53cb48;_0x5d6f62[_0x267eb0(0x196)](_0x3e79c2)&&_0x3b23a9[_0x267eb0(0x181)](_0x3e79c2);}),_0x3b23a9[_0x53cb48(0x14e)]&&(await _0x3ec8ae[_0x53cb48(0x14a)]('/universer-api/user/list',{'params':{'userIDs':[..._0x3b23a9]}}))[_0x53cb48(0x158)][_0x53cb48(0x18e)][_0x53cb48(0x143)](_0x4c4138=>{const _0x213f4b=_0x53cb48;_0x4c4138&&_0x5d6f62[_0x213f4b(0x13c)](_0x4c4138);});};var $=Object['defineProperty'],E=Object[_0x62ceb6(0x140)],q=(_0x991aed,_0x20bc79,_0x4c9f63,_0x5f46ee)=>{for(var _0x3773c1=_0x5f46ee>0x1?void 0x0:_0x5f46ee?E(_0x20bc79,_0x4c9f63):_0x20bc79,_0xbd2da6=_0x991aed['length']-0x1,_0x511066;_0xbd2da6>=0x0;_0xbd2da6--)(_0x511066=_0x991aed[_0xbd2da6])&&(_0x3773c1=(_0x5f46ee?_0x511066(_0x20bc79,_0x4c9f63,_0x3773c1):_0x511066(_0x3773c1))||_0x3773c1);return _0x5f46ee&&_0x3773c1&&$(_0x20bc79,_0x4c9f63,_0x3773c1),_0x3773c1;},_=(_0x5c45f4,_0x147828)=>(_0xdd757a,_0xc26ab7)=>_0x147828(_0xdd757a,_0xc26ab7,_0x5c45f4);let S=class extends c['Disposable']{constructor(_0x545477,_0x229c64,_0x3b9345,_0x9d1fd0){const _0x159756=_0x62ceb6;super(),this['_commentService']=_0x545477,this['_threadCommentModel']=_0x229c64,this[_0x159756(0x16e)]=_0x3b9345,this[_0x159756(0x168)]=_0x9d1fd0,this['_init'](),this['_initUserSync']();}[_0x62ceb6(0x191)](){const _0x9436d4=_0x62ceb6;this[_0x9436d4(0x14c)](this[_0x9436d4(0x12e)]['commentUpdate$']['pipe'](w[_0x9436d4(0x194)](0x10))[_0x9436d4(0x146)](_0x85371e=>{const _0x10eb7f=new Set();_0x85371e['forEach'](_0x175309=>{const _0x42f5a0=_0x52de;switch(_0x175309[_0x42f5a0(0x133)]){case _0x42f5a0(0x14b):{const _0xdbaf4f=_0x175309['payload'][_0x42f5a0(0x154)];_0x10eb7f[_0x42f5a0(0x14b)](_0xdbaf4f);break;}}}),R(this['_injector'],_0x10eb7f);}));}['_init'](){const _0xca2bf6=_0x62ceb6;this['disposeWithMe'](this[_0xca2bf6(0x12f)][_0xca2bf6(0x17d)][_0xca2bf6(0x146)](async _0x58164f=>{const _0x3d1451=_0xca2bf6;var _0x3b9b49,_0x91d8fe,_0x5b8396,_0x95817;const _0x51d917=(_0x3b9b49=this[_0x3d1451(0x12e)][_0x3d1451(0x153)](_0x58164f[_0x3d1451(0x121)])[_0x3d1451(0x13a)](_0x2d8b94=>_0x2d8b94[_0x3d1451(0x166)]===_0x58164f[_0x3d1451(0x166)]))==null?void 0x0:_0x3b9b49['root'];if(!_0x51d917)return;const {unitId:_0xa222,subUnitId:_0x2274bb}=_0x51d917;switch(_0x58164f[_0x3d1451(0x18b)]&&this[_0x3d1451(0x16e)]['addUser'](_0x58164f[_0x3d1451(0x18b)]),_0x58164f[_0x3d1451(0x133)]){case v['Add']:break;case v['Reply']:{this['_threadCommentModel'][_0x3d1451(0x169)](_0xa222,_0x2274bb,{'unitId':_0xa222,'subUnitId':_0x2274bb,'ref':'','id':_0x58164f[_0x3d1451(0x16c)],'dT':g(+_0x58164f['createTimestamp']),'threadId':_0x58164f[_0x3d1451(0x166)],'personId':(_0x5b8396=(_0x91d8fe=_0x58164f[_0x3d1451(0x18b)])==null?void 0x0:_0x91d8fe[_0x3d1451(0x172)])!=null?_0x5b8396:_0x58164f[_0x3d1451(0x197)],'text':JSON[_0x3d1451(0x12c)](_0x58164f[_0x3d1451(0x138)]),'parentId':_0x51d917['id']});break;}case v['Delete']:{const _0x249965=this[_0x3d1451(0x12e)][_0x3d1451(0x145)](_0xa222,_0x2274bb,_0x58164f[_0x3d1451(0x16c)]);_0x249965&&_0x249965[_0x3d1451(0x15b)]&&this[_0x3d1451(0x12e)]['deleteComment'](_0xa222,_0x2274bb,_0x58164f[_0x3d1451(0x16c)]);break;}case v['Edit']:{this[_0x3d1451(0x12e)][_0x3d1451(0x182)](_0xa222,_0x2274bb,{'commentId':_0x58164f[_0x3d1451(0x16c)],'text':JSON[_0x3d1451(0x12c)](_0x58164f[_0x3d1451(0x138)])});break;}case v['Solve']:{const _0x784eb6=(_0x95817=this[_0x3d1451(0x12e)]['getUnit'](_0x58164f['unitId'])['find'](_0xe94004=>_0xe94004[_0x3d1451(0x166)]===_0x58164f[_0x3d1451(0x166)]))==null?void 0x0:_0x95817[_0x3d1451(0x176)];_0x784eb6&&this[_0x3d1451(0x12e)][_0x3d1451(0x13e)](_0xa222,_0x2274bb,_0x784eb6['id'],_0x58164f[_0x3d1451(0x122)]===I[_0x3d1451(0x15d)]);break;}}}));}};S=q([_(0x0,c['Inject'](C[_0x62ceb6(0x15a)])),_(0x1,c['Inject'](y['ThreadCommentModel'])),_(0x2,c[_0x62ceb6(0x180)](c[_0x62ceb6(0x16d)])),_(0x3,c[_0x62ceb6(0x180)](c[_0x62ceb6(0x155)]))],S);const A=_0x62ceb6(0x156),x={};var Y=Object[_0x62ceb6(0x162)],G=Object[_0x62ceb6(0x140)],H=(_0xf62892,_0x11234b,_0x57108b,_0x50ceb2)=>{for(var _0x1a342a=_0x50ceb2>0x1?void 0x0:_0x50ceb2?G(_0x11234b,_0x57108b):_0x11234b,_0x2ac783=_0xf62892['length']-0x1,_0x8569e4;_0x2ac783>=0x0;_0x2ac783--)(_0x8569e4=_0xf62892[_0x2ac783])&&(_0x1a342a=(_0x50ceb2?_0x8569e4(_0x11234b,_0x57108b,_0x1a342a):_0x8569e4(_0x1a342a))||_0x1a342a);return _0x50ceb2&&_0x1a342a&&Y(_0x11234b,_0x57108b,_0x1a342a),_0x1a342a;},p=(_0xceccc0,_0x4b08be)=>(_0x4932b7,_0x3dba15)=>_0x4b08be(_0x4932b7,_0x3dba15,_0xceccc0);function J(_0x5de349,_0x217fe4){const _0x19ffdb=_0x62ceb6,_0x390697=_0x5de349[_0x19ffdb(0x14d)][0x0];return{..._0x217fe4,'id':_0x390697[_0x19ffdb(0x16c)],'resolved':_0x5de349['solved']===0x1,'dT':g(_0x390697['createTimestamp']),'personId':_0x390697[_0x19ffdb(0x197)],'threadId':_0x390697['threadId']};}function F(_0x5cae52,_0x25a358,_0x55e67f){const _0x328e8b=_0x62ceb6;var _0x4c5915,_0x4bc931;if(((_0x4bc931=(_0x4c5915=_0x5cae52==null?void 0x0:_0x5cae52[_0x328e8b(0x14d)])==null?void 0x0:_0x4c5915['length'])!=null?_0x4bc931:0x0)>0x0){const _0x1f1b32=(_0x4aebec,_0x5e26e4)=>({'id':_0x4aebec[_0x328e8b(0x16c)],'threadId':_0x4aebec[_0x328e8b(0x166)],'dT':g(_0x4aebec['createTimestamp']),'personId':_0x4aebec[_0x328e8b(0x197)],'resolved':_0x5cae52[_0x328e8b(0x122)]===I[_0x328e8b(0x15d)],'unitId':_0x25a358,'subUnitId':_0x55e67f,'text':JSON[_0x328e8b(0x12c)](_0x4aebec['content']),'parentId':_0x5e26e4}),_0x57818c=_0x1f1b32(_0x5cae52[_0x328e8b(0x14d)][0x0]);return{..._0x57818c,'children':_0x5cae52[_0x328e8b(0x14d)]['slice'](0x1)['map'](_0x2514d5=>_0x1f1b32(_0x2514d5,_0x57818c['id']))};}return null;}let f=class{constructor(_0x500b5d,_0x2510e4,_0x476a94,_0x419272){const _0x5da5a4=_0x62ceb6;this[_0x5da5a4(0x151)]=_0x500b5d,this[_0x5da5a4(0x16e)]=_0x2510e4,this[_0x5da5a4(0x149)]=_0x476a94,this[_0x5da5a4(0x168)]=_0x419272;}async[_0x62ceb6(0x169)](_0x30611f){const _0x2ce108=_0x62ceb6;var _0x18e175,_0x24073f;const {parentId:_0x3be317,unitId:_0x2560f2,text:_0xe4036b,threadId:_0x1b39cd}=_0x30611f,_0xeb417f=(_0x24073f=(_0x18e175=_0xe4036b['customRanges'])==null?void 0x0:_0x18e175[_0x2ce108(0x136)](_0x3fc155=>_0x3fc155['rangeType']===c['CustomRangeType'][_0x2ce108(0x164)])[_0x2ce108(0x15f)](_0x5f012d=>_0x5f012d[_0x2ce108(0x11f)]))!=null?_0x24073f:[],_0x1af758=JSON[_0x2ce108(0x163)](_0xe4036b),_0xbb3d35=(await this[_0x2ce108(0x149)][_0x2ce108(0x159)](_0x2560f2))['getMemberID']();if(_0x3be317){const _0x153df9={'memberId':_0xbb3d35,'unitId':_0x2560f2,'content':_0x1af758,'mention':_0xeb417f,'threadId':_0x1b39cd},_0x37470f=(await this[_0x2ce108(0x151)][_0x2ce108(0x18d)]('/universer-api/comment/unit/'+_0x2560f2+'/reply',{'body':_0x153df9}))[_0x2ce108(0x158)]['reply'];return{..._0x30611f,'id':_0x37470f['replyId'],'dT':c[_0x2ce108(0x160)](+_0x37470f['createTimestamp'])[_0x2ce108(0x161)](_0x2ce108(0x19c)),'personId':_0x37470f[_0x2ce108(0x197)]};}else{const _0x483bdd={'memberId':_0xbb3d35,'unitId':_0x2560f2,'content':_0x1af758,'mention':_0xeb417f},_0x322775=await this[_0x2ce108(0x151)][_0x2ce108(0x18d)](_0x2ce108(0x186)+_0x2560f2+'/add',{'body':_0x483bdd});return J(_0x322775[_0x2ce108(0x158)][_0x2ce108(0x139)],_0x30611f);}}async[_0x62ceb6(0x182)](_0x4b999b){const _0x27b045=_0x62ceb6;var _0x2955f2,_0x4ae553;const {text:_0x22a9e5,unitId:_0x4a6214}=_0x4b999b,_0x2d2c81=(_0x4ae553=(_0x2955f2=_0x22a9e5['customRanges'])==null?void 0x0:_0x2955f2[_0x27b045(0x136)](_0x5f40e3=>_0x5f40e3[_0x27b045(0x16a)]===c[_0x27b045(0x18c)][_0x27b045(0x164)])['map'](_0x25e3ed=>_0x25e3ed['rangeId']))!=null?_0x4ae553:[],_0x2faeed=JSON[_0x27b045(0x163)](_0x22a9e5),_0x193275=_0x4b999b[_0x27b045(0x166)],_0x3189c3=_0x4b999b['id'],_0x1cdf7a={'memberId':(await this[_0x27b045(0x149)][_0x27b045(0x159)](_0x4a6214))[_0x27b045(0x18f)](),'unitId':_0x4a6214,'threadId':_0x193275,'mention':_0x2d2c81,'content':_0x2faeed,'replyId':_0x3189c3},_0x1b677d=await this['_httpService']['post']('/universer-api/comment/unit/'+_0x4a6214+_0x27b045(0x185),{'body':_0x1cdf7a});return!_0x1b677d[_0x27b045(0x158)]['error']||_0x1b677d[_0x27b045(0x158)][_0x27b045(0x120)][_0x27b045(0x171)]===0x1;}async[_0x62ceb6(0x13e)](_0x3f5bf3){const _0x4d4241=_0x62ceb6,{unitId:_0x505e56}=_0x3f5bf3,_0x38b072=_0x3f5bf3[_0x4d4241(0x166)],_0x268d1d={'memberId':this[_0x4d4241(0x16e)]['getCurrentUser']()[_0x4d4241(0x172)],'unitId':_0x505e56,'threadId':_0x38b072,'solved':_0x3f5bf3[_0x4d4241(0x141)]?I[_0x4d4241(0x15d)]:I[_0x4d4241(0x137)]},_0x352f07=await this[_0x4d4241(0x151)][_0x4d4241(0x18d)]('/universer-api/comment/unit/'+_0x505e56+'/solved',{'body':_0x268d1d});return!_0x352f07['body']['error']||_0x352f07[_0x4d4241(0x158)][_0x4d4241(0x120)][_0x4d4241(0x171)]===0x1;}async[_0x62ceb6(0x188)](_0x2f1a92,_0x24c3a6,_0x163c54,_0xda98a0){const _0x7e7043=_0x62ceb6,_0x18849f={'memberId':(await this['_sessionService'][_0x7e7043(0x159)](_0x2f1a92))[_0x7e7043(0x18f)](),'threadId':_0x163c54,'replyId':_0xda98a0,'unitId':_0x2f1a92},_0xa5dfc5=await this[_0x7e7043(0x151)][_0x7e7043(0x18d)]('/universer-api/comment/unit/'+_0x2f1a92+_0x7e7043(0x189),{'body':_0x18849f});return!_0xa5dfc5[_0x7e7043(0x158)][_0x7e7043(0x120)]||_0xa5dfc5[_0x7e7043(0x158)][_0x7e7043(0x120)]['code']===0x1;}async[_0x62ceb6(0x135)](_0x158f53,_0x59d129,_0x3a9fac){const _0x4ee8ec=_0x62ceb6,_0x2a4788={'unitId':_0x158f53,'threadId':_0x3a9fac},_0x5536b0=await this[_0x4ee8ec(0x151)][_0x4ee8ec(0x18d)](_0x4ee8ec(0x186)+_0x158f53+_0x4ee8ec(0x17a),{'body':_0x2a4788}),_0x1e38ed=_0x3a9fac[_0x4ee8ec(0x15f)](_0x4c2527=>F(_0x5536b0[_0x4ee8ec(0x158)][_0x4ee8ec(0x17e)][_0x4c2527],_0x158f53,_0x59d129))['filter'](Boolean);return Object[_0x4ee8ec(0x170)](_0x5536b0[_0x4ee8ec(0x158)][_0x4ee8ec(0x18e)])[_0x4ee8ec(0x143)](_0x55a871=>{const _0x1dc05e=_0x4ee8ec;this['_userService'][_0x1dc05e(0x13c)](_0x55a871);}),_0x1e38ed;}['saveCommentToSnapshot'](_0x52871c){const _0x358329=_0x62ceb6;return{'id':_0x52871c['id'],'threadId':_0x52871c[_0x358329(0x166)],'ref':_0x52871c[_0x358329(0x175)]};}};f=H([p(0x0,c['Inject'](P[_0x62ceb6(0x15e)])),p(0x1,c[_0x62ceb6(0x180)](c[_0x62ceb6(0x16d)])),p(0x2,c[_0x62ceb6(0x180)](C[_0x62ceb6(0x173)])),p(0x3,c[_0x62ceb6(0x180)](c[_0x62ceb6(0x155)]))],f);var L=Object[_0x62ceb6(0x162)],Z=Object[_0x62ceb6(0x140)],W=(_0x52bbe6,_0x40e562,_0x2e60e1,_0x503642)=>{const _0x8d516f=_0x62ceb6;for(var _0x5a7305=_0x503642>0x1?void 0x0:_0x503642?Z(_0x40e562,_0x2e60e1):_0x40e562,_0x4fc7b5=_0x52bbe6[_0x8d516f(0x148)]-0x1,_0x1c5542;_0x4fc7b5>=0x0;_0x4fc7b5--)(_0x1c5542=_0x52bbe6[_0x4fc7b5])&&(_0x5a7305=(_0x503642?_0x1c5542(_0x40e562,_0x2e60e1,_0x5a7305):_0x1c5542(_0x5a7305))||_0x5a7305);return _0x503642&&_0x5a7305&&L(_0x40e562,_0x2e60e1,_0x5a7305),_0x5a7305;},D=(_0x25d26e,_0x1dc264)=>(_0x1bda4d,_0x251784)=>_0x1dc264(_0x1bda4d,_0x251784,_0x25d26e);let b=class extends c[_0x62ceb6(0x132)]{constructor(_0x549eb5,_0x7b10a1){const _0x3c7426=_0x62ceb6;super(),this[_0x3c7426(0x123)]=_0x549eb5,this[_0x3c7426(0x124)]=_0x7b10a1,this[_0x3c7426(0x178)]();}[_0x62ceb6(0x178)](){const _0x4b9122=_0x62ceb6;this[_0x4b9122(0x123)][_0x4b9122(0x127)]=this[_0x4b9122(0x124)],this['_threadCommentDataSourceService'][_0x4b9122(0x12a)]=!0x1;}};b=W([D(0x0,y[_0x62ceb6(0x134)]),D(0x1,c[_0x62ceb6(0x180)](f))],b);var M=Object[_0x62ceb6(0x162)],B=Object[_0x62ceb6(0x140)],K=(_0x4fb96c,_0x370838,_0x10ab62)=>_0x370838 in _0x4fb96c?M(_0x4fb96c,_0x370838,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10ab62}):_0x4fb96c[_0x370838]=_0x10ab62,V=(_0x22d51d,_0x1c284c,_0x114319,_0x2e7e1f)=>{const _0x23c285=_0x62ceb6;for(var _0x30cf57=_0x2e7e1f>0x1?void 0x0:_0x2e7e1f?B(_0x1c284c,_0x114319):_0x1c284c,_0x2da06c=_0x22d51d[_0x23c285(0x148)]-0x1,_0xd413a2;_0x2da06c>=0x0;_0x2da06c--)(_0xd413a2=_0x22d51d[_0x2da06c])&&(_0x30cf57=(_0x2e7e1f?_0xd413a2(_0x1c284c,_0x114319,_0x30cf57):_0xd413a2(_0x30cf57))||_0x30cf57);return _0x2e7e1f&&_0x30cf57&&M(_0x1c284c,_0x114319,_0x30cf57),_0x30cf57;},O=(_0xd0ea4d,_0x42eea2)=>(_0x301c88,_0x4c8e07)=>_0x42eea2(_0x301c88,_0x4c8e07,_0xd0ea4d),j=(_0x1d2b8a,_0x290d21,_0xc3242)=>K(_0x1d2b8a,typeof _0x290d21!=_0x62ceb6(0x198)?_0x290d21+'':_0x290d21,_0xc3242);exports[_0x62ceb6(0x167)]=class extends c[_0x62ceb6(0x13b)]{constructor(_0x2c1d35=x,_0x3d3ed1,_0x38b18c){const _0x104c60=_0x62ceb6;super(),this[_0x104c60(0x12d)]=_0x2c1d35,this[_0x104c60(0x168)]=_0x3d3ed1,this[_0x104c60(0x130)]=_0x38b18c;const {..._0x31f12e}=this['_config'];this[_0x104c60(0x130)][_0x104c60(0x187)](A,_0x31f12e);}[_0x62ceb6(0x126)](){const _0x30fdf9=_0x62ceb6;[[f],[b],[S]][_0x30fdf9(0x143)](_0x404171=>{const _0x22c0b2=_0x30fdf9;this[_0x22c0b2(0x168)][_0x22c0b2(0x14b)](_0x404171);});}[_0x62ceb6(0x150)](){const _0xae5713=_0x62ceb6;this['_injector'][_0xae5713(0x14a)](b),this[_0xae5713(0x168)][_0xae5713(0x14a)](S);}},j(exports[_0x62ceb6(0x167)],_0x62ceb6(0x19a),U),j(exports[_0x62ceb6(0x167)],_0x62ceb6(0x133),c[_0x62ceb6(0x14f)][_0x62ceb6(0x12b)]),exports[_0x62ceb6(0x167)]=V([c[_0x62ceb6(0x18a)](T[_0x62ceb6(0x192)],C[_0x62ceb6(0x184)],N[_0x62ceb6(0x183)]),O(0x1,c[_0x62ceb6(0x180)](c[_0x62ceb6(0x155)])),O(0x2,c['IConfigService'])],exports['UniverThreadCommentDataSourcePlugin']);
1
+ 'use strict';const _0x176382=_0x31ee;(function(_0x28d792,_0x37076c){const _0x378d7f=_0x31ee,_0xbb233e=_0x28d792();while(!![]){try{const _0x36a243=-parseInt(_0x378d7f(0x1b2))/0x1*(parseInt(_0x378d7f(0x209))/0x2)+-parseInt(_0x378d7f(0x1ee))/0x3*(parseInt(_0x378d7f(0x1cb))/0x4)+parseInt(_0x378d7f(0x1c4))/0x5*(parseInt(_0x378d7f(0x1ba))/0x6)+parseInt(_0x378d7f(0x1b0))/0x7+parseInt(_0x378d7f(0x1d5))/0x8+parseInt(_0x378d7f(0x1b7))/0x9+-parseInt(_0x378d7f(0x1fa))/0xa;if(_0x36a243===_0x37076c)break;else _0xbb233e['push'](_0xbb233e['shift']());}catch(_0x2362b0){_0xbb233e['push'](_0xbb233e['shift']());}}}(_0x3c03,0xab063));Object[_0x176382(0x1e7)](exports,Symbol['toStringTag'],{'value':_0x176382(0x1b5)});const C=require(_0x176382(0x1fd)),N=require('@univerjs-pro/license'),c=require(_0x176382(0x1f5)),T=require(_0x176382(0x200)),y=require('@univerjs/thread-comment'),w=require('rxjs'),P=require(_0x176382(0x1e9)),U=_0x176382(0x1ff);function _0x3c03(){const _0x3db694=['_initDataSource','ThreadCommentModel','requireSession','_threadCommentModel','forEach','parse','symbol','length','_config','6806303SKxiBW','_commentService','22405jhpTRi','UniverInstanceType','_httpService','Module','commentUpdate$','3947058LfPDBJ','stringify','pipe','30mbNipu','parentId','CommentService','dayjs','add','size','Inject','thread-comment-data-source.config','_userService','_initUserSync','714830AQLoKk','UniverCollaborationClientPlugin','/delete','replyId','content','_init','deleteComment','34996tAJeKV','HTTPService','UNIVER_UNKNOWN','map','ref','code','error','COMMENT','/solved','onStarting','4643240WrTckA','listComments','Solved','/edit','slice','Add','createTimestamp','payload','post','_threadCommentDataSourceService','OpenOrReOpen','root','/universer-api/comment/unit/','disposeWithMe','customRanges','filter','UserManagerService','YYYY/MM/DD\x20HH:mm','defineProperty','userId','@univerjs/network','DependentOn','delete','saveCommentToSnapshot','addUser','69KYnLGB','IThreadCommentDataSourceService','Plugin','/add','UniverThreadCommentDataSourcePlugin','/reply','users','@univerjs/core','Injector','CustomRangeType','type','unitId','17819790MSymRn','threadId','user','@univerjs-pro/collaboration-client','getOwnPropertyDescriptor','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','@univerjs/thread-comment-ui','CollaborationSessionService','find','_sessionService','getMemberID','replies','get','format','updateComment','2VazJaR','/universer-api/user/list','Edit','rangeType','_threadCommentDataSource','Delete','Reply','dataSource','UniverThreadCommentUIPlugin','resolveComment','Disposable','body','setConfig','Solve','_injector','Unknown','UNRECOGNIZED','subscribe','userID','syncUpdateMutationToColla','getUser','comment','reply','IConfigService','pluginName','_configService','solved','getCurrentUser'];_0x3c03=function(){return _0x3db694;};return _0x3c03();}var I=(_0x7a71aa=>(_0x7a71aa[_0x7a71aa[_0x176382(0x1df)]=0x0]='OpenOrReOpen',_0x7a71aa[_0x7a71aa[_0x176382(0x1d7)]=0x1]=_0x176382(0x1d7),_0x7a71aa[_0x7a71aa[_0x176382(0x19b)]=-0x1]=_0x176382(0x19b),_0x7a71aa))(I||{}),v=(_0x59b0c0=>(_0x59b0c0[_0x59b0c0[_0x176382(0x19a)]=0x0]=_0x176382(0x19a),_0x59b0c0[_0x59b0c0[_0x176382(0x1da)]=0x1]=_0x176382(0x1da),_0x59b0c0[_0x59b0c0[_0x176382(0x20f)]=0x2]='Reply',_0x59b0c0[_0x59b0c0[_0x176382(0x20b)]=0x3]=_0x176382(0x20b),_0x59b0c0[_0x59b0c0['Delete']=0x4]=_0x176382(0x20e),_0x59b0c0[_0x59b0c0[_0x176382(0x198)]=0x5]=_0x176382(0x198),_0x59b0c0[_0x59b0c0[_0x176382(0x19b)]=-0x1]=_0x176382(0x19b),_0x59b0c0))(v||{});const g=_0x39cb2e=>c['dayjs'](new Date(+_0x39cb2e))[_0x176382(0x207)](_0x176382(0x1e6)),R=async(_0x14cc93,_0x4506f4)=>{const _0x584977=_0x176382,_0x158437=_0x14cc93[_0x584977(0x206)](c['UserManagerService']),_0x38e2f4=_0x14cc93[_0x584977(0x206)](P[_0x584977(0x1cc)]);_0x4506f4[_0x584977(0x1ab)](_0x1432a6=>{const _0x57266a=_0x584977;_0x158437[_0x57266a(0x19f)](_0x1432a6)&&_0x4506f4[_0x57266a(0x1eb)](_0x1432a6);}),_0x4506f4[_0x584977(0x1bf)]&&(await _0x38e2f4['get'](_0x584977(0x20a),{'params':{'userIDs':[..._0x4506f4]}}))[_0x584977(0x196)]['users']['forEach'](_0xdeb214=>{const _0x77c909=_0x584977;_0xdeb214&&_0x158437[_0x77c909(0x1ed)](_0xdeb214);});};var $=Object[_0x176382(0x1e7)],E=Object[_0x176382(0x1fe)],q=(_0x1c3ea7,_0x4d829e,_0xcb342a,_0x4b2782)=>{for(var _0x2af49c=_0x4b2782>0x1?void 0x0:_0x4b2782?E(_0x4d829e,_0xcb342a):_0x4d829e,_0x29c89d=_0x1c3ea7['length']-0x1,_0x215df6;_0x29c89d>=0x0;_0x29c89d--)(_0x215df6=_0x1c3ea7[_0x29c89d])&&(_0x2af49c=(_0x4b2782?_0x215df6(_0x4d829e,_0xcb342a,_0x2af49c):_0x215df6(_0x2af49c))||_0x2af49c);return _0x4b2782&&_0x2af49c&&$(_0x4d829e,_0xcb342a,_0x2af49c),_0x2af49c;},_=(_0x1b4357,_0x4633fa)=>(_0x10e722,_0x386b26)=>_0x4633fa(_0x10e722,_0x386b26,_0x1b4357);let S=class extends c['Disposable']{constructor(_0x175d25,_0x1601af,_0x1db807,_0xdda532){const _0xd85450=_0x176382;super(),this[_0xd85450(0x1b1)]=_0x175d25,this[_0xd85450(0x1aa)]=_0x1601af,this['_userService']=_0x1db807,this[_0xd85450(0x199)]=_0xdda532,this[_0xd85450(0x1c9)](),this[_0xd85450(0x1c3)]();}[_0x176382(0x1c3)](){const _0x552186=_0x176382;this[_0x552186(0x1e2)](this['_threadCommentModel'][_0x552186(0x1b6)][_0x552186(0x1b9)](w['bufferTime'](0x10))['subscribe'](_0x3fbd8a=>{const _0x3e0eb5=_0x552186,_0x31ea3d=new Set();_0x3fbd8a[_0x3e0eb5(0x1ab)](_0x4b3e18=>{const _0x232311=_0x3e0eb5;switch(_0x4b3e18[_0x232311(0x1f8)]){case'add':{const _0xd620e1=_0x4b3e18[_0x232311(0x1dc)]['personId'];_0x31ea3d[_0x232311(0x1be)](_0xd620e1);break;}}}),R(this['_injector'],_0x31ea3d);}));}[_0x176382(0x1c9)](){const _0x2bc014=_0x176382;this[_0x2bc014(0x1e2)](this[_0x2bc014(0x1b1)]['commentUpdate$'][_0x2bc014(0x19c)](async _0xd7cdf7=>{const _0x5100a2=_0x2bc014;var _0x17796f,_0x1b139c,_0xe3d01a,_0x2ac131;const _0x241a0c=(_0x17796f=this['_threadCommentModel']['getUnit'](_0xd7cdf7[_0x5100a2(0x1f9)])['find'](_0x1a99a1=>_0x1a99a1[_0x5100a2(0x1fb)]===_0xd7cdf7[_0x5100a2(0x1fb)]))==null?void 0x0:_0x17796f[_0x5100a2(0x1e0)];if(!_0x241a0c)return;const {unitId:_0x16a09b,subUnitId:_0x2ac58e}=_0x241a0c;switch(_0xd7cdf7[_0x5100a2(0x1fc)]&&this[_0x5100a2(0x1c2)][_0x5100a2(0x1ed)](_0xd7cdf7[_0x5100a2(0x1fc)]),_0xd7cdf7[_0x5100a2(0x1f8)]){case v[_0x5100a2(0x1da)]:break;case v[_0x5100a2(0x20f)]:{this[_0x5100a2(0x1aa)]['addComment'](_0x16a09b,_0x2ac58e,{'unitId':_0x16a09b,'subUnitId':_0x2ac58e,'ref':'','id':_0xd7cdf7[_0x5100a2(0x1c7)],'dT':g(+_0xd7cdf7['createTimestamp']),'threadId':_0xd7cdf7[_0x5100a2(0x1fb)],'personId':(_0xe3d01a=(_0x1b139c=_0xd7cdf7[_0x5100a2(0x1fc)])==null?void 0x0:_0x1b139c[_0x5100a2(0x19d)])!=null?_0xe3d01a:_0xd7cdf7[_0x5100a2(0x1e8)],'text':JSON[_0x5100a2(0x1ac)](_0xd7cdf7[_0x5100a2(0x1c8)]),'parentId':_0x241a0c['id']});break;}case v[_0x5100a2(0x20e)]:{const _0x4dfc3f=this[_0x5100a2(0x1aa)]['getComment'](_0x16a09b,_0x2ac58e,_0xd7cdf7[_0x5100a2(0x1c7)]);_0x4dfc3f&&_0x4dfc3f[_0x5100a2(0x1bb)]&&this[_0x5100a2(0x1aa)][_0x5100a2(0x1ca)](_0x16a09b,_0x2ac58e,_0xd7cdf7['replyId']);break;}case v[_0x5100a2(0x20b)]:{this['_threadCommentModel']['updateComment'](_0x16a09b,_0x2ac58e,{'commentId':_0xd7cdf7[_0x5100a2(0x1c7)],'text':JSON[_0x5100a2(0x1ac)](_0xd7cdf7['content'])});break;}case v[_0x5100a2(0x198)]:{const _0x21b6b7=(_0x2ac131=this['_threadCommentModel']['getUnit'](_0xd7cdf7[_0x5100a2(0x1f9)])[_0x5100a2(0x202)](_0x2cef8c=>_0x2cef8c[_0x5100a2(0x1fb)]===_0xd7cdf7[_0x5100a2(0x1fb)]))==null?void 0x0:_0x2ac131[_0x5100a2(0x1e0)];_0x21b6b7&&this[_0x5100a2(0x1aa)]['resolveComment'](_0x16a09b,_0x2ac58e,_0x21b6b7['id'],_0xd7cdf7[_0x5100a2(0x1a5)]===I[_0x5100a2(0x1d7)]);break;}}}));}};S=q([_(0x0,c[_0x176382(0x1c0)](C[_0x176382(0x1bc)])),_(0x1,c[_0x176382(0x1c0)](y[_0x176382(0x1a8)])),_(0x2,c[_0x176382(0x1c0)](c[_0x176382(0x1e5)])),_(0x3,c[_0x176382(0x1c0)](c[_0x176382(0x1f6)]))],S);const A=_0x176382(0x1c1),x={};var Y=Object[_0x176382(0x1e7)],G=Object[_0x176382(0x1fe)],H=(_0x424510,_0x68713b,_0x5b246d,_0x21c870)=>{const _0x388d22=_0x176382;for(var _0x3df256=_0x21c870>0x1?void 0x0:_0x21c870?G(_0x68713b,_0x5b246d):_0x68713b,_0x3341cc=_0x424510[_0x388d22(0x1ae)]-0x1,_0xaa4a58;_0x3341cc>=0x0;_0x3341cc--)(_0xaa4a58=_0x424510[_0x3341cc])&&(_0x3df256=(_0x21c870?_0xaa4a58(_0x68713b,_0x5b246d,_0x3df256):_0xaa4a58(_0x3df256))||_0x3df256);return _0x21c870&&_0x3df256&&Y(_0x68713b,_0x5b246d,_0x3df256),_0x3df256;},p=(_0xf05b81,_0x5b5640)=>(_0x5401e3,_0x223042)=>_0x5b5640(_0x5401e3,_0x223042,_0xf05b81);function _0x31ee(_0x3b6507,_0x173a53){const _0x3c03c7=_0x3c03();return _0x31ee=function(_0x31eec4,_0x35897b){_0x31eec4=_0x31eec4-0x192;let _0x46018c=_0x3c03c7[_0x31eec4];return _0x46018c;},_0x31ee(_0x3b6507,_0x173a53);}function J(_0x551ae8,_0x4c1663){const _0x39adbd=_0x176382,_0x5aa953=_0x551ae8[_0x39adbd(0x205)][0x0];return{..._0x4c1663,'id':_0x5aa953[_0x39adbd(0x1c7)],'resolved':_0x551ae8[_0x39adbd(0x1a5)]===0x1,'dT':g(_0x5aa953[_0x39adbd(0x1db)]),'personId':_0x5aa953[_0x39adbd(0x1e8)],'threadId':_0x5aa953[_0x39adbd(0x1fb)]};}function F(_0x3d6869,_0x21a94a,_0x44aadc){const _0x53b5de=_0x176382;var _0x159c1d,_0x1749b2;if(((_0x1749b2=(_0x159c1d=_0x3d6869==null?void 0x0:_0x3d6869['replies'])==null?void 0x0:_0x159c1d[_0x53b5de(0x1ae)])!=null?_0x1749b2:0x0)>0x0){const _0x52c3dd=(_0x873412,_0x58c7f8)=>({'id':_0x873412['replyId'],'threadId':_0x873412[_0x53b5de(0x1fb)],'dT':g(_0x873412[_0x53b5de(0x1db)]),'personId':_0x873412[_0x53b5de(0x1e8)],'resolved':_0x3d6869[_0x53b5de(0x1a5)]===I['Solved'],'unitId':_0x21a94a,'subUnitId':_0x44aadc,'text':JSON[_0x53b5de(0x1ac)](_0x873412[_0x53b5de(0x1c8)]),'parentId':_0x58c7f8}),_0x52c0f8=_0x52c3dd(_0x3d6869[_0x53b5de(0x205)][0x0]);return{..._0x52c0f8,'children':_0x3d6869[_0x53b5de(0x205)][_0x53b5de(0x1d9)](0x1)[_0x53b5de(0x1ce)](_0x300edc=>_0x52c3dd(_0x300edc,_0x52c0f8['id']))};}return null;}let f=class{constructor(_0x2a658c,_0x2eeed5,_0x7a8576,_0x4e785b){const _0x1adaf7=_0x176382;this[_0x1adaf7(0x1b4)]=_0x2a658c,this[_0x1adaf7(0x1c2)]=_0x2eeed5,this[_0x1adaf7(0x203)]=_0x7a8576,this[_0x1adaf7(0x199)]=_0x4e785b;}async['addComment'](_0x364750){const _0x54a4cb=_0x176382;var _0x165d95,_0x179fe8;const {parentId:_0x31a8cd,unitId:_0x33b8b8,text:_0x32c536,threadId:_0x3b2fa1}=_0x364750,_0x140f9e=(_0x179fe8=(_0x165d95=_0x32c536[_0x54a4cb(0x1e3)])==null?void 0x0:_0x165d95['filter'](_0x2498cf=>_0x2498cf[_0x54a4cb(0x20c)]===c[_0x54a4cb(0x1f7)][_0x54a4cb(0x1d2)])[_0x54a4cb(0x1ce)](_0x3b5a40=>_0x3b5a40['rangeId']))!=null?_0x179fe8:[],_0x2f1a7d=JSON[_0x54a4cb(0x1b8)](_0x32c536),_0x3244ca=(await this[_0x54a4cb(0x203)]['requireSession'](_0x33b8b8))[_0x54a4cb(0x204)]();if(_0x31a8cd){const _0x2f7493={'memberId':_0x3244ca,'unitId':_0x33b8b8,'content':_0x2f1a7d,'mention':_0x140f9e,'threadId':_0x3b2fa1},_0x424c59=(await this[_0x54a4cb(0x1b4)][_0x54a4cb(0x1dd)]('/universer-api/comment/unit/'+_0x33b8b8+_0x54a4cb(0x1f3),{'body':_0x2f7493}))[_0x54a4cb(0x196)][_0x54a4cb(0x1a1)];return{..._0x364750,'id':_0x424c59[_0x54a4cb(0x1c7)],'dT':c[_0x54a4cb(0x1bd)](+_0x424c59[_0x54a4cb(0x1db)])[_0x54a4cb(0x207)](_0x54a4cb(0x1e6)),'personId':_0x424c59['userId']};}else{const _0x217335={'memberId':_0x3244ca,'unitId':_0x33b8b8,'content':_0x2f1a7d,'mention':_0x140f9e},_0x1da63a=await this['_httpService']['post'](_0x54a4cb(0x1e1)+_0x33b8b8+_0x54a4cb(0x1f1),{'body':_0x217335});return J(_0x1da63a['body'][_0x54a4cb(0x1a0)],_0x364750);}}async[_0x176382(0x208)](_0x345bec){const _0x235f32=_0x176382;var _0x186618,_0xf5adf7;const {text:_0x3dbe03,unitId:_0x2b287c}=_0x345bec,_0x56c668=(_0xf5adf7=(_0x186618=_0x3dbe03['customRanges'])==null?void 0x0:_0x186618[_0x235f32(0x1e4)](_0x3e91ed=>_0x3e91ed[_0x235f32(0x20c)]===c[_0x235f32(0x1f7)][_0x235f32(0x1d2)])[_0x235f32(0x1ce)](_0x2e1a22=>_0x2e1a22['rangeId']))!=null?_0xf5adf7:[],_0x30e185=JSON[_0x235f32(0x1b8)](_0x3dbe03),_0x35349c=_0x345bec[_0x235f32(0x1fb)],_0x2fe0e4=_0x345bec['id'],_0x2e68d1={'memberId':(await this[_0x235f32(0x203)]['requireSession'](_0x2b287c))[_0x235f32(0x204)](),'unitId':_0x2b287c,'threadId':_0x35349c,'mention':_0x56c668,'content':_0x30e185,'replyId':_0x2fe0e4},_0x486dea=await this[_0x235f32(0x1b4)]['post'](_0x235f32(0x1e1)+_0x2b287c+_0x235f32(0x1d8),{'body':_0x2e68d1});return!_0x486dea[_0x235f32(0x196)][_0x235f32(0x1d1)]||_0x486dea[_0x235f32(0x196)][_0x235f32(0x1d1)]['code']===0x1;}async[_0x176382(0x194)](_0x112989){const _0xf0d1a=_0x176382,{unitId:_0x554896}=_0x112989,_0x5f3cc1=_0x112989['threadId'],_0x53e8c7={'memberId':this[_0xf0d1a(0x1c2)][_0xf0d1a(0x1a6)]()[_0xf0d1a(0x19d)],'unitId':_0x554896,'threadId':_0x5f3cc1,'solved':_0x112989['resolved']?I[_0xf0d1a(0x1d7)]:I[_0xf0d1a(0x1df)]},_0x131bdd=await this[_0xf0d1a(0x1b4)][_0xf0d1a(0x1dd)](_0xf0d1a(0x1e1)+_0x554896+_0xf0d1a(0x1d3),{'body':_0x53e8c7});return!_0x131bdd['body']['error']||_0x131bdd['body'][_0xf0d1a(0x1d1)][_0xf0d1a(0x1d0)]===0x1;}async['deleteComment'](_0x444407,_0xeef82c,_0x37984f,_0x2f46f7){const _0x51fa2f=_0x176382,_0x1dc243={'memberId':(await this[_0x51fa2f(0x203)][_0x51fa2f(0x1a9)](_0x444407))['getMemberID'](),'threadId':_0x37984f,'replyId':_0x2f46f7,'unitId':_0x444407},_0xf97098=await this[_0x51fa2f(0x1b4)][_0x51fa2f(0x1dd)](_0x51fa2f(0x1e1)+_0x444407+_0x51fa2f(0x1c6),{'body':_0x1dc243});return!_0xf97098[_0x51fa2f(0x196)]['error']||_0xf97098[_0x51fa2f(0x196)][_0x51fa2f(0x1d1)][_0x51fa2f(0x1d0)]===0x1;}async[_0x176382(0x1d6)](_0x2f542c,_0x1a31c2,_0x33db28){const _0x145b90=_0x176382,_0x96fc0a={'unitId':_0x2f542c,'threadId':_0x33db28},_0x30e820=await this[_0x145b90(0x1b4)][_0x145b90(0x1dd)](_0x145b90(0x1e1)+_0x2f542c+'/list',{'body':_0x96fc0a}),_0x2783fb=_0x33db28[_0x145b90(0x1ce)](_0x4328c9=>F(_0x30e820[_0x145b90(0x196)]['comments'][_0x4328c9],_0x2f542c,_0x1a31c2))[_0x145b90(0x1e4)](Boolean);return Object['values'](_0x30e820[_0x145b90(0x196)][_0x145b90(0x1f4)])[_0x145b90(0x1ab)](_0x584025=>{const _0x3aa8cf=_0x145b90;this[_0x3aa8cf(0x1c2)][_0x3aa8cf(0x1ed)](_0x584025);}),_0x2783fb;}[_0x176382(0x1ec)](_0x432323){const _0x8837c4=_0x176382;return{'id':_0x432323['id'],'threadId':_0x432323[_0x8837c4(0x1fb)],'ref':_0x432323[_0x8837c4(0x1cf)]};}};f=H([p(0x0,c[_0x176382(0x1c0)](P[_0x176382(0x1cc)])),p(0x1,c['Inject'](c['UserManagerService'])),p(0x2,c[_0x176382(0x1c0)](C[_0x176382(0x201)])),p(0x3,c[_0x176382(0x1c0)](c[_0x176382(0x1f6)]))],f);var L=Object[_0x176382(0x1e7)],Z=Object[_0x176382(0x1fe)],W=(_0x38bffe,_0x4311e0,_0x1cacc3,_0x3899af)=>{const _0x1a216e=_0x176382;for(var _0x270580=_0x3899af>0x1?void 0x0:_0x3899af?Z(_0x4311e0,_0x1cacc3):_0x4311e0,_0x5aa062=_0x38bffe[_0x1a216e(0x1ae)]-0x1,_0x2936f9;_0x5aa062>=0x0;_0x5aa062--)(_0x2936f9=_0x38bffe[_0x5aa062])&&(_0x270580=(_0x3899af?_0x2936f9(_0x4311e0,_0x1cacc3,_0x270580):_0x2936f9(_0x270580))||_0x270580);return _0x3899af&&_0x270580&&L(_0x4311e0,_0x1cacc3,_0x270580),_0x270580;},D=(_0x1a56df,_0x9eee42)=>(_0x3d920c,_0xa68a9b)=>_0x9eee42(_0x3d920c,_0xa68a9b,_0x1a56df);let b=class extends c[_0x176382(0x195)]{constructor(_0x12db25,_0x4a487f){const _0x49ba08=_0x176382;super(),this[_0x49ba08(0x1de)]=_0x12db25,this[_0x49ba08(0x20d)]=_0x4a487f,this[_0x49ba08(0x1a7)]();}['_initDataSource'](){const _0x52f69a=_0x176382;this[_0x52f69a(0x1de)][_0x52f69a(0x192)]=this[_0x52f69a(0x20d)],this[_0x52f69a(0x1de)][_0x52f69a(0x19e)]=!0x1;}};b=W([D(0x0,y[_0x176382(0x1ef)]),D(0x1,c[_0x176382(0x1c0)](f))],b);var M=Object[_0x176382(0x1e7)],B=Object[_0x176382(0x1fe)],K=(_0x114fd5,_0x50f3bd,_0x264b32)=>_0x50f3bd in _0x114fd5?M(_0x114fd5,_0x50f3bd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x264b32}):_0x114fd5[_0x50f3bd]=_0x264b32,V=(_0x339b0a,_0x4275ef,_0x42d23a,_0xc99dab)=>{const _0x542119=_0x176382;for(var _0x2f7aca=_0xc99dab>0x1?void 0x0:_0xc99dab?B(_0x4275ef,_0x42d23a):_0x4275ef,_0x469105=_0x339b0a[_0x542119(0x1ae)]-0x1,_0x32a1d9;_0x469105>=0x0;_0x469105--)(_0x32a1d9=_0x339b0a[_0x469105])&&(_0x2f7aca=(_0xc99dab?_0x32a1d9(_0x4275ef,_0x42d23a,_0x2f7aca):_0x32a1d9(_0x2f7aca))||_0x2f7aca);return _0xc99dab&&_0x2f7aca&&M(_0x4275ef,_0x42d23a,_0x2f7aca),_0x2f7aca;},O=(_0xca3757,_0x54c2f3)=>(_0x56a6ed,_0x5ba9a2)=>_0x54c2f3(_0x56a6ed,_0x5ba9a2,_0xca3757),j=(_0x157a7e,_0x42d84a,_0x3d6d33)=>K(_0x157a7e,typeof _0x42d84a!=_0x176382(0x1ad)?_0x42d84a+'':_0x42d84a,_0x3d6d33);exports['UniverThreadCommentDataSourcePlugin']=class extends c[_0x176382(0x1f0)]{constructor(_0x310515=x,_0x471be9,_0x14c6f3){const _0x1b5576=_0x176382;super(),this['_config']=_0x310515,this[_0x1b5576(0x199)]=_0x471be9,this[_0x1b5576(0x1a4)]=_0x14c6f3;const {..._0x12229b}=this[_0x1b5576(0x1af)];this[_0x1b5576(0x1a4)][_0x1b5576(0x197)](A,_0x12229b);}[_0x176382(0x1d4)](){const _0x195e9d=_0x176382;[[f],[b],[S]][_0x195e9d(0x1ab)](_0x51f260=>{const _0xe11744=_0x195e9d;this[_0xe11744(0x199)]['add'](_0x51f260);});}['onReady'](){const _0x56da7f=_0x176382;this['_injector'][_0x56da7f(0x206)](b),this[_0x56da7f(0x199)][_0x56da7f(0x206)](S);}},j(exports['UniverThreadCommentDataSourcePlugin'],_0x176382(0x1a3),U),j(exports[_0x176382(0x1f2)],_0x176382(0x1f8),c[_0x176382(0x1b3)][_0x176382(0x1cd)]),exports['UniverThreadCommentDataSourcePlugin']=V([c[_0x176382(0x1ea)](T[_0x176382(0x193)],C[_0x176382(0x1c5)],N['UniverLicensePlugin']),O(0x1,c['Inject'](c[_0x176382(0x1f6)])),O(0x2,c[_0x176382(0x1a2)])],exports[_0x176382(0x1f2)]);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2ddb0c=_0x21cb;(function(_0x3c3ee3,_0x1e1803){const _0x3aa2e5=_0x21cb,_0x7ded75=_0x3c3ee3();while(!![]){try{const _0x50cb5c=parseInt(_0x3aa2e5(0xde))/0x1*(-parseInt(_0x3aa2e5(0x101))/0x2)+-parseInt(_0x3aa2e5(0xf7))/0x3*(parseInt(_0x3aa2e5(0xaf))/0x4)+parseInt(_0x3aa2e5(0x114))/0x5*(parseInt(_0x3aa2e5(0xd2))/0x6)+-parseInt(_0x3aa2e5(0x104))/0x7+parseInt(_0x3aa2e5(0xbb))/0x8+-parseInt(_0x3aa2e5(0x111))/0x9*(parseInt(_0x3aa2e5(0xb8))/0xa)+-parseInt(_0x3aa2e5(0x100))/0xb*(-parseInt(_0x3aa2e5(0xd3))/0xc);if(_0x50cb5c===_0x1e1803)break;else _0x7ded75['push'](_0x7ded75['shift']());}catch(_0x211b8){_0x7ded75['push'](_0x7ded75['shift']());}}}(_0x5ada,0x3353b));import{CommentService as _0x1e65e8,CollaborationSessionService as _0x38845f,UniverCollaborationClientPlugin as _0x175480}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x24581d}from'@univerjs-pro/license';import{dayjs as _0x1397e3,UserManagerService as _0x1e022a,Inject as _0x544645,Injector as _0x1595c4,Disposable as _0x1b9997,CustomRangeType as _0x38f205,UniverInstanceType as _0x50a45a,DependentOn as _0x5d7c72,Plugin as _0x37e752,IConfigService as _0x5d450f}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x353c8c}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x479ab0,IThreadCommentDataSourceService as _0x276efc}from'@univerjs/thread-comment';import{bufferTime as _0x288bc9}from'rxjs';import{HTTPService as _0x1efb70}from'@univerjs/network';const q='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var v=(_0x10c828=>(_0x10c828[_0x10c828['OpenOrReOpen']=0x0]=_0x2ddb0c(0xc8),_0x10c828[_0x10c828[_0x2ddb0c(0xbc)]=0x1]=_0x2ddb0c(0xbc),_0x10c828[_0x10c828['UNRECOGNIZED']=-0x1]=_0x2ddb0c(0xc3),_0x10c828))(v||{}),p=(_0x27b355=>(_0x27b355[_0x27b355[_0x2ddb0c(0x107)]=0x0]=_0x2ddb0c(0x107),_0x27b355[_0x27b355[_0x2ddb0c(0xc5)]=0x1]=_0x2ddb0c(0xc5),_0x27b355[_0x27b355['Reply']=0x2]='Reply',_0x27b355[_0x27b355[_0x2ddb0c(0xb0)]=0x3]=_0x2ddb0c(0xb0),_0x27b355[_0x27b355[_0x2ddb0c(0xe7)]=0x4]=_0x2ddb0c(0xe7),_0x27b355[_0x27b355[_0x2ddb0c(0xcf)]=0x5]=_0x2ddb0c(0xcf),_0x27b355[_0x27b355[_0x2ddb0c(0xc3)]=-0x1]=_0x2ddb0c(0xc3),_0x27b355))(p||{});function _0x21cb(_0x43add5,_0x5d0d0c){const _0x5adafd=_0x5ada();return _0x21cb=function(_0x21cbdb,_0x8faf49){_0x21cbdb=_0x21cbdb-0xae;let _0x597b02=_0x5adafd[_0x21cbdb];return _0x597b02;},_0x21cb(_0x43add5,_0x5d0d0c);}function _0x5ada(){const _0x12e40d=['onStarting','/solved','/edit','map','rangeType','Delete','pipe','pluginName','customRanges','/delete','_userService','getUnit','getMemberID','slice','_sessionService','solved','rangeId','addComment','COMMENT','disposeWithMe','_injector','3KrwdbH','parse','_config','size','getUser','setConfig','filter','_threadCommentDataSourceService','code','1342ROVFuB','8518WzbKYN','_configService','subscribe','1347388NRHmRY','deleteComment','user','Unknown','reply','YYYY/MM/DD\x20HH:mm','parentId','replies','_threadCommentDataSource','symbol','length','syncUpdateMutationToColla','comment','1959813klCrNj','thread-comment-data-source.config','threadId','1877065VyaoTQ','root','error','/universer-api/comment/unit/','_initDataSource','/add','UNIVER_UNKNOWN','1649236dKdblQ','Edit','post','_init','unitId','format','_initUserSync','userID','resolved','10BOhPUD','saveCommentToSnapshot','getComment','2895440ujUreC','Solved','add','_threadCommentModel','listComments','dataSource','defineProperty','type','UNRECOGNIZED','getCurrentUser','Add','find','_httpService','OpenOrReOpen','onReady','stringify','body','values','requireSession','commentUpdate$','Solve','updateComment','getOwnPropertyDescriptor','6VkjtCC','69276EEeXmK','forEach','userId','personId','content','/reply','_commentService','Reply','replyId','addUser','users','96ikEWMj','resolveComment','get','createTimestamp'];_0x5ada=function(){return _0x12e40d;};return _0x5ada();}const g=_0x1792b4=>_0x1397e3(new Date(+_0x1792b4))[_0x2ddb0c(0xb4)](_0x2ddb0c(0x109)),W=async(_0x43d984,_0x79e53e)=>{const _0x16981b=_0x2ddb0c,_0x2470bb=_0x43d984[_0x16981b(0xe0)](_0x1e022a),_0x4c34b5=_0x43d984[_0x16981b(0xe0)](_0x1efb70);_0x79e53e[_0x16981b(0xd4)](_0x2ddf4d=>{const _0xedc223=_0x16981b;_0x2470bb[_0xedc223(0xfb)](_0x2ddf4d)&&_0x79e53e['delete'](_0x2ddf4d);}),_0x79e53e[_0x16981b(0xfa)]&&(await _0x4c34b5['get']('/universer-api/user/list',{'params':{'userIDs':[..._0x79e53e]}}))[_0x16981b(0xcb)][_0x16981b(0xdd)][_0x16981b(0xd4)](_0x4c90a3=>{const _0x5452e1=_0x16981b;_0x4c90a3&&_0x2470bb[_0x5452e1(0xdc)](_0x4c90a3);});};var B=Object[_0x2ddb0c(0xc1)],K=Object[_0x2ddb0c(0xd1)],V=(_0x74a4c3,_0x5ab815,_0x2ec412,_0x4d4408)=>{for(var _0x23fcd4=_0x4d4408>0x1?void 0x0:_0x4d4408?K(_0x5ab815,_0x2ec412):_0x5ab815,_0x1d300e=_0x74a4c3['length']-0x1,_0x134de9;_0x1d300e>=0x0;_0x1d300e--)(_0x134de9=_0x74a4c3[_0x1d300e])&&(_0x23fcd4=(_0x4d4408?_0x134de9(_0x5ab815,_0x2ec412,_0x23fcd4):_0x134de9(_0x23fcd4))||_0x23fcd4);return _0x4d4408&&_0x23fcd4&&B(_0x5ab815,_0x2ec412,_0x23fcd4),_0x23fcd4;},_=(_0x2b840e,_0x3a3f51)=>(_0x4bf017,_0x251f81)=>_0x3a3f51(_0x4bf017,_0x251f81,_0x2b840e);let f=class extends _0x1b9997{constructor(_0x4ecc0f,_0xe5e77b,_0x531771,_0xd241e1){const _0x4e04c8=_0x2ddb0c;super(),this[_0x4e04c8(0xd9)]=_0x4ecc0f,this[_0x4e04c8(0xbe)]=_0xe5e77b,this[_0x4e04c8(0xec)]=_0x531771,this[_0x4e04c8(0xf6)]=_0xd241e1,this[_0x4e04c8(0xb2)](),this[_0x4e04c8(0xb5)]();}[_0x2ddb0c(0xb5)](){const _0x5a9896=_0x2ddb0c;this[_0x5a9896(0xf5)](this['_threadCommentModel'][_0x5a9896(0xce)][_0x5a9896(0xe8)](_0x288bc9(0x10))[_0x5a9896(0x103)](_0x1fcc55=>{const _0x3553d6=_0x5a9896,_0x3067ac=new Set();_0x1fcc55['forEach'](_0x56aee7=>{const _0x208b31=_0x21cb;switch(_0x56aee7[_0x208b31(0xc2)]){case _0x208b31(0xbd):{const _0x9e28d0=_0x56aee7['payload'][_0x208b31(0xd6)];_0x3067ac[_0x208b31(0xbd)](_0x9e28d0);break;}}}),W(this[_0x3553d6(0xf6)],_0x3067ac);}));}[_0x2ddb0c(0xb2)](){const _0x2e6b2e=_0x2ddb0c;this['disposeWithMe'](this[_0x2e6b2e(0xd9)][_0x2e6b2e(0xce)][_0x2e6b2e(0x103)](async _0x5e2bd7=>{const _0x2d144c=_0x2e6b2e;var _0x473a24,_0x39610f,_0xcb8a0a,_0x1598ec;const _0x1e46ef=(_0x473a24=this[_0x2d144c(0xbe)][_0x2d144c(0xed)](_0x5e2bd7[_0x2d144c(0xb3)])[_0x2d144c(0xc6)](_0x2f8efe=>_0x2f8efe[_0x2d144c(0x113)]===_0x5e2bd7['threadId']))==null?void 0x0:_0x473a24[_0x2d144c(0x115)];if(!_0x1e46ef)return;const {unitId:_0x3b2605,subUnitId:_0x5545a7}=_0x1e46ef;switch(_0x5e2bd7[_0x2d144c(0x106)]&&this[_0x2d144c(0xec)][_0x2d144c(0xdc)](_0x5e2bd7['user']),_0x5e2bd7[_0x2d144c(0xc2)]){case p['Add']:break;case p[_0x2d144c(0xda)]:{this[_0x2d144c(0xbe)][_0x2d144c(0xf3)](_0x3b2605,_0x5545a7,{'unitId':_0x3b2605,'subUnitId':_0x5545a7,'ref':'','id':_0x5e2bd7[_0x2d144c(0xdb)],'dT':g(+_0x5e2bd7[_0x2d144c(0xe1)]),'threadId':_0x5e2bd7[_0x2d144c(0x113)],'personId':(_0xcb8a0a=(_0x39610f=_0x5e2bd7['user'])==null?void 0x0:_0x39610f[_0x2d144c(0xb6)])!=null?_0xcb8a0a:_0x5e2bd7['userId'],'text':JSON[_0x2d144c(0xf8)](_0x5e2bd7[_0x2d144c(0xd7)]),'parentId':_0x1e46ef['id']});break;}case p[_0x2d144c(0xe7)]:{const _0x3b4511=this[_0x2d144c(0xbe)][_0x2d144c(0xba)](_0x3b2605,_0x5545a7,_0x5e2bd7[_0x2d144c(0xdb)]);_0x3b4511&&_0x3b4511[_0x2d144c(0x10a)]&&this[_0x2d144c(0xbe)][_0x2d144c(0x105)](_0x3b2605,_0x5545a7,_0x5e2bd7['replyId']);break;}case p[_0x2d144c(0xb0)]:{this['_threadCommentModel'][_0x2d144c(0xd0)](_0x3b2605,_0x5545a7,{'commentId':_0x5e2bd7[_0x2d144c(0xdb)],'text':JSON[_0x2d144c(0xf8)](_0x5e2bd7[_0x2d144c(0xd7)])});break;}case p[_0x2d144c(0xcf)]:{const _0x202477=(_0x1598ec=this[_0x2d144c(0xbe)][_0x2d144c(0xed)](_0x5e2bd7[_0x2d144c(0xb3)])['find'](_0x53564c=>_0x53564c[_0x2d144c(0x113)]===_0x5e2bd7['threadId']))==null?void 0x0:_0x1598ec['root'];_0x202477&&this[_0x2d144c(0xbe)][_0x2d144c(0xdf)](_0x3b2605,_0x5545a7,_0x202477['id'],_0x5e2bd7[_0x2d144c(0xf1)]===v['Solved']);break;}}}));}};f=V([_(0x0,_0x544645(_0x1e65e8)),_(0x1,_0x544645(_0x479ab0)),_(0x2,_0x544645(_0x1e022a)),_(0x3,_0x544645(_0x1595c4))],f);const z=_0x2ddb0c(0x112),Q={};var X=Object[_0x2ddb0c(0xc1)],k=Object['getOwnPropertyDescriptor'],ee=(_0x41e1ea,_0x1c1d56,_0x2c637a,_0xeb5226)=>{for(var _0x39b3b0=_0xeb5226>0x1?void 0x0:_0xeb5226?k(_0x1c1d56,_0x2c637a):_0x1c1d56,_0x250274=_0x41e1ea['length']-0x1,_0x1c8d0b;_0x250274>=0x0;_0x250274--)(_0x1c8d0b=_0x41e1ea[_0x250274])&&(_0x39b3b0=(_0xeb5226?_0x1c8d0b(_0x1c1d56,_0x2c637a,_0x39b3b0):_0x1c8d0b(_0x39b3b0))||_0x39b3b0);return _0xeb5226&&_0x39b3b0&&X(_0x1c1d56,_0x2c637a,_0x39b3b0),_0x39b3b0;},I=(_0x400f81,_0x12d6b6)=>(_0x3b4f50,_0x11ad9d)=>_0x12d6b6(_0x3b4f50,_0x11ad9d,_0x400f81);function re(_0x184cda,_0x13ece1){const _0x1535d4=_0x2ddb0c,_0x335a4f=_0x184cda['replies'][0x0];return{..._0x13ece1,'id':_0x335a4f[_0x1535d4(0xdb)],'resolved':_0x184cda[_0x1535d4(0xf1)]===0x1,'dT':g(_0x335a4f['createTimestamp']),'personId':_0x335a4f[_0x1535d4(0xd5)],'threadId':_0x335a4f['threadId']};}function te(_0x50b8e6,_0x3e2754,_0x3f2056){const _0x58072a=_0x2ddb0c;var _0x47b6db,_0x2d2ad4;if(((_0x2d2ad4=(_0x47b6db=_0x50b8e6==null?void 0x0:_0x50b8e6[_0x58072a(0x10b)])==null?void 0x0:_0x47b6db[_0x58072a(0x10e)])!=null?_0x2d2ad4:0x0)>0x0){const _0x49a462=(_0x3e9b8e,_0x509e87)=>({'id':_0x3e9b8e[_0x58072a(0xdb)],'threadId':_0x3e9b8e['threadId'],'dT':g(_0x3e9b8e[_0x58072a(0xe1)]),'personId':_0x3e9b8e[_0x58072a(0xd5)],'resolved':_0x50b8e6[_0x58072a(0xf1)]===v[_0x58072a(0xbc)],'unitId':_0x3e2754,'subUnitId':_0x3f2056,'text':JSON[_0x58072a(0xf8)](_0x3e9b8e[_0x58072a(0xd7)]),'parentId':_0x509e87}),_0xc5c133=_0x49a462(_0x50b8e6['replies'][0x0]);return{..._0xc5c133,'children':_0x50b8e6['replies'][_0x58072a(0xef)](0x1)[_0x58072a(0xe5)](_0x4b032c=>_0x49a462(_0x4b032c,_0xc5c133['id']))};}return null;}let S=class{constructor(_0x768a1a,_0x1d5f9b,_0xa538d,_0x5003b1){const _0x84c68d=_0x2ddb0c;this[_0x84c68d(0xc7)]=_0x768a1a,this[_0x84c68d(0xec)]=_0x1d5f9b,this[_0x84c68d(0xf0)]=_0xa538d,this[_0x84c68d(0xf6)]=_0x5003b1;}async[_0x2ddb0c(0xf3)](_0x535432){const _0x4968af=_0x2ddb0c;var _0x22364f,_0x3d384a;const {parentId:_0x5b0f3e,unitId:_0x1346cf,text:_0x4f6193,threadId:_0x2daba6}=_0x535432,_0x41058f=(_0x3d384a=(_0x22364f=_0x4f6193[_0x4968af(0xea)])==null?void 0x0:_0x22364f[_0x4968af(0xfd)](_0x3fb19b=>_0x3fb19b['rangeType']===_0x38f205[_0x4968af(0xf4)])[_0x4968af(0xe5)](_0x5973dd=>_0x5973dd[_0x4968af(0xf2)]))!=null?_0x3d384a:[],_0x5c89c5=JSON[_0x4968af(0xca)](_0x4f6193),_0x565236=(await this[_0x4968af(0xf0)][_0x4968af(0xcd)](_0x1346cf))[_0x4968af(0xee)]();if(_0x5b0f3e){const _0x45d4ce={'memberId':_0x565236,'unitId':_0x1346cf,'content':_0x5c89c5,'mention':_0x41058f,'threadId':_0x2daba6},_0x48470b=(await this[_0x4968af(0xc7)][_0x4968af(0xb1)](_0x4968af(0x117)+_0x1346cf+_0x4968af(0xd8),{'body':_0x45d4ce}))[_0x4968af(0xcb)][_0x4968af(0x108)];return{..._0x535432,'id':_0x48470b[_0x4968af(0xdb)],'dT':_0x1397e3(+_0x48470b[_0x4968af(0xe1)])[_0x4968af(0xb4)](_0x4968af(0x109)),'personId':_0x48470b[_0x4968af(0xd5)]};}else{const _0x353e12={'memberId':_0x565236,'unitId':_0x1346cf,'content':_0x5c89c5,'mention':_0x41058f},_0x5d3599=await this[_0x4968af(0xc7)]['post'](_0x4968af(0x117)+_0x1346cf+_0x4968af(0x119),{'body':_0x353e12});return re(_0x5d3599[_0x4968af(0xcb)][_0x4968af(0x110)],_0x535432);}}async[_0x2ddb0c(0xd0)](_0x2a91a2){const _0x1de3ff=_0x2ddb0c;var _0x54181d,_0x58339f;const {text:_0x2fd07e,unitId:_0x145b2f}=_0x2a91a2,_0x2d98b0=(_0x58339f=(_0x54181d=_0x2fd07e['customRanges'])==null?void 0x0:_0x54181d['filter'](_0x44f775=>_0x44f775[_0x1de3ff(0xe6)]===_0x38f205[_0x1de3ff(0xf4)])[_0x1de3ff(0xe5)](_0x42f655=>_0x42f655[_0x1de3ff(0xf2)]))!=null?_0x58339f:[],_0x2db86d=JSON[_0x1de3ff(0xca)](_0x2fd07e),_0x4770e8=_0x2a91a2[_0x1de3ff(0x113)],_0x4e524f=_0x2a91a2['id'],_0x518b37={'memberId':(await this[_0x1de3ff(0xf0)][_0x1de3ff(0xcd)](_0x145b2f))[_0x1de3ff(0xee)](),'unitId':_0x145b2f,'threadId':_0x4770e8,'mention':_0x2d98b0,'content':_0x2db86d,'replyId':_0x4e524f},_0x30a0eb=await this['_httpService'][_0x1de3ff(0xb1)](_0x1de3ff(0x117)+_0x145b2f+_0x1de3ff(0xe4),{'body':_0x518b37});return!_0x30a0eb[_0x1de3ff(0xcb)][_0x1de3ff(0x116)]||_0x30a0eb[_0x1de3ff(0xcb)][_0x1de3ff(0x116)]['code']===0x1;}async['resolveComment'](_0x1159ab){const _0x25ef6b=_0x2ddb0c,{unitId:_0x5905eb}=_0x1159ab,_0xd1b2e4=_0x1159ab[_0x25ef6b(0x113)],_0x300a37={'memberId':this[_0x25ef6b(0xec)][_0x25ef6b(0xc4)]()[_0x25ef6b(0xb6)],'unitId':_0x5905eb,'threadId':_0xd1b2e4,'solved':_0x1159ab[_0x25ef6b(0xb7)]?v[_0x25ef6b(0xbc)]:v[_0x25ef6b(0xc8)]},_0x2529c0=await this[_0x25ef6b(0xc7)][_0x25ef6b(0xb1)](_0x25ef6b(0x117)+_0x5905eb+_0x25ef6b(0xe3),{'body':_0x300a37});return!_0x2529c0[_0x25ef6b(0xcb)][_0x25ef6b(0x116)]||_0x2529c0[_0x25ef6b(0xcb)][_0x25ef6b(0x116)]['code']===0x1;}async[_0x2ddb0c(0x105)](_0x71ef70,_0x4ede02,_0x29740a,_0x93bce6){const _0x4c428d=_0x2ddb0c,_0x2123f6={'memberId':(await this[_0x4c428d(0xf0)][_0x4c428d(0xcd)](_0x71ef70))[_0x4c428d(0xee)](),'threadId':_0x29740a,'replyId':_0x93bce6,'unitId':_0x71ef70},_0x271abc=await this[_0x4c428d(0xc7)][_0x4c428d(0xb1)]('/universer-api/comment/unit/'+_0x71ef70+_0x4c428d(0xeb),{'body':_0x2123f6});return!_0x271abc[_0x4c428d(0xcb)]['error']||_0x271abc['body'][_0x4c428d(0x116)][_0x4c428d(0xff)]===0x1;}async[_0x2ddb0c(0xbf)](_0x1f4017,_0x5eae36,_0x3ed9da){const _0x5ec2da=_0x2ddb0c,_0x659f23={'unitId':_0x1f4017,'threadId':_0x3ed9da},_0x45a6da=await this[_0x5ec2da(0xc7)][_0x5ec2da(0xb1)](_0x5ec2da(0x117)+_0x1f4017+'/list',{'body':_0x659f23}),_0x4c517c=_0x3ed9da[_0x5ec2da(0xe5)](_0x17400f=>te(_0x45a6da['body']['comments'][_0x17400f],_0x1f4017,_0x5eae36))[_0x5ec2da(0xfd)](Boolean);return Object[_0x5ec2da(0xcc)](_0x45a6da[_0x5ec2da(0xcb)][_0x5ec2da(0xdd)])[_0x5ec2da(0xd4)](_0x3d2261=>{const _0x2c38af=_0x5ec2da;this[_0x2c38af(0xec)][_0x2c38af(0xdc)](_0x3d2261);}),_0x4c517c;}[_0x2ddb0c(0xb9)](_0x400651){const _0x1998d5=_0x2ddb0c;return{'id':_0x400651['id'],'threadId':_0x400651[_0x1998d5(0x113)],'ref':_0x400651['ref']};}};S=ee([I(0x0,_0x544645(_0x1efb70)),I(0x1,_0x544645(_0x1e022a)),I(0x2,_0x544645(_0x38845f)),I(0x3,_0x544645(_0x1595c4))],S);var se=Object[_0x2ddb0c(0xc1)],oe=Object[_0x2ddb0c(0xd1)],ne=(_0x5d340a,_0x1fe0ff,_0x467e7a,_0x53e175)=>{const _0x113f68=_0x2ddb0c;for(var _0x17a2e9=_0x53e175>0x1?void 0x0:_0x53e175?oe(_0x1fe0ff,_0x467e7a):_0x1fe0ff,_0x28cddb=_0x5d340a[_0x113f68(0x10e)]-0x1,_0x209df4;_0x28cddb>=0x0;_0x28cddb--)(_0x209df4=_0x5d340a[_0x28cddb])&&(_0x17a2e9=(_0x53e175?_0x209df4(_0x1fe0ff,_0x467e7a,_0x17a2e9):_0x209df4(_0x17a2e9))||_0x17a2e9);return _0x53e175&&_0x17a2e9&&se(_0x1fe0ff,_0x467e7a,_0x17a2e9),_0x17a2e9;},P=(_0x5cc041,_0x3ef3e3)=>(_0x16dad1,_0x4512f5)=>_0x3ef3e3(_0x16dad1,_0x4512f5,_0x5cc041);let b=class extends _0x1b9997{constructor(_0x3b1796,_0x4a58a9){const _0xd99f61=_0x2ddb0c;super(),this[_0xd99f61(0xfe)]=_0x3b1796,this[_0xd99f61(0x10c)]=_0x4a58a9,this[_0xd99f61(0x118)]();}[_0x2ddb0c(0x118)](){const _0x2baee4=_0x2ddb0c;this[_0x2baee4(0xfe)][_0x2baee4(0xc0)]=this[_0x2baee4(0x10c)],this['_threadCommentDataSourceService'][_0x2baee4(0x10f)]=!0x1;}};b=ne([P(0x0,_0x276efc),P(0x1,_0x544645(S))],b);var T=Object['defineProperty'],ie=Object[_0x2ddb0c(0xd1)],ce=(_0x29f9d5,_0x23865c,_0x549d3c)=>_0x23865c in _0x29f9d5?T(_0x29f9d5,_0x23865c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x549d3c}):_0x29f9d5[_0x23865c]=_0x549d3c,ae=(_0xcb56cc,_0x1f1c39,_0x567523,_0x35c11a)=>{const _0x218b1d=_0x2ddb0c;for(var _0x179375=_0x35c11a>0x1?void 0x0:_0x35c11a?ie(_0x1f1c39,_0x567523):_0x1f1c39,_0x145cb7=_0xcb56cc[_0x218b1d(0x10e)]-0x1,_0xc143c1;_0x145cb7>=0x0;_0x145cb7--)(_0xc143c1=_0xcb56cc[_0x145cb7])&&(_0x179375=(_0x35c11a?_0xc143c1(_0x1f1c39,_0x567523,_0x179375):_0xc143c1(_0x179375))||_0x179375);return _0x35c11a&&_0x179375&&T(_0x1f1c39,_0x567523,_0x179375),_0x179375;},M=(_0x1fe305,_0x4b2567)=>(_0x431cbc,_0x182a79)=>_0x4b2567(_0x431cbc,_0x182a79,_0x1fe305),$=(_0x2842b4,_0x198fba,_0x43a7e0)=>ce(_0x2842b4,typeof _0x198fba!=_0x2ddb0c(0x10d)?_0x198fba+'':_0x198fba,_0x43a7e0);let C=class extends _0x37e752{constructor(_0x4eacc9=Q,_0x428aa2,_0x5e1858){const _0x4bc8e2=_0x2ddb0c;super(),this['_config']=_0x4eacc9,this[_0x4bc8e2(0xf6)]=_0x428aa2,this['_configService']=_0x5e1858;const {..._0x5c7a6f}=this[_0x4bc8e2(0xf9)];this[_0x4bc8e2(0x102)][_0x4bc8e2(0xfc)](z,_0x5c7a6f);}[_0x2ddb0c(0xe2)](){[[S],[b],[f]]['forEach'](_0x134c6c=>{const _0x5f4c00=_0x21cb;this[_0x5f4c00(0xf6)][_0x5f4c00(0xbd)](_0x134c6c);});}[_0x2ddb0c(0xc9)](){const _0x1652f0=_0x2ddb0c;this[_0x1652f0(0xf6)]['get'](b),this[_0x1652f0(0xf6)][_0x1652f0(0xe0)](f);}};$(C,_0x2ddb0c(0xe9),q),$(C,_0x2ddb0c(0xc2),_0x50a45a[_0x2ddb0c(0xae)]),C=ae([_0x5d7c72(_0x353c8c,_0x175480,_0x24581d),M(0x1,_0x544645(_0x1595c4)),M(0x2,_0x5d450f)],C);export{C as UniverThreadCommentDataSourcePlugin};
1
+ const _0x3769f1=_0x4bc4;(function(_0x4192a2,_0x299c42){const _0x2910de=_0x4bc4,_0x432d69=_0x4192a2();while(!![]){try{const _0x1a31d0=parseInt(_0x2910de(0x15b))/0x1*(parseInt(_0x2910de(0x12e))/0x2)+-parseInt(_0x2910de(0x103))/0x3+-parseInt(_0x2910de(0x140))/0x4+parseInt(_0x2910de(0x15d))/0x5+-parseInt(_0x2910de(0x134))/0x6+-parseInt(_0x2910de(0x154))/0x7+parseInt(_0x2910de(0x120))/0x8;if(_0x1a31d0===_0x299c42)break;else _0x432d69['push'](_0x432d69['shift']());}catch(_0xe6630b){_0x432d69['push'](_0x432d69['shift']());}}}(_0x5449,0x71d18));import{CommentService as _0x14ecf1,CollaborationSessionService as _0xa2a829,UniverCollaborationClientPlugin as _0x2c3661}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x36ef01}from'@univerjs-pro/license';import{dayjs as _0x29fb43,UserManagerService as _0x330b79,Inject as _0x2248d7,Injector as _0x203748,Disposable as _0xc97a9a,CustomRangeType as _0x45e1e6,UniverInstanceType as _0x17e7f9,DependentOn as _0x2544f0,Plugin as _0x5d51a6,IConfigService as _0x204533}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x4b382b}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x2a22fa,IThreadCommentDataSourceService as _0x128279}from'@univerjs/thread-comment';import{bufferTime as _0x50b520}from'rxjs';import{HTTPService as _0x49216e}from'@univerjs/network';const q='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var v=(_0x4df04e=>(_0x4df04e[_0x4df04e[_0x3769f1(0x11a)]=0x0]=_0x3769f1(0x11a),_0x4df04e[_0x4df04e[_0x3769f1(0xfc)]=0x1]='Solved',_0x4df04e[_0x4df04e[_0x3769f1(0x11f)]=-0x1]=_0x3769f1(0x11f),_0x4df04e))(v||{}),p=(_0x4f9110=>(_0x4f9110[_0x4f9110[_0x3769f1(0x14d)]=0x0]=_0x3769f1(0x14d),_0x4f9110[_0x4f9110[_0x3769f1(0x136)]=0x1]=_0x3769f1(0x136),_0x4f9110[_0x4f9110['Reply']=0x2]='Reply',_0x4f9110[_0x4f9110['Edit']=0x3]=_0x3769f1(0x10d),_0x4f9110[_0x4f9110[_0x3769f1(0x109)]=0x4]=_0x3769f1(0x109),_0x4f9110[_0x4f9110[_0x3769f1(0x152)]=0x5]=_0x3769f1(0x152),_0x4f9110[_0x4f9110[_0x3769f1(0x11f)]=-0x1]=_0x3769f1(0x11f),_0x4f9110))(p||{});function _0x4bc4(_0x5d857d,_0x342f49){const _0x544970=_0x5449();return _0x4bc4=function(_0x4bc4ca,_0x5eb13f){_0x4bc4ca=_0x4bc4ca-0xfc;let _0x476098=_0x544970[_0x4bc4ca];return _0x476098;},_0x4bc4(_0x5d857d,_0x342f49);}const g=_0x52ca7f=>_0x29fb43(new Date(+_0x52ca7f))[_0x3769f1(0x10a)](_0x3769f1(0xfe)),W=async(_0x2caa2d,_0x5a18e5)=>{const _0x38c234=_0x3769f1,_0x561092=_0x2caa2d[_0x38c234(0x144)](_0x330b79),_0xa1613e=_0x2caa2d[_0x38c234(0x144)](_0x49216e);_0x5a18e5[_0x38c234(0x146)](_0x289ff1=>{const _0x357276=_0x38c234;_0x561092[_0x357276(0x118)](_0x289ff1)&&_0x5a18e5[_0x357276(0x12a)](_0x289ff1);}),_0x5a18e5['size']&&(await _0xa1613e[_0x38c234(0x144)](_0x38c234(0x14e),{'params':{'userIDs':[..._0x5a18e5]}}))[_0x38c234(0x106)][_0x38c234(0x12f)][_0x38c234(0x146)](_0xb4a94a=>{const _0x4469e2=_0x38c234;_0xb4a94a&&_0x561092[_0x4469e2(0x13b)](_0xb4a94a);});};var B=Object['defineProperty'],K=Object[_0x3769f1(0x148)],V=(_0x3d54a6,_0xc9636e,_0x4628e0,_0x1c2030)=>{const _0x3cc191=_0x3769f1;for(var _0x406fd3=_0x1c2030>0x1?void 0x0:_0x1c2030?K(_0xc9636e,_0x4628e0):_0xc9636e,_0x1c6a47=_0x3d54a6[_0x3cc191(0x129)]-0x1,_0x25817d;_0x1c6a47>=0x0;_0x1c6a47--)(_0x25817d=_0x3d54a6[_0x1c6a47])&&(_0x406fd3=(_0x1c2030?_0x25817d(_0xc9636e,_0x4628e0,_0x406fd3):_0x25817d(_0x406fd3))||_0x406fd3);return _0x1c2030&&_0x406fd3&&B(_0xc9636e,_0x4628e0,_0x406fd3),_0x406fd3;},_=(_0x419ad7,_0xc396ba)=>(_0x541a61,_0x4dd185)=>_0xc396ba(_0x541a61,_0x4dd185,_0x419ad7);let f=class extends _0xc97a9a{constructor(_0x130d4c,_0x51b299,_0x4072a9,_0x580fd0){const _0x54186f=_0x3769f1;super(),this[_0x54186f(0x100)]=_0x130d4c,this['_threadCommentModel']=_0x51b299,this[_0x54186f(0x115)]=_0x4072a9,this['_injector']=_0x580fd0,this[_0x54186f(0x13a)](),this[_0x54186f(0x108)]();}[_0x3769f1(0x108)](){const _0x26981f=_0x3769f1;this[_0x26981f(0x14b)](this[_0x26981f(0x126)][_0x26981f(0x114)][_0x26981f(0x101)](_0x50b520(0x10))[_0x26981f(0x111)](_0x4a4d6b=>{const _0x4549d1=_0x26981f,_0x1f9034=new Set();_0x4a4d6b[_0x4549d1(0x146)](_0x26e725=>{const _0x3bdf70=_0x4549d1;switch(_0x26e725[_0x3bdf70(0x112)]){case _0x3bdf70(0x141):{const _0x2b8b37=_0x26e725[_0x3bdf70(0x125)][_0x3bdf70(0x11e)];_0x1f9034['add'](_0x2b8b37);break;}}}),W(this[_0x4549d1(0xfd)],_0x1f9034);}));}[_0x3769f1(0x13a)](){const _0xa5cbc6=_0x3769f1;this[_0xa5cbc6(0x14b)](this[_0xa5cbc6(0x100)][_0xa5cbc6(0x114)]['subscribe'](async _0x58fa5e=>{const _0x57b8d7=_0xa5cbc6;var _0x21987f,_0x27913b,_0x21282f,_0x2f02a8;const _0x58b2c9=(_0x21987f=this['_threadCommentModel'][_0x57b8d7(0x151)](_0x58fa5e[_0x57b8d7(0x149)])[_0x57b8d7(0x10e)](_0x5e9bb0=>_0x5e9bb0['threadId']===_0x58fa5e[_0x57b8d7(0x12b)]))==null?void 0x0:_0x21987f['root'];if(!_0x58b2c9)return;const {unitId:_0x566cb5,subUnitId:_0x3f5a97}=_0x58b2c9;switch(_0x58fa5e['user']&&this[_0x57b8d7(0x115)][_0x57b8d7(0x13b)](_0x58fa5e[_0x57b8d7(0x107)]),_0x58fa5e[_0x57b8d7(0x112)]){case p['Add']:break;case p[_0x57b8d7(0x147)]:{this['_threadCommentModel'][_0x57b8d7(0x11d)](_0x566cb5,_0x3f5a97,{'unitId':_0x566cb5,'subUnitId':_0x3f5a97,'ref':'','id':_0x58fa5e['replyId'],'dT':g(+_0x58fa5e[_0x57b8d7(0x116)]),'threadId':_0x58fa5e[_0x57b8d7(0x12b)],'personId':(_0x21282f=(_0x27913b=_0x58fa5e[_0x57b8d7(0x107)])==null?void 0x0:_0x27913b[_0x57b8d7(0x121)])!=null?_0x21282f:_0x58fa5e[_0x57b8d7(0x117)],'text':JSON[_0x57b8d7(0x142)](_0x58fa5e[_0x57b8d7(0x157)]),'parentId':_0x58b2c9['id']});break;}case p[_0x57b8d7(0x109)]:{const _0x197cc6=this[_0x57b8d7(0x126)]['getComment'](_0x566cb5,_0x3f5a97,_0x58fa5e[_0x57b8d7(0x12d)]);_0x197cc6&&_0x197cc6[_0x57b8d7(0x105)]&&this[_0x57b8d7(0x126)][_0x57b8d7(0x14a)](_0x566cb5,_0x3f5a97,_0x58fa5e[_0x57b8d7(0x12d)]);break;}case p[_0x57b8d7(0x10d)]:{this[_0x57b8d7(0x126)]['updateComment'](_0x566cb5,_0x3f5a97,{'commentId':_0x58fa5e[_0x57b8d7(0x12d)],'text':JSON[_0x57b8d7(0x142)](_0x58fa5e['content'])});break;}case p[_0x57b8d7(0x152)]:{const _0xc94fa4=(_0x2f02a8=this[_0x57b8d7(0x126)][_0x57b8d7(0x151)](_0x58fa5e[_0x57b8d7(0x149)])[_0x57b8d7(0x10e)](_0x3c8555=>_0x3c8555['threadId']===_0x58fa5e[_0x57b8d7(0x12b)]))==null?void 0x0:_0x2f02a8[_0x57b8d7(0x155)];_0xc94fa4&&this[_0x57b8d7(0x126)]['resolveComment'](_0x566cb5,_0x3f5a97,_0xc94fa4['id'],_0x58fa5e['solved']===v[_0x57b8d7(0xfc)]);break;}}}));}};f=V([_(0x0,_0x2248d7(_0x14ecf1)),_(0x1,_0x2248d7(_0x2a22fa)),_(0x2,_0x2248d7(_0x330b79)),_(0x3,_0x2248d7(_0x203748))],f);const z=_0x3769f1(0x14f),Q={};var X=Object[_0x3769f1(0x145)],k=Object['getOwnPropertyDescriptor'],ee=(_0x3f2332,_0xf0f16,_0x3a5de9,_0x1e367a)=>{for(var _0x490aff=_0x1e367a>0x1?void 0x0:_0x1e367a?k(_0xf0f16,_0x3a5de9):_0xf0f16,_0x4ac5c0=_0x3f2332['length']-0x1,_0x7953b1;_0x4ac5c0>=0x0;_0x4ac5c0--)(_0x7953b1=_0x3f2332[_0x4ac5c0])&&(_0x490aff=(_0x1e367a?_0x7953b1(_0xf0f16,_0x3a5de9,_0x490aff):_0x7953b1(_0x490aff))||_0x490aff);return _0x1e367a&&_0x490aff&&X(_0xf0f16,_0x3a5de9,_0x490aff),_0x490aff;},I=(_0xb46688,_0x26e047)=>(_0x4cd0f3,_0x574e02)=>_0x26e047(_0x4cd0f3,_0x574e02,_0xb46688);function re(_0x50a0e0,_0x3aeb70){const _0x3f2b59=_0x3769f1,_0x4ac651=_0x50a0e0[_0x3f2b59(0x10f)][0x0];return{..._0x3aeb70,'id':_0x4ac651['replyId'],'resolved':_0x50a0e0[_0x3f2b59(0x13d)]===0x1,'dT':g(_0x4ac651[_0x3f2b59(0x116)]),'personId':_0x4ac651[_0x3f2b59(0x117)],'threadId':_0x4ac651[_0x3f2b59(0x12b)]};}function te(_0x55289f,_0x56fb50,_0x54abf9){const _0x2cc76c=_0x3769f1;var _0x301710,_0x2e5f9c;if(((_0x2e5f9c=(_0x301710=_0x55289f==null?void 0x0:_0x55289f[_0x2cc76c(0x10f)])==null?void 0x0:_0x301710[_0x2cc76c(0x129)])!=null?_0x2e5f9c:0x0)>0x0){const _0x2ab2f6=(_0x335df5,_0x599379)=>({'id':_0x335df5[_0x2cc76c(0x12d)],'threadId':_0x335df5[_0x2cc76c(0x12b)],'dT':g(_0x335df5['createTimestamp']),'personId':_0x335df5[_0x2cc76c(0x117)],'resolved':_0x55289f[_0x2cc76c(0x13d)]===v[_0x2cc76c(0xfc)],'unitId':_0x56fb50,'subUnitId':_0x54abf9,'text':JSON[_0x2cc76c(0x142)](_0x335df5[_0x2cc76c(0x157)]),'parentId':_0x599379}),_0x1456f2=_0x2ab2f6(_0x55289f[_0x2cc76c(0x10f)][0x0]);return{..._0x1456f2,'children':_0x55289f[_0x2cc76c(0x10f)][_0x2cc76c(0x123)](0x1)['map'](_0x16d93e=>_0x2ab2f6(_0x16d93e,_0x1456f2['id']))};}return null;}let S=class{constructor(_0x2b2297,_0x326a47,_0x401abe,_0x1380f5){const _0x2d5baa=_0x3769f1;this[_0x2d5baa(0x150)]=_0x2b2297,this[_0x2d5baa(0x115)]=_0x326a47,this[_0x2d5baa(0x137)]=_0x401abe,this['_injector']=_0x1380f5;}async['addComment'](_0x5dc2fa){const _0x319d74=_0x3769f1;var _0xee192d,_0x151a93;const {parentId:_0x2e53c8,unitId:_0x58c0b9,text:_0x56f6d4,threadId:_0x135b93}=_0x5dc2fa,_0x521fc0=(_0x151a93=(_0xee192d=_0x56f6d4[_0x319d74(0x14c)])==null?void 0x0:_0xee192d['filter'](_0x3c918e=>_0x3c918e[_0x319d74(0x143)]===_0x45e1e6[_0x319d74(0x104)])[_0x319d74(0x133)](_0x194b4a=>_0x194b4a['rangeId']))!=null?_0x151a93:[],_0x2f2922=JSON[_0x319d74(0x131)](_0x56f6d4),_0x46c12a=(await this[_0x319d74(0x137)][_0x319d74(0x158)](_0x58c0b9))[_0x319d74(0x124)]();if(_0x2e53c8){const _0x112839={'memberId':_0x46c12a,'unitId':_0x58c0b9,'content':_0x2f2922,'mention':_0x521fc0,'threadId':_0x135b93},_0x5dadbc=(await this[_0x319d74(0x150)][_0x319d74(0x15c)](_0x319d74(0x11b)+_0x58c0b9+_0x319d74(0x159),{'body':_0x112839}))['body'][_0x319d74(0x127)];return{..._0x5dc2fa,'id':_0x5dadbc[_0x319d74(0x12d)],'dT':_0x29fb43(+_0x5dadbc[_0x319d74(0x116)])[_0x319d74(0x10a)](_0x319d74(0xfe)),'personId':_0x5dadbc[_0x319d74(0x117)]};}else{const _0x2bc604={'memberId':_0x46c12a,'unitId':_0x58c0b9,'content':_0x2f2922,'mention':_0x521fc0},_0x5d115d=await this[_0x319d74(0x150)][_0x319d74(0x15c)](_0x319d74(0x11b)+_0x58c0b9+'/add',{'body':_0x2bc604});return re(_0x5d115d[_0x319d74(0x106)][_0x319d74(0x13e)],_0x5dc2fa);}}async[_0x3769f1(0x135)](_0x1e2a6b){const _0x480760=_0x3769f1;var _0x4d2024,_0xd6bf4e;const {text:_0x21eb5c,unitId:_0x3d521d}=_0x1e2a6b,_0x4305e0=(_0xd6bf4e=(_0x4d2024=_0x21eb5c['customRanges'])==null?void 0x0:_0x4d2024[_0x480760(0x139)](_0x535f9a=>_0x535f9a[_0x480760(0x143)]===_0x45e1e6[_0x480760(0x104)])[_0x480760(0x133)](_0x337ad0=>_0x337ad0['rangeId']))!=null?_0xd6bf4e:[],_0x1657e2=JSON[_0x480760(0x131)](_0x21eb5c),_0xdcdd7c=_0x1e2a6b[_0x480760(0x12b)],_0x4fb171=_0x1e2a6b['id'],_0x320206={'memberId':(await this[_0x480760(0x137)][_0x480760(0x158)](_0x3d521d))[_0x480760(0x124)](),'unitId':_0x3d521d,'threadId':_0xdcdd7c,'mention':_0x4305e0,'content':_0x1657e2,'replyId':_0x4fb171},_0x975252=await this[_0x480760(0x150)][_0x480760(0x15c)](_0x480760(0x11b)+_0x3d521d+_0x480760(0x130),{'body':_0x320206});return!_0x975252[_0x480760(0x106)]['error']||_0x975252[_0x480760(0x106)][_0x480760(0x122)][_0x480760(0x12c)]===0x1;}async[_0x3769f1(0x132)](_0xae4fe9){const _0x561675=_0x3769f1,{unitId:_0x23e1bf}=_0xae4fe9,_0x4097c9=_0xae4fe9['threadId'],_0x5b7073={'memberId':this[_0x561675(0x115)][_0x561675(0x113)]()[_0x561675(0x121)],'unitId':_0x23e1bf,'threadId':_0x4097c9,'solved':_0xae4fe9['resolved']?v[_0x561675(0xfc)]:v[_0x561675(0x11a)]},_0x51113e=await this[_0x561675(0x150)][_0x561675(0x15c)](_0x561675(0x11b)+_0x23e1bf+'/solved',{'body':_0x5b7073});return!_0x51113e[_0x561675(0x106)][_0x561675(0x122)]||_0x51113e[_0x561675(0x106)][_0x561675(0x122)][_0x561675(0x12c)]===0x1;}async[_0x3769f1(0x14a)](_0x20b315,_0x484e25,_0xab9c95,_0x3b8c88){const _0x40c2f6=_0x3769f1,_0x2bbc93={'memberId':(await this['_sessionService'][_0x40c2f6(0x158)](_0x20b315))[_0x40c2f6(0x124)](),'threadId':_0xab9c95,'replyId':_0x3b8c88,'unitId':_0x20b315},_0xbc2e8a=await this[_0x40c2f6(0x150)][_0x40c2f6(0x15c)]('/universer-api/comment/unit/'+_0x20b315+_0x40c2f6(0x13f),{'body':_0x2bbc93});return!_0xbc2e8a[_0x40c2f6(0x106)][_0x40c2f6(0x122)]||_0xbc2e8a['body'][_0x40c2f6(0x122)][_0x40c2f6(0x12c)]===0x1;}async['listComments'](_0x59bae7,_0x4db489,_0x3652dd){const _0x3ef2c7=_0x3769f1,_0x4d636d={'unitId':_0x59bae7,'threadId':_0x3652dd},_0x297e75=await this[_0x3ef2c7(0x150)][_0x3ef2c7(0x15c)](_0x3ef2c7(0x11b)+_0x59bae7+_0x3ef2c7(0x138),{'body':_0x4d636d}),_0x481c7a=_0x3652dd[_0x3ef2c7(0x133)](_0x3aa11c=>te(_0x297e75[_0x3ef2c7(0x106)][_0x3ef2c7(0x13c)][_0x3aa11c],_0x59bae7,_0x4db489))[_0x3ef2c7(0x139)](Boolean);return Object['values'](_0x297e75[_0x3ef2c7(0x106)][_0x3ef2c7(0x12f)])['forEach'](_0x338925=>{const _0x158327=_0x3ef2c7;this['_userService'][_0x158327(0x13b)](_0x338925);}),_0x481c7a;}[_0x3769f1(0x153)](_0xcfe8cf){const _0x10b460=_0x3769f1;return{'id':_0xcfe8cf['id'],'threadId':_0xcfe8cf[_0x10b460(0x12b)],'ref':_0xcfe8cf['ref']};}};S=ee([I(0x0,_0x2248d7(_0x49216e)),I(0x1,_0x2248d7(_0x330b79)),I(0x2,_0x2248d7(_0xa2a829)),I(0x3,_0x2248d7(_0x203748))],S);var se=Object[_0x3769f1(0x145)],oe=Object[_0x3769f1(0x148)],ne=(_0x50b087,_0x447d7b,_0xc8989c,_0x1ac037)=>{for(var _0x22adc7=_0x1ac037>0x1?void 0x0:_0x1ac037?oe(_0x447d7b,_0xc8989c):_0x447d7b,_0x37eeb8=_0x50b087['length']-0x1,_0x316d33;_0x37eeb8>=0x0;_0x37eeb8--)(_0x316d33=_0x50b087[_0x37eeb8])&&(_0x22adc7=(_0x1ac037?_0x316d33(_0x447d7b,_0xc8989c,_0x22adc7):_0x316d33(_0x22adc7))||_0x22adc7);return _0x1ac037&&_0x22adc7&&se(_0x447d7b,_0xc8989c,_0x22adc7),_0x22adc7;},P=(_0x58dc31,_0x4c3078)=>(_0x8def81,_0x440e35)=>_0x4c3078(_0x8def81,_0x440e35,_0x58dc31);let b=class extends _0xc97a9a{constructor(_0x58c01b,_0x305615){const _0x3308fc=_0x3769f1;super(),this[_0x3308fc(0x128)]=_0x58c01b,this[_0x3308fc(0x15e)]=_0x305615,this['_initDataSource']();}[_0x3769f1(0x119)](){const _0x575d6e=_0x3769f1;this[_0x575d6e(0x128)][_0x575d6e(0x102)]=this[_0x575d6e(0x15e)],this[_0x575d6e(0x128)][_0x575d6e(0x156)]=!0x1;}};b=ne([P(0x0,_0x128279),P(0x1,_0x2248d7(S))],b);var T=Object[_0x3769f1(0x145)],ie=Object[_0x3769f1(0x148)],ce=(_0x5c41ec,_0x11e89f,_0x37eef9)=>_0x11e89f in _0x5c41ec?T(_0x5c41ec,_0x11e89f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37eef9}):_0x5c41ec[_0x11e89f]=_0x37eef9,ae=(_0x429014,_0x96685e,_0x27cabb,_0x222d4b)=>{for(var _0x18bbd7=_0x222d4b>0x1?void 0x0:_0x222d4b?ie(_0x96685e,_0x27cabb):_0x96685e,_0x29613e=_0x429014['length']-0x1,_0xd4a536;_0x29613e>=0x0;_0x29613e--)(_0xd4a536=_0x429014[_0x29613e])&&(_0x18bbd7=(_0x222d4b?_0xd4a536(_0x96685e,_0x27cabb,_0x18bbd7):_0xd4a536(_0x18bbd7))||_0x18bbd7);return _0x222d4b&&_0x18bbd7&&T(_0x96685e,_0x27cabb,_0x18bbd7),_0x18bbd7;},M=(_0x3d0d24,_0x3e00cd)=>(_0x376a22,_0x1b5eb9)=>_0x3e00cd(_0x376a22,_0x1b5eb9,_0x3d0d24),$=(_0x4e860a,_0x451645,_0x2e7547)=>ce(_0x4e860a,typeof _0x451645!='symbol'?_0x451645+'':_0x451645,_0x2e7547);let C=class extends _0x5d51a6{constructor(_0x2d4d00=Q,_0x5819c8,_0x3cfde0){const _0x3dc2ea=_0x3769f1;super(),this[_0x3dc2ea(0x10c)]=_0x2d4d00,this[_0x3dc2ea(0xfd)]=_0x5819c8,this[_0x3dc2ea(0x10b)]=_0x3cfde0;const {..._0x51a1fd}=this['_config'];this['_configService'][_0x3dc2ea(0x11c)](z,_0x51a1fd);}[_0x3769f1(0x110)](){const _0x46e905=_0x3769f1;[[S],[b],[f]][_0x46e905(0x146)](_0x2c330a=>{const _0x82e198=_0x46e905;this[_0x82e198(0xfd)][_0x82e198(0x141)](_0x2c330a);});}[_0x3769f1(0xff)](){const _0x331621=_0x3769f1;this[_0x331621(0xfd)]['get'](b),this[_0x331621(0xfd)][_0x331621(0x144)](f);}};$(C,'pluginName',q),$(C,_0x3769f1(0x112),_0x17e7f9[_0x3769f1(0x15a)]),C=ae([_0x2544f0(_0x4b382b,_0x2c3661,_0x36ef01),M(0x1,_0x2248d7(_0x203748)),M(0x2,_0x204533)],C);export{C as UniverThreadCommentDataSourcePlugin};function _0x5449(){const _0x1752c4=['updateComment','Add','_sessionService','/list','filter','_init','addUser','comments','solved','comment','/delete','2006732DnOeLw','add','parse','rangeType','get','defineProperty','forEach','Reply','getOwnPropertyDescriptor','unitId','deleteComment','disposeWithMe','customRanges','Unknown','/universer-api/user/list','thread-comment-data-source.config','_httpService','getUnit','Solve','saveCommentToSnapshot','5595142rDCjoi','root','syncUpdateMutationToColla','content','requireSession','/reply','UNIVER_UNKNOWN','464649aNfDLK','post','3719770IvFhkM','_threadCommentDataSource','Solved','_injector','YYYY/MM/DD\x20HH:mm','onReady','_commentService','pipe','dataSource','1951254iPOAHc','COMMENT','parentId','body','user','_initUserSync','Delete','format','_configService','_config','Edit','find','replies','onStarting','subscribe','type','getCurrentUser','commentUpdate$','_userService','createTimestamp','userId','getUser','_initDataSource','OpenOrReOpen','/universer-api/comment/unit/','setConfig','addComment','personId','UNRECOGNIZED','6911968sdgMje','userID','error','slice','getMemberID','payload','_threadCommentModel','reply','_threadCommentDataSourceService','length','delete','threadId','code','replyId','4gkybGG','users','/edit','stringify','resolveComment','map','717846nPdTsZ'];_0x5449=function(){return _0x1752c4;};return _0x5449();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0xe464b,_0x18de5c){const _0x5964fb=_0x3da8,_0x28d1d6=_0xe464b();while(!![]){try{const _0x244d26=parseInt(_0x5964fb(0x1b6))/0x1*(parseInt(_0x5964fb(0x17c))/0x2)+parseInt(_0x5964fb(0x1b1))/0x3+parseInt(_0x5964fb(0x1af))/0x4+parseInt(_0x5964fb(0x199))/0x5*(parseInt(_0x5964fb(0x168))/0x6)+-parseInt(_0x5964fb(0x1ba))/0x7*(-parseInt(_0x5964fb(0x191))/0x8)+parseInt(_0x5964fb(0x1ab))/0x9+-parseInt(_0x5964fb(0x1c7))/0xa*(parseInt(_0x5964fb(0x1ae))/0xb);if(_0x244d26===_0x18de5c)break;else _0x28d1d6['push'](_0x28d1d6['shift']());}catch(_0xe04f04){_0x28d1d6['push'](_0x28d1d6['shift']());}}}(_0x1404,0xd6462),function(_0x3555ca,_0x422910){const _0x57d1df=_0x3da8;typeof exports==_0x57d1df(0x1c0)&&typeof module<'u'?_0x422910(exports,require('@univerjs-pro/collaboration-client'),require(_0x57d1df(0x177)),require('@univerjs/core'),require(_0x57d1df(0x174)),require('@univerjs/thread-comment'),require(_0x57d1df(0x1cd)),require(_0x57d1df(0x1b3))):typeof define==_0x57d1df(0x1b2)&&define[_0x57d1df(0x1d9)]?define([_0x57d1df(0x1a6),'@univerjs-pro/collaboration-client',_0x57d1df(0x177),_0x57d1df(0x196),'@univerjs/thread-comment-ui',_0x57d1df(0x185),_0x57d1df(0x1cd),_0x57d1df(0x1b3)],_0x422910):(_0x3555ca=typeof globalThis<'u'?globalThis:_0x3555ca||self,_0x422910(_0x3555ca['UniverProThreadCommentDatasource']={},_0x3555ca['UniverProCollaborationClient'],_0x3555ca[_0x57d1df(0x1d2)],_0x3555ca[_0x57d1df(0x1b9)],_0x3555ca[_0x57d1df(0x17e)],_0x3555ca[_0x57d1df(0x187)],_0x3555ca[_0x57d1df(0x1cd)],_0x3555ca[_0x57d1df(0x178)]));}(this,function(_0x34be8e,_0x4da4ae,_0x50aa3b,_0x5d5f2b,_0x1df32a,_0x36ba33,_0x4e2ba5,_0x2fd745){'use strict';const _0xe9beeb=_0x3da8;const _0xb23504=_0xe9beeb(0x1d7);var _0x57ec60=(_0x1e0af5=>(_0x1e0af5[_0x1e0af5[_0xe9beeb(0x1c6)]=0x0]='OpenOrReOpen',_0x1e0af5[_0x1e0af5[_0xe9beeb(0x16c)]=0x1]=_0xe9beeb(0x16c),_0x1e0af5[_0x1e0af5['UNRECOGNIZED']=-0x1]=_0xe9beeb(0x17a),_0x1e0af5))(_0x57ec60||{}),_0xfa63ba=(_0x296661=>(_0x296661[_0x296661[_0xe9beeb(0x172)]=0x0]=_0xe9beeb(0x172),_0x296661[_0x296661['Add']=0x1]=_0xe9beeb(0x1bb),_0x296661[_0x296661[_0xe9beeb(0x1a1)]=0x2]='Reply',_0x296661[_0x296661[_0xe9beeb(0x15f)]=0x3]='Edit',_0x296661[_0x296661['Delete']=0x4]=_0xe9beeb(0x1b7),_0x296661[_0x296661[_0xe9beeb(0x19b)]=0x5]=_0xe9beeb(0x19b),_0x296661[_0x296661[_0xe9beeb(0x17a)]=-0x1]=_0xe9beeb(0x17a),_0x296661))(_0xfa63ba||{});const _0x5132c0=_0x4d8fdc=>_0x5d5f2b[_0xe9beeb(0x1e5)](new Date(+_0x4d8fdc))[_0xe9beeb(0x1ad)](_0xe9beeb(0x1bc)),_0x288c3a=async(_0x19584d,_0x3127ab)=>{const _0x2058ee=_0xe9beeb,_0x1462ee=_0x19584d['get'](_0x5d5f2b[_0x2058ee(0x167)]),_0x43969b=_0x19584d[_0x2058ee(0x160)](_0x2fd745[_0x2058ee(0x195)]);_0x3127ab[_0x2058ee(0x1ce)](_0xdf1ab1=>{const _0x3cc699=_0x2058ee;_0x1462ee[_0x3cc699(0x19a)](_0xdf1ab1)&&_0x3127ab[_0x3cc699(0x1e2)](_0xdf1ab1);}),_0x3127ab[_0x2058ee(0x1c2)]&&(await _0x43969b['get']('/universer-api/user/list',{'params':{'userIDs':[..._0x3127ab]}}))['body'][_0x2058ee(0x1cb)][_0x2058ee(0x1ce)](_0x25237b=>{_0x25237b&&_0x1462ee['addUser'](_0x25237b);});};var _0x3bc77b=Object[_0xe9beeb(0x1df)],_0x4510aa=Object[_0xe9beeb(0x1ca)],_0x5d6f8c=(_0x6e7a7d,_0x2bc25c,_0x3caad1,_0x5ddab4)=>{const _0xaa426c=_0xe9beeb;for(var _0x55a704=_0x5ddab4>0x1?void 0x0:_0x5ddab4?_0x4510aa(_0x2bc25c,_0x3caad1):_0x2bc25c,_0x5c9a71=_0x6e7a7d[_0xaa426c(0x1a4)]-0x1,_0x1dfc9f;_0x5c9a71>=0x0;_0x5c9a71--)(_0x1dfc9f=_0x6e7a7d[_0x5c9a71])&&(_0x55a704=(_0x5ddab4?_0x1dfc9f(_0x2bc25c,_0x3caad1,_0x55a704):_0x1dfc9f(_0x55a704))||_0x55a704);return _0x5ddab4&&_0x55a704&&_0x3bc77b(_0x2bc25c,_0x3caad1,_0x55a704),_0x55a704;},_0x207941=(_0x5e6052,_0x5d0c9d)=>(_0x33a67d,_0x5b01dc)=>_0x5d0c9d(_0x33a67d,_0x5b01dc,_0x5e6052);let _0x593062=class extends _0x5d5f2b[_0xe9beeb(0x1bf)]{constructor(_0x33b1b2,_0x476c6f,_0x322027,_0x55f1fa){const _0x43f484=_0xe9beeb;super(),this[_0x43f484(0x1d8)]=_0x33b1b2,this[_0x43f484(0x184)]=_0x476c6f,this[_0x43f484(0x15e)]=_0x322027,this[_0x43f484(0x1e7)]=_0x55f1fa,this[_0x43f484(0x1a5)](),this[_0x43f484(0x176)]();}[_0xe9beeb(0x176)](){const _0x588a0e=_0xe9beeb;this[_0x588a0e(0x1c3)](this[_0x588a0e(0x184)][_0x588a0e(0x18a)][_0x588a0e(0x18d)](_0x4e2ba5[_0x588a0e(0x18e)](0x10))[_0x588a0e(0x1e0)](_0x3b7797=>{const _0x5642b3=_0x588a0e,_0x42dd7a=new Set();_0x3b7797[_0x5642b3(0x1ce)](_0x52d60e=>{const _0x604205=_0x5642b3;switch(_0x52d60e[_0x604205(0x1db)]){case'add':{const _0x556756=_0x52d60e[_0x604205(0x18b)][_0x604205(0x163)];_0x42dd7a['add'](_0x556756);break;}}}),_0x288c3a(this[_0x5642b3(0x1e7)],_0x42dd7a);}));}['_init'](){const _0x2845f5=_0xe9beeb;this[_0x2845f5(0x1c3)](this[_0x2845f5(0x1d8)]['commentUpdate$'][_0x2845f5(0x1e0)](async _0x27a401=>{const _0x774027=_0x2845f5;var _0x336c30,_0x2eb52c,_0x4196d8,_0x4b4a94;const _0x1320ca=(_0x336c30=this[_0x774027(0x184)]['getUnit'](_0x27a401[_0x774027(0x19d)])[_0x774027(0x171)](_0x29023f=>_0x29023f[_0x774027(0x180)]===_0x27a401[_0x774027(0x180)]))==null?void 0x0:_0x336c30[_0x774027(0x186)];if(!_0x1320ca)return;const {unitId:_0x3b8e65,subUnitId:_0x141c8a}=_0x1320ca;switch(_0x27a401[_0x774027(0x19c)]&&this[_0x774027(0x15e)][_0x774027(0x193)](_0x27a401[_0x774027(0x19c)]),_0x27a401[_0x774027(0x1db)]){case _0xfa63ba[_0x774027(0x1bb)]:break;case _0xfa63ba[_0x774027(0x1a1)]:{this[_0x774027(0x184)]['addComment'](_0x3b8e65,_0x141c8a,{'unitId':_0x3b8e65,'subUnitId':_0x141c8a,'ref':'','id':_0x27a401['replyId'],'dT':_0x5132c0(+_0x27a401[_0x774027(0x16f)]),'threadId':_0x27a401[_0x774027(0x180)],'personId':(_0x4196d8=(_0x2eb52c=_0x27a401[_0x774027(0x19c)])==null?void 0x0:_0x2eb52c[_0x774027(0x19e)])!=null?_0x4196d8:_0x27a401[_0x774027(0x16e)],'text':JSON[_0x774027(0x197)](_0x27a401[_0x774027(0x1d3)]),'parentId':_0x1320ca['id']});break;}case _0xfa63ba[_0x774027(0x1b7)]:{const _0x3d2ab5=this[_0x774027(0x184)]['getComment'](_0x3b8e65,_0x141c8a,_0x27a401[_0x774027(0x188)]);_0x3d2ab5&&_0x3d2ab5[_0x774027(0x1cf)]&&this[_0x774027(0x184)]['deleteComment'](_0x3b8e65,_0x141c8a,_0x27a401['replyId']);break;}case _0xfa63ba[_0x774027(0x15f)]:{this['_threadCommentModel']['updateComment'](_0x3b8e65,_0x141c8a,{'commentId':_0x27a401[_0x774027(0x188)],'text':JSON[_0x774027(0x197)](_0x27a401['content'])});break;}case _0xfa63ba['Solve']:{const _0x12b671=(_0x4b4a94=this['_threadCommentModel'][_0x774027(0x16d)](_0x27a401[_0x774027(0x19d)])[_0x774027(0x171)](_0x3ead95=>_0x3ead95[_0x774027(0x180)]===_0x27a401['threadId']))==null?void 0x0:_0x4b4a94[_0x774027(0x186)];_0x12b671&&this['_threadCommentModel'][_0x774027(0x1a9)](_0x3b8e65,_0x141c8a,_0x12b671['id'],_0x27a401[_0x774027(0x179)]===_0x57ec60[_0x774027(0x16c)]);break;}}}));}};_0x593062=_0x5d6f8c([_0x207941(0x0,_0x5d5f2b['Inject'](_0x4da4ae[_0xe9beeb(0x1c9)])),_0x207941(0x1,_0x5d5f2b[_0xe9beeb(0x161)](_0x36ba33['ThreadCommentModel'])),_0x207941(0x2,_0x5d5f2b[_0xe9beeb(0x161)](_0x5d5f2b[_0xe9beeb(0x167)])),_0x207941(0x3,_0x5d5f2b['Inject'](_0x5d5f2b[_0xe9beeb(0x173)]))],_0x593062);const _0x5dea6c=_0xe9beeb(0x1be),_0x41af60={};var _0xfae299=Object['defineProperty'],_0x294186=Object['getOwnPropertyDescriptor'],_0x3ce243=(_0x4d70be,_0x3ec7ed,_0x4292b1,_0x54158b)=>{const _0x18bcae=_0xe9beeb;for(var _0x5cc753=_0x54158b>0x1?void 0x0:_0x54158b?_0x294186(_0x3ec7ed,_0x4292b1):_0x3ec7ed,_0x4678fe=_0x4d70be[_0x18bcae(0x1a4)]-0x1,_0xb12203;_0x4678fe>=0x0;_0x4678fe--)(_0xb12203=_0x4d70be[_0x4678fe])&&(_0x5cc753=(_0x54158b?_0xb12203(_0x3ec7ed,_0x4292b1,_0x5cc753):_0xb12203(_0x5cc753))||_0x5cc753);return _0x54158b&&_0x5cc753&&_0xfae299(_0x3ec7ed,_0x4292b1,_0x5cc753),_0x5cc753;},_0x2f3954=(_0x2a3645,_0xcb49c0)=>(_0x4f945e,_0x2678db)=>_0xcb49c0(_0x4f945e,_0x2678db,_0x2a3645);function _0x567b7a(_0x316e40,_0x4d7b97){const _0x9b2545=_0xe9beeb,_0x3a723e=_0x316e40['replies'][0x0];return{..._0x4d7b97,'id':_0x3a723e['replyId'],'resolved':_0x316e40[_0x9b2545(0x179)]===0x1,'dT':_0x5132c0(_0x3a723e[_0x9b2545(0x16f)]),'personId':_0x3a723e['userId'],'threadId':_0x3a723e[_0x9b2545(0x180)]};}function _0x15966c(_0x4f2a35,_0x4cdf64,_0x508941){const _0xa6029d=_0xe9beeb;var _0x4874a0,_0x1cd423;if(((_0x1cd423=(_0x4874a0=_0x4f2a35==null?void 0x0:_0x4f2a35[_0xa6029d(0x16a)])==null?void 0x0:_0x4874a0[_0xa6029d(0x1a4)])!=null?_0x1cd423:0x0)>0x0){const _0x4723fe=(_0x417b46,_0x49b184)=>({'id':_0x417b46[_0xa6029d(0x188)],'threadId':_0x417b46[_0xa6029d(0x180)],'dT':_0x5132c0(_0x417b46[_0xa6029d(0x16f)]),'personId':_0x417b46[_0xa6029d(0x16e)],'resolved':_0x4f2a35['solved']===_0x57ec60[_0xa6029d(0x16c)],'unitId':_0x4cdf64,'subUnitId':_0x508941,'text':JSON[_0xa6029d(0x197)](_0x417b46['content']),'parentId':_0x49b184}),_0x45d0ea=_0x4723fe(_0x4f2a35[_0xa6029d(0x16a)][0x0]);return{..._0x45d0ea,'children':_0x4f2a35[_0xa6029d(0x16a)][_0xa6029d(0x182)](0x1)[_0xa6029d(0x1a8)](_0x149989=>_0x4723fe(_0x149989,_0x45d0ea['id']))};}return null;}let _0x2e24ae=class{constructor(_0x458e02,_0x311cfc,_0x3f83cd,_0x492129){const _0x3c5dc3=_0xe9beeb;this['_httpService']=_0x458e02,this[_0x3c5dc3(0x15e)]=_0x311cfc,this['_sessionService']=_0x3f83cd,this[_0x3c5dc3(0x1e7)]=_0x492129;}async['addComment'](_0x2db063){const _0x4c7e96=_0xe9beeb;var _0x5db127,_0x5716d1;const {parentId:_0x261f07,unitId:_0x533cce,text:_0x359085,threadId:_0x232ba7}=_0x2db063,_0x47d774=(_0x5716d1=(_0x5db127=_0x359085[_0x4c7e96(0x1e3)])==null?void 0x0:_0x5db127[_0x4c7e96(0x19f)](_0x61e481=>_0x61e481['rangeType']===_0x5d5f2b[_0x4c7e96(0x17f)][_0x4c7e96(0x1a2)])[_0x4c7e96(0x1a8)](_0x472e42=>_0x472e42[_0x4c7e96(0x17d)]))!=null?_0x5716d1:[],_0x1a9b74=JSON[_0x4c7e96(0x16b)](_0x359085),_0x4236a5=(await this[_0x4c7e96(0x1da)][_0x4c7e96(0x1d1)](_0x533cce))[_0x4c7e96(0x1b5)]();if(_0x261f07){const _0x4558dc={'memberId':_0x4236a5,'unitId':_0x533cce,'content':_0x1a9b74,'mention':_0x47d774,'threadId':_0x232ba7},_0x364855=(await this[_0x4c7e96(0x1a3)][_0x4c7e96(0x1de)]('/universer-api/comment/unit/'+_0x533cce+'/reply',{'body':_0x4558dc}))[_0x4c7e96(0x1c1)][_0x4c7e96(0x1c4)];return{..._0x2db063,'id':_0x364855[_0x4c7e96(0x188)],'dT':_0x5d5f2b[_0x4c7e96(0x1e5)](+_0x364855['createTimestamp'])[_0x4c7e96(0x1ad)]('YYYY/MM/DD\x20HH:mm'),'personId':_0x364855[_0x4c7e96(0x16e)]};}else{const _0xf0c9cd={'memberId':_0x4236a5,'unitId':_0x533cce,'content':_0x1a9b74,'mention':_0x47d774},_0x5df67d=await this[_0x4c7e96(0x1a3)][_0x4c7e96(0x1de)](_0x4c7e96(0x1e6)+_0x533cce+_0x4c7e96(0x1d6),{'body':_0xf0c9cd});return _0x567b7a(_0x5df67d[_0x4c7e96(0x1c1)][_0x4c7e96(0x18f)],_0x2db063);}}async['updateComment'](_0xc0fbb4){const _0x3a79f6=_0xe9beeb;var _0x2fdf8f,_0x4a5848;const {text:_0x461a7e,unitId:_0x108990}=_0xc0fbb4,_0x6593f9=(_0x4a5848=(_0x2fdf8f=_0x461a7e[_0x3a79f6(0x1e3)])==null?void 0x0:_0x2fdf8f[_0x3a79f6(0x19f)](_0x20fa7f=>_0x20fa7f[_0x3a79f6(0x1e4)]===_0x5d5f2b['CustomRangeType'][_0x3a79f6(0x1a2)])[_0x3a79f6(0x1a8)](_0x69c9e2=>_0x69c9e2['rangeId']))!=null?_0x4a5848:[],_0xdd9994=JSON['stringify'](_0x461a7e),_0x3d243d=_0xc0fbb4['threadId'],_0x2ea500=_0xc0fbb4['id'],_0x2e4c95={'memberId':(await this[_0x3a79f6(0x1da)][_0x3a79f6(0x1d1)](_0x108990))[_0x3a79f6(0x1b5)](),'unitId':_0x108990,'threadId':_0x3d243d,'mention':_0x6593f9,'content':_0xdd9994,'replyId':_0x2ea500},_0xa943=await this[_0x3a79f6(0x1a3)][_0x3a79f6(0x1de)](_0x3a79f6(0x1e6)+_0x108990+_0x3a79f6(0x170),{'body':_0x2e4c95});return!_0xa943[_0x3a79f6(0x1c1)][_0x3a79f6(0x166)]||_0xa943[_0x3a79f6(0x1c1)]['error'][_0x3a79f6(0x1cc)]===0x1;}async[_0xe9beeb(0x1a9)](_0xe181b0){const _0x151af9=_0xe9beeb,{unitId:_0x49e31f}=_0xe181b0,_0x570fb6=_0xe181b0[_0x151af9(0x180)],_0x1d4d92={'memberId':this['_userService'][_0x151af9(0x162)]()[_0x151af9(0x19e)],'unitId':_0x49e31f,'threadId':_0x570fb6,'solved':_0xe181b0[_0x151af9(0x192)]?_0x57ec60[_0x151af9(0x16c)]:_0x57ec60[_0x151af9(0x1c6)]},_0x23f324=await this['_httpService'][_0x151af9(0x1de)](_0x151af9(0x1e6)+_0x49e31f+_0x151af9(0x175),{'body':_0x1d4d92});return!_0x23f324[_0x151af9(0x1c1)][_0x151af9(0x166)]||_0x23f324[_0x151af9(0x1c1)]['error'][_0x151af9(0x1cc)]===0x1;}async[_0xe9beeb(0x1b0)](_0xe4260,_0x12d0a3,_0x596b54,_0x255d7b){const _0x226b3e=_0xe9beeb,_0x18ed95={'memberId':(await this[_0x226b3e(0x1da)][_0x226b3e(0x1d1)](_0xe4260))[_0x226b3e(0x1b5)](),'threadId':_0x596b54,'replyId':_0x255d7b,'unitId':_0xe4260},_0x1456b3=await this[_0x226b3e(0x1a3)][_0x226b3e(0x1de)]('/universer-api/comment/unit/'+_0xe4260+_0x226b3e(0x1e1),{'body':_0x18ed95});return!_0x1456b3[_0x226b3e(0x1c1)][_0x226b3e(0x166)]||_0x1456b3[_0x226b3e(0x1c1)][_0x226b3e(0x166)][_0x226b3e(0x1cc)]===0x1;}async['listComments'](_0x57d6fc,_0x3bc8df,_0x5f1c5f){const _0x480d21=_0xe9beeb,_0x1fb1e={'unitId':_0x57d6fc,'threadId':_0x5f1c5f},_0x216745=await this[_0x480d21(0x1a3)]['post'](_0x480d21(0x1e6)+_0x57d6fc+_0x480d21(0x1bd),{'body':_0x1fb1e}),_0x18516b=_0x5f1c5f['map'](_0xbe5751=>_0x15966c(_0x216745[_0x480d21(0x1c1)][_0x480d21(0x18c)][_0xbe5751],_0x57d6fc,_0x3bc8df))[_0x480d21(0x19f)](Boolean);return Object[_0x480d21(0x1d0)](_0x216745[_0x480d21(0x1c1)][_0x480d21(0x1cb)])[_0x480d21(0x1ce)](_0x5b5558=>{const _0xdbf7b3=_0x480d21;this[_0xdbf7b3(0x15e)]['addUser'](_0x5b5558);}),_0x18516b;}[_0xe9beeb(0x190)](_0x16520a){const _0x15e38d=_0xe9beeb;return{'id':_0x16520a['id'],'threadId':_0x16520a[_0x15e38d(0x180)],'ref':_0x16520a[_0x15e38d(0x183)]};}};_0x2e24ae=_0x3ce243([_0x2f3954(0x0,_0x5d5f2b[_0xe9beeb(0x161)](_0x2fd745[_0xe9beeb(0x195)])),_0x2f3954(0x1,_0x5d5f2b[_0xe9beeb(0x161)](_0x5d5f2b['UserManagerService'])),_0x2f3954(0x2,_0x5d5f2b[_0xe9beeb(0x161)](_0x4da4ae['CollaborationSessionService'])),_0x2f3954(0x3,_0x5d5f2b[_0xe9beeb(0x161)](_0x5d5f2b[_0xe9beeb(0x173)]))],_0x2e24ae);var _0x349fdb=Object[_0xe9beeb(0x1df)],_0x47d0e7=Object[_0xe9beeb(0x1ca)],_0x215a9b=(_0x271412,_0x5239fd,_0x5ac70b,_0x6ca36b)=>{const _0x3bc45d=_0xe9beeb;for(var _0x30aff5=_0x6ca36b>0x1?void 0x0:_0x6ca36b?_0x47d0e7(_0x5239fd,_0x5ac70b):_0x5239fd,_0x3e133b=_0x271412[_0x3bc45d(0x1a4)]-0x1,_0x516b78;_0x3e133b>=0x0;_0x3e133b--)(_0x516b78=_0x271412[_0x3e133b])&&(_0x30aff5=(_0x6ca36b?_0x516b78(_0x5239fd,_0x5ac70b,_0x30aff5):_0x516b78(_0x30aff5))||_0x30aff5);return _0x6ca36b&&_0x30aff5&&_0x349fdb(_0x5239fd,_0x5ac70b,_0x30aff5),_0x30aff5;},_0xc20105=(_0x560038,_0x34139b)=>(_0x4fa05b,_0x543470)=>_0x34139b(_0x4fa05b,_0x543470,_0x560038);let _0x34a33a=class extends _0x5d5f2b[_0xe9beeb(0x1bf)]{constructor(_0x509199,_0x402f64){const _0x315f2b=_0xe9beeb;super(),this[_0x315f2b(0x1a0)]=_0x509199,this[_0x315f2b(0x1c5)]=_0x402f64,this[_0x315f2b(0x194)]();}['_initDataSource'](){const _0x5ddd5c=_0xe9beeb;this[_0x5ddd5c(0x1a0)][_0x5ddd5c(0x198)]=this[_0x5ddd5c(0x1c5)],this[_0x5ddd5c(0x1a0)][_0x5ddd5c(0x17b)]=!0x1;}};_0x34a33a=_0x215a9b([_0xc20105(0x0,_0x36ba33[_0xe9beeb(0x1d5)]),_0xc20105(0x1,_0x5d5f2b[_0xe9beeb(0x161)](_0x2e24ae))],_0x34a33a);var _0x5bcf3e=Object[_0xe9beeb(0x1df)],_0x548a08=Object[_0xe9beeb(0x1ca)],_0x4fbeb1=(_0x4ea78a,_0x34effc,_0x3f838c)=>_0x34effc in _0x4ea78a?_0x5bcf3e(_0x4ea78a,_0x34effc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f838c}):_0x4ea78a[_0x34effc]=_0x3f838c,_0x5969fd=(_0x4cce18,_0x470a61,_0xeb40e1,_0x16d7c9)=>{const _0x4d1ae3=_0xe9beeb;for(var _0x209c3f=_0x16d7c9>0x1?void 0x0:_0x16d7c9?_0x548a08(_0x470a61,_0xeb40e1):_0x470a61,_0x5bb6e0=_0x4cce18[_0x4d1ae3(0x1a4)]-0x1,_0x912790;_0x5bb6e0>=0x0;_0x5bb6e0--)(_0x912790=_0x4cce18[_0x5bb6e0])&&(_0x209c3f=(_0x16d7c9?_0x912790(_0x470a61,_0xeb40e1,_0x209c3f):_0x912790(_0x209c3f))||_0x209c3f);return _0x16d7c9&&_0x209c3f&&_0x5bcf3e(_0x470a61,_0xeb40e1,_0x209c3f),_0x209c3f;},_0x3f26a0=(_0x169e8e,_0x1459ad)=>(_0x407854,_0x4356fb)=>_0x1459ad(_0x407854,_0x4356fb,_0x169e8e),_0x133698=(_0x3c387b,_0x5572cb,_0x1a5309)=>_0x4fbeb1(_0x3c387b,typeof _0x5572cb!='symbol'?_0x5572cb+'':_0x5572cb,_0x1a5309);_0x34be8e[_0xe9beeb(0x165)]=class extends _0x5d5f2b[_0xe9beeb(0x1d4)]{constructor(_0x61d2f3=_0x41af60,_0x5558aa,_0x301f34){const _0x4397c1=_0xe9beeb;super(),this[_0x4397c1(0x1b4)]=_0x61d2f3,this[_0x4397c1(0x1e7)]=_0x5558aa,this['_configService']=_0x301f34;const {..._0x773c11}=this[_0x4397c1(0x1b4)];this['_configService'][_0x4397c1(0x1a7)](_0x5dea6c,_0x773c11);}[_0xe9beeb(0x169)](){const _0x45b93e=_0xe9beeb;[[_0x2e24ae],[_0x34a33a],[_0x593062]][_0x45b93e(0x1ce)](_0x51b3c2=>{const _0x2b537b=_0x45b93e;this[_0x2b537b(0x1e7)][_0x2b537b(0x1dc)](_0x51b3c2);});}['onReady'](){const _0x33ba2e=_0xe9beeb;this[_0x33ba2e(0x1e7)]['get'](_0x34a33a),this[_0x33ba2e(0x1e7)][_0x33ba2e(0x160)](_0x593062);}},_0x133698(_0x34be8e[_0xe9beeb(0x165)],_0xe9beeb(0x181),_0xb23504),_0x133698(_0x34be8e[_0xe9beeb(0x165)],'type',_0x5d5f2b['UniverInstanceType'][_0xe9beeb(0x189)]),_0x34be8e[_0xe9beeb(0x165)]=_0x5969fd([_0x5d5f2b[_0xe9beeb(0x164)](_0x1df32a[_0xe9beeb(0x1dd)],_0x4da4ae[_0xe9beeb(0x1aa)],_0x50aa3b[_0xe9beeb(0x1b8)]),_0x3f26a0(0x1,_0x5d5f2b[_0xe9beeb(0x161)](_0x5d5f2b[_0xe9beeb(0x173)])),_0x3f26a0(0x2,_0x5d5f2b[_0xe9beeb(0x1ac)])],_0x34be8e[_0xe9beeb(0x165)]),Object['defineProperty'](_0x34be8e,Symbol[_0xe9beeb(0x1c8)],{'value':'Module'});}));function _0x3da8(_0x15caca,_0xfd0996){const _0x140457=_0x1404();return _0x3da8=function(_0x3da82b,_0x47d698){_0x3da82b=_0x3da82b-0x15e;let _0x33cee9=_0x140457[_0x3da82b];return _0x33cee9;},_0x3da8(_0x15caca,_0xfd0996);}function _0x1404(){const _0x4ee04a=['Unknown','Injector','@univerjs/thread-comment-ui','/solved','_initUserSync','@univerjs-pro/license','UniverNetwork','solved','UNRECOGNIZED','syncUpdateMutationToColla','1128742kRePLo','rangeId','UniverThreadCommentUi','CustomRangeType','threadId','pluginName','slice','ref','_threadCommentModel','@univerjs/thread-comment','root','UniverThreadComment','replyId','UNIVER_UNKNOWN','commentUpdate$','payload','comments','pipe','bufferTime','comment','saveCommentToSnapshot','8fxXVHF','resolved','addUser','_initDataSource','HTTPService','@univerjs/core','parse','dataSource','1275380gmAvgK','getUser','Solve','user','unitId','userID','filter','_threadCommentDataSourceService','Reply','COMMENT','_httpService','length','_init','exports','setConfig','map','resolveComment','UniverCollaborationClientPlugin','723276clVbKA','IConfigService','format','11rDoLpN','3670776vGmuxB','deleteComment','2923266RvGBRH','function','@univerjs/network','_config','getMemberID','1aUubsu','Delete','UniverLicensePlugin','UniverCore','6163332jpbuzE','Add','YYYY/MM/DD\x20HH:mm','/list','thread-comment-data-source.config','Disposable','object','body','size','disposeWithMe','reply','_threadCommentDataSource','OpenOrReOpen','40701170eTJDTw','toStringTag','CommentService','getOwnPropertyDescriptor','users','code','rxjs','forEach','parentId','values','requireSession','UniverProLicense','content','Plugin','IThreadCommentDataSourceService','/add','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','_commentService','amd','_sessionService','type','add','UniverThreadCommentUIPlugin','post','defineProperty','subscribe','/delete','delete','customRanges','rangeType','dayjs','/universer-api/comment/unit/','_injector','_userService','Edit','get','Inject','getCurrentUser','personId','DependentOn','UniverThreadCommentDataSourcePlugin','error','UserManagerService','36cuMkjy','onStarting','replies','stringify','Solved','getUnit','userId','createTimestamp','/edit','find'];_0x1404=function(){return _0x4ee04a;};return _0x1404();}
1
+ function _0x4218(){const _0x27145b=['/universer-api/user/list','getComment','object','HTTPService','unitId','Solved','Add','@univerjs/core','_threadCommentDataSourceService','UniverThreadComment','275BPHlQk','length','format','type','Injector','_initDataSource','replyId','addUser','add','Plugin','UniverThreadCommentUi','onReady','map','UniverLicensePlugin','_threadCommentDataSource','deleteComment','Solve','rangeId','COMMENT','payload','ref','_sessionService','resolveComment','symbol','14539URCYnM','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','1672206yNXOiE','pluginName','content','saveCommentToSnapshot','exports','defineProperty','userId','_configService','42808QQpeVF','body','listComments','parse','personId','delete','UniverThreadCommentDataSourcePlugin','UniverCore','getUser','/solved','get','bufferTime','_httpService','_initUserSync','addComment','/list','users','/edit','1997545FdXMer','CollaborationSessionService','UniverInstanceType','filter','46kmqFeD','9vpVfEE','_injector','Module','subscribe','createTimestamp','updateComment','reply','toStringTag','_commentService','UniverCollaborationClientPlugin','/reply','stringify','Edit','Delete','7090712yAvFaQ','post','/universer-api/comment/unit/','amd','@univerjs-pro/license','customRanges','UNIVER_UNKNOWN','Disposable','UniverNetwork','rxjs','Unknown','Inject','user','comments','root','onStarting','Reply','requireSession','code','slice','UniverProCollaborationClient','@univerjs/thread-comment-ui','solved','parentId','values','21TfBMqp','size','getMemberID','UserManagerService','_userService','function','error','UNRECOGNIZED','thread-comment-data-source.config','comment','YYYY/MM/DD\x20HH:mm','_threadCommentModel','958600vkWsOE','CustomRangeType','IThreadCommentDataSourceService','pipe','IConfigService','CommentService','setConfig','@univerjs-pro/collaboration-client','_init','syncUpdateMutationToColla','OpenOrReOpen','dayjs','forEach','replies','getUnit','threadId','251445UhRvjr','find','getOwnPropertyDescriptor','rangeType','commentUpdate$','@univerjs/thread-comment','UniverProLicense','_config','/delete'];_0x4218=function(){return _0x27145b;};return _0x4218();}function _0x529c(_0x461b5a,_0x5a4aa0){const _0x42180b=_0x4218();return _0x529c=function(_0x529c71,_0x3ce98c){_0x529c71=_0x529c71-0xea;let _0x84d9b5=_0x42180b[_0x529c71];return _0x84d9b5;},_0x529c(_0x461b5a,_0x5a4aa0);}(function(_0x2b6c94,_0x4c2740){const _0x567db1=_0x529c,_0x580f66=_0x2b6c94();while(!![]){try{const _0x227dbc=parseInt(_0x567db1(0x14c))/0x1*(parseInt(_0x567db1(0x16c))/0x2)+-parseInt(_0x567db1(0x121))/0x3+-parseInt(_0x567db1(0x156))/0x4*(-parseInt(_0x567db1(0x134))/0x5)+parseInt(_0x567db1(0x14e))/0x6*(parseInt(_0x567db1(0x105))/0x7)+parseInt(_0x567db1(0xec))/0x8*(-parseInt(_0x567db1(0x16d))/0x9)+-parseInt(_0x567db1(0x111))/0xa+-parseInt(_0x567db1(0x168))/0xb;if(_0x227dbc===_0x4c2740)break;else _0x580f66['push'](_0x580f66['shift']());}catch(_0x216f56){_0x580f66['push'](_0x580f66['shift']());}}}(_0x4218,0x7ce0d),function(_0x539fa5,_0x444189){const _0x48ab7f=_0x529c;typeof exports==_0x48ab7f(0x12c)&&typeof module<'u'?_0x444189(exports,require(_0x48ab7f(0x118)),require(_0x48ab7f(0xf0)),require(_0x48ab7f(0x131)),require(_0x48ab7f(0x101)),require(_0x48ab7f(0x126)),require(_0x48ab7f(0xf5)),require('@univerjs/network')):typeof define==_0x48ab7f(0x10a)&&define[_0x48ab7f(0xef)]?define([_0x48ab7f(0x152),_0x48ab7f(0x118),_0x48ab7f(0xf0),_0x48ab7f(0x131),_0x48ab7f(0x101),_0x48ab7f(0x126),_0x48ab7f(0xf5),'@univerjs/network'],_0x444189):(_0x539fa5=typeof globalThis<'u'?globalThis:_0x539fa5||self,_0x444189(_0x539fa5['UniverProThreadCommentDatasource']={},_0x539fa5[_0x48ab7f(0x100)],_0x539fa5[_0x48ab7f(0x127)],_0x539fa5[_0x48ab7f(0x15d)],_0x539fa5[_0x48ab7f(0x13e)],_0x539fa5[_0x48ab7f(0x133)],_0x539fa5[_0x48ab7f(0xf5)],_0x539fa5[_0x48ab7f(0xf4)]));}(this,function(_0x589b2d,_0x18f121,_0x11f48a,_0x4f6d1e,_0x43a49e,_0xb0304f,_0x2619c6,_0x222017){'use strict';const _0x1bd4f3=_0x529c;const _0x3f063c=_0x1bd4f3(0x14d);var _0x1ae90b=(_0x3aa550=>(_0x3aa550[_0x3aa550[_0x1bd4f3(0x11b)]=0x0]=_0x1bd4f3(0x11b),_0x3aa550[_0x3aa550['Solved']=0x1]=_0x1bd4f3(0x12f),_0x3aa550[_0x3aa550[_0x1bd4f3(0x10c)]=-0x1]=_0x1bd4f3(0x10c),_0x3aa550))(_0x1ae90b||{}),_0x12d8c0=(_0x3a83f6=>(_0x3a83f6[_0x3a83f6['Unknown']=0x0]=_0x1bd4f3(0xf6),_0x3a83f6[_0x3a83f6['Add']=0x1]=_0x1bd4f3(0x130),_0x3a83f6[_0x3a83f6[_0x1bd4f3(0xfc)]=0x2]=_0x1bd4f3(0xfc),_0x3a83f6[_0x3a83f6['Edit']=0x3]='Edit',_0x3a83f6[_0x3a83f6[_0x1bd4f3(0xeb)]=0x4]=_0x1bd4f3(0xeb),_0x3a83f6[_0x3a83f6[_0x1bd4f3(0x144)]=0x5]=_0x1bd4f3(0x144),_0x3a83f6[_0x3a83f6[_0x1bd4f3(0x10c)]=-0x1]=_0x1bd4f3(0x10c),_0x3a83f6))(_0x12d8c0||{});const _0x32ad5b=_0x58c34d=>_0x4f6d1e[_0x1bd4f3(0x11c)](new Date(+_0x58c34d))[_0x1bd4f3(0x136)](_0x1bd4f3(0x10f)),_0x1ddc7f=async(_0x4ec333,_0x1277d6)=>{const _0x65d601=_0x1bd4f3,_0x16a650=_0x4ec333[_0x65d601(0x160)](_0x4f6d1e[_0x65d601(0x108)]),_0x363b78=_0x4ec333[_0x65d601(0x160)](_0x222017[_0x65d601(0x12d)]);_0x1277d6[_0x65d601(0x11d)](_0x4a0ca8=>{const _0x1b791f=_0x65d601;_0x16a650[_0x1b791f(0x15e)](_0x4a0ca8)&&_0x1277d6[_0x1b791f(0x15b)](_0x4a0ca8);}),_0x1277d6[_0x65d601(0x106)]&&(await _0x363b78[_0x65d601(0x160)](_0x65d601(0x12a),{'params':{'userIDs':[..._0x1277d6]}}))[_0x65d601(0x157)][_0x65d601(0x166)]['forEach'](_0x355969=>{const _0x390083=_0x65d601;_0x355969&&_0x16a650[_0x390083(0x13b)](_0x355969);});};var _0x339582=Object['defineProperty'],_0x5eeab1=Object[_0x1bd4f3(0x123)],_0x386c47=(_0x3449a3,_0x5d5e1d,_0x528f4f,_0x18124a)=>{const _0x5b3765=_0x1bd4f3;for(var _0x43567f=_0x18124a>0x1?void 0x0:_0x18124a?_0x5eeab1(_0x5d5e1d,_0x528f4f):_0x5d5e1d,_0x89b382=_0x3449a3[_0x5b3765(0x135)]-0x1,_0x3a91f9;_0x89b382>=0x0;_0x89b382--)(_0x3a91f9=_0x3449a3[_0x89b382])&&(_0x43567f=(_0x18124a?_0x3a91f9(_0x5d5e1d,_0x528f4f,_0x43567f):_0x3a91f9(_0x43567f))||_0x43567f);return _0x18124a&&_0x43567f&&_0x339582(_0x5d5e1d,_0x528f4f,_0x43567f),_0x43567f;},_0xf8c003=(_0x428d84,_0x5adfce)=>(_0xe89c18,_0x4d88d2)=>_0x5adfce(_0xe89c18,_0x4d88d2,_0x428d84);let _0x11eb1b=class extends _0x4f6d1e[_0x1bd4f3(0xf3)]{constructor(_0xb4912b,_0x426a2a,_0x442135,_0x211a54){const _0x3b9364=_0x1bd4f3;super(),this['_commentService']=_0xb4912b,this['_threadCommentModel']=_0x426a2a,this[_0x3b9364(0x109)]=_0x442135,this[_0x3b9364(0x16e)]=_0x211a54,this[_0x3b9364(0x119)](),this['_initUserSync']();}[_0x1bd4f3(0x163)](){const _0x45e963=_0x1bd4f3;this['disposeWithMe'](this[_0x45e963(0x110)][_0x45e963(0x125)][_0x45e963(0x114)](_0x2619c6[_0x45e963(0x161)](0x10))[_0x45e963(0x170)](_0x432550=>{const _0x2f049f=_0x45e963,_0x26989e=new Set();_0x432550['forEach'](_0x4c1436=>{const _0x1b7317=_0x529c;switch(_0x4c1436[_0x1b7317(0x137)]){case'add':{const _0x39660a=_0x4c1436[_0x1b7317(0x147)][_0x1b7317(0x15a)];_0x26989e[_0x1b7317(0x13c)](_0x39660a);break;}}}),_0x1ddc7f(this[_0x2f049f(0x16e)],_0x26989e);}));}[_0x1bd4f3(0x119)](){const _0x1f95b1=_0x1bd4f3;this['disposeWithMe'](this[_0x1f95b1(0x175)][_0x1f95b1(0x125)]['subscribe'](async _0x75d644=>{const _0x50489d=_0x1f95b1;var _0x3c5e16,_0x1debe8,_0x40db67,_0x10f1cd;const _0x37667f=(_0x3c5e16=this[_0x50489d(0x110)][_0x50489d(0x11f)](_0x75d644[_0x50489d(0x12e)])['find'](_0x5b7179=>_0x5b7179[_0x50489d(0x120)]===_0x75d644[_0x50489d(0x120)]))==null?void 0x0:_0x3c5e16[_0x50489d(0xfa)];if(!_0x37667f)return;const {unitId:_0x539c56,subUnitId:_0x450bb0}=_0x37667f;switch(_0x75d644['user']&&this['_userService'][_0x50489d(0x13b)](_0x75d644[_0x50489d(0xf8)]),_0x75d644[_0x50489d(0x137)]){case _0x12d8c0[_0x50489d(0x130)]:break;case _0x12d8c0[_0x50489d(0xfc)]:{this[_0x50489d(0x110)][_0x50489d(0x164)](_0x539c56,_0x450bb0,{'unitId':_0x539c56,'subUnitId':_0x450bb0,'ref':'','id':_0x75d644[_0x50489d(0x13a)],'dT':_0x32ad5b(+_0x75d644['createTimestamp']),'threadId':_0x75d644[_0x50489d(0x120)],'personId':(_0x40db67=(_0x1debe8=_0x75d644[_0x50489d(0xf8)])==null?void 0x0:_0x1debe8['userID'])!=null?_0x40db67:_0x75d644[_0x50489d(0x154)],'text':JSON['parse'](_0x75d644[_0x50489d(0x150)]),'parentId':_0x37667f['id']});break;}case _0x12d8c0[_0x50489d(0xeb)]:{const _0x476af9=this[_0x50489d(0x110)][_0x50489d(0x12b)](_0x539c56,_0x450bb0,_0x75d644[_0x50489d(0x13a)]);_0x476af9&&_0x476af9[_0x50489d(0x103)]&&this['_threadCommentModel'][_0x50489d(0x143)](_0x539c56,_0x450bb0,_0x75d644['replyId']);break;}case _0x12d8c0[_0x50489d(0xea)]:{this[_0x50489d(0x110)][_0x50489d(0x172)](_0x539c56,_0x450bb0,{'commentId':_0x75d644['replyId'],'text':JSON[_0x50489d(0x159)](_0x75d644[_0x50489d(0x150)])});break;}case _0x12d8c0[_0x50489d(0x144)]:{const _0x4bfddf=(_0x10f1cd=this[_0x50489d(0x110)][_0x50489d(0x11f)](_0x75d644[_0x50489d(0x12e)])[_0x50489d(0x122)](_0x2c625b=>_0x2c625b[_0x50489d(0x120)]===_0x75d644['threadId']))==null?void 0x0:_0x10f1cd['root'];_0x4bfddf&&this[_0x50489d(0x110)][_0x50489d(0x14a)](_0x539c56,_0x450bb0,_0x4bfddf['id'],_0x75d644['solved']===_0x1ae90b[_0x50489d(0x12f)]);break;}}}));}};_0x11eb1b=_0x386c47([_0xf8c003(0x0,_0x4f6d1e[_0x1bd4f3(0xf7)](_0x18f121[_0x1bd4f3(0x116)])),_0xf8c003(0x1,_0x4f6d1e[_0x1bd4f3(0xf7)](_0xb0304f['ThreadCommentModel'])),_0xf8c003(0x2,_0x4f6d1e[_0x1bd4f3(0xf7)](_0x4f6d1e[_0x1bd4f3(0x108)])),_0xf8c003(0x3,_0x4f6d1e['Inject'](_0x4f6d1e[_0x1bd4f3(0x138)]))],_0x11eb1b);const _0x4a61aa=_0x1bd4f3(0x10d),_0x1e96ed={};var _0x5acda8=Object[_0x1bd4f3(0x153)],_0x154254=Object[_0x1bd4f3(0x123)],_0x1ca029=(_0x116c39,_0x267566,_0x4df617,_0x14e7b0)=>{const _0x4f9c61=_0x1bd4f3;for(var _0x10433f=_0x14e7b0>0x1?void 0x0:_0x14e7b0?_0x154254(_0x267566,_0x4df617):_0x267566,_0x15a9a3=_0x116c39[_0x4f9c61(0x135)]-0x1,_0x497a0e;_0x15a9a3>=0x0;_0x15a9a3--)(_0x497a0e=_0x116c39[_0x15a9a3])&&(_0x10433f=(_0x14e7b0?_0x497a0e(_0x267566,_0x4df617,_0x10433f):_0x497a0e(_0x10433f))||_0x10433f);return _0x14e7b0&&_0x10433f&&_0x5acda8(_0x267566,_0x4df617,_0x10433f),_0x10433f;},_0x384208=(_0x4abc30,_0x2bffc4)=>(_0x4c9706,_0x5d146c)=>_0x2bffc4(_0x4c9706,_0x5d146c,_0x4abc30);function _0x1a559a(_0x5d060a,_0x3ce309){const _0x211345=_0x1bd4f3,_0x3f0088=_0x5d060a[_0x211345(0x11e)][0x0];return{..._0x3ce309,'id':_0x3f0088['replyId'],'resolved':_0x5d060a[_0x211345(0x102)]===0x1,'dT':_0x32ad5b(_0x3f0088[_0x211345(0x171)]),'personId':_0x3f0088[_0x211345(0x154)],'threadId':_0x3f0088['threadId']};}function _0x54dcf0(_0x1385fc,_0x31e2c1,_0x9bf18e){const _0x3aeecc=_0x1bd4f3;var _0x4c61df,_0x24b558;if(((_0x24b558=(_0x4c61df=_0x1385fc==null?void 0x0:_0x1385fc['replies'])==null?void 0x0:_0x4c61df[_0x3aeecc(0x135)])!=null?_0x24b558:0x0)>0x0){const _0x422d3e=(_0x5bc40d,_0x15075d)=>({'id':_0x5bc40d[_0x3aeecc(0x13a)],'threadId':_0x5bc40d[_0x3aeecc(0x120)],'dT':_0x32ad5b(_0x5bc40d['createTimestamp']),'personId':_0x5bc40d[_0x3aeecc(0x154)],'resolved':_0x1385fc[_0x3aeecc(0x102)]===_0x1ae90b[_0x3aeecc(0x12f)],'unitId':_0x31e2c1,'subUnitId':_0x9bf18e,'text':JSON[_0x3aeecc(0x159)](_0x5bc40d[_0x3aeecc(0x150)]),'parentId':_0x15075d}),_0x457d39=_0x422d3e(_0x1385fc[_0x3aeecc(0x11e)][0x0]);return{..._0x457d39,'children':_0x1385fc[_0x3aeecc(0x11e)][_0x3aeecc(0xff)](0x1)[_0x3aeecc(0x140)](_0x155858=>_0x422d3e(_0x155858,_0x457d39['id']))};}return null;}let _0xc14cec=class{constructor(_0x3060fb,_0x1bae04,_0x2b5a32,_0x3bb51d){const _0x4da34=_0x1bd4f3;this[_0x4da34(0x162)]=_0x3060fb,this[_0x4da34(0x109)]=_0x1bae04,this[_0x4da34(0x149)]=_0x2b5a32,this[_0x4da34(0x16e)]=_0x3bb51d;}async[_0x1bd4f3(0x164)](_0x12e856){const _0x4bf82f=_0x1bd4f3;var _0x3b9a8e,_0x3fa3c9;const {parentId:_0x27ef5c,unitId:_0x36c0d8,text:_0x25c85a,threadId:_0x12b7d}=_0x12e856,_0x59dfb6=(_0x3fa3c9=(_0x3b9a8e=_0x25c85a[_0x4bf82f(0xf1)])==null?void 0x0:_0x3b9a8e[_0x4bf82f(0x16b)](_0xef26ab=>_0xef26ab[_0x4bf82f(0x124)]===_0x4f6d1e[_0x4bf82f(0x112)][_0x4bf82f(0x146)])[_0x4bf82f(0x140)](_0x32737e=>_0x32737e['rangeId']))!=null?_0x3fa3c9:[],_0x4b3aab=JSON[_0x4bf82f(0x178)](_0x25c85a),_0x325497=(await this[_0x4bf82f(0x149)]['requireSession'](_0x36c0d8))[_0x4bf82f(0x107)]();if(_0x27ef5c){const _0xea3fdf={'memberId':_0x325497,'unitId':_0x36c0d8,'content':_0x4b3aab,'mention':_0x59dfb6,'threadId':_0x12b7d},_0x4d82fe=(await this[_0x4bf82f(0x162)]['post'](_0x4bf82f(0xee)+_0x36c0d8+_0x4bf82f(0x177),{'body':_0xea3fdf}))['body'][_0x4bf82f(0x173)];return{..._0x12e856,'id':_0x4d82fe[_0x4bf82f(0x13a)],'dT':_0x4f6d1e[_0x4bf82f(0x11c)](+_0x4d82fe[_0x4bf82f(0x171)])['format'](_0x4bf82f(0x10f)),'personId':_0x4d82fe[_0x4bf82f(0x154)]};}else{const _0x599e24={'memberId':_0x325497,'unitId':_0x36c0d8,'content':_0x4b3aab,'mention':_0x59dfb6},_0x425542=await this[_0x4bf82f(0x162)][_0x4bf82f(0xed)]('/universer-api/comment/unit/'+_0x36c0d8+'/add',{'body':_0x599e24});return _0x1a559a(_0x425542['body'][_0x4bf82f(0x10e)],_0x12e856);}}async['updateComment'](_0x55ed90){const _0x47828a=_0x1bd4f3;var _0x5ed0c2,_0x447743;const {text:_0x4c61d9,unitId:_0x1f589b}=_0x55ed90,_0x12bf55=(_0x447743=(_0x5ed0c2=_0x4c61d9['customRanges'])==null?void 0x0:_0x5ed0c2[_0x47828a(0x16b)](_0x46d569=>_0x46d569[_0x47828a(0x124)]===_0x4f6d1e[_0x47828a(0x112)][_0x47828a(0x146)])[_0x47828a(0x140)](_0x4edd9c=>_0x4edd9c[_0x47828a(0x145)]))!=null?_0x447743:[],_0x4426fd=JSON[_0x47828a(0x178)](_0x4c61d9),_0x4175ae=_0x55ed90[_0x47828a(0x120)],_0x1a9a4c=_0x55ed90['id'],_0xa992f9={'memberId':(await this['_sessionService']['requireSession'](_0x1f589b))[_0x47828a(0x107)](),'unitId':_0x1f589b,'threadId':_0x4175ae,'mention':_0x12bf55,'content':_0x4426fd,'replyId':_0x1a9a4c},_0x55a85d=await this[_0x47828a(0x162)][_0x47828a(0xed)](_0x47828a(0xee)+_0x1f589b+_0x47828a(0x167),{'body':_0xa992f9});return!_0x55a85d['body'][_0x47828a(0x10b)]||_0x55a85d[_0x47828a(0x157)][_0x47828a(0x10b)]['code']===0x1;}async[_0x1bd4f3(0x14a)](_0x180b41){const _0x824a3e=_0x1bd4f3,{unitId:_0x2b4ef8}=_0x180b41,_0x548a2c=_0x180b41[_0x824a3e(0x120)],_0x5d896c={'memberId':this[_0x824a3e(0x109)]['getCurrentUser']()['userID'],'unitId':_0x2b4ef8,'threadId':_0x548a2c,'solved':_0x180b41['resolved']?_0x1ae90b[_0x824a3e(0x12f)]:_0x1ae90b[_0x824a3e(0x11b)]},_0x59b543=await this[_0x824a3e(0x162)]['post']('/universer-api/comment/unit/'+_0x2b4ef8+_0x824a3e(0x15f),{'body':_0x5d896c});return!_0x59b543[_0x824a3e(0x157)][_0x824a3e(0x10b)]||_0x59b543[_0x824a3e(0x157)][_0x824a3e(0x10b)][_0x824a3e(0xfe)]===0x1;}async[_0x1bd4f3(0x143)](_0x3fb0a2,_0x1f1771,_0x12d10c,_0x506725){const _0x5d4fe0=_0x1bd4f3,_0x3f7b5a={'memberId':(await this[_0x5d4fe0(0x149)][_0x5d4fe0(0xfd)](_0x3fb0a2))[_0x5d4fe0(0x107)](),'threadId':_0x12d10c,'replyId':_0x506725,'unitId':_0x3fb0a2},_0x42b2e7=await this[_0x5d4fe0(0x162)]['post']('/universer-api/comment/unit/'+_0x3fb0a2+_0x5d4fe0(0x129),{'body':_0x3f7b5a});return!_0x42b2e7[_0x5d4fe0(0x157)]['error']||_0x42b2e7[_0x5d4fe0(0x157)][_0x5d4fe0(0x10b)][_0x5d4fe0(0xfe)]===0x1;}async[_0x1bd4f3(0x158)](_0x27890c,_0x16aa08,_0x5a0f21){const _0x5e57d3=_0x1bd4f3,_0x2211d2={'unitId':_0x27890c,'threadId':_0x5a0f21},_0x4a5e54=await this['_httpService']['post']('/universer-api/comment/unit/'+_0x27890c+_0x5e57d3(0x165),{'body':_0x2211d2}),_0x3e94ec=_0x5a0f21[_0x5e57d3(0x140)](_0x2ed579=>_0x54dcf0(_0x4a5e54[_0x5e57d3(0x157)][_0x5e57d3(0xf9)][_0x2ed579],_0x27890c,_0x16aa08))['filter'](Boolean);return Object[_0x5e57d3(0x104)](_0x4a5e54[_0x5e57d3(0x157)][_0x5e57d3(0x166)])[_0x5e57d3(0x11d)](_0x5c3b7b=>{const _0xc1ea27=_0x5e57d3;this[_0xc1ea27(0x109)][_0xc1ea27(0x13b)](_0x5c3b7b);}),_0x3e94ec;}[_0x1bd4f3(0x151)](_0x3840cc){const _0x3a4da9=_0x1bd4f3;return{'id':_0x3840cc['id'],'threadId':_0x3840cc[_0x3a4da9(0x120)],'ref':_0x3840cc[_0x3a4da9(0x148)]};}};_0xc14cec=_0x1ca029([_0x384208(0x0,_0x4f6d1e['Inject'](_0x222017[_0x1bd4f3(0x12d)])),_0x384208(0x1,_0x4f6d1e[_0x1bd4f3(0xf7)](_0x4f6d1e[_0x1bd4f3(0x108)])),_0x384208(0x2,_0x4f6d1e['Inject'](_0x18f121[_0x1bd4f3(0x169)])),_0x384208(0x3,_0x4f6d1e[_0x1bd4f3(0xf7)](_0x4f6d1e['Injector']))],_0xc14cec);var _0x2c8974=Object[_0x1bd4f3(0x153)],_0x49b74c=Object['getOwnPropertyDescriptor'],_0x378042=(_0x591a75,_0x3ab7aa,_0xbbb4c7,_0x13c5af)=>{const _0x454cb5=_0x1bd4f3;for(var _0x80766a=_0x13c5af>0x1?void 0x0:_0x13c5af?_0x49b74c(_0x3ab7aa,_0xbbb4c7):_0x3ab7aa,_0x2e86e0=_0x591a75[_0x454cb5(0x135)]-0x1,_0xe5ec9b;_0x2e86e0>=0x0;_0x2e86e0--)(_0xe5ec9b=_0x591a75[_0x2e86e0])&&(_0x80766a=(_0x13c5af?_0xe5ec9b(_0x3ab7aa,_0xbbb4c7,_0x80766a):_0xe5ec9b(_0x80766a))||_0x80766a);return _0x13c5af&&_0x80766a&&_0x2c8974(_0x3ab7aa,_0xbbb4c7,_0x80766a),_0x80766a;},_0x5a86e5=(_0x217cda,_0x50d2fa)=>(_0x404a4f,_0x50207a)=>_0x50d2fa(_0x404a4f,_0x50207a,_0x217cda);let _0x22d1ba=class extends _0x4f6d1e[_0x1bd4f3(0xf3)]{constructor(_0x28f403,_0x522922){const _0x518d38=_0x1bd4f3;super(),this[_0x518d38(0x132)]=_0x28f403,this[_0x518d38(0x142)]=_0x522922,this[_0x518d38(0x139)]();}[_0x1bd4f3(0x139)](){const _0x2aa6b8=_0x1bd4f3;this['_threadCommentDataSourceService']['dataSource']=this[_0x2aa6b8(0x142)],this[_0x2aa6b8(0x132)][_0x2aa6b8(0x11a)]=!0x1;}};_0x22d1ba=_0x378042([_0x5a86e5(0x0,_0xb0304f[_0x1bd4f3(0x113)]),_0x5a86e5(0x1,_0x4f6d1e[_0x1bd4f3(0xf7)](_0xc14cec))],_0x22d1ba);var _0x2e44d2=Object['defineProperty'],_0x1f996c=Object[_0x1bd4f3(0x123)],_0x2b63da=(_0xf0b82a,_0x31a815,_0x58c86e)=>_0x31a815 in _0xf0b82a?_0x2e44d2(_0xf0b82a,_0x31a815,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58c86e}):_0xf0b82a[_0x31a815]=_0x58c86e,_0x5312bb=(_0x50090f,_0x26c763,_0x1b0927,_0x38ba87)=>{const _0x47bbe9=_0x1bd4f3;for(var _0x297442=_0x38ba87>0x1?void 0x0:_0x38ba87?_0x1f996c(_0x26c763,_0x1b0927):_0x26c763,_0x548ad1=_0x50090f[_0x47bbe9(0x135)]-0x1,_0x536a06;_0x548ad1>=0x0;_0x548ad1--)(_0x536a06=_0x50090f[_0x548ad1])&&(_0x297442=(_0x38ba87?_0x536a06(_0x26c763,_0x1b0927,_0x297442):_0x536a06(_0x297442))||_0x297442);return _0x38ba87&&_0x297442&&_0x2e44d2(_0x26c763,_0x1b0927,_0x297442),_0x297442;},_0x8b1825=(_0x1c339d,_0x5287d2)=>(_0xbb330f,_0x4548a9)=>_0x5287d2(_0xbb330f,_0x4548a9,_0x1c339d),_0x101810=(_0x593b39,_0x192f6b,_0x342c55)=>_0x2b63da(_0x593b39,typeof _0x192f6b!=_0x1bd4f3(0x14b)?_0x192f6b+'':_0x192f6b,_0x342c55);_0x589b2d[_0x1bd4f3(0x15c)]=class extends _0x4f6d1e[_0x1bd4f3(0x13d)]{constructor(_0x3435b4=_0x1e96ed,_0x24b181,_0x526cb9){const _0x226b54=_0x1bd4f3;super(),this[_0x226b54(0x128)]=_0x3435b4,this[_0x226b54(0x16e)]=_0x24b181,this[_0x226b54(0x155)]=_0x526cb9;const {..._0x2c72ca}=this[_0x226b54(0x128)];this[_0x226b54(0x155)][_0x226b54(0x117)](_0x4a61aa,_0x2c72ca);}[_0x1bd4f3(0xfb)](){[[_0xc14cec],[_0x22d1ba],[_0x11eb1b]]['forEach'](_0x3d38aa=>{const _0x5dd0e7=_0x529c;this[_0x5dd0e7(0x16e)][_0x5dd0e7(0x13c)](_0x3d38aa);});}[_0x1bd4f3(0x13f)](){const _0x1bd42a=_0x1bd4f3;this[_0x1bd42a(0x16e)]['get'](_0x22d1ba),this[_0x1bd42a(0x16e)][_0x1bd42a(0x160)](_0x11eb1b);}},_0x101810(_0x589b2d['UniverThreadCommentDataSourcePlugin'],_0x1bd4f3(0x14f),_0x3f063c),_0x101810(_0x589b2d[_0x1bd4f3(0x15c)],_0x1bd4f3(0x137),_0x4f6d1e[_0x1bd4f3(0x16a)][_0x1bd4f3(0xf2)]),_0x589b2d[_0x1bd4f3(0x15c)]=_0x5312bb([_0x4f6d1e['DependentOn'](_0x43a49e['UniverThreadCommentUIPlugin'],_0x18f121[_0x1bd4f3(0x176)],_0x11f48a[_0x1bd4f3(0x141)]),_0x8b1825(0x1,_0x4f6d1e['Inject'](_0x4f6d1e[_0x1bd4f3(0x138)])),_0x8b1825(0x2,_0x4f6d1e[_0x1bd4f3(0x115)])],_0x589b2d[_0x1bd4f3(0x15c)]),Object['defineProperty'](_0x589b2d,Symbol[_0x1bd4f3(0x174)],{'value':_0x1bd4f3(0x16f)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/thread-comment-datasource",
3
- "version": "0.5.0-nightly.202411291606",
3
+ "version": "0.5.1",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -45,20 +45,20 @@
45
45
  "rxjs": ">=7.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "@univerjs-pro/collaboration-client": "0.5.0-nightly.202411291606",
49
- "@univerjs/network": "0.5.0-nightly.202411291606",
50
- "@univerjs/core": "0.5.0-nightly.202411291606",
51
- "@univerjs/protocol": "0.1.39-alpha.48",
52
- "@univerjs/thread-comment-ui": "0.5.0-nightly.202411291606",
53
- "@univerjs-pro/license": "0.5.0-nightly.202411291606",
54
- "@univerjs/thread-comment": "0.5.0-nightly.202411291606"
48
+ "@univerjs-pro/collaboration-client": "0.5.1",
49
+ "@univerjs/core": "0.5.1",
50
+ "@univerjs-pro/license": "0.5.1",
51
+ "@univerjs/thread-comment": "0.5.1",
52
+ "@univerjs/protocol": "0.1.39",
53
+ "@univerjs/thread-comment-ui": "0.5.1",
54
+ "@univerjs/network": "0.5.1"
55
55
  },
56
56
  "devDependencies": {
57
57
  "rxjs": "^7.8.1",
58
58
  "typescript": "^5.7.2",
59
59
  "vite": "^6.0.0",
60
60
  "vitest": "^2.1.6",
61
- "@univerjs-infra/shared": "0.5.0"
61
+ "@univerjs-infra/shared": "0.5.1"
62
62
  },
63
63
  "space": {
64
64
  ".": {