@ckeditor/ckeditor5-comments 0.0.0-nightly-20240128.0 → 0.0.0-nightly-20240130.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-20240130.0",
|
|
4
4
|
"description": "Collaborative comments feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"CHANGELOG.md"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"ckeditor5": "0.0.0-nightly-
|
|
48
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
47
|
+
"ckeditor5": "0.0.0-nightly-20240130.0",
|
|
48
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240130.0",
|
|
49
49
|
"lodash-es": "4.17.21"
|
|
50
50
|
},
|
|
51
51
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59b3=['element','target','offsetParent','getClientRects','render','stopListening','isVisible','focusTracker','mainView','isActive','isArray','_assertCorrectTarget','length','view','annotation-invalid-target','nodeType','remove','focusableElements','_getNormalizedTarget','_type','clear','add','refreshVisibility','_target','targetRect'];(function(_0x4e79c1,_0x59b3b0){const _0x5f334f=function(_0x3dc67a){while(--_0x3dc67a){_0x4e79c1['push'](_0x4e79c1['shift']());}};_0x5f334f(++_0x59b3b0);}(_0x59b3,0x1ad));const _0x5f33=function(_0x4e79c1,_0x59b3b0){_0x4e79c1=_0x4e79c1-0x0;let _0x5f334f=_0x59b3[_0x4e79c1];return _0x5f334f;};import{CKEditorError as _0x7d8f42,Rect as _0x118aa7,Collection as _0x4c59ca,ObservableMixin as _0x38755c}from'ckeditor5/src/utils.js';export default class d extends _0x38755c(){constructor({view:_0x1eaf77,target:_0x4ac30e,type:_0x330a84,isVisible:_0x325f5d=!0x0}){super(),this['view']=_0x1eaf77,this[_0x5f33('0x9')]['element']||this[_0x5f33('0x9')][_0x5f33('0x0')](),this[_0x5f33('0xf')]=_0x330a84,this[_0x5f33('0x13')]=_0x4ac30e,d[_0x5f33('0x7')](this[_0x5f33('0xe')]()),this[_0x5f33('0xd')]=new _0x4c59ca([this[_0x5f33('0x9')][_0x5f33('0x15')]],{'idProperty':'_id'}),this[_0x5f33('0xd')]['on'](_0x5f33('0x11'),(_0x1e338a,_0xa6f2cc)=>{this[_0x5f33('0x9')]['focusTracker'][_0x5f33('0x11')](_0xa6f2cc);}),this[_0x5f33('0xd')]['on'](_0x5f33('0xc'),(_0x35b1a3,_0xaccf10)=>{this[_0x5f33('0x9')][_0x5f33('0x3')][_0x5f33('0xc')](_0xaccf10);}),this['set']('isVisible',_0x325f5d);}get['type'](){return'function'==typeof this['_type']?this['_type']():this[_0x5f33('0xf')];}get['innerView'](){return this[_0x5f33('0x9')][_0x5f33('0x4')];}get[_0x5f33('0x16')](){const _0x1673d6=this['_getNormalizedTarget']();return d['_assertCorrectTarget'](_0x1673d6),_0x1673d6;}get[_0x5f33('0x14')](){const _0x46f821=this[_0x5f33('0x16')];if(null===_0x46f821)return null;if(_0x46f821 instanceof _0x118aa7)return _0x46f821;const _0x25cabe=_0x46f821['filter'](_0x538d3a=>function(_0x53a743){const _0x2ddbd5=_0x53a743[_0x5f33('0x17')];if(_0x2ddbd5)return!0x0;const _0x145d0c=_0x53a743[_0x5f33('0x18')]()['item'](0x0);return!!_0x145d0c;}(_0x538d3a));return 0x0===_0x25cabe[_0x5f33('0x8')]?null:new _0x118aa7(_0x25cabe[0x0][_0x5f33('0x18')]()['item'](0x0));}get[_0x5f33('0x5')](){return this[_0x5f33('0x9')][_0x5f33('0x5')];}set['isActive'](_0x4ecd89){this[_0x5f33('0x9')][_0x5f33('0x5')]=_0x4ecd89,this[_0x5f33('0x9')][_0x5f33('0x4')][_0x5f33('0x5')]=_0x4ecd89;}['updateTargetRect'](){this[_0x5f33('0x9')][_0x5f33('0x14')]=this[_0x5f33('0x14')];}['destroy'](){this['focusableElements'][_0x5f33('0x1')](),this[_0x5f33('0xd')][_0x5f33('0x10')](),this[_0x5f33('0x1')]();}[_0x5f33('0x12')](){this[_0x5f33('0x2')]=!!this[_0x5f33('0x14')];}static['_assertCorrectTarget'](_0x1fd0d1){if(!(null===_0x1fd0d1||_0x1fd0d1 instanceof _0x118aa7||Array[_0x5f33('0x6')](_0x1fd0d1)&&_0x1fd0d1['every'](_0x3b4696=>y(_0x3b4696))))throw new _0x7d8f42(_0x5f33('0xa'),null,{'target':_0x1fd0d1});}[_0x5f33('0xe')](){const _0x112f08='function'==typeof this[_0x5f33('0x13')]?this[_0x5f33('0x13')]():this[_0x5f33('0x13')];return y(_0x112f08)?[_0x112f08]:_0x112f08;}}function y(_0x7addb9){return null!==_0x7addb9&&'object'==typeof _0x7addb9&&_0x5f33('0xb')in _0x7addb9&&0x1===_0x7addb9[_0x5f33('0xb')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e8f=['from','updateTargetRect','remove','set','change:isFocused','length','isFocused','_innerViewToAnnotation','annotationcollection-duplicated-item','has','focusableElements','focusTracker','getByInnerView','annotationcollection-not-existing-item','get','top','clear','_sort','listenTo','_viewToAnnotation','_focusTracker','targetRect','destroy','getIndex','stopListening','left','refreshPositioning','innerView','fire','blur','add','focus','view'];(function(_0x5ce280,_0x2e8fc3){const _0x1f3fee=function(_0xf1aec0){while(--_0xf1aec0){_0x5ce280['push'](_0x5ce280['shift']());}};_0x1f3fee(++_0x2e8fc3);}(_0x2e8f,0x1ea));const _0x1f3f=function(_0x5ce280,_0x2e8fc3){_0x5ce280=_0x5ce280-0x0;let _0x1f3fee=_0x2e8f[_0x5ce280];return _0x1f3fee;};import{CKEditorError as _0x44ac0d,Collection as _0x1b3dc7,FocusTracker as _0x4bde7f}from'ckeditor5/src/utils.js';export default class x extends _0x1b3dc7{constructor(_0x3f8ca8=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x1f3f('0x18')]=new Map(),this[_0x1f3f('0x19')]=new _0x4bde7f(),this[_0x1f3f('0x19')]['on'](_0x1f3f('0x9'),(_0x24bf6e,_0xb4a1de,_0x3d3ad5)=>{_0x3d3ad5||this[_0x1f3f('0x0')](_0x1f3f('0x1'));});for(const _0x3aed80 of _0x3f8ca8)this[_0x1f3f('0x2')](_0x3aed80);}get['isFocused'](){return this['_focusTracker'][_0x1f3f('0xb')];}[_0x1f3f('0x2')](_0xda5b66){if(this[_0x1f3f('0xe')](_0xda5b66))throw new _0x44ac0d(_0x1f3f('0xd'),null);this['_innerViewToAnnotation']['set'](_0xda5b66[_0x1f3f('0x20')],_0xda5b66),this[_0x1f3f('0x18')][_0x1f3f('0x8')](_0xda5b66['view'],_0xda5b66);for(const _0xa96f8d of _0xda5b66['focusableElements'])this['_focusTracker'][_0x1f3f('0x2')](_0xa96f8d);this[_0x1f3f('0x17')](_0xda5b66[_0x1f3f('0xf')],_0x1f3f('0x2'),(_0x2a200c,_0x2e298d)=>{this[_0x1f3f('0x19')][_0x1f3f('0x2')](_0x2e298d);}),this[_0x1f3f('0x17')](_0xda5b66[_0x1f3f('0xf')],'remove',(_0x5a3755,_0x1fd90b)=>{this[_0x1f3f('0x19')]['remove'](_0x1fd90b);}),this[_0x1f3f('0x17')](_0xda5b66[_0x1f3f('0x4')][_0x1f3f('0x10')],_0x1f3f('0x9'),(_0x2bdb8a,_0x202c76,_0x29a1bb)=>{_0x29a1bb&&this[_0x1f3f('0x0')](_0x1f3f('0x3'),_0xda5b66);}),_0xda5b66[_0x1f3f('0x6')]();const _0x153e79=this['_getOrderInContent'](_0xda5b66[_0x1f3f('0x4')]['targetRect']);return super[_0x1f3f('0x2')](_0xda5b66,_0x153e79);}[_0x1f3f('0x7')](_0x424895){if(!this['has'](_0x424895))throw new _0x44ac0d(_0x1f3f('0x12'),null);this[_0x1f3f('0x1d')](_0x424895[_0x1f3f('0x4')]['focusTracker']),this[_0x1f3f('0x1d')](_0x424895[_0x1f3f('0xf')]);for(const _0x53cc90 of _0x424895['focusableElements'])this['_focusTracker']['remove'](_0x53cc90);return this['_viewToAnnotation']['delete'](_0x424895[_0x1f3f('0x4')]),this['_innerViewToAnnotation']['delete'](_0x424895[_0x1f3f('0x20')]),super['remove'](_0x424895);}[_0x1f3f('0x11')](_0x210473){return this[_0x1f3f('0xc')][_0x1f3f('0x13')](_0x210473);}['getByView'](_0x3633a){return this[_0x1f3f('0x18')]['get'](_0x3633a);}[_0x1f3f('0x1b')](){super[_0x1f3f('0x15')](),this['stopListening'](),this[_0x1f3f('0xc')][_0x1f3f('0x15')](),this[_0x1f3f('0x18')][_0x1f3f('0x15')](),this[_0x1f3f('0x19')][_0x1f3f('0x1b')]();}[_0x1f3f('0x1f')](){for(const _0x209eae of this)_0x209eae[_0x1f3f('0x6')]();this[_0x1f3f('0x16')]();}[_0x1f3f('0x16')](){const _0x36b920=Array[_0x1f3f('0x5')](this)['sort']((_0x23e733,_0x1b433c)=>v(_0x23e733[_0x1f3f('0x4')]['targetRect'],_0x1b433c[_0x1f3f('0x4')]['targetRect']));for(let _0x223280=_0x36b920['length']-0x1;_0x223280>0x0;_0x223280--){const _0x2b7749=_0x36b920[_0x223280];_0x223280!==this[_0x1f3f('0x1c')](_0x2b7749)&&(this[_0x1f3f('0x7')](_0x2b7749),this['add'](_0x2b7749));}}['_getOrderInContent'](_0x103f61){let _0xc74f01=0x0;if(!_0x103f61)return this[_0x1f3f('0xa')];for(const _0xc1c048 of this){const _0x244696=_0xc1c048[_0x1f3f('0x4')][_0x1f3f('0x1a')];if(_0x244696){if(v(_0x103f61,_0x244696)<0x0)return _0xc74f01;_0xc74f01++;}}return _0xc74f01;}}export function bindAnnotationCollections({source:_0xc0b4a9,target:_0x249737,filter:_0x59c537}){for(const _0x5ed061 of _0xc0b4a9)_0x59c537(_0x5ed061)&&_0x249737[_0x1f3f('0x2')](_0x5ed061);_0x249737['listenTo'](_0xc0b4a9,_0x1f3f('0x2'),(_0x1384ab,_0x1147de)=>{_0x59c537(_0x1147de)&&_0x249737['add'](_0x1147de);}),_0x249737[_0x1f3f('0x17')](_0xc0b4a9,_0x1f3f('0x7'),(_0x3ea9d9,_0x4d8636)=>{_0x249737[_0x1f3f('0xe')](_0x4d8636)&&_0x249737[_0x1f3f('0x7')](_0x4d8636);});}function v(_0x1070ff,_0x4a69fb){if(null===_0x1070ff&&null===_0x4a69fb)return 0x0;if(null===_0x1070ff)return-0x1;if(null===_0x4a69fb)return 0x1;const _0x317cec=_0x1070ff[_0x1f3f('0x14')]-_0x4a69fb['top'];return 0x0==_0x317cec?_0x1070ff['left']-_0x4a69fb[_0x1f3f('0x1e')]:_0x317cec;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f4c=['_activateAnnotation','focusTracker','stopListening','collection','createAnnotation','deactivateAll','has','destroy','_addActiveAnnotation','change:isVisible','listenTo','delete','view','element','add','_visibleAnnotations','activate','refreshPositioning','_bindAnnotationsToVisibleAnnotations','isVisible','getByInnerView','fire','pluginName','activeAnnotations','remove'];(function(_0x169a8d,_0x1f4ce7){const _0xe572c5=function(_0x55dbbb){while(--_0x55dbbb){_0x169a8d['push'](_0x169a8d['shift']());}};_0xe572c5(++_0x1f4ce7);}(_0x1f4c,0xc3));const _0xe572=function(_0x169a8d,_0x1f4ce7){_0x169a8d=_0x169a8d-0x0;let _0xe572c5=_0x1f4c[_0x169a8d];return _0xe572c5;};import{ContextPlugin as _0x9ce39}from'ckeditor5/src/core.js';import _0x214a31 from'./annotation.js';import _0x58887b from'./annotationcollection.js';import _0x23ec23 from'./view/annotationview.js';export default class b extends _0x9ce39{static get[_0xe572('0x2')](){return'Annotations';}constructor(_0x4696c0){super(_0x4696c0),this[_0xe572('0x8')]=new _0x58887b(),this['_visibleAnnotations']=new _0x58887b(),this['set'](_0xe572('0x3'),new Set()),this[_0xe572('0x17')]();}[_0xe572('0x13')](_0x524de4){this[_0xe572('0x8')]['add'](_0x524de4);}[_0xe572('0x4')](_0x3d6ee2){this['collection']['remove'](_0x3d6ee2),_0x3d6ee2[_0xe572('0xc')]();}['refreshVisibility'](){for(const _0x50b258 of this[_0xe572('0x8')])_0x50b258['refreshVisibility']();}[_0xe572('0x16')](){this[_0xe572('0x14')]['refreshPositioning']();}['getByInnerView'](_0x1117ac){return this[_0xe572('0x8')][_0xe572('0x0')](_0x1117ac);}[_0xe572('0xa')](){this[_0xe572('0x1')]('_deactivateAllAnnotations');}[_0xe572('0xc')](){for(const _0x4c8e67 of this[_0xe572('0x8')])_0x4c8e67['destroy']();this['_visibleAnnotations'][_0xe572('0xc')](),this['collection']['destroy'](),super[_0xe572('0xc')]();}[_0xe572('0x15')](_0x303976){this['fire'](_0xe572('0x5'),_0x303976);}[_0xe572('0x9')](_0x45427f){return new _0x214a31(_0x45427f);}['createAnnotationView'](_0x496835,_0x350115){return new _0x23ec23(_0x496835,_0x350115);}[_0xe572('0xd')](_0x4cb75d){const _0xc52285=new Set(this['activeAnnotations']);_0xc52285[_0xe572('0x13')](_0x4cb75d),this[_0xe572('0x3')]=_0xc52285;}['_removeActiveAnnotation'](_0x3a7465){const _0x451783=new Set(this[_0xe572('0x3')]);_0x451783[_0xe572('0x10')](_0x3a7465),this['activeAnnotations']=_0x451783;}[_0xe572('0x17')](){const _0x23a7a9=this['collection'],_0x346842=this[_0xe572('0x14')];function _0x4ac575(_0x31ea4a){const _0x35379f=_0x31ea4a['source'];_0x35379f[_0xe572('0x18')]&&!_0x346842[_0xe572('0xb')](_0x35379f)?_0x346842[_0xe572('0x13')](_0x35379f):!_0x35379f['isVisible']&&_0x346842[_0xe572('0xb')](_0x35379f)&&_0x346842['remove'](_0x35379f),_0x35379f[_0xe572('0x11')][_0xe572('0x6')]['remove'](_0x35379f['view']['element']),_0x35379f[_0xe572('0x11')]['focusTracker']['add'](_0x35379f[_0xe572('0x11')][_0xe572('0x12')]);}this[_0xe572('0xf')](_0x23a7a9,'add',(_0x3f6775,_0x9d8a77)=>{_0x9d8a77[_0xe572('0x18')]&&_0x346842[_0xe572('0x13')](_0x9d8a77),this[_0xe572('0xf')](_0x9d8a77,_0xe572('0xe'),_0x4ac575);}),this[_0xe572('0xf')](_0x23a7a9,_0xe572('0x4'),(_0x4338b3,_0x33d3c0)=>{_0x346842[_0xe572('0xb')](_0x33d3c0)&&_0x346842[_0xe572('0x4')](_0x33d3c0),this[_0xe572('0x7')](_0x33d3c0,_0xe572('0xe'),_0x4ac575);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ea7=['switchTo','annotationsuis-register-invalid-interface','_visibleAnnotations','annotationsuis-missing-ui','context','stopListening','change:activeAnnotation','pluginName','activate','isActive','refilterAnnotations','activeUIs','function','_setSelectedAnnotations','deactivateAll','annotationsuis-annotation-mismatch','listenTo','has','register','size','filter','remove','push','length','from','init','_uisData','_assertAnnotationDoesNotBelongToMultipleUIs','set','add','get','plugins','deactivate','destroy','find','requires','attach','setActiveAnnotation','detach','_uis','AnnotationsUIs','collection','activeAnnotations'];(function(_0x49085d,_0x5ea72b){const _0x155b35=function(_0x4c44f3){while(--_0x4c44f3){_0x49085d['push'](_0x49085d['shift']());}};_0x155b35(++_0x5ea72b);}(_0x5ea7,0x197));const _0x155b=function(_0x49085d,_0x5ea72b){_0x49085d=_0x49085d-0x0;let _0x155b35=_0x5ea7[_0x49085d];return _0x155b35;};import{ContextPlugin as _0x406732}from'ckeditor5/src/core.js';import{CKEditorError as _0x5c710b}from'ckeditor5/src/utils.js';import _0x1ecf18,{bindAnnotationCollections as _0x275f34}from'./annotationcollection.js';import _0x50e1b0 from'./annotations.js';export default class j extends _0x406732{static get[_0x155b('0xf')](){return[_0x50e1b0];}static get[_0x155b('0x1e')](){return _0x155b('0x14');}constructor(_0x23557a){super(_0x23557a),this[_0x155b('0x22')]=new Set(),this[_0x155b('0x13')]=new Map(),this[_0x155b('0x6')]=new Map();}[_0x155b('0x5')](){const _0x949c7c=this[_0x155b('0x1b')][_0x155b('0xb')]['get'](_0x50e1b0);this[_0x155b('0x27')](_0x949c7c,'_activateAnnotation',(_0x5209e4,_0x5b6119)=>{for(const _0x507537 of this[_0x155b('0x22')]){const _0x3b34a4=this[_0x155b('0x13')][_0x155b('0xa')](_0x507537);(0x0,this[_0x155b('0x6')][_0x155b('0xa')](_0x507537)[_0x155b('0x0')])(_0x5b6119)&&_0x3b34a4[_0x155b('0x11')](_0x5b6119);}}),this[_0x155b('0x27')](_0x949c7c,'_deactivateAllAnnotations',()=>{for(const _0x53e23b of this['activeUIs']){this[_0x155b('0x13')]['get'](_0x53e23b)[_0x155b('0x11')](null);}}),this[_0x155b('0x27')](_0x949c7c[_0x155b('0x19')],_0x155b('0x9'),(_0x27cf47,_0x425eaf)=>{this[_0x155b('0x7')](_0x425eaf);});}['hasActive'](){return this[_0x155b('0x22')][_0x155b('0x2a')]>0x0;}[_0x155b('0x20')](_0x5bb6c6){return this['activeUIs'][_0x155b('0x28')](_0x5bb6c6);}['activate'](_0x84cc74,_0xf0977f=()=>!0x0){const _0x2b35e2=this[_0x155b('0x1b')]['plugins'][_0x155b('0xa')](_0x50e1b0);if(!this[_0x155b('0x13')][_0x155b('0x28')](_0x84cc74))throw new _0x5c710b(_0x155b('0x1a'),this,{'uiName':_0x84cc74});this[_0x155b('0x20')](_0x84cc74)&&this[_0x155b('0xc')](_0x84cc74),this['activeUIs'][_0x155b('0x9')](_0x84cc74);const _0x47e685=new _0x1ecf18(),_0x47b2f4=_0x2b35e2['_visibleAnnotations'];_0x275f34({'source':_0x47b2f4,'target':_0x47e685,'filter':_0xf0977f}),this['_uisData'][_0x155b('0x8')](_0x84cc74,{'collection':_0x47e685,'filter':_0xf0977f});const _0xc27740=this[_0x155b('0x13')][_0x155b('0xa')](_0x84cc74);_0xc27740[_0x155b('0x10')](_0x47e685),this[_0x155b('0x27')](_0xc27740,_0x155b('0x1d'),(_0x25a9ad,_0x5402c9,_0x548a83,_0x3d830d)=>{_0x3d830d&&_0x2b35e2['_removeActiveAnnotation'](_0x3d830d),_0x548a83&&_0x2b35e2['_addActiveAnnotation'](_0x548a83);});}[_0x155b('0xc')](_0x4769c1){if(this[_0x155b('0x22')]['delete'](_0x4769c1),!this[_0x155b('0x13')][_0x155b('0x28')](_0x4769c1))throw new _0x5c710b('annotationsuis-missing-ui',this,{'uiName':_0x4769c1});const _0x4dbca4=this[_0x155b('0x13')]['get'](_0x4769c1);_0x4dbca4[_0x155b('0x12')](),this[_0x155b('0x1c')](_0x4dbca4),this[_0x155b('0x6')]['get'](_0x4769c1)[_0x155b('0x15')][_0x155b('0xd')](),this[_0x155b('0x6')]['delete'](_0x4769c1);}[_0x155b('0x17')](_0x5c135f){if(!this[_0x155b('0x13')]['has'](_0x5c135f))throw new _0x5c710b(_0x155b('0x1a'),this,{'uiName':_0x5c135f});const _0x1296a=this[_0x155b('0x1b')]['plugins'][_0x155b('0xa')](_0x50e1b0),_0x5559da=Array[_0x155b('0x4')](_0x1296a[_0x155b('0x16')])[0x0]||null;this['deactivateAll'](),this[_0x155b('0x1f')](_0x5c135f);const _0x10bbbc=this['_uis'][_0x155b('0xa')](_0x5c135f);_0x10bbbc[_0x155b('0x11')](_0x5559da),_0x10bbbc['_setSelectedAnnotations']&&_0x5559da&&_0x10bbbc[_0x155b('0x24')]([_0x5559da]);}[_0x155b('0x25')](){for(const _0x309cce of this[_0x155b('0x22')])this['deactivate'](_0x309cce);}[_0x155b('0x29')](_0xd10d92,_0xb42dda){if(this[_0x155b('0x13')]['has'](_0xd10d92))throw new _0x5c710b('annotationsuis-register-already-registered');if(_0x155b('0x23')!=typeof _0xb42dda['attach']||_0x155b('0x23')!=typeof _0xb42dda[_0x155b('0x12')]||'function'!=typeof _0xb42dda['setActiveAnnotation'])throw new _0x5c710b(_0x155b('0x18'),null);this[_0x155b('0x13')][_0x155b('0x8')](_0xd10d92,_0xb42dda);}[_0x155b('0x21')](){const _0x439dc4=this[_0x155b('0x1b')][_0x155b('0xb')][_0x155b('0xa')](_0x50e1b0)['collection'],_0x16652f=new Map(),_0x35cc81=Array[_0x155b('0x4')](this[_0x155b('0x22')]);for(const _0x336b7d of this[_0x155b('0x22')]){const _0x2e1171=this['_uisData'][_0x155b('0xa')](_0x336b7d)[_0x155b('0x15')];for(const _0x3f6061 of _0x2e1171)_0x16652f['set'](_0x3f6061,_0x336b7d);}for(const _0x2437ce of _0x439dc4){const _0x341963=_0x16652f[_0x155b('0xa')](_0x2437ce);this[_0x155b('0x7')](_0x2437ce);const _0x71162e=_0x35cc81[_0x155b('0xe')](_0x36ae99=>this[_0x155b('0x6')][_0x155b('0xa')](_0x36ae99)[_0x155b('0x0')](_0x2437ce));_0x341963!==_0x71162e&&(_0x341963&&this[_0x155b('0x6')][_0x155b('0xa')](_0x341963)[_0x155b('0x15')][_0x155b('0x1')](_0x2437ce),_0x71162e&&this[_0x155b('0x6')][_0x155b('0xa')](_0x71162e)[_0x155b('0x15')][_0x155b('0x9')](_0x2437ce));}}['destroy'](){this[_0x155b('0x25')](),super['destroy']();}[_0x155b('0x7')](_0x36f487){const _0x3873d4=[];for(const _0x44d888 of this[_0x155b('0x22')]){(0x0,this[_0x155b('0x6')][_0x155b('0xa')](_0x44d888)[_0x155b('0x0')])(_0x36f487)&&_0x3873d4[_0x155b('0x2')](_0x44d888);}if(_0x3873d4[_0x155b('0x3')]>0x1)throw new _0x5c710b(_0x155b('0x26'),null,{'matchedUIs':_0x3873d4,'annotationType':_0x36f487['type']});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c8f=['cancel','pluginName','containsRange','_dataCollectors','has','annotation','view','sort','hasDomSelection','blur','addSourceCollector','add','plugins','change:range','getRanges','focusTracker','isReadOnly','push','get','editing','_editorAnnotations','remove','element','EditorAnnotations','requires','selection','collection','function','fire','listenTo','_editorAnnotationsData','model','document','editorannotations-invalid-source-callback','editor','set','change:isFocused','map','refresh','getByInnerView','refreshSelectedViews','range','from'];(function(_0x3ecc1c,_0x4c8f84){const _0x328301=function(_0x23d77f){while(--_0x23d77f){_0x3ecc1c['push'](_0x3ecc1c['shift']());}};_0x328301(++_0x4c8f84);}(_0x4c8f,0x16c));const _0x3283=function(_0x3ecc1c,_0x4c8f84){_0x3ecc1c=_0x3ecc1c-0x0;let _0x328301=_0x4c8f[_0x3ecc1c];return _0x328301;};import{Plugin as _0x3a1b7e}from'ckeditor5/src/core.js';import{CKEditorError as _0x4a1e35}from'ckeditor5/src/utils.js';import{debounce as _0x192365}from'lodash-es';import _0x6a0bd4 from'./annotations.js';export default class k extends _0x3a1b7e{static get[_0x3283('0x4')](){return[_0x6a0bd4];}static get[_0x3283('0x18')](){return _0x3283('0x3');}constructor(_0x4ac3d3){super(_0x4ac3d3),this[_0x3283('0x1a')]=new Set(),this[_0x3283('0x0')]=new Set();}['init'](){const _0x3ad880=this[_0x3283('0xe')],_0x36c893=_0x3ad880[_0x3283('0xb')][_0x3283('0xc')][_0x3283('0x5')],_0x1c5652=_0x192365(()=>this['refreshSelectedViews'](),0xa);_0x36c893['on'](_0x3283('0x24'),(_0x1f17e0,_0x2680e0)=>{_0x2680e0['directChange']&&(_0x1c5652[_0x3283('0x17')](),this[_0x3283('0x14')]());}),this[_0x3283('0x9')](_0x3ad880[_0x3283('0x2a')][_0x3283('0x1d')][_0x3283('0xc')],'change:isFocused',(_0x27c522,_0x55b251,_0x57e562)=>{_0x57e562&&_0x1c5652();}),this[_0x3283('0x9')](_0x3ad880['ui'][_0x3283('0x26')],_0x3283('0x10'),(_0x4d8d3b,_0x200953,_0x293fd5)=>{_0x293fd5||_0x3ad880[_0x3283('0x27')]||this[_0x3283('0x8')](_0x3283('0x20'),{'isAnnotationTracked':_0xc389aa=>this[_0x3283('0xa')]['has'](_0xc389aa['innerView'])});}),this['listenTo'](this[_0x3283('0xe')]['ui'],'update',()=>this[_0x3283('0x8')]('uiUpdate'));}['registerAnnotation'](_0x279194){if(this[_0x3283('0x0')][_0x3283('0x1b')](_0x279194['view']))return;this['_editorAnnotations'][_0x3283('0x22')](_0x279194[_0x3283('0x1d')]),this[_0x3283('0xe')]['ui'][_0x3283('0x26')][_0x3283('0x22')](_0x279194['view']['element']);const _0x189cdb=this[_0x3283('0xe')][_0x3283('0x23')][_0x3283('0x29')](_0x6a0bd4);this[_0x3283('0x9')](_0x189cdb[_0x3283('0x6')],_0x3283('0x1'),(_0x42f0f7,_0x91f589)=>{this['editor']['ui']['focusTracker'][_0x3283('0x1')](_0x91f589[_0x3283('0x1d')][_0x3283('0x2')]),this[_0x3283('0x0')]['delete'](_0x91f589[_0x3283('0x1d')]);});}['hasDomSelection'](){return this['editor']['editing'][_0x3283('0x1d')][_0x3283('0x1f')];}[_0x3283('0x21')](_0x1ca1df){if(_0x3283('0x7')!=typeof _0x1ca1df)throw new _0x4a1e35(_0x3283('0xd'));this[_0x3283('0x1a')][_0x3283('0x22')](_0x1ca1df);}[_0x3283('0x14')](){this[_0x3283('0x8')](_0x3283('0x12'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x41e957,annotations:_0x513eba}){const _0x475338=[],_0xe46690=this[_0x3283('0xe')][_0x3283('0xb')][_0x3283('0xc')][_0x3283('0x5')],_0x5806e3=Array['from'](_0xe46690[_0x3283('0x25')]());for(const [_0x1ebf03,_0x170573]of this[_0x3283('0xa')]){const _0x10db16=_0xcbbef4(_0x170573),_0x38cb51=_0x513eba[_0x3283('0x13')](_0x1ebf03);_0x10db16&&_0x38cb51&&_0x475338[_0x3283('0x28')]({'annotation':_0x38cb51,'range':_0x10db16});}function _0xcbbef4(_0x4b4d23){for(const _0x5041c0 of _0x4b4d23)for(const _0x2a3e5a of _0x5806e3)if(_0x5041c0[_0x3283('0x19')](_0x2a3e5a,!_0xe46690['isCollapsed']))return _0x5041c0;return null;}return _0x475338[_0x3283('0x1e')]((_0x17121e,_0x5214e6)=>{const _0x582dc4=_0x17121e[_0x3283('0x15')],_0x9f4ab7=_0x5214e6[_0x3283('0x15')];if(!_0x582dc4['isEqual'](_0x9f4ab7)){if(_0x582dc4[_0x3283('0x19')](_0x9f4ab7,!0x0))return 0x1;if(_0x9f4ab7[_0x3283('0x19')](_0x582dc4,!0x0))return-0x1;}return _0x17121e[_0x3283('0x1c')]==_0x41e957?-0x1:_0x5214e6['annotation']==_0x41e957?0x1:0x0;})[_0x3283('0x11')](_0x63cb57=>_0x63cb57['annotation']);}get[_0x3283('0xa')](){const _0x469c72=new Map();for(const _0x50e841 of Array[_0x3283('0x16')](this[_0x3283('0x1a')]))for(const [_0x2aa3c2,_0xe65ef1]of _0x50e841())_0x469c72[_0x3283('0xf')](_0x2aa3c2,_0xe65ef1);return _0x469c72;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x551d=['pluginName','_setSelectedAnnotations','getOrderedSelectedAnnotations','target','detach','listenTo','selection','find','focusTracker','width','set','_selectedAnnotations','change:visibleView','inline','updatePosition','delete','visibleView','top','length','inlineannotations-detach-not-attached','setActiveAnnotation','_removeAnnotationFromBalloon','annotations','blur','_addedAnnotations','includes','right','inlineannotations-attach-already-attached','requires','isAttached','getClientRects','_addAnnotationToBalloon','_forceRefresh','remove','isActive','plugins','change:height','viewRangeToDom','view','init','bottom','_getBalloonTargetForAnnotation','targetRect','every','has','inlineannotations-not-allowed-with-context','update','switchTo','change:isFocused','editor','_manuallyClosed','collapse','left','refresh','editing','fromRect','register','mousedown','isFocused','getBoundingClientRect','_balloon','context','push','hasActive','get','activeAnnotation','afterInit','focus','hasView','editableElement','_closeAnnotation','document','add','keystrokes','Esc','from','stopListening','InlineAnnotations'];(function(_0x2c42ce,_0x551da4){const _0x5f4c95=function(_0x2f3672){while(--_0x2f3672){_0x2c42ce['push'](_0x2c42ce['shift']());}};_0x5f4c95(++_0x551da4);}(_0x551d,0x11e));const _0x5f4c=function(_0x2c42ce,_0x551da4){_0x2c42ce=_0x2c42ce-0x0;let _0x5f4c95=_0x551d[_0x2c42ce];return _0x5f4c95;};import{Plugin as _0x3c4a11}from'ckeditor5/src/core.js';import _0x4c6b4d from'./annotationsuis.js';import _0x40ed90 from'./editorannotations.js';import{ContextualBalloon as _0x4ff4f3}from'ckeditor5/src/ui.js';import{MouseObserver as _0x1f235c}from'ckeditor5/src/engine.js';import{CKEditorError as _0x34fbc5,Rect as _0xebffd9}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x3c4a11{static get[_0x5f4c('0x36')](){return[_0x40ed90,_0x4ff4f3,_0x4c6b4d];}static get[_0x5f4c('0x1a')](){return _0x5f4c('0x19');}constructor(_0x7115b7){super(_0x7115b7),_0x7115b7[_0x5f4c('0x2')]['view']['addObserver'](_0x1f235c),this[_0x5f4c('0x37')]=!0x1,this[_0x5f4c('0x24')](_0x5f4c('0xd'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this[_0x5f4c('0x8')]=_0x7115b7[_0x5f4c('0x3d')][_0x5f4c('0xc')](_0x4ff4f3),this[_0x5f4c('0x32')]=new Set(),this[_0x5f4c('0x25')]=[],this['_forceRefresh']=!0x1;}[_0x5f4c('0x41')](){const _0x34191f=this['editor'][_0x5f4c('0x3d')][_0x5f4c('0xc')](_0x4c6b4d);_0x34191f['context']===this[_0x5f4c('0x4b')]&&(_0x34191f[_0x5f4c('0x4')](_0x5f4c('0x27'),this),this[_0x5f4c('0x4b')][_0x5f4c('0x15')][_0x5f4c('0x24')](_0x5f4c('0x16'),(_0x5873f3,_0x405876)=>{const _0x173ef3=this['_balloon'];if(this['isAttached']&&_0x173ef3[_0x5f4c('0x2a')]){const _0x563bf5=this[_0x5f4c('0x30')]['getByView'](_0x173ef3[_0x5f4c('0x2a')]);_0x563bf5&&this[_0x5f4c('0x12')](_0x563bf5),_0x405876();}}));}[_0x5f4c('0xe')](){const _0x54800e=this[_0x5f4c('0x4b')]['plugins'][_0x5f4c('0xc')](_0x4c6b4d);_0x54800e[_0x5f4c('0x9')]===this[_0x5f4c('0x4b')]&&(_0x54800e[_0x5f4c('0xb')]()||_0x54800e[_0x5f4c('0x49')](_0x5f4c('0x27')));}['setActiveAnnotation'](_0x1db064){_0x1db064!==this[_0x5f4c('0xd')]&&(this[_0x5f4c('0xd')]&&(this[_0x5f4c('0xd')]['isActive']=!0x1),_0x1db064&&this[_0x5f4c('0x4b')]['ui']['focusTracker'][_0x5f4c('0x6')]&&(this[_0x5f4c('0x30')][_0x5f4c('0x46')](_0x1db064)&&this[_0x5f4c('0x39')](_0x1db064,!0x0),_0x1db064[_0x5f4c('0x3c')]=!0x0),_0x1db064||this['_setSelectedAnnotations']([]),this[_0x5f4c('0xd')]=_0x1db064);}['attach'](_0x54d14d){this['annotations']=_0x54d14d;const _0x54d300=this[_0x5f4c('0x4b')][_0x5f4c('0x3d')][_0x5f4c('0xc')](_0x4c6b4d),_0x393d03=this[_0x5f4c('0x8')];if(this[_0x5f4c('0x37')])throw new _0x34fbc5(_0x5f4c('0x35'),this);if(_0x54d300[_0x5f4c('0x9')]!==this[_0x5f4c('0x4b')])throw new _0x34fbc5(_0x5f4c('0x47'),this);const _0x953340=this[_0x5f4c('0x4b')][_0x5f4c('0x3d')]['get'](_0x40ed90);this['listenTo'](_0x953340,_0x5f4c('0x1'),()=>{const _0x11166c=_0x953340[_0x5f4c('0x1c')]({'annotations':this[_0x5f4c('0x30')],'activeAnnotation':this[_0x5f4c('0xd')]});var _0x3b35d7,_0x3a5d44;!this[_0x5f4c('0x3a')]&&(_0x3b35d7=_0x11166c,_0x3a5d44=this[_0x5f4c('0x25')],_0x3b35d7[_0x5f4c('0x2c')]===_0x3a5d44['length']&&_0x3b35d7[_0x5f4c('0x45')](_0x2b403e=>_0x3a5d44[_0x5f4c('0x33')](_0x2b403e)))||(this[_0x5f4c('0x3a')]=!0x1,this['_setSelectedAnnotations'](_0x11166c),this[_0x5f4c('0x2e')](_0x11166c[0x0]||null));}),this[_0x5f4c('0x1f')](_0x953340,_0x5f4c('0x31'),(_0x19e114,{isAnnotationTracked:_0x3da862})=>{this[_0x5f4c('0xd')]&&_0x3da862(this[_0x5f4c('0xd')])&&(this[_0x5f4c('0x1b')]([]),this[_0x5f4c('0x2e')](null));}),this[_0x5f4c('0x1f')](this[_0x5f4c('0x4b')]['ui'][_0x5f4c('0x22')],_0x5f4c('0x4a'),(_0x483de3,_0x340072,_0x260cfe)=>{_0x260cfe||this[_0x5f4c('0x2e')](null);}),this[_0x5f4c('0x1f')](_0x54d14d,_0x5f4c('0x3b'),(_0x55b5cd,_0xc355f5)=>{this[_0x5f4c('0x2f')](_0xc355f5),_0xc355f5===this[_0x5f4c('0xd')]&&this[_0x5f4c('0x2e')](null);}),this['listenTo'](_0x393d03,_0x5f4c('0x26'),(_0x3b4a9b,_0xbd630,_0xf716f1,_0x4ff9b5)=>{_0x4ff9b5&&this[_0x5f4c('0x18')](_0x4ff9b5);const _0x408d88=_0x54d14d['getByView'](_0xf716f1);_0xf716f1&&_0x408d88&&(this[_0x5f4c('0x1f')](_0xf716f1,_0x5f4c('0x3e'),()=>{_0x393d03[_0x5f4c('0x28')]();}),this[_0x5f4c('0x1f')](_0xf716f1,_0x5f4c('0x16'),()=>{this[_0x5f4c('0x12')](_0x408d88),this[_0x5f4c('0x4b')][_0x5f4c('0x2')][_0x5f4c('0x40')][_0x5f4c('0xf')]();}),this[_0x5f4c('0xd')]!==_0x408d88&&this[_0x5f4c('0x2e')](_0x408d88));}),this['listenTo'](this[_0x5f4c('0x4b')]['ui'],_0x5f4c('0x48'),()=>{_0x393d03['visibleView']&&(_0x54d14d['getByView'](_0x393d03[_0x5f4c('0x2a')])&&_0x393d03[_0x5f4c('0x28')]());}),this['listenTo'](this[_0x5f4c('0x4b')]['editing'][_0x5f4c('0x40')][_0x5f4c('0x13')],_0x5f4c('0x5'),()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor'][_0x5f4c('0x2')][_0x5f4c('0x40')][_0x5f4c('0x13')]['selection'][_0x5f4c('0x11')]&&this[_0x5f4c('0x4b')]['editing'][_0x5f4c('0x40')][_0x5f4c('0xf')](),this[_0x5f4c('0x37')]=!0x0;}[_0x5f4c('0x1e')](){if(!this[_0x5f4c('0x37')])throw new _0x34fbc5(_0x5f4c('0x2d'),this);this['setActiveAnnotation'](null);for(const _0x51f28d of this[_0x5f4c('0x32')])this['_removeAnnotationFromBalloon'](_0x51f28d);this['stopListening'](),this[_0x5f4c('0x37')]=!0x1,this[_0x5f4c('0x30')]=null;}['destroy'](){this[_0x5f4c('0x37')]&&this[_0x5f4c('0x1e')]();}[_0x5f4c('0x1b')](_0xcae620){for(const _0x216084 of this[_0x5f4c('0x25')])_0xcae620[_0x5f4c('0x33')](_0x216084)||this[_0x5f4c('0x4c')][_0x5f4c('0x29')](_0x216084);for(const _0x3f9597 of this['annotations'])_0xcae620[_0x5f4c('0x33')](_0x3f9597)||this[_0x5f4c('0x2f')](_0x3f9597);if(this[_0x5f4c('0x4b')]['ui']['focusTracker'][_0x5f4c('0x6')])for(const _0x2e13c5 of _0xcae620)this[_0x5f4c('0x39')](_0x2e13c5);this[_0x5f4c('0x25')]=_0xcae620;}[_0x5f4c('0x39')](_0x5c3bb0,_0x52e087=!0x1){this['_manuallyClosed']['has'](_0x5c3bb0)||(this['_addedAnnotations']['has'](_0x5c3bb0)||this[_0x5f4c('0x8')][_0x5f4c('0x10')](_0x5c3bb0[_0x5f4c('0x40')])||(this[_0x5f4c('0x32')][_0x5f4c('0x14')](_0x5c3bb0),this[_0x5f4c('0x8')]['add']({'stackId':_0x5c3bb0[_0x5f4c('0x40')]['id'],'view':_0x5c3bb0['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5c3bb0)}})),_0x52e087&&this[_0x5f4c('0x8')]['showStack'](_0x5c3bb0[_0x5f4c('0x40')]['id']));}[_0x5f4c('0x43')](_0x55eb0e){const _0x221487=_0x55eb0e[_0x5f4c('0x1d')],_0x5b0d51=this[_0x5f4c('0x4b')]['editing'][_0x5f4c('0x40')],_0x475535=_0x5b0d51[_0x5f4c('0x13')][_0x5f4c('0x20')]['getFirstRange'](),_0x467ea2=_0x5b0d51['domConverter'][_0x5f4c('0x3f')](_0x475535);if(_0x467ea2[_0x5f4c('0x4d')](!0x0),_0x221487){if(_0x221487 instanceof _0xebffd9)return _0x221487;let _0x438b05=[];for(const _0x5e98bc of _0x221487)_0x438b05[_0x5f4c('0xa')](...(_0x299400=_0x5e98bc[_0x5f4c('0x38')](),Array[_0x5f4c('0x17')](_0x299400)['map'](DOMRect[_0x5f4c('0x3')])));_0x438b05=function(_0x3e50ff){const _0xde2637=[];let _0xeafed1=_0x3e50ff[0x0];for(let _0x254101=0x1;_0x254101<_0x3e50ff[_0x5f4c('0x2c')];_0x254101++)F(_0xeafed1,_0x3e50ff[_0x254101])?_0xeafed1[_0x5f4c('0x23')]+=_0x3e50ff[_0x254101][_0x5f4c('0x23')]:(_0xde2637[_0x5f4c('0xa')](_0xeafed1),_0xeafed1=_0x3e50ff[_0x254101]);return _0xde2637['push'](_0xeafed1),_0xde2637;}(_0x438b05);const _0x2df070=_0x467ea2[_0x5f4c('0x7')]();return _0x438b05[_0x5f4c('0x21')](_0x187c74=>_0x187c74[_0x5f4c('0x2b')]<=_0x2df070['top']&&_0x187c74[_0x5f4c('0x42')]>=_0x2df070[_0x5f4c('0x42')]&&_0x187c74['left']<=_0x2df070['left']&&_0x187c74[_0x5f4c('0x34')]>=_0x2df070['right'])||_0x438b05[0x0];}var _0x299400;return _0x55eb0e[_0x5f4c('0x44')]||_0x467ea2;}[_0x5f4c('0x2f')](_0x119023){this[_0x5f4c('0x32')][_0x5f4c('0x46')](_0x119023)&&this[_0x5f4c('0x8')][_0x5f4c('0x10')](_0x119023[_0x5f4c('0x40')])&&(this['_addedAnnotations'][_0x5f4c('0x29')](_0x119023),this[_0x5f4c('0x8')][_0x5f4c('0x3b')](_0x119023[_0x5f4c('0x40')]));}[_0x5f4c('0x12')](_0x376cdd){this[_0x5f4c('0x4c')][_0x5f4c('0x14')](_0x376cdd),this['_removeAnnotationFromBalloon'](_0x376cdd);}}function F(_0x27465c,_0x2e24a1){return _0x27465c['top']===_0x2e24a1[_0x5f4c('0x2b')]&&_0x27465c[_0x5f4c('0x42')]===_0x2e24a1[_0x5f4c('0x42')]&&_0x27465c[_0x5f4c('0x34')]===_0x2e24a1[_0x5f4c('0x0')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xe109=['view','refreshPositioning','content','activeAnnotation','annotations','_hideBalloon','Esc','isDirty','preventClosingBalloon','init','cancel','change:height','stopListening','defaultPositions','isAttached','change:container','_refreshPositioning','unpin','_showBalloon','stopPropagation','keyCode','southArrowNorth','bind','_annotationToNarrowView','listenTo','isVisible','remove','_attachListeners','detach','setActiveAnnotation','keydown','element','focusableElements','resize','context','attachToDom','rearrange','_destroyEditorAnnotationsIntegration','high','plugins','register','ready','_domEmitter','length','getByView','bodyCollection','_integrateWithEditorAnnotations','attach','create','_setSelectedAnnotations','delete','hasDomSelection','_updateBalloonPosition','detachFromDom','narrowSidebar','values','get','_manuallyClosedAnnotationViews','first','destroy','contains','_selectedAnnotations','EditorAnnotations','_detachListeners','refresh','northArrowSouthEast','_annotations','balloonPanelView','addAnnotation','target','locale','getOrderedSelectedAnnotations','stop','_editorAnnotations','_refreshPositioningDebounced','editors','_detachFromContainer','NarrowSidebar','focus','uiUpdate','has','ck-sidebar--narrow','getSidebarItemView','addEventListener','from','southArrowNorthEast','number','blur','removeEventListener','clear','set','add'];(function(_0x150705,_0xe109c0){const _0x3184b7=function(_0x3af11f){while(--_0x3af11f){_0x150705['push'](_0x150705['shift']());}};_0x3184b7(++_0xe109c0);}(_0xe109,0xbc));const _0x3184=function(_0x150705,_0xe109c0){_0x150705=_0x150705-0x0;let _0x3184b7=_0xe109[_0x150705];return _0x3184b7;};import{ContextPlugin as _0x5a8ea9,Context as _0x4a5fc6}from'ckeditor5/src/core.js';import _0x11e238 from'./annotationsuis.js';import _0x1c1083 from'./sidebar.js';import _0x124d4d from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x486bd9,BodyCollection as _0x10248a}from'ckeditor5/src/ui.js';import{CKEditorError as _0x486fd5,DomEmitterMixin as _0xf61baf,keyCodes as _0x5c4e4d,Collection as _0x251f9c}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x59a0a7}from'lodash-es';import _0x1069e4 from'./editorannotations.js';export default class i extends _0x5a8ea9{static get['requires'](){return[_0x1c1083,_0x11e238];}static get['pluginName'](){return _0x3184('0x49');}constructor(_0x5ea3e8){super(_0x5ea3e8),this['isAttached']=!0x1,this[_0x3184('0x35')]=new Set(),this[_0x3184('0x26')]=Object[_0x3184('0x2c')](_0xf61baf),this[_0x3184('0x13')]=new Map(),this['set'](_0x3184('0x5b'),null),this[_0x3184('0x0')]=null,this[_0x3184('0x39')]=[],this['_editorAnnotations']=new _0x251f9c(),this[_0x3184('0x46')]=_0x59a0a7(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x3184('0x5')](){this[_0x3184('0x1e')][_0x3184('0x23')][_0x3184('0x34')](_0x11e238)[_0x3184('0x24')](_0x3184('0x32'),this),this[_0x3184('0x29')]=new _0x10248a(this[_0x3184('0x1e')]['locale']),this[_0x3184('0x3f')]=new _0x486bd9(this[_0x3184('0x1e')][_0x3184('0x42')]),this['bodyCollection'][_0x3184('0x1f')](),this[_0x3184('0x29')][_0x3184('0x57')](this[_0x3184('0x3f')]);}[_0x3184('0x2b')](_0x5e0e54){this[_0x3184('0x0')]=_0x5e0e54;const _0x600311=this[_0x3184('0x1e')]['plugins'][_0x3184('0x34')](_0x1c1083),_0x104c55=this[_0x3184('0x3f')];if(_0x600311[_0x3184('0x3e')]=_0x5e0e54,this[_0x3184('0xa')])throw new _0x486fd5('narrowsidebar-attach-already-attached',this);this[_0x3184('0xa')]=!0x0,this[_0x3184('0x14')](_0x600311,'set:container',()=>{this['detach'](),this[_0x3184('0x14')](_0x600311,_0x3184('0xb'),_0x5f51eb=>{_0x5f51eb['off'](),this[_0x3184('0x2b')](_0x5e0e54);});}),_0x600311['_attachToContainer']({'viewClass':_0x3184('0x4d'),'spaceBetweenItems':0x5});const _0x582d38=_0x4e108c=>{const _0x66068a=new _0x124d4d(this[_0x3184('0x1e')][_0x3184('0x42')]);_0x600311[_0x3184('0x40')](_0x4e108c,_0x66068a),this[_0x3184('0x13')][_0x3184('0x56')](_0x4e108c,_0x66068a),_0x66068a[_0x3184('0x12')](_0x3184('0x3'),'annotationType',_0x3184('0x52'))['to'](_0x4e108c[_0x3184('0x58')],_0x3184('0x3'),'type',_0x3184('0x27')),_0x66068a['on']('execute',()=>{this[_0x3184('0x35')][_0x3184('0x55')](),_0x104c55['content'][_0x3184('0x36')]!==_0x4e108c[_0x3184('0x58')]?(this[_0x3184('0xe')](_0x4e108c),_0x4e108c['view'][_0x3184('0x1b')][_0x3184('0x4a')](),this[_0x3184('0x19')](_0x4e108c)):this[_0x3184('0x19')](null);});};for(const _0x183680 of _0x5e0e54)_0x582d38(_0x183680);this[_0x3184('0x14')](_0x5e0e54,_0x3184('0x57'),(_0x568acc,_0x406427)=>{_0x582d38(_0x406427);}),this[_0x3184('0x14')](_0x5e0e54,'remove',(_0x25610c,_0x5bd17d,_0x59b041)=>{this[_0x3184('0x13')][_0x3184('0x34')](_0x5bd17d)[_0x3184('0x37')](),this[_0x3184('0x13')][_0x3184('0x2e')](_0x5bd17d),_0x600311[_0x3184('0x20')]({'removedAnnotation':_0x5bd17d,'previousAnnotation':_0x5e0e54['get'](_0x59b041-0x1),'nextAnnotation':_0x5e0e54[_0x3184('0x34')](_0x59b041+0x1)}),_0x5bd17d===this['activeAnnotation']&&this[_0x3184('0x19')](null);},{'priority':'low'}),this[_0x3184('0x14')](_0x5e0e54,'focus',(_0x4cca15,_0x5d5b4c)=>{this[_0x3184('0x19')](_0x5d5b4c);}),this['listenTo'](_0x5e0e54,_0x3184('0x53'),()=>{this[_0x3184('0x19')](null);}),this['_domEmitter'][_0x3184('0x14')](document,_0x3184('0x1a'),(_0x591972,_0xd9cacc)=>{_0xd9cacc[_0x3184('0x10')]===_0x5c4e4d['esc']&&_0x104c55[_0x3184('0x15')]&&(this['_manuallyClosedAnnotationViews'][_0x3184('0x57')](_0x104c55[_0x3184('0x5a')]['first']),this['_hideBalloon'](),_0xd9cacc[_0x3184('0xf')](),_0xd9cacc['preventDefault']());}),this['_domEmitter'][_0x3184('0x14')](document,'mousedown',(_0x173df5,_0x39a9e6)=>{const _0x243870=_0x39a9e6[_0x3184('0x41')];_0x104c55[_0x3184('0x15')]&&_0x104c55['element'][_0x3184('0x38')](_0x243870)||_0x600311[_0x3184('0x58')]['element'][_0x3184('0x38')](_0x243870)||_0x173df5[_0x3184('0x4')]||this[_0x3184('0x5b')]&&this[_0x3184('0x5b')][_0x3184('0x1c')]['find'](_0x380864=>_0x380864[_0x3184('0x38')](_0x243870))||(this[_0x3184('0x35')][_0x3184('0x55')](),this[_0x3184('0x1')](),this[_0x3184('0x19')](null));});const _0x1f4335=this[_0x3184('0x1e')]instanceof _0x4a5fc6?this[_0x3184('0x1e')][_0x3184('0x47')]:new _0x251f9c([this['context']]);for(const _0x2cecae of _0x1f4335)this[_0x3184('0x2a')](_0x2cecae);this[_0x3184('0x14')](_0x1f4335,'add',(_0x54d766,_0x30eec4)=>{this[_0x3184('0x14')](_0x30eec4,_0x3184('0x25'),()=>{this[_0x3184('0x2a')](_0x30eec4);});}),this[_0x3184('0x14')](_0x1f4335,_0x3184('0x16'),(_0x493ecf,_0x2891b0)=>{_0x2891b0[_0x3184('0x23')]['has'](_0x3184('0x3a'))&&this['_destroyEditorAnnotationsIntegration'](_0x2891b0[_0x3184('0x23')][_0x3184('0x34')](_0x3184('0x3a')));}),window[_0x3184('0x4f')](_0x3184('0x1d'),this[_0x3184('0x46')]),this[_0x3184('0xc')]();}[_0x3184('0x19')](_0x2dec95){if(_0x2dec95===this['activeAnnotation'])return;const _0x2e48c4=this[_0x3184('0x1e')][_0x3184('0x23')][_0x3184('0x34')](_0x1c1083);if(_0x2e48c4[_0x3184('0x3c')]({'blurredAnnotation':this[_0x3184('0x5b')],'activatedAnnotation':_0x2dec95,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2dec95)_0x2e48c4[_0x3184('0x4e')](_0x2dec95)?this[_0x3184('0xe')](_0x2dec95):this[_0x3184('0x1')]();else this[_0x3184('0x1')]();this[_0x3184('0x5b')]=_0x2dec95;}[_0x3184('0x18')](){if(!this['isAttached'])throw new _0x486fd5('narrowsidebar-detach-not-attached',this);this[_0x3184('0x19')](null);const _0x2b0b81=this[_0x3184('0x1e')][_0x3184('0x23')][_0x3184('0x34')](_0x1c1083);this[_0x3184('0x1')](),Array[_0x3184('0x50')](this[_0x3184('0x13')][_0x3184('0x33')](),_0x3ba140=>_0x3ba140[_0x3184('0x37')]()),this[_0x3184('0x13')]['clear'](),_0x2b0b81[_0x3184('0x48')](this[_0x3184('0x0')]),this[_0x3184('0x8')](),this[_0x3184('0x26')][_0x3184('0x8')](),this[_0x3184('0x1e')]instanceof _0x4a5fc6&&this['stopListening'](this[_0x3184('0x1e')][_0x3184('0x47')]);for(const _0x553aba of Array['from'](this[_0x3184('0x45')]))this[_0x3184('0x21')](_0x553aba);window[_0x3184('0x54')](_0x3184('0x1d'),this['_refreshPositioningDebounced']),this[_0x3184('0x46')][_0x3184('0x6')](),this[_0x3184('0x39')]=[],this[_0x3184('0xa')]=!0x1,this['annotations']=null;}[_0x3184('0x37')](){this[_0x3184('0xa')]&&this[_0x3184('0x18')](),this[_0x3184('0x29')][_0x3184('0x31')]();}['_integrateWithEditorAnnotations'](_0x33c817){const _0x1debf6=_0x33c817['plugins'][_0x3184('0x34')](_0x1069e4),_0x35a57d=this[_0x3184('0x1e')][_0x3184('0x23')]['get'](_0x1c1083),_0x496b65=this[_0x3184('0x0')],_0xb02b8e=this[_0x3184('0x3f')],_0x4d35ab=()=>{const _0x46e26f=_0x1debf6[_0x3184('0x43')]({'annotations':this[_0x3184('0x0')],'activeAnnotation':this[_0x3184('0x5b')]});this[_0x3184('0x2d')](_0x46e26f),this[_0x3184('0x19')](_0x46e26f[0x0]||null);};this[_0x3184('0x14')](_0x1debf6,'refresh',_0x4d35ab),this['listenTo'](_0x1debf6,_0x3184('0x53'),(_0x53259d,{isAnnotationTracked:_0x4cfeb6})=>{this['activeAnnotation']&&_0x4cfeb6(this[_0x3184('0x5b')])&&(this[_0x3184('0x2d')]([]),this[_0x3184('0x19')](null));}),this[_0x3184('0x14')](_0x1debf6,_0x3184('0x4b'),()=>{this[_0x3184('0x46')]();}),this[_0x3184('0x14')](_0x496b65,_0x3184('0x53'),_0x1978f2=>{_0x1debf6[_0x3184('0x2f')]()&&_0x1978f2[_0x3184('0x44')]();},{'priority':'high'}),this['listenTo'](this[_0x3184('0x26')],'mousedown',(_0x17484a,_0x24c1e5)=>{const _0xa86a71=_0x24c1e5[_0x3184('0x41')];_0xb02b8e['isVisible']&&_0xb02b8e['element'][_0x3184('0x38')](_0xa86a71)||_0x35a57d[_0x3184('0x58')][_0x3184('0x1b')][_0x3184('0x38')](_0xa86a71)||this['activeAnnotation']&&_0x1debf6[_0x3184('0x2f')]()&&(_0x4d35ab(),_0x17484a[_0x3184('0x4')]=!0x0);},{'priority':_0x3184('0x22')}),this['_editorAnnotations']['add'](_0x1debf6);}[_0x3184('0x21')](_0x18b98f){_0x18b98f&&(this['stopListening'](_0x18b98f),this[_0x3184('0x45')][_0x3184('0x16')](_0x18b98f));}['_setSelectedAnnotations'](_0x3634d0){for(const _0x1b4a36 of this[_0x3184('0x39')])_0x3634d0['includes'](_0x1b4a36)||this[_0x3184('0x35')]['delete'](_0x1b4a36[_0x3184('0x58')]);this[_0x3184('0x39')]=_0x3634d0;}[_0x3184('0xc')](){const _0x3056c0=this[_0x3184('0x3f')];this[_0x3184('0x0')][_0x3184('0x59')](),_0x3056c0[_0x3184('0x15')]&&this['_updateBalloonPosition']();}[_0x3184('0xe')](_0x424be1){if(this[_0x3184('0x35')][_0x3184('0x4c')](_0x424be1[_0x3184('0x58')]))return;const _0x22b601=this[_0x3184('0x3f')]['content'][_0x3184('0x36')];_0x22b601!==_0x424be1[_0x3184('0x58')]?(_0x22b601&&this[_0x3184('0x3b')](_0x22b601),this[_0x3184('0x17')](_0x424be1[_0x3184('0x58')]),this[_0x3184('0x3f')][_0x3184('0x5a')]['clear'](),this[_0x3184('0x3f')][_0x3184('0x5a')]['add'](_0x424be1[_0x3184('0x58')]),this[_0x3184('0x30')]()):this[_0x3184('0x30')]();}[_0x3184('0x30')](){const _0x233e8e=this[_0x3184('0x3f')][_0x3184('0x5a')][_0x3184('0x36')],_0x155b00=_0x233e8e&&this[_0x3184('0x0')][_0x3184('0x28')](_0x233e8e);if(!_0x155b00||!this[_0x3184('0x13')][_0x3184('0x4c')](_0x155b00))return;const _0x4d829a=this[_0x3184('0x13')][_0x3184('0x34')](_0x155b00)[_0x3184('0x1b')],_0x175b93=function(){const _0x1b0d2a=_0x486bd9[_0x3184('0x9')];return[_0x1b0d2a[_0x3184('0x51')],_0x1b0d2a[_0x3184('0x3d')],_0x1b0d2a[_0x3184('0x11')],_0x1b0d2a['northArrowSouth'],_0x1b0d2a['southArrowNorthWest'],_0x1b0d2a['northArrowSouthWest']];}();this[_0x3184('0x3f')]['pin']({'target':_0x4d829a,'positions':_0x175b93});}[_0x3184('0x1')](){const _0x118976=this['balloonPanelView'],_0xb3470d=_0x118976[_0x3184('0x5a')][_0x3184('0x36')];_0xb3470d&&(this[_0x3184('0x3b')](_0xb3470d),_0x118976[_0x3184('0xd')](),_0x118976[_0x3184('0x5a')][_0x3184('0x55')]());}[_0x3184('0x17')](_0x439cee){this['listenTo'](_0x439cee,_0x3184('0x7'),()=>this['_updateBalloonPosition']()),this['listenTo'](_0x439cee,_0x3184('0x2'),(_0xd15b44,_0x205424)=>{this[_0x3184('0x35')]['add'](_0x439cee),this[_0x3184('0x1')](),_0x205424();});}[_0x3184('0x3b')](_0x11905f){this[_0x3184('0x8')](_0x11905f);}}
|
|
23
|
+
const _0x3588=['has','annotations','plugins','_detachFromContainer','attach','stopPropagation','destroy','isAttached','ready','resize','narrowsidebar-detach-not-attached','view','focusableElements','off','southArrowNorthEast','stop','from','refresh','stopListening','find','southArrowNorth','number','addAnnotation','esc','northArrowSouthEast','cancel','content','blur','_manuallyClosedAnnotationViews','_attachListeners','set','_setSelectedAnnotations','contains','_attachToContainer','create','element','getOrderedSelectedAnnotations','low','_refreshPositioningDebounced','balloonPanelView','pin','first','unpin','change:container','Esc','delete','register','_updateBalloonPosition','clear','init','_refreshPositioning','_hideBalloon','uiUpdate','northArrowSouthWest','attachToDom','requires','detach','mousedown','context','_showBalloon','isVisible','focus','setActiveAnnotation','includes','_selectedAnnotations','_detachListeners','add','EditorAnnotations','southArrowNorthWest','addEventListener','type','activeAnnotation','_annotationToNarrowView','narrowsidebar-attach-already-attached','keydown','values','preventClosingBalloon','locale','remove','get','rearrange','isDirty','bind','editors','northArrowSouth','bodyCollection','set:container','_domEmitter','listenTo','_destroyEditorAnnotationsIntegration','high','length','_integrateWithEditorAnnotations','_annotations','change:height','_editorAnnotations','defaultPositions','hasDomSelection'];(function(_0x394910,_0x3588cd){const _0xbf51df=function(_0x2b1548){while(--_0x2b1548){_0x394910['push'](_0x394910['shift']());}};_0xbf51df(++_0x3588cd);}(_0x3588,0x154));const _0xbf51=function(_0x394910,_0x3588cd){_0x394910=_0x394910-0x0;let _0xbf51df=_0x3588[_0x394910];return _0xbf51df;};import{ContextPlugin as _0x4abf1f,Context as _0x306eb8}from'ckeditor5/src/core.js';import _0x55b3ad from'./annotationsuis.js';import _0x35730f from'./sidebar.js';import _0x5aecdb from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x3a1b49,BodyCollection as _0x5571e0}from'ckeditor5/src/ui.js';import{CKEditorError as _0x462bc3,DomEmitterMixin as _0x250634,keyCodes as _0x46901b,Collection as _0x47ed98}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x2af967}from'lodash-es';import _0x11aded from'./editorannotations.js';export default class i extends _0x4abf1f{static get[_0xbf51('0x9')](){return[_0x35730f,_0x55b3ad];}static get['pluginName'](){return'NarrowSidebar';}constructor(_0x29cc4f){super(_0x29cc4f),this[_0xbf51('0x3b')]=!0x1,this[_0xbf51('0x50')]=new Set(),this[_0xbf51('0x29')]=Object[_0xbf51('0x56')](_0x250634),this[_0xbf51('0x1a')]=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this[_0xbf51('0x12')]=[],this['_editorAnnotations']=new _0x47ed98(),this[_0xbf51('0x5a')]=_0x2af967(()=>{this[_0xbf51('0x4')]();},0xfa,{'leading':!0x1});}[_0xbf51('0x3')](){this[_0xbf51('0xc')][_0xbf51('0x36')][_0xbf51('0x21')](_0x55b3ad)[_0xbf51('0x0')]('narrowSidebar',this),this[_0xbf51('0x27')]=new _0x5571e0(this[_0xbf51('0xc')][_0xbf51('0x1f')]),this['balloonPanelView']=new _0x3a1b49(this[_0xbf51('0xc')]['locale']),this[_0xbf51('0x27')][_0xbf51('0x8')](),this[_0xbf51('0x27')]['add'](this[_0xbf51('0x5b')]);}['attach'](_0x491de3){this[_0xbf51('0x35')]=_0x491de3;const _0x250354=this[_0xbf51('0xc')][_0xbf51('0x36')][_0xbf51('0x21')](_0x35730f),_0x3d4fed=this['balloonPanelView'];if(_0x250354[_0xbf51('0x2f')]=_0x491de3,this[_0xbf51('0x3b')])throw new _0x462bc3(_0xbf51('0x1b'),this);this[_0xbf51('0x3b')]=!0x0,this['listenTo'](_0x250354,_0xbf51('0x28'),()=>{this[_0xbf51('0xa')](),this[_0xbf51('0x2a')](_0x250354,_0xbf51('0x5f'),_0x2340d8=>{_0x2340d8[_0xbf51('0x41')](),this[_0xbf51('0x38')](_0x491de3);});}),_0x250354[_0xbf51('0x55')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x43d2d6=_0xb82804=>{const _0x288d2a=new _0x5aecdb(this[_0xbf51('0xc')][_0xbf51('0x1f')]);_0x250354[_0xbf51('0x4a')](_0xb82804,_0x288d2a),this[_0xbf51('0x1a')][_0xbf51('0x52')](_0xb82804,_0x288d2a),_0x288d2a[_0xbf51('0x24')](_0xbf51('0x23'),'annotationType',_0xbf51('0x49'))['to'](_0xb82804['view'],_0xbf51('0x23'),_0xbf51('0x18'),_0xbf51('0x2d')),_0x288d2a['on']('execute',()=>{this['_manuallyClosedAnnotationViews'][_0xbf51('0x2')](),_0x3d4fed['content'][_0xbf51('0x5d')]!==_0xb82804[_0xbf51('0x3f')]?(this['_showBalloon'](_0xb82804),_0xb82804[_0xbf51('0x3f')][_0xbf51('0x57')][_0xbf51('0xf')](),this[_0xbf51('0x10')](_0xb82804)):this[_0xbf51('0x10')](null);});};for(const _0x326a9d of _0x491de3)_0x43d2d6(_0x326a9d);this[_0xbf51('0x2a')](_0x491de3,_0xbf51('0x14'),(_0x486f49,_0x4d1038)=>{_0x43d2d6(_0x4d1038);}),this[_0xbf51('0x2a')](_0x491de3,_0xbf51('0x20'),(_0x44abd6,_0x347252,_0x25f92c)=>{this[_0xbf51('0x1a')][_0xbf51('0x21')](_0x347252)['destroy'](),this['_annotationToNarrowView']['delete'](_0x347252),_0x250354[_0xbf51('0x22')]({'removedAnnotation':_0x347252,'previousAnnotation':_0x491de3[_0xbf51('0x21')](_0x25f92c-0x1),'nextAnnotation':_0x491de3['get'](_0x25f92c+0x1)}),_0x347252===this[_0xbf51('0x19')]&&this['setActiveAnnotation'](null);},{'priority':_0xbf51('0x59')}),this[_0xbf51('0x2a')](_0x491de3,'focus',(_0x5a26fe,_0x546a96)=>{this[_0xbf51('0x10')](_0x546a96);}),this[_0xbf51('0x2a')](_0x491de3,_0xbf51('0x4f'),()=>{this[_0xbf51('0x10')](null);}),this[_0xbf51('0x29')]['listenTo'](document,_0xbf51('0x1c'),(_0x5998e0,_0x561ebb)=>{_0x561ebb['keyCode']===_0x46901b[_0xbf51('0x4b')]&&_0x3d4fed[_0xbf51('0xe')]&&(this[_0xbf51('0x50')][_0xbf51('0x14')](_0x3d4fed[_0xbf51('0x4e')][_0xbf51('0x5d')]),this[_0xbf51('0x5')](),_0x561ebb[_0xbf51('0x39')](),_0x561ebb['preventDefault']());}),this[_0xbf51('0x29')][_0xbf51('0x2a')](document,_0xbf51('0xb'),(_0x37b21d,_0x1e7aa2)=>{const _0x56da82=_0x1e7aa2['target'];_0x3d4fed[_0xbf51('0xe')]&&_0x3d4fed['element'][_0xbf51('0x54')](_0x56da82)||_0x250354[_0xbf51('0x3f')][_0xbf51('0x57')][_0xbf51('0x54')](_0x56da82)||_0x37b21d['preventClosingBalloon']||this['activeAnnotation']&&this[_0xbf51('0x19')][_0xbf51('0x40')][_0xbf51('0x47')](_0x57c120=>_0x57c120[_0xbf51('0x54')](_0x56da82))||(this[_0xbf51('0x50')][_0xbf51('0x2')](),this[_0xbf51('0x5')](),this['setActiveAnnotation'](null));});const _0x576076=this[_0xbf51('0xc')]instanceof _0x306eb8?this['context']['editors']:new _0x47ed98([this[_0xbf51('0xc')]]);for(const _0x1ad24b of _0x576076)this[_0xbf51('0x2e')](_0x1ad24b);this[_0xbf51('0x2a')](_0x576076,_0xbf51('0x14'),(_0x1e314d,_0x31f3a1)=>{this[_0xbf51('0x2a')](_0x31f3a1,_0xbf51('0x3c'),()=>{this[_0xbf51('0x2e')](_0x31f3a1);});}),this[_0xbf51('0x2a')](_0x576076,_0xbf51('0x20'),(_0x68b899,_0x1db3ad)=>{_0x1db3ad[_0xbf51('0x36')][_0xbf51('0x34')]('EditorAnnotations')&&this[_0xbf51('0x2b')](_0x1db3ad[_0xbf51('0x36')]['get'](_0xbf51('0x15')));}),window[_0xbf51('0x17')](_0xbf51('0x3d'),this[_0xbf51('0x5a')]),this[_0xbf51('0x4')]();}[_0xbf51('0x10')](_0x1e1368){if(_0x1e1368===this['activeAnnotation'])return;const _0xc3a964=this[_0xbf51('0xc')][_0xbf51('0x36')][_0xbf51('0x21')](_0x35730f);if(_0xc3a964['refresh']({'blurredAnnotation':this[_0xbf51('0x19')],'activatedAnnotation':_0x1e1368,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1e1368)_0xc3a964['getSidebarItemView'](_0x1e1368)?this[_0xbf51('0xd')](_0x1e1368):this[_0xbf51('0x5')]();else this['_hideBalloon']();this[_0xbf51('0x19')]=_0x1e1368;}[_0xbf51('0xa')](){if(!this[_0xbf51('0x3b')])throw new _0x462bc3(_0xbf51('0x3e'),this);this[_0xbf51('0x10')](null);const _0x57e5ee=this[_0xbf51('0xc')][_0xbf51('0x36')]['get'](_0x35730f);this[_0xbf51('0x5')](),Array[_0xbf51('0x44')](this[_0xbf51('0x1a')][_0xbf51('0x1d')](),_0x23c7cc=>_0x23c7cc[_0xbf51('0x3a')]()),this[_0xbf51('0x1a')]['clear'](),_0x57e5ee[_0xbf51('0x37')](this[_0xbf51('0x35')]),this[_0xbf51('0x46')](),this['_domEmitter']['stopListening'](),this[_0xbf51('0xc')]instanceof _0x306eb8&&this[_0xbf51('0x46')](this['context'][_0xbf51('0x25')]);for(const _0x2a73bf of Array['from'](this[_0xbf51('0x31')]))this[_0xbf51('0x2b')](_0x2a73bf);window['removeEventListener']('resize',this[_0xbf51('0x5a')]),this[_0xbf51('0x5a')][_0xbf51('0x4d')](),this[_0xbf51('0x12')]=[],this['isAttached']=!0x1,this[_0xbf51('0x35')]=null;}[_0xbf51('0x3a')](){this['isAttached']&&this[_0xbf51('0xa')](),this[_0xbf51('0x27')]['detachFromDom']();}[_0xbf51('0x2e')](_0x4ff310){const _0x55ccc1=_0x4ff310[_0xbf51('0x36')][_0xbf51('0x21')](_0x11aded),_0x3006e7=this[_0xbf51('0xc')]['plugins'][_0xbf51('0x21')](_0x35730f),_0x1281a5=this['annotations'],_0x10ceaf=this[_0xbf51('0x5b')],_0x130c6c=()=>{const _0xb54665=_0x55ccc1[_0xbf51('0x58')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this[_0xbf51('0x53')](_0xb54665),this[_0xbf51('0x10')](_0xb54665[0x0]||null);};this[_0xbf51('0x2a')](_0x55ccc1,_0xbf51('0x45'),_0x130c6c),this[_0xbf51('0x2a')](_0x55ccc1,'blur',(_0x528948,{isAnnotationTracked:_0x16762b})=>{this['activeAnnotation']&&_0x16762b(this[_0xbf51('0x19')])&&(this[_0xbf51('0x53')]([]),this[_0xbf51('0x10')](null));}),this[_0xbf51('0x2a')](_0x55ccc1,_0xbf51('0x6'),()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x1281a5,_0xbf51('0x4f'),_0x1c5a08=>{_0x55ccc1[_0xbf51('0x33')]()&&_0x1c5a08[_0xbf51('0x43')]();},{'priority':_0xbf51('0x2c')}),this[_0xbf51('0x2a')](this[_0xbf51('0x29')],_0xbf51('0xb'),(_0x9ccc4c,_0x1f3a58)=>{const _0x56b1a7=_0x1f3a58['target'];_0x10ceaf[_0xbf51('0xe')]&&_0x10ceaf[_0xbf51('0x57')][_0xbf51('0x54')](_0x56b1a7)||_0x3006e7[_0xbf51('0x3f')][_0xbf51('0x57')][_0xbf51('0x54')](_0x56b1a7)||this['activeAnnotation']&&_0x55ccc1[_0xbf51('0x33')]()&&(_0x130c6c(),_0x9ccc4c[_0xbf51('0x1e')]=!0x0);},{'priority':_0xbf51('0x2c')}),this['_editorAnnotations']['add'](_0x55ccc1);}[_0xbf51('0x2b')](_0x329e70){_0x329e70&&(this[_0xbf51('0x46')](_0x329e70),this['_editorAnnotations']['remove'](_0x329e70));}['_setSelectedAnnotations'](_0xb9270a){for(const _0x32a4ae of this[_0xbf51('0x12')])_0xb9270a[_0xbf51('0x11')](_0x32a4ae)||this[_0xbf51('0x50')][_0xbf51('0x61')](_0x32a4ae[_0xbf51('0x3f')]);this[_0xbf51('0x12')]=_0xb9270a;}[_0xbf51('0x4')](){const _0x11b55e=this[_0xbf51('0x5b')];this['annotations']['refreshPositioning'](),_0x11b55e[_0xbf51('0xe')]&&this['_updateBalloonPosition']();}['_showBalloon'](_0xbb5b10){if(this[_0xbf51('0x50')][_0xbf51('0x34')](_0xbb5b10[_0xbf51('0x3f')]))return;const _0x561460=this[_0xbf51('0x5b')]['content']['first'];_0x561460!==_0xbb5b10[_0xbf51('0x3f')]?(_0x561460&&this[_0xbf51('0x13')](_0x561460),this[_0xbf51('0x51')](_0xbb5b10[_0xbf51('0x3f')]),this[_0xbf51('0x5b')][_0xbf51('0x4e')]['clear'](),this[_0xbf51('0x5b')][_0xbf51('0x4e')][_0xbf51('0x14')](_0xbb5b10[_0xbf51('0x3f')]),this[_0xbf51('0x1')]()):this[_0xbf51('0x1')]();}[_0xbf51('0x1')](){const _0x176d45=this[_0xbf51('0x5b')][_0xbf51('0x4e')][_0xbf51('0x5d')],_0x5ec4ba=_0x176d45&&this[_0xbf51('0x35')]['getByView'](_0x176d45);if(!_0x5ec4ba||!this[_0xbf51('0x1a')][_0xbf51('0x34')](_0x5ec4ba))return;const _0x4f5c0e=this[_0xbf51('0x1a')][_0xbf51('0x21')](_0x5ec4ba)['element'],_0x2aa368=function(){const _0x3961d5=_0x3a1b49[_0xbf51('0x32')];return[_0x3961d5[_0xbf51('0x42')],_0x3961d5[_0xbf51('0x4c')],_0x3961d5[_0xbf51('0x48')],_0x3961d5[_0xbf51('0x26')],_0x3961d5[_0xbf51('0x16')],_0x3961d5[_0xbf51('0x7')]];}();this[_0xbf51('0x5b')][_0xbf51('0x5c')]({'target':_0x4f5c0e,'positions':_0x2aa368});}[_0xbf51('0x5')](){const _0x433e84=this[_0xbf51('0x5b')],_0x2d184d=_0x433e84[_0xbf51('0x4e')]['first'];_0x2d184d&&(this[_0xbf51('0x13')](_0x2d184d),_0x433e84[_0xbf51('0x5e')](),_0x433e84[_0xbf51('0x4e')]['clear']());}['_attachListeners'](_0x925fd8){this[_0xbf51('0x2a')](_0x925fd8,_0xbf51('0x30'),()=>this[_0xbf51('0x1')]()),this['listenTo'](_0x925fd8,_0xbf51('0x60'),(_0x2f1e8d,_0x218cdb)=>{this[_0xbf51('0x50')][_0xbf51('0x14')](_0x925fd8),this[_0xbf51('0x5')](),_0x218cdb();});}['_detachListeners'](_0x38b80b){this[_0xbf51('0x46')](_0x38b80b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x42f6=['_getItemBefore','appendChild','sidebar.preventScrollOutOfView','sidebar-attachtocontainer-missing-container','container','_annotations','_spaceBetweenItems','updateHeight','_updateLastItem','add','getSidebarItemView','top','refresh','set','_alignForTopChange','change:targetRect','listenTo','isActive','init','bottom','_setItemTop','_getItemAfter','_alignAfterItem','_sidebarItemViewToAnnotation','view','_createSidebarView','_alignBeforeItem','getIndex','locale','_getTargetTop','last','_lastItem','element','config','_destroySidebarItemView','clear','pluginName','get','target','_getMaxAvailableTop','nodeType','Sidebar','sidebar.container','change:_lastItem','_annotationToSidebarItemView','render','stopListening','rearrange','_recalculate','content','change:top','_recalculateBuffer','max','context','destroy','remove','targetRect','unbind','_activeAnnotation','define','_alignForBottomChange','addAnnotation','list','_alignToTargetRect','push','_targetTop','class','_detachFromContainer','length','minHeight'];(function(_0x7b6757,_0x42f65a){const _0x38d5e1=function(_0x39ccf7){while(--_0x39ccf7){_0x7b6757['push'](_0x7b6757['shift']());}};_0x38d5e1(++_0x42f65a);}(_0x42f6,0x84));const _0x38d5=function(_0x7b6757,_0x42f65a){_0x7b6757=_0x7b6757-0x0;let _0x38d5e1=_0x42f6[_0x7b6757];return _0x38d5e1;};import{ContextPlugin as _0x2fc423}from'ckeditor5/src/core.js';import{Rect as _0x5c5b9f,CKEditorError as _0x33a764}from'ckeditor5/src/utils.js';import _0x52bcdb from'./view/sidebarview.js';import _0x3e0c0f from'./view/sidebaritemview.js';export default class z extends _0x2fc423{static get[_0x38d5('0x2c')](){return _0x38d5('0x31');}constructor(_0x3e6c9d){super(_0x3e6c9d),this[_0x38d5('0x15')]('_lastItem',void 0x0),this[_0x38d5('0x20')]=this['_createSidebarView'](),this[_0x38d5('0x15')](_0x38d5('0xc'),null),this['_spaceBetweenItems']=0x19,this[_0x38d5('0x1f')]=new Map(),this[_0x38d5('0x34')]=new Map(),this['context'][_0x38d5('0x29')][_0x38d5('0x43')](_0x38d5('0xa'),!0x1),this[_0x38d5('0xd')]=null,this['_activeAnnotation']=null,this[_0x38d5('0x3b')]=[];}[_0x38d5('0x1a')](){const _0x58a33a=this[_0x38d5('0x3d')][_0x38d5('0x29')][_0x38d5('0x2d')](_0x38d5('0x32'));_0x58a33a&&this['setContainer'](_0x58a33a);}['setContainer'](_0x8bed1f){if(!y(_0x8bed1f))throw new _0x33a764('sidebar-setcontainer-invalid-element');this['container']=_0x8bed1f;}['_attachToContainer']({viewClass:_0x16041b='',spaceBetweenItems:_0x3c00c3=0x19}={}){if(!y(this['container']))throw new _0x33a764(_0x38d5('0xb'),this);this[_0x38d5('0xc')][_0x38d5('0x9')](this[_0x38d5('0x20')][_0x38d5('0x28')]),this[_0x38d5('0x20')][_0x38d5('0x4')]=_0x16041b,this[_0x38d5('0xe')]=_0x3c00c3;}[_0x38d5('0x37')]({removedAnnotation:_0x25c3fa,previousAnnotation:_0x264a46,nextAnnotation:_0x2492fd}){const _0x2bef40=this[_0x38d5('0x12')](_0x25c3fa);this['view'][_0x38d5('0x0')][_0x38d5('0x3f')](_0x2bef40),this['_destroySidebarItemView'](_0x25c3fa),_0x264a46&&this[_0x38d5('0x1')](this[_0x38d5('0x12')](_0x264a46)),_0x2492fd&&this['_alignToTargetRect'](this[_0x38d5('0x12')](_0x2492fd)),this[_0x38d5('0x10')]();}[_0x38d5('0x14')]({blurredAnnotation:_0x52a32c,activatedAnnotation:_0x10761f,disableAnimationOnActivatedAnnotation:_0xad13d8}){if(this[_0x38d5('0x42')]=_0x10761f,_0x52a32c){_0x52a32c[_0x38d5('0x19')]=!0x1;const _0xe12e04=this['getSidebarItemView'](_0x52a32c);_0xe12e04&&_0xad13d8&&(_0xe12e04['isAnimationDisabled']=!0x1);}if(_0x10761f){const _0x5eaa57=this[_0x38d5('0x12')](_0x10761f);_0x5eaa57&&(_0x10761f[_0x38d5('0x19')]=!0x0,_0xad13d8&&(_0x5eaa57['isAnimationDisabled']=!0x0,_0x5eaa57['top']+=0x1),this['_alignToTargetRect'](_0x5eaa57));}}[_0x38d5('0x5')](_0x5443b4){if(this['view'][_0x38d5('0x28')]['remove'](),_0x5443b4)for(const _0x5628b6 of _0x5443b4)this[_0x38d5('0x2a')](_0x5628b6);this[_0x38d5('0x20')]['list'][_0x38d5('0x2b')](),this['view'][_0x38d5('0x4')]='',this[_0x38d5('0x27')]=null;}[_0x38d5('0x45')](_0x595441,_0xf9ad98){_0xf9ad98||(_0xf9ad98=_0x595441['view']);const _0x4deb4b=new _0x3e0c0f(this[_0x38d5('0x3d')][_0x38d5('0x24')]);this[_0x38d5('0x1f')][_0x38d5('0x15')](_0x4deb4b,_0x595441),this[_0x38d5('0x34')][_0x38d5('0x15')](_0x595441,_0x4deb4b),_0x4deb4b[_0x38d5('0x39')][_0x38d5('0x11')](_0xf9ad98),this['listenTo'](_0x595441[_0x38d5('0x20')],_0x38d5('0x17'),(_0x1122db,_0x5b73c2,_0x71515)=>{const _0x5deb93=this[_0x38d5('0x25')](_0x595441,_0x71515);_0x4deb4b[_0x38d5('0x3')]!=_0x5deb93&&(_0x4deb4b['_targetTop']=_0x5deb93,this[_0x38d5('0x1c')](_0x4deb4b,_0x5deb93));}),this[_0x38d5('0x18')](_0x4deb4b,_0x38d5('0x3a'),()=>{this['_recalculate'](_0x4deb4b,_0x38d5('0x13'));}),this[_0x38d5('0x18')](_0x4deb4b,'change:bottom',()=>{this[_0x38d5('0x38')](_0x4deb4b,_0x38d5('0x1b'));}),this['_alignToTargetRect'](_0x4deb4b);const _0x5b9390=this[_0x38d5('0x8')](_0x4deb4b);if(_0x5b9390)this[_0x38d5('0x1e')](_0x5b9390,_0x4deb4b)||this[_0x38d5('0x1')](_0x4deb4b);else this[_0x38d5('0x1')](_0x4deb4b);return this[_0x38d5('0x10')](),this[_0x38d5('0x20')][_0x38d5('0x0')]['add'](_0x4deb4b),_0x4deb4b;}[_0x38d5('0x16')](_0x141968){if(!_0x141968[_0x38d5('0x39')]['length'])return;const _0x2cb324=this[_0x38d5('0x8')](_0x141968);if(!_0x2cb324)return;const _0x262681=this[_0x38d5('0x1f')]['get'](_0x2cb324),_0x335209=this['_activeAnnotation'];_0x335209&&_0x335209===_0x262681?this[_0x38d5('0x1e')](_0x2cb324,_0x141968):this[_0x38d5('0x22')](_0x141968,_0x2cb324);}['_alignForBottomChange'](_0xcc0e41){if(!_0xcc0e41[_0x38d5('0x39')][_0x38d5('0x6')])return;const _0x579ceb=this[_0x38d5('0x1d')](_0xcc0e41);if(!_0x579ceb)return;const _0xd19a=this[_0x38d5('0x1f')]['get'](_0x579ceb),_0x4d6c39=this[_0x38d5('0x3d')][_0x38d5('0x29')][_0x38d5('0x2d')](_0x38d5('0xa')),_0x59f6a4=this[_0x38d5('0x42')];_0x59f6a4&&_0x59f6a4===_0xd19a&&_0x4d6c39?(this[_0x38d5('0x22')](_0x579ceb,_0xcc0e41),this[_0x38d5('0x1e')](_0xcc0e41,_0x579ceb)):_0x59f6a4&&_0x59f6a4===_0xd19a?this[_0x38d5('0x22')](_0x579ceb,_0xcc0e41):this[_0x38d5('0x1e')](_0xcc0e41,_0x579ceb);}[_0x38d5('0x38')](_0x350fad,_0x37192b){0x0===this[_0x38d5('0x3b')][_0x38d5('0x6')]&&setTimeout(()=>{for(const {sidebarItemView:_0x1977f2,changedProp:_0x24d6f0}of this[_0x38d5('0x3b')])'top'===_0x24d6f0?this[_0x38d5('0x16')](_0x1977f2):this[_0x38d5('0x44')](_0x1977f2);this[_0x38d5('0x3b')]=[];},0xa),this[_0x38d5('0x3b')][_0x38d5('0x2')]({'sidebarItemView':_0x350fad,'changedProp':_0x37192b});}[_0x38d5('0x12')](_0x37175b){return this[_0x38d5('0x34')][_0x38d5('0x2d')](_0x37175b);}['destroy'](){this[_0x38d5('0x36')](),this[_0x38d5('0x20')]['destroy']();}[_0x38d5('0x2a')](_0x1c056e){const _0x30386b=this[_0x38d5('0x12')](_0x1c056e);this[_0x38d5('0x36')](_0x30386b),this[_0x38d5('0x36')](_0x1c056e[_0x38d5('0x20')]),_0x30386b[_0x38d5('0x3e')](),this[_0x38d5('0x34')]['delete'](_0x1c056e),this[_0x38d5('0x1f')]['delete'](_0x30386b);}[_0x38d5('0x21')](){const _0x429f69=new _0x52bcdb(this[_0x38d5('0x3d')][_0x38d5('0x24')]);return _0x429f69[_0x38d5('0x35')](),this['on'](_0x38d5('0x33'),(_0x1d22f7,_0x1b50a8,_0x15fc13,_0x238ae5)=>{_0x238ae5&&_0x429f69[_0x38d5('0x41')]('minHeight'),_0x15fc13?_0x429f69['bind'](_0x38d5('0x7'))['to'](_0x15fc13,_0x38d5('0x1b')):_0x429f69['minHeight']=null;}),_0x429f69;}['_updateLastItem'](){var _0x1b66ee;this[_0x38d5('0x27')]=(null===(_0x1b66ee=this[_0x38d5('0xd')])||void 0x0===_0x1b66ee?void 0x0:_0x1b66ee['last'])?this[_0x38d5('0x12')](this['_annotations'][_0x38d5('0x26')]):null;}['_getItemBefore'](_0x557b9f){var _0x3a076a;const _0x26a8b1=this[_0x38d5('0x1f')][_0x38d5('0x2d')](_0x557b9f),_0x4149f6=_0x26a8b1&&(null===(_0x3a076a=this[_0x38d5('0xd')])||void 0x0===_0x3a076a?void 0x0:_0x3a076a[_0x38d5('0x2d')](this[_0x38d5('0xd')][_0x38d5('0x23')](_0x26a8b1)-0x1));return _0x4149f6&&this['getSidebarItemView'](_0x4149f6)||null;}['_getItemAfter'](_0x459656){var _0x47d444;const _0x3f7a93=this[_0x38d5('0x1f')][_0x38d5('0x2d')](_0x459656),_0x43b5d8=_0x3f7a93&&(null===(_0x47d444=this[_0x38d5('0xd')])||void 0x0===_0x47d444?void 0x0:_0x47d444[_0x38d5('0x2d')](this[_0x38d5('0xd')][_0x38d5('0x23')](_0x3f7a93)+0x1));return _0x43b5d8&&this[_0x38d5('0x12')](_0x43b5d8)||null;}[_0x38d5('0x22')](_0x393438,_0x185908){_0x393438[_0x38d5('0xf')]();const _0x3e1d9c=M(_0x185908['bottom']+this[_0x38d5('0xe')],_0x393438[_0x38d5('0x13')]);return!!_0x3e1d9c&&(this['_setItemTop'](_0x185908,_0x185908[_0x38d5('0x13')]-_0x3e1d9c),!0x0);}[_0x38d5('0x1e')](_0x4348c2,_0x490fab){_0x4348c2[_0x38d5('0xf')]();const _0x51b06c=M(_0x4348c2[_0x38d5('0x1b')]+this[_0x38d5('0xe')],_0x490fab['top']);return!!_0x51b06c&&(this[_0x38d5('0x1c')](_0x490fab,_0x490fab[_0x38d5('0x13')]+_0x51b06c,!0x1),!0x0);}[_0x38d5('0x1')](_0x1df72d){const _0x3e372b=this['_sidebarItemViewToAnnotation'][_0x38d5('0x2d')](_0x1df72d);if(!_0x3e372b||!_0x3e372b['target']||!_0x3e372b[_0x38d5('0x40')])return;const _0x2924a2=this[_0x38d5('0x25')](_0x3e372b,_0x3e372b[_0x38d5('0x40')]);this[_0x38d5('0x1c')](_0x1df72d,_0x2924a2);}[_0x38d5('0x25')](_0xc64d61,_0x37ebdb){if(null===_0x37ebdb)return 0x0;if(_0xc64d61[_0x38d5('0x2e')]instanceof _0x5c5b9f)return _0x37ebdb['top'];{const _0x4598f4=new _0x5c5b9f(this['view']['element'])[_0x38d5('0x13')];return _0x37ebdb[_0x38d5('0x13')]-_0x4598f4;}}['_setItemTop'](_0x330962,_0x272f7e,_0x4ccb7b=this[_0x38d5('0x3d')]['config'][_0x38d5('0x2d')](_0x38d5('0xa'))){_0x4ccb7b&&(_0x272f7e=Math[_0x38d5('0x3c')](_0x272f7e,this['_getMaxAvailableTop'](_0x330962))),_0x330962['top']=_0x272f7e;}[_0x38d5('0x2f')](_0x4fc921){let _0xba4338=this[_0x38d5('0x8')](_0x4fc921),_0x29af13=0x0;for(;_0xba4338;)_0xba4338[_0x38d5('0xf')](),_0x29af13+=this[_0x38d5('0xe')]+_0xba4338['height'],_0xba4338=this[_0x38d5('0x8')](_0xba4338);return _0x29af13;}}function M(_0xd2f859,_0x39e014){return Math['max'](_0xd2f859-_0x39e014,0x0);}function y(_0x2f131f){return null!==_0x2f131f&&'object'==typeof _0x2f131f&&0x1===_0x2f131f[_0x38d5('0x30')];}
|
|
23
|
+
const _0x2db0=['_getMaxAvailableTop','top','_recalculateBuffer','_lastItem','last','targetRect','length','listenTo','get','config','list','_destroySidebarItemView','pluginName','sidebar-attachtocontainer-missing-container','destroy','target','_createSidebarView','isActive','change:top','object','container','refresh','_alignToTargetRect','sidebar.container','context','_setItemTop','sidebar.preventScrollOutOfView','bottom','clear','_recalculate','setContainer','_getItemBefore','_sidebarItemViewToAnnotation','init','getSidebarItemView','_targetTop','isAnimationDisabled','change:targetRect','define','delete','set','view','bind','_alignForBottomChange','change:_lastItem','_spaceBetweenItems','_updateLastItem','content','_annotationToSidebarItemView','unbind','add','class','change:bottom','_activeAnnotation','_alignAfterItem','updateHeight','element','nodeType','rearrange','Sidebar','max','remove','_annotations','stopListening','getIndex','_alignForTopChange','_getTargetTop','minHeight','height','_detachFromContainer','_alignBeforeItem'];(function(_0x379937,_0x2db0df){const _0x204add=function(_0x2ea68b){while(--_0x2ea68b){_0x379937['push'](_0x379937['shift']());}};_0x204add(++_0x2db0df);}(_0x2db0,0x14d));const _0x204a=function(_0x379937,_0x2db0df){_0x379937=_0x379937-0x0;let _0x204add=_0x2db0[_0x379937];return _0x204add;};import{ContextPlugin as _0x364419}from'ckeditor5/src/core.js';import{Rect as _0x5eb75c,CKEditorError as _0x4166f9}from'ckeditor5/src/utils.js';import _0x39873c from'./view/sidebarview.js';import _0x2188e9 from'./view/sidebaritemview.js';export default class z extends _0x364419{static get[_0x204a('0x22')](){return _0x204a('0xa');}constructor(_0x5570ce){super(_0x5570ce),this[_0x204a('0x3e')](_0x204a('0x19'),void 0x0),this[_0x204a('0x3f')]=this[_0x204a('0x26')](),this[_0x204a('0x3e')]('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x204a('0x46')]=new Map(),this['context'][_0x204a('0x1f')][_0x204a('0x3c')]('sidebar.preventScrollOutOfView',!0x1),this[_0x204a('0xd')]=null,this['_activeAnnotation']=null,this[_0x204a('0x18')]=[];}[_0x204a('0x37')](){const _0x56f9e8=this[_0x204a('0x2e')][_0x204a('0x1f')][_0x204a('0x1e')](_0x204a('0x2d'));_0x56f9e8&&this[_0x204a('0x34')](_0x56f9e8);}[_0x204a('0x34')](_0x2b1945){if(!y(_0x2b1945))throw new _0x4166f9('sidebar-setcontainer-invalid-element');this['container']=_0x2b1945;}['_attachToContainer']({viewClass:_0x45bc2d='',spaceBetweenItems:_0x4acc1a=0x19}={}){if(!y(this[_0x204a('0x2a')]))throw new _0x4166f9(_0x204a('0x23'),this);this[_0x204a('0x2a')]['appendChild'](this[_0x204a('0x3f')]['element']),this['view'][_0x204a('0x2')]=_0x45bc2d,this[_0x204a('0x43')]=_0x4acc1a;}[_0x204a('0x9')]({removedAnnotation:_0x3bbd9e,previousAnnotation:_0x2f16e3,nextAnnotation:_0x263445}){const _0x5b53f7=this[_0x204a('0x38')](_0x3bbd9e);this[_0x204a('0x3f')][_0x204a('0x20')][_0x204a('0xc')](_0x5b53f7),this[_0x204a('0x21')](_0x3bbd9e),_0x2f16e3&&this[_0x204a('0x2c')](this[_0x204a('0x38')](_0x2f16e3)),_0x263445&&this[_0x204a('0x2c')](this['getSidebarItemView'](_0x263445)),this['_updateLastItem']();}[_0x204a('0x2b')]({blurredAnnotation:_0x35bf8c,activatedAnnotation:_0x50e2b6,disableAnimationOnActivatedAnnotation:_0x66f538}){if(this[_0x204a('0x4')]=_0x50e2b6,_0x35bf8c){_0x35bf8c[_0x204a('0x27')]=!0x1;const _0x5e4eec=this['getSidebarItemView'](_0x35bf8c);_0x5e4eec&&_0x66f538&&(_0x5e4eec[_0x204a('0x3a')]=!0x1);}if(_0x50e2b6){const _0x1704d0=this[_0x204a('0x38')](_0x50e2b6);_0x1704d0&&(_0x50e2b6[_0x204a('0x27')]=!0x0,_0x66f538&&(_0x1704d0[_0x204a('0x3a')]=!0x0,_0x1704d0['top']+=0x1),this['_alignToTargetRect'](_0x1704d0));}}[_0x204a('0x14')](_0xc4810d){if(this[_0x204a('0x3f')][_0x204a('0x7')][_0x204a('0xc')](),_0xc4810d)for(const _0x79725a of _0xc4810d)this['_destroySidebarItemView'](_0x79725a);this[_0x204a('0x3f')][_0x204a('0x20')][_0x204a('0x32')](),this[_0x204a('0x3f')][_0x204a('0x2')]='',this[_0x204a('0x19')]=null;}['addAnnotation'](_0x407028,_0x46d106){_0x46d106||(_0x46d106=_0x407028[_0x204a('0x3f')]);const _0x16872f=new _0x2188e9(this[_0x204a('0x2e')]['locale']);this[_0x204a('0x36')]['set'](_0x16872f,_0x407028),this[_0x204a('0x46')]['set'](_0x407028,_0x16872f),_0x16872f[_0x204a('0x45')][_0x204a('0x1')](_0x46d106),this[_0x204a('0x1d')](_0x407028[_0x204a('0x3f')],_0x204a('0x3b'),(_0x134a4d,_0x529309,_0xf32b04)=>{const _0x4a32d5=this['_getTargetTop'](_0x407028,_0xf32b04);_0x16872f[_0x204a('0x39')]!=_0x4a32d5&&(_0x16872f[_0x204a('0x39')]=_0x4a32d5,this[_0x204a('0x2f')](_0x16872f,_0x4a32d5));}),this['listenTo'](_0x16872f,_0x204a('0x28'),()=>{this[_0x204a('0x33')](_0x16872f,_0x204a('0x17'));}),this[_0x204a('0x1d')](_0x16872f,_0x204a('0x3'),()=>{this['_recalculate'](_0x16872f,_0x204a('0x31'));}),this[_0x204a('0x2c')](_0x16872f);const _0x3ae903=this[_0x204a('0x35')](_0x16872f);if(_0x3ae903)this['_alignAfterItem'](_0x3ae903,_0x16872f)||this['_alignToTargetRect'](_0x16872f);else this[_0x204a('0x2c')](_0x16872f);return this['_updateLastItem'](),this[_0x204a('0x3f')][_0x204a('0x20')][_0x204a('0x1')](_0x16872f),_0x16872f;}['_alignForTopChange'](_0x383863){if(!_0x383863[_0x204a('0x45')][_0x204a('0x1c')])return;const _0x3eed22=this['_getItemBefore'](_0x383863);if(!_0x3eed22)return;const _0x545f63=this[_0x204a('0x36')][_0x204a('0x1e')](_0x3eed22),_0x35c270=this[_0x204a('0x4')];_0x35c270&&_0x35c270===_0x545f63?this['_alignAfterItem'](_0x3eed22,_0x383863):this[_0x204a('0x15')](_0x383863,_0x3eed22);}['_alignForBottomChange'](_0x1839b7){if(!_0x1839b7[_0x204a('0x45')][_0x204a('0x1c')])return;const _0x2f69a1=this['_getItemAfter'](_0x1839b7);if(!_0x2f69a1)return;const _0x33ae60=this['_sidebarItemViewToAnnotation'][_0x204a('0x1e')](_0x2f69a1),_0x13e95c=this[_0x204a('0x2e')]['config']['get'](_0x204a('0x30')),_0x1d4e7b=this[_0x204a('0x4')];_0x1d4e7b&&_0x1d4e7b===_0x33ae60&&_0x13e95c?(this[_0x204a('0x15')](_0x2f69a1,_0x1839b7),this[_0x204a('0x5')](_0x1839b7,_0x2f69a1)):_0x1d4e7b&&_0x1d4e7b===_0x33ae60?this[_0x204a('0x15')](_0x2f69a1,_0x1839b7):this[_0x204a('0x5')](_0x1839b7,_0x2f69a1);}[_0x204a('0x33')](_0xadd524,_0x2d5fa4){0x0===this['_recalculateBuffer'][_0x204a('0x1c')]&&setTimeout(()=>{for(const {sidebarItemView:_0x166474,changedProp:_0x23ab3c}of this[_0x204a('0x18')])_0x204a('0x17')===_0x23ab3c?this[_0x204a('0x10')](_0x166474):this[_0x204a('0x41')](_0x166474);this[_0x204a('0x18')]=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0xadd524,'changedProp':_0x2d5fa4});}['getSidebarItemView'](_0x13ad49){return this[_0x204a('0x46')][_0x204a('0x1e')](_0x13ad49);}[_0x204a('0x24')](){this[_0x204a('0xe')](),this[_0x204a('0x3f')][_0x204a('0x24')]();}[_0x204a('0x21')](_0x146f80){const _0x51e6a7=this[_0x204a('0x38')](_0x146f80);this['stopListening'](_0x51e6a7),this[_0x204a('0xe')](_0x146f80['view']),_0x51e6a7[_0x204a('0x24')](),this[_0x204a('0x46')][_0x204a('0x3d')](_0x146f80),this[_0x204a('0x36')]['delete'](_0x51e6a7);}[_0x204a('0x26')](){const _0x22406a=new _0x39873c(this[_0x204a('0x2e')]['locale']);return _0x22406a['render'](),this['on'](_0x204a('0x42'),(_0x336fb6,_0x2c4418,_0x22c83d,_0x1e52ad)=>{_0x1e52ad&&_0x22406a[_0x204a('0x0')](_0x204a('0x12')),_0x22c83d?_0x22406a[_0x204a('0x40')](_0x204a('0x12'))['to'](_0x22c83d,_0x204a('0x31')):_0x22406a['minHeight']=null;}),_0x22406a;}[_0x204a('0x44')](){var _0xfbdaa3;this[_0x204a('0x19')]=(null===(_0xfbdaa3=this[_0x204a('0xd')])||void 0x0===_0xfbdaa3?void 0x0:_0xfbdaa3[_0x204a('0x1a')])?this['getSidebarItemView'](this[_0x204a('0xd')][_0x204a('0x1a')]):null;}[_0x204a('0x35')](_0xc322e4){var _0x4fff7e;const _0x4d88bd=this[_0x204a('0x36')][_0x204a('0x1e')](_0xc322e4),_0x2c3565=_0x4d88bd&&(null===(_0x4fff7e=this[_0x204a('0xd')])||void 0x0===_0x4fff7e?void 0x0:_0x4fff7e[_0x204a('0x1e')](this[_0x204a('0xd')][_0x204a('0xf')](_0x4d88bd)-0x1));return _0x2c3565&&this[_0x204a('0x38')](_0x2c3565)||null;}['_getItemAfter'](_0x3368b5){var _0x13ed02;const _0x4aca04=this['_sidebarItemViewToAnnotation'][_0x204a('0x1e')](_0x3368b5),_0x568ab6=_0x4aca04&&(null===(_0x13ed02=this[_0x204a('0xd')])||void 0x0===_0x13ed02?void 0x0:_0x13ed02[_0x204a('0x1e')](this[_0x204a('0xd')][_0x204a('0xf')](_0x4aca04)+0x1));return _0x568ab6&&this[_0x204a('0x38')](_0x568ab6)||null;}[_0x204a('0x15')](_0x24e1fe,_0x32b640){_0x24e1fe['updateHeight']();const _0x227a0d=M(_0x32b640[_0x204a('0x31')]+this[_0x204a('0x43')],_0x24e1fe[_0x204a('0x17')]);return!!_0x227a0d&&(this[_0x204a('0x2f')](_0x32b640,_0x32b640[_0x204a('0x17')]-_0x227a0d),!0x0);}[_0x204a('0x5')](_0x3a6170,_0x5c7a59){_0x3a6170[_0x204a('0x6')]();const _0x10503b=M(_0x3a6170['bottom']+this[_0x204a('0x43')],_0x5c7a59[_0x204a('0x17')]);return!!_0x10503b&&(this[_0x204a('0x2f')](_0x5c7a59,_0x5c7a59[_0x204a('0x17')]+_0x10503b,!0x1),!0x0);}['_alignToTargetRect'](_0x3476ec){const _0x2d356f=this[_0x204a('0x36')][_0x204a('0x1e')](_0x3476ec);if(!_0x2d356f||!_0x2d356f[_0x204a('0x25')]||!_0x2d356f['targetRect'])return;const _0x1be9d5=this[_0x204a('0x11')](_0x2d356f,_0x2d356f[_0x204a('0x1b')]);this[_0x204a('0x2f')](_0x3476ec,_0x1be9d5);}[_0x204a('0x11')](_0x3ddf68,_0x5902c6){if(null===_0x5902c6)return 0x0;if(_0x3ddf68[_0x204a('0x25')]instanceof _0x5eb75c)return _0x5902c6[_0x204a('0x17')];{const _0x2dd699=new _0x5eb75c(this[_0x204a('0x3f')][_0x204a('0x7')])[_0x204a('0x17')];return _0x5902c6[_0x204a('0x17')]-_0x2dd699;}}['_setItemTop'](_0x4165aa,_0x14ac13,_0x3e5916=this[_0x204a('0x2e')]['config'][_0x204a('0x1e')]('sidebar.preventScrollOutOfView')){_0x3e5916&&(_0x14ac13=Math[_0x204a('0xb')](_0x14ac13,this[_0x204a('0x16')](_0x4165aa))),_0x4165aa[_0x204a('0x17')]=_0x14ac13;}[_0x204a('0x16')](_0x11a234){let _0x1f20f2=this[_0x204a('0x35')](_0x11a234),_0xab897=0x0;for(;_0x1f20f2;)_0x1f20f2['updateHeight'](),_0xab897+=this[_0x204a('0x43')]+_0x1f20f2[_0x204a('0x13')],_0x1f20f2=this[_0x204a('0x35')](_0x1f20f2);return _0xab897;}}function M(_0x45bb9a,_0x5e25fe){return Math[_0x204a('0xb')](_0x45bb9a-_0x5e25fe,0x0);}function y(_0x2b38f0){return null!==_0x2b38f0&&_0x204a('0x29')==typeof _0x2b38f0&&0x1===_0x2b38f0[_0x204a('0x8')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3635=['add','span','extendTemplate','number','ck-annotation-counter','icon','setTemplate','bind','...','set','toString','children','bindTemplate','isDirty','counterView','ck-annotation-counter__badge','ck-annotation-counter__badge--edit-mode','annotationType'];(function(_0x319599,_0x36352f){const _0x5343bd=function(_0x4ebb4b){while(--_0x4ebb4b){_0x319599['push'](_0x319599['shift']());}};_0x5343bd(++_0x36352f);}(_0x3635,0x134));const _0x5343=function(_0x319599,_0x36352f){_0x319599=_0x319599-0x0;let _0x5343bd=_0x3635[_0x319599];return _0x5343bd;};import{ButtonView as _0x53bb9d,View as _0x5dbfe5}from'ckeditor5/src/ui.js';import _0x1252ba from'../../../theme/icons/add-comment.svg';export default class D extends _0x53bb9d{constructor(_0x4d117b){super(_0x4d117b);const _0x1f590d=this[_0x5343('0xa')];this['set'](_0x5343('0xb'),!0x1),this['set']('number',0x0),this[_0x5343('0x5')]('_badge')['to'](this,'isDirty',this,_0x5343('0x1'),(_0xf9ae23,_0x1dea52)=>_0xf9ae23?_0x5343('0x6'):_0x1dea52[_0x5343('0x8')]()),this[_0x5343('0x7')]('annotationType',''),this[_0x5343('0x3')]=_0x1252ba,this[_0x5343('0x0')]({'attributes':{'class':[_0x5343('0x2')]}}),this[_0x5343('0xc')]=new _0x5dbfe5(),this[_0x5343('0xc')][_0x5343('0x4')]({'tag':_0x5343('0x11'),'attributes':{'class':[_0x5343('0xd'),_0x1f590d['to'](_0x5343('0xf'),_0x577150=>'ck-annotation-counter__badge--'+_0x577150),_0x1f590d['if']('isDirty',_0x5343('0xe'))]},'children':[{'text':_0x1f590d['to']('_badge')}]}),this[_0x5343('0x9')][_0x5343('0x10')](this[_0x5343('0xc')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5851=['add','isActive','ck-rounded-corners','focus','_mutationObserver','content','detach','bindTemplate','listenTo','mainView','createCollection','fire','focusTracker','element','destroy','ck-annotation-wrapper','clear','render','Esc','keystrokes','clientHeight','setTemplate','set','type','_updateHeight'];(function(_0x11ee87,_0x585149){const _0x27684f=function(_0x4597f8){while(--_0x4597f8){_0x11ee87['push'](_0x11ee87['shift']());}};_0x27684f(++_0x585149);}(_0x5851,0xaf));const _0x2768=function(_0x11ee87,_0x585149){_0x11ee87=_0x11ee87-0x0;let _0x27684f=_0x5851[_0x11ee87];return _0x27684f;};import{View as _0x4013b2}from'ckeditor5/src/ui.js';import{FocusTracker as _0xd39a96,KeystrokeHandler as _0x18ab9a,uid as _0x29cb9c}from'ckeditor5/src/utils.js';import _0x5af922 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x4013b2{constructor(_0x1d0387,_0x3eeae2){super(_0x1d0387),this['id']=_0x29cb9c(),this[_0x2768('0xc')]=new _0xd39a96(),this[_0x2768('0x13')]=new _0x18ab9a(),this[_0x2768('0x13')][_0x2768('0x16')]('Esc',(_0x2bd3ae,_0x4b665a)=>this[_0x2768('0xb')](_0x2768('0x12'),_0x4b665a)),this[_0x2768('0x16')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x2768('0x16')]('height',0x0),this['set'](_0x2768('0x1'),!0x1),this[_0x2768('0x16')]('isDirty',!0x1),this[_0x2768('0x16')]('length',0x0),this[_0x2768('0x16')](_0x2768('0x17'),''),this[_0x2768('0x4')]=_0x5af922(()=>this[_0x2768('0x18')]()),this['content']=this[_0x2768('0xa')](),this[_0x2768('0x5')][_0x2768('0x0')](_0x3eeae2),this[_0x2768('0x9')]=_0x3eeae2;const _0x44b442=this[_0x2768('0x7')];this[_0x2768('0x15')]({'tag':'div','attributes':{'class':['ck',_0x2768('0xf'),_0x2768('0x2'),_0x44b442['if']('isActive','ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x2768('0x5')]});}[_0x2768('0x11')](){super[_0x2768('0x11')](),this[_0x2768('0xc')][_0x2768('0x0')](this[_0x2768('0xd')]),this[_0x2768('0x13')][_0x2768('0x8')](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content'][_0x2768('0x10')](),this[_0x2768('0x13')][_0x2768('0xe')](),this['focusTracker'][_0x2768('0xe')](),this[_0x2768('0x4')][_0x2768('0x6')](),super[_0x2768('0xe')]();}[_0x2768('0x3')](){this[_0x2768('0xd')][_0x2768('0x3')]();}['_updateHeight'](){const _0xcad4c=this[_0x2768('0xd')][_0x2768('0x14')];_0xcad4c&&(this['height']=_0xcad4c);}}
|