@ckeditor/ckeditor5-comments 32.0.0 → 34.1.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 (131) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +5 -2
  3. package/build/comments.js +5 -0
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/bs.js +1 -0
  6. package/build/translations/cs.js +1 -0
  7. package/build/translations/da.js +1 -0
  8. package/build/translations/de-ch.js +1 -0
  9. package/build/translations/de.js +1 -0
  10. package/build/translations/el.js +1 -0
  11. package/build/translations/en-au.js +1 -0
  12. package/build/translations/es.js +1 -0
  13. package/build/translations/et.js +1 -0
  14. package/build/translations/fr.js +1 -0
  15. package/build/translations/gl.js +1 -0
  16. package/build/translations/hi.js +1 -0
  17. package/build/translations/hr.js +1 -0
  18. package/build/translations/hu.js +1 -0
  19. package/build/translations/id.js +1 -0
  20. package/build/translations/it.js +1 -0
  21. package/build/translations/ja.js +1 -0
  22. package/build/translations/jv.js +1 -0
  23. package/build/translations/ko.js +1 -0
  24. package/build/translations/lv.js +1 -0
  25. package/build/translations/nl.js +1 -0
  26. package/build/translations/no.js +1 -0
  27. package/build/translations/pl.js +1 -0
  28. package/build/translations/pt-br.js +1 -0
  29. package/build/translations/ro.js +1 -0
  30. package/build/translations/ru.js +1 -0
  31. package/build/translations/sk.js +1 -0
  32. package/build/translations/sr-latn.js +1 -0
  33. package/build/translations/sr.js +1 -0
  34. package/build/translations/tk.js +1 -0
  35. package/build/translations/tr.js +1 -0
  36. package/build/translations/ug.js +1 -0
  37. package/build/translations/uk.js +1 -0
  38. package/build/translations/ur.js +1 -0
  39. package/build/translations/zh-cn.js +1 -0
  40. package/build/translations/zh.js +1 -0
  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 +67 -0
  49. package/lang/translations/en-au.po +0 -12
  50. package/lang/translations/en.po +0 -12
  51. package/lang/translations/es.po +0 -12
  52. package/lang/translations/et.po +0 -12
  53. package/lang/translations/fr.po +0 -12
  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 +0 -12
  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 +0 -12
  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 +4 -9
  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/getmarkerdomelement.js → index.js} +1 -1
  115. package/src/utils/common-translations.js +1 -1
  116. package/src/utils/createmutationobserver.js +1 -1
  117. package/theme/annotation-inline.css +1 -1
  118. package/theme/annotation.css +1 -1
  119. package/theme/comment.css +1 -1
  120. package/theme/commentinput.css +1 -1
  121. package/theme/commentmarker.css +1 -1
  122. package/theme/commentthread.css +1 -1
  123. package/theme/icons/add-comment.svg +1 -1
  124. package/theme/icons/edit-comment.svg +1 -1
  125. package/theme/icons/remove-comment.svg +1 -1
  126. package/theme/sidebar-narrow.css +1 -1
  127. package/theme/sidebar.css +1 -1
  128. package/src/comments/ui/view/confirmmixin.js +0 -23
  129. package/src/comments/ui/view/confirmview.js +0 -23
  130. package/src/utils/getdatetimeformatter.js +0 -23
  131. package/src/utils/trim-html.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as bt}from'ckeditor5/src/ui';import Rt from'./commentthreadinputview';import Tt from'./commentslistview';export default class It extends bt{constructor(_0x55f2de,_0x3ed642,_0x4b2aec,_0x1f0641){super(_0x55f2de),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x3ed642,this['_localUser']=_0x4b2aec,this['_config']=_0x1f0641,this['commentsListView']=new Tt(_0x55f2de,_0x3ed642,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1f0641)),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',(_0x373e54,_0x5c16a7)=>_0x373e54||!!_0x5c16a7);}['focus'](){this['element']['focus']();}['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const {t:t}=this['locale'],_0x51a550=new Rt(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xcf2b09=_0x51a550['commentInputView'];return _0x51a550['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',_0xcf2b09,'value',(_0xdd8f8b,_0x58dd20,_0x14e9df)=>!!_0x14e9df||_0xdd8f8b&&!_0x58dd20),_0xcf2b09['bind']('placeholder')['to'](this,'length',_0xaf01c4=>t(_0xaf01c4?'Reply...':'Write\x20a\x20comment...')),_0xcf2b09['on']('submit',(_0x3676b2,_0x11a57a)=>{this['fire']('addComment',_0x11a57a);}),_0xcf2b09['on']('cancel',()=>{this['focus']();}),_0xcf2b09['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xcf2b09['on']('cancel',_0x2c8fd7=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x2c8fd7['stop']());}),this['on']('change:isActive',(_0x148298,_0x164e27,_0x54d79c)=>{_0x54d79c||this['length']||_0xcf2b09['value']||this['fire']('removeCommentThread');}),_0x51a550;}}
23
+ const _0xa892=['bind','Write\x20a\x20comment...','submit','_config','focus','Reply...','removeComment','locale','commentsListView','cancel','_model','value','showInput','element','editorConfig','stop','updateComment','isReadOnly','addComment','set','change:isActive','commentInputView','CommentView','isDirty','removeCommentThread','commentThreadInputView','length','isActive','_createCommentThreadInputView','destroy','assign','disabledSubmit','fire'];(function(_0x24b856,_0xa892ed){const _0x2bc8c5=function(_0x1c4921){while(--_0x1c4921){_0x24b856['push'](_0x24b856['shift']());}};_0x2bc8c5(++_0xa892ed);}(_0xa892,0xfe));const _0x2bc8=function(_0x24b856,_0xa892ed){_0x24b856=_0x24b856-0x0;let _0x2bc8c5=_0xa892[_0x24b856];return _0x2bc8c5;};import{View as _0x2f93b4}from'ckeditor5/src/ui';import _0x2301c7 from'./commentthreadinputview';import _0x4545e8 from'./commentslistview';import{getTranslation as _0x1e5455}from'../../../utils/common-translations';export default class Rt extends _0x2f93b4{constructor(_0x5a024a,_0x2dae00,_0x26185e,_0x49319e){super(_0x5a024a),this[_0x2bc8('0x1d')](_0x2bc8('0x4'),!0x1),this['set'](_0x2bc8('0x0'),!0x1),this[_0x2bc8('0x14')]=_0x2dae00,this['_localUser']=_0x26185e,this['_config']=_0x49319e,this['commentsListView']=new _0x4545e8(_0x5a024a,_0x2dae00,Object[_0x2bc8('0x7')]({'CommentView':this[_0x2bc8('0xd')][_0x2bc8('0x20')]},_0x49319e)),this['commentsListView']['delegate'](_0x2bc8('0x10'))['to'](this),this['commentsListView']['delegate'](_0x2bc8('0x1a'))['to'](this),this['commentsListView']['bind'](_0x2bc8('0x4'))['to'](this),this['set']('length',this['commentsListView'][_0x2bc8('0x3')]),this[_0x2bc8('0xa')](_0x2bc8('0x3'))['to'](this[_0x2bc8('0x12')],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on'](_0x2bc8('0x10'),()=>this['focus']()),this[_0x2bc8('0xa')]('isDirty')['to'](this[_0x2bc8('0x12')],'hasDirtyComment',this[_0x2bc8('0x2')][_0x2bc8('0x1f')],_0x2bc8('0x15'),(_0x152fe1,_0x22a0f5)=>_0x152fe1||!!_0x22a0f5);}[_0x2bc8('0xe')](){this[_0x2bc8('0x17')][_0x2bc8('0xe')]();}[_0x2bc8('0x6')](){this['isDirty']=!0x1,this[_0x2bc8('0x12')][_0x2bc8('0x6')](),this[_0x2bc8('0x2')][_0x2bc8('0x6')](),super['destroy']();}[_0x2bc8('0x5')](){const _0x52fae9=new _0x2301c7(this[_0x2bc8('0x11')],this['_localUser'],this[_0x2bc8('0xd')][_0x2bc8('0x18')]),_0x349252=_0x52fae9['commentInputView'];return _0x52fae9[_0x2bc8('0xa')](_0x2bc8('0x16'))['to'](this,_0x2bc8('0x4'),this[_0x2bc8('0x14')],_0x2bc8('0x1b'),_0x349252,'value',(_0xf18781,_0x2e908a,_0xbecf27)=>!!_0xbecf27||_0xf18781&&!_0x2e908a),_0x349252['bind']('placeholder')['to'](this,_0x2bc8('0x3'),_0xbcd748=>_0x1e5455(this[_0x2bc8('0x11')],_0xbcd748?_0x2bc8('0xf'):_0x2bc8('0xb'))),_0x349252['on'](_0x2bc8('0xc'),(_0x4d756c,_0x449642)=>{this['fire'](_0x2bc8('0x1c'),_0x449642);}),_0x349252['on'](_0x2bc8('0x13'),()=>{this['focus']();}),_0x349252[_0x2bc8('0xa')](_0x2bc8('0x8'))['to'](this['_model'],_0x2bc8('0x1b')),_0x349252['on'](_0x2bc8('0x13'),_0xc99c5=>{0x0==this['length']&&(this[_0x2bc8('0x9')](_0x2bc8('0x1')),_0xc99c5[_0x2bc8('0x19')]());}),this['on'](_0x2bc8('0x1e'),(_0x5b8865,_0x471bf3,_0x3d745e)=>{_0x3d745e||this['length']||_0x349252[_0x2bc8('0x15')]||this['fire'](_0x2bc8('0x1'));}),_0x52fae9;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49a2=['focus','set','isReadOnly','add','remove','editorConfig','_model','isCollapsed','disabledSubmit','once','submit','_createCommentInputView','isEditMode','switchToDisplayMode','destroy','content','locale','value','_config','visibleView','fire','maxCommentCharsWhenCollapsed','get','cancel','switchToEditMode'];(function(_0x18cd00,_0x49a2d7){const _0x15d093=function(_0x4dbe7b){while(--_0x4dbe7b){_0x18cd00['push'](_0x18cd00['shift']());}};_0x15d093(++_0x49a2d7);}(_0x49a2,0xcc));const _0x15d0=function(_0x18cd00,_0x49a2d7){_0x18cd00=_0x18cd00-0x0;let _0x15d093=_0x49a2[_0x18cd00];return _0x15d093;};import{View as _0x323ebd}from'ckeditor5/src/ui';import _0x194189 from'./commentcontentview';import _0x22459a from'./commentinputview';import _0x5909af from'../../../utils/trim-html';export default class Vt extends _0x323ebd{constructor(_0xf26880,_0x9814ae,_0x3b0ebf){super(_0xf26880),this[_0x15d0('0x2')]=_0x9814ae,this['_config']=_0x3b0ebf,this[_0x15d0('0x16')](_0x15d0('0x8'),!0x1),this[_0x15d0('0x16')](_0x15d0('0x3'),!0x0),this['visibleView']=this['createCollection'](),this[_0x15d0('0xf')][_0x15d0('0x18')](this['_createCommentContentView']());}['expand'](){this[_0x15d0('0x3')]=!0x1;}['collapse'](){this[_0x15d0('0x8')]||(this[_0x15d0('0x3')]=!0x0);}[_0x15d0('0x15')](){this['element'][_0x15d0('0x15')]();}async[_0x15d0('0xa')](){await this[_0x15d0('0xf')][_0x15d0('0x12')](0x0)['destroy'](),super['destroy']();}[_0x15d0('0x14')](){this[_0x15d0('0x8')]||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)[_0x15d0('0xa')](),this[_0x15d0('0xf')]['add'](this[_0x15d0('0x7')]()));}[_0x15d0('0x9')](){this['isEditMode']&&(this[_0x15d0('0x8')]=!0x1,this[_0x15d0('0xf')][_0x15d0('0x0')](0x0)[_0x15d0('0xa')](),this[_0x15d0('0xf')]['add'](this['_createCommentContentView']()));}['_createCommentContentView'](){const _0x224417=new _0x194189(this[_0x15d0('0xc')]);return _0x224417['bind'](_0x15d0('0xb'))['to'](this[_0x15d0('0x2')],'content',this,'isCollapsed',(_0x1a6047,_0x47705d)=>_0x47705d?_0x5909af(_0x1a6047,{'limit':this[_0x15d0('0xe')][_0x15d0('0x11')]}):_0x1a6047),_0x224417;}[_0x15d0('0x7')](){this[_0x15d0('0xe')][_0x15d0('0x1')]||(this['_config'][_0x15d0('0x1')]={}),this['_config'][_0x15d0('0x1')]['initialData']=this['_model']['content'];const _0x4ddaf9=new _0x22459a(this['locale'],this[_0x15d0('0xe')][_0x15d0('0x1')]);return _0x4ddaf9[_0x15d0('0xd')]=this[_0x15d0('0x2')]['content'],_0x4ddaf9['bind'](_0x15d0('0x4'))['to'](this[_0x15d0('0x2')],_0x15d0('0x17')),_0x4ddaf9['on'](_0x15d0('0x6'),(_0x1c6ee2,_0x1fee0a)=>{this[_0x15d0('0x10')]('updateComment',this[_0x15d0('0x2')]['id'],_0x1fee0a),this[_0x15d0('0x9')](),this[_0x15d0('0x15')]();}),_0x4ddaf9['on'](_0x15d0('0x13'),()=>{this[_0x15d0('0x9')](),this['focus']();}),_0x4ddaf9[_0x15d0('0x5')]('editorReady',()=>{_0x4ddaf9['focus']();}),_0x4ddaf9;}}
23
+ const _0x55d7=['switchToDisplayMode','visibleView','fire','locale','content','set','once','isCollapsed','_model','remove','element','destroy','isEditMode','isReadOnly','add','createCollection','cancel','maxCommentCharsWhenCollapsed','updateComment','disabledSubmit','value','expand','editorConfig','initialData','focus','bind','_createCommentContentView','submit','_config','editorReady'];(function(_0x1a9855,_0x55d735){const _0x422545=function(_0x2b67c1){while(--_0x2b67c1){_0x1a9855['push'](_0x1a9855['shift']());}};_0x422545(++_0x55d735);}(_0x55d7,0xd3));const _0x4225=function(_0x1a9855,_0x55d735){_0x1a9855=_0x1a9855-0x0;let _0x422545=_0x55d7[_0x1a9855];return _0x422545;};import{View as _0x2c8eb1}from'ckeditor5/src/ui';import{trimHtml as _0x49ae7c}from'ckeditor5-collaboration/src/collaboration-core';import _0x3f2242 from'./commentcontentview';import _0x463c07 from'./commentinputview';export default class Vt extends _0x2c8eb1{constructor(_0x2fc316,_0x70e9a5,_0x3cc633){super(_0x2fc316),this['_model']=_0x70e9a5,this['_config']=_0x3cc633,this[_0x4225('0x4')]('isEditMode',!0x1),this[_0x4225('0x4')](_0x4225('0x6'),!0x0),this[_0x4225('0x0')]=this[_0x4225('0xe')](),this[_0x4225('0x0')]['add'](this[_0x4225('0x19')]());}[_0x4225('0x14')](){this[_0x4225('0x6')]=!0x1;}['collapse'](){this[_0x4225('0xb')]||(this[_0x4225('0x6')]=!0x0);}[_0x4225('0x17')](){this[_0x4225('0x9')][_0x4225('0x17')]();}async[_0x4225('0xa')](){await this[_0x4225('0x0')]['get'](0x0)['destroy'](),super[_0x4225('0xa')]();}['switchToEditMode'](){this['isEditMode']||(this[_0x4225('0xb')]=!0x0,this[_0x4225('0x0')][_0x4225('0x8')](0x0)[_0x4225('0xa')](),this[_0x4225('0x0')][_0x4225('0xd')](this['_createCommentInputView']()));}[_0x4225('0x1d')](){this[_0x4225('0xb')]&&(this[_0x4225('0xb')]=!0x1,this['visibleView'][_0x4225('0x8')](0x0)[_0x4225('0xa')](),this[_0x4225('0x0')][_0x4225('0xd')](this['_createCommentContentView']()));}[_0x4225('0x19')](){const _0x2e5ad8=new _0x3f2242(this[_0x4225('0x2')]);return _0x2e5ad8['bind'](_0x4225('0x3'))['to'](this[_0x4225('0x7')],_0x4225('0x3'),this,'isCollapsed',(_0x339979,_0x43ab87)=>_0x43ab87?_0x49ae7c(_0x339979,{'limit':this[_0x4225('0x1b')][_0x4225('0x10')]}):_0x339979),_0x2e5ad8;}['_createCommentInputView'](){this['_config'][_0x4225('0x15')]||(this['_config'][_0x4225('0x15')]={}),this[_0x4225('0x1b')][_0x4225('0x15')][_0x4225('0x16')]=this[_0x4225('0x7')][_0x4225('0x3')];const _0x2b1c7e=new _0x463c07(this[_0x4225('0x2')],this['_config'][_0x4225('0x15')]);return _0x2b1c7e[_0x4225('0x13')]=this[_0x4225('0x7')]['content'],_0x2b1c7e[_0x4225('0x18')](_0x4225('0x12'))['to'](this['_model'],_0x4225('0xc')),_0x2b1c7e['on'](_0x4225('0x1a'),(_0x56d1d6,_0x2ca568)=>{this[_0x4225('0x1')](_0x4225('0x11'),this[_0x4225('0x7')]['id'],_0x2ca568),this[_0x4225('0x1d')](),this[_0x4225('0x17')]();}),_0x2b1c7e['on'](_0x4225('0xf'),()=>{this[_0x4225('0x1d')](),this[_0x4225('0x17')]();}),_0x2b1c7e[_0x4225('0x5')](_0x4225('0x1c'),()=>{_0x2b1c7e[_0x4225('0x17')]();}),_0x2b1c7e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as bt}from'ckeditor5/src/ui';export default class Nt extends bt{constructor(_0x5d0056){super(_0x5d0056);const {t:t}=_0x5d0056,_0x15606f=this['bindTemplate'];this['set']('count'),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x15606f['to']('count',_0x54a251=>t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x54a251))}]});}}
23
+ const _0x3858=['bindTemplate','setTemplate','NUMBER_OF_COMMENTS','count'];(function(_0x141588,_0x385806){const _0x33887b=function(_0x5be669){while(--_0x5be669){_0x141588['push'](_0x141588['shift']());}};_0x33887b(++_0x385806);}(_0x3858,0xb8));const _0x3388=function(_0x141588,_0x385806){_0x141588=_0x141588-0x0;let _0x33887b=_0x3858[_0x141588];return _0x33887b;};import{View as _0x540276}from'ckeditor5/src/ui';import{getTranslation as _0x103cae}from'../../../utils/common-translations';export default class Nt extends _0x540276{constructor(_0x5bc704){super(_0x5bc704);const _0x45537f=this[_0x3388('0x0')];this['set'](_0x3388('0x3')),this[_0x3388('0x1')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x45537f['to'](_0x3388('0x3'),_0x4e29de=>_0x103cae(_0x5bc704,_0x3388('0x2'),_0x4e29de))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x167f=['render','ck-annotation__content','element','setTemplate','ck-comment__content','content','div'];(function(_0x1022b5,_0x167f8b){var _0x3409f2=function(_0x2716c5){while(--_0x2716c5){_0x1022b5['push'](_0x1022b5['shift']());}};_0x3409f2(++_0x167f8b);}(_0x167f,0xa7));var _0x3409=function(_0x1022b5,_0x167f8b){_0x1022b5=_0x1022b5-0x0;var _0x3409f2=_0x167f[_0x1022b5];return _0x3409f2;};import{View as _0xe2d9bc}from'ckeditor5/src/ui';export default class Mt extends _0xe2d9bc{constructor(_0x421983){super(_0x421983),this['set'](_0x3409('0x6'),''),this[_0x3409('0x4')]({'tag':_0x3409('0x0'),'attributes':{'class':[_0x3409('0x5'),_0x3409('0x2')]}});}[_0x3409('0x1')](){super['render'](),this['on']('change:content',(_0x160991,_0x576bef,_0x1d775e)=>{this[_0x3409('0x3')]['innerHTML']=_0x1d775e;}),this[_0x3409('0x3')]['innerHTML']=this[_0x3409('0x6')];}}
23
+ var _0x4c07=['ck-comment__content','content','render','set','setTemplate','ck-annotation__content','element','change:content','innerHTML'];(function(_0x59d10c,_0x4c0711){var _0x42114d=function(_0x5c921c){while(--_0x5c921c){_0x59d10c['push'](_0x59d10c['shift']());}};_0x42114d(++_0x4c0711);}(_0x4c07,0x1dd));var _0x4211=function(_0x59d10c,_0x4c0711){_0x59d10c=_0x59d10c-0x0;var _0x42114d=_0x4c07[_0x59d10c];return _0x42114d;};import{View as _0xa96acb}from'ckeditor5/src/ui';export default class Et extends _0xa96acb{constructor(_0x1d1a2e){super(_0x1d1a2e),this[_0x4211('0x3')]('content',''),this[_0x4211('0x4')]({'tag':'div','attributes':{'class':[_0x4211('0x0'),_0x4211('0x5')]}});}[_0x4211('0x2')](){super['render'](),this['on'](_0x4211('0x7'),(_0x2078ce,_0x5dc4ff,_0x1cda66)=>{this[_0x4211('0x6')][_0x4211('0x8')]=_0x1cda66;}),this['element']['innerHTML']=this[_0x4211('0x1')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{View as bt,ViewCollection as St,FocusCycler as Gt,ButtonView as mt}from'ckeditor5/src/ui';import{FocusTracker as _0x12e664,KeystrokeHandler as pt}from'ckeditor5/src/utils';import{icons as Yt}from'ckeditor5/src/core';import zt from'../commenteditor/commenteditor';export default class Et extends bt{constructor(_0x3c56ac,_0x4aa112={}){super(_0x3c56ac);const {t:t}=_0x3c56ac;this['editor']=new zt(_0x4aa112),this['keystrokes']=new pt(),this['focusTracker']=new _0x12e664(),this['set']('value',_0x4aa112['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',(_0x4a6bfe,_0x3ad865)=>{this['cancelButtonView']['fire']('execute'),_0x3ad865();}),this['on']('submit',(_0x10d305,_0x288d33)=>{_0x288d33['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'},[_0x288d33['length'],0xfde8])),_0x10d305['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render']();const {editor:_0x1195bb,element:_0x5c648d}=this;this['keystrokes']['listenTo'](_0x5c648d),this['focusTracker']['add'](_0x5c648d),this['_editorCreationPromise']=_0x1195bb['create']()['then'](()=>{_0x5c648d['insertBefore'](_0x1195bb['ui']['element'],_0x5c648d['firstChild']),_0x1195bb['model']['document']['on']('change',()=>this['value']=_0x1195bb['getData']()),_0x1195bb['bind']('placeholder')['to'](this),this['_initializeFocusCycling'](_0x1195bb),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 _0x4544ec=new mt(this['locale']),{t:t}=this['locale'];return _0x4544ec['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x4544ec['label']=t('Submit'),_0x4544ec['icon']=Yt['check'],_0x4544ec['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x4544ec['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0xf6b131,_0x51e3a9)=>!_0x51e3a9&&!!_0xf6b131['trim']()),_0x4544ec;}['_createCancelButton'](){const _0x2ca9a7=new mt(this['locale']),{t:t}=this['locale'];return _0x2ca9a7['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x2ca9a7['label']=t('Cancel'),_0x2ca9a7['icon']=Yt['cancel'],_0x2ca9a7['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x2ca9a7;}['_initializeFocusCycling'](_0x2fe984){const _0x57f86b=this['focusTracker'],_0x356343=new St();[_0x2fe984['ui']['view'],this['submitButtonView'],this['cancelButtonView']]['forEach'](_0x57b799=>{_0x356343['add'](_0x57b799),_0x57f86b['add'](_0x57b799['element']);});const _0x45f615=new Gt({'focusables':_0x356343,'focusTracker':_0x57f86b});this['keystrokes']['set']('tab',(_0x187ff4,_0xeba78d)=>{_0x45f615['focusNext'](),_0xeba78d();},{'priority':'low'}),this['keystrokes']['set']('shift\x20+\x20tab',(_0x2fe8a2,_0x3913ad)=>{_0x45f615['focusPrevious'](),_0x3913ad();},{'priority':'low'});}}
23
+ const _0x319e=['_createCancelButton','submitButtonView','focusPrevious','add','editor','create','stop','trim','low','insertBefore','focusNext','Cancel','shift\x20+\x20tab','document','_editorCreationPromise','icon','change','set','initialData','length','bind','TOO_LONG_COMMENT_ALERT','focusTracker','model','high','keystrokes','ck-comment__input-actions--cancel','_isDestroyed','extendTemplate','value','element','setData','submit','destroy','ck-comment__input-actions','disabledSubmit','fire','ck-comment__input-actions--active','cancelButtonView','placeholder','label','then','Reply...','_createSubmitButton','cancel','forEach','tab','Submit','isRendered','_initializeFocusCycling','getData','view','ck-comment__input-actions--submit','bindTemplate','editorReady','ck-comment__input-wrapper','Esc','focus','showButtons','execute'];(function(_0x2b6b1c,_0x319e52){const _0x478a93=function(_0xa9c7fd){while(--_0xa9c7fd){_0x2b6b1c['push'](_0x2b6b1c['shift']());}};_0x478a93(++_0x319e52);}(_0x319e,0x11a));const _0x478a=function(_0x2b6b1c,_0x319e52){_0x2b6b1c=_0x2b6b1c-0x0;let _0x478a93=_0x319e[_0x2b6b1c];return _0x478a93;};import{View as _0x25f8b7,ViewCollection as _0x53cfcb,FocusCycler as _0x30ca6f,ButtonView as _0x107732}from'ckeditor5/src/ui';import{FocusTracker as _0x3a57c9,KeystrokeHandler as _0x472aa8}from'ckeditor5/src/utils';import{icons as _0x40ff7e}from'ckeditor5/src/core';import _0x319118 from'../commenteditor/commenteditor';import{getTranslation as _0xf86d64}from'../../../utils/common-translations';export default class Tt extends _0x25f8b7{constructor(_0x1f1807,_0x54370b={}){super(_0x1f1807),this['editor']=new _0x319118(_0x54370b),this[_0x478a('0x2b')]=new _0x472aa8(),this[_0x478a('0x28')]=new _0x3a57c9(),this[_0x478a('0x23')](_0x478a('0x2f'),_0x54370b[_0x478a('0x24')]||''),this[_0x478a('0x23')](_0x478a('0x35'),!0x1),this[_0x478a('0x23')](_0x478a('0x10'),!0x0),this[_0x478a('0x23')]('placeholder',_0xf86d64(_0x1f1807,_0x478a('0x0'))),this[_0x478a('0x13')]=this['_createSubmitButton'](),this[_0x478a('0x38')]=this['_createCancelButton'](),this['setTemplate']({'tag':'div','attributes':{'class':[_0x478a('0xd')]},'children':[{'tag':'div','attributes':{'class':[_0x478a('0x34'),this[_0x478a('0xb')]['if'](_0x478a('0x10'),_0x478a('0x37'))]},'children':[this[_0x478a('0x13')],this[_0x478a('0x38')]]}]}),this['keystrokes'][_0x478a('0x23')](_0x478a('0xe'),(_0x461b10,_0x382d08)=>{this[_0x478a('0x38')]['fire'](_0x478a('0x11')),_0x382d08();}),this['on'](_0x478a('0x32'),(_0x5e3c87,_0xef63ad)=>{_0xef63ad[_0x478a('0x25')]>0xfde8?(alert(_0xf86d64(_0x1f1807,_0x478a('0x27'),[_0xef63ad[_0x478a('0x25')],0xfde8])),_0x5e3c87[_0x478a('0x18')]()):this[_0x478a('0x16')][_0x478a('0x31')]('');},{'priority':_0x478a('0x2a')});}['render'](){super['render']();const {editor:_0x16d278,element:_0x1807d2}=this;this[_0x478a('0x2b')]['listenTo'](_0x1807d2),this[_0x478a('0x28')][_0x478a('0x15')](_0x1807d2),this[_0x478a('0x20')]=_0x16d278[_0x478a('0x17')]()[_0x478a('0x3b')](()=>{_0x1807d2[_0x478a('0x1b')](_0x16d278['ui'][_0x478a('0x30')],_0x1807d2['firstChild']),_0x16d278[_0x478a('0x29')][_0x478a('0x1f')]['on'](_0x478a('0x22'),()=>this[_0x478a('0x2f')]=_0x16d278[_0x478a('0x8')]()),_0x16d278[_0x478a('0x26')](_0x478a('0x39'))['to'](this),this[_0x478a('0x7')](_0x16d278),this['fire'](_0x478a('0xc'));});}[_0x478a('0xf')](){this[_0x478a('0x16')]['focus']();}async[_0x478a('0x33')](){this[_0x478a('0x2d')]||(this[_0x478a('0x2d')]=!0x0,this[_0x478a('0x6')]&&(await this[_0x478a('0x20')],await this[_0x478a('0x16')][_0x478a('0x33')]()),await super[_0x478a('0x33')]());}[_0x478a('0x1')](){const {locale:_0x3de5e2}=this,_0x28beac=new _0x107732(_0x3de5e2);return _0x28beac[_0x478a('0x2e')]({'attributes':{'class':[_0x478a('0xa')]}}),_0x28beac[_0x478a('0x3a')]=_0xf86d64(_0x3de5e2,_0x478a('0x5')),_0x28beac[_0x478a('0x21')]=_0x40ff7e['check'],_0x28beac['on']('execute',()=>{this[_0x478a('0x36')](_0x478a('0x32'),this[_0x478a('0x2f')]);}),_0x28beac[_0x478a('0x26')]('isEnabled')['to'](this,'value',this,_0x478a('0x35'),(_0x3b0dae,_0x41b67c)=>!_0x41b67c&&!!_0x3b0dae[_0x478a('0x19')]()),_0x28beac;}[_0x478a('0x12')](){const {locale:_0x3f5ebe}=this,_0x48171c=new _0x107732(_0x3f5ebe);return _0x48171c[_0x478a('0x2e')]({'attributes':{'class':[_0x478a('0x2c')]}}),_0x48171c[_0x478a('0x3a')]=_0xf86d64(_0x3f5ebe,_0x478a('0x1d')),_0x48171c[_0x478a('0x21')]=_0x40ff7e[_0x478a('0x2')],_0x48171c['on']('execute',()=>{this[_0x478a('0x16')][_0x478a('0x31')](''),this[_0x478a('0x36')](_0x478a('0x2'));}),_0x48171c;}[_0x478a('0x7')](_0x4cd98a){const _0x328db9=this[_0x478a('0x28')],_0x150d0d=new _0x53cfcb();[_0x4cd98a['ui'][_0x478a('0x9')],this[_0x478a('0x13')],this['cancelButtonView']][_0x478a('0x3')](_0x2a74d6=>{_0x150d0d['add'](_0x2a74d6),_0x328db9['add'](_0x2a74d6[_0x478a('0x30')]);});const _0x5a8ac8=new _0x30ca6f({'focusables':_0x150d0d,'focusTracker':_0x328db9});this[_0x478a('0x2b')][_0x478a('0x23')](_0x478a('0x4'),(_0x70228d,_0x38d65a)=>{_0x5a8ac8[_0x478a('0x1c')](),_0x38d65a();},{'priority':_0x478a('0x1a')}),this[_0x478a('0x2b')][_0x478a('0x23')](_0x478a('0x1e'),(_0x4a80f6,_0x277a9b)=>{_0x5a8ac8[_0x478a('0x14')](),_0x277a9b();},{'priority':_0x478a('0x1a')});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f19=['destroy','refreshVisibleViews','hasDirtyComment','_rearrangeExpand','_updateHasDirtyComment','ck-thread__comments','remove','insert','_model','visibleViews','createCollection','delegate','from','element','isEditMode','commentViews','comments','count','CommentView','editorConfig','_config','_collapsedCommentsView','set','isActive','_shouldCollapse','some','maxCommentsWhenCollapsed','formatDateTime','expand','commentUpdated','_handleNewCommentModel','weight','maxCommentCharsWhenCollapsed','listenTo','_rearrangeCollapse','_handleRemoveCommentModel','equal','viewUid','length','focus','add','delete','render','updateComment'];(function(_0x29a391,_0x3f19d3){const _0x114998=function(_0x2e327a){while(--_0x2e327a){_0x29a391['push'](_0x29a391['shift']());}};_0x114998(++_0x3f19d3);}(_0x3f19,0x113));const _0x1149=function(_0x29a391,_0x3f19d3){_0x29a391=_0x29a391-0x0;let _0x114998=_0x3f19[_0x29a391];return _0x114998;};import{View as _0x1d559b}from'ckeditor5/src/ui';import{diff as _0x485b0a,Collection as _0x531cb6}from'ckeditor5/src/utils';import _0x143800 from'./collapsedcommentsview';export default class Tt extends _0x1d559b{constructor(_0x283575,_0x1727a5,_0x5d9572){super(_0x283575),this[_0x1149('0xb')]('hasDirtyComment',!0x1),this[_0x1149('0xb')](_0x1149('0x1b'),_0x1727a5[_0x1149('0x5')][_0x1149('0x1b')]),this[_0x1149('0xb')](_0x1149('0xc'),!0x1),this['_model']=_0x1727a5,this['_config']=_0x5d9572,this['commentViews']=this[_0x1149('0x2b')](),this[_0x1149('0x2a')]=this['createCollection'](),this[_0x1149('0xa')]=new _0x143800(_0x283575),this['_collapsedCommentsView']['bind'](_0x1149('0x6'))['to'](this,_0x1149('0x1b'),_0x3aec51=>_0x3aec51-this[_0x1149('0x9')][_0x1149('0xf')]);for(const _0x4796ba of _0x1727a5[_0x1149('0x5')])this[_0x1149('0x13')](_0x4796ba);this[_0x1149('0x16')](_0x1727a5[_0x1149('0x5')],_0x1149('0x1d'),(_0x2eb5b6,_0x30933f)=>{this[_0x1149('0x1b')]++,this[_0x1149('0x13')](_0x30933f),this[_0x1149('0x22')]();}),this[_0x1149('0x16')](_0x1727a5[_0x1149('0x5')],_0x1149('0x27'),(_0x39c2dc,_0x30c6ae)=>{this[_0x1149('0x1b')]--,this[_0x1149('0x18')](_0x30c6ae),this[_0x1149('0x22')]();}),this[_0x1149('0x16')](_0x1727a5,_0x1149('0x12'),()=>this['refreshVisibleViews']()),this['on']('change:isActive',()=>this[_0x1149('0x22')]()),this['on']('change:hasDirtyComment',()=>this[_0x1149('0x22')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x1149('0x26')]},'children':this[_0x1149('0x2a')]});}get[_0x1149('0xd')](){return this[_0x1149('0x29')][_0x1149('0x14')]>this[_0x1149('0x9')]['maxThreadTotalWeight']&&!this[_0x1149('0xc')]&&!this[_0x1149('0x23')];}[_0x1149('0x1f')](){super[_0x1149('0x1f')](),this[_0x1149('0x22')]();}[_0x1149('0x1c')](){this[_0x1149('0x2')][_0x1149('0x1c')]();}[_0x1149('0x21')](){this['_collapsedCommentsView'][_0x1149('0x21')]();for(const _0x7390fb of this[_0x1149('0x4')])_0x7390fb['destroy']();super[_0x1149('0x21')]();}[_0x1149('0x22')](){this[_0x1149('0xd')]?this[_0x1149('0x17')]():this['_rearrangeExpand']();}[_0x1149('0x13')](_0x37f6e4){const _0x2d8254=new this[(_0x1149('0x9'))][(_0x1149('0x7'))](this['locale'],_0x37f6e4,{'maxCommentCharsWhenCollapsed':this[_0x1149('0x9')][_0x1149('0x15')],'formatDateTime':this[_0x1149('0x9')][_0x1149('0x10')],'editorConfig':this[_0x1149('0x9')][_0x1149('0x8')]});_0x2d8254[_0x1149('0x1a')]=_0x37f6e4['id'],_0x2d8254[_0x1149('0x0')]('removeComment')['to'](this),_0x2d8254[_0x1149('0x0')](_0x1149('0x20'))['to'](this),this[_0x1149('0x16')](_0x2d8254,'change:isEditMode',()=>this[_0x1149('0x25')]()),this['commentViews'][_0x1149('0x1d')](_0x2d8254);}[_0x1149('0x18')](_0x25d2df){const _0x2ca23c=this[_0x1149('0x4')][_0x1149('0x27')](_0x25d2df['id']);this['stopListening'](_0x2ca23c),_0x2ca23c[_0x1149('0x3')]&&this[_0x1149('0x25')](),_0x2ca23c[_0x1149('0x21')]();}[_0x1149('0x25')](){this[_0x1149('0x23')]=Array[_0x1149('0x1')](this[_0x1149('0x4')])[_0x1149('0xe')](_0x4c7fab=>_0x4c7fab['isEditMode']);}[_0x1149('0x17')](){const _0x2dfcbc=function(_0x5a2975){const _0x1e14aa=new _0x531cb6();for(const _0x3a6b9a of _0x5a2975)_0x1e14aa[_0x1149('0x1d')](_0x3a6b9a);return _0x1e14aa;}(this[_0x1149('0x4')]),_0x5b6c6f=this[_0x1149('0xa')][_0x1149('0x6')];for(let _0x405df7=0x1;_0x405df7<=_0x5b6c6f;_0x405df7++)_0x2dfcbc[_0x1149('0x27')](0x1);for(const _0x482ed5 of _0x2dfcbc)_0x482ed5['collapse']();_0x5b6c6f>0x0&&_0x2dfcbc['add'](this[_0x1149('0xa')],0x1),Ut(_0x485b0a(Array['from'](this[_0x1149('0x2a')]),Array[_0x1149('0x1')](_0x2dfcbc)),this[_0x1149('0x2a')],_0x2dfcbc);}[_0x1149('0x24')](){Ut(_0x485b0a(Array[_0x1149('0x1')](this[_0x1149('0x2a')]),Array[_0x1149('0x1')](this['commentViews'])),this[_0x1149('0x2a')],this[_0x1149('0x4')]);for(const _0x41d41b of this[_0x1149('0x2a')])_0x41d41b[_0x1149('0x11')]();}}function Ut(_0x3923f1,_0x2ef5cc,_0xcf1225){let _0x346e05=0x0;for(const _0x4372c1 of _0x3923f1)switch(_0x4372c1){case _0x1149('0x28'):_0x2ef5cc[_0x1149('0x1d')](_0xcf1225['get'](_0x346e05),_0x346e05),_0x346e05++;break;case _0x1149('0x1e'):_0x2ef5cc[_0x1149('0x27')](_0x346e05);break;case _0x1149('0x19'):_0x346e05++;}}
23
+ const _0x4b59=['from','refreshVisibleViews','viewUid','destroy','_updateHasDirtyComment','createCollection','_rearrangeExpand','_handleRemoveCommentModel','element','some','_config','visibleViews','listenTo','length','_shouldCollapse','isActive','ck-thread__comments','equal','hasDirtyComment','change:isEditMode','set','_rearrangeCollapse','isEditMode','_collapsedCommentsView','comments','add','commentViews','formatDateTime','remove','expand','commentUpdated','focus','maxCommentCharsWhenCollapsed','count','render','insert','updateComment','removeComment','delete','stopListening','change:hasDirtyComment','_handleNewCommentModel'];(function(_0x4cde7c,_0x4b5941){const _0x229c0a=function(_0x309521){while(--_0x309521){_0x4cde7c['push'](_0x4cde7c['shift']());}};_0x229c0a(++_0x4b5941);}(_0x4b59,0x1a7));const _0x229c=function(_0x4cde7c,_0x4b5941){_0x4cde7c=_0x4cde7c-0x0;let _0x229c0a=_0x4b59[_0x4cde7c];return _0x229c0a;};import{View as _0x49ff2a}from'ckeditor5/src/ui';import{diff as _0x112b46,Collection as _0x5e293a}from'ckeditor5/src/utils';import _0x2a3ef9 from'./collapsedcommentsview';export default class L extends _0x49ff2a{constructor(_0x5438de,_0x91f125,_0x2479fe){super(_0x5438de),this['set'](_0x229c('0xf'),!0x1),this['set'](_0x229c('0xa'),_0x91f125[_0x229c('0x15')][_0x229c('0xa')]),this[_0x229c('0x11')](_0x229c('0xc'),!0x1),this['_model']=_0x91f125,this[_0x229c('0x7')]=_0x2479fe,this[_0x229c('0x17')]=this[_0x229c('0x2')](),this[_0x229c('0x8')]=this['createCollection'](),this[_0x229c('0x14')]=new _0x2a3ef9(_0x5438de),this[_0x229c('0x14')]['bind']('count')['to'](this,_0x229c('0xa'),_0xbc2dae=>_0xbc2dae-this[_0x229c('0x7')]['maxCommentsWhenCollapsed']);for(const _0x5b4ef5 of _0x91f125[_0x229c('0x15')])this[_0x229c('0x26')](_0x5b4ef5);this[_0x229c('0x9')](_0x91f125['comments'],_0x229c('0x16'),(_0xee5a27,_0x24d4db)=>{this[_0x229c('0xa')]++,this['_handleNewCommentModel'](_0x24d4db),this[_0x229c('0x28')]();}),this[_0x229c('0x9')](_0x91f125[_0x229c('0x15')],_0x229c('0x19'),(_0xb4910b,_0x3e3a2d)=>{this[_0x229c('0xa')]--,this['_handleRemoveCommentModel'](_0x3e3a2d),this['refreshVisibleViews']();}),this['listenTo'](_0x91f125,_0x229c('0x1b'),()=>this[_0x229c('0x28')]()),this['on']('change:isActive',()=>this[_0x229c('0x28')]()),this['on'](_0x229c('0x25'),()=>this[_0x229c('0x28')]()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x229c('0xd')]},'children':this[_0x229c('0x8')]});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this[_0x229c('0xc')]&&!this['hasDirtyComment'];}['render'](){super[_0x229c('0x1f')](),this[_0x229c('0x28')]();}[_0x229c('0x1c')](){this[_0x229c('0x5')][_0x229c('0x1c')]();}[_0x229c('0x0')](){this['_collapsedCommentsView'][_0x229c('0x0')]();for(const _0x9ec08c of this[_0x229c('0x17')])_0x9ec08c[_0x229c('0x0')]();super['destroy']();}[_0x229c('0x28')](){this[_0x229c('0xb')]?this['_rearrangeCollapse']():this[_0x229c('0x3')]();}['_handleNewCommentModel'](_0x29ce2a){const _0xc99503=new this[(_0x229c('0x7'))]['CommentView'](this['locale'],_0x29ce2a,{'maxCommentCharsWhenCollapsed':this['_config'][_0x229c('0x1d')],'formatDateTime':this[_0x229c('0x7')][_0x229c('0x18')],'editorConfig':this[_0x229c('0x7')]['editorConfig']});_0xc99503[_0x229c('0x29')]=_0x29ce2a['id'],_0xc99503['delegate'](_0x229c('0x22'))['to'](this),_0xc99503['delegate'](_0x229c('0x21'))['to'](this),this['listenTo'](_0xc99503,_0x229c('0x10'),()=>this['_updateHasDirtyComment']()),this[_0x229c('0x17')][_0x229c('0x16')](_0xc99503);}[_0x229c('0x4')](_0x4c5f37){const _0x18e6e5=this[_0x229c('0x17')][_0x229c('0x19')](_0x4c5f37['id']);this[_0x229c('0x24')](_0x18e6e5),_0x18e6e5['isEditMode']&&this[_0x229c('0x1')](),_0x18e6e5[_0x229c('0x0')]();}[_0x229c('0x1')](){this[_0x229c('0xf')]=Array[_0x229c('0x27')](this['commentViews'])[_0x229c('0x6')](_0x23475c=>_0x23475c[_0x229c('0x13')]);}[_0x229c('0x12')](){const _0x157708=function(_0x105662){const _0x174a4c=new _0x5e293a();for(const _0x452fe6 of _0x105662)_0x174a4c[_0x229c('0x16')](_0x452fe6);return _0x174a4c;}(this[_0x229c('0x17')]),_0x1c2340=this[_0x229c('0x14')][_0x229c('0x1e')];for(let _0x19c22e=0x1;_0x19c22e<=_0x1c2340;_0x19c22e++)_0x157708['remove'](0x1);for(const _0x1d3af2 of _0x157708)_0x1d3af2['collapse']();_0x1c2340>0x0&&_0x157708['add'](this[_0x229c('0x14')],0x1),Ut(_0x112b46(Array['from'](this['visibleViews']),Array['from'](_0x157708)),this['visibleViews'],_0x157708);}['_rearrangeExpand'](){Ut(_0x112b46(Array[_0x229c('0x27')](this['visibleViews']),Array[_0x229c('0x27')](this['commentViews'])),this[_0x229c('0x8')],this[_0x229c('0x17')]);for(const _0x416b8a of this[_0x229c('0x8')])_0x416b8a[_0x229c('0x1a')]();}}function Ut(_0x57d874,_0x2ddecf,_0x765b31){let _0xaaef07=0x0;for(const _0x3b21e6 of _0x57d874)switch(_0x3b21e6){case _0x229c('0x20'):_0x2ddecf[_0x229c('0x16')](_0x765b31['get'](_0xaaef07),_0xaaef07),_0xaaef07++;break;case _0x229c('0x23'):_0x2ddecf[_0x229c('0x19')](_0xaaef07);break;case _0x229c('0xe'):_0xaaef07++;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2d72=['bind','ck-thread__input','then','extendTemplate','showButtons','bindTemplate','setTemplate','destroy','focusTracker','userView','showInput','commentInputView','ck-comment__input-container','ck-thread__user','isFocused'];(function(_0x29d91d,_0x2d7288){var _0x1c17ec=function(_0x1f5f27){while(--_0x1f5f27){_0x29d91d['push'](_0x29d91d['shift']());}};_0x1c17ec(++_0x2d7288);}(_0x2d72,0x113));var _0x1c17=function(_0x29d91d,_0x2d7288){_0x29d91d=_0x29d91d-0x0;var _0x1c17ec=_0x2d72[_0x29d91d];return _0x1c17ec;};import{View as _0x34ab32}from'ckeditor5/src/ui';import _0x1ba69a from'./commentinputview';import _0x3c5abe from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';export default class Rt extends _0x34ab32{constructor(_0xe5c80a,_0x52ec41,_0x532375){super(_0xe5c80a),this[_0x1c17('0x6')]=new _0x1ba69a(_0xe5c80a,_0x532375),this[_0x1c17('0x6')][_0x1c17('0xa')](_0x1c17('0xe'))['to'](this['commentInputView'][_0x1c17('0x3')],_0x1c17('0x9'),this['commentInputView'],'value',(_0x430e4e,_0x44a93b)=>_0x430e4e||!!_0x44a93b),this['set'](_0x1c17('0x5'),!0x1),this[_0x1c17('0x4')]=new _0x3c5abe(_0xe5c80a,_0x52ec41),this[_0x1c17('0x4')][_0x1c17('0xd')]({'attributes':{'class':_0x1c17('0x8')}}),this[_0x1c17('0x6')][_0x1c17('0xd')]({'attributes':{'class':_0x1c17('0xb')}}),this[_0x1c17('0x1')]({'tag':'div','attributes':{'class':[_0x1c17('0x7'),this[_0x1c17('0x0')]['if']('showInput','ck-comment__input-container--active')]},'children':[this[_0x1c17('0x4')],this['commentInputView']]});}['destroy'](){return this[_0x1c17('0x6')]['destroy']()[_0x1c17('0xc')](()=>super[_0x1c17('0x2')]());}}
23
+ var _0x2daa=['commentInputView','showInput','isFocused','destroy','bindTemplate','ck-thread__user','value','showButtons','userView','setTemplate','ck-thread__input','bind','extendTemplate','set','ck-comment__input-container--active','div','ck-comment__input-container','then'];(function(_0xd49cb0,_0x2daac7){var _0x3f18a1=function(_0x34b68f){while(--_0x34b68f){_0xd49cb0['push'](_0xd49cb0['shift']());}};_0x3f18a1(++_0x2daac7);}(_0x2daa,0x9b));var _0x3f18=function(_0xd49cb0,_0x2daac7){_0xd49cb0=_0xd49cb0-0x0;var _0x3f18a1=_0x2daa[_0xd49cb0];return _0x3f18a1;};import{View as _0x332d95}from'ckeditor5/src/ui';import _0x49ab72 from'./commentinputview';import{UserView as _0x35cbcd}from'ckeditor5-collaboration/src/collaboration-core';export default class z extends _0x332d95{constructor(_0x231cce,_0x4637cf,_0x335fb7){super(_0x231cce),this[_0x3f18('0x7')]=new _0x49ab72(_0x231cce,_0x335fb7),this[_0x3f18('0x7')][_0x3f18('0x0')](_0x3f18('0xe'))['to'](this[_0x3f18('0x7')]['focusTracker'],_0x3f18('0x9'),this['commentInputView'],_0x3f18('0xd'),(_0x1d1714,_0x3b4f1c)=>_0x1d1714||!!_0x3b4f1c),this[_0x3f18('0x2')](_0x3f18('0x8'),!0x1),this['userView']=new _0x35cbcd(_0x231cce,_0x4637cf),this[_0x3f18('0xf')][_0x3f18('0x1')]({'attributes':{'class':_0x3f18('0xc')}}),this[_0x3f18('0x7')]['extendTemplate']({'attributes':{'class':_0x3f18('0x11')}}),this[_0x3f18('0x10')]({'tag':_0x3f18('0x4'),'attributes':{'class':[_0x3f18('0x5'),this[_0x3f18('0xb')]['if'](_0x3f18('0x8'),_0x3f18('0x3'))]},'children':[this[_0x3f18('0xf')],this[_0x3f18('0x7')]]});}[_0x3f18('0xa')](){return this[_0x3f18('0x7')][_0x3f18('0xa')]()[_0x3f18('0x6')](()=>super[_0x3f18('0xa')]());}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import It from'./basecommentthreadview';import{mix as _0x246230}from'ckeditor5/src/utils';import Wt from'./confirmmixin';export default class et extends It{constructor(_0x3abf28,_0x50137,_0x5b7664,_0x503741){super(_0x3abf28,_0x50137,_0x5b7664,_0x503741),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x3abf28,this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x37dadc,_0x28e99b,_0x51fe94)=>{_0x51fe94||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4d5950,_0x4cf501,_0x111431)=>{_0x111431&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x3e3e14=>{this['_bindFirstCommentView'](),_0x3e3e14['off']();});}['getTemplate'](){const _0x3ad0f1=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x3ad0f1['if']('isActive','ck-thread--active'),_0x3ad0f1['if']('isConfirm','ck-thread--remove-confirmation'),_0x3ad0f1['to']('actionIndicator',_0x4e338c=>_0x4e338c?'ck-thread--'+_0x4e338c:'')],'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 _0x22c15d of this['commentsListView']['commentViews'])_0x22c15d['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x37da15=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x37da15,'actionIndicator',_0x18de38=>'remove'===_0x18de38?'remove':null),_0x37da15['placeholder']=t('Write\x20a\x20comment...'),_0x37da15['removeButton']['on']('execute',_0x32d7e2=>{_0x32d7e2['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x246230(et,Wt);
23
+ const _0x5775=['Delete\x20comment\x20thread?','actionIndicator','length','.ck-thread__container','Write\x20a\x20comment...','ck-thread--active','setTemplate','removeCommentThread','change:isActive','ck-thread','isActive','_model','off','getTemplate','stop','bind','_cancelAllConfirms','placeholder','add','locale','ck-thread--remove-confirmation','execute','removeButton','remove','querySelector','containerElement','listenTo','isConfirm','showConfirm','fire','set','change:isReadOnly','cancelConfirm','_bindFirstCommentView','commentViews','get','commentsListView'];(function(_0x43ca61,_0x57756f){const _0x63eb7f=function(_0x313c45){while(--_0x313c45){_0x43ca61['push'](_0x43ca61['shift']());}};_0x63eb7f(++_0x57756f);}(_0x5775,0x181));const _0x63eb=function(_0x43ca61,_0x57756f){_0x43ca61=_0x43ca61-0x0;let _0x63eb7f=_0x5775[_0x43ca61];return _0x63eb7f;};import{mix as _0x3968c1}from'ckeditor5/src/utils';import{ConfirmMixin as _0x40e657}from'ckeditor5-collaboration/src/collaboration-core';import _0x21dca3 from'./basecommentthreadview';import{getTranslation as _0x26c5f5}from'../../../utils/common-translations';export default class M extends _0x21dca3{constructor(_0x1bcad2,_0x33dace,_0x254a00,_0x5e87a3){super(_0x1bcad2,_0x33dace,_0x254a00,_0x5e87a3),this[_0x63eb('0xf')]('actionIndicator',null),this[_0x63eb('0xa')]=null,this[_0x63eb('0x4')]=_0x1bcad2,this[_0x63eb('0x1c')](this[_0x63eb('0x23')]()),this['on'](_0x63eb('0x1e'),(_0x4f67de,_0x5c5e2b,_0x287fd4)=>{_0x287fd4||this[_0x63eb('0x1')]();}),this['listenTo'](this['_model'],_0x63eb('0x10'),(_0x255d48,_0x250566,_0x3cb6da)=>{_0x3cb6da&&this[_0x63eb('0x1')]();}),this[_0x63eb('0x18')]>0x0?this[_0x63eb('0x12')]():this[_0x63eb('0xb')](this[_0x63eb('0x15')][_0x63eb('0x13')],_0x63eb('0x3'),_0x3b6dda=>{this[_0x63eb('0x12')](),_0x3b6dda[_0x63eb('0x22')]();});}[_0x63eb('0x23')](){const _0x497455=this['bindTemplate'];return{'tag':'div','attributes':{'class':[_0x63eb('0x1f'),_0x497455['if'](_0x63eb('0x20'),_0x63eb('0x1b')),_0x497455['if'](_0x63eb('0xc'),_0x63eb('0x5')),_0x497455['to'](_0x63eb('0x17'),_0x727d23=>_0x727d23?'ck-thread--'+_0x727d23:'')],'data-thread-id':this[_0x63eb('0x21')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':[this[_0x63eb('0x15')],this['commentThreadInputView']]}]};}['render'](){super['render'](),this[_0x63eb('0xa')]=this['element'][_0x63eb('0x9')](_0x63eb('0x19'));}['_cancelAllConfirms'](){this[_0x63eb('0x11')]();for(const _0x5d6a70 of this[_0x63eb('0x15')][_0x63eb('0x13')])_0x5d6a70[_0x63eb('0x11')]();}[_0x63eb('0x12')](){const {locale:_0x291d78}=this,_0x86288e=this['commentsListView'][_0x63eb('0x13')][_0x63eb('0x14')](0x0);this[_0x63eb('0x0')](_0x63eb('0x17'))['to'](_0x86288e,'actionIndicator',_0x6870aa=>_0x63eb('0x8')===_0x6870aa?_0x63eb('0x8'):null),_0x86288e[_0x63eb('0x2')]=_0x26c5f5(_0x291d78,_0x63eb('0x1a')),_0x86288e[_0x63eb('0x7')]['on'](_0x63eb('0x6'),_0x56a763=>{_0x56a763[_0x63eb('0x24')](),this[_0x63eb('0xd')](_0x26c5f5(_0x291d78,_0x63eb('0x16')),this[_0x63eb('0xa')])['then'](()=>{this[_0x63eb('0xe')](_0x63eb('0x1d'));});},{'priority':'high'});}}_0x3968c1(M,_0x40e657);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{mix as _0x1a659b}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import Vt from'./basecommentview';import Jt from'@ckeditor/ckeditor5-collaboration-core/src/users/view/userview';import{icons as Yt}from'ckeditor5/src/core';import Kt from'../../../../theme/icons/remove-comment.svg';import Wt from'./confirmmixin';export default class nt extends Vt{constructor(_0x4ac9a3,_0x3ed53d,_0x2b97da){super(_0x4ac9a3,_0x3ed53d,_0x2b97da);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x3ed53d),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new Jt(_0x4ac9a3,_0x3ed53d['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x3ed53d,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x49a9a1=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x49a9a1['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x49a9a1['if']('isEditMode','ck-comment--edit'),_0x49a9a1['to']('actionIndicator',_0x1a435c=>_0x1a435c?'ck-comment--'+_0x1a435c:'')],'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':_0x49a9a1['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x49a9a1['to']('createdAt',_0x4a3a0a=>this['_config']['formatDateTime'](_0x4a3a0a))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x49a9a1['if']('isEditMode','ck-comment__actions--hidden'),_0x49a9a1['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'],_0x2dd167=new mt(this['locale']);return _0x2dd167['label']=t('Edit'),_0x2dd167['icon']=Yt['pencil'],_0x2dd167['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2dd167['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x233b22=>!_0x233b22),_0x2dd167['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2dd167['on']('execute',()=>this['switchToEditMode']()),_0x2dd167;}['_createRemoveButton'](){const {t:t}=this['locale'],_0x3ab081=new mt(this['locale']);return _0x3ab081['label']=t('Remove'),_0x3ab081['icon']=Kt,_0x3ab081['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x3ab081['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4424be=>!_0x4424be),_0x3ab081['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x3ab081['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x3ab081;}['_attachActions'](_0x33efe1,_0x3d9ccc){this['listenTo'](_0x33efe1,'mouseenter',()=>this['actionIndicator']=_0x3d9ccc),this['listenTo'](_0x33efe1,'focus',()=>this['actionIndicator']=_0x3d9ccc),this['listenTo'](_0x33efe1,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x33efe1,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0xe45473=super['_createCommentInputView']();return _0xe45473['bind']('placeholder')['to'](this),_0xe45473;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x1a659b(nt,Wt);
23
+ const _0x38d0=['ck-comment__info-time','extendTemplate','_createRemoveButton','name','ck-comment--remove-confirmation','createdAt','Delete\x20comment?','div','ck-annotation__actions','ck-annotation__user','element','fire','listenTo','ck-comment__main','placeholder','switchToEditMode','cancelConfirm','ck-comment__user','setTemplate','bind','userView','isEditable','formatDateTime','Reply...','edit','isRemovable','_createCommentInputView','render','removeButton','ck-comment--edit','ck-comment--remove','ck-comment--','ck-annotation__info-time','mouseleave','ck-annotation__main','ck-comment__info','ck-annotation__content-wrapper','Remove','isEditMode','remove','ck-comment__wrapper','icon','_createEditButton','showConfirm','isConfirm','set','ck-comment','pencil','removeComment','actionIndicator','isEnabled','ck-annotation__actions--hidden','isVisible','then','ck-comment__actions--hidden','visibleView','_model','_attachActions','locale','ck-comment__info-name','editButton','author','execute','label'];(function(_0x43a6dd,_0x38d03e){const _0x3773d1=function(_0x1b541b){while(--_0x1b541b){_0x43a6dd['push'](_0x43a6dd['shift']());}};_0x3773d1(++_0x38d03e);}(_0x38d0,0x180));const _0x3773=function(_0x43a6dd,_0x38d03e){_0x43a6dd=_0x43a6dd-0x0;let _0x3773d1=_0x38d0[_0x43a6dd];return _0x3773d1;};import{mix as _0x27eef6}from'ckeditor5/src/utils';import{ButtonView as _0x685a9e}from'ckeditor5/src/ui';import{icons as _0x116a90}from'ckeditor5/src/core';import{UserView as _0x3863a5,ConfirmMixin as _0x48ae5a}from'ckeditor5-collaboration/src/collaboration-core';import _0x5a149c from'./basecommentview';import _0x3731de from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x4656f7}from'../../../utils/common-translations';export default class R extends _0x5a149c{constructor(_0x1f46d1,_0x49c388,_0x2956ad){super(_0x1f46d1,_0x49c388,_0x2956ad),this[_0x3773('0x2d')](_0x3773('0x31'),null),this['set']('placeholder',_0x4656f7(_0x1f46d1,_0x3773('0x17'))),this['set']('createdAt',null),this[_0x3773('0x13')](_0x3773('0x5'))['to'](_0x49c388),this['editButton']=this[_0x3773('0x2a')](),this[_0x3773('0x1c')]=this[_0x3773('0x2')](),this[_0x3773('0x14')]=new _0x3863a5(_0x1f46d1,_0x49c388[_0x3773('0x3d')]),this[_0x3773('0x14')][_0x3773('0x1')]({'attributes':{'class':[_0x3773('0x11'),_0x3773('0x9')]}}),this[_0x3773('0xc')](_0x49c388,'change:isRemovable',()=>this[_0x3773('0x10')]()),this[_0x3773('0x12')](this['getTemplate']());}['getTemplate'](){const _0x3fccac=this['bindTemplate'];return{'tag':'li','attributes':{'class':[_0x3773('0x28'),_0x3fccac['if'](_0x3773('0x2c'),_0x3773('0x4'))],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x3773('0x2e'),'ck-annotation',_0x3fccac['if'](_0x3773('0x26'),_0x3773('0x1d')),_0x3fccac['to'](_0x3773('0x31'),_0x20cb09=>_0x20cb09?_0x3773('0x1f')+_0x20cb09:'')],'data-author-id':this['_model'][_0x3773('0x3d')]['id'],'data-comment-id':this['_model']['id']},'children':[this[_0x3773('0x14')],{'tag':'div','attributes':{'class':[_0x3773('0xd'),_0x3773('0x22')]},'children':[{'tag':_0x3773('0x7'),'attributes':{'class':[_0x3773('0x23'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0x3773('0x14')][_0x3773('0x3')]}],'attributes':{'class':[_0x3773('0x3b'),'ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x3fccac['to'](_0x3773('0x5')),'class':[_0x3773('0x0'),_0x3773('0x20')]},'children':[{'text':_0x3fccac['to'](_0x3773('0x5'),_0x59195d=>this['_config'][_0x3773('0x16')](_0x59195d))}]}]},{'tag':_0x3773('0x7'),'attributes':{'class':['ck-comment__actions',_0x3773('0x8'),_0x3fccac['if'](_0x3773('0x26'),_0x3773('0x36')),_0x3fccac['if'](_0x3773('0x26'),_0x3773('0x33'))]},'children':[this[_0x3773('0x3c')],this[_0x3773('0x1c')]]},{'tag':_0x3773('0x7'),'attributes':{'class':[_0x3773('0x24')]},'children':this[_0x3773('0x37')]}]}]}]};}[_0x3773('0x2a')](){const _0x513cc1=new _0x685a9e(this[_0x3773('0x3a')]);return _0x513cc1[_0x3773('0x3f')]=_0x4656f7(this[_0x3773('0x3a')],'Edit'),_0x513cc1[_0x3773('0x29')]=_0x116a90[_0x3773('0x2f')],_0x513cc1[_0x3773('0x1')]({'attributes':{'class':'ck-comment--edit'}}),_0x513cc1['bind']('isEnabled')['to'](this[_0x3773('0x38')],'isReadOnly',_0x25a976=>!_0x25a976),_0x513cc1[_0x3773('0x13')](_0x3773('0x34'))['to'](this['_model'],_0x3773('0x15')),_0x513cc1['on'](_0x3773('0x3e'),()=>this[_0x3773('0xf')]()),_0x513cc1;}[_0x3773('0x2')](){const _0x3e6ce4=new _0x685a9e(this['locale']);return _0x3e6ce4[_0x3773('0x3f')]=_0x4656f7(this[_0x3773('0x3a')],_0x3773('0x25')),_0x3e6ce4[_0x3773('0x29')]=_0x3731de,_0x3e6ce4[_0x3773('0x1')]({'attributes':{'class':_0x3773('0x1e')}}),_0x3e6ce4[_0x3773('0x13')](_0x3773('0x32'))['to'](this['_model'],'isReadOnly',_0x828ba8=>!_0x828ba8),_0x3e6ce4['bind'](_0x3773('0x34'))['to'](this[_0x3773('0x38')],_0x3773('0x19')),_0x3e6ce4['on']('execute',()=>{this[_0x3773('0x2b')](_0x4656f7(this[_0x3773('0x3a')],_0x3773('0x6')),this[_0x3773('0xa')])[_0x3773('0x35')](()=>{this[_0x3773('0xb')](_0x3773('0x30'),this['_model']['id']);});}),_0x3e6ce4;}[_0x3773('0x39')](_0x945ecc,_0x50fbdd){this['listenTo'](_0x945ecc,'mouseenter',()=>this[_0x3773('0x31')]=_0x50fbdd),this[_0x3773('0xc')](_0x945ecc,'focus',()=>this[_0x3773('0x31')]=_0x50fbdd),this[_0x3773('0xc')](_0x945ecc,_0x3773('0x21'),()=>this[_0x3773('0x31')]=null),this[_0x3773('0xc')](_0x945ecc,'blur',()=>this[_0x3773('0x31')]=null);}[_0x3773('0x1a')](){const _0x1f3f21=super[_0x3773('0x1a')]();return _0x1f3f21['bind'](_0x3773('0xe'))['to'](this),_0x1f3f21;}[_0x3773('0x1b')](){super[_0x3773('0x1b')](),this[_0x3773('0x39')](this[_0x3773('0x3c')][_0x3773('0xa')],_0x3773('0x18')),this['_attachActions'](this['removeButton']['element'],_0x3773('0x27'));}}_0x27eef6(R,_0x48ae5a);
package/src/comments.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x20ae=['Comments','pluginName'];(function(_0x411ad8,_0x20aee6){var _0x4506d7=function(_0x36fc05){while(--_0x36fc05){_0x411ad8['push'](_0x411ad8['shift']());}};_0x4506d7(++_0x20aee6);}(_0x20ae,0x75));var _0x4506=function(_0x411ad8,_0x20aee6){_0x411ad8=_0x411ad8-0x0;var _0x4506d7=_0x20ae[_0x411ad8];return _0x4506d7;};import{Plugin as _0x3189f8}from'ckeditor5/src/core';import _0x5ea630 from'./comments/commentsrepository';import _0x269700 from'./comments/commentsediting';import _0x2c7a03 from'./comments/commentsui';import _0x1f475e from'./commentsonly';import _0x5e718c from'./annotations/widesidebar';import _0x491040 from'./annotations/narrowsidebar';import _0x5b88b5 from'./annotations/inlineannotations';export default class c extends _0x3189f8{static get['requires'](){return[_0x5ea630,_0x269700,_0x2c7a03,_0x1f475e,_0x5e718c,_0x491040,_0x5b88b5];}static get[_0x4506('0x0')](){return _0x4506('0x1');}}
23
+ var _0x3355=['Comments','pluginName','requires'];(function(_0x1db8cf,_0x33552d){var _0x4dd703=function(_0x5468c7){while(--_0x5468c7){_0x1db8cf['push'](_0x1db8cf['shift']());}};_0x4dd703(++_0x33552d);}(_0x3355,0xe0));var _0x4dd7=function(_0x1db8cf,_0x33552d){_0x1db8cf=_0x1db8cf-0x0;var _0x4dd703=_0x3355[_0x1db8cf];return _0x4dd703;};import{Plugin as _0x24e048}from'ckeditor5/src/core';import _0xeb67bc from'./comments/commentsrepository';import _0x15739b from'./comments/commentsediting';import _0x51e817 from'./comments/commentsui';import _0x5dd03d from'./commentsonly';import _0x2ed951 from'./annotations/widesidebar';import _0x208f3a from'./annotations/narrowsidebar';import _0x1ab717 from'./annotations/inlineannotations';export default class c extends _0x24e048{static get[_0x4dd7('0x0')](){return[_0xeb67bc,_0x15739b,_0x51e817,_0x5dd03d,_0x2ed951,_0x208f3a,_0x1ab717];}static get[_0x4dd7('0x2')](){return _0x4dd7('0x1');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1db8=['isEnabled','stopListening','forceDisabled','commentsOnly','clipboardInput','afterInit','has','get','_disableCommentsOnlyMode','listenTo','commentsOnlyMode','CommentsOnly','addCommentThread','commands','cut','highest','DragDrop','requires','clearForceDisabled','delete','editing','stop','view','editor','document','_enableCommentsOnlyMode','affectsData'];(function(_0x577baf,_0x1db819){const _0x15cf44=function(_0x30b068){while(--_0x30b068){_0x577baf['push'](_0x577baf['shift']());}};_0x15cf44(++_0x1db819);}(_0x1db8,0x1d3));const _0x15cf=function(_0x577baf,_0x1db819){_0x577baf=_0x577baf-0x0;let _0x15cf44=_0x1db8[_0x577baf];return _0x15cf44;};import{Plugin as _0x2f7ac0}from'ckeditor5/src/core';import _0x2b09f3 from'./comments/commentsediting';export default class e extends _0x2f7ac0{static get['pluginName'](){return _0x15cf('0x3');}static get[_0x15cf('0x9')](){return[_0x2b09f3];}constructor(_0x4369b3){super(_0x4369b3),this['set']('isEnabled',null),this['on']('change:isEnabled',(_0x18e100,_0x250b49,_0x4c9d46)=>{_0x4c9d46?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x15cf('0x18')](){null===this[_0x15cf('0x13')]&&(this[_0x15cf('0x13')]=!!this[_0x15cf('0xf')]['config']['get'](_0x15cf('0x16')));}[_0x15cf('0x11')](){for(const [_0x2a1134,_0x545e4b]of this['editor']['commands'])_0x545e4b[_0x15cf('0x12')]&&_0x15cf('0x4')!==_0x2a1134&&_0x545e4b[_0x15cf('0x15')](_0x15cf('0x2'));this[_0x15cf('0xf')]['plugins'][_0x15cf('0x19')](_0x15cf('0x8'))&&this[_0x15cf('0xf')]['plugins'][_0x15cf('0x1a')](_0x15cf('0x8'))['forceDisabled']('commentsOnlyMode');const _0x350c3d=this[_0x15cf('0xf')]['editing']['view'][_0x15cf('0x10')];this[_0x15cf('0x1')](_0x350c3d,_0x15cf('0x6'),_0x158b9b=>_0x158b9b[_0x15cf('0xd')](),{'priority':_0x15cf('0x7')}),this[_0x15cf('0x1')](_0x350c3d,_0x15cf('0x17'),_0x1e8b0=>_0x1e8b0['stop'](),{'priority':_0x15cf('0x7')}),this[_0x15cf('0x1')](_0x350c3d,_0x15cf('0xb'),_0x2fd473=>_0x2fd473['stop'](),{'priority':_0x15cf('0x7')});}[_0x15cf('0x0')](){for(const [_0x48754c,_0x2181d7]of this['editor'][_0x15cf('0x5')])_0x2181d7['affectsData']&&_0x15cf('0x4')!==_0x48754c&&_0x2181d7[_0x15cf('0xa')](_0x15cf('0x2'));this[_0x15cf('0x14')](this['editor'][_0x15cf('0xc')][_0x15cf('0xe')][_0x15cf('0x10')]);}}
23
+ const _0x5879=['get','config','clearForceDisabled','plugins','_disableCommentsOnlyMode','listenTo','affectsData','view','commentsOnly','addCommentThread','document','set','stopListening','forceDisabled','commentsOnlyMode','editor','editing','isEnabled','commands','highest','has','requires','_enableCommentsOnlyMode','stop','cut'];(function(_0x7c1826,_0x587939){const _0x40e8a3=function(_0x396bfd){while(--_0x396bfd){_0x7c1826['push'](_0x7c1826['shift']());}};_0x40e8a3(++_0x587939);}(_0x5879,0x84));const _0x40e8=function(_0x7c1826,_0x587939){_0x7c1826=_0x7c1826-0x0;let _0x40e8a3=_0x5879[_0x7c1826];return _0x40e8a3;};import{Plugin as _0x4d0f1f}from'ckeditor5/src/core';import _0x43173d from'./comments/commentsediting';export default class e extends _0x4d0f1f{static get['pluginName'](){return'CommentsOnly';}static get[_0x40e8('0xe')](){return[_0x43173d];}constructor(_0x38a4f2){super(_0x38a4f2),this[_0x40e8('0x4')]('isEnabled',null),this['on']('change:isEnabled',(_0x345d92,_0x155712,_0x2215c8)=>{_0x2215c8?this[_0x40e8('0xf')]():this[_0x40e8('0x16')]();});}['afterInit'](){null===this[_0x40e8('0xa')]&&(this['isEnabled']=!!this[_0x40e8('0x8')][_0x40e8('0x13')][_0x40e8('0x12')](_0x40e8('0x1')));}['_enableCommentsOnlyMode'](){for(const [_0x438816,_0x26dbd7]of this[_0x40e8('0x8')][_0x40e8('0xb')])_0x26dbd7[_0x40e8('0x18')]&&_0x40e8('0x2')!==_0x438816&&_0x26dbd7[_0x40e8('0x6')](_0x40e8('0x7'));this['editor'][_0x40e8('0x15')][_0x40e8('0xd')]('DragDrop')&&this[_0x40e8('0x8')][_0x40e8('0x15')][_0x40e8('0x12')]('DragDrop')['forceDisabled'](_0x40e8('0x7'));const _0x1b3148=this['editor'][_0x40e8('0x9')]['view']['document'];this[_0x40e8('0x17')](_0x1b3148,_0x40e8('0x11'),_0xd70501=>_0xd70501[_0x40e8('0x10')](),{'priority':'highest'}),this[_0x40e8('0x17')](_0x1b3148,'clipboardInput',_0x31794f=>_0x31794f[_0x40e8('0x10')](),{'priority':_0x40e8('0xc')}),this[_0x40e8('0x17')](_0x1b3148,'delete',_0x5a6a96=>_0x5a6a96['stop'](),{'priority':_0x40e8('0xc')});}[_0x40e8('0x16')](){for(const [_0x5c34ed,_0x25f653]of this['editor']['commands'])_0x25f653[_0x40e8('0x18')]&&_0x40e8('0x2')!==_0x5c34ed&&_0x25f653[_0x40e8('0x14')](_0x40e8('0x7'));this[_0x40e8('0x5')](this[_0x40e8('0x8')][_0x40e8('0x9')][_0x40e8('0x0')][_0x40e8('0x3')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2308=['view','values','markerNameToElements','mapper','name','domConverter'];(function(_0x1c9957,_0x2308df){const _0x3f1e9a=function(_0x2580e8){while(--_0x2580e8){_0x1c9957['push'](_0x1c9957['shift']());}};_0x3f1e9a(++_0x2308df);}(_0x2308,0xdc));const _0x3f1e=function(_0x1c9957,_0x2308df){_0x1c9957=_0x1c9957-0x0;let _0x3f1e9a=_0x2308[_0x1c9957];return _0x3f1e9a;};import _0x1fd79d from'@ckeditor/ckeditor5-utils/src/first';export default function R(_0x49ed19,_0x70beeb){const _0x59a5d0=_0x49ed19[_0x3f1e('0x5')][_0x3f1e('0x4')](_0x70beeb[_0x3f1e('0x0')]),_0x544208=_0x1fd79d(_0x59a5d0[_0x3f1e('0x3')]());return _0x49ed19[_0x3f1e('0x2')][_0x3f1e('0x1')]['mapViewToDom'](_0x544208);}
23
+ export{default as Comments}from'./comments';export{default as CommentsOnly}from'./comments';export{default as Annotations}from'./annotations/annotations';export{default as AnnotationsUIs}from'./annotations/annotationsuis';export{default as InlineAnnotations}from'./annotations/inlineannotations';export{default as WideSidebar}from'./annotations/widesidebar';export{default as NarrowSidebar}from'./annotations/narrowsidebar';export{default as BaseCommentView}from'./comments/ui/view/basecommentview';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x308992,_0x342cef){const t=_0x308992['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0x342cef)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
23
+ export function getTranslation(_0x2ac5fd,_0x1c07f9,_0x318695){const t=_0x2ac5fd['t'];switch(_0x1c07f9){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'},_0x318695);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'},_0x318695);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e98=['type','class','childList','attributeName','disconnect','attributes','observe'];(function(_0x544637,_0x1e98c3){const _0x185431=function(_0x19b706){while(--_0x19b706){_0x544637['push'](_0x544637['shift']());}};_0x185431(++_0x1e98c3);}(_0x1e98,0x1c6));const _0x1854=function(_0x544637,_0x1e98c3){_0x544637=_0x544637-0x0;let _0x185431=_0x1e98[_0x544637];return _0x185431;};import{throttle as _0x230b13}from'lodash-es';export default function ct(_0x36122e){const _0x392a30=_0x230b13(_0x36122e,0x1e),_0x595ed1=new MutationObserver(_0x527adb=>{for(const _0x2848c9 of _0x527adb)(_0x1854('0x6')==_0x2848c9[_0x1854('0x1')]&&_0x1854('0x2')==_0x2848c9[_0x1854('0x4')]||_0x1854('0x3')==_0x2848c9['type'])&&_0x392a30();});return{'attach'(_0x3ea022){_0x595ed1[_0x1854('0x0')](_0x3ea022,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x595ed1[_0x1854('0x5')](),_0x392a30['cancel']();}};}
23
+ const _0x1cfe=['disconnect','attributeName','class','cancel','attributes','type'];(function(_0x280552,_0x1cfee4){const _0x795e7b=function(_0x2e817e){while(--_0x2e817e){_0x280552['push'](_0x280552['shift']());}};_0x795e7b(++_0x1cfee4);}(_0x1cfe,0x10c));const _0x795e=function(_0x280552,_0x1cfee4){_0x280552=_0x280552-0x0;let _0x795e7b=_0x1cfe[_0x280552];return _0x795e7b;};import{throttle as _0x2825e2}from'lodash-es';export default function ut(_0x16d61e){const _0x24aa2=_0x2825e2(_0x16d61e,0x1e),_0x5052a4=new MutationObserver(_0x43f2a9=>{for(const _0x1573b6 of _0x43f2a9)(_0x795e('0x0')==_0x1573b6[_0x795e('0x1')]&&_0x795e('0x4')==_0x1573b6[_0x795e('0x3')]||'childList'==_0x1573b6[_0x795e('0x1')])&&_0x24aa2();});return{'attach'(_0x276237){_0x5052a4['observe'](_0x276237,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0x5052a4[_0x795e('0x2')](),_0x24aa2[_0x795e('0x5')]();}};}
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  /* Common styles for inline comment and inline suggestion. */
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  /* Common styles for single comment and single suggestion. */
package/theme/comment.css CHANGED
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  .ck .ck-comment__input-container {
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
7
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
7
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
7
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
package/theme/sidebar.css CHANGED
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
@@ -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 _0x5bb6=['destroy','set','once','element','cancel','deregisterChild','appendChild','locale','isConfirm','submit','confirmView','render','message','_removeConfirm','registerChild','fire'];(function(_0x5e7e7f,_0x5bb6be){var _0x145478=function(_0x34b9cd){while(--_0x34b9cd){_0x5e7e7f['push'](_0x5e7e7f['shift']());}};_0x145478(++_0x5bb6be);}(_0x5bb6,0x1f1));var _0x1454=function(_0x5e7e7f,_0x5bb6be){_0x5e7e7f=_0x5e7e7f-0x0;var _0x145478=_0x5bb6[_0x5e7e7f];return _0x145478;};import _0x3c6497 from'./confirmview';export default{'showConfirm'(_0xb94a4c,_0xb250ff){return this[_0x1454('0x9')]=new _0x3c6497(this[_0x1454('0x6')]),this['confirmView'][_0x1454('0xa')](),this['confirmView'][_0x1454('0xb')]=_0xb94a4c,this[_0x1454('0x9')][_0x1454('0x1')](_0x1454('0x3'),()=>{this[_0x1454('0xc')]();}),this[_0x1454('0x9')][_0x1454('0x1')](_0x1454('0x8'),()=>{this['_removeConfirm']();}),_0xb250ff[_0x1454('0x5')](this[_0x1454('0x9')]['element']),this[_0x1454('0xd')](this['confirmView']),this[_0x1454('0x0')](_0x1454('0x7'),!0x0),new Promise(_0x336210=>this[_0x1454('0x9')]['on'](_0x1454('0x8'),_0x336210));},'cancelConfirm'(){this[_0x1454('0x7')]&&this['confirmView'][_0x1454('0xe')](_0x1454('0x3'));},'_removeConfirm'(){this[_0x1454('0x9')][_0x1454('0x2')]['remove'](),this[_0x1454('0x4')](this[_0x1454('0x9')]),this['isConfirm']=!0x1,this[_0x1454('0x9')][_0x1454('0xf')](),delete this[_0x1454('0x9')];}};
@@ -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 bt,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Yt}from'ckeditor5/src/core';export default class ii extends bt{constructor(_0x3ec896){super(_0x3ec896);const {t:t}=_0x3ec896,_0x8213cc=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x3ec896,t('Yes'),Yt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x3ec896,t('No'),Yt['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':_0x8213cc['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x3dc72a,_0x5c34b0,_0x2da2ec,_0xb4f420){const _0x6a9146=new mt(_0x3dc72a);return _0x6a9146['label']=_0x5c34b0,_0x6a9146['icon']=_0x2da2ec,_0x6a9146['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0xb4f420}}),_0x6a9146['on']('execute',()=>this['fire'](_0xb4f420)),_0x6a9146;}}
@@ -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
- const _0x5029=['\x27Last\x27\x20EEEE\x20hh:mma','string','MM-dd-yyyy\x20hh:mma','\x27Today\x27\x20hh:mma','dateTimeFormat','invalid-date-time-format'];(function(_0x7dd93e,_0x502904){const _0x46dd56=function(_0x5e4e1b){while(--_0x5e4e1b){_0x7dd93e['push'](_0x7dd93e['shift']());}};_0x46dd56(++_0x502904);}(_0x5029,0x85));const _0x46dd=function(_0x7dd93e,_0x502904){_0x7dd93e=_0x7dd93e-0x0;let _0x46dd56=_0x5029[_0x7dd93e];return _0x46dd56;};import _0xb7463c from'date-fns/format';import _0x157396 from'date-fns/parseISO';import _0x265157 from'date-fns/differenceInCalendarDays';import _0x4c1e6c from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function Q(_0x30dee3={}){if(void 0x0!==_0x30dee3['dateTimeFormat']&&'function'!=typeof _0x30dee3[_0x46dd('0x3')])throw new _0x4c1e6c(_0x46dd('0x4'));return _0x2807a8=>{const _0x19816b=_0x46dd('0x0')==typeof _0x2807a8?_0x157396(_0x2807a8):_0x2807a8,_0x569b65=new Date(),_0x29537b=_0x265157(_0x569b65,_0x19816b);return _0x30dee3[_0x46dd('0x3')]?_0x30dee3[_0x46dd('0x3')](_0x19816b):_0xb7463c(_0x19816b,0x0===_0x29537b?_0x46dd('0x2'):0x1===_0x29537b?'\x27Yesterday\x27\x20hh:mma':_0x29537b<0x7?_0x46dd('0x5'):_0x46dd('0x1'));};}