@ckeditor/ckeditor5-comments 39.0.2 → 40.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/comments.js +1 -1
  4. package/build/translations/pt-br.js +1 -1
  5. package/lang/translations/pt-br.po +3 -3
  6. package/package.json +3 -3
  7. package/src/annotations/annotation.d.ts +90 -90
  8. package/src/annotations/annotation.js +1 -1
  9. package/src/annotations/annotationcollection.d.ts +98 -98
  10. package/src/annotations/annotationcollection.js +1 -1
  11. package/src/annotations/annotations.d.ts +154 -154
  12. package/src/annotations/annotations.js +1 -1
  13. package/src/annotations/annotationsuis.d.ts +232 -232
  14. package/src/annotations/annotationsuis.js +1 -1
  15. package/src/annotations/editorannotations.d.ts +67 -67
  16. package/src/annotations/editorannotations.js +1 -1
  17. package/src/annotations/inlineannotations.d.ts +90 -90
  18. package/src/annotations/inlineannotations.js +1 -1
  19. package/src/annotations/narrowsidebar.d.ts +85 -85
  20. package/src/annotations/narrowsidebar.js +1 -1
  21. package/src/annotations/sidebar.d.ts +100 -100
  22. package/src/annotations/sidebar.js +1 -1
  23. package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
  24. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  25. package/src/annotations/view/annotationview.d.ts +90 -90
  26. package/src/annotations/view/annotationview.js +1 -1
  27. package/src/annotations/view/sidebaritemview.d.ts +55 -55
  28. package/src/annotations/view/sidebaritemview.js +1 -1
  29. package/src/annotations/view/sidebarview.d.ts +32 -32
  30. package/src/annotations/view/sidebarview.js +1 -1
  31. package/src/annotations/widesidebar.d.ts +77 -77
  32. package/src/annotations/widesidebar.js +1 -1
  33. package/src/augmentation.d.ts +52 -52
  34. package/src/comments/addcommentthreadcommand.d.ts +35 -35
  35. package/src/comments/addcommentthreadcommand.js +1 -1
  36. package/src/comments/commentsarchive.d.ts +31 -31
  37. package/src/comments/commentsarchive.js +1 -1
  38. package/src/comments/commentsarchiveui.d.ts +38 -38
  39. package/src/comments/commentsarchiveui.js +1 -1
  40. package/src/comments/commentsediting.d.ts +79 -79
  41. package/src/comments/commentsediting.js +1 -1
  42. package/src/comments/commentsrepository.d.ts +1129 -1105
  43. package/src/comments/commentsrepository.js +1 -1
  44. package/src/comments/commentsui.d.ts +33 -33
  45. package/src/comments/commentsui.js +1 -1
  46. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
  47. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  48. package/src/comments/integrations/importword.d.ts +21 -21
  49. package/src/comments/integrations/importword.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
  51. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  52. package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
  53. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  54. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
  55. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  56. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  57. package/src/comments/ui/commentthreadcontroller.js +1 -1
  58. package/src/comments/ui/view/basecommentthreadview.d.ts +119 -112
  59. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  60. package/src/comments/ui/view/basecommentview.d.ts +112 -112
  61. package/src/comments/ui/view/basecommentview.js +1 -1
  62. package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
  63. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  64. package/src/comments/ui/view/commentcontentview.d.ts +14 -14
  65. package/src/comments/ui/view/commentcontentview.js +1 -1
  66. package/src/comments/ui/view/commentinputview.d.ts +86 -86
  67. package/src/comments/ui/view/commentinputview.js +1 -1
  68. package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
  69. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  70. package/src/comments/ui/view/commentslistview.d.ts +100 -100
  71. package/src/comments/ui/view/commentslistview.js +1 -1
  72. package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
  73. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  74. package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
  75. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  76. package/src/comments/ui/view/commentthreadview.d.ts +118 -117
  77. package/src/comments/ui/view/commentthreadview.js +1 -1
  78. package/src/comments/ui/view/commentview.d.ts +243 -243
  79. package/src/comments/ui/view/commentview.js +1 -1
  80. package/src/comments.d.ts +35 -35
  81. package/src/comments.js +1 -1
  82. package/src/commentsonly.d.ts +33 -33
  83. package/src/commentsonly.js +1 -1
  84. package/src/config.d.ts +176 -176
  85. package/src/index.d.ts +24 -24
  86. package/src/utils/common-translations.d.ts +9 -9
  87. package/src/utils/common-translations.js +1 -1
  88. package/src/utils/createmutationobserver.d.ts +14 -14
  89. package/src/utils/createmutationobserver.js +1 -1
  90. package/theme/annotation-inline.css +2 -1
  91. package/theme/annotation.css +2 -1
  92. package/theme/comment.css +2 -1
  93. package/theme/commentinput.css +2 -1
  94. package/theme/commentmarker.css +2 -1
  95. package/theme/commentsarchive.css +2 -1
  96. package/theme/commentthread.css +12 -1
  97. package/theme/icons/add-comment.svg +1 -1
  98. package/theme/icons/comments-archive.svg +1 -1
  99. package/theme/icons/edit-comment.svg +1 -1
  100. package/theme/icons/remove-comment.svg +1 -1
  101. package/theme/sidebar-narrow.css +2 -1
  102. package/theme/sidebar.css +2 -1
@@ -1,50 +1,50 @@
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/commentthreadheaderview
7
- */
8
- import { View, ButtonView } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import type { CommentThread } from '../../commentsrepository';
11
- export declare const MAX_CONTENT_LENGTH = 150;
12
- /**
13
- * A view for the comment thread header.
14
- */
15
- export default class CommentThreadHeaderView extends View {
16
- locale: Locale;
17
- /**
18
- * Defines whether the context value exists.
19
- *
20
- * @observable
21
- */
22
- hasContext: boolean;
23
- /**
24
- * Context value to display in the header.
25
- *
26
- * @observable
27
- */
28
- contextValue: string;
29
- /**
30
- * Button view for the button which reopen the comment thread.
31
- */
32
- reopenButtonView: ButtonView;
33
- /**
34
- * @inheritDoc
35
- */
36
- constructor(locale: Locale, model: CommentThread);
37
- /**
38
- * @inheritDoc
39
- */
40
- render(): void;
41
- }
42
- /**
43
- * Fired when a user performed an action that should lead to reopen the resolved comment thread.
44
- *
45
- * @eventName ~CommentThreadHeaderView#reopenCommentThread
46
- */
47
- export type UIReopenCommentThreadEvent = {
48
- name: 'reopenCommentThread';
49
- args: [id: string];
50
- };
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/commentthreadheaderview
7
+ */
8
+ import { View, ButtonView } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
10
+ import type { CommentThread } from '../../commentsrepository';
11
+ export declare const MAX_CONTENT_LENGTH = 150;
12
+ /**
13
+ * A view for the comment thread header.
14
+ */
15
+ export default class CommentThreadHeaderView extends View {
16
+ locale: Locale;
17
+ /**
18
+ * Defines whether the context value exists.
19
+ *
20
+ * @observable
21
+ */
22
+ hasContext: boolean;
23
+ /**
24
+ * Context value to display in the header.
25
+ *
26
+ * @observable
27
+ */
28
+ contextValue: string;
29
+ /**
30
+ * Button view for the button which reopen the comment thread.
31
+ */
32
+ reopenButtonView: ButtonView;
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ constructor(locale: Locale, model: CommentThread);
37
+ /**
38
+ * @inheritDoc
39
+ */
40
+ render(): void;
41
+ }
42
+ /**
43
+ * Fired when a user performed an action that should lead to reopen the resolved comment thread.
44
+ *
45
+ * @eventName ~CommentThreadHeaderView#reopenCommentThread
46
+ */
47
+ export type UIReopenCommentThreadEvent = {
48
+ name: 'reopenCommentThread';
49
+ args: [id: string];
50
+ };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d3a=['isVisible','reopenButtonView','bindTemplate','setTemplate','render','overlay','mouseenter','locale','querySelector','ck-context--quotes','context','isEnabled','length','div','scrollWidth','...','_createReopenButton','_trimContextValue','contextValue','classList','listenTo','reopenCommentThread','add','element','Reopen','isReadOnly','lastIndexOf','hasContext','ck-annotation__actions','value','_attachContextActions','bind','.ck-context','ck-context-wrapper','tooltip','fire','execute','label','span','_model','substring','offsetWidth'];(function(_0x607b9b,_0x3d3a23){const _0xa14041=function(_0x254655){while(--_0x254655){_0x607b9b['push'](_0x607b9b['shift']());}};_0xa14041(++_0x3d3a23);}(_0x3d3a,0x7d));const _0xa140=function(_0x607b9b,_0x3d3a23){_0x607b9b=_0x607b9b-0x0;let _0xa14041=_0x3d3a[_0x607b9b];return _0xa14041;};import{View as _0x569b7e,ButtonView as _0x9773d6}from'ckeditor5/src/ui';import{getTranslation as _0x2f6f8f}from'../../../utils/common-translations';import _0x1b8ee5 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x569b7e{constructor(_0x49f0b5,_0x5da88f){super(_0x49f0b5);const _0xfb188=this[_0xa140('0x3')];this['_model']=_0x5da88f,this['reopenButtonView']=this[_0xa140('0x11')](),this['bind'](_0xa140('0x1c'))['to'](this[_0xa140('0x28')],_0xa140('0xb'),_0x38e191=>!!_0x38e191),this['bind']('contextValue')['to'](this['_model'],_0xa140('0xb'),_0xebe11=>_0xebe11&&_0xebe11[_0xa140('0x1e')]?this[_0xa140('0x12')](_0xebe11[_0xa140('0x1e')]):_0x2f6f8f(this[_0xa140('0x8')],'Comment\x20was\x20made\x20on\x20an\x20element')),this[_0xa140('0x4')]({'tag':_0xa140('0xe'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':_0xa140('0xe'),'attributes':{'class':[_0xa140('0x22')]},'children':[{'tag':'div','attributes':{'class':['ck-context',_0xfb188['if']('hasContext',_0xa140('0xa'))]},'children':[{'tag':_0xa140('0x27'),'attributes':{'class':['ck-context__value']},'children':[{'text':_0xfb188['to'](_0xa140('0x13'))}]}]}]},{'tag':_0xa140('0xe'),'attributes':{'class':[_0xa140('0x1d')]},'children':[this[_0xa140('0x2')]]}]});}[_0xa140('0x5')](){super['render'](),this[_0xa140('0x1f')]();}['_createReopenButton'](){const _0x5f3451=new _0x9773d6(this[_0xa140('0x8')]);return _0x5f3451[_0xa140('0x26')]=_0x2f6f8f(this[_0xa140('0x8')],_0xa140('0x19')),_0x5f3451[_0xa140('0x23')]=_0x2f6f8f(this[_0xa140('0x8')],_0xa140('0x19')),_0x5f3451['icon']=_0x1b8ee5,_0x5f3451[_0xa140('0x20')](_0xa140('0xc'))['to'](this[_0xa140('0x28')],_0xa140('0x1a'),_0x4f125e=>!_0x4f125e),_0x5f3451[_0xa140('0x20')](_0xa140('0x1'))['to'](this[_0xa140('0x28')],'isResolvable'),_0x5f3451['on'](_0xa140('0x25'),()=>{this[_0xa140('0x24')](_0xa140('0x16'),this[_0xa140('0x28')]['id']);}),_0x5f3451;}[_0xa140('0x12')](_0x294ac3){if(_0x294ac3[_0xa140('0xd')]<0x96)return _0x294ac3;const _0x20b63a=_0x294ac3[_0xa140('0x1b')]('\x20',0x93);return _0x294ac3[_0xa140('0x29')](0x0,_0x20b63a>-0x1?_0x20b63a:0x93)+_0xa140('0x10');}['_attachContextActions'](){const _0x198199=this[_0xa140('0x18')][_0xa140('0x9')](_0xa140('0x21')),_0x527be1=_0x198199['querySelector']('.ck-context__value');this['listenTo'](_0x198199,_0xa140('0x7'),()=>{_0x527be1[_0xa140('0x0')]<_0x527be1[_0xa140('0xf')]&&_0x198199[_0xa140('0x14')][_0xa140('0x17')]('overlay');}),this[_0xa140('0x15')](_0x198199,'mouseleave',()=>{_0x198199[_0xa140('0x14')]['remove'](_0xa140('0x6'));});}}
23
+ const _0x498a=['mouseenter','tooltip','offsetWidth','div','_attachContextActions','querySelector','Reopen','_model','execute','ck-context--quotes','ck-context__value','label','_createReopenButton','remove','ck-context-wrapper','lastIndexOf','value','context','bind','length','locale','overlay','ck-context','_trimContextValue','span','...','reopenCommentThread','element','hasContext','listenTo','mouseleave','Comment\x20was\x20made\x20on\x20an\x20element','reopenButtonView','isResolved','render','isResolvable','icon','setTemplate','classList'];(function(_0x15366e,_0x498a5e){const _0x62c5cd=function(_0xe7d970){while(--_0xe7d970){_0x15366e['push'](_0x15366e['shift']());}};_0x62c5cd(++_0x498a5e);}(_0x498a,0xbd));const _0x62c5=function(_0x15366e,_0x498a5e){_0x15366e=_0x15366e-0x0;let _0x62c5cd=_0x498a[_0x15366e];return _0x62c5cd;};import{View as _0x490116,ButtonView as _0x1f7f98}from'ckeditor5/src/ui';import{getTranslation as _0x3ab864}from'../../../utils/common-translations';import _0x5c8288 from'../../../../theme/icons/undo.svg';export const MAX_CONTENT_LENGTH=0x96;export default class Rt extends _0x490116{constructor(_0x4139a0,_0x2d0a0d){super(_0x4139a0);const _0x100aeb=this['bindTemplate'];this['_model']=_0x2d0a0d,this['reopenButtonView']=this[_0x62c5('0x12')](),this['bind'](_0x62c5('0x22'))['to'](this['_model'],'context',_0x58b48c=>!!_0x58b48c),this[_0x62c5('0x18')]('contextValue')['to'](this[_0x62c5('0xd')],_0x62c5('0x17'),_0x1193da=>_0x1193da&&_0x1193da['value']?this[_0x62c5('0x1d')](_0x1193da[_0x62c5('0x16')]):_0x3ab864(this[_0x62c5('0x1a')],_0x62c5('0x25'))),this[_0x62c5('0x4')]({'tag':_0x62c5('0x9'),'attributes':{'class':['ck-thread__header']},'children':[{'tag':_0x62c5('0x9'),'attributes':{'class':[_0x62c5('0x14')]},'children':[{'tag':_0x62c5('0x9'),'attributes':{'class':[_0x62c5('0x1c'),_0x100aeb['if'](_0x62c5('0x22'),_0x62c5('0xf'))]},'children':[{'tag':_0x62c5('0x1e'),'attributes':{'class':[_0x62c5('0x10')]},'children':[{'text':_0x100aeb['to']('contextValue')}]}]}]},{'tag':_0x62c5('0x9'),'attributes':{'class':['ck-annotation__actions']},'children':[this[_0x62c5('0x26')]]}]});}['render'](){super[_0x62c5('0x1')](),this[_0x62c5('0xa')]();}[_0x62c5('0x12')](){const _0x13aeb5=new _0x1f7f98(this[_0x62c5('0x1a')]);return _0x13aeb5[_0x62c5('0x11')]=_0x3ab864(this[_0x62c5('0x1a')],_0x62c5('0xc')),_0x13aeb5[_0x62c5('0x7')]=_0x3ab864(this[_0x62c5('0x1a')],_0x62c5('0xc')),_0x13aeb5[_0x62c5('0x3')]=_0x5c8288,_0x13aeb5['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x491047=>!_0x491047),_0x13aeb5[_0x62c5('0x18')]('isVisible')['to'](this[_0x62c5('0xd')],_0x62c5('0x2'),this[_0x62c5('0xd')],_0x62c5('0x0'),(_0x172410,_0x450761)=>_0x172410&&_0x450761),_0x13aeb5['on'](_0x62c5('0xe'),()=>{this['fire'](_0x62c5('0x20'),this[_0x62c5('0xd')]['id']);}),_0x13aeb5;}[_0x62c5('0x1d')](_0x1a84d1){if(_0x1a84d1[_0x62c5('0x19')]<0x96)return _0x1a84d1;const _0x5e3872=_0x1a84d1[_0x62c5('0x15')]('\x20',0x93);return _0x1a84d1['substring'](0x0,_0x5e3872>-0x1?_0x5e3872:0x93)+_0x62c5('0x1f');}[_0x62c5('0xa')](){const _0x579ebf=this[_0x62c5('0x21')][_0x62c5('0xb')]('.ck-context'),_0x3bb31c=_0x579ebf[_0x62c5('0xb')]('.ck-context__value');this['listenTo'](_0x579ebf,_0x62c5('0x6'),()=>{_0x3bb31c[_0x62c5('0x8')]<_0x3bb31c['scrollWidth']&&_0x579ebf[_0x62c5('0x5')]['add']('overlay');}),this[_0x62c5('0x23')](_0x579ebf,_0x62c5('0x24'),()=>{_0x579ebf[_0x62c5('0x5')][_0x62c5('0x13')](_0x62c5('0x1b'));});}}
@@ -1,41 +1,41 @@
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/commentthreadinputview
7
- */
8
- import { View } from 'ckeditor5/src/ui';
9
- import CommentInputView from './commentinputview';
10
- import type { Locale } from 'ckeditor5/src/utils';
11
- import type { EditorConfig } from 'ckeditor5/src/core';
12
- import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
13
- /**
14
- * View that represents comment input area for a comment thread. Includes editor, user view and buttons.
15
- */
16
- export default class CommentThreadInputView extends View {
17
- /**
18
- * Specifies whether the comment input view should be visible (`true`) or hidden (`false`).
19
- *
20
- * @observable
21
- */
22
- showInput: boolean;
23
- /**
24
- * Comment input view.
25
- */
26
- commentInputView: CommentInputView;
27
- /**
28
- * User view for the input area. Presents the local user.
29
- */
30
- userView: UserView;
31
- /**
32
- * @param locale The localization service instance.
33
- * @param localUser Current local user.
34
- * @param editorConfig
35
- */
36
- constructor(locale: Locale, localUser: User, editorConfig: EditorConfig);
37
- /**
38
- * @inheritDoc
39
- */
40
- destroy(): Promise<void>;
41
- }
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/commentthreadinputview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import CommentInputView from './commentinputview';
10
+ import type { Locale } from 'ckeditor5/src/utils';
11
+ import type { EditorConfig } from 'ckeditor5/src/core';
12
+ import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
13
+ /**
14
+ * View that represents comment input area for a comment thread. Includes editor, user view and buttons.
15
+ */
16
+ export default class CommentThreadInputView extends View {
17
+ /**
18
+ * Specifies whether the comment input view should be visible (`true`) or hidden (`false`).
19
+ *
20
+ * @observable
21
+ */
22
+ showInput: boolean;
23
+ /**
24
+ * Comment input view.
25
+ */
26
+ commentInputView: CommentInputView;
27
+ /**
28
+ * User view for the input area. Presents the local user.
29
+ */
30
+ userView: UserView;
31
+ /**
32
+ * @param locale The localization service instance.
33
+ * @param localUser Current local user.
34
+ * @param editorConfig
35
+ */
36
+ constructor(locale: Locale, localUser: User, editorConfig: EditorConfig);
37
+ /**
38
+ * @inheritDoc
39
+ */
40
+ destroy(): Promise<void>;
41
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xbec9=['div','editorReady','then','showButtons','bind','delegate','bindTemplate','value','userView','editorDestroyed','setTemplate','destroy','ck-thread__user','extendTemplate','ck-comment__input-container','focusTracker','showInput','commentInputView'];(function(_0xf638d,_0xbec9f2){var _0x30fbca=function(_0x224190){while(--_0x224190){_0xf638d['push'](_0xf638d['shift']());}};_0x30fbca(++_0xbec9f2);}(_0xbec9,0x68));var _0x30fb=function(_0xf638d,_0xbec9f2){_0xf638d=_0xf638d-0x0;var _0x30fbca=_0xbec9[_0xf638d];return _0x30fbca;};import{View as _0x40f3d4}from'ckeditor5/src/ui';import _0xb458cf from'./commentinputview';import{UserView as _0x12880b}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x40f3d4{constructor(_0x3057e2,_0xda1be2,_0x40941c){super(_0x3057e2),this[_0x30fb('0x3')]=new _0xb458cf(_0x3057e2,_0x40941c),this[_0x30fb('0x3')][_0x30fb('0x8')](_0x30fb('0x7'))['to'](this[_0x30fb('0x3')][_0x30fb('0x1')],'isFocused',this['commentInputView'],_0x30fb('0xb'),(_0xd42faa,_0x510999)=>_0xd42faa||!!_0x510999),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this[_0x30fb('0x2')]&&!this[_0x30fb('0x3')]['editor']&&this[_0x30fb('0x3')]['createEditor']();}),this[_0x30fb('0x3')][_0x30fb('0x9')](_0x30fb('0x5'))['to'](this),this[_0x30fb('0x3')][_0x30fb('0x9')](_0x30fb('0xd'))['to'](this),this[_0x30fb('0xc')]=new _0x12880b(_0x3057e2,_0xda1be2),this[_0x30fb('0xc')][_0x30fb('0x11')]({'attributes':{'class':_0x30fb('0x10')}}),this[_0x30fb('0x3')][_0x30fb('0x11')]({'attributes':{'class':'ck-thread__input'}}),this[_0x30fb('0xe')]({'tag':_0x30fb('0x4'),'attributes':{'class':[_0x30fb('0x0'),this[_0x30fb('0xa')]['if']('showInput','ck-comment__input-container--active')]},'children':[this[_0x30fb('0xc')],this['commentInputView']]});}['destroy'](){return this['commentInputView'][_0x30fb('0xf')]()[_0x30fb('0x6')](()=>super['destroy']());}}
23
+ var _0x24da=['div','bind','createEditor','editor','change:showInput','showButtons','delegate','ck-thread__user','destroy','editorDestroyed','ck-comment__input-container--active','ck-thread__input','value','bindTemplate','isFocused','set','showInput','setTemplate','focusTracker','then','commentInputView','userView'];(function(_0x48365e,_0x24da2f){var _0x552ac3=function(_0x271993){while(--_0x271993){_0x48365e['push'](_0x48365e['shift']());}};_0x552ac3(++_0x24da2f);}(_0x24da,0x193));var _0x552a=function(_0x48365e,_0x24da2f){_0x48365e=_0x48365e-0x0;var _0x552ac3=_0x24da[_0x48365e];return _0x552ac3;};import{View as _0x189add}from'ckeditor5/src/ui';import _0x21f2ac from'./commentinputview';import{UserView as _0x342c0d}from'ckeditor5-collaboration/src/collaboration-core';export default class Ct extends _0x189add{constructor(_0x37d541,_0x741611,_0x10ed32){super(_0x37d541),this[_0x552a('0xd')]=new _0x21f2ac(_0x37d541,_0x10ed32),this[_0x552a('0xd')][_0x552a('0x10')](_0x552a('0x14'))['to'](this[_0x552a('0xd')][_0x552a('0xb')],_0x552a('0x7'),this[_0x552a('0xd')],_0x552a('0x5'),(_0x5e18ed,_0x1c02b3)=>_0x5e18ed||!!_0x1c02b3),this[_0x552a('0x8')](_0x552a('0x9'),!0x1),this['on'](_0x552a('0x13'),()=>{this[_0x552a('0x9')]&&!this['commentInputView'][_0x552a('0x12')]&&this[_0x552a('0xd')][_0x552a('0x11')]();}),this['commentInputView'][_0x552a('0x15')]('editorReady')['to'](this),this[_0x552a('0xd')]['delegate'](_0x552a('0x2'))['to'](this),this[_0x552a('0xe')]=new _0x342c0d(_0x37d541,_0x741611),this[_0x552a('0xe')]['extendTemplate']({'attributes':{'class':_0x552a('0x0')}}),this['commentInputView']['extendTemplate']({'attributes':{'class':_0x552a('0x4')}}),this[_0x552a('0xa')]({'tag':_0x552a('0xf'),'attributes':{'class':['ck-comment__input-container',this[_0x552a('0x6')]['if']('showInput',_0x552a('0x3'))]},'children':[this[_0x552a('0xe')],this[_0x552a('0xd')]]});}[_0x552a('0x1')](){return this[_0x552a('0xd')][_0x552a('0x1')]()[_0x552a('0xc')](()=>super[_0x552a('0x1')]());}}
@@ -1,117 +1,118 @@
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/commentthreadview
7
- * @publicApi
8
- */
9
- import { type Locale } from 'ckeditor5/src/utils';
10
- import { type User } from 'ckeditor5-collaboration/src/collaboration-core';
11
- import { ButtonView, type TemplateDefinition, type ViewCollection } from 'ckeditor5/src/ui';
12
- import BaseCommentThreadView from './basecommentthreadview';
13
- import type { CommentThread } from '../../commentsrepository';
14
- import type { CommentThreadConfig } from '../../../config';
15
- declare const CommentThreadView_base: import("ckeditor5/src/utils").Mixed<typeof BaseCommentThreadView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
16
- /**
17
- * The default view for comment thread.
18
- */
19
- export default class CommentThreadView extends CommentThreadView_base {
20
- isConfirm: boolean;
21
- cancelConfirm: () => void;
22
- showConfirm: (key: string, element: unknown) => Promise<void>;
23
- /**
24
- * The locale instance.
25
- */
26
- readonly locale: Locale;
27
- /**
28
- * A property used by the template.
29
- *
30
- * It works as a visual indicator for the user that an action is about to be performed.
31
- * The value of this property is used in setting the CSS class.
32
- * The property is used when the user interacts with the view.
33
- *
34
- * @observable
35
- */
36
- actionIndicator: string | null;
37
- /**
38
- * View collection which holds all comment thread children elements.
39
- *
40
- * These views are:
41
- *
42
- * * {@link ~CommentThreadView#commentThreadHeaderView `commentThreadHeaderView`} (added at the beginning when the comment thread is
43
- * resolved),
44
- * * {@link ~CommentThreadView#commentsListView `commentsListView`},
45
- * * {@link ~CommentThreadView#commentThreadInputView `commentThreadInputView`}.
46
- *
47
- * @readonly
48
- */
49
- readonly commentThreadChildren: ViewCollection;
50
- /**
51
- * `ConfirmView` uses this element as a container for confirmation dialog.
52
- *
53
- * The element is set after `view#render()` is called.
54
- *
55
- * @member {HTMLElement|null} #containerElement
56
- */
57
- containerElement: HTMLElement | null;
58
- /**
59
- * Resolve button view. Resolve button fires the 'resolveCommentThread' event when submitted.
60
- *
61
- * @readonly
62
- */
63
- readonly resolveButton: ButtonView;
64
- /**
65
- * @inheritDoc
66
- */
67
- constructor(locale: Locale, model: CommentThread, localUser: User, config: CommentThreadConfig);
68
- /**
69
- * Returns a template definition that will be passed to {@link module:ui/view~View#setTemplate}.
70
- *
71
- * Overwrite this method if you want to set a custom template for the comment thread view.
72
- *
73
- * The default template looks as follows:
74
- *
75
- * ```ts
76
- * const bind = this.bindTemplate;
77
- *
78
- * {
79
- * tag: 'div',
80
- *
81
- * attributes: {
82
- * class: [
83
- * 'ck-thread',
84
- * 'ck-reset_all-excluded',
85
- * bind.if( 'isActive', 'ck-thread--active' ),
86
- * bind.if( 'isConfirm', 'ck-thread--remove-confirmation' ),
87
- * bind.to( 'actionIndicator', value => value ? `ck-thread--${ value }` : '' )
88
- * ],
89
- * 'data-thread-id': this._model.id,
90
- * // Needed for managing focus after adding new comment.
91
- * tabindex: -1
92
- * },
93
- *
94
- * children: [
95
- * {
96
- * tag: 'div',
97
- * attributes: {
98
- * class: 'ck-thread__container'
99
- * },
100
- * children: this.commentThreadChildren
101
- * }
102
- * ]
103
- * };
104
- * ```
105
- *
106
- * See the {@glink features/collaboration/annotations/annotations-custom-view Annotation custom view guide} to learn more about
107
- * the possible annotation customizations.
108
- *
109
- * @returns The definition of a comment thread view's template.
110
- */
111
- getTemplate(): TemplateDefinition;
112
- /**
113
- * @inheritDoc
114
- */
115
- render(): void;
116
- }
117
- export {};
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/commentthreadview
7
+ * @publicApi
8
+ */
9
+ import { type Locale } from 'ckeditor5/src/utils';
10
+ import { type User } from 'ckeditor5-collaboration/src/collaboration-core';
11
+ import { ButtonView, type TemplateDefinition, type ViewCollection } from 'ckeditor5/src/ui';
12
+ import BaseCommentThreadView from './basecommentthreadview';
13
+ import type { CommentThread } from '../../commentsrepository';
14
+ import type { CommentThreadConfig } from '../../../config';
15
+ declare const CommentThreadView_base: import("ckeditor5/src/utils").Mixed<typeof BaseCommentThreadView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
16
+ /**
17
+ * The default view for comment thread.
18
+ */
19
+ export default class CommentThreadView extends CommentThreadView_base {
20
+ isConfirm: boolean;
21
+ cancelConfirm: () => void;
22
+ showConfirm: (key: string, element: unknown) => Promise<void>;
23
+ /**
24
+ * The locale instance.
25
+ */
26
+ readonly locale: Locale;
27
+ /**
28
+ * A property used by the template.
29
+ *
30
+ * It works as a visual indicator for the user that an action is about to be performed.
31
+ * The value of this property is used in setting the CSS class.
32
+ * The property is used when the user interacts with the view.
33
+ *
34
+ * @observable
35
+ */
36
+ actionIndicator: string | null;
37
+ /**
38
+ * View collection which holds all comment thread children elements.
39
+ *
40
+ * These views are:
41
+ *
42
+ * * {@link ~CommentThreadView#commentThreadHeaderView `commentThreadHeaderView`} (added at the beginning when the comment thread is
43
+ * resolved),
44
+ * * {@link ~CommentThreadView#commentsListView `commentsListView`},
45
+ * * {@link ~CommentThreadView#commentThreadInputView `commentThreadInputView`}.
46
+ *
47
+ * @readonly
48
+ */
49
+ readonly commentThreadChildren: ViewCollection;
50
+ /**
51
+ * `ConfirmView` uses this element as a container for confirmation dialog.
52
+ *
53
+ * The element is set after `view#render()` is called.
54
+ *
55
+ * @member {HTMLElement|null} #containerElement
56
+ */
57
+ containerElement: HTMLElement | null;
58
+ /**
59
+ * Resolve button view. Resolve button fires the 'resolveCommentThread' event when submitted.
60
+ *
61
+ * @readonly
62
+ */
63
+ readonly resolveButton: ButtonView;
64
+ /**
65
+ * @inheritDoc
66
+ */
67
+ constructor(locale: Locale, model: CommentThread, localUser: User, config: CommentThreadConfig);
68
+ /**
69
+ * Returns a template definition that will be passed to {@link module:ui/view~View#setTemplate}.
70
+ *
71
+ * Overwrite this method if you want to set a custom template for the comment thread view.
72
+ *
73
+ * The default template looks as follows:
74
+ *
75
+ * ```ts
76
+ * const bind = this.bindTemplate;
77
+ *
78
+ * {
79
+ * tag: 'div',
80
+ *
81
+ * attributes: {
82
+ * class: [
83
+ * 'ck-thread',
84
+ * 'ck-reset_all-excluded',
85
+ * bind.if( 'isActive', 'ck-thread--active' ),
86
+ * bind.if( 'isUnlinked', 'ck-thread--unlinked' ),
87
+ * bind.if( 'isConfirm', 'ck-thread--remove-confirmation' ),
88
+ * bind.to( 'actionIndicator', value => value ? `ck-thread--${ value }` : '' )
89
+ * ],
90
+ * 'data-thread-id': this._model.id,
91
+ * // Needed for managing focus after adding new comment.
92
+ * tabindex: -1
93
+ * },
94
+ *
95
+ * children: [
96
+ * {
97
+ * tag: 'div',
98
+ * attributes: {
99
+ * class: 'ck-thread__container'
100
+ * },
101
+ * children: this.commentThreadChildren
102
+ * }
103
+ * ]
104
+ * };
105
+ * ```
106
+ *
107
+ * See the {@glink features/collaboration/annotations/annotations-custom-view Annotation custom view guide} to learn more about
108
+ * the possible annotation customizations.
109
+ *
110
+ * @returns The definition of a comment thread view's template.
111
+ */
112
+ getTemplate(): TemplateDefinition;
113
+ /**
114
+ * @inheritDoc
115
+ */
116
+ render(): void;
117
+ }
118
+ export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e11=['extendTemplate','element','commentViews','then','fire','execute','add','ck-thread__container','isSystemComment','showConfirm','commentsListView','actionBar','render','bind','removeButton','div','isResolved','tooltip','addMany','.ck-thread__container','resolveButton','cancelConfirm','createCollection','remove','isActive','ck-thread--active','stop','locale','check','getTemplate','listenTo','commentThreadInputView','_cancelAllConfirms','commentThreadChildren','get','querySelector','ck-comment--resolve','isReadOnly','Delete\x20comment\x20thread?','_model','change:isResolved','ck-thread--','isConfirm','containerElement','_boundFirstCommentView','bindTemplate','set','commentThreadHeaderView','change:isActive','setTemplate','ck-reset_all-excluded','removeCommentThread','_createResolveButton','Resolve','high','actionIndicator','resolveCommentThread','unbind','change:isReadOnly','_bindFirstCommentView','isResolvable'];(function(_0x116a89,_0x3e1172){const _0x40a031=function(_0x1da24f){while(--_0x1da24f){_0x116a89['push'](_0x116a89['shift']());}};_0x40a031(++_0x3e1172);}(_0x3e11,0xad));const _0x40a0=function(_0x116a89,_0x3e1172){_0x116a89=_0x116a89-0x0;let _0x40a031=_0x3e11[_0x116a89];return _0x40a031;};import{ConfirmMixin as _0x1e808d}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x74f749}from'ckeditor5/src/ui';import{icons as _0x30c860}from'ckeditor5/src/core';import _0x51a2d6 from'./basecommentthreadview';import{getTranslation as _0x32f0e1}from'../../../utils/common-translations';export default class lt extends _0x1e808d(_0x51a2d6){constructor(_0x8b37c5,_0x4719ea,_0x22f749,_0x4812c6){super(_0x8b37c5,_0x4719ea,_0x22f749,_0x4812c6),this[_0x40a0('0x2b')]=this[_0x40a0('0x20')](),this[_0x40a0('0x2b')][_0x40a0('0x1c')]([this[_0x40a0('0x14')],this[_0x40a0('0x29')]]),this[_0x40a0('0x31')][_0x40a0('0x1a')]&&this[_0x40a0('0x2b')][_0x40a0('0x10')](this[_0x40a0('0x39')],0x0),this[_0x40a0('0x31')]['on'](_0x40a0('0x32'),(_0x34d581,_0x81fea3,_0x4bf8af)=>{_0x4bf8af?this[_0x40a0('0x2b')][_0x40a0('0x10')](this[_0x40a0('0x39')],0x0):this['commentThreadChildren'][_0x40a0('0x21')](this[_0x40a0('0x39')]);}),this[_0x40a0('0x38')](_0x40a0('0x4'),null),this[_0x40a0('0x35')]=null,this[_0x40a0('0x36')]=null,this[_0x40a0('0x25')]=_0x8b37c5,this['resolveButton']=this[_0x40a0('0x1')](),this[_0x40a0('0x3b')](this[_0x40a0('0x27')]()),this['on'](_0x40a0('0x3a'),(_0x10c849,_0x38cb18,_0x40ec26)=>{_0x40ec26||this['_cancelAllConfirms']();}),this[_0x40a0('0x28')](this[_0x40a0('0x31')],_0x40a0('0x7'),(_0x3c5a81,_0x3d373f,_0x2266c2)=>{_0x2266c2&&this['_cancelAllConfirms']();}),this['length']>0x0&&this[_0x40a0('0x8')](),this[_0x40a0('0x28')](this[_0x40a0('0x14')][_0x40a0('0xc')],_0x40a0('0x10'),()=>{this[_0x40a0('0x8')]();});}['getTemplate'](){const _0x3af9dc=this[_0x40a0('0x37')];return{'tag':_0x40a0('0x19'),'attributes':{'class':['ck-thread',_0x40a0('0x3c'),_0x3af9dc['if'](_0x40a0('0x22'),_0x40a0('0x23')),_0x3af9dc['if'](_0x40a0('0x34'),'ck-thread--remove-confirmation'),_0x3af9dc['to'](_0x40a0('0x4'),_0x5b8586=>_0x5b8586?_0x40a0('0x33')+_0x5b8586:'')],'data-thread-id':this[_0x40a0('0x31')]['id'],'tabindex':-0x1},'children':[{'tag':_0x40a0('0x19'),'attributes':{'class':_0x40a0('0x11')},'children':this[_0x40a0('0x2b')]}]};}[_0x40a0('0x16')](){super[_0x40a0('0x16')](),this['containerElement']=this[_0x40a0('0xb')][_0x40a0('0x2d')](_0x40a0('0x1d'));}[_0x40a0('0x2a')](){this[_0x40a0('0x1f')]();for(const _0x1fe7c1 of this[_0x40a0('0x14')]['commentViews'])_0x1fe7c1['cancelConfirm']();}[_0x40a0('0x8')](){const {locale:_0x1b0da5}=this,_0x5b56ae=this['commentsListView']['commentViews'][_0x40a0('0x2c')](0x0);_0x5b56ae===this[_0x40a0('0x36')]||_0x5b56ae[_0x40a0('0x12')]||(this[_0x40a0('0x36')]=_0x5b56ae,this[_0x40a0('0x6')](_0x40a0('0x4')),this[_0x40a0('0x17')](_0x40a0('0x4'))['to'](_0x5b56ae,_0x40a0('0x4'),_0x2a5ae4=>'remove'===_0x2a5ae4?_0x40a0('0x21'):null),_0x5b56ae['placeholder']=_0x32f0e1(_0x1b0da5,'Write\x20a\x20comment...'),_0x5b56ae[_0x40a0('0x18')]['on'](_0x40a0('0xf'),_0x45a76f=>{_0x45a76f[_0x40a0('0x24')](),this[_0x40a0('0x13')](_0x32f0e1(_0x1b0da5,_0x40a0('0x30')),this[_0x40a0('0x35')])[_0x40a0('0xd')](()=>{this['fire'](_0x40a0('0x0'));});},{'priority':_0x40a0('0x3')}),_0x5b56ae[_0x40a0('0x15')][_0x40a0('0x10')](this[_0x40a0('0x1e')],0x0));}[_0x40a0('0x1')](){const _0x3f8a2b=new _0x74f749(this[_0x40a0('0x25')]);return _0x3f8a2b['label']=_0x32f0e1(this[_0x40a0('0x25')],_0x40a0('0x2')),_0x3f8a2b[_0x40a0('0x1b')]=_0x32f0e1(this[_0x40a0('0x25')],_0x40a0('0x2')),_0x3f8a2b['icon']=_0x30c860[_0x40a0('0x26')],_0x3f8a2b[_0x40a0('0xa')]({'attributes':{'class':_0x40a0('0x2e')}}),_0x3f8a2b[_0x40a0('0x17')]('isEnabled')['to'](this[_0x40a0('0x31')],_0x40a0('0x2f'),_0x442bd9=>!_0x442bd9),_0x3f8a2b[_0x40a0('0x17')]('isVisible')['to'](this[_0x40a0('0x31')],_0x40a0('0x9'),this['_model'],_0x40a0('0x1a'),(_0x4949d0,_0x23063a)=>_0x4949d0&&!_0x23063a),_0x3f8a2b['on']('execute',()=>{this[_0x40a0('0xe')](_0x40a0('0x5'),this[_0x40a0('0x31')]['id']);}),_0x3f8a2b;}}
23
+ const _0x40a4=['remove','removeCommentThread','change:isReadOnly','change:archivedAt','Delete\x20comment\x20thread?','archivedAt','isReadOnly','unbind','actionIndicator','isUnlinked','change:isActive','querySelector','_model','resolveButton','_cancelAllConfirms','ck-reset_all-excluded','element','extendTemplate','set','cancelConfirm','isConfirm','isSystemComment','actionBar','then','commentThreadHeaderView','bindTemplate','containerElement','commentsListView','render','ck-thread__container','execute','get','commentThreadInputView','Write\x20a\x20comment...','commentViews','_createResolveButton','Resolve','length','_bindFirstCommentView','ck-thread--unlinked','ck-thread--remove-confirmation','getTemplate','listenTo','commentThreadChildren','bind','isEnabled','resolveCommentThread','isResolved','setTemplate','isResolvable','div','_boundFirstCommentView','has','add','locale','isVisible','ck-thread--active'];(function(_0x2a9ad,_0x40a4a6){const _0x243e52=function(_0x4c6942){while(--_0x4c6942){_0x2a9ad['push'](_0x2a9ad['shift']());}};_0x243e52(++_0x40a4a6);}(_0x40a4,0x64));const _0x243e=function(_0x2a9ad,_0x40a4a6){_0x2a9ad=_0x2a9ad-0x0;let _0x243e52=_0x40a4[_0x2a9ad];return _0x243e52;};import{ConfirmMixin as _0x5624a9}from'ckeditor5-collaboration/src/collaboration-core';import{ButtonView as _0x46562b}from'ckeditor5/src/ui';import{icons as _0x34af76}from'ckeditor5/src/core';import _0x53ae5f from'./basecommentthreadview';import{getTranslation as _0x287912}from'../../../utils/common-translations';export default class lt extends _0x5624a9(_0x53ae5f){constructor(_0x55bb98,_0x5019fd,_0x2c72c5,_0x1369f8){super(_0x55bb98,_0x5019fd,_0x2c72c5,_0x1369f8),this[_0x243e('0x0')]=this['createCollection'](),this[_0x243e('0x0')]['addMany']([this[_0x243e('0x29')],this[_0x243e('0x2e')]]),this[_0x243e('0x1a')][_0x243e('0x13')]&&this[_0x243e('0x0')][_0x243e('0xa')](this['commentThreadHeaderView'],0x0),this[_0x243e('0x1a')]['on'](_0x243e('0x11'),(_0xa00712,_0x457e80,_0x4d14dd)=>{_0x4d14dd?this[_0x243e('0x0')][_0x243e('0x9')](this['commentThreadHeaderView'])||this[_0x243e('0x0')][_0x243e('0xa')](this[_0x243e('0x26')],0x0):this['commentThreadChildren'][_0x243e('0xe')](this[_0x243e('0x26')]);}),this[_0x243e('0x20')](_0x243e('0x16'),null),this[_0x243e('0x28')]=null,this[_0x243e('0x8')]=null,this[_0x243e('0xb')]=_0x55bb98,this[_0x243e('0x1b')]=this[_0x243e('0x31')](),this[_0x243e('0x5')](this[_0x243e('0x37')]()),this['on'](_0x243e('0x18'),(_0x2c2e2d,_0x28e323,_0x11317c)=>{_0x11317c||this[_0x243e('0x1c')]();}),this[_0x243e('0x38')](this['_model'],_0x243e('0x10'),(_0xd80658,_0x2ee1da,_0x367262)=>{_0x367262&&this[_0x243e('0x1c')]();}),this[_0x243e('0x33')]>0x0&&this[_0x243e('0x34')](),this[_0x243e('0x38')](this[_0x243e('0x29')][_0x243e('0x30')],'add',()=>{this[_0x243e('0x34')]();});}[_0x243e('0x37')](){const _0x339e56=this[_0x243e('0x27')];return{'tag':'div','attributes':{'class':['ck-thread',_0x243e('0x1d'),_0x339e56['if']('isActive',_0x243e('0xd')),_0x339e56['if'](_0x243e('0x17'),_0x243e('0x35')),_0x339e56['if'](_0x243e('0x22'),_0x243e('0x36')),_0x339e56['to']('actionIndicator',_0x28e1ed=>_0x28e1ed?'ck-thread--'+_0x28e1ed:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x243e('0x7'),'attributes':{'class':_0x243e('0x2b')},'children':this[_0x243e('0x0')]}]};}[_0x243e('0x2a')](){super[_0x243e('0x2a')](),this[_0x243e('0x28')]=this[_0x243e('0x1e')][_0x243e('0x19')]('.ck-thread__container');}['_cancelAllConfirms'](){this[_0x243e('0x21')]();for(const _0x5b59fd of this[_0x243e('0x29')][_0x243e('0x30')])_0x5b59fd[_0x243e('0x21')]();}[_0x243e('0x34')](){const {locale:_0x39416e}=this,_0x2b3ff2=this[_0x243e('0x29')]['commentViews'][_0x243e('0x2d')](0x0);_0x2b3ff2===this[_0x243e('0x8')]||_0x2b3ff2[_0x243e('0x23')]||(this[_0x243e('0x8')]=_0x2b3ff2,this[_0x243e('0x15')]('actionIndicator'),this[_0x243e('0x1')](_0x243e('0x16'))['to'](_0x2b3ff2,_0x243e('0x16'),_0x1b107f=>'remove'===_0x1b107f?'remove':null),_0x2b3ff2['placeholder']=_0x287912(_0x39416e,_0x243e('0x2f')),_0x2b3ff2['removeButton']['on'](_0x243e('0x2c'),_0x14c1d2=>{_0x14c1d2['stop'](),this['showConfirm'](_0x287912(_0x39416e,_0x243e('0x12')),this[_0x243e('0x28')])[_0x243e('0x25')](()=>{this['fire'](_0x243e('0xf'));});},{'priority':'high'}),_0x2b3ff2[_0x243e('0x24')]['add'](this[_0x243e('0x1b')],0x0));}[_0x243e('0x31')](){const _0x2675ac=new _0x46562b(this[_0x243e('0xb')]);return _0x2675ac['label']=_0x287912(this[_0x243e('0xb')],_0x243e('0x32')),_0x2675ac['tooltip']=_0x287912(this['locale'],_0x243e('0x32')),_0x2675ac['icon']=_0x34af76['check'],_0x2675ac[_0x243e('0x1f')]({'attributes':{'class':'ck-comment--resolve'}}),_0x2675ac[_0x243e('0x1')](_0x243e('0x2'))['to'](this[_0x243e('0x1a')],_0x243e('0x14'),_0x4236b1=>!_0x4236b1),_0x2675ac[_0x243e('0x1')](_0x243e('0xc'))['to'](this[_0x243e('0x1a')],_0x243e('0x6'),this['_model'],_0x243e('0x4'),(_0x3885d7,_0x1cf09d)=>_0x3885d7&&!_0x1cf09d),_0x2675ac['on'](_0x243e('0x2c'),()=>{this['fire'](_0x243e('0x3'),this[_0x243e('0x1a')]['id']);}),_0x2675ac;}}