@ckeditor/ckeditor5-comments 0.0.0-nightly-20240129.0 → 0.0.0-nightly-20240131.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-20240131.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-20240131.0",
|
|
48
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240131.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 _0x185a=['targetRect','focusTracker','isActive','view','annotation-invalid-target','offsetParent','nodeType','object','render','_type','focusableElements','destroy','updateTargetRect','_target','mainView','item','add','_assertCorrectTarget','stopListening','element','_getNormalizedTarget','remove','length','innerView','type','refreshVisibility','isArray','filter','getClientRects','target','clear','set','isVisible','function'];(function(_0x26056a,_0x185a79){const _0x54a789=function(_0xb2624){while(--_0xb2624){_0x26056a['push'](_0x26056a['shift']());}};_0x54a789(++_0x185a79);}(_0x185a,0x103));const _0x54a7=function(_0x26056a,_0x185a79){_0x26056a=_0x26056a-0x0;let _0x54a789=_0x185a[_0x26056a];return _0x54a789;};import{CKEditorError as _0x30a944,Rect as _0x585f51,Collection as _0x493dfe,ObservableMixin as _0x4c1f18}from'ckeditor5/src/utils.js';export default class d extends _0x4c1f18(){constructor({view:_0x395b7a,target:_0x506b6d,type:_0x235057,isVisible:_0xe310f9=!0x0}){super(),this[_0x54a7('0x10')]=_0x395b7a,this[_0x54a7('0x10')]['element']||this[_0x54a7('0x10')][_0x54a7('0x15')](),this['_type']=_0x235057,this[_0x54a7('0x1a')]=_0x506b6d,d[_0x54a7('0x1e')](this[_0x54a7('0x21')]()),this['focusableElements']=new _0x493dfe([this[_0x54a7('0x10')][_0x54a7('0x20')]],{'idProperty':'_id'}),this[_0x54a7('0x17')]['on'](_0x54a7('0x1d'),(_0xb84b52,_0x4cf52b)=>{this[_0x54a7('0x10')][_0x54a7('0xe')][_0x54a7('0x1d')](_0x4cf52b);}),this['focusableElements']['on'](_0x54a7('0x0'),(_0x53983d,_0xc87118)=>{this[_0x54a7('0x10')][_0x54a7('0xe')][_0x54a7('0x0')](_0xc87118);}),this[_0x54a7('0xa')](_0x54a7('0xb'),_0xe310f9);}get[_0x54a7('0x3')](){return _0x54a7('0xc')==typeof this[_0x54a7('0x16')]?this[_0x54a7('0x16')]():this[_0x54a7('0x16')];}get[_0x54a7('0x2')](){return this[_0x54a7('0x10')][_0x54a7('0x1b')];}get[_0x54a7('0x8')](){const _0x3d1cad=this['_getNormalizedTarget']();return d[_0x54a7('0x1e')](_0x3d1cad),_0x3d1cad;}get[_0x54a7('0xd')](){const _0x2469db=this['target'];if(null===_0x2469db)return null;if(_0x2469db instanceof _0x585f51)return _0x2469db;const _0x2cc3a1=_0x2469db[_0x54a7('0x6')](_0x4d875a=>function(_0x20765a){const _0x579a16=_0x20765a[_0x54a7('0x12')];if(_0x579a16)return!0x0;const _0x4abf50=_0x20765a[_0x54a7('0x7')]()['item'](0x0);return!!_0x4abf50;}(_0x4d875a));return 0x0===_0x2cc3a1[_0x54a7('0x1')]?null:new _0x585f51(_0x2cc3a1[0x0]['getClientRects']()[_0x54a7('0x1c')](0x0));}get[_0x54a7('0xf')](){return this[_0x54a7('0x10')]['isActive'];}set[_0x54a7('0xf')](_0x3f0ac9){this[_0x54a7('0x10')][_0x54a7('0xf')]=_0x3f0ac9,this[_0x54a7('0x10')][_0x54a7('0x1b')][_0x54a7('0xf')]=_0x3f0ac9;}[_0x54a7('0x19')](){this['view'][_0x54a7('0xd')]=this['targetRect'];}[_0x54a7('0x18')](){this[_0x54a7('0x17')]['stopListening'](),this[_0x54a7('0x17')][_0x54a7('0x9')](),this[_0x54a7('0x1f')]();}[_0x54a7('0x4')](){this[_0x54a7('0xb')]=!!this[_0x54a7('0xd')];}static[_0x54a7('0x1e')](_0x24ebe4){if(!(null===_0x24ebe4||_0x24ebe4 instanceof _0x585f51||Array[_0x54a7('0x5')](_0x24ebe4)&&_0x24ebe4['every'](_0x327ef7=>y(_0x327ef7))))throw new _0x30a944(_0x54a7('0x11'),null,{'target':_0x24ebe4});}['_getNormalizedTarget'](){const _0x44f841=_0x54a7('0xc')==typeof this['_target']?this[_0x54a7('0x1a')]():this['_target'];return y(_0x44f841)?[_0x44f841]:_0x44f841;}}function y(_0x3cd3ba){return null!==_0x3cd3ba&&_0x54a7('0x14')==typeof _0x3cd3ba&&'nodeType'in _0x3cd3ba&&0x1===_0x3cd3ba[_0x54a7('0x13')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8f20=['listenTo','innerView','focus','_getOrderInContent','delete','annotationcollection-duplicated-item','getByInnerView','fire','getByView','_sort','updateTargetRect','view','refreshPositioning','get','from','sort','_innerViewToAnnotation','add','top','clear','left','getIndex','remove','change:isFocused','focusTracker','focusableElements','stopListening','length','set','has','annotationcollection-not-existing-item','_viewToAnnotation','targetRect','destroy','_focusTracker','isFocused'];(function(_0x1e44c7,_0x8f20a0){const _0x4f1894=function(_0xc4487f){while(--_0xc4487f){_0x1e44c7['push'](_0x1e44c7['shift']());}};_0x4f1894(++_0x8f20a0);}(_0x8f20,0xe3));const _0x4f18=function(_0x1e44c7,_0x8f20a0){_0x1e44c7=_0x1e44c7-0x0;let _0x4f1894=_0x8f20[_0x1e44c7];return _0x4f1894;};import{CKEditorError as _0x46971d,Collection as _0x1c787b,FocusTracker as _0x19fdd8}from'ckeditor5/src/utils.js';export default class x extends _0x1c787b{constructor(_0xeb42d6=[]){super(),this[_0x4f18('0x5')]=new Map(),this[_0x4f18('0x14')]=new Map(),this[_0x4f18('0x17')]=new _0x19fdd8(),this[_0x4f18('0x17')]['on'](_0x4f18('0xc'),(_0x32f025,_0x5efebf,_0x22503d)=>{_0x22503d||this[_0x4f18('0x20')]('blur');});for(const _0xba8d91 of _0xeb42d6)this[_0x4f18('0x6')](_0xba8d91);}get['isFocused'](){return this[_0x4f18('0x17')][_0x4f18('0x18')];}[_0x4f18('0x6')](_0x3f73fb){if(this[_0x4f18('0x12')](_0x3f73fb))throw new _0x46971d(_0x4f18('0x1e'),null);this[_0x4f18('0x5')][_0x4f18('0x11')](_0x3f73fb[_0x4f18('0x1a')],_0x3f73fb),this[_0x4f18('0x14')]['set'](_0x3f73fb[_0x4f18('0x0')],_0x3f73fb);for(const _0x59a316 of _0x3f73fb[_0x4f18('0xe')])this[_0x4f18('0x17')][_0x4f18('0x6')](_0x59a316);this[_0x4f18('0x19')](_0x3f73fb['focusableElements'],_0x4f18('0x6'),(_0x4fa30e,_0x3250e3)=>{this[_0x4f18('0x17')]['add'](_0x3250e3);}),this[_0x4f18('0x19')](_0x3f73fb[_0x4f18('0xe')],_0x4f18('0xb'),(_0x1bc4d9,_0x220c87)=>{this[_0x4f18('0x17')][_0x4f18('0xb')](_0x220c87);}),this[_0x4f18('0x19')](_0x3f73fb['view'][_0x4f18('0xd')],_0x4f18('0xc'),(_0x3b39e4,_0x480dd0,_0x2c6755)=>{_0x2c6755&&this['fire'](_0x4f18('0x1b'),_0x3f73fb);}),_0x3f73fb[_0x4f18('0x23')]();const _0x40bbd8=this[_0x4f18('0x1c')](_0x3f73fb[_0x4f18('0x0')][_0x4f18('0x15')]);return super[_0x4f18('0x6')](_0x3f73fb,_0x40bbd8);}[_0x4f18('0xb')](_0x54a291){if(!this[_0x4f18('0x12')](_0x54a291))throw new _0x46971d(_0x4f18('0x13'),null);this[_0x4f18('0xf')](_0x54a291['view'][_0x4f18('0xd')]),this[_0x4f18('0xf')](_0x54a291['focusableElements']);for(const _0x18848b of _0x54a291[_0x4f18('0xe')])this[_0x4f18('0x17')][_0x4f18('0xb')](_0x18848b);return this[_0x4f18('0x14')][_0x4f18('0x1d')](_0x54a291[_0x4f18('0x0')]),this[_0x4f18('0x5')][_0x4f18('0x1d')](_0x54a291[_0x4f18('0x1a')]),super[_0x4f18('0xb')](_0x54a291);}[_0x4f18('0x1f')](_0x25ccc6){return this['_innerViewToAnnotation']['get'](_0x25ccc6);}[_0x4f18('0x21')](_0x4f9fca){return this[_0x4f18('0x14')][_0x4f18('0x2')](_0x4f9fca);}[_0x4f18('0x16')](){super[_0x4f18('0x8')](),this[_0x4f18('0xf')](),this[_0x4f18('0x5')][_0x4f18('0x8')](),this[_0x4f18('0x14')][_0x4f18('0x8')](),this[_0x4f18('0x17')][_0x4f18('0x16')]();}[_0x4f18('0x1')](){for(const _0x62e914 of this)_0x62e914['updateTargetRect']();this[_0x4f18('0x22')]();}['_sort'](){const _0xcd3809=Array[_0x4f18('0x3')](this)[_0x4f18('0x4')]((_0x1401bc,_0x3e982d)=>v(_0x1401bc[_0x4f18('0x0')][_0x4f18('0x15')],_0x3e982d[_0x4f18('0x0')][_0x4f18('0x15')]));for(let _0x3f1737=_0xcd3809[_0x4f18('0x10')]-0x1;_0x3f1737>0x0;_0x3f1737--){const _0x197153=_0xcd3809[_0x3f1737];_0x3f1737!==this[_0x4f18('0xa')](_0x197153)&&(this[_0x4f18('0xb')](_0x197153),this['add'](_0x197153));}}[_0x4f18('0x1c')](_0x4b690a){let _0x394182=0x0;if(!_0x4b690a)return this[_0x4f18('0x10')];for(const _0xa38088 of this){const _0x30e00e=_0xa38088[_0x4f18('0x0')][_0x4f18('0x15')];if(_0x30e00e){if(v(_0x4b690a,_0x30e00e)<0x0)return _0x394182;_0x394182++;}}return _0x394182;}}export function bindAnnotationCollections({source:_0x62fc1,target:_0x1ed6a8,filter:_0x1116fc}){for(const _0x3ed231 of _0x62fc1)_0x1116fc(_0x3ed231)&&_0x1ed6a8[_0x4f18('0x6')](_0x3ed231);_0x1ed6a8[_0x4f18('0x19')](_0x62fc1,_0x4f18('0x6'),(_0x582026,_0x14c457)=>{_0x1116fc(_0x14c457)&&_0x1ed6a8[_0x4f18('0x6')](_0x14c457);}),_0x1ed6a8[_0x4f18('0x19')](_0x62fc1,_0x4f18('0xb'),(_0x5e1f4f,_0xb75399)=>{_0x1ed6a8[_0x4f18('0x12')](_0xb75399)&&_0x1ed6a8[_0x4f18('0xb')](_0xb75399);});}function v(_0x50f839,_0x2eb2d7){if(null===_0x50f839&&null===_0x2eb2d7)return 0x0;if(null===_0x50f839)return-0x1;if(null===_0x2eb2d7)return 0x1;const _0x5a4cd4=_0x50f839[_0x4f18('0x7')]-_0x2eb2d7['top'];return 0x0==_0x5a4cd4?_0x50f839[_0x4f18('0x9')]-_0x2eb2d7[_0x4f18('0x9')]:_0x5a4cd4;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ead=['source','remove','deactivateAll','pluginName','_bindAnnotationsToVisibleAnnotations','has','set','activeAnnotations','listenTo','getByInnerView','activate','createAnnotation','createAnnotationView','collection','refreshVisibility','_removeActiveAnnotation','add','view','element','delete','isVisible','focusTracker','destroy','_visibleAnnotations','fire','Annotations','_deactivateAllAnnotations'];(function(_0x27d04e,_0x2eadc2){const _0x508547=function(_0x511631){while(--_0x511631){_0x27d04e['push'](_0x27d04e['shift']());}};_0x508547(++_0x2eadc2);}(_0x2ead,0x6e));const _0x5085=function(_0x27d04e,_0x2eadc2){_0x27d04e=_0x27d04e-0x0;let _0x508547=_0x2ead[_0x27d04e];return _0x508547;};import{ContextPlugin as _0x205e81}from'ckeditor5/src/core.js';import _0x1867be from'./annotation.js';import _0x7c11c1 from'./annotationcollection.js';import _0xb13e1a from'./view/annotationview.js';export default class b extends _0x205e81{static get[_0x5085('0x1')](){return _0x5085('0x17');}constructor(_0x5257e4){super(_0x5257e4),this[_0x5085('0xb')]=new _0x7c11c1(),this[_0x5085('0x15')]=new _0x7c11c1(),this[_0x5085('0x4')](_0x5085('0x5'),new Set()),this[_0x5085('0x2')]();}[_0x5085('0xe')](_0x12bb7b){this[_0x5085('0xb')][_0x5085('0xe')](_0x12bb7b);}[_0x5085('0x1a')](_0x136659){this[_0x5085('0xb')][_0x5085('0x1a')](_0x136659),_0x136659[_0x5085('0x14')]();}[_0x5085('0xc')](){for(const _0x469ee6 of this[_0x5085('0xb')])_0x469ee6[_0x5085('0xc')]();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0xcd1023){return this['collection'][_0x5085('0x7')](_0xcd1023);}[_0x5085('0x0')](){this['fire'](_0x5085('0x18'));}[_0x5085('0x14')](){for(const _0x1e672d of this[_0x5085('0xb')])_0x1e672d[_0x5085('0x14')]();this[_0x5085('0x15')][_0x5085('0x14')](),this[_0x5085('0xb')]['destroy'](),super[_0x5085('0x14')]();}[_0x5085('0x8')](_0x421b6f){this[_0x5085('0x16')]('_activateAnnotation',_0x421b6f);}[_0x5085('0x9')](_0x4077f6){return new _0x1867be(_0x4077f6);}[_0x5085('0xa')](_0x30d59e,_0x206071){return new _0xb13e1a(_0x30d59e,_0x206071);}['_addActiveAnnotation'](_0x159332){const _0x509ac3=new Set(this[_0x5085('0x5')]);_0x509ac3['add'](_0x159332),this[_0x5085('0x5')]=_0x509ac3;}[_0x5085('0xd')](_0xd8989b){const _0x2a0f5c=new Set(this[_0x5085('0x5')]);_0x2a0f5c[_0x5085('0x11')](_0xd8989b),this[_0x5085('0x5')]=_0x2a0f5c;}[_0x5085('0x2')](){const _0x2b0d58=this[_0x5085('0xb')],_0x4239f8=this[_0x5085('0x15')];function _0x10845b(_0x3f6cf3){const _0x26f4d8=_0x3f6cf3[_0x5085('0x19')];_0x26f4d8[_0x5085('0x12')]&&!_0x4239f8['has'](_0x26f4d8)?_0x4239f8[_0x5085('0xe')](_0x26f4d8):!_0x26f4d8[_0x5085('0x12')]&&_0x4239f8[_0x5085('0x3')](_0x26f4d8)&&_0x4239f8[_0x5085('0x1a')](_0x26f4d8),_0x26f4d8[_0x5085('0xf')][_0x5085('0x13')][_0x5085('0x1a')](_0x26f4d8[_0x5085('0xf')]['element']),_0x26f4d8[_0x5085('0xf')][_0x5085('0x13')][_0x5085('0xe')](_0x26f4d8[_0x5085('0xf')][_0x5085('0x10')]);}this['listenTo'](_0x2b0d58,_0x5085('0xe'),(_0x462ee9,_0x336dd8)=>{_0x336dd8[_0x5085('0x12')]&&_0x4239f8[_0x5085('0xe')](_0x336dd8),this[_0x5085('0x6')](_0x336dd8,'change:isVisible',_0x10845b);}),this['listenTo'](_0x2b0d58,_0x5085('0x1a'),(_0x19992a,_0x13cf36)=>{_0x4239f8[_0x5085('0x3')](_0x13cf36)&&_0x4239f8[_0x5085('0x1a')](_0x13cf36),this['stopListening'](_0x13cf36,'change:isVisible',_0x10845b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7d6b=['_setSelectedAnnotations','_removeActiveAnnotation','has','destroy','requires','_visibleAnnotations','attach','activate','get','_activateAnnotation','register','isActive','deactivateAll','collection','delete','type','AnnotationsUIs','add','_assertAnnotationDoesNotBelongToMultipleUIs','size','listenTo','length','stopListening','_addActiveAnnotation','context','detach','find','refilterAnnotations','remove','set','plugins','change:activeAnnotation','setActiveAnnotation','filter','function','_deactivateAllAnnotations','activeUIs','annotationsuis-register-already-registered','_uis','pluginName','hasActive','_uisData','deactivate','activeAnnotations','from','annotationsuis-missing-ui','annotationsuis-annotation-mismatch'];(function(_0x4ea36d,_0x7d6ba8){const _0x1f2aa1=function(_0x200c3c){while(--_0x200c3c){_0x4ea36d['push'](_0x4ea36d['shift']());}};_0x1f2aa1(++_0x7d6ba8);}(_0x7d6b,0x1ae));const _0x1f2a=function(_0x4ea36d,_0x7d6ba8){_0x4ea36d=_0x4ea36d-0x0;let _0x1f2aa1=_0x7d6b[_0x4ea36d];return _0x1f2aa1;};import{ContextPlugin as _0x24fb8b}from'ckeditor5/src/core.js';import{CKEditorError as _0x3bfd79}from'ckeditor5/src/utils.js';import _0x2aebe6,{bindAnnotationCollections as _0x1e4749}from'./annotationcollection.js';import _0x52d83d from'./annotations.js';export default class j extends _0x24fb8b{static get[_0x1f2a('0x2c')](){return[_0x52d83d];}static get[_0x1f2a('0x20')](){return _0x1f2a('0x9');}constructor(_0x29b7f7){super(_0x29b7f7),this[_0x1f2a('0x1d')]=new Set(),this[_0x1f2a('0x1f')]=new Map(),this[_0x1f2a('0x22')]=new Map();}['init'](){const _0x5d22cc=this[_0x1f2a('0x11')]['plugins'][_0x1f2a('0x1')](_0x52d83d);this['listenTo'](_0x5d22cc,_0x1f2a('0x2'),(_0x4bd165,_0x4ff4f6)=>{for(const _0x315bec of this[_0x1f2a('0x1d')]){const _0x2b67e0=this[_0x1f2a('0x1f')][_0x1f2a('0x1')](_0x315bec);(0x0,this[_0x1f2a('0x22')][_0x1f2a('0x1')](_0x315bec)[_0x1f2a('0x1a')])(_0x4ff4f6)&&_0x2b67e0[_0x1f2a('0x19')](_0x4ff4f6);}}),this[_0x1f2a('0xd')](_0x5d22cc,_0x1f2a('0x1c'),()=>{for(const _0xc51d77 of this[_0x1f2a('0x1d')]){this['_uis']['get'](_0xc51d77)[_0x1f2a('0x19')](null);}}),this['listenTo'](_0x5d22cc[_0x1f2a('0x2d')],_0x1f2a('0xa'),(_0x1353e2,_0x42ad43)=>{this[_0x1f2a('0xb')](_0x42ad43);});}[_0x1f2a('0x21')](){return this[_0x1f2a('0x1d')][_0x1f2a('0xc')]>0x0;}[_0x1f2a('0x4')](_0x2ae2f4){return this[_0x1f2a('0x1d')][_0x1f2a('0x2a')](_0x2ae2f4);}[_0x1f2a('0x0')](_0x48c076,_0x54eb0a=()=>!0x0){const _0xd2ad16=this['context'][_0x1f2a('0x17')]['get'](_0x52d83d);if(!this[_0x1f2a('0x1f')][_0x1f2a('0x2a')](_0x48c076))throw new _0x3bfd79('annotationsuis-missing-ui',this,{'uiName':_0x48c076});this[_0x1f2a('0x4')](_0x48c076)&&this[_0x1f2a('0x23')](_0x48c076),this[_0x1f2a('0x1d')][_0x1f2a('0xa')](_0x48c076);const _0x4aff1d=new _0x2aebe6(),_0x1b0a26=_0xd2ad16[_0x1f2a('0x2d')];_0x1e4749({'source':_0x1b0a26,'target':_0x4aff1d,'filter':_0x54eb0a}),this[_0x1f2a('0x22')][_0x1f2a('0x16')](_0x48c076,{'collection':_0x4aff1d,'filter':_0x54eb0a});const _0x79fbe6=this['_uis']['get'](_0x48c076);_0x79fbe6[_0x1f2a('0x2e')](_0x4aff1d),this[_0x1f2a('0xd')](_0x79fbe6,_0x1f2a('0x18'),(_0x5daa8a,_0x3b7052,_0x1e257a,_0xaa22b1)=>{_0xaa22b1&&_0xd2ad16[_0x1f2a('0x29')](_0xaa22b1),_0x1e257a&&_0xd2ad16[_0x1f2a('0x10')](_0x1e257a);});}['deactivate'](_0x52e2f9){if(this[_0x1f2a('0x1d')][_0x1f2a('0x7')](_0x52e2f9),!this[_0x1f2a('0x1f')]['has'](_0x52e2f9))throw new _0x3bfd79(_0x1f2a('0x26'),this,{'uiName':_0x52e2f9});const _0x2153af=this[_0x1f2a('0x1f')][_0x1f2a('0x1')](_0x52e2f9);_0x2153af['detach'](),this[_0x1f2a('0xf')](_0x2153af),this[_0x1f2a('0x22')]['get'](_0x52e2f9)[_0x1f2a('0x6')][_0x1f2a('0x2b')](),this[_0x1f2a('0x22')][_0x1f2a('0x7')](_0x52e2f9);}['switchTo'](_0x3a7f9e){if(!this[_0x1f2a('0x1f')][_0x1f2a('0x2a')](_0x3a7f9e))throw new _0x3bfd79('annotationsuis-missing-ui',this,{'uiName':_0x3a7f9e});const _0x15b0cb=this[_0x1f2a('0x11')][_0x1f2a('0x17')][_0x1f2a('0x1')](_0x52d83d),_0x225bd4=Array['from'](_0x15b0cb[_0x1f2a('0x24')])[0x0]||null;this['deactivateAll'](),this[_0x1f2a('0x0')](_0x3a7f9e);const _0x43705a=this[_0x1f2a('0x1f')][_0x1f2a('0x1')](_0x3a7f9e);_0x43705a['setActiveAnnotation'](_0x225bd4),_0x43705a[_0x1f2a('0x28')]&&_0x225bd4&&_0x43705a[_0x1f2a('0x28')]([_0x225bd4]);}[_0x1f2a('0x5')](){for(const _0x3d8c1c of this[_0x1f2a('0x1d')])this[_0x1f2a('0x23')](_0x3d8c1c);}[_0x1f2a('0x3')](_0x2cb00b,_0x42dc8c){if(this['_uis'][_0x1f2a('0x2a')](_0x2cb00b))throw new _0x3bfd79(_0x1f2a('0x1e'));if('function'!=typeof _0x42dc8c[_0x1f2a('0x2e')]||_0x1f2a('0x1b')!=typeof _0x42dc8c[_0x1f2a('0x12')]||_0x1f2a('0x1b')!=typeof _0x42dc8c[_0x1f2a('0x19')])throw new _0x3bfd79('annotationsuis-register-invalid-interface',null);this[_0x1f2a('0x1f')][_0x1f2a('0x16')](_0x2cb00b,_0x42dc8c);}[_0x1f2a('0x14')](){const _0x34fe86=this['context'][_0x1f2a('0x17')][_0x1f2a('0x1')](_0x52d83d)['collection'],_0x5a548e=new Map(),_0xe64055=Array[_0x1f2a('0x25')](this[_0x1f2a('0x1d')]);for(const _0x2a3bf6 of this[_0x1f2a('0x1d')]){const _0x162bac=this[_0x1f2a('0x22')][_0x1f2a('0x1')](_0x2a3bf6)[_0x1f2a('0x6')];for(const _0x4140ea of _0x162bac)_0x5a548e['set'](_0x4140ea,_0x2a3bf6);}for(const _0x584bf8 of _0x34fe86){const _0x18b2f9=_0x5a548e[_0x1f2a('0x1')](_0x584bf8);this[_0x1f2a('0xb')](_0x584bf8);const _0x35cccc=_0xe64055[_0x1f2a('0x13')](_0x189fd3=>this[_0x1f2a('0x22')][_0x1f2a('0x1')](_0x189fd3)[_0x1f2a('0x1a')](_0x584bf8));_0x18b2f9!==_0x35cccc&&(_0x18b2f9&&this['_uisData'][_0x1f2a('0x1')](_0x18b2f9)[_0x1f2a('0x6')][_0x1f2a('0x15')](_0x584bf8),_0x35cccc&&this[_0x1f2a('0x22')][_0x1f2a('0x1')](_0x35cccc)[_0x1f2a('0x6')][_0x1f2a('0xa')](_0x584bf8));}}[_0x1f2a('0x2b')](){this['deactivateAll'](),super[_0x1f2a('0x2b')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xb128df){const _0x5ba93d=[];for(const _0x30b767 of this[_0x1f2a('0x1d')]){(0x0,this[_0x1f2a('0x22')][_0x1f2a('0x1')](_0x30b767)['filter'])(_0xb128df)&&_0x5ba93d['push'](_0x30b767);}if(_0x5ba93d[_0x1f2a('0xe')]>0x1)throw new _0x3bfd79(_0x1f2a('0x27'),null,{'matchedUIs':_0x5ba93d,'annotationType':_0xb128df[_0x1f2a('0x8')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5324=['map','view','_editorAnnotations','remove','_editorAnnotationsData','hasDomSelection','EditorAnnotations','containsRange','editor','isEqual','blur','requires','selection','get','_dataCollectors','getOrderedSelectedAnnotations','init','annotation','innerView','function','refreshSelectedViews','refresh','isReadOnly','focusTracker','delete','has','change:range','document','listenTo','add','range','model','collection','element','push','fire','pluginName','from','sort','getRanges','editing','set','change:isFocused','registerAnnotation'];(function(_0x2f705a,_0x532407){const _0x5c36aa=function(_0x52ca9b){while(--_0x52ca9b){_0x2f705a['push'](_0x2f705a['shift']());}};_0x5c36aa(++_0x532407);}(_0x5324,0x12b));const _0x5c36=function(_0x2f705a,_0x532407){_0x2f705a=_0x2f705a-0x0;let _0x5c36aa=_0x5324[_0x2f705a];return _0x5c36aa;};import{Plugin as _0x29aee0}from'ckeditor5/src/core.js';import{CKEditorError as _0x16e022}from'ckeditor5/src/utils.js';import{debounce as _0x109084}from'lodash-es';import _0x16ef78 from'./annotations.js';export default class k extends _0x29aee0{static get[_0x5c36('0x14')](){return[_0x16ef78];}static get[_0x5c36('0x1')](){return _0x5c36('0xf');}constructor(_0x2fa4c7){super(_0x2fa4c7),this[_0x5c36('0x17')]=new Set(),this['_editorAnnotations']=new Set();}[_0x5c36('0x19')](){const _0xa80d4d=this[_0x5c36('0x11')],_0x1a673d=_0xa80d4d['model'][_0x5c36('0x24')][_0x5c36('0x15')],_0x2a1122=_0x109084(()=>this[_0x5c36('0x1d')](),0xa);_0x1a673d['on'](_0x5c36('0x23'),(_0x26a2d2,_0x583f02)=>{_0x583f02['directChange']&&(_0x2a1122['cancel'](),this[_0x5c36('0x1d')]());}),this[_0x5c36('0x25')](_0xa80d4d[_0x5c36('0x5')][_0x5c36('0xa')][_0x5c36('0x24')],_0x5c36('0x7'),(_0x35e78a,_0x37e67e,_0x7f73b)=>{_0x7f73b&&_0x2a1122();}),this[_0x5c36('0x25')](_0xa80d4d['ui'][_0x5c36('0x20')],_0x5c36('0x7'),(_0x805d82,_0x48adba,_0xfa203f)=>{_0xfa203f||_0xa80d4d[_0x5c36('0x1f')]||this['fire'](_0x5c36('0x13'),{'isAnnotationTracked':_0x482717=>this[_0x5c36('0xd')][_0x5c36('0x22')](_0x482717[_0x5c36('0x1b')])});}),this[_0x5c36('0x25')](this[_0x5c36('0x11')]['ui'],'update',()=>this[_0x5c36('0x0')]('uiUpdate'));}[_0x5c36('0x8')](_0x2072fb){if(this[_0x5c36('0xb')][_0x5c36('0x22')](_0x2072fb['view']))return;this[_0x5c36('0xb')]['add'](_0x2072fb[_0x5c36('0xa')]),this[_0x5c36('0x11')]['ui']['focusTracker'][_0x5c36('0x26')](_0x2072fb['view'][_0x5c36('0x2a')]);const _0x15e3f3=this[_0x5c36('0x11')]['plugins'][_0x5c36('0x16')](_0x16ef78);this[_0x5c36('0x25')](_0x15e3f3[_0x5c36('0x29')],_0x5c36('0xc'),(_0x183554,_0x47cc22)=>{this['editor']['ui']['focusTracker'][_0x5c36('0xc')](_0x47cc22[_0x5c36('0xa')][_0x5c36('0x2a')]),this[_0x5c36('0xb')][_0x5c36('0x21')](_0x47cc22[_0x5c36('0xa')]);});}[_0x5c36('0xe')](){return this[_0x5c36('0x11')]['editing'][_0x5c36('0xa')][_0x5c36('0xe')];}['addSourceCollector'](_0x305bf0){if(_0x5c36('0x1c')!=typeof _0x305bf0)throw new _0x16e022('editorannotations-invalid-source-callback');this[_0x5c36('0x17')]['add'](_0x305bf0);}['refreshSelectedViews'](){this['fire'](_0x5c36('0x1e'));}[_0x5c36('0x18')]({activeAnnotation:_0x265c66,annotations:_0x153c25}){const _0x172863=[],_0x2c4bd3=this['editor'][_0x5c36('0x28')][_0x5c36('0x24')]['selection'],_0x2e53c3=Array[_0x5c36('0x2')](_0x2c4bd3[_0x5c36('0x4')]());for(const [_0x5a0be0,_0x49d290]of this[_0x5c36('0xd')]){const _0xe3b97d=_0x598aad(_0x49d290),_0x491fc6=_0x153c25['getByInnerView'](_0x5a0be0);_0xe3b97d&&_0x491fc6&&_0x172863[_0x5c36('0x2b')]({'annotation':_0x491fc6,'range':_0xe3b97d});}function _0x598aad(_0x5ba30c){for(const _0x434874 of _0x5ba30c)for(const _0x12ac9e of _0x2e53c3)if(_0x434874[_0x5c36('0x10')](_0x12ac9e,!_0x2c4bd3['isCollapsed']))return _0x434874;return null;}return _0x172863[_0x5c36('0x3')]((_0x2b6b57,_0x5bcb05)=>{const _0x52e718=_0x2b6b57[_0x5c36('0x27')],_0x578456=_0x5bcb05[_0x5c36('0x27')];if(!_0x52e718[_0x5c36('0x12')](_0x578456)){if(_0x52e718['containsRange'](_0x578456,!0x0))return 0x1;if(_0x578456['containsRange'](_0x52e718,!0x0))return-0x1;}return _0x2b6b57[_0x5c36('0x1a')]==_0x265c66?-0x1:_0x5bcb05[_0x5c36('0x1a')]==_0x265c66?0x1:0x0;})[_0x5c36('0x9')](_0x2c0b9d=>_0x2c0b9d[_0x5c36('0x1a')]);}get[_0x5c36('0xd')](){const _0x171fbc=new Map();for(const _0x26d844 of Array['from'](this[_0x5c36('0x17')]))for(const [_0x13e2bd,_0xb45df]of _0x26d844())_0x171fbc[_0x5c36('0x6')](_0x13e2bd,_0xb45df);return _0x171fbc;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x357d=['_addedAnnotations','isActive','plugins','focusTracker','attach','_removeAnnotationFromBalloon','_selectedAnnotations','push','InlineAnnotations','viewRangeToDom','detach','length','Esc','left','annotations','hasView','document','has','inline','editing','targetRect','add','setActiveAnnotation','_forceRefresh','collapse','get','inlineannotations-attach-already-attached','requires','_manuallyClosed','visibleView','getByView','isFocused','selection','_setSelectedAnnotations','getBoundingClientRect','width','listenTo','change:visibleView','afterInit','set','bottom','top','destroy','focus','clear','_closeAnnotation','_addAnnotationToBalloon','getOrderedSelectedAnnotations','domConverter','delete','mousedown','refresh','from','_balloon','init','_getBalloonTargetForAnnotation','fromRect','blur','target','isAttached','view','addObserver','getFirstRange','hasActive','keystrokes','remove','every','inlineannotations-detach-not-attached','right','editableElement','register','includes','stopListening','context','map','editor','activeAnnotation','updatePosition'];(function(_0x2fb30a,_0x357d71){const _0x21ce0a=function(_0x4d6f75){while(--_0x4d6f75){_0x2fb30a['push'](_0x2fb30a['shift']());}};_0x21ce0a(++_0x357d71);}(_0x357d,0x12c));const _0x21ce=function(_0x2fb30a,_0x357d71){_0x2fb30a=_0x2fb30a-0x0;let _0x21ce0a=_0x357d[_0x2fb30a];return _0x21ce0a;};import{Plugin as _0xb18df4}from'ckeditor5/src/core.js';import _0x30de1f from'./annotationsuis.js';import _0x152612 from'./editorannotations.js';import{ContextualBalloon as _0xc84cfd}from'ckeditor5/src/ui.js';import{MouseObserver as _0x4b5861}from'ckeditor5/src/engine.js';import{CKEditorError as _0x577edf,Rect as _0x412928}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0xb18df4{static get[_0x21ce('0x27')](){return[_0x152612,_0xc84cfd,_0x30de1f];}static get['pluginName'](){return _0x21ce('0x14');}constructor(_0x3de802){super(_0x3de802),_0x3de802[_0x21ce('0x1f')][_0x21ce('0x48')][_0x21ce('0x49')](_0x4b5861),this[_0x21ce('0x47')]=!0x1,this['set'](_0x21ce('0xa'),null),this[_0x21ce('0x1a')]=null,this[_0x21ce('0x28')]=new Set(),this['_balloon']=_0x3de802['plugins'][_0x21ce('0x25')](_0xc84cfd),this[_0x21ce('0xc')]=new Set(),this['_selectedAnnotations']=[],this[_0x21ce('0x23')]=!0x1;}[_0x21ce('0x42')](){const _0x4cac6c=this['editor'][_0x21ce('0xe')][_0x21ce('0x25')](_0x30de1f);_0x4cac6c['context']===this['editor']&&(_0x4cac6c[_0x21ce('0x4')](_0x21ce('0x1e'),this),this['editor'][_0x21ce('0x4c')][_0x21ce('0x33')](_0x21ce('0x18'),(_0x5d3b73,_0x18dbca)=>{const _0x1e6368=this[_0x21ce('0x41')];if(this[_0x21ce('0x47')]&&_0x1e6368[_0x21ce('0x29')]){const _0x93cf2d=this[_0x21ce('0x1a')][_0x21ce('0x2a')](_0x1e6368[_0x21ce('0x29')]);_0x93cf2d&&this[_0x21ce('0x39')](_0x93cf2d),_0x18dbca();}}));}[_0x21ce('0x32')](){const _0x3ca396=this[_0x21ce('0x9')]['plugins']['get'](_0x30de1f);_0x3ca396[_0x21ce('0x7')]===this[_0x21ce('0x9')]&&(_0x3ca396[_0x21ce('0x4b')]()||_0x3ca396['switchTo'](_0x21ce('0x1e')));}[_0x21ce('0x22')](_0xce96b){_0xce96b!==this[_0x21ce('0xa')]&&(this[_0x21ce('0xa')]&&(this[_0x21ce('0xa')]['isActive']=!0x1),_0xce96b&&this['editor']['ui']['focusTracker'][_0x21ce('0x2b')]&&(this[_0x21ce('0x1a')]['has'](_0xce96b)&&this[_0x21ce('0x3a')](_0xce96b,!0x0),_0xce96b[_0x21ce('0xd')]=!0x0),_0xce96b||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0xce96b);}[_0x21ce('0x10')](_0xbe02c1){this['annotations']=_0xbe02c1;const _0x3e8ef5=this[_0x21ce('0x9')][_0x21ce('0xe')][_0x21ce('0x25')](_0x30de1f),_0xbcdc28=this['_balloon'];if(this['isAttached'])throw new _0x577edf(_0x21ce('0x26'),this);if(_0x3e8ef5[_0x21ce('0x7')]!==this[_0x21ce('0x9')])throw new _0x577edf('inlineannotations-not-allowed-with-context',this);const _0x35a5f9=this['editor']['plugins'][_0x21ce('0x25')](_0x152612);this[_0x21ce('0x30')](_0x35a5f9,_0x21ce('0x3f'),()=>{const _0x422fd4=_0x35a5f9[_0x21ce('0x3b')]({'annotations':this[_0x21ce('0x1a')],'activeAnnotation':this[_0x21ce('0xa')]});var _0x130041,_0x1538d1;!this[_0x21ce('0x23')]&&(_0x130041=_0x422fd4,_0x1538d1=this[_0x21ce('0x12')],_0x130041['length']===_0x1538d1[_0x21ce('0x17')]&&_0x130041[_0x21ce('0x0')](_0x4f2ccd=>_0x1538d1[_0x21ce('0x5')](_0x4f2ccd)))||(this[_0x21ce('0x23')]=!0x1,this[_0x21ce('0x2d')](_0x422fd4),this['setActiveAnnotation'](_0x422fd4[0x0]||null));}),this[_0x21ce('0x30')](_0x35a5f9,_0x21ce('0x45'),(_0x524ef2,{isAnnotationTracked:_0x2a80b0})=>{this[_0x21ce('0xa')]&&_0x2a80b0(this['activeAnnotation'])&&(this[_0x21ce('0x2d')]([]),this[_0x21ce('0x22')](null));}),this[_0x21ce('0x30')](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x448a66,_0x1f1c50,_0x59d3be)=>{_0x59d3be||this[_0x21ce('0x22')](null);}),this[_0x21ce('0x30')](_0xbe02c1,_0x21ce('0x4d'),(_0x46b153,_0x44f1f1)=>{this['_removeAnnotationFromBalloon'](_0x44f1f1),_0x44f1f1===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this[_0x21ce('0x30')](_0xbcdc28,_0x21ce('0x31'),(_0x502750,_0x2a3393,_0x192815,_0x312044)=>{_0x312044&&this[_0x21ce('0x6')](_0x312044);const _0xbd5947=_0xbe02c1[_0x21ce('0x2a')](_0x192815);_0x192815&&_0xbd5947&&(this[_0x21ce('0x30')](_0x192815,'change:height',()=>{_0xbcdc28[_0x21ce('0xb')]();}),this[_0x21ce('0x30')](_0x192815,'Esc',()=>{this['_closeAnnotation'](_0xbd5947),this[_0x21ce('0x9')]['editing'][_0x21ce('0x48')][_0x21ce('0x37')]();}),this[_0x21ce('0xa')]!==_0xbd5947&&this[_0x21ce('0x22')](_0xbd5947));}),this[_0x21ce('0x30')](this[_0x21ce('0x9')]['ui'],'update',()=>{_0xbcdc28[_0x21ce('0x29')]&&(_0xbe02c1['getByView'](_0xbcdc28[_0x21ce('0x29')])&&_0xbcdc28['updatePosition']());}),this['listenTo'](this[_0x21ce('0x9')][_0x21ce('0x1f')]['view'][_0x21ce('0x1c')],_0x21ce('0x3e'),()=>{this[_0x21ce('0x23')]=!0x0,this[_0x21ce('0x28')][_0x21ce('0x38')]();}),this[_0x21ce('0x9')][_0x21ce('0x1f')][_0x21ce('0x48')][_0x21ce('0x1c')][_0x21ce('0x2c')][_0x21ce('0x3')]&&this[_0x21ce('0x9')][_0x21ce('0x1f')][_0x21ce('0x48')][_0x21ce('0x37')](),this[_0x21ce('0x47')]=!0x0;}[_0x21ce('0x16')](){if(!this['isAttached'])throw new _0x577edf(_0x21ce('0x1'),this);this[_0x21ce('0x22')](null);for(const _0x37cb9b of this[_0x21ce('0xc')])this[_0x21ce('0x11')](_0x37cb9b);this[_0x21ce('0x6')](),this['isAttached']=!0x1,this[_0x21ce('0x1a')]=null;}[_0x21ce('0x36')](){this[_0x21ce('0x47')]&&this[_0x21ce('0x16')]();}[_0x21ce('0x2d')](_0x1eb7e5){for(const _0x1071ab of this['_selectedAnnotations'])_0x1eb7e5[_0x21ce('0x5')](_0x1071ab)||this[_0x21ce('0x28')]['delete'](_0x1071ab);for(const _0x2dea6c of this['annotations'])_0x1eb7e5['includes'](_0x2dea6c)||this[_0x21ce('0x11')](_0x2dea6c);if(this[_0x21ce('0x9')]['ui'][_0x21ce('0xf')][_0x21ce('0x2b')])for(const _0x387f2f of _0x1eb7e5)this[_0x21ce('0x3a')](_0x387f2f);this[_0x21ce('0x12')]=_0x1eb7e5;}[_0x21ce('0x3a')](_0x51faaa,_0x429946=!0x1){this[_0x21ce('0x28')][_0x21ce('0x1d')](_0x51faaa)||(this[_0x21ce('0xc')][_0x21ce('0x1d')](_0x51faaa)||this['_balloon'][_0x21ce('0x1b')](_0x51faaa[_0x21ce('0x48')])||(this['_addedAnnotations'][_0x21ce('0x21')](_0x51faaa),this[_0x21ce('0x41')][_0x21ce('0x21')]({'stackId':_0x51faaa[_0x21ce('0x48')]['id'],'view':_0x51faaa[_0x21ce('0x48')],'position':{'target':()=>this[_0x21ce('0x43')](_0x51faaa)}})),_0x429946&&this[_0x21ce('0x41')]['showStack'](_0x51faaa[_0x21ce('0x48')]['id']));}[_0x21ce('0x43')](_0x386ac6){const _0x4b2270=_0x386ac6[_0x21ce('0x46')],_0x2e6151=this[_0x21ce('0x9')][_0x21ce('0x1f')][_0x21ce('0x48')],_0x501035=_0x2e6151[_0x21ce('0x1c')][_0x21ce('0x2c')][_0x21ce('0x4a')](),_0x49c6d7=_0x2e6151[_0x21ce('0x3c')][_0x21ce('0x15')](_0x501035);if(_0x49c6d7[_0x21ce('0x24')](!0x0),_0x4b2270){if(_0x4b2270 instanceof _0x412928)return _0x4b2270;let _0x2b0a47=[];for(const _0x436896 of _0x4b2270)_0x2b0a47[_0x21ce('0x13')](...(_0x3031a7=_0x436896['getClientRects'](),Array[_0x21ce('0x40')](_0x3031a7)[_0x21ce('0x8')](DOMRect[_0x21ce('0x44')])));_0x2b0a47=function(_0x202901){const _0x185587=[];let _0x5ecdd2=_0x202901[0x0];for(let _0x42c103=0x1;_0x42c103<_0x202901[_0x21ce('0x17')];_0x42c103++)F(_0x5ecdd2,_0x202901[_0x42c103])?_0x5ecdd2[_0x21ce('0x2f')]+=_0x202901[_0x42c103][_0x21ce('0x2f')]:(_0x185587[_0x21ce('0x13')](_0x5ecdd2),_0x5ecdd2=_0x202901[_0x42c103]);return _0x185587['push'](_0x5ecdd2),_0x185587;}(_0x2b0a47);const _0x66e565=_0x49c6d7[_0x21ce('0x2e')]();return _0x2b0a47['find'](_0x4f9189=>_0x4f9189[_0x21ce('0x35')]<=_0x66e565[_0x21ce('0x35')]&&_0x4f9189[_0x21ce('0x34')]>=_0x66e565[_0x21ce('0x34')]&&_0x4f9189['left']<=_0x66e565[_0x21ce('0x19')]&&_0x4f9189[_0x21ce('0x2')]>=_0x66e565['right'])||_0x2b0a47[0x0];}var _0x3031a7;return _0x386ac6[_0x21ce('0x20')]||_0x49c6d7;}['_removeAnnotationFromBalloon'](_0x5eb7f0){this['_addedAnnotations'][_0x21ce('0x1d')](_0x5eb7f0)&&this['_balloon']['hasView'](_0x5eb7f0['view'])&&(this[_0x21ce('0xc')][_0x21ce('0x3d')](_0x5eb7f0),this[_0x21ce('0x41')]['remove'](_0x5eb7f0[_0x21ce('0x48')]));}[_0x21ce('0x39')](_0x54eba2){this['_manuallyClosed'][_0x21ce('0x21')](_0x54eba2),this[_0x21ce('0x11')](_0x54eba2);}}function F(_0x4fcce1,_0x4ce175){return _0x4fcce1[_0x21ce('0x35')]===_0x4ce175[_0x21ce('0x35')]&&_0x4fcce1[_0x21ce('0x34')]===_0x4ce175[_0x21ce('0x34')]&&_0x4fcce1['right']===_0x4ce175[_0x21ce('0x19')];}
|
|
@@ -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 _0x40a1=['listenTo','_showBalloon','southArrowNorthWest','isDirty','addAnnotation','stopListening','number','content','stopPropagation','element','hasDomSelection','_selectedAnnotations','delete','mousedown','preventClosingBalloon','destroy','set','get','isAttached','keyCode','_updateBalloonPosition','register','EditorAnnotations','focusableElements','esc','change:container','context','find','_manuallyClosedAnnotationViews','setActiveAnnotation','focus','southArrowNorth','pluginName','_editorAnnotations','attach','_refreshPositioning','init','bodyCollection','_detachListeners','_annotations','high','defaultPositions','uiUpdate','off','_hideBalloon','clear','getSidebarItemView','has','editors','annotations','plugins','northArrowSouth','contains','rearrange','low','narrowSidebar','cancel','addEventListener','requires','attachToDom','remove','target','_setSelectedAnnotations','removeEventListener','narrowsidebar-detach-not-attached','refresh','execute','activeAnnotation','view','unpin','refreshPositioning','isVisible','_destroyEditorAnnotationsIntegration','keydown','from','_integrateWithEditorAnnotations','values','_refreshPositioningDebounced','add','blur','balloonPanelView','ck-sidebar--narrow','first','_annotationToNarrowView','type','_domEmitter','_attachToContainer','detach','_attachListeners','stop','Esc','length','preventDefault','narrowsidebar-attach-already-attached','locale','change:height','includes'];(function(_0x315d22,_0x40a19b){const _0x819bab=function(_0x1dc1aa){while(--_0x1dc1aa){_0x315d22['push'](_0x315d22['shift']());}};_0x819bab(++_0x40a19b);}(_0x40a1,0x133));const _0x819b=function(_0x315d22,_0x40a19b){_0x315d22=_0x315d22-0x0;let _0x819bab=_0x40a1[_0x315d22];return _0x819bab;};import{ContextPlugin as _0x3d0d42,Context as _0x1a7449}from'ckeditor5/src/core.js';import _0x678aec from'./annotationsuis.js';import _0x56d1a7 from'./sidebar.js';import _0x5c8d02 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x56504a,BodyCollection as _0x5be072}from'ckeditor5/src/ui.js';import{CKEditorError as _0x5a30c3,DomEmitterMixin as _0x16435d,keyCodes as _0x538cea,Collection as _0x3f3d10}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x57f133}from'lodash-es';import _0xab18a9 from'./editorannotations.js';export default class i extends _0x3d0d42{static get[_0x819b('0x2a')](){return[_0x56d1a7,_0x678aec];}static get[_0x819b('0x10')](){return'NarrowSidebar';}constructor(_0x3cb269){super(_0x3cb269),this[_0x819b('0x2')]=!0x1,this[_0x819b('0xc')]=new Set(),this['_domEmitter']=Object['create'](_0x16435d),this['_annotationToNarrowView']=new Map(),this[_0x819b('0x0')](_0x819b('0x33'),null),this['annotations']=null,this[_0x819b('0x5c')]=[],this[_0x819b('0x11')]=new _0x3f3d10(),this[_0x819b('0x3d')]=_0x57f133(()=>{this[_0x819b('0x13')]();},0xfa,{'leading':!0x1});}[_0x819b('0x14')](){this[_0x819b('0xa')][_0x819b('0x22')]['get'](_0x678aec)[_0x819b('0x5')](_0x819b('0x27'),this),this[_0x819b('0x15')]=new _0x5be072(this[_0x819b('0xa')][_0x819b('0x4e')]),this[_0x819b('0x40')]=new _0x56504a(this['context'][_0x819b('0x4e')]),this['bodyCollection'][_0x819b('0x2b')](),this[_0x819b('0x15')]['add'](this[_0x819b('0x40')]);}[_0x819b('0x12')](_0x3fe832){this[_0x819b('0x21')]=_0x3fe832;const _0x32b8cb=this['context'][_0x819b('0x22')][_0x819b('0x1')](_0x56d1a7),_0x1c29cf=this['balloonPanelView'];if(_0x32b8cb[_0x819b('0x17')]=_0x3fe832,this[_0x819b('0x2')])throw new _0x5a30c3(_0x819b('0x4d'),this);this[_0x819b('0x2')]=!0x0,this[_0x819b('0x51')](_0x32b8cb,'set:container',()=>{this[_0x819b('0x47')](),this['listenTo'](_0x32b8cb,_0x819b('0x9'),_0x4cf090=>{_0x4cf090[_0x819b('0x1b')](),this[_0x819b('0x12')](_0x3fe832);});}),_0x32b8cb[_0x819b('0x46')]({'viewClass':_0x819b('0x41'),'spaceBetweenItems':0x5});const _0x3f9aee=_0x3d0c48=>{const _0x409831=new _0x5c8d02(this[_0x819b('0xa')][_0x819b('0x4e')]);_0x32b8cb[_0x819b('0x55')](_0x3d0c48,_0x409831),this[_0x819b('0x43')][_0x819b('0x0')](_0x3d0c48,_0x409831),_0x409831['bind']('isDirty','annotationType',_0x819b('0x57'))['to'](_0x3d0c48['view'],_0x819b('0x54'),_0x819b('0x44'),_0x819b('0x4b')),_0x409831['on'](_0x819b('0x32'),()=>{this[_0x819b('0xc')]['clear'](),_0x1c29cf[_0x819b('0x58')]['first']!==_0x3d0c48[_0x819b('0x34')]?(this['_showBalloon'](_0x3d0c48),_0x3d0c48['view'][_0x819b('0x5a')][_0x819b('0xe')](),this['setActiveAnnotation'](_0x3d0c48)):this[_0x819b('0xd')](null);});};for(const _0x49a2bd of _0x3fe832)_0x3f9aee(_0x49a2bd);this[_0x819b('0x51')](_0x3fe832,_0x819b('0x3e'),(_0x1b7fea,_0x582467)=>{_0x3f9aee(_0x582467);}),this[_0x819b('0x51')](_0x3fe832,_0x819b('0x2c'),(_0x2fe43b,_0x2116cc,_0x41267e)=>{this[_0x819b('0x43')][_0x819b('0x1')](_0x2116cc)[_0x819b('0x60')](),this[_0x819b('0x43')][_0x819b('0x5d')](_0x2116cc),_0x32b8cb[_0x819b('0x25')]({'removedAnnotation':_0x2116cc,'previousAnnotation':_0x3fe832[_0x819b('0x1')](_0x41267e-0x1),'nextAnnotation':_0x3fe832[_0x819b('0x1')](_0x41267e+0x1)}),_0x2116cc===this[_0x819b('0x33')]&&this[_0x819b('0xd')](null);},{'priority':_0x819b('0x26')}),this[_0x819b('0x51')](_0x3fe832,_0x819b('0xe'),(_0x20bb44,_0x54a291)=>{this['setActiveAnnotation'](_0x54a291);}),this[_0x819b('0x51')](_0x3fe832,_0x819b('0x3f'),()=>{this[_0x819b('0xd')](null);}),this[_0x819b('0x45')][_0x819b('0x51')](document,_0x819b('0x39'),(_0x1410e8,_0x20c127)=>{_0x20c127[_0x819b('0x3')]===_0x538cea[_0x819b('0x8')]&&_0x1c29cf[_0x819b('0x37')]&&(this[_0x819b('0xc')][_0x819b('0x3e')](_0x1c29cf['content'][_0x819b('0x42')]),this[_0x819b('0x1c')](),_0x20c127[_0x819b('0x59')](),_0x20c127[_0x819b('0x4c')]());}),this['_domEmitter']['listenTo'](document,_0x819b('0x5e'),(_0x45b8c6,_0x5002f6)=>{const _0x46b840=_0x5002f6['target'];_0x1c29cf[_0x819b('0x37')]&&_0x1c29cf[_0x819b('0x5a')][_0x819b('0x24')](_0x46b840)||_0x32b8cb[_0x819b('0x34')][_0x819b('0x5a')]['contains'](_0x46b840)||_0x45b8c6[_0x819b('0x5f')]||this[_0x819b('0x33')]&&this['activeAnnotation'][_0x819b('0x7')][_0x819b('0xb')](_0x5c41e0=>_0x5c41e0['contains'](_0x46b840))||(this[_0x819b('0xc')]['clear'](),this[_0x819b('0x1c')](),this['setActiveAnnotation'](null));});const _0x1f182d=this[_0x819b('0xa')]instanceof _0x1a7449?this[_0x819b('0xa')]['editors']:new _0x3f3d10([this['context']]);for(const _0x9d9bec of _0x1f182d)this[_0x819b('0x3b')](_0x9d9bec);this[_0x819b('0x51')](_0x1f182d,'add',(_0xe8dc40,_0x5cb6b7)=>{this[_0x819b('0x51')](_0x5cb6b7,'ready',()=>{this[_0x819b('0x3b')](_0x5cb6b7);});}),this[_0x819b('0x51')](_0x1f182d,'remove',(_0x4a4df1,_0x40f28e)=>{_0x40f28e[_0x819b('0x22')]['has'](_0x819b('0x6'))&&this[_0x819b('0x38')](_0x40f28e[_0x819b('0x22')][_0x819b('0x1')](_0x819b('0x6')));}),window[_0x819b('0x29')]('resize',this[_0x819b('0x3d')]),this['_refreshPositioning']();}[_0x819b('0xd')](_0x2bd3e2){if(_0x2bd3e2===this[_0x819b('0x33')])return;const _0x44f7ca=this[_0x819b('0xa')][_0x819b('0x22')][_0x819b('0x1')](_0x56d1a7);if(_0x44f7ca['refresh']({'blurredAnnotation':this[_0x819b('0x33')],'activatedAnnotation':_0x2bd3e2,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2bd3e2)_0x44f7ca[_0x819b('0x1e')](_0x2bd3e2)?this[_0x819b('0x52')](_0x2bd3e2):this[_0x819b('0x1c')]();else this[_0x819b('0x1c')]();this[_0x819b('0x33')]=_0x2bd3e2;}['detach'](){if(!this[_0x819b('0x2')])throw new _0x5a30c3(_0x819b('0x30'),this);this[_0x819b('0xd')](null);const _0x29e782=this['context'][_0x819b('0x22')][_0x819b('0x1')](_0x56d1a7);this['_hideBalloon'](),Array[_0x819b('0x3a')](this[_0x819b('0x43')][_0x819b('0x3c')](),_0x732dad=>_0x732dad['destroy']()),this[_0x819b('0x43')][_0x819b('0x1d')](),_0x29e782['_detachFromContainer'](this['annotations']),this[_0x819b('0x56')](),this[_0x819b('0x45')][_0x819b('0x56')](),this[_0x819b('0xa')]instanceof _0x1a7449&&this[_0x819b('0x56')](this[_0x819b('0xa')][_0x819b('0x20')]);for(const _0x144111 of Array['from'](this[_0x819b('0x11')]))this[_0x819b('0x38')](_0x144111);window[_0x819b('0x2f')]('resize',this[_0x819b('0x3d')]),this[_0x819b('0x3d')][_0x819b('0x28')](),this[_0x819b('0x5c')]=[],this[_0x819b('0x2')]=!0x1,this[_0x819b('0x21')]=null;}[_0x819b('0x60')](){this[_0x819b('0x2')]&&this[_0x819b('0x47')](),this[_0x819b('0x15')]['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x5ae1ae){const _0x141011=_0x5ae1ae['plugins']['get'](_0xab18a9),_0x2ce0ac=this[_0x819b('0xa')]['plugins'][_0x819b('0x1')](_0x56d1a7),_0x2d4700=this[_0x819b('0x21')],_0x236a56=this[_0x819b('0x40')],_0x2c505f=()=>{const _0x41889e=_0x141011['getOrderedSelectedAnnotations']({'annotations':this[_0x819b('0x21')],'activeAnnotation':this[_0x819b('0x33')]});this['_setSelectedAnnotations'](_0x41889e),this[_0x819b('0xd')](_0x41889e[0x0]||null);};this[_0x819b('0x51')](_0x141011,_0x819b('0x31'),_0x2c505f),this[_0x819b('0x51')](_0x141011,_0x819b('0x3f'),(_0x430c88,{isAnnotationTracked:_0x1ff511})=>{this['activeAnnotation']&&_0x1ff511(this['activeAnnotation'])&&(this[_0x819b('0x2e')]([]),this['setActiveAnnotation'](null));}),this[_0x819b('0x51')](_0x141011,_0x819b('0x1a'),()=>{this[_0x819b('0x3d')]();}),this[_0x819b('0x51')](_0x2d4700,_0x819b('0x3f'),_0x279043=>{_0x141011[_0x819b('0x5b')]()&&_0x279043[_0x819b('0x49')]();},{'priority':'high'}),this[_0x819b('0x51')](this[_0x819b('0x45')],'mousedown',(_0xde32dc,_0x149789)=>{const _0x57e6ed=_0x149789[_0x819b('0x2d')];_0x236a56['isVisible']&&_0x236a56[_0x819b('0x5a')][_0x819b('0x24')](_0x57e6ed)||_0x2ce0ac[_0x819b('0x34')][_0x819b('0x5a')][_0x819b('0x24')](_0x57e6ed)||this[_0x819b('0x33')]&&_0x141011[_0x819b('0x5b')]()&&(_0x2c505f(),_0xde32dc[_0x819b('0x5f')]=!0x0);},{'priority':_0x819b('0x18')}),this['_editorAnnotations'][_0x819b('0x3e')](_0x141011);}['_destroyEditorAnnotationsIntegration'](_0x30b099){_0x30b099&&(this['stopListening'](_0x30b099),this[_0x819b('0x11')][_0x819b('0x2c')](_0x30b099));}['_setSelectedAnnotations'](_0x56efc5){for(const _0x5b83c0 of this[_0x819b('0x5c')])_0x56efc5[_0x819b('0x50')](_0x5b83c0)||this[_0x819b('0xc')]['delete'](_0x5b83c0[_0x819b('0x34')]);this['_selectedAnnotations']=_0x56efc5;}[_0x819b('0x13')](){const _0x50f237=this[_0x819b('0x40')];this[_0x819b('0x21')][_0x819b('0x36')](),_0x50f237[_0x819b('0x37')]&&this[_0x819b('0x4')]();}['_showBalloon'](_0x4e663f){if(this[_0x819b('0xc')][_0x819b('0x1f')](_0x4e663f[_0x819b('0x34')]))return;const _0x396551=this['balloonPanelView'][_0x819b('0x58')][_0x819b('0x42')];_0x396551!==_0x4e663f['view']?(_0x396551&&this[_0x819b('0x16')](_0x396551),this[_0x819b('0x48')](_0x4e663f[_0x819b('0x34')]),this['balloonPanelView'][_0x819b('0x58')][_0x819b('0x1d')](),this[_0x819b('0x40')][_0x819b('0x58')]['add'](_0x4e663f['view']),this[_0x819b('0x4')]()):this[_0x819b('0x4')]();}[_0x819b('0x4')](){const _0x11e3eb=this[_0x819b('0x40')][_0x819b('0x58')][_0x819b('0x42')],_0x12bbb7=_0x11e3eb&&this['annotations']['getByView'](_0x11e3eb);if(!_0x12bbb7||!this[_0x819b('0x43')][_0x819b('0x1f')](_0x12bbb7))return;const _0x2abde4=this[_0x819b('0x43')][_0x819b('0x1')](_0x12bbb7)[_0x819b('0x5a')],_0x59756a=function(){const _0x1e436c=_0x56504a[_0x819b('0x19')];return[_0x1e436c['southArrowNorthEast'],_0x1e436c['northArrowSouthEast'],_0x1e436c[_0x819b('0xf')],_0x1e436c[_0x819b('0x23')],_0x1e436c[_0x819b('0x53')],_0x1e436c['northArrowSouthWest']];}();this[_0x819b('0x40')]['pin']({'target':_0x2abde4,'positions':_0x59756a});}[_0x819b('0x1c')](){const _0x269726=this[_0x819b('0x40')],_0x2f721e=_0x269726['content'][_0x819b('0x42')];_0x2f721e&&(this['_detachListeners'](_0x2f721e),_0x269726[_0x819b('0x35')](),_0x269726[_0x819b('0x58')][_0x819b('0x1d')]());}[_0x819b('0x48')](_0x56b553){this[_0x819b('0x51')](_0x56b553,_0x819b('0x4f'),()=>this[_0x819b('0x4')]()),this[_0x819b('0x51')](_0x56b553,_0x819b('0x4a'),(_0x11cef4,_0x153d8e)=>{this[_0x819b('0xc')]['add'](_0x56b553),this['_hideBalloon'](),_0x153d8e();});}[_0x819b('0x16')](_0x72fc86){this[_0x819b('0x56')](_0x72fc86);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1966=['minHeight','locale','unbind','content','getIndex','last','list','_recalculateBuffer','isActive','change:bottom','_alignForTopChange','container','class','_getMaxAvailableTop','remove','sidebar.container','target','sidebar.preventScrollOutOfView','setContainer','addAnnotation','_attachToContainer','sidebar-attachtocontainer-missing-container','_createSidebarView','_alignToTargetRect','_alignBeforeItem','_annotationToSidebarItemView','_annotations','_spaceBetweenItems','targetRect','getSidebarItemView','_updateLastItem','_setItemTop','_getTargetTop','updateHeight','define','context','isAnimationDisabled','destroy','_targetTop','_recalculate','element','render','_sidebarItemViewToAnnotation','top','push','get','add','delete','config','stopListening','set','appendChild','_alignAfterItem','_getItemBefore','_alignForBottomChange','sidebar-setcontainer-invalid-element','view','rearrange','length','refresh','clear','listenTo','bottom','_lastItem','max','_activeAnnotation','bind'];(function(_0x172bb9,_0x1966b6){const _0x78f80c=function(_0x47472f){while(--_0x47472f){_0x172bb9['push'](_0x172bb9['shift']());}};_0x78f80c(++_0x1966b6);}(_0x1966,0xc5));const _0x78f8=function(_0x172bb9,_0x1966b6){_0x172bb9=_0x172bb9-0x0;let _0x78f80c=_0x1966[_0x172bb9];return _0x78f80c;};import{ContextPlugin as _0x38793d}from'ckeditor5/src/core.js';import{Rect as _0x3fe296,CKEditorError as _0x4abd4a}from'ckeditor5/src/utils.js';import _0x2974c7 from'./view/sidebarview.js';import _0x1ca025 from'./view/sidebaritemview.js';export default class z extends _0x38793d{static get['pluginName'](){return'Sidebar';}constructor(_0x148931){super(_0x148931),this[_0x78f8('0x36')]('_lastItem',void 0x0),this[_0x78f8('0x3c')]=this[_0x78f8('0x1a')](),this['set'](_0x78f8('0xf'),null),this[_0x78f8('0x1f')]=0x19,this[_0x78f8('0x2e')]=new Map(),this[_0x78f8('0x1d')]=new Map(),this[_0x78f8('0x27')][_0x78f8('0x34')][_0x78f8('0x26')](_0x78f8('0x15'),!0x1),this[_0x78f8('0x1e')]=null,this[_0x78f8('0x2')]=null,this[_0x78f8('0xb')]=[];}['init'](){const _0x13272f=this[_0x78f8('0x27')]['config'][_0x78f8('0x31')](_0x78f8('0x13'));_0x13272f&&this[_0x78f8('0x16')](_0x13272f);}['setContainer'](_0xa62998){if(!y(_0xa62998))throw new _0x4abd4a(_0x78f8('0x3b'));this['container']=_0xa62998;}[_0x78f8('0x18')]({viewClass:_0x2eb1d9='',spaceBetweenItems:_0x26dd02=0x19}={}){if(!y(this[_0x78f8('0xf')]))throw new _0x4abd4a(_0x78f8('0x19'),this);this[_0x78f8('0xf')][_0x78f8('0x37')](this[_0x78f8('0x3c')][_0x78f8('0x2c')]),this[_0x78f8('0x3c')]['class']=_0x2eb1d9,this[_0x78f8('0x1f')]=_0x26dd02;}[_0x78f8('0x3d')]({removedAnnotation:_0x552869,previousAnnotation:_0x26cfb2,nextAnnotation:_0x109fbd}){const _0x91d7e1=this[_0x78f8('0x21')](_0x552869);this[_0x78f8('0x3c')][_0x78f8('0xa')]['remove'](_0x91d7e1),this['_destroySidebarItemView'](_0x552869),_0x26cfb2&&this['_alignToTargetRect'](this[_0x78f8('0x21')](_0x26cfb2)),_0x109fbd&&this[_0x78f8('0x1b')](this['getSidebarItemView'](_0x109fbd)),this[_0x78f8('0x22')]();}[_0x78f8('0x3f')]({blurredAnnotation:_0x33bc90,activatedAnnotation:_0x1ed64a,disableAnimationOnActivatedAnnotation:_0x8d7d38}){if(this[_0x78f8('0x2')]=_0x1ed64a,_0x33bc90){_0x33bc90[_0x78f8('0xc')]=!0x1;const _0x29be78=this['getSidebarItemView'](_0x33bc90);_0x29be78&&_0x8d7d38&&(_0x29be78[_0x78f8('0x28')]=!0x1);}if(_0x1ed64a){const _0x24044f=this[_0x78f8('0x21')](_0x1ed64a);_0x24044f&&(_0x1ed64a[_0x78f8('0xc')]=!0x0,_0x8d7d38&&(_0x24044f[_0x78f8('0x28')]=!0x0,_0x24044f[_0x78f8('0x2f')]+=0x1),this['_alignToTargetRect'](_0x24044f));}}['_detachFromContainer'](_0x11ca01){if(this[_0x78f8('0x3c')][_0x78f8('0x2c')][_0x78f8('0x12')](),_0x11ca01)for(const _0x43b5e4 of _0x11ca01)this['_destroySidebarItemView'](_0x43b5e4);this[_0x78f8('0x3c')][_0x78f8('0xa')][_0x78f8('0x40')](),this[_0x78f8('0x3c')][_0x78f8('0x10')]='',this[_0x78f8('0x0')]=null;}[_0x78f8('0x17')](_0x3cad40,_0x5dee48){_0x5dee48||(_0x5dee48=_0x3cad40[_0x78f8('0x3c')]);const _0x43de6d=new _0x1ca025(this[_0x78f8('0x27')]['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x43de6d,_0x3cad40),this[_0x78f8('0x1d')][_0x78f8('0x36')](_0x3cad40,_0x43de6d),_0x43de6d[_0x78f8('0x7')][_0x78f8('0x32')](_0x5dee48),this['listenTo'](_0x3cad40[_0x78f8('0x3c')],'change:targetRect',(_0x3726ad,_0x388c8e,_0x424dba)=>{const _0xa6f606=this[_0x78f8('0x24')](_0x3cad40,_0x424dba);_0x43de6d[_0x78f8('0x2a')]!=_0xa6f606&&(_0x43de6d[_0x78f8('0x2a')]=_0xa6f606,this['_setItemTop'](_0x43de6d,_0xa6f606));}),this[_0x78f8('0x41')](_0x43de6d,'change:top',()=>{this[_0x78f8('0x2b')](_0x43de6d,_0x78f8('0x2f'));}),this[_0x78f8('0x41')](_0x43de6d,_0x78f8('0xd'),()=>{this[_0x78f8('0x2b')](_0x43de6d,'bottom');}),this['_alignToTargetRect'](_0x43de6d);const _0x36ee79=this[_0x78f8('0x39')](_0x43de6d);if(_0x36ee79)this[_0x78f8('0x38')](_0x36ee79,_0x43de6d)||this[_0x78f8('0x1b')](_0x43de6d);else this[_0x78f8('0x1b')](_0x43de6d);return this[_0x78f8('0x22')](),this['view']['list'][_0x78f8('0x32')](_0x43de6d),_0x43de6d;}[_0x78f8('0xe')](_0x50dc56){if(!_0x50dc56[_0x78f8('0x7')][_0x78f8('0x3e')])return;const _0x20eb01=this[_0x78f8('0x39')](_0x50dc56);if(!_0x20eb01)return;const _0x3ca064=this['_sidebarItemViewToAnnotation']['get'](_0x20eb01),_0x79e408=this[_0x78f8('0x2')];_0x79e408&&_0x79e408===_0x3ca064?this[_0x78f8('0x38')](_0x20eb01,_0x50dc56):this['_alignBeforeItem'](_0x50dc56,_0x20eb01);}[_0x78f8('0x3a')](_0x321702){if(!_0x321702[_0x78f8('0x7')][_0x78f8('0x3e')])return;const _0x4d2e1f=this['_getItemAfter'](_0x321702);if(!_0x4d2e1f)return;const _0xe079a1=this[_0x78f8('0x2e')]['get'](_0x4d2e1f),_0x25ed30=this[_0x78f8('0x27')][_0x78f8('0x34')]['get'](_0x78f8('0x15')),_0x4c6d47=this['_activeAnnotation'];_0x4c6d47&&_0x4c6d47===_0xe079a1&&_0x25ed30?(this[_0x78f8('0x1c')](_0x4d2e1f,_0x321702),this[_0x78f8('0x38')](_0x321702,_0x4d2e1f)):_0x4c6d47&&_0x4c6d47===_0xe079a1?this[_0x78f8('0x1c')](_0x4d2e1f,_0x321702):this[_0x78f8('0x38')](_0x321702,_0x4d2e1f);}[_0x78f8('0x2b')](_0x2f7a34,_0x44a7fe){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x1fb436,changedProp:_0x1d255a}of this[_0x78f8('0xb')])_0x78f8('0x2f')===_0x1d255a?this[_0x78f8('0xe')](_0x1fb436):this['_alignForBottomChange'](_0x1fb436);this[_0x78f8('0xb')]=[];},0xa),this['_recalculateBuffer'][_0x78f8('0x30')]({'sidebarItemView':_0x2f7a34,'changedProp':_0x44a7fe});}[_0x78f8('0x21')](_0x390102){return this[_0x78f8('0x1d')][_0x78f8('0x31')](_0x390102);}[_0x78f8('0x29')](){this[_0x78f8('0x35')](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4134e0){const _0x51b164=this[_0x78f8('0x21')](_0x4134e0);this[_0x78f8('0x35')](_0x51b164),this[_0x78f8('0x35')](_0x4134e0['view']),_0x51b164[_0x78f8('0x29')](),this['_annotationToSidebarItemView'][_0x78f8('0x33')](_0x4134e0),this[_0x78f8('0x2e')][_0x78f8('0x33')](_0x51b164);}[_0x78f8('0x1a')](){const _0x3565f9=new _0x2974c7(this['context'][_0x78f8('0x5')]);return _0x3565f9[_0x78f8('0x2d')](),this['on']('change:_lastItem',(_0x3acf21,_0x281a8d,_0x533e61,_0x8b3420)=>{_0x8b3420&&_0x3565f9[_0x78f8('0x6')]('minHeight'),_0x533e61?_0x3565f9[_0x78f8('0x3')](_0x78f8('0x4'))['to'](_0x533e61,_0x78f8('0x42')):_0x3565f9['minHeight']=null;}),_0x3565f9;}[_0x78f8('0x22')](){var _0x31495e;this[_0x78f8('0x0')]=(null===(_0x31495e=this[_0x78f8('0x1e')])||void 0x0===_0x31495e?void 0x0:_0x31495e[_0x78f8('0x9')])?this[_0x78f8('0x21')](this[_0x78f8('0x1e')][_0x78f8('0x9')]):null;}[_0x78f8('0x39')](_0x1725d4){var _0x4c2ff2;const _0x51e1e7=this[_0x78f8('0x2e')][_0x78f8('0x31')](_0x1725d4),_0x44b574=_0x51e1e7&&(null===(_0x4c2ff2=this[_0x78f8('0x1e')])||void 0x0===_0x4c2ff2?void 0x0:_0x4c2ff2[_0x78f8('0x31')](this[_0x78f8('0x1e')][_0x78f8('0x8')](_0x51e1e7)-0x1));return _0x44b574&&this['getSidebarItemView'](_0x44b574)||null;}['_getItemAfter'](_0x19c225){var _0xb9db2c;const _0xe8c28f=this[_0x78f8('0x2e')][_0x78f8('0x31')](_0x19c225),_0x2ff2bc=_0xe8c28f&&(null===(_0xb9db2c=this[_0x78f8('0x1e')])||void 0x0===_0xb9db2c?void 0x0:_0xb9db2c[_0x78f8('0x31')](this[_0x78f8('0x1e')][_0x78f8('0x8')](_0xe8c28f)+0x1));return _0x2ff2bc&&this[_0x78f8('0x21')](_0x2ff2bc)||null;}['_alignBeforeItem'](_0x70ac5f,_0x530db1){_0x70ac5f[_0x78f8('0x25')]();const _0x2d01c2=M(_0x530db1['bottom']+this['_spaceBetweenItems'],_0x70ac5f[_0x78f8('0x2f')]);return!!_0x2d01c2&&(this[_0x78f8('0x23')](_0x530db1,_0x530db1[_0x78f8('0x2f')]-_0x2d01c2),!0x0);}[_0x78f8('0x38')](_0x87df1b,_0x846ca9){_0x87df1b[_0x78f8('0x25')]();const _0x187c29=M(_0x87df1b['bottom']+this['_spaceBetweenItems'],_0x846ca9[_0x78f8('0x2f')]);return!!_0x187c29&&(this[_0x78f8('0x23')](_0x846ca9,_0x846ca9[_0x78f8('0x2f')]+_0x187c29,!0x1),!0x0);}[_0x78f8('0x1b')](_0x36f7b0){const _0x1476fc=this[_0x78f8('0x2e')][_0x78f8('0x31')](_0x36f7b0);if(!_0x1476fc||!_0x1476fc[_0x78f8('0x14')]||!_0x1476fc['targetRect'])return;const _0x5f0290=this[_0x78f8('0x24')](_0x1476fc,_0x1476fc[_0x78f8('0x20')]);this[_0x78f8('0x23')](_0x36f7b0,_0x5f0290);}['_getTargetTop'](_0x189817,_0x2a2cae){if(null===_0x2a2cae)return 0x0;if(_0x189817[_0x78f8('0x14')]instanceof _0x3fe296)return _0x2a2cae[_0x78f8('0x2f')];{const _0x4bc4eb=new _0x3fe296(this[_0x78f8('0x3c')][_0x78f8('0x2c')])[_0x78f8('0x2f')];return _0x2a2cae[_0x78f8('0x2f')]-_0x4bc4eb;}}[_0x78f8('0x23')](_0x1ff20d,_0x3dab36,_0xa91cf3=this['context'][_0x78f8('0x34')]['get'](_0x78f8('0x15'))){_0xa91cf3&&(_0x3dab36=Math[_0x78f8('0x1')](_0x3dab36,this[_0x78f8('0x11')](_0x1ff20d))),_0x1ff20d[_0x78f8('0x2f')]=_0x3dab36;}[_0x78f8('0x11')](_0x1623f7){let _0x26f11c=this['_getItemBefore'](_0x1623f7),_0x35174d=0x0;for(;_0x26f11c;)_0x26f11c[_0x78f8('0x25')](),_0x35174d+=this[_0x78f8('0x1f')]+_0x26f11c['height'],_0x26f11c=this[_0x78f8('0x39')](_0x26f11c);return _0x35174d;}}function M(_0x2db695,_0x49dc39){return Math[_0x78f8('0x1')](_0x2db695-_0x49dc39,0x0);}function y(_0x35f780){return null!==_0x35f780&&'object'==typeof _0x35f780&&0x1===_0x35f780['nodeType'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e0c=['annotationType','toString','ck-annotation-counter__badge--edit-mode','number','span','bind','set','_badge','ck-annotation-counter__badge--','counterView','extendTemplate','ck-annotation-counter','isDirty','...','add'];(function(_0x6570a0,_0x2e0c22){const _0x5cca7d=function(_0x795d21){while(--_0x795d21){_0x6570a0['push'](_0x6570a0['shift']());}};_0x5cca7d(++_0x2e0c22);}(_0x2e0c,0x7e));const _0x5cca=function(_0x6570a0,_0x2e0c22){_0x6570a0=_0x6570a0-0x0;let _0x5cca7d=_0x2e0c[_0x6570a0];return _0x5cca7d;};import{ButtonView as _0x8d405c,View as _0x31f937}from'ckeditor5/src/ui.js';import _0x59cac5 from'../../../theme/icons/add-comment.svg';export default class D extends _0x8d405c{constructor(_0x45edd8){super(_0x45edd8);const _0x5ad34b=this['bindTemplate'];this[_0x5cca('0x0')](_0x5cca('0x6'),!0x1),this[_0x5cca('0x0')](_0x5cca('0xc'),0x0),this[_0x5cca('0xe')](_0x5cca('0x1'))['to'](this,_0x5cca('0x6'),this,_0x5cca('0xc'),(_0x2a297b,_0x3ca695)=>_0x2a297b?_0x5cca('0x7'):_0x3ca695[_0x5cca('0xa')]()),this[_0x5cca('0x0')]('annotationType',''),this['icon']=_0x59cac5,this[_0x5cca('0x4')]({'attributes':{'class':[_0x5cca('0x5')]}}),this[_0x5cca('0x3')]=new _0x31f937(),this[_0x5cca('0x3')]['setTemplate']({'tag':_0x5cca('0xd'),'attributes':{'class':['ck-annotation-counter__badge',_0x5ad34b['to'](_0x5cca('0x9'),_0x4a03df=>_0x5cca('0x2')+_0x4a03df),_0x5ad34b['if'](_0x5cca('0x6'),_0x5cca('0xb'))]},'children':[{'text':_0x5ad34b['to'](_0x5cca('0x1'))}]}),this['children'][_0x5cca('0x8')](this['counterView']);}}
|