@ckeditor/ckeditor5-comments 0.0.0-nightly-20230811.0 → 0.0.0-nightly-20230812.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-20230812.0",
|
|
4
4
|
"description": "Collaborative comments feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"CHANGELOG.md"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"ckeditor5": "0.0.0-nightly-
|
|
47
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
46
|
+
"ckeditor5": "0.0.0-nightly-20230812.0",
|
|
47
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230812.0",
|
|
48
48
|
"lodash-es": "4.17.21"
|
|
49
49
|
},
|
|
50
50
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f16=['add','remove','item','_target','isActive','view','function','innerView','element','length','focusTracker','annotation-invalid-target','targetRect','focusableElements','filter','isVisible','_getNormalizedTarget','every','isArray','set','clear','nodeType','_assertCorrectTarget','getClientRects','_type','refreshVisibility','_id','destroy','target','mainView'];(function(_0x1d081f,_0x4f16c6){const _0x5574aa=function(_0x342bd8){while(--_0x342bd8){_0x1d081f['push'](_0x1d081f['shift']());}};_0x5574aa(++_0x4f16c6);}(_0x4f16,0xde));const _0x5574=function(_0x1d081f,_0x4f16c6){_0x1d081f=_0x1d081f-0x0;let _0x5574aa=_0x4f16[_0x1d081f];return _0x5574aa;};import{CKEditorError as _0x214602,Rect as _0x3ffc1b,Collection as _0x1fb86e,ObservableMixin as _0x3f03ce}from'ckeditor5/src/utils';export default class d extends _0x3f03ce(){constructor({view:_0x4d8ca3,target:_0x44aad3,type:_0x34a414,isVisible:_0x4fb124=!0x0}){super(),this[_0x5574('0x17')]=_0x4d8ca3,this['view'][_0x5574('0x1a')]||this[_0x5574('0x17')]['render'](),this['_type']=_0x34a414,this[_0x5574('0x15')]=_0x44aad3,d['_assertCorrectTarget'](this[_0x5574('0x4')]()),this['focusableElements']=new _0x1fb86e([this['view'][_0x5574('0x1a')]],{'idProperty':_0x5574('0xe')}),this[_0x5574('0x1')]['on']('add',(_0x30786a,_0x37002c)=>{this['view']['focusTracker'][_0x5574('0x12')](_0x37002c);}),this[_0x5574('0x1')]['on'](_0x5574('0x13'),(_0x59bf94,_0x15f3f3)=>{this[_0x5574('0x17')][_0x5574('0x1c')]['remove'](_0x15f3f3);}),this[_0x5574('0x7')](_0x5574('0x3'),_0x4fb124);}get['type'](){return _0x5574('0x18')==typeof this[_0x5574('0xc')]?this[_0x5574('0xc')]():this[_0x5574('0xc')];}get[_0x5574('0x19')](){return this[_0x5574('0x17')][_0x5574('0x11')];}get['target'](){const _0x38e980=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x38e980),_0x38e980;}get[_0x5574('0x0')](){const _0x3691a2=this[_0x5574('0x10')];if(null===_0x3691a2)return null;if(_0x3691a2 instanceof _0x3ffc1b)return _0x3691a2;const _0x95bbc3=_0x3691a2[_0x5574('0x2')](_0x21be9b=>function(_0x428167){const _0x5967ca=_0x428167['offsetParent'];if(_0x5967ca)return!0x0;const _0x95ef55=_0x428167[_0x5574('0xb')]()[_0x5574('0x14')](0x0);return!!_0x95ef55;}(_0x21be9b));return 0x0===_0x95bbc3[_0x5574('0x1b')]?null:new _0x3ffc1b(_0x95bbc3[0x0][_0x5574('0xb')]()[_0x5574('0x14')](0x0));}get[_0x5574('0x16')](){return this[_0x5574('0x17')]['isActive'];}set[_0x5574('0x16')](_0x4c2f1f){this[_0x5574('0x17')]['isActive']=_0x4c2f1f,this[_0x5574('0x17')][_0x5574('0x11')][_0x5574('0x16')]=_0x4c2f1f;}['updateTargetRect'](){this[_0x5574('0x17')][_0x5574('0x0')]=this[_0x5574('0x0')];}[_0x5574('0xf')](){this[_0x5574('0x1')]['stopListening'](),this[_0x5574('0x1')][_0x5574('0x8')](),this['stopListening']();}[_0x5574('0xd')](){this[_0x5574('0x3')]=!!this['targetRect'];}static[_0x5574('0xa')](_0x14782b){if(!(null===_0x14782b||_0x14782b instanceof _0x3ffc1b||Array[_0x5574('0x6')](_0x14782b)&&_0x14782b[_0x5574('0x5')](_0x1bc069=>y(_0x1bc069))))throw new _0x214602(_0x5574('0x1d'),null,{'target':_0x14782b});}[_0x5574('0x4')](){const _0x2f1e90=_0x5574('0x18')==typeof this['_target']?this[_0x5574('0x15')]():this[_0x5574('0x15')];return y(_0x2f1e90)?[_0x2f1e90]:_0x2f1e90;}}function y(_0x4458bd){return null!==_0x4458bd&&'object'==typeof _0x4458bd&&_0x5574('0x9')in _0x4458bd&&0x1===_0x4458bd[_0x5574('0x9')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bdd=['top','view','_innerViewToAnnotation','listenTo','clear','fire','refreshPositioning','_focusTracker','innerView','destroy','_viewToAnnotation','getByInnerView','_getOrderInContent','blur','change:isFocused','from','targetRect','annotationcollection-duplicated-item','delete','getIndex','remove','focus','isFocused','annotationcollection-not-existing-item','stopListening','add','left','set','has','focusableElements','updateTargetRect','_sort','length','get','focusTracker'];(function(_0x275c3f,_0x3bddaf){const _0x2c06ae=function(_0x5dc95d){while(--_0x5dc95d){_0x275c3f['push'](_0x275c3f['shift']());}};_0x2c06ae(++_0x3bddaf);}(_0x3bdd,0x6e));const _0x2c06=function(_0x275c3f,_0x3bddaf){_0x275c3f=_0x275c3f-0x0;let _0x2c06ae=_0x3bdd[_0x275c3f];return _0x2c06ae;};import{CKEditorError as _0x42961c,Collection as _0x16129a,FocusTracker as _0x54cf3e}from'ckeditor5/src/utils';export default class x extends _0x16129a{constructor(_0x27b6f0=[]){super(),this[_0x2c06('0x20')]=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x54cf3e(),this[_0x2c06('0x2')]['on'](_0x2c06('0x9'),(_0x85f755,_0x4b7d25,_0x3fc951)=>{_0x3fc951||this[_0x2c06('0x0')](_0x2c06('0x8'));});for(const _0x40775b of _0x27b6f0)this['add'](_0x40775b);}get[_0x2c06('0x11')](){return this['_focusTracker'][_0x2c06('0x11')];}[_0x2c06('0x14')](_0x15778e){if(this['has'](_0x15778e))throw new _0x42961c(_0x2c06('0xc'),null);this[_0x2c06('0x20')][_0x2c06('0x16')](_0x15778e[_0x2c06('0x3')],_0x15778e),this[_0x2c06('0x5')][_0x2c06('0x16')](_0x15778e[_0x2c06('0x1f')],_0x15778e);for(const _0x270449 of _0x15778e[_0x2c06('0x18')])this['_focusTracker'][_0x2c06('0x14')](_0x270449);this[_0x2c06('0x21')](_0x15778e[_0x2c06('0x18')],_0x2c06('0x14'),(_0x488980,_0x40ab22)=>{this[_0x2c06('0x2')][_0x2c06('0x14')](_0x40ab22);}),this['listenTo'](_0x15778e[_0x2c06('0x18')],'remove',(_0x3f8c6b,_0x4f4cb8)=>{this[_0x2c06('0x2')][_0x2c06('0xf')](_0x4f4cb8);}),this[_0x2c06('0x21')](_0x15778e[_0x2c06('0x1f')][_0x2c06('0x1d')],_0x2c06('0x9'),(_0x240026,_0x4804d3,_0x2209db)=>{_0x2209db&&this[_0x2c06('0x0')](_0x2c06('0x10'),_0x15778e);}),_0x15778e['updateTargetRect']();const _0x3c8201=this[_0x2c06('0x7')](_0x15778e['view'][_0x2c06('0xb')]);return super['add'](_0x15778e,_0x3c8201);}[_0x2c06('0xf')](_0x294bd9){if(!this[_0x2c06('0x17')](_0x294bd9))throw new _0x42961c(_0x2c06('0x12'),null);this[_0x2c06('0x13')](_0x294bd9[_0x2c06('0x1f')]['focusTracker']),this[_0x2c06('0x13')](_0x294bd9[_0x2c06('0x18')]);for(const _0x4db58c of _0x294bd9[_0x2c06('0x18')])this['_focusTracker']['remove'](_0x4db58c);return this[_0x2c06('0x5')]['delete'](_0x294bd9[_0x2c06('0x1f')]),this['_innerViewToAnnotation'][_0x2c06('0xd')](_0x294bd9[_0x2c06('0x3')]),super['remove'](_0x294bd9);}[_0x2c06('0x6')](_0x41d40c){return this[_0x2c06('0x20')][_0x2c06('0x1c')](_0x41d40c);}['getByView'](_0x3f35ae){return this[_0x2c06('0x5')][_0x2c06('0x1c')](_0x3f35ae);}[_0x2c06('0x4')](){super[_0x2c06('0x22')](),this[_0x2c06('0x13')](),this[_0x2c06('0x20')][_0x2c06('0x22')](),this['_viewToAnnotation'][_0x2c06('0x22')](),this[_0x2c06('0x2')]['destroy']();}[_0x2c06('0x1')](){for(const _0x51edbe of this)_0x51edbe[_0x2c06('0x19')]();this[_0x2c06('0x1a')]();}['_sort'](){const _0x53a741=Array[_0x2c06('0xa')](this)['sort']((_0x42e4c1,_0x7f6010)=>v(_0x42e4c1['view'][_0x2c06('0xb')],_0x7f6010[_0x2c06('0x1f')][_0x2c06('0xb')]));for(let _0x13db3d=_0x53a741[_0x2c06('0x1b')]-0x1;_0x13db3d>0x0;_0x13db3d--){const _0x2d5db5=_0x53a741[_0x13db3d];_0x13db3d!==this[_0x2c06('0xe')](_0x2d5db5)&&(this[_0x2c06('0xf')](_0x2d5db5),this['add'](_0x2d5db5));}}[_0x2c06('0x7')](_0x1a31e4){let _0x20cbb2=0x0;if(!_0x1a31e4)return this[_0x2c06('0x1b')];for(const _0x163ca8 of this){const _0x2582b0=_0x163ca8[_0x2c06('0x1f')]['targetRect'];if(_0x2582b0){if(v(_0x1a31e4,_0x2582b0)<0x0)return _0x20cbb2;_0x20cbb2++;}}return _0x20cbb2;}}export function bindAnnotationCollections({source:_0x45a651,target:_0x38d956,filter:_0x25cf97}){for(const _0x43864e of _0x45a651)_0x25cf97(_0x43864e)&&_0x38d956[_0x2c06('0x14')](_0x43864e);_0x38d956['listenTo'](_0x45a651,_0x2c06('0x14'),(_0x3d28c3,_0x12046f)=>{_0x25cf97(_0x12046f)&&_0x38d956['add'](_0x12046f);}),_0x38d956['listenTo'](_0x45a651,_0x2c06('0xf'),(_0x5720df,_0x127d4d)=>{_0x38d956[_0x2c06('0x17')](_0x127d4d)&&_0x38d956[_0x2c06('0xf')](_0x127d4d);});}function v(_0x368d53,_0x48df23){if(null===_0x368d53&&null===_0x48df23)return 0x0;if(null===_0x368d53)return-0x1;if(null===_0x48df23)return 0x1;const _0x547313=_0x368d53[_0x2c06('0x1e')]-_0x48df23[_0x2c06('0x1e')];return 0x0==_0x547313?_0x368d53[_0x2c06('0x15')]-_0x48df23[_0x2c06('0x15')]:_0x547313;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1abf=['createAnnotation','getByInnerView','_removeActiveAnnotation','collection','listenTo','createAnnotationView','isVisible','refreshVisibility','_deactivateAllAnnotations','_activateAnnotation','element','view','refreshPositioning','_bindAnnotationsToVisibleAnnotations','_addActiveAnnotation','activeAnnotations','change:isVisible','has','deactivateAll','add','pluginName','remove','focusTracker','fire','activate','_visibleAnnotations','destroy','source'];(function(_0x250e7f,_0x1abfad){const _0x4cbcf7=function(_0x2ed6f8){while(--_0x2ed6f8){_0x250e7f['push'](_0x250e7f['shift']());}};_0x4cbcf7(++_0x1abfad);}(_0x1abf,0xff));const _0x4cbc=function(_0x250e7f,_0x1abfad){_0x250e7f=_0x250e7f-0x0;let _0x4cbcf7=_0x1abf[_0x250e7f];return _0x4cbcf7;};import{ContextPlugin as _0x3783ee}from'ckeditor5/src/core';import _0x59296d from'./annotation';import _0x1e857e from'./annotationcollection';import _0x3fd126 from'./view/annotationview';export default class b extends _0x3783ee{static get[_0x4cbc('0x11')](){return'Annotations';}constructor(_0x5f1ca3){super(_0x5f1ca3),this['collection']=new _0x1e857e(),this[_0x4cbc('0x16')]=new _0x1e857e(),this['set'](_0x4cbc('0xc'),new Set()),this[_0x4cbc('0xa')]();}[_0x4cbc('0x10')](_0x591272){this[_0x4cbc('0x0')][_0x4cbc('0x10')](_0x591272);}['remove'](_0x520125){this[_0x4cbc('0x0')][_0x4cbc('0x12')](_0x520125),_0x520125['destroy']();}[_0x4cbc('0x4')](){for(const _0x543c74 of this[_0x4cbc('0x0')])_0x543c74[_0x4cbc('0x4')]();}['refreshPositioning'](){this[_0x4cbc('0x16')][_0x4cbc('0x9')]();}['getByInnerView'](_0x4038c1){return this[_0x4cbc('0x0')][_0x4cbc('0x1a')](_0x4038c1);}[_0x4cbc('0xf')](){this[_0x4cbc('0x14')](_0x4cbc('0x5'));}['destroy'](){for(const _0x177933 of this[_0x4cbc('0x0')])_0x177933[_0x4cbc('0x17')]();this[_0x4cbc('0x16')][_0x4cbc('0x17')](),this['collection'][_0x4cbc('0x17')](),super[_0x4cbc('0x17')]();}[_0x4cbc('0x15')](_0x235a63){this[_0x4cbc('0x14')](_0x4cbc('0x6'),_0x235a63);}[_0x4cbc('0x19')](_0x147fac){return new _0x59296d(_0x147fac);}[_0x4cbc('0x2')](_0xd6b821,_0xe44cc0){return new _0x3fd126(_0xd6b821,_0xe44cc0);}[_0x4cbc('0xb')](_0x3673ed){const _0xecc56f=new Set(this['activeAnnotations']);_0xecc56f[_0x4cbc('0x10')](_0x3673ed),this[_0x4cbc('0xc')]=_0xecc56f;}[_0x4cbc('0x1b')](_0x49c1b9){const _0x227457=new Set(this[_0x4cbc('0xc')]);_0x227457['delete'](_0x49c1b9),this[_0x4cbc('0xc')]=_0x227457;}[_0x4cbc('0xa')](){const _0x14a670=this['collection'],_0x2dab5b=this[_0x4cbc('0x16')];function _0x512ba2(_0xe373e3){const _0x3f99b2=_0xe373e3[_0x4cbc('0x18')];_0x3f99b2['isVisible']&&!_0x2dab5b[_0x4cbc('0xe')](_0x3f99b2)?_0x2dab5b[_0x4cbc('0x10')](_0x3f99b2):!_0x3f99b2[_0x4cbc('0x3')]&&_0x2dab5b['has'](_0x3f99b2)&&_0x2dab5b[_0x4cbc('0x12')](_0x3f99b2),_0x3f99b2['view'][_0x4cbc('0x13')][_0x4cbc('0x12')](_0x3f99b2[_0x4cbc('0x8')][_0x4cbc('0x7')]),_0x3f99b2[_0x4cbc('0x8')][_0x4cbc('0x13')][_0x4cbc('0x10')](_0x3f99b2[_0x4cbc('0x8')]['element']);}this[_0x4cbc('0x1')](_0x14a670,_0x4cbc('0x10'),(_0x3fda94,_0x5042b9)=>{_0x5042b9[_0x4cbc('0x3')]&&_0x2dab5b['add'](_0x5042b9),this['listenTo'](_0x5042b9,'change:isVisible',_0x512ba2);}),this[_0x4cbc('0x1')](_0x14a670,_0x4cbc('0x12'),(_0x58a24a,_0x55a7c5)=>{_0x2dab5b['has'](_0x55a7c5)&&_0x2dab5b[_0x4cbc('0x12')](_0x55a7c5),this['stopListening'](_0x55a7c5,_0x4cbc('0xd'),_0x512ba2);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a30=['init','change:activeAnnotation','function','deactivate','register','_setSelectedAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','listenTo','deactivateAll','_removeActiveAnnotation','_uis','isActive','delete','hasActive','AnnotationsUIs','add','_activateAnnotation','set','attach','pluginName','_deactivateAllAnnotations','size','annotationsuis-register-invalid-interface','has','destroy','annotationsuis-missing-ui','find','annotationsuis-register-already-registered','activate','refilterAnnotations','length','filter','context','type','activeUIs','collection','remove','from','detach','plugins','_addActiveAnnotation','get','_uisData','setActiveAnnotation','_visibleAnnotations','push'];(function(_0x1c5371,_0x4a30eb){const _0x2c74a4=function(_0x10b900){while(--_0x10b900){_0x1c5371['push'](_0x1c5371['shift']());}};_0x2c74a4(++_0x4a30eb);}(_0x4a30,0xdb));const _0x2c74=function(_0x1c5371,_0x4a30eb){_0x1c5371=_0x1c5371-0x0;let _0x2c74a4=_0x4a30[_0x1c5371];return _0x2c74a4;};import{ContextPlugin as _0x542f2a}from'ckeditor5/src/core';import{CKEditorError as _0x2f5908}from'ckeditor5/src/utils';import _0x1f3544,{bindAnnotationCollections as _0x5904c7}from'./annotationcollection';import _0x1965b4 from'./annotations';export default class M extends _0x542f2a{static get['requires'](){return[_0x1965b4];}static get[_0x2c74('0x1e')](){return _0x2c74('0x19');}constructor(_0x4484a6){super(_0x4484a6),this[_0x2c74('0x2d')]=new Set(),this['_uis']=new Map(),this[_0x2c74('0x7')]=new Map();}[_0x2c74('0xb')](){const _0xb5a78b=this[_0x2c74('0x2b')][_0x2c74('0x4')][_0x2c74('0x6')](_0x1965b4);this[_0x2c74('0x12')](_0xb5a78b,_0x2c74('0x1b'),(_0xa06809,_0x2dc965)=>{for(const _0x4ac370 of this[_0x2c74('0x2d')]){const _0x2db4f6=this[_0x2c74('0x15')][_0x2c74('0x6')](_0x4ac370);(0x0,this[_0x2c74('0x7')][_0x2c74('0x6')](_0x4ac370)['filter'])(_0x2dc965)&&_0x2db4f6[_0x2c74('0x8')](_0x2dc965);}}),this['listenTo'](_0xb5a78b,_0x2c74('0x1f'),()=>{for(const _0x255388 of this[_0x2c74('0x2d')]){this[_0x2c74('0x15')][_0x2c74('0x6')](_0x255388)[_0x2c74('0x8')](null);}}),this['listenTo'](_0xb5a78b[_0x2c74('0x9')],'add',(_0x33dd13,_0x5711ef)=>{this[_0x2c74('0x11')](_0x5711ef);});}[_0x2c74('0x18')](){return this[_0x2c74('0x2d')][_0x2c74('0x20')]>0x0;}[_0x2c74('0x16')](_0xb41eda){return this[_0x2c74('0x2d')][_0x2c74('0x22')](_0xb41eda);}[_0x2c74('0x27')](_0x2fc375,_0x28f055=()=>!0x0){const _0x17bce2=this[_0x2c74('0x2b')][_0x2c74('0x4')][_0x2c74('0x6')](_0x1965b4);if(!this[_0x2c74('0x15')]['has'](_0x2fc375))throw new _0x2f5908(_0x2c74('0x24'),this,{'uiName':_0x2fc375});this[_0x2c74('0x16')](_0x2fc375)&&this[_0x2c74('0xe')](_0x2fc375),this[_0x2c74('0x2d')][_0x2c74('0x1a')](_0x2fc375);const _0x257b56=new _0x1f3544(),_0x3f3cec=_0x17bce2[_0x2c74('0x9')];_0x5904c7({'source':_0x3f3cec,'target':_0x257b56,'filter':_0x28f055}),this[_0x2c74('0x7')][_0x2c74('0x1c')](_0x2fc375,{'collection':_0x257b56,'filter':_0x28f055});const _0x3d6e2d=this[_0x2c74('0x15')][_0x2c74('0x6')](_0x2fc375);_0x3d6e2d[_0x2c74('0x1d')](_0x257b56),this[_0x2c74('0x12')](_0x3d6e2d,_0x2c74('0xc'),(_0x5d93cb,_0x1547db,_0x3b6f74,_0x208bc3)=>{_0x208bc3&&_0x17bce2[_0x2c74('0x14')](_0x208bc3),_0x3b6f74&&_0x17bce2[_0x2c74('0x5')](_0x3b6f74);});}[_0x2c74('0xe')](_0x37a787){if(this[_0x2c74('0x2d')]['delete'](_0x37a787),!this['_uis'][_0x2c74('0x22')](_0x37a787))throw new _0x2f5908('annotationsuis-missing-ui',this,{'uiName':_0x37a787});const _0x22b5f5=this[_0x2c74('0x15')][_0x2c74('0x6')](_0x37a787);_0x22b5f5[_0x2c74('0x3')](),this['stopListening'](_0x22b5f5),this['_uisData'][_0x2c74('0x6')](_0x37a787)['collection'][_0x2c74('0x23')](),this['_uisData'][_0x2c74('0x17')](_0x37a787);}['switchTo'](_0x1683fd){if(!this['_uis'][_0x2c74('0x22')](_0x1683fd))throw new _0x2f5908(_0x2c74('0x24'),this,{'uiName':_0x1683fd});const _0x32ef65=this[_0x2c74('0x2b')]['plugins'][_0x2c74('0x6')](_0x1965b4),_0x117ad6=Array[_0x2c74('0x2')](_0x32ef65['activeAnnotations'])[0x0]||null;this[_0x2c74('0x13')](),this[_0x2c74('0x27')](_0x1683fd);const _0x48f213=this['_uis']['get'](_0x1683fd);_0x48f213[_0x2c74('0x8')](_0x117ad6),_0x48f213['_setSelectedAnnotations']&&_0x117ad6&&_0x48f213[_0x2c74('0x10')]([_0x117ad6]);}[_0x2c74('0x13')](){for(const _0x5d8dc9 of this[_0x2c74('0x2d')])this[_0x2c74('0xe')](_0x5d8dc9);}[_0x2c74('0xf')](_0xe815ce,_0x167230){if(this['_uis']['has'](_0xe815ce))throw new _0x2f5908(_0x2c74('0x26'));if(_0x2c74('0xd')!=typeof _0x167230[_0x2c74('0x1d')]||_0x2c74('0xd')!=typeof _0x167230[_0x2c74('0x3')]||'function'!=typeof _0x167230[_0x2c74('0x8')])throw new _0x2f5908(_0x2c74('0x21'),null);this[_0x2c74('0x15')][_0x2c74('0x1c')](_0xe815ce,_0x167230);}[_0x2c74('0x28')](){const _0x276b73=this['context'][_0x2c74('0x4')]['get'](_0x1965b4)['collection'],_0x35b578=new Map(),_0x3936e7=Array[_0x2c74('0x2')](this[_0x2c74('0x2d')]);for(const _0x40f037 of this['activeUIs']){const _0x3d1d13=this[_0x2c74('0x7')]['get'](_0x40f037)[_0x2c74('0x0')];for(const _0x9502e2 of _0x3d1d13)_0x35b578['set'](_0x9502e2,_0x40f037);}for(const _0x16a13a of _0x276b73){const _0x1638e1=_0x35b578[_0x2c74('0x6')](_0x16a13a);this[_0x2c74('0x11')](_0x16a13a);const _0x1de994=_0x3936e7[_0x2c74('0x25')](_0x1f88f7=>this[_0x2c74('0x7')][_0x2c74('0x6')](_0x1f88f7)[_0x2c74('0x2a')](_0x16a13a));_0x1638e1!==_0x1de994&&(_0x1638e1&&this[_0x2c74('0x7')][_0x2c74('0x6')](_0x1638e1)[_0x2c74('0x0')][_0x2c74('0x1')](_0x16a13a),_0x1de994&&this[_0x2c74('0x7')][_0x2c74('0x6')](_0x1de994)['collection'][_0x2c74('0x1a')](_0x16a13a));}}[_0x2c74('0x23')](){this[_0x2c74('0x13')](),super[_0x2c74('0x23')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x8a4f6c){const _0x1f8ce6=[];for(const _0x427f59 of this[_0x2c74('0x2d')]){(0x0,this['_uisData'][_0x2c74('0x6')](_0x427f59)['filter'])(_0x8a4f6c)&&_0x1f8ce6[_0x2c74('0xa')](_0x427f59);}if(_0x1f8ce6[_0x2c74('0x29')]>0x1)throw new _0x2f5908('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x1f8ce6,'annotationType':_0x8a4f6c[_0x2c74('0x2c')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36cd=['push','delete','_editorAnnotations','range','editing','uiUpdate','model','focusTracker','annotation','element','addSourceCollector','map','set','selection','fire','_dataCollectors','editor','isCollapsed','listenTo','document','refreshSelectedViews','has','function','view','getOrderedSelectedAnnotations','pluginName','_editorAnnotationsData','add','isEqual','from','collection','plugins','update','EditorAnnotations','get','hasDomSelection','remove','requires','editorannotations-invalid-source-callback','registerAnnotation','refresh','innerView'];(function(_0x40bb40,_0x36cdf5){const _0x22d3b2=function(_0x2e7309){while(--_0x2e7309){_0x40bb40['push'](_0x40bb40['shift']());}};_0x22d3b2(++_0x36cdf5);}(_0x36cd,0x174));const _0x22d3=function(_0x40bb40,_0x36cdf5){_0x40bb40=_0x40bb40-0x0;let _0x22d3b2=_0x36cd[_0x40bb40];return _0x22d3b2;};import{Plugin as _0x8ccfe4}from'ckeditor5/src/core';import{CKEditorError as _0x2b699e}from'ckeditor5/src/utils';import{debounce as _0x299552}from'lodash-es';import _0x24a087 from'./annotations';export default class k extends _0x8ccfe4{static get[_0x22d3('0x1')](){return[_0x24a087];}static get[_0x22d3('0x1f')](){return _0x22d3('0x27');}constructor(_0x4f9bbb){super(_0x4f9bbb),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x4738a6=this[_0x22d3('0x16')],_0x1f80cd=_0x4738a6[_0x22d3('0xc')][_0x22d3('0x19')][_0x22d3('0x13')],_0x543ed0=_0x299552(()=>this[_0x22d3('0x1a')](),0xa);_0x1f80cd['on']('change:range',(_0x37bf58,_0x4f5048)=>{_0x4f5048['directChange']&&(_0x543ed0['cancel'](),this[_0x22d3('0x1a')]());}),this['listenTo'](_0x4738a6['editing']['view'][_0x22d3('0x19')],'change:isFocused',(_0x1fff74,_0x237f5c,_0x95f842)=>{_0x95f842&&_0x543ed0();}),this[_0x22d3('0x18')](_0x4738a6['ui'][_0x22d3('0xd')],'change:isFocused',(_0x345c3c,_0x581f77,_0x54ea38)=>{_0x54ea38||_0x4738a6['isReadOnly']||this['fire']('blur',{'isAnnotationTracked':_0x5e195c=>this['_editorAnnotationsData'][_0x22d3('0x1b')](_0x5e195c[_0x22d3('0x5')])});}),this[_0x22d3('0x18')](this[_0x22d3('0x16')]['ui'],_0x22d3('0x26'),()=>this[_0x22d3('0x14')](_0x22d3('0xb')));}[_0x22d3('0x3')](_0x548d01){if(this[_0x22d3('0x8')][_0x22d3('0x1b')](_0x548d01[_0x22d3('0x1d')]))return;this[_0x22d3('0x8')][_0x22d3('0x21')](_0x548d01['view']),this[_0x22d3('0x16')]['ui'][_0x22d3('0xd')][_0x22d3('0x21')](_0x548d01[_0x22d3('0x1d')][_0x22d3('0xf')]);const _0x59bbb=this[_0x22d3('0x16')][_0x22d3('0x25')][_0x22d3('0x28')](_0x24a087);this['listenTo'](_0x59bbb[_0x22d3('0x24')],'remove',(_0x447c27,_0x99ff06)=>{this['editor']['ui'][_0x22d3('0xd')][_0x22d3('0x0')](_0x99ff06[_0x22d3('0x1d')][_0x22d3('0xf')]),this[_0x22d3('0x8')][_0x22d3('0x7')](_0x99ff06[_0x22d3('0x1d')]);});}[_0x22d3('0x29')](){return this[_0x22d3('0x16')][_0x22d3('0xa')][_0x22d3('0x1d')][_0x22d3('0x29')];}[_0x22d3('0x10')](_0xc7d21f){if(_0x22d3('0x1c')!=typeof _0xc7d21f)throw new _0x2b699e(_0x22d3('0x2'));this[_0x22d3('0x15')][_0x22d3('0x21')](_0xc7d21f);}['refreshSelectedViews'](){this['fire'](_0x22d3('0x4'));}[_0x22d3('0x1e')]({activeAnnotation:_0x511033,annotations:_0x3b6107}){const _0x4a0b2a=[],_0x74ccf=this['editor'][_0x22d3('0xc')][_0x22d3('0x19')][_0x22d3('0x13')],_0x1fb067=Array[_0x22d3('0x23')](_0x74ccf['getRanges']());for(const [_0x4d4c8a,_0x47ba61]of this[_0x22d3('0x20')]){const _0x245242=_0x517405(_0x47ba61),_0x190618=_0x3b6107['getByInnerView'](_0x4d4c8a);_0x245242&&_0x190618&&_0x4a0b2a[_0x22d3('0x6')]({'annotation':_0x190618,'range':_0x245242});}function _0x517405(_0x13725e){for(const _0x5b8426 of _0x13725e)for(const _0x2ca4b8 of _0x1fb067)if(_0x5b8426['containsRange'](_0x2ca4b8,!_0x74ccf[_0x22d3('0x17')]))return _0x5b8426;return null;}return _0x4a0b2a['sort']((_0x208042,_0x236a21)=>{const _0x3aa4e0=_0x208042[_0x22d3('0x9')],_0xa76d3d=_0x236a21[_0x22d3('0x9')];if(!_0x3aa4e0[_0x22d3('0x22')](_0xa76d3d)){if(_0x3aa4e0['containsRange'](_0xa76d3d,!0x0))return 0x1;if(_0xa76d3d['containsRange'](_0x3aa4e0,!0x0))return-0x1;}return _0x208042[_0x22d3('0xe')]==_0x511033?-0x1:_0x236a21[_0x22d3('0xe')]==_0x511033?0x1:0x0;})[_0x22d3('0x11')](_0x1aec76=>_0x1aec76[_0x22d3('0xe')]);}get[_0x22d3('0x20')](){const _0x24a657=new Map();for(const _0x868fff of Array['from'](this[_0x22d3('0x15')]))for(const [_0x1eaa0b,_0x27b815]of _0x868fff())_0x24a657[_0x22d3('0x12')](_0x1eaa0b,_0x27b815);return _0x24a657;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ecf=['_addAnnotationToBalloon','domConverter','getFirstRange','afterInit','isFocused','set','fromRect','change:height','switchTo','change:isFocused','includes','left','bottom','focusTracker','inlineannotations-detach-not-attached','focus','width','_closeAnnotation','top','isAttached','right','keystrokes','pluginName','_setSelectedAnnotations','view','collapse','addObserver','detach','isActive','_forceRefresh','visibleView','add','attach','blur','getByView','_getBalloonTargetForAnnotation','refresh','_balloon','_manuallyClosed','target','selection','get','inlineannotations-attach-already-attached','_removeAnnotationFromBalloon','activeAnnotation','setActiveAnnotation','showStack','remove','context','annotations','editing','length','mousedown','_selectedAnnotations','_addedAnnotations','has','listenTo','updatePosition','editor','stopListening','InlineAnnotations','change:visibleView','Esc','hasView','getOrderedSelectedAnnotations','plugins','delete','inline','viewRangeToDom','targetRect','document','push','map','getClientRects'];(function(_0x45119f,_0x3ecf28){const _0x2b0676=function(_0x429c7f){while(--_0x429c7f){_0x45119f['push'](_0x45119f['shift']());}};_0x2b0676(++_0x3ecf28);}(_0x3ecf,0x186));const _0x2b06=function(_0x45119f,_0x3ecf28){_0x45119f=_0x45119f-0x0;let _0x2b0676=_0x3ecf[_0x45119f];return _0x2b0676;};import{Plugin as _0xe75626}from'ckeditor5/src/core';import _0x4057b1 from'./annotationsuis';import _0x377c93 from'./editorannotations';import{ContextualBalloon as _0x14e8e5}from'ckeditor5/src/ui';import{MouseObserver as _0x4ece0d}from'ckeditor5/src/engine';import{CKEditorError as _0x3f6419,Rect as _0x4fcc34}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0xe75626{static get['requires'](){return[_0x377c93,_0x14e8e5,_0x4057b1];}static get[_0x2b06('0x2')](){return _0x2b06('0x28');}constructor(_0x258071){super(_0x258071),_0x258071[_0x2b06('0x1e')][_0x2b06('0x4')][_0x2b06('0x6')](_0x4ece0d),this[_0x2b06('0x49')]=!0x1,this[_0x2b06('0x3b')](_0x2b06('0x18'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x258071[_0x2b06('0x2d')][_0x2b06('0x15')](_0x14e8e5),this[_0x2b06('0x22')]=new Set(),this[_0x2b06('0x21')]=[],this[_0x2b06('0x9')]=!0x1;}['init'](){const _0x44f3e7=this['editor'][_0x2b06('0x2d')][_0x2b06('0x15')](_0x4057b1);_0x44f3e7['context']===this['editor']&&(_0x44f3e7['register'](_0x2b06('0x2f'),this),this['editor'][_0x2b06('0x1')][_0x2b06('0x3b')](_0x2b06('0x2a'),(_0x365f56,_0x2b7053)=>{const _0x2fa3de=this[_0x2b06('0x11')];if(this['isAttached']&&_0x2fa3de[_0x2b06('0xa')]){const _0x12effd=this[_0x2b06('0x1d')][_0x2b06('0xe')](_0x2fa3de[_0x2b06('0xa')]);_0x12effd&&this[_0x2b06('0x47')](_0x12effd),_0x2b7053();}}));}[_0x2b06('0x39')](){const _0x3f1980=this[_0x2b06('0x26')]['plugins'][_0x2b06('0x15')](_0x4057b1);_0x3f1980[_0x2b06('0x1c')]===this[_0x2b06('0x26')]&&(_0x3f1980['hasActive']()||_0x3f1980[_0x2b06('0x3e')]('inline'));}[_0x2b06('0x19')](_0x3b0511){_0x3b0511!==this[_0x2b06('0x18')]&&(this[_0x2b06('0x18')]&&(this[_0x2b06('0x18')][_0x2b06('0x8')]=!0x1),_0x3b0511&&this[_0x2b06('0x26')]['ui'][_0x2b06('0x43')][_0x2b06('0x3a')]&&(this[_0x2b06('0x1d')][_0x2b06('0x23')](_0x3b0511)&&this['_addAnnotationToBalloon'](_0x3b0511,!0x0),_0x3b0511[_0x2b06('0x8')]=!0x0),_0x3b0511||this[_0x2b06('0x3')]([]),this[_0x2b06('0x18')]=_0x3b0511);}[_0x2b06('0xc')](_0x3add43){this[_0x2b06('0x1d')]=_0x3add43;const _0x566fdf=this[_0x2b06('0x26')][_0x2b06('0x2d')]['get'](_0x4057b1),_0x596661=this['_balloon'];if(this[_0x2b06('0x49')])throw new _0x3f6419(_0x2b06('0x16'),this);if(_0x566fdf['context']!==this['editor'])throw new _0x3f6419('inlineannotations-not-allowed-with-context',this);const _0x427df9=this['editor'][_0x2b06('0x2d')][_0x2b06('0x15')](_0x377c93);this[_0x2b06('0x24')](_0x427df9,_0x2b06('0x10'),()=>{const _0x54e17d=_0x427df9[_0x2b06('0x2c')]({'annotations':this['annotations'],'activeAnnotation':this[_0x2b06('0x18')]});var _0x261014,_0x5df536;!this[_0x2b06('0x9')]&&(_0x261014=_0x54e17d,_0x5df536=this[_0x2b06('0x21')],_0x261014['length']===_0x5df536[_0x2b06('0x1f')]&&_0x261014['every'](_0x438dc9=>_0x5df536[_0x2b06('0x40')](_0x438dc9)))||(this['_forceRefresh']=!0x1,this[_0x2b06('0x3')](_0x54e17d),this['setActiveAnnotation'](_0x54e17d[0x0]||null));}),this['listenTo'](_0x427df9,_0x2b06('0xd'),(_0x18d71c,{isAnnotationTracked:_0x5084a4})=>{this[_0x2b06('0x18')]&&_0x5084a4(this[_0x2b06('0x18')])&&(this[_0x2b06('0x3')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](this[_0x2b06('0x26')]['ui']['focusTracker'],_0x2b06('0x3f'),(_0x1b0f2c,_0x4d488a,_0x1f187f)=>{_0x1f187f||this[_0x2b06('0x19')](null);}),this['listenTo'](_0x3add43,'remove',(_0x5d3e0a,_0x413649)=>{this[_0x2b06('0x17')](_0x413649),_0x413649===this['activeAnnotation']&&this[_0x2b06('0x19')](null);}),this[_0x2b06('0x24')](_0x596661,_0x2b06('0x29'),(_0x1e9277,_0x186027,_0x466d64,_0x454566)=>{_0x454566&&this[_0x2b06('0x27')](_0x454566);const _0x511292=_0x3add43['getByView'](_0x466d64);_0x466d64&&_0x511292&&(this[_0x2b06('0x24')](_0x466d64,_0x2b06('0x3d'),()=>{_0x596661[_0x2b06('0x25')]();}),this[_0x2b06('0x24')](_0x466d64,_0x2b06('0x2a'),()=>{this[_0x2b06('0x47')](_0x511292),this[_0x2b06('0x26')][_0x2b06('0x1e')][_0x2b06('0x4')][_0x2b06('0x45')]();}),this[_0x2b06('0x18')]!==_0x511292&&this['setActiveAnnotation'](_0x511292));}),this['listenTo'](this[_0x2b06('0x26')]['ui'],'update',()=>{_0x596661[_0x2b06('0xa')]&&(_0x3add43[_0x2b06('0xe')](_0x596661[_0x2b06('0xa')])&&_0x596661[_0x2b06('0x25')]());}),this['listenTo'](this[_0x2b06('0x26')][_0x2b06('0x1e')]['view'][_0x2b06('0x32')],_0x2b06('0x20'),()=>{this[_0x2b06('0x9')]=!0x0,this[_0x2b06('0x12')]['clear']();}),this['editor'][_0x2b06('0x1e')][_0x2b06('0x4')][_0x2b06('0x32')][_0x2b06('0x14')]['editableElement']&&this['editor'][_0x2b06('0x1e')]['view']['focus'](),this[_0x2b06('0x49')]=!0x0;}[_0x2b06('0x7')](){if(!this[_0x2b06('0x49')])throw new _0x3f6419(_0x2b06('0x44'),this);this['setActiveAnnotation'](null);for(const _0x1a1e28 of this[_0x2b06('0x22')])this[_0x2b06('0x17')](_0x1a1e28);this[_0x2b06('0x27')](),this[_0x2b06('0x49')]=!0x1,this[_0x2b06('0x1d')]=null;}['destroy'](){this[_0x2b06('0x49')]&&this[_0x2b06('0x7')]();}[_0x2b06('0x3')](_0x257c9e){for(const _0x2f6444 of this[_0x2b06('0x21')])_0x257c9e[_0x2b06('0x40')](_0x2f6444)||this[_0x2b06('0x12')]['delete'](_0x2f6444);for(const _0x48a7fd of this['annotations'])_0x257c9e[_0x2b06('0x40')](_0x48a7fd)||this[_0x2b06('0x17')](_0x48a7fd);if(this[_0x2b06('0x26')]['ui'][_0x2b06('0x43')]['isFocused'])for(const _0x548db7 of _0x257c9e)this[_0x2b06('0x36')](_0x548db7);this[_0x2b06('0x21')]=_0x257c9e;}[_0x2b06('0x36')](_0x28dda6,_0x49719a=!0x1){this[_0x2b06('0x12')]['has'](_0x28dda6)||(this['_addedAnnotations']['has'](_0x28dda6)||this[_0x2b06('0x11')][_0x2b06('0x2b')](_0x28dda6['view'])||(this[_0x2b06('0x22')]['add'](_0x28dda6),this[_0x2b06('0x11')][_0x2b06('0xb')]({'stackId':_0x28dda6[_0x2b06('0x4')]['id'],'view':_0x28dda6['view'],'position':{'target':()=>this[_0x2b06('0xf')](_0x28dda6)}})),_0x49719a&&this[_0x2b06('0x11')][_0x2b06('0x1a')](_0x28dda6[_0x2b06('0x4')]['id']));}['_getBalloonTargetForAnnotation'](_0x34c749){const _0x311d81=_0x34c749[_0x2b06('0x13')],_0x4a9cb9=this[_0x2b06('0x26')][_0x2b06('0x1e')][_0x2b06('0x4')],_0x192bc6=_0x4a9cb9[_0x2b06('0x32')][_0x2b06('0x14')][_0x2b06('0x38')](),_0x484e51=_0x4a9cb9[_0x2b06('0x37')][_0x2b06('0x30')](_0x192bc6);if(_0x484e51[_0x2b06('0x5')](!0x0),_0x311d81){if(_0x311d81 instanceof _0x4fcc34)return _0x311d81;let _0x5c7b99=[];for(const _0x16ea47 of _0x311d81)_0x5c7b99['push'](...(_0x140f5d=_0x16ea47[_0x2b06('0x35')](),Array['from'](_0x140f5d)[_0x2b06('0x34')](DOMRect[_0x2b06('0x3c')])));_0x5c7b99=function(_0x2a233c){const _0xed8bcc=[];let _0x25b300=_0x2a233c[0x0];for(let _0x460bb4=0x1;_0x460bb4<_0x2a233c[_0x2b06('0x1f')];_0x460bb4++)F(_0x25b300,_0x2a233c[_0x460bb4])?_0x25b300[_0x2b06('0x46')]+=_0x2a233c[_0x460bb4][_0x2b06('0x46')]:(_0xed8bcc[_0x2b06('0x33')](_0x25b300),_0x25b300=_0x2a233c[_0x460bb4]);return _0xed8bcc['push'](_0x25b300),_0xed8bcc;}(_0x5c7b99);const _0x3cc99e=_0x484e51['getBoundingClientRect']();return _0x5c7b99['find'](_0xc57809=>_0xc57809['top']<=_0x3cc99e[_0x2b06('0x48')]&&_0xc57809[_0x2b06('0x42')]>=_0x3cc99e['bottom']&&_0xc57809[_0x2b06('0x41')]<=_0x3cc99e['left']&&_0xc57809[_0x2b06('0x0')]>=_0x3cc99e[_0x2b06('0x0')])||_0x5c7b99[0x0];}var _0x140f5d;return _0x34c749[_0x2b06('0x31')]||_0x484e51;}['_removeAnnotationFromBalloon'](_0x509a2f){this[_0x2b06('0x22')][_0x2b06('0x23')](_0x509a2f)&&this[_0x2b06('0x11')][_0x2b06('0x2b')](_0x509a2f[_0x2b06('0x4')])&&(this[_0x2b06('0x22')][_0x2b06('0x2e')](_0x509a2f),this[_0x2b06('0x11')][_0x2b06('0x1b')](_0x509a2f['view']));}['_closeAnnotation'](_0x27e729){this[_0x2b06('0x12')]['add'](_0x27e729),this[_0x2b06('0x17')](_0x27e729);}}function F(_0x33399e,_0x23acfc){return _0x33399e['top']===_0x23acfc[_0x2b06('0x48')]&&_0x33399e[_0x2b06('0x42')]===_0x23acfc[_0x2b06('0x42')]&&_0x33399e['right']===_0x23acfc[_0x2b06('0x41')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5cdf=['refresh','mousedown','Esc','has','first','bodyCollection','view','hasDomSelection','_refreshPositioningDebounced','_domEmitter','editors','includes','blur','getByView','add','balloonPanelView','setActiveAnnotation','southArrowNorthWest','_attachListeners','unpin','high','ready','annotationType','length','preventDefault','esc','annotations','remove','removeEventListener','clear','_annotations','NarrowSidebar','execute','_setSelectedAnnotations','_hideBalloon','change:container','_selectedAnnotations','narrowSidebar','_manuallyClosedAnnotationViews','requires','detachFromDom','isDirty','addAnnotation','_detachListeners','resize','northArrowSouth','_detachFromContainer','isVisible','element','isAttached','_destroyEditorAnnotationsIntegration','focusableElements','focus','stopPropagation','_showBalloon','get','from','contains','create','stop','defaultPositions','register','ck-sidebar--narrow','_editorAnnotations','stopListening','find','content','set','narrowsidebar-detach-not-attached','keydown','pin','rearrange','uiUpdate','attachToDom','set:container','getSidebarItemView','init','listenTo','type','preventClosingBalloon','locale','getOrderedSelectedAnnotations','southArrowNorth','_updateBalloonPosition','EditorAnnotations','plugins','_annotationToNarrowView','detach','target','context','addEventListener','low','attach','activeAnnotation','_refreshPositioning','_integrateWithEditorAnnotations','destroy','delete','_attachToContainer','northArrowSouthEast'];(function(_0x2cdd3d,_0x5cdf66){const _0x196ba7=function(_0x1b1431){while(--_0x1b1431){_0x2cdd3d['push'](_0x2cdd3d['shift']());}};_0x196ba7(++_0x5cdf66);}(_0x5cdf,0x120));const _0x196b=function(_0x2cdd3d,_0x5cdf66){_0x2cdd3d=_0x2cdd3d-0x0;let _0x196ba7=_0x5cdf[_0x2cdd3d];return _0x196ba7;};import{ContextPlugin as _0x203cc8,Context as _0x3b6256}from'ckeditor5/src/core';import _0x10bdba from'./annotationsuis';import _0x48e11e from'./sidebar';import _0x1a5194 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x429397,BodyCollection as _0x1f3acb}from'ckeditor5/src/ui';import{CKEditorError as _0x1320ef,DomEmitterMixin as _0x49f1c6,keyCodes as _0x716ebf,Collection as _0x412490}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x5b1677}from'lodash-es';import _0x539083 from'./editorannotations';export default class s extends _0x203cc8{static get[_0x196b('0x33')](){return[_0x48e11e,_0x10bdba];}static get['pluginName'](){return _0x196b('0x2b');}constructor(_0x171296){super(_0x171296),this[_0x196b('0x3d')]=!0x1,this[_0x196b('0x32')]=new Set(),this['_domEmitter']=Object[_0x196b('0x46')](_0x49f1c6),this['_annotationToNarrowView']=new Map(),this[_0x196b('0x4f')](_0x196b('0x5'),null),this[_0x196b('0x26')]=null,this[_0x196b('0x30')]=[],this[_0x196b('0x4b')]=new _0x412490(),this[_0x196b('0x14')]=_0x5b1677(()=>{this[_0x196b('0x6')]();},0xfa,{'leading':!0x1});}[_0x196b('0x58')](){this[_0x196b('0x1')][_0x196b('0x61')][_0x196b('0x43')](_0x10bdba)[_0x196b('0x49')](_0x196b('0x31'),this),this[_0x196b('0x11')]=new _0x1f3acb(this[_0x196b('0x1')][_0x196b('0x5c')]),this[_0x196b('0x1b')]=new _0x429397(this[_0x196b('0x1')][_0x196b('0x5c')]),this[_0x196b('0x11')][_0x196b('0x55')](),this[_0x196b('0x11')][_0x196b('0x1a')](this['balloonPanelView']);}[_0x196b('0x4')](_0x35589b){this[_0x196b('0x26')]=_0x35589b;const _0xeb36a8=this[_0x196b('0x1')]['plugins']['get'](_0x48e11e),_0x28c859=this[_0x196b('0x1b')];if(_0xeb36a8[_0x196b('0x2a')]=_0x35589b,this[_0x196b('0x3d')])throw new _0x1320ef('narrowsidebar-attach-already-attached',this);this[_0x196b('0x3d')]=!0x0,this[_0x196b('0x59')](_0xeb36a8,_0x196b('0x56'),()=>{this[_0x196b('0x63')](),this['listenTo'](_0xeb36a8,_0x196b('0x2f'),_0x511ae5=>{_0x511ae5['off'](),this[_0x196b('0x4')](_0x35589b);});}),_0xeb36a8[_0x196b('0xa')]({'viewClass':_0x196b('0x4a'),'spaceBetweenItems':0x5});const _0x2e124f=_0x3faa90=>{const _0x5e70ed=new _0x1a5194(this[_0x196b('0x1')][_0x196b('0x5c')]);_0xeb36a8[_0x196b('0x36')](_0x3faa90,_0x5e70ed),this[_0x196b('0x62')][_0x196b('0x4f')](_0x3faa90,_0x5e70ed),_0x5e70ed['bind']('isDirty',_0x196b('0x22'),'number')['to'](_0x3faa90[_0x196b('0x12')],_0x196b('0x35'),_0x196b('0x5a'),_0x196b('0x23')),_0x5e70ed['on'](_0x196b('0x2c'),()=>{this['_manuallyClosedAnnotationViews'][_0x196b('0x29')](),_0x28c859[_0x196b('0x4e')][_0x196b('0x10')]!==_0x3faa90[_0x196b('0x12')]?(this[_0x196b('0x42')](_0x3faa90),_0x3faa90[_0x196b('0x12')]['element'][_0x196b('0x40')](),this[_0x196b('0x1c')](_0x3faa90)):this['setActiveAnnotation'](null);});};for(const _0x50544c of _0x35589b)_0x2e124f(_0x50544c);this[_0x196b('0x59')](_0x35589b,_0x196b('0x1a'),(_0x434f4d,_0x2aeea3)=>{_0x2e124f(_0x2aeea3);}),this[_0x196b('0x59')](_0x35589b,_0x196b('0x27'),(_0x21ee54,_0x44d2f4,_0x33a37f)=>{this[_0x196b('0x62')][_0x196b('0x43')](_0x44d2f4)[_0x196b('0x8')](),this[_0x196b('0x62')][_0x196b('0x9')](_0x44d2f4),_0xeb36a8[_0x196b('0x53')]({'removedAnnotation':_0x44d2f4,'previousAnnotation':_0x35589b[_0x196b('0x43')](_0x33a37f-0x1),'nextAnnotation':_0x35589b['get'](_0x33a37f+0x1)}),_0x44d2f4===this[_0x196b('0x5')]&&this['setActiveAnnotation'](null);},{'priority':_0x196b('0x3')}),this[_0x196b('0x59')](_0x35589b,'focus',(_0xf405ba,_0x5d98b7)=>{this[_0x196b('0x1c')](_0x5d98b7);}),this[_0x196b('0x59')](_0x35589b,_0x196b('0x18'),()=>{this[_0x196b('0x1c')](null);}),this[_0x196b('0x15')][_0x196b('0x59')](document,_0x196b('0x51'),(_0x37a293,_0x48781d)=>{_0x48781d['keyCode']===_0x716ebf[_0x196b('0x25')]&&_0x28c859[_0x196b('0x3b')]&&(this[_0x196b('0x32')]['add'](_0x28c859[_0x196b('0x4e')]['first']),this[_0x196b('0x2e')](),_0x48781d[_0x196b('0x41')](),_0x48781d[_0x196b('0x24')]());}),this[_0x196b('0x15')][_0x196b('0x59')](document,_0x196b('0xd'),(_0x5518e5,_0x2460be)=>{const _0x197a03=_0x2460be['target'];_0x28c859[_0x196b('0x3b')]&&_0x28c859[_0x196b('0x3c')][_0x196b('0x45')](_0x197a03)||_0xeb36a8[_0x196b('0x12')][_0x196b('0x3c')][_0x196b('0x45')](_0x197a03)||_0x5518e5[_0x196b('0x5b')]||this[_0x196b('0x5')]&&this[_0x196b('0x5')][_0x196b('0x3f')][_0x196b('0x4d')](_0x3a2d9a=>_0x3a2d9a[_0x196b('0x45')](_0x197a03))||(this[_0x196b('0x32')]['clear'](),this[_0x196b('0x2e')](),this['setActiveAnnotation'](null));});const _0x47445b=this[_0x196b('0x1')]instanceof _0x3b6256?this[_0x196b('0x1')][_0x196b('0x16')]:new _0x412490([this['context']]);for(const _0x3df9b1 of _0x47445b)this[_0x196b('0x7')](_0x3df9b1);this['listenTo'](_0x47445b,_0x196b('0x1a'),(_0x579436,_0x519ca6)=>{this['listenTo'](_0x519ca6,_0x196b('0x21'),()=>{this[_0x196b('0x7')](_0x519ca6);});}),this[_0x196b('0x59')](_0x47445b,_0x196b('0x27'),(_0x5e958e,_0x3aeb44)=>{_0x3aeb44[_0x196b('0x61')]['has'](_0x196b('0x60'))&&this['_destroyEditorAnnotationsIntegration'](_0x3aeb44[_0x196b('0x61')][_0x196b('0x43')](_0x196b('0x60')));}),window[_0x196b('0x2')](_0x196b('0x38'),this[_0x196b('0x14')]),this['_refreshPositioning']();}['setActiveAnnotation'](_0x46b33f){if(_0x46b33f===this[_0x196b('0x5')])return;const _0x2f025d=this['context']['plugins']['get'](_0x48e11e);if(_0x2f025d[_0x196b('0xc')]({'blurredAnnotation':this[_0x196b('0x5')],'activatedAnnotation':_0x46b33f,'disableAnimationOnActivatedAnnotation':!0x0}),_0x46b33f)_0x2f025d[_0x196b('0x57')](_0x46b33f)?this[_0x196b('0x42')](_0x46b33f):this[_0x196b('0x2e')]();else this[_0x196b('0x2e')]();this[_0x196b('0x5')]=_0x46b33f;}['detach'](){if(!this[_0x196b('0x3d')])throw new _0x1320ef(_0x196b('0x50'),this);this[_0x196b('0x1c')](null);const _0x48123a=this[_0x196b('0x1')][_0x196b('0x61')][_0x196b('0x43')](_0x48e11e);this[_0x196b('0x2e')](),Array[_0x196b('0x44')](this[_0x196b('0x62')]['values'](),_0x1e72c0=>_0x1e72c0['destroy']()),this[_0x196b('0x62')][_0x196b('0x29')](),_0x48123a[_0x196b('0x3a')](this[_0x196b('0x26')]),this[_0x196b('0x4c')](),this[_0x196b('0x15')][_0x196b('0x4c')](),this[_0x196b('0x1')]instanceof _0x3b6256&&this[_0x196b('0x4c')](this[_0x196b('0x1')][_0x196b('0x16')]);for(const _0x17be86 of Array[_0x196b('0x44')](this[_0x196b('0x4b')]))this[_0x196b('0x3e')](_0x17be86);window[_0x196b('0x28')](_0x196b('0x38'),this[_0x196b('0x14')]),this[_0x196b('0x14')]['cancel'](),this[_0x196b('0x30')]=[],this[_0x196b('0x3d')]=!0x1,this['annotations']=null;}[_0x196b('0x8')](){this[_0x196b('0x3d')]&&this[_0x196b('0x63')](),this['bodyCollection'][_0x196b('0x34')]();}[_0x196b('0x7')](_0x3ef313){const _0x443a11=_0x3ef313[_0x196b('0x61')][_0x196b('0x43')](_0x539083),_0x4a7657=this[_0x196b('0x1')][_0x196b('0x61')][_0x196b('0x43')](_0x48e11e),_0x187a40=this[_0x196b('0x26')],_0x1257b4=this[_0x196b('0x1b')],_0x40d6e2=()=>{const _0x514208=_0x443a11[_0x196b('0x5d')]({'annotations':this[_0x196b('0x26')],'activeAnnotation':this[_0x196b('0x5')]});this['_setSelectedAnnotations'](_0x514208),this[_0x196b('0x1c')](_0x514208[0x0]||null);};this[_0x196b('0x59')](_0x443a11,_0x196b('0xc'),_0x40d6e2),this['listenTo'](_0x443a11,_0x196b('0x18'),(_0x45d255,{isAnnotationTracked:_0x4de943})=>{this[_0x196b('0x5')]&&_0x4de943(this[_0x196b('0x5')])&&(this[_0x196b('0x2d')]([]),this[_0x196b('0x1c')](null));}),this['listenTo'](_0x443a11,_0x196b('0x54'),()=>{this[_0x196b('0x14')]();}),this['listenTo'](_0x187a40,'blur',_0x4d70d8=>{_0x443a11[_0x196b('0x13')]()&&_0x4d70d8[_0x196b('0x47')]();},{'priority':_0x196b('0x20')}),this[_0x196b('0x59')](this[_0x196b('0x15')],_0x196b('0xd'),(_0x4baaeb,_0x51b47e)=>{const _0x52959d=_0x51b47e[_0x196b('0x0')];_0x1257b4[_0x196b('0x3b')]&&_0x1257b4[_0x196b('0x3c')][_0x196b('0x45')](_0x52959d)||_0x4a7657[_0x196b('0x12')][_0x196b('0x3c')][_0x196b('0x45')](_0x52959d)||this['activeAnnotation']&&_0x443a11[_0x196b('0x13')]()&&(_0x40d6e2(),_0x4baaeb[_0x196b('0x5b')]=!0x0);},{'priority':_0x196b('0x20')}),this[_0x196b('0x4b')][_0x196b('0x1a')](_0x443a11);}[_0x196b('0x3e')](_0x2af604){_0x2af604&&(this[_0x196b('0x4c')](_0x2af604),this[_0x196b('0x4b')][_0x196b('0x27')](_0x2af604));}['_setSelectedAnnotations'](_0x20c2eb){for(const _0x1e40c9 of this[_0x196b('0x30')])_0x20c2eb[_0x196b('0x17')](_0x1e40c9)||this[_0x196b('0x32')][_0x196b('0x9')](_0x1e40c9[_0x196b('0x12')]);this['_selectedAnnotations']=_0x20c2eb;}[_0x196b('0x6')](){const _0x423d2a=this[_0x196b('0x1b')];this[_0x196b('0x26')]['refreshPositioning'](),_0x423d2a[_0x196b('0x3b')]&&this['_updateBalloonPosition']();}['_showBalloon'](_0xa57099){if(this[_0x196b('0x32')][_0x196b('0xf')](_0xa57099[_0x196b('0x12')]))return;const _0x58ebe1=this[_0x196b('0x1b')][_0x196b('0x4e')][_0x196b('0x10')];_0x58ebe1!==_0xa57099[_0x196b('0x12')]?(_0x58ebe1&&this[_0x196b('0x37')](_0x58ebe1),this['_attachListeners'](_0xa57099[_0x196b('0x12')]),this[_0x196b('0x1b')]['content'][_0x196b('0x29')](),this[_0x196b('0x1b')][_0x196b('0x4e')][_0x196b('0x1a')](_0xa57099['view']),this['_updateBalloonPosition']()):this[_0x196b('0x5f')]();}[_0x196b('0x5f')](){const _0x2aedfe=this[_0x196b('0x1b')][_0x196b('0x4e')][_0x196b('0x10')],_0x5531ac=_0x2aedfe&&this['annotations'][_0x196b('0x19')](_0x2aedfe);if(!_0x5531ac||!this[_0x196b('0x62')][_0x196b('0xf')](_0x5531ac))return;const _0x339050=this[_0x196b('0x62')][_0x196b('0x43')](_0x5531ac)['element'],_0x55e4b1=function(){const _0x4bfc70=_0x429397[_0x196b('0x48')];return[_0x4bfc70['southArrowNorthEast'],_0x4bfc70[_0x196b('0xb')],_0x4bfc70[_0x196b('0x5e')],_0x4bfc70[_0x196b('0x39')],_0x4bfc70[_0x196b('0x1d')],_0x4bfc70['northArrowSouthWest']];}();this['balloonPanelView'][_0x196b('0x52')]({'target':_0x339050,'positions':_0x55e4b1});}[_0x196b('0x2e')](){const _0x1ddc3d=this[_0x196b('0x1b')],_0x2de1e5=_0x1ddc3d[_0x196b('0x4e')][_0x196b('0x10')];_0x2de1e5&&(this[_0x196b('0x37')](_0x2de1e5),_0x1ddc3d[_0x196b('0x1f')](),_0x1ddc3d[_0x196b('0x4e')]['clear']());}[_0x196b('0x1e')](_0x2b94f4){this[_0x196b('0x59')](_0x2b94f4,'change:height',()=>this[_0x196b('0x5f')]()),this['listenTo'](_0x2b94f4,_0x196b('0xe'),(_0x32b15f,_0x56f9a6)=>{this[_0x196b('0x32')][_0x196b('0x1a')](_0x2b94f4),this[_0x196b('0x2e')](),_0x56f9a6();});}['_detachListeners'](_0x20587a){this[_0x196b('0x4c')](_0x20587a);}}
|
|
23
|
+
const _0x3833=['southArrowNorth','preventDefault','find','blur','ready','balloonPanelView','_updateBalloonPosition','_attachToContainer','_domEmitter','target','change:container','attach','rearrange','northArrowSouthEast','hasDomSelection','set:container','delete','northArrowSouth','_attachListeners','_showBalloon','destroy','_detachListeners','_annotationToNarrowView','listenTo','_refreshPositioningDebounced','setActiveAnnotation','locale','bind','set','getOrderedSelectedAnnotations','add','EditorAnnotations','_manuallyClosedAnnotationViews','isAttached','refresh','remove','northArrowSouthWest','has','resize','keyCode','keydown','_hideBalloon','narrowSidebar','annotationType','view','_selectedAnnotations','context','contains','_editorAnnotations','pluginName','narrowsidebar-detach-not-attached','change:height','get','cancel','_integrateWithEditorAnnotations','stopListening','_destroyEditorAnnotationsIntegration','editors','isVisible','preventClosingBalloon','element','content','focus','init','esc','Esc','number','addEventListener','_annotations','from','create','detach','mousedown','southArrowNorthEast','type','off','activeAnnotation','_refreshPositioning','stopPropagation','register','stop','removeEventListener','bodyCollection','getSidebarItemView','_setSelectedAnnotations','refreshPositioning','plugins','attachToDom','annotations','first','clear'];(function(_0x4c7aa5,_0x3833c3){const _0x28b71e=function(_0x4b632b){while(--_0x4b632b){_0x4c7aa5['push'](_0x4c7aa5['shift']());}};_0x28b71e(++_0x3833c3);}(_0x3833,0x1a5));const _0x28b7=function(_0x4c7aa5,_0x3833c3){_0x4c7aa5=_0x4c7aa5-0x0;let _0x28b71e=_0x3833[_0x4c7aa5];return _0x28b71e;};import{ContextPlugin as _0x2dfbe5,Context as _0x43d2f9}from'ckeditor5/src/core';import _0x31dd74 from'./annotationsuis';import _0xa85274 from'./sidebar';import _0x12e1a4 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x51333b,BodyCollection as _0x6e721c}from'ckeditor5/src/ui';import{CKEditorError as _0xd5aff9,DomEmitterMixin as _0x51c7cb,keyCodes as _0x54bf1f,Collection as _0x5764ca}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x5319a6}from'lodash-es';import _0x1f7b2d from'./editorannotations';export default class s extends _0x2dfbe5{static get['requires'](){return[_0xa85274,_0x31dd74];}static get[_0x28b7('0x53')](){return'NarrowSidebar';}constructor(_0x3175cb){super(_0x3175cb),this[_0x28b7('0x43')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object[_0x28b7('0xd')](_0x51c7cb),this[_0x28b7('0x38')]=new Map(),this['set']('activeAnnotation',null),this[_0x28b7('0x1f')]=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x5764ca(),this[_0x28b7('0x3a')]=_0x5319a6(()=>{this[_0x28b7('0x14')]();},0xfa,{'leading':!0x1});}[_0x28b7('0x6')](){this[_0x28b7('0x50')][_0x28b7('0x1d')]['get'](_0x31dd74)[_0x28b7('0x16')](_0x28b7('0x4c'),this),this[_0x28b7('0x19')]=new _0x6e721c(this[_0x28b7('0x50')][_0x28b7('0x3c')]),this[_0x28b7('0x27')]=new _0x51333b(this[_0x28b7('0x50')][_0x28b7('0x3c')]),this[_0x28b7('0x19')][_0x28b7('0x1e')](),this[_0x28b7('0x19')][_0x28b7('0x40')](this[_0x28b7('0x27')]);}['attach'](_0x328200){this[_0x28b7('0x1f')]=_0x328200;const _0x15e76d=this[_0x28b7('0x50')][_0x28b7('0x1d')][_0x28b7('0x56')](_0xa85274),_0x460b13=this[_0x28b7('0x27')];if(_0x15e76d[_0x28b7('0xb')]=_0x328200,this['isAttached'])throw new _0xd5aff9('narrowsidebar-attach-already-attached',this);this[_0x28b7('0x43')]=!0x0,this[_0x28b7('0x39')](_0x15e76d,_0x28b7('0x31'),()=>{this[_0x28b7('0xe')](),this['listenTo'](_0x15e76d,_0x28b7('0x2c'),_0x2595a3=>{_0x2595a3[_0x28b7('0x12')](),this[_0x28b7('0x2d')](_0x328200);});}),_0x15e76d[_0x28b7('0x29')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3bb6b8=_0x2fe12d=>{const _0x3e983e=new _0x12e1a4(this[_0x28b7('0x50')][_0x28b7('0x3c')]);_0x15e76d['addAnnotation'](_0x2fe12d,_0x3e983e),this[_0x28b7('0x38')][_0x28b7('0x3e')](_0x2fe12d,_0x3e983e),_0x3e983e[_0x28b7('0x3d')]('isDirty',_0x28b7('0x4d'),_0x28b7('0x9'))['to'](_0x2fe12d[_0x28b7('0x4e')],'isDirty',_0x28b7('0x11'),'length'),_0x3e983e['on']('execute',()=>{this[_0x28b7('0x42')]['clear'](),_0x460b13[_0x28b7('0x4')][_0x28b7('0x20')]!==_0x2fe12d[_0x28b7('0x4e')]?(this[_0x28b7('0x35')](_0x2fe12d),_0x2fe12d[_0x28b7('0x4e')]['element'][_0x28b7('0x5')](),this[_0x28b7('0x3b')](_0x2fe12d)):this[_0x28b7('0x3b')](null);});};for(const _0x41487e of _0x328200)_0x3bb6b8(_0x41487e);this[_0x28b7('0x39')](_0x328200,_0x28b7('0x40'),(_0x2ec420,_0x5bcdec)=>{_0x3bb6b8(_0x5bcdec);}),this[_0x28b7('0x39')](_0x328200,_0x28b7('0x45'),(_0x3a43b5,_0x45e059,_0x377d59)=>{this[_0x28b7('0x38')][_0x28b7('0x56')](_0x45e059)['destroy'](),this['_annotationToNarrowView'][_0x28b7('0x32')](_0x45e059),_0x15e76d[_0x28b7('0x2e')]({'removedAnnotation':_0x45e059,'previousAnnotation':_0x328200[_0x28b7('0x56')](_0x377d59-0x1),'nextAnnotation':_0x328200[_0x28b7('0x56')](_0x377d59+0x1)}),_0x45e059===this[_0x28b7('0x13')]&&this['setActiveAnnotation'](null);},{'priority':'low'}),this[_0x28b7('0x39')](_0x328200,'focus',(_0x5a370f,_0x9474b9)=>{this[_0x28b7('0x3b')](_0x9474b9);}),this[_0x28b7('0x39')](_0x328200,'blur',()=>{this[_0x28b7('0x3b')](null);}),this[_0x28b7('0x2a')]['listenTo'](document,_0x28b7('0x4a'),(_0x4d94c6,_0x509cab)=>{_0x509cab[_0x28b7('0x49')]===_0x54bf1f[_0x28b7('0x7')]&&_0x460b13[_0x28b7('0x1')]&&(this[_0x28b7('0x42')][_0x28b7('0x40')](_0x460b13[_0x28b7('0x4')]['first']),this[_0x28b7('0x4b')](),_0x509cab[_0x28b7('0x15')](),_0x509cab[_0x28b7('0x23')]());}),this[_0x28b7('0x2a')]['listenTo'](document,_0x28b7('0xf'),(_0x14573e,_0x78e6a6)=>{const _0x2a33cc=_0x78e6a6[_0x28b7('0x2b')];_0x460b13[_0x28b7('0x1')]&&_0x460b13[_0x28b7('0x3')][_0x28b7('0x51')](_0x2a33cc)||_0x15e76d[_0x28b7('0x4e')][_0x28b7('0x3')][_0x28b7('0x51')](_0x2a33cc)||_0x14573e[_0x28b7('0x2')]||this[_0x28b7('0x13')]&&this['activeAnnotation']['focusableElements'][_0x28b7('0x24')](_0x8e09e0=>_0x8e09e0['contains'](_0x2a33cc))||(this['_manuallyClosedAnnotationViews'][_0x28b7('0x21')](),this[_0x28b7('0x4b')](),this['setActiveAnnotation'](null));});const _0x149fd2=this[_0x28b7('0x50')]instanceof _0x43d2f9?this['context'][_0x28b7('0x0')]:new _0x5764ca([this[_0x28b7('0x50')]]);for(const _0x42625a of _0x149fd2)this['_integrateWithEditorAnnotations'](_0x42625a);this[_0x28b7('0x39')](_0x149fd2,_0x28b7('0x40'),(_0xb7bf24,_0x2348ac)=>{this[_0x28b7('0x39')](_0x2348ac,_0x28b7('0x26'),()=>{this[_0x28b7('0x58')](_0x2348ac);});}),this[_0x28b7('0x39')](_0x149fd2,_0x28b7('0x45'),(_0xaecfaa,_0x2977ab)=>{_0x2977ab[_0x28b7('0x1d')][_0x28b7('0x47')](_0x28b7('0x41'))&&this['_destroyEditorAnnotationsIntegration'](_0x2977ab[_0x28b7('0x1d')][_0x28b7('0x56')]('EditorAnnotations'));}),window[_0x28b7('0xa')](_0x28b7('0x48'),this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x166a78){if(_0x166a78===this[_0x28b7('0x13')])return;const _0x30e2e3=this['context']['plugins'][_0x28b7('0x56')](_0xa85274);if(_0x30e2e3['refresh']({'blurredAnnotation':this[_0x28b7('0x13')],'activatedAnnotation':_0x166a78,'disableAnimationOnActivatedAnnotation':!0x0}),_0x166a78)_0x30e2e3[_0x28b7('0x1a')](_0x166a78)?this[_0x28b7('0x35')](_0x166a78):this[_0x28b7('0x4b')]();else this[_0x28b7('0x4b')]();this[_0x28b7('0x13')]=_0x166a78;}[_0x28b7('0xe')](){if(!this[_0x28b7('0x43')])throw new _0xd5aff9(_0x28b7('0x54'),this);this[_0x28b7('0x3b')](null);const _0x10a50b=this['context'][_0x28b7('0x1d')][_0x28b7('0x56')](_0xa85274);this[_0x28b7('0x4b')](),Array[_0x28b7('0xc')](this[_0x28b7('0x38')]['values'](),_0x2dc714=>_0x2dc714[_0x28b7('0x36')]()),this[_0x28b7('0x38')][_0x28b7('0x21')](),_0x10a50b['_detachFromContainer'](this[_0x28b7('0x1f')]),this['stopListening'](),this[_0x28b7('0x2a')]['stopListening'](),this[_0x28b7('0x50')]instanceof _0x43d2f9&&this['stopListening'](this['context'][_0x28b7('0x0')]);for(const _0x5b390c of Array[_0x28b7('0xc')](this[_0x28b7('0x52')]))this[_0x28b7('0x5a')](_0x5b390c);window[_0x28b7('0x18')](_0x28b7('0x48'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x28b7('0x57')](),this[_0x28b7('0x4f')]=[],this[_0x28b7('0x43')]=!0x1,this[_0x28b7('0x1f')]=null;}['destroy'](){this[_0x28b7('0x43')]&&this['detach'](),this[_0x28b7('0x19')]['detachFromDom']();}[_0x28b7('0x58')](_0x1ef4ee){const _0x126a44=_0x1ef4ee[_0x28b7('0x1d')][_0x28b7('0x56')](_0x1f7b2d),_0x2c1001=this[_0x28b7('0x50')][_0x28b7('0x1d')]['get'](_0xa85274),_0x3a3ae9=this[_0x28b7('0x1f')],_0x2aaab9=this[_0x28b7('0x27')],_0x23a49e=()=>{const _0x28fc29=_0x126a44[_0x28b7('0x3f')]({'annotations':this[_0x28b7('0x1f')],'activeAnnotation':this[_0x28b7('0x13')]});this[_0x28b7('0x1b')](_0x28fc29),this['setActiveAnnotation'](_0x28fc29[0x0]||null);};this[_0x28b7('0x39')](_0x126a44,_0x28b7('0x44'),_0x23a49e),this[_0x28b7('0x39')](_0x126a44,_0x28b7('0x25'),(_0x57c6f1,{isAnnotationTracked:_0x4c57aa})=>{this[_0x28b7('0x13')]&&_0x4c57aa(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x28b7('0x3b')](null));}),this['listenTo'](_0x126a44,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x28b7('0x39')](_0x3a3ae9,_0x28b7('0x25'),_0x2e92dd=>{_0x126a44[_0x28b7('0x30')]()&&_0x2e92dd[_0x28b7('0x17')]();},{'priority':'high'}),this['listenTo'](this[_0x28b7('0x2a')],'mousedown',(_0x38a0ad,_0x460a68)=>{const _0xb0b9a0=_0x460a68[_0x28b7('0x2b')];_0x2aaab9['isVisible']&&_0x2aaab9[_0x28b7('0x3')][_0x28b7('0x51')](_0xb0b9a0)||_0x2c1001['view']['element'][_0x28b7('0x51')](_0xb0b9a0)||this[_0x28b7('0x13')]&&_0x126a44[_0x28b7('0x30')]()&&(_0x23a49e(),_0x38a0ad[_0x28b7('0x2')]=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x28b7('0x40')](_0x126a44);}[_0x28b7('0x5a')](_0x24f0ac){_0x24f0ac&&(this[_0x28b7('0x59')](_0x24f0ac),this[_0x28b7('0x52')]['remove'](_0x24f0ac));}['_setSelectedAnnotations'](_0x1f4dd4){for(const _0x53d11e of this['_selectedAnnotations'])_0x1f4dd4['includes'](_0x53d11e)||this['_manuallyClosedAnnotationViews'][_0x28b7('0x32')](_0x53d11e[_0x28b7('0x4e')]);this[_0x28b7('0x4f')]=_0x1f4dd4;}[_0x28b7('0x14')](){const _0x26054f=this[_0x28b7('0x27')];this[_0x28b7('0x1f')][_0x28b7('0x1c')](),_0x26054f[_0x28b7('0x1')]&&this['_updateBalloonPosition']();}[_0x28b7('0x35')](_0x551c3a){if(this['_manuallyClosedAnnotationViews'][_0x28b7('0x47')](_0x551c3a[_0x28b7('0x4e')]))return;const _0x3e4bec=this[_0x28b7('0x27')]['content'][_0x28b7('0x20')];_0x3e4bec!==_0x551c3a['view']?(_0x3e4bec&&this[_0x28b7('0x37')](_0x3e4bec),this[_0x28b7('0x34')](_0x551c3a['view']),this[_0x28b7('0x27')]['content'][_0x28b7('0x21')](),this['balloonPanelView'][_0x28b7('0x4')][_0x28b7('0x40')](_0x551c3a[_0x28b7('0x4e')]),this['_updateBalloonPosition']()):this[_0x28b7('0x28')]();}['_updateBalloonPosition'](){const _0x418671=this[_0x28b7('0x27')][_0x28b7('0x4')][_0x28b7('0x20')],_0x5bb6bd=_0x418671&&this[_0x28b7('0x1f')]['getByView'](_0x418671);if(!_0x5bb6bd||!this['_annotationToNarrowView'][_0x28b7('0x47')](_0x5bb6bd))return;const _0xad188c=this[_0x28b7('0x38')][_0x28b7('0x56')](_0x5bb6bd)[_0x28b7('0x3')],_0x242c7d=function(){const _0x5e66e9=_0x51333b['defaultPositions'];return[_0x5e66e9[_0x28b7('0x10')],_0x5e66e9[_0x28b7('0x2f')],_0x5e66e9[_0x28b7('0x22')],_0x5e66e9[_0x28b7('0x33')],_0x5e66e9['southArrowNorthWest'],_0x5e66e9[_0x28b7('0x46')]];}();this[_0x28b7('0x27')]['pin']({'target':_0xad188c,'positions':_0x242c7d});}['_hideBalloon'](){const _0x4213e1=this[_0x28b7('0x27')],_0x22f7b6=_0x4213e1[_0x28b7('0x4')][_0x28b7('0x20')];_0x22f7b6&&(this['_detachListeners'](_0x22f7b6),_0x4213e1['unpin'](),_0x4213e1[_0x28b7('0x4')][_0x28b7('0x21')]());}[_0x28b7('0x34')](_0x29ce3b){this[_0x28b7('0x39')](_0x29ce3b,_0x28b7('0x55'),()=>this[_0x28b7('0x28')]()),this['listenTo'](_0x29ce3b,_0x28b7('0x8'),(_0x5af16f,_0x39cadd)=>{this[_0x28b7('0x42')]['add'](_0x29ce3b),this[_0x28b7('0x4b')](),_0x39cadd();});}['_detachListeners'](_0x2c7ea8){this[_0x28b7('0x59')](_0x2c7ea8);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a4d=['set','stopListening','minHeight','content','get','listenTo','init','push','view','_alignForBottomChange','_targetTop','getIndex','_annotations','_attachToContainer','getSidebarItemView','delete','_sidebarItemViewToAnnotation','top','bottom','pluginName','sidebar-setcontainer-invalid-element','_getMaxAvailableTop','clear','targetRect','_recalculateBuffer','remove','isActive','_alignToTargetRect','updateHeight','isAnimationDisabled','height','appendChild','sidebar.preventScrollOutOfView','target','element','_annotationToSidebarItemView','_destroySidebarItemView','_lastItem','_getItemAfter','_alignForTopChange','_detachFromContainer','sidebar-attachtocontainer-missing-container','change:top','render','add','class','list','_updateLastItem','_alignBeforeItem','_spaceBetweenItems','destroy','_alignAfterItem','setContainer','rearrange','change:targetRect','change:bottom','_createSidebarView','_recalculate','Sidebar','container','_setItemTop','locale','context','config','length','_getItemBefore','bind','_getTargetTop','_activeAnnotation','max','last','object'];(function(_0x4c1078,_0x5a4d12){const _0x3f97c1=function(_0xdadbf3){while(--_0xdadbf3){_0x4c1078['push'](_0x4c1078['shift']());}};_0x3f97c1(++_0x5a4d12);}(_0x5a4d,0x1a3));const _0x3f97=function(_0x4c1078,_0x5a4d12){_0x4c1078=_0x4c1078-0x0;let _0x3f97c1=_0x5a4d[_0x4c1078];return _0x3f97c1;};import{ContextPlugin as _0x3652ce}from'ckeditor5/src/core';import{Rect as _0x7d7c20,CKEditorError as _0x34d546}from'ckeditor5/src/utils';import _0x4369d1 from'./view/sidebarview';import _0x4b409a from'./view/sidebaritemview';export default class z extends _0x3652ce{static get[_0x3f97('0x20')](){return _0x3f97('0x47');}constructor(_0x3a7c55){super(_0x3a7c55),this[_0x3f97('0xd')](_0x3f97('0x32'),void 0x0),this[_0x3f97('0x15')]=this[_0x3f97('0x45')](),this['set'](_0x3f97('0x0'),null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3f97('0x30')]=new Map(),this[_0x3f97('0x3')][_0x3f97('0x4')]['define'](_0x3f97('0x2d'),!0x1),this[_0x3f97('0x19')]=null,this[_0x3f97('0x9')]=null,this['_recalculateBuffer']=[];}[_0x3f97('0x13')](){const _0x478505=this[_0x3f97('0x3')][_0x3f97('0x4')][_0x3f97('0x11')]('sidebar.container');_0x478505&&this[_0x3f97('0x41')](_0x478505);}['setContainer'](_0x2986b2){if(!y(_0x2986b2))throw new _0x34d546(_0x3f97('0x21'));this[_0x3f97('0x0')]=_0x2986b2;}[_0x3f97('0x1a')]({viewClass:_0x27cb82='',spaceBetweenItems:_0x1f35b6=0x19}={}){if(!y(this[_0x3f97('0x0')]))throw new _0x34d546(_0x3f97('0x36'),this);this[_0x3f97('0x0')][_0x3f97('0x2c')](this[_0x3f97('0x15')][_0x3f97('0x2f')]),this[_0x3f97('0x15')][_0x3f97('0x3a')]=_0x27cb82,this[_0x3f97('0x3e')]=_0x1f35b6;}[_0x3f97('0x42')]({removedAnnotation:_0x3d0a67,previousAnnotation:_0x25422d,nextAnnotation:_0x43182a}){const _0x200f72=this[_0x3f97('0x1b')](_0x3d0a67);this[_0x3f97('0x15')]['list'][_0x3f97('0x26')](_0x200f72),this[_0x3f97('0x31')](_0x3d0a67),_0x25422d&&this[_0x3f97('0x28')](this[_0x3f97('0x1b')](_0x25422d)),_0x43182a&&this[_0x3f97('0x28')](this['getSidebarItemView'](_0x43182a)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x3e0223,activatedAnnotation:_0x347e21,disableAnimationOnActivatedAnnotation:_0x554cc0}){if(this[_0x3f97('0x9')]=_0x347e21,_0x3e0223){_0x3e0223['isActive']=!0x1;const _0x5ca114=this['getSidebarItemView'](_0x3e0223);_0x5ca114&&_0x554cc0&&(_0x5ca114[_0x3f97('0x2a')]=!0x1);}if(_0x347e21){const _0x39589f=this[_0x3f97('0x1b')](_0x347e21);_0x39589f&&(_0x347e21[_0x3f97('0x27')]=!0x0,_0x554cc0&&(_0x39589f['isAnimationDisabled']=!0x0,_0x39589f[_0x3f97('0x1e')]+=0x1),this[_0x3f97('0x28')](_0x39589f));}}[_0x3f97('0x35')](_0x2eb20e){if(this[_0x3f97('0x15')][_0x3f97('0x2f')][_0x3f97('0x26')](),_0x2eb20e)for(const _0x38b37d of _0x2eb20e)this[_0x3f97('0x31')](_0x38b37d);this[_0x3f97('0x15')][_0x3f97('0x3b')][_0x3f97('0x23')](),this[_0x3f97('0x15')][_0x3f97('0x3a')]='',this[_0x3f97('0x32')]=null;}['addAnnotation'](_0x4ae045,_0x524e26){_0x524e26||(_0x524e26=_0x4ae045[_0x3f97('0x15')]);const _0x25a191=new _0x4b409a(this['context'][_0x3f97('0x2')]);this[_0x3f97('0x1d')][_0x3f97('0xd')](_0x25a191,_0x4ae045),this[_0x3f97('0x30')][_0x3f97('0xd')](_0x4ae045,_0x25a191),_0x25a191[_0x3f97('0x10')][_0x3f97('0x39')](_0x524e26),this[_0x3f97('0x12')](_0x4ae045[_0x3f97('0x15')],_0x3f97('0x43'),(_0x23a889,_0x22afa4,_0x33b89b)=>{const _0x1023ad=this[_0x3f97('0x8')](_0x4ae045,_0x33b89b);_0x25a191[_0x3f97('0x17')]!=_0x1023ad&&(_0x25a191['_targetTop']=_0x1023ad,this[_0x3f97('0x1')](_0x25a191,_0x1023ad));}),this['listenTo'](_0x25a191,_0x3f97('0x37'),()=>{this['_recalculate'](_0x25a191,'top');}),this[_0x3f97('0x12')](_0x25a191,_0x3f97('0x44'),()=>{this['_recalculate'](_0x25a191,_0x3f97('0x1f'));}),this['_alignToTargetRect'](_0x25a191);const _0xc9e337=this[_0x3f97('0x6')](_0x25a191);if(_0xc9e337)this[_0x3f97('0x40')](_0xc9e337,_0x25a191)||this[_0x3f97('0x28')](_0x25a191);else this[_0x3f97('0x28')](_0x25a191);return this[_0x3f97('0x3c')](),this[_0x3f97('0x15')]['list'][_0x3f97('0x39')](_0x25a191),_0x25a191;}[_0x3f97('0x34')](_0x51f3de){if(!_0x51f3de[_0x3f97('0x10')][_0x3f97('0x5')])return;const _0x3cdc00=this[_0x3f97('0x6')](_0x51f3de);if(!_0x3cdc00)return;const _0x377ee2=this[_0x3f97('0x1d')]['get'](_0x3cdc00),_0x596fe8=this['_activeAnnotation'];_0x596fe8&&_0x596fe8===_0x377ee2?this['_alignAfterItem'](_0x3cdc00,_0x51f3de):this[_0x3f97('0x3d')](_0x51f3de,_0x3cdc00);}[_0x3f97('0x16')](_0x2ffa9a){if(!_0x2ffa9a['content'][_0x3f97('0x5')])return;const _0x52c51c=this[_0x3f97('0x33')](_0x2ffa9a);if(!_0x52c51c)return;const _0x1ef7a4=this['_sidebarItemViewToAnnotation'][_0x3f97('0x11')](_0x52c51c),_0x27658d=this[_0x3f97('0x3')][_0x3f97('0x4')]['get'](_0x3f97('0x2d')),_0x293ded=this[_0x3f97('0x9')];_0x293ded&&_0x293ded===_0x1ef7a4&&_0x27658d?(this[_0x3f97('0x3d')](_0x52c51c,_0x2ffa9a),this[_0x3f97('0x40')](_0x2ffa9a,_0x52c51c)):_0x293ded&&_0x293ded===_0x1ef7a4?this['_alignBeforeItem'](_0x52c51c,_0x2ffa9a):this[_0x3f97('0x40')](_0x2ffa9a,_0x52c51c);}[_0x3f97('0x46')](_0xdcd28b,_0x4e49da){0x0===this['_recalculateBuffer'][_0x3f97('0x5')]&&setTimeout(()=>{for(const {sidebarItemView:_0x56c105,changedProp:_0x26ea60}of this[_0x3f97('0x25')])_0x3f97('0x1e')===_0x26ea60?this['_alignForTopChange'](_0x56c105):this[_0x3f97('0x16')](_0x56c105);this[_0x3f97('0x25')]=[];},0xa),this[_0x3f97('0x25')][_0x3f97('0x14')]({'sidebarItemView':_0xdcd28b,'changedProp':_0x4e49da});}[_0x3f97('0x1b')](_0x3fb43a){return this[_0x3f97('0x30')][_0x3f97('0x11')](_0x3fb43a);}[_0x3f97('0x3f')](){this[_0x3f97('0xe')](),this[_0x3f97('0x15')][_0x3f97('0x3f')]();}[_0x3f97('0x31')](_0x5ecd30){const _0x160d8e=this[_0x3f97('0x1b')](_0x5ecd30);this['stopListening'](_0x160d8e),this[_0x3f97('0xe')](_0x5ecd30[_0x3f97('0x15')]),_0x160d8e[_0x3f97('0x3f')](),this[_0x3f97('0x30')][_0x3f97('0x1c')](_0x5ecd30),this[_0x3f97('0x1d')][_0x3f97('0x1c')](_0x160d8e);}[_0x3f97('0x45')](){const _0x595c79=new _0x4369d1(this[_0x3f97('0x3')][_0x3f97('0x2')]);return _0x595c79[_0x3f97('0x38')](),this['on']('change:_lastItem',(_0x2be3e3,_0x4baa6b,_0xc5783d,_0x3be917)=>{_0x3be917&&_0x595c79['unbind'](_0x3f97('0xf')),_0xc5783d?_0x595c79[_0x3f97('0x7')](_0x3f97('0xf'))['to'](_0xc5783d,'bottom'):_0x595c79[_0x3f97('0xf')]=null;}),_0x595c79;}[_0x3f97('0x3c')](){var _0x26066d;this[_0x3f97('0x32')]=(null===(_0x26066d=this[_0x3f97('0x19')])||void 0x0===_0x26066d?void 0x0:_0x26066d['last'])?this[_0x3f97('0x1b')](this['_annotations'][_0x3f97('0xb')]):null;}[_0x3f97('0x6')](_0x3f62a4){var _0x41cf9c;const _0x5196b2=this[_0x3f97('0x1d')]['get'](_0x3f62a4),_0x2c95a0=_0x5196b2&&(null===(_0x41cf9c=this['_annotations'])||void 0x0===_0x41cf9c?void 0x0:_0x41cf9c[_0x3f97('0x11')](this['_annotations'][_0x3f97('0x18')](_0x5196b2)-0x1));return _0x2c95a0&&this[_0x3f97('0x1b')](_0x2c95a0)||null;}[_0x3f97('0x33')](_0x570d07){var _0x20e877;const _0x58afbe=this[_0x3f97('0x1d')][_0x3f97('0x11')](_0x570d07),_0x14adf1=_0x58afbe&&(null===(_0x20e877=this[_0x3f97('0x19')])||void 0x0===_0x20e877?void 0x0:_0x20e877[_0x3f97('0x11')](this['_annotations'][_0x3f97('0x18')](_0x58afbe)+0x1));return _0x14adf1&&this[_0x3f97('0x1b')](_0x14adf1)||null;}[_0x3f97('0x3d')](_0xff8565,_0xfde40a){_0xff8565[_0x3f97('0x29')]();const _0x1996ce=H(_0xfde40a[_0x3f97('0x1f')]+this[_0x3f97('0x3e')],_0xff8565['top']);return!!_0x1996ce&&(this[_0x3f97('0x1')](_0xfde40a,_0xfde40a['top']-_0x1996ce),!0x0);}[_0x3f97('0x40')](_0x1d00ed,_0x208eab){_0x1d00ed[_0x3f97('0x29')]();const _0x22e3f8=H(_0x1d00ed[_0x3f97('0x1f')]+this[_0x3f97('0x3e')],_0x208eab[_0x3f97('0x1e')]);return!!_0x22e3f8&&(this['_setItemTop'](_0x208eab,_0x208eab['top']+_0x22e3f8,!0x1),!0x0);}[_0x3f97('0x28')](_0x5cc35a){const _0x1ae73e=this[_0x3f97('0x1d')][_0x3f97('0x11')](_0x5cc35a);if(!_0x1ae73e||!_0x1ae73e[_0x3f97('0x2e')]||!_0x1ae73e[_0x3f97('0x24')])return;const _0x21c561=this[_0x3f97('0x8')](_0x1ae73e,_0x1ae73e[_0x3f97('0x24')]);this[_0x3f97('0x1')](_0x5cc35a,_0x21c561);}['_getTargetTop'](_0x5077d5,_0x24f69a){if(null===_0x24f69a)return 0x0;if(_0x5077d5[_0x3f97('0x2e')]instanceof _0x7d7c20)return _0x24f69a[_0x3f97('0x1e')];{const _0x5a9c5e=new _0x7d7c20(this[_0x3f97('0x15')][_0x3f97('0x2f')])[_0x3f97('0x1e')];return _0x24f69a[_0x3f97('0x1e')]-_0x5a9c5e;}}[_0x3f97('0x1')](_0x12d5b8,_0x10fe48,_0x3d1583=this[_0x3f97('0x3')]['config'][_0x3f97('0x11')](_0x3f97('0x2d'))){_0x3d1583&&(_0x10fe48=Math[_0x3f97('0xa')](_0x10fe48,this[_0x3f97('0x22')](_0x12d5b8))),_0x12d5b8['top']=_0x10fe48;}[_0x3f97('0x22')](_0x53dd7b){let _0x1e92ad=this[_0x3f97('0x6')](_0x53dd7b),_0xb34061=0x0;for(;_0x1e92ad;)_0x1e92ad['updateHeight'](),_0xb34061+=this['_spaceBetweenItems']+_0x1e92ad[_0x3f97('0x2b')],_0x1e92ad=this[_0x3f97('0x6')](_0x1e92ad);return _0xb34061;}}function H(_0x310e3b,_0x43d397){return Math[_0x3f97('0xa')](_0x310e3b-_0x43d397,0x0);}function y(_0x2a7656){return null!==_0x2a7656&&_0x3f97('0xc')==typeof _0x2a7656&&0x1===_0x2a7656['nodeType'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x295a=['bindTemplate','icon','annotationType','...','children','set','setTemplate','span','_badge','counterView','isDirty','number','add','ck-annotation-counter__badge','ck-annotation-counter'];(function(_0x5b0229,_0x295a00){const _0x18429e=function(_0x52ec8a){while(--_0x52ec8a){_0x5b0229['push'](_0x5b0229['shift']());}};_0x18429e(++_0x295a00);}(_0x295a,0x1e2));const _0x1842=function(_0x5b0229,_0x295a00){_0x5b0229=_0x5b0229-0x0;let _0x18429e=_0x295a[_0x5b0229];return _0x18429e;};import{ButtonView as _0x1b66bc,View as _0x2e3309}from'ckeditor5/src/ui';import _0x7fe0f6 from'../../../theme/icons/add-comment.svg';export default class D extends _0x1b66bc{constructor(_0x42c6ee){super(_0x42c6ee);const _0x1fb734=this[_0x1842('0xd')];this[_0x1842('0x3')](_0x1842('0x8'),!0x1),this[_0x1842('0x3')](_0x1842('0x9'),0x0),this['bind']('_badge')['to'](this,_0x1842('0x8'),this,_0x1842('0x9'),(_0xb55eff,_0x44e6dc)=>_0xb55eff?_0x1842('0x1'):_0x44e6dc['toString']()),this[_0x1842('0x3')](_0x1842('0x0'),''),this[_0x1842('0xe')]=_0x7fe0f6,this['extendTemplate']({'attributes':{'class':[_0x1842('0xc')]}}),this[_0x1842('0x7')]=new _0x2e3309(),this['counterView'][_0x1842('0x4')]({'tag':_0x1842('0x5'),'attributes':{'class':[_0x1842('0xb'),_0x1fb734['to'](_0x1842('0x0'),_0x204d3b=>'ck-annotation-counter__badge--'+_0x204d3b),_0x1fb734['if'](_0x1842('0x8'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1fb734['to'](_0x1842('0x6'))}]}),this[_0x1842('0x2')][_0x1842('0xa')](this[_0x1842('0x7')]);}}
|