@ckeditor/ckeditor5-comments 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231217.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 (85) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +4 -3
  3. package/src/annotations/annotation.d.ts +6 -6
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.d.ts +3 -3
  6. package/src/annotations/annotationcollection.js +1 -1
  7. package/src/annotations/annotations.d.ts +6 -6
  8. package/src/annotations/annotations.js +1 -1
  9. package/src/annotations/annotationsuis.d.ts +5 -5
  10. package/src/annotations/annotationsuis.js +1 -1
  11. package/src/annotations/editorannotations.d.ts +4 -4
  12. package/src/annotations/editorannotations.js +1 -1
  13. package/src/annotations/inlineannotations.d.ts +6 -6
  14. package/src/annotations/inlineannotations.js +1 -1
  15. package/src/annotations/narrowsidebar.d.ts +6 -6
  16. package/src/annotations/narrowsidebar.js +1 -1
  17. package/src/annotations/sidebar.d.ts +5 -5
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.d.ts +2 -2
  20. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  21. package/src/annotations/view/annotationview.d.ts +2 -2
  22. package/src/annotations/view/annotationview.js +1 -1
  23. package/src/annotations/view/sidebaritemview.d.ts +2 -2
  24. package/src/annotations/view/sidebaritemview.js +1 -1
  25. package/src/annotations/view/sidebarview.d.ts +2 -2
  26. package/src/annotations/view/sidebarview.js +1 -1
  27. package/src/annotations/widesidebar.d.ts +5 -5
  28. package/src/annotations/widesidebar.js +1 -1
  29. package/src/augmentation.d.ts +1 -1
  30. package/src/comments/addcommentthreadcommand.d.ts +1 -1
  31. package/src/comments/addcommentthreadcommand.js +1 -1
  32. package/src/comments/commentsarchive.d.ts +4 -4
  33. package/src/comments/commentsarchive.js +1 -1
  34. package/src/comments/commentsarchiveui.d.ts +5 -5
  35. package/src/comments/commentsarchiveui.js +1 -1
  36. package/src/comments/commentsediting.d.ts +6 -6
  37. package/src/comments/commentsediting.js +1 -1
  38. package/src/comments/commentsrepository.d.ts +11 -11
  39. package/src/comments/commentsrepository.js +1 -1
  40. package/src/comments/commentsui.d.ts +5 -5
  41. package/src/comments/commentsui.js +1 -1
  42. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
  43. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  44. package/src/comments/integrations/importword.d.ts +1 -1
  45. package/src/comments/integrations/importword.js +1 -1
  46. package/src/comments/ui/commenteditor/commenteditor.d.ts +4 -4
  47. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  48. package/src/comments/ui/commenteditor/commenteditorui.d.ts +3 -3
  49. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +3 -3
  51. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  52. package/src/comments/ui/commentthreadcontroller.d.ts +4 -4
  53. package/src/comments/ui/commentthreadcontroller.js +1 -1
  54. package/src/comments/ui/view/basecommentthreadview.d.ts +8 -8
  55. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  56. package/src/comments/ui/view/basecommentview.d.ts +4 -4
  57. package/src/comments/ui/view/basecommentview.js +1 -1
  58. package/src/comments/ui/view/collapsedcommentsview.d.ts +2 -2
  59. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  60. package/src/comments/ui/view/commentcontentview.d.ts +2 -2
  61. package/src/comments/ui/view/commentcontentview.js +1 -1
  62. package/src/comments/ui/view/commentinputview.d.ts +4 -4
  63. package/src/comments/ui/view/commentinputview.js +1 -1
  64. package/src/comments/ui/view/commentsarchiveview.d.ts +3 -3
  65. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.d.ts +5 -5
  67. package/src/comments/ui/view/commentslistview.js +1 -1
  68. package/src/comments/ui/view/commentthreadheaderview.d.ts +3 -3
  69. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  70. package/src/comments/ui/view/commentthreadinputview.d.ts +5 -5
  71. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  72. package/src/comments/ui/view/commentthreadview.d.ts +7 -7
  73. package/src/comments/ui/view/commentthreadview.js +1 -1
  74. package/src/comments/ui/view/commentview.d.ts +8 -8
  75. package/src/comments/ui/view/commentview.js +1 -1
  76. package/src/comments.d.ts +10 -10
  77. package/src/comments.js +1 -1
  78. package/src/commentsonly.d.ts +2 -2
  79. package/src/commentsonly.js +1 -1
  80. package/src/config.d.ts +3 -3
  81. package/src/index.d.ts +20 -20
  82. package/src/index.js +1 -1
  83. package/src/utils/common-translations.d.ts +1 -1
  84. package/src/utils/common-translations.js +1 -1
  85. package/src/utils/createmutationobserver.js +1 -1
@@ -6,11 +6,11 @@
6
6
  * @module comments/annotations/sidebar
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
10
- import type { View } from 'ckeditor5/src/ui';
11
- import SidebarView from './view/sidebarview';
12
- import SidebarItemView from './view/sidebaritemview';
13
- import type Annotation from './annotation';
9
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import type { View } from 'ckeditor5/src/ui.js';
11
+ import SidebarView from './view/sidebarview.js';
12
+ import SidebarItemView from './view/sidebaritemview.js';
13
+ import type Annotation from './annotation.js';
14
14
  /**
15
15
  * Displays {@link module:comments/annotations/annotationcollection~AnnotationCollection annotations} inside a sidebar.
16
16
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17db=['isAnimationDisabled','class','change:bottom','_alignBeforeItem','bind','stopListening','get','_alignAfterItem','_getMaxAvailableTop','_alignToTargetRect','_attachToContainer','locale','addAnnotation','change:targetRect','_activeAnnotation','_annotations','_sidebarItemViewToAnnotation','content','_detachFromContainer','clear','render','set','_alignForBottomChange','element','bottom','change:top','_recalculate','context','setContainer','length','object','appendChild','_updateLastItem','top','destroy','Sidebar','sidebar.preventScrollOutOfView','delete','_setItemTop','define','_targetTop','list','container','getSidebarItemView','add','remove','target','_recalculateBuffer','refresh','listenTo','_createSidebarView','_destroySidebarItemView','_lastItem','view','rearrange','getIndex','isActive','updateHeight','_getTargetTop','config','last','_annotationToSidebarItemView','minHeight','change:_lastItem','unbind','height','_getItemBefore','_spaceBetweenItems','_getItemAfter','sidebar.container','_alignForTopChange'];(function(_0x4c74fd,_0x17db18){const _0x31175=function(_0x1d563d){while(--_0x1d563d){_0x4c74fd['push'](_0x4c74fd['shift']());}};_0x31175(++_0x17db18);}(_0x17db,0x1a5));const _0x3117=function(_0x4c74fd,_0x17db18){_0x4c74fd=_0x4c74fd-0x0;let _0x31175=_0x17db[_0x4c74fd];return _0x31175;};import{ContextPlugin as _0x224ff5}from'ckeditor5/src/core';import{Rect as _0xbb97af,CKEditorError as _0x5e58f6}from'ckeditor5/src/utils';import _0x24ec11 from'./view/sidebarview';import _0x23b8b6 from'./view/sidebaritemview';export default class z extends _0x224ff5{static get['pluginName'](){return _0x3117('0x28');}constructor(_0xfb3a72){super(_0xfb3a72),this[_0x3117('0x1a')]('_lastItem',void 0x0),this[_0x3117('0x3a')]=this[_0x3117('0x37')](),this[_0x3117('0x1a')](_0x3117('0x2f'),null),this['_spaceBetweenItems']=0x19,this[_0x3117('0x15')]=new Map(),this[_0x3117('0x42')]=new Map(),this[_0x3117('0x20')]['config'][_0x3117('0x2c')]('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this[_0x3117('0x13')]=null,this[_0x3117('0x34')]=[];}['init'](){const _0x193d21=this[_0x3117('0x20')][_0x3117('0x40')][_0x3117('0xb')](_0x3117('0x3'));_0x193d21&&this['setContainer'](_0x193d21);}[_0x3117('0x21')](_0x50ce43){if(!y(_0x50ce43))throw new _0x5e58f6('sidebar-setcontainer-invalid-element');this[_0x3117('0x2f')]=_0x50ce43;}[_0x3117('0xf')]({viewClass:_0x37469f='',spaceBetweenItems:_0x2bc45b=0x19}={}){if(!y(this[_0x3117('0x2f')]))throw new _0x5e58f6('sidebar-attachtocontainer-missing-container',this);this['container'][_0x3117('0x24')](this['view'][_0x3117('0x1c')]),this[_0x3117('0x3a')][_0x3117('0x6')]=_0x37469f,this[_0x3117('0x1')]=_0x2bc45b;}[_0x3117('0x3b')]({removedAnnotation:_0x382d84,previousAnnotation:_0x381538,nextAnnotation:_0x17b702}){const _0x5909c7=this['getSidebarItemView'](_0x382d84);this[_0x3117('0x3a')][_0x3117('0x2e')][_0x3117('0x32')](_0x5909c7),this[_0x3117('0x38')](_0x382d84),_0x381538&&this[_0x3117('0xe')](this[_0x3117('0x30')](_0x381538)),_0x17b702&&this[_0x3117('0xe')](this[_0x3117('0x30')](_0x17b702)),this[_0x3117('0x25')]();}[_0x3117('0x35')]({blurredAnnotation:_0x38ce46,activatedAnnotation:_0xc00d82,disableAnimationOnActivatedAnnotation:_0x4d9c5c}){if(this['_activeAnnotation']=_0xc00d82,_0x38ce46){_0x38ce46[_0x3117('0x3d')]=!0x1;const _0xb19768=this[_0x3117('0x30')](_0x38ce46);_0xb19768&&_0x4d9c5c&&(_0xb19768[_0x3117('0x5')]=!0x1);}if(_0xc00d82){const _0x57b5cd=this['getSidebarItemView'](_0xc00d82);_0x57b5cd&&(_0xc00d82[_0x3117('0x3d')]=!0x0,_0x4d9c5c&&(_0x57b5cd[_0x3117('0x5')]=!0x0,_0x57b5cd['top']+=0x1),this[_0x3117('0xe')](_0x57b5cd));}}[_0x3117('0x17')](_0x1ea0ab){if(this[_0x3117('0x3a')][_0x3117('0x1c')][_0x3117('0x32')](),_0x1ea0ab)for(const _0x5751b8 of _0x1ea0ab)this[_0x3117('0x38')](_0x5751b8);this[_0x3117('0x3a')][_0x3117('0x2e')][_0x3117('0x18')](),this[_0x3117('0x3a')][_0x3117('0x6')]='',this[_0x3117('0x39')]=null;}[_0x3117('0x11')](_0x28786b,_0x1eab28){_0x1eab28||(_0x1eab28=_0x28786b[_0x3117('0x3a')]);const _0x1a64f3=new _0x23b8b6(this[_0x3117('0x20')][_0x3117('0x10')]);this['_sidebarItemViewToAnnotation'][_0x3117('0x1a')](_0x1a64f3,_0x28786b),this[_0x3117('0x42')][_0x3117('0x1a')](_0x28786b,_0x1a64f3),_0x1a64f3[_0x3117('0x16')][_0x3117('0x31')](_0x1eab28),this[_0x3117('0x36')](_0x28786b[_0x3117('0x3a')],_0x3117('0x12'),(_0x4afeb1,_0x1400db,_0x2f298e)=>{const _0x8a2304=this[_0x3117('0x3f')](_0x28786b,_0x2f298e);_0x1a64f3[_0x3117('0x2d')]!=_0x8a2304&&(_0x1a64f3[_0x3117('0x2d')]=_0x8a2304,this[_0x3117('0x2b')](_0x1a64f3,_0x8a2304));}),this[_0x3117('0x36')](_0x1a64f3,_0x3117('0x1e'),()=>{this[_0x3117('0x1f')](_0x1a64f3,_0x3117('0x26'));}),this[_0x3117('0x36')](_0x1a64f3,_0x3117('0x7'),()=>{this['_recalculate'](_0x1a64f3,_0x3117('0x1d'));}),this[_0x3117('0xe')](_0x1a64f3);const _0x519932=this['_getItemBefore'](_0x1a64f3);if(_0x519932)this['_alignAfterItem'](_0x519932,_0x1a64f3)||this['_alignToTargetRect'](_0x1a64f3);else this['_alignToTargetRect'](_0x1a64f3);return this[_0x3117('0x25')](),this[_0x3117('0x3a')]['list'][_0x3117('0x31')](_0x1a64f3),_0x1a64f3;}['_alignForTopChange'](_0x175478){if(!_0x175478[_0x3117('0x16')][_0x3117('0x22')])return;const _0x22a600=this[_0x3117('0x0')](_0x175478);if(!_0x22a600)return;const _0x554211=this[_0x3117('0x15')][_0x3117('0xb')](_0x22a600),_0xd7dcf0=this['_activeAnnotation'];_0xd7dcf0&&_0xd7dcf0===_0x554211?this[_0x3117('0xc')](_0x22a600,_0x175478):this[_0x3117('0x8')](_0x175478,_0x22a600);}[_0x3117('0x1b')](_0x494f63){if(!_0x494f63[_0x3117('0x16')][_0x3117('0x22')])return;const _0x550988=this['_getItemAfter'](_0x494f63);if(!_0x550988)return;const _0x2b0bc5=this[_0x3117('0x15')][_0x3117('0xb')](_0x550988),_0x178ac2=this[_0x3117('0x20')]['config'][_0x3117('0xb')](_0x3117('0x29')),_0xdbe035=this['_activeAnnotation'];_0xdbe035&&_0xdbe035===_0x2b0bc5&&_0x178ac2?(this[_0x3117('0x8')](_0x550988,_0x494f63),this[_0x3117('0xc')](_0x494f63,_0x550988)):_0xdbe035&&_0xdbe035===_0x2b0bc5?this[_0x3117('0x8')](_0x550988,_0x494f63):this[_0x3117('0xc')](_0x494f63,_0x550988);}[_0x3117('0x1f')](_0x50fa11,_0x41e495){0x0===this[_0x3117('0x34')][_0x3117('0x22')]&&setTimeout(()=>{for(const {sidebarItemView:_0x1d57eb,changedProp:_0x4bfe90}of this[_0x3117('0x34')])_0x3117('0x26')===_0x4bfe90?this[_0x3117('0x4')](_0x1d57eb):this['_alignForBottomChange'](_0x1d57eb);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x50fa11,'changedProp':_0x41e495});}[_0x3117('0x30')](_0x48f8a5){return this[_0x3117('0x42')][_0x3117('0xb')](_0x48f8a5);}['destroy'](){this['stopListening'](),this[_0x3117('0x3a')]['destroy']();}[_0x3117('0x38')](_0x950842){const _0x484054=this[_0x3117('0x30')](_0x950842);this[_0x3117('0xa')](_0x484054),this[_0x3117('0xa')](_0x950842[_0x3117('0x3a')]),_0x484054[_0x3117('0x27')](),this[_0x3117('0x42')][_0x3117('0x2a')](_0x950842),this['_sidebarItemViewToAnnotation'][_0x3117('0x2a')](_0x484054);}[_0x3117('0x37')](){const _0x38b716=new _0x24ec11(this[_0x3117('0x20')][_0x3117('0x10')]);return _0x38b716[_0x3117('0x19')](),this['on'](_0x3117('0x44'),(_0x45e123,_0x37d032,_0x4a6689,_0x101fbb)=>{_0x101fbb&&_0x38b716[_0x3117('0x45')](_0x3117('0x43')),_0x4a6689?_0x38b716[_0x3117('0x9')](_0x3117('0x43'))['to'](_0x4a6689,_0x3117('0x1d')):_0x38b716[_0x3117('0x43')]=null;}),_0x38b716;}[_0x3117('0x25')](){var _0x4c8c18;this[_0x3117('0x39')]=(null===(_0x4c8c18=this['_annotations'])||void 0x0===_0x4c8c18?void 0x0:_0x4c8c18['last'])?this[_0x3117('0x30')](this['_annotations'][_0x3117('0x41')]):null;}[_0x3117('0x0')](_0x54befa){var _0xb04cde;const _0x2c8b85=this[_0x3117('0x15')][_0x3117('0xb')](_0x54befa),_0x2a2dc3=_0x2c8b85&&(null===(_0xb04cde=this['_annotations'])||void 0x0===_0xb04cde?void 0x0:_0xb04cde[_0x3117('0xb')](this[_0x3117('0x14')][_0x3117('0x3c')](_0x2c8b85)-0x1));return _0x2a2dc3&&this['getSidebarItemView'](_0x2a2dc3)||null;}[_0x3117('0x2')](_0x24ad35){var _0x5b0b83;const _0x3fbdc5=this[_0x3117('0x15')][_0x3117('0xb')](_0x24ad35),_0x13016a=_0x3fbdc5&&(null===(_0x5b0b83=this[_0x3117('0x14')])||void 0x0===_0x5b0b83?void 0x0:_0x5b0b83['get'](this['_annotations'][_0x3117('0x3c')](_0x3fbdc5)+0x1));return _0x13016a&&this[_0x3117('0x30')](_0x13016a)||null;}['_alignBeforeItem'](_0x242245,_0x87fa1d){_0x242245[_0x3117('0x3e')]();const _0x3ca0db=H(_0x87fa1d[_0x3117('0x1d')]+this[_0x3117('0x1')],_0x242245['top']);return!!_0x3ca0db&&(this[_0x3117('0x2b')](_0x87fa1d,_0x87fa1d['top']-_0x3ca0db),!0x0);}[_0x3117('0xc')](_0x1ddb55,_0xd05afc){_0x1ddb55[_0x3117('0x3e')]();const _0x58cd4e=H(_0x1ddb55[_0x3117('0x1d')]+this[_0x3117('0x1')],_0xd05afc['top']);return!!_0x58cd4e&&(this[_0x3117('0x2b')](_0xd05afc,_0xd05afc['top']+_0x58cd4e,!0x1),!0x0);}[_0x3117('0xe')](_0x1ddc9a){const _0x415cd2=this['_sidebarItemViewToAnnotation'][_0x3117('0xb')](_0x1ddc9a);if(!_0x415cd2||!_0x415cd2[_0x3117('0x33')]||!_0x415cd2['targetRect'])return;const _0x263328=this[_0x3117('0x3f')](_0x415cd2,_0x415cd2['targetRect']);this[_0x3117('0x2b')](_0x1ddc9a,_0x263328);}[_0x3117('0x3f')](_0x2f48af,_0x30067d){if(null===_0x30067d)return 0x0;if(_0x2f48af[_0x3117('0x33')]instanceof _0xbb97af)return _0x30067d['top'];{const _0x11cd75=new _0xbb97af(this[_0x3117('0x3a')][_0x3117('0x1c')])[_0x3117('0x26')];return _0x30067d[_0x3117('0x26')]-_0x11cd75;}}[_0x3117('0x2b')](_0x56716f,_0x47d5e4,_0x51e4a3=this[_0x3117('0x20')][_0x3117('0x40')][_0x3117('0xb')](_0x3117('0x29'))){_0x51e4a3&&(_0x47d5e4=Math['max'](_0x47d5e4,this['_getMaxAvailableTop'](_0x56716f))),_0x56716f[_0x3117('0x26')]=_0x47d5e4;}[_0x3117('0xd')](_0x254f38){let _0x47458f=this[_0x3117('0x0')](_0x254f38),_0x444b30=0x0;for(;_0x47458f;)_0x47458f['updateHeight'](),_0x444b30+=this[_0x3117('0x1')]+_0x47458f[_0x3117('0x46')],_0x47458f=this[_0x3117('0x0')](_0x47458f);return _0x444b30;}}function H(_0x5821ec,_0x16ee14){return Math['max'](_0x5821ec-_0x16ee14,0x0);}function y(_0x39c6c9){return null!==_0x39c6c9&&_0x3117('0x23')==typeof _0x39c6c9&&0x1===_0x39c6c9['nodeType'];}
23
+ const _0x37df=['list','getSidebarItemView','refresh','Sidebar','bind','_getMaxAvailableTop','container','_createSidebarView','_recalculateBuffer','init','_annotationToSidebarItemView','context','isAnimationDisabled','pluginName','_spaceBetweenItems','_getItemAfter','view','change:_lastItem','_targetTop','define','_sidebarItemViewToAnnotation','top','_destroySidebarItemView','rearrange','_updateLastItem','_recalculate','render','_getTargetTop','clear','_detachFromContainer','target','set','_setItemTop','get','change:top','setContainer','_lastItem','_getItemBefore','_alignBeforeItem','listenTo','_alignToTargetRect','_activeAnnotation','targetRect','bottom','destroy','last','length','_alignAfterItem','_attachToContainer','unbind','content','_alignForBottomChange','minHeight','remove','sidebar-setcontainer-invalid-element','sidebar.preventScrollOutOfView','_alignForTopChange','element','addAnnotation','config','_annotations','locale','height','getIndex','stopListening','max','add','updateHeight'];(function(_0x464d37,_0x37dfa9){const _0x3e659c=function(_0x4586c5){while(--_0x4586c5){_0x464d37['push'](_0x464d37['shift']());}};_0x3e659c(++_0x37dfa9);}(_0x37df,0x18b));const _0x3e65=function(_0x464d37,_0x37dfa9){_0x464d37=_0x464d37-0x0;let _0x3e659c=_0x37df[_0x464d37];return _0x3e659c;};import{ContextPlugin as _0x1638af}from'ckeditor5/src/core.js';import{Rect as _0x13578f,CKEditorError as _0x11b4bf}from'ckeditor5/src/utils.js';import _0x212e6f from'./view/sidebarview.js';import _0x498100 from'./view/sidebaritemview.js';export default class z extends _0x1638af{static get[_0x3e65('0x1a')](){return _0x3e65('0x10');}constructor(_0x5b3a8f){super(_0x5b3a8f),this[_0x3e65('0x2c')]('_lastItem',void 0x0),this['view']=this[_0x3e65('0x14')](),this[_0x3e65('0x2c')]('container',null),this[_0x3e65('0x1b')]=0x19,this[_0x3e65('0x21')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x3e65('0x18')][_0x3e65('0x4')][_0x3e65('0x20')](_0x3e65('0x0'),!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x3e65('0x16')](){const _0x549a1b=this[_0x3e65('0x18')][_0x3e65('0x4')]['get']('sidebar.container');_0x549a1b&&this[_0x3e65('0x30')](_0x549a1b);}[_0x3e65('0x30')](_0x5f27cf){if(!y(_0x5f27cf))throw new _0x11b4bf(_0x3e65('0x43'));this[_0x3e65('0x13')]=_0x5f27cf;}[_0x3e65('0x3d')]({viewClass:_0x47775f='',spaceBetweenItems:_0x393501=0x19}={}){if(!y(this[_0x3e65('0x13')]))throw new _0x11b4bf('sidebar-attachtocontainer-missing-container',this);this[_0x3e65('0x13')]['appendChild'](this['view'][_0x3e65('0x2')]),this[_0x3e65('0x1d')]['class']=_0x47775f,this['_spaceBetweenItems']=_0x393501;}[_0x3e65('0x24')]({removedAnnotation:_0x2a1c4f,previousAnnotation:_0x1999a3,nextAnnotation:_0x347f95}){const _0x187905=this[_0x3e65('0xe')](_0x2a1c4f);this[_0x3e65('0x1d')][_0x3e65('0xd')][_0x3e65('0x42')](_0x187905),this[_0x3e65('0x23')](_0x2a1c4f),_0x1999a3&&this['_alignToTargetRect'](this[_0x3e65('0xe')](_0x1999a3)),_0x347f95&&this[_0x3e65('0x35')](this['getSidebarItemView'](_0x347f95)),this['_updateLastItem']();}[_0x3e65('0xf')]({blurredAnnotation:_0x31819b,activatedAnnotation:_0x28cf40,disableAnimationOnActivatedAnnotation:_0x4882d1}){if(this['_activeAnnotation']=_0x28cf40,_0x31819b){_0x31819b['isActive']=!0x1;const _0x3ca498=this[_0x3e65('0xe')](_0x31819b);_0x3ca498&&_0x4882d1&&(_0x3ca498[_0x3e65('0x19')]=!0x1);}if(_0x28cf40){const _0x149923=this[_0x3e65('0xe')](_0x28cf40);_0x149923&&(_0x28cf40['isActive']=!0x0,_0x4882d1&&(_0x149923[_0x3e65('0x19')]=!0x0,_0x149923[_0x3e65('0x22')]+=0x1),this[_0x3e65('0x35')](_0x149923));}}[_0x3e65('0x2a')](_0xd0cd59){if(this[_0x3e65('0x1d')][_0x3e65('0x2')][_0x3e65('0x42')](),_0xd0cd59)for(const _0x2d3e6c of _0xd0cd59)this['_destroySidebarItemView'](_0x2d3e6c);this[_0x3e65('0x1d')][_0x3e65('0xd')][_0x3e65('0x29')](),this[_0x3e65('0x1d')]['class']='',this[_0x3e65('0x31')]=null;}[_0x3e65('0x3')](_0x140500,_0x42e533){_0x42e533||(_0x42e533=_0x140500['view']);const _0x2f55e6=new _0x498100(this[_0x3e65('0x18')][_0x3e65('0x6')]);this[_0x3e65('0x21')][_0x3e65('0x2c')](_0x2f55e6,_0x140500),this[_0x3e65('0x17')][_0x3e65('0x2c')](_0x140500,_0x2f55e6),_0x2f55e6['content'][_0x3e65('0xb')](_0x42e533),this[_0x3e65('0x34')](_0x140500[_0x3e65('0x1d')],'change:targetRect',(_0x2da963,_0xb9ce1a,_0x4147b0)=>{const _0x4322ee=this[_0x3e65('0x28')](_0x140500,_0x4147b0);_0x2f55e6[_0x3e65('0x1f')]!=_0x4322ee&&(_0x2f55e6[_0x3e65('0x1f')]=_0x4322ee,this['_setItemTop'](_0x2f55e6,_0x4322ee));}),this[_0x3e65('0x34')](_0x2f55e6,_0x3e65('0x2f'),()=>{this['_recalculate'](_0x2f55e6,_0x3e65('0x22'));}),this[_0x3e65('0x34')](_0x2f55e6,'change:bottom',()=>{this[_0x3e65('0x26')](_0x2f55e6,_0x3e65('0x38'));}),this[_0x3e65('0x35')](_0x2f55e6);const _0x27f047=this[_0x3e65('0x32')](_0x2f55e6);if(_0x27f047)this['_alignAfterItem'](_0x27f047,_0x2f55e6)||this[_0x3e65('0x35')](_0x2f55e6);else this[_0x3e65('0x35')](_0x2f55e6);return this[_0x3e65('0x25')](),this[_0x3e65('0x1d')]['list'][_0x3e65('0xb')](_0x2f55e6),_0x2f55e6;}[_0x3e65('0x1')](_0x2b1526){if(!_0x2b1526[_0x3e65('0x3f')][_0x3e65('0x3b')])return;const _0x19546c=this[_0x3e65('0x32')](_0x2b1526);if(!_0x19546c)return;const _0x26cf98=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0x19546c),_0x1c0448=this[_0x3e65('0x36')];_0x1c0448&&_0x1c0448===_0x26cf98?this['_alignAfterItem'](_0x19546c,_0x2b1526):this['_alignBeforeItem'](_0x2b1526,_0x19546c);}['_alignForBottomChange'](_0x3a38ac){if(!_0x3a38ac['content'][_0x3e65('0x3b')])return;const _0x28fc21=this[_0x3e65('0x1c')](_0x3a38ac);if(!_0x28fc21)return;const _0x2c534d=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0x28fc21),_0x2f8986=this['context'][_0x3e65('0x4')][_0x3e65('0x2e')](_0x3e65('0x0')),_0x7417c5=this[_0x3e65('0x36')];_0x7417c5&&_0x7417c5===_0x2c534d&&_0x2f8986?(this[_0x3e65('0x33')](_0x28fc21,_0x3a38ac),this[_0x3e65('0x3c')](_0x3a38ac,_0x28fc21)):_0x7417c5&&_0x7417c5===_0x2c534d?this[_0x3e65('0x33')](_0x28fc21,_0x3a38ac):this['_alignAfterItem'](_0x3a38ac,_0x28fc21);}['_recalculate'](_0x19cc57,_0x5d1bf7){0x0===this[_0x3e65('0x15')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x19f4b2,changedProp:_0x28b39}of this[_0x3e65('0x15')])'top'===_0x28b39?this['_alignForTopChange'](_0x19f4b2):this[_0x3e65('0x40')](_0x19f4b2);this[_0x3e65('0x15')]=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x19cc57,'changedProp':_0x5d1bf7});}[_0x3e65('0xe')](_0x4a16d2){return this[_0x3e65('0x17')][_0x3e65('0x2e')](_0x4a16d2);}[_0x3e65('0x39')](){this[_0x3e65('0x9')](),this[_0x3e65('0x1d')]['destroy']();}[_0x3e65('0x23')](_0x35f064){const _0x50a4d3=this[_0x3e65('0xe')](_0x35f064);this[_0x3e65('0x9')](_0x50a4d3),this['stopListening'](_0x35f064['view']),_0x50a4d3[_0x3e65('0x39')](),this[_0x3e65('0x17')]['delete'](_0x35f064),this[_0x3e65('0x21')]['delete'](_0x50a4d3);}[_0x3e65('0x14')](){const _0x57b06e=new _0x212e6f(this[_0x3e65('0x18')]['locale']);return _0x57b06e[_0x3e65('0x27')](),this['on'](_0x3e65('0x1e'),(_0x2e1d4b,_0x12fac9,_0x155b74,_0x179505)=>{_0x179505&&_0x57b06e[_0x3e65('0x3e')]('minHeight'),_0x155b74?_0x57b06e[_0x3e65('0x11')](_0x3e65('0x41'))['to'](_0x155b74,_0x3e65('0x38')):_0x57b06e['minHeight']=null;}),_0x57b06e;}[_0x3e65('0x25')](){var _0x35b7f3;this[_0x3e65('0x31')]=(null===(_0x35b7f3=this[_0x3e65('0x5')])||void 0x0===_0x35b7f3?void 0x0:_0x35b7f3[_0x3e65('0x3a')])?this['getSidebarItemView'](this['_annotations'][_0x3e65('0x3a')]):null;}[_0x3e65('0x32')](_0xb9a424){var _0x2abb39;const _0x4fba0a=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0xb9a424),_0x575930=_0x4fba0a&&(null===(_0x2abb39=this[_0x3e65('0x5')])||void 0x0===_0x2abb39?void 0x0:_0x2abb39[_0x3e65('0x2e')](this[_0x3e65('0x5')][_0x3e65('0x8')](_0x4fba0a)-0x1));return _0x575930&&this[_0x3e65('0xe')](_0x575930)||null;}[_0x3e65('0x1c')](_0x12a275){var _0x3d60f8;const _0x2f9fc1=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0x12a275),_0x3efea4=_0x2f9fc1&&(null===(_0x3d60f8=this[_0x3e65('0x5')])||void 0x0===_0x3d60f8?void 0x0:_0x3d60f8['get'](this[_0x3e65('0x5')][_0x3e65('0x8')](_0x2f9fc1)+0x1));return _0x3efea4&&this['getSidebarItemView'](_0x3efea4)||null;}[_0x3e65('0x33')](_0x43f1e8,_0xcb01d5){_0x43f1e8[_0x3e65('0xc')]();const _0x750874=M(_0xcb01d5[_0x3e65('0x38')]+this[_0x3e65('0x1b')],_0x43f1e8[_0x3e65('0x22')]);return!!_0x750874&&(this[_0x3e65('0x2d')](_0xcb01d5,_0xcb01d5[_0x3e65('0x22')]-_0x750874),!0x0);}[_0x3e65('0x3c')](_0x3098b1,_0xc58e67){_0x3098b1[_0x3e65('0xc')]();const _0x3a96ee=M(_0x3098b1['bottom']+this[_0x3e65('0x1b')],_0xc58e67[_0x3e65('0x22')]);return!!_0x3a96ee&&(this[_0x3e65('0x2d')](_0xc58e67,_0xc58e67[_0x3e65('0x22')]+_0x3a96ee,!0x1),!0x0);}[_0x3e65('0x35')](_0x32d387){const _0x36dbaa=this[_0x3e65('0x21')][_0x3e65('0x2e')](_0x32d387);if(!_0x36dbaa||!_0x36dbaa[_0x3e65('0x2b')]||!_0x36dbaa[_0x3e65('0x37')])return;const _0x5d29c8=this['_getTargetTop'](_0x36dbaa,_0x36dbaa[_0x3e65('0x37')]);this[_0x3e65('0x2d')](_0x32d387,_0x5d29c8);}[_0x3e65('0x28')](_0x2e8256,_0x2e5729){if(null===_0x2e5729)return 0x0;if(_0x2e8256[_0x3e65('0x2b')]instanceof _0x13578f)return _0x2e5729[_0x3e65('0x22')];{const _0x1db171=new _0x13578f(this[_0x3e65('0x1d')]['element'])[_0x3e65('0x22')];return _0x2e5729[_0x3e65('0x22')]-_0x1db171;}}[_0x3e65('0x2d')](_0x33e110,_0x1695be,_0x3d1581=this['context']['config']['get'](_0x3e65('0x0'))){_0x3d1581&&(_0x1695be=Math['max'](_0x1695be,this['_getMaxAvailableTop'](_0x33e110))),_0x33e110[_0x3e65('0x22')]=_0x1695be;}[_0x3e65('0x12')](_0x56ae26){let _0x228ac1=this[_0x3e65('0x32')](_0x56ae26),_0x2ce709=0x0;for(;_0x228ac1;)_0x228ac1[_0x3e65('0xc')](),_0x2ce709+=this['_spaceBetweenItems']+_0x228ac1[_0x3e65('0x7')],_0x228ac1=this[_0x3e65('0x32')](_0x228ac1);return _0x2ce709;}}function M(_0xf25c9e,_0x47e506){return Math[_0x3e65('0xa')](_0xf25c9e-_0x47e506,0x0);}function y(_0x514e2a){return null!==_0x514e2a&&'object'==typeof _0x514e2a&&0x1===_0x514e2a['nodeType'];}
@@ -6,8 +6,8 @@
6
6
  * @module comments/annotations/view/annotationcounterbuttonview
7
7
  * @publicApi
8
8
  */
9
- import { ButtonView, View } from 'ckeditor5/src/ui';
10
- import type { Locale } from 'ckeditor5/src/utils';
9
+ import { ButtonView, View } from 'ckeditor5/src/ui.js';
10
+ import type { Locale } from 'ckeditor5/src/utils.js';
11
11
  /**
12
12
  * A view used in the sidebar by {@link module:comments/annotations/narrowsidebar~NarrowSidebar}.
13
13
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4bc5=['bindTemplate','set','toString','ck-annotation-counter__badge--edit-mode','counterView','setTemplate','isDirty','...','ck-annotation-counter__badge','ck-annotation-counter','_badge','bind','annotationType','icon','extendTemplate','span','number'];(function(_0x4d7ccb,_0x4bc5f9){const _0x2fb70a=function(_0x35f8db){while(--_0x35f8db){_0x4d7ccb['push'](_0x4d7ccb['shift']());}};_0x2fb70a(++_0x4bc5f9);}(_0x4bc5,0x1a9));const _0x2fb7=function(_0x4d7ccb,_0x4bc5f9){_0x4d7ccb=_0x4d7ccb-0x0;let _0x2fb70a=_0x4bc5[_0x4d7ccb];return _0x2fb70a;};import{ButtonView as _0x9684d5,View as _0x5830d4}from'ckeditor5/src/ui';import _0x2cf42a from'../../../theme/icons/add-comment.svg';export default class D extends _0x9684d5{constructor(_0x2f53cf){super(_0x2f53cf);const _0x1f4b06=this[_0x2fb7('0x0')];this[_0x2fb7('0x1')]('isDirty',!0x1),this[_0x2fb7('0x1')](_0x2fb7('0x10'),0x0),this[_0x2fb7('0xb')](_0x2fb7('0xa'))['to'](this,_0x2fb7('0x6'),this,_0x2fb7('0x10'),(_0x543810,_0x56b0bd)=>_0x543810?_0x2fb7('0x7'):_0x56b0bd[_0x2fb7('0x2')]()),this[_0x2fb7('0x1')](_0x2fb7('0xc'),''),this[_0x2fb7('0xd')]=_0x2cf42a,this[_0x2fb7('0xe')]({'attributes':{'class':[_0x2fb7('0x9')]}}),this[_0x2fb7('0x4')]=new _0x5830d4(),this[_0x2fb7('0x4')][_0x2fb7('0x5')]({'tag':_0x2fb7('0xf'),'attributes':{'class':[_0x2fb7('0x8'),_0x1f4b06['to']('annotationType',_0x2c5508=>'ck-annotation-counter__badge--'+_0x2c5508),_0x1f4b06['if'](_0x2fb7('0x6'),_0x2fb7('0x3'))]},'children':[{'text':_0x1f4b06['to'](_0x2fb7('0xa'))}]}),this['children']['add'](this[_0x2fb7('0x4')]);}}
23
+ const _0x4ec9=['number','annotationType','set','counterView','ck-annotation-counter','ck-annotation-counter__badge--edit-mode','icon','children','ck-annotation-counter__badge--','setTemplate','...','add','_badge','span','bindTemplate','toString','extendTemplate','ck-annotation-counter__badge','isDirty'];(function(_0xe45409,_0x4ec958){const _0x3edd2b=function(_0xd570d7){while(--_0xd570d7){_0xe45409['push'](_0xe45409['shift']());}};_0x3edd2b(++_0x4ec958);}(_0x4ec9,0x9f));const _0x3edd=function(_0xe45409,_0x4ec958){_0xe45409=_0xe45409-0x0;let _0x3edd2b=_0x4ec9[_0xe45409];return _0x3edd2b;};import{ButtonView as _0x47a48c,View as _0xa0e6f}from'ckeditor5/src/ui.js';import _0x336ab8 from'../../../theme/icons/add-comment.svg';export default class D extends _0x47a48c{constructor(_0x546254){super(_0x546254);const _0x223dd7=this[_0x3edd('0x7')];this[_0x3edd('0xe')](_0x3edd('0xb'),!0x1),this['set'](_0x3edd('0xc'),0x0),this['bind'](_0x3edd('0x5'))['to'](this,_0x3edd('0xb'),this,_0x3edd('0xc'),(_0x5832b9,_0x4666fa)=>_0x5832b9?_0x3edd('0x3'):_0x4666fa[_0x3edd('0x8')]()),this[_0x3edd('0xe')](_0x3edd('0xd'),''),this[_0x3edd('0x12')]=_0x336ab8,this[_0x3edd('0x9')]({'attributes':{'class':[_0x3edd('0x10')]}}),this['counterView']=new _0xa0e6f(),this['counterView'][_0x3edd('0x2')]({'tag':_0x3edd('0x6'),'attributes':{'class':[_0x3edd('0xa'),_0x223dd7['to'](_0x3edd('0xd'),_0xe996d3=>_0x3edd('0x1')+_0xe996d3),_0x223dd7['if'](_0x3edd('0xb'),_0x3edd('0x11'))]},'children':[{'text':_0x223dd7['to'](_0x3edd('0x5'))}]}),this[_0x3edd('0x0')][_0x3edd('0x4')](this[_0x3edd('0xf')]);}}
@@ -6,8 +6,8 @@
6
6
  * @module comments/annotations/view/annotationview
7
7
  * @publicApi
8
8
  */
9
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
- import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils';
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
10
+ import { FocusTracker, KeystrokeHandler, type Rect, type Locale } from 'ckeditor5/src/utils.js';
11
11
  import '../../../theme/annotation.css';
12
12
  /**
13
13
  * A wrapping view for any view added to the `Annotations` plugin.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20d6=['_updateHeight','destroy','height','bindTemplate','mainView','Esc','clear','render','_mutationObserver','keystrokes','detach','add','type','set','content','ck-annotation-wrapper--active','fire','focus','isDirty','targetRect','focusTracker','clientHeight','createCollection','ck-rounded-corners','listenTo','element','isActive'];(function(_0x11d353,_0x20d6c7){const _0x592172=function(_0x10c8d9){while(--_0x10c8d9){_0x11d353['push'](_0x11d353['shift']());}};_0x592172(++_0x20d6c7);}(_0x20d6,0xae));const _0x5921=function(_0x11d353,_0x20d6c7){_0x11d353=_0x11d353-0x0;let _0x592172=_0x20d6[_0x11d353];return _0x592172;};import{View as _0x38df73}from'ckeditor5/src/ui';import{FocusTracker as _0x13cd75,KeystrokeHandler as _0x571509,uid as _0x37c366}from'ckeditor5/src/utils';import _0x191886 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x38df73{constructor(_0x12a327,_0x135ba5){super(_0x12a327),this['id']=_0x37c366(),this[_0x5921('0x8')]=new _0x13cd75(),this[_0x5921('0x18')]=new _0x571509(),this['keystrokes'][_0x5921('0x1')](_0x5921('0x14'),(_0x3cf305,_0x307ffe)=>this[_0x5921('0x4')](_0x5921('0x14'),_0x307ffe)),this[_0x5921('0x1')](_0x5921('0x7'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5921('0x1')](_0x5921('0x11'),0x0),this[_0x5921('0x1')](_0x5921('0xe'),!0x1),this[_0x5921('0x1')](_0x5921('0x6'),!0x1),this[_0x5921('0x1')]('length',0x0),this['set'](_0x5921('0x0'),''),this[_0x5921('0x17')]=_0x191886(()=>this['_updateHeight']()),this[_0x5921('0x2')]=this[_0x5921('0xa')](),this[_0x5921('0x2')]['add'](_0x135ba5),this[_0x5921('0x13')]=_0x135ba5;const _0x438a85=this[_0x5921('0x12')];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper',_0x5921('0xb'),_0x438a85['if'](_0x5921('0xe'),_0x5921('0x3'))],'tabindex':-0x1},'children':this[_0x5921('0x2')]});}[_0x5921('0x16')](){super[_0x5921('0x16')](),this[_0x5921('0x8')][_0x5921('0x1a')](this['element']),this[_0x5921('0x18')][_0x5921('0xc')](this[_0x5921('0xd')]),this['_mutationObserver']['attach'](this[_0x5921('0xd')]);}[_0x5921('0x10')](){this['content'][_0x5921('0x15')](),this[_0x5921('0x18')]['destroy'](),this[_0x5921('0x8')]['destroy'](),this[_0x5921('0x17')][_0x5921('0x19')](),super[_0x5921('0x10')]();}[_0x5921('0x5')](){this[_0x5921('0xd')][_0x5921('0x5')]();}[_0x5921('0xf')](){const _0x328de1=this[_0x5921('0xd')][_0x5921('0x9')];_0x328de1&&(this[_0x5921('0x11')]=_0x328de1);}}
23
+ const _0x2d53=['content','bindTemplate','ck-annotation-wrapper--active','render','isActive','keystrokes','length','detach','add','focus','set','isDirty','fire','attach','focusTracker','setTemplate','listenTo','element','type','clear','destroy','_mutationObserver','targetRect','div','height','createCollection','_updateHeight','clientHeight','ck-annotation-wrapper','Esc','ck-rounded-corners'];(function(_0xcbf6a2,_0x2d53e2){const _0x2a9bda=function(_0x2af78f){while(--_0x2af78f){_0xcbf6a2['push'](_0xcbf6a2['shift']());}};_0x2a9bda(++_0x2d53e2);}(_0x2d53,0x99));const _0x2a9b=function(_0xcbf6a2,_0x2d53e2){_0xcbf6a2=_0xcbf6a2-0x0;let _0x2a9bda=_0x2d53[_0xcbf6a2];return _0x2a9bda;};import{View as _0x1a57ad}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3c1c39,KeystrokeHandler as _0x42a631,uid as _0x4ee566}from'ckeditor5/src/utils.js';import _0xfde7c from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x1a57ad{constructor(_0x4dd90b,_0x5b9b13){super(_0x4dd90b),this['id']=_0x4ee566(),this[_0x2a9b('0x10')]=new _0x3c1c39(),this[_0x2a9b('0x7')]=new _0x42a631(),this[_0x2a9b('0x7')]['set']('Esc',(_0x2c7069,_0x273e37)=>this[_0x2a9b('0xe')](_0x2a9b('0x0'),_0x273e37)),this[_0x2a9b('0xc')](_0x2a9b('0x18'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x2a9b('0x1a'),0x0),this[_0x2a9b('0xc')]('isActive',!0x1),this[_0x2a9b('0xc')](_0x2a9b('0xd'),!0x1),this[_0x2a9b('0xc')](_0x2a9b('0x8'),0x0),this[_0x2a9b('0xc')](_0x2a9b('0x14'),''),this[_0x2a9b('0x17')]=_0xfde7c(()=>this[_0x2a9b('0x1c')]()),this[_0x2a9b('0x2')]=this[_0x2a9b('0x1b')](),this[_0x2a9b('0x2')][_0x2a9b('0xa')](_0x5b9b13),this['mainView']=_0x5b9b13;const _0x519444=this[_0x2a9b('0x3')];this[_0x2a9b('0x11')]({'tag':_0x2a9b('0x19'),'attributes':{'class':['ck',_0x2a9b('0x1e'),_0x2a9b('0x1'),_0x519444['if'](_0x2a9b('0x6'),_0x2a9b('0x4'))],'tabindex':-0x1},'children':this['content']});}[_0x2a9b('0x5')](){super[_0x2a9b('0x5')](),this['focusTracker']['add'](this['element']),this[_0x2a9b('0x7')][_0x2a9b('0x12')](this[_0x2a9b('0x13')]),this[_0x2a9b('0x17')][_0x2a9b('0xf')](this[_0x2a9b('0x13')]);}[_0x2a9b('0x16')](){this['content'][_0x2a9b('0x15')](),this[_0x2a9b('0x7')]['destroy'](),this[_0x2a9b('0x10')][_0x2a9b('0x16')](),this[_0x2a9b('0x17')][_0x2a9b('0x9')](),super[_0x2a9b('0x16')]();}[_0x2a9b('0xb')](){this[_0x2a9b('0x13')][_0x2a9b('0xb')]();}[_0x2a9b('0x1c')](){const _0x40c5d3=this[_0x2a9b('0x13')][_0x2a9b('0x1d')];_0x40c5d3&&(this[_0x2a9b('0x1a')]=_0x40c5d3);}}
@@ -6,8 +6,8 @@
6
6
  * @module comments/annotations/view/sidebaritemview
7
7
  * @publicApi
8
8
  */
9
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
- import { type Locale } from 'ckeditor5/src/utils';
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
10
+ import { type Locale } from 'ckeditor5/src/utils.js';
11
11
  /**
12
12
  * A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
13
13
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x329d=['ck-sidebar-item','clear','_targetTop','isAnimationDisabled','_mutationObserver','height','render','ck-sidebar-item--no-animation','set','bottom','div','top','updateHeight','clientHeight','content','destroy','bindTemplate','element'];(function(_0x4f686c,_0x329dc1){const _0x19dfe2=function(_0x21c75c){while(--_0x21c75c){_0x4f686c['push'](_0x4f686c['shift']());}};_0x19dfe2(++_0x329dc1);}(_0x329d,0x1b1));const _0x19df=function(_0x4f686c,_0x329dc1){_0x4f686c=_0x4f686c-0x0;let _0x19dfe2=_0x329d[_0x4f686c];return _0x19dfe2;};import{View as _0x52ae69}from'ckeditor5/src/ui';import{toUnit as _0x190fc1}from'ckeditor5/src/utils';import _0x279d3b from'../../utils/createmutationobserver';const jt=_0x190fc1('px');export default class C extends _0x52ae69{constructor(_0x73d293){super(_0x73d293),this['set'](_0x19df('0xa'),0x0),this['set'](_0x19df('0x4'),0x0),this['bind'](_0x19df('0x8'))['to'](this,_0x19df('0xa'),this,_0x19df('0x4'),(_0x4fed15,_0x22f08c)=>_0x4fed15+_0x22f08c),this[_0x19df('0x7')]('isAnimationDisabled',!0x1),this[_0x19df('0x3')]=_0x279d3b(()=>this[_0x19df('0xb')]()),this[_0x19df('0x1')]=null,this[_0x19df('0xd')]=this['createCollection']();const _0x693165=this[_0x19df('0xf')];this['setTemplate']({'tag':_0x19df('0x9'),'attributes':{'class':[_0x19df('0x11'),_0x693165['to'](_0x19df('0x2'),_0x453557=>_0x453557?_0x19df('0x6'):'')],'style':{'top':_0x693165['to']('top',_0x1ffeee=>jt(_0x1ffeee))}},'children':this[_0x19df('0xd')]});}[_0x19df('0x5')](){super[_0x19df('0x5')](),this[_0x19df('0x3')]['attach'](this[_0x19df('0x10')]);}[_0x19df('0xb')](){const _0x2e64b1=this[_0x19df('0x10')][_0x19df('0xc')];_0x2e64b1&&(this[_0x19df('0x4')]=_0x2e64b1);}['destroy'](){this[_0x19df('0xd')][_0x19df('0x0')](),this[_0x19df('0x3')]['detach'](),super[_0x19df('0xe')]();}}
23
+ const _0x10b0=['_targetTop','div','ck-sidebar-item','element','clear','_mutationObserver','destroy','setTemplate','top','createCollection','set','isAnimationDisabled','attach','content','ck-sidebar-item--no-animation','clientHeight','height','detach','render','bind','bottom'];(function(_0xdaef3f,_0x10b0bd){const _0x109974=function(_0x1226f1){while(--_0x1226f1){_0xdaef3f['push'](_0xdaef3f['shift']());}};_0x109974(++_0x10b0bd);}(_0x10b0,0x9d));const _0x1099=function(_0xdaef3f,_0x10b0bd){_0xdaef3f=_0xdaef3f-0x0;let _0x109974=_0x10b0[_0xdaef3f];return _0x109974;};import{View as _0x1e6c94}from'ckeditor5/src/ui.js';import{toUnit as _0xd5b64f}from'ckeditor5/src/utils.js';import _0x38cbd6 from'../../utils/createmutationobserver.js';const Ht=_0xd5b64f('px');export default class C extends _0x1e6c94{constructor(_0x56f338){super(_0x56f338),this['set']('top',0x0),this['set'](_0x1099('0x6'),0x0),this[_0x1099('0x9')](_0x1099('0xa'))['to'](this,_0x1099('0x13'),this,'height',(_0x4cac86,_0x57576f)=>_0x4cac86+_0x57576f),this[_0x1099('0x0')](_0x1099('0x1'),!0x1),this['_mutationObserver']=_0x38cbd6(()=>this['updateHeight']()),this[_0x1099('0xb')]=null,this[_0x1099('0x3')]=this[_0x1099('0x14')]();const _0x9252a0=this['bindTemplate'];this[_0x1099('0x12')]({'tag':_0x1099('0xc'),'attributes':{'class':[_0x1099('0xd'),_0x9252a0['to']('isAnimationDisabled',_0x330835=>_0x330835?_0x1099('0x4'):'')],'style':{'top':_0x9252a0['to']('top',_0x3b34c4=>Ht(_0x3b34c4))}},'children':this[_0x1099('0x3')]});}[_0x1099('0x8')](){super[_0x1099('0x8')](),this['_mutationObserver'][_0x1099('0x2')](this['element']);}['updateHeight'](){const _0x4735b3=this[_0x1099('0xe')][_0x1099('0x5')];_0x4735b3&&(this['height']=_0x4735b3);}['destroy'](){this[_0x1099('0x3')][_0x1099('0xf')](),this[_0x1099('0x10')][_0x1099('0x7')](),super[_0x1099('0x11')]();}}
@@ -6,8 +6,8 @@
6
6
  * @module comments/annotations/view/sidebarview
7
7
  * @publicApi
8
8
  */
9
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
10
- import { type Locale } from 'ckeditor5/src/utils';
9
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
10
+ import { type Locale } from 'ckeditor5/src/utils.js';
11
11
  import '../../../theme/sidebar.css';
12
12
  /**
13
13
  * The sidebar view class that displays the collection of sidebar item views.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30fb=['minHeight','list','div','set','createCollection','class','setTemplate','bindTemplate','ck-sidebar','ck-reset'];(function(_0x1cfffc,_0x30fbf7){const _0x506cec=function(_0x488274){while(--_0x488274){_0x1cfffc['push'](_0x1cfffc['shift']());}};_0x506cec(++_0x30fbf7);}(_0x30fb,0xdd));const _0x506c=function(_0x1cfffc,_0x30fbf7){_0x1cfffc=_0x1cfffc-0x0;let _0x506cec=_0x30fb[_0x1cfffc];return _0x506cec;};import{View as _0x3e7245}from'ckeditor5/src/ui';import{toUnit as _0x5795e9}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x5795e9('px');export default class T extends _0x3e7245{constructor(_0x2dd5b3){super(_0x2dd5b3);const _0xaee32e=this[_0x506c('0x6')];this[_0x506c('0x2')]('minHeight',0x0),this[_0x506c('0x2')](_0x506c('0x4'),''),this['list']=this[_0x506c('0x3')](),this[_0x506c('0x5')]({'tag':_0x506c('0x1'),'attributes':{'class':['ck',_0x506c('0x7'),_0x506c('0x8'),_0xaee32e['to'](_0x506c('0x4'))],'style':{'minHeight':_0xaee32e['to'](_0x506c('0x9'),_0x16e5bb=>'number'==typeof _0x16e5bb?jt(_0x16e5bb+0xa):null)}},'children':this[_0x506c('0x0')]});}}
23
+ const _0x1d6c=['minHeight','set','bindTemplate','list','ck-sidebar','createCollection','class','setTemplate'];(function(_0x1a73d6,_0x1d6c76){const _0x5d2abb=function(_0x4bb368){while(--_0x4bb368){_0x1a73d6['push'](_0x1a73d6['shift']());}};_0x5d2abb(++_0x1d6c76);}(_0x1d6c,0xd3));const _0x5d2a=function(_0x1a73d6,_0x1d6c76){_0x1a73d6=_0x1a73d6-0x0;let _0x5d2abb=_0x1d6c[_0x1a73d6];return _0x5d2abb;};import{View as _0x1ebf2e}from'ckeditor5/src/ui.js';import{toUnit as _0x3816c1}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x3816c1('px');export default class T extends _0x1ebf2e{constructor(_0x1f7bfd){super(_0x1f7bfd);const _0x103d4f=this[_0x5d2a('0x7')];this['set'](_0x5d2a('0x5'),0x0),this[_0x5d2a('0x6')](_0x5d2a('0x3'),''),this[_0x5d2a('0x0')]=this[_0x5d2a('0x2')](),this[_0x5d2a('0x4')]({'tag':'div','attributes':{'class':['ck',_0x5d2a('0x1'),'ck-reset',_0x103d4f['to'](_0x5d2a('0x3'))],'style':{'minHeight':_0x103d4f['to'](_0x5d2a('0x5'),_0x788e41=>'number'==typeof _0x788e41?Ht(_0x788e41+0xa):null)}},'children':this[_0x5d2a('0x0')]});}}
@@ -6,11 +6,11 @@
6
6
  * @module comments/annotations/widesidebar
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
10
- import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
11
- import Sidebar from './sidebar';
12
- import type Annotation from './annotation';
13
- import type { default as AnnotationCollection } from './annotationcollection';
9
+ import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis.js';
11
+ import Sidebar from './sidebar.js';
12
+ import type Annotation from './annotation.js';
13
+ import type { default as AnnotationCollection } from './annotationcollection.js';
14
14
  /**
15
15
  * The wide sidebar UI for displaying annotations.
16
16
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bd8=['container','EditorAnnotations','_integrateWithEditorAnnotations','setActiveAnnotation','add','ck-sidebar--wide','activeAnnotation','context','_destroyEditorAnnotationsIntegration','set:container','cancel','WideSidebar','_attachToContainer','listenTo','switchTo','editors','isAttached','removeEventListener','attach','refreshPositioning','high','_refreshPositioningDebounced','widesidebar-attach-already-attached','widesidebar-detach-not-attached','get','from','register','addAnnotation','blur','focus','refresh','annotations','init','_editorAnnotations','detach','hasDomSelection','wideSidebar','updateTargetRect','pluginName','resize','requires','remove','uiUpdate','off','_annotations','stop','_activeAnnotation','stopListening','plugins','rearrange'];(function(_0x1c5fed,_0x5bd83f){const _0xd3841d=function(_0x230954){while(--_0x230954){_0x1c5fed['push'](_0x1c5fed['shift']());}};_0xd3841d(++_0x5bd83f);}(_0x5bd8,0xdb));const _0xd384=function(_0x1c5fed,_0x5bd83f){_0x1c5fed=_0x1c5fed-0x0;let _0xd3841d=_0x5bd8[_0x1c5fed];return _0xd3841d;};import{ContextPlugin as _0x24bbf3,Context as _0xd79217}from'ckeditor5/src/core';import _0x4db57f from'./annotationsuis';import _0x1a524c from'./sidebar';import{CKEditorError as _0x24ad33,Collection as _0x21c9d2}from'ckeditor5/src/utils';import{debounce as _0xb1272a}from'lodash-es';import _0x507b4b from'./editorannotations';export default class i extends _0x24bbf3{static get[_0xd384('0x15')](){return[_0x1a524c,_0x4db57f];}static get[_0xd384('0x13')](){return _0xd384('0x2a');}constructor(_0x230433){super(_0x230433),this[_0xd384('0x2f')]=!0x1,this['set']('activeAnnotation',null),this[_0xd384('0xc')]=null,this[_0xd384('0xe')]=new _0x21c9d2(),this['_refreshPositioningDebounced']=_0xb1272a(()=>{this[_0xd384('0xc')][_0xd384('0x0')]();},0xfa,{'leading':!0x1});}[_0xd384('0xd')](){const _0x33adaf=this[_0xd384('0x26')][_0xd384('0x1d')]['get'](_0x4db57f),_0x10531f=this['context'][_0xd384('0x1d')][_0xd384('0x5')](_0x1a524c);_0x33adaf[_0xd384('0x7')](_0xd384('0x11'),this),_0x10531f[_0xd384('0x1f')]&&_0x33adaf[_0xd384('0x2d')](_0xd384('0x11'));}[_0xd384('0x22')](_0x52a293){if(_0x52a293===this[_0xd384('0x25')])return;const _0x5509a3=this[_0xd384('0x26')]['plugins']['get'](_0x1a524c);_0x5509a3[_0xd384('0x1b')]=_0x52a293;const _0x5e54=this[_0xd384('0x25')];this[_0xd384('0x25')]=_0x52a293,_0x5509a3[_0xd384('0xb')]({'blurredAnnotation':_0x5e54,'activatedAnnotation':this[_0xd384('0x25')]});}[_0xd384('0x31')](_0x56822a){this[_0xd384('0xc')]=_0x56822a;const _0x5482d6=this[_0xd384('0x26')][_0xd384('0x1d')]['get'](_0x1a524c);if(_0x5482d6[_0xd384('0x19')]=_0x56822a,this[_0xd384('0x2f')])throw new _0x24ad33(_0xd384('0x3'),this);this[_0xd384('0x2f')]=!0x0,this['listenTo'](_0x5482d6,_0xd384('0x28'),()=>{this[_0xd384('0xf')](),this[_0xd384('0x2c')](_0x5482d6,'change:container',_0x59b007=>{_0x59b007[_0xd384('0x18')](),this[_0xd384('0x31')](_0x56822a);});}),_0x5482d6[_0xd384('0x2b')]({'viewClass':_0xd384('0x24')});const _0x5525ec=_0x594449=>{_0x594449[_0xd384('0x12')](),_0x5482d6[_0xd384('0x8')](_0x594449);};for(const _0xa2d6de of _0x56822a)_0x5525ec(_0xa2d6de);this[_0xd384('0x2c')](_0x56822a,'add',(_0x4f6adc,_0x409176)=>{_0x5525ec(_0x409176);}),this[_0xd384('0x2c')](_0x56822a,_0xd384('0x16'),(_0x3f5786,_0x3c0d81,_0x49caaa)=>{_0x5482d6[_0xd384('0x1e')]({'removedAnnotation':_0x3c0d81,'previousAnnotation':_0x56822a[_0xd384('0x5')](_0x49caaa-0x1),'nextAnnotation':_0x56822a[_0xd384('0x5')](_0x49caaa+0x1)}),_0x3c0d81===this[_0xd384('0x25')]&&this[_0xd384('0x22')](null);},{'priority':_0xd384('0x1')}),this[_0xd384('0x2c')](_0x56822a,_0xd384('0xa'),(_0x30436e,_0x2cc5fa)=>{this[_0xd384('0x22')](_0x2cc5fa);}),this[_0xd384('0x2c')](_0x56822a,'blur',()=>{this[_0xd384('0x22')](null);});const _0x544622=this[_0xd384('0x26')]instanceof _0xd79217?this[_0xd384('0x26')][_0xd384('0x2e')]:new _0x21c9d2([this['context']]);for(const _0x37d791 of _0x544622)this[_0xd384('0x21')](_0x37d791);this['listenTo'](_0x544622,_0xd384('0x23'),(_0x27ad50,_0x5ad792)=>{this['listenTo'](_0x5ad792,'ready',()=>{this[_0xd384('0x21')](_0x5ad792);});}),this[_0xd384('0x2c')](_0x544622,_0xd384('0x16'),(_0x5887a0,_0x3d5ccf)=>{_0x3d5ccf['plugins']['has'](_0xd384('0x20'))&&this[_0xd384('0x27')](_0x3d5ccf[_0xd384('0x1d')]['get'](_0xd384('0x20')));}),window['addEventListener'](_0xd384('0x14'),this[_0xd384('0x2')]),this[_0xd384('0xc')][_0xd384('0x0')]();}[_0xd384('0xf')](){if(!this['isAttached'])throw new _0x24ad33(_0xd384('0x4'),this);this[_0xd384('0x22')](null);const _0x16379e=this[_0xd384('0x26')][_0xd384('0x1d')]['get'](_0x1a524c);_0x16379e['_detachFromContainer'](this['annotations']),this[_0xd384('0x1c')](_0x16379e),this['stopListening'](this[_0xd384('0xc')]),this[_0xd384('0x26')]instanceof _0xd79217&&this[_0xd384('0x1c')](this['context'][_0xd384('0x2e')]);for(const _0x13414d of Array[_0xd384('0x6')](this[_0xd384('0xe')]))this[_0xd384('0x27')](_0x13414d);window[_0xd384('0x30')]('resize',this[_0xd384('0x2')]),this[_0xd384('0x2')][_0xd384('0x29')](),this[_0xd384('0x25')]=null,this['isAttached']=!0x1,this[_0xd384('0xc')]=null;}['destroy'](){this[_0xd384('0x2f')]&&this[_0xd384('0xf')]();}['_integrateWithEditorAnnotations'](_0x564cc6){const _0x461b98=_0x564cc6['plugins']['get'](_0x507b4b);if(!_0x461b98)return;const _0x4a1c54=()=>{const _0x26f054=_0x461b98['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0xd384('0x25')]});this[_0xd384('0x22')](_0x26f054[0x0]||null);};this[_0xd384('0x2c')](_0x461b98,_0xd384('0xb'),_0x4a1c54),this['listenTo'](_0x461b98,_0xd384('0x9'),(_0x250e66,{isAnnotationTracked:_0x5b80f3})=>{this['activeAnnotation']&&_0x5b80f3(this[_0xd384('0x25')])&&this[_0xd384('0x22')](null);}),this['listenTo'](_0x461b98,_0xd384('0x17'),()=>{this[_0xd384('0x2')]();}),this['listenTo'](this['annotations'],'blur',_0x37d113=>{_0x461b98[_0xd384('0x10')]()&&(_0x4a1c54(),_0x37d113[_0xd384('0x1a')]());},{'priority':'high'}),this[_0xd384('0xe')][_0xd384('0x23')](_0x461b98);}[_0xd384('0x27')](_0x2a0a32){this[_0xd384('0x1c')](_0x2a0a32),this[_0xd384('0xe')]['remove'](_0x2a0a32);}}
23
+ const _0x1aa8=['blur','updateTargetRect','container','get','_integrateWithEditorAnnotations','plugins','set','_editorAnnotations','off','set:container','remove','uiUpdate','_activeAnnotation','pluginName','_refreshPositioningDebounced','widesidebar-attach-already-attached','refresh','addEventListener','addAnnotation','removeEventListener','from','refreshPositioning','_destroyEditorAnnotationsIntegration','cancel','init','high','widesidebar-detach-not-attached','setActiveAnnotation','hasDomSelection','register','listenTo','destroy','activeAnnotation','change:container','context','resize','has','_annotations','wideSidebar','attach','editors','stopListening','ck-sidebar--wide','isAttached','getOrderedSelectedAnnotations','annotations','stop','focus'];(function(_0x34697d,_0x1aa80d){const _0x35c27e=function(_0x298837){while(--_0x298837){_0x34697d['push'](_0x34697d['shift']());}};_0x35c27e(++_0x1aa80d);}(_0x1aa8,0x140));const _0x35c2=function(_0x34697d,_0x1aa80d){_0x34697d=_0x34697d-0x0;let _0x35c27e=_0x1aa8[_0x34697d];return _0x35c27e;};import{ContextPlugin as _0x31bb59,Context as _0x819592}from'ckeditor5/src/core.js';import _0x2c4e53 from'./annotationsuis.js';import _0x1dedeb from'./sidebar.js';import{CKEditorError as _0x2593b7,Collection as _0x52196f}from'ckeditor5/src/utils.js';import{debounce as _0x574fb4}from'lodash-es';import _0x5d5ece from'./editorannotations.js';export default class n extends _0x31bb59{static get['requires'](){return[_0x1dedeb,_0x2c4e53];}static get[_0x35c2('0x1d')](){return'WideSidebar';}constructor(_0xdbac72){super(_0xdbac72),this[_0x35c2('0xb')]=!0x1,this[_0x35c2('0x16')](_0x35c2('0x0'),null),this['annotations']=null,this['_editorAnnotations']=new _0x52196f(),this[_0x35c2('0x1e')]=_0x574fb4(()=>{this[_0x35c2('0xd')][_0x35c2('0x25')]();},0xfa,{'leading':!0x1});}[_0x35c2('0x28')](){const _0x7cbacd=this[_0x35c2('0x2')]['plugins'][_0x35c2('0x13')](_0x2c4e53),_0xa5bd90=this['context'][_0x35c2('0x15')]['get'](_0x1dedeb);_0x7cbacd[_0x35c2('0x2d')](_0x35c2('0x6'),this),_0xa5bd90[_0x35c2('0x12')]&&_0x7cbacd['switchTo']('wideSidebar');}[_0x35c2('0x2b')](_0x17c91a){if(_0x17c91a===this[_0x35c2('0x0')])return;const _0x12f4f1=this[_0x35c2('0x2')][_0x35c2('0x15')][_0x35c2('0x13')](_0x1dedeb);_0x12f4f1[_0x35c2('0x1c')]=_0x17c91a;const _0x499b86=this[_0x35c2('0x0')];this['activeAnnotation']=_0x17c91a,_0x12f4f1[_0x35c2('0x20')]({'blurredAnnotation':_0x499b86,'activatedAnnotation':this[_0x35c2('0x0')]});}[_0x35c2('0x7')](_0x24d0d4){this[_0x35c2('0xd')]=_0x24d0d4;const _0x4256bc=this[_0x35c2('0x2')][_0x35c2('0x15')]['get'](_0x1dedeb);if(_0x4256bc[_0x35c2('0x5')]=_0x24d0d4,this[_0x35c2('0xb')])throw new _0x2593b7(_0x35c2('0x1f'),this);this[_0x35c2('0xb')]=!0x0,this['listenTo'](_0x4256bc,_0x35c2('0x19'),()=>{this['detach'](),this[_0x35c2('0x2e')](_0x4256bc,_0x35c2('0x1'),_0x2884b9=>{_0x2884b9[_0x35c2('0x18')](),this[_0x35c2('0x7')](_0x24d0d4);});}),_0x4256bc['_attachToContainer']({'viewClass':_0x35c2('0xa')});const _0x55d2ea=_0x496147=>{_0x496147[_0x35c2('0x11')](),_0x4256bc[_0x35c2('0x22')](_0x496147);};for(const _0x569346 of _0x24d0d4)_0x55d2ea(_0x569346);this[_0x35c2('0x2e')](_0x24d0d4,'add',(_0x3afabe,_0x330049)=>{_0x55d2ea(_0x330049);}),this['listenTo'](_0x24d0d4,_0x35c2('0x1a'),(_0xd980,_0x9c05e4,_0x208e26)=>{_0x4256bc['rearrange']({'removedAnnotation':_0x9c05e4,'previousAnnotation':_0x24d0d4[_0x35c2('0x13')](_0x208e26-0x1),'nextAnnotation':_0x24d0d4['get'](_0x208e26+0x1)}),_0x9c05e4===this['activeAnnotation']&&this[_0x35c2('0x2b')](null);},{'priority':'high'}),this['listenTo'](_0x24d0d4,_0x35c2('0xf'),(_0x1f6ef6,_0x2caf85)=>{this[_0x35c2('0x2b')](_0x2caf85);}),this[_0x35c2('0x2e')](_0x24d0d4,_0x35c2('0x10'),()=>{this['setActiveAnnotation'](null);});const _0x4acc2c=this[_0x35c2('0x2')]instanceof _0x819592?this[_0x35c2('0x2')][_0x35c2('0x8')]:new _0x52196f([this[_0x35c2('0x2')]]);for(const _0x586599 of _0x4acc2c)this[_0x35c2('0x14')](_0x586599);this[_0x35c2('0x2e')](_0x4acc2c,'add',(_0x2bc4be,_0x444925)=>{this[_0x35c2('0x2e')](_0x444925,'ready',()=>{this[_0x35c2('0x14')](_0x444925);});}),this[_0x35c2('0x2e')](_0x4acc2c,_0x35c2('0x1a'),(_0xc6cc6f,_0x3efea1)=>{_0x3efea1['plugins'][_0x35c2('0x4')]('EditorAnnotations')&&this[_0x35c2('0x26')](_0x3efea1[_0x35c2('0x15')]['get']('EditorAnnotations'));}),window[_0x35c2('0x21')](_0x35c2('0x3'),this[_0x35c2('0x1e')]),this[_0x35c2('0xd')][_0x35c2('0x25')]();}['detach'](){if(!this[_0x35c2('0xb')])throw new _0x2593b7(_0x35c2('0x2a'),this);this[_0x35c2('0x2b')](null);const _0x248999=this[_0x35c2('0x2')][_0x35c2('0x15')][_0x35c2('0x13')](_0x1dedeb);_0x248999['_detachFromContainer'](this[_0x35c2('0xd')]),this[_0x35c2('0x9')](_0x248999),this[_0x35c2('0x9')](this[_0x35c2('0xd')]),this[_0x35c2('0x2')]instanceof _0x819592&&this[_0x35c2('0x9')](this[_0x35c2('0x2')][_0x35c2('0x8')]);for(const _0x4df4cf of Array[_0x35c2('0x24')](this[_0x35c2('0x17')]))this[_0x35c2('0x26')](_0x4df4cf);window[_0x35c2('0x23')]('resize',this[_0x35c2('0x1e')]),this[_0x35c2('0x1e')][_0x35c2('0x27')](),this['activeAnnotation']=null,this[_0x35c2('0xb')]=!0x1,this[_0x35c2('0xd')]=null;}[_0x35c2('0x2f')](){this[_0x35c2('0xb')]&&this['detach']();}[_0x35c2('0x14')](_0x598253){const _0x24a8f4=_0x598253[_0x35c2('0x15')][_0x35c2('0x13')](_0x5d5ece);if(!_0x24a8f4)return;const _0x32ed25=()=>{const _0x90fe76=_0x24a8f4[_0x35c2('0xc')]({'annotations':this[_0x35c2('0xd')],'activeAnnotation':this['activeAnnotation']});this[_0x35c2('0x2b')](_0x90fe76[0x0]||null);};this[_0x35c2('0x2e')](_0x24a8f4,_0x35c2('0x20'),_0x32ed25),this['listenTo'](_0x24a8f4,_0x35c2('0x10'),(_0x438f44,{isAnnotationTracked:_0x8c2d1e})=>{this[_0x35c2('0x0')]&&_0x8c2d1e(this['activeAnnotation'])&&this[_0x35c2('0x2b')](null);}),this[_0x35c2('0x2e')](_0x24a8f4,_0x35c2('0x1b'),()=>{this[_0x35c2('0x1e')]();}),this['listenTo'](this[_0x35c2('0xd')],_0x35c2('0x10'),_0x46f4ad=>{_0x24a8f4[_0x35c2('0x2c')]()&&(_0x32ed25(),_0x46f4ad[_0x35c2('0xe')]());},{'priority':_0x35c2('0x29')}),this['_editorAnnotations']['add'](_0x24a8f4);}['_destroyEditorAnnotationsIntegration'](_0x4b2193){this[_0x35c2('0x9')](_0x4b2193),this[_0x35c2('0x17')][_0x35c2('0x1a')](_0x4b2193);}}
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index';
5
+ import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
@@ -6,7 +6,7 @@
6
6
  * @module comments/comments/addcommentthreadcommand
7
7
  * @publicApi
8
8
  */
9
- import { Command } from 'ckeditor5/src/core';
9
+ import { Command } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * Adds a new CommentMarker what automatically adds corresponding CommentThread to the CommentsEditing#threads collection.
12
12
  * Note this command adds only a CommentThread draft, to make is public marker has to be changed to be managed using operation.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b9a=['getLastMatchingPosition','_itemIsContent','item','backward','document','createRange','$textProxy','execute','schema','_trimToContent','model','end','comment:','editor','getRanges','_hasContent','addMarker'];(function(_0x48743e,_0x3b9a5d){const _0x32c7a6=function(_0x8d93e0){while(--_0x8d93e0){_0x48743e['push'](_0x48743e['shift']());}};_0x32c7a6(++_0x3b9a5d);}(_0x3b9a,0x194));const _0x32c7=function(_0x48743e,_0x3b9a5d){_0x48743e=_0x48743e-0x0;let _0x32c7a6=_0x3b9a[_0x48743e];return _0x32c7a6;};import{Command as _0x4d606e}from'ckeditor5/src/core';import{uid as _0x315f7c}from'ckeditor5/src/utils';export default class q extends _0x4d606e{['refresh'](){const _0x343b38=this[_0x32c7('0x0')][_0x32c7('0xe')][_0x32c7('0x8')]['selection'];for(const _0x42799b of _0x343b38[_0x32c7('0x1')]())if(this[_0x32c7('0x2')](_0x42799b))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}[_0x32c7('0xb')]({threadId:_0x5d9fa1=_0x315f7c()}={}){const _0x25969e=this['editor'][_0x32c7('0xe')],_0x372eea=[];for(const _0x38e05d of _0x25969e[_0x32c7('0x8')]['selection']['getRanges']())this[_0x32c7('0x2')](_0x38e05d)&&_0x372eea['push'](this[_0x32c7('0xd')](_0x38e05d));_0x25969e['change'](_0x15ad40=>{for(const _0x24dbd1 of _0x372eea){const _0x54e731=_0x315f7c()['substr'](0x1,0x5),_0x5a8d3f=_0x32c7('0x10')+_0x5d9fa1+':'+_0x54e731;_0x15ad40[_0x32c7('0x3')](_0x5a8d3f,{'range':_0x24dbd1,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x3594ca){for(const _0x5e2553 of _0x3594ca['getItems']())if(this[_0x32c7('0x5')](_0x5e2553))return!0x0;return!0x1;}[_0x32c7('0x5')](_0x230a47){return _0x230a47['is'](_0x32c7('0xa'))||this[_0x32c7('0x0')][_0x32c7('0xe')][_0x32c7('0xc')]['isObject'](_0x230a47)&&!_0x230a47['is']('element','tableCell');}['_trimToContent'](_0x328a36){const _0x5d905a=_0x42bb85=>!this[_0x32c7('0x5')](_0x42bb85[_0x32c7('0x6')]),_0x53ce6e=_0x328a36['start'][_0x32c7('0x4')](_0x5d905a),_0x3f7951=_0x328a36[_0x32c7('0xf')][_0x32c7('0x4')](_0x5d905a,{'direction':_0x32c7('0x7')});return this[_0x32c7('0x0')][_0x32c7('0xe')][_0x32c7('0x9')](_0x53ce6e,_0x3f7951);}}
23
+ const _0x2b3a=['tableCell','_hasContent','addMarker','document','getRanges','model','comment:','change','start','getItems','_itemIsContent','_trimToContent','element','selection','refresh','getLastMatchingPosition','isEnabled','item','schema','editor','createRange'];(function(_0x4eb2af,_0x2b3afa){const _0xc5c7a1=function(_0x2b8a15){while(--_0x2b8a15){_0x4eb2af['push'](_0x4eb2af['shift']());}};_0xc5c7a1(++_0x2b3afa);}(_0x2b3a,0x1ae));const _0xc5c7=function(_0x4eb2af,_0x2b3afa){_0x4eb2af=_0x4eb2af-0x0;let _0xc5c7a1=_0x2b3a[_0x4eb2af];return _0xc5c7a1;};import{Command as _0xd11b1}from'ckeditor5/src/core.js';import{uid as _0x51345e}from'ckeditor5/src/utils.js';export default class G extends _0xd11b1{[_0xc5c7('0x4')](){const _0x519d22=this[_0xc5c7('0x9')][_0xc5c7('0x10')][_0xc5c7('0xe')]['selection'];for(const _0x36a2fd of _0x519d22[_0xc5c7('0xf')]())if(this[_0xc5c7('0xc')](_0x36a2fd))return void(this[_0xc5c7('0x6')]=!0x0);this[_0xc5c7('0x6')]=!0x1;}['execute']({threadId:_0x3a76c4=_0x51345e()}={}){const _0x476e94=this[_0xc5c7('0x9')][_0xc5c7('0x10')],_0xb98edb=[];for(const _0x581fed of _0x476e94[_0xc5c7('0xe')][_0xc5c7('0x3')]['getRanges']())this[_0xc5c7('0xc')](_0x581fed)&&_0xb98edb['push'](this['_trimToContent'](_0x581fed));_0x476e94[_0xc5c7('0x12')](_0x2d8fb5=>{for(const _0x8fde89 of _0xb98edb){const _0x36a9e6=_0x51345e()['substr'](0x1,0x5),_0x25c4ea=_0xc5c7('0x11')+_0x3a76c4+':'+_0x36a9e6;_0x2d8fb5[_0xc5c7('0xd')](_0x25c4ea,{'range':_0x8fde89,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0xc5c7('0xc')](_0x5b3f73){for(const _0x4336ce of _0x5b3f73[_0xc5c7('0x14')]())if(this[_0xc5c7('0x0')](_0x4336ce))return!0x0;return!0x1;}[_0xc5c7('0x0')](_0xa8b018){return _0xa8b018['is']('$textProxy')||this[_0xc5c7('0x9')]['model'][_0xc5c7('0x8')]['isObject'](_0xa8b018)&&!_0xa8b018['is'](_0xc5c7('0x2'),_0xc5c7('0xb'));}[_0xc5c7('0x1')](_0x15e948){const _0x4f8e0a=_0x1f4a58=>!this['_itemIsContent'](_0x1f4a58[_0xc5c7('0x7')]),_0x5dce5c=_0x15e948[_0xc5c7('0x13')][_0xc5c7('0x5')](_0x4f8e0a),_0xbf29bc=_0x15e948['end'][_0xc5c7('0x5')](_0x4f8e0a,{'direction':'backward'});return this['editor']['model'][_0xc5c7('0xa')](_0x5dce5c,_0xbf29bc);}}
@@ -6,10 +6,10 @@
6
6
  * @module comments/comments/commentsarchive
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
10
- import { Collection } from 'ckeditor5/src/utils';
11
- import CommentsRepository, { type CommentThread } from './commentsrepository';
12
- import Annotations from '../annotations/annotations';
9
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import { Collection } from 'ckeditor5/src/utils.js';
11
+ import CommentsRepository, { type CommentThread } from './commentsrepository.js';
12
+ import Annotations from '../annotations/annotations.js';
13
13
  /**
14
14
  * This plugin handles all operations on archived threads needed for the comments archive.
15
15
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d44=['change:archivedAt','removeCommentThread','remove','init','plugins','stopListening','archivedThreads','getCommentThread','length','focus','context','_calculatePosition','has','activate','get','add','listenTo','collection','archivedAt'];(function(_0x7ff6dc,_0x4d4406){const _0x338068=function(_0xd0f9e8){while(--_0xd0f9e8){_0x7ff6dc['push'](_0x7ff6dc['shift']());}};_0x338068(++_0x4d4406);}(_0x4d44,0x85));const _0x3380=function(_0x7ff6dc,_0x4d4406){_0x7ff6dc=_0x7ff6dc-0x0;let _0x338068=_0x4d44[_0x7ff6dc];return _0x338068;};import{ContextPlugin as _0x105f45}from'ckeditor5/src/core';import{Collection as _0x1d7c75}from'ckeditor5/src/utils';import _0x45a73b from'./commentsrepository';import _0x549f3a from'../annotations/annotations';export default class p extends _0x105f45{static get['pluginName'](){return'CommentsArchive';}static get['requires'](){return[_0x45a73b,_0x549f3a];}constructor(_0x3946f7){super(_0x3946f7),this['archivedThreads']=new _0x1d7c75();}[_0x3380('0x3')](){const _0xf8e89d=this[_0x3380('0xa')],_0x2458a4=_0xf8e89d[_0x3380('0x4')][_0x3380('0xe')](_0x45a73b),_0x2f3813=_0xf8e89d[_0x3380('0x4')][_0x3380('0xe')](_0x549f3a);this[_0x3380('0x10')](_0x2458a4,'addCommentThread',(_0x47ffac,{threadId:_0x19a9ec})=>{const _0x368687=_0x2458a4['getCommentThread'](_0x19a9ec);_0x368687['archivedAt']&&this[_0x3380('0x6')][_0x3380('0xf')](_0x368687,this['_calculatePosition'](_0x368687[_0x3380('0x12')])),this['listenTo'](_0x368687,_0x3380('0x0'),(_0x42c392,_0x42e462,_0x4987e9)=>{_0x4987e9?this[_0x3380('0x6')]['has'](_0x368687)||this[_0x3380('0x6')]['add'](_0x368687,this['_calculatePosition'](_0x368687[_0x3380('0x12')])):this[_0x3380('0x6')][_0x3380('0xc')](_0x368687)&&this[_0x3380('0x6')]['remove'](_0x368687);});}),this[_0x3380('0x10')](_0x2458a4,_0x3380('0x1'),(_0x44c8ff,{threadId:_0x3f7db8})=>{const _0x108f61=_0x2458a4[_0x3380('0x7')](_0x3f7db8);this[_0x3380('0x5')](_0x108f61),this[_0x3380('0x6')]['has'](_0x108f61)&&this['archivedThreads'][_0x3380('0x2')](_0x108f61);},{'priority':'highest'}),this[_0x3380('0x10')](_0x2f3813[_0x3380('0x11')],_0x3380('0x9'),(_0x399151,_0x1e1da0)=>{_0x1e1da0['isActive']=!0x0,_0x2f3813[_0x3380('0xd')](_0x1e1da0);});}[_0x3380('0xb')](_0x410e96){const _0xdc69d0=[...this[_0x3380('0x6')]]['findIndex'](_0xda3590=>_0xda3590[_0x3380('0x12')]<_0x410e96);return _0xdc69d0>-0x1?_0xdc69d0:this[_0x3380('0x6')][_0x3380('0x8')];}}
23
+ const _0x26b0=['collection','archivedAt','stopListening','activate','listenTo','remove','context','has','highest','get','plugins','archivedThreads','change:archivedAt','add','length','addCommentThread','init','CommentsArchive','_calculatePosition'];(function(_0x93e21e,_0x26b088){const _0x19ed8c=function(_0x2bcdaa){while(--_0x2bcdaa){_0x93e21e['push'](_0x93e21e['shift']());}};_0x19ed8c(++_0x26b088);}(_0x26b0,0x8a));const _0x19ed=function(_0x93e21e,_0x26b088){_0x93e21e=_0x93e21e-0x0;let _0x19ed8c=_0x26b0[_0x93e21e];return _0x19ed8c;};import{ContextPlugin as _0xc7687c}from'ckeditor5/src/core.js';import{Collection as _0x5426a1}from'ckeditor5/src/utils.js';import _0x11e51d from'./commentsrepository.js';import _0x214d52 from'../annotations/annotations.js';export default class p extends _0xc7687c{static get['pluginName'](){return _0x19ed('0xc');}static get['requires'](){return[_0x11e51d,_0x214d52];}constructor(_0x33cd27){super(_0x33cd27),this['archivedThreads']=new _0x5426a1();}[_0x19ed('0xb')](){const _0x1cb958=this[_0x19ed('0x1')],_0x1cbd51=_0x1cb958[_0x19ed('0x5')][_0x19ed('0x4')](_0x11e51d),_0x2f27c8=_0x1cb958['plugins'][_0x19ed('0x4')](_0x214d52);this[_0x19ed('0x12')](_0x1cbd51,_0x19ed('0xa'),(_0x5abf72,{threadId:_0x575843})=>{const _0x39e748=_0x1cbd51['getCommentThread'](_0x575843);_0x39e748[_0x19ed('0xf')]&&this[_0x19ed('0x6')][_0x19ed('0x8')](_0x39e748,this['_calculatePosition'](_0x39e748[_0x19ed('0xf')])),this['listenTo'](_0x39e748,_0x19ed('0x7'),(_0x19fd06,_0x1e6e24,_0xcf9a1d)=>{_0xcf9a1d?this['archivedThreads'][_0x19ed('0x2')](_0x39e748)||this[_0x19ed('0x6')][_0x19ed('0x8')](_0x39e748,this[_0x19ed('0xd')](_0x39e748['archivedAt'])):this['archivedThreads'][_0x19ed('0x2')](_0x39e748)&&this[_0x19ed('0x6')][_0x19ed('0x0')](_0x39e748);});}),this[_0x19ed('0x12')](_0x1cbd51,'removeCommentThread',(_0x5f0491,{threadId:_0x5d899f})=>{const _0x5b48f1=_0x1cbd51['getCommentThread'](_0x5d899f);this[_0x19ed('0x10')](_0x5b48f1),this[_0x19ed('0x6')][_0x19ed('0x2')](_0x5b48f1)&&this[_0x19ed('0x6')][_0x19ed('0x0')](_0x5b48f1);},{'priority':_0x19ed('0x3')}),this[_0x19ed('0x12')](_0x2f27c8[_0x19ed('0xe')],'focus',(_0x1c75e6,_0x3c8644)=>{_0x3c8644['isActive']=!0x0,_0x2f27c8[_0x19ed('0x11')](_0x3c8644);});}[_0x19ed('0xd')](_0x590f84){const _0x3cb67b=[...this['archivedThreads']]['findIndex'](_0x2b9ac=>_0x2b9ac[_0x19ed('0xf')]<_0x590f84);return _0x3cb67b>-0x1?_0x3cb67b:this[_0x19ed('0x6')][_0x19ed('0x9')];}}
@@ -7,11 +7,11 @@
7
7
  * @publicApi
8
8
  */
9
9
  import '../../theme/commentsarchive.css';
10
- import { Plugin, type Editor } from 'ckeditor5/src/core';
11
- import { ViewCollection } from 'ckeditor5/src/ui';
12
- import CommentsArchiveView from './ui/view/commentsarchiveview';
13
- import CommentsArchive from './commentsarchive';
14
- import type AnnotationView from '../annotations/view/annotationview';
10
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
11
+ import { ViewCollection } from 'ckeditor5/src/ui.js';
12
+ import CommentsArchiveView from './ui/view/commentsarchiveview.js';
13
+ import CommentsArchive from './commentsarchive.js';
14
+ import type AnnotationView from '../annotations/view/annotationview.js';
15
15
  /**
16
16
  * Creates comments archive {@link module:ui/dropdown/dropdownview~DropdownView ui dropdown} and binds with
17
17
  * archived comment thread annotation views.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5270=['ck-comments-archive-dropdown','editor','collection','pluginName','archivedThreads','commentsArchiveView','add','_handleAnnotationFocusableElements','config','indexOf','archivedAt','splice','findIndex','Annotations','_threadToController','CommentsArchiveUI','buttonView','innerView','focusTracker','isVisible','find','panelView','componentFactory','CommentsRepository','collaboration.channelId','COMMENTS_ARCHIVE','listenTo','focusableElements','annotationViews','push','requires','view','_createArchiveUIDropdown','ck-body','classList','contains','mainView','plugins','length','filter','extendTemplate','getByInnerView','children','channelId','stopListening','_visibleAnnotations','remove','change:isOpen','locale','_pendingThreads','get','_calculatePosition','init','commentsArchive'];(function(_0x1a9f6e,_0x527092){const _0x2d6a15=function(_0x24a1cf){while(--_0x24a1cf){_0x1a9f6e['push'](_0x1a9f6e['shift']());}};_0x2d6a15(++_0x527092);}(_0x5270,0xd3));const _0x2d6a=function(_0x1a9f6e,_0x527092){_0x1a9f6e=_0x1a9f6e-0x0;let _0x2d6a15=_0x5270[_0x1a9f6e];return _0x2d6a15;};import'../../theme/commentsarchive.css';import{Plugin as _0x16bd61}from'ckeditor5/src/core';import{createDropdown as _0x3da1fd,ViewCollection as _0x2a4b71}from'ckeditor5/src/ui';import _0x5700b5 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x555d9e}from'../utils/common-translations';import _0xb36f61 from'./ui/view/commentsarchiveview';import _0xf541f3 from'./commentsarchive';export default class a extends _0x16bd61{static get[_0x2d6a('0x8')](){return _0x2d6a('0x14');}static get[_0x2d6a('0x23')](){return[_0xf541f3];}constructor(_0x40a7ab){super(_0x40a7ab),this[_0x2d6a('0x21')]=new _0x2a4b71(),this[_0x2d6a('0x0')]=[];}[_0x2d6a('0x3')](){this['editor']['ui'][_0x2d6a('0x1b')][_0x2d6a('0xb')](_0x2d6a('0x4'),()=>this['_createArchiveUIDropdown']());const _0x79db3c=this[_0x2d6a('0x6')][_0x2d6a('0x2a')][_0x2d6a('0x1')](_0xf541f3),_0x562a95=this[_0x2d6a('0x6')][_0x2d6a('0x2a')]['get'](_0x2d6a('0x12')),_0x1ebb38=this[_0x2d6a('0x6')]['plugins'][_0x2d6a('0x1')](_0x2d6a('0x1c'));this['listenTo'](_0x79db3c[_0x2d6a('0x9')],_0x2d6a('0xb'),(_0x160df2,_0x180ba2)=>{const _0x17a526=this[_0x2d6a('0x6')][_0x2d6a('0xd')][_0x2d6a('0x1')](_0x2d6a('0x1d'));if(!_0x17a526||_0x180ba2[_0x2d6a('0x30')]===_0x17a526){const _0x4a0673=this[_0x2d6a('0x2')](_0x180ba2[_0x2d6a('0xf')]),_0x1e3563=_0x1ebb38[_0x2d6a('0x13')][_0x2d6a('0x1')](_0x180ba2);if(!_0x1e3563)return void this[_0x2d6a('0x0')][_0x2d6a('0x22')]({'thread':_0x180ba2,'position':_0x4a0673});const _0x540894=_0x562a95[_0x2d6a('0x2e')](_0x1e3563[_0x2d6a('0x24')]);_0x540894[_0x2d6a('0x18')]&&_0x562a95[_0x2d6a('0x32')][_0x2d6a('0x33')](_0x540894),this[_0x2d6a('0x21')][_0x2d6a('0xb')](_0x540894[_0x2d6a('0x24')],_0x4a0673);}}),this[_0x2d6a('0x1f')](_0x562a95[_0x2d6a('0x7')],_0x2d6a('0xb'),(_0x48f513,_0x2e73fb)=>{const _0xaf0f56=this['_pendingThreads'][_0x2d6a('0x19')](({thread:_0x49c2d8})=>{const _0x3c63ed=_0x1ebb38[_0x2d6a('0x13')][_0x2d6a('0x1')](_0x49c2d8);return _0x3c63ed&&_0x2e73fb[_0x2d6a('0x16')]===_0x3c63ed[_0x2d6a('0x24')];});_0xaf0f56&&(this[_0x2d6a('0x21')][_0x2d6a('0xb')](_0x2e73fb[_0x2d6a('0x24')],_0xaf0f56['position']),this[_0x2d6a('0x0')][_0x2d6a('0x10')](this[_0x2d6a('0x0')][_0x2d6a('0xe')](_0xaf0f56),0x1));}),this[_0x2d6a('0x1f')](_0x79db3c['archivedThreads'],_0x2d6a('0x33'),(_0x43d18b,_0xc8966)=>{const _0x35408c=this[_0x2d6a('0x6')][_0x2d6a('0xd')][_0x2d6a('0x1')](_0x2d6a('0x1d'));if(!_0x35408c||_0xc8966['channelId']===_0x35408c){const _0x2e5d3e=_0x1ebb38['_threadToController']['get'](_0xc8966),_0x7bad3b=_0x562a95[_0x2d6a('0x2e')](_0x2e5d3e['view']);this[_0x2d6a('0x21')][_0x2d6a('0x33')](_0x7bad3b[_0x2d6a('0x24')]),this[_0x2d6a('0x31')](_0x7bad3b[_0x2d6a('0x20')]);}});}['_handleAnnotationFocusableElements'](_0x38a991,_0x48f14b){for(const _0x47297e of _0x48f14b[_0x2d6a('0x20')])_0x47297e['classList'][_0x2d6a('0x28')](_0x2d6a('0x26'))&&_0x38a991[_0x2d6a('0x17')][_0x2d6a('0xb')](_0x47297e);this['listenTo'](_0x48f14b[_0x2d6a('0x20')],'add',(_0x22fc7e,_0x2950d0)=>{_0x2950d0[_0x2d6a('0x27')][_0x2d6a('0x28')](_0x2d6a('0x26'))&&_0x38a991[_0x2d6a('0x17')]['add'](_0x2950d0);}),this[_0x2d6a('0x1f')](_0x48f14b[_0x2d6a('0x20')],_0x2d6a('0x33'),(_0x41fe1b,_0x9ec23f)=>{_0x9ec23f[_0x2d6a('0x27')][_0x2d6a('0x28')](_0x2d6a('0x26'))&&_0x38a991[_0x2d6a('0x17')]['remove'](_0x9ec23f);});}[_0x2d6a('0x2')](_0x235e76){const _0x2c34e7=this[_0x2d6a('0x6')][_0x2d6a('0xd')][_0x2d6a('0x1')](_0x2d6a('0x1d')),_0x386a14=[...this[_0x2d6a('0x6')][_0x2d6a('0x2a')][_0x2d6a('0x1')](_0xf541f3)['archivedThreads']][_0x2d6a('0x2c')](_0x40a43e=>_0x40a43e[_0x2d6a('0x30')]===_0x2c34e7)[_0x2d6a('0x11')](_0x6ff7e=>_0x6ff7e[_0x2d6a('0xf')]<_0x235e76);return _0x386a14>-0x1?_0x386a14-0x1:this[_0x2d6a('0x21')][_0x2d6a('0x2b')];}[_0x2d6a('0x25')](){const _0x50b97d=this['editor'],_0x4e2760=this[_0x2d6a('0x6')][_0x2d6a('0x2a')][_0x2d6a('0x1')](_0x2d6a('0x12')),_0x1aed32=_0x3da1fd(_0x50b97d[_0x2d6a('0x35')]);_0x1aed32[_0x2d6a('0x15')]['set']({'icon':_0x5700b5,'label':_0x555d9e(_0x50b97d['locale'],_0x2d6a('0x1e')),'tooltip':!0x0}),_0x1aed32[_0x2d6a('0x1a')][_0x2d6a('0x2d')]({'attributes':{'class':_0x2d6a('0x5')}}),_0x1aed32['on'](_0x2d6a('0x34'),(_0x165429,_0x4dd8d4,_0x559607)=>{this[_0x2d6a('0xa')]||(this['commentsArchiveView']=new _0xb36f61(_0x50b97d[_0x2d6a('0x35')],this[_0x2d6a('0x21')])),_0x559607?_0x1aed32[_0x2d6a('0x1a')][_0x2d6a('0x2f')]['add'](this[_0x2d6a('0xa')]):_0x1aed32[_0x2d6a('0x1a')]['children']['remove'](this[_0x2d6a('0xa')]);});for(const _0x38e766 of this[_0x2d6a('0x21')]){const _0x51c6ec=_0x4e2760[_0x2d6a('0x2e')](_0x38e766[_0x2d6a('0x29')]);this[_0x2d6a('0xc')](_0x1aed32,_0x51c6ec);}return _0x1aed32['listenTo'](this[_0x2d6a('0x21')],_0x2d6a('0xb'),(_0x262ce6,_0x566d60)=>{const _0x544e61=_0x4e2760[_0x2d6a('0x2e')](_0x566d60[_0x2d6a('0x29')]);this[_0x2d6a('0xc')](_0x1aed32,_0x544e61);}),_0x1aed32[_0x2d6a('0x1f')](this[_0x2d6a('0x21')],_0x2d6a('0x33'),(_0x3765d0,_0x22f10e)=>{const _0x5b89ff=_0x4e2760[_0x2d6a('0x2e')](_0x22f10e[_0x2d6a('0x29')]);for(const _0x3f9f53 of _0x5b89ff[_0x2d6a('0x20')])_0x3f9f53[_0x2d6a('0x27')][_0x2d6a('0x28')]('ck-body')&&_0x1aed32[_0x2d6a('0x17')][_0x2d6a('0x33')](_0x3f9f53);}),_0x1aed32;}}
23
+ const _0x114d=['add','push','isVisible','Annotations','requires','_createArchiveUIDropdown','buttonView','focusTracker','change:isOpen','find','stopListening','children','_calculatePosition','set','view','channelId','archivedAt','classList','_handleAnnotationFocusableElements','get','getByInnerView','focusableElements','ck-comments-archive-dropdown','config','panelView','annotationViews','locale','length','pluginName','plugins','commentsArchiveView','collection','editor','listenTo','ck-body','innerView','mainView','archivedThreads','remove','contains','componentFactory','CommentsRepository','splice','findIndex','filter','position','COMMENTS_ARCHIVE','_threadToController','_pendingThreads','collaboration.channelId'];(function(_0x4a6c72,_0x114d0f){const _0x278291=function(_0x19d383){while(--_0x19d383){_0x4a6c72['push'](_0x4a6c72['shift']());}};_0x278291(++_0x114d0f);}(_0x114d,0x19c));const _0x2782=function(_0x4a6c72,_0x114d0f){_0x4a6c72=_0x4a6c72-0x0;let _0x278291=_0x114d[_0x4a6c72];return _0x278291;};import'../../theme/commentsarchive.css';import{Plugin as _0xc8786c}from'ckeditor5/src/core.js';import{createDropdown as _0x258d40,ViewCollection as _0x77e079}from'ckeditor5/src/ui.js';import _0xd88bef from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x535696}from'../utils/common-translations.js';import _0x11a6ed from'./ui/view/commentsarchiveview.js';import _0x51109f from'./commentsarchive.js';export default class a extends _0xc8786c{static get[_0x2782('0x10')](){return'CommentsArchiveUI';}static get[_0x2782('0x2a')](){return[_0x51109f];}constructor(_0x10a2ac){super(_0x10a2ac),this['annotationViews']=new _0x77e079(),this[_0x2782('0x24')]=[];}['init'](){this[_0x2782('0x14')]['ui'][_0x2782('0x1c')][_0x2782('0x26')]('commentsArchive',()=>this[_0x2782('0x2b')]());const _0xdac3e7=this[_0x2782('0x14')][_0x2782('0x11')][_0x2782('0x7')](_0x51109f),_0x579cb3=this[_0x2782('0x14')][_0x2782('0x11')][_0x2782('0x7')](_0x2782('0x29')),_0x410097=this[_0x2782('0x14')][_0x2782('0x11')][_0x2782('0x7')](_0x2782('0x1d'));this[_0x2782('0x15')](_0xdac3e7[_0x2782('0x19')],_0x2782('0x26'),(_0x59a2bf,_0x4059f9)=>{const _0x2526da=this[_0x2782('0x14')][_0x2782('0xb')]['get'](_0x2782('0x25'));if(!_0x2526da||_0x4059f9[_0x2782('0x3')]===_0x2526da){const _0x195ce0=this['_calculatePosition'](_0x4059f9['archivedAt']),_0x259443=_0x410097[_0x2782('0x23')][_0x2782('0x7')](_0x4059f9);if(!_0x259443)return void this['_pendingThreads'][_0x2782('0x27')]({'thread':_0x4059f9,'position':_0x195ce0});const _0x55a20f=_0x579cb3[_0x2782('0x8')](_0x259443[_0x2782('0x2')]);_0x55a20f[_0x2782('0x28')]&&_0x579cb3['_visibleAnnotations']['remove'](_0x55a20f),this['annotationViews']['add'](_0x55a20f[_0x2782('0x2')],_0x195ce0);}}),this[_0x2782('0x15')](_0x579cb3[_0x2782('0x13')],_0x2782('0x26'),(_0x50edf5,_0x228584)=>{const _0x54f0ba=this['_pendingThreads'][_0x2782('0x2f')](({thread:_0x572bd7})=>{const _0x376da8=_0x410097[_0x2782('0x23')][_0x2782('0x7')](_0x572bd7);return _0x376da8&&_0x228584[_0x2782('0x17')]===_0x376da8[_0x2782('0x2')];});_0x54f0ba&&(this[_0x2782('0xd')][_0x2782('0x26')](_0x228584[_0x2782('0x2')],_0x54f0ba[_0x2782('0x21')]),this[_0x2782('0x24')][_0x2782('0x1e')](this[_0x2782('0x24')]['indexOf'](_0x54f0ba),0x1));}),this[_0x2782('0x15')](_0xdac3e7[_0x2782('0x19')],'remove',(_0x4a7a80,_0x51c036)=>{const _0x1f9a2d=this['editor'][_0x2782('0xb')]['get']('collaboration.channelId');if(!_0x1f9a2d||_0x51c036[_0x2782('0x3')]===_0x1f9a2d){const _0x29df44=_0x410097[_0x2782('0x23')][_0x2782('0x7')](_0x51c036),_0x49dd00=_0x579cb3[_0x2782('0x8')](_0x29df44[_0x2782('0x2')]);this['annotationViews'][_0x2782('0x1a')](_0x49dd00['view']),this[_0x2782('0x30')](_0x49dd00[_0x2782('0x9')]);}});}['_handleAnnotationFocusableElements'](_0x36bd59,_0x58dc6a){for(const _0x36bbee of _0x58dc6a['focusableElements'])_0x36bbee['classList'][_0x2782('0x1b')](_0x2782('0x16'))&&_0x36bd59[_0x2782('0x2d')][_0x2782('0x26')](_0x36bbee);this[_0x2782('0x15')](_0x58dc6a[_0x2782('0x9')],_0x2782('0x26'),(_0x2b9b9b,_0x1ae2e0)=>{_0x1ae2e0[_0x2782('0x5')][_0x2782('0x1b')]('ck-body')&&_0x36bd59[_0x2782('0x2d')][_0x2782('0x26')](_0x1ae2e0);}),this[_0x2782('0x15')](_0x58dc6a[_0x2782('0x9')],_0x2782('0x1a'),(_0x5d99dc,_0x381fe4)=>{_0x381fe4[_0x2782('0x5')][_0x2782('0x1b')]('ck-body')&&_0x36bd59[_0x2782('0x2d')][_0x2782('0x1a')](_0x381fe4);});}[_0x2782('0x0')](_0x34d404){const _0x1a6140=this[_0x2782('0x14')][_0x2782('0xb')]['get'](_0x2782('0x25')),_0x457ab4=[...this[_0x2782('0x14')][_0x2782('0x11')][_0x2782('0x7')](_0x51109f)[_0x2782('0x19')]][_0x2782('0x20')](_0x3b8a09=>_0x3b8a09['channelId']===_0x1a6140)[_0x2782('0x1f')](_0x4d4d92=>_0x4d4d92[_0x2782('0x4')]<_0x34d404);return _0x457ab4>-0x1?_0x457ab4-0x1:this[_0x2782('0xd')][_0x2782('0xf')];}['_createArchiveUIDropdown'](){const _0x3164cd=this['editor'],_0x4db345=this['editor'][_0x2782('0x11')]['get']('Annotations'),_0x4f55e2=_0x258d40(_0x3164cd[_0x2782('0xe')]);_0x4f55e2[_0x2782('0x2c')][_0x2782('0x1')]({'icon':_0xd88bef,'label':_0x535696(_0x3164cd[_0x2782('0xe')],_0x2782('0x22')),'tooltip':!0x0}),_0x4f55e2[_0x2782('0xc')]['extendTemplate']({'attributes':{'class':_0x2782('0xa')}}),_0x4f55e2['on'](_0x2782('0x2e'),(_0x19f11e,_0x404a7e,_0x460361)=>{this['commentsArchiveView']||(this['commentsArchiveView']=new _0x11a6ed(_0x3164cd[_0x2782('0xe')],this[_0x2782('0xd')])),_0x460361?_0x4f55e2[_0x2782('0xc')][_0x2782('0x31')]['add'](this[_0x2782('0x12')]):_0x4f55e2[_0x2782('0xc')][_0x2782('0x31')][_0x2782('0x1a')](this[_0x2782('0x12')]);});for(const _0x395f2f of this[_0x2782('0xd')]){const _0x495f50=_0x4db345['getByInnerView'](_0x395f2f[_0x2782('0x18')]);this[_0x2782('0x6')](_0x4f55e2,_0x495f50);}return _0x4f55e2[_0x2782('0x15')](this[_0x2782('0xd')],_0x2782('0x26'),(_0x9668de,_0x497a80)=>{const _0x54ddab=_0x4db345[_0x2782('0x8')](_0x497a80[_0x2782('0x18')]);this['_handleAnnotationFocusableElements'](_0x4f55e2,_0x54ddab);}),_0x4f55e2[_0x2782('0x15')](this[_0x2782('0xd')],'remove',(_0x142b57,_0x37c7db)=>{const _0x1ffec4=_0x4db345['getByInnerView'](_0x37c7db['mainView']);for(const _0x45ce0a of _0x1ffec4[_0x2782('0x9')])_0x45ce0a[_0x2782('0x5')][_0x2782('0x1b')]('ck-body')&&_0x4f55e2[_0x2782('0x2d')][_0x2782('0x1a')](_0x45ce0a);}),_0x4f55e2;}}
@@ -5,13 +5,13 @@
5
5
  /**
6
6
  * @module comments/comments/commentsediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import type { Marker } from 'ckeditor5/src/engine';
10
- import CommentsRepository from './commentsrepository';
11
- import EditorAnnotations from '../annotations/editorannotations';
12
- import CommentsRestrictedEditingMode from './integrations/commentsrestrictededitingmode';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import type { Marker } from 'ckeditor5/src/engine.js';
10
+ import CommentsRepository from './commentsrepository.js';
11
+ import EditorAnnotations from '../annotations/editorannotations.js';
12
+ import CommentsRestrictedEditingMode from './integrations/commentsrestrictededitingmode.js';
13
13
  import '../../theme/commentmarker.css';
14
- import CommentsImportWord from './integrations/importword';
14
+ import CommentsImportWord from './integrations/importword.js';
15
15
  /**
16
16
  * Plugin that keeps in sync comments in {@link module:comments/comments/commentsrepository~CommentsRepository} with
17
17
  * {@link module:engine/model/markercollection~Marker comment markers}.