@ckeditor/ckeditor5-comments 33.0.0 → 34.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +3 -0
  2. package/build/comments.js +2 -2
  3. package/build/translations/bs.js +1 -1
  4. package/build/translations/cs.js +1 -1
  5. package/build/translations/da.js +1 -1
  6. package/build/translations/de-ch.js +1 -1
  7. package/build/translations/de.js +1 -1
  8. package/build/translations/el.js +1 -1
  9. package/build/translations/en-au.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fr.js +1 -1
  13. package/build/translations/gl.js +1 -1
  14. package/build/translations/hi.js +1 -1
  15. package/build/translations/hr.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/jv.js +1 -0
  21. package/build/translations/ko.js +1 -1
  22. package/build/translations/nl.js +1 -1
  23. package/build/translations/no.js +1 -1
  24. package/build/translations/pl.js +1 -1
  25. package/build/translations/pt-br.js +1 -1
  26. package/build/translations/ro.js +1 -1
  27. package/build/translations/ru.js +1 -1
  28. package/build/translations/sk.js +1 -1
  29. package/build/translations/sr-latn.js +1 -1
  30. package/build/translations/sr.js +1 -1
  31. package/build/translations/tk.js +1 -1
  32. package/build/translations/tr.js +1 -1
  33. package/build/translations/ug.js +1 -1
  34. package/build/translations/uk.js +1 -1
  35. package/build/translations/zh-cn.js +1 -1
  36. package/build/translations/zh.js +1 -1
  37. package/lang/contexts.json +0 -3
  38. package/lang/translations/bs.po +0 -12
  39. package/lang/translations/cs.po +0 -12
  40. package/lang/translations/da.po +0 -12
  41. package/lang/translations/de-ch.po +0 -12
  42. package/lang/translations/de.po +0 -12
  43. package/lang/translations/el.po +0 -12
  44. package/lang/translations/en-au.po +0 -12
  45. package/lang/translations/en.po +0 -12
  46. package/lang/translations/es.po +0 -12
  47. package/lang/translations/et.po +0 -12
  48. package/lang/translations/fr.po +0 -12
  49. package/lang/translations/gl.po +0 -12
  50. package/lang/translations/hi.po +0 -12
  51. package/lang/translations/hr.po +0 -12
  52. package/lang/translations/hu.po +0 -12
  53. package/lang/translations/id.po +0 -12
  54. package/lang/translations/it.po +0 -12
  55. package/lang/translations/ja.po +0 -12
  56. package/lang/translations/jv.po +66 -0
  57. package/lang/translations/ko.po +0 -12
  58. package/lang/translations/nl.po +0 -12
  59. package/lang/translations/no.po +0 -12
  60. package/lang/translations/pl.po +0 -12
  61. package/lang/translations/pt-br.po +0 -12
  62. package/lang/translations/ro.po +0 -12
  63. package/lang/translations/ru.po +0 -12
  64. package/lang/translations/sk.po +0 -12
  65. package/lang/translations/sr-latn.po +0 -12
  66. package/lang/translations/sr.po +0 -12
  67. package/lang/translations/tk.po +0 -12
  68. package/lang/translations/tr.po +0 -12
  69. package/lang/translations/ug.po +0 -12
  70. package/lang/translations/uk.po +0 -12
  71. package/lang/translations/zh-cn.po +0 -12
  72. package/lang/translations/zh.po +0 -12
  73. package/package.json +3 -3
  74. package/src/annotations/annotation.js +1 -1
  75. package/src/annotations/annotationcollection.js +1 -1
  76. package/src/annotations/annotations.js +1 -1
  77. package/src/annotations/annotationsuis.js +1 -1
  78. package/src/annotations/editorannotations.js +1 -1
  79. package/src/annotations/inlineannotations.js +1 -1
  80. package/src/annotations/narrowsidebar.js +1 -1
  81. package/src/annotations/sidebar.js +1 -1
  82. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  83. package/src/annotations/view/annotationview.js +1 -1
  84. package/src/annotations/view/sidebaritemview.js +1 -1
  85. package/src/annotations/view/sidebarview.js +1 -1
  86. package/src/annotations/widesidebar.js +1 -1
  87. package/src/comments/addcommentthreadcommand.js +1 -1
  88. package/src/comments/commentsediting.js +1 -1
  89. package/src/comments/commentsrepository.js +1 -1
  90. package/src/comments/commentsui.js +1 -1
  91. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  92. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  93. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  94. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  95. package/src/comments/ui/commentthreadcontroller.js +1 -1
  96. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  97. package/src/comments/ui/view/basecommentview.js +1 -1
  98. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  99. package/src/comments/ui/view/commentcontentview.js +1 -1
  100. package/src/comments/ui/view/commentinputview.js +1 -1
  101. package/src/comments/ui/view/commentslistview.js +1 -1
  102. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  103. package/src/comments/ui/view/commentthreadview.js +1 -1
  104. package/src/comments/ui/view/commentview.js +1 -1
  105. package/src/comments.js +1 -1
  106. package/src/commentsonly.js +1 -1
  107. package/src/utils/common-translations.js +1 -1
  108. package/src/utils/createmutationobserver.js +1 -1
  109. package/src/comments/ui/view/confirmmixin.js +0 -23
  110. package/src/comments/ui/view/confirmview.js +0 -23
@@ -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 _0x3668=['collapse','editorConfig','weight','remove','_rearrangeCollapse','_shouldCollapse','from','bind','destroy','createCollection','visibleViews','formatDateTime','commentViews','_handleRemoveCommentModel','refreshVisibleViews','_updateHasDirtyComment','comments','removeComment','count','render','delete','hasDirtyComment','change:hasDirtyComment','isActive','_config','viewUid','_model','change:isEditMode','CommentView','expand','_collapsedCommentsView','maxThreadTotalWeight','set','maxCommentCharsWhenCollapsed','isEditMode','_rearrangeExpand','get','ck-thread__comments','locale','delegate','updateComment','commentUpdated','setTemplate','element','maxCommentsWhenCollapsed','add','listenTo','_handleNewCommentModel','stopListening','insert','length'];(function(_0x225b3e,_0x3668d2){const _0x2150fe=function(_0x3034c8){while(--_0x3034c8){_0x225b3e['push'](_0x225b3e['shift']());}};_0x2150fe(++_0x3668d2);}(_0x3668,0xf4));const _0x2150=function(_0x225b3e,_0x3668d2){_0x225b3e=_0x225b3e-0x0;let _0x2150fe=_0x3668[_0x225b3e];return _0x2150fe;};import{View as _0x5bd7ed}from'ckeditor5/src/ui';import{diff as _0x27a70e,Collection as _0x19170b}from'ckeditor5/src/utils';import _0x3319dd from'./collapsedcommentsview';export default class ct extends _0x5bd7ed{constructor(_0x5673f2,_0x34e2e9,_0x56410d){super(_0x5673f2),this[_0x2150('0x2b')](_0x2150('0x20'),!0x1),this[_0x2150('0x2b')]('length',_0x34e2e9[_0x2150('0x1b')][_0x2150('0xa')]),this[_0x2150('0x2b')](_0x2150('0x22'),!0x1),this[_0x2150('0x25')]=_0x34e2e9,this[_0x2150('0x23')]=_0x56410d,this['commentViews']=this[_0x2150('0x14')](),this[_0x2150('0x15')]=this[_0x2150('0x14')](),this[_0x2150('0x29')]=new _0x3319dd(_0x5673f2),this[_0x2150('0x29')][_0x2150('0x12')](_0x2150('0x1d'))['to'](this,_0x2150('0xa'),_0x51f9fb=>_0x51f9fb-this['_config'][_0x2150('0x4')]);for(const _0x7a7f6e of _0x34e2e9[_0x2150('0x1b')])this[_0x2150('0x7')](_0x7a7f6e);this[_0x2150('0x6')](_0x34e2e9['comments'],_0x2150('0x5'),(_0x49166c,_0x1c7b3a)=>{this[_0x2150('0xa')]++,this['_handleNewCommentModel'](_0x1c7b3a),this[_0x2150('0x19')]();}),this[_0x2150('0x6')](_0x34e2e9[_0x2150('0x1b')],_0x2150('0xe'),(_0x52092f,_0x4e1df4)=>{this[_0x2150('0xa')]--,this[_0x2150('0x18')](_0x4e1df4),this['refreshVisibleViews']();}),this['listenTo'](_0x34e2e9,_0x2150('0x1'),()=>this[_0x2150('0x19')]()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on'](_0x2150('0x21'),()=>this[_0x2150('0x19')]()),this[_0x2150('0x2')]({'tag':'ul','attributes':{'class':[_0x2150('0x30')]},'children':this[_0x2150('0x15')]});}get[_0x2150('0x10')](){return this[_0x2150('0x25')][_0x2150('0xd')]>this[_0x2150('0x23')][_0x2150('0x2a')]&&!this[_0x2150('0x22')]&&!this[_0x2150('0x20')];}[_0x2150('0x1e')](){super[_0x2150('0x1e')](),this[_0x2150('0x19')]();}['focus'](){this[_0x2150('0x3')]['focus']();}['destroy'](){this['_collapsedCommentsView'][_0x2150('0x13')]();for(const _0x4a1a60 of this[_0x2150('0x17')])_0x4a1a60[_0x2150('0x13')]();super['destroy']();}[_0x2150('0x19')](){this['_shouldCollapse']?this[_0x2150('0xf')]():this[_0x2150('0x2e')]();}[_0x2150('0x7')](_0x2dc06c){const _0x26d130=new this[(_0x2150('0x23'))][(_0x2150('0x27'))](this[_0x2150('0x31')],_0x2dc06c,{'maxCommentCharsWhenCollapsed':this[_0x2150('0x23')][_0x2150('0x2c')],'formatDateTime':this['_config'][_0x2150('0x16')],'editorConfig':this[_0x2150('0x23')][_0x2150('0xc')]});_0x26d130[_0x2150('0x24')]=_0x2dc06c['id'],_0x26d130['delegate'](_0x2150('0x1c'))['to'](this),_0x26d130[_0x2150('0x32')](_0x2150('0x0'))['to'](this),this[_0x2150('0x6')](_0x26d130,_0x2150('0x26'),()=>this[_0x2150('0x1a')]()),this[_0x2150('0x17')]['add'](_0x26d130);}['_handleRemoveCommentModel'](_0x1c8c73){const _0x24f7fb=this['commentViews'][_0x2150('0xe')](_0x1c8c73['id']);this[_0x2150('0x8')](_0x24f7fb),_0x24f7fb[_0x2150('0x2d')]&&this[_0x2150('0x1a')](),_0x24f7fb['destroy']();}[_0x2150('0x1a')](){this[_0x2150('0x20')]=Array['from'](this[_0x2150('0x17')])['some'](_0x4d879e=>_0x4d879e[_0x2150('0x2d')]);}['_rearrangeCollapse'](){const _0x2a9272=function(_0x3c8ed3){const _0x31d901=new _0x19170b();for(const _0x11b52f of _0x3c8ed3)_0x31d901['add'](_0x11b52f);return _0x31d901;}(this[_0x2150('0x17')]),_0x3a9b8e=this[_0x2150('0x29')][_0x2150('0x1d')];for(let _0x3cc20c=0x1;_0x3cc20c<=_0x3a9b8e;_0x3cc20c++)_0x2a9272[_0x2150('0xe')](0x1);for(const _0x4dad2d of _0x2a9272)_0x4dad2d[_0x2150('0xb')]();_0x3a9b8e>0x0&&_0x2a9272[_0x2150('0x5')](this[_0x2150('0x29')],0x1),Ut(_0x27a70e(Array[_0x2150('0x11')](this['visibleViews']),Array[_0x2150('0x11')](_0x2a9272)),this[_0x2150('0x15')],_0x2a9272);}['_rearrangeExpand'](){Ut(_0x27a70e(Array[_0x2150('0x11')](this[_0x2150('0x15')]),Array[_0x2150('0x11')](this[_0x2150('0x17')])),this['visibleViews'],this['commentViews']);for(const _0x3eae68 of this[_0x2150('0x15')])_0x3eae68[_0x2150('0x28')]();}}function Ut(_0x3ab9ad,_0x377459,_0x5af95d){let _0x497c2f=0x0;for(const _0x551ef6 of _0x3ab9ad)switch(_0x551ef6){case _0x2150('0x9'):_0x377459[_0x2150('0x5')](_0x5af95d[_0x2150('0x2f')](_0x497c2f),_0x497c2f),_0x497c2f++;break;case _0x2150('0x1f'):_0x377459[_0x2150('0xe')](_0x497c2f);break;case'equal':_0x497c2f++;}}
@@ -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 _0x5d2d=['then','showInput','ck-comment__input-container','setTemplate','commentInputView','div','bindTemplate','userView','bind','ck-comment__input-container--active','extendTemplate','set','showButtons','destroy','ck-thread__user'];(function(_0xc6d9aa,_0x5d2d6e){var _0x330cc7=function(_0x35fa3e){while(--_0x35fa3e){_0xc6d9aa['push'](_0xc6d9aa['shift']());}};_0x330cc7(++_0x5d2d6e);}(_0x5d2d,0x98));var _0x330c=function(_0xc6d9aa,_0x5d2d6e){_0xc6d9aa=_0xc6d9aa-0x0;var _0x330cc7=_0x5d2d[_0xc6d9aa];return _0x330cc7;};import{View as _0x5a00ca}from'ckeditor5/src/ui';import _0x1ac974 from'./commentinputview';import{UserView as _0x3d7bc8}from'ckeditor5-collaboration/src/collaboration-core';export default class dt extends _0x5a00ca{constructor(_0x47d8fd,_0x530ddc,_0x4404c0){super(_0x47d8fd),this[_0x330c('0x2')]=new _0x1ac974(_0x47d8fd,_0x4404c0),this[_0x330c('0x2')][_0x330c('0x6')](_0x330c('0xa'))['to'](this[_0x330c('0x2')]['focusTracker'],'isFocused',this[_0x330c('0x2')],'value',(_0x3a8e16,_0x56cdd9)=>_0x3a8e16||!!_0x56cdd9),this[_0x330c('0x9')](_0x330c('0xe'),!0x1),this[_0x330c('0x5')]=new _0x3d7bc8(_0x47d8fd,_0x530ddc),this[_0x330c('0x5')][_0x330c('0x8')]({'attributes':{'class':_0x330c('0xc')}}),this[_0x330c('0x2')][_0x330c('0x8')]({'attributes':{'class':'ck-thread__input'}}),this[_0x330c('0x1')]({'tag':_0x330c('0x3'),'attributes':{'class':[_0x330c('0x0'),this[_0x330c('0x4')]['if'](_0x330c('0xe'),_0x330c('0x7'))]},'children':[this[_0x330c('0x5')],this[_0x330c('0x2')]]});}[_0x330c('0xb')](){return this[_0x330c('0x2')][_0x330c('0xb')]()[_0x330c('0xd')](()=>super[_0x330c('0xb')]());}}
@@ -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
+ import{mix as _0x23b50a}from'ckeditor5/src/utils';import{ConfirmMixin as Wt}from'ckeditor5-collaboration/src/collaboration-core';import Rt from'./basecommentthreadview';export default class nt extends Rt{constructor(_0x5cfe3b,_0x33e49e,_0x47d701,_0x4e76e2){super(_0x5cfe3b,_0x33e49e,_0x47d701,_0x4e76e2),this['set']('actionIndicator',null),this['containerElement']=null,this['locale']=_0x5cfe3b,this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x442347,_0x5d51e1,_0x2f112e)=>{_0x2f112e||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x524558,_0x466f88,_0x57e8ac)=>{_0x57e8ac&&this['_cancelAllConfirms']();}),this['length']>0x0?this['_bindFirstCommentView']():this['listenTo'](this['commentsListView']['commentViews'],'add',_0x532627=>{this['_bindFirstCommentView'](),_0x532627['off']();});}['getTemplate'](){const _0x2f83dd=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck-thread',_0x2f83dd['if']('isActive','ck-thread--active'),_0x2f83dd['if']('isConfirm','ck-thread--remove-confirmation'),_0x2f83dd['to']('actionIndicator',_0x1e563f=>_0x1e563f?'ck-thread--'+_0x1e563f:'')],'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 _0x1bf5e7 of this['commentsListView']['commentViews'])_0x1bf5e7['cancelConfirm']();}['_bindFirstCommentView'](){const {t:t}=this['locale'],_0x5df131=this['commentsListView']['commentViews']['get'](0x0);this['bind']('actionIndicator')['to'](_0x5df131,'actionIndicator',_0x1c09a8=>'remove'===_0x1c09a8?'remove':null),_0x5df131['placeholder']=t('Write\x20a\x20comment...'),_0x5df131['removeButton']['on']('execute',_0x34b031=>{_0x34b031['stop'](),this['showConfirm'](t('Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'});}}_0x23b50a(nt,Wt);
@@ -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
+ import{mix as _0x191255}from'ckeditor5/src/utils';import{ButtonView as mt}from'ckeditor5/src/ui';import{icons as Gt}from'ckeditor5/src/core';import{UserView as It,ConfirmMixin as Wt}from'ckeditor5-collaboration/src/collaboration-core';import Vt from'./basecommentview';import Jt from'../../../../theme/icons/remove-comment.svg';export default class ot extends Vt{constructor(_0x4e6cee,_0x189c42,_0x4f426e){super(_0x4e6cee,_0x189c42,_0x4f426e);const {t:t}=this['locale'];this['set']('actionIndicator',null),this['set']('placeholder',t('Reply...')),this['set']('createdAt',null),this['bind']('createdAt')['to'](_0x189c42),this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['userView']=new It(_0x4e6cee,_0x189c42['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user']}}),this['listenTo'](_0x189c42,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1a0af4=this['bindTemplate'];return{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x1a0af4['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x1a0af4['if']('isEditMode','ck-comment--edit'),_0x1a0af4['to']('actionIndicator',_0x5b9824=>_0x5b9824?'ck-comment--'+_0x5b9824:'')],'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':_0x1a0af4['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1a0af4['to']('createdAt',_0x51fed3=>this['_config']['formatDateTime'](_0x51fed3))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x1a0af4['if']('isEditMode','ck-comment__actions--hidden'),_0x1a0af4['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'],_0x1e1916=new mt(this['locale']);return _0x1e1916['label']=t('Edit'),_0x1e1916['icon']=Gt['pencil'],_0x1e1916['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x1e1916['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x15f2b1=>!_0x15f2b1),_0x1e1916['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x1e1916['on']('execute',()=>this['switchToEditMode']()),_0x1e1916;}['_createRemoveButton'](){const {t:t}=this['locale'],_0xaeb519=new mt(this['locale']);return _0xaeb519['label']=t('Remove'),_0xaeb519['icon']=Jt,_0xaeb519['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0xaeb519['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x117c75=>!_0x117c75),_0xaeb519['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0xaeb519['on']('execute',()=>{this['showConfirm'](t('Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0xaeb519;}['_attachActions'](_0x4bf817,_0x4e6825){this['listenTo'](_0x4bf817,'mouseenter',()=>this['actionIndicator']=_0x4e6825),this['listenTo'](_0x4bf817,'focus',()=>this['actionIndicator']=_0x4e6825),this['listenTo'](_0x4bf817,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x4bf817,'blur',()=>this['actionIndicator']=null);}['_createCommentInputView'](){const _0xc0a757=super['_createCommentInputView']();return _0xc0a757['bind']('placeholder')['to'](this),_0xc0a757;}['render'](){super['render'](),this['_attachActions'](this['editButton']['element'],'edit'),this['_attachActions'](this['removeButton']['element'],'remove');}}_0x191255(ot,Wt);
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 _0x47cb=['Comments','pluginName'];(function(_0xe9bf64,_0x47cb46){var _0xe646fc=function(_0x51dc50){while(--_0x51dc50){_0xe9bf64['push'](_0xe9bf64['shift']());}};_0xe646fc(++_0x47cb46);}(_0x47cb,0xa1));var _0xe646=function(_0xe9bf64,_0x47cb46){_0xe9bf64=_0xe9bf64-0x0;var _0xe646fc=_0x47cb[_0xe9bf64];return _0xe646fc;};import{Plugin as _0xf52208}from'ckeditor5/src/core';import _0x5cb3cc from'./comments/commentsrepository';import _0x47ab0a from'./comments/commentsediting';import _0x4d6834 from'./comments/commentsui';import _0xd64a0d from'./commentsonly';import _0x4aae4d from'./annotations/widesidebar';import _0x348547 from'./annotations/narrowsidebar';import _0x23f0c5 from'./annotations/inlineannotations';export default class c extends _0xf52208{static get['requires'](){return[_0x5cb3cc,_0x47ab0a,_0x4d6834,_0xd64a0d,_0x4aae4d,_0x348547,_0x23f0c5];}static get[_0xe646('0x0')](){return _0xe646('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 _0x3314=['commentsOnlyMode','delete','addCommentThread','listenTo','view','pluginName','highest','get','clipboardInput','requires','editor','afterInit','editing','config','stop','set','clearForceDisabled','commentsOnly','affectsData','change:isEnabled','commands','isEnabled','forceDisabled','CommentsOnly','plugins','document','DragDrop','cut'];(function(_0x1d3cd9,_0x33140e){const _0x84cc91=function(_0x2c6427){while(--_0x2c6427){_0x1d3cd9['push'](_0x1d3cd9['shift']());}};_0x84cc91(++_0x33140e);}(_0x3314,0xde));const _0x84cc=function(_0x1d3cd9,_0x33140e){_0x1d3cd9=_0x1d3cd9-0x0;let _0x84cc91=_0x3314[_0x1d3cd9];return _0x84cc91;};import{Plugin as _0x3efed5}from'ckeditor5/src/core';import _0x571ab4 from'./comments/commentsediting';export default class e extends _0x3efed5{static get[_0x84cc('0x7')](){return _0x84cc('0x19');}static get[_0x84cc('0xb')](){return[_0x571ab4];}constructor(_0x410184){super(_0x410184),this[_0x84cc('0x11')]('isEnabled',null),this['on'](_0x84cc('0x15'),(_0x26208e,_0x412ef1,_0x3daf3f)=>{_0x3daf3f?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x84cc('0xd')](){null===this[_0x84cc('0x17')]&&(this[_0x84cc('0x17')]=!!this[_0x84cc('0xc')][_0x84cc('0xf')][_0x84cc('0x9')](_0x84cc('0x13')));}['_enableCommentsOnlyMode'](){for(const [_0x195cd3,_0x34ed44]of this[_0x84cc('0xc')]['commands'])_0x34ed44[_0x84cc('0x14')]&&_0x84cc('0x4')!==_0x195cd3&&_0x34ed44[_0x84cc('0x18')](_0x84cc('0x2'));this[_0x84cc('0xc')]['plugins']['has']('DragDrop')&&this['editor'][_0x84cc('0x1a')][_0x84cc('0x9')](_0x84cc('0x0'))[_0x84cc('0x18')]('commentsOnlyMode');const _0x5403de=this[_0x84cc('0xc')][_0x84cc('0xe')][_0x84cc('0x6')]['document'];this[_0x84cc('0x5')](_0x5403de,_0x84cc('0x1'),_0x59d969=>_0x59d969[_0x84cc('0x10')](),{'priority':'highest'}),this[_0x84cc('0x5')](_0x5403de,_0x84cc('0xa'),_0x4f4563=>_0x4f4563[_0x84cc('0x10')](),{'priority':_0x84cc('0x8')}),this['listenTo'](_0x5403de,_0x84cc('0x3'),_0x3fbad5=>_0x3fbad5[_0x84cc('0x10')](),{'priority':_0x84cc('0x8')});}['_disableCommentsOnlyMode'](){for(const [_0x9d9766,_0x2224ee]of this[_0x84cc('0xc')][_0x84cc('0x16')])_0x2224ee[_0x84cc('0x14')]&&_0x84cc('0x4')!==_0x9d9766&&_0x2224ee[_0x84cc('0x12')](_0x84cc('0x2'));this['stopListening'](this['editor'][_0x84cc('0xe')]['view'][_0x84cc('0x1b')]);}}
@@ -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(_0x263b39,_0xcd0479){const t=_0x263b39['t'];if('PENDING_ACTION_COMMENT_THREAD'==_0xcd0479)return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});}
@@ -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 _0x7808=['type','childList','observe','disconnect','attributeName','attributes'];(function(_0x167f8b,_0x7808f3){const _0x194aa4=function(_0x36985d){while(--_0x36985d){_0x167f8b['push'](_0x167f8b['shift']());}};_0x194aa4(++_0x7808f3);}(_0x7808,0xc2));const _0x194a=function(_0x167f8b,_0x7808f3){_0x167f8b=_0x167f8b-0x0;let _0x194aa4=_0x7808[_0x167f8b];return _0x194aa4;};import{throttle as _0x14e8c7}from'lodash-es';export default function ut(_0x266595){const _0x294357=_0x14e8c7(_0x266595,0x1e),_0xb9acf=new MutationObserver(_0x4b565e=>{for(const _0x2251ff of _0x4b565e)(_0x194a('0x3')==_0x2251ff['type']&&'class'==_0x2251ff[_0x194a('0x2')]||_0x194a('0x5')==_0x2251ff[_0x194a('0x4')])&&_0x294357();});return{'attach'(_0x110746){_0xb9acf[_0x194a('0x0')](_0x110746,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0xb9acf[_0x194a('0x1')](),_0x294357['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;}}