@univerjs-pro/thread-comment-datasource 0.7.0-nightly.202505011607 → 0.7.0-nightly.202505021607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x20b4a1=_0x23b7;(function(_0x15e533,_0x47793e){const _0x209335=_0x23b7,_0x296b10=_0x15e533();while(!![]){try{const _0x10b906=-parseInt(_0x209335(0x1f5))/0x1*(parseInt(_0x209335(0x213))/0x2)+-parseInt(_0x209335(0x249))/0x3+parseInt(_0x209335(0x22f))/0x4+-parseInt(_0x209335(0x21a))/0x5+-parseInt(_0x209335(0x1e7))/0x6+parseInt(_0x209335(0x23b))/0x7*(-parseInt(_0x209335(0x204))/0x8)+parseInt(_0x209335(0x1f7))/0x9*(parseInt(_0x209335(0x1e4))/0xa);if(_0x10b906===_0x47793e)break;else _0x296b10['push'](_0x296b10['shift']());}catch(_0x347a5d){_0x296b10['push'](_0x296b10['shift']());}}}(_0x5b0c,0xca1c9));function _0x5b0c(){const _0x15be4e=['_threadCommentDataSourceService','COMMENT','getUnit','length','UniverInstanceType','setConfig','@univerjs/network','UniverCollaborationClientPlugin','dayjs','code','pipe','8YxcEvM','ref','Plugin','replies','slice','_commentService','ThreadCommentModel','user','rangeId','_configService','syncUpdateMutationToColla','UniverLicensePlugin','add','/reply','Reply','94kqNEWp','_httpService','IConfigService','Add','users','getMemberID','getUser','3575135LbjJmW','getOwnPropertyDescriptor','filter','stringify','@univerjs/core','defineProperty','post','@univerjs-pro/collaboration-client','UserManagerService','/solved','addComment','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','threadId','find','resolved','Unknown','Solved','Disposable','Injector','customRanges','OpenOrReOpen','3454224FhacEi','thread-comment-data-source.config','_injector','error','_threadCommentModel','merge','CustomRangeType','UNIVER_UNKNOWN','UNRECOGNIZED','replyId','body','solved','7534282uepJqf','Delete','addUser','content','parentId','Edit','type','/universer-api/comment/unit/','map','resolveComment','@univerjs-pro/license','dataSource','_initDataSource','@univerjs/thread-comment','2023245pSFjyZ','delete','format','UniverThreadCommentUIPlugin','Inject','listComments','commentUpdate$','comment','/edit','get','userId','_sessionService','_threadCommentDataSource','size','rxjs','Solve','CollaborationSessionService','onReady','/delete','_config','UniverThreadCommentDataSourcePlugin','_initUserSync','createTimestamp','userID','80EwSyaV','root','DependentOn','9328824gABzeo','personId','reply','parse','YYYY/MM/DD\x20HH:mm','Module','unitId','HTTPService','disposeWithMe','CommentService','/list','forEach','values','rangeType','5689drqqJQ','subscribe','4783779jqMstj','_userService'];_0x5b0c=function(){return _0x15be4e;};return _0x5b0c();}Object[_0x20b4a1(0x21f)](exports,Symbol['toStringTag'],{'value':_0x20b4a1(0x1ec)});const b=require(_0x20b4a1(0x221)),T=require(_0x20b4a1(0x245)),c=require(_0x20b4a1(0x21e)),j=require('@univerjs/thread-comment-ui'),M=require(_0x20b4a1(0x248)),w=require(_0x20b4a1(0x257)),P=require(_0x20b4a1(0x1ff)),U=_0x20b4a1(0x225);var I=(_0x14fafb=>(_0x14fafb[_0x14fafb[_0x20b4a1(0x22e)]=0x0]='OpenOrReOpen',_0x14fafb[_0x14fafb[_0x20b4a1(0x22a)]=0x1]=_0x20b4a1(0x22a),_0x14fafb[_0x14fafb[_0x20b4a1(0x237)]=-0x1]=_0x20b4a1(0x237),_0x14fafb))(I||{}),v=(_0x7b134b=>(_0x7b134b[_0x7b134b[_0x20b4a1(0x229)]=0x0]=_0x20b4a1(0x229),_0x7b134b[_0x7b134b[_0x20b4a1(0x216)]=0x1]=_0x20b4a1(0x216),_0x7b134b[_0x7b134b[_0x20b4a1(0x212)]=0x2]=_0x20b4a1(0x212),_0x7b134b[_0x7b134b[_0x20b4a1(0x240)]=0x3]=_0x20b4a1(0x240),_0x7b134b[_0x7b134b[_0x20b4a1(0x23c)]=0x4]='Delete',_0x7b134b[_0x7b134b[_0x20b4a1(0x258)]=0x5]='Solve',_0x7b134b[_0x7b134b[_0x20b4a1(0x237)]=-0x1]=_0x20b4a1(0x237),_0x7b134b))(v||{});function _0x23b7(_0x518170,_0xd3029d){const _0x5b0ced=_0x5b0c();return _0x23b7=function(_0x23b7b9,_0x195d92){_0x23b7b9=_0x23b7b9-0x1e4;let _0x41c345=_0x5b0ced[_0x23b7b9];return _0x41c345;},_0x23b7(_0x518170,_0xd3029d);}const f=_0x2bb4d9=>c[_0x20b4a1(0x201)](new Date(+_0x2bb4d9))['format'](_0x20b4a1(0x1eb)),R=async(_0x55c772,_0x154d7b)=>{const _0x10c749=_0x20b4a1,_0x22f057=_0x55c772[_0x10c749(0x252)](c[_0x10c749(0x222)]),_0x425ac3=_0x55c772[_0x10c749(0x252)](P[_0x10c749(0x1ee)]);_0x154d7b['forEach'](_0x43bcca=>{const _0x4e1af6=_0x10c749;_0x22f057[_0x4e1af6(0x219)](_0x43bcca)&&_0x154d7b[_0x4e1af6(0x24a)](_0x43bcca);}),_0x154d7b[_0x10c749(0x256)]&&(await _0x425ac3['get']('/universer-api/user/list',{'params':{'userIDs':[..._0x154d7b]}}))['body']['users'][_0x10c749(0x1f2)](_0xad9375=>{const _0x16bef8=_0x10c749;_0xad9375&&_0x22f057[_0x16bef8(0x23d)](_0xad9375);});};var $=Object[_0x20b4a1(0x21b)],E=(_0x20b754,_0x4d56d8,_0x38cd96,_0x4761db)=>{const _0x1119de=_0x20b4a1;for(var _0x2ce0fb=_0x4761db>0x1?void 0x0:_0x4761db?$(_0x4d56d8,_0x38cd96):_0x4d56d8,_0x1fc82a=_0x20b754[_0x1119de(0x1fc)]-0x1,_0x230258;_0x1fc82a>=0x0;_0x1fc82a--)(_0x230258=_0x20b754[_0x1fc82a])&&(_0x2ce0fb=_0x230258(_0x2ce0fb)||_0x2ce0fb);return _0x2ce0fb;},S=(_0x246bcb,_0x5ae200)=>(_0x50f138,_0x1bf3c0)=>_0x5ae200(_0x50f138,_0x1bf3c0,_0x246bcb);let p=class extends c[_0x20b4a1(0x22b)]{constructor(_0x5c1c72,_0x2d57f8,_0x2d2cee,_0x2b5496){const _0x13ab2e=_0x20b4a1;super(),this[_0x13ab2e(0x209)]=_0x5c1c72,this[_0x13ab2e(0x233)]=_0x2d57f8,this[_0x13ab2e(0x1f8)]=_0x2d2cee,this[_0x13ab2e(0x231)]=_0x2b5496,this['_init'](),this['_initUserSync']();}[_0x20b4a1(0x25e)](){const _0x294a4e=_0x20b4a1;this[_0x294a4e(0x1ef)](this[_0x294a4e(0x233)][_0x294a4e(0x24f)][_0x294a4e(0x203)](w['bufferTime'](0x10))[_0x294a4e(0x1f6)](_0x5bd47e=>{const _0x157612=_0x294a4e,_0x1b91e6=new Set();_0x5bd47e[_0x157612(0x1f2)](_0x3d6a7e=>{const _0x473700=_0x157612;switch(_0x3d6a7e[_0x473700(0x241)]){case'add':{const _0x7f5484=_0x3d6a7e['payload'][_0x473700(0x1e8)];_0x1b91e6[_0x473700(0x210)](_0x7f5484);break;}}}),R(this['_injector'],_0x1b91e6);}));}['_init'](){const _0x1d8bfd=_0x20b4a1;this[_0x1d8bfd(0x1ef)](this[_0x1d8bfd(0x209)][_0x1d8bfd(0x24f)][_0x1d8bfd(0x1f6)](async _0x4f9b6b=>{const _0x5a22ce=_0x1d8bfd;var _0x18001c,_0x4a3b09,_0x5e2f6e,_0x1b2a83;const _0x141795=(_0x18001c=this[_0x5a22ce(0x233)][_0x5a22ce(0x1fb)](_0x4f9b6b[_0x5a22ce(0x1ed)])[_0x5a22ce(0x227)](_0x546aed=>_0x546aed[_0x5a22ce(0x226)]===_0x4f9b6b[_0x5a22ce(0x226)]))==null?void 0x0:_0x18001c[_0x5a22ce(0x1e5)];if(!_0x141795)return;const {unitId:_0x2c39da,subUnitId:_0x271f36}=_0x141795;switch(_0x4f9b6b['user']&&this['_userService']['addUser'](_0x4f9b6b['user']),_0x4f9b6b[_0x5a22ce(0x241)]){case v[_0x5a22ce(0x216)]:break;case v[_0x5a22ce(0x212)]:{this['_threadCommentModel'][_0x5a22ce(0x224)](_0x2c39da,_0x271f36,{'unitId':_0x2c39da,'subUnitId':_0x271f36,'ref':'','id':_0x4f9b6b[_0x5a22ce(0x238)],'dT':f(+_0x4f9b6b[_0x5a22ce(0x25f)]),'threadId':_0x4f9b6b[_0x5a22ce(0x226)],'personId':(_0x5e2f6e=(_0x4a3b09=_0x4f9b6b[_0x5a22ce(0x20b)])==null?void 0x0:_0x4a3b09[_0x5a22ce(0x260)])!=null?_0x5e2f6e:_0x4f9b6b[_0x5a22ce(0x253)],'text':JSON[_0x5a22ce(0x1ea)](_0x4f9b6b[_0x5a22ce(0x23e)]),'parentId':_0x141795['id']});break;}case v[_0x5a22ce(0x23c)]:{const _0x404e6c=this[_0x5a22ce(0x233)]['getComment'](_0x2c39da,_0x271f36,_0x4f9b6b[_0x5a22ce(0x238)]);_0x404e6c&&_0x404e6c[_0x5a22ce(0x23f)]&&this['_threadCommentModel']['deleteComment'](_0x2c39da,_0x271f36,_0x4f9b6b['replyId']);break;}case v[_0x5a22ce(0x240)]:{this[_0x5a22ce(0x233)]['updateComment'](_0x2c39da,_0x271f36,{'commentId':_0x4f9b6b['replyId'],'text':JSON[_0x5a22ce(0x1ea)](_0x4f9b6b[_0x5a22ce(0x23e)])});break;}case v['Solve']:{const _0x43b2f6=(_0x1b2a83=this[_0x5a22ce(0x233)][_0x5a22ce(0x1fb)](_0x4f9b6b[_0x5a22ce(0x1ed)])['find'](_0x26cb49=>_0x26cb49[_0x5a22ce(0x226)]===_0x4f9b6b[_0x5a22ce(0x226)]))==null?void 0x0:_0x1b2a83[_0x5a22ce(0x1e5)];_0x43b2f6&&this[_0x5a22ce(0x233)][_0x5a22ce(0x244)](_0x2c39da,_0x271f36,_0x43b2f6['id'],_0x4f9b6b[_0x5a22ce(0x23a)]===I['Solved']);break;}}}));}};p=E([S(0x0,c['Inject'](b[_0x20b4a1(0x1f0)])),S(0x1,c[_0x20b4a1(0x24d)](M[_0x20b4a1(0x20a)])),S(0x2,c[_0x20b4a1(0x24d)](c['UserManagerService'])),S(0x3,c[_0x20b4a1(0x24d)](c[_0x20b4a1(0x22c)]))],p);const q=_0x20b4a1(0x230),D={};var A=Object['getOwnPropertyDescriptor'],x=(_0x26b6d7,_0xb1413e,_0x32fbb9,_0x2c9497)=>{const _0x11f164=_0x20b4a1;for(var _0x5112e8=_0x2c9497>0x1?void 0x0:_0x2c9497?A(_0xb1413e,_0x32fbb9):_0xb1413e,_0x115e69=_0x26b6d7[_0x11f164(0x1fc)]-0x1,_0x3c3705;_0x115e69>=0x0;_0x115e69--)(_0x3c3705=_0x26b6d7[_0x115e69])&&(_0x5112e8=_0x3c3705(_0x5112e8)||_0x5112e8);return _0x5112e8;},_=(_0x38be08,_0x22cca9)=>(_0x546cd2,_0x10ec2a)=>_0x22cca9(_0x546cd2,_0x10ec2a,_0x38be08);function Y(_0x5d02f2,_0x6a11ec){const _0x4d68b9=_0x20b4a1,_0x31930e=_0x5d02f2[_0x4d68b9(0x207)][0x0];return{..._0x6a11ec,'id':_0x31930e[_0x4d68b9(0x238)],'resolved':_0x5d02f2[_0x4d68b9(0x23a)]===0x1,'dT':f(_0x31930e['createTimestamp']),'personId':_0x31930e['userId'],'threadId':_0x31930e['threadId']};}function G(_0x42f6db,_0x59e0a4,_0x44d2e0){const _0x4765a0=_0x20b4a1;var _0x50063a,_0x408634;if(((_0x408634=(_0x50063a=_0x42f6db==null?void 0x0:_0x42f6db[_0x4765a0(0x207)])==null?void 0x0:_0x50063a['length'])!=null?_0x408634:0x0)>0x0){const _0x3a0b8a=(_0x42def5,_0x304e5f)=>({'id':_0x42def5[_0x4765a0(0x238)],'threadId':_0x42def5[_0x4765a0(0x226)],'dT':f(_0x42def5[_0x4765a0(0x25f)]),'personId':_0x42def5[_0x4765a0(0x253)],'resolved':_0x42f6db[_0x4765a0(0x23a)]===I[_0x4765a0(0x22a)],'unitId':_0x59e0a4,'subUnitId':_0x44d2e0,'text':JSON[_0x4765a0(0x1ea)](_0x42def5[_0x4765a0(0x23e)]),'parentId':_0x304e5f}),_0x351137=_0x3a0b8a(_0x42f6db[_0x4765a0(0x207)][0x0]);return{..._0x351137,'children':_0x42f6db[_0x4765a0(0x207)][_0x4765a0(0x208)](0x1)[_0x4765a0(0x243)](_0x45c663=>_0x3a0b8a(_0x45c663,_0x351137['id']))};}return null;}let g=class{constructor(_0x56797c,_0x1be332,_0x34b3c9,_0x56c44f){const _0x76562e=_0x20b4a1;this[_0x76562e(0x214)]=_0x56797c,this['_userService']=_0x1be332,this[_0x76562e(0x254)]=_0x34b3c9,this['_injector']=_0x56c44f;}async[_0x20b4a1(0x224)](_0x452939){const _0x2325be=_0x20b4a1;var _0x242bb1,_0x33b82a;const {parentId:_0x5d0f16,unitId:_0x164915,text:_0x202caf,threadId:_0x319324}=_0x452939,_0x3f7158=(_0x33b82a=(_0x242bb1=_0x202caf[_0x2325be(0x22d)])==null?void 0x0:_0x242bb1['filter'](_0x5857dc=>_0x5857dc[_0x2325be(0x1f4)]===c[_0x2325be(0x235)][_0x2325be(0x1fa)])['map'](_0x11baee=>_0x11baee[_0x2325be(0x20c)]))!=null?_0x33b82a:[],_0x529231=JSON[_0x2325be(0x21d)](_0x202caf),_0x409c3f=(await this['_sessionService']['requireSession'](_0x164915))['getMemberID']();if(_0x5d0f16){const _0x5e977b={'memberId':_0x409c3f,'unitId':_0x164915,'content':_0x529231,'mention':_0x3f7158,'threadId':_0x319324},_0x259bd7=(await this[_0x2325be(0x214)]['post']('/universer-api/comment/unit/'+_0x164915+_0x2325be(0x211),{'body':_0x5e977b}))['body'][_0x2325be(0x1e9)];return{..._0x452939,'id':_0x259bd7[_0x2325be(0x238)],'dT':c['dayjs'](+_0x259bd7[_0x2325be(0x25f)])[_0x2325be(0x24b)](_0x2325be(0x1eb)),'personId':_0x259bd7[_0x2325be(0x253)]};}else{const _0x34ff5e={'memberId':_0x409c3f,'unitId':_0x164915,'content':_0x529231,'mention':_0x3f7158},_0x5f15a4=await this[_0x2325be(0x214)][_0x2325be(0x220)](_0x2325be(0x242)+_0x164915+'/add',{'body':_0x34ff5e});return Y(_0x5f15a4[_0x2325be(0x239)][_0x2325be(0x250)],_0x452939);}}async['updateComment'](_0x44a152){const _0xa4641a=_0x20b4a1;var _0x54c784,_0x112378;const {text:_0x5c67a6,unitId:_0xdd823}=_0x44a152,_0x12c215=(_0x112378=(_0x54c784=_0x5c67a6[_0xa4641a(0x22d)])==null?void 0x0:_0x54c784[_0xa4641a(0x21c)](_0x558590=>_0x558590[_0xa4641a(0x1f4)]===c['CustomRangeType'][_0xa4641a(0x1fa)])[_0xa4641a(0x243)](_0x3734a3=>_0x3734a3[_0xa4641a(0x20c)]))!=null?_0x112378:[],_0x2aebfb=JSON[_0xa4641a(0x21d)](_0x5c67a6),_0x3fa9ae=_0x44a152['threadId'],_0x39779f=_0x44a152['id'],_0xda6f2e={'memberId':(await this[_0xa4641a(0x254)]['requireSession'](_0xdd823))['getMemberID'](),'unitId':_0xdd823,'threadId':_0x3fa9ae,'mention':_0x12c215,'content':_0x2aebfb,'replyId':_0x39779f},_0xa79680=await this[_0xa4641a(0x214)]['post'](_0xa4641a(0x242)+_0xdd823+_0xa4641a(0x251),{'body':_0xda6f2e});return!_0xa79680[_0xa4641a(0x239)]['error']||_0xa79680['body'][_0xa4641a(0x232)]['code']===0x1;}async[_0x20b4a1(0x244)](_0x4bbfb1){const _0x5d9387=_0x20b4a1,{unitId:_0x537727}=_0x4bbfb1,_0x59ef86=_0x4bbfb1[_0x5d9387(0x226)],_0x3bad5e={'memberId':this['_userService']['getCurrentUser']()[_0x5d9387(0x260)],'unitId':_0x537727,'threadId':_0x59ef86,'solved':_0x4bbfb1[_0x5d9387(0x228)]?I[_0x5d9387(0x22a)]:I[_0x5d9387(0x22e)]},_0x2c3230=await this[_0x5d9387(0x214)]['post'](_0x5d9387(0x242)+_0x537727+_0x5d9387(0x223),{'body':_0x3bad5e});return!_0x2c3230[_0x5d9387(0x239)][_0x5d9387(0x232)]||_0x2c3230[_0x5d9387(0x239)][_0x5d9387(0x232)]['code']===0x1;}async['deleteComment'](_0x42b669,_0x1e182e,_0x46cfb2,_0x494532){const _0x5477de=_0x20b4a1,_0x1498db={'memberId':(await this[_0x5477de(0x254)]['requireSession'](_0x42b669))[_0x5477de(0x218)](),'threadId':_0x46cfb2,'replyId':_0x494532,'unitId':_0x42b669},_0x128f09=await this['_httpService'][_0x5477de(0x220)](_0x5477de(0x242)+_0x42b669+_0x5477de(0x25b),{'body':_0x1498db});return!_0x128f09[_0x5477de(0x239)]['error']||_0x128f09[_0x5477de(0x239)]['error'][_0x5477de(0x202)]===0x1;}async[_0x20b4a1(0x24e)](_0x7fc24,_0x2028d5,_0x427b1e){const _0x34cdcb=_0x20b4a1,_0x720cb5={'unitId':_0x7fc24,'threadId':_0x427b1e},_0x59a2ba=await this['_httpService'][_0x34cdcb(0x220)](_0x34cdcb(0x242)+_0x7fc24+_0x34cdcb(0x1f1),{'body':_0x720cb5}),_0x38d017=_0x427b1e['map'](_0xa5e1f5=>G(_0x59a2ba[_0x34cdcb(0x239)]['comments'][_0xa5e1f5],_0x7fc24,_0x2028d5))[_0x34cdcb(0x21c)](Boolean);return Object[_0x34cdcb(0x1f3)](_0x59a2ba['body'][_0x34cdcb(0x217)])['forEach'](_0x5d49f8=>{const _0x4081=_0x34cdcb;this[_0x4081(0x1f8)][_0x4081(0x23d)](_0x5d49f8);}),_0x38d017;}['saveCommentToSnapshot'](_0xa8b038){const _0x4b09a2=_0x20b4a1;return{'id':_0xa8b038['id'],'threadId':_0xa8b038[_0x4b09a2(0x226)],'ref':_0xa8b038[_0x4b09a2(0x205)]};}};g=x([_(0x0,c[_0x20b4a1(0x24d)](P['HTTPService'])),_(0x1,c[_0x20b4a1(0x24d)](c[_0x20b4a1(0x222)])),_(0x2,c[_0x20b4a1(0x24d)](b[_0x20b4a1(0x259)])),_(0x3,c['Inject'](c[_0x20b4a1(0x22c)]))],g);var H=Object[_0x20b4a1(0x21b)],J=(_0x53bc69,_0x4f7f5d,_0x355cf8,_0x2a4c56)=>{const _0x527b7d=_0x20b4a1;for(var _0x486837=_0x2a4c56>0x1?void 0x0:_0x2a4c56?H(_0x4f7f5d,_0x355cf8):_0x4f7f5d,_0x538f44=_0x53bc69[_0x527b7d(0x1fc)]-0x1,_0x14cb02;_0x538f44>=0x0;_0x538f44--)(_0x14cb02=_0x53bc69[_0x538f44])&&(_0x486837=_0x14cb02(_0x486837)||_0x486837);return _0x486837;},y=(_0x254bfb,_0xd0decc)=>(_0x9a5aea,_0x33c30c)=>_0xd0decc(_0x9a5aea,_0x33c30c,_0x254bfb);let C=class extends c['Disposable']{constructor(_0xb7d2bd,_0x4100de){const _0x3b9f23=_0x20b4a1;super(),this[_0x3b9f23(0x1f9)]=_0xb7d2bd,this[_0x3b9f23(0x255)]=_0x4100de,this[_0x3b9f23(0x247)]();}['_initDataSource'](){const _0x273f52=_0x20b4a1;this[_0x273f52(0x1f9)][_0x273f52(0x246)]=this['_threadCommentDataSource'],this[_0x273f52(0x1f9)][_0x273f52(0x20e)]=!0x1;}};C=J([y(0x0,M['IThreadCommentDataSourceService']),y(0x1,c[_0x20b4a1(0x24d)](g))],C);var F=Object[_0x20b4a1(0x21f)],L=Object[_0x20b4a1(0x21b)],Z=(_0x2e1631,_0x42aba7,_0x3cb142)=>_0x42aba7 in _0x2e1631?F(_0x2e1631,_0x42aba7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3cb142}):_0x2e1631[_0x42aba7]=_0x3cb142,W=(_0x2cab18,_0x285ebe,_0x3e936e,_0x5f5699)=>{const _0x1ae52c=_0x20b4a1;for(var _0x18c056=_0x5f5699>0x1?void 0x0:_0x5f5699?L(_0x285ebe,_0x3e936e):_0x285ebe,_0x13f9f1=_0x2cab18[_0x1ae52c(0x1fc)]-0x1,_0x554844;_0x13f9f1>=0x0;_0x13f9f1--)(_0x554844=_0x2cab18[_0x13f9f1])&&(_0x18c056=_0x554844(_0x18c056)||_0x18c056);return _0x18c056;},O=(_0x19e0cf,_0x1ab70f)=>(_0x1156de,_0x258f85)=>_0x1ab70f(_0x1156de,_0x258f85,_0x19e0cf),N=(_0x22dba4,_0x53d59a,_0x572668)=>Z(_0x22dba4,typeof _0x53d59a!='symbol'?_0x53d59a+'':_0x53d59a,_0x572668);exports[_0x20b4a1(0x25d)]=class extends c[_0x20b4a1(0x206)]{constructor(_0x499671=D,_0x3abef8,_0x56a14e){const _0x5472a3=_0x20b4a1;super(),this[_0x5472a3(0x25c)]=_0x499671,this['_injector']=_0x3abef8,this[_0x5472a3(0x20d)]=_0x56a14e;const {..._0x249045}=c[_0x5472a3(0x234)]({},D,this[_0x5472a3(0x25c)]);this[_0x5472a3(0x20d)][_0x5472a3(0x1fe)](q,_0x249045);}['onStarting'](){const _0x5a2f2c=_0x20b4a1;[[g],[C],[p]][_0x5a2f2c(0x1f2)](_0x14c4f0=>{const _0x56be61=_0x5a2f2c;this[_0x56be61(0x231)][_0x56be61(0x210)](_0x14c4f0);});}[_0x20b4a1(0x25a)](){const _0x24f80a=_0x20b4a1;this[_0x24f80a(0x231)][_0x24f80a(0x252)](C),this[_0x24f80a(0x231)][_0x24f80a(0x252)](p);}},N(exports[_0x20b4a1(0x25d)],'pluginName',U),N(exports['UniverThreadCommentDataSourcePlugin'],_0x20b4a1(0x241),c[_0x20b4a1(0x1fd)][_0x20b4a1(0x236)]),exports[_0x20b4a1(0x25d)]=W([c[_0x20b4a1(0x1e6)](j[_0x20b4a1(0x24c)],b[_0x20b4a1(0x200)],T[_0x20b4a1(0x20f)]),O(0x1,c[_0x20b4a1(0x24d)](c['Injector'])),O(0x2,c[_0x20b4a1(0x215)])],exports[_0x20b4a1(0x25d)]);
|
|
1
|
+
'use strict';const _0x3ed0e1=_0x1c58;(function(_0x46db32,_0x4e1edd){const _0x4e0390=_0x1c58,_0xc34431=_0x46db32();while(!![]){try{const _0x38e436=parseInt(_0x4e0390(0x182))/0x1*(parseInt(_0x4e0390(0x14b))/0x2)+-parseInt(_0x4e0390(0x19d))/0x3*(parseInt(_0x4e0390(0x176))/0x4)+-parseInt(_0x4e0390(0x14f))/0x5*(parseInt(_0x4e0390(0x174))/0x6)+-parseInt(_0x4e0390(0x16c))/0x7+parseInt(_0x4e0390(0x1ba))/0x8*(-parseInt(_0x4e0390(0x1c5))/0x9)+parseInt(_0x4e0390(0x1be))/0xa*(parseInt(_0x4e0390(0x17d))/0xb)+parseInt(_0x4e0390(0x153))/0xc;if(_0x38e436===_0x4e1edd)break;else _0xc34431['push'](_0xc34431['shift']());}catch(_0x277f5a){_0xc34431['push'](_0xc34431['shift']());}}}(_0x436c,0xbdf6e));Object[_0x3ed0e1(0x1a5)](exports,Symbol['toStringTag'],{'value':'Module'});const b=require(_0x3ed0e1(0x151)),T=require(_0x3ed0e1(0x18b)),c=require(_0x3ed0e1(0x152)),j=require(_0x3ed0e1(0x16b)),M=require(_0x3ed0e1(0x166)),w=require(_0x3ed0e1(0x1bb)),P=require(_0x3ed0e1(0x16d)),U='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var I=(_0x245d99=>(_0x245d99[_0x245d99[_0x3ed0e1(0x15f)]=0x0]=_0x3ed0e1(0x15f),_0x245d99[_0x245d99[_0x3ed0e1(0x1b9)]=0x1]=_0x3ed0e1(0x1b9),_0x245d99[_0x245d99['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x245d99))(I||{}),v=(_0x4bbab2=>(_0x4bbab2[_0x4bbab2['Unknown']=0x0]=_0x3ed0e1(0x197),_0x4bbab2[_0x4bbab2[_0x3ed0e1(0x184)]=0x1]=_0x3ed0e1(0x184),_0x4bbab2[_0x4bbab2[_0x3ed0e1(0x1a2)]=0x2]='Reply',_0x4bbab2[_0x4bbab2[_0x3ed0e1(0x15c)]=0x3]=_0x3ed0e1(0x15c),_0x4bbab2[_0x4bbab2[_0x3ed0e1(0x175)]=0x4]='Delete',_0x4bbab2[_0x4bbab2[_0x3ed0e1(0x178)]=0x5]=_0x3ed0e1(0x178),_0x4bbab2[_0x4bbab2[_0x3ed0e1(0x17a)]=-0x1]=_0x3ed0e1(0x17a),_0x4bbab2))(v||{});const f=_0x1f2329=>c[_0x3ed0e1(0x159)](new Date(+_0x1f2329))[_0x3ed0e1(0x183)](_0x3ed0e1(0x148)),R=async(_0x5f0d27,_0x1f6541)=>{const _0x77272f=_0x3ed0e1,_0x10d01c=_0x5f0d27[_0x77272f(0x19e)](c[_0x77272f(0x179)]),_0x4b78bb=_0x5f0d27['get'](P[_0x77272f(0x1b0)]);_0x1f6541['forEach'](_0x398320=>{const _0x2dbb75=_0x77272f;_0x10d01c['getUser'](_0x398320)&&_0x1f6541[_0x2dbb75(0x1b5)](_0x398320);}),_0x1f6541['size']&&(await _0x4b78bb[_0x77272f(0x19e)]('/universer-api/user/list',{'params':{'userIDs':[..._0x1f6541]}}))['body']['users'][_0x77272f(0x198)](_0x9b0847=>{_0x9b0847&&_0x10d01c['addUser'](_0x9b0847);});};var $=Object['getOwnPropertyDescriptor'],E=(_0x2fec3d,_0x4986b7,_0x566c84,_0x31c4cd)=>{const _0x1a23f5=_0x3ed0e1;for(var _0x5e08b4=_0x31c4cd>0x1?void 0x0:_0x31c4cd?$(_0x4986b7,_0x566c84):_0x4986b7,_0x1dc188=_0x2fec3d[_0x1a23f5(0x1ad)]-0x1,_0x333ae0;_0x1dc188>=0x0;_0x1dc188--)(_0x333ae0=_0x2fec3d[_0x1dc188])&&(_0x5e08b4=_0x333ae0(_0x5e08b4)||_0x5e08b4);return _0x5e08b4;},S=(_0x21442d,_0x1d9404)=>(_0x5cfd14,_0x2d211e)=>_0x1d9404(_0x5cfd14,_0x2d211e,_0x21442d);let p=class extends c[_0x3ed0e1(0x167)]{constructor(_0x56e152,_0x445c16,_0x5a69cb,_0x3b70e7){const _0x21c28b=_0x3ed0e1;super(),this[_0x21c28b(0x19a)]=_0x56e152,this[_0x21c28b(0x1a7)]=_0x445c16,this[_0x21c28b(0x18f)]=_0x5a69cb,this['_injector']=_0x3b70e7,this[_0x21c28b(0x155)](),this[_0x21c28b(0x165)]();}['_initUserSync'](){const _0x5db32a=_0x3ed0e1;this['disposeWithMe'](this[_0x5db32a(0x1a7)][_0x5db32a(0x147)][_0x5db32a(0x149)](w['bufferTime'](0x10))[_0x5db32a(0x156)](_0x4edded=>{const _0x187e61=_0x5db32a,_0x3693f9=new Set();_0x4edded['forEach'](_0x111282=>{const _0xbd5c8d=_0x1c58;switch(_0x111282[_0xbd5c8d(0x1aa)]){case _0xbd5c8d(0x18c):{const _0x27ecee=_0x111282[_0xbd5c8d(0x188)][_0xbd5c8d(0x171)];_0x3693f9[_0xbd5c8d(0x18c)](_0x27ecee);break;}}}),R(this[_0x187e61(0x1b6)],_0x3693f9);}));}[_0x3ed0e1(0x155)](){const _0x31e9c9=_0x3ed0e1;this[_0x31e9c9(0x160)](this['_commentService']['commentUpdate$'][_0x31e9c9(0x156)](async _0x3f98af=>{const _0x1a2e12=_0x31e9c9;var _0x56bcce,_0x530086,_0xe4551a,_0x58ddcd;const _0x1b39ac=(_0x56bcce=this[_0x1a2e12(0x1a7)][_0x1a2e12(0x14d)](_0x3f98af[_0x1a2e12(0x1ab)])[_0x1a2e12(0x187)](_0x2daa38=>_0x2daa38[_0x1a2e12(0x1c0)]===_0x3f98af[_0x1a2e12(0x1c0)]))==null?void 0x0:_0x56bcce[_0x1a2e12(0x1bd)];if(!_0x1b39ac)return;const {unitId:_0x5c0b1d,subUnitId:_0x50427e}=_0x1b39ac;switch(_0x3f98af[_0x1a2e12(0x177)]&&this['_userService'][_0x1a2e12(0x1b3)](_0x3f98af[_0x1a2e12(0x177)]),_0x3f98af['type']){case v[_0x1a2e12(0x184)]:break;case v[_0x1a2e12(0x1a2)]:{this[_0x1a2e12(0x1a7)][_0x1a2e12(0x15d)](_0x5c0b1d,_0x50427e,{'unitId':_0x5c0b1d,'subUnitId':_0x50427e,'ref':'','id':_0x3f98af[_0x1a2e12(0x157)],'dT':f(+_0x3f98af[_0x1a2e12(0x18d)]),'threadId':_0x3f98af[_0x1a2e12(0x1c0)],'personId':(_0xe4551a=(_0x530086=_0x3f98af[_0x1a2e12(0x177)])==null?void 0x0:_0x530086[_0x1a2e12(0x1c9)])!=null?_0xe4551a:_0x3f98af[_0x1a2e12(0x1a8)],'text':JSON['parse'](_0x3f98af[_0x1a2e12(0x15b)]),'parentId':_0x1b39ac['id']});break;}case v[_0x1a2e12(0x175)]:{const _0x564cfd=this[_0x1a2e12(0x1a7)][_0x1a2e12(0x181)](_0x5c0b1d,_0x50427e,_0x3f98af[_0x1a2e12(0x157)]);_0x564cfd&&_0x564cfd['parentId']&&this['_threadCommentModel'][_0x1a2e12(0x1c8)](_0x5c0b1d,_0x50427e,_0x3f98af[_0x1a2e12(0x157)]);break;}case v[_0x1a2e12(0x15c)]:{this[_0x1a2e12(0x1a7)]['updateComment'](_0x5c0b1d,_0x50427e,{'commentId':_0x3f98af['replyId'],'text':JSON[_0x1a2e12(0x16a)](_0x3f98af[_0x1a2e12(0x15b)])});break;}case v[_0x1a2e12(0x178)]:{const _0x4098ba=(_0x58ddcd=this[_0x1a2e12(0x1a7)][_0x1a2e12(0x14d)](_0x3f98af[_0x1a2e12(0x1ab)])['find'](_0x357e9d=>_0x357e9d[_0x1a2e12(0x1c0)]===_0x3f98af[_0x1a2e12(0x1c0)]))==null?void 0x0:_0x58ddcd[_0x1a2e12(0x1bd)];_0x4098ba&&this[_0x1a2e12(0x1a7)][_0x1a2e12(0x196)](_0x5c0b1d,_0x50427e,_0x4098ba['id'],_0x3f98af[_0x1a2e12(0x164)]===I[_0x1a2e12(0x1b9)]);break;}}}));}};p=E([S(0x0,c[_0x3ed0e1(0x1a3)](b[_0x3ed0e1(0x1c2)])),S(0x1,c[_0x3ed0e1(0x1a3)](M[_0x3ed0e1(0x161)])),S(0x2,c[_0x3ed0e1(0x1a3)](c[_0x3ed0e1(0x179)])),S(0x3,c['Inject'](c[_0x3ed0e1(0x1c7)]))],p);const q=_0x3ed0e1(0x1c4),D={};var A=Object[_0x3ed0e1(0x1bc)],x=(_0xaa4aab,_0x516053,_0x5b794d,_0x101aec)=>{for(var _0x4c1b49=_0x101aec>0x1?void 0x0:_0x101aec?A(_0x516053,_0x5b794d):_0x516053,_0x2e0c92=_0xaa4aab['length']-0x1,_0x3cdf5a;_0x2e0c92>=0x0;_0x2e0c92--)(_0x3cdf5a=_0xaa4aab[_0x2e0c92])&&(_0x4c1b49=_0x3cdf5a(_0x4c1b49)||_0x4c1b49);return _0x4c1b49;},_=(_0xd45d4c,_0x13043b)=>(_0x2c6fe2,_0x1314e4)=>_0x13043b(_0x2c6fe2,_0x1314e4,_0xd45d4c);function Y(_0x14d9c6,_0x204c97){const _0xeb97f0=_0x3ed0e1,_0x1d75f3=_0x14d9c6[_0xeb97f0(0x168)][0x0];return{..._0x204c97,'id':_0x1d75f3[_0xeb97f0(0x157)],'resolved':_0x14d9c6['solved']===0x1,'dT':f(_0x1d75f3[_0xeb97f0(0x18d)]),'personId':_0x1d75f3['userId'],'threadId':_0x1d75f3[_0xeb97f0(0x1c0)]};}function G(_0x3547c5,_0x37ee8c,_0x303b4b){const _0x1e2b90=_0x3ed0e1;var _0x53bb2b,_0x1810e4;if(((_0x1810e4=(_0x53bb2b=_0x3547c5==null?void 0x0:_0x3547c5[_0x1e2b90(0x168)])==null?void 0x0:_0x53bb2b[_0x1e2b90(0x1ad)])!=null?_0x1810e4:0x0)>0x0){const _0x3ec478=(_0x32c14f,_0x4982a9)=>({'id':_0x32c14f[_0x1e2b90(0x157)],'threadId':_0x32c14f[_0x1e2b90(0x1c0)],'dT':f(_0x32c14f[_0x1e2b90(0x18d)]),'personId':_0x32c14f['userId'],'resolved':_0x3547c5[_0x1e2b90(0x164)]===I[_0x1e2b90(0x1b9)],'unitId':_0x37ee8c,'subUnitId':_0x303b4b,'text':JSON[_0x1e2b90(0x16a)](_0x32c14f[_0x1e2b90(0x15b)]),'parentId':_0x4982a9}),_0x9ff4df=_0x3ec478(_0x3547c5[_0x1e2b90(0x168)][0x0]);return{..._0x9ff4df,'children':_0x3547c5['replies'][_0x1e2b90(0x17f)](0x1)[_0x1e2b90(0x1b2)](_0x143688=>_0x3ec478(_0x143688,_0x9ff4df['id']))};}return null;}let g=class{constructor(_0x4fc172,_0x4e6787,_0x3a55c1,_0xb378dc){const _0x4c2277=_0x3ed0e1;this[_0x4c2277(0x180)]=_0x4fc172,this['_userService']=_0x4e6787,this['_sessionService']=_0x3a55c1,this[_0x4c2277(0x1b6)]=_0xb378dc;}async['addComment'](_0x581c70){const _0x46aa34=_0x3ed0e1;var _0x418ed2,_0x493888;const {parentId:_0x42d9aa,unitId:_0x4bc1a9,text:_0x53297a,threadId:_0x876243}=_0x581c70,_0x5bc3b0=(_0x493888=(_0x418ed2=_0x53297a[_0x46aa34(0x16f)])==null?void 0x0:_0x418ed2[_0x46aa34(0x15e)](_0x7b419f=>_0x7b419f[_0x46aa34(0x192)]===c[_0x46aa34(0x17e)][_0x46aa34(0x195)])[_0x46aa34(0x1b2)](_0x3cb5ce=>_0x3cb5ce['rangeId']))!=null?_0x493888:[],_0x3fd067=JSON['stringify'](_0x53297a),_0x137edd=(await this[_0x46aa34(0x17c)][_0x46aa34(0x14e)](_0x4bc1a9))[_0x46aa34(0x146)]();if(_0x42d9aa){const _0x181a99={'memberId':_0x137edd,'unitId':_0x4bc1a9,'content':_0x3fd067,'mention':_0x5bc3b0,'threadId':_0x876243},_0x57a3b4=(await this[_0x46aa34(0x180)][_0x46aa34(0x158)]('/universer-api/comment/unit/'+_0x4bc1a9+_0x46aa34(0x1b7),{'body':_0x181a99}))[_0x46aa34(0x185)]['reply'];return{..._0x581c70,'id':_0x57a3b4[_0x46aa34(0x157)],'dT':c[_0x46aa34(0x159)](+_0x57a3b4[_0x46aa34(0x18d)])[_0x46aa34(0x183)](_0x46aa34(0x148)),'personId':_0x57a3b4[_0x46aa34(0x1a8)]};}else{const _0x1640e5={'memberId':_0x137edd,'unitId':_0x4bc1a9,'content':_0x3fd067,'mention':_0x5bc3b0},_0x381324=await this['_httpService'][_0x46aa34(0x158)](_0x46aa34(0x190)+_0x4bc1a9+_0x46aa34(0x1c1),{'body':_0x1640e5});return Y(_0x381324['body']['comment'],_0x581c70);}}async[_0x3ed0e1(0x1ae)](_0xa6b27){const _0x28b3e8=_0x3ed0e1;var _0x36617b,_0x3955b6;const {text:_0x525eba,unitId:_0x3b02ee}=_0xa6b27,_0x50a7ab=(_0x3955b6=(_0x36617b=_0x525eba[_0x28b3e8(0x16f)])==null?void 0x0:_0x36617b[_0x28b3e8(0x15e)](_0x3ad0f4=>_0x3ad0f4[_0x28b3e8(0x192)]===c[_0x28b3e8(0x17e)][_0x28b3e8(0x195)])['map'](_0x11191e=>_0x11191e[_0x28b3e8(0x19c)]))!=null?_0x3955b6:[],_0x4a05d2=JSON[_0x28b3e8(0x1a6)](_0x525eba),_0x2cc556=_0xa6b27[_0x28b3e8(0x1c0)],_0x1f2bb6=_0xa6b27['id'],_0x55c1bf={'memberId':(await this['_sessionService'][_0x28b3e8(0x14e)](_0x3b02ee))[_0x28b3e8(0x146)](),'unitId':_0x3b02ee,'threadId':_0x2cc556,'mention':_0x50a7ab,'content':_0x4a05d2,'replyId':_0x1f2bb6},_0x144990=await this['_httpService'][_0x28b3e8(0x158)](_0x28b3e8(0x190)+_0x3b02ee+_0x28b3e8(0x1b1),{'body':_0x55c1bf});return!_0x144990[_0x28b3e8(0x185)][_0x28b3e8(0x1a1)]||_0x144990['body'][_0x28b3e8(0x1a1)][_0x28b3e8(0x150)]===0x1;}async[_0x3ed0e1(0x196)](_0x5e5e4c){const _0x5e0074=_0x3ed0e1,{unitId:_0x236c88}=_0x5e5e4c,_0x580924=_0x5e5e4c[_0x5e0074(0x1c0)],_0xa4fe65={'memberId':this[_0x5e0074(0x18f)][_0x5e0074(0x1c6)]()[_0x5e0074(0x1c9)],'unitId':_0x236c88,'threadId':_0x580924,'solved':_0x5e5e4c[_0x5e0074(0x172)]?I['Solved']:I[_0x5e0074(0x15f)]},_0xdbee80=await this[_0x5e0074(0x180)][_0x5e0074(0x158)]('/universer-api/comment/unit/'+_0x236c88+'/solved',{'body':_0xa4fe65});return!_0xdbee80[_0x5e0074(0x185)][_0x5e0074(0x1a1)]||_0xdbee80[_0x5e0074(0x185)][_0x5e0074(0x1a1)][_0x5e0074(0x150)]===0x1;}async[_0x3ed0e1(0x1c8)](_0x13b5ee,_0xd88afc,_0x5d37c8,_0x7f90ef){const _0xfe8f6a=_0x3ed0e1,_0x5ecf4a={'memberId':(await this[_0xfe8f6a(0x17c)]['requireSession'](_0x13b5ee))[_0xfe8f6a(0x146)](),'threadId':_0x5d37c8,'replyId':_0x7f90ef,'unitId':_0x13b5ee},_0x1fdaf7=await this[_0xfe8f6a(0x180)][_0xfe8f6a(0x158)](_0xfe8f6a(0x190)+_0x13b5ee+_0xfe8f6a(0x1a9),{'body':_0x5ecf4a});return!_0x1fdaf7[_0xfe8f6a(0x185)][_0xfe8f6a(0x1a1)]||_0x1fdaf7[_0xfe8f6a(0x185)][_0xfe8f6a(0x1a1)][_0xfe8f6a(0x150)]===0x1;}async[_0x3ed0e1(0x1b8)](_0x267814,_0x47e6de,_0x4ceaff){const _0x2c9ce8=_0x3ed0e1,_0x1ea6d0={'unitId':_0x267814,'threadId':_0x4ceaff},_0x4f7712=await this[_0x2c9ce8(0x180)][_0x2c9ce8(0x158)](_0x2c9ce8(0x190)+_0x267814+_0x2c9ce8(0x194),{'body':_0x1ea6d0}),_0x3001e5=_0x4ceaff['map'](_0x1c4482=>G(_0x4f7712[_0x2c9ce8(0x185)][_0x2c9ce8(0x193)][_0x1c4482],_0x267814,_0x47e6de))[_0x2c9ce8(0x15e)](Boolean);return Object[_0x2c9ce8(0x14c)](_0x4f7712[_0x2c9ce8(0x185)][_0x2c9ce8(0x1af)])['forEach'](_0x308f5e=>{const _0x4bb702=_0x2c9ce8;this[_0x4bb702(0x18f)]['addUser'](_0x308f5e);}),_0x3001e5;}['saveCommentToSnapshot'](_0x52a16a){const _0x5ba25a=_0x3ed0e1;return{'id':_0x52a16a['id'],'threadId':_0x52a16a[_0x5ba25a(0x1c0)],'ref':_0x52a16a[_0x5ba25a(0x16e)]};}};g=x([_(0x0,c[_0x3ed0e1(0x1a3)](P['HTTPService'])),_(0x1,c['Inject'](c['UserManagerService'])),_(0x2,c['Inject'](b[_0x3ed0e1(0x162)])),_(0x3,c[_0x3ed0e1(0x1a3)](c[_0x3ed0e1(0x1c7)]))],g);var H=Object[_0x3ed0e1(0x1bc)],J=(_0x5bf4d9,_0x40e22d,_0x4ce978,_0x33197f)=>{const _0x31ff74=_0x3ed0e1;for(var _0xc8e53d=_0x33197f>0x1?void 0x0:_0x33197f?H(_0x40e22d,_0x4ce978):_0x40e22d,_0xa79031=_0x5bf4d9[_0x31ff74(0x1ad)]-0x1,_0x21b3c2;_0xa79031>=0x0;_0xa79031--)(_0x21b3c2=_0x5bf4d9[_0xa79031])&&(_0xc8e53d=_0x21b3c2(_0xc8e53d)||_0xc8e53d);return _0xc8e53d;},y=(_0xb3ff02,_0x2dd5f8)=>(_0x2857d6,_0x452f5c)=>_0x2dd5f8(_0x2857d6,_0x452f5c,_0xb3ff02);let C=class extends c[_0x3ed0e1(0x167)]{constructor(_0x363f00,_0x20090a){const _0xd2a6a3=_0x3ed0e1;super(),this['_threadCommentDataSourceService']=_0x363f00,this[_0xd2a6a3(0x1b4)]=_0x20090a,this[_0xd2a6a3(0x199)]();}['_initDataSource'](){const _0x361678=_0x3ed0e1;this['_threadCommentDataSourceService'][_0x361678(0x169)]=this[_0x361678(0x1b4)],this['_threadCommentDataSourceService'][_0x361678(0x18a)]=!0x1;}};function _0x1c58(_0x1188d6,_0x26357e){const _0x436c6f=_0x436c();return _0x1c58=function(_0x1c581c,_0x348c1a){_0x1c581c=_0x1c581c-0x146;let _0x3bdc26=_0x436c6f[_0x1c581c];return _0x3bdc26;},_0x1c58(_0x1188d6,_0x26357e);}C=J([y(0x0,M[_0x3ed0e1(0x189)]),y(0x1,c[_0x3ed0e1(0x1a3)](g))],C);var F=Object[_0x3ed0e1(0x1a5)],L=Object[_0x3ed0e1(0x1bc)],Z=(_0x221d2a,_0xbf73f7,_0xf3daf2)=>_0xbf73f7 in _0x221d2a?F(_0x221d2a,_0xbf73f7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf3daf2}):_0x221d2a[_0xbf73f7]=_0xf3daf2,W=(_0x342011,_0x33161e,_0x556b24,_0x432072)=>{const _0x3cf3c8=_0x3ed0e1;for(var _0x527883=_0x432072>0x1?void 0x0:_0x432072?L(_0x33161e,_0x556b24):_0x33161e,_0x2cc72f=_0x342011[_0x3cf3c8(0x1ad)]-0x1,_0x3b0466;_0x2cc72f>=0x0;_0x2cc72f--)(_0x3b0466=_0x342011[_0x2cc72f])&&(_0x527883=_0x3b0466(_0x527883)||_0x527883);return _0x527883;},O=(_0xd5c228,_0x451b26)=>(_0x53b717,_0x1ebcf8)=>_0x451b26(_0x53b717,_0x1ebcf8,_0xd5c228),N=(_0x12f26b,_0xd2c6fe,_0x2f7a92)=>Z(_0x12f26b,typeof _0xd2c6fe!=_0x3ed0e1(0x19b)?_0xd2c6fe+'':_0xd2c6fe,_0x2f7a92);exports[_0x3ed0e1(0x17b)]=class extends c[_0x3ed0e1(0x191)]{constructor(_0xedef1c=D,_0x29722d,_0x8eefa5){const _0x588ee2=_0x3ed0e1;super(),this[_0x588ee2(0x1c3)]=_0xedef1c,this[_0x588ee2(0x1b6)]=_0x29722d,this[_0x588ee2(0x173)]=_0x8eefa5;const {..._0x2c4bd8}=c[_0x588ee2(0x1bf)]({},D,this['_config']);this[_0x588ee2(0x173)][_0x588ee2(0x15a)](q,_0x2c4bd8);}[_0x3ed0e1(0x19f)](){const _0x24c772=_0x3ed0e1;[[g],[C],[p]][_0x24c772(0x198)](_0x56c892=>{const _0x3ecc33=_0x24c772;this[_0x3ecc33(0x1b6)][_0x3ecc33(0x18c)](_0x56c892);});}[_0x3ed0e1(0x18e)](){const _0x2305c1=_0x3ed0e1;this[_0x2305c1(0x1b6)]['get'](C),this[_0x2305c1(0x1b6)][_0x2305c1(0x19e)](p);}},N(exports[_0x3ed0e1(0x17b)],_0x3ed0e1(0x14a),U),N(exports[_0x3ed0e1(0x17b)],_0x3ed0e1(0x1aa),c[_0x3ed0e1(0x186)][_0x3ed0e1(0x163)]),exports[_0x3ed0e1(0x17b)]=W([c[_0x3ed0e1(0x1a4)](j[_0x3ed0e1(0x1a0)],b[_0x3ed0e1(0x1ac)],T[_0x3ed0e1(0x154)]),O(0x1,c['Inject'](c[_0x3ed0e1(0x1c7)])),O(0x2,c[_0x3ed0e1(0x170)])],exports[_0x3ed0e1(0x17b)]);function _0x436c(){const _0x24b50d=['userID','getMemberID','commentUpdate$','YYYY/MM/DD\x20HH:mm','pipe','pluginName','666080CSWUXD','values','getUnit','requireSession','8900fYYzuf','code','@univerjs-pro/collaboration-client','@univerjs/core','32348580ReHSFt','UniverLicensePlugin','_init','subscribe','replyId','post','dayjs','setConfig','content','Edit','addComment','filter','OpenOrReOpen','disposeWithMe','ThreadCommentModel','CollaborationSessionService','UNIVER_UNKNOWN','solved','_initUserSync','@univerjs/thread-comment','Disposable','replies','dataSource','parse','@univerjs/thread-comment-ui','10455879HdMlkH','@univerjs/network','ref','customRanges','IConfigService','personId','resolved','_configService','18icwPPG','Delete','1844ZrUNlo','user','Solve','UserManagerService','UNRECOGNIZED','UniverThreadCommentDataSourcePlugin','_sessionService','764390unOWpe','CustomRangeType','slice','_httpService','getComment','2VVNpqo','format','Add','body','UniverInstanceType','find','payload','IThreadCommentDataSourceService','syncUpdateMutationToColla','@univerjs-pro/license','add','createTimestamp','onReady','_userService','/universer-api/comment/unit/','Plugin','rangeType','comments','/list','COMMENT','resolveComment','Unknown','forEach','_initDataSource','_commentService','symbol','rangeId','4137nXgCZO','get','onStarting','UniverThreadCommentUIPlugin','error','Reply','Inject','DependentOn','defineProperty','stringify','_threadCommentModel','userId','/delete','type','unitId','UniverCollaborationClientPlugin','length','updateComment','users','HTTPService','/edit','map','addUser','_threadCommentDataSource','delete','_injector','/reply','listComments','Solved','8PmsXer','rxjs','getOwnPropertyDescriptor','root','130rrlTMl','merge','threadId','/add','CommentService','_config','thread-comment-data-source.config','12170835BHTxdr','getCurrentUser','Injector','deleteComment'];_0x436c=function(){return _0x24b50d;};return _0x436c();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4b7626=_0x2c2f;(function(_0x139491,_0x4b98f6){const _0x20b7dc=_0x2c2f,_0x69d8aa=_0x139491();while(!![]){try{const _0x5a7952=parseInt(_0x20b7dc(0x1e2))/0x1*(-parseInt(_0x20b7dc(0x212))/0x2)+-parseInt(_0x20b7dc(0x1ec))/0x3*(-parseInt(_0x20b7dc(0x21a))/0x4)+parseInt(_0x20b7dc(0x224))/0x5+parseInt(_0x20b7dc(0x1d4))/0x6+-parseInt(_0x20b7dc(0x215))/0x7+-parseInt(_0x20b7dc(0x208))/0x8+parseInt(_0x20b7dc(0x1e0))/0x9;if(_0x5a7952===_0x4b98f6)break;else _0x69d8aa['push'](_0x69d8aa['shift']());}catch(_0x11f169){_0x69d8aa['push'](_0x69d8aa['shift']());}}}(_0x16a6,0x734f1));import{CommentService as _0x2529c2,CollaborationSessionService as _0x5c999b,UniverCollaborationClientPlugin as _0x53c880}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x3306fe}from'@univerjs-pro/license';import{dayjs as _0xfc58d6,UserManagerService as _0x164e15,Inject as _0x1820ac,Injector as _0x4bcb98,Disposable as _0x2e6166,CustomRangeType as _0x13fedf,UniverInstanceType as _0x3dc0f3,DependentOn as _0xa05568,IConfigService as _0x3e734a,Plugin as _0x53cea8,merge as _0x23c1a1}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x2fef6f}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x545f27,IThreadCommentDataSourceService as _0x1b5895}from'@univerjs/thread-comment';import{bufferTime as _0x189a1d}from'rxjs';import{HTTPService as _0x11101f}from'@univerjs/network';const W=_0x4b7626(0x20c);var I=(_0x1948b6=>(_0x1948b6[_0x1948b6[_0x4b7626(0x1cf)]=0x0]='OpenOrReOpen',_0x1948b6[_0x1948b6[_0x4b7626(0x21b)]=0x1]=_0x4b7626(0x21b),_0x1948b6[_0x1948b6[_0x4b7626(0x1f5)]=-0x1]='UNRECOGNIZED',_0x1948b6))(I||{}),v=(_0x5b8e04=>(_0x5b8e04[_0x5b8e04['Unknown']=0x0]=_0x4b7626(0x200),_0x5b8e04[_0x5b8e04[_0x4b7626(0x20e)]=0x1]=_0x4b7626(0x20e),_0x5b8e04[_0x5b8e04[_0x4b7626(0x1cd)]=0x2]=_0x4b7626(0x1cd),_0x5b8e04[_0x5b8e04[_0x4b7626(0x1da)]=0x3]=_0x4b7626(0x1da),_0x5b8e04[_0x5b8e04[_0x4b7626(0x1e9)]=0x4]=_0x4b7626(0x1e9),_0x5b8e04[_0x5b8e04[_0x4b7626(0x211)]=0x5]='Solve',_0x5b8e04[_0x5b8e04[_0x4b7626(0x1f5)]=-0x1]=_0x4b7626(0x1f5),_0x5b8e04))(v||{});const D=_0x308c6e=>_0xfc58d6(new Date(+_0x308c6e))[_0x4b7626(0x20b)](_0x4b7626(0x214)),B=async(_0x3cb69d,_0x561bb0)=>{const _0x2648fa=_0x4b7626,_0x87d8a3=_0x3cb69d[_0x2648fa(0x1fc)](_0x164e15),_0x4989a0=_0x3cb69d[_0x2648fa(0x1fc)](_0x11101f);_0x561bb0[_0x2648fa(0x20a)](_0x4f7b1d=>{_0x87d8a3['getUser'](_0x4f7b1d)&&_0x561bb0['delete'](_0x4f7b1d);}),_0x561bb0[_0x2648fa(0x1ef)]&&(await _0x4989a0['get'](_0x2648fa(0x1cb),{'params':{'userIDs':[..._0x561bb0]}}))['body'][_0x2648fa(0x210)]['forEach'](_0x2f093e=>{const _0x2496fa=_0x2648fa;_0x2f093e&&_0x87d8a3[_0x2496fa(0x1ee)](_0x2f093e);});};var K=Object['getOwnPropertyDescriptor'],V=(_0x30aec4,_0x2f4c31,_0x35259b,_0x38d06f)=>{const _0x56791e=_0x4b7626;for(var _0x1f95b2=_0x38d06f>0x1?void 0x0:_0x38d06f?K(_0x2f4c31,_0x35259b):_0x2f4c31,_0x1d95a1=_0x30aec4[_0x56791e(0x1dc)]-0x1,_0x1d2ddc;_0x1d95a1>=0x0;_0x1d95a1--)(_0x1d2ddc=_0x30aec4[_0x1d95a1])&&(_0x1f95b2=_0x1d2ddc(_0x1f95b2)||_0x1f95b2);return _0x1f95b2;},p=(_0x199e7c,_0xa8b55)=>(_0x592e4b,_0x587a57)=>_0xa8b55(_0x592e4b,_0x587a57,_0x199e7c);let S=class extends _0x2e6166{constructor(_0x1a7631,_0x200bc3,_0xaec88d,_0x173bb9){const _0x5a6914=_0x4b7626;super(),this[_0x5a6914(0x1fe)]=_0x1a7631,this[_0x5a6914(0x1db)]=_0x200bc3,this['_userService']=_0xaec88d,this[_0x5a6914(0x1e5)]=_0x173bb9,this['_init'](),this[_0x5a6914(0x1d1)]();}[_0x4b7626(0x1d1)](){const _0x1aa270=_0x4b7626;this[_0x1aa270(0x213)](this[_0x1aa270(0x1db)]['commentUpdate$'][_0x1aa270(0x218)](_0x189a1d(0x10))[_0x1aa270(0x1d5)](_0x5488d6=>{const _0x328fd2=_0x1aa270,_0x27475a=new Set();_0x5488d6['forEach'](_0x137b29=>{const _0xf1ae05=_0x2c2f;switch(_0x137b29[_0xf1ae05(0x201)]){case _0xf1ae05(0x1de):{const _0x5ca361=_0x137b29[_0xf1ae05(0x223)][_0xf1ae05(0x202)];_0x27475a[_0xf1ae05(0x1de)](_0x5ca361);break;}}}),B(this[_0x328fd2(0x1e5)],_0x27475a);}));}['_init'](){const _0xfc5f33=_0x4b7626;this['disposeWithMe'](this[_0xfc5f33(0x1fe)][_0xfc5f33(0x1e6)][_0xfc5f33(0x1d5)](async _0x249ae3=>{const _0xd1e90b=_0xfc5f33;var _0x359dcc,_0x1868c8,_0x2dfef6,_0x5b48c8;const _0x128083=(_0x359dcc=this[_0xd1e90b(0x1db)]['getUnit'](_0x249ae3[_0xd1e90b(0x1ce)])['find'](_0x1e6680=>_0x1e6680[_0xd1e90b(0x220)]===_0x249ae3[_0xd1e90b(0x220)]))==null?void 0x0:_0x359dcc[_0xd1e90b(0x203)];if(!_0x128083)return;const {unitId:_0x3a3e5b,subUnitId:_0x5038b4}=_0x128083;switch(_0x249ae3[_0xd1e90b(0x1e1)]&&this[_0xd1e90b(0x207)][_0xd1e90b(0x1ee)](_0x249ae3[_0xd1e90b(0x1e1)]),_0x249ae3['type']){case v[_0xd1e90b(0x20e)]:break;case v['Reply']:{this[_0xd1e90b(0x1db)][_0xd1e90b(0x225)](_0x3a3e5b,_0x5038b4,{'unitId':_0x3a3e5b,'subUnitId':_0x5038b4,'ref':'','id':_0x249ae3[_0xd1e90b(0x219)],'dT':D(+_0x249ae3[_0xd1e90b(0x1dd)]),'threadId':_0x249ae3['threadId'],'personId':(_0x2dfef6=(_0x1868c8=_0x249ae3['user'])==null?void 0x0:_0x1868c8[_0xd1e90b(0x1fd)])!=null?_0x2dfef6:_0x249ae3[_0xd1e90b(0x227)],'text':JSON[_0xd1e90b(0x1d7)](_0x249ae3[_0xd1e90b(0x1e3)]),'parentId':_0x128083['id']});break;}case v[_0xd1e90b(0x1e9)]:{const _0x5c2d18=this[_0xd1e90b(0x1db)]['getComment'](_0x3a3e5b,_0x5038b4,_0x249ae3[_0xd1e90b(0x219)]);_0x5c2d18&&_0x5c2d18[_0xd1e90b(0x1f9)]&&this[_0xd1e90b(0x1db)]['deleteComment'](_0x3a3e5b,_0x5038b4,_0x249ae3[_0xd1e90b(0x219)]);break;}case v[_0xd1e90b(0x1da)]:{this[_0xd1e90b(0x1db)]['updateComment'](_0x3a3e5b,_0x5038b4,{'commentId':_0x249ae3[_0xd1e90b(0x219)],'text':JSON[_0xd1e90b(0x1d7)](_0x249ae3[_0xd1e90b(0x1e3)])});break;}case v[_0xd1e90b(0x211)]:{const _0xa0c7a9=(_0x5b48c8=this[_0xd1e90b(0x1db)]['getUnit'](_0x249ae3[_0xd1e90b(0x1ce)])[_0xd1e90b(0x1ff)](_0x53ad63=>_0x53ad63[_0xd1e90b(0x220)]===_0x249ae3[_0xd1e90b(0x220)]))==null?void 0x0:_0x5b48c8[_0xd1e90b(0x203)];_0xa0c7a9&&this[_0xd1e90b(0x1db)][_0xd1e90b(0x1f0)](_0x3a3e5b,_0x5038b4,_0xa0c7a9['id'],_0x249ae3['solved']===I[_0xd1e90b(0x21b)]);break;}}}));}};function _0x16a6(){const _0xae002e=['rangeType','Edit','_threadCommentModel','length','createTimestamp','add','saveCommentToSnapshot','626634IrteRB','user','609580BDEDzc','content','customRanges','_injector','commentUpdate$','body','defineProperty','Delete','/add','dataSource','120345wrFJVH','getMemberID','addUser','size','resolveComment','reply','getOwnPropertyDescriptor','syncUpdateMutationToColla','_configService','UNRECOGNIZED','_threadCommentDataSourceService','getCurrentUser','_threadCommentDataSource','parentId','error','/solved','get','userID','_commentService','find','Unknown','type','personId','root','rangeId','/edit','_config','_userService','6369368nKeBCi','map','forEach','format','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','listComments','Add','symbol','users','Solve','2sPHxJD','disposeWithMe','YYYY/MM/DD\x20HH:mm','456211NgLeBC','comment','onStarting','pipe','replyId','56bRDyRk','Solved','_httpService','onReady','code','requireSession','threadId','resolved','updateComment','payload','2466475oiHNaA','addComment','_sessionService','userId','/reply','post','solved','filter','replies','/universer-api/user/list','values','Reply','unitId','OpenOrReOpen','_initDataSource','_initUserSync','/universer-api/comment/unit/','stringify','4912188hPPpEn','subscribe','pluginName','parse','COMMENT'];_0x16a6=function(){return _0xae002e;};return _0x16a6();}S=V([p(0x0,_0x1820ac(_0x2529c2)),p(0x1,_0x1820ac(_0x545f27)),p(0x2,_0x1820ac(_0x164e15)),p(0x3,_0x1820ac(_0x4bcb98))],S);const z='thread-comment-data-source.config',M={};var k=Object[_0x4b7626(0x1f2)],Q=(_0x2bf61a,_0x10dbdf,_0x20060d,_0x28cf8d)=>{const _0x50b607=_0x4b7626;for(var _0x4b93b1=_0x28cf8d>0x1?void 0x0:_0x28cf8d?k(_0x10dbdf,_0x20060d):_0x10dbdf,_0x49d0b1=_0x2bf61a[_0x50b607(0x1dc)]-0x1,_0x3fd1c4;_0x49d0b1>=0x0;_0x49d0b1--)(_0x3fd1c4=_0x2bf61a[_0x49d0b1])&&(_0x4b93b1=_0x3fd1c4(_0x4b93b1)||_0x4b93b1);return _0x4b93b1;},_=(_0x2fd021,_0x1dbdc0)=>(_0x5b129a,_0x1892e9)=>_0x1dbdc0(_0x5b129a,_0x1892e9,_0x2fd021);function X(_0x52db83,_0x2ce1fd){const _0x15734e=_0x4b7626,_0x3ae9eb=_0x52db83[_0x15734e(0x1ca)][0x0];return{..._0x2ce1fd,'id':_0x3ae9eb[_0x15734e(0x219)],'resolved':_0x52db83[_0x15734e(0x22a)]===0x1,'dT':D(_0x3ae9eb['createTimestamp']),'personId':_0x3ae9eb[_0x15734e(0x227)],'threadId':_0x3ae9eb[_0x15734e(0x220)]};}function ee(_0xa4dfa4,_0x2f4b5c,_0x53b562){const _0x10c849=_0x4b7626;var _0x57be1e,_0x788edc;if(((_0x788edc=(_0x57be1e=_0xa4dfa4==null?void 0x0:_0xa4dfa4[_0x10c849(0x1ca)])==null?void 0x0:_0x57be1e[_0x10c849(0x1dc)])!=null?_0x788edc:0x0)>0x0){const _0x19f506=(_0x251a1a,_0x5d4d83)=>({'id':_0x251a1a[_0x10c849(0x219)],'threadId':_0x251a1a[_0x10c849(0x220)],'dT':D(_0x251a1a['createTimestamp']),'personId':_0x251a1a['userId'],'resolved':_0xa4dfa4[_0x10c849(0x22a)]===I['Solved'],'unitId':_0x2f4b5c,'subUnitId':_0x53b562,'text':JSON[_0x10c849(0x1d7)](_0x251a1a['content']),'parentId':_0x5d4d83}),_0x3e697c=_0x19f506(_0xa4dfa4['replies'][0x0]);return{..._0x3e697c,'children':_0xa4dfa4[_0x10c849(0x1ca)]['slice'](0x1)[_0x10c849(0x209)](_0x3b1447=>_0x19f506(_0x3b1447,_0x3e697c['id']))};}return null;}let f=class{constructor(_0x350a9b,_0x5826ba,_0x5a16e5,_0x5ba7e8){const _0x53d8f7=_0x4b7626;this[_0x53d8f7(0x21c)]=_0x350a9b,this[_0x53d8f7(0x207)]=_0x5826ba,this[_0x53d8f7(0x226)]=_0x5a16e5,this[_0x53d8f7(0x1e5)]=_0x5ba7e8;}async[_0x4b7626(0x225)](_0x37d131){const _0x7bdec8=_0x4b7626;var _0x5d4451,_0x26b6d3;const {parentId:_0x381fe8,unitId:_0x16fa7e,text:_0x5341ea,threadId:_0x49e562}=_0x37d131,_0x4c41eb=(_0x26b6d3=(_0x5d4451=_0x5341ea[_0x7bdec8(0x1e4)])==null?void 0x0:_0x5d4451[_0x7bdec8(0x1c9)](_0x6a3a8d=>_0x6a3a8d[_0x7bdec8(0x1d9)]===_0x13fedf[_0x7bdec8(0x1d8)])[_0x7bdec8(0x209)](_0x56c7f9=>_0x56c7f9[_0x7bdec8(0x204)]))!=null?_0x26b6d3:[],_0x370fec=JSON[_0x7bdec8(0x1d3)](_0x5341ea),_0x143763=(await this[_0x7bdec8(0x226)][_0x7bdec8(0x21f)](_0x16fa7e))[_0x7bdec8(0x1ed)]();if(_0x381fe8){const _0x3a6515={'memberId':_0x143763,'unitId':_0x16fa7e,'content':_0x370fec,'mention':_0x4c41eb,'threadId':_0x49e562},_0x5e6a4e=(await this[_0x7bdec8(0x21c)][_0x7bdec8(0x229)](_0x7bdec8(0x1d2)+_0x16fa7e+_0x7bdec8(0x228),{'body':_0x3a6515}))[_0x7bdec8(0x1e7)][_0x7bdec8(0x1f1)];return{..._0x37d131,'id':_0x5e6a4e[_0x7bdec8(0x219)],'dT':_0xfc58d6(+_0x5e6a4e[_0x7bdec8(0x1dd)])[_0x7bdec8(0x20b)](_0x7bdec8(0x214)),'personId':_0x5e6a4e[_0x7bdec8(0x227)]};}else{const _0x3320d8={'memberId':_0x143763,'unitId':_0x16fa7e,'content':_0x370fec,'mention':_0x4c41eb},_0x369d1d=await this[_0x7bdec8(0x21c)][_0x7bdec8(0x229)](_0x7bdec8(0x1d2)+_0x16fa7e+_0x7bdec8(0x1ea),{'body':_0x3320d8});return X(_0x369d1d[_0x7bdec8(0x1e7)][_0x7bdec8(0x216)],_0x37d131);}}async[_0x4b7626(0x222)](_0xc30a5c){const _0x4bf881=_0x4b7626;var _0x59252e,_0x21dd53;const {text:_0x293230,unitId:_0x55a638}=_0xc30a5c,_0x15f32a=(_0x21dd53=(_0x59252e=_0x293230[_0x4bf881(0x1e4)])==null?void 0x0:_0x59252e[_0x4bf881(0x1c9)](_0x9e0cf0=>_0x9e0cf0[_0x4bf881(0x1d9)]===_0x13fedf[_0x4bf881(0x1d8)])[_0x4bf881(0x209)](_0x141c6d=>_0x141c6d['rangeId']))!=null?_0x21dd53:[],_0x538d99=JSON[_0x4bf881(0x1d3)](_0x293230),_0xb4cca3=_0xc30a5c[_0x4bf881(0x220)],_0x316f54=_0xc30a5c['id'],_0xece44d={'memberId':(await this[_0x4bf881(0x226)][_0x4bf881(0x21f)](_0x55a638))['getMemberID'](),'unitId':_0x55a638,'threadId':_0xb4cca3,'mention':_0x15f32a,'content':_0x538d99,'replyId':_0x316f54},_0x58392e=await this[_0x4bf881(0x21c)][_0x4bf881(0x229)](_0x4bf881(0x1d2)+_0x55a638+_0x4bf881(0x205),{'body':_0xece44d});return!_0x58392e[_0x4bf881(0x1e7)][_0x4bf881(0x1fa)]||_0x58392e['body'][_0x4bf881(0x1fa)][_0x4bf881(0x21e)]===0x1;}async[_0x4b7626(0x1f0)](_0x5a6a65){const _0x37ab32=_0x4b7626,{unitId:_0x13f311}=_0x5a6a65,_0x254c16=_0x5a6a65[_0x37ab32(0x220)],_0x5cc945={'memberId':this['_userService'][_0x37ab32(0x1f7)]()[_0x37ab32(0x1fd)],'unitId':_0x13f311,'threadId':_0x254c16,'solved':_0x5a6a65[_0x37ab32(0x221)]?I[_0x37ab32(0x21b)]:I[_0x37ab32(0x1cf)]},_0x54d624=await this[_0x37ab32(0x21c)][_0x37ab32(0x229)]('/universer-api/comment/unit/'+_0x13f311+_0x37ab32(0x1fb),{'body':_0x5cc945});return!_0x54d624['body']['error']||_0x54d624[_0x37ab32(0x1e7)][_0x37ab32(0x1fa)][_0x37ab32(0x21e)]===0x1;}async['deleteComment'](_0x4091cb,_0x369ecc,_0x5c438b,_0x1ffd6c){const _0x21811f=_0x4b7626,_0x176da9={'memberId':(await this['_sessionService'][_0x21811f(0x21f)](_0x4091cb))[_0x21811f(0x1ed)](),'threadId':_0x5c438b,'replyId':_0x1ffd6c,'unitId':_0x4091cb},_0x435232=await this['_httpService'][_0x21811f(0x229)](_0x21811f(0x1d2)+_0x4091cb+'/delete',{'body':_0x176da9});return!_0x435232[_0x21811f(0x1e7)][_0x21811f(0x1fa)]||_0x435232[_0x21811f(0x1e7)][_0x21811f(0x1fa)][_0x21811f(0x21e)]===0x1;}async[_0x4b7626(0x20d)](_0x3d0248,_0x1981f6,_0x3e57f5){const _0x26c12d=_0x4b7626,_0x579277={'unitId':_0x3d0248,'threadId':_0x3e57f5},_0x529404=await this[_0x26c12d(0x21c)]['post'](_0x26c12d(0x1d2)+_0x3d0248+'/list',{'body':_0x579277}),_0xb12dde=_0x3e57f5[_0x26c12d(0x209)](_0x1ab353=>ee(_0x529404[_0x26c12d(0x1e7)]['comments'][_0x1ab353],_0x3d0248,_0x1981f6))[_0x26c12d(0x1c9)](Boolean);return Object[_0x26c12d(0x1cc)](_0x529404[_0x26c12d(0x1e7)][_0x26c12d(0x210)])['forEach'](_0x2e7b55=>{const _0x508580=_0x26c12d;this[_0x508580(0x207)][_0x508580(0x1ee)](_0x2e7b55);}),_0xb12dde;}[_0x4b7626(0x1df)](_0x54ec3e){const _0x24bfad=_0x4b7626;return{'id':_0x54ec3e['id'],'threadId':_0x54ec3e[_0x24bfad(0x220)],'ref':_0x54ec3e['ref']};}};f=Q([_(0x0,_0x1820ac(_0x11101f)),_(0x1,_0x1820ac(_0x164e15)),_(0x2,_0x1820ac(_0x5c999b)),_(0x3,_0x1820ac(_0x4bcb98))],f);var re=Object[_0x4b7626(0x1f2)],te=(_0x1b6d49,_0x51a546,_0x47bcc9,_0x565eae)=>{const _0x14f48d=_0x4b7626;for(var _0x39973a=_0x565eae>0x1?void 0x0:_0x565eae?re(_0x51a546,_0x47bcc9):_0x51a546,_0x13c70c=_0x1b6d49[_0x14f48d(0x1dc)]-0x1,_0x321e62;_0x13c70c>=0x0;_0x13c70c--)(_0x321e62=_0x1b6d49[_0x13c70c])&&(_0x39973a=_0x321e62(_0x39973a)||_0x39973a);return _0x39973a;},N=(_0x2bfd66,_0x2dea7b)=>(_0x3f97a3,_0x1f76d9)=>_0x2dea7b(_0x3f97a3,_0x1f76d9,_0x2bfd66);let g=class extends _0x2e6166{constructor(_0x39ca7f,_0x4a58d1){const _0x5eeeda=_0x4b7626;super(),this[_0x5eeeda(0x1f6)]=_0x39ca7f,this[_0x5eeeda(0x1f8)]=_0x4a58d1,this[_0x5eeeda(0x1d0)]();}[_0x4b7626(0x1d0)](){const _0x406515=_0x4b7626;this[_0x406515(0x1f6)][_0x406515(0x1eb)]=this['_threadCommentDataSource'],this['_threadCommentDataSourceService'][_0x406515(0x1f3)]=!0x1;}};g=te([N(0x0,_0x1b5895),N(0x1,_0x1820ac(f))],g);var se=Object[_0x4b7626(0x1e8)],oe=Object['getOwnPropertyDescriptor'],ne=(_0x133e14,_0x5d8c00,_0xcdb738)=>_0x5d8c00 in _0x133e14?se(_0x133e14,_0x5d8c00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcdb738}):_0x133e14[_0x5d8c00]=_0xcdb738,ie=(_0x428a92,_0x256d5b,_0x58c53c,_0x46b1e7)=>{const _0x1864b9=_0x4b7626;for(var _0x3e5a8e=_0x46b1e7>0x1?void 0x0:_0x46b1e7?oe(_0x256d5b,_0x58c53c):_0x256d5b,_0x231da6=_0x428a92[_0x1864b9(0x1dc)]-0x1,_0x56dcce;_0x231da6>=0x0;_0x231da6--)(_0x56dcce=_0x428a92[_0x231da6])&&(_0x3e5a8e=_0x56dcce(_0x3e5a8e)||_0x3e5a8e);return _0x3e5a8e;},w=(_0x3a9755,_0x1a22e7)=>(_0x1d9a23,_0x443f2c)=>_0x1a22e7(_0x1d9a23,_0x443f2c,_0x3a9755),$=(_0x2b05ab,_0x4751fa,_0x4818f4)=>ne(_0x2b05ab,typeof _0x4751fa!=_0x4b7626(0x20f)?_0x4751fa+'':_0x4751fa,_0x4818f4);function _0x2c2f(_0x41995f,_0x568760){const _0x16a6d9=_0x16a6();return _0x2c2f=function(_0x2c2fee,_0x464aff){_0x2c2fee=_0x2c2fee-0x1c9;let _0x2aab00=_0x16a6d9[_0x2c2fee];return _0x2aab00;},_0x2c2f(_0x41995f,_0x568760);}let b=class extends _0x53cea8{constructor(_0xfeb84c=M,_0x40381e,_0x36610e){const _0xcd7a76=_0x4b7626;super(),this['_config']=_0xfeb84c,this[_0xcd7a76(0x1e5)]=_0x40381e,this[_0xcd7a76(0x1f4)]=_0x36610e;const {..._0x35147f}=_0x23c1a1({},M,this[_0xcd7a76(0x206)]);this[_0xcd7a76(0x1f4)]['setConfig'](z,_0x35147f);}[_0x4b7626(0x217)](){const _0x36f2f6=_0x4b7626;[[f],[g],[S]][_0x36f2f6(0x20a)](_0x4cc6e9=>{const _0x3880f7=_0x36f2f6;this[_0x3880f7(0x1e5)][_0x3880f7(0x1de)](_0x4cc6e9);});}[_0x4b7626(0x21d)](){const _0x2307c9=_0x4b7626;this[_0x2307c9(0x1e5)]['get'](g),this['_injector'][_0x2307c9(0x1fc)](S);}};$(b,_0x4b7626(0x1d6),W),$(b,_0x4b7626(0x201),_0x3dc0f3['UNIVER_UNKNOWN']),b=ie([_0xa05568(_0x2fef6f,_0x53c880,_0x3306fe),w(0x1,_0x1820ac(_0x4bcb98)),w(0x2,_0x3e734a)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
|
1
|
+
const _0x8eb16d=_0xa644;(function(_0x26f565,_0x4a5003){const _0x54cbc0=_0xa644,_0x11892c=_0x26f565();while(!![]){try{const _0x4e8a81=-parseInt(_0x54cbc0(0x181))/0x1*(parseInt(_0x54cbc0(0x1c4))/0x2)+-parseInt(_0x54cbc0(0x19a))/0x3*(-parseInt(_0x54cbc0(0x16b))/0x4)+parseInt(_0x54cbc0(0x176))/0x5+parseInt(_0x54cbc0(0x16e))/0x6*(-parseInt(_0x54cbc0(0x1a9))/0x7)+parseInt(_0x54cbc0(0x194))/0x8+-parseInt(_0x54cbc0(0x177))/0x9+parseInt(_0x54cbc0(0x1a7))/0xa;if(_0x4e8a81===_0x4a5003)break;else _0x11892c['push'](_0x11892c['shift']());}catch(_0x47526e){_0x11892c['push'](_0x11892c['shift']());}}}(_0x118a,0x2f9ea));import{CommentService as _0x1ccc3b,CollaborationSessionService as _0x3d3196,UniverCollaborationClientPlugin as _0x2caa97}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0xe51017}from'@univerjs-pro/license';import{dayjs as _0x5eb8ae,UserManagerService as _0x4ba4f5,Inject as _0xdc24c4,Injector as _0x446729,Disposable as _0x4f817d,CustomRangeType as _0x19605a,UniverInstanceType as _0x20c5bd,DependentOn as _0x5aa5bd,IConfigService as _0x17f2a0,Plugin as _0x1d9dc9,merge as _0x147312}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x24bb62}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x5c51a6,IThreadCommentDataSourceService as _0x1004f0}from'@univerjs/thread-comment';import{bufferTime as _0x200bd8}from'rxjs';import{HTTPService as _0x40e085}from'@univerjs/network';const W=_0x8eb16d(0x180);var I=(_0x4ed037=>(_0x4ed037[_0x4ed037[_0x8eb16d(0x1a2)]=0x0]='OpenOrReOpen',_0x4ed037[_0x4ed037[_0x8eb16d(0x1ce)]=0x1]=_0x8eb16d(0x1ce),_0x4ed037[_0x4ed037[_0x8eb16d(0x191)]=-0x1]='UNRECOGNIZED',_0x4ed037))(I||{}),v=(_0x4bf901=>(_0x4bf901[_0x4bf901[_0x8eb16d(0x192)]=0x0]=_0x8eb16d(0x192),_0x4bf901[_0x4bf901[_0x8eb16d(0x17e)]=0x1]=_0x8eb16d(0x17e),_0x4bf901[_0x4bf901['Reply']=0x2]='Reply',_0x4bf901[_0x4bf901[_0x8eb16d(0x17d)]=0x3]=_0x8eb16d(0x17d),_0x4bf901[_0x4bf901['Delete']=0x4]=_0x8eb16d(0x1b7),_0x4bf901[_0x4bf901[_0x8eb16d(0x197)]=0x5]=_0x8eb16d(0x197),_0x4bf901[_0x4bf901[_0x8eb16d(0x191)]=-0x1]=_0x8eb16d(0x191),_0x4bf901))(v||{});function _0x118a(){const _0x46d758=['6329fRKInW','syncUpdateMutationToColla','solved','parentId','customRanges','getMemberID','get','ref','saveCommentToSnapshot','_initUserSync','error','replyId','COMMENT','size','_threadCommentDataSource','length','UNRECOGNIZED','Unknown','userId','1711568NOOgTA','pipe','dataSource','Solve','getUser','content','3RcYeMr','_init','commentUpdate$','subscribe','/add','_config','setConfig','updateComment','OpenOrReOpen','user','getComment','symbol','add','4622420jpGjrG','body','1059730qnvOdn','payload','type','_httpService','createTimestamp','onStarting','userID','filter','root','YYYY/MM/DD\x20HH:mm','_threadCommentDataSourceService','_initDataSource','unitId','find','Delete','deleteComment','pluginName','reply','parse','Reply','defineProperty','_sessionService','_injector','UNIVER_UNKNOWN','post','/delete','/universer-api/user/list','56oJQoaw','threadId','/universer-api/comment/unit/','/list','forEach','listComments','users','_userService','map','values','Solved','replies','116868tYUBEI','_threadCommentModel','getCurrentUser','6dqmWOu','resolveComment','rangeId','addComment','_commentService','stringify','/solved','addUser','1028480wZfnXW','3487041OtjmXa','requireSession','getOwnPropertyDescriptor','getUnit','disposeWithMe','code','Edit','Add','onReady','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN'];_0x118a=function(){return _0x46d758;};return _0x118a();}const D=_0x142eb4=>_0x5eb8ae(new Date(+_0x142eb4))['format'](_0x8eb16d(0x1b2)),B=async(_0x342391,_0x1ee11b)=>{const _0x3a57ee=_0x8eb16d,_0x30d120=_0x342391[_0x3a57ee(0x187)](_0x4ba4f5),_0xa4e10e=_0x342391[_0x3a57ee(0x187)](_0x40e085);_0x1ee11b[_0x3a57ee(0x1c8)](_0xf2ed1d=>{const _0x25ad56=_0x3a57ee;_0x30d120[_0x25ad56(0x198)](_0xf2ed1d)&&_0x1ee11b['delete'](_0xf2ed1d);}),_0x1ee11b[_0x3a57ee(0x18e)]&&(await _0xa4e10e[_0x3a57ee(0x187)](_0x3a57ee(0x1c3),{'params':{'userIDs':[..._0x1ee11b]}}))[_0x3a57ee(0x1a8)][_0x3a57ee(0x1ca)]['forEach'](_0x3019f4=>{const _0x281dd2=_0x3a57ee;_0x3019f4&&_0x30d120[_0x281dd2(0x175)](_0x3019f4);});};var K=Object[_0x8eb16d(0x179)],V=(_0x3c5927,_0x5460f6,_0x354784,_0x17d86c)=>{for(var _0x58200e=_0x17d86c>0x1?void 0x0:_0x17d86c?K(_0x5460f6,_0x354784):_0x5460f6,_0x5be380=_0x3c5927['length']-0x1,_0x4f4b0b;_0x5be380>=0x0;_0x5be380--)(_0x4f4b0b=_0x3c5927[_0x5be380])&&(_0x58200e=_0x4f4b0b(_0x58200e)||_0x58200e);return _0x58200e;},p=(_0x404226,_0x10b535)=>(_0x5efc4f,_0x5a6ec1)=>_0x10b535(_0x5efc4f,_0x5a6ec1,_0x404226);let S=class extends _0x4f817d{constructor(_0x3cb562,_0x2ffe30,_0x1dd3ff,_0x57a9dc){const _0x206d68=_0x8eb16d;super(),this['_commentService']=_0x3cb562,this[_0x206d68(0x16c)]=_0x2ffe30,this['_userService']=_0x1dd3ff,this['_injector']=_0x57a9dc,this[_0x206d68(0x19b)](),this[_0x206d68(0x18a)]();}[_0x8eb16d(0x18a)](){const _0x389b82=_0x8eb16d;this[_0x389b82(0x17b)](this[_0x389b82(0x16c)]['commentUpdate$'][_0x389b82(0x195)](_0x200bd8(0x10))[_0x389b82(0x19d)](_0x1eff56=>{const _0x486510=_0x389b82,_0xa1cf08=new Set();_0x1eff56[_0x486510(0x1c8)](_0x377008=>{const _0x1c4306=_0x486510;switch(_0x377008[_0x1c4306(0x1ab)]){case _0x1c4306(0x1a6):{const _0x5e5b80=_0x377008[_0x1c4306(0x1aa)]['personId'];_0xa1cf08[_0x1c4306(0x1a6)](_0x5e5b80);break;}}}),B(this[_0x486510(0x1bf)],_0xa1cf08);}));}['_init'](){const _0x4cb971=_0x8eb16d;this['disposeWithMe'](this[_0x4cb971(0x172)][_0x4cb971(0x19c)][_0x4cb971(0x19d)](async _0x80891f=>{const _0x27846d=_0x4cb971;var _0x2c0708,_0x16aaed,_0x1dbd4f,_0x479cc1;const _0xe01919=(_0x2c0708=this[_0x27846d(0x16c)][_0x27846d(0x17a)](_0x80891f['unitId'])[_0x27846d(0x1b6)](_0x17b8ca=>_0x17b8ca[_0x27846d(0x1c5)]===_0x80891f[_0x27846d(0x1c5)]))==null?void 0x0:_0x2c0708[_0x27846d(0x1b1)];if(!_0xe01919)return;const {unitId:_0x24c545,subUnitId:_0x506b4d}=_0xe01919;switch(_0x80891f['user']&&this[_0x27846d(0x1cb)]['addUser'](_0x80891f[_0x27846d(0x1a3)]),_0x80891f[_0x27846d(0x1ab)]){case v[_0x27846d(0x17e)]:break;case v[_0x27846d(0x1bc)]:{this[_0x27846d(0x16c)][_0x27846d(0x171)](_0x24c545,_0x506b4d,{'unitId':_0x24c545,'subUnitId':_0x506b4d,'ref':'','id':_0x80891f[_0x27846d(0x18c)],'dT':D(+_0x80891f[_0x27846d(0x1ad)]),'threadId':_0x80891f[_0x27846d(0x1c5)],'personId':(_0x1dbd4f=(_0x16aaed=_0x80891f[_0x27846d(0x1a3)])==null?void 0x0:_0x16aaed['userID'])!=null?_0x1dbd4f:_0x80891f['userId'],'text':JSON[_0x27846d(0x1bb)](_0x80891f['content']),'parentId':_0xe01919['id']});break;}case v[_0x27846d(0x1b7)]:{const _0x121518=this['_threadCommentModel'][_0x27846d(0x1a4)](_0x24c545,_0x506b4d,_0x80891f[_0x27846d(0x18c)]);_0x121518&&_0x121518[_0x27846d(0x184)]&&this[_0x27846d(0x16c)][_0x27846d(0x1b8)](_0x24c545,_0x506b4d,_0x80891f[_0x27846d(0x18c)]);break;}case v[_0x27846d(0x17d)]:{this[_0x27846d(0x16c)][_0x27846d(0x1a1)](_0x24c545,_0x506b4d,{'commentId':_0x80891f[_0x27846d(0x18c)],'text':JSON['parse'](_0x80891f[_0x27846d(0x199)])});break;}case v[_0x27846d(0x197)]:{const _0x52d86e=(_0x479cc1=this[_0x27846d(0x16c)]['getUnit'](_0x80891f[_0x27846d(0x1b5)])[_0x27846d(0x1b6)](_0x3f9878=>_0x3f9878[_0x27846d(0x1c5)]===_0x80891f[_0x27846d(0x1c5)]))==null?void 0x0:_0x479cc1[_0x27846d(0x1b1)];_0x52d86e&&this[_0x27846d(0x16c)]['resolveComment'](_0x24c545,_0x506b4d,_0x52d86e['id'],_0x80891f[_0x27846d(0x183)]===I[_0x27846d(0x1ce)]);break;}}}));}};S=V([p(0x0,_0xdc24c4(_0x1ccc3b)),p(0x1,_0xdc24c4(_0x5c51a6)),p(0x2,_0xdc24c4(_0x4ba4f5)),p(0x3,_0xdc24c4(_0x446729))],S);const z='thread-comment-data-source.config',M={};var k=Object['getOwnPropertyDescriptor'],Q=(_0x17c693,_0x4d23a6,_0x2984df,_0xa31c13)=>{for(var _0xdc3e2d=_0xa31c13>0x1?void 0x0:_0xa31c13?k(_0x4d23a6,_0x2984df):_0x4d23a6,_0x36cdd9=_0x17c693['length']-0x1,_0x54f304;_0x36cdd9>=0x0;_0x36cdd9--)(_0x54f304=_0x17c693[_0x36cdd9])&&(_0xdc3e2d=_0x54f304(_0xdc3e2d)||_0xdc3e2d);return _0xdc3e2d;},_=(_0xe4c82f,_0x57f10e)=>(_0x16a164,_0x55a361)=>_0x57f10e(_0x16a164,_0x55a361,_0xe4c82f);function X(_0x5d0474,_0x1f2072){const _0x1b1af5=_0x8eb16d,_0x4ec919=_0x5d0474[_0x1b1af5(0x16a)][0x0];return{..._0x1f2072,'id':_0x4ec919['replyId'],'resolved':_0x5d0474[_0x1b1af5(0x183)]===0x1,'dT':D(_0x4ec919[_0x1b1af5(0x1ad)]),'personId':_0x4ec919['userId'],'threadId':_0x4ec919[_0x1b1af5(0x1c5)]};}function ee(_0x1dc058,_0x1d33a1,_0x4a29b8){const _0x3e4429=_0x8eb16d;var _0x16905e,_0x380e3e;if(((_0x380e3e=(_0x16905e=_0x1dc058==null?void 0x0:_0x1dc058[_0x3e4429(0x16a)])==null?void 0x0:_0x16905e[_0x3e4429(0x190)])!=null?_0x380e3e:0x0)>0x0){const _0x12a6fc=(_0x26be21,_0x102ff0)=>({'id':_0x26be21[_0x3e4429(0x18c)],'threadId':_0x26be21[_0x3e4429(0x1c5)],'dT':D(_0x26be21['createTimestamp']),'personId':_0x26be21[_0x3e4429(0x193)],'resolved':_0x1dc058[_0x3e4429(0x183)]===I['Solved'],'unitId':_0x1d33a1,'subUnitId':_0x4a29b8,'text':JSON[_0x3e4429(0x1bb)](_0x26be21[_0x3e4429(0x199)]),'parentId':_0x102ff0}),_0xa1c339=_0x12a6fc(_0x1dc058[_0x3e4429(0x16a)][0x0]);return{..._0xa1c339,'children':_0x1dc058[_0x3e4429(0x16a)]['slice'](0x1)['map'](_0x4353c8=>_0x12a6fc(_0x4353c8,_0xa1c339['id']))};}return null;}let f=class{constructor(_0xd527d1,_0x7b2f99,_0x5854ac,_0x43c529){const _0x16cda7=_0x8eb16d;this[_0x16cda7(0x1ac)]=_0xd527d1,this['_userService']=_0x7b2f99,this[_0x16cda7(0x1be)]=_0x5854ac,this[_0x16cda7(0x1bf)]=_0x43c529;}async['addComment'](_0x4e7085){const _0x3cabd4=_0x8eb16d;var _0x3d1b7c,_0x559fb9;const {parentId:_0x2ba49e,unitId:_0x460949,text:_0x1deed3,threadId:_0x96e33}=_0x4e7085,_0x3a2114=(_0x559fb9=(_0x3d1b7c=_0x1deed3[_0x3cabd4(0x185)])==null?void 0x0:_0x3d1b7c['filter'](_0x3cee94=>_0x3cee94['rangeType']===_0x19605a[_0x3cabd4(0x18d)])[_0x3cabd4(0x1cc)](_0x570fe8=>_0x570fe8['rangeId']))!=null?_0x559fb9:[],_0x4e9bb1=JSON[_0x3cabd4(0x173)](_0x1deed3),_0xaf8c4=(await this['_sessionService'][_0x3cabd4(0x178)](_0x460949))[_0x3cabd4(0x186)]();if(_0x2ba49e){const _0x3c9c5e={'memberId':_0xaf8c4,'unitId':_0x460949,'content':_0x4e9bb1,'mention':_0x3a2114,'threadId':_0x96e33},_0x7d3202=(await this[_0x3cabd4(0x1ac)][_0x3cabd4(0x1c1)](_0x3cabd4(0x1c6)+_0x460949+'/reply',{'body':_0x3c9c5e}))['body'][_0x3cabd4(0x1ba)];return{..._0x4e7085,'id':_0x7d3202[_0x3cabd4(0x18c)],'dT':_0x5eb8ae(+_0x7d3202[_0x3cabd4(0x1ad)])['format'](_0x3cabd4(0x1b2)),'personId':_0x7d3202['userId']};}else{const _0x4f2575={'memberId':_0xaf8c4,'unitId':_0x460949,'content':_0x4e9bb1,'mention':_0x3a2114},_0x5d5519=await this[_0x3cabd4(0x1ac)]['post'](_0x3cabd4(0x1c6)+_0x460949+_0x3cabd4(0x19e),{'body':_0x4f2575});return X(_0x5d5519[_0x3cabd4(0x1a8)]['comment'],_0x4e7085);}}async[_0x8eb16d(0x1a1)](_0x1d395f){const _0x31ebd5=_0x8eb16d;var _0x68d19,_0x45e08e;const {text:_0x16f826,unitId:_0x3aa872}=_0x1d395f,_0x47db8e=(_0x45e08e=(_0x68d19=_0x16f826[_0x31ebd5(0x185)])==null?void 0x0:_0x68d19[_0x31ebd5(0x1b0)](_0x28b20f=>_0x28b20f['rangeType']===_0x19605a[_0x31ebd5(0x18d)])[_0x31ebd5(0x1cc)](_0x31cdbd=>_0x31cdbd[_0x31ebd5(0x170)]))!=null?_0x45e08e:[],_0x65d2a2=JSON[_0x31ebd5(0x173)](_0x16f826),_0x2bdbe0=_0x1d395f[_0x31ebd5(0x1c5)],_0xfbdfbc=_0x1d395f['id'],_0x51b782={'memberId':(await this[_0x31ebd5(0x1be)][_0x31ebd5(0x178)](_0x3aa872))[_0x31ebd5(0x186)](),'unitId':_0x3aa872,'threadId':_0x2bdbe0,'mention':_0x47db8e,'content':_0x65d2a2,'replyId':_0xfbdfbc},_0x42177c=await this[_0x31ebd5(0x1ac)][_0x31ebd5(0x1c1)](_0x31ebd5(0x1c6)+_0x3aa872+'/edit',{'body':_0x51b782});return!_0x42177c[_0x31ebd5(0x1a8)]['error']||_0x42177c[_0x31ebd5(0x1a8)][_0x31ebd5(0x18b)][_0x31ebd5(0x17c)]===0x1;}async[_0x8eb16d(0x16f)](_0xc6e78){const _0x2cf62b=_0x8eb16d,{unitId:_0x1094dc}=_0xc6e78,_0x3577a6=_0xc6e78[_0x2cf62b(0x1c5)],_0x52d09a={'memberId':this['_userService'][_0x2cf62b(0x16d)]()[_0x2cf62b(0x1af)],'unitId':_0x1094dc,'threadId':_0x3577a6,'solved':_0xc6e78['resolved']?I['Solved']:I[_0x2cf62b(0x1a2)]},_0x4e9c2e=await this[_0x2cf62b(0x1ac)]['post']('/universer-api/comment/unit/'+_0x1094dc+_0x2cf62b(0x174),{'body':_0x52d09a});return!_0x4e9c2e[_0x2cf62b(0x1a8)][_0x2cf62b(0x18b)]||_0x4e9c2e['body'][_0x2cf62b(0x18b)][_0x2cf62b(0x17c)]===0x1;}async[_0x8eb16d(0x1b8)](_0x33b212,_0x495a01,_0x267a16,_0x418271){const _0x8964af=_0x8eb16d,_0x22d066={'memberId':(await this[_0x8964af(0x1be)]['requireSession'](_0x33b212))[_0x8964af(0x186)](),'threadId':_0x267a16,'replyId':_0x418271,'unitId':_0x33b212},_0x1d20bb=await this[_0x8964af(0x1ac)]['post']('/universer-api/comment/unit/'+_0x33b212+_0x8964af(0x1c2),{'body':_0x22d066});return!_0x1d20bb[_0x8964af(0x1a8)][_0x8964af(0x18b)]||_0x1d20bb[_0x8964af(0x1a8)][_0x8964af(0x18b)][_0x8964af(0x17c)]===0x1;}async[_0x8eb16d(0x1c9)](_0x27fe30,_0x4c6d96,_0xfce698){const _0x323c5f=_0x8eb16d,_0x2f967c={'unitId':_0x27fe30,'threadId':_0xfce698},_0xbcffa5=await this[_0x323c5f(0x1ac)][_0x323c5f(0x1c1)](_0x323c5f(0x1c6)+_0x27fe30+_0x323c5f(0x1c7),{'body':_0x2f967c}),_0x245734=_0xfce698['map'](_0x1092d9=>ee(_0xbcffa5[_0x323c5f(0x1a8)]['comments'][_0x1092d9],_0x27fe30,_0x4c6d96))[_0x323c5f(0x1b0)](Boolean);return Object[_0x323c5f(0x1cd)](_0xbcffa5[_0x323c5f(0x1a8)][_0x323c5f(0x1ca)])[_0x323c5f(0x1c8)](_0x1d3b4f=>{const _0x263c53=_0x323c5f;this['_userService'][_0x263c53(0x175)](_0x1d3b4f);}),_0x245734;}[_0x8eb16d(0x189)](_0x471f37){const _0xa6d548=_0x8eb16d;return{'id':_0x471f37['id'],'threadId':_0x471f37['threadId'],'ref':_0x471f37[_0xa6d548(0x188)]};}};f=Q([_(0x0,_0xdc24c4(_0x40e085)),_(0x1,_0xdc24c4(_0x4ba4f5)),_(0x2,_0xdc24c4(_0x3d3196)),_(0x3,_0xdc24c4(_0x446729))],f);function _0xa644(_0x4637c9,_0x265c74){const _0x118a90=_0x118a();return _0xa644=function(_0xa64400,_0x274b13){_0xa64400=_0xa64400-0x16a;let _0x3234dd=_0x118a90[_0xa64400];return _0x3234dd;},_0xa644(_0x4637c9,_0x265c74);}var re=Object[_0x8eb16d(0x179)],te=(_0x303b71,_0x52317d,_0x3de470,_0x264898)=>{for(var _0x2d7bfe=_0x264898>0x1?void 0x0:_0x264898?re(_0x52317d,_0x3de470):_0x52317d,_0x58bd3d=_0x303b71['length']-0x1,_0x1a17c3;_0x58bd3d>=0x0;_0x58bd3d--)(_0x1a17c3=_0x303b71[_0x58bd3d])&&(_0x2d7bfe=_0x1a17c3(_0x2d7bfe)||_0x2d7bfe);return _0x2d7bfe;},N=(_0x1ba854,_0x260363)=>(_0x42d615,_0x95e093)=>_0x260363(_0x42d615,_0x95e093,_0x1ba854);let g=class extends _0x4f817d{constructor(_0x248f39,_0x16617b){const _0x2dac32=_0x8eb16d;super(),this[_0x2dac32(0x1b3)]=_0x248f39,this['_threadCommentDataSource']=_0x16617b,this[_0x2dac32(0x1b4)]();}[_0x8eb16d(0x1b4)](){const _0x52ad67=_0x8eb16d;this['_threadCommentDataSourceService'][_0x52ad67(0x196)]=this[_0x52ad67(0x18f)],this['_threadCommentDataSourceService'][_0x52ad67(0x182)]=!0x1;}};g=te([N(0x0,_0x1004f0),N(0x1,_0xdc24c4(f))],g);var se=Object[_0x8eb16d(0x1bd)],oe=Object['getOwnPropertyDescriptor'],ne=(_0x19bb16,_0x95b4f1,_0x3fbb49)=>_0x95b4f1 in _0x19bb16?se(_0x19bb16,_0x95b4f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fbb49}):_0x19bb16[_0x95b4f1]=_0x3fbb49,ie=(_0x3402be,_0x5b174a,_0x42d9bb,_0x28c724)=>{const _0x3c25d5=_0x8eb16d;for(var _0x48d123=_0x28c724>0x1?void 0x0:_0x28c724?oe(_0x5b174a,_0x42d9bb):_0x5b174a,_0x1b8a30=_0x3402be[_0x3c25d5(0x190)]-0x1,_0x28e325;_0x1b8a30>=0x0;_0x1b8a30--)(_0x28e325=_0x3402be[_0x1b8a30])&&(_0x48d123=_0x28e325(_0x48d123)||_0x48d123);return _0x48d123;},w=(_0x1724c1,_0x44ebcd)=>(_0x21969d,_0x194b4d)=>_0x44ebcd(_0x21969d,_0x194b4d,_0x1724c1),$=(_0x1fef6b,_0x57c003,_0x17f93f)=>ne(_0x1fef6b,typeof _0x57c003!=_0x8eb16d(0x1a5)?_0x57c003+'':_0x57c003,_0x17f93f);let b=class extends _0x1d9dc9{constructor(_0x210702=M,_0x227bab,_0x2a3f5a){const _0x3d47bc=_0x8eb16d;super(),this[_0x3d47bc(0x19f)]=_0x210702,this['_injector']=_0x227bab,this['_configService']=_0x2a3f5a;const {..._0x3fc915}=_0x147312({},M,this[_0x3d47bc(0x19f)]);this['_configService'][_0x3d47bc(0x1a0)](z,_0x3fc915);}[_0x8eb16d(0x1ae)](){const _0x46d7bd=_0x8eb16d;[[f],[g],[S]][_0x46d7bd(0x1c8)](_0xb809a5=>{const _0x4f1008=_0x46d7bd;this[_0x4f1008(0x1bf)]['add'](_0xb809a5);});}[_0x8eb16d(0x17f)](){const _0x19a14d=_0x8eb16d;this[_0x19a14d(0x1bf)][_0x19a14d(0x187)](g),this[_0x19a14d(0x1bf)][_0x19a14d(0x187)](S);}};$(b,_0x8eb16d(0x1b9),W),$(b,'type',_0x20c5bd[_0x8eb16d(0x1c0)]),b=ie([_0x5aa5bd(_0x24bb62,_0x2caa97,_0xe51017),w(0x1,_0xdc24c4(_0x446729)),w(0x2,_0x17f2a0)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4b7626=_0x2c2f;(function(_0x139491,_0x4b98f6){const _0x20b7dc=_0x2c2f,_0x69d8aa=_0x139491();while(!![]){try{const _0x5a7952=parseInt(_0x20b7dc(0x1e2))/0x1*(-parseInt(_0x20b7dc(0x212))/0x2)+-parseInt(_0x20b7dc(0x1ec))/0x3*(-parseInt(_0x20b7dc(0x21a))/0x4)+parseInt(_0x20b7dc(0x224))/0x5+parseInt(_0x20b7dc(0x1d4))/0x6+-parseInt(_0x20b7dc(0x215))/0x7+-parseInt(_0x20b7dc(0x208))/0x8+parseInt(_0x20b7dc(0x1e0))/0x9;if(_0x5a7952===_0x4b98f6)break;else _0x69d8aa['push'](_0x69d8aa['shift']());}catch(_0x11f169){_0x69d8aa['push'](_0x69d8aa['shift']());}}}(_0x16a6,0x734f1));import{CommentService as _0x2529c2,CollaborationSessionService as _0x5c999b,UniverCollaborationClientPlugin as _0x53c880}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x3306fe}from'@univerjs-pro/license';import{dayjs as _0xfc58d6,UserManagerService as _0x164e15,Inject as _0x1820ac,Injector as _0x4bcb98,Disposable as _0x2e6166,CustomRangeType as _0x13fedf,UniverInstanceType as _0x3dc0f3,DependentOn as _0xa05568,IConfigService as _0x3e734a,Plugin as _0x53cea8,merge as _0x23c1a1}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x2fef6f}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x545f27,IThreadCommentDataSourceService as _0x1b5895}from'@univerjs/thread-comment';import{bufferTime as _0x189a1d}from'rxjs';import{HTTPService as _0x11101f}from'@univerjs/network';const W=_0x4b7626(0x20c);var I=(_0x1948b6=>(_0x1948b6[_0x1948b6[_0x4b7626(0x1cf)]=0x0]='OpenOrReOpen',_0x1948b6[_0x1948b6[_0x4b7626(0x21b)]=0x1]=_0x4b7626(0x21b),_0x1948b6[_0x1948b6[_0x4b7626(0x1f5)]=-0x1]='UNRECOGNIZED',_0x1948b6))(I||{}),v=(_0x5b8e04=>(_0x5b8e04[_0x5b8e04['Unknown']=0x0]=_0x4b7626(0x200),_0x5b8e04[_0x5b8e04[_0x4b7626(0x20e)]=0x1]=_0x4b7626(0x20e),_0x5b8e04[_0x5b8e04[_0x4b7626(0x1cd)]=0x2]=_0x4b7626(0x1cd),_0x5b8e04[_0x5b8e04[_0x4b7626(0x1da)]=0x3]=_0x4b7626(0x1da),_0x5b8e04[_0x5b8e04[_0x4b7626(0x1e9)]=0x4]=_0x4b7626(0x1e9),_0x5b8e04[_0x5b8e04[_0x4b7626(0x211)]=0x5]='Solve',_0x5b8e04[_0x5b8e04[_0x4b7626(0x1f5)]=-0x1]=_0x4b7626(0x1f5),_0x5b8e04))(v||{});const D=_0x308c6e=>_0xfc58d6(new Date(+_0x308c6e))[_0x4b7626(0x20b)](_0x4b7626(0x214)),B=async(_0x3cb69d,_0x561bb0)=>{const _0x2648fa=_0x4b7626,_0x87d8a3=_0x3cb69d[_0x2648fa(0x1fc)](_0x164e15),_0x4989a0=_0x3cb69d[_0x2648fa(0x1fc)](_0x11101f);_0x561bb0[_0x2648fa(0x20a)](_0x4f7b1d=>{_0x87d8a3['getUser'](_0x4f7b1d)&&_0x561bb0['delete'](_0x4f7b1d);}),_0x561bb0[_0x2648fa(0x1ef)]&&(await _0x4989a0['get'](_0x2648fa(0x1cb),{'params':{'userIDs':[..._0x561bb0]}}))['body'][_0x2648fa(0x210)]['forEach'](_0x2f093e=>{const _0x2496fa=_0x2648fa;_0x2f093e&&_0x87d8a3[_0x2496fa(0x1ee)](_0x2f093e);});};var K=Object['getOwnPropertyDescriptor'],V=(_0x30aec4,_0x2f4c31,_0x35259b,_0x38d06f)=>{const _0x56791e=_0x4b7626;for(var _0x1f95b2=_0x38d06f>0x1?void 0x0:_0x38d06f?K(_0x2f4c31,_0x35259b):_0x2f4c31,_0x1d95a1=_0x30aec4[_0x56791e(0x1dc)]-0x1,_0x1d2ddc;_0x1d95a1>=0x0;_0x1d95a1--)(_0x1d2ddc=_0x30aec4[_0x1d95a1])&&(_0x1f95b2=_0x1d2ddc(_0x1f95b2)||_0x1f95b2);return _0x1f95b2;},p=(_0x199e7c,_0xa8b55)=>(_0x592e4b,_0x587a57)=>_0xa8b55(_0x592e4b,_0x587a57,_0x199e7c);let S=class extends _0x2e6166{constructor(_0x1a7631,_0x200bc3,_0xaec88d,_0x173bb9){const _0x5a6914=_0x4b7626;super(),this[_0x5a6914(0x1fe)]=_0x1a7631,this[_0x5a6914(0x1db)]=_0x200bc3,this['_userService']=_0xaec88d,this[_0x5a6914(0x1e5)]=_0x173bb9,this['_init'](),this[_0x5a6914(0x1d1)]();}[_0x4b7626(0x1d1)](){const _0x1aa270=_0x4b7626;this[_0x1aa270(0x213)](this[_0x1aa270(0x1db)]['commentUpdate$'][_0x1aa270(0x218)](_0x189a1d(0x10))[_0x1aa270(0x1d5)](_0x5488d6=>{const _0x328fd2=_0x1aa270,_0x27475a=new Set();_0x5488d6['forEach'](_0x137b29=>{const _0xf1ae05=_0x2c2f;switch(_0x137b29[_0xf1ae05(0x201)]){case _0xf1ae05(0x1de):{const _0x5ca361=_0x137b29[_0xf1ae05(0x223)][_0xf1ae05(0x202)];_0x27475a[_0xf1ae05(0x1de)](_0x5ca361);break;}}}),B(this[_0x328fd2(0x1e5)],_0x27475a);}));}['_init'](){const _0xfc5f33=_0x4b7626;this['disposeWithMe'](this[_0xfc5f33(0x1fe)][_0xfc5f33(0x1e6)][_0xfc5f33(0x1d5)](async _0x249ae3=>{const _0xd1e90b=_0xfc5f33;var _0x359dcc,_0x1868c8,_0x2dfef6,_0x5b48c8;const _0x128083=(_0x359dcc=this[_0xd1e90b(0x1db)]['getUnit'](_0x249ae3[_0xd1e90b(0x1ce)])['find'](_0x1e6680=>_0x1e6680[_0xd1e90b(0x220)]===_0x249ae3[_0xd1e90b(0x220)]))==null?void 0x0:_0x359dcc[_0xd1e90b(0x203)];if(!_0x128083)return;const {unitId:_0x3a3e5b,subUnitId:_0x5038b4}=_0x128083;switch(_0x249ae3[_0xd1e90b(0x1e1)]&&this[_0xd1e90b(0x207)][_0xd1e90b(0x1ee)](_0x249ae3[_0xd1e90b(0x1e1)]),_0x249ae3['type']){case v[_0xd1e90b(0x20e)]:break;case v['Reply']:{this[_0xd1e90b(0x1db)][_0xd1e90b(0x225)](_0x3a3e5b,_0x5038b4,{'unitId':_0x3a3e5b,'subUnitId':_0x5038b4,'ref':'','id':_0x249ae3[_0xd1e90b(0x219)],'dT':D(+_0x249ae3[_0xd1e90b(0x1dd)]),'threadId':_0x249ae3['threadId'],'personId':(_0x2dfef6=(_0x1868c8=_0x249ae3['user'])==null?void 0x0:_0x1868c8[_0xd1e90b(0x1fd)])!=null?_0x2dfef6:_0x249ae3[_0xd1e90b(0x227)],'text':JSON[_0xd1e90b(0x1d7)](_0x249ae3[_0xd1e90b(0x1e3)]),'parentId':_0x128083['id']});break;}case v[_0xd1e90b(0x1e9)]:{const _0x5c2d18=this[_0xd1e90b(0x1db)]['getComment'](_0x3a3e5b,_0x5038b4,_0x249ae3[_0xd1e90b(0x219)]);_0x5c2d18&&_0x5c2d18[_0xd1e90b(0x1f9)]&&this[_0xd1e90b(0x1db)]['deleteComment'](_0x3a3e5b,_0x5038b4,_0x249ae3[_0xd1e90b(0x219)]);break;}case v[_0xd1e90b(0x1da)]:{this[_0xd1e90b(0x1db)]['updateComment'](_0x3a3e5b,_0x5038b4,{'commentId':_0x249ae3[_0xd1e90b(0x219)],'text':JSON[_0xd1e90b(0x1d7)](_0x249ae3[_0xd1e90b(0x1e3)])});break;}case v[_0xd1e90b(0x211)]:{const _0xa0c7a9=(_0x5b48c8=this[_0xd1e90b(0x1db)]['getUnit'](_0x249ae3[_0xd1e90b(0x1ce)])[_0xd1e90b(0x1ff)](_0x53ad63=>_0x53ad63[_0xd1e90b(0x220)]===_0x249ae3[_0xd1e90b(0x220)]))==null?void 0x0:_0x5b48c8[_0xd1e90b(0x203)];_0xa0c7a9&&this[_0xd1e90b(0x1db)][_0xd1e90b(0x1f0)](_0x3a3e5b,_0x5038b4,_0xa0c7a9['id'],_0x249ae3['solved']===I[_0xd1e90b(0x21b)]);break;}}}));}};function _0x16a6(){const _0xae002e=['rangeType','Edit','_threadCommentModel','length','createTimestamp','add','saveCommentToSnapshot','626634IrteRB','user','609580BDEDzc','content','customRanges','_injector','commentUpdate$','body','defineProperty','Delete','/add','dataSource','120345wrFJVH','getMemberID','addUser','size','resolveComment','reply','getOwnPropertyDescriptor','syncUpdateMutationToColla','_configService','UNRECOGNIZED','_threadCommentDataSourceService','getCurrentUser','_threadCommentDataSource','parentId','error','/solved','get','userID','_commentService','find','Unknown','type','personId','root','rangeId','/edit','_config','_userService','6369368nKeBCi','map','forEach','format','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','listComments','Add','symbol','users','Solve','2sPHxJD','disposeWithMe','YYYY/MM/DD\x20HH:mm','456211NgLeBC','comment','onStarting','pipe','replyId','56bRDyRk','Solved','_httpService','onReady','code','requireSession','threadId','resolved','updateComment','payload','2466475oiHNaA','addComment','_sessionService','userId','/reply','post','solved','filter','replies','/universer-api/user/list','values','Reply','unitId','OpenOrReOpen','_initDataSource','_initUserSync','/universer-api/comment/unit/','stringify','4912188hPPpEn','subscribe','pluginName','parse','COMMENT'];_0x16a6=function(){return _0xae002e;};return _0x16a6();}S=V([p(0x0,_0x1820ac(_0x2529c2)),p(0x1,_0x1820ac(_0x545f27)),p(0x2,_0x1820ac(_0x164e15)),p(0x3,_0x1820ac(_0x4bcb98))],S);const z='thread-comment-data-source.config',M={};var k=Object[_0x4b7626(0x1f2)],Q=(_0x2bf61a,_0x10dbdf,_0x20060d,_0x28cf8d)=>{const _0x50b607=_0x4b7626;for(var _0x4b93b1=_0x28cf8d>0x1?void 0x0:_0x28cf8d?k(_0x10dbdf,_0x20060d):_0x10dbdf,_0x49d0b1=_0x2bf61a[_0x50b607(0x1dc)]-0x1,_0x3fd1c4;_0x49d0b1>=0x0;_0x49d0b1--)(_0x3fd1c4=_0x2bf61a[_0x49d0b1])&&(_0x4b93b1=_0x3fd1c4(_0x4b93b1)||_0x4b93b1);return _0x4b93b1;},_=(_0x2fd021,_0x1dbdc0)=>(_0x5b129a,_0x1892e9)=>_0x1dbdc0(_0x5b129a,_0x1892e9,_0x2fd021);function X(_0x52db83,_0x2ce1fd){const _0x15734e=_0x4b7626,_0x3ae9eb=_0x52db83[_0x15734e(0x1ca)][0x0];return{..._0x2ce1fd,'id':_0x3ae9eb[_0x15734e(0x219)],'resolved':_0x52db83[_0x15734e(0x22a)]===0x1,'dT':D(_0x3ae9eb['createTimestamp']),'personId':_0x3ae9eb[_0x15734e(0x227)],'threadId':_0x3ae9eb[_0x15734e(0x220)]};}function ee(_0xa4dfa4,_0x2f4b5c,_0x53b562){const _0x10c849=_0x4b7626;var _0x57be1e,_0x788edc;if(((_0x788edc=(_0x57be1e=_0xa4dfa4==null?void 0x0:_0xa4dfa4[_0x10c849(0x1ca)])==null?void 0x0:_0x57be1e[_0x10c849(0x1dc)])!=null?_0x788edc:0x0)>0x0){const _0x19f506=(_0x251a1a,_0x5d4d83)=>({'id':_0x251a1a[_0x10c849(0x219)],'threadId':_0x251a1a[_0x10c849(0x220)],'dT':D(_0x251a1a['createTimestamp']),'personId':_0x251a1a['userId'],'resolved':_0xa4dfa4[_0x10c849(0x22a)]===I['Solved'],'unitId':_0x2f4b5c,'subUnitId':_0x53b562,'text':JSON[_0x10c849(0x1d7)](_0x251a1a['content']),'parentId':_0x5d4d83}),_0x3e697c=_0x19f506(_0xa4dfa4['replies'][0x0]);return{..._0x3e697c,'children':_0xa4dfa4[_0x10c849(0x1ca)]['slice'](0x1)[_0x10c849(0x209)](_0x3b1447=>_0x19f506(_0x3b1447,_0x3e697c['id']))};}return null;}let f=class{constructor(_0x350a9b,_0x5826ba,_0x5a16e5,_0x5ba7e8){const _0x53d8f7=_0x4b7626;this[_0x53d8f7(0x21c)]=_0x350a9b,this[_0x53d8f7(0x207)]=_0x5826ba,this[_0x53d8f7(0x226)]=_0x5a16e5,this[_0x53d8f7(0x1e5)]=_0x5ba7e8;}async[_0x4b7626(0x225)](_0x37d131){const _0x7bdec8=_0x4b7626;var _0x5d4451,_0x26b6d3;const {parentId:_0x381fe8,unitId:_0x16fa7e,text:_0x5341ea,threadId:_0x49e562}=_0x37d131,_0x4c41eb=(_0x26b6d3=(_0x5d4451=_0x5341ea[_0x7bdec8(0x1e4)])==null?void 0x0:_0x5d4451[_0x7bdec8(0x1c9)](_0x6a3a8d=>_0x6a3a8d[_0x7bdec8(0x1d9)]===_0x13fedf[_0x7bdec8(0x1d8)])[_0x7bdec8(0x209)](_0x56c7f9=>_0x56c7f9[_0x7bdec8(0x204)]))!=null?_0x26b6d3:[],_0x370fec=JSON[_0x7bdec8(0x1d3)](_0x5341ea),_0x143763=(await this[_0x7bdec8(0x226)][_0x7bdec8(0x21f)](_0x16fa7e))[_0x7bdec8(0x1ed)]();if(_0x381fe8){const _0x3a6515={'memberId':_0x143763,'unitId':_0x16fa7e,'content':_0x370fec,'mention':_0x4c41eb,'threadId':_0x49e562},_0x5e6a4e=(await this[_0x7bdec8(0x21c)][_0x7bdec8(0x229)](_0x7bdec8(0x1d2)+_0x16fa7e+_0x7bdec8(0x228),{'body':_0x3a6515}))[_0x7bdec8(0x1e7)][_0x7bdec8(0x1f1)];return{..._0x37d131,'id':_0x5e6a4e[_0x7bdec8(0x219)],'dT':_0xfc58d6(+_0x5e6a4e[_0x7bdec8(0x1dd)])[_0x7bdec8(0x20b)](_0x7bdec8(0x214)),'personId':_0x5e6a4e[_0x7bdec8(0x227)]};}else{const _0x3320d8={'memberId':_0x143763,'unitId':_0x16fa7e,'content':_0x370fec,'mention':_0x4c41eb},_0x369d1d=await this[_0x7bdec8(0x21c)][_0x7bdec8(0x229)](_0x7bdec8(0x1d2)+_0x16fa7e+_0x7bdec8(0x1ea),{'body':_0x3320d8});return X(_0x369d1d[_0x7bdec8(0x1e7)][_0x7bdec8(0x216)],_0x37d131);}}async[_0x4b7626(0x222)](_0xc30a5c){const _0x4bf881=_0x4b7626;var _0x59252e,_0x21dd53;const {text:_0x293230,unitId:_0x55a638}=_0xc30a5c,_0x15f32a=(_0x21dd53=(_0x59252e=_0x293230[_0x4bf881(0x1e4)])==null?void 0x0:_0x59252e[_0x4bf881(0x1c9)](_0x9e0cf0=>_0x9e0cf0[_0x4bf881(0x1d9)]===_0x13fedf[_0x4bf881(0x1d8)])[_0x4bf881(0x209)](_0x141c6d=>_0x141c6d['rangeId']))!=null?_0x21dd53:[],_0x538d99=JSON[_0x4bf881(0x1d3)](_0x293230),_0xb4cca3=_0xc30a5c[_0x4bf881(0x220)],_0x316f54=_0xc30a5c['id'],_0xece44d={'memberId':(await this[_0x4bf881(0x226)][_0x4bf881(0x21f)](_0x55a638))['getMemberID'](),'unitId':_0x55a638,'threadId':_0xb4cca3,'mention':_0x15f32a,'content':_0x538d99,'replyId':_0x316f54},_0x58392e=await this[_0x4bf881(0x21c)][_0x4bf881(0x229)](_0x4bf881(0x1d2)+_0x55a638+_0x4bf881(0x205),{'body':_0xece44d});return!_0x58392e[_0x4bf881(0x1e7)][_0x4bf881(0x1fa)]||_0x58392e['body'][_0x4bf881(0x1fa)][_0x4bf881(0x21e)]===0x1;}async[_0x4b7626(0x1f0)](_0x5a6a65){const _0x37ab32=_0x4b7626,{unitId:_0x13f311}=_0x5a6a65,_0x254c16=_0x5a6a65[_0x37ab32(0x220)],_0x5cc945={'memberId':this['_userService'][_0x37ab32(0x1f7)]()[_0x37ab32(0x1fd)],'unitId':_0x13f311,'threadId':_0x254c16,'solved':_0x5a6a65[_0x37ab32(0x221)]?I[_0x37ab32(0x21b)]:I[_0x37ab32(0x1cf)]},_0x54d624=await this[_0x37ab32(0x21c)][_0x37ab32(0x229)]('/universer-api/comment/unit/'+_0x13f311+_0x37ab32(0x1fb),{'body':_0x5cc945});return!_0x54d624['body']['error']||_0x54d624[_0x37ab32(0x1e7)][_0x37ab32(0x1fa)][_0x37ab32(0x21e)]===0x1;}async['deleteComment'](_0x4091cb,_0x369ecc,_0x5c438b,_0x1ffd6c){const _0x21811f=_0x4b7626,_0x176da9={'memberId':(await this['_sessionService'][_0x21811f(0x21f)](_0x4091cb))[_0x21811f(0x1ed)](),'threadId':_0x5c438b,'replyId':_0x1ffd6c,'unitId':_0x4091cb},_0x435232=await this['_httpService'][_0x21811f(0x229)](_0x21811f(0x1d2)+_0x4091cb+'/delete',{'body':_0x176da9});return!_0x435232[_0x21811f(0x1e7)][_0x21811f(0x1fa)]||_0x435232[_0x21811f(0x1e7)][_0x21811f(0x1fa)][_0x21811f(0x21e)]===0x1;}async[_0x4b7626(0x20d)](_0x3d0248,_0x1981f6,_0x3e57f5){const _0x26c12d=_0x4b7626,_0x579277={'unitId':_0x3d0248,'threadId':_0x3e57f5},_0x529404=await this[_0x26c12d(0x21c)]['post'](_0x26c12d(0x1d2)+_0x3d0248+'/list',{'body':_0x579277}),_0xb12dde=_0x3e57f5[_0x26c12d(0x209)](_0x1ab353=>ee(_0x529404[_0x26c12d(0x1e7)]['comments'][_0x1ab353],_0x3d0248,_0x1981f6))[_0x26c12d(0x1c9)](Boolean);return Object[_0x26c12d(0x1cc)](_0x529404[_0x26c12d(0x1e7)][_0x26c12d(0x210)])['forEach'](_0x2e7b55=>{const _0x508580=_0x26c12d;this[_0x508580(0x207)][_0x508580(0x1ee)](_0x2e7b55);}),_0xb12dde;}[_0x4b7626(0x1df)](_0x54ec3e){const _0x24bfad=_0x4b7626;return{'id':_0x54ec3e['id'],'threadId':_0x54ec3e[_0x24bfad(0x220)],'ref':_0x54ec3e['ref']};}};f=Q([_(0x0,_0x1820ac(_0x11101f)),_(0x1,_0x1820ac(_0x164e15)),_(0x2,_0x1820ac(_0x5c999b)),_(0x3,_0x1820ac(_0x4bcb98))],f);var re=Object[_0x4b7626(0x1f2)],te=(_0x1b6d49,_0x51a546,_0x47bcc9,_0x565eae)=>{const _0x14f48d=_0x4b7626;for(var _0x39973a=_0x565eae>0x1?void 0x0:_0x565eae?re(_0x51a546,_0x47bcc9):_0x51a546,_0x13c70c=_0x1b6d49[_0x14f48d(0x1dc)]-0x1,_0x321e62;_0x13c70c>=0x0;_0x13c70c--)(_0x321e62=_0x1b6d49[_0x13c70c])&&(_0x39973a=_0x321e62(_0x39973a)||_0x39973a);return _0x39973a;},N=(_0x2bfd66,_0x2dea7b)=>(_0x3f97a3,_0x1f76d9)=>_0x2dea7b(_0x3f97a3,_0x1f76d9,_0x2bfd66);let g=class extends _0x2e6166{constructor(_0x39ca7f,_0x4a58d1){const _0x5eeeda=_0x4b7626;super(),this[_0x5eeeda(0x1f6)]=_0x39ca7f,this[_0x5eeeda(0x1f8)]=_0x4a58d1,this[_0x5eeeda(0x1d0)]();}[_0x4b7626(0x1d0)](){const _0x406515=_0x4b7626;this[_0x406515(0x1f6)][_0x406515(0x1eb)]=this['_threadCommentDataSource'],this['_threadCommentDataSourceService'][_0x406515(0x1f3)]=!0x1;}};g=te([N(0x0,_0x1b5895),N(0x1,_0x1820ac(f))],g);var se=Object[_0x4b7626(0x1e8)],oe=Object['getOwnPropertyDescriptor'],ne=(_0x133e14,_0x5d8c00,_0xcdb738)=>_0x5d8c00 in _0x133e14?se(_0x133e14,_0x5d8c00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcdb738}):_0x133e14[_0x5d8c00]=_0xcdb738,ie=(_0x428a92,_0x256d5b,_0x58c53c,_0x46b1e7)=>{const _0x1864b9=_0x4b7626;for(var _0x3e5a8e=_0x46b1e7>0x1?void 0x0:_0x46b1e7?oe(_0x256d5b,_0x58c53c):_0x256d5b,_0x231da6=_0x428a92[_0x1864b9(0x1dc)]-0x1,_0x56dcce;_0x231da6>=0x0;_0x231da6--)(_0x56dcce=_0x428a92[_0x231da6])&&(_0x3e5a8e=_0x56dcce(_0x3e5a8e)||_0x3e5a8e);return _0x3e5a8e;},w=(_0x3a9755,_0x1a22e7)=>(_0x1d9a23,_0x443f2c)=>_0x1a22e7(_0x1d9a23,_0x443f2c,_0x3a9755),$=(_0x2b05ab,_0x4751fa,_0x4818f4)=>ne(_0x2b05ab,typeof _0x4751fa!=_0x4b7626(0x20f)?_0x4751fa+'':_0x4751fa,_0x4818f4);function _0x2c2f(_0x41995f,_0x568760){const _0x16a6d9=_0x16a6();return _0x2c2f=function(_0x2c2fee,_0x464aff){_0x2c2fee=_0x2c2fee-0x1c9;let _0x2aab00=_0x16a6d9[_0x2c2fee];return _0x2aab00;},_0x2c2f(_0x41995f,_0x568760);}let b=class extends _0x53cea8{constructor(_0xfeb84c=M,_0x40381e,_0x36610e){const _0xcd7a76=_0x4b7626;super(),this['_config']=_0xfeb84c,this[_0xcd7a76(0x1e5)]=_0x40381e,this[_0xcd7a76(0x1f4)]=_0x36610e;const {..._0x35147f}=_0x23c1a1({},M,this[_0xcd7a76(0x206)]);this[_0xcd7a76(0x1f4)]['setConfig'](z,_0x35147f);}[_0x4b7626(0x217)](){const _0x36f2f6=_0x4b7626;[[f],[g],[S]][_0x36f2f6(0x20a)](_0x4cc6e9=>{const _0x3880f7=_0x36f2f6;this[_0x3880f7(0x1e5)][_0x3880f7(0x1de)](_0x4cc6e9);});}[_0x4b7626(0x21d)](){const _0x2307c9=_0x4b7626;this[_0x2307c9(0x1e5)]['get'](g),this['_injector'][_0x2307c9(0x1fc)](S);}};$(b,_0x4b7626(0x1d6),W),$(b,_0x4b7626(0x201),_0x3dc0f3['UNIVER_UNKNOWN']),b=ie([_0xa05568(_0x2fef6f,_0x53c880,_0x3306fe),w(0x1,_0x1820ac(_0x4bcb98)),w(0x2,_0x3e734a)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
|
1
|
+
const _0x8eb16d=_0xa644;(function(_0x26f565,_0x4a5003){const _0x54cbc0=_0xa644,_0x11892c=_0x26f565();while(!![]){try{const _0x4e8a81=-parseInt(_0x54cbc0(0x181))/0x1*(parseInt(_0x54cbc0(0x1c4))/0x2)+-parseInt(_0x54cbc0(0x19a))/0x3*(-parseInt(_0x54cbc0(0x16b))/0x4)+parseInt(_0x54cbc0(0x176))/0x5+parseInt(_0x54cbc0(0x16e))/0x6*(-parseInt(_0x54cbc0(0x1a9))/0x7)+parseInt(_0x54cbc0(0x194))/0x8+-parseInt(_0x54cbc0(0x177))/0x9+parseInt(_0x54cbc0(0x1a7))/0xa;if(_0x4e8a81===_0x4a5003)break;else _0x11892c['push'](_0x11892c['shift']());}catch(_0x47526e){_0x11892c['push'](_0x11892c['shift']());}}}(_0x118a,0x2f9ea));import{CommentService as _0x1ccc3b,CollaborationSessionService as _0x3d3196,UniverCollaborationClientPlugin as _0x2caa97}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0xe51017}from'@univerjs-pro/license';import{dayjs as _0x5eb8ae,UserManagerService as _0x4ba4f5,Inject as _0xdc24c4,Injector as _0x446729,Disposable as _0x4f817d,CustomRangeType as _0x19605a,UniverInstanceType as _0x20c5bd,DependentOn as _0x5aa5bd,IConfigService as _0x17f2a0,Plugin as _0x1d9dc9,merge as _0x147312}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x24bb62}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x5c51a6,IThreadCommentDataSourceService as _0x1004f0}from'@univerjs/thread-comment';import{bufferTime as _0x200bd8}from'rxjs';import{HTTPService as _0x40e085}from'@univerjs/network';const W=_0x8eb16d(0x180);var I=(_0x4ed037=>(_0x4ed037[_0x4ed037[_0x8eb16d(0x1a2)]=0x0]='OpenOrReOpen',_0x4ed037[_0x4ed037[_0x8eb16d(0x1ce)]=0x1]=_0x8eb16d(0x1ce),_0x4ed037[_0x4ed037[_0x8eb16d(0x191)]=-0x1]='UNRECOGNIZED',_0x4ed037))(I||{}),v=(_0x4bf901=>(_0x4bf901[_0x4bf901[_0x8eb16d(0x192)]=0x0]=_0x8eb16d(0x192),_0x4bf901[_0x4bf901[_0x8eb16d(0x17e)]=0x1]=_0x8eb16d(0x17e),_0x4bf901[_0x4bf901['Reply']=0x2]='Reply',_0x4bf901[_0x4bf901[_0x8eb16d(0x17d)]=0x3]=_0x8eb16d(0x17d),_0x4bf901[_0x4bf901['Delete']=0x4]=_0x8eb16d(0x1b7),_0x4bf901[_0x4bf901[_0x8eb16d(0x197)]=0x5]=_0x8eb16d(0x197),_0x4bf901[_0x4bf901[_0x8eb16d(0x191)]=-0x1]=_0x8eb16d(0x191),_0x4bf901))(v||{});function _0x118a(){const _0x46d758=['6329fRKInW','syncUpdateMutationToColla','solved','parentId','customRanges','getMemberID','get','ref','saveCommentToSnapshot','_initUserSync','error','replyId','COMMENT','size','_threadCommentDataSource','length','UNRECOGNIZED','Unknown','userId','1711568NOOgTA','pipe','dataSource','Solve','getUser','content','3RcYeMr','_init','commentUpdate$','subscribe','/add','_config','setConfig','updateComment','OpenOrReOpen','user','getComment','symbol','add','4622420jpGjrG','body','1059730qnvOdn','payload','type','_httpService','createTimestamp','onStarting','userID','filter','root','YYYY/MM/DD\x20HH:mm','_threadCommentDataSourceService','_initDataSource','unitId','find','Delete','deleteComment','pluginName','reply','parse','Reply','defineProperty','_sessionService','_injector','UNIVER_UNKNOWN','post','/delete','/universer-api/user/list','56oJQoaw','threadId','/universer-api/comment/unit/','/list','forEach','listComments','users','_userService','map','values','Solved','replies','116868tYUBEI','_threadCommentModel','getCurrentUser','6dqmWOu','resolveComment','rangeId','addComment','_commentService','stringify','/solved','addUser','1028480wZfnXW','3487041OtjmXa','requireSession','getOwnPropertyDescriptor','getUnit','disposeWithMe','code','Edit','Add','onReady','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN'];_0x118a=function(){return _0x46d758;};return _0x118a();}const D=_0x142eb4=>_0x5eb8ae(new Date(+_0x142eb4))['format'](_0x8eb16d(0x1b2)),B=async(_0x342391,_0x1ee11b)=>{const _0x3a57ee=_0x8eb16d,_0x30d120=_0x342391[_0x3a57ee(0x187)](_0x4ba4f5),_0xa4e10e=_0x342391[_0x3a57ee(0x187)](_0x40e085);_0x1ee11b[_0x3a57ee(0x1c8)](_0xf2ed1d=>{const _0x25ad56=_0x3a57ee;_0x30d120[_0x25ad56(0x198)](_0xf2ed1d)&&_0x1ee11b['delete'](_0xf2ed1d);}),_0x1ee11b[_0x3a57ee(0x18e)]&&(await _0xa4e10e[_0x3a57ee(0x187)](_0x3a57ee(0x1c3),{'params':{'userIDs':[..._0x1ee11b]}}))[_0x3a57ee(0x1a8)][_0x3a57ee(0x1ca)]['forEach'](_0x3019f4=>{const _0x281dd2=_0x3a57ee;_0x3019f4&&_0x30d120[_0x281dd2(0x175)](_0x3019f4);});};var K=Object[_0x8eb16d(0x179)],V=(_0x3c5927,_0x5460f6,_0x354784,_0x17d86c)=>{for(var _0x58200e=_0x17d86c>0x1?void 0x0:_0x17d86c?K(_0x5460f6,_0x354784):_0x5460f6,_0x5be380=_0x3c5927['length']-0x1,_0x4f4b0b;_0x5be380>=0x0;_0x5be380--)(_0x4f4b0b=_0x3c5927[_0x5be380])&&(_0x58200e=_0x4f4b0b(_0x58200e)||_0x58200e);return _0x58200e;},p=(_0x404226,_0x10b535)=>(_0x5efc4f,_0x5a6ec1)=>_0x10b535(_0x5efc4f,_0x5a6ec1,_0x404226);let S=class extends _0x4f817d{constructor(_0x3cb562,_0x2ffe30,_0x1dd3ff,_0x57a9dc){const _0x206d68=_0x8eb16d;super(),this['_commentService']=_0x3cb562,this[_0x206d68(0x16c)]=_0x2ffe30,this['_userService']=_0x1dd3ff,this['_injector']=_0x57a9dc,this[_0x206d68(0x19b)](),this[_0x206d68(0x18a)]();}[_0x8eb16d(0x18a)](){const _0x389b82=_0x8eb16d;this[_0x389b82(0x17b)](this[_0x389b82(0x16c)]['commentUpdate$'][_0x389b82(0x195)](_0x200bd8(0x10))[_0x389b82(0x19d)](_0x1eff56=>{const _0x486510=_0x389b82,_0xa1cf08=new Set();_0x1eff56[_0x486510(0x1c8)](_0x377008=>{const _0x1c4306=_0x486510;switch(_0x377008[_0x1c4306(0x1ab)]){case _0x1c4306(0x1a6):{const _0x5e5b80=_0x377008[_0x1c4306(0x1aa)]['personId'];_0xa1cf08[_0x1c4306(0x1a6)](_0x5e5b80);break;}}}),B(this[_0x486510(0x1bf)],_0xa1cf08);}));}['_init'](){const _0x4cb971=_0x8eb16d;this['disposeWithMe'](this[_0x4cb971(0x172)][_0x4cb971(0x19c)][_0x4cb971(0x19d)](async _0x80891f=>{const _0x27846d=_0x4cb971;var _0x2c0708,_0x16aaed,_0x1dbd4f,_0x479cc1;const _0xe01919=(_0x2c0708=this[_0x27846d(0x16c)][_0x27846d(0x17a)](_0x80891f['unitId'])[_0x27846d(0x1b6)](_0x17b8ca=>_0x17b8ca[_0x27846d(0x1c5)]===_0x80891f[_0x27846d(0x1c5)]))==null?void 0x0:_0x2c0708[_0x27846d(0x1b1)];if(!_0xe01919)return;const {unitId:_0x24c545,subUnitId:_0x506b4d}=_0xe01919;switch(_0x80891f['user']&&this[_0x27846d(0x1cb)]['addUser'](_0x80891f[_0x27846d(0x1a3)]),_0x80891f[_0x27846d(0x1ab)]){case v[_0x27846d(0x17e)]:break;case v[_0x27846d(0x1bc)]:{this[_0x27846d(0x16c)][_0x27846d(0x171)](_0x24c545,_0x506b4d,{'unitId':_0x24c545,'subUnitId':_0x506b4d,'ref':'','id':_0x80891f[_0x27846d(0x18c)],'dT':D(+_0x80891f[_0x27846d(0x1ad)]),'threadId':_0x80891f[_0x27846d(0x1c5)],'personId':(_0x1dbd4f=(_0x16aaed=_0x80891f[_0x27846d(0x1a3)])==null?void 0x0:_0x16aaed['userID'])!=null?_0x1dbd4f:_0x80891f['userId'],'text':JSON[_0x27846d(0x1bb)](_0x80891f['content']),'parentId':_0xe01919['id']});break;}case v[_0x27846d(0x1b7)]:{const _0x121518=this['_threadCommentModel'][_0x27846d(0x1a4)](_0x24c545,_0x506b4d,_0x80891f[_0x27846d(0x18c)]);_0x121518&&_0x121518[_0x27846d(0x184)]&&this[_0x27846d(0x16c)][_0x27846d(0x1b8)](_0x24c545,_0x506b4d,_0x80891f[_0x27846d(0x18c)]);break;}case v[_0x27846d(0x17d)]:{this[_0x27846d(0x16c)][_0x27846d(0x1a1)](_0x24c545,_0x506b4d,{'commentId':_0x80891f[_0x27846d(0x18c)],'text':JSON['parse'](_0x80891f[_0x27846d(0x199)])});break;}case v[_0x27846d(0x197)]:{const _0x52d86e=(_0x479cc1=this[_0x27846d(0x16c)]['getUnit'](_0x80891f[_0x27846d(0x1b5)])[_0x27846d(0x1b6)](_0x3f9878=>_0x3f9878[_0x27846d(0x1c5)]===_0x80891f[_0x27846d(0x1c5)]))==null?void 0x0:_0x479cc1[_0x27846d(0x1b1)];_0x52d86e&&this[_0x27846d(0x16c)]['resolveComment'](_0x24c545,_0x506b4d,_0x52d86e['id'],_0x80891f[_0x27846d(0x183)]===I[_0x27846d(0x1ce)]);break;}}}));}};S=V([p(0x0,_0xdc24c4(_0x1ccc3b)),p(0x1,_0xdc24c4(_0x5c51a6)),p(0x2,_0xdc24c4(_0x4ba4f5)),p(0x3,_0xdc24c4(_0x446729))],S);const z='thread-comment-data-source.config',M={};var k=Object['getOwnPropertyDescriptor'],Q=(_0x17c693,_0x4d23a6,_0x2984df,_0xa31c13)=>{for(var _0xdc3e2d=_0xa31c13>0x1?void 0x0:_0xa31c13?k(_0x4d23a6,_0x2984df):_0x4d23a6,_0x36cdd9=_0x17c693['length']-0x1,_0x54f304;_0x36cdd9>=0x0;_0x36cdd9--)(_0x54f304=_0x17c693[_0x36cdd9])&&(_0xdc3e2d=_0x54f304(_0xdc3e2d)||_0xdc3e2d);return _0xdc3e2d;},_=(_0xe4c82f,_0x57f10e)=>(_0x16a164,_0x55a361)=>_0x57f10e(_0x16a164,_0x55a361,_0xe4c82f);function X(_0x5d0474,_0x1f2072){const _0x1b1af5=_0x8eb16d,_0x4ec919=_0x5d0474[_0x1b1af5(0x16a)][0x0];return{..._0x1f2072,'id':_0x4ec919['replyId'],'resolved':_0x5d0474[_0x1b1af5(0x183)]===0x1,'dT':D(_0x4ec919[_0x1b1af5(0x1ad)]),'personId':_0x4ec919['userId'],'threadId':_0x4ec919[_0x1b1af5(0x1c5)]};}function ee(_0x1dc058,_0x1d33a1,_0x4a29b8){const _0x3e4429=_0x8eb16d;var _0x16905e,_0x380e3e;if(((_0x380e3e=(_0x16905e=_0x1dc058==null?void 0x0:_0x1dc058[_0x3e4429(0x16a)])==null?void 0x0:_0x16905e[_0x3e4429(0x190)])!=null?_0x380e3e:0x0)>0x0){const _0x12a6fc=(_0x26be21,_0x102ff0)=>({'id':_0x26be21[_0x3e4429(0x18c)],'threadId':_0x26be21[_0x3e4429(0x1c5)],'dT':D(_0x26be21['createTimestamp']),'personId':_0x26be21[_0x3e4429(0x193)],'resolved':_0x1dc058[_0x3e4429(0x183)]===I['Solved'],'unitId':_0x1d33a1,'subUnitId':_0x4a29b8,'text':JSON[_0x3e4429(0x1bb)](_0x26be21[_0x3e4429(0x199)]),'parentId':_0x102ff0}),_0xa1c339=_0x12a6fc(_0x1dc058[_0x3e4429(0x16a)][0x0]);return{..._0xa1c339,'children':_0x1dc058[_0x3e4429(0x16a)]['slice'](0x1)['map'](_0x4353c8=>_0x12a6fc(_0x4353c8,_0xa1c339['id']))};}return null;}let f=class{constructor(_0xd527d1,_0x7b2f99,_0x5854ac,_0x43c529){const _0x16cda7=_0x8eb16d;this[_0x16cda7(0x1ac)]=_0xd527d1,this['_userService']=_0x7b2f99,this[_0x16cda7(0x1be)]=_0x5854ac,this[_0x16cda7(0x1bf)]=_0x43c529;}async['addComment'](_0x4e7085){const _0x3cabd4=_0x8eb16d;var _0x3d1b7c,_0x559fb9;const {parentId:_0x2ba49e,unitId:_0x460949,text:_0x1deed3,threadId:_0x96e33}=_0x4e7085,_0x3a2114=(_0x559fb9=(_0x3d1b7c=_0x1deed3[_0x3cabd4(0x185)])==null?void 0x0:_0x3d1b7c['filter'](_0x3cee94=>_0x3cee94['rangeType']===_0x19605a[_0x3cabd4(0x18d)])[_0x3cabd4(0x1cc)](_0x570fe8=>_0x570fe8['rangeId']))!=null?_0x559fb9:[],_0x4e9bb1=JSON[_0x3cabd4(0x173)](_0x1deed3),_0xaf8c4=(await this['_sessionService'][_0x3cabd4(0x178)](_0x460949))[_0x3cabd4(0x186)]();if(_0x2ba49e){const _0x3c9c5e={'memberId':_0xaf8c4,'unitId':_0x460949,'content':_0x4e9bb1,'mention':_0x3a2114,'threadId':_0x96e33},_0x7d3202=(await this[_0x3cabd4(0x1ac)][_0x3cabd4(0x1c1)](_0x3cabd4(0x1c6)+_0x460949+'/reply',{'body':_0x3c9c5e}))['body'][_0x3cabd4(0x1ba)];return{..._0x4e7085,'id':_0x7d3202[_0x3cabd4(0x18c)],'dT':_0x5eb8ae(+_0x7d3202[_0x3cabd4(0x1ad)])['format'](_0x3cabd4(0x1b2)),'personId':_0x7d3202['userId']};}else{const _0x4f2575={'memberId':_0xaf8c4,'unitId':_0x460949,'content':_0x4e9bb1,'mention':_0x3a2114},_0x5d5519=await this[_0x3cabd4(0x1ac)]['post'](_0x3cabd4(0x1c6)+_0x460949+_0x3cabd4(0x19e),{'body':_0x4f2575});return X(_0x5d5519[_0x3cabd4(0x1a8)]['comment'],_0x4e7085);}}async[_0x8eb16d(0x1a1)](_0x1d395f){const _0x31ebd5=_0x8eb16d;var _0x68d19,_0x45e08e;const {text:_0x16f826,unitId:_0x3aa872}=_0x1d395f,_0x47db8e=(_0x45e08e=(_0x68d19=_0x16f826[_0x31ebd5(0x185)])==null?void 0x0:_0x68d19[_0x31ebd5(0x1b0)](_0x28b20f=>_0x28b20f['rangeType']===_0x19605a[_0x31ebd5(0x18d)])[_0x31ebd5(0x1cc)](_0x31cdbd=>_0x31cdbd[_0x31ebd5(0x170)]))!=null?_0x45e08e:[],_0x65d2a2=JSON[_0x31ebd5(0x173)](_0x16f826),_0x2bdbe0=_0x1d395f[_0x31ebd5(0x1c5)],_0xfbdfbc=_0x1d395f['id'],_0x51b782={'memberId':(await this[_0x31ebd5(0x1be)][_0x31ebd5(0x178)](_0x3aa872))[_0x31ebd5(0x186)](),'unitId':_0x3aa872,'threadId':_0x2bdbe0,'mention':_0x47db8e,'content':_0x65d2a2,'replyId':_0xfbdfbc},_0x42177c=await this[_0x31ebd5(0x1ac)][_0x31ebd5(0x1c1)](_0x31ebd5(0x1c6)+_0x3aa872+'/edit',{'body':_0x51b782});return!_0x42177c[_0x31ebd5(0x1a8)]['error']||_0x42177c[_0x31ebd5(0x1a8)][_0x31ebd5(0x18b)][_0x31ebd5(0x17c)]===0x1;}async[_0x8eb16d(0x16f)](_0xc6e78){const _0x2cf62b=_0x8eb16d,{unitId:_0x1094dc}=_0xc6e78,_0x3577a6=_0xc6e78[_0x2cf62b(0x1c5)],_0x52d09a={'memberId':this['_userService'][_0x2cf62b(0x16d)]()[_0x2cf62b(0x1af)],'unitId':_0x1094dc,'threadId':_0x3577a6,'solved':_0xc6e78['resolved']?I['Solved']:I[_0x2cf62b(0x1a2)]},_0x4e9c2e=await this[_0x2cf62b(0x1ac)]['post']('/universer-api/comment/unit/'+_0x1094dc+_0x2cf62b(0x174),{'body':_0x52d09a});return!_0x4e9c2e[_0x2cf62b(0x1a8)][_0x2cf62b(0x18b)]||_0x4e9c2e['body'][_0x2cf62b(0x18b)][_0x2cf62b(0x17c)]===0x1;}async[_0x8eb16d(0x1b8)](_0x33b212,_0x495a01,_0x267a16,_0x418271){const _0x8964af=_0x8eb16d,_0x22d066={'memberId':(await this[_0x8964af(0x1be)]['requireSession'](_0x33b212))[_0x8964af(0x186)](),'threadId':_0x267a16,'replyId':_0x418271,'unitId':_0x33b212},_0x1d20bb=await this[_0x8964af(0x1ac)]['post']('/universer-api/comment/unit/'+_0x33b212+_0x8964af(0x1c2),{'body':_0x22d066});return!_0x1d20bb[_0x8964af(0x1a8)][_0x8964af(0x18b)]||_0x1d20bb[_0x8964af(0x1a8)][_0x8964af(0x18b)][_0x8964af(0x17c)]===0x1;}async[_0x8eb16d(0x1c9)](_0x27fe30,_0x4c6d96,_0xfce698){const _0x323c5f=_0x8eb16d,_0x2f967c={'unitId':_0x27fe30,'threadId':_0xfce698},_0xbcffa5=await this[_0x323c5f(0x1ac)][_0x323c5f(0x1c1)](_0x323c5f(0x1c6)+_0x27fe30+_0x323c5f(0x1c7),{'body':_0x2f967c}),_0x245734=_0xfce698['map'](_0x1092d9=>ee(_0xbcffa5[_0x323c5f(0x1a8)]['comments'][_0x1092d9],_0x27fe30,_0x4c6d96))[_0x323c5f(0x1b0)](Boolean);return Object[_0x323c5f(0x1cd)](_0xbcffa5[_0x323c5f(0x1a8)][_0x323c5f(0x1ca)])[_0x323c5f(0x1c8)](_0x1d3b4f=>{const _0x263c53=_0x323c5f;this['_userService'][_0x263c53(0x175)](_0x1d3b4f);}),_0x245734;}[_0x8eb16d(0x189)](_0x471f37){const _0xa6d548=_0x8eb16d;return{'id':_0x471f37['id'],'threadId':_0x471f37['threadId'],'ref':_0x471f37[_0xa6d548(0x188)]};}};f=Q([_(0x0,_0xdc24c4(_0x40e085)),_(0x1,_0xdc24c4(_0x4ba4f5)),_(0x2,_0xdc24c4(_0x3d3196)),_(0x3,_0xdc24c4(_0x446729))],f);function _0xa644(_0x4637c9,_0x265c74){const _0x118a90=_0x118a();return _0xa644=function(_0xa64400,_0x274b13){_0xa64400=_0xa64400-0x16a;let _0x3234dd=_0x118a90[_0xa64400];return _0x3234dd;},_0xa644(_0x4637c9,_0x265c74);}var re=Object[_0x8eb16d(0x179)],te=(_0x303b71,_0x52317d,_0x3de470,_0x264898)=>{for(var _0x2d7bfe=_0x264898>0x1?void 0x0:_0x264898?re(_0x52317d,_0x3de470):_0x52317d,_0x58bd3d=_0x303b71['length']-0x1,_0x1a17c3;_0x58bd3d>=0x0;_0x58bd3d--)(_0x1a17c3=_0x303b71[_0x58bd3d])&&(_0x2d7bfe=_0x1a17c3(_0x2d7bfe)||_0x2d7bfe);return _0x2d7bfe;},N=(_0x1ba854,_0x260363)=>(_0x42d615,_0x95e093)=>_0x260363(_0x42d615,_0x95e093,_0x1ba854);let g=class extends _0x4f817d{constructor(_0x248f39,_0x16617b){const _0x2dac32=_0x8eb16d;super(),this[_0x2dac32(0x1b3)]=_0x248f39,this['_threadCommentDataSource']=_0x16617b,this[_0x2dac32(0x1b4)]();}[_0x8eb16d(0x1b4)](){const _0x52ad67=_0x8eb16d;this['_threadCommentDataSourceService'][_0x52ad67(0x196)]=this[_0x52ad67(0x18f)],this['_threadCommentDataSourceService'][_0x52ad67(0x182)]=!0x1;}};g=te([N(0x0,_0x1004f0),N(0x1,_0xdc24c4(f))],g);var se=Object[_0x8eb16d(0x1bd)],oe=Object['getOwnPropertyDescriptor'],ne=(_0x19bb16,_0x95b4f1,_0x3fbb49)=>_0x95b4f1 in _0x19bb16?se(_0x19bb16,_0x95b4f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fbb49}):_0x19bb16[_0x95b4f1]=_0x3fbb49,ie=(_0x3402be,_0x5b174a,_0x42d9bb,_0x28c724)=>{const _0x3c25d5=_0x8eb16d;for(var _0x48d123=_0x28c724>0x1?void 0x0:_0x28c724?oe(_0x5b174a,_0x42d9bb):_0x5b174a,_0x1b8a30=_0x3402be[_0x3c25d5(0x190)]-0x1,_0x28e325;_0x1b8a30>=0x0;_0x1b8a30--)(_0x28e325=_0x3402be[_0x1b8a30])&&(_0x48d123=_0x28e325(_0x48d123)||_0x48d123);return _0x48d123;},w=(_0x1724c1,_0x44ebcd)=>(_0x21969d,_0x194b4d)=>_0x44ebcd(_0x21969d,_0x194b4d,_0x1724c1),$=(_0x1fef6b,_0x57c003,_0x17f93f)=>ne(_0x1fef6b,typeof _0x57c003!=_0x8eb16d(0x1a5)?_0x57c003+'':_0x57c003,_0x17f93f);let b=class extends _0x1d9dc9{constructor(_0x210702=M,_0x227bab,_0x2a3f5a){const _0x3d47bc=_0x8eb16d;super(),this[_0x3d47bc(0x19f)]=_0x210702,this['_injector']=_0x227bab,this['_configService']=_0x2a3f5a;const {..._0x3fc915}=_0x147312({},M,this[_0x3d47bc(0x19f)]);this['_configService'][_0x3d47bc(0x1a0)](z,_0x3fc915);}[_0x8eb16d(0x1ae)](){const _0x46d7bd=_0x8eb16d;[[f],[g],[S]][_0x46d7bd(0x1c8)](_0xb809a5=>{const _0x4f1008=_0x46d7bd;this[_0x4f1008(0x1bf)]['add'](_0xb809a5);});}[_0x8eb16d(0x17f)](){const _0x19a14d=_0x8eb16d;this[_0x19a14d(0x1bf)][_0x19a14d(0x187)](g),this[_0x19a14d(0x1bf)][_0x19a14d(0x187)](S);}};$(b,_0x8eb16d(0x1b9),W),$(b,'type',_0x20c5bd[_0x8eb16d(0x1c0)]),b=ie([_0x5aa5bd(_0x24bb62,_0x2caa97,_0xe51017),w(0x1,_0xdc24c4(_0x446729)),w(0x2,_0x17f2a0)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x30ce(_0x3e106a,_0x29e464){const _0x3dfda2=_0x3dfd();return _0x30ce=function(_0x30cec2,_0x1cc5ff){_0x30cec2=_0x30cec2-0xac;let _0x12a9f9=_0x3dfda2[_0x30cec2];return _0x12a9f9;},_0x30ce(_0x3e106a,_0x29e464);}function _0x3dfd(){const _0x1d343f=['UniverThreadCommentDataSourcePlugin','COMMENT','935784KcYThn','UserManagerService','parse','resolveComment','get','content','listComments','thread-comment-data-source.config','pipe','forEach','Solved','defineProperty','_config','@univerjs/network','replies','Reply','type','length','stringify','Edit','error','11HUcolq','setConfig','rangeId','createTimestamp','addUser','userId','Injector','_userService','root','getUnit','UniverLicensePlugin','CommentService','_threadCommentModel','/delete','20aQRnVT','12417zsbLPs','onReady','code','user','Add','solved','/universer-api/comment/unit/','OpenOrReOpen','personId','UniverCollaborationClientPlugin','2549128ltXIBc','_configService','/solved','resolved','dayjs','4100470MNcRXg','14932luzAHM','getOwnPropertyDescriptor','UniverThreadCommentUIPlugin','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','1715WxGzMm','Inject','UniverProThreadCommentDatasource','Solve','deleteComment','_init','amd','addComment','unitId','commentUpdate$','reply','2561811NNWwtw','@univerjs/thread-comment','syncUpdateMutationToColla','@univerjs/core','dataSource','requireSession','_threadCommentDataSource','disposeWithMe','pluginName','_sessionService','getUser','exports','post','userID','slice','Module','toStringTag','add','/list','customRanges','UniverCore','subscribe','function','CustomRangeType','HTTPService','ref','threadId','symbol','YYYY/MM/DD\x20HH:mm','body','UniverProCollaborationClient','@univerjs/thread-comment-ui','/universer-api/user/list','_injector','_initDataSource','comment','filter','Delete','find','getCurrentUser','IConfigService','rxjs','UniverThreadComment','saveCommentToSnapshot','CollaborationSessionService','updateComment','format','_threadCommentDataSourceService','getMemberID','Disposable','6612JpfwCR','UniverThreadCommentUi','bufferTime','replyId','Unknown','rangeType','map','_initUserSync','@univerjs-pro/license','UNIVER_UNKNOWN','getComment','_httpService','UNRECOGNIZED','_commentService','@univerjs-pro/collaboration-client','object','12ZSbQOx','IThreadCommentDataSourceService','/reply'];_0x3dfd=function(){return _0x1d343f;};return _0x3dfd();}(function(_0x2e7733,_0x1ec33f){const _0x8fd5ba=_0x30ce,_0x419af7=_0x2e7733();while(!![]){try{const _0x17304f=-parseInt(_0x8fd5ba(0x108))/0x1*(-parseInt(_0x8fd5ba(0xb7))/0x2)+parseInt(_0x8fd5ba(0x131))/0x3*(parseInt(_0x8fd5ba(0x130))/0x4)+parseInt(_0x8fd5ba(0xbb))/0x5*(-parseInt(_0x8fd5ba(0xf8))/0x6)+-parseInt(_0x8fd5ba(0xc6))/0x7+parseInt(_0x8fd5ba(0xb1))/0x8+parseInt(_0x8fd5ba(0x10d))/0x9+parseInt(_0x8fd5ba(0xb6))/0xa*(parseInt(_0x8fd5ba(0x122))/0xb);if(_0x17304f===_0x1ec33f)break;else _0x419af7['push'](_0x419af7['shift']());}catch(_0x41c7c7){_0x419af7['push'](_0x419af7['shift']());}}}(_0x3dfd,0x30950),function(_0x11cfd4,_0x491fac){const _0x3ec3cc=_0x30ce;typeof exports==_0x3ec3cc(0x107)&&typeof module<'u'?_0x491fac(exports,require(_0x3ec3cc(0x106)),require(_0x3ec3cc(0x100)),require(_0x3ec3cc(0xc9)),require(_0x3ec3cc(0xe5)),require(_0x3ec3cc(0xc7)),require(_0x3ec3cc(0xef)),require('@univerjs/network')):typeof define==_0x3ec3cc(0xdc)&&define[_0x3ec3cc(0xc1)]?define([_0x3ec3cc(0xd1),_0x3ec3cc(0x106),_0x3ec3cc(0x100),_0x3ec3cc(0xc9),'@univerjs/thread-comment-ui',_0x3ec3cc(0xc7),_0x3ec3cc(0xef),_0x3ec3cc(0x11a)],_0x491fac):(_0x11cfd4=typeof globalThis<'u'?globalThis:_0x11cfd4||self,_0x491fac(_0x11cfd4[_0x3ec3cc(0xbd)]={},_0x11cfd4[_0x3ec3cc(0xe4)],_0x11cfd4['UniverProLicense'],_0x11cfd4[_0x3ec3cc(0xda)],_0x11cfd4[_0x3ec3cc(0xf9)],_0x11cfd4[_0x3ec3cc(0xf0)],_0x11cfd4[_0x3ec3cc(0xef)],_0x11cfd4['UniverNetwork']));}(this,function(_0x312e75,_0x11dc37,_0x1342d1,_0x45f127,_0x7c05d2,_0x2dcb62,_0x131c10,_0x30329a){'use strict';const _0x4c5739=_0x30ce;const _0x494a70=_0x4c5739(0xba);var _0x12dd52=(_0x2362ea=>(_0x2362ea[_0x2362ea[_0x4c5739(0xae)]=0x0]='OpenOrReOpen',_0x2362ea[_0x2362ea[_0x4c5739(0x117)]=0x1]=_0x4c5739(0x117),_0x2362ea[_0x2362ea['UNRECOGNIZED']=-0x1]=_0x4c5739(0x104),_0x2362ea))(_0x12dd52||{}),_0x5dd432=(_0x733d4a=>(_0x733d4a[_0x733d4a[_0x4c5739(0xfc)]=0x0]=_0x4c5739(0xfc),_0x733d4a[_0x733d4a['Add']=0x1]='Add',_0x733d4a[_0x733d4a[_0x4c5739(0x11c)]=0x2]=_0x4c5739(0x11c),_0x733d4a[_0x733d4a['Edit']=0x3]=_0x4c5739(0x120),_0x733d4a[_0x733d4a[_0x4c5739(0xeb)]=0x4]=_0x4c5739(0xeb),_0x733d4a[_0x733d4a[_0x4c5739(0xbe)]=0x5]=_0x4c5739(0xbe),_0x733d4a[_0x733d4a[_0x4c5739(0x104)]=-0x1]=_0x4c5739(0x104),_0x733d4a))(_0x5dd432||{});const _0x3fc404=_0x3d5227=>_0x45f127['dayjs'](new Date(+_0x3d5227))['format'](_0x4c5739(0xe2)),_0x15bd2e=async(_0x2f1f51,_0x49bce4)=>{const _0xc8d819=_0x4c5739,_0x39a174=_0x2f1f51[_0xc8d819(0x111)](_0x45f127[_0xc8d819(0x10e)]),_0xe69507=_0x2f1f51[_0xc8d819(0x111)](_0x30329a[_0xc8d819(0xde)]);_0x49bce4['forEach'](_0x37d201=>{const _0x151d3e=_0xc8d819;_0x39a174[_0x151d3e(0xd0)](_0x37d201)&&_0x49bce4['delete'](_0x37d201);}),_0x49bce4['size']&&(await _0xe69507[_0xc8d819(0x111)](_0xc8d819(0xe6),{'params':{'userIDs':[..._0x49bce4]}}))[_0xc8d819(0xe3)]['users'][_0xc8d819(0x116)](_0x1c98d3=>{const _0xee172c=_0xc8d819;_0x1c98d3&&_0x39a174[_0xee172c(0x126)](_0x1c98d3);});};var _0x33b1fb=Object[_0x4c5739(0xb8)],_0x155e2e=(_0x413aa8,_0x3d23a7,_0x5f38e8,_0x4e9334)=>{const _0x1edb9a=_0x4c5739;for(var _0x49e3ad=_0x4e9334>0x1?void 0x0:_0x4e9334?_0x33b1fb(_0x3d23a7,_0x5f38e8):_0x3d23a7,_0x206e0b=_0x413aa8[_0x1edb9a(0x11e)]-0x1,_0x1cbfff;_0x206e0b>=0x0;_0x206e0b--)(_0x1cbfff=_0x413aa8[_0x206e0b])&&(_0x49e3ad=_0x1cbfff(_0x49e3ad)||_0x49e3ad);return _0x49e3ad;},_0x40ddcd=(_0x2f4d33,_0x59d721)=>(_0x5d43e3,_0x24cf6d)=>_0x59d721(_0x5d43e3,_0x24cf6d,_0x2f4d33);let _0x4028e8=class extends _0x45f127[_0x4c5739(0xf7)]{constructor(_0x361bb3,_0x54da77,_0x5d1e86,_0x418b12){const _0x46610f=_0x4c5739;super(),this[_0x46610f(0x105)]=_0x361bb3,this[_0x46610f(0x12e)]=_0x54da77,this[_0x46610f(0x129)]=_0x5d1e86,this['_injector']=_0x418b12,this[_0x46610f(0xc0)](),this['_initUserSync']();}[_0x4c5739(0xff)](){const _0x3dccbc=_0x4c5739;this[_0x3dccbc(0xcd)](this['_threadCommentModel'][_0x3dccbc(0xc4)][_0x3dccbc(0x115)](_0x131c10[_0x3dccbc(0xfa)](0x10))[_0x3dccbc(0xdb)](_0x3eb2e5=>{const _0x23f660=_0x3dccbc,_0x50af7c=new Set();_0x3eb2e5[_0x23f660(0x116)](_0x1acc0e=>{const _0x12d56b=_0x23f660;switch(_0x1acc0e['type']){case _0x12d56b(0xd7):{const _0x57a5f3=_0x1acc0e['payload'][_0x12d56b(0xaf)];_0x50af7c[_0x12d56b(0xd7)](_0x57a5f3);break;}}}),_0x15bd2e(this[_0x23f660(0xe7)],_0x50af7c);}));}[_0x4c5739(0xc0)](){const _0x160f41=_0x4c5739;this[_0x160f41(0xcd)](this[_0x160f41(0x105)][_0x160f41(0xc4)][_0x160f41(0xdb)](async _0x960ed6=>{const _0x4d0545=_0x160f41;var _0x7475c7,_0x33c86d,_0x4ee620,_0xca84f4;const _0x44d37e=(_0x7475c7=this[_0x4d0545(0x12e)][_0x4d0545(0x12b)](_0x960ed6['unitId'])[_0x4d0545(0xec)](_0x2ffa09=>_0x2ffa09[_0x4d0545(0xe0)]===_0x960ed6[_0x4d0545(0xe0)]))==null?void 0x0:_0x7475c7[_0x4d0545(0x12a)];if(!_0x44d37e)return;const {unitId:_0x1b3643,subUnitId:_0x1e636b}=_0x44d37e;switch(_0x960ed6[_0x4d0545(0x134)]&&this['_userService'][_0x4d0545(0x126)](_0x960ed6[_0x4d0545(0x134)]),_0x960ed6[_0x4d0545(0x11d)]){case _0x5dd432[_0x4d0545(0x135)]:break;case _0x5dd432['Reply']:{this[_0x4d0545(0x12e)][_0x4d0545(0xc2)](_0x1b3643,_0x1e636b,{'unitId':_0x1b3643,'subUnitId':_0x1e636b,'ref':'','id':_0x960ed6[_0x4d0545(0xfb)],'dT':_0x3fc404(+_0x960ed6[_0x4d0545(0x125)]),'threadId':_0x960ed6[_0x4d0545(0xe0)],'personId':(_0x4ee620=(_0x33c86d=_0x960ed6[_0x4d0545(0x134)])==null?void 0x0:_0x33c86d[_0x4d0545(0xd3)])!=null?_0x4ee620:_0x960ed6['userId'],'text':JSON[_0x4d0545(0x10f)](_0x960ed6[_0x4d0545(0x112)]),'parentId':_0x44d37e['id']});break;}case _0x5dd432[_0x4d0545(0xeb)]:{const _0xa67f39=this[_0x4d0545(0x12e)][_0x4d0545(0x102)](_0x1b3643,_0x1e636b,_0x960ed6[_0x4d0545(0xfb)]);_0xa67f39&&_0xa67f39['parentId']&&this[_0x4d0545(0x12e)][_0x4d0545(0xbf)](_0x1b3643,_0x1e636b,_0x960ed6[_0x4d0545(0xfb)]);break;}case _0x5dd432[_0x4d0545(0x120)]:{this[_0x4d0545(0x12e)]['updateComment'](_0x1b3643,_0x1e636b,{'commentId':_0x960ed6[_0x4d0545(0xfb)],'text':JSON[_0x4d0545(0x10f)](_0x960ed6[_0x4d0545(0x112)])});break;}case _0x5dd432['Solve']:{const _0x3f5ca9=(_0xca84f4=this['_threadCommentModel'][_0x4d0545(0x12b)](_0x960ed6[_0x4d0545(0xc3)])[_0x4d0545(0xec)](_0x2e28c7=>_0x2e28c7[_0x4d0545(0xe0)]===_0x960ed6[_0x4d0545(0xe0)]))==null?void 0x0:_0xca84f4[_0x4d0545(0x12a)];_0x3f5ca9&&this[_0x4d0545(0x12e)][_0x4d0545(0x110)](_0x1b3643,_0x1e636b,_0x3f5ca9['id'],_0x960ed6[_0x4d0545(0xac)]===_0x12dd52[_0x4d0545(0x117)]);break;}}}));}};_0x4028e8=_0x155e2e([_0x40ddcd(0x0,_0x45f127['Inject'](_0x11dc37[_0x4c5739(0x12d)])),_0x40ddcd(0x1,_0x45f127[_0x4c5739(0xbc)](_0x2dcb62['ThreadCommentModel'])),_0x40ddcd(0x2,_0x45f127[_0x4c5739(0xbc)](_0x45f127[_0x4c5739(0x10e)])),_0x40ddcd(0x3,_0x45f127[_0x4c5739(0xbc)](_0x45f127[_0x4c5739(0x128)]))],_0x4028e8);const _0x3f135e=_0x4c5739(0x114),_0x1393c1={};var _0x37cf65=Object[_0x4c5739(0xb8)],_0x4b4ba7=(_0x1697c9,_0x3df8bb,_0x4b955c,_0x4a8d18)=>{const _0x193cdb=_0x4c5739;for(var _0x1ced1a=_0x4a8d18>0x1?void 0x0:_0x4a8d18?_0x37cf65(_0x3df8bb,_0x4b955c):_0x3df8bb,_0x29079b=_0x1697c9[_0x193cdb(0x11e)]-0x1,_0x2fadd1;_0x29079b>=0x0;_0x29079b--)(_0x2fadd1=_0x1697c9[_0x29079b])&&(_0x1ced1a=_0x2fadd1(_0x1ced1a)||_0x1ced1a);return _0x1ced1a;},_0x789be=(_0x2e9837,_0x273042)=>(_0x72802,_0x149ac1)=>_0x273042(_0x72802,_0x149ac1,_0x2e9837);function _0x45267c(_0x4bd016,_0x247c3c){const _0x4ff59a=_0x4c5739,_0x475c75=_0x4bd016['replies'][0x0];return{..._0x247c3c,'id':_0x475c75[_0x4ff59a(0xfb)],'resolved':_0x4bd016[_0x4ff59a(0xac)]===0x1,'dT':_0x3fc404(_0x475c75['createTimestamp']),'personId':_0x475c75[_0x4ff59a(0x127)],'threadId':_0x475c75[_0x4ff59a(0xe0)]};}function _0x552f46(_0x482781,_0x2fa8bc,_0x4610ed){const _0x57b6f8=_0x4c5739;var _0x57e0c5,_0x2b9dd7;if(((_0x2b9dd7=(_0x57e0c5=_0x482781==null?void 0x0:_0x482781[_0x57b6f8(0x11b)])==null?void 0x0:_0x57e0c5['length'])!=null?_0x2b9dd7:0x0)>0x0){const _0x4a6ffd=(_0x1e9152,_0x5024de)=>({'id':_0x1e9152[_0x57b6f8(0xfb)],'threadId':_0x1e9152[_0x57b6f8(0xe0)],'dT':_0x3fc404(_0x1e9152[_0x57b6f8(0x125)]),'personId':_0x1e9152['userId'],'resolved':_0x482781[_0x57b6f8(0xac)]===_0x12dd52[_0x57b6f8(0x117)],'unitId':_0x2fa8bc,'subUnitId':_0x4610ed,'text':JSON[_0x57b6f8(0x10f)](_0x1e9152[_0x57b6f8(0x112)]),'parentId':_0x5024de}),_0x17a6e7=_0x4a6ffd(_0x482781[_0x57b6f8(0x11b)][0x0]);return{..._0x17a6e7,'children':_0x482781['replies'][_0x57b6f8(0xd4)](0x1)[_0x57b6f8(0xfe)](_0xb3806=>_0x4a6ffd(_0xb3806,_0x17a6e7['id']))};}return null;}let _0xe2fc66=class{constructor(_0x529503,_0x4496a4,_0x330e2e,_0x15cbf8){const _0x4fe752=_0x4c5739;this['_httpService']=_0x529503,this[_0x4fe752(0x129)]=_0x4496a4,this[_0x4fe752(0xcf)]=_0x330e2e,this[_0x4fe752(0xe7)]=_0x15cbf8;}async[_0x4c5739(0xc2)](_0x583c2e){const _0x24e65f=_0x4c5739;var _0x1b7605,_0x131b7f;const {parentId:_0x26164b,unitId:_0xae963e,text:_0x267041,threadId:_0x558cf4}=_0x583c2e,_0x5b7873=(_0x131b7f=(_0x1b7605=_0x267041['customRanges'])==null?void 0x0:_0x1b7605[_0x24e65f(0xea)](_0x18a115=>_0x18a115[_0x24e65f(0xfd)]===_0x45f127['CustomRangeType']['COMMENT'])[_0x24e65f(0xfe)](_0x362197=>_0x362197[_0x24e65f(0x124)]))!=null?_0x131b7f:[],_0x5a75f5=JSON[_0x24e65f(0x11f)](_0x267041),_0x20357c=(await this[_0x24e65f(0xcf)][_0x24e65f(0xcb)](_0xae963e))[_0x24e65f(0xf6)]();if(_0x26164b){const _0x45d08={'memberId':_0x20357c,'unitId':_0xae963e,'content':_0x5a75f5,'mention':_0x5b7873,'threadId':_0x558cf4},_0x304514=(await this[_0x24e65f(0x103)][_0x24e65f(0xd2)](_0x24e65f(0xad)+_0xae963e+_0x24e65f(0x10a),{'body':_0x45d08}))['body'][_0x24e65f(0xc5)];return{..._0x583c2e,'id':_0x304514[_0x24e65f(0xfb)],'dT':_0x45f127[_0x24e65f(0xb5)](+_0x304514['createTimestamp'])[_0x24e65f(0xf4)]('YYYY/MM/DD\x20HH:mm'),'personId':_0x304514['userId']};}else{const _0x30d1f6={'memberId':_0x20357c,'unitId':_0xae963e,'content':_0x5a75f5,'mention':_0x5b7873},_0x29f09c=await this['_httpService'][_0x24e65f(0xd2)](_0x24e65f(0xad)+_0xae963e+'/add',{'body':_0x30d1f6});return _0x45267c(_0x29f09c[_0x24e65f(0xe3)][_0x24e65f(0xe9)],_0x583c2e);}}async[_0x4c5739(0xf3)](_0x376a8a){const _0x40421d=_0x4c5739;var _0x134a78,_0x19e08c;const {text:_0x342ea4,unitId:_0x54a116}=_0x376a8a,_0x5a045b=(_0x19e08c=(_0x134a78=_0x342ea4[_0x40421d(0xd9)])==null?void 0x0:_0x134a78[_0x40421d(0xea)](_0x3c8b1e=>_0x3c8b1e[_0x40421d(0xfd)]===_0x45f127[_0x40421d(0xdd)][_0x40421d(0x10c)])['map'](_0x3a4e46=>_0x3a4e46[_0x40421d(0x124)]))!=null?_0x19e08c:[],_0x1b0a66=JSON[_0x40421d(0x11f)](_0x342ea4),_0x351e4c=_0x376a8a[_0x40421d(0xe0)],_0x408918=_0x376a8a['id'],_0x24cc24={'memberId':(await this[_0x40421d(0xcf)][_0x40421d(0xcb)](_0x54a116))['getMemberID'](),'unitId':_0x54a116,'threadId':_0x351e4c,'mention':_0x5a045b,'content':_0x1b0a66,'replyId':_0x408918},_0x41178d=await this['_httpService'][_0x40421d(0xd2)](_0x40421d(0xad)+_0x54a116+'/edit',{'body':_0x24cc24});return!_0x41178d[_0x40421d(0xe3)][_0x40421d(0x121)]||_0x41178d[_0x40421d(0xe3)][_0x40421d(0x121)][_0x40421d(0x133)]===0x1;}async[_0x4c5739(0x110)](_0x276341){const _0x1111e6=_0x4c5739,{unitId:_0x444da4}=_0x276341,_0x439778=_0x276341[_0x1111e6(0xe0)],_0x44edd1={'memberId':this[_0x1111e6(0x129)][_0x1111e6(0xed)]()['userID'],'unitId':_0x444da4,'threadId':_0x439778,'solved':_0x276341[_0x1111e6(0xb4)]?_0x12dd52[_0x1111e6(0x117)]:_0x12dd52[_0x1111e6(0xae)]},_0xab59a8=await this[_0x1111e6(0x103)][_0x1111e6(0xd2)]('/universer-api/comment/unit/'+_0x444da4+_0x1111e6(0xb3),{'body':_0x44edd1});return!_0xab59a8['body']['error']||_0xab59a8[_0x1111e6(0xe3)][_0x1111e6(0x121)][_0x1111e6(0x133)]===0x1;}async[_0x4c5739(0xbf)](_0x1cd522,_0x53f73c,_0x29c53f,_0x55dad1){const _0x155654=_0x4c5739,_0x22ded2={'memberId':(await this[_0x155654(0xcf)][_0x155654(0xcb)](_0x1cd522))[_0x155654(0xf6)](),'threadId':_0x29c53f,'replyId':_0x55dad1,'unitId':_0x1cd522},_0x13ebb2=await this[_0x155654(0x103)][_0x155654(0xd2)]('/universer-api/comment/unit/'+_0x1cd522+_0x155654(0x12f),{'body':_0x22ded2});return!_0x13ebb2[_0x155654(0xe3)][_0x155654(0x121)]||_0x13ebb2[_0x155654(0xe3)]['error'][_0x155654(0x133)]===0x1;}async[_0x4c5739(0x113)](_0x196c0d,_0x5c7fd1,_0x1fd6b6){const _0x35b5b3=_0x4c5739,_0x2d3d93={'unitId':_0x196c0d,'threadId':_0x1fd6b6},_0x2fe453=await this[_0x35b5b3(0x103)][_0x35b5b3(0xd2)](_0x35b5b3(0xad)+_0x196c0d+_0x35b5b3(0xd8),{'body':_0x2d3d93}),_0x5b305a=_0x1fd6b6[_0x35b5b3(0xfe)](_0x56264b=>_0x552f46(_0x2fe453[_0x35b5b3(0xe3)]['comments'][_0x56264b],_0x196c0d,_0x5c7fd1))[_0x35b5b3(0xea)](Boolean);return Object['values'](_0x2fe453[_0x35b5b3(0xe3)]['users'])[_0x35b5b3(0x116)](_0x225a61=>{const _0x4b8d53=_0x35b5b3;this['_userService'][_0x4b8d53(0x126)](_0x225a61);}),_0x5b305a;}[_0x4c5739(0xf1)](_0x5d056f){const _0x25417d=_0x4c5739;return{'id':_0x5d056f['id'],'threadId':_0x5d056f[_0x25417d(0xe0)],'ref':_0x5d056f[_0x25417d(0xdf)]};}};_0xe2fc66=_0x4b4ba7([_0x789be(0x0,_0x45f127['Inject'](_0x30329a[_0x4c5739(0xde)])),_0x789be(0x1,_0x45f127[_0x4c5739(0xbc)](_0x45f127['UserManagerService'])),_0x789be(0x2,_0x45f127[_0x4c5739(0xbc)](_0x11dc37[_0x4c5739(0xf2)])),_0x789be(0x3,_0x45f127['Inject'](_0x45f127[_0x4c5739(0x128)]))],_0xe2fc66);var _0x445b4c=Object[_0x4c5739(0xb8)],_0x59ad9c=(_0x556af8,_0x29ee82,_0x1a1c7a,_0x5824a3)=>{const _0x30e5c8=_0x4c5739;for(var _0xbee1a7=_0x5824a3>0x1?void 0x0:_0x5824a3?_0x445b4c(_0x29ee82,_0x1a1c7a):_0x29ee82,_0x1a6ef1=_0x556af8[_0x30e5c8(0x11e)]-0x1,_0x39dd49;_0x1a6ef1>=0x0;_0x1a6ef1--)(_0x39dd49=_0x556af8[_0x1a6ef1])&&(_0xbee1a7=_0x39dd49(_0xbee1a7)||_0xbee1a7);return _0xbee1a7;},_0x35cb0f=(_0x43a774,_0x4443eb)=>(_0x12bb95,_0x3b9b26)=>_0x4443eb(_0x12bb95,_0x3b9b26,_0x43a774);let _0x2b234d=class extends _0x45f127[_0x4c5739(0xf7)]{constructor(_0x5e30b4,_0x5ec988){const _0x2f0953=_0x4c5739;super(),this[_0x2f0953(0xf5)]=_0x5e30b4,this[_0x2f0953(0xcc)]=_0x5ec988,this[_0x2f0953(0xe8)]();}[_0x4c5739(0xe8)](){const _0x5cddd2=_0x4c5739;this[_0x5cddd2(0xf5)][_0x5cddd2(0xca)]=this[_0x5cddd2(0xcc)],this['_threadCommentDataSourceService'][_0x5cddd2(0xc8)]=!0x1;}};_0x2b234d=_0x59ad9c([_0x35cb0f(0x0,_0x2dcb62[_0x4c5739(0x109)]),_0x35cb0f(0x1,_0x45f127[_0x4c5739(0xbc)](_0xe2fc66))],_0x2b234d);var _0x53edd5=Object[_0x4c5739(0x118)],_0x45b783=Object['getOwnPropertyDescriptor'],_0x51e04f=(_0x46a177,_0x29feeb,_0x17164e)=>_0x29feeb in _0x46a177?_0x53edd5(_0x46a177,_0x29feeb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17164e}):_0x46a177[_0x29feeb]=_0x17164e,_0x368227=(_0x3224c6,_0x524968,_0x281b7a,_0x3a369e)=>{const _0x5f1c58=_0x4c5739;for(var _0x27eefc=_0x3a369e>0x1?void 0x0:_0x3a369e?_0x45b783(_0x524968,_0x281b7a):_0x524968,_0x512784=_0x3224c6[_0x5f1c58(0x11e)]-0x1,_0x91376d;_0x512784>=0x0;_0x512784--)(_0x91376d=_0x3224c6[_0x512784])&&(_0x27eefc=_0x91376d(_0x27eefc)||_0x27eefc);return _0x27eefc;},_0x48573f=(_0x51f93e,_0x1aa611)=>(_0x50cead,_0x4c9bb5)=>_0x1aa611(_0x50cead,_0x4c9bb5,_0x51f93e),_0x289730=(_0x1cd9c8,_0x2bb50d,_0x183cc5)=>_0x51e04f(_0x1cd9c8,typeof _0x2bb50d!=_0x4c5739(0xe1)?_0x2bb50d+'':_0x2bb50d,_0x183cc5);_0x312e75['UniverThreadCommentDataSourcePlugin']=class extends _0x45f127['Plugin']{constructor(_0x5d79aa=_0x1393c1,_0x58c715,_0x2cc18c){const _0x179633=_0x4c5739;super(),this[_0x179633(0x119)]=_0x5d79aa,this[_0x179633(0xe7)]=_0x58c715,this[_0x179633(0xb2)]=_0x2cc18c;const {..._0x275f46}=_0x45f127['merge']({},_0x1393c1,this[_0x179633(0x119)]);this[_0x179633(0xb2)][_0x179633(0x123)](_0x3f135e,_0x275f46);}['onStarting'](){const _0x19f2e8=_0x4c5739;[[_0xe2fc66],[_0x2b234d],[_0x4028e8]][_0x19f2e8(0x116)](_0x5a046c=>{const _0x3026ae=_0x19f2e8;this[_0x3026ae(0xe7)][_0x3026ae(0xd7)](_0x5a046c);});}[_0x4c5739(0x132)](){const _0x91da5=_0x4c5739;this[_0x91da5(0xe7)][_0x91da5(0x111)](_0x2b234d),this[_0x91da5(0xe7)][_0x91da5(0x111)](_0x4028e8);}},_0x289730(_0x312e75[_0x4c5739(0x10b)],_0x4c5739(0xce),_0x494a70),_0x289730(_0x312e75[_0x4c5739(0x10b)],_0x4c5739(0x11d),_0x45f127['UniverInstanceType'][_0x4c5739(0x101)]),_0x312e75[_0x4c5739(0x10b)]=_0x368227([_0x45f127['DependentOn'](_0x7c05d2[_0x4c5739(0xb9)],_0x11dc37[_0x4c5739(0xb0)],_0x1342d1[_0x4c5739(0x12c)]),_0x48573f(0x1,_0x45f127[_0x4c5739(0xbc)](_0x45f127[_0x4c5739(0x128)])),_0x48573f(0x2,_0x45f127[_0x4c5739(0xee)])],_0x312e75[_0x4c5739(0x10b)]),Object[_0x4c5739(0x118)](_0x312e75,Symbol[_0x4c5739(0xd6)],{'value':_0x4c5739(0xd5)});}));
|
|
1
|
+
(function(_0x3e85c4,_0x3de6e6){const _0xef7b96=_0x28a8,_0x580c=_0x3e85c4();while(!![]){try{const _0x1b8774=parseInt(_0xef7b96(0x19e))/0x1+parseInt(_0xef7b96(0x1c3))/0x2+parseInt(_0xef7b96(0x1d7))/0x3*(parseInt(_0xef7b96(0x159))/0x4)+-parseInt(_0xef7b96(0x16f))/0x5+parseInt(_0xef7b96(0x1b0))/0x6+parseInt(_0xef7b96(0x1a2))/0x7*(-parseInt(_0xef7b96(0x16a))/0x8)+-parseInt(_0xef7b96(0x1b9))/0x9;if(_0x1b8774===_0x3de6e6)break;else _0x580c['push'](_0x580c['shift']());}catch(_0x302887){_0x580c['push'](_0x580c['shift']());}}}(_0x33c2,0x7905b),function(_0x2f7f4e,_0x5c76c9){const _0x5c74f3=_0x28a8;typeof exports==_0x5c74f3(0x1d1)&&typeof module<'u'?_0x5c76c9(exports,require('@univerjs-pro/collaboration-client'),require(_0x5c74f3(0x192)),require(_0x5c74f3(0x1c8)),require(_0x5c74f3(0x188)),require(_0x5c74f3(0x1ac)),require(_0x5c74f3(0x15a)),require(_0x5c74f3(0x184))):typeof define==_0x5c74f3(0x1ce)&&define[_0x5c74f3(0x16b)]?define([_0x5c74f3(0x197),_0x5c74f3(0x196),_0x5c74f3(0x192),_0x5c74f3(0x1c8),_0x5c74f3(0x188),'@univerjs/thread-comment',_0x5c74f3(0x15a),_0x5c74f3(0x184)],_0x5c76c9):(_0x2f7f4e=typeof globalThis<'u'?globalThis:_0x2f7f4e||self,_0x5c76c9(_0x2f7f4e[_0x5c74f3(0x15c)]={},_0x2f7f4e[_0x5c74f3(0x1d4)],_0x2f7f4e[_0x5c74f3(0x17b)],_0x2f7f4e[_0x5c74f3(0x1b6)],_0x2f7f4e[_0x5c74f3(0x1c2)],_0x2f7f4e[_0x5c74f3(0x16c)],_0x2f7f4e['rxjs'],_0x2f7f4e['UniverNetwork']));}(this,function(_0x5aef6a,_0x4b7c90,_0x4ce647,_0xc82365,_0x3aebb4,_0x435464,_0x23220a,_0x481c25){'use strict';const _0x3f3b9e=_0x28a8;const _0x3b43ae='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var _0x218ff7=(_0x3795d4=>(_0x3795d4[_0x3795d4['OpenOrReOpen']=0x0]='OpenOrReOpen',_0x3795d4[_0x3795d4[_0x3f3b9e(0x1cf)]=0x1]='Solved',_0x3795d4[_0x3795d4[_0x3f3b9e(0x19d)]=-0x1]=_0x3f3b9e(0x19d),_0x3795d4))(_0x218ff7||{}),_0x3d72d3=(_0x397a5b=>(_0x397a5b[_0x397a5b[_0x3f3b9e(0x18a)]=0x0]=_0x3f3b9e(0x18a),_0x397a5b[_0x397a5b['Add']=0x1]='Add',_0x397a5b[_0x397a5b[_0x3f3b9e(0x18b)]=0x2]=_0x3f3b9e(0x18b),_0x397a5b[_0x397a5b[_0x3f3b9e(0x17f)]=0x3]=_0x3f3b9e(0x17f),_0x397a5b[_0x397a5b['Delete']=0x4]=_0x3f3b9e(0x183),_0x397a5b[_0x397a5b[_0x3f3b9e(0x1b3)]=0x5]=_0x3f3b9e(0x1b3),_0x397a5b[_0x397a5b['UNRECOGNIZED']=-0x1]=_0x3f3b9e(0x19d),_0x397a5b))(_0x3d72d3||{});const _0x459464=_0x2fd0ef=>_0xc82365[_0x3f3b9e(0x165)](new Date(+_0x2fd0ef))[_0x3f3b9e(0x1c7)]('YYYY/MM/DD\x20HH:mm'),_0x4e28a8=async(_0x531bc8,_0xb67f52)=>{const _0x44393e=_0x3f3b9e,_0x45a7d6=_0x531bc8[_0x44393e(0x1b4)](_0xc82365[_0x44393e(0x176)]),_0x21e21b=_0x531bc8[_0x44393e(0x1b4)](_0x481c25['HTTPService']);_0xb67f52[_0x44393e(0x168)](_0x3a8aa9=>{const _0x10bc45=_0x44393e;_0x45a7d6[_0x10bc45(0x15d)](_0x3a8aa9)&&_0xb67f52[_0x10bc45(0x1b5)](_0x3a8aa9);}),_0xb67f52[_0x44393e(0x1b7)]&&(await _0x21e21b[_0x44393e(0x1b4)](_0x44393e(0x171),{'params':{'userIDs':[..._0xb67f52]}}))[_0x44393e(0x1ab)][_0x44393e(0x18d)][_0x44393e(0x168)](_0x5c9ea0=>{const _0x4535dc=_0x44393e;_0x5c9ea0&&_0x45a7d6[_0x4535dc(0x160)](_0x5c9ea0);});};var _0x355be8=Object['getOwnPropertyDescriptor'],_0x4b6d93=(_0x393446,_0x504de5,_0x71356f,_0xcb97ec)=>{const _0x2005ef=_0x3f3b9e;for(var _0x511071=_0xcb97ec>0x1?void 0x0:_0xcb97ec?_0x355be8(_0x504de5,_0x71356f):_0x504de5,_0xe6daee=_0x393446[_0x2005ef(0x1ca)]-0x1,_0x3bff48;_0xe6daee>=0x0;_0xe6daee--)(_0x3bff48=_0x393446[_0xe6daee])&&(_0x511071=_0x3bff48(_0x511071)||_0x511071);return _0x511071;},_0x1d6953=(_0x1fd698,_0x135ae5)=>(_0x41b58a,_0x401ae0)=>_0x135ae5(_0x41b58a,_0x401ae0,_0x1fd698);let _0x19aef7=class extends _0xc82365[_0x3f3b9e(0x174)]{constructor(_0x99e13e,_0x482823,_0x8cae33,_0x4a6ec7){const _0x363f16=_0x3f3b9e;super(),this[_0x363f16(0x1c6)]=_0x99e13e,this[_0x363f16(0x179)]=_0x482823,this[_0x363f16(0x1c5)]=_0x8cae33,this[_0x363f16(0x186)]=_0x4a6ec7,this[_0x363f16(0x177)](),this[_0x363f16(0x181)]();}[_0x3f3b9e(0x181)](){const _0x34c16f=_0x3f3b9e;this[_0x34c16f(0x1a9)](this['_threadCommentModel'][_0x34c16f(0x17d)][_0x34c16f(0x17a)](_0x23220a['bufferTime'](0x10))[_0x34c16f(0x175)](_0x226139=>{const _0xa8fdbb=_0x34c16f,_0x2ec085=new Set();_0x226139['forEach'](_0x1e117f=>{const _0x3486db=_0x28a8;switch(_0x1e117f[_0x3486db(0x1a8)]){case'add':{const _0x3cad25=_0x1e117f[_0x3486db(0x19a)][_0x3486db(0x16d)];_0x2ec085['add'](_0x3cad25);break;}}}),_0x4e28a8(this[_0xa8fdbb(0x186)],_0x2ec085);}));}[_0x3f3b9e(0x177)](){const _0xbd0cc6=_0x3f3b9e;this[_0xbd0cc6(0x1a9)](this['_commentService'][_0xbd0cc6(0x17d)][_0xbd0cc6(0x175)](async _0x5e67df=>{const _0x3d1a1e=_0xbd0cc6;var _0x2b4670,_0x5bb884,_0x4c3843,_0x2a07bf;const _0x27e400=(_0x2b4670=this['_threadCommentModel'][_0x3d1a1e(0x1c0)](_0x5e67df[_0x3d1a1e(0x1b1)])['find'](_0x4b7d00=>_0x4b7d00[_0x3d1a1e(0x1d2)]===_0x5e67df['threadId']))==null?void 0x0:_0x2b4670[_0x3d1a1e(0x178)];if(!_0x27e400)return;const {unitId:_0x1a08ef,subUnitId:_0x22ca85}=_0x27e400;switch(_0x5e67df['user']&&this[_0x3d1a1e(0x1c5)]['addUser'](_0x5e67df['user']),_0x5e67df[_0x3d1a1e(0x1a8)]){case _0x3d72d3[_0x3d1a1e(0x17e)]:break;case _0x3d72d3[_0x3d1a1e(0x18b)]:{this[_0x3d1a1e(0x179)]['addComment'](_0x1a08ef,_0x22ca85,{'unitId':_0x1a08ef,'subUnitId':_0x22ca85,'ref':'','id':_0x5e67df[_0x3d1a1e(0x18e)],'dT':_0x459464(+_0x5e67df[_0x3d1a1e(0x163)]),'threadId':_0x5e67df[_0x3d1a1e(0x1d2)],'personId':(_0x4c3843=(_0x5bb884=_0x5e67df[_0x3d1a1e(0x1a0)])==null?void 0x0:_0x5bb884['userID'])!=null?_0x4c3843:_0x5e67df[_0x3d1a1e(0x18f)],'text':JSON['parse'](_0x5e67df[_0x3d1a1e(0x1a3)]),'parentId':_0x27e400['id']});break;}case _0x3d72d3['Delete']:{const _0x232450=this['_threadCommentModel'][_0x3d1a1e(0x15e)](_0x1a08ef,_0x22ca85,_0x5e67df[_0x3d1a1e(0x18e)]);_0x232450&&_0x232450[_0x3d1a1e(0x189)]&&this['_threadCommentModel']['deleteComment'](_0x1a08ef,_0x22ca85,_0x5e67df['replyId']);break;}case _0x3d72d3['Edit']:{this[_0x3d1a1e(0x179)]['updateComment'](_0x1a08ef,_0x22ca85,{'commentId':_0x5e67df['replyId'],'text':JSON[_0x3d1a1e(0x1cb)](_0x5e67df['content'])});break;}case _0x3d72d3[_0x3d1a1e(0x1b3)]:{const _0x1489c2=(_0x2a07bf=this[_0x3d1a1e(0x179)][_0x3d1a1e(0x1c0)](_0x5e67df[_0x3d1a1e(0x1b1)])[_0x3d1a1e(0x1d3)](_0x506095=>_0x506095['threadId']===_0x5e67df[_0x3d1a1e(0x1d2)]))==null?void 0x0:_0x2a07bf[_0x3d1a1e(0x178)];_0x1489c2&&this['_threadCommentModel']['resolveComment'](_0x1a08ef,_0x22ca85,_0x1489c2['id'],_0x5e67df[_0x3d1a1e(0x1ba)]===_0x218ff7[_0x3d1a1e(0x1cf)]);break;}}}));}};_0x19aef7=_0x4b6d93([_0x1d6953(0x0,_0xc82365[_0x3f3b9e(0x1bf)](_0x4b7c90['CommentService'])),_0x1d6953(0x1,_0xc82365[_0x3f3b9e(0x1bf)](_0x435464[_0x3f3b9e(0x1b2)])),_0x1d6953(0x2,_0xc82365[_0x3f3b9e(0x1bf)](_0xc82365[_0x3f3b9e(0x176)])),_0x1d6953(0x3,_0xc82365[_0x3f3b9e(0x1bf)](_0xc82365['Injector']))],_0x19aef7);const _0x18bcdf=_0x3f3b9e(0x166),_0x13396e={};var _0x40ea8d=Object['getOwnPropertyDescriptor'],_0x491e56=(_0x34730e,_0x457988,_0x5f345b,_0x248e55)=>{for(var _0x3b4d9b=_0x248e55>0x1?void 0x0:_0x248e55?_0x40ea8d(_0x457988,_0x5f345b):_0x457988,_0x27ca2e=_0x34730e['length']-0x1,_0x390415;_0x27ca2e>=0x0;_0x27ca2e--)(_0x390415=_0x34730e[_0x27ca2e])&&(_0x3b4d9b=_0x390415(_0x3b4d9b)||_0x3b4d9b);return _0x3b4d9b;},_0xce3454=(_0x4635f3,_0x40fddd)=>(_0x8ef1a8,_0x1010c5)=>_0x40fddd(_0x8ef1a8,_0x1010c5,_0x4635f3);function _0x253b60(_0x28cb3d,_0x3de7e8){const _0x530142=_0x3f3b9e,_0x4539ce=_0x28cb3d['replies'][0x0];return{..._0x3de7e8,'id':_0x4539ce[_0x530142(0x18e)],'resolved':_0x28cb3d[_0x530142(0x1ba)]===0x1,'dT':_0x459464(_0x4539ce[_0x530142(0x163)]),'personId':_0x4539ce[_0x530142(0x18f)],'threadId':_0x4539ce[_0x530142(0x1d2)]};}function _0x28bd6c(_0x4b8cf1,_0x3cd23f,_0x5efa1b){const _0xa1184b=_0x3f3b9e;var _0x1f91ab,_0x2e77c9;if(((_0x2e77c9=(_0x1f91ab=_0x4b8cf1==null?void 0x0:_0x4b8cf1['replies'])==null?void 0x0:_0x1f91ab['length'])!=null?_0x2e77c9:0x0)>0x0){const _0xf30381=(_0x26eb60,_0x5af123)=>({'id':_0x26eb60[_0xa1184b(0x18e)],'threadId':_0x26eb60[_0xa1184b(0x1d2)],'dT':_0x459464(_0x26eb60[_0xa1184b(0x163)]),'personId':_0x26eb60['userId'],'resolved':_0x4b8cf1[_0xa1184b(0x1ba)]===_0x218ff7[_0xa1184b(0x1cf)],'unitId':_0x3cd23f,'subUnitId':_0x5efa1b,'text':JSON[_0xa1184b(0x1cb)](_0x26eb60[_0xa1184b(0x1a3)]),'parentId':_0x5af123}),_0x3df7f5=_0xf30381(_0x4b8cf1[_0xa1184b(0x1c1)][0x0]);return{..._0x3df7f5,'children':_0x4b8cf1['replies'][_0xa1184b(0x164)](0x1)[_0xa1184b(0x1d6)](_0x354af2=>_0xf30381(_0x354af2,_0x3df7f5['id']))};}return null;}let _0x1ee8ec=class{constructor(_0x32acde,_0x3af678,_0x97b383,_0x5cdeb2){const _0x25cabb=_0x3f3b9e;this[_0x25cabb(0x1cc)]=_0x32acde,this[_0x25cabb(0x1c5)]=_0x3af678,this['_sessionService']=_0x97b383,this[_0x25cabb(0x186)]=_0x5cdeb2;}async['addComment'](_0x1053b2){const _0x439a09=_0x3f3b9e;var _0x577abc,_0x2b47a3;const {parentId:_0x401a07,unitId:_0x292e06,text:_0x427d19,threadId:_0x1576e6}=_0x1053b2,_0xa08641=(_0x2b47a3=(_0x577abc=_0x427d19[_0x439a09(0x1a7)])==null?void 0x0:_0x577abc['filter'](_0x48b17a=>_0x48b17a['rangeType']===_0xc82365[_0x439a09(0x1a1)][_0x439a09(0x1cd)])['map'](_0x1ac5df=>_0x1ac5df[_0x439a09(0x172)]))!=null?_0x2b47a3:[],_0x738c3=JSON[_0x439a09(0x17c)](_0x427d19),_0x52bf9e=(await this[_0x439a09(0x180)][_0x439a09(0x199)](_0x292e06))['getMemberID']();if(_0x401a07){const _0xd4d376={'memberId':_0x52bf9e,'unitId':_0x292e06,'content':_0x738c3,'mention':_0xa08641,'threadId':_0x1576e6},_0x1afd2d=(await this[_0x439a09(0x1cc)][_0x439a09(0x1a6)]('/universer-api/comment/unit/'+_0x292e06+_0x439a09(0x1b8),{'body':_0xd4d376}))[_0x439a09(0x1ab)][_0x439a09(0x1a5)];return{..._0x1053b2,'id':_0x1afd2d[_0x439a09(0x18e)],'dT':_0xc82365['dayjs'](+_0x1afd2d[_0x439a09(0x163)])[_0x439a09(0x1c7)](_0x439a09(0x1bd)),'personId':_0x1afd2d[_0x439a09(0x18f)]};}else{const _0x41609b={'memberId':_0x52bf9e,'unitId':_0x292e06,'content':_0x738c3,'mention':_0xa08641},_0x2bb7c0=await this['_httpService'][_0x439a09(0x1a6)](_0x439a09(0x19f)+_0x292e06+_0x439a09(0x1a4),{'body':_0x41609b});return _0x253b60(_0x2bb7c0[_0x439a09(0x1ab)]['comment'],_0x1053b2);}}async[_0x3f3b9e(0x18c)](_0x4c1ac0){const _0x164a6d=_0x3f3b9e;var _0x5bca94,_0x21852f;const {text:_0x2f9d28,unitId:_0x523c00}=_0x4c1ac0,_0x2c4ec2=(_0x21852f=(_0x5bca94=_0x2f9d28[_0x164a6d(0x1a7)])==null?void 0x0:_0x5bca94['filter'](_0x26094b=>_0x26094b[_0x164a6d(0x173)]===_0xc82365[_0x164a6d(0x1a1)][_0x164a6d(0x1cd)])[_0x164a6d(0x1d6)](_0x4d8949=>_0x4d8949['rangeId']))!=null?_0x21852f:[],_0x2b81fa=JSON[_0x164a6d(0x17c)](_0x2f9d28),_0x1cd74b=_0x4c1ac0['threadId'],_0x54f288=_0x4c1ac0['id'],_0x2e6f75={'memberId':(await this[_0x164a6d(0x180)]['requireSession'](_0x523c00))[_0x164a6d(0x169)](),'unitId':_0x523c00,'threadId':_0x1cd74b,'mention':_0x2c4ec2,'content':_0x2b81fa,'replyId':_0x54f288},_0x1ad429=await this[_0x164a6d(0x1cc)][_0x164a6d(0x1a6)](_0x164a6d(0x19f)+_0x523c00+_0x164a6d(0x16e),{'body':_0x2e6f75});return!_0x1ad429[_0x164a6d(0x1ab)]['error']||_0x1ad429['body'][_0x164a6d(0x1bb)][_0x164a6d(0x1aa)]===0x1;}async[_0x3f3b9e(0x162)](_0x126a55){const _0x415973=_0x3f3b9e,{unitId:_0x4edce6}=_0x126a55,_0x545032=_0x126a55[_0x415973(0x1d2)],_0x3c5b44={'memberId':this[_0x415973(0x1c5)]['getCurrentUser']()['userID'],'unitId':_0x4edce6,'threadId':_0x545032,'solved':_0x126a55['resolved']?_0x218ff7[_0x415973(0x1cf)]:_0x218ff7['OpenOrReOpen']},_0x5cbd0e=await this[_0x415973(0x1cc)][_0x415973(0x1a6)](_0x415973(0x19f)+_0x4edce6+_0x415973(0x167),{'body':_0x3c5b44});return!_0x5cbd0e[_0x415973(0x1ab)]['error']||_0x5cbd0e[_0x415973(0x1ab)]['error'][_0x415973(0x1aa)]===0x1;}async['deleteComment'](_0x4a98f4,_0xdb2860,_0x50c03e,_0x3a45f7){const _0x9dfb51=_0x3f3b9e,_0xc164b8={'memberId':(await this[_0x9dfb51(0x180)][_0x9dfb51(0x199)](_0x4a98f4))[_0x9dfb51(0x169)](),'threadId':_0x50c03e,'replyId':_0x3a45f7,'unitId':_0x4a98f4},_0x2b19ac=await this[_0x9dfb51(0x1cc)][_0x9dfb51(0x1a6)](_0x9dfb51(0x19f)+_0x4a98f4+'/delete',{'body':_0xc164b8});return!_0x2b19ac[_0x9dfb51(0x1ab)][_0x9dfb51(0x1bb)]||_0x2b19ac[_0x9dfb51(0x1ab)][_0x9dfb51(0x1bb)][_0x9dfb51(0x1aa)]===0x1;}async[_0x3f3b9e(0x1c9)](_0x569fe5,_0xd3a4a1,_0x2eec93){const _0x4770b3=_0x3f3b9e,_0x4029b1={'unitId':_0x569fe5,'threadId':_0x2eec93},_0x2b931d=await this['_httpService']['post']('/universer-api/comment/unit/'+_0x569fe5+_0x4770b3(0x198),{'body':_0x4029b1}),_0x4f4664=_0x2eec93['map'](_0x2f08a7=>_0x28bd6c(_0x2b931d[_0x4770b3(0x1ab)][_0x4770b3(0x194)][_0x2f08a7],_0x569fe5,_0xd3a4a1))[_0x4770b3(0x187)](Boolean);return Object[_0x4770b3(0x170)](_0x2b931d[_0x4770b3(0x1ab)][_0x4770b3(0x18d)])['forEach'](_0x4a0d10=>{const _0x519539=_0x4770b3;this['_userService'][_0x519539(0x160)](_0x4a0d10);}),_0x4f4664;}['saveCommentToSnapshot'](_0x4bd6bb){const _0x574855=_0x3f3b9e;return{'id':_0x4bd6bb['id'],'threadId':_0x4bd6bb[_0x574855(0x1d2)],'ref':_0x4bd6bb['ref']};}};_0x1ee8ec=_0x491e56([_0xce3454(0x0,_0xc82365[_0x3f3b9e(0x1bf)](_0x481c25[_0x3f3b9e(0x1d5)])),_0xce3454(0x1,_0xc82365['Inject'](_0xc82365[_0x3f3b9e(0x176)])),_0xce3454(0x2,_0xc82365[_0x3f3b9e(0x1bf)](_0x4b7c90[_0x3f3b9e(0x190)])),_0xce3454(0x3,_0xc82365[_0x3f3b9e(0x1bf)](_0xc82365[_0x3f3b9e(0x15f)]))],_0x1ee8ec);var _0x180f3a=Object['getOwnPropertyDescriptor'],_0x343863=(_0x348e90,_0x3d654e,_0x59482a,_0x1ba828)=>{for(var _0x504ec2=_0x1ba828>0x1?void 0x0:_0x1ba828?_0x180f3a(_0x3d654e,_0x59482a):_0x3d654e,_0x1820a7=_0x348e90['length']-0x1,_0x414143;_0x1820a7>=0x0;_0x1820a7--)(_0x414143=_0x348e90[_0x1820a7])&&(_0x504ec2=_0x414143(_0x504ec2)||_0x504ec2);return _0x504ec2;},_0x55713f=(_0x4f6ef3,_0x54613f)=>(_0x40241a,_0x3a3f66)=>_0x54613f(_0x40241a,_0x3a3f66,_0x4f6ef3);let _0x4ce67b=class extends _0xc82365['Disposable']{constructor(_0x41b1a7,_0x17b06f){const _0x4d3625=_0x3f3b9e;super(),this['_threadCommentDataSourceService']=_0x41b1a7,this['_threadCommentDataSource']=_0x17b06f,this[_0x4d3625(0x1be)]();}[_0x3f3b9e(0x1be)](){const _0x53edf5=_0x3f3b9e;this[_0x53edf5(0x1af)]['dataSource']=this['_threadCommentDataSource'],this[_0x53edf5(0x1af)][_0x53edf5(0x1ae)]=!0x1;}};_0x4ce67b=_0x343863([_0x55713f(0x0,_0x435464[_0x3f3b9e(0x193)]),_0x55713f(0x1,_0xc82365[_0x3f3b9e(0x1bf)](_0x1ee8ec))],_0x4ce67b);var _0x88c4ae=Object[_0x3f3b9e(0x1c4)],_0x54ebfc=Object[_0x3f3b9e(0x185)],_0x1972d4=(_0x1ba96b,_0x3770d5,_0x22cd4c)=>_0x3770d5 in _0x1ba96b?_0x88c4ae(_0x1ba96b,_0x3770d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22cd4c}):_0x1ba96b[_0x3770d5]=_0x22cd4c,_0x32ec8a=(_0x11230d,_0x44e3c7,_0x272320,_0x4196da)=>{for(var _0x5bf3f6=_0x4196da>0x1?void 0x0:_0x4196da?_0x54ebfc(_0x44e3c7,_0x272320):_0x44e3c7,_0x4ed622=_0x11230d['length']-0x1,_0x182eb9;_0x4ed622>=0x0;_0x4ed622--)(_0x182eb9=_0x11230d[_0x4ed622])&&(_0x5bf3f6=_0x182eb9(_0x5bf3f6)||_0x5bf3f6);return _0x5bf3f6;},_0x1d369f=(_0x58c766,_0x36d79)=>(_0x460bd3,_0x3cdce3)=>_0x36d79(_0x460bd3,_0x3cdce3,_0x58c766),_0x2d65b0=(_0x7cc5e6,_0x3fb421,_0x5834cc)=>_0x1972d4(_0x7cc5e6,typeof _0x3fb421!='symbol'?_0x3fb421+'':_0x3fb421,_0x5834cc);_0x5aef6a[_0x3f3b9e(0x1bc)]=class extends _0xc82365['Plugin']{constructor(_0x100ff7=_0x13396e,_0x2a858a,_0x58553b){const _0x7af5ca=_0x3f3b9e;super(),this['_config']=_0x100ff7,this[_0x7af5ca(0x186)]=_0x2a858a,this['_configService']=_0x58553b;const {..._0x1bf34f}=_0xc82365[_0x7af5ca(0x1d0)]({},_0x13396e,this[_0x7af5ca(0x182)]);this[_0x7af5ca(0x191)][_0x7af5ca(0x161)](_0x18bcdf,_0x1bf34f);}['onStarting'](){[[_0x1ee8ec],[_0x4ce67b],[_0x19aef7]]['forEach'](_0x20aeb8=>{const _0xaceafa=_0x28a8;this[_0xaceafa(0x186)]['add'](_0x20aeb8);});}['onReady'](){const _0x691d06=_0x3f3b9e;this['_injector'][_0x691d06(0x1b4)](_0x4ce67b),this[_0x691d06(0x186)][_0x691d06(0x1b4)](_0x19aef7);}},_0x2d65b0(_0x5aef6a[_0x3f3b9e(0x1bc)],'pluginName',_0x3b43ae),_0x2d65b0(_0x5aef6a[_0x3f3b9e(0x1bc)],_0x3f3b9e(0x1a8),_0xc82365[_0x3f3b9e(0x195)]['UNIVER_UNKNOWN']),_0x5aef6a['UniverThreadCommentDataSourcePlugin']=_0x32ec8a([_0xc82365[_0x3f3b9e(0x15b)](_0x3aebb4[_0x3f3b9e(0x19b)],_0x4b7c90[_0x3f3b9e(0x158)],_0x4ce647[_0x3f3b9e(0x1ad)]),_0x1d369f(0x1,_0xc82365[_0x3f3b9e(0x1bf)](_0xc82365[_0x3f3b9e(0x15f)])),_0x1d369f(0x2,_0xc82365['IConfigService'])],_0x5aef6a[_0x3f3b9e(0x1bc)]),Object['defineProperty'](_0x5aef6a,Symbol[_0x3f3b9e(0x19c)],{'value':'Module'});}));function _0x28a8(_0x2a4037,_0x1b3767){const _0x33c242=_0x33c2();return _0x28a8=function(_0x28a88e,_0x1edbf0){_0x28a88e=_0x28a88e-0x158;let _0x103393=_0x33c242[_0x28a88e];return _0x103393;},_0x28a8(_0x2a4037,_0x1b3767);}function _0x33c2(){const _0x7089a0=['UniverCollaborationClientPlugin','28rBbWbe','rxjs','DependentOn','UniverProThreadCommentDatasource','getUser','getComment','Injector','addUser','setConfig','resolveComment','createTimestamp','slice','dayjs','thread-comment-data-source.config','/solved','forEach','getMemberID','3856sERCJM','amd','UniverThreadComment','personId','/edit','2356045LIMyPx','values','/universer-api/user/list','rangeId','rangeType','Disposable','subscribe','UserManagerService','_init','root','_threadCommentModel','pipe','UniverProLicense','stringify','commentUpdate$','Add','Edit','_sessionService','_initUserSync','_config','Delete','@univerjs/network','getOwnPropertyDescriptor','_injector','filter','@univerjs/thread-comment-ui','parentId','Unknown','Reply','updateComment','users','replyId','userId','CollaborationSessionService','_configService','@univerjs-pro/license','IThreadCommentDataSourceService','comments','UniverInstanceType','@univerjs-pro/collaboration-client','exports','/list','requireSession','payload','UniverThreadCommentUIPlugin','toStringTag','UNRECOGNIZED','640381xqOyQV','/universer-api/comment/unit/','user','CustomRangeType','10297EoTNGs','content','/add','reply','post','customRanges','type','disposeWithMe','code','body','@univerjs/thread-comment','UniverLicensePlugin','syncUpdateMutationToColla','_threadCommentDataSourceService','5785986JZWXHf','unitId','ThreadCommentModel','Solve','get','delete','UniverCore','size','/reply','6577938HiGudu','solved','error','UniverThreadCommentDataSourcePlugin','YYYY/MM/DD\x20HH:mm','_initDataSource','Inject','getUnit','replies','UniverThreadCommentUi','757202oKHMsj','defineProperty','_userService','_commentService','format','@univerjs/core','listComments','length','parse','_httpService','COMMENT','function','Solved','merge','object','threadId','find','UniverProCollaborationClient','HTTPService','map','181503MUrHEJ'];_0x33c2=function(){return _0x7089a0;};return _0x33c2();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/thread-comment-datasource",
|
|
3
|
-
"version": "0.7.0-nightly.
|
|
3
|
+
"version": "0.7.0-nightly.202505021607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"rxjs": ">=7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@univerjs-pro/collaboration-client": "0.7.0-nightly.
|
|
49
|
-
"@univerjs-pro/license": "0.7.0-nightly.
|
|
50
|
-
"@univerjs/core": "0.7.0-nightly.
|
|
48
|
+
"@univerjs-pro/collaboration-client": "0.7.0-nightly.202505021607",
|
|
49
|
+
"@univerjs-pro/license": "0.7.0-nightly.202505021607",
|
|
50
|
+
"@univerjs/core": "0.7.0-nightly.202505021607",
|
|
51
|
+
"@univerjs/network": "0.7.0-nightly.202505021607",
|
|
51
52
|
"@univerjs/protocol": "0.1.46-alpha.3",
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/thread-comment": "0.7.0-nightly.
|
|
54
|
-
"@univerjs/thread-comment-ui": "0.7.0-nightly.202505011607"
|
|
53
|
+
"@univerjs/thread-comment": "0.7.0-nightly.202505021607",
|
|
54
|
+
"@univerjs/thread-comment-ui": "0.7.0-nightly.202505021607"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"rxjs": "^7.8.1",
|