@ckeditor/ckeditor5-comments 0.0.0-nightly-20230913.0 → 0.0.0-nightly-20230914.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 _0x30d0=['content','ck-sidebar-item','element','clear','_targetTop','destroy','set','isAnimationDisabled','height','top','_mutationObserver','createCollection','bottom','setTemplate','ck-sidebar-item--no-animation','div','bindTemplate','render','detach'];(function(_0x4a1e05,_0x30d048){const _0x119a2a=function(_0x3a5676){while(--_0x3a5676){_0x4a1e05['push'](_0x4a1e05['shift']());}};_0x119a2a(++_0x30d048);}(_0x30d0,0x19b));const _0x119a=function(_0x4a1e05,_0x30d048){_0x4a1e05=_0x4a1e05-0x0;let _0x119a2a=_0x30d0[_0x4a1e05];return _0x119a2a;};import{View as _0x25731f}from'ckeditor5/src/ui';import{toUnit as _0x27c6ac}from'ckeditor5/src/utils';import _0x2aec71 from'../../utils/createmutationobserver';const At=_0x27c6ac('px');export default class C extends _0x25731f{constructor(_0x2a4698){super(_0x2a4698),this[_0x119a('0xd')](_0x119a('0x10'),0x0),this[_0x119a('0xd')](_0x119a('0xf'),0x0),this['bind'](_0x119a('0x0'))['to'](this,_0x119a('0x10'),this,'height',(_0x5ef910,_0x5a40d0)=>_0x5ef910+_0x5a40d0),this['set'](_0x119a('0xe'),!0x1),this[_0x119a('0x11')]=_0x2aec71(()=>this['updateHeight']()),this[_0x119a('0xb')]=null,this[_0x119a('0x7')]=this[_0x119a('0x12')]();const _0x446cf1=this[_0x119a('0x4')];this[_0x119a('0x1')]({'tag':_0x119a('0x3'),'attributes':{'class':[_0x119a('0x8'),_0x446cf1['to'](_0x119a('0xe'),_0x18c124=>_0x18c124?_0x119a('0x2'):'')],'style':{'top':_0x446cf1['to'](_0x119a('0x10'),_0x4e069e=>At(_0x4e069e))}},'children':this[_0x119a('0x7')]});}[_0x119a('0x5')](){super['render'](),this[_0x119a('0x11')]['attach'](this[_0x119a('0x9')]);}['updateHeight'](){const _0x28abb2=this[_0x119a('0x9')]['clientHeight'];_0x28abb2&&(this['height']=_0x28abb2);}[_0x119a('0xc')](){this[_0x119a('0x7')][_0x119a('0xa')](),this[_0x119a('0x11')][_0x119a('0x6')](),super[_0x119a('0xc')]();}}
23
+ const _0x52f8=['bind','clientHeight','height','destroy','set','isAnimationDisabled','bottom','attach','render','ck-sidebar-item','_mutationObserver','content','updateHeight','_targetTop','top','clear','div'];(function(_0x2a6683,_0x52f847){const _0x695324=function(_0xe16218){while(--_0xe16218){_0x2a6683['push'](_0x2a6683['shift']());}};_0x695324(++_0x52f847);}(_0x52f8,0x116));const _0x6953=function(_0x2a6683,_0x52f847){_0x2a6683=_0x2a6683-0x0;let _0x695324=_0x52f8[_0x2a6683];return _0x695324;};import{View as _0x26b0e0}from'ckeditor5/src/ui';import{toUnit as _0x3ddb2a}from'ckeditor5/src/utils';import _0x1a06ce from'../../utils/createmutationobserver';const At=_0x3ddb2a('px');export default class C extends _0x26b0e0{constructor(_0x1a57cc){super(_0x1a57cc),this[_0x6953('0xf')](_0x6953('0x8'),0x0),this['set'](_0x6953('0xd'),0x0),this[_0x6953('0xb')](_0x6953('0x0'))['to'](this,_0x6953('0x8'),this,_0x6953('0xd'),(_0x49acd3,_0x3da5ca)=>_0x49acd3+_0x3da5ca),this[_0x6953('0xf')]('isAnimationDisabled',!0x1),this['_mutationObserver']=_0x1a06ce(()=>this[_0x6953('0x6')]()),this[_0x6953('0x7')]=null,this[_0x6953('0x5')]=this['createCollection']();const _0xd74d37=this['bindTemplate'];this['setTemplate']({'tag':_0x6953('0xa'),'attributes':{'class':[_0x6953('0x3'),_0xd74d37['to'](_0x6953('0x10'),_0x28cafb=>_0x28cafb?'ck-sidebar-item--no-animation':'')],'style':{'top':_0xd74d37['to'](_0x6953('0x8'),_0x344c2d=>At(_0x344c2d))}},'children':this[_0x6953('0x5')]});}[_0x6953('0x2')](){super[_0x6953('0x2')](),this[_0x6953('0x4')][_0x6953('0x1')](this['element']);}[_0x6953('0x6')](){const _0x260dcc=this['element'][_0x6953('0xc')];_0x260dcc&&(this['height']=_0x260dcc);}[_0x6953('0xe')](){this[_0x6953('0x5')][_0x6953('0x9')](),this['_mutationObserver']['detach'](),super[_0x6953('0xe')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x579f=['ck-reset','minHeight','set','class','ck-sidebar','setTemplate','list'];(function(_0x11e1f1,_0x579ffc){const _0x70fb20=function(_0x126679){while(--_0x126679){_0x11e1f1['push'](_0x11e1f1['shift']());}};_0x70fb20(++_0x579ffc);}(_0x579f,0xaf));const _0x70fb=function(_0x11e1f1,_0x579ffc){_0x11e1f1=_0x11e1f1-0x0;let _0x70fb20=_0x579f[_0x11e1f1];return _0x70fb20;};import{View as _0x1f15a7}from'ckeditor5/src/ui';import{toUnit as _0x36d901}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x36d901('px');export default class T extends _0x1f15a7{constructor(_0x31e823){super(_0x31e823);const _0x3ff583=this['bindTemplate'];this[_0x70fb('0x2')](_0x70fb('0x1'),0x0),this['set']('class',''),this[_0x70fb('0x6')]=this['createCollection'](),this[_0x70fb('0x5')]({'tag':'div','attributes':{'class':['ck',_0x70fb('0x4'),_0x70fb('0x0'),_0x3ff583['to'](_0x70fb('0x3'))],'style':{'minHeight':_0x3ff583['to'](_0x70fb('0x1'),_0x1faa42=>'number'==typeof _0x1faa42?At(_0x1faa42+0xa):null)}},'children':this[_0x70fb('0x6')]});}}
23
+ const _0x351b=['createCollection','list','ck-reset','bindTemplate','div','setTemplate','class','minHeight','ck-sidebar'];(function(_0x3c5855,_0x351b8a){const _0x5294fe=function(_0x166769){while(--_0x166769){_0x3c5855['push'](_0x3c5855['shift']());}};_0x5294fe(++_0x351b8a);}(_0x351b,0x73));const _0x5294=function(_0x3c5855,_0x351b8a){_0x3c5855=_0x3c5855-0x0;let _0x5294fe=_0x351b[_0x3c5855];return _0x5294fe;};import{View as _0x345a8a}from'ckeditor5/src/ui';import{toUnit as _0x167426}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x167426('px');export default class T extends _0x345a8a{constructor(_0x2460cf){super(_0x2460cf);const _0x4394f2=this[_0x5294('0x5')];this['set'](_0x5294('0x0'),0x0),this['set']('class',''),this[_0x5294('0x3')]=this[_0x5294('0x2')](),this[_0x5294('0x7')]({'tag':_0x5294('0x6'),'attributes':{'class':['ck',_0x5294('0x1'),_0x5294('0x4'),_0x4394f2['to'](_0x5294('0x8'))],'style':{'minHeight':_0x4394f2['to'](_0x5294('0x0'),_0x375aca=>'number'==typeof _0x375aca?At(_0x375aca+0xa):null)}},'children':this[_0x5294('0x3')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa6d5=['refresh','_editorAnnotations','has','attach','WideSidebar','_destroyEditorAnnotationsIntegration','context','_annotations','_detachFromContainer','updateTargetRect','widesidebar-attach-already-attached','_refreshPositioningDebounced','removeEventListener','blur','listenTo','change:container','off','ready','stopListening','high','cancel','hasDomSelection','register','getOrderedSelectedAnnotations','remove','annotations','uiUpdate','container','get','detach','widesidebar-detach-not-attached','pluginName','init','EditorAnnotations','_attachToContainer','_integrateWithEditorAnnotations','activeAnnotation','rearrange','setActiveAnnotation','add','ck-sidebar--wide','focus','editors','addAnnotation','requires','refreshPositioning','resize','isAttached','plugins','wideSidebar'];(function(_0x50fd31,_0xa6d5da){const _0x20f84b=function(_0x42b1a6){while(--_0x42b1a6){_0x50fd31['push'](_0x50fd31['shift']());}};_0x20f84b(++_0xa6d5da);}(_0xa6d5,0x1b8));const _0x20f8=function(_0x50fd31,_0xa6d5da){_0x50fd31=_0x50fd31-0x0;let _0x20f84b=_0xa6d5[_0x50fd31];return _0x20f84b;};import{ContextPlugin as _0x159ae4,Context as _0x3e8f43}from'ckeditor5/src/core';import _0x41cff4 from'./annotationsuis';import _0x3db9e5 from'./sidebar';import{CKEditorError as _0xf70a61,Collection as _0x2d2b7c}from'ckeditor5/src/utils';import{debounce as _0xba5437}from'lodash-es';import _0x202b82 from'./editorannotations';export default class i extends _0x159ae4{static get[_0x20f8('0x4')](){return[_0x3db9e5,_0x41cff4];}static get[_0x20f8('0x29')](){return _0x20f8('0xe');}constructor(_0x11e39e){super(_0x11e39e),this['isAttached']=!0x1,this['set'](_0x20f8('0x2e'),null),this[_0x20f8('0x23')]=null,this['_editorAnnotations']=new _0x2d2b7c(),this['_refreshPositioningDebounced']=_0xba5437(()=>{this[_0x20f8('0x23')][_0x20f8('0x5')]();},0xfa,{'leading':!0x1});}[_0x20f8('0x2a')](){const _0x409ffd=this['context'][_0x20f8('0x8')][_0x20f8('0x26')](_0x41cff4),_0x145695=this[_0x20f8('0x10')][_0x20f8('0x8')][_0x20f8('0x26')](_0x3db9e5);_0x409ffd[_0x20f8('0x20')](_0x20f8('0x9'),this),_0x145695[_0x20f8('0x25')]&&_0x409ffd['switchTo']('wideSidebar');}[_0x20f8('0x30')](_0x1f61a2){if(_0x1f61a2===this['activeAnnotation'])return;const _0x1571e4=this[_0x20f8('0x10')][_0x20f8('0x8')][_0x20f8('0x26')](_0x3db9e5);_0x1571e4['_activeAnnotation']=_0x1f61a2;const _0x2e720a=this['activeAnnotation'];this[_0x20f8('0x2e')]=_0x1f61a2,_0x1571e4[_0x20f8('0xa')]({'blurredAnnotation':_0x2e720a,'activatedAnnotation':this[_0x20f8('0x2e')]});}[_0x20f8('0xd')](_0x2ab79f){this[_0x20f8('0x23')]=_0x2ab79f;const _0xfd3eaf=this['context'][_0x20f8('0x8')][_0x20f8('0x26')](_0x3db9e5);if(_0xfd3eaf[_0x20f8('0x11')]=_0x2ab79f,this[_0x20f8('0x7')])throw new _0xf70a61(_0x20f8('0x14'),this);this[_0x20f8('0x7')]=!0x0,this['listenTo'](_0xfd3eaf,'set:container',()=>{this[_0x20f8('0x27')](),this['listenTo'](_0xfd3eaf,_0x20f8('0x19'),_0x350f25=>{_0x350f25[_0x20f8('0x1a')](),this[_0x20f8('0xd')](_0x2ab79f);});}),_0xfd3eaf[_0x20f8('0x2c')]({'viewClass':_0x20f8('0x0')});const _0x293be8=_0x7bc3e6=>{_0x7bc3e6[_0x20f8('0x13')](),_0xfd3eaf[_0x20f8('0x3')](_0x7bc3e6);};for(const _0x4b95f0 of _0x2ab79f)_0x293be8(_0x4b95f0);this[_0x20f8('0x18')](_0x2ab79f,_0x20f8('0x31'),(_0x36b669,_0x90ad4b)=>{_0x293be8(_0x90ad4b);}),this['listenTo'](_0x2ab79f,_0x20f8('0x22'),(_0x532741,_0x2d8bd2,_0x57515a)=>{_0xfd3eaf[_0x20f8('0x2f')]({'removedAnnotation':_0x2d8bd2,'previousAnnotation':_0x2ab79f[_0x20f8('0x26')](_0x57515a-0x1),'nextAnnotation':_0x2ab79f['get'](_0x57515a+0x1)}),_0x2d8bd2===this[_0x20f8('0x2e')]&&this[_0x20f8('0x30')](null);},{'priority':'high'}),this[_0x20f8('0x18')](_0x2ab79f,_0x20f8('0x1'),(_0xcd2599,_0x8cb290)=>{this[_0x20f8('0x30')](_0x8cb290);}),this[_0x20f8('0x18')](_0x2ab79f,'blur',()=>{this[_0x20f8('0x30')](null);});const _0x2cff92=this[_0x20f8('0x10')]instanceof _0x3e8f43?this[_0x20f8('0x10')][_0x20f8('0x2')]:new _0x2d2b7c([this[_0x20f8('0x10')]]);for(const _0x5cc99c of _0x2cff92)this[_0x20f8('0x2d')](_0x5cc99c);this[_0x20f8('0x18')](_0x2cff92,_0x20f8('0x31'),(_0x4a0229,_0x15adf2)=>{this['listenTo'](_0x15adf2,_0x20f8('0x1b'),()=>{this[_0x20f8('0x2d')](_0x15adf2);});}),this['listenTo'](_0x2cff92,'remove',(_0x1c2365,_0x4f0c2e)=>{_0x4f0c2e[_0x20f8('0x8')][_0x20f8('0xc')](_0x20f8('0x2b'))&&this['_destroyEditorAnnotationsIntegration'](_0x4f0c2e[_0x20f8('0x8')][_0x20f8('0x26')](_0x20f8('0x2b')));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this[_0x20f8('0x23')]['refreshPositioning']();}[_0x20f8('0x27')](){if(!this[_0x20f8('0x7')])throw new _0xf70a61(_0x20f8('0x28'),this);this[_0x20f8('0x30')](null);const _0x22a6a5=this[_0x20f8('0x10')][_0x20f8('0x8')][_0x20f8('0x26')](_0x3db9e5);_0x22a6a5[_0x20f8('0x12')](this['annotations']),this[_0x20f8('0x1c')](_0x22a6a5),this['stopListening'](this[_0x20f8('0x23')]),this[_0x20f8('0x10')]instanceof _0x3e8f43&&this[_0x20f8('0x1c')](this[_0x20f8('0x10')]['editors']);for(const _0x1ea203 of Array['from'](this[_0x20f8('0xb')]))this['_destroyEditorAnnotationsIntegration'](_0x1ea203);window[_0x20f8('0x16')](_0x20f8('0x6'),this[_0x20f8('0x15')]),this['_refreshPositioningDebounced'][_0x20f8('0x1e')](),this[_0x20f8('0x2e')]=null,this['isAttached']=!0x1,this[_0x20f8('0x23')]=null;}['destroy'](){this[_0x20f8('0x7')]&&this[_0x20f8('0x27')]();}[_0x20f8('0x2d')](_0x543a01){const _0x89fb3=_0x543a01['plugins'][_0x20f8('0x26')](_0x202b82);if(!_0x89fb3)return;const _0x2e1ee3=()=>{const _0xced747=_0x89fb3[_0x20f8('0x21')]({'annotations':this[_0x20f8('0x23')],'activeAnnotation':this[_0x20f8('0x2e')]});this[_0x20f8('0x30')](_0xced747[0x0]||null);};this[_0x20f8('0x18')](_0x89fb3,_0x20f8('0xa'),_0x2e1ee3),this[_0x20f8('0x18')](_0x89fb3,_0x20f8('0x17'),(_0x12754a,{isAnnotationTracked:_0x1cc215})=>{this[_0x20f8('0x2e')]&&_0x1cc215(this[_0x20f8('0x2e')])&&this[_0x20f8('0x30')](null);}),this[_0x20f8('0x18')](_0x89fb3,_0x20f8('0x24'),()=>{this[_0x20f8('0x15')]();}),this[_0x20f8('0x18')](this[_0x20f8('0x23')],_0x20f8('0x17'),_0x2ece85=>{_0x89fb3[_0x20f8('0x1f')]()&&(_0x2e1ee3(),_0x2ece85['stop']());},{'priority':_0x20f8('0x1d')}),this[_0x20f8('0xb')][_0x20f8('0x31')](_0x89fb3);}[_0x20f8('0xf')](_0x564139){this[_0x20f8('0x1c')](_0x564139),this[_0x20f8('0xb')][_0x20f8('0x22')](_0x564139);}}
23
+ const _0x3710=['removeEventListener','plugins','updateTargetRect','annotations','from','stopListening','context','set','widesidebar-detach-not-attached','EditorAnnotations','change:container','activeAnnotation','has','add','container','high','editors','ck-sidebar--wide','resize','stop','blur','_attachToContainer','ready','get','widesidebar-attach-already-attached','hasDomSelection','listenTo','register','cancel','attach','_annotations','_refreshPositioningDebounced','set:container','wideSidebar','isAttached','refresh','addAnnotation','addEventListener','refreshPositioning','_destroyEditorAnnotationsIntegration','detach','getOrderedSelectedAnnotations','_detachFromContainer','_integrateWithEditorAnnotations','rearrange','setActiveAnnotation','remove','focus','_editorAnnotations','_activeAnnotation'];(function(_0xdcad7d,_0x37107d){const _0x590795=function(_0x4744fd){while(--_0x4744fd){_0xdcad7d['push'](_0xdcad7d['shift']());}};_0x590795(++_0x37107d);}(_0x3710,0x9d));const _0x5907=function(_0xdcad7d,_0x37107d){_0xdcad7d=_0xdcad7d-0x0;let _0x590795=_0x3710[_0xdcad7d];return _0x590795;};import{ContextPlugin as _0x1381f9,Context as _0x280615}from'ckeditor5/src/core';import _0x43e41e from'./annotationsuis';import _0x3dc46f from'./sidebar';import{CKEditorError as _0x8c2797,Collection as _0x21996c}from'ckeditor5/src/utils';import{debounce as _0x4d85b1}from'lodash-es';import _0x5cf3ba from'./editorannotations';export default class i extends _0x1381f9{static get['requires'](){return[_0x3dc46f,_0x43e41e];}static get['pluginName'](){return'WideSidebar';}constructor(_0x32cc7f){super(_0x32cc7f),this[_0x5907('0x1b')]=!0x1,this[_0x5907('0x0')](_0x5907('0x4'),null),this['annotations']=null,this[_0x5907('0x29')]=new _0x21996c(),this[_0x5907('0x18')]=_0x4d85b1(()=>{this[_0x5907('0x2e')][_0x5907('0x1f')]();},0xfa,{'leading':!0x1});}['init'](){const _0x332f85=this[_0x5907('0x31')]['plugins'][_0x5907('0x10')](_0x43e41e),_0xfed23c=this['context'][_0x5907('0x2c')]['get'](_0x3dc46f);_0x332f85[_0x5907('0x14')](_0x5907('0x1a'),this),_0xfed23c[_0x5907('0x7')]&&_0x332f85['switchTo'](_0x5907('0x1a'));}[_0x5907('0x26')](_0x371524){if(_0x371524===this[_0x5907('0x4')])return;const _0x33a11b=this[_0x5907('0x31')][_0x5907('0x2c')][_0x5907('0x10')](_0x3dc46f);_0x33a11b[_0x5907('0x2a')]=_0x371524;const _0x1a3e93=this['activeAnnotation'];this['activeAnnotation']=_0x371524,_0x33a11b[_0x5907('0x1c')]({'blurredAnnotation':_0x1a3e93,'activatedAnnotation':this[_0x5907('0x4')]});}['attach'](_0xc50aee){this[_0x5907('0x2e')]=_0xc50aee;const _0x149dd2=this['context']['plugins'][_0x5907('0x10')](_0x3dc46f);if(_0x149dd2[_0x5907('0x17')]=_0xc50aee,this[_0x5907('0x1b')])throw new _0x8c2797(_0x5907('0x11'),this);this[_0x5907('0x1b')]=!0x0,this[_0x5907('0x13')](_0x149dd2,_0x5907('0x19'),()=>{this[_0x5907('0x21')](),this[_0x5907('0x13')](_0x149dd2,_0x5907('0x3'),_0xce624a=>{_0xce624a['off'](),this[_0x5907('0x16')](_0xc50aee);});}),_0x149dd2[_0x5907('0xe')]({'viewClass':_0x5907('0xa')});const _0x96727a=_0x53e2a1=>{_0x53e2a1[_0x5907('0x2d')](),_0x149dd2[_0x5907('0x1d')](_0x53e2a1);};for(const _0x3573e1 of _0xc50aee)_0x96727a(_0x3573e1);this[_0x5907('0x13')](_0xc50aee,_0x5907('0x6'),(_0xb01a12,_0x144b81)=>{_0x96727a(_0x144b81);}),this[_0x5907('0x13')](_0xc50aee,_0x5907('0x27'),(_0x44c591,_0x3d103c,_0x423117)=>{_0x149dd2[_0x5907('0x25')]({'removedAnnotation':_0x3d103c,'previousAnnotation':_0xc50aee[_0x5907('0x10')](_0x423117-0x1),'nextAnnotation':_0xc50aee['get'](_0x423117+0x1)}),_0x3d103c===this[_0x5907('0x4')]&&this[_0x5907('0x26')](null);},{'priority':_0x5907('0x8')}),this[_0x5907('0x13')](_0xc50aee,_0x5907('0x28'),(_0x3e4d3d,_0xd8aa95)=>{this['setActiveAnnotation'](_0xd8aa95);}),this[_0x5907('0x13')](_0xc50aee,'blur',()=>{this[_0x5907('0x26')](null);});const _0x440738=this[_0x5907('0x31')]instanceof _0x280615?this[_0x5907('0x31')]['editors']:new _0x21996c([this[_0x5907('0x31')]]);for(const _0x407fce of _0x440738)this['_integrateWithEditorAnnotations'](_0x407fce);this[_0x5907('0x13')](_0x440738,_0x5907('0x6'),(_0x59a05,_0x59b1c4)=>{this[_0x5907('0x13')](_0x59b1c4,_0x5907('0xf'),()=>{this[_0x5907('0x24')](_0x59b1c4);});}),this[_0x5907('0x13')](_0x440738,'remove',(_0x4463b,_0x19cefa)=>{_0x19cefa['plugins'][_0x5907('0x5')](_0x5907('0x2'))&&this[_0x5907('0x20')](_0x19cefa[_0x5907('0x2c')][_0x5907('0x10')](_0x5907('0x2')));}),window[_0x5907('0x1e')](_0x5907('0xb'),this['_refreshPositioningDebounced']),this[_0x5907('0x2e')][_0x5907('0x1f')]();}[_0x5907('0x21')](){if(!this[_0x5907('0x1b')])throw new _0x8c2797(_0x5907('0x1'),this);this[_0x5907('0x26')](null);const _0x2c6bfb=this[_0x5907('0x31')][_0x5907('0x2c')][_0x5907('0x10')](_0x3dc46f);_0x2c6bfb[_0x5907('0x23')](this[_0x5907('0x2e')]),this[_0x5907('0x30')](_0x2c6bfb),this['stopListening'](this[_0x5907('0x2e')]),this['context']instanceof _0x280615&&this['stopListening'](this[_0x5907('0x31')][_0x5907('0x9')]);for(const _0x54c5ae of Array[_0x5907('0x2f')](this['_editorAnnotations']))this[_0x5907('0x20')](_0x54c5ae);window[_0x5907('0x2b')](_0x5907('0xb'),this['_refreshPositioningDebounced']),this[_0x5907('0x18')][_0x5907('0x15')](),this[_0x5907('0x4')]=null,this[_0x5907('0x1b')]=!0x1,this[_0x5907('0x2e')]=null;}['destroy'](){this[_0x5907('0x1b')]&&this[_0x5907('0x21')]();}[_0x5907('0x24')](_0x190cd8){const _0x25746a=_0x190cd8['plugins'][_0x5907('0x10')](_0x5cf3ba);if(!_0x25746a)return;const _0x56c9a7=()=>{const _0x2d1b8c=_0x25746a[_0x5907('0x22')]({'annotations':this[_0x5907('0x2e')],'activeAnnotation':this[_0x5907('0x4')]});this['setActiveAnnotation'](_0x2d1b8c[0x0]||null);};this[_0x5907('0x13')](_0x25746a,_0x5907('0x1c'),_0x56c9a7),this['listenTo'](_0x25746a,_0x5907('0xd'),(_0x35208d,{isAnnotationTracked:_0x1f1cbf})=>{this[_0x5907('0x4')]&&_0x1f1cbf(this[_0x5907('0x4')])&&this['setActiveAnnotation'](null);}),this[_0x5907('0x13')](_0x25746a,'uiUpdate',()=>{this[_0x5907('0x18')]();}),this[_0x5907('0x13')](this[_0x5907('0x2e')],_0x5907('0xd'),_0x450a85=>{_0x25746a[_0x5907('0x12')]()&&(_0x56c9a7(),_0x450a85[_0x5907('0xc')]());},{'priority':'high'}),this[_0x5907('0x29')]['add'](_0x25746a);}[_0x5907('0x20')](_0xa4fccb){this[_0x5907('0x30')](_0xa4fccb),this[_0x5907('0x29')]['remove'](_0xa4fccb);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e4f=['getRanges','addMarker','refresh','model','getItems','editor','_hasContent','change','_itemIsContent','substr','createRange','_trimToContent','document','backward','push','selection','end','tableCell','isObject','execute','item','getLastMatchingPosition','comment:','$textProxy','isEnabled'];(function(_0x11ff26,_0x1e4f01){const _0x151baa=function(_0x474504){while(--_0x474504){_0x11ff26['push'](_0x11ff26['shift']());}};_0x151baa(++_0x1e4f01);}(_0x1e4f,0xaf));const _0x151b=function(_0x11ff26,_0x1e4f01){_0x11ff26=_0x11ff26-0x0;let _0x151baa=_0x1e4f[_0x11ff26];return _0x151baa;};import{Command as _0x827c57}from'ckeditor5/src/core';import{uid as _0xa84477}from'ckeditor5/src/utils';export default class q extends _0x827c57{[_0x151b('0x2')](){const _0x5b6af8=this[_0x151b('0x5')][_0x151b('0x3')][_0x151b('0xc')][_0x151b('0xf')];for(const _0x1a4218 of _0x5b6af8[_0x151b('0x0')]())if(this[_0x151b('0x6')](_0x1a4218))return void(this[_0x151b('0x18')]=!0x0);this[_0x151b('0x18')]=!0x1;}[_0x151b('0x13')]({threadId:_0x281f36=_0xa84477()}={}){const _0x3afde5=this['editor'][_0x151b('0x3')],_0x21078d=[];for(const _0x4c1fce of _0x3afde5[_0x151b('0xc')][_0x151b('0xf')]['getRanges']())this[_0x151b('0x6')](_0x4c1fce)&&_0x21078d[_0x151b('0xe')](this[_0x151b('0xb')](_0x4c1fce));_0x3afde5[_0x151b('0x7')](_0x4db73c=>{for(const _0x476f29 of _0x21078d){const _0x59e92f=_0xa84477()[_0x151b('0x9')](0x1,0x5),_0x36c64b=_0x151b('0x16')+_0x281f36+':'+_0x59e92f;_0x4db73c[_0x151b('0x1')](_0x36c64b,{'range':_0x476f29,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x151b('0x6')](_0xb3407d){for(const _0x1a8b91 of _0xb3407d[_0x151b('0x4')]())if(this[_0x151b('0x8')](_0x1a8b91))return!0x0;return!0x1;}[_0x151b('0x8')](_0x5f1a25){return _0x5f1a25['is'](_0x151b('0x17'))||this['editor'][_0x151b('0x3')]['schema'][_0x151b('0x12')](_0x5f1a25)&&!_0x5f1a25['is']('element',_0x151b('0x11'));}['_trimToContent'](_0x49e819){const _0x5477c9=_0x2454c5=>!this[_0x151b('0x8')](_0x2454c5[_0x151b('0x14')]),_0x8fa242=_0x49e819['start']['getLastMatchingPosition'](_0x5477c9),_0x589eb0=_0x49e819[_0x151b('0x10')][_0x151b('0x15')](_0x5477c9,{'direction':_0x151b('0xd')});return this[_0x151b('0x5')]['model'][_0x151b('0xa')](_0x8fa242,_0x589eb0);}}
23
+ const _0x4dc0=['getLastMatchingPosition','_hasContent','model','backward','item','start','editor','element','_trimToContent','getRanges','$textProxy','selection','_itemIsContent','isEnabled','isObject','end','comment:','document','schema','tableCell'];(function(_0x1efe33,_0x4dc032){const _0x210447=function(_0x35a79e){while(--_0x35a79e){_0x1efe33['push'](_0x1efe33['shift']());}};_0x210447(++_0x4dc032);}(_0x4dc0,0xe6));const _0x2104=function(_0x1efe33,_0x4dc032){_0x1efe33=_0x1efe33-0x0;let _0x210447=_0x4dc0[_0x1efe33];return _0x210447;};import{Command as _0x199e31}from'ckeditor5/src/core';import{uid as _0x2e3ca6}from'ckeditor5/src/utils';export default class q extends _0x199e31{['refresh'](){const _0x434dd4=this[_0x2104('0x10')][_0x2104('0xc')][_0x2104('0x7')][_0x2104('0x1')];for(const _0x3dcf97 of _0x434dd4[_0x2104('0x13')]())if(this[_0x2104('0xb')](_0x3dcf97))return void(this['isEnabled']=!0x0);this[_0x2104('0x3')]=!0x1;}['execute']({threadId:_0x351e77=_0x2e3ca6()}={}){const _0x3ae66c=this[_0x2104('0x10')]['model'],_0x10925e=[];for(const _0x6e38af of _0x3ae66c[_0x2104('0x7')][_0x2104('0x1')][_0x2104('0x13')]())this['_hasContent'](_0x6e38af)&&_0x10925e['push'](this[_0x2104('0x12')](_0x6e38af));_0x3ae66c['change'](_0x5b8d37=>{for(const _0x45c379 of _0x10925e){const _0x5aef7b=_0x2e3ca6()['substr'](0x1,0x5),_0x3aa3c0=_0x2104('0x6')+_0x351e77+':'+_0x5aef7b;_0x5b8d37['addMarker'](_0x3aa3c0,{'range':_0x45c379,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x2255b0){for(const _0x251439 of _0x2255b0['getItems']())if(this[_0x2104('0x2')](_0x251439))return!0x0;return!0x1;}[_0x2104('0x2')](_0x15602b){return _0x15602b['is'](_0x2104('0x0'))||this[_0x2104('0x10')]['model'][_0x2104('0x8')][_0x2104('0x4')](_0x15602b)&&!_0x15602b['is'](_0x2104('0x11'),_0x2104('0x9'));}['_trimToContent'](_0x1f5d73){const _0x4d3ed6=_0x2a483d=>!this[_0x2104('0x2')](_0x2a483d[_0x2104('0xe')]),_0x1f850d=_0x1f5d73[_0x2104('0xf')]['getLastMatchingPosition'](_0x4d3ed6),_0x122c81=_0x1f5d73[_0x2104('0x5')][_0x2104('0xa')](_0x4d3ed6,{'direction':_0x2104('0xd')});return this[_0x2104('0x10')][_0x2104('0xc')]['createRange'](_0x1f850d,_0x122c81);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x234c=['resolvedAt','addCommentThread','remove','length','init','resolveCommentThread','resolvedThreads','findIndex','reopenCommentThread','get','removeCommentThread','activate','context','has','CommentsArchive','collection','requires','getCommentThread','add','focus','pluginName','_calculatePosition','plugins','listenTo','highest'];(function(_0x1f16ab,_0x234c9c){const _0xa7a8a9=function(_0x403376){while(--_0x403376){_0x1f16ab['push'](_0x1f16ab['shift']());}};_0xa7a8a9(++_0x234c9c);}(_0x234c,0xe6));const _0xa7a8=function(_0x1f16ab,_0x234c9c){_0x1f16ab=_0x1f16ab-0x0;let _0xa7a8a9=_0x234c[_0x1f16ab];return _0xa7a8a9;};import{ContextPlugin as _0x9cc45f}from'ckeditor5/src/core';import{Collection as _0x579727}from'ckeditor5/src/utils';import _0x24e55a from'./commentsrepository';import _0x281801 from'../annotations/annotations';export default class p extends _0x9cc45f{static get[_0xa7a8('0xf')](){return _0xa7a8('0x9');}static get[_0xa7a8('0xb')](){return[_0x24e55a,_0x281801];}constructor(_0xa2e6f8){super(_0xa2e6f8),this['resolvedThreads']=new _0x579727();}[_0xa7a8('0x18')](){const _0x1261bf=this[_0xa7a8('0x7')],_0x54481f=_0x1261bf['plugins']['get'](_0x24e55a),_0x14aab3=_0x1261bf[_0xa7a8('0x11')][_0xa7a8('0x4')](_0x281801);this[_0xa7a8('0x12')](_0x54481f,_0xa7a8('0x15'),(_0x34f6e1,{threadId:_0x191cb1,resolvedAt:_0x1545c6,deletedAt:_0x249468})=>{if(_0x1545c6&&!_0x249468){const _0x128be3=_0x54481f[_0xa7a8('0xc')](_0x191cb1);this[_0xa7a8('0x1')]['add'](_0x128be3,this[_0xa7a8('0x10')](_0x1545c6));}}),this[_0xa7a8('0x12')](_0x54481f,_0xa7a8('0x0'),(_0x2a4b3a,{threadId:_0xca1886,resolvedAt:_0x4f90c8})=>{const _0x1577be=_0x54481f['getCommentThread'](_0xca1886);this['resolvedThreads'][_0xa7a8('0xd')](_0x1577be,this[_0xa7a8('0x10')](_0x4f90c8));},{'priority':_0xa7a8('0x13')}),this['listenTo'](_0x54481f,_0xa7a8('0x3'),(_0x511556,{threadId:_0x17dfc4})=>{const _0x5d05e6=_0x54481f[_0xa7a8('0xc')](_0x17dfc4);this[_0xa7a8('0x1')][_0xa7a8('0x8')](_0x5d05e6)&&this[_0xa7a8('0x1')][_0xa7a8('0x16')](_0x5d05e6);},{'priority':_0xa7a8('0x13')}),this[_0xa7a8('0x12')](_0x54481f,_0xa7a8('0x5'),(_0x334761,{threadId:_0x556537})=>{const _0x378577=_0x54481f[_0xa7a8('0xc')](_0x556537);this['resolvedThreads'][_0xa7a8('0x8')](_0x378577)&&this[_0xa7a8('0x1')][_0xa7a8('0x16')](_0x378577);},{'priority':'highest'}),this[_0xa7a8('0x12')](_0x14aab3[_0xa7a8('0xa')],_0xa7a8('0xe'),(_0x1b836a,_0x513bd6)=>{_0x513bd6['isActive']=!0x0,_0x14aab3[_0xa7a8('0x6')](_0x513bd6);});}['_calculatePosition'](_0x5493c7){const _0x31df90=[...this[_0xa7a8('0x1')]][_0xa7a8('0x2')](_0x3cc03d=>_0x3cc03d[_0xa7a8('0x14')]<_0x5493c7);return _0x31df90>-0x1?_0x31df90:this[_0xa7a8('0x1')][_0xa7a8('0x17')];}}
23
+ const _0x49f7=['removeCommentThread','plugins','addCommentThread','collection','resolveCommentThread','resolvedAt','findIndex','resolvedThreads','highest','get','pluginName','listenTo','getCommentThread','has','_calculatePosition','activate','requires','remove','reopenCommentThread','isActive','add','context','length','focus'];(function(_0x28fdfd,_0x49f719){const _0x133287=function(_0x503105){while(--_0x503105){_0x28fdfd['push'](_0x28fdfd['shift']());}};_0x133287(++_0x49f719);}(_0x49f7,0x110));const _0x1332=function(_0x28fdfd,_0x49f719){_0x28fdfd=_0x28fdfd-0x0;let _0x133287=_0x49f7[_0x28fdfd];return _0x133287;};import{ContextPlugin as _0x1610b5}from'ckeditor5/src/core';import{Collection as _0x27a180}from'ckeditor5/src/utils';import _0x43a701 from'./commentsrepository';import _0x1e957c from'../annotations/annotations';export default class p extends _0x1610b5{static get[_0x1332('0x2')](){return'CommentsArchive';}static get[_0x1332('0x8')](){return[_0x43a701,_0x1e957c];}constructor(_0x18ea99){super(_0x18ea99),this[_0x1332('0x17')]=new _0x27a180();}['init'](){const _0x415c8a=this[_0x1332('0xd')],_0x32d962=_0x415c8a[_0x1332('0x11')][_0x1332('0x1')](_0x43a701),_0x400381=_0x415c8a[_0x1332('0x11')][_0x1332('0x1')](_0x1e957c);this[_0x1332('0x3')](_0x32d962,_0x1332('0x12'),(_0xd39ede,{threadId:_0x411986,resolvedAt:_0x26483c,deletedAt:_0x23eda9})=>{if(_0x26483c&&!_0x23eda9){const _0xe34405=_0x32d962[_0x1332('0x4')](_0x411986);this[_0x1332('0x17')]['add'](_0xe34405,this[_0x1332('0x6')](_0x26483c));}}),this[_0x1332('0x3')](_0x32d962,_0x1332('0x14'),(_0x3296ce,{threadId:_0x28e81d,resolvedAt:_0x18298a})=>{const _0x193e69=_0x32d962[_0x1332('0x4')](_0x28e81d);this['resolvedThreads'][_0x1332('0xc')](_0x193e69,this[_0x1332('0x6')](_0x18298a));},{'priority':_0x1332('0x0')}),this[_0x1332('0x3')](_0x32d962,_0x1332('0xa'),(_0x1201ed,{threadId:_0x150bc3})=>{const _0x247022=_0x32d962['getCommentThread'](_0x150bc3);this[_0x1332('0x17')][_0x1332('0x5')](_0x247022)&&this['resolvedThreads'][_0x1332('0x9')](_0x247022);},{'priority':_0x1332('0x0')}),this[_0x1332('0x3')](_0x32d962,_0x1332('0x10'),(_0x41aa1d,{threadId:_0x168450})=>{const _0x221209=_0x32d962[_0x1332('0x4')](_0x168450);this[_0x1332('0x17')]['has'](_0x221209)&&this[_0x1332('0x17')][_0x1332('0x9')](_0x221209);},{'priority':'highest'}),this[_0x1332('0x3')](_0x400381[_0x1332('0x13')],_0x1332('0xf'),(_0x398fa0,_0x274355)=>{_0x274355[_0x1332('0xb')]=!0x0,_0x400381[_0x1332('0x7')](_0x274355);});}[_0x1332('0x6')](_0x4f0983){const _0x169607=[...this['resolvedThreads']][_0x1332('0x16')](_0xd84ca0=>_0xd84ca0[_0x1332('0x15')]<_0x4f0983);return _0x169607>-0x1?_0x169607:this[_0x1332('0x17')][_0x1332('0xe')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3243=['pluginName','_createArchiveUIDropdown','resolvedThreads','classList','locale','CommentsArchiveUI','contains','requires','focusTracker','commentsArchive','editor','config','change:isOpen','focusableElements','splice','_visibleAnnotations','extendTemplate','isVisible','ck-body','_calculatePosition','buttonView','remove','componentFactory','position','innerView','indexOf','_handleAnnotationFocusableElements','plugins','find','_threadToController','commentsArchiveView','resolvedAt','listenTo','collaboration.channelId','findIndex','COMMENTS_ARCHIVE','collection','stopListening','annotationViews','view','panelView','channelId','_pendingThreads','getByInnerView','add','get','CommentsRepository','mainView'];(function(_0x34c131,_0x3243a6){const _0x5617ee=function(_0x2a7a3d){while(--_0x2a7a3d){_0x34c131['push'](_0x34c131['shift']());}};_0x5617ee(++_0x3243a6);}(_0x3243,0x141));const _0x5617=function(_0x34c131,_0x3243a6){_0x34c131=_0x34c131-0x0;let _0x5617ee=_0x3243[_0x34c131];return _0x5617ee;};import'../../theme/commentsarchive.css';import{Plugin as _0x10e993}from'ckeditor5/src/core';import{createDropdown as _0x488389,ViewCollection as _0x37b7c1}from'ckeditor5/src/ui';import _0x918d97 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x1ca012}from'../utils/common-translations';import _0x5aa8ad from'./ui/view/commentsarchiveview';import _0x34d54a from'./commentsarchive';export default class a extends _0x10e993{static get[_0x5617('0xf')](){return _0x5617('0x14');}static get[_0x5617('0x16')](){return[_0x34d54a];}constructor(_0x28bfac){super(_0x28bfac),this[_0x5617('0x5')]=new _0x37b7c1(),this[_0x5617('0x9')]=[];}['init'](){this[_0x5617('0x19')]['ui'][_0x5617('0x25')][_0x5617('0xb')](_0x5617('0x18'),()=>this[_0x5617('0x10')]());const _0xf85303=this[_0x5617('0x19')][_0x5617('0x2a')]['get'](_0x34d54a),_0x318ce5=this[_0x5617('0x19')]['plugins'][_0x5617('0xc')]('Annotations'),_0x2528ff=this[_0x5617('0x19')][_0x5617('0x2a')]['get'](_0x5617('0xd'));this[_0x5617('0x2f')](_0xf85303[_0x5617('0x11')],'add',(_0x390240,_0xaa123f)=>{const _0x42da26=this[_0x5617('0x19')]['config'][_0x5617('0xc')](_0x5617('0x0'));if(!_0x42da26||_0xaa123f[_0x5617('0x8')]===_0x42da26){const _0x5bff98=this[_0x5617('0x22')](_0xaa123f[_0x5617('0x2e')]),_0x3da8ad=_0x2528ff[_0x5617('0x2c')][_0x5617('0xc')](_0xaa123f);if(!_0x3da8ad)return void this[_0x5617('0x9')]['push']({'thread':_0xaa123f,'position':_0x5bff98});const _0x55cbb2=_0x318ce5[_0x5617('0xa')](_0x3da8ad[_0x5617('0x6')]);_0x55cbb2[_0x5617('0x20')]&&_0x318ce5[_0x5617('0x1e')][_0x5617('0x24')](_0x55cbb2),this[_0x5617('0x5')][_0x5617('0xb')](_0x55cbb2[_0x5617('0x6')],_0x5bff98);}}),this[_0x5617('0x2f')](_0x318ce5[_0x5617('0x3')],_0x5617('0xb'),(_0x524627,_0x186dd5)=>{const _0x3de269=this['_pendingThreads'][_0x5617('0x2b')](({thread:_0x3b03e6})=>{const _0x27321d=_0x2528ff[_0x5617('0x2c')]['get'](_0x3b03e6);return _0x27321d&&_0x186dd5[_0x5617('0x27')]===_0x27321d[_0x5617('0x6')];});_0x3de269&&(this[_0x5617('0x5')][_0x5617('0xb')](_0x186dd5['view'],_0x3de269[_0x5617('0x26')]),this[_0x5617('0x9')][_0x5617('0x1d')](this['_pendingThreads'][_0x5617('0x28')](_0x3de269),0x1));}),this[_0x5617('0x2f')](_0xf85303['resolvedThreads'],_0x5617('0x24'),(_0xea5397,_0x231de0)=>{const _0x425916=this[_0x5617('0x19')][_0x5617('0x1a')]['get'](_0x5617('0x0'));if(!_0x425916||_0x231de0[_0x5617('0x8')]===_0x425916){const _0x2cfa55=_0x2528ff['_threadToController']['get'](_0x231de0),_0x5f424a=_0x318ce5[_0x5617('0xa')](_0x2cfa55[_0x5617('0x6')]);this[_0x5617('0x5')]['remove'](_0x5f424a['view']),this[_0x5617('0x4')](_0x5f424a[_0x5617('0x1c')]);}});}[_0x5617('0x29')](_0x4d9887,_0x3956e0){for(const _0x6765ba of _0x3956e0[_0x5617('0x1c')])_0x6765ba[_0x5617('0x12')][_0x5617('0x15')](_0x5617('0x21'))&&_0x4d9887['focusTracker']['add'](_0x6765ba);this[_0x5617('0x2f')](_0x3956e0[_0x5617('0x1c')],_0x5617('0xb'),(_0xdbac2d,_0x23c6f5)=>{_0x23c6f5[_0x5617('0x12')][_0x5617('0x15')](_0x5617('0x21'))&&_0x4d9887[_0x5617('0x17')]['add'](_0x23c6f5);}),this['listenTo'](_0x3956e0[_0x5617('0x1c')],_0x5617('0x24'),(_0x2ef031,_0x37e97b)=>{_0x37e97b[_0x5617('0x12')][_0x5617('0x15')](_0x5617('0x21'))&&_0x4d9887[_0x5617('0x17')][_0x5617('0x24')](_0x37e97b);});}[_0x5617('0x22')](_0x2d0d28){const _0x362490=this['editor'][_0x5617('0x1a')]['get'](_0x5617('0x0')),_0x26e737=[...this[_0x5617('0x19')][_0x5617('0x2a')][_0x5617('0xc')](_0x34d54a)[_0x5617('0x11')]]['filter'](_0x64960b=>_0x64960b[_0x5617('0x8')]!==_0x362490)[_0x5617('0x1')](_0x589b36=>_0x589b36[_0x5617('0x2e')]<_0x2d0d28);return _0x26e737>-0x1?_0x26e737:this[_0x5617('0x5')]['length'];}[_0x5617('0x10')](){const _0x1d7b97=this['editor'],_0x3f7e67=this[_0x5617('0x19')][_0x5617('0x2a')][_0x5617('0xc')]('Annotations'),_0xc540ce=_0x488389(_0x1d7b97[_0x5617('0x13')]);_0xc540ce[_0x5617('0x23')]['set']({'icon':_0x918d97,'label':_0x1ca012(_0x1d7b97[_0x5617('0x13')],_0x5617('0x2')),'tooltip':!0x0}),_0xc540ce[_0x5617('0x7')][_0x5617('0x1f')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0xc540ce['on'](_0x5617('0x1b'),(_0x381087,_0x270614,_0x1ee92d)=>{this[_0x5617('0x2d')]||(this[_0x5617('0x2d')]=new _0x5aa8ad(_0x1d7b97[_0x5617('0x13')],this[_0x5617('0x5')])),_0x1ee92d?_0xc540ce[_0x5617('0x7')]['children'][_0x5617('0xb')](this[_0x5617('0x2d')]):_0xc540ce[_0x5617('0x7')]['children'][_0x5617('0x24')](this[_0x5617('0x2d')]);});for(const _0x233947 of this[_0x5617('0x5')]){const _0x2e2e16=_0x3f7e67[_0x5617('0xa')](_0x233947[_0x5617('0xe')]);this['_handleAnnotationFocusableElements'](_0xc540ce,_0x2e2e16);}return _0xc540ce[_0x5617('0x2f')](this['annotationViews'],_0x5617('0xb'),(_0x5d6968,_0x4aad22)=>{const _0xe43bb1=_0x3f7e67[_0x5617('0xa')](_0x4aad22['mainView']);this[_0x5617('0x29')](_0xc540ce,_0xe43bb1);}),_0xc540ce[_0x5617('0x2f')](this['annotationViews'],_0x5617('0x24'),(_0x1e16c3,_0x37650a)=>{const _0x2c600f=_0x3f7e67['getByInnerView'](_0x37650a[_0x5617('0xe')]);for(const _0x2dc065 of _0x2c600f['focusableElements'])_0x2dc065[_0x5617('0x12')]['contains'](_0x5617('0x21'))&&_0xc540ce[_0x5617('0x17')]['remove'](_0x2dc065);}),_0xc540ce;}}
23
+ const _0x59df=['indexOf','ck-comments-archive-dropdown','classList','get','plugins','children','extendTemplate','channelId','_pendingThreads','change:isOpen','resolvedAt','locale','stopListening','add','annotationViews','focusTracker','set','contains','componentFactory','requires','commentsArchive','COMMENTS_ARCHIVE','pluginName','position','_createArchiveUIDropdown','panelView','resolvedThreads','ck-body','_threadToController','length','getByInnerView','_handleAnnotationFocusableElements','listenTo','commentsArchiveView','view','remove','focusableElements','_visibleAnnotations','mainView','editor','isVisible','config','_calculatePosition','CommentsRepository','innerView','buttonView','collaboration.channelId','Annotations','findIndex'];(function(_0x3a9657,_0x59dfc3){const _0x891566=function(_0x41756b){while(--_0x41756b){_0x3a9657['push'](_0x3a9657['shift']());}};_0x891566(++_0x59dfc3);}(_0x59df,0x15a));const _0x8915=function(_0x3a9657,_0x59dfc3){_0x3a9657=_0x3a9657-0x0;let _0x891566=_0x59df[_0x3a9657];return _0x891566;};import'../../theme/commentsarchive.css';import{Plugin as _0x1129d8}from'ckeditor5/src/core';import{createDropdown as _0x2993e3,ViewCollection as _0xced206}from'ckeditor5/src/ui';import _0x160f9f from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x549e9a}from'../utils/common-translations';import _0x405cdc from'./ui/view/commentsarchiveview';import _0x6b6089 from'./commentsarchive';export default class a extends _0x1129d8{static get[_0x8915('0x13')](){return'CommentsArchiveUI';}static get[_0x8915('0x10')](){return[_0x6b6089];}constructor(_0x310d30){super(_0x310d30),this['annotationViews']=new _0xced206(),this[_0x8915('0x5')]=[];}['init'](){this['editor']['ui'][_0x8915('0xf')][_0x8915('0xa')](_0x8915('0x11'),()=>this[_0x8915('0x15')]());const _0x164791=this[_0x8915('0x24')][_0x8915('0x1')][_0x8915('0x0')](_0x6b6089),_0x2ec9e3=this[_0x8915('0x24')]['plugins'][_0x8915('0x0')](_0x8915('0x2c')),_0x7fa99e=this[_0x8915('0x24')][_0x8915('0x1')][_0x8915('0x0')](_0x8915('0x28'));this['listenTo'](_0x164791[_0x8915('0x17')],_0x8915('0xa'),(_0x5dd308,_0x5cfa5a)=>{const _0x2a2c4a=this[_0x8915('0x24')][_0x8915('0x26')][_0x8915('0x0')](_0x8915('0x2b'));if(!_0x2a2c4a||_0x5cfa5a[_0x8915('0x4')]===_0x2a2c4a){const _0x552def=this['_calculatePosition'](_0x5cfa5a[_0x8915('0x7')]),_0x48f747=_0x7fa99e[_0x8915('0x19')][_0x8915('0x0')](_0x5cfa5a);if(!_0x48f747)return void this[_0x8915('0x5')]['push']({'thread':_0x5cfa5a,'position':_0x552def});const _0x12d412=_0x2ec9e3[_0x8915('0x1b')](_0x48f747[_0x8915('0x1f')]);_0x12d412[_0x8915('0x25')]&&_0x2ec9e3[_0x8915('0x22')][_0x8915('0x20')](_0x12d412),this[_0x8915('0xb')][_0x8915('0xa')](_0x12d412['view'],_0x552def);}}),this['listenTo'](_0x2ec9e3['collection'],_0x8915('0xa'),(_0x1b8759,_0x3c0d66)=>{const _0x564f2b=this['_pendingThreads']['find'](({thread:_0x236d06})=>{const _0x5b697f=_0x7fa99e[_0x8915('0x19')]['get'](_0x236d06);return _0x5b697f&&_0x3c0d66[_0x8915('0x29')]===_0x5b697f['view'];});_0x564f2b&&(this[_0x8915('0xb')][_0x8915('0xa')](_0x3c0d66['view'],_0x564f2b[_0x8915('0x14')]),this[_0x8915('0x5')]['splice'](this[_0x8915('0x5')][_0x8915('0x2e')](_0x564f2b),0x1));}),this[_0x8915('0x1d')](_0x164791[_0x8915('0x17')],_0x8915('0x20'),(_0x13c6ee,_0x1df0b2)=>{const _0x3c54a2=this[_0x8915('0x24')][_0x8915('0x26')][_0x8915('0x0')]('collaboration.channelId');if(!_0x3c54a2||_0x1df0b2[_0x8915('0x4')]===_0x3c54a2){const _0x2c80ff=_0x7fa99e[_0x8915('0x19')]['get'](_0x1df0b2),_0x1a1435=_0x2ec9e3['getByInnerView'](_0x2c80ff['view']);this['annotationViews']['remove'](_0x1a1435[_0x8915('0x1f')]),this[_0x8915('0x9')](_0x1a1435[_0x8915('0x21')]);}});}[_0x8915('0x1c')](_0x3e45e1,_0x54b5be){for(const _0x5914eb of _0x54b5be[_0x8915('0x21')])_0x5914eb['classList'][_0x8915('0xe')]('ck-body')&&_0x3e45e1[_0x8915('0xc')][_0x8915('0xa')](_0x5914eb);this[_0x8915('0x1d')](_0x54b5be[_0x8915('0x21')],_0x8915('0xa'),(_0x3b205f,_0x1238c6)=>{_0x1238c6['classList'][_0x8915('0xe')](_0x8915('0x18'))&&_0x3e45e1[_0x8915('0xc')]['add'](_0x1238c6);}),this[_0x8915('0x1d')](_0x54b5be['focusableElements'],_0x8915('0x20'),(_0x301207,_0x2a7da0)=>{_0x2a7da0[_0x8915('0x30')]['contains'](_0x8915('0x18'))&&_0x3e45e1[_0x8915('0xc')][_0x8915('0x20')](_0x2a7da0);});}[_0x8915('0x27')](_0x34d6f2){const _0x43e8cf=this['editor']['config']['get'](_0x8915('0x2b')),_0x18bc74=[...this[_0x8915('0x24')][_0x8915('0x1')]['get'](_0x6b6089)['resolvedThreads']]['filter'](_0x262441=>_0x262441[_0x8915('0x4')]!==_0x43e8cf)[_0x8915('0x2d')](_0x2ed676=>_0x2ed676[_0x8915('0x7')]<_0x34d6f2);return _0x18bc74>-0x1?_0x18bc74:this['annotationViews'][_0x8915('0x1a')];}[_0x8915('0x15')](){const _0x135633=this[_0x8915('0x24')],_0x5da954=this[_0x8915('0x24')][_0x8915('0x1')][_0x8915('0x0')](_0x8915('0x2c')),_0x38fa70=_0x2993e3(_0x135633['locale']);_0x38fa70[_0x8915('0x2a')][_0x8915('0xd')]({'icon':_0x160f9f,'label':_0x549e9a(_0x135633[_0x8915('0x8')],_0x8915('0x12')),'tooltip':!0x0}),_0x38fa70[_0x8915('0x16')][_0x8915('0x3')]({'attributes':{'class':_0x8915('0x2f')}}),_0x38fa70['on'](_0x8915('0x6'),(_0x2c7297,_0x39fd72,_0x4ac8f8)=>{this[_0x8915('0x1e')]||(this[_0x8915('0x1e')]=new _0x405cdc(_0x135633['locale'],this['annotationViews'])),_0x4ac8f8?_0x38fa70[_0x8915('0x16')][_0x8915('0x2')][_0x8915('0xa')](this['commentsArchiveView']):_0x38fa70['panelView']['children']['remove'](this[_0x8915('0x1e')]);});for(const _0x3d79b4 of this[_0x8915('0xb')]){const _0x4c3331=_0x5da954[_0x8915('0x1b')](_0x3d79b4[_0x8915('0x23')]);this[_0x8915('0x1c')](_0x38fa70,_0x4c3331);}return _0x38fa70[_0x8915('0x1d')](this[_0x8915('0xb')],_0x8915('0xa'),(_0x5756bc,_0x1c3c00)=>{const _0x5ed25c=_0x5da954[_0x8915('0x1b')](_0x1c3c00[_0x8915('0x23')]);this['_handleAnnotationFocusableElements'](_0x38fa70,_0x5ed25c);}),_0x38fa70['listenTo'](this['annotationViews'],_0x8915('0x20'),(_0xd01978,_0x5baf5b)=>{const _0x51ba68=_0x5da954['getByInnerView'](_0x5baf5b[_0x8915('0x23')]);for(const _0x3d48a5 of _0x51ba68['focusableElements'])_0x3d48a5[_0x8915('0x30')][_0x8915('0xe')]('ck-body')&&_0x38fa70[_0x8915('0xc')][_0x8915('0x20')](_0x3d48a5);}),_0x38fa70;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6f84=['_initializeMarkerConverters','enqueueChange','reconvertMarker','_reconvertMarkers','change:isThreadsLoadingPaused','text','destroyed','push','for','_hasTargetInContent','$textProxy','then','_attachResolvedThread','getChangedMarkers','item','init','ready','isThreadsLoadingPaused','isObject','fetchCommentThread','newRange','addComment','consumable','hasMarkerForId','has','change','commands','markers','_handleThreadMarker','reopenCommentThread','_threadToController','isEqual','rootName','pluginName','createRange','state','getItems','split','registerPostFixer','upcast','removeMarker:','resolve','conversion','markerToData','ck-comment-marker','isResolved','requires','change:isReadOnly','isLocal','high','refreshVisibility','length','comment','data','get','_autoResolvedThreads','_attachMarkerToThread','add','from','destroy','plugins','once','hasDomSelection','consume','elementToElement','hasCommentThread','listenTo','setContext','CommentsEditing','model','scrollToThreadMarker','getAttribute','getByInnerView','createPositionBefore','view','attachTo','updateMarker','substring','_attachedThreads','_removedThread','_detachCommentThread','filter','addCommentThread','$graveyard','$marker','config','_getTargetForId','_handleMarkerAddAndRemove','document','collaboration.channelId','registerAnnotation','_getTextContext','dataDowncast','schema','editor','managedUsingOperations','getAllMarkersForId','focus','activeMarker','markerName','openNewCommentThread','start','editing','removeMarker','set','getCommentThread','isCollapsed','differ','reopen','clear','low','root','delete'];(function(_0x1481c5,_0x6f84ac){const _0x5742ea=function(_0x7a1134){while(--_0x7a1134){_0x1481c5['push'](_0x1481c5['shift']());}};_0x5742ea(++_0x6f84ac);}(_0x6f84,0xba));const _0x5742=function(_0x1481c5,_0x6f84ac){_0x1481c5=_0x1481c5-0x0;let _0x5742ea=_0x6f84[_0x1481c5];return _0x5742ea;};import{Plugin as _0x9b538b}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1a57e9}from'ckeditor5/src/utils';import _0xc24f2a from'./commentsrepository';import _0x563e8a from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4867ab}from'ckeditor5-collaboration/src/collaboration-core';import _0x5b12fe from'../annotations/editorannotations';import _0x44389f from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x33e079 from'./integrations/importword';import _0x2c8dc8 from'../annotations/annotations';export default class r extends _0x9b538b{static get[_0x5742('0x56')](){return[_0xc24f2a,_0x5b12fe,_0x44389f,_0x33e079];}static get[_0x5742('0x49')](){return _0x5742('0x6c');}constructor(_0x3e8f76){super(_0x3e8f76),this[_0x5742('0x6')]=null,this[_0x5742('0x5f')]=new Set(),this[_0x5742('0x1f')](_0x5742('0x39'),!0x0),_0x3e8f76[_0x5742('0x5d')][_0x5742('0x65')](_0x5742('0x38'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x5742('0x19'),null),this['on']('change:activeMarker',(_0x4b0875,_0x15ecc7,_0x43c6ff,_0x35c74a)=>{const _0x51170c=_0x43c6ff?tt(_0x43c6ff)['id']:null;if(_0x3e8f76[_0x5742('0x6d')][_0x5742('0x41')](()=>{if(_0x51170c){const _0x43cb2f=this[_0x5742('0x17')](_0x51170c);for(const _0x17858b of _0x43cb2f)_0x3e8f76[_0x5742('0x1d')][_0x5742('0x2a')](_0x17858b);}if(_0x35c74a){const {id:_0x1015ec}=tt(_0x35c74a),_0x5bde99=this[_0x5742('0x17')](_0x1015ec);for(const _0x5ebd3d of _0x5bde99)_0x3e8f76[_0x5742('0x1d')][_0x5742('0x2a')](_0x5ebd3d);}}),_0x51170c){const _0x5a6489=_0x3e8f76[_0x5742('0x64')]['get'](_0xc24f2a)['getCommentThread'](_0x51170c);_0x5a6489&&_0x5a6489['isResolved']&&this['scrollToThreadMarker'](_0x51170c);}}),this[_0x5742('0x5')]=new Map();}[_0x5742('0x37')](){const _0x332e2b=this['editor'],_0x2cd3f4=_0x332e2b[_0x5742('0x64')]['get'](_0xc24f2a),_0x17011d=_0x332e2b[_0x5742('0xc')]['get'](_0x5742('0x10'));_0x332e2b[_0x5742('0x42')][_0x5742('0x61')](_0x5742('0x9'),new _0x563e8a(_0x332e2b)),this[_0x5742('0x6a')](_0x332e2b,_0x5742('0x57'),(_0x1c9b9b,_0x4671c9,_0x552849)=>{_0x2cd3f4['switchReadOnly'](_0x552849,_0x332e2b[_0x5742('0xc')][_0x5742('0x5e')](_0x5742('0x10')));}),this[_0x5742('0x6a')](_0x2cd3f4,Z(_0x5742('0x9'),_0x17011d),(_0xaaee82,{threadId:_0x5a4458})=>{const _0x163dd3=this['editor'][_0x5742('0x64')][_0x5742('0x5e')](_0xc24f2a)[_0x5742('0x20')](_0x5a4458);_0x163dd3&&_0x163dd3[_0x5742('0x55')]&&this[_0x5742('0x34')](_0x5a4458);}),this['listenTo'](_0x2cd3f4,Z('removeCommentThread',_0x17011d),(_0x3421d2,{threadId:_0x4f39e2})=>{_0x332e2b[_0x5742('0x6d')]['enqueueChange']({'isUndoable':!0x1},_0xa9d16a=>{const _0x153c28=this[_0x5742('0x17')](_0x4f39e2);this['_attachedThreads']['delete'](_0x4f39e2),this['_removedThread']=_0x4f39e2;for(const _0x163766 of _0x153c28)_0xa9d16a[_0x5742('0x1e')](_0x163766);}),this[_0x5742('0x6')]=null;},{'priority':_0x5742('0x59')}),this[_0x5742('0x6a')](_0x2cd3f4,Z('resolveCommentThread',_0x17011d),(_0x9e217a,{threadId:_0x2cbe39})=>{this[_0x5742('0x34')](_0x2cbe39),this[_0x5742('0x2b')](_0x2cbe39),this['editor'][_0x5742('0x1d')][_0x5742('0x1')][_0x5742('0x66')]&&this[_0x5742('0x15')][_0x5742('0x1d')][_0x5742('0x1')][_0x5742('0x18')]();},{'priority':_0x5742('0x25')}),this[_0x5742('0x6a')](_0x2cd3f4,Z(_0x5742('0x45'),_0x17011d),(_0x185b16,{threadId:_0x15d02e})=>{this[_0x5742('0x2b')](_0x15d02e);},{'priority':'low'}),this['listenTo'](_0x2cd3f4,Z(_0x5742('0x3d'),_0x17011d),(_0x49f58c,{threadId:_0x39e993,isFromAdapter:_0x34b60e})=>{const _0x1d5aba=this[_0x5742('0x17')](_0x39e993);if(_0x34b60e||0x0==_0x1d5aba['length']||!_0x2cd3f4[_0x5742('0x69')](_0x39e993))return;0x1===_0x2cd3f4[_0x5742('0x20')](_0x39e993)['length']&&_0x332e2b['model'][_0x5742('0x29')]({'isUndoable':!0x1},_0x21e0d1=>{for(const _0x38af2f of _0x1d5aba)_0x21e0d1[_0x5742('0x3')](_0x38af2f,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this[_0x5742('0xe')]();}[_0x5742('0x63')](){const _0x3c5c98=this[_0x5742('0x15')][_0x5742('0x64')][_0x5742('0x5e')](_0xc24f2a),_0x2ed2f0=this['editor'][_0x5742('0xc')][_0x5742('0x5e')](_0x5742('0x10'));for(const _0x3fc7c6 of _0x3c5c98['getCommentThreads']({'channelId':_0x2ed2f0}))_0x3c5c98[_0x5742('0x7')](_0x3fc7c6['id']),_0x3c5c98['_threads'][_0x5742('0x27')](_0x3fc7c6['id']);super['destroy']();}[_0x5742('0x3f')](_0x53b532){return this[_0x5742('0x17')](_0x53b532)[_0x5742('0x5b')]>0x0;}[_0x5742('0x17')](_0x480480){return Array[_0x5742('0x62')](this[_0x5742('0x5')][_0x5742('0x5e')](_0x480480)||[])['map'](_0x763d44=>this[_0x5742('0x15')]['model'][_0x5742('0x43')][_0x5742('0x5e')](_0x763d44))[_0x5742('0x8')](_0x10a737=>_0x10a737);}[_0x5742('0x6e')](_0x5a85c0){const _0x32a0e3=this[_0x5742('0xd')](_0x5a85c0);_0x32a0e3&&setTimeout(()=>{this[_0x5742('0x19')]&&tt(this[_0x5742('0x19')])['id']===_0x5a85c0&&_0x1a57e9({'target':_0x32a0e3[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5742('0x2b')](_0x12c792){this[_0x5742('0x15')][_0x5742('0x6d')][_0x5742('0x41')](()=>{for(const _0x1a0eaa of this['getAllMarkersForId'](_0x12c792))this[_0x5742('0x15')][_0x5742('0x1d')][_0x5742('0x2a')](_0x1a0eaa);});}[_0x5742('0x34')](_0x1d2780){const _0x2ade00=this[_0x5742('0x15')][_0x5742('0x64')][_0x5742('0x5e')](_0xc24f2a),_0x3d0608=this['editor'][_0x5742('0x64')][_0x5742('0x5e')](_0x5b12fe),_0x1f29da=_0x2ade00[_0x5742('0x20')](_0x1d2780);if(!this['_attachedThreads']['has'](_0x1d2780)){const _0x1452b9=_0x1f29da[_0x5742('0x2')](()=>this[_0x5742('0xd')](_0x1f29da['id']));_0x3d0608['registerAnnotation'](_0x1452b9),this[_0x5742('0x5')]['set'](_0x1d2780,new Set()),_0x1f29da[_0x5742('0x31')]=!0x1;}}[_0x5742('0x28')](){const _0x4bb08f=this[_0x5742('0x15')];_0x4bb08f[_0x5742('0x52')][_0x5742('0x30')]('editingDowncast')['markerToHighlight']({'model':_0x5742('0x5c'),'view':(_0x10a6a0,_0x2710cb)=>{const {id:_0x32bc81}=tt(_0x10a6a0[_0x5742('0x1a')]),_0x28e3de=_0x4bb08f[_0x5742('0x64')][_0x5742('0x5e')](_0xc24f2a)[_0x5742('0x20')](_0x32bc81),_0x22120c=this[_0x5742('0x19')]&&tt(this[_0x5742('0x19')])['id']===_0x32bc81;if(_0x28e3de&&_0x28e3de[_0x5742('0x55')]&&!_0x22120c&&_0x10a6a0[_0x5742('0x36')])return _0x2710cb[_0x5742('0x3e')][_0x5742('0x67')](_0x10a6a0[_0x5742('0x36')],'addMarker:'+_0x10a6a0['markerName']),_0x2710cb[_0x5742('0x3e')][_0x5742('0x67')](_0x10a6a0[_0x5742('0x36')],_0x5742('0x50')+_0x10a6a0[_0x5742('0x1a')]),{'classes':[]};const _0x35e45c=[_0x5742('0x54')];return _0x22120c&&_0x35e45c[_0x5742('0x2f')]('ck-comment-marker--active'),{'classes':_0x35e45c,'attributes':{'data-comment':_0x32bc81}};}}),_0x4bb08f[_0x5742('0x52')][_0x5742('0x30')](_0x5742('0x13'))[_0x5742('0x53')]({'model':_0x5742('0x5c'),'view':(_0x43d01d,{options:_0x4ddc5c})=>{const _0x5de858=_0x4bb08f[_0x5742('0x64')][_0x5742('0x5e')](_0xc24f2a),_0x51a5f3=_0x4bb08f[_0x5742('0x6d')][_0x5742('0x43')][_0x5742('0x5e')](_0x43d01d),{id:_0x242127,part:_0xbf40ce}=tt(_0x43d01d);if(_0x51a5f3&&!_0x51a5f3['affectsData'])return null;if(_0x4ddc5c['ignoreResolvedComments']){const _0x278835=_0x5de858[_0x5742('0x20')](_0x242127);if(_0x278835&&_0x278835[_0x5742('0x55')])return null;}return{'group':_0x5742('0x5c'),'name':_0xbf40ce?_0x242127+':'+_0xbf40ce:_0x242127};}}),_0x4bb08f[_0x5742('0x52')][_0x5742('0x30')](_0x5742('0x4f'))[_0x5742('0x68')]({'view':{'name':_0x5742('0x5c'),'attributes':{'id':/^\w/}},'model':(_0x31d2a7,{writer:_0x392dae})=>_0x392dae['createElement'](_0x5742('0xb'),{'data-name':'comment:'+_0x31d2a7[_0x5742('0x6f')]('id')})}),_0x4bb08f['conversion'][_0x5742('0x30')](_0x5742('0x4f'))['dataToMarker']({'view':_0x5742('0x5c')});}['_handleMarkerAddAndRemove'](){const _0x13965d=this[_0x5742('0x15')],_0x599fb9=_0x13965d[_0x5742('0x64')][_0x5742('0x5e')](_0xc24f2a),_0x2bd922=new Set(),_0x5791bd=new Set();_0x13965d[_0x5742('0x6d')][_0x5742('0xf')][_0x5742('0x4e')](_0x1ee16c=>{let _0xb32992=!0x1;for(const {name:_0xa09b,data:_0x1629a5}of _0x13965d['model'][_0x5742('0xf')][_0x5742('0x22')][_0x5742('0x35')]()){const {group:_0x2e6b6e,id:_0xe3bcc2}=tt(_0xa09b);let _0x48c505=_0x1629a5[_0x5742('0x3c')];if(_0x5742('0x5c')!==_0x2e6b6e||!_0x48c505)continue;const _0x4d053d=_0x5742('0xa')===_0x48c505[_0x5742('0x26')][_0x5742('0x48')];_0x4d053d||(_0x48c505=ot(_0x48c505,_0x13965d[_0x5742('0x6d')]),!_0x48c505||_0x48c505[_0x5742('0x21')]||!_0x1629a5[_0x5742('0x3c')]||_0x48c505[_0x5742('0x47')](_0x1629a5[_0x5742('0x3c')]))?_0x13965d[_0x5742('0x6d')]['hasContent'](_0x48c505)&&!_0x4d053d?this['isThreadsLoadingPaused']?_0x2bd922[_0x5742('0x61')](_0xa09b):this[_0x5742('0x44')](_0xa09b,_0xe3bcc2):(_0x5791bd['add'](_0xa09b),_0x2bd922['delete'](_0xa09b),_0x1ee16c[_0x5742('0x1e')](_0xa09b),_0xb32992=!0x0):(_0x1ee16c[_0x5742('0x3')](_0xa09b,{'range':_0x48c505}),_0xb32992=!0x0);}return _0xb32992;}),this['on'](_0x5742('0x2c'),(_0x530895,_0x259a05,_0x5ab252)=>{if(!_0x5ab252&&_0x2bd922['size'])for(const _0x3ff9c2 of _0x2bd922){const {id:_0x20ccc3}=tt(_0x3ff9c2);_0x2bd922[_0x5742('0x27')](_0x3ff9c2),_0x13965d[_0x5742('0x6d')][_0x5742('0x43')]['get'](_0x3ff9c2)&&this['_handleThreadMarker'](_0x3ff9c2,_0x20ccc3);}}),this[_0x5742('0x6a')](_0x13965d[_0x5742('0x6d')][_0x5742('0xf')],_0x5742('0x41'),(_0x3d4366,_0x8e76be)=>{for(const {name:_0x552ed9,data:{newRange:_0x1dddfc}}of _0x13965d['model']['document'][_0x5742('0x22')][_0x5742('0x35')]()){const {group:_0x326943,id:_0xa91cc5}=tt(_0x552ed9);if(_0x5742('0x5c')!==_0x326943)continue;const _0x10a28e=_0x599fb9[_0x5742('0x20')](_0xa91cc5),_0x3abca3=this[_0x5742('0x3f')](_0xa91cc5);_0x10a28e&&(_0x10a28e['_hasTargetInContent']||_0x13965d[_0x5742('0x1d')][_0x5742('0x1')]['once']('render',()=>{const _0xd7d05c=_0x13965d['plugins'][_0x5742('0x5e')](_0x2c8dc8),_0x3f508c=_0x599fb9[_0x5742('0x46')][_0x5742('0x5e')](_0x10a28e)['view'];_0xd7d05c[_0x5742('0x70')](_0x3f508c)[_0x5742('0x5a')]();},{'priority':_0x5742('0x25')}),_0x10a28e[_0x5742('0x31')]=_0x3abca3||!!_0x1dddfc),_0x1dddfc||(_0x5791bd[_0x5742('0x61')](_0x552ed9),_0x2bd922[_0x5742('0x27')](_0x552ed9),this[_0x5742('0x5')][_0x5742('0x40')](_0xa91cc5)&&this[_0x5742('0x5')][_0x5742('0x5e')](_0xa91cc5)[_0x5742('0x27')](_0x552ed9));}if(_0x8e76be[_0x5742('0x58')])for(const _0x5a4c71 of _0x5791bd){const {id:_0x1908c0}=tt(_0x5a4c71),_0x22f476=_0x599fb9['getCommentThread'](_0x1908c0),_0xbeee66=this['hasMarkerForId'](_0x1908c0);_0x2bd922[_0x5742('0x27')](_0x5a4c71),!_0x22f476||_0xbeee66||_0x22f476[_0x5742('0x55')]||this[_0x5742('0x6')]===_0x1908c0||(this[_0x5742('0x5f')]['add'](_0x22f476),_0x22f476[_0x5742('0x51')]());}_0x5791bd[_0x5742('0x24')]();});}[_0x5742('0xd')](_0x2837ad){const _0x17e900=this[_0x5742('0x15')],_0x136046=this[_0x5742('0x17')](_0x2837ad);return _0x4867ab(_0x17e900[_0x5742('0x1d')],_0x136046);}[_0x5742('0x12')](_0x4a2289){const _0xfb9c79=this[_0x5742('0x17')](_0x4a2289);let _0x4683d7='',_0x5811ed=!0x1;for(const _0x453c37 of _0xfb9c79){const _0x59626c=_0x453c37['getRange']();for(const _0x14498d of Array[_0x5742('0x62')](_0x59626c[_0x5742('0x4c')]()))_0x14498d['is'](_0x5742('0x32'))?(_0x4683d7&&_0x5811ed&&(_0x4683d7+='\x20',_0x5811ed=!0x1),_0x4683d7+=_0x14498d[_0x5742('0x5d')]):_0x5811ed=!0x0;_0x5811ed=!0x0;}return _0x4683d7[_0x5742('0x4')](0x0,0x96);}[_0x5742('0x60')](_0xf474a5,_0x6925b3){const _0x495dd5=this[_0x5742('0x15')],_0x27dd16=_0x495dd5[_0x5742('0x64')]['get'](_0xc24f2a);let _0x2c8818=_0x27dd16[_0x5742('0x20')](_0x6925b3);if(this[_0x5742('0x5')][_0x5742('0x40')](_0x6925b3)){const _0x24395d=this[_0x5742('0x5')][_0x5742('0x5e')](_0x6925b3);_0x24395d['has'](_0xf474a5)||_0x24395d[_0x5742('0x61')](_0xf474a5);}const _0x424f46=_0x495dd5[_0x5742('0xc')][_0x5742('0x5e')](_0x5742('0x10')),_0x548d4b=_0x495dd5[_0x5742('0x64')][_0x5742('0x5e')](_0x5b12fe);if(_0x2c8818&&_0x2c8818[_0x5742('0x55')]&&this['_autoResolvedThreads'][_0x5742('0x40')](_0x2c8818)&&(this[_0x5742('0x5f')][_0x5742('0x27')](_0x2c8818),_0x2c8818[_0x5742('0x23')]()),this[_0x5742('0x5')]['has'](_0x6925b3))return _0x2c8818;return this[_0x5742('0x5')][_0x5742('0x1f')](_0x6925b3,new Set([_0xf474a5])),(!this['getAllMarkersForId'](_0x6925b3)[0x0][_0x5742('0x16')]?_0x495dd5['editing'][_0x5742('0x1')]['once']('render',()=>{const _0x118a80=_0x495dd5[_0x5742('0x64')]['get'](_0x2c8dc8);_0x2c8818=_0x27dd16[_0x5742('0x1b')]({'channelId':_0x424f46,'threadId':_0x6925b3,'target':()=>this['_getTargetForId'](_0x6925b3),'context':{'type':_0x5742('0x2d'),'value':this['_getTextContext'](_0x6925b3)}});const _0x2937d6=_0x27dd16['_threadToController'][_0x5742('0x5e')](_0x2c8818)[_0x5742('0x1')],_0x13fb5a=_0x118a80['getByInnerView'](_0x2937d6);_0x13fb5a&&_0x548d4b[_0x5742('0x11')](_0x13fb5a);},{'priority':'low'}):_0x27dd16[_0x5742('0x3b')]({'channelId':_0x424f46,'threadId':_0x6925b3})[_0x5742('0x33')](_0x2f24c1=>{if(_0x5742('0x2e')!==_0x495dd5[_0x5742('0x4b')]){if(_0x2c8818=_0x2f24c1,_0x2c8818){const _0x30626b=_0x2c8818[_0x5742('0x2')](()=>this[_0x5742('0xd')](_0x6925b3));_0x548d4b[_0x5742('0x11')](_0x30626b),_0x2c8818['isResolved']&&this['_reconvertMarkers'](_0x6925b3);}else{const _0x4040b7=this['getAllMarkersForId'](_0x6925b3);_0x495dd5[_0x5742('0x6d')][_0x5742('0x41')](_0x1d4098=>{for(const _0x25afb6 of _0x4040b7)_0x1d4098['removeMarker'](_0x25afb6);});}}}),_0x2c8818);}[_0x5742('0x44')](_0x2a1862,_0x5708ec){const _0x3d3d01=this[_0x5742('0x60')](_0x2a1862,_0x5708ec);_0x3d3d01&&!_0x3d3d01['context']&&_0x3d3d01[_0x5742('0x6b')]({'type':'text','value':this[_0x5742('0x12')](_0x5708ec)});}}function Z(_0x3afbfc,_0x20a070){return _0x20a070?_0x3afbfc+':'+_0x20a070:_0x3afbfc;}function tt(_0x269222){const _0x157560=_0x269222[_0x5742('0x4d')](':');return{'group':_0x157560[0x0],'id':_0x157560[0x1],'part':_0x157560[0x2]};}function ot(_0x526ea2,_0x31a4e2){const _0x91ebe2=_0x31a4e2[_0x5742('0x14')],_0x28a340=_0x31a4e2[_0x5742('0x4a')](_0x526ea2['start']);for(const _0xa48122 of _0x526ea2['getWalker']()){const {type:_0x1bfe11,item:_0xf5e8b8,nextPosition:_0x595800}=_0xa48122;if(_0x5742('0x2d')===_0x1bfe11||_0x91ebe2[_0x5742('0x3a')](_0xf5e8b8)){const _0xb90071=_0x31a4e2[_0x5742('0x0')](_0xf5e8b8);_0x28a340[_0x5742('0x21')]&&(_0x28a340[_0x5742('0x1c')]=_0xb90071),_0x28a340['end']=_0x595800;}}return _0x28a340;}
23
+ const _0x38f9=['markerToData','_removedThread','consumable','from','map','switchReadOnly','then','enqueueChange','pluginName','removeCommentThread','markerToHighlight','hasMarkerForId','scrollToThreadMarker','upcast','rootName','getByInnerView','config','destroyed','length','state','addMarker:','render','dataToMarker','isEqual','_threadToController','managedUsingOperations','editing','plugins','get','getChangedMarkers','_hasTargetInContent','reopen','for','activeMarker','getAllMarkersForId','_reconvertMarkers','createRange','hasContent','ck-comment-marker','$graveyard','view','attachTo','elementToElement','consume','hasCommentThread','model','destroy','_getTargetForId','text','refreshVisibility','setContext','focus','fetchCommentThread','isResolved','openNewCommentThread','substring','ck-comment-marker--active','_attachMarkerToThread','isThreadsLoadingPaused','requires','editor','newRange','getAttribute','_autoResolvedThreads','low','once','conversion','getWalker','_attachResolvedThread','removeMarker','end','add','commands','createElement','delete','CommentsEditing','updateMarker','ignoreResolvedComments','editingDowncast','reconvertMarker','resolveCommentThread','getItems','_threads','_attachedThreads','has','_handleThreadMarker','registerPostFixer','createPositionBefore','listenTo','markerName','comment','change:isThreadsLoadingPaused','data','item','getCommentThread','context','registerAnnotation','collaboration.channelId','isCollapsed','push','hasDomSelection','filter','ready','_getTextContext','set','start','getCommentThreads','change:isReadOnly','differ','high','markers','schema','document','clear','_handleMarkerAddAndRemove','split','change','comment:','_detachCommentThread','_initializeMarkerConverters','$marker'];(function(_0x2f5fd3,_0x38f943){const _0x52555=function(_0x455994){while(--_0x455994){_0x2f5fd3['push'](_0x2f5fd3['shift']());}};_0x52555(++_0x38f943);}(_0x38f9,0x12b));const _0x5255=function(_0x2f5fd3,_0x38f943){_0x2f5fd3=_0x2f5fd3-0x0;let _0x52555=_0x38f9[_0x2f5fd3];return _0x52555;};import{Plugin as _0x4039b7}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3ba6d0}from'ckeditor5/src/utils';import _0x35c557 from'./commentsrepository';import _0x9c2f61 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x3025b0}from'ckeditor5-collaboration/src/collaboration-core';import _0x12a9d2 from'../annotations/editorannotations';import _0x562fa9 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x40a4ac from'./integrations/importword';import _0x3bba52 from'../annotations/annotations';export default class r extends _0x4039b7{static get[_0x5255('0x2')](){return[_0x35c557,_0x12a9d2,_0x562fa9,_0x40a4ac];}static get[_0x5255('0x48')](){return _0x5255('0x12');}constructor(_0x271185){super(_0x271185),this[_0x5255('0x41')]=null,this[_0x5255('0x6')]=new Set(),this[_0x5255('0x2f')]('isThreadsLoadingPaused',!0x0),_0x271185[_0x5255('0x23')][_0x5255('0x8')](_0x5255('0x2d'),()=>this[_0x5255('0x1')]=!0x1),this[_0x5255('0x2f')]('activeMarker',null),this['on']('change:activeMarker',(_0x25ac45,_0x19b705,_0x4a987c,_0x573e05)=>{const _0x5db7fa=_0x4a987c?tt(_0x4a987c)['id']:null;if(_0x271185[_0x5255('0x6d')][_0x5255('0x3b')](()=>{if(_0x5db7fa){const _0x4330f9=this[_0x5255('0x62')](_0x5db7fa);for(const _0x44a29e of _0x4330f9)_0x271185[_0x5255('0x5a')][_0x5255('0x16')](_0x44a29e);}if(_0x573e05){const {id:_0x1c5478}=tt(_0x573e05),_0x8ef9e5=this[_0x5255('0x62')](_0x1c5478);for(const _0x4fb562 of _0x8ef9e5)_0x271185[_0x5255('0x5a')]['reconvertMarker'](_0x4fb562);}}),_0x5db7fa){const _0x3a9f46=_0x271185[_0x5255('0x5b')][_0x5255('0x5c')](_0x35c557)[_0x5255('0x25')](_0x5db7fa);_0x3a9f46&&_0x3a9f46['isResolved']&&this[_0x5255('0x4c')](_0x5db7fa);}}),this['_attachedThreads']=new Map();}['init'](){const _0x2e2bd8=this['editor'],_0x5e1fa0=_0x2e2bd8[_0x5255('0x5b')][_0x5255('0x5c')](_0x35c557),_0x1fade3=_0x2e2bd8[_0x5255('0x50')][_0x5255('0x5c')](_0x5255('0x28'));_0x2e2bd8[_0x5255('0xf')][_0x5255('0xe')]('addCommentThread',new _0x9c2f61(_0x2e2bd8)),this[_0x5255('0x1f')](_0x2e2bd8,_0x5255('0x32'),(_0xc45b39,_0x1b5ce1,_0x187c47)=>{_0x5e1fa0[_0x5255('0x45')](_0x187c47,_0x2e2bd8[_0x5255('0x50')][_0x5255('0x5c')](_0x5255('0x28')));}),this[_0x5255('0x1f')](_0x5e1fa0,Z('addCommentThread',_0x1fade3),(_0x5b4036,{threadId:_0x7d6134})=>{const _0x542b96=this[_0x5255('0x3')][_0x5255('0x5b')]['get'](_0x35c557)[_0x5255('0x25')](_0x7d6134);_0x542b96&&_0x542b96[_0x5255('0x75')]&&this[_0x5255('0xb')](_0x7d6134);}),this[_0x5255('0x1f')](_0x5e1fa0,Z(_0x5255('0x49'),_0x1fade3),(_0x323728,{threadId:_0x581e81})=>{_0x2e2bd8[_0x5255('0x6d')]['enqueueChange']({'isUndoable':!0x1},_0x507c1e=>{const _0x2e67b7=this[_0x5255('0x62')](_0x581e81);this[_0x5255('0x1a')][_0x5255('0x11')](_0x581e81),this[_0x5255('0x41')]=_0x581e81;for(const _0x2ef8b6 of _0x2e67b7)_0x507c1e[_0x5255('0xc')](_0x2ef8b6);}),this[_0x5255('0x41')]=null;},{'priority':_0x5255('0x34')}),this[_0x5255('0x1f')](_0x5e1fa0,Z(_0x5255('0x17'),_0x1fade3),(_0x1e03fa,{threadId:_0x18f705})=>{this[_0x5255('0xb')](_0x18f705),this['_reconvertMarkers'](_0x18f705),this[_0x5255('0x3')][_0x5255('0x5a')]['view'][_0x5255('0x2b')]&&this['editor'][_0x5255('0x5a')][_0x5255('0x68')][_0x5255('0x73')]();},{'priority':_0x5255('0x7')}),this[_0x5255('0x1f')](_0x5e1fa0,Z('reopenCommentThread',_0x1fade3),(_0x121855,{threadId:_0x6945e7})=>{this[_0x5255('0x63')](_0x6945e7);},{'priority':_0x5255('0x7')}),this[_0x5255('0x1f')](_0x5e1fa0,Z('addComment',_0x1fade3),(_0x505457,{threadId:_0x3154cd,isFromAdapter:_0x12c498})=>{const _0x3c3eb2=this[_0x5255('0x62')](_0x3154cd);if(_0x12c498||0x0==_0x3c3eb2['length']||!_0x5e1fa0[_0x5255('0x6c')](_0x3154cd))return;0x1===_0x5e1fa0['getCommentThread'](_0x3154cd)[_0x5255('0x52')]&&_0x2e2bd8[_0x5255('0x6d')][_0x5255('0x47')]({'isUndoable':!0x1},_0x1eff7e=>{for(const _0x133ff3 of _0x3c3eb2)_0x1eff7e[_0x5255('0x13')](_0x133ff3,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5255('0x7')}),this[_0x5255('0x3e')](),this[_0x5255('0x39')]();}[_0x5255('0x6e')](){const _0x21028d=this[_0x5255('0x3')][_0x5255('0x5b')][_0x5255('0x5c')](_0x35c557),_0x50643a=this[_0x5255('0x3')][_0x5255('0x50')][_0x5255('0x5c')]('collaboration.channelId');for(const _0x2e551d of _0x21028d[_0x5255('0x31')]({'channelId':_0x50643a}))_0x21028d[_0x5255('0x3d')](_0x2e551d['id']),_0x21028d[_0x5255('0x19')][_0x5255('0x11')](_0x2e551d['id']);super[_0x5255('0x6e')]();}[_0x5255('0x4b')](_0x50d7d0){return this[_0x5255('0x62')](_0x50d7d0)['length']>0x0;}[_0x5255('0x62')](_0x56efe6){return Array[_0x5255('0x43')](this['_attachedThreads']['get'](_0x56efe6)||[])[_0x5255('0x44')](_0xd73ea9=>this['editor']['model'][_0x5255('0x35')][_0x5255('0x5c')](_0xd73ea9))[_0x5255('0x2c')](_0x1fafbb=>_0x1fafbb);}['scrollToThreadMarker'](_0x541c14){const _0x52e47e=this[_0x5255('0x6f')](_0x541c14);_0x52e47e&&setTimeout(()=>{this[_0x5255('0x61')]&&tt(this[_0x5255('0x61')])['id']===_0x541c14&&_0x3ba6d0({'target':_0x52e47e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x4c9c5e){this[_0x5255('0x3')][_0x5255('0x6d')]['change'](()=>{for(const _0x4283c4 of this['getAllMarkersForId'](_0x4c9c5e))this[_0x5255('0x3')][_0x5255('0x5a')]['reconvertMarker'](_0x4283c4);});}['_attachResolvedThread'](_0x9b414f){const _0x563f37=this[_0x5255('0x3')]['plugins']['get'](_0x35c557),_0x6b0bcc=this[_0x5255('0x3')]['plugins'][_0x5255('0x5c')](_0x12a9d2),_0x3a18bf=_0x563f37['getCommentThread'](_0x9b414f);if(!this[_0x5255('0x1a')][_0x5255('0x1b')](_0x9b414f)){const _0x3d0cd9=_0x3a18bf['attachTo'](()=>this['_getTargetForId'](_0x3a18bf['id']));_0x6b0bcc[_0x5255('0x27')](_0x3d0cd9),this[_0x5255('0x1a')][_0x5255('0x2f')](_0x9b414f,new Set()),_0x3a18bf[_0x5255('0x5e')]=!0x1;}}['_initializeMarkerConverters'](){const _0x1c69d7=this[_0x5255('0x3')];_0x1c69d7[_0x5255('0x9')][_0x5255('0x60')](_0x5255('0x15'))[_0x5255('0x4a')]({'model':_0x5255('0x21'),'view':(_0x51c1df,_0x58e8fd)=>{const {id:_0x34749b}=tt(_0x51c1df[_0x5255('0x20')]),_0x18e12c=_0x1c69d7['plugins'][_0x5255('0x5c')](_0x35c557)[_0x5255('0x25')](_0x34749b),_0x41c835=this[_0x5255('0x61')]&&tt(this[_0x5255('0x61')])['id']===_0x34749b;if(_0x18e12c&&_0x18e12c[_0x5255('0x75')]&&!_0x41c835&&_0x51c1df['item'])return _0x58e8fd[_0x5255('0x42')]['consume'](_0x51c1df[_0x5255('0x24')],_0x5255('0x54')+_0x51c1df['markerName']),_0x58e8fd[_0x5255('0x42')][_0x5255('0x6b')](_0x51c1df[_0x5255('0x24')],'removeMarker:'+_0x51c1df['markerName']),{'classes':[]};const _0x4ceb61=[_0x5255('0x66')];return _0x41c835&&_0x4ceb61[_0x5255('0x2a')](_0x5255('0x78')),{'classes':_0x4ceb61,'attributes':{'data-comment':_0x34749b}};}}),_0x1c69d7[_0x5255('0x9')]['for']('dataDowncast')[_0x5255('0x40')]({'model':_0x5255('0x21'),'view':(_0x13fc4e,{options:_0x2952fb})=>{const _0x3b07d0=_0x1c69d7[_0x5255('0x5b')][_0x5255('0x5c')](_0x35c557),_0xd47750=_0x1c69d7['model'][_0x5255('0x35')]['get'](_0x13fc4e),{id:_0x32a9fd,part:_0x133d00}=tt(_0x13fc4e);if(_0xd47750&&!_0xd47750['affectsData'])return null;if(_0x2952fb[_0x5255('0x14')]){const _0xc2ce63=_0x3b07d0[_0x5255('0x25')](_0x32a9fd);if(_0xc2ce63&&_0xc2ce63['isResolved'])return null;}return{'group':_0x5255('0x21'),'name':_0x133d00?_0x32a9fd+':'+_0x133d00:_0x32a9fd};}}),_0x1c69d7[_0x5255('0x9')][_0x5255('0x60')](_0x5255('0x4d'))[_0x5255('0x6a')]({'view':{'name':_0x5255('0x21'),'attributes':{'id':/^\w/}},'model':(_0x39c005,{writer:_0x49541d})=>_0x49541d[_0x5255('0x10')](_0x5255('0x3f'),{'data-name':_0x5255('0x3c')+_0x39c005[_0x5255('0x5')]('id')})}),_0x1c69d7['conversion'][_0x5255('0x60')](_0x5255('0x4d'))[_0x5255('0x56')]({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x364534=this[_0x5255('0x3')],_0x28513c=_0x364534['plugins'][_0x5255('0x5c')](_0x35c557),_0x525312=new Set(),_0x32928b=new Set();_0x364534['model'][_0x5255('0x37')][_0x5255('0x1d')](_0x57e59d=>{let _0xf1d419=!0x1;for(const {name:_0xded7ee,data:_0x49c337}of _0x364534[_0x5255('0x6d')][_0x5255('0x37')][_0x5255('0x33')][_0x5255('0x5d')]()){const {group:_0x2d2ad6,id:_0x217f29}=tt(_0xded7ee);let _0x112703=_0x49c337['newRange'];if(_0x5255('0x21')!==_0x2d2ad6||!_0x112703)continue;const _0x1e4d4d=_0x5255('0x67')===_0x112703['root'][_0x5255('0x4e')];_0x1e4d4d||(_0x112703=ot(_0x112703,_0x364534[_0x5255('0x6d')]),!_0x112703||_0x112703[_0x5255('0x29')]||!_0x49c337[_0x5255('0x4')]||_0x112703[_0x5255('0x57')](_0x49c337[_0x5255('0x4')]))?_0x364534[_0x5255('0x6d')][_0x5255('0x65')](_0x112703)&&!_0x1e4d4d?this['isThreadsLoadingPaused']?_0x525312[_0x5255('0xe')](_0xded7ee):this['_handleThreadMarker'](_0xded7ee,_0x217f29):(_0x32928b[_0x5255('0xe')](_0xded7ee),_0x525312[_0x5255('0x11')](_0xded7ee),_0x57e59d[_0x5255('0xc')](_0xded7ee),_0xf1d419=!0x0):(_0x57e59d[_0x5255('0x13')](_0xded7ee,{'range':_0x112703}),_0xf1d419=!0x0);}return _0xf1d419;}),this['on'](_0x5255('0x22'),(_0x11d73a,_0xfa0561,_0x5e2ad0)=>{if(!_0x5e2ad0&&_0x525312['size'])for(const _0x58e510 of _0x525312){const {id:_0x34c013}=tt(_0x58e510);_0x525312['delete'](_0x58e510),_0x364534['model'][_0x5255('0x35')]['get'](_0x58e510)&&this[_0x5255('0x1c')](_0x58e510,_0x34c013);}}),this[_0x5255('0x1f')](_0x364534[_0x5255('0x6d')]['document'],'change',(_0x17a106,_0x1992f0)=>{for(const {name:_0x3efcf9,data:{newRange:_0x35d186}}of _0x364534[_0x5255('0x6d')][_0x5255('0x37')][_0x5255('0x33')][_0x5255('0x5d')]()){const {group:_0x283cff,id:_0x12aa80}=tt(_0x3efcf9);if(_0x5255('0x21')!==_0x283cff)continue;const _0x5d3bf0=_0x28513c[_0x5255('0x25')](_0x12aa80),_0x1aa8f0=this[_0x5255('0x4b')](_0x12aa80);_0x5d3bf0&&(_0x5d3bf0[_0x5255('0x5e')]||_0x364534[_0x5255('0x5a')]['view'][_0x5255('0x8')](_0x5255('0x55'),()=>{const _0x32dd59=_0x364534[_0x5255('0x5b')][_0x5255('0x5c')](_0x3bba52),_0x5ddaf2=_0x28513c[_0x5255('0x58')][_0x5255('0x5c')](_0x5d3bf0)['view'];_0x32dd59['getByInnerView'](_0x5ddaf2)[_0x5255('0x71')]();},{'priority':'low'}),_0x5d3bf0[_0x5255('0x5e')]=_0x1aa8f0||!!_0x35d186),_0x35d186||(_0x32928b['add'](_0x3efcf9),_0x525312[_0x5255('0x11')](_0x3efcf9),this[_0x5255('0x1a')][_0x5255('0x1b')](_0x12aa80)&&this['_attachedThreads'][_0x5255('0x5c')](_0x12aa80)[_0x5255('0x11')](_0x3efcf9));}if(_0x1992f0['isLocal'])for(const _0x513040 of _0x32928b){const {id:_0x27fea7}=tt(_0x513040),_0x1ea527=_0x28513c[_0x5255('0x25')](_0x27fea7),_0x51d1f3=this[_0x5255('0x4b')](_0x27fea7);_0x525312['delete'](_0x513040),!_0x1ea527||_0x51d1f3||_0x1ea527['isResolved']||this[_0x5255('0x41')]===_0x27fea7||(this[_0x5255('0x6')][_0x5255('0xe')](_0x1ea527),_0x1ea527['resolve']());}_0x32928b[_0x5255('0x38')]();});}[_0x5255('0x6f')](_0x4b7b52){const _0x3a0e05=this[_0x5255('0x3')],_0x1f9a81=this[_0x5255('0x62')](_0x4b7b52);return _0x3025b0(_0x3a0e05[_0x5255('0x5a')],_0x1f9a81);}[_0x5255('0x2e')](_0x16aaab){const _0x1c6ba9=this[_0x5255('0x62')](_0x16aaab);let _0x2ef625='',_0x171b31=!0x1;for(const _0x342edf of _0x1c6ba9){const _0x4e12d2=_0x342edf['getRange']();for(const _0x213273 of Array[_0x5255('0x43')](_0x4e12d2[_0x5255('0x18')]()))_0x213273['is']('$textProxy')?(_0x2ef625&&_0x171b31&&(_0x2ef625+='\x20',_0x171b31=!0x1),_0x2ef625+=_0x213273[_0x5255('0x23')]):_0x171b31=!0x0;_0x171b31=!0x0;}return _0x2ef625[_0x5255('0x77')](0x0,0x96);}['_attachMarkerToThread'](_0x75074b,_0x48731b){const _0x5a2afc=this[_0x5255('0x3')],_0x42eb11=_0x5a2afc[_0x5255('0x5b')][_0x5255('0x5c')](_0x35c557);let _0xbfad0=_0x42eb11[_0x5255('0x25')](_0x48731b);if(this[_0x5255('0x1a')]['has'](_0x48731b)){const _0x369f74=this['_attachedThreads'][_0x5255('0x5c')](_0x48731b);_0x369f74['has'](_0x75074b)||_0x369f74[_0x5255('0xe')](_0x75074b);}const _0x1afeda=_0x5a2afc['config'][_0x5255('0x5c')](_0x5255('0x28')),_0x7b476=_0x5a2afc['plugins'][_0x5255('0x5c')](_0x12a9d2);if(_0xbfad0&&_0xbfad0[_0x5255('0x75')]&&this[_0x5255('0x6')][_0x5255('0x1b')](_0xbfad0)&&(this['_autoResolvedThreads'][_0x5255('0x11')](_0xbfad0),_0xbfad0[_0x5255('0x5f')]()),this['_attachedThreads']['has'](_0x48731b))return _0xbfad0;return this[_0x5255('0x1a')][_0x5255('0x2f')](_0x48731b,new Set([_0x75074b])),(!this['getAllMarkersForId'](_0x48731b)[0x0][_0x5255('0x59')]?_0x5a2afc[_0x5255('0x5a')]['view']['once'](_0x5255('0x55'),()=>{const _0x123a9f=_0x5a2afc[_0x5255('0x5b')][_0x5255('0x5c')](_0x3bba52);_0xbfad0=_0x42eb11[_0x5255('0x76')]({'channelId':_0x1afeda,'threadId':_0x48731b,'target':()=>this[_0x5255('0x6f')](_0x48731b),'context':{'type':'text','value':this[_0x5255('0x2e')](_0x48731b)}});const _0x158fbf=_0x42eb11[_0x5255('0x58')][_0x5255('0x5c')](_0xbfad0)[_0x5255('0x68')],_0x3ee2bc=_0x123a9f[_0x5255('0x4f')](_0x158fbf);_0x3ee2bc&&_0x7b476[_0x5255('0x27')](_0x3ee2bc);},{'priority':'low'}):_0x42eb11[_0x5255('0x74')]({'channelId':_0x1afeda,'threadId':_0x48731b})[_0x5255('0x46')](_0x176fdb=>{if(_0x5255('0x51')!==_0x5a2afc[_0x5255('0x53')]){if(_0xbfad0=_0x176fdb,_0xbfad0){const _0x125a17=_0xbfad0[_0x5255('0x69')](()=>this[_0x5255('0x6f')](_0x48731b));_0x7b476[_0x5255('0x27')](_0x125a17),_0xbfad0['isResolved']&&this[_0x5255('0x63')](_0x48731b);}else{const _0x346b1e=this[_0x5255('0x62')](_0x48731b);_0x5a2afc[_0x5255('0x6d')][_0x5255('0x3b')](_0x26a34e=>{for(const _0x482c51 of _0x346b1e)_0x26a34e['removeMarker'](_0x482c51);});}}}),_0xbfad0);}[_0x5255('0x1c')](_0x5732c6,_0x28772f){const _0x2f16dd=this[_0x5255('0x0')](_0x5732c6,_0x28772f);_0x2f16dd&&!_0x2f16dd[_0x5255('0x26')]&&_0x2f16dd[_0x5255('0x72')]({'type':_0x5255('0x70'),'value':this[_0x5255('0x2e')](_0x28772f)});}}function Z(_0x52cbc7,_0xd920c1){return _0xd920c1?_0x52cbc7+':'+_0xd920c1:_0x52cbc7;}function tt(_0x409b03){const _0x43d1c3=_0x409b03[_0x5255('0x3a')](':');return{'group':_0x43d1c3[0x0],'id':_0x43d1c3[0x1],'part':_0x43d1c3[0x2]};}function ot(_0x2dc327,_0x1153a9){const _0x18f6a4=_0x1153a9[_0x5255('0x36')],_0x1389ca=_0x1153a9[_0x5255('0x64')](_0x2dc327[_0x5255('0x30')]);for(const _0x487a66 of _0x2dc327[_0x5255('0xa')]()){const {type:_0x294f70,item:_0x11e48b,nextPosition:_0x7179a0}=_0x487a66;if('text'===_0x294f70||_0x18f6a4['isObject'](_0x11e48b)){const _0x6d6162=_0x1153a9[_0x5255('0x1e')](_0x11e48b);_0x1389ca['isCollapsed']&&(_0x1389ca[_0x5255('0x30')]=_0x6d6162),_0x1389ca[_0x5255('0xd')]=_0x7179a0;}}return _0x1389ca;}