@univerjs-pro/thread-comment-datasource 0.5.3 → 0.5.4
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 +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2556b8=_0xe5de;(function(_0x582d3c,_0x5158b5){const _0x4d432d=_0xe5de,_0x44690e=_0x582d3c();while(!![]){try{const _0x4f692a=parseInt(_0x4d432d(0x1a6))/0x1*(parseInt(_0x4d432d(0x1d4))/0x2)+parseInt(_0x4d432d(0x1ce))/0x3+-parseInt(_0x4d432d(0x1c3))/0x4+parseInt(_0x4d432d(0x1f9))/0x5*(-parseInt(_0x4d432d(0x1cd))/0x6)+-parseInt(_0x4d432d(0x209))/0x7+-parseInt(_0x4d432d(0x1b2))/0x8*(-parseInt(_0x4d432d(0x1fb))/0x9)+-parseInt(_0x4d432d(0x1ee))/0xa;if(_0x4f692a===_0x5158b5)break;else _0x44690e['push'](_0x44690e['shift']());}catch(_0x4eb6df){_0x44690e['push'](_0x44690e['shift']());}}}(_0x81c2,0xd5190));function _0x81c2(){const _0xa93a=['Edit','createTimestamp','getMemberID','_sessionService','_initUserSync','threadId','Add','UniverCollaborationClientPlugin','parentId','UserManagerService','type','map','format','_configService','Delete','_commentService','forEach','listComments','IThreadCommentDataSourceService','pluginName','dayjs','@univerjs/core','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','rangeId','_injector','Reply','userID','18199tzzcVo','_init','requireSession','Solved','delete','thread-comment-data-source.config','body','Solve','Plugin','comment','code','UniverThreadCommentUIPlugin','8ikdlxw','resolveComment','resolved','solved','@univerjs/network','Inject','stringify','_initDataSource','error','@univerjs/thread-comment-ui','disposeWithMe','getCurrentUser','user','payload','OpenOrReOpen','/universer-api/user/list','/solved','4660944xUGbNJ','customRanges','merge','replies','HTTPService','syncUpdateMutationToColla','@univerjs-pro/license','getUser','addUser','rxjs','90eFzpyX','4856820oZtWhY','UNRECOGNIZED','_threadCommentDataSourceService','defineProperty','CollaborationSessionService','reply','118qlEOBj','replyId','length','UniverThreadCommentDataSourcePlugin','UNIVER_UNKNOWN','onReady','add','YYYY/MM/DD\x20HH:mm','get','updateComment','userId','getUnit','getOwnPropertyDescriptor','CustomRangeType','Module','CommentService','addComment','/universer-api/comment/unit/','content','dataSource','commentUpdate$','/list','_threadCommentDataSource','_config','users','UniverInstanceType','9273200pGwQAB','Disposable','subscribe','root','getComment','unitId','Injector','slice','/reply','IConfigService','pipe','383155JXtHml','_userService','14481297BUroHG','values','ref','COMMENT','_httpService','Unknown','post','_threadCommentModel','ThreadCommentModel','filter','deleteComment','parse','rangeType','DependentOn','1307915LdtqkU'];_0x81c2=function(){return _0xa93a;};return _0x81c2();}Object[_0x2556b8(0x1d1)](exports,Symbol['toStringTag'],{'value':_0x2556b8(0x1e2)});const C=require('@univerjs-pro/collaboration-client'),T=require(_0x2556b8(0x1c9)),c=require(_0x2556b8(0x21f)),w=require(_0x2556b8(0x1bb)),P=require('@univerjs/thread-comment'),U=require(_0x2556b8(0x1cc)),M=require(_0x2556b8(0x1b6)),R=_0x2556b8(0x220);var I=(_0x234743=>(_0x234743[_0x234743[_0x2556b8(0x1c0)]=0x0]=_0x2556b8(0x1c0),_0x234743[_0x234743[_0x2556b8(0x1a9)]=0x1]='Solved',_0x234743[_0x234743['UNRECOGNIZED']=-0x1]=_0x2556b8(0x1cf),_0x234743))(I||{}),v=(_0x4833eb=>(_0x4833eb[_0x4833eb[_0x2556b8(0x200)]=0x0]=_0x2556b8(0x200),_0x4833eb[_0x4833eb[_0x2556b8(0x210)]=0x1]=_0x2556b8(0x210),_0x4833eb[_0x4833eb['Reply']=0x2]=_0x2556b8(0x1a4),_0x4833eb[_0x4833eb['Edit']=0x3]='Edit',_0x4833eb[_0x4833eb['Delete']=0x4]='Delete',_0x4833eb[_0x4833eb['Solve']=0x5]=_0x2556b8(0x1ad),_0x4833eb[_0x4833eb['UNRECOGNIZED']=-0x1]=_0x2556b8(0x1cf),_0x4833eb))(v||{});const g=_0x336bf6=>c[_0x2556b8(0x21e)](new Date(+_0x336bf6))[_0x2556b8(0x216)](_0x2556b8(0x1db)),$=async(_0x3a968f,_0x50ddb2)=>{const _0x4ea972=_0x2556b8,_0x277531=_0x3a968f[_0x4ea972(0x1dc)](c['UserManagerService']),_0x1d7aab=_0x3a968f[_0x4ea972(0x1dc)](M[_0x4ea972(0x1c7)]);_0x50ddb2['forEach'](_0x14b581=>{const _0x28cc94=_0x4ea972;_0x277531[_0x28cc94(0x1ca)](_0x14b581)&&_0x50ddb2[_0x28cc94(0x1aa)](_0x14b581);}),_0x50ddb2['size']&&(await _0x1d7aab[_0x4ea972(0x1dc)](_0x4ea972(0x1c1),{'params':{'userIDs':[..._0x50ddb2]}}))['body'][_0x4ea972(0x1ec)][_0x4ea972(0x21a)](_0x2d7a1f=>{const _0x2f9e17=_0x4ea972;_0x2d7a1f&&_0x277531[_0x2f9e17(0x1cb)](_0x2d7a1f);});};var E=Object[_0x2556b8(0x1d1)],q=Object[_0x2556b8(0x1e0)],A=(_0x4afbf7,_0x876b1c,_0x287702,_0x2052bd)=>{const _0x9a318a=_0x2556b8;for(var _0x1b1bb8=_0x2052bd>0x1?void 0x0:_0x2052bd?q(_0x876b1c,_0x287702):_0x876b1c,_0x36007f=_0x4afbf7[_0x9a318a(0x1d6)]-0x1,_0xcd6515;_0x36007f>=0x0;_0x36007f--)(_0xcd6515=_0x4afbf7[_0x36007f])&&(_0x1b1bb8=(_0x2052bd?_0xcd6515(_0x876b1c,_0x287702,_0x1b1bb8):_0xcd6515(_0x1b1bb8))||_0x1b1bb8);return _0x2052bd&&_0x1b1bb8&&E(_0x876b1c,_0x287702,_0x1b1bb8),_0x1b1bb8;},_=(_0x110b48,_0x54aff9)=>(_0x230e3f,_0x2dea47)=>_0x54aff9(_0x230e3f,_0x2dea47,_0x110b48);function _0xe5de(_0x4f5757,_0x2ec4bb){const _0x81c264=_0x81c2();return _0xe5de=function(_0xe5de88,_0x2eaf10){_0xe5de88=_0xe5de88-0x1a4;let _0x2c2709=_0x81c264[_0xe5de88];return _0x2c2709;},_0xe5de(_0x4f5757,_0x2ec4bb);}let S=class extends c[_0x2556b8(0x1ef)]{constructor(_0x36865d,_0x178ddd,_0xfc10aa,_0x5536c5){const _0x301f4c=_0x2556b8;super(),this['_commentService']=_0x36865d,this[_0x301f4c(0x202)]=_0x178ddd,this[_0x301f4c(0x1fa)]=_0xfc10aa,this[_0x301f4c(0x222)]=_0x5536c5,this[_0x301f4c(0x1a7)](),this['_initUserSync']();}[_0x2556b8(0x20e)](){const _0x2a5ce0=_0x2556b8;this[_0x2a5ce0(0x1bc)](this['_threadCommentModel'][_0x2a5ce0(0x1e8)][_0x2a5ce0(0x1f8)](U['bufferTime'](0x10))[_0x2a5ce0(0x1f0)](_0x2ec81a=>{const _0x596c13=_0x2a5ce0,_0x5dbb24=new Set();_0x2ec81a['forEach'](_0x47f220=>{const _0x6eac47=_0xe5de;switch(_0x47f220[_0x6eac47(0x214)]){case _0x6eac47(0x1da):{const _0x43dc06=_0x47f220[_0x6eac47(0x1bf)]['personId'];_0x5dbb24['add'](_0x43dc06);break;}}}),$(this[_0x596c13(0x222)],_0x5dbb24);}));}[_0x2556b8(0x1a7)](){const _0x5ddc1c=_0x2556b8;this[_0x5ddc1c(0x1bc)](this[_0x5ddc1c(0x219)][_0x5ddc1c(0x1e8)][_0x5ddc1c(0x1f0)](async _0x31cb0e=>{const _0x32d777=_0x5ddc1c;var _0x15c075,_0x58fef0,_0x53d742,_0x5e51a5;const _0xbb5aea=(_0x15c075=this[_0x32d777(0x202)][_0x32d777(0x1df)](_0x31cb0e[_0x32d777(0x1f3)])['find'](_0x385762=>_0x385762[_0x32d777(0x20f)]===_0x31cb0e[_0x32d777(0x20f)]))==null?void 0x0:_0x15c075[_0x32d777(0x1f1)];if(!_0xbb5aea)return;const {unitId:_0x53129f,subUnitId:_0x2ff014}=_0xbb5aea;switch(_0x31cb0e[_0x32d777(0x1be)]&&this[_0x32d777(0x1fa)]['addUser'](_0x31cb0e[_0x32d777(0x1be)]),_0x31cb0e[_0x32d777(0x214)]){case v['Add']:break;case v[_0x32d777(0x1a4)]:{this[_0x32d777(0x202)][_0x32d777(0x1e4)](_0x53129f,_0x2ff014,{'unitId':_0x53129f,'subUnitId':_0x2ff014,'ref':'','id':_0x31cb0e[_0x32d777(0x1d5)],'dT':g(+_0x31cb0e[_0x32d777(0x20b)]),'threadId':_0x31cb0e[_0x32d777(0x20f)],'personId':(_0x53d742=(_0x58fef0=_0x31cb0e[_0x32d777(0x1be)])==null?void 0x0:_0x58fef0[_0x32d777(0x1a5)])!=null?_0x53d742:_0x31cb0e[_0x32d777(0x1de)],'text':JSON['parse'](_0x31cb0e[_0x32d777(0x1e6)]),'parentId':_0xbb5aea['id']});break;}case v[_0x32d777(0x218)]:{const _0x3c93f1=this[_0x32d777(0x202)][_0x32d777(0x1f2)](_0x53129f,_0x2ff014,_0x31cb0e[_0x32d777(0x1d5)]);_0x3c93f1&&_0x3c93f1[_0x32d777(0x212)]&&this['_threadCommentModel'][_0x32d777(0x205)](_0x53129f,_0x2ff014,_0x31cb0e['replyId']);break;}case v[_0x32d777(0x20a)]:{this['_threadCommentModel'][_0x32d777(0x1dd)](_0x53129f,_0x2ff014,{'commentId':_0x31cb0e[_0x32d777(0x1d5)],'text':JSON[_0x32d777(0x206)](_0x31cb0e[_0x32d777(0x1e6)])});break;}case v[_0x32d777(0x1ad)]:{const _0x4bfc6a=(_0x5e51a5=this[_0x32d777(0x202)][_0x32d777(0x1df)](_0x31cb0e[_0x32d777(0x1f3)])['find'](_0x2f40a7=>_0x2f40a7['threadId']===_0x31cb0e['threadId']))==null?void 0x0:_0x5e51a5[_0x32d777(0x1f1)];_0x4bfc6a&&this[_0x32d777(0x202)][_0x32d777(0x1b3)](_0x53129f,_0x2ff014,_0x4bfc6a['id'],_0x31cb0e[_0x32d777(0x1b5)]===I[_0x32d777(0x1a9)]);break;}}}));}};S=A([_(0x0,c[_0x2556b8(0x1b7)](C[_0x2556b8(0x1e3)])),_(0x1,c['Inject'](P[_0x2556b8(0x203)])),_(0x2,c[_0x2556b8(0x1b7)](c[_0x2556b8(0x213)])),_(0x3,c[_0x2556b8(0x1b7)](c[_0x2556b8(0x1f4)]))],S);const x=_0x2556b8(0x1ab),D={};var Y=Object['defineProperty'],G=Object['getOwnPropertyDescriptor'],H=(_0x122e5a,_0x1604b4,_0x131cd2,_0x357a80)=>{const _0x57efe6=_0x2556b8;for(var _0x3464e0=_0x357a80>0x1?void 0x0:_0x357a80?G(_0x1604b4,_0x131cd2):_0x1604b4,_0x21b1d2=_0x122e5a[_0x57efe6(0x1d6)]-0x1,_0x4da8ba;_0x21b1d2>=0x0;_0x21b1d2--)(_0x4da8ba=_0x122e5a[_0x21b1d2])&&(_0x3464e0=(_0x357a80?_0x4da8ba(_0x1604b4,_0x131cd2,_0x3464e0):_0x4da8ba(_0x3464e0))||_0x3464e0);return _0x357a80&&_0x3464e0&&Y(_0x1604b4,_0x131cd2,_0x3464e0),_0x3464e0;},p=(_0x4163b2,_0x2a2c58)=>(_0x3690f3,_0x2b77ce)=>_0x2a2c58(_0x3690f3,_0x2b77ce,_0x4163b2);function J(_0x4c1e29,_0x19046f){const _0x333b19=_0x2556b8,_0x314225=_0x4c1e29[_0x333b19(0x1c6)][0x0];return{..._0x19046f,'id':_0x314225[_0x333b19(0x1d5)],'resolved':_0x4c1e29['solved']===0x1,'dT':g(_0x314225[_0x333b19(0x20b)]),'personId':_0x314225[_0x333b19(0x1de)],'threadId':_0x314225['threadId']};}function F(_0x4621ba,_0x4abdc5,_0x2435b6){const _0x529236=_0x2556b8;var _0x8ad7ff,_0x1cafcc;if(((_0x1cafcc=(_0x8ad7ff=_0x4621ba==null?void 0x0:_0x4621ba[_0x529236(0x1c6)])==null?void 0x0:_0x8ad7ff[_0x529236(0x1d6)])!=null?_0x1cafcc:0x0)>0x0){const _0x2bb1ef=(_0x3a01a1,_0x2c3ad2)=>({'id':_0x3a01a1[_0x529236(0x1d5)],'threadId':_0x3a01a1[_0x529236(0x20f)],'dT':g(_0x3a01a1[_0x529236(0x20b)]),'personId':_0x3a01a1[_0x529236(0x1de)],'resolved':_0x4621ba[_0x529236(0x1b5)]===I[_0x529236(0x1a9)],'unitId':_0x4abdc5,'subUnitId':_0x2435b6,'text':JSON['parse'](_0x3a01a1[_0x529236(0x1e6)]),'parentId':_0x2c3ad2}),_0x207bb8=_0x2bb1ef(_0x4621ba['replies'][0x0]);return{..._0x207bb8,'children':_0x4621ba[_0x529236(0x1c6)][_0x529236(0x1f5)](0x1)[_0x529236(0x215)](_0x3b3663=>_0x2bb1ef(_0x3b3663,_0x207bb8['id']))};}return null;}let f=class{constructor(_0x3ccacb,_0x418309,_0x126050,_0x307342){const _0x964bdb=_0x2556b8;this[_0x964bdb(0x1ff)]=_0x3ccacb,this['_userService']=_0x418309,this[_0x964bdb(0x20d)]=_0x126050,this[_0x964bdb(0x222)]=_0x307342;}async['addComment'](_0x3e06a9){const _0x68e94=_0x2556b8;var _0x51795e,_0x588beb;const {parentId:_0x37b058,unitId:_0x3c3199,text:_0x4a5e14,threadId:_0x4946bc}=_0x3e06a9,_0x366b68=(_0x588beb=(_0x51795e=_0x4a5e14[_0x68e94(0x1c4)])==null?void 0x0:_0x51795e['filter'](_0x38d05c=>_0x38d05c[_0x68e94(0x207)]===c['CustomRangeType'][_0x68e94(0x1fe)])['map'](_0x3bee62=>_0x3bee62[_0x68e94(0x221)]))!=null?_0x588beb:[],_0xd744c1=JSON[_0x68e94(0x1b8)](_0x4a5e14),_0x3542e0=(await this[_0x68e94(0x20d)][_0x68e94(0x1a8)](_0x3c3199))[_0x68e94(0x20c)]();if(_0x37b058){const _0x30cdc0={'memberId':_0x3542e0,'unitId':_0x3c3199,'content':_0xd744c1,'mention':_0x366b68,'threadId':_0x4946bc},_0x247d50=(await this[_0x68e94(0x1ff)][_0x68e94(0x201)](_0x68e94(0x1e5)+_0x3c3199+_0x68e94(0x1f6),{'body':_0x30cdc0}))['body'][_0x68e94(0x1d3)];return{..._0x3e06a9,'id':_0x247d50[_0x68e94(0x1d5)],'dT':c['dayjs'](+_0x247d50[_0x68e94(0x20b)])['format'](_0x68e94(0x1db)),'personId':_0x247d50['userId']};}else{const _0x2e252c={'memberId':_0x3542e0,'unitId':_0x3c3199,'content':_0xd744c1,'mention':_0x366b68},_0xaf457b=await this[_0x68e94(0x1ff)][_0x68e94(0x201)](_0x68e94(0x1e5)+_0x3c3199+'/add',{'body':_0x2e252c});return J(_0xaf457b[_0x68e94(0x1ac)][_0x68e94(0x1af)],_0x3e06a9);}}async[_0x2556b8(0x1dd)](_0x1c92e6){const _0x4a4a7a=_0x2556b8;var _0x1d3d25,_0x247cd0;const {text:_0x610bb4,unitId:_0x376c9e}=_0x1c92e6,_0x14f789=(_0x247cd0=(_0x1d3d25=_0x610bb4[_0x4a4a7a(0x1c4)])==null?void 0x0:_0x1d3d25[_0x4a4a7a(0x204)](_0x138628=>_0x138628[_0x4a4a7a(0x207)]===c[_0x4a4a7a(0x1e1)][_0x4a4a7a(0x1fe)])['map'](_0x380e50=>_0x380e50['rangeId']))!=null?_0x247cd0:[],_0x43bb40=JSON[_0x4a4a7a(0x1b8)](_0x610bb4),_0x283815=_0x1c92e6[_0x4a4a7a(0x20f)],_0x5e7584=_0x1c92e6['id'],_0x118260={'memberId':(await this['_sessionService'][_0x4a4a7a(0x1a8)](_0x376c9e))['getMemberID'](),'unitId':_0x376c9e,'threadId':_0x283815,'mention':_0x14f789,'content':_0x43bb40,'replyId':_0x5e7584},_0x433206=await this[_0x4a4a7a(0x1ff)][_0x4a4a7a(0x201)](_0x4a4a7a(0x1e5)+_0x376c9e+'/edit',{'body':_0x118260});return!_0x433206[_0x4a4a7a(0x1ac)]['error']||_0x433206[_0x4a4a7a(0x1ac)]['error'][_0x4a4a7a(0x1b0)]===0x1;}async[_0x2556b8(0x1b3)](_0x365ada){const _0x97b408=_0x2556b8,{unitId:_0x17a9eb}=_0x365ada,_0xc4c72b=_0x365ada['threadId'],_0x26abf8={'memberId':this[_0x97b408(0x1fa)][_0x97b408(0x1bd)]()[_0x97b408(0x1a5)],'unitId':_0x17a9eb,'threadId':_0xc4c72b,'solved':_0x365ada[_0x97b408(0x1b4)]?I[_0x97b408(0x1a9)]:I[_0x97b408(0x1c0)]},_0x912d5b=await this[_0x97b408(0x1ff)][_0x97b408(0x201)](_0x97b408(0x1e5)+_0x17a9eb+_0x97b408(0x1c2),{'body':_0x26abf8});return!_0x912d5b['body'][_0x97b408(0x1ba)]||_0x912d5b['body'][_0x97b408(0x1ba)]['code']===0x1;}async['deleteComment'](_0x36dbb3,_0x491305,_0x494888,_0x35ccd9){const _0x5d68cc=_0x2556b8,_0x203311={'memberId':(await this[_0x5d68cc(0x20d)][_0x5d68cc(0x1a8)](_0x36dbb3))['getMemberID'](),'threadId':_0x494888,'replyId':_0x35ccd9,'unitId':_0x36dbb3},_0x3a0afd=await this[_0x5d68cc(0x1ff)][_0x5d68cc(0x201)](_0x5d68cc(0x1e5)+_0x36dbb3+'/delete',{'body':_0x203311});return!_0x3a0afd[_0x5d68cc(0x1ac)][_0x5d68cc(0x1ba)]||_0x3a0afd[_0x5d68cc(0x1ac)][_0x5d68cc(0x1ba)][_0x5d68cc(0x1b0)]===0x1;}async[_0x2556b8(0x21b)](_0x597fd2,_0x307b5c,_0x78bb07){const _0x5bcb02=_0x2556b8,_0x409701={'unitId':_0x597fd2,'threadId':_0x78bb07},_0x2e185b=await this[_0x5bcb02(0x1ff)]['post'](_0x5bcb02(0x1e5)+_0x597fd2+_0x5bcb02(0x1e9),{'body':_0x409701}),_0x5ea61a=_0x78bb07['map'](_0x52c0f9=>F(_0x2e185b['body']['comments'][_0x52c0f9],_0x597fd2,_0x307b5c))['filter'](Boolean);return Object[_0x5bcb02(0x1fc)](_0x2e185b['body'][_0x5bcb02(0x1ec)])['forEach'](_0x3782fc=>{const _0x2879c5=_0x5bcb02;this[_0x2879c5(0x1fa)][_0x2879c5(0x1cb)](_0x3782fc);}),_0x5ea61a;}['saveCommentToSnapshot'](_0x1d51f3){const _0x25e0d6=_0x2556b8;return{'id':_0x1d51f3['id'],'threadId':_0x1d51f3['threadId'],'ref':_0x1d51f3[_0x25e0d6(0x1fd)]};}};f=H([p(0x0,c[_0x2556b8(0x1b7)](M[_0x2556b8(0x1c7)])),p(0x1,c[_0x2556b8(0x1b7)](c[_0x2556b8(0x213)])),p(0x2,c[_0x2556b8(0x1b7)](C[_0x2556b8(0x1d2)])),p(0x3,c['Inject'](c[_0x2556b8(0x1f4)]))],f);var L=Object[_0x2556b8(0x1d1)],Z=Object[_0x2556b8(0x1e0)],W=(_0x4e4d33,_0x457d08,_0x20012d,_0x21f4cb)=>{const _0x576423=_0x2556b8;for(var _0x26dfb7=_0x21f4cb>0x1?void 0x0:_0x21f4cb?Z(_0x457d08,_0x20012d):_0x457d08,_0x59ff2c=_0x4e4d33[_0x576423(0x1d6)]-0x1,_0x13cd69;_0x59ff2c>=0x0;_0x59ff2c--)(_0x13cd69=_0x4e4d33[_0x59ff2c])&&(_0x26dfb7=(_0x21f4cb?_0x13cd69(_0x457d08,_0x20012d,_0x26dfb7):_0x13cd69(_0x26dfb7))||_0x26dfb7);return _0x21f4cb&&_0x26dfb7&&L(_0x457d08,_0x20012d,_0x26dfb7),_0x26dfb7;},O=(_0x381374,_0x346360)=>(_0x3a3630,_0x1a09c2)=>_0x346360(_0x3a3630,_0x1a09c2,_0x381374);let b=class extends c[_0x2556b8(0x1ef)]{constructor(_0x47f2ae,_0x3006a2){const _0x38a4fe=_0x2556b8;super(),this[_0x38a4fe(0x1d0)]=_0x47f2ae,this[_0x38a4fe(0x1ea)]=_0x3006a2,this[_0x38a4fe(0x1b9)]();}[_0x2556b8(0x1b9)](){const _0x331071=_0x2556b8;this[_0x331071(0x1d0)][_0x331071(0x1e7)]=this['_threadCommentDataSource'],this['_threadCommentDataSourceService'][_0x331071(0x1c8)]=!0x1;}};b=W([O(0x0,P[_0x2556b8(0x21c)]),O(0x1,c[_0x2556b8(0x1b7)](f))],b);var j=Object[_0x2556b8(0x1d1)],B=Object[_0x2556b8(0x1e0)],K=(_0x427f3d,_0x2b896a,_0x4c2b0f)=>_0x2b896a in _0x427f3d?j(_0x427f3d,_0x2b896a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c2b0f}):_0x427f3d[_0x2b896a]=_0x4c2b0f,V=(_0x20b78c,_0x5d4d73,_0x25f56e,_0x20937a)=>{const _0x6e49d=_0x2556b8;for(var _0x1bc033=_0x20937a>0x1?void 0x0:_0x20937a?B(_0x5d4d73,_0x25f56e):_0x5d4d73,_0x1c74d0=_0x20b78c[_0x6e49d(0x1d6)]-0x1,_0x3693d1;_0x1c74d0>=0x0;_0x1c74d0--)(_0x3693d1=_0x20b78c[_0x1c74d0])&&(_0x1bc033=(_0x20937a?_0x3693d1(_0x5d4d73,_0x25f56e,_0x1bc033):_0x3693d1(_0x1bc033))||_0x1bc033);return _0x20937a&&_0x1bc033&&j(_0x5d4d73,_0x25f56e,_0x1bc033),_0x1bc033;},y=(_0x5ecf53,_0x1608cc)=>(_0x28fde3,_0x25bf8c)=>_0x1608cc(_0x28fde3,_0x25bf8c,_0x5ecf53),N=(_0x36c0ac,_0x43e14b,_0x55b3b1)=>K(_0x36c0ac,typeof _0x43e14b!='symbol'?_0x43e14b+'':_0x43e14b,_0x55b3b1);exports[_0x2556b8(0x1d7)]=class extends c[_0x2556b8(0x1ae)]{constructor(_0x45f99f=D,_0x2a73df,_0x4aeb99){const _0x446706=_0x2556b8;super(),this[_0x446706(0x1eb)]=_0x45f99f,this[_0x446706(0x222)]=_0x2a73df,this['_configService']=_0x4aeb99;const {..._0x4f77ab}=c[_0x446706(0x1c5)]({},D,this[_0x446706(0x1eb)]);this[_0x446706(0x217)]['setConfig'](x,_0x4f77ab);}['onStarting'](){const _0x56239c=_0x2556b8;[[f],[b],[S]][_0x56239c(0x21a)](_0x965c03=>{const _0x1cd4d2=_0x56239c;this[_0x1cd4d2(0x222)][_0x1cd4d2(0x1da)](_0x965c03);});}[_0x2556b8(0x1d9)](){const _0x161fd5=_0x2556b8;this['_injector'][_0x161fd5(0x1dc)](b),this[_0x161fd5(0x222)][_0x161fd5(0x1dc)](S);}},N(exports[_0x2556b8(0x1d7)],_0x2556b8(0x21d),R),N(exports[_0x2556b8(0x1d7)],_0x2556b8(0x214),c[_0x2556b8(0x1ed)][_0x2556b8(0x1d8)]),exports['UniverThreadCommentDataSourcePlugin']=V([c[_0x2556b8(0x208)](w[_0x2556b8(0x1b1)],C[_0x2556b8(0x211)],T['UniverLicensePlugin']),y(0x1,c[_0x2556b8(0x1b7)](c['Injector'])),y(0x2,c[_0x2556b8(0x1f7)])],exports[_0x2556b8(0x1d7)]);
|
|
1
|
+
'use strict';const _0x5c457a=_0x1f24;(function(_0x49be27,_0x43d615){const _0x5aecfa=_0x1f24,_0xc172df=_0x49be27();while(!![]){try{const _0x18a70d=-parseInt(_0x5aecfa(0x1fd))/0x1+-parseInt(_0x5aecfa(0x1be))/0x2*(-parseInt(_0x5aecfa(0x1f3))/0x3)+parseInt(_0x5aecfa(0x210))/0x4+-parseInt(_0x5aecfa(0x1db))/0x5*(parseInt(_0x5aecfa(0x1c2))/0x6)+parseInt(_0x5aecfa(0x1c1))/0x7*(-parseInt(_0x5aecfa(0x1e8))/0x8)+-parseInt(_0x5aecfa(0x1ce))/0x9*(parseInt(_0x5aecfa(0x1d6))/0xa)+parseInt(_0x5aecfa(0x1d3))/0xb*(parseInt(_0x5aecfa(0x1fe))/0xc);if(_0x18a70d===_0x43d615)break;else _0xc172df['push'](_0xc172df['shift']());}catch(_0x4c764f){_0xc172df['push'](_0xc172df['shift']());}}}(_0x2fbf,0xb58c8));Object[_0x5c457a(0x1d1)](exports,Symbol[_0x5c457a(0x22a)],{'value':'Module'});const C=require(_0x5c457a(0x1ee)),T=require(_0x5c457a(0x203)),c=require(_0x5c457a(0x1e4)),w=require('@univerjs/thread-comment-ui'),P=require(_0x5c457a(0x21f)),U=require(_0x5c457a(0x218)),M=require('@univerjs/network'),R=_0x5c457a(0x219);var v=(_0x22e303=>(_0x22e303[_0x22e303['OpenOrReOpen']=0x0]=_0x5c457a(0x213),_0x22e303[_0x22e303[_0x5c457a(0x208)]=0x1]=_0x5c457a(0x208),_0x22e303[_0x22e303['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x22e303))(v||{}),I=(_0x1ada46=>(_0x1ada46[_0x1ada46[_0x5c457a(0x1f2)]=0x0]=_0x5c457a(0x1f2),_0x1ada46[_0x1ada46['Add']=0x1]=_0x5c457a(0x1ed),_0x1ada46[_0x1ada46['Reply']=0x2]=_0x5c457a(0x226),_0x1ada46[_0x1ada46[_0x5c457a(0x1d4)]=0x3]=_0x5c457a(0x1d4),_0x1ada46[_0x1ada46['Delete']=0x4]=_0x5c457a(0x1ff),_0x1ada46[_0x1ada46['Solve']=0x5]=_0x5c457a(0x222),_0x1ada46[_0x1ada46['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x1ada46))(I||{});const g=_0x16768d=>c[_0x5c457a(0x20d)](new Date(+_0x16768d))['format'](_0x5c457a(0x22b)),$=async(_0x375ed5,_0x34505f)=>{const _0x382c01=_0x5c457a,_0x149942=_0x375ed5[_0x382c01(0x1eb)](c[_0x382c01(0x1fb)]),_0x16b66a=_0x375ed5[_0x382c01(0x1eb)](M['HTTPService']);_0x34505f['forEach'](_0x4bbba8=>{const _0x9ca11a=_0x382c01;_0x149942[_0x9ca11a(0x20b)](_0x4bbba8)&&_0x34505f[_0x9ca11a(0x1ad)](_0x4bbba8);}),_0x34505f['size']&&(await _0x16b66a[_0x382c01(0x1eb)](_0x382c01(0x1cf),{'params':{'userIDs':[..._0x34505f]}}))[_0x382c01(0x1d7)][_0x382c01(0x20f)][_0x382c01(0x1e2)](_0x51c580=>{const _0x49b7ed=_0x382c01;_0x51c580&&_0x149942[_0x49b7ed(0x1ec)](_0x51c580);});};var E=Object[_0x5c457a(0x1d1)],q=Object[_0x5c457a(0x215)],A=(_0x3e0b7e,_0x51cb96,_0x141a91,_0x32419e)=>{const _0x1abe10=_0x5c457a;for(var _0x2c2d3f=_0x32419e>0x1?void 0x0:_0x32419e?q(_0x51cb96,_0x141a91):_0x51cb96,_0x3e4b68=_0x3e0b7e[_0x1abe10(0x227)]-0x1,_0x6e23c4;_0x3e4b68>=0x0;_0x3e4b68--)(_0x6e23c4=_0x3e0b7e[_0x3e4b68])&&(_0x2c2d3f=(_0x32419e?_0x6e23c4(_0x51cb96,_0x141a91,_0x2c2d3f):_0x6e23c4(_0x2c2d3f))||_0x2c2d3f);return _0x32419e&&_0x2c2d3f&&E(_0x51cb96,_0x141a91,_0x2c2d3f),_0x2c2d3f;},_=(_0x458e93,_0x2a55c5)=>(_0x111490,_0x489ae6)=>_0x2a55c5(_0x111490,_0x489ae6,_0x458e93);let S=class extends c[_0x5c457a(0x1f7)]{constructor(_0x2bef37,_0x125825,_0x373293,_0x4b88da){const _0x42ad03=_0x5c457a;super(),this[_0x42ad03(0x1f8)]=_0x2bef37,this['_threadCommentModel']=_0x125825,this[_0x42ad03(0x1b6)]=_0x373293,this['_injector']=_0x4b88da,this['_init'](),this[_0x42ad03(0x21b)]();}[_0x5c457a(0x21b)](){const _0x411ed4=_0x5c457a;this[_0x411ed4(0x1ac)](this[_0x411ed4(0x1c6)][_0x411ed4(0x1e6)][_0x411ed4(0x1d5)](U['bufferTime'](0x10))[_0x411ed4(0x220)](_0x32d76a=>{const _0x3d2d02=_0x411ed4,_0x2e8a57=new Set();_0x32d76a[_0x3d2d02(0x1e2)](_0x23992b=>{const _0x3a6266=_0x3d2d02;switch(_0x23992b[_0x3a6266(0x1fa)]){case'add':{const _0x103e30=_0x23992b[_0x3a6266(0x225)][_0x3a6266(0x207)];_0x2e8a57[_0x3a6266(0x206)](_0x103e30);break;}}}),$(this[_0x3d2d02(0x22d)],_0x2e8a57);}));}['_init'](){const _0x1e91f6=_0x5c457a;this['disposeWithMe'](this[_0x1e91f6(0x1f8)][_0x1e91f6(0x1e6)][_0x1e91f6(0x220)](async _0x274538=>{const _0x253ea5=_0x1e91f6;var _0x24903d,_0x20a7ff,_0x13be36,_0x2300a0;const _0x3260a3=(_0x24903d=this[_0x253ea5(0x1c6)][_0x253ea5(0x212)](_0x274538[_0x253ea5(0x21d)])[_0x253ea5(0x1bf)](_0x849bb1=>_0x849bb1[_0x253ea5(0x1b2)]===_0x274538[_0x253ea5(0x1b2)]))==null?void 0x0:_0x24903d[_0x253ea5(0x1df)];if(!_0x3260a3)return;const {unitId:_0x270090,subUnitId:_0x59a2a9}=_0x3260a3;switch(_0x274538['user']&&this[_0x253ea5(0x1b6)]['addUser'](_0x274538[_0x253ea5(0x1e9)]),_0x274538['type']){case I['Add']:break;case I[_0x253ea5(0x226)]:{this[_0x253ea5(0x1c6)][_0x253ea5(0x1b7)](_0x270090,_0x59a2a9,{'unitId':_0x270090,'subUnitId':_0x59a2a9,'ref':'','id':_0x274538[_0x253ea5(0x1dd)],'dT':g(+_0x274538['createTimestamp']),'threadId':_0x274538[_0x253ea5(0x1b2)],'personId':(_0x13be36=(_0x20a7ff=_0x274538[_0x253ea5(0x1e9)])==null?void 0x0:_0x20a7ff['userID'])!=null?_0x13be36:_0x274538[_0x253ea5(0x1c3)],'text':JSON[_0x253ea5(0x20c)](_0x274538['content']),'parentId':_0x3260a3['id']});break;}case I[_0x253ea5(0x1ff)]:{const _0x166560=this[_0x253ea5(0x1c6)]['getComment'](_0x270090,_0x59a2a9,_0x274538[_0x253ea5(0x1dd)]);_0x166560&&_0x166560[_0x253ea5(0x21c)]&&this['_threadCommentModel'][_0x253ea5(0x221)](_0x270090,_0x59a2a9,_0x274538[_0x253ea5(0x1dd)]);break;}case I[_0x253ea5(0x1d4)]:{this[_0x253ea5(0x1c6)]['updateComment'](_0x270090,_0x59a2a9,{'commentId':_0x274538['replyId'],'text':JSON[_0x253ea5(0x20c)](_0x274538[_0x253ea5(0x209)])});break;}case I[_0x253ea5(0x222)]:{const _0x2f4278=(_0x2300a0=this[_0x253ea5(0x1c6)][_0x253ea5(0x212)](_0x274538[_0x253ea5(0x21d)])[_0x253ea5(0x1bf)](_0x3fab0d=>_0x3fab0d['threadId']===_0x274538['threadId']))==null?void 0x0:_0x2300a0[_0x253ea5(0x1df)];_0x2f4278&&this[_0x253ea5(0x1c6)][_0x253ea5(0x217)](_0x270090,_0x59a2a9,_0x2f4278['id'],_0x274538[_0x253ea5(0x1dc)]===v[_0x253ea5(0x208)]);break;}}}));}};function _0x2fbf(){const _0x401e9a=['content','symbol','getUser','parse','dayjs','setConfig','users','2619940ENTUOy','dataSource','getUnit','OpenOrReOpen','thread-comment-data-source.config','getOwnPropertyDescriptor','ThreadCommentModel','resolveComment','rxjs','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','replies','_initUserSync','parentId','unitId','filter','@univerjs/thread-comment','subscribe','deleteComment','Solve','onStarting','resolved','payload','Reply','length','requireSession','merge','toStringTag','YYYY/MM/DD\x20HH:mm','getCurrentUser','_injector','disposeWithMe','delete','stringify','IConfigService','Injector','values','threadId','Inject','/add','post','_userService','addComment','error','saveCommentToSnapshot','UniverLicensePlugin','UNIVER_UNKNOWN','Plugin','HTTPService','3926NcSEYh','find','UniverThreadCommentUIPlugin','10175165lgyTuf','21198LaZbyi','userId','comment','DependentOn','_threadCommentModel','userID','_sessionService','UniverThreadCommentDataSourcePlugin','_config','syncUpdateMutationToColla','code','/reply','2609703rJUcpQ','/universer-api/user/list','CustomRangeType','defineProperty','_httpService','61006nUxKMj','Edit','pipe','40GRaEVA','body','/universer-api/comment/unit/','customRanges','_configService','270QgJarL','solved','replyId','listComments','root','createTimestamp','/delete','forEach','COMMENT','@univerjs/core','_initDataSource','commentUpdate$','/edit','8YNOPwg','user','_threadCommentDataSource','get','addUser','Add','@univerjs-pro/collaboration-client','/list','ref','UniverCollaborationClientPlugin','Unknown','1458qVTxxU','rangeType','UniverInstanceType','map','Disposable','_commentService','format','type','UserManagerService','getMemberID','778674XjTmtr','5880JMGBhi','Delete','reply','CollaborationSessionService','onReady','@univerjs-pro/license','rangeId','_threadCommentDataSourceService','add','personId','Solved'];_0x2fbf=function(){return _0x401e9a;};return _0x2fbf();}S=A([_(0x0,c['Inject'](C['CommentService'])),_(0x1,c['Inject'](P[_0x5c457a(0x216)])),_(0x2,c[_0x5c457a(0x1b3)](c[_0x5c457a(0x1fb)])),_(0x3,c[_0x5c457a(0x1b3)](c[_0x5c457a(0x1b0)]))],S);const x=_0x5c457a(0x214),D={};var Y=Object[_0x5c457a(0x1d1)],G=Object[_0x5c457a(0x215)],H=(_0x4732f7,_0x11a0a3,_0x3c1208,_0x137128)=>{const _0xa0b14d=_0x5c457a;for(var _0x571749=_0x137128>0x1?void 0x0:_0x137128?G(_0x11a0a3,_0x3c1208):_0x11a0a3,_0x44458b=_0x4732f7[_0xa0b14d(0x227)]-0x1,_0x2a5ca2;_0x44458b>=0x0;_0x44458b--)(_0x2a5ca2=_0x4732f7[_0x44458b])&&(_0x571749=(_0x137128?_0x2a5ca2(_0x11a0a3,_0x3c1208,_0x571749):_0x2a5ca2(_0x571749))||_0x571749);return _0x137128&&_0x571749&&Y(_0x11a0a3,_0x3c1208,_0x571749),_0x571749;},p=(_0x1cb59a,_0x4d0bf2)=>(_0x375d15,_0x47525c)=>_0x4d0bf2(_0x375d15,_0x47525c,_0x1cb59a);function J(_0x41988c,_0x11c9b4){const _0x15b15d=_0x5c457a,_0x43c86e=_0x41988c[_0x15b15d(0x21a)][0x0];return{..._0x11c9b4,'id':_0x43c86e[_0x15b15d(0x1dd)],'resolved':_0x41988c[_0x15b15d(0x1dc)]===0x1,'dT':g(_0x43c86e[_0x15b15d(0x1e0)]),'personId':_0x43c86e[_0x15b15d(0x1c3)],'threadId':_0x43c86e[_0x15b15d(0x1b2)]};}function F(_0x446926,_0x393973,_0x2b5925){const _0x2680b8=_0x5c457a;var _0x59471d,_0x2a169b;if(((_0x2a169b=(_0x59471d=_0x446926==null?void 0x0:_0x446926[_0x2680b8(0x21a)])==null?void 0x0:_0x59471d[_0x2680b8(0x227)])!=null?_0x2a169b:0x0)>0x0){const _0x46327e=(_0x41e8da,_0x25b02c)=>({'id':_0x41e8da['replyId'],'threadId':_0x41e8da['threadId'],'dT':g(_0x41e8da[_0x2680b8(0x1e0)]),'personId':_0x41e8da[_0x2680b8(0x1c3)],'resolved':_0x446926['solved']===v['Solved'],'unitId':_0x393973,'subUnitId':_0x2b5925,'text':JSON['parse'](_0x41e8da[_0x2680b8(0x209)]),'parentId':_0x25b02c}),_0x39e20e=_0x46327e(_0x446926[_0x2680b8(0x21a)][0x0]);return{..._0x39e20e,'children':_0x446926[_0x2680b8(0x21a)]['slice'](0x1)[_0x2680b8(0x1f6)](_0x54e1e2=>_0x46327e(_0x54e1e2,_0x39e20e['id']))};}return null;}let f=class{constructor(_0x12a50a,_0x2dda5f,_0x49d225,_0x3c1e51){const _0x4e4f84=_0x5c457a;this[_0x4e4f84(0x1d2)]=_0x12a50a,this['_userService']=_0x2dda5f,this[_0x4e4f84(0x1c8)]=_0x49d225,this['_injector']=_0x3c1e51;}async[_0x5c457a(0x1b7)](_0x484556){const _0x4d78c4=_0x5c457a;var _0x436cd8,_0x30698e;const {parentId:_0x13ae42,unitId:_0x29b765,text:_0x442c2c,threadId:_0x26a37f}=_0x484556,_0x16ecf1=(_0x30698e=(_0x436cd8=_0x442c2c[_0x4d78c4(0x1d9)])==null?void 0x0:_0x436cd8[_0x4d78c4(0x21e)](_0x5c6cdb=>_0x5c6cdb['rangeType']===c[_0x4d78c4(0x1d0)][_0x4d78c4(0x1e3)])['map'](_0x8c0485=>_0x8c0485['rangeId']))!=null?_0x30698e:[],_0x1b74d3=JSON[_0x4d78c4(0x1ae)](_0x442c2c),_0x94e4ed=(await this[_0x4d78c4(0x1c8)][_0x4d78c4(0x228)](_0x29b765))[_0x4d78c4(0x1fc)]();if(_0x13ae42){const _0xa62f85={'memberId':_0x94e4ed,'unitId':_0x29b765,'content':_0x1b74d3,'mention':_0x16ecf1,'threadId':_0x26a37f},_0x1515b4=(await this[_0x4d78c4(0x1d2)][_0x4d78c4(0x1b5)](_0x4d78c4(0x1d8)+_0x29b765+_0x4d78c4(0x1cd),{'body':_0xa62f85}))[_0x4d78c4(0x1d7)][_0x4d78c4(0x200)];return{..._0x484556,'id':_0x1515b4[_0x4d78c4(0x1dd)],'dT':c[_0x4d78c4(0x20d)](+_0x1515b4[_0x4d78c4(0x1e0)])[_0x4d78c4(0x1f9)](_0x4d78c4(0x22b)),'personId':_0x1515b4[_0x4d78c4(0x1c3)]};}else{const _0x58c1c5={'memberId':_0x94e4ed,'unitId':_0x29b765,'content':_0x1b74d3,'mention':_0x16ecf1},_0x5167f4=await this[_0x4d78c4(0x1d2)][_0x4d78c4(0x1b5)](_0x4d78c4(0x1d8)+_0x29b765+_0x4d78c4(0x1b4),{'body':_0x58c1c5});return J(_0x5167f4[_0x4d78c4(0x1d7)][_0x4d78c4(0x1c4)],_0x484556);}}async['updateComment'](_0x1d1429){const _0x4d9431=_0x5c457a;var _0x10fd24,_0x3e8f1d;const {text:_0x556fa6,unitId:_0x24f8f3}=_0x1d1429,_0x2ad876=(_0x3e8f1d=(_0x10fd24=_0x556fa6[_0x4d9431(0x1d9)])==null?void 0x0:_0x10fd24[_0x4d9431(0x21e)](_0x552339=>_0x552339[_0x4d9431(0x1f4)]===c[_0x4d9431(0x1d0)]['COMMENT'])['map'](_0x459842=>_0x459842[_0x4d9431(0x204)]))!=null?_0x3e8f1d:[],_0x2ccda6=JSON[_0x4d9431(0x1ae)](_0x556fa6),_0x3503f4=_0x1d1429[_0x4d9431(0x1b2)],_0x3dc535=_0x1d1429['id'],_0x518902={'memberId':(await this['_sessionService'][_0x4d9431(0x228)](_0x24f8f3))[_0x4d9431(0x1fc)](),'unitId':_0x24f8f3,'threadId':_0x3503f4,'mention':_0x2ad876,'content':_0x2ccda6,'replyId':_0x3dc535},_0x532ffa=await this[_0x4d9431(0x1d2)][_0x4d9431(0x1b5)](_0x4d9431(0x1d8)+_0x24f8f3+_0x4d9431(0x1e7),{'body':_0x518902});return!_0x532ffa[_0x4d9431(0x1d7)][_0x4d9431(0x1b8)]||_0x532ffa[_0x4d9431(0x1d7)][_0x4d9431(0x1b8)]['code']===0x1;}async[_0x5c457a(0x217)](_0x10b123){const _0x2bd240=_0x5c457a,{unitId:_0x317bf1}=_0x10b123,_0x3c3a8f=_0x10b123[_0x2bd240(0x1b2)],_0x28cf24={'memberId':this[_0x2bd240(0x1b6)][_0x2bd240(0x22c)]()[_0x2bd240(0x1c7)],'unitId':_0x317bf1,'threadId':_0x3c3a8f,'solved':_0x10b123[_0x2bd240(0x224)]?v[_0x2bd240(0x208)]:v[_0x2bd240(0x213)]},_0x7726a8=await this[_0x2bd240(0x1d2)][_0x2bd240(0x1b5)](_0x2bd240(0x1d8)+_0x317bf1+'/solved',{'body':_0x28cf24});return!_0x7726a8['body'][_0x2bd240(0x1b8)]||_0x7726a8[_0x2bd240(0x1d7)]['error'][_0x2bd240(0x1cc)]===0x1;}async[_0x5c457a(0x221)](_0x2f0d08,_0x4362f0,_0xc042a8,_0x2ea3c){const _0x4aa58d=_0x5c457a,_0x33c6b4={'memberId':(await this[_0x4aa58d(0x1c8)]['requireSession'](_0x2f0d08))[_0x4aa58d(0x1fc)](),'threadId':_0xc042a8,'replyId':_0x2ea3c,'unitId':_0x2f0d08},_0xd318b4=await this[_0x4aa58d(0x1d2)][_0x4aa58d(0x1b5)]('/universer-api/comment/unit/'+_0x2f0d08+_0x4aa58d(0x1e1),{'body':_0x33c6b4});return!_0xd318b4[_0x4aa58d(0x1d7)][_0x4aa58d(0x1b8)]||_0xd318b4['body'][_0x4aa58d(0x1b8)][_0x4aa58d(0x1cc)]===0x1;}async[_0x5c457a(0x1de)](_0x36a6d6,_0x349890,_0x20c28d){const _0x2bb442=_0x5c457a,_0x422841={'unitId':_0x36a6d6,'threadId':_0x20c28d},_0x4a3b15=await this['_httpService']['post'](_0x2bb442(0x1d8)+_0x36a6d6+_0x2bb442(0x1ef),{'body':_0x422841}),_0x20b84c=_0x20c28d['map'](_0x566ee4=>F(_0x4a3b15[_0x2bb442(0x1d7)]['comments'][_0x566ee4],_0x36a6d6,_0x349890))[_0x2bb442(0x21e)](Boolean);return Object[_0x2bb442(0x1b1)](_0x4a3b15[_0x2bb442(0x1d7)][_0x2bb442(0x20f)])[_0x2bb442(0x1e2)](_0x46521d=>{const _0x24f18c=_0x2bb442;this['_userService'][_0x24f18c(0x1ec)](_0x46521d);}),_0x20b84c;}[_0x5c457a(0x1b9)](_0x5b79bb){const _0x3d0f0b=_0x5c457a;return{'id':_0x5b79bb['id'],'threadId':_0x5b79bb[_0x3d0f0b(0x1b2)],'ref':_0x5b79bb[_0x3d0f0b(0x1f0)]};}};f=H([p(0x0,c[_0x5c457a(0x1b3)](M[_0x5c457a(0x1bd)])),p(0x1,c[_0x5c457a(0x1b3)](c['UserManagerService'])),p(0x2,c[_0x5c457a(0x1b3)](C[_0x5c457a(0x201)])),p(0x3,c[_0x5c457a(0x1b3)](c[_0x5c457a(0x1b0)]))],f);var L=Object[_0x5c457a(0x1d1)],Z=Object[_0x5c457a(0x215)],W=(_0x274807,_0x35cb0d,_0x5c1f58,_0x42632a)=>{const _0x446e9b=_0x5c457a;for(var _0x5570b3=_0x42632a>0x1?void 0x0:_0x42632a?Z(_0x35cb0d,_0x5c1f58):_0x35cb0d,_0x3d47d9=_0x274807[_0x446e9b(0x227)]-0x1,_0x3b3de1;_0x3d47d9>=0x0;_0x3d47d9--)(_0x3b3de1=_0x274807[_0x3d47d9])&&(_0x5570b3=(_0x42632a?_0x3b3de1(_0x35cb0d,_0x5c1f58,_0x5570b3):_0x3b3de1(_0x5570b3))||_0x5570b3);return _0x42632a&&_0x5570b3&&L(_0x35cb0d,_0x5c1f58,_0x5570b3),_0x5570b3;},O=(_0x1254ed,_0x462a0f)=>(_0x85d9ee,_0x164e67)=>_0x462a0f(_0x85d9ee,_0x164e67,_0x1254ed);let b=class extends c[_0x5c457a(0x1f7)]{constructor(_0x40c4f6,_0x13e2ac){const _0x2a57e1=_0x5c457a;super(),this[_0x2a57e1(0x205)]=_0x40c4f6,this[_0x2a57e1(0x1ea)]=_0x13e2ac,this[_0x2a57e1(0x1e5)]();}[_0x5c457a(0x1e5)](){const _0x40cf57=_0x5c457a;this[_0x40cf57(0x205)][_0x40cf57(0x211)]=this[_0x40cf57(0x1ea)],this['_threadCommentDataSourceService'][_0x40cf57(0x1cb)]=!0x1;}};b=W([O(0x0,P['IThreadCommentDataSourceService']),O(0x1,c[_0x5c457a(0x1b3)](f))],b);var j=Object[_0x5c457a(0x1d1)],B=Object[_0x5c457a(0x215)],K=(_0x5d006f,_0x18355e,_0x384e2c)=>_0x18355e in _0x5d006f?j(_0x5d006f,_0x18355e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x384e2c}):_0x5d006f[_0x18355e]=_0x384e2c,V=(_0x284905,_0x4088ce,_0x2f974c,_0xb4c03)=>{const _0x3de1a1=_0x5c457a;for(var _0x5f2abe=_0xb4c03>0x1?void 0x0:_0xb4c03?B(_0x4088ce,_0x2f974c):_0x4088ce,_0x42489c=_0x284905[_0x3de1a1(0x227)]-0x1,_0x577ba4;_0x42489c>=0x0;_0x42489c--)(_0x577ba4=_0x284905[_0x42489c])&&(_0x5f2abe=(_0xb4c03?_0x577ba4(_0x4088ce,_0x2f974c,_0x5f2abe):_0x577ba4(_0x5f2abe))||_0x5f2abe);return _0xb4c03&&_0x5f2abe&&j(_0x4088ce,_0x2f974c,_0x5f2abe),_0x5f2abe;},y=(_0x46b289,_0x998628)=>(_0x553055,_0x2e244c)=>_0x998628(_0x553055,_0x2e244c,_0x46b289),N=(_0x59282e,_0x4a299e,_0x1c5f57)=>K(_0x59282e,typeof _0x4a299e!=_0x5c457a(0x20a)?_0x4a299e+'':_0x4a299e,_0x1c5f57);function _0x1f24(_0x39dd12,_0x23cb8e){const _0x2fbf73=_0x2fbf();return _0x1f24=function(_0x1f247b,_0x25f132){_0x1f247b=_0x1f247b-0x1ac;let _0x4bd99a=_0x2fbf73[_0x1f247b];return _0x4bd99a;},_0x1f24(_0x39dd12,_0x23cb8e);}exports[_0x5c457a(0x1c9)]=class extends c[_0x5c457a(0x1bc)]{constructor(_0x1e8086=D,_0x55136b,_0x12998a){const _0xa12820=_0x5c457a;super(),this[_0xa12820(0x1ca)]=_0x1e8086,this[_0xa12820(0x22d)]=_0x55136b,this['_configService']=_0x12998a;const {..._0x442c25}=c[_0xa12820(0x229)]({},D,this[_0xa12820(0x1ca)]);this[_0xa12820(0x1da)][_0xa12820(0x20e)](x,_0x442c25);}[_0x5c457a(0x223)](){const _0x4e55bc=_0x5c457a;[[f],[b],[S]][_0x4e55bc(0x1e2)](_0x37dc4a=>{const _0x4cf1b1=_0x4e55bc;this[_0x4cf1b1(0x22d)][_0x4cf1b1(0x206)](_0x37dc4a);});}[_0x5c457a(0x202)](){const _0x5e1a80=_0x5c457a;this[_0x5e1a80(0x22d)][_0x5e1a80(0x1eb)](b),this[_0x5e1a80(0x22d)][_0x5e1a80(0x1eb)](S);}},N(exports[_0x5c457a(0x1c9)],'pluginName',R),N(exports['UniverThreadCommentDataSourcePlugin'],_0x5c457a(0x1fa),c[_0x5c457a(0x1f5)][_0x5c457a(0x1bb)]),exports[_0x5c457a(0x1c9)]=V([c[_0x5c457a(0x1c5)](w[_0x5c457a(0x1c0)],C[_0x5c457a(0x1f1)],T[_0x5c457a(0x1ba)]),y(0x1,c['Inject'](c[_0x5c457a(0x1b0)])),y(0x2,c[_0x5c457a(0x1af)])],exports['UniverThreadCommentDataSourcePlugin']);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x49a43c=_0x9690;(function(_0x2b01e8,_0x5843fb){const _0x676c49=_0x9690,_0x109221=_0x2b01e8();while(!![]){try{const _0x178de6=-parseInt(_0x676c49(0x1aa))/0x1+-parseInt(_0x676c49(0x183))/0x2*(parseInt(_0x676c49(0x1d4))/0x3)+-parseInt(_0x676c49(0x19a))/0x4*(-parseInt(_0x676c49(0x1c9))/0x5)+-parseInt(_0x676c49(0x1cb))/0x6*(parseInt(_0x676c49(0x1d9))/0x7)+-parseInt(_0x676c49(0x19f))/0x8+-parseInt(_0x676c49(0x1d1))/0x9+parseInt(_0x676c49(0x17f))/0xa;if(_0x178de6===_0x5843fb)break;else _0x109221['push'](_0x109221['shift']());}catch(_0x3b9878){_0x109221['push'](_0x109221['shift']());}}}(_0xeb68,0x8b680));import{CommentService as _0x23b448,CollaborationSessionService as _0x46fd22,UniverCollaborationClientPlugin as _0x192a75}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x2e972a}from'@univerjs-pro/license';import{dayjs as _0x5828b6,UserManagerService as _0x21a274,Inject as _0x1ece54,Injector as _0x2e703f,Disposable as _0x2599c0,CustomRangeType as _0x29e93f,UniverInstanceType as _0x1c4ab6,DependentOn as _0x2312d9,Plugin as _0x515e41,merge as _0xae27d9,IConfigService as _0x597de3}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x54a460}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x2acc31,IThreadCommentDataSourceService as _0x5c11c1}from'@univerjs/thread-comment';import{bufferTime as _0x59e321}from'rxjs';import{HTTPService as _0x2731d6}from'@univerjs/network';const B=_0x49a43c(0x195);function _0x9690(_0x2452d0,_0x1dc44c){const _0xeb6850=_0xeb68();return _0x9690=function(_0x96907f,_0x7ea2e7){_0x96907f=_0x96907f-0x176;let _0x2146b6=_0xeb6850[_0x96907f];return _0x2146b6;},_0x9690(_0x2452d0,_0x1dc44c);}function _0xeb68(){const _0x6a8991=['/universer-api/user/list','onStarting','user','content','Add','1092163SzMvtW','Solved','Delete','slice','thread-comment-data-source.config','find','delete','createTimestamp','UNRECOGNIZED','Edit','_sessionService','YYYY/MM/DD\x20HH:mm','/edit','userId','ref','unitId','getUser','_userService','_threadCommentModel','resolved','root','filter','map','getOwnPropertyDescriptor','rangeType','subscribe','threadId','users','body','setConfig','code','65ZSwVka','parse','114uyvfIU','getUnit','COMMENT','dataSource','onReady','_commentService','4188393RPgvVI','/delete','/add','418428vfjapf','comment','length','replyId','personId','55489KJkNrc','solved','_httpService','replies','stringify','updateComment','disposeWithMe','_initDataSource','pluginName','format','/universer-api/comment/unit/','_initUserSync','38578290mFDUuj','userID','listComments','get','14UXMmgH','OpenOrReOpen','_threadCommentDataSourceService','rangeId','commentUpdate$','comments','symbol','error','Unknown','post','_threadCommentDataSource','deleteComment','/reply','Solve','_injector','customRanges','size','forEach','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','getMemberID','resolveComment','/list','addUser','39436PLUzbz','Reply','add','_config','_configService','5844024typqxV','requireSession','type','defineProperty','_init','getCurrentUser'];_0xeb68=function(){return _0x6a8991;};return _0xeb68();}var v=(_0x4e8ba6=>(_0x4e8ba6[_0x4e8ba6[_0x49a43c(0x184)]=0x0]='OpenOrReOpen',_0x4e8ba6[_0x4e8ba6[_0x49a43c(0x1ab)]=0x1]=_0x49a43c(0x1ab),_0x4e8ba6[_0x4e8ba6[_0x49a43c(0x1b2)]=-0x1]=_0x49a43c(0x1b2),_0x4e8ba6))(v||{}),p=(_0x374bea=>(_0x374bea[_0x374bea[_0x49a43c(0x18b)]=0x0]='Unknown',_0x374bea[_0x374bea[_0x49a43c(0x1a9)]=0x1]=_0x49a43c(0x1a9),_0x374bea[_0x374bea[_0x49a43c(0x19b)]=0x2]=_0x49a43c(0x19b),_0x374bea[_0x374bea['Edit']=0x3]='Edit',_0x374bea[_0x374bea[_0x49a43c(0x1ac)]=0x4]=_0x49a43c(0x1ac),_0x374bea[_0x374bea['Solve']=0x5]=_0x49a43c(0x190),_0x374bea[_0x374bea['UNRECOGNIZED']=-0x1]=_0x49a43c(0x1b2),_0x374bea))(p||{});const O=_0x16fd64=>_0x5828b6(new Date(+_0x16fd64))[_0x49a43c(0x17c)]('YYYY/MM/DD\x20HH:mm'),K=async(_0x8a5188,_0x502646)=>{const _0xcca3bb=_0x49a43c,_0x473bfa=_0x8a5188['get'](_0x21a274),_0x28ced9=_0x8a5188[_0xcca3bb(0x182)](_0x2731d6);_0x502646[_0xcca3bb(0x194)](_0x5c3904=>{const _0x2d5b15=_0xcca3bb;_0x473bfa[_0x2d5b15(0x1ba)](_0x5c3904)&&_0x502646[_0x2d5b15(0x1b0)](_0x5c3904);}),_0x502646[_0xcca3bb(0x193)]&&(await _0x28ced9[_0xcca3bb(0x182)](_0xcca3bb(0x1a5),{'params':{'userIDs':[..._0x502646]}}))[_0xcca3bb(0x1c6)][_0xcca3bb(0x1c5)][_0xcca3bb(0x194)](_0xa8b9f3=>{const _0x528cd3=_0xcca3bb;_0xa8b9f3&&_0x473bfa[_0x528cd3(0x199)](_0xa8b9f3);});};var V=Object[_0x49a43c(0x1a2)],z=Object[_0x49a43c(0x1c1)],Q=(_0x46f9bf,_0x8142e7,_0x9d8ced,_0x49d523)=>{const _0x25e520=_0x49a43c;for(var _0x549f84=_0x49d523>0x1?void 0x0:_0x49d523?z(_0x8142e7,_0x9d8ced):_0x8142e7,_0x4fa447=_0x46f9bf[_0x25e520(0x1d6)]-0x1,_0x52d49e;_0x4fa447>=0x0;_0x4fa447--)(_0x52d49e=_0x46f9bf[_0x4fa447])&&(_0x549f84=(_0x49d523?_0x52d49e(_0x8142e7,_0x9d8ced,_0x549f84):_0x52d49e(_0x549f84))||_0x549f84);return _0x49d523&&_0x549f84&&V(_0x8142e7,_0x9d8ced,_0x549f84),_0x549f84;},_=(_0x520715,_0x8341b6)=>(_0x2b9058,_0x271b7a)=>_0x8341b6(_0x2b9058,_0x271b7a,_0x520715);let f=class extends _0x2599c0{constructor(_0x11191f,_0xe47969,_0x551968,_0x23999c){const _0x30528d=_0x49a43c;super(),this[_0x30528d(0x1d0)]=_0x11191f,this[_0x30528d(0x1bc)]=_0xe47969,this['_userService']=_0x551968,this['_injector']=_0x23999c,this[_0x30528d(0x1a3)](),this[_0x30528d(0x17e)]();}['_initUserSync'](){const _0x16afbb=_0x49a43c;this[_0x16afbb(0x179)](this[_0x16afbb(0x1bc)][_0x16afbb(0x187)]['pipe'](_0x59e321(0x10))['subscribe'](_0x519fae=>{const _0x4fb04a=_0x16afbb,_0x4d1b03=new Set();_0x519fae['forEach'](_0x428849=>{const _0x4549bf=_0x9690;switch(_0x428849[_0x4549bf(0x1a1)]){case _0x4549bf(0x19c):{const _0x29a28e=_0x428849['payload'][_0x4549bf(0x1d8)];_0x4d1b03[_0x4549bf(0x19c)](_0x29a28e);break;}}}),K(this[_0x4fb04a(0x191)],_0x4d1b03);}));}[_0x49a43c(0x1a3)](){const _0x4e4d07=_0x49a43c;this['disposeWithMe'](this[_0x4e4d07(0x1d0)]['commentUpdate$'][_0x4e4d07(0x1c3)](async _0x4a2b3e=>{const _0x550d7f=_0x4e4d07;var _0x31c451,_0x3d3ea6,_0xd2c1cd,_0xf5ffa7;const _0xbb3fd=(_0x31c451=this[_0x550d7f(0x1bc)][_0x550d7f(0x1cc)](_0x4a2b3e['unitId'])[_0x550d7f(0x1af)](_0x286dd5=>_0x286dd5[_0x550d7f(0x1c4)]===_0x4a2b3e[_0x550d7f(0x1c4)]))==null?void 0x0:_0x31c451['root'];if(!_0xbb3fd)return;const {unitId:_0x20ab2d,subUnitId:_0x468198}=_0xbb3fd;switch(_0x4a2b3e[_0x550d7f(0x1a7)]&&this[_0x550d7f(0x1bb)][_0x550d7f(0x199)](_0x4a2b3e[_0x550d7f(0x1a7)]),_0x4a2b3e['type']){case p[_0x550d7f(0x1a9)]:break;case p[_0x550d7f(0x19b)]:{this[_0x550d7f(0x1bc)]['addComment'](_0x20ab2d,_0x468198,{'unitId':_0x20ab2d,'subUnitId':_0x468198,'ref':'','id':_0x4a2b3e[_0x550d7f(0x1d7)],'dT':O(+_0x4a2b3e['createTimestamp']),'threadId':_0x4a2b3e[_0x550d7f(0x1c4)],'personId':(_0xd2c1cd=(_0x3d3ea6=_0x4a2b3e[_0x550d7f(0x1a7)])==null?void 0x0:_0x3d3ea6['userID'])!=null?_0xd2c1cd:_0x4a2b3e[_0x550d7f(0x1b7)],'text':JSON['parse'](_0x4a2b3e[_0x550d7f(0x1a8)]),'parentId':_0xbb3fd['id']});break;}case p[_0x550d7f(0x1ac)]:{const _0x24a774=this[_0x550d7f(0x1bc)]['getComment'](_0x20ab2d,_0x468198,_0x4a2b3e[_0x550d7f(0x1d7)]);_0x24a774&&_0x24a774['parentId']&&this[_0x550d7f(0x1bc)][_0x550d7f(0x18e)](_0x20ab2d,_0x468198,_0x4a2b3e[_0x550d7f(0x1d7)]);break;}case p[_0x550d7f(0x1b3)]:{this[_0x550d7f(0x1bc)][_0x550d7f(0x178)](_0x20ab2d,_0x468198,{'commentId':_0x4a2b3e[_0x550d7f(0x1d7)],'text':JSON[_0x550d7f(0x1ca)](_0x4a2b3e[_0x550d7f(0x1a8)])});break;}case p[_0x550d7f(0x190)]:{const _0x97a19f=(_0xf5ffa7=this[_0x550d7f(0x1bc)][_0x550d7f(0x1cc)](_0x4a2b3e[_0x550d7f(0x1b9)])[_0x550d7f(0x1af)](_0x366f61=>_0x366f61[_0x550d7f(0x1c4)]===_0x4a2b3e[_0x550d7f(0x1c4)]))==null?void 0x0:_0xf5ffa7[_0x550d7f(0x1be)];_0x97a19f&&this[_0x550d7f(0x1bc)][_0x550d7f(0x197)](_0x20ab2d,_0x468198,_0x97a19f['id'],_0x4a2b3e[_0x550d7f(0x1da)]===v[_0x550d7f(0x1ab)]);break;}}}));}};f=Q([_(0x0,_0x1ece54(_0x23b448)),_(0x1,_0x1ece54(_0x2acc31)),_(0x2,_0x1ece54(_0x21a274)),_(0x3,_0x1ece54(_0x2e703f))],f);const X=_0x49a43c(0x1ae),P={};var k=Object[_0x49a43c(0x1a2)],ee=Object['getOwnPropertyDescriptor'],re=(_0x1b0a59,_0x48d557,_0x1bd142,_0xf77e03)=>{const _0x24cd14=_0x49a43c;for(var _0x3bdb30=_0xf77e03>0x1?void 0x0:_0xf77e03?ee(_0x48d557,_0x1bd142):_0x48d557,_0x2fc757=_0x1b0a59[_0x24cd14(0x1d6)]-0x1,_0x671b48;_0x2fc757>=0x0;_0x2fc757--)(_0x671b48=_0x1b0a59[_0x2fc757])&&(_0x3bdb30=(_0xf77e03?_0x671b48(_0x48d557,_0x1bd142,_0x3bdb30):_0x671b48(_0x3bdb30))||_0x3bdb30);return _0xf77e03&&_0x3bdb30&&k(_0x48d557,_0x1bd142,_0x3bdb30),_0x3bdb30;},I=(_0x2040e7,_0x14d6cb)=>(_0x278bb9,_0x3d923e)=>_0x14d6cb(_0x278bb9,_0x3d923e,_0x2040e7);function te(_0x3a5b42,_0x2054ad){const _0x2ad0f3=_0x49a43c,_0x28cb15=_0x3a5b42['replies'][0x0];return{..._0x2054ad,'id':_0x28cb15['replyId'],'resolved':_0x3a5b42[_0x2ad0f3(0x1da)]===0x1,'dT':O(_0x28cb15['createTimestamp']),'personId':_0x28cb15['userId'],'threadId':_0x28cb15[_0x2ad0f3(0x1c4)]};}function se(_0x33556d,_0x577371,_0x5730ea){const _0xd17a4f=_0x49a43c;var _0x41d62d,_0x15004a;if(((_0x15004a=(_0x41d62d=_0x33556d==null?void 0x0:_0x33556d[_0xd17a4f(0x176)])==null?void 0x0:_0x41d62d[_0xd17a4f(0x1d6)])!=null?_0x15004a:0x0)>0x0){const _0x3dd3d4=(_0x5364ac,_0x33f65c)=>({'id':_0x5364ac[_0xd17a4f(0x1d7)],'threadId':_0x5364ac['threadId'],'dT':O(_0x5364ac[_0xd17a4f(0x1b1)]),'personId':_0x5364ac[_0xd17a4f(0x1b7)],'resolved':_0x33556d[_0xd17a4f(0x1da)]===v[_0xd17a4f(0x1ab)],'unitId':_0x577371,'subUnitId':_0x5730ea,'text':JSON[_0xd17a4f(0x1ca)](_0x5364ac[_0xd17a4f(0x1a8)]),'parentId':_0x33f65c}),_0x47459d=_0x3dd3d4(_0x33556d['replies'][0x0]);return{..._0x47459d,'children':_0x33556d['replies'][_0xd17a4f(0x1ad)](0x1)[_0xd17a4f(0x1c0)](_0x153a37=>_0x3dd3d4(_0x153a37,_0x47459d['id']))};}return null;}let S=class{constructor(_0xf7d4bb,_0x12cb1b,_0x1adfac,_0x3a11a4){const _0x55beac=_0x49a43c;this[_0x55beac(0x1db)]=_0xf7d4bb,this[_0x55beac(0x1bb)]=_0x12cb1b,this['_sessionService']=_0x1adfac,this[_0x55beac(0x191)]=_0x3a11a4;}async['addComment'](_0x556818){const _0x179109=_0x49a43c;var _0x4ab0d3,_0x8ebbe7;const {parentId:_0x21a265,unitId:_0x1826ff,text:_0x219fc5,threadId:_0x2cbbb1}=_0x556818,_0x2f0f2e=(_0x8ebbe7=(_0x4ab0d3=_0x219fc5[_0x179109(0x192)])==null?void 0x0:_0x4ab0d3['filter'](_0x26b1a9=>_0x26b1a9[_0x179109(0x1c2)]===_0x29e93f[_0x179109(0x1cd)])[_0x179109(0x1c0)](_0x65aab4=>_0x65aab4[_0x179109(0x186)]))!=null?_0x8ebbe7:[],_0x5d6d63=JSON[_0x179109(0x177)](_0x219fc5),_0x2f92a0=(await this[_0x179109(0x1b4)][_0x179109(0x1a0)](_0x1826ff))['getMemberID']();if(_0x21a265){const _0x33764b={'memberId':_0x2f92a0,'unitId':_0x1826ff,'content':_0x5d6d63,'mention':_0x2f0f2e,'threadId':_0x2cbbb1},_0x455159=(await this['_httpService'][_0x179109(0x18c)](_0x179109(0x17d)+_0x1826ff+_0x179109(0x18f),{'body':_0x33764b}))[_0x179109(0x1c6)]['reply'];return{..._0x556818,'id':_0x455159[_0x179109(0x1d7)],'dT':_0x5828b6(+_0x455159['createTimestamp'])[_0x179109(0x17c)](_0x179109(0x1b5)),'personId':_0x455159[_0x179109(0x1b7)]};}else{const _0xeb0482={'memberId':_0x2f92a0,'unitId':_0x1826ff,'content':_0x5d6d63,'mention':_0x2f0f2e},_0x33f1de=await this[_0x179109(0x1db)][_0x179109(0x18c)](_0x179109(0x17d)+_0x1826ff+_0x179109(0x1d3),{'body':_0xeb0482});return te(_0x33f1de[_0x179109(0x1c6)][_0x179109(0x1d5)],_0x556818);}}async[_0x49a43c(0x178)](_0xf6cbf1){const _0x2152e0=_0x49a43c;var _0x1b5627,_0x49a654;const {text:_0x91e25a,unitId:_0x14d1ea}=_0xf6cbf1,_0x31a615=(_0x49a654=(_0x1b5627=_0x91e25a[_0x2152e0(0x192)])==null?void 0x0:_0x1b5627[_0x2152e0(0x1bf)](_0x358055=>_0x358055['rangeType']===_0x29e93f[_0x2152e0(0x1cd)])[_0x2152e0(0x1c0)](_0x177018=>_0x177018[_0x2152e0(0x186)]))!=null?_0x49a654:[],_0x1c2ed1=JSON[_0x2152e0(0x177)](_0x91e25a),_0x3d3499=_0xf6cbf1[_0x2152e0(0x1c4)],_0x1c476a=_0xf6cbf1['id'],_0x4ef064={'memberId':(await this[_0x2152e0(0x1b4)]['requireSession'](_0x14d1ea))[_0x2152e0(0x196)](),'unitId':_0x14d1ea,'threadId':_0x3d3499,'mention':_0x31a615,'content':_0x1c2ed1,'replyId':_0x1c476a},_0x21002f=await this[_0x2152e0(0x1db)][_0x2152e0(0x18c)]('/universer-api/comment/unit/'+_0x14d1ea+_0x2152e0(0x1b6),{'body':_0x4ef064});return!_0x21002f[_0x2152e0(0x1c6)][_0x2152e0(0x18a)]||_0x21002f['body'][_0x2152e0(0x18a)][_0x2152e0(0x1c8)]===0x1;}async[_0x49a43c(0x197)](_0x4b8d2e){const _0x54314d=_0x49a43c,{unitId:_0xee532e}=_0x4b8d2e,_0x19dc57=_0x4b8d2e[_0x54314d(0x1c4)],_0x102427={'memberId':this[_0x54314d(0x1bb)][_0x54314d(0x1a4)]()[_0x54314d(0x180)],'unitId':_0xee532e,'threadId':_0x19dc57,'solved':_0x4b8d2e[_0x54314d(0x1bd)]?v[_0x54314d(0x1ab)]:v['OpenOrReOpen']},_0x28c23a=await this[_0x54314d(0x1db)][_0x54314d(0x18c)](_0x54314d(0x17d)+_0xee532e+'/solved',{'body':_0x102427});return!_0x28c23a[_0x54314d(0x1c6)][_0x54314d(0x18a)]||_0x28c23a[_0x54314d(0x1c6)]['error']['code']===0x1;}async['deleteComment'](_0x3fb400,_0x3d85f9,_0x5776d5,_0x25ef5b){const _0x16a5a0=_0x49a43c,_0x2d7cb1={'memberId':(await this[_0x16a5a0(0x1b4)][_0x16a5a0(0x1a0)](_0x3fb400))[_0x16a5a0(0x196)](),'threadId':_0x5776d5,'replyId':_0x25ef5b,'unitId':_0x3fb400},_0x29abd3=await this[_0x16a5a0(0x1db)]['post']('/universer-api/comment/unit/'+_0x3fb400+_0x16a5a0(0x1d2),{'body':_0x2d7cb1});return!_0x29abd3[_0x16a5a0(0x1c6)]['error']||_0x29abd3[_0x16a5a0(0x1c6)][_0x16a5a0(0x18a)]['code']===0x1;}async[_0x49a43c(0x181)](_0x3260e0,_0x3eb225,_0x307497){const _0x23f259=_0x49a43c,_0x34e3e1={'unitId':_0x3260e0,'threadId':_0x307497},_0x14ae4a=await this[_0x23f259(0x1db)][_0x23f259(0x18c)](_0x23f259(0x17d)+_0x3260e0+_0x23f259(0x198),{'body':_0x34e3e1}),_0xdd7049=_0x307497[_0x23f259(0x1c0)](_0x5a137d=>se(_0x14ae4a[_0x23f259(0x1c6)][_0x23f259(0x188)][_0x5a137d],_0x3260e0,_0x3eb225))['filter'](Boolean);return Object['values'](_0x14ae4a[_0x23f259(0x1c6)][_0x23f259(0x1c5)])['forEach'](_0x176f84=>{const _0x52358f=_0x23f259;this[_0x52358f(0x1bb)][_0x52358f(0x199)](_0x176f84);}),_0xdd7049;}['saveCommentToSnapshot'](_0x5a78f9){const _0x549115=_0x49a43c;return{'id':_0x5a78f9['id'],'threadId':_0x5a78f9[_0x549115(0x1c4)],'ref':_0x5a78f9[_0x549115(0x1b8)]};}};S=re([I(0x0,_0x1ece54(_0x2731d6)),I(0x1,_0x1ece54(_0x21a274)),I(0x2,_0x1ece54(_0x46fd22)),I(0x3,_0x1ece54(_0x2e703f))],S);var oe=Object[_0x49a43c(0x1a2)],ne=Object[_0x49a43c(0x1c1)],ie=(_0x5a4fdb,_0x3b3ef7,_0x3a2d4f,_0x29fc71)=>{const _0x34feb=_0x49a43c;for(var _0x2bdc18=_0x29fc71>0x1?void 0x0:_0x29fc71?ne(_0x3b3ef7,_0x3a2d4f):_0x3b3ef7,_0x3a8f07=_0x5a4fdb[_0x34feb(0x1d6)]-0x1,_0x5e4979;_0x3a8f07>=0x0;_0x3a8f07--)(_0x5e4979=_0x5a4fdb[_0x3a8f07])&&(_0x2bdc18=(_0x29fc71?_0x5e4979(_0x3b3ef7,_0x3a2d4f,_0x2bdc18):_0x5e4979(_0x2bdc18))||_0x2bdc18);return _0x29fc71&&_0x2bdc18&&oe(_0x3b3ef7,_0x3a2d4f,_0x2bdc18),_0x2bdc18;},M=(_0x54978c,_0x36ded4)=>(_0x2e0ec2,_0x1fcfd3)=>_0x36ded4(_0x2e0ec2,_0x1fcfd3,_0x54978c);let b=class extends _0x2599c0{constructor(_0x50c7b7,_0x4f6eaf){const _0x3cc4b1=_0x49a43c;super(),this['_threadCommentDataSourceService']=_0x50c7b7,this[_0x3cc4b1(0x18d)]=_0x4f6eaf,this[_0x3cc4b1(0x17a)]();}[_0x49a43c(0x17a)](){const _0x8165da=_0x49a43c;this[_0x8165da(0x185)][_0x8165da(0x1ce)]=this[_0x8165da(0x18d)],this[_0x8165da(0x185)]['syncUpdateMutationToColla']=!0x1;}};b=ie([M(0x0,_0x5c11c1),M(0x1,_0x1ece54(S))],b);var $=Object[_0x49a43c(0x1a2)],ce=Object['getOwnPropertyDescriptor'],ae=(_0x3602d0,_0x5e1c6a,_0x425c24)=>_0x5e1c6a in _0x3602d0?$(_0x3602d0,_0x5e1c6a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425c24}):_0x3602d0[_0x5e1c6a]=_0x425c24,de=(_0xb86562,_0xe24f36,_0x109451,_0x4279e2)=>{const _0xd17deb=_0x49a43c;for(var _0x5bc738=_0x4279e2>0x1?void 0x0:_0x4279e2?ce(_0xe24f36,_0x109451):_0xe24f36,_0x3ab4f6=_0xb86562[_0xd17deb(0x1d6)]-0x1,_0x20290a;_0x3ab4f6>=0x0;_0x3ab4f6--)(_0x20290a=_0xb86562[_0x3ab4f6])&&(_0x5bc738=(_0x4279e2?_0x20290a(_0xe24f36,_0x109451,_0x5bc738):_0x20290a(_0x5bc738))||_0x5bc738);return _0x4279e2&&_0x5bc738&&$(_0xe24f36,_0x109451,_0x5bc738),_0x5bc738;},N=(_0x32242e,_0x2973e0)=>(_0x339dcf,_0x1acc45)=>_0x2973e0(_0x339dcf,_0x1acc45,_0x32242e),j=(_0x385c20,_0x34acf6,_0x28fe6f)=>ae(_0x385c20,typeof _0x34acf6!=_0x49a43c(0x189)?_0x34acf6+'':_0x34acf6,_0x28fe6f);let C=class extends _0x515e41{constructor(_0x5be38a=P,_0x22b334,_0x3bb2f0){const _0x24c639=_0x49a43c;super(),this[_0x24c639(0x19d)]=_0x5be38a,this[_0x24c639(0x191)]=_0x22b334,this[_0x24c639(0x19e)]=_0x3bb2f0;const {..._0x5e4da5}=_0xae27d9({},P,this[_0x24c639(0x19d)]);this['_configService'][_0x24c639(0x1c7)](X,_0x5e4da5);}[_0x49a43c(0x1a6)](){const _0x3c8632=_0x49a43c;[[S],[b],[f]][_0x3c8632(0x194)](_0x5c544a=>{const _0x2d2ca3=_0x3c8632;this[_0x2d2ca3(0x191)][_0x2d2ca3(0x19c)](_0x5c544a);});}[_0x49a43c(0x1cf)](){const _0x2187d2=_0x49a43c;this[_0x2187d2(0x191)][_0x2187d2(0x182)](b),this['_injector']['get'](f);}};j(C,_0x49a43c(0x17b),B),j(C,_0x49a43c(0x1a1),_0x1c4ab6['UNIVER_UNKNOWN']),C=de([_0x2312d9(_0x54a460,_0x192a75,_0x2e972a),N(0x1,_0x1ece54(_0x2e703f)),N(0x2,_0x597de3)],C);export{C as UniverThreadCommentDataSourcePlugin};
|
|
1
|
+
const _0x9df1df=_0x106c;(function(_0x49d5d9,_0x2a02b0){const _0x307cd0=_0x106c,_0x44785a=_0x49d5d9();while(!![]){try{const _0x16ffe4=parseInt(_0x307cd0(0xe9))/0x1*(parseInt(_0x307cd0(0xfb))/0x2)+-parseInt(_0x307cd0(0xbf))/0x3+-parseInt(_0x307cd0(0x105))/0x4+-parseInt(_0x307cd0(0xda))/0x5*(parseInt(_0x307cd0(0x10f))/0x6)+parseInt(_0x307cd0(0x10e))/0x7+parseInt(_0x307cd0(0x110))/0x8*(-parseInt(_0x307cd0(0xc4))/0x9)+parseInt(_0x307cd0(0xd1))/0xa*(parseInt(_0x307cd0(0x102))/0xb);if(_0x16ffe4===_0x2a02b0)break;else _0x44785a['push'](_0x44785a['shift']());}catch(_0xd8b1bd){_0x44785a['push'](_0x44785a['shift']());}}}(_0x2e17,0x63beb));import{CommentService as _0x42e73f,CollaborationSessionService as _0x5ad356,UniverCollaborationClientPlugin as _0x32fd7d}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x38872a}from'@univerjs-pro/license';import{dayjs as _0x50df9a,UserManagerService as _0x33493d,Inject as _0x3bf467,Injector as _0x2301c0,Disposable as _0x1afbe9,CustomRangeType as _0x3b3a61,UniverInstanceType as _0x4e9f4e,DependentOn as _0x3a4097,Plugin as _0x45789f,merge as _0x40a08d,IConfigService as _0x331eec}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x1cb46d}from'@univerjs/thread-comment-ui';function _0x2e17(){const _0x56610b=['2284387FSoaOk','3417618wkQMIB','8248WULCsg','add','addUser','map','COMMENT','format','_injector','listComments','pipe','stringify','userId','_sessionService','/solved','defineProperty','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','size','disposeWithMe','getMemberID','523671HjXfXm','error','ref','root','Reply','4374mCdUaW','code','getUnit','forEach','_commentService','type','Solve','commentUpdate$','/delete','userID','comments','parse','/universer-api/comment/unit/','20JpRIsG','replies','threadId','Solved','post','rangeType','addComment','rangeId','replyId','5vhLqjj','subscribe','getComment','getOwnPropertyDescriptor','_config','resolveComment','_configService','YYYY/MM/DD\x20HH:mm','deleteComment','_userService','content','OpenOrReOpen','/list','getUser','UNIVER_UNKNOWN','21FqItou','length','filter','find','_initUserSync','thread-comment-data-source.config','_initDataSource','solved','users','UNRECOGNIZED','dataSource','Delete','onStarting','onReady','_init','updateComment','unitId','values','16376SUrxUz','parentId','customRanges','/universer-api/user/list','body','Edit','user','7621922ztecHL','_threadCommentDataSourceService','requireSession','921248MTUoQk','_threadCommentModel','createTimestamp','/reply','get','Unknown','slice','_httpService','Add'];_0x2e17=function(){return _0x56610b;};return _0x2e17();}import{ThreadCommentModel as _0x2c2ddd,IThreadCommentDataSourceService as _0x101972}from'@univerjs/thread-comment';import{bufferTime as _0x48021f}from'rxjs';import{HTTPService as _0x3b68ca}from'@univerjs/network';const B=_0x9df1df(0xbb);var _=(_0xbef2b4=>(_0xbef2b4[_0xbef2b4[_0x9df1df(0xe5)]=0x0]=_0x9df1df(0xe5),_0xbef2b4[_0xbef2b4['Solved']=0x1]=_0x9df1df(0xd4),_0xbef2b4[_0xbef2b4[_0x9df1df(0xf2)]=-0x1]=_0x9df1df(0xf2),_0xbef2b4))(_||{}),p=(_0x2ba40c=>(_0x2ba40c[_0x2ba40c[_0x9df1df(0x10a)]=0x0]=_0x9df1df(0x10a),_0x2ba40c[_0x2ba40c['Add']=0x1]=_0x9df1df(0x10d),_0x2ba40c[_0x2ba40c[_0x9df1df(0xc3)]=0x2]=_0x9df1df(0xc3),_0x2ba40c[_0x2ba40c[_0x9df1df(0x100)]=0x3]=_0x9df1df(0x100),_0x2ba40c[_0x2ba40c['Delete']=0x4]=_0x9df1df(0xf4),_0x2ba40c[_0x2ba40c[_0x9df1df(0xca)]=0x5]=_0x9df1df(0xca),_0x2ba40c[_0x2ba40c['UNRECOGNIZED']=-0x1]=_0x9df1df(0xf2),_0x2ba40c))(p||{});const O=_0x1610bd=>_0x50df9a(new Date(+_0x1610bd))[_0x9df1df(0x115)](_0x9df1df(0xe1)),K=async(_0x5364da,_0x571448)=>{const _0xa49e9a=_0x9df1df,_0x499899=_0x5364da[_0xa49e9a(0x109)](_0x33493d),_0x315bf2=_0x5364da['get'](_0x3b68ca);_0x571448[_0xa49e9a(0xc7)](_0x3c046a=>{const _0x483985=_0xa49e9a;_0x499899[_0x483985(0xe7)](_0x3c046a)&&_0x571448['delete'](_0x3c046a);}),_0x571448[_0xa49e9a(0xbc)]&&(await _0x315bf2[_0xa49e9a(0x109)](_0xa49e9a(0xfe),{'params':{'userIDs':[..._0x571448]}}))[_0xa49e9a(0xff)][_0xa49e9a(0xf1)]['forEach'](_0x130582=>{_0x130582&&_0x499899['addUser'](_0x130582);});};var V=Object['defineProperty'],z=Object['getOwnPropertyDescriptor'],Q=(_0x1f966c,_0x18035c,_0x4664d5,_0x5e60b5)=>{for(var _0x4824c9=_0x5e60b5>0x1?void 0x0:_0x5e60b5?z(_0x18035c,_0x4664d5):_0x18035c,_0x39c78f=_0x1f966c['length']-0x1,_0x2d5b8b;_0x39c78f>=0x0;_0x39c78f--)(_0x2d5b8b=_0x1f966c[_0x39c78f])&&(_0x4824c9=(_0x5e60b5?_0x2d5b8b(_0x18035c,_0x4664d5,_0x4824c9):_0x2d5b8b(_0x4824c9))||_0x4824c9);return _0x5e60b5&&_0x4824c9&&V(_0x18035c,_0x4664d5,_0x4824c9),_0x4824c9;},v=(_0x2ef941,_0x32d0b2)=>(_0x4cd84a,_0x3ce620)=>_0x32d0b2(_0x4cd84a,_0x3ce620,_0x2ef941);let I=class extends _0x1afbe9{constructor(_0x5d60e7,_0x56fce5,_0x3130d7,_0x1930d6){const _0x542a46=_0x9df1df;super(),this['_commentService']=_0x5d60e7,this['_threadCommentModel']=_0x56fce5,this[_0x542a46(0xe3)]=_0x3130d7,this[_0x542a46(0x116)]=_0x1930d6,this[_0x542a46(0xf7)](),this[_0x542a46(0xed)]();}[_0x9df1df(0xed)](){const _0x248306=_0x9df1df;this[_0x248306(0xbd)](this[_0x248306(0x106)][_0x248306(0xcb)][_0x248306(0x118)](_0x48021f(0x10))[_0x248306(0xdb)](_0x32e54e=>{const _0x41333c=_0x248306,_0x2c72f6=new Set();_0x32e54e['forEach'](_0x557fed=>{const _0x1bbdca=_0x106c;switch(_0x557fed[_0x1bbdca(0xc9)]){case'add':{const _0x12021d=_0x557fed['payload']['personId'];_0x2c72f6[_0x1bbdca(0x111)](_0x12021d);break;}}}),K(this[_0x41333c(0x116)],_0x2c72f6);}));}[_0x9df1df(0xf7)](){const _0x3a060d=_0x9df1df;this[_0x3a060d(0xbd)](this[_0x3a060d(0xc8)][_0x3a060d(0xcb)]['subscribe'](async _0xa37914=>{const _0x37e4be=_0x3a060d;var _0x50bbfb,_0x250f2c,_0x24762d,_0x579c7d;const _0x582077=(_0x50bbfb=this[_0x37e4be(0x106)][_0x37e4be(0xc6)](_0xa37914[_0x37e4be(0xf9)])[_0x37e4be(0xec)](_0x193d3a=>_0x193d3a['threadId']===_0xa37914[_0x37e4be(0xd3)]))==null?void 0x0:_0x50bbfb['root'];if(!_0x582077)return;const {unitId:_0x6852a,subUnitId:_0x1d422b}=_0x582077;switch(_0xa37914['user']&&this[_0x37e4be(0xe3)][_0x37e4be(0x112)](_0xa37914[_0x37e4be(0x101)]),_0xa37914['type']){case p[_0x37e4be(0x10d)]:break;case p[_0x37e4be(0xc3)]:{this[_0x37e4be(0x106)]['addComment'](_0x6852a,_0x1d422b,{'unitId':_0x6852a,'subUnitId':_0x1d422b,'ref':'','id':_0xa37914[_0x37e4be(0xd9)],'dT':O(+_0xa37914['createTimestamp']),'threadId':_0xa37914['threadId'],'personId':(_0x24762d=(_0x250f2c=_0xa37914[_0x37e4be(0x101)])==null?void 0x0:_0x250f2c[_0x37e4be(0xcd)])!=null?_0x24762d:_0xa37914[_0x37e4be(0x11a)],'text':JSON['parse'](_0xa37914['content']),'parentId':_0x582077['id']});break;}case p[_0x37e4be(0xf4)]:{const _0x5a67f8=this[_0x37e4be(0x106)][_0x37e4be(0xdc)](_0x6852a,_0x1d422b,_0xa37914[_0x37e4be(0xd9)]);_0x5a67f8&&_0x5a67f8[_0x37e4be(0xfc)]&&this[_0x37e4be(0x106)][_0x37e4be(0xe2)](_0x6852a,_0x1d422b,_0xa37914['replyId']);break;}case p['Edit']:{this[_0x37e4be(0x106)][_0x37e4be(0xf8)](_0x6852a,_0x1d422b,{'commentId':_0xa37914['replyId'],'text':JSON[_0x37e4be(0xcf)](_0xa37914['content'])});break;}case p[_0x37e4be(0xca)]:{const _0x49e0a8=(_0x579c7d=this[_0x37e4be(0x106)][_0x37e4be(0xc6)](_0xa37914[_0x37e4be(0xf9)])[_0x37e4be(0xec)](_0x136276=>_0x136276['threadId']===_0xa37914[_0x37e4be(0xd3)]))==null?void 0x0:_0x579c7d[_0x37e4be(0xc2)];_0x49e0a8&&this[_0x37e4be(0x106)][_0x37e4be(0xdf)](_0x6852a,_0x1d422b,_0x49e0a8['id'],_0xa37914[_0x37e4be(0xf0)]===_[_0x37e4be(0xd4)]);break;}}}));}};I=Q([v(0x0,_0x3bf467(_0x42e73f)),v(0x1,_0x3bf467(_0x2c2ddd)),v(0x2,_0x3bf467(_0x33493d)),v(0x3,_0x3bf467(_0x2301c0))],I);const X=_0x9df1df(0xee),P={};var k=Object[_0x9df1df(0xba)],ee=Object[_0x9df1df(0xdd)],re=(_0x44119a,_0x2d4b74,_0x3334d7,_0x222039)=>{const _0x249162=_0x9df1df;for(var _0x2ee480=_0x222039>0x1?void 0x0:_0x222039?ee(_0x2d4b74,_0x3334d7):_0x2d4b74,_0x47b95f=_0x44119a[_0x249162(0xea)]-0x1,_0x2aabb4;_0x47b95f>=0x0;_0x47b95f--)(_0x2aabb4=_0x44119a[_0x47b95f])&&(_0x2ee480=(_0x222039?_0x2aabb4(_0x2d4b74,_0x3334d7,_0x2ee480):_0x2aabb4(_0x2ee480))||_0x2ee480);return _0x222039&&_0x2ee480&&k(_0x2d4b74,_0x3334d7,_0x2ee480),_0x2ee480;},f=(_0x2c639c,_0x220bd2)=>(_0x1c8282,_0x5cc468)=>_0x220bd2(_0x1c8282,_0x5cc468,_0x2c639c);function te(_0x1d54c4,_0x8c6e6b){const _0x4b671a=_0x9df1df,_0x17aa49=_0x1d54c4[_0x4b671a(0xd2)][0x0];return{..._0x8c6e6b,'id':_0x17aa49[_0x4b671a(0xd9)],'resolved':_0x1d54c4[_0x4b671a(0xf0)]===0x1,'dT':O(_0x17aa49[_0x4b671a(0x107)]),'personId':_0x17aa49[_0x4b671a(0x11a)],'threadId':_0x17aa49[_0x4b671a(0xd3)]};}function se(_0x24a098,_0x331e2b,_0x609cba){const _0x116ddd=_0x9df1df;var _0x2bd608,_0x5d3b38;if(((_0x5d3b38=(_0x2bd608=_0x24a098==null?void 0x0:_0x24a098[_0x116ddd(0xd2)])==null?void 0x0:_0x2bd608[_0x116ddd(0xea)])!=null?_0x5d3b38:0x0)>0x0){const _0x5aeb60=(_0x1b7fee,_0x3b5160)=>({'id':_0x1b7fee[_0x116ddd(0xd9)],'threadId':_0x1b7fee['threadId'],'dT':O(_0x1b7fee[_0x116ddd(0x107)]),'personId':_0x1b7fee[_0x116ddd(0x11a)],'resolved':_0x24a098[_0x116ddd(0xf0)]===_[_0x116ddd(0xd4)],'unitId':_0x331e2b,'subUnitId':_0x609cba,'text':JSON['parse'](_0x1b7fee[_0x116ddd(0xe4)]),'parentId':_0x3b5160}),_0x482d31=_0x5aeb60(_0x24a098['replies'][0x0]);return{..._0x482d31,'children':_0x24a098[_0x116ddd(0xd2)][_0x116ddd(0x10b)](0x1)[_0x116ddd(0x113)](_0x307cfe=>_0x5aeb60(_0x307cfe,_0x482d31['id']))};}return null;}let S=class{constructor(_0x5c7eab,_0x19f7e4,_0x202c9f,_0x588aac){const _0x595c23=_0x9df1df;this[_0x595c23(0x10c)]=_0x5c7eab,this[_0x595c23(0xe3)]=_0x19f7e4,this[_0x595c23(0x11b)]=_0x202c9f,this['_injector']=_0x588aac;}async[_0x9df1df(0xd7)](_0xdb6bd3){const _0x4153e8=_0x9df1df;var _0x48067b,_0x3caa56;const {parentId:_0x19fec4,unitId:_0x1d3c1f,text:_0x1ce3cd,threadId:_0xd275a5}=_0xdb6bd3,_0x363f74=(_0x3caa56=(_0x48067b=_0x1ce3cd['customRanges'])==null?void 0x0:_0x48067b[_0x4153e8(0xeb)](_0x184703=>_0x184703[_0x4153e8(0xd6)]===_0x3b3a61[_0x4153e8(0x114)])[_0x4153e8(0x113)](_0x2d17ea=>_0x2d17ea[_0x4153e8(0xd8)]))!=null?_0x3caa56:[],_0x1c048b=JSON['stringify'](_0x1ce3cd),_0x557327=(await this[_0x4153e8(0x11b)][_0x4153e8(0x104)](_0x1d3c1f))[_0x4153e8(0xbe)]();if(_0x19fec4){const _0x54339d={'memberId':_0x557327,'unitId':_0x1d3c1f,'content':_0x1c048b,'mention':_0x363f74,'threadId':_0xd275a5},_0x28d125=(await this[_0x4153e8(0x10c)]['post'](_0x4153e8(0xd0)+_0x1d3c1f+_0x4153e8(0x108),{'body':_0x54339d}))['body']['reply'];return{..._0xdb6bd3,'id':_0x28d125[_0x4153e8(0xd9)],'dT':_0x50df9a(+_0x28d125[_0x4153e8(0x107)])[_0x4153e8(0x115)](_0x4153e8(0xe1)),'personId':_0x28d125[_0x4153e8(0x11a)]};}else{const _0x53663e={'memberId':_0x557327,'unitId':_0x1d3c1f,'content':_0x1c048b,'mention':_0x363f74},_0x37ce3f=await this[_0x4153e8(0x10c)][_0x4153e8(0xd5)](_0x4153e8(0xd0)+_0x1d3c1f+'/add',{'body':_0x53663e});return te(_0x37ce3f[_0x4153e8(0xff)]['comment'],_0xdb6bd3);}}async[_0x9df1df(0xf8)](_0x2007ab){const _0x457154=_0x9df1df;var _0x1a890a,_0x35c1f9;const {text:_0xd5241,unitId:_0xa0260}=_0x2007ab,_0x12dba1=(_0x35c1f9=(_0x1a890a=_0xd5241[_0x457154(0xfd)])==null?void 0x0:_0x1a890a[_0x457154(0xeb)](_0x14502d=>_0x14502d[_0x457154(0xd6)]===_0x3b3a61[_0x457154(0x114)])[_0x457154(0x113)](_0x39ebd2=>_0x39ebd2[_0x457154(0xd8)]))!=null?_0x35c1f9:[],_0x16a4ee=JSON[_0x457154(0x119)](_0xd5241),_0x33d55b=_0x2007ab[_0x457154(0xd3)],_0x5b207f=_0x2007ab['id'],_0x41e8d0={'memberId':(await this[_0x457154(0x11b)][_0x457154(0x104)](_0xa0260))[_0x457154(0xbe)](),'unitId':_0xa0260,'threadId':_0x33d55b,'mention':_0x12dba1,'content':_0x16a4ee,'replyId':_0x5b207f},_0x22f9cf=await this[_0x457154(0x10c)][_0x457154(0xd5)]('/universer-api/comment/unit/'+_0xa0260+'/edit',{'body':_0x41e8d0});return!_0x22f9cf[_0x457154(0xff)][_0x457154(0xc0)]||_0x22f9cf['body'][_0x457154(0xc0)][_0x457154(0xc5)]===0x1;}async['resolveComment'](_0x4621fb){const _0x488641=_0x9df1df,{unitId:_0x563a7b}=_0x4621fb,_0x1d8648=_0x4621fb[_0x488641(0xd3)],_0x4aab3b={'memberId':this[_0x488641(0xe3)]['getCurrentUser']()[_0x488641(0xcd)],'unitId':_0x563a7b,'threadId':_0x1d8648,'solved':_0x4621fb['resolved']?_[_0x488641(0xd4)]:_[_0x488641(0xe5)]},_0x2ca004=await this[_0x488641(0x10c)][_0x488641(0xd5)]('/universer-api/comment/unit/'+_0x563a7b+_0x488641(0x11c),{'body':_0x4aab3b});return!_0x2ca004[_0x488641(0xff)]['error']||_0x2ca004[_0x488641(0xff)][_0x488641(0xc0)][_0x488641(0xc5)]===0x1;}async[_0x9df1df(0xe2)](_0x622d42,_0x5f0498,_0x7267ad,_0x13fbbc){const _0x380354=_0x9df1df,_0x190633={'memberId':(await this[_0x380354(0x11b)][_0x380354(0x104)](_0x622d42))[_0x380354(0xbe)](),'threadId':_0x7267ad,'replyId':_0x13fbbc,'unitId':_0x622d42},_0x536970=await this[_0x380354(0x10c)][_0x380354(0xd5)](_0x380354(0xd0)+_0x622d42+_0x380354(0xcc),{'body':_0x190633});return!_0x536970[_0x380354(0xff)][_0x380354(0xc0)]||_0x536970[_0x380354(0xff)]['error'][_0x380354(0xc5)]===0x1;}async[_0x9df1df(0x117)](_0x3e9c04,_0xe4bce6,_0xd5f534){const _0x54cf2c=_0x9df1df,_0x40b392={'unitId':_0x3e9c04,'threadId':_0xd5f534},_0x391e2e=await this[_0x54cf2c(0x10c)][_0x54cf2c(0xd5)](_0x54cf2c(0xd0)+_0x3e9c04+_0x54cf2c(0xe6),{'body':_0x40b392}),_0x3289b2=_0xd5f534['map'](_0x48b645=>se(_0x391e2e[_0x54cf2c(0xff)][_0x54cf2c(0xce)][_0x48b645],_0x3e9c04,_0xe4bce6))[_0x54cf2c(0xeb)](Boolean);return Object[_0x54cf2c(0xfa)](_0x391e2e['body'][_0x54cf2c(0xf1)])['forEach'](_0x16e46b=>{const _0x45378d=_0x54cf2c;this['_userService'][_0x45378d(0x112)](_0x16e46b);}),_0x3289b2;}['saveCommentToSnapshot'](_0x42526b){const _0x473db5=_0x9df1df;return{'id':_0x42526b['id'],'threadId':_0x42526b['threadId'],'ref':_0x42526b[_0x473db5(0xc1)]};}};S=re([f(0x0,_0x3bf467(_0x3b68ca)),f(0x1,_0x3bf467(_0x33493d)),f(0x2,_0x3bf467(_0x5ad356)),f(0x3,_0x3bf467(_0x2301c0))],S);function _0x106c(_0x1a0c17,_0x5b8165){const _0x2e177b=_0x2e17();return _0x106c=function(_0x106c01,_0x2e63e0){_0x106c01=_0x106c01-0xba;let _0x4267c0=_0x2e177b[_0x106c01];return _0x4267c0;},_0x106c(_0x1a0c17,_0x5b8165);}var oe=Object[_0x9df1df(0xba)],ne=Object[_0x9df1df(0xdd)],ie=(_0x15650e,_0x34d815,_0x631a04,_0xd1400e)=>{for(var _0x56f61d=_0xd1400e>0x1?void 0x0:_0xd1400e?ne(_0x34d815,_0x631a04):_0x34d815,_0xc70a48=_0x15650e['length']-0x1,_0x214700;_0xc70a48>=0x0;_0xc70a48--)(_0x214700=_0x15650e[_0xc70a48])&&(_0x56f61d=(_0xd1400e?_0x214700(_0x34d815,_0x631a04,_0x56f61d):_0x214700(_0x56f61d))||_0x56f61d);return _0xd1400e&&_0x56f61d&&oe(_0x34d815,_0x631a04,_0x56f61d),_0x56f61d;},M=(_0x17e75d,_0x51c5c8)=>(_0x98f29a,_0xe8fb84)=>_0x51c5c8(_0x98f29a,_0xe8fb84,_0x17e75d);let b=class extends _0x1afbe9{constructor(_0x4e26f0,_0x2700cd){const _0x303a49=_0x9df1df;super(),this[_0x303a49(0x103)]=_0x4e26f0,this['_threadCommentDataSource']=_0x2700cd,this[_0x303a49(0xef)]();}['_initDataSource'](){const _0x1fb537=_0x9df1df;this[_0x1fb537(0x103)][_0x1fb537(0xf3)]=this['_threadCommentDataSource'],this[_0x1fb537(0x103)]['syncUpdateMutationToColla']=!0x1;}};b=ie([M(0x0,_0x101972),M(0x1,_0x3bf467(S))],b);var $=Object[_0x9df1df(0xba)],ce=Object['getOwnPropertyDescriptor'],ae=(_0x2237ec,_0x19a1e4,_0x6fe45d)=>_0x19a1e4 in _0x2237ec?$(_0x2237ec,_0x19a1e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6fe45d}):_0x2237ec[_0x19a1e4]=_0x6fe45d,de=(_0x3a5836,_0x1d14c3,_0x64b526,_0x2e8864)=>{for(var _0x57a211=_0x2e8864>0x1?void 0x0:_0x2e8864?ce(_0x1d14c3,_0x64b526):_0x1d14c3,_0x388e25=_0x3a5836['length']-0x1,_0x44821d;_0x388e25>=0x0;_0x388e25--)(_0x44821d=_0x3a5836[_0x388e25])&&(_0x57a211=(_0x2e8864?_0x44821d(_0x1d14c3,_0x64b526,_0x57a211):_0x44821d(_0x57a211))||_0x57a211);return _0x2e8864&&_0x57a211&&$(_0x1d14c3,_0x64b526,_0x57a211),_0x57a211;},N=(_0x4c420f,_0x19473a)=>(_0x2065af,_0x4220c1)=>_0x19473a(_0x2065af,_0x4220c1,_0x4c420f),j=(_0xd717e3,_0x34bec7,_0x489a3b)=>ae(_0xd717e3,typeof _0x34bec7!='symbol'?_0x34bec7+'':_0x34bec7,_0x489a3b);let C=class extends _0x45789f{constructor(_0x3dd79b=P,_0x2e1f7e,_0x2ec391){const _0x37f99c=_0x9df1df;super(),this[_0x37f99c(0xde)]=_0x3dd79b,this['_injector']=_0x2e1f7e,this['_configService']=_0x2ec391;const {..._0x37a3f9}=_0x40a08d({},P,this[_0x37f99c(0xde)]);this[_0x37f99c(0xe0)]['setConfig'](X,_0x37a3f9);}[_0x9df1df(0xf5)](){[[S],[b],[I]]['forEach'](_0x37a568=>{const _0xf84103=_0x106c;this[_0xf84103(0x116)][_0xf84103(0x111)](_0x37a568);});}[_0x9df1df(0xf6)](){const _0x580139=_0x9df1df;this['_injector'][_0x580139(0x109)](b),this[_0x580139(0x116)]['get'](I);}};j(C,'pluginName',B),j(C,_0x9df1df(0xc9),_0x4e9f4e[_0x9df1df(0xe8)]),C=de([_0x3a4097(_0x1cb46d,_0x32fd7d,_0x38872a),N(0x1,_0x3bf467(_0x2301c0)),N(0x2,_0x331eec)],C);export{C as UniverThreadCommentDataSourcePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4cd3b6,_0x3f975b){const _0xa4281e=_0x213f,_0x20792d=_0x4cd3b6();while(!![]){try{const _0x4d072e=-parseInt(_0xa4281e(0x76))/0x1+-parseInt(_0xa4281e(0xe5))/0x2*(-parseInt(_0xa4281e(0xda))/0x3)+-parseInt(_0xa4281e(0xc0))/0x4+parseInt(_0xa4281e(0xb6))/0x5*(-parseInt(_0xa4281e(0xe1))/0x6)+parseInt(_0xa4281e(0xee))/0x7*(parseInt(_0xa4281e(0xef))/0x8)+parseInt(_0xa4281e(0xbf))/0x9*(-parseInt(_0xa4281e(0x9d))/0xa)+parseInt(_0xa4281e(0x84))/0xb;if(_0x4d072e===_0x3f975b)break;else _0x20792d['push'](_0x20792d['shift']());}catch(_0x426c30){_0x20792d['push'](_0x20792d['shift']());}}}(_0x1617,0xd5dab),function(_0x143190,_0x350d64){const _0x3780ad=_0x213f;typeof exports==_0x3780ad(0xc9)&&typeof module<'u'?_0x350d64(exports,require(_0x3780ad(0xe0)),require(_0x3780ad(0xb2)),require('@univerjs/core'),require(_0x3780ad(0xca)),require(_0x3780ad(0xdd)),require(_0x3780ad(0xeb)),require(_0x3780ad(0x8f))):typeof define==_0x3780ad(0xb0)&&define[_0x3780ad(0xe4)]?define(['exports',_0x3780ad(0xe0),_0x3780ad(0xb2),_0x3780ad(0x73),_0x3780ad(0xca),_0x3780ad(0xdd),'rxjs',_0x3780ad(0x8f)],_0x350d64):(_0x143190=typeof globalThis<'u'?globalThis:_0x143190||self,_0x350d64(_0x143190['UniverProThreadCommentDatasource']={},_0x143190['UniverProCollaborationClient'],_0x143190[_0x3780ad(0x7e)],_0x143190[_0x3780ad(0xa8)],_0x143190[_0x3780ad(0x79)],_0x143190['UniverThreadComment'],_0x143190[_0x3780ad(0xeb)],_0x143190[_0x3780ad(0x6f)]));}(this,function(_0x906bb0,_0x1202b0,_0x476a94,_0x3363e0,_0x568744,_0x3c9c3d,_0x1eb0da,_0x105fba){'use strict';const _0x4e7149=_0x213f;const _0x21bea2=_0x4e7149(0x88);var _0x599247=(_0x4d5c80=>(_0x4d5c80[_0x4d5c80['OpenOrReOpen']=0x0]=_0x4e7149(0xd1),_0x4d5c80[_0x4d5c80['Solved']=0x1]='Solved',_0x4d5c80[_0x4d5c80[_0x4e7149(0x9f)]=-0x1]=_0x4e7149(0x9f),_0x4d5c80))(_0x599247||{}),_0x19d9b7=(_0x53bfb2=>(_0x53bfb2[_0x53bfb2['Unknown']=0x0]=_0x4e7149(0xd2),_0x53bfb2[_0x53bfb2[_0x4e7149(0xa6)]=0x1]=_0x4e7149(0xa6),_0x53bfb2[_0x53bfb2[_0x4e7149(0xf4)]=0x2]=_0x4e7149(0xf4),_0x53bfb2[_0x53bfb2['Edit']=0x3]=_0x4e7149(0x95),_0x53bfb2[_0x53bfb2[_0x4e7149(0xcc)]=0x4]='Delete',_0x53bfb2[_0x53bfb2['Solve']=0x5]=_0x4e7149(0xbc),_0x53bfb2[_0x53bfb2[_0x4e7149(0x9f)]=-0x1]=_0x4e7149(0x9f),_0x53bfb2))(_0x19d9b7||{});const _0x466a5e=_0x38e131=>_0x3363e0[_0x4e7149(0xa4)](new Date(+_0x38e131))[_0x4e7149(0xf1)](_0x4e7149(0x9b)),_0x19dd50=async(_0x5c6eaf,_0xd3265e)=>{const _0x53d97f=_0x4e7149,_0x1e3210=_0x5c6eaf[_0x53d97f(0xed)](_0x3363e0[_0x53d97f(0x83)]),_0x37e3e7=_0x5c6eaf[_0x53d97f(0xed)](_0x105fba[_0x53d97f(0xbe)]);_0xd3265e[_0x53d97f(0xb3)](_0x4d383e=>{const _0x5cdfef=_0x53d97f;_0x1e3210[_0x5cdfef(0xac)](_0x4d383e)&&_0xd3265e['delete'](_0x4d383e);}),_0xd3265e[_0x53d97f(0xa0)]&&(await _0x37e3e7[_0x53d97f(0xed)](_0x53d97f(0xec),{'params':{'userIDs':[..._0xd3265e]}}))[_0x53d97f(0xdb)][_0x53d97f(0xbd)][_0x53d97f(0xb3)](_0x4db59d=>{const _0x1136ab=_0x53d97f;_0x4db59d&&_0x1e3210[_0x1136ab(0xa2)](_0x4db59d);});};var _0x610164=Object[_0x4e7149(0x7a)],_0x3d4ae4=Object['getOwnPropertyDescriptor'],_0xfe6d8e=(_0x47c934,_0x257235,_0x1811e4,_0x55ea35)=>{for(var _0x5584cd=_0x55ea35>0x1?void 0x0:_0x55ea35?_0x3d4ae4(_0x257235,_0x1811e4):_0x257235,_0x568dad=_0x47c934['length']-0x1,_0x50c403;_0x568dad>=0x0;_0x568dad--)(_0x50c403=_0x47c934[_0x568dad])&&(_0x5584cd=(_0x55ea35?_0x50c403(_0x257235,_0x1811e4,_0x5584cd):_0x50c403(_0x5584cd))||_0x5584cd);return _0x55ea35&&_0x5584cd&&_0x610164(_0x257235,_0x1811e4,_0x5584cd),_0x5584cd;},_0x56dfda=(_0x1f9a47,_0x4d8fcc)=>(_0xf5ea69,_0xcfafdc)=>_0x4d8fcc(_0xf5ea69,_0xcfafdc,_0x1f9a47);let _0x50b6c4=class extends _0x3363e0[_0x4e7149(0x87)]{constructor(_0x51383a,_0x3eb54c,_0x53b7c3,_0x2cd9f9){const _0x4e8296=_0x4e7149;super(),this['_commentService']=_0x51383a,this[_0x4e8296(0xde)]=_0x3eb54c,this[_0x4e8296(0xf6)]=_0x53b7c3,this[_0x4e8296(0xf2)]=_0x2cd9f9,this[_0x4e8296(0xad)](),this[_0x4e8296(0x7f)]();}[_0x4e7149(0x7f)](){const _0x13adec=_0x4e7149;this[_0x13adec(0x80)](this[_0x13adec(0xde)][_0x13adec(0xd7)][_0x13adec(0xc2)](_0x1eb0da[_0x13adec(0x99)](0x10))[_0x13adec(0xdc)](_0x293f1e=>{const _0x4a004a=_0x13adec,_0x5680a4=new Set();_0x293f1e[_0x4a004a(0xb3)](_0x145bca=>{const _0xd26635=_0x4a004a;switch(_0x145bca[_0xd26635(0xc1)]){case _0xd26635(0xe7):{const _0x11f0ad=_0x145bca['payload'][_0xd26635(0xf3)];_0x5680a4['add'](_0x11f0ad);break;}}}),_0x19dd50(this[_0x4a004a(0xf2)],_0x5680a4);}));}[_0x4e7149(0xad)](){const _0x1e7eab=_0x4e7149;this[_0x1e7eab(0x80)](this[_0x1e7eab(0x98)][_0x1e7eab(0xd7)][_0x1e7eab(0xdc)](async _0x3497bd=>{const _0x370539=_0x1e7eab;var _0x2e5f6b,_0x378fe8,_0x386b3b,_0x4e683c;const _0x17cf09=(_0x2e5f6b=this[_0x370539(0xde)][_0x370539(0x81)](_0x3497bd[_0x370539(0xc7)])[_0x370539(0xd6)](_0x44a6dd=>_0x44a6dd[_0x370539(0x71)]===_0x3497bd[_0x370539(0x71)]))==null?void 0x0:_0x2e5f6b[_0x370539(0xe6)];if(!_0x17cf09)return;const {unitId:_0x588bdd,subUnitId:_0x496a6d}=_0x17cf09;switch(_0x3497bd['user']&&this[_0x370539(0xf6)][_0x370539(0xa2)](_0x3497bd[_0x370539(0xc4)]),_0x3497bd[_0x370539(0xc1)]){case _0x19d9b7[_0x370539(0xa6)]:break;case _0x19d9b7['Reply']:{this['_threadCommentModel']['addComment'](_0x588bdd,_0x496a6d,{'unitId':_0x588bdd,'subUnitId':_0x496a6d,'ref':'','id':_0x3497bd[_0x370539(0xd9)],'dT':_0x466a5e(+_0x3497bd['createTimestamp']),'threadId':_0x3497bd[_0x370539(0x71)],'personId':(_0x386b3b=(_0x378fe8=_0x3497bd[_0x370539(0xc4)])==null?void 0x0:_0x378fe8[_0x370539(0xaf)])!=null?_0x386b3b:_0x3497bd[_0x370539(0x8d)],'text':JSON[_0x370539(0xd8)](_0x3497bd[_0x370539(0xf0)]),'parentId':_0x17cf09['id']});break;}case _0x19d9b7['Delete']:{const _0x173d4b=this[_0x370539(0xde)][_0x370539(0xbb)](_0x588bdd,_0x496a6d,_0x3497bd['replyId']);_0x173d4b&&_0x173d4b['parentId']&&this[_0x370539(0xde)][_0x370539(0xd5)](_0x588bdd,_0x496a6d,_0x3497bd[_0x370539(0xd9)]);break;}case _0x19d9b7['Edit']:{this[_0x370539(0xde)][_0x370539(0x82)](_0x588bdd,_0x496a6d,{'commentId':_0x3497bd['replyId'],'text':JSON[_0x370539(0xd8)](_0x3497bd[_0x370539(0xf0)])});break;}case _0x19d9b7[_0x370539(0xbc)]:{const _0xbec286=(_0x4e683c=this['_threadCommentModel']['getUnit'](_0x3497bd[_0x370539(0xc7)])['find'](_0x54b66d=>_0x54b66d[_0x370539(0x71)]===_0x3497bd[_0x370539(0x71)]))==null?void 0x0:_0x4e683c['root'];_0xbec286&&this[_0x370539(0xde)][_0x370539(0xba)](_0x588bdd,_0x496a6d,_0xbec286['id'],_0x3497bd['solved']===_0x599247[_0x370539(0xc6)]);break;}}}));}};_0x50b6c4=_0xfe6d8e([_0x56dfda(0x0,_0x3363e0[_0x4e7149(0x8b)](_0x1202b0[_0x4e7149(0xcf)])),_0x56dfda(0x1,_0x3363e0['Inject'](_0x3c9c3d[_0x4e7149(0x78)])),_0x56dfda(0x2,_0x3363e0[_0x4e7149(0x8b)](_0x3363e0[_0x4e7149(0x83)])),_0x56dfda(0x3,_0x3363e0['Inject'](_0x3363e0['Injector']))],_0x50b6c4);const _0x98f3e2=_0x4e7149(0xc3),_0x1dec57={};var _0x348dc1=Object[_0x4e7149(0x7a)],_0x45bc84=Object[_0x4e7149(0xa9)],_0x47d8b7=(_0x350bbd,_0x51caed,_0x1f5c57,_0x4b4f2e)=>{const _0x24f59d=_0x4e7149;for(var _0x3d264f=_0x4b4f2e>0x1?void 0x0:_0x4b4f2e?_0x45bc84(_0x51caed,_0x1f5c57):_0x51caed,_0x261c4b=_0x350bbd[_0x24f59d(0xe2)]-0x1,_0x3ebf43;_0x261c4b>=0x0;_0x261c4b--)(_0x3ebf43=_0x350bbd[_0x261c4b])&&(_0x3d264f=(_0x4b4f2e?_0x3ebf43(_0x51caed,_0x1f5c57,_0x3d264f):_0x3ebf43(_0x3d264f))||_0x3d264f);return _0x4b4f2e&&_0x3d264f&&_0x348dc1(_0x51caed,_0x1f5c57,_0x3d264f),_0x3d264f;},_0x944bf6=(_0x3af492,_0x4f6d26)=>(_0x309247,_0x4214b6)=>_0x4f6d26(_0x309247,_0x4214b6,_0x3af492);function _0x52021a(_0x19fdec,_0x3ad294){const _0x2fe4a9=_0x4e7149,_0x705876=_0x19fdec[_0x2fe4a9(0x93)][0x0];return{..._0x3ad294,'id':_0x705876[_0x2fe4a9(0xd9)],'resolved':_0x19fdec[_0x2fe4a9(0xa7)]===0x1,'dT':_0x466a5e(_0x705876[_0x2fe4a9(0xd4)]),'personId':_0x705876[_0x2fe4a9(0x8d)],'threadId':_0x705876[_0x2fe4a9(0x71)]};}function _0x446a4d(_0x503c5b,_0x5c8d04,_0x4ed96f){const _0x3c8307=_0x4e7149;var _0x271034,_0xe0fb38;if(((_0xe0fb38=(_0x271034=_0x503c5b==null?void 0x0:_0x503c5b[_0x3c8307(0x93)])==null?void 0x0:_0x271034['length'])!=null?_0xe0fb38:0x0)>0x0){const _0x42fd73=(_0x2a2993,_0x389507)=>({'id':_0x2a2993[_0x3c8307(0xd9)],'threadId':_0x2a2993['threadId'],'dT':_0x466a5e(_0x2a2993['createTimestamp']),'personId':_0x2a2993[_0x3c8307(0x8d)],'resolved':_0x503c5b[_0x3c8307(0xa7)]===_0x599247[_0x3c8307(0xc6)],'unitId':_0x5c8d04,'subUnitId':_0x4ed96f,'text':JSON['parse'](_0x2a2993[_0x3c8307(0xf0)]),'parentId':_0x389507}),_0x3d1b56=_0x42fd73(_0x503c5b['replies'][0x0]);return{..._0x3d1b56,'children':_0x503c5b[_0x3c8307(0x93)][_0x3c8307(0xdf)](0x1)[_0x3c8307(0xe8)](_0x2b8c7a=>_0x42fd73(_0x2b8c7a,_0x3d1b56['id']))};}return null;}let _0x3e1d45=class{constructor(_0x5775e9,_0x51e769,_0x516a74,_0x5238ee){const _0x2c046c=_0x4e7149;this['_httpService']=_0x5775e9,this[_0x2c046c(0xf6)]=_0x51e769,this[_0x2c046c(0xf7)]=_0x516a74,this[_0x2c046c(0xf2)]=_0x5238ee;}async[_0x4e7149(0x72)](_0x16c277){const _0x463303=_0x4e7149;var _0x1a5ed0,_0x21dfca;const {parentId:_0x411f2f,unitId:_0x12f337,text:_0x328e7a,threadId:_0x11eb62}=_0x16c277,_0xb98e86=(_0x21dfca=(_0x1a5ed0=_0x328e7a[_0x463303(0x8c)])==null?void 0x0:_0x1a5ed0[_0x463303(0xce)](_0x4819c4=>_0x4819c4[_0x463303(0x91)]===_0x3363e0[_0x463303(0xa1)]['COMMENT'])[_0x463303(0xe8)](_0x4631dc=>_0x4631dc['rangeId']))!=null?_0x21dfca:[],_0x34b2bd=JSON['stringify'](_0x328e7a),_0x26e4bc=(await this['_sessionService'][_0x463303(0x9c)](_0x12f337))['getMemberID']();if(_0x411f2f){const _0xc04984={'memberId':_0x26e4bc,'unitId':_0x12f337,'content':_0x34b2bd,'mention':_0xb98e86,'threadId':_0x11eb62},_0x3d04b4=(await this['_httpService'][_0x463303(0xab)](_0x463303(0x8a)+_0x12f337+'/reply',{'body':_0xc04984}))['body'][_0x463303(0xb9)];return{..._0x16c277,'id':_0x3d04b4[_0x463303(0xd9)],'dT':_0x3363e0[_0x463303(0xa4)](+_0x3d04b4[_0x463303(0xd4)])[_0x463303(0xf1)](_0x463303(0x9b)),'personId':_0x3d04b4[_0x463303(0x8d)]};}else{const _0x12dbec={'memberId':_0x26e4bc,'unitId':_0x12f337,'content':_0x34b2bd,'mention':_0xb98e86},_0x56e251=await this[_0x463303(0x90)]['post'](_0x463303(0x8a)+_0x12f337+_0x463303(0x97),{'body':_0x12dbec});return _0x52021a(_0x56e251[_0x463303(0xdb)]['comment'],_0x16c277);}}async[_0x4e7149(0x82)](_0x1ff25c){const _0x40b611=_0x4e7149;var _0x51eff6,_0x2d33ec;const {text:_0x4edba3,unitId:_0x432e56}=_0x1ff25c,_0x55bfaf=(_0x2d33ec=(_0x51eff6=_0x4edba3['customRanges'])==null?void 0x0:_0x51eff6[_0x40b611(0xce)](_0x32ea85=>_0x32ea85['rangeType']===_0x3363e0[_0x40b611(0xa1)]['COMMENT'])['map'](_0x2c11e4=>_0x2c11e4[_0x40b611(0xa3)]))!=null?_0x2d33ec:[],_0x37d7be=JSON[_0x40b611(0x74)](_0x4edba3),_0x2e9949=_0x1ff25c[_0x40b611(0x71)],_0x5f59f6=_0x1ff25c['id'],_0x467739={'memberId':(await this[_0x40b611(0xf7)][_0x40b611(0x9c)](_0x432e56))[_0x40b611(0xb8)](),'unitId':_0x432e56,'threadId':_0x2e9949,'mention':_0x55bfaf,'content':_0x37d7be,'replyId':_0x5f59f6},_0x2f7a29=await this[_0x40b611(0x90)][_0x40b611(0xab)]('/universer-api/comment/unit/'+_0x432e56+_0x40b611(0x7c),{'body':_0x467739});return!_0x2f7a29[_0x40b611(0xdb)]['error']||_0x2f7a29[_0x40b611(0xdb)][_0x40b611(0xc8)][_0x40b611(0x9e)]===0x1;}async[_0x4e7149(0xba)](_0x55d43a){const _0x3920fd=_0x4e7149,{unitId:_0xb64024}=_0x55d43a,_0x5b9eb0=_0x55d43a[_0x3920fd(0x71)],_0xd722cc={'memberId':this[_0x3920fd(0xf6)]['getCurrentUser']()[_0x3920fd(0xaf)],'unitId':_0xb64024,'threadId':_0x5b9eb0,'solved':_0x55d43a[_0x3920fd(0xb5)]?_0x599247[_0x3920fd(0xc6)]:_0x599247['OpenOrReOpen']},_0xbe909c=await this[_0x3920fd(0x90)][_0x3920fd(0xab)](_0x3920fd(0x8a)+_0xb64024+'/solved',{'body':_0xd722cc});return!_0xbe909c[_0x3920fd(0xdb)]['error']||_0xbe909c[_0x3920fd(0xdb)][_0x3920fd(0xc8)][_0x3920fd(0x9e)]===0x1;}async[_0x4e7149(0xd5)](_0x3aa07f,_0x147caa,_0x429acc,_0x8cf7ae){const _0x3e1f43=_0x4e7149,_0x93f5b0={'memberId':(await this[_0x3e1f43(0xf7)][_0x3e1f43(0x9c)](_0x3aa07f))['getMemberID'](),'threadId':_0x429acc,'replyId':_0x8cf7ae,'unitId':_0x3aa07f},_0x3f3c7b=await this['_httpService'][_0x3e1f43(0xab)]('/universer-api/comment/unit/'+_0x3aa07f+'/delete',{'body':_0x93f5b0});return!_0x3f3c7b[_0x3e1f43(0xdb)]['error']||_0x3f3c7b['body'][_0x3e1f43(0xc8)][_0x3e1f43(0x9e)]===0x1;}async[_0x4e7149(0xcb)](_0x1f9581,_0x1273ae,_0x5d92de){const _0x22a0a9=_0x4e7149,_0x2b6dac={'unitId':_0x1f9581,'threadId':_0x5d92de},_0x1f7d4e=await this[_0x22a0a9(0x90)][_0x22a0a9(0xab)](_0x22a0a9(0x8a)+_0x1f9581+_0x22a0a9(0x96),{'body':_0x2b6dac}),_0x297fa5=_0x5d92de[_0x22a0a9(0xe8)](_0x346dc1=>_0x446a4d(_0x1f7d4e[_0x22a0a9(0xdb)]['comments'][_0x346dc1],_0x1f9581,_0x1273ae))[_0x22a0a9(0xce)](Boolean);return Object[_0x22a0a9(0x89)](_0x1f7d4e['body'][_0x22a0a9(0xbd)])[_0x22a0a9(0xb3)](_0x4c5c32=>{const _0x408b95=_0x22a0a9;this[_0x408b95(0xf6)][_0x408b95(0xa2)](_0x4c5c32);}),_0x297fa5;}['saveCommentToSnapshot'](_0x58dd14){const _0x45bd3d=_0x4e7149;return{'id':_0x58dd14['id'],'threadId':_0x58dd14[_0x45bd3d(0x71)],'ref':_0x58dd14[_0x45bd3d(0x9a)]};}};_0x3e1d45=_0x47d8b7([_0x944bf6(0x0,_0x3363e0['Inject'](_0x105fba[_0x4e7149(0xbe)])),_0x944bf6(0x1,_0x3363e0[_0x4e7149(0x8b)](_0x3363e0[_0x4e7149(0x83)])),_0x944bf6(0x2,_0x3363e0['Inject'](_0x1202b0['CollaborationSessionService'])),_0x944bf6(0x3,_0x3363e0[_0x4e7149(0x8b)](_0x3363e0['Injector']))],_0x3e1d45);var _0x1c1754=Object[_0x4e7149(0x7a)],_0x264766=Object['getOwnPropertyDescriptor'],_0x318fe1=(_0x197883,_0x3ca6cd,_0x1a5dd3,_0x447690)=>{const _0x98e7ca=_0x4e7149;for(var _0x337a0d=_0x447690>0x1?void 0x0:_0x447690?_0x264766(_0x3ca6cd,_0x1a5dd3):_0x3ca6cd,_0x506523=_0x197883[_0x98e7ca(0xe2)]-0x1,_0x6a904;_0x506523>=0x0;_0x506523--)(_0x6a904=_0x197883[_0x506523])&&(_0x337a0d=(_0x447690?_0x6a904(_0x3ca6cd,_0x1a5dd3,_0x337a0d):_0x6a904(_0x337a0d))||_0x337a0d);return _0x447690&&_0x337a0d&&_0x1c1754(_0x3ca6cd,_0x1a5dd3,_0x337a0d),_0x337a0d;},_0x2657f4=(_0x34bd90,_0x7e0cfa)=>(_0x38049d,_0x2d9ec3)=>_0x7e0cfa(_0x38049d,_0x2d9ec3,_0x34bd90);let _0x428556=class extends _0x3363e0[_0x4e7149(0x87)]{constructor(_0x2f528f,_0x125a27){const _0x48ead5=_0x4e7149;super(),this[_0x48ead5(0xe9)]=_0x2f528f,this['_threadCommentDataSource']=_0x125a27,this['_initDataSource']();}[_0x4e7149(0xe3)](){const _0x401c8b=_0x4e7149;this[_0x401c8b(0xe9)][_0x401c8b(0xd0)]=this[_0x401c8b(0xaa)],this['_threadCommentDataSourceService'][_0x401c8b(0x85)]=!0x1;}};_0x428556=_0x318fe1([_0x2657f4(0x0,_0x3c9c3d['IThreadCommentDataSourceService']),_0x2657f4(0x1,_0x3363e0['Inject'](_0x3e1d45))],_0x428556);var _0x2c13b2=Object[_0x4e7149(0x7a)],_0xc30170=Object[_0x4e7149(0xa9)],_0x5af70a=(_0x44971,_0x3ccf6e,_0x4b437b)=>_0x3ccf6e in _0x44971?_0x2c13b2(_0x44971,_0x3ccf6e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b437b}):_0x44971[_0x3ccf6e]=_0x4b437b,_0x47a739=(_0x45c2af,_0x185169,_0x43b11c,_0x1dcc8b)=>{for(var _0x525c02=_0x1dcc8b>0x1?void 0x0:_0x1dcc8b?_0xc30170(_0x185169,_0x43b11c):_0x185169,_0x41a0d2=_0x45c2af['length']-0x1,_0x3bf336;_0x41a0d2>=0x0;_0x41a0d2--)(_0x3bf336=_0x45c2af[_0x41a0d2])&&(_0x525c02=(_0x1dcc8b?_0x3bf336(_0x185169,_0x43b11c,_0x525c02):_0x3bf336(_0x525c02))||_0x525c02);return _0x1dcc8b&&_0x525c02&&_0x2c13b2(_0x185169,_0x43b11c,_0x525c02),_0x525c02;},_0x43087d=(_0x54695d,_0x4146dd)=>(_0x3cd0d8,_0x178579)=>_0x4146dd(_0x3cd0d8,_0x178579,_0x54695d),_0x1c1b36=(_0x4256d0,_0x325071,_0x29fcc3)=>_0x5af70a(_0x4256d0,typeof _0x325071!=_0x4e7149(0xcd)?_0x325071+'':_0x325071,_0x29fcc3);_0x906bb0[_0x4e7149(0x7d)]=class extends _0x3363e0[_0x4e7149(0xc5)]{constructor(_0x48625d=_0x1dec57,_0x4df3af,_0x5cbb7b){const _0x18dc40=_0x4e7149;super(),this[_0x18dc40(0x7b)]=_0x48625d,this['_injector']=_0x4df3af,this[_0x18dc40(0x94)]=_0x5cbb7b;const {..._0x1f170a}=_0x3363e0[_0x18dc40(0x92)]({},_0x1dec57,this[_0x18dc40(0x7b)]);this['_configService'][_0x18dc40(0x77)](_0x98f3e2,_0x1f170a);}[_0x4e7149(0xa5)](){const _0x273ef3=_0x4e7149;[[_0x3e1d45],[_0x428556],[_0x50b6c4]][_0x273ef3(0xb3)](_0x3d5b8f=>{const _0x2ec2e9=_0x273ef3;this[_0x2ec2e9(0xf2)][_0x2ec2e9(0xe7)](_0x3d5b8f);});}[_0x4e7149(0xd3)](){const _0x4d9a10=_0x4e7149;this[_0x4d9a10(0xf2)][_0x4d9a10(0xed)](_0x428556),this[_0x4d9a10(0xf2)][_0x4d9a10(0xed)](_0x50b6c4);}},_0x1c1b36(_0x906bb0[_0x4e7149(0x7d)],'pluginName',_0x21bea2),_0x1c1b36(_0x906bb0[_0x4e7149(0x7d)],_0x4e7149(0xc1),_0x3363e0[_0x4e7149(0x8e)][_0x4e7149(0x86)]),_0x906bb0['UniverThreadCommentDataSourcePlugin']=_0x47a739([_0x3363e0[_0x4e7149(0x75)](_0x568744[_0x4e7149(0xf5)],_0x1202b0[_0x4e7149(0xea)],_0x476a94[_0x4e7149(0xae)]),_0x43087d(0x1,_0x3363e0[_0x4e7149(0x8b)](_0x3363e0[_0x4e7149(0xb7)])),_0x43087d(0x2,_0x3363e0[_0x4e7149(0xb4)])],_0x906bb0[_0x4e7149(0x7d)]),Object['defineProperty'](_0x906bb0,Symbol[_0x4e7149(0x70)],{'value':_0x4e7149(0xb1)});}));function _0x213f(_0x4fcc9e,_0x8c1a73){const _0x161754=_0x1617();return _0x213f=function(_0x213f07,_0x4d3c7d){_0x213f07=_0x213f07-0x6f;let _0x2745de=_0x161754[_0x213f07];return _0x2745de;},_0x213f(_0x4fcc9e,_0x8c1a73);}function _0x1617(){const _0x1526ed=['size','CustomRangeType','addUser','rangeId','dayjs','onStarting','Add','solved','UniverCore','getOwnPropertyDescriptor','_threadCommentDataSource','post','getUser','_init','UniverLicensePlugin','userID','function','Module','@univerjs-pro/license','forEach','IConfigService','resolved','111560VKvXDm','Injector','getMemberID','reply','resolveComment','getComment','Solve','users','HTTPService','8015724bGHTwK','2625676CAnLvM','type','pipe','thread-comment-data-source.config','user','Plugin','Solved','unitId','error','object','@univerjs/thread-comment-ui','listComments','Delete','symbol','filter','CommentService','dataSource','OpenOrReOpen','Unknown','onReady','createTimestamp','deleteComment','find','commentUpdate$','parse','replyId','9WFjsla','body','subscribe','@univerjs/thread-comment','_threadCommentModel','slice','@univerjs-pro/collaboration-client','66sAyWUM','length','_initDataSource','amd','403170PkUvOy','root','add','map','_threadCommentDataSourceService','UniverCollaborationClientPlugin','rxjs','/universer-api/user/list','get','7xUcDfH','13828640MxYoWu','content','format','_injector','personId','Reply','UniverThreadCommentUIPlugin','_userService','_sessionService','UniverNetwork','toStringTag','threadId','addComment','@univerjs/core','stringify','DependentOn','419009cZODQe','setConfig','ThreadCommentModel','UniverThreadCommentUi','defineProperty','_config','/edit','UniverThreadCommentDataSourcePlugin','UniverProLicense','_initUserSync','disposeWithMe','getUnit','updateComment','UserManagerService','8295188khyMga','syncUpdateMutationToColla','UNIVER_UNKNOWN','Disposable','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','values','/universer-api/comment/unit/','Inject','customRanges','userId','UniverInstanceType','@univerjs/network','_httpService','rangeType','merge','replies','_configService','Edit','/list','/add','_commentService','bufferTime','ref','YYYY/MM/DD\x20HH:mm','requireSession','10JsuXgM','code','UNRECOGNIZED'];_0x1617=function(){return _0x1526ed;};return _0x1617();}
|
|
1
|
+
(function(_0x211a58,_0x2ff8ee){const _0x1cb941=_0x2d62,_0x159e18=_0x211a58();while(!![]){try{const _0x9de923=parseInt(_0x1cb941(0x139))/0x1+parseInt(_0x1cb941(0xe9))/0x2*(parseInt(_0x1cb941(0xfc))/0x3)+-parseInt(_0x1cb941(0x12a))/0x4+-parseInt(_0x1cb941(0xc1))/0x5*(-parseInt(_0x1cb941(0xe3))/0x6)+parseInt(_0x1cb941(0xdf))/0x7+parseInt(_0x1cb941(0xdc))/0x8+-parseInt(_0x1cb941(0x120))/0x9;if(_0x9de923===_0x2ff8ee)break;else _0x159e18['push'](_0x159e18['shift']());}catch(_0x3ec8fd){_0x159e18['push'](_0x159e18['shift']());}}}(_0x505f,0xd6149),function(_0x17f214,_0x436171){const _0x1e1a36=_0x2d62;typeof exports==_0x1e1a36(0x138)&&typeof module<'u'?_0x436171(exports,require(_0x1e1a36(0xc5)),require(_0x1e1a36(0x13a)),require(_0x1e1a36(0xe0)),require(_0x1e1a36(0xf2)),require(_0x1e1a36(0x137)),require(_0x1e1a36(0x115)),require('@univerjs/network')):typeof define==_0x1e1a36(0x125)&&define[_0x1e1a36(0xeb)]?define(['exports',_0x1e1a36(0xc5),_0x1e1a36(0x13a),_0x1e1a36(0xe0),_0x1e1a36(0xf2),_0x1e1a36(0x137),_0x1e1a36(0x115),'@univerjs/network'],_0x436171):(_0x17f214=typeof globalThis<'u'?globalThis:_0x17f214||self,_0x436171(_0x17f214[_0x1e1a36(0xc7)]={},_0x17f214[_0x1e1a36(0xf9)],_0x17f214['UniverProLicense'],_0x17f214[_0x1e1a36(0x11a)],_0x17f214['UniverThreadCommentUi'],_0x17f214['UniverThreadComment'],_0x17f214[_0x1e1a36(0x115)],_0x17f214['UniverNetwork']));}(this,function(_0x75edde,_0x133324,_0x2412d4,_0x2ea174,_0xaac3b6,_0x55093c,_0x2de3f0,_0x1af715){'use strict';const _0xab74b1=_0x2d62;const _0x12cf60='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var _0xb76d8d=(_0x4e05c8=>(_0x4e05c8[_0x4e05c8[_0xab74b1(0x107)]=0x0]=_0xab74b1(0x107),_0x4e05c8[_0x4e05c8[_0xab74b1(0xd7)]=0x1]=_0xab74b1(0xd7),_0x4e05c8[_0x4e05c8[_0xab74b1(0x124)]=-0x1]=_0xab74b1(0x124),_0x4e05c8))(_0xb76d8d||{}),_0x3ba7d5=(_0x5012e9=>(_0x5012e9[_0x5012e9[_0xab74b1(0x141)]=0x0]=_0xab74b1(0x141),_0x5012e9[_0x5012e9[_0xab74b1(0xce)]=0x1]=_0xab74b1(0xce),_0x5012e9[_0x5012e9[_0xab74b1(0x100)]=0x2]=_0xab74b1(0x100),_0x5012e9[_0x5012e9[_0xab74b1(0x106)]=0x3]='Edit',_0x5012e9[_0x5012e9['Delete']=0x4]=_0xab74b1(0xd0),_0x5012e9[_0x5012e9[_0xab74b1(0x12d)]=0x5]=_0xab74b1(0x12d),_0x5012e9[_0x5012e9[_0xab74b1(0x124)]=-0x1]=_0xab74b1(0x124),_0x5012e9))(_0x3ba7d5||{});const _0x1e7b5d=_0x442ccc=>_0x2ea174[_0xab74b1(0x114)](new Date(+_0x442ccc))[_0xab74b1(0xf6)](_0xab74b1(0x113)),_0x5a582a=async(_0x35cfe3,_0x4b0db0)=>{const _0x5a29b9=_0xab74b1,_0x3dd36f=_0x35cfe3[_0x5a29b9(0xcc)](_0x2ea174['UserManagerService']),_0x36abf9=_0x35cfe3[_0x5a29b9(0xcc)](_0x1af715['HTTPService']);_0x4b0db0[_0x5a29b9(0xf4)](_0x56edc8=>{const _0x3feee0=_0x5a29b9;_0x3dd36f[_0x3feee0(0xfd)](_0x56edc8)&&_0x4b0db0['delete'](_0x56edc8);}),_0x4b0db0[_0x5a29b9(0x10a)]&&(await _0x36abf9[_0x5a29b9(0xcc)](_0x5a29b9(0xbf),{'params':{'userIDs':[..._0x4b0db0]}}))[_0x5a29b9(0xd9)][_0x5a29b9(0x130)][_0x5a29b9(0xf4)](_0x135b56=>{_0x135b56&&_0x3dd36f['addUser'](_0x135b56);});};var _0x473e2c=Object['defineProperty'],_0xd1c961=Object[_0xab74b1(0xbe)],_0x4f5fe9=(_0x2b4556,_0x3e8798,_0x3365c2,_0xabdceb)=>{const _0x509b47=_0xab74b1;for(var _0x16c93e=_0xabdceb>0x1?void 0x0:_0xabdceb?_0xd1c961(_0x3e8798,_0x3365c2):_0x3e8798,_0x1f8e8b=_0x2b4556[_0x509b47(0xfb)]-0x1,_0x23be66;_0x1f8e8b>=0x0;_0x1f8e8b--)(_0x23be66=_0x2b4556[_0x1f8e8b])&&(_0x16c93e=(_0xabdceb?_0x23be66(_0x3e8798,_0x3365c2,_0x16c93e):_0x23be66(_0x16c93e))||_0x16c93e);return _0xabdceb&&_0x16c93e&&_0x473e2c(_0x3e8798,_0x3365c2,_0x16c93e),_0x16c93e;},_0x29b0d0=(_0x288ae4,_0x35ce56)=>(_0x442055,_0x4018da)=>_0x35ce56(_0x442055,_0x4018da,_0x288ae4);let _0x205ec4=class extends _0x2ea174['Disposable']{constructor(_0xdf9cc2,_0xb53de3,_0x2425ba,_0x4ce932){const _0x2052bb=_0xab74b1;super(),this['_commentService']=_0xdf9cc2,this[_0x2052bb(0xda)]=_0xb53de3,this[_0x2052bb(0xe8)]=_0x2425ba,this[_0x2052bb(0xca)]=_0x4ce932,this[_0x2052bb(0x103)](),this[_0x2052bb(0x13f)]();}[_0xab74b1(0x13f)](){const _0x3abd93=_0xab74b1;this['disposeWithMe'](this['_threadCommentModel'][_0x3abd93(0xc6)][_0x3abd93(0xe1)](_0x2de3f0[_0x3abd93(0x134)](0x10))[_0x3abd93(0x118)](_0xb6bda4=>{const _0x5bdbfa=_0x3abd93,_0x2926e4=new Set();_0xb6bda4[_0x5bdbfa(0xf4)](_0x12c35f=>{const _0x10b370=_0x5bdbfa;switch(_0x12c35f[_0x10b370(0xc4)]){case _0x10b370(0x146):{const _0x1232ca=_0x12c35f[_0x10b370(0xcd)][_0x10b370(0x13b)];_0x2926e4[_0x10b370(0x146)](_0x1232ca);break;}}}),_0x5a582a(this[_0x5bdbfa(0xca)],_0x2926e4);}));}['_init'](){const _0x50feda=_0xab74b1;this[_0x50feda(0xd4)](this[_0x50feda(0x122)]['commentUpdate$'][_0x50feda(0x118)](async _0x48becd=>{const _0x2c7106=_0x50feda;var _0x100103,_0x33c35c,_0x4a9507,_0x5b2f81;const _0xd8b15e=(_0x100103=this[_0x2c7106(0xda)][_0x2c7106(0x126)](_0x48becd['unitId'])['find'](_0x12f1e1=>_0x12f1e1[_0x2c7106(0xe5)]===_0x48becd['threadId']))==null?void 0x0:_0x100103[_0x2c7106(0xf5)];if(!_0xd8b15e)return;const {unitId:_0x3dd6f6,subUnitId:_0x49a995}=_0xd8b15e;switch(_0x48becd['user']&&this[_0x2c7106(0xe8)][_0x2c7106(0x10d)](_0x48becd[_0x2c7106(0x102)]),_0x48becd[_0x2c7106(0xc4)]){case _0x3ba7d5[_0x2c7106(0xce)]:break;case _0x3ba7d5[_0x2c7106(0x100)]:{this[_0x2c7106(0xda)][_0x2c7106(0xf0)](_0x3dd6f6,_0x49a995,{'unitId':_0x3dd6f6,'subUnitId':_0x49a995,'ref':'','id':_0x48becd['replyId'],'dT':_0x1e7b5d(+_0x48becd[_0x2c7106(0x140)]),'threadId':_0x48becd[_0x2c7106(0xe5)],'personId':(_0x4a9507=(_0x33c35c=_0x48becd[_0x2c7106(0x102)])==null?void 0x0:_0x33c35c['userID'])!=null?_0x4a9507:_0x48becd['userId'],'text':JSON['parse'](_0x48becd[_0x2c7106(0x11b)]),'parentId':_0xd8b15e['id']});break;}case _0x3ba7d5[_0x2c7106(0xd0)]:{const _0x3639ad=this[_0x2c7106(0xda)][_0x2c7106(0x128)](_0x3dd6f6,_0x49a995,_0x48becd['replyId']);_0x3639ad&&_0x3639ad[_0x2c7106(0x129)]&&this[_0x2c7106(0xda)][_0x2c7106(0xe7)](_0x3dd6f6,_0x49a995,_0x48becd[_0x2c7106(0x101)]);break;}case _0x3ba7d5[_0x2c7106(0x106)]:{this[_0x2c7106(0xda)][_0x2c7106(0x143)](_0x3dd6f6,_0x49a995,{'commentId':_0x48becd[_0x2c7106(0x101)],'text':JSON[_0x2c7106(0xfe)](_0x48becd['content'])});break;}case _0x3ba7d5[_0x2c7106(0x12d)]:{const _0x3fbfde=(_0x5b2f81=this[_0x2c7106(0xda)][_0x2c7106(0x126)](_0x48becd[_0x2c7106(0xf7)])[_0x2c7106(0xde)](_0x1251c5=>_0x1251c5[_0x2c7106(0xe5)]===_0x48becd['threadId']))==null?void 0x0:_0x5b2f81[_0x2c7106(0xf5)];_0x3fbfde&&this[_0x2c7106(0xda)][_0x2c7106(0x144)](_0x3dd6f6,_0x49a995,_0x3fbfde['id'],_0x48becd['solved']===_0xb76d8d[_0x2c7106(0xd7)]);break;}}}));}};_0x205ec4=_0x4f5fe9([_0x29b0d0(0x0,_0x2ea174[_0xab74b1(0x11f)](_0x133324[_0xab74b1(0xc3)])),_0x29b0d0(0x1,_0x2ea174['Inject'](_0x55093c[_0xab74b1(0xea)])),_0x29b0d0(0x2,_0x2ea174[_0xab74b1(0x11f)](_0x2ea174['UserManagerService'])),_0x29b0d0(0x3,_0x2ea174[_0xab74b1(0x11f)](_0x2ea174[_0xab74b1(0x12b)]))],_0x205ec4);const _0xf02e38=_0xab74b1(0xd3),_0x3c0168={};var _0x4b683b=Object[_0xab74b1(0x131)],_0x3f1c62=Object['getOwnPropertyDescriptor'],_0x141666=(_0xdbea31,_0x225790,_0x558b93,_0x1b938d)=>{const _0x5daf64=_0xab74b1;for(var _0x4a335e=_0x1b938d>0x1?void 0x0:_0x1b938d?_0x3f1c62(_0x225790,_0x558b93):_0x225790,_0x324515=_0xdbea31[_0x5daf64(0xfb)]-0x1,_0x3f3d52;_0x324515>=0x0;_0x324515--)(_0x3f3d52=_0xdbea31[_0x324515])&&(_0x4a335e=(_0x1b938d?_0x3f3d52(_0x225790,_0x558b93,_0x4a335e):_0x3f3d52(_0x4a335e))||_0x4a335e);return _0x1b938d&&_0x4a335e&&_0x4b683b(_0x225790,_0x558b93,_0x4a335e),_0x4a335e;},_0x13d956=(_0x4deba1,_0x4540df)=>(_0x270b36,_0x3f2650)=>_0x4540df(_0x270b36,_0x3f2650,_0x4deba1);function _0x1b34f6(_0xac7b61,_0x3547c0){const _0x179611=_0xab74b1,_0x48b27a=_0xac7b61['replies'][0x0];return{..._0x3547c0,'id':_0x48b27a[_0x179611(0x101)],'resolved':_0xac7b61[_0x179611(0xdd)]===0x1,'dT':_0x1e7b5d(_0x48b27a[_0x179611(0x140)]),'personId':_0x48b27a[_0x179611(0xd2)],'threadId':_0x48b27a[_0x179611(0xe5)]};}function _0x5842b1(_0x1f00bd,_0x454ef2,_0x53b455){const _0x5c2c9c=_0xab74b1;var _0x5e1982,_0x4cd43e;if(((_0x4cd43e=(_0x5e1982=_0x1f00bd==null?void 0x0:_0x1f00bd['replies'])==null?void 0x0:_0x5e1982['length'])!=null?_0x4cd43e:0x0)>0x0){const _0x410e5a=(_0xaefac9,_0x47ef90)=>({'id':_0xaefac9[_0x5c2c9c(0x101)],'threadId':_0xaefac9['threadId'],'dT':_0x1e7b5d(_0xaefac9[_0x5c2c9c(0x140)]),'personId':_0xaefac9['userId'],'resolved':_0x1f00bd['solved']===_0xb76d8d[_0x5c2c9c(0xd7)],'unitId':_0x454ef2,'subUnitId':_0x53b455,'text':JSON['parse'](_0xaefac9[_0x5c2c9c(0x11b)]),'parentId':_0x47ef90}),_0x493b90=_0x410e5a(_0x1f00bd[_0x5c2c9c(0x142)][0x0]);return{..._0x493b90,'children':_0x1f00bd[_0x5c2c9c(0x142)]['slice'](0x1)[_0x5c2c9c(0x136)](_0x2a67c9=>_0x410e5a(_0x2a67c9,_0x493b90['id']))};}return null;}let _0x1e078f=class{constructor(_0x50b131,_0x4fedd4,_0x1bd89d,_0x148f13){const _0x1ec308=_0xab74b1;this[_0x1ec308(0xd1)]=_0x50b131,this['_userService']=_0x4fedd4,this['_sessionService']=_0x1bd89d,this[_0x1ec308(0xca)]=_0x148f13;}async[_0xab74b1(0xf0)](_0x52ec61){const _0x35f794=_0xab74b1;var _0x1ff57e,_0x321235;const {parentId:_0x1cbffc,unitId:_0x456bbb,text:_0x2d7c26,threadId:_0x276df3}=_0x52ec61,_0xf3aa68=(_0x321235=(_0x1ff57e=_0x2d7c26[_0x35f794(0xdb)])==null?void 0x0:_0x1ff57e[_0x35f794(0xe6)](_0x3e4cfc=>_0x3e4cfc[_0x35f794(0xf1)]===_0x2ea174[_0x35f794(0x11e)][_0x35f794(0x145)])[_0x35f794(0x136)](_0x5b028c=>_0x5b028c[_0x35f794(0x119)]))!=null?_0x321235:[],_0x51d808=JSON[_0x35f794(0x116)](_0x2d7c26),_0x570d19=(await this[_0x35f794(0xc2)][_0x35f794(0x10c)](_0x456bbb))[_0x35f794(0xff)]();if(_0x1cbffc){const _0x580be9={'memberId':_0x570d19,'unitId':_0x456bbb,'content':_0x51d808,'mention':_0xf3aa68,'threadId':_0x276df3},_0x3d57d9=(await this[_0x35f794(0xd1)]['post']('/universer-api/comment/unit/'+_0x456bbb+_0x35f794(0x105),{'body':_0x580be9}))[_0x35f794(0xd9)][_0x35f794(0x123)];return{..._0x52ec61,'id':_0x3d57d9[_0x35f794(0x101)],'dT':_0x2ea174[_0x35f794(0x114)](+_0x3d57d9[_0x35f794(0x140)])[_0x35f794(0xf6)](_0x35f794(0x113)),'personId':_0x3d57d9[_0x35f794(0xd2)]};}else{const _0x3886fc={'memberId':_0x570d19,'unitId':_0x456bbb,'content':_0x51d808,'mention':_0xf3aa68},_0x1ac0bb=await this[_0x35f794(0xd1)][_0x35f794(0x13c)](_0x35f794(0xfa)+_0x456bbb+_0x35f794(0x12e),{'body':_0x3886fc});return _0x1b34f6(_0x1ac0bb[_0x35f794(0xd9)]['comment'],_0x52ec61);}}async['updateComment'](_0xa47d74){const _0x14a531=_0xab74b1;var _0x3f9818,_0x2e5f3b;const {text:_0x2a377d,unitId:_0x45d35f}=_0xa47d74,_0x32dcb1=(_0x2e5f3b=(_0x3f9818=_0x2a377d[_0x14a531(0xdb)])==null?void 0x0:_0x3f9818[_0x14a531(0xe6)](_0x13b245=>_0x13b245[_0x14a531(0xf1)]===_0x2ea174[_0x14a531(0x11e)][_0x14a531(0x145)])[_0x14a531(0x136)](_0x492a53=>_0x492a53['rangeId']))!=null?_0x2e5f3b:[],_0x48ef36=JSON[_0x14a531(0x116)](_0x2a377d),_0x3994b4=_0xa47d74['threadId'],_0x3fb807=_0xa47d74['id'],_0x46afc1={'memberId':(await this['_sessionService'][_0x14a531(0x10c)](_0x45d35f))[_0x14a531(0xff)](),'unitId':_0x45d35f,'threadId':_0x3994b4,'mention':_0x32dcb1,'content':_0x48ef36,'replyId':_0x3fb807},_0x34a589=await this[_0x14a531(0xd1)][_0x14a531(0x13c)](_0x14a531(0xfa)+_0x45d35f+_0x14a531(0x109),{'body':_0x46afc1});return!_0x34a589['body']['error']||_0x34a589[_0x14a531(0xd9)][_0x14a531(0x117)][_0x14a531(0x127)]===0x1;}async[_0xab74b1(0x144)](_0x302b29){const _0x42f9bb=_0xab74b1,{unitId:_0x33514f}=_0x302b29,_0x4bd96d=_0x302b29[_0x42f9bb(0xe5)],_0x4063ce={'memberId':this[_0x42f9bb(0xe8)][_0x42f9bb(0xec)]()[_0x42f9bb(0xd6)],'unitId':_0x33514f,'threadId':_0x4bd96d,'solved':_0x302b29['resolved']?_0xb76d8d[_0x42f9bb(0xd7)]:_0xb76d8d[_0x42f9bb(0x107)]},_0x55ba0d=await this['_httpService'][_0x42f9bb(0x13c)](_0x42f9bb(0xfa)+_0x33514f+'/solved',{'body':_0x4063ce});return!_0x55ba0d[_0x42f9bb(0xd9)][_0x42f9bb(0x117)]||_0x55ba0d[_0x42f9bb(0xd9)]['error'][_0x42f9bb(0x127)]===0x1;}async[_0xab74b1(0xe7)](_0x109569,_0x5c1562,_0x3249da,_0x2f9766){const _0x5ab33f=_0xab74b1,_0x1f4664={'memberId':(await this[_0x5ab33f(0xc2)][_0x5ab33f(0x10c)](_0x109569))[_0x5ab33f(0xff)](),'threadId':_0x3249da,'replyId':_0x2f9766,'unitId':_0x109569},_0x47af7c=await this[_0x5ab33f(0xd1)][_0x5ab33f(0x13c)]('/universer-api/comment/unit/'+_0x109569+_0x5ab33f(0x133),{'body':_0x1f4664});return!_0x47af7c[_0x5ab33f(0xd9)][_0x5ab33f(0x117)]||_0x47af7c[_0x5ab33f(0xd9)]['error'][_0x5ab33f(0x127)]===0x1;}async['listComments'](_0x3a55d2,_0x4da107,_0x38786e){const _0x248ba9=_0xab74b1,_0x2a0f6e={'unitId':_0x3a55d2,'threadId':_0x38786e},_0x1cf8ed=await this['_httpService'][_0x248ba9(0x13c)](_0x248ba9(0xfa)+_0x3a55d2+_0x248ba9(0xe4),{'body':_0x2a0f6e}),_0x5270ea=_0x38786e[_0x248ba9(0x136)](_0x244ef7=>_0x5842b1(_0x1cf8ed[_0x248ba9(0xd9)][_0x248ba9(0xcf)][_0x244ef7],_0x3a55d2,_0x4da107))[_0x248ba9(0xe6)](Boolean);return Object['values'](_0x1cf8ed['body'][_0x248ba9(0x130)])[_0x248ba9(0xf4)](_0x321250=>{const _0x1da7fc=_0x248ba9;this['_userService'][_0x1da7fc(0x10d)](_0x321250);}),_0x5270ea;}[_0xab74b1(0x13d)](_0x3892ea){const _0xab1e98=_0xab74b1;return{'id':_0x3892ea['id'],'threadId':_0x3892ea[_0xab1e98(0xe5)],'ref':_0x3892ea[_0xab1e98(0x11d)]};}};_0x1e078f=_0x141666([_0x13d956(0x0,_0x2ea174[_0xab74b1(0x11f)](_0x1af715[_0xab74b1(0xee)])),_0x13d956(0x1,_0x2ea174[_0xab74b1(0x11f)](_0x2ea174[_0xab74b1(0x132)])),_0x13d956(0x2,_0x2ea174[_0xab74b1(0x11f)](_0x133324[_0xab74b1(0xc0)])),_0x13d956(0x3,_0x2ea174['Inject'](_0x2ea174['Injector']))],_0x1e078f);var _0x8bae40=Object[_0xab74b1(0x131)],_0x4f154d=Object[_0xab74b1(0xbe)],_0x1d85b5=(_0x514d10,_0xb07674,_0x5917d2,_0x1b22e1)=>{const _0x10a2af=_0xab74b1;for(var _0x11a855=_0x1b22e1>0x1?void 0x0:_0x1b22e1?_0x4f154d(_0xb07674,_0x5917d2):_0xb07674,_0x2989e2=_0x514d10[_0x10a2af(0xfb)]-0x1,_0x1046d6;_0x2989e2>=0x0;_0x2989e2--)(_0x1046d6=_0x514d10[_0x2989e2])&&(_0x11a855=(_0x1b22e1?_0x1046d6(_0xb07674,_0x5917d2,_0x11a855):_0x1046d6(_0x11a855))||_0x11a855);return _0x1b22e1&&_0x11a855&&_0x8bae40(_0xb07674,_0x5917d2,_0x11a855),_0x11a855;},_0x535419=(_0xba34ee,_0xdb9593)=>(_0x5b7108,_0x10d0a9)=>_0xdb9593(_0x5b7108,_0x10d0a9,_0xba34ee);let _0x11e7e9=class extends _0x2ea174[_0xab74b1(0xf3)]{constructor(_0x48af5e,_0x296209){const _0x2f68e4=_0xab74b1;super(),this[_0x2f68e4(0xd8)]=_0x48af5e,this['_threadCommentDataSource']=_0x296209,this['_initDataSource']();}[_0xab74b1(0x12c)](){const _0xa9a58e=_0xab74b1;this[_0xa9a58e(0xd8)][_0xa9a58e(0x11c)]=this[_0xa9a58e(0x10b)],this[_0xa9a58e(0xd8)][_0xa9a58e(0x135)]=!0x1;}};_0x11e7e9=_0x1d85b5([_0x535419(0x0,_0x55093c[_0xab74b1(0x147)]),_0x535419(0x1,_0x2ea174['Inject'](_0x1e078f))],_0x11e7e9);var _0x14e682=Object[_0xab74b1(0x131)],_0x46c30c=Object[_0xab74b1(0xbe)],_0x46b45b=(_0x5d2094,_0x495a7b,_0x24e342)=>_0x495a7b in _0x5d2094?_0x14e682(_0x5d2094,_0x495a7b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24e342}):_0x5d2094[_0x495a7b]=_0x24e342,_0x4ce02a=(_0x3697a2,_0x12dac7,_0x2f3f2c,_0x49b7cc)=>{const _0x1b23bc=_0xab74b1;for(var _0x88f4aa=_0x49b7cc>0x1?void 0x0:_0x49b7cc?_0x46c30c(_0x12dac7,_0x2f3f2c):_0x12dac7,_0x84db75=_0x3697a2[_0x1b23bc(0xfb)]-0x1,_0x168ca8;_0x84db75>=0x0;_0x84db75--)(_0x168ca8=_0x3697a2[_0x84db75])&&(_0x88f4aa=(_0x49b7cc?_0x168ca8(_0x12dac7,_0x2f3f2c,_0x88f4aa):_0x168ca8(_0x88f4aa))||_0x88f4aa);return _0x49b7cc&&_0x88f4aa&&_0x14e682(_0x12dac7,_0x2f3f2c,_0x88f4aa),_0x88f4aa;},_0x5c7d2d=(_0x52539b,_0xfc1b0a)=>(_0xcb53bb,_0x33e6a1)=>_0xfc1b0a(_0xcb53bb,_0x33e6a1,_0x52539b),_0x3bd6f5=(_0xac24a0,_0x2c4f26,_0x439b36)=>_0x46b45b(_0xac24a0,typeof _0x2c4f26!=_0xab74b1(0x110)?_0x2c4f26+'':_0x2c4f26,_0x439b36);_0x75edde[_0xab74b1(0xc8)]=class extends _0x2ea174['Plugin']{constructor(_0x593606=_0x3c0168,_0x46899b,_0x46c01a){const _0x1a5912=_0xab74b1;super(),this[_0x1a5912(0xed)]=_0x593606,this[_0x1a5912(0xca)]=_0x46899b,this[_0x1a5912(0x112)]=_0x46c01a;const {..._0x5c7d06}=_0x2ea174[_0x1a5912(0xf8)]({},_0x3c0168,this[_0x1a5912(0xed)]);this['_configService'][_0x1a5912(0x104)](_0xf02e38,_0x5c7d06);}[_0xab74b1(0xe2)](){const _0x186210=_0xab74b1;[[_0x1e078f],[_0x11e7e9],[_0x205ec4]][_0x186210(0xf4)](_0x5530ba=>{const _0x3e5280=_0x186210;this['_injector'][_0x3e5280(0x146)](_0x5530ba);});}[_0xab74b1(0x108)](){const _0x5d8326=_0xab74b1;this[_0x5d8326(0xca)]['get'](_0x11e7e9),this[_0x5d8326(0xca)][_0x5d8326(0xcc)](_0x205ec4);}},_0x3bd6f5(_0x75edde['UniverThreadCommentDataSourcePlugin'],_0xab74b1(0xc9),_0x12cf60),_0x3bd6f5(_0x75edde[_0xab74b1(0xc8)],_0xab74b1(0xc4),_0x2ea174[_0xab74b1(0x121)][_0xab74b1(0x13e)]),_0x75edde['UniverThreadCommentDataSourcePlugin']=_0x4ce02a([_0x2ea174[_0xab74b1(0xef)](_0xaac3b6[_0xab74b1(0xd5)],_0x133324[_0xab74b1(0x111)],_0x2412d4[_0xab74b1(0x10f)]),_0x5c7d2d(0x1,_0x2ea174[_0xab74b1(0x11f)](_0x2ea174[_0xab74b1(0x12b)])),_0x5c7d2d(0x2,_0x2ea174[_0xab74b1(0xcb)])],_0x75edde[_0xab74b1(0xc8)]),Object[_0xab74b1(0x131)](_0x75edde,Symbol[_0xab74b1(0x10e)],{'value':_0xab74b1(0x12f)});}));function _0x2d62(_0x4f6fc8,_0x3a7827){const _0x505fcb=_0x505f();return _0x2d62=function(_0x2d6259,_0x2d2e1d){_0x2d6259=_0x2d6259-0xbe;let _0x3965c3=_0x505fcb[_0x2d6259];return _0x3965c3;},_0x2d62(_0x4f6fc8,_0x3a7827);}function _0x505f(){const _0x22ffc4=['threadId','filter','deleteComment','_userService','2lhRzml','ThreadCommentModel','amd','getCurrentUser','_config','HTTPService','DependentOn','addComment','rangeType','@univerjs/thread-comment-ui','Disposable','forEach','root','format','unitId','merge','UniverProCollaborationClient','/universer-api/comment/unit/','length','2497899iXIkpZ','getUser','parse','getMemberID','Reply','replyId','user','_init','setConfig','/reply','Edit','OpenOrReOpen','onReady','/edit','size','_threadCommentDataSource','requireSession','addUser','toStringTag','UniverLicensePlugin','symbol','UniverCollaborationClientPlugin','_configService','YYYY/MM/DD\x20HH:mm','dayjs','rxjs','stringify','error','subscribe','rangeId','UniverCore','content','dataSource','ref','CustomRangeType','Inject','15413265gwioND','UniverInstanceType','_commentService','reply','UNRECOGNIZED','function','getUnit','code','getComment','parentId','1998092SvuAqj','Injector','_initDataSource','Solve','/add','Module','users','defineProperty','UserManagerService','/delete','bufferTime','syncUpdateMutationToColla','map','@univerjs/thread-comment','object','325690wvNPLN','@univerjs-pro/license','personId','post','saveCommentToSnapshot','UNIVER_UNKNOWN','_initUserSync','createTimestamp','Unknown','replies','updateComment','resolveComment','COMMENT','add','IThreadCommentDataSourceService','getOwnPropertyDescriptor','/universer-api/user/list','CollaborationSessionService','5nVwuuX','_sessionService','CommentService','type','@univerjs-pro/collaboration-client','commentUpdate$','UniverProThreadCommentDatasource','UniverThreadCommentDataSourcePlugin','pluginName','_injector','IConfigService','get','payload','Add','comments','Delete','_httpService','userId','thread-comment-data-source.config','disposeWithMe','UniverThreadCommentUIPlugin','userID','Solved','_threadCommentDataSourceService','body','_threadCommentModel','customRanges','2183464AIfSWo','solved','find','10205636lBmcfn','@univerjs/core','pipe','onStarting','1198662nVmZPQ','/list'];_0x505f=function(){return _0x22ffc4;};return _0x505f();}
|
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.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"rxjs": ">=7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@univerjs-pro/
|
|
49
|
-
"@univerjs-pro/
|
|
48
|
+
"@univerjs-pro/license": "0.5.4",
|
|
49
|
+
"@univerjs-pro/collaboration-client": "0.5.4",
|
|
50
|
+
"@univerjs/core": "0.5.4",
|
|
50
51
|
"@univerjs/protocol": "0.1.40-alpha.10",
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/thread-comment": "0.5.3"
|
|
52
|
+
"@univerjs/thread-comment": "0.5.4",
|
|
53
|
+
"@univerjs/thread-comment-ui": "0.5.4",
|
|
54
|
+
"@univerjs/network": "0.5.4"
|
|
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.7",
|
|
60
60
|
"vitest": "^2.1.8",
|
|
61
|
-
"@univerjs-infra/shared": "0.5.
|
|
61
|
+
"@univerjs-infra/shared": "0.5.4"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"test": "vitest run",
|