@univerjs-pro/thread-comment-datasource 0.5.2-nightly.202501011606 → 0.5.2-nightly.202501021606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0xd297(_0x320e0d,_0x572f99){const _0xea1c5=_0xea1c();return _0xd297=function(_0xd297e1,_0x4eea7d){_0xd297e1=_0xd297e1-0x19a;let _0x215279=_0xea1c5[_0xd297e1];return _0x215279;},_0xd297(_0x320e0d,_0x572f99);}const _0x5514f8=_0xd297;(function(_0x20afbc,_0x1a71c4){const _0x4c32b5=_0xd297,_0x574d06=_0x20afbc();while(!![]){try{const _0x2cbdbb=parseInt(_0x4c32b5(0x1b8))/0x1*(parseInt(_0x4c32b5(0x1f1))/0x2)+-parseInt(_0x4c32b5(0x1ae))/0x3*(parseInt(_0x4c32b5(0x1ed))/0x4)+parseInt(_0x4c32b5(0x1e3))/0x5*(parseInt(_0x4c32b5(0x1bd))/0x6)+parseInt(_0x4c32b5(0x1da))/0x7*(-parseInt(_0x4c32b5(0x1d7))/0x8)+parseInt(_0x4c32b5(0x1bf))/0x9+-parseInt(_0x4c32b5(0x1ce))/0xa+parseInt(_0x4c32b5(0x1b9))/0xb*(-parseInt(_0x4c32b5(0x1c1))/0xc);if(_0x2cbdbb===_0x1a71c4)break;else _0x574d06['push'](_0x574d06['shift']());}catch(_0x4a950e){_0x574d06['push'](_0x574d06['shift']());}}}(_0xea1c,0x5c501));Object['defineProperty'](exports,Symbol[_0x5514f8(0x1b2)],{'value':_0x5514f8(0x1a9)});const C=require(_0x5514f8(0x1a4)),T=require('@univerjs-pro/license'),c=require(_0x5514f8(0x1cb)),w=require(_0x5514f8(0x215)),P=require(_0x5514f8(0x1f5)),U=require(_0x5514f8(0x1a0)),M=require(_0x5514f8(0x1a7)),R=_0x5514f8(0x207);function _0xea1c(){const _0x1dd936=['find','_initDataSource','forEach','7220OFMzGG','disposeWithMe','payload','addComment','2mMrHRm','DependentOn','IThreadCommentDataSourceService','updateComment','@univerjs/thread-comment','CustomRangeType','_commentService','symbol','get','OpenOrReOpen','getCurrentUser','getUser','Reply','_init','rangeType','Solved','saveCommentToSnapshot','listComments','type','addUser','_userService','Solve','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','rangeId','COMMENT','userID','_httpService','Inject','users','createTimestamp','UniverLicensePlugin','dataSource','threadId','CommentService','replies','/universer-api/user/list','@univerjs/thread-comment-ui','resolved','unitId','replyId','_threadCommentDataSourceService','Disposable','length','Add','UNIVER_UNKNOWN','_threadCommentDataSource','rxjs','_config','dayjs','filter','@univerjs-pro/collaboration-client','map','YYYY/MM/DD\x20HH:mm','@univerjs/network','customRanges','Module','add','parse','merge','Plugin','279fkZlNY','body','/delete','UniverThreadCommentDataSourcePlugin','toStringTag','IConfigService','getComment','root','UNRECOGNIZED','_threadCommentModel','687811ZwLspc','969353VINrSj','_sessionService','HTTPService','getMemberID','823590FUYxGF','Unknown','2660400oGIzNd','requireSession','12DkEzsS','ThreadCommentModel','defineProperty','content','subscribe','post','error','Delete','solved','/solved','@univerjs/core','format','reply','5333870NqhESu','bufferTime','pluginName','UserManagerService','user','parentId','/add','Injector','stringify','9848xMoRPl','pipe','deleteComment','2856oltbRA','userId','CollaborationSessionService','UniverInstanceType','thread-comment-data-source.config','Edit','getOwnPropertyDescriptor','size','personId','25WJcfDc','_injector','commentUpdate$','code','_initUserSync','/universer-api/comment/unit/','comments'];_0xea1c=function(){return _0x1dd936;};return _0xea1c();}var I=(_0x2f79d9=>(_0x2f79d9[_0x2f79d9['OpenOrReOpen']=0x0]=_0x5514f8(0x1fa),_0x2f79d9[_0x2f79d9[_0x5514f8(0x200)]=0x1]=_0x5514f8(0x200),_0x2f79d9[_0x2f79d9[_0x5514f8(0x1b6)]=-0x1]=_0x5514f8(0x1b6),_0x2f79d9))(I||{}),v=(_0x23fdc4=>(_0x23fdc4[_0x23fdc4[_0x5514f8(0x1be)]=0x0]=_0x5514f8(0x1be),_0x23fdc4[_0x23fdc4[_0x5514f8(0x19d)]=0x1]='Add',_0x23fdc4[_0x23fdc4[_0x5514f8(0x1fd)]=0x2]=_0x5514f8(0x1fd),_0x23fdc4[_0x23fdc4[_0x5514f8(0x1df)]=0x3]=_0x5514f8(0x1df),_0x23fdc4[_0x23fdc4[_0x5514f8(0x1c8)]=0x4]='Delete',_0x23fdc4[_0x23fdc4[_0x5514f8(0x206)]=0x5]='Solve',_0x23fdc4[_0x23fdc4[_0x5514f8(0x1b6)]=-0x1]=_0x5514f8(0x1b6),_0x23fdc4))(v||{});const g=_0x36b8dc=>c[_0x5514f8(0x1a2)](new Date(+_0x36b8dc))[_0x5514f8(0x1cc)](_0x5514f8(0x1a6)),$=async(_0x592ecf,_0x3dde3f)=>{const _0x39f38f=_0x5514f8,_0x5ca974=_0x592ecf[_0x39f38f(0x1f9)](c['UserManagerService']),_0xa7b6f9=_0x592ecf['get'](M[_0x39f38f(0x1bb)]);_0x3dde3f[_0x39f38f(0x1ec)](_0x47628c=>{const _0x1f7f4d=_0x39f38f;_0x5ca974[_0x1f7f4d(0x1fc)](_0x47628c)&&_0x3dde3f['delete'](_0x47628c);}),_0x3dde3f[_0x39f38f(0x1e1)]&&(await _0xa7b6f9['get'](_0x39f38f(0x214),{'params':{'userIDs':[..._0x3dde3f]}}))[_0x39f38f(0x1af)][_0x39f38f(0x20d)][_0x39f38f(0x1ec)](_0x398df9=>{const _0x47f4f9=_0x39f38f;_0x398df9&&_0x5ca974[_0x47f4f9(0x204)](_0x398df9);});};var E=Object[_0x5514f8(0x1c3)],q=Object[_0x5514f8(0x1e0)],A=(_0x2e1086,_0x4083b6,_0x1bdebb,_0x2ec7c6)=>{const _0x4d7944=_0x5514f8;for(var _0x1eaa5b=_0x2ec7c6>0x1?void 0x0:_0x2ec7c6?q(_0x4083b6,_0x1bdebb):_0x4083b6,_0x1d0668=_0x2e1086[_0x4d7944(0x19c)]-0x1,_0x546037;_0x1d0668>=0x0;_0x1d0668--)(_0x546037=_0x2e1086[_0x1d0668])&&(_0x1eaa5b=(_0x2ec7c6?_0x546037(_0x4083b6,_0x1bdebb,_0x1eaa5b):_0x546037(_0x1eaa5b))||_0x1eaa5b);return _0x2ec7c6&&_0x1eaa5b&&E(_0x4083b6,_0x1bdebb,_0x1eaa5b),_0x1eaa5b;},_=(_0x163c3e,_0x1b250f)=>(_0xd8d005,_0xb247ba)=>_0x1b250f(_0xd8d005,_0xb247ba,_0x163c3e);let S=class extends c[_0x5514f8(0x19b)]{constructor(_0x1933a2,_0x45cc74,_0x1faff7,_0x46a60c){const _0x2cce19=_0x5514f8;super(),this['_commentService']=_0x1933a2,this['_threadCommentModel']=_0x45cc74,this[_0x2cce19(0x205)]=_0x1faff7,this[_0x2cce19(0x1e4)]=_0x46a60c,this[_0x2cce19(0x1fe)](),this['_initUserSync']();}[_0x5514f8(0x1e7)](){const _0x5e6ef2=_0x5514f8;this[_0x5e6ef2(0x1ee)](this[_0x5e6ef2(0x1b7)][_0x5e6ef2(0x1e5)][_0x5e6ef2(0x1d8)](U[_0x5e6ef2(0x1cf)](0x10))[_0x5e6ef2(0x1c5)](_0x3f455e=>{const _0x13f49d=_0x5e6ef2,_0x44884e=new Set();_0x3f455e[_0x13f49d(0x1ec)](_0xc0f883=>{const _0x40b06e=_0x13f49d;switch(_0xc0f883[_0x40b06e(0x203)]){case _0x40b06e(0x1aa):{const _0x4d6f06=_0xc0f883[_0x40b06e(0x1ef)][_0x40b06e(0x1e2)];_0x44884e[_0x40b06e(0x1aa)](_0x4d6f06);break;}}}),$(this[_0x13f49d(0x1e4)],_0x44884e);}));}['_init'](){const _0x286b43=_0x5514f8;this[_0x286b43(0x1ee)](this[_0x286b43(0x1f7)]['commentUpdate$'][_0x286b43(0x1c5)](async _0x1455d7=>{const _0x424bb6=_0x286b43;var _0x9453d1,_0x1f1231,_0x1d818b,_0x3b8f87;const _0x165bf1=(_0x9453d1=this[_0x424bb6(0x1b7)]['getUnit'](_0x1455d7[_0x424bb6(0x217)])['find'](_0x200990=>_0x200990[_0x424bb6(0x211)]===_0x1455d7[_0x424bb6(0x211)]))==null?void 0x0:_0x9453d1[_0x424bb6(0x1b5)];if(!_0x165bf1)return;const {unitId:_0x468272,subUnitId:_0x807074}=_0x165bf1;switch(_0x1455d7[_0x424bb6(0x1d2)]&&this['_userService'][_0x424bb6(0x204)](_0x1455d7[_0x424bb6(0x1d2)]),_0x1455d7[_0x424bb6(0x203)]){case v[_0x424bb6(0x19d)]:break;case v['Reply']:{this[_0x424bb6(0x1b7)][_0x424bb6(0x1f0)](_0x468272,_0x807074,{'unitId':_0x468272,'subUnitId':_0x807074,'ref':'','id':_0x1455d7[_0x424bb6(0x218)],'dT':g(+_0x1455d7[_0x424bb6(0x20e)]),'threadId':_0x1455d7[_0x424bb6(0x211)],'personId':(_0x1d818b=(_0x1f1231=_0x1455d7[_0x424bb6(0x1d2)])==null?void 0x0:_0x1f1231[_0x424bb6(0x20a)])!=null?_0x1d818b:_0x1455d7[_0x424bb6(0x1db)],'text':JSON[_0x424bb6(0x1ab)](_0x1455d7[_0x424bb6(0x1c4)]),'parentId':_0x165bf1['id']});break;}case v[_0x424bb6(0x1c8)]:{const _0x49467a=this[_0x424bb6(0x1b7)][_0x424bb6(0x1b4)](_0x468272,_0x807074,_0x1455d7[_0x424bb6(0x218)]);_0x49467a&&_0x49467a[_0x424bb6(0x1d3)]&&this[_0x424bb6(0x1b7)][_0x424bb6(0x1d9)](_0x468272,_0x807074,_0x1455d7[_0x424bb6(0x218)]);break;}case v[_0x424bb6(0x1df)]:{this[_0x424bb6(0x1b7)][_0x424bb6(0x1f4)](_0x468272,_0x807074,{'commentId':_0x1455d7[_0x424bb6(0x218)],'text':JSON['parse'](_0x1455d7[_0x424bb6(0x1c4)])});break;}case v[_0x424bb6(0x206)]:{const _0x223944=(_0x3b8f87=this[_0x424bb6(0x1b7)]['getUnit'](_0x1455d7[_0x424bb6(0x217)])[_0x424bb6(0x1ea)](_0x2743bb=>_0x2743bb[_0x424bb6(0x211)]===_0x1455d7[_0x424bb6(0x211)]))==null?void 0x0:_0x3b8f87[_0x424bb6(0x1b5)];_0x223944&&this[_0x424bb6(0x1b7)]['resolveComment'](_0x468272,_0x807074,_0x223944['id'],_0x1455d7['solved']===I[_0x424bb6(0x200)]);break;}}}));}};S=A([_(0x0,c[_0x5514f8(0x20c)](C[_0x5514f8(0x212)])),_(0x1,c[_0x5514f8(0x20c)](P[_0x5514f8(0x1c2)])),_(0x2,c[_0x5514f8(0x20c)](c[_0x5514f8(0x1d1)])),_(0x3,c[_0x5514f8(0x20c)](c['Injector']))],S);const x=_0x5514f8(0x1de),D={};var Y=Object[_0x5514f8(0x1c3)],G=Object[_0x5514f8(0x1e0)],H=(_0x34b84e,_0x13d9a7,_0x19b83d,_0x31711e)=>{const _0x3f272b=_0x5514f8;for(var _0x4cb7c1=_0x31711e>0x1?void 0x0:_0x31711e?G(_0x13d9a7,_0x19b83d):_0x13d9a7,_0x47fe15=_0x34b84e[_0x3f272b(0x19c)]-0x1,_0x4999dc;_0x47fe15>=0x0;_0x47fe15--)(_0x4999dc=_0x34b84e[_0x47fe15])&&(_0x4cb7c1=(_0x31711e?_0x4999dc(_0x13d9a7,_0x19b83d,_0x4cb7c1):_0x4999dc(_0x4cb7c1))||_0x4cb7c1);return _0x31711e&&_0x4cb7c1&&Y(_0x13d9a7,_0x19b83d,_0x4cb7c1),_0x4cb7c1;},p=(_0xa48309,_0x47b91e)=>(_0x5397f5,_0x40e0d4)=>_0x47b91e(_0x5397f5,_0x40e0d4,_0xa48309);function J(_0x31ea3e,_0x44c968){const _0x1b4dc=_0x5514f8,_0x1d3c39=_0x31ea3e[_0x1b4dc(0x213)][0x0];return{..._0x44c968,'id':_0x1d3c39['replyId'],'resolved':_0x31ea3e[_0x1b4dc(0x1c9)]===0x1,'dT':g(_0x1d3c39['createTimestamp']),'personId':_0x1d3c39['userId'],'threadId':_0x1d3c39[_0x1b4dc(0x211)]};}function F(_0x3ece20,_0x33ecba,_0x4fbc67){const _0x2be3ec=_0x5514f8;var _0x551712,_0x1454c9;if(((_0x1454c9=(_0x551712=_0x3ece20==null?void 0x0:_0x3ece20[_0x2be3ec(0x213)])==null?void 0x0:_0x551712[_0x2be3ec(0x19c)])!=null?_0x1454c9:0x0)>0x0){const _0x3c317c=(_0x20bdd4,_0x1706f3)=>({'id':_0x20bdd4[_0x2be3ec(0x218)],'threadId':_0x20bdd4[_0x2be3ec(0x211)],'dT':g(_0x20bdd4[_0x2be3ec(0x20e)]),'personId':_0x20bdd4[_0x2be3ec(0x1db)],'resolved':_0x3ece20['solved']===I['Solved'],'unitId':_0x33ecba,'subUnitId':_0x4fbc67,'text':JSON['parse'](_0x20bdd4[_0x2be3ec(0x1c4)]),'parentId':_0x1706f3}),_0x22f622=_0x3c317c(_0x3ece20['replies'][0x0]);return{..._0x22f622,'children':_0x3ece20[_0x2be3ec(0x213)]['slice'](0x1)[_0x2be3ec(0x1a5)](_0x2261cc=>_0x3c317c(_0x2261cc,_0x22f622['id']))};}return null;}let f=class{constructor(_0x5cc681,_0x26e7e5,_0x5e8d9c,_0x370a76){const _0x2c9ba4=_0x5514f8;this[_0x2c9ba4(0x20b)]=_0x5cc681,this[_0x2c9ba4(0x205)]=_0x26e7e5,this[_0x2c9ba4(0x1ba)]=_0x5e8d9c,this[_0x2c9ba4(0x1e4)]=_0x370a76;}async[_0x5514f8(0x1f0)](_0x1939b9){const _0x4f2b5f=_0x5514f8;var _0x4cb7ec,_0x35d6df;const {parentId:_0x4e932a,unitId:_0x378527,text:_0x4148c7,threadId:_0x1da702}=_0x1939b9,_0x401903=(_0x35d6df=(_0x4cb7ec=_0x4148c7[_0x4f2b5f(0x1a8)])==null?void 0x0:_0x4cb7ec[_0x4f2b5f(0x1a3)](_0x4bd796=>_0x4bd796[_0x4f2b5f(0x1ff)]===c[_0x4f2b5f(0x1f6)][_0x4f2b5f(0x209)])[_0x4f2b5f(0x1a5)](_0x9b99e4=>_0x9b99e4[_0x4f2b5f(0x208)]))!=null?_0x35d6df:[],_0x163a1d=JSON['stringify'](_0x4148c7),_0x1c2ca4=(await this[_0x4f2b5f(0x1ba)]['requireSession'](_0x378527))['getMemberID']();if(_0x4e932a){const _0x2e125c={'memberId':_0x1c2ca4,'unitId':_0x378527,'content':_0x163a1d,'mention':_0x401903,'threadId':_0x1da702},_0x25849d=(await this[_0x4f2b5f(0x20b)][_0x4f2b5f(0x1c6)](_0x4f2b5f(0x1e8)+_0x378527+'/reply',{'body':_0x2e125c}))['body'][_0x4f2b5f(0x1cd)];return{..._0x1939b9,'id':_0x25849d[_0x4f2b5f(0x218)],'dT':c[_0x4f2b5f(0x1a2)](+_0x25849d[_0x4f2b5f(0x20e)])[_0x4f2b5f(0x1cc)](_0x4f2b5f(0x1a6)),'personId':_0x25849d[_0x4f2b5f(0x1db)]};}else{const _0x37dfb7={'memberId':_0x1c2ca4,'unitId':_0x378527,'content':_0x163a1d,'mention':_0x401903},_0x56c9b1=await this[_0x4f2b5f(0x20b)][_0x4f2b5f(0x1c6)](_0x4f2b5f(0x1e8)+_0x378527+_0x4f2b5f(0x1d4),{'body':_0x37dfb7});return J(_0x56c9b1[_0x4f2b5f(0x1af)]['comment'],_0x1939b9);}}async['updateComment'](_0x437537){const _0x2d85f1=_0x5514f8;var _0xb4eb02,_0x67a6e9;const {text:_0x5665a7,unitId:_0x5a9e09}=_0x437537,_0x4ad4c8=(_0x67a6e9=(_0xb4eb02=_0x5665a7['customRanges'])==null?void 0x0:_0xb4eb02['filter'](_0x55c6f3=>_0x55c6f3[_0x2d85f1(0x1ff)]===c[_0x2d85f1(0x1f6)][_0x2d85f1(0x209)])[_0x2d85f1(0x1a5)](_0x43204e=>_0x43204e[_0x2d85f1(0x208)]))!=null?_0x67a6e9:[],_0x57d180=JSON[_0x2d85f1(0x1d6)](_0x5665a7),_0xacf21d=_0x437537[_0x2d85f1(0x211)],_0x4a28f5=_0x437537['id'],_0x512525={'memberId':(await this[_0x2d85f1(0x1ba)][_0x2d85f1(0x1c0)](_0x5a9e09))[_0x2d85f1(0x1bc)](),'unitId':_0x5a9e09,'threadId':_0xacf21d,'mention':_0x4ad4c8,'content':_0x57d180,'replyId':_0x4a28f5},_0x4d51a7=await this[_0x2d85f1(0x20b)][_0x2d85f1(0x1c6)]('/universer-api/comment/unit/'+_0x5a9e09+'/edit',{'body':_0x512525});return!_0x4d51a7['body']['error']||_0x4d51a7[_0x2d85f1(0x1af)][_0x2d85f1(0x1c7)]['code']===0x1;}async['resolveComment'](_0x16b7e8){const _0x2721a7=_0x5514f8,{unitId:_0x54872d}=_0x16b7e8,_0x19e9ec=_0x16b7e8[_0x2721a7(0x211)],_0x1150ef={'memberId':this[_0x2721a7(0x205)][_0x2721a7(0x1fb)]()[_0x2721a7(0x20a)],'unitId':_0x54872d,'threadId':_0x19e9ec,'solved':_0x16b7e8[_0x2721a7(0x216)]?I[_0x2721a7(0x200)]:I[_0x2721a7(0x1fa)]},_0x52e132=await this[_0x2721a7(0x20b)]['post']('/universer-api/comment/unit/'+_0x54872d+_0x2721a7(0x1ca),{'body':_0x1150ef});return!_0x52e132[_0x2721a7(0x1af)][_0x2721a7(0x1c7)]||_0x52e132[_0x2721a7(0x1af)][_0x2721a7(0x1c7)][_0x2721a7(0x1e6)]===0x1;}async[_0x5514f8(0x1d9)](_0x2c5fbe,_0x239a4c,_0x1fbfb0,_0x1d60a1){const _0x285e77=_0x5514f8,_0x3fc1eb={'memberId':(await this[_0x285e77(0x1ba)][_0x285e77(0x1c0)](_0x2c5fbe))['getMemberID'](),'threadId':_0x1fbfb0,'replyId':_0x1d60a1,'unitId':_0x2c5fbe},_0x2225cd=await this[_0x285e77(0x20b)][_0x285e77(0x1c6)](_0x285e77(0x1e8)+_0x2c5fbe+_0x285e77(0x1b0),{'body':_0x3fc1eb});return!_0x2225cd[_0x285e77(0x1af)]['error']||_0x2225cd['body'][_0x285e77(0x1c7)][_0x285e77(0x1e6)]===0x1;}async[_0x5514f8(0x202)](_0x46f019,_0x38a4bc,_0x5a5031){const _0x54ce5a=_0x5514f8,_0x32e37b={'unitId':_0x46f019,'threadId':_0x5a5031},_0x1be757=await this[_0x54ce5a(0x20b)][_0x54ce5a(0x1c6)](_0x54ce5a(0x1e8)+_0x46f019+'/list',{'body':_0x32e37b}),_0x1c1816=_0x5a5031[_0x54ce5a(0x1a5)](_0x53131b=>F(_0x1be757[_0x54ce5a(0x1af)][_0x54ce5a(0x1e9)][_0x53131b],_0x46f019,_0x38a4bc))[_0x54ce5a(0x1a3)](Boolean);return Object['values'](_0x1be757['body']['users'])[_0x54ce5a(0x1ec)](_0x15fab6=>{const _0x2b6356=_0x54ce5a;this[_0x2b6356(0x205)][_0x2b6356(0x204)](_0x15fab6);}),_0x1c1816;}[_0x5514f8(0x201)](_0x5d79aa){const _0x3fb5f7=_0x5514f8;return{'id':_0x5d79aa['id'],'threadId':_0x5d79aa[_0x3fb5f7(0x211)],'ref':_0x5d79aa['ref']};}};f=H([p(0x0,c[_0x5514f8(0x20c)](M[_0x5514f8(0x1bb)])),p(0x1,c['Inject'](c[_0x5514f8(0x1d1)])),p(0x2,c[_0x5514f8(0x20c)](C[_0x5514f8(0x1dc)])),p(0x3,c['Inject'](c[_0x5514f8(0x1d5)]))],f);var L=Object['defineProperty'],Z=Object[_0x5514f8(0x1e0)],W=(_0x5916e5,_0x2d0487,_0x2cf357,_0x1c3c0c)=>{const _0x46a16a=_0x5514f8;for(var _0x56a10e=_0x1c3c0c>0x1?void 0x0:_0x1c3c0c?Z(_0x2d0487,_0x2cf357):_0x2d0487,_0x77c7e6=_0x5916e5[_0x46a16a(0x19c)]-0x1,_0x4e1e19;_0x77c7e6>=0x0;_0x77c7e6--)(_0x4e1e19=_0x5916e5[_0x77c7e6])&&(_0x56a10e=(_0x1c3c0c?_0x4e1e19(_0x2d0487,_0x2cf357,_0x56a10e):_0x4e1e19(_0x56a10e))||_0x56a10e);return _0x1c3c0c&&_0x56a10e&&L(_0x2d0487,_0x2cf357,_0x56a10e),_0x56a10e;},O=(_0x21a0ed,_0x15a69d)=>(_0x1b2786,_0x24a6e3)=>_0x15a69d(_0x1b2786,_0x24a6e3,_0x21a0ed);let b=class extends c[_0x5514f8(0x19b)]{constructor(_0x142cb6,_0x57beba){const _0x2f77d2=_0x5514f8;super(),this[_0x2f77d2(0x19a)]=_0x142cb6,this['_threadCommentDataSource']=_0x57beba,this[_0x2f77d2(0x1eb)]();}[_0x5514f8(0x1eb)](){const _0x5c73c5=_0x5514f8;this[_0x5c73c5(0x19a)][_0x5c73c5(0x210)]=this[_0x5c73c5(0x19f)],this[_0x5c73c5(0x19a)]['syncUpdateMutationToColla']=!0x1;}};b=W([O(0x0,P[_0x5514f8(0x1f3)]),O(0x1,c['Inject'](f))],b);var j=Object[_0x5514f8(0x1c3)],B=Object[_0x5514f8(0x1e0)],K=(_0x2ac9f9,_0x5b8c37,_0x27ca18)=>_0x5b8c37 in _0x2ac9f9?j(_0x2ac9f9,_0x5b8c37,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27ca18}):_0x2ac9f9[_0x5b8c37]=_0x27ca18,V=(_0x6c52e2,_0x16b866,_0x4aad0b,_0x486750)=>{const _0x42f7c0=_0x5514f8;for(var _0x34bd1f=_0x486750>0x1?void 0x0:_0x486750?B(_0x16b866,_0x4aad0b):_0x16b866,_0x59229f=_0x6c52e2[_0x42f7c0(0x19c)]-0x1,_0xd6950a;_0x59229f>=0x0;_0x59229f--)(_0xd6950a=_0x6c52e2[_0x59229f])&&(_0x34bd1f=(_0x486750?_0xd6950a(_0x16b866,_0x4aad0b,_0x34bd1f):_0xd6950a(_0x34bd1f))||_0x34bd1f);return _0x486750&&_0x34bd1f&&j(_0x16b866,_0x4aad0b,_0x34bd1f),_0x34bd1f;},y=(_0x4882ff,_0x5c594b)=>(_0x2def6b,_0x3cbe41)=>_0x5c594b(_0x2def6b,_0x3cbe41,_0x4882ff),N=(_0x56ea3a,_0x4403f8,_0x20a098)=>K(_0x56ea3a,typeof _0x4403f8!=_0x5514f8(0x1f8)?_0x4403f8+'':_0x4403f8,_0x20a098);exports[_0x5514f8(0x1b1)]=class extends c[_0x5514f8(0x1ad)]{constructor(_0x1e4b78=D,_0x44f95e,_0x4c83d8){const _0x4f90ba=_0x5514f8;super(),this[_0x4f90ba(0x1a1)]=_0x1e4b78,this[_0x4f90ba(0x1e4)]=_0x44f95e,this['_configService']=_0x4c83d8;const {..._0x27d994}=c[_0x4f90ba(0x1ac)]({},D,this[_0x4f90ba(0x1a1)]);this['_configService']['setConfig'](x,_0x27d994);}['onStarting'](){const _0x13c4ea=_0x5514f8;[[f],[b],[S]][_0x13c4ea(0x1ec)](_0x556655=>{const _0x302a34=_0x13c4ea;this[_0x302a34(0x1e4)][_0x302a34(0x1aa)](_0x556655);});}['onReady'](){const _0x29ddbb=_0x5514f8;this[_0x29ddbb(0x1e4)][_0x29ddbb(0x1f9)](b),this[_0x29ddbb(0x1e4)]['get'](S);}},N(exports[_0x5514f8(0x1b1)],_0x5514f8(0x1d0),R),N(exports[_0x5514f8(0x1b1)],'type',c[_0x5514f8(0x1dd)][_0x5514f8(0x19e)]),exports[_0x5514f8(0x1b1)]=V([c[_0x5514f8(0x1f2)](w['UniverThreadCommentUIPlugin'],C['UniverCollaborationClientPlugin'],T[_0x5514f8(0x20f)]),y(0x1,c[_0x5514f8(0x20c)](c['Injector'])),y(0x2,c[_0x5514f8(0x1b3)])],exports[_0x5514f8(0x1b1)]);
|
|
1
|
+
'use strict';const _0x55514e=_0x4e62;(function(_0x49d44d,_0x4b8baf){const _0x5f1267=_0x4e62,_0x3b5a2c=_0x49d44d();while(!![]){try{const _0x2ed0a9=parseInt(_0x5f1267(0x200))/0x1*(-parseInt(_0x5f1267(0x231))/0x2)+-parseInt(_0x5f1267(0x1f2))/0x3*(-parseInt(_0x5f1267(0x1e1))/0x4)+-parseInt(_0x5f1267(0x213))/0x5+-parseInt(_0x5f1267(0x1d6))/0x6+-parseInt(_0x5f1267(0x201))/0x7+parseInt(_0x5f1267(0x1dc))/0x8+parseInt(_0x5f1267(0x1ef))/0x9;if(_0x2ed0a9===_0x4b8baf)break;else _0x3b5a2c['push'](_0x3b5a2c['shift']());}catch(_0x494539){_0x3b5a2c['push'](_0x3b5a2c['shift']());}}}(_0x594d,0xc84b1));Object[_0x55514e(0x1db)](exports,Symbol[_0x55514e(0x20c)],{'value':_0x55514e(0x204)});const C=require(_0x55514e(0x1e8)),T=require(_0x55514e(0x1f3)),c=require(_0x55514e(0x22f)),w=require(_0x55514e(0x21d)),P=require(_0x55514e(0x1d9)),U=require(_0x55514e(0x20f)),M=require(_0x55514e(0x1e7)),R=_0x55514e(0x1df);var I=(_0x4c59cf=>(_0x4c59cf[_0x4c59cf[_0x55514e(0x227)]=0x0]=_0x55514e(0x227),_0x4c59cf[_0x4c59cf['Solved']=0x1]=_0x55514e(0x225),_0x4c59cf[_0x4c59cf[_0x55514e(0x1d1)]=-0x1]=_0x55514e(0x1d1),_0x4c59cf))(I||{}),v=(_0x549fa4=>(_0x549fa4[_0x549fa4[_0x55514e(0x223)]=0x0]=_0x55514e(0x223),_0x549fa4[_0x549fa4[_0x55514e(0x226)]=0x1]=_0x55514e(0x226),_0x549fa4[_0x549fa4[_0x55514e(0x1ed)]=0x2]=_0x55514e(0x1ed),_0x549fa4[_0x549fa4['Edit']=0x3]=_0x55514e(0x1e2),_0x549fa4[_0x549fa4[_0x55514e(0x1f8)]=0x4]=_0x55514e(0x1f8),_0x549fa4[_0x549fa4[_0x55514e(0x239)]=0x5]=_0x55514e(0x239),_0x549fa4[_0x549fa4[_0x55514e(0x1d1)]=-0x1]=_0x55514e(0x1d1),_0x549fa4))(v||{});const g=_0xcea33=>c[_0x55514e(0x22c)](new Date(+_0xcea33))[_0x55514e(0x1d3)](_0x55514e(0x24e)),$=async(_0x26a1dd,_0x43ba5a)=>{const _0x4ec2c4=_0x55514e,_0x281495=_0x26a1dd[_0x4ec2c4(0x1fe)](c[_0x4ec2c4(0x203)]),_0x573df3=_0x26a1dd['get'](M[_0x4ec2c4(0x1f4)]);_0x43ba5a[_0x4ec2c4(0x1f9)](_0x2dc20b=>{const _0x228fc6=_0x4ec2c4;_0x281495[_0x228fc6(0x1d0)](_0x2dc20b)&&_0x43ba5a[_0x228fc6(0x1ec)](_0x2dc20b);}),_0x43ba5a[_0x4ec2c4(0x248)]&&(await _0x573df3[_0x4ec2c4(0x1fe)](_0x4ec2c4(0x233),{'params':{'userIDs':[..._0x43ba5a]}}))[_0x4ec2c4(0x1ee)][_0x4ec2c4(0x24a)][_0x4ec2c4(0x1f9)](_0x4a8139=>{const _0x171201=_0x4ec2c4;_0x4a8139&&_0x281495[_0x171201(0x1e0)](_0x4a8139);});};var E=Object['defineProperty'],q=Object[_0x55514e(0x1d2)],A=(_0x3cb83e,_0x27fbb3,_0x39ea0c,_0x572d7b)=>{const _0x3224a6=_0x55514e;for(var _0x428616=_0x572d7b>0x1?void 0x0:_0x572d7b?q(_0x27fbb3,_0x39ea0c):_0x27fbb3,_0x4a18c2=_0x3cb83e[_0x3224a6(0x1ff)]-0x1,_0x53501f;_0x4a18c2>=0x0;_0x4a18c2--)(_0x53501f=_0x3cb83e[_0x4a18c2])&&(_0x428616=(_0x572d7b?_0x53501f(_0x27fbb3,_0x39ea0c,_0x428616):_0x53501f(_0x428616))||_0x428616);return _0x572d7b&&_0x428616&&E(_0x27fbb3,_0x39ea0c,_0x428616),_0x428616;},_=(_0x55277b,_0x42f74b)=>(_0x1f58bf,_0x37db7a)=>_0x42f74b(_0x1f58bf,_0x37db7a,_0x55277b);function _0x594d(){const _0x58dc48=['stringify','resolved','payload','ref','subscribe','size','values','users','find','error','_httpService','YYYY/MM/DD\x20HH:mm','listComments','onStarting','getUser','UNRECOGNIZED','getOwnPropertyDescriptor','format','code','customRanges','3123630TrUDPA','user','syncUpdateMutationToColla','@univerjs/thread-comment','/add','defineProperty','1548568mofpxE','_threadCommentDataSource','Injector','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','addUser','56OHkfRU','Edit','onReady','getMemberID','IThreadCommentDataSourceService','symbol','@univerjs/network','@univerjs-pro/collaboration-client','commentUpdate$','UniverInstanceType','dataSource','delete','Reply','body','17417205aAjOur','createTimestamp','_initDataSource','215490UvMiSc','@univerjs-pro/license','HTTPService','_userService','_config','_threadCommentModel','Delete','forEach','reply','setConfig','rangeId','_sessionService','get','length','2452ybYFMg','7752374fJUFuq','UNIVER_UNKNOWN','UserManagerService','Module','replies','Inject','root','updateComment','personId','pipe','requireSession','toStringTag','/solved','/delete','rxjs','type','/universer-api/comment/unit/','DependentOn','217620VUgCYU','CollaborationSessionService','Disposable','comment','CustomRangeType','solved','replyId','rangeType','post','deleteComment','@univerjs/thread-comment-ui','map','userID','_threadCommentDataSourceService','resolveComment','/list','Unknown','comments','Solved','Add','OpenOrReOpen','pluginName','userId','content','disposeWithMe','dayjs','parentId','COMMENT','@univerjs/core','parse','524PnUcwX','filter','/universer-api/user/list','CommentService','addComment','UniverLicensePlugin','getUnit','threadId','Solve','_initUserSync','getCurrentUser','IConfigService','UniverCollaborationClientPlugin','_init','UniverThreadCommentDataSourcePlugin','ThreadCommentModel','_configService','_injector'];_0x594d=function(){return _0x58dc48;};return _0x594d();}let S=class extends c[_0x55514e(0x215)]{constructor(_0x4ea8e8,_0x291fd8,_0x3ecf1a,_0x217567){const _0x41947d=_0x55514e;super(),this['_commentService']=_0x4ea8e8,this['_threadCommentModel']=_0x291fd8,this[_0x41947d(0x1f5)]=_0x3ecf1a,this[_0x41947d(0x242)]=_0x217567,this[_0x41947d(0x23e)](),this[_0x41947d(0x23a)]();}[_0x55514e(0x23a)](){const _0x2cfc30=_0x55514e;this[_0x2cfc30(0x22b)](this['_threadCommentModel'][_0x2cfc30(0x1e9)][_0x2cfc30(0x20a)](U['bufferTime'](0x10))[_0x2cfc30(0x247)](_0x3df43a=>{const _0x4d2e37=_0x2cfc30,_0x4023fa=new Set();_0x3df43a[_0x4d2e37(0x1f9)](_0xd02323=>{const _0x10691a=_0x4d2e37;switch(_0xd02323['type']){case'add':{const _0x5cfd1a=_0xd02323[_0x10691a(0x245)][_0x10691a(0x209)];_0x4023fa['add'](_0x5cfd1a);break;}}}),$(this[_0x4d2e37(0x242)],_0x4023fa);}));}[_0x55514e(0x23e)](){const _0x59ff01=_0x55514e;this[_0x59ff01(0x22b)](this['_commentService'][_0x59ff01(0x1e9)][_0x59ff01(0x247)](async _0x8d1ca=>{const _0x3ea393=_0x59ff01;var _0x20b21d,_0x569a47,_0x30c08d,_0x1975c3;const _0x135e46=(_0x20b21d=this[_0x3ea393(0x1f7)]['getUnit'](_0x8d1ca['unitId'])[_0x3ea393(0x24b)](_0x24a6c7=>_0x24a6c7[_0x3ea393(0x238)]===_0x8d1ca['threadId']))==null?void 0x0:_0x20b21d[_0x3ea393(0x207)];if(!_0x135e46)return;const {unitId:_0xf2b241,subUnitId:_0x3a1887}=_0x135e46;switch(_0x8d1ca[_0x3ea393(0x1d7)]&&this[_0x3ea393(0x1f5)][_0x3ea393(0x1e0)](_0x8d1ca[_0x3ea393(0x1d7)]),_0x8d1ca[_0x3ea393(0x210)]){case v['Add']:break;case v[_0x3ea393(0x1ed)]:{this[_0x3ea393(0x1f7)][_0x3ea393(0x235)](_0xf2b241,_0x3a1887,{'unitId':_0xf2b241,'subUnitId':_0x3a1887,'ref':'','id':_0x8d1ca[_0x3ea393(0x219)],'dT':g(+_0x8d1ca['createTimestamp']),'threadId':_0x8d1ca['threadId'],'personId':(_0x30c08d=(_0x569a47=_0x8d1ca[_0x3ea393(0x1d7)])==null?void 0x0:_0x569a47[_0x3ea393(0x21f)])!=null?_0x30c08d:_0x8d1ca['userId'],'text':JSON[_0x3ea393(0x230)](_0x8d1ca[_0x3ea393(0x22a)]),'parentId':_0x135e46['id']});break;}case v[_0x3ea393(0x1f8)]:{const _0xf82e29=this[_0x3ea393(0x1f7)]['getComment'](_0xf2b241,_0x3a1887,_0x8d1ca[_0x3ea393(0x219)]);_0xf82e29&&_0xf82e29[_0x3ea393(0x22d)]&&this[_0x3ea393(0x1f7)]['deleteComment'](_0xf2b241,_0x3a1887,_0x8d1ca['replyId']);break;}case v[_0x3ea393(0x1e2)]:{this[_0x3ea393(0x1f7)][_0x3ea393(0x208)](_0xf2b241,_0x3a1887,{'commentId':_0x8d1ca[_0x3ea393(0x219)],'text':JSON['parse'](_0x8d1ca[_0x3ea393(0x22a)])});break;}case v[_0x3ea393(0x239)]:{const _0x6291c6=(_0x1975c3=this['_threadCommentModel'][_0x3ea393(0x237)](_0x8d1ca['unitId'])[_0x3ea393(0x24b)](_0xa060c1=>_0xa060c1[_0x3ea393(0x238)]===_0x8d1ca[_0x3ea393(0x238)]))==null?void 0x0:_0x1975c3['root'];_0x6291c6&&this[_0x3ea393(0x1f7)][_0x3ea393(0x221)](_0xf2b241,_0x3a1887,_0x6291c6['id'],_0x8d1ca['solved']===I[_0x3ea393(0x225)]);break;}}}));}};function _0x4e62(_0x2c01de,_0x145e70){const _0x594d0c=_0x594d();return _0x4e62=function(_0x4e624d,_0x4e3e8d){_0x4e624d=_0x4e624d-0x1cf;let _0x1dd747=_0x594d0c[_0x4e624d];return _0x1dd747;},_0x4e62(_0x2c01de,_0x145e70);}S=A([_(0x0,c[_0x55514e(0x206)](C[_0x55514e(0x234)])),_(0x1,c[_0x55514e(0x206)](P[_0x55514e(0x240)])),_(0x2,c[_0x55514e(0x206)](c[_0x55514e(0x203)])),_(0x3,c[_0x55514e(0x206)](c[_0x55514e(0x1de)]))],S);const x='thread-comment-data-source.config',D={};var Y=Object[_0x55514e(0x1db)],G=Object[_0x55514e(0x1d2)],H=(_0x54bb26,_0x607cdd,_0xf72231,_0x25e480)=>{const _0x2600c5=_0x55514e;for(var _0x299c19=_0x25e480>0x1?void 0x0:_0x25e480?G(_0x607cdd,_0xf72231):_0x607cdd,_0x50f657=_0x54bb26[_0x2600c5(0x1ff)]-0x1,_0x2d5989;_0x50f657>=0x0;_0x50f657--)(_0x2d5989=_0x54bb26[_0x50f657])&&(_0x299c19=(_0x25e480?_0x2d5989(_0x607cdd,_0xf72231,_0x299c19):_0x2d5989(_0x299c19))||_0x299c19);return _0x25e480&&_0x299c19&&Y(_0x607cdd,_0xf72231,_0x299c19),_0x299c19;},p=(_0x4140fc,_0x13816a)=>(_0x2c9657,_0x420d36)=>_0x13816a(_0x2c9657,_0x420d36,_0x4140fc);function J(_0x4a0ff2,_0x26f5db){const _0x150e44=_0x55514e,_0x5b9f73=_0x4a0ff2[_0x150e44(0x205)][0x0];return{..._0x26f5db,'id':_0x5b9f73[_0x150e44(0x219)],'resolved':_0x4a0ff2[_0x150e44(0x218)]===0x1,'dT':g(_0x5b9f73[_0x150e44(0x1f0)]),'personId':_0x5b9f73[_0x150e44(0x229)],'threadId':_0x5b9f73[_0x150e44(0x238)]};}function F(_0x772415,_0x18af78,_0x1126c8){const _0x2aeced=_0x55514e;var _0x488f4f,_0x33aecc;if(((_0x33aecc=(_0x488f4f=_0x772415==null?void 0x0:_0x772415['replies'])==null?void 0x0:_0x488f4f[_0x2aeced(0x1ff)])!=null?_0x33aecc:0x0)>0x0){const _0x4b0393=(_0x8d23bc,_0x1096b9)=>({'id':_0x8d23bc[_0x2aeced(0x219)],'threadId':_0x8d23bc[_0x2aeced(0x238)],'dT':g(_0x8d23bc[_0x2aeced(0x1f0)]),'personId':_0x8d23bc['userId'],'resolved':_0x772415[_0x2aeced(0x218)]===I[_0x2aeced(0x225)],'unitId':_0x18af78,'subUnitId':_0x1126c8,'text':JSON[_0x2aeced(0x230)](_0x8d23bc[_0x2aeced(0x22a)]),'parentId':_0x1096b9}),_0x9e7710=_0x4b0393(_0x772415[_0x2aeced(0x205)][0x0]);return{..._0x9e7710,'children':_0x772415[_0x2aeced(0x205)]['slice'](0x1)['map'](_0x33720b=>_0x4b0393(_0x33720b,_0x9e7710['id']))};}return null;}let f=class{constructor(_0x3d10ca,_0x3bfcd5,_0x30051d,_0x17b079){const _0x58cb1b=_0x55514e;this[_0x58cb1b(0x24d)]=_0x3d10ca,this[_0x58cb1b(0x1f5)]=_0x3bfcd5,this[_0x58cb1b(0x1fd)]=_0x30051d,this[_0x58cb1b(0x242)]=_0x17b079;}async[_0x55514e(0x235)](_0x3fca21){const _0x208f99=_0x55514e;var _0x8d435f,_0x5edebd;const {parentId:_0x178ef5,unitId:_0x40b08c,text:_0x1baa35,threadId:_0x239da0}=_0x3fca21,_0x538cf2=(_0x5edebd=(_0x8d435f=_0x1baa35[_0x208f99(0x1d5)])==null?void 0x0:_0x8d435f['filter'](_0x545e4b=>_0x545e4b[_0x208f99(0x21a)]===c[_0x208f99(0x217)][_0x208f99(0x22e)])[_0x208f99(0x21e)](_0xd23c82=>_0xd23c82[_0x208f99(0x1fc)]))!=null?_0x5edebd:[],_0x3d754a=JSON[_0x208f99(0x243)](_0x1baa35),_0x2797ff=(await this[_0x208f99(0x1fd)][_0x208f99(0x20b)](_0x40b08c))['getMemberID']();if(_0x178ef5){const _0x41a9ec={'memberId':_0x2797ff,'unitId':_0x40b08c,'content':_0x3d754a,'mention':_0x538cf2,'threadId':_0x239da0},_0x575a30=(await this['_httpService']['post'](_0x208f99(0x211)+_0x40b08c+'/reply',{'body':_0x41a9ec}))[_0x208f99(0x1ee)][_0x208f99(0x1fa)];return{..._0x3fca21,'id':_0x575a30[_0x208f99(0x219)],'dT':c[_0x208f99(0x22c)](+_0x575a30['createTimestamp'])[_0x208f99(0x1d3)](_0x208f99(0x24e)),'personId':_0x575a30['userId']};}else{const _0x5ce185={'memberId':_0x2797ff,'unitId':_0x40b08c,'content':_0x3d754a,'mention':_0x538cf2},_0xa5d97a=await this[_0x208f99(0x24d)][_0x208f99(0x21b)](_0x208f99(0x211)+_0x40b08c+_0x208f99(0x1da),{'body':_0x5ce185});return J(_0xa5d97a[_0x208f99(0x1ee)][_0x208f99(0x216)],_0x3fca21);}}async[_0x55514e(0x208)](_0x1ba335){const _0x4984e0=_0x55514e;var _0xadaa06,_0x5f1600;const {text:_0x41e5f4,unitId:_0x160034}=_0x1ba335,_0x1dbdc9=(_0x5f1600=(_0xadaa06=_0x41e5f4[_0x4984e0(0x1d5)])==null?void 0x0:_0xadaa06[_0x4984e0(0x232)](_0x156648=>_0x156648['rangeType']===c['CustomRangeType'][_0x4984e0(0x22e)])['map'](_0x58ebd0=>_0x58ebd0[_0x4984e0(0x1fc)]))!=null?_0x5f1600:[],_0x18f035=JSON[_0x4984e0(0x243)](_0x41e5f4),_0x5642f2=_0x1ba335[_0x4984e0(0x238)],_0x53116a=_0x1ba335['id'],_0x4fc491={'memberId':(await this['_sessionService'][_0x4984e0(0x20b)](_0x160034))['getMemberID'](),'unitId':_0x160034,'threadId':_0x5642f2,'mention':_0x1dbdc9,'content':_0x18f035,'replyId':_0x53116a},_0x14f616=await this[_0x4984e0(0x24d)][_0x4984e0(0x21b)](_0x4984e0(0x211)+_0x160034+'/edit',{'body':_0x4fc491});return!_0x14f616[_0x4984e0(0x1ee)][_0x4984e0(0x24c)]||_0x14f616[_0x4984e0(0x1ee)][_0x4984e0(0x24c)][_0x4984e0(0x1d4)]===0x1;}async['resolveComment'](_0x889f80){const _0x15ea10=_0x55514e,{unitId:_0x3b3ae9}=_0x889f80,_0x13a90f=_0x889f80[_0x15ea10(0x238)],_0x4f98ed={'memberId':this[_0x15ea10(0x1f5)][_0x15ea10(0x23b)]()['userID'],'unitId':_0x3b3ae9,'threadId':_0x13a90f,'solved':_0x889f80[_0x15ea10(0x244)]?I['Solved']:I[_0x15ea10(0x227)]},_0x177bff=await this[_0x15ea10(0x24d)][_0x15ea10(0x21b)](_0x15ea10(0x211)+_0x3b3ae9+_0x15ea10(0x20d),{'body':_0x4f98ed});return!_0x177bff[_0x15ea10(0x1ee)][_0x15ea10(0x24c)]||_0x177bff[_0x15ea10(0x1ee)][_0x15ea10(0x24c)][_0x15ea10(0x1d4)]===0x1;}async[_0x55514e(0x21c)](_0x5d295f,_0x11e1d6,_0x310dae,_0x2e936b){const _0x24beab=_0x55514e,_0x3cc42c={'memberId':(await this[_0x24beab(0x1fd)]['requireSession'](_0x5d295f))[_0x24beab(0x1e4)](),'threadId':_0x310dae,'replyId':_0x2e936b,'unitId':_0x5d295f},_0x5db225=await this['_httpService'][_0x24beab(0x21b)](_0x24beab(0x211)+_0x5d295f+_0x24beab(0x20e),{'body':_0x3cc42c});return!_0x5db225[_0x24beab(0x1ee)][_0x24beab(0x24c)]||_0x5db225[_0x24beab(0x1ee)][_0x24beab(0x24c)][_0x24beab(0x1d4)]===0x1;}async[_0x55514e(0x24f)](_0x5326f3,_0x500012,_0xe750ba){const _0x4ed75e=_0x55514e,_0x557b1d={'unitId':_0x5326f3,'threadId':_0xe750ba},_0x17dc81=await this[_0x4ed75e(0x24d)][_0x4ed75e(0x21b)](_0x4ed75e(0x211)+_0x5326f3+_0x4ed75e(0x222),{'body':_0x557b1d}),_0x22311d=_0xe750ba['map'](_0x27139b=>F(_0x17dc81['body'][_0x4ed75e(0x224)][_0x27139b],_0x5326f3,_0x500012))['filter'](Boolean);return Object[_0x4ed75e(0x249)](_0x17dc81[_0x4ed75e(0x1ee)][_0x4ed75e(0x24a)])['forEach'](_0x2f6826=>{const _0x3c9641=_0x4ed75e;this[_0x3c9641(0x1f5)]['addUser'](_0x2f6826);}),_0x22311d;}['saveCommentToSnapshot'](_0x350a2d){const _0x3d1604=_0x55514e;return{'id':_0x350a2d['id'],'threadId':_0x350a2d[_0x3d1604(0x238)],'ref':_0x350a2d[_0x3d1604(0x246)]};}};f=H([p(0x0,c[_0x55514e(0x206)](M['HTTPService'])),p(0x1,c[_0x55514e(0x206)](c[_0x55514e(0x203)])),p(0x2,c[_0x55514e(0x206)](C[_0x55514e(0x214)])),p(0x3,c[_0x55514e(0x206)](c[_0x55514e(0x1de)]))],f);var L=Object[_0x55514e(0x1db)],Z=Object['getOwnPropertyDescriptor'],W=(_0x381da9,_0x5e35b7,_0x3e16cc,_0x133d4c)=>{for(var _0x1f8f11=_0x133d4c>0x1?void 0x0:_0x133d4c?Z(_0x5e35b7,_0x3e16cc):_0x5e35b7,_0x5bdbd4=_0x381da9['length']-0x1,_0x13ef82;_0x5bdbd4>=0x0;_0x5bdbd4--)(_0x13ef82=_0x381da9[_0x5bdbd4])&&(_0x1f8f11=(_0x133d4c?_0x13ef82(_0x5e35b7,_0x3e16cc,_0x1f8f11):_0x13ef82(_0x1f8f11))||_0x1f8f11);return _0x133d4c&&_0x1f8f11&&L(_0x5e35b7,_0x3e16cc,_0x1f8f11),_0x1f8f11;},O=(_0x1c3933,_0x2e535e)=>(_0x65c0bc,_0x8f37b9)=>_0x2e535e(_0x65c0bc,_0x8f37b9,_0x1c3933);let b=class extends c[_0x55514e(0x215)]{constructor(_0x4d5be6,_0x36e60d){const _0xab5a0c=_0x55514e;super(),this[_0xab5a0c(0x220)]=_0x4d5be6,this[_0xab5a0c(0x1dd)]=_0x36e60d,this[_0xab5a0c(0x1f1)]();}[_0x55514e(0x1f1)](){const _0x315440=_0x55514e;this[_0x315440(0x220)][_0x315440(0x1eb)]=this[_0x315440(0x1dd)],this['_threadCommentDataSourceService'][_0x315440(0x1d8)]=!0x1;}};b=W([O(0x0,P[_0x55514e(0x1e5)]),O(0x1,c['Inject'](f))],b);var j=Object[_0x55514e(0x1db)],B=Object[_0x55514e(0x1d2)],K=(_0x53767f,_0x19ba81,_0x5c9e6c)=>_0x19ba81 in _0x53767f?j(_0x53767f,_0x19ba81,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c9e6c}):_0x53767f[_0x19ba81]=_0x5c9e6c,V=(_0x3a59ca,_0x210a84,_0x2f0555,_0x5de227)=>{const _0x3fabe8=_0x55514e;for(var _0x2d086e=_0x5de227>0x1?void 0x0:_0x5de227?B(_0x210a84,_0x2f0555):_0x210a84,_0x45f354=_0x3a59ca[_0x3fabe8(0x1ff)]-0x1,_0x4c9b06;_0x45f354>=0x0;_0x45f354--)(_0x4c9b06=_0x3a59ca[_0x45f354])&&(_0x2d086e=(_0x5de227?_0x4c9b06(_0x210a84,_0x2f0555,_0x2d086e):_0x4c9b06(_0x2d086e))||_0x2d086e);return _0x5de227&&_0x2d086e&&j(_0x210a84,_0x2f0555,_0x2d086e),_0x2d086e;},y=(_0x54fd29,_0x49f3dd)=>(_0x59ccdd,_0x484e82)=>_0x49f3dd(_0x59ccdd,_0x484e82,_0x54fd29),N=(_0x361b68,_0x312001,_0x4003d2)=>K(_0x361b68,typeof _0x312001!=_0x55514e(0x1e6)?_0x312001+'':_0x312001,_0x4003d2);exports['UniverThreadCommentDataSourcePlugin']=class extends c['Plugin']{constructor(_0x298be6=D,_0xfa6443,_0x1eaee6){const _0x8915d2=_0x55514e;super(),this['_config']=_0x298be6,this[_0x8915d2(0x242)]=_0xfa6443,this[_0x8915d2(0x241)]=_0x1eaee6;const {..._0x273679}=c['merge']({},D,this[_0x8915d2(0x1f6)]);this['_configService'][_0x8915d2(0x1fb)](x,_0x273679);}[_0x55514e(0x1cf)](){const _0xe751b5=_0x55514e;[[f],[b],[S]][_0xe751b5(0x1f9)](_0x213db3=>{const _0xa64bf5=_0xe751b5;this[_0xa64bf5(0x242)]['add'](_0x213db3);});}[_0x55514e(0x1e3)](){const _0x123dc4=_0x55514e;this[_0x123dc4(0x242)][_0x123dc4(0x1fe)](b),this['_injector'][_0x123dc4(0x1fe)](S);}},N(exports['UniverThreadCommentDataSourcePlugin'],_0x55514e(0x228),R),N(exports[_0x55514e(0x23f)],_0x55514e(0x210),c[_0x55514e(0x1ea)][_0x55514e(0x202)]),exports['UniverThreadCommentDataSourcePlugin']=V([c[_0x55514e(0x212)](w['UniverThreadCommentUIPlugin'],C[_0x55514e(0x23d)],T[_0x55514e(0x236)]),y(0x1,c[_0x55514e(0x206)](c[_0x55514e(0x1de)])),y(0x2,c[_0x55514e(0x23c)])],exports[_0x55514e(0x23f)]);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x127c70=_0x1a78;(function(_0x19951c,_0x478183){const _0x5c5c23=_0x1a78,_0x28f6c2=_0x19951c();while(!![]){try{const _0x399f71=parseInt(_0x5c5c23(0x201))/0x1*(-parseInt(_0x5c5c23(0x1c9))/0x2)+-parseInt(_0x5c5c23(0x1c2))/0x3+parseInt(_0x5c5c23(0x214))/0x4*(parseInt(_0x5c5c23(0x1fa))/0x5)+parseInt(_0x5c5c23(0x1e1))/0x6+-parseInt(_0x5c5c23(0x1cd))/0x7+parseInt(_0x5c5c23(0x222))/0x8+parseInt(_0x5c5c23(0x216))/0x9*(parseInt(_0x5c5c23(0x1ed))/0xa);if(_0x399f71===_0x478183)break;else _0x28f6c2['push'](_0x28f6c2['shift']());}catch(_0xe42407){_0x28f6c2['push'](_0x28f6c2['shift']());}}}(_0x5e95,0x75054));import{CommentService as _0x1d752,CollaborationSessionService as _0x5f57db,UniverCollaborationClientPlugin as _0x2a8994}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x2806f2}from'@univerjs-pro/license';function _0x1a78(_0x1847bf,_0x163855){const _0x5e9590=_0x5e95();return _0x1a78=function(_0x1a7859,_0x16c2de){_0x1a7859=_0x1a7859-0x1bc;let _0x165f41=_0x5e9590[_0x1a7859];return _0x165f41;},_0x1a78(_0x1847bf,_0x163855);}import{dayjs as _0x3b243d,UserManagerService as _0x513077,Inject as _0x16bcf7,Injector as _0x1a496c,Disposable as _0x4095c6,CustomRangeType as _0x50aa39,UniverInstanceType as _0x809406,DependentOn as _0x1a800d,Plugin as _0x3b2600,merge as _0x9e43a,IConfigService as _0x2938ad}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x331206}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x1cda7d,IThreadCommentDataSourceService as _0x5f2365}from'@univerjs/thread-comment';import{bufferTime as _0xb97f01}from'rxjs';import{HTTPService as _0x1fe438}from'@univerjs/network';const B=_0x127c70(0x202);var v=(_0x5debaf=>(_0x5debaf[_0x5debaf[_0x127c70(0x207)]=0x0]=_0x127c70(0x207),_0x5debaf[_0x5debaf[_0x127c70(0x215)]=0x1]=_0x127c70(0x215),_0x5debaf[_0x5debaf[_0x127c70(0x1ca)]=-0x1]='UNRECOGNIZED',_0x5debaf))(v||{}),p=(_0x4eaf0d=>(_0x4eaf0d[_0x4eaf0d[_0x127c70(0x1f0)]=0x0]=_0x127c70(0x1f0),_0x4eaf0d[_0x4eaf0d[_0x127c70(0x1d8)]=0x1]=_0x127c70(0x1d8),_0x4eaf0d[_0x4eaf0d[_0x127c70(0x1de)]=0x2]=_0x127c70(0x1de),_0x4eaf0d[_0x4eaf0d['Edit']=0x3]=_0x127c70(0x1bf),_0x4eaf0d[_0x4eaf0d[_0x127c70(0x1d2)]=0x4]='Delete',_0x4eaf0d[_0x4eaf0d[_0x127c70(0x1d4)]=0x5]=_0x127c70(0x1d4),_0x4eaf0d[_0x4eaf0d[_0x127c70(0x1ca)]=-0x1]=_0x127c70(0x1ca),_0x4eaf0d))(p||{});const O=_0x437486=>_0x3b243d(new Date(+_0x437486))[_0x127c70(0x21d)](_0x127c70(0x212)),K=async(_0x276250,_0x4e3cb2)=>{const _0x496f82=_0x127c70,_0x27d02f=_0x276250[_0x496f82(0x1d1)](_0x513077),_0x543c16=_0x276250['get'](_0x1fe438);_0x4e3cb2[_0x496f82(0x1cf)](_0x18e10f=>{const _0x442f6d=_0x496f82;_0x27d02f[_0x442f6d(0x1ff)](_0x18e10f)&&_0x4e3cb2[_0x442f6d(0x1c0)](_0x18e10f);}),_0x4e3cb2[_0x496f82(0x20e)]&&(await _0x543c16[_0x496f82(0x1d1)](_0x496f82(0x1e3),{'params':{'userIDs':[..._0x4e3cb2]}}))[_0x496f82(0x1e8)]['users'][_0x496f82(0x1cf)](_0x2f2e94=>{const _0x49138b=_0x496f82;_0x2f2e94&&_0x27d02f[_0x49138b(0x1fb)](_0x2f2e94);});};var V=Object['defineProperty'],z=Object['getOwnPropertyDescriptor'],Q=(_0x522c05,_0x229904,_0x23691f,_0x339773)=>{const _0x55ba67=_0x127c70;for(var _0xea9741=_0x339773>0x1?void 0x0:_0x339773?z(_0x229904,_0x23691f):_0x229904,_0x53d7db=_0x522c05[_0x55ba67(0x1c3)]-0x1,_0x329f5d;_0x53d7db>=0x0;_0x53d7db--)(_0x329f5d=_0x522c05[_0x53d7db])&&(_0xea9741=(_0x339773?_0x329f5d(_0x229904,_0x23691f,_0xea9741):_0x329f5d(_0xea9741))||_0xea9741);return _0x339773&&_0xea9741&&V(_0x229904,_0x23691f,_0xea9741),_0xea9741;},_=(_0x6ea00e,_0xad53d4)=>(_0x41e322,_0x21b948)=>_0xad53d4(_0x41e322,_0x21b948,_0x6ea00e);let f=class extends _0x4095c6{constructor(_0x40fdf5,_0x495a28,_0x276913,_0x26c23f){const _0x555503=_0x127c70;super(),this[_0x555503(0x206)]=_0x40fdf5,this[_0x555503(0x1e5)]=_0x495a28,this[_0x555503(0x1d3)]=_0x276913,this['_injector']=_0x26c23f,this[_0x555503(0x1cc)](),this['_initUserSync']();}[_0x127c70(0x21e)](){const _0x3a7dbf=_0x127c70;this[_0x3a7dbf(0x211)](this[_0x3a7dbf(0x1e5)][_0x3a7dbf(0x1d5)][_0x3a7dbf(0x203)](_0xb97f01(0x10))[_0x3a7dbf(0x1e9)](_0x911524=>{const _0x34b1fa=_0x3a7dbf,_0x212d32=new Set();_0x911524[_0x34b1fa(0x1cf)](_0x408f5b=>{const _0xf943c0=_0x34b1fa;switch(_0x408f5b['type']){case _0xf943c0(0x1c8):{const _0x5aba87=_0x408f5b[_0xf943c0(0x210)][_0xf943c0(0x221)];_0x212d32['add'](_0x5aba87);break;}}}),K(this[_0x34b1fa(0x1bd)],_0x212d32);}));}[_0x127c70(0x1cc)](){const _0x1dfd6c=_0x127c70;this[_0x1dfd6c(0x211)](this['_commentService'][_0x1dfd6c(0x1d5)][_0x1dfd6c(0x1e9)](async _0x3b8ec8=>{const _0x3ae912=_0x1dfd6c;var _0x4decfd,_0x5ddcc5,_0xc95c1c,_0xdb4f8d;const _0x4ed2c6=(_0x4decfd=this[_0x3ae912(0x1e5)][_0x3ae912(0x1f8)](_0x3b8ec8[_0x3ae912(0x1e6)])[_0x3ae912(0x1fc)](_0x33e20e=>_0x33e20e[_0x3ae912(0x1d6)]===_0x3b8ec8[_0x3ae912(0x1d6)]))==null?void 0x0:_0x4decfd['root'];if(!_0x4ed2c6)return;const {unitId:_0x351d7d,subUnitId:_0x40da8e}=_0x4ed2c6;switch(_0x3b8ec8[_0x3ae912(0x1f4)]&&this['_userService'][_0x3ae912(0x1fb)](_0x3b8ec8['user']),_0x3b8ec8[_0x3ae912(0x205)]){case p['Add']:break;case p['Reply']:{this[_0x3ae912(0x1e5)][_0x3ae912(0x1dd)](_0x351d7d,_0x40da8e,{'unitId':_0x351d7d,'subUnitId':_0x40da8e,'ref':'','id':_0x3b8ec8['replyId'],'dT':O(+_0x3b8ec8['createTimestamp']),'threadId':_0x3b8ec8[_0x3ae912(0x1d6)],'personId':(_0xc95c1c=(_0x5ddcc5=_0x3b8ec8['user'])==null?void 0x0:_0x5ddcc5[_0x3ae912(0x1d0)])!=null?_0xc95c1c:_0x3b8ec8[_0x3ae912(0x1c1)],'text':JSON[_0x3ae912(0x1fd)](_0x3b8ec8[_0x3ae912(0x1ee)]),'parentId':_0x4ed2c6['id']});break;}case p[_0x3ae912(0x1d2)]:{const _0x273215=this[_0x3ae912(0x1e5)][_0x3ae912(0x1f6)](_0x351d7d,_0x40da8e,_0x3b8ec8[_0x3ae912(0x1c6)]);_0x273215&&_0x273215[_0x3ae912(0x219)]&&this[_0x3ae912(0x1e5)][_0x3ae912(0x1be)](_0x351d7d,_0x40da8e,_0x3b8ec8[_0x3ae912(0x1c6)]);break;}case p[_0x3ae912(0x1bf)]:{this[_0x3ae912(0x1e5)]['updateComment'](_0x351d7d,_0x40da8e,{'commentId':_0x3b8ec8[_0x3ae912(0x1c6)],'text':JSON['parse'](_0x3b8ec8[_0x3ae912(0x1ee)])});break;}case p[_0x3ae912(0x1d4)]:{const _0x19a720=(_0xdb4f8d=this['_threadCommentModel']['getUnit'](_0x3b8ec8[_0x3ae912(0x1e6)])[_0x3ae912(0x1fc)](_0x22aba8=>_0x22aba8[_0x3ae912(0x1d6)]===_0x3b8ec8[_0x3ae912(0x1d6)]))==null?void 0x0:_0xdb4f8d[_0x3ae912(0x20f)];_0x19a720&&this[_0x3ae912(0x1e5)][_0x3ae912(0x1f2)](_0x351d7d,_0x40da8e,_0x19a720['id'],_0x3b8ec8[_0x3ae912(0x21f)]===v[_0x3ae912(0x215)]);break;}}}));}};f=Q([_(0x0,_0x16bcf7(_0x1d752)),_(0x1,_0x16bcf7(_0x1cda7d)),_(0x2,_0x16bcf7(_0x513077)),_(0x3,_0x16bcf7(_0x1a496c))],f);const X=_0x127c70(0x20c),P={};var k=Object[_0x127c70(0x1ea)],ee=Object[_0x127c70(0x1f9)],re=(_0x56e8ab,_0x5d9249,_0x43fd96,_0xa3151)=>{const _0x129df4=_0x127c70;for(var _0x5f2f56=_0xa3151>0x1?void 0x0:_0xa3151?ee(_0x5d9249,_0x43fd96):_0x5d9249,_0x9e9cd6=_0x56e8ab[_0x129df4(0x1c3)]-0x1,_0x24a3fa;_0x9e9cd6>=0x0;_0x9e9cd6--)(_0x24a3fa=_0x56e8ab[_0x9e9cd6])&&(_0x5f2f56=(_0xa3151?_0x24a3fa(_0x5d9249,_0x43fd96,_0x5f2f56):_0x24a3fa(_0x5f2f56))||_0x5f2f56);return _0xa3151&&_0x5f2f56&&k(_0x5d9249,_0x43fd96,_0x5f2f56),_0x5f2f56;},I=(_0x46334b,_0x365e15)=>(_0x48090a,_0x32a99c)=>_0x365e15(_0x48090a,_0x32a99c,_0x46334b);function te(_0x568278,_0x2a9810){const _0x1a8330=_0x127c70,_0x34f4d1=_0x568278['replies'][0x0];return{..._0x2a9810,'id':_0x34f4d1[_0x1a8330(0x1c6)],'resolved':_0x568278[_0x1a8330(0x21f)]===0x1,'dT':O(_0x34f4d1[_0x1a8330(0x1da)]),'personId':_0x34f4d1[_0x1a8330(0x1c1)],'threadId':_0x34f4d1[_0x1a8330(0x1d6)]};}function se(_0x476c3c,_0x4a2b56,_0x5203be){const _0x2a6c94=_0x127c70;var _0x245f17,_0x2e11e6;if(((_0x2e11e6=(_0x245f17=_0x476c3c==null?void 0x0:_0x476c3c[_0x2a6c94(0x20a)])==null?void 0x0:_0x245f17['length'])!=null?_0x2e11e6:0x0)>0x0){const _0x3bd4c1=(_0xe4e9f3,_0x39dd5d)=>({'id':_0xe4e9f3['replyId'],'threadId':_0xe4e9f3[_0x2a6c94(0x1d6)],'dT':O(_0xe4e9f3[_0x2a6c94(0x1da)]),'personId':_0xe4e9f3[_0x2a6c94(0x1c1)],'resolved':_0x476c3c[_0x2a6c94(0x21f)]===v[_0x2a6c94(0x215)],'unitId':_0x4a2b56,'subUnitId':_0x5203be,'text':JSON['parse'](_0xe4e9f3[_0x2a6c94(0x1ee)]),'parentId':_0x39dd5d}),_0x151a0b=_0x3bd4c1(_0x476c3c['replies'][0x0]);return{..._0x151a0b,'children':_0x476c3c['replies'][_0x2a6c94(0x1ef)](0x1)[_0x2a6c94(0x1df)](_0x2d93e7=>_0x3bd4c1(_0x2d93e7,_0x151a0b['id']))};}return null;}let S=class{constructor(_0x54fd15,_0x2bcb3b,_0x1b5d8b,_0x12405f){const _0x240eb2=_0x127c70;this[_0x240eb2(0x208)]=_0x54fd15,this['_userService']=_0x2bcb3b,this[_0x240eb2(0x1ce)]=_0x1b5d8b,this[_0x240eb2(0x1bd)]=_0x12405f;}async['addComment'](_0x4b00b0){const _0x57a9c4=_0x127c70;var _0x4c6e78,_0x7e391b;const {parentId:_0x5379a6,unitId:_0x5a43ad,text:_0x489579,threadId:_0x5bbc1a}=_0x4b00b0,_0x5eb6e5=(_0x7e391b=(_0x4c6e78=_0x489579[_0x57a9c4(0x204)])==null?void 0x0:_0x4c6e78['filter'](_0x106333=>_0x106333['rangeType']===_0x50aa39[_0x57a9c4(0x1f7)])[_0x57a9c4(0x1df)](_0x2ccab6=>_0x2ccab6['rangeId']))!=null?_0x7e391b:[],_0x249002=JSON['stringify'](_0x489579),_0x12e31d=(await this[_0x57a9c4(0x1ce)][_0x57a9c4(0x21b)](_0x5a43ad))[_0x57a9c4(0x1bc)]();if(_0x5379a6){const _0xb29c45={'memberId':_0x12e31d,'unitId':_0x5a43ad,'content':_0x249002,'mention':_0x5eb6e5,'threadId':_0x5bbc1a},_0x3aa762=(await this['_httpService'][_0x57a9c4(0x1c5)](_0x57a9c4(0x1cb)+_0x5a43ad+_0x57a9c4(0x1dc),{'body':_0xb29c45}))['body'][_0x57a9c4(0x1db)];return{..._0x4b00b0,'id':_0x3aa762[_0x57a9c4(0x1c6)],'dT':_0x3b243d(+_0x3aa762[_0x57a9c4(0x1da)])['format'](_0x57a9c4(0x212)),'personId':_0x3aa762['userId']};}else{const _0x39ffc5={'memberId':_0x12e31d,'unitId':_0x5a43ad,'content':_0x249002,'mention':_0x5eb6e5},_0xf7b283=await this[_0x57a9c4(0x208)][_0x57a9c4(0x1c5)]('/universer-api/comment/unit/'+_0x5a43ad+'/add',{'body':_0x39ffc5});return te(_0xf7b283[_0x57a9c4(0x1e8)][_0x57a9c4(0x1fe)],_0x4b00b0);}}async['updateComment'](_0x59d42b){const _0x548284=_0x127c70;var _0x379cef,_0x1e917e;const {text:_0x145f74,unitId:_0xaa3ecc}=_0x59d42b,_0x23c3b1=(_0x1e917e=(_0x379cef=_0x145f74[_0x548284(0x204)])==null?void 0x0:_0x379cef[_0x548284(0x1c7)](_0x1d2670=>_0x1d2670[_0x548284(0x1f1)]===_0x50aa39[_0x548284(0x1f7)])[_0x548284(0x1df)](_0x8d8ff7=>_0x8d8ff7[_0x548284(0x1f3)]))!=null?_0x1e917e:[],_0x2516b3=JSON['stringify'](_0x145f74),_0x1ed1a0=_0x59d42b[_0x548284(0x1d6)],_0x6da564=_0x59d42b['id'],_0x15d63b={'memberId':(await this[_0x548284(0x1ce)]['requireSession'](_0xaa3ecc))[_0x548284(0x1bc)](),'unitId':_0xaa3ecc,'threadId':_0x1ed1a0,'mention':_0x23c3b1,'content':_0x2516b3,'replyId':_0x6da564},_0xa8a56=await this[_0x548284(0x208)][_0x548284(0x1c5)](_0x548284(0x1cb)+_0xaa3ecc+'/edit',{'body':_0x15d63b});return!_0xa8a56[_0x548284(0x1e8)][_0x548284(0x209)]||_0xa8a56[_0x548284(0x1e8)][_0x548284(0x209)][_0x548284(0x1e4)]===0x1;}async[_0x127c70(0x1f2)](_0x2ae716){const _0x122c58=_0x127c70,{unitId:_0x1cc550}=_0x2ae716,_0x47f735=_0x2ae716['threadId'],_0x53033b={'memberId':this[_0x122c58(0x1d3)]['getCurrentUser']()[_0x122c58(0x1d0)],'unitId':_0x1cc550,'threadId':_0x47f735,'solved':_0x2ae716[_0x122c58(0x217)]?v['Solved']:v['OpenOrReOpen']},_0x49df8e=await this[_0x122c58(0x208)]['post'](_0x122c58(0x1cb)+_0x1cc550+_0x122c58(0x21c),{'body':_0x53033b});return!_0x49df8e[_0x122c58(0x1e8)][_0x122c58(0x209)]||_0x49df8e['body'][_0x122c58(0x209)][_0x122c58(0x1e4)]===0x1;}async[_0x127c70(0x1be)](_0x574fa7,_0x563d98,_0x3eaacd,_0x217d7e){const _0x26aaff=_0x127c70,_0x588aa0={'memberId':(await this['_sessionService']['requireSession'](_0x574fa7))[_0x26aaff(0x1bc)](),'threadId':_0x3eaacd,'replyId':_0x217d7e,'unitId':_0x574fa7},_0x341933=await this[_0x26aaff(0x208)][_0x26aaff(0x1c5)](_0x26aaff(0x1cb)+_0x574fa7+_0x26aaff(0x1e0),{'body':_0x588aa0});return!_0x341933[_0x26aaff(0x1e8)][_0x26aaff(0x209)]||_0x341933[_0x26aaff(0x1e8)][_0x26aaff(0x209)][_0x26aaff(0x1e4)]===0x1;}async[_0x127c70(0x223)](_0x2628f7,_0x3735bf,_0xa677ee){const _0x288010=_0x127c70,_0x5b8934={'unitId':_0x2628f7,'threadId':_0xa677ee},_0x41a87f=await this['_httpService'][_0x288010(0x1c5)](_0x288010(0x1cb)+_0x2628f7+'/list',{'body':_0x5b8934}),_0x2db93b=_0xa677ee[_0x288010(0x1df)](_0x5782bb=>se(_0x41a87f[_0x288010(0x1e8)][_0x288010(0x220)][_0x5782bb],_0x2628f7,_0x3735bf))[_0x288010(0x1c7)](Boolean);return Object[_0x288010(0x224)](_0x41a87f['body'][_0x288010(0x1ec)])['forEach'](_0x34a5e0=>{const _0x1aeefc=_0x288010;this[_0x1aeefc(0x1d3)][_0x1aeefc(0x1fb)](_0x34a5e0);}),_0x2db93b;}[_0x127c70(0x1f5)](_0x1aecba){const _0x54ec35=_0x127c70;return{'id':_0x1aecba['id'],'threadId':_0x1aecba[_0x54ec35(0x1d6)],'ref':_0x1aecba[_0x54ec35(0x1d7)]};}};S=re([I(0x0,_0x16bcf7(_0x1fe438)),I(0x1,_0x16bcf7(_0x513077)),I(0x2,_0x16bcf7(_0x5f57db)),I(0x3,_0x16bcf7(_0x1a496c))],S);var oe=Object[_0x127c70(0x1ea)],ne=Object[_0x127c70(0x1f9)],ie=(_0x27e1a6,_0x4df58b,_0x18332f,_0x40a625)=>{for(var _0x349b61=_0x40a625>0x1?void 0x0:_0x40a625?ne(_0x4df58b,_0x18332f):_0x4df58b,_0x1f852b=_0x27e1a6['length']-0x1,_0xf44690;_0x1f852b>=0x0;_0x1f852b--)(_0xf44690=_0x27e1a6[_0x1f852b])&&(_0x349b61=(_0x40a625?_0xf44690(_0x4df58b,_0x18332f,_0x349b61):_0xf44690(_0x349b61))||_0x349b61);return _0x40a625&&_0x349b61&&oe(_0x4df58b,_0x18332f,_0x349b61),_0x349b61;},M=(_0x205261,_0x344b61)=>(_0x41e983,_0x4ed3ff)=>_0x344b61(_0x41e983,_0x4ed3ff,_0x205261);let b=class extends _0x4095c6{constructor(_0x577d37,_0x43435d){const _0xaf561a=_0x127c70;super(),this['_threadCommentDataSourceService']=_0x577d37,this[_0xaf561a(0x213)]=_0x43435d,this[_0xaf561a(0x200)]();}[_0x127c70(0x200)](){const _0x764a58=_0x127c70;this['_threadCommentDataSourceService'][_0x764a58(0x1d9)]=this[_0x764a58(0x213)],this[_0x764a58(0x20d)][_0x764a58(0x21a)]=!0x1;}};b=ie([M(0x0,_0x5f2365),M(0x1,_0x16bcf7(S))],b);var $=Object[_0x127c70(0x1ea)],ce=Object[_0x127c70(0x1f9)],ae=(_0x16d6fa,_0x325bb6,_0x28d0c8)=>_0x325bb6 in _0x16d6fa?$(_0x16d6fa,_0x325bb6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28d0c8}):_0x16d6fa[_0x325bb6]=_0x28d0c8,de=(_0x3914ca,_0x2bb738,_0x9344af,_0x934a1f)=>{for(var _0x31f716=_0x934a1f>0x1?void 0x0:_0x934a1f?ce(_0x2bb738,_0x9344af):_0x2bb738,_0x1eec79=_0x3914ca['length']-0x1,_0x59127c;_0x1eec79>=0x0;_0x1eec79--)(_0x59127c=_0x3914ca[_0x1eec79])&&(_0x31f716=(_0x934a1f?_0x59127c(_0x2bb738,_0x9344af,_0x31f716):_0x59127c(_0x31f716))||_0x31f716);return _0x934a1f&&_0x31f716&&$(_0x2bb738,_0x9344af,_0x31f716),_0x31f716;},N=(_0x1f2083,_0x4ecb09)=>(_0x333c5c,_0x324c65)=>_0x4ecb09(_0x333c5c,_0x324c65,_0x1f2083),j=(_0x2f604b,_0x1ec555,_0x26d6b6)=>ae(_0x2f604b,typeof _0x1ec555!=_0x127c70(0x1e7)?_0x1ec555+'':_0x1ec555,_0x26d6b6);let C=class extends _0x3b2600{constructor(_0x1c7f00=P,_0x346df9,_0x59b7ac){const _0x1406e9=_0x127c70;super(),this[_0x1406e9(0x1c4)]=_0x1c7f00,this[_0x1406e9(0x1bd)]=_0x346df9,this['_configService']=_0x59b7ac;const {..._0x339e1b}=_0x9e43a({},P,this[_0x1406e9(0x1c4)]);this[_0x1406e9(0x1eb)]['setConfig'](X,_0x339e1b);}[_0x127c70(0x1e2)](){const _0x1ab79f=_0x127c70;[[S],[b],[f]][_0x1ab79f(0x1cf)](_0x281335=>{const _0x26b56f=_0x1ab79f;this[_0x26b56f(0x1bd)][_0x26b56f(0x1c8)](_0x281335);});}[_0x127c70(0x218)](){const _0x30e1f3=_0x127c70;this[_0x30e1f3(0x1bd)][_0x30e1f3(0x1d1)](b),this[_0x30e1f3(0x1bd)]['get'](f);}};j(C,_0x127c70(0x20b),B),j(C,_0x127c70(0x205),_0x809406['UNIVER_UNKNOWN']),C=de([_0x1a800d(_0x331206,_0x2a8994,_0x2806f2),N(0x1,_0x16bcf7(_0x1a496c)),N(0x2,_0x2938ad)],C);function _0x5e95(){const _0x3dade4=['_initDataSource','4MsYFhF','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','pipe','customRanges','type','_commentService','OpenOrReOpen','_httpService','error','replies','pluginName','thread-comment-data-source.config','_threadCommentDataSourceService','size','root','payload','disposeWithMe','YYYY/MM/DD\x20HH:mm','_threadCommentDataSource','24zmpBuX','Solved','15219tPiZXm','resolved','onReady','parentId','syncUpdateMutationToColla','requireSession','/solved','format','_initUserSync','solved','comments','personId','6955536CCLLwR','listComments','values','getMemberID','_injector','deleteComment','Edit','delete','userId','402873QrZHln','length','_config','post','replyId','filter','add','159946IXHoOe','UNRECOGNIZED','/universer-api/comment/unit/','_init','5032636POvXNX','_sessionService','forEach','userID','get','Delete','_userService','Solve','commentUpdate$','threadId','ref','Add','dataSource','createTimestamp','reply','/reply','addComment','Reply','map','/delete','154848dirLli','onStarting','/universer-api/user/list','code','_threadCommentModel','unitId','symbol','body','subscribe','defineProperty','_configService','users','2190TEIuwt','content','slice','Unknown','rangeType','resolveComment','rangeId','user','saveCommentToSnapshot','getComment','COMMENT','getUnit','getOwnPropertyDescriptor','322390cxiZtK','addUser','find','parse','comment','getUser'];_0x5e95=function(){return _0x3dade4;};return _0x5e95();}export{C as UniverThreadCommentDataSourcePlugin};
|
|
1
|
+
const _0x11135d=_0x42d4;(function(_0xb4317b,_0x438a04){const _0x5819c7=_0x42d4,_0x18b876=_0xb4317b();while(!![]){try{const _0x30fc7d=-parseInt(_0x5819c7(0x1ae))/0x1+-parseInt(_0x5819c7(0x1b9))/0x2*(parseInt(_0x5819c7(0x1ab))/0x3)+-parseInt(_0x5819c7(0x18c))/0x4*(parseInt(_0x5819c7(0x19d))/0x5)+-parseInt(_0x5819c7(0x18e))/0x6*(-parseInt(_0x5819c7(0x1a0))/0x7)+-parseInt(_0x5819c7(0x1bf))/0x8+-parseInt(_0x5819c7(0x182))/0x9*(parseInt(_0x5819c7(0x1c5))/0xa)+parseInt(_0x5819c7(0x1a3))/0xb*(parseInt(_0x5819c7(0x1d4))/0xc);if(_0x30fc7d===_0x438a04)break;else _0x18b876['push'](_0x18b876['shift']());}catch(_0x45a043){_0x18b876['push'](_0x18b876['shift']());}}}(_0x3de0,0xc6c6e));import{CommentService as _0x48fa75,CollaborationSessionService as _0x19571b,UniverCollaborationClientPlugin as _0x5cf5e3}from'@univerjs-pro/collaboration-client';function _0x42d4(_0x2ed6c2,_0x3ed37c){const _0x3de0d7=_0x3de0();return _0x42d4=function(_0x42d4dd,_0x36f66e){_0x42d4dd=_0x42d4dd-0x172;let _0x5abaa1=_0x3de0d7[_0x42d4dd];return _0x5abaa1;},_0x42d4(_0x2ed6c2,_0x3ed37c);}import{UniverLicensePlugin as _0x5216b4}from'@univerjs-pro/license';import{dayjs as _0x5a09f0,UserManagerService as _0x3a63c3,Inject as _0x1b3c9b,Injector as _0x1a07e0,Disposable as _0x3877e1,CustomRangeType as _0x3a1e9a,UniverInstanceType as _0x5dfe26,DependentOn as _0x15041c,Plugin as _0xfde1f4,merge as _0x47015d,IConfigService as _0x641b04}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0xc74a7b}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x494b36,IThreadCommentDataSourceService as _0x2372e9}from'@univerjs/thread-comment';import{bufferTime as _0x4ab17b}from'rxjs';import{HTTPService as _0x311271}from'@univerjs/network';const B='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var v=(_0x4af69b=>(_0x4af69b[_0x4af69b[_0x11135d(0x1ac)]=0x0]=_0x11135d(0x1ac),_0x4af69b[_0x4af69b[_0x11135d(0x185)]=0x1]=_0x11135d(0x185),_0x4af69b[_0x4af69b['UNRECOGNIZED']=-0x1]=_0x11135d(0x184),_0x4af69b))(v||{}),p=(_0xaf7e3f=>(_0xaf7e3f[_0xaf7e3f[_0x11135d(0x1cd)]=0x0]=_0x11135d(0x1cd),_0xaf7e3f[_0xaf7e3f[_0x11135d(0x1a5)]=0x1]=_0x11135d(0x1a5),_0xaf7e3f[_0xaf7e3f['Reply']=0x2]='Reply',_0xaf7e3f[_0xaf7e3f[_0x11135d(0x177)]=0x3]=_0x11135d(0x177),_0xaf7e3f[_0xaf7e3f[_0x11135d(0x198)]=0x4]=_0x11135d(0x198),_0xaf7e3f[_0xaf7e3f[_0x11135d(0x1ba)]=0x5]='Solve',_0xaf7e3f[_0xaf7e3f['UNRECOGNIZED']=-0x1]=_0x11135d(0x184),_0xaf7e3f))(p||{});const O=_0x3f25de=>_0x5a09f0(new Date(+_0x3f25de))[_0x11135d(0x1a9)](_0x11135d(0x19a)),K=async(_0x522920,_0x2761a0)=>{const _0x2df213=_0x11135d,_0x371651=_0x522920['get'](_0x3a63c3),_0x3bfc05=_0x522920['get'](_0x311271);_0x2761a0['forEach'](_0x453e25=>{const _0x4e8db8=_0x42d4;_0x371651[_0x4e8db8(0x1ad)](_0x453e25)&&_0x2761a0[_0x4e8db8(0x195)](_0x453e25);}),_0x2761a0[_0x2df213(0x1af)]&&(await _0x3bfc05[_0x2df213(0x194)](_0x2df213(0x1a8),{'params':{'userIDs':[..._0x2761a0]}}))[_0x2df213(0x1d5)][_0x2df213(0x1c2)][_0x2df213(0x18f)](_0x5e9f02=>{_0x5e9f02&&_0x371651['addUser'](_0x5e9f02);});};var V=Object[_0x11135d(0x1d3)],z=Object['getOwnPropertyDescriptor'],Q=(_0x568444,_0x5965f9,_0x5c35d8,_0x46fc30)=>{const _0x56f88b=_0x11135d;for(var _0x5ca29b=_0x46fc30>0x1?void 0x0:_0x46fc30?z(_0x5965f9,_0x5c35d8):_0x5965f9,_0x4e8554=_0x568444[_0x56f88b(0x17e)]-0x1,_0x485060;_0x4e8554>=0x0;_0x4e8554--)(_0x485060=_0x568444[_0x4e8554])&&(_0x5ca29b=(_0x46fc30?_0x485060(_0x5965f9,_0x5c35d8,_0x5ca29b):_0x485060(_0x5ca29b))||_0x5ca29b);return _0x46fc30&&_0x5ca29b&&V(_0x5965f9,_0x5c35d8,_0x5ca29b),_0x5ca29b;},_=(_0x10f18e,_0x343d44)=>(_0x51e350,_0x39eeaa)=>_0x343d44(_0x51e350,_0x39eeaa,_0x10f18e);let f=class extends _0x3877e1{constructor(_0x14df9f,_0x13ddc6,_0x2a75c3,_0x45c319){const _0x8ffdc7=_0x11135d;super(),this['_commentService']=_0x14df9f,this[_0x8ffdc7(0x1a7)]=_0x13ddc6,this[_0x8ffdc7(0x1c8)]=_0x2a75c3,this['_injector']=_0x45c319,this['_init'](),this[_0x8ffdc7(0x193)]();}[_0x11135d(0x193)](){const _0x1a8375=_0x11135d;this[_0x1a8375(0x1d6)](this[_0x1a8375(0x1a7)][_0x1a8375(0x1cb)][_0x1a8375(0x17b)](_0x4ab17b(0x10))[_0x1a8375(0x192)](_0x37a0b5=>{const _0x392462=_0x1a8375,_0x17bd46=new Set();_0x37a0b5[_0x392462(0x18f)](_0x5d6c91=>{const _0x139290=_0x392462;switch(_0x5d6c91[_0x139290(0x1a2)]){case'add':{const _0x11a35f=_0x5d6c91[_0x139290(0x1c9)]['personId'];_0x17bd46[_0x139290(0x1aa)](_0x11a35f);break;}}}),K(this[_0x392462(0x1c0)],_0x17bd46);}));}['_init'](){const _0xafbefd=_0x11135d;this[_0xafbefd(0x1d6)](this[_0xafbefd(0x18d)][_0xafbefd(0x1cb)][_0xafbefd(0x192)](async _0x282ee2=>{const _0xf65e28=_0xafbefd;var _0x38e2b0,_0xb5fe56,_0x14410c,_0x17e963;const _0x366e18=(_0x38e2b0=this[_0xf65e28(0x1a7)][_0xf65e28(0x1c3)](_0x282ee2[_0xf65e28(0x1bb)])[_0xf65e28(0x1cc)](_0x1161b3=>_0x1161b3[_0xf65e28(0x19c)]===_0x282ee2['threadId']))==null?void 0x0:_0x38e2b0[_0xf65e28(0x183)];if(!_0x366e18)return;const {unitId:_0x37b9b1,subUnitId:_0x456ff9}=_0x366e18;switch(_0x282ee2[_0xf65e28(0x178)]&&this['_userService'][_0xf65e28(0x1b2)](_0x282ee2[_0xf65e28(0x178)]),_0x282ee2['type']){case p[_0xf65e28(0x1a5)]:break;case p[_0xf65e28(0x17a)]:{this[_0xf65e28(0x1a7)]['addComment'](_0x37b9b1,_0x456ff9,{'unitId':_0x37b9b1,'subUnitId':_0x456ff9,'ref':'','id':_0x282ee2[_0xf65e28(0x1c6)],'dT':O(+_0x282ee2['createTimestamp']),'threadId':_0x282ee2['threadId'],'personId':(_0x14410c=(_0xb5fe56=_0x282ee2['user'])==null?void 0x0:_0xb5fe56[_0xf65e28(0x180)])!=null?_0x14410c:_0x282ee2[_0xf65e28(0x189)],'text':JSON[_0xf65e28(0x1b1)](_0x282ee2[_0xf65e28(0x1b7)]),'parentId':_0x366e18['id']});break;}case p['Delete']:{const _0x54a3ad=this[_0xf65e28(0x1a7)][_0xf65e28(0x179)](_0x37b9b1,_0x456ff9,_0x282ee2[_0xf65e28(0x1c6)]);_0x54a3ad&&_0x54a3ad[_0xf65e28(0x17d)]&&this[_0xf65e28(0x1a7)]['deleteComment'](_0x37b9b1,_0x456ff9,_0x282ee2['replyId']);break;}case p[_0xf65e28(0x177)]:{this[_0xf65e28(0x1a7)][_0xf65e28(0x1d0)](_0x37b9b1,_0x456ff9,{'commentId':_0x282ee2[_0xf65e28(0x1c6)],'text':JSON['parse'](_0x282ee2[_0xf65e28(0x1b7)])});break;}case p[_0xf65e28(0x1ba)]:{const _0x565e48=(_0x17e963=this[_0xf65e28(0x1a7)][_0xf65e28(0x1c3)](_0x282ee2['unitId'])[_0xf65e28(0x1cc)](_0x2926b8=>_0x2926b8[_0xf65e28(0x19c)]===_0x282ee2[_0xf65e28(0x19c)]))==null?void 0x0:_0x17e963[_0xf65e28(0x183)];_0x565e48&&this[_0xf65e28(0x1a7)]['resolveComment'](_0x37b9b1,_0x456ff9,_0x565e48['id'],_0x282ee2[_0xf65e28(0x1bc)]===v[_0xf65e28(0x185)]);break;}}}));}};f=Q([_(0x0,_0x1b3c9b(_0x48fa75)),_(0x1,_0x1b3c9b(_0x494b36)),_(0x2,_0x1b3c9b(_0x3a63c3)),_(0x3,_0x1b3c9b(_0x1a07e0))],f);const X=_0x11135d(0x186),P={};var k=Object[_0x11135d(0x1d3)],ee=Object['getOwnPropertyDescriptor'],re=(_0x41f394,_0x5cd2b9,_0x455308,_0x3979d0)=>{for(var _0x36f8d3=_0x3979d0>0x1?void 0x0:_0x3979d0?ee(_0x5cd2b9,_0x455308):_0x5cd2b9,_0x539d49=_0x41f394['length']-0x1,_0x3123f8;_0x539d49>=0x0;_0x539d49--)(_0x3123f8=_0x41f394[_0x539d49])&&(_0x36f8d3=(_0x3979d0?_0x3123f8(_0x5cd2b9,_0x455308,_0x36f8d3):_0x3123f8(_0x36f8d3))||_0x36f8d3);return _0x3979d0&&_0x36f8d3&&k(_0x5cd2b9,_0x455308,_0x36f8d3),_0x36f8d3;},I=(_0x170f0f,_0x36fcf1)=>(_0x4facc3,_0x37fa0e)=>_0x36fcf1(_0x4facc3,_0x37fa0e,_0x170f0f);function te(_0x26a7f8,_0x51699e){const _0x957f47=_0x11135d,_0x44ff6d=_0x26a7f8[_0x957f47(0x19f)][0x0];return{..._0x51699e,'id':_0x44ff6d[_0x957f47(0x1c6)],'resolved':_0x26a7f8['solved']===0x1,'dT':O(_0x44ff6d[_0x957f47(0x199)]),'personId':_0x44ff6d[_0x957f47(0x189)],'threadId':_0x44ff6d['threadId']};}function se(_0x1679a4,_0x13dc8d,_0x401a92){const _0x5928d9=_0x11135d;var _0x4b100f,_0x37c3ae;if(((_0x37c3ae=(_0x4b100f=_0x1679a4==null?void 0x0:_0x1679a4[_0x5928d9(0x19f)])==null?void 0x0:_0x4b100f[_0x5928d9(0x17e)])!=null?_0x37c3ae:0x0)>0x0){const _0x40bfef=(_0x95b8ec,_0x39e022)=>({'id':_0x95b8ec[_0x5928d9(0x1c6)],'threadId':_0x95b8ec[_0x5928d9(0x19c)],'dT':O(_0x95b8ec[_0x5928d9(0x199)]),'personId':_0x95b8ec[_0x5928d9(0x189)],'resolved':_0x1679a4[_0x5928d9(0x1bc)]===v[_0x5928d9(0x185)],'unitId':_0x13dc8d,'subUnitId':_0x401a92,'text':JSON[_0x5928d9(0x1b1)](_0x95b8ec[_0x5928d9(0x1b7)]),'parentId':_0x39e022}),_0xa9c8d2=_0x40bfef(_0x1679a4[_0x5928d9(0x19f)][0x0]);return{..._0xa9c8d2,'children':_0x1679a4['replies'][_0x5928d9(0x197)](0x1)['map'](_0x4d6851=>_0x40bfef(_0x4d6851,_0xa9c8d2['id']))};}return null;}function _0x3de0(){const _0xfa443e=['4817140elKnKi','replyId','code','_userService','payload','syncUpdateMutationToColla','commentUpdate$','find','Unknown','requireSession','/list','updateComment','comment','_threadCommentDataSourceService','defineProperty','2842968ObsJJn','body','disposeWithMe','_initDataSource','getCurrentUser','_httpService','_threadCommentDataSource','error','symbol','Edit','user','getComment','Reply','pipe','resolved','parentId','length','COMMENT','userID','map','9HQumoT','root','UNRECOGNIZED','Solved','thread-comment-data-source.config','reply','/universer-api/comment/unit/','userId','deleteComment','ref','67760iAXcpb','_commentService','237042LUAqhp','forEach','/reply','values','subscribe','_initUserSync','get','delete','setConfig','slice','Delete','createTimestamp','YYYY/MM/DD\x20HH:mm','/add','threadId','245mbhPSz','onReady','replies','238tefDdj','getMemberID','type','132BsjKXV','post','Add','getOwnPropertyDescriptor','_threadCommentModel','/universer-api/user/list','format','add','53043UxrrEP','OpenOrReOpen','getUser','713544Rrcqpe','size','_sessionService','parse','addUser','rangeId','_config','dataSource','filter','content','customRanges','2aRdZtc','Solve','unitId','solved','rangeType','_configService','10632136WmiTCn','_injector','resolveComment','users','getUnit','addComment'];_0x3de0=function(){return _0xfa443e;};return _0x3de0();}let S=class{constructor(_0x1de37f,_0x1fd6dc,_0x220136,_0x413907){const _0x5e404d=_0x11135d;this[_0x5e404d(0x173)]=_0x1de37f,this[_0x5e404d(0x1c8)]=_0x1fd6dc,this[_0x5e404d(0x1b0)]=_0x220136,this[_0x5e404d(0x1c0)]=_0x413907;}async[_0x11135d(0x1c4)](_0x4f3466){const _0x449da1=_0x11135d;var _0x188db8,_0x27b2a8;const {parentId:_0x4cc8a9,unitId:_0x52955f,text:_0x1c0c0a,threadId:_0xead42f}=_0x4f3466,_0x17ba93=(_0x27b2a8=(_0x188db8=_0x1c0c0a[_0x449da1(0x1b8)])==null?void 0x0:_0x188db8[_0x449da1(0x1b6)](_0x2d01f9=>_0x2d01f9[_0x449da1(0x1bd)]===_0x3a1e9a[_0x449da1(0x17f)])[_0x449da1(0x181)](_0x28a026=>_0x28a026[_0x449da1(0x1b3)]))!=null?_0x27b2a8:[],_0x11a697=JSON['stringify'](_0x1c0c0a),_0x4531f3=(await this[_0x449da1(0x1b0)][_0x449da1(0x1ce)](_0x52955f))[_0x449da1(0x1a1)]();if(_0x4cc8a9){const _0x5f13c8={'memberId':_0x4531f3,'unitId':_0x52955f,'content':_0x11a697,'mention':_0x17ba93,'threadId':_0xead42f},_0x22a4d1=(await this['_httpService'][_0x449da1(0x1a4)]('/universer-api/comment/unit/'+_0x52955f+_0x449da1(0x190),{'body':_0x5f13c8}))[_0x449da1(0x1d5)][_0x449da1(0x187)];return{..._0x4f3466,'id':_0x22a4d1['replyId'],'dT':_0x5a09f0(+_0x22a4d1[_0x449da1(0x199)])[_0x449da1(0x1a9)](_0x449da1(0x19a)),'personId':_0x22a4d1['userId']};}else{const _0x3c47cb={'memberId':_0x4531f3,'unitId':_0x52955f,'content':_0x11a697,'mention':_0x17ba93},_0x54288a=await this[_0x449da1(0x173)][_0x449da1(0x1a4)]('/universer-api/comment/unit/'+_0x52955f+_0x449da1(0x19b),{'body':_0x3c47cb});return te(_0x54288a['body'][_0x449da1(0x1d1)],_0x4f3466);}}async['updateComment'](_0x17f37b){const _0xa7e469=_0x11135d;var _0x515eb0,_0x4b664a;const {text:_0x3410a0,unitId:_0x401066}=_0x17f37b,_0x38165c=(_0x4b664a=(_0x515eb0=_0x3410a0['customRanges'])==null?void 0x0:_0x515eb0[_0xa7e469(0x1b6)](_0x5aa564=>_0x5aa564[_0xa7e469(0x1bd)]===_0x3a1e9a[_0xa7e469(0x17f)])[_0xa7e469(0x181)](_0x29063b=>_0x29063b['rangeId']))!=null?_0x4b664a:[],_0x3d29d4=JSON['stringify'](_0x3410a0),_0x44c3f8=_0x17f37b['threadId'],_0x31e9b5=_0x17f37b['id'],_0x76f75e={'memberId':(await this['_sessionService'][_0xa7e469(0x1ce)](_0x401066))['getMemberID'](),'unitId':_0x401066,'threadId':_0x44c3f8,'mention':_0x38165c,'content':_0x3d29d4,'replyId':_0x31e9b5},_0x1bab13=await this['_httpService'][_0xa7e469(0x1a4)](_0xa7e469(0x188)+_0x401066+'/edit',{'body':_0x76f75e});return!_0x1bab13[_0xa7e469(0x1d5)]['error']||_0x1bab13[_0xa7e469(0x1d5)]['error'][_0xa7e469(0x1c7)]===0x1;}async[_0x11135d(0x1c1)](_0x181454){const _0x5a6105=_0x11135d,{unitId:_0x481325}=_0x181454,_0xb4b3b2=_0x181454[_0x5a6105(0x19c)],_0x234636={'memberId':this[_0x5a6105(0x1c8)][_0x5a6105(0x172)]()[_0x5a6105(0x180)],'unitId':_0x481325,'threadId':_0xb4b3b2,'solved':_0x181454[_0x5a6105(0x17c)]?v['Solved']:v[_0x5a6105(0x1ac)]},_0x283b1b=await this[_0x5a6105(0x173)]['post'](_0x5a6105(0x188)+_0x481325+'/solved',{'body':_0x234636});return!_0x283b1b[_0x5a6105(0x1d5)][_0x5a6105(0x175)]||_0x283b1b[_0x5a6105(0x1d5)][_0x5a6105(0x175)][_0x5a6105(0x1c7)]===0x1;}async[_0x11135d(0x18a)](_0x98f6e,_0x443c67,_0xc67b98,_0x333fbf){const _0x3471eb=_0x11135d,_0x4b72b0={'memberId':(await this[_0x3471eb(0x1b0)][_0x3471eb(0x1ce)](_0x98f6e))[_0x3471eb(0x1a1)](),'threadId':_0xc67b98,'replyId':_0x333fbf,'unitId':_0x98f6e},_0x1a8e99=await this[_0x3471eb(0x173)][_0x3471eb(0x1a4)](_0x3471eb(0x188)+_0x98f6e+'/delete',{'body':_0x4b72b0});return!_0x1a8e99[_0x3471eb(0x1d5)]['error']||_0x1a8e99[_0x3471eb(0x1d5)][_0x3471eb(0x175)][_0x3471eb(0x1c7)]===0x1;}async['listComments'](_0x42b0d8,_0x4d1841,_0x1a9451){const _0x14f9a5=_0x11135d,_0x37b07e={'unitId':_0x42b0d8,'threadId':_0x1a9451},_0x4432d0=await this[_0x14f9a5(0x173)][_0x14f9a5(0x1a4)]('/universer-api/comment/unit/'+_0x42b0d8+_0x14f9a5(0x1cf),{'body':_0x37b07e}),_0x153a65=_0x1a9451[_0x14f9a5(0x181)](_0x4f8993=>se(_0x4432d0['body']['comments'][_0x4f8993],_0x42b0d8,_0x4d1841))[_0x14f9a5(0x1b6)](Boolean);return Object[_0x14f9a5(0x191)](_0x4432d0[_0x14f9a5(0x1d5)]['users'])['forEach'](_0x152fa3=>{const _0x5ba19d=_0x14f9a5;this['_userService'][_0x5ba19d(0x1b2)](_0x152fa3);}),_0x153a65;}['saveCommentToSnapshot'](_0x1ab410){const _0x5dd804=_0x11135d;return{'id':_0x1ab410['id'],'threadId':_0x1ab410[_0x5dd804(0x19c)],'ref':_0x1ab410[_0x5dd804(0x18b)]};}};S=re([I(0x0,_0x1b3c9b(_0x311271)),I(0x1,_0x1b3c9b(_0x3a63c3)),I(0x2,_0x1b3c9b(_0x19571b)),I(0x3,_0x1b3c9b(_0x1a07e0))],S);var oe=Object['defineProperty'],ne=Object[_0x11135d(0x1a6)],ie=(_0x24515b,_0x1846a4,_0x240fce,_0x3ec0ce)=>{const _0x2a03ed=_0x11135d;for(var _0x2b7160=_0x3ec0ce>0x1?void 0x0:_0x3ec0ce?ne(_0x1846a4,_0x240fce):_0x1846a4,_0x32e7e1=_0x24515b[_0x2a03ed(0x17e)]-0x1,_0x48457c;_0x32e7e1>=0x0;_0x32e7e1--)(_0x48457c=_0x24515b[_0x32e7e1])&&(_0x2b7160=(_0x3ec0ce?_0x48457c(_0x1846a4,_0x240fce,_0x2b7160):_0x48457c(_0x2b7160))||_0x2b7160);return _0x3ec0ce&&_0x2b7160&&oe(_0x1846a4,_0x240fce,_0x2b7160),_0x2b7160;},M=(_0x4c1131,_0x4c85bc)=>(_0x71d870,_0x587cc6)=>_0x4c85bc(_0x71d870,_0x587cc6,_0x4c1131);let b=class extends _0x3877e1{constructor(_0x4f9826,_0x5c2d2c){const _0x5e998b=_0x11135d;super(),this[_0x5e998b(0x1d2)]=_0x4f9826,this[_0x5e998b(0x174)]=_0x5c2d2c,this['_initDataSource']();}[_0x11135d(0x1d7)](){const _0x793eac=_0x11135d;this[_0x793eac(0x1d2)][_0x793eac(0x1b5)]=this['_threadCommentDataSource'],this[_0x793eac(0x1d2)][_0x793eac(0x1ca)]=!0x1;}};b=ie([M(0x0,_0x2372e9),M(0x1,_0x1b3c9b(S))],b);var $=Object[_0x11135d(0x1d3)],ce=Object['getOwnPropertyDescriptor'],ae=(_0x3231b2,_0x54dd53,_0x20e095)=>_0x54dd53 in _0x3231b2?$(_0x3231b2,_0x54dd53,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20e095}):_0x3231b2[_0x54dd53]=_0x20e095,de=(_0x390edd,_0x2f6412,_0x5c31f2,_0x468681)=>{for(var _0x1b7629=_0x468681>0x1?void 0x0:_0x468681?ce(_0x2f6412,_0x5c31f2):_0x2f6412,_0x5d0184=_0x390edd['length']-0x1,_0x527d66;_0x5d0184>=0x0;_0x5d0184--)(_0x527d66=_0x390edd[_0x5d0184])&&(_0x1b7629=(_0x468681?_0x527d66(_0x2f6412,_0x5c31f2,_0x1b7629):_0x527d66(_0x1b7629))||_0x1b7629);return _0x468681&&_0x1b7629&&$(_0x2f6412,_0x5c31f2,_0x1b7629),_0x1b7629;},N=(_0x27c62e,_0x13c2d6)=>(_0x2abc61,_0x4b16c2)=>_0x13c2d6(_0x2abc61,_0x4b16c2,_0x27c62e),j=(_0x4b72c5,_0x32cd50,_0x518284)=>ae(_0x4b72c5,typeof _0x32cd50!=_0x11135d(0x176)?_0x32cd50+'':_0x32cd50,_0x518284);let C=class extends _0xfde1f4{constructor(_0x42cbfe=P,_0x42d407,_0x51ebc2){const _0x211376=_0x11135d;super(),this['_config']=_0x42cbfe,this[_0x211376(0x1c0)]=_0x42d407,this[_0x211376(0x1be)]=_0x51ebc2;const {..._0x99bff4}=_0x47015d({},P,this[_0x211376(0x1b4)]);this[_0x211376(0x1be)][_0x211376(0x196)](X,_0x99bff4);}['onStarting'](){const _0x119051=_0x11135d;[[S],[b],[f]][_0x119051(0x18f)](_0x1fba7c=>{const _0x1d8bf6=_0x119051;this[_0x1d8bf6(0x1c0)][_0x1d8bf6(0x1aa)](_0x1fba7c);});}[_0x11135d(0x19e)](){const _0x5d9320=_0x11135d;this['_injector']['get'](b),this[_0x5d9320(0x1c0)][_0x5d9320(0x194)](f);}};j(C,'pluginName',B),j(C,_0x11135d(0x1a2),_0x5dfe26['UNIVER_UNKNOWN']),C=de([_0x15041c(_0xc74a7b,_0x5cf5e3,_0x5216b4),N(0x1,_0x1b3c9b(_0x1a07e0)),N(0x2,_0x641b04)],C);export{C as UniverThreadCommentDataSourcePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x35fb(_0x4c3d6f,_0x1562f8){const _0xc729c=_0xc729();return _0x35fb=function(_0x35fb90,_0x5028f6){_0x35fb90=_0x35fb90-0xa2;let _0x5ea271=_0xc729c[_0x35fb90];return _0x5ea271;},_0x35fb(_0x4c3d6f,_0x1562f8);}function _0xc729(){const _0x5782c1=['@univerjs/thread-comment-ui','size','CommentService','_httpService','parse','_commentService','_sessionService','_initDataSource','onReady','rxjs','map','length','add','_threadCommentModel','_initUserSync','toStringTag','getOwnPropertyDescriptor','@univerjs-pro/license','Reply','UniverCollaborationClientPlugin','filter','deleteComment','commentUpdate$','comments','YYYY/MM/DD\x20HH:mm','get','reply','Injector','pluginName','ThreadCommentModel','@univerjs/core','/edit','exports','UniverProLicense','getUnit','updateComment','replies','content','stringify','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','addUser','312122RCumHf','_userService','CollaborationSessionService','Solve','@univerjs-pro/collaboration-client','UNIVER_UNKNOWN','OpenOrReOpen','UniverThreadCommentUi','post','thread-comment-data-source.config','comment','body','addComment','code','6155OJhgOd','setConfig','17225076Ddsycc','values','parentId','HTTPService','createTimestamp','find','COMMENT','getComment','Edit','UserManagerService','userId','onStarting','UniverLicensePlugin','UniverNetwork','CustomRangeType','getMemberID','UNRECOGNIZED','Plugin','988332wifUfm','resolved','Unknown','symbol','_config','userID','error','rangeId','@univerjs/thread-comment','4449069eHcGgT','pipe','/solved','3864168ZQqEPE','_threadCommentDataSourceService','forEach','dataSource','1158eMgdSN','Delete','Inject','ref','requireSession','IThreadCommentDataSourceService','amd','root','/delete','type','/universer-api/comment/unit/','_threadCommentDataSource','dayjs','_injector','slice','8ATlGjS','function','DependentOn','disposeWithMe','rangeType','bufferTime','_configService','resolveComment','payload','replyId','personId','saveCommentToSnapshot','/universer-api/user/list','2xdfWaF','10hpQEdK','user','defineProperty','customRanges','solved','unitId','users','subscribe','Solved','UniverInstanceType','Disposable','UniverThreadCommentUIPlugin','UniverThreadCommentDataSourcePlugin','Add','threadId','format','5407787VlQUFL','object'];_0xc729=function(){return _0x5782c1;};return _0xc729();}(function(_0x587a1d,_0x5b72ff){const _0x12469e=_0x35fb,_0xad9c7f=_0x587a1d();while(!![]){try{const _0x5b29f6=parseInt(_0x12469e(0xb3))/0x1*(parseInt(_0x12469e(0x101))/0x2)+parseInt(_0x12469e(0xd5))/0x3+parseInt(_0x12469e(0xe1))/0x4+parseInt(_0x12469e(0xc1))/0x5*(parseInt(_0x12469e(0xe5))/0x6)+parseInt(_0x12469e(0x112))/0x7*(parseInt(_0x12469e(0xf4))/0x8)+parseInt(_0x12469e(0xde))/0x9*(-parseInt(_0x12469e(0x102))/0xa)+-parseInt(_0x12469e(0xc3))/0xb;if(_0x5b29f6===_0x5b72ff)break;else _0xad9c7f['push'](_0xad9c7f['shift']());}catch(_0x1e341e){_0xad9c7f['push'](_0xad9c7f['shift']());}}}(_0xc729,0x881a3),function(_0x168f61,_0x4c15b9){const _0x224038=_0x35fb;typeof exports==_0x224038(0x113)&&typeof module<'u'?_0x4c15b9(exports,require(_0x224038(0xb7)),require('@univerjs-pro/license'),require(_0x224038(0xa8)),require(_0x224038(0x114)),require(_0x224038(0xdd)),require('rxjs'),require('@univerjs/network')):typeof define==_0x224038(0xf5)&&define[_0x224038(0xeb)]?define([_0x224038(0xaa),_0x224038(0xb7),_0x224038(0x125),_0x224038(0xa8),_0x224038(0x114),_0x224038(0xdd),'rxjs','@univerjs/network'],_0x4c15b9):(_0x168f61=typeof globalThis<'u'?globalThis:_0x168f61||self,_0x4c15b9(_0x168f61['UniverProThreadCommentDatasource']={},_0x168f61['UniverProCollaborationClient'],_0x168f61[_0x224038(0xab)],_0x168f61['UniverCore'],_0x168f61[_0x224038(0xba)],_0x168f61['UniverThreadComment'],_0x168f61[_0x224038(0x11d)],_0x168f61[_0x224038(0xd0)]));}(this,function(_0x251a00,_0x2366d1,_0x42d836,_0x5201e9,_0x54f061,_0x3a61b6,_0x597cc9,_0x3a53ec){'use strict';const _0x461055=_0x35fb;const _0x3ae81d=_0x461055(0xb1);var _0x5f7559=(_0x1e246e=>(_0x1e246e[_0x1e246e[_0x461055(0xb9)]=0x0]=_0x461055(0xb9),_0x1e246e[_0x1e246e['Solved']=0x1]=_0x461055(0x10a),_0x1e246e[_0x1e246e[_0x461055(0xd3)]=-0x1]=_0x461055(0xd3),_0x1e246e))(_0x5f7559||{}),_0x2c3441=(_0x4d3779=>(_0x4d3779[_0x4d3779[_0x461055(0xd7)]=0x0]=_0x461055(0xd7),_0x4d3779[_0x4d3779[_0x461055(0x10f)]=0x1]='Add',_0x4d3779[_0x4d3779['Reply']=0x2]='Reply',_0x4d3779[_0x4d3779[_0x461055(0xcb)]=0x3]=_0x461055(0xcb),_0x4d3779[_0x4d3779[_0x461055(0xe6)]=0x4]=_0x461055(0xe6),_0x4d3779[_0x4d3779['Solve']=0x5]=_0x461055(0xb6),_0x4d3779[_0x4d3779[_0x461055(0xd3)]=-0x1]='UNRECOGNIZED',_0x4d3779))(_0x2c3441||{});const _0x284afd=_0x1e01f7=>_0x5201e9[_0x461055(0xf1)](new Date(+_0x1e01f7))['format'](_0x461055(0xa2)),_0x2d4345=async(_0x2600ec,_0x370e9e)=>{const _0x30efda=_0x461055,_0x1adbb0=_0x2600ec[_0x30efda(0xa3)](_0x5201e9['UserManagerService']),_0x4be704=_0x2600ec[_0x30efda(0xa3)](_0x3a53ec[_0x30efda(0xc6)]);_0x370e9e[_0x30efda(0xe3)](_0x1e2ad2=>{_0x1adbb0['getUser'](_0x1e2ad2)&&_0x370e9e['delete'](_0x1e2ad2);}),_0x370e9e[_0x30efda(0x115)]&&(await _0x4be704[_0x30efda(0xa3)](_0x30efda(0x100),{'params':{'userIDs':[..._0x370e9e]}}))[_0x30efda(0xbe)][_0x30efda(0x108)][_0x30efda(0xe3)](_0xb3cf8c=>{_0xb3cf8c&&_0x1adbb0['addUser'](_0xb3cf8c);});};var _0x24379d=Object['defineProperty'],_0x59f50d=Object['getOwnPropertyDescriptor'],_0xf7b89a=(_0x428c44,_0x58fd76,_0x474f1f,_0x2daae5)=>{for(var _0x23fb62=_0x2daae5>0x1?void 0x0:_0x2daae5?_0x59f50d(_0x58fd76,_0x474f1f):_0x58fd76,_0x232e4b=_0x428c44['length']-0x1,_0x546398;_0x232e4b>=0x0;_0x232e4b--)(_0x546398=_0x428c44[_0x232e4b])&&(_0x23fb62=(_0x2daae5?_0x546398(_0x58fd76,_0x474f1f,_0x23fb62):_0x546398(_0x23fb62))||_0x23fb62);return _0x2daae5&&_0x23fb62&&_0x24379d(_0x58fd76,_0x474f1f,_0x23fb62),_0x23fb62;},_0x3e5db9=(_0x5e6567,_0xc849ff)=>(_0x33ec49,_0x18d525)=>_0xc849ff(_0x33ec49,_0x18d525,_0x5e6567);let _0x3cfe3c=class extends _0x5201e9[_0x461055(0x10c)]{constructor(_0x4a96f4,_0x4e7bcc,_0x17a855,_0x5699f5){const _0x3445ee=_0x461055;super(),this[_0x3445ee(0x119)]=_0x4a96f4,this[_0x3445ee(0x121)]=_0x4e7bcc,this[_0x3445ee(0xb4)]=_0x17a855,this[_0x3445ee(0xf2)]=_0x5699f5,this['_init'](),this[_0x3445ee(0x122)]();}[_0x461055(0x122)](){const _0x217def=_0x461055;this[_0x217def(0xf7)](this[_0x217def(0x121)][_0x217def(0x12a)][_0x217def(0xdf)](_0x597cc9[_0x217def(0xf9)](0x10))[_0x217def(0x109)](_0x48bae3=>{const _0x1414ec=_0x217def,_0x2d9f5d=new Set();_0x48bae3['forEach'](_0x52fc3a=>{const _0x23dc3c=_0x35fb;switch(_0x52fc3a[_0x23dc3c(0xee)]){case _0x23dc3c(0x120):{const _0x503b73=_0x52fc3a[_0x23dc3c(0xfc)][_0x23dc3c(0xfe)];_0x2d9f5d[_0x23dc3c(0x120)](_0x503b73);break;}}}),_0x2d4345(this[_0x1414ec(0xf2)],_0x2d9f5d);}));}['_init'](){const _0x517172=_0x461055;this[_0x517172(0xf7)](this[_0x517172(0x119)][_0x517172(0x12a)][_0x517172(0x109)](async _0x1db6ff=>{const _0x25e508=_0x517172;var _0x4fea5b,_0x9f6acc,_0x36a356,_0x53f226;const _0x2db376=(_0x4fea5b=this['_threadCommentModel'][_0x25e508(0xac)](_0x1db6ff[_0x25e508(0x107)])[_0x25e508(0xc8)](_0x32910b=>_0x32910b[_0x25e508(0x110)]===_0x1db6ff[_0x25e508(0x110)]))==null?void 0x0:_0x4fea5b['root'];if(!_0x2db376)return;const {unitId:_0x273ddf,subUnitId:_0x51fd4a}=_0x2db376;switch(_0x1db6ff[_0x25e508(0x103)]&&this[_0x25e508(0xb4)]['addUser'](_0x1db6ff['user']),_0x1db6ff[_0x25e508(0xee)]){case _0x2c3441[_0x25e508(0x10f)]:break;case _0x2c3441[_0x25e508(0x126)]:{this[_0x25e508(0x121)]['addComment'](_0x273ddf,_0x51fd4a,{'unitId':_0x273ddf,'subUnitId':_0x51fd4a,'ref':'','id':_0x1db6ff['replyId'],'dT':_0x284afd(+_0x1db6ff[_0x25e508(0xc7)]),'threadId':_0x1db6ff[_0x25e508(0x110)],'personId':(_0x36a356=(_0x9f6acc=_0x1db6ff['user'])==null?void 0x0:_0x9f6acc['userID'])!=null?_0x36a356:_0x1db6ff['userId'],'text':JSON[_0x25e508(0x118)](_0x1db6ff[_0x25e508(0xaf)]),'parentId':_0x2db376['id']});break;}case _0x2c3441['Delete']:{const _0x14abe9=this[_0x25e508(0x121)][_0x25e508(0xca)](_0x273ddf,_0x51fd4a,_0x1db6ff['replyId']);_0x14abe9&&_0x14abe9[_0x25e508(0xc5)]&&this[_0x25e508(0x121)][_0x25e508(0x129)](_0x273ddf,_0x51fd4a,_0x1db6ff['replyId']);break;}case _0x2c3441['Edit']:{this[_0x25e508(0x121)][_0x25e508(0xad)](_0x273ddf,_0x51fd4a,{'commentId':_0x1db6ff['replyId'],'text':JSON[_0x25e508(0x118)](_0x1db6ff[_0x25e508(0xaf)])});break;}case _0x2c3441['Solve']:{const _0x572e47=(_0x53f226=this[_0x25e508(0x121)][_0x25e508(0xac)](_0x1db6ff['unitId'])[_0x25e508(0xc8)](_0x1dbdf5=>_0x1dbdf5[_0x25e508(0x110)]===_0x1db6ff['threadId']))==null?void 0x0:_0x53f226[_0x25e508(0xec)];_0x572e47&&this['_threadCommentModel'][_0x25e508(0xfb)](_0x273ddf,_0x51fd4a,_0x572e47['id'],_0x1db6ff[_0x25e508(0x106)]===_0x5f7559[_0x25e508(0x10a)]);break;}}}));}};_0x3cfe3c=_0xf7b89a([_0x3e5db9(0x0,_0x5201e9[_0x461055(0xe7)](_0x2366d1[_0x461055(0x116)])),_0x3e5db9(0x1,_0x5201e9[_0x461055(0xe7)](_0x3a61b6[_0x461055(0xa7)])),_0x3e5db9(0x2,_0x5201e9[_0x461055(0xe7)](_0x5201e9[_0x461055(0xcc)])),_0x3e5db9(0x3,_0x5201e9[_0x461055(0xe7)](_0x5201e9[_0x461055(0xa5)]))],_0x3cfe3c);const _0x3374ef=_0x461055(0xbc),_0x1e0453={};var _0x1faff5=Object[_0x461055(0x104)],_0x1486ac=Object['getOwnPropertyDescriptor'],_0x4725cc=(_0x595b88,_0x140ab1,_0x3b1e79,_0x51c98c)=>{const _0x26aa9b=_0x461055;for(var _0x514960=_0x51c98c>0x1?void 0x0:_0x51c98c?_0x1486ac(_0x140ab1,_0x3b1e79):_0x140ab1,_0x50cea0=_0x595b88[_0x26aa9b(0x11f)]-0x1,_0x28786d;_0x50cea0>=0x0;_0x50cea0--)(_0x28786d=_0x595b88[_0x50cea0])&&(_0x514960=(_0x51c98c?_0x28786d(_0x140ab1,_0x3b1e79,_0x514960):_0x28786d(_0x514960))||_0x514960);return _0x51c98c&&_0x514960&&_0x1faff5(_0x140ab1,_0x3b1e79,_0x514960),_0x514960;},_0x4e4e5f=(_0xa2da31,_0x584ebc)=>(_0x33d4bd,_0x5f24c9)=>_0x584ebc(_0x33d4bd,_0x5f24c9,_0xa2da31);function _0x269973(_0x56fdb1,_0x5f0b99){const _0x484023=_0x461055,_0x2a485d=_0x56fdb1[_0x484023(0xae)][0x0];return{..._0x5f0b99,'id':_0x2a485d[_0x484023(0xfd)],'resolved':_0x56fdb1[_0x484023(0x106)]===0x1,'dT':_0x284afd(_0x2a485d[_0x484023(0xc7)]),'personId':_0x2a485d[_0x484023(0xcd)],'threadId':_0x2a485d[_0x484023(0x110)]};}function _0x5d427f(_0x16a1f9,_0x387923,_0x32541c){const _0x19969c=_0x461055;var _0x9e6f61,_0x5ed1bf;if(((_0x5ed1bf=(_0x9e6f61=_0x16a1f9==null?void 0x0:_0x16a1f9['replies'])==null?void 0x0:_0x9e6f61[_0x19969c(0x11f)])!=null?_0x5ed1bf:0x0)>0x0){const _0x2184c7=(_0x861886,_0x1d9e35)=>({'id':_0x861886['replyId'],'threadId':_0x861886[_0x19969c(0x110)],'dT':_0x284afd(_0x861886[_0x19969c(0xc7)]),'personId':_0x861886[_0x19969c(0xcd)],'resolved':_0x16a1f9[_0x19969c(0x106)]===_0x5f7559['Solved'],'unitId':_0x387923,'subUnitId':_0x32541c,'text':JSON[_0x19969c(0x118)](_0x861886[_0x19969c(0xaf)]),'parentId':_0x1d9e35}),_0x44b1a2=_0x2184c7(_0x16a1f9[_0x19969c(0xae)][0x0]);return{..._0x44b1a2,'children':_0x16a1f9[_0x19969c(0xae)][_0x19969c(0xf3)](0x1)[_0x19969c(0x11e)](_0xd209c1=>_0x2184c7(_0xd209c1,_0x44b1a2['id']))};}return null;}let _0x2f8131=class{constructor(_0x40fe2c,_0x5f5208,_0x468206,_0x39dc90){const _0x58c9df=_0x461055;this[_0x58c9df(0x117)]=_0x40fe2c,this[_0x58c9df(0xb4)]=_0x5f5208,this['_sessionService']=_0x468206,this[_0x58c9df(0xf2)]=_0x39dc90;}async[_0x461055(0xbf)](_0x3489e2){const _0x29d659=_0x461055;var _0x526083,_0x4b52f6;const {parentId:_0x113e0b,unitId:_0x3f5b6f,text:_0x4a31c3,threadId:_0x32adb6}=_0x3489e2,_0x5403c5=(_0x4b52f6=(_0x526083=_0x4a31c3['customRanges'])==null?void 0x0:_0x526083[_0x29d659(0x128)](_0x5c0742=>_0x5c0742[_0x29d659(0xf8)]===_0x5201e9[_0x29d659(0xd1)][_0x29d659(0xc9)])[_0x29d659(0x11e)](_0x3bb822=>_0x3bb822[_0x29d659(0xdc)]))!=null?_0x4b52f6:[],_0x301c81=JSON[_0x29d659(0xb0)](_0x4a31c3),_0x315a1a=(await this[_0x29d659(0x11a)]['requireSession'](_0x3f5b6f))[_0x29d659(0xd2)]();if(_0x113e0b){const _0x4e4164={'memberId':_0x315a1a,'unitId':_0x3f5b6f,'content':_0x301c81,'mention':_0x5403c5,'threadId':_0x32adb6},_0x537b15=(await this[_0x29d659(0x117)][_0x29d659(0xbb)]('/universer-api/comment/unit/'+_0x3f5b6f+'/reply',{'body':_0x4e4164}))[_0x29d659(0xbe)][_0x29d659(0xa4)];return{..._0x3489e2,'id':_0x537b15['replyId'],'dT':_0x5201e9[_0x29d659(0xf1)](+_0x537b15[_0x29d659(0xc7)])[_0x29d659(0x111)](_0x29d659(0xa2)),'personId':_0x537b15[_0x29d659(0xcd)]};}else{const _0x436a96={'memberId':_0x315a1a,'unitId':_0x3f5b6f,'content':_0x301c81,'mention':_0x5403c5},_0x498b0e=await this[_0x29d659(0x117)][_0x29d659(0xbb)](_0x29d659(0xef)+_0x3f5b6f+'/add',{'body':_0x436a96});return _0x269973(_0x498b0e['body'][_0x29d659(0xbd)],_0x3489e2);}}async[_0x461055(0xad)](_0x1c9db6){const _0x3eb34c=_0x461055;var _0x2dda8b,_0x39b27c;const {text:_0x32c465,unitId:_0x4ac5c6}=_0x1c9db6,_0x1099eb=(_0x39b27c=(_0x2dda8b=_0x32c465[_0x3eb34c(0x105)])==null?void 0x0:_0x2dda8b[_0x3eb34c(0x128)](_0x520186=>_0x520186[_0x3eb34c(0xf8)]===_0x5201e9[_0x3eb34c(0xd1)][_0x3eb34c(0xc9)])[_0x3eb34c(0x11e)](_0x20ca31=>_0x20ca31[_0x3eb34c(0xdc)]))!=null?_0x39b27c:[],_0x4b9fbe=JSON[_0x3eb34c(0xb0)](_0x32c465),_0x1cd2e6=_0x1c9db6[_0x3eb34c(0x110)],_0x9786be=_0x1c9db6['id'],_0x4c916={'memberId':(await this[_0x3eb34c(0x11a)][_0x3eb34c(0xe9)](_0x4ac5c6))[_0x3eb34c(0xd2)](),'unitId':_0x4ac5c6,'threadId':_0x1cd2e6,'mention':_0x1099eb,'content':_0x4b9fbe,'replyId':_0x9786be},_0x482f42=await this[_0x3eb34c(0x117)][_0x3eb34c(0xbb)](_0x3eb34c(0xef)+_0x4ac5c6+_0x3eb34c(0xa9),{'body':_0x4c916});return!_0x482f42[_0x3eb34c(0xbe)]['error']||_0x482f42[_0x3eb34c(0xbe)]['error'][_0x3eb34c(0xc0)]===0x1;}async[_0x461055(0xfb)](_0x3903ee){const _0x58dc4f=_0x461055,{unitId:_0x56a581}=_0x3903ee,_0x282d02=_0x3903ee['threadId'],_0x47e20c={'memberId':this[_0x58dc4f(0xb4)]['getCurrentUser']()[_0x58dc4f(0xda)],'unitId':_0x56a581,'threadId':_0x282d02,'solved':_0x3903ee[_0x58dc4f(0xd6)]?_0x5f7559[_0x58dc4f(0x10a)]:_0x5f7559[_0x58dc4f(0xb9)]},_0x40cb73=await this['_httpService'][_0x58dc4f(0xbb)](_0x58dc4f(0xef)+_0x56a581+_0x58dc4f(0xe0),{'body':_0x47e20c});return!_0x40cb73[_0x58dc4f(0xbe)][_0x58dc4f(0xdb)]||_0x40cb73[_0x58dc4f(0xbe)]['error'][_0x58dc4f(0xc0)]===0x1;}async['deleteComment'](_0x4a44e1,_0x193b2d,_0x532977,_0x52657c){const _0x1215da=_0x461055,_0x386d34={'memberId':(await this[_0x1215da(0x11a)]['requireSession'](_0x4a44e1))[_0x1215da(0xd2)](),'threadId':_0x532977,'replyId':_0x52657c,'unitId':_0x4a44e1},_0x2a0e57=await this[_0x1215da(0x117)][_0x1215da(0xbb)](_0x1215da(0xef)+_0x4a44e1+_0x1215da(0xed),{'body':_0x386d34});return!_0x2a0e57[_0x1215da(0xbe)][_0x1215da(0xdb)]||_0x2a0e57[_0x1215da(0xbe)]['error'][_0x1215da(0xc0)]===0x1;}async['listComments'](_0x1cac0e,_0x20c083,_0x114230){const _0x3767eb=_0x461055,_0x135d7b={'unitId':_0x1cac0e,'threadId':_0x114230},_0x24daf6=await this[_0x3767eb(0x117)][_0x3767eb(0xbb)](_0x3767eb(0xef)+_0x1cac0e+'/list',{'body':_0x135d7b}),_0x36ddad=_0x114230['map'](_0x31b709=>_0x5d427f(_0x24daf6['body'][_0x3767eb(0x12b)][_0x31b709],_0x1cac0e,_0x20c083))[_0x3767eb(0x128)](Boolean);return Object[_0x3767eb(0xc4)](_0x24daf6[_0x3767eb(0xbe)][_0x3767eb(0x108)])['forEach'](_0x19f4ee=>{const _0x15774c=_0x3767eb;this[_0x15774c(0xb4)][_0x15774c(0xb2)](_0x19f4ee);}),_0x36ddad;}[_0x461055(0xff)](_0x42f049){const _0x40e34d=_0x461055;return{'id':_0x42f049['id'],'threadId':_0x42f049['threadId'],'ref':_0x42f049[_0x40e34d(0xe8)]};}};_0x2f8131=_0x4725cc([_0x4e4e5f(0x0,_0x5201e9['Inject'](_0x3a53ec[_0x461055(0xc6)])),_0x4e4e5f(0x1,_0x5201e9[_0x461055(0xe7)](_0x5201e9[_0x461055(0xcc)])),_0x4e4e5f(0x2,_0x5201e9[_0x461055(0xe7)](_0x2366d1[_0x461055(0xb5)])),_0x4e4e5f(0x3,_0x5201e9[_0x461055(0xe7)](_0x5201e9[_0x461055(0xa5)]))],_0x2f8131);var _0x1ab0a0=Object['defineProperty'],_0x433edd=Object[_0x461055(0x124)],_0x22c870=(_0x1a2903,_0x15bf3c,_0x5ae544,_0xf23077)=>{for(var _0x200c1a=_0xf23077>0x1?void 0x0:_0xf23077?_0x433edd(_0x15bf3c,_0x5ae544):_0x15bf3c,_0x1324dc=_0x1a2903['length']-0x1,_0x1806ce;_0x1324dc>=0x0;_0x1324dc--)(_0x1806ce=_0x1a2903[_0x1324dc])&&(_0x200c1a=(_0xf23077?_0x1806ce(_0x15bf3c,_0x5ae544,_0x200c1a):_0x1806ce(_0x200c1a))||_0x200c1a);return _0xf23077&&_0x200c1a&&_0x1ab0a0(_0x15bf3c,_0x5ae544,_0x200c1a),_0x200c1a;},_0x1fe9e2=(_0x5d86a8,_0x147458)=>(_0x5d9e5f,_0x2a91f6)=>_0x147458(_0x5d9e5f,_0x2a91f6,_0x5d86a8);let _0x3c248e=class extends _0x5201e9['Disposable']{constructor(_0x50ba97,_0x258671){const _0x30b4d9=_0x461055;super(),this[_0x30b4d9(0xe2)]=_0x50ba97,this[_0x30b4d9(0xf0)]=_0x258671,this[_0x30b4d9(0x11b)]();}[_0x461055(0x11b)](){const _0x229be7=_0x461055;this[_0x229be7(0xe2)][_0x229be7(0xe4)]=this[_0x229be7(0xf0)],this['_threadCommentDataSourceService']['syncUpdateMutationToColla']=!0x1;}};_0x3c248e=_0x22c870([_0x1fe9e2(0x0,_0x3a61b6[_0x461055(0xea)]),_0x1fe9e2(0x1,_0x5201e9['Inject'](_0x2f8131))],_0x3c248e);var _0x486d4c=Object[_0x461055(0x104)],_0x4bb995=Object[_0x461055(0x124)],_0x519ef5=(_0x32b3f5,_0x586ee5,_0x43f6bc)=>_0x586ee5 in _0x32b3f5?_0x486d4c(_0x32b3f5,_0x586ee5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43f6bc}):_0x32b3f5[_0x586ee5]=_0x43f6bc,_0x315459=(_0x5c80f7,_0x41ac37,_0x426af4,_0x1bba0a)=>{const _0x1d58df=_0x461055;for(var _0x40e88d=_0x1bba0a>0x1?void 0x0:_0x1bba0a?_0x4bb995(_0x41ac37,_0x426af4):_0x41ac37,_0x26d72f=_0x5c80f7[_0x1d58df(0x11f)]-0x1,_0x4e850b;_0x26d72f>=0x0;_0x26d72f--)(_0x4e850b=_0x5c80f7[_0x26d72f])&&(_0x40e88d=(_0x1bba0a?_0x4e850b(_0x41ac37,_0x426af4,_0x40e88d):_0x4e850b(_0x40e88d))||_0x40e88d);return _0x1bba0a&&_0x40e88d&&_0x486d4c(_0x41ac37,_0x426af4,_0x40e88d),_0x40e88d;},_0x414b53=(_0x5603b5,_0x37cf40)=>(_0x39b8ab,_0x37d75a)=>_0x37cf40(_0x39b8ab,_0x37d75a,_0x5603b5),_0x29f509=(_0x4591e4,_0x40be1e,_0xadc543)=>_0x519ef5(_0x4591e4,typeof _0x40be1e!=_0x461055(0xd8)?_0x40be1e+'':_0x40be1e,_0xadc543);_0x251a00[_0x461055(0x10e)]=class extends _0x5201e9[_0x461055(0xd4)]{constructor(_0x4d14f3=_0x1e0453,_0xefb481,_0x1a670a){const _0x572e62=_0x461055;super(),this['_config']=_0x4d14f3,this[_0x572e62(0xf2)]=_0xefb481,this['_configService']=_0x1a670a;const {..._0x2451d8}=_0x5201e9['merge']({},_0x1e0453,this[_0x572e62(0xd9)]);this[_0x572e62(0xfa)][_0x572e62(0xc2)](_0x3374ef,_0x2451d8);}[_0x461055(0xce)](){[[_0x2f8131],[_0x3c248e],[_0x3cfe3c]]['forEach'](_0x4b34d2=>{const _0x5b91fd=_0x35fb;this[_0x5b91fd(0xf2)][_0x5b91fd(0x120)](_0x4b34d2);});}[_0x461055(0x11c)](){const _0x38c139=_0x461055;this[_0x38c139(0xf2)][_0x38c139(0xa3)](_0x3c248e),this['_injector']['get'](_0x3cfe3c);}},_0x29f509(_0x251a00['UniverThreadCommentDataSourcePlugin'],_0x461055(0xa6),_0x3ae81d),_0x29f509(_0x251a00['UniverThreadCommentDataSourcePlugin'],_0x461055(0xee),_0x5201e9[_0x461055(0x10b)][_0x461055(0xb8)]),_0x251a00['UniverThreadCommentDataSourcePlugin']=_0x315459([_0x5201e9[_0x461055(0xf6)](_0x54f061[_0x461055(0x10d)],_0x2366d1[_0x461055(0x127)],_0x42d836[_0x461055(0xcf)]),_0x414b53(0x1,_0x5201e9['Inject'](_0x5201e9[_0x461055(0xa5)])),_0x414b53(0x2,_0x5201e9['IConfigService'])],_0x251a00[_0x461055(0x10e)]),Object['defineProperty'](_0x251a00,Symbol[_0x461055(0x123)],{'value':'Module'});}));
|
|
1
|
+
function _0xfd6c(_0x4d2c22,_0x29ce6f){const _0x2ee2a4=_0x2ee2();return _0xfd6c=function(_0xfd6c83,_0x55df13){_0xfd6c83=_0xfd6c83-0x1e5;let _0x7048e5=_0x2ee2a4[_0xfd6c83];return _0x7048e5;},_0xfd6c(_0x4d2c22,_0x29ce6f);}function _0x2ee2(){const _0xcca537=['_threadCommentDataSourceService','pluginName','defineProperty','@univerjs/thread-comment-ui','dayjs','dataSource','@univerjs-pro/license','user','ref','unitId','737ekAIqd','saveCommentToSnapshot','_httpService','UniverThreadCommentDataSourcePlugin','_threadCommentModel','IConfigService','45eyoISk','UniverLicensePlugin','personId','@univerjs/thread-comment','UNIVER_UNKNOWN','DependentOn','CustomRangeType','_commentService','stringify','delete','find','type','updateComment','get','disposeWithMe','4120912fzfyNk','toStringTag','3249512OacOnk','Disposable','filter','Module','21UHxlcK','Unknown','customRanges','Edit','symbol','add','requireSession','UniverNetwork','pipe','_initDataSource','parse','resolveComment','getCurrentUser','IThreadCommentDataSourceService','reply','CollaborationSessionService','YYYY/MM/DD\x20HH:mm','root','UniverThreadComment','/add','2925735IlbQPP','UniverProCollaborationClient','values','/delete','merge','UniverThreadCommentUi','1270vNAJVT','code','Solved','onStarting','replyId','2161480dhxetR','deleteComment','syncUpdateMutationToColla','slice','/edit','_threadCommentDataSource','_sessionService','post','createTimestamp','subscribe','_config','_init','commentUpdate$','rangeType','OpenOrReOpen','/reply','2684451vhRBJa','resolved','_initUserSync','replies','userID','UniverProThreadCommentDatasource','Add','@univerjs/core','UserManagerService','UniverThreadCommentUIPlugin','Reply','comment','body','6sdswIL','userId','getComment','/universer-api/comment/unit/','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','payload','map','_userService','error','getUnit','COMMENT','content','getOwnPropertyDescriptor','Delete','listComments','@univerjs/network','threadId','UNRECOGNIZED','getMemberID','format','rxjs','@univerjs-pro/collaboration-client','rangeId','addComment','solved','bufferTime','Injector','length','function','users','object','_configService','forEach','1075608uXyAew','Inject','addUser','Solve','_injector'];_0x2ee2=function(){return _0xcca537;};return _0x2ee2();}(function(_0x2c3e9a,_0xef8df8){const _0x3c9347=_0xfd6c,_0x483e7f=_0x2c3e9a();while(!![]){try{const _0x1f3238=-parseInt(_0x3c9347(0x20f))/0x1*(-parseInt(_0x3c9347(0x244))/0x2)+-parseInt(_0x3c9347(0x200))/0x3+parseInt(_0x3c9347(0x224))/0x4+parseInt(_0x3c9347(0x23e))/0x5*(-parseInt(_0x3c9347(0x266))/0x6)+parseInt(_0x3c9347(0x22a))/0x7*(-parseInt(_0x3c9347(0x226))/0x8)+parseInt(_0x3c9347(0x215))/0x9*(parseInt(_0x3c9347(0x249))/0xa)+parseInt(_0x3c9347(0x259))/0xb;if(_0x1f3238===_0xef8df8)break;else _0x483e7f['push'](_0x483e7f['shift']());}catch(_0x1820f3){_0x483e7f['push'](_0x483e7f['shift']());}}}(_0x2ee2,0xa1512),function(_0x4d5d80,_0x26537d){const _0xff08e3=_0xfd6c;typeof exports==_0xff08e3(0x1fd)&&typeof module<'u'?_0x26537d(exports,require(_0xff08e3(0x1f4)),require(_0xff08e3(0x20b)),require(_0xff08e3(0x260)),require(_0xff08e3(0x208)),require(_0xff08e3(0x218)),require(_0xff08e3(0x1f3)),require(_0xff08e3(0x1ee))):typeof define==_0xff08e3(0x1fb)&&define['amd']?define(['exports','@univerjs-pro/collaboration-client',_0xff08e3(0x20b),_0xff08e3(0x260),'@univerjs/thread-comment-ui',_0xff08e3(0x218),_0xff08e3(0x1f3),_0xff08e3(0x1ee)],_0x26537d):(_0x4d5d80=typeof globalThis<'u'?globalThis:_0x4d5d80||self,_0x26537d(_0x4d5d80[_0xff08e3(0x25e)]={},_0x4d5d80[_0xff08e3(0x23f)],_0x4d5d80['UniverProLicense'],_0x4d5d80['UniverCore'],_0x4d5d80[_0xff08e3(0x243)],_0x4d5d80[_0xff08e3(0x23c)],_0x4d5d80[_0xff08e3(0x1f3)],_0x4d5d80[_0xff08e3(0x231)]));}(this,function(_0x303023,_0x191313,_0x13bf9e,_0x4e3b5e,_0x13c05e,_0x1d0408,_0x362e98,_0x24f601){'use strict';const _0x4e69d2=_0xfd6c;const _0x39b0ea=_0x4e69d2(0x26a);var _0x56c989=(_0x813a13=>(_0x813a13[_0x813a13[_0x4e69d2(0x257)]=0x0]=_0x4e69d2(0x257),_0x813a13[_0x813a13[_0x4e69d2(0x246)]=0x1]=_0x4e69d2(0x246),_0x813a13[_0x813a13[_0x4e69d2(0x1f0)]=-0x1]=_0x4e69d2(0x1f0),_0x813a13))(_0x56c989||{}),_0x5850c8=(_0x3b84ee=>(_0x3b84ee[_0x3b84ee[_0x4e69d2(0x22b)]=0x0]=_0x4e69d2(0x22b),_0x3b84ee[_0x3b84ee[_0x4e69d2(0x25f)]=0x1]='Add',_0x3b84ee[_0x3b84ee['Reply']=0x2]=_0x4e69d2(0x263),_0x3b84ee[_0x3b84ee[_0x4e69d2(0x22d)]=0x3]=_0x4e69d2(0x22d),_0x3b84ee[_0x3b84ee[_0x4e69d2(0x1ec)]=0x4]=_0x4e69d2(0x1ec),_0x3b84ee[_0x3b84ee[_0x4e69d2(0x203)]=0x5]=_0x4e69d2(0x203),_0x3b84ee[_0x3b84ee[_0x4e69d2(0x1f0)]=-0x1]=_0x4e69d2(0x1f0),_0x3b84ee))(_0x5850c8||{});const _0x596962=_0x23958e=>_0x4e3b5e[_0x4e69d2(0x209)](new Date(+_0x23958e))[_0x4e69d2(0x1f2)](_0x4e69d2(0x23a)),_0xd1bab5=async(_0x8e2fad,_0x1e34e1)=>{const _0xebde12=_0x4e69d2,_0x266d12=_0x8e2fad['get'](_0x4e3b5e[_0xebde12(0x261)]),_0x3d79dd=_0x8e2fad[_0xebde12(0x222)](_0x24f601['HTTPService']);_0x1e34e1[_0xebde12(0x1ff)](_0x3c3553=>{const _0x55af49=_0xebde12;_0x266d12['getUser'](_0x3c3553)&&_0x1e34e1[_0x55af49(0x21e)](_0x3c3553);}),_0x1e34e1['size']&&(await _0x3d79dd['get']('/universer-api/user/list',{'params':{'userIDs':[..._0x1e34e1]}}))[_0xebde12(0x265)]['users'][_0xebde12(0x1ff)](_0x35c06e=>{_0x35c06e&&_0x266d12['addUser'](_0x35c06e);});};var _0x4591a1=Object[_0x4e69d2(0x207)],_0x18627f=Object[_0x4e69d2(0x1eb)],_0x36b14b=(_0x132d74,_0x2827b2,_0x180c2c,_0x4437b7)=>{const _0x2f200b=_0x4e69d2;for(var _0x264797=_0x4437b7>0x1?void 0x0:_0x4437b7?_0x18627f(_0x2827b2,_0x180c2c):_0x2827b2,_0x5c746a=_0x132d74[_0x2f200b(0x1fa)]-0x1,_0x3c59de;_0x5c746a>=0x0;_0x5c746a--)(_0x3c59de=_0x132d74[_0x5c746a])&&(_0x264797=(_0x4437b7?_0x3c59de(_0x2827b2,_0x180c2c,_0x264797):_0x3c59de(_0x264797))||_0x264797);return _0x4437b7&&_0x264797&&_0x4591a1(_0x2827b2,_0x180c2c,_0x264797),_0x264797;},_0x47274f=(_0x4ed673,_0x22d59f)=>(_0x36c793,_0x236bc1)=>_0x22d59f(_0x36c793,_0x236bc1,_0x4ed673);let _0x1895bd=class extends _0x4e3b5e['Disposable']{constructor(_0x5149ad,_0x5cd602,_0x145122,_0x37afa3){const _0xfb11e7=_0x4e69d2;super(),this[_0xfb11e7(0x21c)]=_0x5149ad,this[_0xfb11e7(0x213)]=_0x5cd602,this[_0xfb11e7(0x1e6)]=_0x145122,this[_0xfb11e7(0x204)]=_0x37afa3,this[_0xfb11e7(0x254)](),this[_0xfb11e7(0x25b)]();}['_initUserSync'](){const _0x47d923=_0x4e69d2;this['disposeWithMe'](this[_0x47d923(0x213)][_0x47d923(0x255)][_0x47d923(0x232)](_0x362e98[_0x47d923(0x1f8)](0x10))[_0x47d923(0x252)](_0x40d89c=>{const _0x53a2cb=_0x47d923,_0x244b0d=new Set();_0x40d89c[_0x53a2cb(0x1ff)](_0x3675f3=>{const _0x4a10bd=_0x53a2cb;switch(_0x3675f3['type']){case _0x4a10bd(0x22f):{const _0x38837d=_0x3675f3[_0x4a10bd(0x26b)][_0x4a10bd(0x217)];_0x244b0d[_0x4a10bd(0x22f)](_0x38837d);break;}}}),_0xd1bab5(this['_injector'],_0x244b0d);}));}[_0x4e69d2(0x254)](){const _0x44c45b=_0x4e69d2;this[_0x44c45b(0x223)](this['_commentService']['commentUpdate$'][_0x44c45b(0x252)](async _0xc187df=>{const _0x4f1b8a=_0x44c45b;var _0x10b45f,_0x381f99,_0x420599,_0x1a45c8;const _0x12e11d=(_0x10b45f=this[_0x4f1b8a(0x213)][_0x4f1b8a(0x1e8)](_0xc187df[_0x4f1b8a(0x20e)])['find'](_0x3231fc=>_0x3231fc['threadId']===_0xc187df[_0x4f1b8a(0x1ef)]))==null?void 0x0:_0x10b45f[_0x4f1b8a(0x23b)];if(!_0x12e11d)return;const {unitId:_0x10acdb,subUnitId:_0x242f22}=_0x12e11d;switch(_0xc187df['user']&&this[_0x4f1b8a(0x1e6)][_0x4f1b8a(0x202)](_0xc187df['user']),_0xc187df[_0x4f1b8a(0x220)]){case _0x5850c8[_0x4f1b8a(0x25f)]:break;case _0x5850c8[_0x4f1b8a(0x263)]:{this[_0x4f1b8a(0x213)][_0x4f1b8a(0x1f6)](_0x10acdb,_0x242f22,{'unitId':_0x10acdb,'subUnitId':_0x242f22,'ref':'','id':_0xc187df[_0x4f1b8a(0x248)],'dT':_0x596962(+_0xc187df[_0x4f1b8a(0x251)]),'threadId':_0xc187df[_0x4f1b8a(0x1ef)],'personId':(_0x420599=(_0x381f99=_0xc187df[_0x4f1b8a(0x20c)])==null?void 0x0:_0x381f99[_0x4f1b8a(0x25d)])!=null?_0x420599:_0xc187df['userId'],'text':JSON[_0x4f1b8a(0x234)](_0xc187df[_0x4f1b8a(0x1ea)]),'parentId':_0x12e11d['id']});break;}case _0x5850c8[_0x4f1b8a(0x1ec)]:{const _0x4bd6cd=this[_0x4f1b8a(0x213)][_0x4f1b8a(0x268)](_0x10acdb,_0x242f22,_0xc187df['replyId']);_0x4bd6cd&&_0x4bd6cd['parentId']&&this[_0x4f1b8a(0x213)][_0x4f1b8a(0x24a)](_0x10acdb,_0x242f22,_0xc187df[_0x4f1b8a(0x248)]);break;}case _0x5850c8['Edit']:{this[_0x4f1b8a(0x213)][_0x4f1b8a(0x221)](_0x10acdb,_0x242f22,{'commentId':_0xc187df['replyId'],'text':JSON['parse'](_0xc187df[_0x4f1b8a(0x1ea)])});break;}case _0x5850c8[_0x4f1b8a(0x203)]:{const _0x3b2ba9=(_0x1a45c8=this['_threadCommentModel']['getUnit'](_0xc187df[_0x4f1b8a(0x20e)])[_0x4f1b8a(0x21f)](_0x861ca2=>_0x861ca2[_0x4f1b8a(0x1ef)]===_0xc187df[_0x4f1b8a(0x1ef)]))==null?void 0x0:_0x1a45c8[_0x4f1b8a(0x23b)];_0x3b2ba9&&this[_0x4f1b8a(0x213)][_0x4f1b8a(0x235)](_0x10acdb,_0x242f22,_0x3b2ba9['id'],_0xc187df[_0x4f1b8a(0x1f7)]===_0x56c989[_0x4f1b8a(0x246)]);break;}}}));}};_0x1895bd=_0x36b14b([_0x47274f(0x0,_0x4e3b5e[_0x4e69d2(0x201)](_0x191313['CommentService'])),_0x47274f(0x1,_0x4e3b5e[_0x4e69d2(0x201)](_0x1d0408['ThreadCommentModel'])),_0x47274f(0x2,_0x4e3b5e[_0x4e69d2(0x201)](_0x4e3b5e['UserManagerService'])),_0x47274f(0x3,_0x4e3b5e[_0x4e69d2(0x201)](_0x4e3b5e[_0x4e69d2(0x1f9)]))],_0x1895bd);const _0xf09686='thread-comment-data-source.config',_0x2a976f={};var _0x35d211=Object[_0x4e69d2(0x207)],_0x13b213=Object[_0x4e69d2(0x1eb)],_0x5c9c26=(_0x376696,_0x76b444,_0x4a1f54,_0x15ae68)=>{for(var _0x312db9=_0x15ae68>0x1?void 0x0:_0x15ae68?_0x13b213(_0x76b444,_0x4a1f54):_0x76b444,_0x2af898=_0x376696['length']-0x1,_0x9c4b6f;_0x2af898>=0x0;_0x2af898--)(_0x9c4b6f=_0x376696[_0x2af898])&&(_0x312db9=(_0x15ae68?_0x9c4b6f(_0x76b444,_0x4a1f54,_0x312db9):_0x9c4b6f(_0x312db9))||_0x312db9);return _0x15ae68&&_0x312db9&&_0x35d211(_0x76b444,_0x4a1f54,_0x312db9),_0x312db9;},_0x13469a=(_0x470a05,_0x526222)=>(_0x1a068f,_0x2802b1)=>_0x526222(_0x1a068f,_0x2802b1,_0x470a05);function _0x3bf28d(_0x33b5e5,_0x25f00f){const _0x61dbac=_0x4e69d2,_0x55fae5=_0x33b5e5['replies'][0x0];return{..._0x25f00f,'id':_0x55fae5[_0x61dbac(0x248)],'resolved':_0x33b5e5[_0x61dbac(0x1f7)]===0x1,'dT':_0x596962(_0x55fae5[_0x61dbac(0x251)]),'personId':_0x55fae5[_0x61dbac(0x267)],'threadId':_0x55fae5['threadId']};}function _0x1ee1f8(_0x24c660,_0x5aef5a,_0x26346a){const _0x3f5ed4=_0x4e69d2;var _0x65b779,_0x662ef1;if(((_0x662ef1=(_0x65b779=_0x24c660==null?void 0x0:_0x24c660[_0x3f5ed4(0x25c)])==null?void 0x0:_0x65b779[_0x3f5ed4(0x1fa)])!=null?_0x662ef1:0x0)>0x0){const _0x39a9a3=(_0x2ca3f9,_0x1d56e3)=>({'id':_0x2ca3f9[_0x3f5ed4(0x248)],'threadId':_0x2ca3f9[_0x3f5ed4(0x1ef)],'dT':_0x596962(_0x2ca3f9[_0x3f5ed4(0x251)]),'personId':_0x2ca3f9[_0x3f5ed4(0x267)],'resolved':_0x24c660['solved']===_0x56c989['Solved'],'unitId':_0x5aef5a,'subUnitId':_0x26346a,'text':JSON[_0x3f5ed4(0x234)](_0x2ca3f9['content']),'parentId':_0x1d56e3}),_0x3a62be=_0x39a9a3(_0x24c660[_0x3f5ed4(0x25c)][0x0]);return{..._0x3a62be,'children':_0x24c660['replies'][_0x3f5ed4(0x24c)](0x1)['map'](_0x1dab8b=>_0x39a9a3(_0x1dab8b,_0x3a62be['id']))};}return null;}let _0x3579a0=class{constructor(_0x339705,_0x1094b5,_0x58d7e8,_0x14d633){const _0x4cfb9e=_0x4e69d2;this[_0x4cfb9e(0x211)]=_0x339705,this['_userService']=_0x1094b5,this[_0x4cfb9e(0x24f)]=_0x58d7e8,this[_0x4cfb9e(0x204)]=_0x14d633;}async['addComment'](_0x2279bc){const _0x2ce8ed=_0x4e69d2;var _0x53e7d4,_0x48af1e;const {parentId:_0x24918c,unitId:_0x5eaac3,text:_0x5f2bc6,threadId:_0x10d8bc}=_0x2279bc,_0x51e87d=(_0x48af1e=(_0x53e7d4=_0x5f2bc6[_0x2ce8ed(0x22c)])==null?void 0x0:_0x53e7d4[_0x2ce8ed(0x228)](_0x74e07c=>_0x74e07c[_0x2ce8ed(0x256)]===_0x4e3b5e['CustomRangeType'][_0x2ce8ed(0x1e9)])[_0x2ce8ed(0x1e5)](_0x3a4579=>_0x3a4579[_0x2ce8ed(0x1f5)]))!=null?_0x48af1e:[],_0x1db31a=JSON['stringify'](_0x5f2bc6),_0x414c2d=(await this[_0x2ce8ed(0x24f)][_0x2ce8ed(0x230)](_0x5eaac3))[_0x2ce8ed(0x1f1)]();if(_0x24918c){const _0xb8bc1a={'memberId':_0x414c2d,'unitId':_0x5eaac3,'content':_0x1db31a,'mention':_0x51e87d,'threadId':_0x10d8bc},_0x37a2b2=(await this[_0x2ce8ed(0x211)][_0x2ce8ed(0x250)](_0x2ce8ed(0x269)+_0x5eaac3+_0x2ce8ed(0x258),{'body':_0xb8bc1a}))[_0x2ce8ed(0x265)][_0x2ce8ed(0x238)];return{..._0x2279bc,'id':_0x37a2b2[_0x2ce8ed(0x248)],'dT':_0x4e3b5e['dayjs'](+_0x37a2b2['createTimestamp'])[_0x2ce8ed(0x1f2)](_0x2ce8ed(0x23a)),'personId':_0x37a2b2[_0x2ce8ed(0x267)]};}else{const _0x13f917={'memberId':_0x414c2d,'unitId':_0x5eaac3,'content':_0x1db31a,'mention':_0x51e87d},_0x168726=await this[_0x2ce8ed(0x211)][_0x2ce8ed(0x250)](_0x2ce8ed(0x269)+_0x5eaac3+_0x2ce8ed(0x23d),{'body':_0x13f917});return _0x3bf28d(_0x168726[_0x2ce8ed(0x265)][_0x2ce8ed(0x264)],_0x2279bc);}}async['updateComment'](_0x483cb4){const _0x3909db=_0x4e69d2;var _0x4f395b,_0x11cb7f;const {text:_0x2283af,unitId:_0x55328b}=_0x483cb4,_0x8bb264=(_0x11cb7f=(_0x4f395b=_0x2283af[_0x3909db(0x22c)])==null?void 0x0:_0x4f395b[_0x3909db(0x228)](_0x495edd=>_0x495edd[_0x3909db(0x256)]===_0x4e3b5e[_0x3909db(0x21b)][_0x3909db(0x1e9)])[_0x3909db(0x1e5)](_0x1ac440=>_0x1ac440[_0x3909db(0x1f5)]))!=null?_0x11cb7f:[],_0x2189d4=JSON[_0x3909db(0x21d)](_0x2283af),_0x260fe2=_0x483cb4[_0x3909db(0x1ef)],_0x2ad723=_0x483cb4['id'],_0xf0847b={'memberId':(await this['_sessionService'][_0x3909db(0x230)](_0x55328b))['getMemberID'](),'unitId':_0x55328b,'threadId':_0x260fe2,'mention':_0x8bb264,'content':_0x2189d4,'replyId':_0x2ad723},_0x10fa6f=await this[_0x3909db(0x211)][_0x3909db(0x250)](_0x3909db(0x269)+_0x55328b+_0x3909db(0x24d),{'body':_0xf0847b});return!_0x10fa6f[_0x3909db(0x265)]['error']||_0x10fa6f[_0x3909db(0x265)][_0x3909db(0x1e7)]['code']===0x1;}async['resolveComment'](_0x1ae399){const _0x5e6b45=_0x4e69d2,{unitId:_0x28046e}=_0x1ae399,_0x5a4792=_0x1ae399[_0x5e6b45(0x1ef)],_0x68308f={'memberId':this[_0x5e6b45(0x1e6)][_0x5e6b45(0x236)]()['userID'],'unitId':_0x28046e,'threadId':_0x5a4792,'solved':_0x1ae399[_0x5e6b45(0x25a)]?_0x56c989[_0x5e6b45(0x246)]:_0x56c989[_0x5e6b45(0x257)]},_0x2ee31b=await this['_httpService'][_0x5e6b45(0x250)](_0x5e6b45(0x269)+_0x28046e+'/solved',{'body':_0x68308f});return!_0x2ee31b[_0x5e6b45(0x265)][_0x5e6b45(0x1e7)]||_0x2ee31b[_0x5e6b45(0x265)]['error'][_0x5e6b45(0x245)]===0x1;}async[_0x4e69d2(0x24a)](_0x59a9c7,_0x27a750,_0x5403a5,_0x70c8ca){const _0x2dcdce=_0x4e69d2,_0x1f6e32={'memberId':(await this[_0x2dcdce(0x24f)]['requireSession'](_0x59a9c7))[_0x2dcdce(0x1f1)](),'threadId':_0x5403a5,'replyId':_0x70c8ca,'unitId':_0x59a9c7},_0x3c8baf=await this[_0x2dcdce(0x211)][_0x2dcdce(0x250)]('/universer-api/comment/unit/'+_0x59a9c7+_0x2dcdce(0x241),{'body':_0x1f6e32});return!_0x3c8baf[_0x2dcdce(0x265)][_0x2dcdce(0x1e7)]||_0x3c8baf[_0x2dcdce(0x265)]['error']['code']===0x1;}async[_0x4e69d2(0x1ed)](_0x5e3f63,_0x53dab3,_0x3c040d){const _0x125fff=_0x4e69d2,_0x29aaf6={'unitId':_0x5e3f63,'threadId':_0x3c040d},_0x51e8fd=await this[_0x125fff(0x211)][_0x125fff(0x250)](_0x125fff(0x269)+_0x5e3f63+'/list',{'body':_0x29aaf6}),_0xb3d8fa=_0x3c040d[_0x125fff(0x1e5)](_0x46b226=>_0x1ee1f8(_0x51e8fd[_0x125fff(0x265)]['comments'][_0x46b226],_0x5e3f63,_0x53dab3))[_0x125fff(0x228)](Boolean);return Object[_0x125fff(0x240)](_0x51e8fd[_0x125fff(0x265)][_0x125fff(0x1fc)])[_0x125fff(0x1ff)](_0xc8a1f8=>{const _0x4dbc9d=_0x125fff;this['_userService'][_0x4dbc9d(0x202)](_0xc8a1f8);}),_0xb3d8fa;}[_0x4e69d2(0x210)](_0x4431d9){const _0x4b6c5b=_0x4e69d2;return{'id':_0x4431d9['id'],'threadId':_0x4431d9['threadId'],'ref':_0x4431d9[_0x4b6c5b(0x20d)]};}};_0x3579a0=_0x5c9c26([_0x13469a(0x0,_0x4e3b5e[_0x4e69d2(0x201)](_0x24f601['HTTPService'])),_0x13469a(0x1,_0x4e3b5e[_0x4e69d2(0x201)](_0x4e3b5e[_0x4e69d2(0x261)])),_0x13469a(0x2,_0x4e3b5e[_0x4e69d2(0x201)](_0x191313[_0x4e69d2(0x239)])),_0x13469a(0x3,_0x4e3b5e['Inject'](_0x4e3b5e['Injector']))],_0x3579a0);var _0x5f0e9=Object['defineProperty'],_0x5e5ae2=Object[_0x4e69d2(0x1eb)],_0x40c662=(_0x4c24a5,_0x2cb5bd,_0x4bfd39,_0x59d45f)=>{for(var _0x5cd704=_0x59d45f>0x1?void 0x0:_0x59d45f?_0x5e5ae2(_0x2cb5bd,_0x4bfd39):_0x2cb5bd,_0x44f8b0=_0x4c24a5['length']-0x1,_0x1df730;_0x44f8b0>=0x0;_0x44f8b0--)(_0x1df730=_0x4c24a5[_0x44f8b0])&&(_0x5cd704=(_0x59d45f?_0x1df730(_0x2cb5bd,_0x4bfd39,_0x5cd704):_0x1df730(_0x5cd704))||_0x5cd704);return _0x59d45f&&_0x5cd704&&_0x5f0e9(_0x2cb5bd,_0x4bfd39,_0x5cd704),_0x5cd704;},_0x323dd0=(_0x51f9e5,_0x2c6d74)=>(_0x2471cc,_0x371ffe)=>_0x2c6d74(_0x2471cc,_0x371ffe,_0x51f9e5);let _0x18f090=class extends _0x4e3b5e[_0x4e69d2(0x227)]{constructor(_0x4f2e08,_0x2ae5e8){const _0x21c54d=_0x4e69d2;super(),this['_threadCommentDataSourceService']=_0x4f2e08,this[_0x21c54d(0x24e)]=_0x2ae5e8,this[_0x21c54d(0x233)]();}[_0x4e69d2(0x233)](){const _0x4c8204=_0x4e69d2;this[_0x4c8204(0x205)][_0x4c8204(0x20a)]=this[_0x4c8204(0x24e)],this[_0x4c8204(0x205)][_0x4c8204(0x24b)]=!0x1;}};_0x18f090=_0x40c662([_0x323dd0(0x0,_0x1d0408[_0x4e69d2(0x237)]),_0x323dd0(0x1,_0x4e3b5e[_0x4e69d2(0x201)](_0x3579a0))],_0x18f090);var _0x3da1e9=Object[_0x4e69d2(0x207)],_0x3036cf=Object['getOwnPropertyDescriptor'],_0x13beca=(_0x428ab1,_0x109f7f,_0x56623c)=>_0x109f7f in _0x428ab1?_0x3da1e9(_0x428ab1,_0x109f7f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56623c}):_0x428ab1[_0x109f7f]=_0x56623c,_0x177bc7=(_0x41495a,_0x198d3f,_0x1a84a9,_0x2222b1)=>{const _0x4cb8e2=_0x4e69d2;for(var _0xeccb2e=_0x2222b1>0x1?void 0x0:_0x2222b1?_0x3036cf(_0x198d3f,_0x1a84a9):_0x198d3f,_0x4eddca=_0x41495a[_0x4cb8e2(0x1fa)]-0x1,_0x3fbf84;_0x4eddca>=0x0;_0x4eddca--)(_0x3fbf84=_0x41495a[_0x4eddca])&&(_0xeccb2e=(_0x2222b1?_0x3fbf84(_0x198d3f,_0x1a84a9,_0xeccb2e):_0x3fbf84(_0xeccb2e))||_0xeccb2e);return _0x2222b1&&_0xeccb2e&&_0x3da1e9(_0x198d3f,_0x1a84a9,_0xeccb2e),_0xeccb2e;},_0x515c77=(_0x521aab,_0xd6cbc2)=>(_0x5a6350,_0x1b7366)=>_0xd6cbc2(_0x5a6350,_0x1b7366,_0x521aab),_0x5c58d9=(_0x5e8ecf,_0x4ed5e8,_0x31a11a)=>_0x13beca(_0x5e8ecf,typeof _0x4ed5e8!=_0x4e69d2(0x22e)?_0x4ed5e8+'':_0x4ed5e8,_0x31a11a);_0x303023[_0x4e69d2(0x212)]=class extends _0x4e3b5e['Plugin']{constructor(_0x10178f=_0x2a976f,_0x1d5b68,_0x4c5237){const _0x104838=_0x4e69d2;super(),this[_0x104838(0x253)]=_0x10178f,this[_0x104838(0x204)]=_0x1d5b68,this['_configService']=_0x4c5237;const {..._0x4be02d}=_0x4e3b5e[_0x104838(0x242)]({},_0x2a976f,this[_0x104838(0x253)]);this[_0x104838(0x1fe)]['setConfig'](_0xf09686,_0x4be02d);}[_0x4e69d2(0x247)](){const _0x6545cf=_0x4e69d2;[[_0x3579a0],[_0x18f090],[_0x1895bd]][_0x6545cf(0x1ff)](_0x36425e=>{const _0x19f3a9=_0x6545cf;this[_0x19f3a9(0x204)]['add'](_0x36425e);});}['onReady'](){const _0x33a367=_0x4e69d2;this['_injector'][_0x33a367(0x222)](_0x18f090),this[_0x33a367(0x204)][_0x33a367(0x222)](_0x1895bd);}},_0x5c58d9(_0x303023[_0x4e69d2(0x212)],_0x4e69d2(0x206),_0x39b0ea),_0x5c58d9(_0x303023[_0x4e69d2(0x212)],'type',_0x4e3b5e['UniverInstanceType'][_0x4e69d2(0x219)]),_0x303023[_0x4e69d2(0x212)]=_0x177bc7([_0x4e3b5e[_0x4e69d2(0x21a)](_0x13c05e[_0x4e69d2(0x262)],_0x191313['UniverCollaborationClientPlugin'],_0x13bf9e[_0x4e69d2(0x216)]),_0x515c77(0x1,_0x4e3b5e['Inject'](_0x4e3b5e[_0x4e69d2(0x1f9)])),_0x515c77(0x2,_0x4e3b5e[_0x4e69d2(0x214)])],_0x303023[_0x4e69d2(0x212)]),Object[_0x4e69d2(0x207)](_0x303023,Symbol[_0x4e69d2(0x225)],{'value':_0x4e69d2(0x229)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/thread-comment-datasource",
|
|
3
|
-
"version": "0.5.2-nightly.
|
|
3
|
+
"version": "0.5.2-nightly.202501021606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
"rxjs": ">=7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@univerjs-pro/collaboration-client": "0.5.2-nightly.
|
|
49
|
-
"@univerjs-pro/license": "0.5.2-nightly.
|
|
50
|
-
"@univerjs/
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/
|
|
48
|
+
"@univerjs-pro/collaboration-client": "0.5.2-nightly.202501021606",
|
|
49
|
+
"@univerjs-pro/license": "0.5.2-nightly.202501021606",
|
|
50
|
+
"@univerjs/network": "0.5.2-nightly.202501021606",
|
|
51
|
+
"@univerjs/thread-comment": "0.5.2-nightly.202501021606",
|
|
52
|
+
"@univerjs/core": "0.5.2-nightly.202501021606",
|
|
53
53
|
"@univerjs/protocol": "0.1.40-alpha.10",
|
|
54
|
-
"@univerjs/thread-comment-ui": "0.5.2-nightly.
|
|
54
|
+
"@univerjs/thread-comment-ui": "0.5.2-nightly.202501021606"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"rxjs": "^7.8.1",
|
|
58
58
|
"typescript": "^5.7.2",
|
|
59
|
-
"vite": "^6.0.
|
|
59
|
+
"vite": "^6.0.6",
|
|
60
60
|
"vitest": "^2.1.8",
|
|
61
61
|
"@univerjs-infra/shared": "0.5.2"
|
|
62
62
|
},
|