@ckeditor/ckeditor5-comments 0.0.0-nightly-20240204.0 → 0.0.0-nightly-20240206.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/theme/annotation.css +4 -0
- package/theme/commentthread.css +4 -0
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-20240206.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/)",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"CHANGELOG.md"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"ckeditor5": "0.0.0-nightly-
|
|
48
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
47
|
+
"ckeditor5": "0.0.0-nightly-20240206.0",
|
|
48
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240206.0",
|
|
49
49
|
"lodash-es": "4.17.21"
|
|
50
50
|
},
|
|
51
51
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f66=['_assertCorrectTarget','updateTargetRect','_id','set','item','every','stopListening','offsetParent','focusableElements','isActive','destroy','getClientRects','clear','mainView','view','_getNormalizedTarget','element','isArray','_target','remove','refreshVisibility','target','add','filter','object','function','nodeType','focusTracker','annotation-invalid-target','_type','length','targetRect','isVisible','innerView'];(function(_0x56dff3,_0x2f661e){const _0x34ed23=function(_0x4244e1){while(--_0x4244e1){_0x56dff3['push'](_0x56dff3['shift']());}};_0x34ed23(++_0x2f661e);}(_0x2f66,0x1d1));const _0x34ed=function(_0x56dff3,_0x2f661e){_0x56dff3=_0x56dff3-0x0;let _0x34ed23=_0x2f66[_0x56dff3];return _0x34ed23;};import{CKEditorError as _0x453510,Rect as _0x5f503d,Collection as _0x1955e7,ObservableMixin as _0x4270de}from'ckeditor5/src/utils.js';export default class d extends _0x4270de(){constructor({view:_0x50c04d,target:_0x300f60,type:_0x4ed4f4,isVisible:_0x1dd3ab=!0x0}){super(),this[_0x34ed('0x19')]=_0x50c04d,this[_0x34ed('0x19')]['element']||this[_0x34ed('0x19')]['render'](),this[_0x34ed('0x6')]=_0x4ed4f4,this[_0x34ed('0x1d')]=_0x300f60,d[_0x34ed('0xb')](this[_0x34ed('0x1a')]()),this[_0x34ed('0x13')]=new _0x1955e7([this[_0x34ed('0x19')][_0x34ed('0x1b')]],{'idProperty':_0x34ed('0xd')}),this[_0x34ed('0x13')]['on'](_0x34ed('0x21'),(_0x1decb1,_0x25d901)=>{this[_0x34ed('0x19')][_0x34ed('0x4')]['add'](_0x25d901);}),this[_0x34ed('0x13')]['on'](_0x34ed('0x1e'),(_0x1aa11f,_0x309e66)=>{this[_0x34ed('0x19')][_0x34ed('0x4')][_0x34ed('0x1e')](_0x309e66);}),this[_0x34ed('0xe')](_0x34ed('0x9'),_0x1dd3ab);}get['type'](){return _0x34ed('0x2')==typeof this['_type']?this[_0x34ed('0x6')]():this[_0x34ed('0x6')];}get[_0x34ed('0xa')](){return this[_0x34ed('0x19')][_0x34ed('0x18')];}get[_0x34ed('0x20')](){const _0x121de0=this[_0x34ed('0x1a')]();return d[_0x34ed('0xb')](_0x121de0),_0x121de0;}get[_0x34ed('0x8')](){const _0x42d570=this[_0x34ed('0x20')];if(null===_0x42d570)return null;if(_0x42d570 instanceof _0x5f503d)return _0x42d570;const _0x5d8bdf=_0x42d570[_0x34ed('0x0')](_0x15a6b3=>function(_0x8a0d72){const _0x3a4644=_0x8a0d72[_0x34ed('0x12')];if(_0x3a4644)return!0x0;const _0x17f7ea=_0x8a0d72['getClientRects']()[_0x34ed('0xf')](0x0);return!!_0x17f7ea;}(_0x15a6b3));return 0x0===_0x5d8bdf[_0x34ed('0x7')]?null:new _0x5f503d(_0x5d8bdf[0x0][_0x34ed('0x16')]()[_0x34ed('0xf')](0x0));}get['isActive'](){return this['view'][_0x34ed('0x14')];}set[_0x34ed('0x14')](_0x528b37){this[_0x34ed('0x19')]['isActive']=_0x528b37,this[_0x34ed('0x19')][_0x34ed('0x18')][_0x34ed('0x14')]=_0x528b37;}[_0x34ed('0xc')](){this[_0x34ed('0x19')][_0x34ed('0x8')]=this[_0x34ed('0x8')];}[_0x34ed('0x15')](){this[_0x34ed('0x13')][_0x34ed('0x11')](),this['focusableElements'][_0x34ed('0x17')](),this['stopListening']();}[_0x34ed('0x1f')](){this[_0x34ed('0x9')]=!!this['targetRect'];}static['_assertCorrectTarget'](_0x3e85b9){if(!(null===_0x3e85b9||_0x3e85b9 instanceof _0x5f503d||Array[_0x34ed('0x1c')](_0x3e85b9)&&_0x3e85b9[_0x34ed('0x10')](_0x35e73e=>y(_0x35e73e))))throw new _0x453510(_0x34ed('0x5'),null,{'target':_0x3e85b9});}[_0x34ed('0x1a')](){const _0x16c5e4=_0x34ed('0x2')==typeof this[_0x34ed('0x1d')]?this[_0x34ed('0x1d')]():this[_0x34ed('0x1d')];return y(_0x16c5e4)?[_0x16c5e4]:_0x16c5e4;}}function y(_0xc07651){return null!==_0xc07651&&_0x34ed('0x1')==typeof _0xc07651&&'nodeType'in _0xc07651&&0x1===_0xc07651[_0x34ed('0x3')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1542=['annotationcollection-not-existing-item','_getOrderInContent','getByView','view','change:isFocused','stopListening','has','get','_sort','focusableElements','innerView','targetRect','listenTo','focus','_innerViewToAnnotation','length','isFocused','delete','blur','getByInnerView','clear','destroy','_focusTracker','set','_viewToAnnotation','top','add','updateTargetRect','from','getIndex','remove'];(function(_0xf44bef,_0x154215){const _0x4ec547=function(_0xdcac10){while(--_0xdcac10){_0xf44bef['push'](_0xf44bef['shift']());}};_0x4ec547(++_0x154215);}(_0x1542,0xa4));const _0x4ec5=function(_0xf44bef,_0x154215){_0xf44bef=_0xf44bef-0x0;let _0x4ec547=_0x1542[_0xf44bef];return _0x4ec547;};import{CKEditorError as _0x3dfcd3,Collection as _0x3a7e85,FocusTracker as _0xd3a64f}from'ckeditor5/src/utils.js';export default class x extends _0x3a7e85{constructor(_0x221395=[]){super(),this[_0x4ec5('0x5')]=new Map(),this[_0x4ec5('0xf')]=new Map(),this['_focusTracker']=new _0xd3a64f(),this[_0x4ec5('0xd')]['on']('change:isFocused',(_0x2593dc,_0xb051a4,_0xc55a4f)=>{_0xc55a4f||this['fire'](_0x4ec5('0x9'));});for(const _0xa80706 of _0x221395)this['add'](_0xa80706);}get[_0x4ec5('0x7')](){return this[_0x4ec5('0xd')][_0x4ec5('0x7')];}[_0x4ec5('0x11')](_0x54e5e4){if(this[_0x4ec5('0x1c')](_0x54e5e4))throw new _0x3dfcd3('annotationcollection-duplicated-item',null);this[_0x4ec5('0x5')]['set'](_0x54e5e4['innerView'],_0x54e5e4),this[_0x4ec5('0xf')][_0x4ec5('0xe')](_0x54e5e4[_0x4ec5('0x19')],_0x54e5e4);for(const _0x1be648 of _0x54e5e4[_0x4ec5('0x0')])this[_0x4ec5('0xd')][_0x4ec5('0x11')](_0x1be648);this[_0x4ec5('0x3')](_0x54e5e4[_0x4ec5('0x0')],_0x4ec5('0x11'),(_0x3f7d20,_0x2bb07a)=>{this[_0x4ec5('0xd')]['add'](_0x2bb07a);}),this[_0x4ec5('0x3')](_0x54e5e4[_0x4ec5('0x0')],_0x4ec5('0x15'),(_0x1c3f82,_0x4d5312)=>{this[_0x4ec5('0xd')][_0x4ec5('0x15')](_0x4d5312);}),this[_0x4ec5('0x3')](_0x54e5e4[_0x4ec5('0x19')]['focusTracker'],_0x4ec5('0x1a'),(_0x9dab17,_0x50c26d,_0x11c641)=>{_0x11c641&&this['fire'](_0x4ec5('0x4'),_0x54e5e4);}),_0x54e5e4[_0x4ec5('0x12')]();const _0x167d37=this['_getOrderInContent'](_0x54e5e4['view'][_0x4ec5('0x2')]);return super['add'](_0x54e5e4,_0x167d37);}[_0x4ec5('0x15')](_0x2fbb0e){if(!this[_0x4ec5('0x1c')](_0x2fbb0e))throw new _0x3dfcd3(_0x4ec5('0x16'),null);this[_0x4ec5('0x1b')](_0x2fbb0e[_0x4ec5('0x19')]['focusTracker']),this[_0x4ec5('0x1b')](_0x2fbb0e['focusableElements']);for(const _0x5a4e83 of _0x2fbb0e[_0x4ec5('0x0')])this[_0x4ec5('0xd')][_0x4ec5('0x15')](_0x5a4e83);return this[_0x4ec5('0xf')][_0x4ec5('0x8')](_0x2fbb0e[_0x4ec5('0x19')]),this[_0x4ec5('0x5')][_0x4ec5('0x8')](_0x2fbb0e[_0x4ec5('0x1')]),super[_0x4ec5('0x15')](_0x2fbb0e);}[_0x4ec5('0xa')](_0x3f3adf){return this[_0x4ec5('0x5')][_0x4ec5('0x1d')](_0x3f3adf);}[_0x4ec5('0x18')](_0x427baa){return this[_0x4ec5('0xf')][_0x4ec5('0x1d')](_0x427baa);}[_0x4ec5('0xc')](){super[_0x4ec5('0xb')](),this[_0x4ec5('0x1b')](),this[_0x4ec5('0x5')]['clear'](),this[_0x4ec5('0xf')][_0x4ec5('0xb')](),this[_0x4ec5('0xd')]['destroy']();}['refreshPositioning'](){for(const _0x3b3169 of this)_0x3b3169[_0x4ec5('0x12')]();this[_0x4ec5('0x1e')]();}[_0x4ec5('0x1e')](){const _0x495897=Array[_0x4ec5('0x13')](this)['sort']((_0x5c80e8,_0x477199)=>v(_0x5c80e8['view']['targetRect'],_0x477199[_0x4ec5('0x19')][_0x4ec5('0x2')]));for(let _0x535e4d=_0x495897[_0x4ec5('0x6')]-0x1;_0x535e4d>0x0;_0x535e4d--){const _0x4a70d5=_0x495897[_0x535e4d];_0x535e4d!==this[_0x4ec5('0x14')](_0x4a70d5)&&(this[_0x4ec5('0x15')](_0x4a70d5),this[_0x4ec5('0x11')](_0x4a70d5));}}[_0x4ec5('0x17')](_0x5b4ceb){let _0x346850=0x0;if(!_0x5b4ceb)return this[_0x4ec5('0x6')];for(const _0x1d5d87 of this){const _0x145431=_0x1d5d87[_0x4ec5('0x19')]['targetRect'];if(_0x145431){if(v(_0x5b4ceb,_0x145431)<0x0)return _0x346850;_0x346850++;}}return _0x346850;}}export function bindAnnotationCollections({source:_0xa58f50,target:_0x152a43,filter:_0x49dd01}){for(const _0x5b6211 of _0xa58f50)_0x49dd01(_0x5b6211)&&_0x152a43[_0x4ec5('0x11')](_0x5b6211);_0x152a43[_0x4ec5('0x3')](_0xa58f50,_0x4ec5('0x11'),(_0x2d2749,_0xa9b0ca)=>{_0x49dd01(_0xa9b0ca)&&_0x152a43['add'](_0xa9b0ca);}),_0x152a43[_0x4ec5('0x3')](_0xa58f50,_0x4ec5('0x15'),(_0x280b22,_0x37cf76)=>{_0x152a43['has'](_0x37cf76)&&_0x152a43[_0x4ec5('0x15')](_0x37cf76);});}function v(_0xfb44e2,_0x3e7337){if(null===_0xfb44e2&&null===_0x3e7337)return 0x0;if(null===_0xfb44e2)return-0x1;if(null===_0x3e7337)return 0x1;const _0x3f6748=_0xfb44e2[_0x4ec5('0x10')]-_0x3e7337[_0x4ec5('0x10')];return 0x0==_0x3f6748?_0xfb44e2['left']-_0x3e7337['left']:_0x3f6748;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5613=['_deactivateAllAnnotations','destroy','Annotations','refreshPositioning','delete','_visibleAnnotations','fire','getByInnerView','createAnnotation','add','view','pluginName','has','change:isVisible','refreshVisibility','source','_addActiveAnnotation','_bindAnnotationsToVisibleAnnotations','stopListening','focusTracker','activate','_activateAnnotation','activeAnnotations','remove','isVisible','collection','listenTo','createAnnotationView','element'];(function(_0x4b1bbc,_0x561312){const _0x1f3d80=function(_0x4f2a0c){while(--_0x4f2a0c){_0x4b1bbc['push'](_0x4b1bbc['shift']());}};_0x1f3d80(++_0x561312);}(_0x5613,0x19f));const _0x1f3d=function(_0x4b1bbc,_0x561312){_0x4b1bbc=_0x4b1bbc-0x0;let _0x1f3d80=_0x5613[_0x4b1bbc];return _0x1f3d80;};import{ContextPlugin as _0x130988}from'ckeditor5/src/core.js';import _0x544ace from'./annotation.js';import _0x271ade from'./annotationcollection.js';import _0x218841 from'./view/annotationview.js';export default class b extends _0x130988{static get[_0x1f3d('0x2')](){return _0x1f3d('0x16');}constructor(_0xf5cb0c){super(_0xf5cb0c),this[_0x1f3d('0x10')]=new _0x271ade(),this[_0x1f3d('0x19')]=new _0x271ade(),this['set'](_0x1f3d('0xd'),new Set()),this[_0x1f3d('0x8')]();}[_0x1f3d('0x0')](_0x6b211e){this['collection'][_0x1f3d('0x0')](_0x6b211e);}['remove'](_0xe58500){this[_0x1f3d('0x10')][_0x1f3d('0xe')](_0xe58500),_0xe58500[_0x1f3d('0x15')]();}['refreshVisibility'](){for(const _0x4983db of this[_0x1f3d('0x10')])_0x4983db[_0x1f3d('0x5')]();}['refreshPositioning'](){this[_0x1f3d('0x19')][_0x1f3d('0x17')]();}[_0x1f3d('0x1b')](_0x1bcfb7){return this[_0x1f3d('0x10')]['getByInnerView'](_0x1bcfb7);}['deactivateAll'](){this[_0x1f3d('0x1a')](_0x1f3d('0x14'));}['destroy'](){for(const _0x222917 of this['collection'])_0x222917['destroy']();this[_0x1f3d('0x19')][_0x1f3d('0x15')](),this[_0x1f3d('0x10')][_0x1f3d('0x15')](),super[_0x1f3d('0x15')]();}[_0x1f3d('0xb')](_0x2e1b2b){this['fire'](_0x1f3d('0xc'),_0x2e1b2b);}[_0x1f3d('0x1c')](_0xd8b44){return new _0x544ace(_0xd8b44);}[_0x1f3d('0x12')](_0x6a9338,_0x435602){return new _0x218841(_0x6a9338,_0x435602);}[_0x1f3d('0x7')](_0x5ab527){const _0x2ec0f8=new Set(this[_0x1f3d('0xd')]);_0x2ec0f8[_0x1f3d('0x0')](_0x5ab527),this[_0x1f3d('0xd')]=_0x2ec0f8;}['_removeActiveAnnotation'](_0x4d0625){const _0x3ce8ac=new Set(this[_0x1f3d('0xd')]);_0x3ce8ac[_0x1f3d('0x18')](_0x4d0625),this[_0x1f3d('0xd')]=_0x3ce8ac;}[_0x1f3d('0x8')](){const _0x4112ac=this[_0x1f3d('0x10')],_0x211f58=this['_visibleAnnotations'];function _0x131b58(_0x3c7fa3){const _0x320d7f=_0x3c7fa3[_0x1f3d('0x6')];_0x320d7f['isVisible']&&!_0x211f58[_0x1f3d('0x3')](_0x320d7f)?_0x211f58[_0x1f3d('0x0')](_0x320d7f):!_0x320d7f[_0x1f3d('0xf')]&&_0x211f58['has'](_0x320d7f)&&_0x211f58[_0x1f3d('0xe')](_0x320d7f),_0x320d7f['view'][_0x1f3d('0xa')][_0x1f3d('0xe')](_0x320d7f[_0x1f3d('0x1')][_0x1f3d('0x13')]),_0x320d7f['view'][_0x1f3d('0xa')]['add'](_0x320d7f['view'][_0x1f3d('0x13')]);}this['listenTo'](_0x4112ac,_0x1f3d('0x0'),(_0x5db500,_0x2bb671)=>{_0x2bb671[_0x1f3d('0xf')]&&_0x211f58['add'](_0x2bb671),this[_0x1f3d('0x11')](_0x2bb671,_0x1f3d('0x4'),_0x131b58);}),this[_0x1f3d('0x11')](_0x4112ac,_0x1f3d('0xe'),(_0x3c1689,_0x19737b)=>{_0x211f58['has'](_0x19737b)&&_0x211f58[_0x1f3d('0xe')](_0x19737b),this[_0x1f3d('0x9')](_0x19737b,_0x1f3d('0x4'),_0x131b58);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd279=['_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-missing-ui','_removeActiveAnnotation','AnnotationsUIs','activate','isActive','detach','annotationsuis-register-already-registered','refilterAnnotations','get','remove','collection','deactivateAll','change:activeAnnotation','destroy','pluginName','type','_uisData','set','delete','requires','context','switchTo','attach','_addActiveAnnotation','filter','activeAnnotations','register','activeUIs','annotationsuis-register-invalid-interface','add','_setSelectedAnnotations','_activateAnnotation','_visibleAnnotations','listenTo','function','size','stopListening','_uis','plugins','hasActive','setActiveAnnotation','from','has','annotationsuis-annotation-mismatch','push','init','deactivate'];(function(_0x1a3d4e,_0xd2795d){const _0x3bdf65=function(_0x3d2d81){while(--_0x3d2d81){_0x1a3d4e['push'](_0x1a3d4e['shift']());}};_0x3bdf65(++_0xd2795d);}(_0xd279,0xd2));const _0x3bdf=function(_0x1a3d4e,_0xd2795d){_0x1a3d4e=_0x1a3d4e-0x0;let _0x3bdf65=_0xd279[_0x1a3d4e];return _0x3bdf65;};import{ContextPlugin as _0x170eba}from'ckeditor5/src/core.js';import{CKEditorError as _0x51a22d}from'ckeditor5/src/utils.js';import _0x23d61d,{bindAnnotationCollections as _0x197e3f}from'./annotationcollection.js';import _0x3af188 from'./annotations.js';export default class j extends _0x170eba{static get[_0x3bdf('0x2')](){return[_0x3af188];}static get[_0x3bdf('0x2d')](){return _0x3bdf('0x21');}constructor(_0x4a1891){super(_0x4a1891),this[_0x3bdf('0xa')]=new Set(),this['_uis']=new Map(),this['_uisData']=new Map();}[_0x3bdf('0x1c')](){const _0x469079=this[_0x3bdf('0x3')][_0x3bdf('0x15')][_0x3bdf('0x27')](_0x3af188);this[_0x3bdf('0x10')](_0x469079,_0x3bdf('0xe'),(_0x72497b,_0x348aac)=>{for(const _0x3e799e of this[_0x3bdf('0xa')]){const _0x3c4315=this['_uis'][_0x3bdf('0x27')](_0x3e799e);(0x0,this[_0x3bdf('0x2f')][_0x3bdf('0x27')](_0x3e799e)[_0x3bdf('0x7')])(_0x348aac)&&_0x3c4315[_0x3bdf('0x17')](_0x348aac);}}),this[_0x3bdf('0x10')](_0x469079,'_deactivateAllAnnotations',()=>{for(const _0x204085 of this[_0x3bdf('0xa')]){this[_0x3bdf('0x14')][_0x3bdf('0x27')](_0x204085)[_0x3bdf('0x17')](null);}}),this['listenTo'](_0x469079[_0x3bdf('0xf')],_0x3bdf('0xc'),(_0x386055,_0x4eacd)=>{this[_0x3bdf('0x1e')](_0x4eacd);});}[_0x3bdf('0x16')](){return this[_0x3bdf('0xa')][_0x3bdf('0x12')]>0x0;}[_0x3bdf('0x23')](_0x1864ed){return this['activeUIs'][_0x3bdf('0x19')](_0x1864ed);}[_0x3bdf('0x22')](_0x4c6927,_0x5348b6=()=>!0x0){const _0x4e62a5=this[_0x3bdf('0x3')]['plugins'][_0x3bdf('0x27')](_0x3af188);if(!this['_uis'][_0x3bdf('0x19')](_0x4c6927))throw new _0x51a22d(_0x3bdf('0x1f'),this,{'uiName':_0x4c6927});this[_0x3bdf('0x23')](_0x4c6927)&&this['deactivate'](_0x4c6927),this[_0x3bdf('0xa')][_0x3bdf('0xc')](_0x4c6927);const _0x23c5a5=new _0x23d61d(),_0x111897=_0x4e62a5['_visibleAnnotations'];_0x197e3f({'source':_0x111897,'target':_0x23c5a5,'filter':_0x5348b6}),this['_uisData']['set'](_0x4c6927,{'collection':_0x23c5a5,'filter':_0x5348b6});const _0x49513e=this[_0x3bdf('0x14')][_0x3bdf('0x27')](_0x4c6927);_0x49513e[_0x3bdf('0x5')](_0x23c5a5),this[_0x3bdf('0x10')](_0x49513e,_0x3bdf('0x2b'),(_0x5197a3,_0x2e7c6e,_0x122801,_0x380b5f)=>{_0x380b5f&&_0x4e62a5[_0x3bdf('0x20')](_0x380b5f),_0x122801&&_0x4e62a5[_0x3bdf('0x6')](_0x122801);});}['deactivate'](_0x473832){if(this[_0x3bdf('0xa')][_0x3bdf('0x1')](_0x473832),!this[_0x3bdf('0x14')]['has'](_0x473832))throw new _0x51a22d(_0x3bdf('0x1f'),this,{'uiName':_0x473832});const _0x4b78a5=this['_uis'][_0x3bdf('0x27')](_0x473832);_0x4b78a5[_0x3bdf('0x24')](),this[_0x3bdf('0x13')](_0x4b78a5),this[_0x3bdf('0x2f')][_0x3bdf('0x27')](_0x473832)[_0x3bdf('0x29')][_0x3bdf('0x2c')](),this[_0x3bdf('0x2f')][_0x3bdf('0x1')](_0x473832);}[_0x3bdf('0x4')](_0x128ace){if(!this[_0x3bdf('0x14')][_0x3bdf('0x19')](_0x128ace))throw new _0x51a22d(_0x3bdf('0x1f'),this,{'uiName':_0x128ace});const _0x4234da=this[_0x3bdf('0x3')][_0x3bdf('0x15')][_0x3bdf('0x27')](_0x3af188),_0x150aa9=Array[_0x3bdf('0x18')](_0x4234da[_0x3bdf('0x8')])[0x0]||null;this[_0x3bdf('0x2a')](),this[_0x3bdf('0x22')](_0x128ace);const _0x24490c=this[_0x3bdf('0x14')][_0x3bdf('0x27')](_0x128ace);_0x24490c[_0x3bdf('0x17')](_0x150aa9),_0x24490c[_0x3bdf('0xd')]&&_0x150aa9&&_0x24490c[_0x3bdf('0xd')]([_0x150aa9]);}['deactivateAll'](){for(const _0x2b77c1 of this['activeUIs'])this[_0x3bdf('0x1d')](_0x2b77c1);}[_0x3bdf('0x9')](_0x337ada,_0x4be16a){if(this['_uis'][_0x3bdf('0x19')](_0x337ada))throw new _0x51a22d(_0x3bdf('0x25'));if(_0x3bdf('0x11')!=typeof _0x4be16a[_0x3bdf('0x5')]||'function'!=typeof _0x4be16a[_0x3bdf('0x24')]||_0x3bdf('0x11')!=typeof _0x4be16a[_0x3bdf('0x17')])throw new _0x51a22d(_0x3bdf('0xb'),null);this[_0x3bdf('0x14')]['set'](_0x337ada,_0x4be16a);}[_0x3bdf('0x26')](){const _0x3f1b67=this[_0x3bdf('0x3')][_0x3bdf('0x15')][_0x3bdf('0x27')](_0x3af188)[_0x3bdf('0x29')],_0x48306c=new Map(),_0x1258e1=Array[_0x3bdf('0x18')](this[_0x3bdf('0xa')]);for(const _0x49a1c0 of this['activeUIs']){const _0x377c3e=this[_0x3bdf('0x2f')][_0x3bdf('0x27')](_0x49a1c0)[_0x3bdf('0x29')];for(const _0x3c764d of _0x377c3e)_0x48306c[_0x3bdf('0x0')](_0x3c764d,_0x49a1c0);}for(const _0x33515c of _0x3f1b67){const _0x34426d=_0x48306c[_0x3bdf('0x27')](_0x33515c);this[_0x3bdf('0x1e')](_0x33515c);const _0x3367c9=_0x1258e1['find'](_0x5730a9=>this[_0x3bdf('0x2f')][_0x3bdf('0x27')](_0x5730a9)[_0x3bdf('0x7')](_0x33515c));_0x34426d!==_0x3367c9&&(_0x34426d&&this['_uisData'][_0x3bdf('0x27')](_0x34426d)[_0x3bdf('0x29')][_0x3bdf('0x28')](_0x33515c),_0x3367c9&&this[_0x3bdf('0x2f')][_0x3bdf('0x27')](_0x3367c9)[_0x3bdf('0x29')][_0x3bdf('0xc')](_0x33515c));}}['destroy'](){this[_0x3bdf('0x2a')](),super[_0x3bdf('0x2c')]();}[_0x3bdf('0x1e')](_0x585a67){const _0x344d22=[];for(const _0x1cb32a of this[_0x3bdf('0xa')]){(0x0,this[_0x3bdf('0x2f')][_0x3bdf('0x27')](_0x1cb32a)[_0x3bdf('0x7')])(_0x585a67)&&_0x344d22[_0x3bdf('0x1b')](_0x1cb32a);}if(_0x344d22['length']>0x1)throw new _0x51a22d(_0x3bdf('0x1a'),null,{'matchedUIs':_0x344d22,'annotationType':_0x585a67[_0x3bdf('0x2e')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12b6=['listenTo','blur','_dataCollectors','refresh','element','innerView','selection','view','requires','containsRange','init','isCollapsed','change:isFocused','pluginName','model','annotation','map','refreshSelectedViews','editorannotations-invalid-source-callback','cancel','addSourceCollector','document','_editorAnnotations','uiUpdate','set','has','directChange','fire','getOrderedSelectedAnnotations','isEqual','getByInnerView','getRanges','get','collection','from','push','_editorAnnotationsData','range','editor','focusTracker','EditorAnnotations','hasDomSelection','function','registerAnnotation','editing'];(function(_0x374850,_0x12b67c){const _0x546573=function(_0x19089e){while(--_0x19089e){_0x374850['push'](_0x374850['shift']());}};_0x546573(++_0x12b67c);}(_0x12b6,0x14c));const _0x5465=function(_0x374850,_0x12b67c){_0x374850=_0x374850-0x0;let _0x546573=_0x12b6[_0x374850];return _0x546573;};import{Plugin as _0x4112f2}from'ckeditor5/src/core.js';import{CKEditorError as _0x1999af}from'ckeditor5/src/utils.js';import{debounce as _0x79786}from'lodash-es';import _0x18b551 from'./annotations.js';export default class k extends _0x4112f2{static get[_0x5465('0x24')](){return[_0x18b551];}static get[_0x5465('0x29')](){return _0x5465('0x17');}constructor(_0x1999c5){super(_0x1999c5),this[_0x5465('0x1e')]=new Set(),this['_editorAnnotations']=new Set();}[_0x5465('0x26')](){const _0x55db46=this[_0x5465('0x15')],_0x4a4d95=_0x55db46['model'][_0x5465('0x4')]['selection'],_0x2bae7c=_0x79786(()=>this[_0x5465('0x0')](),0xa);_0x4a4d95['on']('change:range',(_0x4b8057,_0x5c0ca9)=>{_0x5c0ca9[_0x5465('0x9')]&&(_0x2bae7c[_0x5465('0x2')](),this[_0x5465('0x0')]());}),this['listenTo'](_0x55db46[_0x5465('0x1b')][_0x5465('0x23')]['document'],_0x5465('0x28'),(_0x550d44,_0x37f70b,_0x2ef49f)=>{_0x2ef49f&&_0x2bae7c();}),this[_0x5465('0x1c')](_0x55db46['ui'][_0x5465('0x16')],_0x5465('0x28'),(_0x4a0590,_0x3c09e7,_0x21ae0d)=>{_0x21ae0d||_0x55db46['isReadOnly']||this[_0x5465('0xa')](_0x5465('0x1d'),{'isAnnotationTracked':_0x1d0dc6=>this[_0x5465('0x13')][_0x5465('0x8')](_0x1d0dc6[_0x5465('0x21')])});}),this[_0x5465('0x1c')](this[_0x5465('0x15')]['ui'],'update',()=>this[_0x5465('0xa')](_0x5465('0x6')));}[_0x5465('0x1a')](_0x19e370){if(this[_0x5465('0x5')]['has'](_0x19e370['view']))return;this[_0x5465('0x5')]['add'](_0x19e370[_0x5465('0x23')]),this[_0x5465('0x15')]['ui']['focusTracker']['add'](_0x19e370[_0x5465('0x23')][_0x5465('0x20')]);const _0xfb416c=this[_0x5465('0x15')]['plugins'][_0x5465('0xf')](_0x18b551);this[_0x5465('0x1c')](_0xfb416c[_0x5465('0x10')],'remove',(_0x472f33,_0x63b162)=>{this['editor']['ui'][_0x5465('0x16')]['remove'](_0x63b162[_0x5465('0x23')]['element']),this[_0x5465('0x5')]['delete'](_0x63b162[_0x5465('0x23')]);});}[_0x5465('0x18')](){return this[_0x5465('0x15')][_0x5465('0x1b')][_0x5465('0x23')][_0x5465('0x18')];}[_0x5465('0x3')](_0x5603df){if(_0x5465('0x19')!=typeof _0x5603df)throw new _0x1999af(_0x5465('0x1'));this[_0x5465('0x1e')]['add'](_0x5603df);}[_0x5465('0x0')](){this['fire'](_0x5465('0x1f'));}[_0x5465('0xb')]({activeAnnotation:_0x1eca41,annotations:_0x2f9aeb}){const _0x4e583c=[],_0x96df2f=this[_0x5465('0x15')][_0x5465('0x2a')]['document'][_0x5465('0x22')],_0x32a77f=Array[_0x5465('0x11')](_0x96df2f[_0x5465('0xe')]());for(const [_0x3b60ce,_0x11d748]of this['_editorAnnotationsData']){const _0x251153=_0x56fe01(_0x11d748),_0x3761cd=_0x2f9aeb[_0x5465('0xd')](_0x3b60ce);_0x251153&&_0x3761cd&&_0x4e583c[_0x5465('0x12')]({'annotation':_0x3761cd,'range':_0x251153});}function _0x56fe01(_0x5df831){for(const _0x116a6a of _0x5df831)for(const _0x394e0c of _0x32a77f)if(_0x116a6a[_0x5465('0x25')](_0x394e0c,!_0x96df2f[_0x5465('0x27')]))return _0x116a6a;return null;}return _0x4e583c['sort']((_0x565cc9,_0x3539dc)=>{const _0x2f5d63=_0x565cc9['range'],_0x47df43=_0x3539dc[_0x5465('0x14')];if(!_0x2f5d63[_0x5465('0xc')](_0x47df43)){if(_0x2f5d63[_0x5465('0x25')](_0x47df43,!0x0))return 0x1;if(_0x47df43[_0x5465('0x25')](_0x2f5d63,!0x0))return-0x1;}return _0x565cc9[_0x5465('0x2b')]==_0x1eca41?-0x1:_0x3539dc[_0x5465('0x2b')]==_0x1eca41?0x1:0x0;})[_0x5465('0x2c')](_0xa88fb9=>_0xa88fb9[_0x5465('0x2b')]);}get[_0x5465('0x13')](){const _0xe7a421=new Map();for(const _0x96a66f of Array['from'](this[_0x5465('0x1e')]))for(const [_0x35406c,_0x3a4143]of _0x96a66f())_0xe7a421[_0x5465('0x7')](_0x35406c,_0x3a4143);return _0xe7a421;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3594=['find','domConverter','requires','editing','focusTracker','get','inlineannotations-not-allowed-with-context','focus','_removeAnnotationFromBalloon','destroy','_setSelectedAnnotations','view','inlineannotations-detach-not-attached','activeAnnotation','isActive','left','_balloon','hasView','inline','plugins','getByView','change:visibleView','push','right','hasActive','showStack','keystrokes','mousedown','delete','init','context','_selectedAnnotations','_getBalloonTargetForAnnotation','_addedAnnotations','_addAnnotationToBalloon','fromRect','targetRect','setActiveAnnotation','length','attach','inlineannotations-attach-already-attached','includes','visibleView','addObserver','InlineAnnotations','register','annotations','top','bottom','map','add','update','stopListening','refresh','isAttached','listenTo','switchTo','_manuallyClosed','change:isFocused','remove','blur','Esc','isFocused','set','editableElement','getOrderedSelectedAnnotations','every','updatePosition','_closeAnnotation','target','collapse','has','getClientRects','getBoundingClientRect','detach','width','viewRangeToDom','document','editor','selection','_forceRefresh','afterInit'];(function(_0x5a04c9,_0x35943f){const _0x4589b3=function(_0x267003){while(--_0x267003){_0x5a04c9['push'](_0x5a04c9['shift']());}};_0x4589b3(++_0x35943f);}(_0x3594,0x1de));const _0x4589=function(_0x5a04c9,_0x35943f){_0x5a04c9=_0x5a04c9-0x0;let _0x4589b3=_0x3594[_0x5a04c9];return _0x4589b3;};import{Plugin as _0x4d9e9b}from'ckeditor5/src/core.js';import _0x32a484 from'./annotationsuis.js';import _0x2d12fd from'./editorannotations.js';import{ContextualBalloon as _0x48293c}from'ckeditor5/src/ui.js';import{MouseObserver as _0x345dd4}from'ckeditor5/src/engine.js';import{CKEditorError as _0x31c4b9,Rect as _0x4e4b9d}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x4d9e9b{static get[_0x4589('0x10')](){return[_0x2d12fd,_0x48293c,_0x32a484];}static get['pluginName'](){return _0x4589('0x3a');}constructor(_0x5d02f4){super(_0x5d02f4),_0x5d02f4['editing'][_0x4589('0x19')][_0x4589('0x39')](_0x345dd4),this[_0x4589('0x44')]=!0x1,this[_0x4589('0x4d')](_0x4589('0x1b'),null),this[_0x4589('0x3c')]=null,this[_0x4589('0x47')]=new Set(),this['_balloon']=_0x5d02f4[_0x4589('0x21')][_0x4589('0x13')](_0x48293c),this[_0x4589('0x2f')]=new Set(),this['_selectedAnnotations']=[],this[_0x4589('0xc')]=!0x1;}[_0x4589('0x2b')](){const _0x25984a=this[_0x4589('0xa')][_0x4589('0x21')][_0x4589('0x13')](_0x32a484);_0x25984a[_0x4589('0x2c')]===this['editor']&&(_0x25984a[_0x4589('0x3b')](_0x4589('0x20'),this),this['editor'][_0x4589('0x28')][_0x4589('0x4d')]('Esc',(_0x450638,_0xc62ca2)=>{const _0x549400=this['_balloon'];if(this[_0x4589('0x44')]&&_0x549400['visibleView']){const _0x1a720b=this[_0x4589('0x3c')]['getByView'](_0x549400[_0x4589('0x38')]);_0x1a720b&&this[_0x4589('0x0')](_0x1a720b),_0xc62ca2();}}));}[_0x4589('0xd')](){const _0x3f63dc=this['editor'][_0x4589('0x21')]['get'](_0x32a484);_0x3f63dc[_0x4589('0x2c')]===this[_0x4589('0xa')]&&(_0x3f63dc[_0x4589('0x26')]()||_0x3f63dc[_0x4589('0x46')](_0x4589('0x20')));}['setActiveAnnotation'](_0x3883d3){_0x3883d3!==this[_0x4589('0x1b')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x4589('0x1c')]=!0x1),_0x3883d3&&this[_0x4589('0xa')]['ui'][_0x4589('0x12')][_0x4589('0x4c')]&&(this['annotations'][_0x4589('0x3')](_0x3883d3)&&this['_addAnnotationToBalloon'](_0x3883d3,!0x0),_0x3883d3[_0x4589('0x1c')]=!0x0),_0x3883d3||this[_0x4589('0x18')]([]),this['activeAnnotation']=_0x3883d3);}[_0x4589('0x35')](_0x1302bf){this['annotations']=_0x1302bf;const _0x520746=this['editor'][_0x4589('0x21')]['get'](_0x32a484),_0x2fd1bf=this['_balloon'];if(this[_0x4589('0x44')])throw new _0x31c4b9(_0x4589('0x36'),this);if(_0x520746[_0x4589('0x2c')]!==this[_0x4589('0xa')])throw new _0x31c4b9(_0x4589('0x14'),this);const _0x3fc282=this[_0x4589('0xa')]['plugins'][_0x4589('0x13')](_0x2d12fd);this[_0x4589('0x45')](_0x3fc282,_0x4589('0x43'),()=>{const _0x531e68=_0x3fc282[_0x4589('0x4f')]({'annotations':this[_0x4589('0x3c')],'activeAnnotation':this['activeAnnotation']});var _0x1b4b63,_0x10cb6f;!this[_0x4589('0xc')]&&(_0x1b4b63=_0x531e68,_0x10cb6f=this[_0x4589('0x2d')],_0x1b4b63[_0x4589('0x34')]===_0x10cb6f[_0x4589('0x34')]&&_0x1b4b63[_0x4589('0x50')](_0x226c8e=>_0x10cb6f['includes'](_0x226c8e)))||(this[_0x4589('0xc')]=!0x1,this[_0x4589('0x18')](_0x531e68),this[_0x4589('0x33')](_0x531e68[0x0]||null));}),this['listenTo'](_0x3fc282,_0x4589('0x4a'),(_0x3e8aeb,{isAnnotationTracked:_0x1527da})=>{this[_0x4589('0x1b')]&&_0x1527da(this[_0x4589('0x1b')])&&(this['_setSelectedAnnotations']([]),this[_0x4589('0x33')](null));}),this['listenTo'](this[_0x4589('0xa')]['ui'][_0x4589('0x12')],_0x4589('0x48'),(_0x815f58,_0x1bee7a,_0x3136c7)=>{_0x3136c7||this['setActiveAnnotation'](null);}),this[_0x4589('0x45')](_0x1302bf,_0x4589('0x49'),(_0xa750bd,_0x2370ad)=>{this[_0x4589('0x16')](_0x2370ad),_0x2370ad===this['activeAnnotation']&&this[_0x4589('0x33')](null);}),this[_0x4589('0x45')](_0x2fd1bf,_0x4589('0x23'),(_0x504c8b,_0x477f26,_0x2d1568,_0x2fc1e7)=>{_0x2fc1e7&&this[_0x4589('0x42')](_0x2fc1e7);const _0x33f5cd=_0x1302bf[_0x4589('0x22')](_0x2d1568);_0x2d1568&&_0x33f5cd&&(this['listenTo'](_0x2d1568,'change:height',()=>{_0x2fd1bf[_0x4589('0x51')]();}),this[_0x4589('0x45')](_0x2d1568,_0x4589('0x4b'),()=>{this[_0x4589('0x0')](_0x33f5cd),this[_0x4589('0xa')][_0x4589('0x11')][_0x4589('0x19')][_0x4589('0x15')]();}),this[_0x4589('0x1b')]!==_0x33f5cd&&this[_0x4589('0x33')](_0x33f5cd));}),this['listenTo'](this['editor']['ui'],_0x4589('0x41'),()=>{_0x2fd1bf[_0x4589('0x38')]&&(_0x1302bf['getByView'](_0x2fd1bf['visibleView'])&&_0x2fd1bf[_0x4589('0x51')]());}),this[_0x4589('0x45')](this[_0x4589('0xa')][_0x4589('0x11')][_0x4589('0x19')]['document'],_0x4589('0x29'),()=>{this[_0x4589('0xc')]=!0x0,this[_0x4589('0x47')]['clear']();}),this[_0x4589('0xa')][_0x4589('0x11')][_0x4589('0x19')][_0x4589('0x9')][_0x4589('0xb')][_0x4589('0x4e')]&&this[_0x4589('0xa')]['editing'][_0x4589('0x19')][_0x4589('0x15')](),this['isAttached']=!0x0;}[_0x4589('0x6')](){if(!this['isAttached'])throw new _0x31c4b9(_0x4589('0x1a'),this);this['setActiveAnnotation'](null);for(const _0x560559 of this['_addedAnnotations'])this[_0x4589('0x16')](_0x560559);this['stopListening'](),this[_0x4589('0x44')]=!0x1,this[_0x4589('0x3c')]=null;}[_0x4589('0x17')](){this[_0x4589('0x44')]&&this['detach']();}[_0x4589('0x18')](_0x97aa14){for(const _0x56a8f3 of this[_0x4589('0x2d')])_0x97aa14['includes'](_0x56a8f3)||this['_manuallyClosed'][_0x4589('0x2a')](_0x56a8f3);for(const _0x5b4c37 of this[_0x4589('0x3c')])_0x97aa14[_0x4589('0x37')](_0x5b4c37)||this[_0x4589('0x16')](_0x5b4c37);if(this['editor']['ui'][_0x4589('0x12')][_0x4589('0x4c')])for(const _0x4e8a25 of _0x97aa14)this[_0x4589('0x30')](_0x4e8a25);this[_0x4589('0x2d')]=_0x97aa14;}[_0x4589('0x30')](_0x489fec,_0x44c76f=!0x1){this['_manuallyClosed'][_0x4589('0x3')](_0x489fec)||(this[_0x4589('0x2f')][_0x4589('0x3')](_0x489fec)||this[_0x4589('0x1e')][_0x4589('0x1f')](_0x489fec[_0x4589('0x19')])||(this[_0x4589('0x2f')]['add'](_0x489fec),this['_balloon'][_0x4589('0x40')]({'stackId':_0x489fec[_0x4589('0x19')]['id'],'view':_0x489fec[_0x4589('0x19')],'position':{'target':()=>this[_0x4589('0x2e')](_0x489fec)}})),_0x44c76f&&this['_balloon'][_0x4589('0x27')](_0x489fec['view']['id']));}[_0x4589('0x2e')](_0x174c1f){const _0x5079d5=_0x174c1f[_0x4589('0x1')],_0x499a87=this['editor']['editing']['view'],_0x1e5b0e=_0x499a87[_0x4589('0x9')][_0x4589('0xb')]['getFirstRange'](),_0x3c27b8=_0x499a87[_0x4589('0xf')][_0x4589('0x8')](_0x1e5b0e);if(_0x3c27b8[_0x4589('0x2')](!0x0),_0x5079d5){if(_0x5079d5 instanceof _0x4e4b9d)return _0x5079d5;let _0x16a7d7=[];for(const _0x30e5bb of _0x5079d5)_0x16a7d7[_0x4589('0x24')](...(_0x2a5280=_0x30e5bb[_0x4589('0x4')](),Array['from'](_0x2a5280)[_0x4589('0x3f')](DOMRect[_0x4589('0x31')])));_0x16a7d7=function(_0x1aa850){const _0x416c17=[];let _0x8ae884=_0x1aa850[0x0];for(let _0x3673e8=0x1;_0x3673e8<_0x1aa850['length'];_0x3673e8++)F(_0x8ae884,_0x1aa850[_0x3673e8])?_0x8ae884[_0x4589('0x7')]+=_0x1aa850[_0x3673e8][_0x4589('0x7')]:(_0x416c17[_0x4589('0x24')](_0x8ae884),_0x8ae884=_0x1aa850[_0x3673e8]);return _0x416c17[_0x4589('0x24')](_0x8ae884),_0x416c17;}(_0x16a7d7);const _0x38b6b1=_0x3c27b8[_0x4589('0x5')]();return _0x16a7d7[_0x4589('0xe')](_0x4e4758=>_0x4e4758[_0x4589('0x3d')]<=_0x38b6b1['top']&&_0x4e4758[_0x4589('0x3e')]>=_0x38b6b1[_0x4589('0x3e')]&&_0x4e4758['left']<=_0x38b6b1[_0x4589('0x1d')]&&_0x4e4758[_0x4589('0x25')]>=_0x38b6b1['right'])||_0x16a7d7[0x0];}var _0x2a5280;return _0x174c1f[_0x4589('0x32')]||_0x3c27b8;}[_0x4589('0x16')](_0x5e8515){this['_addedAnnotations'][_0x4589('0x3')](_0x5e8515)&&this[_0x4589('0x1e')]['hasView'](_0x5e8515[_0x4589('0x19')])&&(this['_addedAnnotations']['delete'](_0x5e8515),this[_0x4589('0x1e')][_0x4589('0x49')](_0x5e8515['view']));}[_0x4589('0x0')](_0x3dee5e){this[_0x4589('0x47')][_0x4589('0x40')](_0x3dee5e),this[_0x4589('0x16')](_0x3dee5e);}}function F(_0x2bc713,_0x49fdb8){return _0x2bc713[_0x4589('0x3d')]===_0x49fdb8[_0x4589('0x3d')]&&_0x2bc713['bottom']===_0x49fdb8[_0x4589('0x3e')]&&_0x2bc713['right']===_0x49fdb8['left'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1638=['get','bodyCollection','addEventListener','_updateBalloonPosition','remove','attachToDom','ck-sidebar--narrow','listenTo','element','_annotations','blur','has','target','_showBalloon','_attachListeners','stop','_domEmitter','_annotationToNarrowView','locale','delete','Esc','defaultPositions','stopListening','context','resize','unpin','set','_setSelectedAnnotations','isVisible','_refreshPositioningDebounced','narrowsidebar-detach-not-attached','_refreshPositioning','find','_selectedAnnotations','getByView','requires','hasDomSelection','_manuallyClosedAnnotationViews','setActiveAnnotation','isAttached','balloonPanelView','EditorAnnotations','_hideBalloon','view','northArrowSouthWest','preventDefault','clear','focusableElements','change:container','content','destroy','plugins','northArrowSouthEast','from','low','first','editors','preventClosingBalloon','add','southArrowNorthWest','attach','getSidebarItemView','bind','activeAnnotation','rearrange','narrowsidebar-attach-already-attached','init','length','isDirty','focus','_attachToContainer','pin','_detachFromContainer','_destroyEditorAnnotationsIntegration','_detachListeners','detach','getOrderedSelectedAnnotations','type','values','uiUpdate','cancel','refresh','_editorAnnotations','contains','southArrowNorthEast','addAnnotation','includes','off','_integrateWithEditorAnnotations','annotations','NarrowSidebar','pluginName','high','ready','stopPropagation','number'];(function(_0x201a71,_0x163807){const _0x58f03a=function(_0x2e6fed){while(--_0x2e6fed){_0x201a71['push'](_0x201a71['shift']());}};_0x58f03a(++_0x163807);}(_0x1638,0xea));const _0x58f0=function(_0x201a71,_0x163807){_0x201a71=_0x201a71-0x0;let _0x58f03a=_0x1638[_0x201a71];return _0x58f03a;};import{ContextPlugin as _0x267eba,Context as _0x4d72b2}from'ckeditor5/src/core.js';import _0x13e431 from'./annotationsuis.js';import _0x4093bc from'./sidebar.js';import _0x3be93c from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x35d7eb,BodyCollection as _0x5aaa0c}from'ckeditor5/src/ui.js';import{CKEditorError as _0x299493,DomEmitterMixin as _0x274e43,keyCodes as _0x258493,Collection as _0x5e1622}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x5b7377}from'lodash-es';import _0x2ce9de from'./editorannotations.js';export default class i extends _0x267eba{static get[_0x58f0('0x59')](){return[_0x4093bc,_0x13e431];}static get[_0x58f0('0x31')](){return _0x58f0('0x30');}constructor(_0x37288d){super(_0x37288d),this['isAttached']=!0x1,this[_0x58f0('0x5b')]=new Set(),this[_0x58f0('0x46')]=Object['create'](_0x274e43),this['_annotationToNarrowView']=new Map(),this[_0x58f0('0x50')](_0x58f0('0x15'),null),this[_0x58f0('0x2f')]=null,this[_0x58f0('0x57')]=[],this[_0x58f0('0x28')]=new _0x5e1622(),this[_0x58f0('0x53')]=_0x5b7377(()=>{this[_0x58f0('0x55')]();},0xfa,{'leading':!0x1});}[_0x58f0('0x18')](){this['context']['plugins'][_0x58f0('0x36')](_0x13e431)['register']('narrowSidebar',this),this[_0x58f0('0x37')]=new _0x5aaa0c(this['context'][_0x58f0('0x48')]),this[_0x58f0('0x5e')]=new _0x35d7eb(this['context'][_0x58f0('0x48')]),this['bodyCollection'][_0x58f0('0x3b')](),this['bodyCollection'][_0x58f0('0x10')](this['balloonPanelView']);}[_0x58f0('0x12')](_0x442b16){this[_0x58f0('0x2f')]=_0x442b16;const _0x58f894=this['context'][_0x58f0('0x9')][_0x58f0('0x36')](_0x4093bc),_0x485ab6=this[_0x58f0('0x5e')];if(_0x58f894[_0x58f0('0x3f')]=_0x442b16,this[_0x58f0('0x5d')])throw new _0x299493(_0x58f0('0x17'),this);this[_0x58f0('0x5d')]=!0x0,this[_0x58f0('0x3d')](_0x58f894,'set:container',()=>{this[_0x58f0('0x21')](),this['listenTo'](_0x58f894,_0x58f0('0x6'),_0x2befeb=>{_0x2befeb[_0x58f0('0x2d')](),this[_0x58f0('0x12')](_0x442b16);});}),_0x58f894[_0x58f0('0x1c')]({'viewClass':_0x58f0('0x3c'),'spaceBetweenItems':0x5});const _0x51dd4c=_0x4d491b=>{const _0x43f3f9=new _0x3be93c(this['context'][_0x58f0('0x48')]);_0x58f894[_0x58f0('0x2b')](_0x4d491b,_0x43f3f9),this['_annotationToNarrowView'][_0x58f0('0x50')](_0x4d491b,_0x43f3f9),_0x43f3f9[_0x58f0('0x14')](_0x58f0('0x1a'),'annotationType',_0x58f0('0x35'))['to'](_0x4d491b[_0x58f0('0x1')],_0x58f0('0x1a'),_0x58f0('0x23'),_0x58f0('0x19')),_0x43f3f9['on']('execute',()=>{this[_0x58f0('0x5b')][_0x58f0('0x4')](),_0x485ab6[_0x58f0('0x7')][_0x58f0('0xd')]!==_0x4d491b[_0x58f0('0x1')]?(this[_0x58f0('0x43')](_0x4d491b),_0x4d491b[_0x58f0('0x1')][_0x58f0('0x3e')][_0x58f0('0x1b')](),this[_0x58f0('0x5c')](_0x4d491b)):this[_0x58f0('0x5c')](null);});};for(const _0x2a2bc4 of _0x442b16)_0x51dd4c(_0x2a2bc4);this[_0x58f0('0x3d')](_0x442b16,_0x58f0('0x10'),(_0x439244,_0x3e7a97)=>{_0x51dd4c(_0x3e7a97);}),this[_0x58f0('0x3d')](_0x442b16,'remove',(_0x35ddfc,_0x117c15,_0x3cf952)=>{this[_0x58f0('0x47')][_0x58f0('0x36')](_0x117c15)[_0x58f0('0x8')](),this[_0x58f0('0x47')]['delete'](_0x117c15),_0x58f894[_0x58f0('0x16')]({'removedAnnotation':_0x117c15,'previousAnnotation':_0x442b16['get'](_0x3cf952-0x1),'nextAnnotation':_0x442b16['get'](_0x3cf952+0x1)}),_0x117c15===this[_0x58f0('0x15')]&&this[_0x58f0('0x5c')](null);},{'priority':_0x58f0('0xc')}),this['listenTo'](_0x442b16,_0x58f0('0x1b'),(_0x149a0a,_0x165404)=>{this[_0x58f0('0x5c')](_0x165404);}),this[_0x58f0('0x3d')](_0x442b16,_0x58f0('0x40'),()=>{this[_0x58f0('0x5c')](null);}),this[_0x58f0('0x46')][_0x58f0('0x3d')](document,'keydown',(_0x15358f,_0x1853fb)=>{_0x1853fb['keyCode']===_0x258493['esc']&&_0x485ab6[_0x58f0('0x52')]&&(this[_0x58f0('0x5b')]['add'](_0x485ab6[_0x58f0('0x7')]['first']),this['_hideBalloon'](),_0x1853fb[_0x58f0('0x34')](),_0x1853fb[_0x58f0('0x3')]());}),this['_domEmitter'][_0x58f0('0x3d')](document,'mousedown',(_0x13fce4,_0x811088)=>{const _0x213609=_0x811088[_0x58f0('0x42')];_0x485ab6[_0x58f0('0x52')]&&_0x485ab6[_0x58f0('0x3e')][_0x58f0('0x29')](_0x213609)||_0x58f894[_0x58f0('0x1')][_0x58f0('0x3e')][_0x58f0('0x29')](_0x213609)||_0x13fce4[_0x58f0('0xf')]||this[_0x58f0('0x15')]&&this[_0x58f0('0x15')][_0x58f0('0x5')][_0x58f0('0x56')](_0x41be4a=>_0x41be4a[_0x58f0('0x29')](_0x213609))||(this[_0x58f0('0x5b')]['clear'](),this[_0x58f0('0x0')](),this[_0x58f0('0x5c')](null));});const _0x8abd23=this[_0x58f0('0x4d')]instanceof _0x4d72b2?this[_0x58f0('0x4d')][_0x58f0('0xe')]:new _0x5e1622([this[_0x58f0('0x4d')]]);for(const _0x44b0e4 of _0x8abd23)this[_0x58f0('0x2e')](_0x44b0e4);this['listenTo'](_0x8abd23,'add',(_0x15c98e,_0x476cac)=>{this['listenTo'](_0x476cac,_0x58f0('0x33'),()=>{this['_integrateWithEditorAnnotations'](_0x476cac);});}),this['listenTo'](_0x8abd23,_0x58f0('0x3a'),(_0x323521,_0x3b99f8)=>{_0x3b99f8[_0x58f0('0x9')][_0x58f0('0x41')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3b99f8['plugins'][_0x58f0('0x36')](_0x58f0('0x5f')));}),window[_0x58f0('0x38')]('resize',this[_0x58f0('0x53')]),this['_refreshPositioning']();}[_0x58f0('0x5c')](_0x219503){if(_0x219503===this[_0x58f0('0x15')])return;const _0x3bb613=this[_0x58f0('0x4d')][_0x58f0('0x9')][_0x58f0('0x36')](_0x4093bc);if(_0x3bb613[_0x58f0('0x27')]({'blurredAnnotation':this[_0x58f0('0x15')],'activatedAnnotation':_0x219503,'disableAnimationOnActivatedAnnotation':!0x0}),_0x219503)_0x3bb613[_0x58f0('0x13')](_0x219503)?this['_showBalloon'](_0x219503):this[_0x58f0('0x0')]();else this[_0x58f0('0x0')]();this[_0x58f0('0x15')]=_0x219503;}[_0x58f0('0x21')](){if(!this['isAttached'])throw new _0x299493(_0x58f0('0x54'),this);this[_0x58f0('0x5c')](null);const _0xb64f13=this[_0x58f0('0x4d')][_0x58f0('0x9')][_0x58f0('0x36')](_0x4093bc);this['_hideBalloon'](),Array['from'](this[_0x58f0('0x47')][_0x58f0('0x24')](),_0x26fabc=>_0x26fabc[_0x58f0('0x8')]()),this['_annotationToNarrowView'][_0x58f0('0x4')](),_0xb64f13[_0x58f0('0x1e')](this[_0x58f0('0x2f')]),this[_0x58f0('0x4c')](),this[_0x58f0('0x46')][_0x58f0('0x4c')](),this[_0x58f0('0x4d')]instanceof _0x4d72b2&&this[_0x58f0('0x4c')](this['context'][_0x58f0('0xe')]);for(const _0x1e736c of Array[_0x58f0('0xb')](this[_0x58f0('0x28')]))this[_0x58f0('0x1f')](_0x1e736c);window['removeEventListener'](_0x58f0('0x4e'),this[_0x58f0('0x53')]),this[_0x58f0('0x53')][_0x58f0('0x26')](),this[_0x58f0('0x57')]=[],this[_0x58f0('0x5d')]=!0x1,this[_0x58f0('0x2f')]=null;}[_0x58f0('0x8')](){this[_0x58f0('0x5d')]&&this['detach'](),this['bodyCollection']['detachFromDom']();}[_0x58f0('0x2e')](_0x1ed8bd){const _0x5f4a28=_0x1ed8bd['plugins']['get'](_0x2ce9de),_0x549065=this[_0x58f0('0x4d')][_0x58f0('0x9')]['get'](_0x4093bc),_0x2ec68b=this['annotations'],_0x342632=this['balloonPanelView'],_0x4019a4=()=>{const _0x4af89c=_0x5f4a28[_0x58f0('0x22')]({'annotations':this[_0x58f0('0x2f')],'activeAnnotation':this[_0x58f0('0x15')]});this[_0x58f0('0x51')](_0x4af89c),this[_0x58f0('0x5c')](_0x4af89c[0x0]||null);};this['listenTo'](_0x5f4a28,_0x58f0('0x27'),_0x4019a4),this[_0x58f0('0x3d')](_0x5f4a28,_0x58f0('0x40'),(_0x32e475,{isAnnotationTracked:_0x55d1f0})=>{this[_0x58f0('0x15')]&&_0x55d1f0(this[_0x58f0('0x15')])&&(this[_0x58f0('0x51')]([]),this[_0x58f0('0x5c')](null));}),this[_0x58f0('0x3d')](_0x5f4a28,_0x58f0('0x25'),()=>{this[_0x58f0('0x53')]();}),this[_0x58f0('0x3d')](_0x2ec68b,_0x58f0('0x40'),_0x183b42=>{_0x5f4a28[_0x58f0('0x5a')]()&&_0x183b42[_0x58f0('0x45')]();},{'priority':_0x58f0('0x32')}),this[_0x58f0('0x3d')](this[_0x58f0('0x46')],'mousedown',(_0x2a1cae,_0x7dd2f)=>{const _0x4354e5=_0x7dd2f[_0x58f0('0x42')];_0x342632[_0x58f0('0x52')]&&_0x342632['element'][_0x58f0('0x29')](_0x4354e5)||_0x549065['view'][_0x58f0('0x3e')][_0x58f0('0x29')](_0x4354e5)||this['activeAnnotation']&&_0x5f4a28[_0x58f0('0x5a')]()&&(_0x4019a4(),_0x2a1cae[_0x58f0('0xf')]=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x58f0('0x10')](_0x5f4a28);}[_0x58f0('0x1f')](_0x49a04d){_0x49a04d&&(this[_0x58f0('0x4c')](_0x49a04d),this[_0x58f0('0x28')]['remove'](_0x49a04d));}[_0x58f0('0x51')](_0x4d70e4){for(const _0x2a6d1f of this[_0x58f0('0x57')])_0x4d70e4[_0x58f0('0x2c')](_0x2a6d1f)||this[_0x58f0('0x5b')][_0x58f0('0x49')](_0x2a6d1f[_0x58f0('0x1')]);this['_selectedAnnotations']=_0x4d70e4;}[_0x58f0('0x55')](){const _0x78c1b6=this[_0x58f0('0x5e')];this['annotations']['refreshPositioning'](),_0x78c1b6[_0x58f0('0x52')]&&this[_0x58f0('0x39')]();}[_0x58f0('0x43')](_0x1f8f36){if(this['_manuallyClosedAnnotationViews']['has'](_0x1f8f36[_0x58f0('0x1')]))return;const _0x1fc792=this['balloonPanelView'][_0x58f0('0x7')][_0x58f0('0xd')];_0x1fc792!==_0x1f8f36[_0x58f0('0x1')]?(_0x1fc792&&this['_detachListeners'](_0x1fc792),this[_0x58f0('0x44')](_0x1f8f36['view']),this[_0x58f0('0x5e')][_0x58f0('0x7')][_0x58f0('0x4')](),this[_0x58f0('0x5e')][_0x58f0('0x7')]['add'](_0x1f8f36['view']),this[_0x58f0('0x39')]()):this[_0x58f0('0x39')]();}[_0x58f0('0x39')](){const _0x13347e=this[_0x58f0('0x5e')]['content'][_0x58f0('0xd')],_0x3dbc93=_0x13347e&&this[_0x58f0('0x2f')][_0x58f0('0x58')](_0x13347e);if(!_0x3dbc93||!this[_0x58f0('0x47')][_0x58f0('0x41')](_0x3dbc93))return;const _0x35b00b=this['_annotationToNarrowView'][_0x58f0('0x36')](_0x3dbc93)[_0x58f0('0x3e')],_0x336095=function(){const _0x3267cc=_0x35d7eb[_0x58f0('0x4b')];return[_0x3267cc[_0x58f0('0x2a')],_0x3267cc[_0x58f0('0xa')],_0x3267cc['southArrowNorth'],_0x3267cc['northArrowSouth'],_0x3267cc[_0x58f0('0x11')],_0x3267cc[_0x58f0('0x2')]];}();this[_0x58f0('0x5e')][_0x58f0('0x1d')]({'target':_0x35b00b,'positions':_0x336095});}[_0x58f0('0x0')](){const _0x47232c=this['balloonPanelView'],_0x40ac06=_0x47232c[_0x58f0('0x7')]['first'];_0x40ac06&&(this['_detachListeners'](_0x40ac06),_0x47232c[_0x58f0('0x4f')](),_0x47232c['content']['clear']());}['_attachListeners'](_0x293e42){this[_0x58f0('0x3d')](_0x293e42,'change:height',()=>this[_0x58f0('0x39')]()),this[_0x58f0('0x3d')](_0x293e42,_0x58f0('0x4a'),(_0x5cfbf5,_0x2cf17d)=>{this[_0x58f0('0x5b')][_0x58f0('0x10')](_0x293e42),this['_hideBalloon'](),_0x2cf17d();});}[_0x58f0('0x20')](_0x20d426){this[_0x58f0('0x4c')](_0x20d426);}}
|
|
23
|
+
const _0x220c=['attachToDom','_detachListeners','resize','values','getOrderedSelectedAnnotations','removeEventListener','from','add','ready','_hideBalloon','isDirty','stop','content','create','clear','set','change:container','blur','_selectedAnnotations','getSidebarItemView','pin','context','northArrowSouthWest','attach','isVisible','activeAnnotation','addEventListener','view','_showBalloon','locale','_domEmitter','bind','southArrowNorthEast','find','narrowsidebar-attach-already-attached','stopPropagation','bodyCollection','mousedown','detach','stopListening','setActiveAnnotation','number','getByView','detachFromDom','defaultPositions','_integrateWithEditorAnnotations','focus','listenTo','focusableElements','hasDomSelection','first','off','keyCode','remove','_annotations','target','rearrange','EditorAnnotations','cancel','Esc','southArrowNorthWest','_editorAnnotations','type','uiUpdate','narrowSidebar','annotationType','destroy','_refreshPositioning','refresh','init','register','esc','balloonPanelView','element','annotations','plugins','pluginName','addAnnotation','delete','editors','_attachListeners','_setSelectedAnnotations','southArrowNorth','_manuallyClosedAnnotationViews','contains','_destroyEditorAnnotationsIntegration','_refreshPositioningDebounced','high','length','isAttached','keydown','_annotationToNarrowView','narrowsidebar-detach-not-attached','has','get','_updateBalloonPosition','preventDefault'];(function(_0x2f26c6,_0x220c86){const _0x390723=function(_0x55ed0f){while(--_0x55ed0f){_0x2f26c6['push'](_0x2f26c6['shift']());}};_0x390723(++_0x220c86);}(_0x220c,0x12a));const _0x3907=function(_0x2f26c6,_0x220c86){_0x2f26c6=_0x2f26c6-0x0;let _0x390723=_0x220c[_0x2f26c6];return _0x390723;};import{ContextPlugin as _0x29c92f,Context as _0x5def40}from'ckeditor5/src/core.js';import _0x3bb722 from'./annotationsuis.js';import _0x18b9ae from'./sidebar.js';import _0x59521a from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x336895,BodyCollection as _0x2c60ff}from'ckeditor5/src/ui.js';import{CKEditorError as _0x1d8a64,DomEmitterMixin as _0x2f35b0,keyCodes as _0x45df21,Collection as _0x4b758a}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x5b2bae}from'lodash-es';import _0x2e2d47 from'./editorannotations.js';export default class i extends _0x29c92f{static get['requires'](){return[_0x18b9ae,_0x3bb722];}static get[_0x3907('0x45')](){return'NarrowSidebar';}constructor(_0x36ef47){super(_0x36ef47),this[_0x3907('0x52')]=!0x1,this[_0x3907('0x4c')]=new Set(),this[_0x3907('0x17')]=Object[_0x3907('0x6')](_0x2f35b0),this[_0x3907('0x54')]=new Map(),this[_0x3907('0x8')]('activeAnnotation',null),this['annotations']=null,this[_0x3907('0xb')]=[],this[_0x3907('0x36')]=new _0x4b758a(),this['_refreshPositioningDebounced']=_0x5b2bae(()=>{this[_0x3907('0x3c')]();},0xfa,{'leading':!0x1});}[_0x3907('0x3e')](){this[_0x3907('0xe')][_0x3907('0x44')][_0x3907('0x57')](_0x3bb722)[_0x3907('0x3f')](_0x3907('0x39'),this),this[_0x3907('0x1d')]=new _0x2c60ff(this[_0x3907('0xe')]['locale']),this['balloonPanelView']=new _0x336895(this[_0x3907('0xe')][_0x3907('0x16')]),this['bodyCollection'][_0x3907('0x5a')](),this['bodyCollection'][_0x3907('0x0')](this[_0x3907('0x41')]);}[_0x3907('0x10')](_0x2a31b3){this['annotations']=_0x2a31b3;const _0xee8434=this['context'][_0x3907('0x44')][_0x3907('0x57')](_0x18b9ae),_0x55d4ca=this[_0x3907('0x41')];if(_0xee8434[_0x3907('0x2f')]=_0x2a31b3,this[_0x3907('0x52')])throw new _0x1d8a64(_0x3907('0x1b'),this);this[_0x3907('0x52')]=!0x0,this['listenTo'](_0xee8434,'set:container',()=>{this['detach'](),this[_0x3907('0x28')](_0xee8434,_0x3907('0x9'),_0x13be09=>{_0x13be09[_0x3907('0x2c')](),this[_0x3907('0x10')](_0x2a31b3);});}),_0xee8434['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2b9ee6=_0x1dcfda=>{const _0x47c709=new _0x59521a(this[_0x3907('0xe')][_0x3907('0x16')]);_0xee8434[_0x3907('0x46')](_0x1dcfda,_0x47c709),this[_0x3907('0x54')][_0x3907('0x8')](_0x1dcfda,_0x47c709),_0x47c709[_0x3907('0x18')](_0x3907('0x3'),_0x3907('0x3a'),_0x3907('0x22'))['to'](_0x1dcfda[_0x3907('0x14')],_0x3907('0x3'),_0x3907('0x37'),_0x3907('0x51')),_0x47c709['on']('execute',()=>{this[_0x3907('0x4c')][_0x3907('0x7')](),_0x55d4ca['content'][_0x3907('0x2b')]!==_0x1dcfda[_0x3907('0x14')]?(this['_showBalloon'](_0x1dcfda),_0x1dcfda[_0x3907('0x14')][_0x3907('0x42')][_0x3907('0x27')](),this[_0x3907('0x21')](_0x1dcfda)):this['setActiveAnnotation'](null);});};for(const _0x31619c of _0x2a31b3)_0x2b9ee6(_0x31619c);this[_0x3907('0x28')](_0x2a31b3,'add',(_0x2029de,_0x550e0c)=>{_0x2b9ee6(_0x550e0c);}),this['listenTo'](_0x2a31b3,_0x3907('0x2e'),(_0x68669f,_0xbc5639,_0x5e197c)=>{this['_annotationToNarrowView'][_0x3907('0x57')](_0xbc5639)[_0x3907('0x3b')](),this[_0x3907('0x54')][_0x3907('0x47')](_0xbc5639),_0xee8434[_0x3907('0x31')]({'removedAnnotation':_0xbc5639,'previousAnnotation':_0x2a31b3[_0x3907('0x57')](_0x5e197c-0x1),'nextAnnotation':_0x2a31b3['get'](_0x5e197c+0x1)}),_0xbc5639===this[_0x3907('0x12')]&&this[_0x3907('0x21')](null);},{'priority':'low'}),this['listenTo'](_0x2a31b3,_0x3907('0x27'),(_0x2df828,_0x47757d)=>{this['setActiveAnnotation'](_0x47757d);}),this[_0x3907('0x28')](_0x2a31b3,_0x3907('0xa'),()=>{this['setActiveAnnotation'](null);}),this[_0x3907('0x17')][_0x3907('0x28')](document,_0x3907('0x53'),(_0x4a3a1b,_0x13f213)=>{_0x13f213[_0x3907('0x2d')]===_0x45df21[_0x3907('0x40')]&&_0x55d4ca[_0x3907('0x11')]&&(this[_0x3907('0x4c')][_0x3907('0x0')](_0x55d4ca[_0x3907('0x5')][_0x3907('0x2b')]),this['_hideBalloon'](),_0x13f213[_0x3907('0x1c')](),_0x13f213[_0x3907('0x59')]());}),this[_0x3907('0x17')][_0x3907('0x28')](document,_0x3907('0x1e'),(_0x1ecef7,_0x4a6c90)=>{const _0x24128d=_0x4a6c90[_0x3907('0x30')];_0x55d4ca['isVisible']&&_0x55d4ca['element'][_0x3907('0x4d')](_0x24128d)||_0xee8434['view'][_0x3907('0x42')]['contains'](_0x24128d)||_0x1ecef7['preventClosingBalloon']||this['activeAnnotation']&&this[_0x3907('0x12')][_0x3907('0x29')][_0x3907('0x1a')](_0x2a882d=>_0x2a882d[_0x3907('0x4d')](_0x24128d))||(this[_0x3907('0x4c')][_0x3907('0x7')](),this['_hideBalloon'](),this[_0x3907('0x21')](null));});const _0x39a41c=this['context']instanceof _0x5def40?this[_0x3907('0xe')][_0x3907('0x48')]:new _0x4b758a([this[_0x3907('0xe')]]);for(const _0x37a300 of _0x39a41c)this[_0x3907('0x26')](_0x37a300);this['listenTo'](_0x39a41c,_0x3907('0x0'),(_0x1d5fcd,_0x430591)=>{this[_0x3907('0x28')](_0x430591,_0x3907('0x1'),()=>{this[_0x3907('0x26')](_0x430591);});}),this[_0x3907('0x28')](_0x39a41c,'remove',(_0x3dd583,_0x5136a6)=>{_0x5136a6[_0x3907('0x44')][_0x3907('0x56')](_0x3907('0x32'))&&this[_0x3907('0x4e')](_0x5136a6[_0x3907('0x44')][_0x3907('0x57')](_0x3907('0x32')));}),window[_0x3907('0x13')](_0x3907('0x5c'),this[_0x3907('0x4f')]),this['_refreshPositioning']();}['setActiveAnnotation'](_0x48a4a6){if(_0x48a4a6===this[_0x3907('0x12')])return;const _0x1f70bb=this[_0x3907('0xe')][_0x3907('0x44')][_0x3907('0x57')](_0x18b9ae);if(_0x1f70bb[_0x3907('0x3d')]({'blurredAnnotation':this[_0x3907('0x12')],'activatedAnnotation':_0x48a4a6,'disableAnimationOnActivatedAnnotation':!0x0}),_0x48a4a6)_0x1f70bb[_0x3907('0xc')](_0x48a4a6)?this['_showBalloon'](_0x48a4a6):this[_0x3907('0x2')]();else this['_hideBalloon']();this[_0x3907('0x12')]=_0x48a4a6;}['detach'](){if(!this['isAttached'])throw new _0x1d8a64(_0x3907('0x55'),this);this[_0x3907('0x21')](null);const _0x2163a9=this[_0x3907('0xe')][_0x3907('0x44')][_0x3907('0x57')](_0x18b9ae);this[_0x3907('0x2')](),Array[_0x3907('0x60')](this[_0x3907('0x54')][_0x3907('0x5d')](),_0x44de14=>_0x44de14[_0x3907('0x3b')]()),this['_annotationToNarrowView']['clear'](),_0x2163a9['_detachFromContainer'](this[_0x3907('0x43')]),this['stopListening'](),this[_0x3907('0x17')][_0x3907('0x20')](),this[_0x3907('0xe')]instanceof _0x5def40&&this[_0x3907('0x20')](this[_0x3907('0xe')][_0x3907('0x48')]);for(const _0x5dadeb of Array[_0x3907('0x60')](this['_editorAnnotations']))this[_0x3907('0x4e')](_0x5dadeb);window[_0x3907('0x5f')](_0x3907('0x5c'),this[_0x3907('0x4f')]),this[_0x3907('0x4f')][_0x3907('0x33')](),this[_0x3907('0xb')]=[],this[_0x3907('0x52')]=!0x1,this[_0x3907('0x43')]=null;}[_0x3907('0x3b')](){this['isAttached']&&this[_0x3907('0x1f')](),this[_0x3907('0x1d')][_0x3907('0x24')]();}[_0x3907('0x26')](_0x454409){const _0x540626=_0x454409[_0x3907('0x44')]['get'](_0x2e2d47),_0x4d5996=this['context'][_0x3907('0x44')][_0x3907('0x57')](_0x18b9ae),_0x2ff00f=this['annotations'],_0x3a573f=this[_0x3907('0x41')],_0x142db9=()=>{const _0x54fe2e=_0x540626[_0x3907('0x5e')]({'annotations':this[_0x3907('0x43')],'activeAnnotation':this[_0x3907('0x12')]});this[_0x3907('0x4a')](_0x54fe2e),this[_0x3907('0x21')](_0x54fe2e[0x0]||null);};this[_0x3907('0x28')](_0x540626,_0x3907('0x3d'),_0x142db9),this[_0x3907('0x28')](_0x540626,'blur',(_0x5287dc,{isAnnotationTracked:_0x211a3c})=>{this[_0x3907('0x12')]&&_0x211a3c(this[_0x3907('0x12')])&&(this[_0x3907('0x4a')]([]),this['setActiveAnnotation'](null));}),this[_0x3907('0x28')](_0x540626,_0x3907('0x38'),()=>{this[_0x3907('0x4f')]();}),this[_0x3907('0x28')](_0x2ff00f,_0x3907('0xa'),_0x4c35e1=>{_0x540626[_0x3907('0x2a')]()&&_0x4c35e1[_0x3907('0x4')]();},{'priority':'high'}),this[_0x3907('0x28')](this[_0x3907('0x17')],_0x3907('0x1e'),(_0xcd27d,_0x5c9416)=>{const _0x480fed=_0x5c9416['target'];_0x3a573f['isVisible']&&_0x3a573f[_0x3907('0x42')]['contains'](_0x480fed)||_0x4d5996[_0x3907('0x14')]['element']['contains'](_0x480fed)||this[_0x3907('0x12')]&&_0x540626[_0x3907('0x2a')]()&&(_0x142db9(),_0xcd27d['preventClosingBalloon']=!0x0);},{'priority':_0x3907('0x50')}),this[_0x3907('0x36')]['add'](_0x540626);}[_0x3907('0x4e')](_0x43ff21){_0x43ff21&&(this[_0x3907('0x20')](_0x43ff21),this[_0x3907('0x36')][_0x3907('0x2e')](_0x43ff21));}[_0x3907('0x4a')](_0x28969e){for(const _0x3001d5 of this[_0x3907('0xb')])_0x28969e['includes'](_0x3001d5)||this[_0x3907('0x4c')][_0x3907('0x47')](_0x3001d5[_0x3907('0x14')]);this['_selectedAnnotations']=_0x28969e;}[_0x3907('0x3c')](){const _0x1dea4f=this[_0x3907('0x41')];this[_0x3907('0x43')]['refreshPositioning'](),_0x1dea4f['isVisible']&&this[_0x3907('0x58')]();}[_0x3907('0x15')](_0x18172f){if(this[_0x3907('0x4c')][_0x3907('0x56')](_0x18172f[_0x3907('0x14')]))return;const _0xf8161=this[_0x3907('0x41')]['content']['first'];_0xf8161!==_0x18172f[_0x3907('0x14')]?(_0xf8161&&this[_0x3907('0x5b')](_0xf8161),this[_0x3907('0x49')](_0x18172f['view']),this['balloonPanelView'][_0x3907('0x5')]['clear'](),this[_0x3907('0x41')]['content'][_0x3907('0x0')](_0x18172f[_0x3907('0x14')]),this[_0x3907('0x58')]()):this['_updateBalloonPosition']();}[_0x3907('0x58')](){const _0x563c99=this['balloonPanelView'][_0x3907('0x5')][_0x3907('0x2b')],_0x3466aa=_0x563c99&&this['annotations'][_0x3907('0x23')](_0x563c99);if(!_0x3466aa||!this[_0x3907('0x54')]['has'](_0x3466aa))return;const _0x4c5bd9=this[_0x3907('0x54')][_0x3907('0x57')](_0x3466aa)[_0x3907('0x42')],_0x3b3b86=function(){const _0x1bea89=_0x336895[_0x3907('0x25')];return[_0x1bea89[_0x3907('0x19')],_0x1bea89['northArrowSouthEast'],_0x1bea89[_0x3907('0x4b')],_0x1bea89['northArrowSouth'],_0x1bea89[_0x3907('0x35')],_0x1bea89[_0x3907('0xf')]];}();this['balloonPanelView'][_0x3907('0xd')]({'target':_0x4c5bd9,'positions':_0x3b3b86});}[_0x3907('0x2')](){const _0x21aefc=this[_0x3907('0x41')],_0x24bfde=_0x21aefc['content'][_0x3907('0x2b')];_0x24bfde&&(this[_0x3907('0x5b')](_0x24bfde),_0x21aefc['unpin'](),_0x21aefc[_0x3907('0x5')]['clear']());}[_0x3907('0x49')](_0x195a37){this[_0x3907('0x28')](_0x195a37,'change:height',()=>this[_0x3907('0x58')]()),this[_0x3907('0x28')](_0x195a37,_0x3907('0x34'),(_0x428f5b,_0x2edfc9)=>{this[_0x3907('0x4c')]['add'](_0x195a37),this[_0x3907('0x2')](),_0x2edfc9();});}[_0x3907('0x5b')](_0x51bec2){this[_0x3907('0x20')](_0x51bec2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3a0b=['isAnimationDisabled','sidebar.container','refresh','appendChild','get','listenTo','targetRect','rearrange','destroy','_setItemTop','_alignToTargetRect','max','_getTargetTop','addAnnotation','list','_getItemAfter','sidebar-attachtocontainer-missing-container','object','_alignForTopChange','_createSidebarView','nodeType','_recalculate','bind','top','_targetTop','delete','unbind','remove','setContainer','sidebar.preventScrollOutOfView','last','isActive','_lastItem','content','config','_annotations','getSidebarItemView','_recalculateBuffer','render','change:bottom','_alignAfterItem','_getItemBefore','add','_activeAnnotation','getIndex','bottom','define','_destroySidebarItemView','_spaceBetweenItems','length','_annotationToSidebarItemView','_detachFromContainer','element','_sidebarItemViewToAnnotation','init','_updateLastItem','stopListening','updateHeight','pluginName','minHeight','container','context','_getMaxAvailableTop','_attachToContainer','change:top','Sidebar','view','_alignBeforeItem','set','class','clear','_alignForBottomChange','change:targetRect','locale','sidebar-setcontainer-invalid-element'];(function(_0x376f0a,_0x3a0b72){const _0x1201c9=function(_0x525c70){while(--_0x525c70){_0x376f0a['push'](_0x376f0a['shift']());}};_0x1201c9(++_0x3a0b72);}(_0x3a0b,0x14d));const _0x1201=function(_0x376f0a,_0x3a0b72){_0x376f0a=_0x376f0a-0x0;let _0x1201c9=_0x3a0b[_0x376f0a];return _0x1201c9;};import{ContextPlugin as _0x50ad07}from'ckeditor5/src/core.js';import{Rect as _0x57ec7c,CKEditorError as _0x4edfc8}from'ckeditor5/src/utils.js';import _0x1201c1 from'./view/sidebarview.js';import _0x3bbe16 from'./view/sidebaritemview.js';export default class z extends _0x50ad07{static get[_0x1201('0x19')](){return _0x1201('0x20');}constructor(_0x66934a){super(_0x66934a),this[_0x1201('0x23')](_0x1201('0x4a'),void 0x0),this[_0x1201('0x21')]=this[_0x1201('0x3d')](),this['set'](_0x1201('0x1b'),null),this[_0x1201('0xf')]=0x19,this[_0x1201('0x14')]=new Map(),this[_0x1201('0x11')]=new Map(),this['context'][_0x1201('0x1')][_0x1201('0xd')](_0x1201('0x47'),!0x1),this[_0x1201('0x2')]=null,this[_0x1201('0xa')]=null,this[_0x1201('0x4')]=[];}[_0x1201('0x15')](){const _0xfdd605=this['context'][_0x1201('0x1')][_0x1201('0x2e')](_0x1201('0x2b'));_0xfdd605&&this[_0x1201('0x46')](_0xfdd605);}[_0x1201('0x46')](_0x16bb61){if(!y(_0x16bb61))throw new _0x4edfc8(_0x1201('0x29'));this[_0x1201('0x1b')]=_0x16bb61;}[_0x1201('0x1e')]({viewClass:_0x350867='',spaceBetweenItems:_0x27ea66=0x19}={}){if(!y(this[_0x1201('0x1b')]))throw new _0x4edfc8(_0x1201('0x3a'),this);this[_0x1201('0x1b')][_0x1201('0x2d')](this['view'][_0x1201('0x13')]),this['view'][_0x1201('0x24')]=_0x350867,this[_0x1201('0xf')]=_0x27ea66;}[_0x1201('0x31')]({removedAnnotation:_0x4b6b14,previousAnnotation:_0x369403,nextAnnotation:_0x2624be}){const _0x22c106=this['getSidebarItemView'](_0x4b6b14);this['view'][_0x1201('0x38')][_0x1201('0x45')](_0x22c106),this[_0x1201('0xe')](_0x4b6b14),_0x369403&&this[_0x1201('0x34')](this[_0x1201('0x3')](_0x369403)),_0x2624be&&this[_0x1201('0x34')](this['getSidebarItemView'](_0x2624be)),this[_0x1201('0x16')]();}[_0x1201('0x2c')]({blurredAnnotation:_0x4c09ef,activatedAnnotation:_0x45ffae,disableAnimationOnActivatedAnnotation:_0x5551c6}){if(this[_0x1201('0xa')]=_0x45ffae,_0x4c09ef){_0x4c09ef[_0x1201('0x49')]=!0x1;const _0x1984cf=this[_0x1201('0x3')](_0x4c09ef);_0x1984cf&&_0x5551c6&&(_0x1984cf['isAnimationDisabled']=!0x1);}if(_0x45ffae){const _0x1c17af=this[_0x1201('0x3')](_0x45ffae);_0x1c17af&&(_0x45ffae[_0x1201('0x49')]=!0x0,_0x5551c6&&(_0x1c17af[_0x1201('0x2a')]=!0x0,_0x1c17af[_0x1201('0x41')]+=0x1),this[_0x1201('0x34')](_0x1c17af));}}[_0x1201('0x12')](_0x283e83){if(this['view'][_0x1201('0x13')][_0x1201('0x45')](),_0x283e83)for(const _0x249e4b of _0x283e83)this[_0x1201('0xe')](_0x249e4b);this[_0x1201('0x21')][_0x1201('0x38')][_0x1201('0x25')](),this[_0x1201('0x21')][_0x1201('0x24')]='',this[_0x1201('0x4a')]=null;}[_0x1201('0x37')](_0xc702a9,_0x2fecde){_0x2fecde||(_0x2fecde=_0xc702a9[_0x1201('0x21')]);const _0x532b4d=new _0x3bbe16(this[_0x1201('0x1c')][_0x1201('0x28')]);this['_sidebarItemViewToAnnotation'][_0x1201('0x23')](_0x532b4d,_0xc702a9),this['_annotationToSidebarItemView'][_0x1201('0x23')](_0xc702a9,_0x532b4d),_0x532b4d[_0x1201('0x0')][_0x1201('0x9')](_0x2fecde),this[_0x1201('0x2f')](_0xc702a9[_0x1201('0x21')],_0x1201('0x27'),(_0x2fb2c6,_0x417252,_0x539491)=>{const _0x5e551f=this[_0x1201('0x36')](_0xc702a9,_0x539491);_0x532b4d[_0x1201('0x42')]!=_0x5e551f&&(_0x532b4d['_targetTop']=_0x5e551f,this[_0x1201('0x33')](_0x532b4d,_0x5e551f));}),this[_0x1201('0x2f')](_0x532b4d,_0x1201('0x1f'),()=>{this[_0x1201('0x3f')](_0x532b4d,_0x1201('0x41'));}),this[_0x1201('0x2f')](_0x532b4d,_0x1201('0x6'),()=>{this['_recalculate'](_0x532b4d,_0x1201('0xc'));}),this[_0x1201('0x34')](_0x532b4d);const _0x529772=this[_0x1201('0x8')](_0x532b4d);if(_0x529772)this[_0x1201('0x7')](_0x529772,_0x532b4d)||this['_alignToTargetRect'](_0x532b4d);else this[_0x1201('0x34')](_0x532b4d);return this['_updateLastItem'](),this[_0x1201('0x21')]['list']['add'](_0x532b4d),_0x532b4d;}[_0x1201('0x3c')](_0x18e046){if(!_0x18e046[_0x1201('0x0')][_0x1201('0x10')])return;const _0x5b5eec=this['_getItemBefore'](_0x18e046);if(!_0x5b5eec)return;const _0x1f44e8=this['_sidebarItemViewToAnnotation'][_0x1201('0x2e')](_0x5b5eec),_0x2a22b1=this[_0x1201('0xa')];_0x2a22b1&&_0x2a22b1===_0x1f44e8?this['_alignAfterItem'](_0x5b5eec,_0x18e046):this[_0x1201('0x22')](_0x18e046,_0x5b5eec);}[_0x1201('0x26')](_0x46dd07){if(!_0x46dd07['content'][_0x1201('0x10')])return;const _0x22b303=this[_0x1201('0x39')](_0x46dd07);if(!_0x22b303)return;const _0x21a01b=this[_0x1201('0x14')][_0x1201('0x2e')](_0x22b303),_0x3e88d6=this[_0x1201('0x1c')][_0x1201('0x1')][_0x1201('0x2e')](_0x1201('0x47')),_0x4b357c=this[_0x1201('0xa')];_0x4b357c&&_0x4b357c===_0x21a01b&&_0x3e88d6?(this[_0x1201('0x22')](_0x22b303,_0x46dd07),this[_0x1201('0x7')](_0x46dd07,_0x22b303)):_0x4b357c&&_0x4b357c===_0x21a01b?this[_0x1201('0x22')](_0x22b303,_0x46dd07):this[_0x1201('0x7')](_0x46dd07,_0x22b303);}['_recalculate'](_0x299e66,_0x5829c4){0x0===this[_0x1201('0x4')][_0x1201('0x10')]&&setTimeout(()=>{for(const {sidebarItemView:_0x27fa81,changedProp:_0x12d4fe}of this[_0x1201('0x4')])_0x1201('0x41')===_0x12d4fe?this['_alignForTopChange'](_0x27fa81):this[_0x1201('0x26')](_0x27fa81);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x299e66,'changedProp':_0x5829c4});}['getSidebarItemView'](_0xe34be0){return this['_annotationToSidebarItemView'][_0x1201('0x2e')](_0xe34be0);}['destroy'](){this[_0x1201('0x17')](),this[_0x1201('0x21')][_0x1201('0x32')]();}['_destroySidebarItemView'](_0x55fce7){const _0x48f670=this[_0x1201('0x3')](_0x55fce7);this[_0x1201('0x17')](_0x48f670),this[_0x1201('0x17')](_0x55fce7[_0x1201('0x21')]),_0x48f670[_0x1201('0x32')](),this[_0x1201('0x11')][_0x1201('0x43')](_0x55fce7),this[_0x1201('0x14')][_0x1201('0x43')](_0x48f670);}[_0x1201('0x3d')](){const _0x5df2c9=new _0x1201c1(this[_0x1201('0x1c')][_0x1201('0x28')]);return _0x5df2c9[_0x1201('0x5')](),this['on']('change:_lastItem',(_0x4f3e6e,_0x2b087e,_0xbebd8b,_0x4ba093)=>{_0x4ba093&&_0x5df2c9[_0x1201('0x44')](_0x1201('0x1a')),_0xbebd8b?_0x5df2c9[_0x1201('0x40')](_0x1201('0x1a'))['to'](_0xbebd8b,_0x1201('0xc')):_0x5df2c9['minHeight']=null;}),_0x5df2c9;}[_0x1201('0x16')](){var _0x4253c1;this[_0x1201('0x4a')]=(null===(_0x4253c1=this[_0x1201('0x2')])||void 0x0===_0x4253c1?void 0x0:_0x4253c1[_0x1201('0x48')])?this[_0x1201('0x3')](this[_0x1201('0x2')]['last']):null;}[_0x1201('0x8')](_0x3270fd){var _0x24a873;const _0x5cb8ac=this[_0x1201('0x14')][_0x1201('0x2e')](_0x3270fd),_0x1d8424=_0x5cb8ac&&(null===(_0x24a873=this[_0x1201('0x2')])||void 0x0===_0x24a873?void 0x0:_0x24a873[_0x1201('0x2e')](this['_annotations']['getIndex'](_0x5cb8ac)-0x1));return _0x1d8424&&this[_0x1201('0x3')](_0x1d8424)||null;}[_0x1201('0x39')](_0x1b686e){var _0x4d17fc;const _0x45efa3=this[_0x1201('0x14')][_0x1201('0x2e')](_0x1b686e),_0x54f209=_0x45efa3&&(null===(_0x4d17fc=this[_0x1201('0x2')])||void 0x0===_0x4d17fc?void 0x0:_0x4d17fc[_0x1201('0x2e')](this['_annotations'][_0x1201('0xb')](_0x45efa3)+0x1));return _0x54f209&&this['getSidebarItemView'](_0x54f209)||null;}[_0x1201('0x22')](_0x31d6b5,_0x40dd23){_0x31d6b5[_0x1201('0x18')]();const _0x48e937=M(_0x40dd23[_0x1201('0xc')]+this['_spaceBetweenItems'],_0x31d6b5['top']);return!!_0x48e937&&(this[_0x1201('0x33')](_0x40dd23,_0x40dd23[_0x1201('0x41')]-_0x48e937),!0x0);}[_0x1201('0x7')](_0x299486,_0x5c6baf){_0x299486[_0x1201('0x18')]();const _0x233d79=M(_0x299486[_0x1201('0xc')]+this['_spaceBetweenItems'],_0x5c6baf[_0x1201('0x41')]);return!!_0x233d79&&(this[_0x1201('0x33')](_0x5c6baf,_0x5c6baf[_0x1201('0x41')]+_0x233d79,!0x1),!0x0);}['_alignToTargetRect'](_0x42ff9e){const _0x48c07a=this['_sidebarItemViewToAnnotation'][_0x1201('0x2e')](_0x42ff9e);if(!_0x48c07a||!_0x48c07a['target']||!_0x48c07a[_0x1201('0x30')])return;const _0x3931e2=this[_0x1201('0x36')](_0x48c07a,_0x48c07a[_0x1201('0x30')]);this[_0x1201('0x33')](_0x42ff9e,_0x3931e2);}[_0x1201('0x36')](_0x117e90,_0x7f4ba2){if(null===_0x7f4ba2)return 0x0;if(_0x117e90['target']instanceof _0x57ec7c)return _0x7f4ba2[_0x1201('0x41')];{const _0x390bc5=new _0x57ec7c(this['view'][_0x1201('0x13')])[_0x1201('0x41')];return _0x7f4ba2[_0x1201('0x41')]-_0x390bc5;}}['_setItemTop'](_0x2dddbb,_0x18fdd4,_0x3a8dee=this['context']['config'][_0x1201('0x2e')](_0x1201('0x47'))){_0x3a8dee&&(_0x18fdd4=Math['max'](_0x18fdd4,this['_getMaxAvailableTop'](_0x2dddbb))),_0x2dddbb[_0x1201('0x41')]=_0x18fdd4;}[_0x1201('0x1d')](_0x57f9be){let _0x4da7d4=this['_getItemBefore'](_0x57f9be),_0x53c179=0x0;for(;_0x4da7d4;)_0x4da7d4[_0x1201('0x18')](),_0x53c179+=this[_0x1201('0xf')]+_0x4da7d4['height'],_0x4da7d4=this[_0x1201('0x8')](_0x4da7d4);return _0x53c179;}}function M(_0x34716f,_0x5053ca){return Math[_0x1201('0x35')](_0x34716f-_0x5053ca,0x0);}function y(_0x1f530a){return null!==_0x1f530a&&_0x1201('0x3b')==typeof _0x1f530a&&0x1===_0x1f530a[_0x1201('0x3e')];}
|
|
23
|
+
const _0xc5e8=['add','change:_lastItem','listenTo','isActive','_activeAnnotation','refresh','_destroySidebarItemView','_alignBeforeItem','_getItemBefore','last','change:bottom','_alignToTargetRect','class','object','render','_getTargetTop','remove','locale','_getItemAfter','getIndex','_spaceBetweenItems','element','sidebar.preventScrollOutOfView','isAnimationDisabled','_alignAfterItem','bottom','pluginName','_alignForBottomChange','top','set','Sidebar','_alignForTopChange','config','max','_recalculateBuffer','unbind','addAnnotation','view','targetRect','_createSidebarView','stopListening','get','getSidebarItemView','push','_setItemTop','_lastItem','_recalculate','length','target','clear','container','_getMaxAvailableTop','nodeType','content','sidebar-setcontainer-invalid-element','setContainer','list','_annotations','_targetTop','_updateLastItem','context','destroy','delete','_sidebarItemViewToAnnotation','_annotationToSidebarItemView','updateHeight','bind','height','rearrange','minHeight','_attachToContainer'];(function(_0x3a4a21,_0xc5e8ba){const _0x118d28=function(_0x1e1dab){while(--_0x1e1dab){_0x3a4a21['push'](_0x3a4a21['shift']());}};_0x118d28(++_0xc5e8ba);}(_0xc5e8,0x159));const _0x118d=function(_0x3a4a21,_0xc5e8ba){_0x3a4a21=_0x3a4a21-0x0;let _0x118d28=_0xc5e8[_0x3a4a21];return _0x118d28;};import{ContextPlugin as _0x84af2a}from'ckeditor5/src/core.js';import{Rect as _0x292648,CKEditorError as _0x5929ec}from'ckeditor5/src/utils.js';import _0x2d1d05 from'./view/sidebarview.js';import _0x1a97bc from'./view/sidebaritemview.js';export default class z extends _0x84af2a{static get[_0x118d('0x24')](){return _0x118d('0x28');}constructor(_0x130927){super(_0x130927),this[_0x118d('0x27')](_0x118d('0x37'),void 0x0),this[_0x118d('0x2f')]=this[_0x118d('0x31')](),this[_0x118d('0x27')](_0x118d('0x3c'),null),this[_0x118d('0x1e')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x118d('0x3')]=new Map(),this[_0x118d('0x46')]['config']['define'](_0x118d('0x20'),!0x1),this[_0x118d('0x43')]=null,this[_0x118d('0xe')]=null,this['_recalculateBuffer']=[];}['init'](){const _0x3cb7aa=this[_0x118d('0x46')][_0x118d('0x2a')]['get']('sidebar.container');_0x3cb7aa&&this[_0x118d('0x41')](_0x3cb7aa);}[_0x118d('0x41')](_0x2890b2){if(!y(_0x2890b2))throw new _0x5929ec(_0x118d('0x40'));this[_0x118d('0x3c')]=_0x2890b2;}[_0x118d('0x9')]({viewClass:_0x27a720='',spaceBetweenItems:_0x850ecf=0x19}={}){if(!y(this[_0x118d('0x3c')]))throw new _0x5929ec('sidebar-attachtocontainer-missing-container',this);this[_0x118d('0x3c')]['appendChild'](this[_0x118d('0x2f')][_0x118d('0x1f')]),this['view'][_0x118d('0x16')]=_0x27a720,this['_spaceBetweenItems']=_0x850ecf;}[_0x118d('0x7')]({removedAnnotation:_0x17a91b,previousAnnotation:_0x5c8f29,nextAnnotation:_0x4e59da}){const _0x486d28=this[_0x118d('0x34')](_0x17a91b);this[_0x118d('0x2f')]['list'][_0x118d('0x1a')](_0x486d28),this[_0x118d('0x10')](_0x17a91b),_0x5c8f29&&this[_0x118d('0x15')](this[_0x118d('0x34')](_0x5c8f29)),_0x4e59da&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x4e59da)),this['_updateLastItem']();}[_0x118d('0xf')]({blurredAnnotation:_0x551650,activatedAnnotation:_0x10e098,disableAnimationOnActivatedAnnotation:_0x5e1a1f}){if(this['_activeAnnotation']=_0x10e098,_0x551650){_0x551650['isActive']=!0x1;const _0x4421bd=this['getSidebarItemView'](_0x551650);_0x4421bd&&_0x5e1a1f&&(_0x4421bd['isAnimationDisabled']=!0x1);}if(_0x10e098){const _0x4b37bd=this[_0x118d('0x34')](_0x10e098);_0x4b37bd&&(_0x10e098[_0x118d('0xd')]=!0x0,_0x5e1a1f&&(_0x4b37bd[_0x118d('0x21')]=!0x0,_0x4b37bd[_0x118d('0x26')]+=0x1),this[_0x118d('0x15')](_0x4b37bd));}}['_detachFromContainer'](_0xa16293){if(this[_0x118d('0x2f')][_0x118d('0x1f')][_0x118d('0x1a')](),_0xa16293)for(const _0x5348f6 of _0xa16293)this[_0x118d('0x10')](_0x5348f6);this[_0x118d('0x2f')][_0x118d('0x42')][_0x118d('0x3b')](),this['view']['class']='',this['_lastItem']=null;}[_0x118d('0x2e')](_0x3934ed,_0x50f074){_0x50f074||(_0x50f074=_0x3934ed['view']);const _0x22b549=new _0x1a97bc(this[_0x118d('0x46')][_0x118d('0x1b')]);this['_sidebarItemViewToAnnotation'][_0x118d('0x27')](_0x22b549,_0x3934ed),this[_0x118d('0x3')][_0x118d('0x27')](_0x3934ed,_0x22b549),_0x22b549[_0x118d('0x3f')][_0x118d('0xa')](_0x50f074),this[_0x118d('0xc')](_0x3934ed[_0x118d('0x2f')],'change:targetRect',(_0x536d3e,_0x2e480a,_0x47256f)=>{const _0x532506=this[_0x118d('0x19')](_0x3934ed,_0x47256f);_0x22b549[_0x118d('0x44')]!=_0x532506&&(_0x22b549[_0x118d('0x44')]=_0x532506,this['_setItemTop'](_0x22b549,_0x532506));}),this['listenTo'](_0x22b549,'change:top',()=>{this[_0x118d('0x38')](_0x22b549,_0x118d('0x26'));}),this[_0x118d('0xc')](_0x22b549,_0x118d('0x14'),()=>{this[_0x118d('0x38')](_0x22b549,_0x118d('0x23'));}),this[_0x118d('0x15')](_0x22b549);const _0x3157f4=this[_0x118d('0x12')](_0x22b549);if(_0x3157f4)this[_0x118d('0x22')](_0x3157f4,_0x22b549)||this[_0x118d('0x15')](_0x22b549);else this[_0x118d('0x15')](_0x22b549);return this[_0x118d('0x45')](),this[_0x118d('0x2f')]['list']['add'](_0x22b549),_0x22b549;}[_0x118d('0x29')](_0x496e12){if(!_0x496e12[_0x118d('0x3f')]['length'])return;const _0x4d2a11=this['_getItemBefore'](_0x496e12);if(!_0x4d2a11)return;const _0x26bb00=this['_sidebarItemViewToAnnotation'][_0x118d('0x33')](_0x4d2a11),_0x289abe=this[_0x118d('0xe')];_0x289abe&&_0x289abe===_0x26bb00?this[_0x118d('0x22')](_0x4d2a11,_0x496e12):this['_alignBeforeItem'](_0x496e12,_0x4d2a11);}[_0x118d('0x25')](_0x40c04a){if(!_0x40c04a[_0x118d('0x3f')][_0x118d('0x39')])return;const _0x299075=this['_getItemAfter'](_0x40c04a);if(!_0x299075)return;const _0x31189b=this[_0x118d('0x2')][_0x118d('0x33')](_0x299075),_0x4e029e=this[_0x118d('0x46')][_0x118d('0x2a')][_0x118d('0x33')]('sidebar.preventScrollOutOfView'),_0x29d33a=this[_0x118d('0xe')];_0x29d33a&&_0x29d33a===_0x31189b&&_0x4e029e?(this[_0x118d('0x11')](_0x299075,_0x40c04a),this[_0x118d('0x22')](_0x40c04a,_0x299075)):_0x29d33a&&_0x29d33a===_0x31189b?this['_alignBeforeItem'](_0x299075,_0x40c04a):this[_0x118d('0x22')](_0x40c04a,_0x299075);}[_0x118d('0x38')](_0x2ea307,_0x2b510c){0x0===this[_0x118d('0x2c')][_0x118d('0x39')]&&setTimeout(()=>{for(const {sidebarItemView:_0x38bd2d,changedProp:_0x277183}of this[_0x118d('0x2c')])'top'===_0x277183?this[_0x118d('0x29')](_0x38bd2d):this[_0x118d('0x25')](_0x38bd2d);this[_0x118d('0x2c')]=[];},0xa),this[_0x118d('0x2c')][_0x118d('0x35')]({'sidebarItemView':_0x2ea307,'changedProp':_0x2b510c});}[_0x118d('0x34')](_0x515eab){return this[_0x118d('0x3')]['get'](_0x515eab);}[_0x118d('0x0')](){this[_0x118d('0x32')](),this[_0x118d('0x2f')][_0x118d('0x0')]();}['_destroySidebarItemView'](_0x358a7e){const _0x3736b0=this[_0x118d('0x34')](_0x358a7e);this[_0x118d('0x32')](_0x3736b0),this[_0x118d('0x32')](_0x358a7e[_0x118d('0x2f')]),_0x3736b0['destroy'](),this[_0x118d('0x3')][_0x118d('0x1')](_0x358a7e),this[_0x118d('0x2')][_0x118d('0x1')](_0x3736b0);}[_0x118d('0x31')](){const _0x1c1d83=new _0x2d1d05(this[_0x118d('0x46')][_0x118d('0x1b')]);return _0x1c1d83[_0x118d('0x18')](),this['on'](_0x118d('0xb'),(_0x3a8f11,_0x4d1210,_0x4fd1f6,_0x37aa04)=>{_0x37aa04&&_0x1c1d83[_0x118d('0x2d')](_0x118d('0x8')),_0x4fd1f6?_0x1c1d83[_0x118d('0x5')](_0x118d('0x8'))['to'](_0x4fd1f6,_0x118d('0x23')):_0x1c1d83[_0x118d('0x8')]=null;}),_0x1c1d83;}[_0x118d('0x45')](){var _0xb9061a;this[_0x118d('0x37')]=(null===(_0xb9061a=this[_0x118d('0x43')])||void 0x0===_0xb9061a?void 0x0:_0xb9061a[_0x118d('0x13')])?this[_0x118d('0x34')](this[_0x118d('0x43')][_0x118d('0x13')]):null;}[_0x118d('0x12')](_0x4929d3){var _0x7397ea;const _0xa77a59=this[_0x118d('0x2')]['get'](_0x4929d3),_0x5c6581=_0xa77a59&&(null===(_0x7397ea=this[_0x118d('0x43')])||void 0x0===_0x7397ea?void 0x0:_0x7397ea[_0x118d('0x33')](this['_annotations'][_0x118d('0x1d')](_0xa77a59)-0x1));return _0x5c6581&&this['getSidebarItemView'](_0x5c6581)||null;}[_0x118d('0x1c')](_0xf2ff04){var _0x435c23;const _0x480061=this['_sidebarItemViewToAnnotation'][_0x118d('0x33')](_0xf2ff04),_0x2c0d5f=_0x480061&&(null===(_0x435c23=this[_0x118d('0x43')])||void 0x0===_0x435c23?void 0x0:_0x435c23[_0x118d('0x33')](this['_annotations']['getIndex'](_0x480061)+0x1));return _0x2c0d5f&&this[_0x118d('0x34')](_0x2c0d5f)||null;}[_0x118d('0x11')](_0xff7619,_0x204c27){_0xff7619['updateHeight']();const _0x3d3a05=M(_0x204c27[_0x118d('0x23')]+this[_0x118d('0x1e')],_0xff7619['top']);return!!_0x3d3a05&&(this[_0x118d('0x36')](_0x204c27,_0x204c27[_0x118d('0x26')]-_0x3d3a05),!0x0);}['_alignAfterItem'](_0x24d420,_0x3d0f83){_0x24d420['updateHeight']();const _0x323c24=M(_0x24d420[_0x118d('0x23')]+this['_spaceBetweenItems'],_0x3d0f83[_0x118d('0x26')]);return!!_0x323c24&&(this[_0x118d('0x36')](_0x3d0f83,_0x3d0f83[_0x118d('0x26')]+_0x323c24,!0x1),!0x0);}[_0x118d('0x15')](_0x526bcb){const _0xb77725=this['_sidebarItemViewToAnnotation']['get'](_0x526bcb);if(!_0xb77725||!_0xb77725[_0x118d('0x3a')]||!_0xb77725[_0x118d('0x30')])return;const _0x3dbb53=this[_0x118d('0x19')](_0xb77725,_0xb77725[_0x118d('0x30')]);this['_setItemTop'](_0x526bcb,_0x3dbb53);}[_0x118d('0x19')](_0x7c8889,_0x586d0b){if(null===_0x586d0b)return 0x0;if(_0x7c8889[_0x118d('0x3a')]instanceof _0x292648)return _0x586d0b[_0x118d('0x26')];{const _0x52ef6a=new _0x292648(this[_0x118d('0x2f')][_0x118d('0x1f')])[_0x118d('0x26')];return _0x586d0b[_0x118d('0x26')]-_0x52ef6a;}}[_0x118d('0x36')](_0x240e3f,_0x40a5b9,_0x3ce1cb=this[_0x118d('0x46')]['config'][_0x118d('0x33')]('sidebar.preventScrollOutOfView')){_0x3ce1cb&&(_0x40a5b9=Math[_0x118d('0x2b')](_0x40a5b9,this[_0x118d('0x3d')](_0x240e3f))),_0x240e3f[_0x118d('0x26')]=_0x40a5b9;}[_0x118d('0x3d')](_0x5b217e){let _0x1bb5ff=this[_0x118d('0x12')](_0x5b217e),_0x124b49=0x0;for(;_0x1bb5ff;)_0x1bb5ff[_0x118d('0x4')](),_0x124b49+=this['_spaceBetweenItems']+_0x1bb5ff[_0x118d('0x6')],_0x1bb5ff=this['_getItemBefore'](_0x1bb5ff);return _0x124b49;}}function M(_0x330668,_0x1544bb){return Math[_0x118d('0x2b')](_0x330668-_0x1544bb,0x0);}function y(_0x370213){return null!==_0x370213&&_0x118d('0x17')==typeof _0x370213&&0x1===_0x370213[_0x118d('0x3e')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e4d=['icon','toString','bind','isDirty','counterView','_badge','set','add','annotationType','ck-annotation-counter__badge','number','ck-annotation-counter__badge--edit-mode','ck-annotation-counter'];(function(_0x4d8985,_0x1e4d5d){const _0x56d856=function(_0x487760){while(--_0x487760){_0x4d8985['push'](_0x4d8985['shift']());}};_0x56d856(++_0x1e4d5d);}(_0x1e4d,0x78));const _0x56d8=function(_0x4d8985,_0x1e4d5d){_0x4d8985=_0x4d8985-0x0;let _0x56d856=_0x1e4d[_0x4d8985];return _0x56d856;};import{ButtonView as _0x1ce80c,View as _0x8668b6}from'ckeditor5/src/ui.js';import _0x1dd0a3 from'../../../theme/icons/add-comment.svg';export default class D extends _0x1ce80c{constructor(_0x1204f2){super(_0x1204f2);const _0x5aa878=this['bindTemplate'];this[_0x56d8('0x3')](_0x56d8('0x0'),!0x1),this[_0x56d8('0x3')]('number',0x0),this[_0x56d8('0xc')]('_badge')['to'](this,_0x56d8('0x0'),this,_0x56d8('0x7'),(_0x59964b,_0x56c9a4)=>_0x59964b?'...':_0x56c9a4[_0x56d8('0xb')]()),this[_0x56d8('0x3')](_0x56d8('0x5'),''),this[_0x56d8('0xa')]=_0x1dd0a3,this['extendTemplate']({'attributes':{'class':[_0x56d8('0x9')]}}),this[_0x56d8('0x1')]=new _0x8668b6(),this[_0x56d8('0x1')]['setTemplate']({'tag':'span','attributes':{'class':[_0x56d8('0x6'),_0x5aa878['to']('annotationType',_0x23173f=>'ck-annotation-counter__badge--'+_0x23173f),_0x5aa878['if']('isDirty',_0x56d8('0x8'))]},'children':[{'text':_0x5aa878['to'](_0x56d8('0x2'))}]}),this['children'][_0x56d8('0x4')](this[_0x56d8('0x1')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e54=['render','Esc','keystrokes','targetRect','fire','height','bindTemplate','attach','focus','clientHeight','_mutationObserver','createCollection','focusTracker','detach','ck-annotation-wrapper','div','element','destroy','isDirty','add','set','content','ck-rounded-corners','isActive','_updateHeight','setTemplate'];(function(_0x48bbb4,_0x3e54d7){const _0x8309d1=function(_0x4e92f7){while(--_0x4e92f7){_0x48bbb4['push'](_0x48bbb4['shift']());}};_0x8309d1(++_0x3e54d7);}(_0x3e54,0x195));const _0x8309=function(_0x48bbb4,_0x3e54d7){_0x48bbb4=_0x48bbb4-0x0;let _0x8309d1=_0x3e54[_0x48bbb4];return _0x8309d1;};import{View as _0x2d3097}from'ckeditor5/src/ui.js';import{FocusTracker as _0x44dcad,KeystrokeHandler as _0x30dca5,uid as _0xdec001}from'ckeditor5/src/utils.js';import _0x4c5498 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x2d3097{constructor(_0x41f6e6,_0x8a83e9){super(_0x41f6e6),this['id']=_0xdec001(),this[_0x8309('0x17')]=new _0x44dcad(),this[_0x8309('0xd')]=new _0x30dca5(),this[_0x8309('0xd')][_0x8309('0x5')](_0x8309('0xc'),(_0x14ea60,_0x58526a)=>this[_0x8309('0xf')](_0x8309('0xc'),_0x58526a)),this[_0x8309('0x5')](_0x8309('0xe'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x8309('0x5')]('height',0x0),this[_0x8309('0x5')](_0x8309('0x8'),!0x1),this[_0x8309('0x5')](_0x8309('0x3'),!0x1),this[_0x8309('0x5')]('length',0x0),this[_0x8309('0x5')]('type',''),this['_mutationObserver']=_0x4c5498(()=>this[_0x8309('0x9')]()),this[_0x8309('0x6')]=this[_0x8309('0x16')](),this['content'][_0x8309('0x4')](_0x8a83e9),this['mainView']=_0x8a83e9;const _0x49a894=this[_0x8309('0x11')];this[_0x8309('0xa')]({'tag':_0x8309('0x0'),'attributes':{'class':['ck',_0x8309('0x19'),_0x8309('0x7'),_0x49a894['if'](_0x8309('0x8'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}[_0x8309('0xb')](){super['render'](),this[_0x8309('0x17')]['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this[_0x8309('0x15')][_0x8309('0x12')](this[_0x8309('0x1')]);}[_0x8309('0x2')](){this[_0x8309('0x6')]['clear'](),this[_0x8309('0xd')][_0x8309('0x2')](),this[_0x8309('0x17')][_0x8309('0x2')](),this[_0x8309('0x15')][_0x8309('0x18')](),super[_0x8309('0x2')]();}[_0x8309('0x13')](){this[_0x8309('0x1')][_0x8309('0x13')]();}[_0x8309('0x9')](){const _0x23abd5=this[_0x8309('0x1')][_0x8309('0x14')];_0x23abd5&&(this[_0x8309('0x10')]=_0x23abd5);}}
|