@ckeditor/ckeditor5-comments 40.1.0 → 40.2.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 (51) hide show
  1. package/CHANGELOG.md +19 -19
  2. package/README.md +1 -1
  3. package/build/comments.js +1 -1
  4. package/build/translations/gl.js +1 -1
  5. package/build/translations/sr-latn.js +1 -1
  6. package/build/translations/ug.js +1 -1
  7. package/lang/translations/gl.po +2 -2
  8. package/lang/translations/sr-latn.po +3 -3
  9. package/lang/translations/ug.po +10 -10
  10. package/package.json +3 -3
  11. package/src/annotations/annotation.js +1 -1
  12. package/src/annotations/annotationcollection.js +1 -1
  13. package/src/annotations/annotations.js +1 -1
  14. package/src/annotations/annotationsuis.js +1 -1
  15. package/src/annotations/editorannotations.js +1 -1
  16. package/src/annotations/inlineannotations.js +1 -1
  17. package/src/annotations/narrowsidebar.js +1 -1
  18. package/src/annotations/sidebar.js +1 -1
  19. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  20. package/src/annotations/view/annotationview.js +1 -1
  21. package/src/annotations/view/sidebaritemview.js +1 -1
  22. package/src/annotations/view/sidebarview.js +1 -1
  23. package/src/annotations/widesidebar.js +1 -1
  24. package/src/comments/addcommentthreadcommand.js +1 -1
  25. package/src/comments/commentsarchive.js +1 -1
  26. package/src/comments/commentsarchiveui.js +1 -1
  27. package/src/comments/commentsediting.js +1 -1
  28. package/src/comments/commentsrepository.d.ts +1 -0
  29. package/src/comments/commentsrepository.js +1 -1
  30. package/src/comments/commentsui.js +1 -1
  31. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  32. package/src/comments/integrations/importword.js +1 -1
  33. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  34. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  35. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  36. package/src/comments/ui/commentthreadcontroller.js +1 -1
  37. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  38. package/src/comments/ui/view/basecommentview.js +1 -1
  39. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  40. package/src/comments/ui/view/commentcontentview.js +1 -1
  41. package/src/comments/ui/view/commentinputview.js +1 -1
  42. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  43. package/src/comments/ui/view/commentslistview.js +1 -1
  44. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  45. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  46. package/src/comments/ui/view/commentthreadview.js +1 -1
  47. package/src/comments/ui/view/commentview.js +1 -1
  48. package/src/comments.js +1 -1
  49. package/src/commentsonly.js +1 -1
  50. package/src/utils/common-translations.js +1 -1
  51. package/src/utils/createmutationobserver.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2eda=['clear','getIndex','sidebar-setcontainer-invalid-element','length','unbind','define','change:top','push','nodeType','context','get','minHeight','max','_getItemBefore','_getMaxAvailableTop','appendChild','destroy','_lastItem','targetRect','_annotationToSidebarItemView','updateHeight','last','pluginName','bottom','_getItemAfter','class','getSidebarItemView','_alignAfterItem','delete','content','object','isAnimationDisabled','set','refresh','_alignForBottomChange','addAnnotation','target','_getTargetTop','_sidebarItemViewToAnnotation','container','listenTo','setContainer','_recalculate','_alignForTopChange','_recalculateBuffer','_targetTop','element','view','remove','height','config','list','add','render','init','_attachToContainer','_activeAnnotation','_spaceBetweenItems','_createSidebarView','sidebar.preventScrollOutOfView','_annotations','top','_detachFromContainer','_alignBeforeItem','stopListening','locale','Sidebar','sidebar-attachtocontainer-missing-container','_setItemTop','_destroySidebarItemView','change:_lastItem','_updateLastItem','_alignToTargetRect'];(function(_0x426544,_0x2edaec){const _0x2f4f4f=function(_0x424612){while(--_0x424612){_0x426544['push'](_0x426544['shift']());}};_0x2f4f4f(++_0x2edaec);}(_0x2eda,0x17b));const _0x2f4f=function(_0x426544,_0x2edaec){_0x426544=_0x426544-0x0;let _0x2f4f4f=_0x2eda[_0x426544];return _0x2f4f4f;};import{ContextPlugin as _0xe5f52b}from'ckeditor5/src/core';import{Rect as _0x1ea5c1,CKEditorError as _0x24bc6d}from'ckeditor5/src/utils';import _0x14f71 from'./view/sidebarview';import _0xf1f8e3 from'./view/sidebaritemview';export default class z extends _0xe5f52b{static get[_0x2f4f('0x8')](){return _0x2f4f('0x34');}constructor(_0x4b51b2){super(_0x4b51b2),this[_0x2f4f('0x12')]('_lastItem',void 0x0),this[_0x2f4f('0x21')]=this[_0x2f4f('0x2c')](),this[_0x2f4f('0x12')](_0x2f4f('0x19'),null),this[_0x2f4f('0x2b')]=0x19,this[_0x2f4f('0x18')]=new Map(),this[_0x2f4f('0x5')]=new Map(),this[_0x2f4f('0x44')]['config'][_0x2f4f('0x40')](_0x2f4f('0x2d'),!0x1),this[_0x2f4f('0x2e')]=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x2f4f('0x28')](){const _0x5acf5c=this['context'][_0x2f4f('0x24')]['get']('sidebar.container');_0x5acf5c&&this['setContainer'](_0x5acf5c);}[_0x2f4f('0x1b')](_0x32e4c0){if(!y(_0x32e4c0))throw new _0x24bc6d(_0x2f4f('0x3d'));this['container']=_0x32e4c0;}[_0x2f4f('0x29')]({viewClass:_0x202d10='',spaceBetweenItems:_0x21d74b=0x19}={}){if(!y(this[_0x2f4f('0x19')]))throw new _0x24bc6d(_0x2f4f('0x35'),this);this[_0x2f4f('0x19')][_0x2f4f('0x1')](this[_0x2f4f('0x21')][_0x2f4f('0x20')]),this[_0x2f4f('0x21')][_0x2f4f('0xb')]=_0x202d10,this[_0x2f4f('0x2b')]=_0x21d74b;}['rearrange']({removedAnnotation:_0x3baf2f,previousAnnotation:_0x5748ec,nextAnnotation:_0x194736}){const _0x4e67f3=this[_0x2f4f('0xc')](_0x3baf2f);this[_0x2f4f('0x21')][_0x2f4f('0x25')][_0x2f4f('0x22')](_0x4e67f3),this[_0x2f4f('0x37')](_0x3baf2f),_0x5748ec&&this[_0x2f4f('0x3a')](this[_0x2f4f('0xc')](_0x5748ec)),_0x194736&&this[_0x2f4f('0x3a')](this[_0x2f4f('0xc')](_0x194736)),this['_updateLastItem']();}[_0x2f4f('0x13')]({blurredAnnotation:_0x5d28ea,activatedAnnotation:_0x3e1de1,disableAnimationOnActivatedAnnotation:_0x4fb372}){if(this['_activeAnnotation']=_0x3e1de1,_0x5d28ea){_0x5d28ea['isActive']=!0x1;const _0x12f359=this[_0x2f4f('0xc')](_0x5d28ea);_0x12f359&&_0x4fb372&&(_0x12f359[_0x2f4f('0x11')]=!0x1);}if(_0x3e1de1){const _0x5dcc70=this[_0x2f4f('0xc')](_0x3e1de1);_0x5dcc70&&(_0x3e1de1['isActive']=!0x0,_0x4fb372&&(_0x5dcc70['isAnimationDisabled']=!0x0,_0x5dcc70[_0x2f4f('0x2f')]+=0x1),this['_alignToTargetRect'](_0x5dcc70));}}[_0x2f4f('0x30')](_0x487976){if(this[_0x2f4f('0x21')][_0x2f4f('0x20')][_0x2f4f('0x22')](),_0x487976)for(const _0x11bb39 of _0x487976)this['_destroySidebarItemView'](_0x11bb39);this[_0x2f4f('0x21')][_0x2f4f('0x25')][_0x2f4f('0x3b')](),this[_0x2f4f('0x21')][_0x2f4f('0xb')]='',this[_0x2f4f('0x3')]=null;}[_0x2f4f('0x15')](_0x19d215,_0x65b19c){_0x65b19c||(_0x65b19c=_0x19d215[_0x2f4f('0x21')]);const _0x193816=new _0xf1f8e3(this['context'][_0x2f4f('0x33')]);this['_sidebarItemViewToAnnotation']['set'](_0x193816,_0x19d215),this[_0x2f4f('0x5')][_0x2f4f('0x12')](_0x19d215,_0x193816),_0x193816[_0x2f4f('0xf')][_0x2f4f('0x26')](_0x65b19c),this[_0x2f4f('0x1a')](_0x19d215[_0x2f4f('0x21')],'change:targetRect',(_0x60533d,_0x11bd38,_0x502c49)=>{const _0x445aeb=this[_0x2f4f('0x17')](_0x19d215,_0x502c49);_0x193816['_targetTop']!=_0x445aeb&&(_0x193816[_0x2f4f('0x1f')]=_0x445aeb,this[_0x2f4f('0x36')](_0x193816,_0x445aeb));}),this[_0x2f4f('0x1a')](_0x193816,_0x2f4f('0x41'),()=>{this[_0x2f4f('0x1c')](_0x193816,_0x2f4f('0x2f'));}),this['listenTo'](_0x193816,'change:bottom',()=>{this['_recalculate'](_0x193816,_0x2f4f('0x9'));}),this[_0x2f4f('0x3a')](_0x193816);const _0x37bc83=this[_0x2f4f('0x48')](_0x193816);if(_0x37bc83)this[_0x2f4f('0xd')](_0x37bc83,_0x193816)||this[_0x2f4f('0x3a')](_0x193816);else this['_alignToTargetRect'](_0x193816);return this[_0x2f4f('0x39')](),this[_0x2f4f('0x21')][_0x2f4f('0x25')][_0x2f4f('0x26')](_0x193816),_0x193816;}[_0x2f4f('0x1d')](_0x785ed8){if(!_0x785ed8[_0x2f4f('0xf')][_0x2f4f('0x3e')])return;const _0x5cd91d=this[_0x2f4f('0x48')](_0x785ed8);if(!_0x5cd91d)return;const _0x3d1db6=this[_0x2f4f('0x18')]['get'](_0x5cd91d),_0x1c3dac=this[_0x2f4f('0x2a')];_0x1c3dac&&_0x1c3dac===_0x3d1db6?this['_alignAfterItem'](_0x5cd91d,_0x785ed8):this[_0x2f4f('0x31')](_0x785ed8,_0x5cd91d);}[_0x2f4f('0x14')](_0x44cae9){if(!_0x44cae9['content'][_0x2f4f('0x3e')])return;const _0x2e9c98=this[_0x2f4f('0xa')](_0x44cae9);if(!_0x2e9c98)return;const _0x1d16a2=this[_0x2f4f('0x18')][_0x2f4f('0x45')](_0x2e9c98),_0x4157ef=this[_0x2f4f('0x44')][_0x2f4f('0x24')][_0x2f4f('0x45')]('sidebar.preventScrollOutOfView'),_0x394f30=this[_0x2f4f('0x2a')];_0x394f30&&_0x394f30===_0x1d16a2&&_0x4157ef?(this[_0x2f4f('0x31')](_0x2e9c98,_0x44cae9),this[_0x2f4f('0xd')](_0x44cae9,_0x2e9c98)):_0x394f30&&_0x394f30===_0x1d16a2?this[_0x2f4f('0x31')](_0x2e9c98,_0x44cae9):this[_0x2f4f('0xd')](_0x44cae9,_0x2e9c98);}[_0x2f4f('0x1c')](_0x4a785b,_0xc78235){0x0===this[_0x2f4f('0x1e')][_0x2f4f('0x3e')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4d895c,changedProp:_0xb80da7}of this[_0x2f4f('0x1e')])_0x2f4f('0x2f')===_0xb80da7?this['_alignForTopChange'](_0x4d895c):this[_0x2f4f('0x14')](_0x4d895c);this[_0x2f4f('0x1e')]=[];},0xa),this[_0x2f4f('0x1e')][_0x2f4f('0x42')]({'sidebarItemView':_0x4a785b,'changedProp':_0xc78235});}[_0x2f4f('0xc')](_0x2567c3){return this[_0x2f4f('0x5')][_0x2f4f('0x45')](_0x2567c3);}['destroy'](){this[_0x2f4f('0x32')](),this[_0x2f4f('0x21')][_0x2f4f('0x2')]();}[_0x2f4f('0x37')](_0x31227c){const _0x2acda7=this[_0x2f4f('0xc')](_0x31227c);this[_0x2f4f('0x32')](_0x2acda7),this[_0x2f4f('0x32')](_0x31227c[_0x2f4f('0x21')]),_0x2acda7[_0x2f4f('0x2')](),this[_0x2f4f('0x5')]['delete'](_0x31227c),this[_0x2f4f('0x18')][_0x2f4f('0xe')](_0x2acda7);}[_0x2f4f('0x2c')](){const _0x521a4f=new _0x14f71(this['context'][_0x2f4f('0x33')]);return _0x521a4f[_0x2f4f('0x27')](),this['on'](_0x2f4f('0x38'),(_0xf42670,_0x20d654,_0x39eccc,_0x114eef)=>{_0x114eef&&_0x521a4f[_0x2f4f('0x3f')](_0x2f4f('0x46')),_0x39eccc?_0x521a4f['bind'](_0x2f4f('0x46'))['to'](_0x39eccc,_0x2f4f('0x9')):_0x521a4f[_0x2f4f('0x46')]=null;}),_0x521a4f;}[_0x2f4f('0x39')](){var _0x5850d8;this[_0x2f4f('0x3')]=(null===(_0x5850d8=this['_annotations'])||void 0x0===_0x5850d8?void 0x0:_0x5850d8['last'])?this[_0x2f4f('0xc')](this['_annotations'][_0x2f4f('0x7')]):null;}[_0x2f4f('0x48')](_0x47d118){var _0x5d07e4;const _0x2b064a=this[_0x2f4f('0x18')]['get'](_0x47d118),_0x5bd1d0=_0x2b064a&&(null===(_0x5d07e4=this[_0x2f4f('0x2e')])||void 0x0===_0x5d07e4?void 0x0:_0x5d07e4[_0x2f4f('0x45')](this[_0x2f4f('0x2e')][_0x2f4f('0x3c')](_0x2b064a)-0x1));return _0x5bd1d0&&this[_0x2f4f('0xc')](_0x5bd1d0)||null;}[_0x2f4f('0xa')](_0x491186){var _0x18b0dc;const _0x449427=this['_sidebarItemViewToAnnotation'][_0x2f4f('0x45')](_0x491186),_0x28f760=_0x449427&&(null===(_0x18b0dc=this['_annotations'])||void 0x0===_0x18b0dc?void 0x0:_0x18b0dc[_0x2f4f('0x45')](this['_annotations'][_0x2f4f('0x3c')](_0x449427)+0x1));return _0x28f760&&this[_0x2f4f('0xc')](_0x28f760)||null;}['_alignBeforeItem'](_0x5ab0bc,_0x4a540a){_0x5ab0bc[_0x2f4f('0x6')]();const _0x52d234=H(_0x4a540a[_0x2f4f('0x9')]+this[_0x2f4f('0x2b')],_0x5ab0bc[_0x2f4f('0x2f')]);return!!_0x52d234&&(this[_0x2f4f('0x36')](_0x4a540a,_0x4a540a['top']-_0x52d234),!0x0);}[_0x2f4f('0xd')](_0x469198,_0x13cb48){_0x469198[_0x2f4f('0x6')]();const _0x2c7e97=H(_0x469198[_0x2f4f('0x9')]+this[_0x2f4f('0x2b')],_0x13cb48[_0x2f4f('0x2f')]);return!!_0x2c7e97&&(this[_0x2f4f('0x36')](_0x13cb48,_0x13cb48[_0x2f4f('0x2f')]+_0x2c7e97,!0x1),!0x0);}[_0x2f4f('0x3a')](_0x5d0a46){const _0xd8919e=this['_sidebarItemViewToAnnotation'][_0x2f4f('0x45')](_0x5d0a46);if(!_0xd8919e||!_0xd8919e[_0x2f4f('0x16')]||!_0xd8919e[_0x2f4f('0x4')])return;const _0x79cdb9=this['_getTargetTop'](_0xd8919e,_0xd8919e['targetRect']);this[_0x2f4f('0x36')](_0x5d0a46,_0x79cdb9);}[_0x2f4f('0x17')](_0x52520a,_0x4fb27e){if(null===_0x4fb27e)return 0x0;if(_0x52520a[_0x2f4f('0x16')]instanceof _0x1ea5c1)return _0x4fb27e[_0x2f4f('0x2f')];{const _0xc71f05=new _0x1ea5c1(this[_0x2f4f('0x21')][_0x2f4f('0x20')])[_0x2f4f('0x2f')];return _0x4fb27e[_0x2f4f('0x2f')]-_0xc71f05;}}[_0x2f4f('0x36')](_0x25b0e0,_0x1cd00c,_0x17db7b=this['context'][_0x2f4f('0x24')]['get'](_0x2f4f('0x2d'))){_0x17db7b&&(_0x1cd00c=Math[_0x2f4f('0x47')](_0x1cd00c,this['_getMaxAvailableTop'](_0x25b0e0))),_0x25b0e0['top']=_0x1cd00c;}[_0x2f4f('0x0')](_0x2f4ea8){let _0x5ac425=this[_0x2f4f('0x48')](_0x2f4ea8),_0x2c29ca=0x0;for(;_0x5ac425;)_0x5ac425[_0x2f4f('0x6')](),_0x2c29ca+=this['_spaceBetweenItems']+_0x5ac425[_0x2f4f('0x23')],_0x5ac425=this[_0x2f4f('0x48')](_0x5ac425);return _0x2c29ca;}}function H(_0x471edb,_0x20d877){return Math[_0x2f4f('0x47')](_0x471edb-_0x20d877,0x0);}function y(_0x2a6bf4){return null!==_0x2a6bf4&&_0x2f4f('0x10')==typeof _0x2a6bf4&&0x1===_0x2a6bf4[_0x2f4f('0x43')];}
23
+ const _0x2792=['rearrange','_alignForBottomChange','config','view','content','add','unbind','updateHeight','_annotationToSidebarItemView','clear','target','delete','sidebar.container','_getItemBefore','top','_setItemTop','set','appendChild','length','nodeType','targetRect','isActive','_sidebarItemViewToAnnotation','_createSidebarView','_recalculateBuffer','_getTargetTop','_activeAnnotation','class','_lastItem','object','destroy','sidebar-attachtocontainer-missing-container','sidebar-setcontainer-invalid-element','_destroySidebarItemView','container','_alignBeforeItem','refresh','change:targetRect','_getItemAfter','_alignAfterItem','change:_lastItem','change:bottom','change:top','remove','bottom','_annotations','setContainer','listenTo','_spaceBetweenItems','get','_alignToTargetRect','_getMaxAvailableTop','_updateLastItem','Sidebar','context','sidebar.preventScrollOutOfView','addAnnotation','locale','isAnimationDisabled','element','getIndex','_alignForTopChange','_recalculate','stopListening','list','minHeight','_targetTop','define','last','_detachFromContainer','getSidebarItemView','height'];(function(_0x456d06,_0x279251){const _0x19cd42=function(_0x1e37eb){while(--_0x1e37eb){_0x456d06['push'](_0x456d06['shift']());}};_0x19cd42(++_0x279251);}(_0x2792,0x187));const _0x19cd=function(_0x456d06,_0x279251){_0x456d06=_0x456d06-0x0;let _0x19cd42=_0x2792[_0x456d06];return _0x19cd42;};import{ContextPlugin as _0x15b372}from'ckeditor5/src/core';import{Rect as _0x334524,CKEditorError as _0x515609}from'ckeditor5/src/utils';import _0x4c7695 from'./view/sidebarview';import _0x47aedb from'./view/sidebaritemview';export default class z extends _0x15b372{static get['pluginName'](){return _0x19cd('0x16');}constructor(_0x24848a){super(_0x24848a),this[_0x19cd('0x39')](_0x19cd('0x45'),void 0x0),this[_0x19cd('0x2c')]=this[_0x19cd('0x40')](),this[_0x19cd('0x39')]('container',null),this[_0x19cd('0x11')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x19cd('0x31')]=new Map(),this[_0x19cd('0x17')][_0x19cd('0x2b')][_0x19cd('0x24')](_0x19cd('0x18'),!0x1),this[_0x19cd('0xe')]=null,this[_0x19cd('0x43')]=null,this['_recalculateBuffer']=[];}['init'](){const _0x568c3d=this[_0x19cd('0x17')][_0x19cd('0x2b')][_0x19cd('0x12')](_0x19cd('0x35'));_0x568c3d&&this[_0x19cd('0xf')](_0x568c3d);}[_0x19cd('0xf')](_0x421eb5){if(!y(_0x421eb5))throw new _0x515609(_0x19cd('0x1'));this['container']=_0x421eb5;}['_attachToContainer']({viewClass:_0x57a05f='',spaceBetweenItems:_0x488b41=0x19}={}){if(!y(this[_0x19cd('0x3')]))throw new _0x515609(_0x19cd('0x0'),this);this[_0x19cd('0x3')][_0x19cd('0x3a')](this[_0x19cd('0x2c')][_0x19cd('0x1c')]),this[_0x19cd('0x2c')][_0x19cd('0x44')]=_0x57a05f,this['_spaceBetweenItems']=_0x488b41;}[_0x19cd('0x29')]({removedAnnotation:_0x56dab2,previousAnnotation:_0x2b6e12,nextAnnotation:_0x347ecd}){const _0x218bc2=this[_0x19cd('0x27')](_0x56dab2);this[_0x19cd('0x2c')]['list'][_0x19cd('0xc')](_0x218bc2),this['_destroySidebarItemView'](_0x56dab2),_0x2b6e12&&this['_alignToTargetRect'](this[_0x19cd('0x27')](_0x2b6e12)),_0x347ecd&&this[_0x19cd('0x13')](this[_0x19cd('0x27')](_0x347ecd)),this[_0x19cd('0x15')]();}[_0x19cd('0x5')]({blurredAnnotation:_0x47d116,activatedAnnotation:_0xdffee,disableAnimationOnActivatedAnnotation:_0x49a482}){if(this[_0x19cd('0x43')]=_0xdffee,_0x47d116){_0x47d116[_0x19cd('0x3e')]=!0x1;const _0x2082f4=this[_0x19cd('0x27')](_0x47d116);_0x2082f4&&_0x49a482&&(_0x2082f4[_0x19cd('0x1b')]=!0x1);}if(_0xdffee){const _0x539adb=this[_0x19cd('0x27')](_0xdffee);_0x539adb&&(_0xdffee[_0x19cd('0x3e')]=!0x0,_0x49a482&&(_0x539adb['isAnimationDisabled']=!0x0,_0x539adb['top']+=0x1),this[_0x19cd('0x13')](_0x539adb));}}[_0x19cd('0x26')](_0x1bbe6e){if(this[_0x19cd('0x2c')][_0x19cd('0x1c')]['remove'](),_0x1bbe6e)for(const _0x2fe1e7 of _0x1bbe6e)this[_0x19cd('0x2')](_0x2fe1e7);this[_0x19cd('0x2c')]['list'][_0x19cd('0x32')](),this[_0x19cd('0x2c')][_0x19cd('0x44')]='',this['_lastItem']=null;}[_0x19cd('0x19')](_0xb2757d,_0x386ab0){_0x386ab0||(_0x386ab0=_0xb2757d['view']);const _0x28707b=new _0x47aedb(this[_0x19cd('0x17')][_0x19cd('0x1a')]);this[_0x19cd('0x3f')][_0x19cd('0x39')](_0x28707b,_0xb2757d),this[_0x19cd('0x31')][_0x19cd('0x39')](_0xb2757d,_0x28707b),_0x28707b[_0x19cd('0x2d')]['add'](_0x386ab0),this[_0x19cd('0x10')](_0xb2757d[_0x19cd('0x2c')],_0x19cd('0x6'),(_0x475cd9,_0x16d55e,_0x27e5fd)=>{const _0x2d5196=this[_0x19cd('0x42')](_0xb2757d,_0x27e5fd);_0x28707b[_0x19cd('0x23')]!=_0x2d5196&&(_0x28707b[_0x19cd('0x23')]=_0x2d5196,this[_0x19cd('0x38')](_0x28707b,_0x2d5196));}),this['listenTo'](_0x28707b,_0x19cd('0xb'),()=>{this['_recalculate'](_0x28707b,_0x19cd('0x37'));}),this[_0x19cd('0x10')](_0x28707b,_0x19cd('0xa'),()=>{this['_recalculate'](_0x28707b,_0x19cd('0xd'));}),this['_alignToTargetRect'](_0x28707b);const _0x429862=this[_0x19cd('0x36')](_0x28707b);if(_0x429862)this[_0x19cd('0x8')](_0x429862,_0x28707b)||this[_0x19cd('0x13')](_0x28707b);else this['_alignToTargetRect'](_0x28707b);return this[_0x19cd('0x15')](),this[_0x19cd('0x2c')][_0x19cd('0x21')][_0x19cd('0x2e')](_0x28707b),_0x28707b;}[_0x19cd('0x1e')](_0x304d5a){if(!_0x304d5a[_0x19cd('0x2d')][_0x19cd('0x3b')])return;const _0x13d65f=this[_0x19cd('0x36')](_0x304d5a);if(!_0x13d65f)return;const _0x5ab51e=this[_0x19cd('0x3f')][_0x19cd('0x12')](_0x13d65f),_0x48efd8=this[_0x19cd('0x43')];_0x48efd8&&_0x48efd8===_0x5ab51e?this[_0x19cd('0x8')](_0x13d65f,_0x304d5a):this[_0x19cd('0x4')](_0x304d5a,_0x13d65f);}['_alignForBottomChange'](_0x4ec97a){if(!_0x4ec97a[_0x19cd('0x2d')][_0x19cd('0x3b')])return;const _0x251ba7=this[_0x19cd('0x7')](_0x4ec97a);if(!_0x251ba7)return;const _0x1222eb=this[_0x19cd('0x3f')][_0x19cd('0x12')](_0x251ba7),_0x170fa2=this[_0x19cd('0x17')][_0x19cd('0x2b')][_0x19cd('0x12')](_0x19cd('0x18')),_0x300b52=this[_0x19cd('0x43')];_0x300b52&&_0x300b52===_0x1222eb&&_0x170fa2?(this[_0x19cd('0x4')](_0x251ba7,_0x4ec97a),this[_0x19cd('0x8')](_0x4ec97a,_0x251ba7)):_0x300b52&&_0x300b52===_0x1222eb?this[_0x19cd('0x4')](_0x251ba7,_0x4ec97a):this['_alignAfterItem'](_0x4ec97a,_0x251ba7);}[_0x19cd('0x1f')](_0x237416,_0x1d9d20){0x0===this[_0x19cd('0x41')][_0x19cd('0x3b')]&&setTimeout(()=>{for(const {sidebarItemView:_0xa1a8ed,changedProp:_0x41508e}of this['_recalculateBuffer'])_0x19cd('0x37')===_0x41508e?this[_0x19cd('0x1e')](_0xa1a8ed):this[_0x19cd('0x2a')](_0xa1a8ed);this[_0x19cd('0x41')]=[];},0xa),this[_0x19cd('0x41')]['push']({'sidebarItemView':_0x237416,'changedProp':_0x1d9d20});}[_0x19cd('0x27')](_0x3fec07){return this[_0x19cd('0x31')][_0x19cd('0x12')](_0x3fec07);}[_0x19cd('0x47')](){this[_0x19cd('0x20')](),this[_0x19cd('0x2c')]['destroy']();}[_0x19cd('0x2')](_0x266264){const _0x4a582c=this['getSidebarItemView'](_0x266264);this[_0x19cd('0x20')](_0x4a582c),this[_0x19cd('0x20')](_0x266264[_0x19cd('0x2c')]),_0x4a582c[_0x19cd('0x47')](),this[_0x19cd('0x31')][_0x19cd('0x34')](_0x266264),this[_0x19cd('0x3f')][_0x19cd('0x34')](_0x4a582c);}['_createSidebarView'](){const _0x2e6945=new _0x4c7695(this['context'][_0x19cd('0x1a')]);return _0x2e6945['render'](),this['on'](_0x19cd('0x9'),(_0x5e6c6a,_0x3b18db,_0x21285d,_0x3ad623)=>{_0x3ad623&&_0x2e6945[_0x19cd('0x2f')](_0x19cd('0x22')),_0x21285d?_0x2e6945['bind'](_0x19cd('0x22'))['to'](_0x21285d,_0x19cd('0xd')):_0x2e6945[_0x19cd('0x22')]=null;}),_0x2e6945;}[_0x19cd('0x15')](){var _0x5407d9;this[_0x19cd('0x45')]=(null===(_0x5407d9=this[_0x19cd('0xe')])||void 0x0===_0x5407d9?void 0x0:_0x5407d9[_0x19cd('0x25')])?this[_0x19cd('0x27')](this[_0x19cd('0xe')][_0x19cd('0x25')]):null;}['_getItemBefore'](_0x594f99){var _0x411349;const _0xb290c=this[_0x19cd('0x3f')][_0x19cd('0x12')](_0x594f99),_0x2177f5=_0xb290c&&(null===(_0x411349=this[_0x19cd('0xe')])||void 0x0===_0x411349?void 0x0:_0x411349[_0x19cd('0x12')](this[_0x19cd('0xe')][_0x19cd('0x1d')](_0xb290c)-0x1));return _0x2177f5&&this['getSidebarItemView'](_0x2177f5)||null;}[_0x19cd('0x7')](_0x518fa8){var _0x3dd7c7;const _0x340167=this['_sidebarItemViewToAnnotation']['get'](_0x518fa8),_0x52b82c=_0x340167&&(null===(_0x3dd7c7=this['_annotations'])||void 0x0===_0x3dd7c7?void 0x0:_0x3dd7c7['get'](this[_0x19cd('0xe')][_0x19cd('0x1d')](_0x340167)+0x1));return _0x52b82c&&this[_0x19cd('0x27')](_0x52b82c)||null;}[_0x19cd('0x4')](_0x5de0ea,_0x22bb4c){_0x5de0ea[_0x19cd('0x30')]();const _0x6e9660=H(_0x22bb4c['bottom']+this[_0x19cd('0x11')],_0x5de0ea['top']);return!!_0x6e9660&&(this['_setItemTop'](_0x22bb4c,_0x22bb4c[_0x19cd('0x37')]-_0x6e9660),!0x0);}['_alignAfterItem'](_0x14d1a3,_0x4b1d44){_0x14d1a3['updateHeight']();const _0x17ff85=H(_0x14d1a3['bottom']+this[_0x19cd('0x11')],_0x4b1d44[_0x19cd('0x37')]);return!!_0x17ff85&&(this[_0x19cd('0x38')](_0x4b1d44,_0x4b1d44[_0x19cd('0x37')]+_0x17ff85,!0x1),!0x0);}[_0x19cd('0x13')](_0xd13c7){const _0x3f8222=this[_0x19cd('0x3f')][_0x19cd('0x12')](_0xd13c7);if(!_0x3f8222||!_0x3f8222[_0x19cd('0x33')]||!_0x3f8222[_0x19cd('0x3d')])return;const _0x34487b=this[_0x19cd('0x42')](_0x3f8222,_0x3f8222['targetRect']);this[_0x19cd('0x38')](_0xd13c7,_0x34487b);}[_0x19cd('0x42')](_0x4a2eba,_0x40f625){if(null===_0x40f625)return 0x0;if(_0x4a2eba[_0x19cd('0x33')]instanceof _0x334524)return _0x40f625[_0x19cd('0x37')];{const _0x4a4304=new _0x334524(this[_0x19cd('0x2c')]['element'])[_0x19cd('0x37')];return _0x40f625[_0x19cd('0x37')]-_0x4a4304;}}[_0x19cd('0x38')](_0x4c0f83,_0x2caaa9,_0x4260a0=this['context'][_0x19cd('0x2b')][_0x19cd('0x12')](_0x19cd('0x18'))){_0x4260a0&&(_0x2caaa9=Math['max'](_0x2caaa9,this[_0x19cd('0x14')](_0x4c0f83))),_0x4c0f83[_0x19cd('0x37')]=_0x2caaa9;}[_0x19cd('0x14')](_0x1ffecc){let _0x177038=this[_0x19cd('0x36')](_0x1ffecc),_0xb7873f=0x0;for(;_0x177038;)_0x177038[_0x19cd('0x30')](),_0xb7873f+=this[_0x19cd('0x11')]+_0x177038[_0x19cd('0x28')],_0x177038=this[_0x19cd('0x36')](_0x177038);return _0xb7873f;}}function H(_0x4e9f57,_0x328e65){return Math['max'](_0x4e9f57-_0x328e65,0x0);}function y(_0x4cf1d0){return null!==_0x4cf1d0&&_0x19cd('0x46')==typeof _0x4cf1d0&&0x1===_0x4cf1d0[_0x19cd('0x3c')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x513d=['_badge','bindTemplate','bind','toString','isDirty','ck-annotation-counter__badge--edit-mode','counterView','span','number','icon','ck-annotation-counter__badge','set','extendTemplate','ck-annotation-counter__badge--','...','annotationType'];(function(_0x1915ae,_0x513d5b){const _0x16bcd2=function(_0x33e515){while(--_0x33e515){_0x1915ae['push'](_0x1915ae['shift']());}};_0x16bcd2(++_0x513d5b);}(_0x513d,0xcd));const _0x16bc=function(_0x1915ae,_0x513d5b){_0x1915ae=_0x1915ae-0x0;let _0x16bcd2=_0x513d[_0x1915ae];return _0x16bcd2;};import{ButtonView as _0x1c9bd9,View as _0x583c6c}from'ckeditor5/src/ui';import _0x586ec2 from'../../../theme/icons/add-comment.svg';export default class D extends _0x1c9bd9{constructor(_0x1e2f31){super(_0x1e2f31);const _0x44d7da=this[_0x16bc('0x4')];this[_0x16bc('0xe')](_0x16bc('0x7'),!0x1),this[_0x16bc('0xe')](_0x16bc('0xb'),0x0),this[_0x16bc('0x5')]('_badge')['to'](this,_0x16bc('0x7'),this,_0x16bc('0xb'),(_0x180a5e,_0x5d7669)=>_0x180a5e?_0x16bc('0x1'):_0x5d7669[_0x16bc('0x6')]()),this[_0x16bc('0xe')](_0x16bc('0x2'),''),this[_0x16bc('0xc')]=_0x586ec2,this[_0x16bc('0xf')]({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x583c6c(),this[_0x16bc('0x9')]['setTemplate']({'tag':_0x16bc('0xa'),'attributes':{'class':[_0x16bc('0xd'),_0x44d7da['to'](_0x16bc('0x2'),_0x27750a=>_0x16bc('0x0')+_0x27750a),_0x44d7da['if'](_0x16bc('0x7'),_0x16bc('0x8'))]},'children':[{'text':_0x44d7da['to'](_0x16bc('0x3'))}]}),this['children']['add'](this['counterView']);}}
23
+ const _0x584e=['ck-annotation-counter__badge','icon','...','add','counterView','setTemplate','extendTemplate','number','ck-annotation-counter','ck-annotation-counter__badge--edit-mode','annotationType','set','isDirty','_badge'];(function(_0x4e4642,_0x584e31){const _0x2d09bf=function(_0x544f03){while(--_0x544f03){_0x4e4642['push'](_0x4e4642['shift']());}};_0x2d09bf(++_0x584e31);}(_0x584e,0x1ad));const _0x2d09=function(_0x4e4642,_0x584e31){_0x4e4642=_0x4e4642-0x0;let _0x2d09bf=_0x584e[_0x4e4642];return _0x2d09bf;};import{ButtonView as _0x1f9b1f,View as _0x4c9e23}from'ckeditor5/src/ui';import _0x16c89e from'../../../theme/icons/add-comment.svg';export default class D extends _0x1f9b1f{constructor(_0x41a318){super(_0x41a318);const _0x5bd07d=this['bindTemplate'];this['set'](_0x2d09('0x3'),!0x1),this[_0x2d09('0x2')](_0x2d09('0xc'),0x0),this['bind'](_0x2d09('0x4'))['to'](this,_0x2d09('0x3'),this,_0x2d09('0xc'),(_0x109ec0,_0x2c2db9)=>_0x109ec0?_0x2d09('0x7'):_0x2c2db9['toString']()),this['set'](_0x2d09('0x1'),''),this[_0x2d09('0x6')]=_0x16c89e,this[_0x2d09('0xb')]({'attributes':{'class':[_0x2d09('0xd')]}}),this[_0x2d09('0x9')]=new _0x4c9e23(),this['counterView'][_0x2d09('0xa')]({'tag':'span','attributes':{'class':[_0x2d09('0x5'),_0x5bd07d['to']('annotationType',_0x596850=>'ck-annotation-counter__badge--'+_0x596850),_0x5bd07d['if'](_0x2d09('0x3'),_0x2d09('0x0'))]},'children':[{'text':_0x5bd07d['to'](_0x2d09('0x4'))}]}),this['children'][_0x2d09('0x8')](this[_0x2d09('0x9')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ef4=['attach','focusTracker','add','mainView','ck-annotation-wrapper--active','targetRect','type','destroy','isActive','setTemplate','content','isDirty','Esc','bindTemplate','clear','ck-annotation-wrapper','element','createCollection','set','_updateHeight','ck-rounded-corners','clientHeight','div','listenTo','fire','height','_mutationObserver','keystrokes','length','render'];(function(_0x5a7216,_0x1ef469){const _0x19085f=function(_0x30aa24){while(--_0x30aa24){_0x5a7216['push'](_0x5a7216['shift']());}};_0x19085f(++_0x1ef469);}(_0x1ef4,0x1e0));const _0x1908=function(_0x5a7216,_0x1ef469){_0x5a7216=_0x5a7216-0x0;let _0x19085f=_0x1ef4[_0x5a7216];return _0x19085f;};import{View as _0x131e2c}from'ckeditor5/src/ui';import{FocusTracker as _0x476734,KeystrokeHandler as _0x4f90aa,uid as _0x28a9f}from'ckeditor5/src/utils';import _0x348e6a from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x131e2c{constructor(_0x4098ce,_0x19fc59){super(_0x4098ce),this['id']=_0x28a9f(),this[_0x1908('0x1')]=new _0x476734(),this[_0x1908('0x1b')]=new _0x4f90aa(),this[_0x1908('0x1b')]['set'](_0x1908('0xc'),(_0x27c3b6,_0x3a6742)=>this[_0x1908('0x18')](_0x1908('0xc'),_0x3a6742)),this[_0x1908('0x12')](_0x1908('0x5'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1908('0x12')](_0x1908('0x19'),0x0),this[_0x1908('0x12')]('isActive',!0x1),this[_0x1908('0x12')](_0x1908('0xb'),!0x1),this['set'](_0x1908('0x1c'),0x0),this[_0x1908('0x12')](_0x1908('0x6'),''),this[_0x1908('0x1a')]=_0x348e6a(()=>this[_0x1908('0x13')]()),this[_0x1908('0xa')]=this[_0x1908('0x11')](),this['content'][_0x1908('0x2')](_0x19fc59),this[_0x1908('0x3')]=_0x19fc59;const _0x217acc=this[_0x1908('0xd')];this[_0x1908('0x9')]({'tag':_0x1908('0x16'),'attributes':{'class':['ck',_0x1908('0xf'),_0x1908('0x14'),_0x217acc['if'](_0x1908('0x8'),_0x1908('0x4'))],'tabindex':-0x1},'children':this[_0x1908('0xa')]});}[_0x1908('0x1d')](){super['render'](),this[_0x1908('0x1')]['add'](this[_0x1908('0x10')]),this[_0x1908('0x1b')][_0x1908('0x17')](this['element']),this['_mutationObserver'][_0x1908('0x0')](this[_0x1908('0x10')]);}['destroy'](){this[_0x1908('0xa')][_0x1908('0xe')](),this[_0x1908('0x1b')][_0x1908('0x7')](),this[_0x1908('0x1')][_0x1908('0x7')](),this[_0x1908('0x1a')]['detach'](),super[_0x1908('0x7')]();}['focus'](){this[_0x1908('0x10')]['focus']();}['_updateHeight'](){const _0xbe28ca=this[_0x1908('0x10')][_0x1908('0x15')];_0xbe28ca&&(this[_0x1908('0x19')]=_0xbe28ca);}}
23
+ const _0x388b=['keystrokes','Esc','_mutationObserver','length','fire','render','content','focus','div','mainView','isDirty','_updateHeight','ck-annotation-wrapper','set','listenTo','detach','height','isActive','destroy','element','ck-rounded-corners','bindTemplate','createCollection','type','focusTracker','clear','setTemplate','attach','add'];(function(_0x526aba,_0x388b10){const _0x2cf3c1=function(_0x33f8c7){while(--_0x33f8c7){_0x526aba['push'](_0x526aba['shift']());}};_0x2cf3c1(++_0x388b10);}(_0x388b,0x1be));const _0x2cf3=function(_0x526aba,_0x388b10){_0x526aba=_0x526aba-0x0;let _0x2cf3c1=_0x388b[_0x526aba];return _0x2cf3c1;};import{View as _0x4f900c}from'ckeditor5/src/ui';import{FocusTracker as _0x53ad62,KeystrokeHandler as _0x585e13,uid as _0x2e121a}from'ckeditor5/src/utils';import _0x1d10a1 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x4f900c{constructor(_0x551b70,_0x534d70){super(_0x551b70),this['id']=_0x2e121a(),this[_0x2cf3('0xd')]=new _0x53ad62(),this[_0x2cf3('0x12')]=new _0x585e13(),this['keystrokes'][_0x2cf3('0x2')](_0x2cf3('0x13'),(_0x4defc4,_0x35e5e0)=>this[_0x2cf3('0x16')](_0x2cf3('0x13'),_0x35e5e0)),this[_0x2cf3('0x2')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x2cf3('0x2')](_0x2cf3('0x5'),0x0),this[_0x2cf3('0x2')](_0x2cf3('0x6'),!0x1),this[_0x2cf3('0x2')](_0x2cf3('0x1c'),!0x1),this[_0x2cf3('0x2')](_0x2cf3('0x15'),0x0),this['set'](_0x2cf3('0xc'),''),this['_mutationObserver']=_0x1d10a1(()=>this['_updateHeight']()),this[_0x2cf3('0x18')]=this[_0x2cf3('0xb')](),this['content'][_0x2cf3('0x11')](_0x534d70),this[_0x2cf3('0x1b')]=_0x534d70;const _0x390f33=this[_0x2cf3('0xa')];this[_0x2cf3('0xf')]({'tag':_0x2cf3('0x1a'),'attributes':{'class':['ck',_0x2cf3('0x1'),_0x2cf3('0x9'),_0x390f33['if'](_0x2cf3('0x6'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}[_0x2cf3('0x17')](){super[_0x2cf3('0x17')](),this[_0x2cf3('0xd')][_0x2cf3('0x11')](this[_0x2cf3('0x8')]),this['keystrokes'][_0x2cf3('0x3')](this['element']),this[_0x2cf3('0x14')][_0x2cf3('0x10')](this[_0x2cf3('0x8')]);}[_0x2cf3('0x7')](){this['content'][_0x2cf3('0xe')](),this[_0x2cf3('0x12')][_0x2cf3('0x7')](),this[_0x2cf3('0xd')]['destroy'](),this[_0x2cf3('0x14')][_0x2cf3('0x4')](),super[_0x2cf3('0x7')]();}[_0x2cf3('0x19')](){this[_0x2cf3('0x8')][_0x2cf3('0x19')]();}[_0x2cf3('0x0')](){const _0x5b044f=this['element']['clientHeight'];_0x5b044f&&(this[_0x2cf3('0x5')]=_0x5b044f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4207=['render','ck-sidebar-item','createCollection','attach','bindTemplate','clear','ck-sidebar-item--no-animation','content','detach','set','height','isAnimationDisabled','top','clientHeight','div','updateHeight','_targetTop','_mutationObserver','destroy'];(function(_0x39065d,_0x42078c){const _0x51b8a8=function(_0x4b1d42){while(--_0x4b1d42){_0x39065d['push'](_0x39065d['shift']());}};_0x51b8a8(++_0x42078c);}(_0x4207,0x153));const _0x51b8=function(_0x39065d,_0x42078c){_0x39065d=_0x39065d-0x0;let _0x51b8a8=_0x4207[_0x39065d];return _0x51b8a8;};import{View as _0x2bd229}from'ckeditor5/src/ui';import{toUnit as _0x53dad8}from'ckeditor5/src/utils';import _0x37e4a1 from'../../utils/createmutationobserver';const jt=_0x53dad8('px');export default class C extends _0x2bd229{constructor(_0x4b3534){super(_0x4b3534),this[_0x51b8('0xc')]('top',0x0),this[_0x51b8('0xc')]('height',0x0),this['bind']('bottom')['to'](this,_0x51b8('0xf'),this,_0x51b8('0xd'),(_0x39f32d,_0x958224)=>_0x39f32d+_0x958224),this['set'](_0x51b8('0xe'),!0x1),this[_0x51b8('0x1')]=_0x37e4a1(()=>this[_0x51b8('0x12')]()),this[_0x51b8('0x0')]=null,this[_0x51b8('0xa')]=this[_0x51b8('0x5')]();const _0x5341a4=this[_0x51b8('0x7')];this['setTemplate']({'tag':_0x51b8('0x11'),'attributes':{'class':[_0x51b8('0x4'),_0x5341a4['to'](_0x51b8('0xe'),_0x2e7ad5=>_0x2e7ad5?_0x51b8('0x9'):'')],'style':{'top':_0x5341a4['to'](_0x51b8('0xf'),_0x1b4995=>jt(_0x1b4995))}},'children':this[_0x51b8('0xa')]});}[_0x51b8('0x3')](){super[_0x51b8('0x3')](),this[_0x51b8('0x1')][_0x51b8('0x6')](this['element']);}[_0x51b8('0x12')](){const _0x2ae946=this['element'][_0x51b8('0x10')];_0x2ae946&&(this[_0x51b8('0xd')]=_0x2ae946);}[_0x51b8('0x2')](){this[_0x51b8('0xa')][_0x51b8('0x8')](),this['_mutationObserver'][_0x51b8('0xb')](),super[_0x51b8('0x2')]();}}
23
+ const _0xb68b=['bind','clear','attach','setTemplate','bottom','bindTemplate','set','isAnimationDisabled','destroy','_targetTop','height','updateHeight','createCollection','element','detach','ck-sidebar-item--no-animation','render','clientHeight','top','content','_mutationObserver','div'];(function(_0x1dcbc9,_0xb68b4d){const _0x386947=function(_0x3146cb){while(--_0x3146cb){_0x1dcbc9['push'](_0x1dcbc9['shift']());}};_0x386947(++_0xb68b4d);}(_0xb68b,0xe1));const _0x3869=function(_0x1dcbc9,_0xb68b4d){_0x1dcbc9=_0x1dcbc9-0x0;let _0x386947=_0xb68b[_0x1dcbc9];return _0x386947;};import{View as _0x3da24c}from'ckeditor5/src/ui';import{toUnit as _0x3ce75c}from'ckeditor5/src/utils';import _0x29750b from'../../utils/createmutationobserver';const jt=_0x3ce75c('px');export default class C extends _0x3da24c{constructor(_0x5407fc){super(_0x5407fc),this['set'](_0x3869('0xd'),0x0),this[_0x3869('0x1')](_0x3869('0x5'),0x0),this[_0x3869('0x11')](_0x3869('0x15'))['to'](this,_0x3869('0xd'),this,'height',(_0x550025,_0x521353)=>_0x550025+_0x521353),this['set'](_0x3869('0x2'),!0x1),this[_0x3869('0xf')]=_0x29750b(()=>this[_0x3869('0x6')]()),this[_0x3869('0x4')]=null,this[_0x3869('0xe')]=this[_0x3869('0x7')]();const _0x59ba4a=this[_0x3869('0x0')];this[_0x3869('0x14')]({'tag':_0x3869('0x10'),'attributes':{'class':['ck-sidebar-item',_0x59ba4a['to'](_0x3869('0x2'),_0x249e6d=>_0x249e6d?_0x3869('0xa'):'')],'style':{'top':_0x59ba4a['to'](_0x3869('0xd'),_0x111cde=>jt(_0x111cde))}},'children':this['content']});}[_0x3869('0xb')](){super[_0x3869('0xb')](),this['_mutationObserver'][_0x3869('0x13')](this[_0x3869('0x8')]);}[_0x3869('0x6')](){const _0x370408=this[_0x3869('0x8')][_0x3869('0xc')];_0x370408&&(this[_0x3869('0x5')]=_0x370408);}[_0x3869('0x3')](){this[_0x3869('0xe')][_0x3869('0x12')](),this['_mutationObserver'][_0x3869('0x9')](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ddc=['ck-reset','class','div','ck-sidebar','minHeight','set','list','createCollection','bindTemplate'];(function(_0x1358d3,_0x1ddcb1){const _0x24b0bd=function(_0x2c3aec){while(--_0x2c3aec){_0x1358d3['push'](_0x1358d3['shift']());}};_0x24b0bd(++_0x1ddcb1);}(_0x1ddc,0xb5));const _0x24b0=function(_0x1358d3,_0x1ddcb1){_0x1358d3=_0x1358d3-0x0;let _0x24b0bd=_0x1ddc[_0x1358d3];return _0x24b0bd;};import{View as _0x1e6c09}from'ckeditor5/src/ui';import{toUnit as _0x20e272}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x20e272('px');export default class T extends _0x1e6c09{constructor(_0x4efcb0){super(_0x4efcb0);const _0x2a3a98=this[_0x24b0('0x7')];this[_0x24b0('0x4')](_0x24b0('0x3'),0x0),this[_0x24b0('0x4')]('class',''),this[_0x24b0('0x5')]=this[_0x24b0('0x6')](),this['setTemplate']({'tag':_0x24b0('0x1'),'attributes':{'class':['ck',_0x24b0('0x2'),_0x24b0('0x8'),_0x2a3a98['to'](_0x24b0('0x0'))],'style':{'minHeight':_0x2a3a98['to']('minHeight',_0x137e64=>'number'==typeof _0x137e64?jt(_0x137e64+0xa):null)}},'children':this['list']});}}
23
+ const _0x593b=['div','createCollection','minHeight','list','bindTemplate','class','set','number','ck-reset'];(function(_0x3a79bd,_0x593b5c){const _0x3fbe67=function(_0xead435){while(--_0xead435){_0x3a79bd['push'](_0x3a79bd['shift']());}};_0x3fbe67(++_0x593b5c);}(_0x593b,0x159));const _0x3fbe=function(_0x3a79bd,_0x593b5c){_0x3a79bd=_0x3a79bd-0x0;let _0x3fbe67=_0x593b[_0x3a79bd];return _0x3fbe67;};import{View as _0x118762}from'ckeditor5/src/ui';import{toUnit as _0x4cf634}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x4cf634('px');export default class T extends _0x118762{constructor(_0x370332){super(_0x370332);const _0x2a0f1c=this[_0x3fbe('0x1')];this[_0x3fbe('0x3')](_0x3fbe('0x8'),0x0),this[_0x3fbe('0x3')](_0x3fbe('0x2'),''),this['list']=this[_0x3fbe('0x7')](),this['setTemplate']({'tag':_0x3fbe('0x6'),'attributes':{'class':['ck','ck-sidebar',_0x3fbe('0x5'),_0x2a0f1c['to']('class')],'style':{'minHeight':_0x2a0f1c['to']('minHeight',_0x2c5396=>_0x3fbe('0x4')==typeof _0x2c5396?jt(_0x2c5396+0xa):null)}},'children':this[_0x3fbe('0x0')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3966=['has','from','WideSidebar','isAttached','set:container','_annotations','setActiveAnnotation','init','set','_activeAnnotation','annotations','editors','activeAnnotation','rearrange','wideSidebar','addEventListener','_integrateWithEditorAnnotations','uiUpdate','switchTo','ready','register','refreshPositioning','plugins','widesidebar-detach-not-attached','requires','attach','_refreshPositioningDebounced','hasDomSelection','resize','_destroyEditorAnnotationsIntegration','remove','pluginName','blur','container','stop','removeEventListener','detach','off','context','refresh','high','updateTargetRect','get','listenTo','_attachToContainer','stopListening','change:container','EditorAnnotations','add','_editorAnnotations'];(function(_0x12310f,_0x3966e4){const _0x9d6534=function(_0x1bc918){while(--_0x1bc918){_0x12310f['push'](_0x12310f['shift']());}};_0x9d6534(++_0x3966e4);}(_0x3966,0xb0));const _0x9d65=function(_0x12310f,_0x3966e4){_0x12310f=_0x12310f-0x0;let _0x9d6534=_0x3966[_0x12310f];return _0x9d6534;};import{ContextPlugin as _0x4c0ab8,Context as _0x212b0b}from'ckeditor5/src/core';import _0x45e6c2 from'./annotationsuis';import _0x5af65a from'./sidebar';import{CKEditorError as _0x37b147,Collection as _0x27c137}from'ckeditor5/src/utils';import{debounce as _0x558e03}from'lodash-es';import _0xcacbe from'./editorannotations';export default class i extends _0x4c0ab8{static get[_0x9d65('0x30')](){return[_0x5af65a,_0x45e6c2];}static get[_0x9d65('0x5')](){return _0x9d65('0x1a');}constructor(_0x3d07e5){super(_0x3d07e5),this[_0x9d65('0x1b')]=!0x1,this[_0x9d65('0x20')](_0x9d65('0x24'),null),this[_0x9d65('0x22')]=null,this[_0x9d65('0x17')]=new _0x27c137(),this[_0x9d65('0x0')]=_0x558e03(()=>{this[_0x9d65('0x22')][_0x9d65('0x2d')]();},0xfa,{'leading':!0x1});}[_0x9d65('0x1f')](){const _0x595f47=this[_0x9d65('0xc')][_0x9d65('0x2e')][_0x9d65('0x10')](_0x45e6c2),_0x6c249c=this[_0x9d65('0xc')][_0x9d65('0x2e')][_0x9d65('0x10')](_0x5af65a);_0x595f47[_0x9d65('0x2c')](_0x9d65('0x26'),this),_0x6c249c[_0x9d65('0x7')]&&_0x595f47[_0x9d65('0x2a')](_0x9d65('0x26'));}[_0x9d65('0x1e')](_0x1335a5){if(_0x1335a5===this['activeAnnotation'])return;const _0x3aa24d=this['context']['plugins'][_0x9d65('0x10')](_0x5af65a);_0x3aa24d[_0x9d65('0x21')]=_0x1335a5;const _0x2ec50a=this[_0x9d65('0x24')];this[_0x9d65('0x24')]=_0x1335a5,_0x3aa24d[_0x9d65('0xd')]({'blurredAnnotation':_0x2ec50a,'activatedAnnotation':this[_0x9d65('0x24')]});}[_0x9d65('0x31')](_0x432236){this[_0x9d65('0x22')]=_0x432236;const _0x5d5fc4=this[_0x9d65('0xc')][_0x9d65('0x2e')]['get'](_0x5af65a);if(_0x5d5fc4[_0x9d65('0x1d')]=_0x432236,this[_0x9d65('0x1b')])throw new _0x37b147('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5d5fc4,_0x9d65('0x1c'),()=>{this[_0x9d65('0xa')](),this[_0x9d65('0x11')](_0x5d5fc4,_0x9d65('0x14'),_0x4b18d9=>{_0x4b18d9[_0x9d65('0xb')](),this[_0x9d65('0x31')](_0x432236);});}),_0x5d5fc4[_0x9d65('0x12')]({'viewClass':'ck-sidebar--wide'});const _0x3e0184=_0x42b35b=>{_0x42b35b[_0x9d65('0xf')](),_0x5d5fc4['addAnnotation'](_0x42b35b);};for(const _0x154aa9 of _0x432236)_0x3e0184(_0x154aa9);this[_0x9d65('0x11')](_0x432236,_0x9d65('0x16'),(_0x52bf95,_0x23f961)=>{_0x3e0184(_0x23f961);}),this[_0x9d65('0x11')](_0x432236,_0x9d65('0x4'),(_0xb2c3e6,_0x3e578c,_0x1120c5)=>{_0x5d5fc4[_0x9d65('0x25')]({'removedAnnotation':_0x3e578c,'previousAnnotation':_0x432236[_0x9d65('0x10')](_0x1120c5-0x1),'nextAnnotation':_0x432236[_0x9d65('0x10')](_0x1120c5+0x1)}),_0x3e578c===this[_0x9d65('0x24')]&&this[_0x9d65('0x1e')](null);},{'priority':_0x9d65('0xe')}),this[_0x9d65('0x11')](_0x432236,'focus',(_0x1ef13d,_0x43c258)=>{this[_0x9d65('0x1e')](_0x43c258);}),this[_0x9d65('0x11')](_0x432236,_0x9d65('0x6'),()=>{this[_0x9d65('0x1e')](null);});const _0x549b87=this['context']instanceof _0x212b0b?this['context']['editors']:new _0x27c137([this['context']]);for(const _0x1dce63 of _0x549b87)this[_0x9d65('0x28')](_0x1dce63);this['listenTo'](_0x549b87,_0x9d65('0x16'),(_0x3a1868,_0x508a3c)=>{this[_0x9d65('0x11')](_0x508a3c,_0x9d65('0x2b'),()=>{this[_0x9d65('0x28')](_0x508a3c);});}),this[_0x9d65('0x11')](_0x549b87,_0x9d65('0x4'),(_0xe86125,_0xb060dd)=>{_0xb060dd['plugins'][_0x9d65('0x18')](_0x9d65('0x15'))&&this[_0x9d65('0x3')](_0xb060dd['plugins'][_0x9d65('0x10')](_0x9d65('0x15')));}),window[_0x9d65('0x27')](_0x9d65('0x2'),this['_refreshPositioningDebounced']),this[_0x9d65('0x22')]['refreshPositioning']();}[_0x9d65('0xa')](){if(!this['isAttached'])throw new _0x37b147(_0x9d65('0x2f'),this);this[_0x9d65('0x1e')](null);const _0x4a758d=this['context'][_0x9d65('0x2e')][_0x9d65('0x10')](_0x5af65a);_0x4a758d['_detachFromContainer'](this['annotations']),this[_0x9d65('0x13')](_0x4a758d),this[_0x9d65('0x13')](this[_0x9d65('0x22')]),this[_0x9d65('0xc')]instanceof _0x212b0b&&this[_0x9d65('0x13')](this[_0x9d65('0xc')][_0x9d65('0x23')]);for(const _0x35395d of Array[_0x9d65('0x19')](this[_0x9d65('0x17')]))this[_0x9d65('0x3')](_0x35395d);window[_0x9d65('0x9')](_0x9d65('0x2'),this[_0x9d65('0x0')]),this[_0x9d65('0x0')]['cancel'](),this[_0x9d65('0x24')]=null,this[_0x9d65('0x1b')]=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this[_0x9d65('0xa')]();}[_0x9d65('0x28')](_0x5721ec){const _0x16dd38=_0x5721ec['plugins']['get'](_0xcacbe);if(!_0x16dd38)return;const _0x489f2f=()=>{const _0x39da73=_0x16dd38['getOrderedSelectedAnnotations']({'annotations':this[_0x9d65('0x22')],'activeAnnotation':this[_0x9d65('0x24')]});this[_0x9d65('0x1e')](_0x39da73[0x0]||null);};this[_0x9d65('0x11')](_0x16dd38,_0x9d65('0xd'),_0x489f2f),this['listenTo'](_0x16dd38,_0x9d65('0x6'),(_0x443cb8,{isAnnotationTracked:_0x28061c})=>{this['activeAnnotation']&&_0x28061c(this[_0x9d65('0x24')])&&this['setActiveAnnotation'](null);}),this[_0x9d65('0x11')](_0x16dd38,_0x9d65('0x29'),()=>{this[_0x9d65('0x0')]();}),this['listenTo'](this[_0x9d65('0x22')],_0x9d65('0x6'),_0x53462a=>{_0x16dd38[_0x9d65('0x1')]()&&(_0x489f2f(),_0x53462a[_0x9d65('0x8')]());},{'priority':'high'}),this[_0x9d65('0x17')][_0x9d65('0x16')](_0x16dd38);}[_0x9d65('0x3')](_0x564995){this[_0x9d65('0x13')](_0x564995),this[_0x9d65('0x17')][_0x9d65('0x4')](_0x564995);}}
23
+ const _0x5816=['_annotations','focus','_editorAnnotations','ck-sidebar--wide','attach','rearrange','wideSidebar','uiUpdate','switchTo','requires','_activeAnnotation','setActiveAnnotation','stopListening','change:container','context','_detachFromContainer','updateTargetRect','EditorAnnotations','has','activeAnnotation','annotations','remove','get','refresh','isAttached','WideSidebar','_integrateWithEditorAnnotations','getOrderedSelectedAnnotations','_attachToContainer','widesidebar-detach-not-attached','_refreshPositioningDebounced','detach','plugins','add','_destroyEditorAnnotationsIntegration','addEventListener','listenTo','refreshPositioning','high','ready','editors'];(function(_0x1711a9,_0x581679){const _0x47aea5=function(_0x2c8dd5){while(--_0x2c8dd5){_0x1711a9['push'](_0x1711a9['shift']());}};_0x47aea5(++_0x581679);}(_0x5816,0xc4));const _0x47ae=function(_0x1711a9,_0x581679){_0x1711a9=_0x1711a9-0x0;let _0x47aea5=_0x5816[_0x1711a9];return _0x47aea5;};import{ContextPlugin as _0x438ed9,Context as _0x140fc8}from'ckeditor5/src/core';import _0x40d64f from'./annotationsuis';import _0x4d2abf from'./sidebar';import{CKEditorError as _0x6b8c6c,Collection as _0x230029}from'ckeditor5/src/utils';import{debounce as _0x34ccfc}from'lodash-es';import _0x59c2d3 from'./editorannotations';export default class i extends _0x438ed9{static get[_0x47ae('0x12')](){return[_0x4d2abf,_0x40d64f];}static get['pluginName'](){return _0x47ae('0x22');}constructor(_0xe0e1c0){super(_0xe0e1c0),this[_0x47ae('0x21')]=!0x1,this['set'](_0x47ae('0x1c'),null),this[_0x47ae('0x1d')]=null,this[_0x47ae('0xb')]=new _0x230029(),this[_0x47ae('0x27')]=_0x34ccfc(()=>{this[_0x47ae('0x1d')][_0x47ae('0x5')]();},0xfa,{'leading':!0x1});}['init'](){const _0x3a0daf=this['context'][_0x47ae('0x0')]['get'](_0x40d64f),_0x42a4be=this[_0x47ae('0x17')][_0x47ae('0x0')][_0x47ae('0x1f')](_0x4d2abf);_0x3a0daf['register'](_0x47ae('0xf'),this),_0x42a4be['container']&&_0x3a0daf[_0x47ae('0x11')](_0x47ae('0xf'));}[_0x47ae('0x14')](_0x2be3ee){if(_0x2be3ee===this['activeAnnotation'])return;const _0x2a960f=this[_0x47ae('0x17')][_0x47ae('0x0')][_0x47ae('0x1f')](_0x4d2abf);_0x2a960f[_0x47ae('0x13')]=_0x2be3ee;const _0x1ac7cf=this[_0x47ae('0x1c')];this['activeAnnotation']=_0x2be3ee,_0x2a960f[_0x47ae('0x20')]({'blurredAnnotation':_0x1ac7cf,'activatedAnnotation':this[_0x47ae('0x1c')]});}['attach'](_0x58055a){this[_0x47ae('0x1d')]=_0x58055a;const _0x2af4b7=this[_0x47ae('0x17')][_0x47ae('0x0')][_0x47ae('0x1f')](_0x4d2abf);if(_0x2af4b7[_0x47ae('0x9')]=_0x58055a,this[_0x47ae('0x21')])throw new _0x6b8c6c('widesidebar-attach-already-attached',this);this[_0x47ae('0x21')]=!0x0,this[_0x47ae('0x4')](_0x2af4b7,'set:container',()=>{this['detach'](),this[_0x47ae('0x4')](_0x2af4b7,_0x47ae('0x16'),_0x54bc8b=>{_0x54bc8b['off'](),this[_0x47ae('0xd')](_0x58055a);});}),_0x2af4b7[_0x47ae('0x25')]({'viewClass':_0x47ae('0xc')});const _0x4b0146=_0x5cf182=>{_0x5cf182[_0x47ae('0x19')](),_0x2af4b7['addAnnotation'](_0x5cf182);};for(const _0x460931 of _0x58055a)_0x4b0146(_0x460931);this[_0x47ae('0x4')](_0x58055a,'add',(_0x2898c7,_0x2e1839)=>{_0x4b0146(_0x2e1839);}),this[_0x47ae('0x4')](_0x58055a,_0x47ae('0x1e'),(_0x567e61,_0x406081,_0xb4cb99)=>{_0x2af4b7[_0x47ae('0xe')]({'removedAnnotation':_0x406081,'previousAnnotation':_0x58055a['get'](_0xb4cb99-0x1),'nextAnnotation':_0x58055a[_0x47ae('0x1f')](_0xb4cb99+0x1)}),_0x406081===this[_0x47ae('0x1c')]&&this[_0x47ae('0x14')](null);},{'priority':_0x47ae('0x6')}),this[_0x47ae('0x4')](_0x58055a,_0x47ae('0xa'),(_0x39f585,_0x37123b)=>{this[_0x47ae('0x14')](_0x37123b);}),this['listenTo'](_0x58055a,'blur',()=>{this[_0x47ae('0x14')](null);});const _0x41332e=this['context']instanceof _0x140fc8?this[_0x47ae('0x17')]['editors']:new _0x230029([this[_0x47ae('0x17')]]);for(const _0x53c8f6 of _0x41332e)this['_integrateWithEditorAnnotations'](_0x53c8f6);this[_0x47ae('0x4')](_0x41332e,_0x47ae('0x1'),(_0x1cd9f4,_0x42ef8c)=>{this[_0x47ae('0x4')](_0x42ef8c,_0x47ae('0x7'),()=>{this[_0x47ae('0x23')](_0x42ef8c);});}),this['listenTo'](_0x41332e,_0x47ae('0x1e'),(_0x350ce1,_0x52df8c)=>{_0x52df8c[_0x47ae('0x0')][_0x47ae('0x1b')](_0x47ae('0x1a'))&&this[_0x47ae('0x2')](_0x52df8c[_0x47ae('0x0')][_0x47ae('0x1f')](_0x47ae('0x1a')));}),window[_0x47ae('0x3')]('resize',this[_0x47ae('0x27')]),this[_0x47ae('0x1d')][_0x47ae('0x5')]();}[_0x47ae('0x28')](){if(!this[_0x47ae('0x21')])throw new _0x6b8c6c(_0x47ae('0x26'),this);this[_0x47ae('0x14')](null);const _0xc19681=this[_0x47ae('0x17')][_0x47ae('0x0')]['get'](_0x4d2abf);_0xc19681[_0x47ae('0x18')](this[_0x47ae('0x1d')]),this['stopListening'](_0xc19681),this[_0x47ae('0x15')](this[_0x47ae('0x1d')]),this[_0x47ae('0x17')]instanceof _0x140fc8&&this['stopListening'](this[_0x47ae('0x17')][_0x47ae('0x8')]);for(const _0x16e2e1 of Array['from'](this['_editorAnnotations']))this[_0x47ae('0x2')](_0x16e2e1);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this[_0x47ae('0x27')]['cancel'](),this[_0x47ae('0x1c')]=null,this[_0x47ae('0x21')]=!0x1,this[_0x47ae('0x1d')]=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x19f180){const _0x49c888=_0x19f180[_0x47ae('0x0')][_0x47ae('0x1f')](_0x59c2d3);if(!_0x49c888)return;const _0xc9ac83=()=>{const _0x4c7da9=_0x49c888[_0x47ae('0x24')]({'annotations':this[_0x47ae('0x1d')],'activeAnnotation':this[_0x47ae('0x1c')]});this[_0x47ae('0x14')](_0x4c7da9[0x0]||null);};this[_0x47ae('0x4')](_0x49c888,'refresh',_0xc9ac83),this['listenTo'](_0x49c888,'blur',(_0x402e88,{isAnnotationTracked:_0x470d50})=>{this['activeAnnotation']&&_0x470d50(this['activeAnnotation'])&&this[_0x47ae('0x14')](null);}),this[_0x47ae('0x4')](_0x49c888,_0x47ae('0x10'),()=>{this[_0x47ae('0x27')]();}),this[_0x47ae('0x4')](this[_0x47ae('0x1d')],'blur',_0x563aa2=>{_0x49c888['hasDomSelection']()&&(_0xc9ac83(),_0x563aa2['stop']());},{'priority':_0x47ae('0x6')}),this['_editorAnnotations'][_0x47ae('0x1')](_0x49c888);}[_0x47ae('0x2')](_0x13aefa){this[_0x47ae('0x15')](_0x13aefa),this[_0x47ae('0xb')][_0x47ae('0x1e')](_0x13aefa);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e30=['tableCell','change','_hasContent','_trimToContent','element','document','push','editor','comment:','backward','substr','execute','getRanges','selection','model','isEnabled','_itemIsContent','addMarker','end'];(function(_0x356ef4,_0x3e30bc){const _0x55d810=function(_0x3bdc1e){while(--_0x3bdc1e){_0x356ef4['push'](_0x356ef4['shift']());}};_0x55d810(++_0x3e30bc);}(_0x3e30,0x144));const _0x55d8=function(_0x356ef4,_0x3e30bc){_0x356ef4=_0x356ef4-0x0;let _0x55d810=_0x3e30[_0x356ef4];return _0x55d810;};import{Command as _0x5b604a}from'ckeditor5/src/core';import{uid as _0x3274b8}from'ckeditor5/src/utils';export default class q extends _0x5b604a{['refresh'](){const _0x5eb916=this['editor']['model']['document'][_0x55d8('0xc')];for(const _0x365083 of _0x5eb916['getRanges']())if(this[_0x55d8('0x1')](_0x365083))return void(this[_0x55d8('0xe')]=!0x0);this['isEnabled']=!0x1;}[_0x55d8('0xa')]({threadId:_0x315ee2=_0x3274b8()}={}){const _0x359991=this['editor'][_0x55d8('0xd')],_0x280d78=[];for(const _0x184d71 of _0x359991[_0x55d8('0x4')]['selection'][_0x55d8('0xb')]())this['_hasContent'](_0x184d71)&&_0x280d78[_0x55d8('0x5')](this[_0x55d8('0x2')](_0x184d71));_0x359991[_0x55d8('0x0')](_0x8ae8bc=>{for(const _0x1d98b4 of _0x280d78){const _0x199d3e=_0x3274b8()[_0x55d8('0x9')](0x1,0x5),_0x3ce2f=_0x55d8('0x7')+_0x315ee2+':'+_0x199d3e;_0x8ae8bc[_0x55d8('0x10')](_0x3ce2f,{'range':_0x1d98b4,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x165d69){for(const _0x39c302 of _0x165d69['getItems']())if(this[_0x55d8('0xf')](_0x39c302))return!0x0;return!0x1;}[_0x55d8('0xf')](_0x2fcbe4){return _0x2fcbe4['is']('$textProxy')||this[_0x55d8('0x6')]['model']['schema']['isObject'](_0x2fcbe4)&&!_0x2fcbe4['is'](_0x55d8('0x3'),_0x55d8('0x12'));}[_0x55d8('0x2')](_0x195ad0){const _0x46f706=_0x5647e3=>!this[_0x55d8('0xf')](_0x5647e3['item']),_0x38e28b=_0x195ad0['start']['getLastMatchingPosition'](_0x46f706),_0x5c1a2a=_0x195ad0[_0x55d8('0x11')]['getLastMatchingPosition'](_0x46f706,{'direction':_0x55d8('0x8')});return this[_0x55d8('0x6')][_0x55d8('0xd')]['createRange'](_0x38e28b,_0x5c1a2a);}}
23
+ const _0x1d75=['getRanges','isEnabled','change','_trimToContent','substr','addMarker','schema','_hasContent','isObject','backward','element','model','_itemIsContent','selection','document','editor','end','comment:','tableCell'];(function(_0x2db901,_0x1d75b8){const _0x3b63e2=function(_0x85b5aa){while(--_0x85b5aa){_0x2db901['push'](_0x2db901['shift']());}};_0x3b63e2(++_0x1d75b8);}(_0x1d75,0x6f));const _0x3b63=function(_0x2db901,_0x1d75b8){_0x2db901=_0x2db901-0x0;let _0x3b63e2=_0x1d75[_0x2db901];return _0x3b63e2;};import{Command as _0x250a0c}from'ckeditor5/src/core';import{uid as _0x202f60}from'ckeditor5/src/utils';export default class q extends _0x250a0c{['refresh'](){const _0x1422f7=this[_0x3b63('0x12')][_0x3b63('0xe')][_0x3b63('0x11')]['selection'];for(const _0x3749a0 of _0x1422f7[_0x3b63('0x3')]())if(this[_0x3b63('0xa')](_0x3749a0))return void(this[_0x3b63('0x4')]=!0x0);this[_0x3b63('0x4')]=!0x1;}['execute']({threadId:_0x11cc10=_0x202f60()}={}){const _0x20c1a4=this['editor'][_0x3b63('0xe')],_0x23aa4a=[];for(const _0x406f1f of _0x20c1a4[_0x3b63('0x11')][_0x3b63('0x10')][_0x3b63('0x3')]())this[_0x3b63('0xa')](_0x406f1f)&&_0x23aa4a['push'](this[_0x3b63('0x6')](_0x406f1f));_0x20c1a4[_0x3b63('0x5')](_0x4a4fc2=>{for(const _0x5dbe93 of _0x23aa4a){const _0x14f03f=_0x202f60()[_0x3b63('0x7')](0x1,0x5),_0x10be15=_0x3b63('0x1')+_0x11cc10+':'+_0x14f03f;_0x4a4fc2[_0x3b63('0x8')](_0x10be15,{'range':_0x5dbe93,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x23be98){for(const _0x4e7c66 of _0x23be98['getItems']())if(this['_itemIsContent'](_0x4e7c66))return!0x0;return!0x1;}[_0x3b63('0xf')](_0x3b83da){return _0x3b83da['is']('$textProxy')||this[_0x3b63('0x12')][_0x3b63('0xe')][_0x3b63('0x9')][_0x3b63('0xb')](_0x3b83da)&&!_0x3b83da['is'](_0x3b63('0xd'),_0x3b63('0x2'));}['_trimToContent'](_0x18a85a){const _0xde1d9b=_0x541103=>!this[_0x3b63('0xf')](_0x541103['item']),_0x654af4=_0x18a85a['start']['getLastMatchingPosition'](_0xde1d9b),_0x3ec6fd=_0x18a85a[_0x3b63('0x0')]['getLastMatchingPosition'](_0xde1d9b,{'direction':_0x3b63('0xc')});return this['editor'][_0x3b63('0xe')]['createRange'](_0x654af4,_0x3ec6fd);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42e6=['add','addCommentThread','isActive','findIndex','stopListening','remove','requires','getCommentThread','has','archivedAt','length','CommentsArchive','context','pluginName','archivedThreads','highest','change:archivedAt','init','listenTo','plugins','_calculatePosition','collection','activate'];(function(_0x5e7572,_0x42e6ff){const _0x3b1c85=function(_0x247b23){while(--_0x247b23){_0x5e7572['push'](_0x5e7572['shift']());}};_0x3b1c85(++_0x42e6ff);}(_0x42e6,0x1f1));const _0x3b1c=function(_0x5e7572,_0x42e6ff){_0x5e7572=_0x5e7572-0x0;let _0x3b1c85=_0x42e6[_0x5e7572];return _0x3b1c85;};import{ContextPlugin as _0x40eb32}from'ckeditor5/src/core';import{Collection as _0x80fa6}from'ckeditor5/src/utils';import _0x445a7c from'./commentsrepository';import _0x32fde3 from'../annotations/annotations';export default class p extends _0x40eb32{static get[_0x3b1c('0x16')](){return _0x3b1c('0x14');}static get[_0x3b1c('0xf')](){return[_0x445a7c,_0x32fde3];}constructor(_0x4fa508){super(_0x4fa508),this[_0x3b1c('0x0')]=new _0x80fa6();}[_0x3b1c('0x3')](){const _0x192b0b=this[_0x3b1c('0x15')],_0x45c017=_0x192b0b[_0x3b1c('0x5')]['get'](_0x445a7c),_0x3d29de=_0x192b0b['plugins']['get'](_0x32fde3);this[_0x3b1c('0x4')](_0x45c017,_0x3b1c('0xa'),(_0x51fe00,{threadId:_0x834d6f})=>{const _0x83bd3f=_0x45c017['getCommentThread'](_0x834d6f);_0x83bd3f[_0x3b1c('0x12')]&&this[_0x3b1c('0x0')][_0x3b1c('0x9')](_0x83bd3f,this[_0x3b1c('0x6')](_0x83bd3f[_0x3b1c('0x12')])),this[_0x3b1c('0x4')](_0x83bd3f,_0x3b1c('0x2'),(_0x1cd244,_0x5227ff,_0x3ae91d)=>{_0x3ae91d?this[_0x3b1c('0x0')]['has'](_0x83bd3f)||this[_0x3b1c('0x0')][_0x3b1c('0x9')](_0x83bd3f,this['_calculatePosition'](_0x83bd3f[_0x3b1c('0x12')])):this['archivedThreads']['has'](_0x83bd3f)&&this[_0x3b1c('0x0')][_0x3b1c('0xe')](_0x83bd3f);});}),this[_0x3b1c('0x4')](_0x45c017,'removeCommentThread',(_0x2d1094,{threadId:_0x7c858e})=>{const _0x7cf5c=_0x45c017[_0x3b1c('0x10')](_0x7c858e);this[_0x3b1c('0xd')](_0x7cf5c),this[_0x3b1c('0x0')][_0x3b1c('0x11')](_0x7cf5c)&&this[_0x3b1c('0x0')][_0x3b1c('0xe')](_0x7cf5c);},{'priority':_0x3b1c('0x1')}),this['listenTo'](_0x3d29de[_0x3b1c('0x7')],'focus',(_0x1c64b6,_0x4e7452)=>{_0x4e7452[_0x3b1c('0xb')]=!0x0,_0x3d29de[_0x3b1c('0x8')](_0x4e7452);});}['_calculatePosition'](_0x45747b){const _0x2ef519=[...this[_0x3b1c('0x0')]][_0x3b1c('0xc')](_0x14aadb=>_0x14aadb[_0x3b1c('0x12')]<_0x45747b);return _0x2ef519>-0x1?_0x2ef519:this[_0x3b1c('0x0')][_0x3b1c('0x13')];}}
23
+ const _0xa00d=['archivedThreads','pluginName','change:archivedAt','removeCommentThread','plugins','remove','highest','focus','has','context','add','archivedAt','CommentsArchive','length','get','listenTo','requires','getCommentThread','findIndex','stopListening','isActive','_calculatePosition'];(function(_0x39fcb5,_0xa00deb){const _0x2cb7fa=function(_0x438dfc){while(--_0x438dfc){_0x39fcb5['push'](_0x39fcb5['shift']());}};_0x2cb7fa(++_0xa00deb);}(_0xa00d,0x157));const _0x2cb7=function(_0x39fcb5,_0xa00deb){_0x39fcb5=_0x39fcb5-0x0;let _0x2cb7fa=_0xa00d[_0x39fcb5];return _0x2cb7fa;};import{ContextPlugin as _0x359a4a}from'ckeditor5/src/core';import{Collection as _0x3521e0}from'ckeditor5/src/utils';import _0x363144 from'./commentsrepository';import _0x54f952 from'../annotations/annotations';export default class p extends _0x359a4a{static get[_0x2cb7('0xa')](){return _0x2cb7('0x15');}static get[_0x2cb7('0x3')](){return[_0x363144,_0x54f952];}constructor(_0x59492b){super(_0x59492b),this[_0x2cb7('0x9')]=new _0x3521e0();}['init'](){const _0x3a8623=this[_0x2cb7('0x12')],_0x1c18ef=_0x3a8623[_0x2cb7('0xd')][_0x2cb7('0x1')](_0x363144),_0x49852c=_0x3a8623['plugins']['get'](_0x54f952);this[_0x2cb7('0x2')](_0x1c18ef,'addCommentThread',(_0x336d32,{threadId:_0x1884c2})=>{const _0x1ad89d=_0x1c18ef[_0x2cb7('0x4')](_0x1884c2);_0x1ad89d[_0x2cb7('0x14')]&&this[_0x2cb7('0x9')][_0x2cb7('0x13')](_0x1ad89d,this[_0x2cb7('0x8')](_0x1ad89d[_0x2cb7('0x14')])),this['listenTo'](_0x1ad89d,_0x2cb7('0xb'),(_0x2df3b0,_0x1073dc,_0x2cf7c8)=>{_0x2cf7c8?this[_0x2cb7('0x9')][_0x2cb7('0x11')](_0x1ad89d)||this[_0x2cb7('0x9')][_0x2cb7('0x13')](_0x1ad89d,this[_0x2cb7('0x8')](_0x1ad89d[_0x2cb7('0x14')])):this[_0x2cb7('0x9')][_0x2cb7('0x11')](_0x1ad89d)&&this[_0x2cb7('0x9')]['remove'](_0x1ad89d);});}),this[_0x2cb7('0x2')](_0x1c18ef,_0x2cb7('0xc'),(_0x56fb84,{threadId:_0x4bf7ba})=>{const _0x1aee22=_0x1c18ef[_0x2cb7('0x4')](_0x4bf7ba);this[_0x2cb7('0x6')](_0x1aee22),this[_0x2cb7('0x9')][_0x2cb7('0x11')](_0x1aee22)&&this[_0x2cb7('0x9')][_0x2cb7('0xe')](_0x1aee22);},{'priority':_0x2cb7('0xf')}),this['listenTo'](_0x49852c['collection'],_0x2cb7('0x10'),(_0x25b315,_0x127b08)=>{_0x127b08[_0x2cb7('0x7')]=!0x0,_0x49852c['activate'](_0x127b08);});}[_0x2cb7('0x8')](_0x58c563){const _0x2a3bd4=[...this[_0x2cb7('0x9')]][_0x2cb7('0x5')](_0xf093d2=>_0xf093d2[_0x2cb7('0x14')]<_0x58c563);return _0x2a3bd4>-0x1?_0x2a3bd4:this['archivedThreads'][_0x2cb7('0x0')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d25=['change:isOpen','locale','requires','position','panelView','indexOf','_handleAnnotationFocusableElements','commentsArchive','config','add','focusableElements','plugins','_calculatePosition','splice','classList','pluginName','editor','listenTo','_pendingThreads','find','_threadToController','annotationViews','contains','buttonView','stopListening','archivedThreads','ck-body','_createArchiveUIDropdown','init','getByInnerView','filter','children','_visibleAnnotations','get','Annotations','commentsArchiveView','focusTracker','remove','channelId','componentFactory','isVisible','collaboration.channelId','CommentsArchiveUI','view','innerView','collection','CommentsRepository','push','extendTemplate','COMMENTS_ARCHIVE','findIndex'];(function(_0x416842,_0x3d2571){const _0x59d908=function(_0x4d9b5a){while(--_0x4d9b5a){_0x416842['push'](_0x416842['shift']());}};_0x59d908(++_0x3d2571);}(_0x3d25,0x177));const _0x59d9=function(_0x416842,_0x3d2571){_0x416842=_0x416842-0x0;let _0x59d908=_0x3d25[_0x416842];return _0x59d908;};import'../../theme/commentsarchive.css';import{Plugin as _0x246a99}from'ckeditor5/src/core';import{createDropdown as _0x5c697f,ViewCollection as _0x41bbe6}from'ckeditor5/src/ui';import _0x232463 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x376a89}from'../utils/common-translations';import _0x2306fa from'./ui/view/commentsarchiveview';import _0x8784b1 from'./commentsarchive';export default class a extends _0x246a99{static get[_0x59d9('0x30')](){return _0x59d9('0x18');}static get[_0x59d9('0x23')](){return[_0x8784b1];}constructor(_0x4385c0){super(_0x4385c0),this[_0x59d9('0x3')]=new _0x41bbe6(),this[_0x59d9('0x0')]=[];}[_0x59d9('0xa')](){this[_0x59d9('0x31')]['ui'][_0x59d9('0x15')][_0x59d9('0x2a')](_0x59d9('0x28'),()=>this[_0x59d9('0x9')]());const _0x34111d=this['editor']['plugins'][_0x59d9('0xf')](_0x8784b1),_0x48eeb1=this[_0x59d9('0x31')]['plugins']['get'](_0x59d9('0x10')),_0x5297a9=this[_0x59d9('0x31')][_0x59d9('0x2c')][_0x59d9('0xf')](_0x59d9('0x1c'));this[_0x59d9('0x32')](_0x34111d[_0x59d9('0x7')],_0x59d9('0x2a'),(_0x5441d4,_0x131ead)=>{const _0x4bb50d=this[_0x59d9('0x31')][_0x59d9('0x29')]['get'](_0x59d9('0x17'));if(!_0x4bb50d||_0x131ead[_0x59d9('0x14')]===_0x4bb50d){const _0x22e54d=this[_0x59d9('0x2d')](_0x131ead['archivedAt']),_0xdf384d=_0x5297a9[_0x59d9('0x2')][_0x59d9('0xf')](_0x131ead);if(!_0xdf384d)return void this[_0x59d9('0x0')][_0x59d9('0x1d')]({'thread':_0x131ead,'position':_0x22e54d});const _0x2dc2da=_0x48eeb1[_0x59d9('0xb')](_0xdf384d[_0x59d9('0x19')]);_0x2dc2da[_0x59d9('0x16')]&&_0x48eeb1[_0x59d9('0xe')][_0x59d9('0x13')](_0x2dc2da),this[_0x59d9('0x3')][_0x59d9('0x2a')](_0x2dc2da[_0x59d9('0x19')],_0x22e54d);}}),this['listenTo'](_0x48eeb1[_0x59d9('0x1b')],_0x59d9('0x2a'),(_0x1552e5,_0xec8925)=>{const _0x181272=this[_0x59d9('0x0')][_0x59d9('0x1')](({thread:_0x356e7d})=>{const _0x59970e=_0x5297a9[_0x59d9('0x2')][_0x59d9('0xf')](_0x356e7d);return _0x59970e&&_0xec8925[_0x59d9('0x1a')]===_0x59970e['view'];});_0x181272&&(this[_0x59d9('0x3')]['add'](_0xec8925['view'],_0x181272[_0x59d9('0x24')]),this[_0x59d9('0x0')][_0x59d9('0x2e')](this[_0x59d9('0x0')][_0x59d9('0x26')](_0x181272),0x1));}),this[_0x59d9('0x32')](_0x34111d[_0x59d9('0x7')],_0x59d9('0x13'),(_0x10f8fa,_0x522a82)=>{const _0x41d933=this[_0x59d9('0x31')][_0x59d9('0x29')][_0x59d9('0xf')](_0x59d9('0x17'));if(!_0x41d933||_0x522a82[_0x59d9('0x14')]===_0x41d933){const _0x4bd726=_0x5297a9[_0x59d9('0x2')]['get'](_0x522a82),_0x5413ab=_0x48eeb1[_0x59d9('0xb')](_0x4bd726['view']);this[_0x59d9('0x3')]['remove'](_0x5413ab['view']),this[_0x59d9('0x6')](_0x5413ab['focusableElements']);}});}[_0x59d9('0x27')](_0x2ebca8,_0x490ecb){for(const _0xd55fa2 of _0x490ecb[_0x59d9('0x2b')])_0xd55fa2['classList'][_0x59d9('0x4')]('ck-body')&&_0x2ebca8[_0x59d9('0x12')][_0x59d9('0x2a')](_0xd55fa2);this[_0x59d9('0x32')](_0x490ecb[_0x59d9('0x2b')],_0x59d9('0x2a'),(_0x4c6a8f,_0x3e0da1)=>{_0x3e0da1['classList'][_0x59d9('0x4')](_0x59d9('0x8'))&&_0x2ebca8[_0x59d9('0x12')]['add'](_0x3e0da1);}),this[_0x59d9('0x32')](_0x490ecb['focusableElements'],_0x59d9('0x13'),(_0x5d1236,_0x2d9a4a)=>{_0x2d9a4a[_0x59d9('0x2f')][_0x59d9('0x4')](_0x59d9('0x8'))&&_0x2ebca8['focusTracker'][_0x59d9('0x13')](_0x2d9a4a);});}[_0x59d9('0x2d')](_0x507800){const _0x7751cd=this[_0x59d9('0x31')][_0x59d9('0x29')][_0x59d9('0xf')](_0x59d9('0x17')),_0x1dc055=[...this['editor'][_0x59d9('0x2c')][_0x59d9('0xf')](_0x8784b1)['archivedThreads']][_0x59d9('0xc')](_0x5ba931=>_0x5ba931[_0x59d9('0x14')]===_0x7751cd)[_0x59d9('0x20')](_0x22b29d=>_0x22b29d['archivedAt']<_0x507800);return _0x1dc055>-0x1?_0x1dc055-0x1:this[_0x59d9('0x3')]['length'];}[_0x59d9('0x9')](){const _0x44821e=this['editor'],_0x189d9d=this[_0x59d9('0x31')][_0x59d9('0x2c')][_0x59d9('0xf')](_0x59d9('0x10')),_0x4f6ef5=_0x5c697f(_0x44821e[_0x59d9('0x22')]);_0x4f6ef5[_0x59d9('0x5')]['set']({'icon':_0x232463,'label':_0x376a89(_0x44821e['locale'],_0x59d9('0x1f')),'tooltip':!0x0}),_0x4f6ef5[_0x59d9('0x25')][_0x59d9('0x1e')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x4f6ef5['on'](_0x59d9('0x21'),(_0x56f59,_0x3da6c6,_0x4290bd)=>{this['commentsArchiveView']||(this[_0x59d9('0x11')]=new _0x2306fa(_0x44821e[_0x59d9('0x22')],this[_0x59d9('0x3')])),_0x4290bd?_0x4f6ef5['panelView'][_0x59d9('0xd')]['add'](this[_0x59d9('0x11')]):_0x4f6ef5[_0x59d9('0x25')][_0x59d9('0xd')][_0x59d9('0x13')](this[_0x59d9('0x11')]);});for(const _0x231a28 of this[_0x59d9('0x3')]){const _0x40cd23=_0x189d9d[_0x59d9('0xb')](_0x231a28['mainView']);this[_0x59d9('0x27')](_0x4f6ef5,_0x40cd23);}return _0x4f6ef5['listenTo'](this[_0x59d9('0x3')],_0x59d9('0x2a'),(_0x416c94,_0x1d1ec4)=>{const _0x46bb0c=_0x189d9d['getByInnerView'](_0x1d1ec4['mainView']);this[_0x59d9('0x27')](_0x4f6ef5,_0x46bb0c);}),_0x4f6ef5[_0x59d9('0x32')](this['annotationViews'],'remove',(_0x545bcb,_0x2af550)=>{const _0x3bd62b=_0x189d9d[_0x59d9('0xb')](_0x2af550['mainView']);for(const _0x4edd4f of _0x3bd62b[_0x59d9('0x2b')])_0x4edd4f[_0x59d9('0x2f')][_0x59d9('0x4')](_0x59d9('0x8'))&&_0x4f6ef5[_0x59d9('0x12')][_0x59d9('0x13')](_0x4edd4f);}),_0x4f6ef5;}}
23
+ const _0x478f=['editor','locale','extendTemplate','commentsArchive','getByInnerView','plugins','componentFactory','ck-body','_createArchiveUIDropdown','requires','get','add','_handleAnnotationFocusableElements','classList','findIndex','stopListening','_calculatePosition','archivedAt','init','buttonView','contains','COMMENTS_ARCHIVE','_visibleAnnotations','find','_pendingThreads','panelView','mainView','config','listenTo','children','focusableElements','Annotations','annotationViews','archivedThreads','focusTracker','isVisible','commentsArchiveView','innerView','position','push','change:isOpen','pluginName','collaboration.channelId','channelId','_threadToController','CommentsRepository','remove','view','length'];(function(_0xec6e50,_0x478f38){const _0x46f2f7=function(_0x12d18f){while(--_0x12d18f){_0xec6e50['push'](_0xec6e50['shift']());}};_0x46f2f7(++_0x478f38);}(_0x478f,0xa2));const _0x46f2=function(_0xec6e50,_0x478f38){_0xec6e50=_0xec6e50-0x0;let _0x46f2f7=_0x478f[_0xec6e50];return _0x46f2f7;};import'../../theme/commentsarchive.css';import{Plugin as _0x3eb50c}from'ckeditor5/src/core';import{createDropdown as _0x2ddaec,ViewCollection as _0x3437c0}from'ckeditor5/src/ui';import _0x1f8218 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x31dc91}from'../utils/common-translations';import _0x333730 from'./ui/view/commentsarchiveview';import _0xb59a10 from'./commentsarchive';export default class a extends _0x3eb50c{static get[_0x46f2('0x1a')](){return'CommentsArchiveUI';}static get[_0x46f2('0x2b')](){return[_0xb59a10];}constructor(_0x2f9145){super(_0x2f9145),this[_0x46f2('0x11')]=new _0x3437c0(),this[_0x46f2('0x9')]=[];}[_0x46f2('0x3')](){this[_0x46f2('0x22')]['ui'][_0x46f2('0x28')]['add'](_0x46f2('0x25'),()=>this[_0x46f2('0x2a')]());const _0xa07016=this['editor'][_0x46f2('0x27')][_0x46f2('0x2c')](_0xb59a10),_0x4aaca8=this[_0x46f2('0x22')][_0x46f2('0x27')][_0x46f2('0x2c')](_0x46f2('0x10')),_0x3e5900=this[_0x46f2('0x22')][_0x46f2('0x27')][_0x46f2('0x2c')](_0x46f2('0x1e'));this[_0x46f2('0xd')](_0xa07016[_0x46f2('0x12')],_0x46f2('0x2d'),(_0x582559,_0x2c6eed)=>{const _0x526b6d=this[_0x46f2('0x22')]['config'][_0x46f2('0x2c')](_0x46f2('0x1b'));if(!_0x526b6d||_0x2c6eed[_0x46f2('0x1c')]===_0x526b6d){const _0x3d0882=this[_0x46f2('0x1')](_0x2c6eed[_0x46f2('0x2')]),_0x2573d1=_0x3e5900[_0x46f2('0x1d')][_0x46f2('0x2c')](_0x2c6eed);if(!_0x2573d1)return void this[_0x46f2('0x9')][_0x46f2('0x18')]({'thread':_0x2c6eed,'position':_0x3d0882});const _0x43c7ea=_0x4aaca8[_0x46f2('0x26')](_0x2573d1[_0x46f2('0x20')]);_0x43c7ea[_0x46f2('0x14')]&&_0x4aaca8[_0x46f2('0x7')][_0x46f2('0x1f')](_0x43c7ea),this['annotationViews']['add'](_0x43c7ea[_0x46f2('0x20')],_0x3d0882);}}),this[_0x46f2('0xd')](_0x4aaca8['collection'],_0x46f2('0x2d'),(_0x4d1739,_0x277d07)=>{const _0x8ca19d=this[_0x46f2('0x9')][_0x46f2('0x8')](({thread:_0x161f07})=>{const _0x3f065e=_0x3e5900[_0x46f2('0x1d')][_0x46f2('0x2c')](_0x161f07);return _0x3f065e&&_0x277d07[_0x46f2('0x16')]===_0x3f065e['view'];});_0x8ca19d&&(this[_0x46f2('0x11')]['add'](_0x277d07[_0x46f2('0x20')],_0x8ca19d[_0x46f2('0x17')]),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x8ca19d),0x1));}),this['listenTo'](_0xa07016['archivedThreads'],_0x46f2('0x1f'),(_0x16efac,_0x239316)=>{const _0x58b493=this[_0x46f2('0x22')]['config'][_0x46f2('0x2c')](_0x46f2('0x1b'));if(!_0x58b493||_0x239316[_0x46f2('0x1c')]===_0x58b493){const _0x298703=_0x3e5900[_0x46f2('0x1d')][_0x46f2('0x2c')](_0x239316),_0x38dd50=_0x4aaca8[_0x46f2('0x26')](_0x298703[_0x46f2('0x20')]);this[_0x46f2('0x11')][_0x46f2('0x1f')](_0x38dd50[_0x46f2('0x20')]),this[_0x46f2('0x0')](_0x38dd50['focusableElements']);}});}['_handleAnnotationFocusableElements'](_0x235b28,_0x501f6f){for(const _0xcad240 of _0x501f6f['focusableElements'])_0xcad240[_0x46f2('0x2f')][_0x46f2('0x5')](_0x46f2('0x29'))&&_0x235b28[_0x46f2('0x13')]['add'](_0xcad240);this['listenTo'](_0x501f6f[_0x46f2('0xf')],_0x46f2('0x2d'),(_0x89d405,_0x14cbee)=>{_0x14cbee[_0x46f2('0x2f')]['contains'](_0x46f2('0x29'))&&_0x235b28[_0x46f2('0x13')][_0x46f2('0x2d')](_0x14cbee);}),this[_0x46f2('0xd')](_0x501f6f[_0x46f2('0xf')],_0x46f2('0x1f'),(_0x3b8917,_0x3c4152)=>{_0x3c4152[_0x46f2('0x2f')]['contains'](_0x46f2('0x29'))&&_0x235b28[_0x46f2('0x13')][_0x46f2('0x1f')](_0x3c4152);});}[_0x46f2('0x1')](_0x23e64b){const _0xa701de=this[_0x46f2('0x22')][_0x46f2('0xc')][_0x46f2('0x2c')](_0x46f2('0x1b')),_0x422c82=[...this[_0x46f2('0x22')][_0x46f2('0x27')]['get'](_0xb59a10)['archivedThreads']]['filter'](_0x606482=>_0x606482[_0x46f2('0x1c')]===_0xa701de)[_0x46f2('0x30')](_0x2800f6=>_0x2800f6[_0x46f2('0x2')]<_0x23e64b);return _0x422c82>-0x1?_0x422c82-0x1:this[_0x46f2('0x11')][_0x46f2('0x21')];}[_0x46f2('0x2a')](){const _0x2f9e51=this['editor'],_0x50aa69=this['editor']['plugins'][_0x46f2('0x2c')](_0x46f2('0x10')),_0x44da79=_0x2ddaec(_0x2f9e51[_0x46f2('0x23')]);_0x44da79[_0x46f2('0x4')]['set']({'icon':_0x1f8218,'label':_0x31dc91(_0x2f9e51[_0x46f2('0x23')],_0x46f2('0x6')),'tooltip':!0x0}),_0x44da79['panelView'][_0x46f2('0x24')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x44da79['on'](_0x46f2('0x19'),(_0x32073a,_0x59d090,_0xca5d6b)=>{this[_0x46f2('0x15')]||(this[_0x46f2('0x15')]=new _0x333730(_0x2f9e51['locale'],this[_0x46f2('0x11')])),_0xca5d6b?_0x44da79[_0x46f2('0xa')][_0x46f2('0xe')][_0x46f2('0x2d')](this[_0x46f2('0x15')]):_0x44da79[_0x46f2('0xa')][_0x46f2('0xe')]['remove'](this[_0x46f2('0x15')]);});for(const _0x159185 of this[_0x46f2('0x11')]){const _0x1c42f0=_0x50aa69['getByInnerView'](_0x159185[_0x46f2('0xb')]);this['_handleAnnotationFocusableElements'](_0x44da79,_0x1c42f0);}return _0x44da79['listenTo'](this[_0x46f2('0x11')],_0x46f2('0x2d'),(_0x33f922,_0x1e9e52)=>{const _0x48a3f0=_0x50aa69[_0x46f2('0x26')](_0x1e9e52['mainView']);this[_0x46f2('0x2e')](_0x44da79,_0x48a3f0);}),_0x44da79['listenTo'](this['annotationViews'],'remove',(_0x2bc24e,_0x255720)=>{const _0x127fcc=_0x50aa69[_0x46f2('0x26')](_0x255720['mainView']);for(const _0x586ce8 of _0x127fcc['focusableElements'])_0x586ce8['classList'][_0x46f2('0x5')](_0x46f2('0x29'))&&_0x44da79[_0x46f2('0x13')][_0x46f2('0x1f')](_0x586ce8);}),_0x44da79;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37b7=['archivedAt','$marker','unlinkedAt','isLocal','ck-comment-marker--active','_hasTargetInContent','getAllMarkersForId','refreshVisibility','getWalker','createRange','name','elementToElement','once','push','focus','add','comment','enqueueChange','change:isReadOnly','openNewCommentThread','dataToMarker','schema','from','updateMarker','setUnlinkedAt','rootName','listenTo','$graveyard','data','ready','createPositionBefore','resolveCommentThread','_handleThreadMarker','view','isEqual','_initAriaMarkerChangeAnnouncements','get','clear','markerName','hasContent','init','config','set','removeMarker:','low','addComment','requires','for','collaboration.channelId','pluginName','announce','removeCommentThread','switchReadOnly','registerAnnotation','group','text','_attachMarkerToThread','start','plugins','activeMarker','editor','isThreadsLoadingPaused','registerPostFixer','getCommentThread','destroy','managedUsingOperations','comments','document','ariaLiveAnnouncer','substring','scrollToThreadMarker','ck-comment-marker','root','context','isResolved','LEAVE_COMMENT_ANNOUNCEMENT','split','join','isObject','editing','reconvertMarker','setContext','change:isThreadsLoadingPaused','consume','affectsData','_attachResolvedThread','model','markerToData','differ','ENTER_COMMENT_ANNOUNCEMENT','length','render','state','delete','_getTargetForId','conversion','_detachCommentThread','upcast','end','attachTo','consumable','locale','markers','getCommentThreads','_reconvertMarkers','fetchCommentThread','change','isCollapsed','_handleMarkerAddAndRemove','size','newRange','CommentsEditing','comment:','addCommentThread','removeMarker','_initializeMarkerConverters','hasMarkerForId','item'];(function(_0x2cfa16,_0x37b714){const _0x21891a=function(_0x26c97e){while(--_0x26c97e){_0x2cfa16['push'](_0x2cfa16['shift']());}};_0x21891a(++_0x37b714);}(_0x37b7,0x121));const _0x2189=function(_0x2cfa16,_0x37b714){_0x2cfa16=_0x2cfa16-0x0;let _0x21891a=_0x37b7[_0x2cfa16];return _0x21891a;};import{Plugin as _0x535a35}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2cfaf0}from'ckeditor5/src/utils';import _0x245908 from'./commentsrepository';import _0x304944 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x3054af,getAllMarkersDomElementsSorted as _0xb81199}from'ckeditor5-collaboration/src/collaboration-core';import _0x54592a from'../annotations/editorannotations';import _0x2797d9 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x17dbd6 from'./integrations/importword';import _0x435ced from'../annotations/annotations';import{getTranslation as _0x21d138}from'../utils/common-translations';export default class r extends _0x535a35{static get[_0x2189('0x6f')](){return[_0x245908,_0x54592a,_0x2797d9,_0x17dbd6];}static get[_0x2189('0x72')](){return _0x2189('0x3a');}constructor(_0x1a492c){super(_0x1a492c),this[_0x2189('0x6b')](_0x2189('0x8'),!0x0),_0x1a492c[_0x2189('0x5d')][_0x2189('0x4d')](_0x2189('0x5e'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x2189('0x6'),null),this['on']('change:activeMarker',(_0x14ae39,_0x1d19d3,_0x4a9abe,_0x5ca27e)=>{const _0x344e9a=_0x4a9abe?ot(_0x4a9abe)['id']:null;if(_0x1a492c[_0x2189('0x21')]['change'](()=>{if(_0x344e9a){const _0x2ca366=this[_0x2189('0x47')](_0x344e9a);for(const _0x2e9868 of _0x2ca366)_0x1a492c[_0x2189('0x1a')][_0x2189('0x1b')](_0x2e9868);}if(_0x5ca27e){const {id:_0x2ced0e}=ot(_0x5ca27e),_0x483c11=this[_0x2189('0x47')](_0x2ced0e);for(const _0x2940bc of _0x483c11)_0x1a492c['editing'][_0x2189('0x1b')](_0x2940bc);}}),_0x344e9a){const _0x4423f6=_0x1a492c[_0x2189('0x5')][_0x2189('0x65')](_0x245908)[_0x2189('0xa')](_0x344e9a);_0x4423f6&&_0x4423f6[_0x2189('0x15')]&&this['scrollToThreadMarker'](_0x344e9a);}}),this[_0x2189('0x64')]();}[_0x2189('0x69')](){const _0x555703=this[_0x2189('0x7')],_0x83302d=_0x555703['plugins'][_0x2189('0x65')](_0x245908),_0x4906b0=_0x555703['config']['get'](_0x2189('0x71'));_0x555703['commands'][_0x2189('0x50')]('addCommentThread',new _0x304944(_0x555703)),this[_0x2189('0x5b')](_0x555703,_0x2189('0x53'),(_0x321f37,_0x28ea33,_0x185ac8)=>{_0x83302d[_0x2189('0x75')](_0x185ac8,_0x555703['config'][_0x2189('0x65')](_0x2189('0x71')));}),this[_0x2189('0x5b')](_0x83302d,tt(_0x2189('0x3c'),_0x4906b0),(_0x5d974e,{threadId:_0x430e69})=>{const _0x3e73fc=this['editor'][_0x2189('0x5')][_0x2189('0x65')](_0x245908)[_0x2189('0xa')](_0x430e69);_0x3e73fc&&_0x3e73fc[_0x2189('0x41')]&&this['_attachResolvedThread'](_0x430e69);}),this['listenTo'](_0x83302d,tt(_0x2189('0x74'),_0x4906b0),(_0x4f5ea5,{threadId:_0x3e866e})=>{_0x555703[_0x2189('0x21')]['enqueueChange']({'isUndoable':!0x1},_0x56147a=>{const _0x5f22ce=this[_0x2189('0x47')](_0x3e866e);for(const _0x1c7d2b of _0x5f22ce)_0x56147a['removeMarker'](_0x1c7d2b);});}),this['listenTo'](_0x83302d,tt(_0x2189('0x60'),_0x4906b0),(_0x30db10,{threadId:_0x2f5563})=>{(this['_attachResolvedThread'](_0x2f5563),this['_reconvertMarkers'](_0x2f5563),this[_0x2189('0x7')][_0x2189('0x1a')]['view']['hasDomSelection'])&&(this[_0x2189('0x7')][_0x2189('0x5')][_0x2189('0x65')](_0x245908)[_0x2189('0xa')](_0x2f5563)[_0x2189('0x43')]||this['editor'][_0x2189('0x1a')]['view'][_0x2189('0x4f')]());},{'priority':_0x2189('0x6d')}),this[_0x2189('0x5b')](_0x83302d,tt('reopenCommentThread',_0x4906b0),(_0x3b921f,{threadId:_0x48cd09})=>{this[_0x2189('0x33')](_0x48cd09);},{'priority':_0x2189('0x6d')}),this[_0x2189('0x5b')](_0x83302d,tt(_0x2189('0x6e'),_0x4906b0),(_0x492eff,{threadId:_0x35265c,isFromAdapter:_0x2393a7})=>{const _0x496cbc=this['getAllMarkersForId'](_0x35265c);if(_0x2393a7||0x0==_0x496cbc[_0x2189('0x25')]||!_0x83302d['hasCommentThread'](_0x35265c))return;0x1===_0x83302d['getCommentThread'](_0x35265c)[_0x2189('0x25')]&&_0x555703['model'][_0x2189('0x52')]({'isUndoable':!0x1},_0x725643=>{for(const _0x3f5468 of _0x496cbc)_0x725643[_0x2189('0x58')](_0x3f5468,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x2189('0x6d')}),this[_0x2189('0x3e')](),this['_handleMarkerAddAndRemove']();}[_0x2189('0xb')](){const _0x689ef5=this[_0x2189('0x7')][_0x2189('0x5')][_0x2189('0x65')](_0x245908),_0x1d31e5=this[_0x2189('0x7')][_0x2189('0x6a')][_0x2189('0x65')](_0x2189('0x71'));for(const _0x2baad6 of _0x689ef5[_0x2189('0x32')]({'channelId':_0x1d31e5}))_0x689ef5[_0x2189('0x2b')](_0x2baad6['id']),_0x689ef5['_threads'][_0x2189('0x28')](_0x2baad6['id']);super[_0x2189('0xb')]();}[_0x2189('0x3f')](_0x275634){return this[_0x2189('0x47')](_0x275634)[_0x2189('0x25')]>0x0;}[_0x2189('0x47')](_0x37f4de){const _0x56c0d4=[];for(const _0x2e8ce7 of this[_0x2189('0x7')][_0x2189('0x21')][_0x2189('0x31')])_0x2e8ce7[_0x2189('0x4b')]['startsWith']('comment:'+_0x37f4de)&&_0x56c0d4['push'](_0x2e8ce7);return _0x56c0d4;}[_0x2189('0x11')](_0x4b79f3){const _0xead53a=this[_0x2189('0x29')](_0x4b79f3);_0xead53a&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x2189('0x6')])['id']===_0x4b79f3&&_0x2cfaf0({'target':_0xead53a[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x2189('0x33')](_0x54b516){this[_0x2189('0x7')][_0x2189('0x21')][_0x2189('0x35')](()=>{for(const _0x847bb2 of this[_0x2189('0x47')](_0x54b516))this[_0x2189('0x7')][_0x2189('0x1a')][_0x2189('0x1b')](_0x847bb2);});}[_0x2189('0x20')](_0x5b5b04){const _0x2f0859=this['editor']['plugins'][_0x2189('0x65')](_0x245908),_0x377a86=this[_0x2189('0x7')]['plugins'][_0x2189('0x65')](_0x54592a),_0x5775a4=_0x2f0859[_0x2189('0xa')](_0x5b5b04);if(!_0x5775a4['isAttached']){const _0x3bd035=_0x5775a4[_0x2189('0x2e')](()=>this[_0x2189('0x29')](_0x5775a4['id']));_0x377a86[_0x2189('0x0')](_0x3bd035),_0x5775a4['_hasTargetInContent']=!0x1;}}[_0x2189('0x3e')](){const _0x1f728=this[_0x2189('0x7')];_0x1f728[_0x2189('0x2a')][_0x2189('0x70')]('editingDowncast')['markerToHighlight']({'model':_0x2189('0x51'),'view':(_0x500a04,_0x43bbb9)=>{const {id:_0x4e574f}=ot(_0x500a04[_0x2189('0x67')]),_0x21b41e=_0x1f728[_0x2189('0x5')][_0x2189('0x65')](_0x245908)[_0x2189('0xa')](_0x4e574f),_0x305d2b=this['activeMarker']&&ot(this[_0x2189('0x6')])['id']===_0x4e574f;if(_0x21b41e&&_0x21b41e[_0x2189('0x15')]&&!_0x305d2b&&_0x500a04['item'])return _0x43bbb9[_0x2189('0x2f')][_0x2189('0x1e')](_0x500a04[_0x2189('0x40')],'addMarker:'+_0x500a04[_0x2189('0x67')]),_0x43bbb9['consumable'][_0x2189('0x1e')](_0x500a04['item'],_0x2189('0x6c')+_0x500a04['markerName']),{'classes':[]};const _0x574d55=[_0x2189('0x12')];return _0x305d2b&&_0x574d55[_0x2189('0x4e')](_0x2189('0x45')),{'classes':_0x574d55,'attributes':{'data-comment':_0x4e574f}};}}),_0x1f728[_0x2189('0x2a')]['for']('dataDowncast')[_0x2189('0x22')]({'model':_0x2189('0x51'),'view':(_0x1ddf15,{options:_0x2fbb50})=>{const _0x11c903=_0x1f728[_0x2189('0x5')][_0x2189('0x65')](_0x245908),_0x59cc69=_0x1f728[_0x2189('0x21')][_0x2189('0x31')][_0x2189('0x65')](_0x1ddf15),{id:_0x206fe2,part:_0x27eb06}=ot(_0x1ddf15);if(_0x59cc69&&!_0x59cc69[_0x2189('0x1f')])return null;if(_0x2fbb50['ignoreResolvedComments']){const _0xfdddda=_0x11c903[_0x2189('0xa')](_0x206fe2);if(_0xfdddda&&_0xfdddda[_0x2189('0x15')])return null;}return{'group':_0x2189('0x51'),'name':_0x27eb06?_0x206fe2+':'+_0x27eb06:_0x206fe2};}}),_0x1f728['conversion']['for'](_0x2189('0x2c'))[_0x2189('0x4c')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2c2236,{writer:_0x1222f3})=>_0x1222f3['createElement'](_0x2189('0x42'),{'data-name':_0x2189('0x3b')+_0x2c2236['getAttribute']('id')})}),_0x1f728['conversion']['for'](_0x2189('0x2c'))[_0x2189('0x55')]({'view':_0x2189('0x51')});}[_0x2189('0x37')](){const _0x53dc54=this[_0x2189('0x7')],_0x5fb2c=_0x53dc54[_0x2189('0x5')][_0x2189('0x65')](_0x245908),_0x44bfd5=new Set(),_0x136968=new Set();_0x53dc54[_0x2189('0x21')][_0x2189('0xe')][_0x2189('0x9')](_0x230f6f=>{let _0x279555=!0x1;for(const {name:_0x193d6a,data:_0x1d6931}of _0x53dc54[_0x2189('0x21')][_0x2189('0xe')][_0x2189('0x23')]['getChangedMarkers']()){const {group:_0x193179,id:_0x3f145a}=ot(_0x193d6a);let _0x17c70c=_0x1d6931['newRange'];if(_0x2189('0x51')!==_0x193179||!_0x17c70c)continue;const _0x364621=_0x2189('0x5c')===_0x17c70c[_0x2189('0x13')][_0x2189('0x5a')];_0x364621||(_0x17c70c=et(_0x17c70c,_0x53dc54[_0x2189('0x21')]),!_0x17c70c||_0x17c70c[_0x2189('0x36')]||!_0x1d6931[_0x2189('0x39')]||_0x17c70c[_0x2189('0x63')](_0x1d6931[_0x2189('0x39')]))?_0x53dc54[_0x2189('0x21')][_0x2189('0x68')](_0x17c70c)&&!_0x364621?this[_0x2189('0x8')]?_0x44bfd5[_0x2189('0x50')](_0x193d6a):this[_0x2189('0x61')](_0x193d6a,_0x3f145a):(_0x136968[_0x2189('0x50')](_0x193d6a),_0x44bfd5[_0x2189('0x28')](_0x193d6a),_0x230f6f['removeMarker'](_0x193d6a),_0x279555=!0x0):(_0x230f6f[_0x2189('0x58')](_0x193d6a,{'range':_0x17c70c}),_0x279555=!0x0);}return _0x279555;}),this['on'](_0x2189('0x1d'),(_0x4b43f3,_0x1f1173,_0x331270)=>{if(!_0x331270&&_0x44bfd5[_0x2189('0x38')])for(const _0x4351f9 of _0x44bfd5){const {id:_0x28ccc0}=ot(_0x4351f9);_0x44bfd5['delete'](_0x4351f9),_0x53dc54[_0x2189('0x21')]['markers']['get'](_0x4351f9)&&this['_handleThreadMarker'](_0x4351f9,_0x28ccc0);}}),this[_0x2189('0x5b')](_0x53dc54[_0x2189('0x21')][_0x2189('0xe')],_0x2189('0x35'),(_0x7d442c,_0x586df9)=>{for(const {name:_0x46cb4d,data:{newRange:_0x2b0482}}of _0x53dc54['model'][_0x2189('0xe')][_0x2189('0x23')]['getChangedMarkers']()){const {group:_0x3a2a89,id:_0x3fdc30}=ot(_0x46cb4d);if('comment'!==_0x3a2a89)continue;const _0x4417d8=_0x5fb2c[_0x2189('0xa')](_0x3fdc30),_0x2275ac=this[_0x2189('0x3f')](_0x3fdc30);_0x4417d8&&(_0x4417d8[_0x2189('0x46')]||_0x53dc54[_0x2189('0x1a')][_0x2189('0x62')][_0x2189('0x4d')]('render',()=>{const _0x34dc05=_0x53dc54['plugins'][_0x2189('0x65')](_0x435ced),_0x20b1f4=_0x5fb2c['_threadToController'][_0x2189('0x65')](_0x4417d8)['view'];_0x34dc05['getByInnerView'](_0x20b1f4)[_0x2189('0x48')]();},{'priority':_0x2189('0x6d')}),_0x4417d8['_hasTargetInContent']=_0x2275ac||!!_0x2b0482),_0x2b0482||(_0x136968[_0x2189('0x50')](_0x46cb4d),_0x44bfd5[_0x2189('0x28')](_0x46cb4d));}if(_0x586df9[_0x2189('0x44')])for(const _0x877a7e of _0x136968){const {id:_0x11f168}=ot(_0x877a7e),_0x2e792a=_0x5fb2c[_0x2189('0xa')](_0x11f168),_0x39bc2a=this['hasMarkerForId'](_0x11f168);_0x44bfd5[_0x2189('0x28')](_0x877a7e),!_0x2e792a||_0x39bc2a||_0x2e792a['unlinkedAt']||_0x2e792a[_0x2189('0x59')](new Date());}_0x136968[_0x2189('0x66')]();});}['_getTargetForId'](_0x53e59d){const _0x22fbfb=this[_0x2189('0x7')],_0x252823=this['getAllMarkersForId'](_0x53e59d);return _0xb81199(_0x22fbfb[_0x2189('0x1a')],_0x252823);}['_getTextContext'](_0x1348db){const _0x5aa43a=this[_0x2189('0x47')](_0x1348db);let _0x1301e1='',_0x5dc133=!0x1;for(const _0x5d67a2 of _0x5aa43a){const _0x16a9f3=_0x5d67a2['getRange']();for(const _0xfda0d5 of Array[_0x2189('0x57')](_0x16a9f3['getItems']()))_0xfda0d5['is']('$textProxy')?(_0x1301e1&&_0x5dc133&&(_0x1301e1+='\x20',_0x5dc133=!0x1),_0x1301e1+=_0xfda0d5['data']):_0x5dc133=!0x0;_0x5dc133=!0x0;}return _0x1301e1[_0x2189('0x10')](0x0,0x96);}[_0x2189('0x3')](_0x5af644,_0x26d428){const _0x47e399=this[_0x2189('0x7')],_0x430753=_0x47e399[_0x2189('0x5')][_0x2189('0x65')](_0x245908);let _0xe2e397=_0x430753['getCommentThread'](_0x26d428);const _0x1fe4f9=_0x47e399['config'][_0x2189('0x65')](_0x2189('0x71')),_0xcc2d4b=_0x47e399[_0x2189('0x5')][_0x2189('0x65')](_0x54592a);if(_0xe2e397&&(_0xe2e397[_0x2189('0x43')]&&_0xe2e397[_0x2189('0x59')](null),_0xe2e397['isAttached']))return _0xe2e397;return!this[_0x2189('0x47')](_0x26d428)[0x0][_0x2189('0xc')]?_0x47e399[_0x2189('0x1a')][_0x2189('0x62')]['once'](_0x2189('0x26'),()=>{if(_0x430753[_0x2189('0xa')](_0x26d428))return;const _0x4408ce=_0x47e399[_0x2189('0x5')][_0x2189('0x65')](_0x435ced);_0xe2e397=_0x430753[_0x2189('0x54')]({'channelId':_0x1fe4f9,'threadId':_0x26d428,'target':()=>this['_getTargetForId'](_0x26d428),'context':{'type':_0x2189('0x2'),'value':this['_getTextContext'](_0x26d428)}});const _0x24a31e=_0x430753['_threadToController'][_0x2189('0x65')](_0xe2e397)[_0x2189('0x62')],_0x115b35=_0x4408ce['getByInnerView'](_0x24a31e);_0x115b35&&_0xcc2d4b[_0x2189('0x0')](_0x115b35);},{'priority':_0x2189('0x6d')}):_0x430753[_0x2189('0x34')]({'channelId':_0x1fe4f9,'threadId':_0x26d428})['then'](_0x3c4215=>{if('destroyed'!==_0x47e399[_0x2189('0x27')]){if(_0xe2e397=_0x3c4215,_0xe2e397&&!_0xe2e397['isAttached']){const _0x269ae2=_0xe2e397[_0x2189('0x2e')](()=>this[_0x2189('0x29')](_0x26d428));_0xcc2d4b['registerAnnotation'](_0x269ae2),_0xe2e397[_0x2189('0x15')]&&this[_0x2189('0x33')](_0x26d428);}else{if(!_0xe2e397){const _0x1a69d4=this[_0x2189('0x47')](_0x26d428);_0x47e399[_0x2189('0x21')]['change'](_0x486407=>{for(const _0x3d8f51 of _0x1a69d4)_0x486407[_0x2189('0x3d')](_0x3d8f51);});}}}}),_0xe2e397;}[_0x2189('0x61')](_0x51bf06,_0x7fa525){const _0x45896e=this[_0x2189('0x3')](_0x51bf06,_0x7fa525);_0x45896e&&!_0x45896e[_0x2189('0x14')]&&_0x45896e[_0x2189('0x1c')]({'type':'text','value':this['_getTextContext'](_0x7fa525)});}['_initAriaMarkerChangeAnnouncements'](){const _0x5d9f16=this['editor'];_0x3054af(_0x5d9f16[_0x2189('0x21')],({left:_0x685593,entered:_0x2404a5})=>{const _0x1bc90d=[];for(const _0x1d8962 of _0x685593)if(rt(_0x1d8962)){_0x1bc90d['push'](_0x21d138(_0x5d9f16[_0x2189('0x30')],_0x2189('0x16')));break;}for(const _0x547af9 of _0x2404a5)if(rt(_0x547af9)){_0x1bc90d[_0x2189('0x4e')](_0x21d138(_0x5d9f16['locale'],_0x2189('0x24')));break;}_0x1bc90d['length']&&_0x5d9f16['ui'][_0x2189('0xf')][_0x2189('0x73')](_0x2189('0xd'),_0x1bc90d[_0x2189('0x18')]('\x20'));});}}function tt(_0x18ff37,_0xb8f760){return _0xb8f760?_0x18ff37+':'+_0xb8f760:_0x18ff37;}function ot(_0xa5c93a){const _0x11dd8e=_0xa5c93a[_0x2189('0x17')](':');return{'group':_0x11dd8e[0x0],'id':_0x11dd8e[0x1],'part':_0x11dd8e[0x2]};}function et(_0x1e8a5b,_0x57ea7e){const _0x353ebc=_0x57ea7e[_0x2189('0x56')],_0x2602ba=_0x57ea7e[_0x2189('0x4a')](_0x1e8a5b['start']);for(const _0xb8a8f of _0x1e8a5b[_0x2189('0x49')]()){const {type:_0x29b059,item:_0x4fbe34,nextPosition:_0x2295f2}=_0xb8a8f;if(_0x2189('0x2')===_0x29b059||_0x353ebc[_0x2189('0x19')](_0x4fbe34)){const _0x46ecc0=_0x57ea7e[_0x2189('0x5f')](_0x4fbe34);_0x2602ba[_0x2189('0x36')]&&(_0x2602ba[_0x2189('0x4')]=_0x46ecc0),_0x2602ba[_0x2189('0x2d')]=_0x2295f2;}}return _0x2602ba;}function rt(_0x20d85d){return _0x2189('0x51')===ot(_0x20d85d['name'])[_0x2189('0x1')];}
23
+ const _0x3220=['setUnlinkedAt','_handleMarkerAddAndRemove','clear','$marker','ck-comment-marker','CommentsEditing','registerAnnotation','registerPostFixer','set','_handleThreadMarker','once','consumable','resolveCommentThread','comment','change','focus','_getTargetForId','_initAriaMarkerChangeAnnouncements','removeMarker','addMarker:','getItems','markerToHighlight','$graveyard','conversion','isThreadsLoadingPaused','get','from','consume','markerName','state','ck-comment-marker--active','length','_initializeMarkerConverters','_attachMarkerToThread','name','view','getByInnerView','for','editor','_threads','getCommentThread','render','managedUsingOperations','refreshVisibility','comment:','hasMarkerForId','end','_threadToController','elementToElement','ariaLiveAnnouncer','enqueueChange','substring','getCommentThreads','locale','_getTextContext','markers','upcast','document','reopenCommentThread','isAttached','text','editingDowncast','ready','low','scrollToThreadMarker','activeMarker','isResolved','newRange','pluginName','then','destroyed','_hasTargetInContent','group','commands','change:isThreadsLoadingPaused','join','openNewCommentThread','config','change:activeMarker','collaboration.channelId','getWalker','change:isReadOnly','attachTo','init','requires','differ','root','model','_detachCommentThread','getChangedMarkers','reconvertMarker','announce','delete','add','dataToMarker','start','push','listenTo','addCommentThread','dataDowncast','setContext','fetchCommentThread','destroy','ENTER_COMMENT_ANNOUNCEMENT','getAllMarkersForId','$textProxy','removeCommentThread','_reconvertMarkers','plugins','_attachResolvedThread','isCollapsed','data','isLocal','editing','hasCommentThread','unlinkedAt','context','startsWith','updateMarker','removeMarker:','createPositionBefore','ignoreResolvedComments','schema'];(function(_0x3fae13,_0x3220b7){const _0x58f3ba=function(_0x4f42f8){while(--_0x4f42f8){_0x3fae13['push'](_0x3fae13['shift']());}};_0x58f3ba(++_0x3220b7);}(_0x3220,0x16f));const _0x58f3=function(_0x3fae13,_0x3220b7){_0x3fae13=_0x3fae13-0x0;let _0x58f3ba=_0x3220[_0x3fae13];return _0x58f3ba;};import{Plugin as _0x45547f}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2bc1dd}from'ckeditor5/src/utils';import _0xe571f7 from'./commentsrepository';import _0x81426 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0xc933ce,getAllMarkersDomElementsSorted as _0x4c5c80}from'ckeditor5-collaboration/src/collaboration-core';import _0x58ac21 from'../annotations/editorannotations';import _0x34fb1b from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x41434c from'./integrations/importword';import _0x3bc1c5 from'../annotations/annotations';import{getTranslation as _0x1809b0}from'../utils/common-translations';export default class r extends _0x45547f{static get[_0x58f3('0x56')](){return[_0xe571f7,_0x58ac21,_0x34fb1b,_0x41434c];}static get[_0x58f3('0x46')](){return _0x58f3('0x7');}constructor(_0x7238e6){super(_0x7238e6),this[_0x58f3('0xa')](_0x58f3('0x1a'),!0x0),_0x7238e6[_0x58f3('0x71')]['once'](_0x58f3('0x40'),()=>this[_0x58f3('0x1a')]=!0x1),this[_0x58f3('0xa')]('activeMarker',null),this['on'](_0x58f3('0x50'),(_0xd50f98,_0x396190,_0x27d931,_0x17e535)=>{const _0x1f448c=_0x27d931?ot(_0x27d931)['id']:null;if(_0x7238e6[_0x58f3('0x59')][_0x58f3('0x10')](()=>{if(_0x1f448c){const _0x4958e7=this['getAllMarkersForId'](_0x1f448c);for(const _0x260ff5 of _0x4958e7)_0x7238e6[_0x58f3('0x73')][_0x58f3('0x5c')](_0x260ff5);}if(_0x17e535){const {id:_0x120146}=ot(_0x17e535),_0x57307f=this[_0x58f3('0x6a')](_0x120146);for(const _0x2ea2f4 of _0x57307f)_0x7238e6[_0x58f3('0x73')][_0x58f3('0x5c')](_0x2ea2f4);}}),_0x1f448c){const _0x343815=_0x7238e6['plugins'][_0x58f3('0x1b')](_0xe571f7)[_0x58f3('0x2a')](_0x1f448c);_0x343815&&_0x343815[_0x58f3('0x44')]&&this[_0x58f3('0x42')](_0x1f448c);}}),this[_0x58f3('0x13')]();}[_0x58f3('0x55')](){const _0x143ad=this[_0x58f3('0x28')],_0x241f72=_0x143ad['plugins']['get'](_0xe571f7),_0x61f124=_0x143ad['config']['get'](_0x58f3('0x51'));_0x143ad[_0x58f3('0x4b')]['add'](_0x58f3('0x64'),new _0x81426(_0x143ad)),this[_0x58f3('0x63')](_0x143ad,_0x58f3('0x53'),(_0x4b9c6f,_0x265dde,_0x4be374)=>{_0x241f72['switchReadOnly'](_0x4be374,_0x143ad[_0x58f3('0x4f')][_0x58f3('0x1b')](_0x58f3('0x51')));}),this[_0x58f3('0x63')](_0x241f72,tt(_0x58f3('0x64'),_0x61f124),(_0x54d789,{threadId:_0x327911})=>{const _0x5ce4fc=this['editor'][_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7)[_0x58f3('0x2a')](_0x327911);_0x5ce4fc&&_0x5ce4fc['archivedAt']&&this[_0x58f3('0x6f')](_0x327911);}),this[_0x58f3('0x63')](_0x241f72,tt(_0x58f3('0x6c'),_0x61f124),(_0x553d3f,{threadId:_0x1b3187})=>{_0x143ad[_0x58f3('0x59')][_0x58f3('0x34')]({'isUndoable':!0x1},_0x129b3e=>{const _0x1e31dd=this['getAllMarkersForId'](_0x1b3187);for(const _0x2ccaf9 of _0x1e31dd)_0x129b3e[_0x58f3('0x14')](_0x2ccaf9);});}),this[_0x58f3('0x63')](_0x241f72,tt(_0x58f3('0xe'),_0x61f124),(_0x30a193,{threadId:_0x1c9bea})=>{(this[_0x58f3('0x6f')](_0x1c9bea),this[_0x58f3('0x6d')](_0x1c9bea),this[_0x58f3('0x28')][_0x58f3('0x73')][_0x58f3('0x25')]['hasDomSelection'])&&(this[_0x58f3('0x28')][_0x58f3('0x6e')]['get'](_0xe571f7)[_0x58f3('0x2a')](_0x1c9bea)['unlinkedAt']||this['editor'][_0x58f3('0x73')][_0x58f3('0x25')][_0x58f3('0x11')]());},{'priority':_0x58f3('0x41')}),this[_0x58f3('0x63')](_0x241f72,tt(_0x58f3('0x3c'),_0x61f124),(_0x1ed6b0,{threadId:_0x16d8aa})=>{this[_0x58f3('0x6d')](_0x16d8aa);},{'priority':'low'}),this[_0x58f3('0x63')](_0x241f72,tt('addComment',_0x61f124),(_0x2c5f32,{threadId:_0x37010d,isFromAdapter:_0x3ce8ae})=>{const _0x2aba55=this['getAllMarkersForId'](_0x37010d);if(_0x3ce8ae||0x0==_0x2aba55[_0x58f3('0x21')]||!_0x241f72[_0x58f3('0x74')](_0x37010d))return;0x1===_0x241f72[_0x58f3('0x2a')](_0x37010d)[_0x58f3('0x21')]&&_0x143ad[_0x58f3('0x59')][_0x58f3('0x34')]({'isUndoable':!0x1},_0x216a23=>{for(const _0x18c09d of _0x2aba55)_0x216a23[_0x58f3('0x78')](_0x18c09d,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x58f3('0x41')}),this[_0x58f3('0x22')](),this[_0x58f3('0x3')]();}[_0x58f3('0x68')](){const _0xd47e50=this[_0x58f3('0x28')]['plugins'][_0x58f3('0x1b')](_0xe571f7),_0x528381=this[_0x58f3('0x28')][_0x58f3('0x4f')][_0x58f3('0x1b')]('collaboration.channelId');for(const _0x4508e8 of _0xd47e50[_0x58f3('0x36')]({'channelId':_0x528381}))_0xd47e50[_0x58f3('0x5a')](_0x4508e8['id']),_0xd47e50[_0x58f3('0x29')]['delete'](_0x4508e8['id']);super[_0x58f3('0x68')]();}[_0x58f3('0x2f')](_0x429b0d){return this[_0x58f3('0x6a')](_0x429b0d)[_0x58f3('0x21')]>0x0;}[_0x58f3('0x6a')](_0x6b160){const _0x3d447c=[];for(const _0x12ea16 of this[_0x58f3('0x28')][_0x58f3('0x59')][_0x58f3('0x39')])_0x12ea16[_0x58f3('0x24')][_0x58f3('0x77')]('comment:'+_0x6b160)&&_0x3d447c[_0x58f3('0x62')](_0x12ea16);return _0x3d447c;}['scrollToThreadMarker'](_0xf23f36){const _0x5f52ad=this[_0x58f3('0x12')](_0xf23f36);_0x5f52ad&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x58f3('0x43')])['id']===_0xf23f36&&_0x2bc1dd({'target':_0x5f52ad[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x58f3('0x6d')](_0x411b35){this[_0x58f3('0x28')][_0x58f3('0x59')][_0x58f3('0x10')](()=>{for(const _0x12b12e of this['getAllMarkersForId'](_0x411b35))this[_0x58f3('0x28')][_0x58f3('0x73')][_0x58f3('0x5c')](_0x12b12e);});}['_attachResolvedThread'](_0xfafb1f){const _0x597f72=this[_0x58f3('0x28')][_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7),_0x307907=this['editor']['plugins'][_0x58f3('0x1b')](_0x58ac21),_0x3eba25=_0x597f72['getCommentThread'](_0xfafb1f);if(!_0x3eba25[_0x58f3('0x3d')]){const _0x27818c=_0x3eba25[_0x58f3('0x54')](()=>this[_0x58f3('0x12')](_0x3eba25['id']));_0x307907[_0x58f3('0x8')](_0x27818c),_0x3eba25[_0x58f3('0x49')]=!0x1;}}[_0x58f3('0x22')](){const _0x5b8cb6=this['editor'];_0x5b8cb6[_0x58f3('0x19')][_0x58f3('0x27')](_0x58f3('0x3f'))[_0x58f3('0x17')]({'model':_0x58f3('0xf'),'view':(_0x411c35,_0x8b0743)=>{const {id:_0xa3a61c}=ot(_0x411c35['markerName']),_0xc5c3b2=_0x5b8cb6[_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7)[_0x58f3('0x2a')](_0xa3a61c),_0x56ccf9=this[_0x58f3('0x43')]&&ot(this['activeMarker'])['id']===_0xa3a61c;if(_0xc5c3b2&&_0xc5c3b2[_0x58f3('0x44')]&&!_0x56ccf9&&_0x411c35['item'])return _0x8b0743[_0x58f3('0xd')][_0x58f3('0x1d')](_0x411c35['item'],_0x58f3('0x15')+_0x411c35[_0x58f3('0x1e')]),_0x8b0743[_0x58f3('0xd')][_0x58f3('0x1d')](_0x411c35['item'],_0x58f3('0x79')+_0x411c35['markerName']),{'classes':[]};const _0x48244c=[_0x58f3('0x6')];return _0x56ccf9&&_0x48244c[_0x58f3('0x62')](_0x58f3('0x20')),{'classes':_0x48244c,'attributes':{'data-comment':_0xa3a61c}};}}),_0x5b8cb6[_0x58f3('0x19')][_0x58f3('0x27')](_0x58f3('0x65'))['markerToData']({'model':_0x58f3('0xf'),'view':(_0x365bfe,{options:_0x1c6a33})=>{const _0x23d736=_0x5b8cb6[_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7),_0x8ec214=_0x5b8cb6[_0x58f3('0x59')]['markers'][_0x58f3('0x1b')](_0x365bfe),{id:_0x18bad6,part:_0x1d0bb6}=ot(_0x365bfe);if(_0x8ec214&&!_0x8ec214['affectsData'])return null;if(_0x1c6a33[_0x58f3('0x0')]){const _0x3a62e1=_0x23d736[_0x58f3('0x2a')](_0x18bad6);if(_0x3a62e1&&_0x3a62e1[_0x58f3('0x44')])return null;}return{'group':_0x58f3('0xf'),'name':_0x1d0bb6?_0x18bad6+':'+_0x1d0bb6:_0x18bad6};}}),_0x5b8cb6[_0x58f3('0x19')][_0x58f3('0x27')]('upcast')[_0x58f3('0x32')]({'view':{'name':_0x58f3('0xf'),'attributes':{'id':/^\w/}},'model':(_0x2973f0,{writer:_0x27cda3})=>_0x27cda3['createElement'](_0x58f3('0x5'),{'data-name':_0x58f3('0x2e')+_0x2973f0['getAttribute']('id')})}),_0x5b8cb6[_0x58f3('0x19')][_0x58f3('0x27')](_0x58f3('0x3a'))[_0x58f3('0x60')]({'view':_0x58f3('0xf')});}[_0x58f3('0x3')](){const _0x4c4d75=this[_0x58f3('0x28')],_0x1a9895=_0x4c4d75[_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7),_0x3e16fe=new Set(),_0x3bbe05=new Set();_0x4c4d75['model']['document'][_0x58f3('0x9')](_0x4f7bae=>{let _0x172e31=!0x1;for(const {name:_0x48e751,data:_0x5b9787}of _0x4c4d75[_0x58f3('0x59')][_0x58f3('0x3b')][_0x58f3('0x57')][_0x58f3('0x5b')]()){const {group:_0x5693a2,id:_0x110215}=ot(_0x48e751);let _0x4e70ab=_0x5b9787[_0x58f3('0x45')];if(_0x58f3('0xf')!==_0x5693a2||!_0x4e70ab)continue;const _0x352130=_0x58f3('0x18')===_0x4e70ab[_0x58f3('0x58')]['rootName'];_0x352130||(_0x4e70ab=et(_0x4e70ab,_0x4c4d75[_0x58f3('0x59')]),!_0x4e70ab||_0x4e70ab[_0x58f3('0x70')]||!_0x5b9787[_0x58f3('0x45')]||_0x4e70ab['isEqual'](_0x5b9787['newRange']))?_0x4c4d75[_0x58f3('0x59')]['hasContent'](_0x4e70ab)&&!_0x352130?this['isThreadsLoadingPaused']?_0x3e16fe[_0x58f3('0x5f')](_0x48e751):this[_0x58f3('0xb')](_0x48e751,_0x110215):(_0x3bbe05[_0x58f3('0x5f')](_0x48e751),_0x3e16fe[_0x58f3('0x5e')](_0x48e751),_0x4f7bae['removeMarker'](_0x48e751),_0x172e31=!0x0):(_0x4f7bae[_0x58f3('0x78')](_0x48e751,{'range':_0x4e70ab}),_0x172e31=!0x0);}return _0x172e31;}),this['on'](_0x58f3('0x4c'),(_0x40148f,_0x3042aa,_0x35fde5)=>{if(!_0x35fde5&&_0x3e16fe['size'])for(const _0x5bfb36 of _0x3e16fe){const {id:_0x5a68a4}=ot(_0x5bfb36);_0x3e16fe['delete'](_0x5bfb36),_0x4c4d75[_0x58f3('0x59')]['markers'][_0x58f3('0x1b')](_0x5bfb36)&&this['_handleThreadMarker'](_0x5bfb36,_0x5a68a4);}}),this[_0x58f3('0x63')](_0x4c4d75[_0x58f3('0x59')]['document'],'change',(_0x71c3de,_0x8f6a65)=>{for(const {name:_0x329231,data:{newRange:_0x49ff89}}of _0x4c4d75['model'][_0x58f3('0x3b')][_0x58f3('0x57')][_0x58f3('0x5b')]()){const {group:_0x1b0ce5,id:_0x588fb7}=ot(_0x329231);if('comment'!==_0x1b0ce5)continue;const _0x43d5da=_0x1a9895[_0x58f3('0x2a')](_0x588fb7),_0x5c9fdb=this[_0x58f3('0x2f')](_0x588fb7);_0x43d5da&&(_0x43d5da[_0x58f3('0x49')]||_0x4c4d75[_0x58f3('0x73')][_0x58f3('0x25')][_0x58f3('0xc')](_0x58f3('0x2b'),()=>{const _0x5d1980=_0x4c4d75['plugins'][_0x58f3('0x1b')](_0x3bc1c5),_0x75d0fb=_0x1a9895[_0x58f3('0x31')]['get'](_0x43d5da)[_0x58f3('0x25')];_0x5d1980[_0x58f3('0x26')](_0x75d0fb)[_0x58f3('0x2d')]();},{'priority':_0x58f3('0x41')}),_0x43d5da['_hasTargetInContent']=_0x5c9fdb||!!_0x49ff89),_0x49ff89||(_0x3bbe05['add'](_0x329231),_0x3e16fe[_0x58f3('0x5e')](_0x329231));}if(_0x8f6a65[_0x58f3('0x72')])for(const _0x2c4afb of _0x3bbe05){const {id:_0x50dc8c}=ot(_0x2c4afb),_0x33246d=_0x1a9895[_0x58f3('0x2a')](_0x50dc8c),_0x26a7f2=this[_0x58f3('0x2f')](_0x50dc8c);_0x3e16fe[_0x58f3('0x5e')](_0x2c4afb),!_0x33246d||_0x26a7f2||_0x33246d[_0x58f3('0x75')]||_0x33246d[_0x58f3('0x2')](new Date());}_0x3bbe05[_0x58f3('0x4')]();});}[_0x58f3('0x12')](_0x1ac3d5){const _0x4b5f17=this[_0x58f3('0x28')],_0x384d4f=this[_0x58f3('0x6a')](_0x1ac3d5);return _0x4c5c80(_0x4b5f17[_0x58f3('0x73')],_0x384d4f);}[_0x58f3('0x38')](_0xfae6dc){const _0x3f8fe5=this[_0x58f3('0x6a')](_0xfae6dc);let _0x4006b6='',_0x26d680=!0x1;for(const _0x385be4 of _0x3f8fe5){const _0x5c9a02=_0x385be4['getRange']();for(const _0x27b05d of Array[_0x58f3('0x1c')](_0x5c9a02[_0x58f3('0x16')]()))_0x27b05d['is'](_0x58f3('0x6b'))?(_0x4006b6&&_0x26d680&&(_0x4006b6+='\x20',_0x26d680=!0x1),_0x4006b6+=_0x27b05d['data']):_0x26d680=!0x0;_0x26d680=!0x0;}return _0x4006b6[_0x58f3('0x35')](0x0,0x96);}[_0x58f3('0x23')](_0x18cdcd,_0x21c337){const _0x579502=this[_0x58f3('0x28')],_0x12f58b=_0x579502[_0x58f3('0x6e')][_0x58f3('0x1b')](_0xe571f7);let _0x1557fe=_0x12f58b[_0x58f3('0x2a')](_0x21c337);const _0x461f23=_0x579502[_0x58f3('0x4f')]['get'](_0x58f3('0x51')),_0x235308=_0x579502[_0x58f3('0x6e')][_0x58f3('0x1b')](_0x58ac21);if(_0x1557fe&&(_0x1557fe[_0x58f3('0x75')]&&_0x1557fe[_0x58f3('0x2')](null),_0x1557fe[_0x58f3('0x3d')]))return _0x1557fe;return!this[_0x58f3('0x6a')](_0x21c337)[0x0][_0x58f3('0x2c')]?_0x579502[_0x58f3('0x73')]['view'][_0x58f3('0xc')](_0x58f3('0x2b'),()=>{if(_0x12f58b['getCommentThread'](_0x21c337))return;const _0x1d39ef=_0x579502[_0x58f3('0x6e')][_0x58f3('0x1b')](_0x3bc1c5);_0x1557fe=_0x12f58b[_0x58f3('0x4e')]({'channelId':_0x461f23,'threadId':_0x21c337,'target':()=>this['_getTargetForId'](_0x21c337),'context':{'type':'text','value':this[_0x58f3('0x38')](_0x21c337)}});const _0x3d288a=_0x12f58b[_0x58f3('0x31')][_0x58f3('0x1b')](_0x1557fe)['view'],_0x4d8f1e=_0x1d39ef['getByInnerView'](_0x3d288a);_0x4d8f1e&&_0x235308[_0x58f3('0x8')](_0x4d8f1e);},{'priority':_0x58f3('0x41')}):_0x12f58b[_0x58f3('0x67')]({'channelId':_0x461f23,'threadId':_0x21c337})[_0x58f3('0x47')](_0x9ed454=>{if(_0x58f3('0x48')!==_0x579502[_0x58f3('0x1f')]){if(_0x1557fe=_0x9ed454,_0x1557fe&&!_0x1557fe[_0x58f3('0x3d')]){const _0x58a6c3=_0x1557fe[_0x58f3('0x54')](()=>this[_0x58f3('0x12')](_0x21c337));_0x235308['registerAnnotation'](_0x58a6c3),_0x1557fe[_0x58f3('0x44')]&&this['_reconvertMarkers'](_0x21c337);}else{if(!_0x1557fe){const _0x2bde2e=this['getAllMarkersForId'](_0x21c337);_0x579502['model'][_0x58f3('0x10')](_0x30d352=>{for(const _0x358721 of _0x2bde2e)_0x30d352[_0x58f3('0x14')](_0x358721);});}}}}),_0x1557fe;}['_handleThreadMarker'](_0x542691,_0x3879cf){const _0x524608=this['_attachMarkerToThread'](_0x542691,_0x3879cf);_0x524608&&!_0x524608[_0x58f3('0x76')]&&_0x524608[_0x58f3('0x66')]({'type':_0x58f3('0x3e'),'value':this['_getTextContext'](_0x3879cf)});}[_0x58f3('0x13')](){const _0x1fdccd=this[_0x58f3('0x28')];_0xc933ce(_0x1fdccd[_0x58f3('0x59')],({left:_0x27c52b,entered:_0x41886b})=>{const _0x3a2f5e=[];for(const _0x4de55a of _0x27c52b)if(rt(_0x4de55a)){_0x3a2f5e[_0x58f3('0x62')](_0x1809b0(_0x1fdccd[_0x58f3('0x37')],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x881948 of _0x41886b)if(rt(_0x881948)){_0x3a2f5e['push'](_0x1809b0(_0x1fdccd['locale'],_0x58f3('0x69')));break;}_0x3a2f5e[_0x58f3('0x21')]&&_0x1fdccd['ui'][_0x58f3('0x33')][_0x58f3('0x5d')]('comments',_0x3a2f5e[_0x58f3('0x4d')]('\x20'));});}}function tt(_0x3fb5ac,_0x2a1da6){return _0x2a1da6?_0x3fb5ac+':'+_0x2a1da6:_0x3fb5ac;}function ot(_0x54b196){const _0xed42e7=_0x54b196['split'](':');return{'group':_0xed42e7[0x0],'id':_0xed42e7[0x1],'part':_0xed42e7[0x2]};}function et(_0x33ac19,_0x26589f){const _0x37ef08=_0x26589f[_0x58f3('0x1')],_0x345cf7=_0x26589f['createRange'](_0x33ac19[_0x58f3('0x61')]);for(const _0x399e42 of _0x33ac19[_0x58f3('0x52')]()){const {type:_0x3c682f,item:_0x282317,nextPosition:_0x58026c}=_0x399e42;if(_0x58f3('0x3e')===_0x3c682f||_0x37ef08['isObject'](_0x282317)){const _0x497768=_0x26589f[_0x58f3('0x7a')](_0x282317);_0x345cf7[_0x58f3('0x70')]&&(_0x345cf7['start']=_0x497768),_0x345cf7[_0x58f3('0x30')]=_0x58026c;}}return _0x345cf7;}function rt(_0x58c9b1){return _0x58f3('0xf')===ot(_0x58c9b1[_0x58f3('0x24')])[_0x58f3('0x4a')];}
@@ -934,6 +934,7 @@ export type CommentThreadDataJSON = {
934
934
  unlinkedAt: Date | null;
935
935
  resolvedAt: Date | null;
936
936
  resolvedBy: string | null;
937
+ archivedAt: Date | null;
937
938
  comments: Array<CommentDataJSON>;
938
939
  attributes: Record<string, unknown>;
939
940
  };