@ckeditor/ckeditor5-comments 33.0.0 → 34.2.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/LICENSE.md +2 -2
- package/README.md +5 -2
- package/build/comments.js +2 -2
- package/build/translations/af.js +1 -0
- package/build/translations/bs.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -0
- package/build/translations/ko.js +1 -1
- package/build/translations/lv.js +1 -0
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -0
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +0 -3
- package/lang/translations/af.po +67 -0
- package/lang/translations/bs.po +0 -12
- package/lang/translations/cs.po +0 -12
- package/lang/translations/da.po +0 -12
- package/lang/translations/de-ch.po +0 -12
- package/lang/translations/de.po +0 -12
- package/lang/translations/el.po +0 -12
- package/lang/translations/en-au.po +0 -12
- package/lang/translations/en.po +0 -12
- package/lang/translations/es.po +2 -13
- package/lang/translations/et.po +0 -12
- package/lang/translations/fr.po +2 -13
- package/lang/translations/gl.po +0 -12
- package/lang/translations/hi.po +0 -12
- package/lang/translations/hr.po +0 -12
- package/lang/translations/hu.po +0 -12
- package/lang/translations/id.po +0 -12
- package/lang/translations/it.po +2 -13
- package/lang/translations/ja.po +0 -12
- package/lang/translations/jv.po +66 -0
- package/lang/translations/ko.po +0 -12
- package/lang/translations/lv.po +68 -0
- package/lang/translations/nl.po +0 -12
- package/lang/translations/no.po +0 -12
- package/lang/translations/pl.po +0 -12
- package/lang/translations/pt-br.po +2 -13
- package/lang/translations/ro.po +0 -12
- package/lang/translations/ru.po +0 -12
- package/lang/translations/sk.po +0 -12
- package/lang/translations/sr-latn.po +0 -12
- package/lang/translations/sr.po +0 -12
- package/lang/translations/tk.po +0 -12
- package/lang/translations/tr.po +0 -12
- package/lang/translations/ug.po +0 -12
- package/lang/translations/uk.po +0 -12
- package/lang/translations/ur.po +67 -0
- package/lang/translations/zh-cn.po +0 -12
- package/lang/translations/zh.po +0 -12
- 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/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/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/commentslistview.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/src/comments/ui/view/confirmmixin.js +0 -23
- package/src/comments/ui/view/confirmview.js +0 -23
package/lang/translations/zh.po
CHANGED
|
@@ -57,18 +57,6 @@ msgctxt "The confirmation message shown after pressing the delete comment thread
|
|
|
57
57
|
msgid "Delete comment thread?"
|
|
58
58
|
msgstr "刪除討論串?"
|
|
59
59
|
|
|
60
|
-
msgctxt "The label for confirming an action."
|
|
61
|
-
msgid "Yes"
|
|
62
|
-
msgstr "好"
|
|
63
|
-
|
|
64
|
-
msgctxt "The label for rejecting an action."
|
|
65
|
-
msgid "No"
|
|
66
|
-
msgstr "先不要"
|
|
67
|
-
|
|
68
|
-
msgctxt "The label for confirming a dangerous action."
|
|
69
|
-
msgid "Are you sure?"
|
|
70
|
-
msgstr "確定做此操作?"
|
|
71
|
-
|
|
72
60
|
msgctxt "The tooltip for the comment toolbar button."
|
|
73
61
|
msgid "Comment"
|
|
74
62
|
msgstr "留言"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-comments",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "34.2.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/)",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
],
|
|
32
32
|
"main": "src/index.js",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"ckeditor5": "^
|
|
35
|
-
"ckeditor5-collaboration": "^
|
|
34
|
+
"ckeditor5": "^34.2.0",
|
|
35
|
+
"ckeditor5-collaboration": "^34.2.0",
|
|
36
36
|
"lodash-es": "^4.17.11"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x402b=['focusableElements','mainView','isActive','_isTargetElementVisible','item','destroy','element','type','_target','function','set','_assertCorrectTarget','isVisible','remove','_type','refreshVisibility','render','targetRect','getClientRects','focusTracker','clear','target','annotation-invalid-target','add','view','stopListening'];(function(_0x281e52,_0x402b2f){const _0xeac67d=function(_0x12006e){while(--_0x12006e){_0x281e52['push'](_0x281e52['shift']());}};_0xeac67d(++_0x402b2f);}(_0x402b,0x10c));const _0xeac6=function(_0x281e52,_0x402b2f){_0x281e52=_0x281e52-0x0;let _0xeac67d=_0x402b[_0x281e52];return _0xeac67d;};import{CKEditorError as _0x109831,Rect as _0x66e9ca,Collection as _0x3c0d47,mix as _0x3d40d3,ObservableMixin as _0x2278aa}from'ckeditor5/src/utils';import{isElement as _0x29ba9f}from'lodash-es';export default class p{constructor({view:_0x6f6ed8,target:_0x5d0891,type:_0x31aefa,isVisible:_0x5f46c5=!0x0}){this[_0xeac6('0x10')]=_0x6f6ed8,this[_0xeac6('0x10')]['element']||this['view'][_0xeac6('0x8')](),this[_0xeac6('0x6')]=_0x31aefa,this[_0xeac6('0x0')]=_0x5d0891,this[_0xeac6('0x3')](),this[_0xeac6('0x12')]=new _0x3c0d47([this[_0xeac6('0x10')][_0xeac6('0x18')]],{'idProperty':'_id'}),this[_0xeac6('0x12')]['on'](_0xeac6('0xf'),(_0x29dc09,_0x384c89)=>{this[_0xeac6('0x10')][_0xeac6('0xb')][_0xeac6('0xf')](_0x384c89);}),this['focusableElements']['on'](_0xeac6('0x5'),(_0x462584,_0x236f04)=>{this[_0xeac6('0x10')]['focusTracker']['remove'](_0x236f04);}),this[_0xeac6('0x2')](_0xeac6('0x4'),_0x5f46c5);}get[_0xeac6('0x19')](){return _0xeac6('0x1')==typeof this[_0xeac6('0x6')]?this[_0xeac6('0x6')]():this[_0xeac6('0x6')];}get['innerView'](){return this[_0xeac6('0x10')][_0xeac6('0x13')];}get[_0xeac6('0xd')](){return'function'==typeof this[_0xeac6('0x0')]?this[_0xeac6('0x0')]():this[_0xeac6('0x0')];}get[_0xeac6('0x9')](){const _0x47daba=this[_0xeac6('0xd')];return this[_0xeac6('0x3')](),null!==_0x47daba&&this[_0xeac6('0x15')]()?new _0x66e9ca(_0x47daba):null;}get[_0xeac6('0x14')](){return this['view'][_0xeac6('0x14')];}set['isActive'](_0x406eac){this[_0xeac6('0x10')]['isActive']=_0x406eac,this[_0xeac6('0x10')][_0xeac6('0x13')][_0xeac6('0x14')]=_0x406eac;}['updateTargetRect'](){this[_0xeac6('0x10')][_0xeac6('0x9')]=this[_0xeac6('0x9')];}[_0xeac6('0x17')](){this[_0xeac6('0x12')][_0xeac6('0x11')](),this[_0xeac6('0x12')][_0xeac6('0xc')](),this[_0xeac6('0x11')]();}[_0xeac6('0x7')](){this[_0xeac6('0x4')]=this[_0xeac6('0x15')]();}['_isTargetElementVisible'](){const _0x5242d6=this['target'];if(_0x29ba9f(_0x5242d6)){const _0x3cf7c8=_0x5242d6[_0xeac6('0xa')]()[_0xeac6('0x16')](0x0),_0x1b6cc8=_0x5242d6['offsetParent'];if(!_0x3cf7c8||!_0x1b6cc8)return!0x1;}return!0x0;}[_0xeac6('0x3')](){const _0x19f18a=this[_0xeac6('0xd')];if(!(null===_0x19f18a||_0x19f18a instanceof _0x66e9ca||_0x29ba9f(_0x19f18a)))throw new _0x109831(_0xeac6('0xe'),null,{'target':_0x19f18a});}}_0x3d40d3(p,_0x2278aa);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dbf=['destroy','innerView','_innerViewToAnnotation','clear','_items','annotationcollection-not-existing-item','remove','focusTracker','_getOrderInContent','focusableElements','stopListening','listenTo','_sort','updateTargetRect','_viewToAnnotation','view','delete','_focusTracker','targetRect','annotationcollection-duplicated-item','sort','refreshPositioning','get','has','left','change:isFocused','from','blur','getByView','add','top','length','isFocused','getByInnerView','fire'];(function(_0x474a36,_0x5dbf0f){const _0x137208=function(_0x3ff9a7){while(--_0x3ff9a7){_0x474a36['push'](_0x474a36['shift']());}};_0x137208(++_0x5dbf0f);}(_0x5dbf,0x18f));const _0x1372=function(_0x474a36,_0x5dbf0f){_0x474a36=_0x474a36-0x0;let _0x137208=_0x5dbf[_0x474a36];return _0x137208;};import{CKEditorError as _0x31aeae,Collection as _0x2bc692,FocusTracker as _0x4b4b0b}from'ckeditor5/src/utils';export default class x extends _0x2bc692{constructor(_0x470e79=[]){super(),this[_0x1372('0x17')]=new Map(),this[_0x1372('0x0')]=new Map(),this[_0x1372('0x3')]=new _0x4b4b0b(),this[_0x1372('0x3')]['on'](_0x1372('0xb'),(_0x2a4d5e,_0x22fc6d,_0x2be1ee)=>{_0x2be1ee||this['fire'](_0x1372('0xd'));});for(const _0x31455a of _0x470e79)this[_0x1372('0xf')](_0x31455a);}get[_0x1372('0x12')](){return this['_focusTracker'][_0x1372('0x12')];}[_0x1372('0xf')](_0x1768cc){if(this[_0x1372('0x9')](_0x1768cc))throw new _0x31aeae(_0x1372('0x5'),null);this[_0x1372('0x17')]['set'](_0x1768cc[_0x1372('0x16')],_0x1768cc),this[_0x1372('0x0')]['set'](_0x1768cc[_0x1372('0x1')],_0x1768cc);for(const _0x48dbf2 of _0x1768cc[_0x1372('0x1e')])this[_0x1372('0x3')][_0x1372('0xf')](_0x48dbf2);this[_0x1372('0x20')](_0x1768cc['focusableElements'],_0x1372('0xf'),(_0x19b7e7,_0x233947)=>{this[_0x1372('0x3')][_0x1372('0xf')](_0x233947);}),this[_0x1372('0x20')](_0x1768cc['focusableElements'],'remove',(_0x394e26,_0x10b426)=>{this[_0x1372('0x3')][_0x1372('0x1b')](_0x10b426);}),this[_0x1372('0x20')](_0x1768cc[_0x1372('0x1')][_0x1372('0x1c')],'change:isFocused',(_0x21788a,_0x56abf0,_0x37fa7a)=>{_0x37fa7a&&this[_0x1372('0x14')]('focus',_0x1768cc);});const _0x408ed3=this[_0x1372('0x1d')](_0x1768cc);super[_0x1372('0xf')](_0x1768cc,_0x408ed3),_0x1768cc[_0x1372('0x22')]();}['remove'](_0x48b006){if(!this[_0x1372('0x9')](_0x48b006))throw new _0x31aeae(_0x1372('0x1a'),null);this[_0x1372('0x1f')](_0x48b006[_0x1372('0x1')]['focusTracker']),this['stopListening'](_0x48b006[_0x1372('0x1e')]);for(const _0x1e0312 of _0x48b006[_0x1372('0x1e')])this[_0x1372('0x3')][_0x1372('0x1b')](_0x1e0312);this[_0x1372('0x0')][_0x1372('0x2')](_0x48b006[_0x1372('0x1')]),this[_0x1372('0x17')]['delete'](_0x48b006['innerView']),super['remove'](_0x48b006);}[_0x1372('0x13')](_0x34ac0c){return this[_0x1372('0x17')][_0x1372('0x8')](_0x34ac0c);}[_0x1372('0xe')](_0x68cf57){return this[_0x1372('0x0')][_0x1372('0x8')](_0x68cf57);}[_0x1372('0x15')](){super[_0x1372('0x18')](),this[_0x1372('0x1f')](),this[_0x1372('0x17')][_0x1372('0x18')](),this[_0x1372('0x0')][_0x1372('0x18')](),this['_focusTracker'][_0x1372('0x15')]();}[_0x1372('0x7')](){for(const _0x3393aa of this)_0x3393aa[_0x1372('0x22')]();this[_0x1372('0x21')]();}[_0x1372('0x21')](){const _0x5dd13f=Array[_0x1372('0xc')](this)[_0x1372('0x6')]((_0x15f81f,_0x381a0b)=>y(_0x15f81f[_0x1372('0x4')],_0x381a0b['targetRect']));for(let _0x228408=_0x5dd13f[_0x1372('0x11')]-0x1;_0x228408>0x0;_0x228408--){const _0x5a2a2b=_0x5dd13f[_0x228408];_0x228408!==this['getIndex'](_0x5a2a2b)&&(this[_0x1372('0x1b')](_0x5a2a2b),this['add'](_0x5a2a2b,_0x228408));}}['_getOrderInContent'](_0x26abc4){let _0x680b23=0x0;const _0x3fc37d=_0x26abc4[_0x1372('0x4')];if(!_0x3fc37d)return this[_0x1372('0x19')]['length'];for(const _0x2fad9d of this){const _0x425ba3=_0x2fad9d['targetRect'];if(_0x425ba3){if(y(_0x3fc37d,_0x425ba3)<0x0)return _0x680b23;_0x680b23++;}}return _0x680b23;}}export function bindAnnotationCollections({source:_0x3b6433,target:_0x37eca2,filter:_0x98f4a9}){for(const _0xf5d1e2 of _0x3b6433)_0x98f4a9(_0xf5d1e2)&&_0x37eca2['add'](_0xf5d1e2);_0x37eca2['listenTo'](_0x3b6433,_0x1372('0xf'),(_0x25d7b9,_0x3bd665)=>{_0x98f4a9(_0x3bd665)&&_0x37eca2[_0x1372('0xf')](_0x3bd665);}),_0x37eca2[_0x1372('0x20')](_0x3b6433,_0x1372('0x1b'),(_0x5deee5,_0x31d1d4)=>{_0x37eca2['has'](_0x31d1d4)&&_0x37eca2[_0x1372('0x1b')](_0x31d1d4);});}function y(_0x2fa2c0,_0x419ad6){if(null===_0x2fa2c0&&null===_0x419ad6)return 0x0;if(null===_0x2fa2c0)return-0x1;if(null===_0x419ad6)return 0x1;const _0x12b3f4=_0x2fa2c0[_0x1372('0x10')]-_0x419ad6[_0x1372('0x10')];return 0x0==_0x12b3f4?_0x2fa2c0[_0x1372('0xa')]-_0x419ad6[_0x1372('0xa')]:_0x12b3f4;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45a5=['_visibleAnnotations','isVisible','listenTo','destroy','activeAnnotations','fire','add','has','_addActiveAnnotation','pluginName','change:isVisible','delete','_removeActiveAnnotation','stopListening','_activateAnnotation','collection','remove','getByInnerView','_bindAnnotationsToVisibleAnnotations','_deactivateAllAnnotations','activate'];(function(_0x5a6567,_0x45a5f9){const _0x1be08b=function(_0x5a20c5){while(--_0x5a20c5){_0x5a6567['push'](_0x5a6567['shift']());}};_0x1be08b(++_0x45a5f9);}(_0x45a5,0x1e0));const _0x1be0=function(_0x5a6567,_0x45a5f9){_0x5a6567=_0x5a6567-0x0;let _0x1be08b=_0x45a5[_0x5a6567];return _0x1be08b;};import{ContextPlugin as _0x1d1fe7}from'ckeditor5/src/core';import _0x32746a from'./annotation';import _0xbfdb26 from'./annotationcollection';import _0xa11573 from'./view/annotationview';export default class V extends _0x1d1fe7{static get[_0x1be0('0xc')](){return'Annotations';}constructor(_0x2f6f60){super(_0x2f6f60),this['collection']=new _0xbfdb26(),this[_0x1be0('0x3')]=new _0xbfdb26(),this['set'](_0x1be0('0x7'),new Set()),this[_0x1be0('0x0')]();}['add'](_0x3718f4){this[_0x1be0('0x12')]['add'](_0x3718f4);}[_0x1be0('0x13')](_0x237a81){this[_0x1be0('0x12')]['remove'](_0x237a81),_0x237a81[_0x1be0('0x6')]();}['refreshVisibility'](){for(const _0x354338 of this[_0x1be0('0x12')])_0x354338['refreshVisibility']();}['refreshPositioning'](){this[_0x1be0('0x3')]['refreshPositioning']();}['getByInnerView'](_0x1cd9fe){return this[_0x1be0('0x12')][_0x1be0('0x14')](_0x1cd9fe);}['deactivateAll'](){this['fire'](_0x1be0('0x1'));}['destroy'](){for(const _0x5be55a of this[_0x1be0('0x12')])_0x5be55a[_0x1be0('0x6')]();this[_0x1be0('0x3')]['destroy'](),this['collection'][_0x1be0('0x6')](),super[_0x1be0('0x6')]();}[_0x1be0('0x2')](_0x2fea11){this[_0x1be0('0x8')](_0x1be0('0x11'),_0x2fea11);}['createAnnotation'](_0x2b6f04){return new _0x32746a(_0x2b6f04);}['createAnnotationView'](_0x1385da,_0xb07c7d){return new _0xa11573(_0x1385da,_0xb07c7d);}[_0x1be0('0xb')](_0x353995){const _0xf8e3a6=new Set(this[_0x1be0('0x7')]);_0xf8e3a6[_0x1be0('0x9')](_0x353995),this[_0x1be0('0x7')]=_0xf8e3a6;}[_0x1be0('0xf')](_0x3a1753){const _0x4a83e4=new Set(this[_0x1be0('0x7')]);_0x4a83e4[_0x1be0('0xe')](_0x3a1753),this[_0x1be0('0x7')]=_0x4a83e4;}[_0x1be0('0x0')](){const _0x1ca9a6=this[_0x1be0('0x12')],_0x15eab0=this[_0x1be0('0x3')];function _0x37078d(_0x127730){const _0x338d91=_0x127730['source'];_0x338d91[_0x1be0('0x4')]&&!_0x15eab0[_0x1be0('0xa')](_0x338d91)?_0x15eab0['add'](_0x338d91):!_0x338d91[_0x1be0('0x4')]&&_0x15eab0[_0x1be0('0xa')](_0x338d91)&&_0x15eab0['remove'](_0x338d91);}this[_0x1be0('0x5')](_0x1ca9a6,_0x1be0('0x9'),(_0x5bb336,_0x5ed6fe)=>{_0x5ed6fe[_0x1be0('0x4')]&&_0x15eab0[_0x1be0('0x9')](_0x5ed6fe),this[_0x1be0('0x5')](_0x5ed6fe,_0x1be0('0xd'),_0x37078d);}),this[_0x1be0('0x5')](_0x1ca9a6,_0x1be0('0x13'),(_0x1a7d30,_0x2474a2)=>{_0x15eab0[_0x1be0('0xa')](_0x2474a2)&&_0x15eab0['remove'](_0x2474a2),this[_0x1be0('0x10')](_0x2474a2,_0x1be0('0xd'),_0x37078d);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22d0=['filter','annotationsuis-activate-missing-ui','push','attach','requires','has','from','annotationsuis-register-already-registered','init','pluginName','_uisData','get','_uis','set','detach','setActiveAnnotation','add','_deactivateAllAnnotations','_setSelectedAnnotations','isActive','activate','destroy','_visibleAnnotations','change:activeAnnotation','_activateAnnotation','deactivate','stopListening','refilterAnnotations','_addActiveAnnotation','length','AnnotationsUIs','switchTo','size','_assertAnnotationDoesNotBelongToMultipleUIs','deactivateAll','activeUIs','collection','function','listenTo','plugins','delete','context'];(function(_0x1aab56,_0x22d012){const _0x2c5d94=function(_0x483b12){while(--_0x483b12){_0x1aab56['push'](_0x1aab56['shift']());}};_0x2c5d94(++_0x22d012);}(_0x22d0,0xd4));const _0x2c5d=function(_0x1aab56,_0x22d012){_0x1aab56=_0x1aab56-0x0;let _0x2c5d94=_0x22d0[_0x1aab56];return _0x2c5d94;};import{ContextPlugin as _0x5c6968}from'ckeditor5/src/core';import{CKEditorError as _0x20c69d}from'ckeditor5/src/utils';import _0x41e3e4,{bindAnnotationCollections as _0x505d13}from'./annotationcollection';import _0x15e37b from'./annotations';export default class I extends _0x5c6968{static get[_0x2c5d('0x2')](){return[_0x15e37b];}static get[_0x2c5d('0x7')](){return _0x2c5d('0x1c');}constructor(_0x1bb737){super(_0x1bb737),this[_0x2c5d('0x21')]=new Set(),this['_uis']=new Map(),this[_0x2c5d('0x8')]=new Map();}[_0x2c5d('0x6')](){const _0x38fd93=this[_0x2c5d('0x27')][_0x2c5d('0x25')]['get'](_0x15e37b);this[_0x2c5d('0x24')](_0x38fd93,_0x2c5d('0x16'),(_0x182303,_0x370bb3)=>{for(const _0x21355f of this[_0x2c5d('0x21')]){const _0x529e42=this[_0x2c5d('0xa')][_0x2c5d('0x9')](_0x21355f);(0x0,this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0x21355f)[_0x2c5d('0x28')])(_0x370bb3)&&_0x529e42[_0x2c5d('0xd')](_0x370bb3);}}),this[_0x2c5d('0x24')](_0x38fd93,_0x2c5d('0xf'),()=>{for(const _0x4f2783 of this['activeUIs']){this[_0x2c5d('0xa')]['get'](_0x4f2783)[_0x2c5d('0xd')](null);}}),this[_0x2c5d('0x24')](_0x38fd93[_0x2c5d('0x14')],_0x2c5d('0xe'),(_0x3cfaa5,_0x2e3da9)=>{this[_0x2c5d('0x1f')](_0x2e3da9);});}['hasActive'](){return this[_0x2c5d('0x21')][_0x2c5d('0x1e')]>0x0;}['isActive'](_0x4d3b8e){return this[_0x2c5d('0x21')][_0x2c5d('0x3')](_0x4d3b8e);}['activate'](_0x4ce587,_0x6f673e=()=>!0x0){const _0x2480fe=this[_0x2c5d('0x27')]['plugins'][_0x2c5d('0x9')](_0x15e37b);if(!this[_0x2c5d('0xa')]['has'](_0x4ce587))throw new _0x20c69d(_0x2c5d('0x29'),this,{'uiName':_0x4ce587});this[_0x2c5d('0x11')](_0x4ce587)&&this[_0x2c5d('0x17')](_0x4ce587),this[_0x2c5d('0x21')][_0x2c5d('0xe')](_0x4ce587);const _0x58f459=new _0x41e3e4(),_0x36e579=_0x2480fe[_0x2c5d('0x14')];_0x505d13({'source':_0x36e579,'target':_0x58f459,'filter':_0x6f673e}),this[_0x2c5d('0x8')][_0x2c5d('0xb')](_0x4ce587,{'collection':_0x58f459,'filter':_0x6f673e});const _0x4b29cb=this[_0x2c5d('0xa')][_0x2c5d('0x9')](_0x4ce587);_0x4b29cb['attach'](_0x58f459),this[_0x2c5d('0x24')](_0x4b29cb,_0x2c5d('0x15'),(_0x5dd907,_0x31b865,_0x42b026,_0x435b58)=>{_0x435b58&&_0x2480fe['_removeActiveAnnotation'](_0x435b58),_0x42b026&&_0x2480fe[_0x2c5d('0x1a')](_0x42b026);});}[_0x2c5d('0x17')](_0xd7bab2){this[_0x2c5d('0x21')][_0x2c5d('0x26')](_0xd7bab2);const _0x198417=this[_0x2c5d('0xa')][_0x2c5d('0x9')](_0xd7bab2);_0x198417[_0x2c5d('0xc')](),this[_0x2c5d('0x18')](_0x198417),this[_0x2c5d('0x8')]['get'](_0xd7bab2)[_0x2c5d('0x22')][_0x2c5d('0x13')](),this[_0x2c5d('0x8')][_0x2c5d('0x26')](_0xd7bab2);}[_0x2c5d('0x1d')](_0x25dd41){const _0x106900=this['context'][_0x2c5d('0x25')][_0x2c5d('0x9')](_0x15e37b),_0x584d8a=Array[_0x2c5d('0x4')](_0x106900['activeAnnotations'])[0x0]||null;this[_0x2c5d('0x20')](),this[_0x2c5d('0x12')](_0x25dd41);const _0x15af2c=this['_uis']['get'](_0x25dd41);_0x15af2c['setActiveAnnotation'](_0x584d8a),_0x15af2c[_0x2c5d('0x10')]&&_0x584d8a&&_0x15af2c[_0x2c5d('0x10')]([_0x584d8a]);}[_0x2c5d('0x20')](){for(const _0x3557f7 of this[_0x2c5d('0x21')])this[_0x2c5d('0x17')](_0x3557f7);}['register'](_0x5d4e74,_0x26a303){if(this['_uis'][_0x2c5d('0x3')](_0x5d4e74))throw new _0x20c69d(_0x2c5d('0x5'));if(_0x2c5d('0x23')!=typeof _0x26a303[_0x2c5d('0x1')]||_0x2c5d('0x23')!=typeof _0x26a303[_0x2c5d('0xc')]||_0x2c5d('0x23')!=typeof _0x26a303[_0x2c5d('0xd')])throw new _0x20c69d('annotationsuis-register-invalid-interface',null);this[_0x2c5d('0xa')][_0x2c5d('0xb')](_0x5d4e74,_0x26a303);}[_0x2c5d('0x19')](){const _0x5f1991=this['context']['plugins'][_0x2c5d('0x9')](_0x15e37b)[_0x2c5d('0x22')],_0x381280=new Map(),_0x3bd8d7=Array[_0x2c5d('0x4')](this['activeUIs']);for(const _0x148516 of this['activeUIs']){const _0x35e586=this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0x148516)[_0x2c5d('0x22')];for(const _0x2944b3 of _0x35e586)_0x381280[_0x2c5d('0xb')](_0x2944b3,_0x148516);}for(const _0x34276d of _0x5f1991){const _0x3c90f5=_0x381280[_0x2c5d('0x9')](_0x34276d);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x34276d);const _0x3dc1ca=_0x3bd8d7['find'](_0x798d0f=>this['_uisData'][_0x2c5d('0x9')](_0x798d0f)[_0x2c5d('0x28')](_0x34276d));_0x3c90f5!==_0x3dc1ca&&(_0x3c90f5&&this[_0x2c5d('0x8')]['get'](_0x3c90f5)[_0x2c5d('0x22')]['remove'](_0x34276d),_0x3dc1ca&&this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0x3dc1ca)[_0x2c5d('0x22')][_0x2c5d('0xe')](_0x34276d));}}['destroy'](){this['deactivateAll'](),super[_0x2c5d('0x13')]();}[_0x2c5d('0x1f')](_0x5809a2){const _0x232588=[];for(const _0xfd2e36 of this[_0x2c5d('0x21')]){(0x0,this[_0x2c5d('0x8')][_0x2c5d('0x9')](_0xfd2e36)['filter'])(_0x5809a2)&&_0x232588[_0x2c5d('0x0')](_0xfd2e36);}if(_0x232588[_0x2c5d('0x1b')]>0x1)throw new _0x20c69d('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x232588,'annotationType':_0x5809a2['type']});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2042=['init','containsRange','get','_editorAnnotationsData','refreshSelectedViews','editor','has','uiUpdate','from','view','editing','selection','keys','addSourceCollector','sort','remove','delete','map','document','focusTracker','innerView','getRanges','blur','isCollapsed','collection','fire','editorannotations-invalid-source-callback','isEqual','directChange','listenTo','isReadOnly','refresh','change:isFocused','getOrderedSelectedAnnotations','update','function','annotation','range','add','pluginName','requires','set','model','element','change:range','EditorAnnotations','getByInnerView','_dataCollectors','push','hasDomSelection'];(function(_0x287f2,_0x204281){const _0x5740b8=function(_0x45d309){while(--_0x45d309){_0x287f2['push'](_0x287f2['shift']());}};_0x5740b8(++_0x204281);}(_0x2042,0x64));const _0x5740=function(_0x287f2,_0x204281){_0x287f2=_0x287f2-0x0;let _0x5740b8=_0x2042[_0x287f2];return _0x5740b8;};import{Plugin as _0x4a5851}from'ckeditor5/src/core';import{CKEditorError as _0x2863d4}from'ckeditor5/src/utils';import{debounce as _0x160f76}from'lodash-es';import _0x29de9b from'./annotations';export default class k extends _0x4a5851{static get[_0x5740('0x28')](){return[_0x29de9b];}static get[_0x5740('0x27')](){return _0x5740('0x2d');}constructor(_0x3a9e75){super(_0x3a9e75),this[_0x5740('0x2f')]=new Set();}[_0x5740('0x0')](){const _0x547a4b=this['editor'],_0x2e1561=_0x547a4b['plugins'][_0x5740('0x2')](_0x29de9b),_0x267e38=_0x547a4b['model'][_0x5740('0x12')][_0x5740('0xb')],_0x5c7edb=_0x160f76(()=>this[_0x5740('0x4')](),0xa);_0x267e38['on'](_0x5740('0x2c'),(_0x279284,_0x237b31)=>{_0x237b31[_0x5740('0x1c')]&&(_0x5c7edb['cancel'](),this[_0x5740('0x4')]());}),this['listenTo'](_0x547a4b['editing']['view']['document'],'change:isFocused',(_0x555f91,_0x58dab3,_0x4bc2d7)=>{_0x4bc2d7&&_0x5c7edb();}),this[_0x5740('0x1d')](_0x547a4b['ui'][_0x5740('0x13')],_0x5740('0x20'),(_0x23aa2a,_0x5227b6,_0x27616e)=>{_0x27616e||_0x547a4b[_0x5740('0x1e')]||this[_0x5740('0x19')](_0x5740('0x16'),{'isAnnotationTracked':_0x40a5e2=>this['_editorAnnotationsData'][_0x5740('0x6')](_0x40a5e2['innerView'])});}),this['listenTo'](this[_0x5740('0x5')]['ui'],_0x5740('0x22'),()=>this[_0x5740('0x19')](_0x5740('0x7')));const _0x1d6c37=new Set();this[_0x5740('0x1d')](_0x2e1561[_0x5740('0x18')],'add',(_0x12723d,_0x123d47)=>{for(const _0x430305 of this[_0x5740('0x3')][_0x5740('0xc')]())if(_0x430305===_0x123d47[_0x5740('0x14')]){_0x547a4b['ui'][_0x5740('0x13')][_0x5740('0x26')](_0x123d47[_0x5740('0x9')]['element']),_0x1d6c37[_0x5740('0x26')](_0x123d47[_0x5740('0x9')]);break;}}),this[_0x5740('0x1d')](_0x2e1561[_0x5740('0x18')],_0x5740('0xf'),(_0x4de0e5,_0x37ae72)=>{_0x1d6c37['has'](_0x37ae72[_0x5740('0x9')])&&(_0x547a4b['ui'][_0x5740('0x13')][_0x5740('0xf')](_0x37ae72[_0x5740('0x9')][_0x5740('0x2b')]),_0x1d6c37[_0x5740('0x10')](_0x37ae72['view']));});}[_0x5740('0x31')](){return this[_0x5740('0x5')][_0x5740('0xa')]['view'][_0x5740('0x31')];}[_0x5740('0xd')](_0x5e8846){if(_0x5740('0x23')!=typeof _0x5e8846)throw new _0x2863d4(_0x5740('0x1a'));this[_0x5740('0x2f')][_0x5740('0x26')](_0x5e8846);}[_0x5740('0x4')](){this[_0x5740('0x19')](_0x5740('0x1f'));}[_0x5740('0x21')]({activeAnnotation:_0x149018,annotations:_0x5b48c5}){const _0x99bad2=[],_0x3783ba=this[_0x5740('0x5')][_0x5740('0x2a')]['document']['selection'],_0x4d3c33=Array[_0x5740('0x8')](_0x3783ba[_0x5740('0x15')]());for(const [_0x59583a,_0x4ce31b]of this[_0x5740('0x3')]){const _0x1917ef=_0x55412f(_0x4ce31b),_0x68162e=_0x5b48c5[_0x5740('0x2e')](_0x59583a);_0x1917ef&&_0x68162e&&_0x99bad2[_0x5740('0x30')]({'annotation':_0x68162e,'range':_0x1917ef});}function _0x55412f(_0x64b001){for(const _0x5c4332 of _0x64b001)for(const _0x25391e of _0x4d3c33)if(_0x5c4332[_0x5740('0x1')](_0x25391e,!_0x3783ba[_0x5740('0x17')]))return _0x5c4332;return null;}return _0x99bad2[_0x5740('0xe')]((_0x509091,_0x3d4f16)=>{const _0x1e96f1=_0x509091[_0x5740('0x25')],_0x470545=_0x3d4f16['range'];if(!_0x1e96f1[_0x5740('0x1b')](_0x470545)){if(_0x1e96f1['containsRange'](_0x470545,!0x0))return 0x1;if(_0x470545[_0x5740('0x1')](_0x1e96f1,!0x0))return-0x1;}return _0x509091[_0x5740('0x24')]==_0x149018?-0x1:_0x3d4f16[_0x5740('0x24')]==_0x149018?0x1:0x0;})[_0x5740('0x11')](_0x55f440=>_0x55f440[_0x5740('0x24')]);}get[_0x5740('0x3')](){const _0x3a4fa4=new Map();for(const _0x3fc842 of Array[_0x5740('0x8')](this[_0x5740('0x2f')]))for(const [_0x11f990,_0x454741]of _0x3fc842())_0x3a4fa4[_0x5740('0x29')](_0x11f990,_0x454741);return _0x3a4fa4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e82=['refresh','targetRect','delete','view','Esc','editableElement','stopListening','inlineannotations-not-allowed-with-context','InlineAnnotations','inlineannotations-attach-already-attached','_removeAnnotationFromBalloon','_addAnnotationToBalloon','change:isFocused','_selectedAnnotations','includes','register','addObserver','inlineannotations-detach-not-attached','set','get','getByView','hasActive','update','switchTo','isFocused','has','isAttached','showStack','change:visibleView','annotations','blur','_manuallyClosed','listenTo','context','attach','hasView','_balloon','clear','_setSelectedAnnotations','document','focus','getSelection','focusTracker','editor','init','visibleView','change:height','EditorAnnotations','add','editing','remove','target','setActiveAnnotation','inline','isActive','destroy','plugins','keystrokes','detach','_addedAnnotations','selection','bind','activeAnnotation','requires','updatePosition'];(function(_0x37ef3a,_0x2e82f8){const _0x579209=function(_0xd8fc4c){while(--_0xd8fc4c){_0x37ef3a['push'](_0x37ef3a['shift']());}};_0x579209(++_0x2e82f8);}(_0x2e82,0x14f));const _0x5792=function(_0x37ef3a,_0x2e82f8){_0x37ef3a=_0x37ef3a-0x0;let _0x579209=_0x2e82[_0x37ef3a];return _0x579209;};import{Plugin as _0x4f39d3}from'ckeditor5/src/core';import _0x43122b from'./annotationsuis';import _0x50c7c9 from'./editorannotations';import{ContextualBalloon as _0x1d4ae7}from'ckeditor5/src/ui';import{MouseObserver as _0x15145a}from'ckeditor5/src/engine';import{CKEditorError as _0x457991}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x4f39d3{static get[_0x5792('0x35')](){return[_0x50c7c9,_0x1d4ae7,_0x43122b];}static get['pluginName'](){return _0x5792('0x3f');}constructor(_0x48c18d){super(_0x48c18d),_0x48c18d[_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x6')](_0x15145a),this[_0x5792('0x10')]=!0x1,this['set'](_0x5792('0x34'),null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x48c18d['plugins'][_0x5792('0x9')](_0x1d4ae7),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[];}[_0x5792('0x22')](){const _0x49b470=this['editor'][_0x5792('0x2e')][_0x5792('0x9')](_0x43122b);_0x49b470[_0x5792('0x17')]===this[_0x5792('0x21')]&&(_0x49b470[_0x5792('0x5')](_0x5792('0x2b'),this),this[_0x5792('0x21')][_0x5792('0x2f')][_0x5792('0x8')]('Esc',(_0x147dc7,_0x320682)=>{const _0x418249=this[_0x5792('0x1a')];if(this[_0x5792('0x10')]&&_0x418249['visibleView']){const _0x364cff=this['annotations']['getByView'](_0x418249[_0x5792('0x23')]);this[_0x5792('0x15')]['add'](_0x364cff),this[_0x5792('0x0')](_0x364cff),_0x320682();}}));}['afterInit'](){const _0x2c2a09=this['editor'][_0x5792('0x2e')]['get'](_0x43122b);_0x2c2a09[_0x5792('0x17')]===this[_0x5792('0x21')]&&(_0x2c2a09[_0x5792('0xb')]()||_0x2c2a09[_0x5792('0xd')]('inline'));}[_0x5792('0x2a')](_0x3ad36a){_0x3ad36a!==this[_0x5792('0x34')]&&(this[_0x5792('0x34')]&&(this[_0x5792('0x34')]['isActive']=!0x1),_0x3ad36a&&this[_0x5792('0x21')]['ui'][_0x5792('0x20')][_0x5792('0xe')]&&(this[_0x5792('0x1')](_0x3ad36a,!0x0),_0x3ad36a[_0x5792('0x2c')]=!0x0),_0x3ad36a||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x3ad36a);}[_0x5792('0x18')](_0x2f034a){this[_0x5792('0x13')]=_0x2f034a;const _0x29c71d=this['editor'][_0x5792('0x2e')][_0x5792('0x9')](_0x43122b),_0x45cb42=this['_balloon'];if(this[_0x5792('0x10')])throw new _0x457991(_0x5792('0x40'),this);if(_0x29c71d[_0x5792('0x17')]!==this[_0x5792('0x21')])throw new _0x457991(_0x5792('0x3e'),this);const _0x1f66df=this[_0x5792('0x21')][_0x5792('0x2e')]['get'](_0x5792('0x25'));this[_0x5792('0x16')](_0x1f66df,_0x5792('0x37'),function(){const _0x55aae8=_0x1f66df['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x5792('0x13')]});this[_0x5792('0x1c')](_0x55aae8),this[_0x5792('0x2a')](_0x55aae8[0x0]||null);}[_0x5792('0x33')](this)),this[_0x5792('0x16')](_0x1f66df,_0x5792('0x14'),(_0x1146ed,{isAnnotationTracked:_0x5d1940})=>{this[_0x5792('0x34')]&&_0x5d1940(this[_0x5792('0x34')])&&(this[_0x5792('0x1c')]([]),this['setActiveAnnotation'](null));}),this[_0x5792('0x16')](this[_0x5792('0x21')]['ui'][_0x5792('0x20')],_0x5792('0x2'),(_0x594fc7,_0x4fae53,_0x36f1a9)=>{_0x36f1a9||this[_0x5792('0x2a')](null);}),this['listenTo'](_0x2f034a,_0x5792('0x28'),(_0x352298,_0x86ee90)=>{this[_0x5792('0x0')](_0x86ee90),_0x86ee90===this[_0x5792('0x34')]&&this[_0x5792('0x2a')](null);}),this[_0x5792('0x16')](_0x45cb42,_0x5792('0x12'),(_0x5134fc,_0x32e76e,_0x6a230b,_0x8463d5)=>{if(_0x8463d5&&this[_0x5792('0x3d')](_0x8463d5),!_0x6a230b||!_0x2f034a[_0x5792('0xa')](_0x6a230b))return;const _0x4e1401=_0x2f034a[_0x5792('0xa')](_0x6a230b);this['listenTo'](_0x6a230b,_0x5792('0x24'),()=>{_0x45cb42['updatePosition']();}),this['listenTo'](_0x6a230b,_0x5792('0x3b'),()=>{this[_0x5792('0x15')]['add'](_0x4e1401),this[_0x5792('0x0')](_0x4e1401),this[_0x5792('0x21')][_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x1e')]();}),this[_0x5792('0x34')]!==_0x4e1401&&this[_0x5792('0x2a')](_0x4e1401);}),this[_0x5792('0x16')](this[_0x5792('0x21')]['ui'],_0x5792('0xc'),()=>{_0x45cb42[_0x5792('0x23')]&&(_0x2f034a[_0x5792('0xa')](_0x45cb42[_0x5792('0x23')])&&_0x45cb42[_0x5792('0x36')]());}),this[_0x5792('0x16')](this[_0x5792('0x21')][_0x5792('0x27')]['view']['document'],'mousedown',()=>{this[_0x5792('0x15')][_0x5792('0x1b')]();}),this[_0x5792('0x21')][_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x1d')][_0x5792('0x32')][_0x5792('0x3c')]&&this[_0x5792('0x21')][_0x5792('0x27')][_0x5792('0x3a')][_0x5792('0x1e')](),this['isAttached']=!0x0;}[_0x5792('0x30')](){if(!this[_0x5792('0x10')])throw new _0x457991(_0x5792('0x7'),this);this[_0x5792('0x2a')](null);for(const _0x4c2e8f of this[_0x5792('0x31')])this[_0x5792('0x0')](_0x4c2e8f);this[_0x5792('0x3d')](),this[_0x5792('0x10')]=!0x1,this['annotations']=null;}[_0x5792('0x2d')](){this[_0x5792('0x10')]&&this[_0x5792('0x30')]();}[_0x5792('0x1c')](_0x1fe0f1){const _0x11d9eb=this[_0x5792('0x3')];for(const _0x3a7c72 of _0x11d9eb)_0x1fe0f1[_0x5792('0x4')](_0x3a7c72)||this[_0x5792('0x15')][_0x5792('0x39')](_0x3a7c72);for(const _0x519686 of this[_0x5792('0x13')])_0x1fe0f1[_0x5792('0x4')](_0x519686)||this['_removeAnnotationFromBalloon'](_0x519686);if(this[_0x5792('0x21')]['ui']['focusTracker'][_0x5792('0xe')])for(const _0x3d85df of _0x1fe0f1)this[_0x5792('0x1')](_0x3d85df);this[_0x5792('0x3')]=_0x1fe0f1;}['_addAnnotationToBalloon'](_0x1cbda2,_0x41c569){this[_0x5792('0x15')][_0x5792('0xf')](_0x1cbda2)||(this['_addedAnnotations']['has'](_0x1cbda2)||this[_0x5792('0x1a')][_0x5792('0x19')](_0x1cbda2[_0x5792('0x3a')])||(this[_0x5792('0x31')][_0x5792('0x26')](_0x1cbda2),this[_0x5792('0x1a')]['add']({'stackId':_0x1cbda2['view']['id'],'view':_0x1cbda2['view'],'position':{'target':()=>_0x1cbda2[_0x5792('0x29')]||_0x1cbda2[_0x5792('0x38')]||document[_0x5792('0x1f')]()['getRangeAt'](0x0)}})),_0x41c569&&this[_0x5792('0x1a')][_0x5792('0x11')](_0x1cbda2[_0x5792('0x3a')]['id']));}[_0x5792('0x0')](_0x6b5add){this['_addedAnnotations'][_0x5792('0xf')](_0x6b5add)&&this[_0x5792('0x1a')][_0x5792('0x19')](_0x6b5add[_0x5792('0x3a')])&&(this['_addedAnnotations'][_0x5792('0x39')](_0x6b5add),this[_0x5792('0x1a')][_0x5792('0x28')](_0x6b5add[_0x5792('0x3a')]));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1843=['refreshPositioning','attachToDom','_detachListeners','has','remove','detach','register','keydown','clear','NarrowSidebar','southArrowNorthWest','stopListening','isVisible','contains','unpin','_throttledRefreshPositioning','off','isDirty','preventDefault','_detachFromContainer','focus','_hideBalloon','target','get','element','_selectedAnnotations','listenTo','view','esc','destroy','context','ck-sidebar--narrow','resize','balloonPanelView','activeAnnotation','refresh','_annotations','values','length','high','preventClosingBalloon','setActiveAnnotation','bodyCollection','_attachToContainer','stop','locale','_manuallyClosedAnnotationViews','content','mousedown','northArrowSouthEast','plugins','narrowsidebar-detach-not-attached','cancel','_updateBalloonPosition','_attachListeners','Sidebar','requires','rearrange','blur','hasDomSelection','_refreshPositioning','set','change:container','narrowSidebar','detachFromDom','editors','addEventListener','getByView','pluginName','delete','_domEmitter','_annotationToNarrowView','_destroyEditorAnnotationsIntegration','addAnnotation','init','removeEventListener','first','narrowsidebar-attach-already-attached','attach','change:height','EditorAnnotations','isAttached','create','_showBalloon','_editorAnnotations','_setSelectedAnnotations','keyCode','_integrateWithEditorAnnotations','add','type'];(function(_0x5d929c,_0x184329){const _0xb9784f=function(_0x14f7a3){while(--_0x14f7a3){_0x5d929c['push'](_0x5d929c['shift']());}};_0xb9784f(++_0x184329);}(_0x1843,0x1ed));const _0xb978=function(_0x5d929c,_0x184329){_0x5d929c=_0x5d929c-0x0;let _0xb9784f=_0x1843[_0x5d929c];return _0xb9784f;};import{ContextPlugin as _0x53a403}from'ckeditor5/src/core';import _0x5d07ea from'./annotationsuis';import _0x536bdb from'./sidebar';import _0x220f8b from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4143a6,BodyCollection as _0x529ac2}from'ckeditor5/src/ui';import{CKEditorError as _0x556d90,DomEmitterMixin as _0x559ff9,keyCodes as _0x2d3321,Collection as _0x8692ab}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x33c2a0}from'lodash-es';export default class s extends _0x53a403{static get[_0xb978('0xd')](){return[_0x536bdb,_0x5d07ea];}static get[_0xb978('0x19')](){return _0xb978('0x38');}constructor(_0x29ebfa){super(_0x29ebfa),this['isAttached']=!0x1,this[_0xb978('0x3')]=new Set(),this[_0xb978('0x1b')]=Object[_0xb978('0x27')](_0x559ff9),this[_0xb978('0x1c')]=new Map(),this[_0xb978('0x12')](_0xb978('0x51'),null),this[_0xb978('0x53')]=null,this[_0xb978('0x48')]=[],this[_0xb978('0x29')]=new _0x8692ab(),this['_throttledRefreshPositioning']=_0x33c2a0(()=>{this[_0xb978('0x11')]();},0x190,{'leading':!0x1});}[_0xb978('0x1f')](){this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0x5d07ea)[_0xb978('0x35')](_0xb978('0x14'),this),this[_0xb978('0x59')]=new _0x529ac2(this[_0xb978('0x4d')][_0xb978('0x2')]),this[_0xb978('0x50')]=new _0x4143a6(this[_0xb978('0x4d')][_0xb978('0x2')]),this[_0xb978('0x59')][_0xb978('0x30')](),this['bodyCollection'][_0xb978('0x2d')](this[_0xb978('0x50')]);}[_0xb978('0x23')](_0x33f11c){this['_annotations']=_0x33f11c;const _0xcb87c0=this['context']['plugins'][_0xb978('0x46')](_0x536bdb),_0x577ac6=this[_0xb978('0x50')];if(_0xcb87c0[_0xb978('0x53')]=_0x33f11c,this['isAttached'])throw new _0x556d90(_0xb978('0x22'),this);this[_0xb978('0x26')]=!0x0,this[_0xb978('0x49')](_0xcb87c0,'set:container',()=>{this[_0xb978('0x34')](),this[_0xb978('0x49')](_0xcb87c0,_0xb978('0x13'),_0x5f5ac3=>{_0x5f5ac3[_0xb978('0x3f')](),this[_0xb978('0x23')](_0x33f11c);});}),_0xcb87c0[_0xb978('0x0')]({'viewClass':_0xb978('0x4e'),'spaceBetweenItems':0x5});const _0x2c61db=_0xa88d72=>{const _0x49d563=new _0x220f8b(this[_0xb978('0x4d')][_0xb978('0x2')]);_0xcb87c0[_0xb978('0x1e')](_0xa88d72,_0x49d563),this['_annotationToNarrowView'][_0xb978('0x12')](_0xa88d72,_0x49d563),_0x49d563['bind']('isDirty','annotationType','number')['to'](_0xa88d72[_0xb978('0x4a')],_0xb978('0x40'),_0xb978('0x2e'),_0xb978('0x55')),_0x49d563['on']('execute',()=>{this[_0xb978('0x3')]['clear'](),_0x577ac6[_0xb978('0x4')][_0xb978('0x21')]!==_0xa88d72['view']?(this['_showBalloon'](_0xa88d72),_0xa88d72[_0xb978('0x4a')]['element']['focus'](),this['setActiveAnnotation'](_0xa88d72)):this[_0xb978('0x58')](null);});};for(const _0x3d7012 of _0x33f11c)_0x2c61db(_0x3d7012);this[_0xb978('0x49')](_0x33f11c,'add',(_0x3ce507,_0x17447c)=>{_0x2c61db(_0x17447c);}),this[_0xb978('0x49')](_0x33f11c,_0xb978('0x33'),(_0x1a0860,_0x24fb0e,_0x51f3d9)=>{this['_annotationToNarrowView'][_0xb978('0x46')](_0x24fb0e)['destroy'](),this[_0xb978('0x1c')][_0xb978('0x1a')](_0x24fb0e),_0xcb87c0[_0xb978('0xe')]({'removedAnnotation':_0x24fb0e,'previousAnnotation':_0x33f11c[_0xb978('0x46')](_0x51f3d9-0x1),'nextAnnotation':_0x33f11c[_0xb978('0x46')](_0x51f3d9+0x1)}),_0x24fb0e===this[_0xb978('0x51')]&&this[_0xb978('0x58')](null);},{'priority':'low'}),this[_0xb978('0x49')](_0x33f11c,_0xb978('0x43'),(_0x6062d8,_0x3ca5b8)=>{this[_0xb978('0x58')](_0x3ca5b8);}),this['listenTo'](_0x33f11c,_0xb978('0xf'),()=>{this[_0xb978('0x58')](null);}),this['_domEmitter'][_0xb978('0x49')](document,_0xb978('0x36'),(_0x23cae6,_0x845db4)=>{_0x845db4[_0xb978('0x2b')]===_0x2d3321[_0xb978('0x4b')]&&_0x577ac6[_0xb978('0x3b')]&&(this[_0xb978('0x3')][_0xb978('0x2d')](_0x577ac6[_0xb978('0x4')][_0xb978('0x21')]),this['_hideBalloon'](),_0x845db4['stopPropagation'](),_0x845db4[_0xb978('0x41')]());}),this[_0xb978('0x1b')][_0xb978('0x49')](document,_0xb978('0x5'),(_0x2a8e10,_0x5df01f)=>{const _0x49e25c=_0x5df01f['target'];_0x577ac6[_0xb978('0x3b')]&&_0x577ac6['element'][_0xb978('0x3c')](_0x49e25c)||_0xcb87c0[_0xb978('0x4a')][_0xb978('0x47')][_0xb978('0x3c')](_0x49e25c)||_0x2a8e10[_0xb978('0x57')]||(this[_0xb978('0x3')][_0xb978('0x37')](),this[_0xb978('0x44')](),this[_0xb978('0x58')](null));});const _0x4eb275=this[_0xb978('0x4d')]['editors']?this[_0xb978('0x4d')][_0xb978('0x16')]:new _0x8692ab([this['context']]);for(const _0x181c5b of _0x4eb275)this[_0xb978('0x2c')](_0x181c5b);this[_0xb978('0x49')](_0x4eb275,'add',(_0x5df7ee,_0x2923b4)=>{this['listenTo'](_0x2923b4,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2923b4);});}),this[_0xb978('0x49')](_0x4eb275,_0xb978('0x33'),(_0x62e9c4,_0x4905d2)=>{_0x4905d2[_0xb978('0x7')]['has'](_0xb978('0x25'))&&this[_0xb978('0x1d')](_0x4905d2['plugins'][_0xb978('0x46')](_0xb978('0x25')));}),window[_0xb978('0x17')](_0xb978('0x4f'),this[_0xb978('0x3e')]),this[_0xb978('0x11')]();}[_0xb978('0x58')](_0x1965ea){if(_0x1965ea===this[_0xb978('0x51')])return;const _0x50c019=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0xb978('0xc'));if(_0x50c019['refresh']({'blurredAnnotation':this[_0xb978('0x51')],'activatedAnnotation':_0x1965ea,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1965ea)_0x50c019['getSidebarItemView'](_0x1965ea)?this['_showBalloon'](_0x1965ea):this[_0xb978('0x44')]();else this[_0xb978('0x44')]();this[_0xb978('0x51')]=_0x1965ea;}[_0xb978('0x34')](){if(!this['isAttached'])throw new _0x556d90(_0xb978('0x8'),this);this['setActiveAnnotation'](null);const _0xa4a826=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0xb978('0xc'));this[_0xb978('0x44')](),Array['from'](this[_0xb978('0x1c')][_0xb978('0x54')](),_0x4070d7=>_0x4070d7[_0xb978('0x4c')]()),this[_0xb978('0x1c')]['clear'](),_0xa4a826[_0xb978('0x42')](this[_0xb978('0x53')]),this[_0xb978('0x3a')](),this[_0xb978('0x1b')]['stopListening'](),this['stopListening'](this[_0xb978('0x4d')][_0xb978('0x16')]);for(const _0x3569f0 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3569f0);window[_0xb978('0x20')](_0xb978('0x4f'),this[_0xb978('0x3e')]),this[_0xb978('0x3e')][_0xb978('0x9')](),this[_0xb978('0x48')]=[],this[_0xb978('0x26')]=!0x1,this['_annotations']=null;}[_0xb978('0x4c')](){this[_0xb978('0x26')]&&this['detach'](),this[_0xb978('0x59')][_0xb978('0x15')]();}[_0xb978('0x2c')](_0x338d35){const _0x411798=_0x338d35[_0xb978('0x7')][_0xb978('0x46')](_0xb978('0x25')),_0x4220d1=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0x536bdb),_0x11c8c1=this['_annotations'],_0x2c6c2e=this[_0xb978('0x50')],_0x166a27=()=>{const _0x56ae60=_0x411798['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0xb978('0x51')],'annotations':this[_0xb978('0x53')]});this['_setSelectedAnnotations'](_0x56ae60),this[_0xb978('0x58')](_0x56ae60[0x0]||null);};this[_0xb978('0x49')](_0x411798,_0xb978('0x52'),_0x166a27),this['listenTo'](_0x411798,_0xb978('0xf'),(_0x34e604,{isAnnotationTracked:_0x1add6e})=>{this[_0xb978('0x51')]&&_0x1add6e(this[_0xb978('0x51')])&&(this['_setSelectedAnnotations']([]),this[_0xb978('0x58')](null));}),this[_0xb978('0x49')](_0x411798,'uiUpdate',()=>{this[_0xb978('0x3e')]();}),this[_0xb978('0x49')](_0x11c8c1,'blur',_0x389a21=>{_0x411798[_0xb978('0x10')]()&&_0x389a21[_0xb978('0x1')]();},{'priority':_0xb978('0x56')}),this[_0xb978('0x1b')][_0xb978('0x49')](document,_0xb978('0x5'),(_0xebc7a0,_0x31dd18)=>{const _0x5501fc=_0x31dd18[_0xb978('0x45')];_0x2c6c2e[_0xb978('0x3b')]&&_0x2c6c2e[_0xb978('0x47')][_0xb978('0x3c')](_0x5501fc)||_0x4220d1[_0xb978('0x4a')][_0xb978('0x47')]['contains'](_0x5501fc)||this[_0xb978('0x51')]&&_0x411798['hasDomSelection']()&&(_0x166a27(),_0xebc7a0[_0xb978('0x57')]=!0x0);},{'priority':'high'}),this[_0xb978('0x29')][_0xb978('0x2d')](_0x411798);}['_destroyEditorAnnotationsIntegration'](_0x470ffe){_0x470ffe&&(this[_0xb978('0x3a')](_0x470ffe),this[_0xb978('0x29')]['remove'](_0x470ffe));}[_0xb978('0x2a')](_0x4fd009){for(const _0x4c8721 of this[_0xb978('0x48')])_0x4fd009['includes'](_0x4c8721)||this[_0xb978('0x3')][_0xb978('0x1a')](_0x4c8721[_0xb978('0x4a')]);this[_0xb978('0x48')]=_0x4fd009;}['_refreshPositioning'](){const _0x1583a0=this[_0xb978('0x50')];this[_0xb978('0x53')][_0xb978('0x2f')](),_0x1583a0[_0xb978('0x3b')]&&this['_updateBalloonPosition']();}[_0xb978('0x28')](_0x184ac3){if(this[_0xb978('0x3')][_0xb978('0x32')](_0x184ac3[_0xb978('0x4a')]))return;const _0x355e97=this[_0xb978('0x50')]['content'][_0xb978('0x21')];_0x355e97!==_0x184ac3[_0xb978('0x4a')]?(_0x355e97&&this['_detachListeners'](_0x355e97),this['_attachListeners'](_0x184ac3[_0xb978('0x4a')]),this[_0xb978('0x50')]['content'][_0xb978('0x37')](),this[_0xb978('0x50')][_0xb978('0x4')][_0xb978('0x2d')](_0x184ac3[_0xb978('0x4a')]),this[_0xb978('0xa')]()):this[_0xb978('0xa')]();}[_0xb978('0xa')](){const _0x8a01fc=this[_0xb978('0x50')][_0xb978('0x4')]['first'],_0x4b565b=this['_annotations'][_0xb978('0x18')](_0x8a01fc);if(!this[_0xb978('0x1c')]['has'](_0x4b565b))return;const _0x3b7c77=this[_0xb978('0x1c')]['get'](_0x4b565b)[_0xb978('0x47')],_0x5476b3=function(){const _0x317038=_0x4143a6['defaultPositions'];return[_0x317038['southArrowNorthEast'],_0x317038[_0xb978('0x6')],_0x317038['southArrowNorth'],_0x317038['northArrowSouth'],_0x317038[_0xb978('0x39')],_0x317038['northArrowSouthWest']];}();this[_0xb978('0x50')]['pin']({'target':_0x3b7c77,'positions':_0x5476b3});}['_hideBalloon'](){const _0x26618d=this[_0xb978('0x50')],_0x432bf6=_0x26618d[_0xb978('0x4')][_0xb978('0x21')];_0x432bf6&&(this[_0xb978('0x31')](_0x432bf6),_0x26618d[_0xb978('0x3d')](),_0x26618d['content']['clear']());}[_0xb978('0xb')](_0x1a9f0c){this[_0xb978('0x49')](_0x1a9f0c,_0xb978('0x24'),()=>this[_0xb978('0xa')]()),this['listenTo'](_0x1a9f0c,'Esc',(_0xc64974,_0x4852e0)=>{this[_0xb978('0x3')][_0xb978('0x2d')](_0x1a9f0c),this[_0xb978('0x44')](),_0x4852e0();});}[_0xb978('0x31')](_0x3740d2){this[_0xb978('0x3a')](_0x3740d2);}}
|
|
23
|
+
const _0x4fcc=['_detachListeners','delete','off','_manuallyClosedAnnotationViews','change:height','includes','Sidebar','setActiveAnnotation','has','ready','stop','attachToDom','bind','balloonPanelView','northArrowSouthWest','EditorAnnotations','narrowsidebar-attach-already-attached','getByView','type','addEventListener','narrowSidebar','annotations','_attachToContainer','plugins','clear','ck-sidebar--narrow','high','view','activeAnnotation','_updateBalloonPosition','set:container','_hideBalloon','_selectedAnnotations','bodyCollection','execute','_domEmitter','pluginName','contains','_setSelectedAnnotations','focus','context','defaultPositions','stopListening','add','isVisible','editors','isDirty','removeEventListener','_attachListeners','attach','keyCode','values','get','register','set','esc','detach','southArrowNorthEast','_throttledRefreshPositioning','remove','_editorAnnotations','blur','_showBalloon','southArrowNorth','northArrowSouthEast','length','listenTo','stopPropagation','element','isAttached','number','preventDefault','detachFromDom','from','destroy','init','locale','refresh','_destroyEditorAnnotationsIntegration','resize','addAnnotation','NarrowSidebar','_refreshPositioning','mousedown','hasDomSelection','target','create','unpin','keydown','refreshPositioning','_annotationToNarrowView','first','content','narrowsidebar-detach-not-attached','_integrateWithEditorAnnotations'];(function(_0x1a21bb,_0x4fccab){const _0x162f73=function(_0x1cd84f){while(--_0x1cd84f){_0x1a21bb['push'](_0x1a21bb['shift']());}};_0x162f73(++_0x4fccab);}(_0x4fcc,0xd1));const _0x162f=function(_0x1a21bb,_0x4fccab){_0x1a21bb=_0x1a21bb-0x0;let _0x162f73=_0x4fcc[_0x1a21bb];return _0x162f73;};import{ContextPlugin as _0x56913a}from'ckeditor5/src/core';import _0x276ddc from'./annotationsuis';import _0x4a9b5c from'./sidebar';import _0x13b028 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2912f0,BodyCollection as _0x12b8f8}from'ckeditor5/src/ui';import{CKEditorError as _0x22c5f1,DomEmitterMixin as _0x2e8ffa,keyCodes as _0x1045f7,Collection as _0x3c6ad5}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x3e039e}from'lodash-es';export default class s extends _0x56913a{static get['requires'](){return[_0x4a9b5c,_0x276ddc];}static get[_0x162f('0x11')](){return _0x162f('0x3e');}constructor(_0x151c4a){super(_0x151c4a),this[_0x162f('0x32')]=!0x1,this[_0x162f('0x4f')]=new Set(),this[_0x162f('0x10')]=Object[_0x162f('0x43')](_0x2e8ffa),this[_0x162f('0x47')]=new Map(),this['set']('activeAnnotation',null),this[_0x162f('0x2')]=null,this[_0x162f('0xd')]=[],this[_0x162f('0x29')]=new _0x3c6ad5(),this['_throttledRefreshPositioning']=_0x3e039e(()=>{this[_0x162f('0x3f')]();},0x190,{'leading':!0x1});}[_0x162f('0x38')](){this[_0x162f('0x15')][_0x162f('0x4')][_0x162f('0x21')](_0x276ddc)[_0x162f('0x22')](_0x162f('0x1'),this),this[_0x162f('0xe')]=new _0x12b8f8(this[_0x162f('0x15')]['locale']),this[_0x162f('0x59')]=new _0x2912f0(this[_0x162f('0x15')][_0x162f('0x39')]),this[_0x162f('0xe')][_0x162f('0x57')](),this[_0x162f('0xe')][_0x162f('0x18')](this[_0x162f('0x59')]);}[_0x162f('0x1e')](_0x1477ab){this[_0x162f('0x2')]=_0x1477ab;const _0x25482c=this[_0x162f('0x15')][_0x162f('0x4')][_0x162f('0x21')](_0x4a9b5c),_0x2a07f0=this['balloonPanelView'];if(_0x25482c['_annotations']=_0x1477ab,this['isAttached'])throw new _0x22c5f1(_0x162f('0x5c'),this);this[_0x162f('0x32')]=!0x0,this[_0x162f('0x2f')](_0x25482c,_0x162f('0xb'),()=>{this[_0x162f('0x25')](),this['listenTo'](_0x25482c,'change:container',_0x573b06=>{_0x573b06[_0x162f('0x4e')](),this[_0x162f('0x1e')](_0x1477ab);});}),_0x25482c[_0x162f('0x3')]({'viewClass':_0x162f('0x6'),'spaceBetweenItems':0x5});const _0x44d374=_0x6e3875=>{const _0x376f16=new _0x13b028(this[_0x162f('0x15')]['locale']);_0x25482c[_0x162f('0x3d')](_0x6e3875,_0x376f16),this[_0x162f('0x47')][_0x162f('0x23')](_0x6e3875,_0x376f16),_0x376f16[_0x162f('0x58')](_0x162f('0x1b'),'annotationType',_0x162f('0x33'))['to'](_0x6e3875[_0x162f('0x8')],_0x162f('0x1b'),_0x162f('0x5e'),_0x162f('0x2e')),_0x376f16['on'](_0x162f('0xf'),()=>{this[_0x162f('0x4f')][_0x162f('0x5')](),_0x2a07f0[_0x162f('0x49')][_0x162f('0x48')]!==_0x6e3875[_0x162f('0x8')]?(this[_0x162f('0x2b')](_0x6e3875),_0x6e3875['view']['element'][_0x162f('0x14')](),this[_0x162f('0x53')](_0x6e3875)):this['setActiveAnnotation'](null);});};for(const _0x45cd94 of _0x1477ab)_0x44d374(_0x45cd94);this['listenTo'](_0x1477ab,'add',(_0x263800,_0x1bdbfe)=>{_0x44d374(_0x1bdbfe);}),this[_0x162f('0x2f')](_0x1477ab,'remove',(_0x35f392,_0x1d40a9,_0x3e475a)=>{this[_0x162f('0x47')][_0x162f('0x21')](_0x1d40a9)[_0x162f('0x37')](),this['_annotationToNarrowView'][_0x162f('0x4d')](_0x1d40a9),_0x25482c['rearrange']({'removedAnnotation':_0x1d40a9,'previousAnnotation':_0x1477ab[_0x162f('0x21')](_0x3e475a-0x1),'nextAnnotation':_0x1477ab[_0x162f('0x21')](_0x3e475a+0x1)}),_0x1d40a9===this[_0x162f('0x9')]&&this['setActiveAnnotation'](null);},{'priority':'low'}),this[_0x162f('0x2f')](_0x1477ab,_0x162f('0x14'),(_0x418d92,_0x5b05b4)=>{this[_0x162f('0x53')](_0x5b05b4);}),this[_0x162f('0x2f')](_0x1477ab,_0x162f('0x2a'),()=>{this[_0x162f('0x53')](null);}),this[_0x162f('0x10')][_0x162f('0x2f')](document,_0x162f('0x45'),(_0x5c7118,_0x135b6d)=>{_0x135b6d[_0x162f('0x1f')]===_0x1045f7[_0x162f('0x24')]&&_0x2a07f0['isVisible']&&(this['_manuallyClosedAnnotationViews'][_0x162f('0x18')](_0x2a07f0[_0x162f('0x49')]['first']),this['_hideBalloon'](),_0x135b6d[_0x162f('0x30')](),_0x135b6d[_0x162f('0x34')]());}),this[_0x162f('0x10')][_0x162f('0x2f')](document,_0x162f('0x40'),(_0x3b6b30,_0x5a83ab)=>{const _0x15749b=_0x5a83ab[_0x162f('0x42')];_0x2a07f0[_0x162f('0x19')]&&_0x2a07f0[_0x162f('0x31')][_0x162f('0x12')](_0x15749b)||_0x25482c[_0x162f('0x8')][_0x162f('0x31')][_0x162f('0x12')](_0x15749b)||_0x3b6b30['preventClosingBalloon']||(this[_0x162f('0x4f')]['clear'](),this['_hideBalloon'](),this[_0x162f('0x53')](null));});const _0x5ae632=this[_0x162f('0x15')][_0x162f('0x1a')]?this[_0x162f('0x15')][_0x162f('0x1a')]:new _0x3c6ad5([this['context']]);for(const _0xac17e0 of _0x5ae632)this[_0x162f('0x4b')](_0xac17e0);this['listenTo'](_0x5ae632,_0x162f('0x18'),(_0x56cefc,_0x23b8c2)=>{this[_0x162f('0x2f')](_0x23b8c2,_0x162f('0x55'),()=>{this['_integrateWithEditorAnnotations'](_0x23b8c2);});}),this[_0x162f('0x2f')](_0x5ae632,_0x162f('0x28'),(_0x5c4397,_0x5e9b51)=>{_0x5e9b51['plugins'][_0x162f('0x54')]('EditorAnnotations')&&this[_0x162f('0x3b')](_0x5e9b51['plugins'][_0x162f('0x21')]('EditorAnnotations'));}),window[_0x162f('0x0')](_0x162f('0x3c'),this['_throttledRefreshPositioning']),this[_0x162f('0x3f')]();}['setActiveAnnotation'](_0x761c47){if(_0x761c47===this['activeAnnotation'])return;const _0x21753d=this[_0x162f('0x15')][_0x162f('0x4')][_0x162f('0x21')](_0x162f('0x52'));if(_0x21753d[_0x162f('0x3a')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x761c47,'disableAnimationOnActivatedAnnotation':!0x0}),_0x761c47)_0x21753d['getSidebarItemView'](_0x761c47)?this[_0x162f('0x2b')](_0x761c47):this['_hideBalloon']();else this[_0x162f('0xc')]();this[_0x162f('0x9')]=_0x761c47;}[_0x162f('0x25')](){if(!this[_0x162f('0x32')])throw new _0x22c5f1(_0x162f('0x4a'),this);this[_0x162f('0x53')](null);const _0x15fa65=this[_0x162f('0x15')][_0x162f('0x4')]['get']('Sidebar');this[_0x162f('0xc')](),Array[_0x162f('0x36')](this[_0x162f('0x47')][_0x162f('0x20')](),_0x327875=>_0x327875[_0x162f('0x37')]()),this[_0x162f('0x47')]['clear'](),_0x15fa65['_detachFromContainer'](this[_0x162f('0x2')]),this['stopListening'](),this[_0x162f('0x10')][_0x162f('0x17')](),this[_0x162f('0x17')](this['context'][_0x162f('0x1a')]);for(const _0x2b3612 of Array[_0x162f('0x36')](this[_0x162f('0x29')]))this[_0x162f('0x3b')](_0x2b3612);window[_0x162f('0x1c')]('resize',this[_0x162f('0x27')]),this['_throttledRefreshPositioning']['cancel'](),this[_0x162f('0xd')]=[],this[_0x162f('0x32')]=!0x1,this['annotations']=null;}[_0x162f('0x37')](){this[_0x162f('0x32')]&&this['detach'](),this[_0x162f('0xe')][_0x162f('0x35')]();}[_0x162f('0x4b')](_0x19b9fe){const _0x2472db=_0x19b9fe[_0x162f('0x4')][_0x162f('0x21')](_0x162f('0x5b')),_0x3d705b=this[_0x162f('0x15')]['plugins'][_0x162f('0x21')](_0x4a9b5c),_0x33b963=this[_0x162f('0x2')],_0x1569d7=this[_0x162f('0x59')],_0x5cc6fe=()=>{const _0x429c49=_0x2472db['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x162f('0x9')],'annotations':this['annotations']});this['_setSelectedAnnotations'](_0x429c49),this[_0x162f('0x53')](_0x429c49[0x0]||null);};this['listenTo'](_0x2472db,'refresh',_0x5cc6fe),this['listenTo'](_0x2472db,_0x162f('0x2a'),(_0x1a1605,{isAnnotationTracked:_0x3699b8})=>{this['activeAnnotation']&&_0x3699b8(this[_0x162f('0x9')])&&(this[_0x162f('0x13')]([]),this[_0x162f('0x53')](null));}),this[_0x162f('0x2f')](_0x2472db,'uiUpdate',()=>{this[_0x162f('0x27')]();}),this[_0x162f('0x2f')](_0x33b963,_0x162f('0x2a'),_0x984f7f=>{_0x2472db[_0x162f('0x41')]()&&_0x984f7f[_0x162f('0x56')]();},{'priority':_0x162f('0x7')}),this[_0x162f('0x10')][_0x162f('0x2f')](document,_0x162f('0x40'),(_0x5cf3c4,_0x4874b0)=>{const _0x43b490=_0x4874b0[_0x162f('0x42')];_0x1569d7[_0x162f('0x19')]&&_0x1569d7[_0x162f('0x31')]['contains'](_0x43b490)||_0x3d705b['view']['element'][_0x162f('0x12')](_0x43b490)||this[_0x162f('0x9')]&&_0x2472db[_0x162f('0x41')]()&&(_0x5cc6fe(),_0x5cf3c4['preventClosingBalloon']=!0x0);},{'priority':_0x162f('0x7')}),this[_0x162f('0x29')]['add'](_0x2472db);}[_0x162f('0x3b')](_0x35c04f){_0x35c04f&&(this['stopListening'](_0x35c04f),this[_0x162f('0x29')][_0x162f('0x28')](_0x35c04f));}[_0x162f('0x13')](_0x474b33){for(const _0x1a6cf4 of this[_0x162f('0xd')])_0x474b33[_0x162f('0x51')](_0x1a6cf4)||this[_0x162f('0x4f')][_0x162f('0x4d')](_0x1a6cf4[_0x162f('0x8')]);this[_0x162f('0xd')]=_0x474b33;}[_0x162f('0x3f')](){const _0x37dd00=this[_0x162f('0x59')];this['annotations'][_0x162f('0x46')](),_0x37dd00[_0x162f('0x19')]&&this[_0x162f('0xa')]();}[_0x162f('0x2b')](_0x494803){if(this[_0x162f('0x4f')][_0x162f('0x54')](_0x494803[_0x162f('0x8')]))return;const _0x2568cf=this['balloonPanelView'][_0x162f('0x49')][_0x162f('0x48')];_0x2568cf!==_0x494803[_0x162f('0x8')]?(_0x2568cf&&this[_0x162f('0x4c')](_0x2568cf),this[_0x162f('0x1d')](_0x494803['view']),this['balloonPanelView'][_0x162f('0x49')][_0x162f('0x5')](),this['balloonPanelView'][_0x162f('0x49')]['add'](_0x494803[_0x162f('0x8')]),this[_0x162f('0xa')]()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x11c79d=this[_0x162f('0x59')][_0x162f('0x49')][_0x162f('0x48')],_0x42d90f=this['annotations'][_0x162f('0x5d')](_0x11c79d);if(!this[_0x162f('0x47')][_0x162f('0x54')](_0x42d90f))return;const _0xd373b7=this[_0x162f('0x47')][_0x162f('0x21')](_0x42d90f)[_0x162f('0x31')],_0x2af960=function(){const _0x50073c=_0x2912f0[_0x162f('0x16')];return[_0x50073c[_0x162f('0x26')],_0x50073c[_0x162f('0x2d')],_0x50073c[_0x162f('0x2c')],_0x50073c['northArrowSouth'],_0x50073c['southArrowNorthWest'],_0x50073c[_0x162f('0x5a')]];}();this['balloonPanelView']['pin']({'target':_0xd373b7,'positions':_0x2af960});}[_0x162f('0xc')](){const _0x2fe619=this[_0x162f('0x59')],_0x5ae7f8=_0x2fe619[_0x162f('0x49')][_0x162f('0x48')];_0x5ae7f8&&(this[_0x162f('0x4c')](_0x5ae7f8),_0x2fe619[_0x162f('0x44')](),_0x2fe619['content']['clear']());}[_0x162f('0x1d')](_0x1015d3){this['listenTo'](_0x1015d3,_0x162f('0x50'),()=>this[_0x162f('0xa')]()),this[_0x162f('0x2f')](_0x1015d3,'Esc',(_0x1ce694,_0x46b8c2)=>{this[_0x162f('0x4f')][_0x162f('0x18')](_0x1015d3),this[_0x162f('0xc')](),_0x46b8c2();});}['_detachListeners'](_0x45c9c6){this[_0x162f('0x17')](_0x45c9c6);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1549=['listenTo','add','_alignToTargetRect','length','targetRect','height','updateHeight','clear','delete','sidebar.container','get','container','define','element','_alignAfterItem','bottom','_destroySidebarItemView','change:targetRect','_getItemBefore','_annotationToSidebarItemView','sidebar-setcontainer-invalid-element','_alignBeforeItem','destroy','_createSidebarView','_getMaxAvailableTop','context','view','config','refresh','list','change:bottom','_updateLastItem','content','_spaceBetweenItems','_attachToContainer','unbind','top','_sidebarItemViewToAnnotation','set','locale','remove','bind','_lastItem','_activeAnnotation','pluginName','minHeight','setContainer','sidebar.preventScrollOutOfView','class','_getTargetTop','stopListening','isAnimationDisabled','_setItemTop','change:top','_annotations','addAnnotation','getIndex','last','change:_lastItem','_targetTop','sidebar-attachtocontainer-missing-container','max','rearrange','getSidebarItemView'];(function(_0xf10924,_0x15490d){const _0x2ce7dc=function(_0x4a41d6){while(--_0x4a41d6){_0xf10924['push'](_0xf10924['shift']());}};_0x2ce7dc(++_0x15490d);}(_0x1549,0xa3));const _0x2ce7=function(_0xf10924,_0x15490d){_0xf10924=_0xf10924-0x0;let _0x2ce7dc=_0x1549[_0xf10924];return _0x2ce7dc;};import{ContextPlugin as _0x5f0abb}from'ckeditor5/src/core';import _0x5c03fb from'./view/sidebarview';import _0x324977 from'./view/sidebaritemview';import{Rect as _0x46aa1b,CKEditorError as _0x15d584}from'ckeditor5/src/utils';import{isElement as _0x134f43,throttle as _0x2b543c}from'lodash-es';export default class b extends _0x5f0abb{static get[_0x2ce7('0x9')](){return'Sidebar';}constructor(_0x963f41){super(_0x963f41),this[_0x2ce7('0x3')](_0x2ce7('0x7')),this['view']=this[_0x2ce7('0x34')](),this['set'](_0x2ce7('0x28'),null),this[_0x2ce7('0x3e')]=0x19,this[_0x2ce7('0x2')]=new Map(),this[_0x2ce7('0x30')]=new Map(),this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x29')](_0x2ce7('0xc'),!0x1),this[_0x2ce7('0x13')]=null,this[_0x2ce7('0x8')]=null;}['init'](){const _0x4a787f=this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x27')](_0x2ce7('0x26'));_0x4a787f&&this[_0x2ce7('0xb')](_0x4a787f);}[_0x2ce7('0xb')](_0x332013){if(!_0x134f43(_0x332013))throw new _0x15d584(_0x2ce7('0x31'));this[_0x2ce7('0x28')]=_0x332013;}[_0x2ce7('0x3f')]({viewClass:_0x5c99f5='',spaceBetweenItems:_0x8a6ced=0x19}={}){if(!_0x134f43(this[_0x2ce7('0x28')]))throw new _0x15d584(_0x2ce7('0x19'),this);this[_0x2ce7('0x28')]['appendChild'](this[_0x2ce7('0x37')][_0x2ce7('0x2a')]),this[_0x2ce7('0x37')][_0x2ce7('0xd')]=_0x5c99f5,this[_0x2ce7('0x3e')]=_0x8a6ced;}[_0x2ce7('0x1b')]({removedAnnotation:_0x534d5d,previousAnnotation:_0x440480,nextAnnotation:_0x2d043d}){const _0x3433aa=this['getSidebarItemView'](_0x534d5d);this[_0x2ce7('0x37')]['list'][_0x2ce7('0x5')](_0x3433aa),this['_destroySidebarItemView'](_0x534d5d),_0x440480&&this[_0x2ce7('0x1f')](this[_0x2ce7('0x1c')](_0x440480)),_0x2d043d&&this[_0x2ce7('0x1f')](this[_0x2ce7('0x1c')](_0x2d043d)),this[_0x2ce7('0x3c')]();}[_0x2ce7('0x39')]({blurredAnnotation:_0x5ccf69,activatedAnnotation:_0x57eae4,disableAnimationOnActivatedAnnotation:_0xbe22a}){if(this['_activeAnnotation']=_0x57eae4,_0x5ccf69){_0x5ccf69['isActive']=!0x1;const _0x1a4b90=this[_0x2ce7('0x1c')](_0x5ccf69);_0x1a4b90&&_0xbe22a&&(_0x1a4b90[_0x2ce7('0x10')]=!0x1);}if(_0x57eae4){const _0xcc8c1=this[_0x2ce7('0x1c')](_0x57eae4);_0xcc8c1&&(_0x57eae4['isActive']=!0x0,_0xbe22a&&(_0xcc8c1[_0x2ce7('0x10')]=!0x0,_0xcc8c1[_0x2ce7('0x1')]+=0x1),this['_alignToTargetRect'](_0xcc8c1));}}['_detachFromContainer'](_0x5d8411){this[_0x2ce7('0xf')](),this['view'][_0x2ce7('0x2a')][_0x2ce7('0x5')]();for(const _0x4431af of _0x5d8411)this[_0x2ce7('0x2d')](_0x4431af);this[_0x2ce7('0x37')][_0x2ce7('0x3a')][_0x2ce7('0x24')](),this['view'][_0x2ce7('0xd')]='',this[_0x2ce7('0x7')]=null;}[_0x2ce7('0x14')](_0x370146,_0x7a244){_0x7a244||(_0x7a244=_0x370146[_0x2ce7('0x37')]);const _0xfb5705=new _0x324977(this[_0x2ce7('0x36')][_0x2ce7('0x4')]);this[_0x2ce7('0x2')][_0x2ce7('0x3')](_0xfb5705,_0x370146),this['_annotationToSidebarItemView'][_0x2ce7('0x3')](_0x370146,_0xfb5705),_0xfb5705[_0x2ce7('0x3d')][_0x2ce7('0x1e')](_0x7a244),this['_alignToTargetRect'](_0xfb5705),this[_0x2ce7('0x1d')](_0x370146[_0x2ce7('0x37')],_0x2ce7('0x2e'),()=>{const _0x3f7ffe=this['_getTargetTop'](_0xfb5705);_0xfb5705[_0x2ce7('0x18')]!=_0x3f7ffe&&(_0xfb5705['_targetTop']=_0x3f7ffe,this['_setItemTop'](_0xfb5705,_0x3f7ffe));}),this[_0x2ce7('0x1d')](_0xfb5705,_0x2ce7('0x12'),_0x2b543c(()=>{if(!_0xfb5705[_0x2ce7('0x3d')][_0x2ce7('0x20')])return;const _0x2a314c=this[_0x2ce7('0x2f')](_0xfb5705);if(!_0x2a314c)return;const _0x267712=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x2a314c),_0x1df41b=this[_0x2ce7('0x8')];_0x1df41b&&_0x1df41b===_0x267712?this[_0x2ce7('0x2b')](_0x2a314c,_0xfb5705):this[_0x2ce7('0x32')](_0xfb5705,_0x2a314c);},0xa,{'leading':!0x1})),this[_0x2ce7('0x1d')](_0xfb5705,_0x2ce7('0x3b'),_0x2b543c(()=>{if(!_0xfb5705[_0x2ce7('0x3d')][_0x2ce7('0x20')])return;const _0x18f899=this['_getItemAfter'](_0xfb5705);if(!_0x18f899)return;const _0xccf227=this['_sidebarItemViewToAnnotation'][_0x2ce7('0x27')](_0x18f899),_0x24bd13=this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x27')](_0x2ce7('0xc')),_0x3e41f5=this[_0x2ce7('0x8')];_0x3e41f5&&_0x3e41f5===_0xccf227&&_0x24bd13?(this[_0x2ce7('0x32')](_0x18f899,_0xfb5705),this['_alignAfterItem'](_0xfb5705,_0x18f899)):_0x3e41f5&&_0x3e41f5===_0xccf227?this[_0x2ce7('0x32')](_0x18f899,_0xfb5705):this[_0x2ce7('0x2b')](_0xfb5705,_0x18f899);},0xa,{'leading':!0x1}));const _0x2a990d=this[_0x2ce7('0x2f')](_0xfb5705);if(_0x2a990d)this['_alignAfterItem'](_0x2a990d,_0xfb5705)||this['_alignToTargetRect'](_0xfb5705);else this['_alignToTargetRect'](_0xfb5705);return this[_0x2ce7('0x3c')](),this['view']['list']['add'](_0xfb5705),_0xfb5705;}['getSidebarItemView'](_0x1f0817){return this[_0x2ce7('0x30')][_0x2ce7('0x27')](_0x1f0817);}['destroy'](){this[_0x2ce7('0x37')][_0x2ce7('0x33')]();}[_0x2ce7('0x2d')](_0x110673){const _0x536429=this[_0x2ce7('0x1c')](_0x110673);this['stopListening'](_0x536429),this[_0x2ce7('0xf')](_0x110673['view']),_0x536429[_0x2ce7('0x33')](),this['_annotationToSidebarItemView'][_0x2ce7('0x25')](_0x110673),this[_0x2ce7('0x2')][_0x2ce7('0x25')](_0x536429);}[_0x2ce7('0x34')](){const _0x461ad6=new _0x5c03fb(this['context'][_0x2ce7('0x4')]);return _0x461ad6['render'](),this['on'](_0x2ce7('0x17'),(_0x40df4d,_0x5a82ff,_0x4ee22a,_0x3c9b56)=>{_0x3c9b56&&_0x461ad6[_0x2ce7('0x0')]('minHeight'),_0x4ee22a?_0x461ad6[_0x2ce7('0x6')]('minHeight')['to'](_0x4ee22a,_0x2ce7('0x2c')):_0x461ad6[_0x2ce7('0xa')]=null;}),_0x461ad6;}[_0x2ce7('0x3c')](){this[_0x2ce7('0x7')]=this['getSidebarItemView'](this[_0x2ce7('0x13')][_0x2ce7('0x16')]);}[_0x2ce7('0x2f')](_0x28d65b){const _0x14711e=this['_sidebarItemViewToAnnotation']['get'](_0x28d65b),_0x54910b=this[_0x2ce7('0x13')][_0x2ce7('0x27')](this[_0x2ce7('0x13')][_0x2ce7('0x15')](_0x14711e)-0x1);return _0x54910b&&this[_0x2ce7('0x1c')](_0x54910b);}['_getItemAfter'](_0x43db57){const _0x521a95=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x43db57),_0x249c6f=this['_annotations'][_0x2ce7('0x27')](this['_annotations'][_0x2ce7('0x15')](_0x521a95)+0x1);return _0x249c6f&&this['getSidebarItemView'](_0x249c6f);}[_0x2ce7('0x32')](_0x385dc7,_0x23e9e8){_0x385dc7[_0x2ce7('0x23')]();const _0x38f454=H(_0x23e9e8['bottom']+this[_0x2ce7('0x3e')],_0x385dc7[_0x2ce7('0x1')]);return!!_0x38f454&&(this[_0x2ce7('0x11')](_0x23e9e8,_0x23e9e8[_0x2ce7('0x1')]-_0x38f454),!0x0);}[_0x2ce7('0x2b')](_0x5550ff,_0x2935c3){_0x5550ff['updateHeight']();const _0x55a8d3=H(_0x5550ff[_0x2ce7('0x2c')]+this[_0x2ce7('0x3e')],_0x2935c3['top']);return!!_0x55a8d3&&(this[_0x2ce7('0x11')](_0x2935c3,_0x2935c3[_0x2ce7('0x1')]+_0x55a8d3,!0x1),!0x0);}[_0x2ce7('0x1f')](_0x35c0db){const _0x54cac4=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x35c0db);if(!_0x54cac4||!_0x54cac4['target'])return;const _0x3e9c17=this[_0x2ce7('0xe')](_0x35c0db);this[_0x2ce7('0x11')](_0x35c0db,_0x3e9c17);}[_0x2ce7('0xe')](_0x4581c2){const _0x644612=this[_0x2ce7('0x2')][_0x2ce7('0x27')](_0x4581c2);if(null===_0x644612[_0x2ce7('0x21')])return 0x0;if(_0x644612['target']instanceof _0x46aa1b)return _0x644612[_0x2ce7('0x21')][_0x2ce7('0x1')];{const _0x3d3d94=new _0x46aa1b(this['view'][_0x2ce7('0x2a')])[_0x2ce7('0x1')];return _0x644612['targetRect']['top']-_0x3d3d94;}}[_0x2ce7('0x11')](_0x758b79,_0x41a26f,_0x1c5293=this[_0x2ce7('0x36')][_0x2ce7('0x38')][_0x2ce7('0x27')]('sidebar.preventScrollOutOfView')){_0x1c5293&&(_0x41a26f=Math['max'](_0x41a26f,this[_0x2ce7('0x35')](_0x758b79))),_0x758b79['top']=_0x41a26f;}[_0x2ce7('0x35')](_0x5d7832){let _0x2ef42c=this[_0x2ce7('0x2f')](_0x5d7832),_0xe8676f=0x0;for(;_0x2ef42c;)_0x2ef42c[_0x2ce7('0x23')](),_0xe8676f+=this['_spaceBetweenItems']+_0x2ef42c[_0x2ce7('0x22')],_0x2ef42c=this[_0x2ce7('0x2f')](_0x2ef42c);return _0xe8676f;}}function H(_0x1eff2f,_0x55b945){return Math[_0x2ce7('0x1a')](_0x1eff2f-_0x55b945,0x0);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1579=['annotationType','number','isDirty','counterView','children','set','extendTemplate','ck-annotation-counter__badge--','bindTemplate','_badge','ck-annotation-counter__badge','span','...','bind'];(function(_0x5ece19,_0x157916){const _0x1becfa=function(_0x3ace4b){while(--_0x3ace4b){_0x5ece19['push'](_0x5ece19['shift']());}};_0x1becfa(++_0x157916);}(_0x1579,0x1f2));const _0x1bec=function(_0x5ece19,_0x157916){_0x5ece19=_0x5ece19-0x0;let _0x1becfa=_0x1579[_0x5ece19];return _0x1becfa;};import{ButtonView as _0x10f1d5,View as _0x273e2a}from'ckeditor5/src/ui';import _0x5c9623 from'../../../theme/icons/add-comment.svg';export default class B extends _0x10f1d5{constructor(_0x292811){super(_0x292811);const _0x52c117=this[_0x1bec('0x0')];this[_0x1bec('0xb')]('isDirty',!0x1),this[_0x1bec('0xb')](_0x1bec('0x7'),0x0),this[_0x1bec('0x5')]('_badge')['to'](this,_0x1bec('0x8'),this,_0x1bec('0x7'),(_0x3f9321,_0x38d900)=>_0x3f9321?_0x1bec('0x4'):_0x38d900),this[_0x1bec('0xb')](_0x1bec('0x6'),''),this['icon']=_0x5c9623,this[_0x1bec('0xc')]({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x273e2a(),this[_0x1bec('0x9')]['setTemplate']({'tag':_0x1bec('0x3'),'attributes':{'class':[_0x1bec('0x2'),_0x52c117['to'](_0x1bec('0x6'),_0x4663c7=>_0x1bec('0xd')+_0x4663c7),_0x52c117['if'](_0x1bec('0x8'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x52c117['to'](_0x1bec('0x1'))}]}),this[_0x1bec('0xa')]['add'](this[_0x1bec('0x9')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5402=['div','bindTemplate','focus','destroy','isDirty','ck-rounded-corners','ck-annotation-wrapper','focusTracker','height','targetRect','clear','clientHeight','add','content','_updateHeight','render','_mutationObserver','isActive','listenTo','type','createCollection','set','keystrokes','element','Esc'];(function(_0x29347d,_0x540265){const _0x210c79=function(_0x43dbc0){while(--_0x43dbc0){_0x29347d['push'](_0x29347d['shift']());}};_0x210c79(++_0x540265);}(_0x5402,0x111));const _0x210c=function(_0x29347d,_0x540265){_0x29347d=_0x29347d-0x0;let _0x210c79=_0x5402[_0x29347d];return _0x210c79;};import{View as _0x3a30dd}from'ckeditor5/src/ui';import{FocusTracker as _0x168e0a,KeystrokeHandler as _0x47bc39,uid as _0x3cfc80}from'ckeditor5/src/utils';import _0x421512 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x3a30dd{constructor(_0x344ca1,_0x72919f){super(_0x344ca1),this['id']=_0x3cfc80(),this[_0x210c('0x9')]=new _0x168e0a(),this[_0x210c('0x18')]=new _0x47bc39(),this[_0x210c('0x18')][_0x210c('0x17')](_0x210c('0x1'),(_0x449607,_0x51101a)=>this['fire'](_0x210c('0x1'),_0x51101a)),this['set'](_0x210c('0xb'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x210c('0xa'),0x0),this[_0x210c('0x17')](_0x210c('0x13'),!0x1),this['set'](_0x210c('0x6'),!0x1),this[_0x210c('0x17')]('length',0x0),this[_0x210c('0x17')](_0x210c('0x15'),''),this['_mutationObserver']=_0x421512(()=>this[_0x210c('0x10')]()),this[_0x210c('0xf')]=this[_0x210c('0x16')](),this[_0x210c('0xf')][_0x210c('0xe')](_0x72919f),this['mainView']=_0x72919f;const _0x260897=this[_0x210c('0x3')];this['setTemplate']({'tag':_0x210c('0x2'),'attributes':{'class':['ck',_0x210c('0x8'),_0x210c('0x7'),_0x260897['if'](_0x210c('0x13'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x210c('0xf')]});}[_0x210c('0x11')](){super[_0x210c('0x11')](),this['focusTracker'][_0x210c('0xe')](this[_0x210c('0x0')]),this['keystrokes'][_0x210c('0x14')](this['element']),this['_mutationObserver']['attach'](this[_0x210c('0x0')]);}[_0x210c('0x5')](){this[_0x210c('0xf')][_0x210c('0xc')](),this[_0x210c('0x18')][_0x210c('0x5')](),this['focusTracker'][_0x210c('0x5')](),this[_0x210c('0x12')]['detach'](),super[_0x210c('0x5')]();}[_0x210c('0x4')](){this['element'][_0x210c('0x4')]();}[_0x210c('0x10')](){const _0x5be1ad=this[_0x210c('0x0')][_0x210c('0xd')];_0x5be1ad&&(this[_0x210c('0xa')]=_0x5be1ad);}}
|