@univerjs-pro/thread-comment-datasource 0.5.3 → 0.5.4-experimental.20250114-7c09c35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
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 _0x11de75=_0x39d1;(function(_0x46e939,_0x15af3d){const _0x20c267=_0x39d1,_0x42558c=_0x46e939();while(!![]){try{const _0x30099b=-parseInt(_0x20c267(0x1e8))/0x1*(parseInt(_0x20c267(0x1f1))/0x2)+parseInt(_0x20c267(0x1a3))/0x3*(parseInt(_0x20c267(0x215))/0x4)+parseInt(_0x20c267(0x198))/0x5+parseInt(_0x20c267(0x204))/0x6*(parseInt(_0x20c267(0x1e4))/0x7)+parseInt(_0x20c267(0x1e0))/0x8*(parseInt(_0x20c267(0x1bd))/0x9)+parseInt(_0x20c267(0x194))/0xa*(parseInt(_0x20c267(0x20f))/0xb)+parseInt(_0x20c267(0x202))/0xc*(-parseInt(_0x20c267(0x1ab))/0xd);if(_0x30099b===_0x15af3d)break;else _0x42558c['push'](_0x42558c['shift']());}catch(_0x1251c9){_0x42558c['push'](_0x42558c['shift']());}}}(_0x3919,0x2c866));Object[_0x11de75(0x1fb)](exports,Symbol[_0x11de75(0x196)],{'value':'Module'});const C=require(_0x11de75(0x1d5)),T=require(_0x11de75(0x1f6)),c=require(_0x11de75(0x1e5)),w=require('@univerjs/thread-comment-ui'),P=require(_0x11de75(0x1a9)),U=require(_0x11de75(0x1e6)),M=require('@univerjs/network'),R=_0x11de75(0x212);var v=(_0x55ffbf=>(_0x55ffbf[_0x55ffbf[_0x11de75(0x207)]=0x0]=_0x11de75(0x207),_0x55ffbf[_0x55ffbf[_0x11de75(0x1c1)]=0x1]='Solved',_0x55ffbf[_0x55ffbf[_0x11de75(0x1fe)]=-0x1]=_0x11de75(0x1fe),_0x55ffbf))(v||{}),I=(_0x1acbfb=>(_0x1acbfb[_0x1acbfb['Unknown']=0x0]='Unknown',_0x1acbfb[_0x1acbfb[_0x11de75(0x1db)]=0x1]=_0x11de75(0x1db),_0x1acbfb[_0x1acbfb[_0x11de75(0x1a2)]=0x2]=_0x11de75(0x1a2),_0x1acbfb[_0x1acbfb['Edit']=0x3]=_0x11de75(0x1bb),_0x1acbfb[_0x1acbfb[_0x11de75(0x1df)]=0x4]='Delete',_0x1acbfb[_0x1acbfb[_0x11de75(0x1e9)]=0x5]=_0x11de75(0x1e9),_0x1acbfb[_0x1acbfb['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x1acbfb))(I||{});const g=_0x56b125=>c[_0x11de75(0x1a7)](new Date(+_0x56b125))['format'](_0x11de75(0x20d)),$=async(_0x5deb4c,_0x4c51e6)=>{const _0x1284f4=_0x11de75,_0x48755=_0x5deb4c['get'](c[_0x1284f4(0x1ae)]),_0x50e0a2=_0x5deb4c[_0x1284f4(0x1ff)](M[_0x1284f4(0x209)]);_0x4c51e6[_0x1284f4(0x1af)](_0x3cdec1=>{const _0x43a3c7=_0x1284f4;_0x48755[_0x43a3c7(0x1c6)](_0x3cdec1)&&_0x4c51e6[_0x43a3c7(0x199)](_0x3cdec1);}),_0x4c51e6[_0x1284f4(0x1cd)]&&(await _0x50e0a2[_0x1284f4(0x1ff)](_0x1284f4(0x1d1),{'params':{'userIDs':[..._0x4c51e6]}}))[_0x1284f4(0x208)]['users'][_0x1284f4(0x1af)](_0x3de21f=>{_0x3de21f&&_0x48755['addUser'](_0x3de21f);});};var E=Object[_0x11de75(0x1fb)],q=Object[_0x11de75(0x1c9)],A=(_0x3c20a3,_0x2bfbb3,_0x474bbd,_0x1b6182)=>{const _0x5f16e2=_0x11de75;for(var _0x575e2d=_0x1b6182>0x1?void 0x0:_0x1b6182?q(_0x2bfbb3,_0x474bbd):_0x2bfbb3,_0x24d1c1=_0x3c20a3[_0x5f16e2(0x19a)]-0x1,_0x5ed321;_0x24d1c1>=0x0;_0x24d1c1--)(_0x5ed321=_0x3c20a3[_0x24d1c1])&&(_0x575e2d=(_0x1b6182?_0x5ed321(_0x2bfbb3,_0x474bbd,_0x575e2d):_0x5ed321(_0x575e2d))||_0x575e2d);return _0x1b6182&&_0x575e2d&&E(_0x2bfbb3,_0x474bbd,_0x575e2d),_0x575e2d;},_=(_0x3e78af,_0x5bfc6f)=>(_0x5a1bb9,_0x41306f)=>_0x5bfc6f(_0x5a1bb9,_0x41306f,_0x3e78af);let S=class extends c[_0x11de75(0x1b4)]{constructor(_0x50028c,_0x44f633,_0x38d2a4,_0x3ac593){const _0x377f01=_0x11de75;super(),this[_0x377f01(0x1b1)]=_0x50028c,this[_0x377f01(0x1ba)]=_0x44f633,this[_0x377f01(0x1c2)]=_0x38d2a4,this[_0x377f01(0x1a0)]=_0x3ac593,this[_0x377f01(0x1b7)](),this[_0x377f01(0x1d3)]();}[_0x11de75(0x1d3)](){const _0x51587b=_0x11de75;this['disposeWithMe'](this[_0x51587b(0x1ba)][_0x51587b(0x1c8)]['pipe'](U[_0x51587b(0x1dc)](0x10))[_0x51587b(0x211)](_0x1c6f58=>{const _0x484109=_0x51587b,_0x380c45=new Set();_0x1c6f58[_0x484109(0x1af)](_0x1518a4=>{const _0x2a06ba=_0x484109;switch(_0x1518a4[_0x2a06ba(0x1b0)]){case _0x2a06ba(0x1a4):{const _0x35f2f5=_0x1518a4[_0x2a06ba(0x1d9)][_0x2a06ba(0x1d7)];_0x380c45[_0x2a06ba(0x1a4)](_0x35f2f5);break;}}}),$(this['_injector'],_0x380c45);}));}[_0x11de75(0x1b7)](){const _0xe553ec=_0x11de75;this[_0xe553ec(0x1bf)](this[_0xe553ec(0x1b1)][_0xe553ec(0x1c8)]['subscribe'](async _0xc0fa1d=>{const _0x37f1ec=_0xe553ec;var _0x286811,_0x4ea60b,_0x5f3399,_0x53d495;const _0x82b7d0=(_0x286811=this[_0x37f1ec(0x1ba)][_0x37f1ec(0x1f4)](_0xc0fa1d[_0x37f1ec(0x205)])[_0x37f1ec(0x195)](_0x1c10f2=>_0x1c10f2[_0x37f1ec(0x1dd)]===_0xc0fa1d[_0x37f1ec(0x1dd)]))==null?void 0x0:_0x286811[_0x37f1ec(0x201)];if(!_0x82b7d0)return;const {unitId:_0x1d1feb,subUnitId:_0x36a7aa}=_0x82b7d0;switch(_0xc0fa1d[_0x37f1ec(0x1eb)]&&this['_userService'][_0x37f1ec(0x1d8)](_0xc0fa1d[_0x37f1ec(0x1eb)]),_0xc0fa1d[_0x37f1ec(0x1b0)]){case I[_0x37f1ec(0x1db)]:break;case I[_0x37f1ec(0x1a2)]:{this[_0x37f1ec(0x1ba)][_0x37f1ec(0x1e2)](_0x1d1feb,_0x36a7aa,{'unitId':_0x1d1feb,'subUnitId':_0x36a7aa,'ref':'','id':_0xc0fa1d['replyId'],'dT':g(+_0xc0fa1d[_0x37f1ec(0x203)]),'threadId':_0xc0fa1d[_0x37f1ec(0x1dd)],'personId':(_0x5f3399=(_0x4ea60b=_0xc0fa1d[_0x37f1ec(0x1eb)])==null?void 0x0:_0x4ea60b[_0x37f1ec(0x1f3)])!=null?_0x5f3399:_0xc0fa1d[_0x37f1ec(0x19b)],'text':JSON[_0x37f1ec(0x1c5)](_0xc0fa1d[_0x37f1ec(0x1ac)]),'parentId':_0x82b7d0['id']});break;}case I[_0x37f1ec(0x1df)]:{const _0x14cbae=this[_0x37f1ec(0x1ba)][_0x37f1ec(0x1b3)](_0x1d1feb,_0x36a7aa,_0xc0fa1d['replyId']);_0x14cbae&&_0x14cbae[_0x37f1ec(0x214)]&&this['_threadCommentModel'][_0x37f1ec(0x1ca)](_0x1d1feb,_0x36a7aa,_0xc0fa1d[_0x37f1ec(0x19c)]);break;}case I[_0x37f1ec(0x1bb)]:{this['_threadCommentModel'][_0x37f1ec(0x1ee)](_0x1d1feb,_0x36a7aa,{'commentId':_0xc0fa1d[_0x37f1ec(0x19c)],'text':JSON['parse'](_0xc0fa1d[_0x37f1ec(0x1ac)])});break;}case I[_0x37f1ec(0x1e9)]:{const _0x12dd19=(_0x53d495=this['_threadCommentModel'][_0x37f1ec(0x1f4)](_0xc0fa1d[_0x37f1ec(0x205)])[_0x37f1ec(0x195)](_0x411d04=>_0x411d04[_0x37f1ec(0x1dd)]===_0xc0fa1d[_0x37f1ec(0x1dd)]))==null?void 0x0:_0x53d495[_0x37f1ec(0x201)];_0x12dd19&&this[_0x37f1ec(0x1ba)]['resolveComment'](_0x1d1feb,_0x36a7aa,_0x12dd19['id'],_0xc0fa1d[_0x37f1ec(0x213)]===v[_0x37f1ec(0x1c1)]);break;}}}));}};S=A([_(0x0,c[_0x11de75(0x1b5)](C[_0x11de75(0x1a5)])),_(0x1,c[_0x11de75(0x1b5)](P[_0x11de75(0x20e)])),_(0x2,c['Inject'](c[_0x11de75(0x1ae)])),_(0x3,c[_0x11de75(0x1b5)](c['Injector']))],S);const x=_0x11de75(0x1e1),D={};var Y=Object['defineProperty'],G=Object['getOwnPropertyDescriptor'],H=(_0xd42890,_0x1f12c2,_0x577c18,_0x43326d)=>{for(var _0x24e6f4=_0x43326d>0x1?void 0x0:_0x43326d?G(_0x1f12c2,_0x577c18):_0x1f12c2,_0x2f54dc=_0xd42890['length']-0x1,_0x501f0f;_0x2f54dc>=0x0;_0x2f54dc--)(_0x501f0f=_0xd42890[_0x2f54dc])&&(_0x24e6f4=(_0x43326d?_0x501f0f(_0x1f12c2,_0x577c18,_0x24e6f4):_0x501f0f(_0x24e6f4))||_0x24e6f4);return _0x43326d&&_0x24e6f4&&Y(_0x1f12c2,_0x577c18,_0x24e6f4),_0x24e6f4;},p=(_0x2630ab,_0x2a4b35)=>(_0x500671,_0x422d7e)=>_0x2a4b35(_0x500671,_0x422d7e,_0x2630ab);function J(_0x1e87ea,_0x874a40){const _0x649e4f=_0x11de75,_0x284279=_0x1e87ea[_0x649e4f(0x1d4)][0x0];return{..._0x874a40,'id':_0x284279[_0x649e4f(0x19c)],'resolved':_0x1e87ea[_0x649e4f(0x213)]===0x1,'dT':g(_0x284279[_0x649e4f(0x203)]),'personId':_0x284279[_0x649e4f(0x19b)],'threadId':_0x284279['threadId']};}function F(_0x199ea2,_0xac037c,_0x4d3835){const _0x276b41=_0x11de75;var _0x280373,_0x4647d8;if(((_0x4647d8=(_0x280373=_0x199ea2==null?void 0x0:_0x199ea2[_0x276b41(0x1d4)])==null?void 0x0:_0x280373[_0x276b41(0x19a)])!=null?_0x4647d8:0x0)>0x0){const _0x9f4f5a=(_0x51ba9a,_0x215055)=>({'id':_0x51ba9a[_0x276b41(0x19c)],'threadId':_0x51ba9a[_0x276b41(0x1dd)],'dT':g(_0x51ba9a[_0x276b41(0x203)]),'personId':_0x51ba9a[_0x276b41(0x19b)],'resolved':_0x199ea2['solved']===v[_0x276b41(0x1c1)],'unitId':_0xac037c,'subUnitId':_0x4d3835,'text':JSON['parse'](_0x51ba9a['content']),'parentId':_0x215055}),_0x5d11f0=_0x9f4f5a(_0x199ea2[_0x276b41(0x1d4)][0x0]);return{..._0x5d11f0,'children':_0x199ea2[_0x276b41(0x1d4)][_0x276b41(0x1b6)](0x1)[_0x276b41(0x1f0)](_0x20fd02=>_0x9f4f5a(_0x20fd02,_0x5d11f0['id']))};}return null;}function _0x3919(){const _0x1a7251=['_threadCommentDataSource','Plugin','symbol','/universer-api/user/list','UniverCollaborationClientPlugin','_initUserSync','replies','@univerjs-pro/collaboration-client','/solved','personId','addUser','payload','/universer-api/comment/unit/','Add','bufferTime','threadId','reply','Delete','10024UlEXlV','thread-comment-data-source.config','addComment','resolved','105puVMCo','@univerjs/core','rxjs','onStarting','13Vzwrbf','Solve','syncUpdateMutationToColla','user','error','dataSource','updateComment','COMMENT','map','43062WRNFDq','getCurrentUser','userID','getUnit','Injector','@univerjs-pro/license','pluginName','format','CustomRangeType','comments','defineProperty','IConfigService','customRanges','UNRECOGNIZED','get','_httpService','root','12WBNhsP','createTimestamp','79428yWCgyF','unitId','DependentOn','OpenOrReOpen','body','HTTPService','/add','values','setConfig','YYYY/MM/DD\x20HH:mm','ThreadCommentModel','473XrHBcJ','code','subscribe','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','solved','parentId','656932XhHkDR','saveCommentToSnapshot','82770qoPoRI','find','toStringTag','UNIVER_UNKNOWN','1125725ExNnpH','delete','length','userId','replyId','_threadCommentDataSourceService','_configService','_config','_injector','/edit','Reply','6xSlAxc','add','CommentService','requireSession','dayjs','rangeType','@univerjs/thread-comment','UniverThreadCommentUIPlugin','11783707NLaQaf','content','getMemberID','UserManagerService','forEach','type','_commentService','users','getComment','Disposable','Inject','slice','_init','post','rangeId','_threadCommentModel','Edit','_sessionService','1872NhAKyE','ref','disposeWithMe','UniverThreadCommentDataSourcePlugin','Solved','_userService','filter','CollaborationSessionService','parse','getUser','onReady','commentUpdate$','getOwnPropertyDescriptor','deleteComment','stringify','_initDataSource','size'];_0x3919=function(){return _0x1a7251;};return _0x3919();}let f=class{constructor(_0x3a4815,_0x579f0b,_0x15e049,_0x38a4d9){const _0x4d739c=_0x11de75;this['_httpService']=_0x3a4815,this['_userService']=_0x579f0b,this[_0x4d739c(0x1bc)]=_0x15e049,this[_0x4d739c(0x1a0)]=_0x38a4d9;}async[_0x11de75(0x1e2)](_0x8efd15){const _0x2bd31d=_0x11de75;var _0x110394,_0x30cc0a;const {parentId:_0xb41d59,unitId:_0x226ade,text:_0x7b12fb,threadId:_0x2b72d5}=_0x8efd15,_0x27d63b=(_0x30cc0a=(_0x110394=_0x7b12fb[_0x2bd31d(0x1fd)])==null?void 0x0:_0x110394[_0x2bd31d(0x1c3)](_0x26951d=>_0x26951d['rangeType']===c[_0x2bd31d(0x1f9)][_0x2bd31d(0x1ef)])[_0x2bd31d(0x1f0)](_0x423b47=>_0x423b47[_0x2bd31d(0x1b9)]))!=null?_0x30cc0a:[],_0x2f8518=JSON[_0x2bd31d(0x1cb)](_0x7b12fb),_0x213b43=(await this[_0x2bd31d(0x1bc)][_0x2bd31d(0x1a6)](_0x226ade))[_0x2bd31d(0x1ad)]();if(_0xb41d59){const _0x36ec3e={'memberId':_0x213b43,'unitId':_0x226ade,'content':_0x2f8518,'mention':_0x27d63b,'threadId':_0x2b72d5},_0x471f2f=(await this[_0x2bd31d(0x200)]['post'](_0x2bd31d(0x1da)+_0x226ade+'/reply',{'body':_0x36ec3e}))[_0x2bd31d(0x208)][_0x2bd31d(0x1de)];return{..._0x8efd15,'id':_0x471f2f[_0x2bd31d(0x19c)],'dT':c['dayjs'](+_0x471f2f[_0x2bd31d(0x203)])[_0x2bd31d(0x1f8)](_0x2bd31d(0x20d)),'personId':_0x471f2f[_0x2bd31d(0x19b)]};}else{const _0x4d7456={'memberId':_0x213b43,'unitId':_0x226ade,'content':_0x2f8518,'mention':_0x27d63b},_0x19b51d=await this['_httpService'][_0x2bd31d(0x1b8)](_0x2bd31d(0x1da)+_0x226ade+_0x2bd31d(0x20a),{'body':_0x4d7456});return J(_0x19b51d[_0x2bd31d(0x208)]['comment'],_0x8efd15);}}async[_0x11de75(0x1ee)](_0x277392){const _0x22c3f6=_0x11de75;var _0x4f50f2,_0x203a07;const {text:_0x1b7786,unitId:_0x44389e}=_0x277392,_0x36b045=(_0x203a07=(_0x4f50f2=_0x1b7786['customRanges'])==null?void 0x0:_0x4f50f2[_0x22c3f6(0x1c3)](_0x3bfa87=>_0x3bfa87[_0x22c3f6(0x1a8)]===c['CustomRangeType'][_0x22c3f6(0x1ef)])[_0x22c3f6(0x1f0)](_0x486a9c=>_0x486a9c['rangeId']))!=null?_0x203a07:[],_0x41c4a0=JSON[_0x22c3f6(0x1cb)](_0x1b7786),_0x5281c0=_0x277392[_0x22c3f6(0x1dd)],_0x3bd6e2=_0x277392['id'],_0x45fed6={'memberId':(await this[_0x22c3f6(0x1bc)][_0x22c3f6(0x1a6)](_0x44389e))[_0x22c3f6(0x1ad)](),'unitId':_0x44389e,'threadId':_0x5281c0,'mention':_0x36b045,'content':_0x41c4a0,'replyId':_0x3bd6e2},_0x137a17=await this[_0x22c3f6(0x200)][_0x22c3f6(0x1b8)](_0x22c3f6(0x1da)+_0x44389e+_0x22c3f6(0x1a1),{'body':_0x45fed6});return!_0x137a17['body'][_0x22c3f6(0x1ec)]||_0x137a17[_0x22c3f6(0x208)][_0x22c3f6(0x1ec)][_0x22c3f6(0x210)]===0x1;}async['resolveComment'](_0x5202ab){const _0x5dc740=_0x11de75,{unitId:_0x5679a8}=_0x5202ab,_0x4e3cb5=_0x5202ab[_0x5dc740(0x1dd)],_0x16b3a0={'memberId':this[_0x5dc740(0x1c2)][_0x5dc740(0x1f2)]()['userID'],'unitId':_0x5679a8,'threadId':_0x4e3cb5,'solved':_0x5202ab[_0x5dc740(0x1e3)]?v[_0x5dc740(0x1c1)]:v['OpenOrReOpen']},_0x5e845e=await this[_0x5dc740(0x200)][_0x5dc740(0x1b8)]('/universer-api/comment/unit/'+_0x5679a8+_0x5dc740(0x1d6),{'body':_0x16b3a0});return!_0x5e845e[_0x5dc740(0x208)]['error']||_0x5e845e[_0x5dc740(0x208)][_0x5dc740(0x1ec)][_0x5dc740(0x210)]===0x1;}async[_0x11de75(0x1ca)](_0x1f93b5,_0x26ae86,_0x27cb66,_0x3a1d0b){const _0x140f7f=_0x11de75,_0x2fa5b6={'memberId':(await this['_sessionService'][_0x140f7f(0x1a6)](_0x1f93b5))[_0x140f7f(0x1ad)](),'threadId':_0x27cb66,'replyId':_0x3a1d0b,'unitId':_0x1f93b5},_0xe067f8=await this[_0x140f7f(0x200)][_0x140f7f(0x1b8)](_0x140f7f(0x1da)+_0x1f93b5+'/delete',{'body':_0x2fa5b6});return!_0xe067f8[_0x140f7f(0x208)]['error']||_0xe067f8['body']['error'][_0x140f7f(0x210)]===0x1;}async['listComments'](_0x1a0928,_0x979eac,_0x26c037){const _0x37cac6=_0x11de75,_0x5eed04={'unitId':_0x1a0928,'threadId':_0x26c037},_0x463f38=await this[_0x37cac6(0x200)]['post'](_0x37cac6(0x1da)+_0x1a0928+'/list',{'body':_0x5eed04}),_0x60f7d4=_0x26c037[_0x37cac6(0x1f0)](_0x3271db=>F(_0x463f38['body'][_0x37cac6(0x1fa)][_0x3271db],_0x1a0928,_0x979eac))['filter'](Boolean);return Object[_0x37cac6(0x20b)](_0x463f38[_0x37cac6(0x208)][_0x37cac6(0x1b2)])[_0x37cac6(0x1af)](_0x565c5e=>{const _0x58ab59=_0x37cac6;this[_0x58ab59(0x1c2)][_0x58ab59(0x1d8)](_0x565c5e);}),_0x60f7d4;}[_0x11de75(0x216)](_0x35109f){const _0x1ef2ff=_0x11de75;return{'id':_0x35109f['id'],'threadId':_0x35109f[_0x1ef2ff(0x1dd)],'ref':_0x35109f[_0x1ef2ff(0x1be)]};}};f=H([p(0x0,c[_0x11de75(0x1b5)](M['HTTPService'])),p(0x1,c[_0x11de75(0x1b5)](c[_0x11de75(0x1ae)])),p(0x2,c[_0x11de75(0x1b5)](C[_0x11de75(0x1c4)])),p(0x3,c[_0x11de75(0x1b5)](c[_0x11de75(0x1f5)]))],f);function _0x39d1(_0x5d077b,_0x5b470b){const _0x3919f0=_0x3919();return _0x39d1=function(_0x39d169,_0x15952d){_0x39d169=_0x39d169-0x194;let _0x58f4b3=_0x3919f0[_0x39d169];return _0x58f4b3;},_0x39d1(_0x5d077b,_0x5b470b);}var L=Object[_0x11de75(0x1fb)],Z=Object['getOwnPropertyDescriptor'],W=(_0x3cbedc,_0x330da1,_0x12d40c,_0x1f0fa3)=>{const _0x661236=_0x11de75;for(var _0x59aa5c=_0x1f0fa3>0x1?void 0x0:_0x1f0fa3?Z(_0x330da1,_0x12d40c):_0x330da1,_0x4f5b51=_0x3cbedc[_0x661236(0x19a)]-0x1,_0x252b07;_0x4f5b51>=0x0;_0x4f5b51--)(_0x252b07=_0x3cbedc[_0x4f5b51])&&(_0x59aa5c=(_0x1f0fa3?_0x252b07(_0x330da1,_0x12d40c,_0x59aa5c):_0x252b07(_0x59aa5c))||_0x59aa5c);return _0x1f0fa3&&_0x59aa5c&&L(_0x330da1,_0x12d40c,_0x59aa5c),_0x59aa5c;},O=(_0x181852,_0x5bbc4c)=>(_0x540278,_0x44ee98)=>_0x5bbc4c(_0x540278,_0x44ee98,_0x181852);let b=class extends c[_0x11de75(0x1b4)]{constructor(_0x4b5102,_0x5f4822){super(),this['_threadCommentDataSourceService']=_0x4b5102,this['_threadCommentDataSource']=_0x5f4822,this['_initDataSource']();}[_0x11de75(0x1cc)](){const _0xa156b8=_0x11de75;this['_threadCommentDataSourceService'][_0xa156b8(0x1ed)]=this[_0xa156b8(0x1ce)],this[_0xa156b8(0x19d)][_0xa156b8(0x1ea)]=!0x1;}};b=W([O(0x0,P['IThreadCommentDataSourceService']),O(0x1,c['Inject'](f))],b);var j=Object[_0x11de75(0x1fb)],B=Object[_0x11de75(0x1c9)],K=(_0x41cfb9,_0x434464,_0x31fd92)=>_0x434464 in _0x41cfb9?j(_0x41cfb9,_0x434464,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31fd92}):_0x41cfb9[_0x434464]=_0x31fd92,V=(_0x3b786e,_0x14b5ef,_0x25c931,_0x422f07)=>{const _0x41374b=_0x11de75;for(var _0x4e5a04=_0x422f07>0x1?void 0x0:_0x422f07?B(_0x14b5ef,_0x25c931):_0x14b5ef,_0xeec1b6=_0x3b786e[_0x41374b(0x19a)]-0x1,_0x173919;_0xeec1b6>=0x0;_0xeec1b6--)(_0x173919=_0x3b786e[_0xeec1b6])&&(_0x4e5a04=(_0x422f07?_0x173919(_0x14b5ef,_0x25c931,_0x4e5a04):_0x173919(_0x4e5a04))||_0x4e5a04);return _0x422f07&&_0x4e5a04&&j(_0x14b5ef,_0x25c931,_0x4e5a04),_0x4e5a04;},y=(_0x2b100c,_0x1ba416)=>(_0x555711,_0x2907bc)=>_0x1ba416(_0x555711,_0x2907bc,_0x2b100c),N=(_0x3ccc7a,_0x3e9801,_0x17396b)=>K(_0x3ccc7a,typeof _0x3e9801!=_0x11de75(0x1d0)?_0x3e9801+'':_0x3e9801,_0x17396b);exports[_0x11de75(0x1c0)]=class extends c[_0x11de75(0x1cf)]{constructor(_0x45e766=D,_0x2eaacb,_0x3adafe){const _0x17cfd3=_0x11de75;super(),this['_config']=_0x45e766,this['_injector']=_0x2eaacb,this[_0x17cfd3(0x19e)]=_0x3adafe;const {..._0x35947f}=c['merge']({},D,this[_0x17cfd3(0x19f)]);this['_configService'][_0x17cfd3(0x20c)](x,_0x35947f);}[_0x11de75(0x1e7)](){const _0x2d5f5a=_0x11de75;[[f],[b],[S]][_0x2d5f5a(0x1af)](_0x151746=>{const _0x37bd34=_0x2d5f5a;this['_injector'][_0x37bd34(0x1a4)](_0x151746);});}[_0x11de75(0x1c7)](){const _0x59b35b=_0x11de75;this['_injector'][_0x59b35b(0x1ff)](b),this[_0x59b35b(0x1a0)]['get'](S);}},N(exports[_0x11de75(0x1c0)],_0x11de75(0x1f7),R),N(exports['UniverThreadCommentDataSourcePlugin'],_0x11de75(0x1b0),c['UniverInstanceType'][_0x11de75(0x197)]),exports['UniverThreadCommentDataSourcePlugin']=V([c[_0x11de75(0x206)](w[_0x11de75(0x1aa)],C[_0x11de75(0x1d2)],T['UniverLicensePlugin']),y(0x1,c[_0x11de75(0x1b5)](c['Injector'])),y(0x2,c[_0x11de75(0x1fc)])],exports[_0x11de75(0x1c0)]);
|
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 _0x3f5229=_0x1ff6;(function(_0x134e86,_0x4bd294){const _0x12482e=_0x1ff6,_0xbaea29=_0x134e86();while(!![]){try{const _0x9c903d=-parseInt(_0x12482e(0xf1))/0x1+-parseInt(_0x12482e(0x107))/0x2+-parseInt(_0x12482e(0x128))/0x3+-parseInt(_0x12482e(0x106))/0x4+parseInt(_0x12482e(0x155))/0x5*(-parseInt(_0x12482e(0x13a))/0x6)+-parseInt(_0x12482e(0x153))/0x7+parseInt(_0x12482e(0x144))/0x8;if(_0x9c903d===_0x4bd294)break;else _0xbaea29['push'](_0xbaea29['shift']());}catch(_0x23f50c){_0xbaea29['push'](_0xbaea29['shift']());}}}(_0x112c,0xace37));import{CommentService as _0x1516e,CollaborationSessionService as _0x1a1f27,UniverCollaborationClientPlugin as _0x46616f}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x4829b5}from'@univerjs-pro/license';function _0x112c(){const _0x1c3926=['root','size','_threadCommentModel','userID','_initDataSource','user','COMMENT','rangeId','Add','createTimestamp','getComment','7367862vXvFwY','add','saveCommentToSnapshot','pluginName','getMemberID','Solved','type','post','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','stringify','42955944dRmrrF','slice','/reply','error','personId','getOwnPropertyDescriptor','content','updateComment','customRanges','Solve','payload','rangeType','_httpService','parentId','userId','9634646jIOdvP','users','5WhRgJk','dataSource','UNIVER_UNKNOWN','map','226374pRQUsW','subscribe','_sessionService','/universer-api/comment/unit/','parse','body','length','resolveComment','_commentService','_injector','YYYY/MM/DD\x20HH:mm','unitId','deleteComment','Reply','_threadCommentDataSource','OpenOrReOpen','commentUpdate$','Delete','getUser','UNRECOGNIZED','onStarting','1037016sJRWtQ','2383510fHxExu','threadId','/add','onReady','getCurrentUser','find','setConfig','defineProperty','listComments','_initUserSync','thread-comment-data-source.config','Edit','forEach','addComment','replyId','reply','get','_userService','symbol','replies','/list','_init','_configService','/delete','comments','syncUpdateMutationToColla','solved','pipe','comment','Unknown','requireSession','getUnit','_threadCommentDataSourceService','1138812RfEPRm','addUser','code','filter','delete','_config','/edit'];_0x112c=function(){return _0x1c3926;};return _0x112c();}import{dayjs as _0x59339a,UserManagerService as _0x50d73b,Inject as _0x1f4ba7,Injector as _0x2ab83d,Disposable as _0x9392aa,CustomRangeType as _0x444920,UniverInstanceType as _0x5cf0b9,DependentOn as _0x3d0254,Plugin as _0x2c4362,merge as _0x3821d8,IConfigService as _0x152d5b}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x2162a4}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x4d23f2,IThreadCommentDataSourceService as _0xe5f759}from'@univerjs/thread-comment';import{bufferTime as _0x3492c7}from'rxjs';import{HTTPService as _0x26efcb}from'@univerjs/network';const B=_0x3f5229(0x142);function _0x1ff6(_0x1ab538,_0x1cc5a2){const _0x112cf6=_0x112c();return _0x1ff6=function(_0x1ff641,_0x404c4e){_0x1ff641=_0x1ff641-0xf1;let _0x18fee0=_0x112cf6[_0x1ff641];return _0x18fee0;},_0x1ff6(_0x1ab538,_0x1cc5a2);}var _=(_0x5017d3=>(_0x5017d3[_0x5017d3[_0x3f5229(0x100)]=0x0]='OpenOrReOpen',_0x5017d3[_0x5017d3['Solved']=0x1]=_0x3f5229(0x13f),_0x5017d3[_0x5017d3[_0x3f5229(0x104)]=-0x1]=_0x3f5229(0x104),_0x5017d3))(_||{}),p=(_0x55c025=>(_0x55c025[_0x55c025[_0x3f5229(0x124)]=0x0]=_0x3f5229(0x124),_0x55c025[_0x55c025[_0x3f5229(0x137)]=0x1]=_0x3f5229(0x137),_0x55c025[_0x55c025[_0x3f5229(0xfe)]=0x2]='Reply',_0x55c025[_0x55c025['Edit']=0x3]='Edit',_0x55c025[_0x55c025['Delete']=0x4]='Delete',_0x55c025[_0x55c025['Solve']=0x5]='Solve',_0x55c025[_0x55c025['UNRECOGNIZED']=-0x1]=_0x3f5229(0x104),_0x55c025))(p||{});const O=_0x1e2f9b=>_0x59339a(new Date(+_0x1e2f9b))['format'](_0x3f5229(0xfb)),K=async(_0x543b8c,_0x5c5e8b)=>{const _0x295d76=_0x3f5229,_0xeb307d=_0x543b8c['get'](_0x50d73b),_0x40b37a=_0x543b8c['get'](_0x26efcb);_0x5c5e8b[_0x295d76(0x113)](_0x1e7f58=>{const _0x1ed5aa=_0x295d76;_0xeb307d[_0x1ed5aa(0x103)](_0x1e7f58)&&_0x5c5e8b[_0x1ed5aa(0x12c)](_0x1e7f58);}),_0x5c5e8b[_0x295d76(0x130)]&&(await _0x40b37a[_0x295d76(0x117)]('/universer-api/user/list',{'params':{'userIDs':[..._0x5c5e8b]}}))[_0x295d76(0xf6)][_0x295d76(0x154)][_0x295d76(0x113)](_0x30d841=>{const _0x312ff6=_0x295d76;_0x30d841&&_0xeb307d[_0x312ff6(0x129)](_0x30d841);});};var V=Object[_0x3f5229(0x10e)],z=Object['getOwnPropertyDescriptor'],Q=(_0x5a54ac,_0x3e9fa7,_0x550c6b,_0x149b3c)=>{const _0x48f1a8=_0x3f5229;for(var _0x199624=_0x149b3c>0x1?void 0x0:_0x149b3c?z(_0x3e9fa7,_0x550c6b):_0x3e9fa7,_0x4467b8=_0x5a54ac[_0x48f1a8(0xf7)]-0x1,_0x3d8ce9;_0x4467b8>=0x0;_0x4467b8--)(_0x3d8ce9=_0x5a54ac[_0x4467b8])&&(_0x199624=(_0x149b3c?_0x3d8ce9(_0x3e9fa7,_0x550c6b,_0x199624):_0x3d8ce9(_0x199624))||_0x199624);return _0x149b3c&&_0x199624&&V(_0x3e9fa7,_0x550c6b,_0x199624),_0x199624;},v=(_0x31dce9,_0x38d11b)=>(_0x5982ea,_0x259763)=>_0x38d11b(_0x5982ea,_0x259763,_0x31dce9);let I=class extends _0x9392aa{constructor(_0x4ca645,_0x549cc4,_0x1b82e8,_0xfc2b9a){const _0x3bfec2=_0x3f5229;super(),this[_0x3bfec2(0xf9)]=_0x4ca645,this[_0x3bfec2(0x131)]=_0x549cc4,this[_0x3bfec2(0x118)]=_0x1b82e8,this[_0x3bfec2(0xfa)]=_0xfc2b9a,this[_0x3bfec2(0x11c)](),this[_0x3bfec2(0x110)]();}[_0x3f5229(0x110)](){const _0x4a9fd2=_0x3f5229;this['disposeWithMe'](this[_0x4a9fd2(0x131)][_0x4a9fd2(0x101)][_0x4a9fd2(0x122)](_0x3492c7(0x10))[_0x4a9fd2(0xf2)](_0x6610cf=>{const _0x251fda=_0x4a9fd2,_0x4d7c4c=new Set();_0x6610cf[_0x251fda(0x113)](_0x1ebf80=>{const _0x484b71=_0x251fda;switch(_0x1ebf80['type']){case _0x484b71(0x13b):{const _0x17b803=_0x1ebf80[_0x484b71(0x14e)][_0x484b71(0x148)];_0x4d7c4c[_0x484b71(0x13b)](_0x17b803);break;}}}),K(this['_injector'],_0x4d7c4c);}));}[_0x3f5229(0x11c)](){const _0x235760=_0x3f5229;this['disposeWithMe'](this[_0x235760(0xf9)][_0x235760(0x101)]['subscribe'](async _0x56a524=>{const _0x105e28=_0x235760;var _0x1f7484,_0x5e2bae,_0x21aa12,_0x3c56aa;const _0x5de445=(_0x1f7484=this[_0x105e28(0x131)]['getUnit'](_0x56a524[_0x105e28(0xfc)])[_0x105e28(0x10c)](_0xfb734b=>_0xfb734b[_0x105e28(0x108)]===_0x56a524[_0x105e28(0x108)]))==null?void 0x0:_0x1f7484[_0x105e28(0x12f)];if(!_0x5de445)return;const {unitId:_0x1f97c0,subUnitId:_0x467f48}=_0x5de445;switch(_0x56a524['user']&&this[_0x105e28(0x118)][_0x105e28(0x129)](_0x56a524['user']),_0x56a524['type']){case p[_0x105e28(0x137)]:break;case p[_0x105e28(0xfe)]:{this['_threadCommentModel'][_0x105e28(0x114)](_0x1f97c0,_0x467f48,{'unitId':_0x1f97c0,'subUnitId':_0x467f48,'ref':'','id':_0x56a524[_0x105e28(0x115)],'dT':O(+_0x56a524['createTimestamp']),'threadId':_0x56a524[_0x105e28(0x108)],'personId':(_0x21aa12=(_0x5e2bae=_0x56a524[_0x105e28(0x134)])==null?void 0x0:_0x5e2bae[_0x105e28(0x132)])!=null?_0x21aa12:_0x56a524[_0x105e28(0x152)],'text':JSON[_0x105e28(0xf5)](_0x56a524[_0x105e28(0x14a)]),'parentId':_0x5de445['id']});break;}case p[_0x105e28(0x102)]:{const _0x2c436e=this[_0x105e28(0x131)][_0x105e28(0x139)](_0x1f97c0,_0x467f48,_0x56a524['replyId']);_0x2c436e&&_0x2c436e[_0x105e28(0x151)]&&this[_0x105e28(0x131)][_0x105e28(0xfd)](_0x1f97c0,_0x467f48,_0x56a524['replyId']);break;}case p[_0x105e28(0x112)]:{this['_threadCommentModel'][_0x105e28(0x14b)](_0x1f97c0,_0x467f48,{'commentId':_0x56a524[_0x105e28(0x115)],'text':JSON[_0x105e28(0xf5)](_0x56a524['content'])});break;}case p[_0x105e28(0x14d)]:{const _0x20fbe3=(_0x3c56aa=this[_0x105e28(0x131)][_0x105e28(0x126)](_0x56a524[_0x105e28(0xfc)])[_0x105e28(0x10c)](_0xebb7c5=>_0xebb7c5['threadId']===_0x56a524[_0x105e28(0x108)]))==null?void 0x0:_0x3c56aa[_0x105e28(0x12f)];_0x20fbe3&&this['_threadCommentModel'][_0x105e28(0xf8)](_0x1f97c0,_0x467f48,_0x20fbe3['id'],_0x56a524['solved']===_[_0x105e28(0x13f)]);break;}}}));}};I=Q([v(0x0,_0x1f4ba7(_0x1516e)),v(0x1,_0x1f4ba7(_0x4d23f2)),v(0x2,_0x1f4ba7(_0x50d73b)),v(0x3,_0x1f4ba7(_0x2ab83d))],I);const X=_0x3f5229(0x111),P={};var k=Object['defineProperty'],ee=Object[_0x3f5229(0x149)],re=(_0x393831,_0x1fc62d,_0x5d176b,_0x1c4ad0)=>{const _0x173dcb=_0x3f5229;for(var _0x202497=_0x1c4ad0>0x1?void 0x0:_0x1c4ad0?ee(_0x1fc62d,_0x5d176b):_0x1fc62d,_0x5bd99e=_0x393831[_0x173dcb(0xf7)]-0x1,_0x2dda9f;_0x5bd99e>=0x0;_0x5bd99e--)(_0x2dda9f=_0x393831[_0x5bd99e])&&(_0x202497=(_0x1c4ad0?_0x2dda9f(_0x1fc62d,_0x5d176b,_0x202497):_0x2dda9f(_0x202497))||_0x202497);return _0x1c4ad0&&_0x202497&&k(_0x1fc62d,_0x5d176b,_0x202497),_0x202497;},f=(_0x372e03,_0x5d68b1)=>(_0xe1c75a,_0x41d445)=>_0x5d68b1(_0xe1c75a,_0x41d445,_0x372e03);function te(_0x230433,_0x4ba229){const _0x3931fa=_0x3f5229,_0x30dc21=_0x230433['replies'][0x0];return{..._0x4ba229,'id':_0x30dc21[_0x3931fa(0x115)],'resolved':_0x230433[_0x3931fa(0x121)]===0x1,'dT':O(_0x30dc21[_0x3931fa(0x138)]),'personId':_0x30dc21[_0x3931fa(0x152)],'threadId':_0x30dc21[_0x3931fa(0x108)]};}function se(_0x75da62,_0x38d7ae,_0x4d9d94){const _0x202072=_0x3f5229;var _0x1453f3,_0x3a7f3c;if(((_0x3a7f3c=(_0x1453f3=_0x75da62==null?void 0x0:_0x75da62[_0x202072(0x11a)])==null?void 0x0:_0x1453f3[_0x202072(0xf7)])!=null?_0x3a7f3c:0x0)>0x0){const _0x40575a=(_0x108f1a,_0x58d33a)=>({'id':_0x108f1a[_0x202072(0x115)],'threadId':_0x108f1a['threadId'],'dT':O(_0x108f1a[_0x202072(0x138)]),'personId':_0x108f1a[_0x202072(0x152)],'resolved':_0x75da62[_0x202072(0x121)]===_[_0x202072(0x13f)],'unitId':_0x38d7ae,'subUnitId':_0x4d9d94,'text':JSON[_0x202072(0xf5)](_0x108f1a['content']),'parentId':_0x58d33a}),_0x5b4940=_0x40575a(_0x75da62['replies'][0x0]);return{..._0x5b4940,'children':_0x75da62[_0x202072(0x11a)][_0x202072(0x145)](0x1)[_0x202072(0x158)](_0x50aa74=>_0x40575a(_0x50aa74,_0x5b4940['id']))};}return null;}let S=class{constructor(_0x2dff05,_0x8b8413,_0x5d51d3,_0x4d3472){const _0x32d623=_0x3f5229;this[_0x32d623(0x150)]=_0x2dff05,this[_0x32d623(0x118)]=_0x8b8413,this[_0x32d623(0xf3)]=_0x5d51d3,this['_injector']=_0x4d3472;}async[_0x3f5229(0x114)](_0x2e3334){const _0x577ec4=_0x3f5229;var _0x36b2be,_0x426b5f;const {parentId:_0x2760f,unitId:_0x86838d,text:_0x5d1867,threadId:_0x5ac60c}=_0x2e3334,_0x2f6b13=(_0x426b5f=(_0x36b2be=_0x5d1867[_0x577ec4(0x14c)])==null?void 0x0:_0x36b2be[_0x577ec4(0x12b)](_0x1e9b22=>_0x1e9b22[_0x577ec4(0x14f)]===_0x444920[_0x577ec4(0x135)])[_0x577ec4(0x158)](_0x3c73a2=>_0x3c73a2[_0x577ec4(0x136)]))!=null?_0x426b5f:[],_0x435e9b=JSON[_0x577ec4(0x143)](_0x5d1867),_0x31ea11=(await this[_0x577ec4(0xf3)][_0x577ec4(0x125)](_0x86838d))[_0x577ec4(0x13e)]();if(_0x2760f){const _0x2680a7={'memberId':_0x31ea11,'unitId':_0x86838d,'content':_0x435e9b,'mention':_0x2f6b13,'threadId':_0x5ac60c},_0x134a7c=(await this[_0x577ec4(0x150)]['post'](_0x577ec4(0xf4)+_0x86838d+_0x577ec4(0x146),{'body':_0x2680a7}))[_0x577ec4(0xf6)][_0x577ec4(0x116)];return{..._0x2e3334,'id':_0x134a7c['replyId'],'dT':_0x59339a(+_0x134a7c[_0x577ec4(0x138)])['format']('YYYY/MM/DD\x20HH:mm'),'personId':_0x134a7c['userId']};}else{const _0xca27eb={'memberId':_0x31ea11,'unitId':_0x86838d,'content':_0x435e9b,'mention':_0x2f6b13},_0x375a89=await this[_0x577ec4(0x150)]['post'](_0x577ec4(0xf4)+_0x86838d+_0x577ec4(0x109),{'body':_0xca27eb});return te(_0x375a89['body'][_0x577ec4(0x123)],_0x2e3334);}}async[_0x3f5229(0x14b)](_0x5adeb3){const _0x1bb634=_0x3f5229;var _0x15ce67,_0x169ae1;const {text:_0x3cc968,unitId:_0x50c3ed}=_0x5adeb3,_0x273f9f=(_0x169ae1=(_0x15ce67=_0x3cc968[_0x1bb634(0x14c)])==null?void 0x0:_0x15ce67['filter'](_0x208a9b=>_0x208a9b[_0x1bb634(0x14f)]===_0x444920[_0x1bb634(0x135)])[_0x1bb634(0x158)](_0x2aee66=>_0x2aee66[_0x1bb634(0x136)]))!=null?_0x169ae1:[],_0x34c70f=JSON[_0x1bb634(0x143)](_0x3cc968),_0x1e9121=_0x5adeb3[_0x1bb634(0x108)],_0x1a4e2b=_0x5adeb3['id'],_0x3407ca={'memberId':(await this['_sessionService'][_0x1bb634(0x125)](_0x50c3ed))[_0x1bb634(0x13e)](),'unitId':_0x50c3ed,'threadId':_0x1e9121,'mention':_0x273f9f,'content':_0x34c70f,'replyId':_0x1a4e2b},_0x5ffa51=await this[_0x1bb634(0x150)]['post']('/universer-api/comment/unit/'+_0x50c3ed+_0x1bb634(0x12e),{'body':_0x3407ca});return!_0x5ffa51[_0x1bb634(0xf6)][_0x1bb634(0x147)]||_0x5ffa51[_0x1bb634(0xf6)][_0x1bb634(0x147)][_0x1bb634(0x12a)]===0x1;}async[_0x3f5229(0xf8)](_0x4ec185){const _0x39fb9b=_0x3f5229,{unitId:_0xc6272f}=_0x4ec185,_0x5d4b21=_0x4ec185['threadId'],_0xb09c4c={'memberId':this[_0x39fb9b(0x118)][_0x39fb9b(0x10b)]()[_0x39fb9b(0x132)],'unitId':_0xc6272f,'threadId':_0x5d4b21,'solved':_0x4ec185['resolved']?_[_0x39fb9b(0x13f)]:_['OpenOrReOpen']},_0x3fc6db=await this['_httpService'][_0x39fb9b(0x141)]('/universer-api/comment/unit/'+_0xc6272f+'/solved',{'body':_0xb09c4c});return!_0x3fc6db['body'][_0x39fb9b(0x147)]||_0x3fc6db[_0x39fb9b(0xf6)][_0x39fb9b(0x147)][_0x39fb9b(0x12a)]===0x1;}async['deleteComment'](_0x2a311a,_0x314dd1,_0x1df1c2,_0x4343e2){const _0x3f64f6=_0x3f5229,_0x4bb53f={'memberId':(await this[_0x3f64f6(0xf3)][_0x3f64f6(0x125)](_0x2a311a))['getMemberID'](),'threadId':_0x1df1c2,'replyId':_0x4343e2,'unitId':_0x2a311a},_0x4baa1b=await this[_0x3f64f6(0x150)][_0x3f64f6(0x141)](_0x3f64f6(0xf4)+_0x2a311a+_0x3f64f6(0x11e),{'body':_0x4bb53f});return!_0x4baa1b[_0x3f64f6(0xf6)]['error']||_0x4baa1b[_0x3f64f6(0xf6)]['error']['code']===0x1;}async[_0x3f5229(0x10f)](_0x1e1894,_0x4d9feb,_0x121112){const _0x53b539=_0x3f5229,_0x11117c={'unitId':_0x1e1894,'threadId':_0x121112},_0x1d7865=await this['_httpService'][_0x53b539(0x141)](_0x53b539(0xf4)+_0x1e1894+_0x53b539(0x11b),{'body':_0x11117c}),_0xac9126=_0x121112['map'](_0x54d99e=>se(_0x1d7865[_0x53b539(0xf6)][_0x53b539(0x11f)][_0x54d99e],_0x1e1894,_0x4d9feb))['filter'](Boolean);return Object['values'](_0x1d7865['body'][_0x53b539(0x154)])[_0x53b539(0x113)](_0x5ac8b5=>{const _0xefdbc6=_0x53b539;this[_0xefdbc6(0x118)][_0xefdbc6(0x129)](_0x5ac8b5);}),_0xac9126;}[_0x3f5229(0x13c)](_0x505543){const _0x10b945=_0x3f5229;return{'id':_0x505543['id'],'threadId':_0x505543[_0x10b945(0x108)],'ref':_0x505543['ref']};}};S=re([f(0x0,_0x1f4ba7(_0x26efcb)),f(0x1,_0x1f4ba7(_0x50d73b)),f(0x2,_0x1f4ba7(_0x1a1f27)),f(0x3,_0x1f4ba7(_0x2ab83d))],S);var oe=Object[_0x3f5229(0x10e)],ne=Object[_0x3f5229(0x149)],ie=(_0x34d577,_0x2b49e7,_0xcdc540,_0xdf0cab)=>{for(var _0x4dea37=_0xdf0cab>0x1?void 0x0:_0xdf0cab?ne(_0x2b49e7,_0xcdc540):_0x2b49e7,_0x147bd0=_0x34d577['length']-0x1,_0x3988f9;_0x147bd0>=0x0;_0x147bd0--)(_0x3988f9=_0x34d577[_0x147bd0])&&(_0x4dea37=(_0xdf0cab?_0x3988f9(_0x2b49e7,_0xcdc540,_0x4dea37):_0x3988f9(_0x4dea37))||_0x4dea37);return _0xdf0cab&&_0x4dea37&&oe(_0x2b49e7,_0xcdc540,_0x4dea37),_0x4dea37;},M=(_0x40241a,_0x293528)=>(_0x335c4f,_0x53ccda)=>_0x293528(_0x335c4f,_0x53ccda,_0x40241a);let b=class extends _0x9392aa{constructor(_0x5df79a,_0x59c440){const _0x216894=_0x3f5229;super(),this[_0x216894(0x127)]=_0x5df79a,this['_threadCommentDataSource']=_0x59c440,this[_0x216894(0x133)]();}[_0x3f5229(0x133)](){const _0x4891b6=_0x3f5229;this['_threadCommentDataSourceService'][_0x4891b6(0x156)]=this[_0x4891b6(0xff)],this[_0x4891b6(0x127)][_0x4891b6(0x120)]=!0x1;}};b=ie([M(0x0,_0xe5f759),M(0x1,_0x1f4ba7(S))],b);var $=Object[_0x3f5229(0x10e)],ce=Object[_0x3f5229(0x149)],ae=(_0xb5a2c9,_0x12c9ea,_0x2f1905)=>_0x12c9ea in _0xb5a2c9?$(_0xb5a2c9,_0x12c9ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f1905}):_0xb5a2c9[_0x12c9ea]=_0x2f1905,de=(_0x3c6637,_0x35e9b9,_0x22592b,_0x25f6db)=>{const _0x4d5183=_0x3f5229;for(var _0x1dfa77=_0x25f6db>0x1?void 0x0:_0x25f6db?ce(_0x35e9b9,_0x22592b):_0x35e9b9,_0x44c8b7=_0x3c6637[_0x4d5183(0xf7)]-0x1,_0x181994;_0x44c8b7>=0x0;_0x44c8b7--)(_0x181994=_0x3c6637[_0x44c8b7])&&(_0x1dfa77=(_0x25f6db?_0x181994(_0x35e9b9,_0x22592b,_0x1dfa77):_0x181994(_0x1dfa77))||_0x1dfa77);return _0x25f6db&&_0x1dfa77&&$(_0x35e9b9,_0x22592b,_0x1dfa77),_0x1dfa77;},N=(_0xe02fd1,_0x2e6c22)=>(_0x485e93,_0x196b1f)=>_0x2e6c22(_0x485e93,_0x196b1f,_0xe02fd1),j=(_0x4206df,_0x2a8d93,_0x222308)=>ae(_0x4206df,typeof _0x2a8d93!=_0x3f5229(0x119)?_0x2a8d93+'':_0x2a8d93,_0x222308);let C=class extends _0x2c4362{constructor(_0x467071=P,_0x526089,_0x322958){const _0x4e2f48=_0x3f5229;super(),this['_config']=_0x467071,this[_0x4e2f48(0xfa)]=_0x526089,this[_0x4e2f48(0x11d)]=_0x322958;const {..._0x48bdc8}=_0x3821d8({},P,this[_0x4e2f48(0x12d)]);this[_0x4e2f48(0x11d)][_0x4e2f48(0x10d)](X,_0x48bdc8);}[_0x3f5229(0x105)](){[[S],[b],[I]]['forEach'](_0x325652=>{const _0x456a6f=_0x1ff6;this[_0x456a6f(0xfa)]['add'](_0x325652);});}[_0x3f5229(0x10a)](){const _0x5e1b5c=_0x3f5229;this[_0x5e1b5c(0xfa)][_0x5e1b5c(0x117)](b),this[_0x5e1b5c(0xfa)]['get'](I);}};j(C,_0x3f5229(0x13d),B),j(C,_0x3f5229(0x140),_0x5cf0b9[_0x3f5229(0x157)]),C=de([_0x3d0254(_0x2162a4,_0x46616f,_0x4829b5),N(0x1,_0x1f4ba7(_0x2ab83d)),N(0x2,_0x152d5b)],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 _0x776e(){const _0x4a0393=['/universer-api/user/list','find','userID','UniverThreadCommentUi','140kWWdEc','syncUpdateMutationToColla','subscribe','394NMTzBH','/universer-api/comment/unit/','UserManagerService','90Bynwtk','UniverInstanceType','Disposable','Inject','/list','@univerjs/thread-comment','_userService','rangeType','UniverThreadCommentUIPlugin','bufferTime','reply','type','UniverCore','getComment','requireSession','UNIVER_UNKNOWN','@univerjs/core','onStarting','UniverLicensePlugin','CollaborationSessionService','_sessionService','delete','error','resolveComment','getMemberID','amd','disposeWithMe','3397536sanIGK','getUnit','ThreadCommentModel','Solve','onReady','CustomRangeType','addComment','_initUserSync','Edit','/edit','commentUpdate$','_commentService','saveCommentToSnapshot','body','personId','add','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','_configService','userId','UNRECOGNIZED','size','Solved','YYYY/MM/DD\x20HH:mm','users','_injector','symbol','OpenOrReOpen','map','parentId','/reply','3131317SpSGna','code','solved','Module','dataSource','997DYICBz','listComments','setConfig','forEach','49675gZOuKq','filter','/add','resolved','_config','@univerjs-pro/collaboration-client','Add','addUser','Unknown','comments','exports','Plugin','@univerjs-pro/license','getOwnPropertyDescriptor','stringify','function','root','payload','defineProperty','IConfigService','pluginName','rxjs','replyId','1621744qDDwZW','HTTPService','_init','482094jPdmFC','@univerjs/thread-comment-ui','unitId','customRanges','UniverProThreadCommentDatasource','deleteComment','length','1095984YbwCXD','threadId','Delete','rangeId','values','Injector','replies','UniverThreadComment','/solved','_initDataSource','_threadCommentModel','_httpService','user','updateComment','UniverNetwork','UniverThreadCommentDataSourcePlugin','content','CommentService','ref','object','post','_threadCommentDataSourceService','Reply','comment','format','IThreadCommentDataSourceService','createTimestamp','_threadCommentDataSource','UniverProLicense','parse','get'];_0x776e=function(){return _0x4a0393;};return _0x776e();}function _0x41d2(_0x570d0a,_0x5e1263){const _0x776e11=_0x776e();return _0x41d2=function(_0x41d294,_0x225a29){_0x41d294=_0x41d294-0x9f;let _0x4631f8=_0x776e11[_0x41d294];return _0x4631f8;},_0x41d2(_0x570d0a,_0x5e1263);}(function(_0x3db83b,_0x279118){const _0x1fa235=_0x41d2,_0xc5dec2=_0x3db83b();while(!![]){try{const _0x1ba27e=parseInt(_0x1fa235(0xc2))/0x1*(-parseInt(_0x1fa235(0x10d))/0x2)+parseInt(_0x1fa235(0xe7))/0x3+-parseInt(_0x1fa235(0xdd))/0x4+-parseInt(_0x1fa235(0xc6))/0x5*(parseInt(_0x1fa235(0x110))/0x6)+parseInt(_0x1fa235(0xbd))/0x7+-parseInt(_0x1fa235(0x9f))/0x8+parseInt(_0x1fa235(0xe0))/0x9*(parseInt(_0x1fa235(0x10a))/0xa);if(_0x1ba27e===_0x279118)break;else _0xc5dec2['push'](_0xc5dec2['shift']());}catch(_0x8d0cdd){_0xc5dec2['push'](_0xc5dec2['shift']());}}}(_0x776e,0x5e7cd),function(_0x56e67b,_0x305c86){const _0x461e0c=_0x41d2;typeof exports==_0x461e0c(0xfa)&&typeof module<'u'?_0x305c86(exports,require(_0x461e0c(0xcb)),require(_0x461e0c(0xd2)),require(_0x461e0c(0x120)),require(_0x461e0c(0xe1)),require(_0x461e0c(0x115)),require(_0x461e0c(0xdb)),require('@univerjs/network')):typeof define==_0x461e0c(0xd5)&&define[_0x461e0c(0x129)]?define([_0x461e0c(0xd0),'@univerjs-pro/collaboration-client',_0x461e0c(0xd2),'@univerjs/core',_0x461e0c(0xe1),_0x461e0c(0x115),_0x461e0c(0xdb),'@univerjs/network'],_0x305c86):(_0x56e67b=typeof globalThis<'u'?globalThis:_0x56e67b||self,_0x305c86(_0x56e67b[_0x461e0c(0xe4)]={},_0x56e67b['UniverProCollaborationClient'],_0x56e67b[_0x461e0c(0x103)],_0x56e67b[_0x461e0c(0x11c)],_0x56e67b[_0x461e0c(0x109)],_0x56e67b[_0x461e0c(0xee)],_0x56e67b[_0x461e0c(0xdb)],_0x56e67b[_0x461e0c(0xf5)]));}(this,function(_0x55a6ba,_0x149e3a,_0x595498,_0x4e7f67,_0x14a5ce,_0x264eed,_0x3f7203,_0x4366a6){'use strict';const _0x123c54=_0x41d2;const _0x2dfe54=_0x123c54(0xaf);var _0x48f2f5=(_0x526c4a=>(_0x526c4a[_0x526c4a[_0x123c54(0xb9)]=0x0]=_0x123c54(0xb9),_0x526c4a[_0x526c4a[_0x123c54(0xb4)]=0x1]='Solved',_0x526c4a[_0x526c4a[_0x123c54(0xb2)]=-0x1]='UNRECOGNIZED',_0x526c4a))(_0x48f2f5||{}),_0x3a61ef=(_0xa6cf09=>(_0xa6cf09[_0xa6cf09['Unknown']=0x0]=_0x123c54(0xce),_0xa6cf09[_0xa6cf09[_0x123c54(0xcc)]=0x1]=_0x123c54(0xcc),_0xa6cf09[_0xa6cf09[_0x123c54(0xfd)]=0x2]=_0x123c54(0xfd),_0xa6cf09[_0xa6cf09[_0x123c54(0xa7)]=0x3]='Edit',_0xa6cf09[_0xa6cf09[_0x123c54(0xe9)]=0x4]=_0x123c54(0xe9),_0xa6cf09[_0xa6cf09[_0x123c54(0xa2)]=0x5]=_0x123c54(0xa2),_0xa6cf09[_0xa6cf09['UNRECOGNIZED']=-0x1]=_0x123c54(0xb2),_0xa6cf09))(_0x3a61ef||{});const _0x1f352a=_0x2078e1=>_0x4e7f67['dayjs'](new Date(+_0x2078e1))[_0x123c54(0xff)](_0x123c54(0xb5)),_0x38ce76=async(_0x2e1b69,_0x5a8807)=>{const _0x39a170=_0x123c54,_0x50afca=_0x2e1b69[_0x39a170(0x105)](_0x4e7f67[_0x39a170(0x10f)]),_0x2be03e=_0x2e1b69['get'](_0x4366a6[_0x39a170(0xde)]);_0x5a8807['forEach'](_0x16713f=>{const _0x294a67=_0x39a170;_0x50afca['getUser'](_0x16713f)&&_0x5a8807[_0x294a67(0x125)](_0x16713f);}),_0x5a8807[_0x39a170(0xb3)]&&(await _0x2be03e[_0x39a170(0x105)](_0x39a170(0x106),{'params':{'userIDs':[..._0x5a8807]}}))[_0x39a170(0xac)][_0x39a170(0xb6)][_0x39a170(0xc5)](_0x86b6b9=>{const _0x1a34ed=_0x39a170;_0x86b6b9&&_0x50afca[_0x1a34ed(0xcd)](_0x86b6b9);});};var _0xdb5e6d=Object[_0x123c54(0xd8)],_0x20531b=Object[_0x123c54(0xd3)],_0x38c031=(_0x297e41,_0x3a0c29,_0x2e3e73,_0x54f00f)=>{const _0x55d1df=_0x123c54;for(var _0x2e9d4e=_0x54f00f>0x1?void 0x0:_0x54f00f?_0x20531b(_0x3a0c29,_0x2e3e73):_0x3a0c29,_0x24e3bf=_0x297e41[_0x55d1df(0xe6)]-0x1,_0x2497f9;_0x24e3bf>=0x0;_0x24e3bf--)(_0x2497f9=_0x297e41[_0x24e3bf])&&(_0x2e9d4e=(_0x54f00f?_0x2497f9(_0x3a0c29,_0x2e3e73,_0x2e9d4e):_0x2497f9(_0x2e9d4e))||_0x2e9d4e);return _0x54f00f&&_0x2e9d4e&&_0xdb5e6d(_0x3a0c29,_0x2e3e73,_0x2e9d4e),_0x2e9d4e;},_0x249dd0=(_0x5d509c,_0x313271)=>(_0x6e3c64,_0x416624)=>_0x313271(_0x6e3c64,_0x416624,_0x5d509c);let _0x223717=class extends _0x4e7f67['Disposable']{constructor(_0x5e52b4,_0x2e5336,_0x3a4da1,_0x4aea08){const _0x5de527=_0x123c54;super(),this[_0x5de527(0xaa)]=_0x5e52b4,this[_0x5de527(0xf1)]=_0x2e5336,this[_0x5de527(0x116)]=_0x3a4da1,this[_0x5de527(0xb7)]=_0x4aea08,this[_0x5de527(0xdf)](),this[_0x5de527(0xa6)]();}[_0x123c54(0xa6)](){const _0x4116b9=_0x123c54;this['disposeWithMe'](this[_0x4116b9(0xf1)][_0x4116b9(0xa9)]['pipe'](_0x3f7203[_0x4116b9(0x119)](0x10))['subscribe'](_0x306cd7=>{const _0x97be4c=_0x4116b9,_0x28b1a8=new Set();_0x306cd7[_0x97be4c(0xc5)](_0x62e178=>{const _0x1612db=_0x97be4c;switch(_0x62e178['type']){case _0x1612db(0xae):{const _0x3c5f77=_0x62e178[_0x1612db(0xd7)][_0x1612db(0xad)];_0x28b1a8[_0x1612db(0xae)](_0x3c5f77);break;}}}),_0x38ce76(this[_0x97be4c(0xb7)],_0x28b1a8);}));}['_init'](){const _0x2ec77a=_0x123c54;this[_0x2ec77a(0x12a)](this[_0x2ec77a(0xaa)][_0x2ec77a(0xa9)][_0x2ec77a(0x10c)](async _0x5c4068=>{const _0xc3d62f=_0x2ec77a;var _0x4b1ec3,_0x1dc098,_0x5e63b1,_0x31bc3d;const _0x4aec95=(_0x4b1ec3=this[_0xc3d62f(0xf1)][_0xc3d62f(0xa0)](_0x5c4068['unitId'])[_0xc3d62f(0x107)](_0x5514a4=>_0x5514a4[_0xc3d62f(0xe8)]===_0x5c4068['threadId']))==null?void 0x0:_0x4b1ec3[_0xc3d62f(0xd6)];if(!_0x4aec95)return;const {unitId:_0x5b4cb2,subUnitId:_0x386485}=_0x4aec95;switch(_0x5c4068[_0xc3d62f(0xf3)]&&this[_0xc3d62f(0x116)][_0xc3d62f(0xcd)](_0x5c4068[_0xc3d62f(0xf3)]),_0x5c4068[_0xc3d62f(0x11b)]){case _0x3a61ef['Add']:break;case _0x3a61ef['Reply']:{this['_threadCommentModel'][_0xc3d62f(0xa5)](_0x5b4cb2,_0x386485,{'unitId':_0x5b4cb2,'subUnitId':_0x386485,'ref':'','id':_0x5c4068[_0xc3d62f(0xdc)],'dT':_0x1f352a(+_0x5c4068[_0xc3d62f(0x101)]),'threadId':_0x5c4068[_0xc3d62f(0xe8)],'personId':(_0x5e63b1=(_0x1dc098=_0x5c4068[_0xc3d62f(0xf3)])==null?void 0x0:_0x1dc098['userID'])!=null?_0x5e63b1:_0x5c4068['userId'],'text':JSON[_0xc3d62f(0x104)](_0x5c4068[_0xc3d62f(0xf7)]),'parentId':_0x4aec95['id']});break;}case _0x3a61ef['Delete']:{const _0x92c1a9=this[_0xc3d62f(0xf1)][_0xc3d62f(0x11d)](_0x5b4cb2,_0x386485,_0x5c4068[_0xc3d62f(0xdc)]);_0x92c1a9&&_0x92c1a9[_0xc3d62f(0xbb)]&&this['_threadCommentModel'][_0xc3d62f(0xe5)](_0x5b4cb2,_0x386485,_0x5c4068[_0xc3d62f(0xdc)]);break;}case _0x3a61ef[_0xc3d62f(0xa7)]:{this['_threadCommentModel']['updateComment'](_0x5b4cb2,_0x386485,{'commentId':_0x5c4068[_0xc3d62f(0xdc)],'text':JSON[_0xc3d62f(0x104)](_0x5c4068['content'])});break;}case _0x3a61ef[_0xc3d62f(0xa2)]:{const _0x25f6c0=(_0x31bc3d=this['_threadCommentModel']['getUnit'](_0x5c4068[_0xc3d62f(0xe2)])['find'](_0x3df926=>_0x3df926[_0xc3d62f(0xe8)]===_0x5c4068[_0xc3d62f(0xe8)]))==null?void 0x0:_0x31bc3d[_0xc3d62f(0xd6)];_0x25f6c0&&this[_0xc3d62f(0xf1)][_0xc3d62f(0x127)](_0x5b4cb2,_0x386485,_0x25f6c0['id'],_0x5c4068[_0xc3d62f(0xbf)]===_0x48f2f5[_0xc3d62f(0xb4)]);break;}}}));}};_0x223717=_0x38c031([_0x249dd0(0x0,_0x4e7f67['Inject'](_0x149e3a[_0x123c54(0xf8)])),_0x249dd0(0x1,_0x4e7f67[_0x123c54(0x113)](_0x264eed[_0x123c54(0xa1)])),_0x249dd0(0x2,_0x4e7f67[_0x123c54(0x113)](_0x4e7f67[_0x123c54(0x10f)])),_0x249dd0(0x3,_0x4e7f67[_0x123c54(0x113)](_0x4e7f67['Injector']))],_0x223717);const _0x417f82='thread-comment-data-source.config',_0x4e29f2={};var _0x22bba0=Object[_0x123c54(0xd8)],_0x1e1774=Object[_0x123c54(0xd3)],_0x556a65=(_0x1d335b,_0x3e060f,_0x1d8f1a,_0x17d9cf)=>{const _0x58b7b2=_0x123c54;for(var _0x37f48d=_0x17d9cf>0x1?void 0x0:_0x17d9cf?_0x1e1774(_0x3e060f,_0x1d8f1a):_0x3e060f,_0xd408c3=_0x1d335b[_0x58b7b2(0xe6)]-0x1,_0x303b11;_0xd408c3>=0x0;_0xd408c3--)(_0x303b11=_0x1d335b[_0xd408c3])&&(_0x37f48d=(_0x17d9cf?_0x303b11(_0x3e060f,_0x1d8f1a,_0x37f48d):_0x303b11(_0x37f48d))||_0x37f48d);return _0x17d9cf&&_0x37f48d&&_0x22bba0(_0x3e060f,_0x1d8f1a,_0x37f48d),_0x37f48d;},_0x58a293=(_0x358bc2,_0x5f2b6a)=>(_0x54e1ce,_0xb5edbc)=>_0x5f2b6a(_0x54e1ce,_0xb5edbc,_0x358bc2);function _0x227c64(_0xfc0426,_0x13adcc){const _0x577c08=_0x123c54,_0x5af016=_0xfc0426[_0x577c08(0xed)][0x0];return{..._0x13adcc,'id':_0x5af016[_0x577c08(0xdc)],'resolved':_0xfc0426['solved']===0x1,'dT':_0x1f352a(_0x5af016[_0x577c08(0x101)]),'personId':_0x5af016['userId'],'threadId':_0x5af016[_0x577c08(0xe8)]};}function _0x4e3ca9(_0x55b7ef,_0x58471b,_0xb90567){const _0x4c9295=_0x123c54;var _0x16761a,_0x227640;if(((_0x227640=(_0x16761a=_0x55b7ef==null?void 0x0:_0x55b7ef[_0x4c9295(0xed)])==null?void 0x0:_0x16761a[_0x4c9295(0xe6)])!=null?_0x227640:0x0)>0x0){const _0x4bf529=(_0x463308,_0x473904)=>({'id':_0x463308['replyId'],'threadId':_0x463308[_0x4c9295(0xe8)],'dT':_0x1f352a(_0x463308[_0x4c9295(0x101)]),'personId':_0x463308[_0x4c9295(0xb1)],'resolved':_0x55b7ef['solved']===_0x48f2f5[_0x4c9295(0xb4)],'unitId':_0x58471b,'subUnitId':_0xb90567,'text':JSON[_0x4c9295(0x104)](_0x463308[_0x4c9295(0xf7)]),'parentId':_0x473904}),_0x104a3a=_0x4bf529(_0x55b7ef[_0x4c9295(0xed)][0x0]);return{..._0x104a3a,'children':_0x55b7ef['replies']['slice'](0x1)['map'](_0x320e0a=>_0x4bf529(_0x320e0a,_0x104a3a['id']))};}return null;}let _0x22f581=class{constructor(_0x5d7c54,_0x48c007,_0x12f0dd,_0x45527e){const _0x50292e=_0x123c54;this[_0x50292e(0xf2)]=_0x5d7c54,this[_0x50292e(0x116)]=_0x48c007,this[_0x50292e(0x124)]=_0x12f0dd,this['_injector']=_0x45527e;}async[_0x123c54(0xa5)](_0x101077){const _0x37092c=_0x123c54;var _0xa660e2,_0x32dd7b;const {parentId:_0x4db61f,unitId:_0x2a6686,text:_0xb1f78b,threadId:_0x3d0c84}=_0x101077,_0x15b8fe=(_0x32dd7b=(_0xa660e2=_0xb1f78b[_0x37092c(0xe3)])==null?void 0x0:_0xa660e2[_0x37092c(0xc7)](_0x271556=>_0x271556['rangeType']===_0x4e7f67[_0x37092c(0xa4)]['COMMENT'])[_0x37092c(0xba)](_0x1288a1=>_0x1288a1[_0x37092c(0xea)]))!=null?_0x32dd7b:[],_0x379b8d=JSON[_0x37092c(0xd4)](_0xb1f78b),_0xe8121c=(await this[_0x37092c(0x124)][_0x37092c(0x11e)](_0x2a6686))[_0x37092c(0x128)]();if(_0x4db61f){const _0x5e5029={'memberId':_0xe8121c,'unitId':_0x2a6686,'content':_0x379b8d,'mention':_0x15b8fe,'threadId':_0x3d0c84},_0x29487d=(await this[_0x37092c(0xf2)][_0x37092c(0xfb)](_0x37092c(0x10e)+_0x2a6686+_0x37092c(0xbc),{'body':_0x5e5029}))['body'][_0x37092c(0x11a)];return{..._0x101077,'id':_0x29487d['replyId'],'dT':_0x4e7f67['dayjs'](+_0x29487d[_0x37092c(0x101)])['format'](_0x37092c(0xb5)),'personId':_0x29487d[_0x37092c(0xb1)]};}else{const _0x5021c6={'memberId':_0xe8121c,'unitId':_0x2a6686,'content':_0x379b8d,'mention':_0x15b8fe},_0x51a57f=await this[_0x37092c(0xf2)][_0x37092c(0xfb)]('/universer-api/comment/unit/'+_0x2a6686+_0x37092c(0xc8),{'body':_0x5021c6});return _0x227c64(_0x51a57f[_0x37092c(0xac)][_0x37092c(0xfe)],_0x101077);}}async[_0x123c54(0xf4)](_0xa93e2d){const _0x254630=_0x123c54;var _0x5ef92e,_0x2539e6;const {text:_0x47ee54,unitId:_0x146083}=_0xa93e2d,_0x5ac99f=(_0x2539e6=(_0x5ef92e=_0x47ee54['customRanges'])==null?void 0x0:_0x5ef92e['filter'](_0x2c994d=>_0x2c994d[_0x254630(0x117)]===_0x4e7f67[_0x254630(0xa4)]['COMMENT'])['map'](_0x52bf25=>_0x52bf25[_0x254630(0xea)]))!=null?_0x2539e6:[],_0x5b33de=JSON[_0x254630(0xd4)](_0x47ee54),_0x4186ef=_0xa93e2d[_0x254630(0xe8)],_0x4f944b=_0xa93e2d['id'],_0x48ea1d={'memberId':(await this[_0x254630(0x124)][_0x254630(0x11e)](_0x146083))[_0x254630(0x128)](),'unitId':_0x146083,'threadId':_0x4186ef,'mention':_0x5ac99f,'content':_0x5b33de,'replyId':_0x4f944b},_0x237a51=await this[_0x254630(0xf2)][_0x254630(0xfb)](_0x254630(0x10e)+_0x146083+_0x254630(0xa8),{'body':_0x48ea1d});return!_0x237a51[_0x254630(0xac)][_0x254630(0x126)]||_0x237a51[_0x254630(0xac)][_0x254630(0x126)][_0x254630(0xbe)]===0x1;}async['resolveComment'](_0x3abeb2){const _0x26b346=_0x123c54,{unitId:_0x3b8f4e}=_0x3abeb2,_0x3193a3=_0x3abeb2[_0x26b346(0xe8)],_0xc0154b={'memberId':this[_0x26b346(0x116)]['getCurrentUser']()[_0x26b346(0x108)],'unitId':_0x3b8f4e,'threadId':_0x3193a3,'solved':_0x3abeb2[_0x26b346(0xc9)]?_0x48f2f5[_0x26b346(0xb4)]:_0x48f2f5['OpenOrReOpen']},_0xdc8243=await this['_httpService'][_0x26b346(0xfb)](_0x26b346(0x10e)+_0x3b8f4e+_0x26b346(0xef),{'body':_0xc0154b});return!_0xdc8243[_0x26b346(0xac)][_0x26b346(0x126)]||_0xdc8243[_0x26b346(0xac)][_0x26b346(0x126)][_0x26b346(0xbe)]===0x1;}async[_0x123c54(0xe5)](_0x5c70da,_0x252bba,_0x102d71,_0x57cbb2){const _0x5a2082=_0x123c54,_0x216f1c={'memberId':(await this['_sessionService'][_0x5a2082(0x11e)](_0x5c70da))[_0x5a2082(0x128)](),'threadId':_0x102d71,'replyId':_0x57cbb2,'unitId':_0x5c70da},_0x2aeaab=await this[_0x5a2082(0xf2)][_0x5a2082(0xfb)]('/universer-api/comment/unit/'+_0x5c70da+'/delete',{'body':_0x216f1c});return!_0x2aeaab['body']['error']||_0x2aeaab[_0x5a2082(0xac)][_0x5a2082(0x126)][_0x5a2082(0xbe)]===0x1;}async[_0x123c54(0xc3)](_0x119220,_0x34e84c,_0x179dc4){const _0x2f9003=_0x123c54,_0x4297a3={'unitId':_0x119220,'threadId':_0x179dc4},_0x5bf2d6=await this[_0x2f9003(0xf2)][_0x2f9003(0xfb)]('/universer-api/comment/unit/'+_0x119220+_0x2f9003(0x114),{'body':_0x4297a3}),_0x4466b2=_0x179dc4[_0x2f9003(0xba)](_0x544964=>_0x4e3ca9(_0x5bf2d6[_0x2f9003(0xac)][_0x2f9003(0xcf)][_0x544964],_0x119220,_0x34e84c))[_0x2f9003(0xc7)](Boolean);return Object[_0x2f9003(0xeb)](_0x5bf2d6[_0x2f9003(0xac)][_0x2f9003(0xb6)])[_0x2f9003(0xc5)](_0x36f079=>{const _0x4dafc2=_0x2f9003;this[_0x4dafc2(0x116)][_0x4dafc2(0xcd)](_0x36f079);}),_0x4466b2;}[_0x123c54(0xab)](_0x29b4ed){const _0x7bcc8a=_0x123c54;return{'id':_0x29b4ed['id'],'threadId':_0x29b4ed['threadId'],'ref':_0x29b4ed[_0x7bcc8a(0xf9)]};}};_0x22f581=_0x556a65([_0x58a293(0x0,_0x4e7f67[_0x123c54(0x113)](_0x4366a6[_0x123c54(0xde)])),_0x58a293(0x1,_0x4e7f67['Inject'](_0x4e7f67[_0x123c54(0x10f)])),_0x58a293(0x2,_0x4e7f67[_0x123c54(0x113)](_0x149e3a[_0x123c54(0x123)])),_0x58a293(0x3,_0x4e7f67['Inject'](_0x4e7f67[_0x123c54(0xec)]))],_0x22f581);var _0x5f2a69=Object[_0x123c54(0xd8)],_0x714572=Object[_0x123c54(0xd3)],_0x7d18d8=(_0x36da5b,_0x1f2ead,_0x4b97e8,_0x5b14d0)=>{const _0xbe8269=_0x123c54;for(var _0x58947d=_0x5b14d0>0x1?void 0x0:_0x5b14d0?_0x714572(_0x1f2ead,_0x4b97e8):_0x1f2ead,_0x4cc8ce=_0x36da5b[_0xbe8269(0xe6)]-0x1,_0x32bfe1;_0x4cc8ce>=0x0;_0x4cc8ce--)(_0x32bfe1=_0x36da5b[_0x4cc8ce])&&(_0x58947d=(_0x5b14d0?_0x32bfe1(_0x1f2ead,_0x4b97e8,_0x58947d):_0x32bfe1(_0x58947d))||_0x58947d);return _0x5b14d0&&_0x58947d&&_0x5f2a69(_0x1f2ead,_0x4b97e8,_0x58947d),_0x58947d;},_0x445050=(_0x14ff06,_0x5ac0b2)=>(_0x4d9e70,_0x35fdda)=>_0x5ac0b2(_0x4d9e70,_0x35fdda,_0x14ff06);let _0x49e9ce=class extends _0x4e7f67[_0x123c54(0x112)]{constructor(_0x47268a,_0x41e4e5){const _0xf235cf=_0x123c54;super(),this[_0xf235cf(0xfc)]=_0x47268a,this[_0xf235cf(0x102)]=_0x41e4e5,this[_0xf235cf(0xf0)]();}[_0x123c54(0xf0)](){const _0xc36634=_0x123c54;this['_threadCommentDataSourceService'][_0xc36634(0xc1)]=this[_0xc36634(0x102)],this['_threadCommentDataSourceService'][_0xc36634(0x10b)]=!0x1;}};_0x49e9ce=_0x7d18d8([_0x445050(0x0,_0x264eed[_0x123c54(0x100)]),_0x445050(0x1,_0x4e7f67['Inject'](_0x22f581))],_0x49e9ce);var _0x34b53c=Object[_0x123c54(0xd8)],_0x826be4=Object[_0x123c54(0xd3)],_0x33dead=(_0x36a6cd,_0x1dd16f,_0x2ef198)=>_0x1dd16f in _0x36a6cd?_0x34b53c(_0x36a6cd,_0x1dd16f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ef198}):_0x36a6cd[_0x1dd16f]=_0x2ef198,_0x3de367=(_0x40e6ea,_0x598b63,_0x4541b1,_0x16158a)=>{const _0xee3a6=_0x123c54;for(var _0x3d894f=_0x16158a>0x1?void 0x0:_0x16158a?_0x826be4(_0x598b63,_0x4541b1):_0x598b63,_0x52061c=_0x40e6ea[_0xee3a6(0xe6)]-0x1,_0x599d3b;_0x52061c>=0x0;_0x52061c--)(_0x599d3b=_0x40e6ea[_0x52061c])&&(_0x3d894f=(_0x16158a?_0x599d3b(_0x598b63,_0x4541b1,_0x3d894f):_0x599d3b(_0x3d894f))||_0x3d894f);return _0x16158a&&_0x3d894f&&_0x34b53c(_0x598b63,_0x4541b1,_0x3d894f),_0x3d894f;},_0x3abd97=(_0x5eecb7,_0x1f656c)=>(_0x23c8ca,_0x430843)=>_0x1f656c(_0x23c8ca,_0x430843,_0x5eecb7),_0x18bd46=(_0x25582c,_0xe62676,_0x5a0b76)=>_0x33dead(_0x25582c,typeof _0xe62676!=_0x123c54(0xb8)?_0xe62676+'':_0xe62676,_0x5a0b76);_0x55a6ba[_0x123c54(0xf6)]=class extends _0x4e7f67[_0x123c54(0xd1)]{constructor(_0x4e16bb=_0x4e29f2,_0x4442a0,_0x1fe44f){const _0x436e13=_0x123c54;super(),this[_0x436e13(0xca)]=_0x4e16bb,this[_0x436e13(0xb7)]=_0x4442a0,this['_configService']=_0x1fe44f;const {..._0x4ad8bd}=_0x4e7f67['merge']({},_0x4e29f2,this[_0x436e13(0xca)]);this[_0x436e13(0xb0)][_0x436e13(0xc4)](_0x417f82,_0x4ad8bd);}[_0x123c54(0x121)](){[[_0x22f581],[_0x49e9ce],[_0x223717]]['forEach'](_0x36226d=>{const _0x27de70=_0x41d2;this[_0x27de70(0xb7)]['add'](_0x36226d);});}[_0x123c54(0xa3)](){const _0xe58296=_0x123c54;this['_injector'][_0xe58296(0x105)](_0x49e9ce),this['_injector'][_0xe58296(0x105)](_0x223717);}},_0x18bd46(_0x55a6ba[_0x123c54(0xf6)],_0x123c54(0xda),_0x2dfe54),_0x18bd46(_0x55a6ba['UniverThreadCommentDataSourcePlugin'],_0x123c54(0x11b),_0x4e7f67[_0x123c54(0x111)][_0x123c54(0x11f)]),_0x55a6ba[_0x123c54(0xf6)]=_0x3de367([_0x4e7f67['DependentOn'](_0x14a5ce[_0x123c54(0x118)],_0x149e3a['UniverCollaborationClientPlugin'],_0x595498[_0x123c54(0x122)]),_0x3abd97(0x1,_0x4e7f67['Inject'](_0x4e7f67['Injector'])),_0x3abd97(0x2,_0x4e7f67[_0x123c54(0xd9)])],_0x55a6ba[_0x123c54(0xf6)]),Object[_0x123c54(0xd8)](_0x55a6ba,Symbol['toStringTag'],{'value':_0x123c54(0xc0)});}));
|
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-experimental.20250114-7c09c35",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"rxjs": ">=7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@univerjs-pro/collaboration-client": "0.5.
|
|
49
|
-
"@univerjs-pro/license": "0.5.
|
|
50
|
-
"@univerjs/protocol": "0.1.
|
|
51
|
-
"@univerjs/core": "0.5.
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/thread-comment
|
|
54
|
-
"@univerjs/
|
|
48
|
+
"@univerjs-pro/collaboration-client": "0.5.4-experimental.20250114-7c09c35",
|
|
49
|
+
"@univerjs-pro/license": "0.5.4-experimental.20250114-7c09c35",
|
|
50
|
+
"@univerjs/protocol": "0.1.42",
|
|
51
|
+
"@univerjs/core": "0.5.4-experimental.20250114-7c09c35",
|
|
52
|
+
"@univerjs/thread-comment-ui": "0.5.4-experimental.20250114-7c09c35",
|
|
53
|
+
"@univerjs/thread-comment": "0.5.4-experimental.20250114-7c09c35",
|
|
54
|
+
"@univerjs/network": "0.5.4-experimental.20250114-7c09c35"
|
|
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",
|