@ckeditor/ckeditor5-comments 36.0.0 → 37.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/build/comments.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/bs.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de-ch.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es-co.js +1 -1
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fa.js +1 -1
  18. package/build/translations/fi.js +1 -1
  19. package/build/translations/fr.js +1 -1
  20. package/build/translations/gl.js +1 -1
  21. package/build/translations/he.js +1 -1
  22. package/build/translations/hi.js +1 -1
  23. package/build/translations/hr.js +1 -1
  24. package/build/translations/hu.js +1 -1
  25. package/build/translations/id.js +1 -1
  26. package/build/translations/it.js +1 -1
  27. package/build/translations/ja.js +1 -1
  28. package/build/translations/jv.js +1 -1
  29. package/build/translations/ko.js +1 -1
  30. package/build/translations/lt.js +1 -1
  31. package/build/translations/lv.js +1 -1
  32. package/build/translations/ms.js +1 -1
  33. package/build/translations/nl.js +1 -1
  34. package/build/translations/no.js +1 -1
  35. package/build/translations/pl.js +1 -1
  36. package/build/translations/pt-br.js +1 -1
  37. package/build/translations/pt.js +1 -1
  38. package/build/translations/ro.js +1 -1
  39. package/build/translations/ru.js +1 -1
  40. package/build/translations/sk.js +1 -1
  41. package/build/translations/sr-latn.js +1 -1
  42. package/build/translations/sr.js +1 -1
  43. package/build/translations/sv.js +1 -1
  44. package/build/translations/th.js +1 -1
  45. package/build/translations/tk.js +1 -1
  46. package/build/translations/tr.js +1 -1
  47. package/build/translations/tt.js +1 -1
  48. package/build/translations/ug.js +1 -1
  49. package/build/translations/uk.js +1 -1
  50. package/build/translations/ur.js +1 -1
  51. package/build/translations/vi.js +1 -1
  52. package/build/translations/zh-cn.js +1 -1
  53. package/build/translations/zh.js +1 -1
  54. package/lang/contexts.json +8 -1
  55. package/lang/translations/af.po +28 -0
  56. package/lang/translations/ar.po +28 -0
  57. package/lang/translations/bg.po +28 -0
  58. package/lang/translations/bn.po +28 -0
  59. package/lang/translations/bs.po +28 -0
  60. package/lang/translations/ca.po +28 -0
  61. package/lang/translations/cs.po +28 -0
  62. package/lang/translations/da.po +28 -0
  63. package/lang/translations/de-ch.po +28 -0
  64. package/lang/translations/de.po +28 -0
  65. package/lang/translations/el.po +28 -0
  66. package/lang/translations/en-au.po +28 -0
  67. package/lang/translations/en.po +28 -0
  68. package/lang/translations/es-co.po +28 -0
  69. package/lang/translations/es.po +28 -0
  70. package/lang/translations/et.po +28 -0
  71. package/lang/translations/fa.po +28 -0
  72. package/lang/translations/fi.po +28 -0
  73. package/lang/translations/fr.po +28 -0
  74. package/lang/translations/gl.po +28 -0
  75. package/lang/translations/he.po +28 -0
  76. package/lang/translations/hi.po +28 -0
  77. package/lang/translations/hr.po +28 -0
  78. package/lang/translations/hu.po +28 -0
  79. package/lang/translations/id.po +28 -0
  80. package/lang/translations/it.po +28 -0
  81. package/lang/translations/ja.po +28 -0
  82. package/lang/translations/jv.po +28 -0
  83. package/lang/translations/ko.po +28 -0
  84. package/lang/translations/lt.po +28 -0
  85. package/lang/translations/lv.po +28 -0
  86. package/lang/translations/ms.po +28 -0
  87. package/lang/translations/nl.po +28 -0
  88. package/lang/translations/no.po +28 -0
  89. package/lang/translations/pl.po +28 -0
  90. package/lang/translations/pt-br.po +28 -0
  91. package/lang/translations/pt.po +28 -0
  92. package/lang/translations/ro.po +28 -0
  93. package/lang/translations/ru.po +28 -0
  94. package/lang/translations/sk.po +28 -0
  95. package/lang/translations/sr-latn.po +28 -0
  96. package/lang/translations/sr.po +29 -1
  97. package/lang/translations/sv.po +28 -0
  98. package/lang/translations/th.po +28 -0
  99. package/lang/translations/tk.po +28 -0
  100. package/lang/translations/tr.po +28 -0
  101. package/lang/translations/tt.po +28 -0
  102. package/lang/translations/ug.po +28 -0
  103. package/lang/translations/uk.po +28 -0
  104. package/lang/translations/ur.po +28 -0
  105. package/lang/translations/vi.po +28 -0
  106. package/lang/translations/zh-cn.po +28 -0
  107. package/lang/translations/zh.po +28 -0
  108. package/package.json +20 -4
  109. package/src/annotations/annotation.d.ts +86 -0
  110. package/src/annotations/annotation.js +1 -1
  111. package/src/annotations/annotationcollection.d.ts +94 -0
  112. package/src/annotations/annotationcollection.js +1 -1
  113. package/src/annotations/annotations.d.ts +150 -0
  114. package/src/annotations/annotations.js +1 -1
  115. package/src/annotations/annotationsuis.d.ts +227 -0
  116. package/src/annotations/annotationsuis.js +1 -1
  117. package/src/annotations/editorannotations.d.ts +62 -0
  118. package/src/annotations/editorannotations.js +1 -1
  119. package/src/annotations/inlineannotations.d.ts +84 -0
  120. package/src/annotations/inlineannotations.js +1 -1
  121. package/src/annotations/narrowsidebar.d.ts +80 -0
  122. package/src/annotations/narrowsidebar.js +1 -1
  123. package/src/annotations/sidebar.d.ts +96 -0
  124. package/src/annotations/sidebar.js +1 -1
  125. package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -0
  126. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  127. package/src/annotations/view/annotationview.d.ts +86 -0
  128. package/src/annotations/view/annotationview.js +1 -1
  129. package/src/annotations/view/sidebaritemview.d.ts +51 -0
  130. package/src/annotations/view/sidebaritemview.js +1 -1
  131. package/src/annotations/view/sidebarview.d.ts +28 -0
  132. package/src/annotations/view/sidebarview.js +1 -1
  133. package/src/annotations/widesidebar.d.ts +72 -0
  134. package/src/annotations/widesidebar.js +1 -1
  135. package/src/augmentation.d.ts +54 -0
  136. package/src/augmentation.js +23 -0
  137. package/src/comments/addcommentthreadcommand.d.ts +31 -0
  138. package/src/comments/addcommentthreadcommand.js +1 -1
  139. package/src/comments/commentsarchive.d.ts +25 -0
  140. package/src/comments/commentsarchive.js +23 -0
  141. package/src/comments/commentsarchiveui.d.ts +32 -0
  142. package/src/comments/commentsarchiveui.js +23 -0
  143. package/src/comments/commentsediting.d.ts +71 -0
  144. package/src/comments/commentsediting.js +1 -1
  145. package/src/comments/commentsrepository.d.ts +1009 -0
  146. package/src/comments/commentsrepository.js +1 -1
  147. package/src/comments/commentsui.d.ts +25 -0
  148. package/src/comments/commentsui.js +1 -1
  149. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -0
  150. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  151. package/src/comments/integrations/importword.d.ts +17 -0
  152. package/src/comments/integrations/importword.js +1 -1
  153. package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -0
  154. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  155. package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -0
  156. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  157. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -0
  158. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  159. package/src/comments/ui/commentthreadcontroller.d.ts +64 -0
  160. package/src/comments/ui/commentthreadcontroller.js +1 -1
  161. package/src/comments/ui/view/basecommentthreadview.d.ts +108 -0
  162. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  163. package/src/comments/ui/view/basecommentview.d.ts +108 -0
  164. package/src/comments/ui/view/basecommentview.js +1 -1
  165. package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -0
  166. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  167. package/src/comments/ui/view/commentcontentview.d.ts +10 -0
  168. package/src/comments/ui/view/commentcontentview.js +1 -1
  169. package/src/comments/ui/view/commentinputview.d.ts +76 -0
  170. package/src/comments/ui/view/commentinputview.js +1 -1
  171. package/src/comments/ui/view/commentsarchiveview.d.ts +34 -0
  172. package/src/comments/ui/view/commentsarchiveview.js +23 -0
  173. package/src/comments/ui/view/commentslistview.d.ts +96 -0
  174. package/src/comments/ui/view/commentslistview.js +1 -1
  175. package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -0
  176. package/src/comments/ui/view/commentthreadheaderview.js +23 -0
  177. package/src/comments/ui/view/commentthreadinputview.d.ts +37 -0
  178. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  179. package/src/comments/ui/view/commentthreadview.d.ts +108 -0
  180. package/src/comments/ui/view/commentthreadview.js +1 -1
  181. package/src/comments/ui/view/commentview.d.ts +231 -0
  182. package/src/comments/ui/view/commentview.js +1 -1
  183. package/src/comments.d.ts +22 -0
  184. package/src/comments.js +1 -1
  185. package/src/commentsonly.d.ts +28 -0
  186. package/src/commentsonly.js +1 -1
  187. package/src/config.d.ts +172 -0
  188. package/src/config.js +23 -0
  189. package/src/index.d.ts +19 -0
  190. package/src/index.js +1 -1
  191. package/src/utils/common-translations.d.ts +5 -0
  192. package/src/utils/common-translations.js +1 -1
  193. package/src/utils/createmutationobserver.d.ts +13 -0
  194. package/src/utils/createmutationobserver.js +1 -1
  195. package/theme/annotation.css +1 -0
  196. package/theme/comment.css +31 -0
  197. package/theme/commentsarchive.css +40 -0
  198. package/theme/commentthread.css +68 -1
  199. package/theme/icons/add-comment.svg +1 -1
  200. package/theme/icons/comments-archive.svg +11 -0
  201. package/theme/icons/undo.svg +1 -0
  202. package/theme/sidebar.css +4 -0
@@ -0,0 +1,86 @@
1
+ /**
2
+ * @module comments/annotations/view/annotationview
3
+ * @publicApi
4
+ */
5
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
6
+ import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils';
7
+ import '../../../theme/annotation.css';
8
+ /**
9
+ * A wrapping view for any view added to the `Annotations` plugin.
10
+ *
11
+ * It introduces functionalities that make the given view ready to be used as an annotation, such as focus tracking, height resizing,
12
+ * and other observable properties that help share current annotation state across different UIs.
13
+ */
14
+ export default class AnnotationView extends View {
15
+ /**
16
+ * Tracks focus on the annotation view.
17
+ *
18
+ * Add a DOM element to this focus tracker to prevent blurring annotation view
19
+ * when the DOM element is focused.
20
+ */
21
+ readonly focusTracker: FocusTracker;
22
+ readonly id: string;
23
+ readonly keystrokes: KeystrokeHandler;
24
+ /**
25
+ * Target rectangle to which the annotation should be attached.
26
+ *
27
+ * @observable
28
+ */
29
+ targetRect: Rect | null;
30
+ /**
31
+ * Annotation view height.
32
+ *
33
+ * @observable
34
+ */
35
+ height: number;
36
+ /**
37
+ * Informs if an annotation is active.
38
+ *
39
+ * @observable
40
+ */
41
+ isActive: boolean;
42
+ /**
43
+ * Informs if there are unsaved changes in the annotation.
44
+ *
45
+ * @observable
46
+ */
47
+ isDirty: boolean;
48
+ /**
49
+ * The number of items in the annotation.
50
+ *
51
+ * @observable
52
+ */
53
+ length: number;
54
+ /**
55
+ * @observable
56
+ */
57
+ type: string;
58
+ element: HTMLElement;
59
+ /**
60
+ * Collection for content views.
61
+ */
62
+ content: ViewCollection;
63
+ /**
64
+ * The inner annotation view.
65
+ */
66
+ mainView: AnnotationMainView;
67
+ /**
68
+ * @inheritDoc
69
+ */
70
+ constructor(locale: Locale, mainView: AnnotationMainView);
71
+ /**
72
+ * @inheritDoc
73
+ */
74
+ render(): void;
75
+ /**
76
+ * @inheritDoc
77
+ */
78
+ destroy(): void;
79
+ /**
80
+ * Focuses the annotation view.
81
+ */
82
+ focus(): void;
83
+ }
84
+ export interface AnnotationMainView extends View {
85
+ isActive: boolean;
86
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12f3=['ck-annotation-wrapper','focusTracker','type','mainView','render','setTemplate','Esc','bindTemplate','keystrokes','div','_mutationObserver','isActive','detach','height','element','set','attach','content','length','add','focus','ck-rounded-corners','targetRect','ck-annotation-wrapper--active','destroy','_updateHeight','clientHeight','listenTo'];(function(_0x23e9d0,_0x12f3cb){const _0x19dc07=function(_0x23b752){while(--_0x23b752){_0x23e9d0['push'](_0x23e9d0['shift']());}};_0x19dc07(++_0x12f3cb);}(_0x12f3,0xfa));const _0x19dc=function(_0x23e9d0,_0x12f3cb){_0x23e9d0=_0x23e9d0-0x0;let _0x19dc07=_0x12f3[_0x23e9d0];return _0x19dc07;};import{View as _0x5a6d9f}from'ckeditor5/src/ui';import{FocusTracker as _0x4485c1,KeystrokeHandler as _0x35e035,uid as _0x19d982}from'ckeditor5/src/utils';import _0x5ad404 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x5a6d9f{constructor(_0x43819c,_0x88d993){super(_0x43819c),this['id']=_0x19d982(),this[_0x19dc('0x3')]=new _0x4485c1(),this[_0x19dc('0xa')]=new _0x35e035(),this[_0x19dc('0xa')][_0x19dc('0x11')](_0x19dc('0x8'),(_0x2257e0,_0x27aa7e)=>this['fire']('Esc',_0x27aa7e)),this[_0x19dc('0x11')](_0x19dc('0x18'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x19dc('0x11')](_0x19dc('0xf'),0x0),this[_0x19dc('0x11')]('isActive',!0x1),this[_0x19dc('0x11')]('isDirty',!0x1),this['set'](_0x19dc('0x14'),0x0),this[_0x19dc('0x11')](_0x19dc('0x4'),''),this[_0x19dc('0xc')]=_0x5ad404(()=>this[_0x19dc('0x1b')]()),this[_0x19dc('0x13')]=this['createCollection'](),this[_0x19dc('0x13')][_0x19dc('0x15')](_0x88d993),this[_0x19dc('0x5')]=_0x88d993;const _0x16f275=this[_0x19dc('0x9')];this[_0x19dc('0x7')]({'tag':_0x19dc('0xb'),'attributes':{'class':['ck',_0x19dc('0x2'),_0x19dc('0x17'),_0x16f275['if'](_0x19dc('0xd'),_0x19dc('0x19'))],'tabindex':-0x1},'children':this[_0x19dc('0x13')]});}['render'](){super[_0x19dc('0x6')](),this['focusTracker'][_0x19dc('0x15')](this['element']),this[_0x19dc('0xa')][_0x19dc('0x1')](this['element']),this[_0x19dc('0xc')][_0x19dc('0x12')](this[_0x19dc('0x10')]);}['destroy'](){this[_0x19dc('0x13')]['clear'](),this['keystrokes']['destroy'](),this[_0x19dc('0x3')][_0x19dc('0x1a')](),this['_mutationObserver'][_0x19dc('0xe')](),super[_0x19dc('0x1a')]();}['focus'](){this[_0x19dc('0x10')][_0x19dc('0x16')]();}[_0x19dc('0x1b')](){const _0x226c5b=this[_0x19dc('0x10')][_0x19dc('0x0')];_0x226c5b&&(this[_0x19dc('0xf')]=_0x226c5b);}}
23
+ const _0x2442=['add','div','isActive','_updateHeight','element','keystrokes','listenTo','_mutationObserver','type','ck-annotation-wrapper','focusTracker','render','set','fire','height','focus','bindTemplate','mainView','ck-rounded-corners','clientHeight','clear','destroy','setTemplate','ck-annotation-wrapper--active','content','length','detach','Esc'];(function(_0x49f9d7,_0x244296){const _0x19eadf=function(_0x4397d8){while(--_0x4397d8){_0x49f9d7['push'](_0x49f9d7['shift']());}};_0x19eadf(++_0x244296);}(_0x2442,0x19b));const _0x19ea=function(_0x49f9d7,_0x244296){_0x49f9d7=_0x49f9d7-0x0;let _0x19eadf=_0x2442[_0x49f9d7];return _0x19eadf;};import{View as _0x4f10f7}from'ckeditor5/src/ui';import{FocusTracker as _0x33d0eb,KeystrokeHandler as _0x4c3d70,uid as _0x13df42}from'ckeditor5/src/utils';import _0x34ead2 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x4f10f7{constructor(_0x2223dc,_0x1d0d73){super(_0x2223dc),this['id']=_0x13df42(),this[_0x19ea('0x13')]=new _0x33d0eb(),this[_0x19ea('0xe')]=new _0x4c3d70(),this['keystrokes'][_0x19ea('0x15')](_0x19ea('0x8'),(_0x40e75d,_0x58c38c)=>this[_0x19ea('0x16')](_0x19ea('0x8'),_0x58c38c)),this[_0x19ea('0x15')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x19ea('0x15')](_0x19ea('0x17'),0x0),this[_0x19ea('0x15')](_0x19ea('0xb'),!0x1),this[_0x19ea('0x15')]('isDirty',!0x1),this[_0x19ea('0x15')](_0x19ea('0x6'),0x0),this['set'](_0x19ea('0x11'),''),this[_0x19ea('0x10')]=_0x34ead2(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this[_0x19ea('0x5')][_0x19ea('0x9')](_0x1d0d73),this[_0x19ea('0x1a')]=_0x1d0d73;const _0x4b8a8d=this[_0x19ea('0x19')];this[_0x19ea('0x3')]({'tag':_0x19ea('0xa'),'attributes':{'class':['ck',_0x19ea('0x12'),_0x19ea('0x1b'),_0x4b8a8d['if'](_0x19ea('0xb'),_0x19ea('0x4'))],'tabindex':-0x1},'children':this[_0x19ea('0x5')]});}[_0x19ea('0x14')](){super[_0x19ea('0x14')](),this[_0x19ea('0x13')]['add'](this['element']),this[_0x19ea('0xe')][_0x19ea('0xf')](this[_0x19ea('0xd')]),this[_0x19ea('0x10')]['attach'](this[_0x19ea('0xd')]);}[_0x19ea('0x2')](){this['content'][_0x19ea('0x1')](),this[_0x19ea('0xe')][_0x19ea('0x2')](),this[_0x19ea('0x13')]['destroy'](),this[_0x19ea('0x10')][_0x19ea('0x7')](),super['destroy']();}[_0x19ea('0x18')](){this[_0x19ea('0xd')][_0x19ea('0x18')]();}[_0x19ea('0xc')](){const _0x19acf8=this[_0x19ea('0xd')][_0x19ea('0x0')];_0x19acf8&&(this[_0x19ea('0x17')]=_0x19acf8);}}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @module comments/annotations/view/sidebaritemview
3
+ * @publicApi
4
+ */
5
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
6
+ import { type Locale } from 'ckeditor5/src/utils';
7
+ /**
8
+ * A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
9
+ */
10
+ export default class SidebarItemView extends View {
11
+ element: HTMLElement;
12
+ /**
13
+ * The item top offset.
14
+ * Setting `0` as the initial value makes new items falling from heaven.
15
+ *
16
+ * @observable
17
+ */
18
+ top: number;
19
+ /**
20
+ * @observable
21
+ */
22
+ bottom: number;
23
+ /**
24
+ * @observable
25
+ */
26
+ height: number;
27
+ /**
28
+ * @observable
29
+ */
30
+ isAnimationDisabled: boolean;
31
+ /**
32
+ * A collection of content views.
33
+ */
34
+ content: ViewCollection;
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ constructor(locale: Locale);
39
+ /**
40
+ * @inheritDoc
41
+ */
42
+ render(): void;
43
+ /**
44
+ * Updates {@link #height the height property} according to the element's DOM height.
45
+ */
46
+ updateHeight(): void;
47
+ /**
48
+ * @inheritDoc
49
+ */
50
+ destroy(): void;
51
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4656=['_targetTop','destroy','height','render','isAnimationDisabled','bottom','_mutationObserver','bind','element','setTemplate','clientHeight','attach','set','top','content','detach','updateHeight','div'];(function(_0x5afca8,_0x46569a){const _0x5d5b73=function(_0x428e7c){while(--_0x428e7c){_0x5afca8['push'](_0x5afca8['shift']());}};_0x5d5b73(++_0x46569a);}(_0x4656,0x1e2));const _0x5d5b=function(_0x5afca8,_0x46569a){_0x5afca8=_0x5afca8-0x0;let _0x5d5b73=_0x4656[_0x5afca8];return _0x5d5b73;};import{View as _0x137472}from'ckeditor5/src/ui';import{toUnit as _0x4737c1}from'ckeditor5/src/utils';import _0x397622 from'../../utils/createmutationobserver';const kt=_0x4737c1('px');export default class C extends _0x137472{constructor(_0x51f46a){super(_0x51f46a),this[_0x5d5b('0x10')](_0x5d5b('0x11')),this[_0x5d5b('0x10')](_0x5d5b('0x6'),0x0),this[_0x5d5b('0xb')](_0x5d5b('0x9'))['to'](this,_0x5d5b('0x11'),this,_0x5d5b('0x6'),(_0x31f5e8,_0x2cf667)=>(_0x31f5e8||0x0)+_0x2cf667),this[_0x5d5b('0x10')]('isAnimationDisabled',!0x1),this[_0x5d5b('0xa')]=_0x397622(()=>this[_0x5d5b('0x2')]()),this[_0x5d5b('0x4')]=null,this['content']=this['createCollection']();const _0x3a9f78=this['bindTemplate'];this[_0x5d5b('0xd')]({'tag':_0x5d5b('0x3'),'attributes':{'class':['ck-sidebar-item',_0x3a9f78['to'](_0x5d5b('0x8'),_0x476fd0=>_0x476fd0?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x3a9f78['to'](_0x5d5b('0x11'),kt)}},'children':this[_0x5d5b('0x0')]});}[_0x5d5b('0x7')](){super['render'](),this[_0x5d5b('0xa')][_0x5d5b('0xf')](this[_0x5d5b('0xc')]);}[_0x5d5b('0x2')](){const _0x4d4f8f=this[_0x5d5b('0xc')][_0x5d5b('0xe')];_0x4d4f8f&&(this[_0x5d5b('0x6')]=_0x4d4f8f);}[_0x5d5b('0x5')](){this[_0x5d5b('0x0')]['clear'](),this[_0x5d5b('0xa')][_0x5d5b('0x1')](),super['destroy']();}}
23
+ const _0x3d82=['render','element','top','content','clientHeight','bottom','_mutationObserver','isAnimationDisabled','createCollection','setTemplate','attach','ck-sidebar-item','div','height','updateHeight','_targetTop','set','clear','ck-sidebar-item--no-animation'];(function(_0x3f6664,_0x3d82ec){const _0x29c88a=function(_0xdba03b){while(--_0xdba03b){_0x3f6664['push'](_0x3f6664['shift']());}};_0x29c88a(++_0x3d82ec);}(_0x3d82,0x16e));const _0x29c8=function(_0x3f6664,_0x3d82ec){_0x3f6664=_0x3f6664-0x0;let _0x29c88a=_0x3d82[_0x3f6664];return _0x29c88a;};import{View as _0x588609}from'ckeditor5/src/ui';import{toUnit as _0x4a88cc}from'ckeditor5/src/utils';import _0x988c64 from'../../utils/createmutationobserver';const At=_0x4a88cc('px');export default class C extends _0x588609{constructor(_0x50a1bc){super(_0x50a1bc),this[_0x29c8('0xb')]('top',0x0),this['set'](_0x29c8('0x8'),0x0),this['bind'](_0x29c8('0x0'))['to'](this,_0x29c8('0x10'),this,_0x29c8('0x8'),(_0x22c445,_0x422ed6)=>_0x22c445+_0x422ed6),this[_0x29c8('0xb')](_0x29c8('0x2'),!0x1),this[_0x29c8('0x1')]=_0x988c64(()=>this[_0x29c8('0x9')]()),this[_0x29c8('0xa')]=null,this['content']=this[_0x29c8('0x3')]();const _0x4f8fa9=this['bindTemplate'];this[_0x29c8('0x4')]({'tag':_0x29c8('0x7'),'attributes':{'class':[_0x29c8('0x6'),_0x4f8fa9['to']('isAnimationDisabled',_0x19d4d3=>_0x19d4d3?_0x29c8('0xd'):'')],'style':{'top':_0x4f8fa9['to'](_0x29c8('0x10'),_0x219140=>At(_0x219140))}},'children':this[_0x29c8('0x11')]});}[_0x29c8('0xe')](){super[_0x29c8('0xe')](),this[_0x29c8('0x1')][_0x29c8('0x5')](this[_0x29c8('0xf')]);}[_0x29c8('0x9')](){const _0x1b58ff=this[_0x29c8('0xf')][_0x29c8('0x12')];_0x1b58ff&&(this[_0x29c8('0x8')]=_0x1b58ff);}['destroy'](){this['content'][_0x29c8('0xc')](),this[_0x29c8('0x1')]['detach'](),super['destroy']();}}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @module comments/annotations/view/sidebarview
3
+ * @publicApi
4
+ */
5
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
6
+ import { type Locale } from 'ckeditor5/src/utils';
7
+ import '../../../theme/sidebar.css';
8
+ /**
9
+ * The sidebar view class that displays the collection of sidebar item views.
10
+ */
11
+ export default class SidebarView extends View {
12
+ /**
13
+ * @observable
14
+ */
15
+ minHeight: number | null;
16
+ /**
17
+ * @observable
18
+ */
19
+ class: string;
20
+ /**
21
+ * A collection of sidebar item views.
22
+ */
23
+ list: ViewCollection;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ constructor(locale: Locale);
28
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x406d=['class','div','minHeight','set','setTemplate','list','bindTemplate','createCollection','ck-sidebar'];(function(_0x5ad2b4,_0x406d79){const _0x56684e=function(_0x22eb5a){while(--_0x22eb5a){_0x5ad2b4['push'](_0x5ad2b4['shift']());}};_0x56684e(++_0x406d79);}(_0x406d,0x1e1));const _0x5668=function(_0x5ad2b4,_0x406d79){_0x5ad2b4=_0x5ad2b4-0x0;let _0x56684e=_0x406d[_0x5ad2b4];return _0x56684e;};import{View as _0x486540}from'ckeditor5/src/ui';import{toUnit as _0x4f8c38}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const kt=_0x4f8c38('px');export default class T extends _0x486540{constructor(_0x1cafff){super(_0x1cafff);const _0x4ec8ed=this[_0x5668('0x2')];this[_0x5668('0x8')](_0x5668('0x7'),0x0),this[_0x5668('0x8')](_0x5668('0x5'),''),this[_0x5668('0x1')]=this[_0x5668('0x3')](),this[_0x5668('0x0')]({'tag':_0x5668('0x6'),'attributes':{'class':['ck',_0x5668('0x4'),'ck-reset',_0x4ec8ed['to'](_0x5668('0x5'))],'style':{'minHeight':_0x4ec8ed['to'](_0x5668('0x7'),_0x31de81=>_0x31de81?kt(_0x31de81+0xa):null)}},'children':this[_0x5668('0x1')]});}}
23
+ const _0x540f=['minHeight','list','createCollection','bindTemplate','setTemplate','div','ck-reset','set','class','ck-sidebar'];(function(_0x597ae8,_0x540f71){const _0x19e27f=function(_0x4f344c){while(--_0x4f344c){_0x597ae8['push'](_0x597ae8['shift']());}};_0x19e27f(++_0x540f71);}(_0x540f,0x1dc));const _0x19e2=function(_0x597ae8,_0x540f71){_0x597ae8=_0x597ae8-0x0;let _0x19e27f=_0x540f[_0x597ae8];return _0x19e27f;};import{View as _0x21b99c}from'ckeditor5/src/ui';import{toUnit as _0x95b56f}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x95b56f('px');export default class T extends _0x21b99c{constructor(_0x1dc2d0){super(_0x1dc2d0);const _0x178f68=this[_0x19e2('0x7')];this[_0x19e2('0x1')](_0x19e2('0x4'),0x0),this['set'](_0x19e2('0x2'),''),this[_0x19e2('0x5')]=this[_0x19e2('0x6')](),this[_0x19e2('0x8')]({'tag':_0x19e2('0x9'),'attributes':{'class':['ck',_0x19e2('0x3'),_0x19e2('0x0'),_0x178f68['to'](_0x19e2('0x2'))],'style':{'minHeight':_0x178f68['to'](_0x19e2('0x4'),_0x2fed8f=>'number'==typeof _0x2fed8f?At(_0x2fed8f+0xa):null)}},'children':this['list']});}}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * @module comments/annotations/widesidebar
3
+ * @publicApi
4
+ */
5
+ import { ContextPlugin, type ContextPluginDependencies, Context, type Editor } from 'ckeditor5/src/core';
6
+ import { type AnnotationsUI } from './annotationsuis';
7
+ import type Annotation from './annotation';
8
+ import type AnnotationCollection from './annotationcollection';
9
+ /**
10
+ * The wide sidebar UI for displaying annotations.
11
+ *
12
+ * In this implementation {@link module:comments/annotations/sidebar~Sidebar the sidebar} displays full
13
+ * {@link module:comments/annotations/view/annotationview~AnnotationView annotation views}.
14
+ *
15
+ * To activate this UI use one of the following:
16
+ *
17
+ * ```ts
18
+ * editor.plugins.get( 'AnnotationsUIs' ).switchTo( 'wideSidebar' );
19
+ * editor.plugins.get( 'AnnotationsUIs' ).activate( 'wideSidebar', filter );
20
+ * ```
21
+ *
22
+ * See {@link module:comments/annotations/annotationsuis~AnnotationsUIs}.
23
+ */
24
+ export default class WideSidebar extends ContextPlugin implements AnnotationsUI<ContextPlugin> {
25
+ /**
26
+ * An active annotation tracked by this UI.
27
+ *
28
+ * @observable
29
+ */
30
+ activeAnnotation: Annotation | null;
31
+ isAttached: boolean;
32
+ /**
33
+ * A collection of annotations controlled by this UI.
34
+ *
35
+ * This property is readonly and should not be operated on directly. Use it only to read which annotations are added to this UI.
36
+ *
37
+ * It is set to `null` if `WideSidebar` is not {@link module:comments/annotations/widesidebar~WideSidebar#attach attached}.
38
+ */
39
+ annotations: AnnotationCollection | null;
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ static get requires(): ContextPluginDependencies;
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ static get pluginName(): 'WideSidebar';
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ constructor(context: Context | Editor);
52
+ /**
53
+ * @inheritDoc
54
+ */
55
+ init(): void;
56
+ /**
57
+ * Sets the active annotation for this UI.
58
+ */
59
+ setActiveAnnotation(annotation: Annotation | null): void;
60
+ /**
61
+ * @inheritDoc
62
+ */
63
+ attach(annotations: AnnotationCollection): void;
64
+ /**
65
+ * @inheritDoc
66
+ */
67
+ detach(): void;
68
+ /**
69
+ * @inheritDoc
70
+ */
71
+ destroy(): void;
72
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xce80=['EditorAnnotations','WideSidebar','blur','listenTo','removeEventListener','widesidebar-detach-not-attached','_refreshPositioningDebounced','pluginName','change:container','off','_destroyEditorAnnotationsIntegration','init','_integrateWithEditorAnnotations','register','add','switchTo','_detachFromContainer','annotations','stop','from','cancel','refreshPositioning','addEventListener','editors','_activeAnnotation','resize','setActiveAnnotation','get','addAnnotation','plugins','stopListening','refresh','activeAnnotation','isAttached','remove','_editorAnnotations','set','ready','container','Sidebar','detach','getOrderedSelectedAnnotations','high','attach','_attachToContainer','ck-sidebar--wide','context'];(function(_0x1fe293,_0xce80a3){const _0x21b478=function(_0x5d8c2a){while(--_0x5d8c2a){_0x1fe293['push'](_0x1fe293['shift']());}};_0x21b478(++_0xce80a3);}(_0xce80,0xea));const _0x21b4=function(_0x1fe293,_0xce80a3){_0x1fe293=_0x1fe293-0x0;let _0x21b478=_0xce80[_0x1fe293];return _0x21b478;};import{ContextPlugin as _0xbba118}from'ckeditor5/src/core';import _0x536d98 from'./annotationsuis';import _0x49cd70 from'./sidebar';import{CKEditorError as _0x104809,Collection as _0x87f93}from'ckeditor5/src/utils';import{debounce as _0x1befe7}from'lodash-es';export default class i extends _0xbba118{static get['requires'](){return[_0x49cd70,_0x536d98];}static get[_0x21b4('0x8')](){return _0x21b4('0x2');}constructor(_0x24e161){super(_0x24e161),this[_0x21b4('0x22')]=!0x1,this[_0x21b4('0x25')]('activeAnnotation',null),this[_0x21b4('0x12')]=null,this[_0x21b4('0x24')]=new _0x87f93(),this[_0x21b4('0x7')]=_0x1befe7(()=>{this[_0x21b4('0x12')][_0x21b4('0x16')]();},0xfa,{'leading':!0x1});}[_0x21b4('0xc')](){const _0x41b6f4=this[_0x21b4('0x0')][_0x21b4('0x1e')]['get'](_0x536d98),_0x4f14f8=this[_0x21b4('0x0')][_0x21b4('0x1e')][_0x21b4('0x1c')](_0x49cd70);_0x41b6f4[_0x21b4('0xe')]('wideSidebar',this),_0x4f14f8[_0x21b4('0x27')]&&_0x41b6f4[_0x21b4('0x10')]('wideSidebar');}[_0x21b4('0x1b')](_0x590058){if(_0x590058===this[_0x21b4('0x21')])return;const _0x210ad2=this[_0x21b4('0x0')][_0x21b4('0x1e')][_0x21b4('0x1c')](_0x49cd70);_0x210ad2[_0x21b4('0x19')]=_0x590058;const _0x38544e=this[_0x21b4('0x21')];this[_0x21b4('0x21')]=_0x590058,_0x210ad2[_0x21b4('0x20')]({'blurredAnnotation':_0x38544e,'activatedAnnotation':this[_0x21b4('0x21')]});}['attach'](_0x10adec){this[_0x21b4('0x12')]=_0x10adec;const _0x4ba0e0=this['context'][_0x21b4('0x1e')]['get'](_0x21b4('0x28'));if(_0x4ba0e0['_annotations']=_0x10adec,this[_0x21b4('0x22')])throw new _0x104809('widesidebar-attach-already-attached',this);this[_0x21b4('0x22')]=!0x0,this[_0x21b4('0x4')](_0x4ba0e0,'set:container',()=>{this[_0x21b4('0x29')](),this[_0x21b4('0x4')](_0x4ba0e0,_0x21b4('0x9'),_0x518734=>{_0x518734[_0x21b4('0xa')](),this[_0x21b4('0x2c')](_0x10adec);});}),_0x4ba0e0[_0x21b4('0x2d')]({'viewClass':_0x21b4('0x2e')});const _0x247e75=_0x265992=>{_0x265992['updateTargetRect'](),_0x4ba0e0[_0x21b4('0x1d')](_0x265992);};for(const _0x4549c7 of _0x10adec)_0x247e75(_0x4549c7);this[_0x21b4('0x4')](_0x10adec,_0x21b4('0xf'),(_0x5a2a1b,_0x36bd25)=>{_0x247e75(_0x36bd25);}),this[_0x21b4('0x4')](_0x10adec,'remove',(_0x1f33ff,_0x5ec0a6,_0x3aaa5b)=>{_0x4ba0e0['rearrange']({'removedAnnotation':_0x5ec0a6,'previousAnnotation':_0x10adec[_0x21b4('0x1c')](_0x3aaa5b-0x1),'nextAnnotation':_0x10adec[_0x21b4('0x1c')](_0x3aaa5b+0x1)}),_0x5ec0a6===this[_0x21b4('0x21')]&&this[_0x21b4('0x1b')](null);},{'priority':_0x21b4('0x2b')}),this[_0x21b4('0x4')](_0x10adec,'focus',(_0x276af5,_0x5b619c)=>{this[_0x21b4('0x1b')](_0x5b619c);}),this[_0x21b4('0x4')](_0x10adec,_0x21b4('0x3'),()=>{this['setActiveAnnotation'](null);});const _0x260f6f=this['context']['editors']?this[_0x21b4('0x0')]['editors']:new _0x87f93([this[_0x21b4('0x0')]]);for(const _0x25a1a3 of _0x260f6f)this[_0x21b4('0xd')](_0x25a1a3);this['listenTo'](_0x260f6f,_0x21b4('0xf'),(_0x1e5fe3,_0x29cf36)=>{this[_0x21b4('0x4')](_0x29cf36,_0x21b4('0x26'),()=>{this[_0x21b4('0xd')](_0x29cf36);});}),this[_0x21b4('0x4')](_0x260f6f,_0x21b4('0x23'),(_0x2ff590,_0x9d3ec2)=>{_0x9d3ec2[_0x21b4('0x1e')]['has'](_0x21b4('0x1'))&&this[_0x21b4('0xb')](_0x9d3ec2['plugins']['get'](_0x21b4('0x1')));}),window[_0x21b4('0x17')](_0x21b4('0x1a'),this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}[_0x21b4('0x29')](){if(!this[_0x21b4('0x22')])throw new _0x104809(_0x21b4('0x6'),this);this[_0x21b4('0x1b')](null);const _0x36e90f=this[_0x21b4('0x0')][_0x21b4('0x1e')]['get'](_0x49cd70);_0x36e90f[_0x21b4('0x11')](this['annotations']),this[_0x21b4('0x1f')](_0x36e90f),this[_0x21b4('0x1f')](this[_0x21b4('0x12')]),this[_0x21b4('0x1f')](this[_0x21b4('0x0')][_0x21b4('0x18')]);for(const _0x318b7a of Array[_0x21b4('0x14')](this['_editorAnnotations']))this[_0x21b4('0xb')](_0x318b7a);window[_0x21b4('0x5')](_0x21b4('0x1a'),this[_0x21b4('0x7')]),this['_refreshPositioningDebounced'][_0x21b4('0x15')](),this[_0x21b4('0x21')]=null,this[_0x21b4('0x22')]=!0x1,this[_0x21b4('0x12')]=null;}['destroy'](){this[_0x21b4('0x22')]&&this['detach']();}[_0x21b4('0xd')](_0x4d65ed){const _0x47f0a3=_0x4d65ed[_0x21b4('0x1e')][_0x21b4('0x1c')]('EditorAnnotations');if(!_0x47f0a3)return;const _0x4dc2d5=()=>{const _0x4911b1=_0x47f0a3[_0x21b4('0x2a')]({'annotations':this[_0x21b4('0x12')],'activeAnnotation':this[_0x21b4('0x21')]});this[_0x21b4('0x1b')](_0x4911b1[0x0]||null);};this[_0x21b4('0x4')](_0x47f0a3,_0x21b4('0x20'),_0x4dc2d5),this[_0x21b4('0x4')](_0x47f0a3,_0x21b4('0x3'),(_0x220d29,{isAnnotationTracked:_0x5bdac2})=>{this[_0x21b4('0x21')]&&_0x5bdac2(this['activeAnnotation'])&&this[_0x21b4('0x1b')](null);}),this[_0x21b4('0x4')](_0x47f0a3,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x21b4('0x4')](this[_0x21b4('0x12')],_0x21b4('0x3'),_0x4ab315=>{_0x47f0a3['hasDomSelection']()&&(_0x4dc2d5(),_0x4ab315[_0x21b4('0x13')]());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x47f0a3);}[_0x21b4('0xb')](_0x3b3841){_0x3b3841&&(this[_0x21b4('0x1f')](_0x3b3841),this['_editorAnnotations']['remove'](_0x3b3841));}}
23
+ const _0x1a56=['change:container','isAttached','stopListening','addEventListener','_activeAnnotation','switchTo','register','refreshPositioning','high','ck-sidebar--wide','_refreshPositioningDebounced','_annotations','container','from','EditorAnnotations','_integrateWithEditorAnnotations','activeAnnotation','annotations','rearrange','stop','widesidebar-detach-not-attached','plugins','attach','uiUpdate','widesidebar-attach-already-attached','hasDomSelection','requires','destroy','set','setActiveAnnotation','addAnnotation','_attachToContainer','blur','editors','remove','ready','_destroyEditorAnnotationsIntegration','updateTargetRect','off','WideSidebar','context','listenTo','focus','detach','removeEventListener','set:container','wideSidebar','get','_detachFromContainer','refresh','getOrderedSelectedAnnotations','pluginName','add','_editorAnnotations'];(function(_0x14ef4c,_0x1a56c1){const _0x555b87=function(_0x4b6d01){while(--_0x4b6d01){_0x14ef4c['push'](_0x14ef4c['shift']());}};_0x555b87(++_0x1a56c1);}(_0x1a56,0xbb));const _0x555b=function(_0x14ef4c,_0x1a56c1){_0x14ef4c=_0x14ef4c-0x0;let _0x555b87=_0x1a56[_0x14ef4c];return _0x555b87;};import{ContextPlugin as _0x3c782a,Context as _0x1afcb1}from'ckeditor5/src/core';import _0x35c4c5 from'./annotationsuis';import _0x3a4c51 from'./sidebar';import{CKEditorError as _0x146d80,Collection as _0x1ae6d5}from'ckeditor5/src/utils';import{debounce as _0x495dd1}from'lodash-es';import _0x569253 from'./editorannotations';export default class i extends _0x3c782a{static get[_0x555b('0x1')](){return[_0x3a4c51,_0x35c4c5];}static get[_0x555b('0x1a')](){return _0x555b('0xe');}constructor(_0x2a3268){super(_0x2a3268),this['isAttached']=!0x1,this[_0x555b('0x3')](_0x555b('0x2d'),null),this[_0x555b('0x2e')]=null,this[_0x555b('0x1c')]=new _0x1ae6d5(),this[_0x555b('0x27')]=_0x495dd1(()=>{this[_0x555b('0x2e')][_0x555b('0x24')]();},0xfa,{'leading':!0x1});}['init'](){const _0x3b3190=this[_0x555b('0xf')][_0x555b('0x32')][_0x555b('0x16')](_0x35c4c5),_0x10bd0a=this[_0x555b('0xf')]['plugins'][_0x555b('0x16')](_0x3a4c51);_0x3b3190[_0x555b('0x23')]('wideSidebar',this),_0x10bd0a[_0x555b('0x29')]&&_0x3b3190[_0x555b('0x22')](_0x555b('0x15'));}[_0x555b('0x4')](_0x1e9bfc){if(_0x1e9bfc===this[_0x555b('0x2d')])return;const _0x484440=this[_0x555b('0xf')][_0x555b('0x32')][_0x555b('0x16')](_0x3a4c51);_0x484440[_0x555b('0x21')]=_0x1e9bfc;const _0x297273=this[_0x555b('0x2d')];this[_0x555b('0x2d')]=_0x1e9bfc,_0x484440[_0x555b('0x18')]({'blurredAnnotation':_0x297273,'activatedAnnotation':this[_0x555b('0x2d')]});}[_0x555b('0x33')](_0x400935){this[_0x555b('0x2e')]=_0x400935;const _0xae8693=this['context'][_0x555b('0x32')][_0x555b('0x16')](_0x3a4c51);if(_0xae8693[_0x555b('0x28')]=_0x400935,this[_0x555b('0x1e')])throw new _0x146d80(_0x555b('0x35'),this);this['isAttached']=!0x0,this[_0x555b('0x10')](_0xae8693,_0x555b('0x14'),()=>{this[_0x555b('0x12')](),this[_0x555b('0x10')](_0xae8693,_0x555b('0x1d'),_0x17a6ec=>{_0x17a6ec[_0x555b('0xd')](),this[_0x555b('0x33')](_0x400935);});}),_0xae8693[_0x555b('0x6')]({'viewClass':_0x555b('0x26')});const _0x17efb3=_0x428c11=>{_0x428c11[_0x555b('0xc')](),_0xae8693[_0x555b('0x5')](_0x428c11);};for(const _0x6dcc0b of _0x400935)_0x17efb3(_0x6dcc0b);this[_0x555b('0x10')](_0x400935,_0x555b('0x1b'),(_0x209412,_0x44a986)=>{_0x17efb3(_0x44a986);}),this[_0x555b('0x10')](_0x400935,_0x555b('0x9'),(_0x4c5346,_0xcf2ed2,_0x5725da)=>{_0xae8693[_0x555b('0x2f')]({'removedAnnotation':_0xcf2ed2,'previousAnnotation':_0x400935['get'](_0x5725da-0x1),'nextAnnotation':_0x400935[_0x555b('0x16')](_0x5725da+0x1)}),_0xcf2ed2===this[_0x555b('0x2d')]&&this[_0x555b('0x4')](null);},{'priority':_0x555b('0x25')}),this[_0x555b('0x10')](_0x400935,_0x555b('0x11'),(_0x2a2d90,_0x1a59a3)=>{this[_0x555b('0x4')](_0x1a59a3);}),this[_0x555b('0x10')](_0x400935,_0x555b('0x7'),()=>{this[_0x555b('0x4')](null);});const _0x28bc5d=this[_0x555b('0xf')]instanceof _0x1afcb1?this[_0x555b('0xf')][_0x555b('0x8')]:new _0x1ae6d5([this[_0x555b('0xf')]]);for(const _0x2be6e0 of _0x28bc5d)this['_integrateWithEditorAnnotations'](_0x2be6e0);this[_0x555b('0x10')](_0x28bc5d,'add',(_0x18bc5d,_0x3c9641)=>{this[_0x555b('0x10')](_0x3c9641,_0x555b('0xa'),()=>{this[_0x555b('0x2c')](_0x3c9641);});}),this['listenTo'](_0x28bc5d,_0x555b('0x9'),(_0x2146ed,_0x77fdfc)=>{_0x77fdfc['plugins']['has'](_0x555b('0x2b'))&&this[_0x555b('0xb')](_0x77fdfc['plugins'][_0x555b('0x16')](_0x555b('0x2b')));}),window[_0x555b('0x20')]('resize',()=>this[_0x555b('0x27')]()),this['annotations']['refreshPositioning']();}[_0x555b('0x12')](){if(!this[_0x555b('0x1e')])throw new _0x146d80(_0x555b('0x31'),this);this[_0x555b('0x4')](null);const _0x1d221e=this[_0x555b('0xf')][_0x555b('0x32')][_0x555b('0x16')](_0x3a4c51);_0x1d221e[_0x555b('0x17')](this[_0x555b('0x2e')]),this['stopListening'](_0x1d221e),this[_0x555b('0x1f')](this[_0x555b('0x2e')]),this[_0x555b('0xf')]instanceof _0x1afcb1&&this[_0x555b('0x1f')](this[_0x555b('0xf')][_0x555b('0x8')]);for(const _0x4120f0 of Array[_0x555b('0x2a')](this[_0x555b('0x1c')]))this[_0x555b('0xb')](_0x4120f0);window[_0x555b('0x13')]('resize',this[_0x555b('0x27')]),this['_refreshPositioningDebounced']['cancel'](),this[_0x555b('0x2d')]=null,this[_0x555b('0x1e')]=!0x1,this[_0x555b('0x2e')]=null;}[_0x555b('0x2')](){this[_0x555b('0x1e')]&&this['detach']();}[_0x555b('0x2c')](_0xabba53){const _0x2f5d17=_0xabba53[_0x555b('0x32')][_0x555b('0x16')](_0x569253);if(!_0x2f5d17)return;const _0xd47c10=()=>{const _0x65d73e=_0x2f5d17[_0x555b('0x19')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this[_0x555b('0x4')](_0x65d73e[0x0]||null);};this['listenTo'](_0x2f5d17,'refresh',_0xd47c10),this[_0x555b('0x10')](_0x2f5d17,'blur',(_0x16f4ff,{isAnnotationTracked:_0x6128a})=>{this['activeAnnotation']&&_0x6128a(this[_0x555b('0x2d')])&&this[_0x555b('0x4')](null);}),this[_0x555b('0x10')](_0x2f5d17,_0x555b('0x34'),()=>{this['_refreshPositioningDebounced']();}),this[_0x555b('0x10')](this[_0x555b('0x2e')],_0x555b('0x7'),_0x1be359=>{_0x2f5d17[_0x555b('0x0')]()&&(_0xd47c10(),_0x1be359[_0x555b('0x30')]());},{'priority':_0x555b('0x25')}),this[_0x555b('0x1c')][_0x555b('0x1b')](_0x2f5d17);}[_0x555b('0xb')](_0x1b5c59){this['stopListening'](_0x1b5c59),this[_0x555b('0x1c')]['remove'](_0x1b5c59);}}
@@ -0,0 +1,54 @@
1
+ import type { CommentsConfig, SidebarConfig, Annotations, EditorAnnotations, CommentsRepository, CommentsUI } from './index';
2
+ declare module '@ckeditor/ckeditor5-core' {
3
+ interface EditorConfig {
4
+ /**
5
+ * The configuration of the comments feature.
6
+ * Introduced by the {@link module:comments/comments~Comments} feature.
7
+ *
8
+ * Read more in {@link module:comments/config~CommentsConfig}.
9
+ *
10
+ * ```ts
11
+ * ClassicEditor
12
+ * .create( {
13
+ * comments: ... // Locale editor configuration.
14
+ * } )
15
+ * .then( ... )
16
+ * .catch( ... );
17
+ * ```
18
+ *
19
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
20
+ */
21
+ comments?: CommentsConfig;
22
+ /**
23
+ * The configuration of the sidebar feature.
24
+ * Introduced by the {@link module:comments/annotations/sidebar~Sidebar} feature.
25
+ */
26
+ sidebar?: SidebarConfig;
27
+ /**
28
+ * Enables {@link module:comments/commentsonly~CommentsOnly comments-only mode} when the editor initializes.
29
+ *
30
+ * ```ts
31
+ * ClassicEditor
32
+ * .create( {
33
+ * commentsOnly: true
34
+ * } )
35
+ * .then( ... )
36
+ * .catch( ... );
37
+ * ```
38
+ */
39
+ commentsOnly?: boolean;
40
+ /**
41
+ * The license key for the CKEditor 5 premium features.
42
+ *
43
+ * If you do not have a key yet, please [contact us](https://ckeditor.com/contact/) or
44
+ * [order a trial](https://orders.ckeditor.com/trial/premium-features).
45
+ */
46
+ licenseKey?: string;
47
+ }
48
+ interface PluginsMap {
49
+ [Annotations.pluginName]: Annotations;
50
+ [EditorAnnotations.pluginName]: EditorAnnotations;
51
+ [CommentsRepository.pluginName]: CommentsRepository;
52
+ [CommentsUI.pluginName]: CommentsUI;
53
+ }
54
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export{};
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @module comments/comments/addcommentthreadcommand
3
+ * @publicApi
4
+ */
5
+ import { Command } from 'ckeditor5/src/core';
6
+ /**
7
+ * Adds a new CommentMarker what automatically adds corresponding CommentThread to the CommentsEditing#threads collection.
8
+ * Note this command adds only a CommentThread draft, to make is public marker has to be changed to be managed using operation.
9
+ *
10
+ * ```ts
11
+ * // If `threadId` is not specified, `addCommentThread()` will generate a unique ID and use it:
12
+ * editor.execute( 'addCommentThread' );
13
+ *
14
+ * // If you want to specify the exact thread ID, pass it through the optional `threadId` configuration parameter.
15
+ * editor.execute( 'addCommentThread', { threadId: 'thread-1' } );
16
+ * ```
17
+ */
18
+ export default class AddCommentThreadCommand extends Command {
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ refresh(): void;
23
+ /**
24
+ * @fires execute
25
+ * @param options Options for executed command.
26
+ * @param options.threadId Id of comment marker that will be added.
27
+ */
28
+ execute({ threadId }?: {
29
+ threadId?: string | undefined;
30
+ }): void;
31
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3cb7=['getItems','push','backward','selection','tableCell','_hasContent','isEnabled','getLastMatchingPosition','document','createRange','getRanges','addMarker','isObject','_trimToContent','model','change','execute','element','substr','editor','item','_itemIsContent','comment:'];(function(_0xb53314,_0x3cb733){const _0x37fdcd=function(_0x1fa983){while(--_0x1fa983){_0xb53314['push'](_0xb53314['shift']());}};_0x37fdcd(++_0x3cb733);}(_0x3cb7,0x93));const _0x37fd=function(_0xb53314,_0x3cb733){_0xb53314=_0xb53314-0x0;let _0x37fdcd=_0x3cb7[_0xb53314];return _0x37fdcd;};import{Command as _0x15b164}from'ckeditor5/src/core';import{uid as _0x9c194}from'ckeditor5/src/utils';export default class j extends _0x15b164{['refresh'](){const _0x5b2dd4=this[_0x37fd('0xa')][_0x37fd('0x5')][_0x37fd('0x16')][_0x37fd('0x11')];for(const _0x3c3fd9 of _0x5b2dd4['getRanges']())if(this[_0x37fd('0x13')](_0x3c3fd9))return void(this[_0x37fd('0x14')]=!0x0);this[_0x37fd('0x14')]=!0x1;}[_0x37fd('0x7')]({threadId:_0x25cba9=_0x9c194()}={}){const _0x302a0a=this[_0x37fd('0xa')][_0x37fd('0x5')],_0x22ab2e=[];for(const _0x30b768 of _0x302a0a[_0x37fd('0x16')][_0x37fd('0x11')][_0x37fd('0x1')]())this['_hasContent'](_0x30b768)&&_0x22ab2e[_0x37fd('0xf')](this[_0x37fd('0x4')](_0x30b768));_0x302a0a[_0x37fd('0x6')](_0x5ddc20=>{for(const _0x11362e of _0x22ab2e){const _0x34677d=_0x9c194()[_0x37fd('0x9')](0x1,0x5),_0x3b882e=_0x37fd('0xd')+_0x25cba9+':'+_0x34677d;_0x5ddc20[_0x37fd('0x2')](_0x3b882e,{'range':_0x11362e,'usingOperation':!0x1,'affectData':!0x1});}});}['_hasContent'](_0x2ab203){for(const _0x33ea7f of _0x2ab203[_0x37fd('0xe')]())if(this['_itemIsContent'](_0x33ea7f))return!0x0;return!0x1;}[_0x37fd('0xc')](_0x784629){return _0x784629['is']('textProxy')||this['editor'][_0x37fd('0x5')]['schema'][_0x37fd('0x3')](_0x784629)&&!_0x784629['is'](_0x37fd('0x8'),_0x37fd('0x12'));}[_0x37fd('0x4')](_0x4b4475){const _0x11198b=_0x502454=>!this['_itemIsContent'](_0x502454[_0x37fd('0xb')]),_0x4dc898=_0x4b4475['start'][_0x37fd('0x15')](_0x11198b),_0xe7cf70=_0x4b4475['end'][_0x37fd('0x15')](_0x11198b,{'direction':_0x37fd('0x10')});return this[_0x37fd('0xa')]['model'][_0x37fd('0x0')](_0x4dc898,_0xe7cf70);}}
23
+ const _0x34f1=['change','document','model','_hasContent','getRanges','refresh','substr','start','$textProxy','schema','_trimToContent','push','_itemIsContent','isObject','selection','getLastMatchingPosition','isEnabled','addMarker','backward','getItems','editor','tableCell','end','execute','item'];(function(_0x3100e,_0x34f15c){const _0x141f04=function(_0x522470){while(--_0x522470){_0x3100e['push'](_0x3100e['shift']());}};_0x141f04(++_0x34f15c);}(_0x34f1,0x64));const _0x141f=function(_0x3100e,_0x34f15c){_0x3100e=_0x3100e-0x0;let _0x141f04=_0x34f1[_0x3100e];return _0x141f04;};import{Command as _0x5dc56e}from'ckeditor5/src/core';import{uid as _0x9e25da}from'ckeditor5/src/utils';export default class q extends _0x5dc56e{[_0x141f('0x5')](){const _0x47566d=this[_0x141f('0x14')][_0x141f('0x2')][_0x141f('0x1')]['selection'];for(const _0x21dc1f of _0x47566d[_0x141f('0x4')]())if(this[_0x141f('0x3')](_0x21dc1f))return void(this[_0x141f('0x10')]=!0x0);this[_0x141f('0x10')]=!0x1;}[_0x141f('0x17')]({threadId:_0x20ddf6=_0x9e25da()}={}){const _0x1141f4=this[_0x141f('0x14')]['model'],_0x22da3c=[];for(const _0x37627a of _0x1141f4[_0x141f('0x1')][_0x141f('0xe')][_0x141f('0x4')]())this[_0x141f('0x3')](_0x37627a)&&_0x22da3c[_0x141f('0xb')](this[_0x141f('0xa')](_0x37627a));_0x1141f4[_0x141f('0x0')](_0x1a629e=>{for(const _0x51d375 of _0x22da3c){const _0x3b7dcf=_0x9e25da()[_0x141f('0x6')](0x1,0x5),_0x2d5d3d='comment:'+_0x20ddf6+':'+_0x3b7dcf;_0x1a629e[_0x141f('0x11')](_0x2d5d3d,{'range':_0x51d375,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x30e237){for(const _0x39ed5c of _0x30e237[_0x141f('0x13')]())if(this['_itemIsContent'](_0x39ed5c))return!0x0;return!0x1;}[_0x141f('0xc')](_0x331c8c){return _0x331c8c['is'](_0x141f('0x8'))||this[_0x141f('0x14')][_0x141f('0x2')][_0x141f('0x9')][_0x141f('0xd')](_0x331c8c)&&!_0x331c8c['is']('element',_0x141f('0x15'));}['_trimToContent'](_0x182665){const _0x7b70de=_0x1673f8=>!this[_0x141f('0xc')](_0x1673f8[_0x141f('0x18')]),_0x28e837=_0x182665[_0x141f('0x7')][_0x141f('0xf')](_0x7b70de),_0x273241=_0x182665[_0x141f('0x16')]['getLastMatchingPosition'](_0x7b70de,{'direction':_0x141f('0x12')});return this[_0x141f('0x14')][_0x141f('0x2')]['createRange'](_0x28e837,_0x273241);}}
@@ -0,0 +1,25 @@
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
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x4981=['isActive','resolveCommentThread','CommentsArchive','reopenCommentThread','listenTo','getCommentThread','focus','plugins','collection','pluginName','add','get','has','_calculatePosition','highest','context','resolvedAt','length','resolvedThreads','requires','removeCommentThread','activate'];(function(_0x4c7140,_0x4981c1){const _0x1ce093=function(_0x18c98e){while(--_0x18c98e){_0x4c7140['push'](_0x4c7140['shift']());}};_0x1ce093(++_0x4981c1);}(_0x4981,0x1a5));const _0x1ce0=function(_0x4c7140,_0x4981c1){_0x4c7140=_0x4c7140-0x0;let _0x1ce093=_0x4981[_0x4c7140];return _0x1ce093;};import{ContextPlugin as _0x5ee389}from'ckeditor5/src/core';import{Collection as _0x1c01ad}from'ckeditor5/src/utils';import _0x908d7 from'./commentsrepository';import _0x159017 from'../annotations/annotations';export default class p extends _0x5ee389{static get[_0x1ce0('0x6')](){return _0x1ce0('0x15');}static get[_0x1ce0('0x10')](){return[_0x908d7,_0x159017];}constructor(_0x3677ca){super(_0x3677ca),this[_0x1ce0('0xf')]=new _0x1c01ad();}['init'](){const _0x35c7c8=this[_0x1ce0('0xc')],_0x19295e=_0x35c7c8['plugins']['get'](_0x908d7),_0x225d5a=_0x35c7c8[_0x1ce0('0x4')][_0x1ce0('0x8')](_0x159017);this[_0x1ce0('0x1')](_0x19295e,'addCommentThread',(_0x1447ed,{threadId:_0x5a0e13,resolvedAt:_0x1e7c6d})=>{if(_0x1e7c6d){const _0x447242=_0x19295e['getCommentThread'](_0x5a0e13);this[_0x1ce0('0xf')][_0x1ce0('0x7')](_0x447242,this[_0x1ce0('0xa')](_0x1e7c6d));}}),this[_0x1ce0('0x1')](_0x19295e,_0x1ce0('0x14'),(_0x53218a,{threadId:_0xf3c1c3,resolvedAt:_0xcd5ec})=>{const _0xb70779=_0x19295e[_0x1ce0('0x2')](_0xf3c1c3);this[_0x1ce0('0xf')][_0x1ce0('0x7')](_0xb70779,this[_0x1ce0('0xa')](_0xcd5ec));},{'priority':_0x1ce0('0xb')}),this['listenTo'](_0x19295e,_0x1ce0('0x0'),(_0x3ff9ce,{threadId:_0x459f10})=>{const _0x5abeb1=_0x19295e[_0x1ce0('0x2')](_0x459f10);this[_0x1ce0('0xf')][_0x1ce0('0x9')](_0x5abeb1)&&this[_0x1ce0('0xf')]['remove'](_0x5abeb1);},{'priority':'highest'}),this['listenTo'](_0x19295e,_0x1ce0('0x11'),(_0x3f83dd,{threadId:_0x3b0007})=>{const _0x4fcbf3=_0x19295e[_0x1ce0('0x2')](_0x3b0007);this[_0x1ce0('0xf')][_0x1ce0('0x9')](_0x4fcbf3)&&this[_0x1ce0('0xf')]['remove'](_0x4fcbf3);},{'priority':_0x1ce0('0xb')}),this[_0x1ce0('0x1')](_0x225d5a[_0x1ce0('0x5')],_0x1ce0('0x3'),(_0x5dba09,_0x16281c)=>{_0x16281c[_0x1ce0('0x13')]=!0x0,_0x225d5a[_0x1ce0('0x12')](_0x16281c);});}[_0x1ce0('0xa')](_0x386b3e){const _0x125c71=[...this['resolvedThreads']]['findIndex'](_0x7b9be6=>_0x7b9be6[_0x1ce0('0xd')]<_0x386b3e);return _0x125c71>-0x1?_0x125c71:this['resolvedThreads'][_0x1ce0('0xe')];}}
@@ -0,0 +1,32 @@
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
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x1cab=['panelView','CommentsArchiveUI','componentFactory','requires','CommentsRepository','resolvedThreads','children','config','commentsArchiveView','stopListening','_createArchiveUIDropdown','locale','isVisible','channelId','annotationViews','COMMENTS_ARCHIVE','remove','_threadToController','editor','view','init','collaboration.channelId','buttonView','plugins','getByInnerView','commentsArchive','get','add','Annotations','pluginName','listenTo'];(function(_0x49b4c8,_0x1cab94){const _0x2a39f0=function(_0x5c533c){while(--_0x5c533c){_0x49b4c8['push'](_0x49b4c8['shift']());}};_0x2a39f0(++_0x1cab94);}(_0x1cab,0x199));const _0x2a39=function(_0x49b4c8,_0x1cab94){_0x49b4c8=_0x49b4c8-0x0;let _0x2a39f0=_0x1cab[_0x49b4c8];return _0x2a39f0;};import'../../theme/commentsarchive.css';import{Plugin as _0x2f6dad}from'ckeditor5/src/core';import{createDropdown as _0x49c0dc,ViewCollection as _0x49b979}from'ckeditor5/src/ui';import _0x39f4af from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x239c11}from'../utils/common-translations';import _0x44a8d4 from'./ui/view/commentsarchiveview';import _0x614cb7 from'./commentsarchive';export default class a extends _0x2f6dad{static get[_0x2a39('0x17')](){return _0x2a39('0x1a');}static get[_0x2a39('0x1c')](){return[_0x614cb7];}constructor(_0x318a17){super(_0x318a17),this[_0x2a39('0x8')]=new _0x49b979();}[_0x2a39('0xe')](){this[_0x2a39('0xc')]['ui'][_0x2a39('0x1b')][_0x2a39('0x15')](_0x2a39('0x13'),()=>this[_0x2a39('0x4')]());const _0x7aaa68=this['editor'][_0x2a39('0x11')][_0x2a39('0x14')](_0x614cb7),_0x14af19=this[_0x2a39('0xc')]['plugins'][_0x2a39('0x14')](_0x2a39('0x16')),_0x534020=this[_0x2a39('0xc')][_0x2a39('0x11')][_0x2a39('0x14')](_0x2a39('0x1d'));this[_0x2a39('0x18')](_0x7aaa68[_0x2a39('0x1e')],_0x2a39('0x15'),(_0x3eda91,_0x51578f,_0x371c9b)=>{const _0x31fbc2=this[_0x2a39('0xc')][_0x2a39('0x1')][_0x2a39('0x14')](_0x2a39('0xf'));if(!_0x31fbc2||_0x51578f['channelId']===_0x31fbc2){const _0x457462=_0x534020[_0x2a39('0xb')][_0x2a39('0x14')](_0x51578f),_0x26aa3e=_0x14af19[_0x2a39('0x12')](_0x457462[_0x2a39('0xd')]);_0x26aa3e[_0x2a39('0x6')]?this[_0x2a39('0x18')](_0x26aa3e,'change:isVisible',(_0x26fe61,_0x4e6833,_0x40b686)=>{_0x40b686||(this[_0x2a39('0x8')][_0x2a39('0x15')](_0x26aa3e[_0x2a39('0xd')],_0x371c9b),this[_0x2a39('0x3')](_0x26aa3e));}):this[_0x2a39('0x8')]['add'](_0x26aa3e[_0x2a39('0xd')],_0x371c9b);}}),this[_0x2a39('0x18')](_0x7aaa68[_0x2a39('0x1e')],_0x2a39('0xa'),(_0x2b6a57,_0x6b5f03)=>{const _0xac0ec=this[_0x2a39('0xc')][_0x2a39('0x1')][_0x2a39('0x14')]('collaboration.channelId');if(!_0xac0ec||_0x6b5f03[_0x2a39('0x7')]===_0xac0ec){const _0x596c7a=_0x534020[_0x2a39('0xb')][_0x2a39('0x14')](_0x6b5f03),_0xfd77ad=_0x14af19[_0x2a39('0x12')](_0x596c7a[_0x2a39('0xd')])[_0x2a39('0xd')];this[_0x2a39('0x8')][_0x2a39('0xa')](_0xfd77ad);}});}[_0x2a39('0x4')](){const _0x172c33=this[_0x2a39('0xc')],_0x2b3d26=_0x49c0dc(_0x172c33[_0x2a39('0x5')]);return _0x2b3d26[_0x2a39('0x10')]['set']({'icon':_0x39f4af,'label':_0x239c11(_0x172c33[_0x2a39('0x5')],_0x2a39('0x9')),'tooltip':!0x0}),_0x2b3d26['on']('change:isOpen',()=>{this[_0x2a39('0x2')]||(this[_0x2a39('0x2')]=new _0x44a8d4(_0x172c33[_0x2a39('0x5')],this['annotationViews']),_0x2b3d26[_0x2a39('0x19')][_0x2a39('0x0')][_0x2a39('0x15')](this['commentsArchiveView']));}),_0x2b3d26;}}