@ckeditor/ckeditor5-comments 38.1.0 → 38.1.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 +86 -86
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.d.ts +94 -94
  6. package/src/annotations/annotationcollection.js +1 -1
  7. package/src/annotations/annotations.d.ts +150 -150
  8. package/src/annotations/annotations.js +1 -1
  9. package/src/annotations/annotationsuis.d.ts +228 -228
  10. package/src/annotations/annotationsuis.js +1 -1
  11. package/src/annotations/editorannotations.d.ts +63 -63
  12. package/src/annotations/editorannotations.js +1 -1
  13. package/src/annotations/inlineannotations.d.ts +86 -86
  14. package/src/annotations/inlineannotations.js +1 -1
  15. package/src/annotations/narrowsidebar.d.ts +81 -81
  16. package/src/annotations/narrowsidebar.js +1 -1
  17. package/src/annotations/sidebar.d.ts +96 -96
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -25
  20. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  21. package/src/annotations/view/annotationview.d.ts +86 -86
  22. package/src/annotations/view/annotationview.js +1 -1
  23. package/src/annotations/view/sidebaritemview.d.ts +51 -51
  24. package/src/annotations/view/sidebaritemview.js +1 -1
  25. package/src/annotations/view/sidebarview.d.ts +28 -28
  26. package/src/annotations/view/sidebarview.js +1 -1
  27. package/src/annotations/widesidebar.d.ts +73 -73
  28. package/src/annotations/widesidebar.js +1 -1
  29. package/src/augmentation.d.ts +48 -48
  30. package/src/comments/addcommentthreadcommand.d.ts +31 -31
  31. package/src/comments/addcommentthreadcommand.js +1 -1
  32. package/src/comments/commentsarchive.d.ts +27 -27
  33. package/src/comments/commentsarchive.js +1 -1
  34. package/src/comments/commentsarchiveui.d.ts +34 -34
  35. package/src/comments/commentsarchiveui.js +1 -1
  36. package/src/comments/commentsediting.d.ts +75 -75
  37. package/src/comments/commentsediting.js +1 -1
  38. package/src/comments/commentsrepository.d.ts +1088 -1088
  39. package/src/comments/commentsrepository.js +1 -1
  40. package/src/comments/commentsui.d.ts +29 -29
  41. package/src/comments/commentsui.js +1 -1
  42. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -13
  43. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  44. package/src/comments/integrations/importword.d.ts +17 -17
  45. package/src/comments/integrations/importword.js +1 -1
  46. package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -32
  47. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  48. package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
  49. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
  51. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  52. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  53. package/src/comments/ui/commentthreadcontroller.js +1 -1
  54. package/src/comments/ui/view/basecommentthreadview.d.ts +108 -108
  55. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  56. package/src/comments/ui/view/basecommentview.d.ts +108 -108
  57. package/src/comments/ui/view/basecommentview.js +1 -1
  58. package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -9
  59. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  60. package/src/comments/ui/view/commentcontentview.d.ts +10 -10
  61. package/src/comments/ui/view/commentcontentview.js +1 -1
  62. package/src/comments/ui/view/commentinputview.d.ts +82 -82
  63. package/src/comments/ui/view/commentinputview.js +1 -1
  64. package/src/comments/ui/view/commentsarchiveview.d.ts +34 -34
  65. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.d.ts +96 -96
  67. package/src/comments/ui/view/commentslistview.js +1 -1
  68. package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -46
  69. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  70. package/src/comments/ui/view/commentthreadinputview.d.ts +37 -37
  71. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  72. package/src/comments/ui/view/commentthreadview.d.ts +113 -113
  73. package/src/comments/ui/view/commentthreadview.js +1 -1
  74. package/src/comments/ui/view/commentview.d.ts +239 -239
  75. package/src/comments/ui/view/commentview.js +1 -1
  76. package/src/comments.d.ts +31 -31
  77. package/src/comments.js +1 -1
  78. package/src/commentsonly.d.ts +29 -29
  79. package/src/commentsonly.js +1 -1
  80. package/src/config.d.ts +172 -172
  81. package/src/index.d.ts +21 -21
  82. package/src/utils/common-translations.d.ts +5 -5
  83. package/src/utils/common-translations.js +1 -1
  84. package/src/utils/createmutationobserver.d.ts +13 -13
  85. package/src/utils/createmutationobserver.js +1 -1
@@ -1,27 +1,27 @@
1
- /**
2
- * @module comments/comments/commentsarchive
3
- * @publicApi
4
- */
5
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
6
- import { Collection } from 'ckeditor5/src/utils';
7
- import CommentsRepository, { type CommentThread } from './commentsrepository';
8
- import Annotations from '../annotations/annotations';
9
- /**
10
- * This plugin handles all operations on resolved threads needed for the comments archive.
11
- */
12
- export default class CommentsArchive extends ContextPlugin {
13
- resolvedThreads: Collection<CommentThread>;
14
- /**
15
- * @inheritDoc
16
- */
17
- static get pluginName(): "CommentsArchive";
18
- /**
19
- * @inheritDoc
20
- */
21
- static get requires(): readonly [typeof CommentsRepository, typeof Annotations];
22
- constructor(context: Context | Editor);
23
- /**
24
- * @inheritDoc
25
- */
26
- init(): void;
27
- }
1
+ /**
2
+ * @module comments/comments/commentsarchive
3
+ * @publicApi
4
+ */
5
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
6
+ import { Collection } from 'ckeditor5/src/utils';
7
+ import CommentsRepository, { type CommentThread } from './commentsrepository';
8
+ import Annotations from '../annotations/annotations';
9
+ /**
10
+ * This plugin handles all operations on resolved threads needed for the comments archive.
11
+ */
12
+ export default class CommentsArchive extends ContextPlugin {
13
+ resolvedThreads: Collection<CommentThread>;
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): "CommentsArchive";
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): readonly [typeof CommentsRepository, typeof Annotations];
22
+ constructor(context: Context | Editor);
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ init(): void;
27
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2536=['remove','listenTo','collection','init','_calculatePosition','add','CommentsArchive','activate','resolvedThreads','plugins','reopenCommentThread','getCommentThread','length','context','has','isActive','resolvedAt','get','highest'];(function(_0x845369,_0x2536a9){const _0x4b88ec=function(_0x3d07a4){while(--_0x3d07a4){_0x845369['push'](_0x845369['shift']());}};_0x4b88ec(++_0x2536a9);}(_0x2536,0x86));const _0x4b88=function(_0x845369,_0x2536a9){_0x845369=_0x845369-0x0;let _0x4b88ec=_0x2536[_0x845369];return _0x4b88ec;};import{ContextPlugin as _0x8c6582}from'ckeditor5/src/core';import{Collection as _0x130512}from'ckeditor5/src/utils';import _0x304420 from'./commentsrepository';import _0x26ada5 from'../annotations/annotations';export default class p extends _0x8c6582{static get['pluginName'](){return _0x4b88('0x5');}static get['requires'](){return[_0x304420,_0x26ada5];}constructor(_0x480e7b){super(_0x480e7b),this[_0x4b88('0x7')]=new _0x130512();}[_0x4b88('0x2')](){const _0x1f46b9=this[_0x4b88('0xc')],_0x3a7724=_0x1f46b9[_0x4b88('0x8')][_0x4b88('0x10')](_0x304420),_0x2ed6ba=_0x1f46b9[_0x4b88('0x8')]['get'](_0x26ada5);this[_0x4b88('0x0')](_0x3a7724,'addCommentThread',(_0x255a45,{threadId:_0x553f7f,resolvedAt:_0x5dc5ea,deletedAt:_0x571cb1})=>{if(_0x5dc5ea&&!_0x571cb1){const _0x330e5b=_0x3a7724[_0x4b88('0xa')](_0x553f7f);this['resolvedThreads'][_0x4b88('0x4')](_0x330e5b,this['_calculatePosition'](_0x5dc5ea));}}),this['listenTo'](_0x3a7724,'resolveCommentThread',(_0x383e97,{threadId:_0x37a05f,resolvedAt:_0x58e24b})=>{const _0x5a0249=_0x3a7724[_0x4b88('0xa')](_0x37a05f);this[_0x4b88('0x7')]['add'](_0x5a0249,this[_0x4b88('0x3')](_0x58e24b));},{'priority':_0x4b88('0x11')}),this[_0x4b88('0x0')](_0x3a7724,_0x4b88('0x9'),(_0x22042d,{threadId:_0x485189})=>{const _0x590d9f=_0x3a7724[_0x4b88('0xa')](_0x485189);this[_0x4b88('0x7')]['has'](_0x590d9f)&&this[_0x4b88('0x7')]['remove'](_0x590d9f);},{'priority':'highest'}),this[_0x4b88('0x0')](_0x3a7724,'removeCommentThread',(_0x20e087,{threadId:_0x2ff1c7})=>{const _0x23b206=_0x3a7724[_0x4b88('0xa')](_0x2ff1c7);this[_0x4b88('0x7')][_0x4b88('0xd')](_0x23b206)&&this[_0x4b88('0x7')][_0x4b88('0x12')](_0x23b206);},{'priority':_0x4b88('0x11')}),this['listenTo'](_0x2ed6ba[_0x4b88('0x1')],'focus',(_0x5b944a,_0x594909)=>{_0x594909[_0x4b88('0xe')]=!0x0,_0x2ed6ba[_0x4b88('0x6')](_0x594909);});}[_0x4b88('0x3')](_0x58103d){const _0x551f9c=[...this[_0x4b88('0x7')]]['findIndex'](_0x11ec91=>_0x11ec91[_0x4b88('0xf')]<_0x58103d);return _0x551f9c>-0x1?_0x551f9c:this[_0x4b88('0x7')][_0x4b88('0xb')];}}
23
+ const _0x97e2=['resolveCommentThread','resolvedThreads','getCommentThread','listenTo','has','CommentsArchive','init','isActive','highest','length','remove','addCommentThread','plugins','pluginName','_calculatePosition','reopenCommentThread','requires','get','findIndex','removeCommentThread','add'];(function(_0x103681,_0x97e264){const _0x4d79bb=function(_0x217770){while(--_0x217770){_0x103681['push'](_0x103681['shift']());}};_0x4d79bb(++_0x97e264);}(_0x97e2,0xa8));const _0x4d79=function(_0x103681,_0x97e264){_0x103681=_0x103681-0x0;let _0x4d79bb=_0x97e2[_0x103681];return _0x4d79bb;};import{ContextPlugin as _0x558d73}from'ckeditor5/src/core';import{Collection as _0x4a1067}from'ckeditor5/src/utils';import _0x457a06 from'./commentsrepository';import _0x151e42 from'../annotations/annotations';export default class p extends _0x558d73{static get[_0x4d79('0xd')](){return _0x4d79('0x5');}static get[_0x4d79('0x10')](){return[_0x457a06,_0x151e42];}constructor(_0x382ecf){super(_0x382ecf),this[_0x4d79('0x1')]=new _0x4a1067();}[_0x4d79('0x6')](){const _0x535b1f=this['context'],_0xeb8406=_0x535b1f[_0x4d79('0xc')][_0x4d79('0x11')](_0x457a06),_0x11f59b=_0x535b1f[_0x4d79('0xc')]['get'](_0x151e42);this[_0x4d79('0x3')](_0xeb8406,_0x4d79('0xb'),(_0x50a1b7,{threadId:_0x26e58d,resolvedAt:_0x1053d9,deletedAt:_0x493246})=>{if(_0x1053d9&&!_0x493246){const _0x40f1ae=_0xeb8406[_0x4d79('0x2')](_0x26e58d);this[_0x4d79('0x1')][_0x4d79('0x14')](_0x40f1ae,this[_0x4d79('0xe')](_0x1053d9));}}),this[_0x4d79('0x3')](_0xeb8406,_0x4d79('0x0'),(_0x58f0d6,{threadId:_0x32c79c,resolvedAt:_0x222f7e})=>{const _0x48a869=_0xeb8406[_0x4d79('0x2')](_0x32c79c);this[_0x4d79('0x1')][_0x4d79('0x14')](_0x48a869,this[_0x4d79('0xe')](_0x222f7e));},{'priority':_0x4d79('0x8')}),this['listenTo'](_0xeb8406,_0x4d79('0xf'),(_0x3be614,{threadId:_0x521235})=>{const _0x564a20=_0xeb8406[_0x4d79('0x2')](_0x521235);this['resolvedThreads'][_0x4d79('0x4')](_0x564a20)&&this[_0x4d79('0x1')][_0x4d79('0xa')](_0x564a20);},{'priority':'highest'}),this[_0x4d79('0x3')](_0xeb8406,_0x4d79('0x13'),(_0x53422d,{threadId:_0x155795})=>{const _0x2fe240=_0xeb8406[_0x4d79('0x2')](_0x155795);this['resolvedThreads'][_0x4d79('0x4')](_0x2fe240)&&this[_0x4d79('0x1')][_0x4d79('0xa')](_0x2fe240);},{'priority':_0x4d79('0x8')}),this[_0x4d79('0x3')](_0x11f59b['collection'],'focus',(_0x2a4408,_0xbff332)=>{_0xbff332[_0x4d79('0x7')]=!0x0,_0x11f59b['activate'](_0xbff332);});}[_0x4d79('0xe')](_0x2a3a26){const _0x38a916=[...this[_0x4d79('0x1')]][_0x4d79('0x12')](_0x59878a=>_0x59878a['resolvedAt']<_0x2a3a26);return _0x38a916>-0x1?_0x38a916:this[_0x4d79('0x1')][_0x4d79('0x9')];}}
@@ -1,34 +1,34 @@
1
- /**
2
- * @module comments/comments/commentsarchiveui
3
- * @publicApi
4
- */
5
- import '../../theme/commentsarchive.css';
6
- import { Plugin, type Editor } from 'ckeditor5/src/core';
7
- import { ViewCollection } from 'ckeditor5/src/ui';
8
- import CommentsArchiveView from './ui/view/commentsarchiveview';
9
- import CommentsArchive from './commentsarchive';
10
- import type AnnotationView from '../annotations/view/annotationview';
11
- /**
12
- * Creates comments archive {@link module:ui/dropdown/dropdownview~DropdownView ui dropdown} and binds with
13
- * resolved comment thread annotation views.
14
- */
15
- export default class CommentsArchiveUI extends Plugin {
16
- commentsArchiveView: CommentsArchiveView | undefined;
17
- annotationViews: ViewCollection<AnnotationView>;
18
- /**
19
- * @inheritDoc
20
- */
21
- static get pluginName(): "CommentsArchiveUI";
22
- /**
23
- * @inheritDoc
24
- */
25
- static get requires(): readonly [typeof CommentsArchive];
26
- /**
27
- * @inheritDoc
28
- */
29
- constructor(editor: Editor);
30
- /**
31
- * @inheritDoc
32
- */
33
- init(): void;
34
- }
1
+ /**
2
+ * @module comments/comments/commentsarchiveui
3
+ * @publicApi
4
+ */
5
+ import '../../theme/commentsarchive.css';
6
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
7
+ import { ViewCollection } from 'ckeditor5/src/ui';
8
+ import CommentsArchiveView from './ui/view/commentsarchiveview';
9
+ import CommentsArchive from './commentsarchive';
10
+ import type AnnotationView from '../annotations/view/annotationview';
11
+ /**
12
+ * Creates comments archive {@link module:ui/dropdown/dropdownview~DropdownView ui dropdown} and binds with
13
+ * resolved comment thread annotation views.
14
+ */
15
+ export default class CommentsArchiveUI extends Plugin {
16
+ commentsArchiveView: CommentsArchiveView | undefined;
17
+ annotationViews: ViewCollection<AnnotationView>;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): "CommentsArchiveUI";
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get requires(): readonly [typeof CommentsArchive];
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ constructor(editor: Editor);
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ init(): void;
34
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb963=['findIndex','_createArchiveUIDropdown','remove','requires','Annotations','_calculatePosition','panelView','change:isFocused','componentFactory','plugins','getByInnerView','focusTracker','commentsArchiveView','change:isOpen','push','render','pluginName','locale','collection','commentsArchive','add','resolvedAt','_threadToController','children','get','collaboration.channelId','view','resolvedThreads','CommentsArchiveUI','splice','isOpen','.ck.ck-body','channelId','annotationViews','ck-comments-archive-dropdown','listenTo','querySelectorAll','element','_pendingThreads','CommentsRepository','innerView','mousedown','config','forEach','set','stopListening','editor','isVisible','COMMENTS_ARCHIVE','init'];(function(_0x1be040,_0xb9638e){const _0x439bea=function(_0x5bf6b0){while(--_0x5bf6b0){_0x1be040['push'](_0x1be040['shift']());}};_0x439bea(++_0xb9638e);}(_0xb963,0xd9));const _0x439b=function(_0x1be040,_0xb9638e){_0x1be040=_0x1be040-0x0;let _0x439bea=_0xb963[_0x1be040];return _0x439bea;};import'../../theme/commentsarchive.css';import{Plugin as _0x42f914}from'ckeditor5/src/core';import{createDropdown as _0x1b1610,clickOutsideHandler as _0x13ec50,ViewCollection as _0x1a4881}from'ckeditor5/src/ui';import _0x26838a from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x1b30dd}from'../utils/common-translations';import _0x515253 from'./ui/view/commentsarchiveview';import _0x5bb960 from'./commentsarchive';export default class a extends _0x42f914{static get[_0x439b('0x31')](){return _0x439b('0xb');}static get[_0x439b('0x24')](){return[_0x5bb960];}constructor(_0x3e356a){super(_0x3e356a),this['annotationViews']=new _0x1a4881(),this[_0x439b('0x15')]=[];}[_0x439b('0x20')](){this['editor']['ui'][_0x439b('0x29')][_0x439b('0x3')](_0x439b('0x2'),()=>this[_0x439b('0x22')]());const _0x2b3e20=this['editor']['plugins'][_0x439b('0x7')](_0x5bb960),_0x5e388b=this[_0x439b('0x1d')][_0x439b('0x2a')][_0x439b('0x7')](_0x439b('0x25')),_0x103c1b=this[_0x439b('0x1d')][_0x439b('0x2a')][_0x439b('0x7')](_0x439b('0x16'));this[_0x439b('0x12')](_0x2b3e20[_0x439b('0xa')],_0x439b('0x3'),(_0x53cc6f,_0x20f0f2)=>{const _0x3376ae=this[_0x439b('0x1d')][_0x439b('0x19')][_0x439b('0x7')]('collaboration.channelId');if(!_0x3376ae||_0x20f0f2[_0x439b('0xf')]===_0x3376ae){const _0x219b06=this[_0x439b('0x26')](_0x20f0f2[_0x439b('0x4')]),_0x113df4=_0x103c1b[_0x439b('0x5')]['get'](_0x20f0f2);if(!_0x113df4)return void this[_0x439b('0x15')][_0x439b('0x2f')]({'thread':_0x20f0f2,'position':_0x219b06});const _0x5a1401=_0x5e388b[_0x439b('0x2b')](_0x113df4[_0x439b('0x9')]);_0x5a1401[_0x439b('0x1e')]&&_0x5e388b['_visibleAnnotations']['remove'](_0x5a1401),this[_0x439b('0x10')][_0x439b('0x3')](_0x5a1401[_0x439b('0x9')],_0x219b06);}}),this[_0x439b('0x12')](_0x5e388b[_0x439b('0x1')],_0x439b('0x3'),(_0xd988eb,_0xed4351)=>{this[_0x439b('0x15')][_0x439b('0x1a')](({thread:_0x476a31,position:_0x570aff},_0x172fa6)=>{const _0x3f0e9c=_0x103c1b['_threadToController'][_0x439b('0x7')](_0x476a31);_0x3f0e9c&&_0xed4351[_0x439b('0x17')]===_0x3f0e9c['view']&&(this[_0x439b('0x10')][_0x439b('0x3')](_0xed4351[_0x439b('0x9')],_0x570aff),this['_pendingThreads'][_0x439b('0xc')](_0x172fa6,0x1));});}),this['listenTo'](_0x2b3e20[_0x439b('0xa')],_0x439b('0x23'),(_0x194918,_0x2dab73)=>{const _0x553146=this[_0x439b('0x1d')]['config']['get'](_0x439b('0x8'));if(!_0x553146||_0x2dab73[_0x439b('0xf')]===_0x553146){const _0x2cf4fd=_0x103c1b[_0x439b('0x5')][_0x439b('0x7')](_0x2dab73),_0x471d42=_0x5e388b['getByInnerView'](_0x2cf4fd[_0x439b('0x9')])['view'];this[_0x439b('0x10')][_0x439b('0x23')](_0x471d42);}});}[_0x439b('0x26')](_0x16a0f0){const _0x241420=this['editor'][_0x439b('0x19')][_0x439b('0x7')](_0x439b('0x8')),_0x72f41f=[...this[_0x439b('0x1d')][_0x439b('0x2a')][_0x439b('0x7')](_0x5bb960)[_0x439b('0xa')]]['filter'](_0xf974bf=>_0xf974bf[_0x439b('0xf')]!==_0x241420)[_0x439b('0x21')](_0x5e065d=>_0x5e065d[_0x439b('0x4')]<_0x16a0f0);return _0x72f41f>-0x1?_0x72f41f:this[_0x439b('0x10')]['length'];}[_0x439b('0x22')](){const _0x24a2d8=this[_0x439b('0x1d')],_0x1d02b3=_0x1b1610(_0x24a2d8[_0x439b('0x0')]);return _0x1d02b3['on'](_0x439b('0x30'),()=>{_0x1d02b3[_0x439b('0x1c')](document,_0x439b('0x18')),_0x13ec50({'emitter':_0x1d02b3,'activator':()=>_0x1d02b3[_0x439b('0xd')],'callback':()=>{_0x1d02b3[_0x439b('0xd')]=!0x1;},'contextElements':()=>[_0x1d02b3[_0x439b('0x14')],...document[_0x439b('0x13')](_0x439b('0xe'))]});}),_0x1d02b3[_0x439b('0x2c')]['on'](_0x439b('0x28'),_0x2f257e=>{_0x2f257e['stop']();},{'priority':'high'}),_0x1d02b3['buttonView'][_0x439b('0x1b')]({'icon':_0x26838a,'label':_0x1b30dd(_0x24a2d8[_0x439b('0x0')],_0x439b('0x1f')),'tooltip':!0x0}),_0x1d02b3[_0x439b('0x27')]['extendTemplate']({'attributes':{'class':_0x439b('0x11')}}),_0x1d02b3['on'](_0x439b('0x2e'),(_0x5e9311,_0x370615,_0x218ae5)=>{this[_0x439b('0x2d')]||(this[_0x439b('0x2d')]=new _0x515253(_0x24a2d8['locale'],this['annotationViews'])),_0x218ae5?_0x1d02b3[_0x439b('0x27')][_0x439b('0x6')][_0x439b('0x3')](this[_0x439b('0x2d')]):_0x1d02b3['panelView'][_0x439b('0x6')][_0x439b('0x23')](this[_0x439b('0x2d')]);}),_0x1d02b3;}}
23
+ const _0x5121=['requires','focusTracker','.ck.ck-body','config','set','COMMENTS_ARCHIVE','editor','stop','_calculatePosition','forEach','querySelectorAll','filter','stopListening','resolvedAt','isOpen','locale','plugins','_pendingThreads','_createArchiveUIDropdown','mousedown','collaboration.channelId','commentsArchiveView','extendTemplate','getByInnerView','Annotations','pluginName','add','get','ck-comments-archive-dropdown','panelView','resolvedThreads','findIndex','_threadToController','_visibleAnnotations','annotationViews','collection','high','channelId','componentFactory','children','view','element','CommentsArchiveUI','buttonView','innerView','length','listenTo','remove','init'];(function(_0x2bd79a,_0x5121d6){const _0xfe1ef8=function(_0x1cebc7){while(--_0x1cebc7){_0x2bd79a['push'](_0x2bd79a['shift']());}};_0xfe1ef8(++_0x5121d6);}(_0x5121,0x11c));const _0xfe1e=function(_0x2bd79a,_0x5121d6){_0x2bd79a=_0x2bd79a-0x0;let _0xfe1ef8=_0x5121[_0x2bd79a];return _0xfe1ef8;};import'../../theme/commentsarchive.css';import{Plugin as _0x1caeed}from'ckeditor5/src/core';import{createDropdown as _0x43377e,clickOutsideHandler as _0x1591cd,ViewCollection as _0x1e7870}from'ckeditor5/src/ui';import _0xaeac20 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x262d85}from'../utils/common-translations';import _0x5c8ec6 from'./ui/view/commentsarchiveview';import _0xbea4d1 from'./commentsarchive';export default class a extends _0x1caeed{static get[_0xfe1e('0x23')](){return _0xfe1e('0x3');}static get[_0xfe1e('0xa')](){return[_0xbea4d1];}constructor(_0x361036){super(_0x361036),this['annotationViews']=new _0x1e7870(),this[_0xfe1e('0x1b')]=[];}[_0xfe1e('0x9')](){this[_0xfe1e('0x10')]['ui'][_0xfe1e('0x30')][_0xfe1e('0x24')]('commentsArchive',()=>this['_createArchiveUIDropdown']());const _0x213b17=this[_0xfe1e('0x10')][_0xfe1e('0x1a')][_0xfe1e('0x25')](_0xbea4d1),_0x19c704=this[_0xfe1e('0x10')][_0xfe1e('0x1a')][_0xfe1e('0x25')](_0xfe1e('0x22')),_0x301a1a=this[_0xfe1e('0x10')][_0xfe1e('0x1a')][_0xfe1e('0x25')]('CommentsRepository');this[_0xfe1e('0x7')](_0x213b17['resolvedThreads'],_0xfe1e('0x24'),(_0x31512d,_0x251c16)=>{const _0x571bae=this[_0xfe1e('0x10')][_0xfe1e('0xd')]['get'](_0xfe1e('0x1e'));if(!_0x571bae||_0x251c16['channelId']===_0x571bae){const _0x31fb63=this[_0xfe1e('0x12')](_0x251c16[_0xfe1e('0x17')]),_0x52a965=_0x301a1a[_0xfe1e('0x2a')][_0xfe1e('0x25')](_0x251c16);if(!_0x52a965)return void this[_0xfe1e('0x1b')]['push']({'thread':_0x251c16,'position':_0x31fb63});const _0x564b96=_0x19c704[_0xfe1e('0x21')](_0x52a965[_0xfe1e('0x1')]);_0x564b96['isVisible']&&_0x19c704[_0xfe1e('0x2b')][_0xfe1e('0x8')](_0x564b96),this[_0xfe1e('0x2c')]['add'](_0x564b96[_0xfe1e('0x1')],_0x31fb63);}}),this[_0xfe1e('0x7')](_0x19c704[_0xfe1e('0x2d')],'add',(_0x1e7473,_0x3ca51d)=>{this['_pendingThreads'][_0xfe1e('0x13')](({thread:_0x26eabe,position:_0x109f45},_0x7f010b)=>{const _0x4b77e5=_0x301a1a[_0xfe1e('0x2a')][_0xfe1e('0x25')](_0x26eabe);_0x4b77e5&&_0x3ca51d[_0xfe1e('0x5')]===_0x4b77e5[_0xfe1e('0x1')]&&(this[_0xfe1e('0x2c')][_0xfe1e('0x24')](_0x3ca51d[_0xfe1e('0x1')],_0x109f45),this[_0xfe1e('0x1b')]['splice'](_0x7f010b,0x1));});}),this[_0xfe1e('0x7')](_0x213b17['resolvedThreads'],_0xfe1e('0x8'),(_0x2ca0e3,_0x2a528f)=>{const _0xb858c4=this[_0xfe1e('0x10')]['config'][_0xfe1e('0x25')](_0xfe1e('0x1e'));if(!_0xb858c4||_0x2a528f['channelId']===_0xb858c4){const _0x4f9dc6=_0x301a1a[_0xfe1e('0x2a')]['get'](_0x2a528f),_0x3b9174=_0x19c704[_0xfe1e('0x21')](_0x4f9dc6['view'])[_0xfe1e('0x1')];this[_0xfe1e('0x2c')][_0xfe1e('0x8')](_0x3b9174);}});}[_0xfe1e('0x12')](_0x43762b){const _0x71b4a2=this[_0xfe1e('0x10')][_0xfe1e('0xd')][_0xfe1e('0x25')](_0xfe1e('0x1e')),_0x9af664=[...this['editor'][_0xfe1e('0x1a')][_0xfe1e('0x25')](_0xbea4d1)[_0xfe1e('0x28')]][_0xfe1e('0x15')](_0x2f130c=>_0x2f130c[_0xfe1e('0x2f')]!==_0x71b4a2)[_0xfe1e('0x29')](_0x4ed471=>_0x4ed471[_0xfe1e('0x17')]<_0x43762b);return _0x9af664>-0x1?_0x9af664:this[_0xfe1e('0x2c')][_0xfe1e('0x6')];}[_0xfe1e('0x1c')](){const _0x404096=this[_0xfe1e('0x10')],_0x435f60=_0x43377e(_0x404096['locale']);return _0x435f60['on']('render',()=>{_0x435f60[_0xfe1e('0x16')](document,_0xfe1e('0x1d')),_0x1591cd({'emitter':_0x435f60,'activator':()=>_0x435f60['isOpen'],'callback':()=>{_0x435f60[_0xfe1e('0x18')]=!0x1;},'contextElements':()=>[_0x435f60[_0xfe1e('0x2')],...document[_0xfe1e('0x14')](_0xfe1e('0xc'))]});}),_0x435f60[_0xfe1e('0xb')]['on']('change:isFocused',_0x4a4797=>{_0x4a4797[_0xfe1e('0x11')]();},{'priority':_0xfe1e('0x2e')}),_0x435f60[_0xfe1e('0x4')][_0xfe1e('0xe')]({'icon':_0xaeac20,'label':_0x262d85(_0x404096['locale'],_0xfe1e('0xf')),'tooltip':!0x0}),_0x435f60[_0xfe1e('0x27')][_0xfe1e('0x20')]({'attributes':{'class':_0xfe1e('0x26')}}),_0x435f60['on']('change:isOpen',(_0x12484d,_0x567887,_0x2dc345)=>{this[_0xfe1e('0x1f')]||(this[_0xfe1e('0x1f')]=new _0x5c8ec6(_0x404096[_0xfe1e('0x19')],this[_0xfe1e('0x2c')])),_0x2dc345?_0x435f60[_0xfe1e('0x27')][_0xfe1e('0x0')]['add'](this[_0xfe1e('0x1f')]):_0x435f60[_0xfe1e('0x27')][_0xfe1e('0x0')][_0xfe1e('0x8')](this[_0xfe1e('0x1f')]);}),_0x435f60;}}
@@ -1,75 +1,75 @@
1
- /**
2
- * @module comments/comments/commentsediting
3
- */
4
- import { Plugin, type Editor } from 'ckeditor5/src/core';
5
- import type { Marker } from 'ckeditor5/src/engine';
6
- import CommentsRepository from './commentsrepository';
7
- import EditorAnnotations from '../annotations/editorannotations';
8
- import CommentsRestrictedEditingMode from './integrations/commentsrestrictededitingmode';
9
- import '../../theme/commentmarker.css';
10
- import CommentsImportWord from './integrations/importword';
11
- /**
12
- * Plugin that keeps in sync comments in {@link module:comments/comments/commentsrepository~CommentsRepository} with
13
- * {@link module:engine/model/markercollection~Marker comment markers}.
14
- */
15
- export default class CommentsEditing extends Plugin {
16
- /**
17
- * If set to `true`, the plugin won't load comment thread for the new marker immediately after the marker is added to the editor.
18
- * Instead, the plugin will wait until the flag will be set to `false` and then load missing comments.
19
- *
20
- * It's useful to hold fetching comments from the server when comments are used with real-time collaboration.
21
- * When a user connects to an existing document, the operations from the history need to be applied one by one.
22
- * An operation which added a new comment marker might be followed by an operation which removes that marker, so it's not
23
- * necessary to make an additional request then.
24
- *
25
- * @observable
26
- */
27
- isThreadsLoadingPaused: boolean;
28
- /**
29
- * Name of the active comment marker.
30
- *
31
- * Markers conversion checks if comment should be marked as active and adds/removes additional css class during the conversion.
32
- *
33
- * @observable
34
- */
35
- activeMarker: string | null;
36
- /**
37
- * @inheritDoc
38
- */
39
- static get requires(): readonly [typeof CommentsRepository, typeof EditorAnnotations, typeof CommentsRestrictedEditingMode, typeof CommentsImportWord];
40
- /**
41
- * @inheritDoc
42
- */
43
- static get pluginName(): "CommentsEditing";
44
- /**
45
- * @inheritDoc
46
- */
47
- constructor(editor: Editor);
48
- /**
49
- * @inheritDoc
50
- */
51
- init(): void;
52
- /**
53
- * @inheritDoc
54
- */
55
- destroy(): void;
56
- /**
57
- * Returns `true` if there is at least one marker in the content that is related to a comment thread with given `threadId`.
58
- *
59
- * @param threadId Comment thread id.
60
- */
61
- hasMarkerForId(threadId: string): boolean;
62
- /**
63
- * Returns all markers that are related to the comment thread with the given `threadId`.
64
- *
65
- * @param threadId Comment thread id.
66
- * @returns Array with all markers related to given comment thread.
67
- */
68
- getAllMarkersForId(threadId: string): Array<Marker>;
69
- /**
70
- * Scrolls editing view to the first thread marker.
71
- *
72
- * @param threadId Comment thread id.
73
- */
74
- scrollToThreadMarker(threadId: string): void;
75
- }
1
+ /**
2
+ * @module comments/comments/commentsediting
3
+ */
4
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
5
+ import type { Marker } from 'ckeditor5/src/engine';
6
+ import CommentsRepository from './commentsrepository';
7
+ import EditorAnnotations from '../annotations/editorannotations';
8
+ import CommentsRestrictedEditingMode from './integrations/commentsrestrictededitingmode';
9
+ import '../../theme/commentmarker.css';
10
+ import CommentsImportWord from './integrations/importword';
11
+ /**
12
+ * Plugin that keeps in sync comments in {@link module:comments/comments/commentsrepository~CommentsRepository} with
13
+ * {@link module:engine/model/markercollection~Marker comment markers}.
14
+ */
15
+ export default class CommentsEditing extends Plugin {
16
+ /**
17
+ * If set to `true`, the plugin won't load comment thread for the new marker immediately after the marker is added to the editor.
18
+ * Instead, the plugin will wait until the flag will be set to `false` and then load missing comments.
19
+ *
20
+ * It's useful to hold fetching comments from the server when comments are used with real-time collaboration.
21
+ * When a user connects to an existing document, the operations from the history need to be applied one by one.
22
+ * An operation which added a new comment marker might be followed by an operation which removes that marker, so it's not
23
+ * necessary to make an additional request then.
24
+ *
25
+ * @observable
26
+ */
27
+ isThreadsLoadingPaused: boolean;
28
+ /**
29
+ * Name of the active comment marker.
30
+ *
31
+ * Markers conversion checks if comment should be marked as active and adds/removes additional css class during the conversion.
32
+ *
33
+ * @observable
34
+ */
35
+ activeMarker: string | null;
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ static get requires(): readonly [typeof CommentsRepository, typeof EditorAnnotations, typeof CommentsRestrictedEditingMode, typeof CommentsImportWord];
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ static get pluginName(): "CommentsEditing";
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ constructor(editor: Editor);
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ init(): void;
52
+ /**
53
+ * @inheritDoc
54
+ */
55
+ destroy(): void;
56
+ /**
57
+ * Returns `true` if there is at least one marker in the content that is related to a comment thread with given `threadId`.
58
+ *
59
+ * @param threadId Comment thread id.
60
+ */
61
+ hasMarkerForId(threadId: string): boolean;
62
+ /**
63
+ * Returns all markers that are related to the comment thread with the given `threadId`.
64
+ *
65
+ * @param threadId Comment thread id.
66
+ * @returns Array with all markers related to given comment thread.
67
+ */
68
+ getAllMarkersForId(threadId: string): Array<Marker>;
69
+ /**
70
+ * Scrolls editing view to the first thread marker.
71
+ *
72
+ * @param threadId Comment thread id.
73
+ */
74
+ scrollToThreadMarker(threadId: string): void;
75
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcc0d=['_attachedThreads','markerToData','then','createElement','createRange','consumable','_threadToController','updateMarker','hasCommentThread','getCommentThreads','delete','addMarker:','getItems','refreshVisibility','model','size','registerAnnotation','collaboration.channelId','_getTextContext','ready','removeCommentThread','low','has','isResolved','addComment','setContext','set','markerName','_handleMarkerAddAndRemove','for','reopen','once','affectsData','markers','isThreadsLoadingPaused','_threads','addCommentThread','commands','reconvertMarker','high','destroy','isCollapsed','focus','plugins','root','init','filter','document','activeMarker','CommentsEditing','enqueueChange','fetchCommentThread','getWalker','_reconvertMarkers','length','includes','resolveCommentThread','render','rootName','switchReadOnly','attachTo','change','isEqual','openNewCommentThread','differ','newRange','$graveyard','$marker','_hasTargetInContent','editor','comment:','_getTargetForId','upcast','getCommentThread','config','dataDowncast','end','_attachMarkerToThread','start','hasContent','consume','scrollToThreadMarker','from','view','add','getByInnerView','comment','getAllMarkersForId','pluginName','push','dataToMarker','registerPostFixer','ck-comment-marker--active','change:activeMarker','listenTo','editing','data','getRange','conversion','text','createPositionBefore','change:isReadOnly','state','_initializeMarkerConverters','get','_handleThreadMarker','removeMarker'];(function(_0x1ab288,_0xcc0d3e){const _0x5e5acb=function(_0x16a442){while(--_0x16a442){_0x1ab288['push'](_0x1ab288['shift']());}};_0x5e5acb(++_0xcc0d3e);}(_0xcc0d,0xd4));const _0x5e5a=function(_0x1ab288,_0xcc0d3e){_0x1ab288=_0x1ab288-0x0;let _0x5e5acb=_0xcc0d[_0x1ab288];return _0x5e5acb;};import{Plugin as _0x3b94ff}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x470011}from'ckeditor5/src/utils';import _0x59e9e0 from'./commentsrepository';import _0x4cbc12 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x22a235}from'ckeditor5-collaboration/src/collaboration-core';import _0x5da5b0 from'../annotations/editorannotations';import _0x418cbf from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x4ebf26 from'./integrations/importword';import _0x23846a from'../annotations/annotations';export default class r extends _0x3b94ff{static get['requires'](){return[_0x59e9e0,_0x5da5b0,_0x418cbf,_0x4ebf26];}static get[_0x5e5a('0x5a')](){return _0x5e5a('0x33');}constructor(_0x5404eb){super(_0x5404eb),this[_0x5e5a('0x1c')](_0x5e5a('0x24'),!0x0),_0x5404eb[_0x5e5a('0x62')]['once'](_0x5e5a('0x15'),()=>this[_0x5e5a('0x24')]=!0x1),this['set'](_0x5e5a('0x32'),null),this['on'](_0x5e5a('0x5f'),(_0x49ef1a,_0x9a9f39,_0x17dd74,_0x59c7ea)=>{const _0x424bfa=_0x17dd74?ot(_0x17dd74)['id']:null;if(_0x5404eb[_0x5e5a('0x10')][_0x5e5a('0x3f')](()=>{if(_0x424bfa){const _0x4e3cfc=this['getAllMarkersForId'](_0x424bfa);for(const _0x240fa8 of _0x4e3cfc)_0x5404eb[_0x5e5a('0x61')][_0x5e5a('0x28')](_0x240fa8);}if(_0x59c7ea){const {id:_0x1a0429}=ot(_0x59c7ea),_0x4e45ba=this[_0x5e5a('0x59')](_0x1a0429);for(const _0xa4ae79 of _0x4e45ba)_0x5404eb['editing'][_0x5e5a('0x28')](_0xa4ae79);}}),_0x424bfa){const _0x3099b7=_0x5404eb['plugins'][_0x5e5a('0x6a')](_0x59e9e0)['getCommentThread'](_0x424bfa);_0x3099b7&&_0x3099b7[_0x5e5a('0x19')]&&this['scrollToThreadMarker'](_0x424bfa);}}),this[_0x5e5a('0x2')]=new Map();}[_0x5e5a('0x2f')](){const _0x3dfdd1=this['editor'],_0x585130=_0x3dfdd1[_0x5e5a('0x2d')][_0x5e5a('0x6a')](_0x59e9e0),_0x1d8aa7=_0x3dfdd1[_0x5e5a('0x4c')][_0x5e5a('0x6a')](_0x5e5a('0x13'));_0x3dfdd1[_0x5e5a('0x27')][_0x5e5a('0x56')](_0x5e5a('0x26'),new _0x4cbc12(_0x3dfdd1)),this[_0x5e5a('0x60')](_0x3dfdd1,_0x5e5a('0x67'),(_0x2e3934,_0x4452c9,_0x2ee908)=>{_0x585130[_0x5e5a('0x3d')](_0x2ee908,_0x3dfdd1['config'][_0x5e5a('0x6a')](_0x5e5a('0x13')));}),this[_0x5e5a('0x60')](_0x585130,tt(_0x5e5a('0x26'),_0x1d8aa7),(_0x2c0a92,{threadId:_0x46c7ae})=>{const _0x5461de=_0x3dfdd1['plugins'][_0x5e5a('0x6a')](_0x5da5b0),_0x3657a9=this['editor'][_0x5e5a('0x2d')]['get'](_0x59e9e0)[_0x5e5a('0x4b')](_0x46c7ae);if(_0x3657a9&&_0x3657a9[_0x5e5a('0x19')]&&!this[_0x5e5a('0x2')][_0x5e5a('0x18')](_0x46c7ae)){const _0x5a6895=_0x3657a9[_0x5e5a('0x3e')](()=>this[_0x5e5a('0x49')](_0x3657a9['id']));_0x5461de[_0x5e5a('0x12')](_0x5a6895),this['_attachedThreads'][_0x5e5a('0x1c')](_0x46c7ae,[]),0x0===this[_0x5e5a('0x59')](_0x46c7ae)[_0x5e5a('0x38')]&&(_0x3657a9[_0x5e5a('0x46')]=!0x1);}}),this[_0x5e5a('0x60')](_0x585130,tt(_0x5e5a('0x16'),_0x1d8aa7),(_0x29f69b,{threadId:_0x3ba37c})=>{_0x3dfdd1[_0x5e5a('0x10')][_0x5e5a('0x34')]({'isUndoable':!0x1},_0x3ac745=>{const _0x558066=this[_0x5e5a('0x59')](_0x3ba37c);this[_0x5e5a('0x2')]['delete'](_0x3ba37c);for(const _0x29ff60 of _0x558066)_0x3ac745['removeMarker'](_0x29ff60);});},{'priority':_0x5e5a('0x29')}),this[_0x5e5a('0x60')](_0x585130,tt(_0x5e5a('0x3a'),_0x1d8aa7),(_0x2e00da,{threadId:_0x590bf3})=>{this['_reconvertMarkers'](_0x590bf3),this[_0x5e5a('0x47')][_0x5e5a('0x61')]['view']['hasDomSelection']&&this[_0x5e5a('0x47')][_0x5e5a('0x61')]['view'][_0x5e5a('0x2c')]();},{'priority':_0x5e5a('0x17')}),this[_0x5e5a('0x60')](_0x585130,tt('reopenCommentThread',_0x1d8aa7),(_0x20912f,{threadId:_0x2f360f})=>{this['_reconvertMarkers'](_0x2f360f);},{'priority':_0x5e5a('0x17')}),this[_0x5e5a('0x60')](_0x585130,tt(_0x5e5a('0x1a'),_0x1d8aa7),(_0x482d78,{threadId:_0xadbbf1,isFromAdapter:_0x2fdef4})=>{const _0x275139=this[_0x5e5a('0x59')](_0xadbbf1);if(_0x2fdef4||0x0==_0x275139[_0x5e5a('0x38')]||!_0x585130[_0x5e5a('0xa')](_0xadbbf1))return;0x1===_0x585130[_0x5e5a('0x4b')](_0xadbbf1)[_0x5e5a('0x38')]&&_0x3dfdd1[_0x5e5a('0x10')]['enqueueChange']({'isUndoable':!0x1},_0x569ed8=>{for(const _0x3e25f1 of _0x275139)_0x569ed8[_0x5e5a('0x9')](_0x3e25f1,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x5e5a('0x69')](),this['_handleMarkerAddAndRemove']();}[_0x5e5a('0x2a')](){const _0x304212=this[_0x5e5a('0x47')][_0x5e5a('0x2d')]['get'](_0x59e9e0),_0x487545=this[_0x5e5a('0x47')][_0x5e5a('0x4c')][_0x5e5a('0x6a')](_0x5e5a('0x13'));for(const _0x310523 of _0x304212[_0x5e5a('0xb')]({'channelId':_0x487545}))_0x304212['_detachCommentThread'](_0x310523['id']),_0x304212[_0x5e5a('0x25')]['delete'](_0x310523['id']);super['destroy']();}['hasMarkerForId'](_0x5ea9a2){return this['getAllMarkersForId'](_0x5ea9a2)[_0x5e5a('0x38')]>0x0;}[_0x5e5a('0x59')](_0xe7790e){return(this[_0x5e5a('0x2')][_0x5e5a('0x6a')](_0xe7790e)||[])['map'](_0xf66fc2=>this[_0x5e5a('0x47')][_0x5e5a('0x10')][_0x5e5a('0x23')]['get'](_0xf66fc2))[_0x5e5a('0x30')](_0x59c5e8=>_0x59c5e8);}[_0x5e5a('0x53')](_0x47980e){const _0x21f55a=this[_0x5e5a('0x49')](_0x47980e);_0x21f55a&&setTimeout(()=>{this[_0x5e5a('0x32')]&&ot(this[_0x5e5a('0x32')])['id']===_0x47980e&&_0x470011({'target':_0x21f55a[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5e5a('0x37')](_0x1daacc){this[_0x5e5a('0x47')][_0x5e5a('0x10')]['change'](()=>{for(const _0x30a098 of this[_0x5e5a('0x59')](_0x1daacc))this[_0x5e5a('0x47')]['editing'][_0x5e5a('0x28')](_0x30a098);});}[_0x5e5a('0x69')](){const _0x2a3fbf=this['editor'];_0x2a3fbf['conversion'][_0x5e5a('0x1f')]('editingDowncast')['markerToHighlight']({'model':_0x5e5a('0x58'),'view':(_0x5bc9a8,_0x51fa1e)=>{const {id:_0x2d920d}=ot(_0x5bc9a8['markerName']),_0x2eb1ab=_0x2a3fbf[_0x5e5a('0x2d')][_0x5e5a('0x6a')](_0x59e9e0)[_0x5e5a('0x4b')](_0x2d920d),_0x4c1446=this[_0x5e5a('0x32')]&&ot(this[_0x5e5a('0x32')])['id']===_0x2d920d;if(_0x2eb1ab&&_0x2eb1ab[_0x5e5a('0x19')]&&!_0x4c1446&&_0x5bc9a8['item'])return _0x51fa1e[_0x5e5a('0x7')]['consume'](_0x5bc9a8['item'],_0x5e5a('0xd')+_0x5bc9a8['markerName']),_0x51fa1e[_0x5e5a('0x7')][_0x5e5a('0x52')](_0x5bc9a8['item'],'removeMarker:'+_0x5bc9a8[_0x5e5a('0x1d')]),{'classes':[]};const _0x22b859=['ck-comment-marker'];return _0x4c1446&&_0x22b859[_0x5e5a('0x5b')](_0x5e5a('0x5e')),{'classes':_0x22b859,'attributes':{'data-comment':_0x2d920d}};}}),_0x2a3fbf['conversion'][_0x5e5a('0x1f')](_0x5e5a('0x4d'))[_0x5e5a('0x3')]({'model':'comment','view':(_0x50096f,{options:_0x19ce2b})=>{const _0x57d672=_0x2a3fbf[_0x5e5a('0x2d')][_0x5e5a('0x6a')](_0x59e9e0),_0x5a0ba5=_0x2a3fbf[_0x5e5a('0x10')]['markers'][_0x5e5a('0x6a')](_0x50096f),{id:_0x494132,part:_0xcdca8c}=ot(_0x50096f);if(_0x5a0ba5&&!_0x5a0ba5[_0x5e5a('0x22')])return null;if(_0x19ce2b['ignoreResolvedComments']){const _0x4b68de=_0x57d672['getCommentThread'](_0x494132);if(_0x4b68de&&_0x4b68de[_0x5e5a('0x19')])return null;}return{'group':_0x5e5a('0x58'),'name':_0xcdca8c?_0x494132+':'+_0xcdca8c:_0x494132};}}),_0x2a3fbf[_0x5e5a('0x64')][_0x5e5a('0x1f')](_0x5e5a('0x4a'))['elementToElement']({'view':{'name':_0x5e5a('0x58'),'attributes':{'id':/^\w/}},'model':(_0x5328d8,{writer:_0x257cfe})=>_0x257cfe[_0x5e5a('0x5')](_0x5e5a('0x45'),{'data-name':_0x5e5a('0x48')+_0x5328d8['getAttribute']('id')})}),_0x2a3fbf[_0x5e5a('0x64')][_0x5e5a('0x1f')]('upcast')[_0x5e5a('0x5c')]({'view':_0x5e5a('0x58')});}[_0x5e5a('0x1e')](){const _0x236ca1=this[_0x5e5a('0x47')],_0xe47a86=_0x236ca1['plugins'][_0x5e5a('0x6a')](_0x59e9e0),_0x56e3f5=new Set();_0x236ca1[_0x5e5a('0x10')][_0x5e5a('0x31')][_0x5e5a('0x5d')](_0x1e8462=>{let _0x321d98=!0x1;for(const {name:_0x51f3b1,data:_0x5379dd}of _0x236ca1[_0x5e5a('0x10')][_0x5e5a('0x31')][_0x5e5a('0x42')]['getChangedMarkers']()){const {group:_0x27ce2e,id:_0x41e836}=ot(_0x51f3b1);let _0xe8b8b4=_0x5379dd[_0x5e5a('0x43')];if(_0x5e5a('0x58')!==_0x27ce2e||!_0xe8b8b4)continue;const _0x3635a0=_0x5e5a('0x44')===_0xe8b8b4[_0x5e5a('0x2e')][_0x5e5a('0x3c')];_0x3635a0||(_0xe8b8b4=et(_0xe8b8b4,_0x236ca1['model']),!_0xe8b8b4||!_0x5379dd[_0x5e5a('0x43')]||_0xe8b8b4[_0x5e5a('0x40')](_0x5379dd[_0x5e5a('0x43')]))?!_0xe8b8b4||!_0x236ca1[_0x5e5a('0x10')][_0x5e5a('0x51')](_0xe8b8b4)||this[_0x5e5a('0x2')][_0x5e5a('0x18')](_0x41e836)&&_0x3635a0?(_0x1e8462[_0x5e5a('0x1')](_0x51f3b1),_0x321d98=!0x0):_0x3635a0||(this['isThreadsLoadingPaused']?_0x56e3f5[_0x5e5a('0x56')](_0x51f3b1):this[_0x5e5a('0x0')](_0x51f3b1,_0x41e836)):(_0x1e8462[_0x5e5a('0x9')](_0x51f3b1,{'range':_0xe8b8b4}),_0x321d98=!0x0);}return _0x321d98;}),this['on']('change:isThreadsLoadingPaused',(_0x15cf30,_0x196efe,_0x553a3c)=>{if(!_0x553a3c&&_0x56e3f5[_0x5e5a('0x11')])for(const _0x1dfd7b of _0x56e3f5){const {id:_0x46a383}=ot(_0x1dfd7b);_0x56e3f5['delete'](_0x46a383),_0x236ca1[_0x5e5a('0x10')][_0x5e5a('0x23')][_0x5e5a('0x6a')](_0x1dfd7b)&&this[_0x5e5a('0x0')](_0x1dfd7b,_0x46a383);}}),this[_0x5e5a('0x60')](_0x236ca1[_0x5e5a('0x10')][_0x5e5a('0x31')],'change',(_0x231771,_0x26eb40)=>{for(const {name:_0x3af1ab,data:{newRange:_0x52a593}}of _0x236ca1['model'][_0x5e5a('0x31')][_0x5e5a('0x42')]['getChangedMarkers']()){const {group:_0x17d994,id:_0x59f1a6}=ot(_0x3af1ab);if(_0x5e5a('0x58')!==_0x17d994)continue;const _0x45d36e=_0xe47a86['getCommentThread'](_0x59f1a6),_0x9ae2df=this['hasMarkerForId'](_0x59f1a6);_0x45d36e&&(_0x45d36e[_0x5e5a('0x46')]||_0x236ca1[_0x5e5a('0x61')][_0x5e5a('0x55')][_0x5e5a('0x21')](_0x5e5a('0x3b'),()=>{const _0x1656a9=_0x236ca1['plugins']['get'](_0x23846a),_0x3b5f7a=_0xe47a86[_0x5e5a('0x8')][_0x5e5a('0x6a')](_0x45d36e)[_0x5e5a('0x55')];_0x1656a9[_0x5e5a('0x57')](_0x3b5f7a)[_0x5e5a('0xf')]();},{'priority':_0x5e5a('0x17')}),_0x45d36e['_hasTargetInContent']=_0x9ae2df||!!_0x52a593),!_0x52a593&&_0x26eb40['isLocal']&&(_0x56e3f5[_0x5e5a('0xc')](_0x59f1a6),_0x45d36e&&!_0x45d36e[_0x5e5a('0x19')]&&!_0x9ae2df&&this[_0x5e5a('0x2')][_0x5e5a('0x18')](_0x59f1a6)&&(this[_0x5e5a('0x2')][_0x5e5a('0xc')](_0x59f1a6),_0x45d36e['resolve']()));}});}[_0x5e5a('0x49')](_0x3b789){const _0x1186d7=this[_0x5e5a('0x47')],_0x2636e3=this['getAllMarkersForId'](_0x3b789);return _0x22a235(_0x1186d7[_0x5e5a('0x61')],_0x2636e3);}[_0x5e5a('0x14')](_0x3de65a){const _0x556b26=this[_0x5e5a('0x59')](_0x3de65a);let _0x2b0ab4='',_0x39b6d3=!0x1;for(const _0x59f084 of _0x556b26){const _0x1497a6=_0x59f084[_0x5e5a('0x63')]();for(const _0x395763 of Array[_0x5e5a('0x54')](_0x1497a6[_0x5e5a('0xe')]()))_0x395763['is']('$textProxy')?(_0x2b0ab4&&_0x39b6d3&&(_0x2b0ab4+='\x20',_0x39b6d3=!0x1),_0x2b0ab4+=_0x395763[_0x5e5a('0x62')]):_0x39b6d3=!0x0;_0x39b6d3=!0x0;}return _0x2b0ab4['substring'](0x0,0x96);}[_0x5e5a('0x4f')](_0x4ad073,_0x12db8f){const _0x563878=this[_0x5e5a('0x47')],_0x422842=_0x563878[_0x5e5a('0x2d')][_0x5e5a('0x6a')](_0x59e9e0);let _0x530568=_0x422842[_0x5e5a('0x4b')](_0x12db8f);if(this[_0x5e5a('0x2')]['has'](_0x12db8f)){const _0x89b1fe=this[_0x5e5a('0x2')][_0x5e5a('0x6a')](_0x12db8f);return _0x89b1fe[_0x5e5a('0x39')](_0x4ad073)||_0x89b1fe[_0x5e5a('0x5b')](_0x4ad073),_0x530568;}this[_0x5e5a('0x2')][_0x5e5a('0x1c')](_0x12db8f,[_0x4ad073]);const _0x442888=_0x563878[_0x5e5a('0x4c')]['get']('collaboration.channelId'),_0x4ab3c1=_0x563878[_0x5e5a('0x2d')][_0x5e5a('0x6a')](_0x5da5b0);if(_0x530568&&_0x530568[_0x5e5a('0x19')])return _0x530568[_0x5e5a('0x20')](),_0x530568;return!this[_0x5e5a('0x59')](_0x12db8f)[0x0]['managedUsingOperations']?_0x563878[_0x5e5a('0x61')]['view'][_0x5e5a('0x21')](_0x5e5a('0x3b'),()=>{const _0x517947=_0x563878[_0x5e5a('0x2d')]['get'](_0x23846a);_0x530568=_0x422842[_0x5e5a('0x41')]({'channelId':_0x442888,'threadId':_0x12db8f,'target':()=>this[_0x5e5a('0x49')](_0x12db8f),'context':{'type':_0x5e5a('0x65'),'value':this[_0x5e5a('0x14')](_0x12db8f)}});const _0x2dc7d4=_0x422842[_0x5e5a('0x8')][_0x5e5a('0x6a')](_0x530568)[_0x5e5a('0x55')],_0x25ee3e=_0x517947[_0x5e5a('0x57')](_0x2dc7d4);_0x25ee3e&&_0x4ab3c1[_0x5e5a('0x12')](_0x25ee3e);},{'priority':_0x5e5a('0x17')}):_0x422842[_0x5e5a('0x35')]({'channelId':_0x442888,'threadId':_0x12db8f})[_0x5e5a('0x4')](_0x1bfc6a=>{if('destroyed'!==_0x563878[_0x5e5a('0x68')]){if(_0x530568=_0x1bfc6a,_0x530568){const _0x171317=_0x530568[_0x5e5a('0x3e')](()=>this['_getTargetForId'](_0x12db8f));_0x4ab3c1[_0x5e5a('0x12')](_0x171317),_0x530568[_0x5e5a('0x19')]&&this[_0x5e5a('0x37')](_0x12db8f);}else{const _0x352674=this[_0x5e5a('0x59')](_0x12db8f);_0x563878[_0x5e5a('0x10')][_0x5e5a('0x3f')](_0x138887=>{for(const _0x46d345 of _0x352674)_0x138887[_0x5e5a('0x1')](_0x46d345);});}}}),_0x530568;}[_0x5e5a('0x0')](_0x135008,_0x1af5a6){const _0x579ba9=this[_0x5e5a('0x4f')](_0x135008,_0x1af5a6);_0x579ba9&&!_0x579ba9['context']&&_0x579ba9[_0x5e5a('0x1b')]({'type':_0x5e5a('0x65'),'value':this[_0x5e5a('0x14')](_0x1af5a6)});}}function tt(_0x4f90ae,_0x53b143){return _0x53b143?_0x4f90ae+':'+_0x53b143:_0x4f90ae;}function ot(_0x25eb32){const _0x516366=_0x25eb32['split'](':');return{'group':_0x516366[0x0],'id':_0x516366[0x1],'part':_0x516366[0x2]};}function et(_0x522c51,_0x14cc00){const _0x43e8a4=_0x14cc00['schema'],_0x5b0caf=_0x14cc00[_0x5e5a('0x6')](_0x522c51['start']);for(const _0x4eb742 of _0x522c51[_0x5e5a('0x36')]()){const {type:_0x1b45c1,item:_0x10af58,nextPosition:_0x123f8f}=_0x4eb742;if(_0x5e5a('0x65')===_0x1b45c1||_0x43e8a4['isObject'](_0x10af58)){const _0x30352e=_0x14cc00[_0x5e5a('0x66')](_0x10af58);_0x5b0caf[_0x5e5a('0x2b')]&&(_0x5b0caf[_0x5e5a('0x50')]=_0x30352e),_0x5b0caf[_0x5e5a('0x4e')]=_0x123f8f;}}return _0x5b0caf[_0x5e5a('0x2b')]?null:_0x5b0caf;}
23
+ const _0x1a0d=['consumable','pluginName','map','high','add','getAttribute','markerToHighlight','activeMarker','createElement','text','_initializeMarkerConverters','_hasTargetInContent','collaboration.channelId','filter','ck-comment-marker','addComment','isLocal','plugins','change','$textProxy','push','editing','isResolved','document','_attachMarkerToThread','comment','length','getAllMarkersForId','getItems','hasMarkerForId','requires','$marker','_handleMarkerAddAndRemove','destroy','reconvertMarker','differ','end','editor','dataDowncast','markerName','render','reopenCommentThread','createPositionBefore','isEqual','isCollapsed','openNewCommentThread','hasContent','getRange','scrollToThreadMarker','once','config','upcast','focus','_getTextContext','delete','addCommentThread','resolveCommentThread','root','view','_threadToController','for','size','_reconvertMarkers','_attachedThreads','_handleThreadMarker','getByInnerView','removeMarker:','start','isObject','editingDowncast','then','get','getWalker','model','getCommentThreads','CommentsEditing','_getTargetForId','listenTo','setContext','low','ready','init','state','isThreadsLoadingPaused','schema','getCommentThread','data','item','addMarker:','comment:','newRange','change:isThreadsLoadingPaused','getChangedMarkers','ck-comment-marker--active','elementToElement','dataToMarker','includes','set','destroyed','attachTo','split','removeMarker','createRange','reopen','markers','affectsData','hasCommentThread','enqueueChange','managedUsingOperations','conversion','has','consume','registerAnnotation','updateMarker','registerPostFixer','removeCommentThread'];(function(_0x54cd25,_0x1a0d10){const _0x5a03e2=function(_0x2255f9){while(--_0x2255f9){_0x54cd25['push'](_0x54cd25['shift']());}};_0x5a03e2(++_0x1a0d10);}(_0x1a0d,0x1c8));const _0x5a03=function(_0x54cd25,_0x1a0d10){_0x54cd25=_0x54cd25-0x0;let _0x5a03e2=_0x1a0d[_0x54cd25];return _0x5a03e2;};import{Plugin as _0x3fbbee}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3101be}from'ckeditor5/src/utils';import _0x47bd7a from'./commentsrepository';import _0x1775a7 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x2910b8}from'ckeditor5-collaboration/src/collaboration-core';import _0x207f98 from'../annotations/editorannotations';import _0x7f8c81 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x2054e9 from'./integrations/importword';import _0x6ecb72 from'../annotations/annotations';export default class r extends _0x3fbbee{static get[_0x5a03('0x26')](){return[_0x47bd7a,_0x207f98,_0x7f8c81,_0x2054e9];}static get[_0x5a03('0x9')](){return _0x5a03('0x53');}constructor(_0x18bde5){super(_0x18bde5),this['set'](_0x5a03('0x5b'),!0x0),_0x18bde5['data'][_0x5a03('0x39')](_0x5a03('0x58'),()=>this[_0x5a03('0x5b')]=!0x1),this['set'](_0x5a03('0xf'),null),this['on']('change:activeMarker',(_0xfadae0,_0x710e04,_0x21b281,_0x4bd1a9)=>{const _0xf977d8=_0x21b281?ot(_0x21b281)['id']:null;if(_0x18bde5['model']['change'](()=>{if(_0xf977d8){const _0x1c8e28=this[_0x5a03('0x23')](_0xf977d8);for(const _0x1d865e of _0x1c8e28)_0x18bde5[_0x5a03('0x1d')][_0x5a03('0x2a')](_0x1d865e);}if(_0x4bd1a9){const {id:_0x5bc742}=ot(_0x4bd1a9),_0x49a7b9=this[_0x5a03('0x23')](_0x5bc742);for(const _0x11bc94 of _0x49a7b9)_0x18bde5['editing'][_0x5a03('0x2a')](_0x11bc94);}}),_0xf977d8){const _0x1aba85=_0x18bde5['plugins'][_0x5a03('0x4f')](_0x47bd7a)[_0x5a03('0x5d')](_0xf977d8);_0x1aba85&&_0x1aba85[_0x5a03('0x1e')]&&this[_0x5a03('0x38')](_0xf977d8);}}),this[_0x5a03('0x47')]=new Map();}[_0x5a03('0x59')](){const _0x15ad12=this[_0x5a03('0x2d')],_0x414481=_0x15ad12['plugins'][_0x5a03('0x4f')](_0x47bd7a),_0x227eb3=_0x15ad12[_0x5a03('0x3a')][_0x5a03('0x4f')]('collaboration.channelId');_0x15ad12['commands'][_0x5a03('0xc')](_0x5a03('0x3f'),new _0x1775a7(_0x15ad12)),this[_0x5a03('0x55')](_0x15ad12,'change:isReadOnly',(_0x467f5e,_0x339e27,_0x16ba96)=>{_0x414481['switchReadOnly'](_0x16ba96,_0x15ad12[_0x5a03('0x3a')][_0x5a03('0x4f')]('collaboration.channelId'));}),this[_0x5a03('0x55')](_0x414481,tt(_0x5a03('0x3f'),_0x227eb3),(_0x106246,{threadId:_0x26dafd})=>{const _0x7c0c05=_0x15ad12[_0x5a03('0x19')]['get'](_0x207f98),_0x220ea0=this[_0x5a03('0x2d')][_0x5a03('0x19')][_0x5a03('0x4f')](_0x47bd7a)[_0x5a03('0x5d')](_0x26dafd);if(_0x220ea0&&_0x220ea0['isResolved']&&!this['_attachedThreads']['has'](_0x26dafd)){const _0x31826b=_0x220ea0[_0x5a03('0x6b')](()=>this['_getTargetForId'](_0x220ea0['id']));_0x7c0c05[_0x5a03('0x4')](_0x31826b),this[_0x5a03('0x47')][_0x5a03('0x69')](_0x26dafd,[]),0x0===this[_0x5a03('0x23')](_0x26dafd)[_0x5a03('0x22')]&&(_0x220ea0['_hasTargetInContent']=!0x1);}}),this[_0x5a03('0x55')](_0x414481,tt(_0x5a03('0x7'),_0x227eb3),(_0x2d0ca8,{threadId:_0x3a1054})=>{_0x15ad12[_0x5a03('0x51')][_0x5a03('0x73')]({'isUndoable':!0x1},_0x176a3a=>{const _0xf14afc=this[_0x5a03('0x23')](_0x3a1054);this['_attachedThreads'][_0x5a03('0x3e')](_0x3a1054);for(const _0x54bf28 of _0xf14afc)_0x176a3a[_0x5a03('0x6d')](_0x54bf28);});},{'priority':_0x5a03('0xb')}),this[_0x5a03('0x55')](_0x414481,tt(_0x5a03('0x40'),_0x227eb3),(_0x357d3f,{threadId:_0x2942f2})=>{this[_0x5a03('0x46')](_0x2942f2),this[_0x5a03('0x2d')][_0x5a03('0x1d')]['view']['hasDomSelection']&&this[_0x5a03('0x2d')]['editing']['view'][_0x5a03('0x3c')]();},{'priority':'low'}),this['listenTo'](_0x414481,tt(_0x5a03('0x31'),_0x227eb3),(_0x4495f1,{threadId:_0x4552b1})=>{this['_reconvertMarkers'](_0x4552b1);},{'priority':'low'}),this[_0x5a03('0x55')](_0x414481,tt(_0x5a03('0x17'),_0x227eb3),(_0x392a19,{threadId:_0xb816a9,isFromAdapter:_0x1c0cc2})=>{const _0x41053a=this['getAllMarkersForId'](_0xb816a9);if(_0x1c0cc2||0x0==_0x41053a[_0x5a03('0x22')]||!_0x414481[_0x5a03('0x72')](_0xb816a9))return;0x1===_0x414481['getCommentThread'](_0xb816a9)[_0x5a03('0x22')]&&_0x15ad12[_0x5a03('0x51')]['enqueueChange']({'isUndoable':!0x1},_0x4c27b7=>{for(const _0x9202f9 of _0x41053a)_0x4c27b7['updateMarker'](_0x9202f9,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5a03('0x57')}),this['_initializeMarkerConverters'](),this[_0x5a03('0x28')]();}[_0x5a03('0x29')](){const _0x539ca7=this[_0x5a03('0x2d')][_0x5a03('0x19')][_0x5a03('0x4f')](_0x47bd7a),_0x6ca73b=this['editor']['config']['get'](_0x5a03('0x14'));for(const _0x574c05 of _0x539ca7[_0x5a03('0x52')]({'channelId':_0x6ca73b}))_0x539ca7['_detachCommentThread'](_0x574c05['id']),_0x539ca7['_threads'][_0x5a03('0x3e')](_0x574c05['id']);super['destroy']();}[_0x5a03('0x25')](_0x1062b6){return this[_0x5a03('0x23')](_0x1062b6)['length']>0x0;}[_0x5a03('0x23')](_0x40df49){return(this[_0x5a03('0x47')][_0x5a03('0x4f')](_0x40df49)||[])[_0x5a03('0xa')](_0x4e374a=>this[_0x5a03('0x2d')][_0x5a03('0x51')][_0x5a03('0x70')][_0x5a03('0x4f')](_0x4e374a))[_0x5a03('0x15')](_0x47e0fd=>_0x47e0fd);}[_0x5a03('0x38')](_0x3cb5d2){const _0x198c11=this[_0x5a03('0x54')](_0x3cb5d2);_0x198c11&&setTimeout(()=>{this['activeMarker']&&ot(this['activeMarker'])['id']===_0x3cb5d2&&_0x3101be({'target':_0x198c11[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5a03('0x46')](_0x4cefef){this['editor'][_0x5a03('0x51')][_0x5a03('0x1a')](()=>{for(const _0x153d99 of this[_0x5a03('0x23')](_0x4cefef))this['editor']['editing']['reconvertMarker'](_0x153d99);});}[_0x5a03('0x12')](){const _0x40a727=this[_0x5a03('0x2d')];_0x40a727[_0x5a03('0x1')][_0x5a03('0x44')](_0x5a03('0x4d'))[_0x5a03('0xe')]({'model':_0x5a03('0x21'),'view':(_0x3d4f2a,_0x5690fa)=>{const {id:_0x19c0f7}=ot(_0x3d4f2a[_0x5a03('0x2f')]),_0x1a74b1=_0x40a727[_0x5a03('0x19')][_0x5a03('0x4f')](_0x47bd7a)[_0x5a03('0x5d')](_0x19c0f7),_0x5d0b39=this[_0x5a03('0xf')]&&ot(this['activeMarker'])['id']===_0x19c0f7;if(_0x1a74b1&&_0x1a74b1['isResolved']&&!_0x5d0b39&&_0x3d4f2a[_0x5a03('0x5f')])return _0x5690fa['consumable'][_0x5a03('0x3')](_0x3d4f2a['item'],_0x5a03('0x60')+_0x3d4f2a[_0x5a03('0x2f')]),_0x5690fa[_0x5a03('0x8')]['consume'](_0x3d4f2a[_0x5a03('0x5f')],_0x5a03('0x4a')+_0x3d4f2a['markerName']),{'classes':[]};const _0x3bf006=[_0x5a03('0x16')];return _0x5d0b39&&_0x3bf006[_0x5a03('0x1c')](_0x5a03('0x65')),{'classes':_0x3bf006,'attributes':{'data-comment':_0x19c0f7}};}}),_0x40a727['conversion']['for'](_0x5a03('0x2e'))['markerToData']({'model':'comment','view':(_0x13143d,{options:_0x4b1171})=>{const _0x50c275=_0x40a727[_0x5a03('0x19')]['get'](_0x47bd7a),_0x2d9c2a=_0x40a727[_0x5a03('0x51')][_0x5a03('0x70')][_0x5a03('0x4f')](_0x13143d),{id:_0x16b464,part:_0x4fbf37}=ot(_0x13143d);if(_0x2d9c2a&&!_0x2d9c2a[_0x5a03('0x71')])return null;if(_0x4b1171['ignoreResolvedComments']){const _0x1076f4=_0x50c275[_0x5a03('0x5d')](_0x16b464);if(_0x1076f4&&_0x1076f4[_0x5a03('0x1e')])return null;}return{'group':_0x5a03('0x21'),'name':_0x4fbf37?_0x16b464+':'+_0x4fbf37:_0x16b464};}}),_0x40a727[_0x5a03('0x1')][_0x5a03('0x44')](_0x5a03('0x3b'))[_0x5a03('0x66')]({'view':{'name':_0x5a03('0x21'),'attributes':{'id':/^\w/}},'model':(_0x350499,{writer:_0x752cbb})=>_0x752cbb[_0x5a03('0x10')](_0x5a03('0x27'),{'data-name':_0x5a03('0x61')+_0x350499[_0x5a03('0xd')]('id')})}),_0x40a727[_0x5a03('0x1')]['for'](_0x5a03('0x3b'))[_0x5a03('0x67')]({'view':_0x5a03('0x21')});}[_0x5a03('0x28')](){const _0x1c047a=this['editor'],_0x2085e0=_0x1c047a['plugins']['get'](_0x47bd7a),_0x19bf0a=new Set();_0x1c047a[_0x5a03('0x51')][_0x5a03('0x1f')][_0x5a03('0x6')](_0x20dfed=>{let _0x364adc=!0x1;for(const {name:_0x3dadfb,data:_0x360919}of _0x1c047a[_0x5a03('0x51')][_0x5a03('0x1f')][_0x5a03('0x2b')]['getChangedMarkers']()){const {group:_0x3fbb60,id:_0x158b57}=ot(_0x3dadfb);let _0x501166=_0x360919[_0x5a03('0x62')];if(_0x5a03('0x21')!==_0x3fbb60||!_0x501166)continue;const _0x47ee17='$graveyard'===_0x501166[_0x5a03('0x41')]['rootName'];_0x47ee17||(_0x501166=et(_0x501166,_0x1c047a['model']),!_0x501166||!_0x360919['newRange']||_0x501166[_0x5a03('0x33')](_0x360919[_0x5a03('0x62')]))?!_0x501166||!_0x1c047a[_0x5a03('0x51')][_0x5a03('0x36')](_0x501166)||this[_0x5a03('0x47')][_0x5a03('0x2')](_0x158b57)&&_0x47ee17?(_0x20dfed['removeMarker'](_0x3dadfb),_0x364adc=!0x0):_0x47ee17||(this['isThreadsLoadingPaused']?_0x19bf0a[_0x5a03('0xc')](_0x3dadfb):this[_0x5a03('0x48')](_0x3dadfb,_0x158b57)):(_0x20dfed[_0x5a03('0x5')](_0x3dadfb,{'range':_0x501166}),_0x364adc=!0x0);}return _0x364adc;}),this['on'](_0x5a03('0x63'),(_0x149edd,_0x1fafeb,_0x11d54e)=>{if(!_0x11d54e&&_0x19bf0a[_0x5a03('0x45')])for(const _0x218928 of _0x19bf0a){const {id:_0x28cb84}=ot(_0x218928);_0x19bf0a[_0x5a03('0x3e')](_0x28cb84),_0x1c047a['model'][_0x5a03('0x70')][_0x5a03('0x4f')](_0x218928)&&this[_0x5a03('0x48')](_0x218928,_0x28cb84);}}),this[_0x5a03('0x55')](_0x1c047a['model'][_0x5a03('0x1f')],_0x5a03('0x1a'),(_0x5a2d2c,_0x251aa7)=>{for(const {name:_0x32df9d,data:{newRange:_0x483872}}of _0x1c047a[_0x5a03('0x51')][_0x5a03('0x1f')][_0x5a03('0x2b')][_0x5a03('0x64')]()){const {group:_0x2e2bfc,id:_0x24631b}=ot(_0x32df9d);if(_0x5a03('0x21')!==_0x2e2bfc)continue;const _0x3dcf4e=_0x2085e0['getCommentThread'](_0x24631b),_0x169d4e=this[_0x5a03('0x25')](_0x24631b);_0x3dcf4e&&(_0x3dcf4e[_0x5a03('0x13')]||_0x1c047a[_0x5a03('0x1d')][_0x5a03('0x42')][_0x5a03('0x39')](_0x5a03('0x30'),()=>{const _0x3d3b8a=_0x1c047a[_0x5a03('0x19')][_0x5a03('0x4f')](_0x6ecb72),_0x5b1bad=_0x2085e0[_0x5a03('0x43')][_0x5a03('0x4f')](_0x3dcf4e)[_0x5a03('0x42')];_0x3d3b8a[_0x5a03('0x49')](_0x5b1bad)['refreshVisibility']();},{'priority':_0x5a03('0x57')}),_0x3dcf4e[_0x5a03('0x13')]=_0x169d4e||!!_0x483872),!_0x483872&&_0x251aa7[_0x5a03('0x18')]&&(_0x19bf0a[_0x5a03('0x3e')](_0x24631b),_0x3dcf4e&&!_0x3dcf4e[_0x5a03('0x1e')]&&!_0x169d4e&&this[_0x5a03('0x47')]['has'](_0x24631b)&&(this[_0x5a03('0x47')][_0x5a03('0x3e')](_0x24631b),_0x3dcf4e['resolve']()));}});}[_0x5a03('0x54')](_0x507bba){const _0x2da416=this[_0x5a03('0x2d')],_0x40f474=this[_0x5a03('0x23')](_0x507bba);return _0x2910b8(_0x2da416[_0x5a03('0x1d')],_0x40f474);}[_0x5a03('0x3d')](_0x51df18){const _0x21d026=this[_0x5a03('0x23')](_0x51df18);let _0x442a06='',_0x4118bf=!0x1;for(const _0x26984f of _0x21d026){const _0x47fba9=_0x26984f[_0x5a03('0x37')]();for(const _0x2dfaa4 of Array['from'](_0x47fba9[_0x5a03('0x24')]()))_0x2dfaa4['is'](_0x5a03('0x1b'))?(_0x442a06&&_0x4118bf&&(_0x442a06+='\x20',_0x4118bf=!0x1),_0x442a06+=_0x2dfaa4[_0x5a03('0x5e')]):_0x4118bf=!0x0;_0x4118bf=!0x0;}return _0x442a06['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x2e8dc4,_0x2ba0dd){const _0x42a690=this[_0x5a03('0x2d')],_0x5b0939=_0x42a690['plugins'][_0x5a03('0x4f')](_0x47bd7a);let _0x4ef45c=_0x5b0939[_0x5a03('0x5d')](_0x2ba0dd);if(this[_0x5a03('0x47')][_0x5a03('0x2')](_0x2ba0dd)){const _0x178bfd=this['_attachedThreads']['get'](_0x2ba0dd);return _0x178bfd[_0x5a03('0x68')](_0x2e8dc4)||_0x178bfd[_0x5a03('0x1c')](_0x2e8dc4),_0x4ef45c;}this[_0x5a03('0x47')][_0x5a03('0x69')](_0x2ba0dd,[_0x2e8dc4]);const _0x3d3df4=_0x42a690[_0x5a03('0x3a')][_0x5a03('0x4f')](_0x5a03('0x14')),_0x134b28=_0x42a690['plugins'][_0x5a03('0x4f')](_0x207f98);if(_0x4ef45c&&_0x4ef45c['isResolved'])return _0x4ef45c[_0x5a03('0x6f')](),_0x4ef45c;return!this['getAllMarkersForId'](_0x2ba0dd)[0x0][_0x5a03('0x0')]?_0x42a690[_0x5a03('0x1d')][_0x5a03('0x42')][_0x5a03('0x39')]('render',()=>{const _0x2f16be=_0x42a690[_0x5a03('0x19')][_0x5a03('0x4f')](_0x6ecb72);_0x4ef45c=_0x5b0939[_0x5a03('0x35')]({'channelId':_0x3d3df4,'threadId':_0x2ba0dd,'target':()=>this[_0x5a03('0x54')](_0x2ba0dd),'context':{'type':'text','value':this[_0x5a03('0x3d')](_0x2ba0dd)}});const _0x25f64e=_0x5b0939[_0x5a03('0x43')][_0x5a03('0x4f')](_0x4ef45c)['view'],_0x1b5079=_0x2f16be[_0x5a03('0x49')](_0x25f64e);_0x1b5079&&_0x134b28[_0x5a03('0x4')](_0x1b5079);},{'priority':_0x5a03('0x57')}):_0x5b0939['fetchCommentThread']({'channelId':_0x3d3df4,'threadId':_0x2ba0dd})[_0x5a03('0x4e')](_0x20eda4=>{if(_0x5a03('0x6a')!==_0x42a690[_0x5a03('0x5a')]){if(_0x4ef45c=_0x20eda4,_0x4ef45c){const _0x5d59c0=_0x4ef45c[_0x5a03('0x6b')](()=>this['_getTargetForId'](_0x2ba0dd));_0x134b28[_0x5a03('0x4')](_0x5d59c0),_0x4ef45c[_0x5a03('0x1e')]&&this[_0x5a03('0x46')](_0x2ba0dd);}else{const _0x5c87fd=this[_0x5a03('0x23')](_0x2ba0dd);_0x42a690[_0x5a03('0x51')][_0x5a03('0x1a')](_0x473bf9=>{for(const _0x530e95 of _0x5c87fd)_0x473bf9[_0x5a03('0x6d')](_0x530e95);});}}}),_0x4ef45c;}[_0x5a03('0x48')](_0x4e0760,_0x22e8fa){const _0x23d85a=this[_0x5a03('0x20')](_0x4e0760,_0x22e8fa);_0x23d85a&&!_0x23d85a['context']&&_0x23d85a[_0x5a03('0x56')]({'type':_0x5a03('0x11'),'value':this[_0x5a03('0x3d')](_0x22e8fa)});}}function tt(_0x17c5e4,_0x3d47e2){return _0x3d47e2?_0x17c5e4+':'+_0x3d47e2:_0x17c5e4;}function ot(_0x940fa6){const _0x40948d=_0x940fa6[_0x5a03('0x6c')](':');return{'group':_0x40948d[0x0],'id':_0x40948d[0x1],'part':_0x40948d[0x2]};}function et(_0x38381b,_0x130f93){const _0x17bd79=_0x130f93[_0x5a03('0x5c')],_0x5c07cd=_0x130f93[_0x5a03('0x6e')](_0x38381b[_0x5a03('0x4b')]);for(const _0xfff7a9 of _0x38381b[_0x5a03('0x50')]()){const {type:_0x19f692,item:_0x350799,nextPosition:_0x9f02b7}=_0xfff7a9;if(_0x5a03('0x11')===_0x19f692||_0x17bd79[_0x5a03('0x4c')](_0x350799)){const _0x25dd71=_0x130f93[_0x5a03('0x32')](_0x350799);_0x5c07cd['isCollapsed']&&(_0x5c07cd[_0x5a03('0x4b')]=_0x25dd71),_0x5c07cd[_0x5a03('0x2c')]=_0x9f02b7;}}return _0x5c07cd[_0x5a03('0x34')]?null:_0x5c07cd;}