@univerjs-pro/thread-comment-datasource 0.8.0-nightly.202505311606 → 0.8.0-nightly.202506011606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x1cc326=_0x2488;(function(_0x1e7bf7,_0x76045){const _0x16b439=_0x2488,_0xcb3009=_0x1e7bf7();while(!![]){try{const _0x2d013c=parseInt(_0x16b439(0x225))/0x1+parseInt(_0x16b439(0x1fe))/0x2+-parseInt(_0x16b439(0x224))/0x3*(-parseInt(_0x16b439(0x222))/0x4)+parseInt(_0x16b439(0x1da))/0x5*(-parseInt(_0x16b439(0x226))/0x6)+-parseInt(_0x16b439(0x21b))/0x7*(parseInt(_0x16b439(0x1c1))/0x8)+-parseInt(_0x16b439(0x21e))/0x9*(parseInt(_0x16b439(0x1dc))/0xa)+-parseInt(_0x16b439(0x21d))/0xb;if(_0x2d013c===_0x76045)break;else _0xcb3009['push'](_0xcb3009['shift']());}catch(_0x1e1d3e){_0xcb3009['push'](_0xcb3009['shift']());}}}(_0x58c4,0xd0eda));Object['defineProperty'](exports,Symbol[_0x1cc326(0x22b)],{'value':_0x1cc326(0x1e8)});const b=require(_0x1cc326(0x206)),T=require('@univerjs-pro/license'),c=require('@univerjs/core'),j=require(_0x1cc326(0x1cb)),M=require(_0x1cc326(0x223)),w=require('rxjs'),P=require(_0x1cc326(0x22e)),U=_0x1cc326(0x1b6);var I=(_0xe1f0bf=>(_0xe1f0bf[_0xe1f0bf[_0x1cc326(0x1cf)]=0x0]=_0x1cc326(0x1cf),_0xe1f0bf[_0xe1f0bf['Solved']=0x1]=_0x1cc326(0x21a),_0xe1f0bf[_0xe1f0bf[_0x1cc326(0x201)]=-0x1]=_0x1cc326(0x201),_0xe1f0bf))(I||{}),v=(_0x3e1181=>(_0x3e1181[_0x3e1181['Unknown']=0x0]=_0x1cc326(0x1f5),_0x3e1181[_0x3e1181[_0x1cc326(0x1be)]=0x1]=_0x1cc326(0x1be),_0x3e1181[_0x3e1181[_0x1cc326(0x21f)]=0x2]=_0x1cc326(0x21f),_0x3e1181[_0x3e1181[_0x1cc326(0x1ca)]=0x3]=_0x1cc326(0x1ca),_0x3e1181[_0x3e1181['Delete']=0x4]=_0x1cc326(0x1f0),_0x3e1181[_0x3e1181['Solve']=0x5]=_0x1cc326(0x1ee),_0x3e1181[_0x3e1181['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3e1181))(v||{});const f=_0x44b55c=>c['dayjs'](new Date(+_0x44b55c))[_0x1cc326(0x1b2)](_0x1cc326(0x1f2)),R=async(_0x40aa30,_0x10f7c5)=>{const _0x1e067a=_0x1cc326,_0x4c205f=_0x40aa30['get'](c[_0x1e067a(0x1f3)]),_0x495dce=_0x40aa30[_0x1e067a(0x203)](P['HTTPService']);_0x10f7c5[_0x1e067a(0x1b5)](_0xd19aa3=>{const _0x343a64=_0x1e067a;_0x4c205f[_0x343a64(0x1fa)](_0xd19aa3)&&_0x10f7c5[_0x343a64(0x1ce)](_0xd19aa3);}),_0x10f7c5[_0x1e067a(0x1db)]&&(await _0x495dce[_0x1e067a(0x203)](_0x1e067a(0x1f8),{'params':{'userIDs':[..._0x10f7c5]}}))[_0x1e067a(0x1ed)][_0x1e067a(0x217)][_0x1e067a(0x1b5)](_0x15ecd1=>{const _0x3cad50=_0x1e067a;_0x15ecd1&&_0x4c205f[_0x3cad50(0x1b3)](_0x15ecd1);});};function _0x2488(_0x270ce7,_0x38354f){const _0x58c4af=_0x58c4();return _0x2488=function(_0x248805,_0x502246){_0x248805=_0x248805-0x1b0;let _0x5ce360=_0x58c4af[_0x248805];return _0x5ce360;},_0x2488(_0x270ce7,_0x38354f);}var $=Object[_0x1cc326(0x1e9)],E=(_0x1b0074,_0x1c2f59,_0x168e98,_0x35cb8c)=>{const _0x3644de=_0x1cc326;for(var _0x2ac6fa=_0x35cb8c>0x1?void 0x0:_0x35cb8c?$(_0x1c2f59,_0x168e98):_0x1c2f59,_0x576937=_0x1b0074[_0x3644de(0x208)]-0x1,_0x39a70b;_0x576937>=0x0;_0x576937--)(_0x39a70b=_0x1b0074[_0x576937])&&(_0x2ac6fa=_0x39a70b(_0x2ac6fa)||_0x2ac6fa);return _0x2ac6fa;},S=(_0x3dd708,_0x3dcc82)=>(_0x1d71da,_0x456961)=>_0x3dcc82(_0x1d71da,_0x456961,_0x3dd708);let p=class extends c['Disposable']{constructor(_0x1638c7,_0x24cfcf,_0xd938d3,_0x1c68bd){const _0x36c022=_0x1cc326;super(),this['_commentService']=_0x1638c7,this[_0x36c022(0x20d)]=_0x24cfcf,this['_userService']=_0xd938d3,this['_injector']=_0x1c68bd,this[_0x36c022(0x1d4)](),this[_0x36c022(0x200)]();}[_0x1cc326(0x200)](){const _0x4103c5=_0x1cc326;this['disposeWithMe'](this[_0x4103c5(0x20d)][_0x4103c5(0x1fb)][_0x4103c5(0x1e2)](w['bufferTime'](0x10))[_0x4103c5(0x1c5)](_0x3cb205=>{const _0x45d465=_0x4103c5,_0x1cc0a6=new Set();_0x3cb205['forEach'](_0x215d25=>{const _0x3ad5ff=_0x2488;switch(_0x215d25[_0x3ad5ff(0x229)]){case _0x3ad5ff(0x22f):{const _0x2c3ff6=_0x215d25['payload'][_0x3ad5ff(0x1f1)];_0x1cc0a6['add'](_0x2c3ff6);break;}}}),R(this[_0x45d465(0x20a)],_0x1cc0a6);}));}['_init'](){const _0x28369a=_0x1cc326;this[_0x28369a(0x1e7)](this['_commentService'][_0x28369a(0x1fb)][_0x28369a(0x1c5)](async _0x5ea780=>{const _0x2bec2c=_0x28369a;var _0xf305fe,_0x4963b1,_0x3bef13,_0x4c3c27;const _0x72d20e=(_0xf305fe=this[_0x2bec2c(0x20d)][_0x2bec2c(0x1e5)](_0x5ea780[_0x2bec2c(0x1bb)])[_0x2bec2c(0x1b8)](_0x472df3=>_0x472df3[_0x2bec2c(0x1d9)]===_0x5ea780[_0x2bec2c(0x1d9)]))==null?void 0x0:_0xf305fe[_0x2bec2c(0x1c6)];if(!_0x72d20e)return;const {unitId:_0x483338,subUnitId:_0x4d94d4}=_0x72d20e;switch(_0x5ea780['user']&&this[_0x2bec2c(0x204)][_0x2bec2c(0x1b3)](_0x5ea780[_0x2bec2c(0x22c)]),_0x5ea780[_0x2bec2c(0x229)]){case v[_0x2bec2c(0x1be)]:break;case v[_0x2bec2c(0x21f)]:{this[_0x2bec2c(0x20d)][_0x2bec2c(0x1c8)](_0x483338,_0x4d94d4,{'unitId':_0x483338,'subUnitId':_0x4d94d4,'ref':'','id':_0x5ea780[_0x2bec2c(0x1d7)],'dT':f(+_0x5ea780[_0x2bec2c(0x211)]),'threadId':_0x5ea780[_0x2bec2c(0x1d9)],'personId':(_0x3bef13=(_0x4963b1=_0x5ea780[_0x2bec2c(0x22c)])==null?void 0x0:_0x4963b1[_0x2bec2c(0x20e)])!=null?_0x3bef13:_0x5ea780[_0x2bec2c(0x1c9)],'text':JSON[_0x2bec2c(0x1b9)](_0x5ea780[_0x2bec2c(0x22a)]),'parentId':_0x72d20e['id']});break;}case v[_0x2bec2c(0x1f0)]:{const _0x515ab1=this[_0x2bec2c(0x20d)][_0x2bec2c(0x1cd)](_0x483338,_0x4d94d4,_0x5ea780[_0x2bec2c(0x1d7)]);_0x515ab1&&_0x515ab1['parentId']&&this['_threadCommentModel'][_0x2bec2c(0x227)](_0x483338,_0x4d94d4,_0x5ea780[_0x2bec2c(0x1d7)]);break;}case v[_0x2bec2c(0x1ca)]:{this[_0x2bec2c(0x20d)][_0x2bec2c(0x1e0)](_0x483338,_0x4d94d4,{'commentId':_0x5ea780['replyId'],'text':JSON['parse'](_0x5ea780[_0x2bec2c(0x22a)])});break;}case v[_0x2bec2c(0x1ee)]:{const _0x32a155=(_0x4c3c27=this['_threadCommentModel'][_0x2bec2c(0x1e5)](_0x5ea780['unitId'])[_0x2bec2c(0x1b8)](_0x9b630b=>_0x9b630b[_0x2bec2c(0x1d9)]===_0x5ea780['threadId']))==null?void 0x0:_0x4c3c27[_0x2bec2c(0x1c6)];_0x32a155&&this[_0x2bec2c(0x20d)][_0x2bec2c(0x1d0)](_0x483338,_0x4d94d4,_0x32a155['id'],_0x5ea780[_0x2bec2c(0x1c3)]===I['Solved']);break;}}}));}};p=E([S(0x0,c[_0x1cc326(0x1f7)](b[_0x1cc326(0x1ef)])),S(0x1,c[_0x1cc326(0x1f7)](M[_0x1cc326(0x207)])),S(0x2,c[_0x1cc326(0x1f7)](c[_0x1cc326(0x1f3)])),S(0x3,c['Inject'](c[_0x1cc326(0x1e1)]))],p);const q='thread-comment-data-source.config',D={};var A=Object[_0x1cc326(0x1e9)],x=(_0x5e303b,_0x119924,_0x4b5ab2,_0x266470)=>{const _0x504cc9=_0x1cc326;for(var _0x1c2d27=_0x266470>0x1?void 0x0:_0x266470?A(_0x119924,_0x4b5ab2):_0x119924,_0x492737=_0x5e303b[_0x504cc9(0x208)]-0x1,_0x5b662c;_0x492737>=0x0;_0x492737--)(_0x5b662c=_0x5e303b[_0x492737])&&(_0x1c2d27=_0x5b662c(_0x1c2d27)||_0x1c2d27);return _0x1c2d27;},_=(_0x263202,_0x2224cd)=>(_0x253bce,_0x25f46e)=>_0x2224cd(_0x253bce,_0x25f46e,_0x263202);function Y(_0x393f82,_0x2caa40){const _0x19a6e=_0x1cc326,_0x45edbf=_0x393f82[_0x19a6e(0x202)][0x0];return{..._0x2caa40,'id':_0x45edbf[_0x19a6e(0x1d7)],'resolved':_0x393f82[_0x19a6e(0x1c3)]===0x1,'dT':f(_0x45edbf[_0x19a6e(0x211)]),'personId':_0x45edbf[_0x19a6e(0x1c9)],'threadId':_0x45edbf[_0x19a6e(0x1d9)]};}function G(_0x803dcf,_0x3da555,_0x1ceea4){const _0x22a337=_0x1cc326;var _0x3e1f2f,_0x3e83a0;if(((_0x3e83a0=(_0x3e1f2f=_0x803dcf==null?void 0x0:_0x803dcf[_0x22a337(0x202)])==null?void 0x0:_0x3e1f2f['length'])!=null?_0x3e83a0:0x0)>0x0){const _0x3a272e=(_0x38ceea,_0x1ae59b)=>({'id':_0x38ceea[_0x22a337(0x1d7)],'threadId':_0x38ceea['threadId'],'dT':f(_0x38ceea['createTimestamp']),'personId':_0x38ceea[_0x22a337(0x1c9)],'resolved':_0x803dcf[_0x22a337(0x1c3)]===I[_0x22a337(0x21a)],'unitId':_0x3da555,'subUnitId':_0x1ceea4,'text':JSON[_0x22a337(0x1b9)](_0x38ceea[_0x22a337(0x22a)]),'parentId':_0x1ae59b}),_0x4a5646=_0x3a272e(_0x803dcf[_0x22a337(0x202)][0x0]);return{..._0x4a5646,'children':_0x803dcf[_0x22a337(0x202)][_0x22a337(0x228)](0x1)[_0x22a337(0x1f9)](_0x33e782=>_0x3a272e(_0x33e782,_0x4a5646['id']))};}return null;}function _0x58c4(){const _0x204f76=['slice','type','content','toStringTag','user','CustomRangeType','@univerjs/network','add','dataSource','/list','IConfigService','format','addUser','reply','forEach','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','defineProperty','find','parse','UniverThreadCommentUIPlugin','unitId','HTTPService','_initDataSource','Add','listComments','onStarting','3872296JXMKIO','COMMENT','solved','CollaborationSessionService','subscribe','root','_config','addComment','userId','Edit','@univerjs/thread-comment-ui','error','getComment','delete','OpenOrReOpen','resolveComment','comments','IThreadCommentDataSourceService','rangeType','_init','ref','rangeId','replyId','comment','threadId','95ZNcBYZ','size','110sfuPfE','values','post','/universer-api/comment/unit/','updateComment','Injector','pipe','pluginName','code','getUnit','_sessionService','disposeWithMe','Module','getOwnPropertyDescriptor','requireSession','merge','UniverLicensePlugin','body','Solve','CommentService','Delete','personId','YYYY/MM/DD\x20HH:mm','UserManagerService','dayjs','Unknown','/delete','Inject','/universer-api/user/list','map','getUser','commentUpdate$','_configService','UniverCollaborationClientPlugin','3339356XKNHIR','resolved','_initUserSync','UNRECOGNIZED','replies','get','_userService','_threadCommentDataSource','@univerjs-pro/collaboration-client','ThreadCommentModel','length','saveCommentToSnapshot','_injector','_threadCommentDataSourceService','filter','_threadCommentModel','userID','getCurrentUser','customRanges','createTimestamp','_httpService','syncUpdateMutationToColla','getMemberID','/solved','stringify','users','UniverThreadCommentDataSourcePlugin','symbol','Solved','14QbNzdo','Plugin','4324034BKTVrE','871209CiwEsU','Reply','setConfig','/add','4jwkWgA','@univerjs/thread-comment','4249419XTqdDj','1101480eBkzbX','286068ExWYGb','deleteComment'];_0x58c4=function(){return _0x204f76;};return _0x58c4();}let g=class{constructor(_0x1536e0,_0x4c6216,_0x4b9c07,_0x2a08bc){const _0x56d4ec=_0x1cc326;this['_httpService']=_0x1536e0,this[_0x56d4ec(0x204)]=_0x4c6216,this[_0x56d4ec(0x1e6)]=_0x4b9c07,this[_0x56d4ec(0x20a)]=_0x2a08bc;}async[_0x1cc326(0x1c8)](_0x50ddf3){const _0x209163=_0x1cc326;var _0x1877db,_0x6d5ebf;const {parentId:_0x5cbf45,unitId:_0x1cc7f2,text:_0x129a5f,threadId:_0x4dab95}=_0x50ddf3,_0x3b0f6b=(_0x6d5ebf=(_0x1877db=_0x129a5f[_0x209163(0x210)])==null?void 0x0:_0x1877db[_0x209163(0x20c)](_0x53507e=>_0x53507e[_0x209163(0x1d3)]===c[_0x209163(0x22d)]['COMMENT'])[_0x209163(0x1f9)](_0x4b27f6=>_0x4b27f6['rangeId']))!=null?_0x6d5ebf:[],_0x3da3e7=JSON[_0x209163(0x216)](_0x129a5f),_0x43b2cc=(await this['_sessionService'][_0x209163(0x1ea)](_0x1cc7f2))[_0x209163(0x214)]();if(_0x5cbf45){const _0xc56490={'memberId':_0x43b2cc,'unitId':_0x1cc7f2,'content':_0x3da3e7,'mention':_0x3b0f6b,'threadId':_0x4dab95},_0xaf2c5=(await this['_httpService'][_0x209163(0x1de)](_0x209163(0x1df)+_0x1cc7f2+'/reply',{'body':_0xc56490}))[_0x209163(0x1ed)][_0x209163(0x1b4)];return{..._0x50ddf3,'id':_0xaf2c5['replyId'],'dT':c[_0x209163(0x1f4)](+_0xaf2c5[_0x209163(0x211)])[_0x209163(0x1b2)](_0x209163(0x1f2)),'personId':_0xaf2c5['userId']};}else{const _0x4cdfb8={'memberId':_0x43b2cc,'unitId':_0x1cc7f2,'content':_0x3da3e7,'mention':_0x3b0f6b},_0x2dd799=await this[_0x209163(0x212)]['post'](_0x209163(0x1df)+_0x1cc7f2+_0x209163(0x221),{'body':_0x4cdfb8});return Y(_0x2dd799[_0x209163(0x1ed)][_0x209163(0x1d8)],_0x50ddf3);}}async['updateComment'](_0x1842b5){const _0x1b1f56=_0x1cc326;var _0x333de3,_0x1ab8e7;const {text:_0x3da809,unitId:_0x5dbf42}=_0x1842b5,_0x1c880e=(_0x1ab8e7=(_0x333de3=_0x3da809['customRanges'])==null?void 0x0:_0x333de3[_0x1b1f56(0x20c)](_0x3ce2f2=>_0x3ce2f2['rangeType']===c[_0x1b1f56(0x22d)][_0x1b1f56(0x1c2)])[_0x1b1f56(0x1f9)](_0x2de718=>_0x2de718[_0x1b1f56(0x1d6)]))!=null?_0x1ab8e7:[],_0x42674c=JSON[_0x1b1f56(0x216)](_0x3da809),_0x3c0871=_0x1842b5[_0x1b1f56(0x1d9)],_0x1f7ec2=_0x1842b5['id'],_0x272586={'memberId':(await this[_0x1b1f56(0x1e6)]['requireSession'](_0x5dbf42))[_0x1b1f56(0x214)](),'unitId':_0x5dbf42,'threadId':_0x3c0871,'mention':_0x1c880e,'content':_0x42674c,'replyId':_0x1f7ec2},_0x177a42=await this['_httpService'][_0x1b1f56(0x1de)]('/universer-api/comment/unit/'+_0x5dbf42+'/edit',{'body':_0x272586});return!_0x177a42[_0x1b1f56(0x1ed)][_0x1b1f56(0x1cc)]||_0x177a42[_0x1b1f56(0x1ed)][_0x1b1f56(0x1cc)][_0x1b1f56(0x1e4)]===0x1;}async[_0x1cc326(0x1d0)](_0xf4b202){const _0x49b7f2=_0x1cc326,{unitId:_0x486071}=_0xf4b202,_0x58ef00=_0xf4b202[_0x49b7f2(0x1d9)],_0x46dc4a={'memberId':this[_0x49b7f2(0x204)][_0x49b7f2(0x20f)]()[_0x49b7f2(0x20e)],'unitId':_0x486071,'threadId':_0x58ef00,'solved':_0xf4b202[_0x49b7f2(0x1ff)]?I['Solved']:I[_0x49b7f2(0x1cf)]},_0x55157c=await this['_httpService'][_0x49b7f2(0x1de)]('/universer-api/comment/unit/'+_0x486071+_0x49b7f2(0x215),{'body':_0x46dc4a});return!_0x55157c['body'][_0x49b7f2(0x1cc)]||_0x55157c[_0x49b7f2(0x1ed)]['error'][_0x49b7f2(0x1e4)]===0x1;}async[_0x1cc326(0x227)](_0x4ebe09,_0x17bd4b,_0x14b42c,_0xd9472){const _0x415c1a=_0x1cc326,_0x2fcff5={'memberId':(await this[_0x415c1a(0x1e6)][_0x415c1a(0x1ea)](_0x4ebe09))[_0x415c1a(0x214)](),'threadId':_0x14b42c,'replyId':_0xd9472,'unitId':_0x4ebe09},_0x328008=await this[_0x415c1a(0x212)][_0x415c1a(0x1de)]('/universer-api/comment/unit/'+_0x4ebe09+_0x415c1a(0x1f6),{'body':_0x2fcff5});return!_0x328008[_0x415c1a(0x1ed)][_0x415c1a(0x1cc)]||_0x328008['body'][_0x415c1a(0x1cc)][_0x415c1a(0x1e4)]===0x1;}async[_0x1cc326(0x1bf)](_0x23847e,_0x5551a3,_0x9aa56a){const _0x57571b=_0x1cc326,_0x126873={'unitId':_0x23847e,'threadId':_0x9aa56a},_0x1b2f12=await this[_0x57571b(0x212)][_0x57571b(0x1de)]('/universer-api/comment/unit/'+_0x23847e+_0x57571b(0x1b0),{'body':_0x126873}),_0x3d5d7a=_0x9aa56a[_0x57571b(0x1f9)](_0x25a320=>G(_0x1b2f12[_0x57571b(0x1ed)][_0x57571b(0x1d1)][_0x25a320],_0x23847e,_0x5551a3))[_0x57571b(0x20c)](Boolean);return Object[_0x57571b(0x1dd)](_0x1b2f12[_0x57571b(0x1ed)][_0x57571b(0x217)])['forEach'](_0x8e94ab=>{const _0x52a549=_0x57571b;this[_0x52a549(0x204)][_0x52a549(0x1b3)](_0x8e94ab);}),_0x3d5d7a;}[_0x1cc326(0x209)](_0x5eb727){const _0x1e42a2=_0x1cc326;return{'id':_0x5eb727['id'],'threadId':_0x5eb727['threadId'],'ref':_0x5eb727[_0x1e42a2(0x1d5)]};}};g=x([_(0x0,c['Inject'](P[_0x1cc326(0x1bc)])),_(0x1,c[_0x1cc326(0x1f7)](c[_0x1cc326(0x1f3)])),_(0x2,c[_0x1cc326(0x1f7)](b[_0x1cc326(0x1c4)])),_(0x3,c[_0x1cc326(0x1f7)](c[_0x1cc326(0x1e1)]))],g);var H=Object[_0x1cc326(0x1e9)],J=(_0x53a139,_0x559b97,_0x5745bc,_0xfea45e)=>{const _0x4f0bef=_0x1cc326;for(var _0x1a2186=_0xfea45e>0x1?void 0x0:_0xfea45e?H(_0x559b97,_0x5745bc):_0x559b97,_0x46ff92=_0x53a139[_0x4f0bef(0x208)]-0x1,_0x2316b5;_0x46ff92>=0x0;_0x46ff92--)(_0x2316b5=_0x53a139[_0x46ff92])&&(_0x1a2186=_0x2316b5(_0x1a2186)||_0x1a2186);return _0x1a2186;},y=(_0xe1a153,_0x2de42b)=>(_0x1565df,_0x183b8f)=>_0x2de42b(_0x1565df,_0x183b8f,_0xe1a153);let C=class extends c['Disposable']{constructor(_0x46d151,_0x2ebd8c){const _0x231f8d=_0x1cc326;super(),this[_0x231f8d(0x20b)]=_0x46d151,this[_0x231f8d(0x205)]=_0x2ebd8c,this['_initDataSource']();}[_0x1cc326(0x1bd)](){const _0x4495bc=_0x1cc326;this[_0x4495bc(0x20b)][_0x4495bc(0x230)]=this[_0x4495bc(0x205)],this[_0x4495bc(0x20b)][_0x4495bc(0x213)]=!0x1;}};C=J([y(0x0,M[_0x1cc326(0x1d2)]),y(0x1,c['Inject'](g))],C);var F=Object[_0x1cc326(0x1b7)],L=Object[_0x1cc326(0x1e9)],Z=(_0x22fba4,_0x5b6860,_0x5bdbeb)=>_0x5b6860 in _0x22fba4?F(_0x22fba4,_0x5b6860,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bdbeb}):_0x22fba4[_0x5b6860]=_0x5bdbeb,W=(_0x2ae318,_0x488150,_0x9ad07,_0x1aaf94)=>{const _0x16fd41=_0x1cc326;for(var _0x5c913a=_0x1aaf94>0x1?void 0x0:_0x1aaf94?L(_0x488150,_0x9ad07):_0x488150,_0x5846cb=_0x2ae318[_0x16fd41(0x208)]-0x1,_0x55f836;_0x5846cb>=0x0;_0x5846cb--)(_0x55f836=_0x2ae318[_0x5846cb])&&(_0x5c913a=_0x55f836(_0x5c913a)||_0x5c913a);return _0x5c913a;},O=(_0x5df39e,_0x5b2fdb)=>(_0x232daa,_0x2cfe28)=>_0x5b2fdb(_0x232daa,_0x2cfe28,_0x5df39e),N=(_0x2a07b7,_0x3a92d5,_0x5e82c8)=>Z(_0x2a07b7,typeof _0x3a92d5!=_0x1cc326(0x219)?_0x3a92d5+'':_0x3a92d5,_0x5e82c8);exports['UniverThreadCommentDataSourcePlugin']=class extends c[_0x1cc326(0x21c)]{constructor(_0x13abdc=D,_0x5678c2,_0x2f87c6){const _0x203d23=_0x1cc326;super(),this['_config']=_0x13abdc,this['_injector']=_0x5678c2,this['_configService']=_0x2f87c6;const {..._0x18c611}=c[_0x203d23(0x1eb)]({},D,this[_0x203d23(0x1c7)]);this[_0x203d23(0x1fc)][_0x203d23(0x220)](q,_0x18c611);}[_0x1cc326(0x1c0)](){const _0x385060=_0x1cc326;[[g],[C],[p]][_0x385060(0x1b5)](_0x3fbec1=>{const _0x228cd9=_0x385060;this[_0x228cd9(0x20a)][_0x228cd9(0x22f)](_0x3fbec1);});}['onReady'](){const _0x485d92=_0x1cc326;this[_0x485d92(0x20a)][_0x485d92(0x203)](C),this[_0x485d92(0x20a)]['get'](p);}},N(exports['UniverThreadCommentDataSourcePlugin'],_0x1cc326(0x1e3),U),N(exports[_0x1cc326(0x218)],_0x1cc326(0x229),c['UniverInstanceType']['UNIVER_UNKNOWN']),exports['UniverThreadCommentDataSourcePlugin']=W([c['DependentOn'](j[_0x1cc326(0x1ba)],b[_0x1cc326(0x1fd)],T[_0x1cc326(0x1ec)]),O(0x1,c[_0x1cc326(0x1f7)](c[_0x1cc326(0x1e1)])),O(0x2,c[_0x1cc326(0x1b1)])],exports[_0x1cc326(0x218)]);
|
|
1
|
+
'use strict';const _0x43dfd0=_0x174e;(function(_0x49293f,_0x2618fd){const _0x375c5e=_0x174e,_0x3aeef5=_0x49293f();while(!![]){try{const _0xb543b6=-parseInt(_0x375c5e(0xd1))/0x1+parseInt(_0x375c5e(0xf1))/0x2*(parseInt(_0x375c5e(0xd4))/0x3)+-parseInt(_0x375c5e(0x96))/0x4*(-parseInt(_0x375c5e(0xc8))/0x5)+parseInt(_0x375c5e(0xe9))/0x6*(-parseInt(_0x375c5e(0xd2))/0x7)+parseInt(_0x375c5e(0xf7))/0x8*(parseInt(_0x375c5e(0xbc))/0x9)+-parseInt(_0x375c5e(0xa3))/0xa*(parseInt(_0x375c5e(0x84))/0xb)+parseInt(_0x375c5e(0x8b))/0xc*(parseInt(_0x375c5e(0xf4))/0xd);if(_0xb543b6===_0x2618fd)break;else _0x3aeef5['push'](_0x3aeef5['shift']());}catch(_0x110ebe){_0x3aeef5['push'](_0x3aeef5['shift']());}}}(_0x2f55,0x34f46));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x43dfd0(0xbe)});const b=require(_0x43dfd0(0x9c)),T=require(_0x43dfd0(0xf9)),c=require(_0x43dfd0(0x7f)),j=require(_0x43dfd0(0xfc)),M=require(_0x43dfd0(0x88)),w=require(_0x43dfd0(0xcf)),P=require(_0x43dfd0(0xa2)),U='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var I=(_0x57d785=>(_0x57d785[_0x57d785['OpenOrReOpen']=0x0]='OpenOrReOpen',_0x57d785[_0x57d785[_0x43dfd0(0xfd)]=0x1]='Solved',_0x57d785[_0x57d785[_0x43dfd0(0xf8)]=-0x1]=_0x43dfd0(0xf8),_0x57d785))(I||{}),v=(_0x2440af=>(_0x2440af[_0x2440af[_0x43dfd0(0xd0)]=0x0]='Unknown',_0x2440af[_0x2440af[_0x43dfd0(0xfb)]=0x1]=_0x43dfd0(0xfb),_0x2440af[_0x2440af[_0x43dfd0(0xb3)]=0x2]=_0x43dfd0(0xb3),_0x2440af[_0x2440af['Edit']=0x3]=_0x43dfd0(0xad),_0x2440af[_0x2440af[_0x43dfd0(0xc2)]=0x4]=_0x43dfd0(0xc2),_0x2440af[_0x2440af[_0x43dfd0(0xf6)]=0x5]=_0x43dfd0(0xf6),_0x2440af[_0x2440af[_0x43dfd0(0xf8)]=-0x1]=_0x43dfd0(0xf8),_0x2440af))(v||{});const f=_0x1a2095=>c[_0x43dfd0(0x82)](new Date(+_0x1a2095))[_0x43dfd0(0x91)](_0x43dfd0(0xf5)),R=async(_0x35650b,_0x3b91ba)=>{const _0x10ebf3=_0x43dfd0,_0x5993c5=_0x35650b[_0x10ebf3(0xdc)](c[_0x10ebf3(0x81)]),_0x4fbb72=_0x35650b[_0x10ebf3(0xdc)](P['HTTPService']);_0x3b91ba['forEach'](_0x2c922f=>{const _0x53556b=_0x10ebf3;_0x5993c5[_0x53556b(0x8d)](_0x2c922f)&&_0x3b91ba[_0x53556b(0xec)](_0x2c922f);}),_0x3b91ba[_0x10ebf3(0xe8)]&&(await _0x4fbb72[_0x10ebf3(0xdc)]('/universer-api/user/list',{'params':{'userIDs':[..._0x3b91ba]}}))['body'][_0x10ebf3(0x9b)][_0x10ebf3(0xb9)](_0x425ecc=>{const _0x17f870=_0x10ebf3;_0x425ecc&&_0x5993c5[_0x17f870(0x92)](_0x425ecc);});};var $=Object['getOwnPropertyDescriptor'],E=(_0x24c7ca,_0x48f21f,_0x1b553a,_0x4dd56f)=>{const _0x35b3a8=_0x43dfd0;for(var _0xf83589=_0x4dd56f>0x1?void 0x0:_0x4dd56f?$(_0x48f21f,_0x1b553a):_0x48f21f,_0x3abf49=_0x24c7ca[_0x35b3a8(0xc9)]-0x1,_0x5b66ee;_0x3abf49>=0x0;_0x3abf49--)(_0x5b66ee=_0x24c7ca[_0x3abf49])&&(_0xf83589=_0x5b66ee(_0xf83589)||_0xf83589);return _0xf83589;},S=(_0x274069,_0x310072)=>(_0x362697,_0x4907fe)=>_0x310072(_0x362697,_0x4907fe,_0x274069);let p=class extends c[_0x43dfd0(0xbd)]{constructor(_0x472319,_0x303fd5,_0x45c859,_0x316294){const _0x3c78d5=_0x43dfd0;super(),this[_0x3c78d5(0xcb)]=_0x472319,this['_threadCommentModel']=_0x303fd5,this[_0x3c78d5(0xc7)]=_0x45c859,this[_0x3c78d5(0xee)]=_0x316294,this[_0x3c78d5(0xa7)](),this[_0x3c78d5(0xfa)]();}[_0x43dfd0(0xfa)](){const _0x41e314=_0x43dfd0;this['disposeWithMe'](this['_threadCommentModel'][_0x41e314(0xd5)][_0x41e314(0xcc)](w[_0x41e314(0xab)](0x10))[_0x41e314(0x8e)](_0x1adb44=>{const _0x3a0c8e=_0x41e314,_0x3c7868=new Set();_0x1adb44[_0x3a0c8e(0xb9)](_0x4ae7ad=>{const _0x2a62e1=_0x3a0c8e;switch(_0x4ae7ad[_0x2a62e1(0xd7)]){case _0x2a62e1(0x9d):{const _0x282fbc=_0x4ae7ad[_0x2a62e1(0xb7)][_0x2a62e1(0x87)];_0x3c7868[_0x2a62e1(0x9d)](_0x282fbc);break;}}}),R(this[_0x3a0c8e(0xee)],_0x3c7868);}));}[_0x43dfd0(0xa7)](){const _0x5bedb1=_0x43dfd0;this['disposeWithMe'](this[_0x5bedb1(0xcb)]['commentUpdate$'][_0x5bedb1(0x8e)](async _0x5e8f29=>{const _0x3b8e75=_0x5bedb1;var _0x4ecbd7,_0x431b71,_0x9bf3ea,_0x40a239;const _0x33dc3d=(_0x4ecbd7=this[_0x3b8e75(0xc4)][_0x3b8e75(0xd9)](_0x5e8f29['unitId'])[_0x3b8e75(0xb1)](_0x339a2c=>_0x339a2c[_0x3b8e75(0xa6)]===_0x5e8f29[_0x3b8e75(0xa6)]))==null?void 0x0:_0x4ecbd7[_0x3b8e75(0xb4)];if(!_0x33dc3d)return;const {unitId:_0x2ee2f3,subUnitId:_0x3e6225}=_0x33dc3d;switch(_0x5e8f29[_0x3b8e75(0xca)]&&this['_userService']['addUser'](_0x5e8f29[_0x3b8e75(0xca)]),_0x5e8f29[_0x3b8e75(0xd7)]){case v[_0x3b8e75(0xfb)]:break;case v[_0x3b8e75(0xb3)]:{this['_threadCommentModel'][_0x3b8e75(0xce)](_0x2ee2f3,_0x3e6225,{'unitId':_0x2ee2f3,'subUnitId':_0x3e6225,'ref':'','id':_0x5e8f29[_0x3b8e75(0xdf)],'dT':f(+_0x5e8f29[_0x3b8e75(0xeb)]),'threadId':_0x5e8f29[_0x3b8e75(0xa6)],'personId':(_0x9bf3ea=(_0x431b71=_0x5e8f29[_0x3b8e75(0xca)])==null?void 0x0:_0x431b71[_0x3b8e75(0x80)])!=null?_0x9bf3ea:_0x5e8f29[_0x3b8e75(0x9a)],'text':JSON['parse'](_0x5e8f29[_0x3b8e75(0xb8)]),'parentId':_0x33dc3d['id']});break;}case v['Delete']:{const _0x7fc25e=this['_threadCommentModel'][_0x3b8e75(0xb0)](_0x2ee2f3,_0x3e6225,_0x5e8f29[_0x3b8e75(0xdf)]);_0x7fc25e&&_0x7fc25e[_0x3b8e75(0xf2)]&&this['_threadCommentModel'][_0x3b8e75(0x100)](_0x2ee2f3,_0x3e6225,_0x5e8f29['replyId']);break;}case v[_0x3b8e75(0xad)]:{this[_0x3b8e75(0xc4)][_0x3b8e75(0xed)](_0x2ee2f3,_0x3e6225,{'commentId':_0x5e8f29[_0x3b8e75(0xdf)],'text':JSON[_0x3b8e75(0xdb)](_0x5e8f29['content'])});break;}case v[_0x3b8e75(0xf6)]:{const _0x59bcdb=(_0x40a239=this[_0x3b8e75(0xc4)]['getUnit'](_0x5e8f29[_0x3b8e75(0x89)])[_0x3b8e75(0xb1)](_0x50ec36=>_0x50ec36['threadId']===_0x5e8f29[_0x3b8e75(0xa6)]))==null?void 0x0:_0x40a239[_0x3b8e75(0xb4)];_0x59bcdb&&this[_0x3b8e75(0xc4)][_0x3b8e75(0xdd)](_0x2ee2f3,_0x3e6225,_0x59bcdb['id'],_0x5e8f29[_0x3b8e75(0xe5)]===I[_0x3b8e75(0xfd)]);break;}}}));}};p=E([S(0x0,c[_0x43dfd0(0xa4)](b[_0x43dfd0(0xc0)])),S(0x1,c['Inject'](M[_0x43dfd0(0xba)])),S(0x2,c[_0x43dfd0(0xa4)](c['UserManagerService'])),S(0x3,c[_0x43dfd0(0xa4)](c['Injector']))],p);const q=_0x43dfd0(0x94),D={};var A=Object[_0x43dfd0(0xa5)],x=(_0x468946,_0x3fd454,_0x421a2a,_0x3c720f)=>{const _0x2d1d28=_0x43dfd0;for(var _0x142b2a=_0x3c720f>0x1?void 0x0:_0x3c720f?A(_0x3fd454,_0x421a2a):_0x3fd454,_0xff51fc=_0x468946[_0x2d1d28(0xc9)]-0x1,_0xf5698f;_0xff51fc>=0x0;_0xff51fc--)(_0xf5698f=_0x468946[_0xff51fc])&&(_0x142b2a=_0xf5698f(_0x142b2a)||_0x142b2a);return _0x142b2a;},_=(_0x49cb51,_0x13df44)=>(_0x3d0431,_0x2f05a7)=>_0x13df44(_0x3d0431,_0x2f05a7,_0x49cb51);function Y(_0x2a82,_0xf92903){const _0x914fa1=_0x43dfd0,_0x4035ac=_0x2a82['replies'][0x0];return{..._0xf92903,'id':_0x4035ac[_0x914fa1(0xdf)],'resolved':_0x2a82['solved']===0x1,'dT':f(_0x4035ac[_0x914fa1(0xeb)]),'personId':_0x4035ac[_0x914fa1(0x9a)],'threadId':_0x4035ac[_0x914fa1(0xa6)]};}function _0x174e(_0x3a3ec1,_0x59df10){const _0x2f556c=_0x2f55();return _0x174e=function(_0x174ed9,_0x16dfe3){_0x174ed9=_0x174ed9-0x7e;let _0x190971=_0x2f556c[_0x174ed9];return _0x190971;},_0x174e(_0x3a3ec1,_0x59df10);}function G(_0x26e132,_0x180f0d,_0x5cc55c){const _0xab770=_0x43dfd0;var _0x456c77,_0x4eb326;if(((_0x4eb326=(_0x456c77=_0x26e132==null?void 0x0:_0x26e132[_0xab770(0x85)])==null?void 0x0:_0x456c77[_0xab770(0xc9)])!=null?_0x4eb326:0x0)>0x0){const _0x3099bd=(_0xe3f8fe,_0xf28d66)=>({'id':_0xe3f8fe[_0xab770(0xdf)],'threadId':_0xe3f8fe[_0xab770(0xa6)],'dT':f(_0xe3f8fe[_0xab770(0xeb)]),'personId':_0xe3f8fe[_0xab770(0x9a)],'resolved':_0x26e132[_0xab770(0xe5)]===I[_0xab770(0xfd)],'unitId':_0x180f0d,'subUnitId':_0x5cc55c,'text':JSON[_0xab770(0xdb)](_0xe3f8fe[_0xab770(0xb8)]),'parentId':_0xf28d66}),_0x196017=_0x3099bd(_0x26e132[_0xab770(0x85)][0x0]);return{..._0x196017,'children':_0x26e132[_0xab770(0x85)][_0xab770(0xa8)](0x1)[_0xab770(0xd3)](_0x1bfb7c=>_0x3099bd(_0x1bfb7c,_0x196017['id']))};}return null;}let g=class{constructor(_0x120334,_0x52297a,_0x11a6c7,_0x107a9b){const _0x32c928=_0x43dfd0;this['_httpService']=_0x120334,this[_0x32c928(0xc7)]=_0x52297a,this[_0x32c928(0x102)]=_0x11a6c7,this[_0x32c928(0xee)]=_0x107a9b;}async[_0x43dfd0(0xce)](_0x29d74a){const _0x124dcc=_0x43dfd0;var _0x2e6a66,_0x12776a;const {parentId:_0x3f7cbf,unitId:_0x525faa,text:_0x121d9a,threadId:_0x103acc}=_0x29d74a,_0x33b3ad=(_0x12776a=(_0x2e6a66=_0x121d9a[_0x124dcc(0xc3)])==null?void 0x0:_0x2e6a66[_0x124dcc(0xae)](_0x30d772=>_0x30d772[_0x124dcc(0xe0)]===c[_0x124dcc(0xb2)][_0x124dcc(0x99)])['map'](_0x16fd6d=>_0x16fd6d['rangeId']))!=null?_0x12776a:[],_0x27a8e5=JSON[_0x124dcc(0xd6)](_0x121d9a),_0x3729ef=(await this[_0x124dcc(0x102)]['requireSession'](_0x525faa))[_0x124dcc(0xcd)]();if(_0x3f7cbf){const _0x596e9b={'memberId':_0x3729ef,'unitId':_0x525faa,'content':_0x27a8e5,'mention':_0x33b3ad,'threadId':_0x103acc},_0x2d592e=(await this[_0x124dcc(0xbb)][_0x124dcc(0xa9)](_0x124dcc(0xf3)+_0x525faa+_0x124dcc(0x97),{'body':_0x596e9b}))[_0x124dcc(0xd8)][_0x124dcc(0x101)];return{..._0x29d74a,'id':_0x2d592e[_0x124dcc(0xdf)],'dT':c[_0x124dcc(0x82)](+_0x2d592e[_0x124dcc(0xeb)])[_0x124dcc(0x91)](_0x124dcc(0xf5)),'personId':_0x2d592e[_0x124dcc(0x9a)]};}else{const _0x54c6d7={'memberId':_0x3729ef,'unitId':_0x525faa,'content':_0x27a8e5,'mention':_0x33b3ad},_0x822165=await this['_httpService']['post'](_0x124dcc(0xf3)+_0x525faa+_0x124dcc(0xa1),{'body':_0x54c6d7});return Y(_0x822165[_0x124dcc(0xd8)]['comment'],_0x29d74a);}}async['updateComment'](_0x16c15f){const _0x4b8473=_0x43dfd0;var _0x9ef359,_0x44676e;const {text:_0x45616c,unitId:_0x2c6aed}=_0x16c15f,_0x431788=(_0x44676e=(_0x9ef359=_0x45616c[_0x4b8473(0xc3)])==null?void 0x0:_0x9ef359['filter'](_0xf231a3=>_0xf231a3['rangeType']===c['CustomRangeType'][_0x4b8473(0x99)])[_0x4b8473(0xd3)](_0x1075c5=>_0x1075c5[_0x4b8473(0xfe)]))!=null?_0x44676e:[],_0x15a607=JSON[_0x4b8473(0xd6)](_0x45616c),_0x35ffd1=_0x16c15f[_0x4b8473(0xa6)],_0x43116=_0x16c15f['id'],_0x2630b9={'memberId':(await this['_sessionService']['requireSession'](_0x2c6aed))[_0x4b8473(0xcd)](),'unitId':_0x2c6aed,'threadId':_0x35ffd1,'mention':_0x431788,'content':_0x15a607,'replyId':_0x43116},_0x20f7d4=await this[_0x4b8473(0xbb)][_0x4b8473(0xa9)](_0x4b8473(0xf3)+_0x2c6aed+_0x4b8473(0x95),{'body':_0x2630b9});return!_0x20f7d4[_0x4b8473(0xd8)]['error']||_0x20f7d4['body'][_0x4b8473(0xc5)][_0x4b8473(0xe4)]===0x1;}async[_0x43dfd0(0xdd)](_0x3f7b10){const _0x44d70a=_0x43dfd0,{unitId:_0x5736a3}=_0x3f7b10,_0x590cd5=_0x3f7b10[_0x44d70a(0xa6)],_0x4daa43={'memberId':this[_0x44d70a(0xc7)]['getCurrentUser']()['userID'],'unitId':_0x5736a3,'threadId':_0x590cd5,'solved':_0x3f7b10['resolved']?I[_0x44d70a(0xfd)]:I[_0x44d70a(0xc1)]},_0x513c4e=await this[_0x44d70a(0xbb)][_0x44d70a(0xa9)](_0x44d70a(0xf3)+_0x5736a3+_0x44d70a(0xf0),{'body':_0x4daa43});return!_0x513c4e[_0x44d70a(0xd8)][_0x44d70a(0xc5)]||_0x513c4e[_0x44d70a(0xd8)][_0x44d70a(0xc5)][_0x44d70a(0xe4)]===0x1;}async[_0x43dfd0(0x100)](_0x2da755,_0x279457,_0x5ef790,_0x3c87d8){const _0x5102a6=_0x43dfd0,_0xcf28d={'memberId':(await this[_0x5102a6(0x102)][_0x5102a6(0xe7)](_0x2da755))[_0x5102a6(0xcd)](),'threadId':_0x5ef790,'replyId':_0x3c87d8,'unitId':_0x2da755},_0x4d29aa=await this[_0x5102a6(0xbb)][_0x5102a6(0xa9)]('/universer-api/comment/unit/'+_0x2da755+'/delete',{'body':_0xcf28d});return!_0x4d29aa['body'][_0x5102a6(0xc5)]||_0x4d29aa[_0x5102a6(0xd8)][_0x5102a6(0xc5)][_0x5102a6(0xe4)]===0x1;}async[_0x43dfd0(0xe2)](_0x3df7da,_0x41a30c,_0x10c8d6){const _0x3d5b4f=_0x43dfd0,_0x1b6ae6={'unitId':_0x3df7da,'threadId':_0x10c8d6},_0x194953=await this[_0x3d5b4f(0xbb)]['post'](_0x3d5b4f(0xf3)+_0x3df7da+'/list',{'body':_0x1b6ae6}),_0x27e39c=_0x10c8d6[_0x3d5b4f(0xd3)](_0x5959ff=>G(_0x194953[_0x3d5b4f(0xd8)][_0x3d5b4f(0x8c)][_0x5959ff],_0x3df7da,_0x41a30c))[_0x3d5b4f(0xae)](Boolean);return Object['values'](_0x194953[_0x3d5b4f(0xd8)][_0x3d5b4f(0x9b)])[_0x3d5b4f(0xb9)](_0x4d6b94=>{this['_userService']['addUser'](_0x4d6b94);}),_0x27e39c;}['saveCommentToSnapshot'](_0x36a695){const _0x9bce7b=_0x43dfd0;return{'id':_0x36a695['id'],'threadId':_0x36a695[_0x9bce7b(0xa6)],'ref':_0x36a695[_0x9bce7b(0x86)]};}};g=x([_(0x0,c[_0x43dfd0(0xa4)](P[_0x43dfd0(0xea)])),_(0x1,c[_0x43dfd0(0xa4)](c[_0x43dfd0(0x81)])),_(0x2,c['Inject'](b['CollaborationSessionService'])),_(0x3,c['Inject'](c['Injector']))],g);var H=Object[_0x43dfd0(0xa5)],J=(_0x3f5578,_0x546763,_0x42f258,_0xa2b151)=>{const _0x569b91=_0x43dfd0;for(var _0x31884b=_0xa2b151>0x1?void 0x0:_0xa2b151?H(_0x546763,_0x42f258):_0x546763,_0x47f7eb=_0x3f5578[_0x569b91(0xc9)]-0x1,_0x13d499;_0x47f7eb>=0x0;_0x47f7eb--)(_0x13d499=_0x3f5578[_0x47f7eb])&&(_0x31884b=_0x13d499(_0x31884b)||_0x31884b);return _0x31884b;},y=(_0x41b63d,_0xa7dbc8)=>(_0x36a1bf,_0x33b5c8)=>_0xa7dbc8(_0x36a1bf,_0x33b5c8,_0x41b63d);let C=class extends c[_0x43dfd0(0xbd)]{constructor(_0xee00b6,_0x5dd4c6){const _0x11cb6c=_0x43dfd0;super(),this['_threadCommentDataSourceService']=_0xee00b6,this['_threadCommentDataSource']=_0x5dd4c6,this[_0x11cb6c(0xe6)]();}[_0x43dfd0(0xe6)](){const _0x3e05e3=_0x43dfd0;this[_0x3e05e3(0xde)][_0x3e05e3(0x7e)]=this[_0x3e05e3(0xac)],this[_0x3e05e3(0xde)][_0x3e05e3(0x83)]=!0x1;}};C=J([y(0x0,M[_0x43dfd0(0xe3)]),y(0x1,c[_0x43dfd0(0xa4)](g))],C);var F=Object[_0x43dfd0(0xaa)],L=Object['getOwnPropertyDescriptor'],Z=(_0x4e5dcf,_0x44e813,_0x327ac0)=>_0x44e813 in _0x4e5dcf?F(_0x4e5dcf,_0x44e813,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x327ac0}):_0x4e5dcf[_0x44e813]=_0x327ac0,W=(_0x325a2c,_0x5b6696,_0x429cba,_0x2d8950)=>{const _0x82b322=_0x43dfd0;for(var _0x58fd1e=_0x2d8950>0x1?void 0x0:_0x2d8950?L(_0x5b6696,_0x429cba):_0x5b6696,_0x6faf50=_0x325a2c[_0x82b322(0xc9)]-0x1,_0x3d6944;_0x6faf50>=0x0;_0x6faf50--)(_0x3d6944=_0x325a2c[_0x6faf50])&&(_0x58fd1e=_0x3d6944(_0x58fd1e)||_0x58fd1e);return _0x58fd1e;},O=(_0x3f1b17,_0x16cba7)=>(_0x52295e,_0x465da4)=>_0x16cba7(_0x52295e,_0x465da4,_0x3f1b17),N=(_0x1e8a21,_0x218257,_0x1a3e28)=>Z(_0x1e8a21,typeof _0x218257!=_0x43dfd0(0xff)?_0x218257+'':_0x218257,_0x1a3e28);exports[_0x43dfd0(0xe1)]=class extends c[_0x43dfd0(0x93)]{constructor(_0x39fdea=D,_0x544a36,_0x2936e9){const _0x2e7701=_0x43dfd0;super(),this[_0x2e7701(0x8f)]=_0x39fdea,this[_0x2e7701(0xee)]=_0x544a36,this[_0x2e7701(0x90)]=_0x2936e9;const {..._0xaddc71}=c['merge']({},D,this[_0x2e7701(0x8f)]);this['_configService'][_0x2e7701(0xc6)](q,_0xaddc71);}[_0x43dfd0(0xef)](){const _0x330fb5=_0x43dfd0;[[g],[C],[p]][_0x330fb5(0xb9)](_0x3236f9=>{const _0x4cc795=_0x330fb5;this[_0x4cc795(0xee)][_0x4cc795(0x9d)](_0x3236f9);});}[_0x43dfd0(0xb5)](){const _0x1d858d=_0x43dfd0;this[_0x1d858d(0xee)][_0x1d858d(0xdc)](C),this['_injector']['get'](p);}},N(exports[_0x43dfd0(0xe1)],_0x43dfd0(0x9e),U),N(exports[_0x43dfd0(0xe1)],_0x43dfd0(0xd7),c[_0x43dfd0(0x8a)][_0x43dfd0(0xb6)]),exports['UniverThreadCommentDataSourcePlugin']=W([c[_0x43dfd0(0xa0)](j[_0x43dfd0(0x98)],b[_0x43dfd0(0xbf)],T[_0x43dfd0(0xda)]),O(0x1,c[_0x43dfd0(0xa4)](c[_0x43dfd0(0x9f)])),O(0x2,c[_0x43dfd0(0xaf)])],exports['UniverThreadCommentDataSourcePlugin']);function _0x2f55(){const _0x29c479=['root','onReady','UNIVER_UNKNOWN','payload','content','forEach','ThreadCommentModel','_httpService','54JCrKYh','Disposable','Module','UniverCollaborationClientPlugin','CommentService','OpenOrReOpen','Delete','customRanges','_threadCommentModel','error','setConfig','_userService','5jSCwya','length','user','_commentService','pipe','getMemberID','addComment','rxjs','Unknown','334156nOTJng','10885NLbDss','map','678585zTGNQY','commentUpdate$','stringify','type','body','getUnit','UniverLicensePlugin','parse','get','resolveComment','_threadCommentDataSourceService','replyId','rangeType','UniverThreadCommentDataSourcePlugin','listComments','IThreadCommentDataSourceService','code','solved','_initDataSource','requireSession','size','1482bnVVjC','HTTPService','createTimestamp','delete','updateComment','_injector','onStarting','/solved','2hsxgwq','parentId','/universer-api/comment/unit/','11779157EdNjXk','YYYY/MM/DD\x20HH:mm','Solve','96840muEFWo','UNRECOGNIZED','@univerjs-pro/license','_initUserSync','Add','@univerjs/thread-comment-ui','Solved','rangeId','symbol','deleteComment','reply','_sessionService','dataSource','@univerjs/core','userID','UserManagerService','dayjs','syncUpdateMutationToColla','99ErlFvo','replies','ref','personId','@univerjs/thread-comment','unitId','UniverInstanceType','12rUFpzo','comments','getUser','subscribe','_config','_configService','format','addUser','Plugin','thread-comment-data-source.config','/edit','305548QUSIOm','/reply','UniverThreadCommentUIPlugin','COMMENT','userId','users','@univerjs-pro/collaboration-client','add','pluginName','Injector','DependentOn','/add','@univerjs/network','384620fZDrnB','Inject','getOwnPropertyDescriptor','threadId','_init','slice','post','defineProperty','bufferTime','_threadCommentDataSource','Edit','filter','IConfigService','getComment','find','CustomRangeType','Reply'];_0x2f55=function(){return _0x29c479;};return _0x2f55();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2b5fac=_0x5bf1;function _0x269e(){const _0x93f086=['customRanges','getUnit','solved','13911007bplEgo','rangeId','_threadCommentModel','Delete','4NhYCEb','_userService','disposeWithMe','userID','addComment','398001cXrOUp','values','syncUpdateMutationToColla','12oFdjsp','add','user','saveCommentToSnapshot','code','defineProperty','post','10nLouNw','addUser','/reply','thread-comment-data-source.config','OpenOrReOpen','_configService','comment','get','users','map','_threadCommentDataSource','threadId','610461OlAiyV','_init','getMemberID','format','Solve','stringify','_httpService','updateComment','pluginName','Unknown','1231672pCVwbr','/edit','setConfig','requireSession','slice','5QOyYPv','getComment','subscribe','579792OoBaVQ','forEach','content','/list','_sessionService','error','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','parse','type','delete','resolved','replies','_initDataSource','getCurrentUser','filter','parentId','deleteComment','Solved','userId','personId','replyId','_config','root','UNRECOGNIZED','/universer-api/user/list','onReady','getOwnPropertyDescriptor','/solved','resolveComment','reply','_threadCommentDataSourceService','216XsHLwf','_injector','Reply','Edit','UNIVER_UNKNOWN','createTimestamp','_commentService','Add','172228EYgxpi','1094526tosQWB','_initUserSync','/delete','comments','YYYY/MM/DD\x20HH:mm','find','commentUpdate$','/universer-api/comment/unit/','unitId','length','body'];_0x269e=function(){return _0x93f086;};return _0x269e();}(function(_0x57c658,_0x57cd5b){const _0x38ab5c=_0x5bf1,_0x2adb85=_0x57c658();while(!![]){try{const _0x516d7d=parseInt(_0x38ab5c(0x126))/0x1+parseInt(_0x38ab5c(0x11e))/0x2+-parseInt(_0x38ab5c(0xfe))/0x3*(parseInt(_0x38ab5c(0x160))/0x4)+-parseInt(_0x38ab5c(0x123))/0x5*(parseInt(_0x38ab5c(0x14e))/0x6)+-parseInt(_0x38ab5c(0x14d))/0x7*(-parseInt(_0x38ab5c(0x145))/0x8)+parseInt(_0x38ab5c(0x114))/0x9*(parseInt(_0x38ab5c(0x108))/0xa)+parseInt(_0x38ab5c(0x15c))/0xb*(-parseInt(_0x38ab5c(0x101))/0xc);if(_0x516d7d===_0x57cd5b)break;else _0x2adb85['push'](_0x2adb85['shift']());}catch(_0x4b976c){_0x2adb85['push'](_0x2adb85['shift']());}}}(_0x269e,0x54f88));import{CommentService as _0x1643d3,CollaborationSessionService as _0x4592f,UniverCollaborationClientPlugin as _0x12c884}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x13415b}from'@univerjs-pro/license';import{dayjs as _0x5dd75f,UserManagerService as _0x475b3b,Inject as _0xccccd8,Injector as _0x1b0878,Disposable as _0x527aee,CustomRangeType as _0x1ee0ce,UniverInstanceType as _0x538ad9,DependentOn as _0x1756f4,IConfigService as _0x47c9d3,Plugin as _0x107f9d,merge as _0x2dacfc}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x1b6c56}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x6cf1a6,IThreadCommentDataSourceService as _0x41d95c}from'@univerjs/thread-comment';import{bufferTime as _0x12c025}from'rxjs';import{HTTPService as _0x23c06a}from'@univerjs/network';const W=_0x2b5fac(0x12c);var I=(_0x29b1bd=>(_0x29b1bd[_0x29b1bd['OpenOrReOpen']=0x0]=_0x2b5fac(0x10c),_0x29b1bd[_0x29b1bd[_0x2b5fac(0x137)]=0x1]=_0x2b5fac(0x137),_0x29b1bd[_0x29b1bd[_0x2b5fac(0x13d)]=-0x1]=_0x2b5fac(0x13d),_0x29b1bd))(I||{}),v=(_0x4928fe=>(_0x4928fe[_0x4928fe[_0x2b5fac(0x11d)]=0x0]='Unknown',_0x4928fe[_0x4928fe[_0x2b5fac(0x14c)]=0x1]=_0x2b5fac(0x14c),_0x4928fe[_0x4928fe[_0x2b5fac(0x147)]=0x2]=_0x2b5fac(0x147),_0x4928fe[_0x4928fe[_0x2b5fac(0x148)]=0x3]=_0x2b5fac(0x148),_0x4928fe[_0x4928fe[_0x2b5fac(0x15f)]=0x4]=_0x2b5fac(0x15f),_0x4928fe[_0x4928fe[_0x2b5fac(0x118)]=0x5]=_0x2b5fac(0x118),_0x4928fe[_0x4928fe['UNRECOGNIZED']=-0x1]=_0x2b5fac(0x13d),_0x4928fe))(v||{});const D=_0x5425ad=>_0x5dd75f(new Date(+_0x5425ad))[_0x2b5fac(0x117)](_0x2b5fac(0x152)),B=async(_0x5bd1bc,_0x22f234)=>{const _0x5f0595=_0x2b5fac,_0xfa8faa=_0x5bd1bc['get'](_0x475b3b),_0xc6e68d=_0x5bd1bc[_0x5f0595(0x10f)](_0x23c06a);_0x22f234['forEach'](_0x2e1d15=>{const _0x5ad52f=_0x5f0595;_0xfa8faa['getUser'](_0x2e1d15)&&_0x22f234[_0x5ad52f(0x12f)](_0x2e1d15);}),_0x22f234['size']&&(await _0xc6e68d[_0x5f0595(0x10f)](_0x5f0595(0x13e),{'params':{'userIDs':[..._0x22f234]}}))[_0x5f0595(0x158)][_0x5f0595(0x110)][_0x5f0595(0x127)](_0x36b20d=>{const _0x4dc00e=_0x5f0595;_0x36b20d&&_0xfa8faa[_0x4dc00e(0x109)](_0x36b20d);});};var K=Object[_0x2b5fac(0x140)],V=(_0x5e98ca,_0x5b0da5,_0x3d8529,_0x136388)=>{for(var _0x97c3e3=_0x136388>0x1?void 0x0:_0x136388?K(_0x5b0da5,_0x3d8529):_0x5b0da5,_0x14e9d0=_0x5e98ca['length']-0x1,_0x122917;_0x14e9d0>=0x0;_0x14e9d0--)(_0x122917=_0x5e98ca[_0x14e9d0])&&(_0x97c3e3=_0x122917(_0x97c3e3)||_0x97c3e3);return _0x97c3e3;},p=(_0x64a685,_0x10b575)=>(_0x2e257b,_0x54abce)=>_0x10b575(_0x2e257b,_0x54abce,_0x64a685);let S=class extends _0x527aee{constructor(_0x4a844c,_0x1fee33,_0x1f9472,_0x4bfd8e){const _0x37dcf8=_0x2b5fac;super(),this[_0x37dcf8(0x14b)]=_0x4a844c,this[_0x37dcf8(0x15e)]=_0x1fee33,this[_0x37dcf8(0x161)]=_0x1f9472,this[_0x37dcf8(0x146)]=_0x4bfd8e,this['_init'](),this[_0x37dcf8(0x14f)]();}['_initUserSync'](){const _0x127aef=_0x2b5fac;this[_0x127aef(0x162)](this['_threadCommentModel'][_0x127aef(0x154)]['pipe'](_0x12c025(0x10))[_0x127aef(0x125)](_0x275136=>{const _0x3b2511=_0x127aef,_0x580630=new Set();_0x275136[_0x3b2511(0x127)](_0x37ca96=>{const _0x44b486=_0x3b2511;switch(_0x37ca96[_0x44b486(0x12e)]){case _0x44b486(0x102):{const _0x4e1234=_0x37ca96['payload'][_0x44b486(0x139)];_0x580630[_0x44b486(0x102)](_0x4e1234);break;}}}),B(this[_0x3b2511(0x146)],_0x580630);}));}[_0x2b5fac(0x115)](){const _0xebf3f6=_0x2b5fac;this['disposeWithMe'](this['_commentService'][_0xebf3f6(0x154)][_0xebf3f6(0x125)](async _0x291447=>{const _0x2adbe2=_0xebf3f6;var _0x39c001,_0x41c1f4,_0x2fcac5,_0xe5d448;const _0x4e66ac=(_0x39c001=this['_threadCommentModel'][_0x2adbe2(0x15a)](_0x291447[_0x2adbe2(0x156)])['find'](_0xd6c8c7=>_0xd6c8c7[_0x2adbe2(0x113)]===_0x291447['threadId']))==null?void 0x0:_0x39c001['root'];if(!_0x4e66ac)return;const {unitId:_0x574c50,subUnitId:_0x359dae}=_0x4e66ac;switch(_0x291447['user']&&this[_0x2adbe2(0x161)]['addUser'](_0x291447[_0x2adbe2(0x103)]),_0x291447['type']){case v['Add']:break;case v[_0x2adbe2(0x147)]:{this[_0x2adbe2(0x15e)][_0x2adbe2(0xfd)](_0x574c50,_0x359dae,{'unitId':_0x574c50,'subUnitId':_0x359dae,'ref':'','id':_0x291447[_0x2adbe2(0x13a)],'dT':D(+_0x291447[_0x2adbe2(0x14a)]),'threadId':_0x291447[_0x2adbe2(0x113)],'personId':(_0x2fcac5=(_0x41c1f4=_0x291447[_0x2adbe2(0x103)])==null?void 0x0:_0x41c1f4[_0x2adbe2(0xfc)])!=null?_0x2fcac5:_0x291447[_0x2adbe2(0x138)],'text':JSON[_0x2adbe2(0x12d)](_0x291447[_0x2adbe2(0x128)]),'parentId':_0x4e66ac['id']});break;}case v[_0x2adbe2(0x15f)]:{const _0xdb398c=this[_0x2adbe2(0x15e)][_0x2adbe2(0x124)](_0x574c50,_0x359dae,_0x291447[_0x2adbe2(0x13a)]);_0xdb398c&&_0xdb398c[_0x2adbe2(0x135)]&&this[_0x2adbe2(0x15e)]['deleteComment'](_0x574c50,_0x359dae,_0x291447[_0x2adbe2(0x13a)]);break;}case v[_0x2adbe2(0x148)]:{this['_threadCommentModel'][_0x2adbe2(0x11b)](_0x574c50,_0x359dae,{'commentId':_0x291447['replyId'],'text':JSON[_0x2adbe2(0x12d)](_0x291447[_0x2adbe2(0x128)])});break;}case v[_0x2adbe2(0x118)]:{const _0x3951f8=(_0xe5d448=this[_0x2adbe2(0x15e)][_0x2adbe2(0x15a)](_0x291447[_0x2adbe2(0x156)])[_0x2adbe2(0x153)](_0x270489=>_0x270489['threadId']===_0x291447[_0x2adbe2(0x113)]))==null?void 0x0:_0xe5d448[_0x2adbe2(0x13c)];_0x3951f8&&this[_0x2adbe2(0x15e)][_0x2adbe2(0x142)](_0x574c50,_0x359dae,_0x3951f8['id'],_0x291447['solved']===I[_0x2adbe2(0x137)]);break;}}}));}};S=V([p(0x0,_0xccccd8(_0x1643d3)),p(0x1,_0xccccd8(_0x6cf1a6)),p(0x2,_0xccccd8(_0x475b3b)),p(0x3,_0xccccd8(_0x1b0878))],S);function _0x5bf1(_0x44de78,_0x37bb8e){const _0x269eaf=_0x269e();return _0x5bf1=function(_0x5bf1a0,_0x2cebc3){_0x5bf1a0=_0x5bf1a0-0xfc;let _0x204b92=_0x269eaf[_0x5bf1a0];return _0x204b92;},_0x5bf1(_0x44de78,_0x37bb8e);}const z=_0x2b5fac(0x10b),M={};var k=Object['getOwnPropertyDescriptor'],Q=(_0x132c17,_0xca42e9,_0x16ce39,_0x3ba40d)=>{const _0x3f1611=_0x2b5fac;for(var _0x3ddbf8=_0x3ba40d>0x1?void 0x0:_0x3ba40d?k(_0xca42e9,_0x16ce39):_0xca42e9,_0x218c93=_0x132c17[_0x3f1611(0x157)]-0x1,_0x43283a;_0x218c93>=0x0;_0x218c93--)(_0x43283a=_0x132c17[_0x218c93])&&(_0x3ddbf8=_0x43283a(_0x3ddbf8)||_0x3ddbf8);return _0x3ddbf8;},_=(_0x48f0aa,_0xb790b5)=>(_0x304586,_0x1c20ca)=>_0xb790b5(_0x304586,_0x1c20ca,_0x48f0aa);function X(_0x48eef3,_0x35a490){const _0x3c2e26=_0x2b5fac,_0x27483b=_0x48eef3[_0x3c2e26(0x131)][0x0];return{..._0x35a490,'id':_0x27483b[_0x3c2e26(0x13a)],'resolved':_0x48eef3[_0x3c2e26(0x15b)]===0x1,'dT':D(_0x27483b[_0x3c2e26(0x14a)]),'personId':_0x27483b[_0x3c2e26(0x138)],'threadId':_0x27483b[_0x3c2e26(0x113)]};}function ee(_0x27c21a,_0x4ccf6c,_0x62e727){const _0x3f3efc=_0x2b5fac;var _0x166a76,_0x2d688c;if(((_0x2d688c=(_0x166a76=_0x27c21a==null?void 0x0:_0x27c21a[_0x3f3efc(0x131)])==null?void 0x0:_0x166a76[_0x3f3efc(0x157)])!=null?_0x2d688c:0x0)>0x0){const _0x30bd7f=(_0x42fbd8,_0x20717c)=>({'id':_0x42fbd8[_0x3f3efc(0x13a)],'threadId':_0x42fbd8[_0x3f3efc(0x113)],'dT':D(_0x42fbd8[_0x3f3efc(0x14a)]),'personId':_0x42fbd8[_0x3f3efc(0x138)],'resolved':_0x27c21a[_0x3f3efc(0x15b)]===I[_0x3f3efc(0x137)],'unitId':_0x4ccf6c,'subUnitId':_0x62e727,'text':JSON[_0x3f3efc(0x12d)](_0x42fbd8[_0x3f3efc(0x128)]),'parentId':_0x20717c}),_0x5de295=_0x30bd7f(_0x27c21a[_0x3f3efc(0x131)][0x0]);return{..._0x5de295,'children':_0x27c21a['replies'][_0x3f3efc(0x122)](0x1)[_0x3f3efc(0x111)](_0xe248bc=>_0x30bd7f(_0xe248bc,_0x5de295['id']))};}return null;}let f=class{constructor(_0x2abf80,_0x1da02e,_0x4c3d9b,_0x2e7f25){const _0x615afb=_0x2b5fac;this[_0x615afb(0x11a)]=_0x2abf80,this[_0x615afb(0x161)]=_0x1da02e,this['_sessionService']=_0x4c3d9b,this[_0x615afb(0x146)]=_0x2e7f25;}async['addComment'](_0x13165b){const _0x463547=_0x2b5fac;var _0x2de4b6,_0x589973;const {parentId:_0x35f11e,unitId:_0x54557a,text:_0x30c8fd,threadId:_0x20b42c}=_0x13165b,_0x19e199=(_0x589973=(_0x2de4b6=_0x30c8fd[_0x463547(0x159)])==null?void 0x0:_0x2de4b6['filter'](_0x560bff=>_0x560bff['rangeType']===_0x1ee0ce['COMMENT'])[_0x463547(0x111)](_0x48c29=>_0x48c29[_0x463547(0x15d)]))!=null?_0x589973:[],_0x19a126=JSON['stringify'](_0x30c8fd),_0x23eefb=(await this['_sessionService'][_0x463547(0x121)](_0x54557a))['getMemberID']();if(_0x35f11e){const _0x428aa0={'memberId':_0x23eefb,'unitId':_0x54557a,'content':_0x19a126,'mention':_0x19e199,'threadId':_0x20b42c},_0x1da836=(await this[_0x463547(0x11a)][_0x463547(0x107)](_0x463547(0x155)+_0x54557a+_0x463547(0x10a),{'body':_0x428aa0}))[_0x463547(0x158)][_0x463547(0x143)];return{..._0x13165b,'id':_0x1da836[_0x463547(0x13a)],'dT':_0x5dd75f(+_0x1da836[_0x463547(0x14a)])[_0x463547(0x117)]('YYYY/MM/DD\x20HH:mm'),'personId':_0x1da836[_0x463547(0x138)]};}else{const _0x5af8e8={'memberId':_0x23eefb,'unitId':_0x54557a,'content':_0x19a126,'mention':_0x19e199},_0x584287=await this[_0x463547(0x11a)][_0x463547(0x107)](_0x463547(0x155)+_0x54557a+'/add',{'body':_0x5af8e8});return X(_0x584287[_0x463547(0x158)][_0x463547(0x10e)],_0x13165b);}}async[_0x2b5fac(0x11b)](_0x5a97b7){const _0x55c84e=_0x2b5fac;var _0x982412,_0x36eac2;const {text:_0x90545b,unitId:_0x568535}=_0x5a97b7,_0x18b10a=(_0x36eac2=(_0x982412=_0x90545b[_0x55c84e(0x159)])==null?void 0x0:_0x982412[_0x55c84e(0x134)](_0xc80bc8=>_0xc80bc8['rangeType']===_0x1ee0ce['COMMENT'])[_0x55c84e(0x111)](_0x50aa73=>_0x50aa73['rangeId']))!=null?_0x36eac2:[],_0x50166b=JSON[_0x55c84e(0x119)](_0x90545b),_0x2323d4=_0x5a97b7[_0x55c84e(0x113)],_0x2b2bdd=_0x5a97b7['id'],_0x41178e={'memberId':(await this[_0x55c84e(0x12a)][_0x55c84e(0x121)](_0x568535))['getMemberID'](),'unitId':_0x568535,'threadId':_0x2323d4,'mention':_0x18b10a,'content':_0x50166b,'replyId':_0x2b2bdd},_0xad1fea=await this['_httpService']['post']('/universer-api/comment/unit/'+_0x568535+_0x55c84e(0x11f),{'body':_0x41178e});return!_0xad1fea[_0x55c84e(0x158)]['error']||_0xad1fea[_0x55c84e(0x158)][_0x55c84e(0x12b)]['code']===0x1;}async[_0x2b5fac(0x142)](_0x50be37){const _0x46edd9=_0x2b5fac,{unitId:_0x104c0d}=_0x50be37,_0x31eb37=_0x50be37[_0x46edd9(0x113)],_0x171288={'memberId':this[_0x46edd9(0x161)][_0x46edd9(0x133)]()[_0x46edd9(0xfc)],'unitId':_0x104c0d,'threadId':_0x31eb37,'solved':_0x50be37[_0x46edd9(0x130)]?I['Solved']:I[_0x46edd9(0x10c)]},_0x11c0b3=await this[_0x46edd9(0x11a)][_0x46edd9(0x107)](_0x46edd9(0x155)+_0x104c0d+_0x46edd9(0x141),{'body':_0x171288});return!_0x11c0b3[_0x46edd9(0x158)][_0x46edd9(0x12b)]||_0x11c0b3[_0x46edd9(0x158)][_0x46edd9(0x12b)][_0x46edd9(0x105)]===0x1;}async[_0x2b5fac(0x136)](_0x121ee7,_0x40bd14,_0x5c73b7,_0x24970a){const _0x3f888b=_0x2b5fac,_0x4df111={'memberId':(await this[_0x3f888b(0x12a)][_0x3f888b(0x121)](_0x121ee7))[_0x3f888b(0x116)](),'threadId':_0x5c73b7,'replyId':_0x24970a,'unitId':_0x121ee7},_0x145911=await this['_httpService'][_0x3f888b(0x107)](_0x3f888b(0x155)+_0x121ee7+_0x3f888b(0x150),{'body':_0x4df111});return!_0x145911[_0x3f888b(0x158)][_0x3f888b(0x12b)]||_0x145911[_0x3f888b(0x158)][_0x3f888b(0x12b)][_0x3f888b(0x105)]===0x1;}async['listComments'](_0xd1cb93,_0x52dbe0,_0x23becd){const _0x33f765=_0x2b5fac,_0x50ce29={'unitId':_0xd1cb93,'threadId':_0x23becd},_0x29872d=await this[_0x33f765(0x11a)][_0x33f765(0x107)](_0x33f765(0x155)+_0xd1cb93+_0x33f765(0x129),{'body':_0x50ce29}),_0x327995=_0x23becd['map'](_0x3714ec=>ee(_0x29872d['body'][_0x33f765(0x151)][_0x3714ec],_0xd1cb93,_0x52dbe0))[_0x33f765(0x134)](Boolean);return Object[_0x33f765(0xff)](_0x29872d['body'][_0x33f765(0x110)])[_0x33f765(0x127)](_0x32ec6d=>{const _0x20ae81=_0x33f765;this[_0x20ae81(0x161)]['addUser'](_0x32ec6d);}),_0x327995;}[_0x2b5fac(0x104)](_0x5dd41d){const _0x243945=_0x2b5fac;return{'id':_0x5dd41d['id'],'threadId':_0x5dd41d[_0x243945(0x113)],'ref':_0x5dd41d['ref']};}};f=Q([_(0x0,_0xccccd8(_0x23c06a)),_(0x1,_0xccccd8(_0x475b3b)),_(0x2,_0xccccd8(_0x4592f)),_(0x3,_0xccccd8(_0x1b0878))],f);var re=Object[_0x2b5fac(0x140)],te=(_0x10e7d1,_0x142d30,_0x5ba3f9,_0x363f58)=>{const _0x2c4dae=_0x2b5fac;for(var _0x3c1fd7=_0x363f58>0x1?void 0x0:_0x363f58?re(_0x142d30,_0x5ba3f9):_0x142d30,_0x286c7d=_0x10e7d1[_0x2c4dae(0x157)]-0x1,_0xa01b62;_0x286c7d>=0x0;_0x286c7d--)(_0xa01b62=_0x10e7d1[_0x286c7d])&&(_0x3c1fd7=_0xa01b62(_0x3c1fd7)||_0x3c1fd7);return _0x3c1fd7;},N=(_0x23ee45,_0x52a34e)=>(_0x57f084,_0x4136af)=>_0x52a34e(_0x57f084,_0x4136af,_0x23ee45);let g=class extends _0x527aee{constructor(_0x502bf9,_0x2c82ba){const _0x496a1a=_0x2b5fac;super(),this['_threadCommentDataSourceService']=_0x502bf9,this[_0x496a1a(0x112)]=_0x2c82ba,this[_0x496a1a(0x132)]();}[_0x2b5fac(0x132)](){const _0x42314e=_0x2b5fac;this[_0x42314e(0x144)]['dataSource']=this[_0x42314e(0x112)],this[_0x42314e(0x144)][_0x42314e(0x100)]=!0x1;}};g=te([N(0x0,_0x41d95c),N(0x1,_0xccccd8(f))],g);var se=Object[_0x2b5fac(0x106)],oe=Object[_0x2b5fac(0x140)],ne=(_0xbcb39a,_0x35f1cd,_0xee785d)=>_0x35f1cd in _0xbcb39a?se(_0xbcb39a,_0x35f1cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xee785d}):_0xbcb39a[_0x35f1cd]=_0xee785d,ie=(_0x450e88,_0x48f20b,_0x14f01f,_0x4b5a12)=>{const _0x3ee6db=_0x2b5fac;for(var _0x2fcadd=_0x4b5a12>0x1?void 0x0:_0x4b5a12?oe(_0x48f20b,_0x14f01f):_0x48f20b,_0x4bb6f4=_0x450e88[_0x3ee6db(0x157)]-0x1,_0x4cefe8;_0x4bb6f4>=0x0;_0x4bb6f4--)(_0x4cefe8=_0x450e88[_0x4bb6f4])&&(_0x2fcadd=_0x4cefe8(_0x2fcadd)||_0x2fcadd);return _0x2fcadd;},w=(_0x37468c,_0x1f5429)=>(_0x541a3d,_0x55fc0d)=>_0x1f5429(_0x541a3d,_0x55fc0d,_0x37468c),$=(_0x4ad1f1,_0x3d93f5,_0x8da227)=>ne(_0x4ad1f1,typeof _0x3d93f5!='symbol'?_0x3d93f5+'':_0x3d93f5,_0x8da227);let b=class extends _0x107f9d{constructor(_0x10935b=M,_0x41f671,_0x401885){const _0x5ee2bd=_0x2b5fac;super(),this[_0x5ee2bd(0x13b)]=_0x10935b,this[_0x5ee2bd(0x146)]=_0x41f671,this[_0x5ee2bd(0x10d)]=_0x401885;const {..._0x513e42}=_0x2dacfc({},M,this[_0x5ee2bd(0x13b)]);this['_configService'][_0x5ee2bd(0x120)](z,_0x513e42);}['onStarting'](){[[f],[g],[S]]['forEach'](_0x31668b=>{const _0x10ea49=_0x5bf1;this[_0x10ea49(0x146)][_0x10ea49(0x102)](_0x31668b);});}[_0x2b5fac(0x13f)](){const _0x507d8c=_0x2b5fac;this[_0x507d8c(0x146)][_0x507d8c(0x10f)](g),this[_0x507d8c(0x146)][_0x507d8c(0x10f)](S);}};$(b,_0x2b5fac(0x11c),W),$(b,'type',_0x538ad9[_0x2b5fac(0x149)]),b=ie([_0x1756f4(_0x1b6c56,_0x12c884,_0x13415b),w(0x1,_0xccccd8(_0x1b0878)),w(0x2,_0x47c9d3)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
|
1
|
+
const _0x367783=_0x572d;(function(_0x58f0c6,_0x2b9630){const _0xed4da0=_0x572d,_0x1e2149=_0x58f0c6();while(!![]){try{const _0x7c32e7=-parseInt(_0xed4da0(0x177))/0x1+-parseInt(_0xed4da0(0x1a9))/0x2*(parseInt(_0xed4da0(0x19c))/0x3)+-parseInt(_0xed4da0(0x163))/0x4+-parseInt(_0xed4da0(0x180))/0x5*(parseInt(_0xed4da0(0x1a1))/0x6)+parseInt(_0xed4da0(0x16e))/0x7+parseInt(_0xed4da0(0x1a4))/0x8+parseInt(_0xed4da0(0x15c))/0x9;if(_0x7c32e7===_0x2b9630)break;else _0x1e2149['push'](_0x1e2149['shift']());}catch(_0x2fa245){_0x1e2149['push'](_0x1e2149['shift']());}}}(_0x5cac,0xa5b40));import{CommentService as _0x40b78c,CollaborationSessionService as _0x26ab45,UniverCollaborationClientPlugin as _0xad27e3}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x5c7147}from'@univerjs-pro/license';import{dayjs as _0x312f83,UserManagerService as _0x9755f8,Inject as _0x1065cf,Injector as _0x450818,Disposable as _0x484ee6,CustomRangeType as _0x26c66e,UniverInstanceType as _0x484e79,DependentOn as _0x556bbe,IConfigService as _0x2b831d,Plugin as _0x1d0d27,merge as _0x1e4b11}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x2b0db6}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x5b5c0e,IThreadCommentDataSourceService as _0x51f4e0}from'@univerjs/thread-comment';import{bufferTime as _0x34da1e}from'rxjs';import{HTTPService as _0x3427a4}from'@univerjs/network';const W='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var I=(_0x1416ba=>(_0x1416ba[_0x1416ba[_0x367783(0x1a6)]=0x0]=_0x367783(0x1a6),_0x1416ba[_0x1416ba[_0x367783(0x183)]=0x1]=_0x367783(0x183),_0x1416ba[_0x1416ba[_0x367783(0x1ad)]=-0x1]=_0x367783(0x1ad),_0x1416ba))(I||{}),v=(_0x18e661=>(_0x18e661[_0x18e661[_0x367783(0x1a3)]=0x0]=_0x367783(0x1a3),_0x18e661[_0x18e661[_0x367783(0x16a)]=0x1]=_0x367783(0x16a),_0x18e661[_0x18e661[_0x367783(0x14e)]=0x2]=_0x367783(0x14e),_0x18e661[_0x18e661[_0x367783(0x18d)]=0x3]='Edit',_0x18e661[_0x18e661[_0x367783(0x1ab)]=0x4]=_0x367783(0x1ab),_0x18e661[_0x18e661['Solve']=0x5]=_0x367783(0x149),_0x18e661[_0x18e661[_0x367783(0x1ad)]=-0x1]=_0x367783(0x1ad),_0x18e661))(v||{});const D=_0x3dd599=>_0x312f83(new Date(+_0x3dd599))[_0x367783(0x18f)](_0x367783(0x17f)),B=async(_0x5e2088,_0x553d96)=>{const _0x5392da=_0x367783,_0x11e3a4=_0x5e2088[_0x5392da(0x16d)](_0x9755f8),_0x3c6c66=_0x5e2088[_0x5392da(0x16d)](_0x3427a4);_0x553d96[_0x5392da(0x16f)](_0x3947f9=>{const _0xaeeee6=_0x5392da;_0x11e3a4[_0xaeeee6(0x191)](_0x3947f9)&&_0x553d96[_0xaeeee6(0x169)](_0x3947f9);}),_0x553d96['size']&&(await _0x3c6c66[_0x5392da(0x16d)]('/universer-api/user/list',{'params':{'userIDs':[..._0x553d96]}}))['body'][_0x5392da(0x15a)][_0x5392da(0x16f)](_0x38c8c9=>{const _0x28b74d=_0x5392da;_0x38c8c9&&_0x11e3a4[_0x28b74d(0x199)](_0x38c8c9);});};var K=Object[_0x367783(0x154)],V=(_0x2366a2,_0x2f4c9d,_0xecc579,_0x17c6f1)=>{const _0x1f8369=_0x367783;for(var _0x5dd38d=_0x17c6f1>0x1?void 0x0:_0x17c6f1?K(_0x2f4c9d,_0xecc579):_0x2f4c9d,_0x1a58d6=_0x2366a2[_0x1f8369(0x1ac)]-0x1,_0x4fda5d;_0x1a58d6>=0x0;_0x1a58d6--)(_0x4fda5d=_0x2366a2[_0x1a58d6])&&(_0x5dd38d=_0x4fda5d(_0x5dd38d)||_0x5dd38d);return _0x5dd38d;},p=(_0x5da089,_0x55e10b)=>(_0x268e1c,_0x48eec2)=>_0x55e10b(_0x268e1c,_0x48eec2,_0x5da089);let S=class extends _0x484ee6{constructor(_0xe841a8,_0x3693ec,_0x73880a,_0x1274ed){const _0x5484ac=_0x367783;super(),this[_0x5484ac(0x1a2)]=_0xe841a8,this[_0x5484ac(0x164)]=_0x3693ec,this['_userService']=_0x73880a,this[_0x5484ac(0x17d)]=_0x1274ed,this[_0x5484ac(0x159)](),this[_0x5484ac(0x15d)]();}['_initUserSync'](){const _0x8ca138=_0x367783;this[_0x8ca138(0x192)](this[_0x8ca138(0x164)][_0x8ca138(0x189)]['pipe'](_0x34da1e(0x10))[_0x8ca138(0x18b)](_0xb4502e=>{const _0x316604=_0x8ca138,_0x2c09e0=new Set();_0xb4502e[_0x316604(0x16f)](_0x35742e=>{const _0x2ad83a=_0x316604;switch(_0x35742e[_0x2ad83a(0x193)]){case _0x2ad83a(0x174):{const _0x5b572f=_0x35742e['payload'][_0x2ad83a(0x197)];_0x2c09e0[_0x2ad83a(0x174)](_0x5b572f);break;}}}),B(this[_0x316604(0x17d)],_0x2c09e0);}));}[_0x367783(0x159)](){const _0x4c50fc=_0x367783;this['disposeWithMe'](this[_0x4c50fc(0x1a2)]['commentUpdate$'][_0x4c50fc(0x18b)](async _0x3c8c12=>{const _0x2bcea6=_0x4c50fc;var _0xad60d2,_0x4e6149,_0x35e76c,_0x2ae42a;const _0x2f924c=(_0xad60d2=this[_0x2bcea6(0x164)]['getUnit'](_0x3c8c12[_0x2bcea6(0x190)])['find'](_0x38a58f=>_0x38a58f[_0x2bcea6(0x176)]===_0x3c8c12[_0x2bcea6(0x176)]))==null?void 0x0:_0xad60d2[_0x2bcea6(0x178)];if(!_0x2f924c)return;const {unitId:_0x17ca5a,subUnitId:_0x2eb114}=_0x2f924c;switch(_0x3c8c12[_0x2bcea6(0x182)]&&this[_0x2bcea6(0x16c)][_0x2bcea6(0x199)](_0x3c8c12[_0x2bcea6(0x182)]),_0x3c8c12[_0x2bcea6(0x193)]){case v[_0x2bcea6(0x16a)]:break;case v[_0x2bcea6(0x14e)]:{this['_threadCommentModel'][_0x2bcea6(0x186)](_0x17ca5a,_0x2eb114,{'unitId':_0x17ca5a,'subUnitId':_0x2eb114,'ref':'','id':_0x3c8c12[_0x2bcea6(0x1a5)],'dT':D(+_0x3c8c12[_0x2bcea6(0x158)]),'threadId':_0x3c8c12[_0x2bcea6(0x176)],'personId':(_0x35e76c=(_0x4e6149=_0x3c8c12['user'])==null?void 0x0:_0x4e6149[_0x2bcea6(0x172)])!=null?_0x35e76c:_0x3c8c12['userId'],'text':JSON[_0x2bcea6(0x173)](_0x3c8c12[_0x2bcea6(0x19d)]),'parentId':_0x2f924c['id']});break;}case v['Delete']:{const _0x43dd68=this[_0x2bcea6(0x164)][_0x2bcea6(0x15f)](_0x17ca5a,_0x2eb114,_0x3c8c12['replyId']);_0x43dd68&&_0x43dd68[_0x2bcea6(0x17a)]&&this['_threadCommentModel']['deleteComment'](_0x17ca5a,_0x2eb114,_0x3c8c12[_0x2bcea6(0x1a5)]);break;}case v['Edit']:{this[_0x2bcea6(0x164)][_0x2bcea6(0x17c)](_0x17ca5a,_0x2eb114,{'commentId':_0x3c8c12[_0x2bcea6(0x1a5)],'text':JSON[_0x2bcea6(0x173)](_0x3c8c12[_0x2bcea6(0x19d)])});break;}case v[_0x2bcea6(0x149)]:{const _0x43850e=(_0x2ae42a=this[_0x2bcea6(0x164)][_0x2bcea6(0x1a0)](_0x3c8c12[_0x2bcea6(0x190)])[_0x2bcea6(0x14b)](_0x18dd5a=>_0x18dd5a[_0x2bcea6(0x176)]===_0x3c8c12[_0x2bcea6(0x176)]))==null?void 0x0:_0x2ae42a[_0x2bcea6(0x178)];_0x43850e&&this[_0x2bcea6(0x164)][_0x2bcea6(0x156)](_0x17ca5a,_0x2eb114,_0x43850e['id'],_0x3c8c12[_0x2bcea6(0x19f)]===I[_0x2bcea6(0x183)]);break;}}}));}};S=V([p(0x0,_0x1065cf(_0x40b78c)),p(0x1,_0x1065cf(_0x5b5c0e)),p(0x2,_0x1065cf(_0x9755f8)),p(0x3,_0x1065cf(_0x450818))],S);const z=_0x367783(0x17b),M={};var k=Object[_0x367783(0x154)],Q=(_0x4a0e19,_0x3cf1fe,_0x35c172,_0xef857e)=>{for(var _0x21ef37=_0xef857e>0x1?void 0x0:_0xef857e?k(_0x3cf1fe,_0x35c172):_0x3cf1fe,_0x8fac24=_0x4a0e19['length']-0x1,_0x5ee8cf;_0x8fac24>=0x0;_0x8fac24--)(_0x5ee8cf=_0x4a0e19[_0x8fac24])&&(_0x21ef37=_0x5ee8cf(_0x21ef37)||_0x21ef37);return _0x21ef37;},_=(_0xe0cc0,_0x18aae7)=>(_0x199394,_0x3c762e)=>_0x18aae7(_0x199394,_0x3c762e,_0xe0cc0);function X(_0x494f8d,_0x5b2149){const _0x5a6bbf=_0x367783,_0x33020f=_0x494f8d[_0x5a6bbf(0x1a7)][0x0];return{..._0x5b2149,'id':_0x33020f['replyId'],'resolved':_0x494f8d[_0x5a6bbf(0x19f)]===0x1,'dT':D(_0x33020f['createTimestamp']),'personId':_0x33020f['userId'],'threadId':_0x33020f['threadId']};}function ee(_0x4a316e,_0x276861,_0x461976){const _0x2f3ed8=_0x367783;var _0x20e75e,_0x5db011;if(((_0x5db011=(_0x20e75e=_0x4a316e==null?void 0x0:_0x4a316e[_0x2f3ed8(0x1a7)])==null?void 0x0:_0x20e75e[_0x2f3ed8(0x1ac)])!=null?_0x5db011:0x0)>0x0){const _0x2101d5=(_0xe90f10,_0x598753)=>({'id':_0xe90f10[_0x2f3ed8(0x1a5)],'threadId':_0xe90f10[_0x2f3ed8(0x176)],'dT':D(_0xe90f10[_0x2f3ed8(0x158)]),'personId':_0xe90f10['userId'],'resolved':_0x4a316e[_0x2f3ed8(0x19f)]===I[_0x2f3ed8(0x183)],'unitId':_0x276861,'subUnitId':_0x461976,'text':JSON['parse'](_0xe90f10[_0x2f3ed8(0x19d)]),'parentId':_0x598753}),_0x49f1ab=_0x2101d5(_0x4a316e['replies'][0x0]);return{..._0x49f1ab,'children':_0x4a316e['replies'][_0x2f3ed8(0x150)](0x1)['map'](_0x124394=>_0x2101d5(_0x124394,_0x49f1ab['id']))};}return null;}let f=class{constructor(_0x286ed0,_0x5ac0dd,_0x1e76f8,_0x2e20ff){const _0x35ca70=_0x367783;this[_0x35ca70(0x19e)]=_0x286ed0,this[_0x35ca70(0x16c)]=_0x5ac0dd,this[_0x35ca70(0x17e)]=_0x1e76f8,this[_0x35ca70(0x17d)]=_0x2e20ff;}async[_0x367783(0x186)](_0x3cec3d){const _0x2ae7c6=_0x367783;var _0x4eb105,_0x1983e8;const {parentId:_0x57bf1e,unitId:_0x4cac16,text:_0x3675ba,threadId:_0x8e5424}=_0x3cec3d,_0x47b43b=(_0x1983e8=(_0x4eb105=_0x3675ba[_0x2ae7c6(0x161)])==null?void 0x0:_0x4eb105['filter'](_0xc8e8c7=>_0xc8e8c7['rangeType']===_0x26c66e[_0x2ae7c6(0x155)])[_0x2ae7c6(0x185)](_0x217f08=>_0x217f08[_0x2ae7c6(0x18e)]))!=null?_0x1983e8:[],_0x54e8c8=JSON[_0x2ae7c6(0x195)](_0x3675ba),_0xb1091=(await this[_0x2ae7c6(0x17e)][_0x2ae7c6(0x170)](_0x4cac16))[_0x2ae7c6(0x1b0)]();if(_0x57bf1e){const _0x3724cc={'memberId':_0xb1091,'unitId':_0x4cac16,'content':_0x54e8c8,'mention':_0x47b43b,'threadId':_0x8e5424},_0x3f9469=(await this[_0x2ae7c6(0x19e)][_0x2ae7c6(0x1a8)]('/universer-api/comment/unit/'+_0x4cac16+'/reply',{'body':_0x3724cc}))[_0x2ae7c6(0x187)][_0x2ae7c6(0x14c)];return{..._0x3cec3d,'id':_0x3f9469['replyId'],'dT':_0x312f83(+_0x3f9469['createTimestamp'])['format'](_0x2ae7c6(0x17f)),'personId':_0x3f9469[_0x2ae7c6(0x15e)]};}else{const _0x14ff3f={'memberId':_0xb1091,'unitId':_0x4cac16,'content':_0x54e8c8,'mention':_0x47b43b},_0x255491=await this['_httpService'][_0x2ae7c6(0x1a8)](_0x2ae7c6(0x160)+_0x4cac16+'/add',{'body':_0x14ff3f});return X(_0x255491[_0x2ae7c6(0x187)][_0x2ae7c6(0x168)],_0x3cec3d);}}async[_0x367783(0x17c)](_0x491178){const _0x333cb6=_0x367783;var _0x3689dd,_0x184141;const {text:_0x326e33,unitId:_0x27fff3}=_0x491178,_0x3e11c3=(_0x184141=(_0x3689dd=_0x326e33['customRanges'])==null?void 0x0:_0x3689dd[_0x333cb6(0x162)](_0x45ecc3=>_0x45ecc3[_0x333cb6(0x157)]===_0x26c66e[_0x333cb6(0x155)])['map'](_0x488d44=>_0x488d44[_0x333cb6(0x18e)]))!=null?_0x184141:[],_0x53c8fe=JSON[_0x333cb6(0x195)](_0x326e33),_0xabd22d=_0x491178[_0x333cb6(0x176)],_0x49c21b=_0x491178['id'],_0x2a0c15={'memberId':(await this[_0x333cb6(0x17e)][_0x333cb6(0x170)](_0x27fff3))[_0x333cb6(0x1b0)](),'unitId':_0x27fff3,'threadId':_0xabd22d,'mention':_0x3e11c3,'content':_0x53c8fe,'replyId':_0x49c21b},_0x216241=await this[_0x333cb6(0x19e)][_0x333cb6(0x1a8)]('/universer-api/comment/unit/'+_0x27fff3+_0x333cb6(0x151),{'body':_0x2a0c15});return!_0x216241[_0x333cb6(0x187)][_0x333cb6(0x167)]||_0x216241[_0x333cb6(0x187)][_0x333cb6(0x167)][_0x333cb6(0x14f)]===0x1;}async['resolveComment'](_0x1eb225){const _0x542ee3=_0x367783,{unitId:_0x487948}=_0x1eb225,_0x45f48f=_0x1eb225[_0x542ee3(0x176)],_0xb28485={'memberId':this[_0x542ee3(0x16c)][_0x542ee3(0x1af)]()['userID'],'unitId':_0x487948,'threadId':_0x45f48f,'solved':_0x1eb225[_0x542ee3(0x188)]?I[_0x542ee3(0x183)]:I[_0x542ee3(0x1a6)]},_0x8dfbcb=await this[_0x542ee3(0x19e)][_0x542ee3(0x1a8)](_0x542ee3(0x160)+_0x487948+_0x542ee3(0x194),{'body':_0xb28485});return!_0x8dfbcb[_0x542ee3(0x187)]['error']||_0x8dfbcb[_0x542ee3(0x187)]['error'][_0x542ee3(0x14f)]===0x1;}async[_0x367783(0x165)](_0x4e6d2c,_0x1e1afa,_0x19d438,_0x1df33e){const _0xfa85e7=_0x367783,_0x1293a7={'memberId':(await this[_0xfa85e7(0x17e)][_0xfa85e7(0x170)](_0x4e6d2c))['getMemberID'](),'threadId':_0x19d438,'replyId':_0x1df33e,'unitId':_0x4e6d2c},_0x1e3f0e=await this[_0xfa85e7(0x19e)][_0xfa85e7(0x1a8)](_0xfa85e7(0x160)+_0x4e6d2c+_0xfa85e7(0x152),{'body':_0x1293a7});return!_0x1e3f0e['body'][_0xfa85e7(0x167)]||_0x1e3f0e['body']['error'][_0xfa85e7(0x14f)]===0x1;}async[_0x367783(0x198)](_0x56b6d3,_0x31e9f7,_0x4fa723){const _0x16cb7a=_0x367783,_0x11ceab={'unitId':_0x56b6d3,'threadId':_0x4fa723},_0x219d12=await this['_httpService']['post'](_0x16cb7a(0x160)+_0x56b6d3+_0x16cb7a(0x19b),{'body':_0x11ceab}),_0x48f997=_0x4fa723[_0x16cb7a(0x185)](_0x2ceb22=>ee(_0x219d12[_0x16cb7a(0x187)]['comments'][_0x2ceb22],_0x56b6d3,_0x31e9f7))[_0x16cb7a(0x162)](Boolean);return Object[_0x16cb7a(0x153)](_0x219d12['body'][_0x16cb7a(0x15a)])[_0x16cb7a(0x16f)](_0x2dcc7e=>{const _0x28cb58=_0x16cb7a;this['_userService'][_0x28cb58(0x199)](_0x2dcc7e);}),_0x48f997;}[_0x367783(0x15b)](_0x54dd1e){const _0x285ba6=_0x367783;return{'id':_0x54dd1e['id'],'threadId':_0x54dd1e[_0x285ba6(0x176)],'ref':_0x54dd1e[_0x285ba6(0x184)]};}};f=Q([_(0x0,_0x1065cf(_0x3427a4)),_(0x1,_0x1065cf(_0x9755f8)),_(0x2,_0x1065cf(_0x26ab45)),_(0x3,_0x1065cf(_0x450818))],f);function _0x5cac(){const _0x1286d4=['personId','listComments','addUser','UNIVER_UNKNOWN','/list','51915UWzYHv','content','_httpService','solved','getUnit','147174CGlkJY','_commentService','Unknown','8003880PjVyNM','replyId','OpenOrReOpen','replies','post','130qtSbrH','_configService','Delete','length','UNRECOGNIZED','_initDataSource','getCurrentUser','getMemberID','Solve','dataSource','find','reply','symbol','Reply','code','slice','/edit','/delete','values','getOwnPropertyDescriptor','COMMENT','resolveComment','rangeType','createTimestamp','_init','users','saveCommentToSnapshot','31109076wRVMUX','_initUserSync','userId','getComment','/universer-api/comment/unit/','customRanges','filter','4137964qfpwHx','_threadCommentModel','deleteComment','_threadCommentDataSourceService','error','comment','delete','Add','pluginName','_userService','get','836633Ikncel','forEach','requireSession','onReady','userID','parse','add','onStarting','threadId','634727jQaFlU','root','_threadCommentDataSource','parentId','thread-comment-data-source.config','updateComment','_injector','_sessionService','YYYY/MM/DD\x20HH:mm','225yNeloF','_config','user','Solved','ref','map','addComment','body','resolved','commentUpdate$','defineProperty','subscribe','setConfig','Edit','rangeId','format','unitId','getUser','disposeWithMe','type','/solved','stringify','syncUpdateMutationToColla'];_0x5cac=function(){return _0x1286d4;};return _0x5cac();}function _0x572d(_0x54dac4,_0x19fe3d){const _0x5cac77=_0x5cac();return _0x572d=function(_0x572d26,_0x243166){_0x572d26=_0x572d26-0x149;let _0x1dc1bf=_0x5cac77[_0x572d26];return _0x1dc1bf;},_0x572d(_0x54dac4,_0x19fe3d);}var re=Object['getOwnPropertyDescriptor'],te=(_0x23ecdb,_0x17cae0,_0x126cc2,_0x51aa8d)=>{const _0x204f5a=_0x367783;for(var _0x353f9=_0x51aa8d>0x1?void 0x0:_0x51aa8d?re(_0x17cae0,_0x126cc2):_0x17cae0,_0x4c55d2=_0x23ecdb[_0x204f5a(0x1ac)]-0x1,_0xdcbab1;_0x4c55d2>=0x0;_0x4c55d2--)(_0xdcbab1=_0x23ecdb[_0x4c55d2])&&(_0x353f9=_0xdcbab1(_0x353f9)||_0x353f9);return _0x353f9;},N=(_0x47800d,_0x2b9342)=>(_0x32109c,_0x26a22f)=>_0x2b9342(_0x32109c,_0x26a22f,_0x47800d);let g=class extends _0x484ee6{constructor(_0x6315c6,_0x546c4a){const _0x333afd=_0x367783;super(),this[_0x333afd(0x166)]=_0x6315c6,this['_threadCommentDataSource']=_0x546c4a,this['_initDataSource']();}[_0x367783(0x1ae)](){const _0x10f390=_0x367783;this[_0x10f390(0x166)][_0x10f390(0x14a)]=this[_0x10f390(0x179)],this['_threadCommentDataSourceService'][_0x10f390(0x196)]=!0x1;}};g=te([N(0x0,_0x51f4e0),N(0x1,_0x1065cf(f))],g);var se=Object[_0x367783(0x18a)],oe=Object[_0x367783(0x154)],ne=(_0x2e5a29,_0x27eaf2,_0x4179b3)=>_0x27eaf2 in _0x2e5a29?se(_0x2e5a29,_0x27eaf2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4179b3}):_0x2e5a29[_0x27eaf2]=_0x4179b3,ie=(_0x2714bb,_0x98966b,_0x9f801d,_0x3d390c)=>{const _0xaa61d4=_0x367783;for(var _0x3e1eef=_0x3d390c>0x1?void 0x0:_0x3d390c?oe(_0x98966b,_0x9f801d):_0x98966b,_0x515879=_0x2714bb[_0xaa61d4(0x1ac)]-0x1,_0xc297ae;_0x515879>=0x0;_0x515879--)(_0xc297ae=_0x2714bb[_0x515879])&&(_0x3e1eef=_0xc297ae(_0x3e1eef)||_0x3e1eef);return _0x3e1eef;},w=(_0x132eb4,_0x58054c)=>(_0x2de5d3,_0x177d0d)=>_0x58054c(_0x2de5d3,_0x177d0d,_0x132eb4),$=(_0xdb4d5f,_0x504e9f,_0x58a6fb)=>ne(_0xdb4d5f,typeof _0x504e9f!=_0x367783(0x14d)?_0x504e9f+'':_0x504e9f,_0x58a6fb);let b=class extends _0x1d0d27{constructor(_0x1f21d3=M,_0x124fc6,_0x32fcca){const _0x5781be=_0x367783;super(),this[_0x5781be(0x181)]=_0x1f21d3,this[_0x5781be(0x17d)]=_0x124fc6,this['_configService']=_0x32fcca;const {..._0x349490}=_0x1e4b11({},M,this[_0x5781be(0x181)]);this[_0x5781be(0x1aa)][_0x5781be(0x18c)](z,_0x349490);}[_0x367783(0x175)](){[[f],[g],[S]]['forEach'](_0xc013c3=>{const _0x2d1622=_0x572d;this[_0x2d1622(0x17d)]['add'](_0xc013c3);});}[_0x367783(0x171)](){const _0x28d5b9=_0x367783;this[_0x28d5b9(0x17d)][_0x28d5b9(0x16d)](g),this[_0x28d5b9(0x17d)][_0x28d5b9(0x16d)](S);}};$(b,_0x367783(0x16b),W),$(b,'type',_0x484e79[_0x367783(0x19a)]),b=ie([_0x556bbe(_0x2b0db6,_0xad27e3,_0x5c7147),w(0x1,_0x1065cf(_0x450818)),w(0x2,_0x2b831d)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2b5fac=_0x5bf1;function _0x269e(){const _0x93f086=['customRanges','getUnit','solved','13911007bplEgo','rangeId','_threadCommentModel','Delete','4NhYCEb','_userService','disposeWithMe','userID','addComment','398001cXrOUp','values','syncUpdateMutationToColla','12oFdjsp','add','user','saveCommentToSnapshot','code','defineProperty','post','10nLouNw','addUser','/reply','thread-comment-data-source.config','OpenOrReOpen','_configService','comment','get','users','map','_threadCommentDataSource','threadId','610461OlAiyV','_init','getMemberID','format','Solve','stringify','_httpService','updateComment','pluginName','Unknown','1231672pCVwbr','/edit','setConfig','requireSession','slice','5QOyYPv','getComment','subscribe','579792OoBaVQ','forEach','content','/list','_sessionService','error','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','parse','type','delete','resolved','replies','_initDataSource','getCurrentUser','filter','parentId','deleteComment','Solved','userId','personId','replyId','_config','root','UNRECOGNIZED','/universer-api/user/list','onReady','getOwnPropertyDescriptor','/solved','resolveComment','reply','_threadCommentDataSourceService','216XsHLwf','_injector','Reply','Edit','UNIVER_UNKNOWN','createTimestamp','_commentService','Add','172228EYgxpi','1094526tosQWB','_initUserSync','/delete','comments','YYYY/MM/DD\x20HH:mm','find','commentUpdate$','/universer-api/comment/unit/','unitId','length','body'];_0x269e=function(){return _0x93f086;};return _0x269e();}(function(_0x57c658,_0x57cd5b){const _0x38ab5c=_0x5bf1,_0x2adb85=_0x57c658();while(!![]){try{const _0x516d7d=parseInt(_0x38ab5c(0x126))/0x1+parseInt(_0x38ab5c(0x11e))/0x2+-parseInt(_0x38ab5c(0xfe))/0x3*(parseInt(_0x38ab5c(0x160))/0x4)+-parseInt(_0x38ab5c(0x123))/0x5*(parseInt(_0x38ab5c(0x14e))/0x6)+-parseInt(_0x38ab5c(0x14d))/0x7*(-parseInt(_0x38ab5c(0x145))/0x8)+parseInt(_0x38ab5c(0x114))/0x9*(parseInt(_0x38ab5c(0x108))/0xa)+parseInt(_0x38ab5c(0x15c))/0xb*(-parseInt(_0x38ab5c(0x101))/0xc);if(_0x516d7d===_0x57cd5b)break;else _0x2adb85['push'](_0x2adb85['shift']());}catch(_0x4b976c){_0x2adb85['push'](_0x2adb85['shift']());}}}(_0x269e,0x54f88));import{CommentService as _0x1643d3,CollaborationSessionService as _0x4592f,UniverCollaborationClientPlugin as _0x12c884}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x13415b}from'@univerjs-pro/license';import{dayjs as _0x5dd75f,UserManagerService as _0x475b3b,Inject as _0xccccd8,Injector as _0x1b0878,Disposable as _0x527aee,CustomRangeType as _0x1ee0ce,UniverInstanceType as _0x538ad9,DependentOn as _0x1756f4,IConfigService as _0x47c9d3,Plugin as _0x107f9d,merge as _0x2dacfc}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x1b6c56}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x6cf1a6,IThreadCommentDataSourceService as _0x41d95c}from'@univerjs/thread-comment';import{bufferTime as _0x12c025}from'rxjs';import{HTTPService as _0x23c06a}from'@univerjs/network';const W=_0x2b5fac(0x12c);var I=(_0x29b1bd=>(_0x29b1bd[_0x29b1bd['OpenOrReOpen']=0x0]=_0x2b5fac(0x10c),_0x29b1bd[_0x29b1bd[_0x2b5fac(0x137)]=0x1]=_0x2b5fac(0x137),_0x29b1bd[_0x29b1bd[_0x2b5fac(0x13d)]=-0x1]=_0x2b5fac(0x13d),_0x29b1bd))(I||{}),v=(_0x4928fe=>(_0x4928fe[_0x4928fe[_0x2b5fac(0x11d)]=0x0]='Unknown',_0x4928fe[_0x4928fe[_0x2b5fac(0x14c)]=0x1]=_0x2b5fac(0x14c),_0x4928fe[_0x4928fe[_0x2b5fac(0x147)]=0x2]=_0x2b5fac(0x147),_0x4928fe[_0x4928fe[_0x2b5fac(0x148)]=0x3]=_0x2b5fac(0x148),_0x4928fe[_0x4928fe[_0x2b5fac(0x15f)]=0x4]=_0x2b5fac(0x15f),_0x4928fe[_0x4928fe[_0x2b5fac(0x118)]=0x5]=_0x2b5fac(0x118),_0x4928fe[_0x4928fe['UNRECOGNIZED']=-0x1]=_0x2b5fac(0x13d),_0x4928fe))(v||{});const D=_0x5425ad=>_0x5dd75f(new Date(+_0x5425ad))[_0x2b5fac(0x117)](_0x2b5fac(0x152)),B=async(_0x5bd1bc,_0x22f234)=>{const _0x5f0595=_0x2b5fac,_0xfa8faa=_0x5bd1bc['get'](_0x475b3b),_0xc6e68d=_0x5bd1bc[_0x5f0595(0x10f)](_0x23c06a);_0x22f234['forEach'](_0x2e1d15=>{const _0x5ad52f=_0x5f0595;_0xfa8faa['getUser'](_0x2e1d15)&&_0x22f234[_0x5ad52f(0x12f)](_0x2e1d15);}),_0x22f234['size']&&(await _0xc6e68d[_0x5f0595(0x10f)](_0x5f0595(0x13e),{'params':{'userIDs':[..._0x22f234]}}))[_0x5f0595(0x158)][_0x5f0595(0x110)][_0x5f0595(0x127)](_0x36b20d=>{const _0x4dc00e=_0x5f0595;_0x36b20d&&_0xfa8faa[_0x4dc00e(0x109)](_0x36b20d);});};var K=Object[_0x2b5fac(0x140)],V=(_0x5e98ca,_0x5b0da5,_0x3d8529,_0x136388)=>{for(var _0x97c3e3=_0x136388>0x1?void 0x0:_0x136388?K(_0x5b0da5,_0x3d8529):_0x5b0da5,_0x14e9d0=_0x5e98ca['length']-0x1,_0x122917;_0x14e9d0>=0x0;_0x14e9d0--)(_0x122917=_0x5e98ca[_0x14e9d0])&&(_0x97c3e3=_0x122917(_0x97c3e3)||_0x97c3e3);return _0x97c3e3;},p=(_0x64a685,_0x10b575)=>(_0x2e257b,_0x54abce)=>_0x10b575(_0x2e257b,_0x54abce,_0x64a685);let S=class extends _0x527aee{constructor(_0x4a844c,_0x1fee33,_0x1f9472,_0x4bfd8e){const _0x37dcf8=_0x2b5fac;super(),this[_0x37dcf8(0x14b)]=_0x4a844c,this[_0x37dcf8(0x15e)]=_0x1fee33,this[_0x37dcf8(0x161)]=_0x1f9472,this[_0x37dcf8(0x146)]=_0x4bfd8e,this['_init'](),this[_0x37dcf8(0x14f)]();}['_initUserSync'](){const _0x127aef=_0x2b5fac;this[_0x127aef(0x162)](this['_threadCommentModel'][_0x127aef(0x154)]['pipe'](_0x12c025(0x10))[_0x127aef(0x125)](_0x275136=>{const _0x3b2511=_0x127aef,_0x580630=new Set();_0x275136[_0x3b2511(0x127)](_0x37ca96=>{const _0x44b486=_0x3b2511;switch(_0x37ca96[_0x44b486(0x12e)]){case _0x44b486(0x102):{const _0x4e1234=_0x37ca96['payload'][_0x44b486(0x139)];_0x580630[_0x44b486(0x102)](_0x4e1234);break;}}}),B(this[_0x3b2511(0x146)],_0x580630);}));}[_0x2b5fac(0x115)](){const _0xebf3f6=_0x2b5fac;this['disposeWithMe'](this['_commentService'][_0xebf3f6(0x154)][_0xebf3f6(0x125)](async _0x291447=>{const _0x2adbe2=_0xebf3f6;var _0x39c001,_0x41c1f4,_0x2fcac5,_0xe5d448;const _0x4e66ac=(_0x39c001=this['_threadCommentModel'][_0x2adbe2(0x15a)](_0x291447[_0x2adbe2(0x156)])['find'](_0xd6c8c7=>_0xd6c8c7[_0x2adbe2(0x113)]===_0x291447['threadId']))==null?void 0x0:_0x39c001['root'];if(!_0x4e66ac)return;const {unitId:_0x574c50,subUnitId:_0x359dae}=_0x4e66ac;switch(_0x291447['user']&&this[_0x2adbe2(0x161)]['addUser'](_0x291447[_0x2adbe2(0x103)]),_0x291447['type']){case v['Add']:break;case v[_0x2adbe2(0x147)]:{this[_0x2adbe2(0x15e)][_0x2adbe2(0xfd)](_0x574c50,_0x359dae,{'unitId':_0x574c50,'subUnitId':_0x359dae,'ref':'','id':_0x291447[_0x2adbe2(0x13a)],'dT':D(+_0x291447[_0x2adbe2(0x14a)]),'threadId':_0x291447[_0x2adbe2(0x113)],'personId':(_0x2fcac5=(_0x41c1f4=_0x291447[_0x2adbe2(0x103)])==null?void 0x0:_0x41c1f4[_0x2adbe2(0xfc)])!=null?_0x2fcac5:_0x291447[_0x2adbe2(0x138)],'text':JSON[_0x2adbe2(0x12d)](_0x291447[_0x2adbe2(0x128)]),'parentId':_0x4e66ac['id']});break;}case v[_0x2adbe2(0x15f)]:{const _0xdb398c=this[_0x2adbe2(0x15e)][_0x2adbe2(0x124)](_0x574c50,_0x359dae,_0x291447[_0x2adbe2(0x13a)]);_0xdb398c&&_0xdb398c[_0x2adbe2(0x135)]&&this[_0x2adbe2(0x15e)]['deleteComment'](_0x574c50,_0x359dae,_0x291447[_0x2adbe2(0x13a)]);break;}case v[_0x2adbe2(0x148)]:{this['_threadCommentModel'][_0x2adbe2(0x11b)](_0x574c50,_0x359dae,{'commentId':_0x291447['replyId'],'text':JSON[_0x2adbe2(0x12d)](_0x291447[_0x2adbe2(0x128)])});break;}case v[_0x2adbe2(0x118)]:{const _0x3951f8=(_0xe5d448=this[_0x2adbe2(0x15e)][_0x2adbe2(0x15a)](_0x291447[_0x2adbe2(0x156)])[_0x2adbe2(0x153)](_0x270489=>_0x270489['threadId']===_0x291447[_0x2adbe2(0x113)]))==null?void 0x0:_0xe5d448[_0x2adbe2(0x13c)];_0x3951f8&&this[_0x2adbe2(0x15e)][_0x2adbe2(0x142)](_0x574c50,_0x359dae,_0x3951f8['id'],_0x291447['solved']===I[_0x2adbe2(0x137)]);break;}}}));}};S=V([p(0x0,_0xccccd8(_0x1643d3)),p(0x1,_0xccccd8(_0x6cf1a6)),p(0x2,_0xccccd8(_0x475b3b)),p(0x3,_0xccccd8(_0x1b0878))],S);function _0x5bf1(_0x44de78,_0x37bb8e){const _0x269eaf=_0x269e();return _0x5bf1=function(_0x5bf1a0,_0x2cebc3){_0x5bf1a0=_0x5bf1a0-0xfc;let _0x204b92=_0x269eaf[_0x5bf1a0];return _0x204b92;},_0x5bf1(_0x44de78,_0x37bb8e);}const z=_0x2b5fac(0x10b),M={};var k=Object['getOwnPropertyDescriptor'],Q=(_0x132c17,_0xca42e9,_0x16ce39,_0x3ba40d)=>{const _0x3f1611=_0x2b5fac;for(var _0x3ddbf8=_0x3ba40d>0x1?void 0x0:_0x3ba40d?k(_0xca42e9,_0x16ce39):_0xca42e9,_0x218c93=_0x132c17[_0x3f1611(0x157)]-0x1,_0x43283a;_0x218c93>=0x0;_0x218c93--)(_0x43283a=_0x132c17[_0x218c93])&&(_0x3ddbf8=_0x43283a(_0x3ddbf8)||_0x3ddbf8);return _0x3ddbf8;},_=(_0x48f0aa,_0xb790b5)=>(_0x304586,_0x1c20ca)=>_0xb790b5(_0x304586,_0x1c20ca,_0x48f0aa);function X(_0x48eef3,_0x35a490){const _0x3c2e26=_0x2b5fac,_0x27483b=_0x48eef3[_0x3c2e26(0x131)][0x0];return{..._0x35a490,'id':_0x27483b[_0x3c2e26(0x13a)],'resolved':_0x48eef3[_0x3c2e26(0x15b)]===0x1,'dT':D(_0x27483b[_0x3c2e26(0x14a)]),'personId':_0x27483b[_0x3c2e26(0x138)],'threadId':_0x27483b[_0x3c2e26(0x113)]};}function ee(_0x27c21a,_0x4ccf6c,_0x62e727){const _0x3f3efc=_0x2b5fac;var _0x166a76,_0x2d688c;if(((_0x2d688c=(_0x166a76=_0x27c21a==null?void 0x0:_0x27c21a[_0x3f3efc(0x131)])==null?void 0x0:_0x166a76[_0x3f3efc(0x157)])!=null?_0x2d688c:0x0)>0x0){const _0x30bd7f=(_0x42fbd8,_0x20717c)=>({'id':_0x42fbd8[_0x3f3efc(0x13a)],'threadId':_0x42fbd8[_0x3f3efc(0x113)],'dT':D(_0x42fbd8[_0x3f3efc(0x14a)]),'personId':_0x42fbd8[_0x3f3efc(0x138)],'resolved':_0x27c21a[_0x3f3efc(0x15b)]===I[_0x3f3efc(0x137)],'unitId':_0x4ccf6c,'subUnitId':_0x62e727,'text':JSON[_0x3f3efc(0x12d)](_0x42fbd8[_0x3f3efc(0x128)]),'parentId':_0x20717c}),_0x5de295=_0x30bd7f(_0x27c21a[_0x3f3efc(0x131)][0x0]);return{..._0x5de295,'children':_0x27c21a['replies'][_0x3f3efc(0x122)](0x1)[_0x3f3efc(0x111)](_0xe248bc=>_0x30bd7f(_0xe248bc,_0x5de295['id']))};}return null;}let f=class{constructor(_0x2abf80,_0x1da02e,_0x4c3d9b,_0x2e7f25){const _0x615afb=_0x2b5fac;this[_0x615afb(0x11a)]=_0x2abf80,this[_0x615afb(0x161)]=_0x1da02e,this['_sessionService']=_0x4c3d9b,this[_0x615afb(0x146)]=_0x2e7f25;}async['addComment'](_0x13165b){const _0x463547=_0x2b5fac;var _0x2de4b6,_0x589973;const {parentId:_0x35f11e,unitId:_0x54557a,text:_0x30c8fd,threadId:_0x20b42c}=_0x13165b,_0x19e199=(_0x589973=(_0x2de4b6=_0x30c8fd[_0x463547(0x159)])==null?void 0x0:_0x2de4b6['filter'](_0x560bff=>_0x560bff['rangeType']===_0x1ee0ce['COMMENT'])[_0x463547(0x111)](_0x48c29=>_0x48c29[_0x463547(0x15d)]))!=null?_0x589973:[],_0x19a126=JSON['stringify'](_0x30c8fd),_0x23eefb=(await this['_sessionService'][_0x463547(0x121)](_0x54557a))['getMemberID']();if(_0x35f11e){const _0x428aa0={'memberId':_0x23eefb,'unitId':_0x54557a,'content':_0x19a126,'mention':_0x19e199,'threadId':_0x20b42c},_0x1da836=(await this[_0x463547(0x11a)][_0x463547(0x107)](_0x463547(0x155)+_0x54557a+_0x463547(0x10a),{'body':_0x428aa0}))[_0x463547(0x158)][_0x463547(0x143)];return{..._0x13165b,'id':_0x1da836[_0x463547(0x13a)],'dT':_0x5dd75f(+_0x1da836[_0x463547(0x14a)])[_0x463547(0x117)]('YYYY/MM/DD\x20HH:mm'),'personId':_0x1da836[_0x463547(0x138)]};}else{const _0x5af8e8={'memberId':_0x23eefb,'unitId':_0x54557a,'content':_0x19a126,'mention':_0x19e199},_0x584287=await this[_0x463547(0x11a)][_0x463547(0x107)](_0x463547(0x155)+_0x54557a+'/add',{'body':_0x5af8e8});return X(_0x584287[_0x463547(0x158)][_0x463547(0x10e)],_0x13165b);}}async[_0x2b5fac(0x11b)](_0x5a97b7){const _0x55c84e=_0x2b5fac;var _0x982412,_0x36eac2;const {text:_0x90545b,unitId:_0x568535}=_0x5a97b7,_0x18b10a=(_0x36eac2=(_0x982412=_0x90545b[_0x55c84e(0x159)])==null?void 0x0:_0x982412[_0x55c84e(0x134)](_0xc80bc8=>_0xc80bc8['rangeType']===_0x1ee0ce['COMMENT'])[_0x55c84e(0x111)](_0x50aa73=>_0x50aa73['rangeId']))!=null?_0x36eac2:[],_0x50166b=JSON[_0x55c84e(0x119)](_0x90545b),_0x2323d4=_0x5a97b7[_0x55c84e(0x113)],_0x2b2bdd=_0x5a97b7['id'],_0x41178e={'memberId':(await this[_0x55c84e(0x12a)][_0x55c84e(0x121)](_0x568535))['getMemberID'](),'unitId':_0x568535,'threadId':_0x2323d4,'mention':_0x18b10a,'content':_0x50166b,'replyId':_0x2b2bdd},_0xad1fea=await this['_httpService']['post']('/universer-api/comment/unit/'+_0x568535+_0x55c84e(0x11f),{'body':_0x41178e});return!_0xad1fea[_0x55c84e(0x158)]['error']||_0xad1fea[_0x55c84e(0x158)][_0x55c84e(0x12b)]['code']===0x1;}async[_0x2b5fac(0x142)](_0x50be37){const _0x46edd9=_0x2b5fac,{unitId:_0x104c0d}=_0x50be37,_0x31eb37=_0x50be37[_0x46edd9(0x113)],_0x171288={'memberId':this[_0x46edd9(0x161)][_0x46edd9(0x133)]()[_0x46edd9(0xfc)],'unitId':_0x104c0d,'threadId':_0x31eb37,'solved':_0x50be37[_0x46edd9(0x130)]?I['Solved']:I[_0x46edd9(0x10c)]},_0x11c0b3=await this[_0x46edd9(0x11a)][_0x46edd9(0x107)](_0x46edd9(0x155)+_0x104c0d+_0x46edd9(0x141),{'body':_0x171288});return!_0x11c0b3[_0x46edd9(0x158)][_0x46edd9(0x12b)]||_0x11c0b3[_0x46edd9(0x158)][_0x46edd9(0x12b)][_0x46edd9(0x105)]===0x1;}async[_0x2b5fac(0x136)](_0x121ee7,_0x40bd14,_0x5c73b7,_0x24970a){const _0x3f888b=_0x2b5fac,_0x4df111={'memberId':(await this[_0x3f888b(0x12a)][_0x3f888b(0x121)](_0x121ee7))[_0x3f888b(0x116)](),'threadId':_0x5c73b7,'replyId':_0x24970a,'unitId':_0x121ee7},_0x145911=await this['_httpService'][_0x3f888b(0x107)](_0x3f888b(0x155)+_0x121ee7+_0x3f888b(0x150),{'body':_0x4df111});return!_0x145911[_0x3f888b(0x158)][_0x3f888b(0x12b)]||_0x145911[_0x3f888b(0x158)][_0x3f888b(0x12b)][_0x3f888b(0x105)]===0x1;}async['listComments'](_0xd1cb93,_0x52dbe0,_0x23becd){const _0x33f765=_0x2b5fac,_0x50ce29={'unitId':_0xd1cb93,'threadId':_0x23becd},_0x29872d=await this[_0x33f765(0x11a)][_0x33f765(0x107)](_0x33f765(0x155)+_0xd1cb93+_0x33f765(0x129),{'body':_0x50ce29}),_0x327995=_0x23becd['map'](_0x3714ec=>ee(_0x29872d['body'][_0x33f765(0x151)][_0x3714ec],_0xd1cb93,_0x52dbe0))[_0x33f765(0x134)](Boolean);return Object[_0x33f765(0xff)](_0x29872d['body'][_0x33f765(0x110)])[_0x33f765(0x127)](_0x32ec6d=>{const _0x20ae81=_0x33f765;this[_0x20ae81(0x161)]['addUser'](_0x32ec6d);}),_0x327995;}[_0x2b5fac(0x104)](_0x5dd41d){const _0x243945=_0x2b5fac;return{'id':_0x5dd41d['id'],'threadId':_0x5dd41d[_0x243945(0x113)],'ref':_0x5dd41d['ref']};}};f=Q([_(0x0,_0xccccd8(_0x23c06a)),_(0x1,_0xccccd8(_0x475b3b)),_(0x2,_0xccccd8(_0x4592f)),_(0x3,_0xccccd8(_0x1b0878))],f);var re=Object[_0x2b5fac(0x140)],te=(_0x10e7d1,_0x142d30,_0x5ba3f9,_0x363f58)=>{const _0x2c4dae=_0x2b5fac;for(var _0x3c1fd7=_0x363f58>0x1?void 0x0:_0x363f58?re(_0x142d30,_0x5ba3f9):_0x142d30,_0x286c7d=_0x10e7d1[_0x2c4dae(0x157)]-0x1,_0xa01b62;_0x286c7d>=0x0;_0x286c7d--)(_0xa01b62=_0x10e7d1[_0x286c7d])&&(_0x3c1fd7=_0xa01b62(_0x3c1fd7)||_0x3c1fd7);return _0x3c1fd7;},N=(_0x23ee45,_0x52a34e)=>(_0x57f084,_0x4136af)=>_0x52a34e(_0x57f084,_0x4136af,_0x23ee45);let g=class extends _0x527aee{constructor(_0x502bf9,_0x2c82ba){const _0x496a1a=_0x2b5fac;super(),this['_threadCommentDataSourceService']=_0x502bf9,this[_0x496a1a(0x112)]=_0x2c82ba,this[_0x496a1a(0x132)]();}[_0x2b5fac(0x132)](){const _0x42314e=_0x2b5fac;this[_0x42314e(0x144)]['dataSource']=this[_0x42314e(0x112)],this[_0x42314e(0x144)][_0x42314e(0x100)]=!0x1;}};g=te([N(0x0,_0x41d95c),N(0x1,_0xccccd8(f))],g);var se=Object[_0x2b5fac(0x106)],oe=Object[_0x2b5fac(0x140)],ne=(_0xbcb39a,_0x35f1cd,_0xee785d)=>_0x35f1cd in _0xbcb39a?se(_0xbcb39a,_0x35f1cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xee785d}):_0xbcb39a[_0x35f1cd]=_0xee785d,ie=(_0x450e88,_0x48f20b,_0x14f01f,_0x4b5a12)=>{const _0x3ee6db=_0x2b5fac;for(var _0x2fcadd=_0x4b5a12>0x1?void 0x0:_0x4b5a12?oe(_0x48f20b,_0x14f01f):_0x48f20b,_0x4bb6f4=_0x450e88[_0x3ee6db(0x157)]-0x1,_0x4cefe8;_0x4bb6f4>=0x0;_0x4bb6f4--)(_0x4cefe8=_0x450e88[_0x4bb6f4])&&(_0x2fcadd=_0x4cefe8(_0x2fcadd)||_0x2fcadd);return _0x2fcadd;},w=(_0x37468c,_0x1f5429)=>(_0x541a3d,_0x55fc0d)=>_0x1f5429(_0x541a3d,_0x55fc0d,_0x37468c),$=(_0x4ad1f1,_0x3d93f5,_0x8da227)=>ne(_0x4ad1f1,typeof _0x3d93f5!='symbol'?_0x3d93f5+'':_0x3d93f5,_0x8da227);let b=class extends _0x107f9d{constructor(_0x10935b=M,_0x41f671,_0x401885){const _0x5ee2bd=_0x2b5fac;super(),this[_0x5ee2bd(0x13b)]=_0x10935b,this[_0x5ee2bd(0x146)]=_0x41f671,this[_0x5ee2bd(0x10d)]=_0x401885;const {..._0x513e42}=_0x2dacfc({},M,this[_0x5ee2bd(0x13b)]);this['_configService'][_0x5ee2bd(0x120)](z,_0x513e42);}['onStarting'](){[[f],[g],[S]]['forEach'](_0x31668b=>{const _0x10ea49=_0x5bf1;this[_0x10ea49(0x146)][_0x10ea49(0x102)](_0x31668b);});}[_0x2b5fac(0x13f)](){const _0x507d8c=_0x2b5fac;this[_0x507d8c(0x146)][_0x507d8c(0x10f)](g),this[_0x507d8c(0x146)][_0x507d8c(0x10f)](S);}};$(b,_0x2b5fac(0x11c),W),$(b,'type',_0x538ad9[_0x2b5fac(0x149)]),b=ie([_0x1756f4(_0x1b6c56,_0x12c884,_0x13415b),w(0x1,_0xccccd8(_0x1b0878)),w(0x2,_0x47c9d3)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
|
1
|
+
const _0x367783=_0x572d;(function(_0x58f0c6,_0x2b9630){const _0xed4da0=_0x572d,_0x1e2149=_0x58f0c6();while(!![]){try{const _0x7c32e7=-parseInt(_0xed4da0(0x177))/0x1+-parseInt(_0xed4da0(0x1a9))/0x2*(parseInt(_0xed4da0(0x19c))/0x3)+-parseInt(_0xed4da0(0x163))/0x4+-parseInt(_0xed4da0(0x180))/0x5*(parseInt(_0xed4da0(0x1a1))/0x6)+parseInt(_0xed4da0(0x16e))/0x7+parseInt(_0xed4da0(0x1a4))/0x8+parseInt(_0xed4da0(0x15c))/0x9;if(_0x7c32e7===_0x2b9630)break;else _0x1e2149['push'](_0x1e2149['shift']());}catch(_0x2fa245){_0x1e2149['push'](_0x1e2149['shift']());}}}(_0x5cac,0xa5b40));import{CommentService as _0x40b78c,CollaborationSessionService as _0x26ab45,UniverCollaborationClientPlugin as _0xad27e3}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x5c7147}from'@univerjs-pro/license';import{dayjs as _0x312f83,UserManagerService as _0x9755f8,Inject as _0x1065cf,Injector as _0x450818,Disposable as _0x484ee6,CustomRangeType as _0x26c66e,UniverInstanceType as _0x484e79,DependentOn as _0x556bbe,IConfigService as _0x2b831d,Plugin as _0x1d0d27,merge as _0x1e4b11}from'@univerjs/core';import{UniverThreadCommentUIPlugin as _0x2b0db6}from'@univerjs/thread-comment-ui';import{ThreadCommentModel as _0x5b5c0e,IThreadCommentDataSourceService as _0x51f4e0}from'@univerjs/thread-comment';import{bufferTime as _0x34da1e}from'rxjs';import{HTTPService as _0x3427a4}from'@univerjs/network';const W='UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN';var I=(_0x1416ba=>(_0x1416ba[_0x1416ba[_0x367783(0x1a6)]=0x0]=_0x367783(0x1a6),_0x1416ba[_0x1416ba[_0x367783(0x183)]=0x1]=_0x367783(0x183),_0x1416ba[_0x1416ba[_0x367783(0x1ad)]=-0x1]=_0x367783(0x1ad),_0x1416ba))(I||{}),v=(_0x18e661=>(_0x18e661[_0x18e661[_0x367783(0x1a3)]=0x0]=_0x367783(0x1a3),_0x18e661[_0x18e661[_0x367783(0x16a)]=0x1]=_0x367783(0x16a),_0x18e661[_0x18e661[_0x367783(0x14e)]=0x2]=_0x367783(0x14e),_0x18e661[_0x18e661[_0x367783(0x18d)]=0x3]='Edit',_0x18e661[_0x18e661[_0x367783(0x1ab)]=0x4]=_0x367783(0x1ab),_0x18e661[_0x18e661['Solve']=0x5]=_0x367783(0x149),_0x18e661[_0x18e661[_0x367783(0x1ad)]=-0x1]=_0x367783(0x1ad),_0x18e661))(v||{});const D=_0x3dd599=>_0x312f83(new Date(+_0x3dd599))[_0x367783(0x18f)](_0x367783(0x17f)),B=async(_0x5e2088,_0x553d96)=>{const _0x5392da=_0x367783,_0x11e3a4=_0x5e2088[_0x5392da(0x16d)](_0x9755f8),_0x3c6c66=_0x5e2088[_0x5392da(0x16d)](_0x3427a4);_0x553d96[_0x5392da(0x16f)](_0x3947f9=>{const _0xaeeee6=_0x5392da;_0x11e3a4[_0xaeeee6(0x191)](_0x3947f9)&&_0x553d96[_0xaeeee6(0x169)](_0x3947f9);}),_0x553d96['size']&&(await _0x3c6c66[_0x5392da(0x16d)]('/universer-api/user/list',{'params':{'userIDs':[..._0x553d96]}}))['body'][_0x5392da(0x15a)][_0x5392da(0x16f)](_0x38c8c9=>{const _0x28b74d=_0x5392da;_0x38c8c9&&_0x11e3a4[_0x28b74d(0x199)](_0x38c8c9);});};var K=Object[_0x367783(0x154)],V=(_0x2366a2,_0x2f4c9d,_0xecc579,_0x17c6f1)=>{const _0x1f8369=_0x367783;for(var _0x5dd38d=_0x17c6f1>0x1?void 0x0:_0x17c6f1?K(_0x2f4c9d,_0xecc579):_0x2f4c9d,_0x1a58d6=_0x2366a2[_0x1f8369(0x1ac)]-0x1,_0x4fda5d;_0x1a58d6>=0x0;_0x1a58d6--)(_0x4fda5d=_0x2366a2[_0x1a58d6])&&(_0x5dd38d=_0x4fda5d(_0x5dd38d)||_0x5dd38d);return _0x5dd38d;},p=(_0x5da089,_0x55e10b)=>(_0x268e1c,_0x48eec2)=>_0x55e10b(_0x268e1c,_0x48eec2,_0x5da089);let S=class extends _0x484ee6{constructor(_0xe841a8,_0x3693ec,_0x73880a,_0x1274ed){const _0x5484ac=_0x367783;super(),this[_0x5484ac(0x1a2)]=_0xe841a8,this[_0x5484ac(0x164)]=_0x3693ec,this['_userService']=_0x73880a,this[_0x5484ac(0x17d)]=_0x1274ed,this[_0x5484ac(0x159)](),this[_0x5484ac(0x15d)]();}['_initUserSync'](){const _0x8ca138=_0x367783;this[_0x8ca138(0x192)](this[_0x8ca138(0x164)][_0x8ca138(0x189)]['pipe'](_0x34da1e(0x10))[_0x8ca138(0x18b)](_0xb4502e=>{const _0x316604=_0x8ca138,_0x2c09e0=new Set();_0xb4502e[_0x316604(0x16f)](_0x35742e=>{const _0x2ad83a=_0x316604;switch(_0x35742e[_0x2ad83a(0x193)]){case _0x2ad83a(0x174):{const _0x5b572f=_0x35742e['payload'][_0x2ad83a(0x197)];_0x2c09e0[_0x2ad83a(0x174)](_0x5b572f);break;}}}),B(this[_0x316604(0x17d)],_0x2c09e0);}));}[_0x367783(0x159)](){const _0x4c50fc=_0x367783;this['disposeWithMe'](this[_0x4c50fc(0x1a2)]['commentUpdate$'][_0x4c50fc(0x18b)](async _0x3c8c12=>{const _0x2bcea6=_0x4c50fc;var _0xad60d2,_0x4e6149,_0x35e76c,_0x2ae42a;const _0x2f924c=(_0xad60d2=this[_0x2bcea6(0x164)]['getUnit'](_0x3c8c12[_0x2bcea6(0x190)])['find'](_0x38a58f=>_0x38a58f[_0x2bcea6(0x176)]===_0x3c8c12[_0x2bcea6(0x176)]))==null?void 0x0:_0xad60d2[_0x2bcea6(0x178)];if(!_0x2f924c)return;const {unitId:_0x17ca5a,subUnitId:_0x2eb114}=_0x2f924c;switch(_0x3c8c12[_0x2bcea6(0x182)]&&this[_0x2bcea6(0x16c)][_0x2bcea6(0x199)](_0x3c8c12[_0x2bcea6(0x182)]),_0x3c8c12[_0x2bcea6(0x193)]){case v[_0x2bcea6(0x16a)]:break;case v[_0x2bcea6(0x14e)]:{this['_threadCommentModel'][_0x2bcea6(0x186)](_0x17ca5a,_0x2eb114,{'unitId':_0x17ca5a,'subUnitId':_0x2eb114,'ref':'','id':_0x3c8c12[_0x2bcea6(0x1a5)],'dT':D(+_0x3c8c12[_0x2bcea6(0x158)]),'threadId':_0x3c8c12[_0x2bcea6(0x176)],'personId':(_0x35e76c=(_0x4e6149=_0x3c8c12['user'])==null?void 0x0:_0x4e6149[_0x2bcea6(0x172)])!=null?_0x35e76c:_0x3c8c12['userId'],'text':JSON[_0x2bcea6(0x173)](_0x3c8c12[_0x2bcea6(0x19d)]),'parentId':_0x2f924c['id']});break;}case v['Delete']:{const _0x43dd68=this[_0x2bcea6(0x164)][_0x2bcea6(0x15f)](_0x17ca5a,_0x2eb114,_0x3c8c12['replyId']);_0x43dd68&&_0x43dd68[_0x2bcea6(0x17a)]&&this['_threadCommentModel']['deleteComment'](_0x17ca5a,_0x2eb114,_0x3c8c12[_0x2bcea6(0x1a5)]);break;}case v['Edit']:{this[_0x2bcea6(0x164)][_0x2bcea6(0x17c)](_0x17ca5a,_0x2eb114,{'commentId':_0x3c8c12[_0x2bcea6(0x1a5)],'text':JSON[_0x2bcea6(0x173)](_0x3c8c12[_0x2bcea6(0x19d)])});break;}case v[_0x2bcea6(0x149)]:{const _0x43850e=(_0x2ae42a=this[_0x2bcea6(0x164)][_0x2bcea6(0x1a0)](_0x3c8c12[_0x2bcea6(0x190)])[_0x2bcea6(0x14b)](_0x18dd5a=>_0x18dd5a[_0x2bcea6(0x176)]===_0x3c8c12[_0x2bcea6(0x176)]))==null?void 0x0:_0x2ae42a[_0x2bcea6(0x178)];_0x43850e&&this[_0x2bcea6(0x164)][_0x2bcea6(0x156)](_0x17ca5a,_0x2eb114,_0x43850e['id'],_0x3c8c12[_0x2bcea6(0x19f)]===I[_0x2bcea6(0x183)]);break;}}}));}};S=V([p(0x0,_0x1065cf(_0x40b78c)),p(0x1,_0x1065cf(_0x5b5c0e)),p(0x2,_0x1065cf(_0x9755f8)),p(0x3,_0x1065cf(_0x450818))],S);const z=_0x367783(0x17b),M={};var k=Object[_0x367783(0x154)],Q=(_0x4a0e19,_0x3cf1fe,_0x35c172,_0xef857e)=>{for(var _0x21ef37=_0xef857e>0x1?void 0x0:_0xef857e?k(_0x3cf1fe,_0x35c172):_0x3cf1fe,_0x8fac24=_0x4a0e19['length']-0x1,_0x5ee8cf;_0x8fac24>=0x0;_0x8fac24--)(_0x5ee8cf=_0x4a0e19[_0x8fac24])&&(_0x21ef37=_0x5ee8cf(_0x21ef37)||_0x21ef37);return _0x21ef37;},_=(_0xe0cc0,_0x18aae7)=>(_0x199394,_0x3c762e)=>_0x18aae7(_0x199394,_0x3c762e,_0xe0cc0);function X(_0x494f8d,_0x5b2149){const _0x5a6bbf=_0x367783,_0x33020f=_0x494f8d[_0x5a6bbf(0x1a7)][0x0];return{..._0x5b2149,'id':_0x33020f['replyId'],'resolved':_0x494f8d[_0x5a6bbf(0x19f)]===0x1,'dT':D(_0x33020f['createTimestamp']),'personId':_0x33020f['userId'],'threadId':_0x33020f['threadId']};}function ee(_0x4a316e,_0x276861,_0x461976){const _0x2f3ed8=_0x367783;var _0x20e75e,_0x5db011;if(((_0x5db011=(_0x20e75e=_0x4a316e==null?void 0x0:_0x4a316e[_0x2f3ed8(0x1a7)])==null?void 0x0:_0x20e75e[_0x2f3ed8(0x1ac)])!=null?_0x5db011:0x0)>0x0){const _0x2101d5=(_0xe90f10,_0x598753)=>({'id':_0xe90f10[_0x2f3ed8(0x1a5)],'threadId':_0xe90f10[_0x2f3ed8(0x176)],'dT':D(_0xe90f10[_0x2f3ed8(0x158)]),'personId':_0xe90f10['userId'],'resolved':_0x4a316e[_0x2f3ed8(0x19f)]===I[_0x2f3ed8(0x183)],'unitId':_0x276861,'subUnitId':_0x461976,'text':JSON['parse'](_0xe90f10[_0x2f3ed8(0x19d)]),'parentId':_0x598753}),_0x49f1ab=_0x2101d5(_0x4a316e['replies'][0x0]);return{..._0x49f1ab,'children':_0x4a316e['replies'][_0x2f3ed8(0x150)](0x1)['map'](_0x124394=>_0x2101d5(_0x124394,_0x49f1ab['id']))};}return null;}let f=class{constructor(_0x286ed0,_0x5ac0dd,_0x1e76f8,_0x2e20ff){const _0x35ca70=_0x367783;this[_0x35ca70(0x19e)]=_0x286ed0,this[_0x35ca70(0x16c)]=_0x5ac0dd,this[_0x35ca70(0x17e)]=_0x1e76f8,this[_0x35ca70(0x17d)]=_0x2e20ff;}async[_0x367783(0x186)](_0x3cec3d){const _0x2ae7c6=_0x367783;var _0x4eb105,_0x1983e8;const {parentId:_0x57bf1e,unitId:_0x4cac16,text:_0x3675ba,threadId:_0x8e5424}=_0x3cec3d,_0x47b43b=(_0x1983e8=(_0x4eb105=_0x3675ba[_0x2ae7c6(0x161)])==null?void 0x0:_0x4eb105['filter'](_0xc8e8c7=>_0xc8e8c7['rangeType']===_0x26c66e[_0x2ae7c6(0x155)])[_0x2ae7c6(0x185)](_0x217f08=>_0x217f08[_0x2ae7c6(0x18e)]))!=null?_0x1983e8:[],_0x54e8c8=JSON[_0x2ae7c6(0x195)](_0x3675ba),_0xb1091=(await this[_0x2ae7c6(0x17e)][_0x2ae7c6(0x170)](_0x4cac16))[_0x2ae7c6(0x1b0)]();if(_0x57bf1e){const _0x3724cc={'memberId':_0xb1091,'unitId':_0x4cac16,'content':_0x54e8c8,'mention':_0x47b43b,'threadId':_0x8e5424},_0x3f9469=(await this[_0x2ae7c6(0x19e)][_0x2ae7c6(0x1a8)]('/universer-api/comment/unit/'+_0x4cac16+'/reply',{'body':_0x3724cc}))[_0x2ae7c6(0x187)][_0x2ae7c6(0x14c)];return{..._0x3cec3d,'id':_0x3f9469['replyId'],'dT':_0x312f83(+_0x3f9469['createTimestamp'])['format'](_0x2ae7c6(0x17f)),'personId':_0x3f9469[_0x2ae7c6(0x15e)]};}else{const _0x14ff3f={'memberId':_0xb1091,'unitId':_0x4cac16,'content':_0x54e8c8,'mention':_0x47b43b},_0x255491=await this['_httpService'][_0x2ae7c6(0x1a8)](_0x2ae7c6(0x160)+_0x4cac16+'/add',{'body':_0x14ff3f});return X(_0x255491[_0x2ae7c6(0x187)][_0x2ae7c6(0x168)],_0x3cec3d);}}async[_0x367783(0x17c)](_0x491178){const _0x333cb6=_0x367783;var _0x3689dd,_0x184141;const {text:_0x326e33,unitId:_0x27fff3}=_0x491178,_0x3e11c3=(_0x184141=(_0x3689dd=_0x326e33['customRanges'])==null?void 0x0:_0x3689dd[_0x333cb6(0x162)](_0x45ecc3=>_0x45ecc3[_0x333cb6(0x157)]===_0x26c66e[_0x333cb6(0x155)])['map'](_0x488d44=>_0x488d44[_0x333cb6(0x18e)]))!=null?_0x184141:[],_0x53c8fe=JSON[_0x333cb6(0x195)](_0x326e33),_0xabd22d=_0x491178[_0x333cb6(0x176)],_0x49c21b=_0x491178['id'],_0x2a0c15={'memberId':(await this[_0x333cb6(0x17e)][_0x333cb6(0x170)](_0x27fff3))[_0x333cb6(0x1b0)](),'unitId':_0x27fff3,'threadId':_0xabd22d,'mention':_0x3e11c3,'content':_0x53c8fe,'replyId':_0x49c21b},_0x216241=await this[_0x333cb6(0x19e)][_0x333cb6(0x1a8)]('/universer-api/comment/unit/'+_0x27fff3+_0x333cb6(0x151),{'body':_0x2a0c15});return!_0x216241[_0x333cb6(0x187)][_0x333cb6(0x167)]||_0x216241[_0x333cb6(0x187)][_0x333cb6(0x167)][_0x333cb6(0x14f)]===0x1;}async['resolveComment'](_0x1eb225){const _0x542ee3=_0x367783,{unitId:_0x487948}=_0x1eb225,_0x45f48f=_0x1eb225[_0x542ee3(0x176)],_0xb28485={'memberId':this[_0x542ee3(0x16c)][_0x542ee3(0x1af)]()['userID'],'unitId':_0x487948,'threadId':_0x45f48f,'solved':_0x1eb225[_0x542ee3(0x188)]?I[_0x542ee3(0x183)]:I[_0x542ee3(0x1a6)]},_0x8dfbcb=await this[_0x542ee3(0x19e)][_0x542ee3(0x1a8)](_0x542ee3(0x160)+_0x487948+_0x542ee3(0x194),{'body':_0xb28485});return!_0x8dfbcb[_0x542ee3(0x187)]['error']||_0x8dfbcb[_0x542ee3(0x187)]['error'][_0x542ee3(0x14f)]===0x1;}async[_0x367783(0x165)](_0x4e6d2c,_0x1e1afa,_0x19d438,_0x1df33e){const _0xfa85e7=_0x367783,_0x1293a7={'memberId':(await this[_0xfa85e7(0x17e)][_0xfa85e7(0x170)](_0x4e6d2c))['getMemberID'](),'threadId':_0x19d438,'replyId':_0x1df33e,'unitId':_0x4e6d2c},_0x1e3f0e=await this[_0xfa85e7(0x19e)][_0xfa85e7(0x1a8)](_0xfa85e7(0x160)+_0x4e6d2c+_0xfa85e7(0x152),{'body':_0x1293a7});return!_0x1e3f0e['body'][_0xfa85e7(0x167)]||_0x1e3f0e['body']['error'][_0xfa85e7(0x14f)]===0x1;}async[_0x367783(0x198)](_0x56b6d3,_0x31e9f7,_0x4fa723){const _0x16cb7a=_0x367783,_0x11ceab={'unitId':_0x56b6d3,'threadId':_0x4fa723},_0x219d12=await this['_httpService']['post'](_0x16cb7a(0x160)+_0x56b6d3+_0x16cb7a(0x19b),{'body':_0x11ceab}),_0x48f997=_0x4fa723[_0x16cb7a(0x185)](_0x2ceb22=>ee(_0x219d12[_0x16cb7a(0x187)]['comments'][_0x2ceb22],_0x56b6d3,_0x31e9f7))[_0x16cb7a(0x162)](Boolean);return Object[_0x16cb7a(0x153)](_0x219d12['body'][_0x16cb7a(0x15a)])[_0x16cb7a(0x16f)](_0x2dcc7e=>{const _0x28cb58=_0x16cb7a;this['_userService'][_0x28cb58(0x199)](_0x2dcc7e);}),_0x48f997;}[_0x367783(0x15b)](_0x54dd1e){const _0x285ba6=_0x367783;return{'id':_0x54dd1e['id'],'threadId':_0x54dd1e[_0x285ba6(0x176)],'ref':_0x54dd1e[_0x285ba6(0x184)]};}};f=Q([_(0x0,_0x1065cf(_0x3427a4)),_(0x1,_0x1065cf(_0x9755f8)),_(0x2,_0x1065cf(_0x26ab45)),_(0x3,_0x1065cf(_0x450818))],f);function _0x5cac(){const _0x1286d4=['personId','listComments','addUser','UNIVER_UNKNOWN','/list','51915UWzYHv','content','_httpService','solved','getUnit','147174CGlkJY','_commentService','Unknown','8003880PjVyNM','replyId','OpenOrReOpen','replies','post','130qtSbrH','_configService','Delete','length','UNRECOGNIZED','_initDataSource','getCurrentUser','getMemberID','Solve','dataSource','find','reply','symbol','Reply','code','slice','/edit','/delete','values','getOwnPropertyDescriptor','COMMENT','resolveComment','rangeType','createTimestamp','_init','users','saveCommentToSnapshot','31109076wRVMUX','_initUserSync','userId','getComment','/universer-api/comment/unit/','customRanges','filter','4137964qfpwHx','_threadCommentModel','deleteComment','_threadCommentDataSourceService','error','comment','delete','Add','pluginName','_userService','get','836633Ikncel','forEach','requireSession','onReady','userID','parse','add','onStarting','threadId','634727jQaFlU','root','_threadCommentDataSource','parentId','thread-comment-data-source.config','updateComment','_injector','_sessionService','YYYY/MM/DD\x20HH:mm','225yNeloF','_config','user','Solved','ref','map','addComment','body','resolved','commentUpdate$','defineProperty','subscribe','setConfig','Edit','rangeId','format','unitId','getUser','disposeWithMe','type','/solved','stringify','syncUpdateMutationToColla'];_0x5cac=function(){return _0x1286d4;};return _0x5cac();}function _0x572d(_0x54dac4,_0x19fe3d){const _0x5cac77=_0x5cac();return _0x572d=function(_0x572d26,_0x243166){_0x572d26=_0x572d26-0x149;let _0x1dc1bf=_0x5cac77[_0x572d26];return _0x1dc1bf;},_0x572d(_0x54dac4,_0x19fe3d);}var re=Object['getOwnPropertyDescriptor'],te=(_0x23ecdb,_0x17cae0,_0x126cc2,_0x51aa8d)=>{const _0x204f5a=_0x367783;for(var _0x353f9=_0x51aa8d>0x1?void 0x0:_0x51aa8d?re(_0x17cae0,_0x126cc2):_0x17cae0,_0x4c55d2=_0x23ecdb[_0x204f5a(0x1ac)]-0x1,_0xdcbab1;_0x4c55d2>=0x0;_0x4c55d2--)(_0xdcbab1=_0x23ecdb[_0x4c55d2])&&(_0x353f9=_0xdcbab1(_0x353f9)||_0x353f9);return _0x353f9;},N=(_0x47800d,_0x2b9342)=>(_0x32109c,_0x26a22f)=>_0x2b9342(_0x32109c,_0x26a22f,_0x47800d);let g=class extends _0x484ee6{constructor(_0x6315c6,_0x546c4a){const _0x333afd=_0x367783;super(),this[_0x333afd(0x166)]=_0x6315c6,this['_threadCommentDataSource']=_0x546c4a,this['_initDataSource']();}[_0x367783(0x1ae)](){const _0x10f390=_0x367783;this[_0x10f390(0x166)][_0x10f390(0x14a)]=this[_0x10f390(0x179)],this['_threadCommentDataSourceService'][_0x10f390(0x196)]=!0x1;}};g=te([N(0x0,_0x51f4e0),N(0x1,_0x1065cf(f))],g);var se=Object[_0x367783(0x18a)],oe=Object[_0x367783(0x154)],ne=(_0x2e5a29,_0x27eaf2,_0x4179b3)=>_0x27eaf2 in _0x2e5a29?se(_0x2e5a29,_0x27eaf2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4179b3}):_0x2e5a29[_0x27eaf2]=_0x4179b3,ie=(_0x2714bb,_0x98966b,_0x9f801d,_0x3d390c)=>{const _0xaa61d4=_0x367783;for(var _0x3e1eef=_0x3d390c>0x1?void 0x0:_0x3d390c?oe(_0x98966b,_0x9f801d):_0x98966b,_0x515879=_0x2714bb[_0xaa61d4(0x1ac)]-0x1,_0xc297ae;_0x515879>=0x0;_0x515879--)(_0xc297ae=_0x2714bb[_0x515879])&&(_0x3e1eef=_0xc297ae(_0x3e1eef)||_0x3e1eef);return _0x3e1eef;},w=(_0x132eb4,_0x58054c)=>(_0x2de5d3,_0x177d0d)=>_0x58054c(_0x2de5d3,_0x177d0d,_0x132eb4),$=(_0xdb4d5f,_0x504e9f,_0x58a6fb)=>ne(_0xdb4d5f,typeof _0x504e9f!=_0x367783(0x14d)?_0x504e9f+'':_0x504e9f,_0x58a6fb);let b=class extends _0x1d0d27{constructor(_0x1f21d3=M,_0x124fc6,_0x32fcca){const _0x5781be=_0x367783;super(),this[_0x5781be(0x181)]=_0x1f21d3,this[_0x5781be(0x17d)]=_0x124fc6,this['_configService']=_0x32fcca;const {..._0x349490}=_0x1e4b11({},M,this[_0x5781be(0x181)]);this[_0x5781be(0x1aa)][_0x5781be(0x18c)](z,_0x349490);}[_0x367783(0x175)](){[[f],[g],[S]]['forEach'](_0xc013c3=>{const _0x2d1622=_0x572d;this[_0x2d1622(0x17d)]['add'](_0xc013c3);});}[_0x367783(0x171)](){const _0x28d5b9=_0x367783;this[_0x28d5b9(0x17d)][_0x28d5b9(0x16d)](g),this[_0x28d5b9(0x17d)][_0x28d5b9(0x16d)](S);}};$(b,_0x367783(0x16b),W),$(b,'type',_0x484e79[_0x367783(0x19a)]),b=ie([_0x556bbe(_0x2b0db6,_0xad27e3,_0x5c7147),w(0x1,_0x1065cf(_0x450818)),w(0x2,_0x2b831d)],b);export{b as UniverThreadCommentDataSourcePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xbe30(_0xacda66,_0x44309a){const _0x40e44c=_0x40e4();return _0xbe30=function(_0xbe3068,_0x419201){_0xbe3068=_0xbe3068-0x16d;let _0x5317d7=_0x40e44c[_0xbe3068];return _0x5317d7;},_0xbe30(_0xacda66,_0x44309a);}function _0x40e4(){const _0x139a77=['1653903qVREaI','comments','users','resolved','12717foNjOu','_injector','/list','dayjs','resolveComment','userId','amd','find','/solved','commentUpdate$','onStarting','code','slice','function','UserManagerService','_httpService','_initUserSync','_threadCommentDataSource','customRanges','204353plBFSF','dataSource','symbol','listComments','_sessionService','_threadCommentDataSourceService','HTTPService','@univerjs-pro/collaboration-client','Delete','getComment','syncUpdateMutationToColla','COMMENT','thread-comment-data-source.config','merge','UniverCollaborationClientPlugin','rxjs','post','UNRECOGNIZED','getUnit','body','@univerjs/core','values','UniverProCollaborationClient','rangeId','_configService','_init','CustomRangeType','UNIVER_UNKNOWN','pipe','map','@univerjs/thread-comment','Disposable','_userService','11316uRFYrh','toStringTag','user','UniverThreadCommentUi','createTimestamp','getOwnPropertyDescriptor','8uoiYpZ','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','IThreadCommentDataSourceService','Injector','stringify','/add','reply','comment','@univerjs-pro/license','exports','Solve','Module','Inject','filter','Plugin','subscribe','parse','Unknown','root','2150uJZvaH','/reply','_config','getCurrentUser','392qyvBCg','requireSession','forEach','Reply','threadId','UniverCore','solved','UniverInstanceType','defineProperty','replies','@univerjs/thread-comment-ui','personId','1780dANklb','length','_threadCommentModel','UniverNetwork','/universer-api/comment/unit/','OpenOrReOpen','addComment','_initDataSource','getMemberID','58SeyAQI','userID','677820cggQYd','@univerjs/network','DependentOn','UniverThreadCommentDataSourcePlugin','6890741RGevaX','error','updateComment','UniverProLicense','disposeWithMe','UniverThreadCommentUIPlugin','/edit','UniverThreadComment','YYYY/MM/DD\x20HH:mm','rangeType','content','Solved','/delete','setConfig','get','size','add','IConfigService','addUser','replyId','delete','Add','type','format','Edit','_commentService'];_0x40e4=function(){return _0x139a77;};return _0x40e4();}(function(_0xbf97ab,_0x183e2a){const _0x513a30=_0xbe30,_0x5dbe62=_0xbf97ab();while(!![]){try{const _0x5acdc9=parseInt(_0x513a30(0x1c5))/0x1+parseInt(_0x513a30(0x18e))/0x2*(parseInt(_0x513a30(0x1b2))/0x3)+parseInt(_0x513a30(0x185))/0x4*(parseInt(_0x513a30(0x175))/0x5)+parseInt(_0x513a30(0x1e6))/0x6*(parseInt(_0x513a30(0x179))/0x7)+-parseInt(_0x513a30(0x1ec))/0x8*(-parseInt(_0x513a30(0x1ae))/0x9)+-parseInt(_0x513a30(0x190))/0xa+-parseInt(_0x513a30(0x194))/0xb;if(_0x5acdc9===_0x183e2a)break;else _0x5dbe62['push'](_0x5dbe62['shift']());}catch(_0xcc6b4d){_0x5dbe62['push'](_0x5dbe62['shift']());}}}(_0x40e4,0x1bc8c),function(_0x1a179f,_0x5aa839){const _0x56e2f3=_0xbe30;typeof exports=='object'&&typeof module<'u'?_0x5aa839(exports,require(_0x56e2f3(0x1cc)),require(_0x56e2f3(0x1f4)),require(_0x56e2f3(0x1d9)),require(_0x56e2f3(0x183)),require(_0x56e2f3(0x1e3)),require(_0x56e2f3(0x1d4)),require(_0x56e2f3(0x191))):typeof define==_0x56e2f3(0x1bf)&&define[_0x56e2f3(0x1b8)]?define([_0x56e2f3(0x1f5),'@univerjs-pro/collaboration-client',_0x56e2f3(0x1f4),_0x56e2f3(0x1d9),_0x56e2f3(0x183),'@univerjs/thread-comment',_0x56e2f3(0x1d4),_0x56e2f3(0x191)],_0x5aa839):(_0x1a179f=typeof globalThis<'u'?globalThis:_0x1a179f||self,_0x5aa839(_0x1a179f['UniverProThreadCommentDatasource']={},_0x1a179f[_0x56e2f3(0x1db)],_0x1a179f[_0x56e2f3(0x197)],_0x1a179f[_0x56e2f3(0x17e)],_0x1a179f[_0x56e2f3(0x1e9)],_0x1a179f[_0x56e2f3(0x19b)],_0x1a179f[_0x56e2f3(0x1d4)],_0x1a179f[_0x56e2f3(0x188)]));}(this,function(_0x1ebdeb,_0x34e85f,_0x15173a,_0x2a3f7a,_0x656d5b,_0x285807,_0x588bef,_0x27ac35){'use strict';const _0x282bd8=_0xbe30;const _0x3afa6c=_0x282bd8(0x1ed);var _0x1e51c3=(_0x1ea984=>(_0x1ea984[_0x1ea984[_0x282bd8(0x18a)]=0x0]=_0x282bd8(0x18a),_0x1ea984[_0x1ea984[_0x282bd8(0x19f)]=0x1]=_0x282bd8(0x19f),_0x1ea984[_0x1ea984['UNRECOGNIZED']=-0x1]=_0x282bd8(0x1d6),_0x1ea984))(_0x1e51c3||{}),_0x54512f=(_0x44b5f5=>(_0x44b5f5[_0x44b5f5[_0x282bd8(0x173)]=0x0]='Unknown',_0x44b5f5[_0x44b5f5['Add']=0x1]=_0x282bd8(0x1a9),_0x44b5f5[_0x44b5f5['Reply']=0x2]='Reply',_0x44b5f5[_0x44b5f5['Edit']=0x3]=_0x282bd8(0x1ac),_0x44b5f5[_0x44b5f5[_0x282bd8(0x1cd)]=0x4]=_0x282bd8(0x1cd),_0x44b5f5[_0x44b5f5[_0x282bd8(0x1f6)]=0x5]=_0x282bd8(0x1f6),_0x44b5f5[_0x44b5f5[_0x282bd8(0x1d6)]=-0x1]=_0x282bd8(0x1d6),_0x44b5f5))(_0x54512f||{});const _0x45c4b4=_0x1ff108=>_0x2a3f7a[_0x282bd8(0x1b5)](new Date(+_0x1ff108))[_0x282bd8(0x1ab)](_0x282bd8(0x19c)),_0x5df143=async(_0x2cf2a4,_0x158770)=>{const _0x1fbd00=_0x282bd8,_0x466715=_0x2cf2a4['get'](_0x2a3f7a[_0x1fbd00(0x1c0)]),_0x5dde77=_0x2cf2a4[_0x1fbd00(0x1a2)](_0x27ac35[_0x1fbd00(0x1cb)]);_0x158770[_0x1fbd00(0x17b)](_0x92af5e=>{const _0x16b0e0=_0x1fbd00;_0x466715['getUser'](_0x92af5e)&&_0x158770[_0x16b0e0(0x1a8)](_0x92af5e);}),_0x158770[_0x1fbd00(0x1a3)]&&(await _0x5dde77[_0x1fbd00(0x1a2)]('/universer-api/user/list',{'params':{'userIDs':[..._0x158770]}}))[_0x1fbd00(0x1d8)][_0x1fbd00(0x1b0)][_0x1fbd00(0x17b)](_0xa306e1=>{const _0x18cc29=_0x1fbd00;_0xa306e1&&_0x466715[_0x18cc29(0x1a6)](_0xa306e1);});};var _0x5c2ab4=Object[_0x282bd8(0x1eb)],_0x21f4aa=(_0x4429af,_0x4e20cd,_0x552704,_0x1bc459)=>{const _0x29f067=_0x282bd8;for(var _0x46de6e=_0x1bc459>0x1?void 0x0:_0x1bc459?_0x5c2ab4(_0x4e20cd,_0x552704):_0x4e20cd,_0x1f5a75=_0x4429af[_0x29f067(0x186)]-0x1,_0x10f332;_0x1f5a75>=0x0;_0x1f5a75--)(_0x10f332=_0x4429af[_0x1f5a75])&&(_0x46de6e=_0x10f332(_0x46de6e)||_0x46de6e);return _0x46de6e;},_0x3a0ef8=(_0x10a6a3,_0x2716f0)=>(_0x559459,_0x5746cd)=>_0x2716f0(_0x559459,_0x5746cd,_0x10a6a3);let _0x5e4755=class extends _0x2a3f7a[_0x282bd8(0x1e4)]{constructor(_0x29fcc4,_0x457cb7,_0x239fb0,_0x2a4467){const _0xb26113=_0x282bd8;super(),this[_0xb26113(0x1ad)]=_0x29fcc4,this[_0xb26113(0x187)]=_0x457cb7,this[_0xb26113(0x1e5)]=_0x239fb0,this['_injector']=_0x2a4467,this[_0xb26113(0x1de)](),this[_0xb26113(0x1c2)]();}[_0x282bd8(0x1c2)](){const _0x29c3ff=_0x282bd8;this[_0x29c3ff(0x198)](this[_0x29c3ff(0x187)][_0x29c3ff(0x1bb)][_0x29c3ff(0x1e1)](_0x588bef['bufferTime'](0x10))[_0x29c3ff(0x171)](_0x509382=>{const _0xaa802=_0x29c3ff,_0xb4b2bb=new Set();_0x509382[_0xaa802(0x17b)](_0x86993b=>{const _0x2eb3cb=_0xaa802;switch(_0x86993b['type']){case _0x2eb3cb(0x1a4):{const _0x426748=_0x86993b['payload'][_0x2eb3cb(0x184)];_0xb4b2bb[_0x2eb3cb(0x1a4)](_0x426748);break;}}}),_0x5df143(this['_injector'],_0xb4b2bb);}));}[_0x282bd8(0x1de)](){const _0x5524d5=_0x282bd8;this[_0x5524d5(0x198)](this[_0x5524d5(0x1ad)][_0x5524d5(0x1bb)][_0x5524d5(0x171)](async _0x27fbc3=>{const _0x418376=_0x5524d5;var _0x470c1d,_0x3cb661,_0x53ea58,_0x4650c1;const _0x258552=(_0x470c1d=this['_threadCommentModel'][_0x418376(0x1d7)](_0x27fbc3['unitId'])[_0x418376(0x1b9)](_0x22ca51=>_0x22ca51[_0x418376(0x17d)]===_0x27fbc3[_0x418376(0x17d)]))==null?void 0x0:_0x470c1d['root'];if(!_0x258552)return;const {unitId:_0xda1535,subUnitId:_0x2371a2}=_0x258552;switch(_0x27fbc3['user']&&this['_userService'][_0x418376(0x1a6)](_0x27fbc3[_0x418376(0x1e8)]),_0x27fbc3[_0x418376(0x1aa)]){case _0x54512f[_0x418376(0x1a9)]:break;case _0x54512f[_0x418376(0x17c)]:{this[_0x418376(0x187)][_0x418376(0x18b)](_0xda1535,_0x2371a2,{'unitId':_0xda1535,'subUnitId':_0x2371a2,'ref':'','id':_0x27fbc3[_0x418376(0x1a7)],'dT':_0x45c4b4(+_0x27fbc3[_0x418376(0x1ea)]),'threadId':_0x27fbc3[_0x418376(0x17d)],'personId':(_0x53ea58=(_0x3cb661=_0x27fbc3[_0x418376(0x1e8)])==null?void 0x0:_0x3cb661[_0x418376(0x18f)])!=null?_0x53ea58:_0x27fbc3[_0x418376(0x1b7)],'text':JSON[_0x418376(0x172)](_0x27fbc3[_0x418376(0x19e)]),'parentId':_0x258552['id']});break;}case _0x54512f[_0x418376(0x1cd)]:{const _0x201562=this[_0x418376(0x187)][_0x418376(0x1ce)](_0xda1535,_0x2371a2,_0x27fbc3['replyId']);_0x201562&&_0x201562['parentId']&&this[_0x418376(0x187)]['deleteComment'](_0xda1535,_0x2371a2,_0x27fbc3['replyId']);break;}case _0x54512f[_0x418376(0x1ac)]:{this[_0x418376(0x187)]['updateComment'](_0xda1535,_0x2371a2,{'commentId':_0x27fbc3[_0x418376(0x1a7)],'text':JSON[_0x418376(0x172)](_0x27fbc3[_0x418376(0x19e)])});break;}case _0x54512f[_0x418376(0x1f6)]:{const _0x1c1e9d=(_0x4650c1=this[_0x418376(0x187)][_0x418376(0x1d7)](_0x27fbc3['unitId'])[_0x418376(0x1b9)](_0x1dfdf0=>_0x1dfdf0[_0x418376(0x17d)]===_0x27fbc3[_0x418376(0x17d)]))==null?void 0x0:_0x4650c1[_0x418376(0x174)];_0x1c1e9d&&this[_0x418376(0x187)][_0x418376(0x1b6)](_0xda1535,_0x2371a2,_0x1c1e9d['id'],_0x27fbc3['solved']===_0x1e51c3[_0x418376(0x19f)]);break;}}}));}};_0x5e4755=_0x21f4aa([_0x3a0ef8(0x0,_0x2a3f7a[_0x282bd8(0x16e)](_0x34e85f['CommentService'])),_0x3a0ef8(0x1,_0x2a3f7a[_0x282bd8(0x16e)](_0x285807['ThreadCommentModel'])),_0x3a0ef8(0x2,_0x2a3f7a[_0x282bd8(0x16e)](_0x2a3f7a[_0x282bd8(0x1c0)])),_0x3a0ef8(0x3,_0x2a3f7a[_0x282bd8(0x16e)](_0x2a3f7a['Injector']))],_0x5e4755);const _0x58bf77=_0x282bd8(0x1d1),_0x32d97c={};var _0x68c410=Object[_0x282bd8(0x1eb)],_0x11fa35=(_0x2627fb,_0x5de313,_0x825672,_0x35db75)=>{const _0x576ff8=_0x282bd8;for(var _0x140fda=_0x35db75>0x1?void 0x0:_0x35db75?_0x68c410(_0x5de313,_0x825672):_0x5de313,_0x23c5cc=_0x2627fb[_0x576ff8(0x186)]-0x1,_0x22c75c;_0x23c5cc>=0x0;_0x23c5cc--)(_0x22c75c=_0x2627fb[_0x23c5cc])&&(_0x140fda=_0x22c75c(_0x140fda)||_0x140fda);return _0x140fda;},_0x10f0ca=(_0x4b9eec,_0x378331)=>(_0x1a89bb,_0xb0eb04)=>_0x378331(_0x1a89bb,_0xb0eb04,_0x4b9eec);function _0x23b6d1(_0x57ef15,_0x1c69e3){const _0xd9eae=_0x282bd8,_0x3eb7b9=_0x57ef15['replies'][0x0];return{..._0x1c69e3,'id':_0x3eb7b9[_0xd9eae(0x1a7)],'resolved':_0x57ef15[_0xd9eae(0x17f)]===0x1,'dT':_0x45c4b4(_0x3eb7b9[_0xd9eae(0x1ea)]),'personId':_0x3eb7b9[_0xd9eae(0x1b7)],'threadId':_0x3eb7b9[_0xd9eae(0x17d)]};}function _0x269ec9(_0x429fbf,_0xd8c952,_0x31b132){const _0x285b94=_0x282bd8;var _0x3896d4,_0x54b2dc;if(((_0x54b2dc=(_0x3896d4=_0x429fbf==null?void 0x0:_0x429fbf[_0x285b94(0x182)])==null?void 0x0:_0x3896d4[_0x285b94(0x186)])!=null?_0x54b2dc:0x0)>0x0){const _0x3ebbf5=(_0x4955f3,_0x1857b9)=>({'id':_0x4955f3['replyId'],'threadId':_0x4955f3['threadId'],'dT':_0x45c4b4(_0x4955f3['createTimestamp']),'personId':_0x4955f3[_0x285b94(0x1b7)],'resolved':_0x429fbf[_0x285b94(0x17f)]===_0x1e51c3[_0x285b94(0x19f)],'unitId':_0xd8c952,'subUnitId':_0x31b132,'text':JSON['parse'](_0x4955f3[_0x285b94(0x19e)]),'parentId':_0x1857b9}),_0x393040=_0x3ebbf5(_0x429fbf[_0x285b94(0x182)][0x0]);return{..._0x393040,'children':_0x429fbf['replies'][_0x285b94(0x1be)](0x1)[_0x285b94(0x1e2)](_0x2873af=>_0x3ebbf5(_0x2873af,_0x393040['id']))};}return null;}let _0x5b1081=class{constructor(_0x374ab6,_0x3e1b6c,_0x3c4286,_0x35f2a0){const _0x309597=_0x282bd8;this[_0x309597(0x1c1)]=_0x374ab6,this['_userService']=_0x3e1b6c,this['_sessionService']=_0x3c4286,this[_0x309597(0x1b3)]=_0x35f2a0;}async[_0x282bd8(0x18b)](_0x49b6df){const _0x37e3d1=_0x282bd8;var _0x5eb418,_0xab747e;const {parentId:_0x55009b,unitId:_0x45dc31,text:_0x297ba6,threadId:_0x3758b2}=_0x49b6df,_0x4763c7=(_0xab747e=(_0x5eb418=_0x297ba6[_0x37e3d1(0x1c4)])==null?void 0x0:_0x5eb418['filter'](_0x5c2046=>_0x5c2046[_0x37e3d1(0x19d)]===_0x2a3f7a[_0x37e3d1(0x1df)]['COMMENT'])[_0x37e3d1(0x1e2)](_0x48d2cd=>_0x48d2cd[_0x37e3d1(0x1dc)]))!=null?_0xab747e:[],_0xbdea46=JSON[_0x37e3d1(0x1f0)](_0x297ba6),_0x3c7a3a=(await this[_0x37e3d1(0x1c9)][_0x37e3d1(0x17a)](_0x45dc31))[_0x37e3d1(0x18d)]();if(_0x55009b){const _0x21ad27={'memberId':_0x3c7a3a,'unitId':_0x45dc31,'content':_0xbdea46,'mention':_0x4763c7,'threadId':_0x3758b2},_0x140c3e=(await this[_0x37e3d1(0x1c1)][_0x37e3d1(0x1d5)](_0x37e3d1(0x189)+_0x45dc31+_0x37e3d1(0x176),{'body':_0x21ad27}))[_0x37e3d1(0x1d8)][_0x37e3d1(0x1f2)];return{..._0x49b6df,'id':_0x140c3e['replyId'],'dT':_0x2a3f7a[_0x37e3d1(0x1b5)](+_0x140c3e['createTimestamp'])[_0x37e3d1(0x1ab)](_0x37e3d1(0x19c)),'personId':_0x140c3e[_0x37e3d1(0x1b7)]};}else{const _0x4ef2f7={'memberId':_0x3c7a3a,'unitId':_0x45dc31,'content':_0xbdea46,'mention':_0x4763c7},_0x56f115=await this['_httpService'][_0x37e3d1(0x1d5)]('/universer-api/comment/unit/'+_0x45dc31+_0x37e3d1(0x1f1),{'body':_0x4ef2f7});return _0x23b6d1(_0x56f115[_0x37e3d1(0x1d8)][_0x37e3d1(0x1f3)],_0x49b6df);}}async[_0x282bd8(0x196)](_0x2bf621){const _0x3262c9=_0x282bd8;var _0x4f7b1f,_0x3f8bc7;const {text:_0x29bef5,unitId:_0x2c8e92}=_0x2bf621,_0x108402=(_0x3f8bc7=(_0x4f7b1f=_0x29bef5[_0x3262c9(0x1c4)])==null?void 0x0:_0x4f7b1f['filter'](_0x344984=>_0x344984[_0x3262c9(0x19d)]===_0x2a3f7a[_0x3262c9(0x1df)][_0x3262c9(0x1d0)])[_0x3262c9(0x1e2)](_0x48ac70=>_0x48ac70[_0x3262c9(0x1dc)]))!=null?_0x3f8bc7:[],_0x1678cf=JSON['stringify'](_0x29bef5),_0x4c72e6=_0x2bf621[_0x3262c9(0x17d)],_0x345424=_0x2bf621['id'],_0x1766c7={'memberId':(await this[_0x3262c9(0x1c9)][_0x3262c9(0x17a)](_0x2c8e92))[_0x3262c9(0x18d)](),'unitId':_0x2c8e92,'threadId':_0x4c72e6,'mention':_0x108402,'content':_0x1678cf,'replyId':_0x345424},_0x3b420c=await this[_0x3262c9(0x1c1)][_0x3262c9(0x1d5)](_0x3262c9(0x189)+_0x2c8e92+_0x3262c9(0x19a),{'body':_0x1766c7});return!_0x3b420c[_0x3262c9(0x1d8)][_0x3262c9(0x195)]||_0x3b420c[_0x3262c9(0x1d8)][_0x3262c9(0x195)][_0x3262c9(0x1bd)]===0x1;}async['resolveComment'](_0x4170c3){const _0xe9f680=_0x282bd8,{unitId:_0x2e5b4a}=_0x4170c3,_0x1e1e2c=_0x4170c3['threadId'],_0x25c992={'memberId':this[_0xe9f680(0x1e5)][_0xe9f680(0x178)]()['userID'],'unitId':_0x2e5b4a,'threadId':_0x1e1e2c,'solved':_0x4170c3[_0xe9f680(0x1b1)]?_0x1e51c3[_0xe9f680(0x19f)]:_0x1e51c3[_0xe9f680(0x18a)]},_0x543934=await this[_0xe9f680(0x1c1)][_0xe9f680(0x1d5)](_0xe9f680(0x189)+_0x2e5b4a+_0xe9f680(0x1ba),{'body':_0x25c992});return!_0x543934[_0xe9f680(0x1d8)][_0xe9f680(0x195)]||_0x543934[_0xe9f680(0x1d8)][_0xe9f680(0x195)][_0xe9f680(0x1bd)]===0x1;}async['deleteComment'](_0x340ce4,_0xb3bd7f,_0x3cb596,_0x45676f){const _0xd02f5c=_0x282bd8,_0x2d5409={'memberId':(await this[_0xd02f5c(0x1c9)][_0xd02f5c(0x17a)](_0x340ce4))['getMemberID'](),'threadId':_0x3cb596,'replyId':_0x45676f,'unitId':_0x340ce4},_0x29971e=await this[_0xd02f5c(0x1c1)][_0xd02f5c(0x1d5)](_0xd02f5c(0x189)+_0x340ce4+_0xd02f5c(0x1a0),{'body':_0x2d5409});return!_0x29971e['body']['error']||_0x29971e['body']['error'][_0xd02f5c(0x1bd)]===0x1;}async[_0x282bd8(0x1c8)](_0x592485,_0xfd3c25,_0x5544b2){const _0x2e954c=_0x282bd8,_0x39d229={'unitId':_0x592485,'threadId':_0x5544b2},_0x2e500c=await this[_0x2e954c(0x1c1)]['post'](_0x2e954c(0x189)+_0x592485+_0x2e954c(0x1b4),{'body':_0x39d229}),_0x2cb84d=_0x5544b2[_0x2e954c(0x1e2)](_0x3c3fe3=>_0x269ec9(_0x2e500c[_0x2e954c(0x1d8)][_0x2e954c(0x1af)][_0x3c3fe3],_0x592485,_0xfd3c25))[_0x2e954c(0x16f)](Boolean);return Object[_0x2e954c(0x1da)](_0x2e500c[_0x2e954c(0x1d8)][_0x2e954c(0x1b0)])[_0x2e954c(0x17b)](_0x3baa7d=>{const _0x3d87d5=_0x2e954c;this[_0x3d87d5(0x1e5)]['addUser'](_0x3baa7d);}),_0x2cb84d;}['saveCommentToSnapshot'](_0x702faf){const _0x3f7776=_0x282bd8;return{'id':_0x702faf['id'],'threadId':_0x702faf[_0x3f7776(0x17d)],'ref':_0x702faf['ref']};}};_0x5b1081=_0x11fa35([_0x10f0ca(0x0,_0x2a3f7a[_0x282bd8(0x16e)](_0x27ac35[_0x282bd8(0x1cb)])),_0x10f0ca(0x1,_0x2a3f7a[_0x282bd8(0x16e)](_0x2a3f7a[_0x282bd8(0x1c0)])),_0x10f0ca(0x2,_0x2a3f7a[_0x282bd8(0x16e)](_0x34e85f['CollaborationSessionService'])),_0x10f0ca(0x3,_0x2a3f7a[_0x282bd8(0x16e)](_0x2a3f7a[_0x282bd8(0x1ef)]))],_0x5b1081);var _0x46f4f2=Object[_0x282bd8(0x1eb)],_0x5c7074=(_0x22fa66,_0x420b7e,_0x36975f,_0x2b3ff4)=>{const _0x1c5647=_0x282bd8;for(var _0x3825bd=_0x2b3ff4>0x1?void 0x0:_0x2b3ff4?_0x46f4f2(_0x420b7e,_0x36975f):_0x420b7e,_0x455db9=_0x22fa66[_0x1c5647(0x186)]-0x1,_0x3d4310;_0x455db9>=0x0;_0x455db9--)(_0x3d4310=_0x22fa66[_0x455db9])&&(_0x3825bd=_0x3d4310(_0x3825bd)||_0x3825bd);return _0x3825bd;},_0x17f60b=(_0x22e10f,_0x30c346)=>(_0x3a8916,_0x188c2d)=>_0x30c346(_0x3a8916,_0x188c2d,_0x22e10f);let _0x4a2417=class extends _0x2a3f7a[_0x282bd8(0x1e4)]{constructor(_0x4dd089,_0x47384a){const _0xc3bf55=_0x282bd8;super(),this[_0xc3bf55(0x1ca)]=_0x4dd089,this[_0xc3bf55(0x1c3)]=_0x47384a,this['_initDataSource']();}[_0x282bd8(0x18c)](){const _0x1d3f0c=_0x282bd8;this[_0x1d3f0c(0x1ca)][_0x1d3f0c(0x1c6)]=this['_threadCommentDataSource'],this[_0x1d3f0c(0x1ca)][_0x1d3f0c(0x1cf)]=!0x1;}};_0x4a2417=_0x5c7074([_0x17f60b(0x0,_0x285807[_0x282bd8(0x1ee)]),_0x17f60b(0x1,_0x2a3f7a[_0x282bd8(0x16e)](_0x5b1081))],_0x4a2417);var _0x214d82=Object[_0x282bd8(0x181)],_0x2f18de=Object[_0x282bd8(0x1eb)],_0x33af26=(_0x23131f,_0x4d8716,_0xe4d6f4)=>_0x4d8716 in _0x23131f?_0x214d82(_0x23131f,_0x4d8716,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe4d6f4}):_0x23131f[_0x4d8716]=_0xe4d6f4,_0x2b73b1=(_0x3f2aba,_0xa727cf,_0x223ec1,_0x5cbe99)=>{const _0x59af8e=_0x282bd8;for(var _0x12e096=_0x5cbe99>0x1?void 0x0:_0x5cbe99?_0x2f18de(_0xa727cf,_0x223ec1):_0xa727cf,_0x140f5c=_0x3f2aba[_0x59af8e(0x186)]-0x1,_0x48163b;_0x140f5c>=0x0;_0x140f5c--)(_0x48163b=_0x3f2aba[_0x140f5c])&&(_0x12e096=_0x48163b(_0x12e096)||_0x12e096);return _0x12e096;},_0x5c1f70=(_0x290582,_0x5aa093)=>(_0x118466,_0x28586c)=>_0x5aa093(_0x118466,_0x28586c,_0x290582),_0x32ba8d=(_0x3d0220,_0xf307aa,_0x4f6fc8)=>_0x33af26(_0x3d0220,typeof _0xf307aa!=_0x282bd8(0x1c7)?_0xf307aa+'':_0xf307aa,_0x4f6fc8);_0x1ebdeb[_0x282bd8(0x193)]=class extends _0x2a3f7a[_0x282bd8(0x170)]{constructor(_0x592d59=_0x32d97c,_0x1bf543,_0x24d6a8){const _0xbc39ea=_0x282bd8;super(),this[_0xbc39ea(0x177)]=_0x592d59,this[_0xbc39ea(0x1b3)]=_0x1bf543,this[_0xbc39ea(0x1dd)]=_0x24d6a8;const {..._0x17658f}=_0x2a3f7a[_0xbc39ea(0x1d2)]({},_0x32d97c,this[_0xbc39ea(0x177)]);this[_0xbc39ea(0x1dd)][_0xbc39ea(0x1a1)](_0x58bf77,_0x17658f);}[_0x282bd8(0x1bc)](){const _0x36ce5a=_0x282bd8;[[_0x5b1081],[_0x4a2417],[_0x5e4755]][_0x36ce5a(0x17b)](_0x56f7ca=>{const _0xe9f873=_0x36ce5a;this[_0xe9f873(0x1b3)][_0xe9f873(0x1a4)](_0x56f7ca);});}['onReady'](){const _0xb5cfb9=_0x282bd8;this[_0xb5cfb9(0x1b3)][_0xb5cfb9(0x1a2)](_0x4a2417),this['_injector'][_0xb5cfb9(0x1a2)](_0x5e4755);}},_0x32ba8d(_0x1ebdeb[_0x282bd8(0x193)],'pluginName',_0x3afa6c),_0x32ba8d(_0x1ebdeb[_0x282bd8(0x193)],'type',_0x2a3f7a[_0x282bd8(0x180)][_0x282bd8(0x1e0)]),_0x1ebdeb[_0x282bd8(0x193)]=_0x2b73b1([_0x2a3f7a[_0x282bd8(0x192)](_0x656d5b[_0x282bd8(0x199)],_0x34e85f[_0x282bd8(0x1d3)],_0x15173a['UniverLicensePlugin']),_0x5c1f70(0x1,_0x2a3f7a[_0x282bd8(0x16e)](_0x2a3f7a[_0x282bd8(0x1ef)])),_0x5c1f70(0x2,_0x2a3f7a[_0x282bd8(0x1a5)])],_0x1ebdeb['UniverThreadCommentDataSourcePlugin']),Object[_0x282bd8(0x181)](_0x1ebdeb,Symbol[_0x282bd8(0x1e7)],{'value':_0x282bd8(0x16d)});}));
|
|
1
|
+
(function(_0x59b82b,_0x4b00ab){const _0x307b65=_0x1ed9,_0x1bc1fc=_0x59b82b();while(!![]){try{const _0x127546=parseInt(_0x307b65(0x1ba))/0x1*(-parseInt(_0x307b65(0x196))/0x2)+-parseInt(_0x307b65(0x19f))/0x3*(parseInt(_0x307b65(0x1a8))/0x4)+-parseInt(_0x307b65(0x15c))/0x5+-parseInt(_0x307b65(0x174))/0x6+-parseInt(_0x307b65(0x18f))/0x7*(-parseInt(_0x307b65(0x1bd))/0x8)+-parseInt(_0x307b65(0x163))/0x9*(parseInt(_0x307b65(0x1ae))/0xa)+-parseInt(_0x307b65(0x167))/0xb*(-parseInt(_0x307b65(0x161))/0xc);if(_0x127546===_0x4b00ab)break;else _0x1bc1fc['push'](_0x1bc1fc['shift']());}catch(_0x197132){_0x1bc1fc['push'](_0x1bc1fc['shift']());}}}(_0x3403,0x2613a),function(_0x5304e6,_0x38140c){const _0x24a5f1=_0x1ed9;typeof exports==_0x24a5f1(0x1b7)&&typeof module<'u'?_0x38140c(exports,require(_0x24a5f1(0x17a)),require(_0x24a5f1(0x1a6)),require(_0x24a5f1(0x18a)),require(_0x24a5f1(0x17f)),require(_0x24a5f1(0x170)),require(_0x24a5f1(0x158)),require(_0x24a5f1(0x178))):typeof define==_0x24a5f1(0x152)&&define[_0x24a5f1(0x1b8)]?define([_0x24a5f1(0x147),_0x24a5f1(0x17a),'@univerjs-pro/license',_0x24a5f1(0x18a),_0x24a5f1(0x17f),_0x24a5f1(0x170),_0x24a5f1(0x158),_0x24a5f1(0x178)],_0x38140c):(_0x5304e6=typeof globalThis<'u'?globalThis:_0x5304e6||self,_0x38140c(_0x5304e6['UniverProThreadCommentDatasource']={},_0x5304e6[_0x24a5f1(0x1a7)],_0x5304e6[_0x24a5f1(0x191)],_0x5304e6[_0x24a5f1(0x192)],_0x5304e6[_0x24a5f1(0x1bf)],_0x5304e6['UniverThreadComment'],_0x5304e6['rxjs'],_0x5304e6[_0x24a5f1(0x14a)]));}(this,function(_0x59a1bd,_0x5bf0cd,_0x40b1a0,_0x5e7e1f,_0x5bd5af,_0x2f1cf0,_0x29b5b6,_0x18f8dc){'use strict';const _0x53e8dc=_0x1ed9;const _0x3dcde2=_0x53e8dc(0x16e);var _0x35075f=(_0x4c5eb8=>(_0x4c5eb8[_0x4c5eb8[_0x53e8dc(0x19e)]=0x0]=_0x53e8dc(0x19e),_0x4c5eb8[_0x4c5eb8['Solved']=0x1]=_0x53e8dc(0x185),_0x4c5eb8[_0x4c5eb8[_0x53e8dc(0x1a5)]=-0x1]=_0x53e8dc(0x1a5),_0x4c5eb8))(_0x35075f||{}),_0x22f6ba=(_0x12478b=>(_0x12478b[_0x12478b[_0x53e8dc(0x1ad)]=0x0]=_0x53e8dc(0x1ad),_0x12478b[_0x12478b[_0x53e8dc(0x1aa)]=0x1]=_0x53e8dc(0x1aa),_0x12478b[_0x12478b['Reply']=0x2]='Reply',_0x12478b[_0x12478b[_0x53e8dc(0x19d)]=0x3]='Edit',_0x12478b[_0x12478b[_0x53e8dc(0x1b0)]=0x4]='Delete',_0x12478b[_0x12478b[_0x53e8dc(0x18b)]=0x5]=_0x53e8dc(0x18b),_0x12478b[_0x12478b[_0x53e8dc(0x1a5)]=-0x1]='UNRECOGNIZED',_0x12478b))(_0x22f6ba||{});const _0x493376=_0x31ded4=>_0x5e7e1f[_0x53e8dc(0x1ab)](new Date(+_0x31ded4))['format']('YYYY/MM/DD\x20HH:mm'),_0x1d8a26=async(_0x453b07,_0x113ffd)=>{const _0x377f2d=_0x53e8dc,_0x573363=_0x453b07[_0x377f2d(0x165)](_0x5e7e1f[_0x377f2d(0x176)]),_0x3e345d=_0x453b07[_0x377f2d(0x165)](_0x18f8dc[_0x377f2d(0x15f)]);_0x113ffd[_0x377f2d(0x180)](_0x423a80=>{const _0xcc89f3=_0x377f2d;_0x573363[_0xcc89f3(0x1bc)](_0x423a80)&&_0x113ffd[_0xcc89f3(0x1af)](_0x423a80);}),_0x113ffd[_0x377f2d(0x181)]&&(await _0x3e345d[_0x377f2d(0x165)]('/universer-api/user/list',{'params':{'userIDs':[..._0x113ffd]}}))[_0x377f2d(0x14b)]['users']['forEach'](_0x38c2b5=>{const _0xca4a44=_0x377f2d;_0x38c2b5&&_0x573363[_0xca4a44(0x14d)](_0x38c2b5);});};var _0x9c6150=Object[_0x53e8dc(0x1c1)],_0x26ed03=(_0x5568bf,_0x145258,_0x121e23,_0x47925a)=>{const _0x2396d7=_0x53e8dc;for(var _0x281e3a=_0x47925a>0x1?void 0x0:_0x47925a?_0x9c6150(_0x145258,_0x121e23):_0x145258,_0x41da48=_0x5568bf[_0x2396d7(0x189)]-0x1,_0x1470a0;_0x41da48>=0x0;_0x41da48--)(_0x1470a0=_0x5568bf[_0x41da48])&&(_0x281e3a=_0x1470a0(_0x281e3a)||_0x281e3a);return _0x281e3a;},_0x23fba9=(_0x1e8f7d,_0x3a1916)=>(_0x3e3a22,_0x12afc3)=>_0x3a1916(_0x3e3a22,_0x12afc3,_0x1e8f7d);let _0x5eb013=class extends _0x5e7e1f[_0x53e8dc(0x182)]{constructor(_0x17bae8,_0x450f54,_0x40564a,_0x2ad2ea){const _0x3bb63f=_0x53e8dc;super(),this['_commentService']=_0x17bae8,this['_threadCommentModel']=_0x450f54,this[_0x3bb63f(0x19c)]=_0x40564a,this['_injector']=_0x2ad2ea,this[_0x3bb63f(0x1a0)](),this[_0x3bb63f(0x1b4)]();}[_0x53e8dc(0x1b4)](){const _0x110eb9=_0x53e8dc;this['disposeWithMe'](this[_0x110eb9(0x199)][_0x110eb9(0x153)]['pipe'](_0x29b5b6[_0x110eb9(0x17d)](0x10))['subscribe'](_0x546124=>{const _0x1fd3fe=_0x110eb9,_0x146cc3=new Set();_0x546124[_0x1fd3fe(0x180)](_0x5671bb=>{const _0x41e134=_0x1fd3fe;switch(_0x5671bb[_0x41e134(0x195)]){case _0x41e134(0x1c3):{const _0x3a1d0a=_0x5671bb['payload']['personId'];_0x146cc3['add'](_0x3a1d0a);break;}}}),_0x1d8a26(this[_0x1fd3fe(0x14f)],_0x146cc3);}));}[_0x53e8dc(0x1a0)](){const _0x5aed7a=_0x53e8dc;this[_0x5aed7a(0x150)](this[_0x5aed7a(0x168)]['commentUpdate$']['subscribe'](async _0x2bc870=>{const _0x15ab25=_0x5aed7a;var _0x2e3ad3,_0x19f46e,_0x101e38,_0x56ff64;const _0x48da7b=(_0x2e3ad3=this[_0x15ab25(0x199)]['getUnit'](_0x2bc870[_0x15ab25(0x146)])[_0x15ab25(0x13f)](_0x29b075=>_0x29b075['threadId']===_0x2bc870[_0x15ab25(0x19b)]))==null?void 0x0:_0x2e3ad3['root'];if(!_0x48da7b)return;const {unitId:_0x367b9e,subUnitId:_0x798da0}=_0x48da7b;switch(_0x2bc870[_0x15ab25(0x14e)]&&this[_0x15ab25(0x19c)][_0x15ab25(0x14d)](_0x2bc870[_0x15ab25(0x14e)]),_0x2bc870[_0x15ab25(0x195)]){case _0x22f6ba[_0x15ab25(0x1aa)]:break;case _0x22f6ba[_0x15ab25(0x157)]:{this[_0x15ab25(0x199)][_0x15ab25(0x1c0)](_0x367b9e,_0x798da0,{'unitId':_0x367b9e,'subUnitId':_0x798da0,'ref':'','id':_0x2bc870[_0x15ab25(0x155)],'dT':_0x493376(+_0x2bc870[_0x15ab25(0x184)]),'threadId':_0x2bc870[_0x15ab25(0x19b)],'personId':(_0x101e38=(_0x19f46e=_0x2bc870[_0x15ab25(0x14e)])==null?void 0x0:_0x19f46e[_0x15ab25(0x1c4)])!=null?_0x101e38:_0x2bc870[_0x15ab25(0x19a)],'text':JSON[_0x15ab25(0x1bb)](_0x2bc870[_0x15ab25(0x193)]),'parentId':_0x48da7b['id']});break;}case _0x22f6ba[_0x15ab25(0x1b0)]:{const _0x50fe82=this[_0x15ab25(0x199)]['getComment'](_0x367b9e,_0x798da0,_0x2bc870[_0x15ab25(0x155)]);_0x50fe82&&_0x50fe82[_0x15ab25(0x16a)]&&this[_0x15ab25(0x199)][_0x15ab25(0x1be)](_0x367b9e,_0x798da0,_0x2bc870[_0x15ab25(0x155)]);break;}case _0x22f6ba[_0x15ab25(0x19d)]:{this[_0x15ab25(0x199)][_0x15ab25(0x1a9)](_0x367b9e,_0x798da0,{'commentId':_0x2bc870[_0x15ab25(0x155)],'text':JSON[_0x15ab25(0x1bb)](_0x2bc870[_0x15ab25(0x193)])});break;}case _0x22f6ba['Solve']:{const _0x5d8e31=(_0x56ff64=this[_0x15ab25(0x199)][_0x15ab25(0x1b6)](_0x2bc870[_0x15ab25(0x146)])[_0x15ab25(0x13f)](_0x3f671f=>_0x3f671f[_0x15ab25(0x19b)]===_0x2bc870[_0x15ab25(0x19b)]))==null?void 0x0:_0x56ff64[_0x15ab25(0x16f)];_0x5d8e31&&this[_0x15ab25(0x199)]['resolveComment'](_0x367b9e,_0x798da0,_0x5d8e31['id'],_0x2bc870[_0x15ab25(0x15d)]===_0x35075f[_0x15ab25(0x185)]);break;}}}));}};_0x5eb013=_0x26ed03([_0x23fba9(0x0,_0x5e7e1f[_0x53e8dc(0x1a4)](_0x5bf0cd['CommentService'])),_0x23fba9(0x1,_0x5e7e1f[_0x53e8dc(0x1a4)](_0x2f1cf0[_0x53e8dc(0x156)])),_0x23fba9(0x2,_0x5e7e1f[_0x53e8dc(0x1a4)](_0x5e7e1f[_0x53e8dc(0x176)])),_0x23fba9(0x3,_0x5e7e1f['Inject'](_0x5e7e1f[_0x53e8dc(0x16d)]))],_0x5eb013);const _0x29ba69='thread-comment-data-source.config',_0x44c24a={};var _0x109621=Object[_0x53e8dc(0x1c1)],_0x1ec7e1=(_0x192b09,_0x2ff572,_0x123465,_0x4d9333)=>{const _0x35c167=_0x53e8dc;for(var _0x3b703f=_0x4d9333>0x1?void 0x0:_0x4d9333?_0x109621(_0x2ff572,_0x123465):_0x2ff572,_0xdac49b=_0x192b09[_0x35c167(0x189)]-0x1,_0x3cc56e;_0xdac49b>=0x0;_0xdac49b--)(_0x3cc56e=_0x192b09[_0xdac49b])&&(_0x3b703f=_0x3cc56e(_0x3b703f)||_0x3b703f);return _0x3b703f;},_0x124e18=(_0x4cea00,_0x253146)=>(_0x609ad0,_0xcc95ef)=>_0x253146(_0x609ad0,_0xcc95ef,_0x4cea00);function _0x1447c5(_0x41a084,_0x382b9e){const _0x45dcff=_0x53e8dc,_0x289123=_0x41a084[_0x45dcff(0x18d)][0x0];return{..._0x382b9e,'id':_0x289123['replyId'],'resolved':_0x41a084[_0x45dcff(0x15d)]===0x1,'dT':_0x493376(_0x289123[_0x45dcff(0x184)]),'personId':_0x289123[_0x45dcff(0x19a)],'threadId':_0x289123['threadId']};}function _0x307043(_0x464ec0,_0x2ea877,_0x19bf17){const _0x1d2ede=_0x53e8dc;var _0x3bd699,_0x249bee;if(((_0x249bee=(_0x3bd699=_0x464ec0==null?void 0x0:_0x464ec0[_0x1d2ede(0x18d)])==null?void 0x0:_0x3bd699[_0x1d2ede(0x189)])!=null?_0x249bee:0x0)>0x0){const _0x12a052=(_0x1d4e4c,_0x2a5002)=>({'id':_0x1d4e4c[_0x1d2ede(0x155)],'threadId':_0x1d4e4c[_0x1d2ede(0x19b)],'dT':_0x493376(_0x1d4e4c[_0x1d2ede(0x184)]),'personId':_0x1d4e4c[_0x1d2ede(0x19a)],'resolved':_0x464ec0[_0x1d2ede(0x15d)]===_0x35075f[_0x1d2ede(0x185)],'unitId':_0x2ea877,'subUnitId':_0x19bf17,'text':JSON[_0x1d2ede(0x1bb)](_0x1d4e4c['content']),'parentId':_0x2a5002}),_0x20817b=_0x12a052(_0x464ec0[_0x1d2ede(0x18d)][0x0]);return{..._0x20817b,'children':_0x464ec0[_0x1d2ede(0x18d)][_0x1d2ede(0x149)](0x1)[_0x1d2ede(0x143)](_0x7bf055=>_0x12a052(_0x7bf055,_0x20817b['id']))};}return null;}let _0x3be936=class{constructor(_0x12c7aa,_0x4ecaaa,_0x607c7,_0x1edd0a){const _0x29c27a=_0x53e8dc;this['_httpService']=_0x12c7aa,this[_0x29c27a(0x19c)]=_0x4ecaaa,this['_sessionService']=_0x607c7,this[_0x29c27a(0x14f)]=_0x1edd0a;}async[_0x53e8dc(0x1c0)](_0x5691fe){const _0x37c1f8=_0x53e8dc;var _0xf0a809,_0x22b929;const {parentId:_0x4bfeba,unitId:_0x150b10,text:_0x189713,threadId:_0x19c4c5}=_0x5691fe,_0xc17d58=(_0x22b929=(_0xf0a809=_0x189713['customRanges'])==null?void 0x0:_0xf0a809[_0x37c1f8(0x1ac)](_0x3fc319=>_0x3fc319['rangeType']===_0x5e7e1f[_0x37c1f8(0x15e)]['COMMENT'])[_0x37c1f8(0x143)](_0x585790=>_0x585790['rangeId']))!=null?_0x22b929:[],_0x5f0d9e=JSON[_0x37c1f8(0x18c)](_0x189713),_0x567c3d=(await this[_0x37c1f8(0x1b5)][_0x37c1f8(0x16c)](_0x150b10))[_0x37c1f8(0x159)]();if(_0x4bfeba){const _0x525249={'memberId':_0x567c3d,'unitId':_0x150b10,'content':_0x5f0d9e,'mention':_0xc17d58,'threadId':_0x19c4c5},_0x1c0538=(await this[_0x37c1f8(0x151)]['post'](_0x37c1f8(0x1b1)+_0x150b10+_0x37c1f8(0x17c),{'body':_0x525249}))[_0x37c1f8(0x14b)][_0x37c1f8(0x173)];return{..._0x5691fe,'id':_0x1c0538[_0x37c1f8(0x155)],'dT':_0x5e7e1f[_0x37c1f8(0x1ab)](+_0x1c0538[_0x37c1f8(0x184)])[_0x37c1f8(0x171)](_0x37c1f8(0x197)),'personId':_0x1c0538[_0x37c1f8(0x19a)]};}else{const _0xbf9155={'memberId':_0x567c3d,'unitId':_0x150b10,'content':_0x5f0d9e,'mention':_0xc17d58},_0x217e5f=await this[_0x37c1f8(0x151)][_0x37c1f8(0x187)]('/universer-api/comment/unit/'+_0x150b10+_0x37c1f8(0x186),{'body':_0xbf9155});return _0x1447c5(_0x217e5f['body'][_0x37c1f8(0x162)],_0x5691fe);}}async[_0x53e8dc(0x1a9)](_0x5060fe){const _0x51ace4=_0x53e8dc;var _0x51caef,_0xa4419;const {text:_0x458a45,unitId:_0x585a45}=_0x5060fe,_0x1799e6=(_0xa4419=(_0x51caef=_0x458a45[_0x51ace4(0x14c)])==null?void 0x0:_0x51caef[_0x51ace4(0x1ac)](_0x1f82cf=>_0x1f82cf[_0x51ace4(0x190)]===_0x5e7e1f[_0x51ace4(0x15e)][_0x51ace4(0x164)])['map'](_0x1c7af5=>_0x1c7af5[_0x51ace4(0x1a2)]))!=null?_0xa4419:[],_0x34bdff=JSON[_0x51ace4(0x18c)](_0x458a45),_0x340b3f=_0x5060fe[_0x51ace4(0x19b)],_0x24852d=_0x5060fe['id'],_0x15053c={'memberId':(await this['_sessionService']['requireSession'](_0x585a45))['getMemberID'](),'unitId':_0x585a45,'threadId':_0x340b3f,'mention':_0x1799e6,'content':_0x34bdff,'replyId':_0x24852d},_0x13b473=await this[_0x51ace4(0x151)]['post'](_0x51ace4(0x1b1)+_0x585a45+_0x51ace4(0x154),{'body':_0x15053c});return!_0x13b473[_0x51ace4(0x14b)]['error']||_0x13b473[_0x51ace4(0x14b)][_0x51ace4(0x172)][_0x51ace4(0x169)]===0x1;}async['resolveComment'](_0x120dc0){const _0x42be4c=_0x53e8dc,{unitId:_0x17758f}=_0x120dc0,_0x3c5877=_0x120dc0[_0x42be4c(0x19b)],_0x460c4f={'memberId':this[_0x42be4c(0x19c)][_0x42be4c(0x17e)]()['userID'],'unitId':_0x17758f,'threadId':_0x3c5877,'solved':_0x120dc0[_0x42be4c(0x15a)]?_0x35075f[_0x42be4c(0x185)]:_0x35075f[_0x42be4c(0x19e)]},_0x5c8058=await this[_0x42be4c(0x151)][_0x42be4c(0x187)](_0x42be4c(0x1b1)+_0x17758f+_0x42be4c(0x179),{'body':_0x460c4f});return!_0x5c8058['body'][_0x42be4c(0x172)]||_0x5c8058[_0x42be4c(0x14b)][_0x42be4c(0x172)][_0x42be4c(0x169)]===0x1;}async[_0x53e8dc(0x1be)](_0x31d4ce,_0x474aaf,_0x3ad8ed,_0x1d3ea0){const _0x1959c8=_0x53e8dc,_0x1b20fd={'memberId':(await this[_0x1959c8(0x1b5)][_0x1959c8(0x16c)](_0x31d4ce))[_0x1959c8(0x159)](),'threadId':_0x3ad8ed,'replyId':_0x1d3ea0,'unitId':_0x31d4ce},_0x10ec31=await this['_httpService'][_0x1959c8(0x187)](_0x1959c8(0x1b1)+_0x31d4ce+_0x1959c8(0x198),{'body':_0x1b20fd});return!_0x10ec31[_0x1959c8(0x14b)][_0x1959c8(0x172)]||_0x10ec31[_0x1959c8(0x14b)][_0x1959c8(0x172)]['code']===0x1;}async['listComments'](_0x1448d9,_0x4d95e7,_0x24fa56){const _0x5b06d3=_0x53e8dc,_0x71d915={'unitId':_0x1448d9,'threadId':_0x24fa56},_0xd96394=await this['_httpService'][_0x5b06d3(0x187)](_0x5b06d3(0x1b1)+_0x1448d9+_0x5b06d3(0x1a3),{'body':_0x71d915}),_0xbeaf2=_0x24fa56[_0x5b06d3(0x143)](_0x1d4ea3=>_0x307043(_0xd96394[_0x5b06d3(0x14b)][_0x5b06d3(0x140)][_0x1d4ea3],_0x1448d9,_0x4d95e7))['filter'](Boolean);return Object[_0x5b06d3(0x142)](_0xd96394[_0x5b06d3(0x14b)][_0x5b06d3(0x183)])[_0x5b06d3(0x180)](_0x13d3cf=>{const _0x56552e=_0x5b06d3;this[_0x56552e(0x19c)][_0x56552e(0x14d)](_0x13d3cf);}),_0xbeaf2;}[_0x53e8dc(0x1b2)](_0x3b3590){const _0x952d5b=_0x53e8dc;return{'id':_0x3b3590['id'],'threadId':_0x3b3590[_0x952d5b(0x19b)],'ref':_0x3b3590[_0x952d5b(0x194)]};}};_0x3be936=_0x1ec7e1([_0x124e18(0x0,_0x5e7e1f['Inject'](_0x18f8dc[_0x53e8dc(0x15f)])),_0x124e18(0x1,_0x5e7e1f['Inject'](_0x5e7e1f[_0x53e8dc(0x176)])),_0x124e18(0x2,_0x5e7e1f[_0x53e8dc(0x1a4)](_0x5bf0cd['CollaborationSessionService'])),_0x124e18(0x3,_0x5e7e1f[_0x53e8dc(0x1a4)](_0x5e7e1f[_0x53e8dc(0x16d)]))],_0x3be936);var _0x40d06e=Object[_0x53e8dc(0x1c1)],_0x2504e0=(_0x182973,_0x1726fb,_0x25faf2,_0x30314b)=>{const _0x495212=_0x53e8dc;for(var _0x2f90f2=_0x30314b>0x1?void 0x0:_0x30314b?_0x40d06e(_0x1726fb,_0x25faf2):_0x1726fb,_0x47f1f2=_0x182973[_0x495212(0x189)]-0x1,_0x30c680;_0x47f1f2>=0x0;_0x47f1f2--)(_0x30c680=_0x182973[_0x47f1f2])&&(_0x2f90f2=_0x30c680(_0x2f90f2)||_0x2f90f2);return _0x2f90f2;},_0x183be9=(_0x19b654,_0x7f8d07)=>(_0x276500,_0x3a59df)=>_0x7f8d07(_0x276500,_0x3a59df,_0x19b654);let _0x1210e3=class extends _0x5e7e1f['Disposable']{constructor(_0x53620b,_0x1428ff){const _0x2b40c2=_0x53e8dc;super(),this[_0x2b40c2(0x1b9)]=_0x53620b,this['_threadCommentDataSource']=_0x1428ff,this['_initDataSource']();}[_0x53e8dc(0x145)](){const _0x480988=_0x53e8dc;this[_0x480988(0x1b9)][_0x480988(0x160)]=this[_0x480988(0x175)],this[_0x480988(0x1b9)]['syncUpdateMutationToColla']=!0x1;}};_0x1210e3=_0x2504e0([_0x183be9(0x0,_0x2f1cf0[_0x53e8dc(0x1c5)]),_0x183be9(0x1,_0x5e7e1f[_0x53e8dc(0x1a4)](_0x3be936))],_0x1210e3);var _0x45a2f8=Object[_0x53e8dc(0x17b)],_0x5e6415=Object['getOwnPropertyDescriptor'],_0x89cb3f=(_0x1754a4,_0x2e9a7e,_0x18c0ca)=>_0x2e9a7e in _0x1754a4?_0x45a2f8(_0x1754a4,_0x2e9a7e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18c0ca}):_0x1754a4[_0x2e9a7e]=_0x18c0ca,_0x302668=(_0x2168b8,_0x2376d2,_0x51f506,_0x2495f4)=>{const _0x3b66bf=_0x53e8dc;for(var _0x4bcc12=_0x2495f4>0x1?void 0x0:_0x2495f4?_0x5e6415(_0x2376d2,_0x51f506):_0x2376d2,_0xf2c6f9=_0x2168b8[_0x3b66bf(0x189)]-0x1,_0x5d6127;_0xf2c6f9>=0x0;_0xf2c6f9--)(_0x5d6127=_0x2168b8[_0xf2c6f9])&&(_0x4bcc12=_0x5d6127(_0x4bcc12)||_0x4bcc12);return _0x4bcc12;},_0x5c64b9=(_0x9ed4ab,_0x668dd9)=>(_0x15d2c1,_0x2396e1)=>_0x668dd9(_0x15d2c1,_0x2396e1,_0x9ed4ab),_0x190b6f=(_0x1f9527,_0x41570e,_0x5b090e)=>_0x89cb3f(_0x1f9527,typeof _0x41570e!=_0x53e8dc(0x188)?_0x41570e+'':_0x41570e,_0x5b090e);_0x59a1bd[_0x53e8dc(0x166)]=class extends _0x5e7e1f[_0x53e8dc(0x18e)]{constructor(_0x2068d7=_0x44c24a,_0x40464d,_0x151272){const _0x54c7a7=_0x53e8dc;super(),this[_0x54c7a7(0x144)]=_0x2068d7,this[_0x54c7a7(0x14f)]=_0x40464d,this[_0x54c7a7(0x148)]=_0x151272;const {..._0x36dcca}=_0x5e7e1f['merge']({},_0x44c24a,this[_0x54c7a7(0x144)]);this[_0x54c7a7(0x148)][_0x54c7a7(0x1a1)](_0x29ba69,_0x36dcca);}[_0x53e8dc(0x141)](){const _0x438aa4=_0x53e8dc;[[_0x3be936],[_0x1210e3],[_0x5eb013]][_0x438aa4(0x180)](_0x36bad8=>{const _0x47d958=_0x438aa4;this['_injector'][_0x47d958(0x1c3)](_0x36bad8);});}[_0x53e8dc(0x177)](){const _0x1d77ef=_0x53e8dc;this[_0x1d77ef(0x14f)][_0x1d77ef(0x165)](_0x1210e3),this['_injector']['get'](_0x5eb013);}},_0x190b6f(_0x59a1bd['UniverThreadCommentDataSourcePlugin'],'pluginName',_0x3dcde2),_0x190b6f(_0x59a1bd[_0x53e8dc(0x166)],_0x53e8dc(0x195),_0x5e7e1f['UniverInstanceType'][_0x53e8dc(0x15b)]),_0x59a1bd[_0x53e8dc(0x166)]=_0x302668([_0x5e7e1f['DependentOn'](_0x5bd5af[_0x53e8dc(0x1b3)],_0x5bf0cd['UniverCollaborationClientPlugin'],_0x40b1a0['UniverLicensePlugin']),_0x5c64b9(0x1,_0x5e7e1f[_0x53e8dc(0x1a4)](_0x5e7e1f[_0x53e8dc(0x16d)])),_0x5c64b9(0x2,_0x5e7e1f[_0x53e8dc(0x1c2)])],_0x59a1bd[_0x53e8dc(0x166)]),Object[_0x53e8dc(0x17b)](_0x59a1bd,Symbol[_0x53e8dc(0x16b)],{'value':'Module'});}));function _0x1ed9(_0x50e974,_0x43600a){const _0x340386=_0x3403();return _0x1ed9=function(_0x1ed9b2,_0x4592ba){_0x1ed9b2=_0x1ed9b2-0x13f;let _0x50c5fe=_0x340386[_0x1ed9b2];return _0x50c5fe;},_0x1ed9(_0x50e974,_0x43600a);}function _0x3403(){const _0x353db3=['toStringTag','requireSession','Injector','UNIVER_THREAD_COMMENT_DATA_SOURCE_PLUGIN','root','@univerjs/thread-comment','format','error','reply','406104uEsxtS','_threadCommentDataSource','UserManagerService','onReady','@univerjs/network','/solved','@univerjs-pro/collaboration-client','defineProperty','/reply','bufferTime','getCurrentUser','@univerjs/thread-comment-ui','forEach','size','Disposable','users','createTimestamp','Solved','/add','post','symbol','length','@univerjs/core','Solve','stringify','replies','Plugin','73073QpmbYR','rangeType','UniverProLicense','UniverCore','content','ref','type','315158VHNRBQ','YYYY/MM/DD\x20HH:mm','/delete','_threadCommentModel','userId','threadId','_userService','Edit','OpenOrReOpen','150xVtuWj','_init','setConfig','rangeId','/list','Inject','UNRECOGNIZED','@univerjs-pro/license','UniverProCollaborationClient','21544wjEmzO','updateComment','Add','dayjs','filter','Unknown','2160ayeqIw','delete','Delete','/universer-api/comment/unit/','saveCommentToSnapshot','UniverThreadCommentUIPlugin','_initUserSync','_sessionService','getUnit','object','amd','_threadCommentDataSourceService','1YWelie','parse','getUser','72ctuqsi','deleteComment','UniverThreadCommentUi','addComment','getOwnPropertyDescriptor','IConfigService','add','userID','IThreadCommentDataSourceService','find','comments','onStarting','values','map','_config','_initDataSource','unitId','exports','_configService','slice','UniverNetwork','body','customRanges','addUser','user','_injector','disposeWithMe','_httpService','function','commentUpdate$','/edit','replyId','ThreadCommentModel','Reply','rxjs','getMemberID','resolved','UNIVER_UNKNOWN','724230GtQlPm','solved','CustomRangeType','HTTPService','dataSource','19272jbOmfp','comment','8649EJHzrV','COMMENT','get','UniverThreadCommentDataSourcePlugin','6226stZUNe','_commentService','code','parentId'];_0x3403=function(){return _0x353db3;};return _0x3403();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/thread-comment-datasource",
|
|
3
|
-
"version": "0.8.0-nightly.
|
|
3
|
+
"version": "0.8.0-nightly.202506011606",
|
|
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.8.0-nightly.
|
|
49
|
-
"@univerjs
|
|
50
|
-
"@univerjs/
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/thread-comment": "0.8.0-nightly.
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
48
|
+
"@univerjs-pro/collaboration-client": "0.8.0-nightly.202506011606",
|
|
49
|
+
"@univerjs/core": "0.8.0-nightly.202506011606",
|
|
50
|
+
"@univerjs-pro/license": "0.8.0-nightly.202506011606",
|
|
51
|
+
"@univerjs/protocol": "0.1.47-alpha.0",
|
|
52
|
+
"@univerjs/thread-comment": "0.8.0-nightly.202506011606",
|
|
53
|
+
"@univerjs/network": "0.8.0-nightly.202506011606",
|
|
54
|
+
"@univerjs/thread-comment-ui": "0.8.0-nightly.202506011606"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"rxjs": "7.8.2",
|