@ckeditor/ckeditor5-comments 35.4.0 → 36.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 (96) hide show
  1. package/build/comments.js +2 -2
  2. package/build/translations/sr-latn.js +1 -1
  3. package/build/translations/sr.js +1 -1
  4. package/build/translations/ug.js +1 -1
  5. package/lang/translations/af.po +1 -1
  6. package/lang/translations/ar.po +1 -1
  7. package/lang/translations/bg.po +1 -1
  8. package/lang/translations/bn.po +1 -1
  9. package/lang/translations/bs.po +1 -1
  10. package/lang/translations/ca.po +1 -1
  11. package/lang/translations/cs.po +1 -1
  12. package/lang/translations/da.po +1 -1
  13. package/lang/translations/de-ch.po +1 -1
  14. package/lang/translations/de.po +1 -1
  15. package/lang/translations/el.po +1 -1
  16. package/lang/translations/en-au.po +1 -1
  17. package/lang/translations/en.po +1 -1
  18. package/lang/translations/es-co.po +1 -1
  19. package/lang/translations/es.po +1 -1
  20. package/lang/translations/et.po +1 -1
  21. package/lang/translations/fa.po +1 -1
  22. package/lang/translations/fi.po +1 -1
  23. package/lang/translations/fr.po +1 -1
  24. package/lang/translations/gl.po +1 -1
  25. package/lang/translations/he.po +1 -1
  26. package/lang/translations/hi.po +1 -1
  27. package/lang/translations/hr.po +1 -1
  28. package/lang/translations/hu.po +1 -1
  29. package/lang/translations/id.po +1 -1
  30. package/lang/translations/it.po +1 -1
  31. package/lang/translations/ja.po +1 -1
  32. package/lang/translations/jv.po +1 -1
  33. package/lang/translations/ko.po +1 -1
  34. package/lang/translations/lt.po +1 -1
  35. package/lang/translations/lv.po +1 -1
  36. package/lang/translations/ms.po +1 -1
  37. package/lang/translations/nl.po +1 -1
  38. package/lang/translations/no.po +1 -1
  39. package/lang/translations/pl.po +1 -1
  40. package/lang/translations/pt-br.po +1 -1
  41. package/lang/translations/pt.po +1 -1
  42. package/lang/translations/ro.po +1 -1
  43. package/lang/translations/ru.po +1 -1
  44. package/lang/translations/sk.po +1 -1
  45. package/lang/translations/sr-latn.po +5 -5
  46. package/lang/translations/sr.po +5 -5
  47. package/lang/translations/sv.po +1 -1
  48. package/lang/translations/th.po +1 -1
  49. package/lang/translations/tk.po +1 -1
  50. package/lang/translations/tr.po +1 -1
  51. package/lang/translations/tt.po +1 -1
  52. package/lang/translations/ug.po +7 -7
  53. package/lang/translations/uk.po +1 -1
  54. package/lang/translations/ur.po +1 -1
  55. package/lang/translations/vi.po +1 -1
  56. package/lang/translations/zh-cn.po +1 -1
  57. package/lang/translations/zh.po +1 -1
  58. package/package.json +3 -3
  59. package/src/annotations/annotation.js +2 -2
  60. package/src/annotations/annotationcollection.js +2 -2
  61. package/src/annotations/annotations.js +2 -2
  62. package/src/annotations/annotationsuis.js +2 -2
  63. package/src/annotations/editorannotations.js +2 -2
  64. package/src/annotations/inlineannotations.js +2 -2
  65. package/src/annotations/narrowsidebar.js +2 -2
  66. package/src/annotations/sidebar.js +2 -2
  67. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  68. package/src/annotations/view/annotationview.js +2 -2
  69. package/src/annotations/view/sidebaritemview.js +2 -2
  70. package/src/annotations/view/sidebarview.js +2 -2
  71. package/src/annotations/widesidebar.js +2 -2
  72. package/src/comments/addcommentthreadcommand.js +2 -2
  73. package/src/comments/commentsediting.js +2 -2
  74. package/src/comments/commentsrepository.js +2 -2
  75. package/src/comments/commentsui.js +2 -2
  76. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  77. package/src/comments/integrations/importword.js +2 -2
  78. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  79. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  80. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  81. package/src/comments/ui/commentthreadcontroller.js +2 -2
  82. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  83. package/src/comments/ui/view/basecommentview.js +2 -2
  84. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  85. package/src/comments/ui/view/commentcontentview.js +2 -2
  86. package/src/comments/ui/view/commentinputview.js +2 -2
  87. package/src/comments/ui/view/commentslistview.js +2 -2
  88. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  89. package/src/comments/ui/view/commentthreadview.js +2 -2
  90. package/src/comments/ui/view/commentview.js +2 -2
  91. package/src/comments.js +2 -2
  92. package/src/commentsonly.js +2 -2
  93. package/src/index.js +1 -1
  94. package/src/utils/common-translations.js +2 -2
  95. package/src/utils/createmutationobserver.js +2 -2
  96. package/theme/commentthread.css +7 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3088=['get','RestrictedEditingModeEditing','afterInit','editor','plugins','has','addCommentThread','enableCommand'];(function(_0x341ce7,_0x30880f){const _0x57b5=function(_0x101600){while(--_0x101600){_0x341ce7['push'](_0x341ce7['shift']());}};_0x57b5(++_0x30880f);}(_0x3088,0x13f));const _0x57b5=function(_0x341ce7,_0x30880f){_0x341ce7=_0x341ce7-0x0;let _0x101600=_0x3088[_0x341ce7];return _0x101600;};import{Plugin as _0x38523e}from'ckeditor5/src/core';export default class F extends _0x38523e{[_0x57b5('0x3')](){const _0x3b6f3d=this[_0x57b5('0x4')];if(!_0x3b6f3d['plugins'][_0x57b5('0x6')](_0x57b5('0x2')))return;_0x3b6f3d[_0x57b5('0x5')][_0x57b5('0x1')]('RestrictedEditingModeEditing')[_0x57b5('0x0')](_0x57b5('0x7'));}}
23
+ const _0x1b12=['plugins','afterInit','RestrictedEditingModeEditing','get','editor'];(function(_0x2ad60d,_0x1b1204){const _0x5a9ea0=function(_0x2f7b40){while(--_0x2f7b40){_0x2ad60d['push'](_0x2ad60d['shift']());}};_0x5a9ea0(++_0x1b1204);}(_0x1b12,0x118));const _0x5a9e=function(_0x2ad60d,_0x1b1204){_0x2ad60d=_0x2ad60d-0x0;let _0x5a9ea0=_0x1b12[_0x2ad60d];return _0x5a9ea0;};import{Plugin as _0x332638}from'ckeditor5/src/core';export default class q extends _0x332638{[_0x5a9e('0x1')](){const _0x140529=this[_0x5a9e('0x4')];if(!_0x140529[_0x5a9e('0x0')]['has']('RestrictedEditingModeEditing'))return;_0x140529[_0x5a9e('0x0')][_0x5a9e('0x3')](_0x5a9e('0x2'))['enableCommand']('addCommentThread');}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a0e=['dataInsert','commands','addCommentThread','execute','get','high','_handleImportedData','plugins','afterInit','importWord.commentsStyles','config','forEach','importWord','basic','define','editor','Users','listenTo'];(function(_0x2af078,_0x1a0ecb){const _0x538bf8=function(_0xce1b54){while(--_0xce1b54){_0x2af078['push'](_0x2af078['shift']());}};_0x538bf8(++_0x1a0ecb);}(_0x1a0e,0x118));const _0x538b=function(_0x2af078,_0x1a0ecb){_0x2af078=_0x2af078-0x0;let _0x538bf8=_0x1a0e[_0x2af078];return _0x538bf8;};import{Plugin as _0x3526ea}from'ckeditor5/src/core';import{priorities as _0x50b8cc}from'ckeditor5/src/utils';import _0x110cb4 from'../commentsrepository';export default class q extends _0x3526ea{constructor(_0x53467c){super(_0x53467c),this[_0x538b('0x5')]['config'][_0x538b('0x4')](_0x538b('0x11'),_0x538b('0x3'));}[_0x538b('0x10')](){const _0xdfe130=this[_0x538b('0x5')],_0x512abd=_0xdfe130[_0x538b('0x9')]['get']('importWord'),_0x12d80f=_0xdfe130[_0x538b('0xf')][_0x538b('0xc')](_0x538b('0x6'));_0x512abd&&(_0x512abd['on'](_0x538b('0xb'),(_0x36df4b,[,_0x461619])=>{_0x461619['collaboration_features']={'comments':!0x0,'user_id':_0x12d80f['me']['id'],'comments_styles':this[_0x538b('0x5')][_0x538b('0x0')][_0x538b('0xc')](_0x538b('0x11'))};},{'priority':_0x50b8cc[_0x538b('0xd')]+0xa}),this[_0x538b('0x7')](_0x512abd,_0x538b('0x8'),this[_0x538b('0xe')]));}[_0x538b('0xe')](_0x31e0c7,_0x488bbc){const {comment_threads:_0x1ec72b}=_0x488bbc;_0x1ec72b&&_0x1ec72b[_0x538b('0x1')](({thread_id:_0x8802e6,comments:_0x1d45cd})=>{const _0x27e2b8=_0x1d45cd['map'](({author:_0x25f792,content:_0x12eded,created_at:_0x466563})=>({'content':_0x12eded,'authorId':this[_0x538b('0x5')][_0x538b('0xf')][_0x538b('0xc')](_0x538b('0x6'))['me']['id'],'createdAt':new Date(),'attributes':{'@external':{'authorName':_0x25f792,'createdAt':_0x466563?new Date(_0x466563):new Date(),'source':_0x538b('0x2')}}})),_0x46af56=this[_0x538b('0x5')]['config']['get']('collaboration.channelId');this[_0x538b('0x5')][_0x538b('0xf')][_0x538b('0xc')](_0x110cb4)[_0x538b('0xa')]({'channelId':_0x46af56,'threadId':_0x8802e6,'comments':_0x27e2b8});});}}
23
+ const _0x1d0d=['forEach','map','commands','editor','addCommentThread','importWord.commentsStyles','execute','plugins','collaboration.channelId','get','afterInit','basic','Users','high','define','config','listenTo','importWord','dataInsert'];(function(_0x2e818f,_0x1d0d70){const _0x4a0001=function(_0x11ae05){while(--_0x11ae05){_0x2e818f['push'](_0x2e818f['shift']());}};_0x4a0001(++_0x1d0d70);}(_0x1d0d,0x127));const _0x4a00=function(_0x2e818f,_0x1d0d70){_0x2e818f=_0x2e818f-0x0;let _0x4a0001=_0x1d0d[_0x2e818f];return _0x4a0001;};import{Plugin as _0x479e47}from'ckeditor5/src/core';import{priorities as _0x12ae38}from'ckeditor5/src/utils';import _0x3ce41a from'../commentsrepository';export default class G extends _0x479e47{constructor(_0x5cacf8){super(_0x5cacf8),this[_0x4a00('0xc')]['config'][_0x4a00('0x4')]('importWord.commentsStyles',_0x4a00('0x1'));}[_0x4a00('0x0')](){const _0x104ed2=this[_0x4a00('0xc')],_0xd73ee6=_0x104ed2[_0x4a00('0xb')][_0x4a00('0x12')]('importWord'),_0x4745d6=_0x104ed2['plugins']['get'](_0x4a00('0x2'));_0xd73ee6&&(_0xd73ee6['on'](_0x4a00('0xf'),(_0x4887f9,[,_0x2a7608])=>{_0x2a7608['collaboration_features']={'comments':!0x0,'user_id':_0x4745d6['me']['id'],'comments_styles':this[_0x4a00('0xc')]['config'][_0x4a00('0x12')](_0x4a00('0xe'))};},{'priority':_0x12ae38[_0x4a00('0x3')]+0xa}),this[_0x4a00('0x6')](_0xd73ee6,_0x4a00('0x8'),this['_handleImportedData']));}['_handleImportedData'](_0x202fc7,_0x38356d){const {comment_threads:_0x5d6fed}=_0x38356d;_0x5d6fed&&_0x5d6fed[_0x4a00('0x9')](({thread_id:_0x3162d1,comments:_0x3f2684})=>{const _0xb078fd=_0x3f2684[_0x4a00('0xa')](({author:_0x2f0959,content:_0x3c2981,created_at:_0x4430e7})=>({'content':_0x3c2981,'authorId':this[_0x4a00('0xc')][_0x4a00('0x10')][_0x4a00('0x12')]('Users')['me']['id'],'createdAt':new Date(),'attributes':{'@external':{'authorName':_0x2f0959,'createdAt':_0x4430e7?new Date(_0x4430e7):new Date(),'source':_0x4a00('0x7')}}})),_0x18346d=this[_0x4a00('0xc')][_0x4a00('0x5')][_0x4a00('0x12')](_0x4a00('0x11'));this[_0x4a00('0xc')][_0x4a00('0x10')][_0x4a00('0x12')](_0x3ce41a)[_0x4a00('0xd')]({'channelId':_0x18346d,'threadId':_0x3162d1,'comments':_0xb078fd});});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ccb=['then','model','getChild','getRoot','set','create','destroy','defaultPlugins','plugins','assign','placeholderElement','editing','low','change','end','init','_updatePlaceholder','document','placeholder','fire','config','focus','initPlugins','get','view','childCount','setSelection'];(function(_0x5c36d9,_0x2ccbc8){const _0x1ac423=function(_0x85e090){while(--_0x85e090){_0x5c36d9['push'](_0x5c36d9['shift']());}};_0x1ac423(++_0x2ccbc8);}(_0x2ccb,0x1e7));const _0x1ac4=function(_0x5c36d9,_0x2ccbc8){_0x5c36d9=_0x5c36d9-0x0;let _0x1ac423=_0x2ccb[_0x5c36d9];return _0x1ac423;};import{Editor as _0x3c64fa,DataApiMixin as _0x5cf2b9}from'ckeditor5/src/core';import _0x3858eb from'./commenteditorui';import{mix as _0x1c1424,ObservableMixin as _0x2fe8ac}from'ckeditor5/src/utils';import{enablePlaceholder as _0x1c4c9c,disablePlaceholder as _0xd18946}from'ckeditor5/src/engine';import{Clipboard as _0x3d4452}from'ckeditor5/src/clipboard';import{Enter as _0x19e03b,ShiftEnter as _0x4746a9}from'ckeditor5/src/enter';import{SelectAll as _0x3541dd}from'ckeditor5/src/select-all';import{Typing as _0x5ed47d}from'ckeditor5/src/typing';import{Undo as _0x2acdc4}from'ckeditor5/src/undo';import{Paragraph as _0x34d836}from'ckeditor5/src/paragraph';export default class At extends _0x3c64fa{constructor(_0x4b3d62={}){(_0x4b3d62=Object[_0x1ac4('0x8')]({},_0x4b3d62))['plugins']||(_0x4b3d62[_0x1ac4('0x7')]=At[_0x1ac4('0x6')]),super(_0x4b3d62),this['ui']=new _0x3858eb(this),this[_0x1ac4('0x3')](_0x1ac4('0x11'),''),this[_0x1ac4('0x0')][_0x1ac4('0x10')]['on'](_0x1ac4('0xc'),()=>this[_0x1ac4('0xf')](),{'priority':_0x1ac4('0xb')}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model'][_0x1ac4('0x10')]['createRoot']();}[_0x1ac4('0x4')](){const _0x4c0229=this[_0x1ac4('0x13')][_0x1ac4('0x16')]('initialData')||'';return this[_0x1ac4('0x15')]()[_0x1ac4('0x1a')](()=>this['ui'][_0x1ac4('0xe')]())['then'](()=>this['data'][_0x1ac4('0xe')](_0x4c0229))['then'](()=>this[_0x1ac4('0x12')]('ready'));}[_0x1ac4('0x5')](){return super[_0x1ac4('0x5')]()[_0x1ac4('0x1a')](()=>this['ui'][_0x1ac4('0x5')]());}[_0x1ac4('0x14')](){this[_0x1ac4('0x0')][_0x1ac4('0xc')](_0x267b43=>{const _0x3684b1=this[_0x1ac4('0x0')][_0x1ac4('0x10')][_0x1ac4('0x2')](),_0x312f3f=_0x3684b1[_0x1ac4('0x1')](_0x3684b1[_0x1ac4('0x18')]-0x1);_0x267b43[_0x1ac4('0x19')](_0x312f3f,_0x1ac4('0xd')),this[_0x1ac4('0xa')][_0x1ac4('0x17')]['focus']();});}[_0x1ac4('0xf')](){const _0x370c49=this[_0x1ac4('0xa')][_0x1ac4('0x17')],_0x2318ff=_0x370c49[_0x1ac4('0x10')]['getRoot'](),_0xebca06=_0x2318ff[_0x1ac4('0x1')](0x0);_0x2318ff[_0x1ac4('0x18')]>0x1||!_0xebca06||'p'!=_0xebca06['name']?this['placeholderElement']&&(_0xd18946(_0x370c49,this[_0x1ac4('0x9')]),this['placeholderElement']=void 0x0):(_0x1c4c9c({'view':_0x370c49,'element':_0xebca06,'text':this[_0x1ac4('0x11')],'keepOnFocus':!0x0}),this[_0x1ac4('0x9')]=_0xebca06);}}_0x1c1424(At,_0x2fe8ac),_0x1c1424(At,_0x5cf2b9),At[_0x1ac4('0x6')]=[_0x3d4452,_0x19e03b,_0x4746a9,_0x3541dd,_0x5ed47d,_0x2acdc4,_0x34d836];
23
+ const _0x5c58=['placeholderElement','config','placeholder','data','assign','plugins','_updatePlaceholder','setSelection','destroy','childCount','model','get','getChild','getRoot','then','document','focus','fire','defaultPlugins','set','init','create','initialData','change','low','editing','name','initPlugins','view'];(function(_0x2029a6,_0x5c5835){const _0x18387a=function(_0x3cca1c){while(--_0x3cca1c){_0x2029a6['push'](_0x2029a6['shift']());}};_0x18387a(++_0x5c5835);}(_0x5c58,0xeb));const _0x1838=function(_0x2029a6,_0x5c5835){_0x2029a6=_0x2029a6-0x0;let _0x18387a=_0x5c58[_0x2029a6];return _0x18387a;};import{Editor as _0x541e5d,DataApiMixin as _0x2d35aa}from'ckeditor5/src/core';import _0x1ab6d6 from'./commenteditorui';import{mix as _0x1fddaa,ObservableMixin as _0x5e62fd}from'ckeditor5/src/utils';import{enablePlaceholder as _0x4e2b5b,disablePlaceholder as _0x30fc23}from'ckeditor5/src/engine';import{Clipboard as _0x2fde8}from'ckeditor5/src/clipboard';import{Enter as _0x5f4644,ShiftEnter as _0x2824ce}from'ckeditor5/src/enter';import{SelectAll as _0x107504}from'ckeditor5/src/select-all';import{Typing as _0x1da83f}from'ckeditor5/src/typing';import{Undo as _0x4d334c}from'ckeditor5/src/undo';import{Paragraph as _0x139024}from'ckeditor5/src/paragraph';export default class Bt extends _0x541e5d{constructor(_0xcd7c67={}){(_0xcd7c67=Object[_0x1838('0x1')]({},_0xcd7c67))[_0x1838('0x2')]||(_0xcd7c67['plugins']=Bt[_0x1838('0xf')]),super(_0xcd7c67),this['ui']=new _0x1ab6d6(this),this[_0x1838('0x10')]('placeholder',''),this[_0x1838('0x7')][_0x1838('0xc')]['on'](_0x1838('0x14'),()=>this[_0x1838('0x3')](),{'priority':_0x1838('0x15')}),this['on']('change:placeholder',()=>this[_0x1838('0x3')]()),this[_0x1838('0x7')][_0x1838('0xc')]['createRoot']();}[_0x1838('0x12')](){const _0x21ecb4=this[_0x1838('0x1b')][_0x1838('0x8')](_0x1838('0x13'))||'';return this[_0x1838('0x18')]()[_0x1838('0xb')](()=>this['ui'][_0x1838('0x11')]())[_0x1838('0xb')](()=>this[_0x1838('0x0')]['init'](_0x21ecb4))['then'](()=>this[_0x1838('0xe')]('ready'));}[_0x1838('0x5')](){return super[_0x1838('0x5')]()[_0x1838('0xb')](()=>this['ui'][_0x1838('0x5')]());}[_0x1838('0xd')](){this[_0x1838('0x7')][_0x1838('0x14')](_0x1241b7=>{const _0x12a1d7=this['model'][_0x1838('0xc')]['getRoot'](),_0x53ca6b=_0x12a1d7[_0x1838('0x9')](_0x12a1d7[_0x1838('0x6')]-0x1);_0x1241b7[_0x1838('0x4')](_0x53ca6b,'end'),this[_0x1838('0x16')]['view'][_0x1838('0xd')]();});}[_0x1838('0x3')](){const _0x16d8e4=this['editing'][_0x1838('0x19')],_0x5504ed=_0x16d8e4[_0x1838('0xc')][_0x1838('0xa')](),_0x1e9ab7=_0x5504ed[_0x1838('0x9')](0x0);_0x5504ed[_0x1838('0x6')]>0x1||!_0x1e9ab7||'p'!=_0x1e9ab7[_0x1838('0x17')]?this[_0x1838('0x1a')]&&(_0x30fc23(_0x16d8e4,this['placeholderElement']),this[_0x1838('0x1a')]=void 0x0):(_0x4e2b5b({'view':_0x16d8e4,'element':_0x1e9ab7,'text':this[_0x1838('0x1c')],'keepOnFocus':!0x0}),this[_0x1838('0x1a')]=_0x1e9ab7);}}_0x1fddaa(Bt,_0x5e62fd),_0x1fddaa(Bt,_0x2d35aa),Bt[_0x1838('0xf')]=[_0x2fde8,_0x5f4644,_0x2824ce,_0x107504,_0x1da83f,_0x4d334c,_0x139024];
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa4ec=['ready','init','focusTracker','setEditableElement','view','isFocused','getRoot','element','render','name','destroy','document','fire','bind','editable','editing'];(function(_0x4e8b3f,_0xa4ecf9){const _0x1e380a=function(_0x5b9b4b){while(--_0x5b9b4b){_0x4e8b3f['push'](_0x4e8b3f['shift']());}};_0x1e380a(++_0xa4ecf9);}(_0xa4ec,0x1ae));const _0x1e38=function(_0x4e8b3f,_0xa4ecf9){_0x4e8b3f=_0x4e8b3f-0x0;let _0x1e380a=_0xa4ec[_0x4e8b3f];return _0x1e380a;};import{EditorUI as _0x2990af}from'ckeditor5/src/core';import _0x561866 from'./commenteditoruiview';export default class wt extends _0x2990af{constructor(_0x19b312){super(_0x19b312),this[_0x1e38('0x6')]=new _0x561866(_0x19b312['locale'],_0x19b312[_0x1e38('0x1')][_0x1e38('0x6')]);}get[_0x1e38('0x9')](){return this[_0x1e38('0x6')][_0x1e38('0x9')];}[_0x1e38('0x3')](){const _0x221e55=this['editor'][_0x1e38('0x1')][_0x1e38('0x6')],_0x150c0f=this[_0x1e38('0x6')][_0x1e38('0x0')],_0x48cb4a=_0x221e55[_0x1e38('0xd')][_0x1e38('0x8')]();_0x150c0f[_0x1e38('0xb')]=_0x48cb4a['rootName'],this['view'][_0x1e38('0xa')]();const _0x500aa8=_0x150c0f[_0x1e38('0x9')];this[_0x1e38('0x5')](_0x150c0f[_0x1e38('0xb')],_0x500aa8),this[_0x1e38('0x6')]['editable'][_0x1e38('0xf')](_0x1e38('0x7'))['to'](this[_0x1e38('0x4')]),_0x221e55['attachDomRoot'](_0x500aa8),this[_0x1e38('0xe')](_0x1e38('0x2'));}[_0x1e38('0xc')](){super[_0x1e38('0xc')](),this[_0x1e38('0x6')][_0x1e38('0xc')]();}}
23
+ const _0x1781=['init','locale','setEditableElement','name','getRoot','editable','element','isFocused','fire','bind','editing','view','destroy','focusTracker','render'];(function(_0x58bb2b,_0x17810f){const _0x40ed5a=function(_0x59323e){while(--_0x59323e){_0x58bb2b['push'](_0x58bb2b['shift']());}};_0x40ed5a(++_0x17810f);}(_0x1781,0x1d9));const _0x40ed=function(_0x58bb2b,_0x17810f){_0x58bb2b=_0x58bb2b-0x0;let _0x40ed5a=_0x1781[_0x58bb2b];return _0x40ed5a;};import{EditorUI as _0x388cfe}from'ckeditor5/src/ui';import _0x15c946 from'./commenteditoruiview';export default class xt extends _0x388cfe{constructor(_0x22081e){super(_0x22081e),this[_0x40ed('0x3')]=new _0x15c946(_0x22081e[_0x40ed('0x8')],_0x22081e[_0x40ed('0x2')][_0x40ed('0x3')]);}get[_0x40ed('0xd')](){return this['view'][_0x40ed('0xd')];}[_0x40ed('0x7')](){const _0x287dde=this['editor']['editing'][_0x40ed('0x3')],_0x487abe=this[_0x40ed('0x3')][_0x40ed('0xc')],_0x36c05c=_0x287dde['document'][_0x40ed('0xb')]();_0x487abe[_0x40ed('0xa')]=_0x36c05c['rootName'],this['view'][_0x40ed('0x6')]();const _0xf4df1b=_0x487abe[_0x40ed('0xd')];this[_0x40ed('0x9')](_0x487abe[_0x40ed('0xa')],_0xf4df1b),this[_0x40ed('0x3')][_0x40ed('0xc')][_0x40ed('0x1')](_0x40ed('0xe'))['to'](this[_0x40ed('0x5')]),_0x287dde['attachDomRoot'](_0xf4df1b),this[_0x40ed('0x0')]('ready');}['destroy'](){super[_0x40ed('0x4')](),this[_0x40ed('0x3')][_0x40ed('0x4')]();}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb385=['editable','uiLanguageDirection','ck-comment__input','ck-editor__aria-label_','uiLanguage','_createVoiceLabel','ck-rounded-corners','main','ck-editor__main','render','_voiceLabelView','cke-editor__aria-label_','ck-editor','focus','div','extendTemplate','element','createCollection'];(function(_0x5a3bfa,_0xb385ff){const _0x4d10c2=function(_0x38a0b2){while(--_0x38a0b2){_0x5a3bfa['push'](_0x5a3bfa['shift']());}};_0x4d10c2(++_0xb385ff);}(_0xb385,0x1df));const _0x4d10=function(_0x5a3bfa,_0xb385ff){_0x5a3bfa=_0x5a3bfa-0x0;let _0x4d10c2=_0xb385[_0x5a3bfa];return _0x4d10c2;};import{InlineEditableUIView as _0x1c28a3,EditorUIView as _0x37ee1c,LabelView as _0x598928}from'ckeditor5/src/ui';import{uid as _0x614933}from'ckeditor5/src/utils';import{getTranslation as _0x472dc3}from'../../../utils/common-translations';export default class Ct extends _0x37ee1c{constructor(_0x1b1fbd,_0x327d9e){super(_0x1b1fbd);const _0x273606=_0x614933();this[_0x4d10('0xe')]=this[_0x4d10('0x6')](),this[_0x4d10('0x7')]=new _0x1c28a3(_0x1b1fbd,_0x327d9e),this[_0x4d10('0x11')]=this[_0x4d10('0xc')](_0x273606,_0x1b1fbd),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset',_0x4d10('0x1'),_0x4d10('0xd'),_0x4d10('0x9')],'role':'comment','dir':_0x1b1fbd[_0x4d10('0x8')],'lang':_0x1b1fbd[_0x4d10('0xb')],'aria-labelledby':_0x4d10('0x0')+_0x273606},'children':[this['_voiceLabelView'],{'tag':_0x4d10('0x3'),'attributes':{'class':_0x4d10('0xf'),'role':'presentation'},'children':this[_0x4d10('0xe')]}]});}['render'](){super[_0x4d10('0x10')](),this['main']['add'](this[_0x4d10('0x7')]);}[_0x4d10('0x2')](){this[_0x4d10('0x7')][_0x4d10('0x5')][_0x4d10('0x2')]();}[_0x4d10('0xc')](_0x19e072,_0x322646){const _0x12c4aa=new _0x598928();return _0x12c4aa['text']=_0x472dc3(_0x322646,'Comment\x20editor'),_0x12c4aa[_0x4d10('0x4')]({'attributes':{'id':_0x4d10('0xa')+_0x19e072,'class':'ck-voice-label'}}),_0x12c4aa;}}
23
+ const _0x55c8=['_voiceLabelView','ck-editor__aria-label_','ck-editor','render','extendTemplate','ck-rounded-corners','editable','uiLanguageDirection','presentation','main','add','_createVoiceLabel','ck-voice-label','setTemplate','Comment\x20editor','text','element','div','createCollection','ck-editor__main','cke-editor__aria-label_','ck-reset','ck-comment__input'];(function(_0x16ac66,_0x55c849){const _0x189f3a=function(_0x3bbe41){while(--_0x3bbe41){_0x16ac66['push'](_0x16ac66['shift']());}};_0x189f3a(++_0x55c849);}(_0x55c8,0xc3));const _0x189f=function(_0x16ac66,_0x55c849){_0x16ac66=_0x16ac66-0x0;let _0x189f3a=_0x55c8[_0x16ac66];return _0x189f3a;};import{InlineEditableUIView as _0x39e7e4,EditorUIView as _0x8201c,LabelView as _0x1105ef}from'ckeditor5/src/ui';import{uid as _0x1b03bb}from'ckeditor5/src/utils';import{getTranslation as _0x96dd36}from'../../../utils/common-translations';export default class Et extends _0x8201c{constructor(_0x4d89ae,_0x1886ee){super(_0x4d89ae);const _0x3a491c=_0x1b03bb();this[_0x189f('0x15')]=this[_0x189f('0x7')](),this[_0x189f('0x12')]=new _0x39e7e4(_0x4d89ae,_0x1886ee),this[_0x189f('0xc')]=this[_0x189f('0x0')](_0x3a491c,_0x4d89ae),this[_0x189f('0x2')]({'tag':_0x189f('0x6'),'attributes':{'class':[_0x189f('0xa'),_0x189f('0xe'),_0x189f('0x11'),_0x189f('0xb')],'role':'comment','dir':_0x4d89ae[_0x189f('0x13')],'lang':_0x4d89ae['uiLanguage'],'aria-labelledby':_0x189f('0x9')+_0x3a491c},'children':[this[_0x189f('0xc')],{'tag':_0x189f('0x6'),'attributes':{'class':_0x189f('0x8'),'role':_0x189f('0x14')},'children':this[_0x189f('0x15')]}]});}[_0x189f('0xf')](){super[_0x189f('0xf')](),this[_0x189f('0x15')][_0x189f('0x16')](this[_0x189f('0x12')]);}['focus'](){this[_0x189f('0x12')][_0x189f('0x5')]['focus']();}[_0x189f('0x0')](_0x54c3e6,_0x289d2c){const _0x2b8045=new _0x1105ef();return _0x2b8045[_0x189f('0x4')]=_0x96dd36(_0x289d2c,_0x189f('0x3')),_0x2b8045[_0x189f('0x10')]({'attributes':{'id':_0x189f('0xd')+_0x54c3e6,'class':_0x189f('0x1')}}),_0x2b8045;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3dc0=['destroy','removeComment','remove','model','addComment','listenTo','view','_isAttached','getComment','updateComment','_localUser'];(function(_0x8bbb26,_0x3dc066){var _0x48af77=function(_0x539e9b){while(--_0x539e9b){_0x8bbb26['push'](_0x8bbb26['shift']());}};_0x48af77(++_0x3dc066);}(_0x3dc0,0x88));var _0x48af=function(_0x8bbb26,_0x3dc066){_0x8bbb26=_0x8bbb26-0x0;var _0x48af77=_0x3dc0[_0x8bbb26];return _0x48af77;};import{ObservableMixin as _0x2fbf4e,mix as _0x34ad3a}from'ckeditor5/src/utils';export default class nt{constructor(_0x1f8c9b,_0x4913bd){this[_0x48af('0xa')]=_0x1f8c9b,this[_0x48af('0xa')][_0x48af('0x3')]=!0x0,this[_0x48af('0x2')]=_0x4913bd,this[_0x48af('0x1')](_0x4913bd,'removeCommentThread',()=>this[_0x48af('0x9')]()),this[_0x48af('0x1')](_0x4913bd,'addComment',(_0x4cf439,_0x8bb2a)=>this[_0x48af('0x0')](_0x8bb2a)),this[_0x48af('0x1')](_0x4913bd,'updateComment',(_0x516208,_0x539757,_0x1f5228)=>this['updateComment'](_0x539757,_0x1f5228)),this[_0x48af('0x1')](_0x4913bd,'removeComment',(_0xe947bb,_0x477812)=>this['removeComment'](_0x477812));}[_0x48af('0x9')](){this[_0x48af('0xa')][_0x48af('0x9')]();}['addComment'](_0x476a99){this[_0x48af('0xa')][_0x48af('0x0')]({'content':_0x476a99,'authorId':this[_0x48af('0x2')][_0x48af('0x6')]['id']});}[_0x48af('0x5')](_0x57b8a4,_0x245a0e){this[_0x48af('0xa')]['getComment'](_0x57b8a4)['update']({'content':_0x245a0e});}[_0x48af('0x8')](_0x56b6cd){this[_0x48af('0xa')][_0x48af('0x4')](_0x56b6cd)[_0x48af('0x9')]();}[_0x48af('0x7')](){this['stopListening'](),this['model'][_0x48af('0x3')]=!0x1;}}_0x34ad3a(nt,_0x2fbf4e);
23
+ var _0x355b=['removeCommentThread','update','stopListening','model','remove','removeComment','view','getComment','listenTo','_isAttached','_localUser','addComment','updateComment'];(function(_0x5d0280,_0x355b81){var _0x3bc933=function(_0x23a7f4){while(--_0x23a7f4){_0x5d0280['push'](_0x5d0280['shift']());}};_0x3bc933(++_0x355b81);}(_0x355b,0x1eb));var _0x3bc9=function(_0x5d0280,_0x355b81){_0x5d0280=_0x5d0280-0x0;var _0x3bc933=_0x355b[_0x5d0280];return _0x3bc933;};import{ObservableMixin as _0x2547ce,mix as _0x6ebcbd}from'ckeditor5/src/utils';export default class ot{constructor(_0x55ed1f,_0x1abc3f){this[_0x3bc9('0x6')]=_0x55ed1f,this[_0x3bc9('0x6')]['_isAttached']=!0x0,this[_0x3bc9('0x9')]=_0x1abc3f,this[_0x3bc9('0xb')](_0x1abc3f,_0x3bc9('0x3'),()=>this[_0x3bc9('0x7')]()),this[_0x3bc9('0xb')](_0x1abc3f,_0x3bc9('0x1'),(_0xda3667,_0x537358)=>this['addComment'](_0x537358)),this['listenTo'](_0x1abc3f,_0x3bc9('0x2'),(_0x53e65d,_0x442e45,_0x268541)=>this['updateComment'](_0x442e45,_0x268541)),this[_0x3bc9('0xb')](_0x1abc3f,'removeComment',(_0x5abb18,_0x2cd1c2)=>this[_0x3bc9('0x8')](_0x2cd1c2));}[_0x3bc9('0x7')](){this[_0x3bc9('0x6')][_0x3bc9('0x7')]();}[_0x3bc9('0x1')](_0x1f3082){this[_0x3bc9('0x6')][_0x3bc9('0x1')]({'content':_0x1f3082,'authorId':this['view'][_0x3bc9('0x0')]['id']});}[_0x3bc9('0x2')](_0x51a6e7,_0x16bb06){this[_0x3bc9('0x6')][_0x3bc9('0xa')](_0x51a6e7)[_0x3bc9('0x4')]({'content':_0x16bb06});}[_0x3bc9('0x8')](_0x698a34){this[_0x3bc9('0x6')][_0x3bc9('0xa')](_0x698a34)[_0x3bc9('0x7')]();}['destroy'](){this[_0x3bc9('0x5')](),this[_0x3bc9('0x6')][_0x3bc9('0xc')]=!0x1;}}_0x6ebcbd(ot,_0x2547ce);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49c8=['commentInputView','showInput','value','_model','focus','_localUser','destroy','disabledSubmit','submit','isDirty','change:isActive','fire','length','delegate','commentThreadInputView','isReadOnly','removeCommentThread','_config','placeholder','set','addComment','Write\x20a\x20comment...','cancel','editorConfig','commentsListView','element','bind','Reply...','_createCommentThreadInputView','updateComment','hasDirtyComment','assign','removeComment','isActive','stop','locale'];(function(_0x4687bf,_0x49c8e4){const _0x333781=function(_0x33eac8){while(--_0x33eac8){_0x4687bf['push'](_0x4687bf['shift']());}};_0x333781(++_0x49c8e4);}(_0x49c8,0x18c));const _0x3337=function(_0x4687bf,_0x49c8e4){_0x4687bf=_0x4687bf-0x0;let _0x333781=_0x49c8[_0x4687bf];return _0x333781;};import{View as _0x3f1854}from'ckeditor5/src/ui';import _0x56a1c7 from'./commentthreadinputview';import _0x1e29e9 from'./commentslistview';import{getTranslation as _0x54fe72}from'../../../utils/common-translations';export default class Rt extends _0x3f1854{constructor(_0x598835,_0x447f44,_0x424607,_0x4f0cea){super(_0x598835),this[_0x3337('0x13')](_0x3337('0x21'),!0x1),this[_0x3337('0x13')](_0x3337('0x9'),!0x1),this[_0x3337('0x3')]=_0x447f44,this[_0x3337('0x5')]=_0x424607,this[_0x3337('0x11')]=_0x4f0cea,this[_0x3337('0x18')]=new _0x1e29e9(_0x598835,_0x447f44,Object[_0x3337('0x1f')]({'CommentView':this[_0x3337('0x11')]['CommentView']},_0x4f0cea)),this[_0x3337('0x18')]['delegate'](_0x3337('0x20'))['to'](this),this['commentsListView'][_0x3337('0xd')](_0x3337('0x1d'))['to'](this),this[_0x3337('0x18')][_0x3337('0x1a')](_0x3337('0x21'))['to'](this),this[_0x3337('0x13')](_0x3337('0xc'),this['commentsListView'][_0x3337('0xc')]),this['bind'](_0x3337('0xc'))['to'](this['commentsListView'],'length'),this[_0x3337('0xe')]=this[_0x3337('0x1c')](),this['on']('removeComment',()=>this[_0x3337('0x4')]()),this['bind'](_0x3337('0x9'))['to'](this[_0x3337('0x18')],_0x3337('0x1e'),this['commentThreadInputView']['commentInputView'],_0x3337('0x2'),(_0x16c4f8,_0x413945)=>_0x16c4f8||!!_0x413945);}['focus'](){this[_0x3337('0x19')]['focus']();}[_0x3337('0x6')](){this[_0x3337('0x9')]=!0x1,this[_0x3337('0x18')][_0x3337('0x6')](),this['commentThreadInputView'][_0x3337('0x6')](),super[_0x3337('0x6')]();}[_0x3337('0x1c')](){const _0xedc95a=new _0x56a1c7(this[_0x3337('0x23')],this[_0x3337('0x5')],this[_0x3337('0x11')][_0x3337('0x17')]),_0x28057d=_0xedc95a[_0x3337('0x0')];return _0xedc95a[_0x3337('0x1a')](_0x3337('0x1'))['to'](this,_0x3337('0x21'),this['_model'],_0x3337('0xf'),_0x28057d,_0x3337('0x2'),(_0x4db255,_0x4245c7,_0x311212)=>!!_0x311212||_0x4db255&&!_0x4245c7),_0x28057d[_0x3337('0x1a')](_0x3337('0x12'))['to'](this,'length',_0x31174f=>_0x54fe72(this[_0x3337('0x23')],_0x31174f?_0x3337('0x1b'):_0x3337('0x15'))),_0x28057d['on'](_0x3337('0x8'),(_0x20d126,_0xaacac1)=>{this['fire'](_0x3337('0x14'),_0xaacac1);}),_0x28057d['on'](_0x3337('0x16'),()=>{this[_0x3337('0x4')]();}),_0x28057d['bind'](_0x3337('0x7'))['to'](this[_0x3337('0x3')],_0x3337('0xf')),_0x28057d['on'](_0x3337('0x16'),_0x1f3c5d=>{0x0==this['length']&&(this['fire'](_0x3337('0x10')),_0x1f3c5d[_0x3337('0x22')]());}),this['on'](_0x3337('0xa'),(_0x9e274c,_0x3675e0,_0x3fe693)=>{_0x3fe693||this[_0x3337('0xc')]||_0x28057d['value']||this[_0x3337('0xb')](_0x3337('0x10'));}),_0xedc95a;}}
23
+ const _0xb577=['change:isActive','Write\x20a\x20comment...','fire','locale','commentInputView','commentsListView','element','disabledSubmit','cancel','length','bind','hasDirtyComment','addComment','value','_createCommentThreadInputView','isDirty','delegate','placeholder','stop','_config','destroy','focus','commentThreadInputView','set','CommentView','isActive','isReadOnly','_model','showInput','removeCommentThread','updateComment','_localUser','Reply...','removeComment','assign'];(function(_0x1a3c1c,_0xb57782){const _0x19f18c=function(_0x5766db){while(--_0x5766db){_0x1a3c1c['push'](_0x1a3c1c['shift']());}};_0x19f18c(++_0xb57782);}(_0xb577,0xd2));const _0x19f1=function(_0x1a3c1c,_0xb57782){_0x1a3c1c=_0x1a3c1c-0x0;let _0x19f18c=_0xb577[_0x1a3c1c];return _0x19f18c;};import{View as _0x5515ae}from'ckeditor5/src/ui';import _0x226e80 from'./commentthreadinputview';import _0x1d2b29 from'./commentslistview';import{getTranslation as _0x3e0570}from'../../../utils/common-translations';export default class Rt extends _0x5515ae{constructor(_0x1970c8,_0x30946d,_0x446d6a,_0x408d91){super(_0x1970c8),this[_0x19f1('0x17')](_0x19f1('0x19'),!0x1),this[_0x19f1('0x17')](_0x19f1('0xf'),!0x1),this[_0x19f1('0x1b')]=_0x30946d,this[_0x19f1('0x1f')]=_0x446d6a,this['_config']=_0x408d91,this['commentsListView']=new _0x1d2b29(_0x1970c8,_0x30946d,Object[_0x19f1('0x22')]({'CommentView':this[_0x19f1('0x13')][_0x19f1('0x18')]},_0x408d91)),this[_0x19f1('0x5')][_0x19f1('0x10')](_0x19f1('0x21'))['to'](this),this['commentsListView'][_0x19f1('0x10')](_0x19f1('0x1e'))['to'](this),this[_0x19f1('0x5')][_0x19f1('0xa')](_0x19f1('0x19'))['to'](this),this[_0x19f1('0x17')](_0x19f1('0x9'),this['commentsListView'][_0x19f1('0x9')]),this[_0x19f1('0xa')](_0x19f1('0x9'))['to'](this[_0x19f1('0x5')],_0x19f1('0x9')),this[_0x19f1('0x16')]=this[_0x19f1('0xe')](),this['on'](_0x19f1('0x21'),()=>this[_0x19f1('0x15')]()),this[_0x19f1('0xa')](_0x19f1('0xf'))['to'](this[_0x19f1('0x5')],_0x19f1('0xb'),this[_0x19f1('0x16')][_0x19f1('0x4')],'value',(_0x5b7dd8,_0x2db6b9)=>_0x5b7dd8||!!_0x2db6b9);}[_0x19f1('0x15')](){this[_0x19f1('0x6')]['focus']();}['destroy'](){this[_0x19f1('0xf')]=!0x1,this['commentsListView'][_0x19f1('0x14')](),this[_0x19f1('0x16')]['destroy'](),super[_0x19f1('0x14')]();}['_createCommentThreadInputView'](){const _0x4d7fa3=new _0x226e80(this['locale'],this[_0x19f1('0x1f')],this[_0x19f1('0x13')]['editorConfig']),_0x14647c=_0x4d7fa3[_0x19f1('0x4')];return _0x4d7fa3[_0x19f1('0xa')](_0x19f1('0x1c'))['to'](this,_0x19f1('0x19'),this['_model'],_0x19f1('0x1a'),_0x14647c,_0x19f1('0xd'),(_0x5d880d,_0x4f7674,_0x7a45e0)=>!!_0x7a45e0||_0x5d880d&&!_0x4f7674),_0x14647c[_0x19f1('0xa')](_0x19f1('0x11'))['to'](this,_0x19f1('0x9'),_0x7ad9b4=>_0x3e0570(this[_0x19f1('0x3')],_0x7ad9b4?_0x19f1('0x20'):_0x19f1('0x1'))),_0x14647c['on']('submit',(_0x115803,_0x3e7a45)=>{this['fire'](_0x19f1('0xc'),_0x3e7a45);}),_0x14647c['on'](_0x19f1('0x8'),()=>{this['focus']();}),_0x14647c[_0x19f1('0xa')](_0x19f1('0x7'))['to'](this[_0x19f1('0x1b')],'isReadOnly'),_0x14647c['on'](_0x19f1('0x8'),_0x11dca5=>{0x0==this[_0x19f1('0x9')]&&(this[_0x19f1('0x2')](_0x19f1('0x1d')),_0x11dca5[_0x19f1('0x12')]());}),this['on'](_0x19f1('0x0'),(_0x221967,_0x4f34d5,_0x88719b)=>{_0x88719b||this[_0x19f1('0x9')]||_0x14647c['value']||this[_0x19f1('0x2')]('removeCommentThread');}),_0x4d7fa3;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f33=['_config','initialData','switchToDisplayMode','submit','bind','maxCommentCharsWhenCollapsed','visibleView','switchToEditMode','destroy','createCollection','collapse','editorReady','_createCommentInputView','expand','locale','cancel','_createCommentContentView','set','remove','add','focus','_model','isEditMode','fire','content','value','editorConfig','isCollapsed','disabledSubmit'];(function(_0x4cac4a,_0x2f33e2){const _0x15daf1=function(_0x2927b1){while(--_0x2927b1){_0x4cac4a['push'](_0x4cac4a['shift']());}};_0x15daf1(++_0x2f33e2);}(_0x2f33,0x1a6));const _0x15da=function(_0x4cac4a,_0x2f33e2){_0x4cac4a=_0x4cac4a-0x0;let _0x15daf1=_0x2f33[_0x4cac4a];return _0x15daf1;};import{View as _0x1ad143}from'ckeditor5/src/ui';import{trimHtml as _0x3fa452}from'ckeditor5-collaboration/src/collaboration-core';import _0x380949 from'./commentcontentview';import _0x5247c7 from'./commentinputview';export default class St extends _0x1ad143{constructor(_0x5c1871,_0x4d773d,_0x350b6c){super(_0x5c1871),this[_0x15da('0x5')]=_0x4d773d,this[_0x15da('0xd')]=_0x350b6c,this[_0x15da('0x1')](_0x15da('0x6'),!0x1),this[_0x15da('0x1')]('isCollapsed',!0x0),this[_0x15da('0x13')]=this[_0x15da('0x16')](),this[_0x15da('0x13')]['add'](this[_0x15da('0x0')]());}[_0x15da('0x1a')](){this[_0x15da('0xb')]=!0x1;}[_0x15da('0x17')](){this[_0x15da('0x6')]||(this[_0x15da('0xb')]=!0x0);}[_0x15da('0x4')](){this['element'][_0x15da('0x4')]();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super[_0x15da('0x15')]();}[_0x15da('0x14')](){this[_0x15da('0x6')]||(this['isEditMode']=!0x0,this['visibleView'][_0x15da('0x2')](0x0)['destroy'](),this[_0x15da('0x13')][_0x15da('0x3')](this[_0x15da('0x19')]()));}[_0x15da('0xf')](){this[_0x15da('0x6')]&&(this[_0x15da('0x6')]=!0x1,this['visibleView']['remove'](0x0)[_0x15da('0x15')](),this['visibleView'][_0x15da('0x3')](this[_0x15da('0x0')]()));}[_0x15da('0x0')](){const _0x3d5f80=new _0x380949(this[_0x15da('0x1b')]);return _0x3d5f80[_0x15da('0x11')]('content')['to'](this[_0x15da('0x5')],_0x15da('0x8'),this,_0x15da('0xb'),(_0x2db739,_0x5aa2b4)=>_0x5aa2b4?_0x3fa452(_0x2db739,{'limit':this['_config'][_0x15da('0x12')]}):_0x2db739),_0x3d5f80;}[_0x15da('0x19')](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this[_0x15da('0xd')][_0x15da('0xa')][_0x15da('0xe')]=this[_0x15da('0x5')][_0x15da('0x8')];const _0x46b02e=new _0x5247c7(this['locale'],this[_0x15da('0xd')][_0x15da('0xa')]);return _0x46b02e[_0x15da('0x9')]=this[_0x15da('0x5')]['content'],_0x46b02e[_0x15da('0x11')](_0x15da('0xc'))['to'](this[_0x15da('0x5')],'isReadOnly'),_0x46b02e['on'](_0x15da('0x10'),(_0x5b6403,_0x259ac7)=>{this[_0x15da('0x7')]('updateComment',this[_0x15da('0x5')]['id'],_0x259ac7),this[_0x15da('0xf')](),this['focus']();}),_0x46b02e['on'](_0x15da('0x1c'),()=>{this[_0x15da('0xf')](),this[_0x15da('0x4')]();}),_0x46b02e['once'](_0x15da('0x18'),()=>{_0x46b02e['focus']();}),_0x46b02e['createEditor'](),_0x46b02e;}}
23
+ const _0x5d79=['add','maxCommentCharsWhenCollapsed','editorReady','submit','switchToEditMode','visibleView','_model','expand','createCollection','_config','locale','_createCommentInputView','switchToDisplayMode','isCollapsed','createEditor','focus','fire','bind','destroy','isEditMode','content','updateComment','collapse','editorConfig','remove','disabledSubmit'];(function(_0x59f941,_0x5d79f4){const _0x2853d1=function(_0x5f2c64){while(--_0x5f2c64){_0x59f941['push'](_0x59f941['shift']());}};_0x2853d1(++_0x5d79f4);}(_0x5d79,0x7b));const _0x2853=function(_0x59f941,_0x5d79f4){_0x59f941=_0x59f941-0x0;let _0x2853d1=_0x5d79[_0x59f941];return _0x2853d1;};import{View as _0x403860}from'ckeditor5/src/ui';import{trimHtml as _0x186008}from'ckeditor5-collaboration/src/collaboration-core';import _0xd5e40d from'./commentcontentview';import _0xf335d from'./commentinputview';export default class Gt extends _0x403860{constructor(_0x22e8e7,_0x212064,_0x13f4b2){super(_0x22e8e7),this[_0x2853('0xd')]=_0x212064,this[_0x2853('0x10')]=_0x13f4b2,this['set'](_0x2853('0x0'),!0x1),this['set'](_0x2853('0x14'),!0x0),this[_0x2853('0xc')]=this[_0x2853('0xf')](),this[_0x2853('0xc')][_0x2853('0x7')](this['_createCommentContentView']());}[_0x2853('0xe')](){this[_0x2853('0x14')]=!0x1;}[_0x2853('0x3')](){this['isEditMode']||(this[_0x2853('0x14')]=!0x0);}[_0x2853('0x16')](){this['element'][_0x2853('0x16')]();}async[_0x2853('0x19')](){await this[_0x2853('0xc')]['get'](0x0)['destroy'](),super[_0x2853('0x19')]();}[_0x2853('0xb')](){this[_0x2853('0x0')]||(this['isEditMode']=!0x0,this[_0x2853('0xc')][_0x2853('0x5')](0x0)[_0x2853('0x19')](),this['visibleView'][_0x2853('0x7')](this['_createCommentInputView']()));}[_0x2853('0x13')](){this['isEditMode']&&(this['isEditMode']=!0x1,this[_0x2853('0xc')][_0x2853('0x5')](0x0)[_0x2853('0x19')](),this[_0x2853('0xc')][_0x2853('0x7')](this['_createCommentContentView']()));}['_createCommentContentView'](){const _0x41f00b=new _0xd5e40d(this[_0x2853('0x11')]);return _0x41f00b[_0x2853('0x18')](_0x2853('0x1'))['to'](this[_0x2853('0xd')],'content',this,_0x2853('0x14'),(_0x36e065,_0x5a0705)=>_0x5a0705?_0x186008(_0x36e065,{'limit':this['_config'][_0x2853('0x8')]}):_0x36e065),_0x41f00b;}[_0x2853('0x12')](){this['_config']['editorConfig']||(this[_0x2853('0x10')]['editorConfig']={}),this['_config'][_0x2853('0x4')]['initialData']=this[_0x2853('0xd')][_0x2853('0x1')];const _0x2269d4=new _0xf335d(this[_0x2853('0x11')],this[_0x2853('0x10')][_0x2853('0x4')]);return _0x2269d4['value']=this[_0x2853('0xd')][_0x2853('0x1')],_0x2269d4[_0x2853('0x18')](_0x2853('0x6'))['to'](this[_0x2853('0xd')],'isReadOnly'),_0x2269d4['on'](_0x2853('0xa'),(_0x3bb3e7,_0x4b3243)=>{this[_0x2853('0x17')](_0x2853('0x2'),this['_model']['id'],_0x4b3243),this[_0x2853('0x13')](),this[_0x2853('0x16')]();}),_0x2269d4['on']('cancel',()=>{this[_0x2853('0x13')](),this['focus']();}),_0x2269d4['once'](_0x2853('0x9'),()=>{_0x2269d4[_0x2853('0x16')]();}),_0x2269d4[_0x2853('0x15')](),_0x2269d4;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ca9=['bindTemplate','set','ck-thread__comment-count','count','NUMBER_OF_COMMENTS'];(function(_0x43da12,_0x2ca9d0){const _0x2ab9cd=function(_0x413c85){while(--_0x413c85){_0x43da12['push'](_0x43da12['shift']());}};_0x2ab9cd(++_0x2ca9d0);}(_0x2ca9,0x181));const _0x2ab9=function(_0x43da12,_0x2ca9d0){_0x43da12=_0x43da12-0x0;let _0x2ab9cd=_0x2ca9[_0x43da12];return _0x2ab9cd;};import{View as _0x40ede0}from'ckeditor5/src/ui';import{getTranslation as _0x67e7c4}from'../../../utils/common-translations';export default class Nt extends _0x40ede0{constructor(_0x421fb8){super(_0x421fb8);const _0x57d1dc=this[_0x2ab9('0x0')];this[_0x2ab9('0x1')]('count'),this['setTemplate']({'tag':'li','attributes':{'class':_0x2ab9('0x2')},'children':[{'text':_0x57d1dc['to'](_0x2ab9('0x3'),_0x210038=>_0x67e7c4(_0x421fb8,_0x2ab9('0x4'),_0x210038))}]});}}
23
+ const _0x4f3a=['setTemplate'];(function(_0x5b9d58,_0x4f3ac9){const _0x2d2424=function(_0x54dae0){while(--_0x54dae0){_0x5b9d58['push'](_0x5b9d58['shift']());}};_0x2d2424(++_0x4f3ac9);}(_0x4f3a,0x1e5));const _0x2d24=function(_0x5b9d58,_0x4f3ac9){_0x5b9d58=_0x5b9d58-0x0;let _0x2d2424=_0x4f3a[_0x5b9d58];return _0x2d2424;};import{View as _0x8c1530}from'ckeditor5/src/ui';import{getTranslation as _0x5885fc}from'../../../utils/common-translations';export default class Nt extends _0x8c1530{constructor(_0x36b0f8){super(_0x36b0f8);const _0x4c9f98=this['bindTemplate'];this['set']('count'),this[_0x2d24('0x0')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4c9f98['to']('count',_0x26f0ec=>_0x5885fc(_0x36b0f8,'NUMBER_OF_COMMENTS',_0x26f0ec))}]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x32cf=['set','element','ck-annotation__content','div','change:content','ck-comment__content','innerHTML'];(function(_0x128341,_0x32cf94){var _0x311496=function(_0x1c2fc){while(--_0x1c2fc){_0x128341['push'](_0x128341['shift']());}};_0x311496(++_0x32cf94);}(_0x32cf,0xb1));var _0x3114=function(_0x128341,_0x32cf94){_0x128341=_0x128341-0x0;var _0x311496=_0x32cf[_0x128341];return _0x311496;};import{View as _0xba6806}from'ckeditor5/src/ui';export default class Et extends _0xba6806{constructor(_0x113511){super(_0x113511),this[_0x3114('0x5')]('content',''),this['setTemplate']({'tag':_0x3114('0x1'),'attributes':{'class':[_0x3114('0x3'),_0x3114('0x0')]}});}['render'](){super['render'](),this['on'](_0x3114('0x2'),(_0x486a86,_0x4e87db,_0x40bbbd)=>{this['element'][_0x3114('0x4')]=_0x40bbbd;}),this[_0x3114('0x6')]['innerHTML']=this['content'];}}
23
+ var _0x4161=['ck-comment__content','setTemplate','ck-annotation__content','set','render','content','innerHTML','div','element','change:content'];(function(_0x57c9b0,_0x416172){var _0x569973=function(_0xe95d0f){while(--_0xe95d0f){_0x57c9b0['push'](_0x57c9b0['shift']());}};_0x569973(++_0x416172);}(_0x4161,0x1d5));var _0x5699=function(_0x57c9b0,_0x416172){_0x57c9b0=_0x57c9b0-0x0;var _0x569973=_0x4161[_0x57c9b0];return _0x569973;};import{View as _0xfbcb12}from'ckeditor5/src/ui';export default class Tt extends _0xfbcb12{constructor(_0x2646a0){super(_0x2646a0),this[_0x5699('0x4')](_0x5699('0x6'),''),this[_0x5699('0x2')]({'tag':_0x5699('0x8'),'attributes':{'class':[_0x5699('0x1'),_0x5699('0x3')]}});}[_0x5699('0x5')](){super[_0x5699('0x5')](),this['on'](_0x5699('0x0'),(_0x32b3be,_0x43301e,_0x5d5e4a)=>{this['element']['innerHTML']=_0x5d5e4a;}),this[_0x5699('0x9')][_0x5699('0x7')]=this['content'];}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3381=['focus','focusTracker','set','document','cancel','then','editor','placeholder','length','cancelButtonView','create','_initializeFocusCycling','render','TOO_LONG_COMMENT_ALERT','fire','low','_createSubmitButton','label','view','extendTemplate','model','check','createEditor','icon','getData','editorReady','_isDestroyed','div','element','_editorCreationPromise','Cancel','tab','listenTo','isEnabled','submitButtonView','_createCancelButton','focusPrevious','Reply...','firstChild','execute','disabledSubmit','initialData','destroy','bindTemplate','showButtons','focusNext','change','Submit','ck-comment__input-actions--submit','add','_editorConfig','keystrokes','value','setData'];(function(_0x19b8be,_0x33812d){const _0x3bec51=function(_0x1bc562){while(--_0x1bc562){_0x19b8be['push'](_0x19b8be['shift']());}};_0x3bec51(++_0x33812d);}(_0x3381,0xd0));const _0x3bec=function(_0x19b8be,_0x33812d){_0x19b8be=_0x19b8be-0x0;let _0x3bec51=_0x3381[_0x19b8be];return _0x3bec51;};import{View as _0x375d5e,ViewCollection as _0x9dcf2e,FocusCycler as _0x2fc0a9,ButtonView as _0x4fd345}from'ckeditor5/src/ui';import{FocusTracker as _0x3d2dd3,KeystrokeHandler as _0x19e5b3}from'ckeditor5/src/utils';import{icons as _0x366d18}from'ckeditor5/src/core';import _0x5bddbc from'../commenteditor/commenteditor';import{getTranslation as _0x53cbcc}from'../../../utils/common-translations';export default class Tt extends _0x375d5e{constructor(_0x263379,_0x3271b8={}){super(_0x263379),this[_0x3bec('0xe')]=null,this[_0x3bec('0x4')]=_0x3271b8,this['keystrokes']=new _0x19e5b3(),this[_0x3bec('0x9')]=new _0x3d2dd3(),this[_0x3bec('0xa')](_0x3bec('0x6'),_0x3271b8[_0x3bec('0x31')]||''),this[_0x3bec('0xa')](_0x3bec('0x30'),!0x1),this['set'](_0x3bec('0x34'),!0x0),this['set']('placeholder',_0x53cbcc(_0x263379,_0x3bec('0x2d'))),this[_0x3bec('0x2a')]=this[_0x3bec('0x18')](),this[_0x3bec('0x11')]=this[_0x3bec('0x2b')](),this['setTemplate']({'tag':_0x3bec('0x23'),'attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this[_0x3bec('0x33')]['if']('showButtons','ck-comment__input-actions--active')]},'children':[this[_0x3bec('0x2a')],this[_0x3bec('0x11')]]}]}),this[_0x3bec('0x5')][_0x3bec('0xa')]('Esc',(_0x5ee841,_0x33a996)=>{this[_0x3bec('0x11')]['fire']('execute'),_0x33a996();}),this['on']('submit',(_0x3dcdca,_0x4d9b9c)=>{_0x4d9b9c[_0x3bec('0x10')]>0xfde8?(alert(_0x53cbcc(_0x263379,_0x3bec('0x15'),[_0x4d9b9c[_0x3bec('0x10')],0xfde8])),_0x3dcdca['stop']()):this[_0x3bec('0xe')][_0x3bec('0x7')]('');},{'priority':'high'});}[_0x3bec('0x14')](){super[_0x3bec('0x14')](),this[_0x3bec('0x5')][_0x3bec('0x28')](this['element']),this[_0x3bec('0x9')][_0x3bec('0x3')](this[_0x3bec('0x24')]);}[_0x3bec('0x1e')](){return this[_0x3bec('0xe')]||(this[_0x3bec('0xe')]=new _0x5bddbc(this[_0x3bec('0x4')]),this[_0x3bec('0x25')]=this[_0x3bec('0xe')][_0x3bec('0x12')]()[_0x3bec('0xd')](()=>{this[_0x3bec('0x22')]||(this[_0x3bec('0x24')]['insertBefore'](this[_0x3bec('0xe')]['ui'][_0x3bec('0x24')],this[_0x3bec('0x24')][_0x3bec('0x2e')]),this[_0x3bec('0xe')][_0x3bec('0x1c')][_0x3bec('0xb')]['on'](_0x3bec('0x0'),()=>this['value']=this[_0x3bec('0xe')][_0x3bec('0x20')]()),this[_0x3bec('0xe')]['bind'](_0x3bec('0xf'))['to'](this),this[_0x3bec('0x13')](this[_0x3bec('0xe')]),this[_0x3bec('0x16')](_0x3bec('0x21')));})),this[_0x3bec('0x25')];}[_0x3bec('0x8')](){this[_0x3bec('0xe')]&&this[_0x3bec('0xe')][_0x3bec('0x8')]();}async[_0x3bec('0x32')](){this[_0x3bec('0x22')]||(this[_0x3bec('0x22')]=!0x0,this[_0x3bec('0xe')]&&(await this[_0x3bec('0x25')],await this['editor']['destroy']()),await super['destroy']());}[_0x3bec('0x18')](){const {locale:_0x6b3532}=this,_0x21b13b=new _0x4fd345(_0x6b3532);return _0x21b13b['extendTemplate']({'attributes':{'class':[_0x3bec('0x2')]}}),_0x21b13b[_0x3bec('0x19')]=_0x53cbcc(_0x6b3532,_0x3bec('0x1')),_0x21b13b[_0x3bec('0x1f')]=_0x366d18[_0x3bec('0x1d')],_0x21b13b['on'](_0x3bec('0x2f'),()=>{this['fire']('submit',this[_0x3bec('0x6')]);}),_0x21b13b['bind'](_0x3bec('0x29'))['to'](this,_0x3bec('0x6'),this,'disabledSubmit',(_0x5dba80,_0x1b4ad3)=>!_0x1b4ad3&&!!_0x5dba80['trim']()),_0x21b13b;}[_0x3bec('0x2b')](){const {locale:_0x317743}=this,_0x5a1e46=new _0x4fd345(_0x317743);return _0x5a1e46[_0x3bec('0x1b')]({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x5a1e46[_0x3bec('0x19')]=_0x53cbcc(_0x317743,_0x3bec('0x26')),_0x5a1e46['icon']=_0x366d18['cancel'],_0x5a1e46['on'](_0x3bec('0x2f'),()=>{this[_0x3bec('0xe')]['setData'](''),this[_0x3bec('0x16')](_0x3bec('0xc'));}),_0x5a1e46;}[_0x3bec('0x13')](_0x39ceae){const _0x46d445=this[_0x3bec('0x9')],_0x33327f=new _0x9dcf2e();[_0x39ceae['ui'][_0x3bec('0x1a')],this[_0x3bec('0x2a')],this[_0x3bec('0x11')]]['forEach'](_0x50b7e5=>{_0x33327f[_0x3bec('0x3')](_0x50b7e5),_0x46d445[_0x3bec('0x3')](_0x50b7e5['element']);});const _0x3c4a47=new _0x2fc0a9({'focusables':_0x33327f,'focusTracker':_0x46d445});this[_0x3bec('0x5')][_0x3bec('0xa')](_0x3bec('0x27'),(_0x4cc14f,_0xb97fc8)=>{_0x3c4a47[_0x3bec('0x35')](),_0xb97fc8();},{'priority':_0x3bec('0x17')}),this[_0x3bec('0x5')][_0x3bec('0xa')]('shift\x20+\x20tab',(_0x5ca99e,_0x192b02)=>{_0x3c4a47[_0x3bec('0x2c')](),_0x192b02();},{'priority':_0x3bec('0x17')});}}
23
+ const _0x14d3=['isEnabled','createEditor','length','_editorConfig','_createCancelButton','listenTo','ck-comment__input-actions--active','fire','editor','TOO_LONG_COMMENT_ALERT','placeholder','getData','_editorCreationPromise','Submit','destroy','label','bindTemplate','focus','document','render','model','Esc','then','value','trim','initialData','stop','div','bind','_createSubmitButton','focusNext','create','extendTemplate','check','add','keystrokes','forEach','insertBefore','cancelButtonView','setData','icon','focusPrevious','element','low','set','_initializeFocusCycling','ck-comment__input-actions--cancel','focusTracker','execute','submit','submitButtonView','_isDestroyed','view','showButtons','ck-comment__input-wrapper','cancel','firstChild','disabledSubmit'];(function(_0x22d4ae,_0x14d374){const _0x1259b6=function(_0x4041d7){while(--_0x4041d7){_0x22d4ae['push'](_0x22d4ae['shift']());}};_0x1259b6(++_0x14d374);}(_0x14d3,0xf6));const _0x1259=function(_0x22d4ae,_0x14d374){_0x22d4ae=_0x22d4ae-0x0;let _0x1259b6=_0x14d3[_0x22d4ae];return _0x1259b6;};import{View as _0x5d0f5f,ViewCollection as _0x584e43,FocusCycler as _0x504c2f,ButtonView as _0x5b7371}from'ckeditor5/src/ui';import{FocusTracker as _0x7d6fe9,KeystrokeHandler as _0x38a999}from'ckeditor5/src/utils';import{icons as _0x5025cf}from'ckeditor5/src/core';import _0x2a435d from'../commenteditor/commenteditor';import{getTranslation as _0x4525fb}from'../../../utils/common-translations';export default class St extends _0x5d0f5f{constructor(_0x24f5b5,_0x5634dc={}){super(_0x24f5b5),this[_0x1259('0x34')]=null,this[_0x1259('0x2f')]=_0x5634dc,this[_0x1259('0x15')]=new _0x38a999(),this[_0x1259('0x21')]=new _0x7d6fe9(),this['set']('value',_0x5634dc[_0x1259('0xb')]||''),this[_0x1259('0x1e')](_0x1259('0x2b'),!0x1),this[_0x1259('0x1e')]('showButtons',!0x0),this[_0x1259('0x1e')](_0x1259('0x36'),_0x4525fb(_0x24f5b5,'Reply...')),this[_0x1259('0x24')]=this[_0x1259('0xf')](),this[_0x1259('0x18')]=this[_0x1259('0x30')](),this['setTemplate']({'tag':_0x1259('0xd'),'attributes':{'class':[_0x1259('0x28')]},'children':[{'tag':_0x1259('0xd'),'attributes':{'class':['ck-comment__input-actions',this[_0x1259('0x2')]['if'](_0x1259('0x27'),_0x1259('0x32'))]},'children':[this[_0x1259('0x24')],this[_0x1259('0x18')]]}]}),this[_0x1259('0x15')][_0x1259('0x1e')](_0x1259('0x7'),(_0x240215,_0xe9d149)=>{this['cancelButtonView'][_0x1259('0x33')](_0x1259('0x22')),_0xe9d149();}),this['on'](_0x1259('0x23'),(_0x59f5a0,_0x5c8660)=>{_0x5c8660['length']>0xfde8?(alert(_0x4525fb(_0x24f5b5,_0x1259('0x35'),[_0x5c8660[_0x1259('0x2e')],0xfde8])),_0x59f5a0[_0x1259('0xc')]()):this[_0x1259('0x34')][_0x1259('0x19')]('');},{'priority':'high'});}[_0x1259('0x5')](){super[_0x1259('0x5')](),this[_0x1259('0x15')][_0x1259('0x31')](this[_0x1259('0x1c')]),this[_0x1259('0x21')]['add'](this[_0x1259('0x1c')]);}[_0x1259('0x2d')](){return this['editor']||(this['editor']=new _0x2a435d(this[_0x1259('0x2f')]),this[_0x1259('0x38')]=this['editor'][_0x1259('0x11')]()[_0x1259('0x8')](()=>{this[_0x1259('0x25')]||(this[_0x1259('0x1c')][_0x1259('0x17')](this[_0x1259('0x34')]['ui'][_0x1259('0x1c')],this[_0x1259('0x1c')][_0x1259('0x2a')]),this[_0x1259('0x34')][_0x1259('0x6')][_0x1259('0x4')]['on']('change',()=>this[_0x1259('0x9')]=this[_0x1259('0x34')][_0x1259('0x37')]()),this[_0x1259('0x34')][_0x1259('0xe')](_0x1259('0x36'))['to'](this),this[_0x1259('0x1f')](this[_0x1259('0x34')]),this[_0x1259('0x33')]('editorReady'));})),this['_editorCreationPromise'];}['focus'](){this[_0x1259('0x34')]&&this[_0x1259('0x34')][_0x1259('0x3')]();}async['destroy'](){this[_0x1259('0x25')]||(this[_0x1259('0x25')]=!0x0,this[_0x1259('0x34')]&&(await this[_0x1259('0x38')],await this[_0x1259('0x34')][_0x1259('0x0')]()),await super[_0x1259('0x0')]());}[_0x1259('0xf')](){const {locale:_0x163e2d}=this,_0xf42c69=new _0x5b7371(_0x163e2d);return _0xf42c69[_0x1259('0x12')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0xf42c69['label']=_0x4525fb(_0x163e2d,_0x1259('0x39')),_0xf42c69[_0x1259('0x1a')]=_0x5025cf[_0x1259('0x13')],_0xf42c69['on'](_0x1259('0x22'),()=>{this['fire'](_0x1259('0x23'),this['value']);}),_0xf42c69[_0x1259('0xe')](_0x1259('0x2c'))['to'](this,_0x1259('0x9'),this,_0x1259('0x2b'),(_0x13288a,_0x7873af)=>!_0x7873af&&!!_0x13288a[_0x1259('0xa')]()),_0xf42c69;}[_0x1259('0x30')](){const {locale:_0x320477}=this,_0x4e8a7b=new _0x5b7371(_0x320477);return _0x4e8a7b[_0x1259('0x12')]({'attributes':{'class':[_0x1259('0x20')]}}),_0x4e8a7b[_0x1259('0x1')]=_0x4525fb(_0x320477,'Cancel'),_0x4e8a7b[_0x1259('0x1a')]=_0x5025cf[_0x1259('0x29')],_0x4e8a7b['on']('execute',()=>{this[_0x1259('0x34')][_0x1259('0x19')](''),this['fire'](_0x1259('0x29'));}),_0x4e8a7b;}[_0x1259('0x1f')](_0x363ddc){const _0xf8fb83=this[_0x1259('0x21')],_0x1c5138=new _0x584e43();[_0x363ddc['ui'][_0x1259('0x26')],this[_0x1259('0x24')],this[_0x1259('0x18')]][_0x1259('0x16')](_0x5717d4=>{_0x1c5138['add'](_0x5717d4),_0xf8fb83[_0x1259('0x14')](_0x5717d4['element']);});const _0x3bf77a=new _0x504c2f({'focusables':_0x1c5138,'focusTracker':_0xf8fb83});this['keystrokes'][_0x1259('0x1e')]('tab',(_0x52bf1d,_0x5ddd96)=>{_0x3bf77a[_0x1259('0x10')](),_0x5ddd96();},{'priority':_0x1259('0x1d')}),this[_0x1259('0x15')][_0x1259('0x1e')]('shift\x20+\x20tab',(_0x244efa,_0x53bfbb)=>{_0x3bf77a[_0x1259('0x1b')](),_0x53bfbb();},{'priority':_0x1259('0x1d')});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d23=['destroy','remove','weight','_rearrangeCollapse','createCollection','stopListening','formatDateTime','_config','delete','_shouldCollapse','listenTo','editorConfig','ck-thread__comments','count','from','locale','render','set','_collapsedCommentsView','_handleRemoveCommentModel','maxThreadTotalWeight','isEditMode','collapse','_model','_updateHasDirtyComment','focus','hasDirtyComment','maxCommentCharsWhenCollapsed','add','isActive','equal','length','expand','delegate','refreshVisibleViews','CommentView','_rearrangeExpand','visibleViews','commentViews','some','change:isEditMode','maxCommentsWhenCollapsed','_handleNewCommentModel','comments'];(function(_0x1edab2,_0x5d235d){const _0x2062d0=function(_0x28cabb){while(--_0x28cabb){_0x1edab2['push'](_0x1edab2['shift']());}};_0x2062d0(++_0x5d235d);}(_0x5d23,0xe5));const _0x2062=function(_0x1edab2,_0x5d235d){_0x1edab2=_0x1edab2-0x0;let _0x2062d0=_0x5d23[_0x1edab2];return _0x2062d0;};import{View as _0x1179f4}from'ckeditor5/src/ui';import{diff as _0x17e12e,Collection as _0x4cf96c}from'ckeditor5/src/utils';import _0x3a34bf from'./collapsedcommentsview';export default class dt extends _0x1179f4{constructor(_0x4c421a,_0x82e161,_0xaa472){super(_0x4c421a),this[_0x2062('0x8')](_0x2062('0x11'),!0x1),this[_0x2062('0x8')](_0x2062('0x16'),_0x82e161[_0x2062('0x22')][_0x2062('0x16')]),this[_0x2062('0x8')](_0x2062('0x14'),!0x1),this[_0x2062('0xe')]=_0x82e161,this['_config']=_0xaa472,this[_0x2062('0x1d')]=this[_0x2062('0x27')](),this[_0x2062('0x1c')]=this[_0x2062('0x27')](),this['_collapsedCommentsView']=new _0x3a34bf(_0x4c421a),this[_0x2062('0x9')]['bind'](_0x2062('0x4'))['to'](this,_0x2062('0x16'),_0x5cb69c=>_0x5cb69c-this[_0x2062('0x2a')][_0x2062('0x20')]);for(const _0x453d94 of _0x82e161[_0x2062('0x22')])this[_0x2062('0x21')](_0x453d94);this[_0x2062('0x1')](_0x82e161[_0x2062('0x22')],_0x2062('0x13'),(_0x22bd76,_0x506222)=>{this[_0x2062('0x16')]++,this['_handleNewCommentModel'](_0x506222),this[_0x2062('0x19')]();}),this[_0x2062('0x1')](_0x82e161['comments'],_0x2062('0x24'),(_0x35dc19,_0x240e9a)=>{this[_0x2062('0x16')]--,this[_0x2062('0xa')](_0x240e9a),this[_0x2062('0x19')]();}),this[_0x2062('0x1')](_0x82e161,'commentUpdated',()=>this['refreshVisibleViews']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':[_0x2062('0x3')]},'children':this['visibleViews']});}get[_0x2062('0x0')](){return this[_0x2062('0xe')][_0x2062('0x25')]>this[_0x2062('0x2a')][_0x2062('0xb')]&&!this['isActive']&&!this[_0x2062('0x11')];}['render'](){super[_0x2062('0x7')](),this[_0x2062('0x19')]();}['focus'](){this['element'][_0x2062('0x10')]();}['destroy'](){this[_0x2062('0x9')][_0x2062('0x23')]();for(const _0x2ece87 of this[_0x2062('0x1d')])_0x2ece87[_0x2062('0x23')]();super[_0x2062('0x23')]();}['refreshVisibleViews'](){this[_0x2062('0x0')]?this[_0x2062('0x26')]():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x4b6445){const _0x43aa01=new this[(_0x2062('0x2a'))][(_0x2062('0x1a'))](this[_0x2062('0x6')],_0x4b6445,{'maxCommentCharsWhenCollapsed':this[_0x2062('0x2a')][_0x2062('0x12')],'formatDateTime':this[_0x2062('0x2a')][_0x2062('0x29')],'editorConfig':this[_0x2062('0x2a')][_0x2062('0x2')]});_0x43aa01['viewUid']=_0x4b6445['id'],_0x43aa01['delegate']('removeComment')['to'](this),_0x43aa01[_0x2062('0x18')]('updateComment')['to'](this),this['listenTo'](_0x43aa01,_0x2062('0x1f'),()=>this[_0x2062('0xf')]()),this['commentViews']['add'](_0x43aa01);}['_handleRemoveCommentModel'](_0x5b7c46){const _0x44b4ba=this[_0x2062('0x1d')][_0x2062('0x24')](_0x5b7c46['id']);this[_0x2062('0x28')](_0x44b4ba),_0x44b4ba[_0x2062('0xc')]&&this[_0x2062('0xf')](),_0x44b4ba[_0x2062('0x23')]();}['_updateHasDirtyComment'](){this[_0x2062('0x11')]=Array['from'](this[_0x2062('0x1d')])[_0x2062('0x1e')](_0x303650=>_0x303650[_0x2062('0xc')]);}[_0x2062('0x26')](){const _0x3e5a34=function(_0x23fc9c){const _0x34c6b4=new _0x4cf96c();for(const _0x88f287 of _0x23fc9c)_0x34c6b4[_0x2062('0x13')](_0x88f287);return _0x34c6b4;}(this[_0x2062('0x1d')]),_0x12a157=this[_0x2062('0x9')]['count'];for(let _0xe2053a=0x1;_0xe2053a<=_0x12a157;_0xe2053a++)_0x3e5a34[_0x2062('0x24')](0x1);for(const _0x37f9af of _0x3e5a34)_0x37f9af[_0x2062('0xd')]();_0x12a157>0x0&&_0x3e5a34['add'](this[_0x2062('0x9')],0x1),Wt(_0x17e12e(Array['from'](this[_0x2062('0x1c')]),Array[_0x2062('0x5')](_0x3e5a34)),this[_0x2062('0x1c')],_0x3e5a34);}[_0x2062('0x1b')](){Wt(_0x17e12e(Array[_0x2062('0x5')](this[_0x2062('0x1c')]),Array[_0x2062('0x5')](this[_0x2062('0x1d')])),this[_0x2062('0x1c')],this[_0x2062('0x1d')]);for(const _0x1e899a of this[_0x2062('0x1c')])_0x1e899a[_0x2062('0x17')]();}}function Wt(_0xe62e21,_0x2c80c0,_0x2c9cc5){let _0x1d736e=0x0;for(const _0x269fed of _0xe62e21)switch(_0x269fed){case'insert':_0x2c80c0['add'](_0x2c9cc5['get'](_0x1d736e),_0x1d736e),_0x1d736e++;break;case _0x2062('0x2b'):_0x2c80c0[_0x2062('0x24')](_0x1d736e);break;case _0x2062('0x15'):_0x1d736e++;}}
23
+ const _0x77b5=['from','formatDateTime','element','createCollection','_collapsedCommentsView','_config','render','maxCommentCharsWhenCollapsed','destroy','delete','stopListening','equal','removeComment','_handleRemoveCommentModel','comments','change:isActive','focus','count','set','commentViews','listenTo','refreshVisibleViews','get','length','updateComment','hasDirtyComment','remove','maxThreadTotalWeight','add','_shouldCollapse','insert','_rearrangeCollapse','_updateHasDirtyComment','_handleNewCommentModel','_model','visibleViews','setTemplate','ck-thread__comments','delegate','maxCommentsWhenCollapsed','expand','collapse','isEditMode','editorConfig'];(function(_0x5aec50,_0x77b595){const _0x2a30cd=function(_0x41078d){while(--_0x41078d){_0x5aec50['push'](_0x5aec50['shift']());}};_0x2a30cd(++_0x77b595);}(_0x77b5,0x1e2));const _0x2a30=function(_0x5aec50,_0x77b595){_0x5aec50=_0x5aec50-0x0;let _0x2a30cd=_0x77b5[_0x5aec50];return _0x2a30cd;};import{View as _0x247425}from'ckeditor5/src/ui';import{diff as _0x52b6f4,Collection as _0x2ac3d6}from'ckeditor5/src/utils';import _0xb79c17 from'./collapsedcommentsview';export default class dt extends _0x247425{constructor(_0x3c84df,_0x66a886,_0x46d5d3){super(_0x3c84df),this['set']('hasDirtyComment',!0x1),this[_0x2a30('0x14')](_0x2a30('0x19'),_0x66a886[_0x2a30('0x10')][_0x2a30('0x19')]),this[_0x2a30('0x14')]('isActive',!0x1),this[_0x2a30('0x24')]=_0x66a886,this[_0x2a30('0x7')]=_0x46d5d3,this[_0x2a30('0x15')]=this[_0x2a30('0x5')](),this[_0x2a30('0x25')]=this['createCollection'](),this['_collapsedCommentsView']=new _0xb79c17(_0x3c84df),this[_0x2a30('0x6')]['bind']('count')['to'](this,_0x2a30('0x19'),_0x37f9e6=>_0x37f9e6-this[_0x2a30('0x7')][_0x2a30('0x29')]);for(const _0x117894 of _0x66a886[_0x2a30('0x10')])this[_0x2a30('0x23')](_0x117894);this[_0x2a30('0x16')](_0x66a886[_0x2a30('0x10')],_0x2a30('0x1e'),(_0x2fb22c,_0x2b667c)=>{this[_0x2a30('0x19')]++,this[_0x2a30('0x23')](_0x2b667c),this['refreshVisibleViews']();}),this['listenTo'](_0x66a886[_0x2a30('0x10')],'remove',(_0x929221,_0x1667b7)=>{this[_0x2a30('0x19')]--,this[_0x2a30('0xf')](_0x1667b7),this['refreshVisibleViews']();}),this[_0x2a30('0x16')](_0x66a886,'commentUpdated',()=>this[_0x2a30('0x17')]()),this['on'](_0x2a30('0x11'),()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this[_0x2a30('0x17')]()),this[_0x2a30('0x26')]({'tag':'ul','attributes':{'class':[_0x2a30('0x27')]},'children':this[_0x2a30('0x25')]});}get[_0x2a30('0x1f')](){return this['_model']['weight']>this[_0x2a30('0x7')][_0x2a30('0x1d')]&&!this['isActive']&&!this[_0x2a30('0x1b')];}[_0x2a30('0x8')](){super[_0x2a30('0x8')](),this[_0x2a30('0x17')]();}[_0x2a30('0x12')](){this[_0x2a30('0x4')][_0x2a30('0x12')]();}[_0x2a30('0xa')](){this[_0x2a30('0x6')]['destroy']();for(const _0x59a2ab of this['commentViews'])_0x59a2ab[_0x2a30('0xa')]();super[_0x2a30('0xa')]();}['refreshVisibleViews'](){this['_shouldCollapse']?this[_0x2a30('0x21')]():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x6b9ba9){const _0x5158b6=new this[(_0x2a30('0x7'))]['CommentView'](this['locale'],_0x6b9ba9,{'maxCommentCharsWhenCollapsed':this['_config'][_0x2a30('0x9')],'formatDateTime':this[_0x2a30('0x7')][_0x2a30('0x3')],'editorConfig':this['_config'][_0x2a30('0x1')]});_0x5158b6['viewUid']=_0x6b9ba9['id'],_0x5158b6['delegate'](_0x2a30('0xe'))['to'](this),_0x5158b6[_0x2a30('0x28')](_0x2a30('0x1a'))['to'](this),this['listenTo'](_0x5158b6,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this[_0x2a30('0x15')][_0x2a30('0x1e')](_0x5158b6);}['_handleRemoveCommentModel'](_0x581e6a){const _0x461bea=this[_0x2a30('0x15')]['remove'](_0x581e6a['id']);this[_0x2a30('0xc')](_0x461bea),_0x461bea[_0x2a30('0x0')]&&this[_0x2a30('0x22')](),_0x461bea[_0x2a30('0xa')]();}[_0x2a30('0x22')](){this['hasDirtyComment']=Array['from'](this[_0x2a30('0x15')])['some'](_0x4a44f5=>_0x4a44f5['isEditMode']);}[_0x2a30('0x21')](){const _0x331474=function(_0x3acb45){const _0x3ee11d=new _0x2ac3d6();for(const _0x2ef29b of _0x3acb45)_0x3ee11d[_0x2a30('0x1e')](_0x2ef29b);return _0x3ee11d;}(this[_0x2a30('0x15')]),_0x925e71=this[_0x2a30('0x6')][_0x2a30('0x13')];for(let _0x228e3b=0x1;_0x228e3b<=_0x925e71;_0x228e3b++)_0x331474[_0x2a30('0x1c')](0x1);for(const _0x2026b0 of _0x331474)_0x2026b0[_0x2a30('0x2b')]();_0x925e71>0x0&&_0x331474[_0x2a30('0x1e')](this[_0x2a30('0x6')],0x1),Wt(_0x52b6f4(Array[_0x2a30('0x2')](this['visibleViews']),Array[_0x2a30('0x2')](_0x331474)),this['visibleViews'],_0x331474);}['_rearrangeExpand'](){Wt(_0x52b6f4(Array['from'](this[_0x2a30('0x25')]),Array[_0x2a30('0x2')](this[_0x2a30('0x15')])),this[_0x2a30('0x25')],this[_0x2a30('0x15')]);for(const _0x50a5ca of this[_0x2a30('0x25')])_0x50a5ca[_0x2a30('0x2a')]();}}function Wt(_0x5279d9,_0x123614,_0xa15ff3){let _0x3b4d2b=0x0;for(const _0x244eae of _0x5279d9)switch(_0x244eae){case _0x2a30('0x20'):_0x123614[_0x2a30('0x1e')](_0xa15ff3[_0x2a30('0x18')](_0x3b4d2b),_0x3b4d2b),_0x3b4d2b++;break;case _0x2a30('0xb'):_0x123614[_0x2a30('0x1c')](_0x3b4d2b);break;case _0x2a30('0xd'):_0x3b4d2b++;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5ddf=['bind','value','ck-thread__user','then','ck-comment__input-container--active','set','userView','bindTemplate','editor','showInput','ck-thread__input','div','setTemplate','ck-comment__input-container','extendTemplate','change:showInput','commentInputView','destroy'];(function(_0x2345e6,_0x5ddf69){var _0x32b41a=function(_0x4242e7){while(--_0x4242e7){_0x2345e6['push'](_0x2345e6['shift']());}};_0x32b41a(++_0x5ddf69);}(_0x5ddf,0xf8));var _0x32b4=function(_0x2345e6,_0x5ddf69){_0x2345e6=_0x2345e6-0x0;var _0x32b41a=_0x5ddf[_0x2345e6];return _0x32b41a;};import{View as _0xc02c88}from'ckeditor5/src/ui';import _0x1934c1 from'./commentinputview';import{UserView as _0x7e57b9}from'ckeditor5-collaboration/src/collaboration-core';export default class ut extends _0xc02c88{constructor(_0x504f34,_0x45301e,_0x199702){super(_0x504f34),this['commentInputView']=new _0x1934c1(_0x504f34,_0x199702),this[_0x32b4('0x2')][_0x32b4('0x4')]('showButtons')['to'](this[_0x32b4('0x2')]['focusTracker'],'isFocused',this[_0x32b4('0x2')],_0x32b4('0x5'),(_0x576840,_0x5b99e9)=>_0x576840||!!_0x5b99e9),this[_0x32b4('0x9')](_0x32b4('0xd'),!0x1),this['on'](_0x32b4('0x1'),()=>{this[_0x32b4('0xd')]&&!this[_0x32b4('0x2')][_0x32b4('0xc')]&&this[_0x32b4('0x2')]['createEditor']();}),this['userView']=new _0x7e57b9(_0x504f34,_0x45301e),this[_0x32b4('0xa')][_0x32b4('0x0')]({'attributes':{'class':_0x32b4('0x6')}}),this['commentInputView'][_0x32b4('0x0')]({'attributes':{'class':_0x32b4('0xe')}}),this[_0x32b4('0x10')]({'tag':_0x32b4('0xf'),'attributes':{'class':[_0x32b4('0x11'),this[_0x32b4('0xb')]['if'](_0x32b4('0xd'),_0x32b4('0x8'))]},'children':[this[_0x32b4('0xa')],this[_0x32b4('0x2')]]});}[_0x32b4('0x3')](){return this['commentInputView']['destroy']()[_0x32b4('0x7')](()=>super[_0x32b4('0x3')]());}}
23
+ var _0x4830=['commentInputView','editor','userView','bind','ck-thread__input','extendTemplate','ck-comment__input-container','createEditor','set','change:showInput','showButtons','isFocused','value','then','showInput','div','setTemplate','destroy','bindTemplate','focusTracker'];(function(_0x23a24d,_0x4830ca){var _0x27fb77=function(_0x21eacc){while(--_0x21eacc){_0x23a24d['push'](_0x23a24d['shift']());}};_0x27fb77(++_0x4830ca);}(_0x4830,0xf9));var _0x27fb=function(_0x23a24d,_0x4830ca){_0x23a24d=_0x23a24d-0x0;var _0x27fb77=_0x4830[_0x23a24d];return _0x27fb77;};import{View as _0x44c319}from'ckeditor5/src/ui';import _0x7d30e2 from'./commentinputview';import{UserView as _0x2bdfb8}from'ckeditor5-collaboration/src/collaboration-core';export default class ut extends _0x44c319{constructor(_0xd609cc,_0x4e4d20,_0x529d0c){super(_0xd609cc),this[_0x27fb('0xb')]=new _0x7d30e2(_0xd609cc,_0x529d0c),this['commentInputView'][_0x27fb('0xe')](_0x27fb('0x1'))['to'](this['commentInputView'][_0x27fb('0xa')],_0x27fb('0x2'),this[_0x27fb('0xb')],_0x27fb('0x3'),(_0x24cb1e,_0x266c0f)=>_0x24cb1e||!!_0x266c0f),this[_0x27fb('0x13')](_0x27fb('0x5'),!0x1),this['on'](_0x27fb('0x0'),()=>{this['showInput']&&!this['commentInputView'][_0x27fb('0xc')]&&this['commentInputView'][_0x27fb('0x12')]();}),this[_0x27fb('0xd')]=new _0x2bdfb8(_0xd609cc,_0x4e4d20),this['userView'][_0x27fb('0x10')]({'attributes':{'class':'ck-thread__user'}}),this[_0x27fb('0xb')][_0x27fb('0x10')]({'attributes':{'class':_0x27fb('0xf')}}),this[_0x27fb('0x7')]({'tag':_0x27fb('0x6'),'attributes':{'class':[_0x27fb('0x11'),this[_0x27fb('0x9')]['if'](_0x27fb('0x5'),'ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['destroy'](){return this['commentInputView'][_0x27fb('0x8')]()[_0x27fb('0x4')](()=>super[_0x27fb('0x8')]());}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52e1=['commentsListView','isConfirm','ck-thread--','setTemplate','render','locale','querySelector','element','ck-thread__container','then','commentViews','div','Delete\x20comment\x20thread?','removeCommentThread','Write\x20a\x20comment...','high','getTemplate','isActive','.ck-thread__container','stop','set','cancelConfirm','listenTo','length','ck-thread--active','_cancelAllConfirms','execute','ck-thread--remove-confirmation','remove','commentThreadInputView','fire','change:isActive','unbind','containerElement','showConfirm','removeButton','_bindFirstCommentView','placeholder','actionIndicator','add','bindTemplate','_model','_boundFirstCommentView'];(function(_0x33b6a5,_0x52e1a0){const _0x596bf4=function(_0x3ab98f){while(--_0x3ab98f){_0x33b6a5['push'](_0x33b6a5['shift']());}};_0x596bf4(++_0x52e1a0);}(_0x52e1,0x13d));const _0x596b=function(_0x33b6a5,_0x52e1a0){_0x33b6a5=_0x33b6a5-0x0;let _0x596bf4=_0x52e1[_0x33b6a5];return _0x596bf4;};import{mix as _0x208bff}from'ckeditor5/src/utils';import{ConfirmMixin as _0x3f93db}from'ckeditor5-collaboration/src/collaboration-core';import _0x410c91 from'./basecommentthreadview';import{getTranslation as _0x463892}from'../../../utils/common-translations';export default class ot extends _0x410c91{constructor(_0x597a2e,_0x1e159b,_0x558d67,_0x323cb5){super(_0x597a2e,_0x1e159b,_0x558d67,_0x323cb5),this[_0x596b('0x4')](_0x596b('0x16'),null),this[_0x596b('0x11')]=null,this['_boundFirstCommentView']=null,this[_0x596b('0x20')]=_0x597a2e,this[_0x596b('0x1e')](this['getTemplate']()),this['on'](_0x596b('0xf'),(_0x4dcf2e,_0x33e342,_0x2c241d)=>{_0x2c241d||this['_cancelAllConfirms']();}),this[_0x596b('0x6')](this[_0x596b('0x19')],'change:isReadOnly',(_0x1347a7,_0xd06fd,_0x258acc)=>{_0x258acc&&this['_cancelAllConfirms']();}),this[_0x596b('0x7')]>0x0&&this['_bindFirstCommentView'](),this[_0x596b('0x6')](this['commentsListView'][_0x596b('0x25')],_0x596b('0x17'),()=>{this['_bindFirstCommentView']();});}[_0x596b('0x0')](){const _0x45ff81=this[_0x596b('0x18')];return{'tag':_0x596b('0x26'),'attributes':{'class':['ck-thread',_0x45ff81['if'](_0x596b('0x1'),_0x596b('0x8')),_0x45ff81['if'](_0x596b('0x1c'),_0x596b('0xb')),_0x45ff81['to'](_0x596b('0x16'),_0x47f26e=>_0x47f26e?_0x596b('0x1d')+_0x47f26e:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0x596b('0x23')},'children':[this[_0x596b('0x1b')],this[_0x596b('0xd')]]}]};}[_0x596b('0x1f')](){super[_0x596b('0x1f')](),this['containerElement']=this[_0x596b('0x22')][_0x596b('0x21')](_0x596b('0x2'));}[_0x596b('0x9')](){this[_0x596b('0x5')]();for(const _0x1b9a29 of this[_0x596b('0x1b')][_0x596b('0x25')])_0x1b9a29[_0x596b('0x5')]();}[_0x596b('0x14')](){const {locale:_0x5a7f12}=this,_0x505441=this[_0x596b('0x1b')][_0x596b('0x25')]['get'](0x0);_0x505441!==this[_0x596b('0x1a')]&&(this['_boundFirstCommentView']=_0x505441,this[_0x596b('0x10')](_0x596b('0x16')),this['bind'](_0x596b('0x16'))['to'](_0x505441,_0x596b('0x16'),_0x1aeec7=>'remove'===_0x1aeec7?_0x596b('0xc'):null),_0x505441[_0x596b('0x15')]=_0x463892(_0x5a7f12,_0x596b('0x29')),_0x505441[_0x596b('0x13')]['on'](_0x596b('0xa'),_0x452dcb=>{_0x452dcb[_0x596b('0x3')](),this[_0x596b('0x12')](_0x463892(_0x5a7f12,_0x596b('0x27')),this[_0x596b('0x11')])[_0x596b('0x24')](()=>{this[_0x596b('0xe')](_0x596b('0x28'));});},{'priority':_0x596b('0x2a')}));}}_0x208bff(ot,_0x3f93db);
23
+ const _0x23cb=['actionIndicator','ck-thread__container','commentsListView','remove','locale','unbind','_model','fire','ck-thread','commentViews','ck-thread--','execute','change:isActive','Write\x20a\x20comment...','cancelConfirm','placeholder','querySelector','containerElement','stop','element','_boundFirstCommentView','Delete\x20comment\x20thread?','_cancelAllConfirms','bindTemplate','change:isReadOnly','listenTo','set','then','getTemplate','get','ck-thread--remove-confirmation','removeButton','ck-thread--active','div','showConfirm','length','commentThreadInputView','_bindFirstCommentView','render','add','removeCommentThread'];(function(_0x15843f,_0x23cb91){const _0x1708d1=function(_0x5cbc08){while(--_0x5cbc08){_0x15843f['push'](_0x15843f['shift']());}};_0x1708d1(++_0x23cb91);}(_0x23cb,0xbe));const _0x1708=function(_0x15843f,_0x23cb91){_0x15843f=_0x15843f-0x0;let _0x1708d1=_0x23cb[_0x15843f];return _0x1708d1;};import{mix as _0xc6623e}from'ckeditor5/src/utils';import{ConfirmMixin as _0x2638ea}from'ckeditor5-collaboration/src/collaboration-core';import _0xd79136 from'./basecommentthreadview';import{getTranslation as _0x282006}from'../../../utils/common-translations';export default class it extends _0xd79136{constructor(_0x1c6000,_0x281776,_0x369872,_0x24ae9b){super(_0x1c6000,_0x281776,_0x369872,_0x24ae9b),this[_0x1708('0x0')](_0x1708('0xf'),null),this[_0x1708('0x20')]=null,this[_0x1708('0x23')]=null,this[_0x1708('0x13')]=_0x1c6000,this['setTemplate'](this[_0x1708('0x2')]()),this['on'](_0x1708('0x1b'),(_0x1c0f63,_0x346242,_0x95258c)=>{_0x95258c||this['_cancelAllConfirms']();}),this[_0x1708('0x28')](this[_0x1708('0x15')],_0x1708('0x27'),(_0x19ec3e,_0x33c3fb,_0x8c137e)=>{_0x8c137e&&this[_0x1708('0x25')]();}),this[_0x1708('0x9')]>0x0&&this[_0x1708('0xb')](),this[_0x1708('0x28')](this[_0x1708('0x11')][_0x1708('0x18')],_0x1708('0xd'),()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x5ea0ad=this[_0x1708('0x26')];return{'tag':_0x1708('0x7'),'attributes':{'class':[_0x1708('0x17'),_0x5ea0ad['if']('isActive',_0x1708('0x6')),_0x5ea0ad['if']('isConfirm',_0x1708('0x4')),_0x5ea0ad['to'](_0x1708('0xf'),_0x1ed47a=>_0x1ed47a?_0x1708('0x19')+_0x1ed47a:'')],'data-thread-id':this['_model']['id'],'tabindex':-0x1},'children':[{'tag':_0x1708('0x7'),'attributes':{'class':_0x1708('0x10')},'children':[this['commentsListView'],this[_0x1708('0xa')]]}]};}[_0x1708('0xc')](){super['render'](),this['containerElement']=this[_0x1708('0x22')][_0x1708('0x1f')]('.ck-thread__container');}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x51cc5b of this[_0x1708('0x11')][_0x1708('0x18')])_0x51cc5b[_0x1708('0x1d')]();}[_0x1708('0xb')](){const {locale:_0x2efc5a}=this,_0x31a09c=this[_0x1708('0x11')][_0x1708('0x18')][_0x1708('0x3')](0x0);_0x31a09c!==this[_0x1708('0x23')]&&(this[_0x1708('0x23')]=_0x31a09c,this[_0x1708('0x14')](_0x1708('0xf')),this['bind'](_0x1708('0xf'))['to'](_0x31a09c,'actionIndicator',_0x32b5a2=>'remove'===_0x32b5a2?_0x1708('0x12'):null),_0x31a09c[_0x1708('0x1e')]=_0x282006(_0x2efc5a,_0x1708('0x1c')),_0x31a09c[_0x1708('0x5')]['on'](_0x1708('0x1a'),_0x503be5=>{_0x503be5[_0x1708('0x21')](),this[_0x1708('0x8')](_0x282006(_0x2efc5a,_0x1708('0x24')),this[_0x1708('0x20')])[_0x1708('0x1')](()=>{this[_0x1708('0x16')](_0x1708('0xe'));});},{'priority':'high'}));}}_0xc6623e(it,_0x2638ea);