@ckeditor/ckeditor5-comments 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231217.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.
Files changed (85) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +4 -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 +3 -3
  81. package/src/index.d.ts +20 -20
  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 _0x4d23=['isAttached','render','attachTo','comments','hasDomSelection','switchReadOnly','isThreadsLoadingPaused','_hasTargetInContent','change:activeMarker','get','comment','join','resolveCommentThread','destroyed','end','removeMarker','markerName','model','isResolved','isEqual','set','updateMarker','getItems','consume','listenTo','config','change:isReadOnly','$graveyard','reconvertMarker','getRange','addComment','low','locale','_detachCommentThread','for','upcast','fetchCommentThread','_handleThreadMarker','ignoreResolvedComments','_threads','add','startsWith','destroy','ariaLiveAnnouncer','requires','split','CommentsEditing','dataToMarker','differ','newRange','$marker','consumable','delete','getAllMarkersForId','substring','setUnlinkedAt','focus','refreshVisibility','from','getChangedMarkers','push','context','rootName','text','change','start','openNewCommentThread','then','announce','collaboration.channelId','length','hasMarkerForId','comment:','item','clear','isObject','_getTextContext','unlinkedAt','_reconvertMarkers','LEAVE_COMMENT_ANNOUNCEMENT','createPositionBefore','ENTER_COMMENT_ANNOUNCEMENT','_attachMarkerToThread','state','isLocal','isCollapsed','conversion','_attachResolvedThread','markers','_handleMarkerAddAndRemove','ck-comment-marker','getWalker','pluginName','once','document','view','_initializeMarkerConverters','removeCommentThread','group','archivedAt','_threadToController','getCommentThread','_getTargetForId','elementToElement','_initAriaMarkerChangeAnnouncements','registerAnnotation','plugins','managedUsingOperations','enqueueChange','scrollToThreadMarker','root','addCommentThread','getByInnerView','markerToHighlight','editing','activeMarker','removeMarker:','data','ck-comment-marker--active','$textProxy','hasContent','editingDowncast','editor'];(function(_0x3ea14b,_0x4d2339){const _0xdf3cd4=function(_0x5565b4){while(--_0x5565b4){_0x3ea14b['push'](_0x3ea14b['shift']());}};_0xdf3cd4(++_0x4d2339);}(_0x4d23,0x16b));const _0xdf3c=function(_0x3ea14b,_0x4d2339){_0x3ea14b=_0x3ea14b-0x0;let _0xdf3cd4=_0x4d23[_0x3ea14b];return _0xdf3cd4;};import{Plugin as _0x8bed33}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x143497}from'ckeditor5/src/utils';import _0x16f6b8 from'./commentsrepository';import _0x5480d6 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x23ac96,getAllMarkersDomElementsSorted as _0xba469e}from'ckeditor5-collaboration/src/collaboration-core';import _0x23f654 from'../annotations/editorannotations';import _0x277c8b from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x43415f from'./integrations/importword';import _0x596f25 from'../annotations/annotations';import{getTranslation as _0x192934}from'../utils/common-translations';export default class r extends _0x8bed33{static get[_0xdf3c('0x32')](){return[_0x16f6b8,_0x23f654,_0x277c8b,_0x43415f];}static get[_0xdf3c('0x62')](){return _0xdf3c('0x34');}constructor(_0x4d86e3){super(_0x4d86e3),this[_0xdf3c('0x1a')](_0xdf3c('0xc'),!0x0),_0x4d86e3['data'][_0xdf3c('0x63')]('ready',()=>this[_0xdf3c('0xc')]=!0x1),this['set']('activeMarker',null),this['on'](_0xdf3c('0xe'),(_0x37089a,_0x5c65e8,_0x2ede5b,_0x5d18ba)=>{const _0x6577ca=_0x2ede5b?ot(_0x2ede5b)['id']:null;if(_0x4d86e3['model'][_0xdf3c('0x46')](()=>{if(_0x6577ca){const _0x371a47=this[_0xdf3c('0x3b')](_0x6577ca);for(const _0x3536eb of _0x371a47)_0x4d86e3['editing'][_0xdf3c('0x22')](_0x3536eb);}if(_0x5d18ba){const {id:_0x375d6a}=ot(_0x5d18ba),_0xd96c3d=this['getAllMarkersForId'](_0x375d6a);for(const _0x49c2f5 of _0xd96c3d)_0x4d86e3[_0xdf3c('0x78')][_0xdf3c('0x22')](_0x49c2f5);}}),_0x6577ca){const _0x280af0=_0x4d86e3[_0xdf3c('0x70')][_0xdf3c('0xf')](_0x16f6b8)['getCommentThread'](_0x6577ca);_0x280af0&&_0x280af0[_0xdf3c('0x18')]&&this[_0xdf3c('0x73')](_0x6577ca);}}),this[_0xdf3c('0x6e')]();}['init'](){const _0x294ee2=this[_0xdf3c('0x5')],_0x47ec4f=_0x294ee2['plugins'][_0xdf3c('0xf')](_0x16f6b8),_0xdcf58a=_0x294ee2[_0xdf3c('0x1f')]['get'](_0xdf3c('0x4b'));_0x294ee2['commands']['add'](_0xdf3c('0x75'),new _0x5480d6(_0x294ee2)),this[_0xdf3c('0x1e')](_0x294ee2,_0xdf3c('0x20'),(_0x37a62e,_0x223fe6,_0x2b81b5)=>{_0x47ec4f[_0xdf3c('0xb')](_0x2b81b5,_0x294ee2['config'][_0xdf3c('0xf')]('collaboration.channelId'));}),this[_0xdf3c('0x1e')](_0x47ec4f,tt(_0xdf3c('0x75'),_0xdcf58a),(_0x3a7dd1,{threadId:_0x633331})=>{const _0x592f81=this['editor'][_0xdf3c('0x70')][_0xdf3c('0xf')](_0x16f6b8)['getCommentThread'](_0x633331);_0x592f81&&_0x592f81[_0xdf3c('0x69')]&&this['_attachResolvedThread'](_0x633331);}),this[_0xdf3c('0x1e')](_0x47ec4f,tt(_0xdf3c('0x67'),_0xdcf58a),(_0x3ea859,{threadId:_0xe88ff0})=>{_0x294ee2['model'][_0xdf3c('0x72')]({'isUndoable':!0x1},_0x6c03e9=>{const _0x4ab6f5=this['getAllMarkersForId'](_0xe88ff0);for(const _0x2cea11 of _0x4ab6f5)_0x6c03e9[_0xdf3c('0x15')](_0x2cea11);});}),this[_0xdf3c('0x1e')](_0x47ec4f,tt(_0xdf3c('0x12'),_0xdcf58a),(_0x2535ef,{threadId:_0x4f1a4a})=>{(this['_attachResolvedThread'](_0x4f1a4a),this['_reconvertMarkers'](_0x4f1a4a),this[_0xdf3c('0x5')][_0xdf3c('0x78')][_0xdf3c('0x65')][_0xdf3c('0xa')])&&(this[_0xdf3c('0x5')]['plugins'][_0xdf3c('0xf')](_0x16f6b8)['getCommentThread'](_0x4f1a4a)[_0xdf3c('0x53')]||this[_0xdf3c('0x5')][_0xdf3c('0x78')][_0xdf3c('0x65')][_0xdf3c('0x3e')]());},{'priority':_0xdf3c('0x25')}),this[_0xdf3c('0x1e')](_0x47ec4f,tt('reopenCommentThread',_0xdcf58a),(_0x43cf74,{threadId:_0x33317b})=>{this['_reconvertMarkers'](_0x33317b);},{'priority':'low'}),this[_0xdf3c('0x1e')](_0x47ec4f,tt(_0xdf3c('0x24'),_0xdcf58a),(_0xe69680,{threadId:_0x2dc889,isFromAdapter:_0x337566})=>{const _0x4b6853=this['getAllMarkersForId'](_0x2dc889);if(_0x337566||0x0==_0x4b6853[_0xdf3c('0x4c')]||!_0x47ec4f['hasCommentThread'](_0x2dc889))return;0x1===_0x47ec4f[_0xdf3c('0x6b')](_0x2dc889)['length']&&_0x294ee2[_0xdf3c('0x17')][_0xdf3c('0x72')]({'isUndoable':!0x1},_0xcb454e=>{for(const _0x38b25c of _0x4b6853)_0xcb454e[_0xdf3c('0x1b')](_0x38b25c,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0xdf3c('0x25')}),this[_0xdf3c('0x66')](),this['_handleMarkerAddAndRemove']();}[_0xdf3c('0x30')](){const _0x160e7b=this['editor'][_0xdf3c('0x70')][_0xdf3c('0xf')](_0x16f6b8),_0x3ad05f=this['editor'][_0xdf3c('0x1f')]['get'](_0xdf3c('0x4b'));for(const _0x1d281f of _0x160e7b['getCommentThreads']({'channelId':_0x3ad05f}))_0x160e7b[_0xdf3c('0x27')](_0x1d281f['id']),_0x160e7b[_0xdf3c('0x2d')][_0xdf3c('0x3a')](_0x1d281f['id']);super[_0xdf3c('0x30')]();}[_0xdf3c('0x4d')](_0x526802){return this[_0xdf3c('0x3b')](_0x526802)['length']>0x0;}[_0xdf3c('0x3b')](_0x50217d){const _0x17f22f=[];for(const _0x268ba1 of this[_0xdf3c('0x5')]['model']['markers'])_0x268ba1['name'][_0xdf3c('0x2f')](_0xdf3c('0x4e')+_0x50217d)&&_0x17f22f[_0xdf3c('0x42')](_0x268ba1);return _0x17f22f;}['scrollToThreadMarker'](_0x5c9945){const _0x2b6778=this[_0xdf3c('0x6c')](_0x5c9945);_0x2b6778&&setTimeout(()=>{this[_0xdf3c('0x79')]&&ot(this[_0xdf3c('0x79')])['id']===_0x5c9945&&_0x143497({'target':_0x2b6778[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0xdf3c('0x54')](_0x3da856){this[_0xdf3c('0x5')][_0xdf3c('0x17')][_0xdf3c('0x46')](()=>{for(const _0x5712a3 of this[_0xdf3c('0x3b')](_0x3da856))this['editor'][_0xdf3c('0x78')][_0xdf3c('0x22')](_0x5712a3);});}[_0xdf3c('0x5d')](_0x22d739){const _0x58cbd1=this['editor'][_0xdf3c('0x70')]['get'](_0x16f6b8),_0x59d6ed=this['editor'][_0xdf3c('0x70')][_0xdf3c('0xf')](_0x23f654),_0x3a2416=_0x58cbd1['getCommentThread'](_0x22d739);if(!_0x3a2416[_0xdf3c('0x6')]){const _0xbb06d8=_0x3a2416[_0xdf3c('0x8')](()=>this[_0xdf3c('0x6c')](_0x3a2416['id']));_0x59d6ed[_0xdf3c('0x6f')](_0xbb06d8),_0x3a2416[_0xdf3c('0xd')]=!0x1;}}[_0xdf3c('0x66')](){const _0x480ec3=this[_0xdf3c('0x5')];_0x480ec3[_0xdf3c('0x5c')]['for'](_0xdf3c('0x4'))[_0xdf3c('0x77')]({'model':_0xdf3c('0x10'),'view':(_0x46a136,_0xf41822)=>{const {id:_0x3216b3}=ot(_0x46a136[_0xdf3c('0x16')]),_0x307403=_0x480ec3[_0xdf3c('0x70')]['get'](_0x16f6b8)[_0xdf3c('0x6b')](_0x3216b3),_0x51abb1=this['activeMarker']&&ot(this[_0xdf3c('0x79')])['id']===_0x3216b3;if(_0x307403&&_0x307403['isResolved']&&!_0x51abb1&&_0x46a136[_0xdf3c('0x4f')])return _0xf41822['consumable'][_0xdf3c('0x1d')](_0x46a136['item'],'addMarker:'+_0x46a136['markerName']),_0xf41822[_0xdf3c('0x39')][_0xdf3c('0x1d')](_0x46a136[_0xdf3c('0x4f')],_0xdf3c('0x7a')+_0x46a136['markerName']),{'classes':[]};const _0x48c469=[_0xdf3c('0x60')];return _0x51abb1&&_0x48c469['push'](_0xdf3c('0x1')),{'classes':_0x48c469,'attributes':{'data-comment':_0x3216b3}};}}),_0x480ec3[_0xdf3c('0x5c')]['for']('dataDowncast')['markerToData']({'model':_0xdf3c('0x10'),'view':(_0x28d62e,{options:_0x3eb296})=>{const _0x3a769b=_0x480ec3[_0xdf3c('0x70')][_0xdf3c('0xf')](_0x16f6b8),_0x261634=_0x480ec3[_0xdf3c('0x17')]['markers'][_0xdf3c('0xf')](_0x28d62e),{id:_0xd408db,part:_0x4316a2}=ot(_0x28d62e);if(_0x261634&&!_0x261634['affectsData'])return null;if(_0x3eb296[_0xdf3c('0x2c')]){const _0x5b54cc=_0x3a769b['getCommentThread'](_0xd408db);if(_0x5b54cc&&_0x5b54cc[_0xdf3c('0x18')])return null;}return{'group':'comment','name':_0x4316a2?_0xd408db+':'+_0x4316a2:_0xd408db};}}),_0x480ec3[_0xdf3c('0x5c')][_0xdf3c('0x28')]('upcast')[_0xdf3c('0x6d')]({'view':{'name':_0xdf3c('0x10'),'attributes':{'id':/^\w/}},'model':(_0x2849c3,{writer:_0x365b5d})=>_0x365b5d['createElement'](_0xdf3c('0x38'),{'data-name':_0xdf3c('0x4e')+_0x2849c3['getAttribute']('id')})}),_0x480ec3[_0xdf3c('0x5c')][_0xdf3c('0x28')](_0xdf3c('0x29'))[_0xdf3c('0x35')]({'view':'comment'});}[_0xdf3c('0x5f')](){const _0x513634=this[_0xdf3c('0x5')],_0x30f9d2=_0x513634[_0xdf3c('0x70')][_0xdf3c('0xf')](_0x16f6b8),_0x32db88=new Set(),_0x5c8f83=new Set();_0x513634[_0xdf3c('0x17')][_0xdf3c('0x64')]['registerPostFixer'](_0x29adb1=>{let _0x37b9d4=!0x1;for(const {name:_0x5e637d,data:_0x16b116}of _0x513634[_0xdf3c('0x17')]['document'][_0xdf3c('0x36')][_0xdf3c('0x41')]()){const {group:_0x59d815,id:_0x51a4f6}=ot(_0x5e637d);let _0x447055=_0x16b116[_0xdf3c('0x37')];if(_0xdf3c('0x10')!==_0x59d815||!_0x447055)continue;const _0x49c7a7=_0xdf3c('0x21')===_0x447055[_0xdf3c('0x74')][_0xdf3c('0x44')];_0x49c7a7||(_0x447055=et(_0x447055,_0x513634[_0xdf3c('0x17')]),!_0x447055||_0x447055[_0xdf3c('0x5b')]||!_0x16b116[_0xdf3c('0x37')]||_0x447055[_0xdf3c('0x19')](_0x16b116[_0xdf3c('0x37')]))?_0x513634[_0xdf3c('0x17')][_0xdf3c('0x3')](_0x447055)&&!_0x49c7a7?this['isThreadsLoadingPaused']?_0x32db88[_0xdf3c('0x2e')](_0x5e637d):this['_handleThreadMarker'](_0x5e637d,_0x51a4f6):(_0x5c8f83[_0xdf3c('0x2e')](_0x5e637d),_0x32db88[_0xdf3c('0x3a')](_0x5e637d),_0x29adb1[_0xdf3c('0x15')](_0x5e637d),_0x37b9d4=!0x0):(_0x29adb1[_0xdf3c('0x1b')](_0x5e637d,{'range':_0x447055}),_0x37b9d4=!0x0);}return _0x37b9d4;}),this['on']('change:isThreadsLoadingPaused',(_0x14a739,_0x274ce6,_0xd05a03)=>{if(!_0xd05a03&&_0x32db88['size'])for(const _0x223213 of _0x32db88){const {id:_0x30f85b}=ot(_0x223213);_0x32db88['delete'](_0x223213),_0x513634[_0xdf3c('0x17')][_0xdf3c('0x5e')][_0xdf3c('0xf')](_0x223213)&&this[_0xdf3c('0x2b')](_0x223213,_0x30f85b);}}),this[_0xdf3c('0x1e')](_0x513634[_0xdf3c('0x17')][_0xdf3c('0x64')],_0xdf3c('0x46'),(_0x51d915,_0x503270)=>{for(const {name:_0xc4b038,data:{newRange:_0x22f39f}}of _0x513634['model'][_0xdf3c('0x64')][_0xdf3c('0x36')][_0xdf3c('0x41')]()){const {group:_0x504e6c,id:_0x2c6624}=ot(_0xc4b038);if('comment'!==_0x504e6c)continue;const _0x5235ce=_0x30f9d2[_0xdf3c('0x6b')](_0x2c6624),_0x231748=this[_0xdf3c('0x4d')](_0x2c6624);_0x5235ce&&(_0x5235ce[_0xdf3c('0xd')]||_0x513634['editing'][_0xdf3c('0x65')][_0xdf3c('0x63')](_0xdf3c('0x7'),()=>{const _0x40f0ea=_0x513634[_0xdf3c('0x70')][_0xdf3c('0xf')](_0x596f25),_0x2a2a3d=_0x30f9d2[_0xdf3c('0x6a')][_0xdf3c('0xf')](_0x5235ce)['view'];_0x40f0ea[_0xdf3c('0x76')](_0x2a2a3d)[_0xdf3c('0x3f')]();},{'priority':'low'}),_0x5235ce['_hasTargetInContent']=_0x231748||!!_0x22f39f),_0x22f39f||(_0x5c8f83[_0xdf3c('0x2e')](_0xc4b038),_0x32db88[_0xdf3c('0x3a')](_0xc4b038));}if(_0x503270[_0xdf3c('0x5a')])for(const _0x5e8ed6 of _0x5c8f83){const {id:_0x2d9043}=ot(_0x5e8ed6),_0x607bd6=_0x30f9d2[_0xdf3c('0x6b')](_0x2d9043),_0xf33755=this[_0xdf3c('0x4d')](_0x2d9043);_0x32db88[_0xdf3c('0x3a')](_0x5e8ed6),!_0x607bd6||_0xf33755||_0x607bd6[_0xdf3c('0x53')]||_0x607bd6[_0xdf3c('0x3d')](new Date());}_0x5c8f83[_0xdf3c('0x50')]();});}[_0xdf3c('0x6c')](_0x521381){const _0x53ca13=this[_0xdf3c('0x5')],_0x215e9a=this[_0xdf3c('0x3b')](_0x521381);return _0xba469e(_0x53ca13[_0xdf3c('0x78')],_0x215e9a);}[_0xdf3c('0x52')](_0xc594fa){const _0x138e74=this[_0xdf3c('0x3b')](_0xc594fa);let _0x53e8f4='',_0x816b11=!0x1;for(const _0x51ce0e of _0x138e74){const _0x45ff23=_0x51ce0e[_0xdf3c('0x23')]();for(const _0x1a54f5 of Array[_0xdf3c('0x40')](_0x45ff23[_0xdf3c('0x1c')]()))_0x1a54f5['is'](_0xdf3c('0x2'))?(_0x53e8f4&&_0x816b11&&(_0x53e8f4+='\x20',_0x816b11=!0x1),_0x53e8f4+=_0x1a54f5[_0xdf3c('0x0')]):_0x816b11=!0x0;_0x816b11=!0x0;}return _0x53e8f4[_0xdf3c('0x3c')](0x0,0x96);}[_0xdf3c('0x58')](_0x565904,_0x3160b0){const _0x210b27=this[_0xdf3c('0x5')],_0x4f5734=_0x210b27[_0xdf3c('0x70')][_0xdf3c('0xf')](_0x16f6b8);let _0x25c04c=_0x4f5734[_0xdf3c('0x6b')](_0x3160b0);const _0x3ceb0d=_0x210b27['config'][_0xdf3c('0xf')]('collaboration.channelId'),_0x46c3d7=_0x210b27[_0xdf3c('0x70')][_0xdf3c('0xf')](_0x23f654);if(_0x25c04c&&(_0x25c04c['unlinkedAt']&&_0x25c04c[_0xdf3c('0x3d')](null),_0x25c04c[_0xdf3c('0x6')]))return _0x25c04c;return!this[_0xdf3c('0x3b')](_0x3160b0)[0x0][_0xdf3c('0x71')]?_0x210b27[_0xdf3c('0x78')][_0xdf3c('0x65')][_0xdf3c('0x63')](_0xdf3c('0x7'),()=>{if(_0x4f5734[_0xdf3c('0x6b')](_0x3160b0))return;const _0x47d33c=_0x210b27[_0xdf3c('0x70')]['get'](_0x596f25);_0x25c04c=_0x4f5734[_0xdf3c('0x48')]({'channelId':_0x3ceb0d,'threadId':_0x3160b0,'target':()=>this[_0xdf3c('0x6c')](_0x3160b0),'context':{'type':'text','value':this[_0xdf3c('0x52')](_0x3160b0)}});const _0x395890=_0x4f5734[_0xdf3c('0x6a')]['get'](_0x25c04c)[_0xdf3c('0x65')],_0x4315f9=_0x47d33c[_0xdf3c('0x76')](_0x395890);_0x4315f9&&_0x46c3d7[_0xdf3c('0x6f')](_0x4315f9);},{'priority':'low'}):_0x4f5734[_0xdf3c('0x2a')]({'channelId':_0x3ceb0d,'threadId':_0x3160b0})[_0xdf3c('0x49')](_0x5c8605=>{if(_0xdf3c('0x13')!==_0x210b27[_0xdf3c('0x59')]){if(_0x25c04c=_0x5c8605,_0x25c04c&&!_0x25c04c[_0xdf3c('0x6')]){const _0xa123be=_0x25c04c[_0xdf3c('0x8')](()=>this[_0xdf3c('0x6c')](_0x3160b0));_0x46c3d7[_0xdf3c('0x6f')](_0xa123be),_0x25c04c['isResolved']&&this['_reconvertMarkers'](_0x3160b0);}else{if(!_0x25c04c){const _0x35cdff=this['getAllMarkersForId'](_0x3160b0);_0x210b27[_0xdf3c('0x17')][_0xdf3c('0x46')](_0x195d4e=>{for(const _0x3bb370 of _0x35cdff)_0x195d4e[_0xdf3c('0x15')](_0x3bb370);});}}}}),_0x25c04c;}[_0xdf3c('0x2b')](_0x57b4df,_0x425c65){const _0x498e02=this['_attachMarkerToThread'](_0x57b4df,_0x425c65);_0x498e02&&!_0x498e02[_0xdf3c('0x43')]&&_0x498e02['setContext']({'type':_0xdf3c('0x45'),'value':this[_0xdf3c('0x52')](_0x425c65)});}['_initAriaMarkerChangeAnnouncements'](){const _0x135ed9=this[_0xdf3c('0x5')];_0x23ac96(_0x135ed9[_0xdf3c('0x17')],({left:_0x44685e,entered:_0x121704})=>{const _0x492413=[];for(const _0x13e9c1 of _0x44685e)if(rt(_0x13e9c1)){_0x492413[_0xdf3c('0x42')](_0x192934(_0x135ed9['locale'],_0xdf3c('0x55')));break;}for(const _0x1689d6 of _0x121704)if(rt(_0x1689d6)){_0x492413['push'](_0x192934(_0x135ed9[_0xdf3c('0x26')],_0xdf3c('0x57')));break;}_0x492413[_0xdf3c('0x4c')]&&_0x135ed9['ui'][_0xdf3c('0x31')][_0xdf3c('0x4a')](_0xdf3c('0x9'),_0x492413[_0xdf3c('0x11')]('\x20'));});}}function tt(_0x2cfd88,_0x47c55b){return _0x47c55b?_0x2cfd88+':'+_0x47c55b:_0x2cfd88;}function ot(_0xd4de76){const _0x17f56d=_0xd4de76[_0xdf3c('0x33')](':');return{'group':_0x17f56d[0x0],'id':_0x17f56d[0x1],'part':_0x17f56d[0x2]};}function et(_0x31703e,_0x599841){const _0x2dc4ef=_0x599841['schema'],_0x43da55=_0x599841['createRange'](_0x31703e['start']);for(const _0x13f9ed of _0x31703e[_0xdf3c('0x61')]()){const {type:_0x12709,item:_0x244690,nextPosition:_0x27fea7}=_0x13f9ed;if(_0xdf3c('0x45')===_0x12709||_0x2dc4ef[_0xdf3c('0x51')](_0x244690)){const _0x42b1ad=_0x599841[_0xdf3c('0x56')](_0x244690);_0x43da55[_0xdf3c('0x5b')]&&(_0x43da55[_0xdf3c('0x47')]=_0x42b1ad),_0x43da55[_0xdf3c('0x14')]=_0x27fea7;}}return _0x43da55;}function rt(_0xdb9cae){return'comment'===ot(_0xdb9cae['name'])[_0xdf3c('0x68')];}
23
+ const _0x2da2=['data','markers','openNewCommentThread','$graveyard','change:isThreadsLoadingPaused','ready','commands','editing','_handleMarkerAddAndRemove','_initAriaMarkerChangeAnnouncements','upcast','isThreadsLoadingPaused','ck-comment-marker','for','newRange','removeCommentThread','state','change:isReadOnly','start','size','getWalker','isCollapsed','registerPostFixer','getAttribute','requires','managedUsingOperations','then','join','registerAnnotation','unlinkedAt','change:activeMarker','editor','_detachCommentThread','LEAVE_COMMENT_ANNOUNCEMENT','addMarker:','ignoreResolvedComments','focus','isLocal','item','removeMarker','from','editingDowncast','setUnlinkedAt','getAllMarkersForId','schema','pluginName','destroy','addComment','root','scrollToThreadMarker','markerToHighlight','hasDomSelection','isResolved','_attachResolvedThread','destroyed','elementToElement','$textProxy','resolveCommentThread','consume','document','ENTER_COMMENT_ANNOUNCEMENT','consumable','clear','removeMarker:','getCommentThread','CommentsEditing','createElement','conversion','_handleThreadMarker','change','getByInnerView','_hasTargetInContent','reopenCommentThread','render','low','length','text','reconvertMarker','announce','refreshVisibility','markerName','get','archivedAt','context','differ','$marker','ck-comment-marker--active','markerToData','init','add','once','hasContent','comment:','_threads','fetchCommentThread','_threadToController','view','model','set','_reconvertMarkers','name','comment','collaboration.channelId','end','comments','push','_getTextContext','attachTo','_getTargetForId','isObject','createRange','delete','switchReadOnly','config','dataToMarker','listenTo','substring','isEqual','activeMarker','startsWith','plugins','getChangedMarkers','hasMarkerForId','isAttached','group','affectsData','updateMarker','_initializeMarkerConverters'];(function(_0x30d665,_0x2da268){const _0x2ab7cf=function(_0x44b755){while(--_0x44b755){_0x30d665['push'](_0x30d665['shift']());}};_0x2ab7cf(++_0x2da268);}(_0x2da2,0x131));const _0x2ab7=function(_0x30d665,_0x2da268){_0x30d665=_0x30d665-0x0;let _0x2ab7cf=_0x2da2[_0x30d665];return _0x2ab7cf;};import{Plugin as _0x4fff33}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x1c7a0f}from'ckeditor5/src/utils.js';import _0x31a553 from'./commentsrepository.js';import _0x22ee02 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x2e7497,getAllMarkersDomElementsSorted as _0x411292}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x118948 from'../annotations/editorannotations.js';import _0x2122b7 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x1bf02e from'./integrations/importword.js';import _0x370361 from'../annotations/annotations.js';import{getTranslation as _0x4409ff}from'../utils/common-translations.js';export default class r extends _0x4fff33{static get[_0x2ab7('0x67')](){return[_0x31a553,_0x118948,_0x2122b7,_0x1bf02e];}static get[_0x2ab7('0x7c')](){return _0x2ab7('0x10');}constructor(_0xce59bc){super(_0xce59bc),this[_0x2ab7('0x31')](_0x2ab7('0x5a'),!0x0),_0xce59bc[_0x2ab7('0x4f')][_0x2ab7('0x29')](_0x2ab7('0x54'),()=>this[_0x2ab7('0x5a')]=!0x1),this[_0x2ab7('0x31')](_0x2ab7('0x45'),null),this['on'](_0x2ab7('0x6d'),(_0x41a11a,_0x2295a4,_0x1a098d,_0x595e24)=>{const _0x5e46bf=_0x1a098d?ot(_0x1a098d)['id']:null;if(_0xce59bc[_0x2ab7('0x30')][_0x2ab7('0x14')](()=>{if(_0x5e46bf){const _0x4c52d6=this[_0x2ab7('0x7a')](_0x5e46bf);for(const _0x45daff of _0x4c52d6)_0xce59bc[_0x2ab7('0x56')][_0x2ab7('0x1c')](_0x45daff);}if(_0x595e24){const {id:_0x1b1149}=ot(_0x595e24),_0x4f573f=this[_0x2ab7('0x7a')](_0x1b1149);for(const _0x5b0f0f of _0x4f573f)_0xce59bc[_0x2ab7('0x56')]['reconvertMarker'](_0x5b0f0f);}}),_0x5e46bf){const _0x4f4682=_0xce59bc['plugins'][_0x2ab7('0x20')](_0x31a553)[_0x2ab7('0xf')](_0x5e46bf);_0x4f4682&&_0x4f4682[_0x2ab7('0x3')]&&this[_0x2ab7('0x0')](_0x5e46bf);}}),this[_0x2ab7('0x58')]();}[_0x2ab7('0x27')](){const _0x33f62a=this[_0x2ab7('0x6e')],_0x3db161=_0x33f62a[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x120231=_0x33f62a[_0x2ab7('0x40')][_0x2ab7('0x20')]('collaboration.channelId');_0x33f62a[_0x2ab7('0x55')][_0x2ab7('0x28')]('addCommentThread',new _0x22ee02(_0x33f62a)),this['listenTo'](_0x33f62a,_0x2ab7('0x60'),(_0x344180,_0x2b9f05,_0x173adf)=>{_0x3db161[_0x2ab7('0x3f')](_0x173adf,_0x33f62a[_0x2ab7('0x40')][_0x2ab7('0x20')](_0x2ab7('0x35')));}),this['listenTo'](_0x3db161,tt('addCommentThread',_0x120231),(_0x2d7ae4,{threadId:_0x59a8ac})=>{const _0x2ab049=this[_0x2ab7('0x6e')][_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553)[_0x2ab7('0xf')](_0x59a8ac);_0x2ab049&&_0x2ab049[_0x2ab7('0x21')]&&this[_0x2ab7('0x4')](_0x59a8ac);}),this[_0x2ab7('0x42')](_0x3db161,tt(_0x2ab7('0x5e'),_0x120231),(_0x5d11dc,{threadId:_0x5dc679})=>{_0x33f62a[_0x2ab7('0x30')]['enqueueChange']({'isUndoable':!0x1},_0x1b3166=>{const _0x1ce844=this[_0x2ab7('0x7a')](_0x5dc679);for(const _0x3a36eb of _0x1ce844)_0x1b3166[_0x2ab7('0x76')](_0x3a36eb);});}),this[_0x2ab7('0x42')](_0x3db161,tt(_0x2ab7('0x8'),_0x120231),(_0x391e4c,{threadId:_0x1d5a06})=>{(this['_attachResolvedThread'](_0x1d5a06),this[_0x2ab7('0x32')](_0x1d5a06),this[_0x2ab7('0x6e')][_0x2ab7('0x56')][_0x2ab7('0x2f')][_0x2ab7('0x2')])&&(this[_0x2ab7('0x6e')][_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553)[_0x2ab7('0xf')](_0x1d5a06)[_0x2ab7('0x6c')]||this[_0x2ab7('0x6e')][_0x2ab7('0x56')][_0x2ab7('0x2f')][_0x2ab7('0x73')]());},{'priority':_0x2ab7('0x19')}),this['listenTo'](_0x3db161,tt(_0x2ab7('0x17'),_0x120231),(_0x87877d,{threadId:_0x402a58})=>{this[_0x2ab7('0x32')](_0x402a58);},{'priority':_0x2ab7('0x19')}),this['listenTo'](_0x3db161,tt(_0x2ab7('0x7e'),_0x120231),(_0x148d60,{threadId:_0x5978d0,isFromAdapter:_0x53bf27})=>{const _0x2fb592=this[_0x2ab7('0x7a')](_0x5978d0);if(_0x53bf27||0x0==_0x2fb592[_0x2ab7('0x1a')]||!_0x3db161['hasCommentThread'](_0x5978d0))return;0x1===_0x3db161[_0x2ab7('0xf')](_0x5978d0)['length']&&_0x33f62a[_0x2ab7('0x30')]['enqueueChange']({'isUndoable':!0x1},_0x9d530e=>{for(const _0x488175 of _0x2fb592)_0x9d530e[_0x2ab7('0x4d')](_0x488175,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x2ab7('0x4e')](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0xa46cee=this['editor'][_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x4b90c7=this['editor'][_0x2ab7('0x40')]['get']('collaboration.channelId');for(const _0x47cfcd of _0xa46cee['getCommentThreads']({'channelId':_0x4b90c7}))_0xa46cee[_0x2ab7('0x6f')](_0x47cfcd['id']),_0xa46cee[_0x2ab7('0x2c')]['delete'](_0x47cfcd['id']);super[_0x2ab7('0x7d')]();}['hasMarkerForId'](_0x3ea6a0){return this[_0x2ab7('0x7a')](_0x3ea6a0)['length']>0x0;}['getAllMarkersForId'](_0x7e5f30){const _0x546436=[];for(const _0x4d9222 of this[_0x2ab7('0x6e')][_0x2ab7('0x30')]['markers'])_0x4d9222[_0x2ab7('0x33')][_0x2ab7('0x46')](_0x2ab7('0x2b')+_0x7e5f30)&&_0x546436[_0x2ab7('0x38')](_0x4d9222);return _0x546436;}[_0x2ab7('0x0')](_0x25e9b3){const _0x5212e4=this[_0x2ab7('0x3b')](_0x25e9b3);_0x5212e4&&setTimeout(()=>{this[_0x2ab7('0x45')]&&ot(this[_0x2ab7('0x45')])['id']===_0x25e9b3&&_0x1c7a0f({'target':_0x5212e4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x455ca7){this[_0x2ab7('0x6e')][_0x2ab7('0x30')]['change'](()=>{for(const _0x80598e of this[_0x2ab7('0x7a')](_0x455ca7))this[_0x2ab7('0x6e')][_0x2ab7('0x56')][_0x2ab7('0x1c')](_0x80598e);});}[_0x2ab7('0x4')](_0x3a4998){const _0x3c5463=this[_0x2ab7('0x6e')][_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x44ee9d=this[_0x2ab7('0x6e')][_0x2ab7('0x47')]['get'](_0x118948),_0x51a07d=_0x3c5463[_0x2ab7('0xf')](_0x3a4998);if(!_0x51a07d[_0x2ab7('0x4a')]){const _0x1ecce6=_0x51a07d['attachTo'](()=>this[_0x2ab7('0x3b')](_0x51a07d['id']));_0x44ee9d[_0x2ab7('0x6b')](_0x1ecce6),_0x51a07d[_0x2ab7('0x16')]=!0x1;}}[_0x2ab7('0x4e')](){const _0xb1629a=this[_0x2ab7('0x6e')];_0xb1629a[_0x2ab7('0x12')]['for'](_0x2ab7('0x78'))[_0x2ab7('0x1')]({'model':_0x2ab7('0x34'),'view':(_0x1d98d0,_0x123163)=>{const {id:_0x500435}=ot(_0x1d98d0[_0x2ab7('0x1f')]),_0x7da421=_0xb1629a['plugins'][_0x2ab7('0x20')](_0x31a553)[_0x2ab7('0xf')](_0x500435),_0x40d765=this[_0x2ab7('0x45')]&&ot(this['activeMarker'])['id']===_0x500435;if(_0x7da421&&_0x7da421[_0x2ab7('0x3')]&&!_0x40d765&&_0x1d98d0[_0x2ab7('0x75')])return _0x123163[_0x2ab7('0xc')][_0x2ab7('0x9')](_0x1d98d0['item'],_0x2ab7('0x71')+_0x1d98d0[_0x2ab7('0x1f')]),_0x123163[_0x2ab7('0xc')][_0x2ab7('0x9')](_0x1d98d0[_0x2ab7('0x75')],_0x2ab7('0xe')+_0x1d98d0[_0x2ab7('0x1f')]),{'classes':[]};const _0x208f28=[_0x2ab7('0x5b')];return _0x40d765&&_0x208f28[_0x2ab7('0x38')](_0x2ab7('0x25')),{'classes':_0x208f28,'attributes':{'data-comment':_0x500435}};}}),_0xb1629a['conversion'][_0x2ab7('0x5c')]('dataDowncast')[_0x2ab7('0x26')]({'model':_0x2ab7('0x34'),'view':(_0x32792b,{options:_0xf82266})=>{const _0x1eb309=_0xb1629a[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x3d792d=_0xb1629a[_0x2ab7('0x30')][_0x2ab7('0x50')][_0x2ab7('0x20')](_0x32792b),{id:_0x235195,part:_0x3f17ea}=ot(_0x32792b);if(_0x3d792d&&!_0x3d792d[_0x2ab7('0x4c')])return null;if(_0xf82266[_0x2ab7('0x72')]){const _0x24af9d=_0x1eb309[_0x2ab7('0xf')](_0x235195);if(_0x24af9d&&_0x24af9d[_0x2ab7('0x3')])return null;}return{'group':_0x2ab7('0x34'),'name':_0x3f17ea?_0x235195+':'+_0x3f17ea:_0x235195};}}),_0xb1629a[_0x2ab7('0x12')][_0x2ab7('0x5c')](_0x2ab7('0x59'))[_0x2ab7('0x6')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2db755,{writer:_0x79c0f4})=>_0x79c0f4[_0x2ab7('0x11')](_0x2ab7('0x24'),{'data-name':_0x2ab7('0x2b')+_0x2db755[_0x2ab7('0x66')]('id')})}),_0xb1629a[_0x2ab7('0x12')]['for'](_0x2ab7('0x59'))[_0x2ab7('0x41')]({'view':_0x2ab7('0x34')});}[_0x2ab7('0x57')](){const _0x41d863=this[_0x2ab7('0x6e')],_0x160ffb=_0x41d863[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x3bb4f6=new Set(),_0x294916=new Set();_0x41d863[_0x2ab7('0x30')]['document'][_0x2ab7('0x65')](_0x78bc1a=>{let _0x1f9c0b=!0x1;for(const {name:_0x23d51d,data:_0x13fe84}of _0x41d863['model']['document'][_0x2ab7('0x23')][_0x2ab7('0x48')]()){const {group:_0x218bcf,id:_0x1319c4}=ot(_0x23d51d);let _0x3fff30=_0x13fe84['newRange'];if(_0x2ab7('0x34')!==_0x218bcf||!_0x3fff30)continue;const _0x17f077=_0x2ab7('0x52')===_0x3fff30[_0x2ab7('0x7f')]['rootName'];_0x17f077||(_0x3fff30=et(_0x3fff30,_0x41d863[_0x2ab7('0x30')]),!_0x3fff30||_0x3fff30[_0x2ab7('0x64')]||!_0x13fe84[_0x2ab7('0x5d')]||_0x3fff30[_0x2ab7('0x44')](_0x13fe84[_0x2ab7('0x5d')]))?_0x41d863[_0x2ab7('0x30')][_0x2ab7('0x2a')](_0x3fff30)&&!_0x17f077?this[_0x2ab7('0x5a')]?_0x3bb4f6[_0x2ab7('0x28')](_0x23d51d):this[_0x2ab7('0x13')](_0x23d51d,_0x1319c4):(_0x294916[_0x2ab7('0x28')](_0x23d51d),_0x3bb4f6[_0x2ab7('0x3e')](_0x23d51d),_0x78bc1a[_0x2ab7('0x76')](_0x23d51d),_0x1f9c0b=!0x0):(_0x78bc1a[_0x2ab7('0x4d')](_0x23d51d,{'range':_0x3fff30}),_0x1f9c0b=!0x0);}return _0x1f9c0b;}),this['on'](_0x2ab7('0x53'),(_0xf294c4,_0x1df3b2,_0x25c30c)=>{if(!_0x25c30c&&_0x3bb4f6[_0x2ab7('0x62')])for(const _0x1d14a5 of _0x3bb4f6){const {id:_0x90ae73}=ot(_0x1d14a5);_0x3bb4f6['delete'](_0x1d14a5),_0x41d863[_0x2ab7('0x30')][_0x2ab7('0x50')][_0x2ab7('0x20')](_0x1d14a5)&&this[_0x2ab7('0x13')](_0x1d14a5,_0x90ae73);}}),this['listenTo'](_0x41d863[_0x2ab7('0x30')][_0x2ab7('0xa')],'change',(_0x1146c2,_0x3daaea)=>{for(const {name:_0x32fd91,data:{newRange:_0x5013c9}}of _0x41d863[_0x2ab7('0x30')][_0x2ab7('0xa')]['differ'][_0x2ab7('0x48')]()){const {group:_0x16a779,id:_0x4e666e}=ot(_0x32fd91);if(_0x2ab7('0x34')!==_0x16a779)continue;const _0x39d09e=_0x160ffb[_0x2ab7('0xf')](_0x4e666e),_0x1577f9=this[_0x2ab7('0x49')](_0x4e666e);_0x39d09e&&(_0x39d09e['_hasTargetInContent']||_0x41d863[_0x2ab7('0x56')][_0x2ab7('0x2f')]['once'](_0x2ab7('0x18'),()=>{const _0x2d3f02=_0x41d863[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x370361),_0x582f8c=_0x160ffb[_0x2ab7('0x2e')][_0x2ab7('0x20')](_0x39d09e)[_0x2ab7('0x2f')];_0x2d3f02['getByInnerView'](_0x582f8c)[_0x2ab7('0x1e')]();},{'priority':_0x2ab7('0x19')}),_0x39d09e[_0x2ab7('0x16')]=_0x1577f9||!!_0x5013c9),_0x5013c9||(_0x294916[_0x2ab7('0x28')](_0x32fd91),_0x3bb4f6[_0x2ab7('0x3e')](_0x32fd91));}if(_0x3daaea[_0x2ab7('0x74')])for(const _0x263326 of _0x294916){const {id:_0x44ac13}=ot(_0x263326),_0x452624=_0x160ffb['getCommentThread'](_0x44ac13),_0x3834e7=this[_0x2ab7('0x49')](_0x44ac13);_0x3bb4f6[_0x2ab7('0x3e')](_0x263326),!_0x452624||_0x3834e7||_0x452624[_0x2ab7('0x6c')]||_0x452624[_0x2ab7('0x79')](new Date());}_0x294916[_0x2ab7('0xd')]();});}[_0x2ab7('0x3b')](_0x318290){const _0x5644c2=this[_0x2ab7('0x6e')],_0x3e61c7=this[_0x2ab7('0x7a')](_0x318290);return _0x411292(_0x5644c2[_0x2ab7('0x56')],_0x3e61c7);}[_0x2ab7('0x39')](_0x3c5a6a){const _0x1562cd=this[_0x2ab7('0x7a')](_0x3c5a6a);let _0x10d960='',_0x583a1c=!0x1;for(const _0x53164d of _0x1562cd){const _0x2f1f5f=_0x53164d['getRange']();for(const _0x48b80c of Array[_0x2ab7('0x77')](_0x2f1f5f['getItems']()))_0x48b80c['is'](_0x2ab7('0x7'))?(_0x10d960&&_0x583a1c&&(_0x10d960+='\x20',_0x583a1c=!0x1),_0x10d960+=_0x48b80c['data']):_0x583a1c=!0x0;_0x583a1c=!0x0;}return _0x10d960[_0x2ab7('0x43')](0x0,0x96);}['_attachMarkerToThread'](_0x923d12,_0x20cf3d){const _0x48d1e3=this[_0x2ab7('0x6e')],_0x19412e=_0x48d1e3[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553);let _0x327cdc=_0x19412e[_0x2ab7('0xf')](_0x20cf3d);const _0x442f97=_0x48d1e3[_0x2ab7('0x40')][_0x2ab7('0x20')]('collaboration.channelId'),_0x1f3645=_0x48d1e3[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x118948);if(_0x327cdc&&(_0x327cdc[_0x2ab7('0x6c')]&&_0x327cdc['setUnlinkedAt'](null),_0x327cdc['isAttached']))return _0x327cdc;return!this[_0x2ab7('0x7a')](_0x20cf3d)[0x0][_0x2ab7('0x68')]?_0x48d1e3[_0x2ab7('0x56')][_0x2ab7('0x2f')][_0x2ab7('0x29')]('render',()=>{if(_0x19412e[_0x2ab7('0xf')](_0x20cf3d))return;const _0x5cd485=_0x48d1e3[_0x2ab7('0x47')]['get'](_0x370361);_0x327cdc=_0x19412e[_0x2ab7('0x51')]({'channelId':_0x442f97,'threadId':_0x20cf3d,'target':()=>this[_0x2ab7('0x3b')](_0x20cf3d),'context':{'type':_0x2ab7('0x1b'),'value':this[_0x2ab7('0x39')](_0x20cf3d)}});const _0x2ecc59=_0x19412e[_0x2ab7('0x2e')][_0x2ab7('0x20')](_0x327cdc)[_0x2ab7('0x2f')],_0x22f1dc=_0x5cd485[_0x2ab7('0x15')](_0x2ecc59);_0x22f1dc&&_0x1f3645[_0x2ab7('0x6b')](_0x22f1dc);},{'priority':'low'}):_0x19412e[_0x2ab7('0x2d')]({'channelId':_0x442f97,'threadId':_0x20cf3d})[_0x2ab7('0x69')](_0x192f4a=>{if(_0x2ab7('0x5')!==_0x48d1e3[_0x2ab7('0x5f')]){if(_0x327cdc=_0x192f4a,_0x327cdc&&!_0x327cdc[_0x2ab7('0x4a')]){const _0x3cd722=_0x327cdc[_0x2ab7('0x3a')](()=>this[_0x2ab7('0x3b')](_0x20cf3d));_0x1f3645[_0x2ab7('0x6b')](_0x3cd722),_0x327cdc[_0x2ab7('0x3')]&&this[_0x2ab7('0x32')](_0x20cf3d);}else{if(!_0x327cdc){const _0x1e70ae=this[_0x2ab7('0x7a')](_0x20cf3d);_0x48d1e3['model'][_0x2ab7('0x14')](_0x26e382=>{for(const _0x32faae of _0x1e70ae)_0x26e382[_0x2ab7('0x76')](_0x32faae);});}}}}),_0x327cdc;}[_0x2ab7('0x13')](_0x2d4ee3,_0x48585d){const _0x373dc8=this['_attachMarkerToThread'](_0x2d4ee3,_0x48585d);_0x373dc8&&!_0x373dc8[_0x2ab7('0x22')]&&_0x373dc8['setContext']({'type':_0x2ab7('0x1b'),'value':this[_0x2ab7('0x39')](_0x48585d)});}[_0x2ab7('0x58')](){const _0xaab480=this[_0x2ab7('0x6e')];_0x2e7497(_0xaab480[_0x2ab7('0x30')],({left:_0x388666,entered:_0x26b2ad})=>{const _0x494e90=[];for(const _0x38b39d of _0x388666)if(rt(_0x38b39d)){_0x494e90[_0x2ab7('0x38')](_0x4409ff(_0xaab480['locale'],_0x2ab7('0x70')));break;}for(const _0x56c7e8 of _0x26b2ad)if(rt(_0x56c7e8)){_0x494e90[_0x2ab7('0x38')](_0x4409ff(_0xaab480['locale'],_0x2ab7('0xb')));break;}_0x494e90[_0x2ab7('0x1a')]&&_0xaab480['ui']['ariaLiveAnnouncer'][_0x2ab7('0x1d')](_0x2ab7('0x37'),_0x494e90[_0x2ab7('0x6a')]('\x20'));});}}function tt(_0x359dfc,_0x5a94c4){return _0x5a94c4?_0x359dfc+':'+_0x5a94c4:_0x359dfc;}function ot(_0x409bcd){const _0x9c8e6b=_0x409bcd['split'](':');return{'group':_0x9c8e6b[0x0],'id':_0x9c8e6b[0x1],'part':_0x9c8e6b[0x2]};}function et(_0x421865,_0x1d1e50){const _0x252833=_0x1d1e50[_0x2ab7('0x7b')],_0x2b1a3e=_0x1d1e50[_0x2ab7('0x3d')](_0x421865[_0x2ab7('0x61')]);for(const _0x47dcac of _0x421865[_0x2ab7('0x63')]()){const {type:_0x448740,item:_0x5b5223,nextPosition:_0x10e204}=_0x47dcac;if(_0x2ab7('0x1b')===_0x448740||_0x252833[_0x2ab7('0x3c')](_0x5b5223)){const _0x1ff12c=_0x1d1e50['createPositionBefore'](_0x5b5223);_0x2b1a3e[_0x2ab7('0x64')]&&(_0x2b1a3e['start']=_0x1ff12c),_0x2b1a3e[_0x2ab7('0x36')]=_0x10e204;}}return _0x2b1a3e;}function rt(_0x5ea85c){return _0x2ab7('0x34')===ot(_0x5ea85c[_0x2ab7('0x33')])[_0x2ab7('0x4b')];}
@@ -6,16 +6,16 @@
6
6
  * @module comments/comments/commentsrepository
7
7
  * @publicApi
8
8
  */
9
- import { Context, PendingActions, ContextPlugin, Editor } from 'ckeditor5/src/core';
10
- import { Collection } from 'ckeditor5/src/utils';
11
- import { Users, type User } from 'ckeditor5-collaboration/src/collaboration-core';
12
- import CommentThreadController from './ui/commentthreadcontroller';
9
+ import { Context, PendingActions, ContextPlugin, Editor } from 'ckeditor5/src/core.js';
10
+ import { Collection } from 'ckeditor5/src/utils.js';
11
+ import { Users, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
12
+ import CommentThreadController from './ui/commentthreadcontroller.js';
13
13
  import '../../theme/comment.css';
14
14
  import '../../theme/commentthread.css';
15
15
  import '../../theme/commentinput.css';
16
- import Annotation, { type AnnotationTarget } from '../annotations/annotation';
17
- import Annotations from '../annotations/annotations';
18
- import type BaseCommentThreadView from './ui/view/basecommentthreadview';
16
+ import Annotation, { type AnnotationTarget } from '../annotations/annotation.js';
17
+ import Annotations from '../annotations/annotations.js';
18
+ import type BaseCommentThreadView from './ui/view/basecommentthreadview.js';
19
19
  /**
20
20
  * Stores the list of {@link module:comments/comments/commentsrepository~CommentThread}
21
21
  * and provides event-driven API for managing them. It is also responsible for using the comments adapter
@@ -269,8 +269,8 @@ interface CommentPermissionsConfig {
269
269
  resolve: boolean;
270
270
  }
271
271
  declare const CommentThread_base: {
272
- new (): import("ckeditor5/src/utils").Observable;
273
- prototype: import("ckeditor5/src/utils").Observable;
272
+ new (): import("ckeditor5/src/utils.js").Observable;
273
+ prototype: import("ckeditor5/src/utils.js").Observable;
274
274
  };
275
275
  /**
276
276
  * Comment thread representation.
@@ -485,8 +485,8 @@ export declare class CommentThread extends CommentThread_base {
485
485
  toJSON(): CommentThreadDataJSON;
486
486
  }
487
487
  declare const Comment_base: {
488
- new (): import("ckeditor5/src/utils").Observable;
489
- prototype: import("ckeditor5/src/utils").Observable;
488
+ new (): import("ckeditor5/src/utils.js").Observable;
489
+ prototype: import("ckeditor5/src/utils.js").Observable;
490
490
  };
491
491
  /**
492
492
  * Single comment representation. A part of a {@link module:comments/comments/commentsrepository~CommentThread commentThread}.