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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +4 -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/index.js +1 -1
  83. package/src/utils/common-translations.d.ts +5 -5
  84. package/src/utils/common-translations.js +1 -1
  85. package/src/utils/createmutationobserver.d.ts +13 -13
  86. 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.js';
6
+ import { Collection } from 'ckeditor5/src/utils.js';
7
+ import CommentsRepository, { type CommentThread } from './commentsrepository.js';
8
+ import Annotations from '../annotations/annotations.js';
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 _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')];}}
23
+ const _0x47a6=['collection','pluginName','CommentsArchive','has','addCommentThread','highest','isActive','focus','remove','reopenCommentThread','listenTo','context','findIndex','requires','removeCommentThread','resolvedThreads','add','plugins','resolveCommentThread','get','getCommentThread','init','activate','_calculatePosition'];(function(_0x20f79f,_0x47a6b8){const _0x3febb0=function(_0x5d2791){while(--_0x5d2791){_0x20f79f['push'](_0x20f79f['shift']());}};_0x3febb0(++_0x47a6b8);}(_0x47a6,0xee));const _0x3feb=function(_0x20f79f,_0x47a6b8){_0x20f79f=_0x20f79f-0x0;let _0x3febb0=_0x47a6[_0x20f79f];return _0x3febb0;};import{ContextPlugin as _0x35eaa9}from'ckeditor5/src/core.js';import{Collection as _0x190c74}from'ckeditor5/src/utils.js';import _0x35d740 from'./commentsrepository.js';import _0x396880 from'../annotations/annotations.js';export default class p extends _0x35eaa9{static get[_0x3feb('0x3')](){return _0x3feb('0x4');}static get[_0x3feb('0xf')](){return[_0x35d740,_0x396880];}constructor(_0x4f9cec){super(_0x4f9cec),this[_0x3feb('0x11')]=new _0x190c74();}[_0x3feb('0x17')](){const _0x47e8bf=this[_0x3feb('0xd')],_0x5b0490=_0x47e8bf[_0x3feb('0x13')]['get'](_0x35d740),_0x528cd7=_0x47e8bf[_0x3feb('0x13')][_0x3feb('0x15')](_0x396880);this['listenTo'](_0x5b0490,_0x3feb('0x6'),(_0x547b7a,{threadId:_0x26c9dc,resolvedAt:_0x4d6b8c,deletedAt:_0x1ba313})=>{if(_0x4d6b8c&&!_0x1ba313){const _0x4123be=_0x5b0490[_0x3feb('0x16')](_0x26c9dc);this['resolvedThreads'][_0x3feb('0x12')](_0x4123be,this[_0x3feb('0x1')](_0x4d6b8c));}}),this[_0x3feb('0xc')](_0x5b0490,_0x3feb('0x14'),(_0x4a1b2a,{threadId:_0x41ebf2,resolvedAt:_0x4fa788})=>{const _0x5cb25e=_0x5b0490[_0x3feb('0x16')](_0x41ebf2);this['resolvedThreads'][_0x3feb('0x12')](_0x5cb25e,this[_0x3feb('0x1')](_0x4fa788));},{'priority':_0x3feb('0x7')}),this[_0x3feb('0xc')](_0x5b0490,_0x3feb('0xb'),(_0x5b34a5,{threadId:_0x5b6a5a})=>{const _0x22dabb=_0x5b0490['getCommentThread'](_0x5b6a5a);this[_0x3feb('0x11')]['has'](_0x22dabb)&&this['resolvedThreads'][_0x3feb('0xa')](_0x22dabb);},{'priority':_0x3feb('0x7')}),this[_0x3feb('0xc')](_0x5b0490,_0x3feb('0x10'),(_0x486940,{threadId:_0x4ec05f})=>{const _0x311668=_0x5b0490[_0x3feb('0x16')](_0x4ec05f);this[_0x3feb('0x11')][_0x3feb('0x5')](_0x311668)&&this['resolvedThreads'][_0x3feb('0xa')](_0x311668);},{'priority':'highest'}),this[_0x3feb('0xc')](_0x528cd7[_0x3feb('0x2')],_0x3feb('0x9'),(_0x1dc354,_0x3560e0)=>{_0x3560e0[_0x3feb('0x8')]=!0x0,_0x528cd7[_0x3feb('0x0')](_0x3560e0);});}[_0x3feb('0x1')](_0x39acca){const _0x4a9a86=[...this['resolvedThreads']][_0x3feb('0xe')](_0x57c2db=>_0x57c2db['resolvedAt']<_0x39acca);return _0x4a9a86>-0x1?_0x4a9a86:this[_0x3feb('0x11')]['length'];}}
@@ -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.js';
7
+ import { ViewCollection } from 'ckeditor5/src/ui.js';
8
+ import CommentsArchiveView from './ui/view/commentsarchiveview.js';
9
+ import CommentsArchive from './commentsarchive.js';
10
+ import type AnnotationView from '../annotations/view/annotationview.js';
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 _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;}}
23
+ const _0x4b6b=['_pendingThreads','focusTracker','channelId','_calculatePosition','mainView','resolvedThreads','push','contains','_visibleAnnotations','length','plugins','commentsArchive','findIndex','splice','stopListening','commentsArchiveView','view','getByInnerView','find','classList','listenTo','add','set','componentFactory','indexOf','config','_handleAnnotationFocusableElements','remove','resolvedAt','_threadToController','ck-body','isVisible','CommentsRepository','_createArchiveUIDropdown','buttonView','Annotations','extendTemplate','locale','position','filter','CommentsArchiveUI','annotationViews','focusableElements','init','collaboration.channelId','children','get','panelView','ck-comments-archive-dropdown','requires','collection','innerView','editor'];(function(_0x23edbf,_0x4b6bfb){const _0x31b644=function(_0x1d7538){while(--_0x1d7538){_0x23edbf['push'](_0x23edbf['shift']());}};_0x31b644(++_0x4b6bfb);}(_0x4b6b,0xfb));const _0x31b6=function(_0x23edbf,_0x4b6bfb){_0x23edbf=_0x23edbf-0x0;let _0x31b644=_0x4b6b[_0x23edbf];return _0x31b644;};import'../../theme/commentsarchive.css';import{Plugin as _0x1386cf}from'ckeditor5/src/core.js';import{createDropdown as _0xfdd7ae,ViewCollection as _0x2d96d7}from'ckeditor5/src/ui.js';import _0x17cb7e from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x191d55}from'../utils/common-translations.js';import _0x38ebbf from'./ui/view/commentsarchiveview.js';import _0x77ef81 from'./commentsarchive.js';export default class a extends _0x1386cf{static get['pluginName'](){return _0x31b6('0x1');}static get[_0x31b6('0xa')](){return[_0x77ef81];}constructor(_0x267e83){super(_0x267e83),this[_0x31b6('0x2')]=new _0x2d96d7(),this[_0x31b6('0xe')]=[];}[_0x31b6('0x4')](){this['editor']['ui'][_0x31b6('0x25')]['add'](_0x31b6('0x19'),()=>this[_0x31b6('0x2f')]());const _0x5a19c1=this[_0x31b6('0xd')][_0x31b6('0x18')][_0x31b6('0x7')](_0x77ef81),_0x3da6fa=this['editor'][_0x31b6('0x18')][_0x31b6('0x7')]('Annotations'),_0x3b85e5=this[_0x31b6('0xd')][_0x31b6('0x18')]['get'](_0x31b6('0x2e'));this[_0x31b6('0x22')](_0x5a19c1[_0x31b6('0x13')],_0x31b6('0x23'),(_0x26c432,_0x26b00a)=>{const _0x2f7e3f=this[_0x31b6('0xd')]['config']['get']('collaboration.channelId');if(!_0x2f7e3f||_0x26b00a[_0x31b6('0x10')]===_0x2f7e3f){const _0x24bfe3=this[_0x31b6('0x11')](_0x26b00a[_0x31b6('0x2a')]),_0x1c7895=_0x3b85e5[_0x31b6('0x2b')][_0x31b6('0x7')](_0x26b00a);if(!_0x1c7895)return void this[_0x31b6('0xe')][_0x31b6('0x14')]({'thread':_0x26b00a,'position':_0x24bfe3});const _0xd07772=_0x3da6fa[_0x31b6('0x1f')](_0x1c7895[_0x31b6('0x1e')]);_0xd07772[_0x31b6('0x2d')]&&_0x3da6fa[_0x31b6('0x16')]['remove'](_0xd07772),this[_0x31b6('0x2')][_0x31b6('0x23')](_0xd07772['view'],_0x24bfe3);}}),this[_0x31b6('0x22')](_0x3da6fa[_0x31b6('0xb')],_0x31b6('0x23'),(_0x3e0c74,_0x379a8d)=>{const _0xece318=this[_0x31b6('0xe')][_0x31b6('0x20')](({thread:_0x1d1e76})=>{const _0x2b85e5=_0x3b85e5['_threadToController'][_0x31b6('0x7')](_0x1d1e76);return _0x2b85e5&&_0x379a8d[_0x31b6('0xc')]===_0x2b85e5[_0x31b6('0x1e')];});_0xece318&&(this[_0x31b6('0x2')][_0x31b6('0x23')](_0x379a8d[_0x31b6('0x1e')],_0xece318[_0x31b6('0x34')]),this[_0x31b6('0xe')][_0x31b6('0x1b')](this[_0x31b6('0xe')][_0x31b6('0x26')](_0xece318),0x1));}),this['listenTo'](_0x5a19c1[_0x31b6('0x13')],_0x31b6('0x29'),(_0x3ff7dd,_0x4e2cf2)=>{const _0x419f80=this[_0x31b6('0xd')][_0x31b6('0x27')]['get'](_0x31b6('0x5'));if(!_0x419f80||_0x4e2cf2[_0x31b6('0x10')]===_0x419f80){const _0x2e6b34=_0x3b85e5[_0x31b6('0x2b')][_0x31b6('0x7')](_0x4e2cf2),_0x1427e4=_0x3da6fa[_0x31b6('0x1f')](_0x2e6b34['view']);this[_0x31b6('0x2')][_0x31b6('0x29')](_0x1427e4[_0x31b6('0x1e')]),this[_0x31b6('0x1c')](_0x1427e4[_0x31b6('0x3')]);}});}[_0x31b6('0x28')](_0x1c0613,_0x311ccc){for(const _0x42b52c of _0x311ccc[_0x31b6('0x3')])_0x42b52c[_0x31b6('0x21')][_0x31b6('0x15')](_0x31b6('0x2c'))&&_0x1c0613['focusTracker']['add'](_0x42b52c);this[_0x31b6('0x22')](_0x311ccc[_0x31b6('0x3')],_0x31b6('0x23'),(_0x1c47ec,_0x91b671)=>{_0x91b671['classList']['contains'](_0x31b6('0x2c'))&&_0x1c0613[_0x31b6('0xf')][_0x31b6('0x23')](_0x91b671);}),this[_0x31b6('0x22')](_0x311ccc[_0x31b6('0x3')],_0x31b6('0x29'),(_0x131334,_0xa4cd41)=>{_0xa4cd41[_0x31b6('0x21')][_0x31b6('0x15')]('ck-body')&&_0x1c0613[_0x31b6('0xf')][_0x31b6('0x29')](_0xa4cd41);});}[_0x31b6('0x11')](_0x39932f){const _0x356fa3=this[_0x31b6('0xd')][_0x31b6('0x27')][_0x31b6('0x7')](_0x31b6('0x5')),_0x2b1844=[...this[_0x31b6('0xd')][_0x31b6('0x18')][_0x31b6('0x7')](_0x77ef81)[_0x31b6('0x13')]][_0x31b6('0x0')](_0x5a5cac=>_0x5a5cac[_0x31b6('0x10')]!==_0x356fa3)[_0x31b6('0x1a')](_0x55fb89=>_0x55fb89['resolvedAt']<_0x39932f);return _0x2b1844>-0x1?_0x2b1844:this[_0x31b6('0x2')][_0x31b6('0x17')];}['_createArchiveUIDropdown'](){const _0x54c79f=this['editor'],_0x4dabd3=this['editor'][_0x31b6('0x18')][_0x31b6('0x7')](_0x31b6('0x31')),_0x113829=_0xfdd7ae(_0x54c79f[_0x31b6('0x33')]);_0x113829[_0x31b6('0x30')][_0x31b6('0x24')]({'icon':_0x17cb7e,'label':_0x191d55(_0x54c79f[_0x31b6('0x33')],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0x113829[_0x31b6('0x8')][_0x31b6('0x32')]({'attributes':{'class':_0x31b6('0x9')}}),_0x113829['on']('change:isOpen',(_0xad8937,_0x1a7a45,_0x14fea2)=>{this[_0x31b6('0x1d')]||(this[_0x31b6('0x1d')]=new _0x38ebbf(_0x54c79f[_0x31b6('0x33')],this[_0x31b6('0x2')])),_0x14fea2?_0x113829[_0x31b6('0x8')][_0x31b6('0x6')][_0x31b6('0x23')](this[_0x31b6('0x1d')]):_0x113829[_0x31b6('0x8')]['children'][_0x31b6('0x29')](this[_0x31b6('0x1d')]);});for(const _0x1138be of this['annotationViews']){const _0x335af6=_0x4dabd3[_0x31b6('0x1f')](_0x1138be[_0x31b6('0x12')]);this[_0x31b6('0x28')](_0x113829,_0x335af6);}return _0x113829[_0x31b6('0x22')](this['annotationViews'],_0x31b6('0x23'),(_0x2b1ab6,_0x288706)=>{const _0x14b209=_0x4dabd3[_0x31b6('0x1f')](_0x288706[_0x31b6('0x12')]);this[_0x31b6('0x28')](_0x113829,_0x14b209);}),_0x113829['listenTo'](this['annotationViews'],_0x31b6('0x29'),(_0x4e4547,_0x4385c6)=>{const _0x919a24=_0x4dabd3[_0x31b6('0x1f')](_0x4385c6[_0x31b6('0x12')]);for(const _0x50118f of _0x919a24['focusableElements'])_0x50118f[_0x31b6('0x21')]['contains']('ck-body')&&_0x113829[_0x31b6('0xf')]['remove'](_0x50118f);}),_0x113829;}}
@@ -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.js';
5
+ import type { Marker } from 'ckeditor5/src/engine.js';
6
+ import CommentsRepository from './commentsrepository.js';
7
+ import EditorAnnotations from '../annotations/editorannotations.js';
8
+ import CommentsRestrictedEditingMode from './integrations/commentsrestrictededitingmode.js';
9
+ import '../../theme/commentmarker.css';
10
+ import CommentsImportWord from './integrations/importword.js';
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 _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;}
23
+ const _0xe2c5=['data','hasMarkerForId','state','reopenCommentThread','commands','getCommentThreads','_detachCommentThread','scrollToThreadMarker','setContext','_attachMarkerToThread','collaboration.channelId','isEqual','for','ready','getAllMarkersForId','filter','differ','isResolved','hasDomSelection','addComment','length','upcast','consumable','requires','openNewCommentThread','pluginName','schema','model','newRange','push','set','root','_handleMarkerAddAndRemove','hasContent','resolve','plugins','init','_reconvertMarkers','_attachedThreads','markerName','config','CommentsEditing','resolveCommentThread','delete','refreshVisibility','_getTargetForId','change:activeMarker','switchReadOnly','conversion','low','_threads','render','destroy','attachTo','consume','updateMarker','markerToData','_getTextContext','getByInnerView','getRange','markers','change','has','affectsData','markerToHighlight','text','_handleThreadMarker','editor','view','comment','getChangedMarkers','isCollapsed','enqueueChange','destroyed','once','context','reconvertMarker','_initializeMarkerConverters','isThreadsLoadingPaused','get','removeCommentThread','listenTo','registerAnnotation','$textProxy','$graveyard','getCommentThread','isObject','addCommentThread','item','editing','add','comment:','start','ck-comment-marker','document','includes','hasCommentThread','substring','_hasTargetInContent','activeMarker','registerPostFixer','$marker','removeMarker','createRange','getItems','elementToElement','editingDowncast','split'];(function(_0x38d6d8,_0xe2c5bd){const _0x1e7829=function(_0x303180){while(--_0x303180){_0x38d6d8['push'](_0x38d6d8['shift']());}};_0x1e7829(++_0xe2c5bd);}(_0xe2c5,0x152));const _0x1e78=function(_0x38d6d8,_0xe2c5bd){_0x38d6d8=_0x38d6d8-0x0;let _0x1e7829=_0xe2c5[_0x38d6d8];return _0x1e7829;};import{Plugin as _0x3e1f43}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x1aac91}from'ckeditor5/src/utils.js';import _0x556cac from'./commentsrepository.js';import _0x10108c from'./addcommentthreadcommand.js';import{getAllMarkersDomElementsSorted as _0x39e065}from'ckeditor5-collaboration';import _0x881bf9 from'../annotations/editorannotations.js';import _0x37c821 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x44ba76 from'./integrations/importword.js';import _0x254c7a from'../annotations/annotations.js';export default class r extends _0x3e1f43{static get[_0x1e78('0x9')](){return[_0x556cac,_0x881bf9,_0x37c821,_0x44ba76];}static get[_0x1e78('0xb')](){return _0x1e78('0x1b');}constructor(_0xc4539f){super(_0xc4539f),this['set'](_0x1e78('0x40'),!0x0),_0xc4539f[_0x1e78('0x5e')]['once'](_0x1e78('0x6b'),()=>this[_0x1e78('0x40')]=!0x1),this[_0x1e78('0x10')](_0x1e78('0x55'),null),this['on'](_0x1e78('0x20'),(_0x441c19,_0x1ab46b,_0x284609,_0x376ba1)=>{const _0xb2698=_0x284609?tt(_0x284609)['id']:null;if(_0xc4539f['model']['change'](()=>{if(_0xb2698){const _0x2c0e6d=this[_0x1e78('0x0')](_0xb2698);for(const _0x109ff4 of _0x2c0e6d)_0xc4539f[_0x1e78('0x4b')][_0x1e78('0x3e')](_0x109ff4);}if(_0x376ba1){const {id:_0x20ece8}=tt(_0x376ba1),_0x56de31=this[_0x1e78('0x0')](_0x20ece8);for(const _0xbf5fa8 of _0x56de31)_0xc4539f[_0x1e78('0x4b')][_0x1e78('0x3e')](_0xbf5fa8);}}),_0xb2698){const _0xf84625=_0xc4539f[_0x1e78('0x15')]['get'](_0x556cac)[_0x1e78('0x47')](_0xb2698);_0xf84625&&_0xf84625['isResolved']&&this[_0x1e78('0x65')](_0xb2698);}}),this[_0x1e78('0x18')]=new Map();}[_0x1e78('0x16')](){const _0x42ca47=this[_0x1e78('0x35')],_0x84b555=_0x42ca47[_0x1e78('0x15')]['get'](_0x556cac),_0x7b7bf3=_0x42ca47[_0x1e78('0x1a')][_0x1e78('0x41')](_0x1e78('0x68'));_0x42ca47[_0x1e78('0x62')][_0x1e78('0x4c')](_0x1e78('0x49'),new _0x10108c(_0x42ca47)),this[_0x1e78('0x43')](_0x42ca47,'change:isReadOnly',(_0x41d26c,_0x503ccf,_0xbf81e6)=>{_0x84b555[_0x1e78('0x21')](_0xbf81e6,_0x42ca47[_0x1e78('0x1a')][_0x1e78('0x41')](_0x1e78('0x68')));}),this[_0x1e78('0x43')](_0x84b555,Z(_0x1e78('0x49'),_0x7b7bf3),(_0x507fe0,{threadId:_0x298d08})=>{const _0x1feead=_0x42ca47[_0x1e78('0x15')]['get'](_0x881bf9),_0x2b632a=this[_0x1e78('0x35')][_0x1e78('0x15')]['get'](_0x556cac)['getCommentThread'](_0x298d08);if(_0x2b632a&&_0x2b632a[_0x1e78('0x3')]&&!this[_0x1e78('0x18')][_0x1e78('0x30')](_0x298d08)){const _0x238091=_0x2b632a[_0x1e78('0x27')](()=>this[_0x1e78('0x1f')](_0x2b632a['id']));_0x1feead['registerAnnotation'](_0x238091),this['_attachedThreads'][_0x1e78('0x10')](_0x298d08,[]),0x0===this[_0x1e78('0x0')](_0x298d08)[_0x1e78('0x6')]&&(_0x2b632a[_0x1e78('0x54')]=!0x1);}}),this[_0x1e78('0x43')](_0x84b555,Z(_0x1e78('0x42'),_0x7b7bf3),(_0x51713d,{threadId:_0x4cbacc})=>{_0x42ca47[_0x1e78('0xd')][_0x1e78('0x3a')]({'isUndoable':!0x1},_0x39e3c0=>{const _0x2697c1=this['getAllMarkersForId'](_0x4cbacc);this[_0x1e78('0x18')][_0x1e78('0x1d')](_0x4cbacc);for(const _0x132dfe of _0x2697c1)_0x39e3c0[_0x1e78('0x58')](_0x132dfe);});},{'priority':'high'}),this[_0x1e78('0x43')](_0x84b555,Z(_0x1e78('0x1c'),_0x7b7bf3),(_0x468219,{threadId:_0x39c521})=>{this[_0x1e78('0x17')](_0x39c521),this[_0x1e78('0x35')][_0x1e78('0x4b')]['view'][_0x1e78('0x4')]&&this[_0x1e78('0x35')]['editing'][_0x1e78('0x36')]['focus']();},{'priority':_0x1e78('0x23')}),this['listenTo'](_0x84b555,Z(_0x1e78('0x61'),_0x7b7bf3),(_0x3469c6,{threadId:_0x195336})=>{this[_0x1e78('0x17')](_0x195336);},{'priority':'low'}),this[_0x1e78('0x43')](_0x84b555,Z(_0x1e78('0x5'),_0x7b7bf3),(_0x19c69b,{threadId:_0x4bf61c,isFromAdapter:_0x489a29})=>{const _0x42466a=this[_0x1e78('0x0')](_0x4bf61c);if(_0x489a29||0x0==_0x42466a[_0x1e78('0x6')]||!_0x84b555[_0x1e78('0x52')](_0x4bf61c))return;0x1===_0x84b555[_0x1e78('0x47')](_0x4bf61c)['length']&&_0x42ca47['model'][_0x1e78('0x3a')]({'isUndoable':!0x1},_0x10802e=>{for(const _0x48a085 of _0x42466a)_0x10802e['updateMarker'](_0x48a085,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x1e78('0x3f')](),this['_handleMarkerAddAndRemove']();}[_0x1e78('0x26')](){const _0x2f5cd1=this[_0x1e78('0x35')]['plugins'][_0x1e78('0x41')](_0x556cac),_0x2d89c0=this[_0x1e78('0x35')][_0x1e78('0x1a')]['get'](_0x1e78('0x68'));for(const _0x419e07 of _0x2f5cd1[_0x1e78('0x63')]({'channelId':_0x2d89c0}))_0x2f5cd1[_0x1e78('0x64')](_0x419e07['id']),_0x2f5cd1[_0x1e78('0x24')][_0x1e78('0x1d')](_0x419e07['id']);super['destroy']();}[_0x1e78('0x5f')](_0x382812){return this[_0x1e78('0x0')](_0x382812)['length']>0x0;}[_0x1e78('0x0')](_0x5ad898){return(this[_0x1e78('0x18')]['get'](_0x5ad898)||[])['map'](_0x118bd1=>this[_0x1e78('0x35')]['model'][_0x1e78('0x2e')][_0x1e78('0x41')](_0x118bd1))[_0x1e78('0x1')](_0x1e003a=>_0x1e003a);}[_0x1e78('0x65')](_0x4ea8cb){const _0x48b1db=this[_0x1e78('0x1f')](_0x4ea8cb);_0x48b1db&&setTimeout(()=>{this[_0x1e78('0x55')]&&tt(this[_0x1e78('0x55')])['id']===_0x4ea8cb&&_0x1aac91({'target':_0x48b1db[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x38b763){this[_0x1e78('0x35')]['model']['change'](()=>{for(const _0x395207 of this[_0x1e78('0x0')](_0x38b763))this[_0x1e78('0x35')][_0x1e78('0x4b')][_0x1e78('0x3e')](_0x395207);});}[_0x1e78('0x3f')](){const _0x3df8a1=this[_0x1e78('0x35')];_0x3df8a1[_0x1e78('0x22')]['for'](_0x1e78('0x5c'))[_0x1e78('0x32')]({'model':_0x1e78('0x37'),'view':(_0x2868f3,_0x1930bf)=>{const {id:_0x26b001}=tt(_0x2868f3[_0x1e78('0x19')]),_0x43f61d=_0x3df8a1[_0x1e78('0x15')][_0x1e78('0x41')](_0x556cac)[_0x1e78('0x47')](_0x26b001),_0x29366e=this[_0x1e78('0x55')]&&tt(this[_0x1e78('0x55')])['id']===_0x26b001;if(_0x43f61d&&_0x43f61d[_0x1e78('0x3')]&&!_0x29366e&&_0x2868f3['item'])return _0x1930bf[_0x1e78('0x8')]['consume'](_0x2868f3[_0x1e78('0x4a')],'addMarker:'+_0x2868f3[_0x1e78('0x19')]),_0x1930bf['consumable'][_0x1e78('0x28')](_0x2868f3[_0x1e78('0x4a')],'removeMarker:'+_0x2868f3[_0x1e78('0x19')]),{'classes':[]};const _0x3ede44=[_0x1e78('0x4f')];return _0x29366e&&_0x3ede44[_0x1e78('0xf')]('ck-comment-marker--active'),{'classes':_0x3ede44,'attributes':{'data-comment':_0x26b001}};}}),_0x3df8a1[_0x1e78('0x22')][_0x1e78('0x6a')]('dataDowncast')[_0x1e78('0x2a')]({'model':_0x1e78('0x37'),'view':(_0x5d9883,{options:_0x381077})=>{const _0x53e939=_0x3df8a1[_0x1e78('0x15')]['get'](_0x556cac),_0x27480a=_0x3df8a1[_0x1e78('0xd')][_0x1e78('0x2e')][_0x1e78('0x41')](_0x5d9883),{id:_0x42d3b0,part:_0x20005f}=tt(_0x5d9883);if(_0x27480a&&!_0x27480a[_0x1e78('0x31')])return null;if(_0x381077['ignoreResolvedComments']){const _0x7de094=_0x53e939[_0x1e78('0x47')](_0x42d3b0);if(_0x7de094&&_0x7de094[_0x1e78('0x3')])return null;}return{'group':_0x1e78('0x37'),'name':_0x20005f?_0x42d3b0+':'+_0x20005f:_0x42d3b0};}}),_0x3df8a1['conversion'][_0x1e78('0x6a')]('upcast')[_0x1e78('0x5b')]({'view':{'name':_0x1e78('0x37'),'attributes':{'id':/^\w/}},'model':(_0x35d764,{writer:_0x5923fd})=>_0x5923fd['createElement'](_0x1e78('0x57'),{'data-name':_0x1e78('0x4d')+_0x35d764['getAttribute']('id')})}),_0x3df8a1[_0x1e78('0x22')]['for'](_0x1e78('0x7'))['dataToMarker']({'view':_0x1e78('0x37')});}[_0x1e78('0x12')](){const _0x1980b7=this[_0x1e78('0x35')],_0x9619b0=_0x1980b7[_0x1e78('0x15')][_0x1e78('0x41')](_0x556cac),_0x220d70=new Set();_0x1980b7['model'][_0x1e78('0x50')][_0x1e78('0x56')](_0x36924a=>{let _0xc461cf=!0x1;for(const {name:_0x2256dd,data:_0x5c4ce1}of _0x1980b7['model'][_0x1e78('0x50')]['differ'][_0x1e78('0x38')]()){const {group:_0x20fecd,id:_0x490228}=tt(_0x2256dd);let _0xe8365d=_0x5c4ce1[_0x1e78('0xe')];if(_0x1e78('0x37')!==_0x20fecd||!_0xe8365d)continue;const _0x363e06=_0x1e78('0x46')===_0xe8365d[_0x1e78('0x11')]['rootName'];_0x363e06||(_0xe8365d=ot(_0xe8365d,_0x1980b7[_0x1e78('0xd')]),!_0xe8365d||!_0x5c4ce1[_0x1e78('0xe')]||_0xe8365d[_0x1e78('0x69')](_0x5c4ce1[_0x1e78('0xe')]))?!_0xe8365d||!_0x1980b7[_0x1e78('0xd')][_0x1e78('0x13')](_0xe8365d)||this[_0x1e78('0x18')][_0x1e78('0x30')](_0x490228)&&_0x363e06?(_0x36924a['removeMarker'](_0x2256dd),_0xc461cf=!0x0):_0x363e06||(this[_0x1e78('0x40')]?_0x220d70['add'](_0x2256dd):this[_0x1e78('0x34')](_0x2256dd,_0x490228)):(_0x36924a[_0x1e78('0x29')](_0x2256dd,{'range':_0xe8365d}),_0xc461cf=!0x0);}return _0xc461cf;}),this['on']('change:isThreadsLoadingPaused',(_0x20bc58,_0x2ce83d,_0x1215ae)=>{if(!_0x1215ae&&_0x220d70['size'])for(const _0xd132bf of _0x220d70){const {id:_0x4b5932}=tt(_0xd132bf);_0x220d70[_0x1e78('0x1d')](_0x4b5932),_0x1980b7[_0x1e78('0xd')][_0x1e78('0x2e')]['get'](_0xd132bf)&&this['_handleThreadMarker'](_0xd132bf,_0x4b5932);}}),this['listenTo'](_0x1980b7[_0x1e78('0xd')][_0x1e78('0x50')],_0x1e78('0x2f'),(_0x3623bf,_0x3207e6)=>{for(const {name:_0x4e72e8,data:{newRange:_0x4d9768}}of _0x1980b7[_0x1e78('0xd')]['document'][_0x1e78('0x2')][_0x1e78('0x38')]()){const {group:_0x57f0f0,id:_0x5968ba}=tt(_0x4e72e8);if('comment'!==_0x57f0f0)continue;const _0x2c1a21=_0x9619b0[_0x1e78('0x47')](_0x5968ba),_0x2fa7ad=this[_0x1e78('0x5f')](_0x5968ba);_0x2c1a21&&(_0x2c1a21['_hasTargetInContent']||_0x1980b7[_0x1e78('0x4b')][_0x1e78('0x36')][_0x1e78('0x3c')](_0x1e78('0x25'),()=>{const _0x1b34f1=_0x1980b7[_0x1e78('0x15')][_0x1e78('0x41')](_0x254c7a),_0x41d536=_0x9619b0['_threadToController'][_0x1e78('0x41')](_0x2c1a21)[_0x1e78('0x36')];_0x1b34f1['getByInnerView'](_0x41d536)[_0x1e78('0x1e')]();},{'priority':_0x1e78('0x23')}),_0x2c1a21[_0x1e78('0x54')]=_0x2fa7ad||!!_0x4d9768),!_0x4d9768&&_0x3207e6['isLocal']&&(_0x220d70[_0x1e78('0x1d')](_0x5968ba),_0x2c1a21&&!_0x2c1a21[_0x1e78('0x3')]&&!_0x2fa7ad&&this[_0x1e78('0x18')][_0x1e78('0x30')](_0x5968ba)&&(this[_0x1e78('0x18')][_0x1e78('0x1d')](_0x5968ba),_0x2c1a21[_0x1e78('0x14')]()));}});}['_getTargetForId'](_0x526ce9){const _0x2b280d=this[_0x1e78('0x35')],_0x4aa991=this[_0x1e78('0x0')](_0x526ce9);return _0x39e065(_0x2b280d[_0x1e78('0x4b')],_0x4aa991);}[_0x1e78('0x2b')](_0x49bac5){const _0x49c65d=this[_0x1e78('0x0')](_0x49bac5);let _0x26f707='',_0x2737df=!0x1;for(const _0x1ba49a of _0x49c65d){const _0x3b8c98=_0x1ba49a[_0x1e78('0x2d')]();for(const _0x5e4b30 of Array['from'](_0x3b8c98[_0x1e78('0x5a')]()))_0x5e4b30['is'](_0x1e78('0x45'))?(_0x26f707&&_0x2737df&&(_0x26f707+='\x20',_0x2737df=!0x1),_0x26f707+=_0x5e4b30['data']):_0x2737df=!0x0;_0x2737df=!0x0;}return _0x26f707[_0x1e78('0x53')](0x0,0x96);}[_0x1e78('0x67')](_0x3469d4,_0x276454){const _0x205f09=this[_0x1e78('0x35')],_0x55083b=_0x205f09['plugins'][_0x1e78('0x41')](_0x556cac);let _0x1bbcd9=_0x55083b[_0x1e78('0x47')](_0x276454);if(this[_0x1e78('0x18')]['has'](_0x276454)){const _0x349ad8=this['_attachedThreads'][_0x1e78('0x41')](_0x276454);return _0x349ad8[_0x1e78('0x51')](_0x3469d4)||_0x349ad8[_0x1e78('0xf')](_0x3469d4),_0x1bbcd9;}this[_0x1e78('0x18')][_0x1e78('0x10')](_0x276454,[_0x3469d4]);const _0xae231e=_0x205f09[_0x1e78('0x1a')][_0x1e78('0x41')](_0x1e78('0x68')),_0x4b1385=_0x205f09['plugins'][_0x1e78('0x41')](_0x881bf9);if(_0x1bbcd9&&_0x1bbcd9[_0x1e78('0x3')])return _0x1bbcd9['reopen'](),_0x1bbcd9;return!this[_0x1e78('0x0')](_0x276454)[0x0]['managedUsingOperations']?_0x205f09[_0x1e78('0x4b')][_0x1e78('0x36')][_0x1e78('0x3c')](_0x1e78('0x25'),()=>{const _0x1f9804=_0x205f09['plugins'][_0x1e78('0x41')](_0x254c7a);_0x1bbcd9=_0x55083b[_0x1e78('0xa')]({'channelId':_0xae231e,'threadId':_0x276454,'target':()=>this['_getTargetForId'](_0x276454),'context':{'type':'text','value':this[_0x1e78('0x2b')](_0x276454)}});const _0x4a7367=_0x55083b['_threadToController']['get'](_0x1bbcd9)[_0x1e78('0x36')],_0x1fae0a=_0x1f9804[_0x1e78('0x2c')](_0x4a7367);_0x1fae0a&&_0x4b1385[_0x1e78('0x44')](_0x1fae0a);},{'priority':_0x1e78('0x23')}):_0x55083b['fetchCommentThread']({'channelId':_0xae231e,'threadId':_0x276454})['then'](_0x17edd0=>{if(_0x1e78('0x3b')!==_0x205f09[_0x1e78('0x60')]){if(_0x1bbcd9=_0x17edd0,_0x1bbcd9){const _0x55654b=_0x1bbcd9[_0x1e78('0x27')](()=>this[_0x1e78('0x1f')](_0x276454));_0x4b1385[_0x1e78('0x44')](_0x55654b),_0x1bbcd9[_0x1e78('0x3')]&&this[_0x1e78('0x17')](_0x276454);}else{const _0x583b01=this[_0x1e78('0x0')](_0x276454);_0x205f09[_0x1e78('0xd')]['change'](_0xbeaa4f=>{for(const _0x310ba3 of _0x583b01)_0xbeaa4f[_0x1e78('0x58')](_0x310ba3);});}}}),_0x1bbcd9;}['_handleThreadMarker'](_0x35815e,_0x16f09f){const _0x259a5f=this['_attachMarkerToThread'](_0x35815e,_0x16f09f);_0x259a5f&&!_0x259a5f[_0x1e78('0x3d')]&&_0x259a5f[_0x1e78('0x66')]({'type':_0x1e78('0x33'),'value':this['_getTextContext'](_0x16f09f)});}}function Z(_0x4dc7cc,_0x5ba79b){return _0x5ba79b?_0x4dc7cc+':'+_0x5ba79b:_0x4dc7cc;}function tt(_0x4b6186){const _0x31ebd4=_0x4b6186[_0x1e78('0x5d')](':');return{'group':_0x31ebd4[0x0],'id':_0x31ebd4[0x1],'part':_0x31ebd4[0x2]};}function ot(_0x1bd58a,_0x515253){const _0x58781b=_0x515253[_0x1e78('0xc')],_0x33a499=_0x515253[_0x1e78('0x59')](_0x1bd58a[_0x1e78('0x4e')]);for(const _0x5361cc of _0x1bd58a['getWalker']()){const {type:_0x16a484,item:_0x316952,nextPosition:_0x212bb1}=_0x5361cc;if(_0x1e78('0x33')===_0x16a484||_0x58781b[_0x1e78('0x48')](_0x316952)){const _0x435d0f=_0x515253['createPositionBefore'](_0x316952);_0x33a499[_0x1e78('0x39')]&&(_0x33a499[_0x1e78('0x4e')]=_0x435d0f),_0x33a499['end']=_0x212bb1;}}return _0x33a499[_0x1e78('0x39')]?null:_0x33a499;}