@ckeditor/ckeditor5-comments 38.0.1 → 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 (98) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/en-au.js +1 -1
  3. package/build/translations/it.js +1 -1
  4. package/build/translations/lv.js +1 -1
  5. package/build/translations/pt-br.js +1 -1
  6. package/build/translations/sk.js +1 -1
  7. package/build/translations/sq.js +1 -0
  8. package/lang/translations/en-au.po +1 -1
  9. package/lang/translations/it.po +1 -1
  10. package/lang/translations/lv.po +1 -1
  11. package/lang/translations/pt-br.po +1 -1
  12. package/lang/translations/sk.po +1 -1
  13. package/lang/translations/sq.po +111 -0
  14. package/package.json +10 -8
  15. package/src/annotations/annotation.d.ts +86 -86
  16. package/src/annotations/annotation.js +1 -1
  17. package/src/annotations/annotationcollection.d.ts +94 -94
  18. package/src/annotations/annotationcollection.js +1 -1
  19. package/src/annotations/annotations.d.ts +150 -150
  20. package/src/annotations/annotations.js +1 -1
  21. package/src/annotations/annotationsuis.d.ts +228 -227
  22. package/src/annotations/annotationsuis.js +1 -1
  23. package/src/annotations/editorannotations.d.ts +63 -62
  24. package/src/annotations/editorannotations.js +1 -1
  25. package/src/annotations/inlineannotations.d.ts +86 -84
  26. package/src/annotations/inlineannotations.js +1 -1
  27. package/src/annotations/narrowsidebar.d.ts +81 -80
  28. package/src/annotations/narrowsidebar.js +1 -1
  29. package/src/annotations/sidebar.d.ts +96 -96
  30. package/src/annotations/sidebar.js +1 -1
  31. package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -25
  32. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  33. package/src/annotations/view/annotationview.d.ts +86 -86
  34. package/src/annotations/view/annotationview.js +1 -1
  35. package/src/annotations/view/sidebaritemview.d.ts +51 -51
  36. package/src/annotations/view/sidebaritemview.js +1 -1
  37. package/src/annotations/view/sidebarview.d.ts +28 -28
  38. package/src/annotations/view/sidebarview.js +1 -1
  39. package/src/annotations/widesidebar.d.ts +73 -72
  40. package/src/annotations/widesidebar.js +1 -1
  41. package/src/augmentation.d.ts +48 -48
  42. package/src/comments/addcommentthreadcommand.d.ts +31 -31
  43. package/src/comments/addcommentthreadcommand.js +1 -1
  44. package/src/comments/commentsarchive.d.ts +27 -25
  45. package/src/comments/commentsarchive.js +1 -1
  46. package/src/comments/commentsarchiveui.d.ts +34 -32
  47. package/src/comments/commentsarchiveui.js +1 -1
  48. package/src/comments/commentsediting.d.ts +75 -71
  49. package/src/comments/commentsediting.js +1 -1
  50. package/src/comments/commentsrepository.d.ts +1088 -1084
  51. package/src/comments/commentsrepository.js +1 -1
  52. package/src/comments/commentsui.d.ts +29 -25
  53. package/src/comments/commentsui.js +1 -1
  54. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -13
  55. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  56. package/src/comments/integrations/importword.d.ts +17 -17
  57. package/src/comments/integrations/importword.js +1 -1
  58. package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -32
  59. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  60. package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
  61. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  62. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
  63. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  64. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  65. package/src/comments/ui/commentthreadcontroller.js +1 -1
  66. package/src/comments/ui/view/basecommentthreadview.d.ts +108 -108
  67. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  68. package/src/comments/ui/view/basecommentview.d.ts +108 -108
  69. package/src/comments/ui/view/basecommentview.js +1 -1
  70. package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -9
  71. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  72. package/src/comments/ui/view/commentcontentview.d.ts +10 -10
  73. package/src/comments/ui/view/commentcontentview.js +1 -1
  74. package/src/comments/ui/view/commentinputview.d.ts +82 -82
  75. package/src/comments/ui/view/commentinputview.js +1 -1
  76. package/src/comments/ui/view/commentsarchiveview.d.ts +34 -34
  77. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  78. package/src/comments/ui/view/commentslistview.d.ts +96 -96
  79. package/src/comments/ui/view/commentslistview.js +1 -1
  80. package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -46
  81. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  82. package/src/comments/ui/view/commentthreadinputview.d.ts +37 -37
  83. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  84. package/src/comments/ui/view/commentthreadview.d.ts +113 -113
  85. package/src/comments/ui/view/commentthreadview.js +1 -1
  86. package/src/comments/ui/view/commentview.d.ts +239 -239
  87. package/src/comments/ui/view/commentview.js +1 -1
  88. package/src/comments.d.ts +31 -22
  89. package/src/comments.js +1 -1
  90. package/src/commentsonly.d.ts +29 -28
  91. package/src/commentsonly.js +1 -1
  92. package/src/config.d.ts +172 -172
  93. package/src/index.d.ts +21 -19
  94. package/src/index.js +1 -1
  95. package/src/utils/common-translations.d.ts +5 -5
  96. package/src/utils/common-translations.js +1 -1
  97. package/src/utils/createmutationobserver.d.ts +13 -13
  98. package/src/utils/createmutationobserver.js +1 -1
@@ -1,25 +1,27 @@
1
- /**
2
- * @module comments/comments/commentsarchive
3
- */
4
- import { ContextPlugin, type Context, type Editor, type ContextPluginDependencies } from 'ckeditor5/src/core';
5
- import { Collection } from 'ckeditor5/src/utils';
6
- import { type CommentThread } from './commentsrepository';
7
- /**
8
- * This plugin handles all operations on resolved threads needed for the comments archive.
9
- */
10
- export default class CommentsArchive extends ContextPlugin {
11
- resolvedThreads: Collection<CommentThread>;
12
- /**
13
- * @inheritDoc
14
- */
15
- static get pluginName(): 'CommentsArchive';
16
- /**
17
- * @inheritDoc
18
- */
19
- static get requires(): ContextPluginDependencies;
20
- constructor(context: Context | Editor);
21
- /**
22
- * @inheritDoc
23
- */
24
- init(): void;
25
- }
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 _0x48a1=['add','get','addCommentThread','isActive','has','resolveCommentThread','highest','listenTo','_calculatePosition','remove','pluginName','reopenCommentThread','focus','collection','plugins','context','resolvedThreads','getCommentThread','resolvedAt'];(function(_0x2477e6,_0x48a1dc){const _0x1fbe6e=function(_0x2da527){while(--_0x2da527){_0x2477e6['push'](_0x2477e6['shift']());}};_0x1fbe6e(++_0x48a1dc);}(_0x48a1,0xfd));const _0x1fbe=function(_0x2477e6,_0x48a1dc){_0x2477e6=_0x2477e6-0x0;let _0x1fbe6e=_0x48a1[_0x2477e6];return _0x1fbe6e;};import{ContextPlugin as _0x3fb0c6}from'ckeditor5/src/core';import{Collection as _0xa35cd7}from'ckeditor5/src/utils';import _0x1138c5 from'./commentsrepository';import _0x3ddf80 from'../annotations/annotations';export default class p extends _0x3fb0c6{static get[_0x1fbe('0x4')](){return'CommentsArchive';}static get['requires'](){return[_0x1138c5,_0x3ddf80];}constructor(_0x140f87){super(_0x140f87),this[_0x1fbe('0xa')]=new _0xa35cd7();}['init'](){const _0x18cd5b=this[_0x1fbe('0x9')],_0x28644a=_0x18cd5b[_0x1fbe('0x8')][_0x1fbe('0xe')](_0x1138c5),_0x1204fe=_0x18cd5b['plugins'][_0x1fbe('0xe')](_0x3ddf80);this[_0x1fbe('0x1')](_0x28644a,_0x1fbe('0xf'),(_0x2a025b,{threadId:_0x2578b6,resolvedAt:_0x486812,deletedAt:_0x914480})=>{if(_0x486812&&!_0x914480){const _0x2985a3=_0x28644a['getCommentThread'](_0x2578b6);this[_0x1fbe('0xa')]['add'](_0x2985a3,this[_0x1fbe('0x2')](_0x486812));}}),this[_0x1fbe('0x1')](_0x28644a,_0x1fbe('0x12'),(_0x1fa4b1,{threadId:_0x405ca8,resolvedAt:_0x28a33f})=>{const _0x4d4d54=_0x28644a[_0x1fbe('0xb')](_0x405ca8);this[_0x1fbe('0xa')][_0x1fbe('0xd')](_0x4d4d54,this['_calculatePosition'](_0x28a33f));},{'priority':_0x1fbe('0x0')}),this['listenTo'](_0x28644a,_0x1fbe('0x5'),(_0xb47fe7,{threadId:_0x3c1511})=>{const _0x3905d5=_0x28644a[_0x1fbe('0xb')](_0x3c1511);this[_0x1fbe('0xa')][_0x1fbe('0x11')](_0x3905d5)&&this[_0x1fbe('0xa')][_0x1fbe('0x3')](_0x3905d5);},{'priority':_0x1fbe('0x0')}),this[_0x1fbe('0x1')](_0x28644a,'removeCommentThread',(_0x17893c,{threadId:_0x350553})=>{const _0x5920ee=_0x28644a[_0x1fbe('0xb')](_0x350553);this[_0x1fbe('0xa')][_0x1fbe('0x11')](_0x5920ee)&&this[_0x1fbe('0xa')][_0x1fbe('0x3')](_0x5920ee);},{'priority':'highest'}),this[_0x1fbe('0x1')](_0x1204fe[_0x1fbe('0x7')],_0x1fbe('0x6'),(_0x157147,_0x539300)=>{_0x539300[_0x1fbe('0x10')]=!0x0,_0x1204fe['activate'](_0x539300);});}['_calculatePosition'](_0xaaf86){const _0x3b70b1=[...this[_0x1fbe('0xa')]]['findIndex'](_0x5026ee=>_0x5026ee[_0x1fbe('0xc')]<_0xaaf86);return _0x3b70b1>-0x1?_0x3b70b1:this[_0x1fbe('0xa')]['length'];}}
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,32 +1,34 @@
1
- /**
2
- * @module comments/comments/commentsarchiveui
3
- */
4
- import '../../theme/commentsarchive.css';
5
- import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
6
- import { ViewCollection } from 'ckeditor5/src/ui';
7
- import CommentsArchiveView from './ui/view/commentsarchiveview';
8
- import type AnnotationView from '../annotations/view/annotationview';
9
- /**
10
- * Creates comments archive {@link module:ui/dropdown/dropdownview~DropdownView ui dropdown} and binds with
11
- * {@link module:comments/comments/commentsarchive~resolvedThreadAnnotationViews}.
12
- */
13
- export default class CommentsArchiveUI extends Plugin {
14
- commentsArchiveView: CommentsArchiveView | undefined;
15
- annotationViews: ViewCollection<AnnotationView>;
16
- /**
17
- * @inheritDoc
18
- */
19
- static get pluginName(): 'CommentsArchiveUI';
20
- /**
21
- * @inheritDoc
22
- */
23
- static get requires(): PluginDependencies;
24
- /**
25
- * @inheritDoc
26
- */
27
- constructor(editor: Editor);
28
- /**
29
- * @inheritDoc
30
- */
31
- init(): void;
32
- }
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 _0x577f=['listenTo','mousedown','add','init','ck-comments-archive-dropdown','componentFactory','channelId','element','collaboration.channelId','plugins','innerView','commentsArchiveView','config','resolvedThreads','high','editor','_threadToController','_pendingThreads','commentsArchive','stop','locale','getByInnerView','querySelectorAll','_createArchiveUIDropdown','focusTracker','push','change:isFocused','forEach','pluginName','remove','isOpen','panelView','COMMENTS_ARCHIVE','collection','render','requires','annotationViews','CommentsRepository','stopListening','get','view','.ck.ck-body','buttonView','splice'];(function(_0x23c91c,_0x577f48){const _0xdced94=function(_0xda9e90){while(--_0xda9e90){_0x23c91c['push'](_0x23c91c['shift']());}};_0xdced94(++_0x577f48);}(_0x577f,0xfa));const _0xdced=function(_0x23c91c,_0x577f48){_0x23c91c=_0x23c91c-0x0;let _0xdced94=_0x577f[_0x23c91c];return _0xdced94;};import'../../theme/commentsarchive.css';import{Plugin as _0x2bcce6}from'ckeditor5/src/core';import{createDropdown as _0x5e37c1,clickOutsideHandler as _0x2958b6,ViewCollection as _0x58b15a}from'ckeditor5/src/ui';import _0x6e63e from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x5e3d14}from'../utils/common-translations';import _0x3b06a8 from'./ui/view/commentsarchiveview';import _0x1aba02 from'./commentsarchive';export default class a extends _0x2bcce6{static get[_0xdced('0x2a')](){return'CommentsArchiveUI';}static get[_0xdced('0x5')](){return[_0x1aba02];}constructor(_0x558a17){super(_0x558a17),this[_0xdced('0x6')]=new _0x58b15a(),this[_0xdced('0x1f')]=[];}[_0xdced('0x11')](){this['editor']['ui'][_0xdced('0x13')]['add'](_0xdced('0x20'),()=>this[_0xdced('0x25')]());const _0xdc0a71=this[_0xdced('0x1d')][_0xdced('0x17')][_0xdced('0x9')](_0x1aba02),_0x559c74=this[_0xdced('0x1d')][_0xdced('0x17')][_0xdced('0x9')]('Annotations'),_0x579d74=this['editor'][_0xdced('0x17')]['get'](_0xdced('0x7'));this[_0xdced('0xe')](_0xdc0a71['resolvedThreads'],_0xdced('0x10'),(_0x2aa837,_0x5bcbdf,_0x1d0029)=>{const _0x2f1603=this['editor'][_0xdced('0x1a')][_0xdced('0x9')](_0xdced('0x16'));if(!_0x2f1603||_0x5bcbdf['channelId']===_0x2f1603){const _0xed162d=_0x579d74['_threadToController'][_0xdced('0x9')](_0x5bcbdf);if(!_0xed162d)return void this[_0xdced('0x1f')][_0xdced('0x27')]({'thread':_0x5bcbdf,'position':_0x1d0029});const _0x483a55=_0x559c74['getByInnerView'](_0xed162d[_0xdced('0xa')]);_0x483a55['isVisible']?this[_0xdced('0xe')](_0x483a55,'change:isVisible',(_0x1f10cd,_0x3233d2,_0xb2b85d)=>{_0xb2b85d||(this[_0xdced('0x6')]['add'](_0x483a55[_0xdced('0xa')],_0x1d0029),this[_0xdced('0x8')](_0x483a55));}):this['annotationViews'][_0xdced('0x10')](_0x483a55[_0xdced('0xa')],_0x1d0029);}}),this['listenTo'](_0x559c74[_0xdced('0x3')],'add',(_0x28f760,_0x5ce52a)=>{this[_0xdced('0x1f')][_0xdced('0x29')](({thread:_0x41c7a9,position:_0xa0cc67},_0x2ef5fc)=>{const _0x29391c=_0x579d74[_0xdced('0x1e')][_0xdced('0x9')](_0x41c7a9);_0x29391c&&_0x5ce52a[_0xdced('0x18')]===_0x29391c['view']&&(this[_0xdced('0x6')][_0xdced('0x10')](_0x5ce52a['view'],_0xa0cc67),this[_0xdced('0x1f')][_0xdced('0xd')](_0x2ef5fc,0x1));});}),this[_0xdced('0xe')](_0xdc0a71[_0xdced('0x1b')],_0xdced('0x2b'),(_0x161210,_0x182d47)=>{const _0x195e78=this[_0xdced('0x1d')][_0xdced('0x1a')]['get']('collaboration.channelId');if(!_0x195e78||_0x182d47[_0xdced('0x14')]===_0x195e78){const _0x238dd0=_0x579d74[_0xdced('0x1e')][_0xdced('0x9')](_0x182d47),_0x40bf80=_0x559c74[_0xdced('0x23')](_0x238dd0[_0xdced('0xa')])['view'];this[_0xdced('0x6')]['remove'](_0x40bf80);}});}[_0xdced('0x25')](){const _0x2b7d36=this[_0xdced('0x1d')],_0x2ce495=_0x5e37c1(_0x2b7d36[_0xdced('0x22')]);return _0x2ce495['on'](_0xdced('0x4'),()=>{_0x2ce495['stopListening'](document,_0xdced('0xf')),_0x2958b6({'emitter':_0x2ce495,'activator':()=>_0x2ce495[_0xdced('0x0')],'callback':()=>{_0x2ce495[_0xdced('0x0')]=!0x1;},'contextElements':()=>[_0x2ce495[_0xdced('0x15')],...document[_0xdced('0x24')](_0xdced('0xb'))]});}),_0x2ce495[_0xdced('0x26')]['on'](_0xdced('0x28'),_0x3283e3=>{_0x3283e3[_0xdced('0x21')]();},{'priority':_0xdced('0x1c')}),_0x2ce495[_0xdced('0xc')]['set']({'icon':_0x6e63e,'label':_0x5e3d14(_0x2b7d36[_0xdced('0x22')],_0xdced('0x2')),'tooltip':!0x0}),_0x2ce495[_0xdced('0x1')]['extendTemplate']({'attributes':{'class':_0xdced('0x12')}}),_0x2ce495['on']('change:isOpen',(_0x3facea,_0x217a5e,_0x3bbdb6)=>{this['commentsArchiveView']||(this[_0xdced('0x19')]=new _0x3b06a8(_0x2b7d36[_0xdced('0x22')],this['annotationViews'])),_0x3bbdb6?_0x2ce495[_0xdced('0x1')]['children'][_0xdced('0x10')](this[_0xdced('0x19')]):_0x2ce495[_0xdced('0x1')]['children'][_0xdced('0x2b')](this[_0xdced('0x19')]);}),_0x2ce495;}}
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,71 +1,75 @@
1
- /**
2
- * @module comments/comments/commentsediting
3
- */
4
- import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
5
- import type { Marker } from 'ckeditor5/src/engine';
6
- import '../../theme/commentmarker.css';
7
- /**
8
- * Plugin that keeps in sync comments in {@link module:comments/comments/commentsrepository~CommentsRepository} with
9
- * {@link module:engine/model/markercollection~Marker comment markers}.
10
- */
11
- export default class CommentsEditing extends Plugin {
12
- /**
13
- * If set to `true`, the plugin won't load comment thread for the new marker immediately after the marker is added to the editor.
14
- * Instead, the plugin will wait until the flag will be set to `false` and then load missing comments.
15
- *
16
- * It's useful to hold fetching comments from the server when comments are used with real-time collaboration.
17
- * When a user connects to an existing document, the operations from the history need to be applied one by one.
18
- * An operation which added a new comment marker might be followed by an operation which removes that marker, so it's not
19
- * necessary to make an additional request then.
20
- *
21
- * @observable
22
- */
23
- isThreadsLoadingPaused: boolean;
24
- /**
25
- * Name of the active comment marker.
26
- *
27
- * Markers conversion checks if comment should be marked as active and adds/removes additional css class during the conversion.
28
- *
29
- * @observable
30
- */
31
- activeMarker: string | null;
32
- /**
33
- * @inheritDoc
34
- */
35
- static get requires(): PluginDependencies;
36
- /**
37
- * @inheritDoc
38
- */
39
- static get pluginName(): 'CommentsEditing';
40
- /**
41
- * @inheritDoc
42
- */
43
- constructor(editor: Editor);
44
- /**
45
- * @inheritDoc
46
- */
47
- init(): void;
48
- /**
49
- * @inheritDoc
50
- */
51
- destroy(): void;
52
- /**
53
- * Returns `true` if there is at least one marker in the content that is related to a comment thread with given `threadId`.
54
- *
55
- * @param threadId Comment thread id.
56
- */
57
- hasMarkerForId(threadId: string): boolean;
58
- /**
59
- * Returns all markers that are related to the comment thread with the given `threadId`.
60
- *
61
- * @param threadId Comment thread id.
62
- * @returns Array with all markers related to given comment thread.
63
- */
64
- getAllMarkersForId(threadId: string): Array<Marker>;
65
- /**
66
- * Scrolls editing view to the first thread marker.
67
- *
68
- * @param threadId Comment thread id.
69
- */
70
- scrollToThreadMarker(threadId: string): void;
71
- }
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 _0x1b47=['markers','reopenCommentThread','isCollapsed','isEqual','end','high','markerToData','ck-comment-marker--active','_threads','set','push','addComment','get','upcast','_hasTargetInContent','refreshVisibility','comment:','getItems','plugins','consumable','_attachedThreads','root','setContext','_initializeMarkerConverters','registerAnnotation','includes','comment','has','scrollToThreadMarker','resolve','markerName','length','addCommentThread','newRange','delete','editor','text','$textProxy','getCommentThread','activeMarker','isResolved','editing','view','attachTo','once','collaboration.channelId','createRange','removeMarker','filter','change:isReadOnly','data','focus','then','_attachMarkerToThread','low','document','dataToMarker','schema','getAttribute','from','conversion','registerPostFixer','getCommentThreads','removeCommentThread','map','getChangedMarkers','differ','getAllMarkersForId','getWalker','ignoreResolvedComments','addMarker:','dataDowncast','getByInnerView','_threadToController','commands','add','hasMarkerForId','for','fetchCommentThread','model','$graveyard','_getTextContext','substring','reconvertMarker','createPositionBefore','CommentsEditing','consume','_handleThreadMarker','affectsData','config','ck-comment-marker','size','editingDowncast','start','elementToElement','destroy','enqueueChange','listenTo','hasDomSelection','createElement','split','change','ready','_handleMarkerAddAndRemove','getRange','resolveCommentThread','item','managedUsingOperations','render','isThreadsLoadingPaused','_getTargetForId','updateMarker','$marker'];(function(_0xdec847,_0x1b474a){const _0x4d0f3e=function(_0x53b8ca){while(--_0x53b8ca){_0xdec847['push'](_0xdec847['shift']());}};_0x4d0f3e(++_0x1b474a);}(_0x1b47,0x9e));const _0x4d0f=function(_0xdec847,_0x1b474a){_0xdec847=_0xdec847-0x0;let _0x4d0f3e=_0x1b47[_0xdec847];return _0x4d0f3e;};import{Plugin as _0x4497cf}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2f7256}from'ckeditor5/src/utils';import _0x54e255 from'./commentsrepository';import _0x522ff5 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x253c05}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c74e4 from'../annotations/editorannotations';import _0x4fa397 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x5def8f from'./integrations/importword';import _0x39f743 from'../annotations/annotations';export default class r extends _0x4497cf{static get['requires'](){return[_0x54e255,_0x1c74e4,_0x4fa397,_0x5def8f];}static get['pluginName'](){return _0x4d0f('0x28');}constructor(_0x3b4047){super(_0x3b4047),this['set'](_0x4d0f('0x40'),!0x0),_0x3b4047[_0x4d0f('0x5')]['once'](_0x4d0f('0x39'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x4d0f('0x6b'),null),this['on']('change:activeMarker',(_0x2d95f2,_0x196811,_0xb4823,_0xa65089)=>{const _0xa5af14=_0xb4823?ot(_0xb4823)['id']:null;if(_0x3b4047[_0x4d0f('0x22')][_0x4d0f('0x38')](()=>{if(_0xa5af14){const _0x54bbd3=this['getAllMarkersForId'](_0xa5af14);for(const _0x59c37b of _0x54bbd3)_0x3b4047[_0x4d0f('0x6d')][_0x4d0f('0x26')](_0x59c37b);}if(_0xa65089){const {id:_0x16edd4}=ot(_0xa65089),_0x55a47a=this[_0x4d0f('0x16')](_0x16edd4);for(const _0x567aed of _0x55a47a)_0x3b4047[_0x4d0f('0x6d')][_0x4d0f('0x26')](_0x567aed);}}),_0xa5af14){const _0xe8c19f=_0x3b4047[_0x4d0f('0x56')]['get'](_0x54e255)[_0x4d0f('0x6a')](_0xa5af14);_0xe8c19f&&_0xe8c19f['isResolved']&&this['scrollToThreadMarker'](_0xa5af14);}}),this['_attachedThreads']=new Map();}['init'](){const _0x11cb71=this['editor'],_0x4b81c3=_0x11cb71[_0x4d0f('0x56')]['get'](_0x54e255),_0x1772e6=_0x11cb71[_0x4d0f('0x2c')][_0x4d0f('0x50')](_0x4d0f('0x0'));_0x11cb71[_0x4d0f('0x1d')][_0x4d0f('0x1e')](_0x4d0f('0x64'),new _0x522ff5(_0x11cb71)),this[_0x4d0f('0x34')](_0x11cb71,_0x4d0f('0x4'),(_0x587a4b,_0x448975,_0x5e55d8)=>{_0x4b81c3['switchReadOnly'](_0x5e55d8,_0x11cb71['config'][_0x4d0f('0x50')](_0x4d0f('0x0')));}),this['listenTo'](_0x4b81c3,tt(_0x4d0f('0x64'),_0x1772e6),(_0x108ac3,{threadId:_0x23c8a9})=>{const _0xc8f2e8=_0x11cb71[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x1c74e4),_0x359402=this[_0x4d0f('0x67')][_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255)['getCommentThread'](_0x23c8a9);if(_0x359402&&_0x359402['isResolved']&&!this[_0x4d0f('0x58')][_0x4d0f('0x5f')](_0x23c8a9)){const _0x477c36=_0x359402[_0x4d0f('0x6f')](()=>this[_0x4d0f('0x41')](_0x359402['id']));_0xc8f2e8['registerAnnotation'](_0x477c36),this['_attachedThreads']['set'](_0x23c8a9,[]),0x0===this[_0x4d0f('0x16')](_0x23c8a9)[_0x4d0f('0x63')]&&(_0x359402[_0x4d0f('0x52')]=!0x1);}}),this[_0x4d0f('0x34')](_0x4b81c3,tt(_0x4d0f('0x12'),_0x1772e6),(_0x3d4f65,{threadId:_0x5c06e2})=>{_0x11cb71[_0x4d0f('0x22')]['enqueueChange']({'isUndoable':!0x1},_0x2b5c7c=>{const _0xc3827=this[_0x4d0f('0x16')](_0x5c06e2);this[_0x4d0f('0x58')]['delete'](_0x5c06e2);for(const _0x235029 of _0xc3827)_0x2b5c7c[_0x4d0f('0x2')](_0x235029);});},{'priority':_0x4d0f('0x49')}),this[_0x4d0f('0x34')](_0x4b81c3,tt(_0x4d0f('0x3c'),_0x1772e6),(_0x3ca3a9,{threadId:_0x1fe638})=>{this['_reconvertMarkers'](_0x1fe638),this[_0x4d0f('0x67')][_0x4d0f('0x6d')][_0x4d0f('0x6e')][_0x4d0f('0x35')]&&this[_0x4d0f('0x67')][_0x4d0f('0x6d')][_0x4d0f('0x6e')][_0x4d0f('0x6')]();},{'priority':_0x4d0f('0x9')}),this[_0x4d0f('0x34')](_0x4b81c3,tt(_0x4d0f('0x45'),_0x1772e6),(_0x316ebd,{threadId:_0x391091})=>{this['_reconvertMarkers'](_0x391091);},{'priority':_0x4d0f('0x9')}),this[_0x4d0f('0x34')](_0x4b81c3,tt(_0x4d0f('0x4f'),_0x1772e6),(_0x571ec1,{threadId:_0xbe6e7a,isFromAdapter:_0xf7a045})=>{const _0x4f858a=this[_0x4d0f('0x16')](_0xbe6e7a);if(_0xf7a045||0x0==_0x4f858a[_0x4d0f('0x63')]||!_0x4b81c3['hasCommentThread'](_0xbe6e7a))return;0x1===_0x4b81c3[_0x4d0f('0x6a')](_0xbe6e7a)[_0x4d0f('0x63')]&&_0x11cb71[_0x4d0f('0x22')][_0x4d0f('0x33')]({'isUndoable':!0x1},_0x407873=>{for(const _0x3a8885 of _0x4f858a)_0x407873[_0x4d0f('0x42')](_0x3a8885,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x4d0f('0x9')}),this[_0x4d0f('0x5b')](),this[_0x4d0f('0x3a')]();}['destroy'](){const _0x4eed6e=this[_0x4d0f('0x67')][_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255),_0x541492=this[_0x4d0f('0x67')][_0x4d0f('0x2c')][_0x4d0f('0x50')]('collaboration.channelId');for(const _0x28bdfd of _0x4eed6e[_0x4d0f('0x11')]({'channelId':_0x541492}))_0x4eed6e['_detachCommentThread'](_0x28bdfd['id']),_0x4eed6e[_0x4d0f('0x4c')][_0x4d0f('0x66')](_0x28bdfd['id']);super[_0x4d0f('0x32')]();}['hasMarkerForId'](_0xf7f0de){return this[_0x4d0f('0x16')](_0xf7f0de)[_0x4d0f('0x63')]>0x0;}['getAllMarkersForId'](_0x65e10d){return(this[_0x4d0f('0x58')][_0x4d0f('0x50')](_0x65e10d)||[])[_0x4d0f('0x13')](_0x2ba522=>this[_0x4d0f('0x67')][_0x4d0f('0x22')][_0x4d0f('0x44')]['get'](_0x2ba522))[_0x4d0f('0x3')](_0x3c58f3=>_0x3c58f3);}[_0x4d0f('0x60')](_0x32867f){const _0x1dca8f=this[_0x4d0f('0x41')](_0x32867f);_0x1dca8f&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x4d0f('0x6b')])['id']===_0x32867f&&_0x2f7256({'target':_0x1dca8f[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x10d04a){this[_0x4d0f('0x67')][_0x4d0f('0x22')][_0x4d0f('0x38')](()=>{for(const _0x3eb0b8 of this[_0x4d0f('0x16')](_0x10d04a))this[_0x4d0f('0x67')][_0x4d0f('0x6d')][_0x4d0f('0x26')](_0x3eb0b8);});}['_initializeMarkerConverters'](){const _0x10d465=this[_0x4d0f('0x67')];_0x10d465[_0x4d0f('0xf')][_0x4d0f('0x20')](_0x4d0f('0x2f'))['markerToHighlight']({'model':_0x4d0f('0x5e'),'view':(_0xc8a9cc,_0x46d62b)=>{const {id:_0x190907}=ot(_0xc8a9cc['markerName']),_0x4ed419=_0x10d465[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255)[_0x4d0f('0x6a')](_0x190907),_0x44117a=this[_0x4d0f('0x6b')]&&ot(this['activeMarker'])['id']===_0x190907;if(_0x4ed419&&_0x4ed419[_0x4d0f('0x6c')]&&!_0x44117a&&_0xc8a9cc[_0x4d0f('0x3d')])return _0x46d62b[_0x4d0f('0x57')][_0x4d0f('0x29')](_0xc8a9cc['item'],_0x4d0f('0x19')+_0xc8a9cc[_0x4d0f('0x62')]),_0x46d62b[_0x4d0f('0x57')]['consume'](_0xc8a9cc['item'],'removeMarker:'+_0xc8a9cc[_0x4d0f('0x62')]),{'classes':[]};const _0x43fd99=[_0x4d0f('0x2d')];return _0x44117a&&_0x43fd99['push'](_0x4d0f('0x4b')),{'classes':_0x43fd99,'attributes':{'data-comment':_0x190907}};}}),_0x10d465['conversion'][_0x4d0f('0x20')](_0x4d0f('0x1a'))[_0x4d0f('0x4a')]({'model':_0x4d0f('0x5e'),'view':(_0x41bd4d,{options:_0x4b1b5e})=>{const _0x22e6b7=_0x10d465[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255),_0x5257ea=_0x10d465[_0x4d0f('0x22')][_0x4d0f('0x44')][_0x4d0f('0x50')](_0x41bd4d),{id:_0x365e69,part:_0x27d53f}=ot(_0x41bd4d),_0x46a712=_0x22e6b7[_0x4d0f('0x6a')](_0x365e69);return _0x5257ea&&!_0x5257ea[_0x4d0f('0x2b')]||_0x46a712&&_0x46a712[_0x4d0f('0x6c')]&&_0x4b1b5e[_0x4d0f('0x18')]?null:{'group':_0x4d0f('0x5e'),'name':_0x27d53f?_0x365e69+':'+_0x27d53f:_0x365e69};}}),_0x10d465[_0x4d0f('0xf')][_0x4d0f('0x20')](_0x4d0f('0x51'))[_0x4d0f('0x31')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x13b1c1,{writer:_0x1feda6})=>_0x1feda6[_0x4d0f('0x36')](_0x4d0f('0x43'),{'data-name':_0x4d0f('0x54')+_0x13b1c1[_0x4d0f('0xd')]('id')})}),_0x10d465['conversion'][_0x4d0f('0x20')]('upcast')[_0x4d0f('0xb')]({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x1f20d2=this[_0x4d0f('0x67')],_0x46ee56=_0x1f20d2[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255),_0x5c6d21=new Set();_0x1f20d2['model']['document'][_0x4d0f('0x10')](_0x1860a8=>{let _0x293d94=!0x1;for(const {name:_0x28399d,data:_0x2e08ee}of _0x1f20d2['model'][_0x4d0f('0xa')][_0x4d0f('0x15')][_0x4d0f('0x14')]()){const {group:_0xbeb272,id:_0x1cb389}=ot(_0x28399d);let _0xe2cceb=_0x2e08ee['newRange'];if(_0x4d0f('0x5e')!==_0xbeb272||!_0xe2cceb)continue;const _0xe8d1d1=_0x4d0f('0x23')===_0xe2cceb[_0x4d0f('0x59')]['rootName'];_0xe8d1d1||(_0xe2cceb=et(_0xe2cceb,_0x1f20d2['model']),!_0xe2cceb||!_0x2e08ee[_0x4d0f('0x65')]||_0xe2cceb[_0x4d0f('0x47')](_0x2e08ee['newRange']))?!_0xe2cceb||!_0x1f20d2[_0x4d0f('0x22')]['hasContent'](_0xe2cceb)||this[_0x4d0f('0x58')][_0x4d0f('0x5f')](_0x1cb389)&&_0xe8d1d1?(_0x1860a8[_0x4d0f('0x2')](_0x28399d),_0x293d94=!0x0):_0xe8d1d1||(this[_0x4d0f('0x40')]?_0x5c6d21['add'](_0x28399d):this[_0x4d0f('0x2a')](_0x28399d,_0x1cb389)):(_0x1860a8[_0x4d0f('0x42')](_0x28399d,{'range':_0xe2cceb}),_0x293d94=!0x0);}return _0x293d94;}),this['on']('change:isThreadsLoadingPaused',(_0x5132ef,_0x3667ad,_0x3a81b8)=>{if(!_0x3a81b8&&_0x5c6d21[_0x4d0f('0x2e')])for(const _0x130e0d of _0x5c6d21){const {id:_0x294a99}=ot(_0x130e0d);_0x5c6d21[_0x4d0f('0x66')](_0x294a99),_0x1f20d2['model'][_0x4d0f('0x44')]['get'](_0x130e0d)&&this[_0x4d0f('0x2a')](_0x130e0d,_0x294a99);}}),this['listenTo'](_0x1f20d2[_0x4d0f('0x22')][_0x4d0f('0xa')],'change',(_0x316967,_0x20d34e)=>{for(const {name:_0x658046,data:{newRange:_0x33fc49}}of _0x1f20d2['model'][_0x4d0f('0xa')][_0x4d0f('0x15')][_0x4d0f('0x14')]()){const {group:_0x53ecf9,id:_0xb4f7d2}=ot(_0x658046);if(_0x4d0f('0x5e')!==_0x53ecf9)continue;const _0x45eaa3=_0x46ee56['getCommentThread'](_0xb4f7d2),_0x3ec9f9=this[_0x4d0f('0x1f')](_0xb4f7d2);_0x45eaa3&&(_0x45eaa3[_0x4d0f('0x52')]||_0x1f20d2[_0x4d0f('0x6d')][_0x4d0f('0x6e')]['once'](_0x4d0f('0x3f'),()=>{const _0x5a32b7=_0x1f20d2[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x39f743),_0xdfecb9=_0x46ee56[_0x4d0f('0x1c')][_0x4d0f('0x50')](_0x45eaa3)[_0x4d0f('0x6e')];_0x5a32b7[_0x4d0f('0x1b')](_0xdfecb9)[_0x4d0f('0x53')]();},{'priority':_0x4d0f('0x9')}),_0x45eaa3[_0x4d0f('0x52')]=_0x3ec9f9||!!_0x33fc49),!_0x33fc49&&_0x20d34e['isLocal']&&(_0x5c6d21[_0x4d0f('0x66')](_0xb4f7d2),_0x45eaa3&&!_0x45eaa3[_0x4d0f('0x6c')]&&!_0x3ec9f9&&this[_0x4d0f('0x58')]['has'](_0xb4f7d2)&&(this[_0x4d0f('0x58')]['delete'](_0xb4f7d2),_0x45eaa3[_0x4d0f('0x61')]()));}});}[_0x4d0f('0x41')](_0x51636f){const _0x17808d=this[_0x4d0f('0x67')],_0x418222=this['getAllMarkersForId'](_0x51636f);return _0x253c05(_0x17808d[_0x4d0f('0x6d')],_0x418222);}[_0x4d0f('0x24')](_0x494309){const _0x22afbd=this['getAllMarkersForId'](_0x494309);let _0x140d36='',_0x1b69bc=!0x1;for(const _0x1a2042 of _0x22afbd){const _0x51d069=_0x1a2042[_0x4d0f('0x3b')]();for(const _0x119c68 of Array[_0x4d0f('0xe')](_0x51d069[_0x4d0f('0x55')]()))_0x119c68['is'](_0x4d0f('0x69'))?(_0x140d36&&_0x1b69bc&&(_0x140d36+='\x20',_0x1b69bc=!0x1),_0x140d36+=_0x119c68[_0x4d0f('0x5')]):_0x1b69bc=!0x0;_0x1b69bc=!0x0;}return _0x140d36[_0x4d0f('0x25')](0x0,0x96);}[_0x4d0f('0x8')](_0x3a0657,_0x116ee9){const _0x2c9def=this[_0x4d0f('0x67')],_0x4146e0=_0x2c9def[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255);let _0x5a3d8d=_0x4146e0[_0x4d0f('0x6a')](_0x116ee9);if(this[_0x4d0f('0x58')]['has'](_0x116ee9)){const _0x54a613=this['_attachedThreads'][_0x4d0f('0x50')](_0x116ee9);return _0x54a613[_0x4d0f('0x5d')](_0x3a0657)||_0x54a613[_0x4d0f('0x4e')](_0x3a0657),_0x5a3d8d;}this['_attachedThreads'][_0x4d0f('0x4d')](_0x116ee9,[_0x3a0657]);const _0x2782d9=_0x2c9def[_0x4d0f('0x2c')][_0x4d0f('0x50')](_0x4d0f('0x0')),_0x18710c=_0x2c9def[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x1c74e4);if(_0x5a3d8d&&_0x5a3d8d[_0x4d0f('0x6c')])return _0x5a3d8d['reopen'](),_0x5a3d8d;return!this[_0x4d0f('0x16')](_0x116ee9)[0x0][_0x4d0f('0x3e')]?_0x2c9def[_0x4d0f('0x6d')][_0x4d0f('0x6e')][_0x4d0f('0x70')]('render',()=>{const _0x4ef953=_0x2c9def[_0x4d0f('0x56')]['get'](_0x39f743);_0x5a3d8d=_0x4146e0['openNewCommentThread']({'channelId':_0x2782d9,'threadId':_0x116ee9,'target':()=>this[_0x4d0f('0x41')](_0x116ee9),'context':{'type':_0x4d0f('0x68'),'value':this[_0x4d0f('0x24')](_0x116ee9)}});const _0x2e88a9=_0x4146e0['_threadToController'][_0x4d0f('0x50')](_0x5a3d8d)[_0x4d0f('0x6e')],_0x3362b4=_0x4ef953[_0x4d0f('0x1b')](_0x2e88a9);_0x3362b4&&_0x18710c[_0x4d0f('0x5c')](_0x3362b4);},{'priority':'low'}):_0x4146e0[_0x4d0f('0x21')]({'channelId':_0x2782d9,'threadId':_0x116ee9})[_0x4d0f('0x7')](_0x212204=>{if('destroyed'!==_0x2c9def['state']){if(_0x5a3d8d=_0x212204,_0x5a3d8d){const _0x1b550e=_0x5a3d8d[_0x4d0f('0x6f')](()=>this['_getTargetForId'](_0x116ee9));_0x18710c[_0x4d0f('0x5c')](_0x1b550e),_0x5a3d8d[_0x4d0f('0x6c')]&&this['_reconvertMarkers'](_0x116ee9);}else{const _0x2812e6=this[_0x4d0f('0x16')](_0x116ee9);_0x2c9def['model'][_0x4d0f('0x38')](_0x2dd636=>{for(const _0x181d69 of _0x2812e6)_0x2dd636[_0x4d0f('0x2')](_0x181d69);});}}}),_0x5a3d8d;}[_0x4d0f('0x2a')](_0xdc863c,_0x16de4b){const _0x1372ce=this[_0x4d0f('0x8')](_0xdc863c,_0x16de4b);_0x1372ce&&!_0x1372ce['context']&&_0x1372ce[_0x4d0f('0x5a')]({'type':_0x4d0f('0x68'),'value':this[_0x4d0f('0x24')](_0x16de4b)});}}function tt(_0x39d02d,_0x51c659){return _0x51c659?_0x39d02d+':'+_0x51c659:_0x39d02d;}function ot(_0xfc4e50){const _0x23eed2=_0xfc4e50[_0x4d0f('0x37')](':');return{'group':_0x23eed2[0x0],'id':_0x23eed2[0x1],'part':_0x23eed2[0x2]};}function et(_0x2226bb,_0x2ac3dc){const _0x48de27=_0x2ac3dc[_0x4d0f('0xc')],_0x5a1b22=_0x2ac3dc[_0x4d0f('0x1')](_0x2226bb[_0x4d0f('0x30')]);for(const _0x1c4731 of _0x2226bb[_0x4d0f('0x17')]()){const {type:_0x367ee1,item:_0xa5b165,nextPosition:_0x3408c0}=_0x1c4731;if(_0x4d0f('0x68')===_0x367ee1||_0x48de27['isObject'](_0xa5b165)){const _0x1bd2db=_0x2ac3dc[_0x4d0f('0x27')](_0xa5b165);_0x5a1b22[_0x4d0f('0x46')]&&(_0x5a1b22['start']=_0x1bd2db),_0x5a1b22[_0x4d0f('0x48')]=_0x3408c0;}}return _0x5a1b22[_0x4d0f('0x46')]?null:_0x5a1b22;}
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;}