@ckeditor/ckeditor5-comments 35.4.0 → 36.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x2c97=['enableCommand','editor','get','plugins','addCommentThread','RestrictedEditingModeEditing'];(function(_0x207790,_0x2c97f1){const _0x579262=function(_0x502238){while(--_0x502238){_0x207790['push'](_0x207790['shift']());}};_0x579262(++_0x2c97f1);}(_0x2c97,0xec));const _0x5792=function(_0x207790,_0x2c97f1){_0x207790=_0x207790-0x0;let _0x579262=_0x2c97[_0x207790];return _0x579262;};import{Plugin as _0x535fbe}from'ckeditor5/src/core';export default class q extends _0x535fbe{['afterInit'](){const _0x92fbd3=this[_0x5792('0x5')];if(!_0x92fbd3[_0x5792('0x1')]['has'](_0x5792('0x3')))return;_0x92fbd3[_0x5792('0x1')][_0x5792('0x0')](_0x5792('0x3'))[_0x5792('0x4')](_0x5792('0x2'));}}
@@ -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 _0x4700=['plugins','forEach','collaboration_features','map','get','dataInsert','_handleImportedData','Users','commands','execute','listenTo','basic','config','define','importWord.commentsStyles','importWord','editor','collaboration.channelId','afterInit'];(function(_0x3a80ed,_0x4700c8){const _0x37458a=function(_0xda978a){while(--_0xda978a){_0x3a80ed['push'](_0x3a80ed['shift']());}};_0x37458a(++_0x4700c8);}(_0x4700,0x159));const _0x3745=function(_0x3a80ed,_0x4700c8){_0x3a80ed=_0x3a80ed-0x0;let _0x37458a=_0x4700[_0x3a80ed];return _0x37458a;};import{Plugin as _0xa095c3}from'ckeditor5/src/core';import{priorities as _0x3e0004}from'ckeditor5/src/utils';import _0x223d54 from'../commentsrepository';export default class G extends _0xa095c3{constructor(_0x4c1626){super(_0x4c1626),this[_0x3745('0xd')][_0x3745('0x9')][_0x3745('0xa')](_0x3745('0xb'),_0x3745('0x8'));}[_0x3745('0xf')](){const _0x5ab623=this[_0x3745('0xd')],_0x4f5984=_0x5ab623[_0x3745('0x5')][_0x3745('0x1')]('importWord'),_0x1be308=_0x5ab623[_0x3745('0x10')][_0x3745('0x1')](_0x3745('0x4'));_0x4f5984&&(_0x4f5984['on'](_0x3745('0x6'),(_0x575ddb,[,_0x391f18])=>{_0x391f18[_0x3745('0x12')]={'comments':!0x0,'user_id':_0x1be308['me']['id'],'comments_styles':this[_0x3745('0xd')]['config'][_0x3745('0x1')](_0x3745('0xb'))};},{'priority':_0x3e0004['high']+0xa}),this[_0x3745('0x7')](_0x4f5984,_0x3745('0x2'),this[_0x3745('0x3')]));}['_handleImportedData'](_0x4f32bb,_0x4d8ce1){const {comment_threads:_0x5f03c8}=_0x4d8ce1;_0x5f03c8&&_0x5f03c8[_0x3745('0x11')](({thread_id:_0x4ca86f,comments:_0x332bfc})=>{const _0x4d26a0=_0x332bfc[_0x3745('0x0')](({author:_0x84384d,content:_0x1e69de,created_at:_0x7efa6e})=>({'content':_0x1e69de,'authorId':this['editor']['plugins'][_0x3745('0x1')](_0x3745('0x4'))['me']['id'],'createdAt':new Date(),'attributes':{'@external':{'authorName':_0x84384d,'createdAt':_0x7efa6e?new Date(_0x7efa6e):new Date(),'source':_0x3745('0xc')}}})),_0x349456=this['editor']['config'][_0x3745('0x1')](_0x3745('0xe'));this[_0x3745('0xd')][_0x3745('0x10')][_0x3745('0x1')](_0x223d54)['addCommentThread']({'channelId':_0x349456,'threadId':_0x4ca86f,'comments':_0x4d26a0});});}}
@@ -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 _0x4ea3=['create','placeholderElement','getRoot','init','fire','config','name','placeholder','document','view','childCount','plugins','assign','get','end','defaultPlugins','getChild','editing','initPlugins','initialData','model','then','_updatePlaceholder','change','data','focus','destroy','set','createRoot','low','change:placeholder'];(function(_0x5bd152,_0x4ea333){const _0x76364c=function(_0x5d8586){while(--_0x5d8586){_0x5bd152['push'](_0x5bd152['shift']());}};_0x76364c(++_0x4ea333);}(_0x4ea3,0x1e6));const _0x7636=function(_0x5bd152,_0x4ea333){_0x5bd152=_0x5bd152-0x0;let _0x76364c=_0x4ea3[_0x5bd152];return _0x76364c;};import{Editor as _0x3ff759,DataApiMixin as _0x15d8d0}from'ckeditor5/src/core';import _0x26fea6 from'./commenteditorui';import{mix as _0x3172a6,ObservableMixin as _0x3f04de}from'ckeditor5/src/utils';import{enablePlaceholder as _0x3e8657,disablePlaceholder as _0x375a9a}from'ckeditor5/src/engine';import{Clipboard as _0x376621}from'ckeditor5/src/clipboard';import{Enter as _0x88601e,ShiftEnter as _0x858201}from'ckeditor5/src/enter';import{SelectAll as _0x10d8b9}from'ckeditor5/src/select-all';import{Typing as _0xc06e4}from'ckeditor5/src/typing';import{Undo as _0x31e916}from'ckeditor5/src/undo';import{Paragraph as _0x2e9dce}from'ckeditor5/src/paragraph';export default class Bt extends _0x3ff759{constructor(_0x58ad6e={}){(_0x58ad6e=Object[_0x7636('0x16')]({},_0x58ad6e))[_0x7636('0x15')]||(_0x58ad6e[_0x7636('0x15')]=Bt[_0x7636('0x19')]),super(_0x58ad6e),this['ui']=new _0x26fea6(this),this[_0x7636('0x6')](_0x7636('0x11'),''),this[_0x7636('0x1e')][_0x7636('0x12')]['on'](_0x7636('0x2'),()=>this[_0x7636('0x1')](),{'priority':_0x7636('0x8')}),this['on'](_0x7636('0x9'),()=>this[_0x7636('0x1')]()),this[_0x7636('0x1e')][_0x7636('0x12')][_0x7636('0x7')]();}[_0x7636('0xa')](){const _0x5b24e2=this[_0x7636('0xf')][_0x7636('0x17')](_0x7636('0x1d'))||'';return this[_0x7636('0x1c')]()[_0x7636('0x0')](()=>this['ui'][_0x7636('0xd')]())[_0x7636('0x0')](()=>this[_0x7636('0x3')][_0x7636('0xd')](_0x5b24e2))['then'](()=>this[_0x7636('0xe')]('ready'));}[_0x7636('0x5')](){return super[_0x7636('0x5')]()['then'](()=>this['ui'][_0x7636('0x5')]());}[_0x7636('0x4')](){this[_0x7636('0x1e')][_0x7636('0x2')](_0x3e41cc=>{const _0x3ff1e0=this['model'][_0x7636('0x12')]['getRoot'](),_0xf7dd74=_0x3ff1e0['getChild'](_0x3ff1e0[_0x7636('0x14')]-0x1);_0x3e41cc['setSelection'](_0xf7dd74,_0x7636('0x18')),this['editing']['view']['focus']();});}[_0x7636('0x1')](){const _0x2076b8=this[_0x7636('0x1b')][_0x7636('0x13')],_0x560ab6=_0x2076b8[_0x7636('0x12')][_0x7636('0xc')](),_0x51d25c=_0x560ab6[_0x7636('0x1a')](0x0);_0x560ab6['childCount']>0x1||!_0x51d25c||'p'!=_0x51d25c[_0x7636('0x10')]?this[_0x7636('0xb')]&&(_0x375a9a(_0x2076b8,this[_0x7636('0xb')]),this[_0x7636('0xb')]=void 0x0):(_0x3e8657({'view':_0x2076b8,'element':_0x51d25c,'text':this['placeholder'],'keepOnFocus':!0x0}),this[_0x7636('0xb')]=_0x51d25c);}}_0x3172a6(Bt,_0x3f04de),_0x3172a6(Bt,_0x15d8d0),Bt['defaultPlugins']=[_0x376621,_0x88601e,_0x858201,_0x10d8b9,_0xc06e4,_0x31e916,_0x2e9dce];
@@ -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 _0x2873=['render','ready','init','document','name','fire','locale','view','isFocused','bind','getRoot','element','destroy','rootName','editable'];(function(_0x1516cb,_0x28735d){const _0x2b56e3=function(_0x2e1d4c){while(--_0x2e1d4c){_0x1516cb['push'](_0x1516cb['shift']());}};_0x2b56e3(++_0x28735d);}(_0x2873,0xbc));const _0x2b56=function(_0x1516cb,_0x28735d){_0x1516cb=_0x1516cb-0x0;let _0x2b56e3=_0x2873[_0x1516cb];return _0x2b56e3;};import{EditorUI as _0x331411}from'ckeditor5/src/ui';import _0x4d6c29 from'./commenteditoruiview';export default class xt extends _0x331411{constructor(_0x3877cc){super(_0x3877cc),this[_0x2b56('0xe')]=new _0x4d6c29(_0x3877cc[_0x2b56('0xd')],_0x3877cc['editing'][_0x2b56('0xe')]);}get[_0x2b56('0x3')](){return this[_0x2b56('0xe')][_0x2b56('0x3')];}[_0x2b56('0x9')](){const _0x5158d3=this['editor']['editing'][_0x2b56('0xe')],_0x217ce9=this['view'][_0x2b56('0x6')],_0x5ee7cb=_0x5158d3[_0x2b56('0xa')][_0x2b56('0x2')]();_0x217ce9[_0x2b56('0xb')]=_0x5ee7cb[_0x2b56('0x5')],this[_0x2b56('0xe')][_0x2b56('0x7')]();const _0x127288=_0x217ce9[_0x2b56('0x3')];this['setEditableElement'](_0x217ce9[_0x2b56('0xb')],_0x127288),this['view'][_0x2b56('0x6')][_0x2b56('0x1')](_0x2b56('0x0'))['to'](this['focusTracker']),_0x5158d3['attachDomRoot'](_0x127288),this[_0x2b56('0xc')](_0x2b56('0x8'));}[_0x2b56('0x4')](){super[_0x2b56('0x4')](),this[_0x2b56('0xe')][_0x2b56('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 _0x562a=['focus','createCollection','extendTemplate','ck-voice-label','setTemplate','editable','text','ck-editor__main','comment','ck-editor','ck-editor__aria-label_','cke-editor__aria-label_','main','element','Comment\x20editor','add','render'];(function(_0x56c4cc,_0x562a3c){const _0x109f50=function(_0x58b786){while(--_0x58b786){_0x56c4cc['push'](_0x56c4cc['shift']());}};_0x109f50(++_0x562a3c);}(_0x562a,0x1d0));const _0x109f=function(_0x56c4cc,_0x562a3c){_0x56c4cc=_0x56c4cc-0x0;let _0x109f50=_0x562a[_0x56c4cc];return _0x109f50;};import{InlineEditableUIView as _0x260539,EditorUIView as _0x34d7e9,LabelView as _0x3a87f0}from'ckeditor5/src/ui';import{uid as _0x7a5fb2}from'ckeditor5/src/utils';import{getTranslation as _0x214614}from'../../../utils/common-translations';export default class Et extends _0x34d7e9{constructor(_0x560a4e,_0x519cee){super(_0x560a4e);const _0xbf1f1a=_0x7a5fb2();this[_0x109f('0x7')]=this[_0x109f('0xd')](),this[_0x109f('0x0')]=new _0x260539(_0x560a4e,_0x519cee),this['_voiceLabelView']=this['_createVoiceLabel'](_0xbf1f1a,_0x560a4e),this[_0x109f('0x10')]({'tag':'div','attributes':{'class':['ck-reset',_0x109f('0x4'),'ck-rounded-corners','ck-comment__input'],'role':_0x109f('0x3'),'dir':_0x560a4e['uiLanguageDirection'],'lang':_0x560a4e['uiLanguage'],'aria-labelledby':_0x109f('0x6')+_0xbf1f1a},'children':[this['_voiceLabelView'],{'tag':'div','attributes':{'class':_0x109f('0x2'),'role':'presentation'},'children':this[_0x109f('0x7')]}]});}[_0x109f('0xb')](){super[_0x109f('0xb')](),this[_0x109f('0x7')][_0x109f('0xa')](this[_0x109f('0x0')]);}[_0x109f('0xc')](){this[_0x109f('0x0')][_0x109f('0x8')][_0x109f('0xc')]();}['_createVoiceLabel'](_0x346ec0,_0x2d15a3){const _0x3c7735=new _0x3a87f0();return _0x3c7735[_0x109f('0x1')]=_0x214614(_0x2d15a3,_0x109f('0x9')),_0x3c7735[_0x109f('0xe')]({'attributes':{'id':_0x109f('0x5')+_0x346ec0,'class':_0x109f('0xf')}}),_0x3c7735;}}
@@ -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 _0x374b=['remove','update','view','stopListening','addComment','getComment','removeComment','listenTo','destroy','removeCommentThread','model','updateComment'];(function(_0x5eb7b7,_0x374b97){var _0x3430f0=function(_0x324676){while(--_0x324676){_0x5eb7b7['push'](_0x5eb7b7['shift']());}};_0x3430f0(++_0x374b97);}(_0x374b,0x1f2));var _0x3430=function(_0x5eb7b7,_0x374b97){_0x5eb7b7=_0x5eb7b7-0x0;var _0x3430f0=_0x374b[_0x5eb7b7];return _0x3430f0;};import{ObservableMixin as _0x28b3c7,mix as _0x2bc0b1}from'ckeditor5/src/utils';export default class ot{constructor(_0x5a1330,_0x3eb4a5){this['model']=_0x5a1330,this[_0x3430('0x4')]['_isAttached']=!0x0,this[_0x3430('0x8')]=_0x3eb4a5,this[_0x3430('0x1')](_0x3eb4a5,_0x3430('0x3'),()=>this[_0x3430('0x6')]()),this['listenTo'](_0x3eb4a5,_0x3430('0xa'),(_0x2a8499,_0x594e99)=>this[_0x3430('0xa')](_0x594e99)),this['listenTo'](_0x3eb4a5,'updateComment',(_0x3e67c6,_0x1bc6cf,_0x5bc003)=>this[_0x3430('0x5')](_0x1bc6cf,_0x5bc003)),this['listenTo'](_0x3eb4a5,_0x3430('0x0'),(_0x243057,_0x56f969)=>this[_0x3430('0x0')](_0x56f969));}[_0x3430('0x6')](){this[_0x3430('0x4')][_0x3430('0x6')]();}[_0x3430('0xa')](_0x45b332){this[_0x3430('0x4')]['addComment']({'content':_0x45b332,'authorId':this[_0x3430('0x8')]['_localUser']['id']});}['updateComment'](_0x1d3f0f,_0x35dd26){this[_0x3430('0x4')][_0x3430('0xb')](_0x1d3f0f)[_0x3430('0x7')]({'content':_0x35dd26});}[_0x3430('0x0')](_0x519765){this['model'][_0x3430('0xb')](_0x519765)['remove']();}[_0x3430('0x2')](){this[_0x3430('0x9')](),this[_0x3430('0x4')]['_isAttached']=!0x1;}}_0x2bc0b1(ot,_0x28b3c7);
@@ -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 _0x4f87=['cancel','placeholder','isReadOnly','_createCommentThreadInputView','set','focus','disabledSubmit','Reply...','assign','fire','element','length','commentThreadInputView','_config','addComment','stop','change:isActive','destroy','commentsListView','isDirty','removeComment','locale','value','_localUser','submit','hasDirtyComment','delegate','_model','commentInputView','updateComment','removeCommentThread','bind','isActive','Write\x20a\x20comment...'];(function(_0x5bb518,_0x4f87f3){const _0xd06874=function(_0x2453f6){while(--_0x2453f6){_0x5bb518['push'](_0x5bb518['shift']());}};_0xd06874(++_0x4f87f3);}(_0x4f87,0x1e5));const _0xd068=function(_0x5bb518,_0x4f87f3){_0x5bb518=_0x5bb518-0x0;let _0xd06874=_0x4f87[_0x5bb518];return _0xd06874;};import{View as _0x12b732}from'ckeditor5/src/ui';import _0x88cc88 from'./commentthreadinputview';import _0x11d658 from'./commentslistview';import{getTranslation as _0x3fb138}from'../../../utils/common-translations';export default class Rt extends _0x12b732{constructor(_0x538012,_0x392717,_0x42c1ef,_0x17dc66){super(_0x538012),this[_0xd068('0x1d')](_0xd068('0x17'),!0x1),this[_0xd068('0x1d')]('isDirty',!0x1),this[_0xd068('0x12')]=_0x392717,this[_0xd068('0xe')]=_0x42c1ef,this['_config']=_0x17dc66,this[_0xd068('0x9')]=new _0x11d658(_0x538012,_0x392717,Object[_0xd068('0x21')]({'CommentView':this[_0xd068('0x4')]['CommentView']},_0x17dc66)),this[_0xd068('0x9')]['delegate'](_0xd068('0xb'))['to'](this),this[_0xd068('0x9')][_0xd068('0x11')](_0xd068('0x14'))['to'](this),this[_0xd068('0x9')][_0xd068('0x16')](_0xd068('0x17'))['to'](this),this[_0xd068('0x1d')](_0xd068('0x2'),this['commentsListView'][_0xd068('0x2')]),this[_0xd068('0x16')](_0xd068('0x2'))['to'](this[_0xd068('0x9')],'length'),this[_0xd068('0x3')]=this['_createCommentThreadInputView'](),this['on'](_0xd068('0xb'),()=>this['focus']()),this[_0xd068('0x16')](_0xd068('0xa'))['to'](this[_0xd068('0x9')],_0xd068('0x10'),this[_0xd068('0x3')]['commentInputView'],_0xd068('0xd'),(_0xc55d26,_0x44cc22)=>_0xc55d26||!!_0x44cc22);}[_0xd068('0x1e')](){this[_0xd068('0x1')][_0xd068('0x1e')]();}[_0xd068('0x8')](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),this[_0xd068('0x3')][_0xd068('0x8')](),super[_0xd068('0x8')]();}[_0xd068('0x1c')](){const _0x46f5ee=new _0x88cc88(this[_0xd068('0xc')],this[_0xd068('0xe')],this['_config']['editorConfig']),_0x236c10=_0x46f5ee[_0xd068('0x13')];return _0x46f5ee[_0xd068('0x16')]('showInput')['to'](this,'isActive',this[_0xd068('0x12')],_0xd068('0x1b'),_0x236c10,_0xd068('0xd'),(_0x20a792,_0x3183c1,_0x3141c0)=>!!_0x3141c0||_0x20a792&&!_0x3183c1),_0x236c10[_0xd068('0x16')](_0xd068('0x1a'))['to'](this,'length',_0x1b895=>_0x3fb138(this[_0xd068('0xc')],_0x1b895?_0xd068('0x20'):_0xd068('0x18'))),_0x236c10['on'](_0xd068('0xf'),(_0x2e4e34,_0x49a14d)=>{this['fire'](_0xd068('0x5'),_0x49a14d);}),_0x236c10['on'](_0xd068('0x19'),()=>{this[_0xd068('0x1e')]();}),_0x236c10['bind'](_0xd068('0x1f'))['to'](this[_0xd068('0x12')],'isReadOnly'),_0x236c10['on'](_0xd068('0x19'),_0x28a3c2=>{0x0==this[_0xd068('0x2')]&&(this[_0xd068('0x0')](_0xd068('0x15')),_0x28a3c2[_0xd068('0x6')]());}),this['on'](_0xd068('0x7'),(_0x12c58f,_0x47ccce,_0x176aed)=>{_0x176aed||this[_0xd068('0x2')]||_0x236c10['value']||this[_0xd068('0x0')](_0xd068('0x15'));}),_0x46f5ee;}}
@@ -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 _0x4539=['set','editorConfig','element','createEditor','collapse','disabledSubmit','_createCommentContentView','_model','_config','maxCommentCharsWhenCollapsed','value','initialData','bind','content','focus','add','isReadOnly','switchToDisplayMode','locale','isCollapsed','get','visibleView','isEditMode','editorReady','switchToEditMode','expand','once','_createCommentInputView','destroy','fire','submit'];(function(_0x1036e2,_0x4539e4){const _0x1d387c=function(_0x44ef21){while(--_0x44ef21){_0x1036e2['push'](_0x1036e2['shift']());}};_0x1d387c(++_0x4539e4);}(_0x4539,0x68));const _0x1d38=function(_0x1036e2,_0x4539e4){_0x1036e2=_0x1036e2-0x0;let _0x1d387c=_0x4539[_0x1036e2];return _0x1d387c;};import{View as _0x130eae}from'ckeditor5/src/ui';import{trimHtml as _0x38d826}from'ckeditor5-collaboration/src/collaboration-core';import _0x222bf0 from'./commentcontentview';import _0x5d60c9 from'./commentinputview';export default class Gt extends _0x130eae{constructor(_0x27b2ad,_0x5482b1,_0x583154){super(_0x27b2ad),this[_0x1d38('0x1b')]=_0x5482b1,this['_config']=_0x583154,this[_0x1d38('0x14')](_0x1d38('0xb'),!0x1),this[_0x1d38('0x14')](_0x1d38('0x8'),!0x0),this[_0x1d38('0xa')]=this['createCollection'](),this[_0x1d38('0xa')][_0x1d38('0x4')](this['_createCommentContentView']());}[_0x1d38('0xe')](){this['isCollapsed']=!0x1;}[_0x1d38('0x18')](){this['isEditMode']||(this[_0x1d38('0x8')]=!0x0);}[_0x1d38('0x3')](){this[_0x1d38('0x16')][_0x1d38('0x3')]();}async[_0x1d38('0x11')](){await this[_0x1d38('0xa')][_0x1d38('0x9')](0x0)[_0x1d38('0x11')](),super['destroy']();}[_0x1d38('0xd')](){this[_0x1d38('0xb')]||(this[_0x1d38('0xb')]=!0x0,this[_0x1d38('0xa')]['remove'](0x0)[_0x1d38('0x11')](),this[_0x1d38('0xa')]['add'](this['_createCommentInputView']()));}[_0x1d38('0x6')](){this[_0x1d38('0xb')]&&(this[_0x1d38('0xb')]=!0x1,this['visibleView']['remove'](0x0)[_0x1d38('0x11')](),this[_0x1d38('0xa')][_0x1d38('0x4')](this[_0x1d38('0x1a')]()));}[_0x1d38('0x1a')](){const _0x54d3a3=new _0x222bf0(this['locale']);return _0x54d3a3['bind'](_0x1d38('0x2'))['to'](this[_0x1d38('0x1b')],'content',this,_0x1d38('0x8'),(_0x16ec12,_0x3177b4)=>_0x3177b4?_0x38d826(_0x16ec12,{'limit':this[_0x1d38('0x1c')][_0x1d38('0x1d')]}):_0x16ec12),_0x54d3a3;}[_0x1d38('0x10')](){this['_config'][_0x1d38('0x15')]||(this[_0x1d38('0x1c')][_0x1d38('0x15')]={}),this[_0x1d38('0x1c')][_0x1d38('0x15')][_0x1d38('0x0')]=this[_0x1d38('0x1b')][_0x1d38('0x2')];const _0x462ede=new _0x5d60c9(this[_0x1d38('0x7')],this['_config'][_0x1d38('0x15')]);return _0x462ede[_0x1d38('0x1e')]=this[_0x1d38('0x1b')][_0x1d38('0x2')],_0x462ede[_0x1d38('0x1')](_0x1d38('0x19'))['to'](this[_0x1d38('0x1b')],_0x1d38('0x5')),_0x462ede['on'](_0x1d38('0x13'),(_0x15260d,_0x223083)=>{this[_0x1d38('0x12')]('updateComment',this[_0x1d38('0x1b')]['id'],_0x223083),this[_0x1d38('0x6')](),this[_0x1d38('0x3')]();}),_0x462ede['on']('cancel',()=>{this[_0x1d38('0x6')](),this[_0x1d38('0x3')]();}),_0x462ede[_0x1d38('0xf')](_0x1d38('0xc'),()=>{_0x462ede[_0x1d38('0x3')]();}),_0x462ede[_0x1d38('0x17')](),_0x462ede;}}
@@ -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 _0x2ea3=['count','setTemplate','bindTemplate','NUMBER_OF_COMMENTS'];(function(_0x5311d1,_0x2ea334){const _0x1e5cee=function(_0x4817e3){while(--_0x4817e3){_0x5311d1['push'](_0x5311d1['shift']());}};_0x1e5cee(++_0x2ea334);}(_0x2ea3,0x1c1));const _0x1e5c=function(_0x5311d1,_0x2ea334){_0x5311d1=_0x5311d1-0x0;let _0x1e5cee=_0x2ea3[_0x5311d1];return _0x1e5cee;};import{View as _0x20fcf0}from'ckeditor5/src/ui';import{getTranslation as _0x187678}from'../../../utils/common-translations';export default class Nt extends _0x20fcf0{constructor(_0x4b5ce9){super(_0x4b5ce9);const _0x1e44d3=this[_0x1e5c('0x1')];this['set']('count'),this[_0x1e5c('0x0')]({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x1e44d3['to'](_0x1e5c('0x3'),_0x3c8bc6=>_0x187678(_0x4b5ce9,_0x1e5c('0x2'),_0x3c8bc6))}]});}}
@@ -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 _0x35c3=['innerHTML','setTemplate','div','ck-comment__content','render','element','content','set'];(function(_0x31f0eb,_0x35c355){var _0x5a934f=function(_0x3abcdd){while(--_0x3abcdd){_0x31f0eb['push'](_0x31f0eb['shift']());}};_0x5a934f(++_0x35c355);}(_0x35c3,0x135));var _0x5a93=function(_0x31f0eb,_0x35c355){_0x31f0eb=_0x31f0eb-0x0;var _0x5a934f=_0x35c3[_0x31f0eb];return _0x5a934f;};import{View as _0x3ac39a}from'ckeditor5/src/ui';export default class Tt extends _0x3ac39a{constructor(_0x288377){super(_0x288377),this[_0x5a93('0x2')](_0x5a93('0x1'),''),this[_0x5a93('0x4')]({'tag':_0x5a93('0x5'),'attributes':{'class':[_0x5a93('0x6'),'ck-annotation__content']}});}[_0x5a93('0x7')](){super[_0x5a93('0x7')](),this['on']('change:content',(_0x1a91c0,_0x10bd86,_0x5f48f4)=>{this[_0x5a93('0x0')]['innerHTML']=_0x5f48f4;}),this[_0x5a93('0x0')][_0x5a93('0x3')]=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 _0x24c2=['Esc','insertBefore','focusTracker','cancel','set','getData','model','_initializeFocusCycling','execute','length','_createCancelButton','low','_isDestroyed','render','keystrokes','disabledSubmit','editorReady','ck-comment__input-wrapper','tab','firstChild','initialData','bindTemplate','createEditor','label','change','focus','_createSubmitButton','Reply...','ck-comment__input-actions--cancel','ck-comment__input-actions--active','stop','element','document','destroy','cancelButtonView','forEach','ck-comment__input-actions','submitButtonView','editor','_editorConfig','focusPrevious','bind','high','submit','fire','_editorCreationPromise','isEnabled','extendTemplate','setData','placeholder','then','setTemplate','showButtons','icon','value','add','div','trim'];(function(_0x419b0c,_0x24c279){const _0x12091b=function(_0x42765c){while(--_0x42765c){_0x419b0c['push'](_0x419b0c['shift']());}};_0x12091b(++_0x24c279);}(_0x24c2,0x177));const _0x1209=function(_0x419b0c,_0x24c279){_0x419b0c=_0x419b0c-0x0;let _0x12091b=_0x24c2[_0x419b0c];return _0x12091b;};import{View as _0x20a802,ViewCollection as _0x350831,FocusCycler as _0x45eb3d,ButtonView as _0x163772}from'ckeditor5/src/ui';import{FocusTracker as _0x2a806d,KeystrokeHandler as _0x5d06e5}from'ckeditor5/src/utils';import{icons as _0x1dca17}from'ckeditor5/src/core';import _0x564f95 from'../commenteditor/commenteditor';import{getTranslation as _0x4700ae}from'../../../utils/common-translations';export default class St extends _0x20a802{constructor(_0x3ad983,_0xcb4d28={}){super(_0x3ad983),this[_0x1209('0xb')]=null,this[_0x1209('0xc')]=_0xcb4d28,this[_0x1209('0x2d')]=new _0x5d06e5(),this['focusTracker']=new _0x2a806d(),this[_0x1209('0x23')](_0x1209('0x1b'),_0xcb4d28[_0x1209('0x33')]||''),this['set'](_0x1209('0x2e'),!0x1),this[_0x1209('0x23')]('showButtons',!0x0),this['set'](_0x1209('0x16'),_0x4700ae(_0x3ad983,_0x1209('0x0'))),this[_0x1209('0xa')]=this[_0x1209('0x39')](),this[_0x1209('0x7')]=this[_0x1209('0x29')](),this[_0x1209('0x18')]({'tag':_0x1209('0x1d'),'attributes':{'class':[_0x1209('0x30')]},'children':[{'tag':_0x1209('0x1d'),'attributes':{'class':[_0x1209('0x9'),this[_0x1209('0x34')]['if'](_0x1209('0x19'),_0x1209('0x2'))]},'children':[this[_0x1209('0xa')],this[_0x1209('0x7')]]}]}),this['keystrokes'][_0x1209('0x23')](_0x1209('0x1f'),(_0x1b7b8c,_0x56ed5a)=>{this[_0x1209('0x7')][_0x1209('0x11')](_0x1209('0x27')),_0x56ed5a();}),this['on'](_0x1209('0x10'),(_0x3697fb,_0x28ccac)=>{_0x28ccac[_0x1209('0x28')]>0xfde8?(alert(_0x4700ae(_0x3ad983,'TOO_LONG_COMMENT_ALERT',[_0x28ccac['length'],0xfde8])),_0x3697fb[_0x1209('0x3')]()):this[_0x1209('0xb')][_0x1209('0x15')]('');},{'priority':_0x1209('0xf')});}[_0x1209('0x2c')](){super[_0x1209('0x2c')](),this[_0x1209('0x2d')]['listenTo'](this['element']),this[_0x1209('0x21')][_0x1209('0x1c')](this[_0x1209('0x4')]);}[_0x1209('0x35')](){return this['editor']||(this[_0x1209('0xb')]=new _0x564f95(this['_editorConfig']),this[_0x1209('0x12')]=this[_0x1209('0xb')]['create']()[_0x1209('0x17')](()=>{this[_0x1209('0x2b')]||(this['element'][_0x1209('0x20')](this[_0x1209('0xb')]['ui']['element'],this[_0x1209('0x4')][_0x1209('0x32')]),this[_0x1209('0xb')][_0x1209('0x25')][_0x1209('0x5')]['on'](_0x1209('0x37'),()=>this[_0x1209('0x1b')]=this[_0x1209('0xb')][_0x1209('0x24')]()),this[_0x1209('0xb')][_0x1209('0xe')]('placeholder')['to'](this),this[_0x1209('0x26')](this['editor']),this[_0x1209('0x11')](_0x1209('0x2f')));})),this[_0x1209('0x12')];}['focus'](){this[_0x1209('0xb')]&&this['editor'][_0x1209('0x38')]();}async['destroy'](){this[_0x1209('0x2b')]||(this['_isDestroyed']=!0x0,this[_0x1209('0xb')]&&(await this[_0x1209('0x12')],await this[_0x1209('0xb')][_0x1209('0x6')]()),await super['destroy']());}[_0x1209('0x39')](){const {locale:_0xf03bdc}=this,_0x2d4c80=new _0x163772(_0xf03bdc);return _0x2d4c80[_0x1209('0x14')]({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x2d4c80['label']=_0x4700ae(_0xf03bdc,'Submit'),_0x2d4c80[_0x1209('0x1a')]=_0x1dca17['check'],_0x2d4c80['on']('execute',()=>{this['fire']('submit',this[_0x1209('0x1b')]);}),_0x2d4c80['bind'](_0x1209('0x13'))['to'](this,_0x1209('0x1b'),this,_0x1209('0x2e'),(_0x4fd535,_0x4253de)=>!_0x4253de&&!!_0x4fd535[_0x1209('0x1e')]()),_0x2d4c80;}['_createCancelButton'](){const {locale:_0x1fa418}=this,_0x57bbea=new _0x163772(_0x1fa418);return _0x57bbea[_0x1209('0x14')]({'attributes':{'class':[_0x1209('0x1')]}}),_0x57bbea[_0x1209('0x36')]=_0x4700ae(_0x1fa418,'Cancel'),_0x57bbea[_0x1209('0x1a')]=_0x1dca17[_0x1209('0x22')],_0x57bbea['on'](_0x1209('0x27'),()=>{this[_0x1209('0xb')]['setData'](''),this[_0x1209('0x11')](_0x1209('0x22'));}),_0x57bbea;}['_initializeFocusCycling'](_0x67e616){const _0x4b80cb=this['focusTracker'],_0x5f0587=new _0x350831();[_0x67e616['ui']['view'],this[_0x1209('0xa')],this[_0x1209('0x7')]][_0x1209('0x8')](_0x46cfdd=>{_0x5f0587[_0x1209('0x1c')](_0x46cfdd),_0x4b80cb['add'](_0x46cfdd[_0x1209('0x4')]);});const _0x3908b1=new _0x45eb3d({'focusables':_0x5f0587,'focusTracker':_0x4b80cb});this[_0x1209('0x2d')][_0x1209('0x23')](_0x1209('0x31'),(_0x37408d,_0x35838f)=>{_0x3908b1['focusNext'](),_0x35838f();},{'priority':_0x1209('0x2a')}),this[_0x1209('0x2d')][_0x1209('0x23')]('shift\x20+\x20tab',(_0x110756,_0x497877)=>{_0x3908b1[_0x1209('0xd')](),_0x497877();},{'priority':_0x1209('0x2a')});}}
@@ -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 _0xaa3a=['set','createCollection','_shouldCollapse','equal','setTemplate','length','delete','_handleNewCommentModel','listenTo','_model','add','render','refreshVisibleViews','change:isActive','isActive','maxThreadTotalWeight','some','change:isEditMode','maxCommentCharsWhenCollapsed','_collapsedCommentsView','commentViews','ck-thread__comments','CommentView','_updateHasDirtyComment','insert','_config','editorConfig','remove','delegate','from','hasDirtyComment','element','_handleRemoveCommentModel','stopListening','change:hasDirtyComment','destroy','formatDateTime','comments','visibleViews','removeComment','commentUpdated','_rearrangeCollapse','maxCommentsWhenCollapsed','isEditMode','count','weight'];(function(_0x4f86ae,_0xaa3a82){const _0x5e6264=function(_0x36a5c4){while(--_0x36a5c4){_0x4f86ae['push'](_0x4f86ae['shift']());}};_0x5e6264(++_0xaa3a82);}(_0xaa3a,0x1b2));const _0x5e62=function(_0x4f86ae,_0xaa3a82){_0x4f86ae=_0x4f86ae-0x0;let _0x5e6264=_0xaa3a[_0x4f86ae];return _0x5e6264;};import{View as _0x2d1e02}from'ckeditor5/src/ui';import{diff as _0x22e5b6,Collection as _0x375906}from'ckeditor5/src/utils';import _0x2f5189 from'./collapsedcommentsview';export default class dt extends _0x2d1e02{constructor(_0x2faff5,_0x301182,_0x47f377){super(_0x2faff5),this['set'](_0x5e62('0xa'),!0x1),this[_0x5e62('0x1a')](_0x5e62('0x1f'),_0x301182[_0x5e62('0x11')]['length']),this[_0x5e62('0x1a')]('isActive',!0x1),this[_0x5e62('0x23')]=_0x301182,this[_0x5e62('0x5')]=_0x47f377,this[_0x5e62('0x0')]=this[_0x5e62('0x1b')](),this[_0x5e62('0x12')]=this[_0x5e62('0x1b')](),this[_0x5e62('0x2d')]=new _0x2f5189(_0x2faff5),this[_0x5e62('0x2d')]['bind'](_0x5e62('0x18'))['to'](this,_0x5e62('0x1f'),_0x884420=>_0x884420-this['_config'][_0x5e62('0x16')]);for(const _0x1494f4 of _0x301182[_0x5e62('0x11')])this[_0x5e62('0x21')](_0x1494f4);this[_0x5e62('0x22')](_0x301182['comments'],'add',(_0x497aee,_0x6b15eb)=>{this[_0x5e62('0x1f')]++,this[_0x5e62('0x21')](_0x6b15eb),this[_0x5e62('0x26')]();}),this[_0x5e62('0x22')](_0x301182[_0x5e62('0x11')],_0x5e62('0x7'),(_0x299031,_0x1ca232)=>{this[_0x5e62('0x1f')]--,this[_0x5e62('0xc')](_0x1ca232),this[_0x5e62('0x26')]();}),this['listenTo'](_0x301182,_0x5e62('0x14'),()=>this[_0x5e62('0x26')]()),this['on'](_0x5e62('0x27'),()=>this['refreshVisibleViews']()),this['on'](_0x5e62('0xe'),()=>this[_0x5e62('0x26')]()),this[_0x5e62('0x1e')]({'tag':'ul','attributes':{'class':[_0x5e62('0x1')]},'children':this[_0x5e62('0x12')]});}get[_0x5e62('0x1c')](){return this[_0x5e62('0x23')][_0x5e62('0x19')]>this[_0x5e62('0x5')][_0x5e62('0x29')]&&!this[_0x5e62('0x28')]&&!this[_0x5e62('0xa')];}[_0x5e62('0x25')](){super['render'](),this[_0x5e62('0x26')]();}['focus'](){this[_0x5e62('0xb')]['focus']();}[_0x5e62('0xf')](){this[_0x5e62('0x2d')]['destroy']();for(const _0x2cf0d6 of this[_0x5e62('0x0')])_0x2cf0d6['destroy']();super[_0x5e62('0xf')]();}[_0x5e62('0x26')](){this[_0x5e62('0x1c')]?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x160c7e){const _0x29a7db=new this[(_0x5e62('0x5'))][(_0x5e62('0x2'))](this['locale'],_0x160c7e,{'maxCommentCharsWhenCollapsed':this['_config'][_0x5e62('0x2c')],'formatDateTime':this[_0x5e62('0x5')][_0x5e62('0x10')],'editorConfig':this[_0x5e62('0x5')][_0x5e62('0x6')]});_0x29a7db['viewUid']=_0x160c7e['id'],_0x29a7db[_0x5e62('0x8')](_0x5e62('0x13'))['to'](this),_0x29a7db[_0x5e62('0x8')]('updateComment')['to'](this),this[_0x5e62('0x22')](_0x29a7db,_0x5e62('0x2b'),()=>this[_0x5e62('0x3')]()),this[_0x5e62('0x0')][_0x5e62('0x24')](_0x29a7db);}[_0x5e62('0xc')](_0x4557d2){const _0x38fa1f=this[_0x5e62('0x0')][_0x5e62('0x7')](_0x4557d2['id']);this[_0x5e62('0xd')](_0x38fa1f),_0x38fa1f['isEditMode']&&this[_0x5e62('0x3')](),_0x38fa1f[_0x5e62('0xf')]();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array[_0x5e62('0x9')](this[_0x5e62('0x0')])[_0x5e62('0x2a')](_0x3e6df1=>_0x3e6df1[_0x5e62('0x17')]);}[_0x5e62('0x15')](){const _0x4d2846=function(_0x298d25){const _0x427fdb=new _0x375906();for(const _0x4d7408 of _0x298d25)_0x427fdb[_0x5e62('0x24')](_0x4d7408);return _0x427fdb;}(this[_0x5e62('0x0')]),_0x418aa7=this['_collapsedCommentsView'][_0x5e62('0x18')];for(let _0x34faa2=0x1;_0x34faa2<=_0x418aa7;_0x34faa2++)_0x4d2846[_0x5e62('0x7')](0x1);for(const _0x46aad0 of _0x4d2846)_0x46aad0['collapse']();_0x418aa7>0x0&&_0x4d2846['add'](this['_collapsedCommentsView'],0x1),Wt(_0x22e5b6(Array['from'](this[_0x5e62('0x12')]),Array[_0x5e62('0x9')](_0x4d2846)),this['visibleViews'],_0x4d2846);}['_rearrangeExpand'](){Wt(_0x22e5b6(Array['from'](this[_0x5e62('0x12')]),Array[_0x5e62('0x9')](this['commentViews'])),this[_0x5e62('0x12')],this[_0x5e62('0x0')]);for(const _0x4495e3 of this[_0x5e62('0x12')])_0x4495e3['expand']();}}function Wt(_0x4287ef,_0x496983,_0x3323a5){let _0x4937ce=0x0;for(const _0x3c892a of _0x4287ef)switch(_0x3c892a){case _0x5e62('0x4'):_0x496983[_0x5e62('0x24')](_0x3323a5['get'](_0x4937ce),_0x4937ce),_0x4937ce++;break;case _0x5e62('0x20'):_0x496983[_0x5e62('0x7')](_0x4937ce);break;case _0x5e62('0x1d'):_0x4937ce++;}}
@@ -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 _0x3052=['destroy','ck-thread__input','div','bind','then','value','userView','editor','ck-comment__input-container--active','set','commentInputView','createEditor','ck-thread__user','showInput'];(function(_0x38b1d3,_0x3052f1){var _0x5448cd=function(_0x11be1b){while(--_0x11be1b){_0x38b1d3['push'](_0x38b1d3['shift']());}};_0x5448cd(++_0x3052f1);}(_0x3052,0x152));var _0x5448=function(_0x38b1d3,_0x3052f1){_0x38b1d3=_0x38b1d3-0x0;var _0x5448cd=_0x3052[_0x38b1d3];return _0x5448cd;};import{View as _0x1dad78}from'ckeditor5/src/ui';import _0x25e027 from'./commentinputview';import{UserView as _0xd2f6ed}from'ckeditor5-collaboration/src/collaboration-core';export default class ut extends _0x1dad78{constructor(_0x40b0d4,_0x48884e,_0x4cc47d){super(_0x40b0d4),this[_0x5448('0x8')]=new _0x25e027(_0x40b0d4,_0x4cc47d),this[_0x5448('0x8')][_0x5448('0x1')]('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],_0x5448('0x3'),(_0x94c53d,_0x2369cd)=>_0x94c53d||!!_0x2369cd),this[_0x5448('0x7')](_0x5448('0xb'),!0x1),this['on']('change:showInput',()=>{this[_0x5448('0xb')]&&!this[_0x5448('0x8')][_0x5448('0x5')]&&this[_0x5448('0x8')][_0x5448('0x9')]();}),this[_0x5448('0x4')]=new _0xd2f6ed(_0x40b0d4,_0x48884e),this[_0x5448('0x4')]['extendTemplate']({'attributes':{'class':_0x5448('0xa')}}),this[_0x5448('0x8')]['extendTemplate']({'attributes':{'class':_0x5448('0xd')}}),this['setTemplate']({'tag':_0x5448('0x0'),'attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput',_0x5448('0x6'))]},'children':[this['userView'],this[_0x5448('0x8')]]});}[_0x5448('0xc')](){return this[_0x5448('0x8')][_0x5448('0xc')]()[_0x5448('0x2')](()=>super[_0x5448('0xc')]());}}
@@ -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 _0x28c2=['set','containerElement','isConfirm','isActive','.ck-thread__container','locale','ck-thread--','removeButton','getTemplate','showConfirm','fire','div','change:isActive','removeCommentThread','actionIndicator','placeholder','add','render','then','ck-thread','bindTemplate','ck-thread__container','change:isReadOnly','_boundFirstCommentView','bind','commentThreadInputView','high','element','commentViews','cancelConfirm','stop','remove','listenTo','ck-thread--active','_cancelAllConfirms','commentsListView','_bindFirstCommentView','setTemplate','_model','Write\x20a\x20comment...'];(function(_0x1ea8f1,_0x28c262){const _0x2054a2=function(_0x1efd05){while(--_0x1efd05){_0x1ea8f1['push'](_0x1ea8f1['shift']());}};_0x2054a2(++_0x28c262);}(_0x28c2,0xe4));const _0x2054=function(_0x1ea8f1,_0x28c262){_0x1ea8f1=_0x1ea8f1-0x0;let _0x2054a2=_0x28c2[_0x1ea8f1];return _0x2054a2;};import{mix as _0x126413}from'ckeditor5/src/utils';import{ConfirmMixin as _0x506442}from'ckeditor5-collaboration/src/collaboration-core';import _0x12bdc1 from'./basecommentthreadview';import{getTranslation as _0x1b642a}from'../../../utils/common-translations';export default class it extends _0x12bdc1{constructor(_0x1625d8,_0x539216,_0x330df8,_0x239b9a){super(_0x1625d8,_0x539216,_0x330df8,_0x239b9a),this[_0x2054('0xc')](_0x2054('0x1a'),null),this[_0x2054('0xd')]=null,this[_0x2054('0x23')]=null,this[_0x2054('0x11')]=_0x1625d8,this[_0x2054('0x9')](this['getTemplate']()),this['on'](_0x2054('0x18'),(_0x5d74a5,_0x5ab79a,_0x263e0c)=>{_0x263e0c||this['_cancelAllConfirms']();}),this[_0x2054('0x4')](this[_0x2054('0xa')],_0x2054('0x22'),(_0x19c588,_0x330de3,_0x5a9abc)=>{_0x5a9abc&&this[_0x2054('0x6')]();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this[_0x2054('0x7')][_0x2054('0x0')],_0x2054('0x1c'),()=>{this[_0x2054('0x8')]();});}[_0x2054('0x14')](){const _0x36e441=this[_0x2054('0x20')];return{'tag':_0x2054('0x17'),'attributes':{'class':[_0x2054('0x1f'),_0x36e441['if'](_0x2054('0xf'),_0x2054('0x5')),_0x36e441['if'](_0x2054('0xe'),'ck-thread--remove-confirmation'),_0x36e441['to'](_0x2054('0x1a'),_0x4098e4=>_0x4098e4?_0x2054('0x12')+_0x4098e4:'')],'data-thread-id':this[_0x2054('0xa')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':_0x2054('0x21')},'children':[this['commentsListView'],this[_0x2054('0x25')]]}]};}[_0x2054('0x1d')](){super[_0x2054('0x1d')](),this[_0x2054('0xd')]=this[_0x2054('0x27')]['querySelector'](_0x2054('0x10'));}[_0x2054('0x6')](){this[_0x2054('0x1')]();for(const _0x105428 of this['commentsListView'][_0x2054('0x0')])_0x105428[_0x2054('0x1')]();}['_bindFirstCommentView'](){const {locale:_0x5e790f}=this,_0x4099ad=this[_0x2054('0x7')][_0x2054('0x0')]['get'](0x0);_0x4099ad!==this['_boundFirstCommentView']&&(this[_0x2054('0x23')]=_0x4099ad,this['unbind']('actionIndicator'),this[_0x2054('0x24')](_0x2054('0x1a'))['to'](_0x4099ad,_0x2054('0x1a'),_0x1c96a8=>_0x2054('0x3')===_0x1c96a8?'remove':null),_0x4099ad[_0x2054('0x1b')]=_0x1b642a(_0x5e790f,_0x2054('0xb')),_0x4099ad[_0x2054('0x13')]['on']('execute',_0x52b7e2=>{_0x52b7e2[_0x2054('0x2')](),this[_0x2054('0x15')](_0x1b642a(_0x5e790f,'Delete\x20comment\x20thread?'),this[_0x2054('0xd')])[_0x2054('0x1e')](()=>{this[_0x2054('0x16')](_0x2054('0x19'));});},{'priority':_0x2054('0x26')}));}}_0x126413(it,_0x506442);