@ckeditor/ckeditor5-comments 0.0.0-nightly-20240202.0 → 0.0.0-nightly-20240204.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 (43) 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.d.ts +1 -1
  25. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  27. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  28. package/src/comments/ui/commentthreadcontroller.js +1 -1
  29. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  30. package/src/comments/ui/view/basecommentview.js +1 -1
  31. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  32. package/src/comments/ui/view/commentcontentview.js +1 -1
  33. package/src/comments/ui/view/commentinputview.js +1 -1
  34. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  35. package/src/comments/ui/view/commentslistview.js +1 -1
  36. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  37. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  38. package/src/comments/ui/view/commentthreadview.js +1 -1
  39. package/src/comments/ui/view/commentview.js +1 -1
  40. package/src/comments.js +1 -1
  41. package/src/commentsonly.js +1 -1
  42. package/src/utils/common-translations.js +1 -1
  43. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]();}}
23
+ const _0x6384=['_mutationObserver','height','clear','bottom','content','attach','updateHeight','_targetTop','createCollection','top','render','set','ck-sidebar-item--no-animation','clientHeight','element','detach','setTemplate','ck-sidebar-item','destroy','bindTemplate','isAnimationDisabled','div'];(function(_0x5933f4,_0x638432){const _0x27e248=function(_0x40e90f){while(--_0x40e90f){_0x5933f4['push'](_0x5933f4['shift']());}};_0x27e248(++_0x638432);}(_0x6384,0x1db));const _0x27e2=function(_0x5933f4,_0x638432){_0x5933f4=_0x5933f4-0x0;let _0x27e248=_0x6384[_0x5933f4];return _0x27e248;};import{View as _0x6d6bb6}from'ckeditor5/src/ui.js';import{toUnit as _0x1f5873}from'ckeditor5/src/utils.js';import _0x4bc6ff from'../../utils/createmutationobserver.js';const Ht=_0x1f5873('px');export default class C extends _0x6d6bb6{constructor(_0x157405){super(_0x157405),this['set']('top',0x0),this[_0x27e2('0x14')]('height',0x0),this['bind'](_0x27e2('0xc'))['to'](this,_0x27e2('0x12'),this,_0x27e2('0xa'),(_0x19b9dc,_0x3b31d3)=>_0x19b9dc+_0x3b31d3),this[_0x27e2('0x14')](_0x27e2('0x7'),!0x1),this['_mutationObserver']=_0x4bc6ff(()=>this['updateHeight']()),this[_0x27e2('0x10')]=null,this['content']=this[_0x27e2('0x11')]();const _0x4486f9=this[_0x27e2('0x6')];this[_0x27e2('0x3')]({'tag':_0x27e2('0x8'),'attributes':{'class':[_0x27e2('0x4'),_0x4486f9['to'](_0x27e2('0x7'),_0x1ffea1=>_0x1ffea1?_0x27e2('0x15'):'')],'style':{'top':_0x4486f9['to'](_0x27e2('0x12'),_0x3a7c95=>Ht(_0x3a7c95))}},'children':this[_0x27e2('0xd')]});}[_0x27e2('0x13')](){super['render'](),this[_0x27e2('0x9')][_0x27e2('0xe')](this['element']);}[_0x27e2('0xf')](){const _0x22ab47=this[_0x27e2('0x1')][_0x27e2('0x0')];_0x22ab47&&(this[_0x27e2('0xa')]=_0x22ab47);}[_0x27e2('0x5')](){this[_0x27e2('0xd')][_0x27e2('0xb')](),this[_0x27e2('0x9')][_0x27e2('0x2')](),super[_0x27e2('0x5')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]});}}
23
+ const _0x3743=['list','div','setTemplate','class','minHeight','createCollection','ck-reset','ck-sidebar','set'];(function(_0x4d6ba3,_0x37439f){const _0x412304=function(_0xb66730){while(--_0xb66730){_0x4d6ba3['push'](_0x4d6ba3['shift']());}};_0x412304(++_0x37439f);}(_0x3743,0x1a9));const _0x4123=function(_0x4d6ba3,_0x37439f){_0x4d6ba3=_0x4d6ba3-0x0;let _0x412304=_0x3743[_0x4d6ba3];return _0x412304;};import{View as _0x53ef14}from'ckeditor5/src/ui.js';import{toUnit as _0x562c28}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x562c28('px');export default class T extends _0x53ef14{constructor(_0x2bd4de){super(_0x2bd4de);const _0xb811a6=this['bindTemplate'];this['set'](_0x4123('0x2'),0x0),this[_0x4123('0x6')](_0x4123('0x1'),''),this['list']=this[_0x4123('0x3')](),this[_0x4123('0x0')]({'tag':_0x4123('0x8'),'attributes':{'class':['ck',_0x4123('0x5'),_0x4123('0x4'),_0xb811a6['to']('class')],'style':{'minHeight':_0xb811a6['to']('minHeight',_0x2dff60=>'number'==typeof _0x2dff60?Ht(_0x2dff60+0xa):null)}},'children':this[_0x4123('0x7')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0x1d5c=['change:container','detach','destroy','set','EditorAnnotations','refresh','requires','_activeAnnotation','_integrateWithEditorAnnotations','addEventListener','remove','stopListening','updateTargetRect','get','plugins','stop','switchTo','listenTo','isAttached','wideSidebar','high','register','attach','hasDomSelection','set:container','refreshPositioning','annotations','addAnnotation','setActiveAnnotation','add','ready','removeEventListener','_destroyEditorAnnotationsIntegration','_editorAnnotations','has','widesidebar-attach-already-attached','activeAnnotation','resize','blur','_refreshPositioningDebounced','pluginName','WideSidebar','context','editors'];(function(_0x1d7f62,_0x1d5c0d){const _0x222dbe=function(_0x15100d){while(--_0x15100d){_0x1d7f62['push'](_0x1d7f62['shift']());}};_0x222dbe(++_0x1d5c0d);}(_0x1d5c,0xe0));const _0x222d=function(_0x1d7f62,_0x1d5c0d){_0x1d7f62=_0x1d7f62-0x0;let _0x222dbe=_0x1d5c[_0x1d7f62];return _0x222dbe;};import{ContextPlugin as _0x17827f,Context as _0x3cefa3}from'ckeditor5/src/core.js';import _0x135e03 from'./annotationsuis.js';import _0x3052fb from'./sidebar.js';import{CKEditorError as _0x5beb7e,Collection as _0x18bcc}from'ckeditor5/src/utils.js';import{debounce as _0x853e7c}from'lodash-es';import _0x2d10fb from'./editorannotations.js';export default class n extends _0x17827f{static get[_0x222d('0x2')](){return[_0x3052fb,_0x135e03];}static get[_0x222d('0x24')](){return _0x222d('0x25');}constructor(_0x2979e9){super(_0x2979e9),this['isAttached']=!0x1,this[_0x222d('0x2b')](_0x222d('0x20'),null),this[_0x222d('0x16')]=null,this[_0x222d('0x1d')]=new _0x18bcc(),this[_0x222d('0x23')]=_0x853e7c(()=>{this['annotations'][_0x222d('0x15')]();},0xfa,{'leading':!0x1});}['init'](){const _0x461699=this['context'][_0x222d('0xa')]['get'](_0x135e03),_0x23225a=this['context'][_0x222d('0xa')][_0x222d('0x9')](_0x3052fb);_0x461699[_0x222d('0x11')](_0x222d('0xf'),this),_0x23225a['container']&&_0x461699[_0x222d('0xc')]('wideSidebar');}[_0x222d('0x18')](_0x26bea9){if(_0x26bea9===this[_0x222d('0x20')])return;const _0x413b99=this[_0x222d('0x26')][_0x222d('0xa')]['get'](_0x3052fb);_0x413b99[_0x222d('0x3')]=_0x26bea9;const _0x2df2ac=this[_0x222d('0x20')];this[_0x222d('0x20')]=_0x26bea9,_0x413b99[_0x222d('0x1')]({'blurredAnnotation':_0x2df2ac,'activatedAnnotation':this['activeAnnotation']});}[_0x222d('0x12')](_0x1ee1ae){this[_0x222d('0x16')]=_0x1ee1ae;const _0x9f9885=this[_0x222d('0x26')][_0x222d('0xa')][_0x222d('0x9')](_0x3052fb);if(_0x9f9885['_annotations']=_0x1ee1ae,this[_0x222d('0xe')])throw new _0x5beb7e(_0x222d('0x1f'),this);this['isAttached']=!0x0,this[_0x222d('0xd')](_0x9f9885,_0x222d('0x14'),()=>{this[_0x222d('0x29')](),this[_0x222d('0xd')](_0x9f9885,_0x222d('0x28'),_0x113f18=>{_0x113f18['off'](),this['attach'](_0x1ee1ae);});}),_0x9f9885['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x5838e7=_0x275b55=>{_0x275b55[_0x222d('0x8')](),_0x9f9885[_0x222d('0x17')](_0x275b55);};for(const _0x4fc516 of _0x1ee1ae)_0x5838e7(_0x4fc516);this[_0x222d('0xd')](_0x1ee1ae,_0x222d('0x19'),(_0x4dfa82,_0xf139f7)=>{_0x5838e7(_0xf139f7);}),this['listenTo'](_0x1ee1ae,'remove',(_0x18ede7,_0x386dfb,_0x88d4ef)=>{_0x9f9885['rearrange']({'removedAnnotation':_0x386dfb,'previousAnnotation':_0x1ee1ae[_0x222d('0x9')](_0x88d4ef-0x1),'nextAnnotation':_0x1ee1ae[_0x222d('0x9')](_0x88d4ef+0x1)}),_0x386dfb===this['activeAnnotation']&&this[_0x222d('0x18')](null);},{'priority':_0x222d('0x10')}),this[_0x222d('0xd')](_0x1ee1ae,'focus',(_0x42be9c,_0xf1edc2)=>{this['setActiveAnnotation'](_0xf1edc2);}),this['listenTo'](_0x1ee1ae,_0x222d('0x22'),()=>{this[_0x222d('0x18')](null);});const _0x3a1dad=this['context']instanceof _0x3cefa3?this[_0x222d('0x26')][_0x222d('0x27')]:new _0x18bcc([this[_0x222d('0x26')]]);for(const _0x384721 of _0x3a1dad)this['_integrateWithEditorAnnotations'](_0x384721);this['listenTo'](_0x3a1dad,'add',(_0xf7061b,_0x27c9e3)=>{this[_0x222d('0xd')](_0x27c9e3,_0x222d('0x1a'),()=>{this[_0x222d('0x4')](_0x27c9e3);});}),this[_0x222d('0xd')](_0x3a1dad,_0x222d('0x6'),(_0x66c4a5,_0x3f95ac)=>{_0x3f95ac[_0x222d('0xa')][_0x222d('0x1e')](_0x222d('0x0'))&&this[_0x222d('0x1c')](_0x3f95ac[_0x222d('0xa')]['get'](_0x222d('0x0')));}),window[_0x222d('0x5')](_0x222d('0x21'),this[_0x222d('0x23')]),this[_0x222d('0x16')]['refreshPositioning']();}['detach'](){if(!this[_0x222d('0xe')])throw new _0x5beb7e('widesidebar-detach-not-attached',this);this[_0x222d('0x18')](null);const _0x224131=this[_0x222d('0x26')]['plugins']['get'](_0x3052fb);_0x224131['_detachFromContainer'](this[_0x222d('0x16')]),this[_0x222d('0x7')](_0x224131),this[_0x222d('0x7')](this[_0x222d('0x16')]),this[_0x222d('0x26')]instanceof _0x3cefa3&&this[_0x222d('0x7')](this[_0x222d('0x26')][_0x222d('0x27')]);for(const _0x3acce1 of Array['from'](this['_editorAnnotations']))this[_0x222d('0x1c')](_0x3acce1);window[_0x222d('0x1b')](_0x222d('0x21'),this[_0x222d('0x23')]),this['_refreshPositioningDebounced']['cancel'](),this[_0x222d('0x20')]=null,this[_0x222d('0xe')]=!0x1,this[_0x222d('0x16')]=null;}[_0x222d('0x2a')](){this[_0x222d('0xe')]&&this['detach']();}[_0x222d('0x4')](_0x5617f6){const _0x2a37b7=_0x5617f6[_0x222d('0xa')][_0x222d('0x9')](_0x2d10fb);if(!_0x2a37b7)return;const _0xdfa9db=()=>{const _0x4bfdbf=_0x2a37b7['getOrderedSelectedAnnotations']({'annotations':this[_0x222d('0x16')],'activeAnnotation':this[_0x222d('0x20')]});this[_0x222d('0x18')](_0x4bfdbf[0x0]||null);};this[_0x222d('0xd')](_0x2a37b7,_0x222d('0x1'),_0xdfa9db),this['listenTo'](_0x2a37b7,_0x222d('0x22'),(_0x23b939,{isAnnotationTracked:_0x332efa})=>{this['activeAnnotation']&&_0x332efa(this['activeAnnotation'])&&this[_0x222d('0x18')](null);}),this['listenTo'](_0x2a37b7,'uiUpdate',()=>{this[_0x222d('0x23')]();}),this[_0x222d('0xd')](this[_0x222d('0x16')],_0x222d('0x22'),_0x32ef91=>{_0x2a37b7[_0x222d('0x13')]()&&(_0xdfa9db(),_0x32ef91[_0x222d('0xb')]());},{'priority':_0x222d('0x10')}),this[_0x222d('0x1d')][_0x222d('0x19')](_0x2a37b7);}[_0x222d('0x1c')](_0x15937e){this[_0x222d('0x7')](_0x15937e),this[_0x222d('0x1d')][_0x222d('0x6')](_0x15937e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ const _0x37f0=['change','element','isEnabled','document','model','createRange','selection','_trimToContent','schema','start','tableCell','getLastMatchingPosition','refresh','addMarker','substr','execute','comment:','editor','_hasContent','getRanges','end','_itemIsContent','push','getItems'];(function(_0x13d5d0,_0x37f033){const _0x32d4f2=function(_0x2d3b81){while(--_0x2d3b81){_0x13d5d0['push'](_0x13d5d0['shift']());}};_0x32d4f2(++_0x37f033);}(_0x37f0,0xb7));const _0x32d4=function(_0x13d5d0,_0x37f033){_0x13d5d0=_0x13d5d0-0x0;let _0x32d4f2=_0x37f0[_0x13d5d0];return _0x32d4f2;};import{Command as _0x26a76d}from'ckeditor5/src/core.js';import{uid as _0x4f3b27}from'ckeditor5/src/utils.js';export default class G extends _0x26a76d{[_0x32d4('0x15')](){const _0x1dc173=this['editor'][_0x32d4('0xd')]['document']['selection'];for(const _0x10ec1b of _0x1dc173[_0x32d4('0x4')]())if(this[_0x32d4('0x3')](_0x10ec1b))return void(this[_0x32d4('0xb')]=!0x0);this[_0x32d4('0xb')]=!0x1;}[_0x32d4('0x0')]({threadId:_0x6f88ac=_0x4f3b27()}={}){const _0x25e803=this[_0x32d4('0x2')]['model'],_0xc3fd5=[];for(const _0x422ef5 of _0x25e803[_0x32d4('0xc')][_0x32d4('0xf')][_0x32d4('0x4')]())this[_0x32d4('0x3')](_0x422ef5)&&_0xc3fd5[_0x32d4('0x7')](this[_0x32d4('0x10')](_0x422ef5));_0x25e803[_0x32d4('0x9')](_0x4fbbae=>{for(const _0x209f36 of _0xc3fd5){const _0x3c5d01=_0x4f3b27()[_0x32d4('0x17')](0x1,0x5),_0x4395cc=_0x32d4('0x1')+_0x6f88ac+':'+_0x3c5d01;_0x4fbbae[_0x32d4('0x16')](_0x4395cc,{'range':_0x209f36,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x32d4('0x3')](_0x17dd46){for(const _0xf009e of _0x17dd46[_0x32d4('0x8')]())if(this[_0x32d4('0x6')](_0xf009e))return!0x0;return!0x1;}[_0x32d4('0x6')](_0x5ced4d){return _0x5ced4d['is']('$textProxy')||this[_0x32d4('0x2')]['model'][_0x32d4('0x11')]['isObject'](_0x5ced4d)&&!_0x5ced4d['is'](_0x32d4('0xa'),_0x32d4('0x13'));}[_0x32d4('0x10')](_0x377a68){const _0x1ebab3=_0xfd1032=>!this['_itemIsContent'](_0xfd1032['item']),_0x241f43=_0x377a68[_0x32d4('0x12')][_0x32d4('0x14')](_0x1ebab3),_0x21ffdd=_0x377a68[_0x32d4('0x5')]['getLastMatchingPosition'](_0x1ebab3,{'direction':'backward'});return this[_0x32d4('0x2')]['model'][_0x32d4('0xe')](_0x241f43,_0x21ffdd);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')];}}
23
+ const _0x52b8=['findIndex','change:archivedAt','add','archivedThreads','activate','addCommentThread','plugins','highest','listenTo','init','remove','_calculatePosition','context','getCommentThread','has','archivedAt','pluginName'];(function(_0x50a3ff,_0x52b8c7){const _0x4ff5eb=function(_0x1d9f39){while(--_0x1d9f39){_0x50a3ff['push'](_0x50a3ff['shift']());}};_0x4ff5eb(++_0x52b8c7);}(_0x52b8,0x1b7));const _0x4ff5=function(_0x50a3ff,_0x52b8c7){_0x50a3ff=_0x50a3ff-0x0;let _0x4ff5eb=_0x52b8[_0x50a3ff];return _0x4ff5eb;};import{ContextPlugin as _0x144575}from'ckeditor5/src/core.js';import{Collection as _0x3220c3}from'ckeditor5/src/utils.js';import _0x4b12a3 from'./commentsrepository.js';import _0xac6e1e from'../annotations/annotations.js';export default class p extends _0x144575{static get[_0x4ff5('0x2')](){return'CommentsArchive';}static get['requires'](){return[_0x4b12a3,_0xac6e1e];}constructor(_0x2b9815){super(_0x2b9815),this[_0x4ff5('0x6')]=new _0x3220c3();}[_0x4ff5('0xc')](){const _0x1ef17e=this[_0x4ff5('0xf')],_0x3aa2dc=_0x1ef17e[_0x4ff5('0x9')]['get'](_0x4b12a3),_0x39149a=_0x1ef17e[_0x4ff5('0x9')]['get'](_0xac6e1e);this[_0x4ff5('0xb')](_0x3aa2dc,_0x4ff5('0x8'),(_0x474a11,{threadId:_0x2b4940})=>{const _0x7468d9=_0x3aa2dc[_0x4ff5('0x10')](_0x2b4940);_0x7468d9[_0x4ff5('0x1')]&&this[_0x4ff5('0x6')][_0x4ff5('0x5')](_0x7468d9,this[_0x4ff5('0xe')](_0x7468d9['archivedAt'])),this[_0x4ff5('0xb')](_0x7468d9,_0x4ff5('0x4'),(_0xde266d,_0x2ba785,_0x55e3a3)=>{_0x55e3a3?this[_0x4ff5('0x6')]['has'](_0x7468d9)||this['archivedThreads'][_0x4ff5('0x5')](_0x7468d9,this[_0x4ff5('0xe')](_0x7468d9[_0x4ff5('0x1')])):this[_0x4ff5('0x6')]['has'](_0x7468d9)&&this[_0x4ff5('0x6')][_0x4ff5('0xd')](_0x7468d9);});}),this['listenTo'](_0x3aa2dc,'removeCommentThread',(_0x26792e,{threadId:_0x5d3aa0})=>{const _0x1d5a82=_0x3aa2dc[_0x4ff5('0x10')](_0x5d3aa0);this['stopListening'](_0x1d5a82),this[_0x4ff5('0x6')][_0x4ff5('0x0')](_0x1d5a82)&&this['archivedThreads'][_0x4ff5('0xd')](_0x1d5a82);},{'priority':_0x4ff5('0xa')}),this[_0x4ff5('0xb')](_0x39149a['collection'],'focus',(_0x129324,_0x2d9c90)=>{_0x2d9c90['isActive']=!0x0,_0x39149a[_0x4ff5('0x7')](_0x2d9c90);});}[_0x4ff5('0xe')](_0x1031ec){const _0x32099b=[...this['archivedThreads']][_0x4ff5('0x3')](_0x4ded76=>_0x4ded76[_0x4ff5('0x1')]<_0x1031ec);return _0x32099b>-0x1?_0x32099b:this[_0x4ff5('0x6')]['length'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0xfe4a=['requires','children','pluginName','_handleAnnotationFocusableElements','_calculatePosition','annotationViews','getByInnerView','panelView','find','add','get','change:isOpen','findIndex','view','COMMENTS_ARCHIVE','commentsArchiveView','splice','length','classList','editor','archivedAt','listenTo','locale','plugins','buttonView','innerView','focusableElements','_visibleAnnotations','focusTracker','isVisible','remove','indexOf','CommentsArchiveUI','mainView','contains','commentsArchive','init','archivedThreads','ck-body','Annotations','collaboration.channelId','_pendingThreads','filter','CommentsRepository','_threadToController','_createArchiveUIDropdown','ck-comments-archive-dropdown','config','collection','channelId'];(function(_0x382544,_0xfe4ad2){const _0xe368e=function(_0x29ad4f){while(--_0x29ad4f){_0x382544['push'](_0x382544['shift']());}};_0xe368e(++_0xfe4ad2);}(_0xfe4a,0x150));const _0xe368=function(_0x382544,_0xfe4ad2){_0x382544=_0x382544-0x0;let _0xe368e=_0xfe4a[_0x382544];return _0xe368e;};import'../../theme/commentsarchive.css';import{Plugin as _0x44f908}from'ckeditor5/src/core.js';import{createDropdown as _0x21c731,ViewCollection as _0x4a1549}from'ckeditor5/src/ui.js';import _0x166ea7 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x139b8a}from'../utils/common-translations.js';import _0x2731fb from'./ui/view/commentsarchiveview.js';import _0x34caa7 from'./commentsarchive.js';export default class a extends _0x44f908{static get[_0xe368('0x10')](){return _0xe368('0x2e');}static get[_0xe368('0xe')](){return[_0x34caa7];}constructor(_0x25e63f){super(_0x25e63f),this['annotationViews']=new _0x4a1549(),this['_pendingThreads']=[];}[_0xe368('0x0')](){this['editor']['ui']['componentFactory']['add'](_0xe368('0x31'),()=>this[_0xe368('0x9')]());const _0x53fa0f=this[_0xe368('0x21')]['plugins']['get'](_0x34caa7),_0x6553eb=this['editor']['plugins']['get'](_0xe368('0x3')),_0x53b89f=this[_0xe368('0x21')][_0xe368('0x25')][_0xe368('0x18')](_0xe368('0x7'));this[_0xe368('0x23')](_0x53fa0f[_0xe368('0x1')],_0xe368('0x17'),(_0x7d7e27,_0x5d02ce)=>{const _0x5c054e=this[_0xe368('0x21')][_0xe368('0xb')]['get'](_0xe368('0x4'));if(!_0x5c054e||_0x5d02ce[_0xe368('0xd')]===_0x5c054e){const _0x33e0c7=this[_0xe368('0x12')](_0x5d02ce['archivedAt']),_0x34ac78=_0x53b89f[_0xe368('0x8')][_0xe368('0x18')](_0x5d02ce);if(!_0x34ac78)return void this[_0xe368('0x5')]['push']({'thread':_0x5d02ce,'position':_0x33e0c7});const _0x11b697=_0x6553eb[_0xe368('0x14')](_0x34ac78[_0xe368('0x1b')]);_0x11b697[_0xe368('0x2b')]&&_0x6553eb[_0xe368('0x29')][_0xe368('0x2c')](_0x11b697),this[_0xe368('0x13')][_0xe368('0x17')](_0x11b697[_0xe368('0x1b')],_0x33e0c7);}}),this[_0xe368('0x23')](_0x6553eb[_0xe368('0xc')],_0xe368('0x17'),(_0x28cdb0,_0x141be2)=>{const _0x5a6b30=this[_0xe368('0x5')][_0xe368('0x16')](({thread:_0x3c80db})=>{const _0x46b5de=_0x53b89f[_0xe368('0x8')][_0xe368('0x18')](_0x3c80db);return _0x46b5de&&_0x141be2[_0xe368('0x27')]===_0x46b5de['view'];});_0x5a6b30&&(this[_0xe368('0x13')][_0xe368('0x17')](_0x141be2[_0xe368('0x1b')],_0x5a6b30['position']),this['_pendingThreads'][_0xe368('0x1e')](this[_0xe368('0x5')][_0xe368('0x2d')](_0x5a6b30),0x1));}),this['listenTo'](_0x53fa0f[_0xe368('0x1')],_0xe368('0x2c'),(_0x16e7f3,_0x6bd4d1)=>{const _0x53441f=this[_0xe368('0x21')][_0xe368('0xb')][_0xe368('0x18')](_0xe368('0x4'));if(!_0x53441f||_0x6bd4d1[_0xe368('0xd')]===_0x53441f){const _0xcdb7b1=_0x53b89f['_threadToController'][_0xe368('0x18')](_0x6bd4d1),_0x5e96cf=_0x6553eb[_0xe368('0x14')](_0xcdb7b1[_0xe368('0x1b')]);this['annotationViews']['remove'](_0x5e96cf[_0xe368('0x1b')]),this['stopListening'](_0x5e96cf[_0xe368('0x28')]);}});}[_0xe368('0x11')](_0x16566a,_0x142b62){for(const _0xab52af of _0x142b62[_0xe368('0x28')])_0xab52af[_0xe368('0x20')][_0xe368('0x30')](_0xe368('0x2'))&&_0x16566a[_0xe368('0x2a')]['add'](_0xab52af);this[_0xe368('0x23')](_0x142b62['focusableElements'],_0xe368('0x17'),(_0x31230b,_0x52fb2a)=>{_0x52fb2a[_0xe368('0x20')][_0xe368('0x30')](_0xe368('0x2'))&&_0x16566a[_0xe368('0x2a')][_0xe368('0x17')](_0x52fb2a);}),this[_0xe368('0x23')](_0x142b62[_0xe368('0x28')],_0xe368('0x2c'),(_0x50e862,_0x40fe06)=>{_0x40fe06[_0xe368('0x20')][_0xe368('0x30')](_0xe368('0x2'))&&_0x16566a[_0xe368('0x2a')][_0xe368('0x2c')](_0x40fe06);});}['_calculatePosition'](_0x3c7496){const _0x550517=this['editor'][_0xe368('0xb')][_0xe368('0x18')](_0xe368('0x4')),_0x3414ba=[...this['editor']['plugins'][_0xe368('0x18')](_0x34caa7)[_0xe368('0x1')]][_0xe368('0x6')](_0x5be784=>_0x5be784[_0xe368('0xd')]===_0x550517)[_0xe368('0x1a')](_0x4a10ee=>_0x4a10ee[_0xe368('0x22')]<_0x3c7496);return _0x3414ba>-0x1?_0x3414ba-0x1:this[_0xe368('0x13')][_0xe368('0x1f')];}['_createArchiveUIDropdown'](){const _0x1b8de1=this[_0xe368('0x21')],_0x107574=this['editor'][_0xe368('0x25')][_0xe368('0x18')](_0xe368('0x3')),_0x12670d=_0x21c731(_0x1b8de1['locale']);_0x12670d[_0xe368('0x26')]['set']({'icon':_0x166ea7,'label':_0x139b8a(_0x1b8de1[_0xe368('0x24')],_0xe368('0x1c')),'tooltip':!0x0}),_0x12670d[_0xe368('0x15')]['extendTemplate']({'attributes':{'class':_0xe368('0xa')}}),_0x12670d['on'](_0xe368('0x19'),(_0x310170,_0x5dc7e6,_0x5a5567)=>{this[_0xe368('0x1d')]||(this[_0xe368('0x1d')]=new _0x2731fb(_0x1b8de1['locale'],this['annotationViews'])),_0x5a5567?_0x12670d[_0xe368('0x15')]['children'][_0xe368('0x17')](this[_0xe368('0x1d')]):_0x12670d[_0xe368('0x15')][_0xe368('0xf')][_0xe368('0x2c')](this[_0xe368('0x1d')]);});for(const _0x5bead8 of this['annotationViews']){const _0x38709c=_0x107574['getByInnerView'](_0x5bead8['mainView']);this[_0xe368('0x11')](_0x12670d,_0x38709c);}return _0x12670d[_0xe368('0x23')](this[_0xe368('0x13')],_0xe368('0x17'),(_0x1f1f43,_0x1f8532)=>{const _0x26fb59=_0x107574[_0xe368('0x14')](_0x1f8532[_0xe368('0x2f')]);this[_0xe368('0x11')](_0x12670d,_0x26fb59);}),_0x12670d['listenTo'](this[_0xe368('0x13')],'remove',(_0x3614e3,_0x4d8531)=>{const _0x405ce4=_0x107574[_0xe368('0x14')](_0x4d8531[_0xe368('0x2f')]);for(const _0x936574 of _0x405ce4['focusableElements'])_0x936574[_0xe368('0x20')][_0xe368('0x30')]('ck-body')&&_0x12670d[_0xe368('0x2a')]['remove'](_0x936574);}),_0x12670d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')];}
23
+ const _0x8ce6=['attachTo','editingDowncast','activeMarker','document','$graveyard','setUnlinkedAt','init','group','isResolved','plugins','managedUsingOperations','addMarker:','ariaLiveAnnouncer','rootName','get','_attachMarkerToThread','fetchCommentThread','startsWith','registerAnnotation','hasContent','change:isThreadsLoadingPaused','ENTER_COMMENT_ANNOUNCEMENT','schema','newRange','set','change','hasDomSelection','ck-comment-marker','destroy','_hasTargetInContent','comment','item','consumable','editing','removeMarker:','conversion','name','isLocal','getByInnerView','view','split','collaboration.channelId','destroyed','scrollToThreadMarker','root','commands','affectsData','getItems','addCommentThread','model','text','_detachCommentThread','_handleThreadMarker','getCommentThreads','once','for','isAttached','updateMarker','getRange','isThreadsLoadingPaused','from','consume','then','reconvertMarker','editor','removeMarker','getAllMarkersForId','_handleMarkerAddAndRemove','refreshVisibility','elementToElement','low','enqueueChange','context','start','focus','differ','unlinkedAt','comments','_threadToController','_getTargetForId','markerToData','data','_getTextContext','_initAriaMarkerChangeAnnouncements','pluginName','_attachArchivedThread','$textProxy','ck-comment-marker--active','removeCommentThread','ready','length','push','_reconvertMarkers','markers','upcast','join','size','createElement','config','change:isReadOnly','registerPostFixer','_initializeMarkerConverters','change:activeMarker','requires','comment:','dataDowncast','hasCommentThread','add','getAttribute','getChangedMarkers','getCommentThread','reopenCommentThread','listenTo','delete','createPositionBefore','markerName','clear','isObject','hasMarkerForId','isCollapsed','openNewCommentThread'];(function(_0x55ea66,_0x8ce6f8){const _0xed4300=function(_0x447c07){while(--_0x447c07){_0x55ea66['push'](_0x55ea66['shift']());}};_0xed4300(++_0x8ce6f8);}(_0x8ce6,0x1cd));const _0xed43=function(_0x55ea66,_0x8ce6f8){_0x55ea66=_0x55ea66-0x0;let _0xed4300=_0x8ce6[_0x55ea66];return _0xed4300;};import{Plugin as _0x306ac2}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x7e007a}from'ckeditor5/src/utils.js';import _0x446574 from'./commentsrepository.js';import _0x5a5b35 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x202773,getAllMarkersDomElementsSorted as _0xd433d}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x5f0e54 from'../annotations/editorannotations.js';import _0x40e589 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x254ea3 from'./integrations/importword.js';import _0x5bfa88 from'../annotations/annotations.js';import{getTranslation as _0x45f830}from'../utils/common-translations.js';export default class r extends _0x306ac2{static get[_0xed43('0x5')](){return[_0x446574,_0x5f0e54,_0x40e589,_0x254ea3];}static get[_0xed43('0x6b')](){return'CommentsEditing';}constructor(_0x2be20f){super(_0x2be20f),this[_0xed43('0x2f')](_0xed43('0x52'),!0x0),_0x2be20f[_0xed43('0x68')][_0xed43('0x4d')](_0xed43('0x70'),()=>this[_0xed43('0x52')]=!0x1),this['set'](_0xed43('0x19'),null),this['on'](_0xed43('0x4'),(_0x108092,_0x22bd4e,_0x3da104,_0x52d766)=>{const _0x129865=_0x3da104?ot(_0x3da104)['id']:null;if(_0x2be20f[_0xed43('0x48')]['change'](()=>{if(_0x129865){const _0x18dab4=this[_0xed43('0x59')](_0x129865);for(const _0x395635 of _0x18dab4)_0x2be20f['editing'][_0xed43('0x56')](_0x395635);}if(_0x52d766){const {id:_0x5ae119}=ot(_0x52d766),_0x176593=this[_0xed43('0x59')](_0x5ae119);for(const _0x583bdf of _0x176593)_0x2be20f['editing'][_0xed43('0x56')](_0x583bdf);}}),_0x129865){const _0x22fb9a=_0x2be20f[_0xed43('0x20')][_0xed43('0x25')](_0x446574)[_0xed43('0xc')](_0x129865);_0x22fb9a&&_0x22fb9a[_0xed43('0x1f')]&&this[_0xed43('0x42')](_0x129865);}}),this['_initAriaMarkerChangeAnnouncements']();}[_0xed43('0x1d')](){const _0x503f51=this[_0xed43('0x57')],_0x297539=_0x503f51[_0xed43('0x20')][_0xed43('0x25')](_0x446574),_0x3e6b83=_0x503f51[_0xed43('0x0')][_0xed43('0x25')](_0xed43('0x40'));_0x503f51[_0xed43('0x44')][_0xed43('0x9')](_0xed43('0x47'),new _0x5a5b35(_0x503f51)),this[_0xed43('0xe')](_0x503f51,_0xed43('0x1'),(_0x39d0c9,_0xb12efc,_0x4c4973)=>{_0x297539['switchReadOnly'](_0x4c4973,_0x503f51[_0xed43('0x0')]['get']('collaboration.channelId'));}),this[_0xed43('0xe')](_0x297539,tt(_0xed43('0x47'),_0x3e6b83),(_0x1a84ef,{threadId:_0x781762})=>{const _0x544416=this[_0xed43('0x57')][_0xed43('0x20')][_0xed43('0x25')](_0x446574)[_0xed43('0xc')](_0x781762);_0x544416&&_0x544416[_0xed43('0x63')]&&this[_0xed43('0x6c')](_0x781762);}),this['listenTo'](_0x297539,tt(_0xed43('0x6f'),_0x3e6b83),(_0xaddf0b,{threadId:_0x5972ec})=>{_0x503f51[_0xed43('0x48')][_0xed43('0x5e')]({'isUndoable':!0x1},_0x2b9b75=>{const _0x2659ce=this[_0xed43('0x59')](_0x5972ec);for(const _0x4a7c37 of _0x2659ce)_0x2b9b75['removeMarker'](_0x4a7c37);});}),this[_0xed43('0xe')](_0x297539,tt('resolveCommentThread',_0x3e6b83),(_0x10d7d5,{threadId:_0x4dbecb})=>{(this[_0xed43('0x73')](_0x4dbecb),this[_0xed43('0x57')][_0xed43('0x38')][_0xed43('0x3e')][_0xed43('0x31')])&&(this['editor']['plugins']['get'](_0x446574)[_0xed43('0xc')](_0x4dbecb)[_0xed43('0x63')]||this[_0xed43('0x57')][_0xed43('0x38')][_0xed43('0x3e')][_0xed43('0x61')]());},{'priority':'low'}),this[_0xed43('0xe')](_0x297539,tt(_0xed43('0xd'),_0x3e6b83),(_0x4673f1,{threadId:_0x4f6377})=>{this['_reconvertMarkers'](_0x4f6377);},{'priority':'low'}),this[_0xed43('0xe')](_0x297539,tt('addComment',_0x3e6b83),(_0x58f88a,{threadId:_0x188b81,isFromAdapter:_0x182656})=>{const _0x5c349a=this['getAllMarkersForId'](_0x188b81);if(_0x182656||0x0==_0x5c349a[_0xed43('0x71')]||!_0x297539[_0xed43('0x8')](_0x188b81))return;0x1===_0x297539[_0xed43('0xc')](_0x188b81)[_0xed43('0x71')]&&_0x503f51['model'][_0xed43('0x5e')]({'isUndoable':!0x1},_0x597151=>{for(const _0xe4b6af of _0x5c349a)_0x597151[_0xed43('0x50')](_0xe4b6af,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0xed43('0x5d')}),this[_0xed43('0x3')](),this[_0xed43('0x5a')]();}[_0xed43('0x33')](){const _0x3a559f=this['editor'][_0xed43('0x20')][_0xed43('0x25')](_0x446574),_0x208c9c=this[_0xed43('0x57')]['config'][_0xed43('0x25')](_0xed43('0x40'));for(const _0x40b05e of _0x3a559f[_0xed43('0x4c')]({'channelId':_0x208c9c}))_0x3a559f[_0xed43('0x4a')](_0x40b05e['id']),_0x3a559f['_threads'][_0xed43('0xf')](_0x40b05e['id']);super[_0xed43('0x33')]();}[_0xed43('0x14')](_0x2a0545){return this['getAllMarkersForId'](_0x2a0545)[_0xed43('0x71')]>0x0;}[_0xed43('0x59')](_0x41ec38){const _0x303259=[];for(const _0x8cb20d of this[_0xed43('0x57')]['model'][_0xed43('0x74')])_0x8cb20d[_0xed43('0x3b')][_0xed43('0x28')](_0xed43('0x6')+_0x41ec38)&&_0x303259[_0xed43('0x72')](_0x8cb20d);return _0x303259;}['scrollToThreadMarker'](_0x28be52){const _0x45297f=this[_0xed43('0x66')](_0x28be52);_0x45297f&&setTimeout(()=>{this['activeMarker']&&ot(this[_0xed43('0x19')])['id']===_0x28be52&&_0x7e007a({'target':_0x45297f[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xe7054f){this[_0xed43('0x57')]['model'][_0xed43('0x30')](()=>{for(const _0xe341aa of this[_0xed43('0x59')](_0xe7054f))this[_0xed43('0x57')]['editing']['reconvertMarker'](_0xe341aa);});}[_0xed43('0x6c')](_0x510fa4){const _0x108984=this[_0xed43('0x57')][_0xed43('0x20')]['get'](_0x446574),_0x824b6d=this[_0xed43('0x57')][_0xed43('0x20')][_0xed43('0x25')](_0x5f0e54),_0x37e23b=_0x108984[_0xed43('0xc')](_0x510fa4);if(!_0x37e23b[_0xed43('0x4f')]){const _0x5da56d=_0x37e23b['attachTo'](()=>this['_getTargetForId'](_0x37e23b['id']));_0x824b6d[_0xed43('0x29')](_0x5da56d),_0x37e23b[_0xed43('0x34')]=!0x1;}}[_0xed43('0x3')](){const _0x5459b2=this[_0xed43('0x57')];_0x5459b2[_0xed43('0x3a')]['for'](_0xed43('0x18'))['markerToHighlight']({'model':_0xed43('0x35'),'view':(_0x30683a,_0x5ad79e)=>{const {id:_0x28590c}=ot(_0x30683a[_0xed43('0x11')]),_0x2d23fa=_0x5459b2[_0xed43('0x20')][_0xed43('0x25')](_0x446574)[_0xed43('0xc')](_0x28590c),_0x52ad28=this[_0xed43('0x19')]&&ot(this[_0xed43('0x19')])['id']===_0x28590c;if(_0x2d23fa&&_0x2d23fa[_0xed43('0x1f')]&&!_0x52ad28&&_0x30683a[_0xed43('0x36')])return _0x5ad79e[_0xed43('0x37')][_0xed43('0x54')](_0x30683a[_0xed43('0x36')],_0xed43('0x22')+_0x30683a[_0xed43('0x11')]),_0x5ad79e['consumable']['consume'](_0x30683a['item'],_0xed43('0x39')+_0x30683a[_0xed43('0x11')]),null;const _0x3078f4=[_0xed43('0x32')];return _0x52ad28&&_0x3078f4['push'](_0xed43('0x6e')),{'classes':_0x3078f4,'attributes':{'data-comment':_0x28590c}};}}),_0x5459b2[_0xed43('0x3a')][_0xed43('0x4e')](_0xed43('0x7'))[_0xed43('0x67')]({'model':'comment','view':(_0x278383,{options:_0x5f3dbb})=>{const _0x209276=_0x5459b2[_0xed43('0x20')]['get'](_0x446574),_0x1d6ce8=_0x5459b2['model']['markers']['get'](_0x278383),{id:_0x9e6062,part:_0x1d9d83}=ot(_0x278383);if(_0x1d6ce8&&!_0x1d6ce8[_0xed43('0x45')])return null;if(_0x5f3dbb['ignoreResolvedComments']){const _0x3bc6d7=_0x209276[_0xed43('0xc')](_0x9e6062);if(_0x3bc6d7&&_0x3bc6d7[_0xed43('0x1f')])return null;}return{'group':_0xed43('0x35'),'name':_0x1d9d83?_0x9e6062+':'+_0x1d9d83:_0x9e6062};}}),_0x5459b2[_0xed43('0x3a')][_0xed43('0x4e')](_0xed43('0x75'))[_0xed43('0x5c')]({'view':{'name':_0xed43('0x35'),'attributes':{'id':/^\w/}},'model':(_0x84405c,{writer:_0x34f236})=>_0x34f236[_0xed43('0x78')]('$marker',{'data-name':'comment:'+_0x84405c[_0xed43('0xa')]('id')})}),_0x5459b2[_0xed43('0x3a')][_0xed43('0x4e')]('upcast')['dataToMarker']({'view':_0xed43('0x35')});}['_handleMarkerAddAndRemove'](){const _0x52979a=this[_0xed43('0x57')],_0x5954e3=_0x52979a['plugins'][_0xed43('0x25')](_0x446574),_0x50c67d=new Set(),_0x3ee78e=new Set();_0x52979a[_0xed43('0x48')]['document'][_0xed43('0x2')](_0x5bf6fd=>{let _0x37d574=!0x1;for(const {name:_0x1b15ab,data:_0x4261e4}of _0x52979a[_0xed43('0x48')][_0xed43('0x1a')]['differ'][_0xed43('0xb')]()){const {group:_0x354bd7,id:_0x17402d}=ot(_0x1b15ab);let _0x1e469c=_0x4261e4[_0xed43('0x2e')];if(_0xed43('0x35')!==_0x354bd7||!_0x1e469c)continue;const _0x11b1f9=_0xed43('0x1b')===_0x1e469c[_0xed43('0x43')][_0xed43('0x24')];_0x11b1f9||(_0x1e469c=et(_0x1e469c,_0x52979a[_0xed43('0x48')]),!_0x1e469c||_0x1e469c[_0xed43('0x15')]||!_0x4261e4[_0xed43('0x2e')]||_0x1e469c['isEqual'](_0x4261e4[_0xed43('0x2e')]))?_0x52979a[_0xed43('0x48')][_0xed43('0x2a')](_0x1e469c)&&!_0x11b1f9?this[_0xed43('0x52')]?_0x50c67d[_0xed43('0x9')](_0x1b15ab):this['_handleThreadMarker'](_0x1b15ab,_0x17402d):(_0x3ee78e['add'](_0x1b15ab),_0x50c67d[_0xed43('0xf')](_0x1b15ab),_0x5bf6fd[_0xed43('0x58')](_0x1b15ab),_0x37d574=!0x0):(_0x5bf6fd[_0xed43('0x50')](_0x1b15ab,{'range':_0x1e469c}),_0x37d574=!0x0);}return _0x37d574;}),this['on'](_0xed43('0x2b'),(_0x6c10b2,_0x5ccb8b,_0x4968e0)=>{if(!_0x4968e0&&_0x50c67d[_0xed43('0x77')])for(const _0x1d629f of _0x50c67d){const {id:_0x2c208b}=ot(_0x1d629f);_0x50c67d[_0xed43('0xf')](_0x1d629f),_0x52979a['model'][_0xed43('0x74')][_0xed43('0x25')](_0x1d629f)&&this[_0xed43('0x4b')](_0x1d629f,_0x2c208b);}}),this['listenTo'](_0x52979a[_0xed43('0x48')][_0xed43('0x1a')],_0xed43('0x30'),(_0x3a4882,_0x8b135d)=>{for(const {name:_0x4ac00a,data:{newRange:_0x5b0578}}of _0x52979a[_0xed43('0x48')]['document'][_0xed43('0x62')][_0xed43('0xb')]()){const {group:_0x228a06,id:_0x5dae60}=ot(_0x4ac00a);if(_0xed43('0x35')!==_0x228a06)continue;const _0x5a16f7=_0x5954e3[_0xed43('0xc')](_0x5dae60),_0x1a24f1=this[_0xed43('0x14')](_0x5dae60);_0x5a16f7&&(_0x5a16f7[_0xed43('0x34')]||_0x52979a[_0xed43('0x38')]['view'][_0xed43('0x4d')]('render',()=>{const _0x2d9aaf=_0x52979a[_0xed43('0x20')][_0xed43('0x25')](_0x5bfa88),_0xc55096=_0x5954e3['_threadToController'][_0xed43('0x25')](_0x5a16f7)[_0xed43('0x3e')];_0x2d9aaf['getByInnerView'](_0xc55096)[_0xed43('0x5b')]();},{'priority':_0xed43('0x5d')}),_0x5a16f7[_0xed43('0x34')]=_0x1a24f1||!!_0x5b0578),_0x5b0578||(_0x3ee78e[_0xed43('0x9')](_0x4ac00a),_0x50c67d[_0xed43('0xf')](_0x4ac00a));}if(_0x8b135d[_0xed43('0x3c')])for(const _0x244856 of _0x3ee78e){const {id:_0x35715d}=ot(_0x244856),_0x2ef388=_0x5954e3['getCommentThread'](_0x35715d),_0x5901a7=this[_0xed43('0x14')](_0x35715d);_0x50c67d[_0xed43('0xf')](_0x244856),!_0x2ef388||_0x5901a7||_0x2ef388[_0xed43('0x63')]||_0x2ef388[_0xed43('0x1c')](new Date());}_0x3ee78e[_0xed43('0x12')]();});}['_getTargetForId'](_0x1c4681){const _0x176e61=this['editor'],_0x155f36=this['getAllMarkersForId'](_0x1c4681);return _0xd433d(_0x176e61['editing'],_0x155f36);}[_0xed43('0x69')](_0x4b8f96){const _0x2b17b2=this[_0xed43('0x59')](_0x4b8f96);let _0x49b6b2='',_0xceb094=!0x1;for(const _0x1b44f7 of _0x2b17b2){const _0x1e0110=_0x1b44f7[_0xed43('0x51')]();for(const _0x27cbd6 of Array[_0xed43('0x53')](_0x1e0110[_0xed43('0x46')]()))_0x27cbd6['is'](_0xed43('0x6d'))?(_0x49b6b2&&_0xceb094&&(_0x49b6b2+='\x20',_0xceb094=!0x1),_0x49b6b2+=_0x27cbd6[_0xed43('0x68')]):_0xceb094=!0x0;_0xceb094=!0x0;}return _0x49b6b2['substring'](0x0,0x96);}[_0xed43('0x26')](_0x303c2a,_0x174b05){const _0x3365bd=this[_0xed43('0x57')],_0x260899=_0x3365bd[_0xed43('0x20')][_0xed43('0x25')](_0x446574);let _0x38f0f5=_0x260899[_0xed43('0xc')](_0x174b05);const _0x461b62=_0x3365bd[_0xed43('0x0')][_0xed43('0x25')](_0xed43('0x40')),_0x5c3ed2=_0x3365bd[_0xed43('0x20')][_0xed43('0x25')](_0x5f0e54);if(_0x38f0f5&&(_0x38f0f5[_0xed43('0x63')]&&_0x38f0f5[_0xed43('0x1c')](null),_0x38f0f5[_0xed43('0x4f')]))return _0x38f0f5;return!this[_0xed43('0x59')](_0x174b05)[0x0][_0xed43('0x21')]?_0x3365bd[_0xed43('0x38')][_0xed43('0x3e')][_0xed43('0x4d')]('render',()=>{if(_0x260899['getCommentThread'](_0x174b05))return;const _0x3d5969=_0x3365bd[_0xed43('0x20')][_0xed43('0x25')](_0x5bfa88);_0x38f0f5=_0x260899[_0xed43('0x16')]({'channelId':_0x461b62,'threadId':_0x174b05,'target':()=>this[_0xed43('0x66')](_0x174b05),'context':{'type':_0xed43('0x49'),'value':this[_0xed43('0x69')](_0x174b05)}});const _0xb6c66b=_0x260899[_0xed43('0x65')][_0xed43('0x25')](_0x38f0f5)[_0xed43('0x3e')],_0x4db610=_0x3d5969[_0xed43('0x3d')](_0xb6c66b);_0x4db610&&_0x5c3ed2['registerAnnotation'](_0x4db610);},{'priority':_0xed43('0x5d')}):_0x260899[_0xed43('0x27')]({'channelId':_0x461b62,'threadId':_0x174b05})[_0xed43('0x55')](_0x5e5e24=>{if(_0xed43('0x41')!==_0x3365bd['state']){if(_0x38f0f5=_0x5e5e24,_0x38f0f5&&!_0x38f0f5['isAttached']){const _0x4acb46=_0x38f0f5[_0xed43('0x17')](()=>this[_0xed43('0x66')](_0x174b05));_0x5c3ed2['registerAnnotation'](_0x4acb46),_0x38f0f5[_0xed43('0x1f')]&&this[_0xed43('0x73')](_0x174b05);}else{if(!_0x38f0f5){const _0x173673=this['getAllMarkersForId'](_0x174b05);_0x3365bd[_0xed43('0x48')][_0xed43('0x30')](_0x399ba7=>{for(const _0x5c139f of _0x173673)_0x399ba7[_0xed43('0x58')](_0x5c139f);});}}}}),_0x38f0f5;}[_0xed43('0x4b')](_0x302bbf,_0x19d4a8){const _0x46fd83=this[_0xed43('0x26')](_0x302bbf,_0x19d4a8);_0x46fd83&&!_0x46fd83[_0xed43('0x5f')]&&_0x46fd83['setContext']({'type':_0xed43('0x49'),'value':this[_0xed43('0x69')](_0x19d4a8)});}[_0xed43('0x6a')](){const _0x13e00c=this['editor'];_0x202773(_0x13e00c[_0xed43('0x48')],({left:_0x11431d,entered:_0x50cf58})=>{const _0x1c1744=[];for(const _0x143734 of _0x11431d)if(rt(_0x143734)){_0x1c1744[_0xed43('0x72')](_0x45f830(_0x13e00c['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x55cb0d of _0x50cf58)if(rt(_0x55cb0d)){_0x1c1744[_0xed43('0x72')](_0x45f830(_0x13e00c['locale'],_0xed43('0x2c')));break;}_0x1c1744[_0xed43('0x71')]&&_0x13e00c['ui'][_0xed43('0x23')]['announce'](_0xed43('0x64'),_0x1c1744[_0xed43('0x76')]('\x20'));});}}function tt(_0x2eb3ca,_0x1a05f9){return _0x1a05f9?_0x2eb3ca+':'+_0x1a05f9:_0x2eb3ca;}function ot(_0x5e5ba0){const _0x513029=_0x5e5ba0[_0xed43('0x3f')](':');return{'group':_0x513029[0x0],'id':_0x513029[0x1],'part':_0x513029[0x2]};}function et(_0x8d7373,_0x4155c2){const _0x469b34=_0x4155c2[_0xed43('0x2d')],_0xbe321b=_0x4155c2['createRange'](_0x8d7373[_0xed43('0x60')]);for(const _0x40f437 of _0x8d7373['getWalker']()){const {type:_0x67af05,item:_0x43ead8,nextPosition:_0x55e5a2}=_0x40f437;if(_0xed43('0x49')===_0x67af05||_0x469b34[_0xed43('0x13')](_0x43ead8)){const _0x32abd9=_0x4155c2[_0xed43('0x10')](_0x43ead8);_0xbe321b[_0xed43('0x15')]&&(_0xbe321b[_0xed43('0x60')]=_0x32abd9),_0xbe321b['end']=_0x55e5a2;}}return _0xbe321b;}function rt(_0x51de8b){return _0xed43('0x35')===ot(_0x51de8b[_0xed43('0x3b')])[_0xed43('0x1e')];}