@ckeditor/ckeditor5-comments 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.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-20240119.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-20240119.0",
|
|
48
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240119.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 _0x1229=['targetRect','mainView','offsetParent','isVisible','add','refreshVisibility','_type','every','stopListening','type','length','isArray','clear','view','remove','isActive','_target','function','element','updateTargetRect','set','_assertCorrectTarget','getClientRects','nodeType','target','focusableElements','annotation-invalid-target','focusTracker'];(function(_0x3e3265,_0x12295a){const _0x24d8d5=function(_0x4660b2){while(--_0x4660b2){_0x3e3265['push'](_0x3e3265['shift']());}};_0x24d8d5(++_0x12295a);}(_0x1229,0x74));const _0x24d8=function(_0x3e3265,_0x12295a){_0x3e3265=_0x3e3265-0x0;let _0x24d8d5=_0x1229[_0x3e3265];return _0x24d8d5;};import{CKEditorError as _0x38869e,Rect as _0x5a6a95,Collection as _0x4d7ceb,ObservableMixin as _0x2712c5}from'ckeditor5/src/utils.js';export default class d extends _0x2712c5(){constructor({view:_0x42dcbf,target:_0x219a3d,type:_0xa854c8,isVisible:_0x33c392=!0x0}){super(),this['view']=_0x42dcbf,this[_0x24d8('0x9')]['element']||this['view']['render'](),this[_0x24d8('0x2')]=_0xa854c8,this[_0x24d8('0xc')]=_0x219a3d,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this[_0x24d8('0x15')]=new _0x4d7ceb([this[_0x24d8('0x9')][_0x24d8('0xe')]],{'idProperty':'_id'}),this['focusableElements']['on'](_0x24d8('0x0'),(_0x5ce9a5,_0x5735bc)=>{this['view']['focusTracker'][_0x24d8('0x0')](_0x5735bc);}),this['focusableElements']['on'](_0x24d8('0xa'),(_0xa89173,_0x1f689)=>{this['view'][_0x24d8('0x17')][_0x24d8('0xa')](_0x1f689);}),this[_0x24d8('0x10')](_0x24d8('0x1b'),_0x33c392);}get[_0x24d8('0x5')](){return _0x24d8('0xd')==typeof this[_0x24d8('0x2')]?this[_0x24d8('0x2')]():this[_0x24d8('0x2')];}get['innerView'](){return this['view'][_0x24d8('0x19')];}get[_0x24d8('0x14')](){const _0x12c113=this['_getNormalizedTarget']();return d[_0x24d8('0x11')](_0x12c113),_0x12c113;}get['targetRect'](){const _0xab57e9=this[_0x24d8('0x14')];if(null===_0xab57e9)return null;if(_0xab57e9 instanceof _0x5a6a95)return _0xab57e9;const _0x3fa333=_0xab57e9['filter'](_0x2de22a=>function(_0x431c26){const _0x25999e=_0x431c26[_0x24d8('0x1a')];if(_0x25999e)return!0x0;const _0x5931bf=_0x431c26[_0x24d8('0x12')]()['item'](0x0);return!!_0x5931bf;}(_0x2de22a));return 0x0===_0x3fa333[_0x24d8('0x6')]?null:new _0x5a6a95(_0x3fa333[0x0][_0x24d8('0x12')]()['item'](0x0));}get[_0x24d8('0xb')](){return this[_0x24d8('0x9')][_0x24d8('0xb')];}set['isActive'](_0x253732){this['view'][_0x24d8('0xb')]=_0x253732,this[_0x24d8('0x9')][_0x24d8('0x19')][_0x24d8('0xb')]=_0x253732;}[_0x24d8('0xf')](){this[_0x24d8('0x9')][_0x24d8('0x18')]=this[_0x24d8('0x18')];}['destroy'](){this[_0x24d8('0x15')][_0x24d8('0x4')](),this[_0x24d8('0x15')][_0x24d8('0x8')](),this['stopListening']();}[_0x24d8('0x1')](){this[_0x24d8('0x1b')]=!!this[_0x24d8('0x18')];}static['_assertCorrectTarget'](_0x401a6a){if(!(null===_0x401a6a||_0x401a6a instanceof _0x5a6a95||Array[_0x24d8('0x7')](_0x401a6a)&&_0x401a6a[_0x24d8('0x3')](_0x4c69f3=>y(_0x4c69f3))))throw new _0x38869e(_0x24d8('0x16'),null,{'target':_0x401a6a});}['_getNormalizedTarget'](){const _0x25a92a='function'==typeof this[_0x24d8('0xc')]?this['_target']():this[_0x24d8('0xc')];return y(_0x25a92a)?[_0x25a92a]:_0x25a92a;}}function y(_0x3f1039){return null!==_0x3f1039&&'object'==typeof _0x3f1039&&_0x24d8('0x13')in _0x3f1039&&0x1===_0x3f1039[_0x24d8('0x13')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e77=['sort','targetRect','_viewToAnnotation','updateTargetRect','set','view','fire','get','focusableElements','delete','_getOrderInContent','has','annotationcollection-not-existing-item','focus','getByView','getIndex','stopListening','remove','add','_innerViewToAnnotation','isFocused','_focusTracker','left','blur','annotationcollection-duplicated-item','listenTo','clear','refreshPositioning','destroy','change:isFocused','innerView','_sort','top','length'];(function(_0x50ca69,_0x4e7785){const _0x468662=function(_0x6d0e40){while(--_0x6d0e40){_0x50ca69['push'](_0x50ca69['shift']());}};_0x468662(++_0x4e7785);}(_0x4e77,0x1b7));const _0x4686=function(_0x50ca69,_0x4e7785){_0x50ca69=_0x50ca69-0x0;let _0x468662=_0x4e77[_0x50ca69];return _0x468662;};import{CKEditorError as _0x42a551,Collection as _0x3bb5ed,FocusTracker as _0x456bcb}from'ckeditor5/src/utils.js';export default class x extends _0x3bb5ed{constructor(_0x22f2aa=[]){super(),this[_0x4686('0x16')]=new Map(),this[_0x4686('0x5')]=new Map(),this[_0x4686('0x18')]=new _0x456bcb(),this['_focusTracker']['on']('change:isFocused',(_0x157ee4,_0x5e5e5b,_0x251b19)=>{_0x251b19||this['fire'](_0x4686('0x1a'));});for(const _0x51781e of _0x22f2aa)this[_0x4686('0x15')](_0x51781e);}get[_0x4686('0x17')](){return this[_0x4686('0x18')][_0x4686('0x17')];}[_0x4686('0x15')](_0x53ef83){if(this[_0x4686('0xe')](_0x53ef83))throw new _0x42a551(_0x4686('0x1b'),null);this[_0x4686('0x16')][_0x4686('0x7')](_0x53ef83[_0x4686('0x21')],_0x53ef83),this[_0x4686('0x5')][_0x4686('0x7')](_0x53ef83[_0x4686('0x8')],_0x53ef83);for(const _0x4c3d61 of _0x53ef83['focusableElements'])this[_0x4686('0x18')][_0x4686('0x15')](_0x4c3d61);this['listenTo'](_0x53ef83['focusableElements'],_0x4686('0x15'),(_0x324668,_0xfa57b0)=>{this[_0x4686('0x18')][_0x4686('0x15')](_0xfa57b0);}),this[_0x4686('0x1c')](_0x53ef83[_0x4686('0xb')],_0x4686('0x14'),(_0x2170b8,_0x352d32)=>{this[_0x4686('0x18')][_0x4686('0x14')](_0x352d32);}),this[_0x4686('0x1c')](_0x53ef83['view']['focusTracker'],_0x4686('0x20'),(_0x34ddbe,_0x5d6548,_0x266f17)=>{_0x266f17&&this[_0x4686('0x9')](_0x4686('0x10'),_0x53ef83);}),_0x53ef83[_0x4686('0x6')]();const _0x451208=this[_0x4686('0xd')](_0x53ef83[_0x4686('0x8')]['targetRect']);return super[_0x4686('0x15')](_0x53ef83,_0x451208);}[_0x4686('0x14')](_0x2a257a){if(!this['has'](_0x2a257a))throw new _0x42a551(_0x4686('0xf'),null);this[_0x4686('0x13')](_0x2a257a[_0x4686('0x8')]['focusTracker']),this[_0x4686('0x13')](_0x2a257a[_0x4686('0xb')]);for(const _0x9c4757 of _0x2a257a[_0x4686('0xb')])this['_focusTracker'][_0x4686('0x14')](_0x9c4757);return this[_0x4686('0x5')][_0x4686('0xc')](_0x2a257a[_0x4686('0x8')]),this[_0x4686('0x16')][_0x4686('0xc')](_0x2a257a[_0x4686('0x21')]),super[_0x4686('0x14')](_0x2a257a);}['getByInnerView'](_0x2ea378){return this[_0x4686('0x16')][_0x4686('0xa')](_0x2ea378);}[_0x4686('0x11')](_0x343d07){return this[_0x4686('0x5')][_0x4686('0xa')](_0x343d07);}[_0x4686('0x1f')](){super[_0x4686('0x1d')](),this[_0x4686('0x13')](),this['_innerViewToAnnotation']['clear'](),this[_0x4686('0x5')][_0x4686('0x1d')](),this[_0x4686('0x18')][_0x4686('0x1f')]();}[_0x4686('0x1e')](){for(const _0x26cc2f of this)_0x26cc2f[_0x4686('0x6')]();this['_sort']();}[_0x4686('0x0')](){const _0x2c6099=Array['from'](this)[_0x4686('0x3')]((_0x1d30ee,_0x540a4b)=>v(_0x1d30ee['view'][_0x4686('0x4')],_0x540a4b['view'][_0x4686('0x4')]));for(let _0x43926d=_0x2c6099[_0x4686('0x2')]-0x1;_0x43926d>0x0;_0x43926d--){const _0xe43c8d=_0x2c6099[_0x43926d];_0x43926d!==this[_0x4686('0x12')](_0xe43c8d)&&(this['remove'](_0xe43c8d),this[_0x4686('0x15')](_0xe43c8d));}}[_0x4686('0xd')](_0x3a6f90){let _0x3388fd=0x0;if(!_0x3a6f90)return this[_0x4686('0x2')];for(const _0x1bceeb of this){const _0x1f369f=_0x1bceeb[_0x4686('0x8')][_0x4686('0x4')];if(_0x1f369f){if(v(_0x3a6f90,_0x1f369f)<0x0)return _0x3388fd;_0x3388fd++;}}return _0x3388fd;}}export function bindAnnotationCollections({source:_0x38d9b3,target:_0x5ac66c,filter:_0x71e8dc}){for(const _0x1b4f57 of _0x38d9b3)_0x71e8dc(_0x1b4f57)&&_0x5ac66c[_0x4686('0x15')](_0x1b4f57);_0x5ac66c['listenTo'](_0x38d9b3,'add',(_0x149eee,_0x2ed755)=>{_0x71e8dc(_0x2ed755)&&_0x5ac66c[_0x4686('0x15')](_0x2ed755);}),_0x5ac66c[_0x4686('0x1c')](_0x38d9b3,'remove',(_0x701d09,_0x291811)=>{_0x5ac66c[_0x4686('0xe')](_0x291811)&&_0x5ac66c['remove'](_0x291811);});}function v(_0x35eb0d,_0x419352){if(null===_0x35eb0d&&null===_0x419352)return 0x0;if(null===_0x35eb0d)return-0x1;if(null===_0x419352)return 0x1;const _0x5dc8fa=_0x35eb0d[_0x4686('0x1')]-_0x419352[_0x4686('0x1')];return 0x0==_0x5dc8fa?_0x35eb0d[_0x4686('0x19')]-_0x419352[_0x4686('0x19')]:_0x5dc8fa;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15a7=['delete','add','refreshPositioning','_visibleAnnotations','createAnnotation','listenTo','Annotations','activate','fire','change:isVisible','activeAnnotations','_activateAnnotation','isVisible','getByInnerView','_addActiveAnnotation','_removeActiveAnnotation','stopListening','has','refreshVisibility','focusTracker','set','_bindAnnotationsToVisibleAnnotations','destroy','view','element','collection','deactivateAll','_deactivateAllAnnotations','remove'];(function(_0x36dfb0,_0x15a7fc){const _0x414dd0=function(_0x1e4b5b){while(--_0x1e4b5b){_0x36dfb0['push'](_0x36dfb0['shift']());}};_0x414dd0(++_0x15a7fc);}(_0x15a7,0x14a));const _0x414d=function(_0x36dfb0,_0x15a7fc){_0x36dfb0=_0x36dfb0-0x0;let _0x414dd0=_0x15a7[_0x36dfb0];return _0x414dd0;};import{ContextPlugin as _0xd10197}from'ckeditor5/src/core.js';import _0x15d288 from'./annotation.js';import _0x1236a9 from'./annotationcollection.js';import _0x50a3f7 from'./view/annotationview.js';export default class b extends _0xd10197{static get['pluginName'](){return _0x414d('0x18');}constructor(_0x37cb92){super(_0x37cb92),this[_0x414d('0xe')]=new _0x1236a9(),this[_0x414d('0x15')]=new _0x1236a9(),this[_0x414d('0x9')](_0x414d('0x1c'),new Set()),this[_0x414d('0xa')]();}[_0x414d('0x13')](_0x3249e0){this['collection'][_0x414d('0x13')](_0x3249e0);}[_0x414d('0x11')](_0x17d190){this['collection'][_0x414d('0x11')](_0x17d190),_0x17d190[_0x414d('0xb')]();}[_0x414d('0x7')](){for(const _0x23b502 of this['collection'])_0x23b502[_0x414d('0x7')]();}['refreshPositioning'](){this['_visibleAnnotations'][_0x414d('0x14')]();}['getByInnerView'](_0x22ea10){return this[_0x414d('0xe')][_0x414d('0x2')](_0x22ea10);}[_0x414d('0xf')](){this[_0x414d('0x1a')](_0x414d('0x10'));}[_0x414d('0xb')](){for(const _0x479e69 of this['collection'])_0x479e69[_0x414d('0xb')]();this[_0x414d('0x15')][_0x414d('0xb')](),this[_0x414d('0xe')][_0x414d('0xb')](),super[_0x414d('0xb')]();}[_0x414d('0x19')](_0x46f013){this[_0x414d('0x1a')](_0x414d('0x0'),_0x46f013);}[_0x414d('0x16')](_0x1c2e1c){return new _0x15d288(_0x1c2e1c);}['createAnnotationView'](_0x289020,_0x5def18){return new _0x50a3f7(_0x289020,_0x5def18);}[_0x414d('0x3')](_0x2bcb70){const _0x237d31=new Set(this[_0x414d('0x1c')]);_0x237d31['add'](_0x2bcb70),this['activeAnnotations']=_0x237d31;}[_0x414d('0x4')](_0x87632){const _0x21ebb1=new Set(this[_0x414d('0x1c')]);_0x21ebb1[_0x414d('0x12')](_0x87632),this[_0x414d('0x1c')]=_0x21ebb1;}[_0x414d('0xa')](){const _0x3916f7=this['collection'],_0x2546f8=this[_0x414d('0x15')];function _0x3a4fc7(_0xa7a310){const _0x407d3d=_0xa7a310['source'];_0x407d3d[_0x414d('0x1')]&&!_0x2546f8[_0x414d('0x6')](_0x407d3d)?_0x2546f8[_0x414d('0x13')](_0x407d3d):!_0x407d3d[_0x414d('0x1')]&&_0x2546f8['has'](_0x407d3d)&&_0x2546f8[_0x414d('0x11')](_0x407d3d),_0x407d3d[_0x414d('0xc')][_0x414d('0x8')][_0x414d('0x11')](_0x407d3d[_0x414d('0xc')][_0x414d('0xd')]),_0x407d3d[_0x414d('0xc')]['focusTracker']['add'](_0x407d3d['view'][_0x414d('0xd')]);}this[_0x414d('0x17')](_0x3916f7,_0x414d('0x13'),(_0x1ef7ea,_0x6438c3)=>{_0x6438c3[_0x414d('0x1')]&&_0x2546f8[_0x414d('0x13')](_0x6438c3),this[_0x414d('0x17')](_0x6438c3,_0x414d('0x1b'),_0x3a4fc7);}),this[_0x414d('0x17')](_0x3916f7,_0x414d('0x11'),(_0x227bc5,_0x3ba3da)=>{_0x2546f8[_0x414d('0x6')](_0x3ba3da)&&_0x2546f8[_0x414d('0x11')](_0x3ba3da),this[_0x414d('0x5')](_0x3ba3da,'change:isVisible',_0x3a4fc7);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b22=['stopListening','context','set','setActiveAnnotation','listenTo','length','delete','deactivateAll','has','_removeActiveAnnotation','_visibleAnnotations','destroy','find','function','requires','annotationsuis-missing-ui','init','register','type','_uisData','filter','activeUIs','collection','detach','switchTo','_assertAnnotationDoesNotBelongToMultipleUIs','_setSelectedAnnotations','get','attach','plugins','activeAnnotations','size','push','pluginName','_uis','deactivate','isActive','_deactivateAllAnnotations','_addActiveAnnotation','add','from','activate','annotationsuis-annotation-mismatch'];(function(_0x2ebc2d,_0x1b22ca){const _0x3fd076=function(_0x539026){while(--_0x539026){_0x2ebc2d['push'](_0x2ebc2d['shift']());}};_0x3fd076(++_0x1b22ca);}(_0x1b22,0x128));const _0x3fd0=function(_0x2ebc2d,_0x1b22ca){_0x2ebc2d=_0x2ebc2d-0x0;let _0x3fd076=_0x1b22[_0x2ebc2d];return _0x3fd076;};import{ContextPlugin as _0x21211c}from'ckeditor5/src/core.js';import{CKEditorError as _0x3ea7d2}from'ckeditor5/src/utils.js';import _0x1a3052,{bindAnnotationCollections as _0x1c11bf}from'./annotationcollection.js';import _0x3f7c2f from'./annotations.js';export default class j extends _0x21211c{static get[_0x3fd0('0x13')](){return[_0x3f7c2f];}static get[_0x3fd0('0x26')](){return'AnnotationsUIs';}constructor(_0x5af88f){super(_0x5af88f),this[_0x3fd0('0x1a')]=new Set(),this[_0x3fd0('0x27')]=new Map(),this['_uisData']=new Map();}[_0x3fd0('0x15')](){const _0x3663c9=this['context']['plugins']['get'](_0x3f7c2f);this[_0x3fd0('0x9')](_0x3663c9,'_activateAnnotation',(_0x3b1ee7,_0x10aa7d)=>{for(const _0x4bab35 of this[_0x3fd0('0x1a')]){const _0x1cd0e4=this[_0x3fd0('0x27')][_0x3fd0('0x20')](_0x4bab35);(0x0,this[_0x3fd0('0x18')]['get'](_0x4bab35)[_0x3fd0('0x19')])(_0x10aa7d)&&_0x1cd0e4[_0x3fd0('0x8')](_0x10aa7d);}}),this[_0x3fd0('0x9')](_0x3663c9,_0x3fd0('0x2a'),()=>{for(const _0x4177ca of this[_0x3fd0('0x1a')]){this[_0x3fd0('0x27')][_0x3fd0('0x20')](_0x4177ca)[_0x3fd0('0x8')](null);}}),this[_0x3fd0('0x9')](_0x3663c9[_0x3fd0('0xf')],_0x3fd0('0x1'),(_0x3b3320,_0x4875a4)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x4875a4);});}['hasActive'](){return this[_0x3fd0('0x1a')][_0x3fd0('0x24')]>0x0;}[_0x3fd0('0x29')](_0x559b4f){return this[_0x3fd0('0x1a')][_0x3fd0('0xd')](_0x559b4f);}['activate'](_0x374dae,_0x5c7868=()=>!0x0){const _0x179633=this[_0x3fd0('0x6')][_0x3fd0('0x22')][_0x3fd0('0x20')](_0x3f7c2f);if(!this[_0x3fd0('0x27')][_0x3fd0('0xd')](_0x374dae))throw new _0x3ea7d2('annotationsuis-missing-ui',this,{'uiName':_0x374dae});this['isActive'](_0x374dae)&&this['deactivate'](_0x374dae),this['activeUIs'][_0x3fd0('0x1')](_0x374dae);const _0x3b0a02=new _0x1a3052(),_0x5221e0=_0x179633['_visibleAnnotations'];_0x1c11bf({'source':_0x5221e0,'target':_0x3b0a02,'filter':_0x5c7868}),this[_0x3fd0('0x18')][_0x3fd0('0x7')](_0x374dae,{'collection':_0x3b0a02,'filter':_0x5c7868});const _0x4f006c=this[_0x3fd0('0x27')][_0x3fd0('0x20')](_0x374dae);_0x4f006c[_0x3fd0('0x21')](_0x3b0a02),this[_0x3fd0('0x9')](_0x4f006c,'change:activeAnnotation',(_0x282a8f,_0x5cca04,_0x213788,_0x16f9b3)=>{_0x16f9b3&&_0x179633[_0x3fd0('0xe')](_0x16f9b3),_0x213788&&_0x179633[_0x3fd0('0x0')](_0x213788);});}[_0x3fd0('0x28')](_0x2c47ee){if(this['activeUIs'][_0x3fd0('0xb')](_0x2c47ee),!this[_0x3fd0('0x27')][_0x3fd0('0xd')](_0x2c47ee))throw new _0x3ea7d2(_0x3fd0('0x14'),this,{'uiName':_0x2c47ee});const _0x28340c=this['_uis'][_0x3fd0('0x20')](_0x2c47ee);_0x28340c['detach'](),this[_0x3fd0('0x5')](_0x28340c),this['_uisData'][_0x3fd0('0x20')](_0x2c47ee)[_0x3fd0('0x1b')][_0x3fd0('0x10')](),this[_0x3fd0('0x18')][_0x3fd0('0xb')](_0x2c47ee);}[_0x3fd0('0x1d')](_0xc6840c){if(!this[_0x3fd0('0x27')][_0x3fd0('0xd')](_0xc6840c))throw new _0x3ea7d2(_0x3fd0('0x14'),this,{'uiName':_0xc6840c});const _0x3866b0=this[_0x3fd0('0x6')]['plugins'][_0x3fd0('0x20')](_0x3f7c2f),_0xf3a352=Array[_0x3fd0('0x2')](_0x3866b0[_0x3fd0('0x23')])[0x0]||null;this[_0x3fd0('0xc')](),this[_0x3fd0('0x3')](_0xc6840c);const _0x247e2c=this[_0x3fd0('0x27')]['get'](_0xc6840c);_0x247e2c[_0x3fd0('0x8')](_0xf3a352),_0x247e2c[_0x3fd0('0x1f')]&&_0xf3a352&&_0x247e2c[_0x3fd0('0x1f')]([_0xf3a352]);}[_0x3fd0('0xc')](){for(const _0x39ece4 of this[_0x3fd0('0x1a')])this[_0x3fd0('0x28')](_0x39ece4);}[_0x3fd0('0x16')](_0x20cb7a,_0x2a5bde){if(this[_0x3fd0('0x27')]['has'](_0x20cb7a))throw new _0x3ea7d2('annotationsuis-register-already-registered');if(_0x3fd0('0x12')!=typeof _0x2a5bde[_0x3fd0('0x21')]||_0x3fd0('0x12')!=typeof _0x2a5bde[_0x3fd0('0x1c')]||_0x3fd0('0x12')!=typeof _0x2a5bde[_0x3fd0('0x8')])throw new _0x3ea7d2('annotationsuis-register-invalid-interface',null);this[_0x3fd0('0x27')][_0x3fd0('0x7')](_0x20cb7a,_0x2a5bde);}['refilterAnnotations'](){const _0x26df2f=this[_0x3fd0('0x6')][_0x3fd0('0x22')][_0x3fd0('0x20')](_0x3f7c2f)['collection'],_0x5164ca=new Map(),_0x343376=Array[_0x3fd0('0x2')](this[_0x3fd0('0x1a')]);for(const _0x524eb7 of this[_0x3fd0('0x1a')]){const _0x34277f=this[_0x3fd0('0x18')][_0x3fd0('0x20')](_0x524eb7)['collection'];for(const _0x111c23 of _0x34277f)_0x5164ca[_0x3fd0('0x7')](_0x111c23,_0x524eb7);}for(const _0x1a5f69 of _0x26df2f){const _0x18b7e8=_0x5164ca[_0x3fd0('0x20')](_0x1a5f69);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1a5f69);const _0x107b49=_0x343376[_0x3fd0('0x11')](_0x3d37e6=>this[_0x3fd0('0x18')][_0x3fd0('0x20')](_0x3d37e6)[_0x3fd0('0x19')](_0x1a5f69));_0x18b7e8!==_0x107b49&&(_0x18b7e8&&this[_0x3fd0('0x18')][_0x3fd0('0x20')](_0x18b7e8)[_0x3fd0('0x1b')]['remove'](_0x1a5f69),_0x107b49&&this[_0x3fd0('0x18')]['get'](_0x107b49)['collection'][_0x3fd0('0x1')](_0x1a5f69));}}['destroy'](){this[_0x3fd0('0xc')](),super['destroy']();}[_0x3fd0('0x1e')](_0x3b479a){const _0x1213ed=[];for(const _0x59591a of this[_0x3fd0('0x1a')]){(0x0,this['_uisData']['get'](_0x59591a)[_0x3fd0('0x19')])(_0x3b479a)&&_0x1213ed[_0x3fd0('0x25')](_0x59591a);}if(_0x1213ed[_0x3fd0('0xa')]>0x1)throw new _0x3ea7d2(_0x3fd0('0x4'),null,{'matchedUIs':_0x1213ed,'annotationType':_0x3b479a[_0x3fd0('0x17')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c6c=['push','has','collection','editor','getRanges','delete','update','view','isEqual','annotation','editing','sort','_editorAnnotations','model','remove','range','add','function','selection','isCollapsed','hasDomSelection','_dataCollectors','fire','set','requires','focusTracker','blur','pluginName','refreshSelectedViews','innerView','plugins','document','EditorAnnotations','from','_editorAnnotationsData','editorannotations-invalid-source-callback','listenTo','uiUpdate','addSourceCollector','getByInnerView','element','containsRange','isReadOnly','change:range','change:isFocused','refresh'];(function(_0x5d33f4,_0x3c6c11){const _0x4944b6=function(_0x3ee9ca){while(--_0x3ee9ca){_0x5d33f4['push'](_0x5d33f4['shift']());}};_0x4944b6(++_0x3c6c11);}(_0x3c6c,0x1eb));const _0x4944=function(_0x5d33f4,_0x3c6c11){_0x5d33f4=_0x5d33f4-0x0;let _0x4944b6=_0x3c6c[_0x5d33f4];return _0x4944b6;};import{Plugin as _0x2cc269}from'ckeditor5/src/core.js';import{CKEditorError as _0x3e09e1}from'ckeditor5/src/utils.js';import{debounce as _0x13dbe5}from'lodash-es';import _0x2763ea from'./annotations.js';export default class k extends _0x2cc269{static get[_0x4944('0x27')](){return[_0x2763ea];}static get[_0x4944('0x2a')](){return _0x4944('0x1');}constructor(_0x3b411d){super(_0x3b411d),this['_dataCollectors']=new Set(),this[_0x4944('0x1b')]=new Set();}['init'](){const _0x4d74c3=this[_0x4944('0x12')],_0xf16369=_0x4d74c3[_0x4944('0x1c')]['document'][_0x4944('0x21')],_0xb7209f=_0x13dbe5(()=>this[_0x4944('0x2b')](),0xa);_0xf16369['on'](_0x4944('0xc'),(_0x45558e,_0x5136e4)=>{_0x5136e4['directChange']&&(_0xb7209f['cancel'](),this[_0x4944('0x2b')]());}),this[_0x4944('0x5')](_0x4d74c3[_0x4944('0x19')][_0x4944('0x16')][_0x4944('0x0')],_0x4944('0xd'),(_0x4a9177,_0x5839a7,_0x3f0a55)=>{_0x3f0a55&&_0xb7209f();}),this[_0x4944('0x5')](_0x4d74c3['ui'][_0x4944('0x28')],_0x4944('0xd'),(_0x46a959,_0x3bdd60,_0x847ad)=>{_0x847ad||_0x4d74c3[_0x4944('0xb')]||this[_0x4944('0x25')](_0x4944('0x29'),{'isAnnotationTracked':_0x397c81=>this[_0x4944('0x3')][_0x4944('0x10')](_0x397c81[_0x4944('0x2c')])});}),this['listenTo'](this['editor']['ui'],_0x4944('0x15'),()=>this['fire'](_0x4944('0x6')));}['registerAnnotation'](_0x584297){if(this[_0x4944('0x1b')][_0x4944('0x10')](_0x584297[_0x4944('0x16')]))return;this['_editorAnnotations'][_0x4944('0x1f')](_0x584297[_0x4944('0x16')]),this['editor']['ui'][_0x4944('0x28')]['add'](_0x584297['view'][_0x4944('0x9')]);const _0xf98420=this[_0x4944('0x12')][_0x4944('0x2d')]['get'](_0x2763ea);this['listenTo'](_0xf98420[_0x4944('0x11')],_0x4944('0x1d'),(_0x20d0ed,_0xa918dc)=>{this['editor']['ui'][_0x4944('0x28')][_0x4944('0x1d')](_0xa918dc[_0x4944('0x16')]['element']),this[_0x4944('0x1b')][_0x4944('0x14')](_0xa918dc['view']);});}[_0x4944('0x23')](){return this[_0x4944('0x12')][_0x4944('0x19')][_0x4944('0x16')]['hasDomSelection'];}[_0x4944('0x7')](_0x11c0e4){if(_0x4944('0x20')!=typeof _0x11c0e4)throw new _0x3e09e1(_0x4944('0x4'));this['_dataCollectors'][_0x4944('0x1f')](_0x11c0e4);}[_0x4944('0x2b')](){this[_0x4944('0x25')](_0x4944('0xe'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x46c563,annotations:_0x4d2a02}){const _0x5ed3d4=[],_0x3efd33=this[_0x4944('0x12')][_0x4944('0x1c')][_0x4944('0x0')][_0x4944('0x21')],_0x23f8d0=Array[_0x4944('0x2')](_0x3efd33[_0x4944('0x13')]());for(const [_0x3756e5,_0x5823f5]of this[_0x4944('0x3')]){const _0xc45848=_0x2d27a0(_0x5823f5),_0x12cf32=_0x4d2a02[_0x4944('0x8')](_0x3756e5);_0xc45848&&_0x12cf32&&_0x5ed3d4[_0x4944('0xf')]({'annotation':_0x12cf32,'range':_0xc45848});}function _0x2d27a0(_0x437974){for(const _0x3ba663 of _0x437974)for(const _0x84f48c of _0x23f8d0)if(_0x3ba663[_0x4944('0xa')](_0x84f48c,!_0x3efd33[_0x4944('0x22')]))return _0x3ba663;return null;}return _0x5ed3d4[_0x4944('0x1a')]((_0x2cdaeb,_0x5b64be)=>{const _0x190cb8=_0x2cdaeb[_0x4944('0x1e')],_0x39cf7d=_0x5b64be[_0x4944('0x1e')];if(!_0x190cb8[_0x4944('0x17')](_0x39cf7d)){if(_0x190cb8[_0x4944('0xa')](_0x39cf7d,!0x0))return 0x1;if(_0x39cf7d[_0x4944('0xa')](_0x190cb8,!0x0))return-0x1;}return _0x2cdaeb[_0x4944('0x18')]==_0x46c563?-0x1:_0x5b64be[_0x4944('0x18')]==_0x46c563?0x1:0x0;})['map'](_0x4c4bfa=>_0x4c4bfa[_0x4944('0x18')]);}get[_0x4944('0x3')](){const _0x5ded04=new Map();for(const _0x3a2037 of Array[_0x4944('0x2')](this[_0x4944('0x24')]))for(const [_0x359ca4,_0x5eecf6]of _0x3a2037())_0x5ded04[_0x4944('0x26')](_0x359ca4,_0x5eecf6);return _0x5ded04;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x568a=['context','detach','attach','selection','push','getBoundingClientRect','hasView','switchTo','fromRect','addObserver','_getBalloonTargetForAnnotation','length','update','destroy','updatePosition','inlineannotations-detach-not-attached','plugins','_addAnnotationToBalloon','getOrderedSelectedAnnotations','_removeAnnotationFromBalloon','_closeAnnotation','register','focus','change:isFocused','hasActive','top','width','remove','collapse','get','showStack','has','add','InlineAnnotations','_manuallyClosed','activeAnnotation','_selectedAnnotations','isFocused','refresh','left','afterInit','_forceRefresh','target','view','includes','getByView','getClientRects','change:height','pluginName','focusTracker','requires','_setSelectedAnnotations','targetRect','clear','editing','find','listenTo','inlineannotations-attach-already-attached','stopListening','isAttached','blur','init','inline','isActive','delete','bottom','domConverter','editor','right','setActiveAnnotation','visibleView','getFirstRange','set','document','annotations','Esc','_balloon','_addedAnnotations','from'];(function(_0x18eeb7,_0x568a1d){const _0x262b07=function(_0x522d0f){while(--_0x522d0f){_0x18eeb7['push'](_0x18eeb7['shift']());}};_0x262b07(++_0x568a1d);}(_0x568a,0xcc));const _0x262b=function(_0x18eeb7,_0x568a1d){_0x18eeb7=_0x18eeb7-0x0;let _0x262b07=_0x568a[_0x18eeb7];return _0x262b07;};import{Plugin as _0x59bc55}from'ckeditor5/src/core.js';import _0x5039bb from'./annotationsuis.js';import _0x2719a5 from'./editorannotations.js';import{ContextualBalloon as _0x1fbdf0}from'ckeditor5/src/ui.js';import{MouseObserver as _0x23bdd8}from'ckeditor5/src/engine.js';import{CKEditorError as _0x3b85d3,Rect as _0x49f37b}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x59bc55{static get[_0x262b('0x4')](){return[_0x2719a5,_0x1fbdf0,_0x5039bb];}static get[_0x262b('0x2')](){return _0x262b('0x42');}constructor(_0x2c7df8){super(_0x2c7df8),_0x2c7df8['editing'][_0x262b('0x4c')][_0x262b('0x2a')](_0x23bdd8),this[_0x262b('0xd')]=!0x1,this[_0x262b('0x1a')](_0x262b('0x44'),null),this[_0x262b('0x1c')]=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x2c7df8[_0x262b('0x31')]['get'](_0x1fbdf0),this[_0x262b('0x1f')]=new Set(),this[_0x262b('0x45')]=[],this['_forceRefresh']=!0x1;}[_0x262b('0xf')](){const _0x181c0a=this['editor'][_0x262b('0x31')][_0x262b('0x3e')](_0x5039bb);_0x181c0a['context']===this[_0x262b('0x15')]&&(_0x181c0a[_0x262b('0x36')](_0x262b('0x10'),this),this[_0x262b('0x15')]['keystrokes']['set'](_0x262b('0x1d'),(_0x2e8e83,_0x59e1ad)=>{const _0x4c08a9=this[_0x262b('0x1e')];if(this[_0x262b('0xd')]&&_0x4c08a9[_0x262b('0x18')]){const _0x2d2a48=this[_0x262b('0x1c')][_0x262b('0x4e')](_0x4c08a9[_0x262b('0x18')]);_0x2d2a48&&this[_0x262b('0x35')](_0x2d2a48),_0x59e1ad();}}));}[_0x262b('0x49')](){const _0x3e47cf=this['editor'][_0x262b('0x31')][_0x262b('0x3e')](_0x5039bb);_0x3e47cf[_0x262b('0x21')]===this[_0x262b('0x15')]&&(_0x3e47cf[_0x262b('0x39')]()||_0x3e47cf[_0x262b('0x28')]('inline'));}['setActiveAnnotation'](_0x14d463){_0x14d463!==this[_0x262b('0x44')]&&(this[_0x262b('0x44')]&&(this[_0x262b('0x44')][_0x262b('0x11')]=!0x1),_0x14d463&&this[_0x262b('0x15')]['ui'][_0x262b('0x3')]['isFocused']&&(this['annotations'][_0x262b('0x40')](_0x14d463)&&this[_0x262b('0x32')](_0x14d463,!0x0),_0x14d463[_0x262b('0x11')]=!0x0),_0x14d463||this[_0x262b('0x5')]([]),this[_0x262b('0x44')]=_0x14d463);}[_0x262b('0x23')](_0x475a42){this[_0x262b('0x1c')]=_0x475a42;const _0x244b07=this[_0x262b('0x15')]['plugins'][_0x262b('0x3e')](_0x5039bb),_0x20a5be=this[_0x262b('0x1e')];if(this[_0x262b('0xd')])throw new _0x3b85d3(_0x262b('0xb'),this);if(_0x244b07['context']!==this[_0x262b('0x15')])throw new _0x3b85d3('inlineannotations-not-allowed-with-context',this);const _0x3fe3f9=this[_0x262b('0x15')][_0x262b('0x31')][_0x262b('0x3e')](_0x2719a5);this[_0x262b('0xa')](_0x3fe3f9,_0x262b('0x47'),()=>{const _0x4dfc3d=_0x3fe3f9[_0x262b('0x33')]({'annotations':this[_0x262b('0x1c')],'activeAnnotation':this['activeAnnotation']});var _0xa774ae,_0x174f9c;!this[_0x262b('0x4a')]&&(_0xa774ae=_0x4dfc3d,_0x174f9c=this['_selectedAnnotations'],_0xa774ae[_0x262b('0x2c')]===_0x174f9c[_0x262b('0x2c')]&&_0xa774ae['every'](_0x1b74ff=>_0x174f9c[_0x262b('0x4d')](_0x1b74ff)))||(this['_forceRefresh']=!0x1,this[_0x262b('0x5')](_0x4dfc3d),this[_0x262b('0x17')](_0x4dfc3d[0x0]||null));}),this['listenTo'](_0x3fe3f9,_0x262b('0xe'),(_0x9d920f,{isAnnotationTracked:_0x293b3f})=>{this[_0x262b('0x44')]&&_0x293b3f(this[_0x262b('0x44')])&&(this[_0x262b('0x5')]([]),this['setActiveAnnotation'](null));}),this[_0x262b('0xa')](this[_0x262b('0x15')]['ui'][_0x262b('0x3')],_0x262b('0x38'),(_0x34fd5c,_0x589371,_0x1b398d)=>{_0x1b398d||this['setActiveAnnotation'](null);}),this[_0x262b('0xa')](_0x475a42,_0x262b('0x3c'),(_0xb086fd,_0x3f09aa)=>{this[_0x262b('0x34')](_0x3f09aa),_0x3f09aa===this[_0x262b('0x44')]&&this[_0x262b('0x17')](null);}),this[_0x262b('0xa')](_0x20a5be,'change:visibleView',(_0x40084a,_0x2add4c,_0x174426,_0xae7405)=>{_0xae7405&&this[_0x262b('0xc')](_0xae7405);const _0x39580a=_0x475a42[_0x262b('0x4e')](_0x174426);_0x174426&&_0x39580a&&(this[_0x262b('0xa')](_0x174426,_0x262b('0x1'),()=>{_0x20a5be[_0x262b('0x2f')]();}),this[_0x262b('0xa')](_0x174426,'Esc',()=>{this[_0x262b('0x35')](_0x39580a),this[_0x262b('0x15')][_0x262b('0x8')][_0x262b('0x4c')][_0x262b('0x37')]();}),this[_0x262b('0x44')]!==_0x39580a&&this[_0x262b('0x17')](_0x39580a));}),this[_0x262b('0xa')](this[_0x262b('0x15')]['ui'],_0x262b('0x2d'),()=>{_0x20a5be[_0x262b('0x18')]&&(_0x475a42['getByView'](_0x20a5be['visibleView'])&&_0x20a5be['updatePosition']());}),this['listenTo'](this[_0x262b('0x15')][_0x262b('0x8')]['view']['document'],'mousedown',()=>{this[_0x262b('0x4a')]=!0x0,this['_manuallyClosed'][_0x262b('0x7')]();}),this[_0x262b('0x15')][_0x262b('0x8')][_0x262b('0x4c')][_0x262b('0x1b')][_0x262b('0x24')]['editableElement']&&this[_0x262b('0x15')][_0x262b('0x8')][_0x262b('0x4c')]['focus'](),this[_0x262b('0xd')]=!0x0;}[_0x262b('0x22')](){if(!this[_0x262b('0xd')])throw new _0x3b85d3(_0x262b('0x30'),this);this['setActiveAnnotation'](null);for(const _0x388d89 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x388d89);this[_0x262b('0xc')](),this[_0x262b('0xd')]=!0x1,this[_0x262b('0x1c')]=null;}[_0x262b('0x2e')](){this[_0x262b('0xd')]&&this[_0x262b('0x22')]();}[_0x262b('0x5')](_0x36002f){for(const _0x6d3cdf of this['_selectedAnnotations'])_0x36002f[_0x262b('0x4d')](_0x6d3cdf)||this[_0x262b('0x43')][_0x262b('0x12')](_0x6d3cdf);for(const _0x5a0138 of this[_0x262b('0x1c')])_0x36002f[_0x262b('0x4d')](_0x5a0138)||this[_0x262b('0x34')](_0x5a0138);if(this[_0x262b('0x15')]['ui'][_0x262b('0x3')][_0x262b('0x46')])for(const _0x4aefb0 of _0x36002f)this['_addAnnotationToBalloon'](_0x4aefb0);this[_0x262b('0x45')]=_0x36002f;}[_0x262b('0x32')](_0x3e5804,_0x5d6eba=!0x1){this[_0x262b('0x43')]['has'](_0x3e5804)||(this['_addedAnnotations'][_0x262b('0x40')](_0x3e5804)||this['_balloon'][_0x262b('0x27')](_0x3e5804[_0x262b('0x4c')])||(this[_0x262b('0x1f')][_0x262b('0x41')](_0x3e5804),this[_0x262b('0x1e')][_0x262b('0x41')]({'stackId':_0x3e5804['view']['id'],'view':_0x3e5804[_0x262b('0x4c')],'position':{'target':()=>this[_0x262b('0x2b')](_0x3e5804)}})),_0x5d6eba&&this[_0x262b('0x1e')][_0x262b('0x3f')](_0x3e5804['view']['id']));}['_getBalloonTargetForAnnotation'](_0x53bdb6){const _0x3b7428=_0x53bdb6[_0x262b('0x4b')],_0x20f175=this['editor'][_0x262b('0x8')][_0x262b('0x4c')],_0x4c9a75=_0x20f175[_0x262b('0x1b')]['selection'][_0x262b('0x19')](),_0x1a2fa2=_0x20f175[_0x262b('0x14')]['viewRangeToDom'](_0x4c9a75);if(_0x1a2fa2[_0x262b('0x3d')](!0x0),_0x3b7428){if(_0x3b7428 instanceof _0x49f37b)return _0x3b7428;let _0xef8570=[];for(const _0x516d34 of _0x3b7428)_0xef8570[_0x262b('0x25')](...(_0x182294=_0x516d34[_0x262b('0x0')](),Array[_0x262b('0x20')](_0x182294)['map'](DOMRect[_0x262b('0x29')])));_0xef8570=function(_0x38e80d){const _0x15ce73=[];let _0x1b5fe2=_0x38e80d[0x0];for(let _0x2eb8b9=0x1;_0x2eb8b9<_0x38e80d['length'];_0x2eb8b9++)F(_0x1b5fe2,_0x38e80d[_0x2eb8b9])?_0x1b5fe2[_0x262b('0x3b')]+=_0x38e80d[_0x2eb8b9][_0x262b('0x3b')]:(_0x15ce73[_0x262b('0x25')](_0x1b5fe2),_0x1b5fe2=_0x38e80d[_0x2eb8b9]);return _0x15ce73[_0x262b('0x25')](_0x1b5fe2),_0x15ce73;}(_0xef8570);const _0x17c3ca=_0x1a2fa2[_0x262b('0x26')]();return _0xef8570[_0x262b('0x9')](_0x5587d4=>_0x5587d4[_0x262b('0x3a')]<=_0x17c3ca['top']&&_0x5587d4[_0x262b('0x13')]>=_0x17c3ca['bottom']&&_0x5587d4[_0x262b('0x48')]<=_0x17c3ca[_0x262b('0x48')]&&_0x5587d4['right']>=_0x17c3ca[_0x262b('0x16')])||_0xef8570[0x0];}var _0x182294;return _0x53bdb6[_0x262b('0x6')]||_0x1a2fa2;}[_0x262b('0x34')](_0x292f17){this[_0x262b('0x1f')]['has'](_0x292f17)&&this[_0x262b('0x1e')][_0x262b('0x27')](_0x292f17[_0x262b('0x4c')])&&(this['_addedAnnotations'][_0x262b('0x12')](_0x292f17),this[_0x262b('0x1e')][_0x262b('0x3c')](_0x292f17[_0x262b('0x4c')]));}[_0x262b('0x35')](_0x271495){this[_0x262b('0x43')][_0x262b('0x41')](_0x271495),this['_removeAnnotationFromBalloon'](_0x271495);}}function F(_0x423b36,_0x21c1cb){return _0x423b36['top']===_0x21c1cb[_0x262b('0x3a')]&&_0x423b36[_0x262b('0x13')]===_0x21c1cb[_0x262b('0x13')]&&_0x423b36['right']===_0x21c1cb[_0x262b('0x48')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5c08=['_showBalloon','_manuallyClosedAnnotationViews','context','getSidebarItemView','remove','getOrderedSelectedAnnotations','annotationType','southArrowNorthEast','southArrowNorthWest','resize','_integrateWithEditorAnnotations','bind','narrowsidebar-attach-already-attached','get','_setSelectedAnnotations','getByView','low','from','focus','_editorAnnotations','has','setActiveAnnotation','first','focusableElements','bodyCollection','keydown','ck-sidebar--narrow','stopListening','destroy','removeEventListener','content','_destroyEditorAnnotationsIntegration','_selectedAnnotations','_detachListeners','change:height','unpin','plugins','set','isVisible','target','editors','stopPropagation','balloonPanelView','delete','keyCode','hasDomSelection','_refreshPositioning','rearrange','create','uiUpdate','blur','preventClosingBalloon','type','_detachFromContainer','add','high','length','locale','listenTo','set:container','attachToDom','detachFromDom','init','isDirty','activeAnnotation','contains','_annotationToNarrowView','_domEmitter','EditorAnnotations','view','includes','narrowsidebar-detach-not-attached','_updateBalloonPosition','refresh','requires','northArrowSouth','_attachListeners','element','number','cancel','_hideBalloon','addAnnotation','annotations','detach','register','find','mousedown','clear','ready','attach','off','northArrowSouthEast','addEventListener','values','_attachToContainer','_refreshPositioningDebounced','northArrowSouthWest','isAttached','stop','Esc','esc','defaultPositions'];(function(_0xb3a037,_0x5c0891){const _0x49496d=function(_0x1dd92e){while(--_0x1dd92e){_0xb3a037['push'](_0xb3a037['shift']());}};_0x49496d(++_0x5c0891);}(_0x5c08,0x93));const _0x4949=function(_0xb3a037,_0x5c0891){_0xb3a037=_0xb3a037-0x0;let _0x49496d=_0x5c08[_0xb3a037];return _0x49496d;};import{ContextPlugin as _0x3317eb,Context as _0x4f3c8c}from'ckeditor5/src/core.js';import _0x902a2 from'./annotationsuis.js';import _0x59257c from'./sidebar.js';import _0x2d3f00 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x50b6bf,BodyCollection as _0xcdcab5}from'ckeditor5/src/ui.js';import{CKEditorError as _0x27940a,DomEmitterMixin as _0x812b8d,keyCodes as _0x1f7bea,Collection as _0x5285f9}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x483211}from'lodash-es';import _0x320e8c from'./editorannotations.js';export default class i extends _0x3317eb{static get[_0x4949('0x1d')](){return[_0x59257c,_0x902a2];}static get['pluginName'](){return'NarrowSidebar';}constructor(_0x547698){super(_0x547698),this[_0x4949('0x34')]=!0x1,this[_0x4949('0x3a')]=new Set(),this[_0x4949('0x16')]=Object[_0x4949('0x3')](_0x812b8d),this[_0x4949('0x15')]=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this[_0x4949('0x59')]=[],this['_editorAnnotations']=new _0x5285f9(),this[_0x4949('0x32')]=_0x483211(()=>{this[_0x4949('0x1')]();},0xfa,{'leading':!0x1});}[_0x4949('0x11')](){this['context'][_0x4949('0x5d')][_0x4949('0x46')](_0x902a2)[_0x4949('0x27')]('narrowSidebar',this),this[_0x4949('0x51')]=new _0xcdcab5(this[_0x4949('0x3b')]['locale']),this[_0x4949('0x63')]=new _0x50b6bf(this[_0x4949('0x3b')][_0x4949('0xc')]),this[_0x4949('0x51')][_0x4949('0xf')](),this[_0x4949('0x51')][_0x4949('0x9')](this[_0x4949('0x63')]);}[_0x4949('0x2c')](_0xe6e48c){this[_0x4949('0x25')]=_0xe6e48c;const _0x4c20be=this[_0x4949('0x3b')][_0x4949('0x5d')][_0x4949('0x46')](_0x59257c),_0x13621f=this[_0x4949('0x63')];if(_0x4c20be['_annotations']=_0xe6e48c,this[_0x4949('0x34')])throw new _0x27940a(_0x4949('0x45'),this);this['isAttached']=!0x0,this[_0x4949('0xd')](_0x4c20be,_0x4949('0xe'),()=>{this[_0x4949('0x26')](),this[_0x4949('0xd')](_0x4c20be,'change:container',_0x38e8c5=>{_0x38e8c5[_0x4949('0x2d')](),this[_0x4949('0x2c')](_0xe6e48c);});}),_0x4c20be[_0x4949('0x31')]({'viewClass':_0x4949('0x53'),'spaceBetweenItems':0x5});const _0x1015c1=_0x8f3419=>{const _0x3999a6=new _0x2d3f00(this[_0x4949('0x3b')][_0x4949('0xc')]);_0x4c20be[_0x4949('0x24')](_0x8f3419,_0x3999a6),this[_0x4949('0x15')][_0x4949('0x5e')](_0x8f3419,_0x3999a6),_0x3999a6[_0x4949('0x44')](_0x4949('0x12'),_0x4949('0x3f'),_0x4949('0x21'))['to'](_0x8f3419[_0x4949('0x18')],_0x4949('0x12'),_0x4949('0x7'),_0x4949('0xb')),_0x3999a6['on']('execute',()=>{this[_0x4949('0x3a')]['clear'](),_0x13621f[_0x4949('0x57')][_0x4949('0x4f')]!==_0x8f3419[_0x4949('0x18')]?(this[_0x4949('0x39')](_0x8f3419),_0x8f3419[_0x4949('0x18')][_0x4949('0x20')][_0x4949('0x4b')](),this[_0x4949('0x4e')](_0x8f3419)):this[_0x4949('0x4e')](null);});};for(const _0x3368bb of _0xe6e48c)_0x1015c1(_0x3368bb);this[_0x4949('0xd')](_0xe6e48c,'add',(_0x4d9530,_0x2b27bf)=>{_0x1015c1(_0x2b27bf);}),this[_0x4949('0xd')](_0xe6e48c,_0x4949('0x3d'),(_0x40c11a,_0x4956e7,_0x52c854)=>{this['_annotationToNarrowView'][_0x4949('0x46')](_0x4956e7)['destroy'](),this['_annotationToNarrowView'][_0x4949('0x64')](_0x4956e7),_0x4c20be[_0x4949('0x2')]({'removedAnnotation':_0x4956e7,'previousAnnotation':_0xe6e48c[_0x4949('0x46')](_0x52c854-0x1),'nextAnnotation':_0xe6e48c[_0x4949('0x46')](_0x52c854+0x1)}),_0x4956e7===this['activeAnnotation']&&this[_0x4949('0x4e')](null);},{'priority':_0x4949('0x49')}),this[_0x4949('0xd')](_0xe6e48c,'focus',(_0x170ead,_0x550a30)=>{this['setActiveAnnotation'](_0x550a30);}),this[_0x4949('0xd')](_0xe6e48c,_0x4949('0x5'),()=>{this['setActiveAnnotation'](null);}),this[_0x4949('0x16')][_0x4949('0xd')](document,_0x4949('0x52'),(_0x526f3a,_0x15e7a7)=>{_0x15e7a7[_0x4949('0x65')]===_0x1f7bea[_0x4949('0x37')]&&_0x13621f[_0x4949('0x5f')]&&(this['_manuallyClosedAnnotationViews'][_0x4949('0x9')](_0x13621f[_0x4949('0x57')][_0x4949('0x4f')]),this['_hideBalloon'](),_0x15e7a7[_0x4949('0x62')](),_0x15e7a7['preventDefault']());}),this[_0x4949('0x16')][_0x4949('0xd')](document,_0x4949('0x29'),(_0x802b22,_0x49c716)=>{const _0x19fe27=_0x49c716['target'];_0x13621f[_0x4949('0x5f')]&&_0x13621f['element'][_0x4949('0x14')](_0x19fe27)||_0x4c20be['view'][_0x4949('0x20')][_0x4949('0x14')](_0x19fe27)||_0x802b22[_0x4949('0x6')]||this[_0x4949('0x13')]&&this[_0x4949('0x13')][_0x4949('0x50')][_0x4949('0x28')](_0x373f37=>_0x373f37[_0x4949('0x14')](_0x19fe27))||(this[_0x4949('0x3a')][_0x4949('0x2a')](),this[_0x4949('0x23')](),this[_0x4949('0x4e')](null));});const _0x4cfeba=this[_0x4949('0x3b')]instanceof _0x4f3c8c?this[_0x4949('0x3b')][_0x4949('0x61')]:new _0x5285f9([this[_0x4949('0x3b')]]);for(const _0x495c0a of _0x4cfeba)this[_0x4949('0x43')](_0x495c0a);this[_0x4949('0xd')](_0x4cfeba,_0x4949('0x9'),(_0x3f7429,_0x12c8a2)=>{this[_0x4949('0xd')](_0x12c8a2,_0x4949('0x2b'),()=>{this[_0x4949('0x43')](_0x12c8a2);});}),this[_0x4949('0xd')](_0x4cfeba,_0x4949('0x3d'),(_0xe88470,_0x198b92)=>{_0x198b92[_0x4949('0x5d')][_0x4949('0x4d')](_0x4949('0x17'))&&this[_0x4949('0x58')](_0x198b92[_0x4949('0x5d')][_0x4949('0x46')](_0x4949('0x17')));}),window[_0x4949('0x2f')]('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x7fa4a4){if(_0x7fa4a4===this['activeAnnotation'])return;const _0x3edec9=this['context'][_0x4949('0x5d')][_0x4949('0x46')](_0x59257c);if(_0x3edec9[_0x4949('0x1c')]({'blurredAnnotation':this[_0x4949('0x13')],'activatedAnnotation':_0x7fa4a4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x7fa4a4)_0x3edec9[_0x4949('0x3c')](_0x7fa4a4)?this[_0x4949('0x39')](_0x7fa4a4):this[_0x4949('0x23')]();else this[_0x4949('0x23')]();this[_0x4949('0x13')]=_0x7fa4a4;}[_0x4949('0x26')](){if(!this[_0x4949('0x34')])throw new _0x27940a(_0x4949('0x1a'),this);this[_0x4949('0x4e')](null);const _0x425cc3=this[_0x4949('0x3b')][_0x4949('0x5d')]['get'](_0x59257c);this[_0x4949('0x23')](),Array[_0x4949('0x4a')](this[_0x4949('0x15')][_0x4949('0x30')](),_0x156024=>_0x156024[_0x4949('0x55')]()),this[_0x4949('0x15')][_0x4949('0x2a')](),_0x425cc3[_0x4949('0x8')](this[_0x4949('0x25')]),this['stopListening'](),this[_0x4949('0x16')][_0x4949('0x54')](),this[_0x4949('0x3b')]instanceof _0x4f3c8c&&this['stopListening'](this['context'][_0x4949('0x61')]);for(const _0x459611 of Array[_0x4949('0x4a')](this[_0x4949('0x4c')]))this[_0x4949('0x58')](_0x459611);window[_0x4949('0x56')](_0x4949('0x42'),this[_0x4949('0x32')]),this[_0x4949('0x32')][_0x4949('0x22')](),this[_0x4949('0x59')]=[],this[_0x4949('0x34')]=!0x1,this['annotations']=null;}[_0x4949('0x55')](){this[_0x4949('0x34')]&&this['detach'](),this[_0x4949('0x51')][_0x4949('0x10')]();}[_0x4949('0x43')](_0x6cd455){const _0x441f0b=_0x6cd455[_0x4949('0x5d')][_0x4949('0x46')](_0x320e8c),_0x28448d=this[_0x4949('0x3b')]['plugins']['get'](_0x59257c),_0x5dca35=this['annotations'],_0x118ba8=this[_0x4949('0x63')],_0x44f76c=()=>{const _0x589648=_0x441f0b[_0x4949('0x3e')]({'annotations':this[_0x4949('0x25')],'activeAnnotation':this[_0x4949('0x13')]});this[_0x4949('0x47')](_0x589648),this[_0x4949('0x4e')](_0x589648[0x0]||null);};this[_0x4949('0xd')](_0x441f0b,_0x4949('0x1c'),_0x44f76c),this[_0x4949('0xd')](_0x441f0b,'blur',(_0x117cef,{isAnnotationTracked:_0x2d7d52})=>{this[_0x4949('0x13')]&&_0x2d7d52(this[_0x4949('0x13')])&&(this['_setSelectedAnnotations']([]),this[_0x4949('0x4e')](null));}),this['listenTo'](_0x441f0b,_0x4949('0x4'),()=>{this['_refreshPositioningDebounced']();}),this[_0x4949('0xd')](_0x5dca35,_0x4949('0x5'),_0x56f221=>{_0x441f0b[_0x4949('0x0')]()&&_0x56f221[_0x4949('0x35')]();},{'priority':_0x4949('0xa')}),this[_0x4949('0xd')](this[_0x4949('0x16')],_0x4949('0x29'),(_0x20be9c,_0x23d605)=>{const _0x35ef4d=_0x23d605[_0x4949('0x60')];_0x118ba8['isVisible']&&_0x118ba8[_0x4949('0x20')][_0x4949('0x14')](_0x35ef4d)||_0x28448d['view'][_0x4949('0x20')][_0x4949('0x14')](_0x35ef4d)||this[_0x4949('0x13')]&&_0x441f0b['hasDomSelection']()&&(_0x44f76c(),_0x20be9c['preventClosingBalloon']=!0x0);},{'priority':'high'}),this[_0x4949('0x4c')][_0x4949('0x9')](_0x441f0b);}['_destroyEditorAnnotationsIntegration'](_0x50b100){_0x50b100&&(this['stopListening'](_0x50b100),this[_0x4949('0x4c')][_0x4949('0x3d')](_0x50b100));}[_0x4949('0x47')](_0x717689){for(const _0x4428b0 of this[_0x4949('0x59')])_0x717689[_0x4949('0x19')](_0x4428b0)||this[_0x4949('0x3a')][_0x4949('0x64')](_0x4428b0[_0x4949('0x18')]);this[_0x4949('0x59')]=_0x717689;}[_0x4949('0x1')](){const _0x66135f=this[_0x4949('0x63')];this['annotations']['refreshPositioning'](),_0x66135f[_0x4949('0x5f')]&&this[_0x4949('0x1b')]();}[_0x4949('0x39')](_0x22398d){if(this[_0x4949('0x3a')]['has'](_0x22398d[_0x4949('0x18')]))return;const _0x25f711=this[_0x4949('0x63')]['content']['first'];_0x25f711!==_0x22398d[_0x4949('0x18')]?(_0x25f711&&this['_detachListeners'](_0x25f711),this[_0x4949('0x1f')](_0x22398d[_0x4949('0x18')]),this[_0x4949('0x63')][_0x4949('0x57')]['clear'](),this['balloonPanelView'][_0x4949('0x57')][_0x4949('0x9')](_0x22398d['view']),this[_0x4949('0x1b')]()):this['_updateBalloonPosition']();}[_0x4949('0x1b')](){const _0x1d7741=this[_0x4949('0x63')][_0x4949('0x57')][_0x4949('0x4f')],_0x23e93=_0x1d7741&&this[_0x4949('0x25')][_0x4949('0x48')](_0x1d7741);if(!_0x23e93||!this['_annotationToNarrowView']['has'](_0x23e93))return;const _0x27d648=this['_annotationToNarrowView'][_0x4949('0x46')](_0x23e93)['element'],_0x4667ca=function(){const _0x22a9ed=_0x50b6bf[_0x4949('0x38')];return[_0x22a9ed[_0x4949('0x40')],_0x22a9ed[_0x4949('0x2e')],_0x22a9ed['southArrowNorth'],_0x22a9ed[_0x4949('0x1e')],_0x22a9ed[_0x4949('0x41')],_0x22a9ed[_0x4949('0x33')]];}();this[_0x4949('0x63')]['pin']({'target':_0x27d648,'positions':_0x4667ca});}[_0x4949('0x23')](){const _0x3e5df3=this[_0x4949('0x63')],_0x1eb4b2=_0x3e5df3[_0x4949('0x57')][_0x4949('0x4f')];_0x1eb4b2&&(this[_0x4949('0x5a')](_0x1eb4b2),_0x3e5df3[_0x4949('0x5c')](),_0x3e5df3[_0x4949('0x57')]['clear']());}[_0x4949('0x1f')](_0x7e30f2){this[_0x4949('0xd')](_0x7e30f2,_0x4949('0x5b'),()=>this['_updateBalloonPosition']()),this[_0x4949('0xd')](_0x7e30f2,_0x4949('0x36'),(_0x50672a,_0x1d7a5e)=>{this[_0x4949('0x3a')][_0x4949('0x9')](_0x7e30f2),this[_0x4949('0x23')](),_0x1d7a5e();});}['_detachListeners'](_0x50a6bb){this['stopListening'](_0x50a6bb);}}
|
|
23
|
+
const _0x51c1=['type','set:container','_setSelectedAnnotations','_detachFromContainer','resize','add','detachFromDom','addAnnotation','_attachListeners','stopListening','view','keyCode','listenTo','change:height','bodyCollection','detach','attachToDom','annotationType','low','first','remove','northArrowSouth','high','annotations','esc','keydown','uiUpdate','context','_refreshPositioning','_attachToContainer','getOrderedSelectedAnnotations','_selectedAnnotations','get','bind','northArrowSouthEast','plugins','ck-sidebar--narrow','refresh','element','_integrateWithEditorAnnotations','_updateBalloonPosition','target','has','isDirty','length','locale','includes','init','preventClosingBalloon','cancel','values','contains','_refreshPositioningDebounced','destroy','register','clear','_showBalloon','_destroyEditorAnnotationsIntegration','pin','focus','_detachListeners','rearrange','southArrowNorthWest','northArrowSouthWest','getSidebarItemView','pluginName','delete','refreshPositioning','isAttached','editors','_manuallyClosedAnnotationViews','set','_domEmitter','change:container','from','balloonPanelView','defaultPositions','blur','Esc','_hideBalloon','isVisible','content','narrowsidebar-detach-not-attached','preventDefault','attach','requires','getByView','mousedown','_annotationToNarrowView','hasDomSelection','removeEventListener','_editorAnnotations','narrowSidebar','execute','setActiveAnnotation','EditorAnnotations','activeAnnotation'];(function(_0x4dfcb7,_0x51c1cb){const _0x225e5d=function(_0x9dbcbf){while(--_0x9dbcbf){_0x4dfcb7['push'](_0x4dfcb7['shift']());}};_0x225e5d(++_0x51c1cb);}(_0x51c1,0x1ab));const _0x225e=function(_0x4dfcb7,_0x51c1cb){_0x4dfcb7=_0x4dfcb7-0x0;let _0x225e5d=_0x51c1[_0x4dfcb7];return _0x225e5d;};import{ContextPlugin as _0x2403ae,Context as _0x27a1c5}from'ckeditor5/src/core.js';import _0x3081f4 from'./annotationsuis.js';import _0x3b5c83 from'./sidebar.js';import _0x42ce87 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0xcd72e4,BodyCollection as _0x573f3}from'ckeditor5/src/ui.js';import{CKEditorError as _0x3a4302,DomEmitterMixin as _0x3dbc0b,keyCodes as _0x42e915,Collection as _0x43b1c8}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x197f4e}from'lodash-es';import _0x29c861 from'./editorannotations.js';export default class i extends _0x2403ae{static get[_0x225e('0x2e')](){return[_0x3b5c83,_0x3081f4];}static get[_0x225e('0x1a')](){return'NarrowSidebar';}constructor(_0x4bf325){super(_0x4bf325),this[_0x225e('0x1d')]=!0x1,this[_0x225e('0x1f')]=new Set(),this[_0x225e('0x21')]=Object['create'](_0x3dbc0b),this[_0x225e('0x31')]=new Map(),this[_0x225e('0x20')](_0x225e('0x39'),null),this['annotations']=null,this['_selectedAnnotations']=[],this[_0x225e('0x34')]=new _0x43b1c8(),this[_0x225e('0xd')]=_0x197f4e(()=>{this[_0x225e('0x56')]();},0xfa,{'leading':!0x1});}[_0x225e('0x8')](){this[_0x225e('0x55')][_0x225e('0x5d')]['get'](_0x3081f4)[_0x225e('0xf')](_0x225e('0x35'),this),this[_0x225e('0x48')]=new _0x573f3(this[_0x225e('0x55')][_0x225e('0x6')]),this[_0x225e('0x24')]=new _0xcd72e4(this[_0x225e('0x55')][_0x225e('0x6')]),this['bodyCollection'][_0x225e('0x4a')](),this[_0x225e('0x48')][_0x225e('0x3f')](this['balloonPanelView']);}['attach'](_0x3a7806){this[_0x225e('0x51')]=_0x3a7806;const _0x762517=this[_0x225e('0x55')][_0x225e('0x5d')][_0x225e('0x5a')](_0x3b5c83),_0x208114=this[_0x225e('0x24')];if(_0x762517['_annotations']=_0x3a7806,this[_0x225e('0x1d')])throw new _0x3a4302('narrowsidebar-attach-already-attached',this);this[_0x225e('0x1d')]=!0x0,this[_0x225e('0x46')](_0x762517,_0x225e('0x3b'),()=>{this['detach'](),this[_0x225e('0x46')](_0x762517,_0x225e('0x22'),_0x267bbf=>{_0x267bbf['off'](),this[_0x225e('0x2d')](_0x3a7806);});}),_0x762517[_0x225e('0x57')]({'viewClass':_0x225e('0x5e'),'spaceBetweenItems':0x5});const _0xa92d73=_0x19ba36=>{const _0x342c29=new _0x42ce87(this[_0x225e('0x55')][_0x225e('0x6')]);_0x762517[_0x225e('0x41')](_0x19ba36,_0x342c29),this[_0x225e('0x31')][_0x225e('0x20')](_0x19ba36,_0x342c29),_0x342c29[_0x225e('0x5b')](_0x225e('0x4'),_0x225e('0x4b'),'number')['to'](_0x19ba36[_0x225e('0x44')],'isDirty',_0x225e('0x3a'),_0x225e('0x5')),_0x342c29['on'](_0x225e('0x36'),()=>{this['_manuallyClosedAnnotationViews'][_0x225e('0x10')](),_0x208114[_0x225e('0x2a')][_0x225e('0x4d')]!==_0x19ba36[_0x225e('0x44')]?(this[_0x225e('0x11')](_0x19ba36),_0x19ba36[_0x225e('0x44')][_0x225e('0x60')][_0x225e('0x14')](),this[_0x225e('0x37')](_0x19ba36)):this[_0x225e('0x37')](null);});};for(const _0x332f27 of _0x3a7806)_0xa92d73(_0x332f27);this['listenTo'](_0x3a7806,_0x225e('0x3f'),(_0x3b24e6,_0xd0d0ff)=>{_0xa92d73(_0xd0d0ff);}),this['listenTo'](_0x3a7806,'remove',(_0x139cbd,_0x138edc,_0x3f3c9d)=>{this[_0x225e('0x31')][_0x225e('0x5a')](_0x138edc)[_0x225e('0xe')](),this['_annotationToNarrowView'][_0x225e('0x1b')](_0x138edc),_0x762517[_0x225e('0x16')]({'removedAnnotation':_0x138edc,'previousAnnotation':_0x3a7806[_0x225e('0x5a')](_0x3f3c9d-0x1),'nextAnnotation':_0x3a7806[_0x225e('0x5a')](_0x3f3c9d+0x1)}),_0x138edc===this[_0x225e('0x39')]&&this[_0x225e('0x37')](null);},{'priority':_0x225e('0x4c')}),this['listenTo'](_0x3a7806,'focus',(_0x3c5b0b,_0x3a64b9)=>{this['setActiveAnnotation'](_0x3a64b9);}),this[_0x225e('0x46')](_0x3a7806,_0x225e('0x26'),()=>{this['setActiveAnnotation'](null);}),this[_0x225e('0x21')][_0x225e('0x46')](document,_0x225e('0x53'),(_0xb875db,_0x1878f2)=>{_0x1878f2[_0x225e('0x45')]===_0x42e915[_0x225e('0x52')]&&_0x208114[_0x225e('0x29')]&&(this['_manuallyClosedAnnotationViews'][_0x225e('0x3f')](_0x208114[_0x225e('0x2a')]['first']),this[_0x225e('0x28')](),_0x1878f2['stopPropagation'](),_0x1878f2[_0x225e('0x2c')]());}),this[_0x225e('0x21')][_0x225e('0x46')](document,_0x225e('0x30'),(_0x125d15,_0x423ae9)=>{const _0x2763c8=_0x423ae9[_0x225e('0x2')];_0x208114['isVisible']&&_0x208114[_0x225e('0x60')][_0x225e('0xc')](_0x2763c8)||_0x762517[_0x225e('0x44')]['element'][_0x225e('0xc')](_0x2763c8)||_0x125d15[_0x225e('0x9')]||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x4b2478=>_0x4b2478[_0x225e('0xc')](_0x2763c8))||(this['_manuallyClosedAnnotationViews'][_0x225e('0x10')](),this[_0x225e('0x28')](),this['setActiveAnnotation'](null));});const _0x404b68=this[_0x225e('0x55')]instanceof _0x27a1c5?this['context'][_0x225e('0x1e')]:new _0x43b1c8([this['context']]);for(const _0x2e618e of _0x404b68)this[_0x225e('0x0')](_0x2e618e);this[_0x225e('0x46')](_0x404b68,_0x225e('0x3f'),(_0x1280fa,_0x10d6e1)=>{this['listenTo'](_0x10d6e1,'ready',()=>{this[_0x225e('0x0')](_0x10d6e1);});}),this[_0x225e('0x46')](_0x404b68,'remove',(_0x23741d,_0x52fdb3)=>{_0x52fdb3[_0x225e('0x5d')][_0x225e('0x3')]('EditorAnnotations')&&this[_0x225e('0x12')](_0x52fdb3[_0x225e('0x5d')][_0x225e('0x5a')](_0x225e('0x38')));}),window['addEventListener']('resize',this[_0x225e('0xd')]),this[_0x225e('0x56')]();}['setActiveAnnotation'](_0x56546c){if(_0x56546c===this[_0x225e('0x39')])return;const _0xe74cba=this[_0x225e('0x55')][_0x225e('0x5d')][_0x225e('0x5a')](_0x3b5c83);if(_0xe74cba[_0x225e('0x5f')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x56546c,'disableAnimationOnActivatedAnnotation':!0x0}),_0x56546c)_0xe74cba[_0x225e('0x19')](_0x56546c)?this[_0x225e('0x11')](_0x56546c):this[_0x225e('0x28')]();else this['_hideBalloon']();this['activeAnnotation']=_0x56546c;}[_0x225e('0x49')](){if(!this['isAttached'])throw new _0x3a4302(_0x225e('0x2b'),this);this[_0x225e('0x37')](null);const _0x912be4=this[_0x225e('0x55')][_0x225e('0x5d')][_0x225e('0x5a')](_0x3b5c83);this[_0x225e('0x28')](),Array['from'](this[_0x225e('0x31')][_0x225e('0xb')](),_0x5c7deb=>_0x5c7deb[_0x225e('0xe')]()),this['_annotationToNarrowView'][_0x225e('0x10')](),_0x912be4[_0x225e('0x3d')](this['annotations']),this['stopListening'](),this[_0x225e('0x21')][_0x225e('0x43')](),this[_0x225e('0x55')]instanceof _0x27a1c5&&this[_0x225e('0x43')](this['context'][_0x225e('0x1e')]);for(const _0x2dca97 of Array[_0x225e('0x23')](this[_0x225e('0x34')]))this[_0x225e('0x12')](_0x2dca97);window[_0x225e('0x33')](_0x225e('0x3e'),this[_0x225e('0xd')]),this['_refreshPositioningDebounced'][_0x225e('0xa')](),this[_0x225e('0x59')]=[],this[_0x225e('0x1d')]=!0x1,this['annotations']=null;}[_0x225e('0xe')](){this[_0x225e('0x1d')]&&this[_0x225e('0x49')](),this[_0x225e('0x48')][_0x225e('0x40')]();}[_0x225e('0x0')](_0x3a9b1e){const _0xd5b4e9=_0x3a9b1e['plugins'][_0x225e('0x5a')](_0x29c861),_0x348782=this[_0x225e('0x55')][_0x225e('0x5d')][_0x225e('0x5a')](_0x3b5c83),_0x320e3c=this[_0x225e('0x51')],_0x3ccc41=this[_0x225e('0x24')],_0x23c391=()=>{const _0x49dd35=_0xd5b4e9[_0x225e('0x58')]({'annotations':this[_0x225e('0x51')],'activeAnnotation':this[_0x225e('0x39')]});this[_0x225e('0x3c')](_0x49dd35),this[_0x225e('0x37')](_0x49dd35[0x0]||null);};this[_0x225e('0x46')](_0xd5b4e9,_0x225e('0x5f'),_0x23c391),this['listenTo'](_0xd5b4e9,_0x225e('0x26'),(_0x3a3884,{isAnnotationTracked:_0x50e9c4})=>{this[_0x225e('0x39')]&&_0x50e9c4(this[_0x225e('0x39')])&&(this[_0x225e('0x3c')]([]),this[_0x225e('0x37')](null));}),this[_0x225e('0x46')](_0xd5b4e9,_0x225e('0x54'),()=>{this[_0x225e('0xd')]();}),this[_0x225e('0x46')](_0x320e3c,'blur',_0xcab01a=>{_0xd5b4e9[_0x225e('0x32')]()&&_0xcab01a['stop']();},{'priority':_0x225e('0x50')}),this[_0x225e('0x46')](this[_0x225e('0x21')],_0x225e('0x30'),(_0x1f7ef7,_0x5bca0b)=>{const _0x2e64e1=_0x5bca0b[_0x225e('0x2')];_0x3ccc41['isVisible']&&_0x3ccc41[_0x225e('0x60')][_0x225e('0xc')](_0x2e64e1)||_0x348782['view'][_0x225e('0x60')][_0x225e('0xc')](_0x2e64e1)||this[_0x225e('0x39')]&&_0xd5b4e9[_0x225e('0x32')]()&&(_0x23c391(),_0x1f7ef7[_0x225e('0x9')]=!0x0);},{'priority':_0x225e('0x50')}),this[_0x225e('0x34')][_0x225e('0x3f')](_0xd5b4e9);}[_0x225e('0x12')](_0x5cc875){_0x5cc875&&(this[_0x225e('0x43')](_0x5cc875),this[_0x225e('0x34')][_0x225e('0x4e')](_0x5cc875));}[_0x225e('0x3c')](_0x3231d1){for(const _0x1289dc of this[_0x225e('0x59')])_0x3231d1[_0x225e('0x7')](_0x1289dc)||this[_0x225e('0x1f')][_0x225e('0x1b')](_0x1289dc[_0x225e('0x44')]);this['_selectedAnnotations']=_0x3231d1;}[_0x225e('0x56')](){const _0x35e99f=this[_0x225e('0x24')];this[_0x225e('0x51')][_0x225e('0x1c')](),_0x35e99f[_0x225e('0x29')]&&this[_0x225e('0x1')]();}[_0x225e('0x11')](_0xc38748){if(this[_0x225e('0x1f')][_0x225e('0x3')](_0xc38748['view']))return;const _0x2205cc=this[_0x225e('0x24')][_0x225e('0x2a')][_0x225e('0x4d')];_0x2205cc!==_0xc38748['view']?(_0x2205cc&&this[_0x225e('0x15')](_0x2205cc),this[_0x225e('0x42')](_0xc38748['view']),this[_0x225e('0x24')]['content'][_0x225e('0x10')](),this['balloonPanelView'][_0x225e('0x2a')][_0x225e('0x3f')](_0xc38748[_0x225e('0x44')]),this[_0x225e('0x1')]()):this[_0x225e('0x1')]();}['_updateBalloonPosition'](){const _0x18a260=this[_0x225e('0x24')]['content'][_0x225e('0x4d')],_0x1e0f6a=_0x18a260&&this[_0x225e('0x51')][_0x225e('0x2f')](_0x18a260);if(!_0x1e0f6a||!this[_0x225e('0x31')]['has'](_0x1e0f6a))return;const _0x492643=this[_0x225e('0x31')][_0x225e('0x5a')](_0x1e0f6a)[_0x225e('0x60')],_0x53a06f=function(){const _0x3ceb3b=_0xcd72e4[_0x225e('0x25')];return[_0x3ceb3b['southArrowNorthEast'],_0x3ceb3b[_0x225e('0x5c')],_0x3ceb3b['southArrowNorth'],_0x3ceb3b[_0x225e('0x4f')],_0x3ceb3b[_0x225e('0x17')],_0x3ceb3b[_0x225e('0x18')]];}();this['balloonPanelView'][_0x225e('0x13')]({'target':_0x492643,'positions':_0x53a06f});}[_0x225e('0x28')](){const _0x5662fc=this[_0x225e('0x24')],_0xede76a=_0x5662fc['content'][_0x225e('0x4d')];_0xede76a&&(this[_0x225e('0x15')](_0xede76a),_0x5662fc['unpin'](),_0x5662fc[_0x225e('0x2a')]['clear']());}[_0x225e('0x42')](_0x3230ba){this[_0x225e('0x46')](_0x3230ba,_0x225e('0x47'),()=>this['_updateBalloonPosition']()),this[_0x225e('0x46')](_0x3230ba,_0x225e('0x27'),(_0x46d89e,_0x39222b)=>{this[_0x225e('0x1f')]['add'](_0x3230ba),this[_0x225e('0x28')](),_0x39222b();});}[_0x225e('0x15')](_0x384416){this[_0x225e('0x43')](_0x384416);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf602=['sidebar-setcontainer-invalid-element','element','_annotationToSidebarItemView','stopListening','change:_lastItem','container','clear','delete','_annotations','bind','_getTargetTop','change:targetRect','_alignForTopChange','length','top','destroy','isActive','view','getSidebarItemView','listenTo','_setItemTop','appendChild','_destroySidebarItemView','bottom','init','setContainer','push','_attachToContainer','context','config','class','_updateLastItem','render','_sidebarItemViewToAnnotation','list','_detachFromContainer','_getMaxAvailableTop','_lastItem','target','_recalculate','isAnimationDisabled','_activeAnnotation','minHeight','updateHeight','last','change:bottom','_alignAfterItem','height','max','sidebar.container','set','_alignToTargetRect','_alignForBottomChange','get','_alignBeforeItem','object','unbind','content','_spaceBetweenItems','_recalculateBuffer','pluginName','_createSidebarView','sidebar-attachtocontainer-missing-container','getIndex','targetRect','locale','_getItemBefore','remove','add'];(function(_0x25cb4c,_0xf602f7){const _0x1cc690=function(_0x58067b){while(--_0x58067b){_0x25cb4c['push'](_0x25cb4c['shift']());}};_0x1cc690(++_0xf602f7);}(_0xf602,0x102));const _0x1cc6=function(_0x25cb4c,_0xf602f7){_0x25cb4c=_0x25cb4c-0x0;let _0x1cc690=_0xf602[_0x25cb4c];return _0x1cc690;};import{ContextPlugin as _0x52f2c9}from'ckeditor5/src/core.js';import{Rect as _0x264c12,CKEditorError as _0x43a999}from'ckeditor5/src/utils.js';import _0x115504 from'./view/sidebarview.js';import _0x2cb943 from'./view/sidebaritemview.js';export default class z extends _0x52f2c9{static get[_0x1cc6('0x9')](){return'Sidebar';}constructor(_0x30c734){super(_0x30c734),this['set']('_lastItem',void 0x0),this['view']=this[_0x1cc6('0xa')](),this[_0x1cc6('0x44')](_0x1cc6('0x17'),null),this[_0x1cc6('0x7')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x1cc6('0x14')]=new Map(),this[_0x1cc6('0x2e')][_0x1cc6('0x2f')]['define']('sidebar.preventScrollOutOfView',!0x1),this[_0x1cc6('0x1a')]=null,this[_0x1cc6('0x3b')]=null,this[_0x1cc6('0x8')]=[];}[_0x1cc6('0x2a')](){const _0x3c6b8f=this[_0x1cc6('0x2e')]['config'][_0x1cc6('0x2')](_0x1cc6('0x43'));_0x3c6b8f&&this[_0x1cc6('0x2b')](_0x3c6b8f);}[_0x1cc6('0x2b')](_0x5a4846){if(!y(_0x5a4846))throw new _0x43a999(_0x1cc6('0x12'));this[_0x1cc6('0x17')]=_0x5a4846;}[_0x1cc6('0x2d')]({viewClass:_0x2df8ba='',spaceBetweenItems:_0x1f94e4=0x19}={}){if(!y(this[_0x1cc6('0x17')]))throw new _0x43a999(_0x1cc6('0xb'),this);this[_0x1cc6('0x17')][_0x1cc6('0x27')](this[_0x1cc6('0x23')]['element']),this[_0x1cc6('0x23')][_0x1cc6('0x30')]=_0x2df8ba,this['_spaceBetweenItems']=_0x1f94e4;}['rearrange']({removedAnnotation:_0x4394d7,previousAnnotation:_0x563088,nextAnnotation:_0xc87538}){const _0x5c913f=this[_0x1cc6('0x24')](_0x4394d7);this[_0x1cc6('0x23')]['list'][_0x1cc6('0x10')](_0x5c913f),this[_0x1cc6('0x28')](_0x4394d7),_0x563088&&this[_0x1cc6('0x0')](this[_0x1cc6('0x24')](_0x563088)),_0xc87538&&this[_0x1cc6('0x0')](this[_0x1cc6('0x24')](_0xc87538)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0xe0847c,activatedAnnotation:_0x107b1f,disableAnimationOnActivatedAnnotation:_0x53f190}){if(this[_0x1cc6('0x3b')]=_0x107b1f,_0xe0847c){_0xe0847c[_0x1cc6('0x22')]=!0x1;const _0x1902be=this[_0x1cc6('0x24')](_0xe0847c);_0x1902be&&_0x53f190&&(_0x1902be['isAnimationDisabled']=!0x1);}if(_0x107b1f){const _0x4d4ed7=this[_0x1cc6('0x24')](_0x107b1f);_0x4d4ed7&&(_0x107b1f[_0x1cc6('0x22')]=!0x0,_0x53f190&&(_0x4d4ed7[_0x1cc6('0x3a')]=!0x0,_0x4d4ed7[_0x1cc6('0x20')]+=0x1),this[_0x1cc6('0x0')](_0x4d4ed7));}}[_0x1cc6('0x35')](_0x5d503c){if(this[_0x1cc6('0x23')]['element'][_0x1cc6('0x10')](),_0x5d503c)for(const _0x56879b of _0x5d503c)this['_destroySidebarItemView'](_0x56879b);this[_0x1cc6('0x23')][_0x1cc6('0x34')][_0x1cc6('0x18')](),this[_0x1cc6('0x23')][_0x1cc6('0x30')]='',this[_0x1cc6('0x37')]=null;}['addAnnotation'](_0x4fb4f3,_0x399391){_0x399391||(_0x399391=_0x4fb4f3[_0x1cc6('0x23')]);const _0x22a284=new _0x2cb943(this[_0x1cc6('0x2e')]['locale']);this['_sidebarItemViewToAnnotation'][_0x1cc6('0x44')](_0x22a284,_0x4fb4f3),this[_0x1cc6('0x14')]['set'](_0x4fb4f3,_0x22a284),_0x22a284['content'][_0x1cc6('0x11')](_0x399391),this[_0x1cc6('0x25')](_0x4fb4f3['view'],_0x1cc6('0x1d'),(_0x5e46bb,_0x42db7c,_0x3c69fb)=>{const _0x2f4f53=this[_0x1cc6('0x1c')](_0x4fb4f3,_0x3c69fb);_0x22a284['_targetTop']!=_0x2f4f53&&(_0x22a284['_targetTop']=_0x2f4f53,this['_setItemTop'](_0x22a284,_0x2f4f53));}),this[_0x1cc6('0x25')](_0x22a284,'change:top',()=>{this[_0x1cc6('0x39')](_0x22a284,_0x1cc6('0x20'));}),this[_0x1cc6('0x25')](_0x22a284,_0x1cc6('0x3f'),()=>{this[_0x1cc6('0x39')](_0x22a284,_0x1cc6('0x29'));}),this['_alignToTargetRect'](_0x22a284);const _0xe50614=this['_getItemBefore'](_0x22a284);if(_0xe50614)this['_alignAfterItem'](_0xe50614,_0x22a284)||this['_alignToTargetRect'](_0x22a284);else this[_0x1cc6('0x0')](_0x22a284);return this[_0x1cc6('0x31')](),this['view'][_0x1cc6('0x34')][_0x1cc6('0x11')](_0x22a284),_0x22a284;}['_alignForTopChange'](_0xb5aa61){if(!_0xb5aa61['content'][_0x1cc6('0x1f')])return;const _0x16b6b4=this[_0x1cc6('0xf')](_0xb5aa61);if(!_0x16b6b4)return;const _0x1f149e=this[_0x1cc6('0x33')][_0x1cc6('0x2')](_0x16b6b4),_0xf06f0d=this['_activeAnnotation'];_0xf06f0d&&_0xf06f0d===_0x1f149e?this[_0x1cc6('0x40')](_0x16b6b4,_0xb5aa61):this[_0x1cc6('0x3')](_0xb5aa61,_0x16b6b4);}[_0x1cc6('0x1')](_0x46b621){if(!_0x46b621[_0x1cc6('0x6')][_0x1cc6('0x1f')])return;const _0x20ba1d=this['_getItemAfter'](_0x46b621);if(!_0x20ba1d)return;const _0x45558a=this[_0x1cc6('0x33')]['get'](_0x20ba1d),_0x179d31=this[_0x1cc6('0x2e')]['config']['get']('sidebar.preventScrollOutOfView'),_0x1f4e8b=this[_0x1cc6('0x3b')];_0x1f4e8b&&_0x1f4e8b===_0x45558a&&_0x179d31?(this[_0x1cc6('0x3')](_0x20ba1d,_0x46b621),this['_alignAfterItem'](_0x46b621,_0x20ba1d)):_0x1f4e8b&&_0x1f4e8b===_0x45558a?this[_0x1cc6('0x3')](_0x20ba1d,_0x46b621):this['_alignAfterItem'](_0x46b621,_0x20ba1d);}['_recalculate'](_0x255e38,_0x5093cb){0x0===this[_0x1cc6('0x8')][_0x1cc6('0x1f')]&&setTimeout(()=>{for(const {sidebarItemView:_0x16033d,changedProp:_0x313480}of this['_recalculateBuffer'])'top'===_0x313480?this[_0x1cc6('0x1e')](_0x16033d):this[_0x1cc6('0x1')](_0x16033d);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer'][_0x1cc6('0x2c')]({'sidebarItemView':_0x255e38,'changedProp':_0x5093cb});}[_0x1cc6('0x24')](_0x521412){return this[_0x1cc6('0x14')][_0x1cc6('0x2')](_0x521412);}[_0x1cc6('0x21')](){this[_0x1cc6('0x15')](),this[_0x1cc6('0x23')][_0x1cc6('0x21')]();}[_0x1cc6('0x28')](_0x196919){const _0xef6873=this[_0x1cc6('0x24')](_0x196919);this[_0x1cc6('0x15')](_0xef6873),this['stopListening'](_0x196919['view']),_0xef6873['destroy'](),this[_0x1cc6('0x14')]['delete'](_0x196919),this[_0x1cc6('0x33')][_0x1cc6('0x19')](_0xef6873);}[_0x1cc6('0xa')](){const _0x1d7811=new _0x115504(this[_0x1cc6('0x2e')][_0x1cc6('0xe')]);return _0x1d7811[_0x1cc6('0x32')](),this['on'](_0x1cc6('0x16'),(_0x454717,_0x28b71c,_0x2e85e7,_0x765da1)=>{_0x765da1&&_0x1d7811[_0x1cc6('0x5')](_0x1cc6('0x3c')),_0x2e85e7?_0x1d7811[_0x1cc6('0x1b')]('minHeight')['to'](_0x2e85e7,_0x1cc6('0x29')):_0x1d7811[_0x1cc6('0x3c')]=null;}),_0x1d7811;}[_0x1cc6('0x31')](){var _0x1ffdc2;this[_0x1cc6('0x37')]=(null===(_0x1ffdc2=this['_annotations'])||void 0x0===_0x1ffdc2?void 0x0:_0x1ffdc2[_0x1cc6('0x3e')])?this[_0x1cc6('0x24')](this['_annotations'][_0x1cc6('0x3e')]):null;}['_getItemBefore'](_0x3cc073){var _0x5466d5;const _0x17fb42=this[_0x1cc6('0x33')][_0x1cc6('0x2')](_0x3cc073),_0x5e021e=_0x17fb42&&(null===(_0x5466d5=this[_0x1cc6('0x1a')])||void 0x0===_0x5466d5?void 0x0:_0x5466d5[_0x1cc6('0x2')](this[_0x1cc6('0x1a')][_0x1cc6('0xc')](_0x17fb42)-0x1));return _0x5e021e&&this[_0x1cc6('0x24')](_0x5e021e)||null;}['_getItemAfter'](_0x5131fe){var _0x110130;const _0x12d713=this[_0x1cc6('0x33')][_0x1cc6('0x2')](_0x5131fe),_0x4ac6cc=_0x12d713&&(null===(_0x110130=this[_0x1cc6('0x1a')])||void 0x0===_0x110130?void 0x0:_0x110130[_0x1cc6('0x2')](this[_0x1cc6('0x1a')][_0x1cc6('0xc')](_0x12d713)+0x1));return _0x4ac6cc&&this[_0x1cc6('0x24')](_0x4ac6cc)||null;}[_0x1cc6('0x3')](_0x478e85,_0x1d5df8){_0x478e85[_0x1cc6('0x3d')]();const _0x3dfd07=M(_0x1d5df8['bottom']+this[_0x1cc6('0x7')],_0x478e85[_0x1cc6('0x20')]);return!!_0x3dfd07&&(this[_0x1cc6('0x26')](_0x1d5df8,_0x1d5df8[_0x1cc6('0x20')]-_0x3dfd07),!0x0);}[_0x1cc6('0x40')](_0x4e02a2,_0x5be2eb){_0x4e02a2['updateHeight']();const _0x3b10af=M(_0x4e02a2[_0x1cc6('0x29')]+this[_0x1cc6('0x7')],_0x5be2eb['top']);return!!_0x3b10af&&(this[_0x1cc6('0x26')](_0x5be2eb,_0x5be2eb['top']+_0x3b10af,!0x1),!0x0);}[_0x1cc6('0x0')](_0xefdf4f){const _0x11dc85=this[_0x1cc6('0x33')][_0x1cc6('0x2')](_0xefdf4f);if(!_0x11dc85||!_0x11dc85['target']||!_0x11dc85['targetRect'])return;const _0x42ccb1=this[_0x1cc6('0x1c')](_0x11dc85,_0x11dc85[_0x1cc6('0xd')]);this[_0x1cc6('0x26')](_0xefdf4f,_0x42ccb1);}[_0x1cc6('0x1c')](_0x2fcba0,_0x13c86e){if(null===_0x13c86e)return 0x0;if(_0x2fcba0[_0x1cc6('0x38')]instanceof _0x264c12)return _0x13c86e[_0x1cc6('0x20')];{const _0x36e4b7=new _0x264c12(this[_0x1cc6('0x23')][_0x1cc6('0x13')])['top'];return _0x13c86e[_0x1cc6('0x20')]-_0x36e4b7;}}[_0x1cc6('0x26')](_0x5c80ba,_0x104732,_0x2d89bd=this[_0x1cc6('0x2e')][_0x1cc6('0x2f')][_0x1cc6('0x2')]('sidebar.preventScrollOutOfView')){_0x2d89bd&&(_0x104732=Math[_0x1cc6('0x42')](_0x104732,this['_getMaxAvailableTop'](_0x5c80ba))),_0x5c80ba[_0x1cc6('0x20')]=_0x104732;}[_0x1cc6('0x36')](_0x5a09f2){let _0x5e04b2=this[_0x1cc6('0xf')](_0x5a09f2),_0x3d504d=0x0;for(;_0x5e04b2;)_0x5e04b2[_0x1cc6('0x3d')](),_0x3d504d+=this[_0x1cc6('0x7')]+_0x5e04b2[_0x1cc6('0x41')],_0x5e04b2=this['_getItemBefore'](_0x5e04b2);return _0x3d504d;}}function M(_0x3cc541,_0x8c715a){return Math[_0x1cc6('0x42')](_0x3cc541-_0x8c715a,0x0);}function y(_0x10291f){return null!==_0x10291f&&_0x1cc6('0x4')==typeof _0x10291f&&0x1===_0x10291f['nodeType'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34db=['children','_badge','...','ck-annotation-counter','span','ck-annotation-counter__badge--','icon','bind','set','number','ck-annotation-counter__badge','setTemplate','ck-annotation-counter__badge--edit-mode','bindTemplate','toString','extendTemplate','counterView','annotationType','isDirty'];(function(_0x4db76e,_0x34db60){const _0x119a47=function(_0x589065){while(--_0x589065){_0x4db76e['push'](_0x4db76e['shift']());}};_0x119a47(++_0x34db60);}(_0x34db,0x1aa));const _0x119a=function(_0x4db76e,_0x34db60){_0x4db76e=_0x4db76e-0x0;let _0x119a47=_0x34db[_0x4db76e];return _0x119a47;};import{ButtonView as _0x4c151b,View as _0x373b9b}from'ckeditor5/src/ui.js';import _0x38ea64 from'../../../theme/icons/add-comment.svg';export default class D extends _0x4c151b{constructor(_0x589bd1){super(_0x589bd1);const _0x4b541e=this[_0x119a('0x5')];this[_0x119a('0x0')](_0x119a('0xa'),!0x1),this[_0x119a('0x0')](_0x119a('0x1'),0x0),this[_0x119a('0x12')]('_badge')['to'](this,_0x119a('0xa'),this,_0x119a('0x1'),(_0x5490b7,_0x30a858)=>_0x5490b7?_0x119a('0xd'):_0x30a858[_0x119a('0x6')]()),this[_0x119a('0x0')]('annotationType',''),this[_0x119a('0x11')]=_0x38ea64,this[_0x119a('0x7')]({'attributes':{'class':[_0x119a('0xe')]}}),this[_0x119a('0x8')]=new _0x373b9b(),this[_0x119a('0x8')][_0x119a('0x3')]({'tag':_0x119a('0xf'),'attributes':{'class':[_0x119a('0x2'),_0x4b541e['to'](_0x119a('0x9'),_0x41f2d3=>_0x119a('0x10')+_0x41f2d3),_0x4b541e['if'](_0x119a('0xa'),_0x119a('0x4'))]},'children':[{'text':_0x4b541e['to'](_0x119a('0xc'))}]}),this[_0x119a('0xb')]['add'](this['counterView']);}}
|