@ckeditor/ckeditor5-comments 34.2.0 → 35.0.1
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/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/ja.js +1 -1
- package/build/translations/lt.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/vi.js +1 -0
- package/lang/translations/ar.po +71 -0
- package/lang/translations/bg.po +67 -0
- package/lang/translations/bn.po +67 -0
- package/lang/translations/ca.po +67 -0
- package/lang/translations/fi.po +67 -0
- package/lang/translations/he.po +69 -0
- package/lang/translations/ja.po +3 -3
- package/lang/translations/lt.po +69 -0
- package/lang/translations/ms.po +66 -0
- package/lang/translations/pt.po +68 -0
- package/lang/translations/sr.po +3 -3
- package/lang/translations/sv.po +67 -0
- package/lang/translations/th.po +66 -0
- package/lang/translations/vi.po +66 -0
- 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 _0x4fcc=['_detachListeners','delete','off','_manuallyClosedAnnotationViews','change:height','includes','Sidebar','setActiveAnnotation','has','ready','stop','attachToDom','bind','balloonPanelView','northArrowSouthWest','EditorAnnotations','narrowsidebar-attach-already-attached','getByView','type','addEventListener','narrowSidebar','annotations','_attachToContainer','plugins','clear','ck-sidebar--narrow','high','view','activeAnnotation','_updateBalloonPosition','set:container','_hideBalloon','_selectedAnnotations','bodyCollection','execute','_domEmitter','pluginName','contains','_setSelectedAnnotations','focus','context','defaultPositions','stopListening','add','isVisible','editors','isDirty','removeEventListener','_attachListeners','attach','keyCode','values','get','register','set','esc','detach','southArrowNorthEast','_throttledRefreshPositioning','remove','_editorAnnotations','blur','_showBalloon','southArrowNorth','northArrowSouthEast','length','listenTo','stopPropagation','element','isAttached','number','preventDefault','detachFromDom','from','destroy','init','locale','refresh','_destroyEditorAnnotationsIntegration','resize','addAnnotation','NarrowSidebar','_refreshPositioning','mousedown','hasDomSelection','target','create','unpin','keydown','refreshPositioning','_annotationToNarrowView','first','content','narrowsidebar-detach-not-attached','_integrateWithEditorAnnotations'];(function(_0x1a21bb,_0x4fccab){const _0x162f73=function(_0x1cd84f){while(--_0x1cd84f){_0x1a21bb['push'](_0x1a21bb['shift']());}};_0x162f73(++_0x4fccab);}(_0x4fcc,0xd1));const _0x162f=function(_0x1a21bb,_0x4fccab){_0x1a21bb=_0x1a21bb-0x0;let _0x162f73=_0x4fcc[_0x1a21bb];return _0x162f73;};import{ContextPlugin as _0x56913a}from'ckeditor5/src/core';import _0x276ddc from'./annotationsuis';import _0x4a9b5c from'./sidebar';import _0x13b028 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2912f0,BodyCollection as _0x12b8f8}from'ckeditor5/src/ui';import{CKEditorError as _0x22c5f1,DomEmitterMixin as _0x2e8ffa,keyCodes as _0x1045f7,Collection as _0x3c6ad5}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x3e039e}from'lodash-es';export default class s extends _0x56913a{static get['requires'](){return[_0x4a9b5c,_0x276ddc];}static get[_0x162f('0x11')](){return _0x162f('0x3e');}constructor(_0x151c4a){super(_0x151c4a),this[_0x162f('0x32')]=!0x1,this[_0x162f('0x4f')]=new Set(),this[_0x162f('0x10')]=Object[_0x162f('0x43')](_0x2e8ffa),this[_0x162f('0x47')]=new Map(),this['set']('activeAnnotation',null),this[_0x162f('0x2')]=null,this[_0x162f('0xd')]=[],this[_0x162f('0x29')]=new _0x3c6ad5(),this['_throttledRefreshPositioning']=_0x3e039e(()=>{this[_0x162f('0x3f')]();},0x190,{'leading':!0x1});}[_0x162f('0x38')](){this[_0x162f('0x15')][_0x162f('0x4')][_0x162f('0x21')](_0x276ddc)[_0x162f('0x22')](_0x162f('0x1'),this),this[_0x162f('0xe')]=new _0x12b8f8(this[_0x162f('0x15')]['locale']),this[_0x162f('0x59')]=new _0x2912f0(this[_0x162f('0x15')][_0x162f('0x39')]),this[_0x162f('0xe')][_0x162f('0x57')](),this[_0x162f('0xe')][_0x162f('0x18')](this[_0x162f('0x59')]);}[_0x162f('0x1e')](_0x1477ab){this[_0x162f('0x2')]=_0x1477ab;const _0x25482c=this[_0x162f('0x15')][_0x162f('0x4')][_0x162f('0x21')](_0x4a9b5c),_0x2a07f0=this['balloonPanelView'];if(_0x25482c['_annotations']=_0x1477ab,this['isAttached'])throw new _0x22c5f1(_0x162f('0x5c'),this);this[_0x162f('0x32')]=!0x0,this[_0x162f('0x2f')](_0x25482c,_0x162f('0xb'),()=>{this[_0x162f('0x25')](),this['listenTo'](_0x25482c,'change:container',_0x573b06=>{_0x573b06[_0x162f('0x4e')](),this[_0x162f('0x1e')](_0x1477ab);});}),_0x25482c[_0x162f('0x3')]({'viewClass':_0x162f('0x6'),'spaceBetweenItems':0x5});const _0x44d374=_0x6e3875=>{const _0x376f16=new _0x13b028(this[_0x162f('0x15')]['locale']);_0x25482c[_0x162f('0x3d')](_0x6e3875,_0x376f16),this[_0x162f('0x47')][_0x162f('0x23')](_0x6e3875,_0x376f16),_0x376f16[_0x162f('0x58')](_0x162f('0x1b'),'annotationType',_0x162f('0x33'))['to'](_0x6e3875[_0x162f('0x8')],_0x162f('0x1b'),_0x162f('0x5e'),_0x162f('0x2e')),_0x376f16['on'](_0x162f('0xf'),()=>{this[_0x162f('0x4f')][_0x162f('0x5')](),_0x2a07f0[_0x162f('0x49')][_0x162f('0x48')]!==_0x6e3875[_0x162f('0x8')]?(this[_0x162f('0x2b')](_0x6e3875),_0x6e3875['view']['element'][_0x162f('0x14')](),this[_0x162f('0x53')](_0x6e3875)):this['setActiveAnnotation'](null);});};for(const _0x45cd94 of _0x1477ab)_0x44d374(_0x45cd94);this['listenTo'](_0x1477ab,'add',(_0x263800,_0x1bdbfe)=>{_0x44d374(_0x1bdbfe);}),this[_0x162f('0x2f')](_0x1477ab,'remove',(_0x35f392,_0x1d40a9,_0x3e475a)=>{this[_0x162f('0x47')][_0x162f('0x21')](_0x1d40a9)[_0x162f('0x37')](),this['_annotationToNarrowView'][_0x162f('0x4d')](_0x1d40a9),_0x25482c['rearrange']({'removedAnnotation':_0x1d40a9,'previousAnnotation':_0x1477ab[_0x162f('0x21')](_0x3e475a-0x1),'nextAnnotation':_0x1477ab[_0x162f('0x21')](_0x3e475a+0x1)}),_0x1d40a9===this[_0x162f('0x9')]&&this['setActiveAnnotation'](null);},{'priority':'low'}),this[_0x162f('0x2f')](_0x1477ab,_0x162f('0x14'),(_0x418d92,_0x5b05b4)=>{this[_0x162f('0x53')](_0x5b05b4);}),this[_0x162f('0x2f')](_0x1477ab,_0x162f('0x2a'),()=>{this[_0x162f('0x53')](null);}),this[_0x162f('0x10')][_0x162f('0x2f')](document,_0x162f('0x45'),(_0x5c7118,_0x135b6d)=>{_0x135b6d[_0x162f('0x1f')]===_0x1045f7[_0x162f('0x24')]&&_0x2a07f0['isVisible']&&(this['_manuallyClosedAnnotationViews'][_0x162f('0x18')](_0x2a07f0[_0x162f('0x49')]['first']),this['_hideBalloon'](),_0x135b6d[_0x162f('0x30')](),_0x135b6d[_0x162f('0x34')]());}),this[_0x162f('0x10')][_0x162f('0x2f')](document,_0x162f('0x40'),(_0x3b6b30,_0x5a83ab)=>{const _0x15749b=_0x5a83ab[_0x162f('0x42')];_0x2a07f0[_0x162f('0x19')]&&_0x2a07f0[_0x162f('0x31')][_0x162f('0x12')](_0x15749b)||_0x25482c[_0x162f('0x8')][_0x162f('0x31')][_0x162f('0x12')](_0x15749b)||_0x3b6b30['preventClosingBalloon']||(this[_0x162f('0x4f')]['clear'](),this['_hideBalloon'](),this[_0x162f('0x53')](null));});const _0x5ae632=this[_0x162f('0x15')][_0x162f('0x1a')]?this[_0x162f('0x15')][_0x162f('0x1a')]:new _0x3c6ad5([this['context']]);for(const _0xac17e0 of _0x5ae632)this[_0x162f('0x4b')](_0xac17e0);this['listenTo'](_0x5ae632,_0x162f('0x18'),(_0x56cefc,_0x23b8c2)=>{this[_0x162f('0x2f')](_0x23b8c2,_0x162f('0x55'),()=>{this['_integrateWithEditorAnnotations'](_0x23b8c2);});}),this[_0x162f('0x2f')](_0x5ae632,_0x162f('0x28'),(_0x5c4397,_0x5e9b51)=>{_0x5e9b51['plugins'][_0x162f('0x54')]('EditorAnnotations')&&this[_0x162f('0x3b')](_0x5e9b51['plugins'][_0x162f('0x21')]('EditorAnnotations'));}),window[_0x162f('0x0')](_0x162f('0x3c'),this['_throttledRefreshPositioning']),this[_0x162f('0x3f')]();}['setActiveAnnotation'](_0x761c47){if(_0x761c47===this['activeAnnotation'])return;const _0x21753d=this[_0x162f('0x15')][_0x162f('0x4')][_0x162f('0x21')](_0x162f('0x52'));if(_0x21753d[_0x162f('0x3a')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x761c47,'disableAnimationOnActivatedAnnotation':!0x0}),_0x761c47)_0x21753d['getSidebarItemView'](_0x761c47)?this[_0x162f('0x2b')](_0x761c47):this['_hideBalloon']();else this[_0x162f('0xc')]();this[_0x162f('0x9')]=_0x761c47;}[_0x162f('0x25')](){if(!this[_0x162f('0x32')])throw new _0x22c5f1(_0x162f('0x4a'),this);this[_0x162f('0x53')](null);const _0x15fa65=this[_0x162f('0x15')][_0x162f('0x4')]['get']('Sidebar');this[_0x162f('0xc')](),Array[_0x162f('0x36')](this[_0x162f('0x47')][_0x162f('0x20')](),_0x327875=>_0x327875[_0x162f('0x37')]()),this[_0x162f('0x47')]['clear'](),_0x15fa65['_detachFromContainer'](this[_0x162f('0x2')]),this['stopListening'](),this[_0x162f('0x10')][_0x162f('0x17')](),this[_0x162f('0x17')](this['context'][_0x162f('0x1a')]);for(const _0x2b3612 of Array[_0x162f('0x36')](this[_0x162f('0x29')]))this[_0x162f('0x3b')](_0x2b3612);window[_0x162f('0x1c')]('resize',this[_0x162f('0x27')]),this['_throttledRefreshPositioning']['cancel'](),this[_0x162f('0xd')]=[],this[_0x162f('0x32')]=!0x1,this['annotations']=null;}[_0x162f('0x37')](){this[_0x162f('0x32')]&&this['detach'](),this[_0x162f('0xe')][_0x162f('0x35')]();}[_0x162f('0x4b')](_0x19b9fe){const _0x2472db=_0x19b9fe[_0x162f('0x4')][_0x162f('0x21')](_0x162f('0x5b')),_0x3d705b=this[_0x162f('0x15')]['plugins'][_0x162f('0x21')](_0x4a9b5c),_0x33b963=this[_0x162f('0x2')],_0x1569d7=this[_0x162f('0x59')],_0x5cc6fe=()=>{const _0x429c49=_0x2472db['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x162f('0x9')],'annotations':this['annotations']});this['_setSelectedAnnotations'](_0x429c49),this[_0x162f('0x53')](_0x429c49[0x0]||null);};this['listenTo'](_0x2472db,'refresh',_0x5cc6fe),this['listenTo'](_0x2472db,_0x162f('0x2a'),(_0x1a1605,{isAnnotationTracked:_0x3699b8})=>{this['activeAnnotation']&&_0x3699b8(this[_0x162f('0x9')])&&(this[_0x162f('0x13')]([]),this[_0x162f('0x53')](null));}),this[_0x162f('0x2f')](_0x2472db,'uiUpdate',()=>{this[_0x162f('0x27')]();}),this[_0x162f('0x2f')](_0x33b963,_0x162f('0x2a'),_0x984f7f=>{_0x2472db[_0x162f('0x41')]()&&_0x984f7f[_0x162f('0x56')]();},{'priority':_0x162f('0x7')}),this[_0x162f('0x10')][_0x162f('0x2f')](document,_0x162f('0x40'),(_0x5cf3c4,_0x4874b0)=>{const _0x43b490=_0x4874b0[_0x162f('0x42')];_0x1569d7[_0x162f('0x19')]&&_0x1569d7[_0x162f('0x31')]['contains'](_0x43b490)||_0x3d705b['view']['element'][_0x162f('0x12')](_0x43b490)||this[_0x162f('0x9')]&&_0x2472db[_0x162f('0x41')]()&&(_0x5cc6fe(),_0x5cf3c4['preventClosingBalloon']=!0x0);},{'priority':_0x162f('0x7')}),this[_0x162f('0x29')]['add'](_0x2472db);}[_0x162f('0x3b')](_0x35c04f){_0x35c04f&&(this['stopListening'](_0x35c04f),this[_0x162f('0x29')][_0x162f('0x28')](_0x35c04f));}[_0x162f('0x13')](_0x474b33){for(const _0x1a6cf4 of this[_0x162f('0xd')])_0x474b33[_0x162f('0x51')](_0x1a6cf4)||this[_0x162f('0x4f')][_0x162f('0x4d')](_0x1a6cf4[_0x162f('0x8')]);this[_0x162f('0xd')]=_0x474b33;}[_0x162f('0x3f')](){const _0x37dd00=this[_0x162f('0x59')];this['annotations'][_0x162f('0x46')](),_0x37dd00[_0x162f('0x19')]&&this[_0x162f('0xa')]();}[_0x162f('0x2b')](_0x494803){if(this[_0x162f('0x4f')][_0x162f('0x54')](_0x494803[_0x162f('0x8')]))return;const _0x2568cf=this['balloonPanelView'][_0x162f('0x49')][_0x162f('0x48')];_0x2568cf!==_0x494803[_0x162f('0x8')]?(_0x2568cf&&this[_0x162f('0x4c')](_0x2568cf),this[_0x162f('0x1d')](_0x494803['view']),this['balloonPanelView'][_0x162f('0x49')][_0x162f('0x5')](),this['balloonPanelView'][_0x162f('0x49')]['add'](_0x494803[_0x162f('0x8')]),this[_0x162f('0xa')]()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x11c79d=this[_0x162f('0x59')][_0x162f('0x49')][_0x162f('0x48')],_0x42d90f=this['annotations'][_0x162f('0x5d')](_0x11c79d);if(!this[_0x162f('0x47')][_0x162f('0x54')](_0x42d90f))return;const _0xd373b7=this[_0x162f('0x47')][_0x162f('0x21')](_0x42d90f)[_0x162f('0x31')],_0x2af960=function(){const _0x50073c=_0x2912f0[_0x162f('0x16')];return[_0x50073c[_0x162f('0x26')],_0x50073c[_0x162f('0x2d')],_0x50073c[_0x162f('0x2c')],_0x50073c['northArrowSouth'],_0x50073c['southArrowNorthWest'],_0x50073c[_0x162f('0x5a')]];}();this['balloonPanelView']['pin']({'target':_0xd373b7,'positions':_0x2af960});}[_0x162f('0xc')](){const _0x2fe619=this[_0x162f('0x59')],_0x5ae7f8=_0x2fe619[_0x162f('0x49')][_0x162f('0x48')];_0x5ae7f8&&(this[_0x162f('0x4c')](_0x5ae7f8),_0x2fe619[_0x162f('0x44')](),_0x2fe619['content']['clear']());}[_0x162f('0x1d')](_0x1015d3){this['listenTo'](_0x1015d3,_0x162f('0x50'),()=>this[_0x162f('0xa')]()),this[_0x162f('0x2f')](_0x1015d3,'Esc',(_0x1ce694,_0x46b8c2)=>{this[_0x162f('0x4f')][_0x162f('0x18')](_0x1015d3),this[_0x162f('0xc')](),_0x46b8c2();});}['_detachListeners'](_0x45c9c6){this[_0x162f('0x17')](_0x45c9c6);}}
|
|
23
|
+
const _0x332b=['init','rearrange','has','narrowsidebar-detach-not-attached','low','type','get','first','remove','mousedown','ck-sidebar--narrow','content','attachToDom','execute','_throttledRefreshPositioning','removeEventListener','target','refreshPositioning','cancel','add','values','attach','editors','_selectedAnnotations','delete','getOrderedSelectedAnnotations','ready','from','stopListening','isAttached','_refreshPositioning','narrowsidebar-attach-already-attached','pluginName','set:container','focus','locale','activeAnnotation','includes','change:height','hasDomSelection','stopPropagation','unpin','_showBalloon','balloonPanelView','set','isDirty','destroy','setActiveAnnotation','refresh','preventClosingBalloon','view','Sidebar','pin','EditorAnnotations','high','northArrowSouth','_hideBalloon','NarrowSidebar','resize','element','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','detach','defaultPositions','_updateBalloonPosition','context','clear','listenTo','uiUpdate','_detachListeners','stop','narrowSidebar','blur','annotations','keyCode','_annotations','isVisible','_domEmitter','_setSelectedAnnotations','bodyCollection','southArrowNorthEast','create','_editorAnnotations','preventDefault','plugins','_manuallyClosedAnnotationViews','off','detachFromDom','length','_annotationToNarrowView','contains','_attachListeners'];(function(_0xa98bd8,_0x332b83){const _0x541aa7=function(_0x22f4db){while(--_0x22f4db){_0xa98bd8['push'](_0xa98bd8['shift']());}};_0x541aa7(++_0x332b83);}(_0x332b,0x90));const _0x541a=function(_0xa98bd8,_0x332b83){_0xa98bd8=_0xa98bd8-0x0;let _0x541aa7=_0x332b[_0xa98bd8];return _0x541aa7;};import{ContextPlugin as _0xffe2e}from'ckeditor5/src/core';import _0x505547 from'./annotationsuis';import _0x2cf235 from'./sidebar';import _0x3a0fed from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x5de32f,BodyCollection as _0x121e62}from'ckeditor5/src/ui';import{CKEditorError as _0x2617cf,DomEmitterMixin as _0x377e15,keyCodes as _0x396b0e,Collection as _0x3f35f8}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x13bba1}from'lodash-es';export default class s extends _0xffe2e{static get['requires'](){return[_0x2cf235,_0x505547];}static get[_0x541a('0x48')](){return _0x541a('0x5');}constructor(_0x39535e){super(_0x39535e),this[_0x541a('0x45')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x541a('0x19')]=Object[_0x541a('0x1d')](_0x377e15),this[_0x541a('0x25')]=new Map(),this[_0x541a('0x54')](_0x541a('0x4c'),null),this[_0x541a('0x15')]=null,this[_0x541a('0x3f')]=[],this['_editorAnnotations']=new _0x3f35f8(),this[_0x541a('0x36')]=_0x13bba1(()=>{this['_refreshPositioning']();},0x190,{'leading':!0x1});}[_0x541a('0x28')](){this[_0x541a('0xd')]['plugins'][_0x541a('0x2e')](_0x505547)['register'](_0x541a('0x13'),this),this[_0x541a('0x1b')]=new _0x121e62(this['context'][_0x541a('0x4b')]),this[_0x541a('0x53')]=new _0x5de32f(this[_0x541a('0xd')]['locale']),this[_0x541a('0x1b')][_0x541a('0x34')](),this[_0x541a('0x1b')][_0x541a('0x3b')](this[_0x541a('0x53')]);}['attach'](_0x195575){this[_0x541a('0x15')]=_0x195575;const _0x424509=this[_0x541a('0xd')]['plugins']['get'](_0x2cf235),_0x4852f8=this['balloonPanelView'];if(_0x424509[_0x541a('0x17')]=_0x195575,this[_0x541a('0x45')])throw new _0x2617cf(_0x541a('0x47'),this);this['isAttached']=!0x0,this['listenTo'](_0x424509,_0x541a('0x49'),()=>{this[_0x541a('0xa')](),this[_0x541a('0xf')](_0x424509,'change:container',_0x14ebfe=>{_0x14ebfe[_0x541a('0x22')](),this[_0x541a('0x3d')](_0x195575);});}),_0x424509['_attachToContainer']({'viewClass':_0x541a('0x32'),'spaceBetweenItems':0x5});const _0x2162c3=_0x3552f3=>{const _0x5f3645=new _0x3a0fed(this[_0x541a('0xd')][_0x541a('0x4b')]);_0x424509['addAnnotation'](_0x3552f3,_0x5f3645),this[_0x541a('0x25')][_0x541a('0x54')](_0x3552f3,_0x5f3645),_0x5f3645['bind']('isDirty','annotationType','number')['to'](_0x3552f3[_0x541a('0x5a')],_0x541a('0x55'),_0x541a('0x2d'),_0x541a('0x24')),_0x5f3645['on'](_0x541a('0x35'),()=>{this['_manuallyClosedAnnotationViews'][_0x541a('0xe')](),_0x4852f8[_0x541a('0x33')][_0x541a('0x2f')]!==_0x3552f3['view']?(this[_0x541a('0x52')](_0x3552f3),_0x3552f3[_0x541a('0x5a')]['element'][_0x541a('0x4a')](),this['setActiveAnnotation'](_0x3552f3)):this[_0x541a('0x57')](null);});};for(const _0x541c3a of _0x195575)_0x2162c3(_0x541c3a);this[_0x541a('0xf')](_0x195575,_0x541a('0x3b'),(_0x57da1e,_0x355843)=>{_0x2162c3(_0x355843);}),this['listenTo'](_0x195575,'remove',(_0x2243cd,_0x326b49,_0x55165f)=>{this[_0x541a('0x25')][_0x541a('0x2e')](_0x326b49)[_0x541a('0x56')](),this[_0x541a('0x25')][_0x541a('0x40')](_0x326b49),_0x424509[_0x541a('0x29')]({'removedAnnotation':_0x326b49,'previousAnnotation':_0x195575['get'](_0x55165f-0x1),'nextAnnotation':_0x195575[_0x541a('0x2e')](_0x55165f+0x1)}),_0x326b49===this[_0x541a('0x4c')]&&this[_0x541a('0x57')](null);},{'priority':_0x541a('0x2c')}),this['listenTo'](_0x195575,'focus',(_0x29c8e8,_0x59f7fc)=>{this['setActiveAnnotation'](_0x59f7fc);}),this[_0x541a('0xf')](_0x195575,'blur',()=>{this['setActiveAnnotation'](null);}),this[_0x541a('0x19')][_0x541a('0xf')](document,'keydown',(_0x29059e,_0x20e48d)=>{_0x20e48d[_0x541a('0x16')]===_0x396b0e['esc']&&_0x4852f8['isVisible']&&(this[_0x541a('0x21')][_0x541a('0x3b')](_0x4852f8[_0x541a('0x33')]['first']),this[_0x541a('0x4')](),_0x20e48d[_0x541a('0x50')](),_0x20e48d[_0x541a('0x1f')]());}),this[_0x541a('0x19')][_0x541a('0xf')](document,_0x541a('0x31'),(_0x20a93a,_0x5f2866)=>{const _0x105ff4=_0x5f2866[_0x541a('0x38')];_0x4852f8[_0x541a('0x18')]&&_0x4852f8['element'][_0x541a('0x26')](_0x105ff4)||_0x424509[_0x541a('0x5a')]['element'][_0x541a('0x26')](_0x105ff4)||_0x20a93a['preventClosingBalloon']||(this[_0x541a('0x21')][_0x541a('0xe')](),this[_0x541a('0x4')](),this[_0x541a('0x57')](null));});const _0x570716=this[_0x541a('0xd')]['editors']?this['context'][_0x541a('0x3e')]:new _0x3f35f8([this[_0x541a('0xd')]]);for(const _0x1554a1 of _0x570716)this['_integrateWithEditorAnnotations'](_0x1554a1);this[_0x541a('0xf')](_0x570716,'add',(_0x5184a8,_0x4ff103)=>{this[_0x541a('0xf')](_0x4ff103,_0x541a('0x42'),()=>{this[_0x541a('0x9')](_0x4ff103);});}),this[_0x541a('0xf')](_0x570716,_0x541a('0x30'),(_0x4f3e76,_0x56c28c)=>{_0x56c28c[_0x541a('0x20')]['has'](_0x541a('0x1'))&&this[_0x541a('0x8')](_0x56c28c['plugins'][_0x541a('0x2e')](_0x541a('0x1')));}),window['addEventListener']('resize',this[_0x541a('0x36')]),this[_0x541a('0x46')]();}[_0x541a('0x57')](_0x2393b2){if(_0x2393b2===this['activeAnnotation'])return;const _0x1782df=this['context']['plugins']['get'](_0x541a('0x5b'));if(_0x1782df[_0x541a('0x58')]({'blurredAnnotation':this[_0x541a('0x4c')],'activatedAnnotation':_0x2393b2,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2393b2)_0x1782df['getSidebarItemView'](_0x2393b2)?this['_showBalloon'](_0x2393b2):this[_0x541a('0x4')]();else this[_0x541a('0x4')]();this[_0x541a('0x4c')]=_0x2393b2;}[_0x541a('0xa')](){if(!this[_0x541a('0x45')])throw new _0x2617cf(_0x541a('0x2b'),this);this[_0x541a('0x57')](null);const _0x43d06e=this['context']['plugins'][_0x541a('0x2e')](_0x541a('0x5b'));this[_0x541a('0x4')](),Array[_0x541a('0x43')](this[_0x541a('0x25')][_0x541a('0x3c')](),_0xec3509=>_0xec3509[_0x541a('0x56')]()),this[_0x541a('0x25')][_0x541a('0xe')](),_0x43d06e['_detachFromContainer'](this['annotations']),this[_0x541a('0x44')](),this[_0x541a('0x19')][_0x541a('0x44')](),this['stopListening'](this['context'][_0x541a('0x3e')]);for(const _0x4cec6f of Array['from'](this[_0x541a('0x1e')]))this[_0x541a('0x8')](_0x4cec6f);window[_0x541a('0x37')](_0x541a('0x6'),this[_0x541a('0x36')]),this[_0x541a('0x36')][_0x541a('0x3a')](),this[_0x541a('0x3f')]=[],this[_0x541a('0x45')]=!0x1,this['annotations']=null;}[_0x541a('0x56')](){this[_0x541a('0x45')]&&this['detach'](),this['bodyCollection'][_0x541a('0x23')]();}[_0x541a('0x9')](_0x30c6e5){const _0x474fe2=_0x30c6e5[_0x541a('0x20')][_0x541a('0x2e')](_0x541a('0x1')),_0x1afdc3=this['context'][_0x541a('0x20')][_0x541a('0x2e')](_0x2cf235),_0x2cf952=this[_0x541a('0x15')],_0x70c65a=this[_0x541a('0x53')],_0x586ed4=()=>{const _0x3110fc=_0x474fe2[_0x541a('0x41')]({'activeAnnotation':this[_0x541a('0x4c')],'annotations':this[_0x541a('0x15')]});this[_0x541a('0x1a')](_0x3110fc),this['setActiveAnnotation'](_0x3110fc[0x0]||null);};this['listenTo'](_0x474fe2,_0x541a('0x58'),_0x586ed4),this[_0x541a('0xf')](_0x474fe2,'blur',(_0x30e7ef,{isAnnotationTracked:_0x4aa007})=>{this[_0x541a('0x4c')]&&_0x4aa007(this[_0x541a('0x4c')])&&(this[_0x541a('0x1a')]([]),this[_0x541a('0x57')](null));}),this[_0x541a('0xf')](_0x474fe2,_0x541a('0x10'),()=>{this[_0x541a('0x36')]();}),this[_0x541a('0xf')](_0x2cf952,_0x541a('0x14'),_0x4857b5=>{_0x474fe2[_0x541a('0x4f')]()&&_0x4857b5[_0x541a('0x12')]();},{'priority':'high'}),this[_0x541a('0x19')][_0x541a('0xf')](document,_0x541a('0x31'),(_0x3027e4,_0x5d7d9b)=>{const _0x3fb3d8=_0x5d7d9b['target'];_0x70c65a[_0x541a('0x18')]&&_0x70c65a[_0x541a('0x7')]['contains'](_0x3fb3d8)||_0x1afdc3[_0x541a('0x5a')][_0x541a('0x7')]['contains'](_0x3fb3d8)||this[_0x541a('0x4c')]&&_0x474fe2[_0x541a('0x4f')]()&&(_0x586ed4(),_0x3027e4[_0x541a('0x59')]=!0x0);},{'priority':_0x541a('0x2')}),this[_0x541a('0x1e')][_0x541a('0x3b')](_0x474fe2);}[_0x541a('0x8')](_0x2c6900){_0x2c6900&&(this[_0x541a('0x44')](_0x2c6900),this[_0x541a('0x1e')]['remove'](_0x2c6900));}['_setSelectedAnnotations'](_0x89c52c){for(const _0x402b26 of this[_0x541a('0x3f')])_0x89c52c[_0x541a('0x4d')](_0x402b26)||this[_0x541a('0x21')][_0x541a('0x40')](_0x402b26[_0x541a('0x5a')]);this[_0x541a('0x3f')]=_0x89c52c;}[_0x541a('0x46')](){const _0x908e06=this[_0x541a('0x53')];this[_0x541a('0x15')][_0x541a('0x39')](),_0x908e06['isVisible']&&this[_0x541a('0xc')]();}[_0x541a('0x52')](_0x45da14){if(this[_0x541a('0x21')][_0x541a('0x2a')](_0x45da14[_0x541a('0x5a')]))return;const _0x47064b=this[_0x541a('0x53')][_0x541a('0x33')][_0x541a('0x2f')];_0x47064b!==_0x45da14[_0x541a('0x5a')]?(_0x47064b&&this[_0x541a('0x11')](_0x47064b),this[_0x541a('0x27')](_0x45da14[_0x541a('0x5a')]),this[_0x541a('0x53')][_0x541a('0x33')][_0x541a('0xe')](),this['balloonPanelView'][_0x541a('0x33')][_0x541a('0x3b')](_0x45da14[_0x541a('0x5a')]),this[_0x541a('0xc')]()):this[_0x541a('0xc')]();}[_0x541a('0xc')](){const _0x5dd71a=this[_0x541a('0x53')][_0x541a('0x33')]['first'],_0x2f6f40=this[_0x541a('0x15')]['getByView'](_0x5dd71a);if(!this[_0x541a('0x25')][_0x541a('0x2a')](_0x2f6f40))return;const _0x52a4c6=this['_annotationToNarrowView'][_0x541a('0x2e')](_0x2f6f40)[_0x541a('0x7')],_0x39a040=function(){const _0x5dcf8f=_0x5de32f[_0x541a('0xb')];return[_0x5dcf8f[_0x541a('0x1c')],_0x5dcf8f['northArrowSouthEast'],_0x5dcf8f['southArrowNorth'],_0x5dcf8f[_0x541a('0x3')],_0x5dcf8f['southArrowNorthWest'],_0x5dcf8f['northArrowSouthWest']];}();this[_0x541a('0x53')][_0x541a('0x0')]({'target':_0x52a4c6,'positions':_0x39a040});}[_0x541a('0x4')](){const _0x36b840=this[_0x541a('0x53')],_0x23f01a=_0x36b840['content']['first'];_0x23f01a&&(this['_detachListeners'](_0x23f01a),_0x36b840[_0x541a('0x51')](),_0x36b840['content']['clear']());}['_attachListeners'](_0x39acba){this[_0x541a('0xf')](_0x39acba,_0x541a('0x4e'),()=>this[_0x541a('0xc')]()),this['listenTo'](_0x39acba,'Esc',(_0x973a57,_0x28a6b9)=>{this[_0x541a('0x21')]['add'](_0x39acba),this['_hideBalloon'](),_0x28a6b9();});}[_0x541a('0x11')](_0x31e3f7){this[_0x541a('0x44')](_0x31e3f7);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5326=['_setItemTop','_alignBeforeItem','bottom','isActive','view','element','_annotations','locale','listenTo','pluginName','class','container','list','render','refresh','change:targetRect','sidebar-setcontainer-invalid-element','sidebar-attachtocontainer-missing-container','_getTargetTop','change:top','_activeAnnotation','_annotationToSidebarItemView','max','_lastItem','delete','set','sidebar.container','add','_sidebarItemViewToAnnotation','_updateLastItem','getSidebarItemView','define','_getItemBefore','destroy','targetRect','last','target','stopListening','_spaceBetweenItems','bind','isAnimationDisabled','_getMaxAvailableTop','clear','content','remove','context','_detachFromContainer','_alignToTargetRect','sidebar.preventScrollOutOfView','get','_attachToContainer','getIndex','_createSidebarView','appendChild','_destroySidebarItemView','length','updateHeight','addAnnotation','Sidebar','change:bottom','top','_targetTop','setContainer','_alignAfterItem','unbind','minHeight','rearrange','config'];(function(_0x46207d,_0x532629){const _0x37d201=function(_0x25c24c){while(--_0x25c24c){_0x46207d['push'](_0x46207d['shift']());}};_0x37d201(++_0x532629);}(_0x5326,0x18a));const _0x37d2=function(_0x46207d,_0x532629){_0x46207d=_0x46207d-0x0;let _0x37d201=_0x5326[_0x46207d];return _0x37d201;};import{ContextPlugin as _0x208e37}from'ckeditor5/src/core';import _0x4683bb from'./view/sidebarview';import _0x37d975 from'./view/sidebaritemview';import{Rect as _0x55cf78,CKEditorError as _0x599766}from'ckeditor5/src/utils';import{isElement as _0x4ad290,throttle as _0x254be6}from'lodash-es';export default class b extends _0x208e37{static get[_0x37d2('0x17')](){return _0x37d2('0x4');}constructor(_0x56e398){super(_0x56e398),this[_0x37d2('0x27')](_0x37d2('0x25')),this[_0x37d2('0x12')]=this[_0x37d2('0x42')](),this[_0x37d2('0x27')](_0x37d2('0x19'),null),this[_0x37d2('0x34')]=0x19,this[_0x37d2('0x2a')]=new Map(),this[_0x37d2('0x23')]=new Map(),this['context']['config'][_0x37d2('0x2d')](_0x37d2('0x3e'),!0x1),this[_0x37d2('0x14')]=null,this[_0x37d2('0x22')]=null;}['init'](){const _0x46d141=this[_0x37d2('0x3b')][_0x37d2('0xd')][_0x37d2('0x3f')](_0x37d2('0x28'));_0x46d141&&this[_0x37d2('0x8')](_0x46d141);}[_0x37d2('0x8')](_0x3ca4cb){if(!_0x4ad290(_0x3ca4cb))throw new _0x599766(_0x37d2('0x1e'));this[_0x37d2('0x19')]=_0x3ca4cb;}[_0x37d2('0x40')]({viewClass:_0x2e4f19='',spaceBetweenItems:_0x4ade53=0x19}={}){if(!_0x4ad290(this['container']))throw new _0x599766(_0x37d2('0x1f'),this);this[_0x37d2('0x19')][_0x37d2('0x43')](this[_0x37d2('0x12')]['element']),this['view']['class']=_0x2e4f19,this['_spaceBetweenItems']=_0x4ade53;}[_0x37d2('0xc')]({removedAnnotation:_0x7062b6,previousAnnotation:_0x1047cf,nextAnnotation:_0x9e7bd8}){const _0x3bc7ec=this[_0x37d2('0x2c')](_0x7062b6);this['view'][_0x37d2('0x1a')]['remove'](_0x3bc7ec),this['_destroySidebarItemView'](_0x7062b6),_0x1047cf&&this['_alignToTargetRect'](this[_0x37d2('0x2c')](_0x1047cf)),_0x9e7bd8&&this[_0x37d2('0x3d')](this[_0x37d2('0x2c')](_0x9e7bd8)),this[_0x37d2('0x2b')]();}[_0x37d2('0x1c')]({blurredAnnotation:_0xd8dd03,activatedAnnotation:_0x2ced9c,disableAnimationOnActivatedAnnotation:_0x42cfc3}){if(this[_0x37d2('0x22')]=_0x2ced9c,_0xd8dd03){_0xd8dd03[_0x37d2('0x11')]=!0x1;const _0x25c137=this[_0x37d2('0x2c')](_0xd8dd03);_0x25c137&&_0x42cfc3&&(_0x25c137[_0x37d2('0x36')]=!0x1);}if(_0x2ced9c){const _0x1fa299=this[_0x37d2('0x2c')](_0x2ced9c);_0x1fa299&&(_0x2ced9c[_0x37d2('0x11')]=!0x0,_0x42cfc3&&(_0x1fa299[_0x37d2('0x36')]=!0x0,_0x1fa299['top']+=0x1),this[_0x37d2('0x3d')](_0x1fa299));}}[_0x37d2('0x3c')](_0x38c9e4){this['stopListening'](),this['view'][_0x37d2('0x13')][_0x37d2('0x3a')]();for(const _0x336bfa of _0x38c9e4)this[_0x37d2('0x0')](_0x336bfa);this[_0x37d2('0x12')]['list'][_0x37d2('0x38')](),this['view'][_0x37d2('0x18')]='',this[_0x37d2('0x25')]=null;}[_0x37d2('0x3')](_0x2b93c6,_0x24dca4){_0x24dca4||(_0x24dca4=_0x2b93c6[_0x37d2('0x12')]);const _0x27ef6d=new _0x37d975(this[_0x37d2('0x3b')][_0x37d2('0x15')]);this[_0x37d2('0x2a')][_0x37d2('0x27')](_0x27ef6d,_0x2b93c6),this[_0x37d2('0x23')][_0x37d2('0x27')](_0x2b93c6,_0x27ef6d),_0x27ef6d[_0x37d2('0x39')]['add'](_0x24dca4),this[_0x37d2('0x3d')](_0x27ef6d),this[_0x37d2('0x16')](_0x2b93c6[_0x37d2('0x12')],_0x37d2('0x1d'),()=>{const _0x23b5c6=this[_0x37d2('0x20')](_0x27ef6d);_0x27ef6d[_0x37d2('0x7')]!=_0x23b5c6&&(_0x27ef6d[_0x37d2('0x7')]=_0x23b5c6,this['_setItemTop'](_0x27ef6d,_0x23b5c6));}),this[_0x37d2('0x16')](_0x27ef6d,_0x37d2('0x21'),_0x254be6(()=>{if(!_0x27ef6d[_0x37d2('0x39')][_0x37d2('0x1')])return;const _0x20c15a=this[_0x37d2('0x2e')](_0x27ef6d);if(!_0x20c15a)return;const _0x277755=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x20c15a),_0xd096a4=this[_0x37d2('0x22')];_0xd096a4&&_0xd096a4===_0x277755?this[_0x37d2('0x9')](_0x20c15a,_0x27ef6d):this['_alignBeforeItem'](_0x27ef6d,_0x20c15a);},0xa,{'leading':!0x1})),this['listenTo'](_0x27ef6d,_0x37d2('0x5'),_0x254be6(()=>{if(!_0x27ef6d[_0x37d2('0x39')][_0x37d2('0x1')])return;const _0x867dd3=this['_getItemAfter'](_0x27ef6d);if(!_0x867dd3)return;const _0x17460d=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x867dd3),_0x5dd571=this[_0x37d2('0x3b')][_0x37d2('0xd')][_0x37d2('0x3f')](_0x37d2('0x3e')),_0x57ac25=this[_0x37d2('0x22')];_0x57ac25&&_0x57ac25===_0x17460d&&_0x5dd571?(this[_0x37d2('0xf')](_0x867dd3,_0x27ef6d),this[_0x37d2('0x9')](_0x27ef6d,_0x867dd3)):_0x57ac25&&_0x57ac25===_0x17460d?this['_alignBeforeItem'](_0x867dd3,_0x27ef6d):this[_0x37d2('0x9')](_0x27ef6d,_0x867dd3);},0xa,{'leading':!0x1}));const _0x5a0e22=this[_0x37d2('0x2e')](_0x27ef6d);if(_0x5a0e22)this[_0x37d2('0x9')](_0x5a0e22,_0x27ef6d)||this[_0x37d2('0x3d')](_0x27ef6d);else this[_0x37d2('0x3d')](_0x27ef6d);return this[_0x37d2('0x2b')](),this[_0x37d2('0x12')]['list'][_0x37d2('0x29')](_0x27ef6d),_0x27ef6d;}['getSidebarItemView'](_0x5e7047){return this[_0x37d2('0x23')][_0x37d2('0x3f')](_0x5e7047);}[_0x37d2('0x2f')](){this[_0x37d2('0x12')][_0x37d2('0x2f')]();}[_0x37d2('0x0')](_0x50ff27){const _0x532cbe=this[_0x37d2('0x2c')](_0x50ff27);this[_0x37d2('0x33')](_0x532cbe),this['stopListening'](_0x50ff27[_0x37d2('0x12')]),_0x532cbe[_0x37d2('0x2f')](),this[_0x37d2('0x23')][_0x37d2('0x26')](_0x50ff27),this[_0x37d2('0x2a')][_0x37d2('0x26')](_0x532cbe);}[_0x37d2('0x42')](){const _0x185312=new _0x4683bb(this['context'][_0x37d2('0x15')]);return _0x185312[_0x37d2('0x1b')](),this['on']('change:_lastItem',(_0x5857d4,_0x286861,_0x58deee,_0x1ea0ad)=>{_0x1ea0ad&&_0x185312[_0x37d2('0xa')](_0x37d2('0xb')),_0x58deee?_0x185312[_0x37d2('0x35')]('minHeight')['to'](_0x58deee,_0x37d2('0x10')):_0x185312[_0x37d2('0xb')]=null;}),_0x185312;}[_0x37d2('0x2b')](){this['_lastItem']=this['getSidebarItemView'](this[_0x37d2('0x14')][_0x37d2('0x31')]);}['_getItemBefore'](_0x14b069){const _0x521ecc=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x14b069),_0x3a5703=this[_0x37d2('0x14')]['get'](this[_0x37d2('0x14')][_0x37d2('0x41')](_0x521ecc)-0x1);return _0x3a5703&&this['getSidebarItemView'](_0x3a5703);}['_getItemAfter'](_0x4919c5){const _0x70107d=this[_0x37d2('0x2a')]['get'](_0x4919c5),_0xb820a2=this['_annotations'][_0x37d2('0x3f')](this[_0x37d2('0x14')][_0x37d2('0x41')](_0x70107d)+0x1);return _0xb820a2&&this[_0x37d2('0x2c')](_0xb820a2);}[_0x37d2('0xf')](_0x3dd0b7,_0x3116fe){_0x3dd0b7['updateHeight']();const _0x3d4e6c=H(_0x3116fe[_0x37d2('0x10')]+this[_0x37d2('0x34')],_0x3dd0b7[_0x37d2('0x6')]);return!!_0x3d4e6c&&(this[_0x37d2('0xe')](_0x3116fe,_0x3116fe[_0x37d2('0x6')]-_0x3d4e6c),!0x0);}[_0x37d2('0x9')](_0x53d0fb,_0x8aeffa){_0x53d0fb[_0x37d2('0x2')]();const _0x3c8e7f=H(_0x53d0fb[_0x37d2('0x10')]+this[_0x37d2('0x34')],_0x8aeffa['top']);return!!_0x3c8e7f&&(this['_setItemTop'](_0x8aeffa,_0x8aeffa['top']+_0x3c8e7f,!0x1),!0x0);}[_0x37d2('0x3d')](_0x459d96){const _0x2dffc9=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x459d96);if(!_0x2dffc9||!_0x2dffc9[_0x37d2('0x32')])return;const _0x1e7b30=this[_0x37d2('0x20')](_0x459d96);this[_0x37d2('0xe')](_0x459d96,_0x1e7b30);}[_0x37d2('0x20')](_0x1e7d5f){const _0x1e6154=this[_0x37d2('0x2a')][_0x37d2('0x3f')](_0x1e7d5f);if(null===_0x1e6154[_0x37d2('0x30')])return 0x0;if(_0x1e6154[_0x37d2('0x32')]instanceof _0x55cf78)return _0x1e6154[_0x37d2('0x30')][_0x37d2('0x6')];{const _0x58d4c4=new _0x55cf78(this[_0x37d2('0x12')]['element'])[_0x37d2('0x6')];return _0x1e6154['targetRect']['top']-_0x58d4c4;}}[_0x37d2('0xe')](_0x2fc474,_0x7384fa,_0x3cda8a=this[_0x37d2('0x3b')]['config'][_0x37d2('0x3f')](_0x37d2('0x3e'))){_0x3cda8a&&(_0x7384fa=Math[_0x37d2('0x24')](_0x7384fa,this['_getMaxAvailableTop'](_0x2fc474))),_0x2fc474[_0x37d2('0x6')]=_0x7384fa;}[_0x37d2('0x37')](_0x5e3cfc){let _0x391865=this[_0x37d2('0x2e')](_0x5e3cfc),_0x24e948=0x0;for(;_0x391865;)_0x391865[_0x37d2('0x2')](),_0x24e948+=this[_0x37d2('0x34')]+_0x391865['height'],_0x391865=this['_getItemBefore'](_0x391865);return _0x24e948;}}function H(_0x10742f,_0x26e95a){return Math[_0x37d2('0x24')](_0x10742f-_0x26e95a,0x0);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x128a=['span','annotationType','setTemplate','isDirty','icon','add','counterView','ck-annotation-counter__badge--edit-mode','set','bindTemplate','children','...','_badge','bind','ck-annotation-counter__badge','extendTemplate','number','ck-annotation-counter'];(function(_0x146c94,_0x128ab9){const _0x25717e=function(_0x570d8e){while(--_0x570d8e){_0x146c94['push'](_0x146c94['shift']());}};_0x25717e(++_0x128ab9);}(_0x128a,0xb9));const _0x2571=function(_0x146c94,_0x128ab9){_0x146c94=_0x146c94-0x0;let _0x25717e=_0x128a[_0x146c94];return _0x25717e;};import{ButtonView as _0x41a802,View as _0x136bb1}from'ckeditor5/src/ui';import _0x2366e7 from'../../../theme/icons/add-comment.svg';export default class B extends _0x41a802{constructor(_0x4a674d){super(_0x4a674d);const _0x560b1b=this[_0x2571('0x4')];this[_0x2571('0x3')]('isDirty',!0x1),this['set'](_0x2571('0xb'),0x0),this[_0x2571('0x8')](_0x2571('0x7'))['to'](this,'isDirty',this,'number',(_0x1417ea,_0x5d506e)=>_0x1417ea?_0x2571('0x6'):_0x5d506e),this['set'](_0x2571('0xe'),''),this[_0x2571('0x11')]=_0x2366e7,this[_0x2571('0xa')]({'attributes':{'class':[_0x2571('0xc')]}}),this[_0x2571('0x1')]=new _0x136bb1(),this['counterView'][_0x2571('0xf')]({'tag':_0x2571('0xd'),'attributes':{'class':[_0x2571('0x9'),_0x560b1b['to']('annotationType',_0x59f746=>'ck-annotation-counter__badge--'+_0x59f746),_0x560b1b['if'](_0x2571('0x10'),_0x2571('0x2'))]},'children':[{'text':_0x560b1b['to'](_0x2571('0x7'))}]}),this[_0x2571('0x5')][_0x2571('0x0')](this['counterView']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x312d=['createCollection','targetRect','element','focus','clientHeight','div','isDirty','ck-rounded-corners','detach','add','set','ck-annotation-wrapper','content','length','bindTemplate','height','render','keystrokes','Esc','destroy','fire','attach','type','_updateHeight','isActive','focusTracker','_mutationObserver'];(function(_0x1fe922,_0x312d78){const _0x506528=function(_0x8253bb){while(--_0x8253bb){_0x1fe922['push'](_0x1fe922['shift']());}};_0x506528(++_0x312d78);}(_0x312d,0xea));const _0x5065=function(_0x1fe922,_0x312d78){_0x1fe922=_0x1fe922-0x0;let _0x506528=_0x312d[_0x1fe922];return _0x506528;};import{View as _0x1ba9e9}from'ckeditor5/src/ui';import{FocusTracker as _0x39034f,KeystrokeHandler as _0x18aeed,uid as _0x43495e}from'ckeditor5/src/utils';import _0x26fa64 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x1ba9e9{constructor(_0x29d37e,_0x2c1bdf){super(_0x29d37e),this['id']=_0x43495e(),this['focusTracker']=new _0x39034f(),this[_0x5065('0x1a')]=new _0x18aeed(),this[_0x5065('0x1a')]['set'](_0x5065('0x0'),(_0x123177,_0x4ece0f)=>this[_0x5065('0x2')]('Esc',_0x4ece0f)),this[_0x5065('0x13')](_0x5065('0xa'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x5065('0x18'),0x0),this['set']('isActive',!0x1),this[_0x5065('0x13')](_0x5065('0xf'),!0x1),this[_0x5065('0x13')](_0x5065('0x16'),0x0),this[_0x5065('0x13')](_0x5065('0x4'),''),this[_0x5065('0x8')]=_0x26fa64(()=>this[_0x5065('0x5')]()),this[_0x5065('0x15')]=this[_0x5065('0x9')](),this[_0x5065('0x15')][_0x5065('0x12')](_0x2c1bdf),this['mainView']=_0x2c1bdf;const _0xed74d2=this[_0x5065('0x17')];this['setTemplate']({'tag':_0x5065('0xe'),'attributes':{'class':['ck',_0x5065('0x14'),_0x5065('0x10'),_0xed74d2['if'](_0x5065('0x6'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x5065('0x15')]});}['render'](){super[_0x5065('0x19')](),this['focusTracker'][_0x5065('0x12')](this[_0x5065('0xb')]),this[_0x5065('0x1a')]['listenTo'](this['element']),this[_0x5065('0x8')][_0x5065('0x3')](this['element']);}[_0x5065('0x1')](){this[_0x5065('0x15')]['clear'](),this[_0x5065('0x1a')][_0x5065('0x1')](),this[_0x5065('0x7')][_0x5065('0x1')](),this[_0x5065('0x8')][_0x5065('0x11')](),super['destroy']();}['focus'](){this[_0x5065('0xb')][_0x5065('0xc')]();}[_0x5065('0x5')](){const _0x204246=this['element'][_0x5065('0xd')];_0x204246&&(this['height']=_0x204246);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8ce5=['destroy','detach','createCollection','div','isAnimationDisabled','_targetTop','_mutationObserver','element','content','render','height','top','bindTemplate','updateHeight'];(function(_0x578122,_0x8ce57d){const _0x1f0aa9=function(_0xe02cb3){while(--_0xe02cb3){_0x578122['push'](_0x578122['shift']());}};_0x1f0aa9(++_0x8ce57d);}(_0x8ce5,0x1d3));const _0x1f0a=function(_0x578122,_0x8ce57d){_0x578122=_0x578122-0x0;let _0x1f0aa9=_0x8ce5[_0x578122];return _0x1f0aa9;};import{View as _0x35d645}from'ckeditor5/src/ui';import{toUnit as _0x43db09}from'ckeditor5/src/utils';import _0xb2aaa6 from'../../utils/createmutationobserver';const ft=_0x43db09('px');export default class C extends _0x35d645{constructor(_0x18fd09){super(_0x18fd09),this['set'](_0x1f0a('0x6')),this['set']('height',0x0),this['bind']('bottom')['to'](this,_0x1f0a('0x6'),this,_0x1f0a('0x5'),(_0x430026,_0x2ce723)=>(_0x430026||0x0)+_0x2ce723),this['set'](_0x1f0a('0xd'),!0x1),this[_0x1f0a('0x1')]=_0xb2aaa6(()=>this[_0x1f0a('0x8')]()),this[_0x1f0a('0x0')]=null,this['content']=this[_0x1f0a('0xb')]();const _0x4a20bc=this[_0x1f0a('0x7')];this['setTemplate']({'tag':_0x1f0a('0xc'),'attributes':{'class':['ck-sidebar-item',_0x4a20bc['to']('isAnimationDisabled',_0x5539db=>_0x5539db?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x4a20bc['to'](_0x1f0a('0x6'),ft)}},'children':this[_0x1f0a('0x3')]});}[_0x1f0a('0x4')](){super[_0x1f0a('0x4')](),this[_0x1f0a('0x1')]['attach'](this[_0x1f0a('0x2')]);}['updateHeight'](){const _0x225a7e=this['element']['clientHeight'];_0x225a7e&&(this[_0x1f0a('0x5')]=_0x225a7e);}[_0x1f0a('0x9')](){this[_0x1f0a('0x3')]['clear'](),this['_mutationObserver'][_0x1f0a('0xa')](),super[_0x1f0a('0x9')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcfdc=['list','ck-reset','set','div','minHeight','class','createCollection','setTemplate'];(function(_0x2bc717,_0xcfdcd2){const _0x58af96=function(_0x4dcc3b){while(--_0x4dcc3b){_0x2bc717['push'](_0x2bc717['shift']());}};_0x58af96(++_0xcfdcd2);}(_0xcfdc,0x11c));const _0x58af=function(_0x2bc717,_0xcfdcd2){_0x2bc717=_0x2bc717-0x0;let _0x58af96=_0xcfdc[_0x2bc717];return _0x58af96;};import{View as _0x5b2a36}from'ckeditor5/src/ui';import{toUnit as _0x2565be}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x2565be('px');export default class T extends _0x5b2a36{constructor(_0x3af59d){super(_0x3af59d);const _0x279c78=this['bindTemplate'];this['set'](_0x58af('0x0'),0x0),this[_0x58af('0x6')]('class',''),this[_0x58af('0x4')]=this[_0x58af('0x2')](),this[_0x58af('0x3')]({'tag':_0x58af('0x7'),'attributes':{'class':['ck','ck-sidebar',_0x58af('0x5'),_0x279c78['to'](_0x58af('0x1'))],'style':{'minHeight':_0x279c78['to'](_0x58af('0x0'),_0x264eb0=>_0x264eb0?ft(_0x264eb0+0xa):null)}},'children':this[_0x58af('0x4')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21fe=['setActiveAnnotation','_annotations','get','resize','attach','addEventListener','remove','widesidebar-detach-not-attached','rearrange','isAttached','updateTargetRect','container','editors','blur','_editorAnnotations','stopListening','ready','plugins','detach','listenTo','off','from','stop','destroy','context','widesidebar-attach-already-attached','_integrateWithEditorAnnotations','focus','addAnnotation','_attachToContainer','hasDomSelection','wideSidebar','WideSidebar','uiUpdate','annotations','activeAnnotation','add','Sidebar','refresh','high','has','ck-sidebar--wide','switchTo','_activeAnnotation','_throttledPositioningRefresh','_detachFromContainer','EditorAnnotations','register','init','_destroyEditorAnnotationsIntegration','refreshPositioning'];(function(_0x43111f,_0x21fe7e){const _0x486e4a=function(_0x4d0416){while(--_0x4d0416){_0x43111f['push'](_0x43111f['shift']());}};_0x486e4a(++_0x21fe7e);}(_0x21fe,0x17d));const _0x486e=function(_0x43111f,_0x21fe7e){_0x43111f=_0x43111f-0x0;let _0x486e4a=_0x21fe[_0x43111f];return _0x486e4a;};import{ContextPlugin as _0x330b56}from'ckeditor5/src/core';import _0x4e94e1 from'./annotationsuis';import _0x2644a9 from'./sidebar';import{CKEditorError as _0x471e26,Collection as _0x36c897}from'ckeditor5/src/utils';import{throttle as _0x112d5c}from'lodash-es';export default class i extends _0x330b56{static get['requires'](){return[_0x2644a9,_0x4e94e1];}static get['pluginName'](){return _0x486e('0x8');}constructor(_0x594f14){super(_0x594f14),this[_0x486e('0x24')]=!0x1,this['set'](_0x486e('0xb'),null),this[_0x486e('0xa')]=null,this[_0x486e('0x29')]=new _0x36c897(),this[_0x486e('0x14')]=_0x112d5c(()=>{this[_0x486e('0xa')][_0x486e('0x1a')]();},0x190,{'leading':!0x1});}[_0x486e('0x18')](){const _0x15587e=this['context'][_0x486e('0x2c')][_0x486e('0x1d')](_0x4e94e1),_0x3a57fe=this[_0x486e('0x0')][_0x486e('0x2c')][_0x486e('0x1d')](_0x2644a9);_0x15587e[_0x486e('0x17')](_0x486e('0x7'),this),_0x3a57fe[_0x486e('0x26')]&&_0x15587e[_0x486e('0x12')]('wideSidebar');}[_0x486e('0x1b')](_0x679e97){if(_0x679e97===this[_0x486e('0xb')])return;const _0x221db7=this['context'][_0x486e('0x2c')][_0x486e('0x1d')](_0x2644a9);_0x221db7[_0x486e('0x13')]=_0x679e97;const _0x26d069=this[_0x486e('0xb')];this[_0x486e('0xb')]=_0x679e97,_0x221db7[_0x486e('0xe')]({'blurredAnnotation':_0x26d069,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x2cbc47){this[_0x486e('0xa')]=_0x2cbc47;const _0x284a74=this[_0x486e('0x0')][_0x486e('0x2c')][_0x486e('0x1d')](_0x486e('0xd'));if(_0x284a74[_0x486e('0x1c')]=_0x2cbc47,this[_0x486e('0x24')])throw new _0x471e26(_0x486e('0x1'),this);this[_0x486e('0x24')]=!0x0,this[_0x486e('0x2e')](_0x284a74,'set:container',()=>{this[_0x486e('0x2d')](),this[_0x486e('0x2e')](_0x284a74,'change:container',_0x26776b=>{_0x26776b[_0x486e('0x2f')](),this[_0x486e('0x1f')](_0x2cbc47);});}),_0x284a74[_0x486e('0x5')]({'viewClass':_0x486e('0x11')});const _0x81b864=_0x2c89d0=>{_0x2c89d0[_0x486e('0x25')](),_0x284a74[_0x486e('0x4')](_0x2c89d0);};for(const _0xa36a7e of _0x2cbc47)_0x81b864(_0xa36a7e);this[_0x486e('0x2e')](_0x2cbc47,'add',(_0x11410d,_0x9c2ffc)=>{_0x81b864(_0x9c2ffc);}),this['listenTo'](_0x2cbc47,_0x486e('0x21'),(_0x34006d,_0x393326,_0x243438)=>{_0x284a74[_0x486e('0x23')]({'removedAnnotation':_0x393326,'previousAnnotation':_0x2cbc47[_0x486e('0x1d')](_0x243438-0x1),'nextAnnotation':_0x2cbc47[_0x486e('0x1d')](_0x243438+0x1)}),_0x393326===this[_0x486e('0xb')]&&this[_0x486e('0x1b')](null);},{'priority':_0x486e('0xf')}),this[_0x486e('0x2e')](_0x2cbc47,_0x486e('0x3'),(_0x1bddf4,_0x4ef05e)=>{this[_0x486e('0x1b')](_0x4ef05e);}),this[_0x486e('0x2e')](_0x2cbc47,_0x486e('0x28'),()=>{this['setActiveAnnotation'](null);});const _0x23c300=this[_0x486e('0x0')][_0x486e('0x27')]?this['context'][_0x486e('0x27')]:new _0x36c897([this[_0x486e('0x0')]]);for(const _0x2f0135 of _0x23c300)this[_0x486e('0x2')](_0x2f0135);this[_0x486e('0x2e')](_0x23c300,_0x486e('0xc'),(_0x20a3ee,_0xa38c33)=>{this[_0x486e('0x2e')](_0xa38c33,_0x486e('0x2b'),()=>{this[_0x486e('0x2')](_0xa38c33);});}),this[_0x486e('0x2e')](_0x23c300,_0x486e('0x21'),(_0x565e5d,_0x24ab4d)=>{_0x24ab4d[_0x486e('0x2c')][_0x486e('0x10')]('EditorAnnotations')&&this[_0x486e('0x19')](_0x24ab4d[_0x486e('0x2c')]['get']('EditorAnnotations'));}),window[_0x486e('0x20')](_0x486e('0x1e'),this['_throttledPositioningRefresh']),this['annotations'][_0x486e('0x1a')]();}[_0x486e('0x2d')](){if(!this[_0x486e('0x24')])throw new _0x471e26(_0x486e('0x22'),this);this[_0x486e('0x1b')](null);const _0x4a3e7b=this['context'][_0x486e('0x2c')][_0x486e('0x1d')](_0x2644a9);_0x4a3e7b[_0x486e('0x15')](this[_0x486e('0xa')]),this[_0x486e('0x2a')](_0x4a3e7b),this[_0x486e('0x2a')](this[_0x486e('0xa')]),this[_0x486e('0x2a')](this['context']['editors']);for(const _0x5619d2 of Array[_0x486e('0x30')](this[_0x486e('0x29')]))this[_0x486e('0x19')](_0x5619d2);window['removeEventListener'](_0x486e('0x1e'),this[_0x486e('0x14')]),this[_0x486e('0x14')]['cancel'](),this['activeAnnotation']=null,this[_0x486e('0x24')]=!0x1,this[_0x486e('0xa')]=null;}[_0x486e('0x32')](){this['isAttached']&&this[_0x486e('0x2d')]();}['_integrateWithEditorAnnotations'](_0x1989eb){const _0x339a05=_0x1989eb['plugins']['get'](_0x486e('0x16'));if(!_0x339a05)return;const _0x46490b=()=>{const _0x37175d=_0x339a05['getOrderedSelectedAnnotations']({'annotations':this[_0x486e('0xa')],'activeAnnotation':this[_0x486e('0xb')]});this[_0x486e('0x1b')](_0x37175d[0x0]||null);};this[_0x486e('0x2e')](_0x339a05,'refresh',_0x46490b),this[_0x486e('0x2e')](_0x339a05,_0x486e('0x28'),(_0x385902,{isAnnotationTracked:_0x3557ca})=>{this[_0x486e('0xb')]&&_0x3557ca(this[_0x486e('0xb')])&&this[_0x486e('0x1b')](null);}),this[_0x486e('0x2e')](_0x339a05,_0x486e('0x9'),()=>{this[_0x486e('0xa')][_0x486e('0x1a')]();}),this['listenTo'](this[_0x486e('0xa')],_0x486e('0x28'),_0x40a026=>{_0x339a05[_0x486e('0x6')]()&&(_0x46490b(),_0x40a026[_0x486e('0x31')]());},{'priority':'high'}),this[_0x486e('0x29')][_0x486e('0xc')](_0x339a05);}[_0x486e('0x19')](_0x4b495a){_0x4b495a&&(this[_0x486e('0x2a')](_0x4b495a),this['_editorAnnotations'][_0x486e('0x21')](_0x4b495a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46f7=['substr','tableCell','backward','change','execute','comment:','createRange','getLastMatchingPosition','getItems','element','end','refresh','editor','selection','textProxy','isObject','isEnabled','document','item','model','_hasContent','_itemIsContent','push','getRanges','_trimToContent'];(function(_0x5ef432,_0x46f7e4){const _0x3d28da=function(_0x2a0eae){while(--_0x2a0eae){_0x5ef432['push'](_0x5ef432['shift']());}};_0x3d28da(++_0x46f7e4);}(_0x46f7,0x1f3));const _0x3d28=function(_0x5ef432,_0x46f7e4){_0x5ef432=_0x5ef432-0x0;let _0x3d28da=_0x46f7[_0x5ef432];return _0x3d28da;};import{Command as _0xd0b44d}from'ckeditor5/src/core';import{uid as _0x372bbf}from'ckeditor5/src/utils';export default class j extends _0xd0b44d{[_0x3d28('0xc')](){const _0xdd47d5=this[_0x3d28('0xd')][_0x3d28('0x14')][_0x3d28('0x12')][_0x3d28('0xe')];for(const _0x3bad29 of _0xdd47d5[_0x3d28('0x18')]())if(this[_0x3d28('0x15')](_0x3bad29))return void(this[_0x3d28('0x11')]=!0x0);this[_0x3d28('0x11')]=!0x1;}[_0x3d28('0x5')]({threadId:_0x52676f=_0x372bbf()}={}){const _0x4592fa=this[_0x3d28('0xd')][_0x3d28('0x14')],_0x4991de=[];for(const _0x3d4071 of _0x4592fa[_0x3d28('0x12')]['selection'][_0x3d28('0x18')]())this[_0x3d28('0x15')](_0x3d4071)&&_0x4991de[_0x3d28('0x17')](this[_0x3d28('0x0')](_0x3d4071));_0x4592fa[_0x3d28('0x4')](_0x449b4d=>{for(const _0x2ec58d of _0x4991de){const _0x37e3d0=_0x372bbf()[_0x3d28('0x1')](0x1,0x5),_0x873843=_0x3d28('0x6')+_0x52676f+':'+_0x37e3d0;_0x449b4d['addMarker'](_0x873843,{'range':_0x2ec58d,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x3d28('0x15')](_0x1c436f){for(const _0x15e85c of _0x1c436f[_0x3d28('0x9')]())if(this[_0x3d28('0x16')](_0x15e85c))return!0x0;return!0x1;}[_0x3d28('0x16')](_0x4db5b0){return _0x4db5b0['is'](_0x3d28('0xf'))||this[_0x3d28('0xd')][_0x3d28('0x14')]['schema'][_0x3d28('0x10')](_0x4db5b0)&&!_0x4db5b0['is'](_0x3d28('0xa'),_0x3d28('0x2'));}[_0x3d28('0x0')](_0x117d00){const _0x17a819=_0x3186d3=>!this[_0x3d28('0x16')](_0x3186d3[_0x3d28('0x13')]),_0x5896c6=_0x117d00['start'][_0x3d28('0x8')](_0x17a819),_0x6de4e8=_0x117d00[_0x3d28('0xb')]['getLastMatchingPosition'](_0x17a819,{'direction':_0x3d28('0x3')});return this[_0x3d28('0xd')][_0x3d28('0x14')][_0x3d28('0x7')](_0x5896c6,_0x6de4e8);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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;}
|
|
23
|
+
const _0x3f72=['dataDowncast','$graveyard','hasCommentThread','ready','getAttribute','getCommentThread','get','activeMarker','split','render','once','size','editor','low','config','hasContent','newRange','collaboration.channelId','_attachedThreads','root','$marker','plugins','set','has','CommentsRepository','start','createRange','stop','_threads','name','view','top','change','managedUsingOperations','commands','for','listenTo','schema','switchReadOnly','reconvertMarker','change:isThreadsLoadingPaused','CommentsEditing','_handleMarkerAddAndRemove','registerPostFixer','text','add','markerToData','dataToMarker','update:comment','upcast','destroyed','updateMarker','delete','length','left','elementToElement','isCollapsed','addComment','ck-comment-marker--active','fetchCommentThread','editing','markers','comment:','removeMarker','conversion','createPositionBefore','ck-comment-marker','model','getWalker','removeCommentThread','requires','change:isReadOnly','comment','high','affectsData','getAllMarkersForId','_initializeMarkerConverters','_attachThreadToMarker','destroy','map','from','sort','document','isThreadsLoadingPaused'];(function(_0x5cf5da,_0x3f72f3){const _0x582bf7=function(_0x3a1d0b){while(--_0x3a1d0b){_0x5cf5da['push'](_0x5cf5da['shift']());}};_0x582bf7(++_0x3f72f3);}(_0x3f72,0x1ea));const _0x582b=function(_0x5cf5da,_0x3f72f3){_0x5cf5da=_0x5cf5da-0x0;let _0x582bf7=_0x3f72[_0x5cf5da];return _0x582bf7;};import{Plugin as _0x23d9bc}from'ckeditor5/src/core';import{Rect as _0x46024f}from'ckeditor5/src/utils';import _0x3dbb1f from'./commentsrepository';import _0x4ca897 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x145ee6}from'ckeditor5-collaboration/src/collaboration-core';import _0x149562 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x23d9bc{static get[_0x582b('0x0')](){return[_0x3dbb1f,_0x149562];}static get['pluginName'](){return _0x582b('0x37');}constructor(_0x1b2dc8){super(_0x1b2dc8),this['set']('isThreadsLoadingPaused',!0x0),_0x1b2dc8['data']['once'](_0x582b('0x11'),()=>this[_0x582b('0xd')]=!0x1),this[_0x582b('0x24')](_0x582b('0x15'),null),this['on']('change:activeMarker',(_0x3424b5,_0xec9fa6,_0x1b5355,_0x470f45)=>{_0x1b2dc8[_0x582b('0x51')]['change'](()=>{if(_0x1b5355){const {id:_0x4a9f9b}=G(_0x1b5355),_0xe856c9=this[_0x582b('0x5')](_0x4a9f9b);for(const _0x47340c of _0xe856c9)_0x1b2dc8[_0x582b('0x4a')][_0x582b('0x35')](_0x47340c);}if(_0x470f45){const {id:_0xc0da9c}=G(_0x470f45),_0x1294ca=this['getAllMarkersForId'](_0xc0da9c);for(const _0x511e30 of _0x1294ca)_0x1b2dc8['editing'][_0x582b('0x35')](_0x511e30);}});}),this[_0x582b('0x20')]=new Set();}['init'](){const _0x72b493=this[_0x582b('0x1a')],_0x2151ee=_0x72b493[_0x582b('0x23')]['get'](_0x582b('0x26')),_0x562fca=_0x72b493['config'][_0x582b('0x14')](_0x582b('0x1f'));_0x72b493[_0x582b('0x30')][_0x582b('0x3b')]('addCommentThread',new _0x4ca897(_0x72b493)),this[_0x582b('0x32')](_0x72b493,_0x582b('0x1'),(_0xf346ad,_0x2f8d1b,_0x2b7f83)=>{_0x2151ee[_0x582b('0x34')](_0x2b7f83,_0x72b493['config'][_0x582b('0x14')](_0x582b('0x1f')));}),this[_0x582b('0x32')](_0x2151ee,q(_0x582b('0x53'),_0x562fca),(_0xb0318f,{threadId:_0x1b3394})=>{_0x72b493[_0x582b('0x51')][_0x582b('0x2e')](_0x11e25b=>{for(const _0x1e5a69 of this['getAllMarkersForId'](_0x1b3394))_0x11e25b[_0x582b('0x4d')](_0x1e5a69);});const _0x43fb0c=_0x2151ee[_0x582b('0x13')](_0x1b3394);_0x2151ee[_0x582b('0x10')](_0x1b3394)&&!_0x43fb0c['length']||_0xb0318f[_0x582b('0x29')]();},{'priority':_0x582b('0x3')}),this[_0x582b('0x32')](_0x2151ee,q(_0x582b('0x47'),_0x562fca),(_0x206777,{threadId:_0x3e749f,isFromAdapter:_0x22e330})=>{const _0x5b15ab=this[_0x582b('0x5')](_0x3e749f);if(_0x22e330||0x0==_0x5b15ab[_0x582b('0x43')]||!_0x2151ee[_0x582b('0x10')](_0x3e749f))return;0x1===_0x2151ee[_0x582b('0x13')](_0x3e749f)['length']&&_0x72b493[_0x582b('0x51')]['change'](_0xe76431=>{for(const _0x150555 of _0x5b15ab)_0xe76431[_0x582b('0x41')](_0x150555,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x582b('0x1b')}),this[_0x582b('0x6')](),this['_handleMarkerAddAndRemove']();}[_0x582b('0x8')](){const _0x45a5e0=this[_0x582b('0x1a')][_0x582b('0x23')]['get'](_0x582b('0x26')),_0x5eb61a=this[_0x582b('0x1a')][_0x582b('0x1c')]['get']('collaboration.channelId');for(const _0xec2c30 of _0x45a5e0['getCommentThreads']({'channelId':_0x5eb61a}))_0x45a5e0['_detachCommentThread'](_0xec2c30['id']),_0x45a5e0[_0x582b('0x2a')][_0x582b('0x42')](_0xec2c30['id']);super['destroy']();}['hasMarkerForId'](_0x59a6c6){return this[_0x582b('0x5')](_0x59a6c6)['length']>0x0;}[_0x582b('0x5')](_0x9cfc87){const _0x1d33b1=this['editor'][_0x582b('0x51')][_0x582b('0x4b')]['get'](_0x582b('0x4c')+_0x9cfc87);return _0x1d33b1?[_0x1d33b1]:Array[_0x582b('0xa')](this[_0x582b('0x1a')][_0x582b('0x51')][_0x582b('0x4b')]['getMarkersGroup'](_0x582b('0x4c')+_0x9cfc87));}[_0x582b('0x6')](){const _0xde632c=this['editor'];_0xde632c[_0x582b('0x4e')][_0x582b('0x31')]('editingDowncast')['markerToHighlight']({'model':_0x582b('0x2'),'view':_0x2b45a7=>{const {id:_0x2ced41}=G(_0x2b45a7['markerName']),_0x2bad8e=[_0x582b('0x50')];return this['activeMarker']&&G(this['activeMarker'])['id']===_0x2ced41&&_0x2bad8e['push'](_0x582b('0x48')),{'classes':_0x2bad8e,'attributes':{'data-comment':_0x2ced41}};}}),_0xde632c[_0x582b('0x4e')][_0x582b('0x31')](_0x582b('0xe'))[_0x582b('0x3c')]({'model':_0x582b('0x2'),'view':_0x3d748b=>{const _0x12b81f=_0xde632c[_0x582b('0x51')]['markers'][_0x582b('0x14')](_0x3d748b),{id:_0x558025,part:_0x3772d7}=G(_0x3d748b);return _0x12b81f&&!_0x12b81f[_0x582b('0x4')]?null:{'group':'comment','name':_0x3772d7?_0x558025+':'+_0x3772d7:_0x558025};}}),_0xde632c[_0x582b('0x4e')][_0x582b('0x31')](_0x582b('0x3f'))[_0x582b('0x45')]({'view':{'name':_0x582b('0x2'),'attribute':{'id':/^\w/}},'model':(_0x2e12c5,{writer:_0x4e8dcd})=>_0x4e8dcd['createElement'](_0x582b('0x22'),{'data-name':'comment:'+_0x2e12c5[_0x582b('0x12')]('id')})}),_0xde632c[_0x582b('0x4e')][_0x582b('0x31')](_0x582b('0x3f'))[_0x582b('0x3d')]({'view':_0x582b('0x2')});}[_0x582b('0x38')](){const _0x3daf36=this[_0x582b('0x1a')],_0x13e44e=_0x3daf36[_0x582b('0x23')]['get'](_0x582b('0x26')),_0x44e53e=new Set();_0x3daf36[_0x582b('0x51')][_0x582b('0xc')][_0x582b('0x39')](_0x28882f=>{let _0x49a0ba=!0x1;for(const {name:_0x250569,data:_0x5c56cd}of _0x3daf36['model']['document']['differ']['getChangedMarkers']()){const {group:_0x32b0fe,id:_0xbf9ad3}=G(_0x250569);let _0x51fe12=_0x5c56cd[_0x582b('0x1e')];if(_0x582b('0x2')!==_0x32b0fe||!_0x51fe12)continue;const _0x3cc54c=_0x582b('0xf')===_0x51fe12[_0x582b('0x21')]['rootName'];_0x3cc54c||(_0x51fe12=J(_0x51fe12,_0x3daf36[_0x582b('0x51')]),!_0x51fe12||_0x51fe12['isEqual'](_0x5c56cd[_0x582b('0x1e')]))?!_0x51fe12||!_0x3daf36[_0x582b('0x51')][_0x582b('0x1d')](_0x51fe12)||this[_0x582b('0x20')][_0x582b('0x25')](_0xbf9ad3)&&_0x3cc54c?(_0x28882f[_0x582b('0x4d')](_0x250569),_0x49a0ba=!0x0):_0x3cc54c||(this['isThreadsLoadingPaused']?_0x44e53e['add'](_0xbf9ad3):this['_attachThreadToMarker'](_0xbf9ad3)):(_0x28882f[_0x582b('0x41')](_0x250569,{'range':_0x51fe12}),_0x49a0ba=!0x0);}return _0x49a0ba;}),this['on'](_0x582b('0x36'),(_0x104e3a,_0x257fb4,_0xa263ed)=>{if(!_0xa263ed&&_0x44e53e[_0x582b('0x19')])for(const _0x27f369 of _0x44e53e)this[_0x582b('0x7')](_0x27f369),_0x44e53e[_0x582b('0x42')](_0x27f369);}),this[_0x582b('0x32')](_0x3daf36[_0x582b('0x51')]['markers'],_0x582b('0x3e'),(_0x4ca6ac,_0x19ffa6,_0x34e147,_0x37642f)=>{if(_0x37642f)return;const {id:_0x1c8caf}=G(_0x19ffa6[_0x582b('0x2b')]),_0x208b53=_0x3daf36[_0x582b('0x23')]['get']('CommentsRepository')['getCommentThread'](_0x1c8caf);_0x44e53e[_0x582b('0x42')](_0x1c8caf),_0x208b53&&!this['hasMarkerForId'](_0x1c8caf)&&(this['_attachedThreads'][_0x582b('0x42')](_0x1c8caf),_0x13e44e['_detachCommentThread'](_0x1c8caf));});}[_0x582b('0x7')](_0x16a358){if(this[_0x582b('0x20')][_0x582b('0x25')](_0x16a358))return;this[_0x582b('0x20')][_0x582b('0x3b')](_0x16a358);const _0x1693ee=this[_0x582b('0x1a')],_0x56ac77=_0x1693ee['plugins'][_0x582b('0x14')](_0x582b('0x26')),_0x1ce548=_0x1693ee[_0x582b('0x1c')][_0x582b('0x14')](_0x582b('0x1f')),_0x35c326=()=>{const _0x15d087=this[_0x582b('0x5')](_0x16a358);if(0x0==_0x15d087['length'])return null;const _0x403b1e=_0x15d087[_0x582b('0x9')](_0x212e51=>_0x145ee6(_0x1693ee[_0x582b('0x4a')],_0x212e51));return _0x403b1e[_0x582b('0xb')]((_0x13cc03,_0x5c7671)=>{const _0x3c8e8a=new _0x46024f(_0x13cc03),_0x24cce4=new _0x46024f(_0x5c7671),_0xecd8f2=_0x3c8e8a[_0x582b('0x2d')]-_0x24cce4[_0x582b('0x2d')];return 0x0==_0xecd8f2?_0x3c8e8a[_0x582b('0x44')]-_0x24cce4[_0x582b('0x44')]:_0xecd8f2;}),_0x403b1e[0x0];};!this['getAllMarkersForId'](_0x16a358)[0x0][_0x582b('0x2f')]?_0x1693ee[_0x582b('0x4a')][_0x582b('0x2c')][_0x582b('0x18')](_0x582b('0x17'),()=>{_0x56ac77['openNewCommentThread']({'channelId':_0x1ce548,'threadId':_0x16a358,'target':_0x35c326});},{'priority':'low'}):_0x56ac77[_0x582b('0x49')]({'channelId':_0x1ce548,'threadId':_0x16a358})['then'](_0x337993=>{if(_0x582b('0x40')!==_0x1693ee['state']){if(_0x337993)_0x337993['attachTo'](_0x35c326);else{const _0x148a84=this[_0x582b('0x5')](_0x16a358);_0x1693ee[_0x582b('0x51')][_0x582b('0x2e')](_0x25f68b=>{for(const _0xb98590 of _0x148a84)_0x25f68b[_0x582b('0x4d')](_0xb98590);});}}});}}function q(_0x365f26,_0x422d5e){return _0x422d5e?_0x365f26+':'+_0x422d5e:_0x365f26;}function G(_0x10c251){const _0x40e293=_0x10c251[_0x582b('0x16')](':');return{'group':_0x40e293[0x0],'id':_0x40e293[0x1],'part':_0x40e293[0x2]};}function J(_0x17cc3e,_0x39172d){const _0x38c688=_0x39172d[_0x582b('0x33')],_0x2d765c=_0x39172d[_0x582b('0x28')](_0x17cc3e['start']);for(const _0x18acd7 of _0x17cc3e[_0x582b('0x52')]()){const {type:_0x1dd797,item:_0x475e6d,nextPosition:_0x3047c9}=_0x18acd7;if(_0x582b('0x3a')===_0x1dd797||_0x38c688['isObject'](_0x475e6d)){const _0xf1a60=_0x39172d[_0x582b('0x4f')](_0x475e6d);_0x2d765c[_0x582b('0x46')]&&(_0x2d765c[_0x582b('0x27')]=_0xf1a60),_0x2d765c['end']=_0x3047c9;}}return _0x2d765c[_0x582b('0x46')]?null:_0x2d765c;}
|