@univerjs-pro/thread-comment-datasource 0.5.2 → 0.5.3-experimental.20250106-e3b7a39
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -23
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xb43bae=_0x3412;(function(_0x37dcbc,_0x1881bf){const _0x5f535e=_0x3412,_0x868897=_0x37dcbc();while(!![]){try{const _0x5f24d7=parseInt(_0x5f535e(0x19d))/0x1*(parseInt(_0x5f535e(0x132))/0x2)+parseInt(_0x5f535e(0x153))/0x3+-parseInt(_0x5f535e(0x198))/0x4*(parseInt(_0x5f535e(0x124))/0x5)+parseInt(_0x5f535e(0x16f))/0x6+parseInt(_0x5f535e(0x179))/0x7+parseInt(_0x5f535e(0x189))/0x8*(parseInt(_0x5f535e(0x17c))/0x9)+parseInt(_0x5f535e(0x185))/0xa*(-parseInt(_0x5f535e(0x170))/0xb);if(_0x5f24d7===_0x1881bf)break;else _0x868897['push'](_0x868897['shift']());}catch(_0x4115d4){_0x868897['push'](_0x868897['shift']());}}}(_0x2ba9,0x1a3f4));Object[_0xb43bae(0x162)](exports,Symbol[_0xb43bae(0x186)],{'value':_0xb43bae(0x176)});const C=require(_0xb43bae(0x168)),T=require(_0xb43bae(0x15d)),c=require(_0xb43bae(0x13f)),w=require(_0xb43bae(0x156)),P=require(_0xb43bae(0x136)),U=require(_0xb43bae(0x15c)),M=require('@univerjs/network'),R=_0xb43bae(0x146);var I=(_0x16d5d3=>(_0x16d5d3[_0x16d5d3[_0xb43bae(0x130)]=0x0]='OpenOrReOpen',_0x16d5d3[_0x16d5d3['Solved']=0x1]=_0xb43bae(0x18e),_0x16d5d3[_0x16d5d3[_0xb43bae(0x161)]=-0x1]=_0xb43bae(0x161),_0x16d5d3))(I||{}),v=(_0x2a8782=>(_0x2a8782[_0x2a8782[_0xb43bae(0x19a)]=0x0]=_0xb43bae(0x19a),_0x2a8782[_0x2a8782[_0xb43bae(0x175)]=0x1]=_0xb43bae(0x175),_0x2a8782[_0x2a8782['Reply']=0x2]=_0xb43bae(0x14c),_0x2a8782[_0x2a8782[_0xb43bae(0x12c)]=0x3]='Edit',_0x2a8782[_0x2a8782[_0xb43bae(0x16c)]=0x4]=_0xb43bae(0x16c),_0x2a8782[_0x2a8782[_0xb43bae(0x137)]=0x5]=_0xb43bae(0x137),_0x2a8782[_0x2a8782['UNRECOGNIZED']=-0x1]=_0xb43bae(0x161),_0x2a8782))(v||{});const g=_0x3a3882=>c[_0xb43bae(0x196)](new Date(+_0x3a3882))[_0xb43bae(0x134)](_0xb43bae(0x16b)),$=async(_0x1d6194,_0x3b13f8)=>{const _0x5a5c6b=_0xb43bae,_0x9690b3=_0x1d6194[_0x5a5c6b(0x158)](c[_0x5a5c6b(0x17a)]),_0x49c1d1=_0x1d6194[_0x5a5c6b(0x158)](M['HTTPService']);_0x3b13f8[_0x5a5c6b(0x15a)](_0x9eda04=>{const _0x4a0d53=_0x5a5c6b;_0x9690b3[_0x4a0d53(0x143)](_0x9eda04)&&_0x3b13f8['delete'](_0x9eda04);}),_0x3b13f8[_0x5a5c6b(0x172)]&&(await _0x49c1d1['get'](_0x5a5c6b(0x11e),{'params':{'userIDs':[..._0x3b13f8]}}))[_0x5a5c6b(0x148)]['users']['forEach'](_0x403cd8=>{const _0x5dfc69=_0x5a5c6b;_0x403cd8&&_0x9690b3[_0x5dfc69(0x15b)](_0x403cd8);});};var E=Object[_0xb43bae(0x162)],q=Object[_0xb43bae(0x141)],A=(_0x1d5d98,_0x2ec67f,_0x45460c,_0x571eea)=>{for(var _0x2a3b03=_0x571eea>0x1?void 0x0:_0x571eea?q(_0x2ec67f,_0x45460c):_0x2ec67f,_0x33946=_0x1d5d98['length']-0x1,_0x139e25;_0x33946>=0x0;_0x33946--)(_0x139e25=_0x1d5d98[_0x33946])&&(_0x2a3b03=(_0x571eea?_0x139e25(_0x2ec67f,_0x45460c,_0x2a3b03):_0x139e25(_0x2a3b03))||_0x2a3b03);return _0x571eea&&_0x2a3b03&&E(_0x2ec67f,_0x45460c,_0x2a3b03),_0x2a3b03;},_=(_0x3a9627,_0x3da0db)=>(_0x42097d,_0x16d2c9)=>_0x3da0db(_0x42097d,_0x16d2c9,_0x3a9627);let S=class extends c[_0xb43bae(0x199)]{constructor(_0xccf9c,_0x2f6fd1,_0x35b4aa,_0x1b7284){const _0x3f472e=_0xb43bae;super(),this[_0x3f472e(0x154)]=_0xccf9c,this['_threadCommentModel']=_0x2f6fd1,this[_0x3f472e(0x18a)]=_0x35b4aa,this[_0x3f472e(0x17d)]=_0x1b7284,this[_0x3f472e(0x171)](),this[_0x3f472e(0x174)]();}[_0xb43bae(0x174)](){const _0xebabbe=_0xb43bae;this[_0xebabbe(0x144)](this[_0xebabbe(0x177)][_0xebabbe(0x133)]['pipe'](U[_0xebabbe(0x184)](0x10))[_0xebabbe(0x14e)](_0x3af688=>{const _0x3d3938=_0xebabbe,_0x550d17=new Set();_0x3af688[_0x3d3938(0x15a)](_0x2b5102=>{const _0x4161a0=_0x3d3938;switch(_0x2b5102[_0x4161a0(0x164)]){case'add':{const _0x2f16e2=_0x2b5102[_0x4161a0(0x152)][_0x4161a0(0x128)];_0x550d17['add'](_0x2f16e2);break;}}}),$(this[_0x3d3938(0x17d)],_0x550d17);}));}[_0xb43bae(0x171)](){const _0xe5d710=_0xb43bae;this[_0xe5d710(0x144)](this[_0xe5d710(0x154)][_0xe5d710(0x133)][_0xe5d710(0x14e)](async _0x52a926=>{const _0x19982c=_0xe5d710;var _0x59686a,_0x4a0417,_0x27ecc3,_0x17afe1;const _0x450087=(_0x59686a=this[_0x19982c(0x177)][_0x19982c(0x178)](_0x52a926['unitId'])[_0x19982c(0x195)](_0x236c86=>_0x236c86[_0x19982c(0x194)]===_0x52a926[_0x19982c(0x194)]))==null?void 0x0:_0x59686a[_0x19982c(0x12d)];if(!_0x450087)return;const {unitId:_0x40f43a,subUnitId:_0x230830}=_0x450087;switch(_0x52a926['user']&&this[_0x19982c(0x18a)][_0x19982c(0x15b)](_0x52a926[_0x19982c(0x123)]),_0x52a926['type']){case v[_0x19982c(0x175)]:break;case v[_0x19982c(0x14c)]:{this[_0x19982c(0x177)][_0x19982c(0x15f)](_0x40f43a,_0x230830,{'unitId':_0x40f43a,'subUnitId':_0x230830,'ref':'','id':_0x52a926[_0x19982c(0x19b)],'dT':g(+_0x52a926['createTimestamp']),'threadId':_0x52a926[_0x19982c(0x194)],'personId':(_0x27ecc3=(_0x4a0417=_0x52a926[_0x19982c(0x123)])==null?void 0x0:_0x4a0417['userID'])!=null?_0x27ecc3:_0x52a926[_0x19982c(0x17b)],'text':JSON[_0x19982c(0x149)](_0x52a926[_0x19982c(0x140)]),'parentId':_0x450087['id']});break;}case v['Delete']:{const _0x50d7c9=this[_0x19982c(0x177)]['getComment'](_0x40f43a,_0x230830,_0x52a926[_0x19982c(0x19b)]);_0x50d7c9&&_0x50d7c9[_0x19982c(0x13a)]&&this[_0x19982c(0x177)][_0x19982c(0x15e)](_0x40f43a,_0x230830,_0x52a926[_0x19982c(0x19b)]);break;}case v[_0x19982c(0x12c)]:{this[_0x19982c(0x177)][_0x19982c(0x14b)](_0x40f43a,_0x230830,{'commentId':_0x52a926['replyId'],'text':JSON[_0x19982c(0x149)](_0x52a926[_0x19982c(0x140)])});break;}case v[_0x19982c(0x137)]:{const _0x3e9bda=(_0x17afe1=this[_0x19982c(0x177)][_0x19982c(0x178)](_0x52a926[_0x19982c(0x150)])[_0x19982c(0x195)](_0x2ceeca=>_0x2ceeca[_0x19982c(0x194)]===_0x52a926[_0x19982c(0x194)]))==null?void 0x0:_0x17afe1[_0x19982c(0x12d)];_0x3e9bda&&this[_0x19982c(0x177)][_0x19982c(0x13d)](_0x40f43a,_0x230830,_0x3e9bda['id'],_0x52a926[_0x19982c(0x18c)]===I[_0x19982c(0x18e)]);break;}}}));}};function _0x2ba9(){const _0x138d72=['13976XArLzC','_userService','slice','solved','_initDataSource','Solved','/edit','Plugin','setConfig','requireSession','IThreadCommentDataSourceService','threadId','find','dayjs','_threadCommentDataSource','2204FLtzeV','Disposable','Unknown','replyId','/list','41xDKhLj','/universer-api/user/list','UniverCollaborationClientPlugin','merge','stringify','pluginName','user','1875kfVcQa','length','IConfigService','comment','personId','Injector','_configService','_threadCommentDataSourceService','Edit','root','getCurrentUser','post','OpenOrReOpen','/delete','982jZTfCW','commentUpdate$','format','filter','@univerjs/thread-comment','Solve','syncUpdateMutationToColla','error','parentId','_sessionService','DependentOn','resolveComment','customRanges','@univerjs/core','content','getOwnPropertyDescriptor','_httpService','getUser','disposeWithMe','reply','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','ThreadCommentModel','body','parse','COMMENT','updateComment','Reply','onReady','subscribe','listComments','unitId','comments','payload','232083DUwbPB','_commentService','map','@univerjs/thread-comment-ui','CustomRangeType','get','/universer-api/comment/unit/','forEach','addUser','rxjs','@univerjs-pro/license','deleteComment','addComment','UniverThreadCommentDataSourcePlugin','UNRECOGNIZED','defineProperty','UNIVER_UNKNOWN','type','UniverThreadCommentUIPlugin','/solved','CollaborationSessionService','@univerjs-pro/collaboration-client','createTimestamp','userID','YYYY/MM/DD\x20HH:mm','Delete','code','replies','452556jifRnx','15026YsfYKO','_init','size','getMemberID','_initUserSync','Add','Module','_threadCommentModel','getUnit','711592ZyolUt','UserManagerService','userId','999ZydUYE','_injector','values','rangeId','UniverInstanceType','/add','resolved','Inject','bufferTime','1130loexpA','toStringTag','_config','rangeType'];_0x2ba9=function(){return _0x138d72;};return _0x2ba9();}S=A([_(0x0,c['Inject'](C['CommentService'])),_(0x1,c[_0xb43bae(0x183)](P[_0xb43bae(0x147)])),_(0x2,c[_0xb43bae(0x183)](c[_0xb43bae(0x17a)])),_(0x3,c[_0xb43bae(0x183)](c[_0xb43bae(0x129)]))],S);function _0x3412(_0x3202a8,_0x3c475a){const _0x2ba9d1=_0x2ba9();return _0x3412=function(_0x3412d4,_0x22f3e0){_0x3412d4=_0x3412d4-0x11e;let _0x2a8c46=_0x2ba9d1[_0x3412d4];return _0x2a8c46;},_0x3412(_0x3202a8,_0x3c475a);}const x='thread-comment-data-source.config',D={};var Y=Object[_0xb43bae(0x162)],G=Object[_0xb43bae(0x141)],H=(_0x70b232,_0x56265c,_0x6fc4a5,_0x3e82f5)=>{const _0x11b717=_0xb43bae;for(var _0x210d2c=_0x3e82f5>0x1?void 0x0:_0x3e82f5?G(_0x56265c,_0x6fc4a5):_0x56265c,_0x120ec6=_0x70b232[_0x11b717(0x125)]-0x1,_0x29f373;_0x120ec6>=0x0;_0x120ec6--)(_0x29f373=_0x70b232[_0x120ec6])&&(_0x210d2c=(_0x3e82f5?_0x29f373(_0x56265c,_0x6fc4a5,_0x210d2c):_0x29f373(_0x210d2c))||_0x210d2c);return _0x3e82f5&&_0x210d2c&&Y(_0x56265c,_0x6fc4a5,_0x210d2c),_0x210d2c;},p=(_0x31cf9d,_0x1e4bab)=>(_0xcff12a,_0x2d13be)=>_0x1e4bab(_0xcff12a,_0x2d13be,_0x31cf9d);function J(_0x1fa347,_0x4a0a62){const _0x2f39d1=_0xb43bae,_0xd95dba=_0x1fa347[_0x2f39d1(0x16e)][0x0];return{..._0x4a0a62,'id':_0xd95dba[_0x2f39d1(0x19b)],'resolved':_0x1fa347['solved']===0x1,'dT':g(_0xd95dba[_0x2f39d1(0x169)]),'personId':_0xd95dba[_0x2f39d1(0x17b)],'threadId':_0xd95dba[_0x2f39d1(0x194)]};}function F(_0x35b5e0,_0x56bdb6,_0x424925){const _0x117993=_0xb43bae;var _0x4b146b,_0x731eb7;if(((_0x731eb7=(_0x4b146b=_0x35b5e0==null?void 0x0:_0x35b5e0['replies'])==null?void 0x0:_0x4b146b['length'])!=null?_0x731eb7:0x0)>0x0){const _0x179f4a=(_0xddda0d,_0x4b2f35)=>({'id':_0xddda0d[_0x117993(0x19b)],'threadId':_0xddda0d[_0x117993(0x194)],'dT':g(_0xddda0d['createTimestamp']),'personId':_0xddda0d[_0x117993(0x17b)],'resolved':_0x35b5e0[_0x117993(0x18c)]===I[_0x117993(0x18e)],'unitId':_0x56bdb6,'subUnitId':_0x424925,'text':JSON[_0x117993(0x149)](_0xddda0d[_0x117993(0x140)]),'parentId':_0x4b2f35}),_0x57884c=_0x179f4a(_0x35b5e0[_0x117993(0x16e)][0x0]);return{..._0x57884c,'children':_0x35b5e0[_0x117993(0x16e)][_0x117993(0x18b)](0x1)[_0x117993(0x155)](_0x5426e7=>_0x179f4a(_0x5426e7,_0x57884c['id']))};}return null;}let f=class{constructor(_0x1c56cd,_0x2abb11,_0x955b92,_0x50766c){const _0x4750f3=_0xb43bae;this[_0x4750f3(0x142)]=_0x1c56cd,this['_userService']=_0x2abb11,this[_0x4750f3(0x13b)]=_0x955b92,this[_0x4750f3(0x17d)]=_0x50766c;}async[_0xb43bae(0x15f)](_0x510e16){const _0x184316=_0xb43bae;var _0x3c64db,_0x316880;const {parentId:_0x50e1dd,unitId:_0x1a3c25,text:_0x43ff52,threadId:_0x3951e2}=_0x510e16,_0x2f8630=(_0x316880=(_0x3c64db=_0x43ff52[_0x184316(0x13e)])==null?void 0x0:_0x3c64db[_0x184316(0x135)](_0x46e496=>_0x46e496[_0x184316(0x188)]===c[_0x184316(0x157)][_0x184316(0x14a)])[_0x184316(0x155)](_0x5d71fd=>_0x5d71fd['rangeId']))!=null?_0x316880:[],_0x34dd80=JSON[_0x184316(0x121)](_0x43ff52),_0x4b32cf=(await this[_0x184316(0x13b)][_0x184316(0x192)](_0x1a3c25))['getMemberID']();if(_0x50e1dd){const _0xb483d2={'memberId':_0x4b32cf,'unitId':_0x1a3c25,'content':_0x34dd80,'mention':_0x2f8630,'threadId':_0x3951e2},_0xc2dae4=(await this[_0x184316(0x142)][_0x184316(0x12f)]('/universer-api/comment/unit/'+_0x1a3c25+'/reply',{'body':_0xb483d2}))[_0x184316(0x148)][_0x184316(0x145)];return{..._0x510e16,'id':_0xc2dae4[_0x184316(0x19b)],'dT':c['dayjs'](+_0xc2dae4['createTimestamp'])[_0x184316(0x134)](_0x184316(0x16b)),'personId':_0xc2dae4['userId']};}else{const _0x73372a={'memberId':_0x4b32cf,'unitId':_0x1a3c25,'content':_0x34dd80,'mention':_0x2f8630},_0x29745e=await this[_0x184316(0x142)][_0x184316(0x12f)](_0x184316(0x159)+_0x1a3c25+_0x184316(0x181),{'body':_0x73372a});return J(_0x29745e[_0x184316(0x148)][_0x184316(0x127)],_0x510e16);}}async['updateComment'](_0x4b2844){const _0x5a2a65=_0xb43bae;var _0x33cb2d,_0x29e00f;const {text:_0x2eaacb,unitId:_0x3c4231}=_0x4b2844,_0x51ab37=(_0x29e00f=(_0x33cb2d=_0x2eaacb[_0x5a2a65(0x13e)])==null?void 0x0:_0x33cb2d[_0x5a2a65(0x135)](_0x272993=>_0x272993[_0x5a2a65(0x188)]===c[_0x5a2a65(0x157)][_0x5a2a65(0x14a)])['map'](_0xc57ee6=>_0xc57ee6[_0x5a2a65(0x17f)]))!=null?_0x29e00f:[],_0x3fdb98=JSON[_0x5a2a65(0x121)](_0x2eaacb),_0x37a838=_0x4b2844[_0x5a2a65(0x194)],_0x4bbaca=_0x4b2844['id'],_0x374c2f={'memberId':(await this[_0x5a2a65(0x13b)][_0x5a2a65(0x192)](_0x3c4231))[_0x5a2a65(0x173)](),'unitId':_0x3c4231,'threadId':_0x37a838,'mention':_0x51ab37,'content':_0x3fdb98,'replyId':_0x4bbaca},_0x452f7b=await this[_0x5a2a65(0x142)][_0x5a2a65(0x12f)](_0x5a2a65(0x159)+_0x3c4231+_0x5a2a65(0x18f),{'body':_0x374c2f});return!_0x452f7b['body'][_0x5a2a65(0x139)]||_0x452f7b[_0x5a2a65(0x148)][_0x5a2a65(0x139)]['code']===0x1;}async[_0xb43bae(0x13d)](_0x1abe0c){const _0x25bf85=_0xb43bae,{unitId:_0x456ebe}=_0x1abe0c,_0x21fd33=_0x1abe0c['threadId'],_0x5e06b9={'memberId':this[_0x25bf85(0x18a)][_0x25bf85(0x12e)]()[_0x25bf85(0x16a)],'unitId':_0x456ebe,'threadId':_0x21fd33,'solved':_0x1abe0c[_0x25bf85(0x182)]?I[_0x25bf85(0x18e)]:I[_0x25bf85(0x130)]},_0x2e1c1f=await this[_0x25bf85(0x142)][_0x25bf85(0x12f)](_0x25bf85(0x159)+_0x456ebe+_0x25bf85(0x166),{'body':_0x5e06b9});return!_0x2e1c1f['body'][_0x25bf85(0x139)]||_0x2e1c1f[_0x25bf85(0x148)][_0x25bf85(0x139)][_0x25bf85(0x16d)]===0x1;}async['deleteComment'](_0x4dd51a,_0x504707,_0x10cea5,_0x3afc0d){const _0x136d26=_0xb43bae,_0x453596={'memberId':(await this[_0x136d26(0x13b)]['requireSession'](_0x4dd51a))[_0x136d26(0x173)](),'threadId':_0x10cea5,'replyId':_0x3afc0d,'unitId':_0x4dd51a},_0x17790b=await this[_0x136d26(0x142)][_0x136d26(0x12f)](_0x136d26(0x159)+_0x4dd51a+_0x136d26(0x131),{'body':_0x453596});return!_0x17790b[_0x136d26(0x148)][_0x136d26(0x139)]||_0x17790b['body'][_0x136d26(0x139)]['code']===0x1;}async[_0xb43bae(0x14f)](_0x3e09e6,_0x4a81b9,_0x75f0d7){const _0x7b7f03=_0xb43bae,_0x2cf733={'unitId':_0x3e09e6,'threadId':_0x75f0d7},_0x22e2e6=await this[_0x7b7f03(0x142)][_0x7b7f03(0x12f)](_0x7b7f03(0x159)+_0x3e09e6+_0x7b7f03(0x19c),{'body':_0x2cf733}),_0x5ea34a=_0x75f0d7[_0x7b7f03(0x155)](_0x4ae83f=>F(_0x22e2e6[_0x7b7f03(0x148)][_0x7b7f03(0x151)][_0x4ae83f],_0x3e09e6,_0x4a81b9))['filter'](Boolean);return Object[_0x7b7f03(0x17e)](_0x22e2e6[_0x7b7f03(0x148)]['users'])['forEach'](_0x5515d3=>{const _0x3ed5e4=_0x7b7f03;this[_0x3ed5e4(0x18a)]['addUser'](_0x5515d3);}),_0x5ea34a;}['saveCommentToSnapshot'](_0x31ddbe){const _0x203a6f=_0xb43bae;return{'id':_0x31ddbe['id'],'threadId':_0x31ddbe[_0x203a6f(0x194)],'ref':_0x31ddbe['ref']};}};f=H([p(0x0,c[_0xb43bae(0x183)](M['HTTPService'])),p(0x1,c[_0xb43bae(0x183)](c[_0xb43bae(0x17a)])),p(0x2,c['Inject'](C[_0xb43bae(0x167)])),p(0x3,c['Inject'](c[_0xb43bae(0x129)]))],f);var L=Object['defineProperty'],Z=Object[_0xb43bae(0x141)],W=(_0x41bbac,_0xd0d45d,_0xb1c2ab,_0x145ae6)=>{for(var _0x103cf0=_0x145ae6>0x1?void 0x0:_0x145ae6?Z(_0xd0d45d,_0xb1c2ab):_0xd0d45d,_0x1273d5=_0x41bbac['length']-0x1,_0x3d1954;_0x1273d5>=0x0;_0x1273d5--)(_0x3d1954=_0x41bbac[_0x1273d5])&&(_0x103cf0=(_0x145ae6?_0x3d1954(_0xd0d45d,_0xb1c2ab,_0x103cf0):_0x3d1954(_0x103cf0))||_0x103cf0);return _0x145ae6&&_0x103cf0&&L(_0xd0d45d,_0xb1c2ab,_0x103cf0),_0x103cf0;},O=(_0x385ce4,_0x83af0e)=>(_0x55f8dd,_0x20e47a)=>_0x83af0e(_0x55f8dd,_0x20e47a,_0x385ce4);let b=class extends c[_0xb43bae(0x199)]{constructor(_0x2e4bcb,_0x752526){const _0x155ec3=_0xb43bae;super(),this[_0x155ec3(0x12b)]=_0x2e4bcb,this[_0x155ec3(0x197)]=_0x752526,this['_initDataSource']();}[_0xb43bae(0x18d)](){const _0x32e1f1=_0xb43bae;this[_0x32e1f1(0x12b)]['dataSource']=this[_0x32e1f1(0x197)],this[_0x32e1f1(0x12b)][_0x32e1f1(0x138)]=!0x1;}};b=W([O(0x0,P[_0xb43bae(0x193)]),O(0x1,c[_0xb43bae(0x183)](f))],b);var j=Object[_0xb43bae(0x162)],B=Object['getOwnPropertyDescriptor'],K=(_0x2f4809,_0xc2797f,_0x1dc8aa)=>_0xc2797f in _0x2f4809?j(_0x2f4809,_0xc2797f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1dc8aa}):_0x2f4809[_0xc2797f]=_0x1dc8aa,V=(_0x22cba2,_0x3f7a90,_0x324f80,_0x5cd568)=>{const _0x447fb7=_0xb43bae;for(var _0x3d7deb=_0x5cd568>0x1?void 0x0:_0x5cd568?B(_0x3f7a90,_0x324f80):_0x3f7a90,_0x54b345=_0x22cba2[_0x447fb7(0x125)]-0x1,_0xeeff5f;_0x54b345>=0x0;_0x54b345--)(_0xeeff5f=_0x22cba2[_0x54b345])&&(_0x3d7deb=(_0x5cd568?_0xeeff5f(_0x3f7a90,_0x324f80,_0x3d7deb):_0xeeff5f(_0x3d7deb))||_0x3d7deb);return _0x5cd568&&_0x3d7deb&&j(_0x3f7a90,_0x324f80,_0x3d7deb),_0x3d7deb;},y=(_0x11a7ec,_0xd1a4f)=>(_0x16ecd3,_0x32cd6e)=>_0xd1a4f(_0x16ecd3,_0x32cd6e,_0x11a7ec),N=(_0x5585ae,_0x58c858,_0x8733d7)=>K(_0x5585ae,typeof _0x58c858!='symbol'?_0x58c858+'':_0x58c858,_0x8733d7);exports[_0xb43bae(0x160)]=class extends c[_0xb43bae(0x190)]{constructor(_0x510c2f=D,_0x4ebf05,_0x96b412){const _0x4685cf=_0xb43bae;super(),this[_0x4685cf(0x187)]=_0x510c2f,this[_0x4685cf(0x17d)]=_0x4ebf05,this['_configService']=_0x96b412;const {..._0x543fba}=c[_0x4685cf(0x120)]({},D,this[_0x4685cf(0x187)]);this[_0x4685cf(0x12a)][_0x4685cf(0x191)](x,_0x543fba);}['onStarting'](){[[f],[b],[S]]['forEach'](_0x520a03=>{const _0x2bef99=_0x3412;this[_0x2bef99(0x17d)]['add'](_0x520a03);});}[_0xb43bae(0x14d)](){const _0x46b79=_0xb43bae;this[_0x46b79(0x17d)]['get'](b),this[_0x46b79(0x17d)][_0x46b79(0x158)](S);}},N(exports[_0xb43bae(0x160)],_0xb43bae(0x122),R),N(exports['UniverThreadCommentDataSourcePlugin'],'type',c[_0xb43bae(0x180)][_0xb43bae(0x163)]),exports[_0xb43bae(0x160)]=V([c[_0xb43bae(0x13c)](w[_0xb43bae(0x165)],C[_0xb43bae(0x11f)],T['UniverLicensePlugin']),y(0x1,c[_0xb43bae(0x183)](c[_0xb43bae(0x129)])),y(0x2,c[_0xb43bae(0x126)])],exports[_0xb43bae(0x160)]);
|
|
1
|
+
'use strict';const _0x4449da=_0xc73f;(function(_0xbeff76,_0x102059){const _0x22f8c4=_0xc73f,_0x5d3d4f=_0xbeff76();while(!![]){try{const _0x6ff9a1=-parseInt(_0x22f8c4(0xe5))/0x1+-parseInt(_0x22f8c4(0xbf))/0x2+-parseInt(_0x22f8c4(0x9d))/0x3*(parseInt(_0x22f8c4(0xaf))/0x4)+-parseInt(_0x22f8c4(0xb0))/0x5+-parseInt(_0x22f8c4(0xb2))/0x6+parseInt(_0x22f8c4(0xb7))/0x7*(-parseInt(_0x22f8c4(0xab))/0x8)+parseInt(_0x22f8c4(0xe0))/0x9;if(_0x6ff9a1===_0x102059)break;else _0x5d3d4f['push'](_0x5d3d4f['shift']());}catch(_0xd9809){_0x5d3d4f['push'](_0x5d3d4f['shift']());}}}(_0x43cf,0x20be4));Object[_0x4449da(0x89)](exports,Symbol['toStringTag'],{'value':'Module'});const C=require('@univerjs-pro/collaboration-client'),T=require(_0x4449da(0xd6)),c=require('@univerjs/core'),w=require(_0x4449da(0xe2)),P=require(_0x4449da(0xe8)),U=require('rxjs'),M=require(_0x4449da(0xee)),R=_0x4449da(0xca);var I=(_0x50ae21=>(_0x50ae21[_0x50ae21['OpenOrReOpen']=0x0]=_0x4449da(0xc0),_0x50ae21[_0x50ae21[_0x4449da(0xf6)]=0x1]=_0x4449da(0xf6),_0x50ae21[_0x50ae21['UNRECOGNIZED']=-0x1]=_0x4449da(0xa8),_0x50ae21))(I||{}),v=(_0x402ff5=>(_0x402ff5[_0x402ff5[_0x4449da(0xb9)]=0x0]=_0x4449da(0xb9),_0x402ff5[_0x402ff5[_0x4449da(0x9a)]=0x1]=_0x4449da(0x9a),_0x402ff5[_0x402ff5['Reply']=0x2]=_0x4449da(0x8c),_0x402ff5[_0x402ff5[_0x4449da(0xed)]=0x3]='Edit',_0x402ff5[_0x402ff5[_0x4449da(0xd8)]=0x4]='Delete',_0x402ff5[_0x402ff5[_0x4449da(0xb4)]=0x5]=_0x4449da(0xb4),_0x402ff5[_0x402ff5[_0x4449da(0xa8)]=-0x1]=_0x4449da(0xa8),_0x402ff5))(v||{});function _0xc73f(_0x4b8a8a,_0x2137ef){const _0x43cfaa=_0x43cf();return _0xc73f=function(_0xc73ff5,_0x15704b){_0xc73ff5=_0xc73ff5-0x83;let _0x23310a=_0x43cfaa[_0xc73ff5];return _0x23310a;},_0xc73f(_0x4b8a8a,_0x2137ef);}function _0x43cf(){const _0x4bcebf=['UNIVER_UNKNOWN','_commentService','_threadCommentDataSource','threadId','/add','addComment','addUser','listComments','@univerjs-pro/license','createTimestamp','Delete','type','_init','thread-comment-data-source.config','format','userId','_userService','_injector','8737497OoURim','HTTPService','@univerjs/thread-comment-ui','_config','CollaborationSessionService','234415ltkLDa','comments','length','@univerjs/thread-comment','symbol','rangeType','userID','slice','Edit','@univerjs/network','getUser','CustomRangeType','Inject','_sessionService','deleteComment','map','COMMENT','Solved','getMemberID','onReady','/edit','commentUpdate$','_initUserSync','pipe','defineProperty','rangeId','merge','Reply','values','ThreadCommentModel','Disposable','UniverThreadCommentDataSourcePlugin','_threadCommentDataSourceService','_threadCommentModel','UniverThreadCommentUIPlugin','root','disposeWithMe','_httpService','body','getOwnPropertyDescriptor','_configService','Add','code','parentId','3ZEhvyE','solved','filter','resolved','subscribe','UniverLicensePlugin','updateComment','replyId','bufferTime','users','_initDataSource','UNRECOGNIZED','find','onStarting','464sJvFiw','/reply','customRanges','error','896452duXoeO','154160VAjvaJ','payload','57978woTrQI','post','Solve','stringify','get','23891TspWHv','requireSession','Unknown','/solved','reply','UniverInstanceType','UniverCollaborationClientPlugin','parse','279480NDEtKa','OpenOrReOpen','/universer-api/comment/unit/','replies','Injector','resolveComment','Plugin','UserManagerService','/universer-api/user/list','forEach','user','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','getUnit','content','add'];_0x43cf=function(){return _0x4bcebf;};return _0x43cf();}const g=_0x2bef63=>c['dayjs'](new Date(+_0x2bef63))[_0x4449da(0xdc)]('YYYY/MM/DD\x20HH:mm'),$=async(_0x5622f4,_0x126c17)=>{const _0x4a0534=_0x4449da,_0x18a837=_0x5622f4['get'](c['UserManagerService']),_0x8f4990=_0x5622f4[_0x4a0534(0xb6)](M[_0x4a0534(0xe1)]);_0x126c17['forEach'](_0x36ec49=>{const _0xc8f852=_0x4a0534;_0x18a837[_0xc8f852(0xef)](_0x36ec49)&&_0x126c17['delete'](_0x36ec49);}),_0x126c17['size']&&(await _0x8f4990[_0x4a0534(0xb6)](_0x4a0534(0xc7),{'params':{'userIDs':[..._0x126c17]}}))[_0x4a0534(0x97)]['users'][_0x4a0534(0xc8)](_0x4eb19a=>{_0x4eb19a&&_0x18a837['addUser'](_0x4eb19a);});};var E=Object[_0x4449da(0x89)],q=Object[_0x4449da(0x98)],A=(_0x165381,_0x410a98,_0x2fb7c1,_0x2007f9)=>{const _0x5863cb=_0x4449da;for(var _0x52cec4=_0x2007f9>0x1?void 0x0:_0x2007f9?q(_0x410a98,_0x2fb7c1):_0x410a98,_0x26d031=_0x165381[_0x5863cb(0xe7)]-0x1,_0xf666a8;_0x26d031>=0x0;_0x26d031--)(_0xf666a8=_0x165381[_0x26d031])&&(_0x52cec4=(_0x2007f9?_0xf666a8(_0x410a98,_0x2fb7c1,_0x52cec4):_0xf666a8(_0x52cec4))||_0x52cec4);return _0x2007f9&&_0x52cec4&&E(_0x410a98,_0x2fb7c1,_0x52cec4),_0x52cec4;},_=(_0x42eea0,_0x200240)=>(_0xebee76,_0x2d047a)=>_0x200240(_0xebee76,_0x2d047a,_0x42eea0);let S=class extends c['Disposable']{constructor(_0x54b2c3,_0x528ef5,_0x226af3,_0x3d6c40){const _0x24c490=_0x4449da;super(),this[_0x24c490(0xcf)]=_0x54b2c3,this['_threadCommentModel']=_0x528ef5,this['_userService']=_0x226af3,this[_0x24c490(0xdf)]=_0x3d6c40,this['_init'](),this['_initUserSync']();}[_0x4449da(0x87)](){const _0x21ca26=_0x4449da;this[_0x21ca26(0x95)](this[_0x21ca26(0x92)][_0x21ca26(0x86)][_0x21ca26(0x88)](U[_0x21ca26(0xa5)](0x10))['subscribe'](_0x5e848d=>{const _0x104c35=_0x21ca26,_0x3b5323=new Set();_0x5e848d['forEach'](_0x416a52=>{const _0x117618=_0xc73f;switch(_0x416a52[_0x117618(0xd9)]){case'add':{const _0x239607=_0x416a52[_0x117618(0xb1)]['personId'];_0x3b5323[_0x117618(0xcd)](_0x239607);break;}}}),$(this[_0x104c35(0xdf)],_0x3b5323);}));}[_0x4449da(0xda)](){const _0xb707d7=_0x4449da;this[_0xb707d7(0x95)](this[_0xb707d7(0xcf)][_0xb707d7(0x86)][_0xb707d7(0xa1)](async _0x4b9fdf=>{const _0x53262a=_0xb707d7;var _0x33cfb1,_0x2c4525,_0x45df72,_0x2d0192;const _0x1a672b=(_0x33cfb1=this[_0x53262a(0x92)][_0x53262a(0xcb)](_0x4b9fdf['unitId'])['find'](_0x4d54dd=>_0x4d54dd['threadId']===_0x4b9fdf[_0x53262a(0xd1)]))==null?void 0x0:_0x33cfb1[_0x53262a(0x94)];if(!_0x1a672b)return;const {unitId:_0xd89840,subUnitId:_0x1f206d}=_0x1a672b;switch(_0x4b9fdf[_0x53262a(0xc9)]&&this[_0x53262a(0xde)][_0x53262a(0xd4)](_0x4b9fdf[_0x53262a(0xc9)]),_0x4b9fdf[_0x53262a(0xd9)]){case v[_0x53262a(0x9a)]:break;case v[_0x53262a(0x8c)]:{this[_0x53262a(0x92)][_0x53262a(0xd3)](_0xd89840,_0x1f206d,{'unitId':_0xd89840,'subUnitId':_0x1f206d,'ref':'','id':_0x4b9fdf['replyId'],'dT':g(+_0x4b9fdf['createTimestamp']),'threadId':_0x4b9fdf['threadId'],'personId':(_0x45df72=(_0x2c4525=_0x4b9fdf['user'])==null?void 0x0:_0x2c4525[_0x53262a(0xeb)])!=null?_0x45df72:_0x4b9fdf[_0x53262a(0xdd)],'text':JSON[_0x53262a(0xbe)](_0x4b9fdf[_0x53262a(0xcc)]),'parentId':_0x1a672b['id']});break;}case v[_0x53262a(0xd8)]:{const _0x56fb6a=this['_threadCommentModel']['getComment'](_0xd89840,_0x1f206d,_0x4b9fdf[_0x53262a(0xa4)]);_0x56fb6a&&_0x56fb6a[_0x53262a(0x9c)]&&this[_0x53262a(0x92)][_0x53262a(0xf3)](_0xd89840,_0x1f206d,_0x4b9fdf['replyId']);break;}case v[_0x53262a(0xed)]:{this[_0x53262a(0x92)][_0x53262a(0xa3)](_0xd89840,_0x1f206d,{'commentId':_0x4b9fdf['replyId'],'text':JSON[_0x53262a(0xbe)](_0x4b9fdf[_0x53262a(0xcc)])});break;}case v[_0x53262a(0xb4)]:{const _0x5c1ec8=(_0x2d0192=this['_threadCommentModel'][_0x53262a(0xcb)](_0x4b9fdf['unitId'])[_0x53262a(0xa9)](_0x547885=>_0x547885[_0x53262a(0xd1)]===_0x4b9fdf[_0x53262a(0xd1)]))==null?void 0x0:_0x2d0192[_0x53262a(0x94)];_0x5c1ec8&&this[_0x53262a(0x92)][_0x53262a(0xc4)](_0xd89840,_0x1f206d,_0x5c1ec8['id'],_0x4b9fdf[_0x53262a(0x9e)]===I['Solved']);break;}}}));}};S=A([_(0x0,c[_0x4449da(0xf1)](C['CommentService'])),_(0x1,c['Inject'](P[_0x4449da(0x8e)])),_(0x2,c['Inject'](c[_0x4449da(0xc6)])),_(0x3,c[_0x4449da(0xf1)](c[_0x4449da(0xc3)]))],S);const x=_0x4449da(0xdb),D={};var Y=Object[_0x4449da(0x89)],G=Object[_0x4449da(0x98)],H=(_0xafabd9,_0x477707,_0x321717,_0x1218df)=>{for(var _0x1e7ef7=_0x1218df>0x1?void 0x0:_0x1218df?G(_0x477707,_0x321717):_0x477707,_0x4f550d=_0xafabd9['length']-0x1,_0x58e59a;_0x4f550d>=0x0;_0x4f550d--)(_0x58e59a=_0xafabd9[_0x4f550d])&&(_0x1e7ef7=(_0x1218df?_0x58e59a(_0x477707,_0x321717,_0x1e7ef7):_0x58e59a(_0x1e7ef7))||_0x1e7ef7);return _0x1218df&&_0x1e7ef7&&Y(_0x477707,_0x321717,_0x1e7ef7),_0x1e7ef7;},p=(_0x5ae09a,_0x592dda)=>(_0xf46f3c,_0x3b7467)=>_0x592dda(_0xf46f3c,_0x3b7467,_0x5ae09a);function J(_0x2279d7,_0x1ebdf2){const _0x2cd111=_0x4449da,_0x269792=_0x2279d7[_0x2cd111(0xc2)][0x0];return{..._0x1ebdf2,'id':_0x269792[_0x2cd111(0xa4)],'resolved':_0x2279d7[_0x2cd111(0x9e)]===0x1,'dT':g(_0x269792[_0x2cd111(0xd7)]),'personId':_0x269792[_0x2cd111(0xdd)],'threadId':_0x269792[_0x2cd111(0xd1)]};}function F(_0x5774a3,_0x34353b,_0x3ba214){const _0x3dec89=_0x4449da;var _0x47592c,_0x4cf0a9;if(((_0x4cf0a9=(_0x47592c=_0x5774a3==null?void 0x0:_0x5774a3['replies'])==null?void 0x0:_0x47592c[_0x3dec89(0xe7)])!=null?_0x4cf0a9:0x0)>0x0){const _0x7f874b=(_0x1ff52b,_0x27c2e7)=>({'id':_0x1ff52b['replyId'],'threadId':_0x1ff52b['threadId'],'dT':g(_0x1ff52b[_0x3dec89(0xd7)]),'personId':_0x1ff52b['userId'],'resolved':_0x5774a3[_0x3dec89(0x9e)]===I['Solved'],'unitId':_0x34353b,'subUnitId':_0x3ba214,'text':JSON[_0x3dec89(0xbe)](_0x1ff52b[_0x3dec89(0xcc)]),'parentId':_0x27c2e7}),_0x4fdf0d=_0x7f874b(_0x5774a3[_0x3dec89(0xc2)][0x0]);return{..._0x4fdf0d,'children':_0x5774a3[_0x3dec89(0xc2)][_0x3dec89(0xec)](0x1)[_0x3dec89(0xf4)](_0x47730f=>_0x7f874b(_0x47730f,_0x4fdf0d['id']))};}return null;}let f=class{constructor(_0x1de2df,_0x404d00,_0x3aaa48,_0xe9eb94){const _0x139911=_0x4449da;this[_0x139911(0x96)]=_0x1de2df,this[_0x139911(0xde)]=_0x404d00,this[_0x139911(0xf2)]=_0x3aaa48,this[_0x139911(0xdf)]=_0xe9eb94;}async[_0x4449da(0xd3)](_0x58ef71){const _0x11b9bf=_0x4449da;var _0x4153c4,_0x3fc188;const {parentId:_0x462d09,unitId:_0x31aff0,text:_0x162191,threadId:_0x31c5d9}=_0x58ef71,_0x4c5c98=(_0x3fc188=(_0x4153c4=_0x162191[_0x11b9bf(0xad)])==null?void 0x0:_0x4153c4[_0x11b9bf(0x9f)](_0x4418d2=>_0x4418d2[_0x11b9bf(0xea)]===c[_0x11b9bf(0xf0)][_0x11b9bf(0xf5)])[_0x11b9bf(0xf4)](_0x59c46b=>_0x59c46b[_0x11b9bf(0x8a)]))!=null?_0x3fc188:[],_0x5b932c=JSON['stringify'](_0x162191),_0x1ad73c=(await this[_0x11b9bf(0xf2)]['requireSession'](_0x31aff0))['getMemberID']();if(_0x462d09){const _0x586a1c={'memberId':_0x1ad73c,'unitId':_0x31aff0,'content':_0x5b932c,'mention':_0x4c5c98,'threadId':_0x31c5d9},_0x1aab2f=(await this[_0x11b9bf(0x96)][_0x11b9bf(0xb3)](_0x11b9bf(0xc1)+_0x31aff0+_0x11b9bf(0xac),{'body':_0x586a1c}))[_0x11b9bf(0x97)][_0x11b9bf(0xbb)];return{..._0x58ef71,'id':_0x1aab2f[_0x11b9bf(0xa4)],'dT':c['dayjs'](+_0x1aab2f[_0x11b9bf(0xd7)])[_0x11b9bf(0xdc)]('YYYY/MM/DD\x20HH:mm'),'personId':_0x1aab2f['userId']};}else{const _0xafd6ff={'memberId':_0x1ad73c,'unitId':_0x31aff0,'content':_0x5b932c,'mention':_0x4c5c98},_0x47ea9b=await this['_httpService'][_0x11b9bf(0xb3)](_0x11b9bf(0xc1)+_0x31aff0+_0x11b9bf(0xd2),{'body':_0xafd6ff});return J(_0x47ea9b['body']['comment'],_0x58ef71);}}async['updateComment'](_0x30eaee){const _0x98997c=_0x4449da;var _0x5dede6,_0x55bfe0;const {text:_0x206904,unitId:_0x58df80}=_0x30eaee,_0x4a2076=(_0x55bfe0=(_0x5dede6=_0x206904[_0x98997c(0xad)])==null?void 0x0:_0x5dede6[_0x98997c(0x9f)](_0x52a5d8=>_0x52a5d8[_0x98997c(0xea)]===c[_0x98997c(0xf0)]['COMMENT'])[_0x98997c(0xf4)](_0x599483=>_0x599483[_0x98997c(0x8a)]))!=null?_0x55bfe0:[],_0x1bb65a=JSON[_0x98997c(0xb5)](_0x206904),_0xb4f5d5=_0x30eaee[_0x98997c(0xd1)],_0x5ca109=_0x30eaee['id'],_0x127b86={'memberId':(await this[_0x98997c(0xf2)][_0x98997c(0xb8)](_0x58df80))[_0x98997c(0x83)](),'unitId':_0x58df80,'threadId':_0xb4f5d5,'mention':_0x4a2076,'content':_0x1bb65a,'replyId':_0x5ca109},_0x5b1026=await this[_0x98997c(0x96)]['post']('/universer-api/comment/unit/'+_0x58df80+_0x98997c(0x85),{'body':_0x127b86});return!_0x5b1026[_0x98997c(0x97)]['error']||_0x5b1026['body']['error'][_0x98997c(0x9b)]===0x1;}async['resolveComment'](_0x50be44){const _0x23ffc2=_0x4449da,{unitId:_0x2c2363}=_0x50be44,_0x50f1c2=_0x50be44[_0x23ffc2(0xd1)],_0x5b9cba={'memberId':this[_0x23ffc2(0xde)]['getCurrentUser']()[_0x23ffc2(0xeb)],'unitId':_0x2c2363,'threadId':_0x50f1c2,'solved':_0x50be44[_0x23ffc2(0xa0)]?I[_0x23ffc2(0xf6)]:I['OpenOrReOpen']},_0x39aa63=await this[_0x23ffc2(0x96)][_0x23ffc2(0xb3)]('/universer-api/comment/unit/'+_0x2c2363+_0x23ffc2(0xba),{'body':_0x5b9cba});return!_0x39aa63['body'][_0x23ffc2(0xae)]||_0x39aa63[_0x23ffc2(0x97)][_0x23ffc2(0xae)][_0x23ffc2(0x9b)]===0x1;}async[_0x4449da(0xf3)](_0x32f392,_0x2bc7b9,_0x15ba97,_0x453821){const _0x479f74=_0x4449da,_0xf2c572={'memberId':(await this[_0x479f74(0xf2)][_0x479f74(0xb8)](_0x32f392))[_0x479f74(0x83)](),'threadId':_0x15ba97,'replyId':_0x453821,'unitId':_0x32f392},_0x1a69f6=await this[_0x479f74(0x96)][_0x479f74(0xb3)]('/universer-api/comment/unit/'+_0x32f392+'/delete',{'body':_0xf2c572});return!_0x1a69f6[_0x479f74(0x97)]['error']||_0x1a69f6['body']['error']['code']===0x1;}async[_0x4449da(0xd5)](_0x3e6633,_0x4bbd13,_0x4b64f3){const _0x16e628=_0x4449da,_0x3ff503={'unitId':_0x3e6633,'threadId':_0x4b64f3},_0x21fbe1=await this['_httpService']['post'](_0x16e628(0xc1)+_0x3e6633+'/list',{'body':_0x3ff503}),_0x25d358=_0x4b64f3[_0x16e628(0xf4)](_0x5ac91b=>F(_0x21fbe1[_0x16e628(0x97)][_0x16e628(0xe6)][_0x5ac91b],_0x3e6633,_0x4bbd13))['filter'](Boolean);return Object[_0x16e628(0x8d)](_0x21fbe1[_0x16e628(0x97)][_0x16e628(0xa6)])['forEach'](_0x23a091=>{const _0x1401b0=_0x16e628;this[_0x1401b0(0xde)][_0x1401b0(0xd4)](_0x23a091);}),_0x25d358;}['saveCommentToSnapshot'](_0x4e0800){return{'id':_0x4e0800['id'],'threadId':_0x4e0800['threadId'],'ref':_0x4e0800['ref']};}};f=H([p(0x0,c[_0x4449da(0xf1)](M[_0x4449da(0xe1)])),p(0x1,c[_0x4449da(0xf1)](c[_0x4449da(0xc6)])),p(0x2,c[_0x4449da(0xf1)](C[_0x4449da(0xe4)])),p(0x3,c[_0x4449da(0xf1)](c['Injector']))],f);var L=Object[_0x4449da(0x89)],Z=Object[_0x4449da(0x98)],W=(_0x4bc478,_0x3b0d74,_0x588403,_0x2657ed)=>{const _0x38afbf=_0x4449da;for(var _0x253749=_0x2657ed>0x1?void 0x0:_0x2657ed?Z(_0x3b0d74,_0x588403):_0x3b0d74,_0x260baa=_0x4bc478[_0x38afbf(0xe7)]-0x1,_0x88a01d;_0x260baa>=0x0;_0x260baa--)(_0x88a01d=_0x4bc478[_0x260baa])&&(_0x253749=(_0x2657ed?_0x88a01d(_0x3b0d74,_0x588403,_0x253749):_0x88a01d(_0x253749))||_0x253749);return _0x2657ed&&_0x253749&&L(_0x3b0d74,_0x588403,_0x253749),_0x253749;},O=(_0x365380,_0x5635b0)=>(_0x445f19,_0x492774)=>_0x5635b0(_0x445f19,_0x492774,_0x365380);let b=class extends c[_0x4449da(0x8f)]{constructor(_0x55c80e,_0x1e6b47){const _0x1c8253=_0x4449da;super(),this['_threadCommentDataSourceService']=_0x55c80e,this[_0x1c8253(0xd0)]=_0x1e6b47,this['_initDataSource']();}[_0x4449da(0xa7)](){const _0x36f6d7=_0x4449da;this[_0x36f6d7(0x91)]['dataSource']=this[_0x36f6d7(0xd0)],this[_0x36f6d7(0x91)]['syncUpdateMutationToColla']=!0x1;}};b=W([O(0x0,P['IThreadCommentDataSourceService']),O(0x1,c[_0x4449da(0xf1)](f))],b);var j=Object[_0x4449da(0x89)],B=Object['getOwnPropertyDescriptor'],K=(_0x1f64d3,_0x5c9327,_0x30a82a)=>_0x5c9327 in _0x1f64d3?j(_0x1f64d3,_0x5c9327,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30a82a}):_0x1f64d3[_0x5c9327]=_0x30a82a,V=(_0x495429,_0x3cc05f,_0x1c072a,_0x3234f2)=>{for(var _0x355d84=_0x3234f2>0x1?void 0x0:_0x3234f2?B(_0x3cc05f,_0x1c072a):_0x3cc05f,_0x16aedb=_0x495429['length']-0x1,_0x383441;_0x16aedb>=0x0;_0x16aedb--)(_0x383441=_0x495429[_0x16aedb])&&(_0x355d84=(_0x3234f2?_0x383441(_0x3cc05f,_0x1c072a,_0x355d84):_0x383441(_0x355d84))||_0x355d84);return _0x3234f2&&_0x355d84&&j(_0x3cc05f,_0x1c072a,_0x355d84),_0x355d84;},y=(_0x49219f,_0x2ec08b)=>(_0x7217fa,_0x3835b5)=>_0x2ec08b(_0x7217fa,_0x3835b5,_0x49219f),N=(_0x4a5d7c,_0x1f898b,_0x348ec8)=>K(_0x4a5d7c,typeof _0x1f898b!=_0x4449da(0xe9)?_0x1f898b+'':_0x1f898b,_0x348ec8);exports['UniverThreadCommentDataSourcePlugin']=class extends c[_0x4449da(0xc5)]{constructor(_0xb826f7=D,_0x1d320e,_0x30b663){const _0x2c0a8f=_0x4449da;super(),this[_0x2c0a8f(0xe3)]=_0xb826f7,this[_0x2c0a8f(0xdf)]=_0x1d320e,this[_0x2c0a8f(0x99)]=_0x30b663;const {..._0x1349d2}=c[_0x2c0a8f(0x8b)]({},D,this['_config']);this['_configService']['setConfig'](x,_0x1349d2);}[_0x4449da(0xaa)](){const _0x186154=_0x4449da;[[f],[b],[S]][_0x186154(0xc8)](_0x4cbc19=>{const _0x477b60=_0x186154;this[_0x477b60(0xdf)][_0x477b60(0xcd)](_0x4cbc19);});}[_0x4449da(0x84)](){const _0x173764=_0x4449da;this[_0x173764(0xdf)][_0x173764(0xb6)](b),this['_injector'][_0x173764(0xb6)](S);}},N(exports[_0x4449da(0x90)],'pluginName',R),N(exports[_0x4449da(0x90)],_0x4449da(0xd9),c[_0x4449da(0xbc)][_0x4449da(0xce)]),exports[_0x4449da(0x90)]=V([c['DependentOn'](w[_0x4449da(0x93)],C[_0x4449da(0xbd)],T[_0x4449da(0xa2)]),y(0x1,c[_0x4449da(0xf1)](c['Injector'])),y(0x2,c['IConfigService'])],exports[_0x4449da(0x90)]);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3bdc18=_0xf802;(function(_0x3dcaee,_0x2d42f4){const _0x176979=_0xf802,_0x53263b=_0x3dcaee();while(!![]){try{const _0x538f2b=-parseInt(_0x176979(0x1ac))/0x1*(parseInt(_0x176979(0x1fc))/0x2)+parseInt(_0x176979(0x1f8))/0x3+-parseInt(_0x176979(0x1ee))/0x4+parseInt(_0x176979(0x1fa))/0x5+-parseInt(_0x176979(0x1c6))/0x6+parseInt(_0x176979(0x1f1))/0x7+parseInt(_0x176979(0x1ec))/0x8*(parseInt(_0x176979(0x1ab))/0x9);if(_0x538f2b===_0x2d42f4)break;else _0x53263b['push'](_0x53263b['shift']());}catch(_0xe2f9ee){_0x53263b['push'](_0x53263b['shift']());}}}(_0x20bb,0xb7785));import{CommentService as _0x35b059,CollaborationSessionService as _0x8c1a27,UniverCollaborationClientPlugin as _0x387457}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x28642f}from'@univerjs-pro/license';function _0x20bb(){const _0x101b52=['UNRECOGNIZED','personId','_initUserSync','_config','code','find','type','disposeWithMe','error','_threadCommentModel','Solved','symbol','subscribe','_sessionService','getMemberID','solved','/delete','body','updateComment','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','pluginName','UNIVER_UNKNOWN','comment','user','getUser','parentId','/list','OpenOrReOpen','replies','requireSession','filter','comments','defineProperty','root','426312yitfBU','stringify','619572aJytce','map','_threadCommentDataSourceService','1750462vHgUXm','getComment','unitId','parse','deleteComment','thread-comment-data-source.config','_configService','3897738ehzvtJ','Add','3898895VPrEPZ','Edit','16370WvIFXC','users','addUser','Solve','commentUpdate$','YYYY/MM/DD\x20HH:mm','setConfig','forEach','COMMENT','getUnit','userId','_initDataSource','Reply','format','post','createTimestamp','36ddBAQE','125rVXOKY','get','getCurrentUser','_init','content','/universer-api/comment/unit/','_commentService','_httpService','add','threadId','_threadCommentDataSource','replyId','saveCommentToSnapshot','length','payload','getOwnPropertyDescriptor','pipe','rangeType','addComment','customRanges','dataSource','Delete','userID','/solved','resolveComment','_userService','3676416MUAelm','delete','_injector','onStarting'];_0x20bb=function(){return _0x101b52;};return _0x20bb();}import{dayjs as _0x48ced7,UserManagerService as _0x426d68,Inject as _0x1eb374,Injector as _0x5c40b1,Disposable as _0x2f32a1,CustomRangeType as _0x1415bf,UniverInstanceType as _0x1f859b,DependentOn as _0x5662ab,Plugin as _0x4bceec,merge as _0x5519cd,IConfigService as _0x5bebfc}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x1017cc}from'@univerjs/thread-comment-ui';function _0xf802(_0x565483,_0x402004){const _0x20bb9a=_0x20bb();return _0xf802=function(_0xf802d4,_0x547781){_0xf802d4=_0xf802d4-0x1a5;let _0x2ebb75=_0x20bb9a[_0xf802d4];return _0x2ebb75;},_0xf802(_0x565483,_0x402004);}import{ThreadCommentModel as _0x5837b1,IThreadCommentDataSourceService as _0x31dc4e}from'@univerjs/thread-comment';import{bufferTime as _0x473cd5}from'rxjs';import{HTTPService as _0x1be0c4}from'@univerjs/network';const B=_0x3bdc18(0x1dd);var v=(_0x5e24db=>(_0x5e24db[_0x5e24db[_0x3bdc18(0x1e5)]=0x0]=_0x3bdc18(0x1e5),_0x5e24db[_0x5e24db[_0x3bdc18(0x1d4)]=0x1]='Solved',_0x5e24db[_0x5e24db[_0x3bdc18(0x1ca)]=-0x1]='UNRECOGNIZED',_0x5e24db))(v||{}),p=(_0x3e0abd=>(_0x3e0abd[_0x3e0abd['Unknown']=0x0]='Unknown',_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1f9)]=0x1]=_0x3bdc18(0x1f9),_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1a7)]=0x2]=_0x3bdc18(0x1a7),_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1fb)]=0x3]=_0x3bdc18(0x1fb),_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1c1)]=0x4]=_0x3bdc18(0x1c1),_0x3e0abd[_0x3e0abd[_0x3bdc18(0x1ff)]=0x5]='Solve',_0x3e0abd[_0x3e0abd['UNRECOGNIZED']=-0x1]=_0x3bdc18(0x1ca),_0x3e0abd))(p||{});const O=_0x2bbe81=>_0x48ced7(new Date(+_0x2bbe81))[_0x3bdc18(0x1a8)]('YYYY/MM/DD\x20HH:mm'),K=async(_0x4ee733,_0x20f049)=>{const _0x4bf02f=_0x3bdc18,_0x5b0ff2=_0x4ee733['get'](_0x426d68),_0x287b7f=_0x4ee733['get'](_0x1be0c4);_0x20f049[_0x4bf02f(0x203)](_0x119be5=>{const _0x2ab9ba=_0x4bf02f;_0x5b0ff2[_0x2ab9ba(0x1e2)](_0x119be5)&&_0x20f049[_0x2ab9ba(0x1c7)](_0x119be5);}),_0x20f049['size']&&(await _0x287b7f['get']('/universer-api/user/list',{'params':{'userIDs':[..._0x20f049]}}))[_0x4bf02f(0x1db)][_0x4bf02f(0x1fd)][_0x4bf02f(0x203)](_0x5d7b06=>{const _0x4320f2=_0x4bf02f;_0x5d7b06&&_0x5b0ff2[_0x4320f2(0x1fe)](_0x5d7b06);});};var V=Object['defineProperty'],z=Object[_0x3bdc18(0x1bb)],Q=(_0x3740c4,_0x3fa05e,_0x12fc80,_0x4a763f)=>{for(var _0x16d664=_0x4a763f>0x1?void 0x0:_0x4a763f?z(_0x3fa05e,_0x12fc80):_0x3fa05e,_0xddb9af=_0x3740c4['length']-0x1,_0x17661c;_0xddb9af>=0x0;_0xddb9af--)(_0x17661c=_0x3740c4[_0xddb9af])&&(_0x16d664=(_0x4a763f?_0x17661c(_0x3fa05e,_0x12fc80,_0x16d664):_0x17661c(_0x16d664))||_0x16d664);return _0x4a763f&&_0x16d664&&V(_0x3fa05e,_0x12fc80,_0x16d664),_0x16d664;},_=(_0x2eb656,_0x4f8314)=>(_0x4753fb,_0x163190)=>_0x4f8314(_0x4753fb,_0x163190,_0x2eb656);let f=class extends _0x2f32a1{constructor(_0x1a150c,_0x3add72,_0x2cfbe4,_0x5eb323){const _0x4811be=_0x3bdc18;super(),this[_0x4811be(0x1b2)]=_0x1a150c,this[_0x4811be(0x1d3)]=_0x3add72,this[_0x4811be(0x1c5)]=_0x2cfbe4,this[_0x4811be(0x1c8)]=_0x5eb323,this[_0x4811be(0x1af)](),this[_0x4811be(0x1cc)]();}['_initUserSync'](){const _0x4b7e9c=_0x3bdc18;this[_0x4b7e9c(0x1d1)](this['_threadCommentModel'][_0x4b7e9c(0x200)][_0x4b7e9c(0x1bc)](_0x473cd5(0x10))[_0x4b7e9c(0x1d6)](_0x484d91=>{const _0x2db3ed=_0x4b7e9c,_0x4d6208=new Set();_0x484d91[_0x2db3ed(0x203)](_0x31d3d0=>{const _0x37c7a1=_0x2db3ed;switch(_0x31d3d0[_0x37c7a1(0x1d0)]){case _0x37c7a1(0x1b4):{const _0x2b2288=_0x31d3d0[_0x37c7a1(0x1ba)][_0x37c7a1(0x1cb)];_0x4d6208['add'](_0x2b2288);break;}}}),K(this['_injector'],_0x4d6208);}));}['_init'](){const _0x559287=_0x3bdc18;this[_0x559287(0x1d1)](this[_0x559287(0x1b2)]['commentUpdate$'][_0x559287(0x1d6)](async _0x5b3b57=>{const _0x5808a8=_0x559287;var _0x945cce,_0x48043e,_0x406f32,_0x5ebf48;const _0x1e8685=(_0x945cce=this[_0x5808a8(0x1d3)]['getUnit'](_0x5b3b57[_0x5808a8(0x1f3)])[_0x5808a8(0x1cf)](_0x1040c4=>_0x1040c4['threadId']===_0x5b3b57['threadId']))==null?void 0x0:_0x945cce['root'];if(!_0x1e8685)return;const {unitId:_0x592796,subUnitId:_0x2c8487}=_0x1e8685;switch(_0x5b3b57[_0x5808a8(0x1e1)]&&this[_0x5808a8(0x1c5)][_0x5808a8(0x1fe)](_0x5b3b57[_0x5808a8(0x1e1)]),_0x5b3b57[_0x5808a8(0x1d0)]){case p[_0x5808a8(0x1f9)]:break;case p[_0x5808a8(0x1a7)]:{this[_0x5808a8(0x1d3)][_0x5808a8(0x1be)](_0x592796,_0x2c8487,{'unitId':_0x592796,'subUnitId':_0x2c8487,'ref':'','id':_0x5b3b57['replyId'],'dT':O(+_0x5b3b57[_0x5808a8(0x1aa)]),'threadId':_0x5b3b57[_0x5808a8(0x1b5)],'personId':(_0x406f32=(_0x48043e=_0x5b3b57[_0x5808a8(0x1e1)])==null?void 0x0:_0x48043e[_0x5808a8(0x1c2)])!=null?_0x406f32:_0x5b3b57[_0x5808a8(0x1a5)],'text':JSON['parse'](_0x5b3b57[_0x5808a8(0x1b0)]),'parentId':_0x1e8685['id']});break;}case p['Delete']:{const _0x21926d=this['_threadCommentModel'][_0x5808a8(0x1f2)](_0x592796,_0x2c8487,_0x5b3b57[_0x5808a8(0x1b7)]);_0x21926d&&_0x21926d[_0x5808a8(0x1e3)]&&this[_0x5808a8(0x1d3)]['deleteComment'](_0x592796,_0x2c8487,_0x5b3b57[_0x5808a8(0x1b7)]);break;}case p['Edit']:{this[_0x5808a8(0x1d3)][_0x5808a8(0x1dc)](_0x592796,_0x2c8487,{'commentId':_0x5b3b57[_0x5808a8(0x1b7)],'text':JSON[_0x5808a8(0x1f4)](_0x5b3b57[_0x5808a8(0x1b0)])});break;}case p[_0x5808a8(0x1ff)]:{const _0x42400c=(_0x5ebf48=this[_0x5808a8(0x1d3)][_0x5808a8(0x205)](_0x5b3b57[_0x5808a8(0x1f3)])['find'](_0x534e22=>_0x534e22[_0x5808a8(0x1b5)]===_0x5b3b57['threadId']))==null?void 0x0:_0x5ebf48[_0x5808a8(0x1eb)];_0x42400c&&this[_0x5808a8(0x1d3)][_0x5808a8(0x1c4)](_0x592796,_0x2c8487,_0x42400c['id'],_0x5b3b57[_0x5808a8(0x1d9)]===v['Solved']);break;}}}));}};f=Q([_(0x0,_0x1eb374(_0x35b059)),_(0x1,_0x1eb374(_0x5837b1)),_(0x2,_0x1eb374(_0x426d68)),_(0x3,_0x1eb374(_0x5c40b1))],f);const X=_0x3bdc18(0x1f6),P={};var k=Object[_0x3bdc18(0x1ea)],ee=Object[_0x3bdc18(0x1bb)],re=(_0x4a160c,_0x415775,_0x2d801d,_0x6a6a4d)=>{const _0x2a23b1=_0x3bdc18;for(var _0x26cfe4=_0x6a6a4d>0x1?void 0x0:_0x6a6a4d?ee(_0x415775,_0x2d801d):_0x415775,_0x40d769=_0x4a160c[_0x2a23b1(0x1b9)]-0x1,_0x393b20;_0x40d769>=0x0;_0x40d769--)(_0x393b20=_0x4a160c[_0x40d769])&&(_0x26cfe4=(_0x6a6a4d?_0x393b20(_0x415775,_0x2d801d,_0x26cfe4):_0x393b20(_0x26cfe4))||_0x26cfe4);return _0x6a6a4d&&_0x26cfe4&&k(_0x415775,_0x2d801d,_0x26cfe4),_0x26cfe4;},I=(_0x2f4d8a,_0x34830d)=>(_0x3bca56,_0x5637b2)=>_0x34830d(_0x3bca56,_0x5637b2,_0x2f4d8a);function te(_0x9a3543,_0x345a2b){const _0x1d7eed=_0x3bdc18,_0x73720d=_0x9a3543['replies'][0x0];return{..._0x345a2b,'id':_0x73720d['replyId'],'resolved':_0x9a3543['solved']===0x1,'dT':O(_0x73720d['createTimestamp']),'personId':_0x73720d[_0x1d7eed(0x1a5)],'threadId':_0x73720d[_0x1d7eed(0x1b5)]};}function se(_0x309e42,_0x3215bf,_0x43e30d){const _0x57e5a3=_0x3bdc18;var _0x407189,_0x4764ed;if(((_0x4764ed=(_0x407189=_0x309e42==null?void 0x0:_0x309e42[_0x57e5a3(0x1e6)])==null?void 0x0:_0x407189['length'])!=null?_0x4764ed:0x0)>0x0){const _0x45d8b9=(_0xd22c19,_0x2b022e)=>({'id':_0xd22c19[_0x57e5a3(0x1b7)],'threadId':_0xd22c19[_0x57e5a3(0x1b5)],'dT':O(_0xd22c19[_0x57e5a3(0x1aa)]),'personId':_0xd22c19[_0x57e5a3(0x1a5)],'resolved':_0x309e42[_0x57e5a3(0x1d9)]===v[_0x57e5a3(0x1d4)],'unitId':_0x3215bf,'subUnitId':_0x43e30d,'text':JSON[_0x57e5a3(0x1f4)](_0xd22c19['content']),'parentId':_0x2b022e}),_0x434b1b=_0x45d8b9(_0x309e42['replies'][0x0]);return{..._0x434b1b,'children':_0x309e42[_0x57e5a3(0x1e6)]['slice'](0x1)[_0x57e5a3(0x1ef)](_0x4be4f4=>_0x45d8b9(_0x4be4f4,_0x434b1b['id']))};}return null;}let S=class{constructor(_0x24e667,_0x5572a4,_0x3cfeab,_0x4a9ed2){const _0x19a370=_0x3bdc18;this[_0x19a370(0x1b3)]=_0x24e667,this[_0x19a370(0x1c5)]=_0x5572a4,this[_0x19a370(0x1d7)]=_0x3cfeab,this[_0x19a370(0x1c8)]=_0x4a9ed2;}async[_0x3bdc18(0x1be)](_0x46e15a){const _0x3bc4f6=_0x3bdc18;var _0x48902b,_0x4cf324;const {parentId:_0x9e8baf,unitId:_0x424586,text:_0x5a250a,threadId:_0x1347ab}=_0x46e15a,_0x2fa257=(_0x4cf324=(_0x48902b=_0x5a250a['customRanges'])==null?void 0x0:_0x48902b[_0x3bc4f6(0x1e8)](_0x40e8ad=>_0x40e8ad[_0x3bc4f6(0x1bd)]===_0x1415bf[_0x3bc4f6(0x204)])[_0x3bc4f6(0x1ef)](_0x446d69=>_0x446d69['rangeId']))!=null?_0x4cf324:[],_0x539f8f=JSON['stringify'](_0x5a250a),_0x171c95=(await this[_0x3bc4f6(0x1d7)][_0x3bc4f6(0x1e7)](_0x424586))[_0x3bc4f6(0x1d8)]();if(_0x9e8baf){const _0x26f908={'memberId':_0x171c95,'unitId':_0x424586,'content':_0x539f8f,'mention':_0x2fa257,'threadId':_0x1347ab},_0x522dcb=(await this['_httpService'][_0x3bc4f6(0x1a9)](_0x3bc4f6(0x1b1)+_0x424586+'/reply',{'body':_0x26f908}))[_0x3bc4f6(0x1db)]['reply'];return{..._0x46e15a,'id':_0x522dcb['replyId'],'dT':_0x48ced7(+_0x522dcb[_0x3bc4f6(0x1aa)])['format'](_0x3bc4f6(0x201)),'personId':_0x522dcb[_0x3bc4f6(0x1a5)]};}else{const _0x300e9b={'memberId':_0x171c95,'unitId':_0x424586,'content':_0x539f8f,'mention':_0x2fa257},_0x5c9cf3=await this[_0x3bc4f6(0x1b3)][_0x3bc4f6(0x1a9)](_0x3bc4f6(0x1b1)+_0x424586+'/add',{'body':_0x300e9b});return te(_0x5c9cf3[_0x3bc4f6(0x1db)][_0x3bc4f6(0x1e0)],_0x46e15a);}}async[_0x3bdc18(0x1dc)](_0x305a05){const _0x502e57=_0x3bdc18;var _0x38e21e,_0x1508ec;const {text:_0xa8cc32,unitId:_0x5ac86f}=_0x305a05,_0x4d64fa=(_0x1508ec=(_0x38e21e=_0xa8cc32[_0x502e57(0x1bf)])==null?void 0x0:_0x38e21e['filter'](_0x318dfb=>_0x318dfb[_0x502e57(0x1bd)]===_0x1415bf['COMMENT'])[_0x502e57(0x1ef)](_0x2d5374=>_0x2d5374['rangeId']))!=null?_0x1508ec:[],_0x266530=JSON[_0x502e57(0x1ed)](_0xa8cc32),_0xdf1873=_0x305a05[_0x502e57(0x1b5)],_0x4742bb=_0x305a05['id'],_0x27fa2f={'memberId':(await this[_0x502e57(0x1d7)]['requireSession'](_0x5ac86f))['getMemberID'](),'unitId':_0x5ac86f,'threadId':_0xdf1873,'mention':_0x4d64fa,'content':_0x266530,'replyId':_0x4742bb},_0x1df711=await this[_0x502e57(0x1b3)][_0x502e57(0x1a9)](_0x502e57(0x1b1)+_0x5ac86f+'/edit',{'body':_0x27fa2f});return!_0x1df711[_0x502e57(0x1db)][_0x502e57(0x1d2)]||_0x1df711['body'][_0x502e57(0x1d2)][_0x502e57(0x1ce)]===0x1;}async[_0x3bdc18(0x1c4)](_0x527d55){const _0x1fca56=_0x3bdc18,{unitId:_0x182b72}=_0x527d55,_0x19882f=_0x527d55[_0x1fca56(0x1b5)],_0x30f803={'memberId':this[_0x1fca56(0x1c5)][_0x1fca56(0x1ae)]()[_0x1fca56(0x1c2)],'unitId':_0x182b72,'threadId':_0x19882f,'solved':_0x527d55['resolved']?v[_0x1fca56(0x1d4)]:v[_0x1fca56(0x1e5)]},_0x3ca022=await this[_0x1fca56(0x1b3)][_0x1fca56(0x1a9)](_0x1fca56(0x1b1)+_0x182b72+_0x1fca56(0x1c3),{'body':_0x30f803});return!_0x3ca022['body'][_0x1fca56(0x1d2)]||_0x3ca022[_0x1fca56(0x1db)]['error']['code']===0x1;}async[_0x3bdc18(0x1f5)](_0x24eade,_0x2fe2f2,_0x4f38ec,_0x4f0b4f){const _0x483d91=_0x3bdc18,_0x41384e={'memberId':(await this['_sessionService'][_0x483d91(0x1e7)](_0x24eade))[_0x483d91(0x1d8)](),'threadId':_0x4f38ec,'replyId':_0x4f0b4f,'unitId':_0x24eade},_0x48e88b=await this[_0x483d91(0x1b3)][_0x483d91(0x1a9)](_0x483d91(0x1b1)+_0x24eade+_0x483d91(0x1da),{'body':_0x41384e});return!_0x48e88b[_0x483d91(0x1db)][_0x483d91(0x1d2)]||_0x48e88b[_0x483d91(0x1db)][_0x483d91(0x1d2)]['code']===0x1;}async['listComments'](_0x1bdb68,_0x37c9c3,_0x3e2471){const _0x44dd4b=_0x3bdc18,_0x27f860={'unitId':_0x1bdb68,'threadId':_0x3e2471},_0x51c836=await this[_0x44dd4b(0x1b3)]['post']('/universer-api/comment/unit/'+_0x1bdb68+_0x44dd4b(0x1e4),{'body':_0x27f860}),_0x1704a7=_0x3e2471['map'](_0x238a17=>se(_0x51c836[_0x44dd4b(0x1db)][_0x44dd4b(0x1e9)][_0x238a17],_0x1bdb68,_0x37c9c3))[_0x44dd4b(0x1e8)](Boolean);return Object['values'](_0x51c836['body'][_0x44dd4b(0x1fd)])[_0x44dd4b(0x203)](_0x46fb32=>{const _0x421a38=_0x44dd4b;this['_userService'][_0x421a38(0x1fe)](_0x46fb32);}),_0x1704a7;}[_0x3bdc18(0x1b8)](_0x52a9eb){const _0x5eb107=_0x3bdc18;return{'id':_0x52a9eb['id'],'threadId':_0x52a9eb[_0x5eb107(0x1b5)],'ref':_0x52a9eb['ref']};}};S=re([I(0x0,_0x1eb374(_0x1be0c4)),I(0x1,_0x1eb374(_0x426d68)),I(0x2,_0x1eb374(_0x8c1a27)),I(0x3,_0x1eb374(_0x5c40b1))],S);var oe=Object[_0x3bdc18(0x1ea)],ne=Object['getOwnPropertyDescriptor'],ie=(_0x714854,_0x56be87,_0x2909a7,_0x2e7f5e)=>{for(var _0x2e8c0a=_0x2e7f5e>0x1?void 0x0:_0x2e7f5e?ne(_0x56be87,_0x2909a7):_0x56be87,_0x36b9cc=_0x714854['length']-0x1,_0x1b0166;_0x36b9cc>=0x0;_0x36b9cc--)(_0x1b0166=_0x714854[_0x36b9cc])&&(_0x2e8c0a=(_0x2e7f5e?_0x1b0166(_0x56be87,_0x2909a7,_0x2e8c0a):_0x1b0166(_0x2e8c0a))||_0x2e8c0a);return _0x2e7f5e&&_0x2e8c0a&&oe(_0x56be87,_0x2909a7,_0x2e8c0a),_0x2e8c0a;},M=(_0x8c3f31,_0x379eb0)=>(_0x2613f3,_0x204c62)=>_0x379eb0(_0x2613f3,_0x204c62,_0x8c3f31);let b=class extends _0x2f32a1{constructor(_0x5b1b5c,_0x4aca0b){const _0x3d2d11=_0x3bdc18;super(),this['_threadCommentDataSourceService']=_0x5b1b5c,this[_0x3d2d11(0x1b6)]=_0x4aca0b,this[_0x3d2d11(0x1a6)]();}[_0x3bdc18(0x1a6)](){const _0x484146=_0x3bdc18;this['_threadCommentDataSourceService'][_0x484146(0x1c0)]=this['_threadCommentDataSource'],this[_0x484146(0x1f0)]['syncUpdateMutationToColla']=!0x1;}};b=ie([M(0x0,_0x31dc4e),M(0x1,_0x1eb374(S))],b);var $=Object['defineProperty'],ce=Object['getOwnPropertyDescriptor'],ae=(_0x9451cc,_0xcaae0b,_0x44f90a)=>_0xcaae0b in _0x9451cc?$(_0x9451cc,_0xcaae0b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44f90a}):_0x9451cc[_0xcaae0b]=_0x44f90a,de=(_0x19b94e,_0x599e77,_0x284f9,_0x1940f5)=>{const _0x5296bb=_0x3bdc18;for(var _0x56198a=_0x1940f5>0x1?void 0x0:_0x1940f5?ce(_0x599e77,_0x284f9):_0x599e77,_0x2e9fb5=_0x19b94e[_0x5296bb(0x1b9)]-0x1,_0x25fefe;_0x2e9fb5>=0x0;_0x2e9fb5--)(_0x25fefe=_0x19b94e[_0x2e9fb5])&&(_0x56198a=(_0x1940f5?_0x25fefe(_0x599e77,_0x284f9,_0x56198a):_0x25fefe(_0x56198a))||_0x56198a);return _0x1940f5&&_0x56198a&&$(_0x599e77,_0x284f9,_0x56198a),_0x56198a;},N=(_0x2951e0,_0x41d405)=>(_0xa197f5,_0x22e987)=>_0x41d405(_0xa197f5,_0x22e987,_0x2951e0),j=(_0x135fec,_0x5d4d8e,_0x537a06)=>ae(_0x135fec,typeof _0x5d4d8e!=_0x3bdc18(0x1d5)?_0x5d4d8e+'':_0x5d4d8e,_0x537a06);let C=class extends _0x4bceec{constructor(_0x41a829=P,_0x1a492b,_0x38ba39){const _0x3014a1=_0x3bdc18;super(),this['_config']=_0x41a829,this['_injector']=_0x1a492b,this[_0x3014a1(0x1f7)]=_0x38ba39;const {..._0x93b49c}=_0x5519cd({},P,this[_0x3014a1(0x1cd)]);this[_0x3014a1(0x1f7)][_0x3014a1(0x202)](X,_0x93b49c);}[_0x3bdc18(0x1c9)](){const _0x42aec4=_0x3bdc18;[[S],[b],[f]][_0x42aec4(0x203)](_0x53cd6f=>{const _0x510648=_0x42aec4;this[_0x510648(0x1c8)]['add'](_0x53cd6f);});}['onReady'](){const _0x54d001=_0x3bdc18;this[_0x54d001(0x1c8)][_0x54d001(0x1ad)](b),this[_0x54d001(0x1c8)][_0x54d001(0x1ad)](f);}};j(C,_0x3bdc18(0x1de),B),j(C,_0x3bdc18(0x1d0),_0x1f859b[_0x3bdc18(0x1df)]),C=de([_0x5662ab(_0x1017cc,_0x387457,_0x28642f),N(0x1,_0x1eb374(_0x5c40b1)),N(0x2,_0x5bebfc)],C);export{C as UniverThreadCommentDataSourcePlugin};
|
|
1
|
+
const _0x483a87=_0x4978;(function(_0x2ed3fe,_0x2da360){const _0xaef6f8=_0x4978,_0x1d91e3=_0x2ed3fe();while(!![]){try{const _0x45df9e=parseInt(_0xaef6f8(0xbf))/0x1+parseInt(_0xaef6f8(0xe5))/0x2+-parseInt(_0xaef6f8(0xa0))/0x3+-parseInt(_0xaef6f8(0xb8))/0x4+-parseInt(_0xaef6f8(0xaf))/0x5*(-parseInt(_0xaef6f8(0x94))/0x6)+parseInt(_0xaef6f8(0xc1))/0x7+-parseInt(_0xaef6f8(0xd9))/0x8;if(_0x45df9e===_0x2da360)break;else _0x1d91e3['push'](_0x1d91e3['shift']());}catch(_0x17693d){_0x1d91e3['push'](_0x1d91e3['shift']());}}}(_0x5bb2,0x553a0));import{CommentService as _0xea8c4d,CollaborationSessionService as _0xf43820,UniverCollaborationClientPlugin as _0x53f4e0}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x4d0fa9}from'@univerjs-pro/license';function _0x5bb2(){const _0x4f0d10=['parse','COMMENT','syncUpdateMutationToColla','addComment','Edit','error','createTimestamp','dataSource','values','get','reply','rangeType','rangeId','post','resolved','3555024wJbOUf','user','slice','_configService','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','_userService','resolveComment','_config','type','/delete','personId','/reply','844804RZFfmX','Add','getUser','Delete','threadId','_threadCommentDataSource','payload','onStarting','stringify','/add','root','subscribe','Reply','getComment','_init','_initDataSource','add','requireSession','pipe','/solved','disposeWithMe','_initUserSync','94086dpIIdY','updateComment','find','forEach','UNRECOGNIZED','_threadCommentDataSourceService','format','replyId','_injector','defineProperty','users','_threadCommentModel','1373508fbgOpI','thread-comment-data-source.config','customRanges','commentUpdate$','_sessionService','Solve','YYYY/MM/DD\x20HH:mm','/universer-api/comment/unit/','getMemberID','getOwnPropertyDescriptor','_httpService','/universer-api/user/list','getUnit','getCurrentUser','map','55LmpZYG','_commentService','size','Unknown','Solved','userID','content','solved','replies','101492AXVFKB','length','OpenOrReOpen','code','symbol','filter','setConfig','487372mShWom','UNIVER_UNKNOWN','1360870aYEtKQ','onReady','userId','deleteComment','saveCommentToSnapshot','addUser','/edit','/list','body'];_0x5bb2=function(){return _0x4f0d10;};return _0x5bb2();}import{dayjs as _0x5ac57a,UserManagerService as _0x4b74f8,Inject as _0x1c3f7e,Injector as _0x333bd3,Disposable as _0x2cb0ba,CustomRangeType as _0x1dbbcc,UniverInstanceType as _0x310767,DependentOn as _0x305b34,Plugin as _0x3efe4c,merge as _0x1947cd,IConfigService as _0x58d764}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x22cb8}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x319e88,IThreadCommentDataSourceService as _0x35b8ff}from'@univerjs/thread-comment';import{bufferTime as _0x21ee96}from'rxjs';import{HTTPService as _0x33040e}from'@univerjs/network';const B=_0x483a87(0xdd);var v=(_0x158edc=>(_0x158edc[_0x158edc[_0x483a87(0xba)]=0x0]=_0x483a87(0xba),_0x158edc[_0x158edc[_0x483a87(0xb3)]=0x1]=_0x483a87(0xb3),_0x158edc[_0x158edc[_0x483a87(0x98)]=-0x1]=_0x483a87(0x98),_0x158edc))(v||{}),p=(_0x18486a=>(_0x18486a[_0x18486a[_0x483a87(0xb2)]=0x0]=_0x483a87(0xb2),_0x18486a[_0x18486a[_0x483a87(0xe6)]=0x1]=_0x483a87(0xe6),_0x18486a[_0x18486a[_0x483a87(0xf1)]=0x2]=_0x483a87(0xf1),_0x18486a[_0x18486a[_0x483a87(0xce)]=0x3]='Edit',_0x18486a[_0x18486a[_0x483a87(0xe8)]=0x4]='Delete',_0x18486a[_0x18486a['Solve']=0x5]=_0x483a87(0xa5),_0x18486a[_0x18486a['UNRECOGNIZED']=-0x1]=_0x483a87(0x98),_0x18486a))(p||{});const O=_0x33ad30=>_0x5ac57a(new Date(+_0x33ad30))[_0x483a87(0x9a)]('YYYY/MM/DD\x20HH:mm'),K=async(_0x8fd83d,_0x45ae9f)=>{const _0x4674be=_0x483a87,_0x599b96=_0x8fd83d[_0x4674be(0xd3)](_0x4b74f8),_0x1d3c17=_0x8fd83d[_0x4674be(0xd3)](_0x33040e);_0x45ae9f['forEach'](_0x292593=>{const _0x1855a2=_0x4674be;_0x599b96[_0x1855a2(0xe7)](_0x292593)&&_0x45ae9f['delete'](_0x292593);}),_0x45ae9f[_0x4674be(0xb1)]&&(await _0x1d3c17[_0x4674be(0xd3)](_0x4674be(0xab),{'params':{'userIDs':[..._0x45ae9f]}}))[_0x4674be(0xc9)]['users']['forEach'](_0x4df09a=>{const _0x10cd21=_0x4674be;_0x4df09a&&_0x599b96[_0x10cd21(0xc6)](_0x4df09a);});};var V=Object['defineProperty'],z=Object[_0x483a87(0xa9)],Q=(_0x26e3b5,_0x44d901,_0x2f5a15,_0x4d0978)=>{const _0x39d81e=_0x483a87;for(var _0x27123f=_0x4d0978>0x1?void 0x0:_0x4d0978?z(_0x44d901,_0x2f5a15):_0x44d901,_0x1da4c1=_0x26e3b5[_0x39d81e(0xb9)]-0x1,_0x491e37;_0x1da4c1>=0x0;_0x1da4c1--)(_0x491e37=_0x26e3b5[_0x1da4c1])&&(_0x27123f=(_0x4d0978?_0x491e37(_0x44d901,_0x2f5a15,_0x27123f):_0x491e37(_0x27123f))||_0x27123f);return _0x4d0978&&_0x27123f&&V(_0x44d901,_0x2f5a15,_0x27123f),_0x27123f;},_=(_0x506023,_0x4af030)=>(_0x4f06d6,_0x37aa7f)=>_0x4af030(_0x4f06d6,_0x37aa7f,_0x506023);let f=class extends _0x2cb0ba{constructor(_0xe41f1d,_0x49fb59,_0x49a375,_0x3b9927){const _0x24319d=_0x483a87;super(),this[_0x24319d(0xb0)]=_0xe41f1d,this[_0x24319d(0x9f)]=_0x49fb59,this[_0x24319d(0xde)]=_0x49a375,this['_injector']=_0x3b9927,this[_0x24319d(0x8c)](),this[_0x24319d(0x93)]();}['_initUserSync'](){const _0x4770fb=_0x483a87;this[_0x4770fb(0x92)](this[_0x4770fb(0x9f)][_0x4770fb(0xa3)][_0x4770fb(0x90)](_0x21ee96(0x10))[_0x4770fb(0xf0)](_0x36991b=>{const _0x511a5a=_0x4770fb,_0x5a5a91=new Set();_0x36991b[_0x511a5a(0x97)](_0x52ba1b=>{const _0x3a35aa=_0x511a5a;switch(_0x52ba1b['type']){case'add':{const _0x3f0437=_0x52ba1b[_0x3a35aa(0xeb)][_0x3a35aa(0xe3)];_0x5a5a91[_0x3a35aa(0x8e)](_0x3f0437);break;}}}),K(this[_0x511a5a(0x9c)],_0x5a5a91);}));}[_0x483a87(0x8c)](){const _0xdf37ff=_0x483a87;this[_0xdf37ff(0x92)](this[_0xdf37ff(0xb0)][_0xdf37ff(0xa3)][_0xdf37ff(0xf0)](async _0x6284df=>{const _0x2165a3=_0xdf37ff;var _0x47995e,_0x2f44dc,_0x3ac679,_0x2b6a41;const _0x5166c1=(_0x47995e=this[_0x2165a3(0x9f)][_0x2165a3(0xac)](_0x6284df['unitId'])[_0x2165a3(0x96)](_0x4518c2=>_0x4518c2[_0x2165a3(0xe9)]===_0x6284df[_0x2165a3(0xe9)]))==null?void 0x0:_0x47995e['root'];if(!_0x5166c1)return;const {unitId:_0x2a8a90,subUnitId:_0x2eb574}=_0x5166c1;switch(_0x6284df[_0x2165a3(0xda)]&&this[_0x2165a3(0xde)]['addUser'](_0x6284df['user']),_0x6284df[_0x2165a3(0xe1)]){case p[_0x2165a3(0xe6)]:break;case p[_0x2165a3(0xf1)]:{this[_0x2165a3(0x9f)][_0x2165a3(0xcd)](_0x2a8a90,_0x2eb574,{'unitId':_0x2a8a90,'subUnitId':_0x2eb574,'ref':'','id':_0x6284df[_0x2165a3(0x9b)],'dT':O(+_0x6284df[_0x2165a3(0xd0)]),'threadId':_0x6284df[_0x2165a3(0xe9)],'personId':(_0x3ac679=(_0x2f44dc=_0x6284df['user'])==null?void 0x0:_0x2f44dc[_0x2165a3(0xb4)])!=null?_0x3ac679:_0x6284df[_0x2165a3(0xc3)],'text':JSON[_0x2165a3(0xca)](_0x6284df[_0x2165a3(0xb5)]),'parentId':_0x5166c1['id']});break;}case p[_0x2165a3(0xe8)]:{const _0x1ed2c9=this[_0x2165a3(0x9f)][_0x2165a3(0xf2)](_0x2a8a90,_0x2eb574,_0x6284df['replyId']);_0x1ed2c9&&_0x1ed2c9['parentId']&&this[_0x2165a3(0x9f)]['deleteComment'](_0x2a8a90,_0x2eb574,_0x6284df[_0x2165a3(0x9b)]);break;}case p[_0x2165a3(0xce)]:{this[_0x2165a3(0x9f)][_0x2165a3(0x95)](_0x2a8a90,_0x2eb574,{'commentId':_0x6284df[_0x2165a3(0x9b)],'text':JSON[_0x2165a3(0xca)](_0x6284df['content'])});break;}case p[_0x2165a3(0xa5)]:{const _0x59d5ad=(_0x2b6a41=this[_0x2165a3(0x9f)]['getUnit'](_0x6284df['unitId'])[_0x2165a3(0x96)](_0x20a9bd=>_0x20a9bd[_0x2165a3(0xe9)]===_0x6284df[_0x2165a3(0xe9)]))==null?void 0x0:_0x2b6a41[_0x2165a3(0xef)];_0x59d5ad&&this[_0x2165a3(0x9f)][_0x2165a3(0xdf)](_0x2a8a90,_0x2eb574,_0x59d5ad['id'],_0x6284df[_0x2165a3(0xb6)]===v['Solved']);break;}}}));}};f=Q([_(0x0,_0x1c3f7e(_0xea8c4d)),_(0x1,_0x1c3f7e(_0x319e88)),_(0x2,_0x1c3f7e(_0x4b74f8)),_(0x3,_0x1c3f7e(_0x333bd3))],f);const X=_0x483a87(0xa1),P={};var k=Object[_0x483a87(0x9d)],ee=Object['getOwnPropertyDescriptor'],re=(_0x4650a2,_0xfa25fe,_0x3c005e,_0x54d2c2)=>{const _0x5c175f=_0x483a87;for(var _0xbd98d6=_0x54d2c2>0x1?void 0x0:_0x54d2c2?ee(_0xfa25fe,_0x3c005e):_0xfa25fe,_0x2322d1=_0x4650a2[_0x5c175f(0xb9)]-0x1,_0xb802d7;_0x2322d1>=0x0;_0x2322d1--)(_0xb802d7=_0x4650a2[_0x2322d1])&&(_0xbd98d6=(_0x54d2c2?_0xb802d7(_0xfa25fe,_0x3c005e,_0xbd98d6):_0xb802d7(_0xbd98d6))||_0xbd98d6);return _0x54d2c2&&_0xbd98d6&&k(_0xfa25fe,_0x3c005e,_0xbd98d6),_0xbd98d6;},I=(_0x5bb6ea,_0x46b968)=>(_0x595235,_0x3ad416)=>_0x46b968(_0x595235,_0x3ad416,_0x5bb6ea);function te(_0x23aaa5,_0x5dcefe){const _0x38262a=_0x483a87,_0x5018dc=_0x23aaa5[_0x38262a(0xb7)][0x0];return{..._0x5dcefe,'id':_0x5018dc[_0x38262a(0x9b)],'resolved':_0x23aaa5[_0x38262a(0xb6)]===0x1,'dT':O(_0x5018dc['createTimestamp']),'personId':_0x5018dc['userId'],'threadId':_0x5018dc[_0x38262a(0xe9)]};}function se(_0x135ab1,_0x55c51e,_0x305460){const _0x1c7213=_0x483a87;var _0x39b9f8,_0x3c1917;if(((_0x3c1917=(_0x39b9f8=_0x135ab1==null?void 0x0:_0x135ab1[_0x1c7213(0xb7)])==null?void 0x0:_0x39b9f8['length'])!=null?_0x3c1917:0x0)>0x0){const _0x48b875=(_0x35f431,_0x5119f2)=>({'id':_0x35f431[_0x1c7213(0x9b)],'threadId':_0x35f431[_0x1c7213(0xe9)],'dT':O(_0x35f431['createTimestamp']),'personId':_0x35f431[_0x1c7213(0xc3)],'resolved':_0x135ab1[_0x1c7213(0xb6)]===v[_0x1c7213(0xb3)],'unitId':_0x55c51e,'subUnitId':_0x305460,'text':JSON[_0x1c7213(0xca)](_0x35f431[_0x1c7213(0xb5)]),'parentId':_0x5119f2}),_0x330ced=_0x48b875(_0x135ab1[_0x1c7213(0xb7)][0x0]);return{..._0x330ced,'children':_0x135ab1[_0x1c7213(0xb7)][_0x1c7213(0xdb)](0x1)['map'](_0x3dfbfd=>_0x48b875(_0x3dfbfd,_0x330ced['id']))};}return null;}let S=class{constructor(_0x53f626,_0x2a78c7,_0x4720aa,_0x465693){const _0x49eebf=_0x483a87;this[_0x49eebf(0xaa)]=_0x53f626,this[_0x49eebf(0xde)]=_0x2a78c7,this[_0x49eebf(0xa4)]=_0x4720aa,this[_0x49eebf(0x9c)]=_0x465693;}async[_0x483a87(0xcd)](_0x5d4e33){const _0x308473=_0x483a87;var _0xaed305,_0x398bdf;const {parentId:_0x11efdf,unitId:_0x1ec9e2,text:_0x720741,threadId:_0x38ceac}=_0x5d4e33,_0x45599b=(_0x398bdf=(_0xaed305=_0x720741[_0x308473(0xa2)])==null?void 0x0:_0xaed305[_0x308473(0xbd)](_0x5b598a=>_0x5b598a[_0x308473(0xd5)]===_0x1dbbcc['COMMENT'])[_0x308473(0xae)](_0x45e244=>_0x45e244[_0x308473(0xd6)]))!=null?_0x398bdf:[],_0x1ed378=JSON['stringify'](_0x720741),_0x1d8565=(await this[_0x308473(0xa4)][_0x308473(0x8f)](_0x1ec9e2))[_0x308473(0xa8)]();if(_0x11efdf){const _0x16614e={'memberId':_0x1d8565,'unitId':_0x1ec9e2,'content':_0x1ed378,'mention':_0x45599b,'threadId':_0x38ceac},_0xd479c8=(await this[_0x308473(0xaa)][_0x308473(0xd7)](_0x308473(0xa7)+_0x1ec9e2+_0x308473(0xe4),{'body':_0x16614e}))['body'][_0x308473(0xd4)];return{..._0x5d4e33,'id':_0xd479c8[_0x308473(0x9b)],'dT':_0x5ac57a(+_0xd479c8[_0x308473(0xd0)])[_0x308473(0x9a)](_0x308473(0xa6)),'personId':_0xd479c8[_0x308473(0xc3)]};}else{const _0x4c25b8={'memberId':_0x1d8565,'unitId':_0x1ec9e2,'content':_0x1ed378,'mention':_0x45599b},_0xd07fc9=await this[_0x308473(0xaa)][_0x308473(0xd7)](_0x308473(0xa7)+_0x1ec9e2+_0x308473(0xee),{'body':_0x4c25b8});return te(_0xd07fc9[_0x308473(0xc9)]['comment'],_0x5d4e33);}}async[_0x483a87(0x95)](_0x6b9e84){const _0x1bed3d=_0x483a87;var _0x1258bc,_0x20bb47;const {text:_0x1df47e,unitId:_0x2a44b8}=_0x6b9e84,_0x413222=(_0x20bb47=(_0x1258bc=_0x1df47e[_0x1bed3d(0xa2)])==null?void 0x0:_0x1258bc[_0x1bed3d(0xbd)](_0x4bc9a5=>_0x4bc9a5[_0x1bed3d(0xd5)]===_0x1dbbcc[_0x1bed3d(0xcb)])['map'](_0xcf99bd=>_0xcf99bd[_0x1bed3d(0xd6)]))!=null?_0x20bb47:[],_0x519217=JSON[_0x1bed3d(0xed)](_0x1df47e),_0x229c38=_0x6b9e84[_0x1bed3d(0xe9)],_0x1f2cb8=_0x6b9e84['id'],_0x4e6852={'memberId':(await this['_sessionService']['requireSession'](_0x2a44b8))[_0x1bed3d(0xa8)](),'unitId':_0x2a44b8,'threadId':_0x229c38,'mention':_0x413222,'content':_0x519217,'replyId':_0x1f2cb8},_0x2417b3=await this['_httpService'][_0x1bed3d(0xd7)](_0x1bed3d(0xa7)+_0x2a44b8+_0x1bed3d(0xc7),{'body':_0x4e6852});return!_0x2417b3['body']['error']||_0x2417b3[_0x1bed3d(0xc9)][_0x1bed3d(0xcf)][_0x1bed3d(0xbb)]===0x1;}async[_0x483a87(0xdf)](_0x587a37){const _0x82b465=_0x483a87,{unitId:_0x3698bd}=_0x587a37,_0xa0eb19=_0x587a37['threadId'],_0x37fca7={'memberId':this['_userService'][_0x82b465(0xad)]()[_0x82b465(0xb4)],'unitId':_0x3698bd,'threadId':_0xa0eb19,'solved':_0x587a37[_0x82b465(0xd8)]?v[_0x82b465(0xb3)]:v[_0x82b465(0xba)]},_0x35b7f2=await this['_httpService'][_0x82b465(0xd7)](_0x82b465(0xa7)+_0x3698bd+_0x82b465(0x91),{'body':_0x37fca7});return!_0x35b7f2[_0x82b465(0xc9)][_0x82b465(0xcf)]||_0x35b7f2[_0x82b465(0xc9)][_0x82b465(0xcf)]['code']===0x1;}async[_0x483a87(0xc4)](_0x2d21af,_0xb0d414,_0x47c860,_0x190a95){const _0x335c42=_0x483a87,_0x2e57e7={'memberId':(await this[_0x335c42(0xa4)]['requireSession'](_0x2d21af))[_0x335c42(0xa8)](),'threadId':_0x47c860,'replyId':_0x190a95,'unitId':_0x2d21af},_0x1fe506=await this['_httpService'][_0x335c42(0xd7)](_0x335c42(0xa7)+_0x2d21af+_0x335c42(0xe2),{'body':_0x2e57e7});return!_0x1fe506['body'][_0x335c42(0xcf)]||_0x1fe506['body']['error']['code']===0x1;}async['listComments'](_0xf701e2,_0x330f11,_0x2c37bd){const _0x40e3cd=_0x483a87,_0x37e883={'unitId':_0xf701e2,'threadId':_0x2c37bd},_0x3a4b4e=await this['_httpService']['post'](_0x40e3cd(0xa7)+_0xf701e2+_0x40e3cd(0xc8),{'body':_0x37e883}),_0x4095cc=_0x2c37bd[_0x40e3cd(0xae)](_0x1961f8=>se(_0x3a4b4e['body']['comments'][_0x1961f8],_0xf701e2,_0x330f11))[_0x40e3cd(0xbd)](Boolean);return Object[_0x40e3cd(0xd2)](_0x3a4b4e[_0x40e3cd(0xc9)][_0x40e3cd(0x9e)])['forEach'](_0x5666ee=>{const _0x2b095c=_0x40e3cd;this[_0x2b095c(0xde)][_0x2b095c(0xc6)](_0x5666ee);}),_0x4095cc;}[_0x483a87(0xc5)](_0x58b772){const _0x25e50e=_0x483a87;return{'id':_0x58b772['id'],'threadId':_0x58b772[_0x25e50e(0xe9)],'ref':_0x58b772['ref']};}};S=re([I(0x0,_0x1c3f7e(_0x33040e)),I(0x1,_0x1c3f7e(_0x4b74f8)),I(0x2,_0x1c3f7e(_0xf43820)),I(0x3,_0x1c3f7e(_0x333bd3))],S);var oe=Object[_0x483a87(0x9d)],ne=Object[_0x483a87(0xa9)],ie=(_0x2fc68e,_0x15bd0a,_0x4b8eb6,_0x43d511)=>{const _0x5c38f6=_0x483a87;for(var _0x38bebe=_0x43d511>0x1?void 0x0:_0x43d511?ne(_0x15bd0a,_0x4b8eb6):_0x15bd0a,_0x542050=_0x2fc68e[_0x5c38f6(0xb9)]-0x1,_0x5a8b19;_0x542050>=0x0;_0x542050--)(_0x5a8b19=_0x2fc68e[_0x542050])&&(_0x38bebe=(_0x43d511?_0x5a8b19(_0x15bd0a,_0x4b8eb6,_0x38bebe):_0x5a8b19(_0x38bebe))||_0x38bebe);return _0x43d511&&_0x38bebe&&oe(_0x15bd0a,_0x4b8eb6,_0x38bebe),_0x38bebe;},M=(_0x3ce58d,_0x216ce0)=>(_0x32c5a6,_0x3bcaa6)=>_0x216ce0(_0x32c5a6,_0x3bcaa6,_0x3ce58d);let b=class extends _0x2cb0ba{constructor(_0x57ca82,_0xe3319c){const _0x7a4733=_0x483a87;super(),this[_0x7a4733(0x99)]=_0x57ca82,this[_0x7a4733(0xea)]=_0xe3319c,this[_0x7a4733(0x8d)]();}[_0x483a87(0x8d)](){const _0x1fa01d=_0x483a87;this[_0x1fa01d(0x99)][_0x1fa01d(0xd1)]=this[_0x1fa01d(0xea)],this[_0x1fa01d(0x99)][_0x1fa01d(0xcc)]=!0x1;}};b=ie([M(0x0,_0x35b8ff),M(0x1,_0x1c3f7e(S))],b);var $=Object['defineProperty'],ce=Object[_0x483a87(0xa9)],ae=(_0x558e0c,_0x46be64,_0x312e25)=>_0x46be64 in _0x558e0c?$(_0x558e0c,_0x46be64,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x312e25}):_0x558e0c[_0x46be64]=_0x312e25,de=(_0x3eb319,_0x170ff2,_0x37913e,_0x4066ea)=>{const _0x2c1e36=_0x483a87;for(var _0x32091f=_0x4066ea>0x1?void 0x0:_0x4066ea?ce(_0x170ff2,_0x37913e):_0x170ff2,_0x1fbf2d=_0x3eb319[_0x2c1e36(0xb9)]-0x1,_0x275101;_0x1fbf2d>=0x0;_0x1fbf2d--)(_0x275101=_0x3eb319[_0x1fbf2d])&&(_0x32091f=(_0x4066ea?_0x275101(_0x170ff2,_0x37913e,_0x32091f):_0x275101(_0x32091f))||_0x32091f);return _0x4066ea&&_0x32091f&&$(_0x170ff2,_0x37913e,_0x32091f),_0x32091f;},N=(_0x50b079,_0xdac1a4)=>(_0x148262,_0x4b642d)=>_0xdac1a4(_0x148262,_0x4b642d,_0x50b079),j=(_0x25d3a2,_0x3e3dc3,_0xcd2929)=>ae(_0x25d3a2,typeof _0x3e3dc3!=_0x483a87(0xbc)?_0x3e3dc3+'':_0x3e3dc3,_0xcd2929);function _0x4978(_0x57c95e,_0x2451af){const _0x5bb291=_0x5bb2();return _0x4978=function(_0x4978ae,_0x484911){_0x4978ae=_0x4978ae-0x8c;let _0x131e0c=_0x5bb291[_0x4978ae];return _0x131e0c;},_0x4978(_0x57c95e,_0x2451af);}let C=class extends _0x3efe4c{constructor(_0x4f2bc0=P,_0x479687,_0x5c9a1f){const _0x154fd2=_0x483a87;super(),this['_config']=_0x4f2bc0,this[_0x154fd2(0x9c)]=_0x479687,this[_0x154fd2(0xdc)]=_0x5c9a1f;const {..._0x328f12}=_0x1947cd({},P,this[_0x154fd2(0xe0)]);this[_0x154fd2(0xdc)][_0x154fd2(0xbe)](X,_0x328f12);}[_0x483a87(0xec)](){[[S],[b],[f]]['forEach'](_0xf2b0a1=>{const _0xddc4a5=_0x4978;this[_0xddc4a5(0x9c)][_0xddc4a5(0x8e)](_0xf2b0a1);});}[_0x483a87(0xc2)](){const _0x1e91a0=_0x483a87;this['_injector'][_0x1e91a0(0xd3)](b),this['_injector'][_0x1e91a0(0xd3)](f);}};j(C,'pluginName',B),j(C,_0x483a87(0xe1),_0x310767[_0x483a87(0xc0)]),C=de([_0x305b34(_0x22cb8,_0x53f4e0,_0x4d0fa9),N(0x1,_0x1c3f7e(_0x333bd3)),N(0x2,_0x58d764)],C);export{C as UniverThreadCommentDataSourcePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5af292,_0x180766){const _0x2fef4b=_0x4459,_0x2439c2=_0x5af292();while(!![]){try{const _0x3ad8a7=-parseInt(_0x2fef4b(0x1cc))/0x1*(-parseInt(_0x2fef4b(0x237))/0x2)+parseInt(_0x2fef4b(0x1f3))/0x3+parseInt(_0x2fef4b(0x1c6))/0x4*(-parseInt(_0x2fef4b(0x236))/0x5)+-parseInt(_0x2fef4b(0x1ce))/0x6+-parseInt(_0x2fef4b(0x1f9))/0x7+parseInt(_0x2fef4b(0x1c8))/0x8+parseInt(_0x2fef4b(0x200))/0x9*(-parseInt(_0x2fef4b(0x1d0))/0xa);if(_0x3ad8a7===_0x180766)break;else _0x2439c2['push'](_0x2439c2['shift']());}catch(_0x5ef34b){_0x2439c2['push'](_0x2439c2['shift']());}}}(_0x2b13,0x4c815),function(_0xc7f385,_0x5948eb){const _0x3bc6a3=_0x4459;typeof exports==_0x3bc6a3(0x226)&&typeof module<'u'?_0x5948eb(exports,require(_0x3bc6a3(0x202)),require(_0x3bc6a3(0x1f8)),require('@univerjs/core'),require(_0x3bc6a3(0x1e1)),require('@univerjs/thread-comment'),require(_0x3bc6a3(0x1d1)),require(_0x3bc6a3(0x232))):typeof define=='function'&&define[_0x3bc6a3(0x1c0)]?define([_0x3bc6a3(0x1cb),_0x3bc6a3(0x202),_0x3bc6a3(0x1f8),_0x3bc6a3(0x207),_0x3bc6a3(0x1e1),_0x3bc6a3(0x1b6),_0x3bc6a3(0x1d1),_0x3bc6a3(0x232)],_0x5948eb):(_0xc7f385=typeof globalThis<'u'?globalThis:_0xc7f385||self,_0x5948eb(_0xc7f385[_0x3bc6a3(0x20e)]={},_0xc7f385[_0x3bc6a3(0x1be)],_0xc7f385[_0x3bc6a3(0x1d6)],_0xc7f385[_0x3bc6a3(0x1df)],_0xc7f385[_0x3bc6a3(0x1bc)],_0xc7f385[_0x3bc6a3(0x1b4)],_0xc7f385['rxjs'],_0xc7f385[_0x3bc6a3(0x233)]));}(this,function(_0x3af5b4,_0x59505a,_0x4d9111,_0x507fcc,_0xdbbb36,_0x116f1f,_0x2ca91c,_0x587fb4){'use strict';const _0x4886a4=_0x4459;const _0x1d8488=_0x4886a4(0x1f6);var _0xfba5d=(_0x1d374c=>(_0x1d374c[_0x1d374c[_0x4886a4(0x1c4)]=0x0]=_0x4886a4(0x1c4),_0x1d374c[_0x1d374c[_0x4886a4(0x1e0)]=0x1]=_0x4886a4(0x1e0),_0x1d374c[_0x1d374c[_0x4886a4(0x20d)]=-0x1]=_0x4886a4(0x20d),_0x1d374c))(_0xfba5d||{}),_0x344264=(_0x30901d=>(_0x30901d[_0x30901d['Unknown']=0x0]=_0x4886a4(0x1f5),_0x30901d[_0x30901d[_0x4886a4(0x1ec)]=0x1]=_0x4886a4(0x1ec),_0x30901d[_0x30901d[_0x4886a4(0x1fe)]=0x2]=_0x4886a4(0x1fe),_0x30901d[_0x30901d['Edit']=0x3]=_0x4886a4(0x1c2),_0x30901d[_0x30901d['Delete']=0x4]=_0x4886a4(0x206),_0x30901d[_0x30901d['Solve']=0x5]=_0x4886a4(0x1ed),_0x30901d[_0x30901d['UNRECOGNIZED']=-0x1]=_0x4886a4(0x20d),_0x30901d))(_0x344264||{});const _0x1cbe91=_0x240f07=>_0x507fcc['dayjs'](new Date(+_0x240f07))[_0x4886a4(0x21a)]('YYYY/MM/DD\x20HH:mm'),_0x33746b=async(_0x490f69,_0x1d13da)=>{const _0x4b9c81=_0x4886a4,_0x4b804d=_0x490f69[_0x4b9c81(0x20a)](_0x507fcc[_0x4b9c81(0x1b9)]),_0x190964=_0x490f69[_0x4b9c81(0x20a)](_0x587fb4['HTTPService']);_0x1d13da['forEach'](_0x35026e=>{const _0x429b67=_0x4b9c81;_0x4b804d[_0x429b67(0x21b)](_0x35026e)&&_0x1d13da[_0x429b67(0x1d8)](_0x35026e);}),_0x1d13da[_0x4b9c81(0x214)]&&(await _0x190964['get']('/universer-api/user/list',{'params':{'userIDs':[..._0x1d13da]}}))['body'][_0x4b9c81(0x1b3)][_0x4b9c81(0x1dd)](_0x3bd8e4=>{_0x3bd8e4&&_0x4b804d['addUser'](_0x3bd8e4);});};var _0x3d8961=Object['defineProperty'],_0x257963=Object[_0x4886a4(0x20c)],_0x996be9=(_0x168f29,_0x210174,_0x80132a,_0x597dae)=>{const _0xdee704=_0x4886a4;for(var _0x3b7dd6=_0x597dae>0x1?void 0x0:_0x597dae?_0x257963(_0x210174,_0x80132a):_0x210174,_0x40cf17=_0x168f29[_0xdee704(0x234)]-0x1,_0xa112be;_0x40cf17>=0x0;_0x40cf17--)(_0xa112be=_0x168f29[_0x40cf17])&&(_0x3b7dd6=(_0x597dae?_0xa112be(_0x210174,_0x80132a,_0x3b7dd6):_0xa112be(_0x3b7dd6))||_0x3b7dd6);return _0x597dae&&_0x3b7dd6&&_0x3d8961(_0x210174,_0x80132a,_0x3b7dd6),_0x3b7dd6;},_0x4cab37=(_0x2b0937,_0x50ae5f)=>(_0xd04513,_0x37bc0b)=>_0x50ae5f(_0xd04513,_0x37bc0b,_0x2b0937);let _0x44847b=class extends _0x507fcc[_0x4886a4(0x1cd)]{constructor(_0x4c3b2c,_0x3192a6,_0x49ef53,_0x236689){const _0x449fea=_0x4886a4;super(),this[_0x449fea(0x1f7)]=_0x4c3b2c,this[_0x449fea(0x1cf)]=_0x3192a6,this[_0x449fea(0x220)]=_0x49ef53,this[_0x449fea(0x22a)]=_0x236689,this['_init'](),this[_0x449fea(0x1f0)]();}[_0x4886a4(0x1f0)](){const _0x5976ef=_0x4886a4;this['disposeWithMe'](this[_0x5976ef(0x1cf)]['commentUpdate$']['pipe'](_0x2ca91c[_0x5976ef(0x1fc)](0x10))[_0x5976ef(0x1b7)](_0xc6d8e6=>{const _0x277a02=new Set();_0xc6d8e6['forEach'](_0x1fff71=>{const _0xdeb100=_0x4459;switch(_0x1fff71['type']){case _0xdeb100(0x204):{const _0x4c379d=_0x1fff71['payload'][_0xdeb100(0x22d)];_0x277a02[_0xdeb100(0x204)](_0x4c379d);break;}}}),_0x33746b(this['_injector'],_0x277a02);}));}[_0x4886a4(0x1d7)](){const _0x16f04b=_0x4886a4;this['disposeWithMe'](this['_commentService'][_0x16f04b(0x21d)][_0x16f04b(0x1b7)](async _0x5740c=>{const _0x1f51bd=_0x16f04b;var _0x128149,_0x298226,_0x4c01c8,_0x2678f4;const _0x2e342a=(_0x128149=this[_0x1f51bd(0x1cf)][_0x1f51bd(0x1c5)](_0x5740c[_0x1f51bd(0x1de)])['find'](_0x2f7a9f=>_0x2f7a9f[_0x1f51bd(0x1bb)]===_0x5740c[_0x1f51bd(0x1bb)]))==null?void 0x0:_0x128149[_0x1f51bd(0x222)];if(!_0x2e342a)return;const {unitId:_0x184ad9,subUnitId:_0x2c50b4}=_0x2e342a;switch(_0x5740c['user']&&this[_0x1f51bd(0x220)][_0x1f51bd(0x1c9)](_0x5740c[_0x1f51bd(0x1bd)]),_0x5740c[_0x1f51bd(0x215)]){case _0x344264[_0x1f51bd(0x1ec)]:break;case _0x344264[_0x1f51bd(0x1fe)]:{this[_0x1f51bd(0x1cf)]['addComment'](_0x184ad9,_0x2c50b4,{'unitId':_0x184ad9,'subUnitId':_0x2c50b4,'ref':'','id':_0x5740c[_0x1f51bd(0x1f4)],'dT':_0x1cbe91(+_0x5740c[_0x1f51bd(0x1d4)]),'threadId':_0x5740c[_0x1f51bd(0x1bb)],'personId':(_0x4c01c8=(_0x298226=_0x5740c[_0x1f51bd(0x1bd)])==null?void 0x0:_0x298226[_0x1f51bd(0x217)])!=null?_0x4c01c8:_0x5740c[_0x1f51bd(0x22c)],'text':JSON[_0x1f51bd(0x1e8)](_0x5740c[_0x1f51bd(0x216)]),'parentId':_0x2e342a['id']});break;}case _0x344264[_0x1f51bd(0x206)]:{const _0x3822ec=this[_0x1f51bd(0x1cf)][_0x1f51bd(0x1e4)](_0x184ad9,_0x2c50b4,_0x5740c['replyId']);_0x3822ec&&_0x3822ec['parentId']&&this[_0x1f51bd(0x1cf)][_0x1f51bd(0x1e6)](_0x184ad9,_0x2c50b4,_0x5740c['replyId']);break;}case _0x344264[_0x1f51bd(0x1c2)]:{this['_threadCommentModel'][_0x1f51bd(0x1f1)](_0x184ad9,_0x2c50b4,{'commentId':_0x5740c[_0x1f51bd(0x1f4)],'text':JSON[_0x1f51bd(0x1e8)](_0x5740c[_0x1f51bd(0x216)])});break;}case _0x344264[_0x1f51bd(0x1ed)]:{const _0x4a10ed=(_0x2678f4=this[_0x1f51bd(0x1cf)][_0x1f51bd(0x1c5)](_0x5740c['unitId'])['find'](_0x363b2d=>_0x363b2d[_0x1f51bd(0x1bb)]===_0x5740c[_0x1f51bd(0x1bb)]))==null?void 0x0:_0x2678f4[_0x1f51bd(0x222)];_0x4a10ed&&this[_0x1f51bd(0x1cf)][_0x1f51bd(0x208)](_0x184ad9,_0x2c50b4,_0x4a10ed['id'],_0x5740c[_0x1f51bd(0x1dc)]===_0xfba5d[_0x1f51bd(0x1e0)]);break;}}}));}};_0x44847b=_0x996be9([_0x4cab37(0x0,_0x507fcc['Inject'](_0x59505a[_0x4886a4(0x1da)])),_0x4cab37(0x1,_0x507fcc[_0x4886a4(0x1d3)](_0x116f1f['ThreadCommentModel'])),_0x4cab37(0x2,_0x507fcc['Inject'](_0x507fcc[_0x4886a4(0x1b9)])),_0x4cab37(0x3,_0x507fcc[_0x4886a4(0x1d3)](_0x507fcc[_0x4886a4(0x213)]))],_0x44847b);const _0x3d5763=_0x4886a4(0x22b),_0x206a62={};var _0x3d0664=Object['defineProperty'],_0x1083a8=Object[_0x4886a4(0x20c)],_0x2655cd=(_0x396ea6,_0x35a5b4,_0x131130,_0x8e3041)=>{const _0x18ed75=_0x4886a4;for(var _0x5d6a8c=_0x8e3041>0x1?void 0x0:_0x8e3041?_0x1083a8(_0x35a5b4,_0x131130):_0x35a5b4,_0x196525=_0x396ea6[_0x18ed75(0x234)]-0x1,_0x40268c;_0x196525>=0x0;_0x196525--)(_0x40268c=_0x396ea6[_0x196525])&&(_0x5d6a8c=(_0x8e3041?_0x40268c(_0x35a5b4,_0x131130,_0x5d6a8c):_0x40268c(_0x5d6a8c))||_0x5d6a8c);return _0x8e3041&&_0x5d6a8c&&_0x3d0664(_0x35a5b4,_0x131130,_0x5d6a8c),_0x5d6a8c;},_0x4daff7=(_0x2a7ad8,_0x2a7565)=>(_0x517130,_0x29102c)=>_0x2a7565(_0x517130,_0x29102c,_0x2a7ad8);function _0x48ff43(_0x17414d,_0x592f08){const _0x221584=_0x4886a4,_0x31c4c0=_0x17414d['replies'][0x0];return{..._0x592f08,'id':_0x31c4c0[_0x221584(0x1f4)],'resolved':_0x17414d[_0x221584(0x1dc)]===0x1,'dT':_0x1cbe91(_0x31c4c0[_0x221584(0x1d4)]),'personId':_0x31c4c0[_0x221584(0x22c)],'threadId':_0x31c4c0[_0x221584(0x1bb)]};}function _0x490eca(_0x127652,_0x28239f,_0x3e8f09){const _0xc030a3=_0x4886a4;var _0x4cdb72,_0x480eb5;if(((_0x480eb5=(_0x4cdb72=_0x127652==null?void 0x0:_0x127652['replies'])==null?void 0x0:_0x4cdb72[_0xc030a3(0x234)])!=null?_0x480eb5:0x0)>0x0){const _0xa9d2d8=(_0x4f3fbc,_0x2cee6c)=>({'id':_0x4f3fbc['replyId'],'threadId':_0x4f3fbc[_0xc030a3(0x1bb)],'dT':_0x1cbe91(_0x4f3fbc[_0xc030a3(0x1d4)]),'personId':_0x4f3fbc[_0xc030a3(0x22c)],'resolved':_0x127652[_0xc030a3(0x1dc)]===_0xfba5d[_0xc030a3(0x1e0)],'unitId':_0x28239f,'subUnitId':_0x3e8f09,'text':JSON[_0xc030a3(0x1e8)](_0x4f3fbc[_0xc030a3(0x216)]),'parentId':_0x2cee6c}),_0x2ab8f1=_0xa9d2d8(_0x127652[_0xc030a3(0x212)][0x0]);return{..._0x2ab8f1,'children':_0x127652[_0xc030a3(0x212)][_0xc030a3(0x1b5)](0x1)[_0xc030a3(0x1fa)](_0xa3c602=>_0xa9d2d8(_0xa3c602,_0x2ab8f1['id']))};}return null;}let _0x392dcf=class{constructor(_0x915f48,_0x400c53,_0x7e7de6,_0x1a8a44){const _0x3e43fe=_0x4886a4;this['_httpService']=_0x915f48,this[_0x3e43fe(0x220)]=_0x400c53,this['_sessionService']=_0x7e7de6,this[_0x3e43fe(0x22a)]=_0x1a8a44;}async[_0x4886a4(0x205)](_0x4d2c64){const _0x410474=_0x4886a4;var _0x3600c1,_0x140a64;const {parentId:_0x33625c,unitId:_0x27a5be,text:_0x4eea5e,threadId:_0x550da8}=_0x4d2c64,_0x395e91=(_0x140a64=(_0x3600c1=_0x4eea5e['customRanges'])==null?void 0x0:_0x3600c1[_0x410474(0x224)](_0x144cf2=>_0x144cf2[_0x410474(0x231)]===_0x507fcc[_0x410474(0x21c)]['COMMENT'])[_0x410474(0x1fa)](_0x31d99a=>_0x31d99a[_0x410474(0x227)]))!=null?_0x140a64:[],_0x59aa06=JSON['stringify'](_0x4eea5e),_0x4ef261=(await this[_0x410474(0x1ca)][_0x410474(0x1ee)](_0x27a5be))[_0x410474(0x1c7)]();if(_0x33625c){const _0x2ac4a2={'memberId':_0x4ef261,'unitId':_0x27a5be,'content':_0x59aa06,'mention':_0x395e91,'threadId':_0x550da8},_0x3071ae=(await this[_0x410474(0x1db)][_0x410474(0x1c3)](_0x410474(0x219)+_0x27a5be+_0x410474(0x1f2),{'body':_0x2ac4a2}))['body'][_0x410474(0x229)];return{..._0x4d2c64,'id':_0x3071ae[_0x410474(0x1f4)],'dT':_0x507fcc[_0x410474(0x1fd)](+_0x3071ae[_0x410474(0x1d4)])['format'](_0x410474(0x210)),'personId':_0x3071ae['userId']};}else{const _0x4bbe58={'memberId':_0x4ef261,'unitId':_0x27a5be,'content':_0x59aa06,'mention':_0x395e91},_0x4c2534=await this[_0x410474(0x1db)][_0x410474(0x1c3)](_0x410474(0x219)+_0x27a5be+_0x410474(0x1e5),{'body':_0x4bbe58});return _0x48ff43(_0x4c2534[_0x410474(0x209)][_0x410474(0x1c1)],_0x4d2c64);}}async[_0x4886a4(0x1f1)](_0x542b6c){const _0xbd5cea=_0x4886a4;var _0x10ae95,_0x260614;const {text:_0x200d23,unitId:_0x110c1f}=_0x542b6c,_0x45ea7a=(_0x260614=(_0x10ae95=_0x200d23[_0xbd5cea(0x1e7)])==null?void 0x0:_0x10ae95[_0xbd5cea(0x224)](_0x2d0958=>_0x2d0958[_0xbd5cea(0x231)]===_0x507fcc['CustomRangeType']['COMMENT'])[_0xbd5cea(0x1fa)](_0x4128dd=>_0x4128dd['rangeId']))!=null?_0x260614:[],_0x4b54e0=JSON['stringify'](_0x200d23),_0x123b03=_0x542b6c[_0xbd5cea(0x1bb)],_0x42e7d6=_0x542b6c['id'],_0x122643={'memberId':(await this[_0xbd5cea(0x1ca)][_0xbd5cea(0x1ee)](_0x110c1f))[_0xbd5cea(0x1c7)](),'unitId':_0x110c1f,'threadId':_0x123b03,'mention':_0x45ea7a,'content':_0x4b54e0,'replyId':_0x42e7d6},_0x5ebdf9=await this[_0xbd5cea(0x1db)][_0xbd5cea(0x1c3)]('/universer-api/comment/unit/'+_0x110c1f+_0xbd5cea(0x1ef),{'body':_0x122643});return!_0x5ebdf9[_0xbd5cea(0x209)][_0xbd5cea(0x201)]||_0x5ebdf9[_0xbd5cea(0x209)][_0xbd5cea(0x201)][_0xbd5cea(0x211)]===0x1;}async[_0x4886a4(0x208)](_0x16cc89){const _0x2beabd=_0x4886a4,{unitId:_0x408f90}=_0x16cc89,_0x2e2537=_0x16cc89[_0x2beabd(0x1bb)],_0x3fe6bb={'memberId':this[_0x2beabd(0x220)]['getCurrentUser']()[_0x2beabd(0x217)],'unitId':_0x408f90,'threadId':_0x2e2537,'solved':_0x16cc89['resolved']?_0xfba5d[_0x2beabd(0x1e0)]:_0xfba5d['OpenOrReOpen']},_0x1e5e7a=await this[_0x2beabd(0x1db)][_0x2beabd(0x1c3)](_0x2beabd(0x219)+_0x408f90+_0x2beabd(0x1fb),{'body':_0x3fe6bb});return!_0x1e5e7a[_0x2beabd(0x209)][_0x2beabd(0x201)]||_0x1e5e7a['body'][_0x2beabd(0x201)][_0x2beabd(0x211)]===0x1;}async['deleteComment'](_0xdcfb0c,_0x1abe5a,_0x10bb3d,_0x3e9a33){const _0x330aca=_0x4886a4,_0x326ca5={'memberId':(await this['_sessionService'][_0x330aca(0x1ee)](_0xdcfb0c))[_0x330aca(0x1c7)](),'threadId':_0x10bb3d,'replyId':_0x3e9a33,'unitId':_0xdcfb0c},_0xbe316e=await this[_0x330aca(0x1db)][_0x330aca(0x1c3)](_0x330aca(0x219)+_0xdcfb0c+'/delete',{'body':_0x326ca5});return!_0xbe316e['body'][_0x330aca(0x201)]||_0xbe316e[_0x330aca(0x209)]['error'][_0x330aca(0x211)]===0x1;}async[_0x4886a4(0x1e3)](_0x5bf8f3,_0x407f1d,_0x458648){const _0x5ca634=_0x4886a4,_0x4d205e={'unitId':_0x5bf8f3,'threadId':_0x458648},_0x1ac567=await this[_0x5ca634(0x1db)][_0x5ca634(0x1c3)](_0x5ca634(0x219)+_0x5bf8f3+'/list',{'body':_0x4d205e}),_0x451bf2=_0x458648[_0x5ca634(0x1fa)](_0xee7467=>_0x490eca(_0x1ac567[_0x5ca634(0x209)][_0x5ca634(0x1d9)][_0xee7467],_0x5bf8f3,_0x407f1d))[_0x5ca634(0x224)](Boolean);return Object['values'](_0x1ac567[_0x5ca634(0x209)]['users'])[_0x5ca634(0x1dd)](_0x3322ce=>{const _0x557c2f=_0x5ca634;this[_0x557c2f(0x220)]['addUser'](_0x3322ce);}),_0x451bf2;}[_0x4886a4(0x20b)](_0x15d2d4){const _0x22ccb0=_0x4886a4;return{'id':_0x15d2d4['id'],'threadId':_0x15d2d4[_0x22ccb0(0x1bb)],'ref':_0x15d2d4[_0x22ccb0(0x1eb)]};}};_0x392dcf=_0x2655cd([_0x4daff7(0x0,_0x507fcc[_0x4886a4(0x1d3)](_0x587fb4[_0x4886a4(0x1d5)])),_0x4daff7(0x1,_0x507fcc['Inject'](_0x507fcc[_0x4886a4(0x1b9)])),_0x4daff7(0x2,_0x507fcc[_0x4886a4(0x1d3)](_0x59505a[_0x4886a4(0x235)])),_0x4daff7(0x3,_0x507fcc['Inject'](_0x507fcc[_0x4886a4(0x213)]))],_0x392dcf);var _0x2ff54a=Object[_0x4886a4(0x225)],_0x50ecdc=Object[_0x4886a4(0x20c)],_0x1769ff=(_0x1cf35c,_0x4a1102,_0x169ef8,_0x5a1cf4)=>{for(var _0x2da33f=_0x5a1cf4>0x1?void 0x0:_0x5a1cf4?_0x50ecdc(_0x4a1102,_0x169ef8):_0x4a1102,_0x2cfe85=_0x1cf35c['length']-0x1,_0x28ca7d;_0x2cfe85>=0x0;_0x2cfe85--)(_0x28ca7d=_0x1cf35c[_0x2cfe85])&&(_0x2da33f=(_0x5a1cf4?_0x28ca7d(_0x4a1102,_0x169ef8,_0x2da33f):_0x28ca7d(_0x2da33f))||_0x2da33f);return _0x5a1cf4&&_0x2da33f&&_0x2ff54a(_0x4a1102,_0x169ef8,_0x2da33f),_0x2da33f;},_0x88e979=(_0x34e344,_0x35b57f)=>(_0x5c462a,_0x2d90ee)=>_0x35b57f(_0x5c462a,_0x2d90ee,_0x34e344);let _0x378c33=class extends _0x507fcc[_0x4886a4(0x1cd)]{constructor(_0xbe7dba,_0xf22831){const _0x2e94aa=_0x4886a4;super(),this[_0x2e94aa(0x1ff)]=_0xbe7dba,this[_0x2e94aa(0x1b8)]=_0xf22831,this['_initDataSource']();}['_initDataSource'](){const _0x2062db=_0x4886a4;this[_0x2062db(0x1ff)][_0x2062db(0x218)]=this[_0x2062db(0x1b8)],this['_threadCommentDataSourceService'][_0x2062db(0x21f)]=!0x1;}};_0x378c33=_0x1769ff([_0x88e979(0x0,_0x116f1f['IThreadCommentDataSourceService']),_0x88e979(0x1,_0x507fcc[_0x4886a4(0x1d3)](_0x392dcf))],_0x378c33);var _0x51b597=Object['defineProperty'],_0x97d188=Object[_0x4886a4(0x20c)],_0x16aff9=(_0x55f1ae,_0x291b2c,_0x5e17dc)=>_0x291b2c in _0x55f1ae?_0x51b597(_0x55f1ae,_0x291b2c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e17dc}):_0x55f1ae[_0x291b2c]=_0x5e17dc,_0x1968de=(_0x40da0e,_0x133f8a,_0xce4fcc,_0x55101a)=>{const _0x4ab540=_0x4886a4;for(var _0xd8e1a0=_0x55101a>0x1?void 0x0:_0x55101a?_0x97d188(_0x133f8a,_0xce4fcc):_0x133f8a,_0x3bc3ed=_0x40da0e[_0x4ab540(0x234)]-0x1,_0x3c469b;_0x3bc3ed>=0x0;_0x3bc3ed--)(_0x3c469b=_0x40da0e[_0x3bc3ed])&&(_0xd8e1a0=(_0x55101a?_0x3c469b(_0x133f8a,_0xce4fcc,_0xd8e1a0):_0x3c469b(_0xd8e1a0))||_0xd8e1a0);return _0x55101a&&_0xd8e1a0&&_0x51b597(_0x133f8a,_0xce4fcc,_0xd8e1a0),_0xd8e1a0;},_0x1fd84e=(_0x3153fb,_0x57134e)=>(_0x5aff15,_0x2e9574)=>_0x57134e(_0x5aff15,_0x2e9574,_0x3153fb),_0x327633=(_0x41c2cb,_0x3322ee,_0x1c1b31)=>_0x16aff9(_0x41c2cb,typeof _0x3322ee!=_0x4886a4(0x1e2)?_0x3322ee+'':_0x3322ee,_0x1c1b31);_0x3af5b4[_0x4886a4(0x203)]=class extends _0x507fcc[_0x4886a4(0x21e)]{constructor(_0x382e6a=_0x206a62,_0x45c143,_0x1afd28){const _0x207ce1=_0x4886a4;super(),this[_0x207ce1(0x230)]=_0x382e6a,this[_0x207ce1(0x22a)]=_0x45c143,this['_configService']=_0x1afd28;const {..._0x5c22cf}=_0x507fcc['merge']({},_0x206a62,this[_0x207ce1(0x230)]);this[_0x207ce1(0x228)][_0x207ce1(0x223)](_0x3d5763,_0x5c22cf);}[_0x4886a4(0x1e9)](){[[_0x392dcf],[_0x378c33],[_0x44847b]]['forEach'](_0x3c8f6c=>{const _0x94a7e7=_0x4459;this[_0x94a7e7(0x22a)]['add'](_0x3c8f6c);});}[_0x4886a4(0x22f)](){const _0x603991=_0x4886a4;this['_injector'][_0x603991(0x20a)](_0x378c33),this[_0x603991(0x22a)][_0x603991(0x20a)](_0x44847b);}},_0x327633(_0x3af5b4[_0x4886a4(0x203)],_0x4886a4(0x20f),_0x1d8488),_0x327633(_0x3af5b4['UniverThreadCommentDataSourcePlugin'],'type',_0x507fcc[_0x4886a4(0x1bf)][_0x4886a4(0x22e)]),_0x3af5b4[_0x4886a4(0x203)]=_0x1968de([_0x507fcc['DependentOn'](_0xdbbb36[_0x4886a4(0x1ea)],_0x59505a[_0x4886a4(0x221)],_0x4d9111[_0x4886a4(0x1d2)]),_0x1fd84e(0x1,_0x507fcc[_0x4886a4(0x1d3)](_0x507fcc[_0x4886a4(0x213)])),_0x1fd84e(0x2,_0x507fcc['IConfigService'])],_0x3af5b4[_0x4886a4(0x203)]),Object[_0x4886a4(0x225)](_0x3af5b4,Symbol[_0x4886a4(0x1ba)],{'value':'Module'});}));function _0x4459(_0x254088,_0x494435){const _0x2b134c=_0x2b13();return _0x4459=function(_0x445979,_0x5082a7){_0x445979=_0x445979-0x1b3;let _0x33aee0=_0x2b134c[_0x445979];return _0x33aee0;},_0x4459(_0x254088,_0x494435);}function _0x2b13(){const _0x3e1cc9=['solved','forEach','unitId','UniverCore','Solved','@univerjs/thread-comment-ui','symbol','listComments','getComment','/add','deleteComment','customRanges','parse','onStarting','UniverThreadCommentUIPlugin','ref','Add','Solve','requireSession','/edit','_initUserSync','updateComment','/reply','1219995QSMteA','replyId','Unknown','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','_commentService','@univerjs-pro/license','481432YOLhPU','map','/solved','bufferTime','dayjs','Reply','_threadCommentDataSourceService','44721BFRTAQ','error','@univerjs-pro/collaboration-client','UniverThreadCommentDataSourcePlugin','add','addComment','Delete','@univerjs/core','resolveComment','body','get','saveCommentToSnapshot','getOwnPropertyDescriptor','UNRECOGNIZED','UniverProThreadCommentDatasource','pluginName','YYYY/MM/DD\x20HH:mm','code','replies','Injector','size','type','content','userID','dataSource','/universer-api/comment/unit/','format','getUser','CustomRangeType','commentUpdate$','Plugin','syncUpdateMutationToColla','_userService','UniverCollaborationClientPlugin','root','setConfig','filter','defineProperty','object','rangeId','_configService','reply','_injector','thread-comment-data-source.config','userId','personId','UNIVER_UNKNOWN','onReady','_config','rangeType','@univerjs/network','UniverNetwork','length','CollaborationSessionService','4295fRQezq','2CNagJf','users','UniverThreadComment','slice','@univerjs/thread-comment','subscribe','_threadCommentDataSource','UserManagerService','toStringTag','threadId','UniverThreadCommentUi','user','UniverProCollaborationClient','UniverInstanceType','amd','comment','Edit','post','OpenOrReOpen','getUnit','64TBwxkC','getMemberID','3464136SNFZsk','addUser','_sessionService','exports','223633gZywvN','Disposable','2007042UgEdRE','_threadCommentModel','670rzqZGJ','rxjs','UniverLicensePlugin','Inject','createTimestamp','HTTPService','UniverProLicense','_init','delete','comments','CommentService','_httpService'];_0x2b13=function(){return _0x3e1cc9;};return _0x2b13();}
|
|
1
|
+
function _0x120b(_0x17cad6,_0x38053f){const _0x69fa84=_0x69fa();return _0x120b=function(_0x120b17,_0x2173f5){_0x120b17=_0x120b17-0x1c8;let _0x267bd9=_0x69fa84[_0x120b17];return _0x267bd9;},_0x120b(_0x17cad6,_0x38053f);}(function(_0x9874fb,_0x2fda36){const _0x561e2b=_0x120b,_0x1077e3=_0x9874fb();while(!![]){try{const _0x4300d9=-parseInt(_0x561e2b(0x233))/0x1*(-parseInt(_0x561e2b(0x1ea))/0x2)+-parseInt(_0x561e2b(0x226))/0x3+-parseInt(_0x561e2b(0x1d4))/0x4+-parseInt(_0x561e2b(0x203))/0x5*(-parseInt(_0x561e2b(0x1f7))/0x6)+-parseInt(_0x561e2b(0x207))/0x7*(-parseInt(_0x561e2b(0x213))/0x8)+parseInt(_0x561e2b(0x20c))/0x9+-parseInt(_0x561e2b(0x24a))/0xa;if(_0x4300d9===_0x2fda36)break;else _0x1077e3['push'](_0x1077e3['shift']());}catch(_0x3f44bd){_0x1077e3['push'](_0x1077e3['shift']());}}}(_0x69fa,0xdd5a0),function(_0x127791,_0x3764fc){const _0xf11bec=_0x120b;typeof exports==_0xf11bec(0x1db)&&typeof module<'u'?_0x3764fc(exports,require(_0xf11bec(0x1e1)),require(_0xf11bec(0x1fb)),require(_0xf11bec(0x204)),require('@univerjs/thread-comment-ui'),require('@univerjs/thread-comment'),require(_0xf11bec(0x240)),require(_0xf11bec(0x242))):typeof define==_0xf11bec(0x225)&&define[_0xf11bec(0x237)]?define([_0xf11bec(0x206),_0xf11bec(0x1e1),_0xf11bec(0x1fb),'@univerjs/core','@univerjs/thread-comment-ui','@univerjs/thread-comment',_0xf11bec(0x240),_0xf11bec(0x242)],_0x3764fc):(_0x127791=typeof globalThis<'u'?globalThis:_0x127791||self,_0x3764fc(_0x127791[_0xf11bec(0x1f6)]={},_0x127791[_0xf11bec(0x1d6)],_0x127791['UniverProLicense'],_0x127791[_0xf11bec(0x220)],_0x127791[_0xf11bec(0x22d)],_0x127791['UniverThreadComment'],_0x127791[_0xf11bec(0x240)],_0x127791[_0xf11bec(0x1d3)]));}(this,function(_0x49a0d4,_0x4b2ae7,_0x27a9e0,_0x3a212d,_0xbd58f2,_0x1e89df,_0x1b6005,_0x2f3a4f){'use strict';const _0x4b6dc2=_0x120b;const _0x3b2a12=_0x4b6dc2(0x20d);var _0x3179e6=(_0x1232af=>(_0x1232af[_0x1232af[_0x4b6dc2(0x210)]=0x0]=_0x4b6dc2(0x210),_0x1232af[_0x1232af[_0x4b6dc2(0x1c9)]=0x1]=_0x4b6dc2(0x1c9),_0x1232af[_0x1232af[_0x4b6dc2(0x1eb)]=-0x1]=_0x4b6dc2(0x1eb),_0x1232af))(_0x3179e6||{}),_0x5a666e=(_0x294f53=>(_0x294f53[_0x294f53[_0x4b6dc2(0x1d5)]=0x0]=_0x4b6dc2(0x1d5),_0x294f53[_0x294f53[_0x4b6dc2(0x227)]=0x1]=_0x4b6dc2(0x227),_0x294f53[_0x294f53['Reply']=0x2]=_0x4b6dc2(0x1ff),_0x294f53[_0x294f53[_0x4b6dc2(0x241)]=0x3]=_0x4b6dc2(0x241),_0x294f53[_0x294f53[_0x4b6dc2(0x24e)]=0x4]=_0x4b6dc2(0x24e),_0x294f53[_0x294f53['Solve']=0x5]=_0x4b6dc2(0x20b),_0x294f53[_0x294f53['UNRECOGNIZED']=-0x1]=_0x4b6dc2(0x1eb),_0x294f53))(_0x5a666e||{});const _0x175d87=_0x39e42b=>_0x3a212d['dayjs'](new Date(+_0x39e42b))['format'](_0x4b6dc2(0x1da)),_0x5310ee=async(_0x163db7,_0x16aa4f)=>{const _0x393967=_0x4b6dc2,_0x2b1f29=_0x163db7[_0x393967(0x22e)](_0x3a212d[_0x393967(0x24d)]),_0x2410f0=_0x163db7[_0x393967(0x22e)](_0x2f3a4f[_0x393967(0x1dc)]);_0x16aa4f[_0x393967(0x246)](_0xb6e7a=>{const _0x3401cb=_0x393967;_0x2b1f29[_0x3401cb(0x1ee)](_0xb6e7a)&&_0x16aa4f[_0x3401cb(0x1f3)](_0xb6e7a);}),_0x16aa4f[_0x393967(0x248)]&&(await _0x2410f0[_0x393967(0x22e)]('/universer-api/user/list',{'params':{'userIDs':[..._0x16aa4f]}}))[_0x393967(0x235)][_0x393967(0x249)]['forEach'](_0x587efe=>{const _0x581ca8=_0x393967;_0x587efe&&_0x2b1f29[_0x581ca8(0x1e6)](_0x587efe);});};var _0x463919=Object[_0x4b6dc2(0x239)],_0xdf3ece=Object[_0x4b6dc2(0x1e9)],_0x439c08=(_0x5336d4,_0x4d5ac3,_0x830c64,_0x2f9f15)=>{const _0x41b6be=_0x4b6dc2;for(var _0x6f4c07=_0x2f9f15>0x1?void 0x0:_0x2f9f15?_0xdf3ece(_0x4d5ac3,_0x830c64):_0x4d5ac3,_0x55d89f=_0x5336d4[_0x41b6be(0x222)]-0x1,_0x98241e;_0x55d89f>=0x0;_0x55d89f--)(_0x98241e=_0x5336d4[_0x55d89f])&&(_0x6f4c07=(_0x2f9f15?_0x98241e(_0x4d5ac3,_0x830c64,_0x6f4c07):_0x98241e(_0x6f4c07))||_0x6f4c07);return _0x2f9f15&&_0x6f4c07&&_0x463919(_0x4d5ac3,_0x830c64,_0x6f4c07),_0x6f4c07;},_0x505c49=(_0x4180f5,_0x2fb0ea)=>(_0x88c043,_0x586651)=>_0x2fb0ea(_0x88c043,_0x586651,_0x4180f5);let _0x24dc24=class extends _0x3a212d[_0x4b6dc2(0x1e7)]{constructor(_0x56fe95,_0xb65a1c,_0x4db834,_0x400696){const _0x3dbbd2=_0x4b6dc2;super(),this[_0x3dbbd2(0x1c8)]=_0x56fe95,this[_0x3dbbd2(0x1cb)]=_0xb65a1c,this[_0x3dbbd2(0x1fd)]=_0x4db834,this[_0x3dbbd2(0x20f)]=_0x400696,this[_0x3dbbd2(0x22f)](),this[_0x3dbbd2(0x1e3)]();}[_0x4b6dc2(0x1e3)](){const _0x2b0b59=_0x4b6dc2;this[_0x2b0b59(0x22c)](this[_0x2b0b59(0x1cb)]['commentUpdate$']['pipe'](_0x1b6005[_0x2b0b59(0x247)](0x10))[_0x2b0b59(0x221)](_0x3e581e=>{const _0x1cd954=_0x2b0b59,_0x5e2efb=new Set();_0x3e581e[_0x1cd954(0x246)](_0x5676d7=>{const _0x5e30a6=_0x1cd954;switch(_0x5676d7[_0x5e30a6(0x217)]){case _0x5e30a6(0x224):{const _0x2c4e4f=_0x5676d7['payload'][_0x5e30a6(0x20e)];_0x5e2efb[_0x5e30a6(0x224)](_0x2c4e4f);break;}}}),_0x5310ee(this['_injector'],_0x5e2efb);}));}[_0x4b6dc2(0x22f)](){const _0x5a0c87=_0x4b6dc2;this[_0x5a0c87(0x22c)](this[_0x5a0c87(0x1c8)][_0x5a0c87(0x1ed)][_0x5a0c87(0x221)](async _0x58b7ed=>{const _0x1c25e=_0x5a0c87;var _0x150a2a,_0x2d7b76,_0x22388e,_0x342e20;const _0x14dbf3=(_0x150a2a=this[_0x1c25e(0x1cb)][_0x1c25e(0x1e0)](_0x58b7ed['unitId'])['find'](_0x5c694e=>_0x5c694e[_0x1c25e(0x214)]===_0x58b7ed['threadId']))==null?void 0x0:_0x150a2a[_0x1c25e(0x1f4)];if(!_0x14dbf3)return;const {unitId:_0x1bded5,subUnitId:_0x377206}=_0x14dbf3;switch(_0x58b7ed[_0x1c25e(0x211)]&&this[_0x1c25e(0x1fd)][_0x1c25e(0x1e6)](_0x58b7ed['user']),_0x58b7ed['type']){case _0x5a666e[_0x1c25e(0x227)]:break;case _0x5a666e[_0x1c25e(0x1ff)]:{this[_0x1c25e(0x1cb)]['addComment'](_0x1bded5,_0x377206,{'unitId':_0x1bded5,'subUnitId':_0x377206,'ref':'','id':_0x58b7ed[_0x1c25e(0x1fa)],'dT':_0x175d87(+_0x58b7ed[_0x1c25e(0x243)]),'threadId':_0x58b7ed[_0x1c25e(0x214)],'personId':(_0x22388e=(_0x2d7b76=_0x58b7ed['user'])==null?void 0x0:_0x2d7b76[_0x1c25e(0x1d0)])!=null?_0x22388e:_0x58b7ed[_0x1c25e(0x236)],'text':JSON[_0x1c25e(0x23b)](_0x58b7ed['content']),'parentId':_0x14dbf3['id']});break;}case _0x5a666e[_0x1c25e(0x24e)]:{const _0x3c2f0a=this[_0x1c25e(0x1cb)][_0x1c25e(0x23a)](_0x1bded5,_0x377206,_0x58b7ed[_0x1c25e(0x1fa)]);_0x3c2f0a&&_0x3c2f0a[_0x1c25e(0x23e)]&&this['_threadCommentModel'][_0x1c25e(0x23f)](_0x1bded5,_0x377206,_0x58b7ed[_0x1c25e(0x1fa)]);break;}case _0x5a666e[_0x1c25e(0x241)]:{this[_0x1c25e(0x1cb)][_0x1c25e(0x21c)](_0x1bded5,_0x377206,{'commentId':_0x58b7ed[_0x1c25e(0x1fa)],'text':JSON[_0x1c25e(0x23b)](_0x58b7ed[_0x1c25e(0x1f1)])});break;}case _0x5a666e[_0x1c25e(0x20b)]:{const _0x6f61ee=(_0x342e20=this[_0x1c25e(0x1cb)][_0x1c25e(0x1e0)](_0x58b7ed[_0x1c25e(0x21d)])[_0x1c25e(0x230)](_0x52edf5=>_0x52edf5[_0x1c25e(0x214)]===_0x58b7ed[_0x1c25e(0x214)]))==null?void 0x0:_0x342e20[_0x1c25e(0x1f4)];_0x6f61ee&&this[_0x1c25e(0x1cb)][_0x1c25e(0x1dd)](_0x1bded5,_0x377206,_0x6f61ee['id'],_0x58b7ed[_0x1c25e(0x229)]===_0x3179e6[_0x1c25e(0x1c9)]);break;}}}));}};_0x24dc24=_0x439c08([_0x505c49(0x0,_0x3a212d['Inject'](_0x4b2ae7[_0x4b6dc2(0x208)])),_0x505c49(0x1,_0x3a212d[_0x4b6dc2(0x1e8)](_0x1e89df['ThreadCommentModel'])),_0x505c49(0x2,_0x3a212d[_0x4b6dc2(0x1e8)](_0x3a212d[_0x4b6dc2(0x24d)])),_0x505c49(0x3,_0x3a212d[_0x4b6dc2(0x1e8)](_0x3a212d[_0x4b6dc2(0x228)]))],_0x24dc24);const _0x444c84=_0x4b6dc2(0x245),_0x4bddc2={};var _0x35dae1=Object[_0x4b6dc2(0x239)],_0x47627a=Object['getOwnPropertyDescriptor'],_0x566803=(_0x31fc45,_0x3493ba,_0x2ae390,_0x5e4575)=>{const _0x24ee90=_0x4b6dc2;for(var _0xe00e97=_0x5e4575>0x1?void 0x0:_0x5e4575?_0x47627a(_0x3493ba,_0x2ae390):_0x3493ba,_0x54fc77=_0x31fc45[_0x24ee90(0x222)]-0x1,_0x457753;_0x54fc77>=0x0;_0x54fc77--)(_0x457753=_0x31fc45[_0x54fc77])&&(_0xe00e97=(_0x5e4575?_0x457753(_0x3493ba,_0x2ae390,_0xe00e97):_0x457753(_0xe00e97))||_0xe00e97);return _0x5e4575&&_0xe00e97&&_0x35dae1(_0x3493ba,_0x2ae390,_0xe00e97),_0xe00e97;},_0xf7a449=(_0x29a6c4,_0x3fc015)=>(_0x5117e5,_0x4233b2)=>_0x3fc015(_0x5117e5,_0x4233b2,_0x29a6c4);function _0x2451ab(_0x427dd0,_0x4b3654){const _0x87ddae=_0x4b6dc2,_0x5e9f70=_0x427dd0[_0x87ddae(0x1f2)][0x0];return{..._0x4b3654,'id':_0x5e9f70[_0x87ddae(0x1fa)],'resolved':_0x427dd0[_0x87ddae(0x229)]===0x1,'dT':_0x175d87(_0x5e9f70[_0x87ddae(0x243)]),'personId':_0x5e9f70[_0x87ddae(0x236)],'threadId':_0x5e9f70[_0x87ddae(0x214)]};}function _0x277862(_0x5455e8,_0x576e4d,_0x21f0dd){const _0x544df0=_0x4b6dc2;var _0x58fb5a,_0x3219f0;if(((_0x3219f0=(_0x58fb5a=_0x5455e8==null?void 0x0:_0x5455e8[_0x544df0(0x1f2)])==null?void 0x0:_0x58fb5a[_0x544df0(0x222)])!=null?_0x3219f0:0x0)>0x0){const _0x4a9c50=(_0x328a1d,_0x69b0b8)=>({'id':_0x328a1d['replyId'],'threadId':_0x328a1d['threadId'],'dT':_0x175d87(_0x328a1d[_0x544df0(0x243)]),'personId':_0x328a1d[_0x544df0(0x236)],'resolved':_0x5455e8[_0x544df0(0x229)]===_0x3179e6['Solved'],'unitId':_0x576e4d,'subUnitId':_0x21f0dd,'text':JSON['parse'](_0x328a1d[_0x544df0(0x1f1)]),'parentId':_0x69b0b8}),_0x4e6b71=_0x4a9c50(_0x5455e8[_0x544df0(0x1f2)][0x0]);return{..._0x4e6b71,'children':_0x5455e8[_0x544df0(0x1f2)]['slice'](0x1)['map'](_0x4580ec=>_0x4a9c50(_0x4580ec,_0x4e6b71['id']))};}return null;}let _0xa5c8d5=class{constructor(_0x1854e6,_0x30849e,_0x137850,_0x2beb13){const _0x18621b=_0x4b6dc2;this[_0x18621b(0x1f0)]=_0x1854e6,this['_userService']=_0x30849e,this[_0x18621b(0x1fe)]=_0x137850,this[_0x18621b(0x20f)]=_0x2beb13;}async[_0x4b6dc2(0x1ec)](_0xeedcca){const _0x459eb6=_0x4b6dc2;var _0x51ce3d,_0x48304e;const {parentId:_0x12e46f,unitId:_0x3cc05f,text:_0x4c6281,threadId:_0x3a7ac3}=_0xeedcca,_0x1568a8=(_0x48304e=(_0x51ce3d=_0x4c6281['customRanges'])==null?void 0x0:_0x51ce3d['filter'](_0x2da844=>_0x2da844[_0x459eb6(0x209)]===_0x3a212d[_0x459eb6(0x1f5)][_0x459eb6(0x223)])[_0x459eb6(0x1f8)](_0x3650d7=>_0x3650d7[_0x459eb6(0x1ef)]))!=null?_0x48304e:[],_0x1c2b5a=JSON[_0x459eb6(0x20a)](_0x4c6281),_0x517aae=(await this['_sessionService'][_0x459eb6(0x202)](_0x3cc05f))['getMemberID']();if(_0x12e46f){const _0x42a83b={'memberId':_0x517aae,'unitId':_0x3cc05f,'content':_0x1c2b5a,'mention':_0x1568a8,'threadId':_0x3a7ac3},_0x2ccc3b=(await this['_httpService'][_0x459eb6(0x23c)](_0x459eb6(0x23d)+_0x3cc05f+'/reply',{'body':_0x42a83b}))[_0x459eb6(0x235)][_0x459eb6(0x1d8)];return{..._0xeedcca,'id':_0x2ccc3b[_0x459eb6(0x1fa)],'dT':_0x3a212d['dayjs'](+_0x2ccc3b[_0x459eb6(0x243)])['format'](_0x459eb6(0x1da)),'personId':_0x2ccc3b[_0x459eb6(0x236)]};}else{const _0xeb3444={'memberId':_0x517aae,'unitId':_0x3cc05f,'content':_0x1c2b5a,'mention':_0x1568a8},_0x55698e=await this[_0x459eb6(0x1f0)][_0x459eb6(0x23c)](_0x459eb6(0x23d)+_0x3cc05f+_0x459eb6(0x1d2),{'body':_0xeb3444});return _0x2451ab(_0x55698e[_0x459eb6(0x235)][_0x459eb6(0x1ca)],_0xeedcca);}}async[_0x4b6dc2(0x21c)](_0x3aed67){const _0x1db610=_0x4b6dc2;var _0x345a5f,_0x57b7b9;const {text:_0x41a427,unitId:_0x1ad152}=_0x3aed67,_0x3b4178=(_0x57b7b9=(_0x345a5f=_0x41a427[_0x1db610(0x1e2)])==null?void 0x0:_0x345a5f[_0x1db610(0x1e4)](_0x413280=>_0x413280[_0x1db610(0x209)]===_0x3a212d[_0x1db610(0x1f5)][_0x1db610(0x223)])[_0x1db610(0x1f8)](_0x317132=>_0x317132[_0x1db610(0x1ef)]))!=null?_0x57b7b9:[],_0x18e6ae=JSON[_0x1db610(0x20a)](_0x41a427),_0x35bb13=_0x3aed67[_0x1db610(0x214)],_0x1d1fbb=_0x3aed67['id'],_0x1d7816={'memberId':(await this[_0x1db610(0x1fe)][_0x1db610(0x202)](_0x1ad152))['getMemberID'](),'unitId':_0x1ad152,'threadId':_0x35bb13,'mention':_0x3b4178,'content':_0x18e6ae,'replyId':_0x1d1fbb},_0x13fe48=await this[_0x1db610(0x1f0)][_0x1db610(0x23c)](_0x1db610(0x23d)+_0x1ad152+_0x1db610(0x1d1),{'body':_0x1d7816});return!_0x13fe48[_0x1db610(0x235)][_0x1db610(0x1f9)]||_0x13fe48['body'][_0x1db610(0x1f9)]['code']===0x1;}async[_0x4b6dc2(0x1dd)](_0x2f62d7){const _0x1a616c=_0x4b6dc2,{unitId:_0xd1abce}=_0x2f62d7,_0x30ccaf=_0x2f62d7[_0x1a616c(0x214)],_0x5a7a30={'memberId':this['_userService'][_0x1a616c(0x1de)]()[_0x1a616c(0x1d0)],'unitId':_0xd1abce,'threadId':_0x30ccaf,'solved':_0x2f62d7[_0x1a616c(0x231)]?_0x3179e6[_0x1a616c(0x1c9)]:_0x3179e6[_0x1a616c(0x210)]},_0x2de6fa=await this[_0x1a616c(0x1f0)][_0x1a616c(0x23c)](_0x1a616c(0x23d)+_0xd1abce+_0x1a616c(0x21f),{'body':_0x5a7a30});return!_0x2de6fa[_0x1a616c(0x235)]['error']||_0x2de6fa['body'][_0x1a616c(0x1f9)][_0x1a616c(0x1ce)]===0x1;}async[_0x4b6dc2(0x23f)](_0x4b48f4,_0x466e0b,_0x23551b,_0x57a05f){const _0x152227=_0x4b6dc2,_0x5c683e={'memberId':(await this[_0x152227(0x1fe)][_0x152227(0x202)](_0x4b48f4))[_0x152227(0x232)](),'threadId':_0x23551b,'replyId':_0x57a05f,'unitId':_0x4b48f4},_0x15736e=await this[_0x152227(0x1f0)][_0x152227(0x23c)](_0x152227(0x23d)+_0x4b48f4+_0x152227(0x212),{'body':_0x5c683e});return!_0x15736e[_0x152227(0x235)][_0x152227(0x1f9)]||_0x15736e['body'][_0x152227(0x1f9)]['code']===0x1;}async['listComments'](_0x5b6de5,_0xd36424,_0x153958){const _0x5ab173=_0x4b6dc2,_0x45297c={'unitId':_0x5b6de5,'threadId':_0x153958},_0x32a35c=await this[_0x5ab173(0x1f0)][_0x5ab173(0x23c)]('/universer-api/comment/unit/'+_0x5b6de5+_0x5ab173(0x215),{'body':_0x45297c}),_0x154936=_0x153958[_0x5ab173(0x1f8)](_0x27bbb5=>_0x277862(_0x32a35c[_0x5ab173(0x235)][_0x5ab173(0x24c)][_0x27bbb5],_0x5b6de5,_0xd36424))[_0x5ab173(0x1e4)](Boolean);return Object[_0x5ab173(0x21a)](_0x32a35c['body'][_0x5ab173(0x249)])['forEach'](_0x168710=>{const _0x28fe3b=_0x5ab173;this['_userService'][_0x28fe3b(0x1e6)](_0x168710);}),_0x154936;}[_0x4b6dc2(0x21e)](_0x3e4c63){const _0x1a3df2=_0x4b6dc2;return{'id':_0x3e4c63['id'],'threadId':_0x3e4c63[_0x1a3df2(0x214)],'ref':_0x3e4c63['ref']};}};_0xa5c8d5=_0x566803([_0xf7a449(0x0,_0x3a212d[_0x4b6dc2(0x1e8)](_0x2f3a4f[_0x4b6dc2(0x1dc)])),_0xf7a449(0x1,_0x3a212d[_0x4b6dc2(0x1e8)](_0x3a212d[_0x4b6dc2(0x24d)])),_0xf7a449(0x2,_0x3a212d[_0x4b6dc2(0x1e8)](_0x4b2ae7[_0x4b6dc2(0x238)])),_0xf7a449(0x3,_0x3a212d[_0x4b6dc2(0x1e8)](_0x3a212d[_0x4b6dc2(0x228)]))],_0xa5c8d5);var _0x39dd26=Object[_0x4b6dc2(0x239)],_0x12e5de=Object[_0x4b6dc2(0x1e9)],_0x4aa846=(_0x15e091,_0x3214be,_0x4506b0,_0x4b258e)=>{const _0xc2fd3c=_0x4b6dc2;for(var _0x38f66f=_0x4b258e>0x1?void 0x0:_0x4b258e?_0x12e5de(_0x3214be,_0x4506b0):_0x3214be,_0x5746c2=_0x15e091[_0xc2fd3c(0x222)]-0x1,_0x435a93;_0x5746c2>=0x0;_0x5746c2--)(_0x435a93=_0x15e091[_0x5746c2])&&(_0x38f66f=(_0x4b258e?_0x435a93(_0x3214be,_0x4506b0,_0x38f66f):_0x435a93(_0x38f66f))||_0x38f66f);return _0x4b258e&&_0x38f66f&&_0x39dd26(_0x3214be,_0x4506b0,_0x38f66f),_0x38f66f;},_0x1b0f71=(_0x4b8a6b,_0x5d7bbd)=>(_0x1ad5c8,_0x2277fb)=>_0x5d7bbd(_0x1ad5c8,_0x2277fb,_0x4b8a6b);let _0x2dbcfd=class extends _0x3a212d[_0x4b6dc2(0x1e7)]{constructor(_0x1f8d8e,_0x30d187){const _0x43e511=_0x4b6dc2;super(),this[_0x43e511(0x1cd)]=_0x1f8d8e,this['_threadCommentDataSource']=_0x30d187,this['_initDataSource']();}[_0x4b6dc2(0x21b)](){const _0x9bd3c8=_0x4b6dc2;this[_0x9bd3c8(0x1cd)]['dataSource']=this[_0x9bd3c8(0x1d9)],this[_0x9bd3c8(0x1cd)][_0x9bd3c8(0x22a)]=!0x1;}};_0x2dbcfd=_0x4aa846([_0x1b0f71(0x0,_0x1e89df[_0x4b6dc2(0x1d7)]),_0x1b0f71(0x1,_0x3a212d[_0x4b6dc2(0x1e8)](_0xa5c8d5))],_0x2dbcfd);var _0xfa0b83=Object['defineProperty'],_0xcffbc4=Object['getOwnPropertyDescriptor'],_0xa3922a=(_0x5681ca,_0x595f8f,_0x48cf73)=>_0x595f8f in _0x5681ca?_0xfa0b83(_0x5681ca,_0x595f8f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48cf73}):_0x5681ca[_0x595f8f]=_0x48cf73,_0x48fe1a=(_0x7a4dbf,_0x233270,_0x5a426d,_0x2ff901)=>{const _0x449181=_0x4b6dc2;for(var _0x31cc0c=_0x2ff901>0x1?void 0x0:_0x2ff901?_0xcffbc4(_0x233270,_0x5a426d):_0x233270,_0x1f1d32=_0x7a4dbf[_0x449181(0x222)]-0x1,_0x1b5a71;_0x1f1d32>=0x0;_0x1f1d32--)(_0x1b5a71=_0x7a4dbf[_0x1f1d32])&&(_0x31cc0c=(_0x2ff901?_0x1b5a71(_0x233270,_0x5a426d,_0x31cc0c):_0x1b5a71(_0x31cc0c))||_0x31cc0c);return _0x2ff901&&_0x31cc0c&&_0xfa0b83(_0x233270,_0x5a426d,_0x31cc0c),_0x31cc0c;},_0x24eb0d=(_0x5c81a0,_0x2ae940)=>(_0x4e2393,_0x159112)=>_0x2ae940(_0x4e2393,_0x159112,_0x5c81a0),_0x28e21c=(_0xa6e6d1,_0x3e62be,_0x5caaf5)=>_0xa3922a(_0xa6e6d1,typeof _0x3e62be!='symbol'?_0x3e62be+'':_0x3e62be,_0x5caaf5);_0x49a0d4[_0x4b6dc2(0x1e5)]=class extends _0x3a212d[_0x4b6dc2(0x1cc)]{constructor(_0x2949ba=_0x4bddc2,_0x1628e2,_0x41bd62){const _0x320d2c=_0x4b6dc2;super(),this[_0x320d2c(0x24b)]=_0x2949ba,this[_0x320d2c(0x20f)]=_0x1628e2,this[_0x320d2c(0x234)]=_0x41bd62;const {..._0x1bf912}=_0x3a212d[_0x320d2c(0x22b)]({},_0x4bddc2,this[_0x320d2c(0x24b)]);this[_0x320d2c(0x234)][_0x320d2c(0x218)](_0x444c84,_0x1bf912);}[_0x4b6dc2(0x201)](){const _0x3e867e=_0x4b6dc2;[[_0xa5c8d5],[_0x2dbcfd],[_0x24dc24]][_0x3e867e(0x246)](_0x44e47f=>{this['_injector']['add'](_0x44e47f);});}[_0x4b6dc2(0x244)](){const _0x3bd27b=_0x4b6dc2;this[_0x3bd27b(0x20f)][_0x3bd27b(0x22e)](_0x2dbcfd),this[_0x3bd27b(0x20f)]['get'](_0x24dc24);}},_0x28e21c(_0x49a0d4[_0x4b6dc2(0x1e5)],'pluginName',_0x3b2a12),_0x28e21c(_0x49a0d4[_0x4b6dc2(0x1e5)],_0x4b6dc2(0x217),_0x3a212d[_0x4b6dc2(0x1fc)][_0x4b6dc2(0x216)]),_0x49a0d4[_0x4b6dc2(0x1e5)]=_0x48fe1a([_0x3a212d[_0x4b6dc2(0x205)](_0xbd58f2[_0x4b6dc2(0x219)],_0x4b2ae7[_0x4b6dc2(0x1cf)],_0x27a9e0['UniverLicensePlugin']),_0x24eb0d(0x1,_0x3a212d[_0x4b6dc2(0x1e8)](_0x3a212d[_0x4b6dc2(0x228)])),_0x24eb0d(0x2,_0x3a212d[_0x4b6dc2(0x200)])],_0x49a0d4['UniverThreadCommentDataSourcePlugin']),Object[_0x4b6dc2(0x239)](_0x49a0d4,Symbol[_0x4b6dc2(0x1df)],{'value':'Module'});}));function _0x69fa(){const _0x16defd=['userId','amd','CollaborationSessionService','defineProperty','getComment','parse','post','/universer-api/comment/unit/','parentId','deleteComment','rxjs','Edit','@univerjs/network','createTimestamp','onReady','thread-comment-data-source.config','forEach','bufferTime','size','users','5094020VmiwXt','_config','comments','UserManagerService','Delete','_commentService','Solved','comment','_threadCommentModel','Plugin','_threadCommentDataSourceService','code','UniverCollaborationClientPlugin','userID','/edit','/add','UniverNetwork','6327584pRiaVW','Unknown','UniverProCollaborationClient','IThreadCommentDataSourceService','reply','_threadCommentDataSource','YYYY/MM/DD\x20HH:mm','object','HTTPService','resolveComment','getCurrentUser','toStringTag','getUnit','@univerjs-pro/collaboration-client','customRanges','_initUserSync','filter','UniverThreadCommentDataSourcePlugin','addUser','Disposable','Inject','getOwnPropertyDescriptor','8sUpEVk','UNRECOGNIZED','addComment','commentUpdate$','getUser','rangeId','_httpService','content','replies','delete','root','CustomRangeType','UniverProThreadCommentDatasource','1414092gnRBXN','map','error','replyId','@univerjs-pro/license','UniverInstanceType','_userService','_sessionService','Reply','IConfigService','onStarting','requireSession','35Fohfwu','@univerjs/core','DependentOn','exports','5395551bfZhEg','CommentService','rangeType','stringify','Solve','6232833ODuzSr','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','personId','_injector','OpenOrReOpen','user','/delete','8spStif','threadId','/list','UNIVER_UNKNOWN','type','setConfig','UniverThreadCommentUIPlugin','values','_initDataSource','updateComment','unitId','saveCommentToSnapshot','/solved','UniverCore','subscribe','length','COMMENT','add','function','3824802khYIBa','Add','Injector','solved','syncUpdateMutationToColla','merge','disposeWithMe','UniverThreadCommentUi','get','_init','find','resolved','getMemberID','289946Adnthw','_configService','body'];_0x69fa=function(){return _0x16defd;};return _0x69fa();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/thread-comment-datasource",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3-experimental.20250106-e3b7a39",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,33 +45,20 @@
|
|
|
45
45
|
"rxjs": ">=7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@univerjs-pro/collaboration-client": "0.5.
|
|
49
|
-
"@univerjs-pro/license": "0.5.
|
|
50
|
-
"@univerjs/core": "0.5.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/thread-comment": "0.5.
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
48
|
+
"@univerjs-pro/collaboration-client": "0.5.3-experimental.20250106-e3b7a39",
|
|
49
|
+
"@univerjs-pro/license": "0.5.3-experimental.20250106-e3b7a39",
|
|
50
|
+
"@univerjs/core": "0.5.3-experimental.20250106-e3b7a39",
|
|
51
|
+
"@univerjs/protocol": "0.1.40-alpha.10",
|
|
52
|
+
"@univerjs/thread-comment-ui": "0.5.3-experimental.20250106-e3b7a39",
|
|
53
|
+
"@univerjs/network": "0.5.3-experimental.20250106-e3b7a39",
|
|
54
|
+
"@univerjs/thread-comment": "0.5.3-experimental.20250106-e3b7a39"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"rxjs": "^7.8.1",
|
|
58
58
|
"typescript": "^5.7.2",
|
|
59
|
-
"vite": "^6.0.
|
|
59
|
+
"vite": "^6.0.6",
|
|
60
60
|
"vitest": "^2.1.8",
|
|
61
|
-
"@univerjs-infra/shared": "0.5.
|
|
62
|
-
},
|
|
63
|
-
"space": {
|
|
64
|
-
".": {
|
|
65
|
-
"import": "./lib/es/index.js",
|
|
66
|
-
"require": "./lib/cjs/index.js",
|
|
67
|
-
"types": "./lib/types/index.d.ts"
|
|
68
|
-
},
|
|
69
|
-
"./*": {
|
|
70
|
-
"import": "./lib/es/*",
|
|
71
|
-
"require": "./lib/cjs/*",
|
|
72
|
-
"types": "./lib/types/index.d.ts"
|
|
73
|
-
},
|
|
74
|
-
"./lib/*": "./lib/*"
|
|
61
|
+
"@univerjs-infra/shared": "0.5.3"
|
|
75
62
|
},
|
|
76
63
|
"scripts": {
|
|
77
64
|
"test": "vitest run",
|