@univerjs-pro/thread-comment-datasource 0.5.1 → 0.5.2-nightly.202412281605
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 +11 -11
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x176382=_0x31ee;(function(_0x28d792,_0x37076c){const _0x378d7f=_0x31ee,_0xbb233e=_0x28d792();while(!![]){try{const _0x36a243=-parseInt(_0x378d7f(0x1b2))/0x1*(parseInt(_0x378d7f(0x209))/0x2)+-parseInt(_0x378d7f(0x1ee))/0x3*(parseInt(_0x378d7f(0x1cb))/0x4)+parseInt(_0x378d7f(0x1c4))/0x5*(parseInt(_0x378d7f(0x1ba))/0x6)+parseInt(_0x378d7f(0x1b0))/0x7+parseInt(_0x378d7f(0x1d5))/0x8+parseInt(_0x378d7f(0x1b7))/0x9+-parseInt(_0x378d7f(0x1fa))/0xa;if(_0x36a243===_0x37076c)break;else _0xbb233e['push'](_0xbb233e['shift']());}catch(_0x2362b0){_0xbb233e['push'](_0xbb233e['shift']());}}}(_0x3c03,0xab063));Object[_0x176382(0x1e7)](exports,Symbol['toStringTag'],{'value':_0x176382(0x1b5)});const C=require(_0x176382(0x1fd)),N=require('@univerjs-pro/license'),c=require(_0x176382(0x1f5)),T=require(_0x176382(0x200)),y=require('@univerjs/thread-comment'),w=require('rxjs'),P=require(_0x176382(0x1e9)),U=_0x176382(0x1ff);function _0x3c03(){const _0x3db694=['_initDataSource','ThreadCommentModel','requireSession','_threadCommentModel','forEach','parse','symbol','length','_config','6806303SKxiBW','_commentService','22405jhpTRi','UniverInstanceType','_httpService','Module','commentUpdate$','3947058LfPDBJ','stringify','pipe','30mbNipu','parentId','CommentService','dayjs','add','size','Inject','thread-comment-data-source.config','_userService','_initUserSync','714830AQLoKk','UniverCollaborationClientPlugin','/delete','replyId','content','_init','deleteComment','34996tAJeKV','HTTPService','UNIVER_UNKNOWN','map','ref','code','error','COMMENT','/solved','onStarting','4643240WrTckA','listComments','Solved','/edit','slice','Add','createTimestamp','payload','post','_threadCommentDataSourceService','OpenOrReOpen','root','/universer-api/comment/unit/','disposeWithMe','customRanges','filter','UserManagerService','YYYY/MM/DD\x20HH:mm','defineProperty','userId','@univerjs/network','DependentOn','delete','saveCommentToSnapshot','addUser','69KYnLGB','IThreadCommentDataSourceService','Plugin','/add','UniverThreadCommentDataSourcePlugin','/reply','users','@univerjs/core','Injector','CustomRangeType','type','unitId','17819790MSymRn','threadId','user','@univerjs-pro/collaboration-client','getOwnPropertyDescriptor','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','@univerjs/thread-comment-ui','CollaborationSessionService','find','_sessionService','getMemberID','replies','get','format','updateComment','2VazJaR','/universer-api/user/list','Edit','rangeType','_threadCommentDataSource','Delete','Reply','dataSource','UniverThreadCommentUIPlugin','resolveComment','Disposable','body','setConfig','Solve','_injector','Unknown','UNRECOGNIZED','subscribe','userID','syncUpdateMutationToColla','getUser','comment','reply','IConfigService','pluginName','_configService','solved','getCurrentUser'];_0x3c03=function(){return _0x3db694;};return _0x3c03();}var I=(_0x7a71aa=>(_0x7a71aa[_0x7a71aa[_0x176382(0x1df)]=0x0]='OpenOrReOpen',_0x7a71aa[_0x7a71aa[_0x176382(0x1d7)]=0x1]=_0x176382(0x1d7),_0x7a71aa[_0x7a71aa[_0x176382(0x19b)]=-0x1]=_0x176382(0x19b),_0x7a71aa))(I||{}),v=(_0x59b0c0=>(_0x59b0c0[_0x59b0c0[_0x176382(0x19a)]=0x0]=_0x176382(0x19a),_0x59b0c0[_0x59b0c0[_0x176382(0x1da)]=0x1]=_0x176382(0x1da),_0x59b0c0[_0x59b0c0[_0x176382(0x20f)]=0x2]='Reply',_0x59b0c0[_0x59b0c0[_0x176382(0x20b)]=0x3]=_0x176382(0x20b),_0x59b0c0[_0x59b0c0['Delete']=0x4]=_0x176382(0x20e),_0x59b0c0[_0x59b0c0[_0x176382(0x198)]=0x5]=_0x176382(0x198),_0x59b0c0[_0x59b0c0[_0x176382(0x19b)]=-0x1]=_0x176382(0x19b),_0x59b0c0))(v||{});const g=_0x39cb2e=>c['dayjs'](new Date(+_0x39cb2e))[_0x176382(0x207)](_0x176382(0x1e6)),R=async(_0x14cc93,_0x4506f4)=>{const _0x584977=_0x176382,_0x158437=_0x14cc93[_0x584977(0x206)](c['UserManagerService']),_0x38e2f4=_0x14cc93[_0x584977(0x206)](P[_0x584977(0x1cc)]);_0x4506f4[_0x584977(0x1ab)](_0x1432a6=>{const _0x57266a=_0x584977;_0x158437[_0x57266a(0x19f)](_0x1432a6)&&_0x4506f4[_0x57266a(0x1eb)](_0x1432a6);}),_0x4506f4[_0x584977(0x1bf)]&&(await _0x38e2f4['get'](_0x584977(0x20a),{'params':{'userIDs':[..._0x4506f4]}}))[_0x584977(0x196)]['users']['forEach'](_0xdeb214=>{const _0x77c909=_0x584977;_0xdeb214&&_0x158437[_0x77c909(0x1ed)](_0xdeb214);});};var $=Object[_0x176382(0x1e7)],E=Object[_0x176382(0x1fe)],q=(_0x1c3ea7,_0x4d829e,_0xcb342a,_0x4b2782)=>{for(var _0x2af49c=_0x4b2782>0x1?void 0x0:_0x4b2782?E(_0x4d829e,_0xcb342a):_0x4d829e,_0x29c89d=_0x1c3ea7['length']-0x1,_0x215df6;_0x29c89d>=0x0;_0x29c89d--)(_0x215df6=_0x1c3ea7[_0x29c89d])&&(_0x2af49c=(_0x4b2782?_0x215df6(_0x4d829e,_0xcb342a,_0x2af49c):_0x215df6(_0x2af49c))||_0x2af49c);return _0x4b2782&&_0x2af49c&&$(_0x4d829e,_0xcb342a,_0x2af49c),_0x2af49c;},_=(_0x1b4357,_0x4633fa)=>(_0x10e722,_0x386b26)=>_0x4633fa(_0x10e722,_0x386b26,_0x1b4357);let S=class extends c['Disposable']{constructor(_0x175d25,_0x1601af,_0x1db807,_0xdda532){const _0xd85450=_0x176382;super(),this[_0xd85450(0x1b1)]=_0x175d25,this[_0xd85450(0x1aa)]=_0x1601af,this['_userService']=_0x1db807,this[_0xd85450(0x199)]=_0xdda532,this[_0xd85450(0x1c9)](),this[_0xd85450(0x1c3)]();}[_0x176382(0x1c3)](){const _0x552186=_0x176382;this[_0x552186(0x1e2)](this['_threadCommentModel'][_0x552186(0x1b6)][_0x552186(0x1b9)](w['bufferTime'](0x10))['subscribe'](_0x3fbd8a=>{const _0x3e0eb5=_0x552186,_0x31ea3d=new Set();_0x3fbd8a[_0x3e0eb5(0x1ab)](_0x4b3e18=>{const _0x232311=_0x3e0eb5;switch(_0x4b3e18[_0x232311(0x1f8)]){case'add':{const _0xd620e1=_0x4b3e18[_0x232311(0x1dc)]['personId'];_0x31ea3d[_0x232311(0x1be)](_0xd620e1);break;}}}),R(this['_injector'],_0x31ea3d);}));}[_0x176382(0x1c9)](){const _0x2bc014=_0x176382;this[_0x2bc014(0x1e2)](this[_0x2bc014(0x1b1)]['commentUpdate$'][_0x2bc014(0x19c)](async _0xd7cdf7=>{const _0x5100a2=_0x2bc014;var _0x17796f,_0x1b139c,_0xe3d01a,_0x2ac131;const _0x241a0c=(_0x17796f=this['_threadCommentModel']['getUnit'](_0xd7cdf7[_0x5100a2(0x1f9)])['find'](_0x1a99a1=>_0x1a99a1[_0x5100a2(0x1fb)]===_0xd7cdf7[_0x5100a2(0x1fb)]))==null?void 0x0:_0x17796f[_0x5100a2(0x1e0)];if(!_0x241a0c)return;const {unitId:_0x16a09b,subUnitId:_0x2ac58e}=_0x241a0c;switch(_0xd7cdf7[_0x5100a2(0x1fc)]&&this[_0x5100a2(0x1c2)][_0x5100a2(0x1ed)](_0xd7cdf7[_0x5100a2(0x1fc)]),_0xd7cdf7[_0x5100a2(0x1f8)]){case v[_0x5100a2(0x1da)]:break;case v[_0x5100a2(0x20f)]:{this[_0x5100a2(0x1aa)]['addComment'](_0x16a09b,_0x2ac58e,{'unitId':_0x16a09b,'subUnitId':_0x2ac58e,'ref':'','id':_0xd7cdf7[_0x5100a2(0x1c7)],'dT':g(+_0xd7cdf7['createTimestamp']),'threadId':_0xd7cdf7[_0x5100a2(0x1fb)],'personId':(_0xe3d01a=(_0x1b139c=_0xd7cdf7[_0x5100a2(0x1fc)])==null?void 0x0:_0x1b139c[_0x5100a2(0x19d)])!=null?_0xe3d01a:_0xd7cdf7[_0x5100a2(0x1e8)],'text':JSON[_0x5100a2(0x1ac)](_0xd7cdf7[_0x5100a2(0x1c8)]),'parentId':_0x241a0c['id']});break;}case v[_0x5100a2(0x20e)]:{const _0x4dfc3f=this[_0x5100a2(0x1aa)]['getComment'](_0x16a09b,_0x2ac58e,_0xd7cdf7[_0x5100a2(0x1c7)]);_0x4dfc3f&&_0x4dfc3f[_0x5100a2(0x1bb)]&&this[_0x5100a2(0x1aa)][_0x5100a2(0x1ca)](_0x16a09b,_0x2ac58e,_0xd7cdf7['replyId']);break;}case v[_0x5100a2(0x20b)]:{this['_threadCommentModel']['updateComment'](_0x16a09b,_0x2ac58e,{'commentId':_0xd7cdf7[_0x5100a2(0x1c7)],'text':JSON[_0x5100a2(0x1ac)](_0xd7cdf7['content'])});break;}case v[_0x5100a2(0x198)]:{const _0x21b6b7=(_0x2ac131=this['_threadCommentModel']['getUnit'](_0xd7cdf7[_0x5100a2(0x1f9)])[_0x5100a2(0x202)](_0x2cef8c=>_0x2cef8c[_0x5100a2(0x1fb)]===_0xd7cdf7[_0x5100a2(0x1fb)]))==null?void 0x0:_0x2ac131[_0x5100a2(0x1e0)];_0x21b6b7&&this[_0x5100a2(0x1aa)]['resolveComment'](_0x16a09b,_0x2ac58e,_0x21b6b7['id'],_0xd7cdf7[_0x5100a2(0x1a5)]===I[_0x5100a2(0x1d7)]);break;}}}));}};S=q([_(0x0,c[_0x176382(0x1c0)](C[_0x176382(0x1bc)])),_(0x1,c[_0x176382(0x1c0)](y[_0x176382(0x1a8)])),_(0x2,c[_0x176382(0x1c0)](c[_0x176382(0x1e5)])),_(0x3,c[_0x176382(0x1c0)](c[_0x176382(0x1f6)]))],S);const A=_0x176382(0x1c1),x={};var Y=Object[_0x176382(0x1e7)],G=Object[_0x176382(0x1fe)],H=(_0x424510,_0x68713b,_0x5b246d,_0x21c870)=>{const _0x388d22=_0x176382;for(var _0x3df256=_0x21c870>0x1?void 0x0:_0x21c870?G(_0x68713b,_0x5b246d):_0x68713b,_0x3341cc=_0x424510[_0x388d22(0x1ae)]-0x1,_0xaa4a58;_0x3341cc>=0x0;_0x3341cc--)(_0xaa4a58=_0x424510[_0x3341cc])&&(_0x3df256=(_0x21c870?_0xaa4a58(_0x68713b,_0x5b246d,_0x3df256):_0xaa4a58(_0x3df256))||_0x3df256);return _0x21c870&&_0x3df256&&Y(_0x68713b,_0x5b246d,_0x3df256),_0x3df256;},p=(_0xf05b81,_0x5b5640)=>(_0x5401e3,_0x223042)=>_0x5b5640(_0x5401e3,_0x223042,_0xf05b81);function _0x31ee(_0x3b6507,_0x173a53){const _0x3c03c7=_0x3c03();return _0x31ee=function(_0x31eec4,_0x35897b){_0x31eec4=_0x31eec4-0x192;let _0x46018c=_0x3c03c7[_0x31eec4];return _0x46018c;},_0x31ee(_0x3b6507,_0x173a53);}function J(_0x551ae8,_0x4c1663){const _0x39adbd=_0x176382,_0x5aa953=_0x551ae8[_0x39adbd(0x205)][0x0];return{..._0x4c1663,'id':_0x5aa953[_0x39adbd(0x1c7)],'resolved':_0x551ae8[_0x39adbd(0x1a5)]===0x1,'dT':g(_0x5aa953[_0x39adbd(0x1db)]),'personId':_0x5aa953[_0x39adbd(0x1e8)],'threadId':_0x5aa953[_0x39adbd(0x1fb)]};}function F(_0x3d6869,_0x21a94a,_0x44aadc){const _0x53b5de=_0x176382;var _0x159c1d,_0x1749b2;if(((_0x1749b2=(_0x159c1d=_0x3d6869==null?void 0x0:_0x3d6869['replies'])==null?void 0x0:_0x159c1d[_0x53b5de(0x1ae)])!=null?_0x1749b2:0x0)>0x0){const _0x52c3dd=(_0x873412,_0x58c7f8)=>({'id':_0x873412['replyId'],'threadId':_0x873412[_0x53b5de(0x1fb)],'dT':g(_0x873412[_0x53b5de(0x1db)]),'personId':_0x873412[_0x53b5de(0x1e8)],'resolved':_0x3d6869[_0x53b5de(0x1a5)]===I['Solved'],'unitId':_0x21a94a,'subUnitId':_0x44aadc,'text':JSON[_0x53b5de(0x1ac)](_0x873412[_0x53b5de(0x1c8)]),'parentId':_0x58c7f8}),_0x52c0f8=_0x52c3dd(_0x3d6869[_0x53b5de(0x205)][0x0]);return{..._0x52c0f8,'children':_0x3d6869[_0x53b5de(0x205)][_0x53b5de(0x1d9)](0x1)[_0x53b5de(0x1ce)](_0x300edc=>_0x52c3dd(_0x300edc,_0x52c0f8['id']))};}return null;}let f=class{constructor(_0x2a658c,_0x2eeed5,_0x7a8576,_0x4e785b){const _0x1adaf7=_0x176382;this[_0x1adaf7(0x1b4)]=_0x2a658c,this[_0x1adaf7(0x1c2)]=_0x2eeed5,this[_0x1adaf7(0x203)]=_0x7a8576,this[_0x1adaf7(0x199)]=_0x4e785b;}async['addComment'](_0x364750){const _0x54a4cb=_0x176382;var _0x165d95,_0x179fe8;const {parentId:_0x31a8cd,unitId:_0x33b8b8,text:_0x32c536,threadId:_0x3b2fa1}=_0x364750,_0x140f9e=(_0x179fe8=(_0x165d95=_0x32c536[_0x54a4cb(0x1e3)])==null?void 0x0:_0x165d95['filter'](_0x2498cf=>_0x2498cf[_0x54a4cb(0x20c)]===c[_0x54a4cb(0x1f7)][_0x54a4cb(0x1d2)])[_0x54a4cb(0x1ce)](_0x3b5a40=>_0x3b5a40['rangeId']))!=null?_0x179fe8:[],_0x2f1a7d=JSON[_0x54a4cb(0x1b8)](_0x32c536),_0x3244ca=(await this[_0x54a4cb(0x203)]['requireSession'](_0x33b8b8))[_0x54a4cb(0x204)]();if(_0x31a8cd){const _0x2f7493={'memberId':_0x3244ca,'unitId':_0x33b8b8,'content':_0x2f1a7d,'mention':_0x140f9e,'threadId':_0x3b2fa1},_0x424c59=(await this[_0x54a4cb(0x1b4)][_0x54a4cb(0x1dd)]('/universer-api/comment/unit/'+_0x33b8b8+_0x54a4cb(0x1f3),{'body':_0x2f7493}))[_0x54a4cb(0x196)][_0x54a4cb(0x1a1)];return{..._0x364750,'id':_0x424c59[_0x54a4cb(0x1c7)],'dT':c[_0x54a4cb(0x1bd)](+_0x424c59[_0x54a4cb(0x1db)])[_0x54a4cb(0x207)](_0x54a4cb(0x1e6)),'personId':_0x424c59['userId']};}else{const _0x217335={'memberId':_0x3244ca,'unitId':_0x33b8b8,'content':_0x2f1a7d,'mention':_0x140f9e},_0x1da63a=await this['_httpService']['post'](_0x54a4cb(0x1e1)+_0x33b8b8+_0x54a4cb(0x1f1),{'body':_0x217335});return J(_0x1da63a['body'][_0x54a4cb(0x1a0)],_0x364750);}}async[_0x176382(0x208)](_0x345bec){const _0x235f32=_0x176382;var _0x186618,_0xf5adf7;const {text:_0x3dbe03,unitId:_0x2b287c}=_0x345bec,_0x56c668=(_0xf5adf7=(_0x186618=_0x3dbe03['customRanges'])==null?void 0x0:_0x186618[_0x235f32(0x1e4)](_0x3e91ed=>_0x3e91ed[_0x235f32(0x20c)]===c[_0x235f32(0x1f7)][_0x235f32(0x1d2)])[_0x235f32(0x1ce)](_0x2e1a22=>_0x2e1a22['rangeId']))!=null?_0xf5adf7:[],_0x30e185=JSON[_0x235f32(0x1b8)](_0x3dbe03),_0x35349c=_0x345bec[_0x235f32(0x1fb)],_0x2fe0e4=_0x345bec['id'],_0x2e68d1={'memberId':(await this[_0x235f32(0x203)]['requireSession'](_0x2b287c))[_0x235f32(0x204)](),'unitId':_0x2b287c,'threadId':_0x35349c,'mention':_0x56c668,'content':_0x30e185,'replyId':_0x2fe0e4},_0x486dea=await this[_0x235f32(0x1b4)]['post'](_0x235f32(0x1e1)+_0x2b287c+_0x235f32(0x1d8),{'body':_0x2e68d1});return!_0x486dea[_0x235f32(0x196)][_0x235f32(0x1d1)]||_0x486dea[_0x235f32(0x196)][_0x235f32(0x1d1)]['code']===0x1;}async[_0x176382(0x194)](_0x112989){const _0xf0d1a=_0x176382,{unitId:_0x554896}=_0x112989,_0x5f3cc1=_0x112989['threadId'],_0x53e8c7={'memberId':this[_0xf0d1a(0x1c2)][_0xf0d1a(0x1a6)]()[_0xf0d1a(0x19d)],'unitId':_0x554896,'threadId':_0x5f3cc1,'solved':_0x112989['resolved']?I[_0xf0d1a(0x1d7)]:I[_0xf0d1a(0x1df)]},_0x131bdd=await this[_0xf0d1a(0x1b4)][_0xf0d1a(0x1dd)](_0xf0d1a(0x1e1)+_0x554896+_0xf0d1a(0x1d3),{'body':_0x53e8c7});return!_0x131bdd['body']['error']||_0x131bdd['body'][_0xf0d1a(0x1d1)][_0xf0d1a(0x1d0)]===0x1;}async['deleteComment'](_0x444407,_0xeef82c,_0x37984f,_0x2f46f7){const _0x51fa2f=_0x176382,_0x1dc243={'memberId':(await this[_0x51fa2f(0x203)][_0x51fa2f(0x1a9)](_0x444407))['getMemberID'](),'threadId':_0x37984f,'replyId':_0x2f46f7,'unitId':_0x444407},_0xf97098=await this[_0x51fa2f(0x1b4)][_0x51fa2f(0x1dd)](_0x51fa2f(0x1e1)+_0x444407+_0x51fa2f(0x1c6),{'body':_0x1dc243});return!_0xf97098[_0x51fa2f(0x196)]['error']||_0xf97098[_0x51fa2f(0x196)][_0x51fa2f(0x1d1)][_0x51fa2f(0x1d0)]===0x1;}async[_0x176382(0x1d6)](_0x2f542c,_0x1a31c2,_0x33db28){const _0x145b90=_0x176382,_0x96fc0a={'unitId':_0x2f542c,'threadId':_0x33db28},_0x30e820=await this[_0x145b90(0x1b4)][_0x145b90(0x1dd)](_0x145b90(0x1e1)+_0x2f542c+'/list',{'body':_0x96fc0a}),_0x2783fb=_0x33db28[_0x145b90(0x1ce)](_0x4328c9=>F(_0x30e820[_0x145b90(0x196)]['comments'][_0x4328c9],_0x2f542c,_0x1a31c2))[_0x145b90(0x1e4)](Boolean);return Object['values'](_0x30e820[_0x145b90(0x196)][_0x145b90(0x1f4)])[_0x145b90(0x1ab)](_0x584025=>{const _0x3aa8cf=_0x145b90;this[_0x3aa8cf(0x1c2)][_0x3aa8cf(0x1ed)](_0x584025);}),_0x2783fb;}[_0x176382(0x1ec)](_0x432323){const _0x8837c4=_0x176382;return{'id':_0x432323['id'],'threadId':_0x432323[_0x8837c4(0x1fb)],'ref':_0x432323[_0x8837c4(0x1cf)]};}};f=H([p(0x0,c[_0x176382(0x1c0)](P[_0x176382(0x1cc)])),p(0x1,c['Inject'](c['UserManagerService'])),p(0x2,c[_0x176382(0x1c0)](C[_0x176382(0x201)])),p(0x3,c[_0x176382(0x1c0)](c[_0x176382(0x1f6)]))],f);var L=Object[_0x176382(0x1e7)],Z=Object[_0x176382(0x1fe)],W=(_0x38bffe,_0x4311e0,_0x1cacc3,_0x3899af)=>{const _0x1a216e=_0x176382;for(var _0x270580=_0x3899af>0x1?void 0x0:_0x3899af?Z(_0x4311e0,_0x1cacc3):_0x4311e0,_0x5aa062=_0x38bffe[_0x1a216e(0x1ae)]-0x1,_0x2936f9;_0x5aa062>=0x0;_0x5aa062--)(_0x2936f9=_0x38bffe[_0x5aa062])&&(_0x270580=(_0x3899af?_0x2936f9(_0x4311e0,_0x1cacc3,_0x270580):_0x2936f9(_0x270580))||_0x270580);return _0x3899af&&_0x270580&&L(_0x4311e0,_0x1cacc3,_0x270580),_0x270580;},D=(_0x1a56df,_0x9eee42)=>(_0x3d920c,_0xa68a9b)=>_0x9eee42(_0x3d920c,_0xa68a9b,_0x1a56df);let b=class extends c[_0x176382(0x195)]{constructor(_0x12db25,_0x4a487f){const _0x49ba08=_0x176382;super(),this[_0x49ba08(0x1de)]=_0x12db25,this[_0x49ba08(0x20d)]=_0x4a487f,this[_0x49ba08(0x1a7)]();}['_initDataSource'](){const _0x52f69a=_0x176382;this[_0x52f69a(0x1de)][_0x52f69a(0x192)]=this[_0x52f69a(0x20d)],this[_0x52f69a(0x1de)][_0x52f69a(0x19e)]=!0x1;}};b=W([D(0x0,y[_0x176382(0x1ef)]),D(0x1,c[_0x176382(0x1c0)](f))],b);var M=Object[_0x176382(0x1e7)],B=Object[_0x176382(0x1fe)],K=(_0x114fd5,_0x50f3bd,_0x264b32)=>_0x50f3bd in _0x114fd5?M(_0x114fd5,_0x50f3bd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x264b32}):_0x114fd5[_0x50f3bd]=_0x264b32,V=(_0x339b0a,_0x4275ef,_0x42d23a,_0xc99dab)=>{const _0x542119=_0x176382;for(var _0x2f7aca=_0xc99dab>0x1?void 0x0:_0xc99dab?B(_0x4275ef,_0x42d23a):_0x4275ef,_0x469105=_0x339b0a[_0x542119(0x1ae)]-0x1,_0x32a1d9;_0x469105>=0x0;_0x469105--)(_0x32a1d9=_0x339b0a[_0x469105])&&(_0x2f7aca=(_0xc99dab?_0x32a1d9(_0x4275ef,_0x42d23a,_0x2f7aca):_0x32a1d9(_0x2f7aca))||_0x2f7aca);return _0xc99dab&&_0x2f7aca&&M(_0x4275ef,_0x42d23a,_0x2f7aca),_0x2f7aca;},O=(_0xca3757,_0x54c2f3)=>(_0x56a6ed,_0x5ba9a2)=>_0x54c2f3(_0x56a6ed,_0x5ba9a2,_0xca3757),j=(_0x157a7e,_0x42d84a,_0x3d6d33)=>K(_0x157a7e,typeof _0x42d84a!=_0x176382(0x1ad)?_0x42d84a+'':_0x42d84a,_0x3d6d33);exports['UniverThreadCommentDataSourcePlugin']=class extends c[_0x176382(0x1f0)]{constructor(_0x310515=x,_0x471be9,_0x14c6f3){const _0x1b5576=_0x176382;super(),this['_config']=_0x310515,this[_0x1b5576(0x199)]=_0x471be9,this[_0x1b5576(0x1a4)]=_0x14c6f3;const {..._0x12229b}=this[_0x1b5576(0x1af)];this[_0x1b5576(0x1a4)][_0x1b5576(0x197)](A,_0x12229b);}[_0x176382(0x1d4)](){const _0x195e9d=_0x176382;[[f],[b],[S]][_0x195e9d(0x1ab)](_0x51f260=>{const _0xe11744=_0x195e9d;this[_0xe11744(0x199)]['add'](_0x51f260);});}['onReady'](){const _0x56da7f=_0x176382;this['_injector'][_0x56da7f(0x206)](b),this[_0x56da7f(0x199)][_0x56da7f(0x206)](S);}},j(exports['UniverThreadCommentDataSourcePlugin'],_0x176382(0x1a3),U),j(exports[_0x176382(0x1f2)],_0x176382(0x1f8),c[_0x176382(0x1b3)][_0x176382(0x1cd)]),exports['UniverThreadCommentDataSourcePlugin']=V([c[_0x176382(0x1ea)](T[_0x176382(0x193)],C[_0x176382(0x1c5)],N['UniverLicensePlugin']),O(0x1,c['Inject'](c[_0x176382(0x1f6)])),O(0x2,c[_0x176382(0x1a2)])],exports[_0x176382(0x1f2)]);
|
|
1
|
+
'use strict';const _0xd1f93d=_0x4e29;(function(_0x18c945,_0x1d4334){const _0x3511d6=_0x4e29,_0x22b77a=_0x18c945();while(!![]){try{const _0x5da039=parseInt(_0x3511d6(0x10a))/0x1+parseInt(_0x3511d6(0xbe))/0x2+parseInt(_0x3511d6(0x104))/0x3+-parseInt(_0x3511d6(0x119))/0x4+parseInt(_0x3511d6(0x108))/0x5+-parseInt(_0x3511d6(0xf9))/0x6*(-parseInt(_0x3511d6(0xcf))/0x7)+-parseInt(_0x3511d6(0x125))/0x8;if(_0x5da039===_0x1d4334)break;else _0x22b77a['push'](_0x22b77a['shift']());}catch(_0x21e0c9){_0x22b77a['push'](_0x22b77a['shift']());}}}(_0x54d0,0x46135));Object['defineProperty'](exports,Symbol[_0xd1f93d(0xf2)],{'value':_0xd1f93d(0xd0)});const C=require('@univerjs-pro/collaboration-client'),T=require(_0xd1f93d(0xc1)),c=require(_0xd1f93d(0xe3)),w=require('@univerjs/thread-comment-ui'),P=require(_0xd1f93d(0xfb)),U=require(_0xd1f93d(0xbd)),M=require(_0xd1f93d(0xfd)),R=_0xd1f93d(0x12f);var I=(_0x335560=>(_0x335560[_0x335560[_0xd1f93d(0xc6)]=0x0]=_0xd1f93d(0xc6),_0x335560[_0x335560['Solved']=0x1]=_0xd1f93d(0xfe),_0x335560[_0x335560['UNRECOGNIZED']=-0x1]=_0xd1f93d(0x124),_0x335560))(I||{}),v=(_0x3918bd=>(_0x3918bd[_0x3918bd['Unknown']=0x0]=_0xd1f93d(0x10f),_0x3918bd[_0x3918bd[_0xd1f93d(0xed)]=0x1]='Add',_0x3918bd[_0x3918bd[_0xd1f93d(0x122)]=0x2]=_0xd1f93d(0x122),_0x3918bd[_0x3918bd['Edit']=0x3]=_0xd1f93d(0xdd),_0x3918bd[_0x3918bd[_0xd1f93d(0x102)]=0x4]=_0xd1f93d(0x102),_0x3918bd[_0x3918bd[_0xd1f93d(0xc7)]=0x5]=_0xd1f93d(0xc7),_0x3918bd[_0x3918bd[_0xd1f93d(0x124)]=-0x1]='UNRECOGNIZED',_0x3918bd))(v||{});const g=_0x1a4486=>c['dayjs'](new Date(+_0x1a4486))['format'](_0xd1f93d(0xfc)),$=async(_0x403fc7,_0x551662)=>{const _0x3dcc2a=_0xd1f93d,_0x35767a=_0x403fc7[_0x3dcc2a(0xb9)](c['UserManagerService']),_0x1673c2=_0x403fc7[_0x3dcc2a(0xb9)](M[_0x3dcc2a(0xd5)]);_0x551662['forEach'](_0x284f27=>{const _0x1743cd=_0x3dcc2a;_0x35767a[_0x1743cd(0xd3)](_0x284f27)&&_0x551662[_0x1743cd(0x123)](_0x284f27);}),_0x551662['size']&&(await _0x1673c2[_0x3dcc2a(0xb9)](_0x3dcc2a(0x12e),{'params':{'userIDs':[..._0x551662]}}))[_0x3dcc2a(0x11d)][_0x3dcc2a(0xd6)]['forEach'](_0x105e91=>{const _0x1a8670=_0x3dcc2a;_0x105e91&&_0x35767a[_0x1a8670(0xbf)](_0x105e91);});};function _0x4e29(_0x4dd7b5,_0x48ac37){const _0x54d08c=_0x54d0();return _0x4e29=function(_0x4e29f8,_0x59b32c){_0x4e29f8=_0x4e29f8-0xb8;let _0xaa1528=_0x54d08c[_0x4e29f8];return _0xaa1528;},_0x4e29(_0x4dd7b5,_0x48ac37);}var E=Object[_0xd1f93d(0xde)],q=Object[_0xd1f93d(0xff)],A=(_0x3494e8,_0x473d14,_0x375061,_0x570ebf)=>{const _0x58d592=_0xd1f93d;for(var _0x1b6efd=_0x570ebf>0x1?void 0x0:_0x570ebf?q(_0x473d14,_0x375061):_0x473d14,_0x377136=_0x3494e8[_0x58d592(0xdf)]-0x1,_0x2c9e11;_0x377136>=0x0;_0x377136--)(_0x2c9e11=_0x3494e8[_0x377136])&&(_0x1b6efd=(_0x570ebf?_0x2c9e11(_0x473d14,_0x375061,_0x1b6efd):_0x2c9e11(_0x1b6efd))||_0x1b6efd);return _0x570ebf&&_0x1b6efd&&E(_0x473d14,_0x375061,_0x1b6efd),_0x1b6efd;},_=(_0x1c5771,_0x3e8613)=>(_0x53b9a5,_0x5f5c3b)=>_0x3e8613(_0x53b9a5,_0x5f5c3b,_0x1c5771);let S=class extends c[_0xd1f93d(0xf5)]{constructor(_0x8e8854,_0x1f3dc1,_0x318c7c,_0x1564c4){const _0x3b409f=_0xd1f93d;super(),this[_0x3b409f(0xdc)]=_0x8e8854,this['_threadCommentModel']=_0x1f3dc1,this[_0x3b409f(0xb8)]=_0x318c7c,this[_0x3b409f(0xc5)]=_0x1564c4,this[_0x3b409f(0xf3)](),this[_0x3b409f(0x12a)]();}[_0xd1f93d(0x12a)](){const _0x3553f4=_0xd1f93d;this['disposeWithMe'](this[_0x3553f4(0xc3)][_0x3553f4(0xcc)]['pipe'](U[_0x3553f4(0x11a)](0x10))['subscribe'](_0x2f376c=>{const _0xde56b5=_0x3553f4,_0x232f62=new Set();_0x2f376c[_0xde56b5(0xf4)](_0x26fdd6=>{const _0x4e1324=_0xde56b5;switch(_0x26fdd6[_0x4e1324(0xe0)]){case _0x4e1324(0xe1):{const _0x47e33a=_0x26fdd6[_0x4e1324(0xf7)]['personId'];_0x232f62[_0x4e1324(0xe1)](_0x47e33a);break;}}}),$(this['_injector'],_0x232f62);}));}[_0xd1f93d(0xf3)](){this['disposeWithMe'](this['_commentService']['commentUpdate$']['subscribe'](async _0x333d37=>{const _0x575f40=_0x4e29;var _0x571b0f,_0x651c21,_0x5adf21,_0x31bc77;const _0x70ba67=(_0x571b0f=this['_threadCommentModel'][_0x575f40(0x110)](_0x333d37[_0x575f40(0xba)])[_0x575f40(0xe8)](_0x8101d2=>_0x8101d2[_0x575f40(0xbb)]===_0x333d37[_0x575f40(0xbb)]))==null?void 0x0:_0x571b0f[_0x575f40(0xc0)];if(!_0x70ba67)return;const {unitId:_0x565d6a,subUnitId:_0x71ca7c}=_0x70ba67;switch(_0x333d37[_0x575f40(0x111)]&&this[_0x575f40(0xb8)][_0x575f40(0xbf)](_0x333d37[_0x575f40(0x111)]),_0x333d37[_0x575f40(0xe0)]){case v[_0x575f40(0xed)]:break;case v[_0x575f40(0x122)]:{this['_threadCommentModel'][_0x575f40(0xcb)](_0x565d6a,_0x71ca7c,{'unitId':_0x565d6a,'subUnitId':_0x71ca7c,'ref':'','id':_0x333d37['replyId'],'dT':g(+_0x333d37[_0x575f40(0x100)]),'threadId':_0x333d37['threadId'],'personId':(_0x5adf21=(_0x651c21=_0x333d37['user'])==null?void 0x0:_0x651c21['userID'])!=null?_0x5adf21:_0x333d37[_0x575f40(0xd8)],'text':JSON[_0x575f40(0xc2)](_0x333d37[_0x575f40(0x101)]),'parentId':_0x70ba67['id']});break;}case v['Delete']:{const _0xcf29f1=this['_threadCommentModel'][_0x575f40(0x118)](_0x565d6a,_0x71ca7c,_0x333d37['replyId']);_0xcf29f1&&_0xcf29f1['parentId']&&this[_0x575f40(0xc3)][_0x575f40(0x121)](_0x565d6a,_0x71ca7c,_0x333d37[_0x575f40(0xd7)]);break;}case v[_0x575f40(0xdd)]:{this[_0x575f40(0xc3)][_0x575f40(0xef)](_0x565d6a,_0x71ca7c,{'commentId':_0x333d37[_0x575f40(0xd7)],'text':JSON[_0x575f40(0xc2)](_0x333d37[_0x575f40(0x101)])});break;}case v[_0x575f40(0xc7)]:{const _0x2c29a0=(_0x31bc77=this[_0x575f40(0xc3)]['getUnit'](_0x333d37[_0x575f40(0xba)])['find'](_0x35e786=>_0x35e786[_0x575f40(0xbb)]===_0x333d37[_0x575f40(0xbb)]))==null?void 0x0:_0x31bc77[_0x575f40(0xc0)];_0x2c29a0&&this['_threadCommentModel'][_0x575f40(0x11f)](_0x565d6a,_0x71ca7c,_0x2c29a0['id'],_0x333d37['solved']===I[_0x575f40(0xfe)]);break;}}}));}};S=A([_(0x0,c[_0xd1f93d(0xd2)](C[_0xd1f93d(0x12b)])),_(0x1,c[_0xd1f93d(0xd2)](P[_0xd1f93d(0xce)])),_(0x2,c['Inject'](c['UserManagerService'])),_(0x3,c[_0xd1f93d(0xd2)](c[_0xd1f93d(0x10d)]))],S);const x=_0xd1f93d(0x117),D={};var Y=Object[_0xd1f93d(0xde)],G=Object[_0xd1f93d(0xff)],H=(_0x53192b,_0x7ea6ab,_0x502caa,_0x374579)=>{for(var _0x890d1=_0x374579>0x1?void 0x0:_0x374579?G(_0x7ea6ab,_0x502caa):_0x7ea6ab,_0x42f1dc=_0x53192b['length']-0x1,_0x4376d9;_0x42f1dc>=0x0;_0x42f1dc--)(_0x4376d9=_0x53192b[_0x42f1dc])&&(_0x890d1=(_0x374579?_0x4376d9(_0x7ea6ab,_0x502caa,_0x890d1):_0x4376d9(_0x890d1))||_0x890d1);return _0x374579&&_0x890d1&&Y(_0x7ea6ab,_0x502caa,_0x890d1),_0x890d1;},p=(_0x140159,_0x3c3e22)=>(_0x20695a,_0x681166)=>_0x3c3e22(_0x20695a,_0x681166,_0x140159);function J(_0x3fb191,_0x58e55c){const _0x2498cd=_0xd1f93d,_0x32528e=_0x3fb191[_0x2498cd(0xda)][0x0];return{..._0x58e55c,'id':_0x32528e[_0x2498cd(0xd7)],'resolved':_0x3fb191[_0x2498cd(0xbc)]===0x1,'dT':g(_0x32528e[_0x2498cd(0x100)]),'personId':_0x32528e[_0x2498cd(0xd8)],'threadId':_0x32528e[_0x2498cd(0xbb)]};}function F(_0x5aff4c,_0x4668be,_0x26c590){const _0x422aec=_0xd1f93d;var _0x1e7b80,_0x535b11;if(((_0x535b11=(_0x1e7b80=_0x5aff4c==null?void 0x0:_0x5aff4c[_0x422aec(0xda)])==null?void 0x0:_0x1e7b80[_0x422aec(0xdf)])!=null?_0x535b11:0x0)>0x0){const _0x5e660a=(_0x30d9dc,_0x114670)=>({'id':_0x30d9dc['replyId'],'threadId':_0x30d9dc[_0x422aec(0xbb)],'dT':g(_0x30d9dc[_0x422aec(0x100)]),'personId':_0x30d9dc[_0x422aec(0xd8)],'resolved':_0x5aff4c[_0x422aec(0xbc)]===I[_0x422aec(0xfe)],'unitId':_0x4668be,'subUnitId':_0x26c590,'text':JSON[_0x422aec(0xc2)](_0x30d9dc[_0x422aec(0x101)]),'parentId':_0x114670}),_0x22735d=_0x5e660a(_0x5aff4c[_0x422aec(0xda)][0x0]);return{..._0x22735d,'children':_0x5aff4c[_0x422aec(0xda)][_0x422aec(0x12c)](0x1)[_0x422aec(0x112)](_0x325b9b=>_0x5e660a(_0x325b9b,_0x22735d['id']))};}return null;}function _0x54d0(){const _0x444b4a=['Solve','IThreadCommentDataSourceService','values','error','addComment','commentUpdate$','customRanges','ThreadCommentModel','230916oYDOpB','Module','/reply','Inject','getUser','listComments','HTTPService','users','replyId','userId','_threadCommentDataSource','replies','requireSession','_commentService','Edit','defineProperty','length','type','add','_threadCommentDataSourceService','@univerjs/core','code','CustomRangeType','_config','rangeId','find','dataSource','_configService','syncUpdateMutationToColla','_httpService','Add','filter','updateComment','/universer-api/comment/unit/','pluginName','toStringTag','_init','forEach','Disposable','getMemberID','payload','rangeType','6UCRzGV','post','@univerjs/thread-comment','YYYY/MM/DD\x20HH:mm','@univerjs/network','Solved','getOwnPropertyDescriptor','createTimestamp','content','Delete','getCurrentUser','447261GFCXBk','UniverThreadCommentUIPlugin','symbol','COMMENT','2201060lGFzTP','_sessionService','348116JJmKWY','stringify','onStarting','Injector','/solved','Unknown','getUnit','user','map','IConfigService','resolved','saveCommentToSnapshot','UNIVER_UNKNOWN','thread-comment-data-source.config','getComment','602272kjnPHv','bufferTime','UniverCollaborationClientPlugin','userID','body','UniverThreadCommentDataSourcePlugin','resolveComment','format','deleteComment','Reply','delete','UNRECOGNIZED','6495904QayfMp','CollaborationSessionService','comments','/list','UniverLicensePlugin','_initUserSync','CommentService','slice','UserManagerService','/universer-api/user/list','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','merge','_userService','get','unitId','threadId','solved','rxjs','558364AXqlfu','addUser','root','@univerjs-pro/license','parse','_threadCommentModel','/edit','_injector','OpenOrReOpen'];_0x54d0=function(){return _0x444b4a;};return _0x54d0();}let f=class{constructor(_0xc552aa,_0x571c99,_0x23e76f,_0xea4f99){const _0x33261d=_0xd1f93d;this[_0x33261d(0xec)]=_0xc552aa,this[_0x33261d(0xb8)]=_0x571c99,this[_0x33261d(0x109)]=_0x23e76f,this[_0x33261d(0xc5)]=_0xea4f99;}async[_0xd1f93d(0xcb)](_0x4512b3){const _0x27a7ea=_0xd1f93d;var _0x5b0918,_0x325d19;const {parentId:_0x264848,unitId:_0x4566d1,text:_0x4bfcb2,threadId:_0xb89929}=_0x4512b3,_0x501883=(_0x325d19=(_0x5b0918=_0x4bfcb2[_0x27a7ea(0xcd)])==null?void 0x0:_0x5b0918[_0x27a7ea(0xee)](_0x4c7007=>_0x4c7007[_0x27a7ea(0xf8)]===c[_0x27a7ea(0xe5)][_0x27a7ea(0x107)])['map'](_0x945d25=>_0x945d25[_0x27a7ea(0xe7)]))!=null?_0x325d19:[],_0x50af34=JSON['stringify'](_0x4bfcb2),_0x12b307=(await this[_0x27a7ea(0x109)][_0x27a7ea(0xdb)](_0x4566d1))[_0x27a7ea(0xf6)]();if(_0x264848){const _0x1403e9={'memberId':_0x12b307,'unitId':_0x4566d1,'content':_0x50af34,'mention':_0x501883,'threadId':_0xb89929},_0x1698de=(await this[_0x27a7ea(0xec)][_0x27a7ea(0xfa)](_0x27a7ea(0xf0)+_0x4566d1+_0x27a7ea(0xd1),{'body':_0x1403e9}))[_0x27a7ea(0x11d)]['reply'];return{..._0x4512b3,'id':_0x1698de['replyId'],'dT':c['dayjs'](+_0x1698de[_0x27a7ea(0x100)])[_0x27a7ea(0x120)](_0x27a7ea(0xfc)),'personId':_0x1698de[_0x27a7ea(0xd8)]};}else{const _0x5b0701={'memberId':_0x12b307,'unitId':_0x4566d1,'content':_0x50af34,'mention':_0x501883},_0x226536=await this[_0x27a7ea(0xec)][_0x27a7ea(0xfa)](_0x27a7ea(0xf0)+_0x4566d1+'/add',{'body':_0x5b0701});return J(_0x226536[_0x27a7ea(0x11d)]['comment'],_0x4512b3);}}async['updateComment'](_0x459f7e){const _0xb20f47=_0xd1f93d;var _0x1b0008,_0x339878;const {text:_0x49c838,unitId:_0x4d3e65}=_0x459f7e,_0x352e3f=(_0x339878=(_0x1b0008=_0x49c838[_0xb20f47(0xcd)])==null?void 0x0:_0x1b0008[_0xb20f47(0xee)](_0x5d0699=>_0x5d0699[_0xb20f47(0xf8)]===c[_0xb20f47(0xe5)][_0xb20f47(0x107)])[_0xb20f47(0x112)](_0x132c45=>_0x132c45[_0xb20f47(0xe7)]))!=null?_0x339878:[],_0x68da8b=JSON[_0xb20f47(0x10b)](_0x49c838),_0x4f335c=_0x459f7e[_0xb20f47(0xbb)],_0x281641=_0x459f7e['id'],_0x3483cb={'memberId':(await this[_0xb20f47(0x109)][_0xb20f47(0xdb)](_0x4d3e65))[_0xb20f47(0xf6)](),'unitId':_0x4d3e65,'threadId':_0x4f335c,'mention':_0x352e3f,'content':_0x68da8b,'replyId':_0x281641},_0xed81cb=await this['_httpService']['post']('/universer-api/comment/unit/'+_0x4d3e65+_0xb20f47(0xc4),{'body':_0x3483cb});return!_0xed81cb[_0xb20f47(0x11d)]['error']||_0xed81cb[_0xb20f47(0x11d)][_0xb20f47(0xca)][_0xb20f47(0xe4)]===0x1;}async['resolveComment'](_0x1340b7){const _0x544fa0=_0xd1f93d,{unitId:_0x41aa11}=_0x1340b7,_0xf782a4=_0x1340b7[_0x544fa0(0xbb)],_0x5916d1={'memberId':this['_userService'][_0x544fa0(0x103)]()[_0x544fa0(0x11c)],'unitId':_0x41aa11,'threadId':_0xf782a4,'solved':_0x1340b7[_0x544fa0(0x114)]?I['Solved']:I[_0x544fa0(0xc6)]},_0x402a6b=await this[_0x544fa0(0xec)]['post'](_0x544fa0(0xf0)+_0x41aa11+_0x544fa0(0x10e),{'body':_0x5916d1});return!_0x402a6b[_0x544fa0(0x11d)][_0x544fa0(0xca)]||_0x402a6b[_0x544fa0(0x11d)][_0x544fa0(0xca)]['code']===0x1;}async['deleteComment'](_0x39bdce,_0x38cd61,_0x317d36,_0x27404b){const _0x312a7b=_0xd1f93d,_0x3e0e0e={'memberId':(await this[_0x312a7b(0x109)]['requireSession'](_0x39bdce))[_0x312a7b(0xf6)](),'threadId':_0x317d36,'replyId':_0x27404b,'unitId':_0x39bdce},_0x3af2c8=await this[_0x312a7b(0xec)][_0x312a7b(0xfa)](_0x312a7b(0xf0)+_0x39bdce+'/delete',{'body':_0x3e0e0e});return!_0x3af2c8[_0x312a7b(0x11d)][_0x312a7b(0xca)]||_0x3af2c8[_0x312a7b(0x11d)]['error'][_0x312a7b(0xe4)]===0x1;}async[_0xd1f93d(0xd4)](_0x387b27,_0x3d4cd8,_0xebc3da){const _0x2ebced=_0xd1f93d,_0x5f323d={'unitId':_0x387b27,'threadId':_0xebc3da},_0x5858ad=await this['_httpService']['post'](_0x2ebced(0xf0)+_0x387b27+_0x2ebced(0x128),{'body':_0x5f323d}),_0x39ae4e=_0xebc3da['map'](_0x499371=>F(_0x5858ad[_0x2ebced(0x11d)][_0x2ebced(0x127)][_0x499371],_0x387b27,_0x3d4cd8))['filter'](Boolean);return Object[_0x2ebced(0xc9)](_0x5858ad[_0x2ebced(0x11d)][_0x2ebced(0xd6)])[_0x2ebced(0xf4)](_0x29c4ce=>{const _0x1ab43b=_0x2ebced;this[_0x1ab43b(0xb8)][_0x1ab43b(0xbf)](_0x29c4ce);}),_0x39ae4e;}[_0xd1f93d(0x115)](_0x529878){return{'id':_0x529878['id'],'threadId':_0x529878['threadId'],'ref':_0x529878['ref']};}};f=H([p(0x0,c['Inject'](M[_0xd1f93d(0xd5)])),p(0x1,c[_0xd1f93d(0xd2)](c[_0xd1f93d(0x12d)])),p(0x2,c[_0xd1f93d(0xd2)](C[_0xd1f93d(0x126)])),p(0x3,c[_0xd1f93d(0xd2)](c[_0xd1f93d(0x10d)]))],f);var L=Object[_0xd1f93d(0xde)],Z=Object[_0xd1f93d(0xff)],W=(_0x543503,_0x43410d,_0x1538aa,_0x5f0ce0)=>{const _0x355963=_0xd1f93d;for(var _0x2870db=_0x5f0ce0>0x1?void 0x0:_0x5f0ce0?Z(_0x43410d,_0x1538aa):_0x43410d,_0x4b3115=_0x543503[_0x355963(0xdf)]-0x1,_0x378aae;_0x4b3115>=0x0;_0x4b3115--)(_0x378aae=_0x543503[_0x4b3115])&&(_0x2870db=(_0x5f0ce0?_0x378aae(_0x43410d,_0x1538aa,_0x2870db):_0x378aae(_0x2870db))||_0x2870db);return _0x5f0ce0&&_0x2870db&&L(_0x43410d,_0x1538aa,_0x2870db),_0x2870db;},O=(_0x512d90,_0x4f33d4)=>(_0x2203fc,_0x70d1a9)=>_0x4f33d4(_0x2203fc,_0x70d1a9,_0x512d90);let b=class extends c[_0xd1f93d(0xf5)]{constructor(_0x19fbce,_0x335a67){const _0xe75093=_0xd1f93d;super(),this[_0xe75093(0xe2)]=_0x19fbce,this[_0xe75093(0xd9)]=_0x335a67,this['_initDataSource']();}['_initDataSource'](){const _0x12eab5=_0xd1f93d;this[_0x12eab5(0xe2)][_0x12eab5(0xe9)]=this[_0x12eab5(0xd9)],this[_0x12eab5(0xe2)][_0x12eab5(0xeb)]=!0x1;}};b=W([O(0x0,P[_0xd1f93d(0xc8)]),O(0x1,c[_0xd1f93d(0xd2)](f))],b);var j=Object[_0xd1f93d(0xde)],B=Object[_0xd1f93d(0xff)],K=(_0x333b11,_0x4fe7f0,_0x1720ed)=>_0x4fe7f0 in _0x333b11?j(_0x333b11,_0x4fe7f0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1720ed}):_0x333b11[_0x4fe7f0]=_0x1720ed,V=(_0x31690f,_0x325d9b,_0x5de91f,_0x224600)=>{const _0x564189=_0xd1f93d;for(var _0x11452c=_0x224600>0x1?void 0x0:_0x224600?B(_0x325d9b,_0x5de91f):_0x325d9b,_0x2ab6cc=_0x31690f[_0x564189(0xdf)]-0x1,_0x2ee645;_0x2ab6cc>=0x0;_0x2ab6cc--)(_0x2ee645=_0x31690f[_0x2ab6cc])&&(_0x11452c=(_0x224600?_0x2ee645(_0x325d9b,_0x5de91f,_0x11452c):_0x2ee645(_0x11452c))||_0x11452c);return _0x224600&&_0x11452c&&j(_0x325d9b,_0x5de91f,_0x11452c),_0x11452c;},y=(_0x3cc210,_0xe5e96d)=>(_0x4144ef,_0x3e8d03)=>_0xe5e96d(_0x4144ef,_0x3e8d03,_0x3cc210),N=(_0x1ede47,_0xf6d8d6,_0x4ba1fc)=>K(_0x1ede47,typeof _0xf6d8d6!=_0xd1f93d(0x106)?_0xf6d8d6+'':_0xf6d8d6,_0x4ba1fc);exports[_0xd1f93d(0x11e)]=class extends c['Plugin']{constructor(_0xdf750f=D,_0x34aa1e,_0x42fd01){const _0x2f71d8=_0xd1f93d;super(),this[_0x2f71d8(0xe6)]=_0xdf750f,this[_0x2f71d8(0xc5)]=_0x34aa1e,this[_0x2f71d8(0xea)]=_0x42fd01;const {..._0x5123bf}=c[_0x2f71d8(0x130)]({},D,this[_0x2f71d8(0xe6)]);this['_configService']['setConfig'](x,_0x5123bf);}[_0xd1f93d(0x10c)](){const _0x6afda5=_0xd1f93d;[[f],[b],[S]][_0x6afda5(0xf4)](_0x181c6c=>{const _0x44201b=_0x6afda5;this[_0x44201b(0xc5)][_0x44201b(0xe1)](_0x181c6c);});}['onReady'](){const _0x553b46=_0xd1f93d;this[_0x553b46(0xc5)]['get'](b),this[_0x553b46(0xc5)]['get'](S);}},N(exports[_0xd1f93d(0x11e)],_0xd1f93d(0xf1),R),N(exports[_0xd1f93d(0x11e)],_0xd1f93d(0xe0),c['UniverInstanceType'][_0xd1f93d(0x116)]),exports[_0xd1f93d(0x11e)]=V([c['DependentOn'](w[_0xd1f93d(0x105)],C[_0xd1f93d(0x11b)],T[_0xd1f93d(0x129)]),y(0x1,c['Inject'](c['Injector'])),y(0x2,c[_0xd1f93d(0x113)])],exports[_0xd1f93d(0x11e)]);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3769f1=_0x4bc4;(function(_0x4192a2,_0x299c42){const _0x2910de=_0x4bc4,_0x432d69=_0x4192a2();while(!![]){try{const _0x1a31d0=parseInt(_0x2910de(0x15b))/0x1*(parseInt(_0x2910de(0x12e))/0x2)+-parseInt(_0x2910de(0x103))/0x3+-parseInt(_0x2910de(0x140))/0x4+parseInt(_0x2910de(0x15d))/0x5+-parseInt(_0x2910de(0x134))/0x6+-parseInt(_0x2910de(0x154))/0x7+parseInt(_0x2910de(0x120))/0x8;if(_0x1a31d0===_0x299c42)break;else _0x432d69['push'](_0x432d69['shift']());}catch(_0xe6630b){_0x432d69['push'](_0x432d69['shift']());}}}(_0x5449,0x71d18));import{CommentService as _0x14ecf1,CollaborationSessionService as _0xa2a829,UniverCollaborationClientPlugin as _0x2c3661}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x36ef01}from'@univerjs-pro/license';import{dayjs as _0x29fb43,UserManagerService as _0x330b79,Inject as _0x2248d7,Injector as _0x203748,Disposable as _0xc97a9a,CustomRangeType as _0x45e1e6,UniverInstanceType as _0x17e7f9,DependentOn as _0x2544f0,Plugin as _0x5d51a6,IConfigService as _0x204533}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x4b382b}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x2a22fa,IThreadCommentDataSourceService as _0x128279}from'@univerjs/thread-comment';import{bufferTime as _0x50b520}from'rxjs';import{HTTPService as _0x49216e}from'@univerjs/network';const q='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var v=(_0x4df04e=>(_0x4df04e[_0x4df04e[_0x3769f1(0x11a)]=0x0]=_0x3769f1(0x11a),_0x4df04e[_0x4df04e[_0x3769f1(0xfc)]=0x1]='Solved',_0x4df04e[_0x4df04e[_0x3769f1(0x11f)]=-0x1]=_0x3769f1(0x11f),_0x4df04e))(v||{}),p=(_0x4f9110=>(_0x4f9110[_0x4f9110[_0x3769f1(0x14d)]=0x0]=_0x3769f1(0x14d),_0x4f9110[_0x4f9110[_0x3769f1(0x136)]=0x1]=_0x3769f1(0x136),_0x4f9110[_0x4f9110['Reply']=0x2]='Reply',_0x4f9110[_0x4f9110['Edit']=0x3]=_0x3769f1(0x10d),_0x4f9110[_0x4f9110[_0x3769f1(0x109)]=0x4]=_0x3769f1(0x109),_0x4f9110[_0x4f9110[_0x3769f1(0x152)]=0x5]=_0x3769f1(0x152),_0x4f9110[_0x4f9110[_0x3769f1(0x11f)]=-0x1]=_0x3769f1(0x11f),_0x4f9110))(p||{});function _0x4bc4(_0x5d857d,_0x342f49){const _0x544970=_0x5449();return _0x4bc4=function(_0x4bc4ca,_0x5eb13f){_0x4bc4ca=_0x4bc4ca-0xfc;let _0x476098=_0x544970[_0x4bc4ca];return _0x476098;},_0x4bc4(_0x5d857d,_0x342f49);}const g=_0x52ca7f=>_0x29fb43(new Date(+_0x52ca7f))[_0x3769f1(0x10a)](_0x3769f1(0xfe)),W=async(_0x2caa2d,_0x5a18e5)=>{const _0x38c234=_0x3769f1,_0x561092=_0x2caa2d[_0x38c234(0x144)](_0x330b79),_0xa1613e=_0x2caa2d[_0x38c234(0x144)](_0x49216e);_0x5a18e5[_0x38c234(0x146)](_0x289ff1=>{const _0x357276=_0x38c234;_0x561092[_0x357276(0x118)](_0x289ff1)&&_0x5a18e5[_0x357276(0x12a)](_0x289ff1);}),_0x5a18e5['size']&&(await _0xa1613e[_0x38c234(0x144)](_0x38c234(0x14e),{'params':{'userIDs':[..._0x5a18e5]}}))[_0x38c234(0x106)][_0x38c234(0x12f)][_0x38c234(0x146)](_0xb4a94a=>{const _0x4469e2=_0x38c234;_0xb4a94a&&_0x561092[_0x4469e2(0x13b)](_0xb4a94a);});};var B=Object['defineProperty'],K=Object[_0x3769f1(0x148)],V=(_0x3d54a6,_0xc9636e,_0x4628e0,_0x1c2030)=>{const _0x3cc191=_0x3769f1;for(var _0x406fd3=_0x1c2030>0x1?void 0x0:_0x1c2030?K(_0xc9636e,_0x4628e0):_0xc9636e,_0x1c6a47=_0x3d54a6[_0x3cc191(0x129)]-0x1,_0x25817d;_0x1c6a47>=0x0;_0x1c6a47--)(_0x25817d=_0x3d54a6[_0x1c6a47])&&(_0x406fd3=(_0x1c2030?_0x25817d(_0xc9636e,_0x4628e0,_0x406fd3):_0x25817d(_0x406fd3))||_0x406fd3);return _0x1c2030&&_0x406fd3&&B(_0xc9636e,_0x4628e0,_0x406fd3),_0x406fd3;},_=(_0x419ad7,_0xc396ba)=>(_0x541a61,_0x4dd185)=>_0xc396ba(_0x541a61,_0x4dd185,_0x419ad7);let f=class extends _0xc97a9a{constructor(_0x130d4c,_0x51b299,_0x4072a9,_0x580fd0){const _0x54186f=_0x3769f1;super(),this[_0x54186f(0x100)]=_0x130d4c,this['_threadCommentModel']=_0x51b299,this[_0x54186f(0x115)]=_0x4072a9,this['_injector']=_0x580fd0,this[_0x54186f(0x13a)](),this[_0x54186f(0x108)]();}[_0x3769f1(0x108)](){const _0x26981f=_0x3769f1;this[_0x26981f(0x14b)](this[_0x26981f(0x126)][_0x26981f(0x114)][_0x26981f(0x101)](_0x50b520(0x10))[_0x26981f(0x111)](_0x4a4d6b=>{const _0x4549d1=_0x26981f,_0x1f9034=new Set();_0x4a4d6b[_0x4549d1(0x146)](_0x26e725=>{const _0x3bdf70=_0x4549d1;switch(_0x26e725[_0x3bdf70(0x112)]){case _0x3bdf70(0x141):{const _0x2b8b37=_0x26e725[_0x3bdf70(0x125)][_0x3bdf70(0x11e)];_0x1f9034['add'](_0x2b8b37);break;}}}),W(this[_0x4549d1(0xfd)],_0x1f9034);}));}[_0x3769f1(0x13a)](){const _0xa5cbc6=_0x3769f1;this[_0xa5cbc6(0x14b)](this[_0xa5cbc6(0x100)][_0xa5cbc6(0x114)]['subscribe'](async _0x58fa5e=>{const _0x57b8d7=_0xa5cbc6;var _0x21987f,_0x27913b,_0x21282f,_0x2f02a8;const _0x58b2c9=(_0x21987f=this['_threadCommentModel'][_0x57b8d7(0x151)](_0x58fa5e[_0x57b8d7(0x149)])[_0x57b8d7(0x10e)](_0x5e9bb0=>_0x5e9bb0['threadId']===_0x58fa5e[_0x57b8d7(0x12b)]))==null?void 0x0:_0x21987f['root'];if(!_0x58b2c9)return;const {unitId:_0x566cb5,subUnitId:_0x3f5a97}=_0x58b2c9;switch(_0x58fa5e['user']&&this[_0x57b8d7(0x115)][_0x57b8d7(0x13b)](_0x58fa5e[_0x57b8d7(0x107)]),_0x58fa5e[_0x57b8d7(0x112)]){case p['Add']:break;case p[_0x57b8d7(0x147)]:{this['_threadCommentModel'][_0x57b8d7(0x11d)](_0x566cb5,_0x3f5a97,{'unitId':_0x566cb5,'subUnitId':_0x3f5a97,'ref':'','id':_0x58fa5e['replyId'],'dT':g(+_0x58fa5e[_0x57b8d7(0x116)]),'threadId':_0x58fa5e[_0x57b8d7(0x12b)],'personId':(_0x21282f=(_0x27913b=_0x58fa5e[_0x57b8d7(0x107)])==null?void 0x0:_0x27913b[_0x57b8d7(0x121)])!=null?_0x21282f:_0x58fa5e[_0x57b8d7(0x117)],'text':JSON[_0x57b8d7(0x142)](_0x58fa5e[_0x57b8d7(0x157)]),'parentId':_0x58b2c9['id']});break;}case p[_0x57b8d7(0x109)]:{const _0x197cc6=this[_0x57b8d7(0x126)]['getComment'](_0x566cb5,_0x3f5a97,_0x58fa5e[_0x57b8d7(0x12d)]);_0x197cc6&&_0x197cc6[_0x57b8d7(0x105)]&&this[_0x57b8d7(0x126)][_0x57b8d7(0x14a)](_0x566cb5,_0x3f5a97,_0x58fa5e[_0x57b8d7(0x12d)]);break;}case p[_0x57b8d7(0x10d)]:{this[_0x57b8d7(0x126)]['updateComment'](_0x566cb5,_0x3f5a97,{'commentId':_0x58fa5e[_0x57b8d7(0x12d)],'text':JSON[_0x57b8d7(0x142)](_0x58fa5e['content'])});break;}case p[_0x57b8d7(0x152)]:{const _0xc94fa4=(_0x2f02a8=this[_0x57b8d7(0x126)][_0x57b8d7(0x151)](_0x58fa5e[_0x57b8d7(0x149)])[_0x57b8d7(0x10e)](_0x3c8555=>_0x3c8555['threadId']===_0x58fa5e[_0x57b8d7(0x12b)]))==null?void 0x0:_0x2f02a8[_0x57b8d7(0x155)];_0xc94fa4&&this[_0x57b8d7(0x126)]['resolveComment'](_0x566cb5,_0x3f5a97,_0xc94fa4['id'],_0x58fa5e['solved']===v[_0x57b8d7(0xfc)]);break;}}}));}};f=V([_(0x0,_0x2248d7(_0x14ecf1)),_(0x1,_0x2248d7(_0x2a22fa)),_(0x2,_0x2248d7(_0x330b79)),_(0x3,_0x2248d7(_0x203748))],f);const z=_0x3769f1(0x14f),Q={};var X=Object[_0x3769f1(0x145)],k=Object['getOwnPropertyDescriptor'],ee=(_0x3f2332,_0xf0f16,_0x3a5de9,_0x1e367a)=>{for(var _0x490aff=_0x1e367a>0x1?void 0x0:_0x1e367a?k(_0xf0f16,_0x3a5de9):_0xf0f16,_0x4ac5c0=_0x3f2332['length']-0x1,_0x7953b1;_0x4ac5c0>=0x0;_0x4ac5c0--)(_0x7953b1=_0x3f2332[_0x4ac5c0])&&(_0x490aff=(_0x1e367a?_0x7953b1(_0xf0f16,_0x3a5de9,_0x490aff):_0x7953b1(_0x490aff))||_0x490aff);return _0x1e367a&&_0x490aff&&X(_0xf0f16,_0x3a5de9,_0x490aff),_0x490aff;},I=(_0xb46688,_0x26e047)=>(_0x4cd0f3,_0x574e02)=>_0x26e047(_0x4cd0f3,_0x574e02,_0xb46688);function re(_0x50a0e0,_0x3aeb70){const _0x3f2b59=_0x3769f1,_0x4ac651=_0x50a0e0[_0x3f2b59(0x10f)][0x0];return{..._0x3aeb70,'id':_0x4ac651['replyId'],'resolved':_0x50a0e0[_0x3f2b59(0x13d)]===0x1,'dT':g(_0x4ac651[_0x3f2b59(0x116)]),'personId':_0x4ac651[_0x3f2b59(0x117)],'threadId':_0x4ac651[_0x3f2b59(0x12b)]};}function te(_0x55289f,_0x56fb50,_0x54abf9){const _0x2cc76c=_0x3769f1;var _0x301710,_0x2e5f9c;if(((_0x2e5f9c=(_0x301710=_0x55289f==null?void 0x0:_0x55289f[_0x2cc76c(0x10f)])==null?void 0x0:_0x301710[_0x2cc76c(0x129)])!=null?_0x2e5f9c:0x0)>0x0){const _0x2ab2f6=(_0x335df5,_0x599379)=>({'id':_0x335df5[_0x2cc76c(0x12d)],'threadId':_0x335df5[_0x2cc76c(0x12b)],'dT':g(_0x335df5['createTimestamp']),'personId':_0x335df5[_0x2cc76c(0x117)],'resolved':_0x55289f[_0x2cc76c(0x13d)]===v[_0x2cc76c(0xfc)],'unitId':_0x56fb50,'subUnitId':_0x54abf9,'text':JSON[_0x2cc76c(0x142)](_0x335df5[_0x2cc76c(0x157)]),'parentId':_0x599379}),_0x1456f2=_0x2ab2f6(_0x55289f[_0x2cc76c(0x10f)][0x0]);return{..._0x1456f2,'children':_0x55289f[_0x2cc76c(0x10f)][_0x2cc76c(0x123)](0x1)['map'](_0x16d93e=>_0x2ab2f6(_0x16d93e,_0x1456f2['id']))};}return null;}let S=class{constructor(_0x2b2297,_0x326a47,_0x401abe,_0x1380f5){const _0x2d5baa=_0x3769f1;this[_0x2d5baa(0x150)]=_0x2b2297,this[_0x2d5baa(0x115)]=_0x326a47,this[_0x2d5baa(0x137)]=_0x401abe,this['_injector']=_0x1380f5;}async['addComment'](_0x5dc2fa){const _0x319d74=_0x3769f1;var _0xee192d,_0x151a93;const {parentId:_0x2e53c8,unitId:_0x58c0b9,text:_0x56f6d4,threadId:_0x135b93}=_0x5dc2fa,_0x521fc0=(_0x151a93=(_0xee192d=_0x56f6d4[_0x319d74(0x14c)])==null?void 0x0:_0xee192d['filter'](_0x3c918e=>_0x3c918e[_0x319d74(0x143)]===_0x45e1e6[_0x319d74(0x104)])[_0x319d74(0x133)](_0x194b4a=>_0x194b4a['rangeId']))!=null?_0x151a93:[],_0x2f2922=JSON[_0x319d74(0x131)](_0x56f6d4),_0x46c12a=(await this[_0x319d74(0x137)][_0x319d74(0x158)](_0x58c0b9))[_0x319d74(0x124)]();if(_0x2e53c8){const _0x112839={'memberId':_0x46c12a,'unitId':_0x58c0b9,'content':_0x2f2922,'mention':_0x521fc0,'threadId':_0x135b93},_0x5dadbc=(await this[_0x319d74(0x150)][_0x319d74(0x15c)](_0x319d74(0x11b)+_0x58c0b9+_0x319d74(0x159),{'body':_0x112839}))['body'][_0x319d74(0x127)];return{..._0x5dc2fa,'id':_0x5dadbc[_0x319d74(0x12d)],'dT':_0x29fb43(+_0x5dadbc[_0x319d74(0x116)])[_0x319d74(0x10a)](_0x319d74(0xfe)),'personId':_0x5dadbc[_0x319d74(0x117)]};}else{const _0x2bc604={'memberId':_0x46c12a,'unitId':_0x58c0b9,'content':_0x2f2922,'mention':_0x521fc0},_0x5d115d=await this[_0x319d74(0x150)][_0x319d74(0x15c)](_0x319d74(0x11b)+_0x58c0b9+'/add',{'body':_0x2bc604});return re(_0x5d115d[_0x319d74(0x106)][_0x319d74(0x13e)],_0x5dc2fa);}}async[_0x3769f1(0x135)](_0x1e2a6b){const _0x480760=_0x3769f1;var _0x4d2024,_0xd6bf4e;const {text:_0x21eb5c,unitId:_0x3d521d}=_0x1e2a6b,_0x4305e0=(_0xd6bf4e=(_0x4d2024=_0x21eb5c['customRanges'])==null?void 0x0:_0x4d2024[_0x480760(0x139)](_0x535f9a=>_0x535f9a[_0x480760(0x143)]===_0x45e1e6[_0x480760(0x104)])[_0x480760(0x133)](_0x337ad0=>_0x337ad0['rangeId']))!=null?_0xd6bf4e:[],_0x1657e2=JSON[_0x480760(0x131)](_0x21eb5c),_0xdcdd7c=_0x1e2a6b[_0x480760(0x12b)],_0x4fb171=_0x1e2a6b['id'],_0x320206={'memberId':(await this[_0x480760(0x137)][_0x480760(0x158)](_0x3d521d))[_0x480760(0x124)](),'unitId':_0x3d521d,'threadId':_0xdcdd7c,'mention':_0x4305e0,'content':_0x1657e2,'replyId':_0x4fb171},_0x975252=await this[_0x480760(0x150)][_0x480760(0x15c)](_0x480760(0x11b)+_0x3d521d+_0x480760(0x130),{'body':_0x320206});return!_0x975252[_0x480760(0x106)]['error']||_0x975252[_0x480760(0x106)][_0x480760(0x122)][_0x480760(0x12c)]===0x1;}async[_0x3769f1(0x132)](_0xae4fe9){const _0x561675=_0x3769f1,{unitId:_0x23e1bf}=_0xae4fe9,_0x4097c9=_0xae4fe9['threadId'],_0x5b7073={'memberId':this[_0x561675(0x115)][_0x561675(0x113)]()[_0x561675(0x121)],'unitId':_0x23e1bf,'threadId':_0x4097c9,'solved':_0xae4fe9['resolved']?v[_0x561675(0xfc)]:v[_0x561675(0x11a)]},_0x51113e=await this[_0x561675(0x150)][_0x561675(0x15c)](_0x561675(0x11b)+_0x23e1bf+'/solved',{'body':_0x5b7073});return!_0x51113e[_0x561675(0x106)][_0x561675(0x122)]||_0x51113e[_0x561675(0x106)][_0x561675(0x122)][_0x561675(0x12c)]===0x1;}async[_0x3769f1(0x14a)](_0x20b315,_0x484e25,_0xab9c95,_0x3b8c88){const _0x40c2f6=_0x3769f1,_0x2bbc93={'memberId':(await this['_sessionService'][_0x40c2f6(0x158)](_0x20b315))[_0x40c2f6(0x124)](),'threadId':_0xab9c95,'replyId':_0x3b8c88,'unitId':_0x20b315},_0xbc2e8a=await this[_0x40c2f6(0x150)][_0x40c2f6(0x15c)]('/universer-api/comment/unit/'+_0x20b315+_0x40c2f6(0x13f),{'body':_0x2bbc93});return!_0xbc2e8a[_0x40c2f6(0x106)][_0x40c2f6(0x122)]||_0xbc2e8a['body'][_0x40c2f6(0x122)][_0x40c2f6(0x12c)]===0x1;}async['listComments'](_0x59bae7,_0x4db489,_0x3652dd){const _0x3ef2c7=_0x3769f1,_0x4d636d={'unitId':_0x59bae7,'threadId':_0x3652dd},_0x297e75=await this[_0x3ef2c7(0x150)][_0x3ef2c7(0x15c)](_0x3ef2c7(0x11b)+_0x59bae7+_0x3ef2c7(0x138),{'body':_0x4d636d}),_0x481c7a=_0x3652dd[_0x3ef2c7(0x133)](_0x3aa11c=>te(_0x297e75[_0x3ef2c7(0x106)][_0x3ef2c7(0x13c)][_0x3aa11c],_0x59bae7,_0x4db489))[_0x3ef2c7(0x139)](Boolean);return Object['values'](_0x297e75[_0x3ef2c7(0x106)][_0x3ef2c7(0x12f)])['forEach'](_0x338925=>{const _0x158327=_0x3ef2c7;this['_userService'][_0x158327(0x13b)](_0x338925);}),_0x481c7a;}[_0x3769f1(0x153)](_0xcfe8cf){const _0x10b460=_0x3769f1;return{'id':_0xcfe8cf['id'],'threadId':_0xcfe8cf[_0x10b460(0x12b)],'ref':_0xcfe8cf['ref']};}};S=ee([I(0x0,_0x2248d7(_0x49216e)),I(0x1,_0x2248d7(_0x330b79)),I(0x2,_0x2248d7(_0xa2a829)),I(0x3,_0x2248d7(_0x203748))],S);var se=Object[_0x3769f1(0x145)],oe=Object[_0x3769f1(0x148)],ne=(_0x50b087,_0x447d7b,_0xc8989c,_0x1ac037)=>{for(var _0x22adc7=_0x1ac037>0x1?void 0x0:_0x1ac037?oe(_0x447d7b,_0xc8989c):_0x447d7b,_0x37eeb8=_0x50b087['length']-0x1,_0x316d33;_0x37eeb8>=0x0;_0x37eeb8--)(_0x316d33=_0x50b087[_0x37eeb8])&&(_0x22adc7=(_0x1ac037?_0x316d33(_0x447d7b,_0xc8989c,_0x22adc7):_0x316d33(_0x22adc7))||_0x22adc7);return _0x1ac037&&_0x22adc7&&se(_0x447d7b,_0xc8989c,_0x22adc7),_0x22adc7;},P=(_0x58dc31,_0x4c3078)=>(_0x8def81,_0x440e35)=>_0x4c3078(_0x8def81,_0x440e35,_0x58dc31);let b=class extends _0xc97a9a{constructor(_0x58c01b,_0x305615){const _0x3308fc=_0x3769f1;super(),this[_0x3308fc(0x128)]=_0x58c01b,this[_0x3308fc(0x15e)]=_0x305615,this['_initDataSource']();}[_0x3769f1(0x119)](){const _0x575d6e=_0x3769f1;this[_0x575d6e(0x128)][_0x575d6e(0x102)]=this[_0x575d6e(0x15e)],this[_0x575d6e(0x128)][_0x575d6e(0x156)]=!0x1;}};b=ne([P(0x0,_0x128279),P(0x1,_0x2248d7(S))],b);var T=Object[_0x3769f1(0x145)],ie=Object[_0x3769f1(0x148)],ce=(_0x5c41ec,_0x11e89f,_0x37eef9)=>_0x11e89f in _0x5c41ec?T(_0x5c41ec,_0x11e89f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37eef9}):_0x5c41ec[_0x11e89f]=_0x37eef9,ae=(_0x429014,_0x96685e,_0x27cabb,_0x222d4b)=>{for(var _0x18bbd7=_0x222d4b>0x1?void 0x0:_0x222d4b?ie(_0x96685e,_0x27cabb):_0x96685e,_0x29613e=_0x429014['length']-0x1,_0xd4a536;_0x29613e>=0x0;_0x29613e--)(_0xd4a536=_0x429014[_0x29613e])&&(_0x18bbd7=(_0x222d4b?_0xd4a536(_0x96685e,_0x27cabb,_0x18bbd7):_0xd4a536(_0x18bbd7))||_0x18bbd7);return _0x222d4b&&_0x18bbd7&&T(_0x96685e,_0x27cabb,_0x18bbd7),_0x18bbd7;},M=(_0x3d0d24,_0x3e00cd)=>(_0x376a22,_0x1b5eb9)=>_0x3e00cd(_0x376a22,_0x1b5eb9,_0x3d0d24),$=(_0x4e860a,_0x451645,_0x2e7547)=>ce(_0x4e860a,typeof _0x451645!='symbol'?_0x451645+'':_0x451645,_0x2e7547);let C=class extends _0x5d51a6{constructor(_0x2d4d00=Q,_0x5819c8,_0x3cfde0){const _0x3dc2ea=_0x3769f1;super(),this[_0x3dc2ea(0x10c)]=_0x2d4d00,this[_0x3dc2ea(0xfd)]=_0x5819c8,this[_0x3dc2ea(0x10b)]=_0x3cfde0;const {..._0x51a1fd}=this['_config'];this['_configService'][_0x3dc2ea(0x11c)](z,_0x51a1fd);}[_0x3769f1(0x110)](){const _0x46e905=_0x3769f1;[[S],[b],[f]][_0x46e905(0x146)](_0x2c330a=>{const _0x82e198=_0x46e905;this[_0x82e198(0xfd)][_0x82e198(0x141)](_0x2c330a);});}[_0x3769f1(0xff)](){const _0x331621=_0x3769f1;this[_0x331621(0xfd)]['get'](b),this[_0x331621(0xfd)][_0x331621(0x144)](f);}};$(C,'pluginName',q),$(C,_0x3769f1(0x112),_0x17e7f9[_0x3769f1(0x15a)]),C=ae([_0x2544f0(_0x4b382b,_0x2c3661,_0x36ef01),M(0x1,_0x2248d7(_0x203748)),M(0x2,_0x204533)],C);export{C as UniverThreadCommentDataSourcePlugin};function _0x5449(){const _0x1752c4=['updateComment','Add','_sessionService','/list','filter','_init','addUser','comments','solved','comment','/delete','2006732DnOeLw','add','parse','rangeType','get','defineProperty','forEach','Reply','getOwnPropertyDescriptor','unitId','deleteComment','disposeWithMe','customRanges','Unknown','/universer-api/user/list','thread-comment-data-source.config','_httpService','getUnit','Solve','saveCommentToSnapshot','5595142rDCjoi','root','syncUpdateMutationToColla','content','requireSession','/reply','UNIVER_UNKNOWN','464649aNfDLK','post','3719770IvFhkM','_threadCommentDataSource','Solved','_injector','YYYY/MM/DD\x20HH:mm','onReady','_commentService','pipe','dataSource','1951254iPOAHc','COMMENT','parentId','body','user','_initUserSync','Delete','format','_configService','_config','Edit','find','replies','onStarting','subscribe','type','getCurrentUser','commentUpdate$','_userService','createTimestamp','userId','getUser','_initDataSource','OpenOrReOpen','/universer-api/comment/unit/','setConfig','addComment','personId','UNRECOGNIZED','6911968sdgMje','userID','error','slice','getMemberID','payload','_threadCommentModel','reply','_threadCommentDataSourceService','length','delete','threadId','code','replyId','4gkybGG','users','/edit','stringify','resolveComment','map','717846nPdTsZ'];_0x5449=function(){return _0x1752c4;};return _0x5449();}
|
|
1
|
+
const _0x3d8565=_0x37d5;(function(_0x41ffca,_0x1f71b1){const _0x3edd45=_0x37d5,_0x2b2533=_0x41ffca();while(!![]){try{const _0x4b9c21=parseInt(_0x3edd45(0x1b3))/0x1*(parseInt(_0x3edd45(0x1d5))/0x2)+-parseInt(_0x3edd45(0x1f5))/0x3*(parseInt(_0x3edd45(0x1fc))/0x4)+parseInt(_0x3edd45(0x1f1))/0x5*(-parseInt(_0x3edd45(0x1e5))/0x6)+-parseInt(_0x3edd45(0x1a9))/0x7*(parseInt(_0x3edd45(0x1af))/0x8)+parseInt(_0x3edd45(0x208))/0x9+-parseInt(_0x3edd45(0x1d9))/0xa*(parseInt(_0x3edd45(0x1ab))/0xb)+parseInt(_0x3edd45(0x1de))/0xc;if(_0x4b9c21===_0x1f71b1)break;else _0x2b2533['push'](_0x2b2533['shift']());}catch(_0x4d27e0){_0x2b2533['push'](_0x2b2533['shift']());}}}(_0xfaa8,0x45dd6));import{CommentService as _0x138b5d,CollaborationSessionService as _0x19d89f,UniverCollaborationClientPlugin as _0x1f0812}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x35d5a6}from'@univerjs-pro/license';import{dayjs as _0x27c290,UserManagerService as _0x4ac00b,Inject as _0x1ea5cd,Injector as _0x157274,Disposable as _0x574f3b,CustomRangeType as _0x420813,UniverInstanceType as _0xe9a39d,DependentOn as _0x4746f8,Plugin as _0x6a961e,merge as _0x3aa2bf,IConfigService as _0x47f88c}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x2fa1aa}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x427650,IThreadCommentDataSourceService as _0x3175bc}from'@univerjs/thread-comment';import{bufferTime as _0x4931d3}from'rxjs';import{HTTPService as _0x64a1c9}from'@univerjs/network';const B=_0x3d8565(0x1d7);var v=(_0x20909a=>(_0x20909a[_0x20909a[_0x3d8565(0x1b0)]=0x0]=_0x3d8565(0x1b0),_0x20909a[_0x20909a[_0x3d8565(0x1c3)]=0x1]=_0x3d8565(0x1c3),_0x20909a[_0x20909a[_0x3d8565(0x1f3)]=-0x1]=_0x3d8565(0x1f3),_0x20909a))(v||{}),p=(_0x56b93a=>(_0x56b93a[_0x56b93a['Unknown']=0x0]=_0x3d8565(0x1cc),_0x56b93a[_0x56b93a[_0x3d8565(0x1cf)]=0x1]=_0x3d8565(0x1cf),_0x56b93a[_0x56b93a[_0x3d8565(0x209)]=0x2]=_0x3d8565(0x209),_0x56b93a[_0x56b93a[_0x3d8565(0x1b9)]=0x3]='Edit',_0x56b93a[_0x56b93a['Delete']=0x4]=_0x3d8565(0x1e7),_0x56b93a[_0x56b93a['Solve']=0x5]=_0x3d8565(0x1d3),_0x56b93a[_0x56b93a[_0x3d8565(0x1f3)]=-0x1]=_0x3d8565(0x1f3),_0x56b93a))(p||{});const O=_0x39bcdd=>_0x27c290(new Date(+_0x39bcdd))[_0x3d8565(0x1c0)](_0x3d8565(0x1b8)),K=async(_0x1d0302,_0x1f5ab1)=>{const _0x4d8b83=_0x3d8565,_0x57752=_0x1d0302['get'](_0x4ac00b),_0x569967=_0x1d0302['get'](_0x64a1c9);_0x1f5ab1[_0x4d8b83(0x203)](_0x479086=>{const _0x4fbe2d=_0x4d8b83;_0x57752[_0x4fbe2d(0x1aa)](_0x479086)&&_0x1f5ab1[_0x4fbe2d(0x1c4)](_0x479086);}),_0x1f5ab1[_0x4d8b83(0x20c)]&&(await _0x569967[_0x4d8b83(0x1cb)](_0x4d8b83(0x1d4),{'params':{'userIDs':[..._0x1f5ab1]}}))[_0x4d8b83(0x200)]['users'][_0x4d8b83(0x203)](_0x7941c7=>{const _0x34f5ca=_0x4d8b83;_0x7941c7&&_0x57752[_0x34f5ca(0x20b)](_0x7941c7);});};var V=Object['defineProperty'],z=Object[_0x3d8565(0x1c6)],Q=(_0x2f4ed4,_0x2063b8,_0x50ace3,_0x5c4b55)=>{const _0x559f58=_0x3d8565;for(var _0x9ddf7c=_0x5c4b55>0x1?void 0x0:_0x5c4b55?z(_0x2063b8,_0x50ace3):_0x2063b8,_0x1bc975=_0x2f4ed4[_0x559f58(0x1cd)]-0x1,_0x32bf74;_0x1bc975>=0x0;_0x1bc975--)(_0x32bf74=_0x2f4ed4[_0x1bc975])&&(_0x9ddf7c=(_0x5c4b55?_0x32bf74(_0x2063b8,_0x50ace3,_0x9ddf7c):_0x32bf74(_0x9ddf7c))||_0x9ddf7c);return _0x5c4b55&&_0x9ddf7c&&V(_0x2063b8,_0x50ace3,_0x9ddf7c),_0x9ddf7c;},_=(_0xdb86f3,_0x289018)=>(_0x139352,_0x43c7c9)=>_0x289018(_0x139352,_0x43c7c9,_0xdb86f3);let f=class extends _0x574f3b{constructor(_0x4bc829,_0x46c67e,_0x5c091c,_0x359e0f){const _0x176903=_0x3d8565;super(),this[_0x176903(0x1d8)]=_0x4bc829,this[_0x176903(0x1ae)]=_0x46c67e,this['_userService']=_0x5c091c,this[_0x176903(0x1ee)]=_0x359e0f,this[_0x176903(0x1ce)](),this[_0x176903(0x201)]();}[_0x3d8565(0x201)](){const _0x2ad613=_0x3d8565;this[_0x2ad613(0x1e8)](this['_threadCommentModel'][_0x2ad613(0x1ff)][_0x2ad613(0x1d1)](_0x4931d3(0x10))[_0x2ad613(0x1eb)](_0x44170e=>{const _0x42ea7d=_0x2ad613,_0x7989c7=new Set();_0x44170e['forEach'](_0x2f3b11=>{const _0x45204d=_0x37d5;switch(_0x2f3b11[_0x45204d(0x1db)]){case _0x45204d(0x1ea):{const _0x194d3e=_0x2f3b11[_0x45204d(0x20a)]['personId'];_0x7989c7[_0x45204d(0x1ea)](_0x194d3e);break;}}}),K(this[_0x42ea7d(0x1ee)],_0x7989c7);}));}[_0x3d8565(0x1ce)](){const _0xc4ee9f=_0x3d8565;this[_0xc4ee9f(0x1e8)](this[_0xc4ee9f(0x1d8)]['commentUpdate$'][_0xc4ee9f(0x1eb)](async _0x2f2563=>{const _0xe31da9=_0xc4ee9f;var _0x52139a,_0x4d36b6,_0x21ca21,_0x8d7b49;const _0x189ad0=(_0x52139a=this[_0xe31da9(0x1ae)]['getUnit'](_0x2f2563[_0xe31da9(0x1be)])[_0xe31da9(0x1d6)](_0x160014=>_0x160014[_0xe31da9(0x1dc)]===_0x2f2563[_0xe31da9(0x1dc)]))==null?void 0x0:_0x52139a['root'];if(!_0x189ad0)return;const {unitId:_0x26300d,subUnitId:_0x3763e2}=_0x189ad0;switch(_0x2f2563[_0xe31da9(0x1da)]&&this[_0xe31da9(0x1e9)][_0xe31da9(0x20b)](_0x2f2563[_0xe31da9(0x1da)]),_0x2f2563['type']){case p[_0xe31da9(0x1cf)]:break;case p[_0xe31da9(0x209)]:{this[_0xe31da9(0x1ae)][_0xe31da9(0x1fe)](_0x26300d,_0x3763e2,{'unitId':_0x26300d,'subUnitId':_0x3763e2,'ref':'','id':_0x2f2563[_0xe31da9(0x1b5)],'dT':O(+_0x2f2563[_0xe31da9(0x1dd)]),'threadId':_0x2f2563[_0xe31da9(0x1dc)],'personId':(_0x21ca21=(_0x4d36b6=_0x2f2563[_0xe31da9(0x1da)])==null?void 0x0:_0x4d36b6[_0xe31da9(0x1bf)])!=null?_0x21ca21:_0x2f2563['userId'],'text':JSON[_0xe31da9(0x1b1)](_0x2f2563['content']),'parentId':_0x189ad0['id']});break;}case p[_0xe31da9(0x1e7)]:{const _0x282a06=this['_threadCommentModel']['getComment'](_0x26300d,_0x3763e2,_0x2f2563[_0xe31da9(0x1b5)]);_0x282a06&&_0x282a06['parentId']&&this['_threadCommentModel'][_0xe31da9(0x1bd)](_0x26300d,_0x3763e2,_0x2f2563[_0xe31da9(0x1b5)]);break;}case p[_0xe31da9(0x1b9)]:{this[_0xe31da9(0x1ae)][_0xe31da9(0x1a8)](_0x26300d,_0x3763e2,{'commentId':_0x2f2563[_0xe31da9(0x1b5)],'text':JSON['parse'](_0x2f2563['content'])});break;}case p[_0xe31da9(0x1d3)]:{const _0x4033ed=(_0x8d7b49=this[_0xe31da9(0x1ae)][_0xe31da9(0x1fa)](_0x2f2563[_0xe31da9(0x1be)])['find'](_0x27df11=>_0x27df11[_0xe31da9(0x1dc)]===_0x2f2563[_0xe31da9(0x1dc)]))==null?void 0x0:_0x8d7b49['root'];_0x4033ed&&this[_0xe31da9(0x1ae)]['resolveComment'](_0x26300d,_0x3763e2,_0x4033ed['id'],_0x2f2563['solved']===v[_0xe31da9(0x1c3)]);break;}}}));}};f=Q([_(0x0,_0x1ea5cd(_0x138b5d)),_(0x1,_0x1ea5cd(_0x427650)),_(0x2,_0x1ea5cd(_0x4ac00b)),_(0x3,_0x1ea5cd(_0x157274))],f);const X='thread-comment-data-source.config',P={};var k=Object[_0x3d8565(0x1c1)],ee=Object['getOwnPropertyDescriptor'],re=(_0x3f8585,_0x11dda0,_0x23ba21,_0x398b2e)=>{const _0x114cf8=_0x3d8565;for(var _0x129e5d=_0x398b2e>0x1?void 0x0:_0x398b2e?ee(_0x11dda0,_0x23ba21):_0x11dda0,_0x2fd084=_0x3f8585[_0x114cf8(0x1cd)]-0x1,_0x485d32;_0x2fd084>=0x0;_0x2fd084--)(_0x485d32=_0x3f8585[_0x2fd084])&&(_0x129e5d=(_0x398b2e?_0x485d32(_0x11dda0,_0x23ba21,_0x129e5d):_0x485d32(_0x129e5d))||_0x129e5d);return _0x398b2e&&_0x129e5d&&k(_0x11dda0,_0x23ba21,_0x129e5d),_0x129e5d;},I=(_0x4fef8e,_0x45cf2d)=>(_0x4a4012,_0x4c1273)=>_0x45cf2d(_0x4a4012,_0x4c1273,_0x4fef8e);function te(_0x48208c,_0x4a0b98){const _0x20285a=_0x3d8565,_0x459a3a=_0x48208c['replies'][0x0];return{..._0x4a0b98,'id':_0x459a3a[_0x20285a(0x1b5)],'resolved':_0x48208c[_0x20285a(0x1f8)]===0x1,'dT':O(_0x459a3a[_0x20285a(0x1dd)]),'personId':_0x459a3a[_0x20285a(0x204)],'threadId':_0x459a3a[_0x20285a(0x1dc)]};}function se(_0x9e7616,_0x492641,_0x605f82){const _0x51e400=_0x3d8565;var _0x555418,_0x1f0f6c;if(((_0x1f0f6c=(_0x555418=_0x9e7616==null?void 0x0:_0x9e7616[_0x51e400(0x1df)])==null?void 0x0:_0x555418['length'])!=null?_0x1f0f6c:0x0)>0x0){const _0x4aa48b=(_0x1e8390,_0x4a84af)=>({'id':_0x1e8390[_0x51e400(0x1b5)],'threadId':_0x1e8390[_0x51e400(0x1dc)],'dT':O(_0x1e8390[_0x51e400(0x1dd)]),'personId':_0x1e8390[_0x51e400(0x204)],'resolved':_0x9e7616[_0x51e400(0x1f8)]===v[_0x51e400(0x1c3)],'unitId':_0x492641,'subUnitId':_0x605f82,'text':JSON[_0x51e400(0x1b1)](_0x1e8390[_0x51e400(0x1fb)]),'parentId':_0x4a84af}),_0x10bfb5=_0x4aa48b(_0x9e7616[_0x51e400(0x1df)][0x0]);return{..._0x10bfb5,'children':_0x9e7616[_0x51e400(0x1df)][_0x51e400(0x1ac)](0x1)[_0x51e400(0x1ba)](_0x50d13a=>_0x4aa48b(_0x50d13a,_0x10bfb5['id']))};}return null;}let S=class{constructor(_0x4e2ccc,_0xb2c8ec,_0x37cbda,_0x526ab0){const _0x34a8ad=_0x3d8565;this['_httpService']=_0x4e2ccc,this[_0x34a8ad(0x1e9)]=_0xb2c8ec,this[_0x34a8ad(0x1e3)]=_0x37cbda,this['_injector']=_0x526ab0;}async[_0x3d8565(0x1fe)](_0x31ceb5){const _0x21eb68=_0x3d8565;var _0x4843a1,_0x43d0ec;const {parentId:_0x36778f,unitId:_0x2aa7da,text:_0x1aba0d,threadId:_0x4b20f5}=_0x31ceb5,_0x5bd379=(_0x43d0ec=(_0x4843a1=_0x1aba0d[_0x21eb68(0x1ec)])==null?void 0x0:_0x4843a1[_0x21eb68(0x1e6)](_0x18bd5e=>_0x18bd5e[_0x21eb68(0x202)]===_0x420813[_0x21eb68(0x207)])[_0x21eb68(0x1ba)](_0x4cb8c6=>_0x4cb8c6[_0x21eb68(0x1b2)]))!=null?_0x43d0ec:[],_0x567a26=JSON[_0x21eb68(0x1f9)](_0x1aba0d),_0x4d483b=(await this[_0x21eb68(0x1e3)]['requireSession'](_0x2aa7da))[_0x21eb68(0x1fd)]();if(_0x36778f){const _0x5cdaae={'memberId':_0x4d483b,'unitId':_0x2aa7da,'content':_0x567a26,'mention':_0x5bd379,'threadId':_0x4b20f5},_0x51a419=(await this['_httpService'][_0x21eb68(0x1ed)](_0x21eb68(0x1ef)+_0x2aa7da+_0x21eb68(0x1c9),{'body':_0x5cdaae}))[_0x21eb68(0x200)][_0x21eb68(0x1d2)];return{..._0x31ceb5,'id':_0x51a419[_0x21eb68(0x1b5)],'dT':_0x27c290(+_0x51a419[_0x21eb68(0x1dd)])[_0x21eb68(0x1c0)]('YYYY/MM/DD\x20HH:mm'),'personId':_0x51a419[_0x21eb68(0x204)]};}else{const _0x1f6ddc={'memberId':_0x4d483b,'unitId':_0x2aa7da,'content':_0x567a26,'mention':_0x5bd379},_0x9560=await this[_0x21eb68(0x1e4)]['post'](_0x21eb68(0x1ef)+_0x2aa7da+_0x21eb68(0x1ad),{'body':_0x1f6ddc});return te(_0x9560[_0x21eb68(0x200)][_0x21eb68(0x206)],_0x31ceb5);}}async[_0x3d8565(0x1a8)](_0x85dd1a){const _0xa366af=_0x3d8565;var _0x73b9f5,_0x487e6e;const {text:_0x409c19,unitId:_0x5691bf}=_0x85dd1a,_0x582c36=(_0x487e6e=(_0x73b9f5=_0x409c19[_0xa366af(0x1ec)])==null?void 0x0:_0x73b9f5[_0xa366af(0x1e6)](_0x4a195f=>_0x4a195f[_0xa366af(0x202)]===_0x420813[_0xa366af(0x207)])[_0xa366af(0x1ba)](_0x152507=>_0x152507['rangeId']))!=null?_0x487e6e:[],_0x303232=JSON[_0xa366af(0x1f9)](_0x409c19),_0x367ff8=_0x85dd1a[_0xa366af(0x1dc)],_0x1a0df4=_0x85dd1a['id'],_0x2b37c3={'memberId':(await this[_0xa366af(0x1e3)]['requireSession'](_0x5691bf))[_0xa366af(0x1fd)](),'unitId':_0x5691bf,'threadId':_0x367ff8,'mention':_0x582c36,'content':_0x303232,'replyId':_0x1a0df4},_0xb62d02=await this[_0xa366af(0x1e4)]['post'](_0xa366af(0x1ef)+_0x5691bf+_0xa366af(0x205),{'body':_0x2b37c3});return!_0xb62d02[_0xa366af(0x200)][_0xa366af(0x1a7)]||_0xb62d02[_0xa366af(0x200)][_0xa366af(0x1a7)]['code']===0x1;}async[_0x3d8565(0x1f4)](_0x59a940){const _0x4afdd7=_0x3d8565,{unitId:_0x12d67e}=_0x59a940,_0x31632e=_0x59a940[_0x4afdd7(0x1dc)],_0x4bc241={'memberId':this['_userService'][_0x4afdd7(0x1c8)]()[_0x4afdd7(0x1bf)],'unitId':_0x12d67e,'threadId':_0x31632e,'solved':_0x59a940[_0x4afdd7(0x1f6)]?v[_0x4afdd7(0x1c3)]:v[_0x4afdd7(0x1b0)]},_0x411aae=await this[_0x4afdd7(0x1e4)]['post']('/universer-api/comment/unit/'+_0x12d67e+'/solved',{'body':_0x4bc241});return!_0x411aae[_0x4afdd7(0x200)]['error']||_0x411aae['body'][_0x4afdd7(0x1a7)]['code']===0x1;}async[_0x3d8565(0x1bd)](_0x16795a,_0x3d607d,_0x59e6a4,_0xba1b48){const _0x5a3a85=_0x3d8565,_0x28bc7e={'memberId':(await this[_0x5a3a85(0x1e3)][_0x5a3a85(0x1f2)](_0x16795a))[_0x5a3a85(0x1fd)](),'threadId':_0x59e6a4,'replyId':_0xba1b48,'unitId':_0x16795a},_0x5a0889=await this[_0x5a3a85(0x1e4)][_0x5a3a85(0x1ed)](_0x5a3a85(0x1ef)+_0x16795a+_0x5a3a85(0x1f7),{'body':_0x28bc7e});return!_0x5a0889['body']['error']||_0x5a0889[_0x5a3a85(0x200)][_0x5a3a85(0x1a7)][_0x5a3a85(0x1ca)]===0x1;}async['listComments'](_0x35b252,_0x574557,_0x434294){const _0x4e716d=_0x3d8565,_0x2fd24c={'unitId':_0x35b252,'threadId':_0x434294},_0x5df7c7=await this[_0x4e716d(0x1e4)][_0x4e716d(0x1ed)](_0x4e716d(0x1ef)+_0x35b252+_0x4e716d(0x1c5),{'body':_0x2fd24c}),_0x34b605=_0x434294[_0x4e716d(0x1ba)](_0x485333=>se(_0x5df7c7[_0x4e716d(0x200)][_0x4e716d(0x1b6)][_0x485333],_0x35b252,_0x574557))['filter'](Boolean);return Object['values'](_0x5df7c7[_0x4e716d(0x200)][_0x4e716d(0x1bb)])[_0x4e716d(0x203)](_0x3ce4b1=>{const _0x1f9a5c=_0x4e716d;this[_0x1f9a5c(0x1e9)]['addUser'](_0x3ce4b1);}),_0x34b605;}[_0x3d8565(0x1b7)](_0x3d83d4){return{'id':_0x3d83d4['id'],'threadId':_0x3d83d4['threadId'],'ref':_0x3d83d4['ref']};}};function _0xfaa8(){const _0x464698=['addComment','commentUpdate$','body','_initUserSync','rangeType','forEach','userId','/edit','comment','COMMENT','4202595smxKeD','Reply','payload','addUser','size','dataSource','error','updateComment','287VBgxhw','getUser','1648559WhOdlv','slice','/add','_threadCommentModel','63672ABslMG','OpenOrReOpen','parse','rangeId','13522PgKAzo','UNIVER_UNKNOWN','replyId','comments','saveCommentToSnapshot','YYYY/MM/DD\x20HH:mm','Edit','map','users','_threadCommentDataSourceService','deleteComment','unitId','userID','format','defineProperty','syncUpdateMutationToColla','Solved','delete','/list','getOwnPropertyDescriptor','setConfig','getCurrentUser','/reply','code','get','Unknown','length','_init','Add','_config','pipe','reply','Solve','/universer-api/user/list','2USzRtQ','find','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','_commentService','20VRdoec','user','type','threadId','createTimestamp','6839148kOnIxA','replies','onStarting','pluginName','_initDataSource','_sessionService','_httpService','6hSzjDs','filter','Delete','disposeWithMe','_userService','add','subscribe','customRanges','post','_injector','/universer-api/comment/unit/','symbol','302050lEaCKp','requireSession','UNRECOGNIZED','resolveComment','233319HOjhfX','resolved','/delete','solved','stringify','getUnit','content','4WjLIGh','getMemberID'];_0xfaa8=function(){return _0x464698;};return _0xfaa8();}S=re([I(0x0,_0x1ea5cd(_0x64a1c9)),I(0x1,_0x1ea5cd(_0x4ac00b)),I(0x2,_0x1ea5cd(_0x19d89f)),I(0x3,_0x1ea5cd(_0x157274))],S);function _0x37d5(_0x433505,_0x10d36a){const _0xfaa87c=_0xfaa8();return _0x37d5=function(_0x37d510,_0x1b134b){_0x37d510=_0x37d510-0x1a6;let _0x2b4a5d=_0xfaa87c[_0x37d510];return _0x2b4a5d;},_0x37d5(_0x433505,_0x10d36a);}var oe=Object[_0x3d8565(0x1c1)],ne=Object['getOwnPropertyDescriptor'],ie=(_0x39e630,_0x4904bd,_0x154ad8,_0x5a05fa)=>{const _0xb5b34f=_0x3d8565;for(var _0x32f6cc=_0x5a05fa>0x1?void 0x0:_0x5a05fa?ne(_0x4904bd,_0x154ad8):_0x4904bd,_0x59ed2b=_0x39e630[_0xb5b34f(0x1cd)]-0x1,_0x25e51b;_0x59ed2b>=0x0;_0x59ed2b--)(_0x25e51b=_0x39e630[_0x59ed2b])&&(_0x32f6cc=(_0x5a05fa?_0x25e51b(_0x4904bd,_0x154ad8,_0x32f6cc):_0x25e51b(_0x32f6cc))||_0x32f6cc);return _0x5a05fa&&_0x32f6cc&&oe(_0x4904bd,_0x154ad8,_0x32f6cc),_0x32f6cc;},M=(_0x582135,_0x266d86)=>(_0x4d3619,_0xdf1e40)=>_0x266d86(_0x4d3619,_0xdf1e40,_0x582135);let b=class extends _0x574f3b{constructor(_0x609cae,_0x1388ea){const _0x9052b5=_0x3d8565;super(),this[_0x9052b5(0x1bc)]=_0x609cae,this['_threadCommentDataSource']=_0x1388ea,this['_initDataSource']();}[_0x3d8565(0x1e2)](){const _0x29c6a1=_0x3d8565;this[_0x29c6a1(0x1bc)][_0x29c6a1(0x1a6)]=this['_threadCommentDataSource'],this[_0x29c6a1(0x1bc)][_0x29c6a1(0x1c2)]=!0x1;}};b=ie([M(0x0,_0x3175bc),M(0x1,_0x1ea5cd(S))],b);var $=Object[_0x3d8565(0x1c1)],ce=Object[_0x3d8565(0x1c6)],ae=(_0x361b2e,_0x39f31d,_0x20238b)=>_0x39f31d in _0x361b2e?$(_0x361b2e,_0x39f31d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20238b}):_0x361b2e[_0x39f31d]=_0x20238b,de=(_0x14bb8f,_0xd50083,_0x1305d4,_0x5c76f2)=>{const _0x1ee230=_0x3d8565;for(var _0x334d10=_0x5c76f2>0x1?void 0x0:_0x5c76f2?ce(_0xd50083,_0x1305d4):_0xd50083,_0x23609f=_0x14bb8f[_0x1ee230(0x1cd)]-0x1,_0x645cfd;_0x23609f>=0x0;_0x23609f--)(_0x645cfd=_0x14bb8f[_0x23609f])&&(_0x334d10=(_0x5c76f2?_0x645cfd(_0xd50083,_0x1305d4,_0x334d10):_0x645cfd(_0x334d10))||_0x334d10);return _0x5c76f2&&_0x334d10&&$(_0xd50083,_0x1305d4,_0x334d10),_0x334d10;},N=(_0x176ecf,_0x50c141)=>(_0xfb6ec,_0x5e95ad)=>_0x50c141(_0xfb6ec,_0x5e95ad,_0x176ecf),j=(_0x31f8a0,_0x572e63,_0x101f9c)=>ae(_0x31f8a0,typeof _0x572e63!=_0x3d8565(0x1f0)?_0x572e63+'':_0x572e63,_0x101f9c);let C=class extends _0x6a961e{constructor(_0x1f393e=P,_0x47b81c,_0x4bbf96){const _0x55ad44=_0x3d8565;super(),this[_0x55ad44(0x1d0)]=_0x1f393e,this['_injector']=_0x47b81c,this['_configService']=_0x4bbf96;const {..._0x757c5c}=_0x3aa2bf({},P,this[_0x55ad44(0x1d0)]);this['_configService'][_0x55ad44(0x1c7)](X,_0x757c5c);}[_0x3d8565(0x1e0)](){const _0x4afabb=_0x3d8565;[[S],[b],[f]][_0x4afabb(0x203)](_0x4326be=>{const _0x341964=_0x4afabb;this[_0x341964(0x1ee)]['add'](_0x4326be);});}['onReady'](){const _0x4af95e=_0x3d8565;this['_injector'][_0x4af95e(0x1cb)](b),this['_injector'][_0x4af95e(0x1cb)](f);}};j(C,_0x3d8565(0x1e1),B),j(C,_0x3d8565(0x1db),_0xe9a39d[_0x3d8565(0x1b4)]),C=de([_0x4746f8(_0x2fa1aa,_0x1f0812,_0x35d5a6),N(0x1,_0x1ea5cd(_0x157274)),N(0x2,_0x47f88c)],C);export{C as UniverThreadCommentDataSourcePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4218(){const _0x27145b=['/universer-api/user/list','getComment','object','HTTPService','unitId','Solved','Add','@univerjs/core','_threadCommentDataSourceService','UniverThreadComment','275BPHlQk','length','format','type','Injector','_initDataSource','replyId','addUser','add','Plugin','UniverThreadCommentUi','onReady','map','UniverLicensePlugin','_threadCommentDataSource','deleteComment','Solve','rangeId','COMMENT','payload','ref','_sessionService','resolveComment','symbol','14539URCYnM','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','1672206yNXOiE','pluginName','content','saveCommentToSnapshot','exports','defineProperty','userId','_configService','42808QQpeVF','body','listComments','parse','personId','delete','UniverThreadCommentDataSourcePlugin','UniverCore','getUser','/solved','get','bufferTime','_httpService','_initUserSync','addComment','/list','users','/edit','1997545FdXMer','CollaborationSessionService','UniverInstanceType','filter','46kmqFeD','9vpVfEE','_injector','Module','subscribe','createTimestamp','updateComment','reply','toStringTag','_commentService','UniverCollaborationClientPlugin','/reply','stringify','Edit','Delete','7090712yAvFaQ','post','/universer-api/comment/unit/','amd','@univerjs-pro/license','customRanges','UNIVER_UNKNOWN','Disposable','UniverNetwork','rxjs','Unknown','Inject','user','comments','root','onStarting','Reply','requireSession','code','slice','UniverProCollaborationClient','@univerjs/thread-comment-ui','solved','parentId','values','21TfBMqp','size','getMemberID','UserManagerService','_userService','function','error','UNRECOGNIZED','thread-comment-data-source.config','comment','YYYY/MM/DD\x20HH:mm','_threadCommentModel','958600vkWsOE','CustomRangeType','IThreadCommentDataSourceService','pipe','IConfigService','CommentService','setConfig','@univerjs-pro/collaboration-client','_init','syncUpdateMutationToColla','OpenOrReOpen','dayjs','forEach','replies','getUnit','threadId','251445UhRvjr','find','getOwnPropertyDescriptor','rangeType','commentUpdate$','@univerjs/thread-comment','UniverProLicense','_config','/delete'];_0x4218=function(){return _0x27145b;};return _0x4218();}function _0x529c(_0x461b5a,_0x5a4aa0){const _0x42180b=_0x4218();return _0x529c=function(_0x529c71,_0x3ce98c){_0x529c71=_0x529c71-0xea;let _0x84d9b5=_0x42180b[_0x529c71];return _0x84d9b5;},_0x529c(_0x461b5a,_0x5a4aa0);}(function(_0x2b6c94,_0x4c2740){const _0x567db1=_0x529c,_0x580f66=_0x2b6c94();while(!![]){try{const _0x227dbc=parseInt(_0x567db1(0x14c))/0x1*(parseInt(_0x567db1(0x16c))/0x2)+-parseInt(_0x567db1(0x121))/0x3+-parseInt(_0x567db1(0x156))/0x4*(-parseInt(_0x567db1(0x134))/0x5)+parseInt(_0x567db1(0x14e))/0x6*(parseInt(_0x567db1(0x105))/0x7)+parseInt(_0x567db1(0xec))/0x8*(-parseInt(_0x567db1(0x16d))/0x9)+-parseInt(_0x567db1(0x111))/0xa+-parseInt(_0x567db1(0x168))/0xb;if(_0x227dbc===_0x4c2740)break;else _0x580f66['push'](_0x580f66['shift']());}catch(_0x216f56){_0x580f66['push'](_0x580f66['shift']());}}}(_0x4218,0x7ce0d),function(_0x539fa5,_0x444189){const _0x48ab7f=_0x529c;typeof exports==_0x48ab7f(0x12c)&&typeof module<'u'?_0x444189(exports,require(_0x48ab7f(0x118)),require(_0x48ab7f(0xf0)),require(_0x48ab7f(0x131)),require(_0x48ab7f(0x101)),require(_0x48ab7f(0x126)),require(_0x48ab7f(0xf5)),require('@univerjs/network')):typeof define==_0x48ab7f(0x10a)&&define[_0x48ab7f(0xef)]?define([_0x48ab7f(0x152),_0x48ab7f(0x118),_0x48ab7f(0xf0),_0x48ab7f(0x131),_0x48ab7f(0x101),_0x48ab7f(0x126),_0x48ab7f(0xf5),'@univerjs/network'],_0x444189):(_0x539fa5=typeof globalThis<'u'?globalThis:_0x539fa5||self,_0x444189(_0x539fa5['UniverProThreadCommentDatasource']={},_0x539fa5[_0x48ab7f(0x100)],_0x539fa5[_0x48ab7f(0x127)],_0x539fa5[_0x48ab7f(0x15d)],_0x539fa5[_0x48ab7f(0x13e)],_0x539fa5[_0x48ab7f(0x133)],_0x539fa5[_0x48ab7f(0xf5)],_0x539fa5[_0x48ab7f(0xf4)]));}(this,function(_0x589b2d,_0x18f121,_0x11f48a,_0x4f6d1e,_0x43a49e,_0xb0304f,_0x2619c6,_0x222017){'use strict';const _0x1bd4f3=_0x529c;const _0x3f063c=_0x1bd4f3(0x14d);var _0x1ae90b=(_0x3aa550=>(_0x3aa550[_0x3aa550[_0x1bd4f3(0x11b)]=0x0]=_0x1bd4f3(0x11b),_0x3aa550[_0x3aa550['Solved']=0x1]=_0x1bd4f3(0x12f),_0x3aa550[_0x3aa550[_0x1bd4f3(0x10c)]=-0x1]=_0x1bd4f3(0x10c),_0x3aa550))(_0x1ae90b||{}),_0x12d8c0=(_0x3a83f6=>(_0x3a83f6[_0x3a83f6['Unknown']=0x0]=_0x1bd4f3(0xf6),_0x3a83f6[_0x3a83f6['Add']=0x1]=_0x1bd4f3(0x130),_0x3a83f6[_0x3a83f6[_0x1bd4f3(0xfc)]=0x2]=_0x1bd4f3(0xfc),_0x3a83f6[_0x3a83f6['Edit']=0x3]='Edit',_0x3a83f6[_0x3a83f6[_0x1bd4f3(0xeb)]=0x4]=_0x1bd4f3(0xeb),_0x3a83f6[_0x3a83f6[_0x1bd4f3(0x144)]=0x5]=_0x1bd4f3(0x144),_0x3a83f6[_0x3a83f6[_0x1bd4f3(0x10c)]=-0x1]=_0x1bd4f3(0x10c),_0x3a83f6))(_0x12d8c0||{});const _0x32ad5b=_0x58c34d=>_0x4f6d1e[_0x1bd4f3(0x11c)](new Date(+_0x58c34d))[_0x1bd4f3(0x136)](_0x1bd4f3(0x10f)),_0x1ddc7f=async(_0x4ec333,_0x1277d6)=>{const _0x65d601=_0x1bd4f3,_0x16a650=_0x4ec333[_0x65d601(0x160)](_0x4f6d1e[_0x65d601(0x108)]),_0x363b78=_0x4ec333[_0x65d601(0x160)](_0x222017[_0x65d601(0x12d)]);_0x1277d6[_0x65d601(0x11d)](_0x4a0ca8=>{const _0x1b791f=_0x65d601;_0x16a650[_0x1b791f(0x15e)](_0x4a0ca8)&&_0x1277d6[_0x1b791f(0x15b)](_0x4a0ca8);}),_0x1277d6[_0x65d601(0x106)]&&(await _0x363b78[_0x65d601(0x160)](_0x65d601(0x12a),{'params':{'userIDs':[..._0x1277d6]}}))[_0x65d601(0x157)][_0x65d601(0x166)]['forEach'](_0x355969=>{const _0x390083=_0x65d601;_0x355969&&_0x16a650[_0x390083(0x13b)](_0x355969);});};var _0x339582=Object['defineProperty'],_0x5eeab1=Object[_0x1bd4f3(0x123)],_0x386c47=(_0x3449a3,_0x5d5e1d,_0x528f4f,_0x18124a)=>{const _0x5b3765=_0x1bd4f3;for(var _0x43567f=_0x18124a>0x1?void 0x0:_0x18124a?_0x5eeab1(_0x5d5e1d,_0x528f4f):_0x5d5e1d,_0x89b382=_0x3449a3[_0x5b3765(0x135)]-0x1,_0x3a91f9;_0x89b382>=0x0;_0x89b382--)(_0x3a91f9=_0x3449a3[_0x89b382])&&(_0x43567f=(_0x18124a?_0x3a91f9(_0x5d5e1d,_0x528f4f,_0x43567f):_0x3a91f9(_0x43567f))||_0x43567f);return _0x18124a&&_0x43567f&&_0x339582(_0x5d5e1d,_0x528f4f,_0x43567f),_0x43567f;},_0xf8c003=(_0x428d84,_0x5adfce)=>(_0xe89c18,_0x4d88d2)=>_0x5adfce(_0xe89c18,_0x4d88d2,_0x428d84);let _0x11eb1b=class extends _0x4f6d1e[_0x1bd4f3(0xf3)]{constructor(_0xb4912b,_0x426a2a,_0x442135,_0x211a54){const _0x3b9364=_0x1bd4f3;super(),this['_commentService']=_0xb4912b,this['_threadCommentModel']=_0x426a2a,this[_0x3b9364(0x109)]=_0x442135,this[_0x3b9364(0x16e)]=_0x211a54,this[_0x3b9364(0x119)](),this['_initUserSync']();}[_0x1bd4f3(0x163)](){const _0x45e963=_0x1bd4f3;this['disposeWithMe'](this[_0x45e963(0x110)][_0x45e963(0x125)][_0x45e963(0x114)](_0x2619c6[_0x45e963(0x161)](0x10))[_0x45e963(0x170)](_0x432550=>{const _0x2f049f=_0x45e963,_0x26989e=new Set();_0x432550['forEach'](_0x4c1436=>{const _0x1b7317=_0x529c;switch(_0x4c1436[_0x1b7317(0x137)]){case'add':{const _0x39660a=_0x4c1436[_0x1b7317(0x147)][_0x1b7317(0x15a)];_0x26989e[_0x1b7317(0x13c)](_0x39660a);break;}}}),_0x1ddc7f(this[_0x2f049f(0x16e)],_0x26989e);}));}[_0x1bd4f3(0x119)](){const _0x1f95b1=_0x1bd4f3;this['disposeWithMe'](this[_0x1f95b1(0x175)][_0x1f95b1(0x125)]['subscribe'](async _0x75d644=>{const _0x50489d=_0x1f95b1;var _0x3c5e16,_0x1debe8,_0x40db67,_0x10f1cd;const _0x37667f=(_0x3c5e16=this[_0x50489d(0x110)][_0x50489d(0x11f)](_0x75d644[_0x50489d(0x12e)])['find'](_0x5b7179=>_0x5b7179[_0x50489d(0x120)]===_0x75d644[_0x50489d(0x120)]))==null?void 0x0:_0x3c5e16[_0x50489d(0xfa)];if(!_0x37667f)return;const {unitId:_0x539c56,subUnitId:_0x450bb0}=_0x37667f;switch(_0x75d644['user']&&this['_userService'][_0x50489d(0x13b)](_0x75d644[_0x50489d(0xf8)]),_0x75d644[_0x50489d(0x137)]){case _0x12d8c0[_0x50489d(0x130)]:break;case _0x12d8c0[_0x50489d(0xfc)]:{this[_0x50489d(0x110)][_0x50489d(0x164)](_0x539c56,_0x450bb0,{'unitId':_0x539c56,'subUnitId':_0x450bb0,'ref':'','id':_0x75d644[_0x50489d(0x13a)],'dT':_0x32ad5b(+_0x75d644['createTimestamp']),'threadId':_0x75d644[_0x50489d(0x120)],'personId':(_0x40db67=(_0x1debe8=_0x75d644[_0x50489d(0xf8)])==null?void 0x0:_0x1debe8['userID'])!=null?_0x40db67:_0x75d644[_0x50489d(0x154)],'text':JSON['parse'](_0x75d644[_0x50489d(0x150)]),'parentId':_0x37667f['id']});break;}case _0x12d8c0[_0x50489d(0xeb)]:{const _0x476af9=this[_0x50489d(0x110)][_0x50489d(0x12b)](_0x539c56,_0x450bb0,_0x75d644[_0x50489d(0x13a)]);_0x476af9&&_0x476af9[_0x50489d(0x103)]&&this['_threadCommentModel'][_0x50489d(0x143)](_0x539c56,_0x450bb0,_0x75d644['replyId']);break;}case _0x12d8c0[_0x50489d(0xea)]:{this[_0x50489d(0x110)][_0x50489d(0x172)](_0x539c56,_0x450bb0,{'commentId':_0x75d644['replyId'],'text':JSON[_0x50489d(0x159)](_0x75d644[_0x50489d(0x150)])});break;}case _0x12d8c0[_0x50489d(0x144)]:{const _0x4bfddf=(_0x10f1cd=this[_0x50489d(0x110)][_0x50489d(0x11f)](_0x75d644[_0x50489d(0x12e)])[_0x50489d(0x122)](_0x2c625b=>_0x2c625b[_0x50489d(0x120)]===_0x75d644['threadId']))==null?void 0x0:_0x10f1cd['root'];_0x4bfddf&&this[_0x50489d(0x110)][_0x50489d(0x14a)](_0x539c56,_0x450bb0,_0x4bfddf['id'],_0x75d644['solved']===_0x1ae90b[_0x50489d(0x12f)]);break;}}}));}};_0x11eb1b=_0x386c47([_0xf8c003(0x0,_0x4f6d1e[_0x1bd4f3(0xf7)](_0x18f121[_0x1bd4f3(0x116)])),_0xf8c003(0x1,_0x4f6d1e[_0x1bd4f3(0xf7)](_0xb0304f['ThreadCommentModel'])),_0xf8c003(0x2,_0x4f6d1e[_0x1bd4f3(0xf7)](_0x4f6d1e[_0x1bd4f3(0x108)])),_0xf8c003(0x3,_0x4f6d1e['Inject'](_0x4f6d1e[_0x1bd4f3(0x138)]))],_0x11eb1b);const _0x4a61aa=_0x1bd4f3(0x10d),_0x1e96ed={};var _0x5acda8=Object[_0x1bd4f3(0x153)],_0x154254=Object[_0x1bd4f3(0x123)],_0x1ca029=(_0x116c39,_0x267566,_0x4df617,_0x14e7b0)=>{const _0x4f9c61=_0x1bd4f3;for(var _0x10433f=_0x14e7b0>0x1?void 0x0:_0x14e7b0?_0x154254(_0x267566,_0x4df617):_0x267566,_0x15a9a3=_0x116c39[_0x4f9c61(0x135)]-0x1,_0x497a0e;_0x15a9a3>=0x0;_0x15a9a3--)(_0x497a0e=_0x116c39[_0x15a9a3])&&(_0x10433f=(_0x14e7b0?_0x497a0e(_0x267566,_0x4df617,_0x10433f):_0x497a0e(_0x10433f))||_0x10433f);return _0x14e7b0&&_0x10433f&&_0x5acda8(_0x267566,_0x4df617,_0x10433f),_0x10433f;},_0x384208=(_0x4abc30,_0x2bffc4)=>(_0x4c9706,_0x5d146c)=>_0x2bffc4(_0x4c9706,_0x5d146c,_0x4abc30);function _0x1a559a(_0x5d060a,_0x3ce309){const _0x211345=_0x1bd4f3,_0x3f0088=_0x5d060a[_0x211345(0x11e)][0x0];return{..._0x3ce309,'id':_0x3f0088['replyId'],'resolved':_0x5d060a[_0x211345(0x102)]===0x1,'dT':_0x32ad5b(_0x3f0088[_0x211345(0x171)]),'personId':_0x3f0088[_0x211345(0x154)],'threadId':_0x3f0088['threadId']};}function _0x54dcf0(_0x1385fc,_0x31e2c1,_0x9bf18e){const _0x3aeecc=_0x1bd4f3;var _0x4c61df,_0x24b558;if(((_0x24b558=(_0x4c61df=_0x1385fc==null?void 0x0:_0x1385fc['replies'])==null?void 0x0:_0x4c61df[_0x3aeecc(0x135)])!=null?_0x24b558:0x0)>0x0){const _0x422d3e=(_0x5bc40d,_0x15075d)=>({'id':_0x5bc40d[_0x3aeecc(0x13a)],'threadId':_0x5bc40d[_0x3aeecc(0x120)],'dT':_0x32ad5b(_0x5bc40d['createTimestamp']),'personId':_0x5bc40d[_0x3aeecc(0x154)],'resolved':_0x1385fc[_0x3aeecc(0x102)]===_0x1ae90b[_0x3aeecc(0x12f)],'unitId':_0x31e2c1,'subUnitId':_0x9bf18e,'text':JSON[_0x3aeecc(0x159)](_0x5bc40d[_0x3aeecc(0x150)]),'parentId':_0x15075d}),_0x457d39=_0x422d3e(_0x1385fc[_0x3aeecc(0x11e)][0x0]);return{..._0x457d39,'children':_0x1385fc[_0x3aeecc(0x11e)][_0x3aeecc(0xff)](0x1)[_0x3aeecc(0x140)](_0x155858=>_0x422d3e(_0x155858,_0x457d39['id']))};}return null;}let _0xc14cec=class{constructor(_0x3060fb,_0x1bae04,_0x2b5a32,_0x3bb51d){const _0x4da34=_0x1bd4f3;this[_0x4da34(0x162)]=_0x3060fb,this[_0x4da34(0x109)]=_0x1bae04,this[_0x4da34(0x149)]=_0x2b5a32,this[_0x4da34(0x16e)]=_0x3bb51d;}async[_0x1bd4f3(0x164)](_0x12e856){const _0x4bf82f=_0x1bd4f3;var _0x3b9a8e,_0x3fa3c9;const {parentId:_0x27ef5c,unitId:_0x36c0d8,text:_0x25c85a,threadId:_0x12b7d}=_0x12e856,_0x59dfb6=(_0x3fa3c9=(_0x3b9a8e=_0x25c85a[_0x4bf82f(0xf1)])==null?void 0x0:_0x3b9a8e[_0x4bf82f(0x16b)](_0xef26ab=>_0xef26ab[_0x4bf82f(0x124)]===_0x4f6d1e[_0x4bf82f(0x112)][_0x4bf82f(0x146)])[_0x4bf82f(0x140)](_0x32737e=>_0x32737e['rangeId']))!=null?_0x3fa3c9:[],_0x4b3aab=JSON[_0x4bf82f(0x178)](_0x25c85a),_0x325497=(await this[_0x4bf82f(0x149)]['requireSession'](_0x36c0d8))[_0x4bf82f(0x107)]();if(_0x27ef5c){const _0xea3fdf={'memberId':_0x325497,'unitId':_0x36c0d8,'content':_0x4b3aab,'mention':_0x59dfb6,'threadId':_0x12b7d},_0x4d82fe=(await this[_0x4bf82f(0x162)]['post'](_0x4bf82f(0xee)+_0x36c0d8+_0x4bf82f(0x177),{'body':_0xea3fdf}))['body'][_0x4bf82f(0x173)];return{..._0x12e856,'id':_0x4d82fe[_0x4bf82f(0x13a)],'dT':_0x4f6d1e[_0x4bf82f(0x11c)](+_0x4d82fe[_0x4bf82f(0x171)])['format'](_0x4bf82f(0x10f)),'personId':_0x4d82fe[_0x4bf82f(0x154)]};}else{const _0x599e24={'memberId':_0x325497,'unitId':_0x36c0d8,'content':_0x4b3aab,'mention':_0x59dfb6},_0x425542=await this[_0x4bf82f(0x162)][_0x4bf82f(0xed)]('/universer-api/comment/unit/'+_0x36c0d8+'/add',{'body':_0x599e24});return _0x1a559a(_0x425542['body'][_0x4bf82f(0x10e)],_0x12e856);}}async['updateComment'](_0x55ed90){const _0x47828a=_0x1bd4f3;var _0x5ed0c2,_0x447743;const {text:_0x4c61d9,unitId:_0x1f589b}=_0x55ed90,_0x12bf55=(_0x447743=(_0x5ed0c2=_0x4c61d9['customRanges'])==null?void 0x0:_0x5ed0c2[_0x47828a(0x16b)](_0x46d569=>_0x46d569[_0x47828a(0x124)]===_0x4f6d1e[_0x47828a(0x112)][_0x47828a(0x146)])[_0x47828a(0x140)](_0x4edd9c=>_0x4edd9c[_0x47828a(0x145)]))!=null?_0x447743:[],_0x4426fd=JSON[_0x47828a(0x178)](_0x4c61d9),_0x4175ae=_0x55ed90[_0x47828a(0x120)],_0x1a9a4c=_0x55ed90['id'],_0xa992f9={'memberId':(await this['_sessionService']['requireSession'](_0x1f589b))[_0x47828a(0x107)](),'unitId':_0x1f589b,'threadId':_0x4175ae,'mention':_0x12bf55,'content':_0x4426fd,'replyId':_0x1a9a4c},_0x55a85d=await this[_0x47828a(0x162)][_0x47828a(0xed)](_0x47828a(0xee)+_0x1f589b+_0x47828a(0x167),{'body':_0xa992f9});return!_0x55a85d['body'][_0x47828a(0x10b)]||_0x55a85d[_0x47828a(0x157)][_0x47828a(0x10b)]['code']===0x1;}async[_0x1bd4f3(0x14a)](_0x180b41){const _0x824a3e=_0x1bd4f3,{unitId:_0x2b4ef8}=_0x180b41,_0x548a2c=_0x180b41[_0x824a3e(0x120)],_0x5d896c={'memberId':this[_0x824a3e(0x109)]['getCurrentUser']()['userID'],'unitId':_0x2b4ef8,'threadId':_0x548a2c,'solved':_0x180b41['resolved']?_0x1ae90b[_0x824a3e(0x12f)]:_0x1ae90b[_0x824a3e(0x11b)]},_0x59b543=await this[_0x824a3e(0x162)]['post']('/universer-api/comment/unit/'+_0x2b4ef8+_0x824a3e(0x15f),{'body':_0x5d896c});return!_0x59b543[_0x824a3e(0x157)][_0x824a3e(0x10b)]||_0x59b543[_0x824a3e(0x157)][_0x824a3e(0x10b)][_0x824a3e(0xfe)]===0x1;}async[_0x1bd4f3(0x143)](_0x3fb0a2,_0x1f1771,_0x12d10c,_0x506725){const _0x5d4fe0=_0x1bd4f3,_0x3f7b5a={'memberId':(await this[_0x5d4fe0(0x149)][_0x5d4fe0(0xfd)](_0x3fb0a2))[_0x5d4fe0(0x107)](),'threadId':_0x12d10c,'replyId':_0x506725,'unitId':_0x3fb0a2},_0x42b2e7=await this[_0x5d4fe0(0x162)]['post']('/universer-api/comment/unit/'+_0x3fb0a2+_0x5d4fe0(0x129),{'body':_0x3f7b5a});return!_0x42b2e7[_0x5d4fe0(0x157)]['error']||_0x42b2e7[_0x5d4fe0(0x157)][_0x5d4fe0(0x10b)][_0x5d4fe0(0xfe)]===0x1;}async[_0x1bd4f3(0x158)](_0x27890c,_0x16aa08,_0x5a0f21){const _0x5e57d3=_0x1bd4f3,_0x2211d2={'unitId':_0x27890c,'threadId':_0x5a0f21},_0x4a5e54=await this['_httpService']['post']('/universer-api/comment/unit/'+_0x27890c+_0x5e57d3(0x165),{'body':_0x2211d2}),_0x3e94ec=_0x5a0f21[_0x5e57d3(0x140)](_0x2ed579=>_0x54dcf0(_0x4a5e54[_0x5e57d3(0x157)][_0x5e57d3(0xf9)][_0x2ed579],_0x27890c,_0x16aa08))['filter'](Boolean);return Object[_0x5e57d3(0x104)](_0x4a5e54[_0x5e57d3(0x157)][_0x5e57d3(0x166)])[_0x5e57d3(0x11d)](_0x5c3b7b=>{const _0xc1ea27=_0x5e57d3;this[_0xc1ea27(0x109)][_0xc1ea27(0x13b)](_0x5c3b7b);}),_0x3e94ec;}[_0x1bd4f3(0x151)](_0x3840cc){const _0x3a4da9=_0x1bd4f3;return{'id':_0x3840cc['id'],'threadId':_0x3840cc[_0x3a4da9(0x120)],'ref':_0x3840cc[_0x3a4da9(0x148)]};}};_0xc14cec=_0x1ca029([_0x384208(0x0,_0x4f6d1e['Inject'](_0x222017[_0x1bd4f3(0x12d)])),_0x384208(0x1,_0x4f6d1e[_0x1bd4f3(0xf7)](_0x4f6d1e[_0x1bd4f3(0x108)])),_0x384208(0x2,_0x4f6d1e['Inject'](_0x18f121[_0x1bd4f3(0x169)])),_0x384208(0x3,_0x4f6d1e[_0x1bd4f3(0xf7)](_0x4f6d1e['Injector']))],_0xc14cec);var _0x2c8974=Object[_0x1bd4f3(0x153)],_0x49b74c=Object['getOwnPropertyDescriptor'],_0x378042=(_0x591a75,_0x3ab7aa,_0xbbb4c7,_0x13c5af)=>{const _0x454cb5=_0x1bd4f3;for(var _0x80766a=_0x13c5af>0x1?void 0x0:_0x13c5af?_0x49b74c(_0x3ab7aa,_0xbbb4c7):_0x3ab7aa,_0x2e86e0=_0x591a75[_0x454cb5(0x135)]-0x1,_0xe5ec9b;_0x2e86e0>=0x0;_0x2e86e0--)(_0xe5ec9b=_0x591a75[_0x2e86e0])&&(_0x80766a=(_0x13c5af?_0xe5ec9b(_0x3ab7aa,_0xbbb4c7,_0x80766a):_0xe5ec9b(_0x80766a))||_0x80766a);return _0x13c5af&&_0x80766a&&_0x2c8974(_0x3ab7aa,_0xbbb4c7,_0x80766a),_0x80766a;},_0x5a86e5=(_0x217cda,_0x50d2fa)=>(_0x404a4f,_0x50207a)=>_0x50d2fa(_0x404a4f,_0x50207a,_0x217cda);let _0x22d1ba=class extends _0x4f6d1e[_0x1bd4f3(0xf3)]{constructor(_0x28f403,_0x522922){const _0x518d38=_0x1bd4f3;super(),this[_0x518d38(0x132)]=_0x28f403,this[_0x518d38(0x142)]=_0x522922,this[_0x518d38(0x139)]();}[_0x1bd4f3(0x139)](){const _0x2aa6b8=_0x1bd4f3;this['_threadCommentDataSourceService']['dataSource']=this[_0x2aa6b8(0x142)],this[_0x2aa6b8(0x132)][_0x2aa6b8(0x11a)]=!0x1;}};_0x22d1ba=_0x378042([_0x5a86e5(0x0,_0xb0304f[_0x1bd4f3(0x113)]),_0x5a86e5(0x1,_0x4f6d1e[_0x1bd4f3(0xf7)](_0xc14cec))],_0x22d1ba);var _0x2e44d2=Object['defineProperty'],_0x1f996c=Object[_0x1bd4f3(0x123)],_0x2b63da=(_0xf0b82a,_0x31a815,_0x58c86e)=>_0x31a815 in _0xf0b82a?_0x2e44d2(_0xf0b82a,_0x31a815,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58c86e}):_0xf0b82a[_0x31a815]=_0x58c86e,_0x5312bb=(_0x50090f,_0x26c763,_0x1b0927,_0x38ba87)=>{const _0x47bbe9=_0x1bd4f3;for(var _0x297442=_0x38ba87>0x1?void 0x0:_0x38ba87?_0x1f996c(_0x26c763,_0x1b0927):_0x26c763,_0x548ad1=_0x50090f[_0x47bbe9(0x135)]-0x1,_0x536a06;_0x548ad1>=0x0;_0x548ad1--)(_0x536a06=_0x50090f[_0x548ad1])&&(_0x297442=(_0x38ba87?_0x536a06(_0x26c763,_0x1b0927,_0x297442):_0x536a06(_0x297442))||_0x297442);return _0x38ba87&&_0x297442&&_0x2e44d2(_0x26c763,_0x1b0927,_0x297442),_0x297442;},_0x8b1825=(_0x1c339d,_0x5287d2)=>(_0xbb330f,_0x4548a9)=>_0x5287d2(_0xbb330f,_0x4548a9,_0x1c339d),_0x101810=(_0x593b39,_0x192f6b,_0x342c55)=>_0x2b63da(_0x593b39,typeof _0x192f6b!=_0x1bd4f3(0x14b)?_0x192f6b+'':_0x192f6b,_0x342c55);_0x589b2d[_0x1bd4f3(0x15c)]=class extends _0x4f6d1e[_0x1bd4f3(0x13d)]{constructor(_0x3435b4=_0x1e96ed,_0x24b181,_0x526cb9){const _0x226b54=_0x1bd4f3;super(),this[_0x226b54(0x128)]=_0x3435b4,this[_0x226b54(0x16e)]=_0x24b181,this[_0x226b54(0x155)]=_0x526cb9;const {..._0x2c72ca}=this[_0x226b54(0x128)];this[_0x226b54(0x155)][_0x226b54(0x117)](_0x4a61aa,_0x2c72ca);}[_0x1bd4f3(0xfb)](){[[_0xc14cec],[_0x22d1ba],[_0x11eb1b]]['forEach'](_0x3d38aa=>{const _0x5dd0e7=_0x529c;this[_0x5dd0e7(0x16e)][_0x5dd0e7(0x13c)](_0x3d38aa);});}[_0x1bd4f3(0x13f)](){const _0x1bd42a=_0x1bd4f3;this[_0x1bd42a(0x16e)]['get'](_0x22d1ba),this[_0x1bd42a(0x16e)][_0x1bd42a(0x160)](_0x11eb1b);}},_0x101810(_0x589b2d['UniverThreadCommentDataSourcePlugin'],_0x1bd4f3(0x14f),_0x3f063c),_0x101810(_0x589b2d[_0x1bd4f3(0x15c)],_0x1bd4f3(0x137),_0x4f6d1e[_0x1bd4f3(0x16a)][_0x1bd4f3(0xf2)]),_0x589b2d[_0x1bd4f3(0x15c)]=_0x5312bb([_0x4f6d1e['DependentOn'](_0x43a49e['UniverThreadCommentUIPlugin'],_0x18f121[_0x1bd4f3(0x176)],_0x11f48a[_0x1bd4f3(0x141)]),_0x8b1825(0x1,_0x4f6d1e['Inject'](_0x4f6d1e[_0x1bd4f3(0x138)])),_0x8b1825(0x2,_0x4f6d1e[_0x1bd4f3(0x115)])],_0x589b2d[_0x1bd4f3(0x15c)]),Object['defineProperty'](_0x589b2d,Symbol[_0x1bd4f3(0x174)],{'value':_0x1bd4f3(0x16f)});}));
|
|
1
|
+
function _0x33e2(){const _0x3253ea=['UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','Add','@univerjs/network','_init','content','resolved','Inject','2415eryFPG','_threadCommentDataSourceService','_config','merge','Edit','@univerjs/thread-comment-ui','filter','UserManagerService','/edit','dayjs','/solved','comments','rxjs','@univerjs-pro/license','UniverThreadCommentUi','getComment','Disposable','UniverThreadComment','size','replies','_configService','requireSession','userId','parentId','function','/list','_injector','addComment','format','rangeId','body','_commentService','syncUpdateMutationToColla','280BbLbSZ','_httpService','defineProperty','Solved','thread-comment-data-source.config','length','UniverCollaborationClientPlugin','onStarting','add','_userService','unitId','addUser','solved','createTimestamp','slice','@univerjs/core','find','UniverThreadCommentUIPlugin','IThreadCommentDataSourceService','CommentService','onReady','UniverProCollaborationClient','reply','152925SgbhDD','parse','Plugin','resolveComment','getUser','YYYY/MM/DD\x20HH:mm','stringify','forEach','code','Reply','_sessionService','toStringTag','get','/add','deleteComment','values','getUnit','updateComment','saveCommentToSnapshot','COMMENT','userID','customRanges','668228PswkhW','14298ZGYvdW','@univerjs-pro/collaboration-client','798WVUhnk','438dFQuqg','replyId','getMemberID','39960GtCdra','@univerjs/thread-comment','_threadCommentModel','post','ThreadCommentModel','UniverThreadCommentDataSourcePlugin','rangeType','/universer-api/user/list','error','users','_threadCommentDataSource','Injector','dataSource','pipe','bufferTime','UniverLicensePlugin','Module','root','129429mukUPG','type','_initDataSource','_initUserSync','exports','setConfig','Delete','Solve','UNRECOGNIZED','IConfigService','OpenOrReOpen','HTTPService','UniverNetwork','subscribe','UniverCore','getOwnPropertyDescriptor','Unknown','/universer-api/comment/unit/','ref','threadId','1376952geWtSU','getCurrentUser','map','payload'];_0x33e2=function(){return _0x3253ea;};return _0x33e2();}function _0x23ed(_0x15991c,_0x53b6c7){const _0x33e257=_0x33e2();return _0x23ed=function(_0x23ed08,_0x572cb7){_0x23ed08=_0x23ed08-0xac;let _0x2c5a05=_0x33e257[_0x23ed08];return _0x2c5a05;},_0x23ed(_0x15991c,_0x53b6c7);}(function(_0x11cbfa,_0x37cf9d){const _0x2067d5=_0x23ed,_0x43b11d=_0x11cbfa();while(!![]){try{const _0x450e98=-parseInt(_0x2067d5(0x107))/0x1+parseInt(_0x2067d5(0x121))/0x2*(-parseInt(_0x2067d5(0xcf))/0x3)+parseInt(_0x2067d5(0x11d))/0x4+parseInt(_0x2067d5(0x124))/0x5+parseInt(_0x2067d5(0x11e))/0x6*(-parseInt(_0x2067d5(0x120))/0x7)+parseInt(_0x2067d5(0xc4))/0x8+-parseInt(_0x2067d5(0xb0))/0x9*(-parseInt(_0x2067d5(0xf0))/0xa);if(_0x450e98===_0x37cf9d)break;else _0x43b11d['push'](_0x43b11d['shift']());}catch(_0x3cf7e0){_0x43b11d['push'](_0x43b11d['shift']());}}}(_0x33e2,0x245da),function(_0x3c2e88,_0x4ccf93){const _0x3b0224=_0x23ed;typeof exports=='object'&&typeof module<'u'?_0x4ccf93(exports,require(_0x3b0224(0x11f)),require('@univerjs-pro/license'),require(_0x3b0224(0xff)),require(_0x3b0224(0xd4)),require(_0x3b0224(0x125)),require(_0x3b0224(0xdb)),require(_0x3b0224(0xca))):typeof define==_0x3b0224(0xe7)&&define['amd']?define([_0x3b0224(0xb4),'@univerjs-pro/collaboration-client',_0x3b0224(0xdc),_0x3b0224(0xff),_0x3b0224(0xd4),_0x3b0224(0x125),_0x3b0224(0xdb),_0x3b0224(0xca)],_0x4ccf93):(_0x3c2e88=typeof globalThis<'u'?globalThis:_0x3c2e88||self,_0x4ccf93(_0x3c2e88['UniverProThreadCommentDatasource']={},_0x3c2e88[_0x3b0224(0x105)],_0x3c2e88['UniverProLicense'],_0x3c2e88[_0x3b0224(0xbe)],_0x3c2e88[_0x3b0224(0xdd)],_0x3c2e88[_0x3b0224(0xe0)],_0x3c2e88[_0x3b0224(0xdb)],_0x3c2e88[_0x3b0224(0xbc)]));}(this,function(_0x6cc921,_0x35764a,_0x5c1a2d,_0x2eca40,_0x3febc4,_0x25207d,_0x315f38,_0x28413a){'use strict';const _0x117733=_0x23ed;const _0x2e02f1=_0x117733(0xc8);var _0x157a4e=(_0x2a83cc=>(_0x2a83cc[_0x2a83cc[_0x117733(0xba)]=0x0]=_0x117733(0xba),_0x2a83cc[_0x2a83cc['Solved']=0x1]=_0x117733(0xf3),_0x2a83cc[_0x2a83cc[_0x117733(0xb8)]=-0x1]=_0x117733(0xb8),_0x2a83cc))(_0x157a4e||{}),_0x4a6f45=(_0x3be82d=>(_0x3be82d[_0x3be82d[_0x117733(0xc0)]=0x0]=_0x117733(0xc0),_0x3be82d[_0x3be82d['Add']=0x1]=_0x117733(0xc9),_0x3be82d[_0x3be82d[_0x117733(0x110)]=0x2]=_0x117733(0x110),_0x3be82d[_0x3be82d['Edit']=0x3]=_0x117733(0xd3),_0x3be82d[_0x3be82d[_0x117733(0xb6)]=0x4]=_0x117733(0xb6),_0x3be82d[_0x3be82d['Solve']=0x5]='Solve',_0x3be82d[_0x3be82d['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3be82d))(_0x4a6f45||{});const _0x3e3bed=_0x207438=>_0x2eca40[_0x117733(0xd8)](new Date(+_0x207438))[_0x117733(0xeb)](_0x117733(0x10c)),_0x27989e=async(_0x2eab79,_0x48a345)=>{const _0x24a4b5=_0x117733,_0x2d5941=_0x2eab79['get'](_0x2eca40[_0x24a4b5(0xd6)]),_0x4eadb0=_0x2eab79[_0x24a4b5(0x113)](_0x28413a[_0x24a4b5(0xbb)]);_0x48a345[_0x24a4b5(0x10e)](_0x5ab636=>{const _0x1f3f5b=_0x24a4b5;_0x2d5941[_0x1f3f5b(0x10b)](_0x5ab636)&&_0x48a345['delete'](_0x5ab636);}),_0x48a345[_0x24a4b5(0xe1)]&&(await _0x4eadb0[_0x24a4b5(0x113)](_0x24a4b5(0x12b),{'params':{'userIDs':[..._0x48a345]}}))[_0x24a4b5(0xed)][_0x24a4b5(0x12d)][_0x24a4b5(0x10e)](_0x232888=>{const _0x264c13=_0x24a4b5;_0x232888&&_0x2d5941[_0x264c13(0xfb)](_0x232888);});};var _0x47624f=Object[_0x117733(0xf2)],_0x539f4d=Object[_0x117733(0xbf)],_0x1eb553=(_0xa3193e,_0x3a077a,_0x34ce38,_0x39039a)=>{const _0x39555a=_0x117733;for(var _0x54c72d=_0x39039a>0x1?void 0x0:_0x39039a?_0x539f4d(_0x3a077a,_0x34ce38):_0x3a077a,_0x2f582b=_0xa3193e[_0x39555a(0xf5)]-0x1,_0x3ae30d;_0x2f582b>=0x0;_0x2f582b--)(_0x3ae30d=_0xa3193e[_0x2f582b])&&(_0x54c72d=(_0x39039a?_0x3ae30d(_0x3a077a,_0x34ce38,_0x54c72d):_0x3ae30d(_0x54c72d))||_0x54c72d);return _0x39039a&&_0x54c72d&&_0x47624f(_0x3a077a,_0x34ce38,_0x54c72d),_0x54c72d;},_0xcd6eb9=(_0x1d8560,_0x519db9)=>(_0x466ce5,_0x15ee18)=>_0x519db9(_0x466ce5,_0x15ee18,_0x1d8560);let _0x2c8470=class extends _0x2eca40[_0x117733(0xdf)]{constructor(_0x5a48be,_0xf25418,_0x852ced,_0x55fa9b){const _0x1baf45=_0x117733;super(),this[_0x1baf45(0xee)]=_0x5a48be,this['_threadCommentModel']=_0xf25418,this[_0x1baf45(0xf9)]=_0x852ced,this['_injector']=_0x55fa9b,this[_0x1baf45(0xcb)](),this[_0x1baf45(0xb3)]();}[_0x117733(0xb3)](){const _0x2eeb2c=_0x117733;this['disposeWithMe'](this[_0x2eeb2c(0x126)]['commentUpdate$'][_0x2eeb2c(0x131)](_0x315f38[_0x2eeb2c(0xac)](0x10))[_0x2eeb2c(0xbd)](_0x41c2e1=>{const _0x4c760d=_0x2eeb2c,_0x3b211e=new Set();_0x41c2e1['forEach'](_0xe35897=>{const _0x41eb58=_0x23ed;switch(_0xe35897[_0x41eb58(0xb1)]){case _0x41eb58(0xf8):{const _0x5e7da0=_0xe35897[_0x41eb58(0xc7)]['personId'];_0x3b211e[_0x41eb58(0xf8)](_0x5e7da0);break;}}}),_0x27989e(this[_0x4c760d(0xe9)],_0x3b211e);}));}[_0x117733(0xcb)](){const _0x186a82=_0x117733;this['disposeWithMe'](this[_0x186a82(0xee)]['commentUpdate$'][_0x186a82(0xbd)](async _0x13a637=>{const _0x1217bf=_0x186a82;var _0x3c246b,_0x5413ae,_0x4a474d,_0x5662d0;const _0x57e325=(_0x3c246b=this['_threadCommentModel']['getUnit'](_0x13a637[_0x1217bf(0xfa)])[_0x1217bf(0x100)](_0x3001dd=>_0x3001dd[_0x1217bf(0xc3)]===_0x13a637[_0x1217bf(0xc3)]))==null?void 0x0:_0x3c246b[_0x1217bf(0xaf)];if(!_0x57e325)return;const {unitId:_0x25e899,subUnitId:_0x53ca67}=_0x57e325;switch(_0x13a637['user']&&this[_0x1217bf(0xf9)][_0x1217bf(0xfb)](_0x13a637['user']),_0x13a637[_0x1217bf(0xb1)]){case _0x4a6f45[_0x1217bf(0xc9)]:break;case _0x4a6f45[_0x1217bf(0x110)]:{this[_0x1217bf(0x126)][_0x1217bf(0xea)](_0x25e899,_0x53ca67,{'unitId':_0x25e899,'subUnitId':_0x53ca67,'ref':'','id':_0x13a637[_0x1217bf(0x122)],'dT':_0x3e3bed(+_0x13a637[_0x1217bf(0xfd)]),'threadId':_0x13a637[_0x1217bf(0xc3)],'personId':(_0x4a474d=(_0x5413ae=_0x13a637['user'])==null?void 0x0:_0x5413ae['userID'])!=null?_0x4a474d:_0x13a637['userId'],'text':JSON[_0x1217bf(0x108)](_0x13a637[_0x1217bf(0xcc)]),'parentId':_0x57e325['id']});break;}case _0x4a6f45[_0x1217bf(0xb6)]:{const _0x82edee=this['_threadCommentModel'][_0x1217bf(0xde)](_0x25e899,_0x53ca67,_0x13a637['replyId']);_0x82edee&&_0x82edee[_0x1217bf(0xe6)]&&this[_0x1217bf(0x126)][_0x1217bf(0x115)](_0x25e899,_0x53ca67,_0x13a637[_0x1217bf(0x122)]);break;}case _0x4a6f45[_0x1217bf(0xd3)]:{this[_0x1217bf(0x126)][_0x1217bf(0x118)](_0x25e899,_0x53ca67,{'commentId':_0x13a637[_0x1217bf(0x122)],'text':JSON[_0x1217bf(0x108)](_0x13a637[_0x1217bf(0xcc)])});break;}case _0x4a6f45[_0x1217bf(0xb7)]:{const _0x4f071c=(_0x5662d0=this[_0x1217bf(0x126)][_0x1217bf(0x117)](_0x13a637[_0x1217bf(0xfa)])['find'](_0x5e7a94=>_0x5e7a94[_0x1217bf(0xc3)]===_0x13a637[_0x1217bf(0xc3)]))==null?void 0x0:_0x5662d0[_0x1217bf(0xaf)];_0x4f071c&&this[_0x1217bf(0x126)][_0x1217bf(0x10a)](_0x25e899,_0x53ca67,_0x4f071c['id'],_0x13a637['solved']===_0x157a4e[_0x1217bf(0xf3)]);break;}}}));}};_0x2c8470=_0x1eb553([_0xcd6eb9(0x0,_0x2eca40[_0x117733(0xce)](_0x35764a[_0x117733(0x103)])),_0xcd6eb9(0x1,_0x2eca40[_0x117733(0xce)](_0x25207d[_0x117733(0x128)])),_0xcd6eb9(0x2,_0x2eca40['Inject'](_0x2eca40[_0x117733(0xd6)])),_0xcd6eb9(0x3,_0x2eca40[_0x117733(0xce)](_0x2eca40[_0x117733(0x12f)]))],_0x2c8470);const _0x2d3a70=_0x117733(0xf4),_0x10137a={};var _0x867c21=Object[_0x117733(0xf2)],_0x4ac8a2=Object[_0x117733(0xbf)],_0x2d588b=(_0x2906b1,_0x24058b,_0x4e65e3,_0x3db319)=>{const _0x2b28d6=_0x117733;for(var _0x15f3db=_0x3db319>0x1?void 0x0:_0x3db319?_0x4ac8a2(_0x24058b,_0x4e65e3):_0x24058b,_0x2cc965=_0x2906b1[_0x2b28d6(0xf5)]-0x1,_0x177127;_0x2cc965>=0x0;_0x2cc965--)(_0x177127=_0x2906b1[_0x2cc965])&&(_0x15f3db=(_0x3db319?_0x177127(_0x24058b,_0x4e65e3,_0x15f3db):_0x177127(_0x15f3db))||_0x15f3db);return _0x3db319&&_0x15f3db&&_0x867c21(_0x24058b,_0x4e65e3,_0x15f3db),_0x15f3db;},_0x108b4f=(_0x5179c6,_0x1c3aef)=>(_0x581232,_0x132fe0)=>_0x1c3aef(_0x581232,_0x132fe0,_0x5179c6);function _0x3b9db0(_0xb1b1b0,_0x2e8e1e){const _0x22b911=_0x117733,_0x4ff84c=_0xb1b1b0[_0x22b911(0xe2)][0x0];return{..._0x2e8e1e,'id':_0x4ff84c[_0x22b911(0x122)],'resolved':_0xb1b1b0[_0x22b911(0xfc)]===0x1,'dT':_0x3e3bed(_0x4ff84c[_0x22b911(0xfd)]),'personId':_0x4ff84c['userId'],'threadId':_0x4ff84c[_0x22b911(0xc3)]};}function _0x44adc7(_0x337604,_0x5d88a4,_0x4afe8b){const _0x4f78cf=_0x117733;var _0x348049,_0x42e28a;if(((_0x42e28a=(_0x348049=_0x337604==null?void 0x0:_0x337604[_0x4f78cf(0xe2)])==null?void 0x0:_0x348049[_0x4f78cf(0xf5)])!=null?_0x42e28a:0x0)>0x0){const _0x22e8fc=(_0xb4db90,_0x1bfbc5)=>({'id':_0xb4db90[_0x4f78cf(0x122)],'threadId':_0xb4db90[_0x4f78cf(0xc3)],'dT':_0x3e3bed(_0xb4db90['createTimestamp']),'personId':_0xb4db90[_0x4f78cf(0xe5)],'resolved':_0x337604[_0x4f78cf(0xfc)]===_0x157a4e[_0x4f78cf(0xf3)],'unitId':_0x5d88a4,'subUnitId':_0x4afe8b,'text':JSON[_0x4f78cf(0x108)](_0xb4db90[_0x4f78cf(0xcc)]),'parentId':_0x1bfbc5}),_0x53adb5=_0x22e8fc(_0x337604['replies'][0x0]);return{..._0x53adb5,'children':_0x337604[_0x4f78cf(0xe2)][_0x4f78cf(0xfe)](0x1)[_0x4f78cf(0xc6)](_0x762fa0=>_0x22e8fc(_0x762fa0,_0x53adb5['id']))};}return null;}let _0x49982e=class{constructor(_0x47cca5,_0x50bcdc,_0x24d2aa,_0x858ad){const _0x23d9ef=_0x117733;this['_httpService']=_0x47cca5,this['_userService']=_0x50bcdc,this[_0x23d9ef(0x111)]=_0x24d2aa,this[_0x23d9ef(0xe9)]=_0x858ad;}async['addComment'](_0x2ccced){const _0x2a0e81=_0x117733;var _0x63ce10,_0x580a20;const {parentId:_0x484da2,unitId:_0x203025,text:_0x232e8c,threadId:_0x39f2e6}=_0x2ccced,_0x55d2b8=(_0x580a20=(_0x63ce10=_0x232e8c[_0x2a0e81(0x11c)])==null?void 0x0:_0x63ce10['filter'](_0x48db8a=>_0x48db8a[_0x2a0e81(0x12a)]===_0x2eca40['CustomRangeType'][_0x2a0e81(0x11a)])[_0x2a0e81(0xc6)](_0x1a10fe=>_0x1a10fe[_0x2a0e81(0xec)]))!=null?_0x580a20:[],_0x2adfe4=JSON[_0x2a0e81(0x10d)](_0x232e8c),_0x2faf76=(await this[_0x2a0e81(0x111)][_0x2a0e81(0xe4)](_0x203025))['getMemberID']();if(_0x484da2){const _0x1b994e={'memberId':_0x2faf76,'unitId':_0x203025,'content':_0x2adfe4,'mention':_0x55d2b8,'threadId':_0x39f2e6},_0xf656e2=(await this[_0x2a0e81(0xf1)][_0x2a0e81(0x127)](_0x2a0e81(0xc1)+_0x203025+'/reply',{'body':_0x1b994e}))[_0x2a0e81(0xed)][_0x2a0e81(0x106)];return{..._0x2ccced,'id':_0xf656e2[_0x2a0e81(0x122)],'dT':_0x2eca40['dayjs'](+_0xf656e2[_0x2a0e81(0xfd)])['format'](_0x2a0e81(0x10c)),'personId':_0xf656e2[_0x2a0e81(0xe5)]};}else{const _0x16ddf7={'memberId':_0x2faf76,'unitId':_0x203025,'content':_0x2adfe4,'mention':_0x55d2b8},_0x2242d6=await this[_0x2a0e81(0xf1)]['post'](_0x2a0e81(0xc1)+_0x203025+_0x2a0e81(0x114),{'body':_0x16ddf7});return _0x3b9db0(_0x2242d6['body']['comment'],_0x2ccced);}}async[_0x117733(0x118)](_0x3afbe1){const _0x14f8a0=_0x117733;var _0x595e86,_0x53e8a9;const {text:_0x3e1474,unitId:_0x36714c}=_0x3afbe1,_0x3f4e15=(_0x53e8a9=(_0x595e86=_0x3e1474[_0x14f8a0(0x11c)])==null?void 0x0:_0x595e86[_0x14f8a0(0xd5)](_0x56a09b=>_0x56a09b[_0x14f8a0(0x12a)]===_0x2eca40['CustomRangeType'][_0x14f8a0(0x11a)])[_0x14f8a0(0xc6)](_0x2520ef=>_0x2520ef[_0x14f8a0(0xec)]))!=null?_0x53e8a9:[],_0x558535=JSON[_0x14f8a0(0x10d)](_0x3e1474),_0x592922=_0x3afbe1[_0x14f8a0(0xc3)],_0x590594=_0x3afbe1['id'],_0x232685={'memberId':(await this[_0x14f8a0(0x111)][_0x14f8a0(0xe4)](_0x36714c))[_0x14f8a0(0x123)](),'unitId':_0x36714c,'threadId':_0x592922,'mention':_0x3f4e15,'content':_0x558535,'replyId':_0x590594},_0x595e2c=await this[_0x14f8a0(0xf1)][_0x14f8a0(0x127)](_0x14f8a0(0xc1)+_0x36714c+_0x14f8a0(0xd7),{'body':_0x232685});return!_0x595e2c['body'][_0x14f8a0(0x12c)]||_0x595e2c['body']['error']['code']===0x1;}async[_0x117733(0x10a)](_0x22a319){const _0x57dcc6=_0x117733,{unitId:_0x57ec4d}=_0x22a319,_0x1135b2=_0x22a319[_0x57dcc6(0xc3)],_0x5cc03d={'memberId':this['_userService'][_0x57dcc6(0xc5)]()[_0x57dcc6(0x11b)],'unitId':_0x57ec4d,'threadId':_0x1135b2,'solved':_0x22a319[_0x57dcc6(0xcd)]?_0x157a4e['Solved']:_0x157a4e['OpenOrReOpen']},_0x1008c2=await this[_0x57dcc6(0xf1)][_0x57dcc6(0x127)](_0x57dcc6(0xc1)+_0x57ec4d+_0x57dcc6(0xd9),{'body':_0x5cc03d});return!_0x1008c2['body'][_0x57dcc6(0x12c)]||_0x1008c2[_0x57dcc6(0xed)][_0x57dcc6(0x12c)][_0x57dcc6(0x10f)]===0x1;}async[_0x117733(0x115)](_0x503d2d,_0x575ddc,_0x524587,_0x223b00){const _0x10647a=_0x117733,_0x180b6f={'memberId':(await this[_0x10647a(0x111)][_0x10647a(0xe4)](_0x503d2d))[_0x10647a(0x123)](),'threadId':_0x524587,'replyId':_0x223b00,'unitId':_0x503d2d},_0x4efaa6=await this[_0x10647a(0xf1)][_0x10647a(0x127)](_0x10647a(0xc1)+_0x503d2d+'/delete',{'body':_0x180b6f});return!_0x4efaa6[_0x10647a(0xed)][_0x10647a(0x12c)]||_0x4efaa6[_0x10647a(0xed)][_0x10647a(0x12c)]['code']===0x1;}async['listComments'](_0x39effd,_0x78d7c6,_0x2a26c1){const _0x3f75da=_0x117733,_0x1bbca0={'unitId':_0x39effd,'threadId':_0x2a26c1},_0x464faf=await this[_0x3f75da(0xf1)][_0x3f75da(0x127)](_0x3f75da(0xc1)+_0x39effd+_0x3f75da(0xe8),{'body':_0x1bbca0}),_0x2bc09b=_0x2a26c1[_0x3f75da(0xc6)](_0x19dae9=>_0x44adc7(_0x464faf[_0x3f75da(0xed)][_0x3f75da(0xda)][_0x19dae9],_0x39effd,_0x78d7c6))[_0x3f75da(0xd5)](Boolean);return Object[_0x3f75da(0x116)](_0x464faf[_0x3f75da(0xed)][_0x3f75da(0x12d)])['forEach'](_0x40ad42=>{this['_userService']['addUser'](_0x40ad42);}),_0x2bc09b;}[_0x117733(0x119)](_0x4d7880){const _0x21266f=_0x117733;return{'id':_0x4d7880['id'],'threadId':_0x4d7880['threadId'],'ref':_0x4d7880[_0x21266f(0xc2)]};}};_0x49982e=_0x2d588b([_0x108b4f(0x0,_0x2eca40[_0x117733(0xce)](_0x28413a[_0x117733(0xbb)])),_0x108b4f(0x1,_0x2eca40[_0x117733(0xce)](_0x2eca40[_0x117733(0xd6)])),_0x108b4f(0x2,_0x2eca40[_0x117733(0xce)](_0x35764a['CollaborationSessionService'])),_0x108b4f(0x3,_0x2eca40[_0x117733(0xce)](_0x2eca40[_0x117733(0x12f)]))],_0x49982e);var _0x166b8e=Object['defineProperty'],_0x4fb154=Object[_0x117733(0xbf)],_0x16c2ba=(_0x7c05d6,_0x2aa8ae,_0x308b44,_0xe9ce89)=>{const _0xdb3741=_0x117733;for(var _0x2057f6=_0xe9ce89>0x1?void 0x0:_0xe9ce89?_0x4fb154(_0x2aa8ae,_0x308b44):_0x2aa8ae,_0x3bd22d=_0x7c05d6[_0xdb3741(0xf5)]-0x1,_0x34571a;_0x3bd22d>=0x0;_0x3bd22d--)(_0x34571a=_0x7c05d6[_0x3bd22d])&&(_0x2057f6=(_0xe9ce89?_0x34571a(_0x2aa8ae,_0x308b44,_0x2057f6):_0x34571a(_0x2057f6))||_0x2057f6);return _0xe9ce89&&_0x2057f6&&_0x166b8e(_0x2aa8ae,_0x308b44,_0x2057f6),_0x2057f6;},_0x237d05=(_0x4cf6cc,_0x5f0537)=>(_0x29afd3,_0x36dd27)=>_0x5f0537(_0x29afd3,_0x36dd27,_0x4cf6cc);let _0x578368=class extends _0x2eca40[_0x117733(0xdf)]{constructor(_0x414da0,_0x43e460){const _0x41c837=_0x117733;super(),this[_0x41c837(0xd0)]=_0x414da0,this['_threadCommentDataSource']=_0x43e460,this[_0x41c837(0xb2)]();}['_initDataSource'](){const _0x28f2f7=_0x117733;this[_0x28f2f7(0xd0)][_0x28f2f7(0x130)]=this[_0x28f2f7(0x12e)],this[_0x28f2f7(0xd0)][_0x28f2f7(0xef)]=!0x1;}};_0x578368=_0x16c2ba([_0x237d05(0x0,_0x25207d[_0x117733(0x102)]),_0x237d05(0x1,_0x2eca40[_0x117733(0xce)](_0x49982e))],_0x578368);var _0x45a310=Object[_0x117733(0xf2)],_0x547c06=Object[_0x117733(0xbf)],_0x2bf189=(_0x1fb1ee,_0x408d16,_0x27e194)=>_0x408d16 in _0x1fb1ee?_0x45a310(_0x1fb1ee,_0x408d16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27e194}):_0x1fb1ee[_0x408d16]=_0x27e194,_0x1eb7f2=(_0x48bbed,_0x5a2733,_0xb4ff7c,_0x37ac0c)=>{const _0x47a2b9=_0x117733;for(var _0x3c7c5c=_0x37ac0c>0x1?void 0x0:_0x37ac0c?_0x547c06(_0x5a2733,_0xb4ff7c):_0x5a2733,_0x134d68=_0x48bbed[_0x47a2b9(0xf5)]-0x1,_0x2d09e2;_0x134d68>=0x0;_0x134d68--)(_0x2d09e2=_0x48bbed[_0x134d68])&&(_0x3c7c5c=(_0x37ac0c?_0x2d09e2(_0x5a2733,_0xb4ff7c,_0x3c7c5c):_0x2d09e2(_0x3c7c5c))||_0x3c7c5c);return _0x37ac0c&&_0x3c7c5c&&_0x45a310(_0x5a2733,_0xb4ff7c,_0x3c7c5c),_0x3c7c5c;},_0x462847=(_0x209a35,_0x361078)=>(_0x3348dc,_0x5a56de)=>_0x361078(_0x3348dc,_0x5a56de,_0x209a35),_0x2cf387=(_0xc740f6,_0x103c54,_0x26c91c)=>_0x2bf189(_0xc740f6,typeof _0x103c54!='symbol'?_0x103c54+'':_0x103c54,_0x26c91c);_0x6cc921[_0x117733(0x129)]=class extends _0x2eca40[_0x117733(0x109)]{constructor(_0x1b2895=_0x10137a,_0x71600b,_0x4fbaa8){const _0x4facbb=_0x117733;super(),this[_0x4facbb(0xd1)]=_0x1b2895,this['_injector']=_0x71600b,this[_0x4facbb(0xe3)]=_0x4fbaa8;const {..._0x230823}=_0x2eca40[_0x4facbb(0xd2)]({},_0x10137a,this[_0x4facbb(0xd1)]);this[_0x4facbb(0xe3)][_0x4facbb(0xb5)](_0x2d3a70,_0x230823);}[_0x117733(0xf7)](){const _0x2c9311=_0x117733;[[_0x49982e],[_0x578368],[_0x2c8470]][_0x2c9311(0x10e)](_0x68f512=>{const _0x408dc8=_0x2c9311;this[_0x408dc8(0xe9)][_0x408dc8(0xf8)](_0x68f512);});}[_0x117733(0x104)](){const _0x1925d2=_0x117733;this[_0x1925d2(0xe9)][_0x1925d2(0x113)](_0x578368),this[_0x1925d2(0xe9)][_0x1925d2(0x113)](_0x2c8470);}},_0x2cf387(_0x6cc921['UniverThreadCommentDataSourcePlugin'],'pluginName',_0x2e02f1),_0x2cf387(_0x6cc921[_0x117733(0x129)],_0x117733(0xb1),_0x2eca40['UniverInstanceType']['UNIVER_UNKNOWN']),_0x6cc921[_0x117733(0x129)]=_0x1eb7f2([_0x2eca40['DependentOn'](_0x3febc4[_0x117733(0x101)],_0x35764a[_0x117733(0xf6)],_0x5c1a2d[_0x117733(0xad)]),_0x462847(0x1,_0x2eca40['Inject'](_0x2eca40[_0x117733(0x12f)])),_0x462847(0x2,_0x2eca40[_0x117733(0xb9)])],_0x6cc921[_0x117733(0x129)]),Object[_0x117733(0xf2)](_0x6cc921,Symbol[_0x117733(0x112)],{'value':_0x117733(0xae)});}));
|
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.2-nightly.202412281605",
|
|
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/core": "0.5.
|
|
50
|
-
"@univerjs-pro/license": "0.5.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/thread-comment
|
|
54
|
-
"@univerjs/
|
|
48
|
+
"@univerjs-pro/collaboration-client": "0.5.2-nightly.202412281605",
|
|
49
|
+
"@univerjs/core": "0.5.2-nightly.202412281605",
|
|
50
|
+
"@univerjs-pro/license": "0.5.2-nightly.202412281605",
|
|
51
|
+
"@univerjs/protocol": "0.1.40-alpha.10",
|
|
52
|
+
"@univerjs/network": "0.5.2-nightly.202412281605",
|
|
53
|
+
"@univerjs/thread-comment": "0.5.2-nightly.202412281605",
|
|
54
|
+
"@univerjs/thread-comment-ui": "0.5.2-nightly.202412281605"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"rxjs": "^7.8.1",
|
|
58
58
|
"typescript": "^5.7.2",
|
|
59
|
-
"vite": "^6.0.
|
|
60
|
-
"vitest": "^2.1.
|
|
61
|
-
"@univerjs-infra/shared": "0.5.
|
|
59
|
+
"vite": "^6.0.3",
|
|
60
|
+
"vitest": "^2.1.8",
|
|
61
|
+
"@univerjs-infra/shared": "0.5.2"
|
|
62
62
|
},
|
|
63
63
|
"space": {
|
|
64
64
|
".": {
|