@univerjs-pro/thread-comment-datasource 0.5.0 → 0.5.1-nightly.202411301606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/controllers/config.schema.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
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 _0x5ae6a1=_0x2d68;(function(_0x5cbfed,_0x6b9d7c){const _0x2fbe6d=_0x2d68,_0x119f08=_0x5cbfed();while(!![]){try{const _0x24c949=parseInt(_0x2fbe6d(0xd4))/0x1+parseInt(_0x2fbe6d(0x101))/0x2+parseInt(_0x2fbe6d(0xb5))/0x3*(-parseInt(_0x2fbe6d(0xc6))/0x4)+-parseInt(_0x2fbe6d(0x97))/0x5+-parseInt(_0x2fbe6d(0x108))/0x6*(parseInt(_0x2fbe6d(0xfa))/0x7)+-parseInt(_0x2fbe6d(0x8d))/0x8+parseInt(_0x2fbe6d(0x104))/0x9*(parseInt(_0x2fbe6d(0xd9))/0xa);if(_0x24c949===_0x6b9d7c)break;else _0x119f08['push'](_0x119f08['shift']());}catch(_0x58dc03){_0x119f08['push'](_0x119f08['shift']());}}}(_0x2814,0x75159));Object[_0x5ae6a1(0xd1)](exports,Symbol[_0x5ae6a1(0xe3)],{'value':_0x5ae6a1(0x8b)});const C=require('@univerjs-pro/collaboration-client'),N=require(_0x5ae6a1(0xab)),c=require(_0x5ae6a1(0xec)),T=require(_0x5ae6a1(0xaf)),y=require(_0x5ae6a1(0xd2)),w=require('rxjs'),P=require(_0x5ae6a1(0xc3)),U=_0x5ae6a1(0xad);var I=(_0x4e3723=>(_0x4e3723[_0x4e3723[_0x5ae6a1(0xc4)]=0x0]=_0x5ae6a1(0xc4),_0x4e3723[_0x4e3723['Solved']=0x1]='Solved',_0x4e3723[_0x4e3723['UNRECOGNIZED']=-0x1]=_0x5ae6a1(0xfd),_0x4e3723))(I||{}),v=(_0x21fbc1=>(_0x21fbc1[_0x21fbc1[_0x5ae6a1(0xc1)]=0x0]=_0x5ae6a1(0xc1),_0x21fbc1[_0x21fbc1['Add']=0x1]=_0x5ae6a1(0xd3),_0x21fbc1[_0x21fbc1[_0x5ae6a1(0xfc)]=0x2]='Reply',_0x21fbc1[_0x21fbc1[_0x5ae6a1(0xcd)]=0x3]=_0x5ae6a1(0xcd),_0x21fbc1[_0x21fbc1[_0x5ae6a1(0xd5)]=0x4]=_0x5ae6a1(0xd5),_0x21fbc1[_0x21fbc1[_0x5ae6a1(0x91)]=0x5]=_0x5ae6a1(0x91),_0x21fbc1[_0x21fbc1[_0x5ae6a1(0xfd)]=-0x1]='UNRECOGNIZED',_0x21fbc1))(v||{});const g=_0x58cb3a=>c[_0x5ae6a1(0xea)](new Date(+_0x58cb3a))[_0x5ae6a1(0xb6)](_0x5ae6a1(0xc8)),R=async(_0x1c599b,_0xe36871)=>{const _0x36c82d=_0x5ae6a1,_0x7c7147=_0x1c599b[_0x36c82d(0x9c)](c['UserManagerService']),_0x134173=_0x1c599b[_0x36c82d(0x9c)](P[_0x36c82d(0xed)]);_0xe36871[_0x36c82d(0xac)](_0x3109ac=>{_0x7c7147['getUser'](_0x3109ac)&&_0xe36871['delete'](_0x3109ac);}),_0xe36871[_0x36c82d(0x8a)]&&(await _0x134173[_0x36c82d(0x9c)](_0x36c82d(0xb2),{'params':{'userIDs':[..._0xe36871]}}))[_0x36c82d(0xb8)][_0x36c82d(0x9e)][_0x36c82d(0xac)](_0x586c48=>{const _0xc8b1e1=_0x36c82d;_0x586c48&&_0x7c7147[_0xc8b1e1(0xeb)](_0x586c48);});};function _0x2d68(_0x57e56b,_0x1050f6){const _0x281440=_0x2814();return _0x2d68=function(_0x2d68a0,_0x4092dc){_0x2d68a0=_0x2d68a0-0x88;let _0x3bb412=_0x281440[_0x2d68a0];return _0x3bb412;},_0x2d68(_0x57e56b,_0x1050f6);}var $=Object['defineProperty'],E=Object[_0x5ae6a1(0xce)],q=(_0x21891d,_0x163729,_0x3cf80d,_0x3fb585)=>{for(var _0xe59d50=_0x3fb585>0x1?void 0x0:_0x3fb585?E(_0x163729,_0x3cf80d):_0x163729,_0xc1ea04=_0x21891d['length']-0x1,_0x4f7d3e;_0xc1ea04>=0x0;_0xc1ea04--)(_0x4f7d3e=_0x21891d[_0xc1ea04])&&(_0xe59d50=(_0x3fb585?_0x4f7d3e(_0x163729,_0x3cf80d,_0xe59d50):_0x4f7d3e(_0xe59d50))||_0xe59d50);return _0x3fb585&&_0xe59d50&&$(_0x163729,_0x3cf80d,_0xe59d50),_0xe59d50;},_=(_0x3e17dd,_0x5a8e57)=>(_0xaaf8f2,_0x49bca0)=>_0x5a8e57(_0xaaf8f2,_0x49bca0,_0x3e17dd);let S=class extends c[_0x5ae6a1(0xf8)]{constructor(_0x5e99ec,_0xa365c0,_0x1d4915,_0x28699f){const _0x39bea9=_0x5ae6a1;super(),this[_0x39bea9(0xa1)]=_0x5e99ec,this[_0x39bea9(0xe0)]=_0xa365c0,this[_0x39bea9(0xa6)]=_0x1d4915,this[_0x39bea9(0x95)]=_0x28699f,this[_0x39bea9(0xc9)](),this[_0x39bea9(0xc7)]();}[_0x5ae6a1(0xc7)](){const _0x462e7b=_0x5ae6a1;this[_0x462e7b(0xd6)](this[_0x462e7b(0xe0)][_0x462e7b(0xf0)][_0x462e7b(0xa7)](w[_0x462e7b(0x99)](0x10))['subscribe'](_0x1405f8=>{const _0x543645=_0x462e7b,_0x4fe950=new Set();_0x1405f8['forEach'](_0x5ca9a7=>{const _0x4ec073=_0x2d68;switch(_0x5ca9a7[_0x4ec073(0xdf)]){case _0x4ec073(0xbe):{const _0xdffdb0=_0x5ca9a7['payload'][_0x4ec073(0x92)];_0x4fe950[_0x4ec073(0xbe)](_0xdffdb0);break;}}}),R(this[_0x543645(0x95)],_0x4fe950);}));}[_0x5ae6a1(0xc9)](){const _0x5c0c65=_0x5ae6a1;this[_0x5c0c65(0xd6)](this[_0x5c0c65(0xa1)]['commentUpdate$'][_0x5c0c65(0xdc)](async _0x5af3b8=>{const _0x2ec107=_0x5c0c65;var _0x364beb,_0x37b149,_0x5b4f0e,_0x38484f;const _0x2cb6ce=(_0x364beb=this[_0x2ec107(0xe0)]['getUnit'](_0x5af3b8[_0x2ec107(0xa5)])[_0x2ec107(0xb0)](_0x49cbad=>_0x49cbad[_0x2ec107(0xca)]===_0x5af3b8['threadId']))==null?void 0x0:_0x364beb[_0x2ec107(0xf1)];if(!_0x2cb6ce)return;const {unitId:_0x1b8f2c,subUnitId:_0x5a9081}=_0x2cb6ce;switch(_0x5af3b8['user']&&this['_userService'][_0x2ec107(0xeb)](_0x5af3b8['user']),_0x5af3b8[_0x2ec107(0xdf)]){case v['Add']:break;case v[_0x2ec107(0xfc)]:{this[_0x2ec107(0xe0)][_0x2ec107(0x100)](_0x1b8f2c,_0x5a9081,{'unitId':_0x1b8f2c,'subUnitId':_0x5a9081,'ref':'','id':_0x5af3b8[_0x2ec107(0xf2)],'dT':g(+_0x5af3b8[_0x2ec107(0xa8)]),'threadId':_0x5af3b8[_0x2ec107(0xca)],'personId':(_0x5b4f0e=(_0x37b149=_0x5af3b8[_0x2ec107(0xda)])==null?void 0x0:_0x37b149[_0x2ec107(0xf6)])!=null?_0x5b4f0e:_0x5af3b8[_0x2ec107(0x102)],'text':JSON[_0x2ec107(0xdb)](_0x5af3b8[_0x2ec107(0xf7)]),'parentId':_0x2cb6ce['id']});break;}case v[_0x2ec107(0xd5)]:{const _0x5a9422=this[_0x2ec107(0xe0)]['getComment'](_0x1b8f2c,_0x5a9081,_0x5af3b8['replyId']);_0x5a9422&&_0x5a9422[_0x2ec107(0xaa)]&&this[_0x2ec107(0xe0)][_0x2ec107(0xba)](_0x1b8f2c,_0x5a9081,_0x5af3b8[_0x2ec107(0xf2)]);break;}case v[_0x2ec107(0xcd)]:{this[_0x2ec107(0xe0)][_0x2ec107(0xfb)](_0x1b8f2c,_0x5a9081,{'commentId':_0x5af3b8[_0x2ec107(0xf2)],'text':JSON[_0x2ec107(0xdb)](_0x5af3b8['content'])});break;}case v['Solve']:{const _0x375269=(_0x38484f=this[_0x2ec107(0xe0)][_0x2ec107(0xf3)](_0x5af3b8['unitId'])[_0x2ec107(0xb0)](_0x4c4800=>_0x4c4800[_0x2ec107(0xca)]===_0x5af3b8[_0x2ec107(0xca)]))==null?void 0x0:_0x38484f['root'];_0x375269&&this['_threadCommentModel'][_0x2ec107(0xee)](_0x1b8f2c,_0x5a9081,_0x375269['id'],_0x5af3b8['solved']===I['Solved']);break;}}}));}};S=q([_(0x0,c['Inject'](C[_0x5ae6a1(0x9a)])),_(0x1,c[_0x5ae6a1(0x8f)](y['ThreadCommentModel'])),_(0x2,c[_0x5ae6a1(0x8f)](c[_0x5ae6a1(0xf5)])),_(0x3,c[_0x5ae6a1(0x8f)](c[_0x5ae6a1(0x107)]))],S);const A=_0x5ae6a1(0x9f),x={};var Y=Object[_0x5ae6a1(0xd1)],G=Object[_0x5ae6a1(0xce)],H=(_0xbbc7a3,_0x2d64f2,_0x1fc58e,_0x54e768)=>{for(var _0x84c70c=_0x54e768>0x1?void 0x0:_0x54e768?G(_0x2d64f2,_0x1fc58e):_0x2d64f2,_0x379023=_0xbbc7a3['length']-0x1,_0x253fce;_0x379023>=0x0;_0x379023--)(_0x253fce=_0xbbc7a3[_0x379023])&&(_0x84c70c=(_0x54e768?_0x253fce(_0x2d64f2,_0x1fc58e,_0x84c70c):_0x253fce(_0x84c70c))||_0x84c70c);return _0x54e768&&_0x84c70c&&Y(_0x2d64f2,_0x1fc58e,_0x84c70c),_0x84c70c;},p=(_0x24304e,_0xdd30d1)=>(_0x5b7e78,_0x1ff503)=>_0xdd30d1(_0x5b7e78,_0x1ff503,_0x24304e);function J(_0x4cab93,_0x24035a){const _0x4f12c0=_0x5ae6a1,_0x25758a=_0x4cab93[_0x4f12c0(0xcf)][0x0];return{..._0x24035a,'id':_0x25758a[_0x4f12c0(0xf2)],'resolved':_0x4cab93[_0x4f12c0(0x9d)]===0x1,'dT':g(_0x25758a[_0x4f12c0(0xa8)]),'personId':_0x25758a[_0x4f12c0(0x102)],'threadId':_0x25758a[_0x4f12c0(0xca)]};}function F(_0x3b0626,_0xf5d7db,_0x588e58){const _0x23aea5=_0x5ae6a1;var _0x17cb50,_0x24ca1;if(((_0x24ca1=(_0x17cb50=_0x3b0626==null?void 0x0:_0x3b0626[_0x23aea5(0xcf)])==null?void 0x0:_0x17cb50[_0x23aea5(0xb9)])!=null?_0x24ca1:0x0)>0x0){const _0x308bce=(_0x279831,_0x46a78b)=>({'id':_0x279831['replyId'],'threadId':_0x279831[_0x23aea5(0xca)],'dT':g(_0x279831[_0x23aea5(0xa8)]),'personId':_0x279831[_0x23aea5(0x102)],'resolved':_0x3b0626[_0x23aea5(0x9d)]===I[_0x23aea5(0x88)],'unitId':_0xf5d7db,'subUnitId':_0x588e58,'text':JSON['parse'](_0x279831[_0x23aea5(0xf7)]),'parentId':_0x46a78b}),_0x2456c0=_0x308bce(_0x3b0626[_0x23aea5(0xcf)][0x0]);return{..._0x2456c0,'children':_0x3b0626[_0x23aea5(0xcf)][_0x23aea5(0xbb)](0x1)[_0x23aea5(0xd8)](_0x1cf3ca=>_0x308bce(_0x1cf3ca,_0x2456c0['id']))};}return null;}let f=class{constructor(_0x5ef03a,_0x1816d1,_0x57cea6,_0x316794){const _0x4ae1c3=_0x5ae6a1;this['_httpService']=_0x5ef03a,this[_0x4ae1c3(0xa6)]=_0x1816d1,this[_0x4ae1c3(0xe9)]=_0x57cea6,this[_0x4ae1c3(0x95)]=_0x316794;}async[_0x5ae6a1(0x100)](_0x1610d1){const _0x38b013=_0x5ae6a1;var _0x419aac,_0x491791;const {parentId:_0x1b9c71,unitId:_0x37b8a5,text:_0x533eae,threadId:_0x1c22d7}=_0x1610d1,_0x412190=(_0x491791=(_0x419aac=_0x533eae['customRanges'])==null?void 0x0:_0x419aac[_0x38b013(0xb3)](_0x302d31=>_0x302d31[_0x38b013(0xe6)]===c[_0x38b013(0xef)][_0x38b013(0xe2)])[_0x38b013(0xd8)](_0x5b4d65=>_0x5b4d65[_0x38b013(0xde)]))!=null?_0x491791:[],_0x4b726e=JSON[_0x38b013(0xbc)](_0x533eae),_0x1445b4=(await this['_sessionService'][_0x38b013(0x96)](_0x37b8a5))[_0x38b013(0xe8)]();if(_0x1b9c71){const _0x4360e3={'memberId':_0x1445b4,'unitId':_0x37b8a5,'content':_0x4b726e,'mention':_0x412190,'threadId':_0x1c22d7},_0x6e3fd=(await this[_0x38b013(0x90)][_0x38b013(0xdd)](_0x38b013(0x105)+_0x37b8a5+_0x38b013(0xb4),{'body':_0x4360e3}))['body'][_0x38b013(0xa2)];return{..._0x1610d1,'id':_0x6e3fd[_0x38b013(0xf2)],'dT':c[_0x38b013(0xea)](+_0x6e3fd[_0x38b013(0xa8)])[_0x38b013(0xb6)](_0x38b013(0xc8)),'personId':_0x6e3fd[_0x38b013(0x102)]};}else{const _0x231775={'memberId':_0x1445b4,'unitId':_0x37b8a5,'content':_0x4b726e,'mention':_0x412190},_0x5d44c4=await this['_httpService']['post'](_0x38b013(0x105)+_0x37b8a5+_0x38b013(0xfe),{'body':_0x231775});return J(_0x5d44c4['body'][_0x38b013(0xa4)],_0x1610d1);}}async[_0x5ae6a1(0xfb)](_0x128a0f){const _0x1363b4=_0x5ae6a1;var _0x480a6a,_0x3f781d;const {text:_0x56d4c4,unitId:_0x28fd06}=_0x128a0f,_0x5a8163=(_0x3f781d=(_0x480a6a=_0x56d4c4[_0x1363b4(0xcb)])==null?void 0x0:_0x480a6a[_0x1363b4(0xb3)](_0x122703=>_0x122703[_0x1363b4(0xe6)]===c['CustomRangeType'][_0x1363b4(0xe2)])[_0x1363b4(0xd8)](_0x11b85a=>_0x11b85a[_0x1363b4(0xde)]))!=null?_0x3f781d:[],_0x23a7a9=JSON['stringify'](_0x56d4c4),_0x5cb4a0=_0x128a0f['threadId'],_0x3c655b=_0x128a0f['id'],_0x52b088={'memberId':(await this['_sessionService'][_0x1363b4(0x96)](_0x28fd06))['getMemberID'](),'unitId':_0x28fd06,'threadId':_0x5cb4a0,'mention':_0x5a8163,'content':_0x23a7a9,'replyId':_0x3c655b},_0xbdd80b=await this[_0x1363b4(0x90)][_0x1363b4(0xdd)](_0x1363b4(0x105)+_0x28fd06+'/edit',{'body':_0x52b088});return!_0xbdd80b['body'][_0x1363b4(0x89)]||_0xbdd80b[_0x1363b4(0xb8)][_0x1363b4(0x89)][_0x1363b4(0x93)]===0x1;}async[_0x5ae6a1(0xee)](_0x48b7ce){const _0x4dccbd=_0x5ae6a1,{unitId:_0x217e1b}=_0x48b7ce,_0x7dae65=_0x48b7ce[_0x4dccbd(0xca)],_0x4474e7={'memberId':this[_0x4dccbd(0xa6)][_0x4dccbd(0xe5)]()[_0x4dccbd(0xf6)],'unitId':_0x217e1b,'threadId':_0x7dae65,'solved':_0x48b7ce[_0x4dccbd(0xc0)]?I[_0x4dccbd(0x88)]:I[_0x4dccbd(0xc4)]},_0x20c89b=await this['_httpService'][_0x4dccbd(0xdd)](_0x4dccbd(0x105)+_0x217e1b+'/solved',{'body':_0x4474e7});return!_0x20c89b[_0x4dccbd(0xb8)]['error']||_0x20c89b[_0x4dccbd(0xb8)][_0x4dccbd(0x89)][_0x4dccbd(0x93)]===0x1;}async['deleteComment'](_0x5d1229,_0x524db4,_0x43f342,_0x39d61f){const _0x40afa3=_0x5ae6a1,_0x24007b={'memberId':(await this['_sessionService'][_0x40afa3(0x96)](_0x5d1229))[_0x40afa3(0xe8)](),'threadId':_0x43f342,'replyId':_0x39d61f,'unitId':_0x5d1229},_0x1805b1=await this[_0x40afa3(0x90)][_0x40afa3(0xdd)](_0x40afa3(0x105)+_0x5d1229+_0x40afa3(0xd0),{'body':_0x24007b});return!_0x1805b1['body'][_0x40afa3(0x89)]||_0x1805b1['body'][_0x40afa3(0x89)][_0x40afa3(0x93)]===0x1;}async[_0x5ae6a1(0xbd)](_0x286e43,_0x22afe2,_0x5a0284){const _0x444dc4=_0x5ae6a1,_0x214636={'unitId':_0x286e43,'threadId':_0x5a0284},_0x22dfdd=await this[_0x444dc4(0x90)][_0x444dc4(0xdd)]('/universer-api/comment/unit/'+_0x286e43+_0x444dc4(0xa0),{'body':_0x214636}),_0x492cc3=_0x5a0284['map'](_0x869273=>F(_0x22dfdd[_0x444dc4(0xb8)][_0x444dc4(0x8e)][_0x869273],_0x286e43,_0x22afe2))[_0x444dc4(0xb3)](Boolean);return Object['values'](_0x22dfdd[_0x444dc4(0xb8)][_0x444dc4(0x9e)])[_0x444dc4(0xac)](_0x3589d7=>{const _0x1edb44=_0x444dc4;this[_0x1edb44(0xa6)]['addUser'](_0x3589d7);}),_0x492cc3;}[_0x5ae6a1(0xff)](_0x35d9c3){const _0x1d51a3=_0x5ae6a1;return{'id':_0x35d9c3['id'],'threadId':_0x35d9c3[_0x1d51a3(0xca)],'ref':_0x35d9c3[_0x1d51a3(0xbf)]};}};f=H([p(0x0,c[_0x5ae6a1(0x8f)](P[_0x5ae6a1(0xed)])),p(0x1,c['Inject'](c[_0x5ae6a1(0xf5)])),p(0x2,c[_0x5ae6a1(0x8f)](C[_0x5ae6a1(0xc2)])),p(0x3,c['Inject'](c[_0x5ae6a1(0x107)]))],f);function _0x2814(){const _0x5ccf75=['162SIUtzM','/universer-api/comment/unit/','dataSource','Injector','156mwsipV','_threadCommentDataSourceService','Solved','error','size','Module','UniverLicensePlugin','4179648cSUhOy','comments','Inject','_httpService','Solve','personId','code','pluginName','_injector','requireSession','1416085XvLhOj','UniverThreadCommentUIPlugin','bufferTime','CommentService','_threadCommentDataSource','get','solved','users','thread-comment-data-source.config','/list','_commentService','reply','_config','comment','unitId','_userService','pipe','createTimestamp','IConfigService','parentId','@univerjs-pro/license','forEach','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','UniverInstanceType','@univerjs/thread-comment-ui','find','_initDataSource','/universer-api/user/list','filter','/reply','111dkXVPO','format','onReady','body','length','deleteComment','slice','stringify','listComments','add','ref','resolved','Unknown','CollaborationSessionService','@univerjs/network','OpenOrReOpen','_configService','16472HNoJRQ','_initUserSync','YYYY/MM/DD\x20HH:mm','_init','threadId','customRanges','syncUpdateMutationToColla','Edit','getOwnPropertyDescriptor','replies','/delete','defineProperty','@univerjs/thread-comment','Add','79163wzlOnW','Delete','disposeWithMe','setConfig','map','763380ZdavIt','user','parse','subscribe','post','rangeId','type','_threadCommentModel','IThreadCommentDataSourceService','COMMENT','toStringTag','DependentOn','getCurrentUser','rangeType','UniverCollaborationClientPlugin','getMemberID','_sessionService','dayjs','addUser','@univerjs/core','HTTPService','resolveComment','CustomRangeType','commentUpdate$','root','replyId','getUnit','symbol','UserManagerService','userID','content','Disposable','UniverThreadCommentDataSourcePlugin','65394UrzPrE','updateComment','Reply','UNRECOGNIZED','/add','saveCommentToSnapshot','addComment','454522XHWBVX','userId','Plugin'];_0x2814=function(){return _0x5ccf75;};return _0x2814();}var L=Object[_0x5ae6a1(0xd1)],Z=Object[_0x5ae6a1(0xce)],W=(_0x500d1f,_0x3f674c,_0x4121eb,_0x5c7307)=>{const _0x4da7d0=_0x5ae6a1;for(var _0x3d9d6b=_0x5c7307>0x1?void 0x0:_0x5c7307?Z(_0x3f674c,_0x4121eb):_0x3f674c,_0x2aebda=_0x500d1f[_0x4da7d0(0xb9)]-0x1,_0x461e43;_0x2aebda>=0x0;_0x2aebda--)(_0x461e43=_0x500d1f[_0x2aebda])&&(_0x3d9d6b=(_0x5c7307?_0x461e43(_0x3f674c,_0x4121eb,_0x3d9d6b):_0x461e43(_0x3d9d6b))||_0x3d9d6b);return _0x5c7307&&_0x3d9d6b&&L(_0x3f674c,_0x4121eb,_0x3d9d6b),_0x3d9d6b;},D=(_0x1a65d7,_0x540304)=>(_0x1d4638,_0x2e50d0)=>_0x540304(_0x1d4638,_0x2e50d0,_0x1a65d7);let b=class extends c[_0x5ae6a1(0xf8)]{constructor(_0x838150,_0x536f18){const _0x27a76f=_0x5ae6a1;super(),this[_0x27a76f(0x109)]=_0x838150,this[_0x27a76f(0x9b)]=_0x536f18,this['_initDataSource']();}[_0x5ae6a1(0xb1)](){const _0xe2ddf=_0x5ae6a1;this['_threadCommentDataSourceService'][_0xe2ddf(0x106)]=this[_0xe2ddf(0x9b)],this['_threadCommentDataSourceService'][_0xe2ddf(0xcc)]=!0x1;}};b=W([D(0x0,y[_0x5ae6a1(0xe1)]),D(0x1,c[_0x5ae6a1(0x8f)](f))],b);var M=Object[_0x5ae6a1(0xd1)],B=Object[_0x5ae6a1(0xce)],K=(_0xa31ec6,_0xee29ea,_0x53933d)=>_0xee29ea in _0xa31ec6?M(_0xa31ec6,_0xee29ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53933d}):_0xa31ec6[_0xee29ea]=_0x53933d,V=(_0x15bbe6,_0x529ee1,_0x2a1a94,_0x554936)=>{const _0x6734a2=_0x5ae6a1;for(var _0x123868=_0x554936>0x1?void 0x0:_0x554936?B(_0x529ee1,_0x2a1a94):_0x529ee1,_0x320fec=_0x15bbe6[_0x6734a2(0xb9)]-0x1,_0x377be;_0x320fec>=0x0;_0x320fec--)(_0x377be=_0x15bbe6[_0x320fec])&&(_0x123868=(_0x554936?_0x377be(_0x529ee1,_0x2a1a94,_0x123868):_0x377be(_0x123868))||_0x123868);return _0x554936&&_0x123868&&M(_0x529ee1,_0x2a1a94,_0x123868),_0x123868;},O=(_0x47a8da,_0x535b0d)=>(_0x46b9c9,_0x38e7c4)=>_0x535b0d(_0x46b9c9,_0x38e7c4,_0x47a8da),j=(_0x1f9b2b,_0x460434,_0x2ba99d)=>K(_0x1f9b2b,typeof _0x460434!=_0x5ae6a1(0xf4)?_0x460434+'':_0x460434,_0x2ba99d);exports['UniverThreadCommentDataSourcePlugin']=class extends c[_0x5ae6a1(0x103)]{constructor(_0x366343=x,_0x53947c,_0x521f8b){const _0xd87d76=_0x5ae6a1;super(),this['_config']=_0x366343,this[_0xd87d76(0x95)]=_0x53947c,this[_0xd87d76(0xc5)]=_0x521f8b;const {..._0x55bafa}=this[_0xd87d76(0xa3)];this['_configService'][_0xd87d76(0xd7)](A,_0x55bafa);}['onStarting'](){const _0x5cfd40=_0x5ae6a1;[[f],[b],[S]][_0x5cfd40(0xac)](_0x4279f4=>{const _0x193d4e=_0x5cfd40;this[_0x193d4e(0x95)][_0x193d4e(0xbe)](_0x4279f4);});}[_0x5ae6a1(0xb7)](){const _0x5dfc4a=_0x5ae6a1;this[_0x5dfc4a(0x95)]['get'](b),this[_0x5dfc4a(0x95)]['get'](S);}},j(exports[_0x5ae6a1(0xf9)],_0x5ae6a1(0x94),U),j(exports[_0x5ae6a1(0xf9)],_0x5ae6a1(0xdf),c[_0x5ae6a1(0xae)]['UNIVER_UNKNOWN']),exports[_0x5ae6a1(0xf9)]=V([c[_0x5ae6a1(0xe4)](T[_0x5ae6a1(0x98)],C[_0x5ae6a1(0xe7)],N[_0x5ae6a1(0x8c)]),O(0x1,c[_0x5ae6a1(0x8f)](c[_0x5ae6a1(0x107)])),O(0x2,c[_0x5ae6a1(0xa9)])],exports['UniverThreadCommentDataSourcePlugin']);
|
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 _0x227c20=_0xb03d;(function(_0x3b9686,_0x30f12d){const _0x270712=_0xb03d,_0x4abaa7=_0x3b9686();while(!![]){try{const _0x5c2c00=parseInt(_0x270712(0x11b))/0x1+parseInt(_0x270712(0x117))/0x2+parseInt(_0x270712(0x162))/0x3*(-parseInt(_0x270712(0x140))/0x4)+-parseInt(_0x270712(0x14d))/0x5*(-parseInt(_0x270712(0x142))/0x6)+-parseInt(_0x270712(0x169))/0x7+parseInt(_0x270712(0x165))/0x8*(-parseInt(_0x270712(0x132))/0x9)+-parseInt(_0x270712(0x10c))/0xa*(-parseInt(_0x270712(0x147))/0xb);if(_0x5c2c00===_0x30f12d)break;else _0x4abaa7['push'](_0x4abaa7['shift']());}catch(_0x3bf47f){_0x4abaa7['push'](_0x4abaa7['shift']());}}}(_0x3585,0x2c677));import{CommentService as _0x1a1391,CollaborationSessionService as _0x5d5c21,UniverCollaborationClientPlugin as _0x461ec8}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0xff8dad}from'@univerjs-pro/license';import{dayjs as _0x3be5b7,UserManagerService as _0x4f5b36,Inject as _0x5390e2,Injector as _0x5acb3c,Disposable as _0x723f9c,CustomRangeType as _0x1dff78,UniverInstanceType as _0x1fdba2,DependentOn as _0x88a02a,Plugin as _0x4eda5b,IConfigService as _0x2df120}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x4e51d6}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x456a6d,IThreadCommentDataSourceService as _0x24bf04}from'@univerjs/thread-comment';import{bufferTime as _0x10f8a8}from'rxjs';import{HTTPService as _0x5295ce}from'@univerjs/network';const q=_0x227c20(0x146);var v=(_0x3c828d=>(_0x3c828d[_0x3c828d[_0x227c20(0x122)]=0x0]=_0x227c20(0x122),_0x3c828d[_0x3c828d[_0x227c20(0x126)]=0x1]=_0x227c20(0x126),_0x3c828d[_0x3c828d[_0x227c20(0x14e)]=-0x1]=_0x227c20(0x14e),_0x3c828d))(v||{}),p=(_0x4c594d=>(_0x4c594d[_0x4c594d[_0x227c20(0x15c)]=0x0]=_0x227c20(0x15c),_0x4c594d[_0x4c594d[_0x227c20(0x156)]=0x1]=_0x227c20(0x156),_0x4c594d[_0x4c594d[_0x227c20(0x121)]=0x2]=_0x227c20(0x121),_0x4c594d[_0x4c594d['Edit']=0x3]=_0x227c20(0x130),_0x4c594d[_0x4c594d[_0x227c20(0x15a)]=0x4]=_0x227c20(0x15a),_0x4c594d[_0x4c594d[_0x227c20(0x114)]=0x5]=_0x227c20(0x114),_0x4c594d[_0x4c594d['UNRECOGNIZED']=-0x1]=_0x227c20(0x14e),_0x4c594d))(p||{});const g=_0x2c0048=>_0x3be5b7(new Date(+_0x2c0048))['format']('YYYY/MM/DD\x20HH:mm'),W=async(_0x14f2a0,_0x232710)=>{const _0x17eec4=_0x227c20,_0x17ea8b=_0x14f2a0[_0x17eec4(0x158)](_0x4f5b36),_0x37d066=_0x14f2a0[_0x17eec4(0x158)](_0x5295ce);_0x232710['forEach'](_0x9f3c73=>{const _0x1fb59c=_0x17eec4;_0x17ea8b[_0x1fb59c(0x133)](_0x9f3c73)&&_0x232710[_0x1fb59c(0x10b)](_0x9f3c73);}),_0x232710[_0x17eec4(0x12e)]&&(await _0x37d066[_0x17eec4(0x158)]('/universer-api/user/list',{'params':{'userIDs':[..._0x232710]}}))[_0x17eec4(0x10d)][_0x17eec4(0x111)]['forEach'](_0x4486ae=>{_0x4486ae&&_0x17ea8b['addUser'](_0x4486ae);});};var B=Object['defineProperty'],K=Object[_0x227c20(0x15d)],V=(_0x3606e0,_0xe0d39d,_0x2b984d,_0x38dc12)=>{for(var _0x3b346e=_0x38dc12>0x1?void 0x0:_0x38dc12?K(_0xe0d39d,_0x2b984d):_0xe0d39d,_0x1f50fc=_0x3606e0['length']-0x1,_0x48b046;_0x1f50fc>=0x0;_0x1f50fc--)(_0x48b046=_0x3606e0[_0x1f50fc])&&(_0x3b346e=(_0x38dc12?_0x48b046(_0xe0d39d,_0x2b984d,_0x3b346e):_0x48b046(_0x3b346e))||_0x3b346e);return _0x38dc12&&_0x3b346e&&B(_0xe0d39d,_0x2b984d,_0x3b346e),_0x3b346e;},_=(_0x220ca5,_0x4877f4)=>(_0x299410,_0x4f9d52)=>_0x4877f4(_0x299410,_0x4f9d52,_0x220ca5);let f=class extends _0x723f9c{constructor(_0x19b9ff,_0x1fa460,_0x301fff,_0x3d5e87){const _0x3f2851=_0x227c20;super(),this[_0x3f2851(0x115)]=_0x19b9ff,this['_threadCommentModel']=_0x1fa460,this[_0x3f2851(0x13f)]=_0x301fff,this[_0x3f2851(0x144)]=_0x3d5e87,this[_0x3f2851(0x118)](),this[_0x3f2851(0x155)]();}[_0x227c20(0x155)](){const _0x3e7170=_0x227c20;this['disposeWithMe'](this[_0x3e7170(0x13a)][_0x3e7170(0x16e)]['pipe'](_0x10f8a8(0x10))['subscribe'](_0x10117a=>{const _0x1b207c=_0x3e7170,_0xada907=new Set();_0x10117a[_0x1b207c(0x123)](_0x27ae1f=>{const _0x30be73=_0x1b207c;switch(_0x27ae1f[_0x30be73(0x12c)]){case _0x30be73(0x139):{const _0x2669f1=_0x27ae1f[_0x30be73(0x116)][_0x30be73(0x14b)];_0xada907['add'](_0x2669f1);break;}}}),W(this[_0x1b207c(0x144)],_0xada907);}));}[_0x227c20(0x118)](){const _0x28bbca=_0x227c20;this[_0x28bbca(0x125)](this[_0x28bbca(0x115)][_0x28bbca(0x16e)][_0x28bbca(0x124)](async _0x2ad979=>{const _0x42b5fe=_0x28bbca;var _0xf190f8,_0x5b56c2,_0x1ef948,_0x14f737;const _0x4ba041=(_0xf190f8=this[_0x42b5fe(0x13a)][_0x42b5fe(0x159)](_0x2ad979[_0x42b5fe(0x119)])[_0x42b5fe(0x16b)](_0x23fcba=>_0x23fcba[_0x42b5fe(0x137)]===_0x2ad979[_0x42b5fe(0x137)]))==null?void 0x0:_0xf190f8['root'];if(!_0x4ba041)return;const {unitId:_0x67fd61,subUnitId:_0xf615de}=_0x4ba041;switch(_0x2ad979[_0x42b5fe(0x16d)]&&this[_0x42b5fe(0x13f)][_0x42b5fe(0x11a)](_0x2ad979[_0x42b5fe(0x16d)]),_0x2ad979[_0x42b5fe(0x12c)]){case p[_0x42b5fe(0x156)]:break;case p[_0x42b5fe(0x121)]:{this[_0x42b5fe(0x13a)]['addComment'](_0x67fd61,_0xf615de,{'unitId':_0x67fd61,'subUnitId':_0xf615de,'ref':'','id':_0x2ad979[_0x42b5fe(0x141)],'dT':g(+_0x2ad979[_0x42b5fe(0x16a)]),'threadId':_0x2ad979[_0x42b5fe(0x137)],'personId':(_0x1ef948=(_0x5b56c2=_0x2ad979['user'])==null?void 0x0:_0x5b56c2[_0x42b5fe(0x15e)])!=null?_0x1ef948:_0x2ad979[_0x42b5fe(0x11c)],'text':JSON[_0x42b5fe(0x14c)](_0x2ad979['content']),'parentId':_0x4ba041['id']});break;}case p[_0x42b5fe(0x15a)]:{const _0x21ab65=this[_0x42b5fe(0x13a)][_0x42b5fe(0x120)](_0x67fd61,_0xf615de,_0x2ad979[_0x42b5fe(0x141)]);_0x21ab65&&_0x21ab65['parentId']&&this[_0x42b5fe(0x13a)][_0x42b5fe(0x12a)](_0x67fd61,_0xf615de,_0x2ad979['replyId']);break;}case p[_0x42b5fe(0x130)]:{this['_threadCommentModel'][_0x42b5fe(0x143)](_0x67fd61,_0xf615de,{'commentId':_0x2ad979[_0x42b5fe(0x141)],'text':JSON[_0x42b5fe(0x14c)](_0x2ad979[_0x42b5fe(0x131)])});break;}case p['Solve']:{const _0x2b2501=(_0x14f737=this[_0x42b5fe(0x13a)][_0x42b5fe(0x159)](_0x2ad979[_0x42b5fe(0x119)])[_0x42b5fe(0x16b)](_0x579f09=>_0x579f09['threadId']===_0x2ad979[_0x42b5fe(0x137)]))==null?void 0x0:_0x14f737[_0x42b5fe(0x11d)];_0x2b2501&&this['_threadCommentModel'][_0x42b5fe(0x13b)](_0x67fd61,_0xf615de,_0x2b2501['id'],_0x2ad979[_0x42b5fe(0x168)]===v[_0x42b5fe(0x126)]);break;}}}));}};f=V([_(0x0,_0x5390e2(_0x1a1391)),_(0x1,_0x5390e2(_0x456a6d)),_(0x2,_0x5390e2(_0x4f5b36)),_(0x3,_0x5390e2(_0x5acb3c))],f);const z='thread-comment-data-source.config',Q={};function _0x3585(){const _0x4a5f6e=['1394631QKBYML','createTimestamp','find','replies','user','commentUpdate$','delete','3697490vNgbUg','body','customRanges','_threadCommentDataSourceService','_sessionService','users','COMMENT','rangeId','Solve','_commentService','payload','167518ZRVISQ','_init','unitId','addUser','113203bPgabd','userId','root','_config','filter','getComment','Reply','OpenOrReOpen','forEach','subscribe','disposeWithMe','Solved','onReady','error','symbol','deleteComment','length','type','UNIVER_UNKNOWN','size','slice','Edit','content','461835yKpVdc','getUser','requireSession','getMemberID','_configService','threadId','format','add','_threadCommentModel','resolveComment','_httpService','addComment','/reply','_userService','1385392nOwYrM','replyId','2256KyQwCk','updateComment','_injector','dataSource','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','11JRfnfF','/add','code','onStarting','personId','parse','2820vdwyyS','UNRECOGNIZED','map','post','stringify','_initDataSource','saveCommentToSnapshot','listComments','_initUserSync','Add','/universer-api/comment/unit/','get','getUnit','Delete','ref','Unknown','getOwnPropertyDescriptor','userID','/list','comments','/edit','3SSmKPY','setConfig','/delete','8wbJAkA','rangeType','defineProperty','solved'];_0x3585=function(){return _0x4a5f6e;};return _0x3585();}var X=Object[_0x227c20(0x167)],k=Object[_0x227c20(0x15d)],ee=(_0x5e07a8,_0x13458b,_0x5195a2,_0x117a4c)=>{const _0x15f447=_0x227c20;for(var _0x2dc94f=_0x117a4c>0x1?void 0x0:_0x117a4c?k(_0x13458b,_0x5195a2):_0x13458b,_0x47da8e=_0x5e07a8[_0x15f447(0x12b)]-0x1,_0x32f21f;_0x47da8e>=0x0;_0x47da8e--)(_0x32f21f=_0x5e07a8[_0x47da8e])&&(_0x2dc94f=(_0x117a4c?_0x32f21f(_0x13458b,_0x5195a2,_0x2dc94f):_0x32f21f(_0x2dc94f))||_0x2dc94f);return _0x117a4c&&_0x2dc94f&&X(_0x13458b,_0x5195a2,_0x2dc94f),_0x2dc94f;},I=(_0xace8e6,_0x2d0d89)=>(_0x51ada3,_0x279e42)=>_0x2d0d89(_0x51ada3,_0x279e42,_0xace8e6);function re(_0x199bf6,_0x2acb01){const _0x4c5247=_0x227c20,_0x322b16=_0x199bf6[_0x4c5247(0x16c)][0x0];return{..._0x2acb01,'id':_0x322b16['replyId'],'resolved':_0x199bf6[_0x4c5247(0x168)]===0x1,'dT':g(_0x322b16[_0x4c5247(0x16a)]),'personId':_0x322b16[_0x4c5247(0x11c)],'threadId':_0x322b16[_0x4c5247(0x137)]};}function te(_0x2fac14,_0x156ded,_0x187a7b){const _0x4e1b27=_0x227c20;var _0x4b136e,_0x484a24;if(((_0x484a24=(_0x4b136e=_0x2fac14==null?void 0x0:_0x2fac14[_0x4e1b27(0x16c)])==null?void 0x0:_0x4b136e['length'])!=null?_0x484a24:0x0)>0x0){const _0x5d0eeb=(_0xbf61e6,_0x4b088)=>({'id':_0xbf61e6[_0x4e1b27(0x141)],'threadId':_0xbf61e6[_0x4e1b27(0x137)],'dT':g(_0xbf61e6[_0x4e1b27(0x16a)]),'personId':_0xbf61e6['userId'],'resolved':_0x2fac14[_0x4e1b27(0x168)]===v[_0x4e1b27(0x126)],'unitId':_0x156ded,'subUnitId':_0x187a7b,'text':JSON[_0x4e1b27(0x14c)](_0xbf61e6[_0x4e1b27(0x131)]),'parentId':_0x4b088}),_0x4be6ef=_0x5d0eeb(_0x2fac14[_0x4e1b27(0x16c)][0x0]);return{..._0x4be6ef,'children':_0x2fac14[_0x4e1b27(0x16c)][_0x4e1b27(0x12f)](0x1)[_0x4e1b27(0x14f)](_0x262309=>_0x5d0eeb(_0x262309,_0x4be6ef['id']))};}return null;}let S=class{constructor(_0x1a85a7,_0x56aeea,_0x323c90,_0x20d054){const _0x4f75d3=_0x227c20;this[_0x4f75d3(0x13c)]=_0x1a85a7,this[_0x4f75d3(0x13f)]=_0x56aeea,this[_0x4f75d3(0x110)]=_0x323c90,this['_injector']=_0x20d054;}async[_0x227c20(0x13d)](_0x5264c6){const _0x30ed49=_0x227c20;var _0x53f80e,_0x55267a;const {parentId:_0xe8b50a,unitId:_0x5978b,text:_0x2e7d8c,threadId:_0x2e2b86}=_0x5264c6,_0x472402=(_0x55267a=(_0x53f80e=_0x2e7d8c['customRanges'])==null?void 0x0:_0x53f80e[_0x30ed49(0x11f)](_0xd0f097=>_0xd0f097['rangeType']===_0x1dff78[_0x30ed49(0x112)])[_0x30ed49(0x14f)](_0x32cd29=>_0x32cd29[_0x30ed49(0x113)]))!=null?_0x55267a:[],_0x365458=JSON[_0x30ed49(0x151)](_0x2e7d8c),_0x36aab4=(await this[_0x30ed49(0x110)][_0x30ed49(0x134)](_0x5978b))[_0x30ed49(0x135)]();if(_0xe8b50a){const _0x5597dc={'memberId':_0x36aab4,'unitId':_0x5978b,'content':_0x365458,'mention':_0x472402,'threadId':_0x2e2b86},_0x21e4fd=(await this['_httpService'][_0x30ed49(0x150)](_0x30ed49(0x157)+_0x5978b+_0x30ed49(0x13e),{'body':_0x5597dc}))[_0x30ed49(0x10d)]['reply'];return{..._0x5264c6,'id':_0x21e4fd[_0x30ed49(0x141)],'dT':_0x3be5b7(+_0x21e4fd['createTimestamp'])[_0x30ed49(0x138)]('YYYY/MM/DD\x20HH:mm'),'personId':_0x21e4fd['userId']};}else{const _0x5171c4={'memberId':_0x36aab4,'unitId':_0x5978b,'content':_0x365458,'mention':_0x472402},_0x502674=await this[_0x30ed49(0x13c)][_0x30ed49(0x150)](_0x30ed49(0x157)+_0x5978b+_0x30ed49(0x148),{'body':_0x5171c4});return re(_0x502674[_0x30ed49(0x10d)]['comment'],_0x5264c6);}}async[_0x227c20(0x143)](_0x2c75b9){const _0x3ef822=_0x227c20;var _0x3e3339,_0xfa3849;const {text:_0x28e977,unitId:_0x78fc9d}=_0x2c75b9,_0x2c56f4=(_0xfa3849=(_0x3e3339=_0x28e977[_0x3ef822(0x10e)])==null?void 0x0:_0x3e3339['filter'](_0x4b2dc7=>_0x4b2dc7[_0x3ef822(0x166)]===_0x1dff78[_0x3ef822(0x112)])[_0x3ef822(0x14f)](_0x22bffc=>_0x22bffc['rangeId']))!=null?_0xfa3849:[],_0x3a3a96=JSON[_0x3ef822(0x151)](_0x28e977),_0xc1b275=_0x2c75b9[_0x3ef822(0x137)],_0x303876=_0x2c75b9['id'],_0x12113f={'memberId':(await this[_0x3ef822(0x110)][_0x3ef822(0x134)](_0x78fc9d))[_0x3ef822(0x135)](),'unitId':_0x78fc9d,'threadId':_0xc1b275,'mention':_0x2c56f4,'content':_0x3a3a96,'replyId':_0x303876},_0x5baec7=await this[_0x3ef822(0x13c)][_0x3ef822(0x150)]('/universer-api/comment/unit/'+_0x78fc9d+_0x3ef822(0x161),{'body':_0x12113f});return!_0x5baec7[_0x3ef822(0x10d)][_0x3ef822(0x128)]||_0x5baec7['body'][_0x3ef822(0x128)][_0x3ef822(0x149)]===0x1;}async[_0x227c20(0x13b)](_0xe4f081){const _0x415af8=_0x227c20,{unitId:_0x19f8e7}=_0xe4f081,_0x4be3dc=_0xe4f081[_0x415af8(0x137)],_0x4e6119={'memberId':this[_0x415af8(0x13f)]['getCurrentUser']()[_0x415af8(0x15e)],'unitId':_0x19f8e7,'threadId':_0x4be3dc,'solved':_0xe4f081['resolved']?v[_0x415af8(0x126)]:v[_0x415af8(0x122)]},_0x24b78b=await this[_0x415af8(0x13c)][_0x415af8(0x150)](_0x415af8(0x157)+_0x19f8e7+'/solved',{'body':_0x4e6119});return!_0x24b78b[_0x415af8(0x10d)][_0x415af8(0x128)]||_0x24b78b[_0x415af8(0x10d)]['error'][_0x415af8(0x149)]===0x1;}async[_0x227c20(0x12a)](_0x2d730e,_0x14518c,_0x1fcd63,_0x1d2348){const _0x7f0c71=_0x227c20,_0x2c233f={'memberId':(await this[_0x7f0c71(0x110)][_0x7f0c71(0x134)](_0x2d730e))[_0x7f0c71(0x135)](),'threadId':_0x1fcd63,'replyId':_0x1d2348,'unitId':_0x2d730e},_0x261094=await this[_0x7f0c71(0x13c)][_0x7f0c71(0x150)](_0x7f0c71(0x157)+_0x2d730e+_0x7f0c71(0x164),{'body':_0x2c233f});return!_0x261094[_0x7f0c71(0x10d)]['error']||_0x261094[_0x7f0c71(0x10d)][_0x7f0c71(0x128)][_0x7f0c71(0x149)]===0x1;}async[_0x227c20(0x154)](_0x5cf23c,_0x2cf509,_0xaf5f32){const _0x110f6b=_0x227c20,_0x285cd6={'unitId':_0x5cf23c,'threadId':_0xaf5f32},_0xe6175b=await this[_0x110f6b(0x13c)][_0x110f6b(0x150)](_0x110f6b(0x157)+_0x5cf23c+_0x110f6b(0x15f),{'body':_0x285cd6}),_0x47f9d5=_0xaf5f32['map'](_0x47c04b=>te(_0xe6175b[_0x110f6b(0x10d)][_0x110f6b(0x160)][_0x47c04b],_0x5cf23c,_0x2cf509))['filter'](Boolean);return Object['values'](_0xe6175b[_0x110f6b(0x10d)]['users'])[_0x110f6b(0x123)](_0x46f224=>{const _0x2c41f8=_0x110f6b;this[_0x2c41f8(0x13f)]['addUser'](_0x46f224);}),_0x47f9d5;}[_0x227c20(0x153)](_0x23ef0c){const _0x112b33=_0x227c20;return{'id':_0x23ef0c['id'],'threadId':_0x23ef0c[_0x112b33(0x137)],'ref':_0x23ef0c[_0x112b33(0x15b)]};}};S=ee([I(0x0,_0x5390e2(_0x5295ce)),I(0x1,_0x5390e2(_0x4f5b36)),I(0x2,_0x5390e2(_0x5d5c21)),I(0x3,_0x5390e2(_0x5acb3c))],S);var se=Object['defineProperty'],oe=Object['getOwnPropertyDescriptor'],ne=(_0x366876,_0x52edd6,_0x5986fa,_0x5905ed)=>{const _0x584aa6=_0x227c20;for(var _0x23f9ec=_0x5905ed>0x1?void 0x0:_0x5905ed?oe(_0x52edd6,_0x5986fa):_0x52edd6,_0x1b16da=_0x366876[_0x584aa6(0x12b)]-0x1,_0x4e3c32;_0x1b16da>=0x0;_0x1b16da--)(_0x4e3c32=_0x366876[_0x1b16da])&&(_0x23f9ec=(_0x5905ed?_0x4e3c32(_0x52edd6,_0x5986fa,_0x23f9ec):_0x4e3c32(_0x23f9ec))||_0x23f9ec);return _0x5905ed&&_0x23f9ec&&se(_0x52edd6,_0x5986fa,_0x23f9ec),_0x23f9ec;},P=(_0x38753d,_0x47f0cf)=>(_0xf7d482,_0x46968b)=>_0x47f0cf(_0xf7d482,_0x46968b,_0x38753d);let b=class extends _0x723f9c{constructor(_0x625b9,_0x5e4775){const _0x562e14=_0x227c20;super(),this[_0x562e14(0x10f)]=_0x625b9,this['_threadCommentDataSource']=_0x5e4775,this['_initDataSource']();}[_0x227c20(0x152)](){const _0x3f1774=_0x227c20;this[_0x3f1774(0x10f)][_0x3f1774(0x145)]=this['_threadCommentDataSource'],this[_0x3f1774(0x10f)]['syncUpdateMutationToColla']=!0x1;}};function _0xb03d(_0x3bc74f,_0x1e8154){const _0x358529=_0x3585();return _0xb03d=function(_0xb03dc4,_0x5617b9){_0xb03dc4=_0xb03dc4-0x10b;let _0x3bafcc=_0x358529[_0xb03dc4];return _0x3bafcc;},_0xb03d(_0x3bc74f,_0x1e8154);}b=ne([P(0x0,_0x24bf04),P(0x1,_0x5390e2(S))],b);var T=Object[_0x227c20(0x167)],ie=Object['getOwnPropertyDescriptor'],ce=(_0x7ef247,_0x1df357,_0x37e2bb)=>_0x1df357 in _0x7ef247?T(_0x7ef247,_0x1df357,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37e2bb}):_0x7ef247[_0x1df357]=_0x37e2bb,ae=(_0x2bcbaf,_0x114391,_0x4923fa,_0x54cae0)=>{const _0xa3d9e9=_0x227c20;for(var _0x3597ce=_0x54cae0>0x1?void 0x0:_0x54cae0?ie(_0x114391,_0x4923fa):_0x114391,_0x50bab4=_0x2bcbaf[_0xa3d9e9(0x12b)]-0x1,_0x50e2c5;_0x50bab4>=0x0;_0x50bab4--)(_0x50e2c5=_0x2bcbaf[_0x50bab4])&&(_0x3597ce=(_0x54cae0?_0x50e2c5(_0x114391,_0x4923fa,_0x3597ce):_0x50e2c5(_0x3597ce))||_0x3597ce);return _0x54cae0&&_0x3597ce&&T(_0x114391,_0x4923fa,_0x3597ce),_0x3597ce;},M=(_0x2412e5,_0x2d7149)=>(_0x166989,_0x28c34e)=>_0x2d7149(_0x166989,_0x28c34e,_0x2412e5),$=(_0x3e4e1c,_0x141857,_0x3a3089)=>ce(_0x3e4e1c,typeof _0x141857!=_0x227c20(0x129)?_0x141857+'':_0x141857,_0x3a3089);let C=class extends _0x4eda5b{constructor(_0x852f34=Q,_0x517d18,_0x33422b){const _0x13a6d3=_0x227c20;super(),this['_config']=_0x852f34,this['_injector']=_0x517d18,this['_configService']=_0x33422b;const {..._0x5e2387}=this[_0x13a6d3(0x11e)];this[_0x13a6d3(0x136)][_0x13a6d3(0x163)](z,_0x5e2387);}[_0x227c20(0x14a)](){const _0x284047=_0x227c20;[[S],[b],[f]][_0x284047(0x123)](_0x3c5e0d=>{const _0x4cf189=_0x284047;this[_0x4cf189(0x144)][_0x4cf189(0x139)](_0x3c5e0d);});}[_0x227c20(0x127)](){const _0x32ebf5=_0x227c20;this[_0x32ebf5(0x144)]['get'](b),this[_0x32ebf5(0x144)][_0x32ebf5(0x158)](f);}};$(C,'pluginName',q),$(C,'type',_0x1fdba2[_0x227c20(0x12d)]),C=ae([_0x88a02a(_0x4e51d6,_0x461ec8,_0xff8dad),M(0x1,_0x5390e2(_0x5acb3c)),M(0x2,_0x2df120)],C);export{C as UniverThreadCommentDataSourcePlugin};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
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(_0x5a60c9,_0x934e56){const _0x18d846=_0x4669,_0x164f43=_0x5a60c9();while(!![]){try{const _0x29f97f=parseInt(_0x18d846(0x236))/0x1*(parseInt(_0x18d846(0x204))/0x2)+parseInt(_0x18d846(0x1f1))/0x3+-parseInt(_0x18d846(0x1ff))/0x4+-parseInt(_0x18d846(0x1e2))/0x5*(parseInt(_0x18d846(0x211))/0x6)+-parseInt(_0x18d846(0x223))/0x7+parseInt(_0x18d846(0x237))/0x8*(-parseInt(_0x18d846(0x24b))/0x9)+parseInt(_0x18d846(0x1cd))/0xa;if(_0x29f97f===_0x934e56)break;else _0x164f43['push'](_0x164f43['shift']());}catch(_0x3fb339){_0x164f43['push'](_0x164f43['shift']());}}}(_0x3103,0x520ae),function(_0x5b0822,_0x11a19d){const _0x5e56a4=_0x4669;typeof exports=='object'&&typeof module<'u'?_0x11a19d(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require(_0x5e56a4(0x1e4)),require(_0x5e56a4(0x1d5)),require(_0x5e56a4(0x251)),require(_0x5e56a4(0x231)),require(_0x5e56a4(0x218))):typeof define==_0x5e56a4(0x1df)&&define[_0x5e56a4(0x21f)]?define([_0x5e56a4(0x20e),_0x5e56a4(0x1e7),'@univerjs-pro/license',_0x5e56a4(0x1e4),_0x5e56a4(0x1d5),_0x5e56a4(0x251),_0x5e56a4(0x231),_0x5e56a4(0x218)],_0x11a19d):(_0x5b0822=typeof globalThis<'u'?globalThis:_0x5b0822||self,_0x11a19d(_0x5b0822[_0x5e56a4(0x1fa)]={},_0x5b0822[_0x5e56a4(0x1e9)],_0x5b0822['UniverProLicense'],_0x5b0822['UniverCore'],_0x5b0822['UniverThreadCommentUi'],_0x5b0822[_0x5e56a4(0x1f5)],_0x5b0822[_0x5e56a4(0x231)],_0x5b0822['UniverNetwork']));}(this,function(_0x18b32d,_0x2f2339,_0x815b31,_0x393550,_0x4fb7ad,_0x2c1ea2,_0x1d6f1e,_0x5421e8){'use strict';const _0x209b20=_0x4669;const _0xe31735=_0x209b20(0x1db);var _0x56038b=(_0x10ba1e=>(_0x10ba1e[_0x10ba1e[_0x209b20(0x1cb)]=0x0]=_0x209b20(0x1cb),_0x10ba1e[_0x10ba1e[_0x209b20(0x1f7)]=0x1]=_0x209b20(0x1f7),_0x10ba1e[_0x10ba1e[_0x209b20(0x213)]=-0x1]=_0x209b20(0x213),_0x10ba1e))(_0x56038b||{}),_0x5f0b03=(_0x2e2d5b=>(_0x2e2d5b[_0x2e2d5b[_0x209b20(0x22c)]=0x0]='Unknown',_0x2e2d5b[_0x2e2d5b[_0x209b20(0x1d6)]=0x1]='Add',_0x2e2d5b[_0x2e2d5b[_0x209b20(0x235)]=0x2]='Reply',_0x2e2d5b[_0x2e2d5b['Edit']=0x3]=_0x209b20(0x1ee),_0x2e2d5b[_0x2e2d5b[_0x209b20(0x1e1)]=0x4]=_0x209b20(0x1e1),_0x2e2d5b[_0x2e2d5b[_0x209b20(0x1f2)]=0x5]=_0x209b20(0x1f2),_0x2e2d5b[_0x2e2d5b[_0x209b20(0x213)]=-0x1]=_0x209b20(0x213),_0x2e2d5b))(_0x5f0b03||{});const _0x1fae87=_0x49b6a8=>_0x393550[_0x209b20(0x1dd)](new Date(+_0x49b6a8))[_0x209b20(0x225)](_0x209b20(0x250)),_0x130907=async(_0x711e76,_0x166d07)=>{const _0xbfda60=_0x209b20,_0x3f7130=_0x711e76['get'](_0x393550['UserManagerService']),_0x782316=_0x711e76[_0xbfda60(0x247)](_0x5421e8[_0xbfda60(0x1eb)]);_0x166d07[_0xbfda60(0x1f6)](_0xc4cd20=>{const _0x3c6bde=_0xbfda60;_0x3f7130[_0x3c6bde(0x1f3)](_0xc4cd20)&&_0x166d07[_0x3c6bde(0x23b)](_0xc4cd20);}),_0x166d07['size']&&(await _0x782316[_0xbfda60(0x247)](_0xbfda60(0x23a),{'params':{'userIDs':[..._0x166d07]}}))[_0xbfda60(0x243)]['users'][_0xbfda60(0x1f6)](_0x4921e7=>{const _0x1f6b97=_0xbfda60;_0x4921e7&&_0x3f7130[_0x1f6b97(0x20f)](_0x4921e7);});};var _0x3917b5=Object[_0x209b20(0x1cc)],_0x1daf11=Object[_0x209b20(0x224)],_0x40bbbc=(_0x2e4ce2,_0x54de11,_0x1043b3,_0x13965d)=>{const _0x3ebe9d=_0x209b20;for(var _0x2e6a55=_0x13965d>0x1?void 0x0:_0x13965d?_0x1daf11(_0x54de11,_0x1043b3):_0x54de11,_0x436d75=_0x2e4ce2[_0x3ebe9d(0x1fe)]-0x1,_0x125626;_0x436d75>=0x0;_0x436d75--)(_0x125626=_0x2e4ce2[_0x436d75])&&(_0x2e6a55=(_0x13965d?_0x125626(_0x54de11,_0x1043b3,_0x2e6a55):_0x125626(_0x2e6a55))||_0x2e6a55);return _0x13965d&&_0x2e6a55&&_0x3917b5(_0x54de11,_0x1043b3,_0x2e6a55),_0x2e6a55;},_0x4c26c4=(_0xbc76fc,_0x382e49)=>(_0x5ebe21,_0x4d0592)=>_0x382e49(_0x5ebe21,_0x4d0592,_0xbc76fc);let _0x3d6381=class extends _0x393550[_0x209b20(0x1cf)]{constructor(_0x41331a,_0x4c2535,_0x3edd5a,_0x1337c2){const _0x2e0f7f=_0x209b20;super(),this[_0x2e0f7f(0x212)]=_0x41331a,this[_0x2e0f7f(0x205)]=_0x4c2535,this[_0x2e0f7f(0x20a)]=_0x3edd5a,this[_0x2e0f7f(0x20c)]=_0x1337c2,this[_0x2e0f7f(0x21d)](),this[_0x2e0f7f(0x22d)]();}[_0x209b20(0x22d)](){const _0x2a2d0a=_0x209b20;this['disposeWithMe'](this['_threadCommentModel']['commentUpdate$'][_0x2a2d0a(0x1d3)](_0x1d6f1e[_0x2a2d0a(0x246)](0x10))['subscribe'](_0x22bf3b=>{const _0xb69fe2=_0x2a2d0a,_0x5748a1=new Set();_0x22bf3b[_0xb69fe2(0x1f6)](_0x4f57c2=>{const _0x52bce4=_0xb69fe2;switch(_0x4f57c2[_0x52bce4(0x23c)]){case _0x52bce4(0x220):{const _0x1257b3=_0x4f57c2[_0x52bce4(0x1de)][_0x52bce4(0x1c9)];_0x5748a1[_0x52bce4(0x220)](_0x1257b3);break;}}}),_0x130907(this[_0xb69fe2(0x20c)],_0x5748a1);}));}[_0x209b20(0x21d)](){const _0x14d782=_0x209b20;this[_0x14d782(0x1ea)](this[_0x14d782(0x212)][_0x14d782(0x241)][_0x14d782(0x21b)](async _0x1721ac=>{const _0x26c3d5=_0x14d782;var _0x170456,_0x55aecc,_0x1a0bcb,_0x28828b;const _0x4708f1=(_0x170456=this[_0x26c3d5(0x205)][_0x26c3d5(0x24e)](_0x1721ac[_0x26c3d5(0x249)])[_0x26c3d5(0x206)](_0x22b88a=>_0x22b88a['threadId']===_0x1721ac[_0x26c3d5(0x20d)]))==null?void 0x0:_0x170456[_0x26c3d5(0x221)];if(!_0x4708f1)return;const {unitId:_0x2d94ed,subUnitId:_0x1d39b2}=_0x4708f1;switch(_0x1721ac['user']&&this[_0x26c3d5(0x20a)][_0x26c3d5(0x20f)](_0x1721ac['user']),_0x1721ac[_0x26c3d5(0x23c)]){case _0x5f0b03['Add']:break;case _0x5f0b03[_0x26c3d5(0x235)]:{this[_0x26c3d5(0x205)][_0x26c3d5(0x22a)](_0x2d94ed,_0x1d39b2,{'unitId':_0x2d94ed,'subUnitId':_0x1d39b2,'ref':'','id':_0x1721ac[_0x26c3d5(0x200)],'dT':_0x1fae87(+_0x1721ac[_0x26c3d5(0x1e0)]),'threadId':_0x1721ac[_0x26c3d5(0x20d)],'personId':(_0x1a0bcb=(_0x55aecc=_0x1721ac[_0x26c3d5(0x1d7)])==null?void 0x0:_0x55aecc['userID'])!=null?_0x1a0bcb:_0x1721ac[_0x26c3d5(0x238)],'text':JSON['parse'](_0x1721ac[_0x26c3d5(0x216)]),'parentId':_0x4708f1['id']});break;}case _0x5f0b03['Delete']:{const _0x2210ad=this[_0x26c3d5(0x205)][_0x26c3d5(0x24d)](_0x2d94ed,_0x1d39b2,_0x1721ac[_0x26c3d5(0x200)]);_0x2210ad&&_0x2210ad[_0x26c3d5(0x239)]&&this['_threadCommentModel'][_0x26c3d5(0x1e6)](_0x2d94ed,_0x1d39b2,_0x1721ac['replyId']);break;}case _0x5f0b03[_0x26c3d5(0x1ee)]:{this[_0x26c3d5(0x205)]['updateComment'](_0x2d94ed,_0x1d39b2,{'commentId':_0x1721ac[_0x26c3d5(0x200)],'text':JSON[_0x26c3d5(0x24f)](_0x1721ac[_0x26c3d5(0x216)])});break;}case _0x5f0b03[_0x26c3d5(0x1f2)]:{const _0x15d8de=(_0x28828b=this[_0x26c3d5(0x205)][_0x26c3d5(0x24e)](_0x1721ac[_0x26c3d5(0x249)])[_0x26c3d5(0x206)](_0x584648=>_0x584648[_0x26c3d5(0x20d)]===_0x1721ac[_0x26c3d5(0x20d)]))==null?void 0x0:_0x28828b[_0x26c3d5(0x221)];_0x15d8de&&this[_0x26c3d5(0x205)][_0x26c3d5(0x1ed)](_0x2d94ed,_0x1d39b2,_0x15d8de['id'],_0x1721ac[_0x26c3d5(0x248)]===_0x56038b[_0x26c3d5(0x1f7)]);break;}}}));}};_0x3d6381=_0x40bbbc([_0x4c26c4(0x0,_0x393550[_0x209b20(0x203)](_0x2f2339[_0x209b20(0x1da)])),_0x4c26c4(0x1,_0x393550[_0x209b20(0x203)](_0x2c1ea2[_0x209b20(0x234)])),_0x4c26c4(0x2,_0x393550[_0x209b20(0x203)](_0x393550[_0x209b20(0x21e)])),_0x4c26c4(0x3,_0x393550[_0x209b20(0x203)](_0x393550[_0x209b20(0x21a)]))],_0x3d6381);const _0x835c18=_0x209b20(0x208),_0x448679={};var _0x4a665c=Object[_0x209b20(0x1cc)],_0x5bb74d=Object['getOwnPropertyDescriptor'],_0x2f06fd=(_0x1a2ced,_0xb5b2b0,_0x5c4d37,_0x461170)=>{const _0x26fc12=_0x209b20;for(var _0x4933b8=_0x461170>0x1?void 0x0:_0x461170?_0x5bb74d(_0xb5b2b0,_0x5c4d37):_0xb5b2b0,_0x4c87f5=_0x1a2ced[_0x26fc12(0x1fe)]-0x1,_0x31ed4a;_0x4c87f5>=0x0;_0x4c87f5--)(_0x31ed4a=_0x1a2ced[_0x4c87f5])&&(_0x4933b8=(_0x461170?_0x31ed4a(_0xb5b2b0,_0x5c4d37,_0x4933b8):_0x31ed4a(_0x4933b8))||_0x4933b8);return _0x461170&&_0x4933b8&&_0x4a665c(_0xb5b2b0,_0x5c4d37,_0x4933b8),_0x4933b8;},_0x4c47ce=(_0x25abef,_0x55a980)=>(_0x26c502,_0x5d4103)=>_0x55a980(_0x26c502,_0x5d4103,_0x25abef);function _0x2be102(_0x1a79f7,_0x2d3d47){const _0x259e19=_0x209b20,_0x12269d=_0x1a79f7[_0x259e19(0x1d2)][0x0];return{..._0x2d3d47,'id':_0x12269d[_0x259e19(0x200)],'resolved':_0x1a79f7[_0x259e19(0x248)]===0x1,'dT':_0x1fae87(_0x12269d[_0x259e19(0x1e0)]),'personId':_0x12269d[_0x259e19(0x238)],'threadId':_0x12269d[_0x259e19(0x20d)]};}function _0x3ea105(_0x583ed2,_0x1b3bd2,_0x2729e8){const _0x29ce86=_0x209b20;var _0x341bfa,_0x5b12aa;if(((_0x5b12aa=(_0x341bfa=_0x583ed2==null?void 0x0:_0x583ed2[_0x29ce86(0x1d2)])==null?void 0x0:_0x341bfa['length'])!=null?_0x5b12aa:0x0)>0x0){const _0x5f4c1e=(_0x40731c,_0x508173)=>({'id':_0x40731c[_0x29ce86(0x200)],'threadId':_0x40731c[_0x29ce86(0x20d)],'dT':_0x1fae87(_0x40731c[_0x29ce86(0x1e0)]),'personId':_0x40731c['userId'],'resolved':_0x583ed2[_0x29ce86(0x248)]===_0x56038b[_0x29ce86(0x1f7)],'unitId':_0x1b3bd2,'subUnitId':_0x2729e8,'text':JSON[_0x29ce86(0x24f)](_0x40731c['content']),'parentId':_0x508173}),_0x275c00=_0x5f4c1e(_0x583ed2[_0x29ce86(0x1d2)][0x0]);return{..._0x275c00,'children':_0x583ed2[_0x29ce86(0x1d2)][_0x29ce86(0x1ef)](0x1)[_0x29ce86(0x1ca)](_0xc886a5=>_0x5f4c1e(_0xc886a5,_0x275c00['id']))};}return null;}let _0x4baae0=class{constructor(_0x5c72df,_0x20ee83,_0x337381,_0x340995){const _0x4b271b=_0x209b20;this[_0x4b271b(0x22e)]=_0x5c72df,this[_0x4b271b(0x20a)]=_0x20ee83,this[_0x4b271b(0x229)]=_0x337381,this[_0x4b271b(0x20c)]=_0x340995;}async['addComment'](_0x2d8e83){const _0x2d2804=_0x209b20;var _0x491b2c,_0xc85bd2;const {parentId:_0x1a41d9,unitId:_0x1cd86a,text:_0x165803,threadId:_0x420a73}=_0x2d8e83,_0x4d746f=(_0xc85bd2=(_0x491b2c=_0x165803[_0x2d2804(0x1f9)])==null?void 0x0:_0x491b2c['filter'](_0x337cb1=>_0x337cb1[_0x2d2804(0x232)]===_0x393550['CustomRangeType'][_0x2d2804(0x1d4)])['map'](_0x434c4e=>_0x434c4e['rangeId']))!=null?_0xc85bd2:[],_0x2daa17=JSON['stringify'](_0x165803),_0x22ce8e=(await this['_sessionService'][_0x2d2804(0x1fc)](_0x1cd86a))['getMemberID']();if(_0x1a41d9){const _0x2a0c85={'memberId':_0x22ce8e,'unitId':_0x1cd86a,'content':_0x2daa17,'mention':_0x4d746f,'threadId':_0x420a73},_0x30b552=(await this[_0x2d2804(0x22e)][_0x2d2804(0x22b)](_0x2d2804(0x215)+_0x1cd86a+_0x2d2804(0x21c),{'body':_0x2a0c85}))[_0x2d2804(0x243)][_0x2d2804(0x214)];return{..._0x2d8e83,'id':_0x30b552[_0x2d2804(0x200)],'dT':_0x393550[_0x2d2804(0x1dd)](+_0x30b552['createTimestamp'])[_0x2d2804(0x225)](_0x2d2804(0x250)),'personId':_0x30b552[_0x2d2804(0x238)]};}else{const _0x1a867a={'memberId':_0x22ce8e,'unitId':_0x1cd86a,'content':_0x2daa17,'mention':_0x4d746f},_0x39f8ba=await this[_0x2d2804(0x22e)][_0x2d2804(0x22b)](_0x2d2804(0x215)+_0x1cd86a+_0x2d2804(0x219),{'body':_0x1a867a});return _0x2be102(_0x39f8ba['body'][_0x2d2804(0x23f)],_0x2d8e83);}}async[_0x209b20(0x1f4)](_0x329596){const _0x14dabb=_0x209b20;var _0x39d4fb,_0xe700b0;const {text:_0x38213a,unitId:_0x2a752e}=_0x329596,_0x3ac428=(_0xe700b0=(_0x39d4fb=_0x38213a['customRanges'])==null?void 0x0:_0x39d4fb[_0x14dabb(0x1c8)](_0x57bbb7=>_0x57bbb7[_0x14dabb(0x232)]===_0x393550['CustomRangeType'][_0x14dabb(0x1d4)])[_0x14dabb(0x1ca)](_0x1b9261=>_0x1b9261['rangeId']))!=null?_0xe700b0:[],_0x5d1408=JSON['stringify'](_0x38213a),_0xa8a1df=_0x329596[_0x14dabb(0x20d)],_0x14939c=_0x329596['id'],_0x35b151={'memberId':(await this[_0x14dabb(0x229)][_0x14dabb(0x1fc)](_0x2a752e))[_0x14dabb(0x1d8)](),'unitId':_0x2a752e,'threadId':_0xa8a1df,'mention':_0x3ac428,'content':_0x5d1408,'replyId':_0x14939c},_0x863ee0=await this[_0x14dabb(0x22e)][_0x14dabb(0x22b)]('/universer-api/comment/unit/'+_0x2a752e+'/edit',{'body':_0x35b151});return!_0x863ee0['body']['error']||_0x863ee0[_0x14dabb(0x243)][_0x14dabb(0x222)]['code']===0x1;}async[_0x209b20(0x1ed)](_0x44f4c2){const _0x1d7e0a=_0x209b20,{unitId:_0x16d214}=_0x44f4c2,_0x4cbda2=_0x44f4c2['threadId'],_0x2db36f={'memberId':this[_0x1d7e0a(0x20a)][_0x1d7e0a(0x24a)]()[_0x1d7e0a(0x1d1)],'unitId':_0x16d214,'threadId':_0x4cbda2,'solved':_0x44f4c2[_0x1d7e0a(0x228)]?_0x56038b[_0x1d7e0a(0x1f7)]:_0x56038b['OpenOrReOpen']},_0x106f85=await this[_0x1d7e0a(0x22e)][_0x1d7e0a(0x22b)]('/universer-api/comment/unit/'+_0x16d214+_0x1d7e0a(0x201),{'body':_0x2db36f});return!_0x106f85['body'][_0x1d7e0a(0x222)]||_0x106f85['body'][_0x1d7e0a(0x222)][_0x1d7e0a(0x226)]===0x1;}async['deleteComment'](_0x5505c2,_0x59262f,_0x530eb2,_0x5ea0c4){const _0x17d17b=_0x209b20,_0x566ee2={'memberId':(await this[_0x17d17b(0x229)][_0x17d17b(0x1fc)](_0x5505c2))[_0x17d17b(0x1d8)](),'threadId':_0x530eb2,'replyId':_0x5ea0c4,'unitId':_0x5505c2},_0x3d57cf=await this[_0x17d17b(0x22e)][_0x17d17b(0x22b)](_0x17d17b(0x215)+_0x5505c2+_0x17d17b(0x227),{'body':_0x566ee2});return!_0x3d57cf['body'][_0x17d17b(0x222)]||_0x3d57cf[_0x17d17b(0x243)][_0x17d17b(0x222)][_0x17d17b(0x226)]===0x1;}async[_0x209b20(0x23d)](_0x12cfc3,_0x56bffd,_0x22f1e4){const _0xc3ffa8=_0x209b20,_0x3db344={'unitId':_0x12cfc3,'threadId':_0x22f1e4},_0x16c06c=await this[_0xc3ffa8(0x22e)]['post'](_0xc3ffa8(0x215)+_0x12cfc3+_0xc3ffa8(0x1dc),{'body':_0x3db344}),_0x15fc2e=_0x22f1e4[_0xc3ffa8(0x1ca)](_0x41e92e=>_0x3ea105(_0x16c06c[_0xc3ffa8(0x243)][_0xc3ffa8(0x1e8)][_0x41e92e],_0x12cfc3,_0x56bffd))[_0xc3ffa8(0x1c8)](Boolean);return Object[_0xc3ffa8(0x252)](_0x16c06c[_0xc3ffa8(0x243)][_0xc3ffa8(0x1fb)])[_0xc3ffa8(0x1f6)](_0x3d523c=>{const _0x137ec0=_0xc3ffa8;this[_0x137ec0(0x20a)][_0x137ec0(0x20f)](_0x3d523c);}),_0x15fc2e;}[_0x209b20(0x244)](_0x2ff9d8){const _0x35871c=_0x209b20;return{'id':_0x2ff9d8['id'],'threadId':_0x2ff9d8['threadId'],'ref':_0x2ff9d8[_0x35871c(0x233)]};}};_0x4baae0=_0x2f06fd([_0x4c47ce(0x0,_0x393550[_0x209b20(0x203)](_0x5421e8['HTTPService'])),_0x4c47ce(0x1,_0x393550[_0x209b20(0x203)](_0x393550[_0x209b20(0x21e)])),_0x4c47ce(0x2,_0x393550[_0x209b20(0x203)](_0x2f2339[_0x209b20(0x1f0)])),_0x4c47ce(0x3,_0x393550[_0x209b20(0x203)](_0x393550[_0x209b20(0x21a)]))],_0x4baae0);var _0x3c6ab8=Object[_0x209b20(0x1cc)],_0x22b03d=Object[_0x209b20(0x224)],_0x242138=(_0xbb1a8d,_0x542d40,_0x5ef216,_0x5d556c)=>{const _0x90c1d6=_0x209b20;for(var _0x3657fd=_0x5d556c>0x1?void 0x0:_0x5d556c?_0x22b03d(_0x542d40,_0x5ef216):_0x542d40,_0x20af2d=_0xbb1a8d[_0x90c1d6(0x1fe)]-0x1,_0x392548;_0x20af2d>=0x0;_0x20af2d--)(_0x392548=_0xbb1a8d[_0x20af2d])&&(_0x3657fd=(_0x5d556c?_0x392548(_0x542d40,_0x5ef216,_0x3657fd):_0x392548(_0x3657fd))||_0x3657fd);return _0x5d556c&&_0x3657fd&&_0x3c6ab8(_0x542d40,_0x5ef216,_0x3657fd),_0x3657fd;},_0x2aad8a=(_0x7c3c75,_0x42f6b4)=>(_0x2ea1c0,_0x50ec97)=>_0x42f6b4(_0x2ea1c0,_0x50ec97,_0x7c3c75);let _0x2a08cb=class extends _0x393550[_0x209b20(0x1cf)]{constructor(_0x456c15,_0x3bb545){const _0x46c2b8=_0x209b20;super(),this[_0x46c2b8(0x20b)]=_0x456c15,this[_0x46c2b8(0x1fd)]=_0x3bb545,this[_0x46c2b8(0x210)]();}[_0x209b20(0x210)](){const _0x5cd3bc=_0x209b20;this[_0x5cd3bc(0x20b)][_0x5cd3bc(0x245)]=this[_0x5cd3bc(0x1fd)],this[_0x5cd3bc(0x20b)][_0x5cd3bc(0x23e)]=!0x1;}};_0x2a08cb=_0x242138([_0x2aad8a(0x0,_0x2c1ea2['IThreadCommentDataSourceService']),_0x2aad8a(0x1,_0x393550[_0x209b20(0x203)](_0x4baae0))],_0x2a08cb);var _0x513f2d=Object[_0x209b20(0x1cc)],_0x495638=Object[_0x209b20(0x224)],_0x3874f7=(_0x138d0a,_0x4e09f9,_0xb96fe6)=>_0x4e09f9 in _0x138d0a?_0x513f2d(_0x138d0a,_0x4e09f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb96fe6}):_0x138d0a[_0x4e09f9]=_0xb96fe6,_0x1257d0=(_0x137bc0,_0x2e3a1c,_0x3140bd,_0x407b26)=>{for(var _0x5b6856=_0x407b26>0x1?void 0x0:_0x407b26?_0x495638(_0x2e3a1c,_0x3140bd):_0x2e3a1c,_0x4432fe=_0x137bc0['length']-0x1,_0x4a45e1;_0x4432fe>=0x0;_0x4432fe--)(_0x4a45e1=_0x137bc0[_0x4432fe])&&(_0x5b6856=(_0x407b26?_0x4a45e1(_0x2e3a1c,_0x3140bd,_0x5b6856):_0x4a45e1(_0x5b6856))||_0x5b6856);return _0x407b26&&_0x5b6856&&_0x513f2d(_0x2e3a1c,_0x3140bd,_0x5b6856),_0x5b6856;},_0x5313ce=(_0x4089cf,_0x50f501)=>(_0x4c55f6,_0x242d55)=>_0x50f501(_0x4c55f6,_0x242d55,_0x4089cf),_0x3145f5=(_0x50fdf8,_0x16b10f,_0x5953e7)=>_0x3874f7(_0x50fdf8,typeof _0x16b10f!=_0x209b20(0x24c)?_0x16b10f+'':_0x16b10f,_0x5953e7);_0x18b32d[_0x209b20(0x209)]=class extends _0x393550[_0x209b20(0x242)]{constructor(_0xf2f23a=_0x448679,_0x592d87,_0x7e3958){const _0x63d7dc=_0x209b20;super(),this[_0x63d7dc(0x1ce)]=_0xf2f23a,this[_0x63d7dc(0x20c)]=_0x592d87,this['_configService']=_0x7e3958;const {..._0x1dea59}=this[_0x63d7dc(0x1ce)];this['_configService'][_0x63d7dc(0x217)](_0x835c18,_0x1dea59);}[_0x209b20(0x1e3)](){const _0x2cb9d2=_0x209b20;[[_0x4baae0],[_0x2a08cb],[_0x3d6381]][_0x2cb9d2(0x1f6)](_0x61d5b9=>{const _0x48b20b=_0x2cb9d2;this[_0x48b20b(0x20c)][_0x48b20b(0x220)](_0x61d5b9);});}[_0x209b20(0x202)](){const _0x3f0ca6=_0x209b20;this[_0x3f0ca6(0x20c)]['get'](_0x2a08cb),this[_0x3f0ca6(0x20c)][_0x3f0ca6(0x247)](_0x3d6381);}},_0x3145f5(_0x18b32d[_0x209b20(0x209)],_0x209b20(0x207),_0xe31735),_0x3145f5(_0x18b32d[_0x209b20(0x209)],_0x209b20(0x23c),_0x393550[_0x209b20(0x1d9)][_0x209b20(0x1e5)]),_0x18b32d[_0x209b20(0x209)]=_0x1257d0([_0x393550['DependentOn'](_0x4fb7ad[_0x209b20(0x1d0)],_0x2f2339[_0x209b20(0x22f)],_0x815b31[_0x209b20(0x1ec)]),_0x5313ce(0x1,_0x393550[_0x209b20(0x203)](_0x393550[_0x209b20(0x21a)])),_0x5313ce(0x2,_0x393550[_0x209b20(0x240)])],_0x18b32d['UniverThreadCommentDataSourcePlugin']),Object[_0x209b20(0x1cc)](_0x18b32d,Symbol[_0x209b20(0x230)],{'value':_0x209b20(0x1f8)});}));function _0x4669(_0x86721a,_0x15ccab){const _0x3103af=_0x3103();return _0x4669=function(_0x46697e,_0x2a23fe){_0x46697e=_0x46697e-0x1c8;let _0x2db846=_0x3103af[_0x46697e];return _0x2db846;},_0x4669(_0x86721a,_0x15ccab);}function _0x3103(){const _0x3e7e07=['map','OpenOrReOpen','defineProperty','2799140ufFZos','_config','Disposable','UniverThreadCommentUIPlugin','userID','replies','pipe','COMMENT','@univerjs/thread-comment-ui','Add','user','getMemberID','UniverInstanceType','CommentService','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','/list','dayjs','payload','function','createTimestamp','Delete','583930LRIjKx','onStarting','@univerjs/core','UNIVER_UNKNOWN','deleteComment','@univerjs-pro/collaboration-client','comments','UniverProCollaborationClient','disposeWithMe','HTTPService','UniverLicensePlugin','resolveComment','Edit','slice','CollaborationSessionService','1657872brbYmv','Solve','getUser','updateComment','UniverThreadComment','forEach','Solved','Module','customRanges','UniverProThreadCommentDatasource','users','requireSession','_threadCommentDataSource','length','70624TPbvhq','replyId','/solved','onReady','Inject','970422xRwCWQ','_threadCommentModel','find','pluginName','thread-comment-data-source.config','UniverThreadCommentDataSourcePlugin','_userService','_threadCommentDataSourceService','_injector','threadId','exports','addUser','_initDataSource','18rygSBD','_commentService','UNRECOGNIZED','reply','/universer-api/comment/unit/','content','setConfig','@univerjs/network','/add','Injector','subscribe','/reply','_init','UserManagerService','amd','add','root','error','1988518ODqIrn','getOwnPropertyDescriptor','format','code','/delete','resolved','_sessionService','addComment','post','Unknown','_initUserSync','_httpService','UniverCollaborationClientPlugin','toStringTag','rxjs','rangeType','ref','ThreadCommentModel','Reply','1BAxWow','520SNwksY','userId','parentId','/universer-api/user/list','delete','type','listComments','syncUpdateMutationToColla','comment','IConfigService','commentUpdate$','Plugin','body','saveCommentToSnapshot','dataSource','bufferTime','get','solved','unitId','getCurrentUser','45639szMKWr','symbol','getComment','getUnit','parse','YYYY/MM/DD\x20HH:mm','@univerjs/thread-comment','values','filter','personId'];_0x3103=function(){return _0x3e7e07;};return _0x3103();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/thread-comment-datasource",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1-nightly.202411301606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"rxjs": ">=7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@univerjs-pro/
|
|
49
|
-
"@univerjs
|
|
50
|
-
"@univerjs/
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/protocol": "0.1.39
|
|
53
|
-
"@univerjs/thread-comment": "0.5.
|
|
54
|
-
"@univerjs/thread-comment-ui": "0.5.
|
|
48
|
+
"@univerjs-pro/license": "0.5.1-nightly.202411301606",
|
|
49
|
+
"@univerjs/core": "0.5.1-nightly.202411301606",
|
|
50
|
+
"@univerjs/network": "0.5.1-nightly.202411301606",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.5.1-nightly.202411301606",
|
|
52
|
+
"@univerjs/protocol": "0.1.39",
|
|
53
|
+
"@univerjs/thread-comment": "0.5.1-nightly.202411301606",
|
|
54
|
+
"@univerjs/thread-comment-ui": "0.5.1-nightly.202411301606"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"rxjs": "^7.8.1",
|
|
58
|
-
"typescript": "^5.
|
|
59
|
-
"vite": "^
|
|
60
|
-
"vitest": "^2.1.
|
|
61
|
-
"@univerjs-infra/shared": "0.5.
|
|
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
|
".": {
|