@ckeditor/ckeditor5-comments 41.0.0 → 41.1.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": "41.
|
|
3
|
+
"version": "41.1.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": "41.
|
|
48
|
-
"ckeditor5-collaboration": "41.
|
|
47
|
+
"ckeditor5": "41.1.0",
|
|
48
|
+
"ckeditor5-collaboration": "41.1.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 _0x109e=['destroy','isArray','annotation-invalid-target','stopListening','_type','_assertCorrectTarget','mainView','filter','view','offsetParent','isVisible','updateTargetRect','targetRect','add','render','item','target','_getNormalizedTarget','isActive','every','_target','getClientRects','focusableElements','nodeType','clear','element','remove','length','type','focusTracker','_id','object','function'];(function(_0x46a0bc,_0x109eac){const _0x498f1f=function(_0xb6f844){while(--_0xb6f844){_0x46a0bc['push'](_0x46a0bc['shift']());}};_0x498f1f(++_0x109eac);}(_0x109e,0x18c));const _0x498f=function(_0x46a0bc,_0x109eac){_0x46a0bc=_0x46a0bc-0x0;let _0x498f1f=_0x109e[_0x46a0bc];return _0x498f1f;};import{CKEditorError as _0x19bc25,Rect as _0x2ed40d,Collection as _0x350759,ObservableMixin as _0x153515}from'ckeditor5/src/utils.js';export default class d extends _0x153515(){constructor({view:_0x3d2052,target:_0x58d594,type:_0x26a3bc,isVisible:_0x4ccd32=!0x0}){super(),this[_0x498f('0x8')]=_0x3d2052,this[_0x498f('0x8')][_0x498f('0x19')]||this[_0x498f('0x8')][_0x498f('0xe')](),this['_type']=_0x26a3bc,this['_target']=_0x58d594,d[_0x498f('0x5')](this[_0x498f('0x11')]()),this[_0x498f('0x16')]=new _0x350759([this[_0x498f('0x8')]['element']],{'idProperty':_0x498f('0x1e')}),this[_0x498f('0x16')]['on']('add',(_0xcdd776,_0x37fcba)=>{this['view'][_0x498f('0x1d')][_0x498f('0xd')](_0x37fcba);}),this[_0x498f('0x16')]['on'](_0x498f('0x1a'),(_0x45b1fe,_0x2382bf)=>{this[_0x498f('0x8')][_0x498f('0x1d')][_0x498f('0x1a')](_0x2382bf);}),this['set'](_0x498f('0xa'),_0x4ccd32);}get[_0x498f('0x1c')](){return _0x498f('0x20')==typeof this[_0x498f('0x4')]?this[_0x498f('0x4')]():this['_type'];}get['innerView'](){return this[_0x498f('0x8')][_0x498f('0x6')];}get[_0x498f('0x10')](){const _0x330851=this[_0x498f('0x11')]();return d['_assertCorrectTarget'](_0x330851),_0x330851;}get[_0x498f('0xc')](){const _0x3128ff=this[_0x498f('0x10')];if(null===_0x3128ff)return null;if(_0x3128ff instanceof _0x2ed40d)return _0x3128ff;const _0x35bade=_0x3128ff[_0x498f('0x7')](_0x5503ce=>function(_0x49dad4){const _0xc0c2f6=_0x49dad4[_0x498f('0x9')];if(_0xc0c2f6)return!0x0;const _0x571e4f=_0x49dad4[_0x498f('0x15')]()['item'](0x0);return!!_0x571e4f;}(_0x5503ce));return 0x0===_0x35bade[_0x498f('0x1b')]?null:new _0x2ed40d(_0x35bade[0x0][_0x498f('0x15')]()[_0x498f('0xf')](0x0));}get[_0x498f('0x12')](){return this['view'][_0x498f('0x12')];}set[_0x498f('0x12')](_0xc3dfb1){this[_0x498f('0x8')][_0x498f('0x12')]=_0xc3dfb1,this[_0x498f('0x8')][_0x498f('0x6')]['isActive']=_0xc3dfb1;}[_0x498f('0xb')](){this[_0x498f('0x8')][_0x498f('0xc')]=this[_0x498f('0xc')];}[_0x498f('0x0')](){this['focusableElements'][_0x498f('0x3')](),this['focusableElements'][_0x498f('0x18')](),this[_0x498f('0x3')]();}['refreshVisibility'](){this[_0x498f('0xa')]=!!this[_0x498f('0xc')];}static[_0x498f('0x5')](_0x442a45){if(!(null===_0x442a45||_0x442a45 instanceof _0x2ed40d||Array[_0x498f('0x1')](_0x442a45)&&_0x442a45[_0x498f('0x13')](_0x1fdc7b=>y(_0x1fdc7b))))throw new _0x19bc25(_0x498f('0x2'),null,{'target':_0x442a45});}[_0x498f('0x11')](){const _0x58f52e=_0x498f('0x20')==typeof this[_0x498f('0x14')]?this[_0x498f('0x14')]():this[_0x498f('0x14')];return y(_0x58f52e)?[_0x58f52e]:_0x58f52e;}}function y(_0x4ce374){return null!==_0x4ce374&&_0x498f('0x1f')==typeof _0x4ce374&&_0x498f('0x17')in _0x4ce374&&0x1===_0x4ce374[_0x498f('0x17')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36d2=['focusTracker','getIndex','left','innerView','blur','updateTargetRect','_focusTracker','delete','focusableElements','destroy','getByInnerView','add','length','_getOrderInContent','targetRect','annotationcollection-not-existing-item','refreshPositioning','change:isFocused','_innerViewToAnnotation','sort','listenTo','annotationcollection-duplicated-item','get','stopListening','isFocused','set','_sort','has','remove','_viewToAnnotation','fire','clear','view','from','top'];(function(_0x1d4d26,_0x36d250){const _0x29b06b=function(_0x55e32a){while(--_0x55e32a){_0x1d4d26['push'](_0x1d4d26['shift']());}};_0x29b06b(++_0x36d250);}(_0x36d2,0xdf));const _0x29b0=function(_0x1d4d26,_0x36d250){_0x1d4d26=_0x1d4d26-0x0;let _0x29b06b=_0x36d2[_0x1d4d26];return _0x29b06b;};import{CKEditorError as _0x57284f,Collection as _0x49aaa4,FocusTracker as _0x2b5702}from'ckeditor5/src/utils.js';export default class x extends _0x49aaa4{constructor(_0x217eaa=[]){super(),this[_0x29b0('0x5')]=new Map(),this[_0x29b0('0x10')]=new Map(),this['_focusTracker']=new _0x2b5702(),this['_focusTracker']['on'](_0x29b0('0x4'),(_0x205743,_0x489815,_0x579934)=>{_0x579934||this[_0x29b0('0x11')](_0x29b0('0x1a'));});for(const _0x5ec4e7 of _0x217eaa)this[_0x29b0('0x21')](_0x5ec4e7);}get[_0x29b0('0xb')](){return this[_0x29b0('0x1c')][_0x29b0('0xb')];}[_0x29b0('0x21')](_0x3e2448){if(this[_0x29b0('0xe')](_0x3e2448))throw new _0x57284f(_0x29b0('0x8'),null);this[_0x29b0('0x5')][_0x29b0('0xc')](_0x3e2448[_0x29b0('0x19')],_0x3e2448),this['_viewToAnnotation'][_0x29b0('0xc')](_0x3e2448[_0x29b0('0x13')],_0x3e2448);for(const _0x4d8a36 of _0x3e2448['focusableElements'])this[_0x29b0('0x1c')][_0x29b0('0x21')](_0x4d8a36);this[_0x29b0('0x7')](_0x3e2448[_0x29b0('0x1e')],'add',(_0x19e975,_0x4789a6)=>{this[_0x29b0('0x1c')]['add'](_0x4789a6);}),this[_0x29b0('0x7')](_0x3e2448[_0x29b0('0x1e')],'remove',(_0x55b051,_0x38069c)=>{this[_0x29b0('0x1c')]['remove'](_0x38069c);}),this['listenTo'](_0x3e2448[_0x29b0('0x13')][_0x29b0('0x16')],_0x29b0('0x4'),(_0x429a41,_0x4e33ab,_0x2adeb0)=>{_0x2adeb0&&this[_0x29b0('0x11')]('focus',_0x3e2448);}),_0x3e2448[_0x29b0('0x1b')]();const _0x122402=this[_0x29b0('0x0')](_0x3e2448['view'][_0x29b0('0x1')]);return super['add'](_0x3e2448,_0x122402);}['remove'](_0x5c7dcd){if(!this[_0x29b0('0xe')](_0x5c7dcd))throw new _0x57284f(_0x29b0('0x2'),null);this[_0x29b0('0xa')](_0x5c7dcd[_0x29b0('0x13')][_0x29b0('0x16')]),this[_0x29b0('0xa')](_0x5c7dcd[_0x29b0('0x1e')]);for(const _0x18632f of _0x5c7dcd['focusableElements'])this[_0x29b0('0x1c')]['remove'](_0x18632f);return this[_0x29b0('0x10')][_0x29b0('0x1d')](_0x5c7dcd[_0x29b0('0x13')]),this[_0x29b0('0x5')]['delete'](_0x5c7dcd[_0x29b0('0x19')]),super[_0x29b0('0xf')](_0x5c7dcd);}[_0x29b0('0x20')](_0xdbb88a){return this[_0x29b0('0x5')][_0x29b0('0x9')](_0xdbb88a);}['getByView'](_0x2ad585){return this[_0x29b0('0x10')]['get'](_0x2ad585);}[_0x29b0('0x1f')](){super[_0x29b0('0x12')](),this[_0x29b0('0xa')](),this[_0x29b0('0x5')][_0x29b0('0x12')](),this['_viewToAnnotation'][_0x29b0('0x12')](),this[_0x29b0('0x1c')][_0x29b0('0x1f')]();}[_0x29b0('0x3')](){for(const _0xe8e8fc of this)_0xe8e8fc[_0x29b0('0x1b')]();this[_0x29b0('0xd')]();}[_0x29b0('0xd')](){const _0x28153e=Array[_0x29b0('0x14')](this)[_0x29b0('0x6')]((_0x22beb4,_0x19256a)=>v(_0x22beb4[_0x29b0('0x13')][_0x29b0('0x1')],_0x19256a[_0x29b0('0x13')][_0x29b0('0x1')]));for(let _0x1628d7=_0x28153e[_0x29b0('0x22')]-0x1;_0x1628d7>0x0;_0x1628d7--){const _0x3e2b9a=_0x28153e[_0x1628d7];_0x1628d7!==this[_0x29b0('0x17')](_0x3e2b9a)&&(this[_0x29b0('0xf')](_0x3e2b9a),this[_0x29b0('0x21')](_0x3e2b9a));}}[_0x29b0('0x0')](_0x29cb10){let _0x285756=0x0;if(!_0x29cb10)return this['length'];for(const _0x967327 of this){const _0x544717=_0x967327[_0x29b0('0x13')][_0x29b0('0x1')];if(_0x544717){if(v(_0x29cb10,_0x544717)<0x0)return _0x285756;_0x285756++;}}return _0x285756;}}export function bindAnnotationCollections({source:_0x3dbe1a,target:_0x31f12d,filter:_0xf585bd}){for(const _0x19d806 of _0x3dbe1a)_0xf585bd(_0x19d806)&&_0x31f12d[_0x29b0('0x21')](_0x19d806);_0x31f12d[_0x29b0('0x7')](_0x3dbe1a,'add',(_0x192325,_0x19647d)=>{_0xf585bd(_0x19647d)&&_0x31f12d[_0x29b0('0x21')](_0x19647d);}),_0x31f12d['listenTo'](_0x3dbe1a,_0x29b0('0xf'),(_0x55c6a2,_0x5434ba)=>{_0x31f12d[_0x29b0('0xe')](_0x5434ba)&&_0x31f12d[_0x29b0('0xf')](_0x5434ba);});}function v(_0x1ebc79,_0x549e07){if(null===_0x1ebc79&&null===_0x549e07)return 0x0;if(null===_0x1ebc79)return-0x1;if(null===_0x549e07)return 0x1;const _0xae6194=_0x1ebc79['top']-_0x549e07[_0x29b0('0x15')];return 0x0==_0xae6194?_0x1ebc79['left']-_0x549e07[_0x29b0('0x18')]:_0xae6194;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x267b=['_bindAnnotationsToVisibleAnnotations','activeAnnotations','set','stopListening','createAnnotationView','getByInnerView','collection','source','pluginName','activate','fire','destroy','refreshPositioning','element','focusTracker','deactivateAll','createAnnotation','add','_activateAnnotation','_deactivateAllAnnotations','isVisible','change:isVisible','listenTo','has','remove','_visibleAnnotations','refreshVisibility','view','_addActiveAnnotation'];(function(_0x5882d3,_0x267b3c){const _0x216930=function(_0x1e2bee){while(--_0x1e2bee){_0x5882d3['push'](_0x5882d3['shift']());}};_0x216930(++_0x267b3c);}(_0x267b,0x1d8));const _0x2169=function(_0x5882d3,_0x267b3c){_0x5882d3=_0x5882d3-0x0;let _0x216930=_0x267b[_0x5882d3];return _0x216930;};import{ContextPlugin as _0xfe1013}from'ckeditor5/src/core.js';import _0x453fdf from'./annotation.js';import _0x3cd295 from'./annotationcollection.js';import _0x4244ee from'./view/annotationview.js';export default class b extends _0xfe1013{static get[_0x2169('0x0')](){return'Annotations';}constructor(_0x3faa8a){super(_0x3faa8a),this[_0x2169('0x1b')]=new _0x3cd295(),this['_visibleAnnotations']=new _0x3cd295(),this[_0x2169('0x17')](_0x2169('0x16'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}['add'](_0x15ab00){this[_0x2169('0x1b')][_0x2169('0x9')](_0x15ab00);}[_0x2169('0x10')](_0x5919d0){this[_0x2169('0x1b')][_0x2169('0x10')](_0x5919d0),_0x5919d0['destroy']();}[_0x2169('0x12')](){for(const _0x2248e7 of this[_0x2169('0x1b')])_0x2248e7[_0x2169('0x12')]();}['refreshPositioning'](){this[_0x2169('0x11')][_0x2169('0x4')]();}['getByInnerView'](_0xcc06b7){return this[_0x2169('0x1b')][_0x2169('0x1a')](_0xcc06b7);}[_0x2169('0x7')](){this[_0x2169('0x2')](_0x2169('0xb'));}[_0x2169('0x3')](){for(const _0x51c52d of this[_0x2169('0x1b')])_0x51c52d[_0x2169('0x3')]();this[_0x2169('0x11')][_0x2169('0x3')](),this[_0x2169('0x1b')][_0x2169('0x3')](),super['destroy']();}[_0x2169('0x1')](_0x24d0ea){this['fire'](_0x2169('0xa'),_0x24d0ea);}[_0x2169('0x8')](_0x431ec3){return new _0x453fdf(_0x431ec3);}[_0x2169('0x19')](_0x2de991,_0x373fe7){return new _0x4244ee(_0x2de991,_0x373fe7);}[_0x2169('0x14')](_0x44a1d3){const _0x81b2eb=new Set(this[_0x2169('0x16')]);_0x81b2eb['add'](_0x44a1d3),this[_0x2169('0x16')]=_0x81b2eb;}['_removeActiveAnnotation'](_0x5cb436){const _0x4c46fd=new Set(this[_0x2169('0x16')]);_0x4c46fd['delete'](_0x5cb436),this['activeAnnotations']=_0x4c46fd;}[_0x2169('0x15')](){const _0x19fd62=this[_0x2169('0x1b')],_0x1a42c3=this[_0x2169('0x11')];function _0x35a73b(_0x44b6a2){const _0x47dbd7=_0x44b6a2[_0x2169('0x1c')];_0x47dbd7[_0x2169('0xc')]&&!_0x1a42c3[_0x2169('0xf')](_0x47dbd7)?_0x1a42c3['add'](_0x47dbd7):!_0x47dbd7[_0x2169('0xc')]&&_0x1a42c3['has'](_0x47dbd7)&&_0x1a42c3[_0x2169('0x10')](_0x47dbd7),_0x47dbd7[_0x2169('0x13')][_0x2169('0x6')][_0x2169('0x10')](_0x47dbd7[_0x2169('0x13')][_0x2169('0x5')]),_0x47dbd7[_0x2169('0x13')][_0x2169('0x6')][_0x2169('0x9')](_0x47dbd7[_0x2169('0x13')][_0x2169('0x5')]);}this[_0x2169('0xe')](_0x19fd62,_0x2169('0x9'),(_0x30869f,_0x841ad4)=>{_0x841ad4['isVisible']&&_0x1a42c3['add'](_0x841ad4),this[_0x2169('0xe')](_0x841ad4,_0x2169('0xd'),_0x35a73b);}),this[_0x2169('0xe')](_0x19fd62,'remove',(_0x47f6aa,_0x369220)=>{_0x1a42c3[_0x2169('0xf')](_0x369220)&&_0x1a42c3[_0x2169('0x10')](_0x369220),this[_0x2169('0x18')](_0x369220,_0x2169('0xd'),_0x35a73b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41b6=['collection','_visibleAnnotations','_removeActiveAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','activate','add','attach','annotationsuis-annotation-mismatch','find','_uis','detach','listenTo','from','filter','remove','change:activeAnnotation','isActive','activeUIs','destroy','push','deactivateAll','_addActiveAnnotation','_setSelectedAnnotations','delete','hasActive','register','stopListening','setActiveAnnotation','AnnotationsUIs','context','switchTo','get','has','init','set','_activateAnnotation','_uisData','function','_deactivateAllAnnotations','type','plugins','deactivate','activeAnnotations','annotationsuis-missing-ui'];(function(_0x4d77eb,_0x41b67a){const _0x17f635=function(_0x217354){while(--_0x217354){_0x4d77eb['push'](_0x4d77eb['shift']());}};_0x17f635(++_0x41b67a);}(_0x41b6,0x1a9));const _0x17f6=function(_0x4d77eb,_0x41b67a){_0x4d77eb=_0x4d77eb-0x0;let _0x17f635=_0x41b6[_0x4d77eb];return _0x17f635;};import{ContextPlugin as _0x49a866}from'ckeditor5/src/core.js';import{CKEditorError as _0x3539a4}from'ckeditor5/src/utils.js';import _0x4dd8b2,{bindAnnotationCollections as _0xbe23fd}from'./annotationcollection.js';import _0x106ebf from'./annotations.js';export default class j extends _0x49a866{static get['requires'](){return[_0x106ebf];}static get['pluginName'](){return _0x17f6('0x2b');}constructor(_0x4e3e74){super(_0x4e3e74),this[_0x17f6('0x20')]=new Set(),this[_0x17f6('0x18')]=new Map(),this[_0x17f6('0x7')]=new Map();}[_0x17f6('0x4')](){const _0xd39175=this[_0x17f6('0x0')]['plugins'][_0x17f6('0x2')](_0x106ebf);this[_0x17f6('0x1a')](_0xd39175,_0x17f6('0x6'),(_0x25d599,_0x13d44d)=>{for(const _0x43d356 of this[_0x17f6('0x20')]){const _0x270d3b=this[_0x17f6('0x18')][_0x17f6('0x2')](_0x43d356);(0x0,this[_0x17f6('0x7')][_0x17f6('0x2')](_0x43d356)['filter'])(_0x13d44d)&&_0x270d3b[_0x17f6('0x2a')](_0x13d44d);}}),this[_0x17f6('0x1a')](_0xd39175,_0x17f6('0x9'),()=>{for(const _0x1f341f of this['activeUIs']){this[_0x17f6('0x18')][_0x17f6('0x2')](_0x1f341f)['setActiveAnnotation'](null);}}),this[_0x17f6('0x1a')](_0xd39175[_0x17f6('0x10')],_0x17f6('0x14'),(_0x529757,_0x22a5e5)=>{this[_0x17f6('0x12')](_0x22a5e5);});}[_0x17f6('0x27')](){return this[_0x17f6('0x20')]['size']>0x0;}['isActive'](_0x70eb38){return this[_0x17f6('0x20')][_0x17f6('0x3')](_0x70eb38);}[_0x17f6('0x13')](_0x191b65,_0x1aa98a=()=>!0x0){const _0xb3f6df=this[_0x17f6('0x0')][_0x17f6('0xb')][_0x17f6('0x2')](_0x106ebf);if(!this[_0x17f6('0x18')][_0x17f6('0x3')](_0x191b65))throw new _0x3539a4(_0x17f6('0xe'),this,{'uiName':_0x191b65});this[_0x17f6('0x1f')](_0x191b65)&&this['deactivate'](_0x191b65),this['activeUIs'][_0x17f6('0x14')](_0x191b65);const _0x31cdfe=new _0x4dd8b2(),_0x15f4cf=_0xb3f6df[_0x17f6('0x10')];_0xbe23fd({'source':_0x15f4cf,'target':_0x31cdfe,'filter':_0x1aa98a}),this[_0x17f6('0x7')][_0x17f6('0x5')](_0x191b65,{'collection':_0x31cdfe,'filter':_0x1aa98a});const _0x3ab273=this[_0x17f6('0x18')][_0x17f6('0x2')](_0x191b65);_0x3ab273[_0x17f6('0x15')](_0x31cdfe),this[_0x17f6('0x1a')](_0x3ab273,_0x17f6('0x1e'),(_0x297c00,_0x1f2a59,_0x9aa215,_0x14065b)=>{_0x14065b&&_0xb3f6df[_0x17f6('0x11')](_0x14065b),_0x9aa215&&_0xb3f6df[_0x17f6('0x24')](_0x9aa215);});}[_0x17f6('0xc')](_0x5a0d2f){if(this[_0x17f6('0x20')][_0x17f6('0x26')](_0x5a0d2f),!this['_uis'][_0x17f6('0x3')](_0x5a0d2f))throw new _0x3539a4(_0x17f6('0xe'),this,{'uiName':_0x5a0d2f});const _0x5a807a=this['_uis'][_0x17f6('0x2')](_0x5a0d2f);_0x5a807a[_0x17f6('0x19')](),this[_0x17f6('0x29')](_0x5a807a),this[_0x17f6('0x7')]['get'](_0x5a0d2f)['collection'][_0x17f6('0x21')](),this['_uisData']['delete'](_0x5a0d2f);}[_0x17f6('0x1')](_0x47aab3){if(!this[_0x17f6('0x18')][_0x17f6('0x3')](_0x47aab3))throw new _0x3539a4(_0x17f6('0xe'),this,{'uiName':_0x47aab3});const _0x423236=this[_0x17f6('0x0')][_0x17f6('0xb')][_0x17f6('0x2')](_0x106ebf),_0x160951=Array[_0x17f6('0x1b')](_0x423236[_0x17f6('0xd')])[0x0]||null;this['deactivateAll'](),this[_0x17f6('0x13')](_0x47aab3);const _0x10cd1c=this[_0x17f6('0x18')]['get'](_0x47aab3);_0x10cd1c[_0x17f6('0x2a')](_0x160951),_0x10cd1c[_0x17f6('0x25')]&&_0x160951&&_0x10cd1c[_0x17f6('0x25')]([_0x160951]);}[_0x17f6('0x23')](){for(const _0x3e6753 of this[_0x17f6('0x20')])this[_0x17f6('0xc')](_0x3e6753);}[_0x17f6('0x28')](_0x4182ae,_0x3f7f2a){if(this[_0x17f6('0x18')][_0x17f6('0x3')](_0x4182ae))throw new _0x3539a4('annotationsuis-register-already-registered');if(_0x17f6('0x8')!=typeof _0x3f7f2a[_0x17f6('0x15')]||_0x17f6('0x8')!=typeof _0x3f7f2a[_0x17f6('0x19')]||_0x17f6('0x8')!=typeof _0x3f7f2a['setActiveAnnotation'])throw new _0x3539a4('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x4182ae,_0x3f7f2a);}['refilterAnnotations'](){const _0xcff963=this[_0x17f6('0x0')]['plugins'][_0x17f6('0x2')](_0x106ebf)['collection'],_0x69e746=new Map(),_0x4d63a1=Array['from'](this[_0x17f6('0x20')]);for(const _0x446585 of this['activeUIs']){const _0x10c07a=this[_0x17f6('0x7')]['get'](_0x446585)[_0x17f6('0xf')];for(const _0x447ef4 of _0x10c07a)_0x69e746[_0x17f6('0x5')](_0x447ef4,_0x446585);}for(const _0x329bff of _0xcff963){const _0x466f48=_0x69e746[_0x17f6('0x2')](_0x329bff);this[_0x17f6('0x12')](_0x329bff);const _0x5f4277=_0x4d63a1[_0x17f6('0x17')](_0x487a7a=>this['_uisData']['get'](_0x487a7a)[_0x17f6('0x1c')](_0x329bff));_0x466f48!==_0x5f4277&&(_0x466f48&&this[_0x17f6('0x7')][_0x17f6('0x2')](_0x466f48)[_0x17f6('0xf')][_0x17f6('0x1d')](_0x329bff),_0x5f4277&&this['_uisData'][_0x17f6('0x2')](_0x5f4277)['collection'][_0x17f6('0x14')](_0x329bff));}}[_0x17f6('0x21')](){this['deactivateAll'](),super[_0x17f6('0x21')]();}[_0x17f6('0x12')](_0x2251f1){const _0x1aff67=[];for(const _0x26426a of this['activeUIs']){(0x0,this['_uisData'][_0x17f6('0x2')](_0x26426a)['filter'])(_0x2251f1)&&_0x1aff67[_0x17f6('0x22')](_0x26426a);}if(_0x1aff67['length']>0x1)throw new _0x3539a4(_0x17f6('0x16'),null,{'matchedUIs':_0x1aff67,'annotationType':_0x2251f1[_0x17f6('0xa')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5234=['delete','model','isReadOnly','getRanges','_editorAnnotationsData','registerAnnotation','cancel','push','_dataCollectors','annotation','requires','refreshSelectedViews','isEqual','remove','from','_editorAnnotations','selection','editor','element','isCollapsed','containsRange','map','collection','get','focusTracker','has','blur','view','getOrderedSelectedAnnotations','init','pluginName','directChange','fire','addSourceCollector','function','listenTo','add','editing','update','document','hasDomSelection','change:range','change:isFocused'];(function(_0x207e67,_0x523480){const _0x212f6e=function(_0xf3473b){while(--_0xf3473b){_0x207e67['push'](_0x207e67['shift']());}};_0x212f6e(++_0x523480);}(_0x5234,0xec));const _0x212f=function(_0x207e67,_0x523480){_0x207e67=_0x207e67-0x0;let _0x212f6e=_0x5234[_0x207e67];return _0x212f6e;};import{Plugin as _0x372de3}from'ckeditor5/src/core.js';import{CKEditorError as _0xcbee8b}from'ckeditor5/src/utils.js';import{debounce as _0x28b127}from'lodash-es';import _0x1ecf18 from'./annotations.js';export default class k extends _0x372de3{static get[_0x212f('0x20')](){return[_0x1ecf18];}static get[_0x212f('0x9')](){return'EditorAnnotations';}constructor(_0xfe05d6){super(_0xfe05d6),this['_dataCollectors']=new Set(),this[_0x212f('0x25')]=new Set();}[_0x212f('0x8')](){const _0x4f59b0=this[_0x212f('0x27')],_0x2a23ac=_0x4f59b0[_0x212f('0x17')][_0x212f('0x12')]['selection'],_0x2a2c4d=_0x28b127(()=>this[_0x212f('0x21')](),0xa);_0x2a23ac['on'](_0x212f('0x14'),(_0x4e8d75,_0x1aa0d3)=>{_0x1aa0d3[_0x212f('0xa')]&&(_0x2a2c4d[_0x212f('0x1c')](),this[_0x212f('0x21')]());}),this['listenTo'](_0x4f59b0[_0x212f('0x10')][_0x212f('0x6')][_0x212f('0x12')],_0x212f('0x15'),(_0x6af1ee,_0xd79798,_0x18750a)=>{_0x18750a&&_0x2a2c4d();}),this['listenTo'](_0x4f59b0['ui']['focusTracker'],'change:isFocused',(_0x4f5d4d,_0x48d42b,_0x1d2293)=>{_0x1d2293||_0x4f59b0[_0x212f('0x18')]||this[_0x212f('0xb')](_0x212f('0x5'),{'isAnnotationTracked':_0x302ad2=>this[_0x212f('0x1a')][_0x212f('0x4')](_0x302ad2['innerView'])});}),this['listenTo'](this['editor']['ui'],_0x212f('0x11'),()=>this[_0x212f('0xb')]('uiUpdate'));}[_0x212f('0x1b')](_0x32444e){if(this[_0x212f('0x25')][_0x212f('0x4')](_0x32444e['view']))return;this[_0x212f('0x25')]['add'](_0x32444e[_0x212f('0x6')]),this[_0x212f('0x27')]['ui'][_0x212f('0x3')][_0x212f('0xf')](_0x32444e[_0x212f('0x6')][_0x212f('0x28')]);const _0x1261d7=this[_0x212f('0x27')]['plugins'][_0x212f('0x2')](_0x1ecf18);this[_0x212f('0xe')](_0x1261d7[_0x212f('0x1')],_0x212f('0x23'),(_0x80fd3e,_0x36218b)=>{this[_0x212f('0x27')]['ui']['focusTracker'][_0x212f('0x23')](_0x36218b[_0x212f('0x6')]['element']),this[_0x212f('0x25')][_0x212f('0x16')](_0x36218b['view']);});}[_0x212f('0x13')](){return this[_0x212f('0x27')][_0x212f('0x10')][_0x212f('0x6')][_0x212f('0x13')];}[_0x212f('0xc')](_0x43bbcf){if(_0x212f('0xd')!=typeof _0x43bbcf)throw new _0xcbee8b('editorannotations-invalid-source-callback');this[_0x212f('0x1e')][_0x212f('0xf')](_0x43bbcf);}[_0x212f('0x21')](){this['fire']('refresh');}[_0x212f('0x7')]({activeAnnotation:_0x1a3339,annotations:_0x4623ea}){const _0x4b955c=[],_0x1953b5=this[_0x212f('0x27')]['model'][_0x212f('0x12')][_0x212f('0x26')],_0x4e46b3=Array[_0x212f('0x24')](_0x1953b5[_0x212f('0x19')]());for(const [_0x49934f,_0x5a0fd5]of this['_editorAnnotationsData']){const _0x2c5975=_0x1083ed(_0x5a0fd5),_0x289ca4=_0x4623ea['getByInnerView'](_0x49934f);_0x2c5975&&_0x289ca4&&_0x4b955c[_0x212f('0x1d')]({'annotation':_0x289ca4,'range':_0x2c5975});}function _0x1083ed(_0x22f0b2){for(const _0x3ce17a of _0x22f0b2)for(const _0xe01491 of _0x4e46b3)if(_0x3ce17a[_0x212f('0x2a')](_0xe01491,!_0x1953b5[_0x212f('0x29')]))return _0x3ce17a;return null;}return _0x4b955c['sort']((_0x4eec96,_0x4a7eef)=>{const _0x500b24=_0x4eec96['range'],_0x520d8c=_0x4a7eef['range'];if(!_0x500b24[_0x212f('0x22')](_0x520d8c)){if(_0x500b24['containsRange'](_0x520d8c,!0x0))return 0x1;if(_0x520d8c['containsRange'](_0x500b24,!0x0))return-0x1;}return _0x4eec96[_0x212f('0x1f')]==_0x1a3339?-0x1:_0x4a7eef[_0x212f('0x1f')]==_0x1a3339?0x1:0x0;})[_0x212f('0x0')](_0x1ffe0c=>_0x1ffe0c[_0x212f('0x1f')]);}get['_editorAnnotationsData'](){const _0x24d2d9=new Map();for(const _0x29b4d7 of Array[_0x212f('0x24')](this[_0x212f('0x1e')]))for(const [_0x249808,_0x3360c1]of _0x29b4d7())_0x24d2d9['set'](_0x249808,_0x3360c1);return _0x24d2d9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b54=['inlineannotations-attach-already-attached','setActiveAnnotation','right','updatePosition','length','stopListening','getByView','_removeAnnotationFromBalloon','init','editor','focusTracker','push','isFocused','getClientRects','update','_setSelectedAnnotations','getBoundingClientRect','_manuallyClosed','hasView','Esc','left','blur','addObserver','viewRangeToDom','find','annotations','inlineannotations-detach-not-attached','clear','_selectedAnnotations','visibleView','mousedown','has','destroy','plugins','afterInit','isActive','keystrokes','_addedAnnotations','_closeAnnotation','editableElement','attach','isAttached','context','_forceRefresh','listenTo','requires','switchTo','get','focus','targetRect','_addAnnotationToBalloon','inline','document','from','InlineAnnotations','width','selection','add','_balloon','set','editing','bottom','includes','register','collapse','delete','remove','activeAnnotation','view','top','target'];(function(_0x41fd9d,_0x4b54b8){const _0x5d82c3=function(_0x559dd6){while(--_0x559dd6){_0x41fd9d['push'](_0x41fd9d['shift']());}};_0x5d82c3(++_0x4b54b8);}(_0x4b54,0x179));const _0x5d82=function(_0x41fd9d,_0x4b54b8){_0x41fd9d=_0x41fd9d-0x0;let _0x5d82c3=_0x4b54[_0x41fd9d];return _0x5d82c3;};import{Plugin as _0x424f45}from'ckeditor5/src/core.js';import _0x52b44d from'./annotationsuis.js';import _0x5af9e3 from'./editorannotations.js';import{ContextualBalloon as _0x29abf3}from'ckeditor5/src/ui.js';import{MouseObserver as _0x35deab}from'ckeditor5/src/engine.js';import{CKEditorError as _0x5244fc,Rect as _0x175c7c}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x424f45{static get[_0x5d82('0x17')](){return[_0x5af9e3,_0x29abf3,_0x52b44d];}static get['pluginName'](){return _0x5d82('0x20');}constructor(_0x3dcefa){super(_0x3dcefa),_0x3dcefa['editing'][_0x5d82('0x2e')][_0x5d82('0x0')](_0x35deab),this[_0x5d82('0x13')]=!0x1,this[_0x5d82('0x25')](_0x5d82('0x2d'),null),this[_0x5d82('0x3')]=null,this[_0x5d82('0x42')]=new Set(),this['_balloon']=_0x3dcefa['plugins']['get'](_0x29abf3),this[_0x5d82('0xf')]=new Set(),this['_selectedAnnotations']=[],this[_0x5d82('0x15')]=!0x1;}[_0x5d82('0x39')](){const _0x5c0e0a=this[_0x5d82('0x3a')]['plugins']['get'](_0x52b44d);_0x5c0e0a[_0x5d82('0x14')]===this[_0x5d82('0x3a')]&&(_0x5c0e0a[_0x5d82('0x29')](_0x5d82('0x1d'),this),this[_0x5d82('0x3a')][_0x5d82('0xe')][_0x5d82('0x25')](_0x5d82('0x44'),(_0x3493a3,_0x50a129)=>{const _0x41f5bc=this['_balloon'];if(this['isAttached']&&_0x41f5bc[_0x5d82('0x7')]){const _0x131a42=this[_0x5d82('0x3')][_0x5d82('0x37')](_0x41f5bc[_0x5d82('0x7')]);_0x131a42&&this[_0x5d82('0x10')](_0x131a42),_0x50a129();}}));}[_0x5d82('0xc')](){const _0x15fc95=this[_0x5d82('0x3a')][_0x5d82('0xb')][_0x5d82('0x19')](_0x52b44d);_0x15fc95[_0x5d82('0x14')]===this[_0x5d82('0x3a')]&&(_0x15fc95['hasActive']()||_0x15fc95[_0x5d82('0x18')](_0x5d82('0x1d')));}[_0x5d82('0x32')](_0x3cef9c){_0x3cef9c!==this[_0x5d82('0x2d')]&&(this[_0x5d82('0x2d')]&&(this[_0x5d82('0x2d')][_0x5d82('0xd')]=!0x1),_0x3cef9c&&this[_0x5d82('0x3a')]['ui'][_0x5d82('0x3b')]['isFocused']&&(this[_0x5d82('0x3')][_0x5d82('0x9')](_0x3cef9c)&&this['_addAnnotationToBalloon'](_0x3cef9c,!0x0),_0x3cef9c[_0x5d82('0xd')]=!0x0),_0x3cef9c||this[_0x5d82('0x40')]([]),this[_0x5d82('0x2d')]=_0x3cef9c);}[_0x5d82('0x12')](_0x1f65ca){this[_0x5d82('0x3')]=_0x1f65ca;const _0x4610b2=this[_0x5d82('0x3a')]['plugins']['get'](_0x52b44d),_0x54bd45=this['_balloon'];if(this['isAttached'])throw new _0x5244fc(_0x5d82('0x31'),this);if(_0x4610b2['context']!==this[_0x5d82('0x3a')])throw new _0x5244fc('inlineannotations-not-allowed-with-context',this);const _0x3c44b5=this['editor'][_0x5d82('0xb')][_0x5d82('0x19')](_0x5af9e3);this[_0x5d82('0x16')](_0x3c44b5,'refresh',()=>{const _0x3bd889=_0x3c44b5['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x5d82('0x2d')]});var _0x221244,_0x5af112;!this[_0x5d82('0x15')]&&(_0x221244=_0x3bd889,_0x5af112=this['_selectedAnnotations'],_0x221244[_0x5d82('0x35')]===_0x5af112[_0x5d82('0x35')]&&_0x221244['every'](_0x3f8ee0=>_0x5af112['includes'](_0x3f8ee0)))||(this[_0x5d82('0x15')]=!0x1,this[_0x5d82('0x40')](_0x3bd889),this[_0x5d82('0x32')](_0x3bd889[0x0]||null));}),this[_0x5d82('0x16')](_0x3c44b5,_0x5d82('0x46'),(_0x5e2cc0,{isAnnotationTracked:_0x2b9c38})=>{this[_0x5d82('0x2d')]&&_0x2b9c38(this[_0x5d82('0x2d')])&&(this[_0x5d82('0x40')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](this[_0x5d82('0x3a')]['ui']['focusTracker'],'change:isFocused',(_0x1c80fb,_0x2b2ebb,_0x424d1d)=>{_0x424d1d||this[_0x5d82('0x32')](null);}),this[_0x5d82('0x16')](_0x1f65ca,_0x5d82('0x2c'),(_0x40d9c0,_0xa917c5)=>{this[_0x5d82('0x38')](_0xa917c5),_0xa917c5===this[_0x5d82('0x2d')]&&this[_0x5d82('0x32')](null);}),this[_0x5d82('0x16')](_0x54bd45,'change:visibleView',(_0x534306,_0x232b68,_0x36d4c7,_0x198335)=>{_0x198335&&this['stopListening'](_0x198335);const _0x4aea9b=_0x1f65ca[_0x5d82('0x37')](_0x36d4c7);_0x36d4c7&&_0x4aea9b&&(this['listenTo'](_0x36d4c7,'change:height',()=>{_0x54bd45['updatePosition']();}),this[_0x5d82('0x16')](_0x36d4c7,'Esc',()=>{this['_closeAnnotation'](_0x4aea9b),this[_0x5d82('0x3a')][_0x5d82('0x26')]['view']['focus']();}),this[_0x5d82('0x2d')]!==_0x4aea9b&&this[_0x5d82('0x32')](_0x4aea9b));}),this['listenTo'](this[_0x5d82('0x3a')]['ui'],_0x5d82('0x3f'),()=>{_0x54bd45[_0x5d82('0x7')]&&(_0x1f65ca[_0x5d82('0x37')](_0x54bd45[_0x5d82('0x7')])&&_0x54bd45[_0x5d82('0x34')]());}),this['listenTo'](this[_0x5d82('0x3a')][_0x5d82('0x26')][_0x5d82('0x2e')]['document'],_0x5d82('0x8'),()=>{this[_0x5d82('0x15')]=!0x0,this[_0x5d82('0x42')][_0x5d82('0x5')]();}),this[_0x5d82('0x3a')][_0x5d82('0x26')][_0x5d82('0x2e')][_0x5d82('0x1e')][_0x5d82('0x22')][_0x5d82('0x11')]&&this['editor']['editing'][_0x5d82('0x2e')][_0x5d82('0x1a')](),this[_0x5d82('0x13')]=!0x0;}['detach'](){if(!this[_0x5d82('0x13')])throw new _0x5244fc(_0x5d82('0x4'),this);this[_0x5d82('0x32')](null);for(const _0x5e4c20 of this[_0x5d82('0xf')])this['_removeAnnotationFromBalloon'](_0x5e4c20);this[_0x5d82('0x36')](),this['isAttached']=!0x1,this[_0x5d82('0x3')]=null;}[_0x5d82('0xa')](){this['isAttached']&&this['detach']();}[_0x5d82('0x40')](_0x107958){for(const _0x45503a of this[_0x5d82('0x6')])_0x107958[_0x5d82('0x28')](_0x45503a)||this['_manuallyClosed'][_0x5d82('0x2b')](_0x45503a);for(const _0x12a132 of this[_0x5d82('0x3')])_0x107958[_0x5d82('0x28')](_0x12a132)||this['_removeAnnotationFromBalloon'](_0x12a132);if(this['editor']['ui'][_0x5d82('0x3b')][_0x5d82('0x3d')])for(const _0x28278e of _0x107958)this[_0x5d82('0x1c')](_0x28278e);this[_0x5d82('0x6')]=_0x107958;}['_addAnnotationToBalloon'](_0x113b75,_0x3f1c2b=!0x1){this[_0x5d82('0x42')]['has'](_0x113b75)||(this[_0x5d82('0xf')][_0x5d82('0x9')](_0x113b75)||this[_0x5d82('0x24')][_0x5d82('0x43')](_0x113b75[_0x5d82('0x2e')])||(this[_0x5d82('0xf')][_0x5d82('0x23')](_0x113b75),this[_0x5d82('0x24')][_0x5d82('0x23')]({'stackId':_0x113b75[_0x5d82('0x2e')]['id'],'view':_0x113b75[_0x5d82('0x2e')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x113b75)}})),_0x3f1c2b&&this['_balloon']['showStack'](_0x113b75[_0x5d82('0x2e')]['id']));}['_getBalloonTargetForAnnotation'](_0x4172ae){const _0x44221b=_0x4172ae[_0x5d82('0x30')],_0x349f49=this['editor'][_0x5d82('0x26')][_0x5d82('0x2e')],_0x134e38=_0x349f49['document'][_0x5d82('0x22')]['getFirstRange'](),_0x21e594=_0x349f49['domConverter'][_0x5d82('0x1')](_0x134e38);if(_0x21e594[_0x5d82('0x2a')](!0x0),_0x44221b){if(_0x44221b instanceof _0x175c7c)return _0x44221b;let _0x111efa=[];for(const _0x235d32 of _0x44221b)_0x111efa[_0x5d82('0x3c')](...(_0x363dec=_0x235d32[_0x5d82('0x3e')](),Array[_0x5d82('0x1f')](_0x363dec)['map'](DOMRect['fromRect'])));_0x111efa=function(_0x5ac571){const _0x4b04da=[];let _0x569f0e=_0x5ac571[0x0];for(let _0x5cd73c=0x1;_0x5cd73c<_0x5ac571[_0x5d82('0x35')];_0x5cd73c++)F(_0x569f0e,_0x5ac571[_0x5cd73c])?_0x569f0e[_0x5d82('0x21')]+=_0x5ac571[_0x5cd73c][_0x5d82('0x21')]:(_0x4b04da[_0x5d82('0x3c')](_0x569f0e),_0x569f0e=_0x5ac571[_0x5cd73c]);return _0x4b04da[_0x5d82('0x3c')](_0x569f0e),_0x4b04da;}(_0x111efa);const _0x51dccb=_0x21e594[_0x5d82('0x41')]();return _0x111efa[_0x5d82('0x2')](_0x2258a6=>_0x2258a6[_0x5d82('0x2f')]<=_0x51dccb[_0x5d82('0x2f')]&&_0x2258a6[_0x5d82('0x27')]>=_0x51dccb[_0x5d82('0x27')]&&_0x2258a6[_0x5d82('0x45')]<=_0x51dccb['left']&&_0x2258a6[_0x5d82('0x33')]>=_0x51dccb[_0x5d82('0x33')])||_0x111efa[0x0];}var _0x363dec;return _0x4172ae[_0x5d82('0x1b')]||_0x21e594;}[_0x5d82('0x38')](_0x2288fc){this[_0x5d82('0xf')][_0x5d82('0x9')](_0x2288fc)&&this[_0x5d82('0x24')][_0x5d82('0x43')](_0x2288fc[_0x5d82('0x2e')])&&(this['_addedAnnotations']['delete'](_0x2288fc),this[_0x5d82('0x24')][_0x5d82('0x2c')](_0x2288fc[_0x5d82('0x2e')]));}[_0x5d82('0x10')](_0x1f1efc){this[_0x5d82('0x42')][_0x5d82('0x23')](_0x1f1efc),this[_0x5d82('0x38')](_0x1f1efc);}}function F(_0x2075c3,_0x24857b){return _0x2075c3[_0x5d82('0x2f')]===_0x24857b[_0x5d82('0x2f')]&&_0x2075c3[_0x5d82('0x27')]===_0x24857b[_0x5d82('0x27')]&&_0x2075c3[_0x5d82('0x33')]===_0x24857b[_0x5d82('0x45')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5180=['_hideBalloon','resize','_destroyEditorAnnotationsIntegration','set','preventClosingBalloon','view','getSidebarItemView','editors','esc','hasDomSelection','_detachFromContainer','init','refreshPositioning','NarrowSidebar','remove','_updateBalloonPosition','contains','attachToDom','clear','_manuallyClosedAnnotationViews','southArrowNorth','detach','from','addAnnotation','set:container','first','southArrowNorthWest','_attachToContainer','isAttached','EditorAnnotations','values','ck-sidebar--narrow','_detachListeners','southArrowNorthEast','change:height','annotationType','off','removeEventListener','_editorAnnotations','unpin','high','stop','_setSelectedAnnotations','includes','length','content','pluginName','_domEmitter','change:container','find','mousedown','context','northArrowSouthWest','execute','destroy','annotations','Esc','_selectedAnnotations','locale','plugins','_refreshPositioning','_attachListeners','element','isDirty','_annotationToNarrowView','activeAnnotation','balloonPanelView','target','_showBalloon','northArrowSouth','stopListening','_refreshPositioningDebounced','bodyCollection','get','add','refresh','_integrateWithEditorAnnotations','attach','addEventListener','focus','rearrange','has','isVisible','bind','northArrowSouthEast','stopPropagation','detachFromDom','listenTo','blur','setActiveAnnotation'];(function(_0x161a93,_0x518045){const _0x5cc000=function(_0x3d1c94){while(--_0x3d1c94){_0x161a93['push'](_0x161a93['shift']());}};_0x5cc000(++_0x518045);}(_0x5180,0xc0));const _0x5cc0=function(_0x161a93,_0x518045){_0x161a93=_0x161a93-0x0;let _0x5cc000=_0x5180[_0x161a93];return _0x5cc000;};import{ContextPlugin as _0x354483,Context as _0x11da49}from'ckeditor5/src/core.js';import _0x51c439 from'./annotationsuis.js';import _0x1ff32b from'./sidebar.js';import _0x2a9b67 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x4b2369,BodyCollection as _0x401def}from'ckeditor5/src/ui.js';import{CKEditorError as _0xa53ea9,DomEmitterMixin as _0x349dd7,keyCodes as _0x562c6c,Collection as _0x423911}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x1ed349}from'lodash-es';import _0x547e2b from'./editorannotations.js';export default class i extends _0x354483{static get['requires'](){return[_0x1ff32b,_0x51c439];}static get[_0x5cc0('0x22')](){return _0x5cc0('0x1');}constructor(_0x55bf78){super(_0x55bf78),this['isAttached']=!0x1,this[_0x5cc0('0x7')]=new Set(),this[_0x5cc0('0x23')]=Object['create'](_0x349dd7),this[_0x5cc0('0x34')]=new Map(),this['set'](_0x5cc0('0x35'),null),this[_0x5cc0('0x2b')]=null,this[_0x5cc0('0x2d')]=[],this[_0x5cc0('0x1a')]=new _0x423911(),this[_0x5cc0('0x3b')]=_0x1ed349(()=>{this[_0x5cc0('0x30')]();},0xfa,{'leading':!0x1});}[_0x5cc0('0x59')](){this[_0x5cc0('0x27')][_0x5cc0('0x2f')][_0x5cc0('0x3d')](_0x51c439)['register']('narrowSidebar',this),this['bodyCollection']=new _0x401def(this['context']['locale']),this['balloonPanelView']=new _0x4b2369(this[_0x5cc0('0x27')]['locale']),this[_0x5cc0('0x3c')][_0x5cc0('0x5')](),this[_0x5cc0('0x3c')]['add'](this['balloonPanelView']);}[_0x5cc0('0x41')](_0x4235b4){this['annotations']=_0x4235b4;const _0x10eead=this[_0x5cc0('0x27')]['plugins'][_0x5cc0('0x3d')](_0x1ff32b),_0x34a7eb=this[_0x5cc0('0x36')];if(_0x10eead['_annotations']=_0x4235b4,this[_0x5cc0('0x10')])throw new _0xa53ea9('narrowsidebar-attach-already-attached',this);this[_0x5cc0('0x10')]=!0x0,this[_0x5cc0('0x4b')](_0x10eead,_0x5cc0('0xc'),()=>{this[_0x5cc0('0x9')](),this[_0x5cc0('0x4b')](_0x10eead,_0x5cc0('0x24'),_0x431e8d=>{_0x431e8d[_0x5cc0('0x18')](),this[_0x5cc0('0x41')](_0x4235b4);});}),_0x10eead[_0x5cc0('0xf')]({'viewClass':_0x5cc0('0x13'),'spaceBetweenItems':0x5});const _0x1821c1=_0xce2e2c=>{const _0x22cc43=new _0x2a9b67(this[_0x5cc0('0x27')][_0x5cc0('0x2e')]);_0x10eead[_0x5cc0('0xb')](_0xce2e2c,_0x22cc43),this[_0x5cc0('0x34')][_0x5cc0('0x51')](_0xce2e2c,_0x22cc43),_0x22cc43[_0x5cc0('0x47')]('isDirty',_0x5cc0('0x17'),'number')['to'](_0xce2e2c[_0x5cc0('0x53')],_0x5cc0('0x33'),'type',_0x5cc0('0x20')),_0x22cc43['on'](_0x5cc0('0x29'),()=>{this[_0x5cc0('0x7')]['clear'](),_0x34a7eb['content'][_0x5cc0('0xd')]!==_0xce2e2c[_0x5cc0('0x53')]?(this[_0x5cc0('0x38')](_0xce2e2c),_0xce2e2c[_0x5cc0('0x53')]['element']['focus'](),this[_0x5cc0('0x4d')](_0xce2e2c)):this[_0x5cc0('0x4d')](null);});};for(const _0x1c7434 of _0x4235b4)_0x1821c1(_0x1c7434);this[_0x5cc0('0x4b')](_0x4235b4,_0x5cc0('0x3e'),(_0x2072b6,_0x89e7f1)=>{_0x1821c1(_0x89e7f1);}),this[_0x5cc0('0x4b')](_0x4235b4,_0x5cc0('0x2'),(_0x28a64d,_0xdbb326,_0xa79d69)=>{this[_0x5cc0('0x34')][_0x5cc0('0x3d')](_0xdbb326)[_0x5cc0('0x2a')](),this[_0x5cc0('0x34')]['delete'](_0xdbb326),_0x10eead[_0x5cc0('0x44')]({'removedAnnotation':_0xdbb326,'previousAnnotation':_0x4235b4[_0x5cc0('0x3d')](_0xa79d69-0x1),'nextAnnotation':_0x4235b4[_0x5cc0('0x3d')](_0xa79d69+0x1)}),_0xdbb326===this[_0x5cc0('0x35')]&&this[_0x5cc0('0x4d')](null);},{'priority':'low'}),this[_0x5cc0('0x4b')](_0x4235b4,_0x5cc0('0x43'),(_0x530b97,_0x2464fd)=>{this[_0x5cc0('0x4d')](_0x2464fd);}),this[_0x5cc0('0x4b')](_0x4235b4,_0x5cc0('0x4c'),()=>{this['setActiveAnnotation'](null);}),this[_0x5cc0('0x23')][_0x5cc0('0x4b')](document,'keydown',(_0x487103,_0x1bb677)=>{_0x1bb677['keyCode']===_0x562c6c[_0x5cc0('0x56')]&&_0x34a7eb[_0x5cc0('0x46')]&&(this[_0x5cc0('0x7')][_0x5cc0('0x3e')](_0x34a7eb[_0x5cc0('0x21')]['first']),this[_0x5cc0('0x4e')](),_0x1bb677[_0x5cc0('0x49')](),_0x1bb677['preventDefault']());}),this[_0x5cc0('0x23')][_0x5cc0('0x4b')](document,_0x5cc0('0x26'),(_0x2f74dd,_0x24103c)=>{const _0x1a32f7=_0x24103c[_0x5cc0('0x37')];_0x34a7eb[_0x5cc0('0x46')]&&_0x34a7eb[_0x5cc0('0x32')][_0x5cc0('0x4')](_0x1a32f7)||_0x10eead[_0x5cc0('0x53')][_0x5cc0('0x32')][_0x5cc0('0x4')](_0x1a32f7)||_0x2f74dd[_0x5cc0('0x52')]||this['activeAnnotation']&&this[_0x5cc0('0x35')]['focusableElements'][_0x5cc0('0x25')](_0x2d042d=>_0x2d042d[_0x5cc0('0x4')](_0x1a32f7))||(this[_0x5cc0('0x7')][_0x5cc0('0x6')](),this[_0x5cc0('0x4e')](),this['setActiveAnnotation'](null));});const _0x4bc74a=this[_0x5cc0('0x27')]instanceof _0x11da49?this['context'][_0x5cc0('0x55')]:new _0x423911([this['context']]);for(const _0x496b8a of _0x4bc74a)this[_0x5cc0('0x40')](_0x496b8a);this['listenTo'](_0x4bc74a,'add',(_0x32c039,_0x182637)=>{this[_0x5cc0('0x4b')](_0x182637,'ready',()=>{this[_0x5cc0('0x40')](_0x182637);});}),this[_0x5cc0('0x4b')](_0x4bc74a,_0x5cc0('0x2'),(_0x2e3a4a,_0x316c94)=>{_0x316c94[_0x5cc0('0x2f')][_0x5cc0('0x45')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x316c94['plugins'][_0x5cc0('0x3d')](_0x5cc0('0x11')));}),window[_0x5cc0('0x42')](_0x5cc0('0x4f'),this[_0x5cc0('0x3b')]),this[_0x5cc0('0x30')]();}[_0x5cc0('0x4d')](_0x16c574){if(_0x16c574===this[_0x5cc0('0x35')])return;const _0x3e8ed9=this[_0x5cc0('0x27')][_0x5cc0('0x2f')]['get'](_0x1ff32b);if(_0x3e8ed9[_0x5cc0('0x3f')]({'blurredAnnotation':this[_0x5cc0('0x35')],'activatedAnnotation':_0x16c574,'disableAnimationOnActivatedAnnotation':!0x0}),_0x16c574)_0x3e8ed9[_0x5cc0('0x54')](_0x16c574)?this[_0x5cc0('0x38')](_0x16c574):this[_0x5cc0('0x4e')]();else this[_0x5cc0('0x4e')]();this[_0x5cc0('0x35')]=_0x16c574;}['detach'](){if(!this[_0x5cc0('0x10')])throw new _0xa53ea9('narrowsidebar-detach-not-attached',this);this[_0x5cc0('0x4d')](null);const _0x1d9709=this[_0x5cc0('0x27')][_0x5cc0('0x2f')][_0x5cc0('0x3d')](_0x1ff32b);this['_hideBalloon'](),Array[_0x5cc0('0xa')](this[_0x5cc0('0x34')][_0x5cc0('0x12')](),_0x1b6501=>_0x1b6501[_0x5cc0('0x2a')]()),this[_0x5cc0('0x34')]['clear'](),_0x1d9709[_0x5cc0('0x58')](this[_0x5cc0('0x2b')]),this[_0x5cc0('0x3a')](),this[_0x5cc0('0x23')][_0x5cc0('0x3a')](),this[_0x5cc0('0x27')]instanceof _0x11da49&&this[_0x5cc0('0x3a')](this['context'][_0x5cc0('0x55')]);for(const _0x5b7067 of Array[_0x5cc0('0xa')](this['_editorAnnotations']))this[_0x5cc0('0x50')](_0x5b7067);window[_0x5cc0('0x19')](_0x5cc0('0x4f'),this[_0x5cc0('0x3b')]),this[_0x5cc0('0x3b')]['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}[_0x5cc0('0x2a')](){this[_0x5cc0('0x10')]&&this[_0x5cc0('0x9')](),this['bodyCollection'][_0x5cc0('0x4a')]();}[_0x5cc0('0x40')](_0x32bc11){const _0x27429d=_0x32bc11[_0x5cc0('0x2f')][_0x5cc0('0x3d')](_0x547e2b),_0x1dc96c=this['context'][_0x5cc0('0x2f')][_0x5cc0('0x3d')](_0x1ff32b),_0x45101b=this['annotations'],_0x16850f=this[_0x5cc0('0x36')],_0x4350fd=()=>{const _0x1528ad=_0x27429d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x5cc0('0x35')]});this[_0x5cc0('0x1e')](_0x1528ad),this[_0x5cc0('0x4d')](_0x1528ad[0x0]||null);};this['listenTo'](_0x27429d,_0x5cc0('0x3f'),_0x4350fd),this['listenTo'](_0x27429d,_0x5cc0('0x4c'),(_0xa8edb5,{isAnnotationTracked:_0x12dd58})=>{this[_0x5cc0('0x35')]&&_0x12dd58(this[_0x5cc0('0x35')])&&(this[_0x5cc0('0x1e')]([]),this[_0x5cc0('0x4d')](null));}),this[_0x5cc0('0x4b')](_0x27429d,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x5cc0('0x4b')](_0x45101b,'blur',_0x57a829=>{_0x27429d[_0x5cc0('0x57')]()&&_0x57a829[_0x5cc0('0x1d')]();},{'priority':_0x5cc0('0x1c')}),this[_0x5cc0('0x4b')](this[_0x5cc0('0x23')],_0x5cc0('0x26'),(_0x22574c,_0x41f34f)=>{const _0x301320=_0x41f34f[_0x5cc0('0x37')];_0x16850f['isVisible']&&_0x16850f[_0x5cc0('0x32')][_0x5cc0('0x4')](_0x301320)||_0x1dc96c[_0x5cc0('0x53')]['element'][_0x5cc0('0x4')](_0x301320)||this[_0x5cc0('0x35')]&&_0x27429d[_0x5cc0('0x57')]()&&(_0x4350fd(),_0x22574c['preventClosingBalloon']=!0x0);},{'priority':_0x5cc0('0x1c')}),this[_0x5cc0('0x1a')][_0x5cc0('0x3e')](_0x27429d);}['_destroyEditorAnnotationsIntegration'](_0x587268){_0x587268&&(this['stopListening'](_0x587268),this[_0x5cc0('0x1a')]['remove'](_0x587268));}[_0x5cc0('0x1e')](_0x3beb7f){for(const _0x3b6d2f of this[_0x5cc0('0x2d')])_0x3beb7f[_0x5cc0('0x1f')](_0x3b6d2f)||this[_0x5cc0('0x7')]['delete'](_0x3b6d2f['view']);this['_selectedAnnotations']=_0x3beb7f;}[_0x5cc0('0x30')](){const _0x1f4fb8=this[_0x5cc0('0x36')];this[_0x5cc0('0x2b')][_0x5cc0('0x0')](),_0x1f4fb8[_0x5cc0('0x46')]&&this[_0x5cc0('0x3')]();}[_0x5cc0('0x38')](_0x5da3bb){if(this[_0x5cc0('0x7')][_0x5cc0('0x45')](_0x5da3bb[_0x5cc0('0x53')]))return;const _0x221b3d=this['balloonPanelView'][_0x5cc0('0x21')]['first'];_0x221b3d!==_0x5da3bb['view']?(_0x221b3d&&this[_0x5cc0('0x14')](_0x221b3d),this['_attachListeners'](_0x5da3bb['view']),this[_0x5cc0('0x36')][_0x5cc0('0x21')][_0x5cc0('0x6')](),this[_0x5cc0('0x36')][_0x5cc0('0x21')][_0x5cc0('0x3e')](_0x5da3bb[_0x5cc0('0x53')]),this[_0x5cc0('0x3')]()):this[_0x5cc0('0x3')]();}['_updateBalloonPosition'](){const _0xbfa073=this[_0x5cc0('0x36')]['content'][_0x5cc0('0xd')],_0x3e46b3=_0xbfa073&&this[_0x5cc0('0x2b')]['getByView'](_0xbfa073);if(!_0x3e46b3||!this[_0x5cc0('0x34')]['has'](_0x3e46b3))return;const _0x38e0a0=this[_0x5cc0('0x34')][_0x5cc0('0x3d')](_0x3e46b3)['element'],_0x1afec7=function(){const _0x4ffde1=_0x4b2369['defaultPositions'];return[_0x4ffde1[_0x5cc0('0x15')],_0x4ffde1[_0x5cc0('0x48')],_0x4ffde1[_0x5cc0('0x8')],_0x4ffde1[_0x5cc0('0x39')],_0x4ffde1[_0x5cc0('0xe')],_0x4ffde1[_0x5cc0('0x28')]];}();this[_0x5cc0('0x36')]['pin']({'target':_0x38e0a0,'positions':_0x1afec7});}[_0x5cc0('0x4e')](){const _0x467e42=this[_0x5cc0('0x36')],_0x10df99=_0x467e42[_0x5cc0('0x21')][_0x5cc0('0xd')];_0x10df99&&(this[_0x5cc0('0x14')](_0x10df99),_0x467e42[_0x5cc0('0x1b')](),_0x467e42[_0x5cc0('0x21')][_0x5cc0('0x6')]());}[_0x5cc0('0x31')](_0x6049df){this[_0x5cc0('0x4b')](_0x6049df,_0x5cc0('0x16'),()=>this[_0x5cc0('0x3')]()),this['listenTo'](_0x6049df,_0x5cc0('0x2c'),(_0x537433,_0x1ac591)=>{this[_0x5cc0('0x7')]['add'](_0x6049df),this[_0x5cc0('0x4e')](),_0x1ac591();});}['_detachListeners'](_0x3ddc21){this[_0x5cc0('0x3a')](_0x3ddc21);}}
|
|
23
|
+
const _0x2f07=['_annotations','_setSelectedAnnotations','balloonPanelView','addEventListener','_attachListeners','element','execute','mousedown','_showBalloon','context','setActiveAnnotation','set','_refreshPositioning','annotations','length','_selectedAnnotations','addAnnotation','southArrowNorth','has','stopPropagation','getByView','find','_editorAnnotations','editors','northArrowSouthWest','get','narrowSidebar','hasDomSelection','create','EditorAnnotations','change:height','view','isAttached','pluginName','high','focusableElements','bind','_updateBalloonPosition','focus','from','add','delete','northArrowSouthEast','attachToDom','_detachListeners','isVisible','_integrateWithEditorAnnotations','cancel','narrowsidebar-attach-already-attached','listenTo','includes','content','removeEventListener','plugins','Esc','first','bodyCollection','getSidebarItemView','blur','uiUpdate','_domEmitter','stop','activeAnnotation','preventClosingBalloon','unpin','stopListening','remove','attach','detach','_destroyEditorAnnotationsIntegration','_detachFromContainer','keydown','off','getOrderedSelectedAnnotations','clear','isDirty','_refreshPositioningDebounced','type','rearrange','locale','annotationType','_manuallyClosedAnnotationViews','_hideBalloon','_annotationToNarrowView','refresh','destroy','northArrowSouth','contains','southArrowNorthWest'];(function(_0x5989ba,_0x2f07cc){const _0x3fdf0d=function(_0x48d5ec){while(--_0x48d5ec){_0x5989ba['push'](_0x5989ba['shift']());}};_0x3fdf0d(++_0x2f07cc);}(_0x2f07,0x1dc));const _0x3fdf=function(_0x5989ba,_0x2f07cc){_0x5989ba=_0x5989ba-0x0;let _0x3fdf0d=_0x2f07[_0x5989ba];return _0x3fdf0d;};import{ContextPlugin as _0x25c751,Context as _0x50a52f}from'ckeditor5/src/core.js';import _0x3d5dc3 from'./annotationsuis.js';import _0x4b8423 from'./sidebar.js';import _0x5debf8 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x15d68b,BodyCollection as _0x13b213}from'ckeditor5/src/ui.js';import{CKEditorError as _0x15dff,DomEmitterMixin as _0x390176,keyCodes as _0x1ba893,Collection as _0x2387c9}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x2c0230}from'lodash-es';import _0x20e517 from'./editorannotations.js';export default class i extends _0x25c751{static get['requires'](){return[_0x4b8423,_0x3d5dc3];}static get[_0x3fdf('0x2')](){return'NarrowSidebar';}constructor(_0x4b1f38){super(_0x4b1f38),this[_0x3fdf('0x1')]=!0x1,this[_0x3fdf('0x32')]=new Set(),this[_0x3fdf('0x1d')]=Object[_0x3fdf('0x56')](_0x390176),this[_0x3fdf('0x34')]=new Map(),this[_0x3fdf('0x45')](_0x3fdf('0x1f'),null),this[_0x3fdf('0x47')]=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x2387c9(),this['_refreshPositioningDebounced']=_0x2c0230(()=>{this[_0x3fdf('0x46')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x3fdf('0x43')][_0x3fdf('0x16')]['get'](_0x3d5dc3)['register'](_0x3fdf('0x54'),this),this['bodyCollection']=new _0x13b213(this[_0x3fdf('0x43')][_0x3fdf('0x30')]),this[_0x3fdf('0x3c')]=new _0x15d68b(this[_0x3fdf('0x43')][_0x3fdf('0x30')]),this[_0x3fdf('0x19')][_0x3fdf('0xc')](),this[_0x3fdf('0x19')][_0x3fdf('0x9')](this[_0x3fdf('0x3c')]);}['attach'](_0x3649f0){this[_0x3fdf('0x47')]=_0x3649f0;const _0x10db49=this[_0x3fdf('0x43')][_0x3fdf('0x16')][_0x3fdf('0x53')](_0x4b8423),_0x100212=this[_0x3fdf('0x3c')];if(_0x10db49[_0x3fdf('0x3a')]=_0x3649f0,this[_0x3fdf('0x1')])throw new _0x15dff(_0x3fdf('0x11'),this);this['isAttached']=!0x0,this['listenTo'](_0x10db49,'set:container',()=>{this['detach'](),this[_0x3fdf('0x12')](_0x10db49,'change:container',_0x48195d=>{_0x48195d[_0x3fdf('0x29')](),this[_0x3fdf('0x24')](_0x3649f0);});}),_0x10db49['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x32d645=_0x20fab1=>{const _0x57f345=new _0x5debf8(this['context'][_0x3fdf('0x30')]);_0x10db49[_0x3fdf('0x4a')](_0x20fab1,_0x57f345),this[_0x3fdf('0x34')][_0x3fdf('0x45')](_0x20fab1,_0x57f345),_0x57f345[_0x3fdf('0x5')](_0x3fdf('0x2c'),_0x3fdf('0x31'),'number')['to'](_0x20fab1[_0x3fdf('0x0')],_0x3fdf('0x2c'),_0x3fdf('0x2e'),_0x3fdf('0x48')),_0x57f345['on'](_0x3fdf('0x40'),()=>{this[_0x3fdf('0x32')][_0x3fdf('0x2b')](),_0x100212['content'][_0x3fdf('0x18')]!==_0x20fab1['view']?(this[_0x3fdf('0x42')](_0x20fab1),_0x20fab1[_0x3fdf('0x0')]['element']['focus'](),this['setActiveAnnotation'](_0x20fab1)):this[_0x3fdf('0x44')](null);});};for(const _0x2b2503 of _0x3649f0)_0x32d645(_0x2b2503);this[_0x3fdf('0x12')](_0x3649f0,_0x3fdf('0x9'),(_0x715e61,_0x304a3e)=>{_0x32d645(_0x304a3e);}),this[_0x3fdf('0x12')](_0x3649f0,_0x3fdf('0x23'),(_0x1a5b8f,_0x150cdf,_0x15414b)=>{this[_0x3fdf('0x34')]['get'](_0x150cdf)[_0x3fdf('0x36')](),this['_annotationToNarrowView'][_0x3fdf('0xa')](_0x150cdf),_0x10db49[_0x3fdf('0x2f')]({'removedAnnotation':_0x150cdf,'previousAnnotation':_0x3649f0['get'](_0x15414b-0x1),'nextAnnotation':_0x3649f0[_0x3fdf('0x53')](_0x15414b+0x1)}),_0x150cdf===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3649f0,_0x3fdf('0x7'),(_0x3a329c,_0x41d061)=>{this[_0x3fdf('0x44')](_0x41d061);}),this[_0x3fdf('0x12')](_0x3649f0,_0x3fdf('0x1b'),()=>{this[_0x3fdf('0x44')](null);}),this[_0x3fdf('0x1d')][_0x3fdf('0x12')](document,_0x3fdf('0x28'),(_0x278326,_0x3939f2)=>{_0x3939f2['keyCode']===_0x1ba893['esc']&&_0x100212['isVisible']&&(this['_manuallyClosedAnnotationViews'][_0x3fdf('0x9')](_0x100212['content'][_0x3fdf('0x18')]),this[_0x3fdf('0x33')](),_0x3939f2[_0x3fdf('0x4d')](),_0x3939f2['preventDefault']());}),this[_0x3fdf('0x1d')]['listenTo'](document,_0x3fdf('0x41'),(_0x17af90,_0x47e4f2)=>{const _0x10902b=_0x47e4f2['target'];_0x100212['isVisible']&&_0x100212[_0x3fdf('0x3f')][_0x3fdf('0x38')](_0x10902b)||_0x10db49[_0x3fdf('0x0')][_0x3fdf('0x3f')][_0x3fdf('0x38')](_0x10902b)||_0x17af90[_0x3fdf('0x20')]||this[_0x3fdf('0x1f')]&&this[_0x3fdf('0x1f')][_0x3fdf('0x4')][_0x3fdf('0x4f')](_0x29bb99=>_0x29bb99['contains'](_0x10902b))||(this['_manuallyClosedAnnotationViews'][_0x3fdf('0x2b')](),this[_0x3fdf('0x33')](),this['setActiveAnnotation'](null));});const _0x4b6210=this['context']instanceof _0x50a52f?this['context'][_0x3fdf('0x51')]:new _0x2387c9([this[_0x3fdf('0x43')]]);for(const _0x2ab291 of _0x4b6210)this['_integrateWithEditorAnnotations'](_0x2ab291);this[_0x3fdf('0x12')](_0x4b6210,'add',(_0x12c0ec,_0x2b7a76)=>{this[_0x3fdf('0x12')](_0x2b7a76,'ready',()=>{this[_0x3fdf('0xf')](_0x2b7a76);});}),this[_0x3fdf('0x12')](_0x4b6210,_0x3fdf('0x23'),(_0x2b6eac,_0x25cfa7)=>{_0x25cfa7[_0x3fdf('0x16')][_0x3fdf('0x4c')](_0x3fdf('0x57'))&&this[_0x3fdf('0x26')](_0x25cfa7[_0x3fdf('0x16')][_0x3fdf('0x53')](_0x3fdf('0x57')));}),window[_0x3fdf('0x3d')]('resize',this[_0x3fdf('0x2d')]),this['_refreshPositioning']();}[_0x3fdf('0x44')](_0x54dfce){if(_0x54dfce===this['activeAnnotation'])return;const _0x5b3674=this[_0x3fdf('0x43')]['plugins']['get'](_0x4b8423);if(_0x5b3674[_0x3fdf('0x35')]({'blurredAnnotation':this[_0x3fdf('0x1f')],'activatedAnnotation':_0x54dfce,'disableAnimationOnActivatedAnnotation':!0x0}),_0x54dfce)_0x5b3674[_0x3fdf('0x1a')](_0x54dfce)?this[_0x3fdf('0x42')](_0x54dfce):this[_0x3fdf('0x33')]();else this[_0x3fdf('0x33')]();this[_0x3fdf('0x1f')]=_0x54dfce;}[_0x3fdf('0x25')](){if(!this['isAttached'])throw new _0x15dff('narrowsidebar-detach-not-attached',this);this[_0x3fdf('0x44')](null);const _0x1e99b5=this[_0x3fdf('0x43')][_0x3fdf('0x16')]['get'](_0x4b8423);this['_hideBalloon'](),Array[_0x3fdf('0x8')](this[_0x3fdf('0x34')]['values'](),_0x3918db=>_0x3918db['destroy']()),this[_0x3fdf('0x34')][_0x3fdf('0x2b')](),_0x1e99b5[_0x3fdf('0x27')](this['annotations']),this['stopListening'](),this[_0x3fdf('0x1d')][_0x3fdf('0x22')](),this[_0x3fdf('0x43')]instanceof _0x50a52f&&this[_0x3fdf('0x22')](this[_0x3fdf('0x43')][_0x3fdf('0x51')]);for(const _0x475e6c of Array['from'](this['_editorAnnotations']))this[_0x3fdf('0x26')](_0x475e6c);window[_0x3fdf('0x15')]('resize',this[_0x3fdf('0x2d')]),this[_0x3fdf('0x2d')][_0x3fdf('0x10')](),this[_0x3fdf('0x49')]=[],this[_0x3fdf('0x1')]=!0x1,this['annotations']=null;}[_0x3fdf('0x36')](){this[_0x3fdf('0x1')]&&this[_0x3fdf('0x25')](),this['bodyCollection']['detachFromDom']();}[_0x3fdf('0xf')](_0x1639f0){const _0xafbf32=_0x1639f0[_0x3fdf('0x16')][_0x3fdf('0x53')](_0x20e517),_0x38a541=this[_0x3fdf('0x43')]['plugins'][_0x3fdf('0x53')](_0x4b8423),_0x376492=this[_0x3fdf('0x47')],_0x1e7108=this[_0x3fdf('0x3c')],_0x4437ef=()=>{const _0x985469=_0xafbf32[_0x3fdf('0x2a')]({'annotations':this[_0x3fdf('0x47')],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x985469),this[_0x3fdf('0x44')](_0x985469[0x0]||null);};this['listenTo'](_0xafbf32,_0x3fdf('0x35'),_0x4437ef),this['listenTo'](_0xafbf32,_0x3fdf('0x1b'),(_0xe793a,{isAnnotationTracked:_0x465c84})=>{this[_0x3fdf('0x1f')]&&_0x465c84(this['activeAnnotation'])&&(this[_0x3fdf('0x3b')]([]),this[_0x3fdf('0x44')](null));}),this['listenTo'](_0xafbf32,_0x3fdf('0x1c'),()=>{this[_0x3fdf('0x2d')]();}),this[_0x3fdf('0x12')](_0x376492,_0x3fdf('0x1b'),_0x2def82=>{_0xafbf32[_0x3fdf('0x55')]()&&_0x2def82[_0x3fdf('0x1e')]();},{'priority':'high'}),this[_0x3fdf('0x12')](this[_0x3fdf('0x1d')],_0x3fdf('0x41'),(_0x2debe9,_0xcf599c)=>{const _0x4d0046=_0xcf599c['target'];_0x1e7108[_0x3fdf('0xe')]&&_0x1e7108[_0x3fdf('0x3f')]['contains'](_0x4d0046)||_0x38a541[_0x3fdf('0x0')][_0x3fdf('0x3f')][_0x3fdf('0x38')](_0x4d0046)||this['activeAnnotation']&&_0xafbf32[_0x3fdf('0x55')]()&&(_0x4437ef(),_0x2debe9[_0x3fdf('0x20')]=!0x0);},{'priority':_0x3fdf('0x3')}),this[_0x3fdf('0x50')][_0x3fdf('0x9')](_0xafbf32);}[_0x3fdf('0x26')](_0x51a4db){_0x51a4db&&(this[_0x3fdf('0x22')](_0x51a4db),this[_0x3fdf('0x50')][_0x3fdf('0x23')](_0x51a4db));}['_setSelectedAnnotations'](_0x3a6e50){for(const _0x22f0d5 of this[_0x3fdf('0x49')])_0x3a6e50[_0x3fdf('0x13')](_0x22f0d5)||this[_0x3fdf('0x32')][_0x3fdf('0xa')](_0x22f0d5[_0x3fdf('0x0')]);this[_0x3fdf('0x49')]=_0x3a6e50;}[_0x3fdf('0x46')](){const _0x19eb44=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x19eb44[_0x3fdf('0xe')]&&this[_0x3fdf('0x6')]();}['_showBalloon'](_0x48b94f){if(this[_0x3fdf('0x32')][_0x3fdf('0x4c')](_0x48b94f['view']))return;const _0x384923=this['balloonPanelView'][_0x3fdf('0x14')][_0x3fdf('0x18')];_0x384923!==_0x48b94f[_0x3fdf('0x0')]?(_0x384923&&this[_0x3fdf('0xd')](_0x384923),this[_0x3fdf('0x3e')](_0x48b94f[_0x3fdf('0x0')]),this['balloonPanelView'][_0x3fdf('0x14')][_0x3fdf('0x2b')](),this[_0x3fdf('0x3c')]['content'][_0x3fdf('0x9')](_0x48b94f[_0x3fdf('0x0')]),this[_0x3fdf('0x6')]()):this[_0x3fdf('0x6')]();}[_0x3fdf('0x6')](){const _0x46ccf0=this[_0x3fdf('0x3c')][_0x3fdf('0x14')]['first'],_0x50e983=_0x46ccf0&&this[_0x3fdf('0x47')][_0x3fdf('0x4e')](_0x46ccf0);if(!_0x50e983||!this['_annotationToNarrowView'][_0x3fdf('0x4c')](_0x50e983))return;const _0x2debcc=this[_0x3fdf('0x34')][_0x3fdf('0x53')](_0x50e983)[_0x3fdf('0x3f')],_0x29e589=function(){const _0x5beb64=_0x15d68b['defaultPositions'];return[_0x5beb64['southArrowNorthEast'],_0x5beb64[_0x3fdf('0xb')],_0x5beb64[_0x3fdf('0x4b')],_0x5beb64[_0x3fdf('0x37')],_0x5beb64[_0x3fdf('0x39')],_0x5beb64[_0x3fdf('0x52')]];}();this[_0x3fdf('0x3c')]['pin']({'target':_0x2debcc,'positions':_0x29e589});}[_0x3fdf('0x33')](){const _0x4951d0=this[_0x3fdf('0x3c')],_0x1b63e5=_0x4951d0[_0x3fdf('0x14')][_0x3fdf('0x18')];_0x1b63e5&&(this[_0x3fdf('0xd')](_0x1b63e5),_0x4951d0[_0x3fdf('0x21')](),_0x4951d0['content'][_0x3fdf('0x2b')]());}['_attachListeners'](_0x161b5a){this[_0x3fdf('0x12')](_0x161b5a,_0x3fdf('0x58'),()=>this[_0x3fdf('0x6')]()),this['listenTo'](_0x161b5a,_0x3fdf('0x17'),(_0x28666c,_0xe28cc6)=>{this[_0x3fdf('0x32')]['add'](_0x161b5a),this[_0x3fdf('0x33')](),_0xe28cc6();});}['_detachListeners'](_0x539522){this[_0x3fdf('0x22')](_0x539522);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25a6=['list','_annotations','change:targetRect','_spaceBetweenItems','change:_lastItem','top','destroy','nodeType','define','_targetTop','_getItemAfter','_alignAfterItem','height','_recalculateBuffer','_createSidebarView','remove','rearrange','delete','last','max','view','add','_activeAnnotation','context','appendChild','_destroySidebarItemView','_sidebarItemViewToAnnotation','_setItemTop','_getItemBefore','sidebar-setcontainer-invalid-element','updateHeight','_alignForTopChange','_alignToTargetRect','bottom','change:bottom','refresh','_alignBeforeItem','bind','container','init','unbind','content','set','stopListening','isAnimationDisabled','minHeight','listenTo','sidebar.container','change:top','_lastItem','_detachFromContainer','_getTargetTop','targetRect','locale','render','config','_annotationToSidebarItemView','object','_getMaxAvailableTop','_recalculate','clear','isActive','element','_alignForBottomChange','Sidebar','getSidebarItemView','setContainer','push','_updateLastItem','get','target','sidebar.preventScrollOutOfView','getIndex','length','addAnnotation'];(function(_0x56519c,_0x25a6ae){const _0x4af417=function(_0x15c03f){while(--_0x15c03f){_0x56519c['push'](_0x56519c['shift']());}};_0x4af417(++_0x25a6ae);}(_0x25a6,0x1ce));const _0x4af4=function(_0x56519c,_0x25a6ae){_0x56519c=_0x56519c-0x0;let _0x4af417=_0x25a6[_0x56519c];return _0x4af417;};import{ContextPlugin as _0x3a579b}from'ckeditor5/src/core.js';import{Rect as _0x2439f7,CKEditorError as _0x5acfcd}from'ckeditor5/src/utils.js';import _0x3441ec from'./view/sidebarview.js';import _0x18fd9e from'./view/sidebaritemview.js';export default class z extends _0x3a579b{static get['pluginName'](){return _0x4af4('0x34');}constructor(_0x145ee1){super(_0x145ee1),this[_0x4af4('0x1e')](_0x4af4('0x25'),void 0x0),this[_0x4af4('0x8')]=this[_0x4af4('0x2')](),this['set'](_0x4af4('0x1a'),null),this['_spaceBetweenItems']=0x19,this[_0x4af4('0xe')]=new Map(),this[_0x4af4('0x2c')]=new Map(),this[_0x4af4('0xb')][_0x4af4('0x2b')][_0x4af4('0x47')](_0x4af4('0x3b'),!0x1),this[_0x4af4('0x40')]=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x4af4('0x1b')](){const _0xc899a0=this[_0x4af4('0xb')]['config'][_0x4af4('0x39')](_0x4af4('0x23'));_0xc899a0&&this['setContainer'](_0xc899a0);}[_0x4af4('0x36')](_0xa7d060){if(!y(_0xa7d060))throw new _0x5acfcd(_0x4af4('0x11'));this[_0x4af4('0x1a')]=_0xa7d060;}['_attachToContainer']({viewClass:_0x13a67c='',spaceBetweenItems:_0x3c5d86=0x19}={}){if(!y(this[_0x4af4('0x1a')]))throw new _0x5acfcd('sidebar-attachtocontainer-missing-container',this);this[_0x4af4('0x1a')][_0x4af4('0xc')](this['view'][_0x4af4('0x32')]),this[_0x4af4('0x8')]['class']=_0x13a67c,this['_spaceBetweenItems']=_0x3c5d86;}[_0x4af4('0x4')]({removedAnnotation:_0x54ebf1,previousAnnotation:_0x9c8329,nextAnnotation:_0x268f90}){const _0x5c3490=this[_0x4af4('0x35')](_0x54ebf1);this[_0x4af4('0x8')]['list'][_0x4af4('0x3')](_0x5c3490),this['_destroySidebarItemView'](_0x54ebf1),_0x9c8329&&this[_0x4af4('0x14')](this[_0x4af4('0x35')](_0x9c8329)),_0x268f90&&this[_0x4af4('0x14')](this[_0x4af4('0x35')](_0x268f90)),this['_updateLastItem']();}[_0x4af4('0x17')]({blurredAnnotation:_0x5d1bd8,activatedAnnotation:_0x5a91b7,disableAnimationOnActivatedAnnotation:_0x36649e}){if(this[_0x4af4('0xa')]=_0x5a91b7,_0x5d1bd8){_0x5d1bd8[_0x4af4('0x31')]=!0x1;const _0x287d15=this['getSidebarItemView'](_0x5d1bd8);_0x287d15&&_0x36649e&&(_0x287d15[_0x4af4('0x20')]=!0x1);}if(_0x5a91b7){const _0x318755=this[_0x4af4('0x35')](_0x5a91b7);_0x318755&&(_0x5a91b7[_0x4af4('0x31')]=!0x0,_0x36649e&&(_0x318755['isAnimationDisabled']=!0x0,_0x318755['top']+=0x1),this[_0x4af4('0x14')](_0x318755));}}[_0x4af4('0x26')](_0x4ac8a3){if(this['view'][_0x4af4('0x32')][_0x4af4('0x3')](),_0x4ac8a3)for(const _0x60f05e of _0x4ac8a3)this[_0x4af4('0xd')](_0x60f05e);this[_0x4af4('0x8')]['list'][_0x4af4('0x30')](),this[_0x4af4('0x8')]['class']='',this['_lastItem']=null;}[_0x4af4('0x3e')](_0x71ec64,_0x37513b){_0x37513b||(_0x37513b=_0x71ec64[_0x4af4('0x8')]);const _0x29d0ca=new _0x18fd9e(this[_0x4af4('0xb')][_0x4af4('0x29')]);this[_0x4af4('0xe')]['set'](_0x29d0ca,_0x71ec64),this[_0x4af4('0x2c')][_0x4af4('0x1e')](_0x71ec64,_0x29d0ca),_0x29d0ca[_0x4af4('0x1d')][_0x4af4('0x9')](_0x37513b),this[_0x4af4('0x22')](_0x71ec64[_0x4af4('0x8')],_0x4af4('0x41'),(_0x3f04e8,_0x263cdd,_0x535b27)=>{const _0x5c451b=this[_0x4af4('0x27')](_0x71ec64,_0x535b27);_0x29d0ca[_0x4af4('0x48')]!=_0x5c451b&&(_0x29d0ca[_0x4af4('0x48')]=_0x5c451b,this['_setItemTop'](_0x29d0ca,_0x5c451b));}),this[_0x4af4('0x22')](_0x29d0ca,_0x4af4('0x24'),()=>{this[_0x4af4('0x2f')](_0x29d0ca,_0x4af4('0x44'));}),this[_0x4af4('0x22')](_0x29d0ca,_0x4af4('0x16'),()=>{this['_recalculate'](_0x29d0ca,_0x4af4('0x15'));}),this['_alignToTargetRect'](_0x29d0ca);const _0x3daa99=this[_0x4af4('0x10')](_0x29d0ca);if(_0x3daa99)this[_0x4af4('0x4a')](_0x3daa99,_0x29d0ca)||this[_0x4af4('0x14')](_0x29d0ca);else this[_0x4af4('0x14')](_0x29d0ca);return this[_0x4af4('0x38')](),this['view'][_0x4af4('0x3f')]['add'](_0x29d0ca),_0x29d0ca;}[_0x4af4('0x13')](_0x2d00d7){if(!_0x2d00d7[_0x4af4('0x1d')][_0x4af4('0x3d')])return;const _0x2b4eda=this[_0x4af4('0x10')](_0x2d00d7);if(!_0x2b4eda)return;const _0x338034=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x2b4eda),_0x156460=this[_0x4af4('0xa')];_0x156460&&_0x156460===_0x338034?this['_alignAfterItem'](_0x2b4eda,_0x2d00d7):this[_0x4af4('0x18')](_0x2d00d7,_0x2b4eda);}['_alignForBottomChange'](_0x1de1d3){if(!_0x1de1d3[_0x4af4('0x1d')][_0x4af4('0x3d')])return;const _0x5dc726=this[_0x4af4('0x49')](_0x1de1d3);if(!_0x5dc726)return;const _0xfd634a=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x5dc726),_0x3dbe2d=this[_0x4af4('0xb')][_0x4af4('0x2b')][_0x4af4('0x39')]('sidebar.preventScrollOutOfView'),_0x4d8e49=this[_0x4af4('0xa')];_0x4d8e49&&_0x4d8e49===_0xfd634a&&_0x3dbe2d?(this[_0x4af4('0x18')](_0x5dc726,_0x1de1d3),this['_alignAfterItem'](_0x1de1d3,_0x5dc726)):_0x4d8e49&&_0x4d8e49===_0xfd634a?this[_0x4af4('0x18')](_0x5dc726,_0x1de1d3):this[_0x4af4('0x4a')](_0x1de1d3,_0x5dc726);}['_recalculate'](_0x32ddc4,_0x29444d){0x0===this['_recalculateBuffer'][_0x4af4('0x3d')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3aca60,changedProp:_0x1fd6a0}of this[_0x4af4('0x1')])_0x4af4('0x44')===_0x1fd6a0?this[_0x4af4('0x13')](_0x3aca60):this[_0x4af4('0x33')](_0x3aca60);this[_0x4af4('0x1')]=[];},0xa),this[_0x4af4('0x1')][_0x4af4('0x37')]({'sidebarItemView':_0x32ddc4,'changedProp':_0x29444d});}[_0x4af4('0x35')](_0xd7cafa){return this['_annotationToSidebarItemView'][_0x4af4('0x39')](_0xd7cafa);}[_0x4af4('0x45')](){this[_0x4af4('0x1f')](),this[_0x4af4('0x8')][_0x4af4('0x45')]();}[_0x4af4('0xd')](_0x26df93){const _0x1ceb1=this[_0x4af4('0x35')](_0x26df93);this['stopListening'](_0x1ceb1),this[_0x4af4('0x1f')](_0x26df93[_0x4af4('0x8')]),_0x1ceb1[_0x4af4('0x45')](),this[_0x4af4('0x2c')]['delete'](_0x26df93),this[_0x4af4('0xe')][_0x4af4('0x5')](_0x1ceb1);}['_createSidebarView'](){const _0x5597c4=new _0x3441ec(this[_0x4af4('0xb')]['locale']);return _0x5597c4[_0x4af4('0x2a')](),this['on'](_0x4af4('0x43'),(_0x29dfb3,_0x90c88c,_0x38c8ce,_0x36d0d9)=>{_0x36d0d9&&_0x5597c4[_0x4af4('0x1c')](_0x4af4('0x21')),_0x38c8ce?_0x5597c4[_0x4af4('0x19')](_0x4af4('0x21'))['to'](_0x38c8ce,_0x4af4('0x15')):_0x5597c4[_0x4af4('0x21')]=null;}),_0x5597c4;}[_0x4af4('0x38')](){var _0x193ece;this[_0x4af4('0x25')]=(null===(_0x193ece=this[_0x4af4('0x40')])||void 0x0===_0x193ece?void 0x0:_0x193ece[_0x4af4('0x6')])?this[_0x4af4('0x35')](this[_0x4af4('0x40')]['last']):null;}[_0x4af4('0x10')](_0x2f4334){var _0x17f4b4;const _0xa0d47e=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x2f4334),_0x24e445=_0xa0d47e&&(null===(_0x17f4b4=this[_0x4af4('0x40')])||void 0x0===_0x17f4b4?void 0x0:_0x17f4b4[_0x4af4('0x39')](this[_0x4af4('0x40')][_0x4af4('0x3c')](_0xa0d47e)-0x1));return _0x24e445&&this[_0x4af4('0x35')](_0x24e445)||null;}[_0x4af4('0x49')](_0x5e797b){var _0x4940ff;const _0x154841=this[_0x4af4('0xe')]['get'](_0x5e797b),_0x1e57ae=_0x154841&&(null===(_0x4940ff=this[_0x4af4('0x40')])||void 0x0===_0x4940ff?void 0x0:_0x4940ff['get'](this[_0x4af4('0x40')][_0x4af4('0x3c')](_0x154841)+0x1));return _0x1e57ae&&this[_0x4af4('0x35')](_0x1e57ae)||null;}[_0x4af4('0x18')](_0x54eaa6,_0x35c065){_0x54eaa6[_0x4af4('0x12')]();const _0x543787=M(_0x35c065[_0x4af4('0x15')]+this[_0x4af4('0x42')],_0x54eaa6[_0x4af4('0x44')]);return!!_0x543787&&(this[_0x4af4('0xf')](_0x35c065,_0x35c065[_0x4af4('0x44')]-_0x543787),!0x0);}['_alignAfterItem'](_0x21a1f4,_0x32296d){_0x21a1f4[_0x4af4('0x12')]();const _0x49ac04=M(_0x21a1f4[_0x4af4('0x15')]+this['_spaceBetweenItems'],_0x32296d['top']);return!!_0x49ac04&&(this[_0x4af4('0xf')](_0x32296d,_0x32296d[_0x4af4('0x44')]+_0x49ac04,!0x1),!0x0);}['_alignToTargetRect'](_0x59f320){const _0xba5ff2=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x59f320);if(!_0xba5ff2||!_0xba5ff2[_0x4af4('0x3a')]||!_0xba5ff2[_0x4af4('0x28')])return;const _0x14f823=this['_getTargetTop'](_0xba5ff2,_0xba5ff2[_0x4af4('0x28')]);this['_setItemTop'](_0x59f320,_0x14f823);}[_0x4af4('0x27')](_0x41d701,_0x14732f){if(null===_0x14732f)return 0x0;if(_0x41d701['target']instanceof _0x2439f7)return _0x14732f[_0x4af4('0x44')];{const _0x5c37c9=new _0x2439f7(this[_0x4af4('0x8')][_0x4af4('0x32')])[_0x4af4('0x44')];return _0x14732f[_0x4af4('0x44')]-_0x5c37c9;}}[_0x4af4('0xf')](_0x1cd56e,_0x83c00,_0x1e0e0c=this['context'][_0x4af4('0x2b')]['get'](_0x4af4('0x3b'))){_0x1e0e0c&&(_0x83c00=Math['max'](_0x83c00,this[_0x4af4('0x2e')](_0x1cd56e))),_0x1cd56e['top']=_0x83c00;}[_0x4af4('0x2e')](_0x128e0b){let _0x5d9e1c=this['_getItemBefore'](_0x128e0b),_0x300e19=0x0;for(;_0x5d9e1c;)_0x5d9e1c[_0x4af4('0x12')](),_0x300e19+=this['_spaceBetweenItems']+_0x5d9e1c[_0x4af4('0x0')],_0x5d9e1c=this['_getItemBefore'](_0x5d9e1c);return _0x300e19;}}function M(_0x38bfac,_0x10bd08){return Math[_0x4af4('0x7')](_0x38bfac-_0x10bd08,0x0);}function y(_0x47e34e){return null!==_0x47e34e&&_0x4af4('0x2d')==typeof _0x47e34e&&0x1===_0x47e34e[_0x4af4('0x46')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2298=['isDirty','number','children','set','setTemplate','counterView','ck-annotation-counter__badge--edit-mode','ck-annotation-counter','ck-annotation-counter__badge--','icon','_badge','bindTemplate','annotationType','...'];(function(_0x5d2686,_0x2298d1){const _0x5312fb=function(_0x2d146b){while(--_0x2d146b){_0x5d2686['push'](_0x5d2686['shift']());}};_0x5312fb(++_0x2298d1);}(_0x2298,0x1eb));const _0x5312=function(_0x5d2686,_0x2298d1){_0x5d2686=_0x5d2686-0x0;let _0x5312fb=_0x2298[_0x5d2686];return _0x5312fb;};import{ButtonView as _0x36e74f,View as _0x30c59a}from'ckeditor5/src/ui.js';import _0x254c57 from'../../../theme/icons/add-comment.svg';export default class D extends _0x36e74f{constructor(_0xc9b88c){super(_0xc9b88c);const _0x4d93ce=this[_0x5312('0xa')];this[_0x5312('0x2')](_0x5312('0xd'),!0x1),this[_0x5312('0x2')](_0x5312('0x0'),0x0),this['bind'](_0x5312('0x9'))['to'](this,_0x5312('0xd'),this,_0x5312('0x0'),(_0x2fa9a1,_0x250c50)=>_0x2fa9a1?_0x5312('0xc'):_0x250c50['toString']()),this[_0x5312('0x2')](_0x5312('0xb'),''),this[_0x5312('0x8')]=_0x254c57,this['extendTemplate']({'attributes':{'class':[_0x5312('0x6')]}}),this[_0x5312('0x4')]=new _0x30c59a(),this['counterView'][_0x5312('0x3')]({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4d93ce['to'](_0x5312('0xb'),_0x59bf5a=>_0x5312('0x7')+_0x59bf5a),_0x4d93ce['if'](_0x5312('0xd'),_0x5312('0x5'))]},'children':[{'text':_0x4d93ce['to'](_0x5312('0x9'))}]}),this[_0x5312('0x1')]['add'](this[_0x5312('0x4')]);}}
|