@univerjs-pro/thread-comment-datasource 0.7.0-nightly.202504291607 → 0.7.0-nightly.202505011607
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/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x4fd9(){const _0x58879f=['Solved','post','add','Disposable','_httpService','pipe','YYYY/MM/DD\x20HH:mm','_commentService','map','defineProperty','deleteComment','delete','UniverInstanceType','_initUserSync','content','length','OpenOrReOpen','values','119RPzlpH','_sessionService','rangeId','getUnit','type','solved','personId','_threadCommentDataSourceService','size','_threadCommentModel','bufferTime','format','body','find','@univerjs-pro/license','_configService','syncUpdateMutationToColla','forEach','setConfig','toStringTag','unitId','getMemberID','onStarting','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','_injector','userId','createTimestamp','UniverLicensePlugin','Plugin','UNIVER_UNKNOWN','UniverCollaborationClientPlugin','@univerjs/network','/solved','Reply','get','rangeType','310632naOuRh','UniverThreadCommentDataSourcePlugin','UserManagerService','/delete','comment','Edit','payload','getOwnPropertyDescriptor','Injector','CollaborationSessionService','ThreadCommentModel','user','@univerjs-pro/collaboration-client','DependentOn','root','stringify','237516wLguuy','HTTPService','IConfigService','disposeWithMe','rxjs','396988nEeYhO','_userService','UniverThreadCommentUIPlugin','dayjs','replyId','slice','_config','users','getComment','201132jwuakp','/edit','updateComment','error','CustomRangeType','COMMENT','CommentService','/universer-api/comment/unit/','/universer-api/user/list','Unknown','ref','reply','addUser','Delete','1664260Nhxsii','@univerjs/thread-comment','@univerjs/core','resolveComment','280DitZkK','Add','filter','replies','3LymGvI','requireSession','parse','pluginName','subscribe','UNRECOGNIZED','Inject','Solve','listComments','thread-comment-data-source.config','userID','_initDataSource','325720QiyiUW','getCurrentUser','getUser','threadId','2967350Spjkcc','commentUpdate$','code'];_0x4fd9=function(){return _0x58879f;};return _0x4fd9();}const _0x10b130=_0x58aa;(function(_0x1ba2a3,_0x2a1beb){const _0x1829f0=_0x58aa,_0x5ecf5b=_0x1ba2a3();while(!![]){try{const _0x41b4f6=-parseInt(_0x1829f0(0x9a))/0x1+-parseInt(_0x1829f0(0xb1))/0x2+-parseInt(_0x1829f0(0xb9))/0x3*(-parseInt(_0x1829f0(0x95))/0x4)+parseInt(_0x1829f0(0xc9))/0x5+-parseInt(_0x1829f0(0x85))/0x6*(-parseInt(_0x1829f0(0xde))/0x7)+-parseInt(_0x1829f0(0xc5))/0x8+parseInt(_0x1829f0(0xa3))/0x9*(parseInt(_0x1829f0(0xb5))/0xa);if(_0x41b4f6===_0x2a1beb)break;else _0x5ecf5b['push'](_0x5ecf5b['shift']());}catch(_0x13bb1b){_0x5ecf5b['push'](_0x5ecf5b['shift']());}}}(_0x4fd9,0xd9034));Object[_0x10b130(0xd5)](exports,Symbol[_0x10b130(0x74)],{'value':'Module'});const b=require(_0x10b130(0x91)),T=require(_0x10b130(0xec)),c=require(_0x10b130(0xb3)),j=require('@univerjs/thread-comment-ui'),M=require(_0x10b130(0xb2)),w=require(_0x10b130(0x99)),P=require(_0x10b130(0x80)),U=_0x10b130(0x78);var I=(_0x47575e=>(_0x47575e[_0x47575e[_0x10b130(0xdc)]=0x0]=_0x10b130(0xdc),_0x47575e[_0x47575e['Solved']=0x1]=_0x10b130(0xcc),_0x47575e[_0x47575e[_0x10b130(0xbe)]=-0x1]=_0x10b130(0xbe),_0x47575e))(I||{}),v=(_0x2ecda8=>(_0x2ecda8[_0x2ecda8[_0x10b130(0xac)]=0x0]=_0x10b130(0xac),_0x2ecda8[_0x2ecda8[_0x10b130(0xb6)]=0x1]=_0x10b130(0xb6),_0x2ecda8[_0x2ecda8[_0x10b130(0x82)]=0x2]=_0x10b130(0x82),_0x2ecda8[_0x2ecda8[_0x10b130(0x8a)]=0x3]=_0x10b130(0x8a),_0x2ecda8[_0x2ecda8['Delete']=0x4]=_0x10b130(0xb0),_0x2ecda8[_0x2ecda8[_0x10b130(0xc0)]=0x5]=_0x10b130(0xc0),_0x2ecda8[_0x2ecda8[_0x10b130(0xbe)]=-0x1]=_0x10b130(0xbe),_0x2ecda8))(v||{});const f=_0x658ae4=>c[_0x10b130(0x9d)](new Date(+_0x658ae4))[_0x10b130(0xe9)](_0x10b130(0xd2)),R=async(_0x3f07c3,_0x1df1f5)=>{const _0x5f52e2=_0x10b130,_0x1f09da=_0x3f07c3[_0x5f52e2(0x83)](c['UserManagerService']),_0x596254=_0x3f07c3[_0x5f52e2(0x83)](P['HTTPService']);_0x1df1f5[_0x5f52e2(0xef)](_0x5b7f5d=>{const _0x4a4a6e=_0x5f52e2;_0x1f09da[_0x4a4a6e(0xc7)](_0x5b7f5d)&&_0x1df1f5[_0x4a4a6e(0xd7)](_0x5b7f5d);}),_0x1df1f5[_0x5f52e2(0xe6)]&&(await _0x596254['get'](_0x5f52e2(0xab),{'params':{'userIDs':[..._0x1df1f5]}}))[_0x5f52e2(0xea)][_0x5f52e2(0xa1)][_0x5f52e2(0xef)](_0xf84f34=>{const _0x535f64=_0x5f52e2;_0xf84f34&&_0x1f09da[_0x535f64(0xaf)](_0xf84f34);});};function _0x58aa(_0x265a73,_0x39b447){const _0x4fd9a4=_0x4fd9();return _0x58aa=function(_0x58aae5,_0x301b7e){_0x58aae5=_0x58aae5-0x74;let _0x5f0b9b=_0x4fd9a4[_0x58aae5];return _0x5f0b9b;},_0x58aa(_0x265a73,_0x39b447);}var $=Object[_0x10b130(0x8c)],E=(_0x534c07,_0x22ef74,_0x2e4119,_0x41c02d)=>{const _0x44408a=_0x10b130;for(var _0x257e40=_0x41c02d>0x1?void 0x0:_0x41c02d?$(_0x22ef74,_0x2e4119):_0x22ef74,_0x4cc885=_0x534c07[_0x44408a(0xdb)]-0x1,_0x424cfc;_0x4cc885>=0x0;_0x4cc885--)(_0x424cfc=_0x534c07[_0x4cc885])&&(_0x257e40=_0x424cfc(_0x257e40)||_0x257e40);return _0x257e40;},S=(_0x3aef5d,_0x3afdd7)=>(_0x329fdd,_0x503744)=>_0x3afdd7(_0x329fdd,_0x503744,_0x3aef5d);let p=class extends c[_0x10b130(0xcf)]{constructor(_0x37086c,_0x30a34a,_0x28ef05,_0xfbbc9f){const _0x34e736=_0x10b130;super(),this['_commentService']=_0x37086c,this['_threadCommentModel']=_0x30a34a,this[_0x34e736(0x9b)]=_0x28ef05,this[_0x34e736(0x79)]=_0xfbbc9f,this['_init'](),this[_0x34e736(0xd9)]();}[_0x10b130(0xd9)](){const _0x2cc82c=_0x10b130;this[_0x2cc82c(0x98)](this['_threadCommentModel'][_0x2cc82c(0xca)][_0x2cc82c(0xd1)](w[_0x2cc82c(0xe8)](0x10))[_0x2cc82c(0xbd)](_0x135a60=>{const _0xfe5af3=_0x2cc82c,_0x2e6c31=new Set();_0x135a60[_0xfe5af3(0xef)](_0x115674=>{const _0x156831=_0xfe5af3;switch(_0x115674[_0x156831(0xe2)]){case _0x156831(0xce):{const _0x2ac142=_0x115674[_0x156831(0x8b)][_0x156831(0xe4)];_0x2e6c31['add'](_0x2ac142);break;}}}),R(this[_0xfe5af3(0x79)],_0x2e6c31);}));}['_init'](){const _0x35ad73=_0x10b130;this[_0x35ad73(0x98)](this[_0x35ad73(0xd3)][_0x35ad73(0xca)][_0x35ad73(0xbd)](async _0x58fc5c=>{const _0x1d6f85=_0x35ad73;var _0x4e2d0e,_0x26db5c,_0x3bba4d,_0x5025f1;const _0x250b25=(_0x4e2d0e=this[_0x1d6f85(0xe7)][_0x1d6f85(0xe1)](_0x58fc5c[_0x1d6f85(0x75)])[_0x1d6f85(0xeb)](_0x534fc4=>_0x534fc4['threadId']===_0x58fc5c[_0x1d6f85(0xc8)]))==null?void 0x0:_0x4e2d0e[_0x1d6f85(0x93)];if(!_0x250b25)return;const {unitId:_0x537dfd,subUnitId:_0x299d83}=_0x250b25;switch(_0x58fc5c[_0x1d6f85(0x90)]&&this['_userService'][_0x1d6f85(0xaf)](_0x58fc5c[_0x1d6f85(0x90)]),_0x58fc5c[_0x1d6f85(0xe2)]){case v[_0x1d6f85(0xb6)]:break;case v[_0x1d6f85(0x82)]:{this['_threadCommentModel']['addComment'](_0x537dfd,_0x299d83,{'unitId':_0x537dfd,'subUnitId':_0x299d83,'ref':'','id':_0x58fc5c[_0x1d6f85(0x9e)],'dT':f(+_0x58fc5c[_0x1d6f85(0x7b)]),'threadId':_0x58fc5c[_0x1d6f85(0xc8)],'personId':(_0x3bba4d=(_0x26db5c=_0x58fc5c[_0x1d6f85(0x90)])==null?void 0x0:_0x26db5c[_0x1d6f85(0xc3)])!=null?_0x3bba4d:_0x58fc5c['userId'],'text':JSON['parse'](_0x58fc5c[_0x1d6f85(0xda)]),'parentId':_0x250b25['id']});break;}case v['Delete']:{const _0x2561a5=this[_0x1d6f85(0xe7)][_0x1d6f85(0xa2)](_0x537dfd,_0x299d83,_0x58fc5c['replyId']);_0x2561a5&&_0x2561a5['parentId']&&this['_threadCommentModel'][_0x1d6f85(0xd6)](_0x537dfd,_0x299d83,_0x58fc5c['replyId']);break;}case v[_0x1d6f85(0x8a)]:{this[_0x1d6f85(0xe7)][_0x1d6f85(0xa5)](_0x537dfd,_0x299d83,{'commentId':_0x58fc5c[_0x1d6f85(0x9e)],'text':JSON['parse'](_0x58fc5c['content'])});break;}case v[_0x1d6f85(0xc0)]:{const _0x22bb67=(_0x5025f1=this['_threadCommentModel']['getUnit'](_0x58fc5c['unitId'])[_0x1d6f85(0xeb)](_0x11ee9=>_0x11ee9[_0x1d6f85(0xc8)]===_0x58fc5c['threadId']))==null?void 0x0:_0x5025f1[_0x1d6f85(0x93)];_0x22bb67&&this[_0x1d6f85(0xe7)][_0x1d6f85(0xb4)](_0x537dfd,_0x299d83,_0x22bb67['id'],_0x58fc5c[_0x1d6f85(0xe3)]===I['Solved']);break;}}}));}};p=E([S(0x0,c[_0x10b130(0xbf)](b[_0x10b130(0xa9)])),S(0x1,c[_0x10b130(0xbf)](M[_0x10b130(0x8f)])),S(0x2,c[_0x10b130(0xbf)](c[_0x10b130(0x87)])),S(0x3,c[_0x10b130(0xbf)](c[_0x10b130(0x8d)]))],p);const q=_0x10b130(0xc2),D={};var A=Object[_0x10b130(0x8c)],x=(_0x519b5a,_0x3b7abe,_0x10f75e,_0x1f7319)=>{for(var _0x4b614b=_0x1f7319>0x1?void 0x0:_0x1f7319?A(_0x3b7abe,_0x10f75e):_0x3b7abe,_0x5bad20=_0x519b5a['length']-0x1,_0x58c76d;_0x5bad20>=0x0;_0x5bad20--)(_0x58c76d=_0x519b5a[_0x5bad20])&&(_0x4b614b=_0x58c76d(_0x4b614b)||_0x4b614b);return _0x4b614b;},_=(_0x1efa33,_0x4f725d)=>(_0x70cfea,_0x11949a)=>_0x4f725d(_0x70cfea,_0x11949a,_0x1efa33);function Y(_0x182771,_0x367d8b){const _0x45f929=_0x10b130,_0x34d1e7=_0x182771[_0x45f929(0xb8)][0x0];return{..._0x367d8b,'id':_0x34d1e7['replyId'],'resolved':_0x182771[_0x45f929(0xe3)]===0x1,'dT':f(_0x34d1e7[_0x45f929(0x7b)]),'personId':_0x34d1e7[_0x45f929(0x7a)],'threadId':_0x34d1e7[_0x45f929(0xc8)]};}function G(_0x409390,_0x1161a3,_0x3a4a33){const _0x24c030=_0x10b130;var _0x9b5e6f,_0x3d5be1;if(((_0x3d5be1=(_0x9b5e6f=_0x409390==null?void 0x0:_0x409390[_0x24c030(0xb8)])==null?void 0x0:_0x9b5e6f[_0x24c030(0xdb)])!=null?_0x3d5be1:0x0)>0x0){const _0x109d0c=(_0x2dde5c,_0x27bdc4)=>({'id':_0x2dde5c[_0x24c030(0x9e)],'threadId':_0x2dde5c[_0x24c030(0xc8)],'dT':f(_0x2dde5c[_0x24c030(0x7b)]),'personId':_0x2dde5c[_0x24c030(0x7a)],'resolved':_0x409390[_0x24c030(0xe3)]===I[_0x24c030(0xcc)],'unitId':_0x1161a3,'subUnitId':_0x3a4a33,'text':JSON[_0x24c030(0xbb)](_0x2dde5c['content']),'parentId':_0x27bdc4}),_0x42de49=_0x109d0c(_0x409390[_0x24c030(0xb8)][0x0]);return{..._0x42de49,'children':_0x409390[_0x24c030(0xb8)][_0x24c030(0x9f)](0x1)[_0x24c030(0xd4)](_0x25ca08=>_0x109d0c(_0x25ca08,_0x42de49['id']))};}return null;}let g=class{constructor(_0x4b7ee7,_0x1051ec,_0x5a32a9,_0xb50a43){const _0x3728cf=_0x10b130;this['_httpService']=_0x4b7ee7,this[_0x3728cf(0x9b)]=_0x1051ec,this['_sessionService']=_0x5a32a9,this['_injector']=_0xb50a43;}async['addComment'](_0x367175){const _0x5eabb5=_0x10b130;var _0x208ef4,_0x3c8a5a;const {parentId:_0x232636,unitId:_0x3f1518,text:_0x200763,threadId:_0x1a7cab}=_0x367175,_0x1f127d=(_0x3c8a5a=(_0x208ef4=_0x200763['customRanges'])==null?void 0x0:_0x208ef4[_0x5eabb5(0xb7)](_0x26d6b8=>_0x26d6b8['rangeType']===c[_0x5eabb5(0xa7)][_0x5eabb5(0xa8)])[_0x5eabb5(0xd4)](_0x1974d6=>_0x1974d6[_0x5eabb5(0xe0)]))!=null?_0x3c8a5a:[],_0x855977=JSON[_0x5eabb5(0x94)](_0x200763),_0x44cb51=(await this[_0x5eabb5(0xdf)][_0x5eabb5(0xba)](_0x3f1518))[_0x5eabb5(0x76)]();if(_0x232636){const _0x5771ed={'memberId':_0x44cb51,'unitId':_0x3f1518,'content':_0x855977,'mention':_0x1f127d,'threadId':_0x1a7cab},_0x1d2399=(await this[_0x5eabb5(0xd0)][_0x5eabb5(0xcd)](_0x5eabb5(0xaa)+_0x3f1518+'/reply',{'body':_0x5771ed}))[_0x5eabb5(0xea)][_0x5eabb5(0xae)];return{..._0x367175,'id':_0x1d2399['replyId'],'dT':c[_0x5eabb5(0x9d)](+_0x1d2399['createTimestamp'])[_0x5eabb5(0xe9)](_0x5eabb5(0xd2)),'personId':_0x1d2399[_0x5eabb5(0x7a)]};}else{const _0x4be223={'memberId':_0x44cb51,'unitId':_0x3f1518,'content':_0x855977,'mention':_0x1f127d},_0x2c8ead=await this[_0x5eabb5(0xd0)][_0x5eabb5(0xcd)](_0x5eabb5(0xaa)+_0x3f1518+'/add',{'body':_0x4be223});return Y(_0x2c8ead[_0x5eabb5(0xea)][_0x5eabb5(0x89)],_0x367175);}}async['updateComment'](_0x26e151){const _0x2a1349=_0x10b130;var _0x5c29b3,_0x245137;const {text:_0x4e7600,unitId:_0x503a38}=_0x26e151,_0x49c7fb=(_0x245137=(_0x5c29b3=_0x4e7600['customRanges'])==null?void 0x0:_0x5c29b3[_0x2a1349(0xb7)](_0x56066a=>_0x56066a[_0x2a1349(0x84)]===c[_0x2a1349(0xa7)][_0x2a1349(0xa8)])['map'](_0x1252ba=>_0x1252ba[_0x2a1349(0xe0)]))!=null?_0x245137:[],_0x1be882=JSON[_0x2a1349(0x94)](_0x4e7600),_0x51961c=_0x26e151['threadId'],_0x36bdcc=_0x26e151['id'],_0x3b534d={'memberId':(await this[_0x2a1349(0xdf)]['requireSession'](_0x503a38))['getMemberID'](),'unitId':_0x503a38,'threadId':_0x51961c,'mention':_0x49c7fb,'content':_0x1be882,'replyId':_0x36bdcc},_0x4a2393=await this[_0x2a1349(0xd0)][_0x2a1349(0xcd)]('/universer-api/comment/unit/'+_0x503a38+_0x2a1349(0xa4),{'body':_0x3b534d});return!_0x4a2393[_0x2a1349(0xea)][_0x2a1349(0xa6)]||_0x4a2393['body'][_0x2a1349(0xa6)][_0x2a1349(0xcb)]===0x1;}async[_0x10b130(0xb4)](_0x56fd15){const _0x53e6b4=_0x10b130,{unitId:_0x77dd7f}=_0x56fd15,_0x3e72fc=_0x56fd15['threadId'],_0x2d3277={'memberId':this[_0x53e6b4(0x9b)][_0x53e6b4(0xc6)]()[_0x53e6b4(0xc3)],'unitId':_0x77dd7f,'threadId':_0x3e72fc,'solved':_0x56fd15['resolved']?I[_0x53e6b4(0xcc)]:I[_0x53e6b4(0xdc)]},_0x5a9c6d=await this['_httpService'][_0x53e6b4(0xcd)](_0x53e6b4(0xaa)+_0x77dd7f+_0x53e6b4(0x81),{'body':_0x2d3277});return!_0x5a9c6d[_0x53e6b4(0xea)]['error']||_0x5a9c6d[_0x53e6b4(0xea)][_0x53e6b4(0xa6)][_0x53e6b4(0xcb)]===0x1;}async[_0x10b130(0xd6)](_0xd001b1,_0x231afc,_0x4652ba,_0x3a07b3){const _0xe570b6=_0x10b130,_0x1b3170={'memberId':(await this['_sessionService'][_0xe570b6(0xba)](_0xd001b1))['getMemberID'](),'threadId':_0x4652ba,'replyId':_0x3a07b3,'unitId':_0xd001b1},_0xf13846=await this['_httpService']['post'](_0xe570b6(0xaa)+_0xd001b1+_0xe570b6(0x88),{'body':_0x1b3170});return!_0xf13846[_0xe570b6(0xea)][_0xe570b6(0xa6)]||_0xf13846[_0xe570b6(0xea)][_0xe570b6(0xa6)][_0xe570b6(0xcb)]===0x1;}async[_0x10b130(0xc1)](_0x717263,_0x2ccb06,_0x208ca9){const _0x2ef74d=_0x10b130,_0x5176c7={'unitId':_0x717263,'threadId':_0x208ca9},_0x56b8be=await this[_0x2ef74d(0xd0)][_0x2ef74d(0xcd)]('/universer-api/comment/unit/'+_0x717263+'/list',{'body':_0x5176c7}),_0x4f0f35=_0x208ca9[_0x2ef74d(0xd4)](_0x4fe541=>G(_0x56b8be['body']['comments'][_0x4fe541],_0x717263,_0x2ccb06))[_0x2ef74d(0xb7)](Boolean);return Object[_0x2ef74d(0xdd)](_0x56b8be['body'][_0x2ef74d(0xa1)])[_0x2ef74d(0xef)](_0x4871b5=>{const _0x4928d1=_0x2ef74d;this[_0x4928d1(0x9b)][_0x4928d1(0xaf)](_0x4871b5);}),_0x4f0f35;}['saveCommentToSnapshot'](_0x5ddf70){const _0x3ae560=_0x10b130;return{'id':_0x5ddf70['id'],'threadId':_0x5ddf70['threadId'],'ref':_0x5ddf70[_0x3ae560(0xad)]};}};g=x([_(0x0,c[_0x10b130(0xbf)](P[_0x10b130(0x96)])),_(0x1,c[_0x10b130(0xbf)](c[_0x10b130(0x87)])),_(0x2,c[_0x10b130(0xbf)](b[_0x10b130(0x8e)])),_(0x3,c['Inject'](c[_0x10b130(0x8d)]))],g);var H=Object['getOwnPropertyDescriptor'],J=(_0x4b16fe,_0x39c80c,_0x449f64,_0x23d5f9)=>{const _0x47cdc4=_0x10b130;for(var _0x54723e=_0x23d5f9>0x1?void 0x0:_0x23d5f9?H(_0x39c80c,_0x449f64):_0x39c80c,_0x9f9d8c=_0x4b16fe[_0x47cdc4(0xdb)]-0x1,_0x337dd8;_0x9f9d8c>=0x0;_0x9f9d8c--)(_0x337dd8=_0x4b16fe[_0x9f9d8c])&&(_0x54723e=_0x337dd8(_0x54723e)||_0x54723e);return _0x54723e;},y=(_0x1c5ec4,_0x5683ca)=>(_0x407bc0,_0x559865)=>_0x5683ca(_0x407bc0,_0x559865,_0x1c5ec4);let C=class extends c[_0x10b130(0xcf)]{constructor(_0x22da11,_0x5f1382){const _0x2888f3=_0x10b130;super(),this[_0x2888f3(0xe5)]=_0x22da11,this['_threadCommentDataSource']=_0x5f1382,this[_0x2888f3(0xc4)]();}[_0x10b130(0xc4)](){const _0x2666e3=_0x10b130;this[_0x2666e3(0xe5)]['dataSource']=this['_threadCommentDataSource'],this[_0x2666e3(0xe5)][_0x2666e3(0xee)]=!0x1;}};C=J([y(0x0,M['IThreadCommentDataSourceService']),y(0x1,c['Inject'](g))],C);var F=Object['defineProperty'],L=Object['getOwnPropertyDescriptor'],Z=(_0x5e8a97,_0x39381b,_0x11196b)=>_0x39381b in _0x5e8a97?F(_0x5e8a97,_0x39381b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11196b}):_0x5e8a97[_0x39381b]=_0x11196b,W=(_0x45d107,_0xe2d280,_0x5c3fc5,_0x49ed4b)=>{const _0x1fe187=_0x10b130;for(var _0x3a4e5d=_0x49ed4b>0x1?void 0x0:_0x49ed4b?L(_0xe2d280,_0x5c3fc5):_0xe2d280,_0x2c266a=_0x45d107[_0x1fe187(0xdb)]-0x1,_0x78c81;_0x2c266a>=0x0;_0x2c266a--)(_0x78c81=_0x45d107[_0x2c266a])&&(_0x3a4e5d=_0x78c81(_0x3a4e5d)||_0x3a4e5d);return _0x3a4e5d;},O=(_0x40c47d,_0x5cca60)=>(_0xeb84c2,_0x3db740)=>_0x5cca60(_0xeb84c2,_0x3db740,_0x40c47d),N=(_0x3c544b,_0x387f5b,_0x2066e5)=>Z(_0x3c544b,typeof _0x387f5b!='symbol'?_0x387f5b+'':_0x387f5b,_0x2066e5);exports['UniverThreadCommentDataSourcePlugin']=class extends c[_0x10b130(0x7d)]{constructor(_0x2fbe53=D,_0x1f23af,_0x18c81d){const _0x1a8b87=_0x10b130;super(),this[_0x1a8b87(0xa0)]=_0x2fbe53,this['_injector']=_0x1f23af,this[_0x1a8b87(0xed)]=_0x18c81d;const {..._0x491d03}=c['merge']({},D,this['_config']);this[_0x1a8b87(0xed)][_0x1a8b87(0xf0)](q,_0x491d03);}[_0x10b130(0x77)](){const _0x342c80=_0x10b130;[[g],[C],[p]][_0x342c80(0xef)](_0x2c1180=>{const _0x2551d4=_0x342c80;this['_injector'][_0x2551d4(0xce)](_0x2c1180);});}['onReady'](){const _0x5cf8b4=_0x10b130;this['_injector'][_0x5cf8b4(0x83)](C),this[_0x5cf8b4(0x79)][_0x5cf8b4(0x83)](p);}},N(exports[_0x10b130(0x86)],_0x10b130(0xbc),U),N(exports[_0x10b130(0x86)],_0x10b130(0xe2),c[_0x10b130(0xd8)][_0x10b130(0x7e)]),exports[_0x10b130(0x86)]=W([c[_0x10b130(0x92)](j[_0x10b130(0x9c)],b[_0x10b130(0x7f)],T[_0x10b130(0x7c)]),O(0x1,c['Inject'](c[_0x10b130(0x8d)])),O(0x2,c[_0x10b130(0x97)])],exports[_0x10b130(0x86)]);
|
|
1
|
+
'use strict';const _0x20b4a1=_0x23b7;(function(_0x15e533,_0x47793e){const _0x209335=_0x23b7,_0x296b10=_0x15e533();while(!![]){try{const _0x10b906=-parseInt(_0x209335(0x1f5))/0x1*(parseInt(_0x209335(0x213))/0x2)+-parseInt(_0x209335(0x249))/0x3+parseInt(_0x209335(0x22f))/0x4+-parseInt(_0x209335(0x21a))/0x5+-parseInt(_0x209335(0x1e7))/0x6+parseInt(_0x209335(0x23b))/0x7*(-parseInt(_0x209335(0x204))/0x8)+parseInt(_0x209335(0x1f7))/0x9*(parseInt(_0x209335(0x1e4))/0xa);if(_0x10b906===_0x47793e)break;else _0x296b10['push'](_0x296b10['shift']());}catch(_0x347a5d){_0x296b10['push'](_0x296b10['shift']());}}}(_0x5b0c,0xca1c9));function _0x5b0c(){const _0x15be4e=['_threadCommentDataSourceService','COMMENT','getUnit','length','UniverInstanceType','setConfig','@univerjs/network','UniverCollaborationClientPlugin','dayjs','code','pipe','8YxcEvM','ref','Plugin','replies','slice','_commentService','ThreadCommentModel','user','rangeId','_configService','syncUpdateMutationToColla','UniverLicensePlugin','add','/reply','Reply','94kqNEWp','_httpService','IConfigService','Add','users','getMemberID','getUser','3575135LbjJmW','getOwnPropertyDescriptor','filter','stringify','@univerjs/core','defineProperty','post','@univerjs-pro/collaboration-client','UserManagerService','/solved','addComment','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','threadId','find','resolved','Unknown','Solved','Disposable','Injector','customRanges','OpenOrReOpen','3454224FhacEi','thread-comment-data-source.config','_injector','error','_threadCommentModel','merge','CustomRangeType','UNIVER_UNKNOWN','UNRECOGNIZED','replyId','body','solved','7534282uepJqf','Delete','addUser','content','parentId','Edit','type','/universer-api/comment/unit/','map','resolveComment','@univerjs-pro/license','dataSource','_initDataSource','@univerjs/thread-comment','2023245pSFjyZ','delete','format','UniverThreadCommentUIPlugin','Inject','listComments','commentUpdate$','comment','/edit','get','userId','_sessionService','_threadCommentDataSource','size','rxjs','Solve','CollaborationSessionService','onReady','/delete','_config','UniverThreadCommentDataSourcePlugin','_initUserSync','createTimestamp','userID','80EwSyaV','root','DependentOn','9328824gABzeo','personId','reply','parse','YYYY/MM/DD\x20HH:mm','Module','unitId','HTTPService','disposeWithMe','CommentService','/list','forEach','values','rangeType','5689drqqJQ','subscribe','4783779jqMstj','_userService'];_0x5b0c=function(){return _0x15be4e;};return _0x5b0c();}Object[_0x20b4a1(0x21f)](exports,Symbol['toStringTag'],{'value':_0x20b4a1(0x1ec)});const b=require(_0x20b4a1(0x221)),T=require(_0x20b4a1(0x245)),c=require(_0x20b4a1(0x21e)),j=require('@univerjs/thread-comment-ui'),M=require(_0x20b4a1(0x248)),w=require(_0x20b4a1(0x257)),P=require(_0x20b4a1(0x1ff)),U=_0x20b4a1(0x225);var I=(_0x14fafb=>(_0x14fafb[_0x14fafb[_0x20b4a1(0x22e)]=0x0]='OpenOrReOpen',_0x14fafb[_0x14fafb[_0x20b4a1(0x22a)]=0x1]=_0x20b4a1(0x22a),_0x14fafb[_0x14fafb[_0x20b4a1(0x237)]=-0x1]=_0x20b4a1(0x237),_0x14fafb))(I||{}),v=(_0x7b134b=>(_0x7b134b[_0x7b134b[_0x20b4a1(0x229)]=0x0]=_0x20b4a1(0x229),_0x7b134b[_0x7b134b[_0x20b4a1(0x216)]=0x1]=_0x20b4a1(0x216),_0x7b134b[_0x7b134b[_0x20b4a1(0x212)]=0x2]=_0x20b4a1(0x212),_0x7b134b[_0x7b134b[_0x20b4a1(0x240)]=0x3]=_0x20b4a1(0x240),_0x7b134b[_0x7b134b[_0x20b4a1(0x23c)]=0x4]='Delete',_0x7b134b[_0x7b134b[_0x20b4a1(0x258)]=0x5]='Solve',_0x7b134b[_0x7b134b[_0x20b4a1(0x237)]=-0x1]=_0x20b4a1(0x237),_0x7b134b))(v||{});function _0x23b7(_0x518170,_0xd3029d){const _0x5b0ced=_0x5b0c();return _0x23b7=function(_0x23b7b9,_0x195d92){_0x23b7b9=_0x23b7b9-0x1e4;let _0x41c345=_0x5b0ced[_0x23b7b9];return _0x41c345;},_0x23b7(_0x518170,_0xd3029d);}const f=_0x2bb4d9=>c[_0x20b4a1(0x201)](new Date(+_0x2bb4d9))['format'](_0x20b4a1(0x1eb)),R=async(_0x55c772,_0x154d7b)=>{const _0x10c749=_0x20b4a1,_0x22f057=_0x55c772[_0x10c749(0x252)](c[_0x10c749(0x222)]),_0x425ac3=_0x55c772[_0x10c749(0x252)](P[_0x10c749(0x1ee)]);_0x154d7b['forEach'](_0x43bcca=>{const _0x4e1af6=_0x10c749;_0x22f057[_0x4e1af6(0x219)](_0x43bcca)&&_0x154d7b[_0x4e1af6(0x24a)](_0x43bcca);}),_0x154d7b[_0x10c749(0x256)]&&(await _0x425ac3['get']('/universer-api/user/list',{'params':{'userIDs':[..._0x154d7b]}}))['body']['users'][_0x10c749(0x1f2)](_0xad9375=>{const _0x16bef8=_0x10c749;_0xad9375&&_0x22f057[_0x16bef8(0x23d)](_0xad9375);});};var $=Object[_0x20b4a1(0x21b)],E=(_0x20b754,_0x4d56d8,_0x38cd96,_0x4761db)=>{const _0x1119de=_0x20b4a1;for(var _0x2ce0fb=_0x4761db>0x1?void 0x0:_0x4761db?$(_0x4d56d8,_0x38cd96):_0x4d56d8,_0x1fc82a=_0x20b754[_0x1119de(0x1fc)]-0x1,_0x230258;_0x1fc82a>=0x0;_0x1fc82a--)(_0x230258=_0x20b754[_0x1fc82a])&&(_0x2ce0fb=_0x230258(_0x2ce0fb)||_0x2ce0fb);return _0x2ce0fb;},S=(_0x246bcb,_0x5ae200)=>(_0x50f138,_0x1bf3c0)=>_0x5ae200(_0x50f138,_0x1bf3c0,_0x246bcb);let p=class extends c[_0x20b4a1(0x22b)]{constructor(_0x5c1c72,_0x2d57f8,_0x2d2cee,_0x2b5496){const _0x13ab2e=_0x20b4a1;super(),this[_0x13ab2e(0x209)]=_0x5c1c72,this[_0x13ab2e(0x233)]=_0x2d57f8,this[_0x13ab2e(0x1f8)]=_0x2d2cee,this[_0x13ab2e(0x231)]=_0x2b5496,this['_init'](),this['_initUserSync']();}[_0x20b4a1(0x25e)](){const _0x294a4e=_0x20b4a1;this[_0x294a4e(0x1ef)](this[_0x294a4e(0x233)][_0x294a4e(0x24f)][_0x294a4e(0x203)](w['bufferTime'](0x10))[_0x294a4e(0x1f6)](_0x5bd47e=>{const _0x157612=_0x294a4e,_0x1b91e6=new Set();_0x5bd47e[_0x157612(0x1f2)](_0x3d6a7e=>{const _0x473700=_0x157612;switch(_0x3d6a7e[_0x473700(0x241)]){case'add':{const _0x7f5484=_0x3d6a7e['payload'][_0x473700(0x1e8)];_0x1b91e6[_0x473700(0x210)](_0x7f5484);break;}}}),R(this['_injector'],_0x1b91e6);}));}['_init'](){const _0x1d8bfd=_0x20b4a1;this[_0x1d8bfd(0x1ef)](this[_0x1d8bfd(0x209)][_0x1d8bfd(0x24f)][_0x1d8bfd(0x1f6)](async _0x4f9b6b=>{const _0x5a22ce=_0x1d8bfd;var _0x18001c,_0x4a3b09,_0x5e2f6e,_0x1b2a83;const _0x141795=(_0x18001c=this[_0x5a22ce(0x233)][_0x5a22ce(0x1fb)](_0x4f9b6b[_0x5a22ce(0x1ed)])[_0x5a22ce(0x227)](_0x546aed=>_0x546aed[_0x5a22ce(0x226)]===_0x4f9b6b[_0x5a22ce(0x226)]))==null?void 0x0:_0x18001c[_0x5a22ce(0x1e5)];if(!_0x141795)return;const {unitId:_0x2c39da,subUnitId:_0x271f36}=_0x141795;switch(_0x4f9b6b['user']&&this['_userService']['addUser'](_0x4f9b6b['user']),_0x4f9b6b[_0x5a22ce(0x241)]){case v[_0x5a22ce(0x216)]:break;case v[_0x5a22ce(0x212)]:{this['_threadCommentModel'][_0x5a22ce(0x224)](_0x2c39da,_0x271f36,{'unitId':_0x2c39da,'subUnitId':_0x271f36,'ref':'','id':_0x4f9b6b[_0x5a22ce(0x238)],'dT':f(+_0x4f9b6b[_0x5a22ce(0x25f)]),'threadId':_0x4f9b6b[_0x5a22ce(0x226)],'personId':(_0x5e2f6e=(_0x4a3b09=_0x4f9b6b[_0x5a22ce(0x20b)])==null?void 0x0:_0x4a3b09[_0x5a22ce(0x260)])!=null?_0x5e2f6e:_0x4f9b6b[_0x5a22ce(0x253)],'text':JSON[_0x5a22ce(0x1ea)](_0x4f9b6b[_0x5a22ce(0x23e)]),'parentId':_0x141795['id']});break;}case v[_0x5a22ce(0x23c)]:{const _0x404e6c=this[_0x5a22ce(0x233)]['getComment'](_0x2c39da,_0x271f36,_0x4f9b6b[_0x5a22ce(0x238)]);_0x404e6c&&_0x404e6c[_0x5a22ce(0x23f)]&&this['_threadCommentModel']['deleteComment'](_0x2c39da,_0x271f36,_0x4f9b6b['replyId']);break;}case v[_0x5a22ce(0x240)]:{this[_0x5a22ce(0x233)]['updateComment'](_0x2c39da,_0x271f36,{'commentId':_0x4f9b6b['replyId'],'text':JSON[_0x5a22ce(0x1ea)](_0x4f9b6b[_0x5a22ce(0x23e)])});break;}case v['Solve']:{const _0x43b2f6=(_0x1b2a83=this[_0x5a22ce(0x233)][_0x5a22ce(0x1fb)](_0x4f9b6b[_0x5a22ce(0x1ed)])['find'](_0x26cb49=>_0x26cb49[_0x5a22ce(0x226)]===_0x4f9b6b[_0x5a22ce(0x226)]))==null?void 0x0:_0x1b2a83[_0x5a22ce(0x1e5)];_0x43b2f6&&this[_0x5a22ce(0x233)][_0x5a22ce(0x244)](_0x2c39da,_0x271f36,_0x43b2f6['id'],_0x4f9b6b[_0x5a22ce(0x23a)]===I['Solved']);break;}}}));}};p=E([S(0x0,c['Inject'](b[_0x20b4a1(0x1f0)])),S(0x1,c[_0x20b4a1(0x24d)](M[_0x20b4a1(0x20a)])),S(0x2,c[_0x20b4a1(0x24d)](c['UserManagerService'])),S(0x3,c[_0x20b4a1(0x24d)](c[_0x20b4a1(0x22c)]))],p);const q=_0x20b4a1(0x230),D={};var A=Object['getOwnPropertyDescriptor'],x=(_0x26b6d7,_0xb1413e,_0x32fbb9,_0x2c9497)=>{const _0x11f164=_0x20b4a1;for(var _0x5112e8=_0x2c9497>0x1?void 0x0:_0x2c9497?A(_0xb1413e,_0x32fbb9):_0xb1413e,_0x115e69=_0x26b6d7[_0x11f164(0x1fc)]-0x1,_0x3c3705;_0x115e69>=0x0;_0x115e69--)(_0x3c3705=_0x26b6d7[_0x115e69])&&(_0x5112e8=_0x3c3705(_0x5112e8)||_0x5112e8);return _0x5112e8;},_=(_0x38be08,_0x22cca9)=>(_0x546cd2,_0x10ec2a)=>_0x22cca9(_0x546cd2,_0x10ec2a,_0x38be08);function Y(_0x5d02f2,_0x6a11ec){const _0x4d68b9=_0x20b4a1,_0x31930e=_0x5d02f2[_0x4d68b9(0x207)][0x0];return{..._0x6a11ec,'id':_0x31930e[_0x4d68b9(0x238)],'resolved':_0x5d02f2[_0x4d68b9(0x23a)]===0x1,'dT':f(_0x31930e['createTimestamp']),'personId':_0x31930e['userId'],'threadId':_0x31930e['threadId']};}function G(_0x42f6db,_0x59e0a4,_0x44d2e0){const _0x4765a0=_0x20b4a1;var _0x50063a,_0x408634;if(((_0x408634=(_0x50063a=_0x42f6db==null?void 0x0:_0x42f6db[_0x4765a0(0x207)])==null?void 0x0:_0x50063a['length'])!=null?_0x408634:0x0)>0x0){const _0x3a0b8a=(_0x42def5,_0x304e5f)=>({'id':_0x42def5[_0x4765a0(0x238)],'threadId':_0x42def5[_0x4765a0(0x226)],'dT':f(_0x42def5[_0x4765a0(0x25f)]),'personId':_0x42def5[_0x4765a0(0x253)],'resolved':_0x42f6db[_0x4765a0(0x23a)]===I[_0x4765a0(0x22a)],'unitId':_0x59e0a4,'subUnitId':_0x44d2e0,'text':JSON[_0x4765a0(0x1ea)](_0x42def5[_0x4765a0(0x23e)]),'parentId':_0x304e5f}),_0x351137=_0x3a0b8a(_0x42f6db[_0x4765a0(0x207)][0x0]);return{..._0x351137,'children':_0x42f6db[_0x4765a0(0x207)][_0x4765a0(0x208)](0x1)[_0x4765a0(0x243)](_0x45c663=>_0x3a0b8a(_0x45c663,_0x351137['id']))};}return null;}let g=class{constructor(_0x56797c,_0x1be332,_0x34b3c9,_0x56c44f){const _0x76562e=_0x20b4a1;this[_0x76562e(0x214)]=_0x56797c,this['_userService']=_0x1be332,this[_0x76562e(0x254)]=_0x34b3c9,this['_injector']=_0x56c44f;}async[_0x20b4a1(0x224)](_0x452939){const _0x2325be=_0x20b4a1;var _0x242bb1,_0x33b82a;const {parentId:_0x5d0f16,unitId:_0x164915,text:_0x202caf,threadId:_0x319324}=_0x452939,_0x3f7158=(_0x33b82a=(_0x242bb1=_0x202caf[_0x2325be(0x22d)])==null?void 0x0:_0x242bb1['filter'](_0x5857dc=>_0x5857dc[_0x2325be(0x1f4)]===c[_0x2325be(0x235)][_0x2325be(0x1fa)])['map'](_0x11baee=>_0x11baee[_0x2325be(0x20c)]))!=null?_0x33b82a:[],_0x529231=JSON[_0x2325be(0x21d)](_0x202caf),_0x409c3f=(await this['_sessionService']['requireSession'](_0x164915))['getMemberID']();if(_0x5d0f16){const _0x5e977b={'memberId':_0x409c3f,'unitId':_0x164915,'content':_0x529231,'mention':_0x3f7158,'threadId':_0x319324},_0x259bd7=(await this[_0x2325be(0x214)]['post']('/universer-api/comment/unit/'+_0x164915+_0x2325be(0x211),{'body':_0x5e977b}))['body'][_0x2325be(0x1e9)];return{..._0x452939,'id':_0x259bd7[_0x2325be(0x238)],'dT':c['dayjs'](+_0x259bd7[_0x2325be(0x25f)])[_0x2325be(0x24b)](_0x2325be(0x1eb)),'personId':_0x259bd7[_0x2325be(0x253)]};}else{const _0x34ff5e={'memberId':_0x409c3f,'unitId':_0x164915,'content':_0x529231,'mention':_0x3f7158},_0x5f15a4=await this[_0x2325be(0x214)][_0x2325be(0x220)](_0x2325be(0x242)+_0x164915+'/add',{'body':_0x34ff5e});return Y(_0x5f15a4[_0x2325be(0x239)][_0x2325be(0x250)],_0x452939);}}async['updateComment'](_0x44a152){const _0xa4641a=_0x20b4a1;var _0x54c784,_0x112378;const {text:_0x5c67a6,unitId:_0xdd823}=_0x44a152,_0x12c215=(_0x112378=(_0x54c784=_0x5c67a6[_0xa4641a(0x22d)])==null?void 0x0:_0x54c784[_0xa4641a(0x21c)](_0x558590=>_0x558590[_0xa4641a(0x1f4)]===c['CustomRangeType'][_0xa4641a(0x1fa)])[_0xa4641a(0x243)](_0x3734a3=>_0x3734a3[_0xa4641a(0x20c)]))!=null?_0x112378:[],_0x2aebfb=JSON[_0xa4641a(0x21d)](_0x5c67a6),_0x3fa9ae=_0x44a152['threadId'],_0x39779f=_0x44a152['id'],_0xda6f2e={'memberId':(await this[_0xa4641a(0x254)]['requireSession'](_0xdd823))['getMemberID'](),'unitId':_0xdd823,'threadId':_0x3fa9ae,'mention':_0x12c215,'content':_0x2aebfb,'replyId':_0x39779f},_0xa79680=await this[_0xa4641a(0x214)]['post'](_0xa4641a(0x242)+_0xdd823+_0xa4641a(0x251),{'body':_0xda6f2e});return!_0xa79680[_0xa4641a(0x239)]['error']||_0xa79680['body'][_0xa4641a(0x232)]['code']===0x1;}async[_0x20b4a1(0x244)](_0x4bbfb1){const _0x5d9387=_0x20b4a1,{unitId:_0x537727}=_0x4bbfb1,_0x59ef86=_0x4bbfb1[_0x5d9387(0x226)],_0x3bad5e={'memberId':this['_userService']['getCurrentUser']()[_0x5d9387(0x260)],'unitId':_0x537727,'threadId':_0x59ef86,'solved':_0x4bbfb1[_0x5d9387(0x228)]?I[_0x5d9387(0x22a)]:I[_0x5d9387(0x22e)]},_0x2c3230=await this[_0x5d9387(0x214)]['post'](_0x5d9387(0x242)+_0x537727+_0x5d9387(0x223),{'body':_0x3bad5e});return!_0x2c3230[_0x5d9387(0x239)][_0x5d9387(0x232)]||_0x2c3230[_0x5d9387(0x239)][_0x5d9387(0x232)]['code']===0x1;}async['deleteComment'](_0x42b669,_0x1e182e,_0x46cfb2,_0x494532){const _0x5477de=_0x20b4a1,_0x1498db={'memberId':(await this[_0x5477de(0x254)]['requireSession'](_0x42b669))[_0x5477de(0x218)](),'threadId':_0x46cfb2,'replyId':_0x494532,'unitId':_0x42b669},_0x128f09=await this['_httpService'][_0x5477de(0x220)](_0x5477de(0x242)+_0x42b669+_0x5477de(0x25b),{'body':_0x1498db});return!_0x128f09[_0x5477de(0x239)]['error']||_0x128f09[_0x5477de(0x239)]['error'][_0x5477de(0x202)]===0x1;}async[_0x20b4a1(0x24e)](_0x7fc24,_0x2028d5,_0x427b1e){const _0x34cdcb=_0x20b4a1,_0x720cb5={'unitId':_0x7fc24,'threadId':_0x427b1e},_0x59a2ba=await this['_httpService'][_0x34cdcb(0x220)](_0x34cdcb(0x242)+_0x7fc24+_0x34cdcb(0x1f1),{'body':_0x720cb5}),_0x38d017=_0x427b1e['map'](_0xa5e1f5=>G(_0x59a2ba[_0x34cdcb(0x239)]['comments'][_0xa5e1f5],_0x7fc24,_0x2028d5))[_0x34cdcb(0x21c)](Boolean);return Object[_0x34cdcb(0x1f3)](_0x59a2ba['body'][_0x34cdcb(0x217)])['forEach'](_0x5d49f8=>{const _0x4081=_0x34cdcb;this[_0x4081(0x1f8)][_0x4081(0x23d)](_0x5d49f8);}),_0x38d017;}['saveCommentToSnapshot'](_0xa8b038){const _0x4b09a2=_0x20b4a1;return{'id':_0xa8b038['id'],'threadId':_0xa8b038[_0x4b09a2(0x226)],'ref':_0xa8b038[_0x4b09a2(0x205)]};}};g=x([_(0x0,c[_0x20b4a1(0x24d)](P['HTTPService'])),_(0x1,c[_0x20b4a1(0x24d)](c[_0x20b4a1(0x222)])),_(0x2,c[_0x20b4a1(0x24d)](b[_0x20b4a1(0x259)])),_(0x3,c['Inject'](c[_0x20b4a1(0x22c)]))],g);var H=Object[_0x20b4a1(0x21b)],J=(_0x53bc69,_0x4f7f5d,_0x355cf8,_0x2a4c56)=>{const _0x527b7d=_0x20b4a1;for(var _0x486837=_0x2a4c56>0x1?void 0x0:_0x2a4c56?H(_0x4f7f5d,_0x355cf8):_0x4f7f5d,_0x538f44=_0x53bc69[_0x527b7d(0x1fc)]-0x1,_0x14cb02;_0x538f44>=0x0;_0x538f44--)(_0x14cb02=_0x53bc69[_0x538f44])&&(_0x486837=_0x14cb02(_0x486837)||_0x486837);return _0x486837;},y=(_0x254bfb,_0xd0decc)=>(_0x9a5aea,_0x33c30c)=>_0xd0decc(_0x9a5aea,_0x33c30c,_0x254bfb);let C=class extends c['Disposable']{constructor(_0xb7d2bd,_0x4100de){const _0x3b9f23=_0x20b4a1;super(),this[_0x3b9f23(0x1f9)]=_0xb7d2bd,this[_0x3b9f23(0x255)]=_0x4100de,this[_0x3b9f23(0x247)]();}['_initDataSource'](){const _0x273f52=_0x20b4a1;this[_0x273f52(0x1f9)][_0x273f52(0x246)]=this['_threadCommentDataSource'],this[_0x273f52(0x1f9)][_0x273f52(0x20e)]=!0x1;}};C=J([y(0x0,M['IThreadCommentDataSourceService']),y(0x1,c[_0x20b4a1(0x24d)](g))],C);var F=Object[_0x20b4a1(0x21f)],L=Object[_0x20b4a1(0x21b)],Z=(_0x2e1631,_0x42aba7,_0x3cb142)=>_0x42aba7 in _0x2e1631?F(_0x2e1631,_0x42aba7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3cb142}):_0x2e1631[_0x42aba7]=_0x3cb142,W=(_0x2cab18,_0x285ebe,_0x3e936e,_0x5f5699)=>{const _0x1ae52c=_0x20b4a1;for(var _0x18c056=_0x5f5699>0x1?void 0x0:_0x5f5699?L(_0x285ebe,_0x3e936e):_0x285ebe,_0x13f9f1=_0x2cab18[_0x1ae52c(0x1fc)]-0x1,_0x554844;_0x13f9f1>=0x0;_0x13f9f1--)(_0x554844=_0x2cab18[_0x13f9f1])&&(_0x18c056=_0x554844(_0x18c056)||_0x18c056);return _0x18c056;},O=(_0x19e0cf,_0x1ab70f)=>(_0x1156de,_0x258f85)=>_0x1ab70f(_0x1156de,_0x258f85,_0x19e0cf),N=(_0x22dba4,_0x53d59a,_0x572668)=>Z(_0x22dba4,typeof _0x53d59a!='symbol'?_0x53d59a+'':_0x53d59a,_0x572668);exports[_0x20b4a1(0x25d)]=class extends c[_0x20b4a1(0x206)]{constructor(_0x499671=D,_0x3abef8,_0x56a14e){const _0x5472a3=_0x20b4a1;super(),this[_0x5472a3(0x25c)]=_0x499671,this['_injector']=_0x3abef8,this[_0x5472a3(0x20d)]=_0x56a14e;const {..._0x249045}=c[_0x5472a3(0x234)]({},D,this[_0x5472a3(0x25c)]);this[_0x5472a3(0x20d)][_0x5472a3(0x1fe)](q,_0x249045);}['onStarting'](){const _0x5a2f2c=_0x20b4a1;[[g],[C],[p]][_0x5a2f2c(0x1f2)](_0x14c4f0=>{const _0x56be61=_0x5a2f2c;this[_0x56be61(0x231)][_0x56be61(0x210)](_0x14c4f0);});}[_0x20b4a1(0x25a)](){const _0x24f80a=_0x20b4a1;this[_0x24f80a(0x231)][_0x24f80a(0x252)](C),this[_0x24f80a(0x231)][_0x24f80a(0x252)](p);}},N(exports[_0x20b4a1(0x25d)],'pluginName',U),N(exports['UniverThreadCommentDataSourcePlugin'],_0x20b4a1(0x241),c[_0x20b4a1(0x1fd)][_0x20b4a1(0x236)]),exports[_0x20b4a1(0x25d)]=W([c[_0x20b4a1(0x1e6)](j[_0x20b4a1(0x24c)],b[_0x20b4a1(0x200)],T[_0x20b4a1(0x20f)]),O(0x1,c[_0x20b4a1(0x24d)](c['Injector'])),O(0x2,c[_0x20b4a1(0x215)])],exports[_0x20b4a1(0x25d)]);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1a6ee2=_0x455b;(function(_0x1f0d0e,_0x380543){const _0x215a76=_0x455b,_0x3a1a48=_0x1f0d0e();while(!![]){try{const _0x20b41c=-parseInt(_0x215a76(0x203))/0x1*(parseInt(_0x215a76(0x1c6))/0x2)+parseInt(_0x215a76(0x1da))/0x3*(parseInt(_0x215a76(0x1d1))/0x4)+-parseInt(_0x215a76(0x1a4))/0x5+-parseInt(_0x215a76(0x1ad))/0x6+-parseInt(_0x215a76(0x1bf))/0x7+-parseInt(_0x215a76(0x1db))/0x8*(-parseInt(_0x215a76(0x1ef))/0x9)+parseInt(_0x215a76(0x1a7))/0xa;if(_0x20b41c===_0x380543)break;else _0x3a1a48['push'](_0x3a1a48['shift']());}catch(_0x2fd466){_0x3a1a48['push'](_0x3a1a48['shift']());}}}(_0x3601,0x5ad91));import{CommentService as _0x37e2e7,CollaborationSessionService as _0x99aabe,UniverCollaborationClientPlugin as _0x5816e6}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x1bc6a8}from'@univerjs-pro/license';import{dayjs as _0x173d38,UserManagerService as _0x268413,Inject as _0x18999a,Injector as _0x47417b,Disposable as _0x5e9a40,CustomRangeType as _0x4b606d,UniverInstanceType as _0x4c6779,DependentOn as _0x2a1c99,IConfigService as _0x562190,Plugin as _0x34ae44,merge as _0x29a050}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x47b7d1}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x4ae210,IThreadCommentDataSourceService as _0x29bf24}from'@univerjs/thread-comment';import{bufferTime as _0x177664}from'rxjs';function _0x3601(){const _0x3e5031=['listComments','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','9385880KYNGxW','comments','_sessionService','values','YYYY/MM/DD\x20HH:mm','thread-comment-data-source.config','547728kZwVls','slice','customRanges','parentId','dataSource','get','map','format','requireSession','rangeType','filter','Solved','forEach','Unknown','userID','content','UNIVER_UNKNOWN','getComment','4483661bqtATb','user','getUser','parse','Delete','/list','/universer-api/user/list','44gZpabz','Solve','Add','onReady','_initUserSync','_configService','rangeId','post','_httpService','/add','getOwnPropertyDescriptor','44ugdJDo','_threadCommentModel','getCurrentUser','error','/reply','getUnit','threadId','OpenOrReOpen','stringify','150492wkALkr','89616tCXiDW','/delete','body','payload','deleteComment','solved','addUser','UNRECOGNIZED','setConfig','createTimestamp','userId','disposeWithMe','root','resolveComment','personId','_config','addComment','subscribe','_injector','saveCommentToSnapshot','513spIecV','/edit','replyId','size','unitId','COMMENT','length','_init','_initDataSource','add','/universer-api/comment/unit/','replies','symbol','type','_commentService','_userService','/solved','getMemberID','Reply','_threadCommentDataSourceService','23023evFCRi','commentUpdate$','_threadCommentDataSource','updateComment','find','delete','code','2592380JonEhq'];_0x3601=function(){return _0x3e5031;};return _0x3601();}import{HTTPService as _0x57e027}from'@univerjs/network';const W=_0x1a6ee2(0x1a6);var I=(_0x2d4dbb=>(_0x2d4dbb[_0x2d4dbb[_0x1a6ee2(0x1d8)]=0x0]='OpenOrReOpen',_0x2d4dbb[_0x2d4dbb[_0x1a6ee2(0x1b8)]=0x1]=_0x1a6ee2(0x1b8),_0x2d4dbb[_0x2d4dbb[_0x1a6ee2(0x1e2)]=-0x1]=_0x1a6ee2(0x1e2),_0x2d4dbb))(I||{}),v=(_0xae58d3=>(_0xae58d3[_0xae58d3[_0x1a6ee2(0x1ba)]=0x0]=_0x1a6ee2(0x1ba),_0xae58d3[_0xae58d3[_0x1a6ee2(0x1c8)]=0x1]=_0x1a6ee2(0x1c8),_0xae58d3[_0xae58d3[_0x1a6ee2(0x201)]=0x2]=_0x1a6ee2(0x201),_0xae58d3[_0xae58d3['Edit']=0x3]='Edit',_0xae58d3[_0xae58d3['Delete']=0x4]=_0x1a6ee2(0x1c3),_0xae58d3[_0xae58d3[_0x1a6ee2(0x1c7)]=0x5]='Solve',_0xae58d3[_0xae58d3[_0x1a6ee2(0x1e2)]=-0x1]=_0x1a6ee2(0x1e2),_0xae58d3))(v||{});const D=_0x79f35e=>_0x173d38(new Date(+_0x79f35e))['format'](_0x1a6ee2(0x1ab)),B=async(_0x459df6,_0x229a2b)=>{const _0xf1adca=_0x1a6ee2,_0xe3cae7=_0x459df6['get'](_0x268413),_0x52772c=_0x459df6[_0xf1adca(0x1b2)](_0x57e027);_0x229a2b[_0xf1adca(0x1b9)](_0x521d8b=>{const _0x40be42=_0xf1adca;_0xe3cae7[_0x40be42(0x1c1)](_0x521d8b)&&_0x229a2b[_0x40be42(0x1a2)](_0x521d8b);}),_0x229a2b[_0xf1adca(0x1f2)]&&(await _0x52772c['get'](_0xf1adca(0x1c5),{'params':{'userIDs':[..._0x229a2b]}}))['body']['users'][_0xf1adca(0x1b9)](_0x42d1d8=>{_0x42d1d8&&_0xe3cae7['addUser'](_0x42d1d8);});};var K=Object[_0x1a6ee2(0x1d0)],V=(_0x338dc1,_0xf0785a,_0x38b216,_0x35af78)=>{const _0x4c8c4c=_0x1a6ee2;for(var _0x413a3=_0x35af78>0x1?void 0x0:_0x35af78?K(_0xf0785a,_0x38b216):_0xf0785a,_0x434a69=_0x338dc1[_0x4c8c4c(0x1f5)]-0x1,_0x3ec5ef;_0x434a69>=0x0;_0x434a69--)(_0x3ec5ef=_0x338dc1[_0x434a69])&&(_0x413a3=_0x3ec5ef(_0x413a3)||_0x413a3);return _0x413a3;},p=(_0x4a0093,_0x305650)=>(_0x1494dd,_0x5ca200)=>_0x305650(_0x1494dd,_0x5ca200,_0x4a0093);let S=class extends _0x5e9a40{constructor(_0x267215,_0x53b487,_0x2a4575,_0xbbdd4){const _0x3583e7=_0x1a6ee2;super(),this[_0x3583e7(0x1fd)]=_0x267215,this[_0x3583e7(0x1d2)]=_0x53b487,this[_0x3583e7(0x1fe)]=_0x2a4575,this[_0x3583e7(0x1ed)]=_0xbbdd4,this[_0x3583e7(0x1f6)](),this[_0x3583e7(0x1ca)]();}['_initUserSync'](){const _0x212914=_0x1a6ee2;this[_0x212914(0x1e6)](this[_0x212914(0x1d2)][_0x212914(0x204)]['pipe'](_0x177664(0x10))[_0x212914(0x1ec)](_0x276408=>{const _0x4ff9f2=_0x212914,_0x23f1e0=new Set();_0x276408['forEach'](_0x35b428=>{const _0x42c49a=_0x455b;switch(_0x35b428[_0x42c49a(0x1fc)]){case'add':{const _0x5eccc9=_0x35b428[_0x42c49a(0x1de)][_0x42c49a(0x1e9)];_0x23f1e0[_0x42c49a(0x1f8)](_0x5eccc9);break;}}}),B(this[_0x4ff9f2(0x1ed)],_0x23f1e0);}));}[_0x1a6ee2(0x1f6)](){const _0x3987c2=_0x1a6ee2;this[_0x3987c2(0x1e6)](this[_0x3987c2(0x1fd)][_0x3987c2(0x204)][_0x3987c2(0x1ec)](async _0x1e731e=>{const _0x349258=_0x3987c2;var _0x3cb5ed,_0x32fcdb,_0x5f31ed,_0x13ace4;const _0x3e20df=(_0x3cb5ed=this[_0x349258(0x1d2)][_0x349258(0x1d6)](_0x1e731e[_0x349258(0x1f3)])[_0x349258(0x207)](_0x2c3662=>_0x2c3662[_0x349258(0x1d7)]===_0x1e731e[_0x349258(0x1d7)]))==null?void 0x0:_0x3cb5ed[_0x349258(0x1e7)];if(!_0x3e20df)return;const {unitId:_0x29a61e,subUnitId:_0x449013}=_0x3e20df;switch(_0x1e731e[_0x349258(0x1c0)]&&this[_0x349258(0x1fe)][_0x349258(0x1e1)](_0x1e731e[_0x349258(0x1c0)]),_0x1e731e[_0x349258(0x1fc)]){case v['Add']:break;case v[_0x349258(0x201)]:{this[_0x349258(0x1d2)][_0x349258(0x1eb)](_0x29a61e,_0x449013,{'unitId':_0x29a61e,'subUnitId':_0x449013,'ref':'','id':_0x1e731e[_0x349258(0x1f1)],'dT':D(+_0x1e731e[_0x349258(0x1e4)]),'threadId':_0x1e731e[_0x349258(0x1d7)],'personId':(_0x5f31ed=(_0x32fcdb=_0x1e731e[_0x349258(0x1c0)])==null?void 0x0:_0x32fcdb[_0x349258(0x1bb)])!=null?_0x5f31ed:_0x1e731e[_0x349258(0x1e5)],'text':JSON[_0x349258(0x1c2)](_0x1e731e[_0x349258(0x1bc)]),'parentId':_0x3e20df['id']});break;}case v[_0x349258(0x1c3)]:{const _0x5869b7=this['_threadCommentModel'][_0x349258(0x1be)](_0x29a61e,_0x449013,_0x1e731e[_0x349258(0x1f1)]);_0x5869b7&&_0x5869b7[_0x349258(0x1b0)]&&this[_0x349258(0x1d2)][_0x349258(0x1df)](_0x29a61e,_0x449013,_0x1e731e[_0x349258(0x1f1)]);break;}case v['Edit']:{this['_threadCommentModel'][_0x349258(0x206)](_0x29a61e,_0x449013,{'commentId':_0x1e731e[_0x349258(0x1f1)],'text':JSON[_0x349258(0x1c2)](_0x1e731e[_0x349258(0x1bc)])});break;}case v[_0x349258(0x1c7)]:{const _0x7d05a=(_0x13ace4=this[_0x349258(0x1d2)][_0x349258(0x1d6)](_0x1e731e[_0x349258(0x1f3)])['find'](_0x26ae86=>_0x26ae86[_0x349258(0x1d7)]===_0x1e731e[_0x349258(0x1d7)]))==null?void 0x0:_0x13ace4['root'];_0x7d05a&&this['_threadCommentModel']['resolveComment'](_0x29a61e,_0x449013,_0x7d05a['id'],_0x1e731e['solved']===I[_0x349258(0x1b8)]);break;}}}));}};S=V([p(0x0,_0x18999a(_0x37e2e7)),p(0x1,_0x18999a(_0x4ae210)),p(0x2,_0x18999a(_0x268413)),p(0x3,_0x18999a(_0x47417b))],S);const z=_0x1a6ee2(0x1ac),M={};var k=Object['getOwnPropertyDescriptor'],Q=(_0x3af4e6,_0x25d3fc,_0xfe4dec,_0x4942e7)=>{const _0x29b208=_0x1a6ee2;for(var _0x291924=_0x4942e7>0x1?void 0x0:_0x4942e7?k(_0x25d3fc,_0xfe4dec):_0x25d3fc,_0x597cf2=_0x3af4e6[_0x29b208(0x1f5)]-0x1,_0x2d47a2;_0x597cf2>=0x0;_0x597cf2--)(_0x2d47a2=_0x3af4e6[_0x597cf2])&&(_0x291924=_0x2d47a2(_0x291924)||_0x291924);return _0x291924;},_=(_0x49951e,_0x4d95de)=>(_0x2451b8,_0x186c09)=>_0x4d95de(_0x2451b8,_0x186c09,_0x49951e);function X(_0x1c978a,_0x5cb55f){const _0x830b93=_0x1a6ee2,_0xb7f9e=_0x1c978a[_0x830b93(0x1fa)][0x0];return{..._0x5cb55f,'id':_0xb7f9e[_0x830b93(0x1f1)],'resolved':_0x1c978a['solved']===0x1,'dT':D(_0xb7f9e[_0x830b93(0x1e4)]),'personId':_0xb7f9e['userId'],'threadId':_0xb7f9e[_0x830b93(0x1d7)]};}function _0x455b(_0x187256,_0x15ce31){const _0x360141=_0x3601();return _0x455b=function(_0x455b0e,_0x3cefec){_0x455b0e=_0x455b0e-0x1a2;let _0x3ea1cb=_0x360141[_0x455b0e];return _0x3ea1cb;},_0x455b(_0x187256,_0x15ce31);}function ee(_0x4e88f0,_0x236cc9,_0x44397d){const _0x2da8a8=_0x1a6ee2;var _0x471af5,_0x2aaa25;if(((_0x2aaa25=(_0x471af5=_0x4e88f0==null?void 0x0:_0x4e88f0[_0x2da8a8(0x1fa)])==null?void 0x0:_0x471af5[_0x2da8a8(0x1f5)])!=null?_0x2aaa25:0x0)>0x0){const _0xef7917=(_0x3f7bb6,_0x6d8855)=>({'id':_0x3f7bb6['replyId'],'threadId':_0x3f7bb6['threadId'],'dT':D(_0x3f7bb6[_0x2da8a8(0x1e4)]),'personId':_0x3f7bb6[_0x2da8a8(0x1e5)],'resolved':_0x4e88f0[_0x2da8a8(0x1e0)]===I[_0x2da8a8(0x1b8)],'unitId':_0x236cc9,'subUnitId':_0x44397d,'text':JSON['parse'](_0x3f7bb6[_0x2da8a8(0x1bc)]),'parentId':_0x6d8855}),_0x78b139=_0xef7917(_0x4e88f0['replies'][0x0]);return{..._0x78b139,'children':_0x4e88f0[_0x2da8a8(0x1fa)][_0x2da8a8(0x1ae)](0x1)['map'](_0xdeeaaf=>_0xef7917(_0xdeeaaf,_0x78b139['id']))};}return null;}let f=class{constructor(_0x29f6bf,_0x1c3e9f,_0x430ba7,_0x2d9ae8){const _0x50fe06=_0x1a6ee2;this[_0x50fe06(0x1ce)]=_0x29f6bf,this['_userService']=_0x1c3e9f,this[_0x50fe06(0x1a9)]=_0x430ba7,this[_0x50fe06(0x1ed)]=_0x2d9ae8;}async[_0x1a6ee2(0x1eb)](_0x197cff){const _0x4b2a89=_0x1a6ee2;var _0x4c38b5,_0x2f9339;const {parentId:_0xad08d5,unitId:_0x2659b2,text:_0x21ee43,threadId:_0x369713}=_0x197cff,_0x5728cb=(_0x2f9339=(_0x4c38b5=_0x21ee43['customRanges'])==null?void 0x0:_0x4c38b5[_0x4b2a89(0x1b7)](_0x83e7a5=>_0x83e7a5[_0x4b2a89(0x1b6)]===_0x4b606d['COMMENT'])[_0x4b2a89(0x1b3)](_0x149d16=>_0x149d16[_0x4b2a89(0x1cc)]))!=null?_0x2f9339:[],_0x4fc3ad=JSON[_0x4b2a89(0x1d9)](_0x21ee43),_0x934d0e=(await this[_0x4b2a89(0x1a9)][_0x4b2a89(0x1b5)](_0x2659b2))[_0x4b2a89(0x200)]();if(_0xad08d5){const _0x57b9a3={'memberId':_0x934d0e,'unitId':_0x2659b2,'content':_0x4fc3ad,'mention':_0x5728cb,'threadId':_0x369713},_0x33b0ac=(await this[_0x4b2a89(0x1ce)]['post'](_0x4b2a89(0x1f9)+_0x2659b2+_0x4b2a89(0x1d5),{'body':_0x57b9a3}))['body']['reply'];return{..._0x197cff,'id':_0x33b0ac[_0x4b2a89(0x1f1)],'dT':_0x173d38(+_0x33b0ac[_0x4b2a89(0x1e4)])[_0x4b2a89(0x1b4)](_0x4b2a89(0x1ab)),'personId':_0x33b0ac[_0x4b2a89(0x1e5)]};}else{const _0x70479a={'memberId':_0x934d0e,'unitId':_0x2659b2,'content':_0x4fc3ad,'mention':_0x5728cb},_0x474e85=await this[_0x4b2a89(0x1ce)][_0x4b2a89(0x1cd)](_0x4b2a89(0x1f9)+_0x2659b2+_0x4b2a89(0x1cf),{'body':_0x70479a});return X(_0x474e85[_0x4b2a89(0x1dd)]['comment'],_0x197cff);}}async[_0x1a6ee2(0x206)](_0x3d1b37){const _0x157a4d=_0x1a6ee2;var _0x15339b,_0x82e0ed;const {text:_0x449ff2,unitId:_0x5b843b}=_0x3d1b37,_0x2cc6a5=(_0x82e0ed=(_0x15339b=_0x449ff2[_0x157a4d(0x1af)])==null?void 0x0:_0x15339b['filter'](_0xfc1e7d=>_0xfc1e7d['rangeType']===_0x4b606d[_0x157a4d(0x1f4)])['map'](_0x5be6f7=>_0x5be6f7['rangeId']))!=null?_0x82e0ed:[],_0x5c0e7f=JSON[_0x157a4d(0x1d9)](_0x449ff2),_0x49492c=_0x3d1b37[_0x157a4d(0x1d7)],_0x54f8ba=_0x3d1b37['id'],_0x5d4930={'memberId':(await this['_sessionService'][_0x157a4d(0x1b5)](_0x5b843b))['getMemberID'](),'unitId':_0x5b843b,'threadId':_0x49492c,'mention':_0x2cc6a5,'content':_0x5c0e7f,'replyId':_0x54f8ba},_0x5b993e=await this[_0x157a4d(0x1ce)]['post']('/universer-api/comment/unit/'+_0x5b843b+_0x157a4d(0x1f0),{'body':_0x5d4930});return!_0x5b993e[_0x157a4d(0x1dd)][_0x157a4d(0x1d4)]||_0x5b993e[_0x157a4d(0x1dd)][_0x157a4d(0x1d4)][_0x157a4d(0x1a3)]===0x1;}async[_0x1a6ee2(0x1e8)](_0x3010cd){const _0x22d4ca=_0x1a6ee2,{unitId:_0x33b7fd}=_0x3010cd,_0x25adfb=_0x3010cd[_0x22d4ca(0x1d7)],_0x4d1401={'memberId':this[_0x22d4ca(0x1fe)][_0x22d4ca(0x1d3)]()['userID'],'unitId':_0x33b7fd,'threadId':_0x25adfb,'solved':_0x3010cd['resolved']?I[_0x22d4ca(0x1b8)]:I['OpenOrReOpen']},_0x13f70a=await this[_0x22d4ca(0x1ce)]['post'](_0x22d4ca(0x1f9)+_0x33b7fd+_0x22d4ca(0x1ff),{'body':_0x4d1401});return!_0x13f70a[_0x22d4ca(0x1dd)][_0x22d4ca(0x1d4)]||_0x13f70a['body'][_0x22d4ca(0x1d4)][_0x22d4ca(0x1a3)]===0x1;}async[_0x1a6ee2(0x1df)](_0xc19cb3,_0xf8af14,_0xe635bc,_0x3a5d79){const _0x4628a6=_0x1a6ee2,_0x3de27e={'memberId':(await this[_0x4628a6(0x1a9)]['requireSession'](_0xc19cb3))['getMemberID'](),'threadId':_0xe635bc,'replyId':_0x3a5d79,'unitId':_0xc19cb3},_0x4f0377=await this[_0x4628a6(0x1ce)][_0x4628a6(0x1cd)](_0x4628a6(0x1f9)+_0xc19cb3+_0x4628a6(0x1dc),{'body':_0x3de27e});return!_0x4f0377[_0x4628a6(0x1dd)][_0x4628a6(0x1d4)]||_0x4f0377[_0x4628a6(0x1dd)][_0x4628a6(0x1d4)][_0x4628a6(0x1a3)]===0x1;}async[_0x1a6ee2(0x1a5)](_0x370f4e,_0xac2ccb,_0x5d38e3){const _0x5d3d9f=_0x1a6ee2,_0x5b40ec={'unitId':_0x370f4e,'threadId':_0x5d38e3},_0x3bb04c=await this['_httpService']['post'](_0x5d3d9f(0x1f9)+_0x370f4e+_0x5d3d9f(0x1c4),{'body':_0x5b40ec}),_0x4a3560=_0x5d38e3[_0x5d3d9f(0x1b3)](_0x5ace44=>ee(_0x3bb04c[_0x5d3d9f(0x1dd)][_0x5d3d9f(0x1a8)][_0x5ace44],_0x370f4e,_0xac2ccb))[_0x5d3d9f(0x1b7)](Boolean);return Object[_0x5d3d9f(0x1aa)](_0x3bb04c[_0x5d3d9f(0x1dd)]['users'])[_0x5d3d9f(0x1b9)](_0x2c16be=>{const _0x5b2cd1=_0x5d3d9f;this[_0x5b2cd1(0x1fe)][_0x5b2cd1(0x1e1)](_0x2c16be);}),_0x4a3560;}[_0x1a6ee2(0x1ee)](_0x26ffee){return{'id':_0x26ffee['id'],'threadId':_0x26ffee['threadId'],'ref':_0x26ffee['ref']};}};f=Q([_(0x0,_0x18999a(_0x57e027)),_(0x1,_0x18999a(_0x268413)),_(0x2,_0x18999a(_0x99aabe)),_(0x3,_0x18999a(_0x47417b))],f);var re=Object[_0x1a6ee2(0x1d0)],te=(_0x326ca7,_0xd1e35,_0x5154aa,_0x1c7eb2)=>{for(var _0x4e60c1=_0x1c7eb2>0x1?void 0x0:_0x1c7eb2?re(_0xd1e35,_0x5154aa):_0xd1e35,_0x10a66b=_0x326ca7['length']-0x1,_0x73b0b7;_0x10a66b>=0x0;_0x10a66b--)(_0x73b0b7=_0x326ca7[_0x10a66b])&&(_0x4e60c1=_0x73b0b7(_0x4e60c1)||_0x4e60c1);return _0x4e60c1;},N=(_0x579e8b,_0x144156)=>(_0xc825dd,_0xc334a9)=>_0x144156(_0xc825dd,_0xc334a9,_0x579e8b);let g=class extends _0x5e9a40{constructor(_0x379b28,_0xf4e12c){const _0x208f8f=_0x1a6ee2;super(),this[_0x208f8f(0x202)]=_0x379b28,this[_0x208f8f(0x205)]=_0xf4e12c,this[_0x208f8f(0x1f7)]();}[_0x1a6ee2(0x1f7)](){const _0x490919=_0x1a6ee2;this[_0x490919(0x202)][_0x490919(0x1b1)]=this[_0x490919(0x205)],this[_0x490919(0x202)]['syncUpdateMutationToColla']=!0x1;}};g=te([N(0x0,_0x29bf24),N(0x1,_0x18999a(f))],g);var se=Object['defineProperty'],oe=Object[_0x1a6ee2(0x1d0)],ne=(_0x3bd80e,_0x448f17,_0x3dc415)=>_0x448f17 in _0x3bd80e?se(_0x3bd80e,_0x448f17,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dc415}):_0x3bd80e[_0x448f17]=_0x3dc415,ie=(_0xfb6150,_0x4520c3,_0x3aabb1,_0x14a136)=>{for(var _0x52d658=_0x14a136>0x1?void 0x0:_0x14a136?oe(_0x4520c3,_0x3aabb1):_0x4520c3,_0x5282d8=_0xfb6150['length']-0x1,_0xfe5031;_0x5282d8>=0x0;_0x5282d8--)(_0xfe5031=_0xfb6150[_0x5282d8])&&(_0x52d658=_0xfe5031(_0x52d658)||_0x52d658);return _0x52d658;},w=(_0x5c5c9b,_0x28cd85)=>(_0x59cf73,_0x8c4e8b)=>_0x28cd85(_0x59cf73,_0x8c4e8b,_0x5c5c9b),$=(_0x3da695,_0x2f462d,_0x505353)=>ne(_0x3da695,typeof _0x2f462d!=_0x1a6ee2(0x1fb)?_0x2f462d+'':_0x2f462d,_0x505353);let b=class extends _0x34ae44{constructor(_0x3e41c3=M,_0x175189,_0x1355dd){const _0x418ee7=_0x1a6ee2;super(),this[_0x418ee7(0x1ea)]=_0x3e41c3,this[_0x418ee7(0x1ed)]=_0x175189,this[_0x418ee7(0x1cb)]=_0x1355dd;const {..._0x2cabdf}=_0x29a050({},M,this[_0x418ee7(0x1ea)]);this['_configService'][_0x418ee7(0x1e3)](z,_0x2cabdf);}['onStarting'](){[[f],[g],[S]]['forEach'](_0x5828a0=>{const _0x5c6e79=_0x455b;this['_injector'][_0x5c6e79(0x1f8)](_0x5828a0);});}[_0x1a6ee2(0x1c9)](){const _0x27be43=_0x1a6ee2;this['_injector']['get'](g),this['_injector'][_0x27be43(0x1b2)](S);}};$(b,'pluginName',W),$(b,'type',_0x4c6779[_0x1a6ee2(0x1bd)]),b=ie([_0x2a1c99(_0x47b7d1,_0x5816e6,_0x1bc6a8),w(0x1,_0x18999a(_0x47417b)),w(0x2,_0x562190)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
|
1
|
+
const _0x4b7626=_0x2c2f;(function(_0x139491,_0x4b98f6){const _0x20b7dc=_0x2c2f,_0x69d8aa=_0x139491();while(!![]){try{const _0x5a7952=parseInt(_0x20b7dc(0x1e2))/0x1*(-parseInt(_0x20b7dc(0x212))/0x2)+-parseInt(_0x20b7dc(0x1ec))/0x3*(-parseInt(_0x20b7dc(0x21a))/0x4)+parseInt(_0x20b7dc(0x224))/0x5+parseInt(_0x20b7dc(0x1d4))/0x6+-parseInt(_0x20b7dc(0x215))/0x7+-parseInt(_0x20b7dc(0x208))/0x8+parseInt(_0x20b7dc(0x1e0))/0x9;if(_0x5a7952===_0x4b98f6)break;else _0x69d8aa['push'](_0x69d8aa['shift']());}catch(_0x11f169){_0x69d8aa['push'](_0x69d8aa['shift']());}}}(_0x16a6,0x734f1));import{CommentService as _0x2529c2,CollaborationSessionService as _0x5c999b,UniverCollaborationClientPlugin as _0x53c880}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x3306fe}from'@univerjs-pro/license';import{dayjs as _0xfc58d6,UserManagerService as _0x164e15,Inject as _0x1820ac,Injector as _0x4bcb98,Disposable as _0x2e6166,CustomRangeType as _0x13fedf,UniverInstanceType as _0x3dc0f3,DependentOn as _0xa05568,IConfigService as _0x3e734a,Plugin as _0x53cea8,merge as _0x23c1a1}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x2fef6f}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x545f27,IThreadCommentDataSourceService as _0x1b5895}from'@univerjs/thread-comment';import{bufferTime as _0x189a1d}from'rxjs';import{HTTPService as _0x11101f}from'@univerjs/network';const W=_0x4b7626(0x20c);var I=(_0x1948b6=>(_0x1948b6[_0x1948b6[_0x4b7626(0x1cf)]=0x0]='OpenOrReOpen',_0x1948b6[_0x1948b6[_0x4b7626(0x21b)]=0x1]=_0x4b7626(0x21b),_0x1948b6[_0x1948b6[_0x4b7626(0x1f5)]=-0x1]='UNRECOGNIZED',_0x1948b6))(I||{}),v=(_0x5b8e04=>(_0x5b8e04[_0x5b8e04['Unknown']=0x0]=_0x4b7626(0x200),_0x5b8e04[_0x5b8e04[_0x4b7626(0x20e)]=0x1]=_0x4b7626(0x20e),_0x5b8e04[_0x5b8e04[_0x4b7626(0x1cd)]=0x2]=_0x4b7626(0x1cd),_0x5b8e04[_0x5b8e04[_0x4b7626(0x1da)]=0x3]=_0x4b7626(0x1da),_0x5b8e04[_0x5b8e04[_0x4b7626(0x1e9)]=0x4]=_0x4b7626(0x1e9),_0x5b8e04[_0x5b8e04[_0x4b7626(0x211)]=0x5]='Solve',_0x5b8e04[_0x5b8e04[_0x4b7626(0x1f5)]=-0x1]=_0x4b7626(0x1f5),_0x5b8e04))(v||{});const D=_0x308c6e=>_0xfc58d6(new Date(+_0x308c6e))[_0x4b7626(0x20b)](_0x4b7626(0x214)),B=async(_0x3cb69d,_0x561bb0)=>{const _0x2648fa=_0x4b7626,_0x87d8a3=_0x3cb69d[_0x2648fa(0x1fc)](_0x164e15),_0x4989a0=_0x3cb69d[_0x2648fa(0x1fc)](_0x11101f);_0x561bb0[_0x2648fa(0x20a)](_0x4f7b1d=>{_0x87d8a3['getUser'](_0x4f7b1d)&&_0x561bb0['delete'](_0x4f7b1d);}),_0x561bb0[_0x2648fa(0x1ef)]&&(await _0x4989a0['get'](_0x2648fa(0x1cb),{'params':{'userIDs':[..._0x561bb0]}}))['body'][_0x2648fa(0x210)]['forEach'](_0x2f093e=>{const _0x2496fa=_0x2648fa;_0x2f093e&&_0x87d8a3[_0x2496fa(0x1ee)](_0x2f093e);});};var K=Object['getOwnPropertyDescriptor'],V=(_0x30aec4,_0x2f4c31,_0x35259b,_0x38d06f)=>{const _0x56791e=_0x4b7626;for(var _0x1f95b2=_0x38d06f>0x1?void 0x0:_0x38d06f?K(_0x2f4c31,_0x35259b):_0x2f4c31,_0x1d95a1=_0x30aec4[_0x56791e(0x1dc)]-0x1,_0x1d2ddc;_0x1d95a1>=0x0;_0x1d95a1--)(_0x1d2ddc=_0x30aec4[_0x1d95a1])&&(_0x1f95b2=_0x1d2ddc(_0x1f95b2)||_0x1f95b2);return _0x1f95b2;},p=(_0x199e7c,_0xa8b55)=>(_0x592e4b,_0x587a57)=>_0xa8b55(_0x592e4b,_0x587a57,_0x199e7c);let S=class extends _0x2e6166{constructor(_0x1a7631,_0x200bc3,_0xaec88d,_0x173bb9){const _0x5a6914=_0x4b7626;super(),this[_0x5a6914(0x1fe)]=_0x1a7631,this[_0x5a6914(0x1db)]=_0x200bc3,this['_userService']=_0xaec88d,this[_0x5a6914(0x1e5)]=_0x173bb9,this['_init'](),this[_0x5a6914(0x1d1)]();}[_0x4b7626(0x1d1)](){const _0x1aa270=_0x4b7626;this[_0x1aa270(0x213)](this[_0x1aa270(0x1db)]['commentUpdate$'][_0x1aa270(0x218)](_0x189a1d(0x10))[_0x1aa270(0x1d5)](_0x5488d6=>{const _0x328fd2=_0x1aa270,_0x27475a=new Set();_0x5488d6['forEach'](_0x137b29=>{const _0xf1ae05=_0x2c2f;switch(_0x137b29[_0xf1ae05(0x201)]){case _0xf1ae05(0x1de):{const _0x5ca361=_0x137b29[_0xf1ae05(0x223)][_0xf1ae05(0x202)];_0x27475a[_0xf1ae05(0x1de)](_0x5ca361);break;}}}),B(this[_0x328fd2(0x1e5)],_0x27475a);}));}['_init'](){const _0xfc5f33=_0x4b7626;this['disposeWithMe'](this[_0xfc5f33(0x1fe)][_0xfc5f33(0x1e6)][_0xfc5f33(0x1d5)](async _0x249ae3=>{const _0xd1e90b=_0xfc5f33;var _0x359dcc,_0x1868c8,_0x2dfef6,_0x5b48c8;const _0x128083=(_0x359dcc=this[_0xd1e90b(0x1db)]['getUnit'](_0x249ae3[_0xd1e90b(0x1ce)])['find'](_0x1e6680=>_0x1e6680[_0xd1e90b(0x220)]===_0x249ae3[_0xd1e90b(0x220)]))==null?void 0x0:_0x359dcc[_0xd1e90b(0x203)];if(!_0x128083)return;const {unitId:_0x3a3e5b,subUnitId:_0x5038b4}=_0x128083;switch(_0x249ae3[_0xd1e90b(0x1e1)]&&this[_0xd1e90b(0x207)][_0xd1e90b(0x1ee)](_0x249ae3[_0xd1e90b(0x1e1)]),_0x249ae3['type']){case v[_0xd1e90b(0x20e)]:break;case v['Reply']:{this[_0xd1e90b(0x1db)][_0xd1e90b(0x225)](_0x3a3e5b,_0x5038b4,{'unitId':_0x3a3e5b,'subUnitId':_0x5038b4,'ref':'','id':_0x249ae3[_0xd1e90b(0x219)],'dT':D(+_0x249ae3[_0xd1e90b(0x1dd)]),'threadId':_0x249ae3['threadId'],'personId':(_0x2dfef6=(_0x1868c8=_0x249ae3['user'])==null?void 0x0:_0x1868c8[_0xd1e90b(0x1fd)])!=null?_0x2dfef6:_0x249ae3[_0xd1e90b(0x227)],'text':JSON[_0xd1e90b(0x1d7)](_0x249ae3[_0xd1e90b(0x1e3)]),'parentId':_0x128083['id']});break;}case v[_0xd1e90b(0x1e9)]:{const _0x5c2d18=this[_0xd1e90b(0x1db)]['getComment'](_0x3a3e5b,_0x5038b4,_0x249ae3[_0xd1e90b(0x219)]);_0x5c2d18&&_0x5c2d18[_0xd1e90b(0x1f9)]&&this[_0xd1e90b(0x1db)]['deleteComment'](_0x3a3e5b,_0x5038b4,_0x249ae3[_0xd1e90b(0x219)]);break;}case v[_0xd1e90b(0x1da)]:{this[_0xd1e90b(0x1db)]['updateComment'](_0x3a3e5b,_0x5038b4,{'commentId':_0x249ae3[_0xd1e90b(0x219)],'text':JSON[_0xd1e90b(0x1d7)](_0x249ae3[_0xd1e90b(0x1e3)])});break;}case v[_0xd1e90b(0x211)]:{const _0xa0c7a9=(_0x5b48c8=this[_0xd1e90b(0x1db)]['getUnit'](_0x249ae3[_0xd1e90b(0x1ce)])[_0xd1e90b(0x1ff)](_0x53ad63=>_0x53ad63[_0xd1e90b(0x220)]===_0x249ae3[_0xd1e90b(0x220)]))==null?void 0x0:_0x5b48c8[_0xd1e90b(0x203)];_0xa0c7a9&&this[_0xd1e90b(0x1db)][_0xd1e90b(0x1f0)](_0x3a3e5b,_0x5038b4,_0xa0c7a9['id'],_0x249ae3['solved']===I[_0xd1e90b(0x21b)]);break;}}}));}};function _0x16a6(){const _0xae002e=['rangeType','Edit','_threadCommentModel','length','createTimestamp','add','saveCommentToSnapshot','626634IrteRB','user','609580BDEDzc','content','customRanges','_injector','commentUpdate$','body','defineProperty','Delete','/add','dataSource','120345wrFJVH','getMemberID','addUser','size','resolveComment','reply','getOwnPropertyDescriptor','syncUpdateMutationToColla','_configService','UNRECOGNIZED','_threadCommentDataSourceService','getCurrentUser','_threadCommentDataSource','parentId','error','/solved','get','userID','_commentService','find','Unknown','type','personId','root','rangeId','/edit','_config','_userService','6369368nKeBCi','map','forEach','format','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','listComments','Add','symbol','users','Solve','2sPHxJD','disposeWithMe','YYYY/MM/DD\x20HH:mm','456211NgLeBC','comment','onStarting','pipe','replyId','56bRDyRk','Solved','_httpService','onReady','code','requireSession','threadId','resolved','updateComment','payload','2466475oiHNaA','addComment','_sessionService','userId','/reply','post','solved','filter','replies','/universer-api/user/list','values','Reply','unitId','OpenOrReOpen','_initDataSource','_initUserSync','/universer-api/comment/unit/','stringify','4912188hPPpEn','subscribe','pluginName','parse','COMMENT'];_0x16a6=function(){return _0xae002e;};return _0x16a6();}S=V([p(0x0,_0x1820ac(_0x2529c2)),p(0x1,_0x1820ac(_0x545f27)),p(0x2,_0x1820ac(_0x164e15)),p(0x3,_0x1820ac(_0x4bcb98))],S);const z='thread-comment-data-source.config',M={};var k=Object[_0x4b7626(0x1f2)],Q=(_0x2bf61a,_0x10dbdf,_0x20060d,_0x28cf8d)=>{const _0x50b607=_0x4b7626;for(var _0x4b93b1=_0x28cf8d>0x1?void 0x0:_0x28cf8d?k(_0x10dbdf,_0x20060d):_0x10dbdf,_0x49d0b1=_0x2bf61a[_0x50b607(0x1dc)]-0x1,_0x3fd1c4;_0x49d0b1>=0x0;_0x49d0b1--)(_0x3fd1c4=_0x2bf61a[_0x49d0b1])&&(_0x4b93b1=_0x3fd1c4(_0x4b93b1)||_0x4b93b1);return _0x4b93b1;},_=(_0x2fd021,_0x1dbdc0)=>(_0x5b129a,_0x1892e9)=>_0x1dbdc0(_0x5b129a,_0x1892e9,_0x2fd021);function X(_0x52db83,_0x2ce1fd){const _0x15734e=_0x4b7626,_0x3ae9eb=_0x52db83[_0x15734e(0x1ca)][0x0];return{..._0x2ce1fd,'id':_0x3ae9eb[_0x15734e(0x219)],'resolved':_0x52db83[_0x15734e(0x22a)]===0x1,'dT':D(_0x3ae9eb['createTimestamp']),'personId':_0x3ae9eb[_0x15734e(0x227)],'threadId':_0x3ae9eb[_0x15734e(0x220)]};}function ee(_0xa4dfa4,_0x2f4b5c,_0x53b562){const _0x10c849=_0x4b7626;var _0x57be1e,_0x788edc;if(((_0x788edc=(_0x57be1e=_0xa4dfa4==null?void 0x0:_0xa4dfa4[_0x10c849(0x1ca)])==null?void 0x0:_0x57be1e[_0x10c849(0x1dc)])!=null?_0x788edc:0x0)>0x0){const _0x19f506=(_0x251a1a,_0x5d4d83)=>({'id':_0x251a1a[_0x10c849(0x219)],'threadId':_0x251a1a[_0x10c849(0x220)],'dT':D(_0x251a1a['createTimestamp']),'personId':_0x251a1a['userId'],'resolved':_0xa4dfa4[_0x10c849(0x22a)]===I['Solved'],'unitId':_0x2f4b5c,'subUnitId':_0x53b562,'text':JSON[_0x10c849(0x1d7)](_0x251a1a['content']),'parentId':_0x5d4d83}),_0x3e697c=_0x19f506(_0xa4dfa4['replies'][0x0]);return{..._0x3e697c,'children':_0xa4dfa4[_0x10c849(0x1ca)]['slice'](0x1)[_0x10c849(0x209)](_0x3b1447=>_0x19f506(_0x3b1447,_0x3e697c['id']))};}return null;}let f=class{constructor(_0x350a9b,_0x5826ba,_0x5a16e5,_0x5ba7e8){const _0x53d8f7=_0x4b7626;this[_0x53d8f7(0x21c)]=_0x350a9b,this[_0x53d8f7(0x207)]=_0x5826ba,this[_0x53d8f7(0x226)]=_0x5a16e5,this[_0x53d8f7(0x1e5)]=_0x5ba7e8;}async[_0x4b7626(0x225)](_0x37d131){const _0x7bdec8=_0x4b7626;var _0x5d4451,_0x26b6d3;const {parentId:_0x381fe8,unitId:_0x16fa7e,text:_0x5341ea,threadId:_0x49e562}=_0x37d131,_0x4c41eb=(_0x26b6d3=(_0x5d4451=_0x5341ea[_0x7bdec8(0x1e4)])==null?void 0x0:_0x5d4451[_0x7bdec8(0x1c9)](_0x6a3a8d=>_0x6a3a8d[_0x7bdec8(0x1d9)]===_0x13fedf[_0x7bdec8(0x1d8)])[_0x7bdec8(0x209)](_0x56c7f9=>_0x56c7f9[_0x7bdec8(0x204)]))!=null?_0x26b6d3:[],_0x370fec=JSON[_0x7bdec8(0x1d3)](_0x5341ea),_0x143763=(await this[_0x7bdec8(0x226)][_0x7bdec8(0x21f)](_0x16fa7e))[_0x7bdec8(0x1ed)]();if(_0x381fe8){const _0x3a6515={'memberId':_0x143763,'unitId':_0x16fa7e,'content':_0x370fec,'mention':_0x4c41eb,'threadId':_0x49e562},_0x5e6a4e=(await this[_0x7bdec8(0x21c)][_0x7bdec8(0x229)](_0x7bdec8(0x1d2)+_0x16fa7e+_0x7bdec8(0x228),{'body':_0x3a6515}))[_0x7bdec8(0x1e7)][_0x7bdec8(0x1f1)];return{..._0x37d131,'id':_0x5e6a4e[_0x7bdec8(0x219)],'dT':_0xfc58d6(+_0x5e6a4e[_0x7bdec8(0x1dd)])[_0x7bdec8(0x20b)](_0x7bdec8(0x214)),'personId':_0x5e6a4e[_0x7bdec8(0x227)]};}else{const _0x3320d8={'memberId':_0x143763,'unitId':_0x16fa7e,'content':_0x370fec,'mention':_0x4c41eb},_0x369d1d=await this[_0x7bdec8(0x21c)][_0x7bdec8(0x229)](_0x7bdec8(0x1d2)+_0x16fa7e+_0x7bdec8(0x1ea),{'body':_0x3320d8});return X(_0x369d1d[_0x7bdec8(0x1e7)][_0x7bdec8(0x216)],_0x37d131);}}async[_0x4b7626(0x222)](_0xc30a5c){const _0x4bf881=_0x4b7626;var _0x59252e,_0x21dd53;const {text:_0x293230,unitId:_0x55a638}=_0xc30a5c,_0x15f32a=(_0x21dd53=(_0x59252e=_0x293230[_0x4bf881(0x1e4)])==null?void 0x0:_0x59252e[_0x4bf881(0x1c9)](_0x9e0cf0=>_0x9e0cf0[_0x4bf881(0x1d9)]===_0x13fedf[_0x4bf881(0x1d8)])[_0x4bf881(0x209)](_0x141c6d=>_0x141c6d['rangeId']))!=null?_0x21dd53:[],_0x538d99=JSON[_0x4bf881(0x1d3)](_0x293230),_0xb4cca3=_0xc30a5c[_0x4bf881(0x220)],_0x316f54=_0xc30a5c['id'],_0xece44d={'memberId':(await this[_0x4bf881(0x226)][_0x4bf881(0x21f)](_0x55a638))['getMemberID'](),'unitId':_0x55a638,'threadId':_0xb4cca3,'mention':_0x15f32a,'content':_0x538d99,'replyId':_0x316f54},_0x58392e=await this[_0x4bf881(0x21c)][_0x4bf881(0x229)](_0x4bf881(0x1d2)+_0x55a638+_0x4bf881(0x205),{'body':_0xece44d});return!_0x58392e[_0x4bf881(0x1e7)][_0x4bf881(0x1fa)]||_0x58392e['body'][_0x4bf881(0x1fa)][_0x4bf881(0x21e)]===0x1;}async[_0x4b7626(0x1f0)](_0x5a6a65){const _0x37ab32=_0x4b7626,{unitId:_0x13f311}=_0x5a6a65,_0x254c16=_0x5a6a65[_0x37ab32(0x220)],_0x5cc945={'memberId':this['_userService'][_0x37ab32(0x1f7)]()[_0x37ab32(0x1fd)],'unitId':_0x13f311,'threadId':_0x254c16,'solved':_0x5a6a65[_0x37ab32(0x221)]?I[_0x37ab32(0x21b)]:I[_0x37ab32(0x1cf)]},_0x54d624=await this[_0x37ab32(0x21c)][_0x37ab32(0x229)]('/universer-api/comment/unit/'+_0x13f311+_0x37ab32(0x1fb),{'body':_0x5cc945});return!_0x54d624['body']['error']||_0x54d624[_0x37ab32(0x1e7)][_0x37ab32(0x1fa)][_0x37ab32(0x21e)]===0x1;}async['deleteComment'](_0x4091cb,_0x369ecc,_0x5c438b,_0x1ffd6c){const _0x21811f=_0x4b7626,_0x176da9={'memberId':(await this['_sessionService'][_0x21811f(0x21f)](_0x4091cb))[_0x21811f(0x1ed)](),'threadId':_0x5c438b,'replyId':_0x1ffd6c,'unitId':_0x4091cb},_0x435232=await this['_httpService'][_0x21811f(0x229)](_0x21811f(0x1d2)+_0x4091cb+'/delete',{'body':_0x176da9});return!_0x435232[_0x21811f(0x1e7)][_0x21811f(0x1fa)]||_0x435232[_0x21811f(0x1e7)][_0x21811f(0x1fa)][_0x21811f(0x21e)]===0x1;}async[_0x4b7626(0x20d)](_0x3d0248,_0x1981f6,_0x3e57f5){const _0x26c12d=_0x4b7626,_0x579277={'unitId':_0x3d0248,'threadId':_0x3e57f5},_0x529404=await this[_0x26c12d(0x21c)]['post'](_0x26c12d(0x1d2)+_0x3d0248+'/list',{'body':_0x579277}),_0xb12dde=_0x3e57f5[_0x26c12d(0x209)](_0x1ab353=>ee(_0x529404[_0x26c12d(0x1e7)]['comments'][_0x1ab353],_0x3d0248,_0x1981f6))[_0x26c12d(0x1c9)](Boolean);return Object[_0x26c12d(0x1cc)](_0x529404[_0x26c12d(0x1e7)][_0x26c12d(0x210)])['forEach'](_0x2e7b55=>{const _0x508580=_0x26c12d;this[_0x508580(0x207)][_0x508580(0x1ee)](_0x2e7b55);}),_0xb12dde;}[_0x4b7626(0x1df)](_0x54ec3e){const _0x24bfad=_0x4b7626;return{'id':_0x54ec3e['id'],'threadId':_0x54ec3e[_0x24bfad(0x220)],'ref':_0x54ec3e['ref']};}};f=Q([_(0x0,_0x1820ac(_0x11101f)),_(0x1,_0x1820ac(_0x164e15)),_(0x2,_0x1820ac(_0x5c999b)),_(0x3,_0x1820ac(_0x4bcb98))],f);var re=Object[_0x4b7626(0x1f2)],te=(_0x1b6d49,_0x51a546,_0x47bcc9,_0x565eae)=>{const _0x14f48d=_0x4b7626;for(var _0x39973a=_0x565eae>0x1?void 0x0:_0x565eae?re(_0x51a546,_0x47bcc9):_0x51a546,_0x13c70c=_0x1b6d49[_0x14f48d(0x1dc)]-0x1,_0x321e62;_0x13c70c>=0x0;_0x13c70c--)(_0x321e62=_0x1b6d49[_0x13c70c])&&(_0x39973a=_0x321e62(_0x39973a)||_0x39973a);return _0x39973a;},N=(_0x2bfd66,_0x2dea7b)=>(_0x3f97a3,_0x1f76d9)=>_0x2dea7b(_0x3f97a3,_0x1f76d9,_0x2bfd66);let g=class extends _0x2e6166{constructor(_0x39ca7f,_0x4a58d1){const _0x5eeeda=_0x4b7626;super(),this[_0x5eeeda(0x1f6)]=_0x39ca7f,this[_0x5eeeda(0x1f8)]=_0x4a58d1,this[_0x5eeeda(0x1d0)]();}[_0x4b7626(0x1d0)](){const _0x406515=_0x4b7626;this[_0x406515(0x1f6)][_0x406515(0x1eb)]=this['_threadCommentDataSource'],this['_threadCommentDataSourceService'][_0x406515(0x1f3)]=!0x1;}};g=te([N(0x0,_0x1b5895),N(0x1,_0x1820ac(f))],g);var se=Object[_0x4b7626(0x1e8)],oe=Object['getOwnPropertyDescriptor'],ne=(_0x133e14,_0x5d8c00,_0xcdb738)=>_0x5d8c00 in _0x133e14?se(_0x133e14,_0x5d8c00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcdb738}):_0x133e14[_0x5d8c00]=_0xcdb738,ie=(_0x428a92,_0x256d5b,_0x58c53c,_0x46b1e7)=>{const _0x1864b9=_0x4b7626;for(var _0x3e5a8e=_0x46b1e7>0x1?void 0x0:_0x46b1e7?oe(_0x256d5b,_0x58c53c):_0x256d5b,_0x231da6=_0x428a92[_0x1864b9(0x1dc)]-0x1,_0x56dcce;_0x231da6>=0x0;_0x231da6--)(_0x56dcce=_0x428a92[_0x231da6])&&(_0x3e5a8e=_0x56dcce(_0x3e5a8e)||_0x3e5a8e);return _0x3e5a8e;},w=(_0x3a9755,_0x1a22e7)=>(_0x1d9a23,_0x443f2c)=>_0x1a22e7(_0x1d9a23,_0x443f2c,_0x3a9755),$=(_0x2b05ab,_0x4751fa,_0x4818f4)=>ne(_0x2b05ab,typeof _0x4751fa!=_0x4b7626(0x20f)?_0x4751fa+'':_0x4751fa,_0x4818f4);function _0x2c2f(_0x41995f,_0x568760){const _0x16a6d9=_0x16a6();return _0x2c2f=function(_0x2c2fee,_0x464aff){_0x2c2fee=_0x2c2fee-0x1c9;let _0x2aab00=_0x16a6d9[_0x2c2fee];return _0x2aab00;},_0x2c2f(_0x41995f,_0x568760);}let b=class extends _0x53cea8{constructor(_0xfeb84c=M,_0x40381e,_0x36610e){const _0xcd7a76=_0x4b7626;super(),this['_config']=_0xfeb84c,this[_0xcd7a76(0x1e5)]=_0x40381e,this[_0xcd7a76(0x1f4)]=_0x36610e;const {..._0x35147f}=_0x23c1a1({},M,this[_0xcd7a76(0x206)]);this[_0xcd7a76(0x1f4)]['setConfig'](z,_0x35147f);}[_0x4b7626(0x217)](){const _0x36f2f6=_0x4b7626;[[f],[g],[S]][_0x36f2f6(0x20a)](_0x4cc6e9=>{const _0x3880f7=_0x36f2f6;this[_0x3880f7(0x1e5)][_0x3880f7(0x1de)](_0x4cc6e9);});}[_0x4b7626(0x21d)](){const _0x2307c9=_0x4b7626;this[_0x2307c9(0x1e5)]['get'](g),this['_injector'][_0x2307c9(0x1fc)](S);}};$(b,_0x4b7626(0x1d6),W),$(b,_0x4b7626(0x201),_0x3dc0f3['UNIVER_UNKNOWN']),b=ie([_0xa05568(_0x2fef6f,_0x53c880,_0x3306fe),w(0x1,_0x1820ac(_0x4bcb98)),w(0x2,_0x3e734a)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1a6ee2=_0x455b;(function(_0x1f0d0e,_0x380543){const _0x215a76=_0x455b,_0x3a1a48=_0x1f0d0e();while(!![]){try{const _0x20b41c=-parseInt(_0x215a76(0x203))/0x1*(parseInt(_0x215a76(0x1c6))/0x2)+parseInt(_0x215a76(0x1da))/0x3*(parseInt(_0x215a76(0x1d1))/0x4)+-parseInt(_0x215a76(0x1a4))/0x5+-parseInt(_0x215a76(0x1ad))/0x6+-parseInt(_0x215a76(0x1bf))/0x7+-parseInt(_0x215a76(0x1db))/0x8*(-parseInt(_0x215a76(0x1ef))/0x9)+parseInt(_0x215a76(0x1a7))/0xa;if(_0x20b41c===_0x380543)break;else _0x3a1a48['push'](_0x3a1a48['shift']());}catch(_0x2fd466){_0x3a1a48['push'](_0x3a1a48['shift']());}}}(_0x3601,0x5ad91));import{CommentService as _0x37e2e7,CollaborationSessionService as _0x99aabe,UniverCollaborationClientPlugin as _0x5816e6}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x1bc6a8}from'@univerjs-pro/license';import{dayjs as _0x173d38,UserManagerService as _0x268413,Inject as _0x18999a,Injector as _0x47417b,Disposable as _0x5e9a40,CustomRangeType as _0x4b606d,UniverInstanceType as _0x4c6779,DependentOn as _0x2a1c99,IConfigService as _0x562190,Plugin as _0x34ae44,merge as _0x29a050}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x47b7d1}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x4ae210,IThreadCommentDataSourceService as _0x29bf24}from'@univerjs/thread-comment';import{bufferTime as _0x177664}from'rxjs';function _0x3601(){const _0x3e5031=['listComments','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','9385880KYNGxW','comments','_sessionService','values','YYYY/MM/DD\x20HH:mm','thread-comment-data-source.config','547728kZwVls','slice','customRanges','parentId','dataSource','get','map','format','requireSession','rangeType','filter','Solved','forEach','Unknown','userID','content','UNIVER_UNKNOWN','getComment','4483661bqtATb','user','getUser','parse','Delete','/list','/universer-api/user/list','44gZpabz','Solve','Add','onReady','_initUserSync','_configService','rangeId','post','_httpService','/add','getOwnPropertyDescriptor','44ugdJDo','_threadCommentModel','getCurrentUser','error','/reply','getUnit','threadId','OpenOrReOpen','stringify','150492wkALkr','89616tCXiDW','/delete','body','payload','deleteComment','solved','addUser','UNRECOGNIZED','setConfig','createTimestamp','userId','disposeWithMe','root','resolveComment','personId','_config','addComment','subscribe','_injector','saveCommentToSnapshot','513spIecV','/edit','replyId','size','unitId','COMMENT','length','_init','_initDataSource','add','/universer-api/comment/unit/','replies','symbol','type','_commentService','_userService','/solved','getMemberID','Reply','_threadCommentDataSourceService','23023evFCRi','commentUpdate$','_threadCommentDataSource','updateComment','find','delete','code','2592380JonEhq'];_0x3601=function(){return _0x3e5031;};return _0x3601();}import{HTTPService as _0x57e027}from'@univerjs/network';const W=_0x1a6ee2(0x1a6);var I=(_0x2d4dbb=>(_0x2d4dbb[_0x2d4dbb[_0x1a6ee2(0x1d8)]=0x0]='OpenOrReOpen',_0x2d4dbb[_0x2d4dbb[_0x1a6ee2(0x1b8)]=0x1]=_0x1a6ee2(0x1b8),_0x2d4dbb[_0x2d4dbb[_0x1a6ee2(0x1e2)]=-0x1]=_0x1a6ee2(0x1e2),_0x2d4dbb))(I||{}),v=(_0xae58d3=>(_0xae58d3[_0xae58d3[_0x1a6ee2(0x1ba)]=0x0]=_0x1a6ee2(0x1ba),_0xae58d3[_0xae58d3[_0x1a6ee2(0x1c8)]=0x1]=_0x1a6ee2(0x1c8),_0xae58d3[_0xae58d3[_0x1a6ee2(0x201)]=0x2]=_0x1a6ee2(0x201),_0xae58d3[_0xae58d3['Edit']=0x3]='Edit',_0xae58d3[_0xae58d3['Delete']=0x4]=_0x1a6ee2(0x1c3),_0xae58d3[_0xae58d3[_0x1a6ee2(0x1c7)]=0x5]='Solve',_0xae58d3[_0xae58d3[_0x1a6ee2(0x1e2)]=-0x1]=_0x1a6ee2(0x1e2),_0xae58d3))(v||{});const D=_0x79f35e=>_0x173d38(new Date(+_0x79f35e))['format'](_0x1a6ee2(0x1ab)),B=async(_0x459df6,_0x229a2b)=>{const _0xf1adca=_0x1a6ee2,_0xe3cae7=_0x459df6['get'](_0x268413),_0x52772c=_0x459df6[_0xf1adca(0x1b2)](_0x57e027);_0x229a2b[_0xf1adca(0x1b9)](_0x521d8b=>{const _0x40be42=_0xf1adca;_0xe3cae7[_0x40be42(0x1c1)](_0x521d8b)&&_0x229a2b[_0x40be42(0x1a2)](_0x521d8b);}),_0x229a2b[_0xf1adca(0x1f2)]&&(await _0x52772c['get'](_0xf1adca(0x1c5),{'params':{'userIDs':[..._0x229a2b]}}))['body']['users'][_0xf1adca(0x1b9)](_0x42d1d8=>{_0x42d1d8&&_0xe3cae7['addUser'](_0x42d1d8);});};var K=Object[_0x1a6ee2(0x1d0)],V=(_0x338dc1,_0xf0785a,_0x38b216,_0x35af78)=>{const _0x4c8c4c=_0x1a6ee2;for(var _0x413a3=_0x35af78>0x1?void 0x0:_0x35af78?K(_0xf0785a,_0x38b216):_0xf0785a,_0x434a69=_0x338dc1[_0x4c8c4c(0x1f5)]-0x1,_0x3ec5ef;_0x434a69>=0x0;_0x434a69--)(_0x3ec5ef=_0x338dc1[_0x434a69])&&(_0x413a3=_0x3ec5ef(_0x413a3)||_0x413a3);return _0x413a3;},p=(_0x4a0093,_0x305650)=>(_0x1494dd,_0x5ca200)=>_0x305650(_0x1494dd,_0x5ca200,_0x4a0093);let S=class extends _0x5e9a40{constructor(_0x267215,_0x53b487,_0x2a4575,_0xbbdd4){const _0x3583e7=_0x1a6ee2;super(),this[_0x3583e7(0x1fd)]=_0x267215,this[_0x3583e7(0x1d2)]=_0x53b487,this[_0x3583e7(0x1fe)]=_0x2a4575,this[_0x3583e7(0x1ed)]=_0xbbdd4,this[_0x3583e7(0x1f6)](),this[_0x3583e7(0x1ca)]();}['_initUserSync'](){const _0x212914=_0x1a6ee2;this[_0x212914(0x1e6)](this[_0x212914(0x1d2)][_0x212914(0x204)]['pipe'](_0x177664(0x10))[_0x212914(0x1ec)](_0x276408=>{const _0x4ff9f2=_0x212914,_0x23f1e0=new Set();_0x276408['forEach'](_0x35b428=>{const _0x42c49a=_0x455b;switch(_0x35b428[_0x42c49a(0x1fc)]){case'add':{const _0x5eccc9=_0x35b428[_0x42c49a(0x1de)][_0x42c49a(0x1e9)];_0x23f1e0[_0x42c49a(0x1f8)](_0x5eccc9);break;}}}),B(this[_0x4ff9f2(0x1ed)],_0x23f1e0);}));}[_0x1a6ee2(0x1f6)](){const _0x3987c2=_0x1a6ee2;this[_0x3987c2(0x1e6)](this[_0x3987c2(0x1fd)][_0x3987c2(0x204)][_0x3987c2(0x1ec)](async _0x1e731e=>{const _0x349258=_0x3987c2;var _0x3cb5ed,_0x32fcdb,_0x5f31ed,_0x13ace4;const _0x3e20df=(_0x3cb5ed=this[_0x349258(0x1d2)][_0x349258(0x1d6)](_0x1e731e[_0x349258(0x1f3)])[_0x349258(0x207)](_0x2c3662=>_0x2c3662[_0x349258(0x1d7)]===_0x1e731e[_0x349258(0x1d7)]))==null?void 0x0:_0x3cb5ed[_0x349258(0x1e7)];if(!_0x3e20df)return;const {unitId:_0x29a61e,subUnitId:_0x449013}=_0x3e20df;switch(_0x1e731e[_0x349258(0x1c0)]&&this[_0x349258(0x1fe)][_0x349258(0x1e1)](_0x1e731e[_0x349258(0x1c0)]),_0x1e731e[_0x349258(0x1fc)]){case v['Add']:break;case v[_0x349258(0x201)]:{this[_0x349258(0x1d2)][_0x349258(0x1eb)](_0x29a61e,_0x449013,{'unitId':_0x29a61e,'subUnitId':_0x449013,'ref':'','id':_0x1e731e[_0x349258(0x1f1)],'dT':D(+_0x1e731e[_0x349258(0x1e4)]),'threadId':_0x1e731e[_0x349258(0x1d7)],'personId':(_0x5f31ed=(_0x32fcdb=_0x1e731e[_0x349258(0x1c0)])==null?void 0x0:_0x32fcdb[_0x349258(0x1bb)])!=null?_0x5f31ed:_0x1e731e[_0x349258(0x1e5)],'text':JSON[_0x349258(0x1c2)](_0x1e731e[_0x349258(0x1bc)]),'parentId':_0x3e20df['id']});break;}case v[_0x349258(0x1c3)]:{const _0x5869b7=this['_threadCommentModel'][_0x349258(0x1be)](_0x29a61e,_0x449013,_0x1e731e[_0x349258(0x1f1)]);_0x5869b7&&_0x5869b7[_0x349258(0x1b0)]&&this[_0x349258(0x1d2)][_0x349258(0x1df)](_0x29a61e,_0x449013,_0x1e731e[_0x349258(0x1f1)]);break;}case v['Edit']:{this['_threadCommentModel'][_0x349258(0x206)](_0x29a61e,_0x449013,{'commentId':_0x1e731e[_0x349258(0x1f1)],'text':JSON[_0x349258(0x1c2)](_0x1e731e[_0x349258(0x1bc)])});break;}case v[_0x349258(0x1c7)]:{const _0x7d05a=(_0x13ace4=this[_0x349258(0x1d2)][_0x349258(0x1d6)](_0x1e731e[_0x349258(0x1f3)])['find'](_0x26ae86=>_0x26ae86[_0x349258(0x1d7)]===_0x1e731e[_0x349258(0x1d7)]))==null?void 0x0:_0x13ace4['root'];_0x7d05a&&this['_threadCommentModel']['resolveComment'](_0x29a61e,_0x449013,_0x7d05a['id'],_0x1e731e['solved']===I[_0x349258(0x1b8)]);break;}}}));}};S=V([p(0x0,_0x18999a(_0x37e2e7)),p(0x1,_0x18999a(_0x4ae210)),p(0x2,_0x18999a(_0x268413)),p(0x3,_0x18999a(_0x47417b))],S);const z=_0x1a6ee2(0x1ac),M={};var k=Object['getOwnPropertyDescriptor'],Q=(_0x3af4e6,_0x25d3fc,_0xfe4dec,_0x4942e7)=>{const _0x29b208=_0x1a6ee2;for(var _0x291924=_0x4942e7>0x1?void 0x0:_0x4942e7?k(_0x25d3fc,_0xfe4dec):_0x25d3fc,_0x597cf2=_0x3af4e6[_0x29b208(0x1f5)]-0x1,_0x2d47a2;_0x597cf2>=0x0;_0x597cf2--)(_0x2d47a2=_0x3af4e6[_0x597cf2])&&(_0x291924=_0x2d47a2(_0x291924)||_0x291924);return _0x291924;},_=(_0x49951e,_0x4d95de)=>(_0x2451b8,_0x186c09)=>_0x4d95de(_0x2451b8,_0x186c09,_0x49951e);function X(_0x1c978a,_0x5cb55f){const _0x830b93=_0x1a6ee2,_0xb7f9e=_0x1c978a[_0x830b93(0x1fa)][0x0];return{..._0x5cb55f,'id':_0xb7f9e[_0x830b93(0x1f1)],'resolved':_0x1c978a['solved']===0x1,'dT':D(_0xb7f9e[_0x830b93(0x1e4)]),'personId':_0xb7f9e['userId'],'threadId':_0xb7f9e[_0x830b93(0x1d7)]};}function _0x455b(_0x187256,_0x15ce31){const _0x360141=_0x3601();return _0x455b=function(_0x455b0e,_0x3cefec){_0x455b0e=_0x455b0e-0x1a2;let _0x3ea1cb=_0x360141[_0x455b0e];return _0x3ea1cb;},_0x455b(_0x187256,_0x15ce31);}function ee(_0x4e88f0,_0x236cc9,_0x44397d){const _0x2da8a8=_0x1a6ee2;var _0x471af5,_0x2aaa25;if(((_0x2aaa25=(_0x471af5=_0x4e88f0==null?void 0x0:_0x4e88f0[_0x2da8a8(0x1fa)])==null?void 0x0:_0x471af5[_0x2da8a8(0x1f5)])!=null?_0x2aaa25:0x0)>0x0){const _0xef7917=(_0x3f7bb6,_0x6d8855)=>({'id':_0x3f7bb6['replyId'],'threadId':_0x3f7bb6['threadId'],'dT':D(_0x3f7bb6[_0x2da8a8(0x1e4)]),'personId':_0x3f7bb6[_0x2da8a8(0x1e5)],'resolved':_0x4e88f0[_0x2da8a8(0x1e0)]===I[_0x2da8a8(0x1b8)],'unitId':_0x236cc9,'subUnitId':_0x44397d,'text':JSON['parse'](_0x3f7bb6[_0x2da8a8(0x1bc)]),'parentId':_0x6d8855}),_0x78b139=_0xef7917(_0x4e88f0['replies'][0x0]);return{..._0x78b139,'children':_0x4e88f0[_0x2da8a8(0x1fa)][_0x2da8a8(0x1ae)](0x1)['map'](_0xdeeaaf=>_0xef7917(_0xdeeaaf,_0x78b139['id']))};}return null;}let f=class{constructor(_0x29f6bf,_0x1c3e9f,_0x430ba7,_0x2d9ae8){const _0x50fe06=_0x1a6ee2;this[_0x50fe06(0x1ce)]=_0x29f6bf,this['_userService']=_0x1c3e9f,this[_0x50fe06(0x1a9)]=_0x430ba7,this[_0x50fe06(0x1ed)]=_0x2d9ae8;}async[_0x1a6ee2(0x1eb)](_0x197cff){const _0x4b2a89=_0x1a6ee2;var _0x4c38b5,_0x2f9339;const {parentId:_0xad08d5,unitId:_0x2659b2,text:_0x21ee43,threadId:_0x369713}=_0x197cff,_0x5728cb=(_0x2f9339=(_0x4c38b5=_0x21ee43['customRanges'])==null?void 0x0:_0x4c38b5[_0x4b2a89(0x1b7)](_0x83e7a5=>_0x83e7a5[_0x4b2a89(0x1b6)]===_0x4b606d['COMMENT'])[_0x4b2a89(0x1b3)](_0x149d16=>_0x149d16[_0x4b2a89(0x1cc)]))!=null?_0x2f9339:[],_0x4fc3ad=JSON[_0x4b2a89(0x1d9)](_0x21ee43),_0x934d0e=(await this[_0x4b2a89(0x1a9)][_0x4b2a89(0x1b5)](_0x2659b2))[_0x4b2a89(0x200)]();if(_0xad08d5){const _0x57b9a3={'memberId':_0x934d0e,'unitId':_0x2659b2,'content':_0x4fc3ad,'mention':_0x5728cb,'threadId':_0x369713},_0x33b0ac=(await this[_0x4b2a89(0x1ce)]['post'](_0x4b2a89(0x1f9)+_0x2659b2+_0x4b2a89(0x1d5),{'body':_0x57b9a3}))['body']['reply'];return{..._0x197cff,'id':_0x33b0ac[_0x4b2a89(0x1f1)],'dT':_0x173d38(+_0x33b0ac[_0x4b2a89(0x1e4)])[_0x4b2a89(0x1b4)](_0x4b2a89(0x1ab)),'personId':_0x33b0ac[_0x4b2a89(0x1e5)]};}else{const _0x70479a={'memberId':_0x934d0e,'unitId':_0x2659b2,'content':_0x4fc3ad,'mention':_0x5728cb},_0x474e85=await this[_0x4b2a89(0x1ce)][_0x4b2a89(0x1cd)](_0x4b2a89(0x1f9)+_0x2659b2+_0x4b2a89(0x1cf),{'body':_0x70479a});return X(_0x474e85[_0x4b2a89(0x1dd)]['comment'],_0x197cff);}}async[_0x1a6ee2(0x206)](_0x3d1b37){const _0x157a4d=_0x1a6ee2;var _0x15339b,_0x82e0ed;const {text:_0x449ff2,unitId:_0x5b843b}=_0x3d1b37,_0x2cc6a5=(_0x82e0ed=(_0x15339b=_0x449ff2[_0x157a4d(0x1af)])==null?void 0x0:_0x15339b['filter'](_0xfc1e7d=>_0xfc1e7d['rangeType']===_0x4b606d[_0x157a4d(0x1f4)])['map'](_0x5be6f7=>_0x5be6f7['rangeId']))!=null?_0x82e0ed:[],_0x5c0e7f=JSON[_0x157a4d(0x1d9)](_0x449ff2),_0x49492c=_0x3d1b37[_0x157a4d(0x1d7)],_0x54f8ba=_0x3d1b37['id'],_0x5d4930={'memberId':(await this['_sessionService'][_0x157a4d(0x1b5)](_0x5b843b))['getMemberID'](),'unitId':_0x5b843b,'threadId':_0x49492c,'mention':_0x2cc6a5,'content':_0x5c0e7f,'replyId':_0x54f8ba},_0x5b993e=await this[_0x157a4d(0x1ce)]['post']('/universer-api/comment/unit/'+_0x5b843b+_0x157a4d(0x1f0),{'body':_0x5d4930});return!_0x5b993e[_0x157a4d(0x1dd)][_0x157a4d(0x1d4)]||_0x5b993e[_0x157a4d(0x1dd)][_0x157a4d(0x1d4)][_0x157a4d(0x1a3)]===0x1;}async[_0x1a6ee2(0x1e8)](_0x3010cd){const _0x22d4ca=_0x1a6ee2,{unitId:_0x33b7fd}=_0x3010cd,_0x25adfb=_0x3010cd[_0x22d4ca(0x1d7)],_0x4d1401={'memberId':this[_0x22d4ca(0x1fe)][_0x22d4ca(0x1d3)]()['userID'],'unitId':_0x33b7fd,'threadId':_0x25adfb,'solved':_0x3010cd['resolved']?I[_0x22d4ca(0x1b8)]:I['OpenOrReOpen']},_0x13f70a=await this[_0x22d4ca(0x1ce)]['post'](_0x22d4ca(0x1f9)+_0x33b7fd+_0x22d4ca(0x1ff),{'body':_0x4d1401});return!_0x13f70a[_0x22d4ca(0x1dd)][_0x22d4ca(0x1d4)]||_0x13f70a['body'][_0x22d4ca(0x1d4)][_0x22d4ca(0x1a3)]===0x1;}async[_0x1a6ee2(0x1df)](_0xc19cb3,_0xf8af14,_0xe635bc,_0x3a5d79){const _0x4628a6=_0x1a6ee2,_0x3de27e={'memberId':(await this[_0x4628a6(0x1a9)]['requireSession'](_0xc19cb3))['getMemberID'](),'threadId':_0xe635bc,'replyId':_0x3a5d79,'unitId':_0xc19cb3},_0x4f0377=await this[_0x4628a6(0x1ce)][_0x4628a6(0x1cd)](_0x4628a6(0x1f9)+_0xc19cb3+_0x4628a6(0x1dc),{'body':_0x3de27e});return!_0x4f0377[_0x4628a6(0x1dd)][_0x4628a6(0x1d4)]||_0x4f0377[_0x4628a6(0x1dd)][_0x4628a6(0x1d4)][_0x4628a6(0x1a3)]===0x1;}async[_0x1a6ee2(0x1a5)](_0x370f4e,_0xac2ccb,_0x5d38e3){const _0x5d3d9f=_0x1a6ee2,_0x5b40ec={'unitId':_0x370f4e,'threadId':_0x5d38e3},_0x3bb04c=await this['_httpService']['post'](_0x5d3d9f(0x1f9)+_0x370f4e+_0x5d3d9f(0x1c4),{'body':_0x5b40ec}),_0x4a3560=_0x5d38e3[_0x5d3d9f(0x1b3)](_0x5ace44=>ee(_0x3bb04c[_0x5d3d9f(0x1dd)][_0x5d3d9f(0x1a8)][_0x5ace44],_0x370f4e,_0xac2ccb))[_0x5d3d9f(0x1b7)](Boolean);return Object[_0x5d3d9f(0x1aa)](_0x3bb04c[_0x5d3d9f(0x1dd)]['users'])[_0x5d3d9f(0x1b9)](_0x2c16be=>{const _0x5b2cd1=_0x5d3d9f;this[_0x5b2cd1(0x1fe)][_0x5b2cd1(0x1e1)](_0x2c16be);}),_0x4a3560;}[_0x1a6ee2(0x1ee)](_0x26ffee){return{'id':_0x26ffee['id'],'threadId':_0x26ffee['threadId'],'ref':_0x26ffee['ref']};}};f=Q([_(0x0,_0x18999a(_0x57e027)),_(0x1,_0x18999a(_0x268413)),_(0x2,_0x18999a(_0x99aabe)),_(0x3,_0x18999a(_0x47417b))],f);var re=Object[_0x1a6ee2(0x1d0)],te=(_0x326ca7,_0xd1e35,_0x5154aa,_0x1c7eb2)=>{for(var _0x4e60c1=_0x1c7eb2>0x1?void 0x0:_0x1c7eb2?re(_0xd1e35,_0x5154aa):_0xd1e35,_0x10a66b=_0x326ca7['length']-0x1,_0x73b0b7;_0x10a66b>=0x0;_0x10a66b--)(_0x73b0b7=_0x326ca7[_0x10a66b])&&(_0x4e60c1=_0x73b0b7(_0x4e60c1)||_0x4e60c1);return _0x4e60c1;},N=(_0x579e8b,_0x144156)=>(_0xc825dd,_0xc334a9)=>_0x144156(_0xc825dd,_0xc334a9,_0x579e8b);let g=class extends _0x5e9a40{constructor(_0x379b28,_0xf4e12c){const _0x208f8f=_0x1a6ee2;super(),this[_0x208f8f(0x202)]=_0x379b28,this[_0x208f8f(0x205)]=_0xf4e12c,this[_0x208f8f(0x1f7)]();}[_0x1a6ee2(0x1f7)](){const _0x490919=_0x1a6ee2;this[_0x490919(0x202)][_0x490919(0x1b1)]=this[_0x490919(0x205)],this[_0x490919(0x202)]['syncUpdateMutationToColla']=!0x1;}};g=te([N(0x0,_0x29bf24),N(0x1,_0x18999a(f))],g);var se=Object['defineProperty'],oe=Object[_0x1a6ee2(0x1d0)],ne=(_0x3bd80e,_0x448f17,_0x3dc415)=>_0x448f17 in _0x3bd80e?se(_0x3bd80e,_0x448f17,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dc415}):_0x3bd80e[_0x448f17]=_0x3dc415,ie=(_0xfb6150,_0x4520c3,_0x3aabb1,_0x14a136)=>{for(var _0x52d658=_0x14a136>0x1?void 0x0:_0x14a136?oe(_0x4520c3,_0x3aabb1):_0x4520c3,_0x5282d8=_0xfb6150['length']-0x1,_0xfe5031;_0x5282d8>=0x0;_0x5282d8--)(_0xfe5031=_0xfb6150[_0x5282d8])&&(_0x52d658=_0xfe5031(_0x52d658)||_0x52d658);return _0x52d658;},w=(_0x5c5c9b,_0x28cd85)=>(_0x59cf73,_0x8c4e8b)=>_0x28cd85(_0x59cf73,_0x8c4e8b,_0x5c5c9b),$=(_0x3da695,_0x2f462d,_0x505353)=>ne(_0x3da695,typeof _0x2f462d!=_0x1a6ee2(0x1fb)?_0x2f462d+'':_0x2f462d,_0x505353);let b=class extends _0x34ae44{constructor(_0x3e41c3=M,_0x175189,_0x1355dd){const _0x418ee7=_0x1a6ee2;super(),this[_0x418ee7(0x1ea)]=_0x3e41c3,this[_0x418ee7(0x1ed)]=_0x175189,this[_0x418ee7(0x1cb)]=_0x1355dd;const {..._0x2cabdf}=_0x29a050({},M,this[_0x418ee7(0x1ea)]);this['_configService'][_0x418ee7(0x1e3)](z,_0x2cabdf);}['onStarting'](){[[f],[g],[S]]['forEach'](_0x5828a0=>{const _0x5c6e79=_0x455b;this['_injector'][_0x5c6e79(0x1f8)](_0x5828a0);});}[_0x1a6ee2(0x1c9)](){const _0x27be43=_0x1a6ee2;this['_injector']['get'](g),this['_injector'][_0x27be43(0x1b2)](S);}};$(b,'pluginName',W),$(b,'type',_0x4c6779[_0x1a6ee2(0x1bd)]),b=ie([_0x2a1c99(_0x47b7d1,_0x5816e6,_0x1bc6a8),w(0x1,_0x18999a(_0x47417b)),w(0x2,_0x562190)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
|
1
|
+
const _0x4b7626=_0x2c2f;(function(_0x139491,_0x4b98f6){const _0x20b7dc=_0x2c2f,_0x69d8aa=_0x139491();while(!![]){try{const _0x5a7952=parseInt(_0x20b7dc(0x1e2))/0x1*(-parseInt(_0x20b7dc(0x212))/0x2)+-parseInt(_0x20b7dc(0x1ec))/0x3*(-parseInt(_0x20b7dc(0x21a))/0x4)+parseInt(_0x20b7dc(0x224))/0x5+parseInt(_0x20b7dc(0x1d4))/0x6+-parseInt(_0x20b7dc(0x215))/0x7+-parseInt(_0x20b7dc(0x208))/0x8+parseInt(_0x20b7dc(0x1e0))/0x9;if(_0x5a7952===_0x4b98f6)break;else _0x69d8aa['push'](_0x69d8aa['shift']());}catch(_0x11f169){_0x69d8aa['push'](_0x69d8aa['shift']());}}}(_0x16a6,0x734f1));import{CommentService as _0x2529c2,CollaborationSessionService as _0x5c999b,UniverCollaborationClientPlugin as _0x53c880}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x3306fe}from'@univerjs-pro/license';import{dayjs as _0xfc58d6,UserManagerService as _0x164e15,Inject as _0x1820ac,Injector as _0x4bcb98,Disposable as _0x2e6166,CustomRangeType as _0x13fedf,UniverInstanceType as _0x3dc0f3,DependentOn as _0xa05568,IConfigService as _0x3e734a,Plugin as _0x53cea8,merge as _0x23c1a1}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x2fef6f}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x545f27,IThreadCommentDataSourceService as _0x1b5895}from'@univerjs/thread-comment';import{bufferTime as _0x189a1d}from'rxjs';import{HTTPService as _0x11101f}from'@univerjs/network';const W=_0x4b7626(0x20c);var I=(_0x1948b6=>(_0x1948b6[_0x1948b6[_0x4b7626(0x1cf)]=0x0]='OpenOrReOpen',_0x1948b6[_0x1948b6[_0x4b7626(0x21b)]=0x1]=_0x4b7626(0x21b),_0x1948b6[_0x1948b6[_0x4b7626(0x1f5)]=-0x1]='UNRECOGNIZED',_0x1948b6))(I||{}),v=(_0x5b8e04=>(_0x5b8e04[_0x5b8e04['Unknown']=0x0]=_0x4b7626(0x200),_0x5b8e04[_0x5b8e04[_0x4b7626(0x20e)]=0x1]=_0x4b7626(0x20e),_0x5b8e04[_0x5b8e04[_0x4b7626(0x1cd)]=0x2]=_0x4b7626(0x1cd),_0x5b8e04[_0x5b8e04[_0x4b7626(0x1da)]=0x3]=_0x4b7626(0x1da),_0x5b8e04[_0x5b8e04[_0x4b7626(0x1e9)]=0x4]=_0x4b7626(0x1e9),_0x5b8e04[_0x5b8e04[_0x4b7626(0x211)]=0x5]='Solve',_0x5b8e04[_0x5b8e04[_0x4b7626(0x1f5)]=-0x1]=_0x4b7626(0x1f5),_0x5b8e04))(v||{});const D=_0x308c6e=>_0xfc58d6(new Date(+_0x308c6e))[_0x4b7626(0x20b)](_0x4b7626(0x214)),B=async(_0x3cb69d,_0x561bb0)=>{const _0x2648fa=_0x4b7626,_0x87d8a3=_0x3cb69d[_0x2648fa(0x1fc)](_0x164e15),_0x4989a0=_0x3cb69d[_0x2648fa(0x1fc)](_0x11101f);_0x561bb0[_0x2648fa(0x20a)](_0x4f7b1d=>{_0x87d8a3['getUser'](_0x4f7b1d)&&_0x561bb0['delete'](_0x4f7b1d);}),_0x561bb0[_0x2648fa(0x1ef)]&&(await _0x4989a0['get'](_0x2648fa(0x1cb),{'params':{'userIDs':[..._0x561bb0]}}))['body'][_0x2648fa(0x210)]['forEach'](_0x2f093e=>{const _0x2496fa=_0x2648fa;_0x2f093e&&_0x87d8a3[_0x2496fa(0x1ee)](_0x2f093e);});};var K=Object['getOwnPropertyDescriptor'],V=(_0x30aec4,_0x2f4c31,_0x35259b,_0x38d06f)=>{const _0x56791e=_0x4b7626;for(var _0x1f95b2=_0x38d06f>0x1?void 0x0:_0x38d06f?K(_0x2f4c31,_0x35259b):_0x2f4c31,_0x1d95a1=_0x30aec4[_0x56791e(0x1dc)]-0x1,_0x1d2ddc;_0x1d95a1>=0x0;_0x1d95a1--)(_0x1d2ddc=_0x30aec4[_0x1d95a1])&&(_0x1f95b2=_0x1d2ddc(_0x1f95b2)||_0x1f95b2);return _0x1f95b2;},p=(_0x199e7c,_0xa8b55)=>(_0x592e4b,_0x587a57)=>_0xa8b55(_0x592e4b,_0x587a57,_0x199e7c);let S=class extends _0x2e6166{constructor(_0x1a7631,_0x200bc3,_0xaec88d,_0x173bb9){const _0x5a6914=_0x4b7626;super(),this[_0x5a6914(0x1fe)]=_0x1a7631,this[_0x5a6914(0x1db)]=_0x200bc3,this['_userService']=_0xaec88d,this[_0x5a6914(0x1e5)]=_0x173bb9,this['_init'](),this[_0x5a6914(0x1d1)]();}[_0x4b7626(0x1d1)](){const _0x1aa270=_0x4b7626;this[_0x1aa270(0x213)](this[_0x1aa270(0x1db)]['commentUpdate$'][_0x1aa270(0x218)](_0x189a1d(0x10))[_0x1aa270(0x1d5)](_0x5488d6=>{const _0x328fd2=_0x1aa270,_0x27475a=new Set();_0x5488d6['forEach'](_0x137b29=>{const _0xf1ae05=_0x2c2f;switch(_0x137b29[_0xf1ae05(0x201)]){case _0xf1ae05(0x1de):{const _0x5ca361=_0x137b29[_0xf1ae05(0x223)][_0xf1ae05(0x202)];_0x27475a[_0xf1ae05(0x1de)](_0x5ca361);break;}}}),B(this[_0x328fd2(0x1e5)],_0x27475a);}));}['_init'](){const _0xfc5f33=_0x4b7626;this['disposeWithMe'](this[_0xfc5f33(0x1fe)][_0xfc5f33(0x1e6)][_0xfc5f33(0x1d5)](async _0x249ae3=>{const _0xd1e90b=_0xfc5f33;var _0x359dcc,_0x1868c8,_0x2dfef6,_0x5b48c8;const _0x128083=(_0x359dcc=this[_0xd1e90b(0x1db)]['getUnit'](_0x249ae3[_0xd1e90b(0x1ce)])['find'](_0x1e6680=>_0x1e6680[_0xd1e90b(0x220)]===_0x249ae3[_0xd1e90b(0x220)]))==null?void 0x0:_0x359dcc[_0xd1e90b(0x203)];if(!_0x128083)return;const {unitId:_0x3a3e5b,subUnitId:_0x5038b4}=_0x128083;switch(_0x249ae3[_0xd1e90b(0x1e1)]&&this[_0xd1e90b(0x207)][_0xd1e90b(0x1ee)](_0x249ae3[_0xd1e90b(0x1e1)]),_0x249ae3['type']){case v[_0xd1e90b(0x20e)]:break;case v['Reply']:{this[_0xd1e90b(0x1db)][_0xd1e90b(0x225)](_0x3a3e5b,_0x5038b4,{'unitId':_0x3a3e5b,'subUnitId':_0x5038b4,'ref':'','id':_0x249ae3[_0xd1e90b(0x219)],'dT':D(+_0x249ae3[_0xd1e90b(0x1dd)]),'threadId':_0x249ae3['threadId'],'personId':(_0x2dfef6=(_0x1868c8=_0x249ae3['user'])==null?void 0x0:_0x1868c8[_0xd1e90b(0x1fd)])!=null?_0x2dfef6:_0x249ae3[_0xd1e90b(0x227)],'text':JSON[_0xd1e90b(0x1d7)](_0x249ae3[_0xd1e90b(0x1e3)]),'parentId':_0x128083['id']});break;}case v[_0xd1e90b(0x1e9)]:{const _0x5c2d18=this[_0xd1e90b(0x1db)]['getComment'](_0x3a3e5b,_0x5038b4,_0x249ae3[_0xd1e90b(0x219)]);_0x5c2d18&&_0x5c2d18[_0xd1e90b(0x1f9)]&&this[_0xd1e90b(0x1db)]['deleteComment'](_0x3a3e5b,_0x5038b4,_0x249ae3[_0xd1e90b(0x219)]);break;}case v[_0xd1e90b(0x1da)]:{this[_0xd1e90b(0x1db)]['updateComment'](_0x3a3e5b,_0x5038b4,{'commentId':_0x249ae3[_0xd1e90b(0x219)],'text':JSON[_0xd1e90b(0x1d7)](_0x249ae3[_0xd1e90b(0x1e3)])});break;}case v[_0xd1e90b(0x211)]:{const _0xa0c7a9=(_0x5b48c8=this[_0xd1e90b(0x1db)]['getUnit'](_0x249ae3[_0xd1e90b(0x1ce)])[_0xd1e90b(0x1ff)](_0x53ad63=>_0x53ad63[_0xd1e90b(0x220)]===_0x249ae3[_0xd1e90b(0x220)]))==null?void 0x0:_0x5b48c8[_0xd1e90b(0x203)];_0xa0c7a9&&this[_0xd1e90b(0x1db)][_0xd1e90b(0x1f0)](_0x3a3e5b,_0x5038b4,_0xa0c7a9['id'],_0x249ae3['solved']===I[_0xd1e90b(0x21b)]);break;}}}));}};function _0x16a6(){const _0xae002e=['rangeType','Edit','_threadCommentModel','length','createTimestamp','add','saveCommentToSnapshot','626634IrteRB','user','609580BDEDzc','content','customRanges','_injector','commentUpdate$','body','defineProperty','Delete','/add','dataSource','120345wrFJVH','getMemberID','addUser','size','resolveComment','reply','getOwnPropertyDescriptor','syncUpdateMutationToColla','_configService','UNRECOGNIZED','_threadCommentDataSourceService','getCurrentUser','_threadCommentDataSource','parentId','error','/solved','get','userID','_commentService','find','Unknown','type','personId','root','rangeId','/edit','_config','_userService','6369368nKeBCi','map','forEach','format','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','listComments','Add','symbol','users','Solve','2sPHxJD','disposeWithMe','YYYY/MM/DD\x20HH:mm','456211NgLeBC','comment','onStarting','pipe','replyId','56bRDyRk','Solved','_httpService','onReady','code','requireSession','threadId','resolved','updateComment','payload','2466475oiHNaA','addComment','_sessionService','userId','/reply','post','solved','filter','replies','/universer-api/user/list','values','Reply','unitId','OpenOrReOpen','_initDataSource','_initUserSync','/universer-api/comment/unit/','stringify','4912188hPPpEn','subscribe','pluginName','parse','COMMENT'];_0x16a6=function(){return _0xae002e;};return _0x16a6();}S=V([p(0x0,_0x1820ac(_0x2529c2)),p(0x1,_0x1820ac(_0x545f27)),p(0x2,_0x1820ac(_0x164e15)),p(0x3,_0x1820ac(_0x4bcb98))],S);const z='thread-comment-data-source.config',M={};var k=Object[_0x4b7626(0x1f2)],Q=(_0x2bf61a,_0x10dbdf,_0x20060d,_0x28cf8d)=>{const _0x50b607=_0x4b7626;for(var _0x4b93b1=_0x28cf8d>0x1?void 0x0:_0x28cf8d?k(_0x10dbdf,_0x20060d):_0x10dbdf,_0x49d0b1=_0x2bf61a[_0x50b607(0x1dc)]-0x1,_0x3fd1c4;_0x49d0b1>=0x0;_0x49d0b1--)(_0x3fd1c4=_0x2bf61a[_0x49d0b1])&&(_0x4b93b1=_0x3fd1c4(_0x4b93b1)||_0x4b93b1);return _0x4b93b1;},_=(_0x2fd021,_0x1dbdc0)=>(_0x5b129a,_0x1892e9)=>_0x1dbdc0(_0x5b129a,_0x1892e9,_0x2fd021);function X(_0x52db83,_0x2ce1fd){const _0x15734e=_0x4b7626,_0x3ae9eb=_0x52db83[_0x15734e(0x1ca)][0x0];return{..._0x2ce1fd,'id':_0x3ae9eb[_0x15734e(0x219)],'resolved':_0x52db83[_0x15734e(0x22a)]===0x1,'dT':D(_0x3ae9eb['createTimestamp']),'personId':_0x3ae9eb[_0x15734e(0x227)],'threadId':_0x3ae9eb[_0x15734e(0x220)]};}function ee(_0xa4dfa4,_0x2f4b5c,_0x53b562){const _0x10c849=_0x4b7626;var _0x57be1e,_0x788edc;if(((_0x788edc=(_0x57be1e=_0xa4dfa4==null?void 0x0:_0xa4dfa4[_0x10c849(0x1ca)])==null?void 0x0:_0x57be1e[_0x10c849(0x1dc)])!=null?_0x788edc:0x0)>0x0){const _0x19f506=(_0x251a1a,_0x5d4d83)=>({'id':_0x251a1a[_0x10c849(0x219)],'threadId':_0x251a1a[_0x10c849(0x220)],'dT':D(_0x251a1a['createTimestamp']),'personId':_0x251a1a['userId'],'resolved':_0xa4dfa4[_0x10c849(0x22a)]===I['Solved'],'unitId':_0x2f4b5c,'subUnitId':_0x53b562,'text':JSON[_0x10c849(0x1d7)](_0x251a1a['content']),'parentId':_0x5d4d83}),_0x3e697c=_0x19f506(_0xa4dfa4['replies'][0x0]);return{..._0x3e697c,'children':_0xa4dfa4[_0x10c849(0x1ca)]['slice'](0x1)[_0x10c849(0x209)](_0x3b1447=>_0x19f506(_0x3b1447,_0x3e697c['id']))};}return null;}let f=class{constructor(_0x350a9b,_0x5826ba,_0x5a16e5,_0x5ba7e8){const _0x53d8f7=_0x4b7626;this[_0x53d8f7(0x21c)]=_0x350a9b,this[_0x53d8f7(0x207)]=_0x5826ba,this[_0x53d8f7(0x226)]=_0x5a16e5,this[_0x53d8f7(0x1e5)]=_0x5ba7e8;}async[_0x4b7626(0x225)](_0x37d131){const _0x7bdec8=_0x4b7626;var _0x5d4451,_0x26b6d3;const {parentId:_0x381fe8,unitId:_0x16fa7e,text:_0x5341ea,threadId:_0x49e562}=_0x37d131,_0x4c41eb=(_0x26b6d3=(_0x5d4451=_0x5341ea[_0x7bdec8(0x1e4)])==null?void 0x0:_0x5d4451[_0x7bdec8(0x1c9)](_0x6a3a8d=>_0x6a3a8d[_0x7bdec8(0x1d9)]===_0x13fedf[_0x7bdec8(0x1d8)])[_0x7bdec8(0x209)](_0x56c7f9=>_0x56c7f9[_0x7bdec8(0x204)]))!=null?_0x26b6d3:[],_0x370fec=JSON[_0x7bdec8(0x1d3)](_0x5341ea),_0x143763=(await this[_0x7bdec8(0x226)][_0x7bdec8(0x21f)](_0x16fa7e))[_0x7bdec8(0x1ed)]();if(_0x381fe8){const _0x3a6515={'memberId':_0x143763,'unitId':_0x16fa7e,'content':_0x370fec,'mention':_0x4c41eb,'threadId':_0x49e562},_0x5e6a4e=(await this[_0x7bdec8(0x21c)][_0x7bdec8(0x229)](_0x7bdec8(0x1d2)+_0x16fa7e+_0x7bdec8(0x228),{'body':_0x3a6515}))[_0x7bdec8(0x1e7)][_0x7bdec8(0x1f1)];return{..._0x37d131,'id':_0x5e6a4e[_0x7bdec8(0x219)],'dT':_0xfc58d6(+_0x5e6a4e[_0x7bdec8(0x1dd)])[_0x7bdec8(0x20b)](_0x7bdec8(0x214)),'personId':_0x5e6a4e[_0x7bdec8(0x227)]};}else{const _0x3320d8={'memberId':_0x143763,'unitId':_0x16fa7e,'content':_0x370fec,'mention':_0x4c41eb},_0x369d1d=await this[_0x7bdec8(0x21c)][_0x7bdec8(0x229)](_0x7bdec8(0x1d2)+_0x16fa7e+_0x7bdec8(0x1ea),{'body':_0x3320d8});return X(_0x369d1d[_0x7bdec8(0x1e7)][_0x7bdec8(0x216)],_0x37d131);}}async[_0x4b7626(0x222)](_0xc30a5c){const _0x4bf881=_0x4b7626;var _0x59252e,_0x21dd53;const {text:_0x293230,unitId:_0x55a638}=_0xc30a5c,_0x15f32a=(_0x21dd53=(_0x59252e=_0x293230[_0x4bf881(0x1e4)])==null?void 0x0:_0x59252e[_0x4bf881(0x1c9)](_0x9e0cf0=>_0x9e0cf0[_0x4bf881(0x1d9)]===_0x13fedf[_0x4bf881(0x1d8)])[_0x4bf881(0x209)](_0x141c6d=>_0x141c6d['rangeId']))!=null?_0x21dd53:[],_0x538d99=JSON[_0x4bf881(0x1d3)](_0x293230),_0xb4cca3=_0xc30a5c[_0x4bf881(0x220)],_0x316f54=_0xc30a5c['id'],_0xece44d={'memberId':(await this[_0x4bf881(0x226)][_0x4bf881(0x21f)](_0x55a638))['getMemberID'](),'unitId':_0x55a638,'threadId':_0xb4cca3,'mention':_0x15f32a,'content':_0x538d99,'replyId':_0x316f54},_0x58392e=await this[_0x4bf881(0x21c)][_0x4bf881(0x229)](_0x4bf881(0x1d2)+_0x55a638+_0x4bf881(0x205),{'body':_0xece44d});return!_0x58392e[_0x4bf881(0x1e7)][_0x4bf881(0x1fa)]||_0x58392e['body'][_0x4bf881(0x1fa)][_0x4bf881(0x21e)]===0x1;}async[_0x4b7626(0x1f0)](_0x5a6a65){const _0x37ab32=_0x4b7626,{unitId:_0x13f311}=_0x5a6a65,_0x254c16=_0x5a6a65[_0x37ab32(0x220)],_0x5cc945={'memberId':this['_userService'][_0x37ab32(0x1f7)]()[_0x37ab32(0x1fd)],'unitId':_0x13f311,'threadId':_0x254c16,'solved':_0x5a6a65[_0x37ab32(0x221)]?I[_0x37ab32(0x21b)]:I[_0x37ab32(0x1cf)]},_0x54d624=await this[_0x37ab32(0x21c)][_0x37ab32(0x229)]('/universer-api/comment/unit/'+_0x13f311+_0x37ab32(0x1fb),{'body':_0x5cc945});return!_0x54d624['body']['error']||_0x54d624[_0x37ab32(0x1e7)][_0x37ab32(0x1fa)][_0x37ab32(0x21e)]===0x1;}async['deleteComment'](_0x4091cb,_0x369ecc,_0x5c438b,_0x1ffd6c){const _0x21811f=_0x4b7626,_0x176da9={'memberId':(await this['_sessionService'][_0x21811f(0x21f)](_0x4091cb))[_0x21811f(0x1ed)](),'threadId':_0x5c438b,'replyId':_0x1ffd6c,'unitId':_0x4091cb},_0x435232=await this['_httpService'][_0x21811f(0x229)](_0x21811f(0x1d2)+_0x4091cb+'/delete',{'body':_0x176da9});return!_0x435232[_0x21811f(0x1e7)][_0x21811f(0x1fa)]||_0x435232[_0x21811f(0x1e7)][_0x21811f(0x1fa)][_0x21811f(0x21e)]===0x1;}async[_0x4b7626(0x20d)](_0x3d0248,_0x1981f6,_0x3e57f5){const _0x26c12d=_0x4b7626,_0x579277={'unitId':_0x3d0248,'threadId':_0x3e57f5},_0x529404=await this[_0x26c12d(0x21c)]['post'](_0x26c12d(0x1d2)+_0x3d0248+'/list',{'body':_0x579277}),_0xb12dde=_0x3e57f5[_0x26c12d(0x209)](_0x1ab353=>ee(_0x529404[_0x26c12d(0x1e7)]['comments'][_0x1ab353],_0x3d0248,_0x1981f6))[_0x26c12d(0x1c9)](Boolean);return Object[_0x26c12d(0x1cc)](_0x529404[_0x26c12d(0x1e7)][_0x26c12d(0x210)])['forEach'](_0x2e7b55=>{const _0x508580=_0x26c12d;this[_0x508580(0x207)][_0x508580(0x1ee)](_0x2e7b55);}),_0xb12dde;}[_0x4b7626(0x1df)](_0x54ec3e){const _0x24bfad=_0x4b7626;return{'id':_0x54ec3e['id'],'threadId':_0x54ec3e[_0x24bfad(0x220)],'ref':_0x54ec3e['ref']};}};f=Q([_(0x0,_0x1820ac(_0x11101f)),_(0x1,_0x1820ac(_0x164e15)),_(0x2,_0x1820ac(_0x5c999b)),_(0x3,_0x1820ac(_0x4bcb98))],f);var re=Object[_0x4b7626(0x1f2)],te=(_0x1b6d49,_0x51a546,_0x47bcc9,_0x565eae)=>{const _0x14f48d=_0x4b7626;for(var _0x39973a=_0x565eae>0x1?void 0x0:_0x565eae?re(_0x51a546,_0x47bcc9):_0x51a546,_0x13c70c=_0x1b6d49[_0x14f48d(0x1dc)]-0x1,_0x321e62;_0x13c70c>=0x0;_0x13c70c--)(_0x321e62=_0x1b6d49[_0x13c70c])&&(_0x39973a=_0x321e62(_0x39973a)||_0x39973a);return _0x39973a;},N=(_0x2bfd66,_0x2dea7b)=>(_0x3f97a3,_0x1f76d9)=>_0x2dea7b(_0x3f97a3,_0x1f76d9,_0x2bfd66);let g=class extends _0x2e6166{constructor(_0x39ca7f,_0x4a58d1){const _0x5eeeda=_0x4b7626;super(),this[_0x5eeeda(0x1f6)]=_0x39ca7f,this[_0x5eeeda(0x1f8)]=_0x4a58d1,this[_0x5eeeda(0x1d0)]();}[_0x4b7626(0x1d0)](){const _0x406515=_0x4b7626;this[_0x406515(0x1f6)][_0x406515(0x1eb)]=this['_threadCommentDataSource'],this['_threadCommentDataSourceService'][_0x406515(0x1f3)]=!0x1;}};g=te([N(0x0,_0x1b5895),N(0x1,_0x1820ac(f))],g);var se=Object[_0x4b7626(0x1e8)],oe=Object['getOwnPropertyDescriptor'],ne=(_0x133e14,_0x5d8c00,_0xcdb738)=>_0x5d8c00 in _0x133e14?se(_0x133e14,_0x5d8c00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcdb738}):_0x133e14[_0x5d8c00]=_0xcdb738,ie=(_0x428a92,_0x256d5b,_0x58c53c,_0x46b1e7)=>{const _0x1864b9=_0x4b7626;for(var _0x3e5a8e=_0x46b1e7>0x1?void 0x0:_0x46b1e7?oe(_0x256d5b,_0x58c53c):_0x256d5b,_0x231da6=_0x428a92[_0x1864b9(0x1dc)]-0x1,_0x56dcce;_0x231da6>=0x0;_0x231da6--)(_0x56dcce=_0x428a92[_0x231da6])&&(_0x3e5a8e=_0x56dcce(_0x3e5a8e)||_0x3e5a8e);return _0x3e5a8e;},w=(_0x3a9755,_0x1a22e7)=>(_0x1d9a23,_0x443f2c)=>_0x1a22e7(_0x1d9a23,_0x443f2c,_0x3a9755),$=(_0x2b05ab,_0x4751fa,_0x4818f4)=>ne(_0x2b05ab,typeof _0x4751fa!=_0x4b7626(0x20f)?_0x4751fa+'':_0x4751fa,_0x4818f4);function _0x2c2f(_0x41995f,_0x568760){const _0x16a6d9=_0x16a6();return _0x2c2f=function(_0x2c2fee,_0x464aff){_0x2c2fee=_0x2c2fee-0x1c9;let _0x2aab00=_0x16a6d9[_0x2c2fee];return _0x2aab00;},_0x2c2f(_0x41995f,_0x568760);}let b=class extends _0x53cea8{constructor(_0xfeb84c=M,_0x40381e,_0x36610e){const _0xcd7a76=_0x4b7626;super(),this['_config']=_0xfeb84c,this[_0xcd7a76(0x1e5)]=_0x40381e,this[_0xcd7a76(0x1f4)]=_0x36610e;const {..._0x35147f}=_0x23c1a1({},M,this[_0xcd7a76(0x206)]);this[_0xcd7a76(0x1f4)]['setConfig'](z,_0x35147f);}[_0x4b7626(0x217)](){const _0x36f2f6=_0x4b7626;[[f],[g],[S]][_0x36f2f6(0x20a)](_0x4cc6e9=>{const _0x3880f7=_0x36f2f6;this[_0x3880f7(0x1e5)][_0x3880f7(0x1de)](_0x4cc6e9);});}[_0x4b7626(0x21d)](){const _0x2307c9=_0x4b7626;this[_0x2307c9(0x1e5)]['get'](g),this['_injector'][_0x2307c9(0x1fc)](S);}};$(b,_0x4b7626(0x1d6),W),$(b,_0x4b7626(0x201),_0x3dc0f3['UNIVER_UNKNOWN']),b=ie([_0xa05568(_0x2fef6f,_0x53c880,_0x3306fe),w(0x1,_0x1820ac(_0x4bcb98)),w(0x2,_0x3e734a)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5a79(_0x4e2aa8,_0x823ad7){const _0x2432f9=_0x2432();return _0x5a79=function(_0x5a79e4,_0x3daf87){_0x5a79e4=_0x5a79e4-0x1c4;let _0x33bc64=_0x2432f9[_0x5a79e4];return _0x33bc64;},_0x5a79(_0x4e2aa8,_0x823ad7);}(function(_0x139aaf,_0x428c08){const _0x2211cc=_0x5a79,_0x56f30c=_0x139aaf();while(!![]){try{const _0x334cca=-parseInt(_0x2211cc(0x244))/0x1+-parseInt(_0x2211cc(0x1c8))/0x2*(parseInt(_0x2211cc(0x204))/0x3)+-parseInt(_0x2211cc(0x1c6))/0x4*(parseInt(_0x2211cc(0x21d))/0x5)+-parseInt(_0x2211cc(0x24a))/0x6*(parseInt(_0x2211cc(0x23e))/0x7)+parseInt(_0x2211cc(0x214))/0x8*(-parseInt(_0x2211cc(0x24e))/0x9)+parseInt(_0x2211cc(0x212))/0xa*(parseInt(_0x2211cc(0x1eb))/0xb)+-parseInt(_0x2211cc(0x205))/0xc*(-parseInt(_0x2211cc(0x20a))/0xd);if(_0x334cca===_0x428c08)break;else _0x56f30c['push'](_0x56f30c['shift']());}catch(_0x524d7c){_0x56f30c['push'](_0x56f30c['shift']());}}}(_0x2432,0x5014d),function(_0x4dd224,_0x5e9ecb){const _0x5418bc=_0x5a79;typeof exports==_0x5418bc(0x1f3)&&typeof module<'u'?_0x5e9ecb(exports,require(_0x5418bc(0x1dc)),require(_0x5418bc(0x1d1)),require(_0x5418bc(0x206)),require('@univerjs/thread-comment-ui'),require(_0x5418bc(0x243)),require(_0x5418bc(0x1d5)),require('@univerjs/network')):typeof define=='function'&&define['amd']?define(['exports',_0x5418bc(0x1dc),_0x5418bc(0x1d1),_0x5418bc(0x206),_0x5418bc(0x203),_0x5418bc(0x243),'rxjs','@univerjs/network'],_0x5e9ecb):(_0x4dd224=typeof globalThis<'u'?globalThis:_0x4dd224||self,_0x5e9ecb(_0x4dd224[_0x5418bc(0x202)]={},_0x4dd224[_0x5418bc(0x22f)],_0x4dd224[_0x5418bc(0x233)],_0x4dd224[_0x5418bc(0x238)],_0x4dd224[_0x5418bc(0x236)],_0x4dd224['UniverThreadComment'],_0x4dd224[_0x5418bc(0x1d5)],_0x4dd224[_0x5418bc(0x24f)]));}(this,function(_0x2f7650,_0x1b497f,_0x5f2cec,_0x374991,_0x1c5c7c,_0x1911a1,_0x58b860,_0x494c54){'use strict';const _0x2f589b=_0x5a79;const _0x5760d6=_0x2f589b(0x1fd);var _0x4f7c02=(_0x58c71a=>(_0x58c71a[_0x58c71a['OpenOrReOpen']=0x0]='OpenOrReOpen',_0x58c71a[_0x58c71a['Solved']=0x1]=_0x2f589b(0x1d2),_0x58c71a[_0x58c71a['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x58c71a))(_0x4f7c02||{}),_0x5271d7=(_0x2d17d0=>(_0x2d17d0[_0x2d17d0[_0x2f589b(0x201)]=0x0]='Unknown',_0x2d17d0[_0x2d17d0[_0x2f589b(0x1e4)]=0x1]='Add',_0x2d17d0[_0x2d17d0[_0x2f589b(0x235)]=0x2]='Reply',_0x2d17d0[_0x2d17d0['Edit']=0x3]=_0x2f589b(0x22e),_0x2d17d0[_0x2d17d0[_0x2f589b(0x247)]=0x4]=_0x2f589b(0x247),_0x2d17d0[_0x2d17d0[_0x2f589b(0x249)]=0x5]=_0x2f589b(0x249),_0x2d17d0[_0x2d17d0[_0x2f589b(0x1ef)]=-0x1]='UNRECOGNIZED',_0x2d17d0))(_0x5271d7||{});const _0x4a7e76=_0x3a0775=>_0x374991[_0x2f589b(0x245)](new Date(+_0x3a0775))['format'](_0x2f589b(0x215)),_0x29816e=async(_0x79f622,_0x47d209)=>{const _0x4b89af=_0x2f589b,_0x3b2d5c=_0x79f622['get'](_0x374991[_0x4b89af(0x223)]),_0x381802=_0x79f622[_0x4b89af(0x239)](_0x494c54[_0x4b89af(0x241)]);_0x47d209[_0x4b89af(0x1f2)](_0x1df8d9=>{const _0xb5a897=_0x4b89af;_0x3b2d5c[_0xb5a897(0x1e2)](_0x1df8d9)&&_0x47d209[_0xb5a897(0x1fe)](_0x1df8d9);}),_0x47d209[_0x4b89af(0x1cc)]&&(await _0x381802[_0x4b89af(0x239)]('/universer-api/user/list',{'params':{'userIDs':[..._0x47d209]}}))[_0x4b89af(0x1ed)][_0x4b89af(0x234)][_0x4b89af(0x1f2)](_0x44db93=>{const _0x50e823=_0x4b89af;_0x44db93&&_0x3b2d5c[_0x50e823(0x207)](_0x44db93);});};var _0x1babb0=Object[_0x2f589b(0x21e)],_0x4142d1=(_0x40863b,_0x1a02d9,_0x157c1a,_0x32228e)=>{const _0x4fbb09=_0x2f589b;for(var _0x50f2bd=_0x32228e>0x1?void 0x0:_0x32228e?_0x1babb0(_0x1a02d9,_0x157c1a):_0x1a02d9,_0x3a7e6f=_0x40863b[_0x4fbb09(0x23d)]-0x1,_0x5c71e6;_0x3a7e6f>=0x0;_0x3a7e6f--)(_0x5c71e6=_0x40863b[_0x3a7e6f])&&(_0x50f2bd=_0x5c71e6(_0x50f2bd)||_0x50f2bd);return _0x50f2bd;},_0x3f7ede=(_0x56daf5,_0xf8c41b)=>(_0x199e24,_0x31752b)=>_0xf8c41b(_0x199e24,_0x31752b,_0x56daf5);let _0x4067ee=class extends _0x374991['Disposable']{constructor(_0x4cd27e,_0x18a851,_0x392ea6,_0x1a9c4d){const _0x5da839=_0x2f589b;super(),this['_commentService']=_0x4cd27e,this[_0x5da839(0x22b)]=_0x18a851,this[_0x5da839(0x1c5)]=_0x392ea6,this[_0x5da839(0x1c7)]=_0x1a9c4d,this[_0x5da839(0x21b)](),this['_initUserSync']();}['_initUserSync'](){const _0x48344a=_0x2f589b;this['disposeWithMe'](this[_0x48344a(0x22b)][_0x48344a(0x200)][_0x48344a(0x23a)](_0x58b860[_0x48344a(0x217)](0x10))['subscribe'](_0x2d6bfb=>{const _0x389f61=_0x48344a,_0x333650=new Set();_0x2d6bfb[_0x389f61(0x1f2)](_0x224110=>{const _0xaf11ce=_0x389f61;switch(_0x224110[_0xaf11ce(0x1e8)]){case'add':{const _0x560d87=_0x224110[_0xaf11ce(0x228)][_0xaf11ce(0x1de)];_0x333650[_0xaf11ce(0x1f8)](_0x560d87);break;}}}),_0x29816e(this[_0x389f61(0x1c7)],_0x333650);}));}[_0x2f589b(0x21b)](){const _0x2ffb8b=_0x2f589b;this['disposeWithMe'](this[_0x2ffb8b(0x1d9)][_0x2ffb8b(0x200)][_0x2ffb8b(0x1da)](async _0x383373=>{const _0x5accf6=_0x2ffb8b;var _0x2e668d,_0x773606,_0x3c3bd6,_0x11606f;const _0xa9a85a=(_0x2e668d=this[_0x5accf6(0x22b)]['getUnit'](_0x383373[_0x5accf6(0x242)])[_0x5accf6(0x222)](_0x11ce61=>_0x11ce61[_0x5accf6(0x1d4)]===_0x383373[_0x5accf6(0x1d4)]))==null?void 0x0:_0x2e668d[_0x5accf6(0x21c)];if(!_0xa9a85a)return;const {unitId:_0x341e02,subUnitId:_0x26952c}=_0xa9a85a;switch(_0x383373[_0x5accf6(0x20d)]&&this['_userService'][_0x5accf6(0x207)](_0x383373[_0x5accf6(0x20d)]),_0x383373[_0x5accf6(0x1e8)]){case _0x5271d7[_0x5accf6(0x1e4)]:break;case _0x5271d7[_0x5accf6(0x235)]:{this[_0x5accf6(0x22b)]['addComment'](_0x341e02,_0x26952c,{'unitId':_0x341e02,'subUnitId':_0x26952c,'ref':'','id':_0x383373[_0x5accf6(0x1cf)],'dT':_0x4a7e76(+_0x383373[_0x5accf6(0x1f4)]),'threadId':_0x383373[_0x5accf6(0x1d4)],'personId':(_0x3c3bd6=(_0x773606=_0x383373['user'])==null?void 0x0:_0x773606[_0x5accf6(0x248)])!=null?_0x3c3bd6:_0x383373[_0x5accf6(0x1e7)],'text':JSON[_0x5accf6(0x1f0)](_0x383373[_0x5accf6(0x21a)]),'parentId':_0xa9a85a['id']});break;}case _0x5271d7['Delete']:{const _0x5a1bac=this['_threadCommentModel']['getComment'](_0x341e02,_0x26952c,_0x383373['replyId']);_0x5a1bac&&_0x5a1bac['parentId']&&this[_0x5accf6(0x22b)]['deleteComment'](_0x341e02,_0x26952c,_0x383373[_0x5accf6(0x1cf)]);break;}case _0x5271d7[_0x5accf6(0x22e)]:{this['_threadCommentModel'][_0x5accf6(0x229)](_0x341e02,_0x26952c,{'commentId':_0x383373['replyId'],'text':JSON[_0x5accf6(0x1f0)](_0x383373[_0x5accf6(0x21a)])});break;}case _0x5271d7[_0x5accf6(0x249)]:{const _0x29608e=(_0x11606f=this[_0x5accf6(0x22b)][_0x5accf6(0x24c)](_0x383373['unitId'])[_0x5accf6(0x222)](_0x38376c=>_0x38376c[_0x5accf6(0x1d4)]===_0x383373[_0x5accf6(0x1d4)]))==null?void 0x0:_0x11606f[_0x5accf6(0x21c)];_0x29608e&&this[_0x5accf6(0x22b)][_0x5accf6(0x1e6)](_0x341e02,_0x26952c,_0x29608e['id'],_0x383373[_0x5accf6(0x22a)]===_0x4f7c02[_0x5accf6(0x1d2)]);break;}}}));}};_0x4067ee=_0x4142d1([_0x3f7ede(0x0,_0x374991['Inject'](_0x1b497f[_0x2f589b(0x1ea)])),_0x3f7ede(0x1,_0x374991[_0x2f589b(0x1fc)](_0x1911a1[_0x2f589b(0x1d7)])),_0x3f7ede(0x2,_0x374991[_0x2f589b(0x1fc)](_0x374991['UserManagerService'])),_0x3f7ede(0x3,_0x374991[_0x2f589b(0x1fc)](_0x374991[_0x2f589b(0x22d)]))],_0x4067ee);const _0x2c2389=_0x2f589b(0x216),_0x254c26={};var _0x253157=Object[_0x2f589b(0x21e)],_0x6fc92a=(_0x3e111a,_0x48307b,_0x27c54f,_0x16ef0e)=>{const _0x59ac04=_0x2f589b;for(var _0x1367a5=_0x16ef0e>0x1?void 0x0:_0x16ef0e?_0x253157(_0x48307b,_0x27c54f):_0x48307b,_0xd518e5=_0x3e111a[_0x59ac04(0x23d)]-0x1,_0x299808;_0xd518e5>=0x0;_0xd518e5--)(_0x299808=_0x3e111a[_0xd518e5])&&(_0x1367a5=_0x299808(_0x1367a5)||_0x1367a5);return _0x1367a5;},_0x3380a4=(_0x461a03,_0x482194)=>(_0x233451,_0x2386c7)=>_0x482194(_0x233451,_0x2386c7,_0x461a03);function _0x32239b(_0x3afc3a,_0x1d8cc5){const _0x247ab8=_0x2f589b,_0x3bbfe4=_0x3afc3a[_0x247ab8(0x1d8)][0x0];return{..._0x1d8cc5,'id':_0x3bbfe4[_0x247ab8(0x1cf)],'resolved':_0x3afc3a[_0x247ab8(0x22a)]===0x1,'dT':_0x4a7e76(_0x3bbfe4['createTimestamp']),'personId':_0x3bbfe4['userId'],'threadId':_0x3bbfe4['threadId']};}function _0x1d938a(_0x2ad608,_0x31f9e4,_0x302a7d){const _0x52ed3c=_0x2f589b;var _0x1c431f,_0x2cfeca;if(((_0x2cfeca=(_0x1c431f=_0x2ad608==null?void 0x0:_0x2ad608['replies'])==null?void 0x0:_0x1c431f[_0x52ed3c(0x23d)])!=null?_0x2cfeca:0x0)>0x0){const _0x131788=(_0x29a3ac,_0x5ccffd)=>({'id':_0x29a3ac[_0x52ed3c(0x1cf)],'threadId':_0x29a3ac[_0x52ed3c(0x1d4)],'dT':_0x4a7e76(_0x29a3ac['createTimestamp']),'personId':_0x29a3ac[_0x52ed3c(0x1e7)],'resolved':_0x2ad608[_0x52ed3c(0x22a)]===_0x4f7c02[_0x52ed3c(0x1d2)],'unitId':_0x31f9e4,'subUnitId':_0x302a7d,'text':JSON['parse'](_0x29a3ac[_0x52ed3c(0x21a)]),'parentId':_0x5ccffd}),_0x1fd250=_0x131788(_0x2ad608[_0x52ed3c(0x1d8)][0x0]);return{..._0x1fd250,'children':_0x2ad608[_0x52ed3c(0x1d8)][_0x52ed3c(0x1fa)](0x1)[_0x52ed3c(0x1e3)](_0x3267e3=>_0x131788(_0x3267e3,_0x1fd250['id']))};}return null;}let _0x38ffc9=class{constructor(_0x467b4d,_0x806804,_0x37217e,_0x499bb2){const _0x3915ef=_0x2f589b;this['_httpService']=_0x467b4d,this[_0x3915ef(0x1c5)]=_0x806804,this['_sessionService']=_0x37217e,this[_0x3915ef(0x1c7)]=_0x499bb2;}async[_0x2f589b(0x1db)](_0x2eb141){const _0x10a25e=_0x2f589b;var _0x163c52,_0x5d3540;const {parentId:_0x4aa010,unitId:_0x53768b,text:_0x1452fc,threadId:_0x213626}=_0x2eb141,_0x53f70f=(_0x5d3540=(_0x163c52=_0x1452fc['customRanges'])==null?void 0x0:_0x163c52[_0x10a25e(0x1f9)](_0x594d56=>_0x594d56[_0x10a25e(0x1f5)]===_0x374991[_0x10a25e(0x20c)][_0x10a25e(0x1f1)])[_0x10a25e(0x1e3)](_0x27b1ea=>_0x27b1ea[_0x10a25e(0x218)]))!=null?_0x5d3540:[],_0x13ad78=JSON[_0x10a25e(0x221)](_0x1452fc),_0x12ed3d=(await this[_0x10a25e(0x22c)][_0x10a25e(0x237)](_0x53768b))['getMemberID']();if(_0x4aa010){const _0x4b56eb={'memberId':_0x12ed3d,'unitId':_0x53768b,'content':_0x13ad78,'mention':_0x53f70f,'threadId':_0x213626},_0xeeba02=(await this[_0x10a25e(0x1d3)][_0x10a25e(0x232)](_0x10a25e(0x1e9)+_0x53768b+_0x10a25e(0x1fb),{'body':_0x4b56eb}))[_0x10a25e(0x1ed)][_0x10a25e(0x220)];return{..._0x2eb141,'id':_0xeeba02['replyId'],'dT':_0x374991[_0x10a25e(0x245)](+_0xeeba02[_0x10a25e(0x1f4)])[_0x10a25e(0x1ce)]('YYYY/MM/DD\x20HH:mm'),'personId':_0xeeba02[_0x10a25e(0x1e7)]};}else{const _0x377fff={'memberId':_0x12ed3d,'unitId':_0x53768b,'content':_0x13ad78,'mention':_0x53f70f},_0x4ab30f=await this[_0x10a25e(0x1d3)][_0x10a25e(0x232)](_0x10a25e(0x1e9)+_0x53768b+_0x10a25e(0x250),{'body':_0x377fff});return _0x32239b(_0x4ab30f[_0x10a25e(0x1ed)][_0x10a25e(0x226)],_0x2eb141);}}async[_0x2f589b(0x229)](_0x5f0c99){const _0x36ff44=_0x2f589b;var _0x58ab37,_0x42a160;const {text:_0xde3006,unitId:_0x8e032d}=_0x5f0c99,_0x4e7f3b=(_0x42a160=(_0x58ab37=_0xde3006['customRanges'])==null?void 0x0:_0x58ab37[_0x36ff44(0x1f9)](_0x249d32=>_0x249d32['rangeType']===_0x374991[_0x36ff44(0x20c)][_0x36ff44(0x1f1)])[_0x36ff44(0x1e3)](_0x4b86cf=>_0x4b86cf[_0x36ff44(0x218)]))!=null?_0x42a160:[],_0x39c456=JSON['stringify'](_0xde3006),_0x4032bb=_0x5f0c99[_0x36ff44(0x1d4)],_0x47f8e7=_0x5f0c99['id'],_0x4fa967={'memberId':(await this[_0x36ff44(0x22c)][_0x36ff44(0x237)](_0x8e032d))[_0x36ff44(0x20e)](),'unitId':_0x8e032d,'threadId':_0x4032bb,'mention':_0x4e7f3b,'content':_0x39c456,'replyId':_0x47f8e7},_0x119f84=await this[_0x36ff44(0x1d3)]['post'](_0x36ff44(0x1e9)+_0x8e032d+_0x36ff44(0x1ff),{'body':_0x4fa967});return!_0x119f84[_0x36ff44(0x1ed)][_0x36ff44(0x227)]||_0x119f84[_0x36ff44(0x1ed)][_0x36ff44(0x227)][_0x36ff44(0x1e5)]===0x1;}async[_0x2f589b(0x1e6)](_0x582cf6){const _0x463539=_0x2f589b,{unitId:_0x1a6393}=_0x582cf6,_0x655b64=_0x582cf6[_0x463539(0x1d4)],_0x26b977={'memberId':this[_0x463539(0x1c5)][_0x463539(0x1e0)]()[_0x463539(0x248)],'unitId':_0x1a6393,'threadId':_0x655b64,'solved':_0x582cf6['resolved']?_0x4f7c02[_0x463539(0x1d2)]:_0x4f7c02[_0x463539(0x1d0)]},_0x1385f4=await this[_0x463539(0x1d3)][_0x463539(0x232)]('/universer-api/comment/unit/'+_0x1a6393+_0x463539(0x208),{'body':_0x26b977});return!_0x1385f4[_0x463539(0x1ed)]['error']||_0x1385f4[_0x463539(0x1ed)][_0x463539(0x227)]['code']===0x1;}async[_0x2f589b(0x1c4)](_0x4b187a,_0x1b2401,_0x8b0f5b,_0x24cea8){const _0x27a0de=_0x2f589b,_0x34c462={'memberId':(await this[_0x27a0de(0x22c)]['requireSession'](_0x4b187a))['getMemberID'](),'threadId':_0x8b0f5b,'replyId':_0x24cea8,'unitId':_0x4b187a},_0x19030c=await this[_0x27a0de(0x1d3)][_0x27a0de(0x232)](_0x27a0de(0x1e9)+_0x4b187a+_0x27a0de(0x1e1),{'body':_0x34c462});return!_0x19030c['body'][_0x27a0de(0x227)]||_0x19030c[_0x27a0de(0x1ed)][_0x27a0de(0x227)][_0x27a0de(0x1e5)]===0x1;}async['listComments'](_0x409bc5,_0x1527de,_0x113253){const _0x4ac909=_0x2f589b,_0x295a4b={'unitId':_0x409bc5,'threadId':_0x113253},_0xe92855=await this[_0x4ac909(0x1d3)][_0x4ac909(0x232)](_0x4ac909(0x1e9)+_0x409bc5+'/list',{'body':_0x295a4b}),_0x4006cd=_0x113253[_0x4ac909(0x1e3)](_0x31ec64=>_0x1d938a(_0xe92855[_0x4ac909(0x1ed)][_0x4ac909(0x23c)][_0x31ec64],_0x409bc5,_0x1527de))['filter'](Boolean);return Object[_0x4ac909(0x211)](_0xe92855['body'][_0x4ac909(0x234)])[_0x4ac909(0x1f2)](_0x411c2b=>{const _0x17cc15=_0x4ac909;this[_0x17cc15(0x1c5)][_0x17cc15(0x207)](_0x411c2b);}),_0x4006cd;}[_0x2f589b(0x24d)](_0x261f87){const _0x3a4d31=_0x2f589b;return{'id':_0x261f87['id'],'threadId':_0x261f87[_0x3a4d31(0x1d4)],'ref':_0x261f87[_0x3a4d31(0x230)]};}};_0x38ffc9=_0x6fc92a([_0x3380a4(0x0,_0x374991[_0x2f589b(0x1fc)](_0x494c54[_0x2f589b(0x241)])),_0x3380a4(0x1,_0x374991['Inject'](_0x374991[_0x2f589b(0x223)])),_0x3380a4(0x2,_0x374991['Inject'](_0x1b497f[_0x2f589b(0x1c9)])),_0x3380a4(0x3,_0x374991[_0x2f589b(0x1fc)](_0x374991['Injector']))],_0x38ffc9);var _0x54df55=Object[_0x2f589b(0x21e)],_0x4e4aac=(_0x23fbea,_0x5bde50,_0x41fab1,_0x521d48)=>{const _0xe69e48=_0x2f589b;for(var _0x4ce823=_0x521d48>0x1?void 0x0:_0x521d48?_0x54df55(_0x5bde50,_0x41fab1):_0x5bde50,_0x40753d=_0x23fbea[_0xe69e48(0x23d)]-0x1,_0x380a01;_0x40753d>=0x0;_0x40753d--)(_0x380a01=_0x23fbea[_0x40753d])&&(_0x4ce823=_0x380a01(_0x4ce823)||_0x4ce823);return _0x4ce823;},_0x31fdac=(_0x3053ea,_0x5c68cc)=>(_0x48bbe9,_0x25c763)=>_0x5c68cc(_0x48bbe9,_0x25c763,_0x3053ea);let _0x3692c8=class extends _0x374991[_0x2f589b(0x213)]{constructor(_0x4bd915,_0x34cf5b){const _0x2f78ab=_0x2f589b;super(),this['_threadCommentDataSourceService']=_0x4bd915,this[_0x2f78ab(0x210)]=_0x34cf5b,this['_initDataSource']();}[_0x2f589b(0x23f)](){const _0x5aa42a=_0x2f589b;this[_0x5aa42a(0x240)][_0x5aa42a(0x1d6)]=this[_0x5aa42a(0x210)],this[_0x5aa42a(0x240)]['syncUpdateMutationToColla']=!0x1;}};_0x3692c8=_0x4e4aac([_0x31fdac(0x0,_0x1911a1[_0x2f589b(0x1f6)]),_0x31fdac(0x1,_0x374991[_0x2f589b(0x1fc)](_0x38ffc9))],_0x3692c8);var _0x5848fe=Object[_0x2f589b(0x231)],_0xfd1da4=Object[_0x2f589b(0x21e)],_0x14555a=(_0x14f768,_0x1dff89,_0x263c3d)=>_0x1dff89 in _0x14f768?_0x5848fe(_0x14f768,_0x1dff89,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x263c3d}):_0x14f768[_0x1dff89]=_0x263c3d,_0x1bff6d=(_0x2dacc9,_0x15399d,_0x1f4281,_0x27238e)=>{for(var _0x1d67c2=_0x27238e>0x1?void 0x0:_0x27238e?_0xfd1da4(_0x15399d,_0x1f4281):_0x15399d,_0x5d74a3=_0x2dacc9['length']-0x1,_0x3771bf;_0x5d74a3>=0x0;_0x5d74a3--)(_0x3771bf=_0x2dacc9[_0x5d74a3])&&(_0x1d67c2=_0x3771bf(_0x1d67c2)||_0x1d67c2);return _0x1d67c2;},_0x55af28=(_0x8e44b4,_0x43d6c2)=>(_0x42f872,_0x1b51b8)=>_0x43d6c2(_0x42f872,_0x1b51b8,_0x8e44b4),_0x3d3e79=(_0x27c4a8,_0x285815,_0x1deb4b)=>_0x14555a(_0x27c4a8,typeof _0x285815!='symbol'?_0x285815+'':_0x285815,_0x1deb4b);_0x2f7650['UniverThreadCommentDataSourcePlugin']=class extends _0x374991[_0x2f589b(0x20f)]{constructor(_0x502ce3=_0x254c26,_0x18ada1,_0x242fd9){const _0x1c96eb=_0x2f589b;super(),this[_0x1c96eb(0x1ee)]=_0x502ce3,this[_0x1c96eb(0x1c7)]=_0x18ada1,this['_configService']=_0x242fd9;const {..._0x14ff8c}=_0x374991[_0x1c96eb(0x20b)]({},_0x254c26,this[_0x1c96eb(0x1ee)]);this[_0x1c96eb(0x1ca)][_0x1c96eb(0x23b)](_0x2c2389,_0x14ff8c);}[_0x2f589b(0x246)](){const _0x388b9c=_0x2f589b;[[_0x38ffc9],[_0x3692c8],[_0x4067ee]][_0x388b9c(0x1f2)](_0x4a3a6d=>{const _0x547cc5=_0x388b9c;this[_0x547cc5(0x1c7)][_0x547cc5(0x1f8)](_0x4a3a6d);});}[_0x2f589b(0x21f)](){const _0x25f7a8=_0x2f589b;this[_0x25f7a8(0x1c7)][_0x25f7a8(0x239)](_0x3692c8),this['_injector']['get'](_0x4067ee);}},_0x3d3e79(_0x2f7650['UniverThreadCommentDataSourcePlugin'],_0x2f589b(0x1df),_0x5760d6),_0x3d3e79(_0x2f7650['UniverThreadCommentDataSourcePlugin'],_0x2f589b(0x1e8),_0x374991[_0x2f589b(0x224)][_0x2f589b(0x1cb)]),_0x2f7650[_0x2f589b(0x1f7)]=_0x1bff6d([_0x374991[_0x2f589b(0x209)](_0x1c5c7c[_0x2f589b(0x24b)],_0x1b497f[_0x2f589b(0x219)],_0x5f2cec[_0x2f589b(0x225)]),_0x55af28(0x1,_0x374991[_0x2f589b(0x1fc)](_0x374991[_0x2f589b(0x22d)])),_0x55af28(0x2,_0x374991[_0x2f589b(0x1cd)])],_0x2f7650[_0x2f589b(0x1f7)]),Object[_0x2f589b(0x231)](_0x2f7650,Symbol[_0x2f589b(0x1ec)],{'value':_0x2f589b(0x1dd)});}));function _0x2432(){const _0x87986d=['_sessionService','Injector','Edit','UniverProCollaborationClient','ref','defineProperty','post','UniverProLicense','users','Reply','UniverThreadCommentUi','requireSession','UniverCore','get','pipe','setConfig','comments','length','133eyjtmv','_initDataSource','_threadCommentDataSourceService','HTTPService','unitId','@univerjs/thread-comment','194538VLfiLR','dayjs','onStarting','Delete','userID','Solve','195684sHPyAD','UniverThreadCommentUIPlugin','getUnit','saveCommentToSnapshot','39168tibOTM','UniverNetwork','/add','deleteComment','_userService','78364GtbiRG','_injector','2rXzHuf','CollaborationSessionService','_configService','UNIVER_UNKNOWN','size','IConfigService','format','replyId','OpenOrReOpen','@univerjs-pro/license','Solved','_httpService','threadId','rxjs','dataSource','ThreadCommentModel','replies','_commentService','subscribe','addComment','@univerjs-pro/collaboration-client','Module','personId','pluginName','getCurrentUser','/delete','getUser','map','Add','code','resolveComment','userId','type','/universer-api/comment/unit/','CommentService','17303MJpCbd','toStringTag','body','_config','UNRECOGNIZED','parse','COMMENT','forEach','object','createTimestamp','rangeType','IThreadCommentDataSourceService','UniverThreadCommentDataSourcePlugin','add','filter','slice','/reply','Inject','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','delete','/edit','commentUpdate$','Unknown','UniverProThreadCommentDatasource','@univerjs/thread-comment-ui','93498bKRGuN','12FOYkon','@univerjs/core','addUser','/solved','DependentOn','17654819PUiqLj','merge','CustomRangeType','user','getMemberID','Plugin','_threadCommentDataSource','values','2410xoHdSh','Disposable','64wYvdtF','YYYY/MM/DD\x20HH:mm','thread-comment-data-source.config','bufferTime','rangeId','UniverCollaborationClientPlugin','content','_init','root','135cGIgJR','getOwnPropertyDescriptor','onReady','reply','stringify','find','UserManagerService','UniverInstanceType','UniverLicensePlugin','comment','error','payload','updateComment','solved','_threadCommentModel'];_0x2432=function(){return _0x87986d;};return _0x2432();}
|
|
1
|
+
function _0x30ce(_0x3e106a,_0x29e464){const _0x3dfda2=_0x3dfd();return _0x30ce=function(_0x30cec2,_0x1cc5ff){_0x30cec2=_0x30cec2-0xac;let _0x12a9f9=_0x3dfda2[_0x30cec2];return _0x12a9f9;},_0x30ce(_0x3e106a,_0x29e464);}function _0x3dfd(){const _0x1d343f=['UniverThreadCommentDataSourcePlugin','COMMENT','935784KcYThn','UserManagerService','parse','resolveComment','get','content','listComments','thread-comment-data-source.config','pipe','forEach','Solved','defineProperty','_config','@univerjs/network','replies','Reply','type','length','stringify','Edit','error','11HUcolq','setConfig','rangeId','createTimestamp','addUser','userId','Injector','_userService','root','getUnit','UniverLicensePlugin','CommentService','_threadCommentModel','/delete','20aQRnVT','12417zsbLPs','onReady','code','user','Add','solved','/universer-api/comment/unit/','OpenOrReOpen','personId','UniverCollaborationClientPlugin','2549128ltXIBc','_configService','/solved','resolved','dayjs','4100470MNcRXg','14932luzAHM','getOwnPropertyDescriptor','UniverThreadCommentUIPlugin','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','1715WxGzMm','Inject','UniverProThreadCommentDatasource','Solve','deleteComment','_init','amd','addComment','unitId','commentUpdate$','reply','2561811NNWwtw','@univerjs/thread-comment','syncUpdateMutationToColla','@univerjs/core','dataSource','requireSession','_threadCommentDataSource','disposeWithMe','pluginName','_sessionService','getUser','exports','post','userID','slice','Module','toStringTag','add','/list','customRanges','UniverCore','subscribe','function','CustomRangeType','HTTPService','ref','threadId','symbol','YYYY/MM/DD\x20HH:mm','body','UniverProCollaborationClient','@univerjs/thread-comment-ui','/universer-api/user/list','_injector','_initDataSource','comment','filter','Delete','find','getCurrentUser','IConfigService','rxjs','UniverThreadComment','saveCommentToSnapshot','CollaborationSessionService','updateComment','format','_threadCommentDataSourceService','getMemberID','Disposable','6612JpfwCR','UniverThreadCommentUi','bufferTime','replyId','Unknown','rangeType','map','_initUserSync','@univerjs-pro/license','UNIVER_UNKNOWN','getComment','_httpService','UNRECOGNIZED','_commentService','@univerjs-pro/collaboration-client','object','12ZSbQOx','IThreadCommentDataSourceService','/reply'];_0x3dfd=function(){return _0x1d343f;};return _0x3dfd();}(function(_0x2e7733,_0x1ec33f){const _0x8fd5ba=_0x30ce,_0x419af7=_0x2e7733();while(!![]){try{const _0x17304f=-parseInt(_0x8fd5ba(0x108))/0x1*(-parseInt(_0x8fd5ba(0xb7))/0x2)+parseInt(_0x8fd5ba(0x131))/0x3*(parseInt(_0x8fd5ba(0x130))/0x4)+parseInt(_0x8fd5ba(0xbb))/0x5*(-parseInt(_0x8fd5ba(0xf8))/0x6)+-parseInt(_0x8fd5ba(0xc6))/0x7+parseInt(_0x8fd5ba(0xb1))/0x8+parseInt(_0x8fd5ba(0x10d))/0x9+parseInt(_0x8fd5ba(0xb6))/0xa*(parseInt(_0x8fd5ba(0x122))/0xb);if(_0x17304f===_0x1ec33f)break;else _0x419af7['push'](_0x419af7['shift']());}catch(_0x41c7c7){_0x419af7['push'](_0x419af7['shift']());}}}(_0x3dfd,0x30950),function(_0x11cfd4,_0x491fac){const _0x3ec3cc=_0x30ce;typeof exports==_0x3ec3cc(0x107)&&typeof module<'u'?_0x491fac(exports,require(_0x3ec3cc(0x106)),require(_0x3ec3cc(0x100)),require(_0x3ec3cc(0xc9)),require(_0x3ec3cc(0xe5)),require(_0x3ec3cc(0xc7)),require(_0x3ec3cc(0xef)),require('@univerjs/network')):typeof define==_0x3ec3cc(0xdc)&&define[_0x3ec3cc(0xc1)]?define([_0x3ec3cc(0xd1),_0x3ec3cc(0x106),_0x3ec3cc(0x100),_0x3ec3cc(0xc9),'@univerjs/thread-comment-ui',_0x3ec3cc(0xc7),_0x3ec3cc(0xef),_0x3ec3cc(0x11a)],_0x491fac):(_0x11cfd4=typeof globalThis<'u'?globalThis:_0x11cfd4||self,_0x491fac(_0x11cfd4[_0x3ec3cc(0xbd)]={},_0x11cfd4[_0x3ec3cc(0xe4)],_0x11cfd4['UniverProLicense'],_0x11cfd4[_0x3ec3cc(0xda)],_0x11cfd4[_0x3ec3cc(0xf9)],_0x11cfd4[_0x3ec3cc(0xf0)],_0x11cfd4[_0x3ec3cc(0xef)],_0x11cfd4['UniverNetwork']));}(this,function(_0x312e75,_0x11dc37,_0x1342d1,_0x45f127,_0x7c05d2,_0x2dcb62,_0x131c10,_0x30329a){'use strict';const _0x4c5739=_0x30ce;const _0x494a70=_0x4c5739(0xba);var _0x12dd52=(_0x2362ea=>(_0x2362ea[_0x2362ea[_0x4c5739(0xae)]=0x0]='OpenOrReOpen',_0x2362ea[_0x2362ea[_0x4c5739(0x117)]=0x1]=_0x4c5739(0x117),_0x2362ea[_0x2362ea['UNRECOGNIZED']=-0x1]=_0x4c5739(0x104),_0x2362ea))(_0x12dd52||{}),_0x5dd432=(_0x733d4a=>(_0x733d4a[_0x733d4a[_0x4c5739(0xfc)]=0x0]=_0x4c5739(0xfc),_0x733d4a[_0x733d4a['Add']=0x1]='Add',_0x733d4a[_0x733d4a[_0x4c5739(0x11c)]=0x2]=_0x4c5739(0x11c),_0x733d4a[_0x733d4a['Edit']=0x3]=_0x4c5739(0x120),_0x733d4a[_0x733d4a[_0x4c5739(0xeb)]=0x4]=_0x4c5739(0xeb),_0x733d4a[_0x733d4a[_0x4c5739(0xbe)]=0x5]=_0x4c5739(0xbe),_0x733d4a[_0x733d4a[_0x4c5739(0x104)]=-0x1]=_0x4c5739(0x104),_0x733d4a))(_0x5dd432||{});const _0x3fc404=_0x3d5227=>_0x45f127['dayjs'](new Date(+_0x3d5227))['format'](_0x4c5739(0xe2)),_0x15bd2e=async(_0x2f1f51,_0x49bce4)=>{const _0xc8d819=_0x4c5739,_0x39a174=_0x2f1f51[_0xc8d819(0x111)](_0x45f127[_0xc8d819(0x10e)]),_0xe69507=_0x2f1f51[_0xc8d819(0x111)](_0x30329a[_0xc8d819(0xde)]);_0x49bce4['forEach'](_0x37d201=>{const _0x151d3e=_0xc8d819;_0x39a174[_0x151d3e(0xd0)](_0x37d201)&&_0x49bce4['delete'](_0x37d201);}),_0x49bce4['size']&&(await _0xe69507[_0xc8d819(0x111)](_0xc8d819(0xe6),{'params':{'userIDs':[..._0x49bce4]}}))[_0xc8d819(0xe3)]['users'][_0xc8d819(0x116)](_0x1c98d3=>{const _0xee172c=_0xc8d819;_0x1c98d3&&_0x39a174[_0xee172c(0x126)](_0x1c98d3);});};var _0x33b1fb=Object[_0x4c5739(0xb8)],_0x155e2e=(_0x413aa8,_0x3d23a7,_0x5f38e8,_0x4e9334)=>{const _0x1edb9a=_0x4c5739;for(var _0x49e3ad=_0x4e9334>0x1?void 0x0:_0x4e9334?_0x33b1fb(_0x3d23a7,_0x5f38e8):_0x3d23a7,_0x206e0b=_0x413aa8[_0x1edb9a(0x11e)]-0x1,_0x1cbfff;_0x206e0b>=0x0;_0x206e0b--)(_0x1cbfff=_0x413aa8[_0x206e0b])&&(_0x49e3ad=_0x1cbfff(_0x49e3ad)||_0x49e3ad);return _0x49e3ad;},_0x40ddcd=(_0x2f4d33,_0x59d721)=>(_0x5d43e3,_0x24cf6d)=>_0x59d721(_0x5d43e3,_0x24cf6d,_0x2f4d33);let _0x4028e8=class extends _0x45f127[_0x4c5739(0xf7)]{constructor(_0x361bb3,_0x54da77,_0x5d1e86,_0x418b12){const _0x46610f=_0x4c5739;super(),this[_0x46610f(0x105)]=_0x361bb3,this[_0x46610f(0x12e)]=_0x54da77,this[_0x46610f(0x129)]=_0x5d1e86,this['_injector']=_0x418b12,this[_0x46610f(0xc0)](),this['_initUserSync']();}[_0x4c5739(0xff)](){const _0x3dccbc=_0x4c5739;this[_0x3dccbc(0xcd)](this['_threadCommentModel'][_0x3dccbc(0xc4)][_0x3dccbc(0x115)](_0x131c10[_0x3dccbc(0xfa)](0x10))[_0x3dccbc(0xdb)](_0x3eb2e5=>{const _0x23f660=_0x3dccbc,_0x50af7c=new Set();_0x3eb2e5[_0x23f660(0x116)](_0x1acc0e=>{const _0x12d56b=_0x23f660;switch(_0x1acc0e['type']){case _0x12d56b(0xd7):{const _0x57a5f3=_0x1acc0e['payload'][_0x12d56b(0xaf)];_0x50af7c[_0x12d56b(0xd7)](_0x57a5f3);break;}}}),_0x15bd2e(this[_0x23f660(0xe7)],_0x50af7c);}));}[_0x4c5739(0xc0)](){const _0x160f41=_0x4c5739;this[_0x160f41(0xcd)](this[_0x160f41(0x105)][_0x160f41(0xc4)][_0x160f41(0xdb)](async _0x960ed6=>{const _0x4d0545=_0x160f41;var _0x7475c7,_0x33c86d,_0x4ee620,_0xca84f4;const _0x44d37e=(_0x7475c7=this[_0x4d0545(0x12e)][_0x4d0545(0x12b)](_0x960ed6['unitId'])[_0x4d0545(0xec)](_0x2ffa09=>_0x2ffa09[_0x4d0545(0xe0)]===_0x960ed6[_0x4d0545(0xe0)]))==null?void 0x0:_0x7475c7[_0x4d0545(0x12a)];if(!_0x44d37e)return;const {unitId:_0x1b3643,subUnitId:_0x1e636b}=_0x44d37e;switch(_0x960ed6[_0x4d0545(0x134)]&&this['_userService'][_0x4d0545(0x126)](_0x960ed6[_0x4d0545(0x134)]),_0x960ed6[_0x4d0545(0x11d)]){case _0x5dd432[_0x4d0545(0x135)]:break;case _0x5dd432['Reply']:{this[_0x4d0545(0x12e)][_0x4d0545(0xc2)](_0x1b3643,_0x1e636b,{'unitId':_0x1b3643,'subUnitId':_0x1e636b,'ref':'','id':_0x960ed6[_0x4d0545(0xfb)],'dT':_0x3fc404(+_0x960ed6[_0x4d0545(0x125)]),'threadId':_0x960ed6[_0x4d0545(0xe0)],'personId':(_0x4ee620=(_0x33c86d=_0x960ed6[_0x4d0545(0x134)])==null?void 0x0:_0x33c86d[_0x4d0545(0xd3)])!=null?_0x4ee620:_0x960ed6['userId'],'text':JSON[_0x4d0545(0x10f)](_0x960ed6[_0x4d0545(0x112)]),'parentId':_0x44d37e['id']});break;}case _0x5dd432[_0x4d0545(0xeb)]:{const _0xa67f39=this[_0x4d0545(0x12e)][_0x4d0545(0x102)](_0x1b3643,_0x1e636b,_0x960ed6[_0x4d0545(0xfb)]);_0xa67f39&&_0xa67f39['parentId']&&this[_0x4d0545(0x12e)][_0x4d0545(0xbf)](_0x1b3643,_0x1e636b,_0x960ed6[_0x4d0545(0xfb)]);break;}case _0x5dd432[_0x4d0545(0x120)]:{this[_0x4d0545(0x12e)]['updateComment'](_0x1b3643,_0x1e636b,{'commentId':_0x960ed6[_0x4d0545(0xfb)],'text':JSON[_0x4d0545(0x10f)](_0x960ed6[_0x4d0545(0x112)])});break;}case _0x5dd432['Solve']:{const _0x3f5ca9=(_0xca84f4=this['_threadCommentModel'][_0x4d0545(0x12b)](_0x960ed6[_0x4d0545(0xc3)])[_0x4d0545(0xec)](_0x2e28c7=>_0x2e28c7[_0x4d0545(0xe0)]===_0x960ed6[_0x4d0545(0xe0)]))==null?void 0x0:_0xca84f4[_0x4d0545(0x12a)];_0x3f5ca9&&this[_0x4d0545(0x12e)][_0x4d0545(0x110)](_0x1b3643,_0x1e636b,_0x3f5ca9['id'],_0x960ed6[_0x4d0545(0xac)]===_0x12dd52[_0x4d0545(0x117)]);break;}}}));}};_0x4028e8=_0x155e2e([_0x40ddcd(0x0,_0x45f127['Inject'](_0x11dc37[_0x4c5739(0x12d)])),_0x40ddcd(0x1,_0x45f127[_0x4c5739(0xbc)](_0x2dcb62['ThreadCommentModel'])),_0x40ddcd(0x2,_0x45f127[_0x4c5739(0xbc)](_0x45f127[_0x4c5739(0x10e)])),_0x40ddcd(0x3,_0x45f127[_0x4c5739(0xbc)](_0x45f127[_0x4c5739(0x128)]))],_0x4028e8);const _0x3f135e=_0x4c5739(0x114),_0x1393c1={};var _0x37cf65=Object[_0x4c5739(0xb8)],_0x4b4ba7=(_0x1697c9,_0x3df8bb,_0x4b955c,_0x4a8d18)=>{const _0x193cdb=_0x4c5739;for(var _0x1ced1a=_0x4a8d18>0x1?void 0x0:_0x4a8d18?_0x37cf65(_0x3df8bb,_0x4b955c):_0x3df8bb,_0x29079b=_0x1697c9[_0x193cdb(0x11e)]-0x1,_0x2fadd1;_0x29079b>=0x0;_0x29079b--)(_0x2fadd1=_0x1697c9[_0x29079b])&&(_0x1ced1a=_0x2fadd1(_0x1ced1a)||_0x1ced1a);return _0x1ced1a;},_0x789be=(_0x2e9837,_0x273042)=>(_0x72802,_0x149ac1)=>_0x273042(_0x72802,_0x149ac1,_0x2e9837);function _0x45267c(_0x4bd016,_0x247c3c){const _0x4ff59a=_0x4c5739,_0x475c75=_0x4bd016['replies'][0x0];return{..._0x247c3c,'id':_0x475c75[_0x4ff59a(0xfb)],'resolved':_0x4bd016[_0x4ff59a(0xac)]===0x1,'dT':_0x3fc404(_0x475c75['createTimestamp']),'personId':_0x475c75[_0x4ff59a(0x127)],'threadId':_0x475c75[_0x4ff59a(0xe0)]};}function _0x552f46(_0x482781,_0x2fa8bc,_0x4610ed){const _0x57b6f8=_0x4c5739;var _0x57e0c5,_0x2b9dd7;if(((_0x2b9dd7=(_0x57e0c5=_0x482781==null?void 0x0:_0x482781[_0x57b6f8(0x11b)])==null?void 0x0:_0x57e0c5['length'])!=null?_0x2b9dd7:0x0)>0x0){const _0x4a6ffd=(_0x1e9152,_0x5024de)=>({'id':_0x1e9152[_0x57b6f8(0xfb)],'threadId':_0x1e9152[_0x57b6f8(0xe0)],'dT':_0x3fc404(_0x1e9152[_0x57b6f8(0x125)]),'personId':_0x1e9152['userId'],'resolved':_0x482781[_0x57b6f8(0xac)]===_0x12dd52[_0x57b6f8(0x117)],'unitId':_0x2fa8bc,'subUnitId':_0x4610ed,'text':JSON[_0x57b6f8(0x10f)](_0x1e9152[_0x57b6f8(0x112)]),'parentId':_0x5024de}),_0x17a6e7=_0x4a6ffd(_0x482781[_0x57b6f8(0x11b)][0x0]);return{..._0x17a6e7,'children':_0x482781['replies'][_0x57b6f8(0xd4)](0x1)[_0x57b6f8(0xfe)](_0xb3806=>_0x4a6ffd(_0xb3806,_0x17a6e7['id']))};}return null;}let _0xe2fc66=class{constructor(_0x529503,_0x4496a4,_0x330e2e,_0x15cbf8){const _0x4fe752=_0x4c5739;this['_httpService']=_0x529503,this[_0x4fe752(0x129)]=_0x4496a4,this[_0x4fe752(0xcf)]=_0x330e2e,this[_0x4fe752(0xe7)]=_0x15cbf8;}async[_0x4c5739(0xc2)](_0x583c2e){const _0x24e65f=_0x4c5739;var _0x1b7605,_0x131b7f;const {parentId:_0x26164b,unitId:_0xae963e,text:_0x267041,threadId:_0x558cf4}=_0x583c2e,_0x5b7873=(_0x131b7f=(_0x1b7605=_0x267041['customRanges'])==null?void 0x0:_0x1b7605[_0x24e65f(0xea)](_0x18a115=>_0x18a115[_0x24e65f(0xfd)]===_0x45f127['CustomRangeType']['COMMENT'])[_0x24e65f(0xfe)](_0x362197=>_0x362197[_0x24e65f(0x124)]))!=null?_0x131b7f:[],_0x5a75f5=JSON[_0x24e65f(0x11f)](_0x267041),_0x20357c=(await this[_0x24e65f(0xcf)][_0x24e65f(0xcb)](_0xae963e))[_0x24e65f(0xf6)]();if(_0x26164b){const _0x45d08={'memberId':_0x20357c,'unitId':_0xae963e,'content':_0x5a75f5,'mention':_0x5b7873,'threadId':_0x558cf4},_0x304514=(await this[_0x24e65f(0x103)][_0x24e65f(0xd2)](_0x24e65f(0xad)+_0xae963e+_0x24e65f(0x10a),{'body':_0x45d08}))['body'][_0x24e65f(0xc5)];return{..._0x583c2e,'id':_0x304514[_0x24e65f(0xfb)],'dT':_0x45f127[_0x24e65f(0xb5)](+_0x304514['createTimestamp'])[_0x24e65f(0xf4)]('YYYY/MM/DD\x20HH:mm'),'personId':_0x304514['userId']};}else{const _0x30d1f6={'memberId':_0x20357c,'unitId':_0xae963e,'content':_0x5a75f5,'mention':_0x5b7873},_0x29f09c=await this['_httpService'][_0x24e65f(0xd2)](_0x24e65f(0xad)+_0xae963e+'/add',{'body':_0x30d1f6});return _0x45267c(_0x29f09c[_0x24e65f(0xe3)][_0x24e65f(0xe9)],_0x583c2e);}}async[_0x4c5739(0xf3)](_0x376a8a){const _0x40421d=_0x4c5739;var _0x134a78,_0x19e08c;const {text:_0x342ea4,unitId:_0x54a116}=_0x376a8a,_0x5a045b=(_0x19e08c=(_0x134a78=_0x342ea4[_0x40421d(0xd9)])==null?void 0x0:_0x134a78[_0x40421d(0xea)](_0x3c8b1e=>_0x3c8b1e[_0x40421d(0xfd)]===_0x45f127[_0x40421d(0xdd)][_0x40421d(0x10c)])['map'](_0x3a4e46=>_0x3a4e46[_0x40421d(0x124)]))!=null?_0x19e08c:[],_0x1b0a66=JSON[_0x40421d(0x11f)](_0x342ea4),_0x351e4c=_0x376a8a[_0x40421d(0xe0)],_0x408918=_0x376a8a['id'],_0x24cc24={'memberId':(await this[_0x40421d(0xcf)][_0x40421d(0xcb)](_0x54a116))['getMemberID'](),'unitId':_0x54a116,'threadId':_0x351e4c,'mention':_0x5a045b,'content':_0x1b0a66,'replyId':_0x408918},_0x41178d=await this['_httpService'][_0x40421d(0xd2)](_0x40421d(0xad)+_0x54a116+'/edit',{'body':_0x24cc24});return!_0x41178d[_0x40421d(0xe3)][_0x40421d(0x121)]||_0x41178d[_0x40421d(0xe3)][_0x40421d(0x121)][_0x40421d(0x133)]===0x1;}async[_0x4c5739(0x110)](_0x276341){const _0x1111e6=_0x4c5739,{unitId:_0x444da4}=_0x276341,_0x439778=_0x276341[_0x1111e6(0xe0)],_0x44edd1={'memberId':this[_0x1111e6(0x129)][_0x1111e6(0xed)]()['userID'],'unitId':_0x444da4,'threadId':_0x439778,'solved':_0x276341[_0x1111e6(0xb4)]?_0x12dd52[_0x1111e6(0x117)]:_0x12dd52[_0x1111e6(0xae)]},_0xab59a8=await this[_0x1111e6(0x103)][_0x1111e6(0xd2)]('/universer-api/comment/unit/'+_0x444da4+_0x1111e6(0xb3),{'body':_0x44edd1});return!_0xab59a8['body']['error']||_0xab59a8[_0x1111e6(0xe3)][_0x1111e6(0x121)][_0x1111e6(0x133)]===0x1;}async[_0x4c5739(0xbf)](_0x1cd522,_0x53f73c,_0x29c53f,_0x55dad1){const _0x155654=_0x4c5739,_0x22ded2={'memberId':(await this[_0x155654(0xcf)][_0x155654(0xcb)](_0x1cd522))[_0x155654(0xf6)](),'threadId':_0x29c53f,'replyId':_0x55dad1,'unitId':_0x1cd522},_0x13ebb2=await this[_0x155654(0x103)][_0x155654(0xd2)]('/universer-api/comment/unit/'+_0x1cd522+_0x155654(0x12f),{'body':_0x22ded2});return!_0x13ebb2[_0x155654(0xe3)][_0x155654(0x121)]||_0x13ebb2[_0x155654(0xe3)]['error'][_0x155654(0x133)]===0x1;}async[_0x4c5739(0x113)](_0x196c0d,_0x5c7fd1,_0x1fd6b6){const _0x35b5b3=_0x4c5739,_0x2d3d93={'unitId':_0x196c0d,'threadId':_0x1fd6b6},_0x2fe453=await this[_0x35b5b3(0x103)][_0x35b5b3(0xd2)](_0x35b5b3(0xad)+_0x196c0d+_0x35b5b3(0xd8),{'body':_0x2d3d93}),_0x5b305a=_0x1fd6b6[_0x35b5b3(0xfe)](_0x56264b=>_0x552f46(_0x2fe453[_0x35b5b3(0xe3)]['comments'][_0x56264b],_0x196c0d,_0x5c7fd1))[_0x35b5b3(0xea)](Boolean);return Object['values'](_0x2fe453[_0x35b5b3(0xe3)]['users'])[_0x35b5b3(0x116)](_0x225a61=>{const _0x4b8d53=_0x35b5b3;this['_userService'][_0x4b8d53(0x126)](_0x225a61);}),_0x5b305a;}[_0x4c5739(0xf1)](_0x5d056f){const _0x25417d=_0x4c5739;return{'id':_0x5d056f['id'],'threadId':_0x5d056f[_0x25417d(0xe0)],'ref':_0x5d056f[_0x25417d(0xdf)]};}};_0xe2fc66=_0x4b4ba7([_0x789be(0x0,_0x45f127['Inject'](_0x30329a[_0x4c5739(0xde)])),_0x789be(0x1,_0x45f127[_0x4c5739(0xbc)](_0x45f127['UserManagerService'])),_0x789be(0x2,_0x45f127[_0x4c5739(0xbc)](_0x11dc37[_0x4c5739(0xf2)])),_0x789be(0x3,_0x45f127['Inject'](_0x45f127[_0x4c5739(0x128)]))],_0xe2fc66);var _0x445b4c=Object[_0x4c5739(0xb8)],_0x59ad9c=(_0x556af8,_0x29ee82,_0x1a1c7a,_0x5824a3)=>{const _0x30e5c8=_0x4c5739;for(var _0xbee1a7=_0x5824a3>0x1?void 0x0:_0x5824a3?_0x445b4c(_0x29ee82,_0x1a1c7a):_0x29ee82,_0x1a6ef1=_0x556af8[_0x30e5c8(0x11e)]-0x1,_0x39dd49;_0x1a6ef1>=0x0;_0x1a6ef1--)(_0x39dd49=_0x556af8[_0x1a6ef1])&&(_0xbee1a7=_0x39dd49(_0xbee1a7)||_0xbee1a7);return _0xbee1a7;},_0x35cb0f=(_0x43a774,_0x4443eb)=>(_0x12bb95,_0x3b9b26)=>_0x4443eb(_0x12bb95,_0x3b9b26,_0x43a774);let _0x2b234d=class extends _0x45f127[_0x4c5739(0xf7)]{constructor(_0x5e30b4,_0x5ec988){const _0x2f0953=_0x4c5739;super(),this[_0x2f0953(0xf5)]=_0x5e30b4,this[_0x2f0953(0xcc)]=_0x5ec988,this[_0x2f0953(0xe8)]();}[_0x4c5739(0xe8)](){const _0x5cddd2=_0x4c5739;this[_0x5cddd2(0xf5)][_0x5cddd2(0xca)]=this[_0x5cddd2(0xcc)],this['_threadCommentDataSourceService'][_0x5cddd2(0xc8)]=!0x1;}};_0x2b234d=_0x59ad9c([_0x35cb0f(0x0,_0x2dcb62[_0x4c5739(0x109)]),_0x35cb0f(0x1,_0x45f127[_0x4c5739(0xbc)](_0xe2fc66))],_0x2b234d);var _0x53edd5=Object[_0x4c5739(0x118)],_0x45b783=Object['getOwnPropertyDescriptor'],_0x51e04f=(_0x46a177,_0x29feeb,_0x17164e)=>_0x29feeb in _0x46a177?_0x53edd5(_0x46a177,_0x29feeb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17164e}):_0x46a177[_0x29feeb]=_0x17164e,_0x368227=(_0x3224c6,_0x524968,_0x281b7a,_0x3a369e)=>{const _0x5f1c58=_0x4c5739;for(var _0x27eefc=_0x3a369e>0x1?void 0x0:_0x3a369e?_0x45b783(_0x524968,_0x281b7a):_0x524968,_0x512784=_0x3224c6[_0x5f1c58(0x11e)]-0x1,_0x91376d;_0x512784>=0x0;_0x512784--)(_0x91376d=_0x3224c6[_0x512784])&&(_0x27eefc=_0x91376d(_0x27eefc)||_0x27eefc);return _0x27eefc;},_0x48573f=(_0x51f93e,_0x1aa611)=>(_0x50cead,_0x4c9bb5)=>_0x1aa611(_0x50cead,_0x4c9bb5,_0x51f93e),_0x289730=(_0x1cd9c8,_0x2bb50d,_0x183cc5)=>_0x51e04f(_0x1cd9c8,typeof _0x2bb50d!=_0x4c5739(0xe1)?_0x2bb50d+'':_0x2bb50d,_0x183cc5);_0x312e75['UniverThreadCommentDataSourcePlugin']=class extends _0x45f127['Plugin']{constructor(_0x5d79aa=_0x1393c1,_0x58c715,_0x2cc18c){const _0x179633=_0x4c5739;super(),this[_0x179633(0x119)]=_0x5d79aa,this[_0x179633(0xe7)]=_0x58c715,this[_0x179633(0xb2)]=_0x2cc18c;const {..._0x275f46}=_0x45f127['merge']({},_0x1393c1,this[_0x179633(0x119)]);this[_0x179633(0xb2)][_0x179633(0x123)](_0x3f135e,_0x275f46);}['onStarting'](){const _0x19f2e8=_0x4c5739;[[_0xe2fc66],[_0x2b234d],[_0x4028e8]][_0x19f2e8(0x116)](_0x5a046c=>{const _0x3026ae=_0x19f2e8;this[_0x3026ae(0xe7)][_0x3026ae(0xd7)](_0x5a046c);});}[_0x4c5739(0x132)](){const _0x91da5=_0x4c5739;this[_0x91da5(0xe7)][_0x91da5(0x111)](_0x2b234d),this[_0x91da5(0xe7)][_0x91da5(0x111)](_0x4028e8);}},_0x289730(_0x312e75[_0x4c5739(0x10b)],_0x4c5739(0xce),_0x494a70),_0x289730(_0x312e75[_0x4c5739(0x10b)],_0x4c5739(0x11d),_0x45f127['UniverInstanceType'][_0x4c5739(0x101)]),_0x312e75[_0x4c5739(0x10b)]=_0x368227([_0x45f127['DependentOn'](_0x7c05d2[_0x4c5739(0xb9)],_0x11dc37[_0x4c5739(0xb0)],_0x1342d1[_0x4c5739(0x12c)]),_0x48573f(0x1,_0x45f127[_0x4c5739(0xbc)](_0x45f127[_0x4c5739(0x128)])),_0x48573f(0x2,_0x45f127[_0x4c5739(0xee)])],_0x312e75[_0x4c5739(0x10b)]),Object[_0x4c5739(0x118)](_0x312e75,Symbol[_0x4c5739(0xd6)],{'value':_0x4c5739(0xd5)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/thread-comment-datasource",
|
|
3
|
-
"version": "0.7.0-nightly.
|
|
3
|
+
"version": "0.7.0-nightly.202505011607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
"rxjs": ">=7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@univerjs-pro/collaboration-client": "0.7.0-nightly.
|
|
49
|
-
"@univerjs-pro/license": "0.7.0-nightly.
|
|
50
|
-
"@univerjs/core": "0.7.0-nightly.
|
|
51
|
-
"@univerjs/network": "0.7.0-nightly.202504291607",
|
|
48
|
+
"@univerjs-pro/collaboration-client": "0.7.0-nightly.202505011607",
|
|
49
|
+
"@univerjs-pro/license": "0.7.0-nightly.202505011607",
|
|
50
|
+
"@univerjs/core": "0.7.0-nightly.202505011607",
|
|
52
51
|
"@univerjs/protocol": "0.1.46-alpha.3",
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/thread-comment
|
|
52
|
+
"@univerjs/network": "0.7.0-nightly.202505011607",
|
|
53
|
+
"@univerjs/thread-comment": "0.7.0-nightly.202505011607",
|
|
54
|
+
"@univerjs/thread-comment-ui": "0.7.0-nightly.202505011607"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"rxjs": "^7.8.1",
|
|
58
58
|
"typescript": "^5.8.3",
|
|
59
|
-
"vite": "^6.3.
|
|
59
|
+
"vite": "^6.3.4",
|
|
60
60
|
"vitest": "^3.1.2",
|
|
61
61
|
"@univerjs-infra/shared": "0.7.0-beta.0"
|
|
62
62
|
},
|