@ckeditor/ckeditor5-comments 40.0.0 → 40.2.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.
- package/CHANGELOG.md +19 -19
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- package/build/comments.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/af.po +8 -0
- package/lang/translations/ar.po +8 -0
- package/lang/translations/bg.po +8 -0
- package/lang/translations/bn.po +8 -0
- package/lang/translations/bs.po +8 -0
- package/lang/translations/ca.po +8 -0
- package/lang/translations/cs.po +8 -0
- package/lang/translations/da.po +8 -0
- package/lang/translations/de-ch.po +8 -0
- package/lang/translations/de.po +8 -0
- package/lang/translations/el.po +8 -0
- package/lang/translations/en-au.po +8 -0
- package/lang/translations/en.po +8 -0
- package/lang/translations/es-co.po +8 -0
- package/lang/translations/es.po +8 -0
- package/lang/translations/et.po +8 -0
- package/lang/translations/fa.po +8 -0
- package/lang/translations/fi.po +8 -0
- package/lang/translations/fr.po +8 -0
- package/lang/translations/gl.po +8 -0
- package/lang/translations/he.po +8 -0
- package/lang/translations/hi.po +8 -0
- package/lang/translations/hr.po +8 -0
- package/lang/translations/hu.po +8 -0
- package/lang/translations/id.po +8 -0
- package/lang/translations/it.po +8 -0
- package/lang/translations/ja.po +8 -0
- package/lang/translations/jv.po +8 -0
- package/lang/translations/ko.po +8 -0
- package/lang/translations/lt.po +8 -0
- package/lang/translations/lv.po +8 -0
- package/lang/translations/ms.po +8 -0
- package/lang/translations/nl.po +8 -0
- package/lang/translations/no.po +8 -0
- package/lang/translations/pl.po +8 -0
- package/lang/translations/pt-br.po +8 -0
- package/lang/translations/pt.po +8 -0
- package/lang/translations/ro.po +8 -0
- package/lang/translations/ru.po +8 -0
- package/lang/translations/sk.po +8 -0
- package/lang/translations/sq.po +8 -0
- package/lang/translations/sr-latn.po +9 -1
- package/lang/translations/sr.po +8 -0
- package/lang/translations/sv.po +8 -0
- package/lang/translations/th.po +8 -0
- package/lang/translations/tk.po +8 -0
- package/lang/translations/tr.po +8 -0
- package/lang/translations/tt.po +8 -0
- package/lang/translations/ug.po +16 -8
- package/lang/translations/uk.po +8 -0
- package/lang/translations/ur.po +8 -0
- package/lang/translations/vi.po +8 -0
- package/lang/translations/zh-cn.po +8 -0
- package/lang/translations/zh.po +8 -0
- package/package.json +3 -3
- package/src/annotations/annotation.d.ts +90 -90
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +98 -98
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +154 -154
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +232 -232
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +67 -67
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +90 -90
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +85 -85
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +100 -100
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +90 -90
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +55 -55
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +32 -32
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +77 -77
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +52 -52
- package/src/comments/addcommentthreadcommand.d.ts +35 -35
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +31 -31
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +38 -38
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +79 -79
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1130 -1129
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +33 -33
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +21 -21
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +119 -119
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +112 -112
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +14 -14
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +86 -86
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +100 -100
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +118 -118
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +243 -243
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +35 -35
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +33 -33
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +176 -176
- package/src/index.d.ts +24 -24
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +14 -14
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/comment.css +1 -1
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/comments/ui/view/commentinputview
|
|
7
|
-
*/
|
|
8
|
-
import { View, ButtonView } from 'ckeditor5/src/ui';
|
|
9
|
-
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import { type EditorConfig, type DataApi } from 'ckeditor5/src/core';
|
|
11
|
-
import CommentEditor from '../commenteditor/commenteditor';
|
|
12
|
-
/**
|
|
13
|
-
* A view for the comment input section that includes a comment editor.
|
|
14
|
-
*/
|
|
15
|
-
export default class CommentInputView extends View {
|
|
16
|
-
/**
|
|
17
|
-
* Comment editor.
|
|
18
|
-
*/
|
|
19
|
-
editor: CommentEditor & DataApi | null;
|
|
20
|
-
/**
|
|
21
|
-
* The input value (comment editor content).
|
|
22
|
-
*
|
|
23
|
-
* @observable
|
|
24
|
-
*/
|
|
25
|
-
value: string;
|
|
26
|
-
/**
|
|
27
|
-
* When set to `true` it is not possible to submit the commit.
|
|
28
|
-
*
|
|
29
|
-
* @observable
|
|
30
|
-
*/
|
|
31
|
-
disabledSubmit: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Specifies whether the buttons should be visible (`true`) or hidden (`false`).
|
|
34
|
-
*
|
|
35
|
-
* @observable
|
|
36
|
-
*/
|
|
37
|
-
showButtons: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* The comment editor placeholder.
|
|
40
|
-
*
|
|
41
|
-
* @observable
|
|
42
|
-
*/
|
|
43
|
-
placeholder: string;
|
|
44
|
-
/**
|
|
45
|
-
* The submit button label.
|
|
46
|
-
*
|
|
47
|
-
* @observable
|
|
48
|
-
*/
|
|
49
|
-
submitLabel: string;
|
|
50
|
-
element: HTMLElement;
|
|
51
|
-
/**
|
|
52
|
-
* Keystroke handler for the view.
|
|
53
|
-
*/
|
|
54
|
-
keystrokes: KeystrokeHandler;
|
|
55
|
-
/**
|
|
56
|
-
* Focus tracker for the view.
|
|
57
|
-
*/
|
|
58
|
-
focusTracker: FocusTracker;
|
|
59
|
-
/**
|
|
60
|
-
* Button view for the button which submits the comment.
|
|
61
|
-
*/
|
|
62
|
-
submitButtonView: ButtonView;
|
|
63
|
-
/**
|
|
64
|
-
* Button view for the button which cancels comment input.
|
|
65
|
-
*/
|
|
66
|
-
cancelButtonView: ButtonView;
|
|
67
|
-
constructor(locale: Locale, editorConfig?: EditorConfig);
|
|
68
|
-
/**
|
|
69
|
-
* @inheritDoc
|
|
70
|
-
*/
|
|
71
|
-
render(): void;
|
|
72
|
-
/**
|
|
73
|
-
* Creates the comment editor instance.
|
|
74
|
-
*
|
|
75
|
-
* @returns Promise resolved after the editor instance is initialized.
|
|
76
|
-
*/
|
|
77
|
-
createEditor(): Promise<CommentEditor | undefined>;
|
|
78
|
-
/**
|
|
79
|
-
* Focuses the view.
|
|
80
|
-
*/
|
|
81
|
-
focus(): void;
|
|
82
|
-
/**
|
|
83
|
-
* @inheritDoc
|
|
84
|
-
*/
|
|
85
|
-
destroy(): Promise<void>;
|
|
86
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/comments/ui/view/commentinputview
|
|
7
|
+
*/
|
|
8
|
+
import { View, ButtonView } from 'ckeditor5/src/ui';
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
10
|
+
import { type EditorConfig, type DataApi } from 'ckeditor5/src/core';
|
|
11
|
+
import CommentEditor from '../commenteditor/commenteditor';
|
|
12
|
+
/**
|
|
13
|
+
* A view for the comment input section that includes a comment editor.
|
|
14
|
+
*/
|
|
15
|
+
export default class CommentInputView extends View {
|
|
16
|
+
/**
|
|
17
|
+
* Comment editor.
|
|
18
|
+
*/
|
|
19
|
+
editor: CommentEditor & DataApi | null;
|
|
20
|
+
/**
|
|
21
|
+
* The input value (comment editor content).
|
|
22
|
+
*
|
|
23
|
+
* @observable
|
|
24
|
+
*/
|
|
25
|
+
value: string;
|
|
26
|
+
/**
|
|
27
|
+
* When set to `true` it is not possible to submit the commit.
|
|
28
|
+
*
|
|
29
|
+
* @observable
|
|
30
|
+
*/
|
|
31
|
+
disabledSubmit: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Specifies whether the buttons should be visible (`true`) or hidden (`false`).
|
|
34
|
+
*
|
|
35
|
+
* @observable
|
|
36
|
+
*/
|
|
37
|
+
showButtons: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The comment editor placeholder.
|
|
40
|
+
*
|
|
41
|
+
* @observable
|
|
42
|
+
*/
|
|
43
|
+
placeholder: string;
|
|
44
|
+
/**
|
|
45
|
+
* The submit button label.
|
|
46
|
+
*
|
|
47
|
+
* @observable
|
|
48
|
+
*/
|
|
49
|
+
submitLabel: string;
|
|
50
|
+
element: HTMLElement;
|
|
51
|
+
/**
|
|
52
|
+
* Keystroke handler for the view.
|
|
53
|
+
*/
|
|
54
|
+
keystrokes: KeystrokeHandler;
|
|
55
|
+
/**
|
|
56
|
+
* Focus tracker for the view.
|
|
57
|
+
*/
|
|
58
|
+
focusTracker: FocusTracker;
|
|
59
|
+
/**
|
|
60
|
+
* Button view for the button which submits the comment.
|
|
61
|
+
*/
|
|
62
|
+
submitButtonView: ButtonView;
|
|
63
|
+
/**
|
|
64
|
+
* Button view for the button which cancels comment input.
|
|
65
|
+
*/
|
|
66
|
+
cancelButtonView: ButtonView;
|
|
67
|
+
constructor(locale: Locale, editorConfig?: EditorConfig);
|
|
68
|
+
/**
|
|
69
|
+
* @inheritDoc
|
|
70
|
+
*/
|
|
71
|
+
render(): void;
|
|
72
|
+
/**
|
|
73
|
+
* Creates the comment editor instance.
|
|
74
|
+
*
|
|
75
|
+
* @returns Promise resolved after the editor instance is initialized.
|
|
76
|
+
*/
|
|
77
|
+
createEditor(): Promise<CommentEditor | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* Focuses the view.
|
|
80
|
+
*/
|
|
81
|
+
focus(): void;
|
|
82
|
+
/**
|
|
83
|
+
* @inheritDoc
|
|
84
|
+
*/
|
|
85
|
+
destroy(): Promise<void>;
|
|
86
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44d0=['editorReady','create','_createCancelButton','stop','cancel','fire','value','withText','focusPrevious','tab','element','setData','then','model','forEach','focusNext','div','length','set','Reply','initialData','editor','bindTemplate','listenTo','submit','isEnabled','createEditor','keystrokes','focusTracker','placeholder','shift\x20+\x20tab','cancelButtonView','Reply...','_editorConfig','change','label','submitButtonView','showButtons','execute','setTemplate','destroy','bind','_isDestroyed','view','firstChild','ck-comment__input-actions--cancel','ck-comment__input-actions--active','_editorCreationPromise','submitLabel','ck-comment__input-actions--submit','render','add','_initializeFocusCycling','disabledSubmit','TOO_LONG_COMMENT_ALERT','high','extendTemplate','focus','ck-comment__input-actions','editorDestroyed','getData','Cancel','Esc','_createSubmitButton','low'];(function(_0x1ad1a2,_0x44d037){const _0x17cf4c=function(_0x21a60e){while(--_0x21a60e){_0x1ad1a2['push'](_0x1ad1a2['shift']());}};_0x17cf4c(++_0x44d037);}(_0x44d0,0xd4));const _0x17cf=function(_0x1ad1a2,_0x44d037){_0x1ad1a2=_0x1ad1a2-0x0;let _0x17cf4c=_0x44d0[_0x1ad1a2];return _0x17cf4c;};import{View as _0x4ef3d9,ViewCollection as _0x313e93,FocusCycler as _0x2dead7,ButtonView as _0x48f286}from'ckeditor5/src/ui';import{FocusTracker as _0x2d82e7,KeystrokeHandler as _0x251915}from'ckeditor5/src/utils';import _0x1adbfc from'../commenteditor/commenteditor';import{getTranslation as _0x22eb1d}from'../../../utils/common-translations';export default class Zt extends _0x4ef3d9{constructor(_0x53357d,_0x4bc309={}){super(_0x53357d),this[_0x17cf('0x4')]=null,this[_0x17cf('0x10')]=_0x4bc309,this[_0x17cf('0xa')]=new _0x251915(),this[_0x17cf('0xb')]=new _0x2d82e7(),this[_0x17cf('0x1')](_0x17cf('0x36'),_0x4bc309[_0x17cf('0x3')]||''),this['set']('disabledSubmit',!0x1),this[_0x17cf('0x1')](_0x17cf('0x14'),!0x0),this[_0x17cf('0x1')](_0x17cf('0xc'),_0x22eb1d(_0x53357d,_0x17cf('0xf'))),this[_0x17cf('0x1')](_0x17cf('0x1f'),_0x22eb1d(_0x53357d,_0x17cf('0x2'))),this[_0x17cf('0x13')]=this['_createSubmitButton'](),this[_0x17cf('0xe')]=this[_0x17cf('0x32')](),this[_0x17cf('0x16')]({'tag':_0x17cf('0x40'),'attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':_0x17cf('0x40'),'attributes':{'class':[_0x17cf('0x29'),this[_0x17cf('0x5')]['if']('showButtons',_0x17cf('0x1d'))]},'children':[this['submitButtonView'],this[_0x17cf('0xe')]]}]}),this['keystrokes'][_0x17cf('0x1')](_0x17cf('0x2d'),(_0x33917d,_0x4eb101)=>{this[_0x17cf('0xe')][_0x17cf('0x35')](_0x17cf('0x15')),_0x4eb101();}),this['on'](_0x17cf('0x7'),(_0xc15e3b,_0x50cc76)=>{_0x50cc76['length']>0xfde8?(alert(_0x22eb1d(_0x53357d,_0x17cf('0x25'),[_0x50cc76[_0x17cf('0x0')],0xfde8])),_0xc15e3b[_0x17cf('0x33')]()):this[_0x17cf('0x4')][_0x17cf('0x3b')]('');},{'priority':_0x17cf('0x26')});}[_0x17cf('0x21')](){super[_0x17cf('0x21')](),this[_0x17cf('0xa')][_0x17cf('0x6')](this[_0x17cf('0x3a')]),this['focusTracker'][_0x17cf('0x22')](this[_0x17cf('0x3a')]);}[_0x17cf('0x9')](){return this[_0x17cf('0x4')]||(this['editor']=new _0x1adbfc(this[_0x17cf('0x10')]),this[_0x17cf('0x1e')]=this[_0x17cf('0x4')][_0x17cf('0x31')]()[_0x17cf('0x3c')](()=>{if(this[_0x17cf('0x19')])return;const _0x2204fc=this[_0x17cf('0x4')];this[_0x17cf('0x3a')]['insertBefore'](_0x2204fc['ui'][_0x17cf('0x3a')],this[_0x17cf('0x3a')][_0x17cf('0x1b')]),_0x2204fc[_0x17cf('0x3d')]['document']['on'](_0x17cf('0x11'),()=>this[_0x17cf('0x36')]=_0x2204fc[_0x17cf('0x2b')]()),_0x2204fc[_0x17cf('0x18')](_0x17cf('0xc'))['to'](this),this[_0x17cf('0x23')](this[_0x17cf('0x4')]),this[_0x17cf('0x35')](_0x17cf('0x30'),this[_0x17cf('0x4')]);})),this[_0x17cf('0x1e')];}['focus'](){this[_0x17cf('0x4')]&&this[_0x17cf('0x4')][_0x17cf('0x28')]();}async[_0x17cf('0x17')](){this['_isDestroyed']||(this[_0x17cf('0x19')]=!0x0,this[_0x17cf('0x4')]&&(await this['_editorCreationPromise'],await this[_0x17cf('0x4')]['destroy'](),this[_0x17cf('0x35')](_0x17cf('0x2a'),this[_0x17cf('0x4')])),await super[_0x17cf('0x17')]());}[_0x17cf('0x2e')](){const {locale:_0x2520bd}=this,_0x334dc9=new _0x48f286(_0x2520bd);return _0x334dc9[_0x17cf('0x27')]({'attributes':{'class':[_0x17cf('0x20')]}}),_0x334dc9[_0x17cf('0x37')]=!0x0,_0x334dc9['bind']('label')['to'](this,_0x17cf('0x1f')),_0x334dc9['on'](_0x17cf('0x15'),()=>{this['fire']('submit',this['value']);}),_0x334dc9[_0x17cf('0x18')](_0x17cf('0x8'))['to'](this,_0x17cf('0x36'),this,_0x17cf('0x24'),(_0x123b63,_0x204e4b)=>!_0x204e4b&&!!_0x123b63['trim']()),_0x334dc9;}['_createCancelButton'](){const {locale:_0x3b516a}=this,_0x363bab=new _0x48f286(_0x3b516a);return _0x363bab[_0x17cf('0x27')]({'attributes':{'class':[_0x17cf('0x1c')]}}),_0x363bab[_0x17cf('0x12')]=_0x22eb1d(_0x3b516a,_0x17cf('0x2c')),_0x363bab[_0x17cf('0x37')]=!0x0,_0x363bab['on']('execute',()=>{this[_0x17cf('0x4')][_0x17cf('0x3b')](''),this[_0x17cf('0x35')](_0x17cf('0x34'));}),_0x363bab;}[_0x17cf('0x23')](_0x4a1ee8){const _0x3c13cb=this['focusTracker'],_0x4aad76=new _0x313e93();[_0x4a1ee8['ui'][_0x17cf('0x1a')],this[_0x17cf('0x13')],this[_0x17cf('0xe')]][_0x17cf('0x3e')](_0x37a780=>{_0x4aad76[_0x17cf('0x22')](_0x37a780),_0x3c13cb[_0x17cf('0x22')](_0x37a780[_0x17cf('0x3a')]);});const _0x29dbe8=new _0x2dead7({'focusables':_0x4aad76,'focusTracker':_0x3c13cb});this[_0x17cf('0xa')][_0x17cf('0x1')](_0x17cf('0x39'),(_0x5f1c57,_0x1ea58a)=>{_0x29dbe8[_0x17cf('0x3f')](),_0x1ea58a();},{'priority':_0x17cf('0x2f')}),this[_0x17cf('0xa')][_0x17cf('0x1')](_0x17cf('0xd'),(_0x4619f7,_0x4120ad)=>{_0x29dbe8[_0x17cf('0x38')](),_0x4120ad();},{'priority':_0x17cf('0x2f')});}}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/comments/ui/view/commentslistview
|
|
7
|
-
*/
|
|
8
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import type AnnotationView from '../../../annotations/view/annotationview';
|
|
11
|
-
/**
|
|
12
|
-
* A view representing the content of comments archive.
|
|
13
|
-
*/
|
|
14
|
-
export default class CommentsArchiveView extends View {
|
|
15
|
-
/**
|
|
16
|
-
* The flag indicating whether there are items to display in the comments archive.
|
|
17
|
-
*
|
|
18
|
-
* @observable
|
|
19
|
-
*/
|
|
20
|
-
isEmpty: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* @param locale The localization service instance.
|
|
23
|
-
* @param annotationViews Resolved comment thread annotation views to render inside the comments archive.
|
|
24
|
-
*/
|
|
25
|
-
constructor(locale: Locale, annotationViews: ViewCollection<AnnotationView>);
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
render(): void;
|
|
30
|
-
/**
|
|
31
|
-
* @inheritDoc
|
|
32
|
-
*/
|
|
33
|
-
destroy(): void;
|
|
34
|
-
/**
|
|
35
|
-
* @inheritDoc
|
|
36
|
-
*/
|
|
37
|
-
focus(): void;
|
|
38
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/comments/ui/view/commentslistview
|
|
7
|
+
*/
|
|
8
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
10
|
+
import type AnnotationView from '../../../annotations/view/annotationview';
|
|
11
|
+
/**
|
|
12
|
+
* A view representing the content of comments archive.
|
|
13
|
+
*/
|
|
14
|
+
export default class CommentsArchiveView extends View {
|
|
15
|
+
/**
|
|
16
|
+
* The flag indicating whether there are items to display in the comments archive.
|
|
17
|
+
*
|
|
18
|
+
* @observable
|
|
19
|
+
*/
|
|
20
|
+
isEmpty: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @param locale The localization service instance.
|
|
23
|
+
* @param annotationViews Resolved comment thread annotation views to render inside the comments archive.
|
|
24
|
+
*/
|
|
25
|
+
constructor(locale: Locale, annotationViews: ViewCollection<AnnotationView>);
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
render(): void;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
destroy(): void;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
focus(): void;
|
|
38
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e63=['remove','setTemplate','high','listenTo','render','set','ck-comments-archive__header\x20','add','bindTemplate','element','isEmpty','isActive','COMMENTS_ARCHIVE','arrowleft','auto','ck-comments-archive','_focusables','tab','arrowdown','EMPTY_COMMENTS_ARCHIVE','_focusTracker','length','ck-comments-archive__content','div','destroy','_focusCycler','stopPropagation','focus','ck-hidden','ck-comments-archive__info','_keystrokes'];(function(_0x3f3caf,_0x2e6340){const _0x4f7132=function(_0x594299){while(--_0x594299){_0x3f3caf['push'](_0x3f3caf['shift']());}};_0x4f7132(++_0x2e6340);}(_0x2e63,0x16d));const _0x4f71=function(_0x3f3caf,_0x2e6340){_0x3f3caf=_0x3f3caf-0x0;let _0x4f7132=_0x2e63[_0x3f3caf];return _0x4f7132;};import{View as _0x43c86c,FocusCycler as _0xb5cdb7}from'ckeditor5/src/ui';import{FocusTracker as _0x2ac4ae,KeystrokeHandler as _0x4bb018}from'ckeditor5/src/utils';import{getTranslation as _0x42f5cc}from'../../../utils/common-translations';export default class K extends _0x43c86c{constructor(_0x4e7f41,_0x5271a7){super(_0x4e7f41),this[_0x4f71('0xc')](_0x4f71('0x11'),!_0x5271a7[_0x4f71('0x1c')]),this[_0x4f71('0x1b')]=new _0x2ac4ae(),this['_keystrokes']=new _0x4bb018(),this[_0x4f71('0x17')]=_0x5271a7,this[_0x4f71('0x1')]=new _0xb5cdb7({'focusables':this[_0x4f71('0x17')],'focusTracker':this[_0x4f71('0x1b')],'keystrokeHandler':this[_0x4f71('0x6')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x4f71('0x18')}}),this['listenTo'](_0x5271a7,_0x4f71('0xe'),()=>{this[_0x4f71('0x11')]=!0x1;}),this[_0x4f71('0xa')](_0x5271a7,_0x4f71('0x7'),(_0x3b4398,_0x39bcb3)=>{_0x39bcb3[_0x4f71('0x12')]&&this[_0x4f71('0x3')](),_0x5271a7[_0x4f71('0x1c')]||(this['isEmpty']=!0x0);});const _0x456b65=this[_0x4f71('0xf')];this[_0x4f71('0x8')]({'tag':_0x4f71('0x1e'),'attributes':{'dir':_0x4f71('0x15'),'class':['ck',_0x4f71('0x16')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0x4f71('0xd')]},'children':[{'text':_0x42f5cc(_0x4e7f41,_0x4f71('0x13'))}]},{'tag':_0x4f71('0x1e'),'attributes':{'class':[_0x4f71('0x1d')]},'children':[{'tag':_0x4f71('0x1e'),'children':_0x5271a7},{'tag':'p','attributes':{'class':[_0x4f71('0x5'),_0x456b65['if'](_0x4f71('0x11'),_0x4f71('0x4'),_0x9dad61=>!_0x9dad61)]},'children':[{'text':_0x42f5cc(_0x4e7f41,_0x4f71('0x1a'))}]}]}]});}[_0x4f71('0xb')](){super[_0x4f71('0xb')](),this[_0x4f71('0x6')][_0x4f71('0xa')](this[_0x4f71('0x10')]);const _0x45a272=_0xc44632=>_0xc44632[_0x4f71('0x2')]();this[_0x4f71('0x6')][_0x4f71('0xc')]('arrowright',_0x45a272),this[_0x4f71('0x6')][_0x4f71('0xc')](_0x4f71('0x14'),_0x45a272),this[_0x4f71('0x6')][_0x4f71('0xc')]('arrowup',_0x45a272),this[_0x4f71('0x6')][_0x4f71('0xc')](_0x4f71('0x19'),_0x45a272),this['listenTo'](this[_0x4f71('0x10')],'selectstart',(_0x20d154,_0x1c85f9)=>{_0x1c85f9[_0x4f71('0x2')]();},{'priority':_0x4f71('0x9')});}[_0x4f71('0x0')](){super[_0x4f71('0x0')](),this[_0x4f71('0x1b')]['destroy'](),this[_0x4f71('0x6')]['destroy']();}[_0x4f71('0x3')](){this[_0x4f71('0x10')]['focus']();}}
|
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module comments/comments/ui/view/commentslistview
|
|
7
|
-
*/
|
|
8
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import type { CommentThread } from '../../commentsrepository';
|
|
11
|
-
import type CommentView from './commentview';
|
|
12
|
-
import type { CommentThreadConfig } from '../../../config';
|
|
13
|
-
/**
|
|
14
|
-
* A view representing the list of comments. It should be used as a part of the comment thread view.
|
|
15
|
-
*/
|
|
16
|
-
export default class CommentsListView extends View {
|
|
17
|
-
locale: Locale;
|
|
18
|
-
/**
|
|
19
|
-
* Informs whether the list contains any comment view that is in the editing mode.
|
|
20
|
-
*
|
|
21
|
-
* @observable
|
|
22
|
-
*/
|
|
23
|
-
hasDirtyComment: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Number of comments in the list.
|
|
26
|
-
*
|
|
27
|
-
* @observable
|
|
28
|
-
*/
|
|
29
|
-
length: number;
|
|
30
|
-
/**
|
|
31
|
-
* Informs whether the comments list view is in the active state ("highlighted").
|
|
32
|
-
* Comment list view is in that state when it is focused or it was activated by the user in any different way.
|
|
33
|
-
*
|
|
34
|
-
* @observable
|
|
35
|
-
*/
|
|
36
|
-
isActive: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* View collection which holds all comment views to be displayed.
|
|
39
|
-
* It may also contain collapsed count view if the comments list view is collapsed and some comment views are hidden.
|
|
40
|
-
*
|
|
41
|
-
* @readonly
|
|
42
|
-
*/
|
|
43
|
-
readonly visibleViews: ViewCollection;
|
|
44
|
-
/**
|
|
45
|
-
* View collection which holds all comment views created for given comment thread.
|
|
46
|
-
*
|
|
47
|
-
* @readonly
|
|
48
|
-
*/
|
|
49
|
-
readonly commentViews: ViewCollection;
|
|
50
|
-
/**
|
|
51
|
-
* Comment view used to display information that comment has been resolved.
|
|
52
|
-
*
|
|
53
|
-
* @readonly
|
|
54
|
-
*/
|
|
55
|
-
resolvedCommentView: CommentView | null;
|
|
56
|
-
/**
|
|
57
|
-
* @param locale The localization service instance.
|
|
58
|
-
* @param model The model on which the view will base.
|
|
59
|
-
* @param config Additional view configuration.
|
|
60
|
-
*/
|
|
61
|
-
constructor(locale: Locale, model: CommentThread, config: CommentThreadConfig);
|
|
62
|
-
/**
|
|
63
|
-
* @inheritDoc
|
|
64
|
-
*/
|
|
65
|
-
render(): void;
|
|
66
|
-
/**
|
|
67
|
-
* Focuses the view.
|
|
68
|
-
*/
|
|
69
|
-
focus(): void;
|
|
70
|
-
/**
|
|
71
|
-
* @inheritDoc
|
|
72
|
-
*/
|
|
73
|
-
destroy(): void;
|
|
74
|
-
/**
|
|
75
|
-
* Refreshes the list of the visible views.
|
|
76
|
-
*
|
|
77
|
-
* When doing so, it performs a minimal amount of changes, so that views are not re-added, which might cause undesirable effects
|
|
78
|
-
* like focus loss or glitches due to CSS animations.
|
|
79
|
-
*
|
|
80
|
-
* The comments list may be collapsed or expanded:
|
|
81
|
-
*
|
|
82
|
-
* * it is expanded, if it {@link ~#isActive is active},
|
|
83
|
-
* * it is expanded, if {@link module:comments/comments/commentsrepository~CommentThread#weight comment thread weight}
|
|
84
|
-
* is lower than allowed (`config.comments.maxThreadTotalWeight`),
|
|
85
|
-
* * it is expanded, if it {@link ~#hasDirtyComment has any comments in edit mode},
|
|
86
|
-
* * it is collapsed, if neither of above is true.
|
|
87
|
-
*
|
|
88
|
-
* When comments list is in collapsed state, it displays at most `config.comments.maxCommentsWhenCollapsed` comment views:
|
|
89
|
-
*
|
|
90
|
-
* * first comment view,
|
|
91
|
-
* * {@link ~#_collapsedCommentsView collapsed comments counter} (if there are any hidden views),
|
|
92
|
-
* * appropriate number of the comments from the bottom of the thread.
|
|
93
|
-
*
|
|
94
|
-
* All the comments are also {@link module:comments/comments/ui/view/basecommentview~BaseCommentView#collapse set to collapsed state}.
|
|
95
|
-
*
|
|
96
|
-
* When comments list in in expanded state, it displays all comment views for all comments. All the comments are also
|
|
97
|
-
* {@link module:comments/comments/ui/view/basecommentview~BaseCommentView#expand set to expanded state}.
|
|
98
|
-
*/
|
|
99
|
-
refreshVisibleViews(): void;
|
|
100
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module comments/comments/ui/view/commentslistview
|
|
7
|
+
*/
|
|
8
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
10
|
+
import type { CommentThread } from '../../commentsrepository';
|
|
11
|
+
import type CommentView from './commentview';
|
|
12
|
+
import type { CommentThreadConfig } from '../../../config';
|
|
13
|
+
/**
|
|
14
|
+
* A view representing the list of comments. It should be used as a part of the comment thread view.
|
|
15
|
+
*/
|
|
16
|
+
export default class CommentsListView extends View {
|
|
17
|
+
locale: Locale;
|
|
18
|
+
/**
|
|
19
|
+
* Informs whether the list contains any comment view that is in the editing mode.
|
|
20
|
+
*
|
|
21
|
+
* @observable
|
|
22
|
+
*/
|
|
23
|
+
hasDirtyComment: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Number of comments in the list.
|
|
26
|
+
*
|
|
27
|
+
* @observable
|
|
28
|
+
*/
|
|
29
|
+
length: number;
|
|
30
|
+
/**
|
|
31
|
+
* Informs whether the comments list view is in the active state ("highlighted").
|
|
32
|
+
* Comment list view is in that state when it is focused or it was activated by the user in any different way.
|
|
33
|
+
*
|
|
34
|
+
* @observable
|
|
35
|
+
*/
|
|
36
|
+
isActive: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* View collection which holds all comment views to be displayed.
|
|
39
|
+
* It may also contain collapsed count view if the comments list view is collapsed and some comment views are hidden.
|
|
40
|
+
*
|
|
41
|
+
* @readonly
|
|
42
|
+
*/
|
|
43
|
+
readonly visibleViews: ViewCollection;
|
|
44
|
+
/**
|
|
45
|
+
* View collection which holds all comment views created for given comment thread.
|
|
46
|
+
*
|
|
47
|
+
* @readonly
|
|
48
|
+
*/
|
|
49
|
+
readonly commentViews: ViewCollection;
|
|
50
|
+
/**
|
|
51
|
+
* Comment view used to display information that comment has been resolved.
|
|
52
|
+
*
|
|
53
|
+
* @readonly
|
|
54
|
+
*/
|
|
55
|
+
resolvedCommentView: CommentView | null;
|
|
56
|
+
/**
|
|
57
|
+
* @param locale The localization service instance.
|
|
58
|
+
* @param model The model on which the view will base.
|
|
59
|
+
* @param config Additional view configuration.
|
|
60
|
+
*/
|
|
61
|
+
constructor(locale: Locale, model: CommentThread, config: CommentThreadConfig);
|
|
62
|
+
/**
|
|
63
|
+
* @inheritDoc
|
|
64
|
+
*/
|
|
65
|
+
render(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Focuses the view.
|
|
68
|
+
*/
|
|
69
|
+
focus(): void;
|
|
70
|
+
/**
|
|
71
|
+
* @inheritDoc
|
|
72
|
+
*/
|
|
73
|
+
destroy(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Refreshes the list of the visible views.
|
|
76
|
+
*
|
|
77
|
+
* When doing so, it performs a minimal amount of changes, so that views are not re-added, which might cause undesirable effects
|
|
78
|
+
* like focus loss or glitches due to CSS animations.
|
|
79
|
+
*
|
|
80
|
+
* The comments list may be collapsed or expanded:
|
|
81
|
+
*
|
|
82
|
+
* * it is expanded, if it {@link ~#isActive is active},
|
|
83
|
+
* * it is expanded, if {@link module:comments/comments/commentsrepository~CommentThread#weight comment thread weight}
|
|
84
|
+
* is lower than allowed (`config.comments.maxThreadTotalWeight`),
|
|
85
|
+
* * it is expanded, if it {@link ~#hasDirtyComment has any comments in edit mode},
|
|
86
|
+
* * it is collapsed, if neither of above is true.
|
|
87
|
+
*
|
|
88
|
+
* When comments list is in collapsed state, it displays at most `config.comments.maxCommentsWhenCollapsed` comment views:
|
|
89
|
+
*
|
|
90
|
+
* * first comment view,
|
|
91
|
+
* * {@link ~#_collapsedCommentsView collapsed comments counter} (if there are any hidden views),
|
|
92
|
+
* * appropriate number of the comments from the bottom of the thread.
|
|
93
|
+
*
|
|
94
|
+
* All the comments are also {@link module:comments/comments/ui/view/basecommentview~BaseCommentView#collapse set to collapsed state}.
|
|
95
|
+
*
|
|
96
|
+
* When comments list in in expanded state, it displays all comment views for all comments. All the comments are also
|
|
97
|
+
* {@link module:comments/comments/ui/view/basecommentview~BaseCommentView#expand set to expanded state}.
|
|
98
|
+
*/
|
|
99
|
+
refreshVisibleViews(): void;
|
|
100
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x307f=['resolvedCommentView','authoredAt','Marked\x20as\x20resolved','_rearrangeExpand','_model','get','editorDestroyed','some','_findOptimalIndex','maxCommentCharsWhenCollapsed','isActive','listenTo','CommentView','equal','hasDirtyComment','createCollection','remove','_collapsedCommentsView','weight','resolvedBy','_config','_rearrangeCollapse','bind','resolvedAt','editorReady','editorConfig','removeComment','element','_handleNewCommentModel','_handleInfoComment','commentViews','resolveCommentThread','comments','delegate','change:isEditMode','locale','_updateHasDirtyComment','updateComment','set','viewUid','_shouldCollapse','formatDateTime','refreshVisibleViews','delete','expand','maxThreadTotalWeight','isEditMode','collapse','resolved','visibleViews','_calculatePosition','destroy','insert','length','focus','_handleRemoveCommentModel','from','render','add','change:isResolved'];(function(_0x40ec27,_0x307fa8){const _0x375237=function(_0x55e34b){while(--_0x55e34b){_0x40ec27['push'](_0x40ec27['shift']());}};_0x375237(++_0x307fa8);}(_0x307f,0x174));const _0x3752=function(_0x40ec27,_0x307fa8){_0x40ec27=_0x40ec27-0x0;let _0x375237=_0x307f[_0x40ec27];return _0x375237;};import{View as _0xfa4494}from'ckeditor5/src/ui';import{diff as _0x5c5a25,Collection as _0x11bba3}from'ckeditor5/src/utils';import{getTranslation as _0x100eaa}from'../../../utils/common-translations';import _0x51f265 from'./collapsedcommentsview';export default class Ct extends _0xfa4494{constructor(_0x3bbcde,_0x26cef4,_0x2a9ac7){super(_0x3bbcde),this['set'](_0x3752('0x2'),!0x1),this[_0x3752('0x1a')](_0x3752('0x29'),_0x26cef4[_0x3752('0x14')]['length']),this[_0x3752('0x1a')]('isActive',!0x1),this[_0x3752('0x34')]=_0x26cef4,this[_0x3752('0x8')]=_0x2a9ac7,this[_0x3752('0x12')]=this[_0x3752('0x3')](),this['visibleViews']=this['createCollection'](),this[_0x3752('0x30')]=null,this[_0x3752('0x5')]=new _0x51f265(_0x3bbcde),this['_collapsedCommentsView'][_0x3752('0xa')]('count')['to'](this,_0x3752('0x29'),_0x4d687a=>_0x4d687a-this[_0x3752('0x8')]['maxCommentsWhenCollapsed']);for(const _0x378169 of _0x26cef4[_0x3752('0x14')])this[_0x3752('0x10')](_0x378169);this[_0x3752('0x11')](),this[_0x3752('0x3b')](_0x26cef4[_0x3752('0x14')],'add',(_0xba006,_0x1f5ca0)=>{const _0x34a1f9=this[_0x3752('0x26')](_0x1f5ca0);this[_0x3752('0x29')]++,this['_handleNewCommentModel'](_0x1f5ca0,_0x34a1f9),this[_0x3752('0x1e')]();}),this[_0x3752('0x3b')](_0x26cef4[_0x3752('0x14')],'remove',(_0x26b8e0,_0x3917b7)=>{this[_0x3752('0x29')]--,this[_0x3752('0x2b')](_0x3917b7),this[_0x3752('0x1e')]();}),this[_0x3752('0x3b')](_0x26cef4,'commentUpdated',()=>this[_0x3752('0x1e')]()),this[_0x3752('0x3b')](_0x26cef4,_0x3752('0x2f'),()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this[_0x3752('0x1e')]()),this['on']('change:hasDirtyComment',()=>this[_0x3752('0x1e')]()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x3752('0x25')]});}get[_0x3752('0x1c')](){return this['_model'][_0x3752('0x6')]>this[_0x3752('0x8')][_0x3752('0x21')]&&!this[_0x3752('0x3a')]&&!this[_0x3752('0x2')];}[_0x3752('0x2d')](){super['render'](),this[_0x3752('0x1e')]();}[_0x3752('0x2a')](){this[_0x3752('0xf')][_0x3752('0x2a')]();}[_0x3752('0x27')](){this[_0x3752('0x5')][_0x3752('0x27')]();for(const _0x213a1f of this[_0x3752('0x12')])_0x213a1f[_0x3752('0x27')]();super[_0x3752('0x27')]();}[_0x3752('0x1e')](){this[_0x3752('0x1c')]?this['_rearrangeCollapse']():this[_0x3752('0x33')]();}['_handleNewCommentModel'](_0x910b3f,_0x4f8d8c){const _0x5fd9d5=new this[(_0x3752('0x8'))][(_0x3752('0x0'))](this[_0x3752('0x17')],_0x910b3f,{'maxCommentCharsWhenCollapsed':this[_0x3752('0x8')][_0x3752('0x39')],'formatDateTime':this[_0x3752('0x8')][_0x3752('0x1d')],'editorConfig':this['_config']['editorConfig']});_0x5fd9d5[_0x3752('0x1b')]=_0x910b3f['id'],_0x5fd9d5['delegate'](_0x3752('0xe'))['to'](this),_0x5fd9d5[_0x3752('0x15')](_0x3752('0x19'))['to'](this),_0x5fd9d5[_0x3752('0x15')](_0x3752('0x13'))['to'](this),_0x5fd9d5[_0x3752('0x15')](_0x3752('0xc'))['to'](this),_0x5fd9d5['delegate'](_0x3752('0x36'))['to'](this),this['listenTo'](_0x5fd9d5,_0x3752('0x16'),()=>this[_0x3752('0x18')]()),this[_0x3752('0x12')][_0x3752('0x2e')](_0x5fd9d5,_0x4f8d8c);}[_0x3752('0x26')](_0x5e692e){const _0x306964=this['_model'][_0x3752('0x38')](_0x5e692e);return this['resolvedCommentView']?this[_0x3752('0x30')][_0x3752('0x31')]>_0x5e692e['authoredAt']?_0x306964-0x1:_0x306964:_0x306964-0x1;}['_handleInfoComment'](){if(this[_0x3752('0x34')][_0x3752('0x7')]&&this[_0x3752('0x34')]['resolvedAt']){const _0x40e711={'id':_0x3752('0x24'),'author':this[_0x3752('0x34')][_0x3752('0x7')],'authoredAt':this['_model'][_0x3752('0xb')],'content':_0x100eaa(this[_0x3752('0x17')],_0x3752('0x32')),'attributes':{}};this[_0x3752('0x30')]=new this[(_0x3752('0x8'))][(_0x3752('0x0'))](this[_0x3752('0x17')],_0x40e711,{'maxCommentCharsWhenCollapsed':this[_0x3752('0x8')][_0x3752('0x39')],'formatDateTime':this[_0x3752('0x8')][_0x3752('0x1d')],'editorConfig':this[_0x3752('0x8')][_0x3752('0xd')],'isSystemComment':!0x0}),this[_0x3752('0x12')][_0x3752('0x2e')](this['resolvedCommentView'],this[_0x3752('0x34')][_0x3752('0x38')](_0x40e711));}else this[_0x3752('0x30')]&&(this[_0x3752('0x12')][_0x3752('0x4')](this[_0x3752('0x30')]),this[_0x3752('0x30')][_0x3752('0x27')](),this[_0x3752('0x30')]=null);this[_0x3752('0x1e')]();}['_handleRemoveCommentModel'](_0x341a8f){const _0x2185a8=this[_0x3752('0x12')]['remove'](_0x341a8f['id']);this['stopListening'](_0x2185a8),_0x2185a8['isEditMode']&&this[_0x3752('0x18')](),_0x2185a8['destroy']();}[_0x3752('0x18')](){this[_0x3752('0x2')]=Array[_0x3752('0x2c')](this[_0x3752('0x12')])[_0x3752('0x37')](_0x484f3b=>_0x484f3b[_0x3752('0x22')]);}[_0x3752('0x9')](){const _0x28b2a5=function(_0x2a3bea){const _0x4dbc0e=new _0x11bba3();for(const _0x444cfe of _0x2a3bea)_0x4dbc0e[_0x3752('0x2e')](_0x444cfe);return _0x4dbc0e;}(this[_0x3752('0x12')]),_0x54e68d=this[_0x3752('0x5')]['count'];for(let _0x41f490=0x1;_0x41f490<=_0x54e68d;_0x41f490++)_0x28b2a5[_0x3752('0x4')](0x1);for(const _0x40d358 of _0x28b2a5)_0x40d358[_0x3752('0x23')]();_0x54e68d>0x0&&_0x28b2a5[_0x3752('0x2e')](this[_0x3752('0x5')],0x1),ss(_0x5c5a25(Array[_0x3752('0x2c')](this[_0x3752('0x25')]),Array['from'](_0x28b2a5)),this[_0x3752('0x25')],_0x28b2a5);}[_0x3752('0x33')](){ss(_0x5c5a25(Array['from'](this['visibleViews']),Array[_0x3752('0x2c')](this[_0x3752('0x12')])),this[_0x3752('0x25')],this[_0x3752('0x12')]);for(const _0x535fdc of this[_0x3752('0x25')])_0x535fdc[_0x3752('0x20')]();}}function ss(_0x4a0468,_0x333bd3,_0x370c2c){let _0x277a9a=0x0;for(const _0x49fa09 of _0x4a0468)switch(_0x49fa09){case _0x3752('0x28'):_0x333bd3[_0x3752('0x2e')](_0x370c2c[_0x3752('0x35')](_0x277a9a),_0x277a9a),_0x277a9a++;break;case _0x3752('0x1f'):_0x333bd3[_0x3752('0x4')](_0x277a9a);break;case _0x3752('0x1'):_0x277a9a++;}}
|