@ckeditor/ckeditor5-comments 37.1.0 → 38.0.0-rc.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 (156) hide show
  1. package/build/comments.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/bs.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de-ch.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es-co.js +1 -1
  15. package/build/translations/es.js +1 -1
  16. package/build/translations/et.js +1 -1
  17. package/build/translations/fa.js +1 -1
  18. package/build/translations/fi.js +1 -1
  19. package/build/translations/fr.js +1 -1
  20. package/build/translations/gl.js +1 -1
  21. package/build/translations/he.js +1 -1
  22. package/build/translations/hi.js +1 -1
  23. package/build/translations/hr.js +1 -1
  24. package/build/translations/hu.js +1 -1
  25. package/build/translations/id.js +1 -1
  26. package/build/translations/it.js +1 -1
  27. package/build/translations/ja.js +1 -1
  28. package/build/translations/jv.js +1 -1
  29. package/build/translations/ko.js +1 -1
  30. package/build/translations/lt.js +1 -1
  31. package/build/translations/lv.js +1 -1
  32. package/build/translations/ms.js +1 -1
  33. package/build/translations/nl.js +1 -1
  34. package/build/translations/no.js +1 -1
  35. package/build/translations/pl.js +1 -1
  36. package/build/translations/pt-br.js +1 -1
  37. package/build/translations/pt.js +1 -1
  38. package/build/translations/ro.js +1 -1
  39. package/build/translations/ru.js +1 -1
  40. package/build/translations/sk.js +1 -1
  41. package/build/translations/sr-latn.js +1 -1
  42. package/build/translations/sr.js +1 -1
  43. package/build/translations/sv.js +1 -1
  44. package/build/translations/th.js +1 -1
  45. package/build/translations/tk.js +1 -1
  46. package/build/translations/tr.js +1 -1
  47. package/build/translations/tt.js +1 -1
  48. package/build/translations/ug.js +1 -1
  49. package/build/translations/uk.js +1 -1
  50. package/build/translations/ur.js +1 -1
  51. package/build/translations/vi.js +1 -1
  52. package/build/translations/zh-cn.js +1 -1
  53. package/build/translations/zh.js +1 -1
  54. package/ckeditor5-metadata.json +5 -0
  55. package/lang/contexts.json +2 -2
  56. package/lang/translations/af.po +5 -5
  57. package/lang/translations/ar.po +5 -5
  58. package/lang/translations/bg.po +5 -5
  59. package/lang/translations/bn.po +5 -5
  60. package/lang/translations/bs.po +4 -4
  61. package/lang/translations/ca.po +5 -5
  62. package/lang/translations/cs.po +5 -5
  63. package/lang/translations/da.po +5 -5
  64. package/lang/translations/de-ch.po +5 -5
  65. package/lang/translations/de.po +5 -5
  66. package/lang/translations/el.po +5 -5
  67. package/lang/translations/en-au.po +16 -16
  68. package/lang/translations/en.po +4 -4
  69. package/lang/translations/es-co.po +5 -5
  70. package/lang/translations/es.po +5 -5
  71. package/lang/translations/et.po +5 -5
  72. package/lang/translations/fa.po +5 -5
  73. package/lang/translations/fi.po +5 -5
  74. package/lang/translations/fr.po +5 -5
  75. package/lang/translations/gl.po +5 -5
  76. package/lang/translations/he.po +5 -5
  77. package/lang/translations/hi.po +5 -5
  78. package/lang/translations/hr.po +16 -16
  79. package/lang/translations/hu.po +5 -5
  80. package/lang/translations/id.po +5 -5
  81. package/lang/translations/it.po +5 -5
  82. package/lang/translations/ja.po +5 -5
  83. package/lang/translations/jv.po +5 -5
  84. package/lang/translations/ko.po +5 -5
  85. package/lang/translations/lt.po +5 -5
  86. package/lang/translations/lv.po +5 -5
  87. package/lang/translations/ms.po +5 -5
  88. package/lang/translations/nl.po +5 -5
  89. package/lang/translations/no.po +5 -5
  90. package/lang/translations/pl.po +5 -5
  91. package/lang/translations/pt-br.po +5 -5
  92. package/lang/translations/pt.po +5 -5
  93. package/lang/translations/ro.po +5 -5
  94. package/lang/translations/ru.po +5 -5
  95. package/lang/translations/sk.po +5 -5
  96. package/lang/translations/sr-latn.po +12 -12
  97. package/lang/translations/sr.po +12 -12
  98. package/lang/translations/sv.po +5 -5
  99. package/lang/translations/th.po +5 -5
  100. package/lang/translations/tk.po +5 -5
  101. package/lang/translations/tr.po +5 -5
  102. package/lang/translations/tt.po +4 -4
  103. package/lang/translations/ug.po +5 -5
  104. package/lang/translations/uk.po +5 -5
  105. package/lang/translations/ur.po +5 -5
  106. package/lang/translations/vi.po +5 -5
  107. package/lang/translations/zh-cn.po +5 -5
  108. package/lang/translations/zh.po +5 -5
  109. package/package.json +3 -3
  110. package/src/annotations/annotation.js +1 -1
  111. package/src/annotations/annotationcollection.js +1 -1
  112. package/src/annotations/annotations.js +1 -1
  113. package/src/annotations/annotationsuis.js +1 -1
  114. package/src/annotations/editorannotations.js +1 -1
  115. package/src/annotations/inlineannotations.js +1 -1
  116. package/src/annotations/narrowsidebar.js +1 -1
  117. package/src/annotations/sidebar.js +1 -1
  118. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  119. package/src/annotations/view/annotationview.js +1 -1
  120. package/src/annotations/view/sidebaritemview.js +1 -1
  121. package/src/annotations/view/sidebarview.js +1 -1
  122. package/src/annotations/widesidebar.js +1 -1
  123. package/src/augmentation.d.ts +2 -8
  124. package/src/comments/addcommentthreadcommand.js +1 -1
  125. package/src/comments/commentsarchive.js +1 -1
  126. package/src/comments/commentsarchiveui.js +1 -1
  127. package/src/comments/commentsediting.js +1 -1
  128. package/src/comments/commentsrepository.d.ts +16 -12
  129. package/src/comments/commentsrepository.js +1 -1
  130. package/src/comments/commentsui.js +1 -1
  131. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  132. package/src/comments/integrations/importword.js +1 -1
  133. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  134. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  135. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  136. package/src/comments/ui/commentthreadcontroller.js +1 -1
  137. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  138. package/src/comments/ui/view/basecommentview.js +1 -1
  139. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  140. package/src/comments/ui/view/commentcontentview.js +1 -1
  141. package/src/comments/ui/view/commentinputview.d.ts +6 -0
  142. package/src/comments/ui/view/commentinputview.js +1 -1
  143. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  144. package/src/comments/ui/view/commentslistview.js +1 -1
  145. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  146. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  147. package/src/comments/ui/view/commentthreadview.js +1 -1
  148. package/src/comments/ui/view/commentview.d.ts +2 -2
  149. package/src/comments/ui/view/commentview.js +1 -1
  150. package/src/comments.js +1 -1
  151. package/src/commentsonly.js +1 -1
  152. package/src/utils/common-translations.js +1 -1
  153. package/src/utils/createmutationobserver.js +1 -1
  154. package/theme/comment.css +12 -3
  155. package/theme/commentinput.css +8 -6
  156. package/theme/commentsarchive.css +10 -2
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30d9=['div','isActive','render','content','createCollection','ck-rounded-corners','mainView','clientHeight','ck-annotation-wrapper','height','bindTemplate','_mutationObserver','keystrokes','listenTo','clear','length','targetRect','Esc','add','element','destroy','setTemplate','set','focus','isDirty','ck-annotation-wrapper--active','fire','_updateHeight','type','detach'];(function(_0x45e1c2,_0x30d927){const _0x122adf=function(_0x2ea29e){while(--_0x2ea29e){_0x45e1c2['push'](_0x45e1c2['shift']());}};_0x122adf(++_0x30d927);}(_0x30d9,0x189));const _0x122a=function(_0x45e1c2,_0x30d927){_0x45e1c2=_0x45e1c2-0x0;let _0x122adf=_0x30d9[_0x45e1c2];return _0x122adf;};import{View as _0x5be48e}from'ckeditor5/src/ui';import{FocusTracker as _0x134843,KeystrokeHandler as _0x8a2ad5,uid as _0x56f177}from'ckeditor5/src/utils';import _0x8ad325 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x5be48e{constructor(_0x16f7ae,_0x2f1d6b){super(_0x16f7ae),this['id']=_0x56f177(),this['focusTracker']=new _0x134843(),this[_0x122a('0x9')]=new _0x8a2ad5(),this[_0x122a('0x9')][_0x122a('0x13')]('Esc',(_0x4a44e5,_0x585a12)=>this[_0x122a('0x17')](_0x122a('0xe'),_0x585a12)),this[_0x122a('0x13')](_0x122a('0xd'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x122a('0x6'),0x0),this[_0x122a('0x13')](_0x122a('0x1c'),!0x1),this[_0x122a('0x13')](_0x122a('0x15'),!0x1),this['set'](_0x122a('0xc'),0x0),this[_0x122a('0x13')](_0x122a('0x19'),''),this['_mutationObserver']=_0x8ad325(()=>this[_0x122a('0x18')]()),this['content']=this[_0x122a('0x1')](),this[_0x122a('0x0')][_0x122a('0xf')](_0x2f1d6b),this[_0x122a('0x3')]=_0x2f1d6b;const _0x3cf5a4=this[_0x122a('0x7')];this[_0x122a('0x12')]({'tag':_0x122a('0x1b'),'attributes':{'class':['ck',_0x122a('0x5'),_0x122a('0x2'),_0x3cf5a4['if'](_0x122a('0x1c'),_0x122a('0x16'))],'tabindex':-0x1},'children':this[_0x122a('0x0')]});}[_0x122a('0x1d')](){super[_0x122a('0x1d')](),this['focusTracker'][_0x122a('0xf')](this[_0x122a('0x10')]),this['keystrokes'][_0x122a('0xa')](this['element']),this[_0x122a('0x8')]['attach'](this['element']);}[_0x122a('0x11')](){this['content'][_0x122a('0xb')](),this[_0x122a('0x9')][_0x122a('0x11')](),this['focusTracker'][_0x122a('0x11')](),this[_0x122a('0x8')][_0x122a('0x1a')](),super[_0x122a('0x11')]();}['focus'](){this[_0x122a('0x10')][_0x122a('0x14')]();}[_0x122a('0x18')](){const _0x44edbf=this['element'][_0x122a('0x4')];_0x44edbf&&(this['height']=_0x44edbf);}}
23
+ const _0x45c7=['createCollection','focusTracker','element','listenTo','length','add','isActive','_updateHeight','isDirty','ck-annotation-wrapper','focus','fire','detach','targetRect','type','attach','content','_mutationObserver','setTemplate','mainView','div','Esc','render','bindTemplate','height','destroy','keystrokes','set'];(function(_0x3b38d4,_0x45c78e){const _0x24f3cf=function(_0x501dcb){while(--_0x501dcb){_0x3b38d4['push'](_0x3b38d4['shift']());}};_0x24f3cf(++_0x45c78e);}(_0x45c7,0x15d));const _0x24f3=function(_0x3b38d4,_0x45c78e){_0x3b38d4=_0x3b38d4-0x0;let _0x24f3cf=_0x45c7[_0x3b38d4];return _0x24f3cf;};import{View as _0x3b1032}from'ckeditor5/src/ui';import{FocusTracker as _0x228229,KeystrokeHandler as _0x5be834,uid as _0x1e3d9f}from'ckeditor5/src/utils';import _0x50ce0d from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class K extends _0x3b1032{constructor(_0x59d93a,_0x3f655f){super(_0x59d93a),this['id']=_0x1e3d9f(),this[_0x24f3('0x10')]=new _0x228229(),this[_0x24f3('0xd')]=new _0x5be834(),this[_0x24f3('0xd')][_0x24f3('0xe')]('Esc',(_0x393b3e,_0xd8c4d)=>this[_0x24f3('0x1a')](_0x24f3('0x8'),_0xd8c4d)),this[_0x24f3('0xe')](_0x24f3('0x0'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x24f3('0xe')](_0x24f3('0xb'),0x0),this[_0x24f3('0xe')]('isActive',!0x1),this['set'](_0x24f3('0x17'),!0x1),this['set'](_0x24f3('0x13'),0x0),this[_0x24f3('0xe')](_0x24f3('0x1'),''),this[_0x24f3('0x4')]=_0x50ce0d(()=>this[_0x24f3('0x16')]()),this[_0x24f3('0x3')]=this[_0x24f3('0xf')](),this['content'][_0x24f3('0x14')](_0x3f655f),this[_0x24f3('0x6')]=_0x3f655f;const _0x5661ce=this[_0x24f3('0xa')];this[_0x24f3('0x5')]({'tag':_0x24f3('0x7'),'attributes':{'class':['ck',_0x24f3('0x18'),'ck-rounded-corners',_0x5661ce['if'](_0x24f3('0x15'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x24f3('0x3')]});}[_0x24f3('0x9')](){super[_0x24f3('0x9')](),this[_0x24f3('0x10')][_0x24f3('0x14')](this[_0x24f3('0x11')]),this[_0x24f3('0xd')][_0x24f3('0x12')](this[_0x24f3('0x11')]),this['_mutationObserver'][_0x24f3('0x2')](this[_0x24f3('0x11')]);}['destroy'](){this[_0x24f3('0x3')]['clear'](),this[_0x24f3('0xd')]['destroy'](),this[_0x24f3('0x10')][_0x24f3('0xc')](),this[_0x24f3('0x4')][_0x24f3('0x1b')](),super[_0x24f3('0xc')]();}[_0x24f3('0x19')](){this['element'][_0x24f3('0x19')]();}['_updateHeight'](){const _0x3694f8=this[_0x24f3('0x11')]['clientHeight'];_0x3694f8&&(this[_0x24f3('0xb')]=_0x3694f8);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2aa5=['detach','content','_mutationObserver','ck-sidebar-item--no-animation','createCollection','updateHeight','attach','destroy','element','bind','set','bottom','bindTemplate','div','height','render','top','isAnimationDisabled'];(function(_0x162903,_0x2aa5ac){const _0x368fa0=function(_0x3e6b9e){while(--_0x3e6b9e){_0x162903['push'](_0x162903['shift']());}};_0x368fa0(++_0x2aa5ac);}(_0x2aa5,0x69));const _0x368f=function(_0x162903,_0x2aa5ac){_0x162903=_0x162903-0x0;let _0x368fa0=_0x2aa5[_0x162903];return _0x368fa0;};import{View as _0x2937a6}from'ckeditor5/src/ui';import{toUnit as _0x3565b4}from'ckeditor5/src/utils';import _0x50052f from'../../utils/createmutationobserver';const At=_0x3565b4('px');export default class C extends _0x2937a6{constructor(_0x1f828f){super(_0x1f828f),this['set']('top',0x0),this[_0x368f('0xd')](_0x368f('0x11'),0x0),this[_0x368f('0xc')](_0x368f('0xe'))['to'](this,_0x368f('0x1'),this,_0x368f('0x11'),(_0xa009e5,_0x1c5112)=>_0xa009e5+_0x1c5112),this[_0x368f('0xd')](_0x368f('0x2'),!0x1),this['_mutationObserver']=_0x50052f(()=>this[_0x368f('0x8')]()),this['_targetTop']=null,this[_0x368f('0x4')]=this[_0x368f('0x7')]();const _0x5d5815=this[_0x368f('0xf')];this['setTemplate']({'tag':_0x368f('0x10'),'attributes':{'class':['ck-sidebar-item',_0x5d5815['to'](_0x368f('0x2'),_0x323429=>_0x323429?_0x368f('0x6'):'')],'style':{'top':_0x5d5815['to'](_0x368f('0x1'),_0x545f59=>At(_0x545f59))}},'children':this[_0x368f('0x4')]});}[_0x368f('0x0')](){super[_0x368f('0x0')](),this[_0x368f('0x5')][_0x368f('0x9')](this[_0x368f('0xb')]);}[_0x368f('0x8')](){const _0x1d5ac6=this[_0x368f('0xb')]['clientHeight'];_0x1d5ac6&&(this[_0x368f('0x11')]=_0x1d5ac6);}[_0x368f('0xa')](){this[_0x368f('0x4')]['clear'](),this[_0x368f('0x5')][_0x368f('0x3')](),super[_0x368f('0xa')]();}}
23
+ const _0x2263=['clear','div','element','bindTemplate','bind','_targetTop','render','updateHeight','setTemplate','set','ck-sidebar-item','detach','ck-sidebar-item--no-animation','clientHeight','createCollection','top','content','destroy','isAnimationDisabled','_mutationObserver','bottom','height'];(function(_0xf32d2c,_0x226348){const _0x5149b1=function(_0x2930d3){while(--_0x2930d3){_0xf32d2c['push'](_0xf32d2c['shift']());}};_0x5149b1(++_0x226348);}(_0x2263,0xa3));const _0x5149=function(_0xf32d2c,_0x226348){_0xf32d2c=_0xf32d2c-0x0;let _0x5149b1=_0x2263[_0xf32d2c];return _0x5149b1;};import{View as _0x5bcd7b}from'ckeditor5/src/ui';import{toUnit as _0x3d6290}from'ckeditor5/src/utils';import _0x34bebe from'../../utils/createmutationobserver';const Ht=_0x3d6290('px');export default class _t extends _0x5bcd7b{constructor(_0x46ce31){super(_0x46ce31),this['set'](_0x5149('0x6'),0x0),this['set']('height',0x0),this[_0x5149('0x11')](_0x5149('0xb'))['to'](this,'top',this,_0x5149('0xc'),(_0x12ca9b,_0x74c723)=>_0x12ca9b+_0x74c723),this[_0x5149('0x0')](_0x5149('0x9'),!0x1),this[_0x5149('0xa')]=_0x34bebe(()=>this[_0x5149('0x14')]()),this[_0x5149('0x12')]=null,this[_0x5149('0x7')]=this[_0x5149('0x5')]();const _0xd995a8=this[_0x5149('0x10')];this[_0x5149('0x15')]({'tag':_0x5149('0xe'),'attributes':{'class':[_0x5149('0x1'),_0xd995a8['to']('isAnimationDisabled',_0x45f29c=>_0x45f29c?_0x5149('0x3'):'')],'style':{'top':_0xd995a8['to'](_0x5149('0x6'),_0x5e8e54=>Ht(_0x5e8e54))}},'children':this[_0x5149('0x7')]});}[_0x5149('0x13')](){super[_0x5149('0x13')](),this['_mutationObserver']['attach'](this[_0x5149('0xf')]);}[_0x5149('0x14')](){const _0x5ad0c7=this[_0x5149('0xf')][_0x5149('0x4')];_0x5ad0c7&&(this[_0x5149('0xc')]=_0x5ad0c7);}[_0x5149('0x8')](){this[_0x5149('0x7')][_0x5149('0xd')](),this['_mutationObserver'][_0x5149('0x2')](),super[_0x5149('0x8')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c24=['number','ck-reset','bindTemplate','minHeight','class','ck-sidebar','setTemplate','set'];(function(_0x377431,_0x1c2441){const _0x4e06fb=function(_0x2573b3){while(--_0x2573b3){_0x377431['push'](_0x377431['shift']());}};_0x4e06fb(++_0x1c2441);}(_0x1c24,0x14d));const _0x4e06=function(_0x377431,_0x1c2441){_0x377431=_0x377431-0x0;let _0x4e06fb=_0x1c24[_0x377431];return _0x4e06fb;};import{View as _0xaf7f05}from'ckeditor5/src/ui';import{toUnit as _0x3fb3e7}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x3fb3e7('px');export default class T extends _0xaf7f05{constructor(_0xf25959){super(_0xf25959);const _0x44a6a4=this[_0x4e06('0x5')];this[_0x4e06('0x2')](_0x4e06('0x6'),0x0),this[_0x4e06('0x2')](_0x4e06('0x7'),''),this['list']=this['createCollection'](),this[_0x4e06('0x1')]({'tag':'div','attributes':{'class':['ck',_0x4e06('0x0'),_0x4e06('0x4'),_0x44a6a4['to'](_0x4e06('0x7'))],'style':{'minHeight':_0x44a6a4['to'](_0x4e06('0x6'),_0x5bf99f=>_0x4e06('0x3')==typeof _0x5bf99f?At(_0x5bf99f+0xa):null)}},'children':this['list']});}}
23
+ const _0xe002=['list','div','set','class','createCollection','ck-reset','number','ck-sidebar'];(function(_0x5b2464,_0xe00286){const _0x3f6b19=function(_0x358ee8){while(--_0x358ee8){_0x5b2464['push'](_0x5b2464['shift']());}};_0x3f6b19(++_0xe00286);}(_0xe002,0x1e3));const _0x3f6b=function(_0x5b2464,_0xe00286){_0x5b2464=_0x5b2464-0x0;let _0x3f6b19=_0xe002[_0x5b2464];return _0x3f6b19;};import{View as _0x33b6a1}from'ckeditor5/src/ui';import{toUnit as _0x2505f5}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const Ht=_0x2505f5('px');export default class vt extends _0x33b6a1{constructor(_0x2f4676){super(_0x2f4676);const _0x2488da=this['bindTemplate'];this[_0x3f6b('0x7')]('minHeight',0x0),this[_0x3f6b('0x7')](_0x3f6b('0x0'),''),this[_0x3f6b('0x5')]=this[_0x3f6b('0x1')](),this['setTemplate']({'tag':_0x3f6b('0x6'),'attributes':{'class':['ck',_0x3f6b('0x4'),_0x3f6b('0x2'),_0x2488da['to'](_0x3f6b('0x0'))],'style':{'minHeight':_0x2488da['to']('minHeight',_0x4be6f2=>_0x3f6b('0x3')==typeof _0x4be6f2?Ht(_0x4be6f2+0xa):null)}},'children':this['list']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1429=['setActiveAnnotation','switchTo','editors','ready','change:container','addEventListener','listenTo','detach','wideSidebar','remove','plugins','updateTargetRect','_activeAnnotation','widesidebar-attach-already-attached','resize','register','high','annotations','getOrderedSelectedAnnotations','refresh','uiUpdate','rearrange','_destroyEditorAnnotationsIntegration','cancel','stopListening','activeAnnotation','set:container','init','add','_refreshPositioningDebounced','_editorAnnotations','focus','EditorAnnotations','refreshPositioning','set','requires','from','context','attach','hasDomSelection','get','_attachToContainer','stop','_integrateWithEditorAnnotations','removeEventListener','addAnnotation','blur','_annotations','pluginName','destroy','widesidebar-detach-not-attached','WideSidebar','_detachFromContainer','isAttached'];(function(_0x165336,_0x14290f){const _0x49fbed=function(_0x40924d){while(--_0x40924d){_0x165336['push'](_0x165336['shift']());}};_0x49fbed(++_0x14290f);}(_0x1429,0xc1));const _0x49fb=function(_0x165336,_0x14290f){_0x165336=_0x165336-0x0;let _0x49fbed=_0x1429[_0x165336];return _0x49fbed;};import{ContextPlugin as _0x3a12e5,Context as _0x2ee9b4}from'ckeditor5/src/core';import _0x508d1c from'./annotationsuis';import _0x3f1812 from'./sidebar';import{CKEditorError as _0x5ced89,Collection as _0x21728d}from'ckeditor5/src/utils';import{debounce as _0x341554}from'lodash-es';import _0x48acd0 from'./editorannotations';export default class i extends _0x3a12e5{static get[_0x49fb('0x4')](){return[_0x3f1812,_0x508d1c];}static get[_0x49fb('0x11')](){return _0x49fb('0x14');}constructor(_0x47131b){super(_0x47131b),this[_0x49fb('0x16')]=!0x1,this[_0x49fb('0x3')](_0x49fb('0x30'),null),this[_0x49fb('0x28')]=null,this[_0x49fb('0x35')]=new _0x21728d(),this[_0x49fb('0x34')]=_0x341554(()=>{this[_0x49fb('0x28')][_0x49fb('0x2')]();},0xfa,{'leading':!0x1});}[_0x49fb('0x32')](){const _0x1c4ce1=this[_0x49fb('0x6')]['plugins'][_0x49fb('0x9')](_0x508d1c),_0x5e3c33=this['context'][_0x49fb('0x21')][_0x49fb('0x9')](_0x3f1812);_0x1c4ce1[_0x49fb('0x26')]('wideSidebar',this),_0x5e3c33['container']&&_0x1c4ce1[_0x49fb('0x18')](_0x49fb('0x1f'));}[_0x49fb('0x17')](_0x17325a){if(_0x17325a===this[_0x49fb('0x30')])return;const _0x4af443=this[_0x49fb('0x6')][_0x49fb('0x21')][_0x49fb('0x9')](_0x3f1812);_0x4af443[_0x49fb('0x23')]=_0x17325a;const _0x27a82f=this[_0x49fb('0x30')];this[_0x49fb('0x30')]=_0x17325a,_0x4af443[_0x49fb('0x2a')]({'blurredAnnotation':_0x27a82f,'activatedAnnotation':this['activeAnnotation']});}[_0x49fb('0x7')](_0x191613){this[_0x49fb('0x28')]=_0x191613;const _0x465f1=this[_0x49fb('0x6')]['plugins'][_0x49fb('0x9')](_0x3f1812);if(_0x465f1[_0x49fb('0x10')]=_0x191613,this[_0x49fb('0x16')])throw new _0x5ced89(_0x49fb('0x24'),this);this['isAttached']=!0x0,this[_0x49fb('0x1d')](_0x465f1,_0x49fb('0x31'),()=>{this[_0x49fb('0x1e')](),this[_0x49fb('0x1d')](_0x465f1,_0x49fb('0x1b'),_0x2ed381=>{_0x2ed381['off'](),this[_0x49fb('0x7')](_0x191613);});}),_0x465f1[_0x49fb('0xa')]({'viewClass':'ck-sidebar--wide'});const _0x1e19db=_0x28b025=>{_0x28b025[_0x49fb('0x22')](),_0x465f1[_0x49fb('0xe')](_0x28b025);};for(const _0x2fde58 of _0x191613)_0x1e19db(_0x2fde58);this[_0x49fb('0x1d')](_0x191613,_0x49fb('0x33'),(_0x2570c2,_0x4bf224)=>{_0x1e19db(_0x4bf224);}),this['listenTo'](_0x191613,_0x49fb('0x20'),(_0x247a13,_0x16c24e,_0x34670b)=>{_0x465f1[_0x49fb('0x2c')]({'removedAnnotation':_0x16c24e,'previousAnnotation':_0x191613[_0x49fb('0x9')](_0x34670b-0x1),'nextAnnotation':_0x191613['get'](_0x34670b+0x1)}),_0x16c24e===this[_0x49fb('0x30')]&&this[_0x49fb('0x17')](null);},{'priority':'high'}),this[_0x49fb('0x1d')](_0x191613,_0x49fb('0x0'),(_0x85a168,_0x3174e2)=>{this[_0x49fb('0x17')](_0x3174e2);}),this[_0x49fb('0x1d')](_0x191613,_0x49fb('0xf'),()=>{this[_0x49fb('0x17')](null);});const _0x144e5a=this[_0x49fb('0x6')]instanceof _0x2ee9b4?this['context'][_0x49fb('0x19')]:new _0x21728d([this['context']]);for(const _0x597c0b of _0x144e5a)this['_integrateWithEditorAnnotations'](_0x597c0b);this[_0x49fb('0x1d')](_0x144e5a,'add',(_0x181984,_0x2f91ce)=>{this[_0x49fb('0x1d')](_0x2f91ce,_0x49fb('0x1a'),()=>{this[_0x49fb('0xc')](_0x2f91ce);});}),this['listenTo'](_0x144e5a,'remove',(_0x2a2300,_0x786598)=>{_0x786598[_0x49fb('0x21')]['has'](_0x49fb('0x1'))&&this[_0x49fb('0x2d')](_0x786598[_0x49fb('0x21')]['get'](_0x49fb('0x1')));}),window[_0x49fb('0x1c')](_0x49fb('0x25'),this[_0x49fb('0x34')]),this[_0x49fb('0x28')][_0x49fb('0x2')]();}[_0x49fb('0x1e')](){if(!this['isAttached'])throw new _0x5ced89(_0x49fb('0x13'),this);this[_0x49fb('0x17')](null);const _0x157074=this['context'][_0x49fb('0x21')][_0x49fb('0x9')](_0x3f1812);_0x157074[_0x49fb('0x15')](this[_0x49fb('0x28')]),this['stopListening'](_0x157074),this[_0x49fb('0x2f')](this[_0x49fb('0x28')]),this[_0x49fb('0x6')]instanceof _0x2ee9b4&&this[_0x49fb('0x2f')](this[_0x49fb('0x6')][_0x49fb('0x19')]);for(const _0x3f2da2 of Array[_0x49fb('0x5')](this['_editorAnnotations']))this[_0x49fb('0x2d')](_0x3f2da2);window[_0x49fb('0xd')](_0x49fb('0x25'),this[_0x49fb('0x34')]),this[_0x49fb('0x34')][_0x49fb('0x2e')](),this[_0x49fb('0x30')]=null,this[_0x49fb('0x16')]=!0x1,this[_0x49fb('0x28')]=null;}[_0x49fb('0x12')](){this[_0x49fb('0x16')]&&this[_0x49fb('0x1e')]();}[_0x49fb('0xc')](_0x1617ff){const _0x58ea47=_0x1617ff[_0x49fb('0x21')][_0x49fb('0x9')](_0x48acd0);if(!_0x58ea47)return;const _0x3ad3d1=()=>{const _0x1649b2=_0x58ea47[_0x49fb('0x29')]({'annotations':this[_0x49fb('0x28')],'activeAnnotation':this['activeAnnotation']});this[_0x49fb('0x17')](_0x1649b2[0x0]||null);};this['listenTo'](_0x58ea47,_0x49fb('0x2a'),_0x3ad3d1),this[_0x49fb('0x1d')](_0x58ea47,'blur',(_0x19159a,{isAnnotationTracked:_0x16bd4f})=>{this[_0x49fb('0x30')]&&_0x16bd4f(this[_0x49fb('0x30')])&&this[_0x49fb('0x17')](null);}),this['listenTo'](_0x58ea47,_0x49fb('0x2b'),()=>{this[_0x49fb('0x34')]();}),this[_0x49fb('0x1d')](this[_0x49fb('0x28')],_0x49fb('0xf'),_0x3a3d22=>{_0x58ea47[_0x49fb('0x8')]()&&(_0x3ad3d1(),_0x3a3d22[_0x49fb('0xb')]());},{'priority':_0x49fb('0x27')}),this[_0x49fb('0x35')][_0x49fb('0x33')](_0x58ea47);}[_0x49fb('0x2d')](_0x30479c){this[_0x49fb('0x2f')](_0x30479c),this[_0x49fb('0x35')][_0x49fb('0x20')](_0x30479c);}}
23
+ const _0xb531=['detach','set','_annotations','high','cancel','removeEventListener','addAnnotation','activeAnnotation','get','ck-sidebar--wide','has','_detachFromContainer','widesidebar-attach-already-attached','ready','pluginName','attach','container','requires','widesidebar-detach-not-attached','_refreshPositioningDebounced','wideSidebar','annotations','listenTo','remove','updateTargetRect','blur','refreshPositioning','set:container','register','destroy','getOrderedSelectedAnnotations','_activeAnnotation','add','EditorAnnotations','_attachToContainer','from','change:container','resize','plugins','context','init','focus','uiUpdate','refresh','_integrateWithEditorAnnotations','isAttached','setActiveAnnotation','rearrange','_editorAnnotations','stopListening'];(function(_0x10d57d,_0xb5315a){const _0xe9ed4f=function(_0x53d783){while(--_0x53d783){_0x10d57d['push'](_0x10d57d['shift']());}};_0xe9ed4f(++_0xb5315a);}(_0xb531,0xaa));const _0xe9ed=function(_0x10d57d,_0xb5315a){_0x10d57d=_0x10d57d-0x0;let _0xe9ed4f=_0xb531[_0x10d57d];return _0xe9ed4f;};import{ContextPlugin as _0x38e3be,Context as _0x2e82be}from'ckeditor5/src/core';import _0x19d83c from'./annotationsuis';import _0x2862eb from'./sidebar';import{CKEditorError as _0x3c99f2,Collection as _0x373865}from'ckeditor5/src/utils';import{debounce as _0x187bb1}from'lodash-es';import _0x1dc0b9 from'./editorannotations';export default class i extends _0x38e3be{static get[_0xe9ed('0x2f')](){return[_0x2862eb,_0x19d83c];}static get[_0xe9ed('0x2c')](){return'WideSidebar';}constructor(_0x4b2ca5){super(_0x4b2ca5),this[_0xe9ed('0x19')]=!0x1,this[_0xe9ed('0x1f')]('activeAnnotation',null),this[_0xe9ed('0x1')]=null,this[_0xe9ed('0x1c')]=new _0x373865(),this['_refreshPositioningDebounced']=_0x187bb1(()=>{this[_0xe9ed('0x1')][_0xe9ed('0x6')]();},0xfa,{'leading':!0x1});}[_0xe9ed('0x14')](){const _0x6d2161=this[_0xe9ed('0x13')][_0xe9ed('0x12')][_0xe9ed('0x26')](_0x19d83c),_0x2c3b4c=this['context'][_0xe9ed('0x12')]['get'](_0x2862eb);_0x6d2161[_0xe9ed('0x8')](_0xe9ed('0x0'),this),_0x2c3b4c[_0xe9ed('0x2e')]&&_0x6d2161['switchTo']('wideSidebar');}[_0xe9ed('0x1a')](_0x366bf3){if(_0x366bf3===this[_0xe9ed('0x25')])return;const _0x64694f=this['context'][_0xe9ed('0x12')][_0xe9ed('0x26')](_0x2862eb);_0x64694f[_0xe9ed('0xb')]=_0x366bf3;const _0x32dbeb=this[_0xe9ed('0x25')];this[_0xe9ed('0x25')]=_0x366bf3,_0x64694f[_0xe9ed('0x17')]({'blurredAnnotation':_0x32dbeb,'activatedAnnotation':this['activeAnnotation']});}[_0xe9ed('0x2d')](_0x614ac6){this['annotations']=_0x614ac6;const _0x33ce4e=this[_0xe9ed('0x13')][_0xe9ed('0x12')][_0xe9ed('0x26')](_0x2862eb);if(_0x33ce4e[_0xe9ed('0x20')]=_0x614ac6,this[_0xe9ed('0x19')])throw new _0x3c99f2(_0xe9ed('0x2a'),this);this[_0xe9ed('0x19')]=!0x0,this[_0xe9ed('0x2')](_0x33ce4e,_0xe9ed('0x7'),()=>{this[_0xe9ed('0x1e')](),this[_0xe9ed('0x2')](_0x33ce4e,_0xe9ed('0x10'),_0x5406b6=>{_0x5406b6['off'](),this[_0xe9ed('0x2d')](_0x614ac6);});}),_0x33ce4e[_0xe9ed('0xe')]({'viewClass':_0xe9ed('0x27')});const _0x5c8600=_0x7c9ec5=>{_0x7c9ec5[_0xe9ed('0x4')](),_0x33ce4e[_0xe9ed('0x24')](_0x7c9ec5);};for(const _0x48a2cb of _0x614ac6)_0x5c8600(_0x48a2cb);this[_0xe9ed('0x2')](_0x614ac6,'add',(_0x233985,_0x21055f)=>{_0x5c8600(_0x21055f);}),this['listenTo'](_0x614ac6,_0xe9ed('0x3'),(_0x551a40,_0x2fc829,_0xd80f66)=>{_0x33ce4e[_0xe9ed('0x1b')]({'removedAnnotation':_0x2fc829,'previousAnnotation':_0x614ac6[_0xe9ed('0x26')](_0xd80f66-0x1),'nextAnnotation':_0x614ac6['get'](_0xd80f66+0x1)}),_0x2fc829===this['activeAnnotation']&&this[_0xe9ed('0x1a')](null);},{'priority':'high'}),this[_0xe9ed('0x2')](_0x614ac6,_0xe9ed('0x15'),(_0x1021b9,_0x1ccdd3)=>{this[_0xe9ed('0x1a')](_0x1ccdd3);}),this[_0xe9ed('0x2')](_0x614ac6,'blur',()=>{this[_0xe9ed('0x1a')](null);});const _0x540beb=this[_0xe9ed('0x13')]instanceof _0x2e82be?this[_0xe9ed('0x13')]['editors']:new _0x373865([this['context']]);for(const _0x2def98 of _0x540beb)this[_0xe9ed('0x18')](_0x2def98);this[_0xe9ed('0x2')](_0x540beb,_0xe9ed('0xc'),(_0x5a1d9e,_0x2d2fd3)=>{this[_0xe9ed('0x2')](_0x2d2fd3,_0xe9ed('0x2b'),()=>{this[_0xe9ed('0x18')](_0x2d2fd3);});}),this[_0xe9ed('0x2')](_0x540beb,_0xe9ed('0x3'),(_0x466fdc,_0x697afb)=>{_0x697afb[_0xe9ed('0x12')][_0xe9ed('0x28')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x697afb[_0xe9ed('0x12')][_0xe9ed('0x26')](_0xe9ed('0xd')));}),window['addEventListener'](_0xe9ed('0x11'),this[_0xe9ed('0x31')]),this[_0xe9ed('0x1')][_0xe9ed('0x6')]();}[_0xe9ed('0x1e')](){if(!this[_0xe9ed('0x19')])throw new _0x3c99f2(_0xe9ed('0x30'),this);this['setActiveAnnotation'](null);const _0x365ae7=this[_0xe9ed('0x13')]['plugins'][_0xe9ed('0x26')](_0x2862eb);_0x365ae7[_0xe9ed('0x29')](this[_0xe9ed('0x1')]),this[_0xe9ed('0x1d')](_0x365ae7),this[_0xe9ed('0x1d')](this[_0xe9ed('0x1')]),this[_0xe9ed('0x13')]instanceof _0x2e82be&&this[_0xe9ed('0x1d')](this[_0xe9ed('0x13')]['editors']);for(const _0x19cce3 of Array[_0xe9ed('0xf')](this[_0xe9ed('0x1c')]))this['_destroyEditorAnnotationsIntegration'](_0x19cce3);window[_0xe9ed('0x23')](_0xe9ed('0x11'),this[_0xe9ed('0x31')]),this[_0xe9ed('0x31')][_0xe9ed('0x22')](),this[_0xe9ed('0x25')]=null,this[_0xe9ed('0x19')]=!0x1,this[_0xe9ed('0x1')]=null;}[_0xe9ed('0x9')](){this['isAttached']&&this[_0xe9ed('0x1e')]();}[_0xe9ed('0x18')](_0x344552){const _0xacd74e=_0x344552['plugins'][_0xe9ed('0x26')](_0x1dc0b9);if(!_0xacd74e)return;const _0x324d28=()=>{const _0x2cd2a7=_0xacd74e[_0xe9ed('0xa')]({'annotations':this['annotations'],'activeAnnotation':this[_0xe9ed('0x25')]});this[_0xe9ed('0x1a')](_0x2cd2a7[0x0]||null);};this['listenTo'](_0xacd74e,'refresh',_0x324d28),this['listenTo'](_0xacd74e,_0xe9ed('0x5'),(_0x4f9bf4,{isAnnotationTracked:_0x468387})=>{this['activeAnnotation']&&_0x468387(this[_0xe9ed('0x25')])&&this['setActiveAnnotation'](null);}),this[_0xe9ed('0x2')](_0xacd74e,_0xe9ed('0x16'),()=>{this['_refreshPositioningDebounced']();}),this[_0xe9ed('0x2')](this[_0xe9ed('0x1')],_0xe9ed('0x5'),_0x4e037f=>{_0xacd74e['hasDomSelection']()&&(_0x324d28(),_0x4e037f['stop']());},{'priority':_0xe9ed('0x21')}),this[_0xe9ed('0x1c')]['add'](_0xacd74e);}['_destroyEditorAnnotationsIntegration'](_0x3ea05c){this[_0xe9ed('0x1d')](_0x3ea05c),this[_0xe9ed('0x1c')][_0xe9ed('0x3')](_0x3ea05c);}}
@@ -1,4 +1,4 @@
1
- import type { CommentsConfig, SidebarConfig, Annotations, EditorAnnotations, CommentsRepository, CommentsUI } from './index';
1
+ import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index';
2
2
  declare module '@ckeditor/ckeditor5-core' {
3
3
  interface EditorConfig {
4
4
  /**
@@ -37,16 +37,10 @@ declare module '@ckeditor/ckeditor5-core' {
37
37
  * ```
38
38
  */
39
39
  commentsOnly?: boolean;
40
- /**
41
- * The license key for the CKEditor 5 premium features.
42
- *
43
- * If you do not have a key yet, please [contact us](https://ckeditor.com/contact/) or
44
- * [order a trial](https://orders.ckeditor.com/trial/premium-features).
45
- */
46
- licenseKey?: string;
47
40
  }
48
41
  interface PluginsMap {
49
42
  [Annotations.pluginName]: Annotations;
43
+ [AnnotationsUIs.pluginName]: AnnotationsUIs;
50
44
  [EditorAnnotations.pluginName]: EditorAnnotations;
51
45
  [CommentsRepository.pluginName]: CommentsRepository;
52
46
  [CommentsUI.pluginName]: CommentsUI;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43db=['change','_trimToContent','_hasContent','backward','$textProxy','selection','isObject','getLastMatchingPosition','comment:','getItems','_itemIsContent','createRange','start','schema','end','push','getRanges','model','isEnabled','addMarker','document','editor','item'];(function(_0x15e883,_0x43db90){const _0x1a5123=function(_0x460b1e){while(--_0x460b1e){_0x15e883['push'](_0x15e883['shift']());}};_0x1a5123(++_0x43db90);}(_0x43db,0xc0));const _0x1a51=function(_0x15e883,_0x43db90){_0x15e883=_0x15e883-0x0;let _0x1a5123=_0x43db[_0x15e883];return _0x1a5123;};import{Command as _0xe58081}from'ckeditor5/src/core';import{uid as _0x167345}from'ckeditor5/src/utils';export default class q extends _0xe58081{['refresh'](){const _0x178c0c=this[_0x1a51('0xd')]['model'][_0x1a51('0xc')]['selection'];for(const _0x159ec9 of _0x178c0c[_0x1a51('0x8')]())if(this[_0x1a51('0x11')](_0x159ec9))return void(this['isEnabled']=!0x0);this[_0x1a51('0xa')]=!0x1;}['execute']({threadId:_0x31581f=_0x167345()}={}){const _0x313e7e=this[_0x1a51('0xd')]['model'],_0x386f92=[];for(const _0x44f0ef of _0x313e7e['document'][_0x1a51('0x14')][_0x1a51('0x8')]())this[_0x1a51('0x11')](_0x44f0ef)&&_0x386f92[_0x1a51('0x7')](this[_0x1a51('0x10')](_0x44f0ef));_0x313e7e[_0x1a51('0xf')](_0x3bc1c0=>{for(const _0x1f8c3e of _0x386f92){const _0x44f1ec=_0x167345()['substr'](0x1,0x5),_0x2eb46d=_0x1a51('0x0')+_0x31581f+':'+_0x44f1ec;_0x3bc1c0[_0x1a51('0xb')](_0x2eb46d,{'range':_0x1f8c3e,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x1a51('0x11')](_0x415397){for(const _0x870496 of _0x415397[_0x1a51('0x1')]())if(this[_0x1a51('0x2')](_0x870496))return!0x0;return!0x1;}[_0x1a51('0x2')](_0x4bd5a6){return _0x4bd5a6['is'](_0x1a51('0x13'))||this[_0x1a51('0xd')][_0x1a51('0x9')][_0x1a51('0x5')][_0x1a51('0x15')](_0x4bd5a6)&&!_0x4bd5a6['is']('element','tableCell');}['_trimToContent'](_0x55e5c8){const _0x17cb79=_0x3f006b=>!this[_0x1a51('0x2')](_0x3f006b[_0x1a51('0xe')]),_0x48b2a6=_0x55e5c8[_0x1a51('0x4')][_0x1a51('0x16')](_0x17cb79),_0x4474a5=_0x55e5c8[_0x1a51('0x6')][_0x1a51('0x16')](_0x17cb79,{'direction':_0x1a51('0x12')});return this['editor'][_0x1a51('0x9')][_0x1a51('0x3')](_0x48b2a6,_0x4474a5);}}
23
+ const _0x1ac1=['comment:','document','_trimToContent','createRange','editor','substr','push','$textProxy','addMarker','_hasContent','isObject','model','_itemIsContent','getRanges','start','getLastMatchingPosition','change','schema','item','getItems','isEnabled','selection'];(function(_0x1b8b1c,_0x1ac1fc){const _0x3b59d2=function(_0xf68355){while(--_0xf68355){_0x1b8b1c['push'](_0x1b8b1c['shift']());}};_0x3b59d2(++_0x1ac1fc);}(_0x1ac1,0xd7));const _0x3b59=function(_0x1b8b1c,_0x1ac1fc){_0x1b8b1c=_0x1b8b1c-0x0;let _0x3b59d2=_0x1ac1[_0x1b8b1c];return _0x3b59d2;};import{Command as _0x169df1}from'ckeditor5/src/core';import{uid as _0xb5a2ad}from'ckeditor5/src/utils';export default class u extends _0x169df1{['refresh'](){const _0x352510=this[_0x3b59('0x9')][_0x3b59('0x10')]['document'][_0x3b59('0x4')];for(const _0x2c7352 of _0x352510[_0x3b59('0x12')]())if(this[_0x3b59('0xe')](_0x2c7352))return void(this[_0x3b59('0x3')]=!0x0);this['isEnabled']=!0x1;}['execute']({threadId:_0x3bd713=_0xb5a2ad()}={}){const _0x5543ad=this[_0x3b59('0x9')][_0x3b59('0x10')],_0x3ae31c=[];for(const _0x123a35 of _0x5543ad[_0x3b59('0x6')]['selection']['getRanges']())this[_0x3b59('0xe')](_0x123a35)&&_0x3ae31c[_0x3b59('0xb')](this[_0x3b59('0x7')](_0x123a35));_0x5543ad[_0x3b59('0x15')](_0xeb1837=>{for(const _0x24d6f9 of _0x3ae31c){const _0xfb796d=_0xb5a2ad()[_0x3b59('0xa')](0x1,0x5),_0x52285a=_0x3b59('0x5')+_0x3bd713+':'+_0xfb796d;_0xeb1837[_0x3b59('0xd')](_0x52285a,{'range':_0x24d6f9,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x3b59('0xe')](_0x26d952){for(const _0x385bf4 of _0x26d952[_0x3b59('0x2')]())if(this['_itemIsContent'](_0x385bf4))return!0x0;return!0x1;}[_0x3b59('0x11')](_0x27154a){return _0x27154a['is'](_0x3b59('0xc'))||this[_0x3b59('0x9')][_0x3b59('0x10')][_0x3b59('0x0')][_0x3b59('0xf')](_0x27154a)&&!_0x27154a['is']('element','tableCell');}['_trimToContent'](_0x45e7e9){const _0xc000db=_0x1471b8=>!this['_itemIsContent'](_0x1471b8[_0x3b59('0x1')]),_0x568808=_0x45e7e9[_0x3b59('0x13')]['getLastMatchingPosition'](_0xc000db),_0x17694a=_0x45e7e9['end'][_0x3b59('0x14')](_0xc000db,{'direction':'backward'});return this[_0x3b59('0x9')][_0x3b59('0x10')][_0x3b59('0x8')](_0x568808,_0x17694a);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x222d=['resolveCommentThread','reopenCommentThread','resolvedAt','getCommentThread','init','remove','has','removeCommentThread','pluginName','_calculatePosition','plugins','add','CommentsArchive','listenTo','context','resolvedThreads','findIndex','get','addCommentThread','highest'];(function(_0x243112,_0x222da9){const _0x1f728e=function(_0x3ac324){while(--_0x3ac324){_0x243112['push'](_0x243112['shift']());}};_0x1f728e(++_0x222da9);}(_0x222d,0xfc));const _0x1f72=function(_0x243112,_0x222da9){_0x243112=_0x243112-0x0;let _0x1f728e=_0x222d[_0x243112];return _0x1f728e;};import{ContextPlugin as _0x19e4f1}from'ckeditor5/src/core';import{Collection as _0x4027f6}from'ckeditor5/src/utils';import _0x5814d9 from'./commentsrepository';import _0xcae30d from'../annotations/annotations';export default class p extends _0x19e4f1{static get[_0x1f72('0x10')](){return _0x1f72('0x0');}static get['requires'](){return[_0x5814d9,_0xcae30d];}constructor(_0x4deb8b){super(_0x4deb8b),this[_0x1f72('0x3')]=new _0x4027f6();}[_0x1f72('0xc')](){const _0x4e26e7=this[_0x1f72('0x2')],_0x17088c=_0x4e26e7[_0x1f72('0x12')][_0x1f72('0x5')](_0x5814d9),_0x102cd8=_0x4e26e7[_0x1f72('0x12')][_0x1f72('0x5')](_0xcae30d);this[_0x1f72('0x1')](_0x17088c,_0x1f72('0x6'),(_0x32a478,{threadId:_0x207e81,resolvedAt:_0x373275,deletedAt:_0x5ba706})=>{if(_0x373275&&!_0x5ba706){const _0x347d7e=_0x17088c['getCommentThread'](_0x207e81);this[_0x1f72('0x3')][_0x1f72('0x13')](_0x347d7e,this[_0x1f72('0x11')](_0x373275));}}),this[_0x1f72('0x1')](_0x17088c,_0x1f72('0x8'),(_0x362a00,{threadId:_0x499a4d,resolvedAt:_0x2c2cff})=>{const _0x2418be=_0x17088c[_0x1f72('0xb')](_0x499a4d);this[_0x1f72('0x3')][_0x1f72('0x13')](_0x2418be,this[_0x1f72('0x11')](_0x2c2cff));},{'priority':_0x1f72('0x7')}),this[_0x1f72('0x1')](_0x17088c,_0x1f72('0x9'),(_0x182255,{threadId:_0x58095c})=>{const _0xf6745e=_0x17088c[_0x1f72('0xb')](_0x58095c);this['resolvedThreads'][_0x1f72('0xe')](_0xf6745e)&&this[_0x1f72('0x3')][_0x1f72('0xd')](_0xf6745e);},{'priority':'highest'}),this[_0x1f72('0x1')](_0x17088c,_0x1f72('0xf'),(_0x3e644f,{threadId:_0x4b11f3})=>{const _0xf9c41c=_0x17088c[_0x1f72('0xb')](_0x4b11f3);this['resolvedThreads'][_0x1f72('0xe')](_0xf9c41c)&&this[_0x1f72('0x3')]['remove'](_0xf9c41c);},{'priority':_0x1f72('0x7')}),this[_0x1f72('0x1')](_0x102cd8['collection'],'focus',(_0x102305,_0x4b07b3)=>{_0x4b07b3['isActive']=!0x0,_0x102cd8['activate'](_0x4b07b3);});}[_0x1f72('0x11')](_0x3a435d){const _0x36798a=[...this[_0x1f72('0x3')]][_0x1f72('0x4')](_0x65d1af=>_0x65d1af[_0x1f72('0xa')]<_0x3a435d);return _0x36798a>-0x1?_0x36798a:this[_0x1f72('0x3')]['length'];}}
23
+ const _0xb9e5=['listenTo','resolveCommentThread','getCommentThread','activate','pluginName','resolvedThreads','get','has','remove','findIndex','highest','plugins','length','isActive','resolvedAt','init','add','reopenCommentThread','requires','CommentsArchive','addCommentThread','context'];(function(_0x4ccd76,_0xb9e5c7){const _0x2785f6=function(_0x5cc124){while(--_0x5cc124){_0x4ccd76['push'](_0x4ccd76['shift']());}};_0x2785f6(++_0xb9e5c7);}(_0xb9e5,0x1a6));const _0x2785=function(_0x4ccd76,_0xb9e5c7){_0x4ccd76=_0x4ccd76-0x0;let _0x2785f6=_0xb9e5[_0x4ccd76];return _0x2785f6;};import{ContextPlugin as _0x2ba8c7}from'ckeditor5/src/core';import{Collection as _0x1f6d87}from'ckeditor5/src/utils';import _0x15c2e8 from'./commentsrepository';import _0x128c8c from'../annotations/annotations';export default class p extends _0x2ba8c7{static get[_0x2785('0x0')](){return _0x2785('0xf');}static get[_0x2785('0xe')](){return[_0x15c2e8,_0x128c8c];}constructor(_0x24edbb){super(_0x24edbb),this['resolvedThreads']=new _0x1f6d87();}[_0x2785('0xb')](){const _0x308e34=this[_0x2785('0x11')],_0x5740e3=_0x308e34[_0x2785('0x7')][_0x2785('0x2')](_0x15c2e8),_0x4133f3=_0x308e34[_0x2785('0x7')]['get'](_0x128c8c);this['listenTo'](_0x5740e3,_0x2785('0x10'),(_0x5a9518,{threadId:_0x5dfd26,resolvedAt:_0x4a87ea,deletedAt:_0xa18711})=>{if(_0x4a87ea&&!_0xa18711){const _0x168946=_0x5740e3[_0x2785('0x14')](_0x5dfd26);this[_0x2785('0x1')][_0x2785('0xc')](_0x168946,this['_calculatePosition'](_0x4a87ea));}}),this[_0x2785('0x12')](_0x5740e3,_0x2785('0x13'),(_0x1d3bd2,{threadId:_0x41af59,resolvedAt:_0x27f2a7})=>{const _0x148f29=_0x5740e3[_0x2785('0x14')](_0x41af59);this['resolvedThreads'][_0x2785('0xc')](_0x148f29,this['_calculatePosition'](_0x27f2a7));},{'priority':_0x2785('0x6')}),this[_0x2785('0x12')](_0x5740e3,_0x2785('0xd'),(_0x5109fe,{threadId:_0x129993})=>{const _0x19e833=_0x5740e3[_0x2785('0x14')](_0x129993);this[_0x2785('0x1')][_0x2785('0x3')](_0x19e833)&&this['resolvedThreads']['remove'](_0x19e833);},{'priority':'highest'}),this[_0x2785('0x12')](_0x5740e3,'removeCommentThread',(_0x597059,{threadId:_0x31d33b})=>{const _0x1cb727=_0x5740e3['getCommentThread'](_0x31d33b);this[_0x2785('0x1')][_0x2785('0x3')](_0x1cb727)&&this[_0x2785('0x1')][_0x2785('0x4')](_0x1cb727);},{'priority':_0x2785('0x6')}),this[_0x2785('0x12')](_0x4133f3['collection'],'focus',(_0x3a0259,_0x27b514)=>{_0x27b514[_0x2785('0x9')]=!0x0,_0x4133f3[_0x2785('0x15')](_0x27b514);});}['_calculatePosition'](_0x486a42){const _0x17aa6f=[...this[_0x2785('0x1')]][_0x2785('0x5')](_0x52b9c8=>_0x52b9c8[_0x2785('0xa')]<_0x486a42);return _0x17aa6f>-0x1?_0x17aa6f:this[_0x2785('0x1')][_0x2785('0x8')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1fc8=['listenTo','getByInnerView','children','COMMENTS_ARCHIVE','Annotations','editor','panelView','add','requires','componentFactory','_createArchiveUIDropdown','commentsArchiveView','annotationViews','CommentsRepository','isVisible','buttonView','_threadToController','view','change:isVisible','get','config','resolvedThreads','stopListening','locale','init','CommentsArchiveUI','collaboration.channelId','commentsArchive'];(function(_0x521cc6,_0x1fc8ce){const _0x4021ba=function(_0x63af71){while(--_0x63af71){_0x521cc6['push'](_0x521cc6['shift']());}};_0x4021ba(++_0x1fc8ce);}(_0x1fc8,0x1bd));const _0x4021=function(_0x521cc6,_0x1fc8ce){_0x521cc6=_0x521cc6-0x0;let _0x4021ba=_0x1fc8[_0x521cc6];return _0x4021ba;};import'../../theme/commentsarchive.css';import{Plugin as _0x4df4fc}from'ckeditor5/src/core';import{createDropdown as _0x3b561c,ViewCollection as _0x127f58}from'ckeditor5/src/ui';import _0x12aca8 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x241bea}from'../utils/common-translations';import _0x156959 from'./ui/view/commentsarchiveview';import _0x191065 from'./commentsarchive';export default class a extends _0x4df4fc{static get['pluginName'](){return _0x4021('0x0');}static get[_0x4021('0xb')](){return[_0x191065];}constructor(_0x5645ab){super(_0x5645ab),this['annotationViews']=new _0x127f58();}[_0x4021('0x1b')](){this['editor']['ui'][_0x4021('0xc')][_0x4021('0xa')](_0x4021('0x2'),()=>this[_0x4021('0xd')]());const _0x31de09=this['editor']['plugins'][_0x4021('0x16')](_0x191065),_0x25df5a=this[_0x4021('0x8')]['plugins'][_0x4021('0x16')](_0x4021('0x7')),_0x28c89d=this[_0x4021('0x8')]['plugins']['get'](_0x4021('0x10'));this['listenTo'](_0x31de09[_0x4021('0x18')],_0x4021('0xa'),(_0x2dffb3,_0x274068,_0x45e441)=>{const _0x26b67e=this[_0x4021('0x8')]['config']['get'](_0x4021('0x1'));if(!_0x26b67e||_0x274068['channelId']===_0x26b67e){const _0x286e35=_0x28c89d[_0x4021('0x13')][_0x4021('0x16')](_0x274068),_0x15c2a9=_0x25df5a['getByInnerView'](_0x286e35[_0x4021('0x14')]);_0x15c2a9[_0x4021('0x11')]?this[_0x4021('0x3')](_0x15c2a9,_0x4021('0x15'),(_0x4b277f,_0x3103db,_0x4c63e9)=>{_0x4c63e9||(this['annotationViews'][_0x4021('0xa')](_0x15c2a9[_0x4021('0x14')],_0x45e441),this[_0x4021('0x19')](_0x15c2a9));}):this['annotationViews'][_0x4021('0xa')](_0x15c2a9['view'],_0x45e441);}}),this[_0x4021('0x3')](_0x31de09[_0x4021('0x18')],'remove',(_0x35d139,_0x553e0c)=>{const _0x244a6c=this[_0x4021('0x8')][_0x4021('0x17')][_0x4021('0x16')](_0x4021('0x1'));if(!_0x244a6c||_0x553e0c['channelId']===_0x244a6c){const _0x2f8bab=_0x28c89d[_0x4021('0x13')][_0x4021('0x16')](_0x553e0c),_0x4689f4=_0x25df5a[_0x4021('0x4')](_0x2f8bab['view'])[_0x4021('0x14')];this[_0x4021('0xf')]['remove'](_0x4689f4);}});}[_0x4021('0xd')](){const _0x35d420=this[_0x4021('0x8')],_0x318af6=_0x3b561c(_0x35d420[_0x4021('0x1a')]);return _0x318af6[_0x4021('0x12')]['set']({'icon':_0x12aca8,'label':_0x241bea(_0x35d420[_0x4021('0x1a')],_0x4021('0x6')),'tooltip':!0x0}),_0x318af6['on']('change:isOpen',()=>{this[_0x4021('0xe')]||(this[_0x4021('0xe')]=new _0x156959(_0x35d420[_0x4021('0x1a')],this[_0x4021('0xf')]),_0x318af6[_0x4021('0x9')][_0x4021('0x5')][_0x4021('0xa')](this['commentsArchiveView']));}),_0x318af6;}}
23
+ const _0x4d6b=['get','isOpen','CommentsRepository','CommentsArchiveUI','config','stop','_threadToController','_pendingThreads','view','channelId','splice','forEach','change:isFocused','locale','add','change:isOpen','plugins','commentsArchive','focusTracker','editor','init','Annotations','listenTo','componentFactory','innerView','_createArchiveUIDropdown','element','change:isVisible','annotationViews','stopListening','high','panelView','collection','buttonView','getByInnerView','push','remove','collaboration.channelId','commentsArchiveView','extendTemplate','resolvedThreads'];(function(_0x3fcb35,_0x4d6be3){const _0x1160bc=function(_0x59b5e7){while(--_0x59b5e7){_0x3fcb35['push'](_0x3fcb35['shift']());}};_0x1160bc(++_0x4d6be3);}(_0x4d6b,0x170));const _0x1160=function(_0x3fcb35,_0x4d6be3){_0x3fcb35=_0x3fcb35-0x0;let _0x1160bc=_0x4d6b[_0x3fcb35];return _0x1160bc;};import'../../theme/commentsarchive.css';import{Plugin as _0x394450}from'ckeditor5/src/core';import{createDropdown as _0x1ee5ad,clickOutsideHandler as _0x21fe7f,ViewCollection as _0x4771f9}from'ckeditor5/src/ui';import _0x1497ea from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x4edac7}from'../utils/common-translations';import _0x4b6eca from'./ui/view/commentsarchiveview';import _0x498d59 from'./commentsarchive';export default class a extends _0x394450{static get['pluginName'](){return _0x1160('0x4');}static get['requires'](){return[_0x498d59];}constructor(_0x1aae99){super(_0x1aae99),this['annotationViews']=new _0x4771f9(),this['_pendingThreads']=[];}[_0x1160('0x15')](){this[_0x1160('0x14')]['ui'][_0x1160('0x18')][_0x1160('0xf')](_0x1160('0x12'),()=>this[_0x1160('0x1a')]());const _0x3300f7=this[_0x1160('0x14')][_0x1160('0x11')][_0x1160('0x1')](_0x498d59),_0x24f991=this[_0x1160('0x14')]['plugins'][_0x1160('0x1')](_0x1160('0x16')),_0x338e4b=this[_0x1160('0x14')][_0x1160('0x11')]['get'](_0x1160('0x3'));this[_0x1160('0x17')](_0x3300f7[_0x1160('0x0')],_0x1160('0xf'),(_0x3e565d,_0x22d0fe,_0x203dc1)=>{const _0x3aad8e=this['editor'][_0x1160('0x5')][_0x1160('0x1')]('collaboration.channelId');if(!_0x3aad8e||_0x22d0fe[_0x1160('0xa')]===_0x3aad8e){const _0x3a801c=_0x338e4b['_threadToController'][_0x1160('0x1')](_0x22d0fe);if(!_0x3a801c)return void this[_0x1160('0x8')][_0x1160('0x24')]({'thread':_0x22d0fe,'position':_0x203dc1});const _0x5de2fe=_0x24f991[_0x1160('0x23')](_0x3a801c[_0x1160('0x9')]);_0x5de2fe['isVisible']?this[_0x1160('0x17')](_0x5de2fe,_0x1160('0x1c'),(_0xe870f5,_0x444a3c,_0x36ceec)=>{_0x36ceec||(this['annotationViews'][_0x1160('0xf')](_0x5de2fe['view'],_0x203dc1),this[_0x1160('0x1e')](_0x5de2fe));}):this[_0x1160('0x1d')]['add'](_0x5de2fe[_0x1160('0x9')],_0x203dc1);}}),this['listenTo'](_0x24f991[_0x1160('0x21')],_0x1160('0xf'),(_0x4baad3,_0x3e03b0)=>{this[_0x1160('0x8')][_0x1160('0xc')](({thread:_0x42952c,position:_0x2a03c5},_0x751e89)=>{const _0x360899=_0x338e4b[_0x1160('0x7')]['get'](_0x42952c);_0x360899&&_0x3e03b0[_0x1160('0x19')]===_0x360899['view']&&(this['annotationViews'][_0x1160('0xf')](_0x3e03b0['view'],_0x2a03c5),this['_pendingThreads'][_0x1160('0xb')](_0x751e89,0x1));});}),this[_0x1160('0x17')](_0x3300f7[_0x1160('0x0')],'remove',(_0x185970,_0x151bb6)=>{const _0x1d1519=this[_0x1160('0x14')]['config'][_0x1160('0x1')](_0x1160('0x26'));if(!_0x1d1519||_0x151bb6[_0x1160('0xa')]===_0x1d1519){const _0x4467cd=_0x338e4b[_0x1160('0x7')][_0x1160('0x1')](_0x151bb6),_0x443891=_0x24f991['getByInnerView'](_0x4467cd[_0x1160('0x9')])['view'];this[_0x1160('0x1d')]['remove'](_0x443891);}});}['_createArchiveUIDropdown'](){const _0x19cdca=this[_0x1160('0x14')],_0x455e7a=_0x1ee5ad(_0x19cdca['locale']);return _0x455e7a['on']('render',()=>{_0x455e7a[_0x1160('0x1e')](document,'mousedown'),_0x21fe7f({'emitter':_0x455e7a,'activator':()=>_0x455e7a['isOpen'],'callback':()=>{_0x455e7a[_0x1160('0x2')]=!0x1;},'contextElements':()=>[_0x455e7a[_0x1160('0x1b')],...document['querySelectorAll']('.ck.ck-body')]});}),_0x455e7a[_0x1160('0x13')]['on'](_0x1160('0xd'),_0x1537f3=>{_0x1537f3[_0x1160('0x6')]();},{'priority':_0x1160('0x1f')}),_0x455e7a[_0x1160('0x22')]['set']({'icon':_0x1497ea,'label':_0x4edac7(_0x19cdca[_0x1160('0xe')],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0x455e7a[_0x1160('0x20')][_0x1160('0x28')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x455e7a['on'](_0x1160('0x10'),(_0x44a08f,_0x18ac95,_0x14c4ae)=>{this['commentsArchiveView']||(this[_0x1160('0x27')]=new _0x4b6eca(_0x19cdca[_0x1160('0xe')],this[_0x1160('0x1d')])),_0x14c4ae?_0x455e7a[_0x1160('0x20')]['children'][_0x1160('0xf')](this[_0x1160('0x27')]):_0x455e7a[_0x1160('0x20')]['children'][_0x1160('0x25')](this['commentsArchiveView']);}),_0x455e7a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x197e=['addMarker:','change:isReadOnly','hasDomSelection','newRange','high','ignoreResolvedComments','getCommentThread','_threadToController','scrollToThreadMarker','config','ck-comment-marker--active','change:activeMarker','reconvertMarker','context','getAttribute','substring','dataDowncast','upcast','focus','root','model','comment','differ','fetchCommentThread','destroy','activeMarker','refreshVisibility','isResolved','once','managedUsingOperations','rootName','_detachCommentThread','pluginName','split','item','view','map','add','_threads','set','_hasTargetInContent','_attachMarkerToThread','_getTargetForId','consume','ck-comment-marker','editor','isCollapsed','push','reopenCommentThread','addCommentThread','markerToData','low','markers','change','createElement','affectsData','get','$marker','_handleMarkerAddAndRemove','hasContent','_attachedThreads','data','setContext','updateMarker','openNewCommentThread','text','conversion','start','registerAnnotation','switchReadOnly','collaboration.channelId','$graveyard','has','filter','addComment','CommentsEditing','getAllMarkersForId','removeMarker:','_handleThreadMarker','schema','length','reopen','$textProxy','removeMarker','plugins','document','editing','includes','then','destroyed','listenTo','_getTextContext','for','_reconvertMarkers','markerName','getChangedMarkers','attachTo','from','render','change:isThreadsLoadingPaused','hasCommentThread','getWalker','enqueueChange','getItems','state','elementToElement','delete','editingDowncast','isObject','dataToMarker','isEqual','isThreadsLoadingPaused','isLocal','requires','commands','consumable'];(function(_0x3033d5,_0x197e2b){const _0x315e54=function(_0x14cf6f){while(--_0x14cf6f){_0x3033d5['push'](_0x3033d5['shift']());}};_0x315e54(++_0x197e2b);}(_0x197e,0x12e));const _0x315e=function(_0x3033d5,_0x197e2b){_0x3033d5=_0x3033d5-0x0;let _0x315e54=_0x197e[_0x3033d5];return _0x315e54;};import{Plugin as _0x53d941}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x916f02}from'ckeditor5/src/utils';import _0x543420 from'./commentsrepository';import _0x1e6d09 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4111b3}from'ckeditor5-collaboration/src/collaboration-core';import _0x1f94fa from'../annotations/editorannotations';import _0x1ef5c2 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x8269a from'./integrations/importword';import _0xbcf6c1 from'../annotations/annotations';export default class r extends _0x53d941{static get[_0x315e('0x2b')](){return[_0x543420,_0x1f94fa,_0x1ef5c2,_0x8269a];}static get[_0x315e('0x4e')](){return _0x315e('0x5');}constructor(_0x1f429b){super(_0x1f429b),this[_0x315e('0x55')]('isThreadsLoadingPaused',!0x0),_0x1f429b[_0x315e('0x6b')][_0x315e('0x4a')]('ready',()=>this['isThreadsLoadingPaused']=!0x1),this[_0x315e('0x55')](_0x315e('0x47'),null),this['on'](_0x315e('0x39'),(_0x1ff66b,_0xf2facb,_0x5c6d95,_0x3400a9)=>{const _0x3c8848=_0x5c6d95?tt(_0x5c6d95)['id']:null;if(_0x1f429b[_0x315e('0x42')][_0x315e('0x63')](()=>{if(_0x3c8848){const _0x33e9a8=this[_0x315e('0x6')](_0x3c8848);for(const _0x44703e of _0x33e9a8)_0x1f429b[_0x315e('0x10')]['reconvertMarker'](_0x44703e);}if(_0x3400a9){const {id:_0x2d72aa}=tt(_0x3400a9),_0x150174=this[_0x315e('0x6')](_0x2d72aa);for(const _0x3395b7 of _0x150174)_0x1f429b[_0x315e('0x10')][_0x315e('0x3a')](_0x3395b7);}}),_0x3c8848){const _0x32cde1=_0x1f429b[_0x315e('0xe')][_0x315e('0x66')](_0x543420)[_0x315e('0x34')](_0x3c8848);_0x32cde1&&_0x32cde1[_0x315e('0x49')]&&this[_0x315e('0x36')](_0x3c8848);}}),this[_0x315e('0x6a')]=new Map();}['init'](){const _0xb2876f=this[_0x315e('0x5b')],_0x408382=_0xb2876f[_0x315e('0xe')]['get'](_0x543420),_0x944476=_0xb2876f[_0x315e('0x37')]['get'](_0x315e('0x0'));_0xb2876f[_0x315e('0x2c')]['add'](_0x315e('0x5f'),new _0x1e6d09(_0xb2876f)),this[_0x315e('0x14')](_0xb2876f,_0x315e('0x2f'),(_0xd9f037,_0x5d1ae5,_0x15ae30)=>{_0x408382[_0x315e('0x73')](_0x15ae30,_0xb2876f[_0x315e('0x37')][_0x315e('0x66')](_0x315e('0x0')));}),this['listenTo'](_0x408382,Z('addCommentThread',_0x944476),(_0x119b6a,{threadId:_0x26d78e})=>{const _0x349d1a=_0xb2876f[_0x315e('0xe')][_0x315e('0x66')](_0x1f94fa),_0xe5eac9=this[_0x315e('0x5b')]['plugins'][_0x315e('0x66')](_0x543420)[_0x315e('0x34')](_0x26d78e);if(_0xe5eac9&&_0xe5eac9[_0x315e('0x49')]&&!this['_attachedThreads']['has'](_0x26d78e)){const _0x3b58de=_0xe5eac9[_0x315e('0x1a')](()=>this[_0x315e('0x58')](_0xe5eac9['id']));_0x349d1a[_0x315e('0x72')](_0x3b58de),this[_0x315e('0x6a')][_0x315e('0x55')](_0x26d78e,[]),0x0===this['getAllMarkersForId'](_0x26d78e)[_0x315e('0xa')]&&(_0xe5eac9[_0x315e('0x56')]=!0x1);}}),this[_0x315e('0x14')](_0x408382,Z('removeCommentThread',_0x944476),(_0x504a44,{threadId:_0x376e15})=>{_0xb2876f[_0x315e('0x42')]['enqueueChange']({'isUndoable':!0x1},_0x3f1843=>{const _0x5e15dd=this['getAllMarkersForId'](_0x376e15);this[_0x315e('0x6a')][_0x315e('0x24')](_0x376e15);for(const _0x4fab15 of _0x5e15dd)_0x3f1843[_0x315e('0xd')](_0x4fab15);});},{'priority':_0x315e('0x32')}),this[_0x315e('0x14')](_0x408382,Z('resolveCommentThread',_0x944476),(_0x130207,{threadId:_0x7a0fa4})=>{this['_reconvertMarkers'](_0x7a0fa4),this[_0x315e('0x5b')]['editing'][_0x315e('0x51')][_0x315e('0x30')]&&this[_0x315e('0x5b')][_0x315e('0x10')][_0x315e('0x51')][_0x315e('0x40')]();},{'priority':'low'}),this[_0x315e('0x14')](_0x408382,Z(_0x315e('0x5e'),_0x944476),(_0x450ef7,{threadId:_0x1c43b1})=>{this[_0x315e('0x17')](_0x1c43b1);},{'priority':_0x315e('0x61')}),this[_0x315e('0x14')](_0x408382,Z(_0x315e('0x4'),_0x944476),(_0x5aa108,{threadId:_0x3f9fa1,isFromAdapter:_0x34f415})=>{const _0x15f13f=this[_0x315e('0x6')](_0x3f9fa1);if(_0x34f415||0x0==_0x15f13f[_0x315e('0xa')]||!_0x408382[_0x315e('0x1e')](_0x3f9fa1))return;0x1===_0x408382[_0x315e('0x34')](_0x3f9fa1)[_0x315e('0xa')]&&_0xb2876f[_0x315e('0x42')][_0x315e('0x20')]({'isUndoable':!0x1},_0x34b6e6=>{for(const _0x5e382b of _0x15f13f)_0x34b6e6['updateMarker'](_0x5e382b,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x315e('0x61')}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}[_0x315e('0x46')](){const _0x109295=this['editor'][_0x315e('0xe')][_0x315e('0x66')](_0x543420),_0x545897=this[_0x315e('0x5b')][_0x315e('0x37')][_0x315e('0x66')](_0x315e('0x0'));for(const _0x16d98b of _0x109295['getCommentThreads']({'channelId':_0x545897}))_0x109295[_0x315e('0x4d')](_0x16d98b['id']),_0x109295[_0x315e('0x54')][_0x315e('0x24')](_0x16d98b['id']);super[_0x315e('0x46')]();}['hasMarkerForId'](_0xe47c83){return this[_0x315e('0x6')](_0xe47c83)[_0x315e('0xa')]>0x0;}['getAllMarkersForId'](_0x3d772e){return(this['_attachedThreads'][_0x315e('0x66')](_0x3d772e)||[])[_0x315e('0x52')](_0x3e6b21=>this['editor']['model'][_0x315e('0x62')][_0x315e('0x66')](_0x3e6b21))[_0x315e('0x3')](_0x3438c4=>_0x3438c4);}['scrollToThreadMarker'](_0x23eef6){const _0x59a801=this[_0x315e('0x58')](_0x23eef6);_0x59a801&&setTimeout(()=>{this[_0x315e('0x47')]&&tt(this[_0x315e('0x47')])['id']===_0x23eef6&&_0x916f02({'target':_0x59a801[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x1041f2){this[_0x315e('0x5b')][_0x315e('0x42')][_0x315e('0x63')](()=>{for(const _0x345469 of this[_0x315e('0x6')](_0x1041f2))this['editor'][_0x315e('0x10')]['reconvertMarker'](_0x345469);});}['_initializeMarkerConverters'](){const _0x182fe8=this[_0x315e('0x5b')];_0x182fe8[_0x315e('0x70')][_0x315e('0x16')](_0x315e('0x25'))['markerToHighlight']({'model':_0x315e('0x43'),'view':(_0x3b5874,_0x477cdf)=>{const {id:_0x16a386}=tt(_0x3b5874[_0x315e('0x18')]),_0x4871a9=_0x182fe8[_0x315e('0xe')]['get'](_0x543420)[_0x315e('0x34')](_0x16a386),_0x40a458=this[_0x315e('0x47')]&&tt(this[_0x315e('0x47')])['id']===_0x16a386;if(_0x4871a9&&_0x4871a9[_0x315e('0x49')]&&!_0x40a458&&_0x3b5874[_0x315e('0x50')])return _0x477cdf[_0x315e('0x2d')][_0x315e('0x59')](_0x3b5874[_0x315e('0x50')],_0x315e('0x2e')+_0x3b5874[_0x315e('0x18')]),_0x477cdf[_0x315e('0x2d')][_0x315e('0x59')](_0x3b5874[_0x315e('0x50')],_0x315e('0x7')+_0x3b5874[_0x315e('0x18')]),{'classes':[]};const _0x50f024=[_0x315e('0x5a')];return _0x40a458&&_0x50f024[_0x315e('0x5d')](_0x315e('0x38')),{'classes':_0x50f024,'attributes':{'data-comment':_0x16a386}};}}),_0x182fe8[_0x315e('0x70')][_0x315e('0x16')](_0x315e('0x3e'))[_0x315e('0x60')]({'model':_0x315e('0x43'),'view':(_0x503120,{options:_0x5a3ce1})=>{const _0x2ec688=_0x182fe8['plugins'][_0x315e('0x66')](_0x543420),_0x87239e=_0x182fe8[_0x315e('0x42')][_0x315e('0x62')][_0x315e('0x66')](_0x503120),{id:_0x1c4b85,part:_0x3f19ba}=tt(_0x503120),_0x125a53=_0x2ec688[_0x315e('0x34')](_0x1c4b85);return _0x87239e&&!_0x87239e[_0x315e('0x65')]||_0x125a53&&_0x125a53['isResolved']&&_0x5a3ce1[_0x315e('0x33')]?null:{'group':_0x315e('0x43'),'name':_0x3f19ba?_0x1c4b85+':'+_0x3f19ba:_0x1c4b85};}}),_0x182fe8[_0x315e('0x70')][_0x315e('0x16')](_0x315e('0x3f'))[_0x315e('0x23')]({'view':{'name':_0x315e('0x43'),'attributes':{'id':/^\w/}},'model':(_0x2be808,{writer:_0x40b190})=>_0x40b190[_0x315e('0x64')](_0x315e('0x67'),{'data-name':'comment:'+_0x2be808[_0x315e('0x3c')]('id')})}),_0x182fe8['conversion']['for'](_0x315e('0x3f'))[_0x315e('0x27')]({'view':_0x315e('0x43')});}[_0x315e('0x68')](){const _0x180cd9=this[_0x315e('0x5b')],_0x327ea0=_0x180cd9[_0x315e('0xe')][_0x315e('0x66')](_0x543420),_0x50c2d0=new Set();_0x180cd9['model'][_0x315e('0xf')]['registerPostFixer'](_0x537f63=>{let _0x28724e=!0x1;for(const {name:_0x52c115,data:_0x24ca57}of _0x180cd9[_0x315e('0x42')]['document'][_0x315e('0x44')][_0x315e('0x19')]()){const {group:_0x162d7e,id:_0x4cd8b0}=tt(_0x52c115);let _0x195dc5=_0x24ca57[_0x315e('0x31')];if(_0x315e('0x43')!==_0x162d7e||!_0x195dc5)continue;const _0x577365=_0x315e('0x1')===_0x195dc5[_0x315e('0x41')][_0x315e('0x4c')];_0x577365||(_0x195dc5=ot(_0x195dc5,_0x180cd9[_0x315e('0x42')]),!_0x195dc5||!_0x24ca57[_0x315e('0x31')]||_0x195dc5[_0x315e('0x28')](_0x24ca57[_0x315e('0x31')]))?!_0x195dc5||!_0x180cd9[_0x315e('0x42')][_0x315e('0x69')](_0x195dc5)||this[_0x315e('0x6a')][_0x315e('0x2')](_0x4cd8b0)&&_0x577365?(_0x537f63[_0x315e('0xd')](_0x52c115),_0x28724e=!0x0):_0x577365||(this[_0x315e('0x29')]?_0x50c2d0[_0x315e('0x53')](_0x52c115):this[_0x315e('0x8')](_0x52c115,_0x4cd8b0)):(_0x537f63[_0x315e('0x6d')](_0x52c115,{'range':_0x195dc5}),_0x28724e=!0x0);}return _0x28724e;}),this['on'](_0x315e('0x1d'),(_0x42e82e,_0x41f3fa,_0x1fda70)=>{if(!_0x1fda70&&_0x50c2d0['size'])for(const _0x4e4434 of _0x50c2d0){const {id:_0x5e0d3e}=tt(_0x4e4434);_0x50c2d0[_0x315e('0x24')](_0x5e0d3e),_0x180cd9[_0x315e('0x42')][_0x315e('0x62')]['get'](_0x4e4434)&&this['_handleThreadMarker'](_0x4e4434,_0x5e0d3e);}}),this[_0x315e('0x14')](_0x180cd9['model'][_0x315e('0xf')],_0x315e('0x63'),(_0x50fec8,_0x401915)=>{for(const {name:_0x15ff56,data:{newRange:_0x1b2f40}}of _0x180cd9[_0x315e('0x42')][_0x315e('0xf')][_0x315e('0x44')][_0x315e('0x19')]()){const {group:_0x1554cc,id:_0x30dcba}=tt(_0x15ff56);if(_0x315e('0x43')!==_0x1554cc)continue;const _0x5b25f8=_0x327ea0[_0x315e('0x34')](_0x30dcba),_0x4d48f1=this['hasMarkerForId'](_0x30dcba);_0x5b25f8&&(_0x5b25f8[_0x315e('0x56')]||_0x180cd9[_0x315e('0x10')][_0x315e('0x51')][_0x315e('0x4a')](_0x315e('0x1c'),()=>{const _0xb7f728=_0x180cd9['plugins'][_0x315e('0x66')](_0xbcf6c1),_0x25d5d9=_0x327ea0[_0x315e('0x35')][_0x315e('0x66')](_0x5b25f8)[_0x315e('0x51')];_0xb7f728['getByInnerView'](_0x25d5d9)[_0x315e('0x48')]();},{'priority':_0x315e('0x61')}),_0x5b25f8[_0x315e('0x56')]=_0x4d48f1||!!_0x1b2f40),!_0x1b2f40&&_0x401915[_0x315e('0x2a')]&&(_0x50c2d0[_0x315e('0x24')](_0x30dcba),_0x5b25f8&&!_0x5b25f8['isResolved']&&!_0x4d48f1&&this['_attachedThreads'][_0x315e('0x2')](_0x30dcba)&&(this['_attachedThreads'][_0x315e('0x24')](_0x30dcba),_0x5b25f8['resolve']()));}});}[_0x315e('0x58')](_0x2484fa){const _0x84c838=this[_0x315e('0x5b')],_0x5cf9d4=this['getAllMarkersForId'](_0x2484fa);return _0x4111b3(_0x84c838[_0x315e('0x10')],_0x5cf9d4);}[_0x315e('0x15')](_0x380bd1){const _0x3952f4=this[_0x315e('0x6')](_0x380bd1);let _0x4d9a73='',_0x14f8d0=!0x1;for(const _0x45aca0 of _0x3952f4){const _0x5afc25=_0x45aca0['getRange']();for(const _0x56534f of Array[_0x315e('0x1b')](_0x5afc25[_0x315e('0x21')]()))_0x56534f['is'](_0x315e('0xc'))?(_0x4d9a73&&_0x14f8d0&&(_0x4d9a73+='\x20',_0x14f8d0=!0x1),_0x4d9a73+=_0x56534f[_0x315e('0x6b')]):_0x14f8d0=!0x0;_0x14f8d0=!0x0;}return _0x4d9a73[_0x315e('0x3d')](0x0,0x96);}[_0x315e('0x57')](_0x1998dc,_0x3a98d8){const _0x2cce18=this['editor'],_0x5d9809=_0x2cce18[_0x315e('0xe')][_0x315e('0x66')](_0x543420);let _0x2e9a93=_0x5d9809['getCommentThread'](_0x3a98d8);if(this[_0x315e('0x6a')]['has'](_0x3a98d8)){const _0x52faeb=this['_attachedThreads'][_0x315e('0x66')](_0x3a98d8);return _0x52faeb[_0x315e('0x11')](_0x1998dc)||_0x52faeb[_0x315e('0x5d')](_0x1998dc),_0x2e9a93;}this[_0x315e('0x6a')][_0x315e('0x55')](_0x3a98d8,[_0x1998dc]);const _0x3237bc=_0x2cce18['config']['get']('collaboration.channelId'),_0x3387cb=_0x2cce18[_0x315e('0xe')]['get'](_0x1f94fa);if(_0x2e9a93&&_0x2e9a93['isResolved'])return _0x2e9a93[_0x315e('0xb')](),_0x2e9a93;return!this['getAllMarkersForId'](_0x3a98d8)[0x0][_0x315e('0x4b')]?_0x2cce18[_0x315e('0x10')][_0x315e('0x51')]['once'](_0x315e('0x1c'),()=>{const _0x5028a4=_0x2cce18['plugins'][_0x315e('0x66')](_0xbcf6c1);_0x2e9a93=_0x5d9809[_0x315e('0x6e')]({'channelId':_0x3237bc,'threadId':_0x3a98d8,'target':()=>this['_getTargetForId'](_0x3a98d8),'context':{'type':_0x315e('0x6f'),'value':this[_0x315e('0x15')](_0x3a98d8)}});const _0x26e9f2=_0x5d9809[_0x315e('0x35')][_0x315e('0x66')](_0x2e9a93)[_0x315e('0x51')],_0xaa4862=_0x5028a4['getByInnerView'](_0x26e9f2);_0xaa4862&&_0x3387cb[_0x315e('0x72')](_0xaa4862);},{'priority':'low'}):_0x5d9809[_0x315e('0x45')]({'channelId':_0x3237bc,'threadId':_0x3a98d8})[_0x315e('0x12')](_0x48f817=>{if(_0x315e('0x13')!==_0x2cce18[_0x315e('0x22')]){if(_0x2e9a93=_0x48f817,_0x2e9a93){const _0x2d8036=_0x2e9a93[_0x315e('0x1a')](()=>this[_0x315e('0x58')](_0x3a98d8));_0x3387cb[_0x315e('0x72')](_0x2d8036);}else{const _0x24840e=this['getAllMarkersForId'](_0x3a98d8);_0x2cce18[_0x315e('0x42')][_0x315e('0x63')](_0x40b267=>{for(const _0x2d1615 of _0x24840e)_0x40b267['removeMarker'](_0x2d1615);});}}}),_0x2e9a93;}[_0x315e('0x8')](_0xa9a58a,_0x14290d){const _0x2bc68d=this[_0x315e('0x57')](_0xa9a58a,_0x14290d);_0x2bc68d&&!_0x2bc68d[_0x315e('0x3b')]&&_0x2bc68d[_0x315e('0x6c')]({'type':_0x315e('0x6f'),'value':this[_0x315e('0x15')](_0x14290d)});}}function Z(_0x2cdb04,_0x572dfd){return _0x572dfd?_0x2cdb04+':'+_0x572dfd:_0x2cdb04;}function tt(_0x1ce2f0){const _0x4bea75=_0x1ce2f0[_0x315e('0x4f')](':');return{'group':_0x4bea75[0x0],'id':_0x4bea75[0x1],'part':_0x4bea75[0x2]};}function ot(_0x3317cd,_0x591b3b){const _0x3f93f6=_0x591b3b[_0x315e('0x9')],_0x18af28=_0x591b3b['createRange'](_0x3317cd[_0x315e('0x71')]);for(const _0x10d8be of _0x3317cd[_0x315e('0x1f')]()){const {type:_0x19e44f,item:_0x1e583b,nextPosition:_0x3f9541}=_0x10d8be;if('text'===_0x19e44f||_0x3f93f6[_0x315e('0x26')](_0x1e583b)){const _0x3dc3b9=_0x591b3b['createPositionBefore'](_0x1e583b);_0x18af28[_0x315e('0x5c')]&&(_0x18af28['start']=_0x3dc3b9),_0x18af28['end']=_0x3f9541;}}return _0x18af28[_0x315e('0x5c')]?null:_0x18af28;}
23
+ const _0xa102=['comment','map','length','addMarker:','editingDowncast','isThreadsLoadingPaused','change:activeMarker','createRange','CommentsEditing','low','removeCommentThread','_handleThreadMarker','isCollapsed','change:isThreadsLoadingPaused','get','hasMarkerForId','commands','getWalker','activeMarker','reopenCommentThread','updateMarker','change','config','item','plugins','ignoreResolvedComments','model','rootName','attachTo','hasCommentThread','_getTargetForId','context','enqueueChange','_getTextContext','pluginName','getCommentThread','editor','openNewCommentThread','_attachMarkerToThread','collaboration.channelId','affectsData','filter','consumable','getByInnerView','_hasTargetInContent','$marker','getChangedMarkers','destroyed','change:isReadOnly','includes','editing','upcast','from','root','for','removeMarker:','addCommentThread','registerPostFixer','document','getCommentThreads','view','ck-comment-marker--active','fetchCommentThread','then','_attachedThreads','dataToMarker','consume','reconvertMarker','high','createElement','hasDomSelection','start','switchReadOnly','once','listenTo','addComment','markerToHighlight','isLocal','focus','isResolved','_handleMarkerAddAndRemove','_threadToController','schema','conversion','add','data','getItems','resolve','push','markerName','delete','text','removeMarker','newRange','has','scrollToThreadMarker','state','_initializeMarkerConverters','_threads','_reconvertMarkers','destroy','createPositionBefore','$graveyard','set','end','size','reopen','registerAnnotation','getAllMarkersForId','differ','markers'];(function(_0xd71f52,_0xa102f3){const _0x1d948e=function(_0x3350f6){while(--_0x3350f6){_0xd71f52['push'](_0xd71f52['shift']());}};_0x1d948e(++_0xa102f3);}(_0xa102,0x9c));const _0x1d94=function(_0xd71f52,_0xa102f3){_0xd71f52=_0xd71f52-0x0;let _0x1d948e=_0xa102[_0xd71f52];return _0x1d948e;};import{Plugin as _0x231995}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x17700a}from'ckeditor5/src/utils';import _0x5f0d92 from'./commentsrepository';import _0x21118a from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x20aedf}from'ckeditor5-collaboration/src/collaboration-core';import _0x52962c from'../annotations/editorannotations';import _0x1836d5 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x386f8c from'./integrations/importword';import _0x27c82d from'../annotations/annotations';export default class r extends _0x231995{static get['requires'](){return[_0x5f0d92,_0x52962c,_0x1836d5,_0x386f8c];}static get[_0x1d94('0x64')](){return _0x1d94('0x4a');}constructor(_0x3dac25){super(_0x3dac25),this[_0x1d94('0x3a')]('isThreadsLoadingPaused',!0x0),_0x3dac25['data'][_0x1d94('0x1c')]('ready',()=>this[_0x1d94('0x47')]=!0x1),this['set']('activeMarker',null),this['on'](_0x1d94('0x48'),(_0xd1d10,_0x19046f,_0x7ca8b3,_0x2a2479)=>{const _0x370084=_0x7ca8b3?P(_0x7ca8b3)['id']:null;if(_0x3dac25[_0x1d94('0x5c')][_0x1d94('0x57')](()=>{if(_0x370084){const _0x4a7b69=this[_0x1d94('0x3f')](_0x370084);for(const _0x44f7f8 of _0x4a7b69)_0x3dac25[_0x1d94('0x5')][_0x1d94('0x16')](_0x44f7f8);}if(_0x2a2479){const {id:_0x8286bc}=P(_0x2a2479),_0x2ac73d=this[_0x1d94('0x3f')](_0x8286bc);for(const _0x356e88 of _0x2ac73d)_0x3dac25[_0x1d94('0x5')]['reconvertMarker'](_0x356e88);}}),_0x370084){const _0x27fd6c=_0x3dac25[_0x1d94('0x5a')][_0x1d94('0x50')](_0x5f0d92)['getCommentThread'](_0x370084);_0x27fd6c&&_0x27fd6c[_0x1d94('0x22')]&&this['scrollToThreadMarker'](_0x370084);}}),this['_attachedThreads']=new Map();}['init'](){const _0x284bc3=this[_0x1d94('0x66')],_0x406643=_0x284bc3[_0x1d94('0x5a')]['get'](_0x5f0d92),_0x4dc3d0=_0x284bc3[_0x1d94('0x58')][_0x1d94('0x50')]('collaboration.channelId');_0x284bc3[_0x1d94('0x52')][_0x1d94('0x27')](_0x1d94('0xb'),new _0x21118a(_0x284bc3)),this[_0x1d94('0x1d')](_0x284bc3,_0x1d94('0x3'),(_0x387b47,_0x5691e6,_0x4e748e)=>{_0x406643[_0x1d94('0x1b')](_0x4e748e,_0x284bc3[_0x1d94('0x58')][_0x1d94('0x50')](_0x1d94('0x69')));}),this[_0x1d94('0x1d')](_0x406643,F(_0x1d94('0xb'),_0x4dc3d0),(_0x59754b,{threadId:_0x53a7e3})=>{const _0x15de17=_0x284bc3[_0x1d94('0x5a')][_0x1d94('0x50')](_0x52962c),_0x1d0d46=this[_0x1d94('0x66')][_0x1d94('0x5a')][_0x1d94('0x50')](_0x5f0d92)[_0x1d94('0x65')](_0x53a7e3);if(_0x1d0d46&&_0x1d0d46[_0x1d94('0x22')]&&!this['_attachedThreads'][_0x1d94('0x31')](_0x53a7e3)){const _0x11af58=_0x1d0d46[_0x1d94('0x5e')](()=>this[_0x1d94('0x60')](_0x1d0d46['id']));_0x15de17[_0x1d94('0x3e')](_0x11af58),this[_0x1d94('0x13')]['set'](_0x53a7e3,[]),0x0===this[_0x1d94('0x3f')](_0x53a7e3)['length']&&(_0x1d0d46['_hasTargetInContent']=!0x1);}}),this['listenTo'](_0x406643,F(_0x1d94('0x4c'),_0x4dc3d0),(_0x23f0da,{threadId:_0x48954d})=>{_0x284bc3['model'][_0x1d94('0x62')]({'isUndoable':!0x1},_0x1dd010=>{const _0x1f683f=this[_0x1d94('0x3f')](_0x48954d);this['_attachedThreads'][_0x1d94('0x2d')](_0x48954d);for(const _0x54370f of _0x1f683f)_0x1dd010[_0x1d94('0x2f')](_0x54370f);});},{'priority':_0x1d94('0x17')}),this['listenTo'](_0x406643,F('resolveCommentThread',_0x4dc3d0),(_0x164bad,{threadId:_0xd4fb2b})=>{this[_0x1d94('0x36')](_0xd4fb2b),this[_0x1d94('0x66')]['editing'][_0x1d94('0xf')][_0x1d94('0x19')]&&this[_0x1d94('0x66')][_0x1d94('0x5')][_0x1d94('0xf')][_0x1d94('0x21')]();},{'priority':_0x1d94('0x4b')}),this[_0x1d94('0x1d')](_0x406643,F(_0x1d94('0x55'),_0x4dc3d0),(_0xd144d5,{threadId:_0x47c0e3})=>{this[_0x1d94('0x36')](_0x47c0e3);},{'priority':_0x1d94('0x4b')}),this[_0x1d94('0x1d')](_0x406643,F(_0x1d94('0x1e'),_0x4dc3d0),(_0x45dfca,{threadId:_0x3c8004,isFromAdapter:_0x590e05})=>{const _0x1dd4b2=this[_0x1d94('0x3f')](_0x3c8004);if(_0x590e05||0x0==_0x1dd4b2[_0x1d94('0x44')]||!_0x406643[_0x1d94('0x5f')](_0x3c8004))return;0x1===_0x406643[_0x1d94('0x65')](_0x3c8004)[_0x1d94('0x44')]&&_0x284bc3['model'][_0x1d94('0x62')]({'isUndoable':!0x1},_0x2e9a07=>{for(const _0x4f2462 of _0x1dd4b2)_0x2e9a07[_0x1d94('0x56')](_0x4f2462,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x1d94('0x4b')}),this[_0x1d94('0x34')](),this[_0x1d94('0x23')]();}['destroy'](){const _0x381dcf=this[_0x1d94('0x66')][_0x1d94('0x5a')][_0x1d94('0x50')](_0x5f0d92),_0x455b1c=this[_0x1d94('0x66')]['config'][_0x1d94('0x50')](_0x1d94('0x69'));for(const _0x329f52 of _0x381dcf[_0x1d94('0xe')]({'channelId':_0x455b1c}))_0x381dcf['_detachCommentThread'](_0x329f52['id']),_0x381dcf[_0x1d94('0x35')]['delete'](_0x329f52['id']);super[_0x1d94('0x37')]();}[_0x1d94('0x51')](_0x41fe2d){return this[_0x1d94('0x3f')](_0x41fe2d)[_0x1d94('0x44')]>0x0;}[_0x1d94('0x3f')](_0x102049){return(this['_attachedThreads'][_0x1d94('0x50')](_0x102049)||[])[_0x1d94('0x43')](_0x4cf3f9=>this[_0x1d94('0x66')][_0x1d94('0x5c')][_0x1d94('0x41')][_0x1d94('0x50')](_0x4cf3f9))[_0x1d94('0x6b')](_0x20ebb0=>_0x20ebb0);}[_0x1d94('0x32')](_0x273580){const _0x3680e0=this[_0x1d94('0x60')](_0x273580);_0x3680e0&&setTimeout(()=>{this[_0x1d94('0x54')]&&P(this[_0x1d94('0x54')])['id']===_0x273580&&_0x17700a({'target':_0x3680e0[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x1d94('0x36')](_0x41b12e){this[_0x1d94('0x66')][_0x1d94('0x5c')][_0x1d94('0x57')](()=>{for(const _0x38ea81 of this[_0x1d94('0x3f')](_0x41b12e))this[_0x1d94('0x66')]['editing'][_0x1d94('0x16')](_0x38ea81);});}[_0x1d94('0x34')](){const _0x258dab=this[_0x1d94('0x66')];_0x258dab[_0x1d94('0x26')][_0x1d94('0x9')](_0x1d94('0x46'))[_0x1d94('0x1f')]({'model':'comment','view':(_0x494429,_0xd6c0fd)=>{const {id:_0x884cc3}=P(_0x494429[_0x1d94('0x2c')]),_0x197112=_0x258dab[_0x1d94('0x5a')]['get'](_0x5f0d92)['getCommentThread'](_0x884cc3),_0x378d87=this[_0x1d94('0x54')]&&P(this[_0x1d94('0x54')])['id']===_0x884cc3;if(_0x197112&&_0x197112[_0x1d94('0x22')]&&!_0x378d87&&_0x494429[_0x1d94('0x59')])return _0xd6c0fd[_0x1d94('0x6c')][_0x1d94('0x15')](_0x494429[_0x1d94('0x59')],_0x1d94('0x45')+_0x494429[_0x1d94('0x2c')]),_0xd6c0fd[_0x1d94('0x6c')][_0x1d94('0x15')](_0x494429[_0x1d94('0x59')],_0x1d94('0xa')+_0x494429[_0x1d94('0x2c')]),{'classes':[]};const _0x27ecd2=['ck-comment-marker'];return _0x378d87&&_0x27ecd2[_0x1d94('0x2b')](_0x1d94('0x10')),{'classes':_0x27ecd2,'attributes':{'data-comment':_0x884cc3}};}}),_0x258dab[_0x1d94('0x26')][_0x1d94('0x9')]('dataDowncast')['markerToData']({'model':_0x1d94('0x42'),'view':(_0x5bf3aa,{options:_0x177dae})=>{const _0x61f63d=_0x258dab[_0x1d94('0x5a')][_0x1d94('0x50')](_0x5f0d92),_0x2f5648=_0x258dab['model'][_0x1d94('0x41')]['get'](_0x5bf3aa),{id:_0x3dee11,part:_0x2774b2}=P(_0x5bf3aa),_0x315434=_0x61f63d[_0x1d94('0x65')](_0x3dee11);return _0x2f5648&&!_0x2f5648[_0x1d94('0x6a')]||_0x315434&&_0x315434['isResolved']&&_0x177dae[_0x1d94('0x5b')]?null:{'group':'comment','name':_0x2774b2?_0x3dee11+':'+_0x2774b2:_0x3dee11};}}),_0x258dab['conversion'][_0x1d94('0x9')]('upcast')['elementToElement']({'view':{'name':_0x1d94('0x42'),'attributes':{'id':/^\w/}},'model':(_0x2dc007,{writer:_0x3a8829})=>_0x3a8829[_0x1d94('0x18')](_0x1d94('0x0'),{'data-name':'comment:'+_0x2dc007['getAttribute']('id')})}),_0x258dab['conversion'][_0x1d94('0x9')](_0x1d94('0x6'))[_0x1d94('0x14')]({'view':_0x1d94('0x42')});}[_0x1d94('0x23')](){const _0x59a9b8=this[_0x1d94('0x66')],_0x4e4d96=_0x59a9b8[_0x1d94('0x5a')][_0x1d94('0x50')](_0x5f0d92),_0x413df8=new Set();_0x59a9b8['model'][_0x1d94('0xd')][_0x1d94('0xc')](_0x30c140=>{let _0x58c811=!0x1;for(const {name:_0x1235d1,data:_0x27d3fa}of _0x59a9b8[_0x1d94('0x5c')]['document'][_0x1d94('0x40')][_0x1d94('0x1')]()){const {group:_0x236609,id:_0x1e3ca4}=P(_0x1235d1);let _0x223c42=_0x27d3fa['newRange'];if(_0x1d94('0x42')!==_0x236609||!_0x223c42)continue;const _0x4c3842=_0x1d94('0x39')===_0x223c42[_0x1d94('0x8')][_0x1d94('0x5d')];_0x4c3842||(_0x223c42=D(_0x223c42,_0x59a9b8[_0x1d94('0x5c')]),!_0x223c42||!_0x27d3fa[_0x1d94('0x30')]||_0x223c42['isEqual'](_0x27d3fa[_0x1d94('0x30')]))?!_0x223c42||!_0x59a9b8[_0x1d94('0x5c')]['hasContent'](_0x223c42)||this[_0x1d94('0x13')][_0x1d94('0x31')](_0x1e3ca4)&&_0x4c3842?(_0x30c140[_0x1d94('0x2f')](_0x1235d1),_0x58c811=!0x0):_0x4c3842||(this[_0x1d94('0x47')]?_0x413df8[_0x1d94('0x27')](_0x1235d1):this['_handleThreadMarker'](_0x1235d1,_0x1e3ca4)):(_0x30c140[_0x1d94('0x56')](_0x1235d1,{'range':_0x223c42}),_0x58c811=!0x0);}return _0x58c811;}),this['on'](_0x1d94('0x4f'),(_0x419dc8,_0x2f1f6f,_0x78588b)=>{if(!_0x78588b&&_0x413df8[_0x1d94('0x3c')])for(const _0x1afc4d of _0x413df8){const {id:_0x3b1499}=P(_0x1afc4d);_0x413df8[_0x1d94('0x2d')](_0x3b1499),_0x59a9b8[_0x1d94('0x5c')][_0x1d94('0x41')]['get'](_0x1afc4d)&&this['_handleThreadMarker'](_0x1afc4d,_0x3b1499);}}),this[_0x1d94('0x1d')](_0x59a9b8[_0x1d94('0x5c')][_0x1d94('0xd')],_0x1d94('0x57'),(_0x543171,_0x298fbd)=>{for(const {name:_0x4cc9ff,data:{newRange:_0x50b790}}of _0x59a9b8[_0x1d94('0x5c')][_0x1d94('0xd')]['differ'][_0x1d94('0x1')]()){const {group:_0x6df6fa,id:_0xb4a656}=P(_0x4cc9ff);if(_0x1d94('0x42')!==_0x6df6fa)continue;const _0x338ab4=_0x4e4d96['getCommentThread'](_0xb4a656),_0x35b50b=this[_0x1d94('0x51')](_0xb4a656);_0x338ab4&&(_0x338ab4[_0x1d94('0x6e')]||_0x59a9b8[_0x1d94('0x5')][_0x1d94('0xf')][_0x1d94('0x1c')]('render',()=>{const _0x2b7392=_0x59a9b8['plugins'][_0x1d94('0x50')](_0x27c82d),_0x4afa6b=_0x4e4d96[_0x1d94('0x24')][_0x1d94('0x50')](_0x338ab4)[_0x1d94('0xf')];_0x2b7392['getByInnerView'](_0x4afa6b)['refreshVisibility']();},{'priority':'low'}),_0x338ab4['_hasTargetInContent']=_0x35b50b||!!_0x50b790),!_0x50b790&&_0x298fbd[_0x1d94('0x20')]&&(_0x413df8[_0x1d94('0x2d')](_0xb4a656),_0x338ab4&&!_0x338ab4['isResolved']&&!_0x35b50b&&this[_0x1d94('0x13')][_0x1d94('0x31')](_0xb4a656)&&(this[_0x1d94('0x13')][_0x1d94('0x2d')](_0xb4a656),_0x338ab4[_0x1d94('0x2a')]()));}});}[_0x1d94('0x60')](_0x497dd6){const _0x365676=this[_0x1d94('0x66')],_0x4a1624=this[_0x1d94('0x3f')](_0x497dd6);return _0x20aedf(_0x365676[_0x1d94('0x5')],_0x4a1624);}['_getTextContext'](_0x4741a7){const _0x1d991c=this[_0x1d94('0x3f')](_0x4741a7);let _0x283c22='',_0x485c06=!0x1;for(const _0x19247a of _0x1d991c){const _0x3f1f2d=_0x19247a['getRange']();for(const _0x5763c6 of Array[_0x1d94('0x7')](_0x3f1f2d[_0x1d94('0x29')]()))_0x5763c6['is']('$textProxy')?(_0x283c22&&_0x485c06&&(_0x283c22+='\x20',_0x485c06=!0x1),_0x283c22+=_0x5763c6[_0x1d94('0x28')]):_0x485c06=!0x0;_0x485c06=!0x0;}return _0x283c22['substring'](0x0,0x96);}[_0x1d94('0x68')](_0x1482a6,_0x2cdded){const _0x5d5c1c=this[_0x1d94('0x66')],_0x31a38f=_0x5d5c1c[_0x1d94('0x5a')]['get'](_0x5f0d92);let _0x5e6478=_0x31a38f['getCommentThread'](_0x2cdded);if(this[_0x1d94('0x13')]['has'](_0x2cdded)){const _0x23291f=this[_0x1d94('0x13')][_0x1d94('0x50')](_0x2cdded);return _0x23291f[_0x1d94('0x4')](_0x1482a6)||_0x23291f[_0x1d94('0x2b')](_0x1482a6),_0x5e6478;}this[_0x1d94('0x13')][_0x1d94('0x3a')](_0x2cdded,[_0x1482a6]);const _0x1c1edb=_0x5d5c1c[_0x1d94('0x58')]['get'](_0x1d94('0x69')),_0x19a324=_0x5d5c1c[_0x1d94('0x5a')][_0x1d94('0x50')](_0x52962c);if(_0x5e6478&&_0x5e6478['isResolved'])return _0x5e6478[_0x1d94('0x3d')](),_0x5e6478;return!this[_0x1d94('0x3f')](_0x2cdded)[0x0]['managedUsingOperations']?_0x5d5c1c[_0x1d94('0x5')]['view'][_0x1d94('0x1c')]('render',()=>{const _0x28f0cd=_0x5d5c1c[_0x1d94('0x5a')][_0x1d94('0x50')](_0x27c82d);_0x5e6478=_0x31a38f[_0x1d94('0x67')]({'channelId':_0x1c1edb,'threadId':_0x2cdded,'target':()=>this[_0x1d94('0x60')](_0x2cdded),'context':{'type':_0x1d94('0x2e'),'value':this[_0x1d94('0x63')](_0x2cdded)}});const _0x4e00cf=_0x31a38f['_threadToController'][_0x1d94('0x50')](_0x5e6478)['view'],_0x22364c=_0x28f0cd[_0x1d94('0x6d')](_0x4e00cf);_0x22364c&&_0x19a324[_0x1d94('0x3e')](_0x22364c);},{'priority':_0x1d94('0x4b')}):_0x31a38f[_0x1d94('0x11')]({'channelId':_0x1c1edb,'threadId':_0x2cdded})[_0x1d94('0x12')](_0x3dcbce=>{if(_0x1d94('0x2')!==_0x5d5c1c[_0x1d94('0x33')]){if(_0x5e6478=_0x3dcbce,_0x5e6478){const _0x5d0efd=_0x5e6478[_0x1d94('0x5e')](()=>this[_0x1d94('0x60')](_0x2cdded));_0x19a324[_0x1d94('0x3e')](_0x5d0efd),_0x5e6478[_0x1d94('0x22')]&&this[_0x1d94('0x36')](_0x2cdded);}else{const _0xe932d8=this[_0x1d94('0x3f')](_0x2cdded);_0x5d5c1c[_0x1d94('0x5c')][_0x1d94('0x57')](_0x322741=>{for(const _0x404c00 of _0xe932d8)_0x322741[_0x1d94('0x2f')](_0x404c00);});}}}),_0x5e6478;}[_0x1d94('0x4d')](_0x2f667e,_0xc555f7){const _0x321167=this['_attachMarkerToThread'](_0x2f667e,_0xc555f7);_0x321167&&!_0x321167[_0x1d94('0x61')]&&_0x321167['setContext']({'type':_0x1d94('0x2e'),'value':this[_0x1d94('0x63')](_0xc555f7)});}}function F(_0x5045dd,_0x5052ea){return _0x5052ea?_0x5045dd+':'+_0x5052ea:_0x5045dd;}function P(_0x1e1583){const _0x4fea8b=_0x1e1583['split'](':');return{'group':_0x4fea8b[0x0],'id':_0x4fea8b[0x1],'part':_0x4fea8b[0x2]};}function D(_0x266d00,_0x1fbd52){const _0x1cd8f4=_0x1fbd52[_0x1d94('0x25')],_0x36db13=_0x1fbd52[_0x1d94('0x49')](_0x266d00[_0x1d94('0x1a')]);for(const _0x3a75e6 of _0x266d00[_0x1d94('0x53')]()){const {type:_0x3308a1,item:_0x550979,nextPosition:_0x17a896}=_0x3a75e6;if(_0x1d94('0x2e')===_0x3308a1||_0x1cd8f4['isObject'](_0x550979)){const _0x2a05ab=_0x1fbd52[_0x1d94('0x38')](_0x550979);_0x36db13['isCollapsed']&&(_0x36db13[_0x1d94('0x1a')]=_0x2a05ab),_0x36db13[_0x1d94('0x3b')]=_0x17a896;}}return _0x36db13[_0x1d94('0x4e')]?null:_0x36db13;}
@@ -133,6 +133,9 @@ export default class CommentsRepository extends ContextPlugin {
133
133
  * {@link module:comments/comments/commentsrepository~CommentThread#removeAttribute}.
134
134
  * @param data.isResolvable Indicates whether the comment thread can become resolved.
135
135
  * Set this flag to `false` to disable the possibility of resolving given comment thread.
136
+ * @param data.isSubmitted Indicates whether the comment thread has been submitted.
137
+ * Comment thread is submitted after adding the first comment, however, in some cases,
138
+ * it could be necessary to manage it in a custom way (e.g. track changes).
136
139
  * @param data.isFromAdapter A flag describing whether the added data
137
140
  * comes from an adapter (`true`) or is a new data (`false`). If set to `true`, the
138
141
  * comment data will be added only in the editor and will not be sent to the adapter.
@@ -180,7 +183,7 @@ export default class CommentsRepository extends ContextPlugin {
180
183
  * comment data will be added only in the editor and will not be sent to the adapter.
181
184
  * @returns The updated comment thread.
182
185
  */
183
- updateCommentThread({ channelId, threadId, context, attributes, isFromAdapter }?: UpdateCommentThreadEventData): CommentThread;
186
+ updateCommentThread({ channelId, threadId, context, attributes, isFromAdapter }: UpdateCommentThreadEventData): CommentThread;
184
187
  /**
185
188
  * Returns comment thread of given id.
186
189
  */
@@ -687,7 +690,7 @@ export type AddCommentThreadEvent = {
687
690
  */
688
691
  export type CommentThreadData = BaseCommentThread & Partial<{
689
692
  context: CommentThreadContext;
690
- attributes: Record<string, any> | null;
693
+ attributes: Record<string, any>;
691
694
  resolvedAt: Date | null;
692
695
  resolvedBy: string | null;
693
696
  }>;
@@ -887,6 +890,7 @@ export type CommentThreadDataJSON = {
887
890
  resolvedAt: Date | null;
888
891
  resolvedBy: string | null;
889
892
  comments: Array<CommentDataJSON>;
893
+ attributes: Record<string, unknown>;
890
894
  };
891
895
  /**
892
896
  * Comments adapter.
@@ -901,7 +905,7 @@ export interface CommentsAdapter {
901
905
  /**
902
906
  * Called whenever a new comment thread is created.
903
907
  *
904
- * The object which is passed as a parameter can contain following properties:
908
+ * The object which is passed as a parameter can contain the following properties:
905
909
  * * channelId: string | symbol;
906
910
  * * threadId: string;
907
911
  * * context?: {@link module:comments/comments/commentsrepository~CommentThreadContext CommentThreadContext};
@@ -911,7 +915,7 @@ export interface CommentsAdapter {
911
915
  * * attributes?: Record<string, any> | null;
912
916
  *
913
917
  * It should return a promise that resolves with the new comment thread data.
914
- * The resolved data object should contain following properties:
918
+ * The resolved data object should contain the following properties:
915
919
  * * threadId: string;
916
920
  * * comments: Array<\{ commentId: string; createdAt: Date; \}>;
917
921
  */
@@ -928,7 +932,7 @@ export interface CommentsAdapter {
928
932
  * Called when the editor needs the data for a comment thread.
929
933
  *
930
934
  * It should return a promise that resolves with the comment thread data.
931
- * The resolved data object should contain following properties:
935
+ * The resolved data object should contain the following properties:
932
936
  * * threadId: string;
933
937
  * * comments: Array<\{ commentId?: string; authorId: string; createdAt: Date; content: string; attributes: Record<string, any>; \}>;
934
938
  * * resolvedAt?: Date | null;
@@ -948,13 +952,13 @@ export interface CommentsAdapter {
948
952
  /**
949
953
  * Called each time the user changes the existing comment thread.
950
954
  *
951
- * Keep in mind that for security reasons, `authorId`, `createdAt`, `resolvedBy` and `resolvedAt` properties
952
- * are not passed in `updateCommentThread()` call and you should not set them as a result of this call.
955
+ * Keep in mind that for security reasons, the `authorId`, `createdAt`, `resolvedBy` and `resolvedAt` properties
956
+ * are not passed in the `updateCommentThread()` call and you should not set them as a result of this call.
953
957
  *
954
958
  * It updates the comment data in the database and returns a promise
955
959
  * that will be resolved when the update is completed.
956
960
  *
957
- * The object which is passed as a parameter can contain following properties:
961
+ * The object which is passed as a parameter can contain the following properties:
958
962
  * * channelId: string | symbol;
959
963
  * * threadId: string;
960
964
  * * context?: {@link module:comments/comments/commentsrepository~CommentThreadContext};
@@ -967,7 +971,7 @@ export interface CommentsAdapter {
967
971
  * Should set `resolvedAt` and `resolvedBy` properties in your database and should resolve with an object
968
972
  * containing these two properties and returns a promise that will be resolved when the operation is completed.
969
973
  *
970
- * The resolved data object should contain following properties:
974
+ * The resolved data object should contain the following properties:
971
975
  * * threadId: string;
972
976
  * * resolvedAt: Date;
973
977
  * * resolvedBy: string;
@@ -1021,14 +1025,14 @@ export interface CommentsAdapter {
1021
1025
  * and to save it as a string in your database and then to parse the
1022
1026
  * value from JSON when loading comments.
1023
1027
  *
1024
- * The object which is passed as a parameter can contain following properties:
1028
+ * The object which is passed as a parameter can contain the following properties:
1025
1029
  * * channelId: string | symbol;
1026
1030
  * * threadId: string;
1027
1031
  * * commentId: string;
1028
1032
  * * content: string;
1029
1033
  * * attributes: Record<string, any>;
1030
1034
  *
1031
- * The resolved data object should contain following properties:
1035
+ * The resolved data object should contain the following properties:
1032
1036
  * * commentId: string;
1033
1037
  * * createdAt: Date;
1034
1038
  *
@@ -1051,7 +1055,7 @@ export interface CommentsAdapter {
1051
1055
  * Keep in mind that the `data` parameter only contains the
1052
1056
  * properties of a comment that have changed.
1053
1057
  *
1054
- * The object which is passed as a parameter can contain following properties:
1058
+ * The object which is passed as a parameter can contain the following properties:
1055
1059
  * * channelId: string | symbol;
1056
1060
  * * threadId: string;
1057
1061
  * * commentId: string;