@ckeditor/ckeditor5-comments 0.0.0-nightly-20240131.0 → 0.0.0-nightly-20240201.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4688=['mainView','attach','ck-annotation-wrapper','ck-annotation-wrapper--active','bindTemplate','length','set','type','listenTo','Esc','isActive','clear','detach','setTemplate','focus','destroy','render','fire','keystrokes','targetRect','clientHeight','element','content','focusTracker','add','ck-rounded-corners','div','_mutationObserver'];(function(_0x119fcf,_0x46883e){const _0xca3285=function(_0x1ac6d8){while(--_0x1ac6d8){_0x119fcf['push'](_0x119fcf['shift']());}};_0xca3285(++_0x46883e);}(_0x4688,0xae));const _0xca32=function(_0x119fcf,_0x46883e){_0x119fcf=_0x119fcf-0x0;let _0xca3285=_0x4688[_0x119fcf];return _0xca3285;};import{View as _0x44f6b4}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1def05,KeystrokeHandler as _0xdbc2dc,uid as _0x1ce70c}from'ckeditor5/src/utils.js';import _0x40b68c from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x44f6b4{constructor(_0x3c37c8,_0x2fe1d3){super(_0x3c37c8),this['id']=_0x1ce70c(),this[_0xca32('0x11')]=new _0x1def05(),this[_0xca32('0xc')]=new _0xdbc2dc(),this['keystrokes'][_0xca32('0x0')]('Esc',(_0x3fbf4e,_0x2ba337)=>this[_0xca32('0xb')](_0xca32('0x3'),_0x2ba337)),this[_0xca32('0x0')](_0xca32('0xd'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this[_0xca32('0x0')](_0xca32('0x4'),!0x1),this[_0xca32('0x0')]('isDirty',!0x1),this[_0xca32('0x0')](_0xca32('0x1b'),0x0),this[_0xca32('0x0')](_0xca32('0x1'),''),this[_0xca32('0x15')]=_0x40b68c(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this[_0xca32('0x10')][_0xca32('0x12')](_0x2fe1d3),this[_0xca32('0x16')]=_0x2fe1d3;const _0x4c02f8=this[_0xca32('0x1a')];this[_0xca32('0x7')]({'tag':_0xca32('0x14'),'attributes':{'class':['ck',_0xca32('0x18'),_0xca32('0x13'),_0x4c02f8['if'](_0xca32('0x4'),_0xca32('0x19'))],'tabindex':-0x1},'children':this[_0xca32('0x10')]});}[_0xca32('0xa')](){super[_0xca32('0xa')](),this[_0xca32('0x11')][_0xca32('0x12')](this[_0xca32('0xf')]),this[_0xca32('0xc')][_0xca32('0x2')](this[_0xca32('0xf')]),this[_0xca32('0x15')][_0xca32('0x17')](this[_0xca32('0xf')]);}[_0xca32('0x9')](){this[_0xca32('0x10')][_0xca32('0x5')](),this[_0xca32('0xc')][_0xca32('0x9')](),this[_0xca32('0x11')][_0xca32('0x9')](),this['_mutationObserver'][_0xca32('0x6')](),super[_0xca32('0x9')]();}['focus'](){this['element'][_0xca32('0x8')]();}['_updateHeight'](){const _0x25b90d=this[_0xca32('0xf')][_0xca32('0xe')];_0x25b90d&&(this['height']=_0x25b90d);}}
23
+ const _0xa09c=['ck-annotation-wrapper','destroy','targetRect','clientHeight','length','height','element','mainView','ck-annotation-wrapper--active','Esc','listenTo','setTemplate','add','keystrokes','ck-rounded-corners','isActive','set','render','_mutationObserver','div','content','focusTracker','type','attach','clear','bindTemplate','focus'];(function(_0x260009,_0xa09c8b){const _0x81e322=function(_0x5f296e){while(--_0x5f296e){_0x260009['push'](_0x260009['shift']());}};_0x81e322(++_0xa09c8b);}(_0xa09c,0x103));const _0x81e3=function(_0x260009,_0xa09c8b){_0x260009=_0x260009-0x0;let _0x81e322=_0xa09c[_0x260009];return _0x81e322;};import{View as _0x3d6ec8}from'ckeditor5/src/ui.js';import{FocusTracker as _0x2261e1,KeystrokeHandler as _0x318b81,uid as _0x2cd461}from'ckeditor5/src/utils.js';import _0x50e845 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x3d6ec8{constructor(_0x3561dc,_0x5c98c3){super(_0x3561dc),this['id']=_0x2cd461(),this[_0x81e3('0x5')]=new _0x2261e1(),this['keystrokes']=new _0x318b81(),this['keystrokes']['set'](_0x81e3('0x14'),(_0x29ec21,_0x2a417c)=>this['fire']('Esc',_0x2a417c)),this[_0x81e3('0x0')](_0x81e3('0xd'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x81e3('0x0')](_0x81e3('0x10'),0x0),this[_0x81e3('0x0')](_0x81e3('0x1a'),!0x1),this[_0x81e3('0x0')]('isDirty',!0x1),this[_0x81e3('0x0')](_0x81e3('0xf'),0x0),this[_0x81e3('0x0')](_0x81e3('0x6'),''),this[_0x81e3('0x2')]=_0x50e845(()=>this['_updateHeight']()),this[_0x81e3('0x4')]=this['createCollection'](),this[_0x81e3('0x4')][_0x81e3('0x17')](_0x5c98c3),this[_0x81e3('0x12')]=_0x5c98c3;const _0x303585=this[_0x81e3('0x9')];this[_0x81e3('0x16')]({'tag':_0x81e3('0x3'),'attributes':{'class':['ck',_0x81e3('0xb'),_0x81e3('0x19'),_0x303585['if'](_0x81e3('0x1a'),_0x81e3('0x13'))],'tabindex':-0x1},'children':this[_0x81e3('0x4')]});}['render'](){super[_0x81e3('0x1')](),this[_0x81e3('0x5')][_0x81e3('0x17')](this['element']),this[_0x81e3('0x18')][_0x81e3('0x15')](this[_0x81e3('0x11')]),this[_0x81e3('0x2')][_0x81e3('0x7')](this[_0x81e3('0x11')]);}[_0x81e3('0xc')](){this['content'][_0x81e3('0x8')](),this[_0x81e3('0x18')][_0x81e3('0xc')](),this[_0x81e3('0x5')]['destroy'](),this[_0x81e3('0x2')]['detach'](),super[_0x81e3('0xc')]();}[_0x81e3('0xa')](){this['element'][_0x81e3('0xa')]();}['_updateHeight'](){const _0x4db6c7=this['element'][_0x81e3('0xe')];_0x4db6c7&&(this[_0x81e3('0x10')]=_0x4db6c7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1756=['detach','ck-sidebar-item--no-animation','render','top','div','bottom','bind','height','element','updateHeight','createCollection','isAnimationDisabled','_targetTop','set','setTemplate','content','ck-sidebar-item','_mutationObserver','clientHeight'];(function(_0x434aac,_0x17560f){const _0x2ac8a5=function(_0x1c23c5){while(--_0x1c23c5){_0x434aac['push'](_0x434aac['shift']());}};_0x2ac8a5(++_0x17560f);}(_0x1756,0x17e));const _0x2ac8=function(_0x434aac,_0x17560f){_0x434aac=_0x434aac-0x0;let _0x2ac8a5=_0x1756[_0x434aac];return _0x2ac8a5;};import{View as _0xf4a2e0}from'ckeditor5/src/ui.js';import{toUnit as _0x23cfc7}from'ckeditor5/src/utils.js';import _0x51b623 from'../../utils/createmutationobserver.js';const Ht=_0x23cfc7('px');export default class C extends _0xf4a2e0{constructor(_0x2d1a4a){super(_0x2d1a4a),this[_0x2ac8('0xb')](_0x2ac8('0x1'),0x0),this['set'](_0x2ac8('0x5'),0x0),this[_0x2ac8('0x4')](_0x2ac8('0x3'))['to'](this,_0x2ac8('0x1'),this,_0x2ac8('0x5'),(_0x2f5163,_0x43ec80)=>_0x2f5163+_0x43ec80),this[_0x2ac8('0xb')](_0x2ac8('0x9'),!0x1),this[_0x2ac8('0xf')]=_0x51b623(()=>this[_0x2ac8('0x7')]()),this[_0x2ac8('0xa')]=null,this[_0x2ac8('0xd')]=this[_0x2ac8('0x8')]();const _0x568d45=this['bindTemplate'];this[_0x2ac8('0xc')]({'tag':_0x2ac8('0x2'),'attributes':{'class':[_0x2ac8('0xe'),_0x568d45['to'](_0x2ac8('0x9'),_0x16e339=>_0x16e339?_0x2ac8('0x12'):'')],'style':{'top':_0x568d45['to'](_0x2ac8('0x1'),_0x16fd8c=>Ht(_0x16fd8c))}},'children':this['content']});}[_0x2ac8('0x0')](){super[_0x2ac8('0x0')](),this[_0x2ac8('0xf')]['attach'](this['element']);}[_0x2ac8('0x7')](){const _0x3f66c7=this[_0x2ac8('0x6')][_0x2ac8('0x10')];_0x3f66c7&&(this[_0x2ac8('0x5')]=_0x3f66c7);}['destroy'](){this[_0x2ac8('0xd')]['clear'](),this['_mutationObserver'][_0x2ac8('0x11')](),super['destroy']();}}
23
+ const _0x3e60=['clientHeight','render','updateHeight','bind','setTemplate','detach','element','top','_mutationObserver','isAnimationDisabled','height','ck-sidebar-item--no-animation','set','_targetTop','attach','content','destroy','clear','createCollection'];(function(_0x23a41f,_0x3e60c2){const _0x819bbd=function(_0x47fec4){while(--_0x47fec4){_0x23a41f['push'](_0x23a41f['shift']());}};_0x819bbd(++_0x3e60c2);}(_0x3e60,0xf9));const _0x819b=function(_0x23a41f,_0x3e60c2){_0x23a41f=_0x23a41f-0x0;let _0x819bbd=_0x3e60[_0x23a41f];return _0x819bbd;};import{View as _0x22635a}from'ckeditor5/src/ui.js';import{toUnit as _0x3ed1e6}from'ckeditor5/src/utils.js';import _0x1356a8 from'../../utils/createmutationobserver.js';const Ht=_0x3ed1e6('px');export default class C extends _0x22635a{constructor(_0x5e6694){super(_0x5e6694),this[_0x819b('0xa')]('top',0x0),this[_0x819b('0xa')]('height',0x0),this[_0x819b('0x1')]('bottom')['to'](this,_0x819b('0x5'),this,_0x819b('0x8'),(_0x1faf9a,_0x152025)=>_0x1faf9a+_0x152025),this['set'](_0x819b('0x7'),!0x1),this[_0x819b('0x6')]=_0x1356a8(()=>this[_0x819b('0x0')]()),this[_0x819b('0xb')]=null,this[_0x819b('0xd')]=this[_0x819b('0x10')]();const _0xdf4fb3=this['bindTemplate'];this[_0x819b('0x2')]({'tag':'div','attributes':{'class':['ck-sidebar-item',_0xdf4fb3['to'](_0x819b('0x7'),_0x54089f=>_0x54089f?_0x819b('0x9'):'')],'style':{'top':_0xdf4fb3['to'](_0x819b('0x5'),_0x2dce36=>Ht(_0x2dce36))}},'children':this[_0x819b('0xd')]});}[_0x819b('0x12')](){super[_0x819b('0x12')](),this[_0x819b('0x6')][_0x819b('0xc')](this[_0x819b('0x4')]);}[_0x819b('0x0')](){const _0x110c1d=this['element'][_0x819b('0x11')];_0x110c1d&&(this[_0x819b('0x8')]=_0x110c1d);}['destroy'](){this[_0x819b('0xd')][_0x819b('0xf')](),this['_mutationObserver'][_0x819b('0x3')](),super[_0x819b('0xe')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9e76=['setTemplate','bindTemplate','createCollection','ck-sidebar','class','list','minHeight','div'];(function(_0x480a82,_0x9e763f){const _0x32c36d=function(_0x5db146){while(--_0x5db146){_0x480a82['push'](_0x480a82['shift']());}};_0x32c36d(++_0x9e763f);}(_0x9e76,0x192));const _0x32c3=function(_0x480a82,_0x9e763f){_0x480a82=_0x480a82-0x0;let _0x32c36d=_0x9e76[_0x480a82];return _0x32c36d;};import{View as _0x1eeb1d}from'ckeditor5/src/ui.js';import{toUnit as _0x18639d}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x18639d('px');export default class T extends _0x1eeb1d{constructor(_0x1bacfc){super(_0x1bacfc);const _0x11018c=this[_0x32c3('0x7')];this['set'](_0x32c3('0x4'),0x0),this['set'](_0x32c3('0x2'),''),this[_0x32c3('0x3')]=this[_0x32c3('0x0')](),this[_0x32c3('0x6')]({'tag':_0x32c3('0x5'),'attributes':{'class':['ck',_0x32c3('0x1'),'ck-reset',_0x11018c['to']('class')],'style':{'minHeight':_0x11018c['to'](_0x32c3('0x4'),_0x236d79=>'number'==typeof _0x236d79?Ht(_0x236d79+0xa):null)}},'children':this['list']});}}
23
+ const _0x15f0=['bindTemplate','list','div','class','number','ck-reset','minHeight','createCollection','set'];(function(_0x207fd2,_0x15f0bb){const _0x146891=function(_0x3645df){while(--_0x3645df){_0x207fd2['push'](_0x207fd2['shift']());}};_0x146891(++_0x15f0bb);}(_0x15f0,0xec));const _0x1468=function(_0x207fd2,_0x15f0bb){_0x207fd2=_0x207fd2-0x0;let _0x146891=_0x15f0[_0x207fd2];return _0x146891;};import{View as _0x2f60a3}from'ckeditor5/src/ui.js';import{toUnit as _0x5d11cb}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x5d11cb('px');export default class T extends _0x2f60a3{constructor(_0x31e07a){super(_0x31e07a);const _0x416cf5=this[_0x1468('0x7')];this[_0x1468('0x6')](_0x1468('0x4'),0x0),this[_0x1468('0x6')](_0x1468('0x1'),''),this[_0x1468('0x8')]=this[_0x1468('0x5')](),this['setTemplate']({'tag':_0x1468('0x0'),'attributes':{'class':['ck','ck-sidebar',_0x1468('0x3'),_0x416cf5['to'](_0x1468('0x1'))],'style':{'minHeight':_0x416cf5['to']('minHeight',_0x3cf9e7=>_0x1468('0x2')==typeof _0x3cf9e7?Ht(_0x3cf9e7+0xa):null)}},'children':this[_0x1468('0x8')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x372e=['uiUpdate','listenTo','EditorAnnotations','ck-sidebar--wide','setActiveAnnotation','register','_detachFromContainer','widesidebar-detach-not-attached','refresh','isAttached','pluginName','rearrange','annotations','_activeAnnotation','set','detach','stopListening','removeEventListener','requires','_integrateWithEditorAnnotations','high','_editorAnnotations','_refreshPositioningDebounced','context','_annotations','focus','blur','addAnnotation','container','addEventListener','from','resize','hasDomSelection','get','_attachToContainer','refreshPositioning','widesidebar-attach-already-attached','getOrderedSelectedAnnotations','add','has','activeAnnotation','set:container','ready','attach','init','updateTargetRect','switchTo','_destroyEditorAnnotationsIntegration','remove','wideSidebar','change:container','plugins'];(function(_0x2b4a46,_0x372e5c){const _0xa52eb2=function(_0x276573){while(--_0x276573){_0x2b4a46['push'](_0x2b4a46['shift']());}};_0xa52eb2(++_0x372e5c);}(_0x372e,0x11a));const _0xa52e=function(_0x2b4a46,_0x372e5c){_0x2b4a46=_0x2b4a46-0x0;let _0xa52eb2=_0x372e[_0x2b4a46];return _0xa52eb2;};import{ContextPlugin as _0x41b0ae,Context as _0x279cc1}from'ckeditor5/src/core.js';import _0x852cf9 from'./annotationsuis.js';import _0x2ae1cf from'./sidebar.js';import{CKEditorError as _0xf32b15,Collection as _0x3c92f6}from'ckeditor5/src/utils.js';import{debounce as _0x323418}from'lodash-es';import _0x27d084 from'./editorannotations.js';export default class n extends _0x41b0ae{static get[_0xa52e('0x30')](){return[_0x2ae1cf,_0x852cf9];}static get[_0xa52e('0x28')](){return'WideSidebar';}constructor(_0x6b0572){super(_0x6b0572),this[_0xa52e('0x27')]=!0x1,this[_0xa52e('0x2c')](_0xa52e('0x12'),null),this['annotations']=null,this[_0xa52e('0x33')]=new _0x3c92f6(),this[_0xa52e('0x0')]=_0x323418(()=>{this[_0xa52e('0x2a')][_0xa52e('0xd')]();},0xfa,{'leading':!0x1});}[_0xa52e('0x16')](){const _0x547c9d=this[_0xa52e('0x1')][_0xa52e('0x1d')][_0xa52e('0xb')](_0x852cf9),_0xdfacf4=this[_0xa52e('0x1')]['plugins'][_0xa52e('0xb')](_0x2ae1cf);_0x547c9d[_0xa52e('0x23')](_0xa52e('0x1b'),this),_0xdfacf4[_0xa52e('0x6')]&&_0x547c9d[_0xa52e('0x18')](_0xa52e('0x1b'));}['setActiveAnnotation'](_0x1c1912){if(_0x1c1912===this[_0xa52e('0x12')])return;const _0x2b9ea1=this[_0xa52e('0x1')][_0xa52e('0x1d')][_0xa52e('0xb')](_0x2ae1cf);_0x2b9ea1[_0xa52e('0x2b')]=_0x1c1912;const _0x58dec8=this['activeAnnotation'];this[_0xa52e('0x12')]=_0x1c1912,_0x2b9ea1[_0xa52e('0x26')]({'blurredAnnotation':_0x58dec8,'activatedAnnotation':this['activeAnnotation']});}[_0xa52e('0x15')](_0x7948bd){this[_0xa52e('0x2a')]=_0x7948bd;const _0x478c61=this[_0xa52e('0x1')][_0xa52e('0x1d')]['get'](_0x2ae1cf);if(_0x478c61[_0xa52e('0x2')]=_0x7948bd,this[_0xa52e('0x27')])throw new _0xf32b15(_0xa52e('0xe'),this);this['isAttached']=!0x0,this[_0xa52e('0x1f')](_0x478c61,_0xa52e('0x13'),()=>{this[_0xa52e('0x2d')](),this[_0xa52e('0x1f')](_0x478c61,_0xa52e('0x1c'),_0xb525fa=>{_0xb525fa['off'](),this[_0xa52e('0x15')](_0x7948bd);});}),_0x478c61[_0xa52e('0xc')]({'viewClass':_0xa52e('0x21')});const _0xe8d0ac=_0x5eb62e=>{_0x5eb62e[_0xa52e('0x17')](),_0x478c61[_0xa52e('0x5')](_0x5eb62e);};for(const _0x383045 of _0x7948bd)_0xe8d0ac(_0x383045);this[_0xa52e('0x1f')](_0x7948bd,_0xa52e('0x10'),(_0x281ec9,_0x3d120f)=>{_0xe8d0ac(_0x3d120f);}),this[_0xa52e('0x1f')](_0x7948bd,_0xa52e('0x1a'),(_0x1a59a9,_0x2e4035,_0x5c3541)=>{_0x478c61[_0xa52e('0x29')]({'removedAnnotation':_0x2e4035,'previousAnnotation':_0x7948bd[_0xa52e('0xb')](_0x5c3541-0x1),'nextAnnotation':_0x7948bd[_0xa52e('0xb')](_0x5c3541+0x1)}),_0x2e4035===this[_0xa52e('0x12')]&&this[_0xa52e('0x22')](null);},{'priority':_0xa52e('0x32')}),this['listenTo'](_0x7948bd,_0xa52e('0x3'),(_0x40357f,_0xfdf340)=>{this['setActiveAnnotation'](_0xfdf340);}),this[_0xa52e('0x1f')](_0x7948bd,_0xa52e('0x4'),()=>{this[_0xa52e('0x22')](null);});const _0x33bab4=this['context']instanceof _0x279cc1?this[_0xa52e('0x1')]['editors']:new _0x3c92f6([this[_0xa52e('0x1')]]);for(const _0x4ed463 of _0x33bab4)this['_integrateWithEditorAnnotations'](_0x4ed463);this[_0xa52e('0x1f')](_0x33bab4,_0xa52e('0x10'),(_0xc441e8,_0x669a49)=>{this['listenTo'](_0x669a49,_0xa52e('0x14'),()=>{this[_0xa52e('0x31')](_0x669a49);});}),this[_0xa52e('0x1f')](_0x33bab4,_0xa52e('0x1a'),(_0x9d25ec,_0x36a43e)=>{_0x36a43e[_0xa52e('0x1d')][_0xa52e('0x11')](_0xa52e('0x20'))&&this[_0xa52e('0x19')](_0x36a43e[_0xa52e('0x1d')]['get'](_0xa52e('0x20')));}),window[_0xa52e('0x7')]('resize',this[_0xa52e('0x0')]),this[_0xa52e('0x2a')][_0xa52e('0xd')]();}[_0xa52e('0x2d')](){if(!this['isAttached'])throw new _0xf32b15(_0xa52e('0x25'),this);this['setActiveAnnotation'](null);const _0x48e1b3=this['context'][_0xa52e('0x1d')][_0xa52e('0xb')](_0x2ae1cf);_0x48e1b3[_0xa52e('0x24')](this[_0xa52e('0x2a')]),this[_0xa52e('0x2e')](_0x48e1b3),this['stopListening'](this[_0xa52e('0x2a')]),this[_0xa52e('0x1')]instanceof _0x279cc1&&this[_0xa52e('0x2e')](this[_0xa52e('0x1')]['editors']);for(const _0x501a4e of Array[_0xa52e('0x8')](this[_0xa52e('0x33')]))this['_destroyEditorAnnotationsIntegration'](_0x501a4e);window[_0xa52e('0x2f')](_0xa52e('0x9'),this[_0xa52e('0x0')]),this[_0xa52e('0x0')]['cancel'](),this[_0xa52e('0x12')]=null,this['isAttached']=!0x1,this[_0xa52e('0x2a')]=null;}['destroy'](){this[_0xa52e('0x27')]&&this[_0xa52e('0x2d')]();}[_0xa52e('0x31')](_0x5cf745){const _0x124c2d=_0x5cf745[_0xa52e('0x1d')]['get'](_0x27d084);if(!_0x124c2d)return;const _0x2b5971=()=>{const _0x3e993d=_0x124c2d[_0xa52e('0xf')]({'annotations':this[_0xa52e('0x2a')],'activeAnnotation':this[_0xa52e('0x12')]});this[_0xa52e('0x22')](_0x3e993d[0x0]||null);};this[_0xa52e('0x1f')](_0x124c2d,_0xa52e('0x26'),_0x2b5971),this['listenTo'](_0x124c2d,'blur',(_0x16f28c,{isAnnotationTracked:_0x5b9a31})=>{this[_0xa52e('0x12')]&&_0x5b9a31(this['activeAnnotation'])&&this[_0xa52e('0x22')](null);}),this[_0xa52e('0x1f')](_0x124c2d,_0xa52e('0x1e'),()=>{this[_0xa52e('0x0')]();}),this['listenTo'](this['annotations'],'blur',_0x11da3b=>{_0x124c2d[_0xa52e('0xa')]()&&(_0x2b5971(),_0x11da3b['stop']());},{'priority':_0xa52e('0x32')}),this[_0xa52e('0x33')][_0xa52e('0x10')](_0x124c2d);}[_0xa52e('0x19')](_0x30ff54){this[_0xa52e('0x2e')](_0x30ff54),this[_0xa52e('0x33')][_0xa52e('0x1a')](_0x30ff54);}}
23
+ const _0x1c33=['isAttached','addEventListener','from','add','register','context','hasDomSelection','attach','wideSidebar','get','addAnnotation','_editorAnnotations','change:container','init','focus','off','remove','pluginName','cancel','ck-sidebar--wide','_refreshPositioningDebounced','stop','stopListening','requires','setActiveAnnotation','plugins','resize','annotations','_destroyEditorAnnotationsIntegration','high','editors','detach','activeAnnotation','blur','_detachFromContainer','_integrateWithEditorAnnotations','refreshPositioning','rearrange','listenTo','EditorAnnotations','removeEventListener','WideSidebar','refresh','switchTo'];(function(_0x4fbd42,_0x1c33ef){const _0x4310dd=function(_0x2c084c){while(--_0x2c084c){_0x4fbd42['push'](_0x4fbd42['shift']());}};_0x4310dd(++_0x1c33ef);}(_0x1c33,0x1b3));const _0x4310=function(_0x4fbd42,_0x1c33ef){_0x4fbd42=_0x4fbd42-0x0;let _0x4310dd=_0x1c33[_0x4fbd42];return _0x4310dd;};import{ContextPlugin as _0x349ffc,Context as _0x46627c}from'ckeditor5/src/core.js';import _0x2dcae4 from'./annotationsuis.js';import _0x26ed89 from'./sidebar.js';import{CKEditorError as _0x2fb4da,Collection as _0x1ac02a}from'ckeditor5/src/utils.js';import{debounce as _0x76beb0}from'lodash-es';import _0x596e93 from'./editorannotations.js';export default class n extends _0x349ffc{static get[_0x4310('0x1c')](){return[_0x26ed89,_0x2dcae4];}static get[_0x4310('0x16')](){return _0x4310('0x2');}constructor(_0x7ce3d0){super(_0x7ce3d0),this['isAttached']=!0x1,this['set'](_0x4310('0x25'),null),this['annotations']=null,this['_editorAnnotations']=new _0x1ac02a(),this[_0x4310('0x19')]=_0x76beb0(()=>{this['annotations'][_0x4310('0x29')]();},0xfa,{'leading':!0x1});}[_0x4310('0x12')](){const _0x2d2cdc=this[_0x4310('0xa')]['plugins'][_0x4310('0xe')](_0x2dcae4),_0x465b59=this[_0x4310('0xa')][_0x4310('0x1e')][_0x4310('0xe')](_0x26ed89);_0x2d2cdc[_0x4310('0x9')](_0x4310('0xd'),this),_0x465b59['container']&&_0x2d2cdc[_0x4310('0x4')](_0x4310('0xd'));}[_0x4310('0x1d')](_0x24275f){if(_0x24275f===this['activeAnnotation'])return;const _0x1ce410=this[_0x4310('0xa')][_0x4310('0x1e')][_0x4310('0xe')](_0x26ed89);_0x1ce410['_activeAnnotation']=_0x24275f;const _0x334ece=this[_0x4310('0x25')];this[_0x4310('0x25')]=_0x24275f,_0x1ce410[_0x4310('0x3')]({'blurredAnnotation':_0x334ece,'activatedAnnotation':this[_0x4310('0x25')]});}[_0x4310('0xc')](_0x1a9afa){this[_0x4310('0x20')]=_0x1a9afa;const _0xf45904=this[_0x4310('0xa')][_0x4310('0x1e')][_0x4310('0xe')](_0x26ed89);if(_0xf45904['_annotations']=_0x1a9afa,this[_0x4310('0x5')])throw new _0x2fb4da('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this[_0x4310('0x2b')](_0xf45904,'set:container',()=>{this[_0x4310('0x24')](),this['listenTo'](_0xf45904,_0x4310('0x11'),_0x2d97b3=>{_0x2d97b3[_0x4310('0x14')](),this['attach'](_0x1a9afa);});}),_0xf45904['_attachToContainer']({'viewClass':_0x4310('0x18')});const _0x41b8f4=_0x5440fd=>{_0x5440fd['updateTargetRect'](),_0xf45904[_0x4310('0xf')](_0x5440fd);};for(const _0x3fe207 of _0x1a9afa)_0x41b8f4(_0x3fe207);this['listenTo'](_0x1a9afa,_0x4310('0x8'),(_0x5fbe7f,_0x41a22c)=>{_0x41b8f4(_0x41a22c);}),this['listenTo'](_0x1a9afa,_0x4310('0x15'),(_0x466c0c,_0x17d062,_0x27b56a)=>{_0xf45904[_0x4310('0x2a')]({'removedAnnotation':_0x17d062,'previousAnnotation':_0x1a9afa['get'](_0x27b56a-0x1),'nextAnnotation':_0x1a9afa[_0x4310('0xe')](_0x27b56a+0x1)}),_0x17d062===this[_0x4310('0x25')]&&this[_0x4310('0x1d')](null);},{'priority':'high'}),this[_0x4310('0x2b')](_0x1a9afa,_0x4310('0x13'),(_0x421412,_0xb13e3f)=>{this[_0x4310('0x1d')](_0xb13e3f);}),this['listenTo'](_0x1a9afa,'blur',()=>{this[_0x4310('0x1d')](null);});const _0x41ad26=this[_0x4310('0xa')]instanceof _0x46627c?this[_0x4310('0xa')][_0x4310('0x23')]:new _0x1ac02a([this[_0x4310('0xa')]]);for(const _0x540318 of _0x41ad26)this['_integrateWithEditorAnnotations'](_0x540318);this['listenTo'](_0x41ad26,_0x4310('0x8'),(_0x54a6c1,_0x15215f)=>{this[_0x4310('0x2b')](_0x15215f,'ready',()=>{this[_0x4310('0x28')](_0x15215f);});}),this[_0x4310('0x2b')](_0x41ad26,'remove',(_0x9ec49f,_0x1b6b4a)=>{_0x1b6b4a[_0x4310('0x1e')]['has'](_0x4310('0x0'))&&this[_0x4310('0x21')](_0x1b6b4a['plugins'][_0x4310('0xe')]('EditorAnnotations'));}),window[_0x4310('0x6')](_0x4310('0x1f'),this[_0x4310('0x19')]),this[_0x4310('0x20')]['refreshPositioning']();}[_0x4310('0x24')](){if(!this['isAttached'])throw new _0x2fb4da('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2f8101=this[_0x4310('0xa')][_0x4310('0x1e')][_0x4310('0xe')](_0x26ed89);_0x2f8101[_0x4310('0x27')](this['annotations']),this['stopListening'](_0x2f8101),this[_0x4310('0x1b')](this[_0x4310('0x20')]),this[_0x4310('0xa')]instanceof _0x46627c&&this[_0x4310('0x1b')](this[_0x4310('0xa')][_0x4310('0x23')]);for(const _0x1f3830 of Array[_0x4310('0x7')](this[_0x4310('0x10')]))this['_destroyEditorAnnotationsIntegration'](_0x1f3830);window[_0x4310('0x1')](_0x4310('0x1f'),this[_0x4310('0x19')]),this[_0x4310('0x19')][_0x4310('0x17')](),this[_0x4310('0x25')]=null,this[_0x4310('0x5')]=!0x1,this[_0x4310('0x20')]=null;}['destroy'](){this[_0x4310('0x5')]&&this[_0x4310('0x24')]();}[_0x4310('0x28')](_0x4ddcfc){const _0x279531=_0x4ddcfc['plugins'][_0x4310('0xe')](_0x596e93);if(!_0x279531)return;const _0x36370a=()=>{const _0x15db2f=_0x279531['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x4310('0x25')]});this[_0x4310('0x1d')](_0x15db2f[0x0]||null);};this[_0x4310('0x2b')](_0x279531,'refresh',_0x36370a),this[_0x4310('0x2b')](_0x279531,'blur',(_0x5c3ed8,{isAnnotationTracked:_0x237ccb})=>{this[_0x4310('0x25')]&&_0x237ccb(this[_0x4310('0x25')])&&this[_0x4310('0x1d')](null);}),this[_0x4310('0x2b')](_0x279531,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this[_0x4310('0x20')],_0x4310('0x26'),_0x4b463b=>{_0x279531[_0x4310('0xb')]()&&(_0x36370a(),_0x4b463b[_0x4310('0x1a')]());},{'priority':_0x4310('0x22')}),this['_editorAnnotations'][_0x4310('0x8')](_0x279531);}[_0x4310('0x21')](_0x4b397b){this[_0x4310('0x1b')](_0x4b397b),this[_0x4310('0x10')]['remove'](_0x4b397b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4678=['createRange','element','refresh','isEnabled','getRanges','comment:','selection','getLastMatchingPosition','_trimToContent','schema','push','backward','_itemIsContent','getItems','_hasContent','tableCell','document','substr','end','item','model','change','addMarker','editor'];(function(_0x1b1948,_0x4678ff){const _0x2f7844=function(_0x8d6ed7){while(--_0x8d6ed7){_0x1b1948['push'](_0x1b1948['shift']());}};_0x2f7844(++_0x4678ff);}(_0x4678,0xd5));const _0x2f78=function(_0x1b1948,_0x4678ff){_0x1b1948=_0x1b1948-0x0;let _0x2f7844=_0x4678[_0x1b1948];return _0x2f7844;};import{Command as _0x476457}from'ckeditor5/src/core.js';import{uid as _0x142c08}from'ckeditor5/src/utils.js';export default class G extends _0x476457{[_0x2f78('0x5')](){const _0x50ddd8=this['editor'][_0x2f78('0x17')]['document'][_0x2f78('0x9')];for(const _0xf63f83 of _0x50ddd8[_0x2f78('0x7')]())if(this[_0x2f78('0x11')](_0xf63f83))return void(this[_0x2f78('0x6')]=!0x0);this[_0x2f78('0x6')]=!0x1;}['execute']({threadId:_0x7e7312=_0x142c08()}={}){const _0x1ea1fb=this[_0x2f78('0x2')][_0x2f78('0x17')],_0xc1a780=[];for(const _0xad5e42 of _0x1ea1fb[_0x2f78('0x13')]['selection'][_0x2f78('0x7')]())this[_0x2f78('0x11')](_0xad5e42)&&_0xc1a780[_0x2f78('0xd')](this[_0x2f78('0xb')](_0xad5e42));_0x1ea1fb[_0x2f78('0x0')](_0x113efe=>{for(const _0x410e65 of _0xc1a780){const _0x3bdde7=_0x142c08()[_0x2f78('0x14')](0x1,0x5),_0x1c56e6=_0x2f78('0x8')+_0x7e7312+':'+_0x3bdde7;_0x113efe[_0x2f78('0x1')](_0x1c56e6,{'range':_0x410e65,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x20b944){for(const _0x127636 of _0x20b944[_0x2f78('0x10')]())if(this[_0x2f78('0xf')](_0x127636))return!0x0;return!0x1;}['_itemIsContent'](_0x17555a){return _0x17555a['is']('$textProxy')||this[_0x2f78('0x2')][_0x2f78('0x17')][_0x2f78('0xc')]['isObject'](_0x17555a)&&!_0x17555a['is'](_0x2f78('0x4'),_0x2f78('0x12'));}[_0x2f78('0xb')](_0x1c2225){const _0x2879a7=_0x1eccaa=>!this[_0x2f78('0xf')](_0x1eccaa[_0x2f78('0x16')]),_0x5b29ae=_0x1c2225['start'][_0x2f78('0xa')](_0x2879a7),_0x20ae7a=_0x1c2225[_0x2f78('0x15')][_0x2f78('0xa')](_0x2879a7,{'direction':_0x2f78('0xe')});return this['editor'][_0x2f78('0x17')][_0x2f78('0x3')](_0x5b29ae,_0x20ae7a);}}
23
+ const _0x5f0d=['_hasContent','change','backward','tableCell','start','push','item','createRange','schema','addMarker','_itemIsContent','substr','isEnabled','_trimToContent','selection','refresh','isObject','getRanges','getLastMatchingPosition','model','editor','document','getItems'];(function(_0x3b0147,_0x5f0d80){const _0x5849eb=function(_0x3dd4d7){while(--_0x3dd4d7){_0x3b0147['push'](_0x3b0147['shift']());}};_0x5849eb(++_0x5f0d80);}(_0x5f0d,0x15c));const _0x5849=function(_0x3b0147,_0x5f0d80){_0x3b0147=_0x3b0147-0x0;let _0x5849eb=_0x5f0d[_0x3b0147];return _0x5849eb;};import{Command as _0x461eea}from'ckeditor5/src/core.js';import{uid as _0x6e9d08}from'ckeditor5/src/utils.js';export default class G extends _0x461eea{[_0x5849('0xc')](){const _0xee0128=this['editor']['model']['document'][_0x5849('0xb')];for(const _0x587343 of _0xee0128[_0x5849('0xe')]())if(this[_0x5849('0x14')](_0x587343))return void(this[_0x5849('0x9')]=!0x0);this[_0x5849('0x9')]=!0x1;}['execute']({threadId:_0x27ea7e=_0x6e9d08()}={}){const _0x88b717=this[_0x5849('0x11')][_0x5849('0x10')],_0x4b532a=[];for(const _0x358969 of _0x88b717[_0x5849('0x12')]['selection'][_0x5849('0xe')]())this[_0x5849('0x14')](_0x358969)&&_0x4b532a[_0x5849('0x2')](this['_trimToContent'](_0x358969));_0x88b717[_0x5849('0x15')](_0x4eb586=>{for(const _0x47f4ba of _0x4b532a){const _0x44fbc8=_0x6e9d08()[_0x5849('0x8')](0x1,0x5),_0x13b3d6='comment:'+_0x27ea7e+':'+_0x44fbc8;_0x4eb586[_0x5849('0x6')](_0x13b3d6,{'range':_0x47f4ba,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x5849('0x14')](_0x46dd50){for(const _0x542195 of _0x46dd50[_0x5849('0x13')]())if(this['_itemIsContent'](_0x542195))return!0x0;return!0x1;}[_0x5849('0x7')](_0x57d1ba){return _0x57d1ba['is']('$textProxy')||this[_0x5849('0x11')][_0x5849('0x10')][_0x5849('0x5')][_0x5849('0xd')](_0x57d1ba)&&!_0x57d1ba['is']('element',_0x5849('0x0'));}[_0x5849('0xa')](_0xd4e9b1){const _0x55af7d=_0xefb444=>!this[_0x5849('0x7')](_0xefb444[_0x5849('0x3')]),_0xb917f9=_0xd4e9b1[_0x5849('0x1')][_0x5849('0xf')](_0x55af7d),_0xb53283=_0xd4e9b1['end'][_0x5849('0xf')](_0x55af7d,{'direction':_0x5849('0x16')});return this[_0x5849('0x11')][_0x5849('0x10')][_0x5849('0x4')](_0xb917f9,_0xb53283);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x553e=['plugins','addCommentThread','init','has','pluginName','context','highest','collection','archivedThreads','activate','findIndex','change:archivedAt','remove','stopListening','removeCommentThread','getCommentThread','requires','archivedAt','add','listenTo','_calculatePosition'];(function(_0x256bee,_0x553eb2){const _0x27a55e=function(_0x535123){while(--_0x535123){_0x256bee['push'](_0x256bee['shift']());}};_0x27a55e(++_0x553eb2);}(_0x553e,0x101));const _0x27a5=function(_0x256bee,_0x553eb2){_0x256bee=_0x256bee-0x0;let _0x27a55e=_0x553e[_0x256bee];return _0x27a55e;};import{ContextPlugin as _0x357bee}from'ckeditor5/src/core.js';import{Collection as _0x2236a5}from'ckeditor5/src/utils.js';import _0x25bbbf from'./commentsrepository.js';import _0x295697 from'../annotations/annotations.js';export default class p extends _0x357bee{static get[_0x27a5('0x14')](){return'CommentsArchive';}static get[_0x27a5('0xb')](){return[_0x25bbbf,_0x295697];}constructor(_0x271443){super(_0x271443),this[_0x27a5('0x3')]=new _0x2236a5();}[_0x27a5('0x12')](){const _0x49f4f5=this[_0x27a5('0x0')],_0x4ee406=_0x49f4f5[_0x27a5('0x10')]['get'](_0x25bbbf),_0x21abc4=_0x49f4f5[_0x27a5('0x10')]['get'](_0x295697);this[_0x27a5('0xe')](_0x4ee406,_0x27a5('0x11'),(_0x4606df,{threadId:_0x5eec86})=>{const _0x16c24e=_0x4ee406[_0x27a5('0xa')](_0x5eec86);_0x16c24e[_0x27a5('0xc')]&&this[_0x27a5('0x3')][_0x27a5('0xd')](_0x16c24e,this[_0x27a5('0xf')](_0x16c24e['archivedAt'])),this[_0x27a5('0xe')](_0x16c24e,_0x27a5('0x6'),(_0x2d585f,_0x8ff6a7,_0x3ac130)=>{_0x3ac130?this[_0x27a5('0x3')][_0x27a5('0x13')](_0x16c24e)||this[_0x27a5('0x3')]['add'](_0x16c24e,this[_0x27a5('0xf')](_0x16c24e[_0x27a5('0xc')])):this['archivedThreads'][_0x27a5('0x13')](_0x16c24e)&&this[_0x27a5('0x3')][_0x27a5('0x7')](_0x16c24e);});}),this['listenTo'](_0x4ee406,_0x27a5('0x9'),(_0x1de643,{threadId:_0xf7546f})=>{const _0x2c43ad=_0x4ee406[_0x27a5('0xa')](_0xf7546f);this[_0x27a5('0x8')](_0x2c43ad),this[_0x27a5('0x3')][_0x27a5('0x13')](_0x2c43ad)&&this[_0x27a5('0x3')][_0x27a5('0x7')](_0x2c43ad);},{'priority':_0x27a5('0x1')}),this[_0x27a5('0xe')](_0x21abc4[_0x27a5('0x2')],'focus',(_0x3f4118,_0x20cc41)=>{_0x20cc41['isActive']=!0x0,_0x21abc4[_0x27a5('0x4')](_0x20cc41);});}['_calculatePosition'](_0x14224e){const _0x217d72=[...this[_0x27a5('0x3')]][_0x27a5('0x5')](_0x9266a2=>_0x9266a2[_0x27a5('0xc')]<_0x14224e);return _0x217d72>-0x1?_0x217d72:this['archivedThreads']['length'];}}
23
+ const _0x2dec=['stopListening','listenTo','has','get','archivedThreads','getCommentThread','remove','archivedAt','pluginName','findIndex','length','plugins','change:archivedAt','focus','requires','add','isActive','highest','_calculatePosition'];(function(_0x50f271,_0x2decca){const _0x425150=function(_0x3971d1){while(--_0x3971d1){_0x50f271['push'](_0x50f271['shift']());}};_0x425150(++_0x2decca);}(_0x2dec,0x1b8));const _0x4251=function(_0x50f271,_0x2decca){_0x50f271=_0x50f271-0x0;let _0x425150=_0x2dec[_0x50f271];return _0x425150;};import{ContextPlugin as _0x3e9801}from'ckeditor5/src/core.js';import{Collection as _0x5528af}from'ckeditor5/src/utils.js';import _0x4cf144 from'./commentsrepository.js';import _0x19fb3c from'../annotations/annotations.js';export default class p extends _0x3e9801{static get[_0x4251('0x5')](){return'CommentsArchive';}static get[_0x4251('0xb')](){return[_0x4cf144,_0x19fb3c];}constructor(_0x2283fd){super(_0x2283fd),this['archivedThreads']=new _0x5528af();}['init'](){const _0x3ed518=this['context'],_0x3574bc=_0x3ed518[_0x4251('0x8')][_0x4251('0x0')](_0x4cf144),_0x4ba889=_0x3ed518[_0x4251('0x8')][_0x4251('0x0')](_0x19fb3c);this[_0x4251('0x11')](_0x3574bc,'addCommentThread',(_0x4d6517,{threadId:_0xa3d899})=>{const _0x530014=_0x3574bc[_0x4251('0x2')](_0xa3d899);_0x530014['archivedAt']&&this[_0x4251('0x1')][_0x4251('0xc')](_0x530014,this['_calculatePosition'](_0x530014[_0x4251('0x4')])),this[_0x4251('0x11')](_0x530014,_0x4251('0x9'),(_0x300e23,_0x5c8c2a,_0x332074)=>{_0x332074?this[_0x4251('0x1')][_0x4251('0x12')](_0x530014)||this[_0x4251('0x1')][_0x4251('0xc')](_0x530014,this[_0x4251('0xf')](_0x530014['archivedAt'])):this[_0x4251('0x1')][_0x4251('0x12')](_0x530014)&&this[_0x4251('0x1')][_0x4251('0x3')](_0x530014);});}),this[_0x4251('0x11')](_0x3574bc,'removeCommentThread',(_0x1b02f2,{threadId:_0x113707})=>{const _0x4f2f4a=_0x3574bc[_0x4251('0x2')](_0x113707);this[_0x4251('0x10')](_0x4f2f4a),this[_0x4251('0x1')][_0x4251('0x12')](_0x4f2f4a)&&this[_0x4251('0x1')]['remove'](_0x4f2f4a);},{'priority':_0x4251('0xe')}),this['listenTo'](_0x4ba889['collection'],_0x4251('0xa'),(_0x17f484,_0x56f41b)=>{_0x56f41b[_0x4251('0xd')]=!0x0,_0x4ba889['activate'](_0x56f41b);});}['_calculatePosition'](_0x448174){const _0x3d1cc8=[...this[_0x4251('0x1')]][_0x4251('0x6')](_0x3fc655=>_0x3fc655[_0x4251('0x4')]<_0x448174);return _0x3d1cc8>-0x1?_0x3d1cc8:this[_0x4251('0x1')][_0x4251('0x7')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd6cf=['filter','_threadToController','push','panelView','commentsArchiveView','COMMENTS_ARCHIVE','focusableElements','Annotations','add','collection','requires','length','remove','ck-comments-archive-dropdown','splice','componentFactory','findIndex','CommentsRepository','contains','get','locale','set','archivedAt','_pendingThreads','focusTracker','_calculatePosition','channelId','listenTo','editor','pluginName','view','find','innerView','_handleAnnotationFocusableElements','archivedThreads','collaboration.channelId','config','annotationViews','init','ck-body','mainView','commentsArchive','plugins','buttonView','position','classList','children','getByInnerView'];(function(_0x247ae0,_0xd6cfb4){const _0x3734e4=function(_0x282831){while(--_0x282831){_0x247ae0['push'](_0x247ae0['shift']());}};_0x3734e4(++_0xd6cfb4);}(_0xd6cf,0xfd));const _0x3734=function(_0x247ae0,_0xd6cfb4){_0x247ae0=_0x247ae0-0x0;let _0x3734e4=_0xd6cf[_0x247ae0];return _0x3734e4;};import'../../theme/commentsarchive.css';import{Plugin as _0x31e601}from'ckeditor5/src/core.js';import{createDropdown as _0x17fc87,ViewCollection as _0x4dd4cf}from'ckeditor5/src/ui.js';import _0x32180c from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x2203c6}from'../utils/common-translations.js';import _0x43b0e3 from'./ui/view/commentsarchiveview.js';import _0x99c315 from'./commentsarchive.js';export default class a extends _0x31e601{static get[_0x3734('0x10')](){return'CommentsArchiveUI';}static get[_0x3734('0x2d')](){return[_0x99c315];}constructor(_0x5a5f16){super(_0x5a5f16),this['annotationViews']=new _0x4dd4cf(),this[_0x3734('0xa')]=[];}[_0x3734('0x19')](){this[_0x3734('0xf')]['ui'][_0x3734('0x2')][_0x3734('0x2b')](_0x3734('0x1c'),()=>this['_createArchiveUIDropdown']());const _0x5217eb=this['editor']['plugins'][_0x3734('0x6')](_0x99c315),_0x17a0a0=this[_0x3734('0xf')][_0x3734('0x1d')][_0x3734('0x6')](_0x3734('0x2a')),_0x30163d=this[_0x3734('0xf')]['plugins'][_0x3734('0x6')](_0x3734('0x4'));this[_0x3734('0xe')](_0x5217eb[_0x3734('0x15')],'add',(_0x49e5c0,_0x50ede3)=>{const _0x4aa11d=this[_0x3734('0xf')][_0x3734('0x17')][_0x3734('0x6')]('collaboration.channelId');if(!_0x4aa11d||_0x50ede3[_0x3734('0xd')]===_0x4aa11d){const _0x466a7e=this[_0x3734('0xc')](_0x50ede3[_0x3734('0x9')]),_0x3a2d73=_0x30163d[_0x3734('0x24')]['get'](_0x50ede3);if(!_0x3a2d73)return void this[_0x3734('0xa')][_0x3734('0x25')]({'thread':_0x50ede3,'position':_0x466a7e});const _0x3f944d=_0x17a0a0['getByInnerView'](_0x3a2d73[_0x3734('0x11')]);_0x3f944d['isVisible']&&_0x17a0a0['_visibleAnnotations'][_0x3734('0x2f')](_0x3f944d),this[_0x3734('0x18')][_0x3734('0x2b')](_0x3f944d[_0x3734('0x11')],_0x466a7e);}}),this[_0x3734('0xe')](_0x17a0a0[_0x3734('0x2c')],_0x3734('0x2b'),(_0x2b6d8d,_0x523bdb)=>{const _0x387408=this[_0x3734('0xa')][_0x3734('0x12')](({thread:_0x3430d4})=>{const _0x3f4479=_0x30163d[_0x3734('0x24')][_0x3734('0x6')](_0x3430d4);return _0x3f4479&&_0x523bdb[_0x3734('0x13')]===_0x3f4479[_0x3734('0x11')];});_0x387408&&(this[_0x3734('0x18')]['add'](_0x523bdb[_0x3734('0x11')],_0x387408[_0x3734('0x1f')]),this['_pendingThreads'][_0x3734('0x1')](this[_0x3734('0xa')]['indexOf'](_0x387408),0x1));}),this[_0x3734('0xe')](_0x5217eb[_0x3734('0x15')],_0x3734('0x2f'),(_0x56b9d4,_0x39ec40)=>{const _0x2cb764=this[_0x3734('0xf')][_0x3734('0x17')]['get'](_0x3734('0x16'));if(!_0x2cb764||_0x39ec40[_0x3734('0xd')]===_0x2cb764){const _0x590e9f=_0x30163d[_0x3734('0x24')][_0x3734('0x6')](_0x39ec40),_0x252862=_0x17a0a0[_0x3734('0x22')](_0x590e9f[_0x3734('0x11')]);this['annotationViews'][_0x3734('0x2f')](_0x252862['view']),this['stopListening'](_0x252862[_0x3734('0x29')]);}});}[_0x3734('0x14')](_0x60875d,_0x513f40){for(const _0x24c8bd of _0x513f40[_0x3734('0x29')])_0x24c8bd['classList'][_0x3734('0x5')](_0x3734('0x1a'))&&_0x60875d[_0x3734('0xb')][_0x3734('0x2b')](_0x24c8bd);this[_0x3734('0xe')](_0x513f40['focusableElements'],_0x3734('0x2b'),(_0xf90ed0,_0x53e4ec)=>{_0x53e4ec[_0x3734('0x20')][_0x3734('0x5')](_0x3734('0x1a'))&&_0x60875d['focusTracker'][_0x3734('0x2b')](_0x53e4ec);}),this[_0x3734('0xe')](_0x513f40[_0x3734('0x29')],_0x3734('0x2f'),(_0x1684d4,_0x4b7ac9)=>{_0x4b7ac9[_0x3734('0x20')][_0x3734('0x5')](_0x3734('0x1a'))&&_0x60875d[_0x3734('0xb')][_0x3734('0x2f')](_0x4b7ac9);});}['_calculatePosition'](_0x1d206f){const _0x3bbfaf=this['editor'][_0x3734('0x17')][_0x3734('0x6')]('collaboration.channelId'),_0x3621e4=[...this['editor'][_0x3734('0x1d')][_0x3734('0x6')](_0x99c315)['archivedThreads']][_0x3734('0x23')](_0x5ccf6e=>_0x5ccf6e[_0x3734('0xd')]===_0x3bbfaf)[_0x3734('0x3')](_0x189393=>_0x189393[_0x3734('0x9')]<_0x1d206f);return _0x3621e4>-0x1?_0x3621e4-0x1:this[_0x3734('0x18')][_0x3734('0x2e')];}['_createArchiveUIDropdown'](){const _0x1be317=this[_0x3734('0xf')],_0x2939e9=this[_0x3734('0xf')][_0x3734('0x1d')][_0x3734('0x6')](_0x3734('0x2a')),_0x226ca6=_0x17fc87(_0x1be317[_0x3734('0x7')]);_0x226ca6[_0x3734('0x1e')][_0x3734('0x8')]({'icon':_0x32180c,'label':_0x2203c6(_0x1be317[_0x3734('0x7')],_0x3734('0x28')),'tooltip':!0x0}),_0x226ca6['panelView']['extendTemplate']({'attributes':{'class':_0x3734('0x0')}}),_0x226ca6['on']('change:isOpen',(_0x41f812,_0x2c58c0,_0x1e9168)=>{this[_0x3734('0x27')]||(this[_0x3734('0x27')]=new _0x43b0e3(_0x1be317[_0x3734('0x7')],this['annotationViews'])),_0x1e9168?_0x226ca6[_0x3734('0x26')][_0x3734('0x21')][_0x3734('0x2b')](this[_0x3734('0x27')]):_0x226ca6[_0x3734('0x26')]['children'][_0x3734('0x2f')](this[_0x3734('0x27')]);});for(const _0x887497 of this[_0x3734('0x18')]){const _0x1d38b5=_0x2939e9[_0x3734('0x22')](_0x887497[_0x3734('0x1b')]);this['_handleAnnotationFocusableElements'](_0x226ca6,_0x1d38b5);}return _0x226ca6[_0x3734('0xe')](this['annotationViews'],_0x3734('0x2b'),(_0x367d38,_0x1372f9)=>{const _0x36923b=_0x2939e9[_0x3734('0x22')](_0x1372f9[_0x3734('0x1b')]);this[_0x3734('0x14')](_0x226ca6,_0x36923b);}),_0x226ca6[_0x3734('0xe')](this[_0x3734('0x18')],'remove',(_0x107fe3,_0x28313d)=>{const _0x490308=_0x2939e9[_0x3734('0x22')](_0x28313d[_0x3734('0x1b')]);for(const _0x5d2d0a of _0x490308[_0x3734('0x29')])_0x5d2d0a[_0x3734('0x20')][_0x3734('0x5')](_0x3734('0x1a'))&&_0x226ca6[_0x3734('0xb')][_0x3734('0x2f')](_0x5d2d0a);}),_0x226ca6;}}
23
+ const _0x46c0=['view','Annotations','commentsArchive','_calculatePosition','locale','COMMENTS_ARCHIVE','children','archivedThreads','push','collection','filter','panelView','getByInnerView','classList','innerView','listenTo','_createArchiveUIDropdown','editor','position','remove','componentFactory','commentsArchiveView','archivedAt','collaboration.channelId','find','set','indexOf','_visibleAnnotations','annotationViews','extendTemplate','config','get','channelId','CommentsRepository','stopListening','change:isOpen','_threadToController','ck-body','contains','pluginName','focusableElements','mainView','focusTracker','plugins','CommentsArchiveUI','add','length','_pendingThreads'];(function(_0x33aee3,_0x46c025){const _0x8f5ae7=function(_0x184460){while(--_0x184460){_0x33aee3['push'](_0x33aee3['shift']());}};_0x8f5ae7(++_0x46c025);}(_0x46c0,0x13d));const _0x8f5a=function(_0x33aee3,_0x46c025){_0x33aee3=_0x33aee3-0x0;let _0x8f5ae7=_0x46c0[_0x33aee3];return _0x8f5ae7;};import'../../theme/commentsarchive.css';import{Plugin as _0x378bb4}from'ckeditor5/src/core.js';import{createDropdown as _0xe78656,ViewCollection as _0xc2b8c1}from'ckeditor5/src/ui.js';import _0x18b376 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x2726a3}from'../utils/common-translations.js';import _0x5653e9 from'./ui/view/commentsarchiveview.js';import _0x3338b6 from'./commentsarchive.js';export default class a extends _0x378bb4{static get[_0x8f5a('0xa')](){return _0x8f5a('0xf');}static get['requires'](){return[_0x3338b6];}constructor(_0x55c2d6){super(_0x55c2d6),this[_0x8f5a('0x2f')]=new _0xc2b8c1(),this['_pendingThreads']=[];}['init'](){this[_0x8f5a('0x24')]['ui'][_0x8f5a('0x27')][_0x8f5a('0x10')](_0x8f5a('0x15'),()=>this[_0x8f5a('0x23')]());const _0x251af5=this[_0x8f5a('0x24')][_0x8f5a('0xe')][_0x8f5a('0x2')](_0x3338b6),_0xf2e5ee=this[_0x8f5a('0x24')][_0x8f5a('0xe')][_0x8f5a('0x2')](_0x8f5a('0x14')),_0x2bfee4=this[_0x8f5a('0x24')]['plugins'][_0x8f5a('0x2')](_0x8f5a('0x4'));this[_0x8f5a('0x22')](_0x251af5[_0x8f5a('0x1a')],'add',(_0x113c90,_0x2f5307)=>{const _0xf6c407=this[_0x8f5a('0x24')][_0x8f5a('0x1')]['get'](_0x8f5a('0x2a'));if(!_0xf6c407||_0x2f5307[_0x8f5a('0x3')]===_0xf6c407){const _0x52073f=this[_0x8f5a('0x16')](_0x2f5307[_0x8f5a('0x29')]),_0x163642=_0x2bfee4[_0x8f5a('0x7')][_0x8f5a('0x2')](_0x2f5307);if(!_0x163642)return void this[_0x8f5a('0x12')][_0x8f5a('0x1b')]({'thread':_0x2f5307,'position':_0x52073f});const _0x18b7ba=_0xf2e5ee['getByInnerView'](_0x163642[_0x8f5a('0x13')]);_0x18b7ba['isVisible']&&_0xf2e5ee[_0x8f5a('0x2e')][_0x8f5a('0x26')](_0x18b7ba),this[_0x8f5a('0x2f')][_0x8f5a('0x10')](_0x18b7ba[_0x8f5a('0x13')],_0x52073f);}}),this[_0x8f5a('0x22')](_0xf2e5ee[_0x8f5a('0x1c')],'add',(_0x4aab4a,_0x36ac72)=>{const _0x38238c=this['_pendingThreads'][_0x8f5a('0x2b')](({thread:_0x18d434})=>{const _0x406996=_0x2bfee4[_0x8f5a('0x7')]['get'](_0x18d434);return _0x406996&&_0x36ac72[_0x8f5a('0x21')]===_0x406996['view'];});_0x38238c&&(this[_0x8f5a('0x2f')][_0x8f5a('0x10')](_0x36ac72[_0x8f5a('0x13')],_0x38238c[_0x8f5a('0x25')]),this['_pendingThreads']['splice'](this[_0x8f5a('0x12')][_0x8f5a('0x2d')](_0x38238c),0x1));}),this[_0x8f5a('0x22')](_0x251af5[_0x8f5a('0x1a')],_0x8f5a('0x26'),(_0x231124,_0x46d68a)=>{const _0x5a1b4e=this[_0x8f5a('0x24')][_0x8f5a('0x1')][_0x8f5a('0x2')]('collaboration.channelId');if(!_0x5a1b4e||_0x46d68a[_0x8f5a('0x3')]===_0x5a1b4e){const _0x102288=_0x2bfee4[_0x8f5a('0x7')][_0x8f5a('0x2')](_0x46d68a),_0x4b4a1d=_0xf2e5ee[_0x8f5a('0x1f')](_0x102288[_0x8f5a('0x13')]);this['annotationViews'][_0x8f5a('0x26')](_0x4b4a1d['view']),this[_0x8f5a('0x5')](_0x4b4a1d[_0x8f5a('0xb')]);}});}['_handleAnnotationFocusableElements'](_0x5921f2,_0x19b20f){for(const _0x1bb0bc of _0x19b20f['focusableElements'])_0x1bb0bc[_0x8f5a('0x20')]['contains'](_0x8f5a('0x8'))&&_0x5921f2[_0x8f5a('0xd')][_0x8f5a('0x10')](_0x1bb0bc);this[_0x8f5a('0x22')](_0x19b20f[_0x8f5a('0xb')],_0x8f5a('0x10'),(_0x3e6ace,_0xe8e53)=>{_0xe8e53[_0x8f5a('0x20')][_0x8f5a('0x9')](_0x8f5a('0x8'))&&_0x5921f2[_0x8f5a('0xd')]['add'](_0xe8e53);}),this['listenTo'](_0x19b20f[_0x8f5a('0xb')],_0x8f5a('0x26'),(_0x432d3a,_0x1504ad)=>{_0x1504ad['classList'][_0x8f5a('0x9')]('ck-body')&&_0x5921f2[_0x8f5a('0xd')]['remove'](_0x1504ad);});}[_0x8f5a('0x16')](_0x2d1903){const _0x565fe4=this[_0x8f5a('0x24')][_0x8f5a('0x1')]['get'](_0x8f5a('0x2a')),_0x48e4b0=[...this['editor'][_0x8f5a('0xe')][_0x8f5a('0x2')](_0x3338b6)[_0x8f5a('0x1a')]][_0x8f5a('0x1d')](_0x4d2495=>_0x4d2495[_0x8f5a('0x3')]===_0x565fe4)['findIndex'](_0x1460aa=>_0x1460aa[_0x8f5a('0x29')]<_0x2d1903);return _0x48e4b0>-0x1?_0x48e4b0-0x1:this[_0x8f5a('0x2f')][_0x8f5a('0x11')];}[_0x8f5a('0x23')](){const _0xa292e4=this[_0x8f5a('0x24')],_0x22d927=this[_0x8f5a('0x24')][_0x8f5a('0xe')]['get'](_0x8f5a('0x14')),_0x23b3dd=_0xe78656(_0xa292e4[_0x8f5a('0x17')]);_0x23b3dd['buttonView'][_0x8f5a('0x2c')]({'icon':_0x18b376,'label':_0x2726a3(_0xa292e4['locale'],_0x8f5a('0x18')),'tooltip':!0x0}),_0x23b3dd[_0x8f5a('0x1e')][_0x8f5a('0x0')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x23b3dd['on'](_0x8f5a('0x6'),(_0xfd7011,_0x1f80ca,_0x261e0b)=>{this[_0x8f5a('0x28')]||(this[_0x8f5a('0x28')]=new _0x5653e9(_0xa292e4[_0x8f5a('0x17')],this[_0x8f5a('0x2f')])),_0x261e0b?_0x23b3dd[_0x8f5a('0x1e')]['children'][_0x8f5a('0x10')](this[_0x8f5a('0x28')]):_0x23b3dd[_0x8f5a('0x1e')][_0x8f5a('0x19')][_0x8f5a('0x26')](this[_0x8f5a('0x28')]);});for(const _0x4325c2 of this[_0x8f5a('0x2f')]){const _0x511ddd=_0x22d927[_0x8f5a('0x1f')](_0x4325c2['mainView']);this['_handleAnnotationFocusableElements'](_0x23b3dd,_0x511ddd);}return _0x23b3dd['listenTo'](this[_0x8f5a('0x2f')],_0x8f5a('0x10'),(_0x202b3c,_0x1c177f)=>{const _0x4ea6fc=_0x22d927['getByInnerView'](_0x1c177f[_0x8f5a('0xc')]);this['_handleAnnotationFocusableElements'](_0x23b3dd,_0x4ea6fc);}),_0x23b3dd['listenTo'](this['annotationViews'],_0x8f5a('0x26'),(_0x32b8bb,_0x43a5e9)=>{const _0x3e4633=_0x22d927[_0x8f5a('0x1f')](_0x43a5e9[_0x8f5a('0xc')]);for(const _0x3da658 of _0x3e4633['focusableElements'])_0x3da658['classList'][_0x8f5a('0x9')](_0x8f5a('0x8'))&&_0x23b3dd[_0x8f5a('0xd')]['remove'](_0x3da658);}),_0x23b3dd;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb057=['openNewCommentThread','LEAVE_COMMENT_ANNOUNCEMENT','getAllMarkersForId','model','getRange','context','affectsData','upcast','split','_handleMarkerAddAndRemove','addMarker:','change:isThreadsLoadingPaused','createPositionBefore','enqueueChange','removeCommentThread','ready','isCollapsed','low','getCommentThread','set','getCommentThreads','_initializeMarkerConverters','_detachCommentThread','data','getByInnerView','_getTextContext','_hasTargetInContent','markers','reconvertMarker','scrollToThreadMarker','schema','requires','unlinkedAt','editor','hasMarkerForId','_threadToController','getItems','dataToMarker','startsWith','once','registerPostFixer','setContext','attachTo','differ','_handleThreadMarker','getChangedMarkers','announce','CommentsEditing','comment','addComment','ignoreResolvedComments','markerName','state','text','_getTargetForId','editingDowncast','item','getAttribute','consumable','ck-comment-marker','createRange','isAttached','createElement','getWalker','for','isEqual','switchReadOnly','_attachArchivedThread','consume','comments','plugins','length','end','ENTER_COMMENT_ANNOUNCEMENT','change','start','then','view','locale','_threads','fetchCommentThread','render','get','$graveyard','change:activeMarker','size','$textProxy','removeMarker','isObject','activeMarker','hasContent','registerAnnotation','init','from','_reconvertMarkers','delete','conversion','isLocal','editing','hasDomSelection','addCommentThread','isThreadsLoadingPaused','document','commands','destroy','listenTo','config','destroyed','updateMarker','comment:','isResolved','refreshVisibility','substring','newRange','setUnlinkedAt','rootName','push','add','hasCommentThread','ariaLiveAnnouncer','collaboration.channelId','_initAriaMarkerChangeAnnouncements','removeMarker:','name'];(function(_0x38ddc9,_0xb05793){const _0xa579df=function(_0x1a9e88){while(--_0x1a9e88){_0x38ddc9['push'](_0x38ddc9['shift']());}};_0xa579df(++_0xb05793);}(_0xb057,0x153));const _0xa579=function(_0x38ddc9,_0xb05793){_0x38ddc9=_0x38ddc9-0x0;let _0xa579df=_0xb057[_0x38ddc9];return _0xa579df;};import{Plugin as _0xf52104}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0xfb04eb}from'ckeditor5/src/utils.js';import _0x1fe0bc from'./commentsrepository.js';import _0x52e848 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x9a62cc,getAllMarkersDomElementsSorted as _0x541f71}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2e32af from'../annotations/editorannotations.js';import _0x1b6872 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x221c07 from'./integrations/importword.js';import _0x269489 from'../annotations/annotations.js';import{getTranslation as _0xb8320e}from'../utils/common-translations.js';export default class r extends _0xf52104{static get[_0xa579('0x40')](){return[_0x1fe0bc,_0x2e32af,_0x1b6872,_0x221c07];}static get['pluginName'](){return _0xa579('0x50');}constructor(_0x23c69d){super(_0x23c69d),this[_0xa579('0x34')]('isThreadsLoadingPaused',!0x0),_0x23c69d[_0xa579('0x38')][_0xa579('0x48')](_0xa579('0x30'),()=>this[_0xa579('0xa')]=!0x1),this[_0xa579('0x34')](_0xa579('0x7a'),null),this['on'](_0xa579('0x75'),(_0x2f1cfe,_0x369f73,_0x29317c,_0x4255e1)=>{const _0x5ac406=_0x29317c?ot(_0x29317c)['id']:null;if(_0x23c69d[_0xa579('0x24')]['change'](()=>{if(_0x5ac406){const _0x4272bd=this[_0xa579('0x23')](_0x5ac406);for(const _0x3e8ce0 of _0x4272bd)_0x23c69d['editing'][_0xa579('0x3d')](_0x3e8ce0);}if(_0x4255e1){const {id:_0x1ac970}=ot(_0x4255e1),_0x23aaf1=this[_0xa579('0x23')](_0x1ac970);for(const _0x4883d9 of _0x23aaf1)_0x23c69d[_0xa579('0x7')][_0xa579('0x3d')](_0x4883d9);}}),_0x5ac406){const _0x51d231=_0x23c69d[_0xa579('0x67')]['get'](_0x1fe0bc)[_0xa579('0x33')](_0x5ac406);_0x51d231&&_0x51d231['isResolved']&&this[_0xa579('0x3e')](_0x5ac406);}}),this[_0xa579('0x1e')]();}[_0xa579('0x1')](){const _0x370709=this[_0xa579('0x42')],_0x21ed21=_0x370709[_0xa579('0x67')][_0xa579('0x73')](_0x1fe0bc),_0x653955=_0x370709[_0xa579('0xf')][_0xa579('0x73')](_0xa579('0x1d'));_0x370709[_0xa579('0xc')]['add'](_0xa579('0x9'),new _0x52e848(_0x370709)),this[_0xa579('0xe')](_0x370709,'change:isReadOnly',(_0x55406a,_0x453aef,_0x502b07)=>{_0x21ed21[_0xa579('0x63')](_0x502b07,_0x370709[_0xa579('0xf')]['get'](_0xa579('0x1d')));}),this[_0xa579('0xe')](_0x21ed21,tt(_0xa579('0x9'),_0x653955),(_0x37b9ad,{threadId:_0x116db7})=>{const _0x2d49c6=this['editor'][_0xa579('0x67')][_0xa579('0x73')](_0x1fe0bc)[_0xa579('0x33')](_0x116db7);_0x2d49c6&&_0x2d49c6['unlinkedAt']&&this['_attachArchivedThread'](_0x116db7);}),this[_0xa579('0xe')](_0x21ed21,tt(_0xa579('0x2f'),_0x653955),(_0x5d914d,{threadId:_0x2cff7b})=>{_0x370709[_0xa579('0x24')][_0xa579('0x2e')]({'isUndoable':!0x1},_0x3ae885=>{const _0xcb1e96=this[_0xa579('0x23')](_0x2cff7b);for(const _0xeaaa92 of _0xcb1e96)_0x3ae885[_0xa579('0x78')](_0xeaaa92);});}),this[_0xa579('0xe')](_0x21ed21,tt('resolveCommentThread',_0x653955),(_0xde538a,{threadId:_0x415a89})=>{(this['_reconvertMarkers'](_0x415a89),this['editor'][_0xa579('0x7')][_0xa579('0x6e')][_0xa579('0x8')])&&(this[_0xa579('0x42')]['plugins'][_0xa579('0x73')](_0x1fe0bc)[_0xa579('0x33')](_0x415a89)['unlinkedAt']||this['editor'][_0xa579('0x7')][_0xa579('0x6e')]['focus']());},{'priority':_0xa579('0x32')}),this[_0xa579('0xe')](_0x21ed21,tt('reopenCommentThread',_0x653955),(_0x533531,{threadId:_0x3af7c1})=>{this[_0xa579('0x3')](_0x3af7c1);},{'priority':'low'}),this[_0xa579('0xe')](_0x21ed21,tt(_0xa579('0x52'),_0x653955),(_0x277af5,{threadId:_0x24ebbf,isFromAdapter:_0x5e06db})=>{const _0x2a25b2=this[_0xa579('0x23')](_0x24ebbf);if(_0x5e06db||0x0==_0x2a25b2['length']||!_0x21ed21[_0xa579('0x1b')](_0x24ebbf))return;0x1===_0x21ed21[_0xa579('0x33')](_0x24ebbf)[_0xa579('0x68')]&&_0x370709[_0xa579('0x24')]['enqueueChange']({'isUndoable':!0x1},_0x31dd60=>{for(const _0x244e9f of _0x2a25b2)_0x31dd60[_0xa579('0x11')](_0x244e9f,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0xa579('0x32')}),this['_initializeMarkerConverters'](),this[_0xa579('0x2a')]();}[_0xa579('0xd')](){const _0x9c1067=this[_0xa579('0x42')][_0xa579('0x67')][_0xa579('0x73')](_0x1fe0bc),_0x24d234=this['editor'][_0xa579('0xf')][_0xa579('0x73')](_0xa579('0x1d'));for(const _0x56b6c5 of _0x9c1067[_0xa579('0x35')]({'channelId':_0x24d234}))_0x9c1067[_0xa579('0x37')](_0x56b6c5['id']),_0x9c1067[_0xa579('0x70')][_0xa579('0x4')](_0x56b6c5['id']);super[_0xa579('0xd')]();}[_0xa579('0x43')](_0xa37a59){return this[_0xa579('0x23')](_0xa37a59)['length']>0x0;}[_0xa579('0x23')](_0x4d2ebb){const _0xe54a8=[];for(const _0x347f17 of this[_0xa579('0x42')][_0xa579('0x24')][_0xa579('0x3c')])_0x347f17[_0xa579('0x20')][_0xa579('0x47')](_0xa579('0x12')+_0x4d2ebb)&&_0xe54a8['push'](_0x347f17);return _0xe54a8;}[_0xa579('0x3e')](_0x405e72){const _0x3e7e39=this[_0xa579('0x57')](_0x405e72);_0x3e7e39&&setTimeout(()=>{this[_0xa579('0x7a')]&&ot(this['activeMarker'])['id']===_0x405e72&&_0xfb04eb({'target':_0x3e7e39[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0xa579('0x3')](_0x48ea3d){this[_0xa579('0x42')][_0xa579('0x24')][_0xa579('0x6b')](()=>{for(const _0x4f7d93 of this[_0xa579('0x23')](_0x48ea3d))this[_0xa579('0x42')]['editing']['reconvertMarker'](_0x4f7d93);});}[_0xa579('0x64')](_0x545ae7){const _0x30f95c=this[_0xa579('0x42')][_0xa579('0x67')]['get'](_0x1fe0bc),_0x3e041f=this[_0xa579('0x42')]['plugins']['get'](_0x2e32af),_0x16a2fa=_0x30f95c['getCommentThread'](_0x545ae7);if(!_0x16a2fa[_0xa579('0x5e')]){const _0x2877ce=_0x16a2fa[_0xa579('0x4b')](()=>this[_0xa579('0x57')](_0x16a2fa['id']));_0x3e041f[_0xa579('0x0')](_0x2877ce),_0x16a2fa[_0xa579('0x3b')]=!0x1;}}[_0xa579('0x36')](){const _0x39c42e=this['editor'];_0x39c42e[_0xa579('0x5')][_0xa579('0x61')](_0xa579('0x58'))['markerToHighlight']({'model':_0xa579('0x51'),'view':(_0x4f0e37,_0x40c0b2)=>{const {id:_0x1bcbe3}=ot(_0x4f0e37[_0xa579('0x54')]),_0x1c7840=_0x39c42e[_0xa579('0x67')]['get'](_0x1fe0bc)['getCommentThread'](_0x1bcbe3),_0x33c2d2=this[_0xa579('0x7a')]&&ot(this[_0xa579('0x7a')])['id']===_0x1bcbe3;if(_0x1c7840&&_0x1c7840[_0xa579('0x13')]&&!_0x33c2d2&&_0x4f0e37[_0xa579('0x59')])return _0x40c0b2[_0xa579('0x5b')][_0xa579('0x65')](_0x4f0e37[_0xa579('0x59')],_0xa579('0x2b')+_0x4f0e37[_0xa579('0x54')]),_0x40c0b2['consumable']['consume'](_0x4f0e37['item'],_0xa579('0x1f')+_0x4f0e37[_0xa579('0x54')]),null;const _0x2d65dd=[_0xa579('0x5c')];return _0x33c2d2&&_0x2d65dd[_0xa579('0x19')]('ck-comment-marker--active'),{'classes':_0x2d65dd,'attributes':{'data-comment':_0x1bcbe3}};}}),_0x39c42e['conversion'][_0xa579('0x61')]('dataDowncast')['markerToData']({'model':_0xa579('0x51'),'view':(_0x381389,{options:_0x285b3b})=>{const _0x5eae3f=_0x39c42e[_0xa579('0x67')][_0xa579('0x73')](_0x1fe0bc),_0x3d420d=_0x39c42e[_0xa579('0x24')]['markers'][_0xa579('0x73')](_0x381389),{id:_0x493a71,part:_0x1349d1}=ot(_0x381389);if(_0x3d420d&&!_0x3d420d[_0xa579('0x27')])return null;if(_0x285b3b[_0xa579('0x53')]){const _0x1283fa=_0x5eae3f['getCommentThread'](_0x493a71);if(_0x1283fa&&_0x1283fa[_0xa579('0x13')])return null;}return{'group':_0xa579('0x51'),'name':_0x1349d1?_0x493a71+':'+_0x1349d1:_0x493a71};}}),_0x39c42e['conversion']['for'](_0xa579('0x28'))['elementToElement']({'view':{'name':_0xa579('0x51'),'attributes':{'id':/^\w/}},'model':(_0x15233c,{writer:_0x44a7da})=>_0x44a7da[_0xa579('0x5f')]('$marker',{'data-name':_0xa579('0x12')+_0x15233c[_0xa579('0x5a')]('id')})}),_0x39c42e[_0xa579('0x5')]['for'](_0xa579('0x28'))[_0xa579('0x46')]({'view':'comment'});}[_0xa579('0x2a')](){const _0x13b183=this[_0xa579('0x42')],_0x451ebd=_0x13b183[_0xa579('0x67')][_0xa579('0x73')](_0x1fe0bc),_0x36e593=new Set(),_0x572954=new Set();_0x13b183[_0xa579('0x24')]['document'][_0xa579('0x49')](_0x72216a=>{let _0x290669=!0x1;for(const {name:_0x2f3956,data:_0x272358}of _0x13b183[_0xa579('0x24')][_0xa579('0xb')][_0xa579('0x4c')][_0xa579('0x4e')]()){const {group:_0x18cc49,id:_0x951f40}=ot(_0x2f3956);let _0x494a0d=_0x272358[_0xa579('0x16')];if(_0xa579('0x51')!==_0x18cc49||!_0x494a0d)continue;const _0x5882f6=_0xa579('0x74')===_0x494a0d['root'][_0xa579('0x18')];_0x5882f6||(_0x494a0d=et(_0x494a0d,_0x13b183['model']),!_0x494a0d||_0x494a0d['isCollapsed']||!_0x272358[_0xa579('0x16')]||_0x494a0d[_0xa579('0x62')](_0x272358[_0xa579('0x16')]))?_0x13b183[_0xa579('0x24')][_0xa579('0x7b')](_0x494a0d)&&!_0x5882f6?this[_0xa579('0xa')]?_0x36e593[_0xa579('0x1a')](_0x2f3956):this[_0xa579('0x4d')](_0x2f3956,_0x951f40):(_0x572954['add'](_0x2f3956),_0x36e593[_0xa579('0x4')](_0x2f3956),_0x72216a[_0xa579('0x78')](_0x2f3956),_0x290669=!0x0):(_0x72216a[_0xa579('0x11')](_0x2f3956,{'range':_0x494a0d}),_0x290669=!0x0);}return _0x290669;}),this['on'](_0xa579('0x2c'),(_0x330c91,_0x50a2ff,_0x28fa41)=>{if(!_0x28fa41&&_0x36e593[_0xa579('0x76')])for(const _0x343d2b of _0x36e593){const {id:_0x25586c}=ot(_0x343d2b);_0x36e593[_0xa579('0x4')](_0x343d2b),_0x13b183[_0xa579('0x24')][_0xa579('0x3c')][_0xa579('0x73')](_0x343d2b)&&this[_0xa579('0x4d')](_0x343d2b,_0x25586c);}}),this[_0xa579('0xe')](_0x13b183[_0xa579('0x24')][_0xa579('0xb')],'change',(_0x140fc8,_0x11d8ea)=>{for(const {name:_0x20fa86,data:{newRange:_0x12daab}}of _0x13b183[_0xa579('0x24')]['document'][_0xa579('0x4c')]['getChangedMarkers']()){const {group:_0x186316,id:_0xac456a}=ot(_0x20fa86);if(_0xa579('0x51')!==_0x186316)continue;const _0x3e439a=_0x451ebd['getCommentThread'](_0xac456a),_0x5be2f8=this[_0xa579('0x43')](_0xac456a);_0x3e439a&&(_0x3e439a['_hasTargetInContent']||_0x13b183[_0xa579('0x7')][_0xa579('0x6e')]['once']('render',()=>{const _0x5970be=_0x13b183[_0xa579('0x67')][_0xa579('0x73')](_0x269489),_0x492364=_0x451ebd[_0xa579('0x44')]['get'](_0x3e439a)[_0xa579('0x6e')];_0x5970be[_0xa579('0x39')](_0x492364)[_0xa579('0x14')]();},{'priority':'low'}),_0x3e439a[_0xa579('0x3b')]=_0x5be2f8||!!_0x12daab),_0x12daab||(_0x572954[_0xa579('0x1a')](_0x20fa86),_0x36e593[_0xa579('0x4')](_0x20fa86));}if(_0x11d8ea[_0xa579('0x6')])for(const _0x1a558f of _0x572954){const {id:_0x1fadcb}=ot(_0x1a558f),_0x5b2f32=_0x451ebd[_0xa579('0x33')](_0x1fadcb),_0x2f70e7=this[_0xa579('0x43')](_0x1fadcb);_0x36e593[_0xa579('0x4')](_0x1a558f),!_0x5b2f32||_0x2f70e7||_0x5b2f32[_0xa579('0x41')]||_0x5b2f32[_0xa579('0x17')](new Date());}_0x572954['clear']();});}[_0xa579('0x57')](_0x1016af){const _0x4fd736=this[_0xa579('0x42')],_0x2f854a=this['getAllMarkersForId'](_0x1016af);return _0x541f71(_0x4fd736[_0xa579('0x7')],_0x2f854a);}[_0xa579('0x3a')](_0x5baead){const _0x7e28c=this[_0xa579('0x23')](_0x5baead);let _0x3a3e8d='',_0xc3875=!0x1;for(const _0x338032 of _0x7e28c){const _0x46651e=_0x338032[_0xa579('0x25')]();for(const _0x48f2a7 of Array[_0xa579('0x2')](_0x46651e[_0xa579('0x45')]()))_0x48f2a7['is'](_0xa579('0x77'))?(_0x3a3e8d&&_0xc3875&&(_0x3a3e8d+='\x20',_0xc3875=!0x1),_0x3a3e8d+=_0x48f2a7[_0xa579('0x38')]):_0xc3875=!0x0;_0xc3875=!0x0;}return _0x3a3e8d[_0xa579('0x15')](0x0,0x96);}['_attachMarkerToThread'](_0x4fd48f,_0x23c447){const _0x5c3b1f=this[_0xa579('0x42')],_0x13ac8f=_0x5c3b1f[_0xa579('0x67')][_0xa579('0x73')](_0x1fe0bc);let _0x1734f9=_0x13ac8f[_0xa579('0x33')](_0x23c447);const _0xf20a84=_0x5c3b1f['config'][_0xa579('0x73')](_0xa579('0x1d')),_0x135466=_0x5c3b1f[_0xa579('0x67')]['get'](_0x2e32af);if(_0x1734f9&&(_0x1734f9[_0xa579('0x41')]&&_0x1734f9[_0xa579('0x17')](null),_0x1734f9[_0xa579('0x5e')]))return _0x1734f9;return!this[_0xa579('0x23')](_0x23c447)[0x0]['managedUsingOperations']?_0x5c3b1f['editing'][_0xa579('0x6e')][_0xa579('0x48')](_0xa579('0x72'),()=>{if(_0x13ac8f[_0xa579('0x33')](_0x23c447))return;const _0x316066=_0x5c3b1f['plugins']['get'](_0x269489);_0x1734f9=_0x13ac8f[_0xa579('0x21')]({'channelId':_0xf20a84,'threadId':_0x23c447,'target':()=>this[_0xa579('0x57')](_0x23c447),'context':{'type':_0xa579('0x56'),'value':this[_0xa579('0x3a')](_0x23c447)}});const _0x3cb995=_0x13ac8f[_0xa579('0x44')][_0xa579('0x73')](_0x1734f9)['view'],_0x448da6=_0x316066[_0xa579('0x39')](_0x3cb995);_0x448da6&&_0x135466[_0xa579('0x0')](_0x448da6);},{'priority':'low'}):_0x13ac8f[_0xa579('0x71')]({'channelId':_0xf20a84,'threadId':_0x23c447})[_0xa579('0x6d')](_0x1b5818=>{if(_0xa579('0x10')!==_0x5c3b1f[_0xa579('0x55')]){if(_0x1734f9=_0x1b5818,_0x1734f9&&!_0x1734f9['isAttached']){const _0x11c080=_0x1734f9['attachTo'](()=>this['_getTargetForId'](_0x23c447));_0x135466['registerAnnotation'](_0x11c080),_0x1734f9[_0xa579('0x13')]&&this['_reconvertMarkers'](_0x23c447);}else{if(!_0x1734f9){const _0x29ae70=this[_0xa579('0x23')](_0x23c447);_0x5c3b1f[_0xa579('0x24')][_0xa579('0x6b')](_0x493c5c=>{for(const _0x30ad76 of _0x29ae70)_0x493c5c['removeMarker'](_0x30ad76);});}}}}),_0x1734f9;}[_0xa579('0x4d')](_0x1ba9c7,_0x4e188){const _0x7371ac=this['_attachMarkerToThread'](_0x1ba9c7,_0x4e188);_0x7371ac&&!_0x7371ac[_0xa579('0x26')]&&_0x7371ac[_0xa579('0x4a')]({'type':_0xa579('0x56'),'value':this[_0xa579('0x3a')](_0x4e188)});}[_0xa579('0x1e')](){const _0x1935fd=this['editor'];_0x9a62cc(_0x1935fd[_0xa579('0x24')],({left:_0x30cec6,entered:_0x1c494b})=>{const _0x2a90d3=[];for(const _0x32608a of _0x30cec6)if(rt(_0x32608a)){_0x2a90d3[_0xa579('0x19')](_0xb8320e(_0x1935fd[_0xa579('0x6f')],_0xa579('0x22')));break;}for(const _0x4d5f34 of _0x1c494b)if(rt(_0x4d5f34)){_0x2a90d3[_0xa579('0x19')](_0xb8320e(_0x1935fd[_0xa579('0x6f')],_0xa579('0x6a')));break;}_0x2a90d3[_0xa579('0x68')]&&_0x1935fd['ui'][_0xa579('0x1c')][_0xa579('0x4f')](_0xa579('0x66'),_0x2a90d3['join']('\x20'));});}}function tt(_0x3466ed,_0x172f07){return _0x172f07?_0x3466ed+':'+_0x172f07:_0x3466ed;}function ot(_0x25a876){const _0x840b0c=_0x25a876[_0xa579('0x29')](':');return{'group':_0x840b0c[0x0],'id':_0x840b0c[0x1],'part':_0x840b0c[0x2]};}function et(_0x3a1315,_0x5147ba){const _0x403274=_0x5147ba[_0xa579('0x3f')],_0x21e0bc=_0x5147ba[_0xa579('0x5d')](_0x3a1315['start']);for(const _0xb4c5fa of _0x3a1315[_0xa579('0x60')]()){const {type:_0x4edc7,item:_0x8cd171,nextPosition:_0x3d3ee6}=_0xb4c5fa;if('text'===_0x4edc7||_0x403274[_0xa579('0x79')](_0x8cd171)){const _0x46e179=_0x5147ba[_0xa579('0x2d')](_0x8cd171);_0x21e0bc[_0xa579('0x31')]&&(_0x21e0bc[_0xa579('0x6c')]=_0x46e179),_0x21e0bc[_0xa579('0x69')]=_0x3d3ee6;}}return _0x21e0bc;}function rt(_0xd6f297){return'comment'===ot(_0xd6f297[_0xa579('0x20')])['group'];}
23
+ const _0x39b2=['differ','focus','announce','switchReadOnly','_hasTargetInContent','markerToData','once','getRange','getWalker','schema','createElement','_getTargetForId','render','change:activeMarker','removeCommentThread','scrollToThreadMarker','dataToMarker','reconvertMarker','createPositionBefore','collaboration.channelId','fetchCommentThread','isThreadsLoadingPaused','get','getItems','low','hasDomSelection','dataDowncast','removeMarker','isCollapsed','comments','group','destroy','$marker','_handleThreadMarker','change','isEqual','getChangedMarkers','managedUsingOperations','editingDowncast','_attachArchivedThread','clear','change:isReadOnly','model','LEAVE_COMMENT_ANNOUNCEMENT','locale','ignoreResolvedComments','getByInnerView','item','getAttribute','activeMarker','pluginName','_threads','editor','end','_handleMarkerAddAndRemove','isAttached','attachTo','startsWith','elementToElement','_reconvertMarkers','getCommentThreads','setContext','affectsData','size','view','markerName','editing','newRange','start','ENTER_COMMENT_ANNOUNCEMENT','getAllMarkersForId','ck-comment-marker--active','listenTo','init','ariaLiveAnnouncer','comment:','getCommentThread','document','createRange','$textProxy','enqueueChange','openNewCommentThread','name','_attachMarkerToThread','data','consumable','push','registerAnnotation','text','set','_threadToController','conversion','for','_getTextContext','markers','registerPostFixer','length','upcast','config','add','_detachCommentThread','delete','join','markerToHighlight','reopenCommentThread','plugins','from','commands','_initializeMarkerConverters','hasCommentThread','unlinkedAt','comment','updateMarker','split','isResolved','addComment','addCommentThread','refreshVisibility','$graveyard','setUnlinkedAt','substring','_initAriaMarkerChangeAnnouncements','addMarker:','rootName','hasMarkerForId'];(function(_0x2edced,_0x39b2b9){const _0x58544b=function(_0x49b751){while(--_0x49b751){_0x2edced['push'](_0x2edced['shift']());}};_0x58544b(++_0x39b2b9);}(_0x39b2,0x129));const _0x5854=function(_0x2edced,_0x39b2b9){_0x2edced=_0x2edced-0x0;let _0x58544b=_0x39b2[_0x2edced];return _0x58544b;};import{Plugin as _0x557afb}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0xd4d28a}from'ckeditor5/src/utils.js';import _0x54ad26 from'./commentsrepository.js';import _0x5683ba from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x2e3980,getAllMarkersDomElementsSorted as _0x3880cd}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x543694 from'../annotations/editorannotations.js';import _0x561df1 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x300bec from'./integrations/importword.js';import _0x29a05c from'../annotations/annotations.js';import{getTranslation as _0x5e0880}from'../utils/common-translations.js';export default class r extends _0x557afb{static get['requires'](){return[_0x54ad26,_0x543694,_0x561df1,_0x300bec];}static get[_0x5854('0x3')](){return'CommentsEditing';}constructor(_0x1408b9){super(_0x1408b9),this['set']('isThreadsLoadingPaused',!0x0),_0x1408b9[_0x5854('0x25')][_0x5854('0x54')]('ready',()=>this[_0x5854('0x63')]=!0x1),this[_0x5854('0x2a')](_0x5854('0x2'),null),this['on'](_0x5854('0x5b'),(_0x5219a7,_0xdecaf0,_0x2d1b56,_0x47d07f)=>{const _0x3b6a11=_0x2d1b56?ot(_0x2d1b56)['id']:null;if(_0x1408b9[_0x5854('0x78')][_0x5854('0x70')](()=>{if(_0x3b6a11){const _0xdbbc7a=this[_0x5854('0x17')](_0x3b6a11);for(const _0x1e9cb1 of _0xdbbc7a)_0x1408b9[_0x5854('0x13')]['reconvertMarker'](_0x1e9cb1);}if(_0x47d07f){const {id:_0x5098ac}=ot(_0x47d07f),_0x4cdb6f=this[_0x5854('0x17')](_0x5098ac);for(const _0x30c1cc of _0x4cdb6f)_0x1408b9['editing'][_0x5854('0x5f')](_0x30c1cc);}}),_0x3b6a11){const _0x117a96=_0x1408b9[_0x5854('0x3a')][_0x5854('0x64')](_0x54ad26)[_0x5854('0x1d')](_0x3b6a11);_0x117a96&&_0x117a96['isResolved']&&this[_0x5854('0x5d')](_0x3b6a11);}}),this[_0x5854('0x4a')]();}[_0x5854('0x1a')](){const _0x13852=this[_0x5854('0x5')],_0x2c0c9e=_0x13852[_0x5854('0x3a')][_0x5854('0x64')](_0x54ad26),_0x2ff9a4=_0x13852[_0x5854('0x33')][_0x5854('0x64')]('collaboration.channelId');_0x13852[_0x5854('0x3c')][_0x5854('0x34')](_0x5854('0x45'),new _0x5683ba(_0x13852)),this[_0x5854('0x19')](_0x13852,_0x5854('0x77'),(_0x398046,_0x218a5d,_0x4f5b89)=>{_0x2c0c9e[_0x5854('0x51')](_0x4f5b89,_0x13852[_0x5854('0x33')]['get'](_0x5854('0x61')));}),this[_0x5854('0x19')](_0x2c0c9e,tt('addCommentThread',_0x2ff9a4),(_0x2f2caa,{threadId:_0x335755})=>{const _0x300622=this[_0x5854('0x5')][_0x5854('0x3a')][_0x5854('0x64')](_0x54ad26)[_0x5854('0x1d')](_0x335755);_0x300622&&_0x300622[_0x5854('0x3f')]&&this[_0x5854('0x75')](_0x335755);}),this[_0x5854('0x19')](_0x2c0c9e,tt(_0x5854('0x5c'),_0x2ff9a4),(_0x4a037e,{threadId:_0x440cdb})=>{_0x13852[_0x5854('0x78')][_0x5854('0x21')]({'isUndoable':!0x1},_0x2ba161=>{const _0x2859e8=this[_0x5854('0x17')](_0x440cdb);for(const _0x122922 of _0x2859e8)_0x2ba161[_0x5854('0x69')](_0x122922);});}),this[_0x5854('0x19')](_0x2c0c9e,tt('resolveCommentThread',_0x2ff9a4),(_0x1398a2,{threadId:_0x3054fa})=>{(this[_0x5854('0xc')](_0x3054fa),this[_0x5854('0x5')][_0x5854('0x13')][_0x5854('0x11')][_0x5854('0x67')])&&(this[_0x5854('0x5')][_0x5854('0x3a')][_0x5854('0x64')](_0x54ad26)['getCommentThread'](_0x3054fa)[_0x5854('0x3f')]||this[_0x5854('0x5')][_0x5854('0x13')][_0x5854('0x11')][_0x5854('0x4f')]());},{'priority':'low'}),this[_0x5854('0x19')](_0x2c0c9e,tt(_0x5854('0x39'),_0x2ff9a4),(_0x232484,{threadId:_0x5bc45e})=>{this[_0x5854('0xc')](_0x5bc45e);},{'priority':_0x5854('0x66')}),this[_0x5854('0x19')](_0x2c0c9e,tt(_0x5854('0x44'),_0x2ff9a4),(_0x58b036,{threadId:_0x38e0e1,isFromAdapter:_0x4540b7})=>{const _0xfe4521=this[_0x5854('0x17')](_0x38e0e1);if(_0x4540b7||0x0==_0xfe4521['length']||!_0x2c0c9e[_0x5854('0x3e')](_0x38e0e1))return;0x1===_0x2c0c9e[_0x5854('0x1d')](_0x38e0e1)[_0x5854('0x31')]&&_0x13852[_0x5854('0x78')][_0x5854('0x21')]({'isUndoable':!0x1},_0x13ef32=>{for(const _0x1b8e09 of _0xfe4521)_0x13ef32[_0x5854('0x41')](_0x1b8e09,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this[_0x5854('0x7')]();}[_0x5854('0x6d')](){const _0x4343e6=this[_0x5854('0x5')]['plugins']['get'](_0x54ad26),_0x48bbf1=this[_0x5854('0x5')][_0x5854('0x33')][_0x5854('0x64')](_0x5854('0x61'));for(const _0x1d5d51 of _0x4343e6[_0x5854('0xd')]({'channelId':_0x48bbf1}))_0x4343e6[_0x5854('0x35')](_0x1d5d51['id']),_0x4343e6[_0x5854('0x4')][_0x5854('0x36')](_0x1d5d51['id']);super['destroy']();}[_0x5854('0x4d')](_0x567931){return this['getAllMarkersForId'](_0x567931)['length']>0x0;}[_0x5854('0x17')](_0x543f77){const _0x4d0631=[];for(const _0x504b84 of this[_0x5854('0x5')][_0x5854('0x78')][_0x5854('0x2f')])_0x504b84[_0x5854('0x23')][_0x5854('0xa')](_0x5854('0x1c')+_0x543f77)&&_0x4d0631['push'](_0x504b84);return _0x4d0631;}[_0x5854('0x5d')](_0x267933){const _0x1f6b76=this['_getTargetForId'](_0x267933);_0x1f6b76&&setTimeout(()=>{this['activeMarker']&&ot(this['activeMarker'])['id']===_0x267933&&_0xd4d28a({'target':_0x1f6b76[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5854('0xc')](_0x269142){this['editor'][_0x5854('0x78')][_0x5854('0x70')](()=>{for(const _0x588968 of this[_0x5854('0x17')](_0x269142))this[_0x5854('0x5')]['editing']['reconvertMarker'](_0x588968);});}[_0x5854('0x75')](_0x4287b0){const _0x5afcfe=this['editor'][_0x5854('0x3a')][_0x5854('0x64')](_0x54ad26),_0x6f9317=this['editor'][_0x5854('0x3a')]['get'](_0x543694),_0xc57366=_0x5afcfe[_0x5854('0x1d')](_0x4287b0);if(!_0xc57366[_0x5854('0x8')]){const _0x598f29=_0xc57366['attachTo'](()=>this[_0x5854('0x59')](_0xc57366['id']));_0x6f9317['registerAnnotation'](_0x598f29),_0xc57366[_0x5854('0x52')]=!0x1;}}[_0x5854('0x3d')](){const _0x1e00ea=this[_0x5854('0x5')];_0x1e00ea[_0x5854('0x2c')]['for'](_0x5854('0x74'))[_0x5854('0x38')]({'model':'comment','view':(_0x359acf,_0x17da62)=>{const {id:_0x146db6}=ot(_0x359acf[_0x5854('0x12')]),_0x288fc1=_0x1e00ea[_0x5854('0x3a')][_0x5854('0x64')](_0x54ad26)[_0x5854('0x1d')](_0x146db6),_0x3a43fc=this[_0x5854('0x2')]&&ot(this['activeMarker'])['id']===_0x146db6;if(_0x288fc1&&_0x288fc1[_0x5854('0x43')]&&!_0x3a43fc&&_0x359acf[_0x5854('0x0')])return _0x17da62[_0x5854('0x26')]['consume'](_0x359acf['item'],_0x5854('0x4b')+_0x359acf[_0x5854('0x12')]),_0x17da62[_0x5854('0x26')]['consume'](_0x359acf[_0x5854('0x0')],'removeMarker:'+_0x359acf[_0x5854('0x12')]),null;const _0x1cd7fd=['ck-comment-marker'];return _0x3a43fc&&_0x1cd7fd[_0x5854('0x27')](_0x5854('0x18')),{'classes':_0x1cd7fd,'attributes':{'data-comment':_0x146db6}};}}),_0x1e00ea[_0x5854('0x2c')]['for'](_0x5854('0x68'))[_0x5854('0x53')]({'model':_0x5854('0x40'),'view':(_0x172a53,{options:_0x2ee9bb})=>{const _0x4aa8eb=_0x1e00ea[_0x5854('0x3a')][_0x5854('0x64')](_0x54ad26),_0x262a50=_0x1e00ea[_0x5854('0x78')]['markers'][_0x5854('0x64')](_0x172a53),{id:_0x4b6b06,part:_0x138fa8}=ot(_0x172a53);if(_0x262a50&&!_0x262a50[_0x5854('0xf')])return null;if(_0x2ee9bb[_0x5854('0x7b')]){const _0xbaec70=_0x4aa8eb[_0x5854('0x1d')](_0x4b6b06);if(_0xbaec70&&_0xbaec70['isResolved'])return null;}return{'group':'comment','name':_0x138fa8?_0x4b6b06+':'+_0x138fa8:_0x4b6b06};}}),_0x1e00ea['conversion']['for'](_0x5854('0x32'))[_0x5854('0xb')]({'view':{'name':_0x5854('0x40'),'attributes':{'id':/^\w/}},'model':(_0x2c024e,{writer:_0x35d24e})=>_0x35d24e[_0x5854('0x58')](_0x5854('0x6e'),{'data-name':_0x5854('0x1c')+_0x2c024e[_0x5854('0x1')]('id')})}),_0x1e00ea['conversion'][_0x5854('0x2d')](_0x5854('0x32'))[_0x5854('0x5e')]({'view':_0x5854('0x40')});}['_handleMarkerAddAndRemove'](){const _0x11155b=this[_0x5854('0x5')],_0x1ed54b=_0x11155b[_0x5854('0x3a')][_0x5854('0x64')](_0x54ad26),_0x275013=new Set(),_0x1c4ef1=new Set();_0x11155b[_0x5854('0x78')][_0x5854('0x1e')][_0x5854('0x30')](_0x428860=>{let _0x111267=!0x1;for(const {name:_0x1277a1,data:_0xb47fd4}of _0x11155b[_0x5854('0x78')][_0x5854('0x1e')][_0x5854('0x4e')][_0x5854('0x72')]()){const {group:_0x3cfcfb,id:_0x1e36cc}=ot(_0x1277a1);let _0x448c63=_0xb47fd4[_0x5854('0x14')];if(_0x5854('0x40')!==_0x3cfcfb||!_0x448c63)continue;const _0x34f462=_0x5854('0x47')===_0x448c63['root'][_0x5854('0x4c')];_0x34f462||(_0x448c63=et(_0x448c63,_0x11155b[_0x5854('0x78')]),!_0x448c63||_0x448c63[_0x5854('0x6a')]||!_0xb47fd4[_0x5854('0x14')]||_0x448c63[_0x5854('0x71')](_0xb47fd4[_0x5854('0x14')]))?_0x11155b[_0x5854('0x78')]['hasContent'](_0x448c63)&&!_0x34f462?this[_0x5854('0x63')]?_0x275013[_0x5854('0x34')](_0x1277a1):this[_0x5854('0x6f')](_0x1277a1,_0x1e36cc):(_0x1c4ef1['add'](_0x1277a1),_0x275013[_0x5854('0x36')](_0x1277a1),_0x428860[_0x5854('0x69')](_0x1277a1),_0x111267=!0x0):(_0x428860[_0x5854('0x41')](_0x1277a1,{'range':_0x448c63}),_0x111267=!0x0);}return _0x111267;}),this['on']('change:isThreadsLoadingPaused',(_0x3f80ef,_0x4f43a2,_0x279413)=>{if(!_0x279413&&_0x275013[_0x5854('0x10')])for(const _0x37c1ac of _0x275013){const {id:_0x1b28c5}=ot(_0x37c1ac);_0x275013['delete'](_0x37c1ac),_0x11155b[_0x5854('0x78')][_0x5854('0x2f')][_0x5854('0x64')](_0x37c1ac)&&this[_0x5854('0x6f')](_0x37c1ac,_0x1b28c5);}}),this[_0x5854('0x19')](_0x11155b[_0x5854('0x78')][_0x5854('0x1e')],_0x5854('0x70'),(_0x410806,_0x9158b5)=>{for(const {name:_0x1a26c9,data:{newRange:_0x1a7026}}of _0x11155b[_0x5854('0x78')][_0x5854('0x1e')][_0x5854('0x4e')][_0x5854('0x72')]()){const {group:_0xaa633e,id:_0x1939e2}=ot(_0x1a26c9);if(_0x5854('0x40')!==_0xaa633e)continue;const _0x4b67fd=_0x1ed54b[_0x5854('0x1d')](_0x1939e2),_0xdd6b00=this[_0x5854('0x4d')](_0x1939e2);_0x4b67fd&&(_0x4b67fd[_0x5854('0x52')]||_0x11155b['editing']['view'][_0x5854('0x54')](_0x5854('0x5a'),()=>{const _0x33d119=_0x11155b[_0x5854('0x3a')][_0x5854('0x64')](_0x29a05c),_0x534518=_0x1ed54b[_0x5854('0x2b')][_0x5854('0x64')](_0x4b67fd)[_0x5854('0x11')];_0x33d119['getByInnerView'](_0x534518)[_0x5854('0x46')]();},{'priority':_0x5854('0x66')}),_0x4b67fd[_0x5854('0x52')]=_0xdd6b00||!!_0x1a7026),_0x1a7026||(_0x1c4ef1[_0x5854('0x34')](_0x1a26c9),_0x275013['delete'](_0x1a26c9));}if(_0x9158b5['isLocal'])for(const _0x367511 of _0x1c4ef1){const {id:_0x1fee15}=ot(_0x367511),_0x390163=_0x1ed54b[_0x5854('0x1d')](_0x1fee15),_0x2f0968=this[_0x5854('0x4d')](_0x1fee15);_0x275013[_0x5854('0x36')](_0x367511),!_0x390163||_0x2f0968||_0x390163[_0x5854('0x3f')]||_0x390163[_0x5854('0x48')](new Date());}_0x1c4ef1[_0x5854('0x76')]();});}[_0x5854('0x59')](_0x3a1fd0){const _0x252600=this[_0x5854('0x5')],_0x186316=this[_0x5854('0x17')](_0x3a1fd0);return _0x3880cd(_0x252600['editing'],_0x186316);}['_getTextContext'](_0x107c30){const _0x12c93c=this[_0x5854('0x17')](_0x107c30);let _0x1fc7f1='',_0x481ee3=!0x1;for(const _0xc94fb0 of _0x12c93c){const _0x37278f=_0xc94fb0[_0x5854('0x55')]();for(const _0x3456b5 of Array[_0x5854('0x3b')](_0x37278f[_0x5854('0x65')]()))_0x3456b5['is'](_0x5854('0x20'))?(_0x1fc7f1&&_0x481ee3&&(_0x1fc7f1+='\x20',_0x481ee3=!0x1),_0x1fc7f1+=_0x3456b5['data']):_0x481ee3=!0x0;_0x481ee3=!0x0;}return _0x1fc7f1[_0x5854('0x49')](0x0,0x96);}[_0x5854('0x24')](_0x37d5ff,_0x4e6bbe){const _0x54e8a2=this[_0x5854('0x5')],_0xf0e1aa=_0x54e8a2[_0x5854('0x3a')][_0x5854('0x64')](_0x54ad26);let _0x412c08=_0xf0e1aa['getCommentThread'](_0x4e6bbe);const _0x296b53=_0x54e8a2[_0x5854('0x33')][_0x5854('0x64')]('collaboration.channelId'),_0x46deba=_0x54e8a2[_0x5854('0x3a')][_0x5854('0x64')](_0x543694);if(_0x412c08&&(_0x412c08[_0x5854('0x3f')]&&_0x412c08['setUnlinkedAt'](null),_0x412c08[_0x5854('0x8')]))return _0x412c08;return!this[_0x5854('0x17')](_0x4e6bbe)[0x0][_0x5854('0x73')]?_0x54e8a2[_0x5854('0x13')][_0x5854('0x11')]['once'](_0x5854('0x5a'),()=>{if(_0xf0e1aa[_0x5854('0x1d')](_0x4e6bbe))return;const _0x39f2b3=_0x54e8a2[_0x5854('0x3a')][_0x5854('0x64')](_0x29a05c);_0x412c08=_0xf0e1aa[_0x5854('0x22')]({'channelId':_0x296b53,'threadId':_0x4e6bbe,'target':()=>this[_0x5854('0x59')](_0x4e6bbe),'context':{'type':'text','value':this[_0x5854('0x2e')](_0x4e6bbe)}});const _0x593319=_0xf0e1aa[_0x5854('0x2b')][_0x5854('0x64')](_0x412c08)['view'],_0x147fcf=_0x39f2b3[_0x5854('0x7c')](_0x593319);_0x147fcf&&_0x46deba[_0x5854('0x28')](_0x147fcf);},{'priority':'low'}):_0xf0e1aa[_0x5854('0x62')]({'channelId':_0x296b53,'threadId':_0x4e6bbe})['then'](_0xeff344=>{if('destroyed'!==_0x54e8a2['state']){if(_0x412c08=_0xeff344,_0x412c08&&!_0x412c08[_0x5854('0x8')]){const _0x201a43=_0x412c08[_0x5854('0x9')](()=>this[_0x5854('0x59')](_0x4e6bbe));_0x46deba[_0x5854('0x28')](_0x201a43),_0x412c08[_0x5854('0x43')]&&this[_0x5854('0xc')](_0x4e6bbe);}else{if(!_0x412c08){const _0x53b85d=this[_0x5854('0x17')](_0x4e6bbe);_0x54e8a2[_0x5854('0x78')][_0x5854('0x70')](_0x23fe89=>{for(const _0x3698d2 of _0x53b85d)_0x23fe89[_0x5854('0x69')](_0x3698d2);});}}}}),_0x412c08;}[_0x5854('0x6f')](_0x371ad3,_0x15efb0){const _0x330b6e=this['_attachMarkerToThread'](_0x371ad3,_0x15efb0);_0x330b6e&&!_0x330b6e['context']&&_0x330b6e[_0x5854('0xe')]({'type':'text','value':this[_0x5854('0x2e')](_0x15efb0)});}[_0x5854('0x4a')](){const _0x333a49=this[_0x5854('0x5')];_0x2e3980(_0x333a49['model'],({left:_0x44cc09,entered:_0x29ff7f})=>{const _0x1411ee=[];for(const _0x45fe82 of _0x44cc09)if(rt(_0x45fe82)){_0x1411ee[_0x5854('0x27')](_0x5e0880(_0x333a49['locale'],_0x5854('0x79')));break;}for(const _0x277386 of _0x29ff7f)if(rt(_0x277386)){_0x1411ee[_0x5854('0x27')](_0x5e0880(_0x333a49[_0x5854('0x7a')],_0x5854('0x16')));break;}_0x1411ee[_0x5854('0x31')]&&_0x333a49['ui'][_0x5854('0x1b')][_0x5854('0x50')](_0x5854('0x6b'),_0x1411ee[_0x5854('0x37')]('\x20'));});}}function tt(_0x48ea53,_0x5afabb){return _0x5afabb?_0x48ea53+':'+_0x5afabb:_0x48ea53;}function ot(_0x3e2bf6){const _0xafdd70=_0x3e2bf6[_0x5854('0x42')](':');return{'group':_0xafdd70[0x0],'id':_0xafdd70[0x1],'part':_0xafdd70[0x2]};}function et(_0x25e9fb,_0x2ef596){const _0x2c7ae3=_0x2ef596[_0x5854('0x57')],_0x488e5c=_0x2ef596[_0x5854('0x1f')](_0x25e9fb[_0x5854('0x15')]);for(const _0xd8fea0 of _0x25e9fb[_0x5854('0x56')]()){const {type:_0x2f5d38,item:_0x3d456c,nextPosition:_0x2f2942}=_0xd8fea0;if(_0x5854('0x29')===_0x2f5d38||_0x2c7ae3['isObject'](_0x3d456c)){const _0x3faf96=_0x2ef596[_0x5854('0x60')](_0x3d456c);_0x488e5c[_0x5854('0x6a')]&&(_0x488e5c[_0x5854('0x15')]=_0x3faf96),_0x488e5c[_0x5854('0x6')]=_0x2f2942;}}return _0x488e5c;}function rt(_0x1b788c){return _0x5854('0x40')===ot(_0x1b788c[_0x5854('0x23')])[_0x5854('0x6c')];}