@ckeditor/ckeditor5-comments 0.0.0-nightly-20230710.0 → 0.0.0-nightly-20230711.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-20230711.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-20230711.0",
|
|
47
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230711.0",
|
|
48
48
|
"lodash-es": "^4.17.11"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x536f=['focusTracker','_assertCorrectTarget','isActive','isArray','innerView','focusableElements','destroy','_type','target','targetRect','function','remove','element','_getNormalizedTarget','filter','_target','mainView','item','length','render','add','view','type','stopListening','annotation-invalid-target','object','isVisible','getClientRects','_id'];(function(_0x2faa0c,_0x536f4f){const _0x200c45=function(_0x49fa6a){while(--_0x49fa6a){_0x2faa0c['push'](_0x2faa0c['shift']());}};_0x200c45(++_0x536f4f);}(_0x536f,0x12c));const _0x200c=function(_0x2faa0c,_0x536f4f){_0x2faa0c=_0x2faa0c-0x0;let _0x200c45=_0x536f[_0x2faa0c];return _0x200c45;};import{CKEditorError as _0x17e81e,Rect as _0x410363,Collection as _0x305ed1,ObservableMixin as _0x292e27}from'ckeditor5/src/utils';export default class d extends _0x292e27(){constructor({view:_0x1846dc,target:_0xa6cecb,type:_0x324032,isVisible:_0xbd8217=!0x0}){super(),this[_0x200c('0xb')]=_0x1846dc,this[_0x200c('0xb')][_0x200c('0x2')]||this[_0x200c('0xb')][_0x200c('0x9')](),this[_0x200c('0x1a')]=_0x324032,this[_0x200c('0x5')]=_0xa6cecb,d['_assertCorrectTarget'](this[_0x200c('0x3')]()),this[_0x200c('0x18')]=new _0x305ed1([this[_0x200c('0xb')][_0x200c('0x2')]],{'idProperty':_0x200c('0x12')}),this['focusableElements']['on']('add',(_0x2bb7a6,_0x50d43d)=>{this[_0x200c('0xb')]['focusTracker'][_0x200c('0xa')](_0x50d43d);}),this['focusableElements']['on'](_0x200c('0x1'),(_0x8a0c57,_0x4f2e90)=>{this['view'][_0x200c('0x13')]['remove'](_0x4f2e90);}),this['set'](_0x200c('0x10'),_0xbd8217);}get[_0x200c('0xc')](){return _0x200c('0x0')==typeof this[_0x200c('0x1a')]?this[_0x200c('0x1a')]():this['_type'];}get[_0x200c('0x17')](){return this[_0x200c('0xb')]['mainView'];}get[_0x200c('0x1b')](){const _0x2a1b7c=this[_0x200c('0x3')]();return d[_0x200c('0x14')](_0x2a1b7c),_0x2a1b7c;}get[_0x200c('0x1c')](){const _0x446c3d=this[_0x200c('0x1b')];if(null===_0x446c3d)return null;if(_0x446c3d instanceof _0x410363)return _0x446c3d;const _0x327263=_0x446c3d[_0x200c('0x4')](_0x7567d5=>function(_0x568e9b){const _0x4cc75e=_0x568e9b['offsetParent'];if(_0x4cc75e)return!0x0;const _0x3cbc65=_0x568e9b[_0x200c('0x11')]()[_0x200c('0x7')](0x0);return!!_0x3cbc65;}(_0x7567d5));return 0x0===_0x327263[_0x200c('0x8')]?null:new _0x410363(_0x327263[0x0][_0x200c('0x11')]()[_0x200c('0x7')](0x0));}get[_0x200c('0x15')](){return this[_0x200c('0xb')][_0x200c('0x15')];}set[_0x200c('0x15')](_0x10d1fa){this[_0x200c('0xb')]['isActive']=_0x10d1fa,this[_0x200c('0xb')][_0x200c('0x6')][_0x200c('0x15')]=_0x10d1fa;}['updateTargetRect'](){this[_0x200c('0xb')]['targetRect']=this['targetRect'];}[_0x200c('0x19')](){this[_0x200c('0x18')][_0x200c('0xd')](),this[_0x200c('0x18')]['clear'](),this['stopListening']();}['refreshVisibility'](){this[_0x200c('0x10')]=!!this[_0x200c('0x1c')];}static[_0x200c('0x14')](_0x307739){if(!(null===_0x307739||_0x307739 instanceof _0x410363||Array[_0x200c('0x16')](_0x307739)&&_0x307739['every'](_0x572737=>y(_0x572737))))throw new _0x17e81e(_0x200c('0xe'),null,{'target':_0x307739});}[_0x200c('0x3')](){const _0xd6d7ef=_0x200c('0x0')==typeof this[_0x200c('0x5')]?this[_0x200c('0x5')]():this[_0x200c('0x5')];return y(_0xd6d7ef)?[_0xd6d7ef]:_0xd6d7ef;}}function y(_0x3c04bb){return null!==_0x3c04bb&&_0x200c('0xf')==typeof _0x3c04bb&&'nodeType'in _0x3c04bb&&0x1===_0x3c04bb['nodeType'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd9e9=['set','_viewToAnnotation','listenTo','view','has','_innerViewToAnnotation','add','from','annotationcollection-not-existing-item','targetRect','annotationcollection-duplicated-item','getByInnerView','_focusTracker','change:isFocused','remove','focusableElements','innerView','updateTargetRect','_getOrderInContent','isFocused','top','left','get','_sort','getIndex','stopListening','length','focusTracker','fire','delete','destroy','clear'];(function(_0x542609,_0xd9e904){const _0xc6ae44=function(_0x4faf36){while(--_0x4faf36){_0x542609['push'](_0x542609['shift']());}};_0xc6ae44(++_0xd9e904);}(_0xd9e9,0x1c5));const _0xc6ae=function(_0x542609,_0xd9e904){_0x542609=_0x542609-0x0;let _0xc6ae44=_0xd9e9[_0x542609];return _0xc6ae44;};import{CKEditorError as _0x3ae619,Collection as _0x405495,FocusTracker as _0x5bd118}from'ckeditor5/src/utils';export default class x extends _0x405495{constructor(_0x1c90a6=[]){super(),this[_0xc6ae('0x0')]=new Map(),this[_0xc6ae('0x1c')]=new Map(),this[_0xc6ae('0x7')]=new _0x5bd118(),this[_0xc6ae('0x7')]['on'](_0xc6ae('0x8'),(_0x46d942,_0x44a884,_0x334d57)=>{_0x334d57||this[_0xc6ae('0x17')]('blur');});for(const _0x12c80f of _0x1c90a6)this['add'](_0x12c80f);}get[_0xc6ae('0xe')](){return this[_0xc6ae('0x7')][_0xc6ae('0xe')];}[_0xc6ae('0x1')](_0x4d2279){if(this[_0xc6ae('0x1f')](_0x4d2279))throw new _0x3ae619(_0xc6ae('0x5'),null);this[_0xc6ae('0x0')][_0xc6ae('0x1b')](_0x4d2279[_0xc6ae('0xb')],_0x4d2279),this[_0xc6ae('0x1c')]['set'](_0x4d2279[_0xc6ae('0x1e')],_0x4d2279);for(const _0x2cc1ec of _0x4d2279[_0xc6ae('0xa')])this['_focusTracker'][_0xc6ae('0x1')](_0x2cc1ec);this[_0xc6ae('0x1d')](_0x4d2279['focusableElements'],_0xc6ae('0x1'),(_0x5a43fa,_0xedd6a0)=>{this['_focusTracker'][_0xc6ae('0x1')](_0xedd6a0);}),this[_0xc6ae('0x1d')](_0x4d2279[_0xc6ae('0xa')],'remove',(_0x1572b8,_0x3e49ab)=>{this[_0xc6ae('0x7')][_0xc6ae('0x9')](_0x3e49ab);}),this[_0xc6ae('0x1d')](_0x4d2279[_0xc6ae('0x1e')]['focusTracker'],_0xc6ae('0x8'),(_0x4a2af1,_0x21fe68,_0x1d6ed7)=>{_0x1d6ed7&&this[_0xc6ae('0x17')]('focus',_0x4d2279);}),_0x4d2279[_0xc6ae('0xc')]();const _0x267c18=this[_0xc6ae('0xd')](_0x4d2279[_0xc6ae('0x1e')][_0xc6ae('0x4')]);return super[_0xc6ae('0x1')](_0x4d2279,_0x267c18);}[_0xc6ae('0x9')](_0x5f0a98){if(!this[_0xc6ae('0x1f')](_0x5f0a98))throw new _0x3ae619(_0xc6ae('0x3'),null);this[_0xc6ae('0x14')](_0x5f0a98[_0xc6ae('0x1e')][_0xc6ae('0x16')]),this['stopListening'](_0x5f0a98['focusableElements']);for(const _0x14ec83 of _0x5f0a98[_0xc6ae('0xa')])this[_0xc6ae('0x7')][_0xc6ae('0x9')](_0x14ec83);return this[_0xc6ae('0x1c')][_0xc6ae('0x18')](_0x5f0a98['view']),this[_0xc6ae('0x0')][_0xc6ae('0x18')](_0x5f0a98['innerView']),super[_0xc6ae('0x9')](_0x5f0a98);}[_0xc6ae('0x6')](_0x4a11eb){return this[_0xc6ae('0x0')][_0xc6ae('0x11')](_0x4a11eb);}['getByView'](_0x446c81){return this['_viewToAnnotation'][_0xc6ae('0x11')](_0x446c81);}[_0xc6ae('0x19')](){super[_0xc6ae('0x1a')](),this['stopListening'](),this[_0xc6ae('0x0')][_0xc6ae('0x1a')](),this[_0xc6ae('0x1c')][_0xc6ae('0x1a')](),this['_focusTracker'][_0xc6ae('0x19')]();}['refreshPositioning'](){for(const _0x290e05 of this)_0x290e05[_0xc6ae('0xc')]();this[_0xc6ae('0x12')]();}['_sort'](){const _0x56e187=Array[_0xc6ae('0x2')](this)['sort']((_0x9f7613,_0x4e0ef0)=>v(_0x9f7613[_0xc6ae('0x1e')][_0xc6ae('0x4')],_0x4e0ef0['view'][_0xc6ae('0x4')]));for(let _0x266770=_0x56e187['length']-0x1;_0x266770>0x0;_0x266770--){const _0x39a5b0=_0x56e187[_0x266770];_0x266770!==this[_0xc6ae('0x13')](_0x39a5b0)&&(this[_0xc6ae('0x9')](_0x39a5b0),this[_0xc6ae('0x1')](_0x39a5b0));}}[_0xc6ae('0xd')](_0x471782){let _0x5ad2ff=0x0;if(!_0x471782)return this[_0xc6ae('0x15')];for(const _0x145bec of this){const _0x163192=_0x145bec['view'][_0xc6ae('0x4')];if(_0x163192){if(v(_0x471782,_0x163192)<0x0)return _0x5ad2ff;_0x5ad2ff++;}}return _0x5ad2ff;}}export function bindAnnotationCollections({source:_0x1be105,target:_0x33570e,filter:_0x1a5030}){for(const _0x3cb4cd of _0x1be105)_0x1a5030(_0x3cb4cd)&&_0x33570e['add'](_0x3cb4cd);_0x33570e[_0xc6ae('0x1d')](_0x1be105,_0xc6ae('0x1'),(_0x16a909,_0xc3b1ae)=>{_0x1a5030(_0xc3b1ae)&&_0x33570e[_0xc6ae('0x1')](_0xc3b1ae);}),_0x33570e[_0xc6ae('0x1d')](_0x1be105,'remove',(_0x7f0146,_0x332a56)=>{_0x33570e['has'](_0x332a56)&&_0x33570e[_0xc6ae('0x9')](_0x332a56);});}function v(_0x24401a,_0x45292c){if(null===_0x24401a&&null===_0x45292c)return 0x0;if(null===_0x24401a)return-0x1;if(null===_0x45292c)return 0x1;const _0x58e29e=_0x24401a[_0xc6ae('0xf')]-_0x45292c['top'];return 0x0==_0x58e29e?_0x24401a['left']-_0x45292c[_0xc6ae('0x10')]:_0x58e29e;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cd9=['_visibleAnnotations','fire','activate','collection','_bindAnnotationsToVisibleAnnotations','stopListening','createAnnotation','Annotations','element','view','pluginName','change:isVisible','createAnnotationView','getByInnerView','remove','isVisible','add','delete','_deactivateAllAnnotations','has','destroy','listenTo','_addActiveAnnotation','activeAnnotations','refreshVisibility','deactivateAll','focusTracker'];(function(_0x4bc015,_0x4cd9e2){const _0x510c4b=function(_0x3f44e6){while(--_0x3f44e6){_0x4bc015['push'](_0x4bc015['shift']());}};_0x510c4b(++_0x4cd9e2);}(_0x4cd9,0x1a2));const _0x510c=function(_0x4bc015,_0x4cd9e2){_0x4bc015=_0x4bc015-0x0;let _0x510c4b=_0x4cd9[_0x4bc015];return _0x510c4b;};import{ContextPlugin as _0x21f7c6}from'ckeditor5/src/core';import _0x48d354 from'./annotation';import _0x4d11ab from'./annotationcollection';import _0x10b692 from'./view/annotationview';export default class b extends _0x21f7c6{static get[_0x510c('0x18')](){return _0x510c('0x15');}constructor(_0x70b8a7){super(_0x70b8a7),this[_0x510c('0x11')]=new _0x4d11ab(),this[_0x510c('0xe')]=new _0x4d11ab(),this['set'](_0x510c('0xa'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x510c('0x3')](_0x19fa8f){this[_0x510c('0x11')]['add'](_0x19fa8f);}[_0x510c('0x1')](_0x28b19f){this[_0x510c('0x11')][_0x510c('0x1')](_0x28b19f),_0x28b19f['destroy']();}[_0x510c('0xb')](){for(const _0x43bc68 of this[_0x510c('0x11')])_0x43bc68[_0x510c('0xb')]();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}[_0x510c('0x0')](_0x51f6e9){return this['collection'][_0x510c('0x0')](_0x51f6e9);}[_0x510c('0xc')](){this[_0x510c('0xf')](_0x510c('0x5'));}['destroy'](){for(const _0x4aed5f of this[_0x510c('0x11')])_0x4aed5f[_0x510c('0x7')]();this[_0x510c('0xe')][_0x510c('0x7')](),this[_0x510c('0x11')][_0x510c('0x7')](),super[_0x510c('0x7')]();}[_0x510c('0x10')](_0x65826c){this[_0x510c('0xf')]('_activateAnnotation',_0x65826c);}[_0x510c('0x14')](_0x3010c9){return new _0x48d354(_0x3010c9);}[_0x510c('0x1a')](_0x2806b,_0x457bb6){return new _0x10b692(_0x2806b,_0x457bb6);}[_0x510c('0x9')](_0x433279){const _0x5b5663=new Set(this[_0x510c('0xa')]);_0x5b5663[_0x510c('0x3')](_0x433279),this[_0x510c('0xa')]=_0x5b5663;}['_removeActiveAnnotation'](_0x3c6358){const _0x6d3fdf=new Set(this['activeAnnotations']);_0x6d3fdf[_0x510c('0x4')](_0x3c6358),this[_0x510c('0xa')]=_0x6d3fdf;}[_0x510c('0x12')](){const _0x552ba2=this[_0x510c('0x11')],_0x332143=this['_visibleAnnotations'];function _0xad86f(_0xd25d67){const _0x4781f0=_0xd25d67['source'];_0x4781f0['isVisible']&&!_0x332143['has'](_0x4781f0)?_0x332143[_0x510c('0x3')](_0x4781f0):!_0x4781f0[_0x510c('0x2')]&&_0x332143['has'](_0x4781f0)&&_0x332143[_0x510c('0x1')](_0x4781f0),_0x4781f0[_0x510c('0x17')][_0x510c('0xd')]['remove'](_0x4781f0[_0x510c('0x17')][_0x510c('0x16')]),_0x4781f0[_0x510c('0x17')]['focusTracker'][_0x510c('0x3')](_0x4781f0[_0x510c('0x17')][_0x510c('0x16')]);}this[_0x510c('0x8')](_0x552ba2,'add',(_0x200d92,_0x44cd2c)=>{_0x44cd2c['isVisible']&&_0x332143['add'](_0x44cd2c),this[_0x510c('0x8')](_0x44cd2c,_0x510c('0x19'),_0xad86f);}),this[_0x510c('0x8')](_0x552ba2,'remove',(_0x4b3cbb,_0x1b0f7c)=>{_0x332143[_0x510c('0x6')](_0x1b0f7c)&&_0x332143[_0x510c('0x1')](_0x1b0f7c),this[_0x510c('0x13')](_0x1b0f7c,_0x510c('0x19'),_0xad86f);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3958=['activeUIs','annotationsuis-annotation-mismatch','requires','_visibleAnnotations','activate','from','get','hasActive','isActive','setActiveAnnotation','size','register','listenTo','has','collection','push','_deactivateAllAnnotations','activeAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','deactivateAll','remove','filter','_addActiveAnnotation','add','attach','destroy','annotationsuis-missing-ui','pluginName','init','delete','set','function','stopListening','context','plugins','detach','_removeActiveAnnotation','deactivate','type','refilterAnnotations','_uis','_activateAnnotation','AnnotationsUIs','_uisData','_setSelectedAnnotations'];(function(_0x2ef9e9,_0x3958b9){const _0x24aa57=function(_0x48866d){while(--_0x48866d){_0x2ef9e9['push'](_0x2ef9e9['shift']());}};_0x24aa57(++_0x3958b9);}(_0x3958,0x70));const _0x24aa=function(_0x2ef9e9,_0x3958b9){_0x2ef9e9=_0x2ef9e9-0x0;let _0x24aa57=_0x3958[_0x2ef9e9];return _0x24aa57;};import{ContextPlugin as _0x386b59}from'ckeditor5/src/core';import{CKEditorError as _0x5c7b76}from'ckeditor5/src/utils';import _0x5808f4,{bindAnnotationCollections as _0x531733}from'./annotationcollection';import _0x1b8619 from'./annotations';export default class M extends _0x386b59{static get[_0x24aa('0x19')](){return[_0x1b8619];}static get[_0x24aa('0x5')](){return _0x24aa('0x14');}constructor(_0x482964){super(_0x482964),this[_0x24aa('0x17')]=new Set(),this[_0x24aa('0x12')]=new Map(),this['_uisData']=new Map();}[_0x24aa('0x6')](){const _0x11250e=this['context'][_0x24aa('0xc')][_0x24aa('0x1d')](_0x1b8619);this[_0x24aa('0x23')](_0x11250e,_0x24aa('0x13'),(_0x5b60de,_0x9d262e)=>{for(const _0x1a8343 of this['activeUIs']){const _0x5895ba=this[_0x24aa('0x12')][_0x24aa('0x1d')](_0x1a8343);(0x0,this[_0x24aa('0x15')][_0x24aa('0x1d')](_0x1a8343)['filter'])(_0x9d262e)&&_0x5895ba[_0x24aa('0x20')](_0x9d262e);}}),this[_0x24aa('0x23')](_0x11250e,_0x24aa('0x27'),()=>{for(const _0x55643f of this[_0x24aa('0x17')]){this[_0x24aa('0x12')]['get'](_0x55643f)['setActiveAnnotation'](null);}}),this[_0x24aa('0x23')](_0x11250e[_0x24aa('0x1a')],_0x24aa('0x1'),(_0x351364,_0x2411f2)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2411f2);});}[_0x24aa('0x1e')](){return this['activeUIs'][_0x24aa('0x21')]>0x0;}[_0x24aa('0x1f')](_0x33b3d4){return this[_0x24aa('0x17')]['has'](_0x33b3d4);}[_0x24aa('0x1b')](_0x1ce0ad,_0x1565b5=()=>!0x0){const _0x59c42d=this[_0x24aa('0xb')]['plugins'][_0x24aa('0x1d')](_0x1b8619);if(!this['_uis'][_0x24aa('0x24')](_0x1ce0ad))throw new _0x5c7b76(_0x24aa('0x4'),this,{'uiName':_0x1ce0ad});this[_0x24aa('0x1f')](_0x1ce0ad)&&this['deactivate'](_0x1ce0ad),this[_0x24aa('0x17')][_0x24aa('0x1')](_0x1ce0ad);const _0x410667=new _0x5808f4(),_0x316e36=_0x59c42d[_0x24aa('0x1a')];_0x531733({'source':_0x316e36,'target':_0x410667,'filter':_0x1565b5}),this[_0x24aa('0x15')][_0x24aa('0x8')](_0x1ce0ad,{'collection':_0x410667,'filter':_0x1565b5});const _0xa28891=this[_0x24aa('0x12')][_0x24aa('0x1d')](_0x1ce0ad);_0xa28891[_0x24aa('0x2')](_0x410667),this['listenTo'](_0xa28891,'change:activeAnnotation',(_0x42b84a,_0x6778b4,_0x1fde7b,_0x153e6d)=>{_0x153e6d&&_0x59c42d[_0x24aa('0xe')](_0x153e6d),_0x1fde7b&&_0x59c42d[_0x24aa('0x0')](_0x1fde7b);});}[_0x24aa('0xf')](_0x202c99){if(this['activeUIs']['delete'](_0x202c99),!this[_0x24aa('0x12')]['has'](_0x202c99))throw new _0x5c7b76('annotationsuis-missing-ui',this,{'uiName':_0x202c99});const _0x428e13=this['_uis']['get'](_0x202c99);_0x428e13[_0x24aa('0xd')](),this[_0x24aa('0xa')](_0x428e13),this[_0x24aa('0x15')][_0x24aa('0x1d')](_0x202c99)[_0x24aa('0x25')][_0x24aa('0x3')](),this[_0x24aa('0x15')][_0x24aa('0x7')](_0x202c99);}['switchTo'](_0x3f6a37){if(!this[_0x24aa('0x12')][_0x24aa('0x24')](_0x3f6a37))throw new _0x5c7b76(_0x24aa('0x4'),this,{'uiName':_0x3f6a37});const _0x872631=this[_0x24aa('0xb')][_0x24aa('0xc')][_0x24aa('0x1d')](_0x1b8619),_0xe42356=Array[_0x24aa('0x1c')](_0x872631[_0x24aa('0x28')])[0x0]||null;this[_0x24aa('0x2a')](),this[_0x24aa('0x1b')](_0x3f6a37);const _0x3b711e=this[_0x24aa('0x12')]['get'](_0x3f6a37);_0x3b711e[_0x24aa('0x20')](_0xe42356),_0x3b711e[_0x24aa('0x16')]&&_0xe42356&&_0x3b711e['_setSelectedAnnotations']([_0xe42356]);}[_0x24aa('0x2a')](){for(const _0x1f1fdc of this[_0x24aa('0x17')])this[_0x24aa('0xf')](_0x1f1fdc);}[_0x24aa('0x22')](_0x4204fe,_0x12112a){if(this[_0x24aa('0x12')][_0x24aa('0x24')](_0x4204fe))throw new _0x5c7b76('annotationsuis-register-already-registered');if(_0x24aa('0x9')!=typeof _0x12112a[_0x24aa('0x2')]||_0x24aa('0x9')!=typeof _0x12112a[_0x24aa('0xd')]||_0x24aa('0x9')!=typeof _0x12112a[_0x24aa('0x20')])throw new _0x5c7b76('annotationsuis-register-invalid-interface',null);this['_uis'][_0x24aa('0x8')](_0x4204fe,_0x12112a);}[_0x24aa('0x11')](){const _0x564ba6=this['context'][_0x24aa('0xc')][_0x24aa('0x1d')](_0x1b8619)['collection'],_0x113d97=new Map(),_0x1fdfce=Array[_0x24aa('0x1c')](this[_0x24aa('0x17')]);for(const _0x16ebbb of this[_0x24aa('0x17')]){const _0x392e19=this['_uisData']['get'](_0x16ebbb)[_0x24aa('0x25')];for(const _0x363162 of _0x392e19)_0x113d97[_0x24aa('0x8')](_0x363162,_0x16ebbb);}for(const _0x2518cc of _0x564ba6){const _0x30f590=_0x113d97[_0x24aa('0x1d')](_0x2518cc);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2518cc);const _0x36e9eb=_0x1fdfce['find'](_0x3e881c=>this['_uisData'][_0x24aa('0x1d')](_0x3e881c)[_0x24aa('0x2c')](_0x2518cc));_0x30f590!==_0x36e9eb&&(_0x30f590&&this['_uisData']['get'](_0x30f590)[_0x24aa('0x25')][_0x24aa('0x2b')](_0x2518cc),_0x36e9eb&&this['_uisData'][_0x24aa('0x1d')](_0x36e9eb)[_0x24aa('0x25')][_0x24aa('0x1')](_0x2518cc));}}[_0x24aa('0x3')](){this[_0x24aa('0x2a')](),super['destroy']();}[_0x24aa('0x29')](_0x57b372){const _0x60c88b=[];for(const _0x223b80 of this['activeUIs']){(0x0,this['_uisData'][_0x24aa('0x1d')](_0x223b80)['filter'])(_0x57b372)&&_0x60c88b[_0x24aa('0x26')](_0x223b80);}if(_0x60c88b['length']>0x1)throw new _0x5c7b76(_0x24aa('0x18'),null,{'matchedUIs':_0x60c88b,'annotationType':_0x57b372[_0x24aa('0x10')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bf2=['set','document','range','delete','change:isFocused','listenTo','hasDomSelection','sort','from','_editorAnnotationsData','registerAnnotation','collection','_editorAnnotations','requires','fire','map','cancel','getRanges','element','remove','model','editor','isCollapsed','innerView','blur','selection','update','refreshSelectedViews','uiUpdate','EditorAnnotations','containsRange','view','function','getByInnerView','_dataCollectors','add','change:range','refresh','editorannotations-invalid-source-callback','pluginName','editing','get','annotation'];(function(_0x3829ac,_0x4bf22c){const _0x4b4df1=function(_0x296cc1){while(--_0x296cc1){_0x3829ac['push'](_0x3829ac['shift']());}};_0x4b4df1(++_0x4bf22c);}(_0x4bf2,0x72));const _0x4b4d=function(_0x3829ac,_0x4bf22c){_0x3829ac=_0x3829ac-0x0;let _0x4b4df1=_0x4bf2[_0x3829ac];return _0x4b4df1;};import{Plugin as _0x19dd57}from'ckeditor5/src/core';import{CKEditorError as _0x42f50f}from'ckeditor5/src/utils';import{debounce as _0x6fcf72}from'lodash-es';import _0x433311 from'./annotations';export default class k extends _0x19dd57{static get[_0x4b4d('0x1c')](){return[_0x433311];}static get[_0x4b4d('0xb')](){return _0x4b4d('0x1');}constructor(_0x126f88){super(_0x126f88),this['_dataCollectors']=new Set(),this[_0x4b4d('0x1b')]=new Set();}['init'](){const _0x2c46b3=this['editor'],_0x3f0f0a=_0x2c46b3[_0x4b4d('0x23')]['document'][_0x4b4d('0x28')],_0x25d67e=_0x6fcf72(()=>this[_0x4b4d('0x2a')](),0xa);_0x3f0f0a['on'](_0x4b4d('0x8'),(_0x464791,_0x2d3d86)=>{_0x2d3d86['directChange']&&(_0x25d67e[_0x4b4d('0x1f')](),this[_0x4b4d('0x2a')]());}),this[_0x4b4d('0x14')](_0x2c46b3[_0x4b4d('0xc')][_0x4b4d('0x3')][_0x4b4d('0x10')],_0x4b4d('0x13'),(_0xd29cef,_0x5a8118,_0x5cd3b4)=>{_0x5cd3b4&&_0x25d67e();}),this[_0x4b4d('0x14')](_0x2c46b3['ui']['focusTracker'],'change:isFocused',(_0xfc78de,_0x32f295,_0x2d22e0)=>{_0x2d22e0||_0x2c46b3['isReadOnly']||this[_0x4b4d('0x1d')](_0x4b4d('0x27'),{'isAnnotationTracked':_0x170d70=>this[_0x4b4d('0x18')]['has'](_0x170d70[_0x4b4d('0x26')])});}),this[_0x4b4d('0x14')](this[_0x4b4d('0x24')]['ui'],_0x4b4d('0x29'),()=>this[_0x4b4d('0x1d')](_0x4b4d('0x0')));}[_0x4b4d('0x19')](_0x46930c){if(this[_0x4b4d('0x1b')]['has'](_0x46930c['view']))return;this[_0x4b4d('0x1b')][_0x4b4d('0x7')](_0x46930c[_0x4b4d('0x3')]),this[_0x4b4d('0x24')]['ui']['focusTracker']['add'](_0x46930c[_0x4b4d('0x3')][_0x4b4d('0x21')]);const _0x4119b7=this[_0x4b4d('0x24')]['plugins'][_0x4b4d('0xd')](_0x433311);this[_0x4b4d('0x14')](_0x4119b7[_0x4b4d('0x1a')],_0x4b4d('0x22'),(_0x2843a6,_0x4351d6)=>{this[_0x4b4d('0x24')]['ui']['focusTracker']['remove'](_0x4351d6[_0x4b4d('0x3')][_0x4b4d('0x21')]),this[_0x4b4d('0x1b')][_0x4b4d('0x12')](_0x4351d6[_0x4b4d('0x3')]);});}[_0x4b4d('0x15')](){return this[_0x4b4d('0x24')][_0x4b4d('0xc')]['view'][_0x4b4d('0x15')];}['addSourceCollector'](_0x373d8d){if(_0x4b4d('0x4')!=typeof _0x373d8d)throw new _0x42f50f(_0x4b4d('0xa'));this[_0x4b4d('0x6')][_0x4b4d('0x7')](_0x373d8d);}['refreshSelectedViews'](){this[_0x4b4d('0x1d')](_0x4b4d('0x9'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x4ac0e0,annotations:_0x1c7517}){const _0x198e43=[],_0x785bef=this['editor']['model'][_0x4b4d('0x10')]['selection'],_0x592642=Array[_0x4b4d('0x17')](_0x785bef[_0x4b4d('0x20')]());for(const [_0x274cb4,_0x58af7c]of this['_editorAnnotationsData']){const _0x31e2b6=_0x2cd3e3(_0x58af7c),_0x2ae0a9=_0x1c7517[_0x4b4d('0x5')](_0x274cb4);_0x31e2b6&&_0x2ae0a9&&_0x198e43['push']({'annotation':_0x2ae0a9,'range':_0x31e2b6});}function _0x2cd3e3(_0xba39bb){for(const _0x594a24 of _0xba39bb)for(const _0xda19ea of _0x592642)if(_0x594a24['containsRange'](_0xda19ea,!_0x785bef[_0x4b4d('0x25')]))return _0x594a24;return null;}return _0x198e43[_0x4b4d('0x16')]((_0x652e6d,_0x224a6b)=>{const _0x1f47e3=_0x652e6d[_0x4b4d('0x11')],_0x34a79c=_0x224a6b['range'];if(!_0x1f47e3['isEqual'](_0x34a79c)){if(_0x1f47e3[_0x4b4d('0x2')](_0x34a79c,!0x0))return 0x1;if(_0x34a79c[_0x4b4d('0x2')](_0x1f47e3,!0x0))return-0x1;}return _0x652e6d[_0x4b4d('0xe')]==_0x4ac0e0?-0x1:_0x224a6b['annotation']==_0x4ac0e0?0x1:0x0;})[_0x4b4d('0x1e')](_0x57fa89=>_0x57fa89[_0x4b4d('0xe')]);}get[_0x4b4d('0x18')](){const _0x108a5a=new Map();for(const _0xacce8c of Array['from'](this[_0x4b4d('0x6')]))for(const [_0xab1733,_0x3a744d]of _0xacce8c())_0x108a5a[_0x4b4d('0xf')](_0xab1733,_0x3a744d);return _0x108a5a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7b86=['showStack','viewRangeToDom','length','update','domConverter','every','context','fromRect','_selectedAnnotations','right','view','afterInit','activeAnnotation','editor','_addAnnotationToBalloon','mousedown','add','_manuallyClosed','addObserver','_setSelectedAnnotations','_balloon','destroy','document','editableElement','_removeAnnotationFromBalloon','focusTracker','plugins','getFirstRange','hasView','_closeAnnotation','getByView','inline','_addedAnnotations','editing','get','focus','annotations','requires','Esc','stopListening','_getBalloonTargetForAnnotation','bottom','delete','visibleView','isAttached','detach','keystrokes','collapse','isFocused','isActive','inlineannotations-not-allowed-with-context','map','change:isFocused','setActiveAnnotation','InlineAnnotations','_forceRefresh','clear','set','left','blur','selection','find','getClientRects','top','width','inlineannotations-detach-not-attached','inlineannotations-attach-already-attached','remove','includes','targetRect','listenTo','has','getBoundingClientRect','push','getOrderedSelectedAnnotations'];(function(_0x598a6f,_0x7b86b){const _0x42768b=function(_0x361184){while(--_0x361184){_0x598a6f['push'](_0x598a6f['shift']());}};_0x42768b(++_0x7b86b);}(_0x7b86,0x1dc));const _0x4276=function(_0x598a6f,_0x7b86b){_0x598a6f=_0x598a6f-0x0;let _0x42768b=_0x7b86[_0x598a6f];return _0x42768b;};import{Plugin as _0x50deb7}from'ckeditor5/src/core';import _0x2334a7 from'./annotationsuis';import _0x1e62fc from'./editorannotations';import{ContextualBalloon as _0x228d3c}from'ckeditor5/src/ui';import{MouseObserver as _0x5ded37}from'ckeditor5/src/engine';import{CKEditorError as _0x486946,Rect as _0x3092db}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x50deb7{static get[_0x4276('0xb')](){return[_0x1e62fc,_0x228d3c,_0x2334a7];}static get['pluginName'](){return _0x4276('0x1c');}constructor(_0x2e5fb2){super(_0x2e5fb2),_0x2e5fb2[_0x4276('0x7')][_0x4276('0x3b')][_0x4276('0x43')](_0x5ded37),this[_0x4276('0x12')]=!0x1,this[_0x4276('0x1f')](_0x4276('0x3d'),null),this['annotations']=null,this[_0x4276('0x42')]=new Set(),this[_0x4276('0x45')]=_0x2e5fb2[_0x4276('0x0')][_0x4276('0x8')](_0x228d3c),this[_0x4276('0x6')]=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x1b7f7f=this[_0x4276('0x3e')]['plugins'][_0x4276('0x8')](_0x2334a7);_0x1b7f7f[_0x4276('0x37')]===this[_0x4276('0x3e')]&&(_0x1b7f7f['register']('inline',this),this['editor'][_0x4276('0x14')][_0x4276('0x1f')](_0x4276('0xc'),(_0x104f88,_0x520180)=>{const _0x327206=this[_0x4276('0x45')];if(this['isAttached']&&_0x327206[_0x4276('0x11')]){const _0x4c1069=this[_0x4276('0xa')][_0x4276('0x4')](_0x327206['visibleView']);_0x4c1069&&this[_0x4276('0x3')](_0x4c1069),_0x520180();}}));}[_0x4276('0x3c')](){const _0x3c0aac=this[_0x4276('0x3e')]['plugins'][_0x4276('0x8')](_0x2334a7);_0x3c0aac[_0x4276('0x37')]===this[_0x4276('0x3e')]&&(_0x3c0aac['hasActive']()||_0x3c0aac['switchTo'](_0x4276('0x5')));}[_0x4276('0x1b')](_0x43b139){_0x43b139!==this['activeAnnotation']&&(this[_0x4276('0x3d')]&&(this[_0x4276('0x3d')][_0x4276('0x17')]=!0x1),_0x43b139&&this[_0x4276('0x3e')]['ui']['focusTracker'][_0x4276('0x16')]&&(this[_0x4276('0xa')]['has'](_0x43b139)&&this['_addAnnotationToBalloon'](_0x43b139,!0x0),_0x43b139[_0x4276('0x17')]=!0x0),_0x43b139||this[_0x4276('0x44')]([]),this[_0x4276('0x3d')]=_0x43b139);}['attach'](_0x16b867){this[_0x4276('0xa')]=_0x16b867;const _0x2d3edb=this[_0x4276('0x3e')][_0x4276('0x0')][_0x4276('0x8')](_0x2334a7),_0x347e83=this['_balloon'];if(this[_0x4276('0x12')])throw new _0x486946(_0x4276('0x28'),this);if(_0x2d3edb['context']!==this[_0x4276('0x3e')])throw new _0x486946(_0x4276('0x18'),this);const _0x2c3316=this['editor'][_0x4276('0x0')][_0x4276('0x8')](_0x1e62fc);this[_0x4276('0x2c')](_0x2c3316,'refresh',()=>{const _0x1019b9=_0x2c3316[_0x4276('0x30')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x8973c5,_0x229534;!this[_0x4276('0x1d')]&&(_0x8973c5=_0x1019b9,_0x229534=this[_0x4276('0x39')],_0x8973c5[_0x4276('0x33')]===_0x229534[_0x4276('0x33')]&&_0x8973c5[_0x4276('0x36')](_0x535d2b=>_0x229534[_0x4276('0x2a')](_0x535d2b)))||(this[_0x4276('0x1d')]=!0x1,this[_0x4276('0x44')](_0x1019b9),this[_0x4276('0x1b')](_0x1019b9[0x0]||null));}),this['listenTo'](_0x2c3316,_0x4276('0x21'),(_0x5ae4bf,{isAnnotationTracked:_0x191754})=>{this[_0x4276('0x3d')]&&_0x191754(this[_0x4276('0x3d')])&&(this[_0x4276('0x44')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](this[_0x4276('0x3e')]['ui']['focusTracker'],_0x4276('0x1a'),(_0x1e5087,_0x180647,_0x49fe23)=>{_0x49fe23||this[_0x4276('0x1b')](null);}),this[_0x4276('0x2c')](_0x16b867,_0x4276('0x29'),(_0x4a23ef,_0x2c17fe)=>{this[_0x4276('0x49')](_0x2c17fe),_0x2c17fe===this[_0x4276('0x3d')]&&this[_0x4276('0x1b')](null);}),this[_0x4276('0x2c')](_0x347e83,'change:visibleView',(_0x523fce,_0x4d2d96,_0x2b011f,_0x5a8973)=>{_0x5a8973&&this[_0x4276('0xd')](_0x5a8973);const _0x2629e0=_0x16b867[_0x4276('0x4')](_0x2b011f);_0x2b011f&&_0x2629e0&&(this[_0x4276('0x2c')](_0x2b011f,'change:height',()=>{_0x347e83['updatePosition']();}),this['listenTo'](_0x2b011f,_0x4276('0xc'),()=>{this[_0x4276('0x3')](_0x2629e0),this['editor'][_0x4276('0x7')]['view']['focus']();}),this[_0x4276('0x3d')]!==_0x2629e0&&this['setActiveAnnotation'](_0x2629e0));}),this[_0x4276('0x2c')](this[_0x4276('0x3e')]['ui'],_0x4276('0x34'),()=>{_0x347e83['visibleView']&&(_0x16b867[_0x4276('0x4')](_0x347e83[_0x4276('0x11')])&&_0x347e83['updatePosition']());}),this[_0x4276('0x2c')](this[_0x4276('0x3e')][_0x4276('0x7')][_0x4276('0x3b')][_0x4276('0x47')],_0x4276('0x40'),()=>{this[_0x4276('0x1d')]=!0x0,this[_0x4276('0x42')][_0x4276('0x1e')]();}),this[_0x4276('0x3e')][_0x4276('0x7')]['view'][_0x4276('0x47')][_0x4276('0x22')][_0x4276('0x48')]&&this[_0x4276('0x3e')]['editing'][_0x4276('0x3b')][_0x4276('0x9')](),this[_0x4276('0x12')]=!0x0;}[_0x4276('0x13')](){if(!this[_0x4276('0x12')])throw new _0x486946(_0x4276('0x27'),this);this[_0x4276('0x1b')](null);for(const _0xc1eebf of this[_0x4276('0x6')])this[_0x4276('0x49')](_0xc1eebf);this[_0x4276('0xd')](),this[_0x4276('0x12')]=!0x1,this['annotations']=null;}[_0x4276('0x46')](){this['isAttached']&&this[_0x4276('0x13')]();}[_0x4276('0x44')](_0x2b07fd){for(const _0x5d1f29 of this[_0x4276('0x39')])_0x2b07fd[_0x4276('0x2a')](_0x5d1f29)||this[_0x4276('0x42')][_0x4276('0x10')](_0x5d1f29);for(const _0x2c69fc of this['annotations'])_0x2b07fd[_0x4276('0x2a')](_0x2c69fc)||this['_removeAnnotationFromBalloon'](_0x2c69fc);if(this[_0x4276('0x3e')]['ui'][_0x4276('0x4a')][_0x4276('0x16')])for(const _0x9955f6 of _0x2b07fd)this[_0x4276('0x3f')](_0x9955f6);this[_0x4276('0x39')]=_0x2b07fd;}[_0x4276('0x3f')](_0x1f823a,_0x203403=!0x1){this['_manuallyClosed'][_0x4276('0x2d')](_0x1f823a)||(this[_0x4276('0x6')]['has'](_0x1f823a)||this[_0x4276('0x45')][_0x4276('0x2')](_0x1f823a[_0x4276('0x3b')])||(this[_0x4276('0x6')]['add'](_0x1f823a),this[_0x4276('0x45')][_0x4276('0x41')]({'stackId':_0x1f823a[_0x4276('0x3b')]['id'],'view':_0x1f823a[_0x4276('0x3b')],'position':{'target':()=>this[_0x4276('0xe')](_0x1f823a)}})),_0x203403&&this[_0x4276('0x45')][_0x4276('0x31')](_0x1f823a[_0x4276('0x3b')]['id']));}[_0x4276('0xe')](_0x30b00a){const _0x5281a7=_0x30b00a['target'],_0x1bddd6=this[_0x4276('0x3e')][_0x4276('0x7')][_0x4276('0x3b')],_0x5d074e=_0x1bddd6[_0x4276('0x47')][_0x4276('0x22')][_0x4276('0x1')](),_0x1c8b41=_0x1bddd6[_0x4276('0x35')][_0x4276('0x32')](_0x5d074e);if(_0x1c8b41[_0x4276('0x15')](!0x0),_0x5281a7){if(_0x5281a7 instanceof _0x3092db)return _0x5281a7;let _0x730e05=[];for(const _0x4a0168 of _0x5281a7)_0x730e05[_0x4276('0x2f')](...(_0x3c4639=_0x4a0168[_0x4276('0x24')](),Array['from'](_0x3c4639)[_0x4276('0x19')](DOMRect[_0x4276('0x38')])));_0x730e05=function(_0x5ef2f9){const _0x18ee19=[];let _0x549332=_0x5ef2f9[0x0];for(let _0x32a32a=0x1;_0x32a32a<_0x5ef2f9['length'];_0x32a32a++)F(_0x549332,_0x5ef2f9[_0x32a32a])?_0x549332[_0x4276('0x26')]+=_0x5ef2f9[_0x32a32a][_0x4276('0x26')]:(_0x18ee19[_0x4276('0x2f')](_0x549332),_0x549332=_0x5ef2f9[_0x32a32a]);return _0x18ee19['push'](_0x549332),_0x18ee19;}(_0x730e05);const _0x40f224=_0x1c8b41[_0x4276('0x2e')]();return _0x730e05[_0x4276('0x23')](_0x5dc150=>_0x5dc150[_0x4276('0x25')]<=_0x40f224[_0x4276('0x25')]&&_0x5dc150[_0x4276('0xf')]>=_0x40f224['bottom']&&_0x5dc150[_0x4276('0x20')]<=_0x40f224[_0x4276('0x20')]&&_0x5dc150[_0x4276('0x3a')]>=_0x40f224[_0x4276('0x3a')])||_0x730e05[0x0];}var _0x3c4639;return _0x30b00a[_0x4276('0x2b')]||_0x1c8b41;}[_0x4276('0x49')](_0x142e11){this[_0x4276('0x6')][_0x4276('0x2d')](_0x142e11)&&this['_balloon'][_0x4276('0x2')](_0x142e11[_0x4276('0x3b')])&&(this[_0x4276('0x6')][_0x4276('0x10')](_0x142e11),this[_0x4276('0x45')][_0x4276('0x29')](_0x142e11['view']));}['_closeAnnotation'](_0x46d373){this['_manuallyClosed']['add'](_0x46d373),this[_0x4276('0x49')](_0x46d373);}}function F(_0x25b90e,_0x56b90b){return _0x25b90e[_0x4276('0x25')]===_0x56b90b['top']&&_0x25b90e[_0x4276('0xf')]===_0x56b90b[_0x4276('0xf')]&&_0x25b90e[_0x4276('0x3a')]===_0x56b90b[_0x4276('0x20')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5f5b=['remove','hasDomSelection','_annotationToNarrowView','element','_integrateWithEditorAnnotations','southArrowNorthEast','delete','has','EditorAnnotations','activeAnnotation','esc','get','isDirty','off','set','attach','detachFromDom','northArrowSouth','length','pluginName','_refreshPositioning','_destroyEditorAnnotationsIntegration','editors','init','southArrowNorthWest','_setSelectedAnnotations','_detachListeners','first','NarrowSidebar','defaultPositions','change:container','bodyCollection','focus','type','ck-sidebar--narrow','_hideBalloon','context','blur','narrowsidebar-attach-already-attached','getSidebarItemView','requires','refresh','values','northArrowSouthWest','destroy','pin','refreshPositioning','balloonPanelView','_editorAnnotations','mousedown','_showBalloon','contains','low','isVisible','locale','focusableElements','register','execute','stopListening','resize','from','add','content','view','number','setActiveAnnotation','find','preventClosingBalloon','isAttached','_domEmitter','target','_manuallyClosedAnnotationViews','uiUpdate','narrowSidebar','set:container','_detachFromContainer','narrowsidebar-detach-not-attached','_attachListeners','_refreshPositioningDebounced','clear','create','southArrowNorth','_selectedAnnotations','detach','keydown','annotationType','bind','getByView','stopPropagation','annotations','listenTo','plugins','cancel'];(function(_0xd0efd0,_0x5f5bb0){const _0xc73814=function(_0x1e2b42){while(--_0x1e2b42){_0xd0efd0['push'](_0xd0efd0['shift']());}};_0xc73814(++_0x5f5bb0);}(_0x5f5b,0x9a));const _0xc738=function(_0xd0efd0,_0x5f5bb0){_0xd0efd0=_0xd0efd0-0x0;let _0xc73814=_0x5f5b[_0xd0efd0];return _0xc73814;};import{ContextPlugin as _0x38cd2c,Context as _0x48535f}from'ckeditor5/src/core';import _0x1aeeff from'./annotationsuis';import _0x3b70c9 from'./sidebar';import _0x2d1ad3 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x5859a2,BodyCollection as _0xab949c}from'ckeditor5/src/ui';import{CKEditorError as _0x2d3f6e,DomEmitterMixin as _0x3db1db,keyCodes as _0x40330e,Collection as _0x44255a}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1c266e}from'lodash-es';import _0x114b3a from'./editorannotations';export default class s extends _0x38cd2c{static get[_0xc738('0x48')](){return[_0x3b70c9,_0x1aeeff];}static get[_0xc738('0x33')](){return _0xc738('0x3c');}constructor(_0x15b948){super(_0x15b948),this[_0xc738('0x7')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0xc738('0x8')]=Object[_0xc738('0x13')](_0x3db1db),this[_0xc738('0x22')]=new Map(),this[_0xc738('0x2e')]('activeAnnotation',null),this[_0xc738('0x1c')]=null,this[_0xc738('0x15')]=[],this[_0xc738('0x50')]=new _0x44255a(),this[_0xc738('0x11')]=_0x1c266e(()=>{this[_0xc738('0x34')]();},0xfa,{'leading':!0x1});}[_0xc738('0x37')](){this[_0xc738('0x44')][_0xc738('0x1e')]['get'](_0x1aeeff)[_0xc738('0x58')](_0xc738('0xc'),this),this[_0xc738('0x3f')]=new _0xab949c(this[_0xc738('0x44')][_0xc738('0x56')]),this[_0xc738('0x4f')]=new _0x5859a2(this[_0xc738('0x44')][_0xc738('0x56')]),this['bodyCollection']['attachToDom'](),this[_0xc738('0x3f')][_0xc738('0x0')](this[_0xc738('0x4f')]);}[_0xc738('0x2f')](_0x40c871){this[_0xc738('0x1c')]=_0x40c871;const _0x3af15b=this[_0xc738('0x44')][_0xc738('0x1e')][_0xc738('0x2b')](_0x3b70c9),_0x4543ae=this[_0xc738('0x4f')];if(_0x3af15b['_annotations']=_0x40c871,this[_0xc738('0x7')])throw new _0x2d3f6e(_0xc738('0x46'),this);this[_0xc738('0x7')]=!0x0,this['listenTo'](_0x3af15b,_0xc738('0xd'),()=>{this[_0xc738('0x16')](),this['listenTo'](_0x3af15b,_0xc738('0x3e'),_0x30c800=>{_0x30c800[_0xc738('0x2d')](),this[_0xc738('0x2f')](_0x40c871);});}),_0x3af15b['_attachToContainer']({'viewClass':_0xc738('0x42'),'spaceBetweenItems':0x5});const _0x426afa=_0x17437f=>{const _0x2fa37b=new _0x2d1ad3(this['context'][_0xc738('0x56')]);_0x3af15b['addAnnotation'](_0x17437f,_0x2fa37b),this['_annotationToNarrowView']['set'](_0x17437f,_0x2fa37b),_0x2fa37b[_0xc738('0x19')](_0xc738('0x2c'),_0xc738('0x18'),_0xc738('0x3'))['to'](_0x17437f[_0xc738('0x2')],_0xc738('0x2c'),_0xc738('0x41'),_0xc738('0x32')),_0x2fa37b['on'](_0xc738('0x59'),()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4543ae[_0xc738('0x1')][_0xc738('0x3b')]!==_0x17437f[_0xc738('0x2')]?(this[_0xc738('0x52')](_0x17437f),_0x17437f[_0xc738('0x2')][_0xc738('0x23')][_0xc738('0x40')](),this[_0xc738('0x4')](_0x17437f)):this[_0xc738('0x4')](null);});};for(const _0x5c147a of _0x40c871)_0x426afa(_0x5c147a);this[_0xc738('0x1d')](_0x40c871,'add',(_0x3c5492,_0x3ce3b2)=>{_0x426afa(_0x3ce3b2);}),this['listenTo'](_0x40c871,'remove',(_0x50ec5c,_0x131cb9,_0x348770)=>{this[_0xc738('0x22')][_0xc738('0x2b')](_0x131cb9)[_0xc738('0x4c')](),this[_0xc738('0x22')][_0xc738('0x26')](_0x131cb9),_0x3af15b['rearrange']({'removedAnnotation':_0x131cb9,'previousAnnotation':_0x40c871[_0xc738('0x2b')](_0x348770-0x1),'nextAnnotation':_0x40c871[_0xc738('0x2b')](_0x348770+0x1)}),_0x131cb9===this['activeAnnotation']&&this[_0xc738('0x4')](null);},{'priority':_0xc738('0x54')}),this[_0xc738('0x1d')](_0x40c871,_0xc738('0x40'),(_0x3bbf29,_0x2757de)=>{this[_0xc738('0x4')](_0x2757de);}),this[_0xc738('0x1d')](_0x40c871,_0xc738('0x45'),()=>{this[_0xc738('0x4')](null);}),this[_0xc738('0x8')]['listenTo'](document,_0xc738('0x17'),(_0x4258f4,_0x4d0ce0)=>{_0x4d0ce0['keyCode']===_0x40330e[_0xc738('0x2a')]&&_0x4543ae['isVisible']&&(this[_0xc738('0xa')]['add'](_0x4543ae[_0xc738('0x1')]['first']),this[_0xc738('0x43')](),_0x4d0ce0[_0xc738('0x1b')](),_0x4d0ce0['preventDefault']());}),this[_0xc738('0x8')][_0xc738('0x1d')](document,_0xc738('0x51'),(_0x56cd81,_0x1b9964)=>{const _0x48fc41=_0x1b9964[_0xc738('0x9')];_0x4543ae[_0xc738('0x55')]&&_0x4543ae[_0xc738('0x23')][_0xc738('0x53')](_0x48fc41)||_0x3af15b[_0xc738('0x2')][_0xc738('0x23')][_0xc738('0x53')](_0x48fc41)||_0x56cd81[_0xc738('0x6')]||this[_0xc738('0x29')]&&this[_0xc738('0x29')][_0xc738('0x57')][_0xc738('0x5')](_0x32fed8=>_0x32fed8['contains'](_0x48fc41))||(this['_manuallyClosedAnnotationViews']['clear'](),this[_0xc738('0x43')](),this[_0xc738('0x4')](null));});const _0x124ab3=this[_0xc738('0x44')]instanceof _0x48535f?this[_0xc738('0x44')][_0xc738('0x36')]:new _0x44255a([this['context']]);for(const _0x669483 of _0x124ab3)this[_0xc738('0x24')](_0x669483);this[_0xc738('0x1d')](_0x124ab3,_0xc738('0x0'),(_0x1d2e2e,_0x9b7977)=>{this['listenTo'](_0x9b7977,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x9b7977);});}),this[_0xc738('0x1d')](_0x124ab3,_0xc738('0x20'),(_0x1ffc21,_0x20895f)=>{_0x20895f['plugins']['has'](_0xc738('0x28'))&&this[_0xc738('0x35')](_0x20895f[_0xc738('0x1e')][_0xc738('0x2b')](_0xc738('0x28')));}),window['addEventListener'](_0xc738('0x5b'),this[_0xc738('0x11')]),this[_0xc738('0x34')]();}[_0xc738('0x4')](_0x4a00cd){if(_0x4a00cd===this[_0xc738('0x29')])return;const _0x30cd93=this[_0xc738('0x44')][_0xc738('0x1e')][_0xc738('0x2b')](_0x3b70c9);if(_0x30cd93[_0xc738('0x49')]({'blurredAnnotation':this[_0xc738('0x29')],'activatedAnnotation':_0x4a00cd,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4a00cd)_0x30cd93[_0xc738('0x47')](_0x4a00cd)?this[_0xc738('0x52')](_0x4a00cd):this[_0xc738('0x43')]();else this[_0xc738('0x43')]();this[_0xc738('0x29')]=_0x4a00cd;}[_0xc738('0x16')](){if(!this[_0xc738('0x7')])throw new _0x2d3f6e(_0xc738('0xf'),this);this[_0xc738('0x4')](null);const _0xbc79ad=this['context'][_0xc738('0x1e')]['get'](_0x3b70c9);this[_0xc738('0x43')](),Array['from'](this[_0xc738('0x22')][_0xc738('0x4a')](),_0x94cd13=>_0x94cd13[_0xc738('0x4c')]()),this[_0xc738('0x22')][_0xc738('0x12')](),_0xbc79ad[_0xc738('0xe')](this[_0xc738('0x1c')]),this[_0xc738('0x5a')](),this[_0xc738('0x8')][_0xc738('0x5a')](),this[_0xc738('0x44')]instanceof _0x48535f&&this[_0xc738('0x5a')](this[_0xc738('0x44')][_0xc738('0x36')]);for(const _0x140ae2 of Array[_0xc738('0x5c')](this[_0xc738('0x50')]))this[_0xc738('0x35')](_0x140ae2);window['removeEventListener'](_0xc738('0x5b'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0xc738('0x1f')](),this[_0xc738('0x15')]=[],this[_0xc738('0x7')]=!0x1,this[_0xc738('0x1c')]=null;}[_0xc738('0x4c')](){this[_0xc738('0x7')]&&this[_0xc738('0x16')](),this[_0xc738('0x3f')][_0xc738('0x30')]();}[_0xc738('0x24')](_0x181849){const _0x39ff10=_0x181849[_0xc738('0x1e')]['get'](_0x114b3a),_0x11c1bb=this[_0xc738('0x44')][_0xc738('0x1e')]['get'](_0x3b70c9),_0xd29d6=this[_0xc738('0x1c')],_0x322aa6=this[_0xc738('0x4f')],_0x1e34ea=()=>{const _0xbf8f29=_0x39ff10['getOrderedSelectedAnnotations']({'annotations':this[_0xc738('0x1c')],'activeAnnotation':this[_0xc738('0x29')]});this[_0xc738('0x39')](_0xbf8f29),this['setActiveAnnotation'](_0xbf8f29[0x0]||null);};this['listenTo'](_0x39ff10,_0xc738('0x49'),_0x1e34ea),this[_0xc738('0x1d')](_0x39ff10,_0xc738('0x45'),(_0x13cc63,{isAnnotationTracked:_0x4df64a})=>{this['activeAnnotation']&&_0x4df64a(this[_0xc738('0x29')])&&(this[_0xc738('0x39')]([]),this[_0xc738('0x4')](null));}),this['listenTo'](_0x39ff10,_0xc738('0xb'),()=>{this[_0xc738('0x11')]();}),this[_0xc738('0x1d')](_0xd29d6,_0xc738('0x45'),_0xcf5d73=>{_0x39ff10[_0xc738('0x21')]()&&_0xcf5d73['stop']();},{'priority':'high'}),this['listenTo'](this[_0xc738('0x8')],'mousedown',(_0x24a7e4,_0x1ccb2f)=>{const _0x396a0a=_0x1ccb2f[_0xc738('0x9')];_0x322aa6[_0xc738('0x55')]&&_0x322aa6[_0xc738('0x23')][_0xc738('0x53')](_0x396a0a)||_0x11c1bb['view'][_0xc738('0x23')][_0xc738('0x53')](_0x396a0a)||this[_0xc738('0x29')]&&_0x39ff10['hasDomSelection']()&&(_0x1e34ea(),_0x24a7e4[_0xc738('0x6')]=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x39ff10);}[_0xc738('0x35')](_0x581bb2){_0x581bb2&&(this[_0xc738('0x5a')](_0x581bb2),this['_editorAnnotations'][_0xc738('0x20')](_0x581bb2));}[_0xc738('0x39')](_0xb40a40){for(const _0x2d2b8a of this[_0xc738('0x15')])_0xb40a40['includes'](_0x2d2b8a)||this[_0xc738('0xa')][_0xc738('0x26')](_0x2d2b8a['view']);this[_0xc738('0x15')]=_0xb40a40;}[_0xc738('0x34')](){const _0x18d01c=this[_0xc738('0x4f')];this[_0xc738('0x1c')][_0xc738('0x4e')](),_0x18d01c['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x252253){if(this[_0xc738('0xa')][_0xc738('0x27')](_0x252253['view']))return;const _0x2a4765=this[_0xc738('0x4f')][_0xc738('0x1')][_0xc738('0x3b')];_0x2a4765!==_0x252253[_0xc738('0x2')]?(_0x2a4765&&this[_0xc738('0x3a')](_0x2a4765),this['_attachListeners'](_0x252253['view']),this[_0xc738('0x4f')][_0xc738('0x1')][_0xc738('0x12')](),this[_0xc738('0x4f')]['content'][_0xc738('0x0')](_0x252253[_0xc738('0x2')]),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x212f9a=this['balloonPanelView'][_0xc738('0x1')][_0xc738('0x3b')],_0x2d7d92=_0x212f9a&&this[_0xc738('0x1c')][_0xc738('0x1a')](_0x212f9a);if(!_0x2d7d92||!this[_0xc738('0x22')][_0xc738('0x27')](_0x2d7d92))return;const _0x2aaea9=this[_0xc738('0x22')][_0xc738('0x2b')](_0x2d7d92)[_0xc738('0x23')],_0x45c7ca=function(){const _0x1b2546=_0x5859a2[_0xc738('0x3d')];return[_0x1b2546[_0xc738('0x25')],_0x1b2546['northArrowSouthEast'],_0x1b2546[_0xc738('0x14')],_0x1b2546[_0xc738('0x31')],_0x1b2546[_0xc738('0x38')],_0x1b2546[_0xc738('0x4b')]];}();this['balloonPanelView'][_0xc738('0x4d')]({'target':_0x2aaea9,'positions':_0x45c7ca});}[_0xc738('0x43')](){const _0x11e906=this[_0xc738('0x4f')],_0x1d3484=_0x11e906['content'][_0xc738('0x3b')];_0x1d3484&&(this['_detachListeners'](_0x1d3484),_0x11e906['unpin'](),_0x11e906[_0xc738('0x1')]['clear']());}[_0xc738('0x10')](_0x281a29){this[_0xc738('0x1d')](_0x281a29,'change:height',()=>this['_updateBalloonPosition']()),this[_0xc738('0x1d')](_0x281a29,'Esc',(_0x5e8be9,_0xe87ba0)=>{this[_0xc738('0xa')]['add'](_0x281a29),this[_0xc738('0x43')](),_0xe87ba0();});}['_detachListeners'](_0x4725d3){this[_0xc738('0x5a')](_0x4725d3);}}
|
|
23
|
+
const _0xfa08=['getByView','resize','_integrateWithEditorAnnotations','refreshPositioning','northArrowSouthWest','blur','detachFromDom','includes','focusableElements','type','listenTo','locale','isAttached','delete','low','register','high','keydown','annotationType','removeEventListener','set','values','change:container','has','first','isDirty','editors','_annotationToNarrowView','refresh','_refreshPositioningDebounced','attach','hasDomSelection','_showBalloon','_setSelectedAnnotations','preventDefault','preventClosingBalloon','pluginName','uiUpdate','_destroyEditorAnnotationsIntegration','narrowsidebar-detach-not-attached','bind','remove','_hideBalloon','destroy','southArrowNorthWest','_annotations','narrowSidebar','clear','EditorAnnotations','stop','mousedown','_detachFromContainer','view','annotations','bodyCollection','contains','addEventListener','plugins','pin','_manuallyClosedAnnotationViews','isVisible','from','getOrderedSelectedAnnotations','requires','getSidebarItemView','length','_attachToContainer','context','content','get','balloonPanelView','detach','_selectedAnnotations','add','_detachListeners','stopListening','_editorAnnotations','setActiveAnnotation','element','NarrowSidebar','target','activeAnnotation','Esc','cancel','defaultPositions','southArrowNorth','off','_domEmitter','_refreshPositioning','ready','esc','change:height','_updateBalloonPosition'];(function(_0x4413c1,_0xfa08f2){const _0x54df91=function(_0x23f15a){while(--_0x23f15a){_0x4413c1['push'](_0x4413c1['shift']());}};_0x54df91(++_0xfa08f2);}(_0xfa08,0x182));const _0x54df=function(_0x4413c1,_0xfa08f2){_0x4413c1=_0x4413c1-0x0;let _0x54df91=_0xfa08[_0x4413c1];return _0x54df91;};import{ContextPlugin as _0x47c858,Context as _0x5d6eea}from'ckeditor5/src/core';import _0x415f2b from'./annotationsuis';import _0x1deb1f from'./sidebar';import _0x20704d from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2ce8de,BodyCollection as _0x248c2a}from'ckeditor5/src/ui';import{CKEditorError as _0x3ffe79,DomEmitterMixin as _0x38d3bb,keyCodes as _0x5cf755,Collection as _0x27a02e}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x2856e0}from'lodash-es';import _0x338548 from'./editorannotations';export default class s extends _0x47c858{static get[_0x54df('0x31')](){return[_0x1deb1f,_0x415f2b];}static get[_0x54df('0x16')](){return _0x54df('0x41');}constructor(_0x354137){super(_0x354137),this[_0x54df('0x5b')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x54df('0x49')]=Object['create'](_0x38d3bb),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this[_0x54df('0x3a')]=[],this[_0x54df('0x3e')]=new _0x27a02e(),this['_refreshPositioningDebounced']=_0x2856e0(()=>{this[_0x54df('0x4a')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x54df('0x35')][_0x54df('0x2b')][_0x54df('0x37')](_0x415f2b)[_0x54df('0x1')](_0x54df('0x20'),this),this['bodyCollection']=new _0x248c2a(this[_0x54df('0x35')][_0x54df('0x5a')]),this[_0x54df('0x38')]=new _0x2ce8de(this[_0x54df('0x35')][_0x54df('0x5a')]),this[_0x54df('0x28')]['attachToDom'](),this[_0x54df('0x28')]['add'](this[_0x54df('0x38')]);}[_0x54df('0x10')](_0x98f678){this['annotations']=_0x98f678;const _0x5e4025=this[_0x54df('0x35')][_0x54df('0x2b')]['get'](_0x1deb1f),_0x480d57=this['balloonPanelView'];if(_0x5e4025[_0x54df('0x1f')]=_0x98f678,this[_0x54df('0x5b')])throw new _0x3ffe79('narrowsidebar-attach-already-attached',this);this[_0x54df('0x5b')]=!0x0,this['listenTo'](_0x5e4025,'set:container',()=>{this[_0x54df('0x39')](),this[_0x54df('0x59')](_0x5e4025,_0x54df('0x8'),_0x44e843=>{_0x44e843[_0x54df('0x48')](),this['attach'](_0x98f678);});}),_0x5e4025[_0x54df('0x34')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x3ff739=_0x52ec86=>{const _0x2a8c47=new _0x20704d(this[_0x54df('0x35')][_0x54df('0x5a')]);_0x5e4025['addAnnotation'](_0x52ec86,_0x2a8c47),this[_0x54df('0xd')][_0x54df('0x6')](_0x52ec86,_0x2a8c47),_0x2a8c47[_0x54df('0x1a')](_0x54df('0xb'),_0x54df('0x4'),'number')['to'](_0x52ec86[_0x54df('0x26')],_0x54df('0xb'),_0x54df('0x58'),_0x54df('0x33')),_0x2a8c47['on']('execute',()=>{this['_manuallyClosedAnnotationViews'][_0x54df('0x21')](),_0x480d57[_0x54df('0x36')]['first']!==_0x52ec86[_0x54df('0x26')]?(this[_0x54df('0x12')](_0x52ec86),_0x52ec86['view'][_0x54df('0x40')]['focus'](),this[_0x54df('0x3f')](_0x52ec86)):this[_0x54df('0x3f')](null);});};for(const _0x51bdd6 of _0x98f678)_0x3ff739(_0x51bdd6);this[_0x54df('0x59')](_0x98f678,_0x54df('0x3b'),(_0x142504,_0x5df9ae)=>{_0x3ff739(_0x5df9ae);}),this[_0x54df('0x59')](_0x98f678,'remove',(_0x4391d1,_0x53aa06,_0x13c94d)=>{this['_annotationToNarrowView'][_0x54df('0x37')](_0x53aa06)[_0x54df('0x1d')](),this[_0x54df('0xd')][_0x54df('0x5c')](_0x53aa06),_0x5e4025['rearrange']({'removedAnnotation':_0x53aa06,'previousAnnotation':_0x98f678['get'](_0x13c94d-0x1),'nextAnnotation':_0x98f678[_0x54df('0x37')](_0x13c94d+0x1)}),_0x53aa06===this[_0x54df('0x43')]&&this['setActiveAnnotation'](null);},{'priority':_0x54df('0x0')}),this[_0x54df('0x59')](_0x98f678,'focus',(_0x4c8a5c,_0x4c63a2)=>{this[_0x54df('0x3f')](_0x4c63a2);}),this[_0x54df('0x59')](_0x98f678,'blur',()=>{this['setActiveAnnotation'](null);}),this[_0x54df('0x49')]['listenTo'](document,_0x54df('0x3'),(_0x374d8a,_0x5a1e0c)=>{_0x5a1e0c['keyCode']===_0x5cf755[_0x54df('0x4c')]&&_0x480d57[_0x54df('0x2e')]&&(this[_0x54df('0x2d')][_0x54df('0x3b')](_0x480d57[_0x54df('0x36')][_0x54df('0xa')]),this[_0x54df('0x1c')](),_0x5a1e0c['stopPropagation'](),_0x5a1e0c[_0x54df('0x14')]());}),this[_0x54df('0x49')][_0x54df('0x59')](document,'mousedown',(_0x56ec4b,_0x1f5911)=>{const _0x270db5=_0x1f5911['target'];_0x480d57[_0x54df('0x2e')]&&_0x480d57[_0x54df('0x40')][_0x54df('0x29')](_0x270db5)||_0x5e4025[_0x54df('0x26')]['element']['contains'](_0x270db5)||_0x56ec4b[_0x54df('0x15')]||this[_0x54df('0x43')]&&this[_0x54df('0x43')][_0x54df('0x57')]['find'](_0x113ae6=>_0x113ae6[_0x54df('0x29')](_0x270db5))||(this[_0x54df('0x2d')]['clear'](),this[_0x54df('0x1c')](),this[_0x54df('0x3f')](null));});const _0x5696fc=this[_0x54df('0x35')]instanceof _0x5d6eea?this[_0x54df('0x35')][_0x54df('0xc')]:new _0x27a02e([this[_0x54df('0x35')]]);for(const _0x442bc0 of _0x5696fc)this['_integrateWithEditorAnnotations'](_0x442bc0);this[_0x54df('0x59')](_0x5696fc,_0x54df('0x3b'),(_0x1eabbd,_0x29f3e2)=>{this[_0x54df('0x59')](_0x29f3e2,_0x54df('0x4b'),()=>{this[_0x54df('0x51')](_0x29f3e2);});}),this[_0x54df('0x59')](_0x5696fc,_0x54df('0x1b'),(_0x47a0f3,_0x7614f3)=>{_0x7614f3[_0x54df('0x2b')]['has']('EditorAnnotations')&&this[_0x54df('0x18')](_0x7614f3[_0x54df('0x2b')]['get'](_0x54df('0x22')));}),window[_0x54df('0x2a')](_0x54df('0x50'),this[_0x54df('0xf')]),this[_0x54df('0x4a')]();}[_0x54df('0x3f')](_0x255400){if(_0x255400===this['activeAnnotation'])return;const _0xe8263e=this[_0x54df('0x35')]['plugins'][_0x54df('0x37')](_0x1deb1f);if(_0xe8263e['refresh']({'blurredAnnotation':this[_0x54df('0x43')],'activatedAnnotation':_0x255400,'disableAnimationOnActivatedAnnotation':!0x0}),_0x255400)_0xe8263e[_0x54df('0x32')](_0x255400)?this[_0x54df('0x12')](_0x255400):this[_0x54df('0x1c')]();else this[_0x54df('0x1c')]();this[_0x54df('0x43')]=_0x255400;}['detach'](){if(!this[_0x54df('0x5b')])throw new _0x3ffe79(_0x54df('0x19'),this);this['setActiveAnnotation'](null);const _0x22973b=this[_0x54df('0x35')]['plugins'][_0x54df('0x37')](_0x1deb1f);this[_0x54df('0x1c')](),Array[_0x54df('0x2f')](this[_0x54df('0xd')][_0x54df('0x7')](),_0x41ee32=>_0x41ee32[_0x54df('0x1d')]()),this[_0x54df('0xd')]['clear'](),_0x22973b[_0x54df('0x25')](this['annotations']),this[_0x54df('0x3d')](),this[_0x54df('0x49')][_0x54df('0x3d')](),this['context']instanceof _0x5d6eea&&this[_0x54df('0x3d')](this[_0x54df('0x35')][_0x54df('0xc')]);for(const _0x4c8c4b of Array[_0x54df('0x2f')](this[_0x54df('0x3e')]))this[_0x54df('0x18')](_0x4c8c4b);window[_0x54df('0x5')](_0x54df('0x50'),this[_0x54df('0xf')]),this[_0x54df('0xf')][_0x54df('0x45')](),this[_0x54df('0x3a')]=[],this[_0x54df('0x5b')]=!0x1,this[_0x54df('0x27')]=null;}[_0x54df('0x1d')](){this['isAttached']&&this[_0x54df('0x39')](),this[_0x54df('0x28')][_0x54df('0x55')]();}[_0x54df('0x51')](_0x52ad0f){const _0xdfaa61=_0x52ad0f[_0x54df('0x2b')][_0x54df('0x37')](_0x338548),_0x4c3d19=this[_0x54df('0x35')][_0x54df('0x2b')]['get'](_0x1deb1f),_0x1dc472=this['annotations'],_0x69fdfe=this[_0x54df('0x38')],_0x156647=()=>{const _0xc92ac4=_0xdfaa61[_0x54df('0x30')]({'annotations':this[_0x54df('0x27')],'activeAnnotation':this[_0x54df('0x43')]});this[_0x54df('0x13')](_0xc92ac4),this[_0x54df('0x3f')](_0xc92ac4[0x0]||null);};this[_0x54df('0x59')](_0xdfaa61,_0x54df('0xe'),_0x156647),this[_0x54df('0x59')](_0xdfaa61,_0x54df('0x54'),(_0x30b1b5,{isAnnotationTracked:_0xcdea97})=>{this[_0x54df('0x43')]&&_0xcdea97(this[_0x54df('0x43')])&&(this[_0x54df('0x13')]([]),this[_0x54df('0x3f')](null));}),this['listenTo'](_0xdfaa61,_0x54df('0x17'),()=>{this[_0x54df('0xf')]();}),this[_0x54df('0x59')](_0x1dc472,_0x54df('0x54'),_0x4eb2d8=>{_0xdfaa61[_0x54df('0x11')]()&&_0x4eb2d8[_0x54df('0x23')]();},{'priority':_0x54df('0x2')}),this['listenTo'](this['_domEmitter'],_0x54df('0x24'),(_0x413ff0,_0xdfe0b1)=>{const _0x5e3216=_0xdfe0b1[_0x54df('0x42')];_0x69fdfe[_0x54df('0x2e')]&&_0x69fdfe['element'][_0x54df('0x29')](_0x5e3216)||_0x4c3d19[_0x54df('0x26')][_0x54df('0x40')]['contains'](_0x5e3216)||this[_0x54df('0x43')]&&_0xdfaa61[_0x54df('0x11')]()&&(_0x156647(),_0x413ff0[_0x54df('0x15')]=!0x0);},{'priority':_0x54df('0x2')}),this[_0x54df('0x3e')][_0x54df('0x3b')](_0xdfaa61);}['_destroyEditorAnnotationsIntegration'](_0x9472b9){_0x9472b9&&(this[_0x54df('0x3d')](_0x9472b9),this[_0x54df('0x3e')][_0x54df('0x1b')](_0x9472b9));}[_0x54df('0x13')](_0x3dc31a){for(const _0x52c0be of this['_selectedAnnotations'])_0x3dc31a[_0x54df('0x56')](_0x52c0be)||this['_manuallyClosedAnnotationViews'][_0x54df('0x5c')](_0x52c0be[_0x54df('0x26')]);this['_selectedAnnotations']=_0x3dc31a;}[_0x54df('0x4a')](){const _0x130171=this[_0x54df('0x38')];this['annotations'][_0x54df('0x52')](),_0x130171['isVisible']&&this[_0x54df('0x4e')]();}[_0x54df('0x12')](_0x5e4aeb){if(this['_manuallyClosedAnnotationViews'][_0x54df('0x9')](_0x5e4aeb['view']))return;const _0x123eb9=this['balloonPanelView']['content'][_0x54df('0xa')];_0x123eb9!==_0x5e4aeb['view']?(_0x123eb9&&this[_0x54df('0x3c')](_0x123eb9),this['_attachListeners'](_0x5e4aeb[_0x54df('0x26')]),this['balloonPanelView'][_0x54df('0x36')]['clear'](),this[_0x54df('0x38')][_0x54df('0x36')][_0x54df('0x3b')](_0x5e4aeb[_0x54df('0x26')]),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}[_0x54df('0x4e')](){const _0x1b92ab=this['balloonPanelView'][_0x54df('0x36')][_0x54df('0xa')],_0x592837=_0x1b92ab&&this[_0x54df('0x27')][_0x54df('0x4f')](_0x1b92ab);if(!_0x592837||!this[_0x54df('0xd')][_0x54df('0x9')](_0x592837))return;const _0x1a7e0b=this['_annotationToNarrowView'][_0x54df('0x37')](_0x592837)[_0x54df('0x40')],_0x2760cc=function(){const _0x5c0bce=_0x2ce8de[_0x54df('0x46')];return[_0x5c0bce['southArrowNorthEast'],_0x5c0bce['northArrowSouthEast'],_0x5c0bce[_0x54df('0x47')],_0x5c0bce['northArrowSouth'],_0x5c0bce[_0x54df('0x1e')],_0x5c0bce[_0x54df('0x53')]];}();this['balloonPanelView'][_0x54df('0x2c')]({'target':_0x1a7e0b,'positions':_0x2760cc});}[_0x54df('0x1c')](){const _0x5d643b=this[_0x54df('0x38')],_0x400a82=_0x5d643b[_0x54df('0x36')]['first'];_0x400a82&&(this[_0x54df('0x3c')](_0x400a82),_0x5d643b['unpin'](),_0x5d643b[_0x54df('0x36')][_0x54df('0x21')]());}['_attachListeners'](_0x3dc6c4){this['listenTo'](_0x3dc6c4,_0x54df('0x4d'),()=>this[_0x54df('0x4e')]()),this[_0x54df('0x59')](_0x3dc6c4,_0x54df('0x44'),(_0x5ea379,_0x76bddd)=>{this[_0x54df('0x2d')][_0x54df('0x3b')](_0x3dc6c4),this[_0x54df('0x1c')](),_0x76bddd();});}[_0x54df('0x3c')](_0x2da06e){this[_0x54df('0x3d')](_0x2da06e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x394a=['define','isAnimationDisabled','_sidebarItemViewToAnnotation','_getItemBefore','_alignAfterItem','config','pluginName','content','minHeight','_getTargetTop','nodeType','destroy','_recalculate','_createSidebarView','_activeAnnotation','class','get','delete','_setItemTop','remove','container','push','init','_alignForBottomChange','getSidebarItemView','sidebar-attachtocontainer-missing-container','_annotations','updateHeight','_spaceBetweenItems','render','element','_lastItem','locale','max','refresh','bind','change:_lastItem','bottom','isActive','height','top','context','_getItemAfter','list','getIndex','add','_destroySidebarItemView','_annotationToSidebarItemView','_updateLastItem','view','rearrange','listenTo','target','_targetTop','sidebar.preventScrollOutOfView','_alignToTargetRect','_alignBeforeItem','appendChild','last','object','_getMaxAvailableTop','length','stopListening','targetRect','_recalculateBuffer','set','setContainer','sidebar-setcontainer-invalid-element','change:bottom','_alignForTopChange'];(function(_0x180291,_0x394a48){const _0x2f105e=function(_0x1aa2d6){while(--_0x1aa2d6){_0x180291['push'](_0x180291['shift']());}};_0x2f105e(++_0x394a48);}(_0x394a,0xc8));const _0x2f10=function(_0x180291,_0x394a48){_0x180291=_0x180291-0x0;let _0x2f105e=_0x394a[_0x180291];return _0x2f105e;};import{ContextPlugin as _0xeec19d}from'ckeditor5/src/core';import{Rect as _0x28fc9c,CKEditorError as _0x598cdd}from'ckeditor5/src/utils';import _0x1bcdc9 from'./view/sidebarview';import _0x450164 from'./view/sidebaritemview';export default class z extends _0xeec19d{static get[_0x2f10('0x10')](){return'Sidebar';}constructor(_0x4e701e){super(_0x4e701e),this[_0x2f10('0x5')](_0x2f10('0x29'),void 0x0),this[_0x2f10('0x3b')]=this[_0x2f10('0x17')](),this[_0x2f10('0x5')](_0x2f10('0x1e'),null),this[_0x2f10('0x26')]=0x19,this[_0x2f10('0xc')]=new Map(),this[_0x2f10('0x39')]=new Map(),this[_0x2f10('0x33')][_0x2f10('0xf')][_0x2f10('0xa')](_0x2f10('0x40'),!0x1),this[_0x2f10('0x24')]=null,this[_0x2f10('0x18')]=null,this[_0x2f10('0x4')]=[];}[_0x2f10('0x20')](){const _0xd07949=this[_0x2f10('0x33')][_0x2f10('0xf')]['get']('sidebar.container');_0xd07949&&this[_0x2f10('0x6')](_0xd07949);}[_0x2f10('0x6')](_0x38bc48){if(!y(_0x38bc48))throw new _0x598cdd(_0x2f10('0x7'));this[_0x2f10('0x1e')]=_0x38bc48;}['_attachToContainer']({viewClass:_0x558b84='',spaceBetweenItems:_0x3bd306=0x19}={}){if(!y(this[_0x2f10('0x1e')]))throw new _0x598cdd(_0x2f10('0x23'),this);this[_0x2f10('0x1e')][_0x2f10('0x43')](this[_0x2f10('0x3b')]['element']),this[_0x2f10('0x3b')][_0x2f10('0x19')]=_0x558b84,this[_0x2f10('0x26')]=_0x3bd306;}[_0x2f10('0x3c')]({removedAnnotation:_0x482c93,previousAnnotation:_0x4bd6da,nextAnnotation:_0x2b2855}){const _0x333ed2=this[_0x2f10('0x22')](_0x482c93);this[_0x2f10('0x3b')][_0x2f10('0x35')][_0x2f10('0x1d')](_0x333ed2),this['_destroySidebarItemView'](_0x482c93),_0x4bd6da&&this[_0x2f10('0x41')](this[_0x2f10('0x22')](_0x4bd6da)),_0x2b2855&&this['_alignToTargetRect'](this[_0x2f10('0x22')](_0x2b2855)),this[_0x2f10('0x3a')]();}[_0x2f10('0x2c')]({blurredAnnotation:_0x435e6a,activatedAnnotation:_0x508180,disableAnimationOnActivatedAnnotation:_0x1c47bd}){if(this[_0x2f10('0x18')]=_0x508180,_0x435e6a){_0x435e6a[_0x2f10('0x30')]=!0x1;const _0xeac204=this[_0x2f10('0x22')](_0x435e6a);_0xeac204&&_0x1c47bd&&(_0xeac204[_0x2f10('0xb')]=!0x1);}if(_0x508180){const _0x489a61=this[_0x2f10('0x22')](_0x508180);_0x489a61&&(_0x508180[_0x2f10('0x30')]=!0x0,_0x1c47bd&&(_0x489a61[_0x2f10('0xb')]=!0x0,_0x489a61['top']+=0x1),this['_alignToTargetRect'](_0x489a61));}}['_detachFromContainer'](_0x32655c){if(this[_0x2f10('0x3b')][_0x2f10('0x28')][_0x2f10('0x1d')](),_0x32655c)for(const _0x28750c of _0x32655c)this[_0x2f10('0x38')](_0x28750c);this[_0x2f10('0x3b')][_0x2f10('0x35')]['clear'](),this['view'][_0x2f10('0x19')]='',this[_0x2f10('0x29')]=null;}['addAnnotation'](_0x494fbc,_0x187850){_0x187850||(_0x187850=_0x494fbc[_0x2f10('0x3b')]);const _0x5259ff=new _0x450164(this[_0x2f10('0x33')][_0x2f10('0x2a')]);this['_sidebarItemViewToAnnotation'][_0x2f10('0x5')](_0x5259ff,_0x494fbc),this[_0x2f10('0x39')][_0x2f10('0x5')](_0x494fbc,_0x5259ff),_0x5259ff[_0x2f10('0x11')][_0x2f10('0x37')](_0x187850),this[_0x2f10('0x3d')](_0x494fbc['view'],'change:targetRect',(_0x217347,_0x2f0200,_0x179274)=>{const _0x2de85b=this[_0x2f10('0x13')](_0x494fbc,_0x179274);_0x5259ff[_0x2f10('0x3f')]!=_0x2de85b&&(_0x5259ff[_0x2f10('0x3f')]=_0x2de85b,this[_0x2f10('0x1c')](_0x5259ff,_0x2de85b));}),this[_0x2f10('0x3d')](_0x5259ff,'change:top',()=>{this[_0x2f10('0x16')](_0x5259ff,'top');}),this[_0x2f10('0x3d')](_0x5259ff,_0x2f10('0x8'),()=>{this['_recalculate'](_0x5259ff,_0x2f10('0x2f'));}),this['_alignToTargetRect'](_0x5259ff);const _0x18c7df=this['_getItemBefore'](_0x5259ff);if(_0x18c7df)this[_0x2f10('0xe')](_0x18c7df,_0x5259ff)||this[_0x2f10('0x41')](_0x5259ff);else this[_0x2f10('0x41')](_0x5259ff);return this[_0x2f10('0x3a')](),this['view'][_0x2f10('0x35')][_0x2f10('0x37')](_0x5259ff),_0x5259ff;}[_0x2f10('0x9')](_0x47ac5c){if(!_0x47ac5c[_0x2f10('0x11')][_0x2f10('0x1')])return;const _0x5121ae=this[_0x2f10('0xd')](_0x47ac5c);if(!_0x5121ae)return;const _0x35baa5=this['_sidebarItemViewToAnnotation'][_0x2f10('0x1a')](_0x5121ae),_0x3aa328=this['_activeAnnotation'];_0x3aa328&&_0x3aa328===_0x35baa5?this[_0x2f10('0xe')](_0x5121ae,_0x47ac5c):this[_0x2f10('0x42')](_0x47ac5c,_0x5121ae);}[_0x2f10('0x21')](_0xc0636){if(!_0xc0636[_0x2f10('0x11')]['length'])return;const _0xaed289=this[_0x2f10('0x34')](_0xc0636);if(!_0xaed289)return;const _0x3357e9=this['_sidebarItemViewToAnnotation'][_0x2f10('0x1a')](_0xaed289),_0x1e4431=this['context'][_0x2f10('0xf')][_0x2f10('0x1a')](_0x2f10('0x40')),_0x5c6597=this[_0x2f10('0x18')];_0x5c6597&&_0x5c6597===_0x3357e9&&_0x1e4431?(this[_0x2f10('0x42')](_0xaed289,_0xc0636),this[_0x2f10('0xe')](_0xc0636,_0xaed289)):_0x5c6597&&_0x5c6597===_0x3357e9?this['_alignBeforeItem'](_0xaed289,_0xc0636):this[_0x2f10('0xe')](_0xc0636,_0xaed289);}['_recalculate'](_0x47d872,_0x3e03f4){0x0===this[_0x2f10('0x4')][_0x2f10('0x1')]&&setTimeout(()=>{for(const {sidebarItemView:_0x255586,changedProp:_0x373fa3}of this['_recalculateBuffer'])_0x2f10('0x32')===_0x373fa3?this[_0x2f10('0x9')](_0x255586):this[_0x2f10('0x21')](_0x255586);this[_0x2f10('0x4')]=[];},0xa),this[_0x2f10('0x4')][_0x2f10('0x1f')]({'sidebarItemView':_0x47d872,'changedProp':_0x3e03f4});}['getSidebarItemView'](_0x594e4a){return this['_annotationToSidebarItemView'][_0x2f10('0x1a')](_0x594e4a);}[_0x2f10('0x15')](){this[_0x2f10('0x2')](),this['view']['destroy']();}[_0x2f10('0x38')](_0x1af1ec){const _0x51d99e=this[_0x2f10('0x22')](_0x1af1ec);this[_0x2f10('0x2')](_0x51d99e),this[_0x2f10('0x2')](_0x1af1ec[_0x2f10('0x3b')]),_0x51d99e['destroy'](),this[_0x2f10('0x39')][_0x2f10('0x1b')](_0x1af1ec),this[_0x2f10('0xc')][_0x2f10('0x1b')](_0x51d99e);}[_0x2f10('0x17')](){const _0x544632=new _0x1bcdc9(this['context'][_0x2f10('0x2a')]);return _0x544632[_0x2f10('0x27')](),this['on'](_0x2f10('0x2e'),(_0x4d4a2a,_0x5b962f,_0x29ccb5,_0x50eaa8)=>{_0x50eaa8&&_0x544632['unbind'](_0x2f10('0x12')),_0x29ccb5?_0x544632[_0x2f10('0x2d')](_0x2f10('0x12'))['to'](_0x29ccb5,_0x2f10('0x2f')):_0x544632['minHeight']=null;}),_0x544632;}[_0x2f10('0x3a')](){var _0x252b8b;this[_0x2f10('0x29')]=(null===(_0x252b8b=this[_0x2f10('0x24')])||void 0x0===_0x252b8b?void 0x0:_0x252b8b['last'])?this['getSidebarItemView'](this[_0x2f10('0x24')][_0x2f10('0x44')]):null;}[_0x2f10('0xd')](_0x51ff4d){var _0x55010b;const _0x4d3bea=this[_0x2f10('0xc')][_0x2f10('0x1a')](_0x51ff4d),_0x228ab7=_0x4d3bea&&(null===(_0x55010b=this[_0x2f10('0x24')])||void 0x0===_0x55010b?void 0x0:_0x55010b[_0x2f10('0x1a')](this['_annotations'][_0x2f10('0x36')](_0x4d3bea)-0x1));return _0x228ab7&&this[_0x2f10('0x22')](_0x228ab7)||null;}[_0x2f10('0x34')](_0x473001){var _0x3efb58;const _0xe3f1b4=this[_0x2f10('0xc')][_0x2f10('0x1a')](_0x473001),_0x435f3e=_0xe3f1b4&&(null===(_0x3efb58=this[_0x2f10('0x24')])||void 0x0===_0x3efb58?void 0x0:_0x3efb58[_0x2f10('0x1a')](this['_annotations'][_0x2f10('0x36')](_0xe3f1b4)+0x1));return _0x435f3e&&this['getSidebarItemView'](_0x435f3e)||null;}[_0x2f10('0x42')](_0x12a946,_0x4ef6ed){_0x12a946[_0x2f10('0x25')]();const _0x4e721a=H(_0x4ef6ed[_0x2f10('0x2f')]+this[_0x2f10('0x26')],_0x12a946[_0x2f10('0x32')]);return!!_0x4e721a&&(this[_0x2f10('0x1c')](_0x4ef6ed,_0x4ef6ed[_0x2f10('0x32')]-_0x4e721a),!0x0);}[_0x2f10('0xe')](_0x102d39,_0x5d213e){_0x102d39[_0x2f10('0x25')]();const _0x2c25d2=H(_0x102d39[_0x2f10('0x2f')]+this['_spaceBetweenItems'],_0x5d213e[_0x2f10('0x32')]);return!!_0x2c25d2&&(this[_0x2f10('0x1c')](_0x5d213e,_0x5d213e[_0x2f10('0x32')]+_0x2c25d2,!0x1),!0x0);}[_0x2f10('0x41')](_0x56f409){const _0x3a456f=this[_0x2f10('0xc')]['get'](_0x56f409);if(!_0x3a456f||!_0x3a456f[_0x2f10('0x3e')]||!_0x3a456f['targetRect'])return;const _0x131cc5=this[_0x2f10('0x13')](_0x3a456f,_0x3a456f[_0x2f10('0x3')]);this[_0x2f10('0x1c')](_0x56f409,_0x131cc5);}['_getTargetTop'](_0x3ee2d6,_0x548e04){if(null===_0x548e04)return 0x0;if(_0x3ee2d6[_0x2f10('0x3e')]instanceof _0x28fc9c)return _0x548e04[_0x2f10('0x32')];{const _0x2ea96e=new _0x28fc9c(this[_0x2f10('0x3b')][_0x2f10('0x28')])[_0x2f10('0x32')];return _0x548e04['top']-_0x2ea96e;}}[_0x2f10('0x1c')](_0x21b4d7,_0x246e7e,_0x2a12c7=this[_0x2f10('0x33')][_0x2f10('0xf')][_0x2f10('0x1a')](_0x2f10('0x40'))){_0x2a12c7&&(_0x246e7e=Math[_0x2f10('0x2b')](_0x246e7e,this[_0x2f10('0x0')](_0x21b4d7))),_0x21b4d7[_0x2f10('0x32')]=_0x246e7e;}[_0x2f10('0x0')](_0x3f227b){let _0x132d29=this[_0x2f10('0xd')](_0x3f227b),_0x1a18b9=0x0;for(;_0x132d29;)_0x132d29[_0x2f10('0x25')](),_0x1a18b9+=this[_0x2f10('0x26')]+_0x132d29[_0x2f10('0x31')],_0x132d29=this['_getItemBefore'](_0x132d29);return _0x1a18b9;}}function H(_0x357747,_0xf1ac1d){return Math[_0x2f10('0x2b')](_0x357747-_0xf1ac1d,0x0);}function y(_0x2fde95){return null!==_0x2fde95&&_0x2f10('0x45')==typeof _0x2fde95&&0x1===_0x2fde95[_0x2f10('0x14')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb43d=['bind','span','bindTemplate','add','ck-annotation-counter__badge--edit-mode','...','toString','isDirty','icon','set','annotationType','counterView','number','_badge'];(function(_0xca2191,_0xb43d75){const _0xb5e356=function(_0x56e59a){while(--_0x56e59a){_0xca2191['push'](_0xca2191['shift']());}};_0xb5e356(++_0xb43d75);}(_0xb43d,0x99));const _0xb5e3=function(_0xca2191,_0xb43d75){_0xca2191=_0xca2191-0x0;let _0xb5e356=_0xb43d[_0xca2191];return _0xb5e356;};import{ButtonView as _0x13663b,View as _0x4c65b6}from'ckeditor5/src/ui';import _0x5ae9d4 from'../../../theme/icons/add-comment.svg';export default class D extends _0x13663b{constructor(_0x51bf32){super(_0x51bf32);const _0x19c560=this[_0xb5e3('0x3')];this[_0xb5e3('0xa')]('isDirty',!0x1),this['set'](_0xb5e3('0xd'),0x0),this[_0xb5e3('0x1')](_0xb5e3('0x0'))['to'](this,_0xb5e3('0x8'),this,_0xb5e3('0xd'),(_0xe9beb,_0x57d1f7)=>_0xe9beb?_0xb5e3('0x6'):_0x57d1f7[_0xb5e3('0x7')]()),this[_0xb5e3('0xa')]('annotationType',''),this[_0xb5e3('0x9')]=_0x5ae9d4,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this[_0xb5e3('0xc')]=new _0x4c65b6(),this['counterView']['setTemplate']({'tag':_0xb5e3('0x2'),'attributes':{'class':['ck-annotation-counter__badge',_0x19c560['to'](_0xb5e3('0xb'),_0x34d928=>'ck-annotation-counter__badge--'+_0x34d928),_0x19c560['if']('isDirty',_0xb5e3('0x5'))]},'children':[{'text':_0x19c560['to'](_0xb5e3('0x0'))}]}),this['children'][_0xb5e3('0x4')](this['counterView']);}}
|