@univerjs-pro/thread-comment-datasource 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x1464(){const _0x2cb1c7=['getUnit','map','comments','reply','Reply','onStarting','4949988gCvTiW','solved','_threadCommentDataSourceService','21wXGnmi','Add','defineProperty','@univerjs/thread-comment-ui','forEach','rangeId','Delete','19507365FfVDTd','IThreadCommentDataSourceService','toStringTag','parentId','parse','resolveComment','commentUpdate$','rxjs','error','subscribe','3477054mSpElA','requireSession','setConfig','UserManagerService','userID','listComments','stringify','COMMENT','addComment','type','1136627akMqFk','replyId','add','thread-comment-data-source.config','get','UNIVER_UNKNOWN','ThreadCommentModel','OpenOrReOpen','payload','updateComment','code','bufferTime','CustomRangeType','1534830rUlgqs','UNRECOGNIZED','_httpService','user','post','syncUpdateMutationToColla','_userService','threadId','DependentOn','customRanges','YYYY/MM/DD\x20HH:mm','length','find','CollaborationSessionService','_threadCommentModel','_sessionService','pipe','9252500UuSUvl','@univerjs-pro/collaboration-client','Inject','body','_initDataSource','@univerjs/core','_commentService','content','root','UniverInstanceType','getComment','symbol','getUser','comment','onReady','pluginName','Edit','rangeType','_threadCommentDataSource','format','ref','UniverThreadCommentUIPlugin','deleteComment','IConfigService','createTimestamp','UniverLicensePlugin','getCurrentUser','unitId','4mzBLYV','@univerjs-pro/license','_configService','UniverCollaborationClientPlugin','addUser','Solve','dayjs','getOwnPropertyDescriptor','Plugin','filter','dataSource','disposeWithMe','/universer-api/user/list','/edit','userId','UniverThreadCommentDataSourcePlugin','Unknown','replies','/universer-api/comment/unit/','_injector','size','Disposable','HTTPService','9398232PmaIAf','CommentService','getMemberID','saveCommentToSnapshot','Injector','Solved','slice'];_0x1464=function(){return _0x2cb1c7;};return _0x1464();}const _0x2aaf21=_0x45de;(function(_0x543183,_0x43f38d){const _0x52ce00=_0x45de,_0x472536=_0x543183();while(!![]){try{const _0x1e9cbb=parseInt(_0x52ce00(0xe4))/0x1+-parseInt(_0x52ce00(0xda))/0x2+parseInt(_0x52ce00(0xc6))/0x3+-parseInt(_0x52ce00(0x11e))/0x4*(parseInt(_0x52ce00(0x102))/0x5)+-parseInt(_0x52ce00(0xf1))/0x6*(-parseInt(_0x52ce00(0xc9))/0x7)+-parseInt(_0x52ce00(0x135))/0x8+parseInt(_0x52ce00(0xd0))/0x9;if(_0x1e9cbb===_0x43f38d)break;else _0x472536['push'](_0x472536['shift']());}catch(_0x3e7035){_0x472536['push'](_0x472536['shift']());}}}(_0x1464,0xe9d15));Object['defineProperty'](exports,Symbol[_0x2aaf21(0xd2)],{'value':'Module'});const c=require(_0x2aaf21(0x107)),N=require(_0x2aaf21(0xcc)),C=require(_0x2aaf21(0x103)),w=require(_0x2aaf21(0x11f)),O=require('@univerjs/thread-comment'),T=require(_0x2aaf21(0xd7)),P=require('@univerjs/network'),U='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var I=(_0x543250=>(_0x543250[_0x543250[_0x2aaf21(0xeb)]=0x0]=_0x2aaf21(0xeb),_0x543250[_0x543250['Solved']=0x1]=_0x2aaf21(0x13a),_0x543250[_0x543250[_0x2aaf21(0xf2)]=-0x1]=_0x2aaf21(0xf2),_0x543250))(I||{}),v=(_0x5d896f=>(_0x5d896f[_0x5d896f[_0x2aaf21(0x12e)]=0x0]=_0x2aaf21(0x12e),_0x5d896f[_0x5d896f[_0x2aaf21(0xca)]=0x1]=_0x2aaf21(0xca),_0x5d896f[_0x5d896f['Reply']=0x2]=_0x2aaf21(0xc4),_0x5d896f[_0x5d896f['Edit']=0x3]=_0x2aaf21(0x112),_0x5d896f[_0x5d896f['Delete']=0x4]=_0x2aaf21(0xcf),_0x5d896f[_0x5d896f[_0x2aaf21(0x123)]=0x5]=_0x2aaf21(0x123),_0x5d896f[_0x5d896f[_0x2aaf21(0xf2)]=-0x1]=_0x2aaf21(0xf2),_0x5d896f))(v||{});const g=_0x333b9e=>c[_0x2aaf21(0x124)](new Date(+_0x333b9e))['format']('YYYY/MM/DD\x20HH:mm'),R=async(_0x5c6936,_0x132866)=>{const _0x5a4335=_0x2aaf21,_0x1900db=_0x5c6936[_0x5a4335(0xe8)](c['UserManagerService']),_0x5705fc=_0x5c6936[_0x5a4335(0xe8)](P[_0x5a4335(0x134)]);_0x132866[_0x5a4335(0xcd)](_0x5b6456=>{const _0x404592=_0x5a4335;_0x1900db[_0x404592(0x10e)](_0x5b6456)&&_0x132866['delete'](_0x5b6456);}),_0x132866[_0x5a4335(0x132)]&&(await _0x5705fc[_0x5a4335(0xe8)](_0x5a4335(0x12a),{'params':{'userIDs':[..._0x132866]}}))[_0x5a4335(0x105)]['users'][_0x5a4335(0xcd)](_0x2d4e66=>{const _0x52add7=_0x5a4335;_0x2d4e66&&_0x1900db[_0x52add7(0x122)](_0x2d4e66);});};var $=Object[_0x2aaf21(0xcb)],E=Object[_0x2aaf21(0x125)],q=(_0x15fd4b,_0x55d0b0,_0x257b81,_0x1c125c)=>{const _0x1bdf9b=_0x2aaf21;for(var _0x26a7e8=_0x1c125c>0x1?void 0x0:_0x1c125c?E(_0x55d0b0,_0x257b81):_0x55d0b0,_0x109785=_0x15fd4b[_0x1bdf9b(0xfc)]-0x1,_0x24f8fa;_0x109785>=0x0;_0x109785--)(_0x24f8fa=_0x15fd4b[_0x109785])&&(_0x26a7e8=(_0x1c125c?_0x24f8fa(_0x55d0b0,_0x257b81,_0x26a7e8):_0x24f8fa(_0x26a7e8))||_0x26a7e8);return _0x1c125c&&_0x26a7e8&&$(_0x55d0b0,_0x257b81,_0x26a7e8),_0x26a7e8;},_=(_0xc77987,_0x1c210c)=>(_0x17a256,_0x308c66)=>_0x1c210c(_0x17a256,_0x308c66,_0xc77987);let S=class extends c[_0x2aaf21(0x133)]{constructor(_0x479838,_0x462649,_0x2243a5,_0x579ba2){const _0x68073c=_0x2aaf21;super(),this[_0x68073c(0x108)]=_0x479838,this[_0x68073c(0xff)]=_0x462649,this['_userService']=_0x2243a5,this[_0x68073c(0x131)]=_0x579ba2,this['_init'](),this['_initUserSync']();}['_initUserSync'](){const _0x56dbb0=_0x2aaf21;this[_0x56dbb0(0x129)](this[_0x56dbb0(0xff)][_0x56dbb0(0xd6)][_0x56dbb0(0x101)](T[_0x56dbb0(0xef)](0x10))[_0x56dbb0(0xd9)](_0xf45fcf=>{const _0xb0d7e5=_0x56dbb0,_0x22a707=new Set();_0xf45fcf[_0xb0d7e5(0xcd)](_0x36106b=>{const _0x558095=_0xb0d7e5;switch(_0x36106b['type']){case _0x558095(0xe6):{const _0x587259=_0x36106b[_0x558095(0xec)]['personId'];_0x22a707[_0x558095(0xe6)](_0x587259);break;}}}),R(this[_0xb0d7e5(0x131)],_0x22a707);}));}['_init'](){const _0x5413a6=_0x2aaf21;this[_0x5413a6(0x129)](this[_0x5413a6(0x108)][_0x5413a6(0xd6)][_0x5413a6(0xd9)](async _0x2ca63d=>{const _0x11c51=_0x5413a6;var _0x5f216a,_0x4b94e1,_0x178073,_0x32682e;const _0x1ab752=(_0x5f216a=this[_0x11c51(0xff)][_0x11c51(0xc0)](_0x2ca63d[_0x11c51(0x11d)])[_0x11c51(0xfd)](_0x14ac6c=>_0x14ac6c['threadId']===_0x2ca63d['threadId']))==null?void 0x0:_0x5f216a[_0x11c51(0x10a)];if(!_0x1ab752)return;const {unitId:_0x3e8e17,subUnitId:_0x3ab1a}=_0x1ab752;switch(_0x2ca63d[_0x11c51(0xf4)]&&this[_0x11c51(0xf7)]['addUser'](_0x2ca63d['user']),_0x2ca63d[_0x11c51(0xe3)]){case v[_0x11c51(0xca)]:break;case v[_0x11c51(0xc4)]:{this[_0x11c51(0xff)][_0x11c51(0xe2)](_0x3e8e17,_0x3ab1a,{'unitId':_0x3e8e17,'subUnitId':_0x3ab1a,'ref':'','id':_0x2ca63d[_0x11c51(0xe5)],'dT':g(+_0x2ca63d[_0x11c51(0x11a)]),'threadId':_0x2ca63d[_0x11c51(0xf8)],'personId':(_0x178073=(_0x4b94e1=_0x2ca63d[_0x11c51(0xf4)])==null?void 0x0:_0x4b94e1[_0x11c51(0xde)])!=null?_0x178073:_0x2ca63d[_0x11c51(0x12c)],'text':JSON[_0x11c51(0xd4)](_0x2ca63d[_0x11c51(0x109)]),'parentId':_0x1ab752['id']});break;}case v[_0x11c51(0xcf)]:{const _0x441da5=this[_0x11c51(0xff)][_0x11c51(0x10c)](_0x3e8e17,_0x3ab1a,_0x2ca63d[_0x11c51(0xe5)]);_0x441da5&&_0x441da5[_0x11c51(0xd3)]&&this['_threadCommentModel'][_0x11c51(0x118)](_0x3e8e17,_0x3ab1a,_0x2ca63d[_0x11c51(0xe5)]);break;}case v[_0x11c51(0x112)]:{this[_0x11c51(0xff)][_0x11c51(0xed)](_0x3e8e17,_0x3ab1a,{'commentId':_0x2ca63d[_0x11c51(0xe5)],'text':JSON[_0x11c51(0xd4)](_0x2ca63d['content'])});break;}case v[_0x11c51(0x123)]:{const _0x21e52e=(_0x32682e=this['_threadCommentModel'][_0x11c51(0xc0)](_0x2ca63d[_0x11c51(0x11d)])[_0x11c51(0xfd)](_0x44aaa1=>_0x44aaa1[_0x11c51(0xf8)]===_0x2ca63d[_0x11c51(0xf8)]))==null?void 0x0:_0x32682e[_0x11c51(0x10a)];_0x21e52e&&this['_threadCommentModel']['resolveComment'](_0x3e8e17,_0x3ab1a,_0x21e52e['id'],_0x2ca63d[_0x11c51(0xc7)]===I['Solved']);break;}}}));}};S=q([_(0x0,c[_0x2aaf21(0x104)](C[_0x2aaf21(0x136)])),_(0x1,c['Inject'](O[_0x2aaf21(0xea)])),_(0x2,c['Inject'](c['UserManagerService'])),_(0x3,c[_0x2aaf21(0x104)](c[_0x2aaf21(0x139)]))],S);const x=_0x2aaf21(0xe7),Y={};var G=Object[_0x2aaf21(0xcb)],A=Object[_0x2aaf21(0x125)],H=(_0xcb7baf,_0x1c5f31,_0x4041a7,_0x5847ef)=>{const _0x171e66=_0x2aaf21;for(var _0x4e2e53=_0x5847ef>0x1?void 0x0:_0x5847ef?A(_0x1c5f31,_0x4041a7):_0x1c5f31,_0x1389ea=_0xcb7baf[_0x171e66(0xfc)]-0x1,_0x15344c;_0x1389ea>=0x0;_0x1389ea--)(_0x15344c=_0xcb7baf[_0x1389ea])&&(_0x4e2e53=(_0x5847ef?_0x15344c(_0x1c5f31,_0x4041a7,_0x4e2e53):_0x15344c(_0x4e2e53))||_0x4e2e53);return _0x5847ef&&_0x4e2e53&&G(_0x1c5f31,_0x4041a7,_0x4e2e53),_0x4e2e53;},p=(_0x3477bc,_0xdd5c7d)=>(_0x26a822,_0x22c5db)=>_0xdd5c7d(_0x26a822,_0x22c5db,_0x3477bc);function J(_0x2bc8f6,_0x39e9f6){const _0x4a885e=_0x2aaf21,_0x4e1c4f=_0x2bc8f6[_0x4a885e(0x12f)][0x0];return{..._0x39e9f6,'id':_0x4e1c4f[_0x4a885e(0xe5)],'resolved':_0x2bc8f6[_0x4a885e(0xc7)]===0x1,'dT':g(_0x4e1c4f[_0x4a885e(0x11a)]),'personId':_0x4e1c4f[_0x4a885e(0x12c)],'threadId':_0x4e1c4f[_0x4a885e(0xf8)]};}function F(_0x19b5d3,_0x748a77,_0x5287c0){const _0x5800fe=_0x2aaf21;var _0xcba103,_0xb3f785;if(((_0xb3f785=(_0xcba103=_0x19b5d3==null?void 0x0:_0x19b5d3[_0x5800fe(0x12f)])==null?void 0x0:_0xcba103['length'])!=null?_0xb3f785:0x0)>0x0){const _0x1c0190=(_0x3910c8,_0x5c0334)=>({'id':_0x3910c8[_0x5800fe(0xe5)],'threadId':_0x3910c8['threadId'],'dT':g(_0x3910c8[_0x5800fe(0x11a)]),'personId':_0x3910c8['userId'],'resolved':_0x19b5d3['solved']===I[_0x5800fe(0x13a)],'unitId':_0x748a77,'subUnitId':_0x5287c0,'text':JSON[_0x5800fe(0xd4)](_0x3910c8[_0x5800fe(0x109)]),'parentId':_0x5c0334}),_0x45961b=_0x1c0190(_0x19b5d3[_0x5800fe(0x12f)][0x0]);return{..._0x45961b,'children':_0x19b5d3[_0x5800fe(0x12f)][_0x5800fe(0xbf)](0x1)[_0x5800fe(0xc1)](_0x2b0be0=>_0x1c0190(_0x2b0be0,_0x45961b['id']))};}return null;}function _0x45de(_0x5f354a,_0x548d39){const _0x14640a=_0x1464();return _0x45de=function(_0x45ded5,_0x4d10bd){_0x45ded5=_0x45ded5-0xbf;let _0x4d5553=_0x14640a[_0x45ded5];return _0x4d5553;},_0x45de(_0x5f354a,_0x548d39);}let f=class{constructor(_0x2fcd7b,_0x24e365,_0x5f08c3,_0x547d77){const _0x1b382b=_0x2aaf21;this[_0x1b382b(0xf3)]=_0x2fcd7b,this[_0x1b382b(0xf7)]=_0x24e365,this[_0x1b382b(0x100)]=_0x5f08c3,this[_0x1b382b(0x131)]=_0x547d77;}async[_0x2aaf21(0xe2)](_0x2d47e5){const _0x701568=_0x2aaf21;var _0x1b1fab,_0x368893;const {parentId:_0x43af33,unitId:_0x21d43e,text:_0x45af80,threadId:_0x524be0}=_0x2d47e5,_0x39ee30=(_0x368893=(_0x1b1fab=_0x45af80['customRanges'])==null?void 0x0:_0x1b1fab[_0x701568(0x127)](_0x4de4d2=>_0x4de4d2[_0x701568(0x113)]===c['CustomRangeType'][_0x701568(0xe1)])['map'](_0x2eac49=>_0x2eac49[_0x701568(0xce)]))!=null?_0x368893:[],_0x28e758=JSON['stringify'](_0x45af80),_0x21ac10=(await this[_0x701568(0x100)][_0x701568(0xdb)](_0x21d43e))[_0x701568(0x137)]();if(_0x43af33){const _0x1dd48a={'memberId':_0x21ac10,'unitId':_0x21d43e,'content':_0x28e758,'mention':_0x39ee30,'threadId':_0x524be0},_0x1501fa=(await this[_0x701568(0xf3)][_0x701568(0xf5)](_0x701568(0x130)+_0x21d43e+'/reply',{'body':_0x1dd48a}))[_0x701568(0x105)][_0x701568(0xc3)];return{..._0x2d47e5,'id':_0x1501fa[_0x701568(0xe5)],'dT':c[_0x701568(0x124)](+_0x1501fa['createTimestamp'])[_0x701568(0x115)](_0x701568(0xfb)),'personId':_0x1501fa[_0x701568(0x12c)]};}else{const _0x1ce89a={'memberId':_0x21ac10,'unitId':_0x21d43e,'content':_0x28e758,'mention':_0x39ee30},_0x5cd543=await this[_0x701568(0xf3)]['post'](_0x701568(0x130)+_0x21d43e+'/add',{'body':_0x1ce89a});return J(_0x5cd543['body'][_0x701568(0x10f)],_0x2d47e5);}}async[_0x2aaf21(0xed)](_0x1b40ee){const _0x1b1aee=_0x2aaf21;var _0x196110,_0x3b39ae;const {text:_0x34c3e2,unitId:_0x5e8313}=_0x1b40ee,_0x3e6146=(_0x3b39ae=(_0x196110=_0x34c3e2[_0x1b1aee(0xfa)])==null?void 0x0:_0x196110[_0x1b1aee(0x127)](_0x5a4a71=>_0x5a4a71[_0x1b1aee(0x113)]===c[_0x1b1aee(0xf0)][_0x1b1aee(0xe1)])[_0x1b1aee(0xc1)](_0x3868bb=>_0x3868bb[_0x1b1aee(0xce)]))!=null?_0x3b39ae:[],_0x12142f=JSON[_0x1b1aee(0xe0)](_0x34c3e2),_0x1179ba=_0x1b40ee[_0x1b1aee(0xf8)],_0x406507=_0x1b40ee['id'],_0x4e2809={'memberId':(await this[_0x1b1aee(0x100)][_0x1b1aee(0xdb)](_0x5e8313))[_0x1b1aee(0x137)](),'unitId':_0x5e8313,'threadId':_0x1179ba,'mention':_0x3e6146,'content':_0x12142f,'replyId':_0x406507},_0x26ab58=await this[_0x1b1aee(0xf3)][_0x1b1aee(0xf5)](_0x1b1aee(0x130)+_0x5e8313+_0x1b1aee(0x12b),{'body':_0x4e2809});return!_0x26ab58[_0x1b1aee(0x105)][_0x1b1aee(0xd8)]||_0x26ab58[_0x1b1aee(0x105)][_0x1b1aee(0xd8)][_0x1b1aee(0xee)]===0x1;}async[_0x2aaf21(0xd5)](_0x132dfc){const _0x131d17=_0x2aaf21,{unitId:_0x54fe58}=_0x132dfc,_0x96d95b=_0x132dfc[_0x131d17(0xf8)],_0x4851eb={'memberId':this[_0x131d17(0xf7)][_0x131d17(0x11c)]()[_0x131d17(0xde)],'unitId':_0x54fe58,'threadId':_0x96d95b,'solved':_0x132dfc['resolved']?I[_0x131d17(0x13a)]:I[_0x131d17(0xeb)]},_0x413ec8=await this[_0x131d17(0xf3)][_0x131d17(0xf5)]('/universer-api/comment/unit/'+_0x54fe58+'/solved',{'body':_0x4851eb});return!_0x413ec8[_0x131d17(0x105)]['error']||_0x413ec8[_0x131d17(0x105)][_0x131d17(0xd8)][_0x131d17(0xee)]===0x1;}async[_0x2aaf21(0x118)](_0x114841,_0x46fafe,_0x3a4c94,_0x4af5a9){const _0x4a4a6e=_0x2aaf21,_0x1c611d={'memberId':(await this[_0x4a4a6e(0x100)][_0x4a4a6e(0xdb)](_0x114841))[_0x4a4a6e(0x137)](),'threadId':_0x3a4c94,'replyId':_0x4af5a9,'unitId':_0x114841},_0x1ed2d4=await this[_0x4a4a6e(0xf3)][_0x4a4a6e(0xf5)](_0x4a4a6e(0x130)+_0x114841+'/delete',{'body':_0x1c611d});return!_0x1ed2d4[_0x4a4a6e(0x105)][_0x4a4a6e(0xd8)]||_0x1ed2d4[_0x4a4a6e(0x105)][_0x4a4a6e(0xd8)][_0x4a4a6e(0xee)]===0x1;}async[_0x2aaf21(0xdf)](_0x59ff05,_0x46549f,_0x3e68a6){const _0x33057b=_0x2aaf21,_0x42e87d={'unitId':_0x59ff05,'threadId':_0x3e68a6},_0x5c4323=await this[_0x33057b(0xf3)][_0x33057b(0xf5)](_0x33057b(0x130)+_0x59ff05+'/list',{'body':_0x42e87d}),_0x4a4778=_0x3e68a6[_0x33057b(0xc1)](_0x174cef=>F(_0x5c4323[_0x33057b(0x105)][_0x33057b(0xc2)][_0x174cef],_0x59ff05,_0x46549f))['filter'](Boolean);return Object['values'](_0x5c4323[_0x33057b(0x105)]['users'])['forEach'](_0x41cd90=>{this['_userService']['addUser'](_0x41cd90);}),_0x4a4778;}[_0x2aaf21(0x138)](_0x29ae08){const _0x43035d=_0x2aaf21;return{'id':_0x29ae08['id'],'threadId':_0x29ae08[_0x43035d(0xf8)],'ref':_0x29ae08[_0x43035d(0x116)]};}};f=H([p(0x0,c['Inject'](P[_0x2aaf21(0x134)])),p(0x1,c[_0x2aaf21(0x104)](c[_0x2aaf21(0xdd)])),p(0x2,c['Inject'](C[_0x2aaf21(0xfe)])),p(0x3,c['Inject'](c[_0x2aaf21(0x139)]))],f);var L=Object['defineProperty'],Z=Object[_0x2aaf21(0x125)],W=(_0x403f1d,_0x5c3a90,_0x4c17d7,_0xcd529d)=>{const _0x1c0205=_0x2aaf21;for(var _0x28fc11=_0xcd529d>0x1?void 0x0:_0xcd529d?Z(_0x5c3a90,_0x4c17d7):_0x5c3a90,_0x4abb50=_0x403f1d[_0x1c0205(0xfc)]-0x1,_0x46e8c6;_0x4abb50>=0x0;_0x4abb50--)(_0x46e8c6=_0x403f1d[_0x4abb50])&&(_0x28fc11=(_0xcd529d?_0x46e8c6(_0x5c3a90,_0x4c17d7,_0x28fc11):_0x46e8c6(_0x28fc11))||_0x28fc11);return _0xcd529d&&_0x28fc11&&L(_0x5c3a90,_0x4c17d7,_0x28fc11),_0x28fc11;},D=(_0x497f9a,_0x59b189)=>(_0x500d8d,_0x1db363)=>_0x59b189(_0x500d8d,_0x1db363,_0x497f9a);let b=class extends c['Disposable']{constructor(_0x35637c,_0x21478e){const _0x4ad4f3=_0x2aaf21;super(),this[_0x4ad4f3(0xc8)]=_0x35637c,this[_0x4ad4f3(0x114)]=_0x21478e,this[_0x4ad4f3(0x106)]();}[_0x2aaf21(0x106)](){const _0x46e0fa=_0x2aaf21;this[_0x46e0fa(0xc8)][_0x46e0fa(0x128)]=this['_threadCommentDataSource'],this['_threadCommentDataSourceService'][_0x46e0fa(0xf6)]=!0x1;}};b=W([D(0x0,O[_0x2aaf21(0xd1)]),D(0x1,c['Inject'](f))],b);var j=Object[_0x2aaf21(0xcb)],B=Object[_0x2aaf21(0x125)],K=(_0x447f66,_0x3823a2,_0x14c5bc)=>_0x3823a2 in _0x447f66?j(_0x447f66,_0x3823a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14c5bc}):_0x447f66[_0x3823a2]=_0x14c5bc,V=(_0x1cdaa1,_0x3c1062,_0x6344d4,_0xe543b7)=>{for(var _0x20d03d=_0xe543b7>0x1?void 0x0:_0xe543b7?B(_0x3c1062,_0x6344d4):_0x3c1062,_0x59d948=_0x1cdaa1['length']-0x1,_0x33a43a;_0x59d948>=0x0;_0x59d948--)(_0x33a43a=_0x1cdaa1[_0x59d948])&&(_0x20d03d=(_0xe543b7?_0x33a43a(_0x3c1062,_0x6344d4,_0x20d03d):_0x33a43a(_0x20d03d))||_0x20d03d);return _0xe543b7&&_0x20d03d&&j(_0x3c1062,_0x6344d4,_0x20d03d),_0x20d03d;},y=(_0x27a32c,_0x45cc4a)=>(_0x3d62e3,_0x17b5e5)=>_0x45cc4a(_0x3d62e3,_0x17b5e5,_0x27a32c),M=(_0xe6d0,_0x481c0f,_0xc66a94)=>K(_0xe6d0,typeof _0x481c0f!=_0x2aaf21(0x10d)?_0x481c0f+'':_0x481c0f,_0xc66a94);exports[_0x2aaf21(0x12d)]=class extends c[_0x2aaf21(0x126)]{constructor(_0x664a05=Y,_0x5c103d,_0x4cf13a){const _0x588c2d=_0x2aaf21;super(),this['_config']=_0x664a05,this[_0x588c2d(0x131)]=_0x5c103d,this['_configService']=_0x4cf13a;const {..._0x13ccb6}=this['_config'];this[_0x588c2d(0x120)][_0x588c2d(0xdc)](x,_0x13ccb6);}[_0x2aaf21(0xc5)](){const _0xd5adc=_0x2aaf21;[[f],[b],[S]][_0xd5adc(0xcd)](_0x51406c=>{const _0x54d825=_0xd5adc;this['_injector'][_0x54d825(0xe6)](_0x51406c);});}[_0x2aaf21(0x110)](){const _0x32a8e6=_0x2aaf21;this[_0x32a8e6(0x131)]['get'](b),this['_injector'][_0x32a8e6(0xe8)](S);}},M(exports[_0x2aaf21(0x12d)],_0x2aaf21(0x111),U),M(exports[_0x2aaf21(0x12d)],_0x2aaf21(0xe3),c[_0x2aaf21(0x10b)][_0x2aaf21(0xe9)]),exports['UniverThreadCommentDataSourcePlugin']=V([c[_0x2aaf21(0xf9)](N[_0x2aaf21(0x117)],C[_0x2aaf21(0x121)],w[_0x2aaf21(0x11b)]),y(0x1,c[_0x2aaf21(0x104)](c[_0x2aaf21(0x139)])),y(0x2,c[_0x2aaf21(0x119)])],exports[_0x2aaf21(0x12d)]);
1
+ 'use strict';const _0x176382=_0x31ee;(function(_0x28d792,_0x37076c){const _0x378d7f=_0x31ee,_0xbb233e=_0x28d792();while(!![]){try{const _0x36a243=-parseInt(_0x378d7f(0x1b2))/0x1*(parseInt(_0x378d7f(0x209))/0x2)+-parseInt(_0x378d7f(0x1ee))/0x3*(parseInt(_0x378d7f(0x1cb))/0x4)+parseInt(_0x378d7f(0x1c4))/0x5*(parseInt(_0x378d7f(0x1ba))/0x6)+parseInt(_0x378d7f(0x1b0))/0x7+parseInt(_0x378d7f(0x1d5))/0x8+parseInt(_0x378d7f(0x1b7))/0x9+-parseInt(_0x378d7f(0x1fa))/0xa;if(_0x36a243===_0x37076c)break;else _0xbb233e['push'](_0xbb233e['shift']());}catch(_0x2362b0){_0xbb233e['push'](_0xbb233e['shift']());}}}(_0x3c03,0xab063));Object[_0x176382(0x1e7)](exports,Symbol['toStringTag'],{'value':_0x176382(0x1b5)});const C=require(_0x176382(0x1fd)),N=require('@univerjs-pro/license'),c=require(_0x176382(0x1f5)),T=require(_0x176382(0x200)),y=require('@univerjs/thread-comment'),w=require('rxjs'),P=require(_0x176382(0x1e9)),U=_0x176382(0x1ff);function _0x3c03(){const _0x3db694=['_initDataSource','ThreadCommentModel','requireSession','_threadCommentModel','forEach','parse','symbol','length','_config','6806303SKxiBW','_commentService','22405jhpTRi','UniverInstanceType','_httpService','Module','commentUpdate$','3947058LfPDBJ','stringify','pipe','30mbNipu','parentId','CommentService','dayjs','add','size','Inject','thread-comment-data-source.config','_userService','_initUserSync','714830AQLoKk','UniverCollaborationClientPlugin','/delete','replyId','content','_init','deleteComment','34996tAJeKV','HTTPService','UNIVER_UNKNOWN','map','ref','code','error','COMMENT','/solved','onStarting','4643240WrTckA','listComments','Solved','/edit','slice','Add','createTimestamp','payload','post','_threadCommentDataSourceService','OpenOrReOpen','root','/universer-api/comment/unit/','disposeWithMe','customRanges','filter','UserManagerService','YYYY/MM/DD\x20HH:mm','defineProperty','userId','@univerjs/network','DependentOn','delete','saveCommentToSnapshot','addUser','69KYnLGB','IThreadCommentDataSourceService','Plugin','/add','UniverThreadCommentDataSourcePlugin','/reply','users','@univerjs/core','Injector','CustomRangeType','type','unitId','17819790MSymRn','threadId','user','@univerjs-pro/collaboration-client','getOwnPropertyDescriptor','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','@univerjs/thread-comment-ui','CollaborationSessionService','find','_sessionService','getMemberID','replies','get','format','updateComment','2VazJaR','/universer-api/user/list','Edit','rangeType','_threadCommentDataSource','Delete','Reply','dataSource','UniverThreadCommentUIPlugin','resolveComment','Disposable','body','setConfig','Solve','_injector','Unknown','UNRECOGNIZED','subscribe','userID','syncUpdateMutationToColla','getUser','comment','reply','IConfigService','pluginName','_configService','solved','getCurrentUser'];_0x3c03=function(){return _0x3db694;};return _0x3c03();}var I=(_0x7a71aa=>(_0x7a71aa[_0x7a71aa[_0x176382(0x1df)]=0x0]='OpenOrReOpen',_0x7a71aa[_0x7a71aa[_0x176382(0x1d7)]=0x1]=_0x176382(0x1d7),_0x7a71aa[_0x7a71aa[_0x176382(0x19b)]=-0x1]=_0x176382(0x19b),_0x7a71aa))(I||{}),v=(_0x59b0c0=>(_0x59b0c0[_0x59b0c0[_0x176382(0x19a)]=0x0]=_0x176382(0x19a),_0x59b0c0[_0x59b0c0[_0x176382(0x1da)]=0x1]=_0x176382(0x1da),_0x59b0c0[_0x59b0c0[_0x176382(0x20f)]=0x2]='Reply',_0x59b0c0[_0x59b0c0[_0x176382(0x20b)]=0x3]=_0x176382(0x20b),_0x59b0c0[_0x59b0c0['Delete']=0x4]=_0x176382(0x20e),_0x59b0c0[_0x59b0c0[_0x176382(0x198)]=0x5]=_0x176382(0x198),_0x59b0c0[_0x59b0c0[_0x176382(0x19b)]=-0x1]=_0x176382(0x19b),_0x59b0c0))(v||{});const g=_0x39cb2e=>c['dayjs'](new Date(+_0x39cb2e))[_0x176382(0x207)](_0x176382(0x1e6)),R=async(_0x14cc93,_0x4506f4)=>{const _0x584977=_0x176382,_0x158437=_0x14cc93[_0x584977(0x206)](c['UserManagerService']),_0x38e2f4=_0x14cc93[_0x584977(0x206)](P[_0x584977(0x1cc)]);_0x4506f4[_0x584977(0x1ab)](_0x1432a6=>{const _0x57266a=_0x584977;_0x158437[_0x57266a(0x19f)](_0x1432a6)&&_0x4506f4[_0x57266a(0x1eb)](_0x1432a6);}),_0x4506f4[_0x584977(0x1bf)]&&(await _0x38e2f4['get'](_0x584977(0x20a),{'params':{'userIDs':[..._0x4506f4]}}))[_0x584977(0x196)]['users']['forEach'](_0xdeb214=>{const _0x77c909=_0x584977;_0xdeb214&&_0x158437[_0x77c909(0x1ed)](_0xdeb214);});};var $=Object[_0x176382(0x1e7)],E=Object[_0x176382(0x1fe)],q=(_0x1c3ea7,_0x4d829e,_0xcb342a,_0x4b2782)=>{for(var _0x2af49c=_0x4b2782>0x1?void 0x0:_0x4b2782?E(_0x4d829e,_0xcb342a):_0x4d829e,_0x29c89d=_0x1c3ea7['length']-0x1,_0x215df6;_0x29c89d>=0x0;_0x29c89d--)(_0x215df6=_0x1c3ea7[_0x29c89d])&&(_0x2af49c=(_0x4b2782?_0x215df6(_0x4d829e,_0xcb342a,_0x2af49c):_0x215df6(_0x2af49c))||_0x2af49c);return _0x4b2782&&_0x2af49c&&$(_0x4d829e,_0xcb342a,_0x2af49c),_0x2af49c;},_=(_0x1b4357,_0x4633fa)=>(_0x10e722,_0x386b26)=>_0x4633fa(_0x10e722,_0x386b26,_0x1b4357);let S=class extends c['Disposable']{constructor(_0x175d25,_0x1601af,_0x1db807,_0xdda532){const _0xd85450=_0x176382;super(),this[_0xd85450(0x1b1)]=_0x175d25,this[_0xd85450(0x1aa)]=_0x1601af,this['_userService']=_0x1db807,this[_0xd85450(0x199)]=_0xdda532,this[_0xd85450(0x1c9)](),this[_0xd85450(0x1c3)]();}[_0x176382(0x1c3)](){const _0x552186=_0x176382;this[_0x552186(0x1e2)](this['_threadCommentModel'][_0x552186(0x1b6)][_0x552186(0x1b9)](w['bufferTime'](0x10))['subscribe'](_0x3fbd8a=>{const _0x3e0eb5=_0x552186,_0x31ea3d=new Set();_0x3fbd8a[_0x3e0eb5(0x1ab)](_0x4b3e18=>{const _0x232311=_0x3e0eb5;switch(_0x4b3e18[_0x232311(0x1f8)]){case'add':{const _0xd620e1=_0x4b3e18[_0x232311(0x1dc)]['personId'];_0x31ea3d[_0x232311(0x1be)](_0xd620e1);break;}}}),R(this['_injector'],_0x31ea3d);}));}[_0x176382(0x1c9)](){const _0x2bc014=_0x176382;this[_0x2bc014(0x1e2)](this[_0x2bc014(0x1b1)]['commentUpdate$'][_0x2bc014(0x19c)](async _0xd7cdf7=>{const _0x5100a2=_0x2bc014;var _0x17796f,_0x1b139c,_0xe3d01a,_0x2ac131;const _0x241a0c=(_0x17796f=this['_threadCommentModel']['getUnit'](_0xd7cdf7[_0x5100a2(0x1f9)])['find'](_0x1a99a1=>_0x1a99a1[_0x5100a2(0x1fb)]===_0xd7cdf7[_0x5100a2(0x1fb)]))==null?void 0x0:_0x17796f[_0x5100a2(0x1e0)];if(!_0x241a0c)return;const {unitId:_0x16a09b,subUnitId:_0x2ac58e}=_0x241a0c;switch(_0xd7cdf7[_0x5100a2(0x1fc)]&&this[_0x5100a2(0x1c2)][_0x5100a2(0x1ed)](_0xd7cdf7[_0x5100a2(0x1fc)]),_0xd7cdf7[_0x5100a2(0x1f8)]){case v[_0x5100a2(0x1da)]:break;case v[_0x5100a2(0x20f)]:{this[_0x5100a2(0x1aa)]['addComment'](_0x16a09b,_0x2ac58e,{'unitId':_0x16a09b,'subUnitId':_0x2ac58e,'ref':'','id':_0xd7cdf7[_0x5100a2(0x1c7)],'dT':g(+_0xd7cdf7['createTimestamp']),'threadId':_0xd7cdf7[_0x5100a2(0x1fb)],'personId':(_0xe3d01a=(_0x1b139c=_0xd7cdf7[_0x5100a2(0x1fc)])==null?void 0x0:_0x1b139c[_0x5100a2(0x19d)])!=null?_0xe3d01a:_0xd7cdf7[_0x5100a2(0x1e8)],'text':JSON[_0x5100a2(0x1ac)](_0xd7cdf7[_0x5100a2(0x1c8)]),'parentId':_0x241a0c['id']});break;}case v[_0x5100a2(0x20e)]:{const _0x4dfc3f=this[_0x5100a2(0x1aa)]['getComment'](_0x16a09b,_0x2ac58e,_0xd7cdf7[_0x5100a2(0x1c7)]);_0x4dfc3f&&_0x4dfc3f[_0x5100a2(0x1bb)]&&this[_0x5100a2(0x1aa)][_0x5100a2(0x1ca)](_0x16a09b,_0x2ac58e,_0xd7cdf7['replyId']);break;}case v[_0x5100a2(0x20b)]:{this['_threadCommentModel']['updateComment'](_0x16a09b,_0x2ac58e,{'commentId':_0xd7cdf7[_0x5100a2(0x1c7)],'text':JSON[_0x5100a2(0x1ac)](_0xd7cdf7['content'])});break;}case v[_0x5100a2(0x198)]:{const _0x21b6b7=(_0x2ac131=this['_threadCommentModel']['getUnit'](_0xd7cdf7[_0x5100a2(0x1f9)])[_0x5100a2(0x202)](_0x2cef8c=>_0x2cef8c[_0x5100a2(0x1fb)]===_0xd7cdf7[_0x5100a2(0x1fb)]))==null?void 0x0:_0x2ac131[_0x5100a2(0x1e0)];_0x21b6b7&&this[_0x5100a2(0x1aa)]['resolveComment'](_0x16a09b,_0x2ac58e,_0x21b6b7['id'],_0xd7cdf7[_0x5100a2(0x1a5)]===I[_0x5100a2(0x1d7)]);break;}}}));}};S=q([_(0x0,c[_0x176382(0x1c0)](C[_0x176382(0x1bc)])),_(0x1,c[_0x176382(0x1c0)](y[_0x176382(0x1a8)])),_(0x2,c[_0x176382(0x1c0)](c[_0x176382(0x1e5)])),_(0x3,c[_0x176382(0x1c0)](c[_0x176382(0x1f6)]))],S);const A=_0x176382(0x1c1),x={};var Y=Object[_0x176382(0x1e7)],G=Object[_0x176382(0x1fe)],H=(_0x424510,_0x68713b,_0x5b246d,_0x21c870)=>{const _0x388d22=_0x176382;for(var _0x3df256=_0x21c870>0x1?void 0x0:_0x21c870?G(_0x68713b,_0x5b246d):_0x68713b,_0x3341cc=_0x424510[_0x388d22(0x1ae)]-0x1,_0xaa4a58;_0x3341cc>=0x0;_0x3341cc--)(_0xaa4a58=_0x424510[_0x3341cc])&&(_0x3df256=(_0x21c870?_0xaa4a58(_0x68713b,_0x5b246d,_0x3df256):_0xaa4a58(_0x3df256))||_0x3df256);return _0x21c870&&_0x3df256&&Y(_0x68713b,_0x5b246d,_0x3df256),_0x3df256;},p=(_0xf05b81,_0x5b5640)=>(_0x5401e3,_0x223042)=>_0x5b5640(_0x5401e3,_0x223042,_0xf05b81);function _0x31ee(_0x3b6507,_0x173a53){const _0x3c03c7=_0x3c03();return _0x31ee=function(_0x31eec4,_0x35897b){_0x31eec4=_0x31eec4-0x192;let _0x46018c=_0x3c03c7[_0x31eec4];return _0x46018c;},_0x31ee(_0x3b6507,_0x173a53);}function J(_0x551ae8,_0x4c1663){const _0x39adbd=_0x176382,_0x5aa953=_0x551ae8[_0x39adbd(0x205)][0x0];return{..._0x4c1663,'id':_0x5aa953[_0x39adbd(0x1c7)],'resolved':_0x551ae8[_0x39adbd(0x1a5)]===0x1,'dT':g(_0x5aa953[_0x39adbd(0x1db)]),'personId':_0x5aa953[_0x39adbd(0x1e8)],'threadId':_0x5aa953[_0x39adbd(0x1fb)]};}function F(_0x3d6869,_0x21a94a,_0x44aadc){const _0x53b5de=_0x176382;var _0x159c1d,_0x1749b2;if(((_0x1749b2=(_0x159c1d=_0x3d6869==null?void 0x0:_0x3d6869['replies'])==null?void 0x0:_0x159c1d[_0x53b5de(0x1ae)])!=null?_0x1749b2:0x0)>0x0){const _0x52c3dd=(_0x873412,_0x58c7f8)=>({'id':_0x873412['replyId'],'threadId':_0x873412[_0x53b5de(0x1fb)],'dT':g(_0x873412[_0x53b5de(0x1db)]),'personId':_0x873412[_0x53b5de(0x1e8)],'resolved':_0x3d6869[_0x53b5de(0x1a5)]===I['Solved'],'unitId':_0x21a94a,'subUnitId':_0x44aadc,'text':JSON[_0x53b5de(0x1ac)](_0x873412[_0x53b5de(0x1c8)]),'parentId':_0x58c7f8}),_0x52c0f8=_0x52c3dd(_0x3d6869[_0x53b5de(0x205)][0x0]);return{..._0x52c0f8,'children':_0x3d6869[_0x53b5de(0x205)][_0x53b5de(0x1d9)](0x1)[_0x53b5de(0x1ce)](_0x300edc=>_0x52c3dd(_0x300edc,_0x52c0f8['id']))};}return null;}let f=class{constructor(_0x2a658c,_0x2eeed5,_0x7a8576,_0x4e785b){const _0x1adaf7=_0x176382;this[_0x1adaf7(0x1b4)]=_0x2a658c,this[_0x1adaf7(0x1c2)]=_0x2eeed5,this[_0x1adaf7(0x203)]=_0x7a8576,this[_0x1adaf7(0x199)]=_0x4e785b;}async['addComment'](_0x364750){const _0x54a4cb=_0x176382;var _0x165d95,_0x179fe8;const {parentId:_0x31a8cd,unitId:_0x33b8b8,text:_0x32c536,threadId:_0x3b2fa1}=_0x364750,_0x140f9e=(_0x179fe8=(_0x165d95=_0x32c536[_0x54a4cb(0x1e3)])==null?void 0x0:_0x165d95['filter'](_0x2498cf=>_0x2498cf[_0x54a4cb(0x20c)]===c[_0x54a4cb(0x1f7)][_0x54a4cb(0x1d2)])[_0x54a4cb(0x1ce)](_0x3b5a40=>_0x3b5a40['rangeId']))!=null?_0x179fe8:[],_0x2f1a7d=JSON[_0x54a4cb(0x1b8)](_0x32c536),_0x3244ca=(await this[_0x54a4cb(0x203)]['requireSession'](_0x33b8b8))[_0x54a4cb(0x204)]();if(_0x31a8cd){const _0x2f7493={'memberId':_0x3244ca,'unitId':_0x33b8b8,'content':_0x2f1a7d,'mention':_0x140f9e,'threadId':_0x3b2fa1},_0x424c59=(await this[_0x54a4cb(0x1b4)][_0x54a4cb(0x1dd)]('/universer-api/comment/unit/'+_0x33b8b8+_0x54a4cb(0x1f3),{'body':_0x2f7493}))[_0x54a4cb(0x196)][_0x54a4cb(0x1a1)];return{..._0x364750,'id':_0x424c59[_0x54a4cb(0x1c7)],'dT':c[_0x54a4cb(0x1bd)](+_0x424c59[_0x54a4cb(0x1db)])[_0x54a4cb(0x207)](_0x54a4cb(0x1e6)),'personId':_0x424c59['userId']};}else{const _0x217335={'memberId':_0x3244ca,'unitId':_0x33b8b8,'content':_0x2f1a7d,'mention':_0x140f9e},_0x1da63a=await this['_httpService']['post'](_0x54a4cb(0x1e1)+_0x33b8b8+_0x54a4cb(0x1f1),{'body':_0x217335});return J(_0x1da63a['body'][_0x54a4cb(0x1a0)],_0x364750);}}async[_0x176382(0x208)](_0x345bec){const _0x235f32=_0x176382;var _0x186618,_0xf5adf7;const {text:_0x3dbe03,unitId:_0x2b287c}=_0x345bec,_0x56c668=(_0xf5adf7=(_0x186618=_0x3dbe03['customRanges'])==null?void 0x0:_0x186618[_0x235f32(0x1e4)](_0x3e91ed=>_0x3e91ed[_0x235f32(0x20c)]===c[_0x235f32(0x1f7)][_0x235f32(0x1d2)])[_0x235f32(0x1ce)](_0x2e1a22=>_0x2e1a22['rangeId']))!=null?_0xf5adf7:[],_0x30e185=JSON[_0x235f32(0x1b8)](_0x3dbe03),_0x35349c=_0x345bec[_0x235f32(0x1fb)],_0x2fe0e4=_0x345bec['id'],_0x2e68d1={'memberId':(await this[_0x235f32(0x203)]['requireSession'](_0x2b287c))[_0x235f32(0x204)](),'unitId':_0x2b287c,'threadId':_0x35349c,'mention':_0x56c668,'content':_0x30e185,'replyId':_0x2fe0e4},_0x486dea=await this[_0x235f32(0x1b4)]['post'](_0x235f32(0x1e1)+_0x2b287c+_0x235f32(0x1d8),{'body':_0x2e68d1});return!_0x486dea[_0x235f32(0x196)][_0x235f32(0x1d1)]||_0x486dea[_0x235f32(0x196)][_0x235f32(0x1d1)]['code']===0x1;}async[_0x176382(0x194)](_0x112989){const _0xf0d1a=_0x176382,{unitId:_0x554896}=_0x112989,_0x5f3cc1=_0x112989['threadId'],_0x53e8c7={'memberId':this[_0xf0d1a(0x1c2)][_0xf0d1a(0x1a6)]()[_0xf0d1a(0x19d)],'unitId':_0x554896,'threadId':_0x5f3cc1,'solved':_0x112989['resolved']?I[_0xf0d1a(0x1d7)]:I[_0xf0d1a(0x1df)]},_0x131bdd=await this[_0xf0d1a(0x1b4)][_0xf0d1a(0x1dd)](_0xf0d1a(0x1e1)+_0x554896+_0xf0d1a(0x1d3),{'body':_0x53e8c7});return!_0x131bdd['body']['error']||_0x131bdd['body'][_0xf0d1a(0x1d1)][_0xf0d1a(0x1d0)]===0x1;}async['deleteComment'](_0x444407,_0xeef82c,_0x37984f,_0x2f46f7){const _0x51fa2f=_0x176382,_0x1dc243={'memberId':(await this[_0x51fa2f(0x203)][_0x51fa2f(0x1a9)](_0x444407))['getMemberID'](),'threadId':_0x37984f,'replyId':_0x2f46f7,'unitId':_0x444407},_0xf97098=await this[_0x51fa2f(0x1b4)][_0x51fa2f(0x1dd)](_0x51fa2f(0x1e1)+_0x444407+_0x51fa2f(0x1c6),{'body':_0x1dc243});return!_0xf97098[_0x51fa2f(0x196)]['error']||_0xf97098[_0x51fa2f(0x196)][_0x51fa2f(0x1d1)][_0x51fa2f(0x1d0)]===0x1;}async[_0x176382(0x1d6)](_0x2f542c,_0x1a31c2,_0x33db28){const _0x145b90=_0x176382,_0x96fc0a={'unitId':_0x2f542c,'threadId':_0x33db28},_0x30e820=await this[_0x145b90(0x1b4)][_0x145b90(0x1dd)](_0x145b90(0x1e1)+_0x2f542c+'/list',{'body':_0x96fc0a}),_0x2783fb=_0x33db28[_0x145b90(0x1ce)](_0x4328c9=>F(_0x30e820[_0x145b90(0x196)]['comments'][_0x4328c9],_0x2f542c,_0x1a31c2))[_0x145b90(0x1e4)](Boolean);return Object['values'](_0x30e820[_0x145b90(0x196)][_0x145b90(0x1f4)])[_0x145b90(0x1ab)](_0x584025=>{const _0x3aa8cf=_0x145b90;this[_0x3aa8cf(0x1c2)][_0x3aa8cf(0x1ed)](_0x584025);}),_0x2783fb;}[_0x176382(0x1ec)](_0x432323){const _0x8837c4=_0x176382;return{'id':_0x432323['id'],'threadId':_0x432323[_0x8837c4(0x1fb)],'ref':_0x432323[_0x8837c4(0x1cf)]};}};f=H([p(0x0,c[_0x176382(0x1c0)](P[_0x176382(0x1cc)])),p(0x1,c['Inject'](c['UserManagerService'])),p(0x2,c[_0x176382(0x1c0)](C[_0x176382(0x201)])),p(0x3,c[_0x176382(0x1c0)](c[_0x176382(0x1f6)]))],f);var L=Object[_0x176382(0x1e7)],Z=Object[_0x176382(0x1fe)],W=(_0x38bffe,_0x4311e0,_0x1cacc3,_0x3899af)=>{const _0x1a216e=_0x176382;for(var _0x270580=_0x3899af>0x1?void 0x0:_0x3899af?Z(_0x4311e0,_0x1cacc3):_0x4311e0,_0x5aa062=_0x38bffe[_0x1a216e(0x1ae)]-0x1,_0x2936f9;_0x5aa062>=0x0;_0x5aa062--)(_0x2936f9=_0x38bffe[_0x5aa062])&&(_0x270580=(_0x3899af?_0x2936f9(_0x4311e0,_0x1cacc3,_0x270580):_0x2936f9(_0x270580))||_0x270580);return _0x3899af&&_0x270580&&L(_0x4311e0,_0x1cacc3,_0x270580),_0x270580;},D=(_0x1a56df,_0x9eee42)=>(_0x3d920c,_0xa68a9b)=>_0x9eee42(_0x3d920c,_0xa68a9b,_0x1a56df);let b=class extends c[_0x176382(0x195)]{constructor(_0x12db25,_0x4a487f){const _0x49ba08=_0x176382;super(),this[_0x49ba08(0x1de)]=_0x12db25,this[_0x49ba08(0x20d)]=_0x4a487f,this[_0x49ba08(0x1a7)]();}['_initDataSource'](){const _0x52f69a=_0x176382;this[_0x52f69a(0x1de)][_0x52f69a(0x192)]=this[_0x52f69a(0x20d)],this[_0x52f69a(0x1de)][_0x52f69a(0x19e)]=!0x1;}};b=W([D(0x0,y[_0x176382(0x1ef)]),D(0x1,c[_0x176382(0x1c0)](f))],b);var M=Object[_0x176382(0x1e7)],B=Object[_0x176382(0x1fe)],K=(_0x114fd5,_0x50f3bd,_0x264b32)=>_0x50f3bd in _0x114fd5?M(_0x114fd5,_0x50f3bd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x264b32}):_0x114fd5[_0x50f3bd]=_0x264b32,V=(_0x339b0a,_0x4275ef,_0x42d23a,_0xc99dab)=>{const _0x542119=_0x176382;for(var _0x2f7aca=_0xc99dab>0x1?void 0x0:_0xc99dab?B(_0x4275ef,_0x42d23a):_0x4275ef,_0x469105=_0x339b0a[_0x542119(0x1ae)]-0x1,_0x32a1d9;_0x469105>=0x0;_0x469105--)(_0x32a1d9=_0x339b0a[_0x469105])&&(_0x2f7aca=(_0xc99dab?_0x32a1d9(_0x4275ef,_0x42d23a,_0x2f7aca):_0x32a1d9(_0x2f7aca))||_0x2f7aca);return _0xc99dab&&_0x2f7aca&&M(_0x4275ef,_0x42d23a,_0x2f7aca),_0x2f7aca;},O=(_0xca3757,_0x54c2f3)=>(_0x56a6ed,_0x5ba9a2)=>_0x54c2f3(_0x56a6ed,_0x5ba9a2,_0xca3757),j=(_0x157a7e,_0x42d84a,_0x3d6d33)=>K(_0x157a7e,typeof _0x42d84a!=_0x176382(0x1ad)?_0x42d84a+'':_0x42d84a,_0x3d6d33);exports['UniverThreadCommentDataSourcePlugin']=class extends c[_0x176382(0x1f0)]{constructor(_0x310515=x,_0x471be9,_0x14c6f3){const _0x1b5576=_0x176382;super(),this['_config']=_0x310515,this[_0x1b5576(0x199)]=_0x471be9,this[_0x1b5576(0x1a4)]=_0x14c6f3;const {..._0x12229b}=this[_0x1b5576(0x1af)];this[_0x1b5576(0x1a4)][_0x1b5576(0x197)](A,_0x12229b);}[_0x176382(0x1d4)](){const _0x195e9d=_0x176382;[[f],[b],[S]][_0x195e9d(0x1ab)](_0x51f260=>{const _0xe11744=_0x195e9d;this[_0xe11744(0x199)]['add'](_0x51f260);});}['onReady'](){const _0x56da7f=_0x176382;this['_injector'][_0x56da7f(0x206)](b),this[_0x56da7f(0x199)][_0x56da7f(0x206)](S);}},j(exports['UniverThreadCommentDataSourcePlugin'],_0x176382(0x1a3),U),j(exports[_0x176382(0x1f2)],_0x176382(0x1f8),c[_0x176382(0x1b3)][_0x176382(0x1cd)]),exports['UniverThreadCommentDataSourcePlugin']=V([c[_0x176382(0x1ea)](T[_0x176382(0x193)],C[_0x176382(0x1c5)],N['UniverLicensePlugin']),O(0x1,c['Inject'](c[_0x176382(0x1f6)])),O(0x2,c[_0x176382(0x1a2)])],exports[_0x176382(0x1f2)]);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1773c6=_0x281f;(function(_0x58f8e9,_0x5680e4){const _0x406c10=_0x281f,_0x7fd4ca=_0x58f8e9();while(!![]){try{const _0x825308=-parseInt(_0x406c10(0xd4))/0x1*(parseInt(_0x406c10(0x98))/0x2)+-parseInt(_0x406c10(0xc2))/0x3*(-parseInt(_0x406c10(0xba))/0x4)+-parseInt(_0x406c10(0xd0))/0x5*(parseInt(_0x406c10(0xaa))/0x6)+-parseInt(_0x406c10(0x99))/0x7+-parseInt(_0x406c10(0x84))/0x8*(parseInt(_0x406c10(0xbb))/0x9)+-parseInt(_0x406c10(0xdb))/0xa+parseInt(_0x406c10(0xa4))/0xb;if(_0x825308===_0x5680e4)break;else _0x7fd4ca['push'](_0x7fd4ca['shift']());}catch(_0x33b7e7){_0x7fd4ca['push'](_0x7fd4ca['shift']());}}}(_0x574e,0xeca7b));function _0x281f(_0x51af1c,_0x5851f8){const _0x574e0e=_0x574e();return _0x281f=function(_0x281fad,_0x3d1ba9){_0x281fad=_0x281fad-0x7e;let _0x321970=_0x574e0e[_0x281fad];return _0x321970;},_0x281f(_0x51af1c,_0x5851f8);}function _0x574e(){const _0x3f65a2=['comment','_threadCommentDataSourceService','_initUserSync','rangeType','YYYY/MM/DD\x20HH:mm','16OYQDzW','_commentService','parse','defineProperty','Solve','Add','createTimestamp','onReady','get','addUser','body','Delete','filter','values','userID','add','stringify','personId','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','length','1910210BDKzEM','8559929TTLoOm','/list','disposeWithMe','COMMENT','content','OpenOrReOpen','UNIVER_UNKNOWN','_injector','error','unitId','getCurrentUser','58295061Yyebpq','post','/universer-api/comment/unit/','user','slice','/universer-api/user/list','642jrMXRu','pluginName','Solved','comments','code','threadId','deleteComment','updateComment','getComment','symbol','_threadCommentModel','Unknown','root','_config','type','_userService','3620rbFQsL','6160662qSSoUK','find','userId','commentUpdate$','replyId','getMemberID','/delete','3594NHVKcB','replies','forEach','addComment','setConfig','subscribe','solved','Edit','ref','_httpService','_initDataSource','UNRECOGNIZED','/add','_init','83060DlJork','_threadCommentDataSource','/reply','_configService','1MIEbyR','format','getUnit','delete','map','requireSession','payload','899300EpteYo','resolveComment','_sessionService','getOwnPropertyDescriptor','customRanges','syncUpdateMutationToColla','Reply'];_0x574e=function(){return _0x3f65a2;};return _0x574e();}import{dayjs as _0x35e34f,UserManagerService as _0x32fe65,Inject as _0x4fb662,Injector as _0x1610eb,Disposable as _0x287e07,CustomRangeType as _0x21eb6e,UniverInstanceType as _0x3dbd0b,DependentOn as _0x567446,Plugin as _0x16aa87,IConfigService as _0x2ef31e}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x3c3da1}from'@univerjs/thread-comment-ui';import{CommentService as _0x2a1652,CollaborationSessionService as _0x56aa16,UniverCollaborationClientPlugin as _0xfee743}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x24df1b}from'@univerjs-pro/license';import{ThreadCommentModel as _0xbc47cb,IThreadCommentDataSourceService as _0x1b3270}from'@univerjs/thread-comment';import{bufferTime as _0x211233}from'rxjs';import{HTTPService as _0x101fc8}from'@univerjs/network';const q=_0x1773c6(0x96);var v=(_0x50fa97=>(_0x50fa97[_0x50fa97['OpenOrReOpen']=0x0]=_0x1773c6(0x9e),_0x50fa97[_0x50fa97[_0x1773c6(0xac)]=0x1]=_0x1773c6(0xac),_0x50fa97[_0x50fa97[_0x1773c6(0xcd)]=-0x1]=_0x1773c6(0xcd),_0x50fa97))(v||{}),p=(_0x2a06fc=>(_0x2a06fc[_0x2a06fc[_0x1773c6(0xb5)]=0x0]=_0x1773c6(0xb5),_0x2a06fc[_0x2a06fc[_0x1773c6(0x89)]=0x1]='Add',_0x2a06fc[_0x2a06fc[_0x1773c6(0x7e)]=0x2]=_0x1773c6(0x7e),_0x2a06fc[_0x2a06fc['Edit']=0x3]=_0x1773c6(0xc9),_0x2a06fc[_0x2a06fc['Delete']=0x4]=_0x1773c6(0x8f),_0x2a06fc[_0x2a06fc[_0x1773c6(0x88)]=0x5]=_0x1773c6(0x88),_0x2a06fc[_0x2a06fc['UNRECOGNIZED']=-0x1]=_0x1773c6(0xcd),_0x2a06fc))(p||{});const O=_0x59336a=>_0x35e34f(new Date(+_0x59336a))[_0x1773c6(0xd5)](_0x1773c6(0x83)),W=async(_0x4baa1f,_0x258113)=>{const _0x29b34b=_0x1773c6,_0x55cbf1=_0x4baa1f[_0x29b34b(0x8c)](_0x32fe65),_0x5c153d=_0x4baa1f[_0x29b34b(0x8c)](_0x101fc8);_0x258113[_0x29b34b(0xc4)](_0x28f295=>{const _0x5522e9=_0x29b34b;_0x55cbf1['getUser'](_0x28f295)&&_0x258113[_0x5522e9(0xd7)](_0x28f295);}),_0x258113['size']&&(await _0x5c153d[_0x29b34b(0x8c)](_0x29b34b(0xa9),{'params':{'userIDs':[..._0x258113]}}))[_0x29b34b(0x8e)]['users'][_0x29b34b(0xc4)](_0x1ae268=>{const _0x30f16e=_0x29b34b;_0x1ae268&&_0x55cbf1[_0x30f16e(0x8d)](_0x1ae268);});};var B=Object['defineProperty'],K=Object[_0x1773c6(0xde)],V=(_0x475661,_0xe8e263,_0x2e46ab,_0x4bab11)=>{const _0x239dcd=_0x1773c6;for(var _0x5ce5b6=_0x4bab11>0x1?void 0x0:_0x4bab11?K(_0xe8e263,_0x2e46ab):_0xe8e263,_0x40d3e1=_0x475661[_0x239dcd(0x97)]-0x1,_0x99ab51;_0x40d3e1>=0x0;_0x40d3e1--)(_0x99ab51=_0x475661[_0x40d3e1])&&(_0x5ce5b6=(_0x4bab11?_0x99ab51(_0xe8e263,_0x2e46ab,_0x5ce5b6):_0x99ab51(_0x5ce5b6))||_0x5ce5b6);return _0x4bab11&&_0x5ce5b6&&B(_0xe8e263,_0x2e46ab,_0x5ce5b6),_0x5ce5b6;},_=(_0xc83bc5,_0x254815)=>(_0x10e6ae,_0x591db0)=>_0x254815(_0x10e6ae,_0x591db0,_0xc83bc5);let f=class extends _0x287e07{constructor(_0x2b73c0,_0x550912,_0x2e49c4,_0x4099b8){const _0x2323a4=_0x1773c6;super(),this[_0x2323a4(0x85)]=_0x2b73c0,this[_0x2323a4(0xb4)]=_0x550912,this['_userService']=_0x2e49c4,this[_0x2323a4(0xa0)]=_0x4099b8,this[_0x2323a4(0xcf)](),this[_0x2323a4(0x81)]();}[_0x1773c6(0x81)](){const _0x1b0212=_0x1773c6;this[_0x1b0212(0x9b)](this[_0x1b0212(0xb4)][_0x1b0212(0xbe)]['pipe'](_0x211233(0x10))[_0x1b0212(0xc7)](_0x4faabb=>{const _0x4aca5d=_0x1b0212,_0x4c340e=new Set();_0x4faabb[_0x4aca5d(0xc4)](_0x463699=>{const _0x22e3d7=_0x4aca5d;switch(_0x463699[_0x22e3d7(0xb8)]){case _0x22e3d7(0x93):{const _0x441e0d=_0x463699[_0x22e3d7(0xda)][_0x22e3d7(0x95)];_0x4c340e[_0x22e3d7(0x93)](_0x441e0d);break;}}}),W(this[_0x4aca5d(0xa0)],_0x4c340e);}));}[_0x1773c6(0xcf)](){const _0x464e79=_0x1773c6;this[_0x464e79(0x9b)](this[_0x464e79(0x85)][_0x464e79(0xbe)]['subscribe'](async _0x2489b5=>{const _0x1d44a3=_0x464e79;var _0x37bb0d,_0x5d8732,_0x1952c3,_0x3ce7c6;const _0x3d6756=(_0x37bb0d=this[_0x1d44a3(0xb4)][_0x1d44a3(0xd6)](_0x2489b5[_0x1d44a3(0xa2)])[_0x1d44a3(0xbc)](_0x5067fb=>_0x5067fb['threadId']===_0x2489b5[_0x1d44a3(0xaf)]))==null?void 0x0:_0x37bb0d[_0x1d44a3(0xb6)];if(!_0x3d6756)return;const {unitId:_0x5c8818,subUnitId:_0x391083}=_0x3d6756;switch(_0x2489b5[_0x1d44a3(0xa7)]&&this[_0x1d44a3(0xb9)][_0x1d44a3(0x8d)](_0x2489b5['user']),_0x2489b5[_0x1d44a3(0xb8)]){case p[_0x1d44a3(0x89)]:break;case p[_0x1d44a3(0x7e)]:{this[_0x1d44a3(0xb4)][_0x1d44a3(0xc5)](_0x5c8818,_0x391083,{'unitId':_0x5c8818,'subUnitId':_0x391083,'ref':'','id':_0x2489b5[_0x1d44a3(0xbf)],'dT':O(+_0x2489b5[_0x1d44a3(0x8a)]),'threadId':_0x2489b5['threadId'],'personId':(_0x1952c3=(_0x5d8732=_0x2489b5[_0x1d44a3(0xa7)])==null?void 0x0:_0x5d8732[_0x1d44a3(0x92)])!=null?_0x1952c3:_0x2489b5['userId'],'text':JSON['parse'](_0x2489b5['content']),'parentId':_0x3d6756['id']});break;}case p[_0x1d44a3(0x8f)]:{const _0x1edfce=this[_0x1d44a3(0xb4)][_0x1d44a3(0xb2)](_0x5c8818,_0x391083,_0x2489b5['replyId']);_0x1edfce&&_0x1edfce['parentId']&&this['_threadCommentModel'][_0x1d44a3(0xb0)](_0x5c8818,_0x391083,_0x2489b5[_0x1d44a3(0xbf)]);break;}case p[_0x1d44a3(0xc9)]:{this[_0x1d44a3(0xb4)][_0x1d44a3(0xb1)](_0x5c8818,_0x391083,{'commentId':_0x2489b5[_0x1d44a3(0xbf)],'text':JSON[_0x1d44a3(0x86)](_0x2489b5[_0x1d44a3(0x9d)])});break;}case p[_0x1d44a3(0x88)]:{const _0x12dc0e=(_0x3ce7c6=this[_0x1d44a3(0xb4)][_0x1d44a3(0xd6)](_0x2489b5[_0x1d44a3(0xa2)])[_0x1d44a3(0xbc)](_0x556fac=>_0x556fac[_0x1d44a3(0xaf)]===_0x2489b5[_0x1d44a3(0xaf)]))==null?void 0x0:_0x3ce7c6[_0x1d44a3(0xb6)];_0x12dc0e&&this['_threadCommentModel'][_0x1d44a3(0xdc)](_0x5c8818,_0x391083,_0x12dc0e['id'],_0x2489b5[_0x1d44a3(0xc8)]===v[_0x1d44a3(0xac)]);break;}}}));}};f=V([_(0x0,_0x4fb662(_0x2a1652)),_(0x1,_0x4fb662(_0xbc47cb)),_(0x2,_0x4fb662(_0x32fe65)),_(0x3,_0x4fb662(_0x1610eb))],f);const z='thread-comment-data-source.config',Q={};var X=Object[_0x1773c6(0x87)],k=Object[_0x1773c6(0xde)],ee=(_0x4aad35,_0x48bc07,_0x7fed21,_0x2a3165)=>{const _0x1b1aaa=_0x1773c6;for(var _0x404531=_0x2a3165>0x1?void 0x0:_0x2a3165?k(_0x48bc07,_0x7fed21):_0x48bc07,_0x587a01=_0x4aad35[_0x1b1aaa(0x97)]-0x1,_0x3128a3;_0x587a01>=0x0;_0x587a01--)(_0x3128a3=_0x4aad35[_0x587a01])&&(_0x404531=(_0x2a3165?_0x3128a3(_0x48bc07,_0x7fed21,_0x404531):_0x3128a3(_0x404531))||_0x404531);return _0x2a3165&&_0x404531&&X(_0x48bc07,_0x7fed21,_0x404531),_0x404531;},I=(_0x3eb460,_0x2187d1)=>(_0x309cfc,_0x245329)=>_0x2187d1(_0x309cfc,_0x245329,_0x3eb460);function re(_0x1da483,_0x2abb0c){const _0x13aa0e=_0x1773c6,_0x51adc1=_0x1da483[_0x13aa0e(0xc3)][0x0];return{..._0x2abb0c,'id':_0x51adc1[_0x13aa0e(0xbf)],'resolved':_0x1da483['solved']===0x1,'dT':O(_0x51adc1[_0x13aa0e(0x8a)]),'personId':_0x51adc1['userId'],'threadId':_0x51adc1['threadId']};}function te(_0x55a05a,_0x3d8df1,_0x193f9f){const _0x2e9d85=_0x1773c6;var _0x692e3c,_0x28477a;if(((_0x28477a=(_0x692e3c=_0x55a05a==null?void 0x0:_0x55a05a[_0x2e9d85(0xc3)])==null?void 0x0:_0x692e3c[_0x2e9d85(0x97)])!=null?_0x28477a:0x0)>0x0){const _0x3627ea=(_0x33ce47,_0x11266c)=>({'id':_0x33ce47[_0x2e9d85(0xbf)],'threadId':_0x33ce47['threadId'],'dT':O(_0x33ce47[_0x2e9d85(0x8a)]),'personId':_0x33ce47['userId'],'resolved':_0x55a05a[_0x2e9d85(0xc8)]===v[_0x2e9d85(0xac)],'unitId':_0x3d8df1,'subUnitId':_0x193f9f,'text':JSON[_0x2e9d85(0x86)](_0x33ce47[_0x2e9d85(0x9d)]),'parentId':_0x11266c}),_0xade2a5=_0x3627ea(_0x55a05a['replies'][0x0]);return{..._0xade2a5,'children':_0x55a05a['replies'][_0x2e9d85(0xa8)](0x1)['map'](_0x56f89a=>_0x3627ea(_0x56f89a,_0xade2a5['id']))};}return null;}let S=class{constructor(_0x3872d9,_0x548909,_0x3dae29,_0x3afdc5){const _0x5413d4=_0x1773c6;this[_0x5413d4(0xcb)]=_0x3872d9,this[_0x5413d4(0xb9)]=_0x548909,this[_0x5413d4(0xdd)]=_0x3dae29,this['_injector']=_0x3afdc5;}async[_0x1773c6(0xc5)](_0x4126ed){const _0x2e8cef=_0x1773c6;var _0x1f77ef,_0x35cd0a;const {parentId:_0x5b0c48,unitId:_0x5bec86,text:_0x9851c1,threadId:_0x8115fa}=_0x4126ed,_0x2c41c7=(_0x35cd0a=(_0x1f77ef=_0x9851c1['customRanges'])==null?void 0x0:_0x1f77ef[_0x2e8cef(0x90)](_0x5f0e99=>_0x5f0e99[_0x2e8cef(0x82)]===_0x21eb6e[_0x2e8cef(0x9c)])[_0x2e8cef(0xd8)](_0x55eb91=>_0x55eb91['rangeId']))!=null?_0x35cd0a:[],_0x4111dc=JSON[_0x2e8cef(0x94)](_0x9851c1),_0x4b8ac0=(await this['_sessionService'][_0x2e8cef(0xd9)](_0x5bec86))[_0x2e8cef(0xc0)]();if(_0x5b0c48){const _0x218cc5={'memberId':_0x4b8ac0,'unitId':_0x5bec86,'content':_0x4111dc,'mention':_0x2c41c7,'threadId':_0x8115fa},_0x253165=(await this[_0x2e8cef(0xcb)]['post'](_0x2e8cef(0xa6)+_0x5bec86+_0x2e8cef(0xd2),{'body':_0x218cc5}))['body']['reply'];return{..._0x4126ed,'id':_0x253165['replyId'],'dT':_0x35e34f(+_0x253165[_0x2e8cef(0x8a)])[_0x2e8cef(0xd5)](_0x2e8cef(0x83)),'personId':_0x253165[_0x2e8cef(0xbd)]};}else{const _0x5014c3={'memberId':_0x4b8ac0,'unitId':_0x5bec86,'content':_0x4111dc,'mention':_0x2c41c7},_0xc341c8=await this['_httpService']['post'](_0x2e8cef(0xa6)+_0x5bec86+_0x2e8cef(0xce),{'body':_0x5014c3});return re(_0xc341c8[_0x2e8cef(0x8e)][_0x2e8cef(0x7f)],_0x4126ed);}}async[_0x1773c6(0xb1)](_0x18f71e){const _0x472f3b=_0x1773c6;var _0x2e8ae3,_0x3aaa97;const {text:_0x4005be,unitId:_0x2dd6ba}=_0x18f71e,_0x300af3=(_0x3aaa97=(_0x2e8ae3=_0x4005be[_0x472f3b(0xdf)])==null?void 0x0:_0x2e8ae3[_0x472f3b(0x90)](_0x2f0455=>_0x2f0455['rangeType']===_0x21eb6e[_0x472f3b(0x9c)])[_0x472f3b(0xd8)](_0x18d81b=>_0x18d81b['rangeId']))!=null?_0x3aaa97:[],_0x1ec748=JSON[_0x472f3b(0x94)](_0x4005be),_0x47ee66=_0x18f71e[_0x472f3b(0xaf)],_0x3ddc34=_0x18f71e['id'],_0xcf3162={'memberId':(await this['_sessionService'][_0x472f3b(0xd9)](_0x2dd6ba))[_0x472f3b(0xc0)](),'unitId':_0x2dd6ba,'threadId':_0x47ee66,'mention':_0x300af3,'content':_0x1ec748,'replyId':_0x3ddc34},_0x1c338e=await this[_0x472f3b(0xcb)]['post']('/universer-api/comment/unit/'+_0x2dd6ba+'/edit',{'body':_0xcf3162});return!_0x1c338e[_0x472f3b(0x8e)]['error']||_0x1c338e['body'][_0x472f3b(0xa1)][_0x472f3b(0xae)]===0x1;}async[_0x1773c6(0xdc)](_0x2b0160){const _0x4c06b0=_0x1773c6,{unitId:_0x50415d}=_0x2b0160,_0x4c8661=_0x2b0160['threadId'],_0x1aa44d={'memberId':this[_0x4c06b0(0xb9)][_0x4c06b0(0xa3)]()['userID'],'unitId':_0x50415d,'threadId':_0x4c8661,'solved':_0x2b0160['resolved']?v[_0x4c06b0(0xac)]:v['OpenOrReOpen']},_0x4170e6=await this[_0x4c06b0(0xcb)][_0x4c06b0(0xa5)](_0x4c06b0(0xa6)+_0x50415d+'/solved',{'body':_0x1aa44d});return!_0x4170e6[_0x4c06b0(0x8e)][_0x4c06b0(0xa1)]||_0x4170e6[_0x4c06b0(0x8e)][_0x4c06b0(0xa1)][_0x4c06b0(0xae)]===0x1;}async[_0x1773c6(0xb0)](_0x294e23,_0x10e793,_0x2b2a3e,_0x34907a){const _0x56e9f8=_0x1773c6,_0x9d0bc3={'memberId':(await this[_0x56e9f8(0xdd)]['requireSession'](_0x294e23))[_0x56e9f8(0xc0)](),'threadId':_0x2b2a3e,'replyId':_0x34907a,'unitId':_0x294e23},_0x24516f=await this[_0x56e9f8(0xcb)]['post'](_0x56e9f8(0xa6)+_0x294e23+_0x56e9f8(0xc1),{'body':_0x9d0bc3});return!_0x24516f[_0x56e9f8(0x8e)][_0x56e9f8(0xa1)]||_0x24516f[_0x56e9f8(0x8e)][_0x56e9f8(0xa1)][_0x56e9f8(0xae)]===0x1;}async['listComments'](_0x54038e,_0x3bf014,_0x1ac4d2){const _0x41a758=_0x1773c6,_0xcf096a={'unitId':_0x54038e,'threadId':_0x1ac4d2},_0xd7e060=await this[_0x41a758(0xcb)]['post']('/universer-api/comment/unit/'+_0x54038e+_0x41a758(0x9a),{'body':_0xcf096a}),_0x5e663d=_0x1ac4d2[_0x41a758(0xd8)](_0x3e6561=>te(_0xd7e060['body'][_0x41a758(0xad)][_0x3e6561],_0x54038e,_0x3bf014))[_0x41a758(0x90)](Boolean);return Object[_0x41a758(0x91)](_0xd7e060[_0x41a758(0x8e)]['users'])[_0x41a758(0xc4)](_0x449c2c=>{const _0x54902c=_0x41a758;this[_0x54902c(0xb9)][_0x54902c(0x8d)](_0x449c2c);}),_0x5e663d;}['saveCommentToSnapshot'](_0x4933e7){const _0x4fcc04=_0x1773c6;return{'id':_0x4933e7['id'],'threadId':_0x4933e7['threadId'],'ref':_0x4933e7[_0x4fcc04(0xca)]};}};S=ee([I(0x0,_0x4fb662(_0x101fc8)),I(0x1,_0x4fb662(_0x32fe65)),I(0x2,_0x4fb662(_0x56aa16)),I(0x3,_0x4fb662(_0x1610eb))],S);var se=Object[_0x1773c6(0x87)],oe=Object[_0x1773c6(0xde)],ne=(_0x1493e7,_0xc623e2,_0xef248,_0x20e488)=>{const _0x73c65c=_0x1773c6;for(var _0x2c6afa=_0x20e488>0x1?void 0x0:_0x20e488?oe(_0xc623e2,_0xef248):_0xc623e2,_0x50af9d=_0x1493e7[_0x73c65c(0x97)]-0x1,_0x6e95a9;_0x50af9d>=0x0;_0x50af9d--)(_0x6e95a9=_0x1493e7[_0x50af9d])&&(_0x2c6afa=(_0x20e488?_0x6e95a9(_0xc623e2,_0xef248,_0x2c6afa):_0x6e95a9(_0x2c6afa))||_0x2c6afa);return _0x20e488&&_0x2c6afa&&se(_0xc623e2,_0xef248,_0x2c6afa),_0x2c6afa;},P=(_0x2d2a76,_0x995db7)=>(_0x21f5a8,_0x5e7871)=>_0x995db7(_0x21f5a8,_0x5e7871,_0x2d2a76);let b=class extends _0x287e07{constructor(_0x22507f,_0x4238f9){const _0x2ecd91=_0x1773c6;super(),this[_0x2ecd91(0x80)]=_0x22507f,this[_0x2ecd91(0xd1)]=_0x4238f9,this[_0x2ecd91(0xcc)]();}[_0x1773c6(0xcc)](){const _0x540a6d=_0x1773c6;this[_0x540a6d(0x80)]['dataSource']=this[_0x540a6d(0xd1)],this[_0x540a6d(0x80)][_0x540a6d(0xe0)]=!0x1;}};b=ne([P(0x0,_0x1b3270),P(0x1,_0x4fb662(S))],b);var R=Object[_0x1773c6(0x87)],ie=Object[_0x1773c6(0xde)],ce=(_0x4f8484,_0x3937f4,_0x446f7a)=>_0x3937f4 in _0x4f8484?R(_0x4f8484,_0x3937f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x446f7a}):_0x4f8484[_0x3937f4]=_0x446f7a,ae=(_0x51d8d2,_0x4feca5,_0x1049e6,_0x5c6834)=>{const _0xb66ee4=_0x1773c6;for(var _0x17224a=_0x5c6834>0x1?void 0x0:_0x5c6834?ie(_0x4feca5,_0x1049e6):_0x4feca5,_0x4fe9f6=_0x51d8d2[_0xb66ee4(0x97)]-0x1,_0xdb52de;_0x4fe9f6>=0x0;_0x4fe9f6--)(_0xdb52de=_0x51d8d2[_0x4fe9f6])&&(_0x17224a=(_0x5c6834?_0xdb52de(_0x4feca5,_0x1049e6,_0x17224a):_0xdb52de(_0x17224a))||_0x17224a);return _0x5c6834&&_0x17224a&&R(_0x4feca5,_0x1049e6,_0x17224a),_0x17224a;},M=(_0x2c0697,_0x3856c4)=>(_0x35a339,_0x1f4c76)=>_0x3856c4(_0x35a339,_0x1f4c76,_0x2c0697),j=(_0x55eb62,_0x17b9cd,_0x4993b9)=>ce(_0x55eb62,typeof _0x17b9cd!=_0x1773c6(0xb3)?_0x17b9cd+'':_0x17b9cd,_0x4993b9);let C=class extends _0x16aa87{constructor(_0x2a1a92=Q,_0x21a339,_0x15ded9){const _0x27b699=_0x1773c6;super(),this[_0x27b699(0xb7)]=_0x2a1a92,this[_0x27b699(0xa0)]=_0x21a339,this[_0x27b699(0xd3)]=_0x15ded9;const {..._0x1b9c1e}=this[_0x27b699(0xb7)];this[_0x27b699(0xd3)][_0x27b699(0xc6)](z,_0x1b9c1e);}['onStarting'](){[[S],[b],[f]]['forEach'](_0x6debfe=>{const _0x3a7c88=_0x281f;this['_injector'][_0x3a7c88(0x93)](_0x6debfe);});}[_0x1773c6(0x8b)](){const _0x50887e=_0x1773c6;this['_injector'][_0x50887e(0x8c)](b),this[_0x50887e(0xa0)][_0x50887e(0x8c)](f);}};j(C,_0x1773c6(0xab),q),j(C,'type',_0x3dbd0b[_0x1773c6(0x9f)]),C=ae([_0x567446(_0x3c3da1,_0xfee743,_0x24df1b),M(0x1,_0x4fb662(_0x1610eb)),M(0x2,_0x2ef31e)],C);export{C as UniverThreadCommentDataSourcePlugin};
1
+ const _0x3769f1=_0x4bc4;(function(_0x4192a2,_0x299c42){const _0x2910de=_0x4bc4,_0x432d69=_0x4192a2();while(!![]){try{const _0x1a31d0=parseInt(_0x2910de(0x15b))/0x1*(parseInt(_0x2910de(0x12e))/0x2)+-parseInt(_0x2910de(0x103))/0x3+-parseInt(_0x2910de(0x140))/0x4+parseInt(_0x2910de(0x15d))/0x5+-parseInt(_0x2910de(0x134))/0x6+-parseInt(_0x2910de(0x154))/0x7+parseInt(_0x2910de(0x120))/0x8;if(_0x1a31d0===_0x299c42)break;else _0x432d69['push'](_0x432d69['shift']());}catch(_0xe6630b){_0x432d69['push'](_0x432d69['shift']());}}}(_0x5449,0x71d18));import{CommentService as _0x14ecf1,CollaborationSessionService as _0xa2a829,UniverCollaborationClientPlugin as _0x2c3661}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x36ef01}from'@univerjs-pro/license';import{dayjs as _0x29fb43,UserManagerService as _0x330b79,Inject as _0x2248d7,Injector as _0x203748,Disposable as _0xc97a9a,CustomRangeType as _0x45e1e6,UniverInstanceType as _0x17e7f9,DependentOn as _0x2544f0,Plugin as _0x5d51a6,IConfigService as _0x204533}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x4b382b}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x2a22fa,IThreadCommentDataSourceService as _0x128279}from'@univerjs/thread-comment';import{bufferTime as _0x50b520}from'rxjs';import{HTTPService as _0x49216e}from'@univerjs/network';const q='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var v=(_0x4df04e=>(_0x4df04e[_0x4df04e[_0x3769f1(0x11a)]=0x0]=_0x3769f1(0x11a),_0x4df04e[_0x4df04e[_0x3769f1(0xfc)]=0x1]='Solved',_0x4df04e[_0x4df04e[_0x3769f1(0x11f)]=-0x1]=_0x3769f1(0x11f),_0x4df04e))(v||{}),p=(_0x4f9110=>(_0x4f9110[_0x4f9110[_0x3769f1(0x14d)]=0x0]=_0x3769f1(0x14d),_0x4f9110[_0x4f9110[_0x3769f1(0x136)]=0x1]=_0x3769f1(0x136),_0x4f9110[_0x4f9110['Reply']=0x2]='Reply',_0x4f9110[_0x4f9110['Edit']=0x3]=_0x3769f1(0x10d),_0x4f9110[_0x4f9110[_0x3769f1(0x109)]=0x4]=_0x3769f1(0x109),_0x4f9110[_0x4f9110[_0x3769f1(0x152)]=0x5]=_0x3769f1(0x152),_0x4f9110[_0x4f9110[_0x3769f1(0x11f)]=-0x1]=_0x3769f1(0x11f),_0x4f9110))(p||{});function _0x4bc4(_0x5d857d,_0x342f49){const _0x544970=_0x5449();return _0x4bc4=function(_0x4bc4ca,_0x5eb13f){_0x4bc4ca=_0x4bc4ca-0xfc;let _0x476098=_0x544970[_0x4bc4ca];return _0x476098;},_0x4bc4(_0x5d857d,_0x342f49);}const g=_0x52ca7f=>_0x29fb43(new Date(+_0x52ca7f))[_0x3769f1(0x10a)](_0x3769f1(0xfe)),W=async(_0x2caa2d,_0x5a18e5)=>{const _0x38c234=_0x3769f1,_0x561092=_0x2caa2d[_0x38c234(0x144)](_0x330b79),_0xa1613e=_0x2caa2d[_0x38c234(0x144)](_0x49216e);_0x5a18e5[_0x38c234(0x146)](_0x289ff1=>{const _0x357276=_0x38c234;_0x561092[_0x357276(0x118)](_0x289ff1)&&_0x5a18e5[_0x357276(0x12a)](_0x289ff1);}),_0x5a18e5['size']&&(await _0xa1613e[_0x38c234(0x144)](_0x38c234(0x14e),{'params':{'userIDs':[..._0x5a18e5]}}))[_0x38c234(0x106)][_0x38c234(0x12f)][_0x38c234(0x146)](_0xb4a94a=>{const _0x4469e2=_0x38c234;_0xb4a94a&&_0x561092[_0x4469e2(0x13b)](_0xb4a94a);});};var B=Object['defineProperty'],K=Object[_0x3769f1(0x148)],V=(_0x3d54a6,_0xc9636e,_0x4628e0,_0x1c2030)=>{const _0x3cc191=_0x3769f1;for(var _0x406fd3=_0x1c2030>0x1?void 0x0:_0x1c2030?K(_0xc9636e,_0x4628e0):_0xc9636e,_0x1c6a47=_0x3d54a6[_0x3cc191(0x129)]-0x1,_0x25817d;_0x1c6a47>=0x0;_0x1c6a47--)(_0x25817d=_0x3d54a6[_0x1c6a47])&&(_0x406fd3=(_0x1c2030?_0x25817d(_0xc9636e,_0x4628e0,_0x406fd3):_0x25817d(_0x406fd3))||_0x406fd3);return _0x1c2030&&_0x406fd3&&B(_0xc9636e,_0x4628e0,_0x406fd3),_0x406fd3;},_=(_0x419ad7,_0xc396ba)=>(_0x541a61,_0x4dd185)=>_0xc396ba(_0x541a61,_0x4dd185,_0x419ad7);let f=class extends _0xc97a9a{constructor(_0x130d4c,_0x51b299,_0x4072a9,_0x580fd0){const _0x54186f=_0x3769f1;super(),this[_0x54186f(0x100)]=_0x130d4c,this['_threadCommentModel']=_0x51b299,this[_0x54186f(0x115)]=_0x4072a9,this['_injector']=_0x580fd0,this[_0x54186f(0x13a)](),this[_0x54186f(0x108)]();}[_0x3769f1(0x108)](){const _0x26981f=_0x3769f1;this[_0x26981f(0x14b)](this[_0x26981f(0x126)][_0x26981f(0x114)][_0x26981f(0x101)](_0x50b520(0x10))[_0x26981f(0x111)](_0x4a4d6b=>{const _0x4549d1=_0x26981f,_0x1f9034=new Set();_0x4a4d6b[_0x4549d1(0x146)](_0x26e725=>{const _0x3bdf70=_0x4549d1;switch(_0x26e725[_0x3bdf70(0x112)]){case _0x3bdf70(0x141):{const _0x2b8b37=_0x26e725[_0x3bdf70(0x125)][_0x3bdf70(0x11e)];_0x1f9034['add'](_0x2b8b37);break;}}}),W(this[_0x4549d1(0xfd)],_0x1f9034);}));}[_0x3769f1(0x13a)](){const _0xa5cbc6=_0x3769f1;this[_0xa5cbc6(0x14b)](this[_0xa5cbc6(0x100)][_0xa5cbc6(0x114)]['subscribe'](async _0x58fa5e=>{const _0x57b8d7=_0xa5cbc6;var _0x21987f,_0x27913b,_0x21282f,_0x2f02a8;const _0x58b2c9=(_0x21987f=this['_threadCommentModel'][_0x57b8d7(0x151)](_0x58fa5e[_0x57b8d7(0x149)])[_0x57b8d7(0x10e)](_0x5e9bb0=>_0x5e9bb0['threadId']===_0x58fa5e[_0x57b8d7(0x12b)]))==null?void 0x0:_0x21987f['root'];if(!_0x58b2c9)return;const {unitId:_0x566cb5,subUnitId:_0x3f5a97}=_0x58b2c9;switch(_0x58fa5e['user']&&this[_0x57b8d7(0x115)][_0x57b8d7(0x13b)](_0x58fa5e[_0x57b8d7(0x107)]),_0x58fa5e[_0x57b8d7(0x112)]){case p['Add']:break;case p[_0x57b8d7(0x147)]:{this['_threadCommentModel'][_0x57b8d7(0x11d)](_0x566cb5,_0x3f5a97,{'unitId':_0x566cb5,'subUnitId':_0x3f5a97,'ref':'','id':_0x58fa5e['replyId'],'dT':g(+_0x58fa5e[_0x57b8d7(0x116)]),'threadId':_0x58fa5e[_0x57b8d7(0x12b)],'personId':(_0x21282f=(_0x27913b=_0x58fa5e[_0x57b8d7(0x107)])==null?void 0x0:_0x27913b[_0x57b8d7(0x121)])!=null?_0x21282f:_0x58fa5e[_0x57b8d7(0x117)],'text':JSON[_0x57b8d7(0x142)](_0x58fa5e[_0x57b8d7(0x157)]),'parentId':_0x58b2c9['id']});break;}case p[_0x57b8d7(0x109)]:{const _0x197cc6=this[_0x57b8d7(0x126)]['getComment'](_0x566cb5,_0x3f5a97,_0x58fa5e[_0x57b8d7(0x12d)]);_0x197cc6&&_0x197cc6[_0x57b8d7(0x105)]&&this[_0x57b8d7(0x126)][_0x57b8d7(0x14a)](_0x566cb5,_0x3f5a97,_0x58fa5e[_0x57b8d7(0x12d)]);break;}case p[_0x57b8d7(0x10d)]:{this[_0x57b8d7(0x126)]['updateComment'](_0x566cb5,_0x3f5a97,{'commentId':_0x58fa5e[_0x57b8d7(0x12d)],'text':JSON[_0x57b8d7(0x142)](_0x58fa5e['content'])});break;}case p[_0x57b8d7(0x152)]:{const _0xc94fa4=(_0x2f02a8=this[_0x57b8d7(0x126)][_0x57b8d7(0x151)](_0x58fa5e[_0x57b8d7(0x149)])[_0x57b8d7(0x10e)](_0x3c8555=>_0x3c8555['threadId']===_0x58fa5e[_0x57b8d7(0x12b)]))==null?void 0x0:_0x2f02a8[_0x57b8d7(0x155)];_0xc94fa4&&this[_0x57b8d7(0x126)]['resolveComment'](_0x566cb5,_0x3f5a97,_0xc94fa4['id'],_0x58fa5e['solved']===v[_0x57b8d7(0xfc)]);break;}}}));}};f=V([_(0x0,_0x2248d7(_0x14ecf1)),_(0x1,_0x2248d7(_0x2a22fa)),_(0x2,_0x2248d7(_0x330b79)),_(0x3,_0x2248d7(_0x203748))],f);const z=_0x3769f1(0x14f),Q={};var X=Object[_0x3769f1(0x145)],k=Object['getOwnPropertyDescriptor'],ee=(_0x3f2332,_0xf0f16,_0x3a5de9,_0x1e367a)=>{for(var _0x490aff=_0x1e367a>0x1?void 0x0:_0x1e367a?k(_0xf0f16,_0x3a5de9):_0xf0f16,_0x4ac5c0=_0x3f2332['length']-0x1,_0x7953b1;_0x4ac5c0>=0x0;_0x4ac5c0--)(_0x7953b1=_0x3f2332[_0x4ac5c0])&&(_0x490aff=(_0x1e367a?_0x7953b1(_0xf0f16,_0x3a5de9,_0x490aff):_0x7953b1(_0x490aff))||_0x490aff);return _0x1e367a&&_0x490aff&&X(_0xf0f16,_0x3a5de9,_0x490aff),_0x490aff;},I=(_0xb46688,_0x26e047)=>(_0x4cd0f3,_0x574e02)=>_0x26e047(_0x4cd0f3,_0x574e02,_0xb46688);function re(_0x50a0e0,_0x3aeb70){const _0x3f2b59=_0x3769f1,_0x4ac651=_0x50a0e0[_0x3f2b59(0x10f)][0x0];return{..._0x3aeb70,'id':_0x4ac651['replyId'],'resolved':_0x50a0e0[_0x3f2b59(0x13d)]===0x1,'dT':g(_0x4ac651[_0x3f2b59(0x116)]),'personId':_0x4ac651[_0x3f2b59(0x117)],'threadId':_0x4ac651[_0x3f2b59(0x12b)]};}function te(_0x55289f,_0x56fb50,_0x54abf9){const _0x2cc76c=_0x3769f1;var _0x301710,_0x2e5f9c;if(((_0x2e5f9c=(_0x301710=_0x55289f==null?void 0x0:_0x55289f[_0x2cc76c(0x10f)])==null?void 0x0:_0x301710[_0x2cc76c(0x129)])!=null?_0x2e5f9c:0x0)>0x0){const _0x2ab2f6=(_0x335df5,_0x599379)=>({'id':_0x335df5[_0x2cc76c(0x12d)],'threadId':_0x335df5[_0x2cc76c(0x12b)],'dT':g(_0x335df5['createTimestamp']),'personId':_0x335df5[_0x2cc76c(0x117)],'resolved':_0x55289f[_0x2cc76c(0x13d)]===v[_0x2cc76c(0xfc)],'unitId':_0x56fb50,'subUnitId':_0x54abf9,'text':JSON[_0x2cc76c(0x142)](_0x335df5[_0x2cc76c(0x157)]),'parentId':_0x599379}),_0x1456f2=_0x2ab2f6(_0x55289f[_0x2cc76c(0x10f)][0x0]);return{..._0x1456f2,'children':_0x55289f[_0x2cc76c(0x10f)][_0x2cc76c(0x123)](0x1)['map'](_0x16d93e=>_0x2ab2f6(_0x16d93e,_0x1456f2['id']))};}return null;}let S=class{constructor(_0x2b2297,_0x326a47,_0x401abe,_0x1380f5){const _0x2d5baa=_0x3769f1;this[_0x2d5baa(0x150)]=_0x2b2297,this[_0x2d5baa(0x115)]=_0x326a47,this[_0x2d5baa(0x137)]=_0x401abe,this['_injector']=_0x1380f5;}async['addComment'](_0x5dc2fa){const _0x319d74=_0x3769f1;var _0xee192d,_0x151a93;const {parentId:_0x2e53c8,unitId:_0x58c0b9,text:_0x56f6d4,threadId:_0x135b93}=_0x5dc2fa,_0x521fc0=(_0x151a93=(_0xee192d=_0x56f6d4[_0x319d74(0x14c)])==null?void 0x0:_0xee192d['filter'](_0x3c918e=>_0x3c918e[_0x319d74(0x143)]===_0x45e1e6[_0x319d74(0x104)])[_0x319d74(0x133)](_0x194b4a=>_0x194b4a['rangeId']))!=null?_0x151a93:[],_0x2f2922=JSON[_0x319d74(0x131)](_0x56f6d4),_0x46c12a=(await this[_0x319d74(0x137)][_0x319d74(0x158)](_0x58c0b9))[_0x319d74(0x124)]();if(_0x2e53c8){const _0x112839={'memberId':_0x46c12a,'unitId':_0x58c0b9,'content':_0x2f2922,'mention':_0x521fc0,'threadId':_0x135b93},_0x5dadbc=(await this[_0x319d74(0x150)][_0x319d74(0x15c)](_0x319d74(0x11b)+_0x58c0b9+_0x319d74(0x159),{'body':_0x112839}))['body'][_0x319d74(0x127)];return{..._0x5dc2fa,'id':_0x5dadbc[_0x319d74(0x12d)],'dT':_0x29fb43(+_0x5dadbc[_0x319d74(0x116)])[_0x319d74(0x10a)](_0x319d74(0xfe)),'personId':_0x5dadbc[_0x319d74(0x117)]};}else{const _0x2bc604={'memberId':_0x46c12a,'unitId':_0x58c0b9,'content':_0x2f2922,'mention':_0x521fc0},_0x5d115d=await this[_0x319d74(0x150)][_0x319d74(0x15c)](_0x319d74(0x11b)+_0x58c0b9+'/add',{'body':_0x2bc604});return re(_0x5d115d[_0x319d74(0x106)][_0x319d74(0x13e)],_0x5dc2fa);}}async[_0x3769f1(0x135)](_0x1e2a6b){const _0x480760=_0x3769f1;var _0x4d2024,_0xd6bf4e;const {text:_0x21eb5c,unitId:_0x3d521d}=_0x1e2a6b,_0x4305e0=(_0xd6bf4e=(_0x4d2024=_0x21eb5c['customRanges'])==null?void 0x0:_0x4d2024[_0x480760(0x139)](_0x535f9a=>_0x535f9a[_0x480760(0x143)]===_0x45e1e6[_0x480760(0x104)])[_0x480760(0x133)](_0x337ad0=>_0x337ad0['rangeId']))!=null?_0xd6bf4e:[],_0x1657e2=JSON[_0x480760(0x131)](_0x21eb5c),_0xdcdd7c=_0x1e2a6b[_0x480760(0x12b)],_0x4fb171=_0x1e2a6b['id'],_0x320206={'memberId':(await this[_0x480760(0x137)][_0x480760(0x158)](_0x3d521d))[_0x480760(0x124)](),'unitId':_0x3d521d,'threadId':_0xdcdd7c,'mention':_0x4305e0,'content':_0x1657e2,'replyId':_0x4fb171},_0x975252=await this[_0x480760(0x150)][_0x480760(0x15c)](_0x480760(0x11b)+_0x3d521d+_0x480760(0x130),{'body':_0x320206});return!_0x975252[_0x480760(0x106)]['error']||_0x975252[_0x480760(0x106)][_0x480760(0x122)][_0x480760(0x12c)]===0x1;}async[_0x3769f1(0x132)](_0xae4fe9){const _0x561675=_0x3769f1,{unitId:_0x23e1bf}=_0xae4fe9,_0x4097c9=_0xae4fe9['threadId'],_0x5b7073={'memberId':this[_0x561675(0x115)][_0x561675(0x113)]()[_0x561675(0x121)],'unitId':_0x23e1bf,'threadId':_0x4097c9,'solved':_0xae4fe9['resolved']?v[_0x561675(0xfc)]:v[_0x561675(0x11a)]},_0x51113e=await this[_0x561675(0x150)][_0x561675(0x15c)](_0x561675(0x11b)+_0x23e1bf+'/solved',{'body':_0x5b7073});return!_0x51113e[_0x561675(0x106)][_0x561675(0x122)]||_0x51113e[_0x561675(0x106)][_0x561675(0x122)][_0x561675(0x12c)]===0x1;}async[_0x3769f1(0x14a)](_0x20b315,_0x484e25,_0xab9c95,_0x3b8c88){const _0x40c2f6=_0x3769f1,_0x2bbc93={'memberId':(await this['_sessionService'][_0x40c2f6(0x158)](_0x20b315))[_0x40c2f6(0x124)](),'threadId':_0xab9c95,'replyId':_0x3b8c88,'unitId':_0x20b315},_0xbc2e8a=await this[_0x40c2f6(0x150)][_0x40c2f6(0x15c)]('/universer-api/comment/unit/'+_0x20b315+_0x40c2f6(0x13f),{'body':_0x2bbc93});return!_0xbc2e8a[_0x40c2f6(0x106)][_0x40c2f6(0x122)]||_0xbc2e8a['body'][_0x40c2f6(0x122)][_0x40c2f6(0x12c)]===0x1;}async['listComments'](_0x59bae7,_0x4db489,_0x3652dd){const _0x3ef2c7=_0x3769f1,_0x4d636d={'unitId':_0x59bae7,'threadId':_0x3652dd},_0x297e75=await this[_0x3ef2c7(0x150)][_0x3ef2c7(0x15c)](_0x3ef2c7(0x11b)+_0x59bae7+_0x3ef2c7(0x138),{'body':_0x4d636d}),_0x481c7a=_0x3652dd[_0x3ef2c7(0x133)](_0x3aa11c=>te(_0x297e75[_0x3ef2c7(0x106)][_0x3ef2c7(0x13c)][_0x3aa11c],_0x59bae7,_0x4db489))[_0x3ef2c7(0x139)](Boolean);return Object['values'](_0x297e75[_0x3ef2c7(0x106)][_0x3ef2c7(0x12f)])['forEach'](_0x338925=>{const _0x158327=_0x3ef2c7;this['_userService'][_0x158327(0x13b)](_0x338925);}),_0x481c7a;}[_0x3769f1(0x153)](_0xcfe8cf){const _0x10b460=_0x3769f1;return{'id':_0xcfe8cf['id'],'threadId':_0xcfe8cf[_0x10b460(0x12b)],'ref':_0xcfe8cf['ref']};}};S=ee([I(0x0,_0x2248d7(_0x49216e)),I(0x1,_0x2248d7(_0x330b79)),I(0x2,_0x2248d7(_0xa2a829)),I(0x3,_0x2248d7(_0x203748))],S);var se=Object[_0x3769f1(0x145)],oe=Object[_0x3769f1(0x148)],ne=(_0x50b087,_0x447d7b,_0xc8989c,_0x1ac037)=>{for(var _0x22adc7=_0x1ac037>0x1?void 0x0:_0x1ac037?oe(_0x447d7b,_0xc8989c):_0x447d7b,_0x37eeb8=_0x50b087['length']-0x1,_0x316d33;_0x37eeb8>=0x0;_0x37eeb8--)(_0x316d33=_0x50b087[_0x37eeb8])&&(_0x22adc7=(_0x1ac037?_0x316d33(_0x447d7b,_0xc8989c,_0x22adc7):_0x316d33(_0x22adc7))||_0x22adc7);return _0x1ac037&&_0x22adc7&&se(_0x447d7b,_0xc8989c,_0x22adc7),_0x22adc7;},P=(_0x58dc31,_0x4c3078)=>(_0x8def81,_0x440e35)=>_0x4c3078(_0x8def81,_0x440e35,_0x58dc31);let b=class extends _0xc97a9a{constructor(_0x58c01b,_0x305615){const _0x3308fc=_0x3769f1;super(),this[_0x3308fc(0x128)]=_0x58c01b,this[_0x3308fc(0x15e)]=_0x305615,this['_initDataSource']();}[_0x3769f1(0x119)](){const _0x575d6e=_0x3769f1;this[_0x575d6e(0x128)][_0x575d6e(0x102)]=this[_0x575d6e(0x15e)],this[_0x575d6e(0x128)][_0x575d6e(0x156)]=!0x1;}};b=ne([P(0x0,_0x128279),P(0x1,_0x2248d7(S))],b);var T=Object[_0x3769f1(0x145)],ie=Object[_0x3769f1(0x148)],ce=(_0x5c41ec,_0x11e89f,_0x37eef9)=>_0x11e89f in _0x5c41ec?T(_0x5c41ec,_0x11e89f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37eef9}):_0x5c41ec[_0x11e89f]=_0x37eef9,ae=(_0x429014,_0x96685e,_0x27cabb,_0x222d4b)=>{for(var _0x18bbd7=_0x222d4b>0x1?void 0x0:_0x222d4b?ie(_0x96685e,_0x27cabb):_0x96685e,_0x29613e=_0x429014['length']-0x1,_0xd4a536;_0x29613e>=0x0;_0x29613e--)(_0xd4a536=_0x429014[_0x29613e])&&(_0x18bbd7=(_0x222d4b?_0xd4a536(_0x96685e,_0x27cabb,_0x18bbd7):_0xd4a536(_0x18bbd7))||_0x18bbd7);return _0x222d4b&&_0x18bbd7&&T(_0x96685e,_0x27cabb,_0x18bbd7),_0x18bbd7;},M=(_0x3d0d24,_0x3e00cd)=>(_0x376a22,_0x1b5eb9)=>_0x3e00cd(_0x376a22,_0x1b5eb9,_0x3d0d24),$=(_0x4e860a,_0x451645,_0x2e7547)=>ce(_0x4e860a,typeof _0x451645!='symbol'?_0x451645+'':_0x451645,_0x2e7547);let C=class extends _0x5d51a6{constructor(_0x2d4d00=Q,_0x5819c8,_0x3cfde0){const _0x3dc2ea=_0x3769f1;super(),this[_0x3dc2ea(0x10c)]=_0x2d4d00,this[_0x3dc2ea(0xfd)]=_0x5819c8,this[_0x3dc2ea(0x10b)]=_0x3cfde0;const {..._0x51a1fd}=this['_config'];this['_configService'][_0x3dc2ea(0x11c)](z,_0x51a1fd);}[_0x3769f1(0x110)](){const _0x46e905=_0x3769f1;[[S],[b],[f]][_0x46e905(0x146)](_0x2c330a=>{const _0x82e198=_0x46e905;this[_0x82e198(0xfd)][_0x82e198(0x141)](_0x2c330a);});}[_0x3769f1(0xff)](){const _0x331621=_0x3769f1;this[_0x331621(0xfd)]['get'](b),this[_0x331621(0xfd)][_0x331621(0x144)](f);}};$(C,'pluginName',q),$(C,_0x3769f1(0x112),_0x17e7f9[_0x3769f1(0x15a)]),C=ae([_0x2544f0(_0x4b382b,_0x2c3661,_0x36ef01),M(0x1,_0x2248d7(_0x203748)),M(0x2,_0x204533)],C);export{C as UniverThreadCommentDataSourcePlugin};function _0x5449(){const _0x1752c4=['updateComment','Add','_sessionService','/list','filter','_init','addUser','comments','solved','comment','/delete','2006732DnOeLw','add','parse','rangeType','get','defineProperty','forEach','Reply','getOwnPropertyDescriptor','unitId','deleteComment','disposeWithMe','customRanges','Unknown','/universer-api/user/list','thread-comment-data-source.config','_httpService','getUnit','Solve','saveCommentToSnapshot','5595142rDCjoi','root','syncUpdateMutationToColla','content','requireSession','/reply','UNIVER_UNKNOWN','464649aNfDLK','post','3719770IvFhkM','_threadCommentDataSource','Solved','_injector','YYYY/MM/DD\x20HH:mm','onReady','_commentService','pipe','dataSource','1951254iPOAHc','COMMENT','parentId','body','user','_initUserSync','Delete','format','_configService','_config','Edit','find','replies','onStarting','subscribe','type','getCurrentUser','commentUpdate$','_userService','createTimestamp','userId','getUser','_initDataSource','OpenOrReOpen','/universer-api/comment/unit/','setConfig','addComment','personId','UNRECOGNIZED','6911968sdgMje','userID','error','slice','getMemberID','payload','_threadCommentModel','reply','_threadCommentDataSourceService','length','delete','threadId','code','replyId','4gkybGG','users','/edit','stringify','resolveComment','map','717846nPdTsZ'];_0x5449=function(){return _0x1752c4;};return _0x5449();}
@@ -1,4 +1,4 @@
1
- export declare const PLUGIN_CONFIG_KEY = "thread-comment-data-source.config";
1
+ export declare const THREAD_COMMENT_DATA_SOURCE_PLUGIN_CONFIG_KEY = "thread-comment-data-source.config";
2
2
  export declare const configSymbol: unique symbol;
3
3
  export interface IUniverThreadCommentDataSourceConfig {
4
4
  }
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x7d39(){const _0x3de109=['error','876wUumos','add','/solved','_userService','post','_threadCommentDataSourceService','rangeId','solved','UniverProCollaborationClient','_init','8HlcAUt','personId','stringify','length','4791vjeJOZ','rxjs','parse','size','19070IyPlUE','getMemberID','symbol','amd','@univerjs/network','find','@univerjs/core','resolveComment','_initUserSync','CustomRangeType','_threadCommentDataSource','UserManagerService','exports','HTTPService','defineProperty','/universer-api/user/list','values','code','CollaborationSessionService','Edit','OpenOrReOpen','object','/list','11547nzSoYl','Solve','ThreadCommentModel','parentId','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','28554sXyLLa','requireSession','UniverProThreadCommentDatasource','@univerjs-pro/collaboration-client','Solved','addComment','replies','format','type','Plugin','UNRECOGNIZED','IThreadCommentDataSourceService','Add','/reply','_initDataSource','rangeType','502968DNUTip','slice','getUnit','_sessionService','get','syncUpdateMutationToColla','user','CommentService','_config','1149323mJkcSN','root','delete','Inject','UniverThreadCommentUIPlugin','threadId','getComment','map','setConfig','COMMENT','1073196HWXdsE','createTimestamp','@univerjs/thread-comment','UniverThreadComment','UniverCore','UniverProLicense','disposeWithMe','reply','addUser','UniverThreadCommentDataSourcePlugin','getUser','_threadCommentModel','getOwnPropertyDescriptor','onStarting','userID','Unknown','dataSource','content','users','/edit','YYYY/MM/DD\x20HH:mm','@univerjs/thread-comment-ui','UniverCollaborationClientPlugin','comments','body','_injector','onReady','_httpService','deleteComment','unitId','filter','UniverNetwork','forEach','userId','@univerjs-pro/license','dayjs','Delete','Injector','3114975QnSaiX','customRanges','/universer-api/comment/unit/','comment','Reply','updateComment','replyId','UniverLicensePlugin','pluginName','listComments','saveCommentToSnapshot','/add','subscribe','/delete','Disposable'];_0x7d39=function(){return _0x3de109;};return _0x7d39();}function _0x44c8(_0x2351ea,_0x48dcd2){const _0x7d3908=_0x7d39();return _0x44c8=function(_0x44c8a9,_0x2a1126){_0x44c8a9=_0x44c8a9-0xb9;let _0x3c93ef=_0x7d3908[_0x44c8a9];return _0x3c93ef;},_0x44c8(_0x2351ea,_0x48dcd2);}(function(_0x469347,_0x357ec6){const _0xf65cc=_0x44c8,_0x3cd131=_0x469347();while(!![]){try{const _0x3fdb83=-parseInt(_0xf65cc(0xd0))/0x1+-parseInt(_0xf65cc(0xf3))/0x2+parseInt(_0xf65cc(0x137))/0x3*(-parseInt(_0xf65cc(0x129))/0x4)+-parseInt(_0xf65cc(0x119))/0x5+-parseInt(_0xf65cc(0xe0))/0x6+parseInt(_0xf65cc(0xe9))/0x7*(-parseInt(_0xf65cc(0x133))/0x8)+parseInt(_0xf65cc(0xcb))/0x9*(parseInt(_0xf65cc(0x13b))/0xa);if(_0x3fdb83===_0x357ec6)break;else _0x3cd131['push'](_0x3cd131['shift']());}catch(_0x4ff261){_0x3cd131['push'](_0x3cd131['shift']());}}}(_0x7d39,0xa1526),function(_0x4a2b8a,_0x32b02c){const _0x441ad2=_0x44c8;typeof exports==_0x441ad2(0xc9)&&typeof module<'u'?_0x32b02c(exports,require('@univerjs/core'),require(_0x441ad2(0x108)),require(_0x441ad2(0xd3)),require(_0x441ad2(0x115)),require('@univerjs/thread-comment'),require(_0x441ad2(0x138)),require(_0x441ad2(0x13f))):typeof define=='function'&&define[_0x441ad2(0x13e)]?define([_0x441ad2(0xc0),_0x441ad2(0xba),'@univerjs/thread-comment-ui',_0x441ad2(0xd3),_0x441ad2(0x115),_0x441ad2(0xf5),_0x441ad2(0x138),'@univerjs/network'],_0x32b02c):(_0x4a2b8a=typeof globalThis<'u'?globalThis:_0x4a2b8a||self,_0x32b02c(_0x4a2b8a[_0x441ad2(0xd2)]={},_0x4a2b8a[_0x441ad2(0xf7)],_0x4a2b8a['UniverThreadCommentUi'],_0x4a2b8a[_0x441ad2(0x131)],_0x4a2b8a[_0x441ad2(0xf8)],_0x4a2b8a[_0x441ad2(0xf6)],_0x4a2b8a[_0x441ad2(0x138)],_0x4a2b8a[_0x441ad2(0x112)]));}(this,function(_0x192ce3,_0xf4f67d,_0x254044,_0x27eb00,_0x535dd6,_0x32d206,_0x56bc4f,_0x331a66){'use strict';const _0x5aeff8=_0x44c8;const _0xc1db27=_0x5aeff8(0xcf);var _0x5c92fb=(_0x392d9f=>(_0x392d9f[_0x392d9f[_0x5aeff8(0xc8)]=0x0]=_0x5aeff8(0xc8),_0x392d9f[_0x392d9f[_0x5aeff8(0xd4)]=0x1]=_0x5aeff8(0xd4),_0x392d9f[_0x392d9f['UNRECOGNIZED']=-0x1]=_0x5aeff8(0xda),_0x392d9f))(_0x5c92fb||{}),_0x476594=(_0x5eb5bb=>(_0x5eb5bb[_0x5eb5bb['Unknown']=0x0]=_0x5aeff8(0x102),_0x5eb5bb[_0x5eb5bb[_0x5aeff8(0xdc)]=0x1]='Add',_0x5eb5bb[_0x5eb5bb[_0x5aeff8(0x11d)]=0x2]=_0x5aeff8(0x11d),_0x5eb5bb[_0x5eb5bb['Edit']=0x3]=_0x5aeff8(0xc7),_0x5eb5bb[_0x5eb5bb[_0x5aeff8(0x117)]=0x4]=_0x5aeff8(0x117),_0x5eb5bb[_0x5eb5bb[_0x5aeff8(0xcc)]=0x5]=_0x5aeff8(0xcc),_0x5eb5bb[_0x5eb5bb[_0x5aeff8(0xda)]=-0x1]=_0x5aeff8(0xda),_0x5eb5bb))(_0x476594||{});const _0x576504=_0x4e6f03=>_0xf4f67d[_0x5aeff8(0x116)](new Date(+_0x4e6f03))[_0x5aeff8(0xd7)](_0x5aeff8(0x107)),_0x195dbc=async(_0x56bfeb,_0x9fde91)=>{const _0x17345d=_0x5aeff8,_0x51f734=_0x56bfeb[_0x17345d(0xe4)](_0xf4f67d[_0x17345d(0xbf)]),_0x4cf4b9=_0x56bfeb['get'](_0x331a66[_0x17345d(0xc1)]);_0x9fde91[_0x17345d(0x113)](_0x5214a9=>{const _0x3b9143=_0x17345d;_0x51f734[_0x3b9143(0xfd)](_0x5214a9)&&_0x9fde91[_0x3b9143(0xeb)](_0x5214a9);}),_0x9fde91[_0x17345d(0x13a)]&&(await _0x4cf4b9[_0x17345d(0xe4)](_0x17345d(0xc3),{'params':{'userIDs':[..._0x9fde91]}}))[_0x17345d(0x10b)][_0x17345d(0x105)][_0x17345d(0x113)](_0x92e85f=>{const _0x19139a=_0x17345d;_0x92e85f&&_0x51f734[_0x19139a(0xfb)](_0x92e85f);});};var _0x1184be=Object[_0x5aeff8(0xc2)],_0x32a0a7=Object[_0x5aeff8(0xff)],_0x208816=(_0x15a9b0,_0x5092c5,_0x129ab5,_0x375558)=>{const _0x2a541f=_0x5aeff8;for(var _0x5bbbbc=_0x375558>0x1?void 0x0:_0x375558?_0x32a0a7(_0x5092c5,_0x129ab5):_0x5092c5,_0x43397d=_0x15a9b0[_0x2a541f(0x136)]-0x1,_0x534181;_0x43397d>=0x0;_0x43397d--)(_0x534181=_0x15a9b0[_0x43397d])&&(_0x5bbbbc=(_0x375558?_0x534181(_0x5092c5,_0x129ab5,_0x5bbbbc):_0x534181(_0x5bbbbc))||_0x5bbbbc);return _0x375558&&_0x5bbbbc&&_0x1184be(_0x5092c5,_0x129ab5,_0x5bbbbc),_0x5bbbbc;},_0x4029b5=(_0x30defd,_0x198a32)=>(_0x1bc6ae,_0x535ae6)=>_0x198a32(_0x1bc6ae,_0x535ae6,_0x30defd);let _0x45c1c8=class extends _0xf4f67d[_0x5aeff8(0x127)]{constructor(_0x3860f8,_0x242088,_0x42b8d5,_0x43bb00){const _0x3a7274=_0x5aeff8;super(),this['_commentService']=_0x3860f8,this[_0x3a7274(0xfe)]=_0x242088,this[_0x3a7274(0x12c)]=_0x42b8d5,this[_0x3a7274(0x10c)]=_0x43bb00,this[_0x3a7274(0x132)](),this['_initUserSync']();}[_0x5aeff8(0xbc)](){const _0x2e19e1=_0x5aeff8;this[_0x2e19e1(0xf9)](this[_0x2e19e1(0xfe)]['commentUpdate$']['pipe'](_0x56bc4f['bufferTime'](0x10))['subscribe'](_0x7b6b81=>{const _0x4f0ebe=_0x2e19e1,_0x27f3d6=new Set();_0x7b6b81[_0x4f0ebe(0x113)](_0x4cba9f=>{const _0x5baec4=_0x4f0ebe;switch(_0x4cba9f[_0x5baec4(0xd8)]){case _0x5baec4(0x12a):{const _0x18b431=_0x4cba9f['payload'][_0x5baec4(0x134)];_0x27f3d6['add'](_0x18b431);break;}}}),_0x195dbc(this[_0x4f0ebe(0x10c)],_0x27f3d6);}));}[_0x5aeff8(0x132)](){const _0x57441f=_0x5aeff8;this[_0x57441f(0xf9)](this['_commentService']['commentUpdate$'][_0x57441f(0x125)](async _0x167e96=>{const _0x205f91=_0x57441f;var _0x3ade61,_0x53f6d8,_0x2569d3,_0x203555;const _0x28656a=(_0x3ade61=this[_0x205f91(0xfe)][_0x205f91(0xe2)](_0x167e96[_0x205f91(0x110)])[_0x205f91(0xb9)](_0x1a2a63=>_0x1a2a63['threadId']===_0x167e96[_0x205f91(0xee)]))==null?void 0x0:_0x3ade61['root'];if(!_0x28656a)return;const {unitId:_0x97bc10,subUnitId:_0x50f39c}=_0x28656a;switch(_0x167e96['user']&&this[_0x205f91(0x12c)][_0x205f91(0xfb)](_0x167e96[_0x205f91(0xe6)]),_0x167e96[_0x205f91(0xd8)]){case _0x476594[_0x205f91(0xdc)]:break;case _0x476594[_0x205f91(0x11d)]:{this[_0x205f91(0xfe)][_0x205f91(0xd5)](_0x97bc10,_0x50f39c,{'unitId':_0x97bc10,'subUnitId':_0x50f39c,'ref':'','id':_0x167e96[_0x205f91(0x11f)],'dT':_0x576504(+_0x167e96['createTimestamp']),'threadId':_0x167e96[_0x205f91(0xee)],'personId':(_0x2569d3=(_0x53f6d8=_0x167e96[_0x205f91(0xe6)])==null?void 0x0:_0x53f6d8['userID'])!=null?_0x2569d3:_0x167e96[_0x205f91(0x114)],'text':JSON['parse'](_0x167e96[_0x205f91(0x104)]),'parentId':_0x28656a['id']});break;}case _0x476594[_0x205f91(0x117)]:{const _0x4d1351=this[_0x205f91(0xfe)][_0x205f91(0xef)](_0x97bc10,_0x50f39c,_0x167e96['replyId']);_0x4d1351&&_0x4d1351[_0x205f91(0xce)]&&this[_0x205f91(0xfe)][_0x205f91(0x10f)](_0x97bc10,_0x50f39c,_0x167e96['replyId']);break;}case _0x476594['Edit']:{this['_threadCommentModel'][_0x205f91(0x11e)](_0x97bc10,_0x50f39c,{'commentId':_0x167e96[_0x205f91(0x11f)],'text':JSON[_0x205f91(0x139)](_0x167e96[_0x205f91(0x104)])});break;}case _0x476594[_0x205f91(0xcc)]:{const _0x1f72c9=(_0x203555=this[_0x205f91(0xfe)]['getUnit'](_0x167e96['unitId'])[_0x205f91(0xb9)](_0x172ab7=>_0x172ab7[_0x205f91(0xee)]===_0x167e96[_0x205f91(0xee)]))==null?void 0x0:_0x203555[_0x205f91(0xea)];_0x1f72c9&&this[_0x205f91(0xfe)][_0x205f91(0xbb)](_0x97bc10,_0x50f39c,_0x1f72c9['id'],_0x167e96['solved']===_0x5c92fb['Solved']);break;}}}));}};_0x45c1c8=_0x208816([_0x4029b5(0x0,_0xf4f67d[_0x5aeff8(0xec)](_0x27eb00[_0x5aeff8(0xe7)])),_0x4029b5(0x1,_0xf4f67d[_0x5aeff8(0xec)](_0x32d206[_0x5aeff8(0xcd)])),_0x4029b5(0x2,_0xf4f67d[_0x5aeff8(0xec)](_0xf4f67d['UserManagerService'])),_0x4029b5(0x3,_0xf4f67d[_0x5aeff8(0xec)](_0xf4f67d[_0x5aeff8(0x118)]))],_0x45c1c8);const _0x2e3a69='thread-comment-data-source.config',_0x35b116={};var _0x3d1511=Object[_0x5aeff8(0xc2)],_0xb4946d=Object['getOwnPropertyDescriptor'],_0x2aa8e8=(_0x40c2fe,_0x1b28d3,_0x37b6b5,_0x553b9d)=>{const _0x726920=_0x5aeff8;for(var _0x6bbf1d=_0x553b9d>0x1?void 0x0:_0x553b9d?_0xb4946d(_0x1b28d3,_0x37b6b5):_0x1b28d3,_0x316ceb=_0x40c2fe[_0x726920(0x136)]-0x1,_0x3931ce;_0x316ceb>=0x0;_0x316ceb--)(_0x3931ce=_0x40c2fe[_0x316ceb])&&(_0x6bbf1d=(_0x553b9d?_0x3931ce(_0x1b28d3,_0x37b6b5,_0x6bbf1d):_0x3931ce(_0x6bbf1d))||_0x6bbf1d);return _0x553b9d&&_0x6bbf1d&&_0x3d1511(_0x1b28d3,_0x37b6b5,_0x6bbf1d),_0x6bbf1d;},_0x396cd8=(_0x3f5471,_0x359e90)=>(_0x5b7a46,_0x163760)=>_0x359e90(_0x5b7a46,_0x163760,_0x3f5471);function _0x44a8ec(_0x44cf7c,_0x1abb54){const _0x255a0f=_0x5aeff8,_0x177c31=_0x44cf7c['replies'][0x0];return{..._0x1abb54,'id':_0x177c31['replyId'],'resolved':_0x44cf7c[_0x255a0f(0x130)]===0x1,'dT':_0x576504(_0x177c31[_0x255a0f(0xf4)]),'personId':_0x177c31['userId'],'threadId':_0x177c31[_0x255a0f(0xee)]};}function _0x1e4d72(_0x3e86a7,_0x50eee2,_0x45a3ef){const _0x15b4f0=_0x5aeff8;var _0x2ece5a,_0x72e5eb;if(((_0x72e5eb=(_0x2ece5a=_0x3e86a7==null?void 0x0:_0x3e86a7[_0x15b4f0(0xd6)])==null?void 0x0:_0x2ece5a['length'])!=null?_0x72e5eb:0x0)>0x0){const _0xa8bed=(_0x27e631,_0x43faf6)=>({'id':_0x27e631[_0x15b4f0(0x11f)],'threadId':_0x27e631[_0x15b4f0(0xee)],'dT':_0x576504(_0x27e631[_0x15b4f0(0xf4)]),'personId':_0x27e631[_0x15b4f0(0x114)],'resolved':_0x3e86a7[_0x15b4f0(0x130)]===_0x5c92fb[_0x15b4f0(0xd4)],'unitId':_0x50eee2,'subUnitId':_0x45a3ef,'text':JSON['parse'](_0x27e631[_0x15b4f0(0x104)]),'parentId':_0x43faf6}),_0x4be7f8=_0xa8bed(_0x3e86a7[_0x15b4f0(0xd6)][0x0]);return{..._0x4be7f8,'children':_0x3e86a7['replies'][_0x15b4f0(0xe1)](0x1)[_0x15b4f0(0xf0)](_0x456ace=>_0xa8bed(_0x456ace,_0x4be7f8['id']))};}return null;}let _0x5e5b96=class{constructor(_0x12ac92,_0x2546db,_0x412f3f,_0xa95d71){const _0x2fc1c9=_0x5aeff8;this[_0x2fc1c9(0x10e)]=_0x12ac92,this[_0x2fc1c9(0x12c)]=_0x2546db,this[_0x2fc1c9(0xe3)]=_0x412f3f,this[_0x2fc1c9(0x10c)]=_0xa95d71;}async[_0x5aeff8(0xd5)](_0x5d7d43){const _0x374c82=_0x5aeff8;var _0x65ccc5,_0x10df3c;const {parentId:_0x5eceb5,unitId:_0x36d314,text:_0x46ddd5,threadId:_0x37110b}=_0x5d7d43,_0x4886fb=(_0x10df3c=(_0x65ccc5=_0x46ddd5['customRanges'])==null?void 0x0:_0x65ccc5[_0x374c82(0x111)](_0x2a396e=>_0x2a396e[_0x374c82(0xdf)]===_0xf4f67d[_0x374c82(0xbd)][_0x374c82(0xf2)])['map'](_0x33f5d8=>_0x33f5d8[_0x374c82(0x12f)]))!=null?_0x10df3c:[],_0x19ada9=JSON['stringify'](_0x46ddd5),_0x39bc5e=(await this['_sessionService'][_0x374c82(0xd1)](_0x36d314))[_0x374c82(0x13c)]();if(_0x5eceb5){const _0x53c62a={'memberId':_0x39bc5e,'unitId':_0x36d314,'content':_0x19ada9,'mention':_0x4886fb,'threadId':_0x37110b},_0x52b75c=(await this['_httpService'][_0x374c82(0x12d)](_0x374c82(0x11b)+_0x36d314+_0x374c82(0xdd),{'body':_0x53c62a}))[_0x374c82(0x10b)][_0x374c82(0xfa)];return{..._0x5d7d43,'id':_0x52b75c[_0x374c82(0x11f)],'dT':_0xf4f67d['dayjs'](+_0x52b75c['createTimestamp'])[_0x374c82(0xd7)](_0x374c82(0x107)),'personId':_0x52b75c[_0x374c82(0x114)]};}else{const _0x3cb3bf={'memberId':_0x39bc5e,'unitId':_0x36d314,'content':_0x19ada9,'mention':_0x4886fb},_0x3a29f1=await this[_0x374c82(0x10e)][_0x374c82(0x12d)](_0x374c82(0x11b)+_0x36d314+_0x374c82(0x124),{'body':_0x3cb3bf});return _0x44a8ec(_0x3a29f1['body'][_0x374c82(0x11c)],_0x5d7d43);}}async[_0x5aeff8(0x11e)](_0x220c0d){const _0x2e2794=_0x5aeff8;var _0x3293c9,_0x1e8292;const {text:_0x4219e3,unitId:_0x5db17f}=_0x220c0d,_0x3044dc=(_0x1e8292=(_0x3293c9=_0x4219e3[_0x2e2794(0x11a)])==null?void 0x0:_0x3293c9['filter'](_0x377bf8=>_0x377bf8[_0x2e2794(0xdf)]===_0xf4f67d[_0x2e2794(0xbd)][_0x2e2794(0xf2)])[_0x2e2794(0xf0)](_0x81ea29=>_0x81ea29[_0x2e2794(0x12f)]))!=null?_0x1e8292:[],_0x65e11e=JSON[_0x2e2794(0x135)](_0x4219e3),_0x2b10b4=_0x220c0d['threadId'],_0x2b7fd7=_0x220c0d['id'],_0x1aa1f7={'memberId':(await this[_0x2e2794(0xe3)][_0x2e2794(0xd1)](_0x5db17f))[_0x2e2794(0x13c)](),'unitId':_0x5db17f,'threadId':_0x2b10b4,'mention':_0x3044dc,'content':_0x65e11e,'replyId':_0x2b7fd7},_0x1332f0=await this['_httpService'][_0x2e2794(0x12d)](_0x2e2794(0x11b)+_0x5db17f+_0x2e2794(0x106),{'body':_0x1aa1f7});return!_0x1332f0[_0x2e2794(0x10b)][_0x2e2794(0x128)]||_0x1332f0[_0x2e2794(0x10b)][_0x2e2794(0x128)][_0x2e2794(0xc5)]===0x1;}async[_0x5aeff8(0xbb)](_0xf9240d){const _0x35567f=_0x5aeff8,{unitId:_0x3689d8}=_0xf9240d,_0x415203=_0xf9240d[_0x35567f(0xee)],_0x4f6684={'memberId':this[_0x35567f(0x12c)]['getCurrentUser']()[_0x35567f(0x101)],'unitId':_0x3689d8,'threadId':_0x415203,'solved':_0xf9240d['resolved']?_0x5c92fb['Solved']:_0x5c92fb[_0x35567f(0xc8)]},_0x448be4=await this['_httpService']['post'](_0x35567f(0x11b)+_0x3689d8+_0x35567f(0x12b),{'body':_0x4f6684});return!_0x448be4[_0x35567f(0x10b)]['error']||_0x448be4[_0x35567f(0x10b)][_0x35567f(0x128)][_0x35567f(0xc5)]===0x1;}async[_0x5aeff8(0x10f)](_0x18c585,_0x2e5701,_0x342a78,_0x2849bd){const _0x123e3a=_0x5aeff8,_0x8f5aaa={'memberId':(await this[_0x123e3a(0xe3)][_0x123e3a(0xd1)](_0x18c585))[_0x123e3a(0x13c)](),'threadId':_0x342a78,'replyId':_0x2849bd,'unitId':_0x18c585},_0x28415f=await this[_0x123e3a(0x10e)][_0x123e3a(0x12d)](_0x123e3a(0x11b)+_0x18c585+_0x123e3a(0x126),{'body':_0x8f5aaa});return!_0x28415f[_0x123e3a(0x10b)][_0x123e3a(0x128)]||_0x28415f[_0x123e3a(0x10b)][_0x123e3a(0x128)]['code']===0x1;}async[_0x5aeff8(0x122)](_0x1db0c1,_0x4a3ff9,_0x206779){const _0x23a3d4=_0x5aeff8,_0x8cb771={'unitId':_0x1db0c1,'threadId':_0x206779},_0x181848=await this[_0x23a3d4(0x10e)][_0x23a3d4(0x12d)](_0x23a3d4(0x11b)+_0x1db0c1+_0x23a3d4(0xca),{'body':_0x8cb771}),_0x78646=_0x206779[_0x23a3d4(0xf0)](_0x3b2ace=>_0x1e4d72(_0x181848[_0x23a3d4(0x10b)][_0x23a3d4(0x10a)][_0x3b2ace],_0x1db0c1,_0x4a3ff9))[_0x23a3d4(0x111)](Boolean);return Object[_0x23a3d4(0xc4)](_0x181848[_0x23a3d4(0x10b)][_0x23a3d4(0x105)])[_0x23a3d4(0x113)](_0x5a5f4e=>{const _0x3394df=_0x23a3d4;this[_0x3394df(0x12c)][_0x3394df(0xfb)](_0x5a5f4e);}),_0x78646;}[_0x5aeff8(0x123)](_0x343f64){const _0x37bf03=_0x5aeff8;return{'id':_0x343f64['id'],'threadId':_0x343f64[_0x37bf03(0xee)],'ref':_0x343f64['ref']};}};_0x5e5b96=_0x2aa8e8([_0x396cd8(0x0,_0xf4f67d[_0x5aeff8(0xec)](_0x331a66[_0x5aeff8(0xc1)])),_0x396cd8(0x1,_0xf4f67d['Inject'](_0xf4f67d[_0x5aeff8(0xbf)])),_0x396cd8(0x2,_0xf4f67d[_0x5aeff8(0xec)](_0x27eb00[_0x5aeff8(0xc6)])),_0x396cd8(0x3,_0xf4f67d[_0x5aeff8(0xec)](_0xf4f67d[_0x5aeff8(0x118)]))],_0x5e5b96);var _0x1d13b9=Object[_0x5aeff8(0xc2)],_0x4ec1c8=Object[_0x5aeff8(0xff)],_0x5ec1e5=(_0x534ece,_0x30c4e0,_0x19d36e,_0x242597)=>{const _0x3a4742=_0x5aeff8;for(var _0x4e8c1a=_0x242597>0x1?void 0x0:_0x242597?_0x4ec1c8(_0x30c4e0,_0x19d36e):_0x30c4e0,_0x335cbe=_0x534ece[_0x3a4742(0x136)]-0x1,_0x4f6600;_0x335cbe>=0x0;_0x335cbe--)(_0x4f6600=_0x534ece[_0x335cbe])&&(_0x4e8c1a=(_0x242597?_0x4f6600(_0x30c4e0,_0x19d36e,_0x4e8c1a):_0x4f6600(_0x4e8c1a))||_0x4e8c1a);return _0x242597&&_0x4e8c1a&&_0x1d13b9(_0x30c4e0,_0x19d36e,_0x4e8c1a),_0x4e8c1a;},_0x38ecf5=(_0x493c9b,_0x192352)=>(_0x3e47b8,_0x148520)=>_0x192352(_0x3e47b8,_0x148520,_0x493c9b);let _0x33813d=class extends _0xf4f67d[_0x5aeff8(0x127)]{constructor(_0x404762,_0x5e6d38){const _0x7e4413=_0x5aeff8;super(),this[_0x7e4413(0x12e)]=_0x404762,this[_0x7e4413(0xbe)]=_0x5e6d38,this['_initDataSource']();}[_0x5aeff8(0xde)](){const _0x25b94d=_0x5aeff8;this[_0x25b94d(0x12e)][_0x25b94d(0x103)]=this[_0x25b94d(0xbe)],this[_0x25b94d(0x12e)][_0x25b94d(0xe5)]=!0x1;}};_0x33813d=_0x5ec1e5([_0x38ecf5(0x0,_0x32d206[_0x5aeff8(0xdb)]),_0x38ecf5(0x1,_0xf4f67d[_0x5aeff8(0xec)](_0x5e5b96))],_0x33813d);var _0x17c322=Object[_0x5aeff8(0xc2)],_0x20e5e8=Object[_0x5aeff8(0xff)],_0x43558e=(_0x3f2daa,_0x5ea24d,_0x1d1aa1)=>_0x5ea24d in _0x3f2daa?_0x17c322(_0x3f2daa,_0x5ea24d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d1aa1}):_0x3f2daa[_0x5ea24d]=_0x1d1aa1,_0x2926bb=(_0x5cceb2,_0x420987,_0x1e6aab,_0x5464b9)=>{const _0x3edca0=_0x5aeff8;for(var _0x1da13a=_0x5464b9>0x1?void 0x0:_0x5464b9?_0x20e5e8(_0x420987,_0x1e6aab):_0x420987,_0x522934=_0x5cceb2[_0x3edca0(0x136)]-0x1,_0x19d42b;_0x522934>=0x0;_0x522934--)(_0x19d42b=_0x5cceb2[_0x522934])&&(_0x1da13a=(_0x5464b9?_0x19d42b(_0x420987,_0x1e6aab,_0x1da13a):_0x19d42b(_0x1da13a))||_0x1da13a);return _0x5464b9&&_0x1da13a&&_0x17c322(_0x420987,_0x1e6aab,_0x1da13a),_0x1da13a;},_0x58c35d=(_0x3d3f99,_0x1a3eb3)=>(_0x5298d4,_0x114857)=>_0x1a3eb3(_0x5298d4,_0x114857,_0x3d3f99),_0x11b0bb=(_0x200955,_0x46be30,_0x23348c)=>_0x43558e(_0x200955,typeof _0x46be30!=_0x5aeff8(0x13d)?_0x46be30+'':_0x46be30,_0x23348c);_0x192ce3[_0x5aeff8(0xfc)]=class extends _0xf4f67d[_0x5aeff8(0xd9)]{constructor(_0x2553ef=_0x35b116,_0x1dd615,_0x155c76){const _0x14c0e0=_0x5aeff8;super(),this['_config']=_0x2553ef,this[_0x14c0e0(0x10c)]=_0x1dd615,this['_configService']=_0x155c76;const {..._0xe04405}=this[_0x14c0e0(0xe8)];this['_configService'][_0x14c0e0(0xf1)](_0x2e3a69,_0xe04405);}[_0x5aeff8(0x100)](){const _0x4f2e66=_0x5aeff8;[[_0x5e5b96],[_0x33813d],[_0x45c1c8]][_0x4f2e66(0x113)](_0x2519ed=>{this['_injector']['add'](_0x2519ed);});}[_0x5aeff8(0x10d)](){const _0x12bf43=_0x5aeff8;this[_0x12bf43(0x10c)][_0x12bf43(0xe4)](_0x33813d),this[_0x12bf43(0x10c)]['get'](_0x45c1c8);}},_0x11b0bb(_0x192ce3[_0x5aeff8(0xfc)],_0x5aeff8(0x121),_0xc1db27),_0x11b0bb(_0x192ce3[_0x5aeff8(0xfc)],'type',_0xf4f67d['UniverInstanceType']['UNIVER_UNKNOWN']),_0x192ce3[_0x5aeff8(0xfc)]=_0x2926bb([_0xf4f67d['DependentOn'](_0x254044[_0x5aeff8(0xed)],_0x27eb00[_0x5aeff8(0x109)],_0x535dd6[_0x5aeff8(0x120)]),_0x58c35d(0x1,_0xf4f67d[_0x5aeff8(0xec)](_0xf4f67d[_0x5aeff8(0x118)])),_0x58c35d(0x2,_0xf4f67d['IConfigService'])],_0x192ce3[_0x5aeff8(0xfc)]),Object['defineProperty'](_0x192ce3,Symbol['toStringTag'],{'value':'Module'});}));
1
+ function _0x4218(){const _0x27145b=['/universer-api/user/list','getComment','object','HTTPService','unitId','Solved','Add','@univerjs/core','_threadCommentDataSourceService','UniverThreadComment','275BPHlQk','length','format','type','Injector','_initDataSource','replyId','addUser','add','Plugin','UniverThreadCommentUi','onReady','map','UniverLicensePlugin','_threadCommentDataSource','deleteComment','Solve','rangeId','COMMENT','payload','ref','_sessionService','resolveComment','symbol','14539URCYnM','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','1672206yNXOiE','pluginName','content','saveCommentToSnapshot','exports','defineProperty','userId','_configService','42808QQpeVF','body','listComments','parse','personId','delete','UniverThreadCommentDataSourcePlugin','UniverCore','getUser','/solved','get','bufferTime','_httpService','_initUserSync','addComment','/list','users','/edit','1997545FdXMer','CollaborationSessionService','UniverInstanceType','filter','46kmqFeD','9vpVfEE','_injector','Module','subscribe','createTimestamp','updateComment','reply','toStringTag','_commentService','UniverCollaborationClientPlugin','/reply','stringify','Edit','Delete','7090712yAvFaQ','post','/universer-api/comment/unit/','amd','@univerjs-pro/license','customRanges','UNIVER_UNKNOWN','Disposable','UniverNetwork','rxjs','Unknown','Inject','user','comments','root','onStarting','Reply','requireSession','code','slice','UniverProCollaborationClient','@univerjs/thread-comment-ui','solved','parentId','values','21TfBMqp','size','getMemberID','UserManagerService','_userService','function','error','UNRECOGNIZED','thread-comment-data-source.config','comment','YYYY/MM/DD\x20HH:mm','_threadCommentModel','958600vkWsOE','CustomRangeType','IThreadCommentDataSourceService','pipe','IConfigService','CommentService','setConfig','@univerjs-pro/collaboration-client','_init','syncUpdateMutationToColla','OpenOrReOpen','dayjs','forEach','replies','getUnit','threadId','251445UhRvjr','find','getOwnPropertyDescriptor','rangeType','commentUpdate$','@univerjs/thread-comment','UniverProLicense','_config','/delete'];_0x4218=function(){return _0x27145b;};return _0x4218();}function _0x529c(_0x461b5a,_0x5a4aa0){const _0x42180b=_0x4218();return _0x529c=function(_0x529c71,_0x3ce98c){_0x529c71=_0x529c71-0xea;let _0x84d9b5=_0x42180b[_0x529c71];return _0x84d9b5;},_0x529c(_0x461b5a,_0x5a4aa0);}(function(_0x2b6c94,_0x4c2740){const _0x567db1=_0x529c,_0x580f66=_0x2b6c94();while(!![]){try{const _0x227dbc=parseInt(_0x567db1(0x14c))/0x1*(parseInt(_0x567db1(0x16c))/0x2)+-parseInt(_0x567db1(0x121))/0x3+-parseInt(_0x567db1(0x156))/0x4*(-parseInt(_0x567db1(0x134))/0x5)+parseInt(_0x567db1(0x14e))/0x6*(parseInt(_0x567db1(0x105))/0x7)+parseInt(_0x567db1(0xec))/0x8*(-parseInt(_0x567db1(0x16d))/0x9)+-parseInt(_0x567db1(0x111))/0xa+-parseInt(_0x567db1(0x168))/0xb;if(_0x227dbc===_0x4c2740)break;else _0x580f66['push'](_0x580f66['shift']());}catch(_0x216f56){_0x580f66['push'](_0x580f66['shift']());}}}(_0x4218,0x7ce0d),function(_0x539fa5,_0x444189){const _0x48ab7f=_0x529c;typeof exports==_0x48ab7f(0x12c)&&typeof module<'u'?_0x444189(exports,require(_0x48ab7f(0x118)),require(_0x48ab7f(0xf0)),require(_0x48ab7f(0x131)),require(_0x48ab7f(0x101)),require(_0x48ab7f(0x126)),require(_0x48ab7f(0xf5)),require('@univerjs/network')):typeof define==_0x48ab7f(0x10a)&&define[_0x48ab7f(0xef)]?define([_0x48ab7f(0x152),_0x48ab7f(0x118),_0x48ab7f(0xf0),_0x48ab7f(0x131),_0x48ab7f(0x101),_0x48ab7f(0x126),_0x48ab7f(0xf5),'@univerjs/network'],_0x444189):(_0x539fa5=typeof globalThis<'u'?globalThis:_0x539fa5||self,_0x444189(_0x539fa5['UniverProThreadCommentDatasource']={},_0x539fa5[_0x48ab7f(0x100)],_0x539fa5[_0x48ab7f(0x127)],_0x539fa5[_0x48ab7f(0x15d)],_0x539fa5[_0x48ab7f(0x13e)],_0x539fa5[_0x48ab7f(0x133)],_0x539fa5[_0x48ab7f(0xf5)],_0x539fa5[_0x48ab7f(0xf4)]));}(this,function(_0x589b2d,_0x18f121,_0x11f48a,_0x4f6d1e,_0x43a49e,_0xb0304f,_0x2619c6,_0x222017){'use strict';const _0x1bd4f3=_0x529c;const _0x3f063c=_0x1bd4f3(0x14d);var _0x1ae90b=(_0x3aa550=>(_0x3aa550[_0x3aa550[_0x1bd4f3(0x11b)]=0x0]=_0x1bd4f3(0x11b),_0x3aa550[_0x3aa550['Solved']=0x1]=_0x1bd4f3(0x12f),_0x3aa550[_0x3aa550[_0x1bd4f3(0x10c)]=-0x1]=_0x1bd4f3(0x10c),_0x3aa550))(_0x1ae90b||{}),_0x12d8c0=(_0x3a83f6=>(_0x3a83f6[_0x3a83f6['Unknown']=0x0]=_0x1bd4f3(0xf6),_0x3a83f6[_0x3a83f6['Add']=0x1]=_0x1bd4f3(0x130),_0x3a83f6[_0x3a83f6[_0x1bd4f3(0xfc)]=0x2]=_0x1bd4f3(0xfc),_0x3a83f6[_0x3a83f6['Edit']=0x3]='Edit',_0x3a83f6[_0x3a83f6[_0x1bd4f3(0xeb)]=0x4]=_0x1bd4f3(0xeb),_0x3a83f6[_0x3a83f6[_0x1bd4f3(0x144)]=0x5]=_0x1bd4f3(0x144),_0x3a83f6[_0x3a83f6[_0x1bd4f3(0x10c)]=-0x1]=_0x1bd4f3(0x10c),_0x3a83f6))(_0x12d8c0||{});const _0x32ad5b=_0x58c34d=>_0x4f6d1e[_0x1bd4f3(0x11c)](new Date(+_0x58c34d))[_0x1bd4f3(0x136)](_0x1bd4f3(0x10f)),_0x1ddc7f=async(_0x4ec333,_0x1277d6)=>{const _0x65d601=_0x1bd4f3,_0x16a650=_0x4ec333[_0x65d601(0x160)](_0x4f6d1e[_0x65d601(0x108)]),_0x363b78=_0x4ec333[_0x65d601(0x160)](_0x222017[_0x65d601(0x12d)]);_0x1277d6[_0x65d601(0x11d)](_0x4a0ca8=>{const _0x1b791f=_0x65d601;_0x16a650[_0x1b791f(0x15e)](_0x4a0ca8)&&_0x1277d6[_0x1b791f(0x15b)](_0x4a0ca8);}),_0x1277d6[_0x65d601(0x106)]&&(await _0x363b78[_0x65d601(0x160)](_0x65d601(0x12a),{'params':{'userIDs':[..._0x1277d6]}}))[_0x65d601(0x157)][_0x65d601(0x166)]['forEach'](_0x355969=>{const _0x390083=_0x65d601;_0x355969&&_0x16a650[_0x390083(0x13b)](_0x355969);});};var _0x339582=Object['defineProperty'],_0x5eeab1=Object[_0x1bd4f3(0x123)],_0x386c47=(_0x3449a3,_0x5d5e1d,_0x528f4f,_0x18124a)=>{const _0x5b3765=_0x1bd4f3;for(var _0x43567f=_0x18124a>0x1?void 0x0:_0x18124a?_0x5eeab1(_0x5d5e1d,_0x528f4f):_0x5d5e1d,_0x89b382=_0x3449a3[_0x5b3765(0x135)]-0x1,_0x3a91f9;_0x89b382>=0x0;_0x89b382--)(_0x3a91f9=_0x3449a3[_0x89b382])&&(_0x43567f=(_0x18124a?_0x3a91f9(_0x5d5e1d,_0x528f4f,_0x43567f):_0x3a91f9(_0x43567f))||_0x43567f);return _0x18124a&&_0x43567f&&_0x339582(_0x5d5e1d,_0x528f4f,_0x43567f),_0x43567f;},_0xf8c003=(_0x428d84,_0x5adfce)=>(_0xe89c18,_0x4d88d2)=>_0x5adfce(_0xe89c18,_0x4d88d2,_0x428d84);let _0x11eb1b=class extends _0x4f6d1e[_0x1bd4f3(0xf3)]{constructor(_0xb4912b,_0x426a2a,_0x442135,_0x211a54){const _0x3b9364=_0x1bd4f3;super(),this['_commentService']=_0xb4912b,this['_threadCommentModel']=_0x426a2a,this[_0x3b9364(0x109)]=_0x442135,this[_0x3b9364(0x16e)]=_0x211a54,this[_0x3b9364(0x119)](),this['_initUserSync']();}[_0x1bd4f3(0x163)](){const _0x45e963=_0x1bd4f3;this['disposeWithMe'](this[_0x45e963(0x110)][_0x45e963(0x125)][_0x45e963(0x114)](_0x2619c6[_0x45e963(0x161)](0x10))[_0x45e963(0x170)](_0x432550=>{const _0x2f049f=_0x45e963,_0x26989e=new Set();_0x432550['forEach'](_0x4c1436=>{const _0x1b7317=_0x529c;switch(_0x4c1436[_0x1b7317(0x137)]){case'add':{const _0x39660a=_0x4c1436[_0x1b7317(0x147)][_0x1b7317(0x15a)];_0x26989e[_0x1b7317(0x13c)](_0x39660a);break;}}}),_0x1ddc7f(this[_0x2f049f(0x16e)],_0x26989e);}));}[_0x1bd4f3(0x119)](){const _0x1f95b1=_0x1bd4f3;this['disposeWithMe'](this[_0x1f95b1(0x175)][_0x1f95b1(0x125)]['subscribe'](async _0x75d644=>{const _0x50489d=_0x1f95b1;var _0x3c5e16,_0x1debe8,_0x40db67,_0x10f1cd;const _0x37667f=(_0x3c5e16=this[_0x50489d(0x110)][_0x50489d(0x11f)](_0x75d644[_0x50489d(0x12e)])['find'](_0x5b7179=>_0x5b7179[_0x50489d(0x120)]===_0x75d644[_0x50489d(0x120)]))==null?void 0x0:_0x3c5e16[_0x50489d(0xfa)];if(!_0x37667f)return;const {unitId:_0x539c56,subUnitId:_0x450bb0}=_0x37667f;switch(_0x75d644['user']&&this['_userService'][_0x50489d(0x13b)](_0x75d644[_0x50489d(0xf8)]),_0x75d644[_0x50489d(0x137)]){case _0x12d8c0[_0x50489d(0x130)]:break;case _0x12d8c0[_0x50489d(0xfc)]:{this[_0x50489d(0x110)][_0x50489d(0x164)](_0x539c56,_0x450bb0,{'unitId':_0x539c56,'subUnitId':_0x450bb0,'ref':'','id':_0x75d644[_0x50489d(0x13a)],'dT':_0x32ad5b(+_0x75d644['createTimestamp']),'threadId':_0x75d644[_0x50489d(0x120)],'personId':(_0x40db67=(_0x1debe8=_0x75d644[_0x50489d(0xf8)])==null?void 0x0:_0x1debe8['userID'])!=null?_0x40db67:_0x75d644[_0x50489d(0x154)],'text':JSON['parse'](_0x75d644[_0x50489d(0x150)]),'parentId':_0x37667f['id']});break;}case _0x12d8c0[_0x50489d(0xeb)]:{const _0x476af9=this[_0x50489d(0x110)][_0x50489d(0x12b)](_0x539c56,_0x450bb0,_0x75d644[_0x50489d(0x13a)]);_0x476af9&&_0x476af9[_0x50489d(0x103)]&&this['_threadCommentModel'][_0x50489d(0x143)](_0x539c56,_0x450bb0,_0x75d644['replyId']);break;}case _0x12d8c0[_0x50489d(0xea)]:{this[_0x50489d(0x110)][_0x50489d(0x172)](_0x539c56,_0x450bb0,{'commentId':_0x75d644['replyId'],'text':JSON[_0x50489d(0x159)](_0x75d644[_0x50489d(0x150)])});break;}case _0x12d8c0[_0x50489d(0x144)]:{const _0x4bfddf=(_0x10f1cd=this[_0x50489d(0x110)][_0x50489d(0x11f)](_0x75d644[_0x50489d(0x12e)])[_0x50489d(0x122)](_0x2c625b=>_0x2c625b[_0x50489d(0x120)]===_0x75d644['threadId']))==null?void 0x0:_0x10f1cd['root'];_0x4bfddf&&this[_0x50489d(0x110)][_0x50489d(0x14a)](_0x539c56,_0x450bb0,_0x4bfddf['id'],_0x75d644['solved']===_0x1ae90b[_0x50489d(0x12f)]);break;}}}));}};_0x11eb1b=_0x386c47([_0xf8c003(0x0,_0x4f6d1e[_0x1bd4f3(0xf7)](_0x18f121[_0x1bd4f3(0x116)])),_0xf8c003(0x1,_0x4f6d1e[_0x1bd4f3(0xf7)](_0xb0304f['ThreadCommentModel'])),_0xf8c003(0x2,_0x4f6d1e[_0x1bd4f3(0xf7)](_0x4f6d1e[_0x1bd4f3(0x108)])),_0xf8c003(0x3,_0x4f6d1e['Inject'](_0x4f6d1e[_0x1bd4f3(0x138)]))],_0x11eb1b);const _0x4a61aa=_0x1bd4f3(0x10d),_0x1e96ed={};var _0x5acda8=Object[_0x1bd4f3(0x153)],_0x154254=Object[_0x1bd4f3(0x123)],_0x1ca029=(_0x116c39,_0x267566,_0x4df617,_0x14e7b0)=>{const _0x4f9c61=_0x1bd4f3;for(var _0x10433f=_0x14e7b0>0x1?void 0x0:_0x14e7b0?_0x154254(_0x267566,_0x4df617):_0x267566,_0x15a9a3=_0x116c39[_0x4f9c61(0x135)]-0x1,_0x497a0e;_0x15a9a3>=0x0;_0x15a9a3--)(_0x497a0e=_0x116c39[_0x15a9a3])&&(_0x10433f=(_0x14e7b0?_0x497a0e(_0x267566,_0x4df617,_0x10433f):_0x497a0e(_0x10433f))||_0x10433f);return _0x14e7b0&&_0x10433f&&_0x5acda8(_0x267566,_0x4df617,_0x10433f),_0x10433f;},_0x384208=(_0x4abc30,_0x2bffc4)=>(_0x4c9706,_0x5d146c)=>_0x2bffc4(_0x4c9706,_0x5d146c,_0x4abc30);function _0x1a559a(_0x5d060a,_0x3ce309){const _0x211345=_0x1bd4f3,_0x3f0088=_0x5d060a[_0x211345(0x11e)][0x0];return{..._0x3ce309,'id':_0x3f0088['replyId'],'resolved':_0x5d060a[_0x211345(0x102)]===0x1,'dT':_0x32ad5b(_0x3f0088[_0x211345(0x171)]),'personId':_0x3f0088[_0x211345(0x154)],'threadId':_0x3f0088['threadId']};}function _0x54dcf0(_0x1385fc,_0x31e2c1,_0x9bf18e){const _0x3aeecc=_0x1bd4f3;var _0x4c61df,_0x24b558;if(((_0x24b558=(_0x4c61df=_0x1385fc==null?void 0x0:_0x1385fc['replies'])==null?void 0x0:_0x4c61df[_0x3aeecc(0x135)])!=null?_0x24b558:0x0)>0x0){const _0x422d3e=(_0x5bc40d,_0x15075d)=>({'id':_0x5bc40d[_0x3aeecc(0x13a)],'threadId':_0x5bc40d[_0x3aeecc(0x120)],'dT':_0x32ad5b(_0x5bc40d['createTimestamp']),'personId':_0x5bc40d[_0x3aeecc(0x154)],'resolved':_0x1385fc[_0x3aeecc(0x102)]===_0x1ae90b[_0x3aeecc(0x12f)],'unitId':_0x31e2c1,'subUnitId':_0x9bf18e,'text':JSON[_0x3aeecc(0x159)](_0x5bc40d[_0x3aeecc(0x150)]),'parentId':_0x15075d}),_0x457d39=_0x422d3e(_0x1385fc[_0x3aeecc(0x11e)][0x0]);return{..._0x457d39,'children':_0x1385fc[_0x3aeecc(0x11e)][_0x3aeecc(0xff)](0x1)[_0x3aeecc(0x140)](_0x155858=>_0x422d3e(_0x155858,_0x457d39['id']))};}return null;}let _0xc14cec=class{constructor(_0x3060fb,_0x1bae04,_0x2b5a32,_0x3bb51d){const _0x4da34=_0x1bd4f3;this[_0x4da34(0x162)]=_0x3060fb,this[_0x4da34(0x109)]=_0x1bae04,this[_0x4da34(0x149)]=_0x2b5a32,this[_0x4da34(0x16e)]=_0x3bb51d;}async[_0x1bd4f3(0x164)](_0x12e856){const _0x4bf82f=_0x1bd4f3;var _0x3b9a8e,_0x3fa3c9;const {parentId:_0x27ef5c,unitId:_0x36c0d8,text:_0x25c85a,threadId:_0x12b7d}=_0x12e856,_0x59dfb6=(_0x3fa3c9=(_0x3b9a8e=_0x25c85a[_0x4bf82f(0xf1)])==null?void 0x0:_0x3b9a8e[_0x4bf82f(0x16b)](_0xef26ab=>_0xef26ab[_0x4bf82f(0x124)]===_0x4f6d1e[_0x4bf82f(0x112)][_0x4bf82f(0x146)])[_0x4bf82f(0x140)](_0x32737e=>_0x32737e['rangeId']))!=null?_0x3fa3c9:[],_0x4b3aab=JSON[_0x4bf82f(0x178)](_0x25c85a),_0x325497=(await this[_0x4bf82f(0x149)]['requireSession'](_0x36c0d8))[_0x4bf82f(0x107)]();if(_0x27ef5c){const _0xea3fdf={'memberId':_0x325497,'unitId':_0x36c0d8,'content':_0x4b3aab,'mention':_0x59dfb6,'threadId':_0x12b7d},_0x4d82fe=(await this[_0x4bf82f(0x162)]['post'](_0x4bf82f(0xee)+_0x36c0d8+_0x4bf82f(0x177),{'body':_0xea3fdf}))['body'][_0x4bf82f(0x173)];return{..._0x12e856,'id':_0x4d82fe[_0x4bf82f(0x13a)],'dT':_0x4f6d1e[_0x4bf82f(0x11c)](+_0x4d82fe[_0x4bf82f(0x171)])['format'](_0x4bf82f(0x10f)),'personId':_0x4d82fe[_0x4bf82f(0x154)]};}else{const _0x599e24={'memberId':_0x325497,'unitId':_0x36c0d8,'content':_0x4b3aab,'mention':_0x59dfb6},_0x425542=await this[_0x4bf82f(0x162)][_0x4bf82f(0xed)]('/universer-api/comment/unit/'+_0x36c0d8+'/add',{'body':_0x599e24});return _0x1a559a(_0x425542['body'][_0x4bf82f(0x10e)],_0x12e856);}}async['updateComment'](_0x55ed90){const _0x47828a=_0x1bd4f3;var _0x5ed0c2,_0x447743;const {text:_0x4c61d9,unitId:_0x1f589b}=_0x55ed90,_0x12bf55=(_0x447743=(_0x5ed0c2=_0x4c61d9['customRanges'])==null?void 0x0:_0x5ed0c2[_0x47828a(0x16b)](_0x46d569=>_0x46d569[_0x47828a(0x124)]===_0x4f6d1e[_0x47828a(0x112)][_0x47828a(0x146)])[_0x47828a(0x140)](_0x4edd9c=>_0x4edd9c[_0x47828a(0x145)]))!=null?_0x447743:[],_0x4426fd=JSON[_0x47828a(0x178)](_0x4c61d9),_0x4175ae=_0x55ed90[_0x47828a(0x120)],_0x1a9a4c=_0x55ed90['id'],_0xa992f9={'memberId':(await this['_sessionService']['requireSession'](_0x1f589b))[_0x47828a(0x107)](),'unitId':_0x1f589b,'threadId':_0x4175ae,'mention':_0x12bf55,'content':_0x4426fd,'replyId':_0x1a9a4c},_0x55a85d=await this[_0x47828a(0x162)][_0x47828a(0xed)](_0x47828a(0xee)+_0x1f589b+_0x47828a(0x167),{'body':_0xa992f9});return!_0x55a85d['body'][_0x47828a(0x10b)]||_0x55a85d[_0x47828a(0x157)][_0x47828a(0x10b)]['code']===0x1;}async[_0x1bd4f3(0x14a)](_0x180b41){const _0x824a3e=_0x1bd4f3,{unitId:_0x2b4ef8}=_0x180b41,_0x548a2c=_0x180b41[_0x824a3e(0x120)],_0x5d896c={'memberId':this[_0x824a3e(0x109)]['getCurrentUser']()['userID'],'unitId':_0x2b4ef8,'threadId':_0x548a2c,'solved':_0x180b41['resolved']?_0x1ae90b[_0x824a3e(0x12f)]:_0x1ae90b[_0x824a3e(0x11b)]},_0x59b543=await this[_0x824a3e(0x162)]['post']('/universer-api/comment/unit/'+_0x2b4ef8+_0x824a3e(0x15f),{'body':_0x5d896c});return!_0x59b543[_0x824a3e(0x157)][_0x824a3e(0x10b)]||_0x59b543[_0x824a3e(0x157)][_0x824a3e(0x10b)][_0x824a3e(0xfe)]===0x1;}async[_0x1bd4f3(0x143)](_0x3fb0a2,_0x1f1771,_0x12d10c,_0x506725){const _0x5d4fe0=_0x1bd4f3,_0x3f7b5a={'memberId':(await this[_0x5d4fe0(0x149)][_0x5d4fe0(0xfd)](_0x3fb0a2))[_0x5d4fe0(0x107)](),'threadId':_0x12d10c,'replyId':_0x506725,'unitId':_0x3fb0a2},_0x42b2e7=await this[_0x5d4fe0(0x162)]['post']('/universer-api/comment/unit/'+_0x3fb0a2+_0x5d4fe0(0x129),{'body':_0x3f7b5a});return!_0x42b2e7[_0x5d4fe0(0x157)]['error']||_0x42b2e7[_0x5d4fe0(0x157)][_0x5d4fe0(0x10b)][_0x5d4fe0(0xfe)]===0x1;}async[_0x1bd4f3(0x158)](_0x27890c,_0x16aa08,_0x5a0f21){const _0x5e57d3=_0x1bd4f3,_0x2211d2={'unitId':_0x27890c,'threadId':_0x5a0f21},_0x4a5e54=await this['_httpService']['post']('/universer-api/comment/unit/'+_0x27890c+_0x5e57d3(0x165),{'body':_0x2211d2}),_0x3e94ec=_0x5a0f21[_0x5e57d3(0x140)](_0x2ed579=>_0x54dcf0(_0x4a5e54[_0x5e57d3(0x157)][_0x5e57d3(0xf9)][_0x2ed579],_0x27890c,_0x16aa08))['filter'](Boolean);return Object[_0x5e57d3(0x104)](_0x4a5e54[_0x5e57d3(0x157)][_0x5e57d3(0x166)])[_0x5e57d3(0x11d)](_0x5c3b7b=>{const _0xc1ea27=_0x5e57d3;this[_0xc1ea27(0x109)][_0xc1ea27(0x13b)](_0x5c3b7b);}),_0x3e94ec;}[_0x1bd4f3(0x151)](_0x3840cc){const _0x3a4da9=_0x1bd4f3;return{'id':_0x3840cc['id'],'threadId':_0x3840cc[_0x3a4da9(0x120)],'ref':_0x3840cc[_0x3a4da9(0x148)]};}};_0xc14cec=_0x1ca029([_0x384208(0x0,_0x4f6d1e['Inject'](_0x222017[_0x1bd4f3(0x12d)])),_0x384208(0x1,_0x4f6d1e[_0x1bd4f3(0xf7)](_0x4f6d1e[_0x1bd4f3(0x108)])),_0x384208(0x2,_0x4f6d1e['Inject'](_0x18f121[_0x1bd4f3(0x169)])),_0x384208(0x3,_0x4f6d1e[_0x1bd4f3(0xf7)](_0x4f6d1e['Injector']))],_0xc14cec);var _0x2c8974=Object[_0x1bd4f3(0x153)],_0x49b74c=Object['getOwnPropertyDescriptor'],_0x378042=(_0x591a75,_0x3ab7aa,_0xbbb4c7,_0x13c5af)=>{const _0x454cb5=_0x1bd4f3;for(var _0x80766a=_0x13c5af>0x1?void 0x0:_0x13c5af?_0x49b74c(_0x3ab7aa,_0xbbb4c7):_0x3ab7aa,_0x2e86e0=_0x591a75[_0x454cb5(0x135)]-0x1,_0xe5ec9b;_0x2e86e0>=0x0;_0x2e86e0--)(_0xe5ec9b=_0x591a75[_0x2e86e0])&&(_0x80766a=(_0x13c5af?_0xe5ec9b(_0x3ab7aa,_0xbbb4c7,_0x80766a):_0xe5ec9b(_0x80766a))||_0x80766a);return _0x13c5af&&_0x80766a&&_0x2c8974(_0x3ab7aa,_0xbbb4c7,_0x80766a),_0x80766a;},_0x5a86e5=(_0x217cda,_0x50d2fa)=>(_0x404a4f,_0x50207a)=>_0x50d2fa(_0x404a4f,_0x50207a,_0x217cda);let _0x22d1ba=class extends _0x4f6d1e[_0x1bd4f3(0xf3)]{constructor(_0x28f403,_0x522922){const _0x518d38=_0x1bd4f3;super(),this[_0x518d38(0x132)]=_0x28f403,this[_0x518d38(0x142)]=_0x522922,this[_0x518d38(0x139)]();}[_0x1bd4f3(0x139)](){const _0x2aa6b8=_0x1bd4f3;this['_threadCommentDataSourceService']['dataSource']=this[_0x2aa6b8(0x142)],this[_0x2aa6b8(0x132)][_0x2aa6b8(0x11a)]=!0x1;}};_0x22d1ba=_0x378042([_0x5a86e5(0x0,_0xb0304f[_0x1bd4f3(0x113)]),_0x5a86e5(0x1,_0x4f6d1e[_0x1bd4f3(0xf7)](_0xc14cec))],_0x22d1ba);var _0x2e44d2=Object['defineProperty'],_0x1f996c=Object[_0x1bd4f3(0x123)],_0x2b63da=(_0xf0b82a,_0x31a815,_0x58c86e)=>_0x31a815 in _0xf0b82a?_0x2e44d2(_0xf0b82a,_0x31a815,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58c86e}):_0xf0b82a[_0x31a815]=_0x58c86e,_0x5312bb=(_0x50090f,_0x26c763,_0x1b0927,_0x38ba87)=>{const _0x47bbe9=_0x1bd4f3;for(var _0x297442=_0x38ba87>0x1?void 0x0:_0x38ba87?_0x1f996c(_0x26c763,_0x1b0927):_0x26c763,_0x548ad1=_0x50090f[_0x47bbe9(0x135)]-0x1,_0x536a06;_0x548ad1>=0x0;_0x548ad1--)(_0x536a06=_0x50090f[_0x548ad1])&&(_0x297442=(_0x38ba87?_0x536a06(_0x26c763,_0x1b0927,_0x297442):_0x536a06(_0x297442))||_0x297442);return _0x38ba87&&_0x297442&&_0x2e44d2(_0x26c763,_0x1b0927,_0x297442),_0x297442;},_0x8b1825=(_0x1c339d,_0x5287d2)=>(_0xbb330f,_0x4548a9)=>_0x5287d2(_0xbb330f,_0x4548a9,_0x1c339d),_0x101810=(_0x593b39,_0x192f6b,_0x342c55)=>_0x2b63da(_0x593b39,typeof _0x192f6b!=_0x1bd4f3(0x14b)?_0x192f6b+'':_0x192f6b,_0x342c55);_0x589b2d[_0x1bd4f3(0x15c)]=class extends _0x4f6d1e[_0x1bd4f3(0x13d)]{constructor(_0x3435b4=_0x1e96ed,_0x24b181,_0x526cb9){const _0x226b54=_0x1bd4f3;super(),this[_0x226b54(0x128)]=_0x3435b4,this[_0x226b54(0x16e)]=_0x24b181,this[_0x226b54(0x155)]=_0x526cb9;const {..._0x2c72ca}=this[_0x226b54(0x128)];this[_0x226b54(0x155)][_0x226b54(0x117)](_0x4a61aa,_0x2c72ca);}[_0x1bd4f3(0xfb)](){[[_0xc14cec],[_0x22d1ba],[_0x11eb1b]]['forEach'](_0x3d38aa=>{const _0x5dd0e7=_0x529c;this[_0x5dd0e7(0x16e)][_0x5dd0e7(0x13c)](_0x3d38aa);});}[_0x1bd4f3(0x13f)](){const _0x1bd42a=_0x1bd4f3;this[_0x1bd42a(0x16e)]['get'](_0x22d1ba),this[_0x1bd42a(0x16e)][_0x1bd42a(0x160)](_0x11eb1b);}},_0x101810(_0x589b2d['UniverThreadCommentDataSourcePlugin'],_0x1bd4f3(0x14f),_0x3f063c),_0x101810(_0x589b2d[_0x1bd4f3(0x15c)],_0x1bd4f3(0x137),_0x4f6d1e[_0x1bd4f3(0x16a)][_0x1bd4f3(0xf2)]),_0x589b2d[_0x1bd4f3(0x15c)]=_0x5312bb([_0x4f6d1e['DependentOn'](_0x43a49e['UniverThreadCommentUIPlugin'],_0x18f121[_0x1bd4f3(0x176)],_0x11f48a[_0x1bd4f3(0x141)]),_0x8b1825(0x1,_0x4f6d1e['Inject'](_0x4f6d1e[_0x1bd4f3(0x138)])),_0x8b1825(0x2,_0x4f6d1e[_0x1bd4f3(0x115)])],_0x589b2d[_0x1bd4f3(0x15c)]),Object['defineProperty'](_0x589b2d,Symbol[_0x1bd4f3(0x174)],{'value':_0x1bd4f3(0x16f)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/thread-comment-datasource",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -45,20 +45,20 @@
45
45
  "rxjs": ">=7.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "@univerjs-pro/collaboration-client": "0.5.0",
49
- "@univerjs-pro/license": "0.5.0",
50
- "@univerjs/core": "0.5.0",
51
- "@univerjs/network": "0.5.0",
52
- "@univerjs/protocol": "0.1.39-alpha.45",
53
- "@univerjs/thread-comment": "0.5.0",
54
- "@univerjs/thread-comment-ui": "0.5.0"
48
+ "@univerjs-pro/collaboration-client": "0.5.1",
49
+ "@univerjs/core": "0.5.1",
50
+ "@univerjs-pro/license": "0.5.1",
51
+ "@univerjs/thread-comment": "0.5.1",
52
+ "@univerjs/protocol": "0.1.39",
53
+ "@univerjs/thread-comment-ui": "0.5.1",
54
+ "@univerjs/network": "0.5.1"
55
55
  },
56
56
  "devDependencies": {
57
57
  "rxjs": "^7.8.1",
58
- "typescript": "^5.6.3",
59
- "vite": "^5.4.11",
60
- "vitest": "^2.1.5",
61
- "@univerjs-infra/shared": "0.5.0"
58
+ "typescript": "^5.7.2",
59
+ "vite": "^6.0.0",
60
+ "vitest": "^2.1.6",
61
+ "@univerjs-infra/shared": "0.5.1"
62
62
  },
63
63
  "space": {
64
64
  ".": {