@ckeditor/ckeditor5-comments 39.0.2 → 40.0.0
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/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/comments.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/lang/translations/pt-br.po +3 -3
- package/package.json +3 -3
- package/src/annotations/annotation.d.ts +90 -90
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +98 -98
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +154 -154
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +232 -232
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +67 -67
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +90 -90
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +85 -85
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +100 -100
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +90 -90
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +55 -55
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +32 -32
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +77 -77
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +52 -52
- package/src/comments/addcommentthreadcommand.d.ts +35 -35
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +31 -31
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +38 -38
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +79 -79
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1129 -1105
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +33 -33
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +21 -21
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +119 -112
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +112 -112
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +14 -14
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +86 -86
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +100 -100
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +118 -117
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +243 -243
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +35 -35
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +33 -33
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +176 -176
- package/src/index.d.ts +24 -24
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +14 -14
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/annotation-inline.css +2 -1
- package/theme/annotation.css +2 -1
- package/theme/comment.css +2 -1
- package/theme/commentinput.css +2 -1
- package/theme/commentmarker.css +2 -1
- package/theme/commentsarchive.css +2 -1
- package/theme/commentthread.css +12 -1
- package/theme/icons/add-comment.svg +1 -1
- package/theme/icons/comments-archive.svg +1 -1
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +2 -1
- package/theme/sidebar.css +2 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5841=['openNewCommentThread','reopenCommentThread','reconvertMarker','updateMarker','dataToMarker','change','map','registerAnnotation','addCommentThread','scrollToThreadMarker','isThreadsLoadingPaused','getRange','getWalker','change:isReadOnly','isResolved','view','$marker','refreshVisibility','activeMarker','length','end','addMarker:','split','hasDomSelection','conversion','getCommentThreads','ck-comment-marker--active','isObject','elementToElement','change:activeMarker','state','_threadToController','_autoResolvedThreads','focus','text','_detachCommentThread','newRange','hasMarkerForId','model','removeCommentThread','requires','delete','set','ck-comment-marker','render','listenTo','get','destroy','getByInnerView','plugins','enqueueChange','once','schema','_handleMarkerAddAndRemove','$textProxy','ready','differ','push','has','_attachResolvedThread','_initializeMarkerConverters','_getTextContext','start','_reconvertMarkers','resolveCommentThread','fetchCommentThread','getCommentThread','markers','rootName','commands','data','markerName','low','from','upcast','_removedThread','getChangedMarkers','registerPostFixer','substring','isEqual','config','editing','_attachMarkerToThread','collaboration.channelId','removeMarker:','filter','item','getAllMarkersForId','editor','dataDowncast','createPositionBefore','comment','consumable','createRange','_getTargetForId','isCollapsed','size','attachTo','ignoreResolvedComments','removeMarker','_attachedThreads','_hasTargetInContent','add','getAttribute','pluginName','setContext','root','_handleThreadMarker','for','reopen','document','CommentsEditing'];(function(_0x1a19bf,_0x5841f5){const _0x244f1c=function(_0x52948e){while(--_0x52948e){_0x1a19bf['push'](_0x1a19bf['shift']());}};_0x244f1c(++_0x5841f5);}(_0x5841,0xd1));const _0x244f=function(_0x1a19bf,_0x5841f5){_0x1a19bf=_0x1a19bf-0x0;let _0x244f1c=_0x5841[_0x1a19bf];return _0x244f1c;};import{Plugin as _0x31951f}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x51ebf4}from'ckeditor5/src/utils';import _0x433bac from'./commentsrepository';import _0xfd7580 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x1e8424}from'ckeditor5-collaboration/src/collaboration-core';import _0x3f90b7 from'../annotations/editorannotations';import _0x1f3e51 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x4d67a6 from'./integrations/importword';import _0x1d19e6 from'../annotations/annotations';export default class r extends _0x31951f{static get[_0x244f('0x37')](){return[_0x433bac,_0x3f90b7,_0x1f3e51,_0x4d67a6];}static get[_0x244f('0x7')](){return _0x244f('0xe');}constructor(_0x35fecf){super(_0x35fecf),this[_0x244f('0x5a')]=null,this[_0x244f('0x2f')]=new Set(),this[_0x244f('0x39')](_0x244f('0x19'),!0x0),_0x35fecf['data']['once'](_0x244f('0x46'),()=>this[_0x244f('0x19')]=!0x1),this[_0x244f('0x39')](_0x244f('0x21'),null),this['on'](_0x244f('0x2c'),(_0x16bfe8,_0x58ef6c,_0x36e0df,_0x2f18ba)=>{const _0x21243a=_0x36e0df?tt(_0x36e0df)['id']:null;if(_0x35fecf[_0x244f('0x35')][_0x244f('0x14')](()=>{if(_0x21243a){const _0x193407=this['getAllMarkersForId'](_0x21243a);for(const _0x5d81f5 of _0x193407)_0x35fecf[_0x244f('0x60')]['reconvertMarker'](_0x5d81f5);}if(_0x2f18ba){const {id:_0xbbb7c2}=tt(_0x2f18ba),_0x16a3b8=this[_0x244f('0x66')](_0xbbb7c2);for(const _0x21c5b5 of _0x16a3b8)_0x35fecf['editing'][_0x244f('0x11')](_0x21c5b5);}}),_0x21243a){const _0x595fef=_0x35fecf[_0x244f('0x40')][_0x244f('0x3d')](_0x433bac)[_0x244f('0x51')](_0x21243a);_0x595fef&&_0x595fef[_0x244f('0x1d')]&&this[_0x244f('0x18')](_0x21243a);}}),this['_attachedThreads']=new Map();}['init'](){const _0x147f3b=this[_0x244f('0x67')],_0x503c4d=_0x147f3b['plugins'][_0x244f('0x3d')](_0x433bac),_0x78e89=_0x147f3b[_0x244f('0x5f')][_0x244f('0x3d')]('collaboration.channelId');_0x147f3b[_0x244f('0x54')][_0x244f('0x5')](_0x244f('0x17'),new _0xfd7580(_0x147f3b)),this[_0x244f('0x3c')](_0x147f3b,_0x244f('0x1c'),(_0x410885,_0x3d8a3c,_0x364590)=>{_0x503c4d['switchReadOnly'](_0x364590,_0x147f3b[_0x244f('0x5f')][_0x244f('0x3d')](_0x244f('0x62')));}),this[_0x244f('0x3c')](_0x503c4d,Z('addCommentThread',_0x78e89),(_0xb6dc84,{threadId:_0x4501bf})=>{const _0x3141ef=this[_0x244f('0x67')][_0x244f('0x40')][_0x244f('0x3d')](_0x433bac)[_0x244f('0x51')](_0x4501bf);_0x3141ef&&_0x3141ef[_0x244f('0x1d')]&&this[_0x244f('0x4a')](_0x4501bf);}),this[_0x244f('0x3c')](_0x503c4d,Z(_0x244f('0x36'),_0x78e89),(_0x23afad,{threadId:_0x310ea5})=>{_0x147f3b[_0x244f('0x35')]['enqueueChange']({'isUndoable':!0x1},_0x442f28=>{const _0x416a89=this[_0x244f('0x66')](_0x310ea5);this['_attachedThreads']['delete'](_0x310ea5),this[_0x244f('0x5a')]=_0x310ea5;for(const _0x1fe859 of _0x416a89)_0x442f28['removeMarker'](_0x1fe859);}),this[_0x244f('0x5a')]=null;},{'priority':'high'}),this[_0x244f('0x3c')](_0x503c4d,Z(_0x244f('0x4f'),_0x78e89),(_0x58c309,{threadId:_0xf4e753})=>{this[_0x244f('0x4a')](_0xf4e753),this['_reconvertMarkers'](_0xf4e753),this[_0x244f('0x67')]['editing'][_0x244f('0x1e')][_0x244f('0x26')]&&this[_0x244f('0x67')][_0x244f('0x60')][_0x244f('0x1e')][_0x244f('0x30')]();},{'priority':_0x244f('0x57')}),this[_0x244f('0x3c')](_0x503c4d,Z(_0x244f('0x10'),_0x78e89),(_0x54e4b5,{threadId:_0x51bfc6})=>{this[_0x244f('0x4e')](_0x51bfc6);},{'priority':'low'}),this[_0x244f('0x3c')](_0x503c4d,Z('addComment',_0x78e89),(_0x2669e6,{threadId:_0xffc33e,isFromAdapter:_0x52dbdb})=>{const _0x22cc8a=this['getAllMarkersForId'](_0xffc33e);if(_0x52dbdb||0x0==_0x22cc8a['length']||!_0x503c4d['hasCommentThread'](_0xffc33e))return;0x1===_0x503c4d[_0x244f('0x51')](_0xffc33e)[_0x244f('0x22')]&&_0x147f3b['model'][_0x244f('0x41')]({'isUndoable':!0x1},_0x3ad920=>{for(const _0x43c031 of _0x22cc8a)_0x3ad920['updateMarker'](_0x43c031,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x244f('0x57')}),this[_0x244f('0x4b')](),this[_0x244f('0x44')]();}[_0x244f('0x3e')](){const _0x31589a=this[_0x244f('0x67')][_0x244f('0x40')][_0x244f('0x3d')](_0x433bac),_0x51fb27=this[_0x244f('0x67')][_0x244f('0x5f')][_0x244f('0x3d')](_0x244f('0x62'));for(const _0x258fc5 of _0x31589a[_0x244f('0x28')]({'channelId':_0x51fb27}))_0x31589a[_0x244f('0x32')](_0x258fc5['id']),_0x31589a['_threads']['delete'](_0x258fc5['id']);super['destroy']();}['hasMarkerForId'](_0x41b9ab){return this[_0x244f('0x66')](_0x41b9ab)[_0x244f('0x22')]>0x0;}[_0x244f('0x66')](_0x43a93c){return Array[_0x244f('0x58')](this[_0x244f('0x3')][_0x244f('0x3d')](_0x43a93c)||[])[_0x244f('0x15')](_0xe7bb98=>this['editor']['model'][_0x244f('0x52')][_0x244f('0x3d')](_0xe7bb98))[_0x244f('0x64')](_0x572c01=>_0x572c01);}[_0x244f('0x18')](_0xcc88ce){const _0x52ff8d=this['_getTargetForId'](_0xcc88ce);_0x52ff8d&&setTimeout(()=>{this[_0x244f('0x21')]&&tt(this[_0x244f('0x21')])['id']===_0xcc88ce&&_0x51ebf4({'target':_0x52ff8d[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x244f('0x4e')](_0x119637){this[_0x244f('0x67')]['model'][_0x244f('0x14')](()=>{for(const _0x394ab3 of this['getAllMarkersForId'](_0x119637))this[_0x244f('0x67')][_0x244f('0x60')][_0x244f('0x11')](_0x394ab3);});}['_attachResolvedThread'](_0x33a4f9){const _0x504fe1=this[_0x244f('0x67')][_0x244f('0x40')][_0x244f('0x3d')](_0x433bac),_0x3ba2de=this[_0x244f('0x67')][_0x244f('0x40')][_0x244f('0x3d')](_0x3f90b7),_0x16a7f1=_0x504fe1[_0x244f('0x51')](_0x33a4f9);if(!this[_0x244f('0x3')][_0x244f('0x49')](_0x33a4f9)){const _0x54e1d0=_0x16a7f1[_0x244f('0x0')](()=>this[_0x244f('0x6d')](_0x16a7f1['id']));_0x3ba2de[_0x244f('0x16')](_0x54e1d0),this['_attachedThreads'][_0x244f('0x39')](_0x33a4f9,new Set()),_0x16a7f1[_0x244f('0x4')]=!0x1;}}['_initializeMarkerConverters'](){const _0x2aeabc=this[_0x244f('0x67')];_0x2aeabc[_0x244f('0x27')]['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x15a99f,_0x795dad)=>{const {id:_0x45caa1}=tt(_0x15a99f[_0x244f('0x56')]),_0xe5dad1=_0x2aeabc[_0x244f('0x40')]['get'](_0x433bac)[_0x244f('0x51')](_0x45caa1),_0x5a729a=this[_0x244f('0x21')]&&tt(this[_0x244f('0x21')])['id']===_0x45caa1;if(_0xe5dad1&&_0xe5dad1['isResolved']&&!_0x5a729a&&_0x15a99f[_0x244f('0x65')])return _0x795dad['consumable']['consume'](_0x15a99f[_0x244f('0x65')],_0x244f('0x24')+_0x15a99f[_0x244f('0x56')]),_0x795dad[_0x244f('0x6b')]['consume'](_0x15a99f['item'],_0x244f('0x63')+_0x15a99f['markerName']),{'classes':[]};const _0x159eec=[_0x244f('0x3a')];return _0x5a729a&&_0x159eec[_0x244f('0x48')](_0x244f('0x29')),{'classes':_0x159eec,'attributes':{'data-comment':_0x45caa1}};}}),_0x2aeabc[_0x244f('0x27')][_0x244f('0xb')](_0x244f('0x68'))['markerToData']({'model':_0x244f('0x6a'),'view':(_0xd3e8ca,{options:_0x2aa960})=>{const _0x3825b9=_0x2aeabc['plugins'][_0x244f('0x3d')](_0x433bac),_0x29844e=_0x2aeabc[_0x244f('0x35')][_0x244f('0x52')][_0x244f('0x3d')](_0xd3e8ca),{id:_0x1b6af7,part:_0x45d7a1}=tt(_0xd3e8ca);if(_0x29844e&&!_0x29844e['affectsData'])return null;if(_0x2aa960[_0x244f('0x1')]){const _0x43d1ea=_0x3825b9[_0x244f('0x51')](_0x1b6af7);if(_0x43d1ea&&_0x43d1ea[_0x244f('0x1d')])return null;}return{'group':_0x244f('0x6a'),'name':_0x45d7a1?_0x1b6af7+':'+_0x45d7a1:_0x1b6af7};}}),_0x2aeabc[_0x244f('0x27')][_0x244f('0xb')](_0x244f('0x59'))[_0x244f('0x2b')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x577679,{writer:_0x414a1a})=>_0x414a1a['createElement'](_0x244f('0x1f'),{'data-name':'comment:'+_0x577679[_0x244f('0x6')]('id')})}),_0x2aeabc['conversion'][_0x244f('0xb')](_0x244f('0x59'))[_0x244f('0x13')]({'view':'comment'});}[_0x244f('0x44')](){const _0x150c2d=this[_0x244f('0x67')],_0x447c37=_0x150c2d['plugins']['get'](_0x433bac),_0x5426ef=new Set(),_0x28a9a5=new Set();_0x150c2d['model'][_0x244f('0xd')][_0x244f('0x5c')](_0x113b0e=>{let _0x2b7358=!0x1;for(const {name:_0x3aa681,data:_0x3a857c}of _0x150c2d['model'][_0x244f('0xd')][_0x244f('0x47')][_0x244f('0x5b')]()){const {group:_0x10571a,id:_0x256a35}=tt(_0x3aa681);let _0x1b85d=_0x3a857c[_0x244f('0x33')];if(_0x244f('0x6a')!==_0x10571a||!_0x1b85d)continue;const _0x46c671='$graveyard'===_0x1b85d[_0x244f('0x9')][_0x244f('0x53')];_0x46c671||(_0x1b85d=ot(_0x1b85d,_0x150c2d[_0x244f('0x35')]),!_0x1b85d||_0x1b85d[_0x244f('0x6e')]||!_0x3a857c[_0x244f('0x33')]||_0x1b85d[_0x244f('0x5e')](_0x3a857c['newRange']))?_0x150c2d[_0x244f('0x35')]['hasContent'](_0x1b85d)&&!_0x46c671?this[_0x244f('0x19')]?_0x5426ef[_0x244f('0x5')](_0x3aa681):this[_0x244f('0xa')](_0x3aa681,_0x256a35):(_0x28a9a5[_0x244f('0x5')](_0x3aa681),_0x5426ef[_0x244f('0x38')](_0x3aa681),_0x113b0e[_0x244f('0x2')](_0x3aa681),_0x2b7358=!0x0):(_0x113b0e[_0x244f('0x12')](_0x3aa681,{'range':_0x1b85d}),_0x2b7358=!0x0);}return _0x2b7358;}),this['on']('change:isThreadsLoadingPaused',(_0x4109a1,_0x297c7e,_0x3c1f57)=>{if(!_0x3c1f57&&_0x5426ef[_0x244f('0x6f')])for(const _0x27d131 of _0x5426ef){const {id:_0x260f33}=tt(_0x27d131);_0x5426ef[_0x244f('0x38')](_0x27d131),_0x150c2d[_0x244f('0x35')][_0x244f('0x52')][_0x244f('0x3d')](_0x27d131)&&this[_0x244f('0xa')](_0x27d131,_0x260f33);}}),this[_0x244f('0x3c')](_0x150c2d[_0x244f('0x35')][_0x244f('0xd')],_0x244f('0x14'),(_0x376568,_0x212f11)=>{for(const {name:_0x539d10,data:{newRange:_0x475c86}}of _0x150c2d[_0x244f('0x35')][_0x244f('0xd')][_0x244f('0x47')][_0x244f('0x5b')]()){const {group:_0x2f9009,id:_0x3efd0f}=tt(_0x539d10);if(_0x244f('0x6a')!==_0x2f9009)continue;const _0x480f06=_0x447c37[_0x244f('0x51')](_0x3efd0f),_0x1e260a=this['hasMarkerForId'](_0x3efd0f);_0x480f06&&(_0x480f06[_0x244f('0x4')]||_0x150c2d[_0x244f('0x60')][_0x244f('0x1e')]['once'](_0x244f('0x3b'),()=>{const _0x25e18d=_0x150c2d[_0x244f('0x40')][_0x244f('0x3d')](_0x1d19e6),_0x105bfb=_0x447c37[_0x244f('0x2e')][_0x244f('0x3d')](_0x480f06)['view'];_0x25e18d[_0x244f('0x3f')](_0x105bfb)[_0x244f('0x20')]();},{'priority':_0x244f('0x57')}),_0x480f06[_0x244f('0x4')]=_0x1e260a||!!_0x475c86),_0x475c86||(_0x28a9a5[_0x244f('0x5')](_0x539d10),_0x5426ef['delete'](_0x539d10),this[_0x244f('0x3')][_0x244f('0x49')](_0x3efd0f)&&this[_0x244f('0x3')]['get'](_0x3efd0f)[_0x244f('0x38')](_0x539d10));}if(_0x212f11['isLocal'])for(const _0x5ea3c6 of _0x28a9a5){const {id:_0x1cb4b5}=tt(_0x5ea3c6),_0x51de8f=_0x447c37[_0x244f('0x51')](_0x1cb4b5),_0x155671=this[_0x244f('0x34')](_0x1cb4b5);_0x5426ef[_0x244f('0x38')](_0x5ea3c6),!_0x51de8f||_0x155671||_0x51de8f[_0x244f('0x1d')]||this[_0x244f('0x5a')]===_0x1cb4b5||(this['_autoResolvedThreads'][_0x244f('0x5')](_0x51de8f),_0x51de8f['resolve']());}_0x28a9a5['clear']();});}[_0x244f('0x6d')](_0x3672ed){const _0x178451=this[_0x244f('0x67')],_0x1d74ad=this[_0x244f('0x66')](_0x3672ed);return _0x1e8424(_0x178451[_0x244f('0x60')],_0x1d74ad);}['_getTextContext'](_0x4ddb45){const _0x1a83fd=this[_0x244f('0x66')](_0x4ddb45);let _0x3f2d84='',_0x3666e8=!0x1;for(const _0x2e19e9 of _0x1a83fd){const _0x26ede0=_0x2e19e9[_0x244f('0x1a')]();for(const _0x4e21f4 of Array[_0x244f('0x58')](_0x26ede0['getItems']()))_0x4e21f4['is'](_0x244f('0x45'))?(_0x3f2d84&&_0x3666e8&&(_0x3f2d84+='\x20',_0x3666e8=!0x1),_0x3f2d84+=_0x4e21f4[_0x244f('0x55')]):_0x3666e8=!0x0;_0x3666e8=!0x0;}return _0x3f2d84[_0x244f('0x5d')](0x0,0x96);}['_attachMarkerToThread'](_0x4b0817,_0x351359){const _0xc21dac=this[_0x244f('0x67')],_0x10b073=_0xc21dac[_0x244f('0x40')][_0x244f('0x3d')](_0x433bac);let _0x19c68f=_0x10b073[_0x244f('0x51')](_0x351359);if(this[_0x244f('0x3')]['has'](_0x351359)){const _0xd3edcd=this[_0x244f('0x3')]['get'](_0x351359);_0xd3edcd[_0x244f('0x49')](_0x4b0817)||_0xd3edcd['add'](_0x4b0817);}const _0x4d551c=_0xc21dac['config'][_0x244f('0x3d')]('collaboration.channelId'),_0x20ed20=_0xc21dac[_0x244f('0x40')][_0x244f('0x3d')](_0x3f90b7);if(_0x19c68f&&_0x19c68f[_0x244f('0x1d')]&&this[_0x244f('0x2f')][_0x244f('0x49')](_0x19c68f)&&(this[_0x244f('0x2f')][_0x244f('0x38')](_0x19c68f),_0x19c68f[_0x244f('0xc')]()),this[_0x244f('0x3')]['has'](_0x351359))return _0x19c68f;return this[_0x244f('0x3')][_0x244f('0x39')](_0x351359,new Set([_0x4b0817])),(!this['getAllMarkersForId'](_0x351359)[0x0]['managedUsingOperations']?_0xc21dac['editing'][_0x244f('0x1e')][_0x244f('0x42')](_0x244f('0x3b'),()=>{const _0x7ea96=_0xc21dac['plugins'][_0x244f('0x3d')](_0x1d19e6);_0x19c68f=_0x10b073[_0x244f('0xf')]({'channelId':_0x4d551c,'threadId':_0x351359,'target':()=>this[_0x244f('0x6d')](_0x351359),'context':{'type':'text','value':this[_0x244f('0x4c')](_0x351359)}});const _0x4c2a8b=_0x10b073[_0x244f('0x2e')][_0x244f('0x3d')](_0x19c68f)[_0x244f('0x1e')],_0x4df5de=_0x7ea96[_0x244f('0x3f')](_0x4c2a8b);_0x4df5de&&_0x20ed20[_0x244f('0x16')](_0x4df5de);},{'priority':'low'}):_0x10b073[_0x244f('0x50')]({'channelId':_0x4d551c,'threadId':_0x351359})['then'](_0x315a90=>{if('destroyed'!==_0xc21dac[_0x244f('0x2d')]){if(_0x19c68f=_0x315a90,_0x19c68f){const _0x19f1a4=_0x19c68f[_0x244f('0x0')](()=>this[_0x244f('0x6d')](_0x351359));_0x20ed20[_0x244f('0x16')](_0x19f1a4),_0x19c68f[_0x244f('0x1d')]&&this['_reconvertMarkers'](_0x351359);}else{const _0x42e32d=this[_0x244f('0x66')](_0x351359);_0xc21dac[_0x244f('0x35')][_0x244f('0x14')](_0x38454c=>{for(const _0x17d56c of _0x42e32d)_0x38454c[_0x244f('0x2')](_0x17d56c);});}}}),_0x19c68f);}[_0x244f('0xa')](_0x36d267,_0x2c5f37){const _0x276c85=this[_0x244f('0x61')](_0x36d267,_0x2c5f37);_0x276c85&&!_0x276c85['context']&&_0x276c85[_0x244f('0x8')]({'type':_0x244f('0x31'),'value':this[_0x244f('0x4c')](_0x2c5f37)});}}function Z(_0x1e399c,_0x246f3e){return _0x246f3e?_0x1e399c+':'+_0x246f3e:_0x1e399c;}function tt(_0x3d3f58){const _0x5c38b9=_0x3d3f58[_0x244f('0x25')](':');return{'group':_0x5c38b9[0x0],'id':_0x5c38b9[0x1],'part':_0x5c38b9[0x2]};}function ot(_0x4065c8,_0x5a74e4){const _0x1bce91=_0x5a74e4[_0x244f('0x43')],_0x13d69e=_0x5a74e4[_0x244f('0x6c')](_0x4065c8[_0x244f('0x4d')]);for(const _0x97b363 of _0x4065c8[_0x244f('0x1b')]()){const {type:_0x5f0b3f,item:_0x548e0a,nextPosition:_0x4b7611}=_0x97b363;if(_0x244f('0x31')===_0x5f0b3f||_0x1bce91[_0x244f('0x2a')](_0x548e0a)){const _0x2775a8=_0x5a74e4[_0x244f('0x69')](_0x548e0a);_0x13d69e[_0x244f('0x6e')]&&(_0x13d69e[_0x244f('0x4d')]=_0x2775a8),_0x13d69e[_0x244f('0x23')]=_0x4b7611;}}return _0x13d69e;}
|
|
23
|
+
const _0x5939=['comment:','setContext','commands','isResolved','affectsData','low','conversion','createPositionBefore','CommentsEditing','markers','refreshVisibility','differ','createElement','state','getItems','attachTo','clear','getWalker','plugins','hasMarkerForId','context','model','dataDowncast','removeMarker','consumable','render','text','_getTargetForId','$textProxy','getRange','substring','isThreadsLoadingPaused','editingDowncast','hasDomSelection','scrollToThreadMarker','collaboration.channelId','change:isReadOnly','_hasTargetInContent','config','pluginName','editing','removeCommentThread','isLocal','_reconvertMarkers','set','split','ck-comment-marker--active','delete','isCollapsed','_attachResolvedThread','destroy','change','getChangedMarkers','ignoreResolvedComments','removeMarker:','reconvertMarker','getCommentThreads','length','isAttached','unlinkedAt','registerPostFixer','document','for','name','comment','get','upcast','once','_attachMarkerToThread','editor','requires','updateMarker','consume','then','getCommentThread','data','markerName','_initializeMarkerConverters','markerToHighlight','start','_detachCommentThread','openNewCommentThread','_threadToController','item','view','init','registerAnnotation','newRange','$marker','addCommentThread','setUnlinkedAt','$graveyard','root','_handleThreadMarker','getByInnerView','change:isThreadsLoadingPaused','ck-comment-marker','enqueueChange','schema','_handleMarkerAddAndRemove','isEqual','dataToMarker','createRange','activeMarker','getAllMarkersForId','managedUsingOperations','listenTo','markerToData','ready','_getTextContext'];(function(_0x3e3597,_0x5939bb){const _0x504ab7=function(_0x45d760){while(--_0x45d760){_0x3e3597['push'](_0x3e3597['shift']());}};_0x504ab7(++_0x5939bb);}(_0x5939,0x169));const _0x504a=function(_0x3e3597,_0x5939bb){_0x3e3597=_0x3e3597-0x0;let _0x504ab7=_0x5939[_0x3e3597];return _0x504ab7;};import{Plugin as _0x189367}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2918dd}from'ckeditor5/src/utils';import _0x4074be from'./commentsrepository';import _0x2501a4 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4d8a56}from'ckeditor5-collaboration/src/collaboration-core';import _0x155866 from'../annotations/editorannotations';import _0xa22e54 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x21d20f from'./integrations/importword';import _0x10a68d from'../annotations/annotations';export default class r extends _0x189367{static get[_0x504a('0x27')](){return[_0x4074be,_0x155866,_0xa22e54,_0x21d20f];}static get[_0x504a('0x8')](){return _0x504a('0x57');}constructor(_0x14af51){super(_0x14af51),this['set'](_0x504a('0x0'),!0x0),_0x14af51['data']['once'](_0x504a('0x4d'),()=>this[_0x504a('0x0')]=!0x1),this[_0x504a('0xd')](_0x504a('0x48'),null),this['on']('change:activeMarker',(_0x62debd,_0x42d6d7,_0x312583,_0x4ab49a)=>{const _0x5f35ba=_0x312583?tt(_0x312583)['id']:null;if(_0x14af51[_0x504a('0x64')][_0x504a('0x14')](()=>{if(_0x5f35ba){const _0x160b8a=this[_0x504a('0x49')](_0x5f35ba);for(const _0x34e2c1 of _0x160b8a)_0x14af51['editing']['reconvertMarker'](_0x34e2c1);}if(_0x4ab49a){const {id:_0x5a55cc}=tt(_0x4ab49a),_0x5aa2c5=this[_0x504a('0x49')](_0x5a55cc);for(const _0x106d1f of _0x5aa2c5)_0x14af51[_0x504a('0x9')][_0x504a('0x18')](_0x106d1f);}}),_0x5f35ba){const _0x1e7a21=_0x14af51['plugins'][_0x504a('0x22')](_0x4074be)[_0x504a('0x2b')](_0x5f35ba);_0x1e7a21&&_0x1e7a21[_0x504a('0x52')]&&this[_0x504a('0x3')](_0x5f35ba);}});}[_0x504a('0x36')](){const _0x961c59=this[_0x504a('0x26')],_0x201415=_0x961c59[_0x504a('0x61')]['get'](_0x4074be),_0x310108=_0x961c59[_0x504a('0x7')][_0x504a('0x22')](_0x504a('0x4'));_0x961c59[_0x504a('0x51')]['add']('addCommentThread',new _0x2501a4(_0x961c59)),this['listenTo'](_0x961c59,_0x504a('0x5'),(_0x5e1cea,_0x4d1b1e,_0x50eced)=>{_0x201415['switchReadOnly'](_0x50eced,_0x961c59[_0x504a('0x7')][_0x504a('0x22')]('collaboration.channelId'));}),this[_0x504a('0x4b')](_0x201415,Z(_0x504a('0x3a'),_0x310108),(_0x5898c1,{threadId:_0x256ba3})=>{const _0x3843ad=this['editor'][_0x504a('0x61')][_0x504a('0x22')](_0x4074be)[_0x504a('0x2b')](_0x256ba3);_0x3843ad&&_0x3843ad['archivedAt']&&this['_attachResolvedThread'](_0x256ba3);}),this[_0x504a('0x4b')](_0x201415,Z(_0x504a('0xa'),_0x310108),(_0xe12977,{threadId:_0x28de86})=>{_0x961c59[_0x504a('0x64')][_0x504a('0x42')]({'isUndoable':!0x1},_0x2dffa0=>{const _0x54e998=this['getAllMarkersForId'](_0x28de86);for(const _0xa2968d of _0x54e998)_0x2dffa0[_0x504a('0x66')](_0xa2968d);});}),this[_0x504a('0x4b')](_0x201415,Z('resolveCommentThread',_0x310108),(_0x2c1788,{threadId:_0x2876c9})=>{(this[_0x504a('0x12')](_0x2876c9),this[_0x504a('0xc')](_0x2876c9),this[_0x504a('0x26')]['editing'][_0x504a('0x35')][_0x504a('0x2')])&&(this[_0x504a('0x26')]['plugins'][_0x504a('0x22')](_0x4074be)[_0x504a('0x2b')](_0x2876c9)[_0x504a('0x1c')]||this[_0x504a('0x26')][_0x504a('0x9')][_0x504a('0x35')]['focus']());},{'priority':_0x504a('0x54')}),this[_0x504a('0x4b')](_0x201415,Z('reopenCommentThread',_0x310108),(_0x314f10,{threadId:_0x403513})=>{this[_0x504a('0xc')](_0x403513);},{'priority':_0x504a('0x54')}),this['listenTo'](_0x201415,Z('addComment',_0x310108),(_0x4f0e1f,{threadId:_0x2dea57,isFromAdapter:_0x4b9aa5})=>{const _0x330f9c=this['getAllMarkersForId'](_0x2dea57);if(_0x4b9aa5||0x0==_0x330f9c[_0x504a('0x1a')]||!_0x201415['hasCommentThread'](_0x2dea57))return;0x1===_0x201415['getCommentThread'](_0x2dea57)['length']&&_0x961c59[_0x504a('0x64')]['enqueueChange']({'isUndoable':!0x1},_0x4bb156=>{for(const _0x44fb34 of _0x330f9c)_0x4bb156[_0x504a('0x28')](_0x44fb34,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x504a('0x54')}),this[_0x504a('0x2e')](),this[_0x504a('0x44')]();}[_0x504a('0x13')](){const _0x5609df=this[_0x504a('0x26')][_0x504a('0x61')][_0x504a('0x22')](_0x4074be),_0x258877=this[_0x504a('0x26')][_0x504a('0x7')][_0x504a('0x22')](_0x504a('0x4'));for(const _0x4a88b4 of _0x5609df[_0x504a('0x19')]({'channelId':_0x258877}))_0x5609df[_0x504a('0x31')](_0x4a88b4['id']),_0x5609df['_threads']['delete'](_0x4a88b4['id']);super[_0x504a('0x13')]();}[_0x504a('0x62')](_0x315b75){return this['getAllMarkersForId'](_0x315b75)['length']>0x0;}[_0x504a('0x49')](_0x3f0c98){const _0x1d66d1=[];for(const _0x205b4d of this[_0x504a('0x26')][_0x504a('0x64')]['markers'])_0x205b4d[_0x504a('0x20')]['startsWith'](_0x504a('0x4f')+_0x3f0c98)&&_0x1d66d1['push'](_0x205b4d);return _0x1d66d1;}[_0x504a('0x3')](_0xc04966){const _0x8c2b1e=this[_0x504a('0x6a')](_0xc04966);_0x8c2b1e&&setTimeout(()=>{this[_0x504a('0x48')]&&tt(this[_0x504a('0x48')])['id']===_0xc04966&&_0x2918dd({'target':_0x8c2b1e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x4878e5){this[_0x504a('0x26')][_0x504a('0x64')][_0x504a('0x14')](()=>{for(const _0x3dac28 of this['getAllMarkersForId'](_0x4878e5))this[_0x504a('0x26')]['editing']['reconvertMarker'](_0x3dac28);});}[_0x504a('0x12')](_0xa8a674){const _0x1b2a82=this['editor']['plugins'][_0x504a('0x22')](_0x4074be),_0x4967e3=this['editor'][_0x504a('0x61')][_0x504a('0x22')](_0x155866),_0x3ad79e=_0x1b2a82[_0x504a('0x2b')](_0xa8a674);if(!_0x3ad79e[_0x504a('0x1b')]){const _0x6e7630=_0x3ad79e['attachTo'](()=>this[_0x504a('0x6a')](_0x3ad79e['id']));_0x4967e3[_0x504a('0x37')](_0x6e7630),_0x3ad79e[_0x504a('0x6')]=!0x1;}}[_0x504a('0x2e')](){const _0x2fd498=this['editor'];_0x2fd498[_0x504a('0x55')]['for'](_0x504a('0x1'))[_0x504a('0x2f')]({'model':_0x504a('0x21'),'view':(_0x3a7585,_0x65536c)=>{const {id:_0x3d1d9b}=tt(_0x3a7585[_0x504a('0x2d')]),_0x13cb4b=_0x2fd498['plugins'][_0x504a('0x22')](_0x4074be)[_0x504a('0x2b')](_0x3d1d9b),_0x25f99d=this['activeMarker']&&tt(this[_0x504a('0x48')])['id']===_0x3d1d9b;if(_0x13cb4b&&_0x13cb4b[_0x504a('0x52')]&&!_0x25f99d&&_0x3a7585[_0x504a('0x34')])return _0x65536c[_0x504a('0x67')]['consume'](_0x3a7585[_0x504a('0x34')],'addMarker:'+_0x3a7585['markerName']),_0x65536c[_0x504a('0x67')][_0x504a('0x29')](_0x3a7585[_0x504a('0x34')],_0x504a('0x17')+_0x3a7585['markerName']),{'classes':[]};const _0x23e804=[_0x504a('0x41')];return _0x25f99d&&_0x23e804['push'](_0x504a('0xf')),{'classes':_0x23e804,'attributes':{'data-comment':_0x3d1d9b}};}}),_0x2fd498[_0x504a('0x55')]['for'](_0x504a('0x65'))[_0x504a('0x4c')]({'model':_0x504a('0x21'),'view':(_0xf4f590,{options:_0x1abd59})=>{const _0x19a869=_0x2fd498['plugins'][_0x504a('0x22')](_0x4074be),_0x2353e7=_0x2fd498['model'][_0x504a('0x58')][_0x504a('0x22')](_0xf4f590),{id:_0x37a52,part:_0x59a289}=tt(_0xf4f590);if(_0x2353e7&&!_0x2353e7[_0x504a('0x53')])return null;if(_0x1abd59[_0x504a('0x16')]){const _0x54cd3c=_0x19a869[_0x504a('0x2b')](_0x37a52);if(_0x54cd3c&&_0x54cd3c[_0x504a('0x52')])return null;}return{'group':'comment','name':_0x59a289?_0x37a52+':'+_0x59a289:_0x37a52};}}),_0x2fd498[_0x504a('0x55')][_0x504a('0x1f')](_0x504a('0x23'))['elementToElement']({'view':{'name':_0x504a('0x21'),'attributes':{'id':/^\w/}},'model':(_0xdcd0cb,{writer:_0x3e23f0})=>_0x3e23f0[_0x504a('0x5b')](_0x504a('0x39'),{'data-name':_0x504a('0x4f')+_0xdcd0cb['getAttribute']('id')})}),_0x2fd498['conversion'][_0x504a('0x1f')](_0x504a('0x23'))[_0x504a('0x46')]({'view':_0x504a('0x21')});}['_handleMarkerAddAndRemove'](){const _0x210b91=this[_0x504a('0x26')],_0x3f6741=_0x210b91['plugins'][_0x504a('0x22')](_0x4074be),_0x136fd0=new Set(),_0x378843=new Set();_0x210b91[_0x504a('0x64')]['document'][_0x504a('0x1d')](_0x5596d3=>{let _0x1871e0=!0x1;for(const {name:_0x257ac4,data:_0x2b4ad8}of _0x210b91[_0x504a('0x64')][_0x504a('0x1e')][_0x504a('0x5a')][_0x504a('0x15')]()){const {group:_0x1bddb7,id:_0x314473}=tt(_0x257ac4);let _0x457dbf=_0x2b4ad8[_0x504a('0x38')];if(_0x504a('0x21')!==_0x1bddb7||!_0x457dbf)continue;const _0x3a5ca8=_0x504a('0x3c')===_0x457dbf[_0x504a('0x3d')]['rootName'];_0x3a5ca8||(_0x457dbf=ot(_0x457dbf,_0x210b91[_0x504a('0x64')]),!_0x457dbf||_0x457dbf['isCollapsed']||!_0x2b4ad8[_0x504a('0x38')]||_0x457dbf[_0x504a('0x45')](_0x2b4ad8[_0x504a('0x38')]))?_0x210b91[_0x504a('0x64')]['hasContent'](_0x457dbf)&&!_0x3a5ca8?this[_0x504a('0x0')]?_0x136fd0['add'](_0x257ac4):this['_handleThreadMarker'](_0x257ac4,_0x314473):(_0x378843['add'](_0x257ac4),_0x136fd0[_0x504a('0x10')](_0x257ac4),_0x5596d3[_0x504a('0x66')](_0x257ac4),_0x1871e0=!0x0):(_0x5596d3[_0x504a('0x28')](_0x257ac4,{'range':_0x457dbf}),_0x1871e0=!0x0);}return _0x1871e0;}),this['on'](_0x504a('0x40'),(_0x1d4d5a,_0x2bff48,_0x1c463c)=>{if(!_0x1c463c&&_0x136fd0['size'])for(const _0x48508c of _0x136fd0){const {id:_0x5aaf1b}=tt(_0x48508c);_0x136fd0[_0x504a('0x10')](_0x48508c),_0x210b91['model']['markers'][_0x504a('0x22')](_0x48508c)&&this[_0x504a('0x3e')](_0x48508c,_0x5aaf1b);}}),this['listenTo'](_0x210b91[_0x504a('0x64')]['document'],_0x504a('0x14'),(_0x22f34b,_0xe6a057)=>{for(const {name:_0x3f5426,data:{newRange:_0x2b7e37}}of _0x210b91[_0x504a('0x64')][_0x504a('0x1e')][_0x504a('0x5a')][_0x504a('0x15')]()){const {group:_0x1211cd,id:_0x174c24}=tt(_0x3f5426);if(_0x504a('0x21')!==_0x1211cd)continue;const _0x4decad=_0x3f6741[_0x504a('0x2b')](_0x174c24),_0x47c903=this[_0x504a('0x62')](_0x174c24);_0x4decad&&(_0x4decad[_0x504a('0x6')]||_0x210b91[_0x504a('0x9')]['view'][_0x504a('0x24')](_0x504a('0x68'),()=>{const _0x184699=_0x210b91['plugins'][_0x504a('0x22')](_0x10a68d),_0x465e3b=_0x3f6741['_threadToController'][_0x504a('0x22')](_0x4decad)['view'];_0x184699[_0x504a('0x3f')](_0x465e3b)[_0x504a('0x59')]();},{'priority':_0x504a('0x54')}),_0x4decad[_0x504a('0x6')]=_0x47c903||!!_0x2b7e37),_0x2b7e37||(_0x378843['add'](_0x3f5426),_0x136fd0[_0x504a('0x10')](_0x3f5426));}if(_0xe6a057[_0x504a('0xb')])for(const _0x18242c of _0x378843){const {id:_0x13beb5}=tt(_0x18242c),_0x52e45d=_0x3f6741[_0x504a('0x2b')](_0x13beb5),_0x4ae983=this[_0x504a('0x62')](_0x13beb5);_0x136fd0[_0x504a('0x10')](_0x18242c),!_0x52e45d||_0x4ae983||_0x52e45d[_0x504a('0x1c')]||_0x52e45d[_0x504a('0x3b')](new Date());}_0x378843[_0x504a('0x5f')]();});}[_0x504a('0x6a')](_0xc5e162){const _0x45c334=this[_0x504a('0x26')],_0x271d7e=this[_0x504a('0x49')](_0xc5e162);return _0x4d8a56(_0x45c334['editing'],_0x271d7e);}[_0x504a('0x4e')](_0x146f15){const _0x43f4c9=this['getAllMarkersForId'](_0x146f15);let _0x4af06f='',_0x15655a=!0x1;for(const _0x4e18df of _0x43f4c9){const _0x50f018=_0x4e18df[_0x504a('0x6c')]();for(const _0x293c36 of Array['from'](_0x50f018[_0x504a('0x5d')]()))_0x293c36['is'](_0x504a('0x6b'))?(_0x4af06f&&_0x15655a&&(_0x4af06f+='\x20',_0x15655a=!0x1),_0x4af06f+=_0x293c36[_0x504a('0x2c')]):_0x15655a=!0x0;_0x15655a=!0x0;}return _0x4af06f[_0x504a('0x6d')](0x0,0x96);}[_0x504a('0x25')](_0x416636,_0x2f0872){const _0x5d74e7=this[_0x504a('0x26')],_0x1e3b5b=_0x5d74e7[_0x504a('0x61')]['get'](_0x4074be);let _0x9d7fd6=_0x1e3b5b[_0x504a('0x2b')](_0x2f0872);const _0x59fad6=_0x5d74e7['config']['get']('collaboration.channelId'),_0x26e10d=_0x5d74e7[_0x504a('0x61')][_0x504a('0x22')](_0x155866);if(_0x9d7fd6&&(_0x9d7fd6['unlinkedAt']&&_0x9d7fd6[_0x504a('0x3b')](null),_0x9d7fd6[_0x504a('0x1b')]))return _0x9d7fd6;return!this[_0x504a('0x49')](_0x2f0872)[0x0][_0x504a('0x4a')]?_0x5d74e7['editing'][_0x504a('0x35')][_0x504a('0x24')](_0x504a('0x68'),()=>{if(_0x1e3b5b[_0x504a('0x2b')](_0x2f0872))return;const _0x3982ac=_0x5d74e7[_0x504a('0x61')][_0x504a('0x22')](_0x10a68d);_0x9d7fd6=_0x1e3b5b[_0x504a('0x32')]({'channelId':_0x59fad6,'threadId':_0x2f0872,'target':()=>this[_0x504a('0x6a')](_0x2f0872),'context':{'type':_0x504a('0x69'),'value':this[_0x504a('0x4e')](_0x2f0872)}});const _0x1348ad=_0x1e3b5b[_0x504a('0x33')][_0x504a('0x22')](_0x9d7fd6)[_0x504a('0x35')],_0x2c1246=_0x3982ac[_0x504a('0x3f')](_0x1348ad);_0x2c1246&&_0x26e10d['registerAnnotation'](_0x2c1246);},{'priority':_0x504a('0x54')}):_0x1e3b5b['fetchCommentThread']({'channelId':_0x59fad6,'threadId':_0x2f0872})[_0x504a('0x2a')](_0x4603b2=>{if('destroyed'!==_0x5d74e7[_0x504a('0x5c')]){if(_0x9d7fd6=_0x4603b2,_0x9d7fd6&&!_0x9d7fd6[_0x504a('0x1b')]){const _0x4ac6a6=_0x9d7fd6[_0x504a('0x5e')](()=>this[_0x504a('0x6a')](_0x2f0872));_0x26e10d[_0x504a('0x37')](_0x4ac6a6),_0x9d7fd6[_0x504a('0x52')]&&this[_0x504a('0xc')](_0x2f0872);}else{if(!_0x9d7fd6){const _0x320426=this[_0x504a('0x49')](_0x2f0872);_0x5d74e7[_0x504a('0x64')][_0x504a('0x14')](_0xc7bd30=>{for(const _0x40c9d7 of _0x320426)_0xc7bd30['removeMarker'](_0x40c9d7);});}}}}),_0x9d7fd6;}[_0x504a('0x3e')](_0x5c6cb7,_0x3b98f8){const _0x15aca2=this['_attachMarkerToThread'](_0x5c6cb7,_0x3b98f8);_0x15aca2&&!_0x15aca2[_0x504a('0x63')]&&_0x15aca2[_0x504a('0x50')]({'type':_0x504a('0x69'),'value':this['_getTextContext'](_0x3b98f8)});}}function Z(_0x2c7300,_0x4e9ad9){return _0x4e9ad9?_0x2c7300+':'+_0x4e9ad9:_0x2c7300;}function tt(_0x2214e2){const _0x5e067e=_0x2214e2[_0x504a('0xe')](':');return{'group':_0x5e067e[0x0],'id':_0x5e067e[0x1],'part':_0x5e067e[0x2]};}function ot(_0x1cf1af,_0x1f4f82){const _0x282e81=_0x1f4f82[_0x504a('0x43')],_0x117360=_0x1f4f82[_0x504a('0x47')](_0x1cf1af[_0x504a('0x30')]);for(const _0x3d07fa of _0x1cf1af[_0x504a('0x60')]()){const {type:_0x59aa1e,item:_0x54de22,nextPosition:_0x32adb3}=_0x3d07fa;if(_0x504a('0x69')===_0x59aa1e||_0x282e81['isObject'](_0x54de22)){const _0x2b457f=_0x1f4f82[_0x504a('0x56')](_0x54de22);_0x117360[_0x504a('0x11')]&&(_0x117360[_0x504a('0x30')]=_0x2b457f),_0x117360['end']=_0x32adb3;}}return _0x117360;}
|