@ckeditor/ckeditor5-comments 38.1.0 → 38.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.d.ts +86 -86
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.d.ts +94 -94
  6. package/src/annotations/annotationcollection.js +1 -1
  7. package/src/annotations/annotations.d.ts +150 -150
  8. package/src/annotations/annotations.js +1 -1
  9. package/src/annotations/annotationsuis.d.ts +228 -228
  10. package/src/annotations/annotationsuis.js +1 -1
  11. package/src/annotations/editorannotations.d.ts +63 -63
  12. package/src/annotations/editorannotations.js +1 -1
  13. package/src/annotations/inlineannotations.d.ts +86 -86
  14. package/src/annotations/inlineannotations.js +1 -1
  15. package/src/annotations/narrowsidebar.d.ts +81 -81
  16. package/src/annotations/narrowsidebar.js +1 -1
  17. package/src/annotations/sidebar.d.ts +96 -96
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -25
  20. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  21. package/src/annotations/view/annotationview.d.ts +86 -86
  22. package/src/annotations/view/annotationview.js +1 -1
  23. package/src/annotations/view/sidebaritemview.d.ts +51 -51
  24. package/src/annotations/view/sidebaritemview.js +1 -1
  25. package/src/annotations/view/sidebarview.d.ts +28 -28
  26. package/src/annotations/view/sidebarview.js +1 -1
  27. package/src/annotations/widesidebar.d.ts +73 -73
  28. package/src/annotations/widesidebar.js +1 -1
  29. package/src/augmentation.d.ts +48 -48
  30. package/src/comments/addcommentthreadcommand.d.ts +31 -31
  31. package/src/comments/addcommentthreadcommand.js +1 -1
  32. package/src/comments/commentsarchive.d.ts +27 -27
  33. package/src/comments/commentsarchive.js +1 -1
  34. package/src/comments/commentsarchiveui.d.ts +34 -34
  35. package/src/comments/commentsarchiveui.js +1 -1
  36. package/src/comments/commentsediting.d.ts +75 -75
  37. package/src/comments/commentsediting.js +1 -1
  38. package/src/comments/commentsrepository.d.ts +1088 -1088
  39. package/src/comments/commentsrepository.js +1 -1
  40. package/src/comments/commentsui.d.ts +29 -29
  41. package/src/comments/commentsui.js +1 -1
  42. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -13
  43. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  44. package/src/comments/integrations/importword.d.ts +17 -17
  45. package/src/comments/integrations/importword.js +1 -1
  46. package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -32
  47. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  48. package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
  49. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
  51. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  52. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  53. package/src/comments/ui/commentthreadcontroller.js +1 -1
  54. package/src/comments/ui/view/basecommentthreadview.d.ts +108 -108
  55. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  56. package/src/comments/ui/view/basecommentview.d.ts +108 -108
  57. package/src/comments/ui/view/basecommentview.js +1 -1
  58. package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -9
  59. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  60. package/src/comments/ui/view/commentcontentview.d.ts +10 -10
  61. package/src/comments/ui/view/commentcontentview.js +1 -1
  62. package/src/comments/ui/view/commentinputview.d.ts +82 -82
  63. package/src/comments/ui/view/commentinputview.js +1 -1
  64. package/src/comments/ui/view/commentsarchiveview.d.ts +34 -34
  65. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.d.ts +96 -96
  67. package/src/comments/ui/view/commentslistview.js +1 -1
  68. package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -46
  69. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  70. package/src/comments/ui/view/commentthreadinputview.d.ts +37 -37
  71. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  72. package/src/comments/ui/view/commentthreadview.d.ts +113 -113
  73. package/src/comments/ui/view/commentthreadview.js +1 -1
  74. package/src/comments/ui/view/commentview.d.ts +239 -239
  75. package/src/comments/ui/view/commentview.js +1 -1
  76. package/src/comments.d.ts +31 -31
  77. package/src/comments.js +1 -1
  78. package/src/commentsonly.d.ts +29 -29
  79. package/src/commentsonly.js +1 -1
  80. package/src/config.d.ts +172 -172
  81. package/src/index.d.ts +21 -21
  82. package/src/utils/common-translations.d.ts +5 -5
  83. package/src/utils/common-translations.js +1 -1
  84. package/src/utils/createmutationobserver.d.ts +13 -13
  85. package/src/utils/createmutationobserver.js +1 -1
@@ -1,82 +1,82 @@
1
- /**
2
- * @module comments/comments/ui/view/commentinputview
3
- */
4
- import { View, ButtonView } from 'ckeditor5/src/ui';
5
- import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
6
- import { type EditorConfig, type DataApi } from 'ckeditor5/src/core';
7
- import CommentEditor from '../commenteditor/commenteditor';
8
- /**
9
- * A view for the comment input section that includes a comment editor.
10
- */
11
- export default class CommentInputView extends View {
12
- /**
13
- * Comment editor.
14
- */
15
- editor: CommentEditor & DataApi | null;
16
- /**
17
- * The input value (comment editor content).
18
- *
19
- * @observable
20
- */
21
- value: string;
22
- /**
23
- * When set to `true` it is not possible to submit the commit.
24
- *
25
- * @observable
26
- */
27
- disabledSubmit: boolean;
28
- /**
29
- * Specifies whether the buttons should be visible (`true`) or hidden (`false`).
30
- *
31
- * @observable
32
- */
33
- showButtons: boolean;
34
- /**
35
- * The comment editor placeholder.
36
- *
37
- * @observable
38
- */
39
- placeholder: string;
40
- /**
41
- * The submit button label.
42
- *
43
- * @observable
44
- */
45
- submitLabel: string;
46
- element: HTMLElement;
47
- /**
48
- * Keystroke handler for the view.
49
- */
50
- keystrokes: KeystrokeHandler;
51
- /**
52
- * Focus tracker for the view.
53
- */
54
- focusTracker: FocusTracker;
55
- /**
56
- * Button view for the button which submits the comment.
57
- */
58
- submitButtonView: ButtonView;
59
- /**
60
- * Button view for the button which cancels comment input.
61
- */
62
- cancelButtonView: ButtonView;
63
- constructor(locale: Locale, editorConfig?: EditorConfig);
64
- /**
65
- * @inheritDoc
66
- */
67
- render(): void;
68
- /**
69
- * Creates the comment editor instance.
70
- *
71
- * @returns Promise resolved after the editor instance is initialized.
72
- */
73
- createEditor(): Promise<CommentEditor | undefined>;
74
- /**
75
- * Focuses the view.
76
- */
77
- focus(): void;
78
- /**
79
- * @inheritDoc
80
- */
81
- destroy(): Promise<void>;
82
- }
1
+ /**
2
+ * @module comments/comments/ui/view/commentinputview
3
+ */
4
+ import { View, ButtonView } from 'ckeditor5/src/ui';
5
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
6
+ import { type EditorConfig, type DataApi } from 'ckeditor5/src/core';
7
+ import CommentEditor from '../commenteditor/commenteditor';
8
+ /**
9
+ * A view for the comment input section that includes a comment editor.
10
+ */
11
+ export default class CommentInputView extends View {
12
+ /**
13
+ * Comment editor.
14
+ */
15
+ editor: CommentEditor & DataApi | null;
16
+ /**
17
+ * The input value (comment editor content).
18
+ *
19
+ * @observable
20
+ */
21
+ value: string;
22
+ /**
23
+ * When set to `true` it is not possible to submit the commit.
24
+ *
25
+ * @observable
26
+ */
27
+ disabledSubmit: boolean;
28
+ /**
29
+ * Specifies whether the buttons should be visible (`true`) or hidden (`false`).
30
+ *
31
+ * @observable
32
+ */
33
+ showButtons: boolean;
34
+ /**
35
+ * The comment editor placeholder.
36
+ *
37
+ * @observable
38
+ */
39
+ placeholder: string;
40
+ /**
41
+ * The submit button label.
42
+ *
43
+ * @observable
44
+ */
45
+ submitLabel: string;
46
+ element: HTMLElement;
47
+ /**
48
+ * Keystroke handler for the view.
49
+ */
50
+ keystrokes: KeystrokeHandler;
51
+ /**
52
+ * Focus tracker for the view.
53
+ */
54
+ focusTracker: FocusTracker;
55
+ /**
56
+ * Button view for the button which submits the comment.
57
+ */
58
+ submitButtonView: ButtonView;
59
+ /**
60
+ * Button view for the button which cancels comment input.
61
+ */
62
+ cancelButtonView: ButtonView;
63
+ constructor(locale: Locale, editorConfig?: EditorConfig);
64
+ /**
65
+ * @inheritDoc
66
+ */
67
+ render(): void;
68
+ /**
69
+ * Creates the comment editor instance.
70
+ *
71
+ * @returns Promise resolved after the editor instance is initialized.
72
+ */
73
+ createEditor(): Promise<CommentEditor | undefined>;
74
+ /**
75
+ * Focuses the view.
76
+ */
77
+ focus(): void;
78
+ /**
79
+ * @inheritDoc
80
+ */
81
+ destroy(): Promise<void>;
82
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3231=['low','_createSubmitButton','firstChild','destroy','then','focusNext','document','focusPrevious','fire','value','focusTracker','length','ck-comment__input-actions--active','createEditor','placeholder','submitLabel','focus','label','disabledSubmit','render','cancelButtonView','ck-comment__input-actions','_initializeFocusCycling','change','isEnabled','bindTemplate','div','getData','withText','tab','forEach','insertBefore','set','keystrokes','showButtons','submit','view','setTemplate','ck-comment__input-wrapper','_createCancelButton','model','_editorConfig','_editorCreationPromise','element','extendTemplate','create','ck-comment__input-actions--cancel','high','Esc','submitButtonView','execute','cancel','add','TOO_LONG_COMMENT_ALERT','editor','Cancel','bind','trim','_isDestroyed'];(function(_0x113066,_0x3231e9){const _0x94a3c2=function(_0x4a1ec8){while(--_0x4a1ec8){_0x113066['push'](_0x113066['shift']());}};_0x94a3c2(++_0x3231e9);}(_0x3231,0xac));const _0x94a3=function(_0x113066,_0x3231e9){_0x113066=_0x113066-0x0;let _0x94a3c2=_0x3231[_0x113066];return _0x94a3c2;};import{View as _0x49e29f,ViewCollection as _0x4413d5,FocusCycler as _0x5c9f6c,ButtonView as _0x4c0db2}from'ckeditor5/src/ui';import{FocusTracker as _0x3ea1ca,KeystrokeHandler as _0x5bb41e}from'ckeditor5/src/utils';import _0x368707 from'../commenteditor/commenteditor';import{getTranslation as _0x7d697c}from'../../../utils/common-translations';export default class Yt extends _0x49e29f{constructor(_0x4c2d5c,_0x47c66d={}){super(_0x4c2d5c),this[_0x94a3('0x0')]=null,this[_0x94a3('0x2e')]=_0x47c66d,this[_0x94a3('0x26')]=new _0x5bb41e(),this[_0x94a3('0xf')]=new _0x3ea1ca(),this[_0x94a3('0x25')](_0x94a3('0xe'),_0x47c66d['initialData']||''),this[_0x94a3('0x25')](_0x94a3('0x17'),!0x1),this[_0x94a3('0x25')](_0x94a3('0x27'),!0x0),this[_0x94a3('0x25')](_0x94a3('0x13'),_0x7d697c(_0x4c2d5c,'Reply...')),this['set']('submitLabel',_0x7d697c(_0x4c2d5c,'Reply')),this[_0x94a3('0x36')]=this[_0x94a3('0x6')](),this[_0x94a3('0x19')]=this[_0x94a3('0x2c')](),this[_0x94a3('0x2a')]({'tag':_0x94a3('0x1f'),'attributes':{'class':[_0x94a3('0x2b')]},'children':[{'tag':_0x94a3('0x1f'),'attributes':{'class':[_0x94a3('0x1a'),this[_0x94a3('0x1e')]['if'](_0x94a3('0x27'),_0x94a3('0x11'))]},'children':[this[_0x94a3('0x36')],this[_0x94a3('0x19')]]}]}),this[_0x94a3('0x26')][_0x94a3('0x25')](_0x94a3('0x35'),(_0x5f1e1b,_0x13ca8c)=>{this['cancelButtonView'][_0x94a3('0xd')](_0x94a3('0x37')),_0x13ca8c();}),this['on']('submit',(_0x19ccbe,_0x309263)=>{_0x309263[_0x94a3('0x10')]>0xfde8?(alert(_0x7d697c(_0x4c2d5c,_0x94a3('0x3a'),[_0x309263['length'],0xfde8])),_0x19ccbe['stop']()):this[_0x94a3('0x0')]['setData']('');},{'priority':_0x94a3('0x34')});}['render'](){super[_0x94a3('0x18')](),this[_0x94a3('0x26')]['listenTo'](this[_0x94a3('0x30')]),this[_0x94a3('0xf')]['add'](this[_0x94a3('0x30')]);}[_0x94a3('0x12')](){return this[_0x94a3('0x0')]||(this[_0x94a3('0x0')]=new _0x368707(this[_0x94a3('0x2e')]),this['_editorCreationPromise']=this[_0x94a3('0x0')][_0x94a3('0x32')]()[_0x94a3('0x9')](()=>{if(this[_0x94a3('0x4')])return;const _0x49cddf=this[_0x94a3('0x0')];this[_0x94a3('0x30')][_0x94a3('0x24')](_0x49cddf['ui'][_0x94a3('0x30')],this[_0x94a3('0x30')][_0x94a3('0x7')]),_0x49cddf[_0x94a3('0x2d')][_0x94a3('0xb')]['on'](_0x94a3('0x1c'),()=>this[_0x94a3('0xe')]=_0x49cddf[_0x94a3('0x20')]()),_0x49cddf['bind'](_0x94a3('0x13'))['to'](this),this[_0x94a3('0x1b')](this['editor']),this[_0x94a3('0xd')]('editorReady');})),this[_0x94a3('0x2f')];}[_0x94a3('0x15')](){this['editor']&&this[_0x94a3('0x0')][_0x94a3('0x15')]();}async[_0x94a3('0x8')](){this[_0x94a3('0x4')]||(this['_isDestroyed']=!0x0,this['editor']&&(await this[_0x94a3('0x2f')],await this[_0x94a3('0x0')]['destroy']()),await super['destroy']());}[_0x94a3('0x6')](){const {locale:_0x2d04f6}=this,_0x393002=new _0x4c0db2(_0x2d04f6);return _0x393002[_0x94a3('0x31')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x393002['withText']=!0x0,_0x393002[_0x94a3('0x2')](_0x94a3('0x16'))['to'](this,_0x94a3('0x14')),_0x393002['on'](_0x94a3('0x37'),()=>{this['fire'](_0x94a3('0x28'),this[_0x94a3('0xe')]);}),_0x393002[_0x94a3('0x2')](_0x94a3('0x1d'))['to'](this,_0x94a3('0xe'),this,_0x94a3('0x17'),(_0x2fe494,_0x52078f)=>!_0x52078f&&!!_0x2fe494[_0x94a3('0x3')]()),_0x393002;}[_0x94a3('0x2c')](){const {locale:_0x51c680}=this,_0x572e80=new _0x4c0db2(_0x51c680);return _0x572e80[_0x94a3('0x31')]({'attributes':{'class':[_0x94a3('0x33')]}}),_0x572e80[_0x94a3('0x16')]=_0x7d697c(_0x51c680,_0x94a3('0x1')),_0x572e80[_0x94a3('0x21')]=!0x0,_0x572e80['on']('execute',()=>{this['editor']['setData'](''),this[_0x94a3('0xd')](_0x94a3('0x38'));}),_0x572e80;}[_0x94a3('0x1b')](_0x68070){const _0x31a0f1=this[_0x94a3('0xf')],_0x468e2e=new _0x4413d5();[_0x68070['ui'][_0x94a3('0x29')],this[_0x94a3('0x36')],this[_0x94a3('0x19')]][_0x94a3('0x23')](_0x3ed6a7=>{_0x468e2e[_0x94a3('0x39')](_0x3ed6a7),_0x31a0f1['add'](_0x3ed6a7[_0x94a3('0x30')]);});const _0x178101=new _0x5c9f6c({'focusables':_0x468e2e,'focusTracker':_0x31a0f1});this['keystrokes'][_0x94a3('0x25')](_0x94a3('0x22'),(_0x462ca5,_0x53ceb4)=>{_0x178101[_0x94a3('0xa')](),_0x53ceb4();},{'priority':_0x94a3('0x5')}),this[_0x94a3('0x26')][_0x94a3('0x25')]('shift\x20+\x20tab',(_0xbd49c9,_0x2e3036)=>{_0x178101[_0x94a3('0xc')](),_0x2e3036();},{'priority':_0x94a3('0x5')});}}
23
+ const _0x2c63=['getData','createEditor','document','submitLabel','create','length','placeholder','value','setTemplate','ck-comment__input-wrapper','_editorCreationPromise','initialData','set','cancel','showButtons','trim','change','tab','TOO_LONG_COMMENT_ALERT','disabledSubmit','keystrokes','then','label','stop','ck-comment__input-actions','listenTo','bind','_isDestroyed','ck-comment__input-actions--active','Cancel','shift\x20+\x20tab','view','add','editor','Reply...','focusNext','_createCancelButton','destroy','_editorConfig','submitButtonView','submit','extendTemplate','fire','_initializeFocusCycling','focusPrevious','setData','high','model','low','withText','Reply','div','cancelButtonView','ck-comment__input-actions--submit','render','element','execute'];(function(_0xf8e3c0,_0x2c6345){const _0x10e68a=function(_0x49ccf9){while(--_0x49ccf9){_0xf8e3c0['push'](_0xf8e3c0['shift']());}};_0x10e68a(++_0x2c6345);}(_0x2c63,0xa5));const _0x10e6=function(_0xf8e3c0,_0x2c6345){_0xf8e3c0=_0xf8e3c0-0x0;let _0x10e68a=_0x2c63[_0xf8e3c0];return _0x10e68a;};import{View as _0x4bba8d,ViewCollection as _0x102ab9,FocusCycler as _0x229949,ButtonView as _0x32061b}from'ckeditor5/src/ui';import{FocusTracker as _0x3a22f1,KeystrokeHandler as _0x5c8457}from'ckeditor5/src/utils';import _0x9692a6 from'../commenteditor/commenteditor';import{getTranslation as _0x5f193b}from'../../../utils/common-translations';export default class Yt extends _0x4bba8d{constructor(_0x1eb5ba,_0x284b32={}){super(_0x1eb5ba),this[_0x10e6('0x27')]=null,this['_editorConfig']=_0x284b32,this['keystrokes']=new _0x5c8457(),this['focusTracker']=new _0x3a22f1(),this[_0x10e6('0x12')](_0x10e6('0xd'),_0x284b32[_0x10e6('0x11')]||''),this[_0x10e6('0x12')](_0x10e6('0x19'),!0x1),this['set'](_0x10e6('0x14'),!0x0),this[_0x10e6('0x12')]('placeholder',_0x5f193b(_0x1eb5ba,_0x10e6('0x28'))),this[_0x10e6('0x12')]('submitLabel',_0x5f193b(_0x1eb5ba,_0x10e6('0x38'))),this[_0x10e6('0x2d')]=this['_createSubmitButton'](),this['cancelButtonView']=this[_0x10e6('0x2a')](),this[_0x10e6('0xe')]({'tag':_0x10e6('0x0'),'attributes':{'class':[_0x10e6('0xf')]},'children':[{'tag':_0x10e6('0x0'),'attributes':{'class':[_0x10e6('0x1e'),this['bindTemplate']['if'](_0x10e6('0x14'),_0x10e6('0x22'))]},'children':[this[_0x10e6('0x2d')],this[_0x10e6('0x1')]]}]}),this['keystrokes'][_0x10e6('0x12')]('Esc',(_0x128b33,_0x212d98)=>{this[_0x10e6('0x1')]['fire'](_0x10e6('0x5')),_0x212d98();}),this['on'](_0x10e6('0x2e'),(_0x2ca5ec,_0x18a4d5)=>{_0x18a4d5[_0x10e6('0xb')]>0xfde8?(alert(_0x5f193b(_0x1eb5ba,_0x10e6('0x18'),[_0x18a4d5[_0x10e6('0xb')],0xfde8])),_0x2ca5ec[_0x10e6('0x1d')]()):this[_0x10e6('0x27')][_0x10e6('0x33')]('');},{'priority':_0x10e6('0x34')});}[_0x10e6('0x3')](){super[_0x10e6('0x3')](),this[_0x10e6('0x1a')][_0x10e6('0x1f')](this['element']),this['focusTracker'][_0x10e6('0x26')](this['element']);}[_0x10e6('0x7')](){return this['editor']||(this[_0x10e6('0x27')]=new _0x9692a6(this[_0x10e6('0x2c')]),this['_editorCreationPromise']=this['editor'][_0x10e6('0xa')]()[_0x10e6('0x1b')](()=>{if(this['_isDestroyed'])return;const _0x2785ec=this['editor'];this[_0x10e6('0x4')]['insertBefore'](_0x2785ec['ui'][_0x10e6('0x4')],this['element']['firstChild']),_0x2785ec[_0x10e6('0x35')][_0x10e6('0x8')]['on'](_0x10e6('0x16'),()=>this[_0x10e6('0xd')]=_0x2785ec[_0x10e6('0x6')]()),_0x2785ec[_0x10e6('0x20')](_0x10e6('0xc'))['to'](this),this[_0x10e6('0x31')](this[_0x10e6('0x27')]),this[_0x10e6('0x30')]('editorReady');})),this[_0x10e6('0x10')];}['focus'](){this[_0x10e6('0x27')]&&this[_0x10e6('0x27')]['focus']();}async[_0x10e6('0x2b')](){this['_isDestroyed']||(this[_0x10e6('0x21')]=!0x0,this[_0x10e6('0x27')]&&(await this[_0x10e6('0x10')],await this[_0x10e6('0x27')]['destroy']()),await super[_0x10e6('0x2b')]());}['_createSubmitButton'](){const {locale:_0x1b4ec5}=this,_0x53233c=new _0x32061b(_0x1b4ec5);return _0x53233c[_0x10e6('0x2f')]({'attributes':{'class':[_0x10e6('0x2')]}}),_0x53233c['withText']=!0x0,_0x53233c[_0x10e6('0x20')](_0x10e6('0x1c'))['to'](this,_0x10e6('0x9')),_0x53233c['on'](_0x10e6('0x5'),()=>{this[_0x10e6('0x30')]('submit',this[_0x10e6('0xd')]);}),_0x53233c[_0x10e6('0x20')]('isEnabled')['to'](this,_0x10e6('0xd'),this,'disabledSubmit',(_0x2febe1,_0xf2303b)=>!_0xf2303b&&!!_0x2febe1[_0x10e6('0x15')]()),_0x53233c;}[_0x10e6('0x2a')](){const {locale:_0xddc26f}=this,_0x207a78=new _0x32061b(_0xddc26f);return _0x207a78['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x207a78[_0x10e6('0x1c')]=_0x5f193b(_0xddc26f,_0x10e6('0x23')),_0x207a78[_0x10e6('0x37')]=!0x0,_0x207a78['on'](_0x10e6('0x5'),()=>{this[_0x10e6('0x27')][_0x10e6('0x33')](''),this[_0x10e6('0x30')](_0x10e6('0x13'));}),_0x207a78;}['_initializeFocusCycling'](_0x577305){const _0x37e21e=this['focusTracker'],_0x9589a7=new _0x102ab9();[_0x577305['ui'][_0x10e6('0x25')],this[_0x10e6('0x2d')],this['cancelButtonView']]['forEach'](_0x307b8e=>{_0x9589a7[_0x10e6('0x26')](_0x307b8e),_0x37e21e['add'](_0x307b8e['element']);});const _0x301721=new _0x229949({'focusables':_0x9589a7,'focusTracker':_0x37e21e});this[_0x10e6('0x1a')][_0x10e6('0x12')](_0x10e6('0x17'),(_0x36f15e,_0x4e4b95)=>{_0x301721[_0x10e6('0x29')](),_0x4e4b95();},{'priority':_0x10e6('0x36')}),this[_0x10e6('0x1a')][_0x10e6('0x12')](_0x10e6('0x24'),(_0xb847c3,_0x5cc4fd)=>{_0x301721[_0x10e6('0x32')](),_0x5cc4fd();},{'priority':_0x10e6('0x36')});}}
@@ -1,34 +1,34 @@
1
- /**
2
- * @module comments/comments/ui/view/commentslistview
3
- */
4
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
5
- import { type Locale } from 'ckeditor5/src/utils';
6
- import type AnnotationView from '../../../annotations/view/annotationview';
7
- /**
8
- * A view representing the content of comments archive.
9
- */
10
- export default class CommentsArchiveView extends View {
11
- /**
12
- * The flag indicating whether there are items to display in the comments archive.
13
- *
14
- * @observable
15
- */
16
- isEmpty: boolean;
17
- /**
18
- * @param locale The localization service instance.
19
- * @param annotationViews Resolved comment thread annotation views to render inside the comments archive.
20
- */
21
- constructor(locale: Locale, annotationViews: ViewCollection<AnnotationView>);
22
- /**
23
- * @inheritDoc
24
- */
25
- render(): void;
26
- /**
27
- * @inheritDoc
28
- */
29
- destroy(): void;
30
- /**
31
- * @inheritDoc
32
- */
33
- focus(): void;
34
- }
1
+ /**
2
+ * @module comments/comments/ui/view/commentslistview
3
+ */
4
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
5
+ import { type Locale } from 'ckeditor5/src/utils';
6
+ import type AnnotationView from '../../../annotations/view/annotationview';
7
+ /**
8
+ * A view representing the content of comments archive.
9
+ */
10
+ export default class CommentsArchiveView extends View {
11
+ /**
12
+ * The flag indicating whether there are items to display in the comments archive.
13
+ *
14
+ * @observable
15
+ */
16
+ isEmpty: boolean;
17
+ /**
18
+ * @param locale The localization service instance.
19
+ * @param annotationViews Resolved comment thread annotation views to render inside the comments archive.
20
+ */
21
+ constructor(locale: Locale, annotationViews: ViewCollection<AnnotationView>);
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ render(): void;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ destroy(): void;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ focus(): void;
34
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x107f=['length','bindTemplate','tab','isEmpty','EMPTY_COMMENTS_ARCHIVE','arrowdown','ck-comments-archive','_focusables','element','stopPropagation','ck-hidden','remove','auto','listenTo','_focusTracker','_keystrokes','render','selectstart','setTemplate','arrowright','set','focus','destroy','div','add','COMMENTS_ARCHIVE','high'];(function(_0x5294c5,_0x107f74){const _0x36a6f9=function(_0x405dfd){while(--_0x405dfd){_0x5294c5['push'](_0x5294c5['shift']());}};_0x36a6f9(++_0x107f74);}(_0x107f,0x1bf));const _0x36a6=function(_0x5294c5,_0x107f74){_0x5294c5=_0x5294c5-0x0;let _0x36a6f9=_0x107f[_0x5294c5];return _0x36a6f9;};import{View as _0x8679cc,FocusCycler as _0x1762f6}from'ckeditor5/src/ui';import{FocusTracker as _0x244e0f,KeystrokeHandler as _0x175aae}from'ckeditor5/src/utils';import{getTranslation as _0x59e34f}from'../../../utils/common-translations';export default class Q extends _0x8679cc{constructor(_0x11bdb3,_0xdf4011){super(_0x11bdb3),this[_0x36a6('0x5')](_0x36a6('0xf'),!_0xdf4011[_0x36a6('0xc')]),this[_0x36a6('0x1a')]=new _0x244e0f(),this[_0x36a6('0x0')]=new _0x175aae(),this[_0x36a6('0x13')]=_0xdf4011,this['_focusCycler']=new _0x1762f6({'focusables':this[_0x36a6('0x13')],'focusTracker':this[_0x36a6('0x1a')],'keystrokeHandler':this[_0x36a6('0x0')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x36a6('0xe')}}),this[_0x36a6('0x19')](_0xdf4011,_0x36a6('0x9'),()=>{this[_0x36a6('0xf')]=!0x1;}),this[_0x36a6('0x19')](_0xdf4011,_0x36a6('0x17'),(_0x33c751,_0x3fbfa3)=>{_0x3fbfa3['isActive']&&this[_0x36a6('0x6')](),_0xdf4011['length']||(this[_0x36a6('0xf')]=!0x0);});const _0xdb0f3d=this[_0x36a6('0xd')];this[_0x36a6('0x3')]({'tag':_0x36a6('0x8'),'attributes':{'dir':_0x36a6('0x18'),'class':['ck',_0x36a6('0x12')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':['ck-comments-archive__header\x20']},'children':[{'text':_0x59e34f(_0x11bdb3,_0x36a6('0xa'))}]},{'tag':_0x36a6('0x8'),'attributes':{'class':['ck-comments-archive__content']},'children':[{'tag':_0x36a6('0x8'),'children':_0xdf4011},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0xdb0f3d['if'](_0x36a6('0xf'),_0x36a6('0x16'),_0x2d1baf=>!_0x2d1baf)]},'children':[{'text':_0x59e34f(_0x11bdb3,_0x36a6('0x10'))}]}]}]});}[_0x36a6('0x1')](){super[_0x36a6('0x1')](),this[_0x36a6('0x0')][_0x36a6('0x19')](this[_0x36a6('0x14')]);const _0x4901eb=_0x51a762=>_0x51a762['stopPropagation']();this[_0x36a6('0x0')][_0x36a6('0x5')](_0x36a6('0x4'),_0x4901eb),this[_0x36a6('0x0')][_0x36a6('0x5')]('arrowleft',_0x4901eb),this[_0x36a6('0x0')][_0x36a6('0x5')]('arrowup',_0x4901eb),this[_0x36a6('0x0')][_0x36a6('0x5')](_0x36a6('0x11'),_0x4901eb),this[_0x36a6('0x19')](this[_0x36a6('0x14')],_0x36a6('0x2'),(_0x3cbe2f,_0x4ea80e)=>{_0x4ea80e[_0x36a6('0x15')]();},{'priority':_0x36a6('0xb')});}['destroy'](){super[_0x36a6('0x7')](),this[_0x36a6('0x1a')]['destroy'](),this['_keystrokes']['destroy']();}['focus'](){this[_0x36a6('0x14')]['focus']();}}
23
+ const _0x4200=['set','isActive','arrowleft','arrowright','stopPropagation','ck-hidden','destroy','focus','arrowup','listenTo','tab','shift\x20+\x20tab','auto','element','ck-comments-archive__content','ck-comments-archive__info','arrowdown','_focusables','_focusTracker','_keystrokes','ck-comments-archive__header\x20','add','setTemplate','div','EMPTY_COMMENTS_ARCHIVE','ck-comments-archive','COMMENTS_ARCHIVE','length'];(function(_0x369cd2,_0x420049){const _0x3c3056=function(_0x49e6a9){while(--_0x49e6a9){_0x369cd2['push'](_0x369cd2['shift']());}};_0x3c3056(++_0x420049);}(_0x4200,0x149));const _0x3c30=function(_0x369cd2,_0x420049){_0x369cd2=_0x369cd2-0x0;let _0x3c3056=_0x4200[_0x369cd2];return _0x3c3056;};import{View as _0x2e566d,FocusCycler as _0x34d39b}from'ckeditor5/src/ui';import{FocusTracker as _0x3eb7cd,KeystrokeHandler as _0x285883}from'ckeditor5/src/utils';import{getTranslation as _0x2fb418}from'../../../utils/common-translations';export default class Q extends _0x2e566d{constructor(_0x2b876b,_0x86859){super(_0x2b876b),this[_0x3c30('0x7')]('isEmpty',!_0x86859[_0x3c30('0x6')]),this[_0x3c30('0x19')]=new _0x3eb7cd(),this[_0x3c30('0x1a')]=new _0x285883(),this[_0x3c30('0x18')]=_0x86859,this['_focusCycler']=new _0x34d39b({'focusables':this[_0x3c30('0x18')],'focusTracker':this[_0x3c30('0x19')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0x3c30('0x12'),'focusNext':_0x3c30('0x11')}}),this['listenTo'](_0x86859,_0x3c30('0x0'),()=>{this['isEmpty']=!0x1;}),this[_0x3c30('0x10')](_0x86859,'remove',(_0x4732b3,_0xf1ed84)=>{_0xf1ed84[_0x3c30('0x8')]&&this[_0x3c30('0xe')](),_0x86859[_0x3c30('0x6')]||(this['isEmpty']=!0x0);});const _0x580f72=this['bindTemplate'];this[_0x3c30('0x1')]({'tag':_0x3c30('0x2'),'attributes':{'dir':_0x3c30('0x13'),'class':['ck',_0x3c30('0x4')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x3c30('0x1b')]},'children':[{'text':_0x2fb418(_0x2b876b,_0x3c30('0x5'))}]},{'tag':_0x3c30('0x2'),'attributes':{'class':[_0x3c30('0x15')]},'children':[{'tag':'div','children':_0x86859},{'tag':'p','attributes':{'class':[_0x3c30('0x16'),_0x580f72['if']('isEmpty',_0x3c30('0xc'),_0x1264d1=>!_0x1264d1)]},'children':[{'text':_0x2fb418(_0x2b876b,_0x3c30('0x3'))}]}]}]});}['render'](){super['render'](),this[_0x3c30('0x1a')]['listenTo'](this[_0x3c30('0x14')]);const _0x577837=_0x38b07=>_0x38b07[_0x3c30('0xb')]();this[_0x3c30('0x1a')][_0x3c30('0x7')](_0x3c30('0xa'),_0x577837),this['_keystrokes']['set'](_0x3c30('0x9'),_0x577837),this[_0x3c30('0x1a')]['set'](_0x3c30('0xf'),_0x577837),this[_0x3c30('0x1a')][_0x3c30('0x7')](_0x3c30('0x17'),_0x577837),this[_0x3c30('0x10')](this[_0x3c30('0x14')],'selectstart',(_0x4266c8,_0x5f890)=>{_0x5f890[_0x3c30('0xb')]();},{'priority':'high'});}[_0x3c30('0xd')](){super[_0x3c30('0xd')](),this[_0x3c30('0x19')][_0x3c30('0xd')](),this[_0x3c30('0x1a')][_0x3c30('0xd')]();}[_0x3c30('0xe')](){this[_0x3c30('0x14')]['focus']();}}
@@ -1,96 +1,96 @@
1
- /**
2
- * @module comments/comments/ui/view/commentslistview
3
- */
4
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
5
- import { type Locale } from 'ckeditor5/src/utils';
6
- import type { CommentThread } from '../../commentsrepository';
7
- import type CommentView from './commentview';
8
- import type { CommentThreadConfig } from '../../../config';
9
- /**
10
- * A view representing the list of comments. It should be used as a part of the comment thread view.
11
- */
12
- export default class CommentsListView extends View {
13
- locale: Locale;
14
- /**
15
- * Informs whether the list contains any comment view that is in the editing mode.
16
- *
17
- * @observable
18
- */
19
- hasDirtyComment: boolean;
20
- /**
21
- * Number of comments in the list.
22
- *
23
- * @observable
24
- */
25
- length: number;
26
- /**
27
- * Informs whether the comments list view is in the active state ("highlighted").
28
- * Comment list view is in that state when it is focused or it was activated by the user in any different way.
29
- *
30
- * @observable
31
- */
32
- isActive: boolean;
33
- /**
34
- * View collection which holds all comment views to be displayed.
35
- * It may also contain collapsed count view if the comments list view is collapsed and some comment views are hidden.
36
- *
37
- * @readonly
38
- */
39
- readonly visibleViews: ViewCollection;
40
- /**
41
- * View collection which holds all comment views created for given comment thread.
42
- *
43
- * @readonly
44
- */
45
- readonly commentViews: ViewCollection;
46
- /**
47
- * Comment view used to display information that comment has been resolved.
48
- *
49
- * @readonly
50
- */
51
- resolvedCommentView: CommentView | null;
52
- /**
53
- * @param locale The localization service instance.
54
- * @param model The model on which the view will base.
55
- * @param config Additional view configuration.
56
- */
57
- constructor(locale: Locale, model: CommentThread, config: CommentThreadConfig);
58
- /**
59
- * @inheritDoc
60
- */
61
- render(): void;
62
- /**
63
- * Focuses the view.
64
- */
65
- focus(): void;
66
- /**
67
- * @inheritDoc
68
- */
69
- destroy(): void;
70
- /**
71
- * Refreshes the list of the visible views.
72
- *
73
- * When doing so, it performs a minimal amount of changes, so that views are not re-added, which might cause undesirable effects
74
- * like focus loss or glitches due to CSS animations.
75
- *
76
- * The comments list may be collapsed or expanded:
77
- *
78
- * * it is expanded, if it {@link ~#isActive is active},
79
- * * it is expanded, if {@link module:comments/comments/commentsrepository~CommentThread#weight comment thread weight}
80
- * is lower than allowed (`config.comments.maxThreadTotalWeight`),
81
- * * it is expanded, if it {@link ~#hasDirtyComment has any comments in edit mode},
82
- * * it is collapsed, if neither of above is true.
83
- *
84
- * When comments list is in collapsed state, it displays at most `config.comments.maxCommentsWhenCollapsed` comment views:
85
- *
86
- * * first comment view,
87
- * * {@link ~#_collapsedCommentsView collapsed comments counter} (if there are any hidden views),
88
- * * appropriate number of the comments from the bottom of the thread.
89
- *
90
- * All the comments are also {@link module:comments/comments/ui/view/basecommentview~BaseCommentView#collapse set to collapsed state}.
91
- *
92
- * When comments list in in expanded state, it displays all comment views for all comments. All the comments are also
93
- * {@link module:comments/comments/ui/view/basecommentview~BaseCommentView#expand set to expanded state}.
94
- */
95
- refreshVisibleViews(): void;
96
- }
1
+ /**
2
+ * @module comments/comments/ui/view/commentslistview
3
+ */
4
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
5
+ import { type Locale } from 'ckeditor5/src/utils';
6
+ import type { CommentThread } from '../../commentsrepository';
7
+ import type CommentView from './commentview';
8
+ import type { CommentThreadConfig } from '../../../config';
9
+ /**
10
+ * A view representing the list of comments. It should be used as a part of the comment thread view.
11
+ */
12
+ export default class CommentsListView extends View {
13
+ locale: Locale;
14
+ /**
15
+ * Informs whether the list contains any comment view that is in the editing mode.
16
+ *
17
+ * @observable
18
+ */
19
+ hasDirtyComment: boolean;
20
+ /**
21
+ * Number of comments in the list.
22
+ *
23
+ * @observable
24
+ */
25
+ length: number;
26
+ /**
27
+ * Informs whether the comments list view is in the active state ("highlighted").
28
+ * Comment list view is in that state when it is focused or it was activated by the user in any different way.
29
+ *
30
+ * @observable
31
+ */
32
+ isActive: boolean;
33
+ /**
34
+ * View collection which holds all comment views to be displayed.
35
+ * It may also contain collapsed count view if the comments list view is collapsed and some comment views are hidden.
36
+ *
37
+ * @readonly
38
+ */
39
+ readonly visibleViews: ViewCollection;
40
+ /**
41
+ * View collection which holds all comment views created for given comment thread.
42
+ *
43
+ * @readonly
44
+ */
45
+ readonly commentViews: ViewCollection;
46
+ /**
47
+ * Comment view used to display information that comment has been resolved.
48
+ *
49
+ * @readonly
50
+ */
51
+ resolvedCommentView: CommentView | null;
52
+ /**
53
+ * @param locale The localization service instance.
54
+ * @param model The model on which the view will base.
55
+ * @param config Additional view configuration.
56
+ */
57
+ constructor(locale: Locale, model: CommentThread, config: CommentThreadConfig);
58
+ /**
59
+ * @inheritDoc
60
+ */
61
+ render(): void;
62
+ /**
63
+ * Focuses the view.
64
+ */
65
+ focus(): void;
66
+ /**
67
+ * @inheritDoc
68
+ */
69
+ destroy(): void;
70
+ /**
71
+ * Refreshes the list of the visible views.
72
+ *
73
+ * When doing so, it performs a minimal amount of changes, so that views are not re-added, which might cause undesirable effects
74
+ * like focus loss or glitches due to CSS animations.
75
+ *
76
+ * The comments list may be collapsed or expanded:
77
+ *
78
+ * * it is expanded, if it {@link ~#isActive is active},
79
+ * * it is expanded, if {@link module:comments/comments/commentsrepository~CommentThread#weight comment thread weight}
80
+ * is lower than allowed (`config.comments.maxThreadTotalWeight`),
81
+ * * it is expanded, if it {@link ~#hasDirtyComment has any comments in edit mode},
82
+ * * it is collapsed, if neither of above is true.
83
+ *
84
+ * When comments list is in collapsed state, it displays at most `config.comments.maxCommentsWhenCollapsed` comment views:
85
+ *
86
+ * * first comment view,
87
+ * * {@link ~#_collapsedCommentsView collapsed comments counter} (if there are any hidden views),
88
+ * * appropriate number of the comments from the bottom of the thread.
89
+ *
90
+ * All the comments are also {@link module:comments/comments/ui/view/basecommentview~BaseCommentView#collapse set to collapsed state}.
91
+ *
92
+ * When comments list in in expanded state, it displays all comment views for all comments. All the comments are also
93
+ * {@link module:comments/comments/ui/view/basecommentview~BaseCommentView#expand set to expanded state}.
94
+ */
95
+ refreshVisibleViews(): void;
96
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4862=['collapse','set','formatDateTime','resolvedCommentView','equal','_calculatePosition','_collapsedCommentsView','element','destroy','authoredAt','editorConfig','viewUid','change:hasDirtyComment','isEditMode','locale','delete','ck-thread__comments','bind','listenTo','setTemplate','_updateHasDirtyComment','maxCommentCharsWhenCollapsed','commentUpdated','from','_handleInfoComment','createCollection','_shouldCollapse','focus','isActive','insert','visibleViews','length','updateComment','commentViews','remove','_model','add','_rearrangeCollapse','Marked\x20as\x20resolved','resolvedAt','resolveCommentThread','resolved','_handleRemoveCommentModel','comments','refreshVisibleViews','render','_config','count','_handleNewCommentModel','removeComment','delegate','change:isActive','CommentView','_rearrangeExpand','_findOptimalIndex','resolvedBy','hasDirtyComment','weight','some'];(function(_0x4d8084,_0x4862d8){const _0x1ee99d=function(_0x40f919){while(--_0x40f919){_0x4d8084['push'](_0x4d8084['shift']());}};_0x1ee99d(++_0x4862d8);}(_0x4862,0x1a9));const _0x1ee9=function(_0x4d8084,_0x4862d8){_0x4d8084=_0x4d8084-0x0;let _0x1ee99d=_0x4862[_0x4d8084];return _0x1ee99d;};import{View as _0x25c316}from'ckeditor5/src/ui';import{diff as _0x384c42,Collection as _0x33bbbc}from'ckeditor5/src/utils';import{getTranslation as _0x4254f6}from'../../../utils/common-translations';import _0x5a7f34 from'./collapsedcommentsview';export default class wt extends _0x25c316{constructor(_0x36266e,_0x1e40ad,_0x89c5f6){super(_0x36266e),this[_0x1ee9('0x30')]('hasDirtyComment',!0x1),this[_0x1ee9('0x30')](_0x1ee9('0x13'),_0x1e40ad[_0x1ee9('0x1f')][_0x1ee9('0x13')]),this[_0x1ee9('0x30')](_0x1ee9('0x10'),!0x1),this['_model']=_0x1e40ad,this[_0x1ee9('0x22')]=_0x89c5f6,this[_0x1ee9('0x15')]=this[_0x1ee9('0xd')](),this[_0x1ee9('0x12')]=this['createCollection'](),this[_0x1ee9('0x32')]=null,this[_0x1ee9('0x35')]=new _0x5a7f34(_0x36266e),this[_0x1ee9('0x35')][_0x1ee9('0x5')](_0x1ee9('0x23'))['to'](this,_0x1ee9('0x13'),_0x51b464=>_0x51b464-this[_0x1ee9('0x22')]['maxCommentsWhenCollapsed']);for(const _0x14b3a1 of _0x1e40ad[_0x1ee9('0x1f')])this['_handleNewCommentModel'](_0x14b3a1);this[_0x1ee9('0xc')](),this[_0x1ee9('0x6')](_0x1e40ad[_0x1ee9('0x1f')],_0x1ee9('0x18'),(_0x507cbc,_0x32c225)=>{const _0x4b5c75=this[_0x1ee9('0x34')](_0x32c225);this[_0x1ee9('0x13')]++,this[_0x1ee9('0x24')](_0x32c225,_0x4b5c75),this[_0x1ee9('0x20')]();}),this['listenTo'](_0x1e40ad[_0x1ee9('0x1f')],_0x1ee9('0x16'),(_0x1d1bdf,_0x57051d)=>{this['length']--,this[_0x1ee9('0x1e')](_0x57051d),this[_0x1ee9('0x20')]();}),this[_0x1ee9('0x6')](_0x1e40ad,_0x1ee9('0xa'),()=>this[_0x1ee9('0x20')]()),this[_0x1ee9('0x6')](_0x1e40ad,'change:isResolved',()=>this[_0x1ee9('0xc')]()),this['on'](_0x1ee9('0x27'),()=>this[_0x1ee9('0x20')]()),this['on'](_0x1ee9('0x0'),()=>this[_0x1ee9('0x20')]()),this[_0x1ee9('0x7')]({'tag':'ul','attributes':{'class':[_0x1ee9('0x4')]},'children':this[_0x1ee9('0x12')]});}get['_shouldCollapse'](){return this[_0x1ee9('0x17')][_0x1ee9('0x2d')]>this[_0x1ee9('0x22')]['maxThreadTotalWeight']&&!this['isActive']&&!this[_0x1ee9('0x2c')];}[_0x1ee9('0x21')](){super[_0x1ee9('0x21')](),this['refreshVisibleViews']();}[_0x1ee9('0xf')](){this[_0x1ee9('0x36')][_0x1ee9('0xf')]();}[_0x1ee9('0x37')](){this[_0x1ee9('0x35')][_0x1ee9('0x37')]();for(const _0x34cbdc of this[_0x1ee9('0x15')])_0x34cbdc[_0x1ee9('0x37')]();super[_0x1ee9('0x37')]();}[_0x1ee9('0x20')](){this[_0x1ee9('0xe')]?this[_0x1ee9('0x19')]():this[_0x1ee9('0x29')]();}[_0x1ee9('0x24')](_0xcd7143,_0x2b3ffd){const _0x3c61fc=new this[(_0x1ee9('0x22'))][(_0x1ee9('0x28'))](this[_0x1ee9('0x2')],_0xcd7143,{'maxCommentCharsWhenCollapsed':this[_0x1ee9('0x22')][_0x1ee9('0x9')],'formatDateTime':this['_config'][_0x1ee9('0x31')],'editorConfig':this['_config'][_0x1ee9('0x39')]});_0x3c61fc[_0x1ee9('0x3a')]=_0xcd7143['id'],_0x3c61fc[_0x1ee9('0x26')](_0x1ee9('0x25'))['to'](this),_0x3c61fc[_0x1ee9('0x26')](_0x1ee9('0x14'))['to'](this),_0x3c61fc[_0x1ee9('0x26')](_0x1ee9('0x1c'))['to'](this),this[_0x1ee9('0x6')](_0x3c61fc,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this[_0x1ee9('0x15')][_0x1ee9('0x18')](_0x3c61fc,_0x2b3ffd);}[_0x1ee9('0x34')](_0x197c0a){const _0x26f7f4=this[_0x1ee9('0x17')][_0x1ee9('0x2a')](_0x197c0a);return this[_0x1ee9('0x32')]?this['resolvedCommentView'][_0x1ee9('0x38')]>_0x197c0a[_0x1ee9('0x38')]?_0x26f7f4-0x1:_0x26f7f4:_0x26f7f4-0x1;}['_handleInfoComment'](){if(this['_model'][_0x1ee9('0x2b')]&&this['_model']['resolvedAt']){const _0x5c6de4={'id':_0x1ee9('0x1d'),'author':this[_0x1ee9('0x17')][_0x1ee9('0x2b')],'authoredAt':this[_0x1ee9('0x17')][_0x1ee9('0x1b')],'content':_0x4254f6(this[_0x1ee9('0x2')],_0x1ee9('0x1a')),'attributes':{}};this[_0x1ee9('0x32')]=new this[(_0x1ee9('0x22'))]['CommentView'](this[_0x1ee9('0x2')],_0x5c6de4,{'maxCommentCharsWhenCollapsed':this[_0x1ee9('0x22')][_0x1ee9('0x9')],'formatDateTime':this[_0x1ee9('0x22')][_0x1ee9('0x31')],'editorConfig':this[_0x1ee9('0x22')][_0x1ee9('0x39')],'isSystemComment':!0x0}),this[_0x1ee9('0x15')][_0x1ee9('0x18')](this['resolvedCommentView'],this[_0x1ee9('0x17')][_0x1ee9('0x2a')](_0x5c6de4));}else this[_0x1ee9('0x32')]&&(this[_0x1ee9('0x15')]['remove'](this['resolvedCommentView']),this[_0x1ee9('0x32')][_0x1ee9('0x37')](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x13512c){const _0x278dd0=this[_0x1ee9('0x15')][_0x1ee9('0x16')](_0x13512c['id']);this['stopListening'](_0x278dd0),_0x278dd0['isEditMode']&&this[_0x1ee9('0x8')](),_0x278dd0[_0x1ee9('0x37')]();}['_updateHasDirtyComment'](){this[_0x1ee9('0x2c')]=Array[_0x1ee9('0xb')](this[_0x1ee9('0x15')])[_0x1ee9('0x2e')](_0x2b0449=>_0x2b0449[_0x1ee9('0x1')]);}[_0x1ee9('0x19')](){const _0x221574=function(_0x4c6db8){const _0x3cf4fd=new _0x33bbbc();for(const _0x3b77fb of _0x4c6db8)_0x3cf4fd[_0x1ee9('0x18')](_0x3b77fb);return _0x3cf4fd;}(this[_0x1ee9('0x15')]),_0x506657=this['_collapsedCommentsView']['count'];for(let _0x5d661e=0x1;_0x5d661e<=_0x506657;_0x5d661e++)_0x221574['remove'](0x1);for(const _0x2aac74 of _0x221574)_0x2aac74[_0x1ee9('0x2f')]();_0x506657>0x0&&_0x221574[_0x1ee9('0x18')](this[_0x1ee9('0x35')],0x1),ss(_0x384c42(Array[_0x1ee9('0xb')](this[_0x1ee9('0x12')]),Array[_0x1ee9('0xb')](_0x221574)),this['visibleViews'],_0x221574);}['_rearrangeExpand'](){ss(_0x384c42(Array['from'](this[_0x1ee9('0x12')]),Array[_0x1ee9('0xb')](this[_0x1ee9('0x15')])),this[_0x1ee9('0x12')],this[_0x1ee9('0x15')]);for(const _0x1c089c of this[_0x1ee9('0x12')])_0x1c089c['expand']();}}function ss(_0x25fc7b,_0xa08b1c,_0x1e9947){let _0x1a08ea=0x0;for(const _0x227d70 of _0x25fc7b)switch(_0x227d70){case _0x1ee9('0x11'):_0xa08b1c[_0x1ee9('0x18')](_0x1e9947['get'](_0x1a08ea),_0x1a08ea),_0x1a08ea++;break;case _0x1ee9('0x3'):_0xa08b1c['remove'](_0x1a08ea);break;case _0x1ee9('0x33'):_0x1a08ea++;}}
23
+ const _0x143a=['_model','from','focus','_handleInfoComment','_collapsedCommentsView','resolvedBy','formatDateTime','editorConfig','remove','_rearrangeExpand','add','_updateHasDirtyComment','change:isResolved','isActive','delete','maxCommentsWhenCollapsed','render','resolved','length','weight','commentViews','_handleRemoveCommentModel','CommentView','visibleViews','_handleNewCommentModel','_shouldCollapse','_rearrangeCollapse','maxCommentCharsWhenCollapsed','viewUid','resolvedCommentView','resolveCommentThread','isEditMode','updateComment','refreshVisibleViews','createCollection','listenTo','destroy','_calculatePosition','change:hasDirtyComment','element','hasDirtyComment','get','_findOptimalIndex','change:isEditMode','stopListening','change:isActive','set','maxThreadTotalWeight','equal','delegate','locale','insert','authoredAt','resolvedAt','count','_config','Marked\x20as\x20resolved','comments'];(function(_0x4defab,_0x143a2d){const _0x34ede6=function(_0x5ef90f){while(--_0x5ef90f){_0x4defab['push'](_0x4defab['shift']());}};_0x34ede6(++_0x143a2d);}(_0x143a,0x1ab));const _0x34ed=function(_0x4defab,_0x143a2d){_0x4defab=_0x4defab-0x0;let _0x34ede6=_0x143a[_0x4defab];return _0x34ede6;};import{View as _0x272656}from'ckeditor5/src/ui';import{diff as _0x4ea9be,Collection as _0x557994}from'ckeditor5/src/utils';import{getTranslation as _0x5936ca}from'../../../utils/common-translations';import _0x4b15fe from'./collapsedcommentsview';export default class wt extends _0x272656{constructor(_0x3daf01,_0x20aee4,_0x991de){super(_0x3daf01),this[_0x34ed('0x19')](_0x34ed('0x13'),!0x1),this['set'](_0x34ed('0x37'),_0x20aee4[_0x34ed('0x24')][_0x34ed('0x37')]),this[_0x34ed('0x19')](_0x34ed('0x32'),!0x1),this[_0x34ed('0x25')]=_0x20aee4,this[_0x34ed('0x22')]=_0x991de,this['commentViews']=this[_0x34ed('0xd')](),this['visibleViews']=this[_0x34ed('0xd')](),this[_0x34ed('0x8')]=null,this[_0x34ed('0x29')]=new _0x4b15fe(_0x3daf01),this[_0x34ed('0x29')]['bind'](_0x34ed('0x21'))['to'](this,_0x34ed('0x37'),_0x190e36=>_0x190e36-this['_config'][_0x34ed('0x34')]);for(const _0x5c1625 of _0x20aee4['comments'])this[_0x34ed('0x3')](_0x5c1625);this[_0x34ed('0x28')](),this[_0x34ed('0xe')](_0x20aee4[_0x34ed('0x24')],_0x34ed('0x2f'),(_0x4eab1a,_0x50b257)=>{const _0x7d5909=this[_0x34ed('0x10')](_0x50b257);this[_0x34ed('0x37')]++,this[_0x34ed('0x3')](_0x50b257,_0x7d5909),this[_0x34ed('0xc')]();}),this[_0x34ed('0xe')](_0x20aee4[_0x34ed('0x24')],_0x34ed('0x2d'),(_0x53e166,_0x2650cd)=>{this[_0x34ed('0x37')]--,this['_handleRemoveCommentModel'](_0x2650cd),this[_0x34ed('0xc')]();}),this[_0x34ed('0xe')](_0x20aee4,'commentUpdated',()=>this['refreshVisibleViews']()),this[_0x34ed('0xe')](_0x20aee4,_0x34ed('0x31'),()=>this['_handleInfoComment']()),this['on'](_0x34ed('0x18'),()=>this['refreshVisibleViews']()),this['on'](_0x34ed('0x11'),()=>this[_0x34ed('0xc')]()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x34ed('0x2')]});}get[_0x34ed('0x4')](){return this[_0x34ed('0x25')][_0x34ed('0x38')]>this[_0x34ed('0x22')][_0x34ed('0x1a')]&&!this[_0x34ed('0x32')]&&!this[_0x34ed('0x13')];}[_0x34ed('0x35')](){super[_0x34ed('0x35')](),this['refreshVisibleViews']();}[_0x34ed('0x27')](){this[_0x34ed('0x12')][_0x34ed('0x27')]();}[_0x34ed('0xf')](){this['_collapsedCommentsView']['destroy']();for(const _0x280918 of this[_0x34ed('0x39')])_0x280918[_0x34ed('0xf')]();super['destroy']();}[_0x34ed('0xc')](){this[_0x34ed('0x4')]?this[_0x34ed('0x5')]():this[_0x34ed('0x2e')]();}[_0x34ed('0x3')](_0x491339,_0x2749d2){const _0x57c937=new this[(_0x34ed('0x22'))][(_0x34ed('0x1'))](this[_0x34ed('0x1d')],_0x491339,{'maxCommentCharsWhenCollapsed':this[_0x34ed('0x22')][_0x34ed('0x6')],'formatDateTime':this[_0x34ed('0x22')][_0x34ed('0x2b')],'editorConfig':this[_0x34ed('0x22')][_0x34ed('0x2c')]});_0x57c937[_0x34ed('0x7')]=_0x491339['id'],_0x57c937['delegate']('removeComment')['to'](this),_0x57c937[_0x34ed('0x1c')](_0x34ed('0xb'))['to'](this),_0x57c937[_0x34ed('0x1c')](_0x34ed('0x9'))['to'](this),this['listenTo'](_0x57c937,_0x34ed('0x16'),()=>this[_0x34ed('0x30')]()),this[_0x34ed('0x39')][_0x34ed('0x2f')](_0x57c937,_0x2749d2);}[_0x34ed('0x10')](_0x454342){const _0x10891f=this[_0x34ed('0x25')][_0x34ed('0x15')](_0x454342);return this[_0x34ed('0x8')]?this[_0x34ed('0x8')][_0x34ed('0x1f')]>_0x454342[_0x34ed('0x1f')]?_0x10891f-0x1:_0x10891f:_0x10891f-0x1;}[_0x34ed('0x28')](){if(this['_model'][_0x34ed('0x2a')]&&this[_0x34ed('0x25')][_0x34ed('0x20')]){const _0x5bf05d={'id':_0x34ed('0x36'),'author':this['_model'][_0x34ed('0x2a')],'authoredAt':this[_0x34ed('0x25')][_0x34ed('0x20')],'content':_0x5936ca(this['locale'],_0x34ed('0x23')),'attributes':{}};this['resolvedCommentView']=new this[(_0x34ed('0x22'))][(_0x34ed('0x1'))](this[_0x34ed('0x1d')],_0x5bf05d,{'maxCommentCharsWhenCollapsed':this['_config'][_0x34ed('0x6')],'formatDateTime':this['_config'][_0x34ed('0x2b')],'editorConfig':this[_0x34ed('0x22')]['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this[_0x34ed('0x8')],this[_0x34ed('0x25')][_0x34ed('0x15')](_0x5bf05d));}else this[_0x34ed('0x8')]&&(this['commentViews'][_0x34ed('0x2d')](this[_0x34ed('0x8')]),this[_0x34ed('0x8')]['destroy'](),this[_0x34ed('0x8')]=null);this[_0x34ed('0xc')]();}[_0x34ed('0x0')](_0xf9b7a1){const _0x2e5a3e=this['commentViews'][_0x34ed('0x2d')](_0xf9b7a1['id']);this[_0x34ed('0x17')](_0x2e5a3e),_0x2e5a3e['isEditMode']&&this['_updateHasDirtyComment'](),_0x2e5a3e[_0x34ed('0xf')]();}[_0x34ed('0x30')](){this[_0x34ed('0x13')]=Array[_0x34ed('0x26')](this[_0x34ed('0x39')])['some'](_0x453e2c=>_0x453e2c[_0x34ed('0xa')]);}[_0x34ed('0x5')](){const _0x442b0c=function(_0x18c400){const _0x2874bb=new _0x557994();for(const _0x65d557 of _0x18c400)_0x2874bb[_0x34ed('0x2f')](_0x65d557);return _0x2874bb;}(this[_0x34ed('0x39')]),_0x1c5da3=this['_collapsedCommentsView'][_0x34ed('0x21')];for(let _0x188e47=0x1;_0x188e47<=_0x1c5da3;_0x188e47++)_0x442b0c[_0x34ed('0x2d')](0x1);for(const _0x51dac6 of _0x442b0c)_0x51dac6['collapse']();_0x1c5da3>0x0&&_0x442b0c[_0x34ed('0x2f')](this[_0x34ed('0x29')],0x1),ss(_0x4ea9be(Array[_0x34ed('0x26')](this[_0x34ed('0x2')]),Array[_0x34ed('0x26')](_0x442b0c)),this[_0x34ed('0x2')],_0x442b0c);}['_rearrangeExpand'](){ss(_0x4ea9be(Array[_0x34ed('0x26')](this[_0x34ed('0x2')]),Array[_0x34ed('0x26')](this[_0x34ed('0x39')])),this['visibleViews'],this[_0x34ed('0x39')]);for(const _0x3ad84f of this['visibleViews'])_0x3ad84f['expand']();}}function ss(_0x417617,_0x486338,_0x528186){let _0x43dfac=0x0;for(const _0x337d54 of _0x417617)switch(_0x337d54){case _0x34ed('0x1e'):_0x486338[_0x34ed('0x2f')](_0x528186[_0x34ed('0x14')](_0x43dfac),_0x43dfac),_0x43dfac++;break;case _0x34ed('0x33'):_0x486338['remove'](_0x43dfac);break;case _0x34ed('0x1b'):_0x43dfac++;}}