@univerjs-pro/thread-comment-datasource 0.8.2-nightly.202506261607 → 0.8.2
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';const _0x1b86b1=_0x2a85;(function(_0x2a6e51,_0x51dd66){const _0x132df3=_0x2a85,_0x5801a1=_0x2a6e51();while(!![]){try{const _0x57c6f9=-parseInt(_0x132df3(0x251))/0x1*(-parseInt(_0x132df3(0x259))/0x2)+-parseInt(_0x132df3(0x22a))/0x3+-parseInt(_0x132df3(0x1f7))/0x4*(-parseInt(_0x132df3(0x22c))/0x5)+parseInt(_0x132df3(0x243))/0x6+parseInt(_0x132df3(0x1ee))/0x7*(-parseInt(_0x132df3(0x25b))/0x8)+-parseInt(_0x132df3(0x23e))/0x9+parseInt(_0x132df3(0x233))/0xa*(parseInt(_0x132df3(0x214))/0xb);if(_0x57c6f9===_0x51dd66)break;else _0x5801a1['push'](_0x5801a1['shift']());}catch(_0x7f5a75){_0x5801a1['push'](_0x5801a1['shift']());}}}(_0x5a0d,0xf220d));Object['defineProperty'](exports,Symbol[_0x1b86b1(0x204)],{'value':_0x1b86b1(0x1e5)});const b=require('@univerjs-pro/collaboration-client'),T=require(_0x1b86b1(0x22b)),c=require('@univerjs/core'),j=require(_0x1b86b1(0x203)),M=require('@univerjs/thread-comment'),w=require(_0x1b86b1(0x1e6)),P=require(_0x1b86b1(0x1f3)),U=_0x1b86b1(0x213);var I=(_0x587194=>(_0x587194[_0x587194[_0x1b86b1(0x1f9)]=0x0]='OpenOrReOpen',_0x587194[_0x587194[_0x1b86b1(0x21a)]=0x1]='Solved',_0x587194[_0x587194[_0x1b86b1(0x21b)]=-0x1]=_0x1b86b1(0x21b),_0x587194))(I||{}),v=(_0x1a6e72=>(_0x1a6e72[_0x1a6e72[_0x1b86b1(0x23b)]=0x0]=_0x1b86b1(0x23b),_0x1a6e72[_0x1a6e72[_0x1b86b1(0x1fd)]=0x1]=_0x1b86b1(0x1fd),_0x1a6e72[_0x1a6e72[_0x1b86b1(0x200)]=0x2]=_0x1b86b1(0x200),_0x1a6e72[_0x1a6e72['Edit']=0x3]=_0x1b86b1(0x208),_0x1a6e72[_0x1a6e72[_0x1b86b1(0x21d)]=0x4]=_0x1b86b1(0x21d),_0x1a6e72[_0x1a6e72[_0x1b86b1(0x20d)]=0x5]=_0x1b86b1(0x20d),_0x1a6e72[_0x1a6e72[_0x1b86b1(0x21b)]=-0x1]='UNRECOGNIZED',_0x1a6e72))(v||{});function _0x5a0d(){const _0x11a75d=['reply','Add','stringify','subscribe','Reply','_config','requireSession','@univerjs/thread-comment-ui','toStringTag','getUnit','addComment','forEach','Edit','COMMENT','dayjs','IConfigService','solved','Solve','getComment','merge','_httpService','Injector','UniverThreadCommentDataSourcePlugin','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','143wRIUbb','_threadCommentModel','userID','DependentOn','filter','defineProperty','Solved','UNRECOGNIZED','map','Delete','rangeId','/solved','setConfig','values','UniverThreadCommentUIPlugin','parse','UserManagerService','thread-comment-data-source.config','replies','users','onReady','format','5786865EuSLEZ','@univerjs-pro/license','50WFQvez','UNIVER_UNKNOWN','comments','content','_threadCommentDataSourceService','error','size','3820110ldyhkD','disposeWithMe','replyId','pluginName','add','root','Inject','comment','Unknown','_userService','createTimestamp','10937727DDhxos','CustomRangeType','_commentService','getOwnPropertyDescriptor','/universer-api/comment/unit/','14076NDxqXP','_initDataSource','/delete','_initUserSync','_configService','UniverLicensePlugin','unitId','HTTPService','body','getMemberID','deleteComment','get','/reply','_threadCommentDataSource','4283eCoPcI','rangeType','CommentService','post','parentId','length','_init','code','22CUkHqu','find','8JfEhMM','onStarting','_sessionService','userId','resolveComment','payload','Module','rxjs','threadId','customRanges','CollaborationSessionService','resolved','personId','user','addUser','7843479aSqRzL','getUser','type','commentUpdate$','getCurrentUser','@univerjs/network','/list','delete','bufferTime','96364qAzTpN','Disposable','OpenOrReOpen','updateComment','_injector'];_0x5a0d=function(){return _0x11a75d;};return _0x5a0d();}const f=_0x1e73d2=>c[_0x1b86b1(0x20a)](new Date(+_0x1e73d2))[_0x1b86b1(0x229)]('YYYY/MM/DD\x20HH:mm'),R=async(_0xa3acf6,_0x426328)=>{const _0x2bc543=_0x1b86b1,_0x1caf43=_0xa3acf6['get'](c[_0x2bc543(0x224)]),_0x5b2a44=_0xa3acf6[_0x2bc543(0x24e)](P[_0x2bc543(0x24a)]);_0x426328[_0x2bc543(0x207)](_0x562a37=>{const _0x3759c8=_0x2bc543;_0x1caf43[_0x3759c8(0x1ef)](_0x562a37)&&_0x426328[_0x3759c8(0x1f5)](_0x562a37);}),_0x426328[_0x2bc543(0x232)]&&(await _0x5b2a44[_0x2bc543(0x24e)]('/universer-api/user/list',{'params':{'userIDs':[..._0x426328]}}))[_0x2bc543(0x24b)][_0x2bc543(0x227)][_0x2bc543(0x207)](_0x36697b=>{const _0x50cbfc=_0x2bc543;_0x36697b&&_0x1caf43[_0x50cbfc(0x1ed)](_0x36697b);});};var $=Object[_0x1b86b1(0x241)],E=(_0x1dc2da,_0x357991,_0x18e78e,_0x52315f)=>{const _0x19bd9e=_0x1b86b1;for(var _0x4c665b=_0x52315f>0x1?void 0x0:_0x52315f?$(_0x357991,_0x18e78e):_0x357991,_0x2cebb0=_0x1dc2da[_0x19bd9e(0x256)]-0x1,_0x48d1e2;_0x2cebb0>=0x0;_0x2cebb0--)(_0x48d1e2=_0x1dc2da[_0x2cebb0])&&(_0x4c665b=_0x48d1e2(_0x4c665b)||_0x4c665b);return _0x4c665b;},S=(_0xc44f5a,_0x1c21b1)=>(_0x548d86,_0x28ca15)=>_0x1c21b1(_0x548d86,_0x28ca15,_0xc44f5a);function _0x2a85(_0x41b5ea,_0x1e293d){const _0x5a0dc7=_0x5a0d();return _0x2a85=function(_0x2a85f1,_0x1311af){_0x2a85f1=_0x2a85f1-0x1e3;let _0x5acdf8=_0x5a0dc7[_0x2a85f1];return _0x5acdf8;},_0x2a85(_0x41b5ea,_0x1e293d);}let p=class extends c['Disposable']{constructor(_0x1fbe10,_0x56d191,_0x4bbf24,_0x2a3a11){const _0x23f80e=_0x1b86b1;super(),this['_commentService']=_0x1fbe10,this[_0x23f80e(0x215)]=_0x56d191,this[_0x23f80e(0x23c)]=_0x4bbf24,this[_0x23f80e(0x1fb)]=_0x2a3a11,this[_0x23f80e(0x257)](),this[_0x23f80e(0x246)]();}[_0x1b86b1(0x246)](){const _0x202be3=_0x1b86b1;this[_0x202be3(0x234)](this[_0x202be3(0x215)][_0x202be3(0x1f1)]['pipe'](w[_0x202be3(0x1f6)](0x10))[_0x202be3(0x1ff)](_0x555f0b=>{const _0x211e6c=_0x202be3,_0x52ce26=new Set();_0x555f0b[_0x211e6c(0x207)](_0x3e22df=>{const _0x5efda0=_0x211e6c;switch(_0x3e22df[_0x5efda0(0x1f0)]){case'add':{const _0x5d3944=_0x3e22df[_0x5efda0(0x1e4)][_0x5efda0(0x1eb)];_0x52ce26[_0x5efda0(0x237)](_0x5d3944);break;}}}),R(this[_0x211e6c(0x1fb)],_0x52ce26);}));}[_0x1b86b1(0x257)](){const _0x43fe0a=_0x1b86b1;this[_0x43fe0a(0x234)](this[_0x43fe0a(0x240)][_0x43fe0a(0x1f1)][_0x43fe0a(0x1ff)](async _0xf005fb=>{const _0x378024=_0x43fe0a;var _0x10f718,_0x115b9e,_0x2f5ec0,_0x280122;const _0x36a2fa=(_0x10f718=this[_0x378024(0x215)][_0x378024(0x205)](_0xf005fb[_0x378024(0x249)])[_0x378024(0x25a)](_0x1f0899=>_0x1f0899[_0x378024(0x1e7)]===_0xf005fb[_0x378024(0x1e7)]))==null?void 0x0:_0x10f718['root'];if(!_0x36a2fa)return;const {unitId:_0x5cb816,subUnitId:_0x160235}=_0x36a2fa;switch(_0xf005fb['user']&&this[_0x378024(0x23c)]['addUser'](_0xf005fb[_0x378024(0x1ec)]),_0xf005fb['type']){case v[_0x378024(0x1fd)]:break;case v[_0x378024(0x200)]:{this[_0x378024(0x215)][_0x378024(0x206)](_0x5cb816,_0x160235,{'unitId':_0x5cb816,'subUnitId':_0x160235,'ref':'','id':_0xf005fb['replyId'],'dT':f(+_0xf005fb[_0x378024(0x23d)]),'threadId':_0xf005fb[_0x378024(0x1e7)],'personId':(_0x2f5ec0=(_0x115b9e=_0xf005fb[_0x378024(0x1ec)])==null?void 0x0:_0x115b9e[_0x378024(0x216)])!=null?_0x2f5ec0:_0xf005fb[_0x378024(0x25e)],'text':JSON[_0x378024(0x223)](_0xf005fb[_0x378024(0x22f)]),'parentId':_0x36a2fa['id']});break;}case v[_0x378024(0x21d)]:{const _0x179c13=this[_0x378024(0x215)][_0x378024(0x20e)](_0x5cb816,_0x160235,_0xf005fb[_0x378024(0x235)]);_0x179c13&&_0x179c13[_0x378024(0x255)]&&this[_0x378024(0x215)][_0x378024(0x24d)](_0x5cb816,_0x160235,_0xf005fb[_0x378024(0x235)]);break;}case v[_0x378024(0x208)]:{this['_threadCommentModel'][_0x378024(0x1fa)](_0x5cb816,_0x160235,{'commentId':_0xf005fb[_0x378024(0x235)],'text':JSON[_0x378024(0x223)](_0xf005fb[_0x378024(0x22f)])});break;}case v[_0x378024(0x20d)]:{const _0x232de1=(_0x280122=this[_0x378024(0x215)][_0x378024(0x205)](_0xf005fb[_0x378024(0x249)])[_0x378024(0x25a)](_0x3fdf68=>_0x3fdf68[_0x378024(0x1e7)]===_0xf005fb['threadId']))==null?void 0x0:_0x280122[_0x378024(0x238)];_0x232de1&&this[_0x378024(0x215)][_0x378024(0x1e3)](_0x5cb816,_0x160235,_0x232de1['id'],_0xf005fb[_0x378024(0x20c)]===I['Solved']);break;}}}));}};p=E([S(0x0,c['Inject'](b[_0x1b86b1(0x253)])),S(0x1,c[_0x1b86b1(0x239)](M['ThreadCommentModel'])),S(0x2,c[_0x1b86b1(0x239)](c[_0x1b86b1(0x224)])),S(0x3,c[_0x1b86b1(0x239)](c['Injector']))],p);const q=_0x1b86b1(0x225),D={};var A=Object[_0x1b86b1(0x241)],x=(_0x1c00bf,_0x4dbb74,_0x30c015,_0xc51905)=>{const _0x3192c0=_0x1b86b1;for(var _0x52b1d8=_0xc51905>0x1?void 0x0:_0xc51905?A(_0x4dbb74,_0x30c015):_0x4dbb74,_0x51e195=_0x1c00bf[_0x3192c0(0x256)]-0x1,_0x1cba22;_0x51e195>=0x0;_0x51e195--)(_0x1cba22=_0x1c00bf[_0x51e195])&&(_0x52b1d8=_0x1cba22(_0x52b1d8)||_0x52b1d8);return _0x52b1d8;},_=(_0x1abd54,_0x45dc3e)=>(_0x526f15,_0x136ea6)=>_0x45dc3e(_0x526f15,_0x136ea6,_0x1abd54);function Y(_0x5a1c95,_0x23ea34){const _0x146726=_0x1b86b1,_0x4337ea=_0x5a1c95['replies'][0x0];return{..._0x23ea34,'id':_0x4337ea[_0x146726(0x235)],'resolved':_0x5a1c95[_0x146726(0x20c)]===0x1,'dT':f(_0x4337ea['createTimestamp']),'personId':_0x4337ea[_0x146726(0x25e)],'threadId':_0x4337ea[_0x146726(0x1e7)]};}function G(_0x3909d2,_0x14618c,_0x4ef6c9){const _0x23bc2e=_0x1b86b1;var _0x17ac24,_0x33eb2c;if(((_0x33eb2c=(_0x17ac24=_0x3909d2==null?void 0x0:_0x3909d2[_0x23bc2e(0x226)])==null?void 0x0:_0x17ac24[_0x23bc2e(0x256)])!=null?_0x33eb2c:0x0)>0x0){const _0x2e1cdc=(_0x409277,_0x484e69)=>({'id':_0x409277[_0x23bc2e(0x235)],'threadId':_0x409277[_0x23bc2e(0x1e7)],'dT':f(_0x409277['createTimestamp']),'personId':_0x409277[_0x23bc2e(0x25e)],'resolved':_0x3909d2[_0x23bc2e(0x20c)]===I[_0x23bc2e(0x21a)],'unitId':_0x14618c,'subUnitId':_0x4ef6c9,'text':JSON[_0x23bc2e(0x223)](_0x409277[_0x23bc2e(0x22f)]),'parentId':_0x484e69}),_0x1cf170=_0x2e1cdc(_0x3909d2[_0x23bc2e(0x226)][0x0]);return{..._0x1cf170,'children':_0x3909d2[_0x23bc2e(0x226)]['slice'](0x1)[_0x23bc2e(0x21c)](_0x302b6c=>_0x2e1cdc(_0x302b6c,_0x1cf170['id']))};}return null;}let g=class{constructor(_0xce60ec,_0x270d7f,_0x5b5da0,_0x552a97){const _0x4f25eb=_0x1b86b1;this[_0x4f25eb(0x210)]=_0xce60ec,this['_userService']=_0x270d7f,this[_0x4f25eb(0x25d)]=_0x5b5da0,this[_0x4f25eb(0x1fb)]=_0x552a97;}async[_0x1b86b1(0x206)](_0x5d2557){const _0xc032c3=_0x1b86b1;var _0x3db039,_0x52f81c;const {parentId:_0x225fec,unitId:_0x359571,text:_0x496961,threadId:_0x4070c8}=_0x5d2557,_0x101123=(_0x52f81c=(_0x3db039=_0x496961[_0xc032c3(0x1e8)])==null?void 0x0:_0x3db039['filter'](_0x5ede6e=>_0x5ede6e[_0xc032c3(0x252)]===c[_0xc032c3(0x23f)][_0xc032c3(0x209)])[_0xc032c3(0x21c)](_0x4cb071=>_0x4cb071[_0xc032c3(0x21e)]))!=null?_0x52f81c:[],_0x3c8e3f=JSON[_0xc032c3(0x1fe)](_0x496961),_0x5150d6=(await this['_sessionService']['requireSession'](_0x359571))[_0xc032c3(0x24c)]();if(_0x225fec){const _0xbdfcdc={'memberId':_0x5150d6,'unitId':_0x359571,'content':_0x3c8e3f,'mention':_0x101123,'threadId':_0x4070c8},_0x595c81=(await this[_0xc032c3(0x210)][_0xc032c3(0x254)]('/universer-api/comment/unit/'+_0x359571+_0xc032c3(0x24f),{'body':_0xbdfcdc}))[_0xc032c3(0x24b)][_0xc032c3(0x1fc)];return{..._0x5d2557,'id':_0x595c81['replyId'],'dT':c[_0xc032c3(0x20a)](+_0x595c81[_0xc032c3(0x23d)])['format']('YYYY/MM/DD\x20HH:mm'),'personId':_0x595c81['userId']};}else{const _0x4e305c={'memberId':_0x5150d6,'unitId':_0x359571,'content':_0x3c8e3f,'mention':_0x101123},_0x38ad47=await this[_0xc032c3(0x210)]['post'](_0xc032c3(0x242)+_0x359571+'/add',{'body':_0x4e305c});return Y(_0x38ad47[_0xc032c3(0x24b)][_0xc032c3(0x23a)],_0x5d2557);}}async[_0x1b86b1(0x1fa)](_0x12b3db){const _0x24848e=_0x1b86b1;var _0x4ffa19,_0x36bb07;const {text:_0x3d67e2,unitId:_0x14b1dc}=_0x12b3db,_0x411293=(_0x36bb07=(_0x4ffa19=_0x3d67e2['customRanges'])==null?void 0x0:_0x4ffa19[_0x24848e(0x218)](_0x68b1f8=>_0x68b1f8[_0x24848e(0x252)]===c[_0x24848e(0x23f)][_0x24848e(0x209)])[_0x24848e(0x21c)](_0x139bfa=>_0x139bfa['rangeId']))!=null?_0x36bb07:[],_0x414b07=JSON[_0x24848e(0x1fe)](_0x3d67e2),_0x2c81d0=_0x12b3db['threadId'],_0x2663c5=_0x12b3db['id'],_0x1090dc={'memberId':(await this[_0x24848e(0x25d)][_0x24848e(0x202)](_0x14b1dc))[_0x24848e(0x24c)](),'unitId':_0x14b1dc,'threadId':_0x2c81d0,'mention':_0x411293,'content':_0x414b07,'replyId':_0x2663c5},_0x2c4c5a=await this[_0x24848e(0x210)]['post'](_0x24848e(0x242)+_0x14b1dc+'/edit',{'body':_0x1090dc});return!_0x2c4c5a[_0x24848e(0x24b)][_0x24848e(0x231)]||_0x2c4c5a[_0x24848e(0x24b)]['error'][_0x24848e(0x258)]===0x1;}async[_0x1b86b1(0x1e3)](_0x143ca3){const _0x4f415f=_0x1b86b1,{unitId:_0x4e0490}=_0x143ca3,_0x2d9bfc=_0x143ca3[_0x4f415f(0x1e7)],_0x398765={'memberId':this[_0x4f415f(0x23c)][_0x4f415f(0x1f2)]()[_0x4f415f(0x216)],'unitId':_0x4e0490,'threadId':_0x2d9bfc,'solved':_0x143ca3[_0x4f415f(0x1ea)]?I[_0x4f415f(0x21a)]:I['OpenOrReOpen']},_0xd43d4c=await this[_0x4f415f(0x210)][_0x4f415f(0x254)]('/universer-api/comment/unit/'+_0x4e0490+_0x4f415f(0x21f),{'body':_0x398765});return!_0xd43d4c[_0x4f415f(0x24b)][_0x4f415f(0x231)]||_0xd43d4c[_0x4f415f(0x24b)]['error'][_0x4f415f(0x258)]===0x1;}async[_0x1b86b1(0x24d)](_0x45941a,_0x3f6927,_0x15c92c,_0x2e46e6){const _0x5f5ba6=_0x1b86b1,_0x3d0fb9={'memberId':(await this[_0x5f5ba6(0x25d)][_0x5f5ba6(0x202)](_0x45941a))['getMemberID'](),'threadId':_0x15c92c,'replyId':_0x2e46e6,'unitId':_0x45941a},_0x34f19d=await this[_0x5f5ba6(0x210)][_0x5f5ba6(0x254)]('/universer-api/comment/unit/'+_0x45941a+_0x5f5ba6(0x245),{'body':_0x3d0fb9});return!_0x34f19d[_0x5f5ba6(0x24b)]['error']||_0x34f19d[_0x5f5ba6(0x24b)][_0x5f5ba6(0x231)][_0x5f5ba6(0x258)]===0x1;}async['listComments'](_0x357340,_0x4a90f3,_0x8303cf){const _0x4bfc38=_0x1b86b1,_0x3658ea={'unitId':_0x357340,'threadId':_0x8303cf},_0x3ef6ee=await this[_0x4bfc38(0x210)][_0x4bfc38(0x254)](_0x4bfc38(0x242)+_0x357340+_0x4bfc38(0x1f4),{'body':_0x3658ea}),_0x1d30aa=_0x8303cf[_0x4bfc38(0x21c)](_0x7f0c0e=>G(_0x3ef6ee[_0x4bfc38(0x24b)][_0x4bfc38(0x22e)][_0x7f0c0e],_0x357340,_0x4a90f3))[_0x4bfc38(0x218)](Boolean);return Object[_0x4bfc38(0x221)](_0x3ef6ee[_0x4bfc38(0x24b)]['users'])['forEach'](_0xaf7250=>{const _0x3abd09=_0x4bfc38;this[_0x3abd09(0x23c)]['addUser'](_0xaf7250);}),_0x1d30aa;}['saveCommentToSnapshot'](_0x5e8751){const _0x27bde5=_0x1b86b1;return{'id':_0x5e8751['id'],'threadId':_0x5e8751[_0x27bde5(0x1e7)],'ref':_0x5e8751['ref']};}};g=x([_(0x0,c[_0x1b86b1(0x239)](P[_0x1b86b1(0x24a)])),_(0x1,c[_0x1b86b1(0x239)](c[_0x1b86b1(0x224)])),_(0x2,c['Inject'](b[_0x1b86b1(0x1e9)])),_(0x3,c['Inject'](c[_0x1b86b1(0x211)]))],g);var H=Object['getOwnPropertyDescriptor'],J=(_0x2a1cf4,_0x233f61,_0x3c042a,_0xbe4737)=>{for(var _0x3ec38c=_0xbe4737>0x1?void 0x0:_0xbe4737?H(_0x233f61,_0x3c042a):_0x233f61,_0x46ba88=_0x2a1cf4['length']-0x1,_0x97aa5c;_0x46ba88>=0x0;_0x46ba88--)(_0x97aa5c=_0x2a1cf4[_0x46ba88])&&(_0x3ec38c=_0x97aa5c(_0x3ec38c)||_0x3ec38c);return _0x3ec38c;},y=(_0x3447be,_0x30b813)=>(_0x39bd28,_0x13e20f)=>_0x30b813(_0x39bd28,_0x13e20f,_0x3447be);let C=class extends c[_0x1b86b1(0x1f8)]{constructor(_0x3d6f47,_0x5458c3){const _0x49f155=_0x1b86b1;super(),this[_0x49f155(0x230)]=_0x3d6f47,this['_threadCommentDataSource']=_0x5458c3,this[_0x49f155(0x244)]();}['_initDataSource'](){const _0x42b85e=_0x1b86b1;this[_0x42b85e(0x230)]['dataSource']=this[_0x42b85e(0x250)],this[_0x42b85e(0x230)]['syncUpdateMutationToColla']=!0x1;}};C=J([y(0x0,M['IThreadCommentDataSourceService']),y(0x1,c[_0x1b86b1(0x239)](g))],C);var F=Object[_0x1b86b1(0x219)],L=Object[_0x1b86b1(0x241)],Z=(_0x46b230,_0x327b7a,_0x2449d6)=>_0x327b7a in _0x46b230?F(_0x46b230,_0x327b7a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2449d6}):_0x46b230[_0x327b7a]=_0x2449d6,W=(_0x146281,_0x130a7d,_0x4dc65c,_0x226879)=>{const _0x44029d=_0x1b86b1;for(var _0x16d9fc=_0x226879>0x1?void 0x0:_0x226879?L(_0x130a7d,_0x4dc65c):_0x130a7d,_0x40e996=_0x146281[_0x44029d(0x256)]-0x1,_0x38373e;_0x40e996>=0x0;_0x40e996--)(_0x38373e=_0x146281[_0x40e996])&&(_0x16d9fc=_0x38373e(_0x16d9fc)||_0x16d9fc);return _0x16d9fc;},O=(_0x40c40d,_0x5e8eb6)=>(_0x3af9a6,_0x2298b2)=>_0x5e8eb6(_0x3af9a6,_0x2298b2,_0x40c40d),N=(_0x202e0a,_0xb5e575,_0x44641a)=>Z(_0x202e0a,typeof _0xb5e575!='symbol'?_0xb5e575+'':_0xb5e575,_0x44641a);exports[_0x1b86b1(0x212)]=class extends c['Plugin']{constructor(_0x33b783=D,_0x11e890,_0x56149e){const _0x34541a=_0x1b86b1;super(),this[_0x34541a(0x201)]=_0x33b783,this['_injector']=_0x11e890,this['_configService']=_0x56149e;const {..._0x139c4a}=c[_0x34541a(0x20f)]({},D,this[_0x34541a(0x201)]);this[_0x34541a(0x247)][_0x34541a(0x220)](q,_0x139c4a);}[_0x1b86b1(0x25c)](){[[g],[C],[p]]['forEach'](_0x2ac46b=>{const _0x534ce0=_0x2a85;this[_0x534ce0(0x1fb)][_0x534ce0(0x237)](_0x2ac46b);});}[_0x1b86b1(0x228)](){const _0x4f5dae=_0x1b86b1;this['_injector'][_0x4f5dae(0x24e)](C),this['_injector']['get'](p);}},N(exports[_0x1b86b1(0x212)],_0x1b86b1(0x236),U),N(exports[_0x1b86b1(0x212)],_0x1b86b1(0x1f0),c['UniverInstanceType'][_0x1b86b1(0x22d)]),exports['UniverThreadCommentDataSourcePlugin']=W([c[_0x1b86b1(0x217)](j[_0x1b86b1(0x222)],b['UniverCollaborationClientPlugin'],T[_0x1b86b1(0x248)]),O(0x1,c[_0x1b86b1(0x239)](c[_0x1b86b1(0x211)])),O(0x2,c[_0x1b86b1(0x20b)])],exports[_0x1b86b1(0x212)]);
|
|
1
|
+
'use strict';const _0x35e1eb=_0x5736;(function(_0x5dc7ac,_0x4ac240){const _0x19488d=_0x5736,_0x2e976d=_0x5dc7ac();while(!![]){try{const _0x526c68=parseInt(_0x19488d(0x1b5))/0x1+parseInt(_0x19488d(0x1e2))/0x2+-parseInt(_0x19488d(0x1d7))/0x3*(parseInt(_0x19488d(0x21a))/0x4)+parseInt(_0x19488d(0x1e0))/0x5*(-parseInt(_0x19488d(0x1d2))/0x6)+-parseInt(_0x19488d(0x20d))/0x7+parseInt(_0x19488d(0x1cb))/0x8*(-parseInt(_0x19488d(0x1c1))/0x9)+parseInt(_0x19488d(0x222))/0xa*(parseInt(_0x19488d(0x204))/0xb);if(_0x526c68===_0x4ac240)break;else _0x2e976d['push'](_0x2e976d['shift']());}catch(_0x51d92c){_0x2e976d['push'](_0x2e976d['shift']());}}}(_0x5046,0xd8c10));function _0x5046(){const _0x10f8a5=['Edit','disposeWithMe','_threadCommentModel','addComment','UniverCollaborationClientPlugin','IConfigService','rxjs','threadId','531UMtQWQ','@univerjs/thread-comment-ui','content','rangeId','getUnit','updateComment','UNIVER_UNKNOWN','dayjs','toStringTag','_threadCommentDataSource','86200zPvmlc','CustomRangeType','_config','body','Module','UniverLicensePlugin','/list','318834jQeNDa','find','UniverThreadCommentDataSourcePlugin','user','size','181704xUTuXj','UniverInstanceType','Injector','HTTPService','onReady','replies','getMemberID','addUser','Delete','165gRJcoO','resolved','1250488Akqtrw','UserManagerService','@univerjs/thread-comment','CommentService','type','parse','delete','get','_userService','syncUpdateMutationToColla','userID','_sessionService','slice','unitId','pluginName','setConfig','symbol','listComments','format','length','getCurrentUser','defineProperty','createTimestamp','values','YYYY/MM/DD\x20HH:mm','map','COMMENT','requireSession','Solved','stringify','UniverThreadCommentUIPlugin','/add','customRanges','/universer-api/comment/unit/','23462857kDhAuX','CollaborationSessionService','bufferTime','users','forEach','_initUserSync','_httpService','_configService','subscribe','2739548fFjTIx','replyId','personId','userId','UNRECOGNIZED','Disposable','_initDataSource','/universer-api/user/list','_injector','solved','Reply','_commentService','code','20HykTFb','/edit','@univerjs-pro/collaboration-client','merge','_threadCommentDataSourceService','OpenOrReOpen','Unknown','error','10ASvMTM','filter','commentUpdate$','pipe','post','thread-comment-data-source.config','Solve','add','@univerjs-pro/license','getOwnPropertyDescriptor','@univerjs/core','onStarting','rangeType','Inject','Add','1213109yZwvAM','resolveComment','root','_init'];_0x5046=function(){return _0x10f8a5;};return _0x5046();}Object['defineProperty'](exports,Symbol[_0x35e1eb(0x1c9)],{'value':_0x35e1eb(0x1cf)});const b=require(_0x35e1eb(0x21c)),T=require(_0x35e1eb(0x1ae)),c=require(_0x35e1eb(0x1b0)),j=require(_0x35e1eb(0x1c2)),M=require(_0x35e1eb(0x1e4)),w=require(_0x35e1eb(0x1bf)),P=require('@univerjs/network'),U='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var I=(_0x4f3bcc=>(_0x4f3bcc[_0x4f3bcc[_0x35e1eb(0x21f)]=0x0]='OpenOrReOpen',_0x4f3bcc[_0x4f3bcc[_0x35e1eb(0x1fe)]=0x1]=_0x35e1eb(0x1fe),_0x4f3bcc[_0x4f3bcc['UNRECOGNIZED']=-0x1]=_0x35e1eb(0x211),_0x4f3bcc))(I||{}),v=(_0x165961=>(_0x165961[_0x165961['Unknown']=0x0]=_0x35e1eb(0x220),_0x165961[_0x165961[_0x35e1eb(0x1b4)]=0x1]=_0x35e1eb(0x1b4),_0x165961[_0x165961[_0x35e1eb(0x217)]=0x2]=_0x35e1eb(0x217),_0x165961[_0x165961[_0x35e1eb(0x1b9)]=0x3]='Edit',_0x165961[_0x165961['Delete']=0x4]=_0x35e1eb(0x1df),_0x165961[_0x165961[_0x35e1eb(0x1ac)]=0x5]=_0x35e1eb(0x1ac),_0x165961[_0x165961[_0x35e1eb(0x211)]=-0x1]=_0x35e1eb(0x211),_0x165961))(v||{});const f=_0x37915f=>c[_0x35e1eb(0x1c8)](new Date(+_0x37915f))[_0x35e1eb(0x1f4)](_0x35e1eb(0x1fa)),R=async(_0xc128bb,_0x13bb89)=>{const _0x3432a3=_0x35e1eb,_0xc4c89b=_0xc128bb[_0x3432a3(0x1e9)](c[_0x3432a3(0x1e3)]),_0x1ce5a0=_0xc128bb[_0x3432a3(0x1e9)](P[_0x3432a3(0x1da)]);_0x13bb89['forEach'](_0x2e7fac=>{const _0x3ebd2f=_0x3432a3;_0xc4c89b['getUser'](_0x2e7fac)&&_0x13bb89[_0x3ebd2f(0x1e8)](_0x2e7fac);}),_0x13bb89[_0x3432a3(0x1d6)]&&(await _0x1ce5a0[_0x3432a3(0x1e9)](_0x3432a3(0x214),{'params':{'userIDs':[..._0x13bb89]}}))[_0x3432a3(0x1ce)][_0x3432a3(0x207)][_0x3432a3(0x208)](_0x332acf=>{const _0x1f9d1d=_0x3432a3;_0x332acf&&_0xc4c89b[_0x1f9d1d(0x1de)](_0x332acf);});};var $=Object[_0x35e1eb(0x1af)],E=(_0xe73c04,_0x4d525f,_0x4d4bcd,_0x4ecc06)=>{const _0x11d028=_0x35e1eb;for(var _0x1b3318=_0x4ecc06>0x1?void 0x0:_0x4ecc06?$(_0x4d525f,_0x4d4bcd):_0x4d525f,_0x140e2e=_0xe73c04[_0x11d028(0x1f5)]-0x1,_0x4e6a7a;_0x140e2e>=0x0;_0x140e2e--)(_0x4e6a7a=_0xe73c04[_0x140e2e])&&(_0x1b3318=_0x4e6a7a(_0x1b3318)||_0x1b3318);return _0x1b3318;},S=(_0x304e84,_0x42bdc1)=>(_0x189d24,_0x25bab5)=>_0x42bdc1(_0x189d24,_0x25bab5,_0x304e84);let p=class extends c['Disposable']{constructor(_0x2d7276,_0x2de50a,_0x477a8b,_0x38ba92){const _0xdf0361=_0x35e1eb;super(),this[_0xdf0361(0x218)]=_0x2d7276,this['_threadCommentModel']=_0x2de50a,this[_0xdf0361(0x1ea)]=_0x477a8b,this[_0xdf0361(0x215)]=_0x38ba92,this[_0xdf0361(0x1b8)](),this[_0xdf0361(0x209)]();}['_initUserSync'](){const _0x42b612=_0x35e1eb;this[_0x42b612(0x1ba)](this['_threadCommentModel'][_0x42b612(0x224)][_0x42b612(0x1a9)](w[_0x42b612(0x206)](0x10))[_0x42b612(0x20c)](_0x51e805=>{const _0x87491c=_0x42b612,_0x34d1e5=new Set();_0x51e805[_0x87491c(0x208)](_0x109329=>{const _0x5ce027=_0x87491c;switch(_0x109329[_0x5ce027(0x1e6)]){case _0x5ce027(0x1ad):{const _0x287f7f=_0x109329['payload'][_0x5ce027(0x20f)];_0x34d1e5['add'](_0x287f7f);break;}}}),R(this[_0x87491c(0x215)],_0x34d1e5);}));}[_0x35e1eb(0x1b8)](){const _0x88635f=_0x35e1eb;this[_0x88635f(0x1ba)](this[_0x88635f(0x218)][_0x88635f(0x224)][_0x88635f(0x20c)](async _0x5d0126=>{const _0x28795c=_0x88635f;var _0x33ec7f,_0x57fde7,_0x52853d,_0x283371;const _0x385d5f=(_0x33ec7f=this[_0x28795c(0x1bb)][_0x28795c(0x1c5)](_0x5d0126[_0x28795c(0x1ef)])[_0x28795c(0x1d3)](_0x583f5f=>_0x583f5f[_0x28795c(0x1c0)]===_0x5d0126[_0x28795c(0x1c0)]))==null?void 0x0:_0x33ec7f[_0x28795c(0x1b7)];if(!_0x385d5f)return;const {unitId:_0x13db76,subUnitId:_0xe28fc5}=_0x385d5f;switch(_0x5d0126['user']&&this[_0x28795c(0x1ea)]['addUser'](_0x5d0126[_0x28795c(0x1d5)]),_0x5d0126['type']){case v[_0x28795c(0x1b4)]:break;case v[_0x28795c(0x217)]:{this[_0x28795c(0x1bb)][_0x28795c(0x1bc)](_0x13db76,_0xe28fc5,{'unitId':_0x13db76,'subUnitId':_0xe28fc5,'ref':'','id':_0x5d0126[_0x28795c(0x20e)],'dT':f(+_0x5d0126[_0x28795c(0x1f8)]),'threadId':_0x5d0126[_0x28795c(0x1c0)],'personId':(_0x52853d=(_0x57fde7=_0x5d0126['user'])==null?void 0x0:_0x57fde7['userID'])!=null?_0x52853d:_0x5d0126['userId'],'text':JSON[_0x28795c(0x1e7)](_0x5d0126[_0x28795c(0x1c3)]),'parentId':_0x385d5f['id']});break;}case v[_0x28795c(0x1df)]:{const _0x27786d=this[_0x28795c(0x1bb)]['getComment'](_0x13db76,_0xe28fc5,_0x5d0126[_0x28795c(0x20e)]);_0x27786d&&_0x27786d['parentId']&&this[_0x28795c(0x1bb)]['deleteComment'](_0x13db76,_0xe28fc5,_0x5d0126[_0x28795c(0x20e)]);break;}case v[_0x28795c(0x1b9)]:{this['_threadCommentModel'][_0x28795c(0x1c6)](_0x13db76,_0xe28fc5,{'commentId':_0x5d0126[_0x28795c(0x20e)],'text':JSON[_0x28795c(0x1e7)](_0x5d0126[_0x28795c(0x1c3)])});break;}case v['Solve']:{const _0x57721d=(_0x283371=this[_0x28795c(0x1bb)]['getUnit'](_0x5d0126[_0x28795c(0x1ef)])[_0x28795c(0x1d3)](_0x36b693=>_0x36b693[_0x28795c(0x1c0)]===_0x5d0126['threadId']))==null?void 0x0:_0x283371[_0x28795c(0x1b7)];_0x57721d&&this[_0x28795c(0x1bb)][_0x28795c(0x1b6)](_0x13db76,_0xe28fc5,_0x57721d['id'],_0x5d0126[_0x28795c(0x216)]===I[_0x28795c(0x1fe)]);break;}}}));}};p=E([S(0x0,c[_0x35e1eb(0x1b3)](b[_0x35e1eb(0x1e5)])),S(0x1,c[_0x35e1eb(0x1b3)](M['ThreadCommentModel'])),S(0x2,c[_0x35e1eb(0x1b3)](c[_0x35e1eb(0x1e3)])),S(0x3,c[_0x35e1eb(0x1b3)](c[_0x35e1eb(0x1d9)]))],p);const q=_0x35e1eb(0x1ab),D={};var A=Object[_0x35e1eb(0x1af)],x=(_0x4b1d79,_0x423d88,_0x20efa0,_0x410955)=>{const _0x5595fb=_0x35e1eb;for(var _0x5933b6=_0x410955>0x1?void 0x0:_0x410955?A(_0x423d88,_0x20efa0):_0x423d88,_0x3966f1=_0x4b1d79[_0x5595fb(0x1f5)]-0x1,_0x42fc31;_0x3966f1>=0x0;_0x3966f1--)(_0x42fc31=_0x4b1d79[_0x3966f1])&&(_0x5933b6=_0x42fc31(_0x5933b6)||_0x5933b6);return _0x5933b6;},_=(_0x481e7c,_0x42e483)=>(_0x20527c,_0x33c48c)=>_0x42e483(_0x20527c,_0x33c48c,_0x481e7c);function Y(_0x4818d9,_0x40df53){const _0x375bb5=_0x35e1eb,_0x145604=_0x4818d9[_0x375bb5(0x1dc)][0x0];return{..._0x40df53,'id':_0x145604[_0x375bb5(0x20e)],'resolved':_0x4818d9[_0x375bb5(0x216)]===0x1,'dT':f(_0x145604['createTimestamp']),'personId':_0x145604['userId'],'threadId':_0x145604['threadId']};}function _0x5736(_0xe558e6,_0x2be086){const _0x5046b9=_0x5046();return _0x5736=function(_0x57368a,_0x40b533){_0x57368a=_0x57368a-0x1a9;let _0xa422f7=_0x5046b9[_0x57368a];return _0xa422f7;},_0x5736(_0xe558e6,_0x2be086);}function G(_0x189228,_0xd25bf3,_0x5b57c7){const _0x36526f=_0x35e1eb;var _0x2d4082,_0x324eda;if(((_0x324eda=(_0x2d4082=_0x189228==null?void 0x0:_0x189228[_0x36526f(0x1dc)])==null?void 0x0:_0x2d4082['length'])!=null?_0x324eda:0x0)>0x0){const _0x393485=(_0x1c5a99,_0x16d93d)=>({'id':_0x1c5a99[_0x36526f(0x20e)],'threadId':_0x1c5a99[_0x36526f(0x1c0)],'dT':f(_0x1c5a99['createTimestamp']),'personId':_0x1c5a99[_0x36526f(0x210)],'resolved':_0x189228[_0x36526f(0x216)]===I[_0x36526f(0x1fe)],'unitId':_0xd25bf3,'subUnitId':_0x5b57c7,'text':JSON[_0x36526f(0x1e7)](_0x1c5a99[_0x36526f(0x1c3)]),'parentId':_0x16d93d}),_0x2d45ab=_0x393485(_0x189228[_0x36526f(0x1dc)][0x0]);return{..._0x2d45ab,'children':_0x189228[_0x36526f(0x1dc)][_0x36526f(0x1ee)](0x1)['map'](_0x4efdc8=>_0x393485(_0x4efdc8,_0x2d45ab['id']))};}return null;}let g=class{constructor(_0x5e620f,_0xb52abc,_0x52b318,_0xaf19d6){const _0x224ede=_0x35e1eb;this[_0x224ede(0x20a)]=_0x5e620f,this['_userService']=_0xb52abc,this[_0x224ede(0x1ed)]=_0x52b318,this['_injector']=_0xaf19d6;}async[_0x35e1eb(0x1bc)](_0x45e7a2){const _0x3f6525=_0x35e1eb;var _0xfc67b8,_0x2565b6;const {parentId:_0x53fac4,unitId:_0x3e9f6e,text:_0x5137cd,threadId:_0x30c241}=_0x45e7a2,_0x447c85=(_0x2565b6=(_0xfc67b8=_0x5137cd[_0x3f6525(0x202)])==null?void 0x0:_0xfc67b8[_0x3f6525(0x223)](_0x527a88=>_0x527a88[_0x3f6525(0x1b2)]===c[_0x3f6525(0x1cc)][_0x3f6525(0x1fc)])[_0x3f6525(0x1fb)](_0x216826=>_0x216826[_0x3f6525(0x1c4)]))!=null?_0x2565b6:[],_0x206b8e=JSON[_0x3f6525(0x1ff)](_0x5137cd),_0x4d4164=(await this[_0x3f6525(0x1ed)]['requireSession'](_0x3e9f6e))[_0x3f6525(0x1dd)]();if(_0x53fac4){const _0x273344={'memberId':_0x4d4164,'unitId':_0x3e9f6e,'content':_0x206b8e,'mention':_0x447c85,'threadId':_0x30c241},_0x5c9d62=(await this['_httpService'][_0x3f6525(0x1aa)](_0x3f6525(0x203)+_0x3e9f6e+'/reply',{'body':_0x273344}))[_0x3f6525(0x1ce)]['reply'];return{..._0x45e7a2,'id':_0x5c9d62[_0x3f6525(0x20e)],'dT':c['dayjs'](+_0x5c9d62[_0x3f6525(0x1f8)])[_0x3f6525(0x1f4)](_0x3f6525(0x1fa)),'personId':_0x5c9d62[_0x3f6525(0x210)]};}else{const _0x5a6903={'memberId':_0x4d4164,'unitId':_0x3e9f6e,'content':_0x206b8e,'mention':_0x447c85},_0x2ea5d6=await this[_0x3f6525(0x20a)]['post']('/universer-api/comment/unit/'+_0x3e9f6e+_0x3f6525(0x201),{'body':_0x5a6903});return Y(_0x2ea5d6[_0x3f6525(0x1ce)]['comment'],_0x45e7a2);}}async['updateComment'](_0x58c5d8){const _0x47e37e=_0x35e1eb;var _0xc9882,_0x3a3dc6;const {text:_0x34e90b,unitId:_0x2af8da}=_0x58c5d8,_0x14b918=(_0x3a3dc6=(_0xc9882=_0x34e90b[_0x47e37e(0x202)])==null?void 0x0:_0xc9882[_0x47e37e(0x223)](_0x14bd37=>_0x14bd37['rangeType']===c['CustomRangeType'][_0x47e37e(0x1fc)])['map'](_0x5e0a2c=>_0x5e0a2c['rangeId']))!=null?_0x3a3dc6:[],_0x3ab1b2=JSON['stringify'](_0x34e90b),_0x2bb5d3=_0x58c5d8[_0x47e37e(0x1c0)],_0x289449=_0x58c5d8['id'],_0x172873={'memberId':(await this[_0x47e37e(0x1ed)]['requireSession'](_0x2af8da))[_0x47e37e(0x1dd)](),'unitId':_0x2af8da,'threadId':_0x2bb5d3,'mention':_0x14b918,'content':_0x3ab1b2,'replyId':_0x289449},_0xaf660e=await this['_httpService'][_0x47e37e(0x1aa)](_0x47e37e(0x203)+_0x2af8da+_0x47e37e(0x21b),{'body':_0x172873});return!_0xaf660e[_0x47e37e(0x1ce)][_0x47e37e(0x221)]||_0xaf660e[_0x47e37e(0x1ce)]['error'][_0x47e37e(0x219)]===0x1;}async[_0x35e1eb(0x1b6)](_0x15978c){const _0x540a22=_0x35e1eb,{unitId:_0x43eb27}=_0x15978c,_0xb07047=_0x15978c[_0x540a22(0x1c0)],_0x3f8115={'memberId':this[_0x540a22(0x1ea)][_0x540a22(0x1f6)]()[_0x540a22(0x1ec)],'unitId':_0x43eb27,'threadId':_0xb07047,'solved':_0x15978c[_0x540a22(0x1e1)]?I[_0x540a22(0x1fe)]:I['OpenOrReOpen']},_0x50e518=await this[_0x540a22(0x20a)][_0x540a22(0x1aa)]('/universer-api/comment/unit/'+_0x43eb27+'/solved',{'body':_0x3f8115});return!_0x50e518[_0x540a22(0x1ce)][_0x540a22(0x221)]||_0x50e518['body'][_0x540a22(0x221)][_0x540a22(0x219)]===0x1;}async['deleteComment'](_0x353ad8,_0x35ad3e,_0x6e747,_0x64bb12){const _0x424a6c=_0x35e1eb,_0x356759={'memberId':(await this[_0x424a6c(0x1ed)][_0x424a6c(0x1fd)](_0x353ad8))[_0x424a6c(0x1dd)](),'threadId':_0x6e747,'replyId':_0x64bb12,'unitId':_0x353ad8},_0x3d2f2d=await this[_0x424a6c(0x20a)]['post'](_0x424a6c(0x203)+_0x353ad8+'/delete',{'body':_0x356759});return!_0x3d2f2d[_0x424a6c(0x1ce)][_0x424a6c(0x221)]||_0x3d2f2d['body'][_0x424a6c(0x221)][_0x424a6c(0x219)]===0x1;}async[_0x35e1eb(0x1f3)](_0x3fe6c5,_0xab3b24,_0x45578d){const _0x23b4c0=_0x35e1eb,_0x3e80a2={'unitId':_0x3fe6c5,'threadId':_0x45578d},_0x468d9d=await this[_0x23b4c0(0x20a)]['post'](_0x23b4c0(0x203)+_0x3fe6c5+_0x23b4c0(0x1d1),{'body':_0x3e80a2}),_0x3c0fbe=_0x45578d[_0x23b4c0(0x1fb)](_0x2dd00d=>G(_0x468d9d['body']['comments'][_0x2dd00d],_0x3fe6c5,_0xab3b24))[_0x23b4c0(0x223)](Boolean);return Object[_0x23b4c0(0x1f9)](_0x468d9d[_0x23b4c0(0x1ce)][_0x23b4c0(0x207)])[_0x23b4c0(0x208)](_0x1c9bae=>{const _0x14e259=_0x23b4c0;this[_0x14e259(0x1ea)][_0x14e259(0x1de)](_0x1c9bae);}),_0x3c0fbe;}['saveCommentToSnapshot'](_0x3764e1){const _0x385934=_0x35e1eb;return{'id':_0x3764e1['id'],'threadId':_0x3764e1[_0x385934(0x1c0)],'ref':_0x3764e1['ref']};}};g=x([_(0x0,c['Inject'](P[_0x35e1eb(0x1da)])),_(0x1,c[_0x35e1eb(0x1b3)](c[_0x35e1eb(0x1e3)])),_(0x2,c[_0x35e1eb(0x1b3)](b[_0x35e1eb(0x205)])),_(0x3,c[_0x35e1eb(0x1b3)](c[_0x35e1eb(0x1d9)]))],g);var H=Object['getOwnPropertyDescriptor'],J=(_0xeb86ed,_0x362e5e,_0x18a204,_0x215802)=>{const _0x477612=_0x35e1eb;for(var _0x34bad4=_0x215802>0x1?void 0x0:_0x215802?H(_0x362e5e,_0x18a204):_0x362e5e,_0x38a719=_0xeb86ed[_0x477612(0x1f5)]-0x1,_0x4718f9;_0x38a719>=0x0;_0x38a719--)(_0x4718f9=_0xeb86ed[_0x38a719])&&(_0x34bad4=_0x4718f9(_0x34bad4)||_0x34bad4);return _0x34bad4;},y=(_0x2767ba,_0x43f5fb)=>(_0x3f1147,_0x5eef15)=>_0x43f5fb(_0x3f1147,_0x5eef15,_0x2767ba);let C=class extends c[_0x35e1eb(0x212)]{constructor(_0x451958,_0x54cd37){const _0x2e0641=_0x35e1eb;super(),this[_0x2e0641(0x21e)]=_0x451958,this[_0x2e0641(0x1ca)]=_0x54cd37,this[_0x2e0641(0x213)]();}['_initDataSource'](){const _0x3da379=_0x35e1eb;this[_0x3da379(0x21e)]['dataSource']=this[_0x3da379(0x1ca)],this[_0x3da379(0x21e)][_0x3da379(0x1eb)]=!0x1;}};C=J([y(0x0,M['IThreadCommentDataSourceService']),y(0x1,c[_0x35e1eb(0x1b3)](g))],C);var F=Object[_0x35e1eb(0x1f7)],L=Object['getOwnPropertyDescriptor'],Z=(_0x5a6d04,_0x19b0e9,_0x8c0d9d)=>_0x19b0e9 in _0x5a6d04?F(_0x5a6d04,_0x19b0e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8c0d9d}):_0x5a6d04[_0x19b0e9]=_0x8c0d9d,W=(_0x53ef3c,_0x52f358,_0x3bc9cf,_0xb85674)=>{const _0x56b8fd=_0x35e1eb;for(var _0x3a7da7=_0xb85674>0x1?void 0x0:_0xb85674?L(_0x52f358,_0x3bc9cf):_0x52f358,_0x2da7c3=_0x53ef3c[_0x56b8fd(0x1f5)]-0x1,_0x1e5b64;_0x2da7c3>=0x0;_0x2da7c3--)(_0x1e5b64=_0x53ef3c[_0x2da7c3])&&(_0x3a7da7=_0x1e5b64(_0x3a7da7)||_0x3a7da7);return _0x3a7da7;},O=(_0x329119,_0x130388)=>(_0x53fdd1,_0x583843)=>_0x130388(_0x53fdd1,_0x583843,_0x329119),N=(_0x599595,_0xbb0f27,_0x2b81e5)=>Z(_0x599595,typeof _0xbb0f27!=_0x35e1eb(0x1f2)?_0xbb0f27+'':_0xbb0f27,_0x2b81e5);exports[_0x35e1eb(0x1d4)]=class extends c['Plugin']{constructor(_0x312a43=D,_0x31d7fb,_0x38a85d){const _0x560b6e=_0x35e1eb;super(),this[_0x560b6e(0x1cd)]=_0x312a43,this[_0x560b6e(0x215)]=_0x31d7fb,this['_configService']=_0x38a85d;const {..._0x43e069}=c[_0x560b6e(0x21d)]({},D,this['_config']);this[_0x560b6e(0x20b)][_0x560b6e(0x1f1)](q,_0x43e069);}[_0x35e1eb(0x1b1)](){[[g],[C],[p]]['forEach'](_0x3dfc46=>{this['_injector']['add'](_0x3dfc46);});}[_0x35e1eb(0x1db)](){const _0x16ee8a=_0x35e1eb;this[_0x16ee8a(0x215)][_0x16ee8a(0x1e9)](C),this[_0x16ee8a(0x215)]['get'](p);}},N(exports[_0x35e1eb(0x1d4)],_0x35e1eb(0x1f0),U),N(exports['UniverThreadCommentDataSourcePlugin'],_0x35e1eb(0x1e6),c[_0x35e1eb(0x1d8)][_0x35e1eb(0x1c7)]),exports[_0x35e1eb(0x1d4)]=W([c['DependentOn'](j[_0x35e1eb(0x200)],b[_0x35e1eb(0x1bd)],T[_0x35e1eb(0x1d0)]),O(0x1,c[_0x35e1eb(0x1b3)](c[_0x35e1eb(0x1d9)])),O(0x2,c[_0x35e1eb(0x1be)])],exports[_0x35e1eb(0x1d4)]);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x95d9de=_0x1c32;(function(_0x2ecced,_0x5ddbec){const _0x3a9cf5=_0x1c32,_0x4a8330=_0x2ecced();while(!![]){try{const _0x292935=-parseInt(_0x3a9cf5(0x1e1))/0x1*(parseInt(_0x3a9cf5(0x1c8))/0x2)+parseInt(_0x3a9cf5(0x1ce))/0x3+parseInt(_0x3a9cf5(0x1dd))/0x4+parseInt(_0x3a9cf5(0x183))/0x5+-parseInt(_0x3a9cf5(0x1b2))/0x6*(-parseInt(_0x3a9cf5(0x1ab))/0x7)+-parseInt(_0x3a9cf5(0x1de))/0x8+-parseInt(_0x3a9cf5(0x1cb))/0x9;if(_0x292935===_0x5ddbec)break;else _0x4a8330['push'](_0x4a8330['shift']());}catch(_0x5c9a84){_0x4a8330['push'](_0x4a8330['shift']());}}}(_0x333b,0x46fca));import{CommentService as _0x2f9599,CollaborationSessionService as _0x4d35cb,UniverCollaborationClientPlugin as _0xcabb8f}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x3ec5ef}from'@univerjs-pro/license';import{dayjs as _0x529ead,UserManagerService as _0x1afcdc,Inject as _0x258925,Injector as _0x25506,Disposable as _0x330b82,CustomRangeType as _0x5f028a,UniverInstanceType as _0x1df290,DependentOn as _0x4451f2,IConfigService as _0x1fb7d2,Plugin as _0x44d5c8,merge as _0x52b569}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x50fa42}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x1ea713,IThreadCommentDataSourceService as _0x2393b8}from'@univerjs/thread-comment';import{bufferTime as _0x485e87}from'rxjs';import{HTTPService as _0x2ac54a}from'@univerjs/network';const W=_0x95d9de(0x1e4);var I=(_0xee1739=>(_0xee1739[_0xee1739[_0x95d9de(0x1e2)]=0x0]=_0x95d9de(0x1e2),_0xee1739[_0xee1739['Solved']=0x1]=_0x95d9de(0x191),_0xee1739[_0xee1739[_0x95d9de(0x188)]=-0x1]=_0x95d9de(0x188),_0xee1739))(I||{}),v=(_0x3d7dc9=>(_0x3d7dc9[_0x3d7dc9[_0x95d9de(0x1b9)]=0x0]='Unknown',_0x3d7dc9[_0x3d7dc9[_0x95d9de(0x1d6)]=0x1]='Add',_0x3d7dc9[_0x3d7dc9[_0x95d9de(0x1b0)]=0x2]=_0x95d9de(0x1b0),_0x3d7dc9[_0x3d7dc9[_0x95d9de(0x1c4)]=0x3]=_0x95d9de(0x1c4),_0x3d7dc9[_0x3d7dc9['Delete']=0x4]=_0x95d9de(0x1dc),_0x3d7dc9[_0x3d7dc9[_0x95d9de(0x1be)]=0x5]=_0x95d9de(0x1be),_0x3d7dc9[_0x3d7dc9[_0x95d9de(0x188)]=-0x1]=_0x95d9de(0x188),_0x3d7dc9))(v||{});const D=_0x377d78=>_0x529ead(new Date(+_0x377d78))[_0x95d9de(0x1a4)](_0x95d9de(0x184)),B=async(_0x170106,_0x1b0a68)=>{const _0x5c6146=_0x95d9de,_0x450244=_0x170106['get'](_0x1afcdc),_0x7fb05=_0x170106[_0x5c6146(0x1e3)](_0x2ac54a);_0x1b0a68[_0x5c6146(0x1da)](_0x4d7f0d=>{const _0x3b0131=_0x5c6146;_0x450244[_0x3b0131(0x197)](_0x4d7f0d)&&_0x1b0a68[_0x3b0131(0x1a0)](_0x4d7f0d);}),_0x1b0a68[_0x5c6146(0x1d1)]&&(await _0x7fb05[_0x5c6146(0x1e3)](_0x5c6146(0x1d2),{'params':{'userIDs':[..._0x1b0a68]}}))[_0x5c6146(0x1d9)][_0x5c6146(0x186)]['forEach'](_0x29e612=>{const _0x3474da=_0x5c6146;_0x29e612&&_0x450244[_0x3474da(0x199)](_0x29e612);});};var K=Object[_0x95d9de(0x18c)],V=(_0x25819b,_0x60c6a5,_0x26f857,_0x101f5e)=>{const _0x49790b=_0x95d9de;for(var _0x44f5a6=_0x101f5e>0x1?void 0x0:_0x101f5e?K(_0x60c6a5,_0x26f857):_0x60c6a5,_0x406e8a=_0x25819b[_0x49790b(0x1d8)]-0x1,_0x2900e5;_0x406e8a>=0x0;_0x406e8a--)(_0x2900e5=_0x25819b[_0x406e8a])&&(_0x44f5a6=_0x2900e5(_0x44f5a6)||_0x44f5a6);return _0x44f5a6;},p=(_0x5dedbe,_0x538044)=>(_0x5586bd,_0x2c490c)=>_0x538044(_0x5586bd,_0x2c490c,_0x5dedbe);let S=class extends _0x330b82{constructor(_0x2caa51,_0x29df54,_0x148bca,_0x52d05a){const _0x351aac=_0x95d9de;super(),this[_0x351aac(0x19a)]=_0x2caa51,this[_0x351aac(0x1ba)]=_0x29df54,this[_0x351aac(0x189)]=_0x148bca,this['_injector']=_0x52d05a,this[_0x351aac(0x1c3)](),this['_initUserSync']();}[_0x95d9de(0x1ca)](){const _0x3caeb8=_0x95d9de;this[_0x3caeb8(0x1cc)](this[_0x3caeb8(0x1ba)]['commentUpdate$'][_0x3caeb8(0x1bf)](_0x485e87(0x10))['subscribe'](_0x3954fb=>{const _0x5029a3=_0x3caeb8,_0x1222cf=new Set();_0x3954fb[_0x5029a3(0x1da)](_0x11cf51=>{const _0x8db6dd=_0x5029a3;switch(_0x11cf51[_0x8db6dd(0x19e)]){case _0x8db6dd(0x1c5):{const _0x44e88e=_0x11cf51[_0x8db6dd(0x1bb)][_0x8db6dd(0x19f)];_0x1222cf['add'](_0x44e88e);break;}}}),B(this[_0x5029a3(0x1a9)],_0x1222cf);}));}[_0x95d9de(0x1c3)](){const _0x21877c=_0x95d9de;this[_0x21877c(0x1cc)](this[_0x21877c(0x19a)][_0x21877c(0x1c1)][_0x21877c(0x1a6)](async _0x4b7ae1=>{const _0x56a657=_0x21877c;var _0x21ad75,_0x3547f0,_0x9642aa,_0x2dbcbc;const _0xf8a276=(_0x21ad75=this[_0x56a657(0x1ba)][_0x56a657(0x1d4)](_0x4b7ae1['unitId'])[_0x56a657(0x1b8)](_0x41af15=>_0x41af15[_0x56a657(0x1d7)]===_0x4b7ae1[_0x56a657(0x1d7)]))==null?void 0x0:_0x21ad75[_0x56a657(0x18a)];if(!_0xf8a276)return;const {unitId:_0x1feec5,subUnitId:_0xc849c2}=_0xf8a276;switch(_0x4b7ae1[_0x56a657(0x1e0)]&&this[_0x56a657(0x189)]['addUser'](_0x4b7ae1['user']),_0x4b7ae1[_0x56a657(0x19e)]){case v[_0x56a657(0x1d6)]:break;case v[_0x56a657(0x1b0)]:{this[_0x56a657(0x1ba)][_0x56a657(0x19c)](_0x1feec5,_0xc849c2,{'unitId':_0x1feec5,'subUnitId':_0xc849c2,'ref':'','id':_0x4b7ae1[_0x56a657(0x1bd)],'dT':D(+_0x4b7ae1[_0x56a657(0x1c2)]),'threadId':_0x4b7ae1[_0x56a657(0x1d7)],'personId':(_0x9642aa=(_0x3547f0=_0x4b7ae1['user'])==null?void 0x0:_0x3547f0['userID'])!=null?_0x9642aa:_0x4b7ae1['userId'],'text':JSON[_0x56a657(0x18f)](_0x4b7ae1[_0x56a657(0x1a2)]),'parentId':_0xf8a276['id']});break;}case v[_0x56a657(0x1dc)]:{const _0x1a4b56=this['_threadCommentModel']['getComment'](_0x1feec5,_0xc849c2,_0x4b7ae1['replyId']);_0x1a4b56&&_0x1a4b56['parentId']&&this[_0x56a657(0x1ba)][_0x56a657(0x1ac)](_0x1feec5,_0xc849c2,_0x4b7ae1['replyId']);break;}case v[_0x56a657(0x1c4)]:{this['_threadCommentModel'][_0x56a657(0x18e)](_0x1feec5,_0xc849c2,{'commentId':_0x4b7ae1['replyId'],'text':JSON[_0x56a657(0x18f)](_0x4b7ae1['content'])});break;}case v[_0x56a657(0x1be)]:{const _0x1a711c=(_0x2dbcbc=this[_0x56a657(0x1ba)][_0x56a657(0x1d4)](_0x4b7ae1[_0x56a657(0x18d)])[_0x56a657(0x1b8)](_0xccfb25=>_0xccfb25[_0x56a657(0x1d7)]===_0x4b7ae1[_0x56a657(0x1d7)]))==null?void 0x0:_0x2dbcbc['root'];_0x1a711c&&this['_threadCommentModel']['resolveComment'](_0x1feec5,_0xc849c2,_0x1a711c['id'],_0x4b7ae1[_0x56a657(0x193)]===I[_0x56a657(0x191)]);break;}}}));}};S=V([p(0x0,_0x258925(_0x2f9599)),p(0x1,_0x258925(_0x1ea713)),p(0x2,_0x258925(_0x1afcdc)),p(0x3,_0x258925(_0x25506))],S);function _0x1c32(_0x48f946,_0x3ebb40){const _0x333b6b=_0x333b();return _0x1c32=function(_0x1c32cc,_0x560aff){_0x1c32cc=_0x1c32cc-0x182;let _0x75e297=_0x333b6b[_0x1c32cc];return _0x75e297;},_0x1c32(_0x48f946,_0x3ebb40);}const z=_0x95d9de(0x1a7),M={};var k=Object[_0x95d9de(0x18c)],Q=(_0x344fbe,_0x2c9034,_0x1ad6c0,_0x38470c)=>{const _0x26f6e1=_0x95d9de;for(var _0x26e490=_0x38470c>0x1?void 0x0:_0x38470c?k(_0x2c9034,_0x1ad6c0):_0x2c9034,_0x26de24=_0x344fbe[_0x26f6e1(0x1d8)]-0x1,_0x5d9862;_0x26de24>=0x0;_0x26de24--)(_0x5d9862=_0x344fbe[_0x26de24])&&(_0x26e490=_0x5d9862(_0x26e490)||_0x26e490);return _0x26e490;},_=(_0x321c30,_0x1e4f65)=>(_0x2771e5,_0x1042a1)=>_0x1e4f65(_0x2771e5,_0x1042a1,_0x321c30);function X(_0x13a245,_0x46398d){const _0x23e3de=_0x95d9de,_0x5db1c7=_0x13a245['replies'][0x0];return{..._0x46398d,'id':_0x5db1c7[_0x23e3de(0x1bd)],'resolved':_0x13a245[_0x23e3de(0x193)]===0x1,'dT':D(_0x5db1c7[_0x23e3de(0x1c2)]),'personId':_0x5db1c7[_0x23e3de(0x1b1)],'threadId':_0x5db1c7[_0x23e3de(0x1d7)]};}function ee(_0x40d52c,_0x501e58,_0x97f2c8){const _0x58bdf3=_0x95d9de;var _0x1171fc,_0xb58c7e;if(((_0xb58c7e=(_0x1171fc=_0x40d52c==null?void 0x0:_0x40d52c[_0x58bdf3(0x187)])==null?void 0x0:_0x1171fc['length'])!=null?_0xb58c7e:0x0)>0x0){const _0x25d020=(_0x279e90,_0x5e5073)=>({'id':_0x279e90[_0x58bdf3(0x1bd)],'threadId':_0x279e90['threadId'],'dT':D(_0x279e90[_0x58bdf3(0x1c2)]),'personId':_0x279e90[_0x58bdf3(0x1b1)],'resolved':_0x40d52c[_0x58bdf3(0x193)]===I['Solved'],'unitId':_0x501e58,'subUnitId':_0x97f2c8,'text':JSON[_0x58bdf3(0x18f)](_0x279e90[_0x58bdf3(0x1a2)]),'parentId':_0x5e5073}),_0x5ca135=_0x25d020(_0x40d52c[_0x58bdf3(0x187)][0x0]);return{..._0x5ca135,'children':_0x40d52c['replies']['slice'](0x1)[_0x58bdf3(0x1c0)](_0x45bfd7=>_0x25d020(_0x45bfd7,_0x5ca135['id']))};}return null;}let f=class{constructor(_0x55b7e,_0x305587,_0x16d345,_0x22a35b){const _0x398615=_0x95d9de;this[_0x398615(0x1d5)]=_0x55b7e,this[_0x398615(0x189)]=_0x305587,this[_0x398615(0x1b4)]=_0x16d345,this[_0x398615(0x1a9)]=_0x22a35b;}async[_0x95d9de(0x19c)](_0x1e09e2){const _0x42e5c0=_0x95d9de;var _0x39b5a8,_0x3ad184;const {parentId:_0x254938,unitId:_0x14a019,text:_0x5bc68c,threadId:_0x4f21ed}=_0x1e09e2,_0x58a6bb=(_0x3ad184=(_0x39b5a8=_0x5bc68c[_0x42e5c0(0x1df)])==null?void 0x0:_0x39b5a8['filter'](_0x27c79e=>_0x27c79e[_0x42e5c0(0x1db)]===_0x5f028a[_0x42e5c0(0x1bc)])['map'](_0x304a21=>_0x304a21['rangeId']))!=null?_0x3ad184:[],_0x559b67=JSON[_0x42e5c0(0x1b6)](_0x5bc68c),_0x2aea5c=(await this['_sessionService'][_0x42e5c0(0x1a1)](_0x14a019))[_0x42e5c0(0x185)]();if(_0x254938){const _0x39d2cc={'memberId':_0x2aea5c,'unitId':_0x14a019,'content':_0x559b67,'mention':_0x58a6bb,'threadId':_0x4f21ed},_0x44dfbe=(await this[_0x42e5c0(0x1d5)][_0x42e5c0(0x19d)]('/universer-api/comment/unit/'+_0x14a019+'/reply',{'body':_0x39d2cc}))[_0x42e5c0(0x1d9)]['reply'];return{..._0x1e09e2,'id':_0x44dfbe[_0x42e5c0(0x1bd)],'dT':_0x529ead(+_0x44dfbe[_0x42e5c0(0x1c2)])['format'](_0x42e5c0(0x184)),'personId':_0x44dfbe[_0x42e5c0(0x1b1)]};}else{const _0x4eab45={'memberId':_0x2aea5c,'unitId':_0x14a019,'content':_0x559b67,'mention':_0x58a6bb},_0x31d443=await this[_0x42e5c0(0x1d5)][_0x42e5c0(0x19d)]('/universer-api/comment/unit/'+_0x14a019+_0x42e5c0(0x1ad),{'body':_0x4eab45});return X(_0x31d443[_0x42e5c0(0x1d9)][_0x42e5c0(0x194)],_0x1e09e2);}}async[_0x95d9de(0x18e)](_0x2c0cba){const _0x3e6efa=_0x95d9de;var _0x4592b8,_0x12e2aa;const {text:_0x154609,unitId:_0x2f29c9}=_0x2c0cba,_0x3df33f=(_0x12e2aa=(_0x4592b8=_0x154609[_0x3e6efa(0x1df)])==null?void 0x0:_0x4592b8[_0x3e6efa(0x1a8)](_0x569eef=>_0x569eef[_0x3e6efa(0x1db)]===_0x5f028a['COMMENT'])[_0x3e6efa(0x1c0)](_0x18fc36=>_0x18fc36[_0x3e6efa(0x1d0)]))!=null?_0x12e2aa:[],_0x4ded90=JSON['stringify'](_0x154609),_0x15b3f0=_0x2c0cba[_0x3e6efa(0x1d7)],_0x3e583a=_0x2c0cba['id'],_0x24ac14={'memberId':(await this[_0x3e6efa(0x1b4)][_0x3e6efa(0x1a1)](_0x2f29c9))[_0x3e6efa(0x185)](),'unitId':_0x2f29c9,'threadId':_0x15b3f0,'mention':_0x3df33f,'content':_0x4ded90,'replyId':_0x3e583a},_0x4b1089=await this[_0x3e6efa(0x1d5)][_0x3e6efa(0x19d)]('/universer-api/comment/unit/'+_0x2f29c9+'/edit',{'body':_0x24ac14});return!_0x4b1089[_0x3e6efa(0x1d9)][_0x3e6efa(0x1af)]||_0x4b1089[_0x3e6efa(0x1d9)][_0x3e6efa(0x1af)][_0x3e6efa(0x1cd)]===0x1;}async[_0x95d9de(0x19b)](_0x29000c){const _0x100db8=_0x95d9de,{unitId:_0x5b13e9}=_0x29000c,_0x4578f2=_0x29000c['threadId'],_0xcbbc5a={'memberId':this[_0x100db8(0x189)]['getCurrentUser']()[_0x100db8(0x1aa)],'unitId':_0x5b13e9,'threadId':_0x4578f2,'solved':_0x29000c[_0x100db8(0x1cf)]?I[_0x100db8(0x191)]:I[_0x100db8(0x1e2)]},_0x11e77a=await this['_httpService']['post'](_0x100db8(0x1b5)+_0x5b13e9+'/solved',{'body':_0xcbbc5a});return!_0x11e77a[_0x100db8(0x1d9)][_0x100db8(0x1af)]||_0x11e77a[_0x100db8(0x1d9)]['error'][_0x100db8(0x1cd)]===0x1;}async['deleteComment'](_0x3194c7,_0x420727,_0xff3cdc,_0x5601c3){const _0x5084b3=_0x95d9de,_0x22c81a={'memberId':(await this['_sessionService'][_0x5084b3(0x1a1)](_0x3194c7))[_0x5084b3(0x185)](),'threadId':_0xff3cdc,'replyId':_0x5601c3,'unitId':_0x3194c7},_0x1073e5=await this['_httpService']['post'](_0x5084b3(0x1b5)+_0x3194c7+_0x5084b3(0x1c6),{'body':_0x22c81a});return!_0x1073e5[_0x5084b3(0x1d9)][_0x5084b3(0x1af)]||_0x1073e5[_0x5084b3(0x1d9)][_0x5084b3(0x1af)][_0x5084b3(0x1cd)]===0x1;}async[_0x95d9de(0x182)](_0x47a2ea,_0x1ecc1f,_0x146d0d){const _0x107554=_0x95d9de,_0x43ab55={'unitId':_0x47a2ea,'threadId':_0x146d0d},_0x8f0383=await this[_0x107554(0x1d5)][_0x107554(0x19d)]('/universer-api/comment/unit/'+_0x47a2ea+_0x107554(0x192),{'body':_0x43ab55}),_0x27adc4=_0x146d0d[_0x107554(0x1c0)](_0x116220=>ee(_0x8f0383[_0x107554(0x1d9)][_0x107554(0x1b7)][_0x116220],_0x47a2ea,_0x1ecc1f))[_0x107554(0x1a8)](Boolean);return Object[_0x107554(0x1c9)](_0x8f0383[_0x107554(0x1d9)][_0x107554(0x186)])[_0x107554(0x1da)](_0xf85bac=>{const _0x8a3c29=_0x107554;this['_userService'][_0x8a3c29(0x199)](_0xf85bac);}),_0x27adc4;}[_0x95d9de(0x1b3)](_0x3eaed9){const _0x414428=_0x95d9de;return{'id':_0x3eaed9['id'],'threadId':_0x3eaed9[_0x414428(0x1d7)],'ref':_0x3eaed9[_0x414428(0x1d3)]};}};f=Q([_(0x0,_0x258925(_0x2ac54a)),_(0x1,_0x258925(_0x1afcdc)),_(0x2,_0x258925(_0x4d35cb)),_(0x3,_0x258925(_0x25506))],f);var re=Object[_0x95d9de(0x18c)],te=(_0x13fd64,_0x68251b,_0x418833,_0x50bd3e)=>{const _0x550363=_0x95d9de;for(var _0x4c3501=_0x50bd3e>0x1?void 0x0:_0x50bd3e?re(_0x68251b,_0x418833):_0x68251b,_0x52e6d6=_0x13fd64[_0x550363(0x1d8)]-0x1,_0x2b6669;_0x52e6d6>=0x0;_0x52e6d6--)(_0x2b6669=_0x13fd64[_0x52e6d6])&&(_0x4c3501=_0x2b6669(_0x4c3501)||_0x4c3501);return _0x4c3501;},N=(_0x131cd7,_0x3c97e5)=>(_0x318f43,_0x50212d)=>_0x3c97e5(_0x318f43,_0x50212d,_0x131cd7);let g=class extends _0x330b82{constructor(_0x255042,_0x563b24){const _0x595f97=_0x95d9de;super(),this[_0x595f97(0x198)]=_0x255042,this['_threadCommentDataSource']=_0x563b24,this['_initDataSource']();}['_initDataSource'](){const _0x197c3b=_0x95d9de;this[_0x197c3b(0x198)]['dataSource']=this[_0x197c3b(0x190)],this[_0x197c3b(0x198)][_0x197c3b(0x1c7)]=!0x1;}};g=te([N(0x0,_0x2393b8),N(0x1,_0x258925(f))],g);var se=Object[_0x95d9de(0x196)],oe=Object[_0x95d9de(0x18c)],ne=(_0x5a74d7,_0x129c4f,_0x173895)=>_0x129c4f in _0x5a74d7?se(_0x5a74d7,_0x129c4f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x173895}):_0x5a74d7[_0x129c4f]=_0x173895,ie=(_0x45d93b,_0x44bf7c,_0x185c30,_0x4f8e70)=>{const _0x10971b=_0x95d9de;for(var _0x4c1e1a=_0x4f8e70>0x1?void 0x0:_0x4f8e70?oe(_0x44bf7c,_0x185c30):_0x44bf7c,_0x4e017a=_0x45d93b[_0x10971b(0x1d8)]-0x1,_0x487e1f;_0x4e017a>=0x0;_0x4e017a--)(_0x487e1f=_0x45d93b[_0x4e017a])&&(_0x4c1e1a=_0x487e1f(_0x4c1e1a)||_0x4c1e1a);return _0x4c1e1a;},w=(_0x3afcc4,_0x25482e)=>(_0x1da82e,_0x2f287b)=>_0x25482e(_0x1da82e,_0x2f287b,_0x3afcc4),$=(_0x4cbbef,_0xdcc1cc,_0x79549e)=>ne(_0x4cbbef,typeof _0xdcc1cc!=_0x95d9de(0x1a3)?_0xdcc1cc+'':_0xdcc1cc,_0x79549e);let b=class extends _0x44d5c8{constructor(_0x3c0418=M,_0x2b5aec,_0x46a303){const _0x5de321=_0x95d9de;super(),this[_0x5de321(0x18b)]=_0x3c0418,this[_0x5de321(0x1a9)]=_0x2b5aec,this[_0x5de321(0x1ae)]=_0x46a303;const {..._0x288430}=_0x52b569({},M,this[_0x5de321(0x18b)]);this[_0x5de321(0x1ae)][_0x5de321(0x1a5)](z,_0x288430);}['onStarting'](){[[f],[g],[S]]['forEach'](_0x1af159=>{const _0x3f4350=_0x1c32;this[_0x3f4350(0x1a9)]['add'](_0x1af159);});}[_0x95d9de(0x195)](){const _0xdadbda=_0x95d9de;this[_0xdadbda(0x1a9)]['get'](g),this[_0xdadbda(0x1a9)]['get'](S);}};function _0x333b(){const _0x5a0f08=['resolved','rangeId','size','/universer-api/user/list','ref','getUnit','_httpService','Add','threadId','length','body','forEach','rangeType','Delete','2239332QiBunA','2327968DyBTtg','customRanges','user','15BIaASo','OpenOrReOpen','get','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','listComments','1147325XDsuRv','YYYY/MM/DD\x20HH:mm','getMemberID','users','replies','UNRECOGNIZED','_userService','root','_config','getOwnPropertyDescriptor','unitId','updateComment','parse','_threadCommentDataSource','Solved','/list','solved','comment','onReady','defineProperty','getUser','_threadCommentDataSourceService','addUser','_commentService','resolveComment','addComment','post','type','personId','delete','requireSession','content','symbol','format','setConfig','subscribe','thread-comment-data-source.config','filter','_injector','userID','331912EjIKUr','deleteComment','/add','_configService','error','Reply','userId','6sKxywj','saveCommentToSnapshot','_sessionService','/universer-api/comment/unit/','stringify','comments','find','Unknown','_threadCommentModel','payload','COMMENT','replyId','Solve','pipe','map','commentUpdate$','createTimestamp','_init','Edit','add','/delete','syncUpdateMutationToColla','32196xjZQmn','values','_initUserSync','1825191RkEjSN','disposeWithMe','code','567939HchzQT'];_0x333b=function(){return _0x5a0f08;};return _0x333b();}$(b,'pluginName',W),$(b,_0x95d9de(0x19e),_0x1df290['UNIVER_UNKNOWN']),b=ie([_0x4451f2(_0x50fa42,_0xcabb8f,_0x3ec5ef),w(0x1,_0x258925(_0x25506)),w(0x2,_0x1fb7d2)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
|
1
|
+
const _0x3125a2=_0x44fb;(function(_0x41e1e5,_0xe00b07){const _0x1c28cb=_0x44fb,_0x39dbf5=_0x41e1e5();while(!![]){try{const _0x17feb2=parseInt(_0x1c28cb(0x18f))/0x1*(-parseInt(_0x1c28cb(0x199))/0x2)+parseInt(_0x1c28cb(0x1a9))/0x3+-parseInt(_0x1c28cb(0x1a5))/0x4+-parseInt(_0x1c28cb(0x1d2))/0x5+-parseInt(_0x1c28cb(0x1a8))/0x6*(-parseInt(_0x1c28cb(0x1b1))/0x7)+-parseInt(_0x1c28cb(0x1d1))/0x8*(-parseInt(_0x1c28cb(0x1b7))/0x9)+parseInt(_0x1c28cb(0x1c9))/0xa*(parseInt(_0x1c28cb(0x1a2))/0xb);if(_0x17feb2===_0xe00b07)break;else _0x39dbf5['push'](_0x39dbf5['shift']());}catch(_0x24c704){_0x39dbf5['push'](_0x39dbf5['shift']());}}}(_0x2427,0xd6d34));import{CommentService as _0x28c565,CollaborationSessionService as _0x3cf7e3,UniverCollaborationClientPlugin as _0x12a624}from'@univerjs-pro/collaboration-client';function _0x2427(){const _0x2925b9=['payload','format','8dncZuI','1515075ShBbBd','_userService','parse','getMemberID','solved','find','resolveComment','unitId','Delete','delete','post','_commentService','pluginName','getUnit','UNRECOGNIZED','/add','Solve','_httpService','/universer-api/user/list','size','resolved','userId','root','_config','rangeType','Solved','onReady','syncUpdateMutationToColla','forEach','saveCommentToSnapshot','get','YYYY/MM/DD\x20HH:mm','comments','Add','OpenOrReOpen','subscribe','personId','requireSession','9bcyeDc','/universer-api/comment/unit/','userID','getComment','threadId','slice','Edit','_initDataSource','replies','_configService','356744Wubiae','body','commentUpdate$','Reply','rangeId','code','/delete','_sessionService','length','22bNUBak','stringify','customRanges','4074688hpXWEt','dataSource','reply','194478OnvweG','4268274oFerap','error','/edit','createTimestamp','pipe','/reply','deleteComment','parentId','98BfMYpU','_init','Unknown','replyId','_threadCommentModel','_initUserSync','11508309wjDKyO','addUser','_threadCommentDataSource','_threadCommentDataSourceService','COMMENT','getUser','users','add','disposeWithMe','_injector','setConfig','addComment','content','map','defineProperty','comment','user','ref','3258590oXsteK','UNIVER_UNKNOWN','updateComment','type','filter','getOwnPropertyDescriptor'];_0x2427=function(){return _0x2925b9;};return _0x2427();}function _0x44fb(_0x3ffcd7,_0x2b8992){const _0x24278a=_0x2427();return _0x44fb=function(_0x44fb18,_0x8e07fd){_0x44fb18=_0x44fb18-0x183;let _0x18e74e=_0x24278a[_0x44fb18];return _0x18e74e;},_0x44fb(_0x3ffcd7,_0x2b8992);}import{UniverLicensePlugin as _0x2e3ca3}from'@univerjs-pro/license';import{dayjs as _0x466984,UserManagerService as _0x877d29,Inject as _0x5223ea,Injector as _0x579925,Disposable as _0x2c471d,CustomRangeType as _0x1659d6,UniverInstanceType as _0x4f26b0,DependentOn as _0x3f95ef,IConfigService as _0x5a7661,Plugin as _0x42ff71,merge as _0x497adb}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x479164}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x2de7ff,IThreadCommentDataSourceService as _0x1af45c}from'@univerjs/thread-comment';import{bufferTime as _0x5a8fb7}from'rxjs';import{HTTPService as _0x3180ef}from'@univerjs/network';const W='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var I=(_0xe3f0c8=>(_0xe3f0c8[_0xe3f0c8[_0x3125a2(0x18b)]=0x0]='OpenOrReOpen',_0xe3f0c8[_0xe3f0c8[_0x3125a2(0x1eb)]=0x1]=_0x3125a2(0x1eb),_0xe3f0c8[_0xe3f0c8['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0xe3f0c8))(I||{}),v=(_0x4c5f55=>(_0x4c5f55[_0x4c5f55[_0x3125a2(0x1b3)]=0x0]=_0x3125a2(0x1b3),_0x4c5f55[_0x4c5f55['Add']=0x1]=_0x3125a2(0x18a),_0x4c5f55[_0x4c5f55[_0x3125a2(0x19c)]=0x2]=_0x3125a2(0x19c),_0x4c5f55[_0x4c5f55[_0x3125a2(0x195)]=0x3]=_0x3125a2(0x195),_0x4c5f55[_0x4c5f55[_0x3125a2(0x1da)]=0x4]=_0x3125a2(0x1da),_0x4c5f55[_0x4c5f55['Solve']=0x5]='Solve',_0x4c5f55[_0x4c5f55[_0x3125a2(0x1e0)]=-0x1]='UNRECOGNIZED',_0x4c5f55))(v||{});const D=_0x2b313a=>_0x466984(new Date(+_0x2b313a))[_0x3125a2(0x1d0)](_0x3125a2(0x188)),B=async(_0x3202d6,_0x270c55)=>{const _0x51211b=_0x3125a2,_0x1628b6=_0x3202d6[_0x51211b(0x187)](_0x877d29),_0x519477=_0x3202d6[_0x51211b(0x187)](_0x3180ef);_0x270c55[_0x51211b(0x185)](_0x42b6d9=>{const _0x4213e7=_0x51211b;_0x1628b6[_0x4213e7(0x1bc)](_0x42b6d9)&&_0x270c55[_0x4213e7(0x1db)](_0x42b6d9);}),_0x270c55[_0x51211b(0x1e5)]&&(await _0x519477['get'](_0x51211b(0x1e4),{'params':{'userIDs':[..._0x270c55]}}))[_0x51211b(0x19a)][_0x51211b(0x1bd)][_0x51211b(0x185)](_0x837705=>{const _0x2f9e68=_0x51211b;_0x837705&&_0x1628b6[_0x2f9e68(0x1b8)](_0x837705);});};var K=Object[_0x3125a2(0x1ce)],V=(_0x3a9b9d,_0x397d31,_0x59d0e8,_0x582354)=>{for(var _0x136155=_0x582354>0x1?void 0x0:_0x582354?K(_0x397d31,_0x59d0e8):_0x397d31,_0x11ff5a=_0x3a9b9d['length']-0x1,_0x5c633b;_0x11ff5a>=0x0;_0x11ff5a--)(_0x5c633b=_0x3a9b9d[_0x11ff5a])&&(_0x136155=_0x5c633b(_0x136155)||_0x136155);return _0x136155;},p=(_0x48c30e,_0x3f79eb)=>(_0x2d6beb,_0x41d856)=>_0x3f79eb(_0x2d6beb,_0x41d856,_0x48c30e);let S=class extends _0x2c471d{constructor(_0x2aa13d,_0x1c09b5,_0x3581e4,_0x53cd1c){const _0x396faf=_0x3125a2;super(),this['_commentService']=_0x2aa13d,this[_0x396faf(0x1b5)]=_0x1c09b5,this[_0x396faf(0x1d3)]=_0x3581e4,this[_0x396faf(0x1c0)]=_0x53cd1c,this['_init'](),this[_0x396faf(0x1b6)]();}[_0x3125a2(0x1b6)](){const _0x2ceda4=_0x3125a2;this[_0x2ceda4(0x1bf)](this[_0x2ceda4(0x1b5)]['commentUpdate$'][_0x2ceda4(0x1ad)](_0x5a8fb7(0x10))[_0x2ceda4(0x18c)](_0x424028=>{const _0x256207=_0x2ceda4,_0x5cf6ca=new Set();_0x424028['forEach'](_0x2c3930=>{const _0x4fb22f=_0x44fb;switch(_0x2c3930[_0x4fb22f(0x1cc)]){case _0x4fb22f(0x1be):{const _0x464d2d=_0x2c3930[_0x4fb22f(0x1cf)][_0x4fb22f(0x18d)];_0x5cf6ca[_0x4fb22f(0x1be)](_0x464d2d);break;}}}),B(this[_0x256207(0x1c0)],_0x5cf6ca);}));}[_0x3125a2(0x1b2)](){const _0x1bcace=_0x3125a2;this[_0x1bcace(0x1bf)](this[_0x1bcace(0x1dd)][_0x1bcace(0x19b)][_0x1bcace(0x18c)](async _0x431dcc=>{const _0x48128a=_0x1bcace;var _0x44c3ab,_0x26b813,_0x2dc8b6,_0xfdc3bc;const _0x3829b4=(_0x44c3ab=this[_0x48128a(0x1b5)][_0x48128a(0x1df)](_0x431dcc[_0x48128a(0x1d9)])['find'](_0x1b27dc=>_0x1b27dc[_0x48128a(0x193)]===_0x431dcc[_0x48128a(0x193)]))==null?void 0x0:_0x44c3ab[_0x48128a(0x1e8)];if(!_0x3829b4)return;const {unitId:_0x5101e9,subUnitId:_0x441c03}=_0x3829b4;switch(_0x431dcc[_0x48128a(0x1c7)]&&this[_0x48128a(0x1d3)]['addUser'](_0x431dcc[_0x48128a(0x1c7)]),_0x431dcc[_0x48128a(0x1cc)]){case v[_0x48128a(0x18a)]:break;case v[_0x48128a(0x19c)]:{this[_0x48128a(0x1b5)][_0x48128a(0x1c2)](_0x5101e9,_0x441c03,{'unitId':_0x5101e9,'subUnitId':_0x441c03,'ref':'','id':_0x431dcc['replyId'],'dT':D(+_0x431dcc[_0x48128a(0x1ac)]),'threadId':_0x431dcc[_0x48128a(0x193)],'personId':(_0x2dc8b6=(_0x26b813=_0x431dcc[_0x48128a(0x1c7)])==null?void 0x0:_0x26b813[_0x48128a(0x191)])!=null?_0x2dc8b6:_0x431dcc[_0x48128a(0x1e7)],'text':JSON[_0x48128a(0x1d4)](_0x431dcc[_0x48128a(0x1c3)]),'parentId':_0x3829b4['id']});break;}case v[_0x48128a(0x1da)]:{const _0x9fbc9a=this[_0x48128a(0x1b5)][_0x48128a(0x192)](_0x5101e9,_0x441c03,_0x431dcc['replyId']);_0x9fbc9a&&_0x9fbc9a[_0x48128a(0x1b0)]&&this[_0x48128a(0x1b5)][_0x48128a(0x1af)](_0x5101e9,_0x441c03,_0x431dcc[_0x48128a(0x1b4)]);break;}case v['Edit']:{this[_0x48128a(0x1b5)]['updateComment'](_0x5101e9,_0x441c03,{'commentId':_0x431dcc[_0x48128a(0x1b4)],'text':JSON[_0x48128a(0x1d4)](_0x431dcc[_0x48128a(0x1c3)])});break;}case v[_0x48128a(0x1e2)]:{const _0x9c79a4=(_0xfdc3bc=this[_0x48128a(0x1b5)][_0x48128a(0x1df)](_0x431dcc[_0x48128a(0x1d9)])[_0x48128a(0x1d7)](_0x4ee24d=>_0x4ee24d[_0x48128a(0x193)]===_0x431dcc[_0x48128a(0x193)]))==null?void 0x0:_0xfdc3bc[_0x48128a(0x1e8)];_0x9c79a4&&this[_0x48128a(0x1b5)][_0x48128a(0x1d8)](_0x5101e9,_0x441c03,_0x9c79a4['id'],_0x431dcc[_0x48128a(0x1d6)]===I[_0x48128a(0x1eb)]);break;}}}));}};S=V([p(0x0,_0x5223ea(_0x28c565)),p(0x1,_0x5223ea(_0x2de7ff)),p(0x2,_0x5223ea(_0x877d29)),p(0x3,_0x5223ea(_0x579925))],S);const z='thread-comment-data-source.config',M={};var k=Object['getOwnPropertyDescriptor'],Q=(_0x339343,_0x5ca4ea,_0x515898,_0x5ad8d2)=>{const _0x562ed1=_0x3125a2;for(var _0x514722=_0x5ad8d2>0x1?void 0x0:_0x5ad8d2?k(_0x5ca4ea,_0x515898):_0x5ca4ea,_0x45b5b1=_0x339343[_0x562ed1(0x1a1)]-0x1,_0x5827c5;_0x45b5b1>=0x0;_0x45b5b1--)(_0x5827c5=_0x339343[_0x45b5b1])&&(_0x514722=_0x5827c5(_0x514722)||_0x514722);return _0x514722;},_=(_0x217570,_0x353cd8)=>(_0x34130b,_0x4bc6f3)=>_0x353cd8(_0x34130b,_0x4bc6f3,_0x217570);function X(_0x52403d,_0x146f9e){const _0x3523f6=_0x3125a2,_0x128473=_0x52403d[_0x3523f6(0x197)][0x0];return{..._0x146f9e,'id':_0x128473[_0x3523f6(0x1b4)],'resolved':_0x52403d[_0x3523f6(0x1d6)]===0x1,'dT':D(_0x128473[_0x3523f6(0x1ac)]),'personId':_0x128473[_0x3523f6(0x1e7)],'threadId':_0x128473[_0x3523f6(0x193)]};}function ee(_0x1db493,_0x512efd,_0xfd8a7f){const _0x2c1385=_0x3125a2;var _0x3b0383,_0xeaafa9;if(((_0xeaafa9=(_0x3b0383=_0x1db493==null?void 0x0:_0x1db493['replies'])==null?void 0x0:_0x3b0383[_0x2c1385(0x1a1)])!=null?_0xeaafa9:0x0)>0x0){const _0x28fc8a=(_0x3402db,_0x3712e2)=>({'id':_0x3402db[_0x2c1385(0x1b4)],'threadId':_0x3402db['threadId'],'dT':D(_0x3402db[_0x2c1385(0x1ac)]),'personId':_0x3402db[_0x2c1385(0x1e7)],'resolved':_0x1db493['solved']===I[_0x2c1385(0x1eb)],'unitId':_0x512efd,'subUnitId':_0xfd8a7f,'text':JSON[_0x2c1385(0x1d4)](_0x3402db['content']),'parentId':_0x3712e2}),_0x464864=_0x28fc8a(_0x1db493[_0x2c1385(0x197)][0x0]);return{..._0x464864,'children':_0x1db493[_0x2c1385(0x197)][_0x2c1385(0x194)](0x1)[_0x2c1385(0x1c4)](_0x443b83=>_0x28fc8a(_0x443b83,_0x464864['id']))};}return null;}let f=class{constructor(_0x5e7810,_0x244858,_0x16f12e,_0x4b3b62){const _0x85b0bf=_0x3125a2;this[_0x85b0bf(0x1e3)]=_0x5e7810,this[_0x85b0bf(0x1d3)]=_0x244858,this[_0x85b0bf(0x1a0)]=_0x16f12e,this[_0x85b0bf(0x1c0)]=_0x4b3b62;}async['addComment'](_0x3ee18f){const _0x1a78c9=_0x3125a2;var _0x133bf3,_0x3d7aa0;const {parentId:_0x5f38a5,unitId:_0x5cb725,text:_0x3a8071,threadId:_0x7bc1d3}=_0x3ee18f,_0x5b316b=(_0x3d7aa0=(_0x133bf3=_0x3a8071[_0x1a78c9(0x1a4)])==null?void 0x0:_0x133bf3[_0x1a78c9(0x1cd)](_0x4bd2d1=>_0x4bd2d1['rangeType']===_0x1659d6[_0x1a78c9(0x1bb)])[_0x1a78c9(0x1c4)](_0x1bb3bc=>_0x1bb3bc[_0x1a78c9(0x19d)]))!=null?_0x3d7aa0:[],_0x4b28c0=JSON[_0x1a78c9(0x1a3)](_0x3a8071),_0x33d650=(await this[_0x1a78c9(0x1a0)][_0x1a78c9(0x18e)](_0x5cb725))[_0x1a78c9(0x1d5)]();if(_0x5f38a5){const _0x2afe42={'memberId':_0x33d650,'unitId':_0x5cb725,'content':_0x4b28c0,'mention':_0x5b316b,'threadId':_0x7bc1d3},_0x1d8332=(await this[_0x1a78c9(0x1e3)][_0x1a78c9(0x1dc)](_0x1a78c9(0x190)+_0x5cb725+_0x1a78c9(0x1ae),{'body':_0x2afe42}))[_0x1a78c9(0x19a)][_0x1a78c9(0x1a7)];return{..._0x3ee18f,'id':_0x1d8332[_0x1a78c9(0x1b4)],'dT':_0x466984(+_0x1d8332['createTimestamp'])[_0x1a78c9(0x1d0)](_0x1a78c9(0x188)),'personId':_0x1d8332[_0x1a78c9(0x1e7)]};}else{const _0x41a107={'memberId':_0x33d650,'unitId':_0x5cb725,'content':_0x4b28c0,'mention':_0x5b316b},_0x2b65d3=await this[_0x1a78c9(0x1e3)]['post']('/universer-api/comment/unit/'+_0x5cb725+_0x1a78c9(0x1e1),{'body':_0x41a107});return X(_0x2b65d3[_0x1a78c9(0x19a)][_0x1a78c9(0x1c6)],_0x3ee18f);}}async[_0x3125a2(0x1cb)](_0x37eeec){const _0x25041b=_0x3125a2;var _0x121bec,_0x57373c;const {text:_0x5b7800,unitId:_0x5e4448}=_0x37eeec,_0x1f7640=(_0x57373c=(_0x121bec=_0x5b7800[_0x25041b(0x1a4)])==null?void 0x0:_0x121bec['filter'](_0x381e66=>_0x381e66[_0x25041b(0x1ea)]===_0x1659d6[_0x25041b(0x1bb)])[_0x25041b(0x1c4)](_0x3dedb5=>_0x3dedb5['rangeId']))!=null?_0x57373c:[],_0x311b66=JSON[_0x25041b(0x1a3)](_0x5b7800),_0x59f8fc=_0x37eeec[_0x25041b(0x193)],_0x25b162=_0x37eeec['id'],_0x30c16b={'memberId':(await this['_sessionService'][_0x25041b(0x18e)](_0x5e4448))['getMemberID'](),'unitId':_0x5e4448,'threadId':_0x59f8fc,'mention':_0x1f7640,'content':_0x311b66,'replyId':_0x25b162},_0x22749f=await this[_0x25041b(0x1e3)][_0x25041b(0x1dc)](_0x25041b(0x190)+_0x5e4448+_0x25041b(0x1ab),{'body':_0x30c16b});return!_0x22749f[_0x25041b(0x19a)]['error']||_0x22749f['body'][_0x25041b(0x1aa)]['code']===0x1;}async[_0x3125a2(0x1d8)](_0x2a14f8){const _0x40ccaf=_0x3125a2,{unitId:_0x489c2b}=_0x2a14f8,_0x52e3b4=_0x2a14f8['threadId'],_0x4e21bf={'memberId':this[_0x40ccaf(0x1d3)]['getCurrentUser']()[_0x40ccaf(0x191)],'unitId':_0x489c2b,'threadId':_0x52e3b4,'solved':_0x2a14f8[_0x40ccaf(0x1e6)]?I[_0x40ccaf(0x1eb)]:I[_0x40ccaf(0x18b)]},_0x1db968=await this[_0x40ccaf(0x1e3)][_0x40ccaf(0x1dc)]('/universer-api/comment/unit/'+_0x489c2b+'/solved',{'body':_0x4e21bf});return!_0x1db968[_0x40ccaf(0x19a)][_0x40ccaf(0x1aa)]||_0x1db968['body']['error'][_0x40ccaf(0x19e)]===0x1;}async[_0x3125a2(0x1af)](_0x47ea3b,_0x575d24,_0x5a38fc,_0x37576b){const _0x427b51=_0x3125a2,_0x20b236={'memberId':(await this[_0x427b51(0x1a0)][_0x427b51(0x18e)](_0x47ea3b))[_0x427b51(0x1d5)](),'threadId':_0x5a38fc,'replyId':_0x37576b,'unitId':_0x47ea3b},_0x29988b=await this[_0x427b51(0x1e3)]['post'](_0x427b51(0x190)+_0x47ea3b+_0x427b51(0x19f),{'body':_0x20b236});return!_0x29988b[_0x427b51(0x19a)][_0x427b51(0x1aa)]||_0x29988b[_0x427b51(0x19a)][_0x427b51(0x1aa)]['code']===0x1;}async['listComments'](_0x2bc9fe,_0x39697a,_0x40d39f){const _0x1cd8f2=_0x3125a2,_0x37e3a6={'unitId':_0x2bc9fe,'threadId':_0x40d39f},_0x4035ea=await this[_0x1cd8f2(0x1e3)][_0x1cd8f2(0x1dc)]('/universer-api/comment/unit/'+_0x2bc9fe+'/list',{'body':_0x37e3a6}),_0x5d87a3=_0x40d39f[_0x1cd8f2(0x1c4)](_0x3bfb6f=>ee(_0x4035ea[_0x1cd8f2(0x19a)][_0x1cd8f2(0x189)][_0x3bfb6f],_0x2bc9fe,_0x39697a))[_0x1cd8f2(0x1cd)](Boolean);return Object['values'](_0x4035ea[_0x1cd8f2(0x19a)][_0x1cd8f2(0x1bd)])[_0x1cd8f2(0x185)](_0x2d6c53=>{const _0x4c22e6=_0x1cd8f2;this[_0x4c22e6(0x1d3)][_0x4c22e6(0x1b8)](_0x2d6c53);}),_0x5d87a3;}[_0x3125a2(0x186)](_0x4e731a){const _0x1b5ee4=_0x3125a2;return{'id':_0x4e731a['id'],'threadId':_0x4e731a['threadId'],'ref':_0x4e731a[_0x1b5ee4(0x1c8)]};}};f=Q([_(0x0,_0x5223ea(_0x3180ef)),_(0x1,_0x5223ea(_0x877d29)),_(0x2,_0x5223ea(_0x3cf7e3)),_(0x3,_0x5223ea(_0x579925))],f);var re=Object[_0x3125a2(0x1ce)],te=(_0xd462e3,_0x16abe7,_0xe23e81,_0x459ecf)=>{const _0x26a76c=_0x3125a2;for(var _0x335403=_0x459ecf>0x1?void 0x0:_0x459ecf?re(_0x16abe7,_0xe23e81):_0x16abe7,_0x4be48d=_0xd462e3[_0x26a76c(0x1a1)]-0x1,_0x52836a;_0x4be48d>=0x0;_0x4be48d--)(_0x52836a=_0xd462e3[_0x4be48d])&&(_0x335403=_0x52836a(_0x335403)||_0x335403);return _0x335403;},N=(_0x96acf6,_0x39be77)=>(_0x214eb2,_0x18c445)=>_0x39be77(_0x214eb2,_0x18c445,_0x96acf6);let g=class extends _0x2c471d{constructor(_0x15a458,_0x597fbd){const _0x286543=_0x3125a2;super(),this[_0x286543(0x1ba)]=_0x15a458,this['_threadCommentDataSource']=_0x597fbd,this[_0x286543(0x196)]();}[_0x3125a2(0x196)](){const _0x50f769=_0x3125a2;this['_threadCommentDataSourceService'][_0x50f769(0x1a6)]=this[_0x50f769(0x1b9)],this[_0x50f769(0x1ba)][_0x50f769(0x184)]=!0x1;}};g=te([N(0x0,_0x1af45c),N(0x1,_0x5223ea(f))],g);var se=Object[_0x3125a2(0x1c5)],oe=Object[_0x3125a2(0x1ce)],ne=(_0x266f15,_0x503b35,_0x1e4829)=>_0x503b35 in _0x266f15?se(_0x266f15,_0x503b35,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e4829}):_0x266f15[_0x503b35]=_0x1e4829,ie=(_0x56f65e,_0x129f98,_0x146749,_0x2413be)=>{const _0x2d529f=_0x3125a2;for(var _0x38eb4a=_0x2413be>0x1?void 0x0:_0x2413be?oe(_0x129f98,_0x146749):_0x129f98,_0x3d30d3=_0x56f65e[_0x2d529f(0x1a1)]-0x1,_0x54434a;_0x3d30d3>=0x0;_0x3d30d3--)(_0x54434a=_0x56f65e[_0x3d30d3])&&(_0x38eb4a=_0x54434a(_0x38eb4a)||_0x38eb4a);return _0x38eb4a;},w=(_0x4fb7e9,_0x58466c)=>(_0x1e8905,_0x2fd2c6)=>_0x58466c(_0x1e8905,_0x2fd2c6,_0x4fb7e9),$=(_0x22094a,_0x250a00,_0x46b1e7)=>ne(_0x22094a,typeof _0x250a00!='symbol'?_0x250a00+'':_0x250a00,_0x46b1e7);let b=class extends _0x42ff71{constructor(_0x58ce75=M,_0x22ad1f,_0x293b86){const _0xed3bcc=_0x3125a2;super(),this[_0xed3bcc(0x1e9)]=_0x58ce75,this[_0xed3bcc(0x1c0)]=_0x22ad1f,this[_0xed3bcc(0x198)]=_0x293b86;const {..._0x3d5040}=_0x497adb({},M,this['_config']);this['_configService'][_0xed3bcc(0x1c1)](z,_0x3d5040);}['onStarting'](){const _0x11568e=_0x3125a2;[[f],[g],[S]][_0x11568e(0x185)](_0x2bf256=>{const _0x465e08=_0x11568e;this['_injector'][_0x465e08(0x1be)](_0x2bf256);});}[_0x3125a2(0x183)](){const _0x4da96d=_0x3125a2;this[_0x4da96d(0x1c0)][_0x4da96d(0x187)](g),this[_0x4da96d(0x1c0)][_0x4da96d(0x187)](S);}};$(b,_0x3125a2(0x1de),W),$(b,'type',_0x4f26b0[_0x3125a2(0x1ca)]),b=ie([_0x3f95ef(_0x479164,_0x12a624,_0x2e3ca3),w(0x1,_0x5223ea(_0x579925)),w(0x2,_0x5a7661)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x95d9de=_0x1c32;(function(_0x2ecced,_0x5ddbec){const _0x3a9cf5=_0x1c32,_0x4a8330=_0x2ecced();while(!![]){try{const _0x292935=-parseInt(_0x3a9cf5(0x1e1))/0x1*(parseInt(_0x3a9cf5(0x1c8))/0x2)+parseInt(_0x3a9cf5(0x1ce))/0x3+parseInt(_0x3a9cf5(0x1dd))/0x4+parseInt(_0x3a9cf5(0x183))/0x5+-parseInt(_0x3a9cf5(0x1b2))/0x6*(-parseInt(_0x3a9cf5(0x1ab))/0x7)+-parseInt(_0x3a9cf5(0x1de))/0x8+-parseInt(_0x3a9cf5(0x1cb))/0x9;if(_0x292935===_0x5ddbec)break;else _0x4a8330['push'](_0x4a8330['shift']());}catch(_0x5c9a84){_0x4a8330['push'](_0x4a8330['shift']());}}}(_0x333b,0x46fca));import{CommentService as _0x2f9599,CollaborationSessionService as _0x4d35cb,UniverCollaborationClientPlugin as _0xcabb8f}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x3ec5ef}from'@univerjs-pro/license';import{dayjs as _0x529ead,UserManagerService as _0x1afcdc,Inject as _0x258925,Injector as _0x25506,Disposable as _0x330b82,CustomRangeType as _0x5f028a,UniverInstanceType as _0x1df290,DependentOn as _0x4451f2,IConfigService as _0x1fb7d2,Plugin as _0x44d5c8,merge as _0x52b569}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x50fa42}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x1ea713,IThreadCommentDataSourceService as _0x2393b8}from'@univerjs/thread-comment';import{bufferTime as _0x485e87}from'rxjs';import{HTTPService as _0x2ac54a}from'@univerjs/network';const W=_0x95d9de(0x1e4);var I=(_0xee1739=>(_0xee1739[_0xee1739[_0x95d9de(0x1e2)]=0x0]=_0x95d9de(0x1e2),_0xee1739[_0xee1739['Solved']=0x1]=_0x95d9de(0x191),_0xee1739[_0xee1739[_0x95d9de(0x188)]=-0x1]=_0x95d9de(0x188),_0xee1739))(I||{}),v=(_0x3d7dc9=>(_0x3d7dc9[_0x3d7dc9[_0x95d9de(0x1b9)]=0x0]='Unknown',_0x3d7dc9[_0x3d7dc9[_0x95d9de(0x1d6)]=0x1]='Add',_0x3d7dc9[_0x3d7dc9[_0x95d9de(0x1b0)]=0x2]=_0x95d9de(0x1b0),_0x3d7dc9[_0x3d7dc9[_0x95d9de(0x1c4)]=0x3]=_0x95d9de(0x1c4),_0x3d7dc9[_0x3d7dc9['Delete']=0x4]=_0x95d9de(0x1dc),_0x3d7dc9[_0x3d7dc9[_0x95d9de(0x1be)]=0x5]=_0x95d9de(0x1be),_0x3d7dc9[_0x3d7dc9[_0x95d9de(0x188)]=-0x1]=_0x95d9de(0x188),_0x3d7dc9))(v||{});const D=_0x377d78=>_0x529ead(new Date(+_0x377d78))[_0x95d9de(0x1a4)](_0x95d9de(0x184)),B=async(_0x170106,_0x1b0a68)=>{const _0x5c6146=_0x95d9de,_0x450244=_0x170106['get'](_0x1afcdc),_0x7fb05=_0x170106[_0x5c6146(0x1e3)](_0x2ac54a);_0x1b0a68[_0x5c6146(0x1da)](_0x4d7f0d=>{const _0x3b0131=_0x5c6146;_0x450244[_0x3b0131(0x197)](_0x4d7f0d)&&_0x1b0a68[_0x3b0131(0x1a0)](_0x4d7f0d);}),_0x1b0a68[_0x5c6146(0x1d1)]&&(await _0x7fb05[_0x5c6146(0x1e3)](_0x5c6146(0x1d2),{'params':{'userIDs':[..._0x1b0a68]}}))[_0x5c6146(0x1d9)][_0x5c6146(0x186)]['forEach'](_0x29e612=>{const _0x3474da=_0x5c6146;_0x29e612&&_0x450244[_0x3474da(0x199)](_0x29e612);});};var K=Object[_0x95d9de(0x18c)],V=(_0x25819b,_0x60c6a5,_0x26f857,_0x101f5e)=>{const _0x49790b=_0x95d9de;for(var _0x44f5a6=_0x101f5e>0x1?void 0x0:_0x101f5e?K(_0x60c6a5,_0x26f857):_0x60c6a5,_0x406e8a=_0x25819b[_0x49790b(0x1d8)]-0x1,_0x2900e5;_0x406e8a>=0x0;_0x406e8a--)(_0x2900e5=_0x25819b[_0x406e8a])&&(_0x44f5a6=_0x2900e5(_0x44f5a6)||_0x44f5a6);return _0x44f5a6;},p=(_0x5dedbe,_0x538044)=>(_0x5586bd,_0x2c490c)=>_0x538044(_0x5586bd,_0x2c490c,_0x5dedbe);let S=class extends _0x330b82{constructor(_0x2caa51,_0x29df54,_0x148bca,_0x52d05a){const _0x351aac=_0x95d9de;super(),this[_0x351aac(0x19a)]=_0x2caa51,this[_0x351aac(0x1ba)]=_0x29df54,this[_0x351aac(0x189)]=_0x148bca,this['_injector']=_0x52d05a,this[_0x351aac(0x1c3)](),this['_initUserSync']();}[_0x95d9de(0x1ca)](){const _0x3caeb8=_0x95d9de;this[_0x3caeb8(0x1cc)](this[_0x3caeb8(0x1ba)]['commentUpdate$'][_0x3caeb8(0x1bf)](_0x485e87(0x10))['subscribe'](_0x3954fb=>{const _0x5029a3=_0x3caeb8,_0x1222cf=new Set();_0x3954fb[_0x5029a3(0x1da)](_0x11cf51=>{const _0x8db6dd=_0x5029a3;switch(_0x11cf51[_0x8db6dd(0x19e)]){case _0x8db6dd(0x1c5):{const _0x44e88e=_0x11cf51[_0x8db6dd(0x1bb)][_0x8db6dd(0x19f)];_0x1222cf['add'](_0x44e88e);break;}}}),B(this[_0x5029a3(0x1a9)],_0x1222cf);}));}[_0x95d9de(0x1c3)](){const _0x21877c=_0x95d9de;this[_0x21877c(0x1cc)](this[_0x21877c(0x19a)][_0x21877c(0x1c1)][_0x21877c(0x1a6)](async _0x4b7ae1=>{const _0x56a657=_0x21877c;var _0x21ad75,_0x3547f0,_0x9642aa,_0x2dbcbc;const _0xf8a276=(_0x21ad75=this[_0x56a657(0x1ba)][_0x56a657(0x1d4)](_0x4b7ae1['unitId'])[_0x56a657(0x1b8)](_0x41af15=>_0x41af15[_0x56a657(0x1d7)]===_0x4b7ae1[_0x56a657(0x1d7)]))==null?void 0x0:_0x21ad75[_0x56a657(0x18a)];if(!_0xf8a276)return;const {unitId:_0x1feec5,subUnitId:_0xc849c2}=_0xf8a276;switch(_0x4b7ae1[_0x56a657(0x1e0)]&&this[_0x56a657(0x189)]['addUser'](_0x4b7ae1['user']),_0x4b7ae1[_0x56a657(0x19e)]){case v[_0x56a657(0x1d6)]:break;case v[_0x56a657(0x1b0)]:{this[_0x56a657(0x1ba)][_0x56a657(0x19c)](_0x1feec5,_0xc849c2,{'unitId':_0x1feec5,'subUnitId':_0xc849c2,'ref':'','id':_0x4b7ae1[_0x56a657(0x1bd)],'dT':D(+_0x4b7ae1[_0x56a657(0x1c2)]),'threadId':_0x4b7ae1[_0x56a657(0x1d7)],'personId':(_0x9642aa=(_0x3547f0=_0x4b7ae1['user'])==null?void 0x0:_0x3547f0['userID'])!=null?_0x9642aa:_0x4b7ae1['userId'],'text':JSON[_0x56a657(0x18f)](_0x4b7ae1[_0x56a657(0x1a2)]),'parentId':_0xf8a276['id']});break;}case v[_0x56a657(0x1dc)]:{const _0x1a4b56=this['_threadCommentModel']['getComment'](_0x1feec5,_0xc849c2,_0x4b7ae1['replyId']);_0x1a4b56&&_0x1a4b56['parentId']&&this[_0x56a657(0x1ba)][_0x56a657(0x1ac)](_0x1feec5,_0xc849c2,_0x4b7ae1['replyId']);break;}case v[_0x56a657(0x1c4)]:{this['_threadCommentModel'][_0x56a657(0x18e)](_0x1feec5,_0xc849c2,{'commentId':_0x4b7ae1['replyId'],'text':JSON[_0x56a657(0x18f)](_0x4b7ae1['content'])});break;}case v[_0x56a657(0x1be)]:{const _0x1a711c=(_0x2dbcbc=this[_0x56a657(0x1ba)][_0x56a657(0x1d4)](_0x4b7ae1[_0x56a657(0x18d)])[_0x56a657(0x1b8)](_0xccfb25=>_0xccfb25[_0x56a657(0x1d7)]===_0x4b7ae1[_0x56a657(0x1d7)]))==null?void 0x0:_0x2dbcbc['root'];_0x1a711c&&this['_threadCommentModel']['resolveComment'](_0x1feec5,_0xc849c2,_0x1a711c['id'],_0x4b7ae1[_0x56a657(0x193)]===I[_0x56a657(0x191)]);break;}}}));}};S=V([p(0x0,_0x258925(_0x2f9599)),p(0x1,_0x258925(_0x1ea713)),p(0x2,_0x258925(_0x1afcdc)),p(0x3,_0x258925(_0x25506))],S);function _0x1c32(_0x48f946,_0x3ebb40){const _0x333b6b=_0x333b();return _0x1c32=function(_0x1c32cc,_0x560aff){_0x1c32cc=_0x1c32cc-0x182;let _0x75e297=_0x333b6b[_0x1c32cc];return _0x75e297;},_0x1c32(_0x48f946,_0x3ebb40);}const z=_0x95d9de(0x1a7),M={};var k=Object[_0x95d9de(0x18c)],Q=(_0x344fbe,_0x2c9034,_0x1ad6c0,_0x38470c)=>{const _0x26f6e1=_0x95d9de;for(var _0x26e490=_0x38470c>0x1?void 0x0:_0x38470c?k(_0x2c9034,_0x1ad6c0):_0x2c9034,_0x26de24=_0x344fbe[_0x26f6e1(0x1d8)]-0x1,_0x5d9862;_0x26de24>=0x0;_0x26de24--)(_0x5d9862=_0x344fbe[_0x26de24])&&(_0x26e490=_0x5d9862(_0x26e490)||_0x26e490);return _0x26e490;},_=(_0x321c30,_0x1e4f65)=>(_0x2771e5,_0x1042a1)=>_0x1e4f65(_0x2771e5,_0x1042a1,_0x321c30);function X(_0x13a245,_0x46398d){const _0x23e3de=_0x95d9de,_0x5db1c7=_0x13a245['replies'][0x0];return{..._0x46398d,'id':_0x5db1c7[_0x23e3de(0x1bd)],'resolved':_0x13a245[_0x23e3de(0x193)]===0x1,'dT':D(_0x5db1c7[_0x23e3de(0x1c2)]),'personId':_0x5db1c7[_0x23e3de(0x1b1)],'threadId':_0x5db1c7[_0x23e3de(0x1d7)]};}function ee(_0x40d52c,_0x501e58,_0x97f2c8){const _0x58bdf3=_0x95d9de;var _0x1171fc,_0xb58c7e;if(((_0xb58c7e=(_0x1171fc=_0x40d52c==null?void 0x0:_0x40d52c[_0x58bdf3(0x187)])==null?void 0x0:_0x1171fc['length'])!=null?_0xb58c7e:0x0)>0x0){const _0x25d020=(_0x279e90,_0x5e5073)=>({'id':_0x279e90[_0x58bdf3(0x1bd)],'threadId':_0x279e90['threadId'],'dT':D(_0x279e90[_0x58bdf3(0x1c2)]),'personId':_0x279e90[_0x58bdf3(0x1b1)],'resolved':_0x40d52c[_0x58bdf3(0x193)]===I['Solved'],'unitId':_0x501e58,'subUnitId':_0x97f2c8,'text':JSON[_0x58bdf3(0x18f)](_0x279e90[_0x58bdf3(0x1a2)]),'parentId':_0x5e5073}),_0x5ca135=_0x25d020(_0x40d52c[_0x58bdf3(0x187)][0x0]);return{..._0x5ca135,'children':_0x40d52c['replies']['slice'](0x1)[_0x58bdf3(0x1c0)](_0x45bfd7=>_0x25d020(_0x45bfd7,_0x5ca135['id']))};}return null;}let f=class{constructor(_0x55b7e,_0x305587,_0x16d345,_0x22a35b){const _0x398615=_0x95d9de;this[_0x398615(0x1d5)]=_0x55b7e,this[_0x398615(0x189)]=_0x305587,this[_0x398615(0x1b4)]=_0x16d345,this[_0x398615(0x1a9)]=_0x22a35b;}async[_0x95d9de(0x19c)](_0x1e09e2){const _0x42e5c0=_0x95d9de;var _0x39b5a8,_0x3ad184;const {parentId:_0x254938,unitId:_0x14a019,text:_0x5bc68c,threadId:_0x4f21ed}=_0x1e09e2,_0x58a6bb=(_0x3ad184=(_0x39b5a8=_0x5bc68c[_0x42e5c0(0x1df)])==null?void 0x0:_0x39b5a8['filter'](_0x27c79e=>_0x27c79e[_0x42e5c0(0x1db)]===_0x5f028a[_0x42e5c0(0x1bc)])['map'](_0x304a21=>_0x304a21['rangeId']))!=null?_0x3ad184:[],_0x559b67=JSON[_0x42e5c0(0x1b6)](_0x5bc68c),_0x2aea5c=(await this['_sessionService'][_0x42e5c0(0x1a1)](_0x14a019))[_0x42e5c0(0x185)]();if(_0x254938){const _0x39d2cc={'memberId':_0x2aea5c,'unitId':_0x14a019,'content':_0x559b67,'mention':_0x58a6bb,'threadId':_0x4f21ed},_0x44dfbe=(await this[_0x42e5c0(0x1d5)][_0x42e5c0(0x19d)]('/universer-api/comment/unit/'+_0x14a019+'/reply',{'body':_0x39d2cc}))[_0x42e5c0(0x1d9)]['reply'];return{..._0x1e09e2,'id':_0x44dfbe[_0x42e5c0(0x1bd)],'dT':_0x529ead(+_0x44dfbe[_0x42e5c0(0x1c2)])['format'](_0x42e5c0(0x184)),'personId':_0x44dfbe[_0x42e5c0(0x1b1)]};}else{const _0x4eab45={'memberId':_0x2aea5c,'unitId':_0x14a019,'content':_0x559b67,'mention':_0x58a6bb},_0x31d443=await this[_0x42e5c0(0x1d5)][_0x42e5c0(0x19d)]('/universer-api/comment/unit/'+_0x14a019+_0x42e5c0(0x1ad),{'body':_0x4eab45});return X(_0x31d443[_0x42e5c0(0x1d9)][_0x42e5c0(0x194)],_0x1e09e2);}}async[_0x95d9de(0x18e)](_0x2c0cba){const _0x3e6efa=_0x95d9de;var _0x4592b8,_0x12e2aa;const {text:_0x154609,unitId:_0x2f29c9}=_0x2c0cba,_0x3df33f=(_0x12e2aa=(_0x4592b8=_0x154609[_0x3e6efa(0x1df)])==null?void 0x0:_0x4592b8[_0x3e6efa(0x1a8)](_0x569eef=>_0x569eef[_0x3e6efa(0x1db)]===_0x5f028a['COMMENT'])[_0x3e6efa(0x1c0)](_0x18fc36=>_0x18fc36[_0x3e6efa(0x1d0)]))!=null?_0x12e2aa:[],_0x4ded90=JSON['stringify'](_0x154609),_0x15b3f0=_0x2c0cba[_0x3e6efa(0x1d7)],_0x3e583a=_0x2c0cba['id'],_0x24ac14={'memberId':(await this[_0x3e6efa(0x1b4)][_0x3e6efa(0x1a1)](_0x2f29c9))[_0x3e6efa(0x185)](),'unitId':_0x2f29c9,'threadId':_0x15b3f0,'mention':_0x3df33f,'content':_0x4ded90,'replyId':_0x3e583a},_0x4b1089=await this[_0x3e6efa(0x1d5)][_0x3e6efa(0x19d)]('/universer-api/comment/unit/'+_0x2f29c9+'/edit',{'body':_0x24ac14});return!_0x4b1089[_0x3e6efa(0x1d9)][_0x3e6efa(0x1af)]||_0x4b1089[_0x3e6efa(0x1d9)][_0x3e6efa(0x1af)][_0x3e6efa(0x1cd)]===0x1;}async[_0x95d9de(0x19b)](_0x29000c){const _0x100db8=_0x95d9de,{unitId:_0x5b13e9}=_0x29000c,_0x4578f2=_0x29000c['threadId'],_0xcbbc5a={'memberId':this[_0x100db8(0x189)]['getCurrentUser']()[_0x100db8(0x1aa)],'unitId':_0x5b13e9,'threadId':_0x4578f2,'solved':_0x29000c[_0x100db8(0x1cf)]?I[_0x100db8(0x191)]:I[_0x100db8(0x1e2)]},_0x11e77a=await this['_httpService']['post'](_0x100db8(0x1b5)+_0x5b13e9+'/solved',{'body':_0xcbbc5a});return!_0x11e77a[_0x100db8(0x1d9)][_0x100db8(0x1af)]||_0x11e77a[_0x100db8(0x1d9)]['error'][_0x100db8(0x1cd)]===0x1;}async['deleteComment'](_0x3194c7,_0x420727,_0xff3cdc,_0x5601c3){const _0x5084b3=_0x95d9de,_0x22c81a={'memberId':(await this['_sessionService'][_0x5084b3(0x1a1)](_0x3194c7))[_0x5084b3(0x185)](),'threadId':_0xff3cdc,'replyId':_0x5601c3,'unitId':_0x3194c7},_0x1073e5=await this['_httpService']['post'](_0x5084b3(0x1b5)+_0x3194c7+_0x5084b3(0x1c6),{'body':_0x22c81a});return!_0x1073e5[_0x5084b3(0x1d9)][_0x5084b3(0x1af)]||_0x1073e5[_0x5084b3(0x1d9)][_0x5084b3(0x1af)][_0x5084b3(0x1cd)]===0x1;}async[_0x95d9de(0x182)](_0x47a2ea,_0x1ecc1f,_0x146d0d){const _0x107554=_0x95d9de,_0x43ab55={'unitId':_0x47a2ea,'threadId':_0x146d0d},_0x8f0383=await this[_0x107554(0x1d5)][_0x107554(0x19d)]('/universer-api/comment/unit/'+_0x47a2ea+_0x107554(0x192),{'body':_0x43ab55}),_0x27adc4=_0x146d0d[_0x107554(0x1c0)](_0x116220=>ee(_0x8f0383[_0x107554(0x1d9)][_0x107554(0x1b7)][_0x116220],_0x47a2ea,_0x1ecc1f))[_0x107554(0x1a8)](Boolean);return Object[_0x107554(0x1c9)](_0x8f0383[_0x107554(0x1d9)][_0x107554(0x186)])[_0x107554(0x1da)](_0xf85bac=>{const _0x8a3c29=_0x107554;this['_userService'][_0x8a3c29(0x199)](_0xf85bac);}),_0x27adc4;}[_0x95d9de(0x1b3)](_0x3eaed9){const _0x414428=_0x95d9de;return{'id':_0x3eaed9['id'],'threadId':_0x3eaed9[_0x414428(0x1d7)],'ref':_0x3eaed9[_0x414428(0x1d3)]};}};f=Q([_(0x0,_0x258925(_0x2ac54a)),_(0x1,_0x258925(_0x1afcdc)),_(0x2,_0x258925(_0x4d35cb)),_(0x3,_0x258925(_0x25506))],f);var re=Object[_0x95d9de(0x18c)],te=(_0x13fd64,_0x68251b,_0x418833,_0x50bd3e)=>{const _0x550363=_0x95d9de;for(var _0x4c3501=_0x50bd3e>0x1?void 0x0:_0x50bd3e?re(_0x68251b,_0x418833):_0x68251b,_0x52e6d6=_0x13fd64[_0x550363(0x1d8)]-0x1,_0x2b6669;_0x52e6d6>=0x0;_0x52e6d6--)(_0x2b6669=_0x13fd64[_0x52e6d6])&&(_0x4c3501=_0x2b6669(_0x4c3501)||_0x4c3501);return _0x4c3501;},N=(_0x131cd7,_0x3c97e5)=>(_0x318f43,_0x50212d)=>_0x3c97e5(_0x318f43,_0x50212d,_0x131cd7);let g=class extends _0x330b82{constructor(_0x255042,_0x563b24){const _0x595f97=_0x95d9de;super(),this[_0x595f97(0x198)]=_0x255042,this['_threadCommentDataSource']=_0x563b24,this['_initDataSource']();}['_initDataSource'](){const _0x197c3b=_0x95d9de;this[_0x197c3b(0x198)]['dataSource']=this[_0x197c3b(0x190)],this[_0x197c3b(0x198)][_0x197c3b(0x1c7)]=!0x1;}};g=te([N(0x0,_0x2393b8),N(0x1,_0x258925(f))],g);var se=Object[_0x95d9de(0x196)],oe=Object[_0x95d9de(0x18c)],ne=(_0x5a74d7,_0x129c4f,_0x173895)=>_0x129c4f in _0x5a74d7?se(_0x5a74d7,_0x129c4f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x173895}):_0x5a74d7[_0x129c4f]=_0x173895,ie=(_0x45d93b,_0x44bf7c,_0x185c30,_0x4f8e70)=>{const _0x10971b=_0x95d9de;for(var _0x4c1e1a=_0x4f8e70>0x1?void 0x0:_0x4f8e70?oe(_0x44bf7c,_0x185c30):_0x44bf7c,_0x4e017a=_0x45d93b[_0x10971b(0x1d8)]-0x1,_0x487e1f;_0x4e017a>=0x0;_0x4e017a--)(_0x487e1f=_0x45d93b[_0x4e017a])&&(_0x4c1e1a=_0x487e1f(_0x4c1e1a)||_0x4c1e1a);return _0x4c1e1a;},w=(_0x3afcc4,_0x25482e)=>(_0x1da82e,_0x2f287b)=>_0x25482e(_0x1da82e,_0x2f287b,_0x3afcc4),$=(_0x4cbbef,_0xdcc1cc,_0x79549e)=>ne(_0x4cbbef,typeof _0xdcc1cc!=_0x95d9de(0x1a3)?_0xdcc1cc+'':_0xdcc1cc,_0x79549e);let b=class extends _0x44d5c8{constructor(_0x3c0418=M,_0x2b5aec,_0x46a303){const _0x5de321=_0x95d9de;super(),this[_0x5de321(0x18b)]=_0x3c0418,this[_0x5de321(0x1a9)]=_0x2b5aec,this[_0x5de321(0x1ae)]=_0x46a303;const {..._0x288430}=_0x52b569({},M,this[_0x5de321(0x18b)]);this[_0x5de321(0x1ae)][_0x5de321(0x1a5)](z,_0x288430);}['onStarting'](){[[f],[g],[S]]['forEach'](_0x1af159=>{const _0x3f4350=_0x1c32;this[_0x3f4350(0x1a9)]['add'](_0x1af159);});}[_0x95d9de(0x195)](){const _0xdadbda=_0x95d9de;this[_0xdadbda(0x1a9)]['get'](g),this[_0xdadbda(0x1a9)]['get'](S);}};function _0x333b(){const _0x5a0f08=['resolved','rangeId','size','/universer-api/user/list','ref','getUnit','_httpService','Add','threadId','length','body','forEach','rangeType','Delete','2239332QiBunA','2327968DyBTtg','customRanges','user','15BIaASo','OpenOrReOpen','get','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','listComments','1147325XDsuRv','YYYY/MM/DD\x20HH:mm','getMemberID','users','replies','UNRECOGNIZED','_userService','root','_config','getOwnPropertyDescriptor','unitId','updateComment','parse','_threadCommentDataSource','Solved','/list','solved','comment','onReady','defineProperty','getUser','_threadCommentDataSourceService','addUser','_commentService','resolveComment','addComment','post','type','personId','delete','requireSession','content','symbol','format','setConfig','subscribe','thread-comment-data-source.config','filter','_injector','userID','331912EjIKUr','deleteComment','/add','_configService','error','Reply','userId','6sKxywj','saveCommentToSnapshot','_sessionService','/universer-api/comment/unit/','stringify','comments','find','Unknown','_threadCommentModel','payload','COMMENT','replyId','Solve','pipe','map','commentUpdate$','createTimestamp','_init','Edit','add','/delete','syncUpdateMutationToColla','32196xjZQmn','values','_initUserSync','1825191RkEjSN','disposeWithMe','code','567939HchzQT'];_0x333b=function(){return _0x5a0f08;};return _0x333b();}$(b,'pluginName',W),$(b,_0x95d9de(0x19e),_0x1df290['UNIVER_UNKNOWN']),b=ie([_0x4451f2(_0x50fa42,_0xcabb8f,_0x3ec5ef),w(0x1,_0x258925(_0x25506)),w(0x2,_0x1fb7d2)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
|
1
|
+
const _0x3125a2=_0x44fb;(function(_0x41e1e5,_0xe00b07){const _0x1c28cb=_0x44fb,_0x39dbf5=_0x41e1e5();while(!![]){try{const _0x17feb2=parseInt(_0x1c28cb(0x18f))/0x1*(-parseInt(_0x1c28cb(0x199))/0x2)+parseInt(_0x1c28cb(0x1a9))/0x3+-parseInt(_0x1c28cb(0x1a5))/0x4+-parseInt(_0x1c28cb(0x1d2))/0x5+-parseInt(_0x1c28cb(0x1a8))/0x6*(-parseInt(_0x1c28cb(0x1b1))/0x7)+-parseInt(_0x1c28cb(0x1d1))/0x8*(-parseInt(_0x1c28cb(0x1b7))/0x9)+parseInt(_0x1c28cb(0x1c9))/0xa*(parseInt(_0x1c28cb(0x1a2))/0xb);if(_0x17feb2===_0xe00b07)break;else _0x39dbf5['push'](_0x39dbf5['shift']());}catch(_0x24c704){_0x39dbf5['push'](_0x39dbf5['shift']());}}}(_0x2427,0xd6d34));import{CommentService as _0x28c565,CollaborationSessionService as _0x3cf7e3,UniverCollaborationClientPlugin as _0x12a624}from'@univerjs-pro/collaboration-client';function _0x2427(){const _0x2925b9=['payload','format','8dncZuI','1515075ShBbBd','_userService','parse','getMemberID','solved','find','resolveComment','unitId','Delete','delete','post','_commentService','pluginName','getUnit','UNRECOGNIZED','/add','Solve','_httpService','/universer-api/user/list','size','resolved','userId','root','_config','rangeType','Solved','onReady','syncUpdateMutationToColla','forEach','saveCommentToSnapshot','get','YYYY/MM/DD\x20HH:mm','comments','Add','OpenOrReOpen','subscribe','personId','requireSession','9bcyeDc','/universer-api/comment/unit/','userID','getComment','threadId','slice','Edit','_initDataSource','replies','_configService','356744Wubiae','body','commentUpdate$','Reply','rangeId','code','/delete','_sessionService','length','22bNUBak','stringify','customRanges','4074688hpXWEt','dataSource','reply','194478OnvweG','4268274oFerap','error','/edit','createTimestamp','pipe','/reply','deleteComment','parentId','98BfMYpU','_init','Unknown','replyId','_threadCommentModel','_initUserSync','11508309wjDKyO','addUser','_threadCommentDataSource','_threadCommentDataSourceService','COMMENT','getUser','users','add','disposeWithMe','_injector','setConfig','addComment','content','map','defineProperty','comment','user','ref','3258590oXsteK','UNIVER_UNKNOWN','updateComment','type','filter','getOwnPropertyDescriptor'];_0x2427=function(){return _0x2925b9;};return _0x2427();}function _0x44fb(_0x3ffcd7,_0x2b8992){const _0x24278a=_0x2427();return _0x44fb=function(_0x44fb18,_0x8e07fd){_0x44fb18=_0x44fb18-0x183;let _0x18e74e=_0x24278a[_0x44fb18];return _0x18e74e;},_0x44fb(_0x3ffcd7,_0x2b8992);}import{UniverLicensePlugin as _0x2e3ca3}from'@univerjs-pro/license';import{dayjs as _0x466984,UserManagerService as _0x877d29,Inject as _0x5223ea,Injector as _0x579925,Disposable as _0x2c471d,CustomRangeType as _0x1659d6,UniverInstanceType as _0x4f26b0,DependentOn as _0x3f95ef,IConfigService as _0x5a7661,Plugin as _0x42ff71,merge as _0x497adb}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x479164}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x2de7ff,IThreadCommentDataSourceService as _0x1af45c}from'@univerjs/thread-comment';import{bufferTime as _0x5a8fb7}from'rxjs';import{HTTPService as _0x3180ef}from'@univerjs/network';const W='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var I=(_0xe3f0c8=>(_0xe3f0c8[_0xe3f0c8[_0x3125a2(0x18b)]=0x0]='OpenOrReOpen',_0xe3f0c8[_0xe3f0c8[_0x3125a2(0x1eb)]=0x1]=_0x3125a2(0x1eb),_0xe3f0c8[_0xe3f0c8['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0xe3f0c8))(I||{}),v=(_0x4c5f55=>(_0x4c5f55[_0x4c5f55[_0x3125a2(0x1b3)]=0x0]=_0x3125a2(0x1b3),_0x4c5f55[_0x4c5f55['Add']=0x1]=_0x3125a2(0x18a),_0x4c5f55[_0x4c5f55[_0x3125a2(0x19c)]=0x2]=_0x3125a2(0x19c),_0x4c5f55[_0x4c5f55[_0x3125a2(0x195)]=0x3]=_0x3125a2(0x195),_0x4c5f55[_0x4c5f55[_0x3125a2(0x1da)]=0x4]=_0x3125a2(0x1da),_0x4c5f55[_0x4c5f55['Solve']=0x5]='Solve',_0x4c5f55[_0x4c5f55[_0x3125a2(0x1e0)]=-0x1]='UNRECOGNIZED',_0x4c5f55))(v||{});const D=_0x2b313a=>_0x466984(new Date(+_0x2b313a))[_0x3125a2(0x1d0)](_0x3125a2(0x188)),B=async(_0x3202d6,_0x270c55)=>{const _0x51211b=_0x3125a2,_0x1628b6=_0x3202d6[_0x51211b(0x187)](_0x877d29),_0x519477=_0x3202d6[_0x51211b(0x187)](_0x3180ef);_0x270c55[_0x51211b(0x185)](_0x42b6d9=>{const _0x4213e7=_0x51211b;_0x1628b6[_0x4213e7(0x1bc)](_0x42b6d9)&&_0x270c55[_0x4213e7(0x1db)](_0x42b6d9);}),_0x270c55[_0x51211b(0x1e5)]&&(await _0x519477['get'](_0x51211b(0x1e4),{'params':{'userIDs':[..._0x270c55]}}))[_0x51211b(0x19a)][_0x51211b(0x1bd)][_0x51211b(0x185)](_0x837705=>{const _0x2f9e68=_0x51211b;_0x837705&&_0x1628b6[_0x2f9e68(0x1b8)](_0x837705);});};var K=Object[_0x3125a2(0x1ce)],V=(_0x3a9b9d,_0x397d31,_0x59d0e8,_0x582354)=>{for(var _0x136155=_0x582354>0x1?void 0x0:_0x582354?K(_0x397d31,_0x59d0e8):_0x397d31,_0x11ff5a=_0x3a9b9d['length']-0x1,_0x5c633b;_0x11ff5a>=0x0;_0x11ff5a--)(_0x5c633b=_0x3a9b9d[_0x11ff5a])&&(_0x136155=_0x5c633b(_0x136155)||_0x136155);return _0x136155;},p=(_0x48c30e,_0x3f79eb)=>(_0x2d6beb,_0x41d856)=>_0x3f79eb(_0x2d6beb,_0x41d856,_0x48c30e);let S=class extends _0x2c471d{constructor(_0x2aa13d,_0x1c09b5,_0x3581e4,_0x53cd1c){const _0x396faf=_0x3125a2;super(),this['_commentService']=_0x2aa13d,this[_0x396faf(0x1b5)]=_0x1c09b5,this[_0x396faf(0x1d3)]=_0x3581e4,this[_0x396faf(0x1c0)]=_0x53cd1c,this['_init'](),this[_0x396faf(0x1b6)]();}[_0x3125a2(0x1b6)](){const _0x2ceda4=_0x3125a2;this[_0x2ceda4(0x1bf)](this[_0x2ceda4(0x1b5)]['commentUpdate$'][_0x2ceda4(0x1ad)](_0x5a8fb7(0x10))[_0x2ceda4(0x18c)](_0x424028=>{const _0x256207=_0x2ceda4,_0x5cf6ca=new Set();_0x424028['forEach'](_0x2c3930=>{const _0x4fb22f=_0x44fb;switch(_0x2c3930[_0x4fb22f(0x1cc)]){case _0x4fb22f(0x1be):{const _0x464d2d=_0x2c3930[_0x4fb22f(0x1cf)][_0x4fb22f(0x18d)];_0x5cf6ca[_0x4fb22f(0x1be)](_0x464d2d);break;}}}),B(this[_0x256207(0x1c0)],_0x5cf6ca);}));}[_0x3125a2(0x1b2)](){const _0x1bcace=_0x3125a2;this[_0x1bcace(0x1bf)](this[_0x1bcace(0x1dd)][_0x1bcace(0x19b)][_0x1bcace(0x18c)](async _0x431dcc=>{const _0x48128a=_0x1bcace;var _0x44c3ab,_0x26b813,_0x2dc8b6,_0xfdc3bc;const _0x3829b4=(_0x44c3ab=this[_0x48128a(0x1b5)][_0x48128a(0x1df)](_0x431dcc[_0x48128a(0x1d9)])['find'](_0x1b27dc=>_0x1b27dc[_0x48128a(0x193)]===_0x431dcc[_0x48128a(0x193)]))==null?void 0x0:_0x44c3ab[_0x48128a(0x1e8)];if(!_0x3829b4)return;const {unitId:_0x5101e9,subUnitId:_0x441c03}=_0x3829b4;switch(_0x431dcc[_0x48128a(0x1c7)]&&this[_0x48128a(0x1d3)]['addUser'](_0x431dcc[_0x48128a(0x1c7)]),_0x431dcc[_0x48128a(0x1cc)]){case v[_0x48128a(0x18a)]:break;case v[_0x48128a(0x19c)]:{this[_0x48128a(0x1b5)][_0x48128a(0x1c2)](_0x5101e9,_0x441c03,{'unitId':_0x5101e9,'subUnitId':_0x441c03,'ref':'','id':_0x431dcc['replyId'],'dT':D(+_0x431dcc[_0x48128a(0x1ac)]),'threadId':_0x431dcc[_0x48128a(0x193)],'personId':(_0x2dc8b6=(_0x26b813=_0x431dcc[_0x48128a(0x1c7)])==null?void 0x0:_0x26b813[_0x48128a(0x191)])!=null?_0x2dc8b6:_0x431dcc[_0x48128a(0x1e7)],'text':JSON[_0x48128a(0x1d4)](_0x431dcc[_0x48128a(0x1c3)]),'parentId':_0x3829b4['id']});break;}case v[_0x48128a(0x1da)]:{const _0x9fbc9a=this[_0x48128a(0x1b5)][_0x48128a(0x192)](_0x5101e9,_0x441c03,_0x431dcc['replyId']);_0x9fbc9a&&_0x9fbc9a[_0x48128a(0x1b0)]&&this[_0x48128a(0x1b5)][_0x48128a(0x1af)](_0x5101e9,_0x441c03,_0x431dcc[_0x48128a(0x1b4)]);break;}case v['Edit']:{this[_0x48128a(0x1b5)]['updateComment'](_0x5101e9,_0x441c03,{'commentId':_0x431dcc[_0x48128a(0x1b4)],'text':JSON[_0x48128a(0x1d4)](_0x431dcc[_0x48128a(0x1c3)])});break;}case v[_0x48128a(0x1e2)]:{const _0x9c79a4=(_0xfdc3bc=this[_0x48128a(0x1b5)][_0x48128a(0x1df)](_0x431dcc[_0x48128a(0x1d9)])[_0x48128a(0x1d7)](_0x4ee24d=>_0x4ee24d[_0x48128a(0x193)]===_0x431dcc[_0x48128a(0x193)]))==null?void 0x0:_0xfdc3bc[_0x48128a(0x1e8)];_0x9c79a4&&this[_0x48128a(0x1b5)][_0x48128a(0x1d8)](_0x5101e9,_0x441c03,_0x9c79a4['id'],_0x431dcc[_0x48128a(0x1d6)]===I[_0x48128a(0x1eb)]);break;}}}));}};S=V([p(0x0,_0x5223ea(_0x28c565)),p(0x1,_0x5223ea(_0x2de7ff)),p(0x2,_0x5223ea(_0x877d29)),p(0x3,_0x5223ea(_0x579925))],S);const z='thread-comment-data-source.config',M={};var k=Object['getOwnPropertyDescriptor'],Q=(_0x339343,_0x5ca4ea,_0x515898,_0x5ad8d2)=>{const _0x562ed1=_0x3125a2;for(var _0x514722=_0x5ad8d2>0x1?void 0x0:_0x5ad8d2?k(_0x5ca4ea,_0x515898):_0x5ca4ea,_0x45b5b1=_0x339343[_0x562ed1(0x1a1)]-0x1,_0x5827c5;_0x45b5b1>=0x0;_0x45b5b1--)(_0x5827c5=_0x339343[_0x45b5b1])&&(_0x514722=_0x5827c5(_0x514722)||_0x514722);return _0x514722;},_=(_0x217570,_0x353cd8)=>(_0x34130b,_0x4bc6f3)=>_0x353cd8(_0x34130b,_0x4bc6f3,_0x217570);function X(_0x52403d,_0x146f9e){const _0x3523f6=_0x3125a2,_0x128473=_0x52403d[_0x3523f6(0x197)][0x0];return{..._0x146f9e,'id':_0x128473[_0x3523f6(0x1b4)],'resolved':_0x52403d[_0x3523f6(0x1d6)]===0x1,'dT':D(_0x128473[_0x3523f6(0x1ac)]),'personId':_0x128473[_0x3523f6(0x1e7)],'threadId':_0x128473[_0x3523f6(0x193)]};}function ee(_0x1db493,_0x512efd,_0xfd8a7f){const _0x2c1385=_0x3125a2;var _0x3b0383,_0xeaafa9;if(((_0xeaafa9=(_0x3b0383=_0x1db493==null?void 0x0:_0x1db493['replies'])==null?void 0x0:_0x3b0383[_0x2c1385(0x1a1)])!=null?_0xeaafa9:0x0)>0x0){const _0x28fc8a=(_0x3402db,_0x3712e2)=>({'id':_0x3402db[_0x2c1385(0x1b4)],'threadId':_0x3402db['threadId'],'dT':D(_0x3402db[_0x2c1385(0x1ac)]),'personId':_0x3402db[_0x2c1385(0x1e7)],'resolved':_0x1db493['solved']===I[_0x2c1385(0x1eb)],'unitId':_0x512efd,'subUnitId':_0xfd8a7f,'text':JSON[_0x2c1385(0x1d4)](_0x3402db['content']),'parentId':_0x3712e2}),_0x464864=_0x28fc8a(_0x1db493[_0x2c1385(0x197)][0x0]);return{..._0x464864,'children':_0x1db493[_0x2c1385(0x197)][_0x2c1385(0x194)](0x1)[_0x2c1385(0x1c4)](_0x443b83=>_0x28fc8a(_0x443b83,_0x464864['id']))};}return null;}let f=class{constructor(_0x5e7810,_0x244858,_0x16f12e,_0x4b3b62){const _0x85b0bf=_0x3125a2;this[_0x85b0bf(0x1e3)]=_0x5e7810,this[_0x85b0bf(0x1d3)]=_0x244858,this[_0x85b0bf(0x1a0)]=_0x16f12e,this[_0x85b0bf(0x1c0)]=_0x4b3b62;}async['addComment'](_0x3ee18f){const _0x1a78c9=_0x3125a2;var _0x133bf3,_0x3d7aa0;const {parentId:_0x5f38a5,unitId:_0x5cb725,text:_0x3a8071,threadId:_0x7bc1d3}=_0x3ee18f,_0x5b316b=(_0x3d7aa0=(_0x133bf3=_0x3a8071[_0x1a78c9(0x1a4)])==null?void 0x0:_0x133bf3[_0x1a78c9(0x1cd)](_0x4bd2d1=>_0x4bd2d1['rangeType']===_0x1659d6[_0x1a78c9(0x1bb)])[_0x1a78c9(0x1c4)](_0x1bb3bc=>_0x1bb3bc[_0x1a78c9(0x19d)]))!=null?_0x3d7aa0:[],_0x4b28c0=JSON[_0x1a78c9(0x1a3)](_0x3a8071),_0x33d650=(await this[_0x1a78c9(0x1a0)][_0x1a78c9(0x18e)](_0x5cb725))[_0x1a78c9(0x1d5)]();if(_0x5f38a5){const _0x2afe42={'memberId':_0x33d650,'unitId':_0x5cb725,'content':_0x4b28c0,'mention':_0x5b316b,'threadId':_0x7bc1d3},_0x1d8332=(await this[_0x1a78c9(0x1e3)][_0x1a78c9(0x1dc)](_0x1a78c9(0x190)+_0x5cb725+_0x1a78c9(0x1ae),{'body':_0x2afe42}))[_0x1a78c9(0x19a)][_0x1a78c9(0x1a7)];return{..._0x3ee18f,'id':_0x1d8332[_0x1a78c9(0x1b4)],'dT':_0x466984(+_0x1d8332['createTimestamp'])[_0x1a78c9(0x1d0)](_0x1a78c9(0x188)),'personId':_0x1d8332[_0x1a78c9(0x1e7)]};}else{const _0x41a107={'memberId':_0x33d650,'unitId':_0x5cb725,'content':_0x4b28c0,'mention':_0x5b316b},_0x2b65d3=await this[_0x1a78c9(0x1e3)]['post']('/universer-api/comment/unit/'+_0x5cb725+_0x1a78c9(0x1e1),{'body':_0x41a107});return X(_0x2b65d3[_0x1a78c9(0x19a)][_0x1a78c9(0x1c6)],_0x3ee18f);}}async[_0x3125a2(0x1cb)](_0x37eeec){const _0x25041b=_0x3125a2;var _0x121bec,_0x57373c;const {text:_0x5b7800,unitId:_0x5e4448}=_0x37eeec,_0x1f7640=(_0x57373c=(_0x121bec=_0x5b7800[_0x25041b(0x1a4)])==null?void 0x0:_0x121bec['filter'](_0x381e66=>_0x381e66[_0x25041b(0x1ea)]===_0x1659d6[_0x25041b(0x1bb)])[_0x25041b(0x1c4)](_0x3dedb5=>_0x3dedb5['rangeId']))!=null?_0x57373c:[],_0x311b66=JSON[_0x25041b(0x1a3)](_0x5b7800),_0x59f8fc=_0x37eeec[_0x25041b(0x193)],_0x25b162=_0x37eeec['id'],_0x30c16b={'memberId':(await this['_sessionService'][_0x25041b(0x18e)](_0x5e4448))['getMemberID'](),'unitId':_0x5e4448,'threadId':_0x59f8fc,'mention':_0x1f7640,'content':_0x311b66,'replyId':_0x25b162},_0x22749f=await this[_0x25041b(0x1e3)][_0x25041b(0x1dc)](_0x25041b(0x190)+_0x5e4448+_0x25041b(0x1ab),{'body':_0x30c16b});return!_0x22749f[_0x25041b(0x19a)]['error']||_0x22749f['body'][_0x25041b(0x1aa)]['code']===0x1;}async[_0x3125a2(0x1d8)](_0x2a14f8){const _0x40ccaf=_0x3125a2,{unitId:_0x489c2b}=_0x2a14f8,_0x52e3b4=_0x2a14f8['threadId'],_0x4e21bf={'memberId':this[_0x40ccaf(0x1d3)]['getCurrentUser']()[_0x40ccaf(0x191)],'unitId':_0x489c2b,'threadId':_0x52e3b4,'solved':_0x2a14f8[_0x40ccaf(0x1e6)]?I[_0x40ccaf(0x1eb)]:I[_0x40ccaf(0x18b)]},_0x1db968=await this[_0x40ccaf(0x1e3)][_0x40ccaf(0x1dc)]('/universer-api/comment/unit/'+_0x489c2b+'/solved',{'body':_0x4e21bf});return!_0x1db968[_0x40ccaf(0x19a)][_0x40ccaf(0x1aa)]||_0x1db968['body']['error'][_0x40ccaf(0x19e)]===0x1;}async[_0x3125a2(0x1af)](_0x47ea3b,_0x575d24,_0x5a38fc,_0x37576b){const _0x427b51=_0x3125a2,_0x20b236={'memberId':(await this[_0x427b51(0x1a0)][_0x427b51(0x18e)](_0x47ea3b))[_0x427b51(0x1d5)](),'threadId':_0x5a38fc,'replyId':_0x37576b,'unitId':_0x47ea3b},_0x29988b=await this[_0x427b51(0x1e3)]['post'](_0x427b51(0x190)+_0x47ea3b+_0x427b51(0x19f),{'body':_0x20b236});return!_0x29988b[_0x427b51(0x19a)][_0x427b51(0x1aa)]||_0x29988b[_0x427b51(0x19a)][_0x427b51(0x1aa)]['code']===0x1;}async['listComments'](_0x2bc9fe,_0x39697a,_0x40d39f){const _0x1cd8f2=_0x3125a2,_0x37e3a6={'unitId':_0x2bc9fe,'threadId':_0x40d39f},_0x4035ea=await this[_0x1cd8f2(0x1e3)][_0x1cd8f2(0x1dc)]('/universer-api/comment/unit/'+_0x2bc9fe+'/list',{'body':_0x37e3a6}),_0x5d87a3=_0x40d39f[_0x1cd8f2(0x1c4)](_0x3bfb6f=>ee(_0x4035ea[_0x1cd8f2(0x19a)][_0x1cd8f2(0x189)][_0x3bfb6f],_0x2bc9fe,_0x39697a))[_0x1cd8f2(0x1cd)](Boolean);return Object['values'](_0x4035ea[_0x1cd8f2(0x19a)][_0x1cd8f2(0x1bd)])[_0x1cd8f2(0x185)](_0x2d6c53=>{const _0x4c22e6=_0x1cd8f2;this[_0x4c22e6(0x1d3)][_0x4c22e6(0x1b8)](_0x2d6c53);}),_0x5d87a3;}[_0x3125a2(0x186)](_0x4e731a){const _0x1b5ee4=_0x3125a2;return{'id':_0x4e731a['id'],'threadId':_0x4e731a['threadId'],'ref':_0x4e731a[_0x1b5ee4(0x1c8)]};}};f=Q([_(0x0,_0x5223ea(_0x3180ef)),_(0x1,_0x5223ea(_0x877d29)),_(0x2,_0x5223ea(_0x3cf7e3)),_(0x3,_0x5223ea(_0x579925))],f);var re=Object[_0x3125a2(0x1ce)],te=(_0xd462e3,_0x16abe7,_0xe23e81,_0x459ecf)=>{const _0x26a76c=_0x3125a2;for(var _0x335403=_0x459ecf>0x1?void 0x0:_0x459ecf?re(_0x16abe7,_0xe23e81):_0x16abe7,_0x4be48d=_0xd462e3[_0x26a76c(0x1a1)]-0x1,_0x52836a;_0x4be48d>=0x0;_0x4be48d--)(_0x52836a=_0xd462e3[_0x4be48d])&&(_0x335403=_0x52836a(_0x335403)||_0x335403);return _0x335403;},N=(_0x96acf6,_0x39be77)=>(_0x214eb2,_0x18c445)=>_0x39be77(_0x214eb2,_0x18c445,_0x96acf6);let g=class extends _0x2c471d{constructor(_0x15a458,_0x597fbd){const _0x286543=_0x3125a2;super(),this[_0x286543(0x1ba)]=_0x15a458,this['_threadCommentDataSource']=_0x597fbd,this[_0x286543(0x196)]();}[_0x3125a2(0x196)](){const _0x50f769=_0x3125a2;this['_threadCommentDataSourceService'][_0x50f769(0x1a6)]=this[_0x50f769(0x1b9)],this[_0x50f769(0x1ba)][_0x50f769(0x184)]=!0x1;}};g=te([N(0x0,_0x1af45c),N(0x1,_0x5223ea(f))],g);var se=Object[_0x3125a2(0x1c5)],oe=Object[_0x3125a2(0x1ce)],ne=(_0x266f15,_0x503b35,_0x1e4829)=>_0x503b35 in _0x266f15?se(_0x266f15,_0x503b35,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e4829}):_0x266f15[_0x503b35]=_0x1e4829,ie=(_0x56f65e,_0x129f98,_0x146749,_0x2413be)=>{const _0x2d529f=_0x3125a2;for(var _0x38eb4a=_0x2413be>0x1?void 0x0:_0x2413be?oe(_0x129f98,_0x146749):_0x129f98,_0x3d30d3=_0x56f65e[_0x2d529f(0x1a1)]-0x1,_0x54434a;_0x3d30d3>=0x0;_0x3d30d3--)(_0x54434a=_0x56f65e[_0x3d30d3])&&(_0x38eb4a=_0x54434a(_0x38eb4a)||_0x38eb4a);return _0x38eb4a;},w=(_0x4fb7e9,_0x58466c)=>(_0x1e8905,_0x2fd2c6)=>_0x58466c(_0x1e8905,_0x2fd2c6,_0x4fb7e9),$=(_0x22094a,_0x250a00,_0x46b1e7)=>ne(_0x22094a,typeof _0x250a00!='symbol'?_0x250a00+'':_0x250a00,_0x46b1e7);let b=class extends _0x42ff71{constructor(_0x58ce75=M,_0x22ad1f,_0x293b86){const _0xed3bcc=_0x3125a2;super(),this[_0xed3bcc(0x1e9)]=_0x58ce75,this[_0xed3bcc(0x1c0)]=_0x22ad1f,this[_0xed3bcc(0x198)]=_0x293b86;const {..._0x3d5040}=_0x497adb({},M,this['_config']);this['_configService'][_0xed3bcc(0x1c1)](z,_0x3d5040);}['onStarting'](){const _0x11568e=_0x3125a2;[[f],[g],[S]][_0x11568e(0x185)](_0x2bf256=>{const _0x465e08=_0x11568e;this['_injector'][_0x465e08(0x1be)](_0x2bf256);});}[_0x3125a2(0x183)](){const _0x4da96d=_0x3125a2;this[_0x4da96d(0x1c0)][_0x4da96d(0x187)](g),this[_0x4da96d(0x1c0)][_0x4da96d(0x187)](S);}};$(b,_0x3125a2(0x1de),W),$(b,'type',_0x4f26b0[_0x3125a2(0x1ca)]),b=ie([_0x3f95ef(_0x479164,_0x12a624,_0x2e3ca3),w(0x1,_0x5223ea(_0x579925)),w(0x2,_0x5a7661)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4432(_0x1d86f2,_0xc3dba){const _0x23126c=_0x2312();return _0x4432=function(_0x443246,_0x9fca91){_0x443246=_0x443246-0x76;let _0x3abff7=_0x23126c[_0x443246];return _0x3abff7;},_0x4432(_0x1d86f2,_0xc3dba);}(function(_0x18c550,_0x4eb68f){const _0xa9ff29=_0x4432,_0xd15058=_0x18c550();while(!![]){try{const _0x50a5a5=parseInt(_0xa9ff29(0xfa))/0x1*(-parseInt(_0xa9ff29(0xb7))/0x2)+-parseInt(_0xa9ff29(0xe6))/0x3+-parseInt(_0xa9ff29(0xba))/0x4*(-parseInt(_0xa9ff29(0xee))/0x5)+parseInt(_0xa9ff29(0xf0))/0x6*(-parseInt(_0xa9ff29(0xf7))/0x7)+parseInt(_0xa9ff29(0xcd))/0x8*(parseInt(_0xa9ff29(0xa1))/0x9)+parseInt(_0xa9ff29(0xbc))/0xa*(-parseInt(_0xa9ff29(0x9f))/0xb)+parseInt(_0xa9ff29(0xa3))/0xc;if(_0x50a5a5===_0x4eb68f)break;else _0xd15058['push'](_0xd15058['shift']());}catch(_0x3155ae){_0xd15058['push'](_0xd15058['shift']());}}}(_0x2312,0x32f12),function(_0x5cd497,_0x1edb91){const _0x2da05a=_0x4432;typeof exports=='object'&&typeof module<'u'?_0x1edb91(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require(_0x2da05a(0xad)),require(_0x2da05a(0xf2)),require('rxjs'),require('@univerjs/network')):typeof define==_0x2da05a(0x8c)&&define[_0x2da05a(0x91)]?define([_0x2da05a(0x84),_0x2da05a(0xda),_0x2da05a(0x8f),_0x2da05a(0x9d),_0x2da05a(0xad),'@univerjs/thread-comment',_0x2da05a(0xe1),'@univerjs/network'],_0x1edb91):(_0x5cd497=typeof globalThis<'u'?globalThis:_0x5cd497||self,_0x1edb91(_0x5cd497[_0x2da05a(0xd4)]={},_0x5cd497[_0x2da05a(0xea)],_0x5cd497[_0x2da05a(0x99)],_0x5cd497[_0x2da05a(0x94)],_0x5cd497['UniverThreadCommentUi'],_0x5cd497[_0x2da05a(0xa8)],_0x5cd497[_0x2da05a(0xe1)],_0x5cd497['UniverNetwork']));}(this,function(_0x166dc3,_0x5d189e,_0x4863fe,_0x5bd726,_0x194253,_0x86cdf6,_0x3798ef,_0x255312){'use strict';const _0x6f636e=_0x4432;const _0x2b4f0e=_0x6f636e(0xb8);var _0x3fd7aa=(_0xbdae11=>(_0xbdae11[_0xbdae11['OpenOrReOpen']=0x0]=_0x6f636e(0xed),_0xbdae11[_0xbdae11[_0x6f636e(0x95)]=0x1]=_0x6f636e(0x95),_0xbdae11[_0xbdae11[_0x6f636e(0xe2)]=-0x1]=_0x6f636e(0xe2),_0xbdae11))(_0x3fd7aa||{}),_0x3bdaa7=(_0x2a2710=>(_0x2a2710[_0x2a2710[_0x6f636e(0xa6)]=0x0]=_0x6f636e(0xa6),_0x2a2710[_0x2a2710[_0x6f636e(0xf5)]=0x1]=_0x6f636e(0xf5),_0x2a2710[_0x2a2710['Reply']=0x2]='Reply',_0x2a2710[_0x2a2710['Edit']=0x3]=_0x6f636e(0xbe),_0x2a2710[_0x2a2710[_0x6f636e(0x8e)]=0x4]=_0x6f636e(0x8e),_0x2a2710[_0x2a2710[_0x6f636e(0xaa)]=0x5]=_0x6f636e(0xaa),_0x2a2710[_0x2a2710['UNRECOGNIZED']=-0x1]=_0x6f636e(0xe2),_0x2a2710))(_0x3bdaa7||{});const _0x563f34=_0x1e10ac=>_0x5bd726['dayjs'](new Date(+_0x1e10ac))[_0x6f636e(0xf9)]('YYYY/MM/DD\x20HH:mm'),_0x29578b=async(_0x695358,_0x7346a8)=>{const _0x343248=_0x6f636e,_0x559d07=_0x695358['get'](_0x5bd726[_0x343248(0xab)]),_0x34220c=_0x695358[_0x343248(0xd2)](_0x255312[_0x343248(0x96)]);_0x7346a8[_0x343248(0x7c)](_0x4d1570=>{const _0x1f6bf3=_0x343248;_0x559d07[_0x1f6bf3(0x83)](_0x4d1570)&&_0x7346a8[_0x1f6bf3(0x7f)](_0x4d1570);}),_0x7346a8[_0x343248(0xfe)]&&(await _0x34220c[_0x343248(0xd2)](_0x343248(0xf8),{'params':{'userIDs':[..._0x7346a8]}}))[_0x343248(0xa5)][_0x343248(0xb9)][_0x343248(0x7c)](_0x24fae6=>{const _0x5a883e=_0x343248;_0x24fae6&&_0x559d07[_0x5a883e(0xa4)](_0x24fae6);});};var _0x519a3a=Object[_0x6f636e(0x7d)],_0x115f70=(_0x2c1db9,_0x2c50d2,_0xcb484e,_0x3bf590)=>{const _0x4153bc=_0x6f636e;for(var _0x198e24=_0x3bf590>0x1?void 0x0:_0x3bf590?_0x519a3a(_0x2c50d2,_0xcb484e):_0x2c50d2,_0x1f2ca5=_0x2c1db9[_0x4153bc(0x81)]-0x1,_0xf2374b;_0x1f2ca5>=0x0;_0x1f2ca5--)(_0xf2374b=_0x2c1db9[_0x1f2ca5])&&(_0x198e24=_0xf2374b(_0x198e24)||_0x198e24);return _0x198e24;},_0x180c38=(_0x360b34,_0x32086a)=>(_0x1cba63,_0x1c0c1b)=>_0x32086a(_0x1cba63,_0x1c0c1b,_0x360b34);let _0x4886df=class extends _0x5bd726[_0x6f636e(0xc4)]{constructor(_0xb33b86,_0x5ac384,_0x277355,_0x24987f){const _0x550f36=_0x6f636e;super(),this[_0x550f36(0xb2)]=_0xb33b86,this['_threadCommentModel']=_0x5ac384,this[_0x550f36(0xe4)]=_0x277355,this['_injector']=_0x24987f,this['_init'](),this['_initUserSync']();}[_0x6f636e(0x78)](){const _0xbc0863=_0x6f636e;this[_0xbc0863(0xdb)](this[_0xbc0863(0x89)][_0xbc0863(0xc8)][_0xbc0863(0x9a)](_0x3798ef[_0xbc0863(0xd9)](0x10))['subscribe'](_0x4bf58c=>{const _0x1fff1c=_0xbc0863,_0x4666ba=new Set();_0x4bf58c[_0x1fff1c(0x7c)](_0x26c7fc=>{const _0x1e8159=_0x1fff1c;switch(_0x26c7fc[_0x1e8159(0x86)]){case _0x1e8159(0x9b):{const _0x4bf131=_0x26c7fc[_0x1e8159(0xec)][_0x1e8159(0xff)];_0x4666ba[_0x1e8159(0x9b)](_0x4bf131);break;}}}),_0x29578b(this['_injector'],_0x4666ba);}));}[_0x6f636e(0xe9)](){const _0x4e2729=_0x6f636e;this[_0x4e2729(0xdb)](this[_0x4e2729(0xb2)][_0x4e2729(0xc8)][_0x4e2729(0xc1)](async _0x419fc6=>{const _0x25c7bb=_0x4e2729;var _0x1965fe,_0x5058ff,_0x162ea8,_0x58325c;const _0x30cbb3=(_0x1965fe=this[_0x25c7bb(0x89)]['getUnit'](_0x419fc6[_0x25c7bb(0xcc)])[_0x25c7bb(0xe0)](_0x1e197e=>_0x1e197e['threadId']===_0x419fc6[_0x25c7bb(0xc0)]))==null?void 0x0:_0x1965fe[_0x25c7bb(0xb5)];if(!_0x30cbb3)return;const {unitId:_0x42506e,subUnitId:_0x15fa9f}=_0x30cbb3;switch(_0x419fc6[_0x25c7bb(0x80)]&&this[_0x25c7bb(0xe4)][_0x25c7bb(0xa4)](_0x419fc6[_0x25c7bb(0x80)]),_0x419fc6[_0x25c7bb(0x86)]){case _0x3bdaa7[_0x25c7bb(0xf5)]:break;case _0x3bdaa7[_0x25c7bb(0xdf)]:{this[_0x25c7bb(0x89)][_0x25c7bb(0x9c)](_0x42506e,_0x15fa9f,{'unitId':_0x42506e,'subUnitId':_0x15fa9f,'ref':'','id':_0x419fc6['replyId'],'dT':_0x563f34(+_0x419fc6[_0x25c7bb(0xe8)]),'threadId':_0x419fc6[_0x25c7bb(0xc0)],'personId':(_0x162ea8=(_0x5058ff=_0x419fc6[_0x25c7bb(0x80)])==null?void 0x0:_0x5058ff[_0x25c7bb(0xa7)])!=null?_0x162ea8:_0x419fc6[_0x25c7bb(0xcb)],'text':JSON['parse'](_0x419fc6[_0x25c7bb(0xf3)]),'parentId':_0x30cbb3['id']});break;}case _0x3bdaa7[_0x25c7bb(0x8e)]:{const _0x5f09bb=this['_threadCommentModel'][_0x25c7bb(0x87)](_0x42506e,_0x15fa9f,_0x419fc6[_0x25c7bb(0xeb)]);_0x5f09bb&&_0x5f09bb[_0x25c7bb(0xef)]&&this['_threadCommentModel'][_0x25c7bb(0xce)](_0x42506e,_0x15fa9f,_0x419fc6[_0x25c7bb(0xeb)]);break;}case _0x3bdaa7[_0x25c7bb(0xbe)]:{this[_0x25c7bb(0x89)][_0x25c7bb(0xca)](_0x42506e,_0x15fa9f,{'commentId':_0x419fc6['replyId'],'text':JSON[_0x25c7bb(0x7b)](_0x419fc6[_0x25c7bb(0xf3)])});break;}case _0x3bdaa7[_0x25c7bb(0xaa)]:{const _0x9ea0db=(_0x58325c=this[_0x25c7bb(0x89)]['getUnit'](_0x419fc6['unitId'])[_0x25c7bb(0xe0)](_0x3c64f0=>_0x3c64f0[_0x25c7bb(0xc0)]===_0x419fc6[_0x25c7bb(0xc0)]))==null?void 0x0:_0x58325c[_0x25c7bb(0xb5)];_0x9ea0db&&this[_0x25c7bb(0x89)][_0x25c7bb(0x8a)](_0x42506e,_0x15fa9f,_0x9ea0db['id'],_0x419fc6['solved']===_0x3fd7aa[_0x25c7bb(0x95)]);break;}}}));}};_0x4886df=_0x115f70([_0x180c38(0x0,_0x5bd726[_0x6f636e(0xaf)](_0x5d189e['CommentService'])),_0x180c38(0x1,_0x5bd726[_0x6f636e(0xaf)](_0x86cdf6[_0x6f636e(0x7a)])),_0x180c38(0x2,_0x5bd726[_0x6f636e(0xaf)](_0x5bd726[_0x6f636e(0xab)])),_0x180c38(0x3,_0x5bd726[_0x6f636e(0xaf)](_0x5bd726[_0x6f636e(0x76)]))],_0x4886df);const _0x2f9e3c=_0x6f636e(0xd6),_0x2b9754={};var _0x1ec151=Object[_0x6f636e(0x7d)],_0x5cd16f=(_0x586de5,_0x5036eb,_0x4db554,_0x42289c)=>{for(var _0x518934=_0x42289c>0x1?void 0x0:_0x42289c?_0x1ec151(_0x5036eb,_0x4db554):_0x5036eb,_0x1d654b=_0x586de5['length']-0x1,_0x346765;_0x1d654b>=0x0;_0x1d654b--)(_0x346765=_0x586de5[_0x1d654b])&&(_0x518934=_0x346765(_0x518934)||_0x518934);return _0x518934;},_0x379a40=(_0x5e87bc,_0x71b8f0)=>(_0x12370c,_0x587922)=>_0x71b8f0(_0x12370c,_0x587922,_0x5e87bc);function _0xfb520c(_0x21e73c,_0x35611d){const _0x229564=_0x6f636e,_0x1c97e1=_0x21e73c[_0x229564(0xf1)][0x0];return{..._0x35611d,'id':_0x1c97e1[_0x229564(0xeb)],'resolved':_0x21e73c[_0x229564(0xc6)]===0x1,'dT':_0x563f34(_0x1c97e1[_0x229564(0xe8)]),'personId':_0x1c97e1['userId'],'threadId':_0x1c97e1[_0x229564(0xc0)]};}function _0x25fac8(_0x1ac470,_0x27e18a,_0x5648d6){const _0x2406d8=_0x6f636e;var _0x4693da,_0xec75b9;if(((_0xec75b9=(_0x4693da=_0x1ac470==null?void 0x0:_0x1ac470[_0x2406d8(0xf1)])==null?void 0x0:_0x4693da['length'])!=null?_0xec75b9:0x0)>0x0){const _0xee90a1=(_0x180d44,_0x2f55a7)=>({'id':_0x180d44[_0x2406d8(0xeb)],'threadId':_0x180d44[_0x2406d8(0xc0)],'dT':_0x563f34(_0x180d44['createTimestamp']),'personId':_0x180d44['userId'],'resolved':_0x1ac470[_0x2406d8(0xc6)]===_0x3fd7aa[_0x2406d8(0x95)],'unitId':_0x27e18a,'subUnitId':_0x5648d6,'text':JSON[_0x2406d8(0x7b)](_0x180d44[_0x2406d8(0xf3)]),'parentId':_0x2f55a7}),_0x3e677b=_0xee90a1(_0x1ac470[_0x2406d8(0xf1)][0x0]);return{..._0x3e677b,'children':_0x1ac470[_0x2406d8(0xf1)][_0x2406d8(0x90)](0x1)[_0x2406d8(0xc3)](_0x212c30=>_0xee90a1(_0x212c30,_0x3e677b['id']))};}return null;}let _0x140e1c=class{constructor(_0x19fc72,_0x9a89a,_0x3cefbe,_0x36c1a6){const _0x1962ec=_0x6f636e;this[_0x1962ec(0xe3)]=_0x19fc72,this['_userService']=_0x9a89a,this['_sessionService']=_0x3cefbe,this[_0x1962ec(0xbf)]=_0x36c1a6;}async[_0x6f636e(0x9c)](_0x4fe290){const _0x3e93c4=_0x6f636e;var _0x499471,_0x35c68f;const {parentId:_0x471f76,unitId:_0x33fc35,text:_0x4deebd,threadId:_0x3ec331}=_0x4fe290,_0x27d5ec=(_0x35c68f=(_0x499471=_0x4deebd[_0x3e93c4(0xd1)])==null?void 0x0:_0x499471[_0x3e93c4(0xd7)](_0x53063c=>_0x53063c[_0x3e93c4(0x93)]===_0x5bd726[_0x3e93c4(0x97)]['COMMENT'])['map'](_0x55ee3c=>_0x55ee3c[_0x3e93c4(0x8d)]))!=null?_0x35c68f:[],_0x48c403=JSON[_0x3e93c4(0xd0)](_0x4deebd),_0x187e96=(await this[_0x3e93c4(0xdd)]['requireSession'](_0x33fc35))[_0x3e93c4(0xc9)]();if(_0x471f76){const _0x545b04={'memberId':_0x187e96,'unitId':_0x33fc35,'content':_0x48c403,'mention':_0x27d5ec,'threadId':_0x3ec331},_0x301ac9=(await this[_0x3e93c4(0xe3)]['post'](_0x3e93c4(0xc2)+_0x33fc35+_0x3e93c4(0xd3),{'body':_0x545b04}))[_0x3e93c4(0xa5)][_0x3e93c4(0xdc)];return{..._0x4fe290,'id':_0x301ac9[_0x3e93c4(0xeb)],'dT':_0x5bd726[_0x3e93c4(0xae)](+_0x301ac9[_0x3e93c4(0xe8)])['format'](_0x3e93c4(0xa2)),'personId':_0x301ac9[_0x3e93c4(0xcb)]};}else{const _0x23f2f1={'memberId':_0x187e96,'unitId':_0x33fc35,'content':_0x48c403,'mention':_0x27d5ec},_0x193d2e=await this['_httpService']['post'](_0x3e93c4(0xc2)+_0x33fc35+'/add',{'body':_0x23f2f1});return _0xfb520c(_0x193d2e[_0x3e93c4(0xa5)][_0x3e93c4(0xe5)],_0x4fe290);}}async['updateComment'](_0x1b9a3a){const _0x2834ab=_0x6f636e;var _0x3f5342,_0xb25873;const {text:_0x36d4f4,unitId:_0xa8f73d}=_0x1b9a3a,_0x57fe6c=(_0xb25873=(_0x3f5342=_0x36d4f4['customRanges'])==null?void 0x0:_0x3f5342[_0x2834ab(0xd7)](_0x1d3ac8=>_0x1d3ac8['rangeType']===_0x5bd726[_0x2834ab(0x97)][_0x2834ab(0xfd)])[_0x2834ab(0xc3)](_0x4cd59c=>_0x4cd59c['rangeId']))!=null?_0xb25873:[],_0x193635=JSON['stringify'](_0x36d4f4),_0x113f61=_0x1b9a3a[_0x2834ab(0xc0)],_0x481a8f=_0x1b9a3a['id'],_0x157f0e={'memberId':(await this['_sessionService'][_0x2834ab(0xb6)](_0xa8f73d))[_0x2834ab(0xc9)](),'unitId':_0xa8f73d,'threadId':_0x113f61,'mention':_0x57fe6c,'content':_0x193635,'replyId':_0x481a8f},_0x36d07e=await this['_httpService']['post']('/universer-api/comment/unit/'+_0xa8f73d+'/edit',{'body':_0x157f0e});return!_0x36d07e[_0x2834ab(0xa5)][_0x2834ab(0xbb)]||_0x36d07e['body'][_0x2834ab(0xbb)][_0x2834ab(0xcf)]===0x1;}async[_0x6f636e(0x8a)](_0x352f1c){const _0x482ecd=_0x6f636e,{unitId:_0x428fcb}=_0x352f1c,_0x16ec1a=_0x352f1c[_0x482ecd(0xc0)],_0x5a6d22={'memberId':this[_0x482ecd(0xe4)]['getCurrentUser']()[_0x482ecd(0xa7)],'unitId':_0x428fcb,'threadId':_0x16ec1a,'solved':_0x352f1c['resolved']?_0x3fd7aa[_0x482ecd(0x95)]:_0x3fd7aa[_0x482ecd(0xed)]},_0x1c5f4d=await this[_0x482ecd(0xe3)][_0x482ecd(0xbd)](_0x482ecd(0xc2)+_0x428fcb+_0x482ecd(0xb3),{'body':_0x5a6d22});return!_0x1c5f4d[_0x482ecd(0xa5)][_0x482ecd(0xbb)]||_0x1c5f4d['body'][_0x482ecd(0xbb)][_0x482ecd(0xcf)]===0x1;}async[_0x6f636e(0xce)](_0x1d90ef,_0x685bcf,_0x19c73b,_0x429bcf){const _0x2e5c08=_0x6f636e,_0x5f080b={'memberId':(await this['_sessionService'][_0x2e5c08(0xb6)](_0x1d90ef))[_0x2e5c08(0xc9)](),'threadId':_0x19c73b,'replyId':_0x429bcf,'unitId':_0x1d90ef},_0x591a95=await this[_0x2e5c08(0xe3)][_0x2e5c08(0xbd)](_0x2e5c08(0xc2)+_0x1d90ef+'/delete',{'body':_0x5f080b});return!_0x591a95[_0x2e5c08(0xa5)][_0x2e5c08(0xbb)]||_0x591a95['body'][_0x2e5c08(0xbb)][_0x2e5c08(0xcf)]===0x1;}async[_0x6f636e(0x77)](_0x12c4e7,_0x1cb3bf,_0x311bb3){const _0x28c6ca=_0x6f636e,_0x16fa28={'unitId':_0x12c4e7,'threadId':_0x311bb3},_0x32f2b8=await this[_0x28c6ca(0xe3)][_0x28c6ca(0xbd)]('/universer-api/comment/unit/'+_0x12c4e7+'/list',{'body':_0x16fa28}),_0x377cff=_0x311bb3[_0x28c6ca(0xc3)](_0x2f287c=>_0x25fac8(_0x32f2b8[_0x28c6ca(0xa5)][_0x28c6ca(0xb0)][_0x2f287c],_0x12c4e7,_0x1cb3bf))['filter'](Boolean);return Object['values'](_0x32f2b8['body'][_0x28c6ca(0xb9)])[_0x28c6ca(0x7c)](_0x5683cc=>{const _0x420aab=_0x28c6ca;this[_0x420aab(0xe4)]['addUser'](_0x5683cc);}),_0x377cff;}[_0x6f636e(0x7e)](_0x5c343c){const _0x890343=_0x6f636e;return{'id':_0x5c343c['id'],'threadId':_0x5c343c['threadId'],'ref':_0x5c343c[_0x890343(0xc7)]};}};_0x140e1c=_0x5cd16f([_0x379a40(0x0,_0x5bd726[_0x6f636e(0xaf)](_0x255312[_0x6f636e(0x96)])),_0x379a40(0x1,_0x5bd726[_0x6f636e(0xaf)](_0x5bd726[_0x6f636e(0xab)])),_0x379a40(0x2,_0x5bd726['Inject'](_0x5d189e['CollaborationSessionService'])),_0x379a40(0x3,_0x5bd726[_0x6f636e(0xaf)](_0x5bd726[_0x6f636e(0x76)]))],_0x140e1c);var _0x453922=Object[_0x6f636e(0x7d)],_0x26cf30=(_0x4f78c6,_0x1bf584,_0x3472ce,_0x4ebf3c)=>{const _0xbc2e15=_0x6f636e;for(var _0x1616cb=_0x4ebf3c>0x1?void 0x0:_0x4ebf3c?_0x453922(_0x1bf584,_0x3472ce):_0x1bf584,_0x198e11=_0x4f78c6[_0xbc2e15(0x81)]-0x1,_0x5510f0;_0x198e11>=0x0;_0x198e11--)(_0x5510f0=_0x4f78c6[_0x198e11])&&(_0x1616cb=_0x5510f0(_0x1616cb)||_0x1616cb);return _0x1616cb;},_0x345ea8=(_0x511802,_0x455deb)=>(_0x542f87,_0x35a360)=>_0x455deb(_0x542f87,_0x35a360,_0x511802);let _0x1cd876=class extends _0x5bd726[_0x6f636e(0xc4)]{constructor(_0x2c0235,_0x35dcdd){const _0x28a7ac=_0x6f636e;super(),this[_0x28a7ac(0xde)]=_0x2c0235,this[_0x28a7ac(0xf6)]=_0x35dcdd,this['_initDataSource']();}[_0x6f636e(0xf4)](){const _0x4cc4f1=_0x6f636e;this[_0x4cc4f1(0xde)][_0x4cc4f1(0xfb)]=this[_0x4cc4f1(0xf6)],this['_threadCommentDataSourceService'][_0x4cc4f1(0xfc)]=!0x1;}};_0x1cd876=_0x26cf30([_0x345ea8(0x0,_0x86cdf6[_0x6f636e(0xb4)]),_0x345ea8(0x1,_0x5bd726[_0x6f636e(0xaf)](_0x140e1c))],_0x1cd876);var _0x564f53=Object[_0x6f636e(0xe7)],_0x4a7b1=Object['getOwnPropertyDescriptor'],_0x376fdb=(_0x3067d0,_0x36fb24,_0x51d02d)=>_0x36fb24 in _0x3067d0?_0x564f53(_0x3067d0,_0x36fb24,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51d02d}):_0x3067d0[_0x36fb24]=_0x51d02d,_0x355c7b=(_0xb343e0,_0x37cb3e,_0x13b1cf,_0x5aed1c)=>{const _0x102044=_0x6f636e;for(var _0xdde9f6=_0x5aed1c>0x1?void 0x0:_0x5aed1c?_0x4a7b1(_0x37cb3e,_0x13b1cf):_0x37cb3e,_0x4bdf30=_0xb343e0[_0x102044(0x81)]-0x1,_0xaf65b2;_0x4bdf30>=0x0;_0x4bdf30--)(_0xaf65b2=_0xb343e0[_0x4bdf30])&&(_0xdde9f6=_0xaf65b2(_0xdde9f6)||_0xdde9f6);return _0xdde9f6;},_0x29e824=(_0x393d25,_0x210c00)=>(_0x50d276,_0x5ab80b)=>_0x210c00(_0x50d276,_0x5ab80b,_0x393d25),_0x25f978=(_0x53aaaf,_0x1f76ec,_0x2d607e)=>_0x376fdb(_0x53aaaf,typeof _0x1f76ec!='symbol'?_0x1f76ec+'':_0x1f76ec,_0x2d607e);_0x166dc3[_0x6f636e(0x82)]=class extends _0x5bd726[_0x6f636e(0xc5)]{constructor(_0x506d5e=_0x2b9754,_0x342aae,_0x33c5aa){const _0x49d61f=_0x6f636e;super(),this[_0x49d61f(0x92)]=_0x506d5e,this[_0x49d61f(0xbf)]=_0x342aae,this['_configService']=_0x33c5aa;const {..._0x5a6b4d}=_0x5bd726[_0x49d61f(0x85)]({},_0x2b9754,this[_0x49d61f(0x92)]);this[_0x49d61f(0xb1)][_0x49d61f(0x79)](_0x2f9e3c,_0x5a6b4d);}[_0x6f636e(0x88)](){const _0x4b386d=_0x6f636e;[[_0x140e1c],[_0x1cd876],[_0x4886df]][_0x4b386d(0x7c)](_0x2a479d=>{const _0x35012c=_0x4b386d;this['_injector'][_0x35012c(0x9b)](_0x2a479d);});}[_0x6f636e(0xd8)](){const _0x5c87a3=_0x6f636e;this[_0x5c87a3(0xbf)]['get'](_0x1cd876),this[_0x5c87a3(0xbf)][_0x5c87a3(0xd2)](_0x4886df);}},_0x25f978(_0x166dc3[_0x6f636e(0x82)],_0x6f636e(0x98),_0x2b4f0e),_0x25f978(_0x166dc3[_0x6f636e(0x82)],_0x6f636e(0x86),_0x5bd726[_0x6f636e(0x9e)][_0x6f636e(0xac)]),_0x166dc3['UniverThreadCommentDataSourcePlugin']=_0x355c7b([_0x5bd726[_0x6f636e(0xa0)](_0x194253[_0x6f636e(0x8b)],_0x5d189e[_0x6f636e(0xa9)],_0x4863fe[_0x6f636e(0xd5)]),_0x29e824(0x1,_0x5bd726[_0x6f636e(0xaf)](_0x5bd726[_0x6f636e(0x76)])),_0x29e824(0x2,_0x5bd726['IConfigService'])],_0x166dc3[_0x6f636e(0x82)]),Object[_0x6f636e(0xe7)](_0x166dc3,Symbol['toStringTag'],{'value':'Module'});}));function _0x2312(){const _0x53f222=['setConfig','ThreadCommentModel','parse','forEach','getOwnPropertyDescriptor','saveCommentToSnapshot','delete','user','length','UniverThreadCommentDataSourcePlugin','getUser','exports','merge','type','getComment','onStarting','_threadCommentModel','resolveComment','UniverThreadCommentUIPlugin','function','rangeId','Delete','@univerjs-pro/license','slice','amd','_config','rangeType','UniverCore','Solved','HTTPService','CustomRangeType','pluginName','UniverProLicense','pipe','add','addComment','@univerjs/core','UniverInstanceType','306086qHucQs','DependentOn','3879VwtvHb','YYYY/MM/DD\x20HH:mm','2316276GLsdSD','addUser','body','Unknown','userID','UniverThreadComment','UniverCollaborationClientPlugin','Solve','UserManagerService','UNIVER_UNKNOWN','@univerjs/thread-comment-ui','dayjs','Inject','comments','_configService','_commentService','/solved','IThreadCommentDataSourceService','root','requireSession','974wmLiuR','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','users','940FuAITi','error','10vpbrwr','post','Edit','_injector','threadId','subscribe','/universer-api/comment/unit/','map','Disposable','Plugin','solved','ref','commentUpdate$','getMemberID','updateComment','userId','unitId','7256IEWxtp','deleteComment','code','stringify','customRanges','get','/reply','UniverProThreadCommentDatasource','UniverLicensePlugin','thread-comment-data-source.config','filter','onReady','bufferTime','@univerjs-pro/collaboration-client','disposeWithMe','reply','_sessionService','_threadCommentDataSourceService','Reply','find','rxjs','UNRECOGNIZED','_httpService','_userService','comment','661656eNRAjK','defineProperty','createTimestamp','_init','UniverProCollaborationClient','replyId','payload','OpenOrReOpen','5485EXwtNm','parentId','436746MnWYXM','replies','@univerjs/thread-comment','content','_initDataSource','Add','_threadCommentDataSource','14phMgSB','/universer-api/user/list','format','491VjsBBN','dataSource','syncUpdateMutationToColla','COMMENT','size','personId','Injector','listComments','_initUserSync'];_0x2312=function(){return _0x53f222;};return _0x2312();}
|
|
1
|
+
function _0x22b4(_0x23faae,_0x4fbef8){const _0x3f88c2=_0x3f88();return _0x22b4=function(_0x22b4c1,_0x3469b3){_0x22b4c1=_0x22b4c1-0x186;let _0x581788=_0x3f88c2[_0x22b4c1];return _0x581788;},_0x22b4(_0x23faae,_0x4fbef8);}function _0x3f88(){const _0x2f3c6b=['personId','@univerjs/thread-comment-ui','Solved','getOwnPropertyDescriptor','Injector','ThreadCommentModel','thread-comment-data-source.config','@univerjs-pro/license','UniverCore','IThreadCommentDataSourceService','format','_init','object','Disposable','8744016tabNpd','symbol','resolved','UniverProThreadCommentDatasource','_initUserSync','comments','907811WhcnTO','requireSession','unitId','type','@univerjs-pro/collaboration-client','ref','commentUpdate$','addUser','_threadCommentDataSource','_threadCommentDataSourceService','exports','replies','Plugin','dayjs','Edit','14CWajsn','add','createTimestamp','_injector','post','payload','IConfigService','_config','rangeType','getMemberID','/edit','userID','threadId','3539730qTFvuA','_configService','/reply','DependentOn','_httpService','onStarting','@univerjs/network','CommentService','content','/add','UniverProLicense','OpenOrReOpen','userId','root','comment','UniverThreadCommentUIPlugin','parse','syncUpdateMutationToColla','body','Add','@univerjs/core','989465bwhLXh','4214064WuuNyK','getCurrentUser','_userService','Solve','UniverProCollaborationClient','COMMENT','YYYY/MM/DD\x20HH:mm','/delete','_sessionService','map','2bfWrSJ','UniverNetwork','16gwhxzv','UniverInstanceType','replyId','deleteComment','Inject','length','forEach','getComment','4202604OVPEEC','error','users','customRanges','UNIVER_UNKNOWN','Unknown','dataSource','_commentService','slice','toStringTag','disposeWithMe','HTTPService','Module','/universer-api/comment/unit/','filter','UNRECOGNIZED','UniverThreadCommentDataSourcePlugin','delete','defineProperty','_threadCommentModel','CustomRangeType','stringify','getUnit','@univerjs/thread-comment','/list','amd','bufferTime','rxjs','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','rangeId','user','solved','subscribe','Delete','UserManagerService','2256546hYHxgE','Reply','/solved','updateComment','code','addComment','values','get','UniverThreadComment'];_0x3f88=function(){return _0x2f3c6b;};return _0x3f88();}(function(_0x1de59d,_0x5891e4){const _0x475848=_0x22b4,_0x37f964=_0x1de59d();while(!![]){try{const _0x1af85c=-parseInt(_0x475848(0x206))/0x1*(-parseInt(_0x475848(0x1bc))/0x2)+-parseInt(_0x475848(0x1e9))/0x3+-parseInt(_0x475848(0x1be))/0x4*(-parseInt(_0x475848(0x1b1))/0x5)+parseInt(_0x475848(0x1b2))/0x6*(-parseInt(_0x475848(0x18f))/0x7)+parseInt(_0x475848(0x200))/0x8+parseInt(_0x475848(0x1c6))/0x9+-parseInt(_0x475848(0x19c))/0xa;if(_0x1af85c===_0x5891e4)break;else _0x37f964['push'](_0x37f964['shift']());}catch(_0x54c95e){_0x37f964['push'](_0x37f964['shift']());}}}(_0x3f88,0xb6bd2),function(_0xf771dd,_0x5b9a34){const _0x2053c3=_0x22b4;typeof exports==_0x2053c3(0x1fe)&&typeof module<'u'?_0x5b9a34(exports,require(_0x2053c3(0x20a)),require(_0x2053c3(0x1f9)),require(_0x2053c3(0x1b0)),require(_0x2053c3(0x1f3)),require(_0x2053c3(0x1dd)),require(_0x2053c3(0x1e1)),require(_0x2053c3(0x1a2))):typeof define=='function'&&define[_0x2053c3(0x1df)]?define([_0x2053c3(0x18a),_0x2053c3(0x20a),'@univerjs-pro/license',_0x2053c3(0x1b0),_0x2053c3(0x1f3),_0x2053c3(0x1dd),_0x2053c3(0x1e1),'@univerjs/network'],_0x5b9a34):(_0xf771dd=typeof globalThis<'u'?globalThis:_0xf771dd||self,_0x5b9a34(_0xf771dd[_0x2053c3(0x203)]={},_0xf771dd[_0x2053c3(0x1b6)],_0xf771dd[_0x2053c3(0x1a6)],_0xf771dd[_0x2053c3(0x1fa)],_0xf771dd['UniverThreadCommentUi'],_0xf771dd[_0x2053c3(0x1f1)],_0xf771dd[_0x2053c3(0x1e1)],_0xf771dd[_0x2053c3(0x1bd)]));}(this,function(_0x44af1f,_0x32c0b7,_0x43cd45,_0x22c7fc,_0x135374,_0x5ecf49,_0x4e7339,_0x4ec98e){'use strict';const _0x3d2e12=_0x22b4;const _0x47384a=_0x3d2e12(0x1e2);var _0x54f7d2=(_0x5de708=>(_0x5de708[_0x5de708[_0x3d2e12(0x1a7)]=0x0]='OpenOrReOpen',_0x5de708[_0x5de708[_0x3d2e12(0x1f4)]=0x1]=_0x3d2e12(0x1f4),_0x5de708[_0x5de708['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x5de708))(_0x54f7d2||{}),_0x3e2ea8=(_0x72cb28=>(_0x72cb28[_0x72cb28[_0x3d2e12(0x1cb)]=0x0]=_0x3d2e12(0x1cb),_0x72cb28[_0x72cb28[_0x3d2e12(0x1af)]=0x1]='Add',_0x72cb28[_0x72cb28[_0x3d2e12(0x1ea)]=0x2]=_0x3d2e12(0x1ea),_0x72cb28[_0x72cb28['Edit']=0x3]=_0x3d2e12(0x18e),_0x72cb28[_0x72cb28[_0x3d2e12(0x1e7)]=0x4]='Delete',_0x72cb28[_0x72cb28[_0x3d2e12(0x1b5)]=0x5]=_0x3d2e12(0x1b5),_0x72cb28[_0x72cb28[_0x3d2e12(0x1d5)]=-0x1]=_0x3d2e12(0x1d5),_0x72cb28))(_0x3e2ea8||{});const _0xb0f7b6=_0x155352=>_0x22c7fc[_0x3d2e12(0x18d)](new Date(+_0x155352))[_0x3d2e12(0x1fc)](_0x3d2e12(0x1b8)),_0x40db74=async(_0x4cea84,_0x430dce)=>{const _0x5d9e47=_0x3d2e12,_0x81c1a5=_0x4cea84[_0x5d9e47(0x1f0)](_0x22c7fc['UserManagerService']),_0x339945=_0x4cea84[_0x5d9e47(0x1f0)](_0x4ec98e[_0x5d9e47(0x1d1)]);_0x430dce['forEach'](_0x28cdea=>{const _0x262c4c=_0x5d9e47;_0x81c1a5['getUser'](_0x28cdea)&&_0x430dce[_0x262c4c(0x1d7)](_0x28cdea);}),_0x430dce['size']&&(await _0x339945[_0x5d9e47(0x1f0)]('/universer-api/user/list',{'params':{'userIDs':[..._0x430dce]}}))[_0x5d9e47(0x1ae)][_0x5d9e47(0x1c8)]['forEach'](_0x21b55a=>{const _0x2fa8cb=_0x5d9e47;_0x21b55a&&_0x81c1a5[_0x2fa8cb(0x187)](_0x21b55a);});};var _0xd011ec=Object[_0x3d2e12(0x1f5)],_0x1c0e4c=(_0x496c76,_0x26806b,_0x5d4771,_0x37865e)=>{const _0x2d2971=_0x3d2e12;for(var _0x42e407=_0x37865e>0x1?void 0x0:_0x37865e?_0xd011ec(_0x26806b,_0x5d4771):_0x26806b,_0x3c7e33=_0x496c76[_0x2d2971(0x1c3)]-0x1,_0x321fbf;_0x3c7e33>=0x0;_0x3c7e33--)(_0x321fbf=_0x496c76[_0x3c7e33])&&(_0x42e407=_0x321fbf(_0x42e407)||_0x42e407);return _0x42e407;},_0x37c6de=(_0x45da3c,_0x3443b7)=>(_0x2bba68,_0x46575b)=>_0x3443b7(_0x2bba68,_0x46575b,_0x45da3c);let _0x54f720=class extends _0x22c7fc[_0x3d2e12(0x1ff)]{constructor(_0x553255,_0x3e9403,_0x2441ed,_0xaed4f9){const _0x5cbb30=_0x3d2e12;super(),this[_0x5cbb30(0x1cd)]=_0x553255,this[_0x5cbb30(0x1d9)]=_0x3e9403,this['_userService']=_0x2441ed,this[_0x5cbb30(0x192)]=_0xaed4f9,this[_0x5cbb30(0x1fd)](),this[_0x5cbb30(0x204)]();}[_0x3d2e12(0x204)](){const _0x3064c7=_0x3d2e12;this[_0x3064c7(0x1d0)](this[_0x3064c7(0x1d9)][_0x3064c7(0x186)]['pipe'](_0x4e7339[_0x3064c7(0x1e0)](0x10))[_0x3064c7(0x1e6)](_0x5b0746=>{const _0x4bb6f3=_0x3064c7,_0x27d1f1=new Set();_0x5b0746[_0x4bb6f3(0x1c4)](_0x206bf6=>{const _0x171bae=_0x4bb6f3;switch(_0x206bf6['type']){case _0x171bae(0x190):{const _0x45efc2=_0x206bf6[_0x171bae(0x194)][_0x171bae(0x1f2)];_0x27d1f1[_0x171bae(0x190)](_0x45efc2);break;}}}),_0x40db74(this[_0x4bb6f3(0x192)],_0x27d1f1);}));}['_init'](){const _0x29d390=_0x3d2e12;this[_0x29d390(0x1d0)](this[_0x29d390(0x1cd)][_0x29d390(0x186)][_0x29d390(0x1e6)](async _0xdaf558=>{const _0x2f1118=_0x29d390;var _0x34ffac,_0x244b03,_0x2f7c1a,_0x279be7;const _0x40754d=(_0x34ffac=this[_0x2f1118(0x1d9)][_0x2f1118(0x1dc)](_0xdaf558[_0x2f1118(0x208)])['find'](_0x104b2a=>_0x104b2a[_0x2f1118(0x19b)]===_0xdaf558[_0x2f1118(0x19b)]))==null?void 0x0:_0x34ffac[_0x2f1118(0x1a9)];if(!_0x40754d)return;const {unitId:_0x1aae0b,subUnitId:_0xbf7fca}=_0x40754d;switch(_0xdaf558[_0x2f1118(0x1e4)]&&this[_0x2f1118(0x1b4)][_0x2f1118(0x187)](_0xdaf558[_0x2f1118(0x1e4)]),_0xdaf558[_0x2f1118(0x209)]){case _0x3e2ea8['Add']:break;case _0x3e2ea8[_0x2f1118(0x1ea)]:{this['_threadCommentModel'][_0x2f1118(0x1ee)](_0x1aae0b,_0xbf7fca,{'unitId':_0x1aae0b,'subUnitId':_0xbf7fca,'ref':'','id':_0xdaf558['replyId'],'dT':_0xb0f7b6(+_0xdaf558[_0x2f1118(0x191)]),'threadId':_0xdaf558[_0x2f1118(0x19b)],'personId':(_0x2f7c1a=(_0x244b03=_0xdaf558[_0x2f1118(0x1e4)])==null?void 0x0:_0x244b03[_0x2f1118(0x19a)])!=null?_0x2f7c1a:_0xdaf558[_0x2f1118(0x1a8)],'text':JSON[_0x2f1118(0x1ac)](_0xdaf558['content']),'parentId':_0x40754d['id']});break;}case _0x3e2ea8[_0x2f1118(0x1e7)]:{const _0x56b0ce=this[_0x2f1118(0x1d9)][_0x2f1118(0x1c5)](_0x1aae0b,_0xbf7fca,_0xdaf558[_0x2f1118(0x1c0)]);_0x56b0ce&&_0x56b0ce['parentId']&&this[_0x2f1118(0x1d9)][_0x2f1118(0x1c1)](_0x1aae0b,_0xbf7fca,_0xdaf558[_0x2f1118(0x1c0)]);break;}case _0x3e2ea8[_0x2f1118(0x18e)]:{this['_threadCommentModel'][_0x2f1118(0x1ec)](_0x1aae0b,_0xbf7fca,{'commentId':_0xdaf558[_0x2f1118(0x1c0)],'text':JSON[_0x2f1118(0x1ac)](_0xdaf558[_0x2f1118(0x1a4)])});break;}case _0x3e2ea8[_0x2f1118(0x1b5)]:{const _0x3c1317=(_0x279be7=this[_0x2f1118(0x1d9)][_0x2f1118(0x1dc)](_0xdaf558[_0x2f1118(0x208)])['find'](_0x293b6c=>_0x293b6c['threadId']===_0xdaf558[_0x2f1118(0x19b)]))==null?void 0x0:_0x279be7[_0x2f1118(0x1a9)];_0x3c1317&&this['_threadCommentModel']['resolveComment'](_0x1aae0b,_0xbf7fca,_0x3c1317['id'],_0xdaf558[_0x2f1118(0x1e5)]===_0x54f7d2[_0x2f1118(0x1f4)]);break;}}}));}};_0x54f720=_0x1c0e4c([_0x37c6de(0x0,_0x22c7fc['Inject'](_0x32c0b7[_0x3d2e12(0x1a3)])),_0x37c6de(0x1,_0x22c7fc[_0x3d2e12(0x1c2)](_0x5ecf49[_0x3d2e12(0x1f7)])),_0x37c6de(0x2,_0x22c7fc['Inject'](_0x22c7fc[_0x3d2e12(0x1e8)])),_0x37c6de(0x3,_0x22c7fc[_0x3d2e12(0x1c2)](_0x22c7fc[_0x3d2e12(0x1f6)]))],_0x54f720);const _0x1a8629=_0x3d2e12(0x1f8),_0x2febc9={};var _0x21edfe=Object['getOwnPropertyDescriptor'],_0x5535c6=(_0x42a6d1,_0x29966d,_0x2f7bc3,_0x1a33c3)=>{for(var _0xa5fa4=_0x1a33c3>0x1?void 0x0:_0x1a33c3?_0x21edfe(_0x29966d,_0x2f7bc3):_0x29966d,_0x377a8b=_0x42a6d1['length']-0x1,_0x5ac95a;_0x377a8b>=0x0;_0x377a8b--)(_0x5ac95a=_0x42a6d1[_0x377a8b])&&(_0xa5fa4=_0x5ac95a(_0xa5fa4)||_0xa5fa4);return _0xa5fa4;},_0x411192=(_0xde14e3,_0x3885b1)=>(_0x23abf5,_0x159632)=>_0x3885b1(_0x23abf5,_0x159632,_0xde14e3);function _0x3ba965(_0x231145,_0x46e3f6){const _0x12b351=_0x3d2e12,_0x1efa34=_0x231145[_0x12b351(0x18b)][0x0];return{..._0x46e3f6,'id':_0x1efa34[_0x12b351(0x1c0)],'resolved':_0x231145[_0x12b351(0x1e5)]===0x1,'dT':_0xb0f7b6(_0x1efa34[_0x12b351(0x191)]),'personId':_0x1efa34[_0x12b351(0x1a8)],'threadId':_0x1efa34[_0x12b351(0x19b)]};}function _0x2e992d(_0x1fbf2c,_0x92d8ba,_0x352e3d){const _0x8335f6=_0x3d2e12;var _0x183397,_0x5dcdd9;if(((_0x5dcdd9=(_0x183397=_0x1fbf2c==null?void 0x0:_0x1fbf2c[_0x8335f6(0x18b)])==null?void 0x0:_0x183397[_0x8335f6(0x1c3)])!=null?_0x5dcdd9:0x0)>0x0){const _0x2abaa3=(_0x1465d3,_0x220824)=>({'id':_0x1465d3['replyId'],'threadId':_0x1465d3[_0x8335f6(0x19b)],'dT':_0xb0f7b6(_0x1465d3[_0x8335f6(0x191)]),'personId':_0x1465d3[_0x8335f6(0x1a8)],'resolved':_0x1fbf2c[_0x8335f6(0x1e5)]===_0x54f7d2['Solved'],'unitId':_0x92d8ba,'subUnitId':_0x352e3d,'text':JSON[_0x8335f6(0x1ac)](_0x1465d3[_0x8335f6(0x1a4)]),'parentId':_0x220824}),_0x36313a=_0x2abaa3(_0x1fbf2c[_0x8335f6(0x18b)][0x0]);return{..._0x36313a,'children':_0x1fbf2c[_0x8335f6(0x18b)][_0x8335f6(0x1ce)](0x1)[_0x8335f6(0x1bb)](_0x3dcb1c=>_0x2abaa3(_0x3dcb1c,_0x36313a['id']))};}return null;}let _0x54ec02=class{constructor(_0x1c0032,_0x32483c,_0x3af658,_0x13152d){const _0x590657=_0x3d2e12;this[_0x590657(0x1a0)]=_0x1c0032,this[_0x590657(0x1b4)]=_0x32483c,this[_0x590657(0x1ba)]=_0x3af658,this['_injector']=_0x13152d;}async[_0x3d2e12(0x1ee)](_0x59efad){const _0x50f8eb=_0x3d2e12;var _0x4ca6f6,_0x230f6b;const {parentId:_0x5108ab,unitId:_0x1e18a9,text:_0x421418,threadId:_0xa2449f}=_0x59efad,_0x34001d=(_0x230f6b=(_0x4ca6f6=_0x421418[_0x50f8eb(0x1c9)])==null?void 0x0:_0x4ca6f6['filter'](_0x5bb648=>_0x5bb648[_0x50f8eb(0x197)]===_0x22c7fc['CustomRangeType'][_0x50f8eb(0x1b7)])[_0x50f8eb(0x1bb)](_0x5041c6=>_0x5041c6[_0x50f8eb(0x1e3)]))!=null?_0x230f6b:[],_0x4d8540=JSON[_0x50f8eb(0x1db)](_0x421418),_0x5a8297=(await this[_0x50f8eb(0x1ba)]['requireSession'](_0x1e18a9))[_0x50f8eb(0x198)]();if(_0x5108ab){const _0x220631={'memberId':_0x5a8297,'unitId':_0x1e18a9,'content':_0x4d8540,'mention':_0x34001d,'threadId':_0xa2449f},_0x1095f8=(await this[_0x50f8eb(0x1a0)][_0x50f8eb(0x193)](_0x50f8eb(0x1d3)+_0x1e18a9+_0x50f8eb(0x19e),{'body':_0x220631}))[_0x50f8eb(0x1ae)]['reply'];return{..._0x59efad,'id':_0x1095f8[_0x50f8eb(0x1c0)],'dT':_0x22c7fc[_0x50f8eb(0x18d)](+_0x1095f8['createTimestamp'])[_0x50f8eb(0x1fc)](_0x50f8eb(0x1b8)),'personId':_0x1095f8['userId']};}else{const _0x1a1528={'memberId':_0x5a8297,'unitId':_0x1e18a9,'content':_0x4d8540,'mention':_0x34001d},_0x4ac132=await this['_httpService'][_0x50f8eb(0x193)]('/universer-api/comment/unit/'+_0x1e18a9+_0x50f8eb(0x1a5),{'body':_0x1a1528});return _0x3ba965(_0x4ac132[_0x50f8eb(0x1ae)][_0x50f8eb(0x1aa)],_0x59efad);}}async[_0x3d2e12(0x1ec)](_0x587fea){const _0x390f8d=_0x3d2e12;var _0x346486,_0x4cebcd;const {text:_0x1eee9d,unitId:_0x23da7e}=_0x587fea,_0x360248=(_0x4cebcd=(_0x346486=_0x1eee9d[_0x390f8d(0x1c9)])==null?void 0x0:_0x346486[_0x390f8d(0x1d4)](_0x7f61e=>_0x7f61e['rangeType']===_0x22c7fc[_0x390f8d(0x1da)]['COMMENT'])['map'](_0x81b12b=>_0x81b12b[_0x390f8d(0x1e3)]))!=null?_0x4cebcd:[],_0x30d954=JSON[_0x390f8d(0x1db)](_0x1eee9d),_0x53cbe6=_0x587fea[_0x390f8d(0x19b)],_0x539260=_0x587fea['id'],_0x5d62e7={'memberId':(await this[_0x390f8d(0x1ba)][_0x390f8d(0x207)](_0x23da7e))[_0x390f8d(0x198)](),'unitId':_0x23da7e,'threadId':_0x53cbe6,'mention':_0x360248,'content':_0x30d954,'replyId':_0x539260},_0x14ac0c=await this[_0x390f8d(0x1a0)][_0x390f8d(0x193)]('/universer-api/comment/unit/'+_0x23da7e+_0x390f8d(0x199),{'body':_0x5d62e7});return!_0x14ac0c[_0x390f8d(0x1ae)][_0x390f8d(0x1c7)]||_0x14ac0c['body']['error'][_0x390f8d(0x1ed)]===0x1;}async['resolveComment'](_0x57c55e){const _0x345699=_0x3d2e12,{unitId:_0x22894e}=_0x57c55e,_0x115430=_0x57c55e[_0x345699(0x19b)],_0xcf782f={'memberId':this['_userService'][_0x345699(0x1b3)]()['userID'],'unitId':_0x22894e,'threadId':_0x115430,'solved':_0x57c55e[_0x345699(0x202)]?_0x54f7d2['Solved']:_0x54f7d2[_0x345699(0x1a7)]},_0x3c9e44=await this['_httpService'][_0x345699(0x193)]('/universer-api/comment/unit/'+_0x22894e+_0x345699(0x1eb),{'body':_0xcf782f});return!_0x3c9e44[_0x345699(0x1ae)][_0x345699(0x1c7)]||_0x3c9e44[_0x345699(0x1ae)][_0x345699(0x1c7)][_0x345699(0x1ed)]===0x1;}async[_0x3d2e12(0x1c1)](_0x76a791,_0x344be9,_0x286ad3,_0xbbf246){const _0x40d122=_0x3d2e12,_0x171f06={'memberId':(await this[_0x40d122(0x1ba)][_0x40d122(0x207)](_0x76a791))[_0x40d122(0x198)](),'threadId':_0x286ad3,'replyId':_0xbbf246,'unitId':_0x76a791},_0x6d3f82=await this['_httpService'][_0x40d122(0x193)](_0x40d122(0x1d3)+_0x76a791+_0x40d122(0x1b9),{'body':_0x171f06});return!_0x6d3f82['body']['error']||_0x6d3f82[_0x40d122(0x1ae)][_0x40d122(0x1c7)][_0x40d122(0x1ed)]===0x1;}async['listComments'](_0x4dc7e7,_0x5836b0,_0x4bbe05){const _0x3a6768=_0x3d2e12,_0x423243={'unitId':_0x4dc7e7,'threadId':_0x4bbe05},_0x55838f=await this['_httpService'][_0x3a6768(0x193)](_0x3a6768(0x1d3)+_0x4dc7e7+_0x3a6768(0x1de),{'body':_0x423243}),_0xcae242=_0x4bbe05['map'](_0x11de5e=>_0x2e992d(_0x55838f[_0x3a6768(0x1ae)][_0x3a6768(0x205)][_0x11de5e],_0x4dc7e7,_0x5836b0))[_0x3a6768(0x1d4)](Boolean);return Object[_0x3a6768(0x1ef)](_0x55838f['body'][_0x3a6768(0x1c8)])[_0x3a6768(0x1c4)](_0x2adf6a=>{const _0x48e6a5=_0x3a6768;this[_0x48e6a5(0x1b4)][_0x48e6a5(0x187)](_0x2adf6a);}),_0xcae242;}['saveCommentToSnapshot'](_0x3a404b){const _0x18dd35=_0x3d2e12;return{'id':_0x3a404b['id'],'threadId':_0x3a404b[_0x18dd35(0x19b)],'ref':_0x3a404b[_0x18dd35(0x20b)]};}};_0x54ec02=_0x5535c6([_0x411192(0x0,_0x22c7fc[_0x3d2e12(0x1c2)](_0x4ec98e[_0x3d2e12(0x1d1)])),_0x411192(0x1,_0x22c7fc['Inject'](_0x22c7fc[_0x3d2e12(0x1e8)])),_0x411192(0x2,_0x22c7fc[_0x3d2e12(0x1c2)](_0x32c0b7['CollaborationSessionService'])),_0x411192(0x3,_0x22c7fc[_0x3d2e12(0x1c2)](_0x22c7fc[_0x3d2e12(0x1f6)]))],_0x54ec02);var _0x450704=Object[_0x3d2e12(0x1f5)],_0x31b63e=(_0x177251,_0x35fef4,_0x1fa207,_0x4ab15d)=>{for(var _0x571fe6=_0x4ab15d>0x1?void 0x0:_0x4ab15d?_0x450704(_0x35fef4,_0x1fa207):_0x35fef4,_0x2e7f55=_0x177251['length']-0x1,_0x461b5c;_0x2e7f55>=0x0;_0x2e7f55--)(_0x461b5c=_0x177251[_0x2e7f55])&&(_0x571fe6=_0x461b5c(_0x571fe6)||_0x571fe6);return _0x571fe6;},_0x3193ad=(_0x26fcd2,_0x16bddc)=>(_0xf1651d,_0x4971f3)=>_0x16bddc(_0xf1651d,_0x4971f3,_0x26fcd2);let _0x5b5926=class extends _0x22c7fc[_0x3d2e12(0x1ff)]{constructor(_0x25c1ef,_0x55072a){const _0x3119f9=_0x3d2e12;super(),this[_0x3119f9(0x189)]=_0x25c1ef,this[_0x3119f9(0x188)]=_0x55072a,this['_initDataSource']();}['_initDataSource'](){const _0x2ed1aa=_0x3d2e12;this[_0x2ed1aa(0x189)][_0x2ed1aa(0x1cc)]=this['_threadCommentDataSource'],this[_0x2ed1aa(0x189)][_0x2ed1aa(0x1ad)]=!0x1;}};_0x5b5926=_0x31b63e([_0x3193ad(0x0,_0x5ecf49[_0x3d2e12(0x1fb)]),_0x3193ad(0x1,_0x22c7fc[_0x3d2e12(0x1c2)](_0x54ec02))],_0x5b5926);var _0x4c4ade=Object[_0x3d2e12(0x1d8)],_0xa741f5=Object[_0x3d2e12(0x1f5)],_0x38a5ae=(_0x336f01,_0x2a4066,_0x5492f3)=>_0x2a4066 in _0x336f01?_0x4c4ade(_0x336f01,_0x2a4066,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5492f3}):_0x336f01[_0x2a4066]=_0x5492f3,_0x3da4d0=(_0x56bdc0,_0x1bc516,_0xaf74ad,_0x6340fd)=>{const _0x3857f0=_0x3d2e12;for(var _0x571b65=_0x6340fd>0x1?void 0x0:_0x6340fd?_0xa741f5(_0x1bc516,_0xaf74ad):_0x1bc516,_0x5618bf=_0x56bdc0[_0x3857f0(0x1c3)]-0x1,_0x3bff84;_0x5618bf>=0x0;_0x5618bf--)(_0x3bff84=_0x56bdc0[_0x5618bf])&&(_0x571b65=_0x3bff84(_0x571b65)||_0x571b65);return _0x571b65;},_0x5a17ea=(_0x128078,_0x4663c0)=>(_0x2af8b3,_0x3524b9)=>_0x4663c0(_0x2af8b3,_0x3524b9,_0x128078),_0x5adf38=(_0x5c6d7b,_0x3568ca,_0x51a28c)=>_0x38a5ae(_0x5c6d7b,typeof _0x3568ca!=_0x3d2e12(0x201)?_0x3568ca+'':_0x3568ca,_0x51a28c);_0x44af1f['UniverThreadCommentDataSourcePlugin']=class extends _0x22c7fc[_0x3d2e12(0x18c)]{constructor(_0x411331=_0x2febc9,_0x354b39,_0xb3f2fa){const _0x2a1c10=_0x3d2e12;super(),this[_0x2a1c10(0x196)]=_0x411331,this[_0x2a1c10(0x192)]=_0x354b39,this['_configService']=_0xb3f2fa;const {..._0x143405}=_0x22c7fc['merge']({},_0x2febc9,this[_0x2a1c10(0x196)]);this[_0x2a1c10(0x19d)]['setConfig'](_0x1a8629,_0x143405);}[_0x3d2e12(0x1a1)](){const _0x15b0ad=_0x3d2e12;[[_0x54ec02],[_0x5b5926],[_0x54f720]][_0x15b0ad(0x1c4)](_0x5e01f3=>{const _0xaf3056=_0x15b0ad;this[_0xaf3056(0x192)]['add'](_0x5e01f3);});}['onReady'](){const _0x467ecb=_0x3d2e12;this[_0x467ecb(0x192)][_0x467ecb(0x1f0)](_0x5b5926),this['_injector'][_0x467ecb(0x1f0)](_0x54f720);}},_0x5adf38(_0x44af1f[_0x3d2e12(0x1d6)],'pluginName',_0x47384a),_0x5adf38(_0x44af1f['UniverThreadCommentDataSourcePlugin'],_0x3d2e12(0x209),_0x22c7fc[_0x3d2e12(0x1bf)][_0x3d2e12(0x1ca)]),_0x44af1f[_0x3d2e12(0x1d6)]=_0x3da4d0([_0x22c7fc[_0x3d2e12(0x19f)](_0x135374[_0x3d2e12(0x1ab)],_0x32c0b7['UniverCollaborationClientPlugin'],_0x43cd45['UniverLicensePlugin']),_0x5a17ea(0x1,_0x22c7fc[_0x3d2e12(0x1c2)](_0x22c7fc[_0x3d2e12(0x1f6)])),_0x5a17ea(0x2,_0x22c7fc[_0x3d2e12(0x195)])],_0x44af1f['UniverThreadCommentDataSourcePlugin']),Object['defineProperty'](_0x44af1f,Symbol[_0x3d2e12(0x1cf)],{'value':_0x3d2e12(0x1d2)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/thread-comment-datasource",
|
|
3
|
-
"version": "0.8.2
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
"rxjs": ">=7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@univerjs-pro/collaboration-client": "0.8.2
|
|
49
|
-
"@univerjs
|
|
50
|
-
"@univerjs/
|
|
48
|
+
"@univerjs-pro/collaboration-client": "0.8.2",
|
|
49
|
+
"@univerjs/core": "0.8.2",
|
|
50
|
+
"@univerjs-pro/license": "0.8.2",
|
|
51
51
|
"@univerjs/protocol": "0.1.47-alpha.0",
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/thread-comment
|
|
52
|
+
"@univerjs/thread-comment-ui": "0.8.2",
|
|
53
|
+
"@univerjs/network": "0.8.2",
|
|
54
|
+
"@univerjs/thread-comment": "0.8.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"rxjs": "7.8.2",
|
|
58
58
|
"typescript": "^5.8.3",
|
|
59
59
|
"vite": "^6.3.5",
|
|
60
|
-
"vitest": "^3.2.
|
|
60
|
+
"vitest": "^3.2.3",
|
|
61
61
|
"@univerjs-infra/shared": "0.8.2"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|