@ckeditor/ckeditor5-comments 38.2.0-alpha.0 → 38.2.0-alpha.1

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.
Files changed (85) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.d.ts +6 -6
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.d.ts +3 -3
  6. package/src/annotations/annotationcollection.js +1 -1
  7. package/src/annotations/annotations.d.ts +6 -6
  8. package/src/annotations/annotations.js +1 -1
  9. package/src/annotations/annotationsuis.d.ts +5 -5
  10. package/src/annotations/annotationsuis.js +1 -1
  11. package/src/annotations/editorannotations.d.ts +4 -4
  12. package/src/annotations/editorannotations.js +1 -1
  13. package/src/annotations/inlineannotations.d.ts +6 -6
  14. package/src/annotations/inlineannotations.js +1 -1
  15. package/src/annotations/narrowsidebar.d.ts +6 -6
  16. package/src/annotations/narrowsidebar.js +1 -1
  17. package/src/annotations/sidebar.d.ts +5 -5
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.d.ts +2 -2
  20. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  21. package/src/annotations/view/annotationview.d.ts +2 -2
  22. package/src/annotations/view/annotationview.js +1 -1
  23. package/src/annotations/view/sidebaritemview.d.ts +2 -2
  24. package/src/annotations/view/sidebaritemview.js +1 -1
  25. package/src/annotations/view/sidebarview.d.ts +2 -2
  26. package/src/annotations/view/sidebarview.js +1 -1
  27. package/src/annotations/widesidebar.d.ts +5 -5
  28. package/src/annotations/widesidebar.js +1 -1
  29. package/src/augmentation.d.ts +1 -1
  30. package/src/comments/addcommentthreadcommand.d.ts +1 -1
  31. package/src/comments/addcommentthreadcommand.js +1 -1
  32. package/src/comments/commentsarchive.d.ts +4 -4
  33. package/src/comments/commentsarchive.js +1 -1
  34. package/src/comments/commentsarchiveui.d.ts +5 -5
  35. package/src/comments/commentsarchiveui.js +1 -1
  36. package/src/comments/commentsediting.d.ts +6 -6
  37. package/src/comments/commentsediting.js +1 -1
  38. package/src/comments/commentsrepository.d.ts +11 -11
  39. package/src/comments/commentsrepository.js +1 -1
  40. package/src/comments/commentsui.d.ts +5 -5
  41. package/src/comments/commentsui.js +1 -1
  42. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
  43. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  44. package/src/comments/integrations/importword.d.ts +1 -1
  45. package/src/comments/integrations/importword.js +1 -1
  46. package/src/comments/ui/commenteditor/commenteditor.d.ts +4 -4
  47. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  48. package/src/comments/ui/commenteditor/commenteditorui.d.ts +3 -3
  49. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +3 -3
  51. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  52. package/src/comments/ui/commentthreadcontroller.d.ts +4 -4
  53. package/src/comments/ui/commentthreadcontroller.js +1 -1
  54. package/src/comments/ui/view/basecommentthreadview.d.ts +8 -8
  55. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  56. package/src/comments/ui/view/basecommentview.d.ts +4 -4
  57. package/src/comments/ui/view/basecommentview.js +1 -1
  58. package/src/comments/ui/view/collapsedcommentsview.d.ts +2 -2
  59. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  60. package/src/comments/ui/view/commentcontentview.d.ts +2 -2
  61. package/src/comments/ui/view/commentcontentview.js +1 -1
  62. package/src/comments/ui/view/commentinputview.d.ts +4 -4
  63. package/src/comments/ui/view/commentinputview.js +1 -1
  64. package/src/comments/ui/view/commentsarchiveview.d.ts +3 -3
  65. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.d.ts +5 -5
  67. package/src/comments/ui/view/commentslistview.js +1 -1
  68. package/src/comments/ui/view/commentthreadheaderview.d.ts +3 -3
  69. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  70. package/src/comments/ui/view/commentthreadinputview.d.ts +5 -5
  71. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  72. package/src/comments/ui/view/commentthreadview.d.ts +7 -7
  73. package/src/comments/ui/view/commentthreadview.js +1 -1
  74. package/src/comments/ui/view/commentview.d.ts +8 -8
  75. package/src/comments/ui/view/commentview.js +1 -1
  76. package/src/comments.d.ts +10 -10
  77. package/src/comments.js +1 -1
  78. package/src/commentsonly.d.ts +2 -2
  79. package/src/commentsonly.js +1 -1
  80. package/src/config.d.ts +7 -7
  81. package/src/index.d.ts +21 -21
  82. package/src/index.js +1 -1
  83. package/src/utils/common-translations.d.ts +1 -1
  84. package/src/utils/common-translations.js +1 -1
  85. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55c9=['newRange','reopenCommentThread','ready','change:activeMarker','addMarker:','add','has','dataDowncast','ck-comment-marker--active','for','_threads','includes','createElement','removeMarker','markerToHighlight','destroyed','addCommentThread','createPositionBefore','reconvertMarker','upcast','markers','resolve','ck-comment-marker','getCommentThread','comment:','_detachCommentThread','CommentsEditing','context','elementToElement','getByInnerView','_threadToController','isCollapsed','get','markerToData','comment','_handleMarkerAddAndRemove','editingDowncast','$marker','editor','isEqual','document','addComment','change','openNewCommentThread','switchReadOnly','editing','getWalker','render','text','end','destroy','split','rootName','conversion','commands','start','model','getRange','consumable','plugins','_getTextContext','consume','listenTo','_attachedThreads','setContext','managedUsingOperations','_reconvertMarkers','then','isThreadsLoadingPaused','low','markerName','once','isObject','_getTargetForId','focus','high','activeMarker','root','data','config','reopen','_handleThreadMarker','getItems','isLocal','createRange','getAllMarkersForId','removeCommentThread','registerPostFixer','collaboration.channelId','dataToMarker','scrollToThreadMarker','resolveCommentThread','set','from','isResolved','$textProxy','refreshVisibility','_hasTargetInContent','getAttribute','item','_attachMarkerToThread','affectsData','fetchCommentThread','view','registerAnnotation','differ','hasCommentThread','enqueueChange','getChangedMarkers','length','updateMarker','_initializeMarkerConverters','delete','schema','push'];(function(_0x58b27d,_0x55c9d6){const _0x58cdcb=function(_0x471fd6){while(--_0x471fd6){_0x58b27d['push'](_0x58b27d['shift']());}};_0x58cdcb(++_0x55c9d6);}(_0x55c9,0x1d8));const _0x58cd=function(_0x58b27d,_0x55c9d6){_0x58b27d=_0x58b27d-0x0;let _0x58cdcb=_0x55c9[_0x58b27d];return _0x58cdcb;};import{Plugin as _0x177c22}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x899b87}from'ckeditor5/src/utils';import _0x2db59e from'./commentsrepository';import _0x25bb80 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0xf74d44}from'ckeditor5-collaboration/src/collaboration-core';import _0x15bde8 from'../annotations/editorannotations';import _0x159ff7 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x502682 from'./integrations/importword';import _0x5bd54c from'../annotations/annotations';export default class r extends _0x177c22{static get['requires'](){return[_0x2db59e,_0x15bde8,_0x159ff7,_0x502682];}static get['pluginName'](){return _0x58cd('0xe');}constructor(_0x1218c4){super(_0x1218c4),this[_0x58cd('0x50')](_0x58cd('0x38'),!0x0),_0x1218c4[_0x58cd('0x42')][_0x58cd('0x3b')](_0x58cd('0x69'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x58cd('0x50')](_0x58cd('0x40'),null),this['on'](_0x58cd('0x6a'),(_0x434ac0,_0x506570,_0x20c194,_0x8306b3)=>{const _0x244470=_0x20c194?rt(_0x20c194)['id']:null;if(_0x1218c4[_0x58cd('0x2c')][_0x58cd('0x1e')](()=>{if(_0x244470){const _0x5be9f=this[_0x58cd('0x49')](_0x244470);for(const _0x52c711 of _0x5be9f)_0x1218c4[_0x58cd('0x21')][_0x58cd('0x6')](_0x52c711);}if(_0x8306b3){const {id:_0xb8ad35}=rt(_0x8306b3),_0x6620f9=this[_0x58cd('0x49')](_0xb8ad35);for(const _0x269533 of _0x6620f9)_0x1218c4[_0x58cd('0x21')][_0x58cd('0x6')](_0x269533);}}),_0x244470){const _0x1fc5e1=_0x1218c4[_0x58cd('0x2f')][_0x58cd('0x14')](_0x2db59e)[_0x58cd('0xb')](_0x244470);_0x1fc5e1&&_0x1fc5e1['isResolved']&&this[_0x58cd('0x4e')](_0x244470);}}),this[_0x58cd('0x33')]=new Map();}['init'](){const _0x5045f9=this[_0x58cd('0x1a')],_0x14de2e=_0x5045f9[_0x58cd('0x2f')][_0x58cd('0x14')](_0x2db59e),_0x48d7d6=_0x5045f9[_0x58cd('0x43')][_0x58cd('0x14')](_0x58cd('0x4c'));_0x5045f9[_0x58cd('0x2a')][_0x58cd('0x6c')](_0x58cd('0x4'),new _0x25bb80(_0x5045f9)),this['listenTo'](_0x5045f9,'change:isReadOnly',(_0x3bdc35,_0xba12ce,_0x22d369)=>{_0x14de2e[_0x58cd('0x20')](_0x22d369,_0x5045f9['config']['get']('collaboration.channelId'));}),this[_0x58cd('0x32')](_0x14de2e,et('addCommentThread',_0x48d7d6),(_0x2456d4,{threadId:_0x4445d3})=>{const _0x3eea82=_0x5045f9[_0x58cd('0x2f')][_0x58cd('0x14')](_0x15bde8),_0x19da02=this[_0x58cd('0x1a')][_0x58cd('0x2f')]['get'](_0x2db59e)[_0x58cd('0xb')](_0x4445d3);if(_0x19da02&&_0x19da02['isResolved']&&!this[_0x58cd('0x33')][_0x58cd('0x6d')](_0x4445d3)){const _0x2c2899=_0x19da02['attachTo'](()=>this[_0x58cd('0x3d')](_0x19da02['id']));_0x3eea82['registerAnnotation'](_0x2c2899),this[_0x58cd('0x33')][_0x58cd('0x50')](_0x4445d3,[]),0x0===this[_0x58cd('0x49')](_0x4445d3)[_0x58cd('0x61')]&&(_0x19da02['_hasTargetInContent']=!0x1);}}),this[_0x58cd('0x32')](_0x14de2e,et(_0x58cd('0x4a'),_0x48d7d6),(_0x45af0f,{threadId:_0x549dec})=>{_0x5045f9[_0x58cd('0x2c')][_0x58cd('0x5f')]({'isUndoable':!0x1},_0x8f1aa7=>{const _0x58c5e1=this[_0x58cd('0x49')](_0x549dec);this[_0x58cd('0x33')][_0x58cd('0x64')](_0x549dec);for(const _0x2d6928 of _0x58c5e1)_0x8f1aa7[_0x58cd('0x1')](_0x2d6928);});},{'priority':_0x58cd('0x3f')}),this[_0x58cd('0x32')](_0x14de2e,et(_0x58cd('0x4f'),_0x48d7d6),(_0x2fc10f,{threadId:_0x15fc1a})=>{this['_reconvertMarkers'](_0x15fc1a),this[_0x58cd('0x1a')][_0x58cd('0x21')]['view']['hasDomSelection']&&this[_0x58cd('0x1a')][_0x58cd('0x21')]['view'][_0x58cd('0x3e')]();},{'priority':'low'}),this['listenTo'](_0x14de2e,et(_0x58cd('0x68'),_0x48d7d6),(_0x49808a,{threadId:_0x56c52e})=>{this[_0x58cd('0x36')](_0x56c52e);},{'priority':'low'}),this[_0x58cd('0x32')](_0x14de2e,et(_0x58cd('0x1d'),_0x48d7d6),(_0x4b4e3e,{threadId:_0x36a7ed,isFromAdapter:_0x335801})=>{const _0x1605cc=this[_0x58cd('0x49')](_0x36a7ed);if(_0x335801||0x0==_0x1605cc[_0x58cd('0x61')]||!_0x14de2e[_0x58cd('0x5e')](_0x36a7ed))return;0x1===_0x14de2e[_0x58cd('0xb')](_0x36a7ed)[_0x58cd('0x61')]&&_0x5045f9['model'][_0x58cd('0x5f')]({'isUndoable':!0x1},_0x1531e9=>{for(const _0x5e4b7b of _0x1605cc)_0x1531e9[_0x58cd('0x62')](_0x5e4b7b,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x58cd('0x63')](),this[_0x58cd('0x17')]();}[_0x58cd('0x26')](){const _0x30d726=this[_0x58cd('0x1a')]['plugins']['get'](_0x2db59e),_0x531095=this['editor']['config']['get'](_0x58cd('0x4c'));for(const _0x5aab27 of _0x30d726['getCommentThreads']({'channelId':_0x531095}))_0x30d726[_0x58cd('0xd')](_0x5aab27['id']),_0x30d726[_0x58cd('0x71')]['delete'](_0x5aab27['id']);super[_0x58cd('0x26')]();}['hasMarkerForId'](_0x3aec93){return this[_0x58cd('0x49')](_0x3aec93)['length']>0x0;}[_0x58cd('0x49')](_0x1259a4){return(this[_0x58cd('0x33')]['get'](_0x1259a4)||[])['map'](_0x4ae2c1=>this['editor']['model'][_0x58cd('0x8')][_0x58cd('0x14')](_0x4ae2c1))['filter'](_0x4e20c3=>_0x4e20c3);}[_0x58cd('0x4e')](_0x3385d2){const _0x3ff9c7=this[_0x58cd('0x3d')](_0x3385d2);_0x3ff9c7&&setTimeout(()=>{this[_0x58cd('0x40')]&&rt(this['activeMarker'])['id']===_0x3385d2&&_0x899b87({'target':_0x3ff9c7[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x58cd('0x36')](_0x13c64d){this[_0x58cd('0x1a')][_0x58cd('0x2c')][_0x58cd('0x1e')](()=>{for(const _0x4182ff of this[_0x58cd('0x49')](_0x13c64d))this['editor'][_0x58cd('0x21')][_0x58cd('0x6')](_0x4182ff);});}[_0x58cd('0x63')](){const _0x14437f=this[_0x58cd('0x1a')];_0x14437f[_0x58cd('0x29')][_0x58cd('0x70')](_0x58cd('0x18'))[_0x58cd('0x2')]({'model':_0x58cd('0x16'),'view':(_0x4a2024,_0x5aec66)=>{const {id:_0x5ab757}=rt(_0x4a2024['markerName']),_0x4d4d8e=_0x14437f[_0x58cd('0x2f')][_0x58cd('0x14')](_0x2db59e)['getCommentThread'](_0x5ab757),_0x137d95=this[_0x58cd('0x40')]&&rt(this[_0x58cd('0x40')])['id']===_0x5ab757;if(_0x4d4d8e&&_0x4d4d8e[_0x58cd('0x52')]&&!_0x137d95&&_0x4a2024[_0x58cd('0x57')])return _0x5aec66[_0x58cd('0x2e')][_0x58cd('0x31')](_0x4a2024[_0x58cd('0x57')],_0x58cd('0x6b')+_0x4a2024['markerName']),_0x5aec66[_0x58cd('0x2e')][_0x58cd('0x31')](_0x4a2024['item'],'removeMarker:'+_0x4a2024[_0x58cd('0x3a')]),{'classes':[]};const _0x12b812=[_0x58cd('0xa')];return _0x137d95&&_0x12b812[_0x58cd('0x66')](_0x58cd('0x6f')),{'classes':_0x12b812,'attributes':{'data-comment':_0x5ab757}};}}),_0x14437f[_0x58cd('0x29')][_0x58cd('0x70')](_0x58cd('0x6e'))[_0x58cd('0x15')]({'model':_0x58cd('0x16'),'view':(_0x2dee76,{options:_0x23a137})=>{const _0x49751c=_0x14437f['plugins'][_0x58cd('0x14')](_0x2db59e),_0x34c3f7=_0x14437f[_0x58cd('0x2c')][_0x58cd('0x8')][_0x58cd('0x14')](_0x2dee76),{id:_0x438979,part:_0x313c80}=rt(_0x2dee76);if(_0x34c3f7&&!_0x34c3f7[_0x58cd('0x59')])return null;if(_0x23a137['ignoreResolvedComments']){const _0x4590d1=_0x49751c[_0x58cd('0xb')](_0x438979);if(_0x4590d1&&_0x4590d1[_0x58cd('0x52')])return null;}return{'group':_0x58cd('0x16'),'name':_0x313c80?_0x438979+':'+_0x313c80:_0x438979};}}),_0x14437f[_0x58cd('0x29')][_0x58cd('0x70')]('upcast')[_0x58cd('0x10')]({'view':{'name':_0x58cd('0x16'),'attributes':{'id':/^\w/}},'model':(_0x35fe09,{writer:_0x14ccf9})=>_0x14ccf9[_0x58cd('0x0')](_0x58cd('0x19'),{'data-name':_0x58cd('0xc')+_0x35fe09[_0x58cd('0x56')]('id')})}),_0x14437f[_0x58cd('0x29')][_0x58cd('0x70')](_0x58cd('0x7'))[_0x58cd('0x4d')]({'view':_0x58cd('0x16')});}[_0x58cd('0x17')](){const _0xbce1b8=this[_0x58cd('0x1a')],_0x582d32=_0xbce1b8['plugins']['get'](_0x2db59e),_0x1a2a03=new Set();_0xbce1b8[_0x58cd('0x2c')]['document'][_0x58cd('0x4b')](_0x4a6ea1=>{let _0x5af01d=!0x1;for(const {name:_0x2d3479,data:_0x53f2ca}of _0xbce1b8[_0x58cd('0x2c')][_0x58cd('0x1c')][_0x58cd('0x5d')][_0x58cd('0x60')]()){const {group:_0x40319f,id:_0x57645b}=rt(_0x2d3479);let _0x18f8d2=_0x53f2ca[_0x58cd('0x67')];if('comment'!==_0x40319f||!_0x18f8d2)continue;const _0x2dfaf8='$graveyard'===_0x18f8d2[_0x58cd('0x41')][_0x58cd('0x28')];_0x2dfaf8||(_0x18f8d2=nt(_0x18f8d2,_0xbce1b8['model']),!_0x18f8d2||!_0x53f2ca[_0x58cd('0x67')]||_0x18f8d2[_0x58cd('0x1b')](_0x53f2ca[_0x58cd('0x67')]))?!_0x18f8d2||!_0xbce1b8[_0x58cd('0x2c')]['hasContent'](_0x18f8d2)||this['_attachedThreads'][_0x58cd('0x6d')](_0x57645b)&&_0x2dfaf8?(_0x4a6ea1[_0x58cd('0x1')](_0x2d3479),_0x5af01d=!0x0):_0x2dfaf8||(this['isThreadsLoadingPaused']?_0x1a2a03[_0x58cd('0x6c')](_0x2d3479):this[_0x58cd('0x45')](_0x2d3479,_0x57645b)):(_0x4a6ea1[_0x58cd('0x62')](_0x2d3479,{'range':_0x18f8d2}),_0x5af01d=!0x0);}return _0x5af01d;}),this['on']('change:isThreadsLoadingPaused',(_0x2fd9f1,_0xb9753,_0x5130de)=>{if(!_0x5130de&&_0x1a2a03['size'])for(const _0x3771b0 of _0x1a2a03){const {id:_0x3ee234}=rt(_0x3771b0);_0x1a2a03['delete'](_0x3ee234),_0xbce1b8['model'][_0x58cd('0x8')][_0x58cd('0x14')](_0x3771b0)&&this[_0x58cd('0x45')](_0x3771b0,_0x3ee234);}}),this['listenTo'](_0xbce1b8[_0x58cd('0x2c')][_0x58cd('0x1c')],_0x58cd('0x1e'),(_0x38cbe1,_0x2c3fc1)=>{for(const {name:_0x59cc25,data:{newRange:_0x36f5c6}}of _0xbce1b8[_0x58cd('0x2c')][_0x58cd('0x1c')][_0x58cd('0x5d')][_0x58cd('0x60')]()){const {group:_0x333a7f,id:_0x4e860b}=rt(_0x59cc25);if(_0x58cd('0x16')!==_0x333a7f)continue;const _0x9bdab1=_0x582d32[_0x58cd('0xb')](_0x4e860b),_0x6da7c8=this['hasMarkerForId'](_0x4e860b);_0x9bdab1&&(_0x9bdab1[_0x58cd('0x55')]||_0xbce1b8[_0x58cd('0x21')]['view'][_0x58cd('0x3b')](_0x58cd('0x23'),()=>{const _0x1a6dbe=_0xbce1b8[_0x58cd('0x2f')]['get'](_0x5bd54c),_0x2c71c7=_0x582d32[_0x58cd('0x12')][_0x58cd('0x14')](_0x9bdab1)[_0x58cd('0x5b')];_0x1a6dbe['getByInnerView'](_0x2c71c7)[_0x58cd('0x54')]();},{'priority':_0x58cd('0x39')}),_0x9bdab1[_0x58cd('0x55')]=_0x6da7c8||!!_0x36f5c6),!_0x36f5c6&&_0x2c3fc1[_0x58cd('0x47')]&&(_0x1a2a03['delete'](_0x4e860b),_0x9bdab1&&!_0x9bdab1[_0x58cd('0x52')]&&!_0x6da7c8&&this[_0x58cd('0x33')][_0x58cd('0x6d')](_0x4e860b)&&(this[_0x58cd('0x33')]['delete'](_0x4e860b),_0x9bdab1[_0x58cd('0x9')]()));}});}[_0x58cd('0x3d')](_0x458d8b){const _0x20587a=this[_0x58cd('0x1a')],_0x28e725=this['getAllMarkersForId'](_0x458d8b);return _0xf74d44(_0x20587a['editing'],_0x28e725);}[_0x58cd('0x30')](_0x120164){const _0x12d3cb=this[_0x58cd('0x49')](_0x120164);let _0x2610e8='',_0x44fcdc=!0x1;for(const _0xe5e00e of _0x12d3cb){const _0x38683b=_0xe5e00e[_0x58cd('0x2d')]();for(const _0x1f48cd of Array[_0x58cd('0x51')](_0x38683b[_0x58cd('0x46')]()))_0x1f48cd['is'](_0x58cd('0x53'))?(_0x2610e8&&_0x44fcdc&&(_0x2610e8+='\x20',_0x44fcdc=!0x1),_0x2610e8+=_0x1f48cd[_0x58cd('0x42')]):_0x44fcdc=!0x0;_0x44fcdc=!0x0;}return _0x2610e8['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x396fec,_0x387251){const _0x48ad5e=this[_0x58cd('0x1a')],_0x197584=_0x48ad5e[_0x58cd('0x2f')][_0x58cd('0x14')](_0x2db59e);let _0x2d3974=_0x197584['getCommentThread'](_0x387251);if(this[_0x58cd('0x33')]['has'](_0x387251)){const _0x424ec3=this[_0x58cd('0x33')][_0x58cd('0x14')](_0x387251);return _0x424ec3[_0x58cd('0x72')](_0x396fec)||_0x424ec3[_0x58cd('0x66')](_0x396fec),_0x2d3974;}this['_attachedThreads'][_0x58cd('0x50')](_0x387251,[_0x396fec]);const _0x3f25d1=_0x48ad5e[_0x58cd('0x43')]['get'](_0x58cd('0x4c')),_0x5d4e64=_0x48ad5e[_0x58cd('0x2f')][_0x58cd('0x14')](_0x15bde8);if(_0x2d3974&&_0x2d3974['isResolved'])return _0x2d3974[_0x58cd('0x44')](),_0x2d3974;return!this[_0x58cd('0x49')](_0x387251)[0x0][_0x58cd('0x35')]?_0x48ad5e[_0x58cd('0x21')][_0x58cd('0x5b')][_0x58cd('0x3b')](_0x58cd('0x23'),()=>{const _0x25cdee=_0x48ad5e['plugins'][_0x58cd('0x14')](_0x5bd54c);_0x2d3974=_0x197584[_0x58cd('0x1f')]({'channelId':_0x3f25d1,'threadId':_0x387251,'target':()=>this[_0x58cd('0x3d')](_0x387251),'context':{'type':_0x58cd('0x24'),'value':this[_0x58cd('0x30')](_0x387251)}});const _0x239339=_0x197584[_0x58cd('0x12')][_0x58cd('0x14')](_0x2d3974)['view'],_0x2b2b9f=_0x25cdee[_0x58cd('0x11')](_0x239339);_0x2b2b9f&&_0x5d4e64['registerAnnotation'](_0x2b2b9f);},{'priority':'low'}):_0x197584[_0x58cd('0x5a')]({'channelId':_0x3f25d1,'threadId':_0x387251})[_0x58cd('0x37')](_0x211457=>{if(_0x58cd('0x3')!==_0x48ad5e['state']){if(_0x2d3974=_0x211457,_0x2d3974){const _0x1f5745=_0x2d3974['attachTo'](()=>this[_0x58cd('0x3d')](_0x387251));_0x5d4e64[_0x58cd('0x5c')](_0x1f5745),_0x2d3974[_0x58cd('0x52')]&&this['_reconvertMarkers'](_0x387251);}else{const _0x5db364=this[_0x58cd('0x49')](_0x387251);_0x48ad5e[_0x58cd('0x2c')][_0x58cd('0x1e')](_0x2c0efd=>{for(const _0x4ea650 of _0x5db364)_0x2c0efd[_0x58cd('0x1')](_0x4ea650);});}}}),_0x2d3974;}[_0x58cd('0x45')](_0x3fad92,_0x55ea7c){const _0x91accd=this[_0x58cd('0x58')](_0x3fad92,_0x55ea7c);_0x91accd&&!_0x91accd[_0x58cd('0xf')]&&_0x91accd[_0x58cd('0x34')]({'type':_0x58cd('0x24'),'value':this[_0x58cd('0x30')](_0x55ea7c)});}}function et(_0x3284bf,_0x1daa96){return _0x1daa96?_0x3284bf+':'+_0x1daa96:_0x3284bf;}function rt(_0x47dcd5){const _0x31accf=_0x47dcd5[_0x58cd('0x27')](':');return{'group':_0x31accf[0x0],'id':_0x31accf[0x1],'part':_0x31accf[0x2]};}function nt(_0x3f63fc,_0x2baf0e){const _0xa2fdb7=_0x2baf0e[_0x58cd('0x65')],_0x1c436f=_0x2baf0e[_0x58cd('0x48')](_0x3f63fc[_0x58cd('0x2b')]);for(const _0xec7add of _0x3f63fc[_0x58cd('0x22')]()){const {type:_0x4cdecb,item:_0x1fff85,nextPosition:_0x5afb4c}=_0xec7add;if(_0x58cd('0x24')===_0x4cdecb||_0xa2fdb7[_0x58cd('0x3c')](_0x1fff85)){const _0x5c25bb=_0x2baf0e[_0x58cd('0x5')](_0x1fff85);_0x1c436f['isCollapsed']&&(_0x1c436f['start']=_0x5c25bb),_0x1c436f[_0x58cd('0x25')]=_0x5afb4c;}}return _0x1c436f[_0x58cd('0x13')]?null:_0x1c436f;}
23
+ const _0xe2c5=['data','hasMarkerForId','state','reopenCommentThread','commands','getCommentThreads','_detachCommentThread','scrollToThreadMarker','setContext','_attachMarkerToThread','collaboration.channelId','isEqual','for','ready','getAllMarkersForId','filter','differ','isResolved','hasDomSelection','addComment','length','upcast','consumable','requires','openNewCommentThread','pluginName','schema','model','newRange','push','set','root','_handleMarkerAddAndRemove','hasContent','resolve','plugins','init','_reconvertMarkers','_attachedThreads','markerName','config','CommentsEditing','resolveCommentThread','delete','refreshVisibility','_getTargetForId','change:activeMarker','switchReadOnly','conversion','low','_threads','render','destroy','attachTo','consume','updateMarker','markerToData','_getTextContext','getByInnerView','getRange','markers','change','has','affectsData','markerToHighlight','text','_handleThreadMarker','editor','view','comment','getChangedMarkers','isCollapsed','enqueueChange','destroyed','once','context','reconvertMarker','_initializeMarkerConverters','isThreadsLoadingPaused','get','removeCommentThread','listenTo','registerAnnotation','$textProxy','$graveyard','getCommentThread','isObject','addCommentThread','item','editing','add','comment:','start','ck-comment-marker','document','includes','hasCommentThread','substring','_hasTargetInContent','activeMarker','registerPostFixer','$marker','removeMarker','createRange','getItems','elementToElement','editingDowncast','split'];(function(_0x38d6d8,_0xe2c5bd){const _0x1e7829=function(_0x303180){while(--_0x303180){_0x38d6d8['push'](_0x38d6d8['shift']());}};_0x1e7829(++_0xe2c5bd);}(_0xe2c5,0x152));const _0x1e78=function(_0x38d6d8,_0xe2c5bd){_0x38d6d8=_0x38d6d8-0x0;let _0x1e7829=_0xe2c5[_0x38d6d8];return _0x1e7829;};import{Plugin as _0x3e1f43}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x1aac91}from'ckeditor5/src/utils.js';import _0x556cac from'./commentsrepository.js';import _0x10108c from'./addcommentthreadcommand.js';import{getAllMarkersDomElementsSorted as _0x39e065}from'ckeditor5-collaboration';import _0x881bf9 from'../annotations/editorannotations.js';import _0x37c821 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x44ba76 from'./integrations/importword.js';import _0x254c7a from'../annotations/annotations.js';export default class r extends _0x3e1f43{static get[_0x1e78('0x9')](){return[_0x556cac,_0x881bf9,_0x37c821,_0x44ba76];}static get[_0x1e78('0xb')](){return _0x1e78('0x1b');}constructor(_0xc4539f){super(_0xc4539f),this['set'](_0x1e78('0x40'),!0x0),_0xc4539f[_0x1e78('0x5e')]['once'](_0x1e78('0x6b'),()=>this[_0x1e78('0x40')]=!0x1),this[_0x1e78('0x10')](_0x1e78('0x55'),null),this['on'](_0x1e78('0x20'),(_0x441c19,_0x1ab46b,_0x284609,_0x376ba1)=>{const _0xb2698=_0x284609?tt(_0x284609)['id']:null;if(_0xc4539f['model']['change'](()=>{if(_0xb2698){const _0x2c0e6d=this[_0x1e78('0x0')](_0xb2698);for(const _0x109ff4 of _0x2c0e6d)_0xc4539f[_0x1e78('0x4b')][_0x1e78('0x3e')](_0x109ff4);}if(_0x376ba1){const {id:_0x20ece8}=tt(_0x376ba1),_0x56de31=this[_0x1e78('0x0')](_0x20ece8);for(const _0xbf5fa8 of _0x56de31)_0xc4539f[_0x1e78('0x4b')][_0x1e78('0x3e')](_0xbf5fa8);}}),_0xb2698){const _0xf84625=_0xc4539f[_0x1e78('0x15')]['get'](_0x556cac)[_0x1e78('0x47')](_0xb2698);_0xf84625&&_0xf84625['isResolved']&&this[_0x1e78('0x65')](_0xb2698);}}),this[_0x1e78('0x18')]=new Map();}[_0x1e78('0x16')](){const _0x42ca47=this[_0x1e78('0x35')],_0x84b555=_0x42ca47[_0x1e78('0x15')]['get'](_0x556cac),_0x7b7bf3=_0x42ca47[_0x1e78('0x1a')][_0x1e78('0x41')](_0x1e78('0x68'));_0x42ca47[_0x1e78('0x62')][_0x1e78('0x4c')](_0x1e78('0x49'),new _0x10108c(_0x42ca47)),this[_0x1e78('0x43')](_0x42ca47,'change:isReadOnly',(_0x41d26c,_0x503ccf,_0xbf81e6)=>{_0x84b555[_0x1e78('0x21')](_0xbf81e6,_0x42ca47[_0x1e78('0x1a')][_0x1e78('0x41')](_0x1e78('0x68')));}),this[_0x1e78('0x43')](_0x84b555,Z(_0x1e78('0x49'),_0x7b7bf3),(_0x507fe0,{threadId:_0x298d08})=>{const _0x1feead=_0x42ca47[_0x1e78('0x15')]['get'](_0x881bf9),_0x2b632a=this[_0x1e78('0x35')][_0x1e78('0x15')]['get'](_0x556cac)['getCommentThread'](_0x298d08);if(_0x2b632a&&_0x2b632a[_0x1e78('0x3')]&&!this[_0x1e78('0x18')][_0x1e78('0x30')](_0x298d08)){const _0x238091=_0x2b632a[_0x1e78('0x27')](()=>this[_0x1e78('0x1f')](_0x2b632a['id']));_0x1feead['registerAnnotation'](_0x238091),this['_attachedThreads'][_0x1e78('0x10')](_0x298d08,[]),0x0===this[_0x1e78('0x0')](_0x298d08)[_0x1e78('0x6')]&&(_0x2b632a[_0x1e78('0x54')]=!0x1);}}),this[_0x1e78('0x43')](_0x84b555,Z(_0x1e78('0x42'),_0x7b7bf3),(_0x51713d,{threadId:_0x4cbacc})=>{_0x42ca47[_0x1e78('0xd')][_0x1e78('0x3a')]({'isUndoable':!0x1},_0x39e3c0=>{const _0x2697c1=this['getAllMarkersForId'](_0x4cbacc);this[_0x1e78('0x18')][_0x1e78('0x1d')](_0x4cbacc);for(const _0x132dfe of _0x2697c1)_0x39e3c0[_0x1e78('0x58')](_0x132dfe);});},{'priority':'high'}),this[_0x1e78('0x43')](_0x84b555,Z(_0x1e78('0x1c'),_0x7b7bf3),(_0x468219,{threadId:_0x39c521})=>{this[_0x1e78('0x17')](_0x39c521),this[_0x1e78('0x35')][_0x1e78('0x4b')]['view'][_0x1e78('0x4')]&&this[_0x1e78('0x35')]['editing'][_0x1e78('0x36')]['focus']();},{'priority':_0x1e78('0x23')}),this['listenTo'](_0x84b555,Z(_0x1e78('0x61'),_0x7b7bf3),(_0x3469c6,{threadId:_0x195336})=>{this[_0x1e78('0x17')](_0x195336);},{'priority':'low'}),this[_0x1e78('0x43')](_0x84b555,Z(_0x1e78('0x5'),_0x7b7bf3),(_0x19c69b,{threadId:_0x4bf61c,isFromAdapter:_0x489a29})=>{const _0x42466a=this[_0x1e78('0x0')](_0x4bf61c);if(_0x489a29||0x0==_0x42466a[_0x1e78('0x6')]||!_0x84b555[_0x1e78('0x52')](_0x4bf61c))return;0x1===_0x84b555[_0x1e78('0x47')](_0x4bf61c)['length']&&_0x42ca47['model'][_0x1e78('0x3a')]({'isUndoable':!0x1},_0x10802e=>{for(const _0x48a085 of _0x42466a)_0x10802e['updateMarker'](_0x48a085,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x1e78('0x3f')](),this['_handleMarkerAddAndRemove']();}[_0x1e78('0x26')](){const _0x2f5cd1=this[_0x1e78('0x35')]['plugins'][_0x1e78('0x41')](_0x556cac),_0x2d89c0=this[_0x1e78('0x35')][_0x1e78('0x1a')]['get'](_0x1e78('0x68'));for(const _0x419e07 of _0x2f5cd1[_0x1e78('0x63')]({'channelId':_0x2d89c0}))_0x2f5cd1[_0x1e78('0x64')](_0x419e07['id']),_0x2f5cd1[_0x1e78('0x24')][_0x1e78('0x1d')](_0x419e07['id']);super['destroy']();}[_0x1e78('0x5f')](_0x382812){return this[_0x1e78('0x0')](_0x382812)['length']>0x0;}[_0x1e78('0x0')](_0x5ad898){return(this[_0x1e78('0x18')]['get'](_0x5ad898)||[])['map'](_0x118bd1=>this[_0x1e78('0x35')]['model'][_0x1e78('0x2e')][_0x1e78('0x41')](_0x118bd1))[_0x1e78('0x1')](_0x1e003a=>_0x1e003a);}[_0x1e78('0x65')](_0x4ea8cb){const _0x48b1db=this[_0x1e78('0x1f')](_0x4ea8cb);_0x48b1db&&setTimeout(()=>{this[_0x1e78('0x55')]&&tt(this[_0x1e78('0x55')])['id']===_0x4ea8cb&&_0x1aac91({'target':_0x48b1db[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x38b763){this[_0x1e78('0x35')]['model']['change'](()=>{for(const _0x395207 of this[_0x1e78('0x0')](_0x38b763))this[_0x1e78('0x35')][_0x1e78('0x4b')][_0x1e78('0x3e')](_0x395207);});}[_0x1e78('0x3f')](){const _0x3df8a1=this[_0x1e78('0x35')];_0x3df8a1[_0x1e78('0x22')]['for'](_0x1e78('0x5c'))[_0x1e78('0x32')]({'model':_0x1e78('0x37'),'view':(_0x2868f3,_0x1930bf)=>{const {id:_0x26b001}=tt(_0x2868f3[_0x1e78('0x19')]),_0x43f61d=_0x3df8a1[_0x1e78('0x15')][_0x1e78('0x41')](_0x556cac)[_0x1e78('0x47')](_0x26b001),_0x29366e=this[_0x1e78('0x55')]&&tt(this[_0x1e78('0x55')])['id']===_0x26b001;if(_0x43f61d&&_0x43f61d[_0x1e78('0x3')]&&!_0x29366e&&_0x2868f3['item'])return _0x1930bf[_0x1e78('0x8')]['consume'](_0x2868f3[_0x1e78('0x4a')],'addMarker:'+_0x2868f3[_0x1e78('0x19')]),_0x1930bf['consumable'][_0x1e78('0x28')](_0x2868f3[_0x1e78('0x4a')],'removeMarker:'+_0x2868f3[_0x1e78('0x19')]),{'classes':[]};const _0x3ede44=[_0x1e78('0x4f')];return _0x29366e&&_0x3ede44[_0x1e78('0xf')]('ck-comment-marker--active'),{'classes':_0x3ede44,'attributes':{'data-comment':_0x26b001}};}}),_0x3df8a1[_0x1e78('0x22')][_0x1e78('0x6a')]('dataDowncast')[_0x1e78('0x2a')]({'model':_0x1e78('0x37'),'view':(_0x5d9883,{options:_0x381077})=>{const _0x53e939=_0x3df8a1[_0x1e78('0x15')]['get'](_0x556cac),_0x27480a=_0x3df8a1[_0x1e78('0xd')][_0x1e78('0x2e')][_0x1e78('0x41')](_0x5d9883),{id:_0x42d3b0,part:_0x20005f}=tt(_0x5d9883);if(_0x27480a&&!_0x27480a[_0x1e78('0x31')])return null;if(_0x381077['ignoreResolvedComments']){const _0x7de094=_0x53e939[_0x1e78('0x47')](_0x42d3b0);if(_0x7de094&&_0x7de094[_0x1e78('0x3')])return null;}return{'group':_0x1e78('0x37'),'name':_0x20005f?_0x42d3b0+':'+_0x20005f:_0x42d3b0};}}),_0x3df8a1['conversion'][_0x1e78('0x6a')]('upcast')[_0x1e78('0x5b')]({'view':{'name':_0x1e78('0x37'),'attributes':{'id':/^\w/}},'model':(_0x35d764,{writer:_0x5923fd})=>_0x5923fd['createElement'](_0x1e78('0x57'),{'data-name':_0x1e78('0x4d')+_0x35d764['getAttribute']('id')})}),_0x3df8a1[_0x1e78('0x22')]['for'](_0x1e78('0x7'))['dataToMarker']({'view':_0x1e78('0x37')});}[_0x1e78('0x12')](){const _0x1980b7=this[_0x1e78('0x35')],_0x9619b0=_0x1980b7[_0x1e78('0x15')][_0x1e78('0x41')](_0x556cac),_0x220d70=new Set();_0x1980b7['model'][_0x1e78('0x50')][_0x1e78('0x56')](_0x36924a=>{let _0xc461cf=!0x1;for(const {name:_0x2256dd,data:_0x5c4ce1}of _0x1980b7['model'][_0x1e78('0x50')]['differ'][_0x1e78('0x38')]()){const {group:_0x20fecd,id:_0x490228}=tt(_0x2256dd);let _0xe8365d=_0x5c4ce1[_0x1e78('0xe')];if(_0x1e78('0x37')!==_0x20fecd||!_0xe8365d)continue;const _0x363e06=_0x1e78('0x46')===_0xe8365d[_0x1e78('0x11')]['rootName'];_0x363e06||(_0xe8365d=ot(_0xe8365d,_0x1980b7[_0x1e78('0xd')]),!_0xe8365d||!_0x5c4ce1[_0x1e78('0xe')]||_0xe8365d[_0x1e78('0x69')](_0x5c4ce1[_0x1e78('0xe')]))?!_0xe8365d||!_0x1980b7[_0x1e78('0xd')][_0x1e78('0x13')](_0xe8365d)||this[_0x1e78('0x18')][_0x1e78('0x30')](_0x490228)&&_0x363e06?(_0x36924a['removeMarker'](_0x2256dd),_0xc461cf=!0x0):_0x363e06||(this[_0x1e78('0x40')]?_0x220d70['add'](_0x2256dd):this[_0x1e78('0x34')](_0x2256dd,_0x490228)):(_0x36924a[_0x1e78('0x29')](_0x2256dd,{'range':_0xe8365d}),_0xc461cf=!0x0);}return _0xc461cf;}),this['on']('change:isThreadsLoadingPaused',(_0x20bc58,_0x2ce83d,_0x1215ae)=>{if(!_0x1215ae&&_0x220d70['size'])for(const _0xd132bf of _0x220d70){const {id:_0x4b5932}=tt(_0xd132bf);_0x220d70[_0x1e78('0x1d')](_0x4b5932),_0x1980b7[_0x1e78('0xd')][_0x1e78('0x2e')]['get'](_0xd132bf)&&this['_handleThreadMarker'](_0xd132bf,_0x4b5932);}}),this['listenTo'](_0x1980b7[_0x1e78('0xd')][_0x1e78('0x50')],_0x1e78('0x2f'),(_0x3623bf,_0x3207e6)=>{for(const {name:_0x4e72e8,data:{newRange:_0x4d9768}}of _0x1980b7[_0x1e78('0xd')]['document'][_0x1e78('0x2')][_0x1e78('0x38')]()){const {group:_0x57f0f0,id:_0x5968ba}=tt(_0x4e72e8);if('comment'!==_0x57f0f0)continue;const _0x2c1a21=_0x9619b0[_0x1e78('0x47')](_0x5968ba),_0x2fa7ad=this[_0x1e78('0x5f')](_0x5968ba);_0x2c1a21&&(_0x2c1a21['_hasTargetInContent']||_0x1980b7[_0x1e78('0x4b')][_0x1e78('0x36')][_0x1e78('0x3c')](_0x1e78('0x25'),()=>{const _0x1b34f1=_0x1980b7[_0x1e78('0x15')][_0x1e78('0x41')](_0x254c7a),_0x41d536=_0x9619b0['_threadToController'][_0x1e78('0x41')](_0x2c1a21)[_0x1e78('0x36')];_0x1b34f1['getByInnerView'](_0x41d536)[_0x1e78('0x1e')]();},{'priority':_0x1e78('0x23')}),_0x2c1a21[_0x1e78('0x54')]=_0x2fa7ad||!!_0x4d9768),!_0x4d9768&&_0x3207e6['isLocal']&&(_0x220d70[_0x1e78('0x1d')](_0x5968ba),_0x2c1a21&&!_0x2c1a21[_0x1e78('0x3')]&&!_0x2fa7ad&&this[_0x1e78('0x18')][_0x1e78('0x30')](_0x5968ba)&&(this[_0x1e78('0x18')][_0x1e78('0x1d')](_0x5968ba),_0x2c1a21[_0x1e78('0x14')]()));}});}['_getTargetForId'](_0x526ce9){const _0x2b280d=this[_0x1e78('0x35')],_0x4aa991=this[_0x1e78('0x0')](_0x526ce9);return _0x39e065(_0x2b280d[_0x1e78('0x4b')],_0x4aa991);}[_0x1e78('0x2b')](_0x49bac5){const _0x49c65d=this[_0x1e78('0x0')](_0x49bac5);let _0x26f707='',_0x2737df=!0x1;for(const _0x1ba49a of _0x49c65d){const _0x3b8c98=_0x1ba49a[_0x1e78('0x2d')]();for(const _0x5e4b30 of Array['from'](_0x3b8c98[_0x1e78('0x5a')]()))_0x5e4b30['is'](_0x1e78('0x45'))?(_0x26f707&&_0x2737df&&(_0x26f707+='\x20',_0x2737df=!0x1),_0x26f707+=_0x5e4b30['data']):_0x2737df=!0x0;_0x2737df=!0x0;}return _0x26f707[_0x1e78('0x53')](0x0,0x96);}[_0x1e78('0x67')](_0x3469d4,_0x276454){const _0x205f09=this[_0x1e78('0x35')],_0x55083b=_0x205f09['plugins'][_0x1e78('0x41')](_0x556cac);let _0x1bbcd9=_0x55083b[_0x1e78('0x47')](_0x276454);if(this[_0x1e78('0x18')]['has'](_0x276454)){const _0x349ad8=this['_attachedThreads'][_0x1e78('0x41')](_0x276454);return _0x349ad8[_0x1e78('0x51')](_0x3469d4)||_0x349ad8[_0x1e78('0xf')](_0x3469d4),_0x1bbcd9;}this[_0x1e78('0x18')][_0x1e78('0x10')](_0x276454,[_0x3469d4]);const _0xae231e=_0x205f09[_0x1e78('0x1a')][_0x1e78('0x41')](_0x1e78('0x68')),_0x4b1385=_0x205f09['plugins'][_0x1e78('0x41')](_0x881bf9);if(_0x1bbcd9&&_0x1bbcd9[_0x1e78('0x3')])return _0x1bbcd9['reopen'](),_0x1bbcd9;return!this[_0x1e78('0x0')](_0x276454)[0x0]['managedUsingOperations']?_0x205f09[_0x1e78('0x4b')][_0x1e78('0x36')][_0x1e78('0x3c')](_0x1e78('0x25'),()=>{const _0x1f9804=_0x205f09['plugins'][_0x1e78('0x41')](_0x254c7a);_0x1bbcd9=_0x55083b[_0x1e78('0xa')]({'channelId':_0xae231e,'threadId':_0x276454,'target':()=>this['_getTargetForId'](_0x276454),'context':{'type':'text','value':this[_0x1e78('0x2b')](_0x276454)}});const _0x4a7367=_0x55083b['_threadToController']['get'](_0x1bbcd9)[_0x1e78('0x36')],_0x1fae0a=_0x1f9804[_0x1e78('0x2c')](_0x4a7367);_0x1fae0a&&_0x4b1385[_0x1e78('0x44')](_0x1fae0a);},{'priority':_0x1e78('0x23')}):_0x55083b['fetchCommentThread']({'channelId':_0xae231e,'threadId':_0x276454})['then'](_0x17edd0=>{if(_0x1e78('0x3b')!==_0x205f09[_0x1e78('0x60')]){if(_0x1bbcd9=_0x17edd0,_0x1bbcd9){const _0x55654b=_0x1bbcd9[_0x1e78('0x27')](()=>this[_0x1e78('0x1f')](_0x276454));_0x4b1385[_0x1e78('0x44')](_0x55654b),_0x1bbcd9[_0x1e78('0x3')]&&this[_0x1e78('0x17')](_0x276454);}else{const _0x583b01=this[_0x1e78('0x0')](_0x276454);_0x205f09[_0x1e78('0xd')]['change'](_0xbeaa4f=>{for(const _0x310ba3 of _0x583b01)_0xbeaa4f[_0x1e78('0x58')](_0x310ba3);});}}}),_0x1bbcd9;}['_handleThreadMarker'](_0x35815e,_0x16f09f){const _0x259a5f=this['_attachMarkerToThread'](_0x35815e,_0x16f09f);_0x259a5f&&!_0x259a5f[_0x1e78('0x3d')]&&_0x259a5f[_0x1e78('0x66')]({'type':_0x1e78('0x33'),'value':this['_getTextContext'](_0x16f09f)});}}function Z(_0x4dc7cc,_0x5ba79b){return _0x5ba79b?_0x4dc7cc+':'+_0x5ba79b:_0x4dc7cc;}function tt(_0x4b6186){const _0x31ebd4=_0x4b6186[_0x1e78('0x5d')](':');return{'group':_0x31ebd4[0x0],'id':_0x31ebd4[0x1],'part':_0x31ebd4[0x2]};}function ot(_0x1bd58a,_0x515253){const _0x58781b=_0x515253[_0x1e78('0xc')],_0x33a499=_0x515253[_0x1e78('0x59')](_0x1bd58a[_0x1e78('0x4e')]);for(const _0x5361cc of _0x1bd58a['getWalker']()){const {type:_0x16a484,item:_0x316952,nextPosition:_0x212bb1}=_0x5361cc;if(_0x1e78('0x33')===_0x16a484||_0x58781b[_0x1e78('0x48')](_0x316952)){const _0x435d0f=_0x515253['createPositionBefore'](_0x316952);_0x33a499[_0x1e78('0x39')]&&(_0x33a499[_0x1e78('0x4e')]=_0x435d0f),_0x33a499['end']=_0x212bb1;}}return _0x33a499[_0x1e78('0x39')]?null:_0x33a499;}
@@ -2,16 +2,16 @@
2
2
  * @module comments/comments/commentsrepository
3
3
  * @publicApi
4
4
  */
5
- import { Context, PendingActions, ContextPlugin, type Editor } from 'ckeditor5/src/core';
6
- import { Collection } from 'ckeditor5/src/utils';
7
- import { Users, type User } from 'ckeditor5-collaboration/src/collaboration-core';
8
- import CommentThreadController from './ui/commentthreadcontroller';
5
+ import { Context, PendingActions, ContextPlugin, Editor } from 'ckeditor5/src/core.js';
6
+ import { Collection } from 'ckeditor5/src/utils.js';
7
+ import { Users, type User } from 'ckeditor5-collaboration';
8
+ import CommentThreadController from './ui/commentthreadcontroller.js';
9
9
  import '../../theme/comment.css';
10
10
  import '../../theme/commentthread.css';
11
11
  import '../../theme/commentinput.css';
12
- import Annotation, { type AnnotationTarget } from '../annotations/annotation';
13
- import Annotations from '../annotations/annotations';
14
- import type BaseCommentThreadView from './ui/view/basecommentthreadview';
12
+ import Annotation, { type AnnotationTarget } from '../annotations/annotation.js';
13
+ import Annotations from '../annotations/annotations.js';
14
+ import type BaseCommentThreadView from './ui/view/basecommentthreadview.js';
15
15
  /**
16
16
  * Stores the list of {@link module:comments/comments/commentsrepository~CommentThread}
17
17
  * and provides event-driven API for managing them. It is also responsible for using the comments adapter
@@ -258,8 +258,8 @@ interface CommentPermissionsConfig {
258
258
  resolve: boolean;
259
259
  }
260
260
  declare const CommentThread_base: {
261
- new (): import("ckeditor5/src/utils").Observable;
262
- prototype: import("ckeditor5/src/utils").Observable;
261
+ new (): import("ckeditor5/src/utils.js").Observable;
262
+ prototype: import("ckeditor5/src/utils.js").Observable;
263
263
  };
264
264
  /**
265
265
  * Comment thread representation.
@@ -448,8 +448,8 @@ export declare class CommentThread extends CommentThread_base {
448
448
  toJSON(): CommentThreadDataJSON;
449
449
  }
450
450
  declare const Comment_base: {
451
- new (): import("ckeditor5/src/utils").Observable;
452
- prototype: import("ckeditor5/src/utils").Observable;
451
+ new (): import("ckeditor5/src/utils.js").Observable;
452
+ prototype: import("ckeditor5/src/utils.js").Observable;
453
453
  };
454
454
  /**
455
455
  * Single comment representation. A part of a {@link module:comments/comments/commentsrepository~CommentThread commentThread}.