@ckeditor/ckeditor5-comments 34.1.0 → 34.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.
- package/build/comments.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/lang/translations/es.po +2 -1
- package/lang/translations/fr.po +2 -1
- package/lang/translations/it.po +2 -1
- package/lang/translations/pt-br.po +2 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1549=['listenTo','add','_alignToTargetRect','length','targetRect','height','updateHeight','clear','delete','sidebar.container','get','container','define','element','_alignAfterItem','bottom','_destroySidebarItemView','change:targetRect','_getItemBefore','_annotationToSidebarItemView','sidebar-setcontainer-invalid-element','_alignBeforeItem','destroy','_createSidebarView','_getMaxAvailableTop','context','view','config','refresh','list','change:bottom','_updateLastItem','content','_spaceBetweenItems','_attachToContainer','unbind','top','_sidebarItemViewToAnnotation','set','locale','remove','bind','_lastItem','_activeAnnotation','pluginName','minHeight','setContainer','sidebar.preventScrollOutOfView','class','_getTargetTop','stopListening','isAnimationDisabled','_setItemTop','change:top','_annotations','addAnnotation','getIndex','last','change:_lastItem','_targetTop','sidebar-attachtocontainer-missing-container','max','rearrange','getSidebarItemView'];(function(_0xf10924,_0x15490d){const _0x2ce7dc=function(_0x4a41d6){while(--_0x4a41d6){_0xf10924['push'](_0xf10924['shift']());}};_0x2ce7dc(++_0x15490d);}(_0x1549,0xa3));const _0x2ce7=function(_0xf10924,_0x15490d){_0xf10924=_0xf10924-0x0;let _0x2ce7dc=_0x1549[_0xf10924];return _0x2ce7dc;};import{ContextPlugin as _0x5f0abb}from'ckeditor5/src/core';import _0x5c03fb from'./view/sidebarview';import _0x324977 from'./view/sidebaritemview';import{Rect as _0x46aa1b,CKEditorError as _0x15d584}from'ckeditor5/src/utils';import{isElement as _0x134f43,throttle as _0x2b543c}from'lodash-es';export default class b extends _0x5f0abb{static get[_0x2ce7('0x9')](){return'Sidebar';}constructor(_0x963f41){super(_0x963f41),this[_0x2ce7('0x3')](_0x2ce7('0x7')),this['view']=this[_0x2ce7('0x34')](),this['set'](_0x2ce7('0x28'),null),this[_0x2ce7('0x3e')]=0x19,this[_0x2ce7('0x2')]=new Map(),this[_0x2ce7('0x30')]=new Map(),this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x29')](_0x2ce7('0xc'),!0x1),this[_0x2ce7('0x13')]=null,this[_0x2ce7('0x8')]=null;}['init'](){const _0x4a787f=this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x27')](_0x2ce7('0x26'));_0x4a787f&&this[_0x2ce7('0xb')](_0x4a787f);}[_0x2ce7('0xb')](_0x332013){if(!_0x134f43(_0x332013))throw new _0x15d584(_0x2ce7('0x31'));this[_0x2ce7('0x28')]=_0x332013;}[_0x2ce7('0x3f')]({viewClass:_0x5c99f5='',spaceBetweenItems:_0x8a6ced=0x19}={}){if(!_0x134f43(this[_0x2ce7('0x28')]))throw new _0x15d584(_0x2ce7('0x19'),this);this[_0x2ce7('0x28')]['appendChild'](this[_0x2ce7('0x37')][_0x2ce7('0x2a')]),this[_0x2ce7('0x37')][_0x2ce7('0xd')]=_0x5c99f5,this[_0x2ce7('0x3e')]=_0x8a6ced;}[_0x2ce7('0x1b')]({removedAnnotation:_0x534d5d,previousAnnotation:_0x440480,nextAnnotation:_0x2d043d}){const _0x3433aa=this['getSidebarItemView'](_0x534d5d);this[_0x2ce7('0x37')]['list'][_0x2ce7('0x5')](_0x3433aa),this['_destroySidebarItemView'](_0x534d5d),_0x440480&&this[_0x2ce7('0x1f')](this[_0x2ce7('0x1c')](_0x440480)),_0x2d043d&&this[_0x2ce7('0x1f')](this[_0x2ce7('0x1c')](_0x2d043d)),this[_0x2ce7('0x3c')]();}[_0x2ce7('0x39')]({blurredAnnotation:_0x5ccf69,activatedAnnotation:_0x57eae4,disableAnimationOnActivatedAnnotation:_0xbe22a}){if(this['_activeAnnotation']=_0x57eae4,_0x5ccf69){_0x5ccf69['isActive']=!0x1;const _0x1a4b90=this[_0x2ce7('0x1c')](_0x5ccf69);_0x1a4b90&&_0xbe22a&&(_0x1a4b90[_0x2ce7('0x10')]=!0x1);}if(_0x57eae4){const _0xcc8c1=this[_0x2ce7('0x1c')](_0x57eae4);_0xcc8c1&&(_0x57eae4['isActive']=!0x0,_0xbe22a&&(_0xcc8c1[_0x2ce7('0x10')]=!0x0,_0xcc8c1[_0x2ce7('0x1')]+=0x1),this['_alignToTargetRect'](_0xcc8c1));}}['_detachFromContainer'](_0x5d8411){this[_0x2ce7('0xf')](),this['view'][_0x2ce7('0x2a')][_0x2ce7('0x5')]();for(const _0x4431af of _0x5d8411)this[_0x2ce7('0x2d')](_0x4431af);this[_0x2ce7('0x37')][_0x2ce7('0x3a')][_0x2ce7('0x24')](),this['view'][_0x2ce7('0xd')]='',this[_0x2ce7('0x7')]=null;}[_0x2ce7('0x14')](_0x370146,_0x7a244){_0x7a244||(_0x7a244=_0x370146[_0x2ce7('0x37')]);const _0xfb5705=new _0x324977(this[_0x2ce7('0x36')][_0x2ce7('0x4')]);this[_0x2ce7('0x2')][_0x2ce7('0x3')](_0xfb5705,_0x370146),this['_annotationToSidebarItemView'][_0x2ce7('0x3')](_0x370146,_0xfb5705),_0xfb5705[_0x2ce7('0x3d')][_0x2ce7('0x1e')](_0x7a244),this['_alignToTargetRect'](_0xfb5705),this[_0x2ce7('0x1d')](_0x370146[_0x2ce7('0x37')],_0x2ce7('0x2e'),()=>{const _0x3f7ffe=this['_getTargetTop'](_0xfb5705);_0xfb5705[_0x2ce7('0x18')]!=_0x3f7ffe&&(_0xfb5705['_targetTop']=_0x3f7ffe,this['_setItemTop'](_0xfb5705,_0x3f7ffe));}),this[_0x2ce7('0x1d')](_0xfb5705,_0x2ce7('0x12'),_0x2b543c(()=>{if(!_0xfb5705[_0x2ce7('0x3d')][_0x2ce7('0x20')])return;const _0x2a314c=this[_0x2ce7('0x2f')](_0xfb5705);if(!_0x2a314c)return;const _0x267712=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x2a314c),_0x1df41b=this[_0x2ce7('0x8')];_0x1df41b&&_0x1df41b===_0x267712?this[_0x2ce7('0x2b')](_0x2a314c,_0xfb5705):this[_0x2ce7('0x32')](_0xfb5705,_0x2a314c);},0xa,{'leading':!0x1})),this[_0x2ce7('0x1d')](_0xfb5705,_0x2ce7('0x3b'),_0x2b543c(()=>{if(!_0xfb5705[_0x2ce7('0x3d')][_0x2ce7('0x20')])return;const _0x18f899=this['_getItemAfter'](_0xfb5705);if(!_0x18f899)return;const _0xccf227=this['_sidebarItemViewToAnnotation'][_0x2ce7('0x27')](_0x18f899),_0x24bd13=this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x27')](_0x2ce7('0xc')),_0x3e41f5=this[_0x2ce7('0x8')];_0x3e41f5&&_0x3e41f5===_0xccf227&&_0x24bd13?(this[_0x2ce7('0x32')](_0x18f899,_0xfb5705),this['_alignAfterItem'](_0xfb5705,_0x18f899)):_0x3e41f5&&_0x3e41f5===_0xccf227?this[_0x2ce7('0x32')](_0x18f899,_0xfb5705):this[_0x2ce7('0x2b')](_0xfb5705,_0x18f899);},0xa,{'leading':!0x1}));const _0x2a990d=this[_0x2ce7('0x2f')](_0xfb5705);if(_0x2a990d)this['_alignAfterItem'](_0x2a990d,_0xfb5705)||this['_alignToTargetRect'](_0xfb5705);else this['_alignToTargetRect'](_0xfb5705);return this[_0x2ce7('0x3c')](),this['view']['list']['add'](_0xfb5705),_0xfb5705;}['getSidebarItemView'](_0x1f0817){return this[_0x2ce7('0x30')][_0x2ce7('0x27')](_0x1f0817);}['destroy'](){this[_0x2ce7('0x37')][_0x2ce7('0x33')]();}[_0x2ce7('0x2d')](_0x110673){const _0x536429=this[_0x2ce7('0x1c')](_0x110673);this['stopListening'](_0x536429),this[_0x2ce7('0xf')](_0x110673['view']),_0x536429[_0x2ce7('0x33')](),this['_annotationToSidebarItemView'][_0x2ce7('0x25')](_0x110673),this[_0x2ce7('0x2')][_0x2ce7('0x25')](_0x536429);}[_0x2ce7('0x34')](){const _0x461ad6=new _0x5c03fb(this['context'][_0x2ce7('0x4')]);return _0x461ad6['render'](),this['on'](_0x2ce7('0x17'),(_0x40df4d,_0x5a82ff,_0x4ee22a,_0x3c9b56)=>{_0x3c9b56&&_0x461ad6[_0x2ce7('0x0')]('minHeight'),_0x4ee22a?_0x461ad6[_0x2ce7('0x6')]('minHeight')['to'](_0x4ee22a,_0x2ce7('0x2c')):_0x461ad6[_0x2ce7('0xa')]=null;}),_0x461ad6;}[_0x2ce7('0x3c')](){this[_0x2ce7('0x7')]=this['getSidebarItemView'](this[_0x2ce7('0x13')][_0x2ce7('0x16')]);}[_0x2ce7('0x2f')](_0x28d65b){const _0x14711e=this['_sidebarItemViewToAnnotation']['get'](_0x28d65b),_0x54910b=this[_0x2ce7('0x13')][_0x2ce7('0x27')](this[_0x2ce7('0x13')][_0x2ce7('0x15')](_0x14711e)-0x1);return _0x54910b&&this[_0x2ce7('0x1c')](_0x54910b);}['_getItemAfter'](_0x43db57){const _0x521a95=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x43db57),_0x249c6f=this['_annotations'][_0x2ce7('0x27')](this['_annotations'][_0x2ce7('0x15')](_0x521a95)+0x1);return _0x249c6f&&this['getSidebarItemView'](_0x249c6f);}[_0x2ce7('0x32')](_0x385dc7,_0x23e9e8){_0x385dc7[_0x2ce7('0x23')]();const _0x38f454=H(_0x23e9e8['bottom']+this[_0x2ce7('0x3e')],_0x385dc7[_0x2ce7('0x1')]);return!!_0x38f454&&(this[_0x2ce7('0x11')](_0x23e9e8,_0x23e9e8[_0x2ce7('0x1')]-_0x38f454),!0x0);}[_0x2ce7('0x2b')](_0x5550ff,_0x2935c3){_0x5550ff['updateHeight']();const _0x55a8d3=H(_0x5550ff[_0x2ce7('0x2c')]+this[_0x2ce7('0x3e')],_0x2935c3['top']);return!!_0x55a8d3&&(this[_0x2ce7('0x11')](_0x2935c3,_0x2935c3[_0x2ce7('0x1')]+_0x55a8d3,!0x1),!0x0);}[_0x2ce7('0x1f')](_0x35c0db){const _0x54cac4=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x35c0db);if(!_0x54cac4||!_0x54cac4['target'])return;const _0x3e9c17=this[_0x2ce7('0xe')](_0x35c0db);this[_0x2ce7('0x11')](_0x35c0db,_0x3e9c17);}[_0x2ce7('0xe')](_0x4581c2){const _0x644612=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x4581c2);if(null===_0x644612[_0x2ce7('0x21')])return 0x0;if(_0x644612['target']instanceof _0x46aa1b)return _0x644612[_0x2ce7('0x21')][_0x2ce7('0x1')];{const _0x3d3d94=new _0x46aa1b(this['view'][_0x2ce7('0x2a')])[_0x2ce7('0x1')];return _0x644612['targetRect']['top']-_0x3d3d94;}}[_0x2ce7('0x11')](_0x758b79,_0x41a26f,_0x1c5293=this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x27')]('sidebar.preventScrollOutOfView')){_0x1c5293&&(_0x41a26f=Math['max'](_0x41a26f,this[_0x2ce7('0x35')](_0x758b79))),_0x758b79['top']=_0x41a26f;}[_0x2ce7('0x35')](_0x5d7832){let _0x2ef42c=this[_0x2ce7('0x2f')](_0x5d7832),_0xe8676f=0x0;for(;_0x2ef42c;)_0x2ef42c[_0x2ce7('0x23')](),_0xe8676f+=this['_spaceBetweenItems']+_0x2ef42c[_0x2ce7('0x22')],_0x2ef42c=this[_0x2ce7('0x2f')](_0x2ef42c);return _0xe8676f;}}function H(_0x1eff2f,_0x55b945){return Math[_0x2ce7('0x1a')](_0x1eff2f-_0x55b945,0x0);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1579=['annotationType','number','isDirty','counterView','children','set','extendTemplate','ck-annotation-counter__badge--','bindTemplate','_badge','ck-annotation-counter__badge','span','...','bind'];(function(_0x5ece19,_0x157916){const _0x1becfa=function(_0x3ace4b){while(--_0x3ace4b){_0x5ece19['push'](_0x5ece19['shift']());}};_0x1becfa(++_0x157916);}(_0x1579,0x1f2));const _0x1bec=function(_0x5ece19,_0x157916){_0x5ece19=_0x5ece19-0x0;let _0x1becfa=_0x1579[_0x5ece19];return _0x1becfa;};import{ButtonView as _0x10f1d5,View as _0x273e2a}from'ckeditor5/src/ui';import _0x5c9623 from'../../../theme/icons/add-comment.svg';export default class B extends _0x10f1d5{constructor(_0x292811){super(_0x292811);const _0x52c117=this[_0x1bec('0x0')];this[_0x1bec('0xb')]('isDirty',!0x1),this[_0x1bec('0xb')](_0x1bec('0x7'),0x0),this[_0x1bec('0x5')]('_badge')['to'](this,_0x1bec('0x8'),this,_0x1bec('0x7'),(_0x3f9321,_0x38d900)=>_0x3f9321?_0x1bec('0x4'):_0x38d900),this[_0x1bec('0xb')](_0x1bec('0x6'),''),this['icon']=_0x5c9623,this[_0x1bec('0xc')]({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x273e2a(),this[_0x1bec('0x9')]['setTemplate']({'tag':_0x1bec('0x3'),'attributes':{'class':[_0x1bec('0x2'),_0x52c117['to'](_0x1bec('0x6'),_0x4663c7=>_0x1bec('0xd')+_0x4663c7),_0x52c117['if'](_0x1bec('0x8'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x52c117['to'](_0x1bec('0x1'))}]}),this[_0x1bec('0xa')]['add'](this[_0x1bec('0x9')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5402=['div','bindTemplate','focus','destroy','isDirty','ck-rounded-corners','ck-annotation-wrapper','focusTracker','height','targetRect','clear','clientHeight','add','content','_updateHeight','render','_mutationObserver','isActive','listenTo','type','createCollection','set','keystrokes','element','Esc'];(function(_0x29347d,_0x540265){const _0x210c79=function(_0x43dbc0){while(--_0x43dbc0){_0x29347d['push'](_0x29347d['shift']());}};_0x210c79(++_0x540265);}(_0x5402,0x111));const _0x210c=function(_0x29347d,_0x540265){_0x29347d=_0x29347d-0x0;let _0x210c79=_0x5402[_0x29347d];return _0x210c79;};import{View as _0x3a30dd}from'ckeditor5/src/ui';import{FocusTracker as _0x168e0a,KeystrokeHandler as _0x47bc39,uid as _0x3cfc80}from'ckeditor5/src/utils';import _0x421512 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x3a30dd{constructor(_0x344ca1,_0x72919f){super(_0x344ca1),this['id']=_0x3cfc80(),this[_0x210c('0x9')]=new _0x168e0a(),this[_0x210c('0x18')]=new _0x47bc39(),this[_0x210c('0x18')][_0x210c('0x17')](_0x210c('0x1'),(_0x449607,_0x51101a)=>this['fire'](_0x210c('0x1'),_0x51101a)),this['set'](_0x210c('0xb'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x210c('0xa'),0x0),this[_0x210c('0x17')](_0x210c('0x13'),!0x1),this['set'](_0x210c('0x6'),!0x1),this[_0x210c('0x17')]('length',0x0),this[_0x210c('0x17')](_0x210c('0x15'),''),this['_mutationObserver']=_0x421512(()=>this[_0x210c('0x10')]()),this[_0x210c('0xf')]=this[_0x210c('0x16')](),this[_0x210c('0xf')][_0x210c('0xe')](_0x72919f),this['mainView']=_0x72919f;const _0x260897=this[_0x210c('0x3')];this['setTemplate']({'tag':_0x210c('0x2'),'attributes':{'class':['ck',_0x210c('0x8'),_0x210c('0x7'),_0x260897['if'](_0x210c('0x13'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x210c('0xf')]});}[_0x210c('0x11')](){super[_0x210c('0x11')](),this['focusTracker'][_0x210c('0xe')](this[_0x210c('0x0')]),this['keystrokes'][_0x210c('0x14')](this['element']),this['_mutationObserver']['attach'](this[_0x210c('0x0')]);}[_0x210c('0x5')](){this[_0x210c('0xf')][_0x210c('0xc')](),this[_0x210c('0x18')][_0x210c('0x5')](),this['focusTracker'][_0x210c('0x5')](),this[_0x210c('0x12')]['detach'](),super[_0x210c('0x5')]();}[_0x210c('0x4')](){this['element'][_0x210c('0x4')]();}[_0x210c('0x10')](){const _0x5be1ad=this[_0x210c('0x0')][_0x210c('0xd')];_0x5be1ad&&(this[_0x210c('0xa')]=_0x5be1ad);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5cbc=['setTemplate','ck-sidebar-item--no-animation','ck-sidebar-item','isAnimationDisabled','div','bind','render','destroy','set','detach','_mutationObserver','height','_targetTop','bottom','element','clear','top','updateHeight','createCollection','content'];(function(_0x142c3c,_0x5cbc64){const _0x300634=function(_0x45dcbd){while(--_0x45dcbd){_0x142c3c['push'](_0x142c3c['shift']());}};_0x300634(++_0x5cbc64);}(_0x5cbc,0xb8));const _0x3006=function(_0x142c3c,_0x5cbc64){_0x142c3c=_0x142c3c-0x0;let _0x300634=_0x5cbc[_0x142c3c];return _0x300634;};import{View as _0xfcbcee}from'ckeditor5/src/ui';import{toUnit as _0x2f9657}from'ckeditor5/src/utils';import _0x1d2041 from'../../utils/createmutationobserver';const ft=_0x2f9657('px');export default class C extends _0xfcbcee{constructor(_0x42f737){super(_0x42f737),this[_0x3006('0x4')]('top'),this['set'](_0x3006('0x7'),0x0),this[_0x3006('0x1')](_0x3006('0x9'))['to'](this,'top',this,'height',(_0x28f35c,_0x265990)=>(_0x28f35c||0x0)+_0x265990),this[_0x3006('0x4')](_0x3006('0x13'),!0x1),this['_mutationObserver']=_0x1d2041(()=>this[_0x3006('0xd')]()),this[_0x3006('0x8')]=null,this[_0x3006('0xf')]=this[_0x3006('0xe')]();const _0x3cac25=this['bindTemplate'];this[_0x3006('0x10')]({'tag':_0x3006('0x0'),'attributes':{'class':[_0x3006('0x12'),_0x3cac25['to'](_0x3006('0x13'),_0x43ef88=>_0x43ef88?_0x3006('0x11'):'')],'style':{'top':_0x3cac25['to'](_0x3006('0xc'),ft)}},'children':this[_0x3006('0xf')]});}['render'](){super[_0x3006('0x2')](),this['_mutationObserver']['attach'](this['element']);}[_0x3006('0xd')](){const _0x26c899=this[_0x3006('0xa')]['clientHeight'];_0x26c899&&(this['height']=_0x26c899);}[_0x3006('0x3')](){this['content'][_0x3006('0xb')](),this[_0x3006('0x6')][_0x3006('0x5')](),super[_0x3006('0x3')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ddf=['ck-reset','bindTemplate','list','createCollection','class','minHeight','ck-sidebar','set','div'];(function(_0x178d57,_0x3ddf2f){const _0x2f1b66=function(_0x4c8f1c){while(--_0x4c8f1c){_0x178d57['push'](_0x178d57['shift']());}};_0x2f1b66(++_0x3ddf2f);}(_0x3ddf,0xc7));const _0x2f1b=function(_0x178d57,_0x3ddf2f){_0x178d57=_0x178d57-0x0;let _0x2f1b66=_0x3ddf[_0x178d57];return _0x2f1b66;};import{View as _0x1f24f9}from'ckeditor5/src/ui';import{toUnit as _0x59b7ab}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x59b7ab('px');export default class T extends _0x1f24f9{constructor(_0x5ac5d2){super(_0x5ac5d2);const _0x375791=this[_0x2f1b('0x0')];this[_0x2f1b('0x6')](_0x2f1b('0x4'),0x0),this[_0x2f1b('0x6')](_0x2f1b('0x3'),''),this['list']=this[_0x2f1b('0x2')](),this['setTemplate']({'tag':_0x2f1b('0x7'),'attributes':{'class':['ck',_0x2f1b('0x5'),_0x2f1b('0x8'),_0x375791['to']('class')],'style':{'minHeight':_0x375791['to'](_0x2f1b('0x4'),_0x157d86=>_0x157d86?ft(_0x157d86+0xa):null)}},'children':this[_0x2f1b('0x1')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b13=['refresh','high','context','_throttledPositioningRefresh','attach','refreshPositioning','_attachToContainer','has','detach','get','add','_destroyEditorAnnotationsIntegration','init','activeAnnotation','stop','_integrateWithEditorAnnotations','annotations','focus','resize','Sidebar','EditorAnnotations','widesidebar-attach-already-attached','hasDomSelection','setActiveAnnotation','_editorAnnotations','isAttached','widesidebar-detach-not-attached','editors','from','addEventListener','wideSidebar','_annotations','removeEventListener','listenTo','updateTargetRect','cancel','stopListening','change:container','getOrderedSelectedAnnotations','set','plugins','container','uiUpdate','_detachFromContainer','remove','blur','register','requires','_activeAnnotation','rearrange','off','WideSidebar'];(function(_0x44ca2e,_0x5b130a){const _0x541c8e=function(_0x4e4cbc){while(--_0x4e4cbc){_0x44ca2e['push'](_0x44ca2e['shift']());}};_0x541c8e(++_0x5b130a);}(_0x5b13,0x185));const _0x541c=function(_0x44ca2e,_0x5b130a){_0x44ca2e=_0x44ca2e-0x0;let _0x541c8e=_0x5b13[_0x44ca2e];return _0x541c8e;};import{ContextPlugin as _0x4e5b96}from'ckeditor5/src/core';import _0x1ce71c from'./annotationsuis';import _0x56ff0d from'./sidebar';import{CKEditorError as _0x1f4264,Collection as _0x24c177}from'ckeditor5/src/utils';import{throttle as _0x220022}from'lodash-es';export default class i extends _0x4e5b96{static get[_0x541c('0x16')](){return[_0x56ff0d,_0x1ce71c];}static get['pluginName'](){return _0x541c('0x1a');}constructor(_0x22e277){super(_0x22e277),this[_0x541c('0x0')]=!0x1,this[_0x541c('0xe')]('activeAnnotation',null),this[_0x541c('0x2b')]=null,this[_0x541c('0x33')]=new _0x24c177(),this['_throttledPositioningRefresh']=_0x220022(()=>{this[_0x541c('0x2b')][_0x541c('0x20')]();},0x190,{'leading':!0x1});}[_0x541c('0x27')](){const _0x402404=this[_0x541c('0x1d')][_0x541c('0xf')]['get'](_0x1ce71c),_0x4b9d56=this['context'][_0x541c('0xf')][_0x541c('0x24')](_0x56ff0d);_0x402404[_0x541c('0x15')]('wideSidebar',this),_0x4b9d56[_0x541c('0x10')]&&_0x402404['switchTo'](_0x541c('0x5'));}[_0x541c('0x32')](_0x157ea4){if(_0x157ea4===this[_0x541c('0x28')])return;const _0x19b422=this[_0x541c('0x1d')][_0x541c('0xf')][_0x541c('0x24')](_0x56ff0d);_0x19b422[_0x541c('0x17')]=_0x157ea4;const _0xfcb62f=this[_0x541c('0x28')];this[_0x541c('0x28')]=_0x157ea4,_0x19b422[_0x541c('0x1b')]({'blurredAnnotation':_0xfcb62f,'activatedAnnotation':this[_0x541c('0x28')]});}[_0x541c('0x1f')](_0xe3c85c){this[_0x541c('0x2b')]=_0xe3c85c;const _0x22d402=this[_0x541c('0x1d')][_0x541c('0xf')][_0x541c('0x24')](_0x541c('0x2e'));if(_0x22d402[_0x541c('0x6')]=_0xe3c85c,this['isAttached'])throw new _0x1f4264(_0x541c('0x30'),this);this[_0x541c('0x0')]=!0x0,this[_0x541c('0x8')](_0x22d402,'set:container',()=>{this['detach'](),this[_0x541c('0x8')](_0x22d402,_0x541c('0xc'),_0x3de28c=>{_0x3de28c[_0x541c('0x19')](),this[_0x541c('0x1f')](_0xe3c85c);});}),_0x22d402[_0x541c('0x21')]({'viewClass':'ck-sidebar--wide'});const _0x45d379=_0x1bdaf2=>{_0x1bdaf2[_0x541c('0x9')](),_0x22d402['addAnnotation'](_0x1bdaf2);};for(const _0x23a860 of _0xe3c85c)_0x45d379(_0x23a860);this[_0x541c('0x8')](_0xe3c85c,'add',(_0x5aa494,_0x586b14)=>{_0x45d379(_0x586b14);}),this['listenTo'](_0xe3c85c,_0x541c('0x13'),(_0x6215f2,_0x598caf,_0x528857)=>{_0x22d402[_0x541c('0x18')]({'removedAnnotation':_0x598caf,'previousAnnotation':_0xe3c85c[_0x541c('0x24')](_0x528857-0x1),'nextAnnotation':_0xe3c85c['get'](_0x528857+0x1)}),_0x598caf===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this[_0x541c('0x8')](_0xe3c85c,_0x541c('0x2c'),(_0x2c4d76,_0x49074f)=>{this[_0x541c('0x32')](_0x49074f);}),this[_0x541c('0x8')](_0xe3c85c,_0x541c('0x14'),()=>{this[_0x541c('0x32')](null);});const _0x168d68=this[_0x541c('0x1d')]['editors']?this[_0x541c('0x1d')][_0x541c('0x2')]:new _0x24c177([this[_0x541c('0x1d')]]);for(const _0x2e0a53 of _0x168d68)this[_0x541c('0x2a')](_0x2e0a53);this[_0x541c('0x8')](_0x168d68,'add',(_0x377f4d,_0x4c77ac)=>{this[_0x541c('0x8')](_0x4c77ac,'ready',()=>{this[_0x541c('0x2a')](_0x4c77ac);});}),this['listenTo'](_0x168d68,'remove',(_0x37242d,_0x2829e4)=>{_0x2829e4[_0x541c('0xf')][_0x541c('0x22')]('EditorAnnotations')&&this[_0x541c('0x26')](_0x2829e4[_0x541c('0xf')][_0x541c('0x24')]('EditorAnnotations'));}),window[_0x541c('0x4')](_0x541c('0x2d'),this[_0x541c('0x1e')]),this[_0x541c('0x2b')][_0x541c('0x20')]();}[_0x541c('0x23')](){if(!this[_0x541c('0x0')])throw new _0x1f4264(_0x541c('0x1'),this);this[_0x541c('0x32')](null);const _0x43bc74=this[_0x541c('0x1d')][_0x541c('0xf')][_0x541c('0x24')](_0x56ff0d);_0x43bc74[_0x541c('0x12')](this[_0x541c('0x2b')]),this[_0x541c('0xb')](_0x43bc74),this[_0x541c('0xb')](this[_0x541c('0x2b')]),this[_0x541c('0xb')](this[_0x541c('0x1d')][_0x541c('0x2')]);for(const _0xf412c4 of Array[_0x541c('0x3')](this[_0x541c('0x33')]))this['_destroyEditorAnnotationsIntegration'](_0xf412c4);window[_0x541c('0x7')]('resize',this[_0x541c('0x1e')]),this[_0x541c('0x1e')][_0x541c('0xa')](),this[_0x541c('0x28')]=null,this['isAttached']=!0x1,this[_0x541c('0x2b')]=null;}['destroy'](){this[_0x541c('0x0')]&&this['detach']();}[_0x541c('0x2a')](_0x3477b1){const _0x3f4a1f=_0x3477b1[_0x541c('0xf')]['get'](_0x541c('0x2f'));if(!_0x3f4a1f)return;const _0x102e56=()=>{const _0x21354c=_0x3f4a1f[_0x541c('0xd')]({'annotations':this['annotations'],'activeAnnotation':this[_0x541c('0x28')]});this[_0x541c('0x32')](_0x21354c[0x0]||null);};this['listenTo'](_0x3f4a1f,_0x541c('0x1b'),_0x102e56),this['listenTo'](_0x3f4a1f,_0x541c('0x14'),(_0x3d8b95,{isAnnotationTracked:_0x22549a})=>{this[_0x541c('0x28')]&&_0x22549a(this['activeAnnotation'])&&this[_0x541c('0x32')](null);}),this[_0x541c('0x8')](_0x3f4a1f,_0x541c('0x11'),()=>{this[_0x541c('0x2b')][_0x541c('0x20')]();}),this['listenTo'](this[_0x541c('0x2b')],'blur',_0x4be8a2=>{_0x3f4a1f[_0x541c('0x31')]()&&(_0x102e56(),_0x4be8a2[_0x541c('0x29')]());},{'priority':_0x541c('0x1c')}),this[_0x541c('0x33')][_0x541c('0x25')](_0x3f4a1f);}[_0x541c('0x26')](_0x319224){_0x319224&&(this[_0x541c('0xb')](_0x319224),this[_0x541c('0x33')][_0x541c('0x13')](_0x319224));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5408=['element','_hasContent','selection','editor','start','model','push','execute','document','createRange','_itemIsContent','end','tableCell','backward','getItems','addMarker','isObject','substr','getLastMatchingPosition','item','_trimToContent','comment:','isEnabled','getRanges'];(function(_0x2ef77f,_0x5408f9){const _0x39adf5=function(_0x58fd3b){while(--_0x58fd3b){_0x2ef77f['push'](_0x2ef77f['shift']());}};_0x39adf5(++_0x5408f9);}(_0x5408,0x129));const _0x39ad=function(_0x2ef77f,_0x5408f9){_0x2ef77f=_0x2ef77f-0x0;let _0x39adf5=_0x5408[_0x2ef77f];return _0x39adf5;};import{Command as _0x88ce03}from'ckeditor5/src/core';import{uid as _0x54531e}from'ckeditor5/src/utils';export default class j extends _0x88ce03{['refresh'](){const _0x38efc4=this[_0x39ad('0x12')][_0x39ad('0x14')][_0x39ad('0x17')][_0x39ad('0x11')];for(const _0x2d232b of _0x38efc4[_0x39ad('0xe')]())if(this['_hasContent'](_0x2d232b))return void(this[_0x39ad('0xd')]=!0x0);this[_0x39ad('0xd')]=!0x1;}[_0x39ad('0x16')]({threadId:_0x5538a0=_0x54531e()}={}){const _0x31b0a8=this[_0x39ad('0x12')][_0x39ad('0x14')],_0x527499=[];for(const _0x444677 of _0x31b0a8['document'][_0x39ad('0x11')][_0x39ad('0xe')]())this[_0x39ad('0x10')](_0x444677)&&_0x527499[_0x39ad('0x15')](this['_trimToContent'](_0x444677));_0x31b0a8['change'](_0x56804b=>{for(const _0x3859cd of _0x527499){const _0x222eae=_0x54531e()[_0x39ad('0x8')](0x1,0x5),_0x207e17=_0x39ad('0xc')+_0x5538a0+':'+_0x222eae;_0x56804b[_0x39ad('0x6')](_0x207e17,{'range':_0x3859cd,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x39ad('0x10')](_0x38718a){for(const _0x1719a2 of _0x38718a[_0x39ad('0x5')]())if(this[_0x39ad('0x1')](_0x1719a2))return!0x0;return!0x1;}[_0x39ad('0x1')](_0x190d63){return _0x190d63['is']('textProxy')||this[_0x39ad('0x12')][_0x39ad('0x14')]['schema'][_0x39ad('0x7')](_0x190d63)&&!_0x190d63['is'](_0x39ad('0xf'),_0x39ad('0x3'));}[_0x39ad('0xb')](_0x387efb){const _0x2aac4f=_0x4939eb=>!this[_0x39ad('0x1')](_0x4939eb[_0x39ad('0xa')]),_0x5be5e6=_0x387efb[_0x39ad('0x13')][_0x39ad('0x9')](_0x2aac4f),_0x194bcd=_0x387efb[_0x39ad('0x2')][_0x39ad('0x9')](_0x2aac4f,{'direction':_0x39ad('0x4')});return this['editor'][_0x39ad('0x14')][_0x39ad('0x0')](_0x5be5e6,_0x194bcd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x8627=['left','view','registerPostFixer','markers','split','createElement','length','document','ck-comment-marker','destroyed','_attachedThreads','affectsData','comment:','activeMarker','isObject','updateMarker','model','rootName','destroy','fetchCommentThread','state','isThreadsLoadingPaused','pluginName','getAllMarkersForId','$graveyard','start','elementToElement','from','editor','has','CommentsRepository','dataToMarker','ck-comment-marker--active','change','ready','markerName','switchReadOnly','requires','editingDowncast','_initializeMarkerConverters','_attachThreadToMarker','hasMarkerForId','createRange','end','config','then','listenTo','upcast','set','add','change:isReadOnly','delete','newRange','_threads','push','once','name','_handleMarkerAddAndRemove','addCommentThread','managedUsingOperations','isCollapsed','editing','removeMarker','getMarkersGroup','root','createPositionBefore','data','isEqual','markerToData','getWalker','_detachCommentThread','hasContent','get','conversion','top','addComment','high','low','getCommentThread','plugins','for','getAttribute','markerToHighlight','hasCommentThread','change:activeMarker','text','getCommentThreads','openNewCommentThread','reconvertMarker','getChangedMarkers','collaboration.channelId','stop','CommentsEditing','comment'];(function(_0x254eab,_0x862765){const _0x3cb2ef=function(_0x21210e){while(--_0x21210e){_0x254eab['push'](_0x254eab['shift']());}};_0x3cb2ef(++_0x862765);}(_0x8627,0x100));const _0x3cb2=function(_0x254eab,_0x862765){_0x254eab=_0x254eab-0x0;let _0x3cb2ef=_0x8627[_0x254eab];return _0x3cb2ef;};import{Plugin as _0x34e8d3}from'ckeditor5/src/core';import{Rect as _0x2d58dc}from'ckeditor5/src/utils';import _0x37fc1e from'./commentsrepository';import _0x32519e from'./addcommentthreadcommand';import{getMarkerDomElement as _0x589f3f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f0adf from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x34e8d3{static get[_0x3cb2('0x3f')](){return[_0x37fc1e,_0x2f0adf];}static get[_0x3cb2('0x30')](){return _0x3cb2('0x18');}constructor(_0x2f378b){super(_0x2f378b),this[_0x3cb2('0x4a')](_0x3cb2('0x2f'),!0x0),_0x2f378b[_0x3cb2('0x5c')][_0x3cb2('0x51')](_0x3cb2('0x3c'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x3cb2('0x27'),null),this['on'](_0x3cb2('0x10'),(_0x129487,_0x38de5c,_0x160043,_0x31f6a3)=>{_0x2f378b[_0x3cb2('0x2a')][_0x3cb2('0x3b')](()=>{if(_0x160043){const {id:_0x5ca7c4}=k(_0x160043),_0x56688b=this['getAllMarkersForId'](_0x5ca7c4);for(const _0x2a3728 of _0x56688b)_0x2f378b['editing'][_0x3cb2('0x14')](_0x2a3728);}if(_0x31f6a3){const {id:_0x3919f7}=k(_0x31f6a3),_0x3d3b1d=this[_0x3cb2('0x31')](_0x3919f7);for(const _0x3a531b of _0x3d3b1d)_0x2f378b[_0x3cb2('0x57')][_0x3cb2('0x14')](_0x3a531b);}});}),this[_0x3cb2('0x24')]=new Set();}['init'](){const _0x4bcca5=this[_0x3cb2('0x36')],_0x135844=_0x4bcca5[_0x3cb2('0xb')][_0x3cb2('0x4')](_0x3cb2('0x38')),_0x37b1e9=_0x4bcca5[_0x3cb2('0x46')][_0x3cb2('0x4')](_0x3cb2('0x16'));_0x4bcca5['commands'][_0x3cb2('0x4b')](_0x3cb2('0x54'),new _0x32519e(_0x4bcca5)),this[_0x3cb2('0x48')](_0x4bcca5,_0x3cb2('0x4c'),(_0x27a3c6,_0x4e938c,_0x37f969)=>{_0x135844[_0x3cb2('0x3e')](_0x37f969,_0x4bcca5['config'][_0x3cb2('0x4')]('collaboration.channelId'));}),this[_0x3cb2('0x48')](_0x135844,g('removeCommentThread',_0x37b1e9),(_0x4533e0,{threadId:_0x296609})=>{_0x4bcca5[_0x3cb2('0x2a')][_0x3cb2('0x3b')](_0x23f5e3=>{for(const _0x56f0b6 of this['getAllMarkersForId'](_0x296609))_0x23f5e3['removeMarker'](_0x56f0b6);});const _0x8bf635=_0x135844[_0x3cb2('0xa')](_0x296609);_0x135844[_0x3cb2('0xf')](_0x296609)&&!_0x8bf635[_0x3cb2('0x20')]||_0x4533e0[_0x3cb2('0x17')]();},{'priority':_0x3cb2('0x8')}),this[_0x3cb2('0x48')](_0x135844,g(_0x3cb2('0x7'),_0x37b1e9),(_0x438346,{threadId:_0xe3663d,isFromAdapter:_0x206faf})=>{const _0x4b6a89=this[_0x3cb2('0x31')](_0xe3663d);if(_0x206faf||0x0==_0x4b6a89[_0x3cb2('0x20')]||!_0x135844[_0x3cb2('0xf')](_0xe3663d))return;0x1===_0x135844['getCommentThread'](_0xe3663d)[_0x3cb2('0x20')]&&_0x4bcca5[_0x3cb2('0x2a')][_0x3cb2('0x3b')](_0x263c2e=>{for(const _0x52c6da of _0x4b6a89)_0x263c2e[_0x3cb2('0x29')](_0x52c6da,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}[_0x3cb2('0x2c')](){const _0x2ee4aa=this[_0x3cb2('0x36')]['plugins'][_0x3cb2('0x4')](_0x3cb2('0x38')),_0x334b9a=this['editor'][_0x3cb2('0x46')][_0x3cb2('0x4')](_0x3cb2('0x16'));for(const _0x4b9ab3 of _0x2ee4aa[_0x3cb2('0x12')]({'channelId':_0x334b9a}))_0x2ee4aa[_0x3cb2('0x2')](_0x4b9ab3['id']),_0x2ee4aa[_0x3cb2('0x4f')]['delete'](_0x4b9ab3['id']);super[_0x3cb2('0x2c')]();}[_0x3cb2('0x43')](_0x45a99f){return this[_0x3cb2('0x31')](_0x45a99f)['length']>0x0;}[_0x3cb2('0x31')](_0x586c5a){const _0x109f9f=this[_0x3cb2('0x36')][_0x3cb2('0x2a')][_0x3cb2('0x1d')]['get'](_0x3cb2('0x26')+_0x586c5a);return _0x109f9f?[_0x109f9f]:Array[_0x3cb2('0x35')](this[_0x3cb2('0x36')]['model']['markers'][_0x3cb2('0x59')](_0x3cb2('0x26')+_0x586c5a));}[_0x3cb2('0x41')](){const _0x371177=this[_0x3cb2('0x36')];_0x371177[_0x3cb2('0x5')][_0x3cb2('0xc')](_0x3cb2('0x40'))[_0x3cb2('0xe')]({'model':'comment','view':_0x2cc780=>{const {id:_0x46ac5e}=k(_0x2cc780[_0x3cb2('0x3d')]),_0x1f0c4c=[_0x3cb2('0x22')];return this[_0x3cb2('0x27')]&&k(this[_0x3cb2('0x27')])['id']===_0x46ac5e&&_0x1f0c4c[_0x3cb2('0x50')](_0x3cb2('0x3a')),{'classes':_0x1f0c4c,'attributes':{'data-comment':_0x46ac5e}};}}),_0x371177[_0x3cb2('0x5')][_0x3cb2('0xc')]('dataDowncast')[_0x3cb2('0x0')]({'model':_0x3cb2('0x19'),'view':_0x159b69=>{const _0x18099c=_0x371177[_0x3cb2('0x2a')][_0x3cb2('0x1d')][_0x3cb2('0x4')](_0x159b69),{id:_0x21f6b0,part:_0x5dc2af}=k(_0x159b69);return _0x18099c&&!_0x18099c[_0x3cb2('0x25')]?null:{'group':_0x3cb2('0x19'),'name':_0x5dc2af?_0x21f6b0+':'+_0x5dc2af:_0x21f6b0};}}),_0x371177[_0x3cb2('0x5')]['for'](_0x3cb2('0x49'))[_0x3cb2('0x34')]({'view':{'name':_0x3cb2('0x19'),'attribute':{'id':/^\w/}},'model':(_0x4afaa9,{writer:_0x25a5ae})=>_0x25a5ae[_0x3cb2('0x1f')]('$marker',{'data-name':_0x3cb2('0x26')+_0x4afaa9[_0x3cb2('0xd')]('id')})}),_0x371177['conversion']['for'](_0x3cb2('0x49'))[_0x3cb2('0x39')]({'view':_0x3cb2('0x19')});}[_0x3cb2('0x53')](){const _0x254a48=this[_0x3cb2('0x36')],_0x20e65c=_0x254a48['plugins'][_0x3cb2('0x4')](_0x3cb2('0x38')),_0xd6c207=new Set();_0x254a48['model'][_0x3cb2('0x21')][_0x3cb2('0x1c')](_0xf6e2b8=>{let _0xb0dd81=!0x1;for(const {name:_0x5206c1,data:_0xe92ee9}of _0x254a48[_0x3cb2('0x2a')][_0x3cb2('0x21')]['differ'][_0x3cb2('0x15')]()){const {group:_0x5c0dcd,id:_0x1a2f2c}=k(_0x5206c1);let _0x46ef07=_0xe92ee9[_0x3cb2('0x4e')];if(_0x3cb2('0x19')!==_0x5c0dcd||!_0x46ef07)continue;const _0x59ac37=_0x3cb2('0x32')===_0x46ef07[_0x3cb2('0x5a')][_0x3cb2('0x2b')];_0x59ac37||(_0x46ef07=y(_0x46ef07,_0x254a48[_0x3cb2('0x2a')]),!_0x46ef07||_0x46ef07[_0x3cb2('0x5d')](_0xe92ee9[_0x3cb2('0x4e')]))?!_0x46ef07||!_0x254a48['model'][_0x3cb2('0x3')](_0x46ef07)||this[_0x3cb2('0x24')][_0x3cb2('0x37')](_0x1a2f2c)&&_0x59ac37?(_0xf6e2b8[_0x3cb2('0x58')](_0x5206c1),_0xb0dd81=!0x0):_0x59ac37||(this[_0x3cb2('0x2f')]?_0xd6c207[_0x3cb2('0x4b')](_0x1a2f2c):this[_0x3cb2('0x42')](_0x1a2f2c)):(_0xf6e2b8[_0x3cb2('0x29')](_0x5206c1,{'range':_0x46ef07}),_0xb0dd81=!0x0);}return _0xb0dd81;}),this['on']('change:isThreadsLoadingPaused',(_0x193919,_0x2edbd5,_0x46b5db)=>{if(!_0x46b5db&&_0xd6c207['size'])for(const _0xbb6cc4 of _0xd6c207)this[_0x3cb2('0x42')](_0xbb6cc4),_0xd6c207[_0x3cb2('0x4d')](_0xbb6cc4);}),this[_0x3cb2('0x48')](_0x254a48[_0x3cb2('0x2a')][_0x3cb2('0x1d')],'update:comment',(_0xaa2536,_0xcec9ab,_0x165637,_0x730d37)=>{if(_0x730d37)return;const {id:_0x369486}=k(_0xcec9ab[_0x3cb2('0x52')]),_0x394006=_0x254a48[_0x3cb2('0xb')][_0x3cb2('0x4')](_0x3cb2('0x38'))[_0x3cb2('0xa')](_0x369486);_0xd6c207['delete'](_0x369486),_0x394006&&!this['hasMarkerForId'](_0x369486)&&(this['_attachedThreads'][_0x3cb2('0x4d')](_0x369486),_0x20e65c[_0x3cb2('0x2')](_0x369486));});}['_attachThreadToMarker'](_0x350b9b){if(this['_attachedThreads'][_0x3cb2('0x37')](_0x350b9b))return;this[_0x3cb2('0x24')][_0x3cb2('0x4b')](_0x350b9b);const _0x3b3808=this[_0x3cb2('0x36')],_0xcb0816=_0x3b3808['plugins'][_0x3cb2('0x4')](_0x3cb2('0x38')),_0x184e29=_0x3b3808['config']['get'](_0x3cb2('0x16')),_0x3c2655=()=>{const _0x49b413=this[_0x3cb2('0x31')](_0x350b9b);if(0x0==_0x49b413['length'])return null;const _0x22a1fc=_0x49b413['map'](_0x36b4b7=>_0x589f3f(_0x3b3808[_0x3cb2('0x57')],_0x36b4b7));return _0x22a1fc['sort']((_0x16b786,_0x3441f0)=>{const _0x3710c4=new _0x2d58dc(_0x16b786),_0x57de1f=new _0x2d58dc(_0x3441f0),_0x55a13a=_0x3710c4[_0x3cb2('0x6')]-_0x57de1f['top'];return 0x0==_0x55a13a?_0x3710c4[_0x3cb2('0x1a')]-_0x57de1f[_0x3cb2('0x1a')]:_0x55a13a;}),_0x22a1fc[0x0];};!this[_0x3cb2('0x31')](_0x350b9b)[0x0][_0x3cb2('0x55')]?_0x3b3808[_0x3cb2('0x57')][_0x3cb2('0x1b')][_0x3cb2('0x51')]('render',()=>{_0xcb0816[_0x3cb2('0x13')]({'channelId':_0x184e29,'threadId':_0x350b9b,'target':_0x3c2655});},{'priority':_0x3cb2('0x9')}):_0xcb0816[_0x3cb2('0x2d')]({'channelId':_0x184e29,'threadId':_0x350b9b})[_0x3cb2('0x47')](_0x471c8d=>{if(_0x3cb2('0x23')!==_0x3b3808[_0x3cb2('0x2e')]){if(_0x471c8d)_0x471c8d['attachTo'](_0x3c2655);else{const _0x3f09e1=this['getAllMarkersForId'](_0x350b9b);_0x3b3808[_0x3cb2('0x2a')][_0x3cb2('0x3b')](_0x32d507=>{for(const _0x83cf2e of _0x3f09e1)_0x32d507[_0x3cb2('0x58')](_0x83cf2e);});}}});}}function g(_0xfe698,_0x29cae9){return _0x29cae9?_0xfe698+':'+_0x29cae9:_0xfe698;}function k(_0x19cabe){const _0x457808=_0x19cabe[_0x3cb2('0x1e')](':');return{'group':_0x457808[0x0],'id':_0x457808[0x1],'part':_0x457808[0x2]};}function y(_0x324943,_0x51c759){const _0x166928=_0x51c759['schema'],_0x5c0d20=_0x51c759[_0x3cb2('0x44')](_0x324943[_0x3cb2('0x33')]);for(const _0x22a5e8 of _0x324943[_0x3cb2('0x1')]()){const {type:_0x37ac65,item:_0x45dbce,nextPosition:_0x12367a}=_0x22a5e8;if(_0x3cb2('0x11')===_0x37ac65||_0x166928[_0x3cb2('0x28')](_0x45dbce)){const _0x5ed87e=_0x51c759[_0x3cb2('0x5b')](_0x45dbce);_0x5c0d20[_0x3cb2('0x56')]&&(_0x5c0d20[_0x3cb2('0x33')]=_0x5ed87e),_0x5c0d20[_0x3cb2('0x45')]=_0x12367a;}}return _0x5c0d20[_0x3cb2('0x56')]?null:_0x5c0d20;}
|
|
23
|
+
const _0x27ad=['updateMarker','elementToElement','markerToHighlight','model','comment:','ready','removeCommentThread','markers','change','change:activeMarker','addComment','plugins','differ','add','markerName','editingDowncast','once','isObject','fetchCommentThread','rootName','length','left','for','set','schema','low','conversion','getWalker','isCollapsed','ck-comment-marker','name','end','getAllMarkersForId','reconvertMarker','affectsData','stop','managedUsingOperations','change:isReadOnly','split','view','state','$graveyard','high','_attachThreadToMarker','from','removeMarker','createPositionBefore','_handleMarkerAddAndRemove','listenTo','collaboration.channelId','getCommentThread','text','ck-comment-marker--active','createRange','config','then','CommentsRepository','destroy','has','hasCommentThread','isThreadsLoadingPaused','createElement','getAttribute','destroyed','delete','hasMarkerForId','attachTo','top','editor','document','_detachCommentThread','dataDowncast','get','newRange','_attachedThreads','upcast','root','comment','sort','render','$marker','dataToMarker','editing','activeMarker','CommentsEditing','map','_initializeMarkerConverters','pluginName','isEqual'];(function(_0x42581f,_0x27ad80){const _0x3136ca=function(_0x54cc89){while(--_0x54cc89){_0x42581f['push'](_0x42581f['shift']());}};_0x3136ca(++_0x27ad80);}(_0x27ad,0x17a));const _0x3136=function(_0x42581f,_0x27ad80){_0x42581f=_0x42581f-0x0;let _0x3136ca=_0x27ad[_0x42581f];return _0x3136ca;};import{Plugin as _0x42ab6c}from'ckeditor5/src/core';import{Rect as _0x570c3a}from'ckeditor5/src/utils';import _0x50a161 from'./commentsrepository';import _0x3ae289 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x5b22ba}from'ckeditor5-collaboration/src/collaboration-core';import _0xa26fd0 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x42ab6c{static get['requires'](){return[_0x50a161,_0xa26fd0];}static get[_0x3136('0x41')](){return _0x3136('0x3e');}constructor(_0xb205e0){super(_0xb205e0),this[_0x3136('0x1')](_0x3136('0x26'),!0x0),_0xb205e0['data'][_0x3136('0x53')](_0x3136('0x48'),()=>this[_0x3136('0x26')]=!0x1),this['set'](_0x3136('0x3d'),null),this['on'](_0x3136('0x4c'),(_0x3d16dc,_0x26b1e3,_0x409f39,_0x2479df)=>{_0xb205e0[_0x3136('0x46')]['change'](()=>{if(_0x409f39){const {id:_0x5712b9}=G(_0x409f39),_0x301b5d=this[_0x3136('0xa')](_0x5712b9);for(const _0x170e3f of _0x301b5d)_0xb205e0[_0x3136('0x3c')][_0x3136('0xb')](_0x170e3f);}if(_0x2479df){const {id:_0x47a23f}=G(_0x2479df),_0x233ec5=this[_0x3136('0xa')](_0x47a23f);for(const _0x4bd571 of _0x233ec5)_0xb205e0[_0x3136('0x3c')][_0x3136('0xb')](_0x4bd571);}});}),this['_attachedThreads']=new Set();}['init'](){const _0x1e3711=this['editor'],_0xa97ca1=_0x1e3711[_0x3136('0x4e')][_0x3136('0x32')](_0x3136('0x22')),_0x584b28=_0x1e3711['config'][_0x3136('0x32')](_0x3136('0x1b'));_0x1e3711['commands']['add']('addCommentThread',new _0x3ae289(_0x1e3711)),this[_0x3136('0x1a')](_0x1e3711,_0x3136('0xf'),(_0x2bcbbe,_0x408296,_0xb82cbd)=>{_0xa97ca1['switchReadOnly'](_0xb82cbd,_0x1e3711[_0x3136('0x20')][_0x3136('0x32')](_0x3136('0x1b')));}),this[_0x3136('0x1a')](_0xa97ca1,q(_0x3136('0x49'),_0x584b28),(_0x4b3dbb,{threadId:_0x180074})=>{_0x1e3711['model']['change'](_0x4dfbb9=>{for(const _0x213d0f of this[_0x3136('0xa')](_0x180074))_0x4dfbb9[_0x3136('0x17')](_0x213d0f);});const _0x163ed2=_0xa97ca1[_0x3136('0x1c')](_0x180074);_0xa97ca1[_0x3136('0x25')](_0x180074)&&!_0x163ed2[_0x3136('0x57')]||_0x4b3dbb[_0x3136('0xd')]();},{'priority':_0x3136('0x14')}),this[_0x3136('0x1a')](_0xa97ca1,q(_0x3136('0x4d'),_0x584b28),(_0x43f5cf,{threadId:_0x300385,isFromAdapter:_0x211da6})=>{const _0xa0abee=this[_0x3136('0xa')](_0x300385);if(_0x211da6||0x0==_0xa0abee[_0x3136('0x57')]||!_0xa97ca1[_0x3136('0x25')](_0x300385))return;0x1===_0xa97ca1['getCommentThread'](_0x300385)['length']&&_0x1e3711[_0x3136('0x46')][_0x3136('0x4b')](_0x1960c7=>{for(const _0x3953d7 of _0xa0abee)_0x1960c7[_0x3136('0x43')](_0x3953d7,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x3136('0x3')}),this[_0x3136('0x40')](),this[_0x3136('0x19')]();}[_0x3136('0x23')](){const _0x13cead=this[_0x3136('0x2e')][_0x3136('0x4e')]['get'](_0x3136('0x22')),_0x245bc0=this[_0x3136('0x2e')][_0x3136('0x20')][_0x3136('0x32')](_0x3136('0x1b'));for(const _0x41cc4d of _0x13cead['getCommentThreads']({'channelId':_0x245bc0}))_0x13cead[_0x3136('0x30')](_0x41cc4d['id']),_0x13cead['_threads'][_0x3136('0x2a')](_0x41cc4d['id']);super[_0x3136('0x23')]();}[_0x3136('0x2b')](_0x154df8){return this[_0x3136('0xa')](_0x154df8)[_0x3136('0x57')]>0x0;}[_0x3136('0xa')](_0x3560cd){const _0x412678=this[_0x3136('0x2e')][_0x3136('0x46')][_0x3136('0x4a')][_0x3136('0x32')]('comment:'+_0x3560cd);return _0x412678?[_0x412678]:Array[_0x3136('0x16')](this[_0x3136('0x2e')]['model'][_0x3136('0x4a')]['getMarkersGroup'](_0x3136('0x47')+_0x3560cd));}[_0x3136('0x40')](){const _0x1f0e75=this[_0x3136('0x2e')];_0x1f0e75[_0x3136('0x4')][_0x3136('0x0')](_0x3136('0x52'))[_0x3136('0x45')]({'model':_0x3136('0x37'),'view':_0x13b594=>{const {id:_0x25d5bc}=G(_0x13b594[_0x3136('0x51')]),_0x2b1b04=[_0x3136('0x7')];return this[_0x3136('0x3d')]&&G(this[_0x3136('0x3d')])['id']===_0x25d5bc&&_0x2b1b04['push'](_0x3136('0x1e')),{'classes':_0x2b1b04,'attributes':{'data-comment':_0x25d5bc}};}}),_0x1f0e75[_0x3136('0x4')][_0x3136('0x0')](_0x3136('0x31'))['markerToData']({'model':_0x3136('0x37'),'view':_0x1d8a7e=>{const _0x5ab987=_0x1f0e75['model']['markers'][_0x3136('0x32')](_0x1d8a7e),{id:_0x42055d,part:_0x4a9f40}=G(_0x1d8a7e);return _0x5ab987&&!_0x5ab987[_0x3136('0xc')]?null:{'group':_0x3136('0x37'),'name':_0x4a9f40?_0x42055d+':'+_0x4a9f40:_0x42055d};}}),_0x1f0e75[_0x3136('0x4')][_0x3136('0x0')](_0x3136('0x35'))[_0x3136('0x44')]({'view':{'name':_0x3136('0x37'),'attribute':{'id':/^\w/}},'model':(_0x868f96,{writer:_0x5e2bbd})=>_0x5e2bbd[_0x3136('0x27')](_0x3136('0x3a'),{'data-name':_0x3136('0x47')+_0x868f96[_0x3136('0x28')]('id')})}),_0x1f0e75[_0x3136('0x4')][_0x3136('0x0')](_0x3136('0x35'))[_0x3136('0x3b')]({'view':_0x3136('0x37')});}['_handleMarkerAddAndRemove'](){const _0x238bdc=this[_0x3136('0x2e')],_0x4b8b7f=_0x238bdc[_0x3136('0x4e')][_0x3136('0x32')](_0x3136('0x22')),_0x2ffba7=new Set();_0x238bdc[_0x3136('0x46')][_0x3136('0x2f')]['registerPostFixer'](_0x63252c=>{let _0x333f0f=!0x1;for(const {name:_0x2238ef,data:_0x3a962f}of _0x238bdc[_0x3136('0x46')][_0x3136('0x2f')][_0x3136('0x4f')]['getChangedMarkers']()){const {group:_0x256609,id:_0x58d5d8}=G(_0x2238ef);let _0x1ace98=_0x3a962f[_0x3136('0x33')];if(_0x3136('0x37')!==_0x256609||!_0x1ace98)continue;const _0x177957=_0x3136('0x13')===_0x1ace98[_0x3136('0x36')][_0x3136('0x56')];_0x177957||(_0x1ace98=J(_0x1ace98,_0x238bdc['model']),!_0x1ace98||_0x1ace98[_0x3136('0x42')](_0x3a962f['newRange']))?!_0x1ace98||!_0x238bdc[_0x3136('0x46')]['hasContent'](_0x1ace98)||this['_attachedThreads'][_0x3136('0x24')](_0x58d5d8)&&_0x177957?(_0x63252c['removeMarker'](_0x2238ef),_0x333f0f=!0x0):_0x177957||(this[_0x3136('0x26')]?_0x2ffba7[_0x3136('0x50')](_0x58d5d8):this[_0x3136('0x15')](_0x58d5d8)):(_0x63252c[_0x3136('0x43')](_0x2238ef,{'range':_0x1ace98}),_0x333f0f=!0x0);}return _0x333f0f;}),this['on']('change:isThreadsLoadingPaused',(_0x2a8618,_0x2112e8,_0x17f8ae)=>{if(!_0x17f8ae&&_0x2ffba7['size'])for(const _0x4cd5e8 of _0x2ffba7)this['_attachThreadToMarker'](_0x4cd5e8),_0x2ffba7[_0x3136('0x2a')](_0x4cd5e8);}),this['listenTo'](_0x238bdc['model'][_0x3136('0x4a')],'update:comment',(_0x2c388a,_0x5989ad,_0x3fa86f,_0x86b2a5)=>{if(_0x86b2a5)return;const {id:_0x31469b}=G(_0x5989ad[_0x3136('0x8')]),_0x3e9c41=_0x238bdc[_0x3136('0x4e')][_0x3136('0x32')]('CommentsRepository')[_0x3136('0x1c')](_0x31469b);_0x2ffba7[_0x3136('0x2a')](_0x31469b),_0x3e9c41&&!this[_0x3136('0x2b')](_0x31469b)&&(this[_0x3136('0x34')][_0x3136('0x2a')](_0x31469b),_0x4b8b7f['_detachCommentThread'](_0x31469b));});}[_0x3136('0x15')](_0x955d76){if(this[_0x3136('0x34')][_0x3136('0x24')](_0x955d76))return;this[_0x3136('0x34')][_0x3136('0x50')](_0x955d76);const _0x167e19=this[_0x3136('0x2e')],_0x40af66=_0x167e19[_0x3136('0x4e')]['get'](_0x3136('0x22')),_0x269214=_0x167e19['config'][_0x3136('0x32')](_0x3136('0x1b')),_0x903a3b=()=>{const _0x22caac=this[_0x3136('0xa')](_0x955d76);if(0x0==_0x22caac[_0x3136('0x57')])return null;const _0x4eb714=_0x22caac[_0x3136('0x3f')](_0x2361ef=>_0x5b22ba(_0x167e19[_0x3136('0x3c')],_0x2361ef));return _0x4eb714[_0x3136('0x38')]((_0x25eef4,_0x48806d)=>{const _0x3a39a3=new _0x570c3a(_0x25eef4),_0x287f94=new _0x570c3a(_0x48806d),_0xaca8f9=_0x3a39a3['top']-_0x287f94[_0x3136('0x2d')];return 0x0==_0xaca8f9?_0x3a39a3[_0x3136('0x58')]-_0x287f94[_0x3136('0x58')]:_0xaca8f9;}),_0x4eb714[0x0];};!this[_0x3136('0xa')](_0x955d76)[0x0][_0x3136('0xe')]?_0x167e19[_0x3136('0x3c')][_0x3136('0x11')][_0x3136('0x53')](_0x3136('0x39'),()=>{_0x40af66['openNewCommentThread']({'channelId':_0x269214,'threadId':_0x955d76,'target':_0x903a3b});},{'priority':_0x3136('0x3')}):_0x40af66[_0x3136('0x55')]({'channelId':_0x269214,'threadId':_0x955d76})[_0x3136('0x21')](_0x46d831=>{if(_0x3136('0x29')!==_0x167e19[_0x3136('0x12')]){if(_0x46d831)_0x46d831[_0x3136('0x2c')](_0x903a3b);else{const _0x1fe0d9=this['getAllMarkersForId'](_0x955d76);_0x167e19['model'][_0x3136('0x4b')](_0x5abae6=>{for(const _0x5f0e7f of _0x1fe0d9)_0x5abae6[_0x3136('0x17')](_0x5f0e7f);});}}});}}function q(_0x5f1e4a,_0x3d3220){return _0x3d3220?_0x5f1e4a+':'+_0x3d3220:_0x5f1e4a;}function G(_0x5330a2){const _0x3d131a=_0x5330a2[_0x3136('0x10')](':');return{'group':_0x3d131a[0x0],'id':_0x3d131a[0x1],'part':_0x3d131a[0x2]};}function J(_0x3afe12,_0x964518){const _0x39e843=_0x964518[_0x3136('0x2')],_0x220814=_0x964518[_0x3136('0x1f')](_0x3afe12['start']);for(const _0x4277da of _0x3afe12[_0x3136('0x5')]()){const {type:_0x57dd1b,item:_0x35590a,nextPosition:_0x4a50d4}=_0x4277da;if(_0x3136('0x1d')===_0x57dd1b||_0x39e843[_0x3136('0x54')](_0x35590a)){const _0x15f363=_0x964518[_0x3136('0x18')](_0x35590a);_0x220814[_0x3136('0x6')]&&(_0x220814['start']=_0x15f363),_0x220814[_0x3136('0x9')]=_0x4a50d4;}}return _0x220814[_0x3136('0x6')]?null:_0x220814;}
|