@ckeditor/ckeditor5-comments 33.0.0 → 34.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +5 -2
  3. package/build/comments.js +2 -2
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/bs.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de-ch.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/gl.js +1 -1
  16. package/build/translations/hi.js +1 -1
  17. package/build/translations/hr.js +1 -1
  18. package/build/translations/hu.js +1 -1
  19. package/build/translations/id.js +1 -1
  20. package/build/translations/it.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/jv.js +1 -0
  23. package/build/translations/ko.js +1 -1
  24. package/build/translations/lv.js +1 -0
  25. package/build/translations/nl.js +1 -1
  26. package/build/translations/no.js +1 -1
  27. package/build/translations/pl.js +1 -1
  28. package/build/translations/pt-br.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr-latn.js +1 -1
  33. package/build/translations/sr.js +1 -1
  34. package/build/translations/tk.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/ug.js +1 -1
  37. package/build/translations/uk.js +1 -1
  38. package/build/translations/ur.js +1 -0
  39. package/build/translations/zh-cn.js +1 -1
  40. package/build/translations/zh.js +1 -1
  41. package/lang/contexts.json +0 -3
  42. package/lang/translations/af.po +67 -0
  43. package/lang/translations/bs.po +0 -12
  44. package/lang/translations/cs.po +0 -12
  45. package/lang/translations/da.po +0 -12
  46. package/lang/translations/de-ch.po +0 -12
  47. package/lang/translations/de.po +0 -12
  48. package/lang/translations/el.po +0 -12
  49. package/lang/translations/en-au.po +0 -12
  50. package/lang/translations/en.po +0 -12
  51. package/lang/translations/es.po +2 -13
  52. package/lang/translations/et.po +0 -12
  53. package/lang/translations/fr.po +2 -13
  54. package/lang/translations/gl.po +0 -12
  55. package/lang/translations/hi.po +0 -12
  56. package/lang/translations/hr.po +0 -12
  57. package/lang/translations/hu.po +0 -12
  58. package/lang/translations/id.po +0 -12
  59. package/lang/translations/it.po +2 -13
  60. package/lang/translations/ja.po +0 -12
  61. package/lang/translations/jv.po +66 -0
  62. package/lang/translations/ko.po +0 -12
  63. package/lang/translations/lv.po +68 -0
  64. package/lang/translations/nl.po +0 -12
  65. package/lang/translations/no.po +0 -12
  66. package/lang/translations/pl.po +0 -12
  67. package/lang/translations/pt-br.po +2 -13
  68. package/lang/translations/ro.po +0 -12
  69. package/lang/translations/ru.po +0 -12
  70. package/lang/translations/sk.po +0 -12
  71. package/lang/translations/sr-latn.po +0 -12
  72. package/lang/translations/sr.po +0 -12
  73. package/lang/translations/tk.po +0 -12
  74. package/lang/translations/tr.po +0 -12
  75. package/lang/translations/ug.po +0 -12
  76. package/lang/translations/uk.po +0 -12
  77. package/lang/translations/ur.po +67 -0
  78. package/lang/translations/zh-cn.po +0 -12
  79. package/lang/translations/zh.po +0 -12
  80. package/package.json +3 -3
  81. package/src/annotations/annotation.js +1 -1
  82. package/src/annotations/annotationcollection.js +1 -1
  83. package/src/annotations/annotations.js +1 -1
  84. package/src/annotations/annotationsuis.js +1 -1
  85. package/src/annotations/editorannotations.js +1 -1
  86. package/src/annotations/inlineannotations.js +1 -1
  87. package/src/annotations/narrowsidebar.js +1 -1
  88. package/src/annotations/sidebar.js +1 -1
  89. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  90. package/src/annotations/view/annotationview.js +1 -1
  91. package/src/annotations/view/sidebaritemview.js +1 -1
  92. package/src/annotations/view/sidebarview.js +1 -1
  93. package/src/annotations/widesidebar.js +1 -1
  94. package/src/comments/addcommentthreadcommand.js +1 -1
  95. package/src/comments/commentsediting.js +1 -1
  96. package/src/comments/commentsrepository.js +1 -1
  97. package/src/comments/commentsui.js +1 -1
  98. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  99. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  100. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  101. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  102. package/src/comments/ui/commentthreadcontroller.js +1 -1
  103. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  104. package/src/comments/ui/view/basecommentview.js +1 -1
  105. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  106. package/src/comments/ui/view/commentcontentview.js +1 -1
  107. package/src/comments/ui/view/commentinputview.js +1 -1
  108. package/src/comments/ui/view/commentslistview.js +1 -1
  109. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  110. package/src/comments/ui/view/commentthreadview.js +1 -1
  111. package/src/comments/ui/view/commentview.js +1 -1
  112. package/src/comments.js +1 -1
  113. package/src/commentsonly.js +1 -1
  114. package/src/utils/common-translations.js +1 -1
  115. package/src/utils/createmutationobserver.js +1 -1
  116. package/src/comments/ui/view/confirmmixin.js +0 -23
  117. package/src/comments/ui/view/confirmview.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36e1=['change','_updatePlaceholder','getRoot','createRoot','plugins','create','document','destroy','data','placeholderElement','defaultPlugins','view','initialData','model','childCount','assign','focus','editing','then','name','placeholder','end','set','init','getChild'];(function(_0x16aa79,_0x36e13d){const _0x364e4f=function(_0xa9574d){while(--_0xa9574d){_0x16aa79['push'](_0x16aa79['shift']());}};_0x364e4f(++_0x36e13d);}(_0x36e1,0xc3));const _0x364e=function(_0x16aa79,_0x36e13d){_0x16aa79=_0x16aa79-0x0;let _0x364e4f=_0x36e1[_0x16aa79];return _0x364e4f;};import{Editor as _0x4260ee,DataApiMixin as _0x1b213e}from'ckeditor5/src/core';import _0x4e8165 from'./commenteditorui';import{mix as _0x126148,ObservableMixin as _0x3bf894}from'ckeditor5/src/utils';import{enablePlaceholder as _0x223d0a,disablePlaceholder as _0x14c418}from'ckeditor5/src/engine';import{Clipboard as _0x44c86e}from'ckeditor5/src/clipboard';import{Enter as _0x1f4aff,ShiftEnter as _0x2b2d4e}from'ckeditor5/src/enter';import{SelectAll as _0x47db21}from'ckeditor5/src/select-all';import{Typing as _0x4d4503}from'ckeditor5/src/typing';import{Undo as _0xec0353}from'ckeditor5/src/undo';import{Paragraph as _0x262e23}from'ckeditor5/src/paragraph';export default class qt extends _0x4260ee{constructor(_0x3ca314={}){(_0x3ca314=Object[_0x364e('0x14')]({},_0x3ca314))[_0x364e('0x9')]||(_0x3ca314[_0x364e('0x9')]=qt[_0x364e('0xf')]),super(_0x3ca314),this['ui']=new _0x4e8165(this),this[_0x364e('0x2')](_0x364e('0x0'),''),this[_0x364e('0x12')]['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this[_0x364e('0x6')]()),this[_0x364e('0x12')]['document'][_0x364e('0x8')]();}[_0x364e('0xa')](){const _0x357d8d=this['config']['get'](_0x364e('0x11'))||'';return this['initPlugins']()[_0x364e('0x17')](()=>this['ui'][_0x364e('0x3')]())[_0x364e('0x17')](()=>this[_0x364e('0xd')][_0x364e('0x3')](_0x357d8d))[_0x364e('0x17')](()=>this['fire']('ready'));}['destroy'](){return super[_0x364e('0xc')]()[_0x364e('0x17')](()=>this['ui'][_0x364e('0xc')]());}[_0x364e('0x15')](){this[_0x364e('0x12')][_0x364e('0x5')](_0x2b39b0=>{const _0x9e090b=this[_0x364e('0x12')][_0x364e('0xb')][_0x364e('0x7')](),_0x120d59=_0x9e090b[_0x364e('0x4')](_0x9e090b[_0x364e('0x13')]-0x1);_0x2b39b0['setSelection'](_0x120d59,_0x364e('0x1')),this[_0x364e('0x16')][_0x364e('0x10')]['focus']();});}['_updatePlaceholder'](){const _0x277c51=this[_0x364e('0x16')][_0x364e('0x10')],_0x1d3ca8=_0x277c51['document']['getRoot'](),_0x3eac22=_0x1d3ca8[_0x364e('0x4')](0x0);_0x1d3ca8['childCount']>0x1||!_0x3eac22||'p'!=_0x3eac22[_0x364e('0x18')]?this['placeholderElement']&&(_0x14c418(_0x277c51,this[_0x364e('0xe')]),this[_0x364e('0xe')]=void 0x0):(_0x223d0a({'view':_0x277c51,'element':_0x3eac22,'text':this[_0x364e('0x0')],'keepOnFocus':!0x0}),this[_0x364e('0xe')]=_0x3eac22);}}_0x126148(qt,_0x3bf894),_0x126148(qt,_0x1b213e),qt[_0x364e('0xf')]=[_0x44c86e,_0x1f4aff,_0x2b2d4e,_0x47db21,_0x4d4503,_0xec0353,_0x262e23];
23
+ const _0x13c1=['data','fire','editing','assign','_updatePlaceholder','document','createRoot','config','placeholder','init','destroy','model','childCount','low','change:placeholder','getRoot','view','end','change','focus','then','defaultPlugins','placeholderElement','ready','create','initPlugins','name','initialData','set','plugins'];(function(_0x519b33,_0x13c175){const _0x3e8d2c=function(_0x4dcddc){while(--_0x4dcddc){_0x519b33['push'](_0x519b33['shift']());}};_0x3e8d2c(++_0x13c175);}(_0x13c1,0x1bb));const _0x3e8d=function(_0x519b33,_0x13c175){_0x519b33=_0x519b33-0x0;let _0x3e8d2c=_0x13c1[_0x519b33];return _0x3e8d2c;};import{Editor as _0xd96993,DataApiMixin as _0x44aa0a}from'ckeditor5/src/core';import _0x4c8919 from'./commenteditorui';import{mix as _0x1b4aae,ObservableMixin as _0x21cf42}from'ckeditor5/src/utils';import{enablePlaceholder as _0x1543d9,disablePlaceholder as _0x29d1b1}from'ckeditor5/src/engine';import{Clipboard as _0x19b720}from'ckeditor5/src/clipboard';import{Enter as _0x353c22,ShiftEnter as _0x3e49f9}from'ckeditor5/src/enter';import{SelectAll as _0x46e59a}from'ckeditor5/src/select-all';import{Typing as _0x1f1b78}from'ckeditor5/src/typing';import{Undo as _0x27212a}from'ckeditor5/src/undo';import{Paragraph as _0x8fcf3d}from'ckeditor5/src/paragraph';export default class qt extends _0xd96993{constructor(_0x3cceff={}){(_0x3cceff=Object[_0x3e8d('0xa')]({},_0x3cceff))[_0x3e8d('0x6')]||(_0x3cceff['plugins']=qt[_0x3e8d('0x1c')]),super(_0x3cceff),this['ui']=new _0x4c8919(this),this[_0x3e8d('0x5')](_0x3e8d('0xf'),''),this[_0x3e8d('0x12')]['document']['on'](_0x3e8d('0x19'),()=>this['_updatePlaceholder'](),{'priority':_0x3e8d('0x14')}),this['on'](_0x3e8d('0x15'),()=>this[_0x3e8d('0xb')]()),this[_0x3e8d('0x12')][_0x3e8d('0xc')][_0x3e8d('0xd')]();}[_0x3e8d('0x1')](){const _0x5ad261=this[_0x3e8d('0xe')]['get'](_0x3e8d('0x4'))||'';return this[_0x3e8d('0x2')]()[_0x3e8d('0x1b')](()=>this['ui'][_0x3e8d('0x10')]())[_0x3e8d('0x1b')](()=>this[_0x3e8d('0x7')]['init'](_0x5ad261))[_0x3e8d('0x1b')](()=>this[_0x3e8d('0x8')](_0x3e8d('0x0')));}[_0x3e8d('0x11')](){return super[_0x3e8d('0x11')]()['then'](()=>this['ui'][_0x3e8d('0x11')]());}[_0x3e8d('0x1a')](){this['model'][_0x3e8d('0x19')](_0x215202=>{const _0x44696c=this[_0x3e8d('0x12')][_0x3e8d('0xc')][_0x3e8d('0x16')](),_0x4915ac=_0x44696c['getChild'](_0x44696c[_0x3e8d('0x13')]-0x1);_0x215202['setSelection'](_0x4915ac,_0x3e8d('0x18')),this[_0x3e8d('0x9')][_0x3e8d('0x17')][_0x3e8d('0x1a')]();});}[_0x3e8d('0xb')](){const _0x4fa7a2=this[_0x3e8d('0x9')][_0x3e8d('0x17')],_0x1bc937=_0x4fa7a2['document'][_0x3e8d('0x16')](),_0x255092=_0x1bc937['getChild'](0x0);_0x1bc937[_0x3e8d('0x13')]>0x1||!_0x255092||'p'!=_0x255092[_0x3e8d('0x3')]?this[_0x3e8d('0x1d')]&&(_0x29d1b1(_0x4fa7a2,this[_0x3e8d('0x1d')]),this[_0x3e8d('0x1d')]=void 0x0):(_0x1543d9({'view':_0x4fa7a2,'element':_0x255092,'text':this[_0x3e8d('0xf')],'keepOnFocus':!0x0}),this['placeholderElement']=_0x255092);}}_0x1b4aae(qt,_0x21cf42),_0x1b4aae(qt,_0x44aa0a),qt[_0x3e8d('0x1c')]=[_0x19b720,_0x353c22,_0x3e49f9,_0x46e59a,_0x1f1b78,_0x27212a,_0x8fcf3d];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a45=['name','editable','fire','add','view','render','attachDomRoot','locale','ready','element','setEditableElement','focusTracker','bind','document','destroy','editor'];(function(_0x36e21a,_0x1a4584){const _0xfc4c88=function(_0x16462e){while(--_0x16462e){_0x36e21a['push'](_0x36e21a['shift']());}};_0xfc4c88(++_0x1a4584);}(_0x1a45,0x14a));const _0xfc4c=function(_0x36e21a,_0x1a4584){_0x36e21a=_0x36e21a-0x0;let _0xfc4c88=_0x1a45[_0x36e21a];return _0xfc4c88;};import{EditorUI as _0x5c508a}from'ckeditor5/src/core';import _0x249ccb from'./commenteditoruiview';export default class yt extends _0x5c508a{constructor(_0xdcfd2c){super(_0xdcfd2c),this[_0xfc4c('0xa')]=new _0x249ccb(_0xdcfd2c[_0xfc4c('0xd')],_0xdcfd2c['editing']['view']);}get['element'](){return this[_0xfc4c('0xa')][_0xfc4c('0xf')];}['init'](){const _0x4fef8c=this[_0xfc4c('0x5')]['editing'][_0xfc4c('0xa')],_0x5493a7=this[_0xfc4c('0xa')][_0xfc4c('0x7')],_0x1df963=_0x4fef8c[_0xfc4c('0x3')]['getRoot']();_0x5493a7[_0xfc4c('0x6')]=_0x1df963['rootName'],this[_0xfc4c('0xa')][_0xfc4c('0xb')]();const _0x5ea633=_0x5493a7[_0xfc4c('0xf')];this[_0xfc4c('0x0')](_0x5493a7[_0xfc4c('0x6')],_0x5ea633),this['focusTracker'][_0xfc4c('0x9')](_0x5ea633),this[_0xfc4c('0xa')]['editable'][_0xfc4c('0x2')]('isFocused')['to'](this[_0xfc4c('0x1')]),_0x4fef8c[_0xfc4c('0xc')](_0x5ea633),this[_0xfc4c('0x8')](_0xfc4c('0xe'));}[_0xfc4c('0x4')](){this[_0xfc4c('0xa')][_0xfc4c('0x4')](),super[_0xfc4c('0x4')]();}}
23
+ const _0x43f4=['rootName','editable','name','element','isFocused','setEditableElement','bind','view','editing','render','attachDomRoot','locale','destroy','ready','init','document','add','focusTracker','editor'];(function(_0x32a414,_0x43f45){const _0x2ce6c6=function(_0x9f86a6){while(--_0x9f86a6){_0x32a414['push'](_0x32a414['shift']());}};_0x2ce6c6(++_0x43f45);}(_0x43f4,0x138));const _0x2ce6=function(_0x32a414,_0x43f45){_0x32a414=_0x32a414-0x0;let _0x2ce6c6=_0x43f4[_0x32a414];return _0x2ce6c6;};import{EditorUI as _0x4ebdbb}from'ckeditor5/src/core';import _0x2a36d4 from'./commenteditoruiview';export default class yt extends _0x4ebdbb{constructor(_0x1b2ed9){super(_0x1b2ed9),this[_0x2ce6('0x12')]=new _0x2a36d4(_0x1b2ed9[_0x2ce6('0x3')],_0x1b2ed9[_0x2ce6('0x0')][_0x2ce6('0x12')]);}get[_0x2ce6('0xe')](){return this[_0x2ce6('0x12')][_0x2ce6('0xe')];}[_0x2ce6('0x6')](){const _0xa0f9bd=this[_0x2ce6('0xa')]['editing'][_0x2ce6('0x12')],_0x56172c=this['view']['editable'],_0x37bf65=_0xa0f9bd[_0x2ce6('0x7')]['getRoot']();_0x56172c[_0x2ce6('0xd')]=_0x37bf65[_0x2ce6('0xb')],this[_0x2ce6('0x12')][_0x2ce6('0x1')]();const _0x16ff62=_0x56172c[_0x2ce6('0xe')];this[_0x2ce6('0x10')](_0x56172c['name'],_0x16ff62),this[_0x2ce6('0x9')][_0x2ce6('0x8')](_0x16ff62),this['view'][_0x2ce6('0xc')][_0x2ce6('0x11')](_0x2ce6('0xf'))['to'](this[_0x2ce6('0x9')]),_0xa0f9bd[_0x2ce6('0x2')](_0x16ff62),this['fire'](_0x2ce6('0x5'));}[_0x2ce6('0x4')](){this[_0x2ce6('0x12')]['destroy'](),super[_0x2ce6('0x4')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{InlineEditableUIView as $t,EditorUIView as Ct,LabelView as Lt}from'ckeditor5/src/ui';import{uid as _0xc9af17}from'ckeditor5/src/utils';export default class At extends Ct{constructor(_0x19c593,_0x22fedb){super(_0x19c593);const _0x313009=_0xc9af17();this['main']=this['createCollection'](),this['editable']=new $t(_0x19c593,_0x22fedb),this['_voiceLabelView']=this['_createVoiceLabel'](_0x313009,_0x19c593),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'role':'comment','dir':_0x19c593['uiLanguageDirection'],'lang':_0x19c593['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x313009},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}['_createVoiceLabel'](_0x1228b6,_0x2f3338){const _0x187a9a=new Lt(),{t:t}=_0x2f3338;return _0x187a9a['text']=t('Comment\x20editor'),_0x187a9a['extendTemplate']({'attributes':{'id':'ck-editor__aria-label_'+_0x1228b6,'class':'ck-voice-label'}}),_0x187a9a;}}
23
+ const _0x400a=['div','ck-comment__input','render','main','createCollection','ck-reset','uiLanguage','editable','cke-editor__aria-label_','extendTemplate','_createVoiceLabel','_voiceLabelView','presentation','ck-voice-label','Comment\x20editor','ck-editor','focus','text','add','comment','ck-editor__aria-label_','element'];(function(_0x1fc60e,_0x400a27){const _0xa3b6cd=function(_0x15e68e){while(--_0x15e68e){_0x1fc60e['push'](_0x1fc60e['shift']());}};_0xa3b6cd(++_0x400a27);}(_0x400a,0xe9));const _0xa3b6=function(_0x1fc60e,_0x400a27){_0x1fc60e=_0x1fc60e-0x0;let _0xa3b6cd=_0x400a[_0x1fc60e];return _0xa3b6cd;};import{InlineEditableUIView as _0x2a79cb,EditorUIView as _0x17a00f,LabelView as _0x13f84e}from'ckeditor5/src/ui';import{uid as _0x1ae777}from'ckeditor5/src/utils';import{getTranslation as _0x43d242}from'../../../utils/common-translations';export default class At extends _0x17a00f{constructor(_0x9b0439,_0x26b997){super(_0x9b0439);const _0x2c3579=_0x1ae777();this[_0xa3b6('0xc')]=this[_0xa3b6('0xd')](),this[_0xa3b6('0x10')]=new _0x2a79cb(_0x9b0439,_0x26b997),this[_0xa3b6('0x14')]=this[_0xa3b6('0x13')](_0x2c3579,_0x9b0439),this['setTemplate']({'tag':_0xa3b6('0x9'),'attributes':{'class':[_0xa3b6('0xe'),_0xa3b6('0x2'),'ck-rounded-corners',_0xa3b6('0xa')],'role':_0xa3b6('0x6'),'dir':_0x9b0439['uiLanguageDirection'],'lang':_0x9b0439[_0xa3b6('0xf')],'aria-labelledby':_0xa3b6('0x11')+_0x2c3579},'children':[this['_voiceLabelView'],{'tag':_0xa3b6('0x9'),'attributes':{'class':'ck-editor__main','role':_0xa3b6('0x15')},'children':this['main']}]});}[_0xa3b6('0xb')](){super[_0xa3b6('0xb')](),this[_0xa3b6('0xc')][_0xa3b6('0x5')](this[_0xa3b6('0x10')]);}[_0xa3b6('0x3')](){this[_0xa3b6('0x10')][_0xa3b6('0x8')][_0xa3b6('0x3')]();}[_0xa3b6('0x13')](_0x118ffa,_0x3a1bf7){const _0x137030=new _0x13f84e();return _0x137030[_0xa3b6('0x4')]=_0x43d242(_0x3a1bf7,_0xa3b6('0x1')),_0x137030[_0xa3b6('0x12')]({'attributes':{'id':_0xa3b6('0x7')+_0x118ffa,'class':_0xa3b6('0x0')}}),_0x137030;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x41d9=['_localUser','listenTo','model','removeComment','stopListening','_isAttached','remove','getComment','view','removeCommentThread','destroy','addComment','updateComment'];(function(_0x23b08e,_0x41d963){var _0x340249=function(_0x40e01b){while(--_0x40e01b){_0x23b08e['push'](_0x23b08e['shift']());}};_0x340249(++_0x41d963);}(_0x41d9,0xfa));var _0x3402=function(_0x23b08e,_0x41d963){_0x23b08e=_0x23b08e-0x0;var _0x340249=_0x41d9[_0x23b08e];return _0x340249;};import{ObservableMixin as _0x23c4fb,mix as _0x2a5fdc}from'ckeditor5/src/utils';export default class et{constructor(_0x371904,_0x10b137){this['model']=_0x371904,this['model']['_isAttached']=!0x0,this[_0x3402('0x5')]=_0x10b137,this[_0x3402('0xb')](_0x10b137,_0x3402('0x6'),()=>this['remove']()),this['listenTo'](_0x10b137,_0x3402('0x8'),(_0x339399,_0x981cf5)=>this[_0x3402('0x8')](_0x981cf5)),this['listenTo'](_0x10b137,_0x3402('0x9'),(_0x3b05c9,_0x262d63,_0x54aa84)=>this[_0x3402('0x9')](_0x262d63,_0x54aa84)),this['listenTo'](_0x10b137,_0x3402('0x0'),(_0xff06fe,_0xe29542)=>this[_0x3402('0x0')](_0xe29542));}[_0x3402('0x3')](){this[_0x3402('0xc')][_0x3402('0x3')]();}[_0x3402('0x8')](_0x41cba3){this[_0x3402('0xc')]['addComment']({'content':_0x41cba3,'authorId':this[_0x3402('0x5')][_0x3402('0xa')]['id']});}[_0x3402('0x9')](_0x13cb27,_0x47dd24){this[_0x3402('0xc')]['getComment'](_0x13cb27)['update']({'content':_0x47dd24});}[_0x3402('0x0')](_0x570ae3){this['model'][_0x3402('0x4')](_0x570ae3)['remove']();}[_0x3402('0x7')](){this[_0x3402('0x1')](),this[_0x3402('0xc')][_0x3402('0x2')]=!0x1;}}_0x2a5fdc(et,_0x23c4fb);
23
+ var _0x5520=['updateComment','_isAttached','listenTo','stopListening','addComment','destroy','getComment','removeCommentThread','removeComment','_localUser','remove','view','model'];(function(_0x37efa9,_0x5520dc){var _0x42a809=function(_0x24e97b){while(--_0x24e97b){_0x37efa9['push'](_0x37efa9['shift']());}};_0x42a809(++_0x5520dc);}(_0x5520,0x14f));var _0x42a8=function(_0x37efa9,_0x5520dc){_0x37efa9=_0x37efa9-0x0;var _0x42a809=_0x5520[_0x37efa9];return _0x42a809;};import{ObservableMixin as _0x4f1ff4,mix as _0x1a09ef}from'ckeditor5/src/utils';export default class et{constructor(_0x3b6b70,_0x3c3b49){this[_0x42a8('0x2')]=_0x3b6b70,this[_0x42a8('0x2')]['_isAttached']=!0x0,this[_0x42a8('0x1')]=_0x3c3b49,this[_0x42a8('0x5')](_0x3c3b49,_0x42a8('0xa'),()=>this['remove']()),this[_0x42a8('0x5')](_0x3c3b49,_0x42a8('0x7'),(_0x33dcc8,_0x34d3dc)=>this[_0x42a8('0x7')](_0x34d3dc)),this[_0x42a8('0x5')](_0x3c3b49,_0x42a8('0x3'),(_0x17506c,_0x53098e,_0x59e84d)=>this[_0x42a8('0x3')](_0x53098e,_0x59e84d)),this[_0x42a8('0x5')](_0x3c3b49,_0x42a8('0xb'),(_0x34dae1,_0x47b832)=>this[_0x42a8('0xb')](_0x47b832));}[_0x42a8('0x0')](){this[_0x42a8('0x2')]['remove']();}[_0x42a8('0x7')](_0x56e56c){this['model']['addComment']({'content':_0x56e56c,'authorId':this[_0x42a8('0x1')][_0x42a8('0xc')]['id']});}[_0x42a8('0x3')](_0x1f2b1e,_0x7a08a7){this['model'][_0x42a8('0x9')](_0x1f2b1e)['update']({'content':_0x7a08a7});}[_0x42a8('0xb')](_0x34423d){this[_0x42a8('0x2')][_0x42a8('0x9')](_0x34423d)[_0x42a8('0x0')]();}[_0x42a8('0x8')](){this[_0x42a8('0x6')](),this[_0x42a8('0x2')][_0x42a8('0x4')]=!0x1;}}_0x1a09ef(et,_0x4f1ff4);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as ht}from'ckeditor5/src/ui';import dt from'./commentthreadinputview';import ct from'./commentslistview';export default class Rt extends ht{constructor(_0x39b8f0,_0x2e6cf2,_0x1af308,_0x370863){super(_0x39b8f0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x2e6cf2,this['_localUser']=_0x1af308,this['_config']=_0x370863,this['commentsListView']=new ct(_0x39b8f0,_0x2e6cf2,Object['assign']({'CommentView':this['_config']['CommentView']},_0x370863)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4b30a3,_0x22aabc)=>_0x4b30a3||!!_0x22aabc);}['focus'](){this['element']['focus']();}['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const {t:t}=this['locale'],_0x285be7=new dt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5c18c1=_0x285be7['commentInputView'];return _0x285be7['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',_0x5c18c1,'value',(_0x1215b4,_0x1fb174,_0x40d1ea)=>!!_0x40d1ea||_0x1215b4&&!_0x1fb174),_0x5c18c1['bind']('placeholder')['to'](this,'length',_0x3f0612=>t(_0x3f0612?'Reply...':'Write\x20a\x20comment...')),_0x5c18c1['on']('submit',(_0x25cf8d,_0x19e17c)=>{this['fire']('addComment',_0x19e17c);}),_0x5c18c1['on']('cancel',()=>{this['focus']();}),_0x5c18c1['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5c18c1['on']('cancel',_0x117ec9=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x117ec9['stop']());}),this['on']('change:isActive',(_0x2f5ec2,_0x15bd33,_0x5a817c)=>{_0x5a817c||this['length']||_0x5c18c1['value']||this['fire']('removeCommentThread');}),_0x285be7;}}
23
+ const _0x5ba2=['_localUser','removeCommentThread','stop','locale','destroy','commentsListView','set','updateComment','bind','commentThreadInputView','change:isActive','disabledSubmit','_config','fire','Write\x20a\x20comment...','element','addComment','isReadOnly','editorConfig','showInput','Reply...','submit','CommentView','focus','value','isDirty','assign','_createCommentThreadInputView','removeComment','length','isActive','placeholder','commentInputView','cancel','_model','delegate','hasDirtyComment'];(function(_0x24dc41,_0x5ba208){const _0x5d7301=function(_0x1efce8){while(--_0x1efce8){_0x24dc41['push'](_0x24dc41['shift']());}};_0x5d7301(++_0x5ba208);}(_0x5ba2,0xfe));const _0x5d73=function(_0x24dc41,_0x5ba208){_0x24dc41=_0x24dc41-0x0;let _0x5d7301=_0x5ba2[_0x24dc41];return _0x5d7301;};import{View as _0xbf8f21}from'ckeditor5/src/ui';import _0x2c1d32 from'./commentthreadinputview';import _0x5b8151 from'./commentslistview';import{getTranslation as _0x25204e}from'../../../utils/common-translations';export default class Rt extends _0xbf8f21{constructor(_0x11062a,_0x342ec3,_0x451093,_0x119256){super(_0x11062a),this[_0x5d73('0xb')](_0x5d73('0x23'),!0x1),this[_0x5d73('0xb')](_0x5d73('0x1e'),!0x1),this[_0x5d73('0x2')]=_0x342ec3,this['_localUser']=_0x451093,this[_0x5d73('0x11')]=_0x119256,this[_0x5d73('0xa')]=new _0x5b8151(_0x11062a,_0x342ec3,Object[_0x5d73('0x1f')]({'CommentView':this[_0x5d73('0x11')][_0x5d73('0x1b')]},_0x119256)),this[_0x5d73('0xa')][_0x5d73('0x3')](_0x5d73('0x21'))['to'](this),this[_0x5d73('0xa')][_0x5d73('0x3')](_0x5d73('0xc'))['to'](this),this[_0x5d73('0xa')][_0x5d73('0xd')](_0x5d73('0x23'))['to'](this),this[_0x5d73('0xb')](_0x5d73('0x22'),this['commentsListView'][_0x5d73('0x22')]),this['bind'](_0x5d73('0x22'))['to'](this['commentsListView'],_0x5d73('0x22')),this['commentThreadInputView']=this[_0x5d73('0x20')](),this['on'](_0x5d73('0x21'),()=>this[_0x5d73('0x1c')]()),this['bind'](_0x5d73('0x1e'))['to'](this[_0x5d73('0xa')],_0x5d73('0x4'),this[_0x5d73('0xe')][_0x5d73('0x0')],_0x5d73('0x1d'),(_0x1a0ef9,_0x3b7751)=>_0x1a0ef9||!!_0x3b7751);}[_0x5d73('0x1c')](){this[_0x5d73('0x14')][_0x5d73('0x1c')]();}[_0x5d73('0x9')](){this[_0x5d73('0x1e')]=!0x1,this[_0x5d73('0xa')][_0x5d73('0x9')](),this[_0x5d73('0xe')][_0x5d73('0x9')](),super[_0x5d73('0x9')]();}[_0x5d73('0x20')](){const _0x487193=new _0x2c1d32(this['locale'],this[_0x5d73('0x5')],this['_config'][_0x5d73('0x17')]),_0x5dddf0=_0x487193[_0x5d73('0x0')];return _0x487193[_0x5d73('0xd')](_0x5d73('0x18'))['to'](this,_0x5d73('0x23'),this[_0x5d73('0x2')],_0x5d73('0x16'),_0x5dddf0,_0x5d73('0x1d'),(_0x1d4e41,_0x555c68,_0x13a7ec)=>!!_0x13a7ec||_0x1d4e41&&!_0x555c68),_0x5dddf0['bind'](_0x5d73('0x24'))['to'](this,_0x5d73('0x22'),_0x2eebaa=>_0x25204e(this[_0x5d73('0x8')],_0x2eebaa?_0x5d73('0x19'):_0x5d73('0x13'))),_0x5dddf0['on'](_0x5d73('0x1a'),(_0x2cc4db,_0xd8a654)=>{this[_0x5d73('0x12')](_0x5d73('0x15'),_0xd8a654);}),_0x5dddf0['on'](_0x5d73('0x1'),()=>{this[_0x5d73('0x1c')]();}),_0x5dddf0[_0x5d73('0xd')](_0x5d73('0x10'))['to'](this[_0x5d73('0x2')],_0x5d73('0x16')),_0x5dddf0['on'](_0x5d73('0x1'),_0x596cde=>{0x0==this[_0x5d73('0x22')]&&(this['fire'](_0x5d73('0x6')),_0x596cde[_0x5d73('0x7')]());}),this['on'](_0x5d73('0xf'),(_0x5cfef8,_0x56603e,_0x3c6964)=>{_0x3c6964||this['length']||_0x5dddf0[_0x5d73('0x1d')]||this[_0x5d73('0x12')]('removeCommentThread');}),_0x487193;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x188e=['content','isCollapsed','remove','isReadOnly','fire','destroy','value','expand','_config','set','switchToDisplayMode','visibleView','add','once','_createCommentContentView','get','initialData','_createCommentInputView','disabledSubmit','createCollection','bind','submit','switchToEditMode','cancel','locale','editorReady','element','updateComment','isEditMode','focus','_model','collapse','editorConfig'];(function(_0x2c6fb8,_0x188ed9){const _0x4c41bd=function(_0x72d67f){while(--_0x72d67f){_0x2c6fb8['push'](_0x2c6fb8['shift']());}};_0x4c41bd(++_0x188ed9);}(_0x188e,0x11e));const _0x4c41=function(_0x2c6fb8,_0x188ed9){_0x2c6fb8=_0x2c6fb8-0x0;let _0x4c41bd=_0x188e[_0x2c6fb8];return _0x4c41bd;};import{View as _0x3d1944}from'ckeditor5/src/ui';import{trimHtml as _0x581f05}from'ckeditor5-collaboration/src/collaboration-core';import _0x3638a4 from'./commentcontentview';import _0x3a620b from'./commentinputview';export default class Vt extends _0x3d1944{constructor(_0x79128e,_0x5db6e3,_0x312ce3){super(_0x79128e),this[_0x4c41('0x8')]=_0x5db6e3,this[_0x4c41('0x13')]=_0x312ce3,this[_0x4c41('0x14')](_0x4c41('0x6'),!0x1),this[_0x4c41('0x14')](_0x4c41('0xc'),!0x0),this[_0x4c41('0x16')]=this[_0x4c41('0x1e')](),this[_0x4c41('0x16')][_0x4c41('0x17')](this['_createCommentContentView']());}[_0x4c41('0x12')](){this[_0x4c41('0xc')]=!0x1;}[_0x4c41('0x9')](){this[_0x4c41('0x6')]||(this[_0x4c41('0xc')]=!0x0);}[_0x4c41('0x7')](){this[_0x4c41('0x4')][_0x4c41('0x7')]();}async['destroy'](){await this[_0x4c41('0x16')][_0x4c41('0x1a')](0x0)[_0x4c41('0x10')](),super['destroy']();}[_0x4c41('0x0')](){this['isEditMode']||(this[_0x4c41('0x6')]=!0x0,this[_0x4c41('0x16')]['remove'](0x0)[_0x4c41('0x10')](),this[_0x4c41('0x16')][_0x4c41('0x17')](this['_createCommentInputView']()));}[_0x4c41('0x15')](){this[_0x4c41('0x6')]&&(this[_0x4c41('0x6')]=!0x1,this[_0x4c41('0x16')][_0x4c41('0xd')](0x0)[_0x4c41('0x10')](),this[_0x4c41('0x16')][_0x4c41('0x17')](this[_0x4c41('0x19')]()));}[_0x4c41('0x19')](){const _0x26b5b3=new _0x3638a4(this[_0x4c41('0x2')]);return _0x26b5b3['bind'](_0x4c41('0xb'))['to'](this[_0x4c41('0x8')],'content',this,_0x4c41('0xc'),(_0x428175,_0x4d3338)=>_0x4d3338?_0x581f05(_0x428175,{'limit':this[_0x4c41('0x13')]['maxCommentCharsWhenCollapsed']}):_0x428175),_0x26b5b3;}[_0x4c41('0x1c')](){this['_config']['editorConfig']||(this[_0x4c41('0x13')]['editorConfig']={}),this[_0x4c41('0x13')][_0x4c41('0xa')][_0x4c41('0x1b')]=this[_0x4c41('0x8')]['content'];const _0x20b625=new _0x3a620b(this[_0x4c41('0x2')],this[_0x4c41('0x13')]['editorConfig']);return _0x20b625[_0x4c41('0x11')]=this[_0x4c41('0x8')][_0x4c41('0xb')],_0x20b625[_0x4c41('0x1f')](_0x4c41('0x1d'))['to'](this['_model'],_0x4c41('0xe')),_0x20b625['on'](_0x4c41('0x20'),(_0x3586a2,_0x2cc66e)=>{this[_0x4c41('0xf')](_0x4c41('0x5'),this['_model']['id'],_0x2cc66e),this[_0x4c41('0x15')](),this[_0x4c41('0x7')]();}),_0x20b625['on'](_0x4c41('0x1'),()=>{this['switchToDisplayMode'](),this[_0x4c41('0x7')]();}),_0x20b625[_0x4c41('0x18')](_0x4c41('0x3'),()=>{_0x20b625[_0x4c41('0x7')]();}),_0x20b625;}}
23
+ const _0x31bd=['set','element','_config','_model','switchToDisplayMode','bind','add','focus','remove','visibleView','disabledSubmit','isEditMode','once','destroy','content','_createCommentContentView','submit','editorReady','get','_createCommentInputView','expand','locale','value','updateComment','fire','initialData','editorConfig','isCollapsed','switchToEditMode'];(function(_0x5bd955,_0x31bda6){const _0x189bd4=function(_0x553ba4){while(--_0x553ba4){_0x5bd955['push'](_0x5bd955['shift']());}};_0x189bd4(++_0x31bda6);}(_0x31bd,0x1e6));const _0x189b=function(_0x5bd955,_0x31bda6){_0x5bd955=_0x5bd955-0x0;let _0x189bd4=_0x31bd[_0x5bd955];return _0x189bd4;};import{View as _0x27aa98}from'ckeditor5/src/ui';import{trimHtml as _0x397025}from'ckeditor5-collaboration/src/collaboration-core';import _0x5c1987 from'./commentcontentview';import _0x6a1e0c from'./commentinputview';export default class Vt extends _0x27aa98{constructor(_0x4f2959,_0x1f8167,_0x57c1cb){super(_0x4f2959),this[_0x189b('0xa')]=_0x1f8167,this[_0x189b('0x9')]=_0x57c1cb,this[_0x189b('0x7')](_0x189b('0x12'),!0x1),this[_0x189b('0x7')](_0x189b('0x5'),!0x0),this['visibleView']=this['createCollection'](),this[_0x189b('0x10')]['add'](this['_createCommentContentView']());}[_0x189b('0x1b')](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this[_0x189b('0x5')]=!0x0);}[_0x189b('0xe')](){this[_0x189b('0x8')][_0x189b('0xe')]();}async['destroy'](){await this[_0x189b('0x10')][_0x189b('0x19')](0x0)['destroy'](),super[_0x189b('0x14')]();}[_0x189b('0x6')](){this[_0x189b('0x12')]||(this['isEditMode']=!0x0,this[_0x189b('0x10')][_0x189b('0xf')](0x0)[_0x189b('0x14')](),this[_0x189b('0x10')][_0x189b('0xd')](this[_0x189b('0x1a')]()));}[_0x189b('0xb')](){this['isEditMode']&&(this[_0x189b('0x12')]=!0x1,this['visibleView'][_0x189b('0xf')](0x0)[_0x189b('0x14')](),this['visibleView']['add'](this[_0x189b('0x16')]()));}['_createCommentContentView'](){const _0x4ff205=new _0x5c1987(this[_0x189b('0x1c')]);return _0x4ff205['bind'](_0x189b('0x15'))['to'](this[_0x189b('0xa')],_0x189b('0x15'),this,'isCollapsed',(_0x2b2a3c,_0x502636)=>_0x502636?_0x397025(_0x2b2a3c,{'limit':this[_0x189b('0x9')]['maxCommentCharsWhenCollapsed']}):_0x2b2a3c),_0x4ff205;}[_0x189b('0x1a')](){this[_0x189b('0x9')][_0x189b('0x4')]||(this[_0x189b('0x9')][_0x189b('0x4')]={}),this['_config']['editorConfig'][_0x189b('0x3')]=this['_model'][_0x189b('0x15')];const _0x81360d=new _0x6a1e0c(this[_0x189b('0x1c')],this['_config'][_0x189b('0x4')]);return _0x81360d[_0x189b('0x0')]=this['_model']['content'],_0x81360d[_0x189b('0xc')](_0x189b('0x11'))['to'](this['_model'],'isReadOnly'),_0x81360d['on'](_0x189b('0x17'),(_0x3dca3e,_0x1f7cba)=>{this[_0x189b('0x2')](_0x189b('0x1'),this[_0x189b('0xa')]['id'],_0x1f7cba),this[_0x189b('0xb')](),this['focus']();}),_0x81360d['on']('cancel',()=>{this[_0x189b('0xb')](),this[_0x189b('0xe')]();}),_0x81360d[_0x189b('0x13')](_0x189b('0x18'),()=>{_0x81360d[_0x189b('0xe')]();}),_0x81360d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as ht}from'ckeditor5/src/ui';export default class Nt extends ht{constructor(_0x2c47db){super(_0x2c47db);const {t:t}=_0x2c47db,_0x4253db=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4253db['to']('count',_0x4bb268=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x4bb268))}]});}}
23
+ const _0x1651=['set','count','bindTemplate','setTemplate'];(function(_0x3862b2,_0x1651df){const _0x3cc564=function(_0x15acdb){while(--_0x15acdb){_0x3862b2['push'](_0x3862b2['shift']());}};_0x3cc564(++_0x1651df);}(_0x1651,0x151));const _0x3cc5=function(_0x3862b2,_0x1651df){_0x3862b2=_0x3862b2-0x0;let _0x3cc564=_0x1651[_0x3862b2];return _0x3cc564;};import{View as _0x562d2c}from'ckeditor5/src/ui';import{getTranslation as _0x435fef}from'../../../utils/common-translations';export default class Nt extends _0x562d2c{constructor(_0x1d1735){super(_0x1d1735);const _0x443786=this[_0x3cc5('0x1')];this[_0x3cc5('0x3')](_0x3cc5('0x0')),this[_0x3cc5('0x2')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x443786['to'](_0x3cc5('0x0'),_0x15a6be=>_0x435fef(_0x1d1735,'NUMBER_OF_COMMENTS',_0x15a6be))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x57c2=['innerHTML','ck-annotation__content','element','setTemplate','change:content','content','ck-comment__content','render'];(function(_0x22f568,_0x57c2d7){var _0x3a9c38=function(_0x365fbd){while(--_0x365fbd){_0x22f568['push'](_0x22f568['shift']());}};_0x3a9c38(++_0x57c2d7);}(_0x57c2,0xf6));var _0x3a9c=function(_0x22f568,_0x57c2d7){_0x22f568=_0x22f568-0x0;var _0x3a9c38=_0x57c2[_0x22f568];return _0x3a9c38;};import{View as _0x1df3a4}from'ckeditor5/src/ui';export default class Et extends _0x1df3a4{constructor(_0x240cca){super(_0x240cca),this['set'](_0x3a9c('0x7'),''),this[_0x3a9c('0x5')]({'tag':'div','attributes':{'class':[_0x3a9c('0x0'),_0x3a9c('0x3')]}});}['render'](){super[_0x3a9c('0x1')](),this['on'](_0x3a9c('0x6'),(_0x293978,_0x4ffe5b,_0x1bf013)=>{this[_0x3a9c('0x4')][_0x3a9c('0x2')]=_0x1bf013;}),this[_0x3a9c('0x4')][_0x3a9c('0x2')]=this[_0x3a9c('0x7')];}}
23
+ var _0x46e5=['div','ck-comment__content','ck-annotation__content','element','render','innerHTML','setTemplate','content'];(function(_0x10354c,_0x46e5f6){var _0x55c1b8=function(_0x177193){while(--_0x177193){_0x10354c['push'](_0x10354c['shift']());}};_0x55c1b8(++_0x46e5f6);}(_0x46e5,0xa8));var _0x55c1=function(_0x10354c,_0x46e5f6){_0x10354c=_0x10354c-0x0;var _0x55c1b8=_0x46e5[_0x10354c];return _0x55c1b8;};import{View as _0x165529}from'ckeditor5/src/ui';export default class Et extends _0x165529{constructor(_0x130f66){super(_0x130f66),this['set'](_0x55c1('0x7'),''),this[_0x55c1('0x6')]({'tag':_0x55c1('0x0'),'attributes':{'class':[_0x55c1('0x1'),_0x55c1('0x2')]}});}[_0x55c1('0x4')](){super[_0x55c1('0x4')](),this['on']('change:content',(_0x2574b9,_0x247c23,_0x97f1a1)=>{this[_0x55c1('0x3')][_0x55c1('0x5')]=_0x97f1a1;}),this[_0x55c1('0x3')][_0x55c1('0x5')]=this[_0x55c1('0x7')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as ht,ViewCollection as Bt,FocusCycler as St,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x183981,KeystrokeHandler as pt}from'ckeditor5/src/utils';import{icons as Gt}from'ckeditor5/src/core';import qt from'../commenteditor/commenteditor';export default class Tt extends ht{constructor(_0x2e88a5,_0x264e34={}){super(_0x2e88a5);const {t:t}=_0x2e88a5;this['editor']=new qt(_0x264e34),this['keystrokes']=new pt(),this['focusTracker']=new _0x183981(),this['set']('value',_0x264e34['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',t('Reply...')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x1cb92c,_0x4d1c4c)=>{this['cancelButtonView']['fire']('execute'),_0x4d1c4c();}),this['on']('submit',(_0x205e8f,_0x960e44)=>{_0x960e44['length']>0xfde8?(alert(t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},[_0x960e44['length'],0xfde8])),_0x205e8f['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x1952f7,element:_0x163d84}=this;this['keystrokes']['listenTo'](_0x163d84),this['focusTracker']['add'](_0x163d84),this['_editorCreationPromise']=_0x1952f7['create']()['then'](()=>{_0x163d84['insertBefore'](_0x1952f7['ui']['element'],_0x163d84['firstChild']),_0x1952f7['model']['document']['on']('change',()=>this['value']=_0x1952f7['getData']()),_0x1952f7['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x1952f7),this['fire']('editorReady');});}['focus'](){this['editor']['focus']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['isRendered']&&(await this['_editorCreationPromise'],await this['editor']['destroy']()),await super['destroy']());}['_createSubmitButton'](){const _0x2da0ed=new mt(this['locale']),{t:t}=this['locale'];return _0x2da0ed['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2da0ed['label']=t('Submit'),_0x2da0ed['icon']=Gt['check'],_0x2da0ed['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x2da0ed['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2888d7,_0x7d3a92)=>!_0x7d3a92&&!!_0x2888d7['trim']()),_0x2da0ed;}['_createCancelButton'](){const _0x1b21b8=new mt(this['locale']),{t:t}=this['locale'];return _0x1b21b8['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x1b21b8['label']=t('Cancel'),_0x1b21b8['icon']=Gt['cancel'],_0x1b21b8['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x1b21b8;}['_initializeFocusCycling'](_0x3e83fd){const _0x28c33b=this['focusTracker'],_0x25a881=new Bt();[_0x3e83fd['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x26d4c9=>{_0x25a881['add'](_0x26d4c9),_0x28c33b['add'](_0x26d4c9['element']);});const _0x4cdec5=new St({'focusables':_0x25a881,'focusTracker':_0x28c33b});this['keystrokes']['set']('tab',(_0x3b1a5f,_0x6e0ca0)=>{_0x4cdec5['focusNext'](),_0x6e0ca0();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x445987,_0x16f99c)=>{_0x4cdec5['focusPrevious'](),_0x16f99c();},{'priority':'low'});}}
23
+ const _0x19ef=['getData','destroy','execute','initialData','extendTemplate','focusPrevious','forEach','add','Esc','focusTracker','cancel','Cancel','ck-comment__input-wrapper','ck-comment__input-actions--active','setData','insertBefore','icon','then','element','editorReady','_createCancelButton','editor','bind','submitButtonView','tab','set','listenTo','disabledSubmit','submit','shift\x20+\x20tab','fire','render','model','showButtons','placeholder','_editorCreationPromise','Submit','high','_initializeFocusCycling','Reply...','document','keystrokes','view','cancelButtonView','trim','div','focus','firstChild','_createSubmitButton','length','focusNext','low','_isDestroyed','value','ck-comment__input-actions','ck-comment__input-actions--cancel'];(function(_0x4240d0,_0x19ef0b){const _0x10347f=function(_0x51967f){while(--_0x51967f){_0x4240d0['push'](_0x4240d0['shift']());}};_0x10347f(++_0x19ef0b);}(_0x19ef,0x17a));const _0x1034=function(_0x4240d0,_0x19ef0b){_0x4240d0=_0x4240d0-0x0;let _0x10347f=_0x19ef[_0x4240d0];return _0x10347f;};import{View as _0x2e3ad0,ViewCollection as _0x2099d0,FocusCycler as _0x5cd270,ButtonView as _0x50a041}from'ckeditor5/src/ui';import{FocusTracker as _0x2593ed,KeystrokeHandler as _0x116426}from'ckeditor5/src/utils';import{icons as _0x3206fd}from'ckeditor5/src/core';import _0x4fa690 from'../commenteditor/commenteditor';import{getTranslation as _0x2a4f5f}from'../../../utils/common-translations';export default class Tt extends _0x2e3ad0{constructor(_0x57ce62,_0x3466f1={}){super(_0x57ce62),this[_0x1034('0x23')]=new _0x4fa690(_0x3466f1),this[_0x1034('0x37')]=new _0x116426(),this[_0x1034('0x17')]=new _0x2593ed(),this['set'](_0x1034('0xb'),_0x3466f1[_0x1034('0x11')]||''),this[_0x1034('0x27')](_0x1034('0x29'),!0x1),this[_0x1034('0x27')](_0x1034('0x2f'),!0x0),this[_0x1034('0x27')](_0x1034('0x30'),_0x2a4f5f(_0x57ce62,_0x1034('0x35'))),this[_0x1034('0x25')]=this[_0x1034('0x6')](),this['cancelButtonView']=this['_createCancelButton'](),this['setTemplate']({'tag':_0x1034('0x3'),'attributes':{'class':[_0x1034('0x1a')]},'children':[{'tag':_0x1034('0x3'),'attributes':{'class':[_0x1034('0xc'),this['bindTemplate']['if'](_0x1034('0x2f'),_0x1034('0x1b'))]},'children':[this[_0x1034('0x25')],this[_0x1034('0x1')]]}]}),this[_0x1034('0x37')][_0x1034('0x27')](_0x1034('0x16'),(_0x1986c9,_0x5be890)=>{this[_0x1034('0x1')][_0x1034('0x2c')](_0x1034('0x10')),_0x5be890();}),this['on'](_0x1034('0x2a'),(_0x443761,_0x11b405)=>{_0x11b405['length']>0xfde8?(alert(_0x2a4f5f(_0x57ce62,'TOO_LONG_COMMENT_ALERT',[_0x11b405[_0x1034('0x7')],0xfde8])),_0x443761['stop']()):this[_0x1034('0x23')][_0x1034('0x1c')]('');},{'priority':_0x1034('0x33')});}[_0x1034('0x2d')](){super[_0x1034('0x2d')]();const {editor:_0x4c709a,element:_0x15b485}=this;this[_0x1034('0x37')][_0x1034('0x28')](_0x15b485),this[_0x1034('0x17')][_0x1034('0x15')](_0x15b485),this['_editorCreationPromise']=_0x4c709a['create']()[_0x1034('0x1f')](()=>{_0x15b485[_0x1034('0x1d')](_0x4c709a['ui'][_0x1034('0x20')],_0x15b485[_0x1034('0x5')]),_0x4c709a[_0x1034('0x2e')][_0x1034('0x36')]['on']('change',()=>this[_0x1034('0xb')]=_0x4c709a[_0x1034('0xe')]()),_0x4c709a[_0x1034('0x24')]('placeholder')['to'](this),this[_0x1034('0x34')](_0x4c709a),this['fire'](_0x1034('0x21'));});}[_0x1034('0x4')](){this['editor'][_0x1034('0x4')]();}async[_0x1034('0xf')](){this['_isDestroyed']||(this[_0x1034('0xa')]=!0x0,this['isRendered']&&(await this[_0x1034('0x31')],await this[_0x1034('0x23')][_0x1034('0xf')]()),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x4d6b5e}=this,_0x2893b4=new _0x50a041(_0x4d6b5e);return _0x2893b4[_0x1034('0x12')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2893b4['label']=_0x2a4f5f(_0x4d6b5e,_0x1034('0x32')),_0x2893b4[_0x1034('0x1e')]=_0x3206fd['check'],_0x2893b4['on']('execute',()=>{this[_0x1034('0x2c')](_0x1034('0x2a'),this[_0x1034('0xb')]);}),_0x2893b4['bind']('isEnabled')['to'](this,_0x1034('0xb'),this,_0x1034('0x29'),(_0x543e6e,_0x1bcd36)=>!_0x1bcd36&&!!_0x543e6e[_0x1034('0x2')]()),_0x2893b4;}[_0x1034('0x22')](){const {locale:_0x5026b6}=this,_0x4c2a26=new _0x50a041(_0x5026b6);return _0x4c2a26[_0x1034('0x12')]({'attributes':{'class':[_0x1034('0xd')]}}),_0x4c2a26['label']=_0x2a4f5f(_0x5026b6,_0x1034('0x19')),_0x4c2a26[_0x1034('0x1e')]=_0x3206fd[_0x1034('0x18')],_0x4c2a26['on'](_0x1034('0x10'),()=>{this['editor'][_0x1034('0x1c')](''),this['fire'](_0x1034('0x18'));}),_0x4c2a26;}['_initializeFocusCycling'](_0x1caf22){const _0x1edcac=this['focusTracker'],_0x577442=new _0x2099d0();[_0x1caf22['ui'][_0x1034('0x0')],this[_0x1034('0x25')],this[_0x1034('0x1')]][_0x1034('0x14')](_0x2de9af=>{_0x577442[_0x1034('0x15')](_0x2de9af),_0x1edcac[_0x1034('0x15')](_0x2de9af[_0x1034('0x20')]);});const _0x401cf4=new _0x5cd270({'focusables':_0x577442,'focusTracker':_0x1edcac});this['keystrokes'][_0x1034('0x27')](_0x1034('0x26'),(_0x397b7d,_0x53f197)=>{_0x401cf4[_0x1034('0x8')](),_0x53f197();},{'priority':'low'}),this[_0x1034('0x37')][_0x1034('0x27')](_0x1034('0x2b'),(_0x7726a3,_0x3ef709)=>{_0x401cf4[_0x1034('0x13')](),_0x3ef709();},{'priority':_0x1034('0x9')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2500=['createCollection','_updateHasDirtyComment','equal','length','listenTo','some','bind','expand','isEditMode','locale','remove','_config','collapse','stopListening','maxCommentsWhenCollapsed','comments','set','CommentView','visibleViews','hasDirtyComment','destroy','_shouldCollapse','count','focus','formatDateTime','weight','commentViews','maxCommentCharsWhenCollapsed','removeComment','get','insert','_handleRemoveCommentModel','viewUid','_handleNewCommentModel','_rearrangeCollapse','editorConfig','_collapsedCommentsView','add','commentUpdated','element','from','refreshVisibleViews','render','setTemplate','_rearrangeExpand','delegate','isActive'];(function(_0x588f0b,_0x250065){const _0x525bcc=function(_0xda124a){while(--_0xda124a){_0x588f0b['push'](_0x588f0b['shift']());}};_0x525bcc(++_0x250065);}(_0x2500,0x1d8));const _0x525b=function(_0x588f0b,_0x250065){_0x588f0b=_0x588f0b-0x0;let _0x525bcc=_0x2500[_0x588f0b];return _0x525bcc;};import{View as _0x5842d2}from'ckeditor5/src/ui';import{diff as _0x44c214,Collection as _0x3a4989}from'ckeditor5/src/utils';import _0x558647 from'./collapsedcommentsview';export default class ct extends _0x5842d2{constructor(_0x218c87,_0x1c68c8,_0x137d8c){super(_0x218c87),this['set'](_0x525b('0x11'),!0x1),this[_0x525b('0xe')]('length',_0x1c68c8[_0x525b('0xd')]['length']),this['set'](_0x525b('0x2c'),!0x1),this['_model']=_0x1c68c8,this[_0x525b('0x9')]=_0x137d8c,this['commentViews']=this['createCollection'](),this[_0x525b('0x10')]=this[_0x525b('0x2d')](),this[_0x525b('0x22')]=new _0x558647(_0x218c87),this['_collapsedCommentsView'][_0x525b('0x4')](_0x525b('0x14'))['to'](this,_0x525b('0x1'),_0x37ca35=>_0x37ca35-this[_0x525b('0x9')][_0x525b('0xc')]);for(const _0x3096b5 of _0x1c68c8['comments'])this[_0x525b('0x1f')](_0x3096b5);this[_0x525b('0x2')](_0x1c68c8[_0x525b('0xd')],_0x525b('0x23'),(_0x216391,_0x113a58)=>{this['length']++,this[_0x525b('0x1f')](_0x113a58),this[_0x525b('0x27')]();}),this[_0x525b('0x2')](_0x1c68c8[_0x525b('0xd')],'remove',(_0x1eb89d,_0x1defb4)=>{this[_0x525b('0x1')]--,this[_0x525b('0x1d')](_0x1defb4),this['refreshVisibleViews']();}),this['listenTo'](_0x1c68c8,_0x525b('0x24'),()=>this[_0x525b('0x27')]()),this['on']('change:isActive',()=>this[_0x525b('0x27')]()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this[_0x525b('0x29')]({'tag':'ul','attributes':{'class':['ck-thread__comments']},'children':this[_0x525b('0x10')]});}get[_0x525b('0x13')](){return this['_model'][_0x525b('0x17')]>this[_0x525b('0x9')]['maxThreadTotalWeight']&&!this[_0x525b('0x2c')]&&!this['hasDirtyComment'];}['render'](){super[_0x525b('0x28')](),this[_0x525b('0x27')]();}['focus'](){this[_0x525b('0x25')][_0x525b('0x15')]();}[_0x525b('0x12')](){this[_0x525b('0x22')][_0x525b('0x12')]();for(const _0x4df196 of this[_0x525b('0x18')])_0x4df196[_0x525b('0x12')]();super[_0x525b('0x12')]();}['refreshVisibleViews'](){this[_0x525b('0x13')]?this[_0x525b('0x20')]():this[_0x525b('0x2a')]();}[_0x525b('0x1f')](_0x153d99){const _0xa8819f=new this[(_0x525b('0x9'))][(_0x525b('0xf'))](this[_0x525b('0x7')],_0x153d99,{'maxCommentCharsWhenCollapsed':this[_0x525b('0x9')][_0x525b('0x19')],'formatDateTime':this[_0x525b('0x9')][_0x525b('0x16')],'editorConfig':this[_0x525b('0x9')][_0x525b('0x21')]});_0xa8819f[_0x525b('0x1e')]=_0x153d99['id'],_0xa8819f['delegate'](_0x525b('0x1a'))['to'](this),_0xa8819f[_0x525b('0x2b')]('updateComment')['to'](this),this[_0x525b('0x2')](_0xa8819f,'change:isEditMode',()=>this[_0x525b('0x2e')]()),this['commentViews'][_0x525b('0x23')](_0xa8819f);}['_handleRemoveCommentModel'](_0x2036f4){const _0x14dd04=this['commentViews'][_0x525b('0x8')](_0x2036f4['id']);this[_0x525b('0xb')](_0x14dd04),_0x14dd04[_0x525b('0x6')]&&this[_0x525b('0x2e')](),_0x14dd04['destroy']();}[_0x525b('0x2e')](){this[_0x525b('0x11')]=Array['from'](this[_0x525b('0x18')])[_0x525b('0x3')](_0x41a3bf=>_0x41a3bf[_0x525b('0x6')]);}['_rearrangeCollapse'](){const _0x13d590=function(_0x4121a3){const _0x451437=new _0x3a4989();for(const _0x4c9314 of _0x4121a3)_0x451437[_0x525b('0x23')](_0x4c9314);return _0x451437;}(this[_0x525b('0x18')]),_0x2dd10c=this[_0x525b('0x22')][_0x525b('0x14')];for(let _0x55a34a=0x1;_0x55a34a<=_0x2dd10c;_0x55a34a++)_0x13d590['remove'](0x1);for(const _0x15b399 of _0x13d590)_0x15b399[_0x525b('0xa')]();_0x2dd10c>0x0&&_0x13d590[_0x525b('0x23')](this['_collapsedCommentsView'],0x1),Ut(_0x44c214(Array[_0x525b('0x26')](this[_0x525b('0x10')]),Array[_0x525b('0x26')](_0x13d590)),this[_0x525b('0x10')],_0x13d590);}['_rearrangeExpand'](){Ut(_0x44c214(Array[_0x525b('0x26')](this[_0x525b('0x10')]),Array['from'](this[_0x525b('0x18')])),this[_0x525b('0x10')],this[_0x525b('0x18')]);for(const _0x898436 of this[_0x525b('0x10')])_0x898436[_0x525b('0x5')]();}}function Ut(_0x4747f4,_0x157de8,_0x131c29){let _0x151bf0=0x0;for(const _0x125f35 of _0x4747f4)switch(_0x125f35){case _0x525b('0x1c'):_0x157de8['add'](_0x131c29[_0x525b('0x1b')](_0x151bf0),_0x151bf0),_0x151bf0++;break;case'delete':_0x157de8[_0x525b('0x8')](_0x151bf0);break;case _0x525b('0x0'):_0x151bf0++;}}
23
+ const _0xfe39=['_model','maxThreadTotalWeight','editorConfig','change:hasDirtyComment','_config','_handleRemoveCommentModel','insert','render','commentViews','change:isActive','isEditMode','stopListening','formatDateTime','weight','get','delete','from','length','visibleViews','_handleNewCommentModel','equal','_rearrangeExpand','_collapsedCommentsView','set','listenTo','destroy','refreshVisibleViews','maxCommentsWhenCollapsed','_rearrangeCollapse','ck-thread__comments','_updateHasDirtyComment','change:isEditMode','viewUid','hasDirtyComment','comments','add','remove','focus','createCollection','delegate','_shouldCollapse','count','isActive'];(function(_0x3deabc,_0xfe39a1){const _0x5ea267=function(_0x5b0edb){while(--_0x5b0edb){_0x3deabc['push'](_0x3deabc['shift']());}};_0x5ea267(++_0xfe39a1);}(_0xfe39,0x168));const _0x5ea2=function(_0x3deabc,_0xfe39a1){_0x3deabc=_0x3deabc-0x0;let _0x5ea267=_0xfe39[_0x3deabc];return _0x5ea267;};import{View as _0x4dfe29}from'ckeditor5/src/ui';import{diff as _0x57ea00,Collection as _0x119050}from'ckeditor5/src/utils';import _0x102404 from'./collapsedcommentsview';export default class ct extends _0x4dfe29{constructor(_0x204ecb,_0x345055,_0x2df68f){super(_0x204ecb),this[_0x5ea2('0x7')]('hasDirtyComment',!0x1),this[_0x5ea2('0x7')](_0x5ea2('0x1'),_0x345055['comments'][_0x5ea2('0x1')]),this[_0x5ea2('0x7')](_0x5ea2('0x1a'),!0x1),this[_0x5ea2('0x1b')]=_0x345055,this[_0x5ea2('0x1f')]=_0x2df68f,this[_0x5ea2('0x23')]=this[_0x5ea2('0x16')](),this['visibleViews']=this[_0x5ea2('0x16')](),this[_0x5ea2('0x6')]=new _0x102404(_0x204ecb),this[_0x5ea2('0x6')]['bind'](_0x5ea2('0x19'))['to'](this,'length',_0x41adf2=>_0x41adf2-this[_0x5ea2('0x1f')][_0x5ea2('0xb')]);for(const _0x278810 of _0x345055[_0x5ea2('0x12')])this[_0x5ea2('0x3')](_0x278810);this['listenTo'](_0x345055[_0x5ea2('0x12')],_0x5ea2('0x13'),(_0x1e82aa,_0x10c9ab)=>{this[_0x5ea2('0x1')]++,this[_0x5ea2('0x3')](_0x10c9ab),this['refreshVisibleViews']();}),this['listenTo'](_0x345055['comments'],_0x5ea2('0x14'),(_0x367ae9,_0x8b4a24)=>{this[_0x5ea2('0x1')]--,this[_0x5ea2('0x20')](_0x8b4a24),this[_0x5ea2('0xa')]();}),this['listenTo'](_0x345055,'commentUpdated',()=>this['refreshVisibleViews']()),this['on'](_0x5ea2('0x24'),()=>this[_0x5ea2('0xa')]()),this['on'](_0x5ea2('0x1e'),()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x5ea2('0xd')]},'children':this[_0x5ea2('0x2')]});}get['_shouldCollapse'](){return this[_0x5ea2('0x1b')][_0x5ea2('0x28')]>this[_0x5ea2('0x1f')][_0x5ea2('0x1c')]&&!this['isActive']&&!this['hasDirtyComment'];}[_0x5ea2('0x22')](){super[_0x5ea2('0x22')](),this[_0x5ea2('0xa')]();}[_0x5ea2('0x15')](){this['element']['focus']();}[_0x5ea2('0x9')](){this[_0x5ea2('0x6')][_0x5ea2('0x9')]();for(const _0x522100 of this['commentViews'])_0x522100[_0x5ea2('0x9')]();super[_0x5ea2('0x9')]();}[_0x5ea2('0xa')](){this[_0x5ea2('0x18')]?this[_0x5ea2('0xc')]():this[_0x5ea2('0x5')]();}['_handleNewCommentModel'](_0x506d83){const _0x5afb66=new this['_config']['CommentView'](this['locale'],_0x506d83,{'maxCommentCharsWhenCollapsed':this[_0x5ea2('0x1f')]['maxCommentCharsWhenCollapsed'],'formatDateTime':this[_0x5ea2('0x1f')][_0x5ea2('0x27')],'editorConfig':this[_0x5ea2('0x1f')][_0x5ea2('0x1d')]});_0x5afb66[_0x5ea2('0x10')]=_0x506d83['id'],_0x5afb66[_0x5ea2('0x17')]('removeComment')['to'](this),_0x5afb66[_0x5ea2('0x17')]('updateComment')['to'](this),this[_0x5ea2('0x8')](_0x5afb66,_0x5ea2('0xf'),()=>this[_0x5ea2('0xe')]()),this[_0x5ea2('0x23')][_0x5ea2('0x13')](_0x5afb66);}[_0x5ea2('0x20')](_0x26dccb){const _0x586592=this[_0x5ea2('0x23')]['remove'](_0x26dccb['id']);this[_0x5ea2('0x26')](_0x586592),_0x586592[_0x5ea2('0x25')]&&this['_updateHasDirtyComment'](),_0x586592['destroy']();}[_0x5ea2('0xe')](){this[_0x5ea2('0x11')]=Array[_0x5ea2('0x0')](this[_0x5ea2('0x23')])['some'](_0xf9b0e7=>_0xf9b0e7[_0x5ea2('0x25')]);}['_rearrangeCollapse'](){const _0x32eed9=function(_0x4ddfa6){const _0x2b728c=new _0x119050();for(const _0x3910f8 of _0x4ddfa6)_0x2b728c[_0x5ea2('0x13')](_0x3910f8);return _0x2b728c;}(this[_0x5ea2('0x23')]),_0x42af8e=this[_0x5ea2('0x6')][_0x5ea2('0x19')];for(let _0x8fd3ca=0x1;_0x8fd3ca<=_0x42af8e;_0x8fd3ca++)_0x32eed9[_0x5ea2('0x14')](0x1);for(const _0x3c52b6 of _0x32eed9)_0x3c52b6['collapse']();_0x42af8e>0x0&&_0x32eed9['add'](this['_collapsedCommentsView'],0x1),Ut(_0x57ea00(Array['from'](this[_0x5ea2('0x2')]),Array[_0x5ea2('0x0')](_0x32eed9)),this[_0x5ea2('0x2')],_0x32eed9);}[_0x5ea2('0x5')](){Ut(_0x57ea00(Array[_0x5ea2('0x0')](this['visibleViews']),Array[_0x5ea2('0x0')](this[_0x5ea2('0x23')])),this[_0x5ea2('0x2')],this['commentViews']);for(const _0x2adc08 of this[_0x5ea2('0x2')])_0x2adc08['expand']();}}function Ut(_0x2e26fa,_0x43fb20,_0x402904){let _0x4b489d=0x0;for(const _0x214fe3 of _0x2e26fa)switch(_0x214fe3){case _0x5ea2('0x21'):_0x43fb20['add'](_0x402904[_0x5ea2('0x29')](_0x4b489d),_0x4b489d),_0x4b489d++;break;case _0x5ea2('0x2a'):_0x43fb20['remove'](_0x4b489d);break;case _0x5ea2('0x4'):_0x4b489d++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5c5f=['isFocused','bindTemplate','ck-comment__input-container--active','then','ck-thread__input','value','commentInputView','focusTracker','userView','showInput','destroy','extendTemplate'];(function(_0x3bf806,_0x5c5f42){var _0x495155=function(_0x501457){while(--_0x501457){_0x3bf806['push'](_0x3bf806['shift']());}};_0x495155(++_0x5c5f42);}(_0x5c5f,0x160));var _0x4951=function(_0x3bf806,_0x5c5f42){_0x3bf806=_0x3bf806-0x0;var _0x495155=_0x5c5f[_0x3bf806];return _0x495155;};import{View as _0x64d64d}from'ckeditor5/src/ui';import _0x1c50f2 from'./commentinputview';import{UserView as _0x3e5ce2}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x64d64d{constructor(_0x420bd4,_0x3cf3cf,_0x50cf5b){super(_0x420bd4),this[_0x4951('0x2')]=new _0x1c50f2(_0x420bd4,_0x50cf5b),this[_0x4951('0x2')]['bind']('showButtons')['to'](this[_0x4951('0x2')][_0x4951('0x3')],_0x4951('0x8'),this[_0x4951('0x2')],_0x4951('0x1'),(_0x4fe662,_0x7f47ae)=>_0x4fe662||!!_0x7f47ae),this['set'](_0x4951('0x5'),!0x1),this[_0x4951('0x4')]=new _0x3e5ce2(_0x420bd4,_0x3cf3cf),this[_0x4951('0x4')][_0x4951('0x7')]({'attributes':{'class':'ck-thread__user'}}),this[_0x4951('0x2')]['extendTemplate']({'attributes':{'class':_0x4951('0x0')}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this[_0x4951('0x9')]['if'](_0x4951('0x5'),_0x4951('0xa'))]},'children':[this[_0x4951('0x4')],this['commentInputView']]});}[_0x4951('0x6')](){return this['commentInputView'][_0x4951('0x6')]()[_0x4951('0xb')](()=>super[_0x4951('0x6')]());}}
23
+ var _0x98c5=['destroy','ck-comment__input-container--active','userView','div','ck-comment__input-container','showInput','commentInputView','ck-thread__user','setTemplate','then','value','isFocused','ck-thread__input','extendTemplate'];(function(_0x1998eb,_0x98c5c5){var _0x17a38f=function(_0x8cd8b5){while(--_0x8cd8b5){_0x1998eb['push'](_0x1998eb['shift']());}};_0x17a38f(++_0x98c5c5);}(_0x98c5,0xcf));var _0x17a3=function(_0x1998eb,_0x98c5c5){_0x1998eb=_0x1998eb-0x0;var _0x17a38f=_0x98c5[_0x1998eb];return _0x17a38f;};import{View as _0x1e333e}from'ckeditor5/src/ui';import _0x271e1b from'./commentinputview';import{UserView as _0x1f7097}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x1e333e{constructor(_0x5acedd,_0x1afa95,_0xbfed42){super(_0x5acedd),this[_0x17a3('0x9')]=new _0x271e1b(_0x5acedd,_0xbfed42),this[_0x17a3('0x9')]['bind']('showButtons')['to'](this[_0x17a3('0x9')]['focusTracker'],_0x17a3('0x0'),this[_0x17a3('0x9')],_0x17a3('0xd'),(_0x430f20,_0x4b996b)=>_0x430f20||!!_0x4b996b),this['set'](_0x17a3('0x8'),!0x1),this[_0x17a3('0x5')]=new _0x1f7097(_0x5acedd,_0x1afa95),this['userView'][_0x17a3('0x2')]({'attributes':{'class':_0x17a3('0xa')}}),this['commentInputView'][_0x17a3('0x2')]({'attributes':{'class':_0x17a3('0x1')}}),this[_0x17a3('0xb')]({'tag':_0x17a3('0x6'),'attributes':{'class':[_0x17a3('0x7'),this['bindTemplate']['if'](_0x17a3('0x8'),_0x17a3('0x4'))]},'children':[this[_0x17a3('0x5')],this[_0x17a3('0x9')]]});}[_0x17a3('0x3')](){return this[_0x17a3('0x9')][_0x17a3('0x3')]()[_0x17a3('0xc')](()=>super[_0x17a3('0x3')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import Rt from'./basecommentthreadview';import{mix as _0x241e02}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class nt extends Rt{constructor(_0x24b0af,_0x21d8d3,_0x9c0497,_0x751fc3){super(_0x24b0af,_0x21d8d3,_0x9c0497,_0x751fc3),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x24b0af,this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x3fe020,_0x332fb6,_0x441b88)=>{_0x441b88||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4f3a0d,_0x43b4d6,_0x26dfbb)=>{_0x26dfbb&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0xa6a161=>{this['_bindFirstCommentView'](),_0xa6a161['off']();});}['getTemplate'](){const _0x3671ed=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x3671ed['if']('isActive','ck-thread--active'),_0x3671ed['if']('isConfirm','ck-thread--remove-confirmation'),_0x3671ed['to']('actionIndicator',_0x476ce7=>_0x476ce7?'ck-thread--'+_0x476ce7:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this['commentsListView'],this['commentThreadInputView']]}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x43167f of this['commentsListView']['commentViews'])_0x43167f['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x26e65a=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x26e65a,'actionIndicator',_0x2b70b0=>'remove'===_0x2b70b0?'remove':null),_0x26e65a['placeholder']=t('Write\x20a\x20comment...'),_0x26e65a['removeButton']['on']('execute',_0x5e245b=>{_0x5e245b['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x241e02(nt,Wt);
23
+ const _0x502c=['actionIndicator','locale','remove','getTemplate','isActive','ck-thread__container','_model','.ck-thread__container','fire','containerElement','setTemplate','_cancelAllConfirms','showConfirm','bindTemplate','ck-thread--active','high','listenTo','commentViews','set','ck-thread--remove-confirmation','Write\x20a\x20comment...','_bindFirstCommentView','commentsListView','isConfirm','off','change:isReadOnly','length','stop','element','change:isActive','placeholder','div','render','cancelConfirm','Delete\x20comment\x20thread?'];(function(_0x2e5dda,_0x502c42){const _0x481b5f=function(_0xf47a){while(--_0xf47a){_0x2e5dda['push'](_0x2e5dda['shift']());}};_0x481b5f(++_0x502c42);}(_0x502c,0x126));const _0x481b=function(_0x2e5dda,_0x502c42){_0x2e5dda=_0x2e5dda-0x0;let _0x481b5f=_0x502c[_0x2e5dda];return _0x481b5f;};import{mix as _0x2292d4}from'ckeditor5/src/utils';import{ConfirmMixin as _0x40d712}from'ckeditor5-collaboration/src/collaboration-core';import _0x5d9173 from'./basecommentthreadview';import{getTranslation as _0x22dfc5}from'../../../utils/common-translations';export default class nt extends _0x5d9173{constructor(_0x100850,_0x137aab,_0x633625,_0x481b95){super(_0x100850,_0x137aab,_0x633625,_0x481b95),this[_0x481b('0x4')](_0x481b('0x15'),null),this['containerElement']=null,this[_0x481b('0x16')]=_0x100850,this[_0x481b('0x1f')](this[_0x481b('0x18')]()),this['on'](_0x481b('0xf'),(_0x44f164,_0x3b5a1e,_0x1f10a1)=>{_0x1f10a1||this[_0x481b('0x20')]();}),this[_0x481b('0x2')](this[_0x481b('0x1b')],_0x481b('0xb'),(_0xd29bff,_0x2f63e1,_0x51d212)=>{_0x51d212&&this['_cancelAllConfirms']();}),this[_0x481b('0xc')]>0x0?this['_bindFirstCommentView']():this[_0x481b('0x2')](this['commentsListView'][_0x481b('0x3')],'add',_0x324553=>{this[_0x481b('0x7')](),_0x324553[_0x481b('0xa')]();});}[_0x481b('0x18')](){const _0x290af3=this[_0x481b('0x22')];return{'tag':_0x481b('0x11'),'attributes':{'class':['ck-thread',_0x290af3['if'](_0x481b('0x19'),_0x481b('0x0')),_0x290af3['if'](_0x481b('0x9'),_0x481b('0x5')),_0x290af3['to']('actionIndicator',_0x186b10=>_0x186b10?'ck-thread--'+_0x186b10:'')],'data-thread-id':this[_0x481b('0x1b')]['id'],'tabindex':-0x1},'children':[{'tag':_0x481b('0x11'),'attributes':{'class':_0x481b('0x1a')},'children':[this[_0x481b('0x8')],this['commentThreadInputView']]}]};}[_0x481b('0x12')](){super['render'](),this[_0x481b('0x1e')]=this[_0x481b('0xe')]['querySelector'](_0x481b('0x1c'));}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x2f4d5b of this[_0x481b('0x8')][_0x481b('0x3')])_0x2f4d5b[_0x481b('0x13')]();}[_0x481b('0x7')](){const {locale:_0xb8768a}=this,_0x35bc19=this[_0x481b('0x8')][_0x481b('0x3')]['get'](0x0);this['bind'](_0x481b('0x15'))['to'](_0x35bc19,'actionIndicator',_0xc41127=>_0x481b('0x17')===_0xc41127?'remove':null),_0x35bc19[_0x481b('0x10')]=_0x22dfc5(_0xb8768a,_0x481b('0x6')),_0x35bc19['removeButton']['on']('execute',_0x4ea880=>{_0x4ea880[_0x481b('0xd')](),this[_0x481b('0x21')](_0x22dfc5(_0xb8768a,_0x481b('0x14')),this[_0x481b('0x1e')])['then'](()=>{this[_0x481b('0x1d')]('removeCommentThread');});},{'priority':_0x481b('0x1')});}}_0x2292d4(nt,_0x40d712);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{mix as _0x5e4b4d}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import Vt from'./basecommentview';import{UserView as It}from'ckeditor5-collaboration/src/collaboration-core';import{icons as Gt}from'ckeditor5/src/core';import Jt from'../../../../theme/icons/remove-comment.svg';import Wt from'./confirmmixin';export default class ot extends Vt{constructor(_0x1902a4,_0x25ee1e,_0x15c4f0){super(_0x1902a4,_0x25ee1e,_0x15c4f0);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x25ee1e),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new It(_0x1902a4,_0x25ee1e['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x25ee1e,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x26adf4=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x26adf4['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x26adf4['if']('isEditMode','ck-comment--edit'),_0x26adf4['to']('actionIndicator',_0x1b12b8=>_0x1b12b8?'ck-comment--'+_0x1b12b8:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x26adf4['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x26adf4['to']('createdAt',_0x3b8502=>this['_config']['formatDateTime'](_0x3b8502))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x26adf4['if']('isEditMode','ck-comment__actions--hidden'),_0x26adf4['if']('isEditMode','ck-annotation__actions--hidden')]},'children':[this['editButton'],this['removeButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']}]}]}]};}['_createEditButton'](){const {t:t}=this['locale'],_0x2e3794=new mt(this['locale']);return _0x2e3794['label']=t('Edit'),_0x2e3794['icon']=Gt['pencil'],_0x2e3794['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2e3794['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x5f2b87=>!_0x5f2b87),_0x2e3794['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2e3794['on']('execute',()=>this['switchToEditMode']()),_0x2e3794;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x276fba=new mt(this['locale']);return _0x276fba['label']=t('Remove'),_0x276fba['icon']=Jt,_0x276fba['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x276fba['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x305900=>!_0x305900),_0x276fba['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x276fba['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x276fba;}['_attachActions'](_0x529253,_0x47d857){this['listenTo'](_0x529253,'mouseenter',()=>this['actionIndicator']=_0x47d857),this['listenTo'](_0x529253,'focus',()=>this['actionIndicator']=_0x47d857),this['listenTo'](_0x529253,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x529253,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0x1dac03=super['_createCommentInputView']();return _0x1dac03['bind']('placeholder')['to'](this),_0x1dac03;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x5e4b4d(ot,Wt);
23
+ const _0x5521=['icon','isEditMode','ck-annotation__content-wrapper','execute','isEditable','then','blur','ck-annotation__info-time','ck-comment__main','isVisible','bindTemplate','ck-comment--edit','mouseleave','_createCommentInputView','Delete\x20comment?','render','ck-annotation__user','span','ck-comment--remove','ck-annotation__actions','_model','isEnabled','edit','editButton','element','ck-annotation__main','locale','label','ck-annotation__info-name','isReadOnly','pencil','ck-annotation','change:isRemovable','_attachActions','name','actionIndicator','extendTemplate','removeComment','userView','ck-comment__info-time','div','createdAt','isConfirm','ck-comment__user','time','ck-comment__info-name','ck-comment--','fire','showConfirm','isRemovable','listenTo','set','removeButton','_createRemoveButton','_config','ck-annotation__info','_createEditButton','cancelConfirm','setTemplate','formatDateTime','Reply...','Edit','author','placeholder','remove','switchToEditMode','ck-comment__actions','bind'];(function(_0x3863d6,_0x55215c){const _0x3deb94=function(_0xde58f8){while(--_0xde58f8){_0x3863d6['push'](_0x3863d6['shift']());}};_0x3deb94(++_0x55215c);}(_0x5521,0x151));const _0x3deb=function(_0x3863d6,_0x55215c){_0x3863d6=_0x3863d6-0x0;let _0x3deb94=_0x5521[_0x3863d6];return _0x3deb94;};import{mix as _0x333591}from'ckeditor5/src/utils';import{ButtonView as _0x3f2f2b}from'ckeditor5/src/ui';import{icons as _0x69ae85}from'ckeditor5/src/core';import{UserView as _0x9b621,ConfirmMixin as _0x23cc88}from'ckeditor5-collaboration/src/collaboration-core';import _0x198c2d from'./basecommentview';import _0x244589 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x369cf3}from'../../../utils/common-translations';export default class ot extends _0x198c2d{constructor(_0x3528d4,_0x53a480,_0x1044fa){super(_0x3528d4,_0x53a480,_0x1044fa),this[_0x3deb('0x36')](_0x3deb('0x26'),null),this[_0x3deb('0x36')](_0x3deb('0x42'),_0x369cf3(_0x3528d4,_0x3deb('0x3f'))),this[_0x3deb('0x36')]('createdAt',null),this[_0x3deb('0x2')]('createdAt')['to'](_0x53a480),this['editButton']=this['_createEditButton'](),this[_0x3deb('0x37')]=this[_0x3deb('0x38')](),this['userView']=new _0x9b621(_0x3528d4,_0x53a480[_0x3deb('0x41')]),this[_0x3deb('0x29')]['extendTemplate']({'attributes':{'class':[_0x3deb('0x2e'),_0x3deb('0x13')]}}),this[_0x3deb('0x35')](_0x53a480,_0x3deb('0x23'),()=>this[_0x3deb('0x3c')]()),this[_0x3deb('0x3d')](this['getTemplate']());}['getTemplate'](){const _0x5c6a70=this[_0x3deb('0xd')];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x5c6a70['if'](_0x3deb('0x2d'),'ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':_0x3deb('0x2b'),'attributes':{'class':['ck-comment',_0x3deb('0x22'),_0x5c6a70['if'](_0x3deb('0x4'),_0x3deb('0xe')),_0x5c6a70['to'](_0x3deb('0x26'),_0x392480=>_0x392480?_0x3deb('0x31')+_0x392480:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x3deb('0x29')],{'tag':_0x3deb('0x2b'),'attributes':{'class':[_0x3deb('0xb'),_0x3deb('0x1c')]},'children':[{'tag':_0x3deb('0x2b'),'attributes':{'class':['ck-comment__info',_0x3deb('0x3a')]},'children':[{'tag':_0x3deb('0x14'),'children':[{'text':this['userView'][_0x3deb('0x25')]}],'attributes':{'class':[_0x3deb('0x30'),_0x3deb('0x1f')]}},{'tag':_0x3deb('0x2f'),'attributes':{'datetime':_0x5c6a70['to'](_0x3deb('0x2c')),'class':[_0x3deb('0x2a'),_0x3deb('0xa')]},'children':[{'text':_0x5c6a70['to'](_0x3deb('0x2c'),_0x51decb=>this[_0x3deb('0x39')][_0x3deb('0x3e')](_0x51decb))}]}]},{'tag':_0x3deb('0x2b'),'attributes':{'class':[_0x3deb('0x1'),_0x3deb('0x16'),_0x5c6a70['if'](_0x3deb('0x4'),'ck-comment__actions--hidden'),_0x5c6a70['if'](_0x3deb('0x4'),'ck-annotation__actions--hidden')]},'children':[this[_0x3deb('0x1a')],this[_0x3deb('0x37')]]},{'tag':_0x3deb('0x2b'),'attributes':{'class':[_0x3deb('0x5')]},'children':this['visibleView']}]}]}]};}[_0x3deb('0x3b')](){const _0x5eaf06=new _0x3f2f2b(this[_0x3deb('0x1d')]);return _0x5eaf06['label']=_0x369cf3(this['locale'],_0x3deb('0x40')),_0x5eaf06[_0x3deb('0x3')]=_0x69ae85[_0x3deb('0x21')],_0x5eaf06[_0x3deb('0x27')]({'attributes':{'class':_0x3deb('0xe')}}),_0x5eaf06['bind']('isEnabled')['to'](this[_0x3deb('0x17')],_0x3deb('0x20'),_0x27c640=>!_0x27c640),_0x5eaf06[_0x3deb('0x2')]('isVisible')['to'](this[_0x3deb('0x17')],_0x3deb('0x7')),_0x5eaf06['on'](_0x3deb('0x6'),()=>this[_0x3deb('0x0')]()),_0x5eaf06;}[_0x3deb('0x38')](){const _0x5a0135=new _0x3f2f2b(this['locale']);return _0x5a0135[_0x3deb('0x1e')]=_0x369cf3(this['locale'],'Remove'),_0x5a0135['icon']=_0x244589,_0x5a0135['extendTemplate']({'attributes':{'class':_0x3deb('0x15')}}),_0x5a0135[_0x3deb('0x2')](_0x3deb('0x18'))['to'](this[_0x3deb('0x17')],_0x3deb('0x20'),_0x9b4038=>!_0x9b4038),_0x5a0135[_0x3deb('0x2')](_0x3deb('0xc'))['to'](this[_0x3deb('0x17')],_0x3deb('0x34')),_0x5a0135['on'](_0x3deb('0x6'),()=>{this[_0x3deb('0x33')](_0x369cf3(this[_0x3deb('0x1d')],_0x3deb('0x11')),this['element'])[_0x3deb('0x8')](()=>{this[_0x3deb('0x32')](_0x3deb('0x28'),this[_0x3deb('0x17')]['id']);});}),_0x5a0135;}[_0x3deb('0x24')](_0x5b4332,_0x535244){this['listenTo'](_0x5b4332,'mouseenter',()=>this[_0x3deb('0x26')]=_0x535244),this[_0x3deb('0x35')](_0x5b4332,'focus',()=>this[_0x3deb('0x26')]=_0x535244),this[_0x3deb('0x35')](_0x5b4332,_0x3deb('0xf'),()=>this[_0x3deb('0x26')]=null),this['listenTo'](_0x5b4332,_0x3deb('0x9'),()=>this[_0x3deb('0x26')]=null);}[_0x3deb('0x10')](){const _0x19a52d=super[_0x3deb('0x10')]();return _0x19a52d[_0x3deb('0x2')](_0x3deb('0x42'))['to'](this),_0x19a52d;}['render'](){super[_0x3deb('0x12')](),this[_0x3deb('0x24')](this['editButton'][_0x3deb('0x1b')],_0x3deb('0x19')),this[_0x3deb('0x24')](this[_0x3deb('0x37')]['element'],_0x3deb('0x43'));}}_0x333591(ot,_0x23cc88);
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2967=['requires','pluginName','Comments'];(function(_0x735e60,_0x2967b6){var _0x2d6222=function(_0x367482){while(--_0x367482){_0x735e60['push'](_0x735e60['shift']());}};_0x2d6222(++_0x2967b6);}(_0x2967,0x82));var _0x2d62=function(_0x735e60,_0x2967b6){_0x735e60=_0x735e60-0x0;var _0x2d6222=_0x2967[_0x735e60];return _0x2d6222;};import{Plugin as _0x157fae}from'ckeditor5/src/core';import _0x471551 from'./comments/commentsrepository';import _0x2608e2 from'./comments/commentsediting';import _0x5bcd3a from'./comments/commentsui';import _0x1df1fa from'./commentsonly';import _0x30d62b from'./annotations/widesidebar';import _0x31482b from'./annotations/narrowsidebar';import _0x528d98 from'./annotations/inlineannotations';export default class c extends _0x157fae{static get[_0x2d62('0x2')](){return[_0x471551,_0x2608e2,_0x5bcd3a,_0x1df1fa,_0x30d62b,_0x31482b,_0x528d98];}static get[_0x2d62('0x0')](){return _0x2d62('0x1');}}
23
+ var _0x1609=['requires','pluginName','Comments'];(function(_0xd9635f,_0x1609dd){var _0x414f9c=function(_0x363200){while(--_0x363200){_0xd9635f['push'](_0xd9635f['shift']());}};_0x414f9c(++_0x1609dd);}(_0x1609,0x9d));var _0x414f=function(_0xd9635f,_0x1609dd){_0xd9635f=_0xd9635f-0x0;var _0x414f9c=_0x1609[_0xd9635f];return _0x414f9c;};import{Plugin as _0x1d14ea}from'ckeditor5/src/core';import _0x4a6643 from'./comments/commentsrepository';import _0x4e2c0c from'./comments/commentsediting';import _0x2b4976 from'./comments/commentsui';import _0x1cbf97 from'./commentsonly';import _0x2af720 from'./annotations/widesidebar';import _0x115eaf from'./annotations/narrowsidebar';import _0x1446d1 from'./annotations/inlineannotations';export default class c extends _0x1d14ea{static get[_0x414f('0x2')](){return[_0x4a6643,_0x4e2c0c,_0x2b4976,_0x1cbf97,_0x2af720,_0x115eaf,_0x1446d1];}static get[_0x414f('0x0')](){return _0x414f('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21a9=['_enableCommentsOnlyMode','get','DragDrop','highest','cut','plugins','commands','commentsOnlyMode','stop','has','forceDisabled','affectsData','stopListening','requires','delete','commentsOnly','isEnabled','listenTo','document','view','clearForceDisabled','editing','pluginName','change:isEnabled','clipboardInput','editor','set','addCommentThread'];(function(_0x5385b4,_0x21a9c8){const _0x5cf9bd=function(_0x449c7f){while(--_0x449c7f){_0x5385b4['push'](_0x5385b4['shift']());}};_0x5cf9bd(++_0x21a9c8);}(_0x21a9,0x1c3));const _0x5cf9=function(_0x5385b4,_0x21a9c8){_0x5385b4=_0x5385b4-0x0;let _0x5cf9bd=_0x21a9[_0x5385b4];return _0x5cf9bd;};import{Plugin as _0xa3ede1}from'ckeditor5/src/core';import _0x43bf87 from'./comments/commentsediting';export default class e extends _0xa3ede1{static get[_0x5cf9('0x13')](){return'CommentsOnly';}static get[_0x5cf9('0xa')](){return[_0x43bf87];}constructor(_0x1d2ab5){super(_0x1d2ab5),this[_0x5cf9('0x17')]('isEnabled',null),this['on'](_0x5cf9('0x14'),(_0x2275b9,_0x43c19d,_0x64fd8b)=>{_0x64fd8b?this[_0x5cf9('0x19')]():this['_disableCommentsOnlyMode']();});}['afterInit'](){null===this[_0x5cf9('0xd')]&&(this['isEnabled']=!!this[_0x5cf9('0x16')]['config'][_0x5cf9('0x1a')](_0x5cf9('0xc')));}[_0x5cf9('0x19')](){for(const [_0x10c387,_0x129b92]of this['editor'][_0x5cf9('0x3')])_0x129b92['affectsData']&&_0x5cf9('0x18')!==_0x10c387&&_0x129b92[_0x5cf9('0x7')](_0x5cf9('0x4'));this[_0x5cf9('0x16')][_0x5cf9('0x2')][_0x5cf9('0x6')](_0x5cf9('0x1b'))&&this[_0x5cf9('0x16')][_0x5cf9('0x2')][_0x5cf9('0x1a')](_0x5cf9('0x1b'))[_0x5cf9('0x7')]('commentsOnlyMode');const _0x244ebe=this[_0x5cf9('0x16')]['editing'][_0x5cf9('0x10')][_0x5cf9('0xf')];this[_0x5cf9('0xe')](_0x244ebe,_0x5cf9('0x1'),_0x3b0354=>_0x3b0354[_0x5cf9('0x5')](),{'priority':'highest'}),this[_0x5cf9('0xe')](_0x244ebe,_0x5cf9('0x15'),_0x51d6f8=>_0x51d6f8[_0x5cf9('0x5')](),{'priority':'highest'}),this[_0x5cf9('0xe')](_0x244ebe,_0x5cf9('0xb'),_0x92681f=>_0x92681f['stop'](),{'priority':_0x5cf9('0x0')});}['_disableCommentsOnlyMode'](){for(const [_0x25f677,_0x538b79]of this[_0x5cf9('0x16')][_0x5cf9('0x3')])_0x538b79[_0x5cf9('0x8')]&&'addCommentThread'!==_0x25f677&&_0x538b79[_0x5cf9('0x11')]('commentsOnlyMode');this[_0x5cf9('0x9')](this[_0x5cf9('0x16')][_0x5cf9('0x12')]['view'][_0x5cf9('0xf')]);}}
23
+ const _0x48a5=['stopListening','forceDisabled','addCommentThread','commands','_enableCommentsOnlyMode','clearForceDisabled','cut','change:isEnabled','get','editor','isEnabled','editing','view','commentsOnlyMode','pluginName','requires','stop','DragDrop','set','listenTo','delete','plugins','_disableCommentsOnlyMode','document','affectsData','has','CommentsOnly','afterInit'];(function(_0x60cfb,_0x48a57a){const _0x548175=function(_0x14cc80){while(--_0x14cc80){_0x60cfb['push'](_0x60cfb['shift']());}};_0x548175(++_0x48a57a);}(_0x48a5,0x65));const _0x5481=function(_0x60cfb,_0x48a57a){_0x60cfb=_0x60cfb-0x0;let _0x548175=_0x48a5[_0x60cfb];return _0x548175;};import{Plugin as _0xf44ab6}from'ckeditor5/src/core';import _0x36edbd from'./comments/commentsediting';export default class e extends _0xf44ab6{static get[_0x5481('0x19')](){return _0x5481('0x9');}static get[_0x5481('0x1a')](){return[_0x36edbd];}constructor(_0x1d4cce){super(_0x1d4cce),this[_0x5481('0x1')](_0x5481('0x15'),null),this['on'](_0x5481('0x12'),(_0x3eed35,_0x3e6159,_0x182bfb)=>{_0x182bfb?this[_0x5481('0xf')]():this['_disableCommentsOnlyMode']();});}[_0x5481('0xa')](){null===this[_0x5481('0x15')]&&(this[_0x5481('0x15')]=!!this[_0x5481('0x14')]['config'][_0x5481('0x13')]('commentsOnly'));}[_0x5481('0xf')](){for(const [_0x1f50c4,_0x32e372]of this[_0x5481('0x14')][_0x5481('0xe')])_0x32e372['affectsData']&&_0x5481('0xd')!==_0x1f50c4&&_0x32e372['forceDisabled'](_0x5481('0x18'));this[_0x5481('0x14')][_0x5481('0x4')][_0x5481('0x8')](_0x5481('0x0'))&&this['editor'][_0x5481('0x4')][_0x5481('0x13')](_0x5481('0x0'))[_0x5481('0xc')](_0x5481('0x18'));const _0x364415=this['editor'][_0x5481('0x16')][_0x5481('0x17')]['document'];this['listenTo'](_0x364415,_0x5481('0x11'),_0x1733a7=>_0x1733a7[_0x5481('0x1b')](),{'priority':'highest'}),this['listenTo'](_0x364415,'clipboardInput',_0x52caff=>_0x52caff[_0x5481('0x1b')](),{'priority':'highest'}),this[_0x5481('0x2')](_0x364415,_0x5481('0x3'),_0x3181b8=>_0x3181b8[_0x5481('0x1b')](),{'priority':'highest'});}[_0x5481('0x5')](){for(const [_0x57d641,_0x3aacd2]of this[_0x5481('0x14')][_0x5481('0xe')])_0x3aacd2[_0x5481('0x7')]&&_0x5481('0xd')!==_0x57d641&&_0x3aacd2[_0x5481('0x10')](_0x5481('0x18'));this[_0x5481('0xb')](this[_0x5481('0x14')][_0x5481('0x16')][_0x5481('0x17')][_0x5481('0x6')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x46e7b4,_0x1b566a){const t=_0x46e7b4['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x1b566a)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
23
+ export function getTranslation(_0x38f87b,_0x3d80e8,_0x32f927){const t=_0x38f87b['t'];switch(_0x3d80e8){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x32f927);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x32f927);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x377a=['observe','cancel','type','attributes','attributeName'];(function(_0x1ed5c7,_0x377a2d){const _0x3094ea=function(_0x14bf22){while(--_0x14bf22){_0x1ed5c7['push'](_0x1ed5c7['shift']());}};_0x3094ea(++_0x377a2d);}(_0x377a,0xe5));const _0x3094=function(_0x1ed5c7,_0x377a2d){_0x1ed5c7=_0x1ed5c7-0x0;let _0x3094ea=_0x377a[_0x1ed5c7];return _0x3094ea;};import{throttle as _0x584edc}from'lodash-es';export default function ut(_0x4025b2){const _0x35c76f=_0x584edc(_0x4025b2,0x1e),_0x2a4316=new MutationObserver(_0x2ee4a2=>{for(const _0x3fc623 of _0x2ee4a2)(_0x3094('0x4')==_0x3fc623[_0x3094('0x3')]&&'class'==_0x3fc623[_0x3094('0x0')]||'childList'==_0x3fc623[_0x3094('0x3')])&&_0x35c76f();});return{'attach'(_0x51096f){_0x2a4316[_0x3094('0x1')](_0x51096f,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x2a4316['disconnect'](),_0x35c76f[_0x3094('0x2')]();}};}
23
+ const _0x54dd=['class','observe','attributes','disconnect','type','childList'];(function(_0x5a5a46,_0x54dd36){const _0x4fedfb=function(_0x20f8cf){while(--_0x20f8cf){_0x5a5a46['push'](_0x5a5a46['shift']());}};_0x4fedfb(++_0x54dd36);}(_0x54dd,0x1df));const _0x4fed=function(_0x5a5a46,_0x54dd36){_0x5a5a46=_0x5a5a46-0x0;let _0x4fedfb=_0x54dd[_0x5a5a46];return _0x4fedfb;};import{throttle as _0x5b0bb0}from'lodash-es';export default function ut(_0x2890c3){const _0x324ed6=_0x5b0bb0(_0x2890c3,0x1e),_0x2ca105=new MutationObserver(_0x5a2e56=>{for(const _0x3fcfc3 of _0x5a2e56)(_0x4fed('0x3')==_0x3fcfc3['type']&&_0x4fed('0x1')==_0x3fcfc3['attributeName']||_0x4fed('0x0')==_0x3fcfc3[_0x4fed('0x5')])&&_0x324ed6();});return{'attach'(_0x3c348e){_0x2ca105[_0x4fed('0x2')](_0x3c348e,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x2ca105[_0x4fed('0x4')](),_0x324ed6['cancel']();}};}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- var _0x27ed=['fire','locale','element','set','destroy','cancel','confirmView','isConfirm','remove','message','submit','once','render','appendChild','_removeConfirm'];(function(_0x4cb737,_0x27eda6){var _0x6dce51=function(_0x28e0ac){while(--_0x28e0ac){_0x4cb737['push'](_0x4cb737['shift']());}};_0x6dce51(++_0x27eda6);}(_0x27ed,0x1a6));var _0x6dce=function(_0x4cb737,_0x27eda6){_0x4cb737=_0x4cb737-0x0;var _0x6dce51=_0x27ed[_0x4cb737];return _0x6dce51;};import _0x5c64d9 from'./confirmview';export default{'showConfirm'(_0x13d624,_0xc0636d){return this[_0x6dce('0x4')]=new _0x5c64d9(this[_0x6dce('0xe')]),this[_0x6dce('0x4')][_0x6dce('0xa')](),this[_0x6dce('0x4')][_0x6dce('0x7')]=_0x13d624,this[_0x6dce('0x4')][_0x6dce('0x9')]('cancel',()=>{this['_removeConfirm']();}),this['confirmView'][_0x6dce('0x9')](_0x6dce('0x8'),()=>{this[_0x6dce('0xc')]();}),_0xc0636d[_0x6dce('0xb')](this[_0x6dce('0x4')][_0x6dce('0x0')]),this['registerChild'](this['confirmView']),this[_0x6dce('0x1')](_0x6dce('0x5'),!0x0),new Promise(_0xe5191d=>this['confirmView']['on'](_0x6dce('0x8'),_0xe5191d));},'cancelConfirm'(){this[_0x6dce('0x5')]&&this[_0x6dce('0x4')][_0x6dce('0xd')](_0x6dce('0x3'));},'_removeConfirm'(){this['confirmView']['element'][_0x6dce('0x6')](),this['deregisterChild'](this[_0x6dce('0x4')]),this[_0x6dce('0x5')]=!0x1,this[_0x6dce('0x4')][_0x6dce('0x2')](),delete this[_0x6dce('0x4')];}};
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{View as ht,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Gt}from'ckeditor5/src/core';export default class ii extends ht{constructor(_0x3b5fa7){super(_0x3b5fa7);const {t:t}=_0x3b5fa7,_0x553810=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x3b5fa7,t('Yes'),Gt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x3b5fa7,t('No'),Gt['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x553810['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x20ca34,_0x37b9ba,_0x2e9b67,_0x58a11c){const _0x55b52d=new mt(_0x20ca34);return _0x55b52d['label']=_0x37b9ba,_0x55b52d['icon']=_0x2e9b67,_0x55b52d['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x58a11c}}),_0x55b52d['on']('execute',()=>this['fire'](_0x58a11c)),_0x55b52d;}}