@ckeditor/ckeditor5-comments 0.0.0-nightly-20231206.0 → 0.0.0-nightly-20231208.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 (49) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/build/comments.js +1 -1
  3. package/build/translations/gl.js +1 -1
  4. package/build/translations/sr-latn.js +1 -1
  5. package/build/translations/ug.js +1 -1
  6. package/lang/translations/gl.po +2 -2
  7. package/lang/translations/sr-latn.po +3 -3
  8. package/lang/translations/ug.po +10 -10
  9. package/package.json +3 -3
  10. package/src/annotations/annotation.js +1 -1
  11. package/src/annotations/annotationcollection.js +1 -1
  12. package/src/annotations/annotations.js +1 -1
  13. package/src/annotations/annotationsuis.js +1 -1
  14. package/src/annotations/editorannotations.js +1 -1
  15. package/src/annotations/inlineannotations.js +1 -1
  16. package/src/annotations/narrowsidebar.js +1 -1
  17. package/src/annotations/sidebar.js +1 -1
  18. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  19. package/src/annotations/view/annotationview.js +1 -1
  20. package/src/annotations/view/sidebaritemview.js +1 -1
  21. package/src/annotations/view/sidebarview.js +1 -1
  22. package/src/annotations/widesidebar.js +1 -1
  23. package/src/comments/addcommentthreadcommand.js +1 -1
  24. package/src/comments/commentsarchive.js +1 -1
  25. package/src/comments/commentsarchiveui.js +1 -1
  26. package/src/comments/commentsediting.js +1 -1
  27. package/src/comments/commentsrepository.js +1 -1
  28. package/src/comments/commentsui.js +1 -1
  29. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  30. package/src/comments/integrations/importword.js +1 -1
  31. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  32. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  33. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  34. package/src/comments/ui/commentthreadcontroller.js +1 -1
  35. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  36. package/src/comments/ui/view/basecommentview.js +1 -1
  37. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  38. package/src/comments/ui/view/commentcontentview.js +1 -1
  39. package/src/comments/ui/view/commentinputview.js +1 -1
  40. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  41. package/src/comments/ui/view/commentslistview.js +1 -1
  42. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  43. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  44. package/src/comments/ui/view/commentthreadview.js +1 -1
  45. package/src/comments/ui/view/commentview.js +1 -1
  46. package/src/comments.js +1 -1
  47. package/src/commentsonly.js +1 -1
  48. package/src/utils/common-translations.js +1 -1
  49. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc10b=['top','sidebar-attachtocontainer-missing-container','_destroySidebarItemView','init','remove','set','render','Sidebar','clear','_getItemBefore','element','bottom','_annotationToSidebarItemView','_alignBeforeItem','last','get','content','_annotations','minHeight','length','refresh','unbind','_alignToTargetRect','config','isAnimationDisabled','_targetTop','_getTargetTop','view','_recalculateBuffer','change:_lastItem','_alignForBottomChange','getIndex','targetRect','_detachFromContainer','_getItemAfter','_setItemTop','stopListening','_recalculate','target','_attachToContainer','define','delete','change:bottom','_sidebarItemViewToAnnotation','add','setContainer','locale','getSidebarItemView','_alignForTopChange','_activeAnnotation','list','bind','_updateLastItem','_lastItem','sidebar-setcontainer-invalid-element','_alignAfterItem','class','updateHeight','object','sidebar.container','destroy','push','change:top','height','_getMaxAvailableTop','context','pluginName','container','nodeType','listenTo','_createSidebarView','isActive','_spaceBetweenItems'];(function(_0x2b660e,_0xc10b51){const _0x57717e=function(_0xbe6b7){while(--_0xbe6b7){_0x2b660e['push'](_0x2b660e['shift']());}};_0x57717e(++_0xc10b51);}(_0xc10b,0x11a));const _0x5771=function(_0x2b660e,_0xc10b51){_0x2b660e=_0x2b660e-0x0;let _0x57717e=_0xc10b[_0x2b660e];return _0x57717e;};import{ContextPlugin as _0xb91ab7}from'ckeditor5/src/core';import{Rect as _0x3db3b1,CKEditorError as _0x2f8c2e}from'ckeditor5/src/utils';import _0xf98d0f from'./view/sidebarview';import _0x287734 from'./view/sidebaritemview';export default class z extends _0xb91ab7{static get[_0x5771('0x3')](){return _0x5771('0x11');}constructor(_0x34ee86){super(_0x34ee86),this[_0x5771('0xf')](_0x5771('0x3f'),void 0x0),this[_0x5771('0x25')]=this['_createSidebarView'](),this[_0x5771('0xf')]('container',null),this[_0x5771('0x9')]=0x19,this[_0x5771('0x35')]=new Map(),this[_0x5771('0x16')]=new Map(),this[_0x5771('0x2')][_0x5771('0x21')][_0x5771('0x32')]('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this[_0x5771('0x3b')]=null,this['_recalculateBuffer']=[];}[_0x5771('0xd')](){const _0x2b18d3=this[_0x5771('0x2')]['config'][_0x5771('0x19')](_0x5771('0x45'));_0x2b18d3&&this[_0x5771('0x37')](_0x2b18d3);}['setContainer'](_0x194422){if(!y(_0x194422))throw new _0x2f8c2e(_0x5771('0x40'));this[_0x5771('0x4')]=_0x194422;}[_0x5771('0x31')]({viewClass:_0x38b9be='',spaceBetweenItems:_0x3356c8=0x19}={}){if(!y(this[_0x5771('0x4')]))throw new _0x2f8c2e(_0x5771('0xb'),this);this['container']['appendChild'](this['view'][_0x5771('0x14')]),this[_0x5771('0x25')]['class']=_0x38b9be,this[_0x5771('0x9')]=_0x3356c8;}['rearrange']({removedAnnotation:_0x56134b,previousAnnotation:_0x44f13a,nextAnnotation:_0x1f9a83}){const _0x37a84a=this['getSidebarItemView'](_0x56134b);this['view'][_0x5771('0x3c')][_0x5771('0xe')](_0x37a84a),this[_0x5771('0xc')](_0x56134b),_0x44f13a&&this['_alignToTargetRect'](this[_0x5771('0x39')](_0x44f13a)),_0x1f9a83&&this[_0x5771('0x20')](this[_0x5771('0x39')](_0x1f9a83)),this[_0x5771('0x3e')]();}[_0x5771('0x1e')]({blurredAnnotation:_0x3a5f94,activatedAnnotation:_0x3b8e95,disableAnimationOnActivatedAnnotation:_0x2b6500}){if(this[_0x5771('0x3b')]=_0x3b8e95,_0x3a5f94){_0x3a5f94[_0x5771('0x8')]=!0x1;const _0xfbdeb1=this[_0x5771('0x39')](_0x3a5f94);_0xfbdeb1&&_0x2b6500&&(_0xfbdeb1['isAnimationDisabled']=!0x1);}if(_0x3b8e95){const _0x3975df=this[_0x5771('0x39')](_0x3b8e95);_0x3975df&&(_0x3b8e95['isActive']=!0x0,_0x2b6500&&(_0x3975df[_0x5771('0x22')]=!0x0,_0x3975df[_0x5771('0xa')]+=0x1),this[_0x5771('0x20')](_0x3975df));}}[_0x5771('0x2b')](_0x1de939){if(this[_0x5771('0x25')][_0x5771('0x14')][_0x5771('0xe')](),_0x1de939)for(const _0x530ecc of _0x1de939)this['_destroySidebarItemView'](_0x530ecc);this[_0x5771('0x25')][_0x5771('0x3c')][_0x5771('0x12')](),this['view'][_0x5771('0x42')]='',this[_0x5771('0x3f')]=null;}['addAnnotation'](_0x541bd7,_0x15485e){_0x15485e||(_0x15485e=_0x541bd7[_0x5771('0x25')]);const _0x1e879b=new _0x287734(this[_0x5771('0x2')][_0x5771('0x38')]);this[_0x5771('0x35')][_0x5771('0xf')](_0x1e879b,_0x541bd7),this[_0x5771('0x16')]['set'](_0x541bd7,_0x1e879b),_0x1e879b[_0x5771('0x1a')]['add'](_0x15485e),this[_0x5771('0x6')](_0x541bd7[_0x5771('0x25')],'change:targetRect',(_0x27e41a,_0x113754,_0x7ab1ca)=>{const _0x368c11=this['_getTargetTop'](_0x541bd7,_0x7ab1ca);_0x1e879b[_0x5771('0x23')]!=_0x368c11&&(_0x1e879b[_0x5771('0x23')]=_0x368c11,this[_0x5771('0x2d')](_0x1e879b,_0x368c11));}),this[_0x5771('0x6')](_0x1e879b,_0x5771('0x48'),()=>{this['_recalculate'](_0x1e879b,_0x5771('0xa'));}),this['listenTo'](_0x1e879b,_0x5771('0x34'),()=>{this[_0x5771('0x2f')](_0x1e879b,_0x5771('0x15'));}),this[_0x5771('0x20')](_0x1e879b);const _0x443961=this['_getItemBefore'](_0x1e879b);if(_0x443961)this[_0x5771('0x41')](_0x443961,_0x1e879b)||this[_0x5771('0x20')](_0x1e879b);else this[_0x5771('0x20')](_0x1e879b);return this['_updateLastItem'](),this['view'][_0x5771('0x3c')][_0x5771('0x36')](_0x1e879b),_0x1e879b;}['_alignForTopChange'](_0x582781){if(!_0x582781[_0x5771('0x1a')]['length'])return;const _0x59d782=this[_0x5771('0x13')](_0x582781);if(!_0x59d782)return;const _0x33f37b=this[_0x5771('0x35')]['get'](_0x59d782),_0x338d31=this['_activeAnnotation'];_0x338d31&&_0x338d31===_0x33f37b?this[_0x5771('0x41')](_0x59d782,_0x582781):this[_0x5771('0x17')](_0x582781,_0x59d782);}[_0x5771('0x28')](_0x11fe92){if(!_0x11fe92[_0x5771('0x1a')]['length'])return;const _0x233801=this[_0x5771('0x2c')](_0x11fe92);if(!_0x233801)return;const _0x4b05e5=this[_0x5771('0x35')][_0x5771('0x19')](_0x233801),_0x351f3c=this['context'][_0x5771('0x21')][_0x5771('0x19')]('sidebar.preventScrollOutOfView'),_0x42812f=this[_0x5771('0x3b')];_0x42812f&&_0x42812f===_0x4b05e5&&_0x351f3c?(this[_0x5771('0x17')](_0x233801,_0x11fe92),this[_0x5771('0x41')](_0x11fe92,_0x233801)):_0x42812f&&_0x42812f===_0x4b05e5?this[_0x5771('0x17')](_0x233801,_0x11fe92):this[_0x5771('0x41')](_0x11fe92,_0x233801);}[_0x5771('0x2f')](_0x4dd8da,_0x587b31){0x0===this[_0x5771('0x26')][_0x5771('0x1d')]&&setTimeout(()=>{for(const {sidebarItemView:_0x5b065d,changedProp:_0x164ebc}of this['_recalculateBuffer'])_0x5771('0xa')===_0x164ebc?this[_0x5771('0x3a')](_0x5b065d):this[_0x5771('0x28')](_0x5b065d);this[_0x5771('0x26')]=[];},0xa),this[_0x5771('0x26')][_0x5771('0x47')]({'sidebarItemView':_0x4dd8da,'changedProp':_0x587b31});}['getSidebarItemView'](_0x2ed590){return this[_0x5771('0x16')][_0x5771('0x19')](_0x2ed590);}['destroy'](){this[_0x5771('0x2e')](),this[_0x5771('0x25')][_0x5771('0x46')]();}['_destroySidebarItemView'](_0x459970){const _0x214892=this[_0x5771('0x39')](_0x459970);this['stopListening'](_0x214892),this['stopListening'](_0x459970[_0x5771('0x25')]),_0x214892[_0x5771('0x46')](),this[_0x5771('0x16')][_0x5771('0x33')](_0x459970),this[_0x5771('0x35')][_0x5771('0x33')](_0x214892);}[_0x5771('0x7')](){const _0x53a8c0=new _0xf98d0f(this[_0x5771('0x2')]['locale']);return _0x53a8c0[_0x5771('0x10')](),this['on'](_0x5771('0x27'),(_0x1d413c,_0x1419d0,_0x128000,_0x2bbbd9)=>{_0x2bbbd9&&_0x53a8c0[_0x5771('0x1f')](_0x5771('0x1c')),_0x128000?_0x53a8c0[_0x5771('0x3d')](_0x5771('0x1c'))['to'](_0x128000,_0x5771('0x15')):_0x53a8c0[_0x5771('0x1c')]=null;}),_0x53a8c0;}['_updateLastItem'](){var _0x2474cc;this[_0x5771('0x3f')]=(null===(_0x2474cc=this[_0x5771('0x1b')])||void 0x0===_0x2474cc?void 0x0:_0x2474cc[_0x5771('0x18')])?this['getSidebarItemView'](this[_0x5771('0x1b')][_0x5771('0x18')]):null;}['_getItemBefore'](_0x6eec13){var _0x22651;const _0x7b0999=this['_sidebarItemViewToAnnotation'][_0x5771('0x19')](_0x6eec13),_0xf87e98=_0x7b0999&&(null===(_0x22651=this[_0x5771('0x1b')])||void 0x0===_0x22651?void 0x0:_0x22651[_0x5771('0x19')](this['_annotations'][_0x5771('0x29')](_0x7b0999)-0x1));return _0xf87e98&&this[_0x5771('0x39')](_0xf87e98)||null;}[_0x5771('0x2c')](_0x4e05a3){var _0x4b4efd;const _0x2b480c=this[_0x5771('0x35')][_0x5771('0x19')](_0x4e05a3),_0x51e706=_0x2b480c&&(null===(_0x4b4efd=this[_0x5771('0x1b')])||void 0x0===_0x4b4efd?void 0x0:_0x4b4efd[_0x5771('0x19')](this[_0x5771('0x1b')][_0x5771('0x29')](_0x2b480c)+0x1));return _0x51e706&&this[_0x5771('0x39')](_0x51e706)||null;}[_0x5771('0x17')](_0x2dc77c,_0x341fce){_0x2dc77c[_0x5771('0x43')]();const _0x17f190=H(_0x341fce[_0x5771('0x15')]+this[_0x5771('0x9')],_0x2dc77c[_0x5771('0xa')]);return!!_0x17f190&&(this[_0x5771('0x2d')](_0x341fce,_0x341fce[_0x5771('0xa')]-_0x17f190),!0x0);}[_0x5771('0x41')](_0x40f032,_0x2a974f){_0x40f032[_0x5771('0x43')]();const _0x34b8e8=H(_0x40f032[_0x5771('0x15')]+this[_0x5771('0x9')],_0x2a974f[_0x5771('0xa')]);return!!_0x34b8e8&&(this[_0x5771('0x2d')](_0x2a974f,_0x2a974f[_0x5771('0xa')]+_0x34b8e8,!0x1),!0x0);}[_0x5771('0x20')](_0x678fac){const _0x5e61b8=this[_0x5771('0x35')][_0x5771('0x19')](_0x678fac);if(!_0x5e61b8||!_0x5e61b8[_0x5771('0x30')]||!_0x5e61b8[_0x5771('0x2a')])return;const _0x1d6baf=this['_getTargetTop'](_0x5e61b8,_0x5e61b8[_0x5771('0x2a')]);this[_0x5771('0x2d')](_0x678fac,_0x1d6baf);}[_0x5771('0x24')](_0x143b16,_0x18102b){if(null===_0x18102b)return 0x0;if(_0x143b16[_0x5771('0x30')]instanceof _0x3db3b1)return _0x18102b[_0x5771('0xa')];{const _0x4f216d=new _0x3db3b1(this[_0x5771('0x25')][_0x5771('0x14')])[_0x5771('0xa')];return _0x18102b[_0x5771('0xa')]-_0x4f216d;}}[_0x5771('0x2d')](_0x43589e,_0x5dcfe6,_0x377ff5=this[_0x5771('0x2')][_0x5771('0x21')][_0x5771('0x19')]('sidebar.preventScrollOutOfView')){_0x377ff5&&(_0x5dcfe6=Math['max'](_0x5dcfe6,this[_0x5771('0x1')](_0x43589e))),_0x43589e[_0x5771('0xa')]=_0x5dcfe6;}[_0x5771('0x1')](_0x5b43b6){let _0x10a708=this['_getItemBefore'](_0x5b43b6),_0x5442dd=0x0;for(;_0x10a708;)_0x10a708['updateHeight'](),_0x5442dd+=this[_0x5771('0x9')]+_0x10a708[_0x5771('0x0')],_0x10a708=this[_0x5771('0x13')](_0x10a708);return _0x5442dd;}}function H(_0x102e4c,_0xe36fa3){return Math['max'](_0x102e4c-_0xe36fa3,0x0);}function y(_0x22c2b5){return null!==_0x22c2b5&&_0x5771('0x44')==typeof _0x22c2b5&&0x1===_0x22c2b5[_0x5771('0x5')];}
23
+ const _0x11bb=['_sidebarItemViewToAnnotation','_annotationToSidebarItemView','top','context','target','unbind','_getTargetTop','getSidebarItemView','last','change:_lastItem','_attachToContainer','height','max','listenTo','render','refresh','targetRect','_getItemAfter','destroy','sidebar.container','_spaceBetweenItems','_alignForBottomChange','_alignAfterItem','clear','add','_activeAnnotation','_updateLastItem','_alignForTopChange','config','set','_setItemTop','object','getIndex','setContainer','delete','updateHeight','_alignBeforeItem','length','rearrange','isActive','element','remove','sidebar.preventScrollOutOfView','container','class','Sidebar','_getItemBefore','_annotations','_destroySidebarItemView','locale','_recalculateBuffer','change:targetRect','addAnnotation','_getMaxAvailableTop','sidebar-setcontainer-invalid-element','content','get','bottom','_createSidebarView','change:bottom','init','stopListening','minHeight','push','_detachFromContainer','view','_alignToTargetRect','list','appendChild','isAnimationDisabled','_lastItem','_recalculate'];(function(_0x10c68a,_0x11bb89){const _0x786788=function(_0x3f482c){while(--_0x3f482c){_0x10c68a['push'](_0x10c68a['shift']());}};_0x786788(++_0x11bb89);}(_0x11bb,0xaa));const _0x7867=function(_0x10c68a,_0x11bb89){_0x10c68a=_0x10c68a-0x0;let _0x786788=_0x11bb[_0x10c68a];return _0x786788;};import{ContextPlugin as _0x21ac19}from'ckeditor5/src/core';import{Rect as _0x37bf08,CKEditorError as _0x2eb825}from'ckeditor5/src/utils';import _0x3cd58d from'./view/sidebarview';import _0x28c24a from'./view/sidebaritemview';export default class z extends _0x21ac19{static get['pluginName'](){return _0x7867('0x13');}constructor(_0x52dd12){super(_0x52dd12),this[_0x7867('0x3')](_0x7867('0x2c'),void 0x0),this[_0x7867('0x27')]=this[_0x7867('0x20')](),this[_0x7867('0x3')](_0x7867('0x11'),null),this[_0x7867('0x42')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x7867('0x2f')]=new Map(),this[_0x7867('0x31')]['config']['define'](_0x7867('0x10'),!0x1),this[_0x7867('0x15')]=null,this[_0x7867('0x47')]=null,this['_recalculateBuffer']=[];}[_0x7867('0x22')](){const _0x20577a=this[_0x7867('0x31')][_0x7867('0x2')][_0x7867('0x1e')](_0x7867('0x41'));_0x20577a&&this[_0x7867('0x7')](_0x20577a);}[_0x7867('0x7')](_0x4bf6f9){if(!y(_0x4bf6f9))throw new _0x2eb825(_0x7867('0x1c'));this[_0x7867('0x11')]=_0x4bf6f9;}[_0x7867('0x38')]({viewClass:_0x410fe1='',spaceBetweenItems:_0x5f1e2b=0x19}={}){if(!y(this[_0x7867('0x11')]))throw new _0x2eb825('sidebar-attachtocontainer-missing-container',this);this[_0x7867('0x11')][_0x7867('0x2a')](this[_0x7867('0x27')][_0x7867('0xe')]),this[_0x7867('0x27')][_0x7867('0x12')]=_0x410fe1,this[_0x7867('0x42')]=_0x5f1e2b;}[_0x7867('0xc')]({removedAnnotation:_0x1e0724,previousAnnotation:_0x38f3d1,nextAnnotation:_0x30bba9}){const _0x3efb12=this[_0x7867('0x35')](_0x1e0724);this[_0x7867('0x27')][_0x7867('0x29')][_0x7867('0xf')](_0x3efb12),this[_0x7867('0x16')](_0x1e0724),_0x38f3d1&&this['_alignToTargetRect'](this[_0x7867('0x35')](_0x38f3d1)),_0x30bba9&&this[_0x7867('0x28')](this[_0x7867('0x35')](_0x30bba9)),this[_0x7867('0x0')]();}[_0x7867('0x3d')]({blurredAnnotation:_0x2b5263,activatedAnnotation:_0x2f9726,disableAnimationOnActivatedAnnotation:_0x196e3a}){if(this[_0x7867('0x47')]=_0x2f9726,_0x2b5263){_0x2b5263[_0x7867('0xd')]=!0x1;const _0x565e69=this[_0x7867('0x35')](_0x2b5263);_0x565e69&&_0x196e3a&&(_0x565e69['isAnimationDisabled']=!0x1);}if(_0x2f9726){const _0x206863=this[_0x7867('0x35')](_0x2f9726);_0x206863&&(_0x2f9726['isActive']=!0x0,_0x196e3a&&(_0x206863[_0x7867('0x2b')]=!0x0,_0x206863[_0x7867('0x30')]+=0x1),this['_alignToTargetRect'](_0x206863));}}[_0x7867('0x26')](_0x450cda){if(this['view']['element'][_0x7867('0xf')](),_0x450cda)for(const _0x4749eb of _0x450cda)this[_0x7867('0x16')](_0x4749eb);this[_0x7867('0x27')][_0x7867('0x29')][_0x7867('0x45')](),this['view'][_0x7867('0x12')]='',this[_0x7867('0x2c')]=null;}[_0x7867('0x1a')](_0x20f71c,_0x1a1c21){_0x1a1c21||(_0x1a1c21=_0x20f71c[_0x7867('0x27')]);const _0x1a3677=new _0x28c24a(this[_0x7867('0x31')][_0x7867('0x17')]);this[_0x7867('0x2e')][_0x7867('0x3')](_0x1a3677,_0x20f71c),this[_0x7867('0x2f')][_0x7867('0x3')](_0x20f71c,_0x1a3677),_0x1a3677[_0x7867('0x1d')][_0x7867('0x46')](_0x1a1c21),this[_0x7867('0x3b')](_0x20f71c[_0x7867('0x27')],_0x7867('0x19'),(_0x1c7f3b,_0x1aa9d2,_0x4b87e5)=>{const _0x5e05f5=this[_0x7867('0x34')](_0x20f71c,_0x4b87e5);_0x1a3677['_targetTop']!=_0x5e05f5&&(_0x1a3677['_targetTop']=_0x5e05f5,this[_0x7867('0x4')](_0x1a3677,_0x5e05f5));}),this['listenTo'](_0x1a3677,'change:top',()=>{this[_0x7867('0x2d')](_0x1a3677,_0x7867('0x30'));}),this[_0x7867('0x3b')](_0x1a3677,_0x7867('0x21'),()=>{this[_0x7867('0x2d')](_0x1a3677,_0x7867('0x1f'));}),this[_0x7867('0x28')](_0x1a3677);const _0xc7b26e=this['_getItemBefore'](_0x1a3677);if(_0xc7b26e)this[_0x7867('0x44')](_0xc7b26e,_0x1a3677)||this[_0x7867('0x28')](_0x1a3677);else this[_0x7867('0x28')](_0x1a3677);return this[_0x7867('0x0')](),this['view'][_0x7867('0x29')][_0x7867('0x46')](_0x1a3677),_0x1a3677;}[_0x7867('0x1')](_0x1474bd){if(!_0x1474bd[_0x7867('0x1d')][_0x7867('0xb')])return;const _0x4ec4be=this[_0x7867('0x14')](_0x1474bd);if(!_0x4ec4be)return;const _0x3a082c=this[_0x7867('0x2e')][_0x7867('0x1e')](_0x4ec4be),_0x447c1c=this[_0x7867('0x47')];_0x447c1c&&_0x447c1c===_0x3a082c?this[_0x7867('0x44')](_0x4ec4be,_0x1474bd):this[_0x7867('0xa')](_0x1474bd,_0x4ec4be);}[_0x7867('0x43')](_0x779ce){if(!_0x779ce[_0x7867('0x1d')][_0x7867('0xb')])return;const _0x33c078=this['_getItemAfter'](_0x779ce);if(!_0x33c078)return;const _0x4d2ea0=this[_0x7867('0x2e')][_0x7867('0x1e')](_0x33c078),_0x3c471d=this['context'][_0x7867('0x2')][_0x7867('0x1e')]('sidebar.preventScrollOutOfView'),_0x410d30=this[_0x7867('0x47')];_0x410d30&&_0x410d30===_0x4d2ea0&&_0x3c471d?(this['_alignBeforeItem'](_0x33c078,_0x779ce),this[_0x7867('0x44')](_0x779ce,_0x33c078)):_0x410d30&&_0x410d30===_0x4d2ea0?this[_0x7867('0xa')](_0x33c078,_0x779ce):this['_alignAfterItem'](_0x779ce,_0x33c078);}[_0x7867('0x2d')](_0x36a80d,_0x5e8037){0x0===this[_0x7867('0x18')][_0x7867('0xb')]&&setTimeout(()=>{for(const {sidebarItemView:_0x2fea55,changedProp:_0x54986c}of this[_0x7867('0x18')])_0x7867('0x30')===_0x54986c?this[_0x7867('0x1')](_0x2fea55):this[_0x7867('0x43')](_0x2fea55);this[_0x7867('0x18')]=[];},0xa),this['_recalculateBuffer'][_0x7867('0x25')]({'sidebarItemView':_0x36a80d,'changedProp':_0x5e8037});}['getSidebarItemView'](_0x22e24a){return this[_0x7867('0x2f')]['get'](_0x22e24a);}['destroy'](){this[_0x7867('0x23')](),this[_0x7867('0x27')][_0x7867('0x40')]();}['_destroySidebarItemView'](_0x18c3d0){const _0xe1735d=this[_0x7867('0x35')](_0x18c3d0);this[_0x7867('0x23')](_0xe1735d),this['stopListening'](_0x18c3d0[_0x7867('0x27')]),_0xe1735d[_0x7867('0x40')](),this[_0x7867('0x2f')][_0x7867('0x8')](_0x18c3d0),this[_0x7867('0x2e')]['delete'](_0xe1735d);}[_0x7867('0x20')](){const _0x4ef023=new _0x3cd58d(this['context'][_0x7867('0x17')]);return _0x4ef023[_0x7867('0x3c')](),this['on'](_0x7867('0x37'),(_0x110f6d,_0x4c5628,_0x521e7e,_0x3d83fb)=>{_0x3d83fb&&_0x4ef023[_0x7867('0x33')](_0x7867('0x24')),_0x521e7e?_0x4ef023['bind'](_0x7867('0x24'))['to'](_0x521e7e,'bottom'):_0x4ef023[_0x7867('0x24')]=null;}),_0x4ef023;}[_0x7867('0x0')](){var _0x5c3bb8;this[_0x7867('0x2c')]=(null===(_0x5c3bb8=this[_0x7867('0x15')])||void 0x0===_0x5c3bb8?void 0x0:_0x5c3bb8['last'])?this['getSidebarItemView'](this['_annotations'][_0x7867('0x36')]):null;}['_getItemBefore'](_0x6d8fa8){var _0x115029;const _0x2578e8=this['_sidebarItemViewToAnnotation'][_0x7867('0x1e')](_0x6d8fa8),_0x12b87a=_0x2578e8&&(null===(_0x115029=this[_0x7867('0x15')])||void 0x0===_0x115029?void 0x0:_0x115029[_0x7867('0x1e')](this['_annotations']['getIndex'](_0x2578e8)-0x1));return _0x12b87a&&this[_0x7867('0x35')](_0x12b87a)||null;}[_0x7867('0x3f')](_0x1470f6){var _0x2f59b8;const _0x207d49=this[_0x7867('0x2e')]['get'](_0x1470f6),_0x403caa=_0x207d49&&(null===(_0x2f59b8=this[_0x7867('0x15')])||void 0x0===_0x2f59b8?void 0x0:_0x2f59b8[_0x7867('0x1e')](this[_0x7867('0x15')][_0x7867('0x6')](_0x207d49)+0x1));return _0x403caa&&this[_0x7867('0x35')](_0x403caa)||null;}[_0x7867('0xa')](_0x228839,_0x52cd25){_0x228839[_0x7867('0x9')]();const _0x18cf26=H(_0x52cd25[_0x7867('0x1f')]+this[_0x7867('0x42')],_0x228839[_0x7867('0x30')]);return!!_0x18cf26&&(this['_setItemTop'](_0x52cd25,_0x52cd25[_0x7867('0x30')]-_0x18cf26),!0x0);}[_0x7867('0x44')](_0x8bd746,_0x3a0647){_0x8bd746[_0x7867('0x9')]();const _0x42f994=H(_0x8bd746['bottom']+this['_spaceBetweenItems'],_0x3a0647[_0x7867('0x30')]);return!!_0x42f994&&(this[_0x7867('0x4')](_0x3a0647,_0x3a0647[_0x7867('0x30')]+_0x42f994,!0x1),!0x0);}[_0x7867('0x28')](_0x5f2e37){const _0x5aaaa9=this[_0x7867('0x2e')][_0x7867('0x1e')](_0x5f2e37);if(!_0x5aaaa9||!_0x5aaaa9[_0x7867('0x32')]||!_0x5aaaa9[_0x7867('0x3e')])return;const _0x236a86=this[_0x7867('0x34')](_0x5aaaa9,_0x5aaaa9[_0x7867('0x3e')]);this[_0x7867('0x4')](_0x5f2e37,_0x236a86);}['_getTargetTop'](_0x333999,_0x55f354){if(null===_0x55f354)return 0x0;if(_0x333999[_0x7867('0x32')]instanceof _0x37bf08)return _0x55f354['top'];{const _0x266255=new _0x37bf08(this[_0x7867('0x27')][_0x7867('0xe')])[_0x7867('0x30')];return _0x55f354[_0x7867('0x30')]-_0x266255;}}[_0x7867('0x4')](_0x10838a,_0x23c671,_0x3e815e=this[_0x7867('0x31')][_0x7867('0x2')][_0x7867('0x1e')](_0x7867('0x10'))){_0x3e815e&&(_0x23c671=Math[_0x7867('0x3a')](_0x23c671,this[_0x7867('0x1b')](_0x10838a))),_0x10838a[_0x7867('0x30')]=_0x23c671;}['_getMaxAvailableTop'](_0x4aad9b){let _0x2030e1=this['_getItemBefore'](_0x4aad9b),_0x1a8f1c=0x0;for(;_0x2030e1;)_0x2030e1['updateHeight'](),_0x1a8f1c+=this[_0x7867('0x42')]+_0x2030e1[_0x7867('0x39')],_0x2030e1=this['_getItemBefore'](_0x2030e1);return _0x1a8f1c;}}function H(_0x501726,_0x22060e){return Math['max'](_0x501726-_0x22060e,0x0);}function y(_0x255145){return null!==_0x255145&&_0x7867('0x5')==typeof _0x255145&&0x1===_0x255145['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f5e=['annotationType','setTemplate','toString','ck-annotation-counter','bind','isDirty','number','icon','_badge','...','counterView','add','span','set','children','extendTemplate','ck-annotation-counter__badge--edit-mode','ck-annotation-counter__badge','ck-annotation-counter__badge--'];(function(_0xf84576,_0x4f5e95){const _0x31cd77=function(_0xdd4612){while(--_0xdd4612){_0xf84576['push'](_0xf84576['shift']());}};_0x31cd77(++_0x4f5e95);}(_0x4f5e,0xa5));const _0x31cd=function(_0xf84576,_0x4f5e95){_0xf84576=_0xf84576-0x0;let _0x31cd77=_0x4f5e[_0xf84576];return _0x31cd77;};import{ButtonView as _0xf55f8a,View as _0x37afb0}from'ckeditor5/src/ui';import _0x2bf8cc from'../../../theme/icons/add-comment.svg';export default class D extends _0xf55f8a{constructor(_0xe7c065){super(_0xe7c065);const _0x30b6ad=this['bindTemplate'];this[_0x31cd('0x0')](_0x31cd('0xb'),!0x1),this[_0x31cd('0x0')](_0x31cd('0xc'),0x0),this[_0x31cd('0xa')](_0x31cd('0xe'))['to'](this,'isDirty',this,'number',(_0x39008d,_0x100c26)=>_0x39008d?_0x31cd('0xf'):_0x100c26[_0x31cd('0x8')]()),this[_0x31cd('0x0')](_0x31cd('0x6'),''),this[_0x31cd('0xd')]=_0x2bf8cc,this[_0x31cd('0x2')]({'attributes':{'class':[_0x31cd('0x9')]}}),this[_0x31cd('0x10')]=new _0x37afb0(),this[_0x31cd('0x10')][_0x31cd('0x7')]({'tag':_0x31cd('0x12'),'attributes':{'class':[_0x31cd('0x4'),_0x30b6ad['to'](_0x31cd('0x6'),_0x50d40d=>_0x31cd('0x5')+_0x50d40d),_0x30b6ad['if'](_0x31cd('0xb'),_0x31cd('0x3'))]},'children':[{'text':_0x30b6ad['to']('_badge')}]}),this[_0x31cd('0x1')][_0x31cd('0x11')](this[_0x31cd('0x10')]);}}
23
+ const _0x304a=['annotationType','isDirty','counterView','ck-annotation-counter__badge','ck-annotation-counter__badge--','icon','number','span','ck-annotation-counter__badge--edit-mode','add','set','extendTemplate','_badge','...','ck-annotation-counter','toString'];(function(_0x31a2eb,_0x304a3b){const _0x33c778=function(_0x352a48){while(--_0x352a48){_0x31a2eb['push'](_0x31a2eb['shift']());}};_0x33c778(++_0x304a3b);}(_0x304a,0x134));const _0x33c7=function(_0x31a2eb,_0x304a3b){_0x31a2eb=_0x31a2eb-0x0;let _0x33c778=_0x304a[_0x31a2eb];return _0x33c778;};import{ButtonView as _0x5a5978,View as _0x3cc075}from'ckeditor5/src/ui';import _0x13c7e8 from'../../../theme/icons/add-comment.svg';export default class D extends _0x5a5978{constructor(_0xf40360){super(_0xf40360);const _0xcba301=this['bindTemplate'];this[_0x33c7('0x6')](_0x33c7('0xd'),!0x1),this[_0x33c7('0x6')]('number',0x0),this['bind'](_0x33c7('0x8'))['to'](this,_0x33c7('0xd'),this,_0x33c7('0x2'),(_0x3ba213,_0x70004f)=>_0x3ba213?_0x33c7('0x9'):_0x70004f[_0x33c7('0xb')]()),this[_0x33c7('0x6')]('annotationType',''),this[_0x33c7('0x1')]=_0x13c7e8,this[_0x33c7('0x7')]({'attributes':{'class':[_0x33c7('0xa')]}}),this[_0x33c7('0xe')]=new _0x3cc075(),this[_0x33c7('0xe')]['setTemplate']({'tag':_0x33c7('0x3'),'attributes':{'class':[_0x33c7('0xf'),_0xcba301['to'](_0x33c7('0xc'),_0xd08b36=>_0x33c7('0x0')+_0xd08b36),_0xcba301['if']('isDirty',_0x33c7('0x4'))]},'children':[{'text':_0xcba301['to'](_0x33c7('0x8'))}]}),this['children'][_0x33c7('0x5')](this[_0x33c7('0xe')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fe2=['render','_updateHeight','div','_mutationObserver','isDirty','focus','ck-rounded-corners','createCollection','add','Esc','type','set','ck-annotation-wrapper','detach','setTemplate','element','listenTo','focusTracker','destroy','attach','height','clientHeight','content','keystrokes'];(function(_0xdb92ac,_0x3fe2cd){const _0x152804=function(_0x13c1d6){while(--_0x13c1d6){_0xdb92ac['push'](_0xdb92ac['shift']());}};_0x152804(++_0x3fe2cd);}(_0x3fe2,0x9d));const _0x1528=function(_0xdb92ac,_0x3fe2cd){_0xdb92ac=_0xdb92ac-0x0;let _0x152804=_0x3fe2[_0xdb92ac];return _0x152804;};import{View as _0x108f4a}from'ckeditor5/src/ui';import{FocusTracker as _0x48fea7,KeystrokeHandler as _0x134e7f,uid as _0x32bfd8}from'ckeditor5/src/utils';import _0x1e23be from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x108f4a{constructor(_0x3ae0cd,_0x46a21d){super(_0x3ae0cd),this['id']=_0x32bfd8(),this[_0x1528('0x4')]=new _0x48fea7(),this[_0x1528('0xa')]=new _0x134e7f(),this['keystrokes'][_0x1528('0x16')]('Esc',(_0xef82f3,_0x451629)=>this['fire'](_0x1528('0x14'),_0x451629)),this[_0x1528('0x16')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this[_0x1528('0x16')]('isActive',!0x1),this['set'](_0x1528('0xf'),!0x1),this['set']('length',0x0),this[_0x1528('0x16')](_0x1528('0x15'),''),this['_mutationObserver']=_0x1e23be(()=>this[_0x1528('0xc')]()),this[_0x1528('0x9')]=this[_0x1528('0x12')](),this[_0x1528('0x9')][_0x1528('0x13')](_0x46a21d),this['mainView']=_0x46a21d;const _0x1f7942=this['bindTemplate'];this[_0x1528('0x1')]({'tag':_0x1528('0xd'),'attributes':{'class':['ck',_0x1528('0x17'),_0x1528('0x11'),_0x1f7942['if']('isActive','ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x1528('0x9')]});}[_0x1528('0xb')](){super['render'](),this[_0x1528('0x4')][_0x1528('0x13')](this[_0x1528('0x2')]),this[_0x1528('0xa')][_0x1528('0x3')](this['element']),this[_0x1528('0xe')][_0x1528('0x6')](this[_0x1528('0x2')]);}[_0x1528('0x5')](){this['content']['clear'](),this[_0x1528('0xa')][_0x1528('0x5')](),this['focusTracker']['destroy'](),this[_0x1528('0xe')][_0x1528('0x0')](),super[_0x1528('0x5')]();}[_0x1528('0x10')](){this[_0x1528('0x2')][_0x1528('0x10')]();}[_0x1528('0xc')](){const _0xe8846c=this[_0x1528('0x2')][_0x1528('0x8')];_0xe8846c&&(this[_0x1528('0x7')]=_0xe8846c);}}
23
+ const _0x1dc7=['render','set','isDirty','div','focusTracker','fire','_mutationObserver','_updateHeight','clear','keystrokes','element','ck-annotation-wrapper--active','focus','Esc','height','targetRect','type','length','destroy','content'];(function(_0x11c159,_0x1dc7b7){const _0x35414a=function(_0x52be1a){while(--_0x52be1a){_0x11c159['push'](_0x11c159['shift']());}};_0x35414a(++_0x1dc7b7);}(_0x1dc7,0xae));const _0x3541=function(_0x11c159,_0x1dc7b7){_0x11c159=_0x11c159-0x0;let _0x35414a=_0x1dc7[_0x11c159];return _0x35414a;};import{View as _0x57eddb}from'ckeditor5/src/ui';import{FocusTracker as _0x23c8a4,KeystrokeHandler as _0x242c47,uid as _0x2b5b84}from'ckeditor5/src/utils';import _0x445ca0 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x57eddb{constructor(_0x45fbe5,_0x315d80){super(_0x45fbe5),this['id']=_0x2b5b84(),this['focusTracker']=new _0x23c8a4(),this[_0x3541('0xf')]=new _0x242c47(),this[_0x3541('0xf')][_0x3541('0x7')](_0x3541('0x13'),(_0x256b7d,_0x99a56f)=>this[_0x3541('0xb')](_0x3541('0x13'),_0x99a56f)),this[_0x3541('0x7')](_0x3541('0x1'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3541('0x7')](_0x3541('0x0'),0x0),this[_0x3541('0x7')]('isActive',!0x1),this[_0x3541('0x7')](_0x3541('0x8'),!0x1),this[_0x3541('0x7')](_0x3541('0x3'),0x0),this[_0x3541('0x7')](_0x3541('0x2'),''),this[_0x3541('0xc')]=_0x445ca0(()=>this[_0x3541('0xd')]()),this[_0x3541('0x5')]=this['createCollection'](),this[_0x3541('0x5')]['add'](_0x315d80),this['mainView']=_0x315d80;const _0x2ec612=this['bindTemplate'];this['setTemplate']({'tag':_0x3541('0x9'),'attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x2ec612['if']('isActive',_0x3541('0x11'))],'tabindex':-0x1},'children':this[_0x3541('0x5')]});}[_0x3541('0x6')](){super[_0x3541('0x6')](),this[_0x3541('0xa')]['add'](this[_0x3541('0x10')]),this[_0x3541('0xf')]['listenTo'](this[_0x3541('0x10')]),this['_mutationObserver']['attach'](this[_0x3541('0x10')]);}[_0x3541('0x4')](){this['content'][_0x3541('0xe')](),this['keystrokes'][_0x3541('0x4')](),this[_0x3541('0xa')][_0x3541('0x4')](),this[_0x3541('0xc')]['detach'](),super['destroy']();}['focus'](){this[_0x3541('0x10')][_0x3541('0x12')]();}[_0x3541('0xd')](){const _0x50284e=this[_0x3541('0x10')]['clientHeight'];_0x50284e&&(this[_0x3541('0x0')]=_0x50284e);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a84=['updateHeight','bindTemplate','set','detach','attach','div','element','createCollection','setTemplate','_targetTop','bottom','clientHeight','content','top','ck-sidebar-item--no-animation','destroy','_mutationObserver','render','height'];(function(_0x278156,_0x1a846b){const _0x3c813c=function(_0x75a6f7){while(--_0x75a6f7){_0x278156['push'](_0x278156['shift']());}};_0x3c813c(++_0x1a846b);}(_0x1a84,0x10a));const _0x3c81=function(_0x278156,_0x1a846b){_0x278156=_0x278156-0x0;let _0x3c813c=_0x1a84[_0x278156];return _0x3c813c;};import{View as _0x7050fd}from'ckeditor5/src/ui';import{toUnit as _0x335bb3}from'ckeditor5/src/utils';import _0x1c5cb3 from'../../utils/createmutationobserver';const jt=_0x335bb3('px');export default class C extends _0x7050fd{constructor(_0x2f567c){super(_0x2f567c),this[_0x3c81('0x2')](_0x3c81('0xd'),0x0),this['set'](_0x3c81('0x12'),0x0),this['bind'](_0x3c81('0xa'))['to'](this,_0x3c81('0xd'),this,_0x3c81('0x12'),(_0x12a48e,_0x41b457)=>_0x12a48e+_0x41b457),this[_0x3c81('0x2')]('isAnimationDisabled',!0x1),this[_0x3c81('0x10')]=_0x1c5cb3(()=>this['updateHeight']()),this[_0x3c81('0x9')]=null,this[_0x3c81('0xc')]=this[_0x3c81('0x7')]();const _0x4ac698=this[_0x3c81('0x1')];this[_0x3c81('0x8')]({'tag':_0x3c81('0x5'),'attributes':{'class':['ck-sidebar-item',_0x4ac698['to']('isAnimationDisabled',_0x3bf0fe=>_0x3bf0fe?_0x3c81('0xe'):'')],'style':{'top':_0x4ac698['to'](_0x3c81('0xd'),_0x10c1b5=>jt(_0x10c1b5))}},'children':this['content']});}[_0x3c81('0x11')](){super[_0x3c81('0x11')](),this[_0x3c81('0x10')][_0x3c81('0x4')](this[_0x3c81('0x6')]);}[_0x3c81('0x0')](){const _0x196cf0=this[_0x3c81('0x6')][_0x3c81('0xb')];_0x196cf0&&(this[_0x3c81('0x12')]=_0x196cf0);}[_0x3c81('0xf')](){this[_0x3c81('0xc')]['clear'](),this[_0x3c81('0x10')][_0x3c81('0x3')](),super[_0x3c81('0xf')]();}}
23
+ const _0x33b7=['set','bindTemplate','ck-sidebar-item--no-animation','clear','setTemplate','destroy','_mutationObserver','height','element','createCollection','ck-sidebar-item','top','clientHeight','_targetTop','bottom','content','isAnimationDisabled','attach','bind','updateHeight'];(function(_0x581760,_0x33b7e7){const _0x332219=function(_0x2cfbc1){while(--_0x2cfbc1){_0x581760['push'](_0x581760['shift']());}};_0x332219(++_0x33b7e7);}(_0x33b7,0x1d6));const _0x3322=function(_0x581760,_0x33b7e7){_0x581760=_0x581760-0x0;let _0x332219=_0x33b7[_0x581760];return _0x332219;};import{View as _0x4422c5}from'ckeditor5/src/ui';import{toUnit as _0x3e1439}from'ckeditor5/src/utils';import _0x4f13a3 from'../../utils/createmutationobserver';const jt=_0x3e1439('px');export default class C extends _0x4422c5{constructor(_0x1222f7){super(_0x1222f7),this[_0x3322('0xa')](_0x3322('0x1'),0x0),this['set'](_0x3322('0x11'),0x0),this[_0x3322('0x8')](_0x3322('0x4'))['to'](this,_0x3322('0x1'),this,_0x3322('0x11'),(_0x33f185,_0x319450)=>_0x33f185+_0x319450),this['set'](_0x3322('0x6'),!0x1),this[_0x3322('0x10')]=_0x4f13a3(()=>this[_0x3322('0x9')]()),this[_0x3322('0x3')]=null,this[_0x3322('0x5')]=this[_0x3322('0x13')]();const _0x5321d8=this[_0x3322('0xb')];this[_0x3322('0xe')]({'tag':'div','attributes':{'class':[_0x3322('0x0'),_0x5321d8['to']('isAnimationDisabled',_0xb7fc7c=>_0xb7fc7c?_0x3322('0xc'):'')],'style':{'top':_0x5321d8['to']('top',_0x50ab84=>jt(_0x50ab84))}},'children':this[_0x3322('0x5')]});}['render'](){super['render'](),this[_0x3322('0x10')][_0x3322('0x7')](this[_0x3322('0x12')]);}[_0x3322('0x9')](){const _0x510845=this[_0x3322('0x12')][_0x3322('0x2')];_0x510845&&(this[_0x3322('0x11')]=_0x510845);}[_0x3322('0xf')](){this[_0x3322('0x5')][_0x3322('0xd')](),this[_0x3322('0x10')]['detach'](),super[_0x3322('0xf')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x406b=['ck-sidebar','number','minHeight','class','div','list','ck-reset','setTemplate','createCollection'];(function(_0x3e215f,_0x406b53){const _0x514de4=function(_0x7bd79c){while(--_0x7bd79c){_0x3e215f['push'](_0x3e215f['shift']());}};_0x514de4(++_0x406b53);}(_0x406b,0x169));const _0x514d=function(_0x3e215f,_0x406b53){_0x3e215f=_0x3e215f-0x0;let _0x514de4=_0x406b[_0x3e215f];return _0x514de4;};import{View as _0x189985}from'ckeditor5/src/ui';import{toUnit as _0x5bca68}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x5bca68('px');export default class T extends _0x189985{constructor(_0x5e30ac){super(_0x5e30ac);const _0x3b7667=this['bindTemplate'];this['set'](_0x514d('0x1'),0x0),this['set'](_0x514d('0x2'),''),this[_0x514d('0x4')]=this[_0x514d('0x7')](),this[_0x514d('0x6')]({'tag':_0x514d('0x3'),'attributes':{'class':['ck',_0x514d('0x8'),_0x514d('0x5'),_0x3b7667['to'](_0x514d('0x2'))],'style':{'minHeight':_0x3b7667['to'](_0x514d('0x1'),_0x5e2bcc=>_0x514d('0x0')==typeof _0x5e2bcc?jt(_0x5e2bcc+0xa):null)}},'children':this[_0x514d('0x4')]});}}
23
+ const _0xac46=['div','class','set','createCollection','minHeight','ck-sidebar','number','ck-reset','setTemplate','list'];(function(_0x473e9d,_0xac469a){const _0x58d654=function(_0x3b2fc6){while(--_0x3b2fc6){_0x473e9d['push'](_0x473e9d['shift']());}};_0x58d654(++_0xac469a);}(_0xac46,0x18f));const _0x58d6=function(_0x473e9d,_0xac469a){_0x473e9d=_0x473e9d-0x0;let _0x58d654=_0xac46[_0x473e9d];return _0x58d654;};import{View as _0x32cc5e}from'ckeditor5/src/ui';import{toUnit as _0x1635ff}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x1635ff('px');export default class T extends _0x32cc5e{constructor(_0x140a2e){super(_0x140a2e);const _0x39f19a=this['bindTemplate'];this[_0x58d6('0x3')](_0x58d6('0x5'),0x0),this[_0x58d6('0x3')](_0x58d6('0x2'),''),this['list']=this[_0x58d6('0x4')](),this[_0x58d6('0x9')]({'tag':_0x58d6('0x1'),'attributes':{'class':['ck',_0x58d6('0x6'),_0x58d6('0x8'),_0x39f19a['to']('class')],'style':{'minHeight':_0x39f19a['to'](_0x58d6('0x5'),_0x25f71a=>_0x58d6('0x7')==typeof _0x25f71a?jt(_0x25f71a+0xa):null)}},'children':this[_0x58d6('0x0')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14ed=['change:container','switchTo','addAnnotation','addEventListener','remove','editors','annotations','container','_editorAnnotations','removeEventListener','_integrateWithEditorAnnotations','getOrderedSelectedAnnotations','detach','widesidebar-attach-already-attached','ready','init','refreshPositioning','blur','pluginName','EditorAnnotations','register','set','high','attach','_annotations','widesidebar-detach-not-attached','resize','from','ck-sidebar--wide','context','focus','_refreshPositioningDebounced','rearrange','hasDomSelection','plugins','_attachToContainer','_destroyEditorAnnotationsIntegration','cancel','get','isAttached','requires','stopListening','updateTargetRect','setActiveAnnotation','listenTo','_detachFromContainer','add','wideSidebar','activeAnnotation','off'];(function(_0x1468ee,_0x14ed6c){const _0x44043a=function(_0x5c62f2){while(--_0x5c62f2){_0x1468ee['push'](_0x1468ee['shift']());}};_0x44043a(++_0x14ed6c);}(_0x14ed,0xb9));const _0x4404=function(_0x1468ee,_0x14ed6c){_0x1468ee=_0x1468ee-0x0;let _0x44043a=_0x14ed[_0x1468ee];return _0x44043a;};import{ContextPlugin as _0x259421,Context as _0x53b6fd}from'ckeditor5/src/core';import _0x297457 from'./annotationsuis';import _0x28ffaf from'./sidebar';import{CKEditorError as _0x229533,Collection as _0x28d739}from'ckeditor5/src/utils';import{debounce as _0x185159}from'lodash-es';import _0x2021c0 from'./editorannotations';export default class i extends _0x259421{static get[_0x4404('0x5')](){return[_0x28ffaf,_0x297457];}static get[_0x4404('0x21')](){return'WideSidebar';}constructor(_0x133c53){super(_0x133c53),this[_0x4404('0x4')]=!0x1,this[_0x4404('0x24')](_0x4404('0xd'),null),this[_0x4404('0x15')]=null,this['_editorAnnotations']=new _0x28d739(),this[_0x4404('0x2e')]=_0x185159(()=>{this[_0x4404('0x15')][_0x4404('0x1f')]();},0xfa,{'leading':!0x1});}[_0x4404('0x1e')](){const _0x288cb3=this[_0x4404('0x2c')][_0x4404('0x31')][_0x4404('0x3')](_0x297457),_0x15be39=this[_0x4404('0x2c')][_0x4404('0x31')]['get'](_0x28ffaf);_0x288cb3[_0x4404('0x23')](_0x4404('0xc'),this),_0x15be39[_0x4404('0x16')]&&_0x288cb3[_0x4404('0x10')](_0x4404('0xc'));}['setActiveAnnotation'](_0xb8bd2d){if(_0xb8bd2d===this[_0x4404('0xd')])return;const _0x3b6972=this[_0x4404('0x2c')][_0x4404('0x31')]['get'](_0x28ffaf);_0x3b6972['_activeAnnotation']=_0xb8bd2d;const _0x30f41f=this[_0x4404('0xd')];this[_0x4404('0xd')]=_0xb8bd2d,_0x3b6972['refresh']({'blurredAnnotation':_0x30f41f,'activatedAnnotation':this[_0x4404('0xd')]});}['attach'](_0x321882){this[_0x4404('0x15')]=_0x321882;const _0x181515=this[_0x4404('0x2c')][_0x4404('0x31')]['get'](_0x28ffaf);if(_0x181515[_0x4404('0x27')]=_0x321882,this[_0x4404('0x4')])throw new _0x229533(_0x4404('0x1c'),this);this['isAttached']=!0x0,this[_0x4404('0x9')](_0x181515,'set:container',()=>{this['detach'](),this[_0x4404('0x9')](_0x181515,_0x4404('0xf'),_0x450f79=>{_0x450f79[_0x4404('0xe')](),this[_0x4404('0x26')](_0x321882);});}),_0x181515[_0x4404('0x0')]({'viewClass':_0x4404('0x2b')});const _0x4070a5=_0x50b08=>{_0x50b08[_0x4404('0x7')](),_0x181515[_0x4404('0x11')](_0x50b08);};for(const _0x560cff of _0x321882)_0x4070a5(_0x560cff);this[_0x4404('0x9')](_0x321882,'add',(_0x2d7bc6,_0x5173c4)=>{_0x4070a5(_0x5173c4);}),this['listenTo'](_0x321882,_0x4404('0x13'),(_0x2b2f6f,_0x529894,_0x4c9da0)=>{_0x181515[_0x4404('0x2f')]({'removedAnnotation':_0x529894,'previousAnnotation':_0x321882['get'](_0x4c9da0-0x1),'nextAnnotation':_0x321882['get'](_0x4c9da0+0x1)}),_0x529894===this[_0x4404('0xd')]&&this[_0x4404('0x8')](null);},{'priority':_0x4404('0x25')}),this['listenTo'](_0x321882,_0x4404('0x2d'),(_0x5c8d57,_0x31f872)=>{this[_0x4404('0x8')](_0x31f872);}),this['listenTo'](_0x321882,_0x4404('0x20'),()=>{this[_0x4404('0x8')](null);});const _0x23b9fd=this[_0x4404('0x2c')]instanceof _0x53b6fd?this[_0x4404('0x2c')][_0x4404('0x14')]:new _0x28d739([this['context']]);for(const _0x2e2dff of _0x23b9fd)this[_0x4404('0x19')](_0x2e2dff);this[_0x4404('0x9')](_0x23b9fd,_0x4404('0xb'),(_0x57a5fa,_0x1eb812)=>{this[_0x4404('0x9')](_0x1eb812,_0x4404('0x1d'),()=>{this[_0x4404('0x19')](_0x1eb812);});}),this[_0x4404('0x9')](_0x23b9fd,'remove',(_0x1cae22,_0x2def81)=>{_0x2def81['plugins']['has'](_0x4404('0x22'))&&this[_0x4404('0x1')](_0x2def81['plugins']['get'](_0x4404('0x22')));}),window[_0x4404('0x12')]('resize',this[_0x4404('0x2e')]),this[_0x4404('0x15')]['refreshPositioning']();}[_0x4404('0x1b')](){if(!this['isAttached'])throw new _0x229533(_0x4404('0x28'),this);this[_0x4404('0x8')](null);const _0x5afdc6=this[_0x4404('0x2c')]['plugins'][_0x4404('0x3')](_0x28ffaf);_0x5afdc6[_0x4404('0xa')](this[_0x4404('0x15')]),this['stopListening'](_0x5afdc6),this['stopListening'](this['annotations']),this[_0x4404('0x2c')]instanceof _0x53b6fd&&this[_0x4404('0x6')](this[_0x4404('0x2c')][_0x4404('0x14')]);for(const _0xba8b20 of Array[_0x4404('0x2a')](this['_editorAnnotations']))this[_0x4404('0x1')](_0xba8b20);window[_0x4404('0x18')](_0x4404('0x29'),this[_0x4404('0x2e')]),this[_0x4404('0x2e')][_0x4404('0x2')](),this['activeAnnotation']=null,this[_0x4404('0x4')]=!0x1,this[_0x4404('0x15')]=null;}['destroy'](){this[_0x4404('0x4')]&&this[_0x4404('0x1b')]();}[_0x4404('0x19')](_0x146a32){const _0x555385=_0x146a32[_0x4404('0x31')][_0x4404('0x3')](_0x2021c0);if(!_0x555385)return;const _0x2f5838=()=>{const _0x2dbd23=_0x555385[_0x4404('0x1a')]({'annotations':this[_0x4404('0x15')],'activeAnnotation':this[_0x4404('0xd')]});this[_0x4404('0x8')](_0x2dbd23[0x0]||null);};this['listenTo'](_0x555385,'refresh',_0x2f5838),this[_0x4404('0x9')](_0x555385,_0x4404('0x20'),(_0x4f4aca,{isAnnotationTracked:_0x25e475})=>{this[_0x4404('0xd')]&&_0x25e475(this[_0x4404('0xd')])&&this[_0x4404('0x8')](null);}),this[_0x4404('0x9')](_0x555385,'uiUpdate',()=>{this[_0x4404('0x2e')]();}),this[_0x4404('0x9')](this['annotations'],_0x4404('0x20'),_0x38b13c=>{_0x555385[_0x4404('0x30')]()&&(_0x2f5838(),_0x38b13c['stop']());},{'priority':_0x4404('0x25')}),this[_0x4404('0x17')]['add'](_0x555385);}['_destroyEditorAnnotationsIntegration'](_0x40f930){this[_0x4404('0x6')](_0x40f930),this[_0x4404('0x17')][_0x4404('0x13')](_0x40f930);}}
23
+ const _0x12d0=['_editorAnnotations','removeEventListener','get','_activeAnnotation','widesidebar-detach-not-attached','high','hasDomSelection','annotations','container','blur','change:container','_annotations','setActiveAnnotation','_destroyEditorAnnotationsIntegration','_attachToContainer','editors','resize','cancel','_refreshPositioningDebounced','refresh','addAnnotation','stop','plugins','switchTo','detach','listenTo','activeAnnotation','stopListening','remove','WideSidebar','uiUpdate','add','context','wideSidebar','refreshPositioning','attach','_integrateWithEditorAnnotations','requires','widesidebar-attach-already-attached','isAttached','from','focus','pluginName','has','addEventListener','_detachFromContainer','EditorAnnotations','rearrange'];(function(_0x480cea,_0x12d0af){const _0x6dd3ad=function(_0x5022da){while(--_0x5022da){_0x480cea['push'](_0x480cea['shift']());}};_0x6dd3ad(++_0x12d0af);}(_0x12d0,0x192));const _0x6dd3=function(_0x480cea,_0x12d0af){_0x480cea=_0x480cea-0x0;let _0x6dd3ad=_0x12d0[_0x480cea];return _0x6dd3ad;};import{ContextPlugin as _0x29992f,Context as _0x5d8cb6}from'ckeditor5/src/core';import _0x5e8173 from'./annotationsuis';import _0x29d9d5 from'./sidebar';import{CKEditorError as _0x593f1d,Collection as _0x1376bf}from'ckeditor5/src/utils';import{debounce as _0x336ee4}from'lodash-es';import _0x1e3b90 from'./editorannotations';export default class i extends _0x29992f{static get[_0x6dd3('0x13')](){return[_0x29d9d5,_0x5e8173];}static get[_0x6dd3('0x18')](){return _0x6dd3('0xb');}constructor(_0x3644e0){super(_0x3644e0),this[_0x6dd3('0x15')]=!0x1,this['set']('activeAnnotation',null),this[_0x6dd3('0x25')]=null,this[_0x6dd3('0x1e')]=new _0x1376bf(),this[_0x6dd3('0x0')]=_0x336ee4(()=>{this['annotations'][_0x6dd3('0x10')]();},0xfa,{'leading':!0x1});}['init'](){const _0x442eef=this[_0x6dd3('0xe')]['plugins'][_0x6dd3('0x20')](_0x5e8173),_0x4e4a54=this[_0x6dd3('0xe')][_0x6dd3('0x4')][_0x6dd3('0x20')](_0x29d9d5);_0x442eef['register'](_0x6dd3('0xf'),this),_0x4e4a54[_0x6dd3('0x26')]&&_0x442eef[_0x6dd3('0x5')]('wideSidebar');}[_0x6dd3('0x2a')](_0x59f33a){if(_0x59f33a===this['activeAnnotation'])return;const _0x2d1932=this[_0x6dd3('0xe')]['plugins'][_0x6dd3('0x20')](_0x29d9d5);_0x2d1932[_0x6dd3('0x21')]=_0x59f33a;const _0x33861a=this['activeAnnotation'];this[_0x6dd3('0x8')]=_0x59f33a,_0x2d1932[_0x6dd3('0x1')]({'blurredAnnotation':_0x33861a,'activatedAnnotation':this[_0x6dd3('0x8')]});}['attach'](_0x1694ab){this[_0x6dd3('0x25')]=_0x1694ab;const _0x180b64=this[_0x6dd3('0xe')]['plugins']['get'](_0x29d9d5);if(_0x180b64[_0x6dd3('0x29')]=_0x1694ab,this[_0x6dd3('0x15')])throw new _0x593f1d(_0x6dd3('0x14'),this);this[_0x6dd3('0x15')]=!0x0,this['listenTo'](_0x180b64,'set:container',()=>{this[_0x6dd3('0x6')](),this['listenTo'](_0x180b64,_0x6dd3('0x28'),_0x5783ab=>{_0x5783ab['off'](),this[_0x6dd3('0x11')](_0x1694ab);});}),_0x180b64[_0x6dd3('0x2c')]({'viewClass':'ck-sidebar--wide'});const _0x2914dd=_0x3f86f0=>{_0x3f86f0['updateTargetRect'](),_0x180b64[_0x6dd3('0x2')](_0x3f86f0);};for(const _0x51869a of _0x1694ab)_0x2914dd(_0x51869a);this['listenTo'](_0x1694ab,_0x6dd3('0xd'),(_0x4bd5b1,_0x5599f9)=>{_0x2914dd(_0x5599f9);}),this[_0x6dd3('0x7')](_0x1694ab,_0x6dd3('0xa'),(_0x44e5bc,_0x1a3a02,_0x381905)=>{_0x180b64[_0x6dd3('0x1d')]({'removedAnnotation':_0x1a3a02,'previousAnnotation':_0x1694ab[_0x6dd3('0x20')](_0x381905-0x1),'nextAnnotation':_0x1694ab[_0x6dd3('0x20')](_0x381905+0x1)}),_0x1a3a02===this[_0x6dd3('0x8')]&&this[_0x6dd3('0x2a')](null);},{'priority':_0x6dd3('0x23')}),this[_0x6dd3('0x7')](_0x1694ab,_0x6dd3('0x17'),(_0x5c3f2c,_0x56439b)=>{this[_0x6dd3('0x2a')](_0x56439b);}),this['listenTo'](_0x1694ab,_0x6dd3('0x27'),()=>{this['setActiveAnnotation'](null);});const _0x48557c=this[_0x6dd3('0xe')]instanceof _0x5d8cb6?this[_0x6dd3('0xe')][_0x6dd3('0x2d')]:new _0x1376bf([this[_0x6dd3('0xe')]]);for(const _0x156163 of _0x48557c)this[_0x6dd3('0x12')](_0x156163);this[_0x6dd3('0x7')](_0x48557c,_0x6dd3('0xd'),(_0x440995,_0x17badb)=>{this[_0x6dd3('0x7')](_0x17badb,'ready',()=>{this[_0x6dd3('0x12')](_0x17badb);});}),this[_0x6dd3('0x7')](_0x48557c,_0x6dd3('0xa'),(_0x3c4e5f,_0x2bd86d)=>{_0x2bd86d[_0x6dd3('0x4')][_0x6dd3('0x19')]('EditorAnnotations')&&this[_0x6dd3('0x2b')](_0x2bd86d['plugins'][_0x6dd3('0x20')](_0x6dd3('0x1c')));}),window[_0x6dd3('0x1a')](_0x6dd3('0x2e'),this['_refreshPositioningDebounced']),this[_0x6dd3('0x25')][_0x6dd3('0x10')]();}[_0x6dd3('0x6')](){if(!this[_0x6dd3('0x15')])throw new _0x593f1d(_0x6dd3('0x22'),this);this[_0x6dd3('0x2a')](null);const _0x51b9bd=this[_0x6dd3('0xe')]['plugins']['get'](_0x29d9d5);_0x51b9bd[_0x6dd3('0x1b')](this[_0x6dd3('0x25')]),this[_0x6dd3('0x9')](_0x51b9bd),this[_0x6dd3('0x9')](this[_0x6dd3('0x25')]),this[_0x6dd3('0xe')]instanceof _0x5d8cb6&&this['stopListening'](this[_0x6dd3('0xe')]['editors']);for(const _0x211873 of Array[_0x6dd3('0x16')](this[_0x6dd3('0x1e')]))this[_0x6dd3('0x2b')](_0x211873);window[_0x6dd3('0x1f')]('resize',this[_0x6dd3('0x0')]),this[_0x6dd3('0x0')][_0x6dd3('0x2f')](),this[_0x6dd3('0x8')]=null,this[_0x6dd3('0x15')]=!0x1,this[_0x6dd3('0x25')]=null;}['destroy'](){this[_0x6dd3('0x15')]&&this[_0x6dd3('0x6')]();}['_integrateWithEditorAnnotations'](_0x4b2fa9){const _0x1b970d=_0x4b2fa9[_0x6dd3('0x4')][_0x6dd3('0x20')](_0x1e3b90);if(!_0x1b970d)return;const _0x20d188=()=>{const _0x363a0b=_0x1b970d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x6dd3('0x8')]});this[_0x6dd3('0x2a')](_0x363a0b[0x0]||null);};this[_0x6dd3('0x7')](_0x1b970d,'refresh',_0x20d188),this[_0x6dd3('0x7')](_0x1b970d,_0x6dd3('0x27'),(_0x1a2724,{isAnnotationTracked:_0x1fd790})=>{this[_0x6dd3('0x8')]&&_0x1fd790(this['activeAnnotation'])&&this[_0x6dd3('0x2a')](null);}),this[_0x6dd3('0x7')](_0x1b970d,_0x6dd3('0xc'),()=>{this[_0x6dd3('0x0')]();}),this[_0x6dd3('0x7')](this['annotations'],_0x6dd3('0x27'),_0x16a7f9=>{_0x1b970d[_0x6dd3('0x24')]()&&(_0x20d188(),_0x16a7f9[_0x6dd3('0x3')]());},{'priority':_0x6dd3('0x23')}),this[_0x6dd3('0x1e')][_0x6dd3('0xd')](_0x1b970d);}[_0x6dd3('0x2b')](_0x36af7d){this[_0x6dd3('0x9')](_0x36af7d),this[_0x6dd3('0x1e')][_0x6dd3('0xa')](_0x36af7d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f40=['substr','_itemIsContent','element','getItems','model','start','isObject','selection','_trimToContent','schema','getLastMatchingPosition','_hasContent','execute','refresh','push','getRanges','isEnabled','editor','createRange','$textProxy','addMarker','comment:','document','backward','tableCell'];(function(_0x24d7a1,_0x5f4086){const _0x5c52a3=function(_0x5df70d){while(--_0x5df70d){_0x24d7a1['push'](_0x24d7a1['shift']());}};_0x5c52a3(++_0x5f4086);}(_0x5f40,0xfe));const _0x5c52=function(_0x24d7a1,_0x5f4086){_0x24d7a1=_0x24d7a1-0x0;let _0x5c52a3=_0x5f40[_0x24d7a1];return _0x5c52a3;};import{Command as _0x5b7d1d}from'ckeditor5/src/core';import{uid as _0x3fb70e}from'ckeditor5/src/utils';export default class q extends _0x5b7d1d{[_0x5c52('0x9')](){const _0x4de722=this['editor']['model'][_0x5c52('0x12')][_0x5c52('0x3')];for(const _0x3f4423 of _0x4de722[_0x5c52('0xb')]())if(this['_hasContent'](_0x3f4423))return void(this[_0x5c52('0xc')]=!0x0);this['isEnabled']=!0x1;}[_0x5c52('0x8')]({threadId:_0x294ad9=_0x3fb70e()}={}){const _0x32628e=this[_0x5c52('0xd')]['model'],_0x5afc73=[];for(const _0x3714d0 of _0x32628e[_0x5c52('0x12')][_0x5c52('0x3')][_0x5c52('0xb')]())this[_0x5c52('0x7')](_0x3714d0)&&_0x5afc73[_0x5c52('0xa')](this[_0x5c52('0x4')](_0x3714d0));_0x32628e['change'](_0x26469f=>{for(const _0x44c1a3 of _0x5afc73){const _0xf4d3b1=_0x3fb70e()[_0x5c52('0x15')](0x1,0x5),_0x146d48=_0x5c52('0x11')+_0x294ad9+':'+_0xf4d3b1;_0x26469f[_0x5c52('0x10')](_0x146d48,{'range':_0x44c1a3,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x5c52('0x7')](_0x541290){for(const _0x1b0ea7 of _0x541290[_0x5c52('0x18')]())if(this[_0x5c52('0x16')](_0x1b0ea7))return!0x0;return!0x1;}[_0x5c52('0x16')](_0x5ac6c9){return _0x5ac6c9['is'](_0x5c52('0xf'))||this[_0x5c52('0xd')][_0x5c52('0x0')][_0x5c52('0x5')][_0x5c52('0x2')](_0x5ac6c9)&&!_0x5ac6c9['is'](_0x5c52('0x17'),_0x5c52('0x14'));}[_0x5c52('0x4')](_0x7343be){const _0x14cd48=_0xb5791=>!this[_0x5c52('0x16')](_0xb5791['item']),_0x50cdcb=_0x7343be[_0x5c52('0x1')][_0x5c52('0x6')](_0x14cd48),_0x117330=_0x7343be['end'][_0x5c52('0x6')](_0x14cd48,{'direction':_0x5c52('0x13')});return this['editor'][_0x5c52('0x0')][_0x5c52('0xe')](_0x50cdcb,_0x117330);}}
23
+ const _0x13d9=['editor','isObject','_hasContent','addMarker','substr','getItems','document','getRanges','isEnabled','model','getLastMatchingPosition','refresh','_itemIsContent','backward','tableCell','element','selection','createRange','item','schema','$textProxy','_trimToContent','change','comment:'];(function(_0x5b0ba5,_0x13d939){const _0x2171e5=function(_0x10d516){while(--_0x10d516){_0x5b0ba5['push'](_0x5b0ba5['shift']());}};_0x2171e5(++_0x13d939);}(_0x13d9,0x1e2));const _0x2171=function(_0x5b0ba5,_0x13d939){_0x5b0ba5=_0x5b0ba5-0x0;let _0x2171e5=_0x13d9[_0x5b0ba5];return _0x2171e5;};import{Command as _0x2f9803}from'ckeditor5/src/core';import{uid as _0xaebb8}from'ckeditor5/src/utils';export default class q extends _0x2f9803{[_0x2171('0x9')](){const _0x28ad9a=this[_0x2171('0x16')][_0x2171('0x7')][_0x2171('0x4')]['selection'];for(const _0x5ab31b of _0x28ad9a[_0x2171('0x5')]())if(this[_0x2171('0x0')](_0x5ab31b))return void(this['isEnabled']=!0x0);this[_0x2171('0x6')]=!0x1;}['execute']({threadId:_0x430bc9=_0xaebb8()}={}){const _0x28e0dc=this['editor'][_0x2171('0x7')],_0x58e2c2=[];for(const _0x3233af of _0x28e0dc[_0x2171('0x4')][_0x2171('0xe')][_0x2171('0x5')]())this[_0x2171('0x0')](_0x3233af)&&_0x58e2c2['push'](this[_0x2171('0x13')](_0x3233af));_0x28e0dc[_0x2171('0x14')](_0x1b8ed9=>{for(const _0x906ce3 of _0x58e2c2){const _0x16dd3a=_0xaebb8()[_0x2171('0x2')](0x1,0x5),_0x5f40f9=_0x2171('0x15')+_0x430bc9+':'+_0x16dd3a;_0x1b8ed9[_0x2171('0x1')](_0x5f40f9,{'range':_0x906ce3,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x2171('0x0')](_0x5e9c5a){for(const _0x5aa51e of _0x5e9c5a[_0x2171('0x3')]())if(this[_0x2171('0xa')](_0x5aa51e))return!0x0;return!0x1;}[_0x2171('0xa')](_0x92ba89){return _0x92ba89['is'](_0x2171('0x12'))||this['editor'][_0x2171('0x7')][_0x2171('0x11')][_0x2171('0x17')](_0x92ba89)&&!_0x92ba89['is'](_0x2171('0xd'),_0x2171('0xc'));}[_0x2171('0x13')](_0x32f633){const _0x5a0862=_0x3a2b55=>!this['_itemIsContent'](_0x3a2b55[_0x2171('0x10')]),_0x21100f=_0x32f633['start'][_0x2171('0x8')](_0x5a0862),_0x3742cf=_0x32f633['end'][_0x2171('0x8')](_0x5a0862,{'direction':_0x2171('0xb')});return this['editor'][_0x2171('0x7')][_0x2171('0xf')](_0x21100f,_0x3742cf);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4104=['archivedThreads','pluginName','requires','findIndex','focus','CommentsArchive','getCommentThread','remove','add','init','listenTo','change:archivedAt','stopListening','highest','has','removeCommentThread','length','activate','context','collection','get','addCommentThread','archivedAt','_calculatePosition','plugins'];(function(_0xf7dc08,_0x410458){const _0x30b51b=function(_0x260cc4){while(--_0x260cc4){_0xf7dc08['push'](_0xf7dc08['shift']());}};_0x30b51b(++_0x410458);}(_0x4104,0xa5));const _0x30b5=function(_0xf7dc08,_0x410458){_0xf7dc08=_0xf7dc08-0x0;let _0x30b51b=_0x4104[_0xf7dc08];return _0x30b51b;};import{ContextPlugin as _0x10eb23}from'ckeditor5/src/core';import{Collection as _0x1bc200}from'ckeditor5/src/utils';import _0x80b4d from'./commentsrepository';import _0x15e0e7 from'../annotations/annotations';export default class p extends _0x10eb23{static get[_0x30b5('0xb')](){return _0x30b5('0xf');}static get[_0x30b5('0xc')](){return[_0x80b4d,_0x15e0e7];}constructor(_0x2797ad){super(_0x2797ad),this[_0x30b5('0xa')]=new _0x1bc200();}[_0x30b5('0x13')](){const _0x21aa2f=this[_0x30b5('0x3')],_0x497d4d=_0x21aa2f[_0x30b5('0x9')][_0x30b5('0x5')](_0x80b4d),_0x26d0bf=_0x21aa2f[_0x30b5('0x9')]['get'](_0x15e0e7);this['listenTo'](_0x497d4d,_0x30b5('0x6'),(_0x36b65d,{threadId:_0x4b63d9})=>{const _0x2bd1d9=_0x497d4d[_0x30b5('0x10')](_0x4b63d9);_0x2bd1d9['archivedAt']&&this[_0x30b5('0xa')][_0x30b5('0x12')](_0x2bd1d9,this['_calculatePosition'](_0x2bd1d9[_0x30b5('0x7')])),this[_0x30b5('0x14')](_0x2bd1d9,_0x30b5('0x15'),(_0xfaa63,_0x47e64e,_0x218f67)=>{_0x218f67?this[_0x30b5('0xa')][_0x30b5('0x18')](_0x2bd1d9)||this['archivedThreads'][_0x30b5('0x12')](_0x2bd1d9,this[_0x30b5('0x8')](_0x2bd1d9[_0x30b5('0x7')])):this[_0x30b5('0xa')][_0x30b5('0x18')](_0x2bd1d9)&&this[_0x30b5('0xa')][_0x30b5('0x11')](_0x2bd1d9);});}),this[_0x30b5('0x14')](_0x497d4d,_0x30b5('0x0'),(_0x5b3451,{threadId:_0x361a70})=>{const _0x236750=_0x497d4d[_0x30b5('0x10')](_0x361a70);this[_0x30b5('0x16')](_0x236750),this[_0x30b5('0xa')][_0x30b5('0x18')](_0x236750)&&this[_0x30b5('0xa')][_0x30b5('0x11')](_0x236750);},{'priority':_0x30b5('0x17')}),this[_0x30b5('0x14')](_0x26d0bf[_0x30b5('0x4')],_0x30b5('0xe'),(_0x28db64,_0x3e4ca1)=>{_0x3e4ca1['isActive']=!0x0,_0x26d0bf[_0x30b5('0x2')](_0x3e4ca1);});}[_0x30b5('0x8')](_0x612d6e){const _0x49fdec=[...this[_0x30b5('0xa')]][_0x30b5('0xd')](_0x58bfde=>_0x58bfde[_0x30b5('0x7')]<_0x612d6e);return _0x49fdec>-0x1?_0x49fdec:this[_0x30b5('0xa')][_0x30b5('0x1')];}}
23
+ const _0x4575=['remove','listenTo','_calculatePosition','init','stopListening','plugins','add','pluginName','getCommentThread','findIndex','collection','context','get','focus','has','archivedThreads','change:archivedAt','isActive','addCommentThread','archivedAt','length','activate','removeCommentThread'];(function(_0x298528,_0x4575c6){const _0xda3bcd=function(_0x3b9207){while(--_0x3b9207){_0x298528['push'](_0x298528['shift']());}};_0xda3bcd(++_0x4575c6);}(_0x4575,0x112));const _0xda3b=function(_0x298528,_0x4575c6){_0x298528=_0x298528-0x0;let _0xda3bcd=_0x4575[_0x298528];return _0xda3bcd;};import{ContextPlugin as _0x190660}from'ckeditor5/src/core';import{Collection as _0x42e965}from'ckeditor5/src/utils';import _0x5ef404 from'./commentsrepository';import _0x24dfc3 from'../annotations/annotations';export default class p extends _0x190660{static get[_0xda3b('0x9')](){return'CommentsArchive';}static get['requires'](){return[_0x5ef404,_0x24dfc3];}constructor(_0x262680){super(_0x262680),this[_0xda3b('0x11')]=new _0x42e965();}[_0xda3b('0x5')](){const _0x3aea1c=this[_0xda3b('0xd')],_0x45f57e=_0x3aea1c[_0xda3b('0x7')]['get'](_0x5ef404),_0x3f3df4=_0x3aea1c[_0xda3b('0x7')][_0xda3b('0xe')](_0x24dfc3);this['listenTo'](_0x45f57e,_0xda3b('0x14'),(_0x2655c5,{threadId:_0x404254})=>{const _0x1770c7=_0x45f57e[_0xda3b('0xa')](_0x404254);_0x1770c7[_0xda3b('0x15')]&&this['archivedThreads'][_0xda3b('0x8')](_0x1770c7,this[_0xda3b('0x4')](_0x1770c7['archivedAt'])),this['listenTo'](_0x1770c7,_0xda3b('0x12'),(_0x478d5b,_0x25580d,_0xc292c6)=>{_0xc292c6?this[_0xda3b('0x11')][_0xda3b('0x10')](_0x1770c7)||this[_0xda3b('0x11')][_0xda3b('0x8')](_0x1770c7,this[_0xda3b('0x4')](_0x1770c7['archivedAt'])):this[_0xda3b('0x11')][_0xda3b('0x10')](_0x1770c7)&&this[_0xda3b('0x11')][_0xda3b('0x2')](_0x1770c7);});}),this['listenTo'](_0x45f57e,_0xda3b('0x1'),(_0x38b9e9,{threadId:_0x5d60a9})=>{const _0x55f7b2=_0x45f57e['getCommentThread'](_0x5d60a9);this[_0xda3b('0x6')](_0x55f7b2),this[_0xda3b('0x11')]['has'](_0x55f7b2)&&this[_0xda3b('0x11')][_0xda3b('0x2')](_0x55f7b2);},{'priority':'highest'}),this[_0xda3b('0x3')](_0x3f3df4[_0xda3b('0xc')],_0xda3b('0xf'),(_0x9d4eb9,_0x587a42)=>{_0x587a42[_0xda3b('0x13')]=!0x0,_0x3f3df4[_0xda3b('0x0')](_0x587a42);});}['_calculatePosition'](_0xe8f984){const _0x44a2e4=[...this[_0xda3b('0x11')]][_0xda3b('0xb')](_0x27224b=>_0x27224b[_0xda3b('0x15')]<_0xe8f984);return _0x44a2e4>-0x1?_0x44a2e4:this[_0xda3b('0x11')][_0xda3b('0x16')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1258=['commentsArchive','remove','isVisible','add','pluginName','locale','change:isOpen','push','classList','listenTo','CommentsRepository','panelView','Annotations','focusableElements','filter','commentsArchiveView','splice','ck-comments-archive-dropdown','position','editor','contains','channelId','_visibleAnnotations','_handleAnnotationFocusableElements','archivedThreads','plugins','archivedAt','view','collection','mainView','_threadToController','_pendingThreads','config','set','componentFactory','collaboration.channelId','getByInnerView','length','focusTracker','children','_createArchiveUIDropdown','ck-body','_calculatePosition','stopListening','annotationViews','innerView','get'];(function(_0x53d2dd,_0x1258da){const _0x37cadd=function(_0x2f5b99){while(--_0x2f5b99){_0x53d2dd['push'](_0x53d2dd['shift']());}};_0x37cadd(++_0x1258da);}(_0x1258,0x1c4));const _0x37ca=function(_0x53d2dd,_0x1258da){_0x53d2dd=_0x53d2dd-0x0;let _0x37cadd=_0x1258[_0x53d2dd];return _0x37cadd;};import'../../theme/commentsarchive.css';import{Plugin as _0x2e34ee}from'ckeditor5/src/core';import{createDropdown as _0x1f84dc,ViewCollection as _0x127804}from'ckeditor5/src/ui';import _0x2479b1 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x6fc77c}from'../utils/common-translations';import _0x583e40 from'./ui/view/commentsarchiveview';import _0x5f36fe from'./commentsarchive';export default class a extends _0x2e34ee{static get[_0x37ca('0x16')](){return'CommentsArchiveUI';}static get['requires'](){return[_0x5f36fe];}constructor(_0x1651de){super(_0x1651de),this[_0x37ca('0xf')]=new _0x127804(),this[_0x37ca('0x2')]=[];}['init'](){this[_0x37ca('0x25')]['ui'][_0x37ca('0x5')][_0x37ca('0x15')](_0x37ca('0x12'),()=>this[_0x37ca('0xb')]());const _0x498efa=this[_0x37ca('0x25')][_0x37ca('0x2b')][_0x37ca('0x11')](_0x5f36fe),_0x535eb9=this['editor'][_0x37ca('0x2b')][_0x37ca('0x11')](_0x37ca('0x1e')),_0x528377=this[_0x37ca('0x25')][_0x37ca('0x2b')][_0x37ca('0x11')](_0x37ca('0x1c'));this['listenTo'](_0x498efa[_0x37ca('0x2a')],'add',(_0x4644aa,_0x17b7d2)=>{const _0x248e9f=this[_0x37ca('0x25')]['config'][_0x37ca('0x11')](_0x37ca('0x6'));if(!_0x248e9f||_0x17b7d2[_0x37ca('0x27')]===_0x248e9f){const _0x595c81=this[_0x37ca('0xd')](_0x17b7d2[_0x37ca('0x2c')]),_0x2de666=_0x528377[_0x37ca('0x1')][_0x37ca('0x11')](_0x17b7d2);if(!_0x2de666)return void this[_0x37ca('0x2')][_0x37ca('0x19')]({'thread':_0x17b7d2,'position':_0x595c81});const _0x317b49=_0x535eb9[_0x37ca('0x7')](_0x2de666[_0x37ca('0x2d')]);_0x317b49[_0x37ca('0x14')]&&_0x535eb9[_0x37ca('0x28')][_0x37ca('0x13')](_0x317b49),this[_0x37ca('0xf')][_0x37ca('0x15')](_0x317b49['view'],_0x595c81);}}),this[_0x37ca('0x1b')](_0x535eb9[_0x37ca('0x2e')],_0x37ca('0x15'),(_0x48eb30,_0x274ae2)=>{const _0x230723=this['_pendingThreads']['find'](({thread:_0xaa576d})=>{const _0x2d1530=_0x528377[_0x37ca('0x1')][_0x37ca('0x11')](_0xaa576d);return _0x2d1530&&_0x274ae2[_0x37ca('0x10')]===_0x2d1530[_0x37ca('0x2d')];});_0x230723&&(this[_0x37ca('0xf')]['add'](_0x274ae2[_0x37ca('0x2d')],_0x230723[_0x37ca('0x24')]),this[_0x37ca('0x2')][_0x37ca('0x22')](this[_0x37ca('0x2')]['indexOf'](_0x230723),0x1));}),this[_0x37ca('0x1b')](_0x498efa[_0x37ca('0x2a')],'remove',(_0x365337,_0x3157f6)=>{const _0x2abe99=this[_0x37ca('0x25')][_0x37ca('0x3')][_0x37ca('0x11')](_0x37ca('0x6'));if(!_0x2abe99||_0x3157f6[_0x37ca('0x27')]===_0x2abe99){const _0x300d3d=_0x528377[_0x37ca('0x1')]['get'](_0x3157f6),_0x5ec81a=_0x535eb9[_0x37ca('0x7')](_0x300d3d[_0x37ca('0x2d')]);this['annotationViews'][_0x37ca('0x13')](_0x5ec81a['view']),this[_0x37ca('0xe')](_0x5ec81a[_0x37ca('0x1f')]);}});}[_0x37ca('0x29')](_0x4a3153,_0x5c2be3){for(const _0x1afd43 of _0x5c2be3['focusableElements'])_0x1afd43[_0x37ca('0x1a')][_0x37ca('0x26')](_0x37ca('0xc'))&&_0x4a3153[_0x37ca('0x9')][_0x37ca('0x15')](_0x1afd43);this[_0x37ca('0x1b')](_0x5c2be3[_0x37ca('0x1f')],_0x37ca('0x15'),(_0x52d5aa,_0x2577e8)=>{_0x2577e8[_0x37ca('0x1a')][_0x37ca('0x26')]('ck-body')&&_0x4a3153['focusTracker'][_0x37ca('0x15')](_0x2577e8);}),this[_0x37ca('0x1b')](_0x5c2be3[_0x37ca('0x1f')],'remove',(_0x2a1ce4,_0x896f65)=>{_0x896f65[_0x37ca('0x1a')][_0x37ca('0x26')](_0x37ca('0xc'))&&_0x4a3153[_0x37ca('0x9')]['remove'](_0x896f65);});}[_0x37ca('0xd')](_0x18a331){const _0xdfb6d6=this[_0x37ca('0x25')][_0x37ca('0x3')][_0x37ca('0x11')](_0x37ca('0x6')),_0x4f13c2=[...this[_0x37ca('0x25')][_0x37ca('0x2b')][_0x37ca('0x11')](_0x5f36fe)['archivedThreads']][_0x37ca('0x20')](_0x384013=>_0x384013[_0x37ca('0x27')]===_0xdfb6d6)['findIndex'](_0x413cd3=>_0x413cd3[_0x37ca('0x2c')]<_0x18a331);return _0x4f13c2>-0x1?_0x4f13c2-0x1:this[_0x37ca('0xf')][_0x37ca('0x8')];}[_0x37ca('0xb')](){const _0x231b41=this[_0x37ca('0x25')],_0x2a8503=this[_0x37ca('0x25')][_0x37ca('0x2b')]['get']('Annotations'),_0xeb6950=_0x1f84dc(_0x231b41[_0x37ca('0x17')]);_0xeb6950['buttonView'][_0x37ca('0x4')]({'icon':_0x2479b1,'label':_0x6fc77c(_0x231b41[_0x37ca('0x17')],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0xeb6950['panelView']['extendTemplate']({'attributes':{'class':_0x37ca('0x23')}}),_0xeb6950['on'](_0x37ca('0x18'),(_0x496e2d,_0x4367d0,_0x24299f)=>{this[_0x37ca('0x21')]||(this['commentsArchiveView']=new _0x583e40(_0x231b41[_0x37ca('0x17')],this[_0x37ca('0xf')])),_0x24299f?_0xeb6950['panelView'][_0x37ca('0xa')]['add'](this[_0x37ca('0x21')]):_0xeb6950[_0x37ca('0x1d')][_0x37ca('0xa')][_0x37ca('0x13')](this[_0x37ca('0x21')]);});for(const _0x52be8c of this[_0x37ca('0xf')]){const _0xcd2c51=_0x2a8503[_0x37ca('0x7')](_0x52be8c[_0x37ca('0x0')]);this[_0x37ca('0x29')](_0xeb6950,_0xcd2c51);}return _0xeb6950[_0x37ca('0x1b')](this[_0x37ca('0xf')],_0x37ca('0x15'),(_0x497b34,_0x3a9343)=>{const _0x27601e=_0x2a8503['getByInnerView'](_0x3a9343[_0x37ca('0x0')]);this[_0x37ca('0x29')](_0xeb6950,_0x27601e);}),_0xeb6950[_0x37ca('0x1b')](this[_0x37ca('0xf')],_0x37ca('0x13'),(_0xb42c0d,_0xed5ba3)=>{const _0x24b192=_0x2a8503[_0x37ca('0x7')](_0xed5ba3['mainView']);for(const _0x1d138d of _0x24b192[_0x37ca('0x1f')])_0x1d138d['classList'][_0x37ca('0x26')](_0x37ca('0xc'))&&_0xeb6950[_0x37ca('0x9')][_0x37ca('0x13')](_0x1d138d);}),_0xeb6950;}}
23
+ const _0x74a2=['buttonView','locale','annotationViews','requires','filter','COMMENTS_ARCHIVE','Annotations','collaboration.channelId','stopListening','focusableElements','children','init','componentFactory','archivedThreads','_visibleAnnotations','position','push','focusTracker','remove','get','editor','pluginName','isVisible','plugins','config','commentsArchiveView','_createArchiveUIDropdown','ck-body','change:isOpen','listenTo','panelView','find','_handleAnnotationFocusableElements','collection','contains','classList','_calculatePosition','archivedAt','innerView','CommentsArchiveUI','commentsArchive','channelId','_threadToController','ck-comments-archive-dropdown','set','mainView','add','splice','getByInnerView','view','_pendingThreads'];(function(_0x2855de,_0x74a256){const _0x2d90cc=function(_0x2016c3){while(--_0x2016c3){_0x2855de['push'](_0x2855de['shift']());}};_0x2d90cc(++_0x74a256);}(_0x74a2,0x10d));const _0x2d90=function(_0x2855de,_0x74a256){_0x2855de=_0x2855de-0x0;let _0x2d90cc=_0x74a2[_0x2855de];return _0x2d90cc;};import'../../theme/commentsarchive.css';import{Plugin as _0xf1465a}from'ckeditor5/src/core';import{createDropdown as _0x459187,ViewCollection as _0x1d2b5d}from'ckeditor5/src/ui';import _0x5e9033 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x5b094f}from'../utils/common-translations';import _0x4b0bda from'./ui/view/commentsarchiveview';import _0x56e4a4 from'./commentsarchive';export default class a extends _0xf1465a{static get[_0x2d90('0x7')](){return _0x2d90('0x19');}static get[_0x2d90('0x28')](){return[_0x56e4a4];}constructor(_0x56a96a){super(_0x56a96a),this[_0x2d90('0x27')]=new _0x1d2b5d(),this[_0x2d90('0x24')]=[];}[_0x2d90('0x30')](){this[_0x2d90('0x6')]['ui'][_0x2d90('0x31')][_0x2d90('0x20')](_0x2d90('0x1a'),()=>this[_0x2d90('0xc')]());const _0xb4b215=this['editor'][_0x2d90('0x9')][_0x2d90('0x5')](_0x56e4a4),_0x233f2e=this['editor'][_0x2d90('0x9')][_0x2d90('0x5')](_0x2d90('0x2b')),_0x59897b=this[_0x2d90('0x6')][_0x2d90('0x9')][_0x2d90('0x5')]('CommentsRepository');this[_0x2d90('0xf')](_0xb4b215['archivedThreads'],_0x2d90('0x20'),(_0x28296d,_0x228714)=>{const _0x920bf6=this[_0x2d90('0x6')][_0x2d90('0xa')]['get'](_0x2d90('0x2c'));if(!_0x920bf6||_0x228714['channelId']===_0x920bf6){const _0x1ab234=this['_calculatePosition'](_0x228714[_0x2d90('0x17')]),_0x3ca34b=_0x59897b[_0x2d90('0x1c')][_0x2d90('0x5')](_0x228714);if(!_0x3ca34b)return void this[_0x2d90('0x24')][_0x2d90('0x2')]({'thread':_0x228714,'position':_0x1ab234});const _0x35367d=_0x233f2e[_0x2d90('0x22')](_0x3ca34b[_0x2d90('0x23')]);_0x35367d[_0x2d90('0x8')]&&_0x233f2e[_0x2d90('0x0')][_0x2d90('0x4')](_0x35367d),this[_0x2d90('0x27')][_0x2d90('0x20')](_0x35367d[_0x2d90('0x23')],_0x1ab234);}}),this[_0x2d90('0xf')](_0x233f2e[_0x2d90('0x13')],_0x2d90('0x20'),(_0x1132a7,_0x5ae965)=>{const _0x5da1cd=this['_pendingThreads'][_0x2d90('0x11')](({thread:_0x229774})=>{const _0x1e7b8c=_0x59897b[_0x2d90('0x1c')][_0x2d90('0x5')](_0x229774);return _0x1e7b8c&&_0x5ae965[_0x2d90('0x18')]===_0x1e7b8c[_0x2d90('0x23')];});_0x5da1cd&&(this[_0x2d90('0x27')][_0x2d90('0x20')](_0x5ae965[_0x2d90('0x23')],_0x5da1cd[_0x2d90('0x1')]),this[_0x2d90('0x24')][_0x2d90('0x21')](this[_0x2d90('0x24')]['indexOf'](_0x5da1cd),0x1));}),this[_0x2d90('0xf')](_0xb4b215[_0x2d90('0x32')],_0x2d90('0x4'),(_0x582aa9,_0x37234e)=>{const _0x3ed739=this[_0x2d90('0x6')][_0x2d90('0xa')]['get'](_0x2d90('0x2c'));if(!_0x3ed739||_0x37234e[_0x2d90('0x1b')]===_0x3ed739){const _0x1343d6=_0x59897b[_0x2d90('0x1c')]['get'](_0x37234e),_0x3893d9=_0x233f2e[_0x2d90('0x22')](_0x1343d6['view']);this[_0x2d90('0x27')][_0x2d90('0x4')](_0x3893d9[_0x2d90('0x23')]),this[_0x2d90('0x2d')](_0x3893d9['focusableElements']);}});}[_0x2d90('0x12')](_0x1aab8b,_0x528fc6){for(const _0x475de8 of _0x528fc6['focusableElements'])_0x475de8[_0x2d90('0x15')][_0x2d90('0x14')](_0x2d90('0xd'))&&_0x1aab8b[_0x2d90('0x3')]['add'](_0x475de8);this[_0x2d90('0xf')](_0x528fc6['focusableElements'],_0x2d90('0x20'),(_0x170ef5,_0x1d7c88)=>{_0x1d7c88[_0x2d90('0x15')][_0x2d90('0x14')](_0x2d90('0xd'))&&_0x1aab8b[_0x2d90('0x3')][_0x2d90('0x20')](_0x1d7c88);}),this[_0x2d90('0xf')](_0x528fc6[_0x2d90('0x2e')],'remove',(_0x5954a,_0x39b679)=>{_0x39b679[_0x2d90('0x15')][_0x2d90('0x14')]('ck-body')&&_0x1aab8b[_0x2d90('0x3')]['remove'](_0x39b679);});}[_0x2d90('0x16')](_0x94606){const _0xe7405f=this[_0x2d90('0x6')][_0x2d90('0xa')][_0x2d90('0x5')](_0x2d90('0x2c')),_0x4dcbc4=[...this['editor'][_0x2d90('0x9')][_0x2d90('0x5')](_0x56e4a4)[_0x2d90('0x32')]][_0x2d90('0x29')](_0x5b0da0=>_0x5b0da0[_0x2d90('0x1b')]===_0xe7405f)['findIndex'](_0x4af405=>_0x4af405[_0x2d90('0x17')]<_0x94606);return _0x4dcbc4>-0x1?_0x4dcbc4-0x1:this['annotationViews']['length'];}[_0x2d90('0xc')](){const _0x5dc23b=this['editor'],_0x83cbbd=this[_0x2d90('0x6')][_0x2d90('0x9')][_0x2d90('0x5')]('Annotations'),_0x2ede47=_0x459187(_0x5dc23b['locale']);_0x2ede47[_0x2d90('0x25')][_0x2d90('0x1e')]({'icon':_0x5e9033,'label':_0x5b094f(_0x5dc23b[_0x2d90('0x26')],_0x2d90('0x2a')),'tooltip':!0x0}),_0x2ede47[_0x2d90('0x10')]['extendTemplate']({'attributes':{'class':_0x2d90('0x1d')}}),_0x2ede47['on'](_0x2d90('0xe'),(_0xac9303,_0x560961,_0x4ac980)=>{this['commentsArchiveView']||(this[_0x2d90('0xb')]=new _0x4b0bda(_0x5dc23b['locale'],this[_0x2d90('0x27')])),_0x4ac980?_0x2ede47[_0x2d90('0x10')][_0x2d90('0x2f')][_0x2d90('0x20')](this[_0x2d90('0xb')]):_0x2ede47['panelView'][_0x2d90('0x2f')][_0x2d90('0x4')](this[_0x2d90('0xb')]);});for(const _0x2b8b65 of this[_0x2d90('0x27')]){const _0x8b54d9=_0x83cbbd[_0x2d90('0x22')](_0x2b8b65[_0x2d90('0x1f')]);this[_0x2d90('0x12')](_0x2ede47,_0x8b54d9);}return _0x2ede47[_0x2d90('0xf')](this[_0x2d90('0x27')],_0x2d90('0x20'),(_0x5c40a2,_0x473921)=>{const _0x1034ce=_0x83cbbd[_0x2d90('0x22')](_0x473921[_0x2d90('0x1f')]);this['_handleAnnotationFocusableElements'](_0x2ede47,_0x1034ce);}),_0x2ede47['listenTo'](this[_0x2d90('0x27')],'remove',(_0x54645c,_0x14e304)=>{const _0x5db5b0=_0x83cbbd[_0x2d90('0x22')](_0x14e304[_0x2d90('0x1f')]);for(const _0x1b33b2 of _0x5db5b0['focusableElements'])_0x1b33b2['classList'][_0x2d90('0x14')]('ck-body')&&_0x2ede47[_0x2d90('0x3')]['remove'](_0x1b33b2);}),_0x2ede47;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2011=['reopenCommentThread','text','affectsData','model','isEqual','refreshVisibility','name','_threadToController','pluginName','rootName','enqueueChange','isResolved','createPositionBefore','data','size','collaboration.channelId','view','attachTo','isCollapsed','fetchCommentThread','ariaLiveAnnouncer','_detachCommentThread','low','$graveyard','isLocal','differ','dataDowncast','getWalker','set','focus','_handleMarkerAddAndRemove','root','editor','markerToHighlight','state','change','schema','resolveCommentThread','init','createRange','managedUsingOperations','$marker','delete','once','_attachMarkerToThread','reconvertMarker','markers','_getTextContext','startsWith','editing','config','item','getByInnerView','getChangedMarkers','upcast','_initializeMarkerConverters','elementToElement','locale','_initAriaMarkerChangeAnnouncements','scrollToThreadMarker','removeMarker','group','destroy','hasDomSelection','newRange','_threads','for','comment:','end','setUnlinkedAt','addCommentThread','_getTargetForId','getAllMarkersForId','get','switchReadOnly','push','_attachResolvedThread','split','unlinkedAt','ck-comment-marker--active','isAttached','requires','change:activeMarker','getCommentThread','markerToData','openNewCommentThread','change:isReadOnly','activeMarker','ignoreResolvedComments','setContext','from','getAttribute','_reconvertMarkers','getRange','length','markerName','registerAnnotation','getItems','getCommentThreads','ready','plugins','conversion','archivedAt','isThreadsLoadingPaused','comment','destroyed','clear','listenTo','substring','hasMarkerForId','add','addComment','_hasTargetInContent','ENTER_COMMENT_ANNOUNCEMENT','document','_handleThreadMarker','consume','consumable'];(function(_0x3e842a,_0x2011f3){const _0x5095df=function(_0x3a8eea){while(--_0x3a8eea){_0x3e842a['push'](_0x3e842a['shift']());}};_0x5095df(++_0x2011f3);}(_0x2011,0x74));const _0x5095=function(_0x3e842a,_0x2011f3){_0x3e842a=_0x3e842a-0x0;let _0x5095df=_0x2011[_0x3e842a];return _0x5095df;};import{Plugin as _0x1a60b9}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x36efa8}from'ckeditor5/src/utils';import _0x1156c7 from'./commentsrepository';import _0x16add1 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x1da77c,getAllMarkersDomElementsSorted as _0x3dea6e}from'ckeditor5-collaboration/src/collaboration-core';import _0x19c92e from'../annotations/editorannotations';import _0x59d27b from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x37d519 from'./integrations/importword';import _0x223d44 from'../annotations/annotations';import{getTranslation as _0x279d27}from'../utils/common-translations';export default class r extends _0x1a60b9{static get[_0x5095('0x53')](){return[_0x1156c7,_0x19c92e,_0x59d27b,_0x37d519];}static get[_0x5095('0xa')](){return'CommentsEditing';}constructor(_0x19bc8f){super(_0x19bc8f),this[_0x5095('0x1e')](_0x5095('0x69'),!0x0),_0x19bc8f[_0x5095('0xf')][_0x5095('0x2d')](_0x5095('0x65'),()=>this[_0x5095('0x69')]=!0x1),this[_0x5095('0x1e')](_0x5095('0x59'),null),this['on'](_0x5095('0x54'),(_0x285c93,_0x377515,_0x4f7fe2,_0x3f9c38)=>{const _0x203880=_0x4f7fe2?ot(_0x4f7fe2)['id']:null;if(_0x19bc8f['model'][_0x5095('0x25')](()=>{if(_0x203880){const _0xf9bef4=this['getAllMarkersForId'](_0x203880);for(const _0x213eff of _0xf9bef4)_0x19bc8f[_0x5095('0x33')][_0x5095('0x2f')](_0x213eff);}if(_0x3f9c38){const {id:_0x363249}=ot(_0x3f9c38),_0x4fedfe=this[_0x5095('0x4a')](_0x363249);for(const _0x292ddf of _0x4fedfe)_0x19bc8f[_0x5095('0x33')]['reconvertMarker'](_0x292ddf);}}),_0x203880){const _0x1bd195=_0x19bc8f['plugins'][_0x5095('0x4b')](_0x1156c7)['getCommentThread'](_0x203880);_0x1bd195&&_0x1bd195[_0x5095('0xd')]&&this[_0x5095('0x3d')](_0x203880);}}),this[_0x5095('0x3c')]();}[_0x5095('0x28')](){const _0x893fd=this[_0x5095('0x22')],_0x325b2a=_0x893fd[_0x5095('0x66')]['get'](_0x1156c7),_0x3a153c=_0x893fd['config'][_0x5095('0x4b')]('collaboration.channelId');_0x893fd['commands'][_0x5095('0x70')]('addCommentThread',new _0x16add1(_0x893fd)),this[_0x5095('0x6d')](_0x893fd,_0x5095('0x58'),(_0x74dae,_0x1a606d,_0x5718a6)=>{_0x325b2a[_0x5095('0x4c')](_0x5718a6,_0x893fd['config'][_0x5095('0x4b')](_0x5095('0x11')));}),this[_0x5095('0x6d')](_0x325b2a,tt(_0x5095('0x48'),_0x3a153c),(_0x5b37b1,{threadId:_0x1592d8})=>{const _0x386086=this[_0x5095('0x22')]['plugins'][_0x5095('0x4b')](_0x1156c7)[_0x5095('0x55')](_0x1592d8);_0x386086&&_0x386086[_0x5095('0x68')]&&this[_0x5095('0x4e')](_0x1592d8);}),this['listenTo'](_0x325b2a,tt('removeCommentThread',_0x3a153c),(_0x370607,{threadId:_0x12c720})=>{_0x893fd[_0x5095('0x5')][_0x5095('0xc')]({'isUndoable':!0x1},_0x3ff27e=>{const _0x3748a9=this['getAllMarkersForId'](_0x12c720);for(const _0x411c5f of _0x3748a9)_0x3ff27e['removeMarker'](_0x411c5f);});}),this[_0x5095('0x6d')](_0x325b2a,tt(_0x5095('0x27'),_0x3a153c),(_0x318ab5,{threadId:_0x290cf7})=>{(this[_0x5095('0x4e')](_0x290cf7),this[_0x5095('0x5e')](_0x290cf7),this['editor']['editing']['view'][_0x5095('0x41')])&&(this['editor'][_0x5095('0x66')][_0x5095('0x4b')](_0x1156c7)[_0x5095('0x55')](_0x290cf7)[_0x5095('0x50')]||this[_0x5095('0x22')]['editing'][_0x5095('0x12')][_0x5095('0x1f')]());},{'priority':_0x5095('0x18')}),this[_0x5095('0x6d')](_0x325b2a,tt(_0x5095('0x2'),_0x3a153c),(_0x2fd2c1,{threadId:_0x18e0ee})=>{this[_0x5095('0x5e')](_0x18e0ee);},{'priority':_0x5095('0x18')}),this[_0x5095('0x6d')](_0x325b2a,tt(_0x5095('0x71'),_0x3a153c),(_0x3112cc,{threadId:_0x49f04f,isFromAdapter:_0x2ce485})=>{const _0x833a02=this[_0x5095('0x4a')](_0x49f04f);if(_0x2ce485||0x0==_0x833a02[_0x5095('0x60')]||!_0x325b2a['hasCommentThread'](_0x49f04f))return;0x1===_0x325b2a[_0x5095('0x55')](_0x49f04f)[_0x5095('0x60')]&&_0x893fd[_0x5095('0x5')][_0x5095('0xc')]({'isUndoable':!0x1},_0x5ef733=>{for(const _0x3bf45c of _0x833a02)_0x5ef733['updateMarker'](_0x3bf45c,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5095('0x18')}),this['_initializeMarkerConverters'](),this[_0x5095('0x20')]();}[_0x5095('0x40')](){const _0x1c8243=this[_0x5095('0x22')]['plugins'][_0x5095('0x4b')](_0x1156c7),_0x52bee4=this[_0x5095('0x22')]['config'][_0x5095('0x4b')]('collaboration.channelId');for(const _0xb8adbd of _0x1c8243[_0x5095('0x64')]({'channelId':_0x52bee4}))_0x1c8243[_0x5095('0x17')](_0xb8adbd['id']),_0x1c8243[_0x5095('0x43')][_0x5095('0x2c')](_0xb8adbd['id']);super['destroy']();}['hasMarkerForId'](_0xba6e2d){return this[_0x5095('0x4a')](_0xba6e2d)[_0x5095('0x60')]>0x0;}['getAllMarkersForId'](_0x42e47e){const _0xec992b=[];for(const _0x3726ae of this['editor'][_0x5095('0x5')][_0x5095('0x30')])_0x3726ae[_0x5095('0x8')][_0x5095('0x32')](_0x5095('0x45')+_0x42e47e)&&_0xec992b[_0x5095('0x4d')](_0x3726ae);return _0xec992b;}[_0x5095('0x3d')](_0x55f469){const _0x4f799c=this['_getTargetForId'](_0x55f469);_0x4f799c&&setTimeout(()=>{this[_0x5095('0x59')]&&ot(this['activeMarker'])['id']===_0x55f469&&_0x36efa8({'target':_0x4f799c[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x55f98b){this[_0x5095('0x22')][_0x5095('0x5')]['change'](()=>{for(const _0x3b61fd of this['getAllMarkersForId'](_0x55f98b))this['editor']['editing'][_0x5095('0x2f')](_0x3b61fd);});}['_attachResolvedThread'](_0x58c672){const _0x31d2f6=this['editor'][_0x5095('0x66')][_0x5095('0x4b')](_0x1156c7),_0x439bf8=this[_0x5095('0x22')][_0x5095('0x66')][_0x5095('0x4b')](_0x19c92e),_0x579ee9=_0x31d2f6[_0x5095('0x55')](_0x58c672);if(!_0x579ee9['isAttached']){const _0x477074=_0x579ee9['attachTo'](()=>this['_getTargetForId'](_0x579ee9['id']));_0x439bf8['registerAnnotation'](_0x477074),_0x579ee9[_0x5095('0x72')]=!0x1;}}[_0x5095('0x39')](){const _0x20944f=this[_0x5095('0x22')];_0x20944f[_0x5095('0x67')][_0x5095('0x44')]('editingDowncast')[_0x5095('0x23')]({'model':_0x5095('0x6a'),'view':(_0x25f407,_0x110dbc)=>{const {id:_0x89f945}=ot(_0x25f407['markerName']),_0x4a96c6=_0x20944f[_0x5095('0x66')][_0x5095('0x4b')](_0x1156c7)[_0x5095('0x55')](_0x89f945),_0xa4b7c5=this['activeMarker']&&ot(this['activeMarker'])['id']===_0x89f945;if(_0x4a96c6&&_0x4a96c6[_0x5095('0xd')]&&!_0xa4b7c5&&_0x25f407[_0x5095('0x35')])return _0x110dbc[_0x5095('0x1')][_0x5095('0x0')](_0x25f407['item'],'addMarker:'+_0x25f407[_0x5095('0x61')]),_0x110dbc[_0x5095('0x1')][_0x5095('0x0')](_0x25f407[_0x5095('0x35')],'removeMarker:'+_0x25f407['markerName']),{'classes':[]};const _0x1bedcd=['ck-comment-marker'];return _0xa4b7c5&&_0x1bedcd[_0x5095('0x4d')](_0x5095('0x51')),{'classes':_0x1bedcd,'attributes':{'data-comment':_0x89f945}};}}),_0x20944f['conversion'][_0x5095('0x44')](_0x5095('0x1c'))[_0x5095('0x56')]({'model':'comment','view':(_0x2ee138,{options:_0x2d7b26})=>{const _0x184d8d=_0x20944f[_0x5095('0x66')][_0x5095('0x4b')](_0x1156c7),_0x40a25d=_0x20944f[_0x5095('0x5')][_0x5095('0x30')]['get'](_0x2ee138),{id:_0x196e7f,part:_0x7115c1}=ot(_0x2ee138);if(_0x40a25d&&!_0x40a25d[_0x5095('0x4')])return null;if(_0x2d7b26[_0x5095('0x5a')]){const _0x42fce6=_0x184d8d[_0x5095('0x55')](_0x196e7f);if(_0x42fce6&&_0x42fce6[_0x5095('0xd')])return null;}return{'group':_0x5095('0x6a'),'name':_0x7115c1?_0x196e7f+':'+_0x7115c1:_0x196e7f};}}),_0x20944f['conversion']['for'](_0x5095('0x38'))[_0x5095('0x3a')]({'view':{'name':_0x5095('0x6a'),'attributes':{'id':/^\w/}},'model':(_0x3a9d34,{writer:_0x31f82b})=>_0x31f82b['createElement'](_0x5095('0x2b'),{'data-name':'comment:'+_0x3a9d34[_0x5095('0x5d')]('id')})}),_0x20944f[_0x5095('0x67')]['for'](_0x5095('0x38'))['dataToMarker']({'view':_0x5095('0x6a')});}['_handleMarkerAddAndRemove'](){const _0x8f8d1d=this[_0x5095('0x22')],_0x5b1284=_0x8f8d1d[_0x5095('0x66')][_0x5095('0x4b')](_0x1156c7),_0x16e65a=new Set(),_0x1ca806=new Set();_0x8f8d1d[_0x5095('0x5')][_0x5095('0x74')]['registerPostFixer'](_0xb21057=>{let _0x5a38ca=!0x1;for(const {name:_0xd9d965,data:_0x3411b7}of _0x8f8d1d[_0x5095('0x5')][_0x5095('0x74')]['differ'][_0x5095('0x37')]()){const {group:_0x8af498,id:_0x4d8e7c}=ot(_0xd9d965);let _0x17457f=_0x3411b7[_0x5095('0x42')];if(_0x5095('0x6a')!==_0x8af498||!_0x17457f)continue;const _0x4105c8=_0x5095('0x19')===_0x17457f[_0x5095('0x21')][_0x5095('0xb')];_0x4105c8||(_0x17457f=et(_0x17457f,_0x8f8d1d[_0x5095('0x5')]),!_0x17457f||_0x17457f[_0x5095('0x14')]||!_0x3411b7[_0x5095('0x42')]||_0x17457f[_0x5095('0x6')](_0x3411b7['newRange']))?_0x8f8d1d[_0x5095('0x5')]['hasContent'](_0x17457f)&&!_0x4105c8?this[_0x5095('0x69')]?_0x16e65a[_0x5095('0x70')](_0xd9d965):this[_0x5095('0x75')](_0xd9d965,_0x4d8e7c):(_0x1ca806[_0x5095('0x70')](_0xd9d965),_0x16e65a['delete'](_0xd9d965),_0xb21057[_0x5095('0x3e')](_0xd9d965),_0x5a38ca=!0x0):(_0xb21057['updateMarker'](_0xd9d965,{'range':_0x17457f}),_0x5a38ca=!0x0);}return _0x5a38ca;}),this['on']('change:isThreadsLoadingPaused',(_0x3b73d8,_0x3612f5,_0x32fecf)=>{if(!_0x32fecf&&_0x16e65a[_0x5095('0x10')])for(const _0x473d5a of _0x16e65a){const {id:_0x4aae88}=ot(_0x473d5a);_0x16e65a[_0x5095('0x2c')](_0x473d5a),_0x8f8d1d['model'][_0x5095('0x30')]['get'](_0x473d5a)&&this[_0x5095('0x75')](_0x473d5a,_0x4aae88);}}),this[_0x5095('0x6d')](_0x8f8d1d['model'][_0x5095('0x74')],_0x5095('0x25'),(_0x5a646f,_0x38fa69)=>{for(const {name:_0x5e1f95,data:{newRange:_0x2b3383}}of _0x8f8d1d[_0x5095('0x5')][_0x5095('0x74')][_0x5095('0x1b')][_0x5095('0x37')]()){const {group:_0x5b6a20,id:_0x479ab7}=ot(_0x5e1f95);if(_0x5095('0x6a')!==_0x5b6a20)continue;const _0x57b15d=_0x5b1284[_0x5095('0x55')](_0x479ab7),_0x377181=this[_0x5095('0x6f')](_0x479ab7);_0x57b15d&&(_0x57b15d[_0x5095('0x72')]||_0x8f8d1d[_0x5095('0x33')][_0x5095('0x12')][_0x5095('0x2d')]('render',()=>{const _0x3a6580=_0x8f8d1d[_0x5095('0x66')][_0x5095('0x4b')](_0x223d44),_0xbd227=_0x5b1284[_0x5095('0x9')][_0x5095('0x4b')](_0x57b15d)['view'];_0x3a6580['getByInnerView'](_0xbd227)[_0x5095('0x7')]();},{'priority':_0x5095('0x18')}),_0x57b15d[_0x5095('0x72')]=_0x377181||!!_0x2b3383),_0x2b3383||(_0x1ca806[_0x5095('0x70')](_0x5e1f95),_0x16e65a[_0x5095('0x2c')](_0x5e1f95));}if(_0x38fa69[_0x5095('0x1a')])for(const _0x33bdce of _0x1ca806){const {id:_0x1ebbf2}=ot(_0x33bdce),_0x2856a8=_0x5b1284[_0x5095('0x55')](_0x1ebbf2),_0x38c62b=this[_0x5095('0x6f')](_0x1ebbf2);_0x16e65a['delete'](_0x33bdce),!_0x2856a8||_0x38c62b||_0x2856a8[_0x5095('0x50')]||_0x2856a8[_0x5095('0x47')](new Date());}_0x1ca806[_0x5095('0x6c')]();});}[_0x5095('0x49')](_0x2f2aec){const _0x8ff74f=this[_0x5095('0x22')],_0x47009a=this['getAllMarkersForId'](_0x2f2aec);return _0x3dea6e(_0x8ff74f[_0x5095('0x33')],_0x47009a);}[_0x5095('0x31')](_0x5566ed){const _0x24d448=this[_0x5095('0x4a')](_0x5566ed);let _0x53196a='',_0x2c7ce9=!0x1;for(const _0x56e6a3 of _0x24d448){const _0x138a18=_0x56e6a3[_0x5095('0x5f')]();for(const _0x441ee9 of Array[_0x5095('0x5c')](_0x138a18[_0x5095('0x63')]()))_0x441ee9['is']('$textProxy')?(_0x53196a&&_0x2c7ce9&&(_0x53196a+='\x20',_0x2c7ce9=!0x1),_0x53196a+=_0x441ee9['data']):_0x2c7ce9=!0x0;_0x2c7ce9=!0x0;}return _0x53196a[_0x5095('0x6e')](0x0,0x96);}['_attachMarkerToThread'](_0x1cf2ee,_0x482d70){const _0x1539bd=this[_0x5095('0x22')],_0x5c362c=_0x1539bd[_0x5095('0x66')][_0x5095('0x4b')](_0x1156c7);let _0x39d4b3=_0x5c362c[_0x5095('0x55')](_0x482d70);const _0x5e7464=_0x1539bd[_0x5095('0x34')][_0x5095('0x4b')](_0x5095('0x11')),_0xa0d2a7=_0x1539bd['plugins'][_0x5095('0x4b')](_0x19c92e);if(_0x39d4b3&&(_0x39d4b3['unlinkedAt']&&_0x39d4b3[_0x5095('0x47')](null),_0x39d4b3[_0x5095('0x52')]))return _0x39d4b3;return!this[_0x5095('0x4a')](_0x482d70)[0x0][_0x5095('0x2a')]?_0x1539bd['editing']['view']['once']('render',()=>{if(_0x5c362c[_0x5095('0x55')](_0x482d70))return;const _0xa3f0a5=_0x1539bd[_0x5095('0x66')][_0x5095('0x4b')](_0x223d44);_0x39d4b3=_0x5c362c[_0x5095('0x57')]({'channelId':_0x5e7464,'threadId':_0x482d70,'target':()=>this['_getTargetForId'](_0x482d70),'context':{'type':_0x5095('0x3'),'value':this[_0x5095('0x31')](_0x482d70)}});const _0x530617=_0x5c362c[_0x5095('0x9')]['get'](_0x39d4b3)[_0x5095('0x12')],_0x2806b0=_0xa3f0a5[_0x5095('0x36')](_0x530617);_0x2806b0&&_0xa0d2a7[_0x5095('0x62')](_0x2806b0);},{'priority':_0x5095('0x18')}):_0x5c362c[_0x5095('0x15')]({'channelId':_0x5e7464,'threadId':_0x482d70})['then'](_0x5ba12c=>{if(_0x5095('0x6b')!==_0x1539bd[_0x5095('0x24')]){if(_0x39d4b3=_0x5ba12c,_0x39d4b3&&!_0x39d4b3['isAttached']){const _0x1636a9=_0x39d4b3[_0x5095('0x13')](()=>this[_0x5095('0x49')](_0x482d70));_0xa0d2a7['registerAnnotation'](_0x1636a9),_0x39d4b3[_0x5095('0xd')]&&this[_0x5095('0x5e')](_0x482d70);}else{if(!_0x39d4b3){const _0x1d6368=this[_0x5095('0x4a')](_0x482d70);_0x1539bd[_0x5095('0x5')][_0x5095('0x25')](_0x249ed7=>{for(const _0x5e89c1 of _0x1d6368)_0x249ed7[_0x5095('0x3e')](_0x5e89c1);});}}}}),_0x39d4b3;}[_0x5095('0x75')](_0x13c791,_0x29339f){const _0x1d2416=this[_0x5095('0x2e')](_0x13c791,_0x29339f);_0x1d2416&&!_0x1d2416['context']&&_0x1d2416[_0x5095('0x5b')]({'type':_0x5095('0x3'),'value':this[_0x5095('0x31')](_0x29339f)});}['_initAriaMarkerChangeAnnouncements'](){const _0xf1d711=this['editor'];_0x1da77c(_0xf1d711[_0x5095('0x5')],({left:_0x14ea09,entered:_0x40ced6})=>{const _0x2b4a28=[];for(const _0xdfa49 of _0x14ea09)if(rt(_0xdfa49)){_0x2b4a28[_0x5095('0x4d')](_0x279d27(_0xf1d711['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0xe480f3 of _0x40ced6)if(rt(_0xe480f3)){_0x2b4a28[_0x5095('0x4d')](_0x279d27(_0xf1d711[_0x5095('0x3b')],_0x5095('0x73')));break;}_0x2b4a28[_0x5095('0x60')]&&_0xf1d711['ui'][_0x5095('0x16')]['announce']('comments',_0x2b4a28['join']('\x20'));});}}function tt(_0x1b7e2c,_0x914bd1){return _0x914bd1?_0x1b7e2c+':'+_0x914bd1:_0x1b7e2c;}function ot(_0x3adb59){const _0x30910c=_0x3adb59[_0x5095('0x4f')](':');return{'group':_0x30910c[0x0],'id':_0x30910c[0x1],'part':_0x30910c[0x2]};}function et(_0x53a7a8,_0x19e09f){const _0x534143=_0x19e09f[_0x5095('0x26')],_0x24eb40=_0x19e09f[_0x5095('0x29')](_0x53a7a8['start']);for(const _0x199114 of _0x53a7a8[_0x5095('0x1d')]()){const {type:_0x38145d,item:_0x3eac38,nextPosition:_0x2936d9}=_0x199114;if(_0x5095('0x3')===_0x38145d||_0x534143['isObject'](_0x3eac38)){const _0x370a53=_0x19e09f[_0x5095('0xe')](_0x3eac38);_0x24eb40[_0x5095('0x14')]&&(_0x24eb40['start']=_0x370a53),_0x24eb40[_0x5095('0x46')]=_0x2936d9;}}return _0x24eb40;}function rt(_0x577065){return _0x5095('0x6a')===ot(_0x577065[_0x5095('0x8')])[_0x5095('0x3f')];}
23
+ const _0x5ac1=['_handleThreadMarker','hasMarkerForId','addCommentThread','collaboration.channelId','change:activeMarker','addMarker:','editing','root','_detachCommentThread','item','updateMarker','getRange','delete','enqueueChange','$textProxy','text','markers','getWalker','model','getAttribute','scrollToThreadMarker','_attachResolvedThread','_getTargetForId','isResolved','setUnlinkedAt','affectsData','render','dataDowncast','_reconvertMarkers','document','isThreadsLoadingPaused','createRange','attachTo','removeMarker','commands','isObject','destroy','_handleMarkerAddAndRemove','start','once','fetchCommentThread','reconvertMarker','isEqual','switchReadOnly','createPositionBefore','group','change:isReadOnly','set','isCollapsed','hasCommentThread','for','openNewCommentThread','_getTextContext','consume','context','comments','registerAnnotation','upcast','config','archivedAt','getAllMarkersForId','then','conversion','unlinkedAt','_threadToController','getByInnerView','get','addComment','length','_hasTargetInContent','getItems','add','view','push','isAttached','isLocal','differ','getCommentThreads','LEAVE_COMMENT_ANNOUNCEMENT','split','startsWith','schema','low','rootName','markerToData','ariaLiveAnnouncer','removeCommentThread','activeMarker','consumable','setContext','removeMarker:','name','_initAriaMarkerChangeAnnouncements','_attachMarkerToThread','editor','dataToMarker','locale','size','change:isThreadsLoadingPaused','_threads','plugins','data','refreshVisibility','substring','join','change','init','listenTo','CommentsEditing','state','requires','newRange','markerName','announce','comment','editingDowncast','registerPostFixer','getChangedMarkers','getCommentThread','ck-comment-marker--active','$marker'];(function(_0x56fbb8,_0x5ac126){const _0x376a95=function(_0x4e25a2){while(--_0x4e25a2){_0x56fbb8['push'](_0x56fbb8['shift']());}};_0x376a95(++_0x5ac126);}(_0x5ac1,0x1d1));const _0x376a=function(_0x56fbb8,_0x5ac126){_0x56fbb8=_0x56fbb8-0x0;let _0x376a95=_0x5ac1[_0x56fbb8];return _0x376a95;};import{Plugin as _0x1e3676}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x11d671}from'ckeditor5/src/utils';import _0x42654b from'./commentsrepository';import _0x571ea8 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x14416c,getAllMarkersDomElementsSorted as _0x80c220}from'ckeditor5-collaboration/src/collaboration-core';import _0x35ced3 from'../annotations/editorannotations';import _0x4d24bd from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x516e72 from'./integrations/importword';import _0x3d77a2 from'../annotations/annotations';import{getTranslation as _0x459d07}from'../utils/common-translations';export default class r extends _0x1e3676{static get[_0x376a('0x8')](){return[_0x42654b,_0x35ced3,_0x4d24bd,_0x516e72];}static get['pluginName'](){return _0x376a('0x6');}constructor(_0x11aa10){super(_0x11aa10),this[_0x376a('0x42')](_0x376a('0x31'),!0x0),_0x11aa10[_0x376a('0x78')]['once']('ready',()=>this[_0x376a('0x31')]=!0x1),this['set']('activeMarker',null),this['on'](_0x376a('0x17'),(_0x48a0a6,_0x3c3329,_0x4a7db3,_0x4e38c0)=>{const _0x3f96f2=_0x4a7db3?ot(_0x4a7db3)['id']:null;if(_0x11aa10[_0x376a('0x25')]['change'](()=>{if(_0x3f96f2){const _0x3c5fef=this['getAllMarkersForId'](_0x3f96f2);for(const _0x32e296 of _0x3c5fef)_0x11aa10['editing'][_0x376a('0x3c')](_0x32e296);}if(_0x4e38c0){const {id:_0x200a90}=ot(_0x4e38c0),_0x2d94c9=this['getAllMarkersForId'](_0x200a90);for(const _0x4f5da2 of _0x2d94c9)_0x11aa10[_0x376a('0x19')]['reconvertMarker'](_0x4f5da2);}}),_0x3f96f2){const _0x470db2=_0x11aa10[_0x376a('0x77')][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0x3f96f2);_0x470db2&&_0x470db2[_0x376a('0x2a')]&&this[_0x376a('0x27')](_0x3f96f2);}}),this['_initAriaMarkerChangeAnnouncements']();}[_0x376a('0x4')](){const _0x79280e=this[_0x376a('0x71')],_0x4c1608=_0x79280e[_0x376a('0x77')]['get'](_0x42654b),_0x464e9b=_0x79280e[_0x376a('0x4d')]['get'](_0x376a('0x16'));_0x79280e[_0x376a('0x35')]['add'](_0x376a('0x15'),new _0x571ea8(_0x79280e)),this[_0x376a('0x5')](_0x79280e,_0x376a('0x41'),(_0x268aec,_0x243a96,_0x5b6dcc)=>{_0x4c1608[_0x376a('0x3e')](_0x5b6dcc,_0x79280e[_0x376a('0x4d')][_0x376a('0x55')]('collaboration.channelId'));}),this[_0x376a('0x5')](_0x4c1608,tt(_0x376a('0x15'),_0x464e9b),(_0x2463d0,{threadId:_0x52c8dd})=>{const _0x184594=this[_0x376a('0x71')][_0x376a('0x77')][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0x52c8dd);_0x184594&&_0x184594[_0x376a('0x4e')]&&this[_0x376a('0x28')](_0x52c8dd);}),this[_0x376a('0x5')](_0x4c1608,tt(_0x376a('0x69'),_0x464e9b),(_0x23f472,{threadId:_0x1ab6fd})=>{_0x79280e['model'][_0x376a('0x20')]({'isUndoable':!0x1},_0x3f75fb=>{const _0x40f761=this[_0x376a('0x4f')](_0x1ab6fd);for(const _0x20d60c of _0x40f761)_0x3f75fb[_0x376a('0x34')](_0x20d60c);});}),this[_0x376a('0x5')](_0x4c1608,tt('resolveCommentThread',_0x464e9b),(_0x1fd5c4,{threadId:_0xdaebaf})=>{(this[_0x376a('0x28')](_0xdaebaf),this['_reconvertMarkers'](_0xdaebaf),this['editor'][_0x376a('0x19')][_0x376a('0x5b')]['hasDomSelection'])&&(this[_0x376a('0x71')]['plugins'][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0xdaebaf)[_0x376a('0x52')]||this[_0x376a('0x71')][_0x376a('0x19')][_0x376a('0x5b')]['focus']());},{'priority':'low'}),this[_0x376a('0x5')](_0x4c1608,tt('reopenCommentThread',_0x464e9b),(_0x38c61f,{threadId:_0x15daa3})=>{this[_0x376a('0x2f')](_0x15daa3);},{'priority':_0x376a('0x65')}),this[_0x376a('0x5')](_0x4c1608,tt(_0x376a('0x56'),_0x464e9b),(_0x435ed5,{threadId:_0x227af7,isFromAdapter:_0x320ba8})=>{const _0x5ecebc=this['getAllMarkersForId'](_0x227af7);if(_0x320ba8||0x0==_0x5ecebc[_0x376a('0x57')]||!_0x4c1608[_0x376a('0x44')](_0x227af7))return;0x1===_0x4c1608[_0x376a('0x10')](_0x227af7)['length']&&_0x79280e['model'][_0x376a('0x20')]({'isUndoable':!0x1},_0x183a32=>{for(const _0x4a29bc of _0x5ecebc)_0x183a32[_0x376a('0x1d')](_0x4a29bc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this[_0x376a('0x38')]();}['destroy'](){const _0x1ead5f=this[_0x376a('0x71')]['plugins'][_0x376a('0x55')](_0x42654b),_0x357a01=this[_0x376a('0x71')][_0x376a('0x4d')][_0x376a('0x55')](_0x376a('0x16'));for(const _0x2cb021 of _0x1ead5f[_0x376a('0x60')]({'channelId':_0x357a01}))_0x1ead5f[_0x376a('0x1b')](_0x2cb021['id']),_0x1ead5f[_0x376a('0x76')][_0x376a('0x1f')](_0x2cb021['id']);super[_0x376a('0x37')]();}[_0x376a('0x14')](_0x35d34f){return this[_0x376a('0x4f')](_0x35d34f)['length']>0x0;}[_0x376a('0x4f')](_0x11af53){const _0x3ba4a3=[];for(const _0x3a8094 of this[_0x376a('0x71')]['model']['markers'])_0x3a8094['name'][_0x376a('0x63')]('comment:'+_0x11af53)&&_0x3ba4a3[_0x376a('0x5c')](_0x3a8094);return _0x3ba4a3;}[_0x376a('0x27')](_0x327b0a){const _0x3d0435=this[_0x376a('0x29')](_0x327b0a);_0x3d0435&&setTimeout(()=>{this[_0x376a('0x6a')]&&ot(this[_0x376a('0x6a')])['id']===_0x327b0a&&_0x11d671({'target':_0x3d0435[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xfe5818){this[_0x376a('0x71')][_0x376a('0x25')][_0x376a('0x3')](()=>{for(const _0x139d03 of this[_0x376a('0x4f')](_0xfe5818))this['editor'][_0x376a('0x19')][_0x376a('0x3c')](_0x139d03);});}['_attachResolvedThread'](_0x15d9f4){const _0x2c8b9a=this[_0x376a('0x71')][_0x376a('0x77')][_0x376a('0x55')](_0x42654b),_0x1ea714=this[_0x376a('0x71')][_0x376a('0x77')][_0x376a('0x55')](_0x35ced3),_0x470175=_0x2c8b9a[_0x376a('0x10')](_0x15d9f4);if(!_0x470175[_0x376a('0x5d')]){const _0x22fe1f=_0x470175['attachTo'](()=>this[_0x376a('0x29')](_0x470175['id']));_0x1ea714['registerAnnotation'](_0x22fe1f),_0x470175[_0x376a('0x58')]=!0x1;}}['_initializeMarkerConverters'](){const _0x4f9f63=this[_0x376a('0x71')];_0x4f9f63['conversion'][_0x376a('0x45')](_0x376a('0xd'))['markerToHighlight']({'model':_0x376a('0xc'),'view':(_0x70050c,_0x4e4c94)=>{const {id:_0x2cf339}=ot(_0x70050c[_0x376a('0xa')]),_0x4f2dec=_0x4f9f63[_0x376a('0x77')][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0x2cf339),_0x41c378=this['activeMarker']&&ot(this[_0x376a('0x6a')])['id']===_0x2cf339;if(_0x4f2dec&&_0x4f2dec[_0x376a('0x2a')]&&!_0x41c378&&_0x70050c['item'])return _0x4e4c94['consumable'][_0x376a('0x48')](_0x70050c[_0x376a('0x1c')],_0x376a('0x18')+_0x70050c['markerName']),_0x4e4c94[_0x376a('0x6b')][_0x376a('0x48')](_0x70050c[_0x376a('0x1c')],_0x376a('0x6d')+_0x70050c['markerName']),{'classes':[]};const _0x48d8f8=['ck-comment-marker'];return _0x41c378&&_0x48d8f8[_0x376a('0x5c')](_0x376a('0x11')),{'classes':_0x48d8f8,'attributes':{'data-comment':_0x2cf339}};}}),_0x4f9f63[_0x376a('0x51')][_0x376a('0x45')](_0x376a('0x2e'))[_0x376a('0x67')]({'model':_0x376a('0xc'),'view':(_0x2fcd88,{options:_0x1e4489})=>{const _0x336543=_0x4f9f63[_0x376a('0x77')][_0x376a('0x55')](_0x42654b),_0x15fe89=_0x4f9f63[_0x376a('0x25')]['markers']['get'](_0x2fcd88),{id:_0x1023ce,part:_0x24ee4a}=ot(_0x2fcd88);if(_0x15fe89&&!_0x15fe89[_0x376a('0x2c')])return null;if(_0x1e4489['ignoreResolvedComments']){const _0x58e38e=_0x336543[_0x376a('0x10')](_0x1023ce);if(_0x58e38e&&_0x58e38e[_0x376a('0x2a')])return null;}return{'group':_0x376a('0xc'),'name':_0x24ee4a?_0x1023ce+':'+_0x24ee4a:_0x1023ce};}}),_0x4f9f63[_0x376a('0x51')][_0x376a('0x45')](_0x376a('0x4c'))['elementToElement']({'view':{'name':_0x376a('0xc'),'attributes':{'id':/^\w/}},'model':(_0xf56158,{writer:_0x204dec})=>_0x204dec['createElement'](_0x376a('0x12'),{'data-name':'comment:'+_0xf56158[_0x376a('0x26')]('id')})}),_0x4f9f63[_0x376a('0x51')][_0x376a('0x45')]('upcast')[_0x376a('0x72')]({'view':_0x376a('0xc')});}[_0x376a('0x38')](){const _0x40d519=this['editor'],_0x5a722d=_0x40d519[_0x376a('0x77')][_0x376a('0x55')](_0x42654b),_0x5dddff=new Set(),_0xec15a=new Set();_0x40d519[_0x376a('0x25')][_0x376a('0x30')][_0x376a('0xe')](_0x423927=>{let _0x53cb3c=!0x1;for(const {name:_0x4a58e5,data:_0xe925e9}of _0x40d519[_0x376a('0x25')][_0x376a('0x30')][_0x376a('0x5f')]['getChangedMarkers']()){const {group:_0x2befb0,id:_0x53d45a}=ot(_0x4a58e5);let _0x51fb2d=_0xe925e9[_0x376a('0x9')];if(_0x376a('0xc')!==_0x2befb0||!_0x51fb2d)continue;const _0xa1ab6f='$graveyard'===_0x51fb2d[_0x376a('0x1a')][_0x376a('0x66')];_0xa1ab6f||(_0x51fb2d=et(_0x51fb2d,_0x40d519[_0x376a('0x25')]),!_0x51fb2d||_0x51fb2d[_0x376a('0x43')]||!_0xe925e9[_0x376a('0x9')]||_0x51fb2d[_0x376a('0x3d')](_0xe925e9['newRange']))?_0x40d519['model']['hasContent'](_0x51fb2d)&&!_0xa1ab6f?this[_0x376a('0x31')]?_0x5dddff['add'](_0x4a58e5):this['_handleThreadMarker'](_0x4a58e5,_0x53d45a):(_0xec15a['add'](_0x4a58e5),_0x5dddff[_0x376a('0x1f')](_0x4a58e5),_0x423927['removeMarker'](_0x4a58e5),_0x53cb3c=!0x0):(_0x423927[_0x376a('0x1d')](_0x4a58e5,{'range':_0x51fb2d}),_0x53cb3c=!0x0);}return _0x53cb3c;}),this['on'](_0x376a('0x75'),(_0x4c0bd1,_0x5e82f7,_0x198a75)=>{if(!_0x198a75&&_0x5dddff[_0x376a('0x74')])for(const _0x5d09cc of _0x5dddff){const {id:_0x5db44b}=ot(_0x5d09cc);_0x5dddff[_0x376a('0x1f')](_0x5d09cc),_0x40d519[_0x376a('0x25')][_0x376a('0x23')][_0x376a('0x55')](_0x5d09cc)&&this[_0x376a('0x13')](_0x5d09cc,_0x5db44b);}}),this[_0x376a('0x5')](_0x40d519[_0x376a('0x25')][_0x376a('0x30')],_0x376a('0x3'),(_0x17cd81,_0xaea202)=>{for(const {name:_0x3771d3,data:{newRange:_0x1d2f9c}}of _0x40d519[_0x376a('0x25')][_0x376a('0x30')][_0x376a('0x5f')][_0x376a('0xf')]()){const {group:_0x4694dd,id:_0x19acbe}=ot(_0x3771d3);if('comment'!==_0x4694dd)continue;const _0xfacc96=_0x5a722d[_0x376a('0x10')](_0x19acbe),_0x1c0127=this[_0x376a('0x14')](_0x19acbe);_0xfacc96&&(_0xfacc96[_0x376a('0x58')]||_0x40d519['editing']['view'][_0x376a('0x3a')](_0x376a('0x2d'),()=>{const _0x25b859=_0x40d519[_0x376a('0x77')][_0x376a('0x55')](_0x3d77a2),_0xfec2c3=_0x5a722d[_0x376a('0x53')][_0x376a('0x55')](_0xfacc96)[_0x376a('0x5b')];_0x25b859[_0x376a('0x54')](_0xfec2c3)[_0x376a('0x0')]();},{'priority':_0x376a('0x65')}),_0xfacc96[_0x376a('0x58')]=_0x1c0127||!!_0x1d2f9c),_0x1d2f9c||(_0xec15a[_0x376a('0x5a')](_0x3771d3),_0x5dddff[_0x376a('0x1f')](_0x3771d3));}if(_0xaea202[_0x376a('0x5e')])for(const _0x346561 of _0xec15a){const {id:_0x593caf}=ot(_0x346561),_0x3d7a9a=_0x5a722d[_0x376a('0x10')](_0x593caf),_0x285468=this[_0x376a('0x14')](_0x593caf);_0x5dddff[_0x376a('0x1f')](_0x346561),!_0x3d7a9a||_0x285468||_0x3d7a9a[_0x376a('0x52')]||_0x3d7a9a[_0x376a('0x2b')](new Date());}_0xec15a['clear']();});}['_getTargetForId'](_0x1ddf8f){const _0x3b3224=this[_0x376a('0x71')],_0x44f55a=this[_0x376a('0x4f')](_0x1ddf8f);return _0x80c220(_0x3b3224[_0x376a('0x19')],_0x44f55a);}[_0x376a('0x47')](_0x359237){const _0x16a715=this[_0x376a('0x4f')](_0x359237);let _0x332b1a='',_0x423eec=!0x1;for(const _0x30b0ce of _0x16a715){const _0x513f7b=_0x30b0ce[_0x376a('0x1e')]();for(const _0x50676b of Array['from'](_0x513f7b[_0x376a('0x59')]()))_0x50676b['is'](_0x376a('0x21'))?(_0x332b1a&&_0x423eec&&(_0x332b1a+='\x20',_0x423eec=!0x1),_0x332b1a+=_0x50676b[_0x376a('0x78')]):_0x423eec=!0x0;_0x423eec=!0x0;}return _0x332b1a[_0x376a('0x1')](0x0,0x96);}[_0x376a('0x70')](_0xd1e7d4,_0x42afe1){const _0x45c225=this[_0x376a('0x71')],_0xfae551=_0x45c225[_0x376a('0x77')][_0x376a('0x55')](_0x42654b);let _0x1c9555=_0xfae551[_0x376a('0x10')](_0x42afe1);const _0x3c56d1=_0x45c225[_0x376a('0x4d')][_0x376a('0x55')]('collaboration.channelId'),_0x55a250=_0x45c225['plugins'][_0x376a('0x55')](_0x35ced3);if(_0x1c9555&&(_0x1c9555['unlinkedAt']&&_0x1c9555['setUnlinkedAt'](null),_0x1c9555['isAttached']))return _0x1c9555;return!this[_0x376a('0x4f')](_0x42afe1)[0x0]['managedUsingOperations']?_0x45c225['editing']['view'][_0x376a('0x3a')](_0x376a('0x2d'),()=>{if(_0xfae551[_0x376a('0x10')](_0x42afe1))return;const _0xbd5b6b=_0x45c225['plugins']['get'](_0x3d77a2);_0x1c9555=_0xfae551[_0x376a('0x46')]({'channelId':_0x3c56d1,'threadId':_0x42afe1,'target':()=>this[_0x376a('0x29')](_0x42afe1),'context':{'type':_0x376a('0x22'),'value':this['_getTextContext'](_0x42afe1)}});const _0x3909e2=_0xfae551[_0x376a('0x53')][_0x376a('0x55')](_0x1c9555)[_0x376a('0x5b')],_0x4c4985=_0xbd5b6b[_0x376a('0x54')](_0x3909e2);_0x4c4985&&_0x55a250[_0x376a('0x4b')](_0x4c4985);},{'priority':_0x376a('0x65')}):_0xfae551[_0x376a('0x3b')]({'channelId':_0x3c56d1,'threadId':_0x42afe1})[_0x376a('0x50')](_0x1b3fd9=>{if('destroyed'!==_0x45c225[_0x376a('0x7')]){if(_0x1c9555=_0x1b3fd9,_0x1c9555&&!_0x1c9555[_0x376a('0x5d')]){const _0x1568c8=_0x1c9555[_0x376a('0x33')](()=>this[_0x376a('0x29')](_0x42afe1));_0x55a250[_0x376a('0x4b')](_0x1568c8),_0x1c9555[_0x376a('0x2a')]&&this[_0x376a('0x2f')](_0x42afe1);}else{if(!_0x1c9555){const _0x5e2d07=this[_0x376a('0x4f')](_0x42afe1);_0x45c225['model'][_0x376a('0x3')](_0x1541ac=>{for(const _0x12edb2 of _0x5e2d07)_0x1541ac[_0x376a('0x34')](_0x12edb2);});}}}}),_0x1c9555;}[_0x376a('0x13')](_0x477a60,_0x15c3b1){const _0x2f9841=this[_0x376a('0x70')](_0x477a60,_0x15c3b1);_0x2f9841&&!_0x2f9841[_0x376a('0x49')]&&_0x2f9841[_0x376a('0x6c')]({'type':_0x376a('0x22'),'value':this['_getTextContext'](_0x15c3b1)});}[_0x376a('0x6f')](){const _0x24a3cf=this[_0x376a('0x71')];_0x14416c(_0x24a3cf['model'],({left:_0x4bccbe,entered:_0x5eb154})=>{const _0x2b2e68=[];for(const _0x2c5294 of _0x4bccbe)if(rt(_0x2c5294)){_0x2b2e68[_0x376a('0x5c')](_0x459d07(_0x24a3cf[_0x376a('0x73')],_0x376a('0x61')));break;}for(const _0x1d606d of _0x5eb154)if(rt(_0x1d606d)){_0x2b2e68[_0x376a('0x5c')](_0x459d07(_0x24a3cf[_0x376a('0x73')],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x2b2e68[_0x376a('0x57')]&&_0x24a3cf['ui'][_0x376a('0x68')][_0x376a('0xb')](_0x376a('0x4a'),_0x2b2e68[_0x376a('0x2')]('\x20'));});}}function tt(_0x240cab,_0xebdd60){return _0xebdd60?_0x240cab+':'+_0xebdd60:_0x240cab;}function ot(_0x4fa8f5){const _0x5d8883=_0x4fa8f5[_0x376a('0x62')](':');return{'group':_0x5d8883[0x0],'id':_0x5d8883[0x1],'part':_0x5d8883[0x2]};}function et(_0x55e127,_0x364252){const _0x437ea6=_0x364252[_0x376a('0x64')],_0x23e083=_0x364252[_0x376a('0x32')](_0x55e127[_0x376a('0x39')]);for(const _0x1a701e of _0x55e127[_0x376a('0x24')]()){const {type:_0x21848c,item:_0x1583e4,nextPosition:_0x55c3fc}=_0x1a701e;if(_0x376a('0x22')===_0x21848c||_0x437ea6[_0x376a('0x36')](_0x1583e4)){const _0x520992=_0x364252[_0x376a('0x3f')](_0x1583e4);_0x23e083[_0x376a('0x43')]&&(_0x23e083[_0x376a('0x39')]=_0x520992),_0x23e083['end']=_0x55c3fc;}}return _0x23e083;}function rt(_0x11d3e3){return _0x376a('0xc')===ot(_0x11d3e3[_0x376a('0x6e')])[_0x376a('0x40')];}