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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.d.ts +6 -6
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.d.ts +3 -3
  6. package/src/annotations/annotationcollection.js +1 -1
  7. package/src/annotations/annotations.d.ts +6 -6
  8. package/src/annotations/annotations.js +1 -1
  9. package/src/annotations/annotationsuis.d.ts +5 -5
  10. package/src/annotations/annotationsuis.js +1 -1
  11. package/src/annotations/editorannotations.d.ts +4 -4
  12. package/src/annotations/editorannotations.js +1 -1
  13. package/src/annotations/inlineannotations.d.ts +6 -6
  14. package/src/annotations/inlineannotations.js +1 -1
  15. package/src/annotations/narrowsidebar.d.ts +6 -6
  16. package/src/annotations/narrowsidebar.js +1 -1
  17. package/src/annotations/sidebar.d.ts +5 -5
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.d.ts +2 -2
  20. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  21. package/src/annotations/view/annotationview.d.ts +2 -2
  22. package/src/annotations/view/annotationview.js +1 -1
  23. package/src/annotations/view/sidebaritemview.d.ts +2 -2
  24. package/src/annotations/view/sidebaritemview.js +1 -1
  25. package/src/annotations/view/sidebarview.d.ts +2 -2
  26. package/src/annotations/view/sidebarview.js +1 -1
  27. package/src/annotations/widesidebar.d.ts +5 -5
  28. package/src/annotations/widesidebar.js +1 -1
  29. package/src/augmentation.d.ts +1 -1
  30. package/src/comments/addcommentthreadcommand.d.ts +1 -1
  31. package/src/comments/addcommentthreadcommand.js +1 -1
  32. package/src/comments/commentsarchive.d.ts +4 -4
  33. package/src/comments/commentsarchive.js +1 -1
  34. package/src/comments/commentsarchiveui.d.ts +5 -5
  35. package/src/comments/commentsarchiveui.js +1 -1
  36. package/src/comments/commentsediting.d.ts +6 -6
  37. package/src/comments/commentsediting.js +1 -1
  38. package/src/comments/commentsrepository.d.ts +11 -11
  39. package/src/comments/commentsrepository.js +1 -1
  40. package/src/comments/commentsui.d.ts +5 -5
  41. package/src/comments/commentsui.js +1 -1
  42. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
  43. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  44. package/src/comments/integrations/importword.d.ts +1 -1
  45. package/src/comments/integrations/importword.js +1 -1
  46. package/src/comments/ui/commenteditor/commenteditor.d.ts +4 -4
  47. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  48. package/src/comments/ui/commenteditor/commenteditorui.d.ts +3 -3
  49. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +3 -3
  51. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  52. package/src/comments/ui/commentthreadcontroller.d.ts +4 -4
  53. package/src/comments/ui/commentthreadcontroller.js +1 -1
  54. package/src/comments/ui/view/basecommentthreadview.d.ts +8 -8
  55. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  56. package/src/comments/ui/view/basecommentview.d.ts +4 -4
  57. package/src/comments/ui/view/basecommentview.js +1 -1
  58. package/src/comments/ui/view/collapsedcommentsview.d.ts +2 -2
  59. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  60. package/src/comments/ui/view/commentcontentview.d.ts +2 -2
  61. package/src/comments/ui/view/commentcontentview.js +1 -1
  62. package/src/comments/ui/view/commentinputview.d.ts +4 -4
  63. package/src/comments/ui/view/commentinputview.js +1 -1
  64. package/src/comments/ui/view/commentsarchiveview.d.ts +3 -3
  65. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.d.ts +5 -5
  67. package/src/comments/ui/view/commentslistview.js +1 -1
  68. package/src/comments/ui/view/commentthreadheaderview.d.ts +3 -3
  69. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  70. package/src/comments/ui/view/commentthreadinputview.d.ts +5 -5
  71. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  72. package/src/comments/ui/view/commentthreadview.d.ts +7 -7
  73. package/src/comments/ui/view/commentthreadview.js +1 -1
  74. package/src/comments/ui/view/commentview.d.ts +8 -8
  75. package/src/comments/ui/view/commentview.js +1 -1
  76. package/src/comments.d.ts +10 -10
  77. package/src/comments.js +1 -1
  78. package/src/commentsonly.d.ts +2 -2
  79. package/src/commentsonly.js +1 -1
  80. package/src/config.d.ts +7 -7
  81. package/src/index.d.ts +21 -21
  82. package/src/index.js +1 -1
  83. package/src/utils/common-translations.d.ts +1 -1
  84. package/src/utils/common-translations.js +1 -1
  85. package/src/utils/createmutationobserver.js +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @module comments/integrations/importword
3
3
  */
4
- import { Plugin, type Editor } from 'ckeditor5/src/core';
4
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
5
5
  /**
6
6
  * Provides comments plugin integration for the import from Word feature.
7
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3897=['high','get','listenTo','collaboration_features','importWord','define','editor','afterInit','_handleImportedData','config','basic','plugins','importWord.commentsStyles'];(function(_0x42fa33,_0x389745){const _0x416bae=function(_0x516970){while(--_0x516970){_0x42fa33['push'](_0x42fa33['shift']());}};_0x416bae(++_0x389745);}(_0x3897,0x17d));const _0x416b=function(_0x42fa33,_0x389745){_0x42fa33=_0x42fa33-0x0;let _0x416bae=_0x3897[_0x42fa33];return _0x416bae;};import{Plugin as _0x2afc82}from'ckeditor5/src/core';import{priorities as _0x10332b}from'ckeditor5/src/utils';import{Users as _0x26f674}from'ckeditor5-collaboration/src/collaboration-core';import _0xb5e7b3 from'../commentsrepository';export default class ot extends _0x2afc82{constructor(_0x491c11){super(_0x491c11),this[_0x416b('0x2')][_0x416b('0x5')][_0x416b('0x1')](_0x416b('0x8'),_0x416b('0x6'));}[_0x416b('0x3')](){const _0x39bd74=this[_0x416b('0x2')],_0x46f1ba=_0x39bd74['commands'][_0x416b('0xa')]('importWord'),_0x3438c9=_0x39bd74['plugins'][_0x416b('0xa')](_0x26f674);_0x46f1ba&&(_0x46f1ba['on']('execute',(_0x4bb0c8,[,_0x567420])=>{_0x567420[_0x416b('0xc')]={'comments':!0x0,'user_id':_0x3438c9['me']['id'],'comments_styles':this[_0x416b('0x2')][_0x416b('0x5')][_0x416b('0xa')](_0x416b('0x8'))};},{'priority':_0x10332b[_0x416b('0x9')]+0xa}),this[_0x416b('0xb')](_0x46f1ba,'dataInsert',this[_0x416b('0x4')]));}['_handleImportedData'](_0x45d86a,_0x42001b){const {comment_threads:_0xd6a591}=_0x42001b;_0xd6a591&&_0xd6a591['forEach'](({thread_id:_0x43cf1c,comments:_0x468f65,is_resolved:_0x4f7931})=>{const _0x47b323=new Date(),_0x2911e9=_0x468f65['map'](({author:_0x236757,content:_0xb8c01a,created_at:_0x29b6ee})=>({'content':_0xb8c01a,'authorId':this[_0x416b('0x2')][_0x416b('0x7')][_0x416b('0xa')](_0x26f674)['me']['id'],'createdAt':_0x47b323,'attributes':{'@external':{'authorName':_0x236757,'createdAt':_0x29b6ee?new Date(_0x29b6ee):new Date(),'source':_0x416b('0x0')}}})),_0x912399=this[_0x416b('0x2')]['config'][_0x416b('0xa')]('collaboration.channelId');this['editor'][_0x416b('0x7')]['get'](_0xb5e7b3)['addCommentThread']({'channelId':_0x912399,'threadId':_0x43cf1c,'comments':_0x2911e9,'resolvedAt':_0x4f7931?_0x47b323:null});});}}
23
+ const _0x5999=['dataInsert','plugins','commands','basic','importWord.commentsStyles','editor','define','forEach','map','config','afterInit','_handleImportedData','get','high','importWord','addCommentThread'];(function(_0x4a22d0,_0x599962){const _0x6b139=function(_0x560e27){while(--_0x560e27){_0x4a22d0['push'](_0x4a22d0['shift']());}};_0x6b139(++_0x599962);}(_0x5999,0x19b));const _0x6b13=function(_0x4a22d0,_0x599962){_0x4a22d0=_0x4a22d0-0x0;let _0x6b139=_0x5999[_0x4a22d0];return _0x6b139;};import{Plugin as _0x170650}from'ckeditor5/src/core.js';import{priorities as _0x3d1d2d}from'ckeditor5/src/utils.js';import{Users as _0x26222c}from'ckeditor5-collaboration';import _0x5c5c12 from'../commentsrepository.js';export default class Y extends _0x170650{constructor(_0x5dfb97){super(_0x5dfb97),this[_0x6b13('0xa')][_0x6b13('0xe')][_0x6b13('0xb')](_0x6b13('0x9'),_0x6b13('0x8'));}[_0x6b13('0xf')](){const _0x4cd385=this['editor'],_0x2fc56b=_0x4cd385[_0x6b13('0x7')][_0x6b13('0x1')](_0x6b13('0x3')),_0x447760=_0x4cd385['plugins']['get'](_0x26222c);_0x2fc56b&&(_0x2fc56b['on']('execute',(_0x5369dc,[,_0x526caa])=>{_0x526caa['collaboration_features']={'comments':!0x0,'user_id':_0x447760['me']['id'],'comments_styles':this[_0x6b13('0xa')]['config']['get'](_0x6b13('0x9'))};},{'priority':_0x3d1d2d[_0x6b13('0x2')]+0xa}),this['listenTo'](_0x2fc56b,_0x6b13('0x5'),this[_0x6b13('0x0')]));}[_0x6b13('0x0')](_0x219eaf,_0x302828){const {comment_threads:_0x2e26b6}=_0x302828;_0x2e26b6&&_0x2e26b6[_0x6b13('0xc')](({thread_id:_0x511222,comments:_0xc3cc57,is_resolved:_0xb2fbdf})=>{const _0x55e87d=new Date(),_0xfdd44f=_0xc3cc57[_0x6b13('0xd')](({author:_0x5ac574,content:_0x1faa45,created_at:_0x41d867})=>({'content':_0x1faa45,'authorId':this['editor']['plugins'][_0x6b13('0x1')](_0x26222c)['me']['id'],'createdAt':_0x55e87d,'attributes':{'@external':{'authorName':_0x5ac574,'createdAt':_0x41d867?new Date(_0x41d867):new Date(),'source':_0x6b13('0x3')}}})),_0x350465=this[_0x6b13('0xa')][_0x6b13('0xe')]['get']('collaboration.channelId');this['editor'][_0x6b13('0x6')]['get'](_0x5c5c12)[_0x6b13('0x4')]({'channelId':_0x350465,'threadId':_0x511222,'comments':_0xfdd44f,'resolvedAt':_0xb2fbdf?_0x55e87d:null});});}}
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @module comments/comments/ui/commenteditor/commenteditor
3
3
  */
4
- import { Editor, type EditorConfig } from 'ckeditor5/src/core';
5
- import CommentEditorUI from './commenteditorui';
6
- import { type ViewElement } from 'ckeditor5/src/engine';
7
- declare const CommentEditor_base: import("ckeditor5/src/utils").Mixed<import("ckeditor5/src/utils").Mixed<typeof Editor, import("ckeditor5/src/core").DataApi>, import("ckeditor5/src/utils").Observable>;
4
+ import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
5
+ import CommentEditorUI from './commenteditorui.js';
6
+ import { type ViewElement } from 'ckeditor5/src/engine.js';
7
+ declare const CommentEditor_base: import("ckeditor5/src/utils.js").Mixed<import("ckeditor5/src/utils.js").Mixed<typeof Editor, import("ckeditor5/src/core.js").DataApi>, import("ckeditor5/src/utils.js").Observable>;
8
8
  export default class CommentEditor extends CommentEditor_base {
9
9
  static defaultPlugins: EditorConfig['plugins'];
10
10
  /**
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56dc=['fire','defaultPlugins','view','config','ready','name','initialData','document','low','childCount','plugins','create','placeholder','_updatePlaceholder','getRoot','editing','getChild','init','placeholderElement','createRoot','destroy','change','model','then','focus','set','data'];(function(_0x336385,_0x56dcdc){const _0x1ddf53=function(_0x46e2fb){while(--_0x46e2fb){_0x336385['push'](_0x336385['shift']());}};_0x1ddf53(++_0x56dcdc);}(_0x56dc,0x13c));const _0x1ddf=function(_0x336385,_0x56dcdc){_0x336385=_0x336385-0x0;let _0x1ddf53=_0x56dc[_0x336385];return _0x1ddf53;};import{Editor as _0x366570,DataApiMixin as _0x4d8859}from'ckeditor5/src/core';import _0x1f363e from'./commenteditorui';import{ObservableMixin as _0x16229e}from'ckeditor5/src/utils';import{enablePlaceholder as _0x4801b7,disablePlaceholder as _0x103968}from'ckeditor5/src/engine';import{Clipboard as _0x4861e2}from'ckeditor5/src/clipboard';import{Enter as _0x10cad3,ShiftEnter as _0xc94b5a}from'ckeditor5/src/enter';import{SelectAll as _0x3af960}from'ckeditor5/src/select-all';import{Typing as _0x291410}from'ckeditor5/src/typing';import{Undo as _0x341e6f}from'ckeditor5/src/undo';import{Paragraph as _0x50be9c}from'ckeditor5/src/paragraph';const Lt=[_0x4861e2,_0x10cad3,_0xc94b5a,_0x3af960,_0x291410,_0x341e6f,_0x50be9c];export default class Mt extends _0x16229e(_0x4d8859(_0x366570)){constructor(_0x160d32={}){(_0x160d32=Object['assign']({},_0x160d32))[_0x1ddf('0x12')]||(_0x160d32[_0x1ddf('0x12')]=Mt[_0x1ddf('0x9')]),super(_0x160d32),this['ui']=new _0x1f363e(this),this[_0x1ddf('0x6')](_0x1ddf('0x14'),''),this[_0x1ddf('0x3')][_0x1ddf('0xf')]['on'](_0x1ddf('0x2'),()=>this[_0x1ddf('0x15')](),{'priority':_0x1ddf('0x10')}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this[_0x1ddf('0x3')][_0x1ddf('0xf')][_0x1ddf('0x0')]();}[_0x1ddf('0x13')](){const _0x406800=this[_0x1ddf('0xb')]['get'](_0x1ddf('0xe'))||'';return this['initPlugins']()[_0x1ddf('0x4')](()=>this['ui'][_0x1ddf('0x19')]())['then'](()=>this[_0x1ddf('0x7')][_0x1ddf('0x19')](_0x406800))[_0x1ddf('0x4')](()=>this[_0x1ddf('0x8')](_0x1ddf('0xc')));}[_0x1ddf('0x1')](){return super[_0x1ddf('0x1')]()['then'](()=>this['ui'][_0x1ddf('0x1')]());}['focus'](){this[_0x1ddf('0x3')][_0x1ddf('0x2')](_0x1eda87=>{const _0x2e914f=this[_0x1ddf('0x3')][_0x1ddf('0xf')][_0x1ddf('0x16')](),_0x467695=_0x2e914f&&_0x2e914f[_0x1ddf('0x18')](_0x2e914f[_0x1ddf('0x11')]-0x1);_0x1eda87['setSelection'](_0x467695,'end'),this[_0x1ddf('0x17')][_0x1ddf('0xa')][_0x1ddf('0x5')]();});}[_0x1ddf('0x15')](){const _0x38cd03=this[_0x1ddf('0x17')]['view'],_0x2dea2d=_0x38cd03[_0x1ddf('0xf')]['getRoot'](),_0x21b07e=_0x2dea2d[_0x1ddf('0x18')](0x0);_0x2dea2d[_0x1ddf('0x11')]>0x1||!_0x21b07e||'p'!=_0x21b07e[_0x1ddf('0xd')]?this[_0x1ddf('0x1a')]&&(_0x103968(_0x38cd03,this[_0x1ddf('0x1a')]),this['placeholderElement']=void 0x0):(_0x4801b7({'view':_0x38cd03,'element':_0x21b07e,'text':this[_0x1ddf('0x14')],'keepOnFocus':!0x0}),this[_0x1ddf('0x1a')]=_0x21b07e);}}Mt[_0x1ddf('0x9')]=Lt;
23
+ const _0xf396=['document','setSelection','init','getChild','placeholder','then','create','model','initPlugins','createRoot','change:placeholder','plugins','change','config','low','editing','childCount','get','getRoot','data','set','destroy','view','_updatePlaceholder','ready','placeholderElement'];(function(_0x750897,_0xf39601){const _0x3bec46=function(_0x54375f){while(--_0x54375f){_0x750897['push'](_0x750897['shift']());}};_0x3bec46(++_0xf39601);}(_0xf396,0x82));const _0x3bec=function(_0x750897,_0xf39601){_0x750897=_0x750897-0x0;let _0x3bec46=_0xf396[_0x750897];return _0x3bec46;};import{Editor as _0x378fa9,DataApiMixin as _0x4244d6}from'ckeditor5/src/core.js';import _0x3cc1d6 from'./commenteditorui.js';import{ObservableMixin as _0x1ddf41}from'ckeditor5/src/utils.js';import{enablePlaceholder as _0x3973d2,disablePlaceholder as _0x12522c}from'ckeditor5/src/engine.js';import{Clipboard as _0x28d31a}from'ckeditor5/src/clipboard.js';import{Enter as _0x3d70aa,ShiftEnter as _0x58d4b5}from'ckeditor5/src/enter.js';import{SelectAll as _0x4859fb}from'ckeditor5/src/select-all.js';import{Typing as _0x3a36c5}from'ckeditor5/src/typing.js';import{Undo as _0x7d9d2f}from'ckeditor5/src/undo.js';import{Paragraph as _0xd22cbc}from'ckeditor5/src/paragraph.js';const Kt=[_0x28d31a,_0x3d70aa,_0x58d4b5,_0x4859fb,_0x3a36c5,_0x7d9d2f,_0xd22cbc];export default class Lt extends _0x1ddf41(_0x4244d6(_0x378fa9)){constructor(_0x2e174b={}){(_0x2e174b=Object['assign']({},_0x2e174b))[_0x3bec('0xb')]||(_0x2e174b[_0x3bec('0xb')]=Lt['defaultPlugins']),super(_0x2e174b),this['ui']=new _0x3cc1d6(this),this[_0x3bec('0x14')]('placeholder',''),this['model'][_0x3bec('0x0')]['on'](_0x3bec('0xc'),()=>this[_0x3bec('0x17')](),{'priority':_0x3bec('0xe')}),this['on'](_0x3bec('0xa'),()=>this[_0x3bec('0x17')]()),this[_0x3bec('0x7')]['document'][_0x3bec('0x9')]();}[_0x3bec('0x6')](){const _0x259f04=this[_0x3bec('0xd')][_0x3bec('0x11')]('initialData')||'';return this[_0x3bec('0x8')]()[_0x3bec('0x5')](()=>this['ui'][_0x3bec('0x2')]())[_0x3bec('0x5')](()=>this[_0x3bec('0x13')][_0x3bec('0x2')](_0x259f04))['then'](()=>this['fire'](_0x3bec('0x18')));}[_0x3bec('0x15')](){return super['destroy']()[_0x3bec('0x5')](()=>this['ui'][_0x3bec('0x15')]());}['focus'](){this['model'][_0x3bec('0xc')](_0x4cb21a=>{const _0x4a9c02=this['model'][_0x3bec('0x0')][_0x3bec('0x12')](),_0x6b919c=_0x4a9c02&&_0x4a9c02[_0x3bec('0x3')](_0x4a9c02[_0x3bec('0x10')]-0x1);_0x4cb21a[_0x3bec('0x1')](_0x6b919c,'end'),this[_0x3bec('0xf')][_0x3bec('0x16')]['focus']();});}[_0x3bec('0x17')](){const _0x51c49c=this['editing'][_0x3bec('0x16')],_0x172e0b=_0x51c49c[_0x3bec('0x0')][_0x3bec('0x12')](),_0x5694c2=_0x172e0b[_0x3bec('0x3')](0x0);_0x172e0b[_0x3bec('0x10')]>0x1||!_0x5694c2||'p'!=_0x5694c2['name']?this['placeholderElement']&&(_0x12522c(_0x51c49c,this[_0x3bec('0x19')]),this['placeholderElement']=void 0x0):(_0x3973d2({'view':_0x51c49c,'element':_0x5694c2,'text':this[_0x3bec('0x4')],'keepOnFocus':!0x0}),this[_0x3bec('0x19')]=_0x5694c2);}}Lt['defaultPlugins']=Kt;
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @module comments/comments/ui/commenteditor/commenteditorui
3
3
  */
4
- import { EditorUI } from 'ckeditor5/src/ui';
5
- import type { Editor } from 'ckeditor5/src/core';
6
- import CommentEditorUIView from './commenteditoruiview';
4
+ import { EditorUI } from 'ckeditor5/src/ui.js';
5
+ import type { Editor } from 'ckeditor5/src/core.js';
6
+ import CommentEditorUIView from './commenteditoruiview.js';
7
7
  export default class CommentEditorUI extends EditorUI {
8
8
  /**
9
9
  * The main (top–most) view of the editor UI.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5787=['document','element','ready','setEditableElement','attachDomRoot','getRoot','name','init','view','editor','isFocused','rootName','bind','fire','editing','editable','focusTracker','destroy'];(function(_0x29546f,_0x578714){const _0x19b043=function(_0x27134f){while(--_0x27134f){_0x29546f['push'](_0x29546f['shift']());}};_0x19b043(++_0x578714);}(_0x5787,0x111));const _0x19b0=function(_0x29546f,_0x578714){_0x29546f=_0x29546f-0x0;let _0x19b043=_0x5787[_0x29546f];return _0x19b043;};import{EditorUI as _0x58cd81}from'ckeditor5/src/ui';import _0xe436f7 from'./commenteditoruiview';export default class Ft extends _0x58cd81{constructor(_0x460f41){super(_0x460f41),this['view']=new _0xe436f7(_0x460f41['locale'],_0x460f41[_0x19b0('0xb')]['view']);}get[_0x19b0('0x10')](){return this['view'][_0x19b0('0x10')];}[_0x19b0('0x4')](){const _0x578ebb=this[_0x19b0('0x6')][_0x19b0('0xb')]['view'],_0x22ffec=this[_0x19b0('0x5')]['editable'],_0x32d7bc=_0x578ebb[_0x19b0('0xf')][_0x19b0('0x2')]();_0x22ffec['name']=_0x32d7bc[_0x19b0('0x8')],this[_0x19b0('0x5')]['render']();const _0x3d9b54=_0x22ffec[_0x19b0('0x10')];this[_0x19b0('0x0')](_0x22ffec[_0x19b0('0x3')],_0x3d9b54),this['view'][_0x19b0('0xc')][_0x19b0('0x9')](_0x19b0('0x7'))['to'](this[_0x19b0('0xd')]),_0x578ebb[_0x19b0('0x1')](_0x3d9b54),this[_0x19b0('0xa')](_0x19b0('0x11'));}['destroy'](){super[_0x19b0('0xe')](),this[_0x19b0('0x5')]['destroy']();}}
23
+ const _0x4da2=['document','name','isFocused','render','setEditableElement','rootName','bind','ready','editable','focusTracker','fire','editing','element','editor','view','destroy'];(function(_0x5e3152,_0x4da292){const _0x49631b=function(_0x2ad222){while(--_0x2ad222){_0x5e3152['push'](_0x5e3152['shift']());}};_0x49631b(++_0x4da292);}(_0x4da2,0x1f0));const _0x4963=function(_0x5e3152,_0x4da292){_0x5e3152=_0x5e3152-0x0;let _0x49631b=_0x4da2[_0x5e3152];return _0x49631b;};import{EditorUI as _0x47507a}from'ckeditor5/src/ui.js';import _0x187bca from'./commenteditoruiview.js';export default class Ft extends _0x47507a{constructor(_0xefc2ce){super(_0xefc2ce),this['view']=new _0x187bca(_0xefc2ce['locale'],_0xefc2ce[_0x4963('0xb')][_0x4963('0xe')]);}get[_0x4963('0xc')](){return this[_0x4963('0xe')]['element'];}['init'](){const _0x18a71f=this[_0x4963('0xd')][_0x4963('0xb')][_0x4963('0xe')],_0x39b0cd=this['view'][_0x4963('0x8')],_0x358845=_0x18a71f[_0x4963('0x0')]['getRoot']();_0x39b0cd[_0x4963('0x1')]=_0x358845[_0x4963('0x5')],this[_0x4963('0xe')][_0x4963('0x3')]();const _0x5ef505=_0x39b0cd[_0x4963('0xc')];this[_0x4963('0x4')](_0x39b0cd[_0x4963('0x1')],_0x5ef505),this[_0x4963('0xe')][_0x4963('0x8')][_0x4963('0x6')](_0x4963('0x2'))['to'](this[_0x4963('0x9')]),_0x18a71f['attachDomRoot'](_0x5ef505),this[_0x4963('0xa')](_0x4963('0x7'));}[_0x4963('0xf')](){super[_0x4963('0xf')](),this['view'][_0x4963('0xf')]();}}
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @module comments/comments/ui/commenteditor/commenteditoruiview
3
3
  */
4
- import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui';
5
- import { type Locale } from 'ckeditor5/src/utils';
6
- import type { View } from 'ckeditor5/src/engine';
4
+ import { InlineEditableUIView, EditorUIView, type ViewCollection } from 'ckeditor5/src/ui.js';
5
+ import { type Locale } from 'ckeditor5/src/utils.js';
6
+ import type { View } from 'ckeditor5/src/engine.js';
7
7
  export default class CommentEditorUIView extends EditorUIView {
8
8
  /**
9
9
  * Collection of the child views located in the main (`.ck-editor__main`)
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e85=['ck-rounded-corners','uiLanguage','editable','ck-editor','setTemplate','ck-comment__input','ck-reset','ck-voice-label','ck-editor__main','Comment\x20editor','cke-editor__aria-label_','text','_createVoiceLabel','ck-editor__aria-label_','presentation','comment','render','uiLanguageDirection','div','extendTemplate','focus','main','add','element'];(function(_0x49a7d5,_0x1e85cb){const _0x5f2a64=function(_0x16c08f){while(--_0x16c08f){_0x49a7d5['push'](_0x49a7d5['shift']());}};_0x5f2a64(++_0x1e85cb);}(_0x1e85,0x199));const _0x5f2a=function(_0x49a7d5,_0x1e85cb){_0x49a7d5=_0x49a7d5-0x0;let _0x5f2a64=_0x1e85[_0x49a7d5];return _0x5f2a64;};import{InlineEditableUIView as _0x39a42d,EditorUIView as _0x90fd19,LabelView as _0x7b2cc9}from'ckeditor5/src/ui';import{uid as _0x35ff35}from'ckeditor5/src/utils';import{getTranslation as _0x3a8415}from'../../../utils/common-translations';export default class Qt extends _0x90fd19{constructor(_0x1fd25c,_0x21e332){super(_0x1fd25c);const _0x586f4b=_0x35ff35();this['main']=this['createCollection'](),this[_0x5f2a('0x1')]=new _0x39a42d(_0x1fd25c,_0x21e332),this['_voiceLabelView']=this[_0x5f2a('0xb')](_0x586f4b,_0x1fd25c),this[_0x5f2a('0x3')]({'tag':_0x5f2a('0x11'),'attributes':{'class':[_0x5f2a('0x5'),_0x5f2a('0x2'),_0x5f2a('0x17'),_0x5f2a('0x4')],'role':_0x5f2a('0xe'),'dir':_0x1fd25c[_0x5f2a('0x10')],'lang':_0x1fd25c[_0x5f2a('0x0')],'aria-labelledby':_0x5f2a('0x9')+_0x586f4b},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':_0x5f2a('0x7'),'role':_0x5f2a('0xd')},'children':this[_0x5f2a('0x14')]}]});}[_0x5f2a('0xf')](){super[_0x5f2a('0xf')](),this[_0x5f2a('0x14')][_0x5f2a('0x15')](this[_0x5f2a('0x1')]);}[_0x5f2a('0x13')](){this[_0x5f2a('0x1')][_0x5f2a('0x16')][_0x5f2a('0x13')]();}[_0x5f2a('0xb')](_0xc57d95,_0x275a27){const _0x3e9d81=new _0x7b2cc9();return _0x3e9d81[_0x5f2a('0xa')]=_0x3a8415(_0x275a27,_0x5f2a('0x8')),_0x3e9d81[_0x5f2a('0x12')]({'attributes':{'id':_0x5f2a('0xc')+_0xc57d95,'class':_0x5f2a('0x6')}}),_0x3e9d81;}}
23
+ const _0x3fcd=['text','_voiceLabelView','ck-rounded-corners','ck-voice-label','focus','cke-editor__aria-label_','extendTemplate','element','div','ck-editor__main','comment','ck-comment__input','ck-editor__aria-label_','createCollection','editable','ck-reset','ck-editor','main','render','uiLanguage','Comment\x20editor','_createVoiceLabel'];(function(_0x5e4efd,_0x3fcd75){const _0x40dfab=function(_0x4cc4d9){while(--_0x4cc4d9){_0x5e4efd['push'](_0x5e4efd['shift']());}};_0x40dfab(++_0x3fcd75);}(_0x3fcd,0x1f0));const _0x40df=function(_0x5e4efd,_0x3fcd75){_0x5e4efd=_0x5e4efd-0x0;let _0x40dfab=_0x3fcd[_0x5e4efd];return _0x40dfab;};import{InlineEditableUIView as _0x59d270,EditorUIView as _0x51e2f4,LabelView as _0x3486fc}from'ckeditor5/src/ui.js';import{uid as _0x26f9b6}from'ckeditor5/src/utils.js';import{getTranslation as _0x1e094b}from'../../../utils/common-translations.js';export default class Nt extends _0x51e2f4{constructor(_0x3a783c,_0x3962a9){super(_0x3a783c);const _0x52b4ab=_0x26f9b6();this['main']=this[_0x40df('0x1')](),this[_0x40df('0x2')]=new _0x59d270(_0x3a783c,_0x3962a9),this['_voiceLabelView']=this[_0x40df('0x9')](_0x52b4ab,_0x3a783c),this['setTemplate']({'tag':_0x40df('0x12'),'attributes':{'class':[_0x40df('0x3'),_0x40df('0x4'),_0x40df('0xc'),_0x40df('0x15')],'role':_0x40df('0x14'),'dir':_0x3a783c['uiLanguageDirection'],'lang':_0x3a783c[_0x40df('0x7')],'aria-labelledby':_0x40df('0xf')+_0x52b4ab},'children':[this[_0x40df('0xb')],{'tag':_0x40df('0x12'),'attributes':{'class':_0x40df('0x13'),'role':'presentation'},'children':this[_0x40df('0x5')]}]});}[_0x40df('0x6')](){super[_0x40df('0x6')](),this[_0x40df('0x5')]['add'](this[_0x40df('0x2')]);}['focus'](){this['editable'][_0x40df('0x11')][_0x40df('0xe')]();}[_0x40df('0x9')](_0x285e1e,_0x34a7ea){const _0x27477d=new _0x3486fc();return _0x27477d[_0x40df('0xa')]=_0x1e094b(_0x34a7ea,_0x40df('0x8')),_0x27477d[_0x40df('0x10')]({'attributes':{'id':_0x40df('0x0')+_0x285e1e,'class':_0x40df('0xd')}}),_0x27477d;}}
@@ -2,11 +2,11 @@
2
2
  * @module comments/comments/ui/commentthreadcontroller
3
3
  * @publicApi
4
4
  */
5
- import type { CommentThread } from '../commentsrepository';
6
- import type { default as BaseCommentThreadView } from './view/basecommentthreadview';
5
+ import type { CommentThread } from '../commentsrepository.js';
6
+ import type { default as BaseCommentThreadView } from './view/basecommentthreadview.js';
7
7
  declare const CommentThreadController_base: {
8
- new (): import("ckeditor5/src/utils").Observable;
9
- prototype: import("ckeditor5/src/utils").Observable;
8
+ new (): import("ckeditor5/src/utils.js").Observable;
9
+ prototype: import("ckeditor5/src/utils.js").Observable;
10
10
  };
11
11
  /**
12
12
  * Controller for a comment thread.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3eaf=['submit','submitCommentThread','addComment','view','updateComment','remove','removeCommentThread','reopen','getComment','stopListening','reopenCommentThread','_isAttached','removeComment','isResolved','resolve','model','listenTo','resolveCommentThread','_localUser'];(function(_0x52ffa3,_0x3eaff3){var _0x3944a6=function(_0x104e3c){while(--_0x104e3c){_0x52ffa3['push'](_0x52ffa3['shift']());}};_0x3944a6(++_0x3eaff3);}(_0x3eaf,0x1c0));var _0x3944=function(_0x52ffa3,_0x3eaff3){_0x52ffa3=_0x52ffa3-0x0;var _0x3944a6=_0x3eaf[_0x52ffa3];return _0x3944a6;};import{ObservableMixin as _0xc04f5b}from'ckeditor5/src/utils';export default class ut extends _0xc04f5b(){constructor(_0x43e87d,_0x212afb){super(),this[_0x3944('0x4')]=_0x43e87d,this['model']['_isAttached']=!0x0,this[_0x3944('0xb')]=_0x212afb,this[_0x3944('0x5')](_0x212afb,_0x3944('0x9'),()=>this[_0x3944('0x8')]()),this[_0x3944('0x5')](_0x212afb,_0x3944('0xe'),()=>this[_0x3944('0xd')]()),this[_0x3944('0x5')](_0x212afb,_0x3944('0x6'),()=>this['resolve']()),this[_0x3944('0x5')](_0x212afb,_0x3944('0x12'),()=>this[_0x3944('0xf')]()),this[_0x3944('0x5')](_0x212afb,_0x3944('0xa'),(_0x354497,_0x435ea0)=>this[_0x3944('0xa')](_0x435ea0)),this[_0x3944('0x5')](_0x212afb,_0x3944('0xc'),(_0x33d0ec,_0x385f39,_0x474983)=>this['updateComment'](_0x385f39,_0x474983)),this[_0x3944('0x5')](_0x212afb,_0x3944('0x1'),(_0x13ef65,_0x5511c3)=>this['removeComment'](_0x5511c3));}[_0x3944('0x8')](){this[_0x3944('0x4')]['submit']();}[_0x3944('0xd')](){this[_0x3944('0x4')][_0x3944('0xd')]();}[_0x3944('0x3')](){this[_0x3944('0x4')][_0x3944('0x2')]||this[_0x3944('0x4')][_0x3944('0x3')]();}[_0x3944('0xf')](){this[_0x3944('0x4')]['isResolved']&&this[_0x3944('0x4')][_0x3944('0xf')]();}['addComment'](_0x4bfd7f){this[_0x3944('0x4')][_0x3944('0xa')]({'content':_0x4bfd7f,'authorId':this[_0x3944('0xb')][_0x3944('0x7')]['id']});}[_0x3944('0xc')](_0x1c7975,_0xcbaacd){this[_0x3944('0x4')][_0x3944('0x10')](_0x1c7975)['update']({'content':_0xcbaacd});}[_0x3944('0x1')](_0x4a2b3b){this['model'][_0x3944('0x10')](_0x4a2b3b)[_0x3944('0xd')]();}['destroy'](){this[_0x3944('0x11')](),this[_0x3944('0x4')][_0x3944('0x0')]=!0x1;}}
23
+ var _0x47aa=['resolve','getComment','stopListening','_localUser','view','removeComment','resolveCommentThread','update','submit','submitCommentThread','destroy','remove','isResolved','model','updateComment','addComment','_isAttached','listenTo','reopen'];(function(_0x43f787,_0x47aa80){var _0x4d709f=function(_0x3dead4){while(--_0x3dead4){_0x43f787['push'](_0x43f787['shift']());}};_0x4d709f(++_0x47aa80);}(_0x47aa,0x181));var _0x4d70=function(_0x43f787,_0x47aa80){_0x43f787=_0x43f787-0x0;var _0x4d709f=_0x47aa[_0x43f787];return _0x4d709f;};import{ObservableMixin as _0xc6ead2}from'ckeditor5/src/utils.js';export default class ct extends _0xc6ead2(){constructor(_0xc3f89f,_0x36b1cd){super(),this['model']=_0xc3f89f,this['model'][_0x4d70('0xb')]=!0x0,this[_0x4d70('0x12')]=_0x36b1cd,this[_0x4d70('0xc')](_0x36b1cd,_0x4d70('0x4'),()=>this[_0x4d70('0x3')]()),this[_0x4d70('0xc')](_0x36b1cd,'removeCommentThread',()=>this['remove']()),this[_0x4d70('0xc')](_0x36b1cd,_0x4d70('0x1'),()=>this['resolve']()),this[_0x4d70('0xc')](_0x36b1cd,'reopenCommentThread',()=>this[_0x4d70('0xd')]()),this[_0x4d70('0xc')](_0x36b1cd,_0x4d70('0xa'),(_0x59f24a,_0x1f097a)=>this[_0x4d70('0xa')](_0x1f097a)),this['listenTo'](_0x36b1cd,_0x4d70('0x9'),(_0x38e410,_0x113a47,_0x1f6107)=>this[_0x4d70('0x9')](_0x113a47,_0x1f6107)),this[_0x4d70('0xc')](_0x36b1cd,'removeComment',(_0x1df7b9,_0x1b23a6)=>this['removeComment'](_0x1b23a6));}[_0x4d70('0x3')](){this['model'][_0x4d70('0x3')]();}[_0x4d70('0x6')](){this[_0x4d70('0x8')]['remove']();}[_0x4d70('0xe')](){this['model'][_0x4d70('0x7')]||this[_0x4d70('0x8')][_0x4d70('0xe')]();}['reopen'](){this[_0x4d70('0x8')]['isResolved']&&this['model'][_0x4d70('0xd')]();}[_0x4d70('0xa')](_0x3ebe4e){this[_0x4d70('0x8')][_0x4d70('0xa')]({'content':_0x3ebe4e,'authorId':this[_0x4d70('0x12')][_0x4d70('0x11')]['id']});}[_0x4d70('0x9')](_0x402720,_0x263882){this[_0x4d70('0x8')][_0x4d70('0xf')](_0x402720)[_0x4d70('0x2')]({'content':_0x263882});}[_0x4d70('0x0')](_0xe38619){this[_0x4d70('0x8')][_0x4d70('0xf')](_0xe38619)[_0x4d70('0x6')]();}[_0x4d70('0x5')](){this[_0x4d70('0x10')](),this[_0x4d70('0x8')][_0x4d70('0xb')]=!0x1;}}
@@ -2,14 +2,14 @@
2
2
  * @module comments/comments/ui/view/basecommentthreadview
3
3
  * @publicApi
4
4
  */
5
- import { View } from 'ckeditor5/src/ui';
6
- import type { Locale } from 'ckeditor5/src/utils';
7
- import CommentThreadInputView from './commentthreadinputview';
8
- import CommentsListView from './commentslistview';
9
- import CommentThreadHeaderView from './commentthreadheaderview';
10
- import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
11
- import type { CommentThread } from '../../commentsrepository';
12
- import type { CommentThreadConfig } from '../../../config';
5
+ import { View } from 'ckeditor5/src/ui.js';
6
+ import type { Locale } from 'ckeditor5/src/utils.js';
7
+ import CommentThreadInputView from './commentthreadinputview.js';
8
+ import CommentsListView from './commentslistview.js';
9
+ import CommentThreadHeaderView from './commentthreadheaderview.js';
10
+ import type { User } from 'ckeditor5-collaboration';
11
+ import type { CommentThread } from '../../commentsrepository.js';
12
+ import type { CommentThreadConfig } from '../../../config.js';
13
13
  /**
14
14
  * An abstract comment thread view class that should be used as a base for comment thread view implementations.
15
15
  * It provides some behaviors, flags and building blocks to use when creating a custom comment thread view class.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5014=['submitLabel','isDirty','Reply','isActive','reopenCommentThread','disabledSubmit','commentThreadHeaderView','submitCommentThread','Write\x20a\x20comment...','Reply\x20to\x20reopen\x20discussion...','_localUser','destroy','element','bind','isResolved','fire','length','_config','value','commentsListView','_model','CommentView','assign','set','updateComment','isReadOnly','delegate','commentInputView','removeCommentThread','change:isActive','submit','commentThreadInputView','isResolvable','_createCommentThreadInputView','focus','editorConfig','showInput','hasDirtyComment','stop','cancel','addComment','removeComment','locale','placeholder'];(function(_0x51cc00,_0x5014b3){const _0x504a9c=function(_0x2933e9){while(--_0x2933e9){_0x51cc00['push'](_0x51cc00['shift']());}};_0x504a9c(++_0x5014b3);}(_0x5014,0x1bb));const _0x504a=function(_0x51cc00,_0x5014b3){_0x51cc00=_0x51cc00-0x0;let _0x504a9c=_0x5014[_0x51cc00];return _0x504a9c;};import{View as _0x55d476}from'ckeditor5/src/ui';import _0x190141 from'./commentthreadinputview';import _0x314e75 from'./commentslistview';import _0x5ebec3 from'./commentthreadheaderview';import{getTranslation as _0x2dddbe}from'../../../utils/common-translations';export default class St extends _0x55d476{constructor(_0x5d7bfc,_0x473b4f,_0x1292b0,_0x3c614c){super(_0x5d7bfc),this[_0x504a('0x14')]('isActive',!0x1),this[_0x504a('0x14')](_0x504a('0x2a'),!0x1),this[_0x504a('0x11')]=_0x473b4f,this[_0x504a('0x7')]=_0x1292b0,this[_0x504a('0xe')]=_0x3c614c,this['commentThreadHeaderView']=new _0x5ebec3(_0x5d7bfc,_0x473b4f),this[_0x504a('0x3')][_0x504a('0x17')]('reopenCommentThread')['to'](this),this[_0x504a('0x10')]=new _0x314e75(_0x5d7bfc,_0x473b4f,Object[_0x504a('0x13')]({'CommentView':this[_0x504a('0xe')][_0x504a('0x12')]},_0x3c614c)),this['commentsListView'][_0x504a('0x17')](_0x504a('0x26'))['to'](this),this[_0x504a('0x10')][_0x504a('0x17')](_0x504a('0x15'))['to'](this),this['commentsListView'][_0x504a('0x17')]('resolveCommentThread')['to'](this),this['commentsListView'][_0x504a('0xa')](_0x504a('0x0'))['to'](this),this[_0x504a('0x14')](_0x504a('0xd'),this[_0x504a('0x10')][_0x504a('0xd')]),this[_0x504a('0xa')](_0x504a('0xd'))['to'](this[_0x504a('0x10')],_0x504a('0xd')),this[_0x504a('0x1c')]=this[_0x504a('0x1e')](),this['on'](_0x504a('0x26'),()=>this[_0x504a('0x1f')]()),this['bind'](_0x504a('0x2a'))['to'](this[_0x504a('0x10')],_0x504a('0x22'),this[_0x504a('0x1c')][_0x504a('0x18')],_0x504a('0xf'),(_0x544064,_0x26c8b0)=>_0x544064||!!_0x26c8b0);}['focus'](){this[_0x504a('0x9')][_0x504a('0x1f')]();}['destroy'](){this[_0x504a('0x2a')]=!0x1,this[_0x504a('0x10')]['destroy'](),this[_0x504a('0x1c')]['destroy'](),super[_0x504a('0x8')]();}[_0x504a('0x1e')](){const _0x3c0e68=new _0x190141(this[_0x504a('0x27')],this[_0x504a('0x7')],this[_0x504a('0xe')][_0x504a('0x20')]),_0x23caa6=_0x3c0e68[_0x504a('0x18')];return _0x3c0e68[_0x504a('0xa')](_0x504a('0x21'))['to'](this,_0x504a('0x0'),this[_0x504a('0x11')],_0x504a('0x16'),this[_0x504a('0x11')],_0x504a('0xb'),_0x23caa6,'value',(_0x5e12a2,_0x59b461,_0x53b1d0,_0x531c2a)=>!!_0x531c2a||_0x53b1d0&&!_0x59b461||_0x5e12a2&&!_0x59b461),_0x23caa6[_0x504a('0xa')](_0x504a('0x28'))['to'](this,'length',this[_0x504a('0x11')],_0x504a('0x1d'),this[_0x504a('0x11')],_0x504a('0xb'),(_0x265c68,_0x1d67e1,_0x33ff04)=>{let _0x51b8ce;return _0x51b8ce=_0x33ff04&&_0x1d67e1?_0x504a('0x6'):_0x265c68?'Reply...':_0x504a('0x5'),_0x2dddbe(this['locale'],_0x51b8ce);}),_0x23caa6[_0x504a('0xa')](_0x504a('0x29'))['to'](this,_0x504a('0xd'),_0x7eb7b8=>_0x2dddbe(this[_0x504a('0x27')],_0x7eb7b8?_0x504a('0x2b'):'Comment')),_0x23caa6['on'](_0x504a('0x1b'),(_0x16a05f,_0x2a4f95)=>{this['fire'](_0x504a('0x25'),_0x2a4f95),this[_0x504a('0x11')][_0x504a('0xb')]&&this['_model'][_0x504a('0x1d')]&&this[_0x504a('0xc')](_0x504a('0x1'),this['_model']['id']),this['_model']['isSubmitted']||this[_0x504a('0xc')](_0x504a('0x4'));}),_0x23caa6['on'](_0x504a('0x24'),()=>{this[_0x504a('0x1f')]();}),_0x23caa6[_0x504a('0xa')](_0x504a('0x2'))['to'](this[_0x504a('0x11')],_0x504a('0x16')),_0x23caa6['on'](_0x504a('0x24'),_0x519752=>{0x0==this['length']&&(this[_0x504a('0xc')]('removeCommentThread'),_0x519752[_0x504a('0x23')]());}),this['on'](_0x504a('0x1a'),(_0x287d81,_0x219d22,_0x594126)=>{_0x594126||this[_0x504a('0xd')]||_0x23caa6[_0x504a('0xf')]||this[_0x504a('0xc')](_0x504a('0x19'));}),_0x3c0e68;}}
23
+ const _0x7f08=['assign','Reply...','cancel','showInput','submit','isDirty','removeCommentThread','updateComment','hasDirtyComment','placeholder','commentThreadInputView','isResolved','focus','isActive','addComment','_createCommentThreadInputView','set','delegate','Reply','fire','bind','commentThreadHeaderView','Comment','_localUser','isReadOnly','length','isResolvable','editorConfig','CommentView','removeComment','_model','editorReady','isSubmitted','locale','destroy','disabledSubmit','value','stop','commentInputView','commentsListView','_config','reopenCommentThread','editorDestroyed'];(function(_0x286dd8,_0x7f08c7){const _0x60821d=function(_0x56fc0e){while(--_0x56fc0e){_0x286dd8['push'](_0x286dd8['shift']());}};_0x60821d(++_0x7f08c7);}(_0x7f08,0x10d));const _0x6082=function(_0x286dd8,_0x7f08c7){_0x286dd8=_0x286dd8-0x0;let _0x60821d=_0x7f08[_0x286dd8];return _0x60821d;};import{View as _0x43363f}from'ckeditor5/src/ui.js';import _0x4851bb from'./commentthreadinputview.js';import _0x159d60 from'./commentslistview.js';import _0x17b2a4 from'./commentthreadheaderview.js';import{getTranslation as _0x5c351a}from'../../../utils/common-translations.js';export default class Tt extends _0x43363f{constructor(_0x26cf1d,_0x3696f6,_0x5e3847,_0x3c39e9){super(_0x26cf1d),this[_0x6082('0x5')]('isActive',!0x1),this[_0x6082('0x5')](_0x6082('0x25'),!0x1),this[_0x6082('0x13')]=_0x3696f6,this[_0x6082('0xc')]=_0x5e3847,this['_config']=_0x3c39e9,this[_0x6082('0xa')]=new _0x17b2a4(_0x26cf1d,_0x3696f6),this['commentThreadHeaderView'][_0x6082('0x6')](_0x6082('0x1e'))['to'](this),this['commentsListView']=new _0x159d60(_0x26cf1d,_0x3696f6,Object[_0x6082('0x20')]({'CommentView':this[_0x6082('0x1d')][_0x6082('0x11')]},_0x3c39e9)),this[_0x6082('0x1c')][_0x6082('0x6')](_0x6082('0x12'))['to'](this),this['commentsListView']['delegate'](_0x6082('0x27'))['to'](this),this[_0x6082('0x1c')][_0x6082('0x6')]('resolveCommentThread')['to'](this),this[_0x6082('0x1c')][_0x6082('0x6')](_0x6082('0x14'))['to'](this),this[_0x6082('0x1c')][_0x6082('0x6')](_0x6082('0x1f'))['to'](this),this[_0x6082('0x1c')][_0x6082('0x9')](_0x6082('0x2'))['to'](this),this['set'](_0x6082('0xe'),this['commentsListView'][_0x6082('0xe')]),this[_0x6082('0x9')](_0x6082('0xe'))['to'](this[_0x6082('0x1c')],_0x6082('0xe')),this[_0x6082('0x2a')]=this['_createCommentThreadInputView'](),this['commentThreadInputView'][_0x6082('0x6')](_0x6082('0x14'))['to'](this),this[_0x6082('0x2a')][_0x6082('0x6')](_0x6082('0x1f'))['to'](this),this['on'](_0x6082('0x12'),()=>this[_0x6082('0x1')]()),this[_0x6082('0x9')](_0x6082('0x25'))['to'](this[_0x6082('0x1c')],_0x6082('0x28'),this['commentThreadInputView']['commentInputView'],_0x6082('0x19'),(_0x3b0e22,_0x5a3af2)=>_0x3b0e22||!!_0x5a3af2);}[_0x6082('0x1')](){this['element'][_0x6082('0x1')]();}['destroy'](){this[_0x6082('0x25')]=!0x1,this[_0x6082('0x1c')]['destroy'](),this[_0x6082('0x2a')][_0x6082('0x17')](),super[_0x6082('0x17')]();}[_0x6082('0x4')](){const _0x174838=new _0x4851bb(this['locale'],this[_0x6082('0xc')],this[_0x6082('0x1d')][_0x6082('0x10')]),_0x28e2fa=_0x174838[_0x6082('0x1b')];return _0x174838['bind'](_0x6082('0x23'))['to'](this,_0x6082('0x2'),this['_model'],_0x6082('0xd'),this[_0x6082('0x13')],_0x6082('0x0'),_0x28e2fa,_0x6082('0x19'),(_0x555cc5,_0x353c30,_0xfe2883,_0x476473)=>!!_0x476473||_0xfe2883&&!_0x353c30||_0x555cc5&&!_0x353c30),_0x28e2fa['bind'](_0x6082('0x29'))['to'](this,'length',this['_model'],_0x6082('0xf'),this[_0x6082('0x13')],_0x6082('0x0'),(_0x9051da,_0xd461ac,_0x4e6e7a)=>{let _0x34060e;return _0x34060e=_0x4e6e7a&&_0xd461ac?'Reply\x20to\x20reopen\x20discussion...':_0x9051da?_0x6082('0x21'):'Write\x20a\x20comment...',_0x5c351a(this[_0x6082('0x16')],_0x34060e);}),_0x28e2fa[_0x6082('0x9')]('submitLabel')['to'](this,'length',_0x523cf5=>_0x5c351a(this['locale'],_0x523cf5?_0x6082('0x7'):_0x6082('0xb'))),_0x28e2fa['on'](_0x6082('0x24'),(_0x294fdb,_0x402f3d)=>{this['fire'](_0x6082('0x3'),_0x402f3d),this['_model']['isResolved']&&this[_0x6082('0x13')]['isResolvable']&&this[_0x6082('0x8')](_0x6082('0x1e'),this[_0x6082('0x13')]['id']),this['_model'][_0x6082('0x15')]||this[_0x6082('0x8')]('submitCommentThread');}),_0x28e2fa['on'](_0x6082('0x22'),()=>{this[_0x6082('0x1')]();}),_0x28e2fa[_0x6082('0x9')](_0x6082('0x18'))['to'](this[_0x6082('0x13')],_0x6082('0xd')),_0x28e2fa['on'](_0x6082('0x22'),_0x547797=>{0x0==this[_0x6082('0xe')]&&(this['fire'](_0x6082('0x26')),_0x547797[_0x6082('0x1a')]());}),this['on']('change:isActive',(_0x21d6cd,_0x68ff79,_0x4f215e)=>{_0x4f215e||this['length']||_0x28e2fa[_0x6082('0x19')]||this[_0x6082('0x8')](_0x6082('0x26'));}),_0x174838;}}
@@ -2,10 +2,10 @@
2
2
  * @module comments/comments/ui/view/basecommentview
3
3
  * @publicApi
4
4
  */
5
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
6
- import type { Locale } from 'ckeditor5/src/utils';
7
- import type { Comment } from '../../commentsrepository';
8
- import type { CommentViewConfig } from '../../../config';
5
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
6
+ import type { Locale } from 'ckeditor5/src/utils.js';
7
+ import type { Comment } from '../../commentsrepository.js';
8
+ import type { CommentViewConfig } from '../../../config.js';
9
9
  /**
10
10
  * An abstract comment view class that should be used as a base for comment view implementations.
11
11
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x367e=['updateComment','Save','isSystemComment','submit','visibleView','editorConfig','_model','isReadOnly','destroy','fire','_createCommentInputView','_config','cancel','createEditor','add','maxCommentCharsWhenCollapsed','disabledSubmit','bind','initialData','remove','isEditMode','_createCommentContentView','focus','expand','content','isCollapsed','locale','element','createCollection','set','switchToDisplayMode','value','get'];(function(_0x18e084,_0x367ee7){const _0x13a1d7=function(_0x3904e7){while(--_0x3904e7){_0x18e084['push'](_0x18e084['shift']());}};_0x13a1d7(++_0x367ee7);}(_0x367e,0xcc));const _0x13a1=function(_0x18e084,_0x367ee7){_0x18e084=_0x18e084-0x0;let _0x13a1d7=_0x367e[_0x18e084];return _0x13a1d7;};import{View as _0x15857c}from'ckeditor5/src/ui';import{trimHtml as _0x4f3519}from'ckeditor5-collaboration/src/collaboration-core';import _0x27f84a from'./commentcontentview';import _0xb1647 from'./commentinputview';import{getTranslation as _0x5a6982}from'../../../utils/common-translations';export default class Zt extends _0x15857c{constructor(_0x9e72ca,_0x43b393,_0x1c98fc){super(_0x9e72ca),this[_0x13a1('0x0')]=_0x43b393,this[_0x13a1('0x5')]=_0x1c98fc,this[_0x13a1('0x1d')]=!!this['_config']['isSystemComment'],this['set'](_0x13a1('0xe'),!0x1),this[_0x13a1('0x17')](_0x13a1('0x13'),!0x0),this[_0x13a1('0x1f')]=this[_0x13a1('0x16')](),this[_0x13a1('0x1f')][_0x13a1('0x8')](this['_createCommentContentView']());}[_0x13a1('0x11')](){this[_0x13a1('0x13')]=!0x1;}['collapse'](){this[_0x13a1('0xe')]||(this['isCollapsed']=!0x0);}[_0x13a1('0x10')](){this[_0x13a1('0x15')][_0x13a1('0x10')]();}async[_0x13a1('0x2')](){await this[_0x13a1('0x1f')][_0x13a1('0x1a')](0x0)[_0x13a1('0x2')](),super[_0x13a1('0x2')]();}['switchToEditMode'](){this['isEditMode']||(this[_0x13a1('0xe')]=!0x0,this['visibleView'][_0x13a1('0xd')](0x0)[_0x13a1('0x2')](),this['visibleView']['add'](this[_0x13a1('0x4')]()));}[_0x13a1('0x18')](){this['isEditMode']&&(this['isEditMode']=!0x1,this[_0x13a1('0x1f')][_0x13a1('0xd')](0x0)[_0x13a1('0x2')](),this['visibleView']['add'](this[_0x13a1('0xf')]()));}['_createCommentContentView'](){const _0x32a48b=new _0x27f84a(this[_0x13a1('0x14')]);return _0x32a48b[_0x13a1('0xb')](_0x13a1('0x12'))['to'](this['_model'],'content',this,_0x13a1('0x13'),(_0x1f1c75,_0x2deb07)=>_0x2deb07?_0x4f3519(_0x1f1c75,{'limit':this[_0x13a1('0x5')][_0x13a1('0x9')]}):_0x1f1c75),_0x32a48b;}[_0x13a1('0x4')](){this['_config'][_0x13a1('0x20')]||(this[_0x13a1('0x5')][_0x13a1('0x20')]={}),this[_0x13a1('0x5')]['editorConfig'][_0x13a1('0xc')]=this[_0x13a1('0x0')]['content'];const _0x118301=new _0xb1647(this[_0x13a1('0x14')],this['_config'][_0x13a1('0x20')]);return _0x118301[_0x13a1('0x19')]=this[_0x13a1('0x0')][_0x13a1('0x12')],_0x118301[_0x13a1('0xb')](_0x13a1('0xa'))['to'](this[_0x13a1('0x0')],_0x13a1('0x1')),_0x118301['submitLabel']=_0x5a6982(this[_0x13a1('0x14')],_0x13a1('0x1c')),_0x118301['on'](_0x13a1('0x1e'),(_0x93badd,_0x101718)=>{this[_0x13a1('0x3')](_0x13a1('0x1b'),this['_model']['id'],_0x101718),this[_0x13a1('0x18')](),this[_0x13a1('0x10')]();}),_0x118301['on'](_0x13a1('0x6'),()=>{this[_0x13a1('0x18')](),this[_0x13a1('0x10')]();}),_0x118301['once']('editorReady',()=>{_0x118301[_0x13a1('0x10')]();}),_0x118301[_0x13a1('0x7')](),_0x118301;}}
23
+ const _0x264d=['submit','switchToDisplayMode','isCollapsed','add','visibleView','maxCommentCharsWhenCollapsed','isReadOnly','collapse','once','set','content','editorReady','destroy','_createCommentInputView','fire','_createCommentContentView','_config','bind','focus','Save','expand','element','remove','get','createEditor','submitLabel','editorDestroyed','isSystemComment','isEditMode','disabledSubmit','_model','delegate','locale','editorConfig'];(function(_0x505f1e,_0x264d95){const _0xa9f4bd=function(_0x2ccda1){while(--_0x2ccda1){_0x505f1e['push'](_0x505f1e['shift']());}};_0xa9f4bd(++_0x264d95);}(_0x264d,0x1b5));const _0xa9f4=function(_0x505f1e,_0x264d95){_0x505f1e=_0x505f1e-0x0;let _0xa9f4bd=_0x264d[_0x505f1e];return _0xa9f4bd;};import{View as _0x187486}from'ckeditor5/src/ui.js';import{trimHtml as _0x178e8d}from'ckeditor5-collaboration';import _0x513c08 from'./commentcontentview.js';import _0x6ad2c6 from'./commentinputview.js';import{getTranslation as _0x1bd162}from'../../../utils/common-translations.js';export default class Yt extends _0x187486{constructor(_0x203ced,_0x4dbf55,_0x1ba9fa){super(_0x203ced),this[_0xa9f4('0x1')]=_0x4dbf55,this[_0xa9f4('0x15')]=_0x1ba9fa,this[_0xa9f4('0x20')]=!!this['_config'][_0xa9f4('0x20')],this[_0xa9f4('0xe')](_0xa9f4('0x21'),!0x1),this[_0xa9f4('0xe')](_0xa9f4('0x7'),!0x0),this[_0xa9f4('0x9')]=this['createCollection'](),this['visibleView'][_0xa9f4('0x8')](this['_createCommentContentView']());}[_0xa9f4('0x19')](){this[_0xa9f4('0x7')]=!0x1;}[_0xa9f4('0xc')](){this[_0xa9f4('0x21')]||(this[_0xa9f4('0x7')]=!0x0);}['focus'](){this[_0xa9f4('0x1a')][_0xa9f4('0x17')]();}async[_0xa9f4('0x11')](){await this[_0xa9f4('0x9')][_0xa9f4('0x1c')](0x0)[_0xa9f4('0x11')](),super[_0xa9f4('0x11')]();}['switchToEditMode'](){this[_0xa9f4('0x21')]||(this[_0xa9f4('0x21')]=!0x0,this[_0xa9f4('0x9')][_0xa9f4('0x1b')](0x0)[_0xa9f4('0x11')](),this[_0xa9f4('0x9')]['add'](this[_0xa9f4('0x12')]()));}[_0xa9f4('0x6')](){this[_0xa9f4('0x21')]&&(this['isEditMode']=!0x1,this[_0xa9f4('0x9')][_0xa9f4('0x1b')](0x0)[_0xa9f4('0x11')](),this[_0xa9f4('0x9')][_0xa9f4('0x8')](this[_0xa9f4('0x14')]()));}[_0xa9f4('0x14')](){const _0x5881b6=new _0x513c08(this[_0xa9f4('0x3')]);return _0x5881b6['bind'](_0xa9f4('0xf'))['to'](this[_0xa9f4('0x1')],'content',this,_0xa9f4('0x7'),(_0xa0037d,_0x2b7215)=>_0x2b7215?_0x178e8d(_0xa0037d,{'limit':this[_0xa9f4('0x15')][_0xa9f4('0xa')]}):_0xa0037d),_0x5881b6;}[_0xa9f4('0x12')](){this[_0xa9f4('0x15')]['editorConfig']||(this['_config'][_0xa9f4('0x4')]={}),this[_0xa9f4('0x15')][_0xa9f4('0x4')]['initialData']=this[_0xa9f4('0x1')][_0xa9f4('0xf')];const _0x37072b=new _0x6ad2c6(this['locale'],this['_config']['editorConfig']);return _0x37072b['value']=this[_0xa9f4('0x1')][_0xa9f4('0xf')],_0x37072b[_0xa9f4('0x16')](_0xa9f4('0x0'))['to'](this[_0xa9f4('0x1')],_0xa9f4('0xb')),_0x37072b[_0xa9f4('0x1e')]=_0x1bd162(this[_0xa9f4('0x3')],_0xa9f4('0x18')),_0x37072b['on'](_0xa9f4('0x5'),(_0x2bb7f3,_0xb57855)=>{this[_0xa9f4('0x13')]('updateComment',this[_0xa9f4('0x1')]['id'],_0xb57855),this[_0xa9f4('0x6')](),this[_0xa9f4('0x17')]();}),_0x37072b['on']('cancel',()=>{this[_0xa9f4('0x6')](),this[_0xa9f4('0x17')]();}),_0x37072b[_0xa9f4('0xd')](_0xa9f4('0x10'),()=>{_0x37072b[_0xa9f4('0x17')]();}),_0x37072b[_0xa9f4('0x1d')](),_0x37072b[_0xa9f4('0x2')](_0xa9f4('0x10'))['to'](this),_0x37072b[_0xa9f4('0x2')](_0xa9f4('0x1f'))['to'](this),_0x37072b;}}
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @module comments/comments/ui/view/collapsedcommentsview
3
3
  */
4
- import { View } from 'ckeditor5/src/ui';
5
- import type { Locale } from 'ckeditor5/src/utils';
4
+ import { View } from 'ckeditor5/src/ui.js';
5
+ import type { Locale } from 'ckeditor5/src/utils.js';
6
6
  export default class CollapsedCommentsView extends View {
7
7
  count: number | undefined;
8
8
  constructor(locale: Locale);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x460e=['setTemplate','count','bindTemplate','NUMBER_OF_COMMENTS','set'];(function(_0x52d3bc,_0x460ef7){const _0x1a71ca=function(_0x2256be){while(--_0x2256be){_0x52d3bc['push'](_0x52d3bc['shift']());}};_0x1a71ca(++_0x460ef7);}(_0x460e,0x1c0));const _0x1a71=function(_0x52d3bc,_0x460ef7){_0x52d3bc=_0x52d3bc-0x0;let _0x1a71ca=_0x460e[_0x52d3bc];return _0x1a71ca;};import{View as _0x37b5e4}from'ckeditor5/src/ui';import{getTranslation as _0x1d002a}from'../../../utils/common-translations';export default class to extends _0x37b5e4{constructor(_0x268e9f){super(_0x268e9f);const _0x1b7b89=this[_0x1a71('0x4')];this[_0x1a71('0x1')](_0x1a71('0x3'),void 0x0),this[_0x1a71('0x2')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1b7b89['to'](_0x1a71('0x3'),_0x57f637=>_0x1d002a(_0x268e9f,_0x1a71('0x0'),_0x57f637))}]});}}
23
+ const _0x4379=['setTemplate','bindTemplate','count','set','NUMBER_OF_COMMENTS','ck-thread__comment-count'];(function(_0x329075,_0x4379e1){const _0x8d721a=function(_0x5655f0){while(--_0x5655f0){_0x329075['push'](_0x329075['shift']());}};_0x8d721a(++_0x4379e1);}(_0x4379,0x138));const _0x8d72=function(_0x329075,_0x4379e1){_0x329075=_0x329075-0x0;let _0x8d721a=_0x4379[_0x329075];return _0x8d721a;};import{View as _0x17b6cb}from'ckeditor5/src/ui.js';import{getTranslation as _0x1ee972}from'../../../utils/common-translations.js';export default class Zt extends _0x17b6cb{constructor(_0x5a6393){super(_0x5a6393);const _0x1db0a0=this[_0x8d72('0x1')];this[_0x8d72('0x3')](_0x8d72('0x2'),void 0x0),this[_0x8d72('0x0')]({'tag':'li','attributes':{'class':_0x8d72('0x5')},'children':[{'text':_0x1db0a0['to']('count',_0x4f8201=>_0x1ee972(_0x5a6393,_0x8d72('0x4'),_0x4f8201))}]});}}
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @module comments/comments/ui/view/commentcontentview
3
3
  */
4
- import { View } from 'ckeditor5/src/ui';
5
- import type { Locale } from 'ckeditor5/src/utils';
4
+ import { View } from 'ckeditor5/src/ui.js';
5
+ import type { Locale } from 'ckeditor5/src/utils.js';
6
6
  export default class CommentContentView extends View {
7
7
  content: string;
8
8
  constructor(locale: Locale);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x34f7=['ck-comment__content','change:content','render','content','ck-annotation__content','element','innerHTML','setTemplate','set'];(function(_0xd0a631,_0x34f7ad){var _0x5ad96c=function(_0x1c3f3b){while(--_0x1c3f3b){_0xd0a631['push'](_0xd0a631['shift']());}};_0x5ad96c(++_0x34f7ad);}(_0x34f7,0x9a));var _0x5ad9=function(_0xd0a631,_0x34f7ad){_0xd0a631=_0xd0a631-0x0;var _0x5ad96c=_0x34f7[_0xd0a631];return _0x5ad96c;};import{View as _0x5e7087}from'ckeditor5/src/ui';export default class Xt extends _0x5e7087{constructor(_0x2ebea6){super(_0x2ebea6),this[_0x5ad9('0x7')](_0x5ad9('0x2'),''),this[_0x5ad9('0x6')]({'tag':'div','attributes':{'class':[_0x5ad9('0x8'),_0x5ad9('0x3')]}});}[_0x5ad9('0x1')](){super['render'](),this['on'](_0x5ad9('0x0'),(_0x1e8926,_0x741e48,_0x2e4cd2)=>{this[_0x5ad9('0x4')][_0x5ad9('0x5')]=_0x2e4cd2;}),this[_0x5ad9('0x4')][_0x5ad9('0x5')]=this[_0x5ad9('0x2')];}}
23
+ var _0x3990=['element','setTemplate','div','content','set','render'];(function(_0x4faa1e,_0x399036){var _0x526331=function(_0x583847){while(--_0x583847){_0x4faa1e['push'](_0x4faa1e['shift']());}};_0x526331(++_0x399036);}(_0x3990,0x1b2));var _0x5263=function(_0x4faa1e,_0x399036){_0x4faa1e=_0x4faa1e-0x0;var _0x526331=_0x3990[_0x4faa1e];return _0x526331;};import{View as _0x25bf05}from'ckeditor5/src/ui.js';export default class Ut extends _0x25bf05{constructor(_0x31a186){super(_0x31a186),this[_0x5263('0x2')]('content',''),this[_0x5263('0x5')]({'tag':_0x5263('0x0'),'attributes':{'class':['ck-comment__content','ck-annotation__content']}});}[_0x5263('0x3')](){super[_0x5263('0x3')](),this['on']('change:content',(_0x57f9c2,_0x5de9a0,_0x536a8f)=>{this[_0x5263('0x4')]['innerHTML']=_0x536a8f;}),this[_0x5263('0x4')]['innerHTML']=this[_0x5263('0x1')];}}
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @module comments/comments/ui/view/commentinputview
3
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';
4
+ import { View, ButtonView } from 'ckeditor5/src/ui.js';
5
+ import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
6
+ import { type EditorConfig, type DataApi } from 'ckeditor5/src/core.js';
7
+ import CommentEditor from '../commenteditor/commenteditor.js';
8
8
  /**
9
9
  * A view for the comment input section that includes a comment editor.
10
10
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fc5=['execute','withText','then','bind','ck-comment__input-actions--submit','ck-comment__input-wrapper','extendTemplate','element','_createSubmitButton','cancelButtonView','shift\x20+\x20tab','add','placeholder','focusTracker','document','insertBefore','Cancel','_editorConfig','value','submitLabel','_editorCreationPromise','keystrokes','fire','_createCancelButton','ck-comment__input-actions','disabledSubmit','_isDestroyed','Reply...','create','focusPrevious','editor','ck-comment__input-actions--cancel','destroy','change','model','editorReady','setData','render','set','setTemplate','focus','low','submit','label','_initializeFocusCycling','view','tab','submitButtonView','div','showButtons','focusNext','createEditor','listenTo','length','Esc','bindTemplate'];(function(_0x253e33,_0x4fc570){const _0x1ed730=function(_0x349a27){while(--_0x349a27){_0x253e33['push'](_0x253e33['shift']());}};_0x1ed730(++_0x4fc570);}(_0x4fc5,0x100));const _0x1ed7=function(_0x253e33,_0x4fc570){_0x253e33=_0x253e33-0x0;let _0x1ed730=_0x4fc5[_0x253e33];return _0x1ed730;};import{View as _0x4735a0,ViewCollection as _0x427142,FocusCycler as _0x2920c1,ButtonView as _0x1165dc}from'ckeditor5/src/ui';import{FocusTracker as _0x3100c9,KeystrokeHandler as _0x11acba}from'ckeditor5/src/utils';import _0x3b1b39 from'../commenteditor/commenteditor';import{getTranslation as _0x44b862}from'../../../utils/common-translations';export default class Yt extends _0x4735a0{constructor(_0x4b0080,_0x32d7e3={}){super(_0x4b0080),this[_0x1ed7('0x36')]=null,this[_0x1ed7('0x29')]=_0x32d7e3,this[_0x1ed7('0x2d')]=new _0x11acba(),this[_0x1ed7('0x25')]=new _0x3100c9(),this['set']('value',_0x32d7e3['initialData']||''),this['set'](_0x1ed7('0x31'),!0x1),this[_0x1ed7('0x6')](_0x1ed7('0x11'),!0x0),this[_0x1ed7('0x6')](_0x1ed7('0x24'),_0x44b862(_0x4b0080,_0x1ed7('0x33'))),this[_0x1ed7('0x6')](_0x1ed7('0x2b'),_0x44b862(_0x4b0080,'Reply')),this[_0x1ed7('0xf')]=this['_createSubmitButton'](),this[_0x1ed7('0x21')]=this[_0x1ed7('0x2f')](),this[_0x1ed7('0x7')]({'tag':'div','attributes':{'class':[_0x1ed7('0x1d')]},'children':[{'tag':_0x1ed7('0x10'),'attributes':{'class':[_0x1ed7('0x30'),this[_0x1ed7('0x17')]['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this[_0x1ed7('0x21')]]}]}),this[_0x1ed7('0x2d')][_0x1ed7('0x6')](_0x1ed7('0x16'),(_0x294525,_0x24f0ad)=>{this[_0x1ed7('0x21')][_0x1ed7('0x2e')](_0x1ed7('0x18')),_0x24f0ad();}),this['on'](_0x1ed7('0xa'),(_0x673d3,_0x34e7fc)=>{_0x34e7fc[_0x1ed7('0x15')]>0xfde8?(alert(_0x44b862(_0x4b0080,'TOO_LONG_COMMENT_ALERT',[_0x34e7fc[_0x1ed7('0x15')],0xfde8])),_0x673d3['stop']()):this[_0x1ed7('0x36')][_0x1ed7('0x4')]('');},{'priority':'high'});}['render'](){super[_0x1ed7('0x5')](),this[_0x1ed7('0x2d')][_0x1ed7('0x14')](this[_0x1ed7('0x1f')]),this[_0x1ed7('0x25')][_0x1ed7('0x23')](this[_0x1ed7('0x1f')]);}[_0x1ed7('0x13')](){return this[_0x1ed7('0x36')]||(this[_0x1ed7('0x36')]=new _0x3b1b39(this[_0x1ed7('0x29')]),this[_0x1ed7('0x2c')]=this['editor'][_0x1ed7('0x34')]()[_0x1ed7('0x1a')](()=>{if(this['_isDestroyed'])return;const _0x24717a=this['editor'];this[_0x1ed7('0x1f')][_0x1ed7('0x27')](_0x24717a['ui'][_0x1ed7('0x1f')],this['element']['firstChild']),_0x24717a[_0x1ed7('0x2')][_0x1ed7('0x26')]['on'](_0x1ed7('0x1'),()=>this[_0x1ed7('0x2a')]=_0x24717a['getData']()),_0x24717a[_0x1ed7('0x1b')](_0x1ed7('0x24'))['to'](this),this[_0x1ed7('0xc')](this[_0x1ed7('0x36')]),this['fire'](_0x1ed7('0x3'));})),this[_0x1ed7('0x2c')];}[_0x1ed7('0x8')](){this['editor']&&this[_0x1ed7('0x36')][_0x1ed7('0x8')]();}async[_0x1ed7('0x0')](){this[_0x1ed7('0x32')]||(this[_0x1ed7('0x32')]=!0x0,this[_0x1ed7('0x36')]&&(await this[_0x1ed7('0x2c')],await this[_0x1ed7('0x36')]['destroy']()),await super[_0x1ed7('0x0')]());}[_0x1ed7('0x20')](){const {locale:_0xc4a545}=this,_0x167a43=new _0x1165dc(_0xc4a545);return _0x167a43[_0x1ed7('0x1e')]({'attributes':{'class':[_0x1ed7('0x1c')]}}),_0x167a43[_0x1ed7('0x19')]=!0x0,_0x167a43[_0x1ed7('0x1b')](_0x1ed7('0xb'))['to'](this,_0x1ed7('0x2b')),_0x167a43['on'](_0x1ed7('0x18'),()=>{this[_0x1ed7('0x2e')](_0x1ed7('0xa'),this[_0x1ed7('0x2a')]);}),_0x167a43[_0x1ed7('0x1b')]('isEnabled')['to'](this,_0x1ed7('0x2a'),this,_0x1ed7('0x31'),(_0xfa8cc0,_0x16c575)=>!_0x16c575&&!!_0xfa8cc0['trim']()),_0x167a43;}[_0x1ed7('0x2f')](){const {locale:_0x477c76}=this,_0x3585c1=new _0x1165dc(_0x477c76);return _0x3585c1[_0x1ed7('0x1e')]({'attributes':{'class':[_0x1ed7('0x37')]}}),_0x3585c1[_0x1ed7('0xb')]=_0x44b862(_0x477c76,_0x1ed7('0x28')),_0x3585c1[_0x1ed7('0x19')]=!0x0,_0x3585c1['on'](_0x1ed7('0x18'),()=>{this[_0x1ed7('0x36')]['setData'](''),this['fire']('cancel');}),_0x3585c1;}['_initializeFocusCycling'](_0x590b4d){const _0x32e4c7=this['focusTracker'],_0x1bd73e=new _0x427142();[_0x590b4d['ui'][_0x1ed7('0xd')],this[_0x1ed7('0xf')],this['cancelButtonView']]['forEach'](_0x5187f1=>{_0x1bd73e[_0x1ed7('0x23')](_0x5187f1),_0x32e4c7[_0x1ed7('0x23')](_0x5187f1[_0x1ed7('0x1f')]);});const _0x42ddd2=new _0x2920c1({'focusables':_0x1bd73e,'focusTracker':_0x32e4c7});this[_0x1ed7('0x2d')]['set'](_0x1ed7('0xe'),(_0x3e482b,_0x2273c2)=>{_0x42ddd2[_0x1ed7('0x12')](),_0x2273c2();},{'priority':_0x1ed7('0x9')}),this[_0x1ed7('0x2d')][_0x1ed7('0x6')](_0x1ed7('0x22'),(_0x439ec0,_0x15196b)=>{_0x42ddd2[_0x1ed7('0x35')](),_0x15196b();},{'priority':'low'});}}
23
+ const _0x2a66=['forEach','editor','_initializeFocusCycling','_editorCreationPromise','setData','editorReady','keystrokes','document','submit','add','then','Reply...','low','trim','high','firstChild','destroy','submitButtonView','label','getData','submitLabel','disabledSubmit','ck-comment__input-actions--submit','ck-comment__input-actions','focus','placeholder','bind','fire','length','initialData','withText','editorDestroyed','Reply','_createCancelButton','setTemplate','value','focusNext','createEditor','ck-comment__input-wrapper','cancelButtonView','Cancel','_isDestroyed','insertBefore','_editorConfig','create','element','focusTracker','ck-comment__input-actions--active','shift\x20+\x20tab','Esc','showButtons','view','render','set','stop','extendTemplate','_createSubmitButton','execute'];(function(_0x42ccba,_0x2a66c6){const _0x217bfd=function(_0x1be933){while(--_0x1be933){_0x42ccba['push'](_0x42ccba['shift']());}};_0x217bfd(++_0x2a66c6);}(_0x2a66,0x75));const _0x217b=function(_0x42ccba,_0x2a66c6){_0x42ccba=_0x42ccba-0x0;let _0x217bfd=_0x2a66[_0x42ccba];return _0x217bfd;};import{View as _0x5bc6db,ViewCollection as _0x10ac06,FocusCycler as _0x3f0152,ButtonView as _0x2fe632}from'ckeditor5/src/ui.js';import{FocusTracker as _0x38a830,KeystrokeHandler as _0x3ca2e3}from'ckeditor5/src/utils.js';import _0x6f58e from'../commenteditor/commenteditor.js';import{getTranslation as _0xe47260}from'../../../utils/common-translations.js';export default class Xt extends _0x5bc6db{constructor(_0x3811dc,_0xa351f0={}){super(_0x3811dc),this[_0x217b('0x0')]=null,this[_0x217b('0x2a')]=_0xa351f0,this['keystrokes']=new _0x3ca2e3(),this['focusTracker']=new _0x38a830(),this[_0x217b('0x34')](_0x217b('0x22'),_0xa351f0[_0x217b('0x1c')]||''),this[_0x217b('0x34')](_0x217b('0x14'),!0x1),this[_0x217b('0x34')](_0x217b('0x31'),!0x0),this['set'](_0x217b('0x18'),_0xe47260(_0x3811dc,_0x217b('0xa'))),this['set'](_0x217b('0x13'),_0xe47260(_0x3811dc,_0x217b('0x1f'))),this[_0x217b('0x10')]=this['_createSubmitButton'](),this['cancelButtonView']=this[_0x217b('0x20')](),this[_0x217b('0x21')]({'tag':'div','attributes':{'class':[_0x217b('0x25')]},'children':[{'tag':'div','attributes':{'class':[_0x217b('0x16'),this['bindTemplate']['if']('showButtons',_0x217b('0x2e'))]},'children':[this['submitButtonView'],this[_0x217b('0x26')]]}]}),this[_0x217b('0x5')][_0x217b('0x34')](_0x217b('0x30'),(_0x436f48,_0x413f3a)=>{this[_0x217b('0x26')]['fire']('execute'),_0x413f3a();}),this['on'](_0x217b('0x7'),(_0x1009d3,_0x332923)=>{_0x332923[_0x217b('0x1b')]>0xfde8?(alert(_0xe47260(_0x3811dc,'TOO_LONG_COMMENT_ALERT',[_0x332923[_0x217b('0x1b')],0xfde8])),_0x1009d3[_0x217b('0x35')]()):this['editor'][_0x217b('0x3')]('');},{'priority':_0x217b('0xd')});}[_0x217b('0x33')](){super[_0x217b('0x33')](),this[_0x217b('0x5')]['listenTo'](this[_0x217b('0x2c')]),this[_0x217b('0x2d')][_0x217b('0x8')](this['element']);}[_0x217b('0x24')](){return this[_0x217b('0x0')]||(this[_0x217b('0x0')]=new _0x6f58e(this['_editorConfig']),this[_0x217b('0x2')]=this[_0x217b('0x0')][_0x217b('0x2b')]()[_0x217b('0x9')](()=>{if(this[_0x217b('0x28')])return;const _0x49498a=this[_0x217b('0x0')];this[_0x217b('0x2c')][_0x217b('0x29')](_0x49498a['ui'][_0x217b('0x2c')],this['element'][_0x217b('0xe')]),_0x49498a['model'][_0x217b('0x6')]['on']('change',()=>this[_0x217b('0x22')]=_0x49498a[_0x217b('0x12')]()),_0x49498a[_0x217b('0x19')](_0x217b('0x18'))['to'](this),this[_0x217b('0x1')](this[_0x217b('0x0')]),this['fire'](_0x217b('0x4'),this[_0x217b('0x0')]);})),this[_0x217b('0x2')];}[_0x217b('0x17')](){this[_0x217b('0x0')]&&this['editor'][_0x217b('0x17')]();}async[_0x217b('0xf')](){this['_isDestroyed']||(this[_0x217b('0x28')]=!0x0,this[_0x217b('0x0')]&&(await this[_0x217b('0x2')],await this[_0x217b('0x0')]['destroy'](),this[_0x217b('0x1a')](_0x217b('0x1e'),this[_0x217b('0x0')])),await super[_0x217b('0xf')]());}[_0x217b('0x37')](){const {locale:_0x4459e4}=this,_0x519517=new _0x2fe632(_0x4459e4);return _0x519517[_0x217b('0x36')]({'attributes':{'class':[_0x217b('0x15')]}}),_0x519517[_0x217b('0x1d')]=!0x0,_0x519517['bind'](_0x217b('0x11'))['to'](this,_0x217b('0x13')),_0x519517['on']('execute',()=>{this[_0x217b('0x1a')](_0x217b('0x7'),this[_0x217b('0x22')]);}),_0x519517['bind']('isEnabled')['to'](this,'value',this,_0x217b('0x14'),(_0x2ac65a,_0xaef5f2)=>!_0xaef5f2&&!!_0x2ac65a[_0x217b('0xc')]()),_0x519517;}['_createCancelButton'](){const {locale:_0x2e1d91}=this,_0x482437=new _0x2fe632(_0x2e1d91);return _0x482437[_0x217b('0x36')]({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x482437[_0x217b('0x11')]=_0xe47260(_0x2e1d91,_0x217b('0x27')),_0x482437['withText']=!0x0,_0x482437['on'](_0x217b('0x38'),()=>{this['editor']['setData'](''),this[_0x217b('0x1a')]('cancel');}),_0x482437;}[_0x217b('0x1')](_0x5a77ff){const _0x1eb96a=this[_0x217b('0x2d')],_0x1ea22b=new _0x10ac06();[_0x5a77ff['ui'][_0x217b('0x32')],this['submitButtonView'],this[_0x217b('0x26')]][_0x217b('0x39')](_0x187d62=>{_0x1ea22b['add'](_0x187d62),_0x1eb96a[_0x217b('0x8')](_0x187d62[_0x217b('0x2c')]);});const _0x5dd40b=new _0x3f0152({'focusables':_0x1ea22b,'focusTracker':_0x1eb96a});this[_0x217b('0x5')]['set']('tab',(_0x5f2bcc,_0x40c614)=>{_0x5dd40b[_0x217b('0x23')](),_0x40c614();},{'priority':'low'}),this['keystrokes']['set'](_0x217b('0x2f'),(_0x15280d,_0xfeb5d3)=>{_0x5dd40b['focusPrevious'](),_0xfeb5d3();},{'priority':_0x217b('0xb')});}}
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * @module comments/comments/ui/view/commentslistview
3
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';
4
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
5
+ import { type Locale } from 'ckeditor5/src/utils.js';
6
+ import type AnnotationView from '../../../annotations/view/annotationview.js';
7
7
  /**
8
8
  * A view representing the content of comments archive.
9
9
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a83=['ck-comments-archive__content','div','stopPropagation','set','ck-comments-archive__header\x20','arrowleft','destroy','listenTo','_keystrokes','shift\x20+\x20tab','high','add','arrowright','ck-comments-archive__info','EMPTY_COMMENTS_ARCHIVE','focus','setTemplate','COMMENTS_ARCHIVE','element','_focusables','ck-comments-archive','_focusCycler','arrowdown','render','isEmpty','bindTemplate','auto','_focusTracker','length'];(function(_0x18dad5,_0x5a8371){const _0xce166f=function(_0x1ff4a2){while(--_0x1ff4a2){_0x18dad5['push'](_0x18dad5['shift']());}};_0xce166f(++_0x5a8371);}(_0x5a83,0xcc));const _0xce16=function(_0x18dad5,_0x5a8371){_0x18dad5=_0x18dad5-0x0;let _0xce166f=_0x5a83[_0x18dad5];return _0xce166f;};import{View as _0x18b091,FocusCycler as _0xa258b0}from'ckeditor5/src/ui';import{FocusTracker as _0x207b56,KeystrokeHandler as _0x408769}from'ckeditor5/src/utils';import{getTranslation as _0x308e3d}from'../../../utils/common-translations';export default class X extends _0x18b091{constructor(_0xa4ace5,_0x4c80ff){super(_0xa4ace5),this[_0xce16('0x2')]('isEmpty',!_0x4c80ff[_0xce16('0x1b')]),this['_focusTracker']=new _0x207b56(),this[_0xce16('0x7')]=new _0x408769(),this[_0xce16('0x12')]=_0x4c80ff,this[_0xce16('0x14')]=new _0xa258b0({'focusables':this['_focusables'],'focusTracker':this[_0xce16('0x1a')],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':_0xce16('0x8'),'focusNext':'tab'}}),this[_0xce16('0x6')](_0x4c80ff,_0xce16('0xa'),()=>{this[_0xce16('0x17')]=!0x1;}),this[_0xce16('0x6')](_0x4c80ff,'remove',(_0x1230c8,_0x3d71b4)=>{_0x3d71b4['isActive']&&this['focus'](),_0x4c80ff[_0xce16('0x1b')]||(this[_0xce16('0x17')]=!0x0);});const _0x481c46=this[_0xce16('0x18')];this[_0xce16('0xf')]({'tag':_0xce16('0x0'),'attributes':{'dir':_0xce16('0x19'),'class':['ck',_0xce16('0x13')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':[_0xce16('0x3')]},'children':[{'text':_0x308e3d(_0xa4ace5,_0xce16('0x10'))}]},{'tag':_0xce16('0x0'),'attributes':{'class':[_0xce16('0x1c')]},'children':[{'tag':'div','children':_0x4c80ff},{'tag':'p','attributes':{'class':[_0xce16('0xc'),_0x481c46['if'](_0xce16('0x17'),'ck-hidden',_0x3a6ba1=>!_0x3a6ba1)]},'children':[{'text':_0x308e3d(_0xa4ace5,_0xce16('0xd'))}]}]}]});}[_0xce16('0x16')](){super[_0xce16('0x16')](),this[_0xce16('0x7')][_0xce16('0x6')](this[_0xce16('0x11')]);const _0x4fdd85=_0x5ae46f=>_0x5ae46f[_0xce16('0x1')]();this[_0xce16('0x7')][_0xce16('0x2')](_0xce16('0xb'),_0x4fdd85),this[_0xce16('0x7')][_0xce16('0x2')](_0xce16('0x4'),_0x4fdd85),this[_0xce16('0x7')][_0xce16('0x2')]('arrowup',_0x4fdd85),this['_keystrokes']['set'](_0xce16('0x15'),_0x4fdd85),this['listenTo'](this[_0xce16('0x11')],'selectstart',(_0x55d56a,_0x4cd4f1)=>{_0x4cd4f1['stopPropagation']();},{'priority':_0xce16('0x9')});}[_0xce16('0x5')](){super[_0xce16('0x5')](),this['_focusTracker'][_0xce16('0x5')](),this[_0xce16('0x7')]['destroy']();}[_0xce16('0xe')](){this[_0xce16('0x11')][_0xce16('0xe')]();}}
23
+ const _0x829e=['remove','isEmpty','_focusCycler','bindTemplate','ck-comments-archive__info','set','shift\x20+\x20tab','COMMENTS_ARCHIVE','element','isActive','listenTo','destroy','length','focus','ck-comments-archive','auto','_focusables','_focusTracker','arrowup','_keystrokes','selectstart','setTemplate','stopPropagation','ck-hidden','tab','add','arrowdown','ck-comments-archive__content','div','arrowleft'];(function(_0x1e4e2d,_0x829e5b){const _0x475fc4=function(_0xfa218d){while(--_0xfa218d){_0x1e4e2d['push'](_0x1e4e2d['shift']());}};_0x475fc4(++_0x829e5b);}(_0x829e,0x6b));const _0x475f=function(_0x1e4e2d,_0x829e5b){_0x1e4e2d=_0x1e4e2d-0x0;let _0x475fc4=_0x829e[_0x1e4e2d];return _0x475fc4;};import{View as _0x15a209,FocusCycler as _0x59c058}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3b9bb4,KeystrokeHandler as _0x180b56}from'ckeditor5/src/utils.js';import{getTranslation as _0x19d29c}from'../../../utils/common-translations.js';export default class K extends _0x15a209{constructor(_0x1342e8,_0x59fd67){super(_0x1342e8),this[_0x475f('0x12')]('isEmpty',!_0x59fd67[_0x475f('0x19')]),this[_0x475f('0x0')]=new _0x3b9bb4(),this[_0x475f('0x2')]=new _0x180b56(),this[_0x475f('0x1d')]=_0x59fd67,this[_0x475f('0xf')]=new _0x59c058({'focusables':this[_0x475f('0x1d')],'focusTracker':this[_0x475f('0x0')],'keystrokeHandler':this[_0x475f('0x2')],'actions':{'focusPrevious':_0x475f('0x13'),'focusNext':_0x475f('0x7')}}),this['listenTo'](_0x59fd67,_0x475f('0x8'),()=>{this[_0x475f('0xe')]=!0x1;}),this[_0x475f('0x17')](_0x59fd67,_0x475f('0xd'),(_0x25c5c9,_0x247d48)=>{_0x247d48[_0x475f('0x16')]&&this[_0x475f('0x1a')](),_0x59fd67[_0x475f('0x19')]||(this[_0x475f('0xe')]=!0x0);});const _0x38c592=this[_0x475f('0x10')];this[_0x475f('0x4')]({'tag':_0x475f('0xb'),'attributes':{'dir':_0x475f('0x1c'),'class':['ck',_0x475f('0x1b')],'tabindex':-0x1},'children':[{'tag':'p','attributes':{'class':['ck-comments-archive__header\x20']},'children':[{'text':_0x19d29c(_0x1342e8,_0x475f('0x14'))}]},{'tag':'div','attributes':{'class':[_0x475f('0xa')]},'children':[{'tag':_0x475f('0xb'),'children':_0x59fd67},{'tag':'p','attributes':{'class':[_0x475f('0x11'),_0x38c592['if'](_0x475f('0xe'),_0x475f('0x6'),_0x214df3=>!_0x214df3)]},'children':[{'text':_0x19d29c(_0x1342e8,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this[_0x475f('0x2')]['listenTo'](this[_0x475f('0x15')]);const _0x280e4b=_0x133a63=>_0x133a63['stopPropagation']();this[_0x475f('0x2')][_0x475f('0x12')]('arrowright',_0x280e4b),this[_0x475f('0x2')]['set'](_0x475f('0xc'),_0x280e4b),this[_0x475f('0x2')]['set'](_0x475f('0x1'),_0x280e4b),this[_0x475f('0x2')][_0x475f('0x12')](_0x475f('0x9'),_0x280e4b),this[_0x475f('0x17')](this['element'],_0x475f('0x3'),(_0x3e9231,_0x12392a)=>{_0x12392a[_0x475f('0x5')]();},{'priority':'high'});}[_0x475f('0x18')](){super[_0x475f('0x18')](),this[_0x475f('0x0')][_0x475f('0x18')](),this[_0x475f('0x2')]['destroy']();}['focus'](){this[_0x475f('0x15')][_0x475f('0x1a')]();}}
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * @module comments/comments/ui/view/commentslistview
3
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';
4
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
5
+ import { type Locale } from 'ckeditor5/src/utils.js';
6
+ import type { CommentThread } from '../../commentsrepository.js';
7
+ import type CommentView from './commentview.js';
8
+ import type { CommentThreadConfig } from '../../../config.js';
9
9
  /**
10
10
  * A view representing the list of comments. It should be used as a part of the comment thread view.
11
11
  */