@ckeditor/ckeditor5-comments 0.0.0-nightly-20230822.0 → 0.0.0-nightly-20230823.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/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/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.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/integrations/importword.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/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-comments",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20230823.0",
|
|
4
4
|
"description": "Collaborative comments feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"CHANGELOG.md"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"ckeditor5": "0.0.0-nightly-
|
|
47
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
46
|
+
"ckeditor5": "0.0.0-nightly-20230823.0",
|
|
47
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230823.0",
|
|
48
48
|
"lodash-es": "4.17.21"
|
|
49
49
|
},
|
|
50
50
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fe7=['getClientRects','filter','targetRect','_target','isVisible','render','focusableElements','type','remove','_id','length','nodeType','_getNormalizedTarget','_type','object','clear','every','_assertCorrectTarget','focusTracker','offsetParent','item','innerView','mainView','isActive','function','target','view','set','destroy','updateTargetRect','stopListening','isArray','refreshVisibility','element'];(function(_0x585ad0,_0x2fe77d){const _0x153039=function(_0xd8039b){while(--_0xd8039b){_0x585ad0['push'](_0x585ad0['shift']());}};_0x153039(++_0x2fe77d);}(_0x2fe7,0x1d7));const _0x1530=function(_0x585ad0,_0x2fe77d){_0x585ad0=_0x585ad0-0x0;let _0x153039=_0x2fe7[_0x585ad0];return _0x153039;};import{CKEditorError as _0x4012e8,Rect as _0x178420,Collection as _0x1f9e57,ObservableMixin as _0x445c62}from'ckeditor5/src/utils';export default class d extends _0x445c62(){constructor({view:_0x21c08c,target:_0x21c161,type:_0x23b917,isVisible:_0x3bae05=!0x0}){super(),this[_0x1530('0x1f')]=_0x21c08c,this[_0x1530('0x1f')]['element']||this[_0x1530('0x1f')][_0x1530('0xa')](),this[_0x1530('0x12')]=_0x23b917,this[_0x1530('0x8')]=_0x21c161,d['_assertCorrectTarget'](this[_0x1530('0x11')]()),this['focusableElements']=new _0x1f9e57([this[_0x1530('0x1f')][_0x1530('0x4')]],{'idProperty':_0x1530('0xe')}),this['focusableElements']['on']('add',(_0x32f811,_0x302ce5)=>{this[_0x1530('0x1f')][_0x1530('0x17')]['add'](_0x302ce5);}),this[_0x1530('0xb')]['on'](_0x1530('0xd'),(_0x15f819,_0x2dfda8)=>{this[_0x1530('0x1f')][_0x1530('0x17')][_0x1530('0xd')](_0x2dfda8);}),this[_0x1530('0x20')](_0x1530('0x9'),_0x3bae05);}get[_0x1530('0xc')](){return _0x1530('0x1d')==typeof this[_0x1530('0x12')]?this['_type']():this[_0x1530('0x12')];}get[_0x1530('0x1a')](){return this[_0x1530('0x1f')][_0x1530('0x1b')];}get[_0x1530('0x1e')](){const _0x33542d=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x33542d),_0x33542d;}get[_0x1530('0x7')](){const _0x1ed360=this[_0x1530('0x1e')];if(null===_0x1ed360)return null;if(_0x1ed360 instanceof _0x178420)return _0x1ed360;const _0x446545=_0x1ed360[_0x1530('0x6')](_0x245f2a=>function(_0x3507fa){const _0x1f1ca6=_0x3507fa[_0x1530('0x18')];if(_0x1f1ca6)return!0x0;const _0x599947=_0x3507fa[_0x1530('0x5')]()['item'](0x0);return!!_0x599947;}(_0x245f2a));return 0x0===_0x446545[_0x1530('0xf')]?null:new _0x178420(_0x446545[0x0][_0x1530('0x5')]()[_0x1530('0x19')](0x0));}get['isActive'](){return this[_0x1530('0x1f')][_0x1530('0x1c')];}set[_0x1530('0x1c')](_0xf40834){this[_0x1530('0x1f')][_0x1530('0x1c')]=_0xf40834,this[_0x1530('0x1f')]['mainView'][_0x1530('0x1c')]=_0xf40834;}[_0x1530('0x0')](){this[_0x1530('0x1f')]['targetRect']=this[_0x1530('0x7')];}[_0x1530('0x21')](){this[_0x1530('0xb')][_0x1530('0x1')](),this[_0x1530('0xb')][_0x1530('0x14')](),this['stopListening']();}[_0x1530('0x3')](){this[_0x1530('0x9')]=!!this[_0x1530('0x7')];}static[_0x1530('0x16')](_0x17ecf4){if(!(null===_0x17ecf4||_0x17ecf4 instanceof _0x178420||Array[_0x1530('0x2')](_0x17ecf4)&&_0x17ecf4[_0x1530('0x15')](_0x139a05=>y(_0x139a05))))throw new _0x4012e8('annotation-invalid-target',null,{'target':_0x17ecf4});}[_0x1530('0x11')](){const _0x479ef0='function'==typeof this[_0x1530('0x8')]?this[_0x1530('0x8')]():this[_0x1530('0x8')];return y(_0x479ef0)?[_0x479ef0]:_0x479ef0;}}function y(_0x4c0e19){return null!==_0x4c0e19&&_0x1530('0x13')==typeof _0x4c0e19&&_0x1530('0x10')in _0x4c0e19&&0x1===_0x4c0e19[_0x1530('0x10')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x253d=['getByView','change:isFocused','sort','focusableElements','has','_focusTracker','isFocused','_getOrderInContent','blur','updateTargetRect','focusTracker','delete','getIndex','_viewToAnnotation','_innerViewToAnnotation','stopListening','_sort','get','add','clear','view','left','from','innerView','targetRect','annotationcollection-not-existing-item','length','top','getByInnerView','remove','set','listenTo'];(function(_0x55cd7b,_0x253de7){const _0x2fe116=function(_0x112ccc){while(--_0x112ccc){_0x55cd7b['push'](_0x55cd7b['shift']());}};_0x2fe116(++_0x253de7);}(_0x253d,0x1cc));const _0x2fe1=function(_0x55cd7b,_0x253de7){_0x55cd7b=_0x55cd7b-0x0;let _0x2fe116=_0x253d[_0x55cd7b];return _0x2fe116;};import{CKEditorError as _0x20a019,Collection as _0x30a023,FocusTracker as _0xf204d3}from'ckeditor5/src/utils';export default class x extends _0x30a023{constructor(_0x3af1ce=[]){super(),this[_0x2fe1('0x2')]=new Map(),this[_0x2fe1('0x1')]=new Map(),this[_0x2fe1('0x19')]=new _0xf204d3(),this[_0x2fe1('0x19')]['on']('change:isFocused',(_0x28d4b4,_0x3b6988,_0x37175f)=>{_0x37175f||this['fire'](_0x2fe1('0x1c'));});for(const _0x395a1b of _0x3af1ce)this[_0x2fe1('0x6')](_0x395a1b);}get[_0x2fe1('0x1a')](){return this['_focusTracker'][_0x2fe1('0x1a')];}[_0x2fe1('0x6')](_0x329aa2){if(this[_0x2fe1('0x18')](_0x329aa2))throw new _0x20a019('annotationcollection-duplicated-item',null);this[_0x2fe1('0x2')][_0x2fe1('0x12')](_0x329aa2[_0x2fe1('0xb')],_0x329aa2),this['_viewToAnnotation'][_0x2fe1('0x12')](_0x329aa2[_0x2fe1('0x8')],_0x329aa2);for(const _0x3f2a3d of _0x329aa2['focusableElements'])this[_0x2fe1('0x19')][_0x2fe1('0x6')](_0x3f2a3d);this[_0x2fe1('0x13')](_0x329aa2['focusableElements'],_0x2fe1('0x6'),(_0x49fdb9,_0x6d61c3)=>{this[_0x2fe1('0x19')][_0x2fe1('0x6')](_0x6d61c3);}),this[_0x2fe1('0x13')](_0x329aa2[_0x2fe1('0x17')],'remove',(_0x5c34ab,_0xc13c98)=>{this[_0x2fe1('0x19')][_0x2fe1('0x11')](_0xc13c98);}),this[_0x2fe1('0x13')](_0x329aa2[_0x2fe1('0x8')][_0x2fe1('0x1e')],_0x2fe1('0x15'),(_0x40215c,_0x103370,_0x1e0f38)=>{_0x1e0f38&&this['fire']('focus',_0x329aa2);}),_0x329aa2['updateTargetRect']();const _0xe45df7=this['_getOrderInContent'](_0x329aa2[_0x2fe1('0x8')]['targetRect']);return super[_0x2fe1('0x6')](_0x329aa2,_0xe45df7);}['remove'](_0x43e5bf){if(!this[_0x2fe1('0x18')](_0x43e5bf))throw new _0x20a019(_0x2fe1('0xd'),null);this[_0x2fe1('0x3')](_0x43e5bf[_0x2fe1('0x8')]['focusTracker']),this[_0x2fe1('0x3')](_0x43e5bf['focusableElements']);for(const _0x3865dd of _0x43e5bf[_0x2fe1('0x17')])this[_0x2fe1('0x19')][_0x2fe1('0x11')](_0x3865dd);return this[_0x2fe1('0x1')][_0x2fe1('0x1f')](_0x43e5bf['view']),this[_0x2fe1('0x2')]['delete'](_0x43e5bf[_0x2fe1('0xb')]),super[_0x2fe1('0x11')](_0x43e5bf);}[_0x2fe1('0x10')](_0x1342e4){return this['_innerViewToAnnotation'][_0x2fe1('0x5')](_0x1342e4);}[_0x2fe1('0x14')](_0x3d1817){return this[_0x2fe1('0x1')][_0x2fe1('0x5')](_0x3d1817);}['destroy'](){super['clear'](),this[_0x2fe1('0x3')](),this['_innerViewToAnnotation'][_0x2fe1('0x7')](),this[_0x2fe1('0x1')][_0x2fe1('0x7')](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x543925 of this)_0x543925[_0x2fe1('0x1d')]();this['_sort']();}[_0x2fe1('0x4')](){const _0x3a25cf=Array[_0x2fe1('0xa')](this)[_0x2fe1('0x16')]((_0x61f9cb,_0x394094)=>v(_0x61f9cb[_0x2fe1('0x8')][_0x2fe1('0xc')],_0x394094[_0x2fe1('0x8')][_0x2fe1('0xc')]));for(let _0x492d63=_0x3a25cf[_0x2fe1('0xe')]-0x1;_0x492d63>0x0;_0x492d63--){const _0x1da7a3=_0x3a25cf[_0x492d63];_0x492d63!==this[_0x2fe1('0x0')](_0x1da7a3)&&(this[_0x2fe1('0x11')](_0x1da7a3),this[_0x2fe1('0x6')](_0x1da7a3));}}[_0x2fe1('0x1b')](_0x32544b){let _0x57127e=0x0;if(!_0x32544b)return this[_0x2fe1('0xe')];for(const _0x22207b of this){const _0x5da167=_0x22207b[_0x2fe1('0x8')]['targetRect'];if(_0x5da167){if(v(_0x32544b,_0x5da167)<0x0)return _0x57127e;_0x57127e++;}}return _0x57127e;}}export function bindAnnotationCollections({source:_0x4c7f00,target:_0x26b1a8,filter:_0x53f5e3}){for(const _0x399113 of _0x4c7f00)_0x53f5e3(_0x399113)&&_0x26b1a8[_0x2fe1('0x6')](_0x399113);_0x26b1a8['listenTo'](_0x4c7f00,'add',(_0x192675,_0x2cf0cb)=>{_0x53f5e3(_0x2cf0cb)&&_0x26b1a8['add'](_0x2cf0cb);}),_0x26b1a8[_0x2fe1('0x13')](_0x4c7f00,_0x2fe1('0x11'),(_0x4ce602,_0x2a5249)=>{_0x26b1a8[_0x2fe1('0x18')](_0x2a5249)&&_0x26b1a8['remove'](_0x2a5249);});}function v(_0x49115a,_0x440b68){if(null===_0x49115a&&null===_0x440b68)return 0x0;if(null===_0x49115a)return-0x1;if(null===_0x440b68)return 0x1;const _0x4f4fca=_0x49115a[_0x2fe1('0xf')]-_0x440b68[_0x2fe1('0xf')];return 0x0==_0x4f4fca?_0x49115a[_0x2fe1('0x9')]-_0x440b68['left']:_0x4f4fca;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2768=['isVisible','source','element','remove','has','createAnnotationView','collection','change:isVisible','fire','getByInnerView','add','Annotations','_deactivateAllAnnotations','_addActiveAnnotation','activeAnnotations','view','_activateAnnotation','_visibleAnnotations','refreshPositioning','_bindAnnotationsToVisibleAnnotations','listenTo','destroy','refreshVisibility','stopListening','pluginName','delete'];(function(_0x1b601f,_0x2768ca){const _0x27bb64=function(_0xe5bc32){while(--_0xe5bc32){_0x1b601f['push'](_0x1b601f['shift']());}};_0x27bb64(++_0x2768ca);}(_0x2768,0xd7));const _0x27bb=function(_0x1b601f,_0x2768ca){_0x1b601f=_0x1b601f-0x0;let _0x27bb64=_0x2768[_0x1b601f];return _0x27bb64;};import{ContextPlugin as _0xd25993}from'ckeditor5/src/core';import _0x9972ff from'./annotation';import _0x6b2875 from'./annotationcollection';import _0xc87dfb from'./view/annotationview';export default class b extends _0xd25993{static get[_0x27bb('0x11')](){return _0x27bb('0x4');}constructor(_0x400036){super(_0x400036),this[_0x27bb('0x19')]=new _0x6b2875(),this[_0x27bb('0xa')]=new _0x6b2875(),this['set'](_0x27bb('0x7'),new Set()),this[_0x27bb('0xc')]();}[_0x27bb('0x3')](_0xbfc4b8){this['collection'][_0x27bb('0x3')](_0xbfc4b8);}[_0x27bb('0x16')](_0x242746){this[_0x27bb('0x19')][_0x27bb('0x16')](_0x242746),_0x242746['destroy']();}['refreshVisibility'](){for(const _0x1a8b33 of this[_0x27bb('0x19')])_0x1a8b33[_0x27bb('0xf')]();}[_0x27bb('0xb')](){this[_0x27bb('0xa')][_0x27bb('0xb')]();}[_0x27bb('0x2')](_0x1f72c5){return this[_0x27bb('0x19')][_0x27bb('0x2')](_0x1f72c5);}['deactivateAll'](){this[_0x27bb('0x1')](_0x27bb('0x5'));}[_0x27bb('0xe')](){for(const _0x200651 of this['collection'])_0x200651[_0x27bb('0xe')]();this[_0x27bb('0xa')][_0x27bb('0xe')](),this[_0x27bb('0x19')][_0x27bb('0xe')](),super[_0x27bb('0xe')]();}['activate'](_0x5523ca){this[_0x27bb('0x1')](_0x27bb('0x9'),_0x5523ca);}['createAnnotation'](_0x372ff9){return new _0x9972ff(_0x372ff9);}[_0x27bb('0x18')](_0x48a2f8,_0x2b4333){return new _0xc87dfb(_0x48a2f8,_0x2b4333);}[_0x27bb('0x6')](_0x2b32b2){const _0x3e8421=new Set(this[_0x27bb('0x7')]);_0x3e8421['add'](_0x2b32b2),this[_0x27bb('0x7')]=_0x3e8421;}['_removeActiveAnnotation'](_0xd2de35){const _0x297ed7=new Set(this[_0x27bb('0x7')]);_0x297ed7[_0x27bb('0x12')](_0xd2de35),this['activeAnnotations']=_0x297ed7;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3c6a48=this[_0x27bb('0x19')],_0x4478be=this[_0x27bb('0xa')];function _0x4fb01e(_0x588786){const _0x3bbb77=_0x588786[_0x27bb('0x14')];_0x3bbb77[_0x27bb('0x13')]&&!_0x4478be['has'](_0x3bbb77)?_0x4478be[_0x27bb('0x3')](_0x3bbb77):!_0x3bbb77['isVisible']&&_0x4478be[_0x27bb('0x17')](_0x3bbb77)&&_0x4478be[_0x27bb('0x16')](_0x3bbb77),_0x3bbb77['view']['focusTracker']['remove'](_0x3bbb77[_0x27bb('0x8')][_0x27bb('0x15')]),_0x3bbb77[_0x27bb('0x8')]['focusTracker'][_0x27bb('0x3')](_0x3bbb77['view'][_0x27bb('0x15')]);}this[_0x27bb('0xd')](_0x3c6a48,'add',(_0x1c653c,_0x449b56)=>{_0x449b56['isVisible']&&_0x4478be['add'](_0x449b56),this[_0x27bb('0xd')](_0x449b56,_0x27bb('0x0'),_0x4fb01e);}),this[_0x27bb('0xd')](_0x3c6a48,_0x27bb('0x16'),(_0x12674e,_0x18e88e)=>{_0x4478be[_0x27bb('0x17')](_0x18e88e)&&_0x4478be['remove'](_0x18e88e),this[_0x27bb('0x10')](_0x18e88e,_0x27bb('0x0'),_0x4fb01e);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dcd=['delete','collection','_removeActiveAnnotation','change:activeAnnotation','_setSelectedAnnotations','hasActive','find','size','_assertAnnotationDoesNotBelongToMultipleUIs','activeUIs','context','from','set','listenTo','annotationsuis-missing-ui','destroy','_deactivateAllAnnotations','add','AnnotationsUIs','pluginName','stopListening','setActiveAnnotation','deactivate','function','deactivateAll','type','_uis','_activateAnnotation','filter','requires','_uisData','annotationsuis-register-invalid-interface','activate','attach','plugins','_visibleAnnotations','get','annotationsuis-register-already-registered','has','activeAnnotations','_addActiveAnnotation','length','switchTo'];(function(_0x5775a9,_0x4dcd81){const _0x54c532=function(_0x233337){while(--_0x233337){_0x5775a9['push'](_0x5775a9['shift']());}};_0x54c532(++_0x4dcd81);}(_0x4dcd,0x1d3));const _0x54c5=function(_0x5775a9,_0x4dcd81){_0x5775a9=_0x5775a9-0x0;let _0x54c532=_0x4dcd[_0x5775a9];return _0x54c532;};import{ContextPlugin as _0x8b0f12}from'ckeditor5/src/core';import{CKEditorError as _0x243337}from'ckeditor5/src/utils';import _0x38a6d9,{bindAnnotationCollections as _0x54c4df}from'./annotationcollection';import _0x2103ca from'./annotations';export default class M extends _0x8b0f12{static get[_0x54c5('0x23')](){return[_0x2103ca];}static get[_0x54c5('0x19')](){return _0x54c5('0x18');}constructor(_0x24914a){super(_0x24914a),this[_0x54c5('0xf')]=new Set(),this[_0x54c5('0x20')]=new Map(),this[_0x54c5('0x24')]=new Map();}['init'](){const _0x24d396=this[_0x54c5('0x10')][_0x54c5('0x28')][_0x54c5('0x2a')](_0x2103ca);this['listenTo'](_0x24d396,_0x54c5('0x21'),(_0x164e73,_0xbe2290)=>{for(const _0x31dc83 of this[_0x54c5('0xf')]){const _0x4029ec=this['_uis'][_0x54c5('0x2a')](_0x31dc83);(0x0,this[_0x54c5('0x24')][_0x54c5('0x2a')](_0x31dc83)[_0x54c5('0x22')])(_0xbe2290)&&_0x4029ec[_0x54c5('0x1b')](_0xbe2290);}}),this[_0x54c5('0x13')](_0x24d396,_0x54c5('0x16'),()=>{for(const _0x3ebc28 of this[_0x54c5('0xf')]){this[_0x54c5('0x20')][_0x54c5('0x2a')](_0x3ebc28)[_0x54c5('0x1b')](null);}}),this['listenTo'](_0x24d396[_0x54c5('0x29')],_0x54c5('0x17'),(_0x5090d6,_0x294e01)=>{this[_0x54c5('0xe')](_0x294e01);});}[_0x54c5('0xb')](){return this[_0x54c5('0xf')][_0x54c5('0xd')]>0x0;}['isActive'](_0xd9a118){return this[_0x54c5('0xf')][_0x54c5('0x1')](_0xd9a118);}[_0x54c5('0x26')](_0x33c9a7,_0xdb5094=()=>!0x0){const _0x395306=this[_0x54c5('0x10')][_0x54c5('0x28')][_0x54c5('0x2a')](_0x2103ca);if(!this['_uis']['has'](_0x33c9a7))throw new _0x243337('annotationsuis-missing-ui',this,{'uiName':_0x33c9a7});this['isActive'](_0x33c9a7)&&this[_0x54c5('0x1c')](_0x33c9a7),this[_0x54c5('0xf')][_0x54c5('0x17')](_0x33c9a7);const _0x36ad49=new _0x38a6d9(),_0x768ea8=_0x395306['_visibleAnnotations'];_0x54c4df({'source':_0x768ea8,'target':_0x36ad49,'filter':_0xdb5094}),this[_0x54c5('0x24')][_0x54c5('0x12')](_0x33c9a7,{'collection':_0x36ad49,'filter':_0xdb5094});const _0xe81262=this[_0x54c5('0x20')][_0x54c5('0x2a')](_0x33c9a7);_0xe81262[_0x54c5('0x27')](_0x36ad49),this[_0x54c5('0x13')](_0xe81262,_0x54c5('0x9'),(_0x923c59,_0x2f505a,_0x34a127,_0x6e57e6)=>{_0x6e57e6&&_0x395306[_0x54c5('0x8')](_0x6e57e6),_0x34a127&&_0x395306[_0x54c5('0x3')](_0x34a127);});}[_0x54c5('0x1c')](_0x27be38){if(this[_0x54c5('0xf')][_0x54c5('0x6')](_0x27be38),!this['_uis'][_0x54c5('0x1')](_0x27be38))throw new _0x243337(_0x54c5('0x14'),this,{'uiName':_0x27be38});const _0x4d263e=this[_0x54c5('0x20')]['get'](_0x27be38);_0x4d263e['detach'](),this[_0x54c5('0x1a')](_0x4d263e),this[_0x54c5('0x24')]['get'](_0x27be38)['collection'][_0x54c5('0x15')](),this[_0x54c5('0x24')][_0x54c5('0x6')](_0x27be38);}[_0x54c5('0x5')](_0x131245){if(!this[_0x54c5('0x20')][_0x54c5('0x1')](_0x131245))throw new _0x243337(_0x54c5('0x14'),this,{'uiName':_0x131245});const _0x152161=this[_0x54c5('0x10')][_0x54c5('0x28')][_0x54c5('0x2a')](_0x2103ca),_0x1eafe1=Array[_0x54c5('0x11')](_0x152161[_0x54c5('0x2')])[0x0]||null;this[_0x54c5('0x1e')](),this[_0x54c5('0x26')](_0x131245);const _0x3af344=this[_0x54c5('0x20')]['get'](_0x131245);_0x3af344[_0x54c5('0x1b')](_0x1eafe1),_0x3af344[_0x54c5('0xa')]&&_0x1eafe1&&_0x3af344['_setSelectedAnnotations']([_0x1eafe1]);}[_0x54c5('0x1e')](){for(const _0x48f8c2 of this['activeUIs'])this['deactivate'](_0x48f8c2);}['register'](_0x36392,_0x4b041a){if(this[_0x54c5('0x20')][_0x54c5('0x1')](_0x36392))throw new _0x243337(_0x54c5('0x0'));if('function'!=typeof _0x4b041a[_0x54c5('0x27')]||_0x54c5('0x1d')!=typeof _0x4b041a['detach']||_0x54c5('0x1d')!=typeof _0x4b041a[_0x54c5('0x1b')])throw new _0x243337(_0x54c5('0x25'),null);this[_0x54c5('0x20')][_0x54c5('0x12')](_0x36392,_0x4b041a);}['refilterAnnotations'](){const _0x42f536=this[_0x54c5('0x10')][_0x54c5('0x28')]['get'](_0x2103ca)[_0x54c5('0x7')],_0x14ef3c=new Map(),_0x2cbba1=Array[_0x54c5('0x11')](this['activeUIs']);for(const _0x1b0734 of this[_0x54c5('0xf')]){const _0xf1f7c7=this[_0x54c5('0x24')][_0x54c5('0x2a')](_0x1b0734)[_0x54c5('0x7')];for(const _0x532f0c of _0xf1f7c7)_0x14ef3c[_0x54c5('0x12')](_0x532f0c,_0x1b0734);}for(const _0x1a2434 of _0x42f536){const _0x32a63b=_0x14ef3c[_0x54c5('0x2a')](_0x1a2434);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1a2434);const _0x5b94d6=_0x2cbba1[_0x54c5('0xc')](_0xdb7100=>this[_0x54c5('0x24')]['get'](_0xdb7100)[_0x54c5('0x22')](_0x1a2434));_0x32a63b!==_0x5b94d6&&(_0x32a63b&&this[_0x54c5('0x24')][_0x54c5('0x2a')](_0x32a63b)[_0x54c5('0x7')]['remove'](_0x1a2434),_0x5b94d6&&this['_uisData']['get'](_0x5b94d6)[_0x54c5('0x7')]['add'](_0x1a2434));}}[_0x54c5('0x15')](){this[_0x54c5('0x1e')](),super[_0x54c5('0x15')]();}[_0x54c5('0xe')](_0x1c1260){const _0x8ba194=[];for(const _0x1fe5a1 of this[_0x54c5('0xf')]){(0x0,this['_uisData'][_0x54c5('0x2a')](_0x1fe5a1)[_0x54c5('0x22')])(_0x1c1260)&&_0x8ba194['push'](_0x1fe5a1);}if(_0x8ba194[_0x54c5('0x4')]>0x1)throw new _0x243337('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x8ba194,'annotationType':_0x1c1260[_0x54c5('0x1f')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43d9=['delete','update','editing','map','blur','uiUpdate','collection','range','_editorAnnotationsData','pluginName','document','addSourceCollector','element','focusTracker','listenTo','fire','annotation','plugins','getByInnerView','innerView','_dataCollectors','selection','view','push','requires','init','_editorAnnotations','refreshSelectedViews','change:range','cancel','directChange','has','get','model','registerAnnotation','from','refresh','editor','change:isFocused','add','hasDomSelection','set','remove','EditorAnnotations','isCollapsed','containsRange','getOrderedSelectedAnnotations'];(function(_0x2e89a0,_0x43d901){const _0x58ba8c=function(_0x11c08b){while(--_0x11c08b){_0x2e89a0['push'](_0x2e89a0['shift']());}};_0x58ba8c(++_0x43d901);}(_0x43d9,0x127));const _0x58ba=function(_0x2e89a0,_0x43d901){_0x2e89a0=_0x2e89a0-0x0;let _0x58ba8c=_0x43d9[_0x2e89a0];return _0x58ba8c;};import{Plugin as _0x5cabc6}from'ckeditor5/src/core';import{CKEditorError as _0x4247d3}from'ckeditor5/src/utils';import{debounce as _0x4b48ef}from'lodash-es';import _0x1cac6c from'./annotations';export default class k extends _0x5cabc6{static get[_0x58ba('0xb')](){return[_0x1cac6c];}static get[_0x58ba('0x2b')](){return _0x58ba('0x1e');}constructor(_0x416c53){super(_0x416c53),this[_0x58ba('0x7')]=new Set(),this[_0x58ba('0xd')]=new Set();}[_0x58ba('0xc')](){const _0x1295b5=this[_0x58ba('0x18')],_0x24340c=_0x1295b5[_0x58ba('0x14')][_0x58ba('0x2c')][_0x58ba('0x8')],_0xfea2d1=_0x4b48ef(()=>this[_0x58ba('0xe')](),0xa);_0x24340c['on'](_0x58ba('0xf'),(_0x3c1baa,_0x347386)=>{_0x347386[_0x58ba('0x11')]&&(_0xfea2d1[_0x58ba('0x10')](),this['refreshSelectedViews']());}),this[_0x58ba('0x1')](_0x1295b5[_0x58ba('0x24')][_0x58ba('0x9')][_0x58ba('0x2c')],_0x58ba('0x19'),(_0x188ffe,_0x1e71e2,_0x2d3cb7)=>{_0x2d3cb7&&_0xfea2d1();}),this['listenTo'](_0x1295b5['ui']['focusTracker'],'change:isFocused',(_0x11d1d0,_0x4514c2,_0x55a7a8)=>{_0x55a7a8||_0x1295b5['isReadOnly']||this['fire'](_0x58ba('0x26'),{'isAnnotationTracked':_0x51f5c8=>this[_0x58ba('0x2a')]['has'](_0x51f5c8[_0x58ba('0x6')])});}),this[_0x58ba('0x1')](this[_0x58ba('0x18')]['ui'],_0x58ba('0x23'),()=>this[_0x58ba('0x2')](_0x58ba('0x27')));}[_0x58ba('0x15')](_0x297c08){if(this[_0x58ba('0xd')][_0x58ba('0x12')](_0x297c08['view']))return;this[_0x58ba('0xd')][_0x58ba('0x1a')](_0x297c08['view']),this[_0x58ba('0x18')]['ui'][_0x58ba('0x0')]['add'](_0x297c08[_0x58ba('0x9')][_0x58ba('0x2e')]);const _0x20399c=this['editor'][_0x58ba('0x4')][_0x58ba('0x13')](_0x1cac6c);this['listenTo'](_0x20399c[_0x58ba('0x28')],_0x58ba('0x1d'),(_0x405dc1,_0x154c54)=>{this[_0x58ba('0x18')]['ui']['focusTracker']['remove'](_0x154c54[_0x58ba('0x9')][_0x58ba('0x2e')]),this[_0x58ba('0xd')][_0x58ba('0x22')](_0x154c54[_0x58ba('0x9')]);});}[_0x58ba('0x1b')](){return this[_0x58ba('0x18')][_0x58ba('0x24')][_0x58ba('0x9')][_0x58ba('0x1b')];}[_0x58ba('0x2d')](_0x6dc788){if('function'!=typeof _0x6dc788)throw new _0x4247d3('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x6dc788);}[_0x58ba('0xe')](){this[_0x58ba('0x2')](_0x58ba('0x17'));}[_0x58ba('0x21')]({activeAnnotation:_0x209ab2,annotations:_0x1cbfba}){const _0x1b63a2=[],_0x5e8096=this[_0x58ba('0x18')][_0x58ba('0x14')]['document'][_0x58ba('0x8')],_0x1a4054=Array[_0x58ba('0x16')](_0x5e8096['getRanges']());for(const [_0x58542f,_0x2582fc]of this[_0x58ba('0x2a')]){const _0x114ce7=_0x50757d(_0x2582fc),_0x29d983=_0x1cbfba[_0x58ba('0x5')](_0x58542f);_0x114ce7&&_0x29d983&&_0x1b63a2[_0x58ba('0xa')]({'annotation':_0x29d983,'range':_0x114ce7});}function _0x50757d(_0x101ecf){for(const _0x4d3737 of _0x101ecf)for(const _0x5a1282 of _0x1a4054)if(_0x4d3737[_0x58ba('0x20')](_0x5a1282,!_0x5e8096[_0x58ba('0x1f')]))return _0x4d3737;return null;}return _0x1b63a2['sort']((_0x598eae,_0x10ae02)=>{const _0x119302=_0x598eae['range'],_0x1e56fe=_0x10ae02[_0x58ba('0x29')];if(!_0x119302['isEqual'](_0x1e56fe)){if(_0x119302[_0x58ba('0x20')](_0x1e56fe,!0x0))return 0x1;if(_0x1e56fe[_0x58ba('0x20')](_0x119302,!0x0))return-0x1;}return _0x598eae[_0x58ba('0x3')]==_0x209ab2?-0x1:_0x10ae02[_0x58ba('0x3')]==_0x209ab2?0x1:0x0;})[_0x58ba('0x25')](_0x28ff53=>_0x28ff53['annotation']);}get[_0x58ba('0x2a')](){const _0x4bc864=new Map();for(const _0x4d6c19 of Array[_0x58ba('0x16')](this[_0x58ba('0x7')]))for(const [_0x57cc62,_0x19c3bc]of _0x4d6c19())_0x4bc864[_0x58ba('0x1c')](_0x57cc62,_0x19c3bc);return _0x4bc864;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xeb85=['_setSelectedAnnotations','top','getFirstRange','blur','set','includes','destroy','updatePosition','has','isFocused','getOrderedSelectedAnnotations','isActive','target','context','selection','change:isFocused','_forceRefresh','change:visibleView','hasActive','register','inlineannotations-not-allowed-with-context','delete','_selectedAnnotations','_getBalloonTargetForAnnotation','stopListening','keystrokes','right','visibleView','get','afterInit','isAttached','width','mousedown','attach','Esc','focus','editing','_balloon','init','listenTo','annotations','map','_addAnnotationToBalloon','viewRangeToDom','showStack','plugins','InlineAnnotations','clear','inline','activeAnnotation','add','focusTracker','inlineannotations-detach-not-attached','_manuallyClosed','_addedAnnotations','_closeAnnotation','_removeAnnotationFromBalloon','hasView','document','addObserver','detach','left','length','targetRect','from','view','push','editor','setActiveAnnotation','bottom','getBoundingClientRect'];(function(_0x1d9d83,_0xeb85b7){const _0x5a68c2=function(_0x8daf2b){while(--_0x8daf2b){_0x1d9d83['push'](_0x1d9d83['shift']());}};_0x5a68c2(++_0xeb85b7);}(_0xeb85,0xe0));const _0x5a68=function(_0x1d9d83,_0xeb85b7){_0x1d9d83=_0x1d9d83-0x0;let _0x5a68c2=_0xeb85[_0x1d9d83];return _0x5a68c2;};import{Plugin as _0x1fdabf}from'ckeditor5/src/core';import _0x4231e4 from'./annotationsuis';import _0x30a295 from'./editorannotations';import{ContextualBalloon as _0x4d2289}from'ckeditor5/src/ui';import{MouseObserver as _0x1a43f6}from'ckeditor5/src/engine';import{CKEditorError as _0x4a0b44,Rect as _0xc62522}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x1fdabf{static get['requires'](){return[_0x30a295,_0x4d2289,_0x4231e4];}static get['pluginName'](){return _0x5a68('0x23');}constructor(_0x10a2ab){super(_0x10a2ab),_0x10a2ab[_0x5a68('0x19')][_0x5a68('0x36')][_0x5a68('0x30')](_0x1a43f6),this['isAttached']=!0x1,this[_0x5a68('0x40')](_0x5a68('0x26'),null),this[_0x5a68('0x1d')]=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x10a2ab[_0x5a68('0x22')][_0x5a68('0x11')](_0x4d2289),this[_0x5a68('0x2b')]=new Set(),this[_0x5a68('0xb')]=[],this[_0x5a68('0x5')]=!0x1;}[_0x5a68('0x1b')](){const _0x1f6914=this['editor'][_0x5a68('0x22')][_0x5a68('0x11')](_0x4231e4);_0x1f6914[_0x5a68('0x2')]===this[_0x5a68('0x38')]&&(_0x1f6914[_0x5a68('0x8')]('inline',this),this['editor'][_0x5a68('0xe')][_0x5a68('0x40')](_0x5a68('0x17'),(_0x2c403,_0x12355b)=>{const _0x188faa=this[_0x5a68('0x1a')];if(this['isAttached']&&_0x188faa['visibleView']){const _0x58ba75=this[_0x5a68('0x1d')]['getByView'](_0x188faa[_0x5a68('0x10')]);_0x58ba75&&this['_closeAnnotation'](_0x58ba75),_0x12355b();}}));}[_0x5a68('0x12')](){const _0x59c026=this[_0x5a68('0x38')][_0x5a68('0x22')][_0x5a68('0x11')](_0x4231e4);_0x59c026['context']===this[_0x5a68('0x38')]&&(_0x59c026[_0x5a68('0x7')]()||_0x59c026['switchTo'](_0x5a68('0x25')));}[_0x5a68('0x39')](_0x197b21){_0x197b21!==this['activeAnnotation']&&(this[_0x5a68('0x26')]&&(this[_0x5a68('0x26')][_0x5a68('0x0')]=!0x1),_0x197b21&&this[_0x5a68('0x38')]['ui'][_0x5a68('0x28')][_0x5a68('0x45')]&&(this[_0x5a68('0x1d')][_0x5a68('0x44')](_0x197b21)&&this['_addAnnotationToBalloon'](_0x197b21,!0x0),_0x197b21[_0x5a68('0x0')]=!0x0),_0x197b21||this[_0x5a68('0x3c')]([]),this[_0x5a68('0x26')]=_0x197b21);}[_0x5a68('0x16')](_0x8d2bb0){this[_0x5a68('0x1d')]=_0x8d2bb0;const _0x589202=this[_0x5a68('0x38')]['plugins'][_0x5a68('0x11')](_0x4231e4),_0x33b6d9=this[_0x5a68('0x1a')];if(this[_0x5a68('0x13')])throw new _0x4a0b44('inlineannotations-attach-already-attached',this);if(_0x589202['context']!==this[_0x5a68('0x38')])throw new _0x4a0b44(_0x5a68('0x9'),this);const _0xe429af=this[_0x5a68('0x38')][_0x5a68('0x22')]['get'](_0x30a295);this[_0x5a68('0x1c')](_0xe429af,'refresh',()=>{const _0xa765cd=_0xe429af[_0x5a68('0x46')]({'annotations':this['annotations'],'activeAnnotation':this[_0x5a68('0x26')]});var _0x278ad2,_0x1791d0;!this['_forceRefresh']&&(_0x278ad2=_0xa765cd,_0x1791d0=this['_selectedAnnotations'],_0x278ad2[_0x5a68('0x33')]===_0x1791d0[_0x5a68('0x33')]&&_0x278ad2['every'](_0x4be115=>_0x1791d0[_0x5a68('0x41')](_0x4be115)))||(this[_0x5a68('0x5')]=!0x1,this[_0x5a68('0x3c')](_0xa765cd),this[_0x5a68('0x39')](_0xa765cd[0x0]||null));}),this[_0x5a68('0x1c')](_0xe429af,_0x5a68('0x3f'),(_0x27aaa8,{isAnnotationTracked:_0x23ff1f})=>{this[_0x5a68('0x26')]&&_0x23ff1f(this[_0x5a68('0x26')])&&(this[_0x5a68('0x3c')]([]),this[_0x5a68('0x39')](null));}),this[_0x5a68('0x1c')](this[_0x5a68('0x38')]['ui'][_0x5a68('0x28')],_0x5a68('0x4'),(_0x483321,_0x4c2eb6,_0x4a03a2)=>{_0x4a03a2||this[_0x5a68('0x39')](null);}),this[_0x5a68('0x1c')](_0x8d2bb0,'remove',(_0x4ff79b,_0x5d4fa9)=>{this['_removeAnnotationFromBalloon'](_0x5d4fa9),_0x5d4fa9===this[_0x5a68('0x26')]&&this['setActiveAnnotation'](null);}),this[_0x5a68('0x1c')](_0x33b6d9,_0x5a68('0x6'),(_0xd0965c,_0x1bd196,_0x4afed4,_0xd7d91e)=>{_0xd7d91e&&this[_0x5a68('0xd')](_0xd7d91e);const _0x4f434e=_0x8d2bb0['getByView'](_0x4afed4);_0x4afed4&&_0x4f434e&&(this[_0x5a68('0x1c')](_0x4afed4,'change:height',()=>{_0x33b6d9['updatePosition']();}),this[_0x5a68('0x1c')](_0x4afed4,'Esc',()=>{this['_closeAnnotation'](_0x4f434e),this[_0x5a68('0x38')][_0x5a68('0x19')][_0x5a68('0x36')]['focus']();}),this['activeAnnotation']!==_0x4f434e&&this[_0x5a68('0x39')](_0x4f434e));}),this[_0x5a68('0x1c')](this[_0x5a68('0x38')]['ui'],'update',()=>{_0x33b6d9[_0x5a68('0x10')]&&(_0x8d2bb0['getByView'](_0x33b6d9['visibleView'])&&_0x33b6d9[_0x5a68('0x43')]());}),this[_0x5a68('0x1c')](this[_0x5a68('0x38')]['editing'][_0x5a68('0x36')][_0x5a68('0x2f')],_0x5a68('0x15'),()=>{this[_0x5a68('0x5')]=!0x0,this[_0x5a68('0x2a')][_0x5a68('0x24')]();}),this[_0x5a68('0x38')][_0x5a68('0x19')][_0x5a68('0x36')][_0x5a68('0x2f')]['selection']['editableElement']&&this[_0x5a68('0x38')][_0x5a68('0x19')]['view'][_0x5a68('0x18')](),this[_0x5a68('0x13')]=!0x0;}[_0x5a68('0x31')](){if(!this[_0x5a68('0x13')])throw new _0x4a0b44(_0x5a68('0x29'),this);this['setActiveAnnotation'](null);for(const _0x37efcb of this['_addedAnnotations'])this[_0x5a68('0x2d')](_0x37efcb);this[_0x5a68('0xd')](),this[_0x5a68('0x13')]=!0x1,this[_0x5a68('0x1d')]=null;}[_0x5a68('0x42')](){this[_0x5a68('0x13')]&&this[_0x5a68('0x31')]();}[_0x5a68('0x3c')](_0xee3215){for(const _0x47389a of this[_0x5a68('0xb')])_0xee3215[_0x5a68('0x41')](_0x47389a)||this[_0x5a68('0x2a')][_0x5a68('0xa')](_0x47389a);for(const _0xfa7f8c of this['annotations'])_0xee3215[_0x5a68('0x41')](_0xfa7f8c)||this[_0x5a68('0x2d')](_0xfa7f8c);if(this[_0x5a68('0x38')]['ui'][_0x5a68('0x28')]['isFocused'])for(const _0x2cd205 of _0xee3215)this[_0x5a68('0x1f')](_0x2cd205);this[_0x5a68('0xb')]=_0xee3215;}[_0x5a68('0x1f')](_0x48e320,_0x61027f=!0x1){this[_0x5a68('0x2a')][_0x5a68('0x44')](_0x48e320)||(this['_addedAnnotations'][_0x5a68('0x44')](_0x48e320)||this[_0x5a68('0x1a')][_0x5a68('0x2e')](_0x48e320[_0x5a68('0x36')])||(this['_addedAnnotations'][_0x5a68('0x27')](_0x48e320),this[_0x5a68('0x1a')][_0x5a68('0x27')]({'stackId':_0x48e320[_0x5a68('0x36')]['id'],'view':_0x48e320['view'],'position':{'target':()=>this[_0x5a68('0xc')](_0x48e320)}})),_0x61027f&&this[_0x5a68('0x1a')][_0x5a68('0x21')](_0x48e320['view']['id']));}[_0x5a68('0xc')](_0x4da01e){const _0x200d40=_0x4da01e[_0x5a68('0x1')],_0x424faa=this[_0x5a68('0x38')][_0x5a68('0x19')]['view'],_0x62486e=_0x424faa['document'][_0x5a68('0x3')][_0x5a68('0x3e')](),_0x418e50=_0x424faa['domConverter'][_0x5a68('0x20')](_0x62486e);if(_0x418e50['collapse'](!0x0),_0x200d40){if(_0x200d40 instanceof _0xc62522)return _0x200d40;let _0xe0b2ab=[];for(const _0x379e5e of _0x200d40)_0xe0b2ab['push'](...(_0x2bfceb=_0x379e5e['getClientRects'](),Array[_0x5a68('0x35')](_0x2bfceb)[_0x5a68('0x1e')](DOMRect['fromRect'])));_0xe0b2ab=function(_0x5b6c4d){const _0x3902a1=[];let _0x5a2361=_0x5b6c4d[0x0];for(let _0x37c8f3=0x1;_0x37c8f3<_0x5b6c4d['length'];_0x37c8f3++)F(_0x5a2361,_0x5b6c4d[_0x37c8f3])?_0x5a2361[_0x5a68('0x14')]+=_0x5b6c4d[_0x37c8f3][_0x5a68('0x14')]:(_0x3902a1[_0x5a68('0x37')](_0x5a2361),_0x5a2361=_0x5b6c4d[_0x37c8f3]);return _0x3902a1[_0x5a68('0x37')](_0x5a2361),_0x3902a1;}(_0xe0b2ab);const _0x32ec85=_0x418e50[_0x5a68('0x3b')]();return _0xe0b2ab['find'](_0x1cbe54=>_0x1cbe54[_0x5a68('0x3d')]<=_0x32ec85['top']&&_0x1cbe54['bottom']>=_0x32ec85[_0x5a68('0x3a')]&&_0x1cbe54[_0x5a68('0x32')]<=_0x32ec85[_0x5a68('0x32')]&&_0x1cbe54[_0x5a68('0xf')]>=_0x32ec85[_0x5a68('0xf')])||_0xe0b2ab[0x0];}var _0x2bfceb;return _0x4da01e[_0x5a68('0x34')]||_0x418e50;}[_0x5a68('0x2d')](_0x226d77){this[_0x5a68('0x2b')][_0x5a68('0x44')](_0x226d77)&&this[_0x5a68('0x1a')][_0x5a68('0x2e')](_0x226d77[_0x5a68('0x36')])&&(this[_0x5a68('0x2b')][_0x5a68('0xa')](_0x226d77),this[_0x5a68('0x1a')]['remove'](_0x226d77[_0x5a68('0x36')]));}[_0x5a68('0x2c')](_0x435112){this[_0x5a68('0x2a')][_0x5a68('0x27')](_0x435112),this[_0x5a68('0x2d')](_0x435112);}}function F(_0x5aab71,_0x5d5aab){return _0x5aab71['top']===_0x5d5aab[_0x5a68('0x3d')]&&_0x5aab71[_0x5a68('0x3a')]===_0x5d5aab['bottom']&&_0x5aab71[_0x5a68('0xf')]===_0x5d5aab[_0x5a68('0x32')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2f44=['activeAnnotation','resize','off','isAttached','narrowsidebar-attach-already-attached','isVisible','remove','_annotations','add','mousedown','_refreshPositioningDebounced','removeEventListener','destroy','_integrateWithEditorAnnotations','contains','length','view','stopPropagation','set','_destroyEditorAnnotationsIntegration','has','execute','_selectedAnnotations','content','_attachToContainer','first','stop','values','clear','keydown','locale','annotations','northArrowSouth','detachFromDom','_manuallyClosedAnnotationViews','_updateBalloonPosition','_showBalloon','unpin','focus','attach','number','southArrowNorthWest','stopListening','attachToDom','EditorAnnotations','rearrange','setActiveAnnotation','_attachListeners','_setSelectedAnnotations','esc','requires','preventClosingBalloon','editors','set:container','init','_editorAnnotations','bodyCollection','delete','preventDefault','isDirty','hasDomSelection','_annotationToNarrowView','context','keyCode','uiUpdate','plugins','listenTo','_refreshPositioning','pin','detach','low','_hideBalloon','includes','balloonPanelView','_detachListeners','Esc','northArrowSouthEast','_detachFromContainer','blur','narrowSidebar','change:container','get','northArrowSouthWest','addEventListener','addAnnotation','_domEmitter','ready','cancel','getOrderedSelectedAnnotations','NarrowSidebar','focusableElements','from','element','getSidebarItemView','refreshPositioning','target','find'];(function(_0x20d100,_0x2f448d){const _0x3e34a6=function(_0x11913e){while(--_0x11913e){_0x20d100['push'](_0x20d100['shift']());}};_0x3e34a6(++_0x2f448d);}(_0x2f44,0x6c));const _0x3e34=function(_0x20d100,_0x2f448d){_0x20d100=_0x20d100-0x0;let _0x3e34a6=_0x2f44[_0x20d100];return _0x3e34a6;};import{ContextPlugin as _0x4de14e,Context as _0x273ba1}from'ckeditor5/src/core';import _0x1d892a from'./annotationsuis';import _0x38be78 from'./sidebar';import _0x110d0f from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x187163,BodyCollection as _0x4ccc20}from'ckeditor5/src/ui';import{CKEditorError as _0x529af4,DomEmitterMixin as _0x46b769,keyCodes as _0x3c5743,Collection as _0x393794}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x2c7367}from'lodash-es';import _0x59a40c from'./editorannotations';export default class s extends _0x4de14e{static get[_0x3e34('0x27')](){return[_0x38be78,_0x1d892a];}static get['pluginName'](){return _0x3e34('0x4e');}constructor(_0x37137f){super(_0x37137f),this[_0x3e34('0x59')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x46b769),this[_0x3e34('0x32')]=new Map(),this[_0x3e34('0x7')](_0x3e34('0x56'),null),this[_0x3e34('0x14')]=null,this['_selectedAnnotations']=[],this[_0x3e34('0x2c')]=new _0x393794(),this[_0x3e34('0x60')]=_0x2c7367(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3e34('0x2b')](){this[_0x3e34('0x33')][_0x3e34('0x36')][_0x3e34('0x46')](_0x1d892a)['register'](_0x3e34('0x44'),this),this[_0x3e34('0x2d')]=new _0x4ccc20(this['context'][_0x3e34('0x13')]),this['balloonPanelView']=new _0x187163(this[_0x3e34('0x33')]['locale']),this['bodyCollection'][_0x3e34('0x20')](),this[_0x3e34('0x2d')][_0x3e34('0x5e')](this['balloonPanelView']);}['attach'](_0x2888c7){this['annotations']=_0x2888c7;const _0x478e47=this[_0x3e34('0x33')][_0x3e34('0x36')]['get'](_0x38be78),_0x1f7b5f=this[_0x3e34('0x3e')];if(_0x478e47[_0x3e34('0x5d')]=_0x2888c7,this['isAttached'])throw new _0x529af4(_0x3e34('0x5a'),this);this[_0x3e34('0x59')]=!0x0,this['listenTo'](_0x478e47,_0x3e34('0x2a'),()=>{this[_0x3e34('0x3a')](),this['listenTo'](_0x478e47,_0x3e34('0x45'),_0x7fb301=>{_0x7fb301[_0x3e34('0x58')](),this[_0x3e34('0x1c')](_0x2888c7);});}),_0x478e47[_0x3e34('0xd')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2459e0=_0x3f6122=>{const _0x12c92e=new _0x110d0f(this[_0x3e34('0x33')]['locale']);_0x478e47[_0x3e34('0x49')](_0x3f6122,_0x12c92e),this[_0x3e34('0x32')]['set'](_0x3f6122,_0x12c92e),_0x12c92e['bind']('isDirty','annotationType',_0x3e34('0x1d'))['to'](_0x3f6122['view'],_0x3e34('0x30'),'type',_0x3e34('0x4')),_0x12c92e['on'](_0x3e34('0xa'),()=>{this[_0x3e34('0x17')][_0x3e34('0x11')](),_0x1f7b5f[_0x3e34('0xc')][_0x3e34('0xe')]!==_0x3f6122[_0x3e34('0x5')]?(this[_0x3e34('0x19')](_0x3f6122),_0x3f6122['view'][_0x3e34('0x51')][_0x3e34('0x1b')](),this[_0x3e34('0x23')](_0x3f6122)):this[_0x3e34('0x23')](null);});};for(const _0x58d65d of _0x2888c7)_0x2459e0(_0x58d65d);this[_0x3e34('0x37')](_0x2888c7,_0x3e34('0x5e'),(_0x45f6f9,_0x5155e7)=>{_0x2459e0(_0x5155e7);}),this[_0x3e34('0x37')](_0x2888c7,_0x3e34('0x5c'),(_0x13715e,_0x2b7278,_0x412b7c)=>{this[_0x3e34('0x32')][_0x3e34('0x46')](_0x2b7278)[_0x3e34('0x1')](),this[_0x3e34('0x32')][_0x3e34('0x2e')](_0x2b7278),_0x478e47[_0x3e34('0x22')]({'removedAnnotation':_0x2b7278,'previousAnnotation':_0x2888c7['get'](_0x412b7c-0x1),'nextAnnotation':_0x2888c7[_0x3e34('0x46')](_0x412b7c+0x1)}),_0x2b7278===this[_0x3e34('0x56')]&&this[_0x3e34('0x23')](null);},{'priority':_0x3e34('0x3b')}),this[_0x3e34('0x37')](_0x2888c7,_0x3e34('0x1b'),(_0x44be5a,_0x103a9f)=>{this[_0x3e34('0x23')](_0x103a9f);}),this[_0x3e34('0x37')](_0x2888c7,_0x3e34('0x43'),()=>{this['setActiveAnnotation'](null);}),this[_0x3e34('0x4a')][_0x3e34('0x37')](document,_0x3e34('0x12'),(_0x1d1574,_0x501643)=>{_0x501643[_0x3e34('0x34')]===_0x3c5743[_0x3e34('0x26')]&&_0x1f7b5f[_0x3e34('0x5b')]&&(this[_0x3e34('0x17')][_0x3e34('0x5e')](_0x1f7b5f[_0x3e34('0xc')][_0x3e34('0xe')]),this['_hideBalloon'](),_0x501643[_0x3e34('0x6')](),_0x501643[_0x3e34('0x2f')]());}),this[_0x3e34('0x4a')][_0x3e34('0x37')](document,_0x3e34('0x5f'),(_0x1e7693,_0x2f5afe)=>{const _0x5253ca=_0x2f5afe[_0x3e34('0x54')];_0x1f7b5f[_0x3e34('0x5b')]&&_0x1f7b5f[_0x3e34('0x51')][_0x3e34('0x3')](_0x5253ca)||_0x478e47[_0x3e34('0x5')][_0x3e34('0x51')][_0x3e34('0x3')](_0x5253ca)||_0x1e7693[_0x3e34('0x28')]||this[_0x3e34('0x56')]&&this[_0x3e34('0x56')][_0x3e34('0x4f')][_0x3e34('0x55')](_0x431fae=>_0x431fae[_0x3e34('0x3')](_0x5253ca))||(this['_manuallyClosedAnnotationViews']['clear'](),this[_0x3e34('0x3c')](),this[_0x3e34('0x23')](null));});const _0x4e523=this['context']instanceof _0x273ba1?this['context'][_0x3e34('0x29')]:new _0x393794([this[_0x3e34('0x33')]]);for(const _0x57139b of _0x4e523)this[_0x3e34('0x2')](_0x57139b);this['listenTo'](_0x4e523,_0x3e34('0x5e'),(_0xe27482,_0x54b679)=>{this[_0x3e34('0x37')](_0x54b679,_0x3e34('0x4b'),()=>{this[_0x3e34('0x2')](_0x54b679);});}),this[_0x3e34('0x37')](_0x4e523,_0x3e34('0x5c'),(_0x2b02ac,_0x516595)=>{_0x516595[_0x3e34('0x36')]['has'](_0x3e34('0x21'))&&this[_0x3e34('0x8')](_0x516595[_0x3e34('0x36')][_0x3e34('0x46')](_0x3e34('0x21')));}),window[_0x3e34('0x48')](_0x3e34('0x57'),this[_0x3e34('0x60')]),this['_refreshPositioning']();}['setActiveAnnotation'](_0x51059c){if(_0x51059c===this['activeAnnotation'])return;const _0x38c8fa=this[_0x3e34('0x33')][_0x3e34('0x36')]['get'](_0x38be78);if(_0x38c8fa['refresh']({'blurredAnnotation':this[_0x3e34('0x56')],'activatedAnnotation':_0x51059c,'disableAnimationOnActivatedAnnotation':!0x0}),_0x51059c)_0x38c8fa[_0x3e34('0x52')](_0x51059c)?this[_0x3e34('0x19')](_0x51059c):this[_0x3e34('0x3c')]();else this[_0x3e34('0x3c')]();this['activeAnnotation']=_0x51059c;}[_0x3e34('0x3a')](){if(!this[_0x3e34('0x59')])throw new _0x529af4('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1210ea=this[_0x3e34('0x33')][_0x3e34('0x36')][_0x3e34('0x46')](_0x38be78);this[_0x3e34('0x3c')](),Array['from'](this['_annotationToNarrowView'][_0x3e34('0x10')](),_0x32aa49=>_0x32aa49[_0x3e34('0x1')]()),this[_0x3e34('0x32')]['clear'](),_0x1210ea[_0x3e34('0x42')](this[_0x3e34('0x14')]),this['stopListening'](),this[_0x3e34('0x4a')][_0x3e34('0x1f')](),this[_0x3e34('0x33')]instanceof _0x273ba1&&this['stopListening'](this['context'][_0x3e34('0x29')]);for(const _0x3a37cf of Array[_0x3e34('0x50')](this[_0x3e34('0x2c')]))this[_0x3e34('0x8')](_0x3a37cf);window[_0x3e34('0x0')]('resize',this[_0x3e34('0x60')]),this['_refreshPositioningDebounced'][_0x3e34('0x4c')](),this['_selectedAnnotations']=[],this[_0x3e34('0x59')]=!0x1,this['annotations']=null;}[_0x3e34('0x1')](){this[_0x3e34('0x59')]&&this[_0x3e34('0x3a')](),this[_0x3e34('0x2d')][_0x3e34('0x16')]();}[_0x3e34('0x2')](_0x59b07b){const _0x2e62f4=_0x59b07b['plugins'][_0x3e34('0x46')](_0x59a40c),_0x507378=this[_0x3e34('0x33')][_0x3e34('0x36')][_0x3e34('0x46')](_0x38be78),_0x3d0a90=this[_0x3e34('0x14')],_0x5125a0=this['balloonPanelView'],_0x2dfdf7=()=>{const _0x1e94d8=_0x2e62f4[_0x3e34('0x4d')]({'annotations':this[_0x3e34('0x14')],'activeAnnotation':this[_0x3e34('0x56')]});this[_0x3e34('0x25')](_0x1e94d8),this[_0x3e34('0x23')](_0x1e94d8[0x0]||null);};this[_0x3e34('0x37')](_0x2e62f4,'refresh',_0x2dfdf7),this['listenTo'](_0x2e62f4,_0x3e34('0x43'),(_0x2fec27,{isAnnotationTracked:_0x5a7a21})=>{this[_0x3e34('0x56')]&&_0x5a7a21(this['activeAnnotation'])&&(this[_0x3e34('0x25')]([]),this[_0x3e34('0x23')](null));}),this[_0x3e34('0x37')](_0x2e62f4,_0x3e34('0x35'),()=>{this[_0x3e34('0x60')]();}),this[_0x3e34('0x37')](_0x3d0a90,_0x3e34('0x43'),_0x3702ef=>{_0x2e62f4[_0x3e34('0x31')]()&&_0x3702ef[_0x3e34('0xf')]();},{'priority':'high'}),this[_0x3e34('0x37')](this[_0x3e34('0x4a')],'mousedown',(_0x349faa,_0x368980)=>{const _0x2b729d=_0x368980[_0x3e34('0x54')];_0x5125a0[_0x3e34('0x5b')]&&_0x5125a0[_0x3e34('0x51')][_0x3e34('0x3')](_0x2b729d)||_0x507378[_0x3e34('0x5')][_0x3e34('0x51')]['contains'](_0x2b729d)||this[_0x3e34('0x56')]&&_0x2e62f4[_0x3e34('0x31')]()&&(_0x2dfdf7(),_0x349faa[_0x3e34('0x28')]=!0x0);},{'priority':'high'}),this[_0x3e34('0x2c')][_0x3e34('0x5e')](_0x2e62f4);}['_destroyEditorAnnotationsIntegration'](_0x50d696){_0x50d696&&(this[_0x3e34('0x1f')](_0x50d696),this[_0x3e34('0x2c')]['remove'](_0x50d696));}[_0x3e34('0x25')](_0x26ea35){for(const _0x2d7ec5 of this[_0x3e34('0xb')])_0x26ea35[_0x3e34('0x3d')](_0x2d7ec5)||this[_0x3e34('0x17')][_0x3e34('0x2e')](_0x2d7ec5['view']);this['_selectedAnnotations']=_0x26ea35;}[_0x3e34('0x38')](){const _0x2c8792=this[_0x3e34('0x3e')];this[_0x3e34('0x14')][_0x3e34('0x53')](),_0x2c8792[_0x3e34('0x5b')]&&this[_0x3e34('0x18')]();}[_0x3e34('0x19')](_0x56db4a){if(this[_0x3e34('0x17')][_0x3e34('0x9')](_0x56db4a[_0x3e34('0x5')]))return;const _0x2236ec=this['balloonPanelView'][_0x3e34('0xc')][_0x3e34('0xe')];_0x2236ec!==_0x56db4a[_0x3e34('0x5')]?(_0x2236ec&&this[_0x3e34('0x3f')](_0x2236ec),this['_attachListeners'](_0x56db4a[_0x3e34('0x5')]),this[_0x3e34('0x3e')][_0x3e34('0xc')][_0x3e34('0x11')](),this[_0x3e34('0x3e')][_0x3e34('0xc')][_0x3e34('0x5e')](_0x56db4a[_0x3e34('0x5')]),this[_0x3e34('0x18')]()):this[_0x3e34('0x18')]();}[_0x3e34('0x18')](){const _0x2d26d1=this['balloonPanelView']['content'][_0x3e34('0xe')],_0x49fb69=_0x2d26d1&&this[_0x3e34('0x14')]['getByView'](_0x2d26d1);if(!_0x49fb69||!this[_0x3e34('0x32')][_0x3e34('0x9')](_0x49fb69))return;const _0x8968c1=this[_0x3e34('0x32')]['get'](_0x49fb69)[_0x3e34('0x51')],_0x50eedd=function(){const _0x5caa33=_0x187163['defaultPositions'];return[_0x5caa33['southArrowNorthEast'],_0x5caa33[_0x3e34('0x41')],_0x5caa33['southArrowNorth'],_0x5caa33[_0x3e34('0x15')],_0x5caa33[_0x3e34('0x1e')],_0x5caa33[_0x3e34('0x47')]];}();this[_0x3e34('0x3e')][_0x3e34('0x39')]({'target':_0x8968c1,'positions':_0x50eedd});}[_0x3e34('0x3c')](){const _0x56bb9f=this[_0x3e34('0x3e')],_0x9e82a2=_0x56bb9f[_0x3e34('0xc')]['first'];_0x9e82a2&&(this[_0x3e34('0x3f')](_0x9e82a2),_0x56bb9f[_0x3e34('0x1a')](),_0x56bb9f['content']['clear']());}[_0x3e34('0x24')](_0x88baf3){this['listenTo'](_0x88baf3,'change:height',()=>this[_0x3e34('0x18')]()),this[_0x3e34('0x37')](_0x88baf3,_0x3e34('0x40'),(_0x560ebf,_0x2a655f)=>{this[_0x3e34('0x17')]['add'](_0x88baf3),this[_0x3e34('0x3c')](),_0x2a655f();});}[_0x3e34('0x3f')](_0x127fa6){this['stopListening'](_0x127fa6);}}
|
|
23
|
+
const _0x4431=['get','northArrowSouthEast','stopPropagation','_destroyEditorAnnotationsIntegration','listenTo','isAttached','northArrowSouth','setActiveAnnotation','includes','getOrderedSelectedAnnotations','blur','focusableElements','balloonPanelView','plugins','contains','esc','stopListening','_domEmitter','uiUpdate','_attachToContainer','detachFromDom','addEventListener','remove','unpin','_manuallyClosedAnnotationViews','change:height','removeEventListener','delete','narrowSidebar','defaultPositions','content','number','mousedown','northArrowSouthWest','find','southArrowNorthWest','editors','narrowsidebar-detach-not-attached','target','_refreshPositioning','isDirty','bind','keydown','_attachListeners','destroy','high','init','NarrowSidebar','add','clear','element','addAnnotation','bodyCollection','register','isVisible','rearrange','_refreshPositioningDebounced','view','first','_setSelectedAnnotations','preventClosingBalloon','resize','has','pin','stop','locale','context','_annotationToNarrowView','from','set','_selectedAnnotations','EditorAnnotations','narrowsidebar-attach-already-attached','Esc','detach','create','_annotations','cancel','_detachListeners','refresh','ready','_showBalloon','southArrowNorthEast','annotations','_integrateWithEditorAnnotations','hasDomSelection','refreshPositioning','set:container','focus','_hideBalloon','low','change:container','pluginName','_editorAnnotations','attachToDom','activeAnnotation','_updateBalloonPosition','southArrowNorth'];(function(_0x3c8475,_0x443140){const _0x52cf65=function(_0x2f9784){while(--_0x2f9784){_0x3c8475['push'](_0x3c8475['shift']());}};_0x52cf65(++_0x443140);}(_0x4431,0x162));const _0x52cf=function(_0x3c8475,_0x443140){_0x3c8475=_0x3c8475-0x0;let _0x52cf65=_0x4431[_0x3c8475];return _0x52cf65;};import{ContextPlugin as _0x166dab,Context as _0x1954d5}from'ckeditor5/src/core';import _0x3b0f29 from'./annotationsuis';import _0x38e112 from'./sidebar';import _0x55ce9c from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4ce67c,BodyCollection as _0x4fb36d}from'ckeditor5/src/ui';import{CKEditorError as _0x164b60,DomEmitterMixin as _0x1b2b1b,keyCodes as _0x351887,Collection as _0x5a2ed6}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x11cb1f}from'lodash-es';import _0x1f6922 from'./editorannotations';export default class s extends _0x166dab{static get['requires'](){return[_0x38e112,_0x3b0f29];}static get[_0x52cf('0x20')](){return _0x52cf('0x55');}constructor(_0x3d2eed){super(_0x3d2eed),this[_0x52cf('0x2b')]=!0x1,this[_0x52cf('0x3e')]=new Set(),this['_domEmitter']=Object[_0x52cf('0xf')](_0x1b2b1b),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this[_0x52cf('0xa')]=[],this[_0x52cf('0x21')]=new _0x5a2ed6(),this[_0x52cf('0x5e')]=_0x11cb1f(()=>{this[_0x52cf('0x4d')]();},0xfa,{'leading':!0x1});}[_0x52cf('0x54')](){this[_0x52cf('0x6')][_0x52cf('0x33')][_0x52cf('0x26')](_0x3b0f29)[_0x52cf('0x5b')](_0x52cf('0x42'),this),this[_0x52cf('0x5a')]=new _0x4fb36d(this[_0x52cf('0x6')][_0x52cf('0x5')]),this['balloonPanelView']=new _0x4ce67c(this[_0x52cf('0x6')][_0x52cf('0x5')]),this[_0x52cf('0x5a')][_0x52cf('0x22')](),this[_0x52cf('0x5a')]['add'](this[_0x52cf('0x32')]);}['attach'](_0x773e04){this['annotations']=_0x773e04;const _0x1ba813=this[_0x52cf('0x6')][_0x52cf('0x33')][_0x52cf('0x26')](_0x38e112),_0x1933a1=this[_0x52cf('0x32')];if(_0x1ba813[_0x52cf('0x10')]=_0x773e04,this[_0x52cf('0x2b')])throw new _0x164b60(_0x52cf('0xc'),this);this[_0x52cf('0x2b')]=!0x0,this['listenTo'](_0x1ba813,_0x52cf('0x1b'),()=>{this[_0x52cf('0xe')](),this[_0x52cf('0x2a')](_0x1ba813,_0x52cf('0x1f'),_0x128329=>{_0x128329['off'](),this['attach'](_0x773e04);});}),_0x1ba813[_0x52cf('0x39')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x4ed286=_0x4bc59d=>{const _0x237210=new _0x55ce9c(this[_0x52cf('0x6')]['locale']);_0x1ba813[_0x52cf('0x59')](_0x4bc59d,_0x237210),this[_0x52cf('0x7')][_0x52cf('0x9')](_0x4bc59d,_0x237210),_0x237210[_0x52cf('0x4f')](_0x52cf('0x4e'),'annotationType',_0x52cf('0x45'))['to'](_0x4bc59d[_0x52cf('0x5f')],_0x52cf('0x4e'),'type','length'),_0x237210['on']('execute',()=>{this[_0x52cf('0x3e')][_0x52cf('0x57')](),_0x1933a1[_0x52cf('0x44')][_0x52cf('0x60')]!==_0x4bc59d[_0x52cf('0x5f')]?(this[_0x52cf('0x15')](_0x4bc59d),_0x4bc59d[_0x52cf('0x5f')][_0x52cf('0x58')]['focus'](),this[_0x52cf('0x2d')](_0x4bc59d)):this['setActiveAnnotation'](null);});};for(const _0x340649 of _0x773e04)_0x4ed286(_0x340649);this['listenTo'](_0x773e04,'add',(_0x5ac710,_0x44a7f2)=>{_0x4ed286(_0x44a7f2);}),this['listenTo'](_0x773e04,_0x52cf('0x3c'),(_0x2767f0,_0x54547b,_0x547593)=>{this[_0x52cf('0x7')][_0x52cf('0x26')](_0x54547b)[_0x52cf('0x52')](),this[_0x52cf('0x7')][_0x52cf('0x41')](_0x54547b),_0x1ba813[_0x52cf('0x5d')]({'removedAnnotation':_0x54547b,'previousAnnotation':_0x773e04['get'](_0x547593-0x1),'nextAnnotation':_0x773e04[_0x52cf('0x26')](_0x547593+0x1)}),_0x54547b===this[_0x52cf('0x23')]&&this[_0x52cf('0x2d')](null);},{'priority':_0x52cf('0x1e')}),this[_0x52cf('0x2a')](_0x773e04,_0x52cf('0x1c'),(_0x52c1b4,_0x1016a8)=>{this[_0x52cf('0x2d')](_0x1016a8);}),this[_0x52cf('0x2a')](_0x773e04,_0x52cf('0x30'),()=>{this[_0x52cf('0x2d')](null);}),this[_0x52cf('0x37')]['listenTo'](document,_0x52cf('0x50'),(_0x10a494,_0x584d85)=>{_0x584d85['keyCode']===_0x351887[_0x52cf('0x35')]&&_0x1933a1[_0x52cf('0x5c')]&&(this[_0x52cf('0x3e')][_0x52cf('0x56')](_0x1933a1[_0x52cf('0x44')]['first']),this['_hideBalloon'](),_0x584d85[_0x52cf('0x28')](),_0x584d85['preventDefault']());}),this['_domEmitter'][_0x52cf('0x2a')](document,_0x52cf('0x46'),(_0x17eaca,_0x380353)=>{const _0x1ad99b=_0x380353['target'];_0x1933a1[_0x52cf('0x5c')]&&_0x1933a1[_0x52cf('0x58')]['contains'](_0x1ad99b)||_0x1ba813[_0x52cf('0x5f')]['element'][_0x52cf('0x34')](_0x1ad99b)||_0x17eaca[_0x52cf('0x0')]||this[_0x52cf('0x23')]&&this[_0x52cf('0x23')][_0x52cf('0x31')][_0x52cf('0x48')](_0x18fb79=>_0x18fb79['contains'](_0x1ad99b))||(this['_manuallyClosedAnnotationViews'][_0x52cf('0x57')](),this['_hideBalloon'](),this[_0x52cf('0x2d')](null));});const _0x2a097a=this[_0x52cf('0x6')]instanceof _0x1954d5?this[_0x52cf('0x6')][_0x52cf('0x4a')]:new _0x5a2ed6([this[_0x52cf('0x6')]]);for(const _0x9f9a59 of _0x2a097a)this[_0x52cf('0x18')](_0x9f9a59);this[_0x52cf('0x2a')](_0x2a097a,'add',(_0x59e738,_0xdc6631)=>{this[_0x52cf('0x2a')](_0xdc6631,_0x52cf('0x14'),()=>{this[_0x52cf('0x18')](_0xdc6631);});}),this['listenTo'](_0x2a097a,_0x52cf('0x3c'),(_0x17c519,_0x2ac816)=>{_0x2ac816[_0x52cf('0x33')][_0x52cf('0x2')]('EditorAnnotations')&&this[_0x52cf('0x29')](_0x2ac816['plugins'][_0x52cf('0x26')](_0x52cf('0xb')));}),window[_0x52cf('0x3b')](_0x52cf('0x1'),this[_0x52cf('0x5e')]),this['_refreshPositioning']();}[_0x52cf('0x2d')](_0x1e009c){if(_0x1e009c===this[_0x52cf('0x23')])return;const _0x4ef16d=this['context'][_0x52cf('0x33')]['get'](_0x38e112);if(_0x4ef16d[_0x52cf('0x13')]({'blurredAnnotation':this[_0x52cf('0x23')],'activatedAnnotation':_0x1e009c,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1e009c)_0x4ef16d['getSidebarItemView'](_0x1e009c)?this[_0x52cf('0x15')](_0x1e009c):this[_0x52cf('0x1d')]();else this[_0x52cf('0x1d')]();this[_0x52cf('0x23')]=_0x1e009c;}[_0x52cf('0xe')](){if(!this[_0x52cf('0x2b')])throw new _0x164b60(_0x52cf('0x4b'),this);this[_0x52cf('0x2d')](null);const _0x1ceb75=this[_0x52cf('0x6')][_0x52cf('0x33')][_0x52cf('0x26')](_0x38e112);this[_0x52cf('0x1d')](),Array[_0x52cf('0x8')](this[_0x52cf('0x7')]['values'](),_0x1cdf09=>_0x1cdf09[_0x52cf('0x52')]()),this[_0x52cf('0x7')]['clear'](),_0x1ceb75['_detachFromContainer'](this['annotations']),this[_0x52cf('0x36')](),this[_0x52cf('0x37')][_0x52cf('0x36')](),this[_0x52cf('0x6')]instanceof _0x1954d5&&this[_0x52cf('0x36')](this[_0x52cf('0x6')]['editors']);for(const _0x3b9881 of Array[_0x52cf('0x8')](this[_0x52cf('0x21')]))this['_destroyEditorAnnotationsIntegration'](_0x3b9881);window[_0x52cf('0x40')](_0x52cf('0x1'),this[_0x52cf('0x5e')]),this['_refreshPositioningDebounced'][_0x52cf('0x11')](),this[_0x52cf('0xa')]=[],this[_0x52cf('0x2b')]=!0x1,this[_0x52cf('0x17')]=null;}[_0x52cf('0x52')](){this[_0x52cf('0x2b')]&&this[_0x52cf('0xe')](),this[_0x52cf('0x5a')][_0x52cf('0x3a')]();}['_integrateWithEditorAnnotations'](_0x508627){const _0x5735c7=_0x508627[_0x52cf('0x33')]['get'](_0x1f6922),_0x3bdf11=this[_0x52cf('0x6')][_0x52cf('0x33')][_0x52cf('0x26')](_0x38e112),_0x25b05=this['annotations'],_0x5ba580=this[_0x52cf('0x32')],_0x24dac0=()=>{const _0x1a2c57=_0x5735c7[_0x52cf('0x2f')]({'annotations':this[_0x52cf('0x17')],'activeAnnotation':this[_0x52cf('0x23')]});this['_setSelectedAnnotations'](_0x1a2c57),this['setActiveAnnotation'](_0x1a2c57[0x0]||null);};this[_0x52cf('0x2a')](_0x5735c7,_0x52cf('0x13'),_0x24dac0),this[_0x52cf('0x2a')](_0x5735c7,_0x52cf('0x30'),(_0x478fe0,{isAnnotationTracked:_0x4be3f5})=>{this[_0x52cf('0x23')]&&_0x4be3f5(this[_0x52cf('0x23')])&&(this[_0x52cf('0x61')]([]),this[_0x52cf('0x2d')](null));}),this[_0x52cf('0x2a')](_0x5735c7,_0x52cf('0x38'),()=>{this[_0x52cf('0x5e')]();}),this[_0x52cf('0x2a')](_0x25b05,'blur',_0x18fd0f=>{_0x5735c7[_0x52cf('0x19')]()&&_0x18fd0f[_0x52cf('0x4')]();},{'priority':_0x52cf('0x53')}),this[_0x52cf('0x2a')](this['_domEmitter'],'mousedown',(_0x4e03df,_0x5a6204)=>{const _0x53b454=_0x5a6204[_0x52cf('0x4c')];_0x5ba580[_0x52cf('0x5c')]&&_0x5ba580[_0x52cf('0x58')][_0x52cf('0x34')](_0x53b454)||_0x3bdf11[_0x52cf('0x5f')][_0x52cf('0x58')][_0x52cf('0x34')](_0x53b454)||this['activeAnnotation']&&_0x5735c7[_0x52cf('0x19')]()&&(_0x24dac0(),_0x4e03df[_0x52cf('0x0')]=!0x0);},{'priority':_0x52cf('0x53')}),this[_0x52cf('0x21')][_0x52cf('0x56')](_0x5735c7);}[_0x52cf('0x29')](_0xa9a6e5){_0xa9a6e5&&(this['stopListening'](_0xa9a6e5),this[_0x52cf('0x21')]['remove'](_0xa9a6e5));}[_0x52cf('0x61')](_0x4b552a){for(const _0x3bacfe of this[_0x52cf('0xa')])_0x4b552a[_0x52cf('0x2e')](_0x3bacfe)||this[_0x52cf('0x3e')][_0x52cf('0x41')](_0x3bacfe[_0x52cf('0x5f')]);this['_selectedAnnotations']=_0x4b552a;}[_0x52cf('0x4d')](){const _0xb1a692=this[_0x52cf('0x32')];this[_0x52cf('0x17')][_0x52cf('0x1a')](),_0xb1a692[_0x52cf('0x5c')]&&this[_0x52cf('0x24')]();}[_0x52cf('0x15')](_0x3ce2d4){if(this['_manuallyClosedAnnotationViews'][_0x52cf('0x2')](_0x3ce2d4[_0x52cf('0x5f')]))return;const _0x4f0282=this[_0x52cf('0x32')][_0x52cf('0x44')][_0x52cf('0x60')];_0x4f0282!==_0x3ce2d4['view']?(_0x4f0282&&this['_detachListeners'](_0x4f0282),this[_0x52cf('0x51')](_0x3ce2d4[_0x52cf('0x5f')]),this[_0x52cf('0x32')][_0x52cf('0x44')][_0x52cf('0x57')](),this[_0x52cf('0x32')][_0x52cf('0x44')][_0x52cf('0x56')](_0x3ce2d4[_0x52cf('0x5f')]),this[_0x52cf('0x24')]()):this[_0x52cf('0x24')]();}['_updateBalloonPosition'](){const _0x2d9f94=this[_0x52cf('0x32')]['content'][_0x52cf('0x60')],_0x555961=_0x2d9f94&&this[_0x52cf('0x17')]['getByView'](_0x2d9f94);if(!_0x555961||!this['_annotationToNarrowView'][_0x52cf('0x2')](_0x555961))return;const _0x3f65ae=this[_0x52cf('0x7')][_0x52cf('0x26')](_0x555961)[_0x52cf('0x58')],_0x41b5be=function(){const _0x4989df=_0x4ce67c[_0x52cf('0x43')];return[_0x4989df[_0x52cf('0x16')],_0x4989df[_0x52cf('0x27')],_0x4989df[_0x52cf('0x25')],_0x4989df[_0x52cf('0x2c')],_0x4989df[_0x52cf('0x49')],_0x4989df[_0x52cf('0x47')]];}();this[_0x52cf('0x32')][_0x52cf('0x3')]({'target':_0x3f65ae,'positions':_0x41b5be});}[_0x52cf('0x1d')](){const _0x2b9118=this[_0x52cf('0x32')],_0x23abf2=_0x2b9118[_0x52cf('0x44')][_0x52cf('0x60')];_0x23abf2&&(this['_detachListeners'](_0x23abf2),_0x2b9118[_0x52cf('0x3d')](),_0x2b9118[_0x52cf('0x44')][_0x52cf('0x57')]());}['_attachListeners'](_0x30609c){this[_0x52cf('0x2a')](_0x30609c,_0x52cf('0x3f'),()=>this[_0x52cf('0x24')]()),this[_0x52cf('0x2a')](_0x30609c,_0x52cf('0xd'),(_0x3ed8be,_0x332837)=>{this[_0x52cf('0x3e')]['add'](_0x30609c),this[_0x52cf('0x1d')](),_0x332837();});}[_0x52cf('0x12')](_0x4d4c9b){this['stopListening'](_0x4d4c9b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3192=['isAnimationDisabled','locale','sidebar.preventScrollOutOfView','getSidebarItemView','render','getIndex','set','top','rearrange','_alignForTopChange','get','_targetTop','setContainer','change:targetRect','define','bottom','list','stopListening','targetRect','_getItemAfter','context','updateHeight','last','addAnnotation','add','nodeType','_getTargetTop','_sidebarItemViewToAnnotation','_updateLastItem','_createSidebarView','_annotationToSidebarItemView','_getMaxAvailableTop','_alignForBottomChange','change:_lastItem','minHeight','change:top','length','content','config','_alignAfterItem','_annotations','destroy','_lastItem','_recalculate','listenTo','change:bottom','sidebar.container','container','max','_spaceBetweenItems','target','sidebar-attachtocontainer-missing-container','refresh','view','remove','_alignBeforeItem','object','isActive','_alignToTargetRect','Sidebar','clear','class','element','_getItemBefore','_recalculateBuffer','sidebar-setcontainer-invalid-element','push','_setItemTop','bind','_destroySidebarItemView','_activeAnnotation','_attachToContainer'];(function(_0x5be2a4,_0x31928e){const _0x4d31c3=function(_0x3c98c4){while(--_0x3c98c4){_0x5be2a4['push'](_0x5be2a4['shift']());}};_0x4d31c3(++_0x31928e);}(_0x3192,0x1e6));const _0x4d31=function(_0x5be2a4,_0x31928e){_0x5be2a4=_0x5be2a4-0x0;let _0x4d31c3=_0x3192[_0x5be2a4];return _0x4d31c3;};import{ContextPlugin as _0xc11ca3}from'ckeditor5/src/core';import{Rect as _0x42d376,CKEditorError as _0xfe0a75}from'ckeditor5/src/utils';import _0x368a48 from'./view/sidebarview';import _0x1ba18b from'./view/sidebaritemview';export default class z extends _0xc11ca3{static get['pluginName'](){return _0x4d31('0x5');}constructor(_0x36a906){super(_0x36a906),this[_0x4d31('0x18')](_0x4d31('0x3c'),void 0x0),this['view']=this[_0x4d31('0x2f')](),this[_0x4d31('0x18')](_0x4d31('0x41'),null),this[_0x4d31('0x43')]=0x19,this[_0x4d31('0x2d')]=new Map(),this[_0x4d31('0x30')]=new Map(),this[_0x4d31('0x26')]['config'][_0x4d31('0x20')](_0x4d31('0x14'),!0x1),this[_0x4d31('0x3a')]=null,this[_0x4d31('0x10')]=null,this[_0x4d31('0xa')]=[];}['init'](){const _0x13a68b=this[_0x4d31('0x26')][_0x4d31('0x38')][_0x4d31('0x1c')](_0x4d31('0x40'));_0x13a68b&&this[_0x4d31('0x1e')](_0x13a68b);}[_0x4d31('0x1e')](_0x253d78){if(!y(_0x253d78))throw new _0xfe0a75(_0x4d31('0xb'));this[_0x4d31('0x41')]=_0x253d78;}[_0x4d31('0x11')]({viewClass:_0x5a1fcc='',spaceBetweenItems:_0x4ca3ac=0x19}={}){if(!y(this[_0x4d31('0x41')]))throw new _0xfe0a75(_0x4d31('0x45'),this);this['container']['appendChild'](this[_0x4d31('0x47')][_0x4d31('0x8')]),this[_0x4d31('0x47')]['class']=_0x5a1fcc,this['_spaceBetweenItems']=_0x4ca3ac;}[_0x4d31('0x1a')]({removedAnnotation:_0x40b166,previousAnnotation:_0x3b5f3e,nextAnnotation:_0x2fe1a5}){const _0x375837=this[_0x4d31('0x15')](_0x40b166);this['view'][_0x4d31('0x22')][_0x4d31('0x0')](_0x375837),this[_0x4d31('0xf')](_0x40b166),_0x3b5f3e&&this[_0x4d31('0x4')](this[_0x4d31('0x15')](_0x3b5f3e)),_0x2fe1a5&&this[_0x4d31('0x4')](this['getSidebarItemView'](_0x2fe1a5)),this[_0x4d31('0x2e')]();}[_0x4d31('0x46')]({blurredAnnotation:_0x2c4c0a,activatedAnnotation:_0x4f107b,disableAnimationOnActivatedAnnotation:_0x1a7568}){if(this['_activeAnnotation']=_0x4f107b,_0x2c4c0a){_0x2c4c0a[_0x4d31('0x3')]=!0x1;const _0x4230c8=this[_0x4d31('0x15')](_0x2c4c0a);_0x4230c8&&_0x1a7568&&(_0x4230c8[_0x4d31('0x12')]=!0x1);}if(_0x4f107b){const _0x56af1a=this[_0x4d31('0x15')](_0x4f107b);_0x56af1a&&(_0x4f107b[_0x4d31('0x3')]=!0x0,_0x1a7568&&(_0x56af1a['isAnimationDisabled']=!0x0,_0x56af1a[_0x4d31('0x19')]+=0x1),this[_0x4d31('0x4')](_0x56af1a));}}['_detachFromContainer'](_0x4fc5e1){if(this['view']['element'][_0x4d31('0x0')](),_0x4fc5e1)for(const _0x2536d1 of _0x4fc5e1)this[_0x4d31('0xf')](_0x2536d1);this[_0x4d31('0x47')][_0x4d31('0x22')][_0x4d31('0x6')](),this['view'][_0x4d31('0x7')]='',this[_0x4d31('0x3c')]=null;}[_0x4d31('0x29')](_0x55eee4,_0x57e08e){_0x57e08e||(_0x57e08e=_0x55eee4[_0x4d31('0x47')]);const _0x328dce=new _0x1ba18b(this[_0x4d31('0x26')][_0x4d31('0x13')]);this['_sidebarItemViewToAnnotation'][_0x4d31('0x18')](_0x328dce,_0x55eee4),this[_0x4d31('0x30')][_0x4d31('0x18')](_0x55eee4,_0x328dce),_0x328dce[_0x4d31('0x37')]['add'](_0x57e08e),this['listenTo'](_0x55eee4[_0x4d31('0x47')],_0x4d31('0x1f'),(_0x3f1eba,_0x2a14c7,_0x388b98)=>{const _0x5e8ff8=this[_0x4d31('0x2c')](_0x55eee4,_0x388b98);_0x328dce[_0x4d31('0x1d')]!=_0x5e8ff8&&(_0x328dce['_targetTop']=_0x5e8ff8,this['_setItemTop'](_0x328dce,_0x5e8ff8));}),this[_0x4d31('0x3e')](_0x328dce,_0x4d31('0x35'),()=>{this[_0x4d31('0x3d')](_0x328dce,_0x4d31('0x19'));}),this[_0x4d31('0x3e')](_0x328dce,_0x4d31('0x3f'),()=>{this['_recalculate'](_0x328dce,'bottom');}),this[_0x4d31('0x4')](_0x328dce);const _0x5551b3=this[_0x4d31('0x9')](_0x328dce);if(_0x5551b3)this[_0x4d31('0x39')](_0x5551b3,_0x328dce)||this[_0x4d31('0x4')](_0x328dce);else this[_0x4d31('0x4')](_0x328dce);return this[_0x4d31('0x2e')](),this['view']['list'][_0x4d31('0x2a')](_0x328dce),_0x328dce;}[_0x4d31('0x1b')](_0x499ede){if(!_0x499ede[_0x4d31('0x37')][_0x4d31('0x36')])return;const _0x544ad6=this['_getItemBefore'](_0x499ede);if(!_0x544ad6)return;const _0x1b5290=this['_sidebarItemViewToAnnotation'][_0x4d31('0x1c')](_0x544ad6),_0x57b241=this[_0x4d31('0x10')];_0x57b241&&_0x57b241===_0x1b5290?this[_0x4d31('0x39')](_0x544ad6,_0x499ede):this['_alignBeforeItem'](_0x499ede,_0x544ad6);}[_0x4d31('0x32')](_0x3989ae){if(!_0x3989ae[_0x4d31('0x37')][_0x4d31('0x36')])return;const _0x436be6=this['_getItemAfter'](_0x3989ae);if(!_0x436be6)return;const _0x52d7b0=this[_0x4d31('0x2d')][_0x4d31('0x1c')](_0x436be6),_0x20bbf3=this[_0x4d31('0x26')]['config'][_0x4d31('0x1c')](_0x4d31('0x14')),_0x317b58=this['_activeAnnotation'];_0x317b58&&_0x317b58===_0x52d7b0&&_0x20bbf3?(this[_0x4d31('0x1')](_0x436be6,_0x3989ae),this[_0x4d31('0x39')](_0x3989ae,_0x436be6)):_0x317b58&&_0x317b58===_0x52d7b0?this[_0x4d31('0x1')](_0x436be6,_0x3989ae):this[_0x4d31('0x39')](_0x3989ae,_0x436be6);}[_0x4d31('0x3d')](_0x292e3a,_0x596ecd){0x0===this[_0x4d31('0xa')][_0x4d31('0x36')]&&setTimeout(()=>{for(const {sidebarItemView:_0x539f86,changedProp:_0x118bf0}of this[_0x4d31('0xa')])_0x4d31('0x19')===_0x118bf0?this['_alignForTopChange'](_0x539f86):this[_0x4d31('0x32')](_0x539f86);this[_0x4d31('0xa')]=[];},0xa),this[_0x4d31('0xa')][_0x4d31('0xc')]({'sidebarItemView':_0x292e3a,'changedProp':_0x596ecd});}[_0x4d31('0x15')](_0x7dbc52){return this[_0x4d31('0x30')][_0x4d31('0x1c')](_0x7dbc52);}[_0x4d31('0x3b')](){this[_0x4d31('0x23')](),this['view']['destroy']();}['_destroySidebarItemView'](_0x97b82f){const _0x385642=this['getSidebarItemView'](_0x97b82f);this['stopListening'](_0x385642),this[_0x4d31('0x23')](_0x97b82f[_0x4d31('0x47')]),_0x385642[_0x4d31('0x3b')](),this['_annotationToSidebarItemView']['delete'](_0x97b82f),this['_sidebarItemViewToAnnotation']['delete'](_0x385642);}[_0x4d31('0x2f')](){const _0x27b7f7=new _0x368a48(this[_0x4d31('0x26')][_0x4d31('0x13')]);return _0x27b7f7[_0x4d31('0x16')](),this['on'](_0x4d31('0x33'),(_0x4245de,_0x3599ca,_0x47a10,_0x32eecd)=>{_0x32eecd&&_0x27b7f7['unbind'](_0x4d31('0x34')),_0x47a10?_0x27b7f7[_0x4d31('0xe')](_0x4d31('0x34'))['to'](_0x47a10,'bottom'):_0x27b7f7[_0x4d31('0x34')]=null;}),_0x27b7f7;}[_0x4d31('0x2e')](){var _0x2e6ce6;this[_0x4d31('0x3c')]=(null===(_0x2e6ce6=this[_0x4d31('0x3a')])||void 0x0===_0x2e6ce6?void 0x0:_0x2e6ce6[_0x4d31('0x28')])?this[_0x4d31('0x15')](this[_0x4d31('0x3a')][_0x4d31('0x28')]):null;}[_0x4d31('0x9')](_0x16688c){var _0xbd6419;const _0x281f42=this['_sidebarItemViewToAnnotation']['get'](_0x16688c),_0x68fcd4=_0x281f42&&(null===(_0xbd6419=this[_0x4d31('0x3a')])||void 0x0===_0xbd6419?void 0x0:_0xbd6419[_0x4d31('0x1c')](this[_0x4d31('0x3a')][_0x4d31('0x17')](_0x281f42)-0x1));return _0x68fcd4&&this['getSidebarItemView'](_0x68fcd4)||null;}[_0x4d31('0x25')](_0xce9ad){var _0x435a9f;const _0x341b70=this[_0x4d31('0x2d')][_0x4d31('0x1c')](_0xce9ad),_0xe850b7=_0x341b70&&(null===(_0x435a9f=this[_0x4d31('0x3a')])||void 0x0===_0x435a9f?void 0x0:_0x435a9f['get'](this[_0x4d31('0x3a')][_0x4d31('0x17')](_0x341b70)+0x1));return _0xe850b7&&this['getSidebarItemView'](_0xe850b7)||null;}[_0x4d31('0x1')](_0x382b97,_0x515ed7){_0x382b97[_0x4d31('0x27')]();const _0x580b29=H(_0x515ed7[_0x4d31('0x21')]+this[_0x4d31('0x43')],_0x382b97['top']);return!!_0x580b29&&(this['_setItemTop'](_0x515ed7,_0x515ed7[_0x4d31('0x19')]-_0x580b29),!0x0);}[_0x4d31('0x39')](_0x2629ee,_0x1ab088){_0x2629ee[_0x4d31('0x27')]();const _0xc1d3ed=H(_0x2629ee[_0x4d31('0x21')]+this[_0x4d31('0x43')],_0x1ab088[_0x4d31('0x19')]);return!!_0xc1d3ed&&(this[_0x4d31('0xd')](_0x1ab088,_0x1ab088['top']+_0xc1d3ed,!0x1),!0x0);}[_0x4d31('0x4')](_0x1f3ea7){const _0xad6cb8=this['_sidebarItemViewToAnnotation'][_0x4d31('0x1c')](_0x1f3ea7);if(!_0xad6cb8||!_0xad6cb8[_0x4d31('0x44')]||!_0xad6cb8[_0x4d31('0x24')])return;const _0x3ad36e=this['_getTargetTop'](_0xad6cb8,_0xad6cb8[_0x4d31('0x24')]);this[_0x4d31('0xd')](_0x1f3ea7,_0x3ad36e);}['_getTargetTop'](_0x6eac79,_0x21d3f6){if(null===_0x21d3f6)return 0x0;if(_0x6eac79[_0x4d31('0x44')]instanceof _0x42d376)return _0x21d3f6['top'];{const _0x54e404=new _0x42d376(this[_0x4d31('0x47')]['element'])[_0x4d31('0x19')];return _0x21d3f6[_0x4d31('0x19')]-_0x54e404;}}['_setItemTop'](_0x1640f3,_0xcf6a30,_0xbf1bb7=this[_0x4d31('0x26')][_0x4d31('0x38')][_0x4d31('0x1c')](_0x4d31('0x14'))){_0xbf1bb7&&(_0xcf6a30=Math[_0x4d31('0x42')](_0xcf6a30,this['_getMaxAvailableTop'](_0x1640f3))),_0x1640f3[_0x4d31('0x19')]=_0xcf6a30;}[_0x4d31('0x31')](_0x14410c){let _0x4d6d98=this['_getItemBefore'](_0x14410c),_0x5ccc5a=0x0;for(;_0x4d6d98;)_0x4d6d98[_0x4d31('0x27')](),_0x5ccc5a+=this[_0x4d31('0x43')]+_0x4d6d98['height'],_0x4d6d98=this[_0x4d31('0x9')](_0x4d6d98);return _0x5ccc5a;}}function H(_0x9f24eb,_0x30284f){return Math['max'](_0x9f24eb-_0x30284f,0x0);}function y(_0x231de6){return null!==_0x231de6&&_0x4d31('0x2')==typeof _0x231de6&&0x1===_0x231de6[_0x4d31('0x2b')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a7b=['ck-annotation-counter__badge--edit-mode','ck-annotation-counter__badge','counterView','bind','children','ck-annotation-counter','_badge','add','set','isDirty','toString','span','extendTemplate','setTemplate','...','annotationType','bindTemplate','number'];(function(_0x4a9727,_0x1a7b09){const _0x2c54e9=function(_0x1d2621){while(--_0x1d2621){_0x4a9727['push'](_0x4a9727['shift']());}};_0x2c54e9(++_0x1a7b09);}(_0x1a7b,0x19d));const _0x2c54=function(_0x4a9727,_0x1a7b09){_0x4a9727=_0x4a9727-0x0;let _0x2c54e9=_0x1a7b[_0x4a9727];return _0x2c54e9;};import{ButtonView as _0x32d46c,View as _0x27ae6d}from'ckeditor5/src/ui';import _0x722b41 from'../../../theme/icons/add-comment.svg';export default class D extends _0x32d46c{constructor(_0x11339c){super(_0x11339c);const _0x593539=this[_0x2c54('0x11')];this[_0x2c54('0x9')](_0x2c54('0xa'),!0x1),this[_0x2c54('0x9')](_0x2c54('0x0'),0x0),this[_0x2c54('0x4')](_0x2c54('0x7'))['to'](this,_0x2c54('0xa'),this,'number',(_0x432f0d,_0x347a21)=>_0x432f0d?_0x2c54('0xf'):_0x347a21[_0x2c54('0xb')]()),this['set'](_0x2c54('0x10'),''),this['icon']=_0x722b41,this[_0x2c54('0xd')]({'attributes':{'class':[_0x2c54('0x6')]}}),this[_0x2c54('0x3')]=new _0x27ae6d(),this[_0x2c54('0x3')][_0x2c54('0xe')]({'tag':_0x2c54('0xc'),'attributes':{'class':[_0x2c54('0x2'),_0x593539['to'](_0x2c54('0x10'),_0x315ee9=>'ck-annotation-counter__badge--'+_0x315ee9),_0x593539['if'](_0x2c54('0xa'),_0x2c54('0x1'))]},'children':[{'text':_0x593539['to'](_0x2c54('0x7'))}]}),this[_0x2c54('0x5')][_0x2c54('0x8')](this['counterView']);}}
|