@ckeditor/ckeditor5-comments 0.0.0-nightly-20240125.0 → 0.0.0-nightly-20240127.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-20240127.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-20240127.0",
|
|
48
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240127.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 _0x1d02=['set','focusableElements','refreshVisibility','targetRect','item','stopListening','filter','render','function','view','nodeType','add','_target','mainView','_id','target','isArray','updateTargetRect','destroy','_assertCorrectTarget','focusTracker','remove','element','isActive','getClientRects','innerView','every','type','object','isVisible','clear','_type','_getNormalizedTarget','annotation-invalid-target'];(function(_0x2d459a,_0x1d02b3){const _0x344b36=function(_0xc99b06){while(--_0xc99b06){_0x2d459a['push'](_0x2d459a['shift']());}};_0x344b36(++_0x1d02b3);}(_0x1d02,0x122));const _0x344b=function(_0x2d459a,_0x1d02b3){_0x2d459a=_0x2d459a-0x0;let _0x344b36=_0x1d02[_0x2d459a];return _0x344b36;};import{CKEditorError as _0xf67982,Rect as _0x1f2580,Collection as _0x345724,ObservableMixin as _0x5aaafe}from'ckeditor5/src/utils.js';export default class d extends _0x5aaafe(){constructor({view:_0x118086,target:_0x137a1b,type:_0x5bfba4,isVisible:_0x3186bc=!0x0}){super(),this[_0x344b('0x19')]=_0x118086,this[_0x344b('0x19')][_0x344b('0x4')]||this[_0x344b('0x19')][_0x344b('0x17')](),this[_0x344b('0xd')]=_0x5bfba4,this[_0x344b('0x1c')]=_0x137a1b,d[_0x344b('0x1')](this[_0x344b('0xe')]()),this[_0x344b('0x11')]=new _0x345724([this[_0x344b('0x19')][_0x344b('0x4')]],{'idProperty':_0x344b('0x1e')}),this[_0x344b('0x11')]['on']('add',(_0x2c8665,_0x135596)=>{this[_0x344b('0x19')][_0x344b('0x2')][_0x344b('0x1b')](_0x135596);}),this[_0x344b('0x11')]['on'](_0x344b('0x3'),(_0x241a93,_0x9eb40d)=>{this[_0x344b('0x19')][_0x344b('0x2')][_0x344b('0x3')](_0x9eb40d);}),this[_0x344b('0x10')](_0x344b('0xb'),_0x3186bc);}get[_0x344b('0x9')](){return _0x344b('0x18')==typeof this['_type']?this['_type']():this[_0x344b('0xd')];}get[_0x344b('0x7')](){return this[_0x344b('0x19')][_0x344b('0x1d')];}get[_0x344b('0x1f')](){const _0x5aee1e=this[_0x344b('0xe')]();return d[_0x344b('0x1')](_0x5aee1e),_0x5aee1e;}get[_0x344b('0x13')](){const _0x2a20f0=this['target'];if(null===_0x2a20f0)return null;if(_0x2a20f0 instanceof _0x1f2580)return _0x2a20f0;const _0x2315ea=_0x2a20f0[_0x344b('0x16')](_0x362560=>function(_0x141c7f){const _0x50a01c=_0x141c7f['offsetParent'];if(_0x50a01c)return!0x0;const _0x2778f3=_0x141c7f[_0x344b('0x6')]()[_0x344b('0x14')](0x0);return!!_0x2778f3;}(_0x362560));return 0x0===_0x2315ea['length']?null:new _0x1f2580(_0x2315ea[0x0][_0x344b('0x6')]()[_0x344b('0x14')](0x0));}get[_0x344b('0x5')](){return this[_0x344b('0x19')]['isActive'];}set[_0x344b('0x5')](_0x1c0729){this[_0x344b('0x19')][_0x344b('0x5')]=_0x1c0729,this['view'][_0x344b('0x1d')][_0x344b('0x5')]=_0x1c0729;}[_0x344b('0x21')](){this[_0x344b('0x19')][_0x344b('0x13')]=this[_0x344b('0x13')];}[_0x344b('0x0')](){this[_0x344b('0x11')]['stopListening'](),this['focusableElements'][_0x344b('0xc')](),this[_0x344b('0x15')]();}[_0x344b('0x12')](){this[_0x344b('0xb')]=!!this['targetRect'];}static[_0x344b('0x1')](_0x4897e4){if(!(null===_0x4897e4||_0x4897e4 instanceof _0x1f2580||Array[_0x344b('0x20')](_0x4897e4)&&_0x4897e4[_0x344b('0x8')](_0x4f7b3c=>y(_0x4f7b3c))))throw new _0xf67982(_0x344b('0xf'),null,{'target':_0x4897e4});}['_getNormalizedTarget'](){const _0x4e5804='function'==typeof this[_0x344b('0x1c')]?this[_0x344b('0x1c')]():this[_0x344b('0x1c')];return y(_0x4e5804)?[_0x4e5804]:_0x4e5804;}}function y(_0x168134){return null!==_0x168134&&_0x344b('0xa')==typeof _0x168134&&_0x344b('0x1a')in _0x168134&&0x1===_0x168134[_0x344b('0x1a')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b07=['destroy','fire','innerView','focusTracker','listenTo','annotationcollection-duplicated-item','_getOrderInContent','_viewToAnnotation','clear','_focusTracker','remove','updateTargetRect','getByInnerView','view','getByView','stopListening','sort','targetRect','delete','_innerViewToAnnotation','set','change:isFocused','focusableElements','annotationcollection-not-existing-item','getIndex','focus','add','length','_sort','left','isFocused','get','has','top'];(function(_0x3fcf5e,_0x3b0757){const _0x38976c=function(_0x526d48){while(--_0x526d48){_0x3fcf5e['push'](_0x3fcf5e['shift']());}};_0x38976c(++_0x3b0757);}(_0x3b07,0x74));const _0x3897=function(_0x3fcf5e,_0x3b0757){_0x3fcf5e=_0x3fcf5e-0x0;let _0x38976c=_0x3b07[_0x3fcf5e];return _0x38976c;};import{CKEditorError as _0x14fe74,Collection as _0x4be33c,FocusTracker as _0x47ebef}from'ckeditor5/src/utils.js';export default class x extends _0x4be33c{constructor(_0x3a5806=[]){super(),this[_0x3897('0x5')]=new Map(),this[_0x3897('0x1b')]=new Map(),this[_0x3897('0x1d')]=new _0x47ebef(),this[_0x3897('0x1d')]['on'](_0x3897('0x7'),(_0x33d99e,_0x443aef,_0x335ced)=>{_0x335ced||this[_0x3897('0x15')]('blur');});for(const _0x11e8a3 of _0x3a5806)this[_0x3897('0xc')](_0x11e8a3);}get[_0x3897('0x10')](){return this['_focusTracker'][_0x3897('0x10')];}[_0x3897('0xc')](_0x1f2be1){if(this['has'](_0x1f2be1))throw new _0x14fe74(_0x3897('0x19'),null);this['_innerViewToAnnotation']['set'](_0x1f2be1['innerView'],_0x1f2be1),this[_0x3897('0x1b')][_0x3897('0x6')](_0x1f2be1['view'],_0x1f2be1);for(const _0x38e1aa of _0x1f2be1[_0x3897('0x8')])this[_0x3897('0x1d')][_0x3897('0xc')](_0x38e1aa);this[_0x3897('0x18')](_0x1f2be1[_0x3897('0x8')],'add',(_0x456780,_0x20306d)=>{this['_focusTracker'][_0x3897('0xc')](_0x20306d);}),this[_0x3897('0x18')](_0x1f2be1[_0x3897('0x8')],_0x3897('0x1e'),(_0x1bc92e,_0x106f63)=>{this[_0x3897('0x1d')][_0x3897('0x1e')](_0x106f63);}),this[_0x3897('0x18')](_0x1f2be1['view'][_0x3897('0x17')],'change:isFocused',(_0x4ffd68,_0x5a05cd,_0xc8cf49)=>{_0xc8cf49&&this[_0x3897('0x15')](_0x3897('0xb'),_0x1f2be1);}),_0x1f2be1[_0x3897('0x1f')]();const _0x1c046d=this[_0x3897('0x1a')](_0x1f2be1[_0x3897('0x21')][_0x3897('0x3')]);return super[_0x3897('0xc')](_0x1f2be1,_0x1c046d);}[_0x3897('0x1e')](_0x53de21){if(!this[_0x3897('0x12')](_0x53de21))throw new _0x14fe74(_0x3897('0x9'),null);this[_0x3897('0x1')](_0x53de21[_0x3897('0x21')][_0x3897('0x17')]),this[_0x3897('0x1')](_0x53de21[_0x3897('0x8')]);for(const _0x204877 of _0x53de21[_0x3897('0x8')])this[_0x3897('0x1d')]['remove'](_0x204877);return this['_viewToAnnotation'][_0x3897('0x4')](_0x53de21['view']),this[_0x3897('0x5')][_0x3897('0x4')](_0x53de21[_0x3897('0x16')]),super[_0x3897('0x1e')](_0x53de21);}[_0x3897('0x20')](_0x13da2c){return this[_0x3897('0x5')]['get'](_0x13da2c);}[_0x3897('0x0')](_0x1715d8){return this['_viewToAnnotation'][_0x3897('0x11')](_0x1715d8);}['destroy'](){super[_0x3897('0x1c')](),this['stopListening'](),this[_0x3897('0x5')][_0x3897('0x1c')](),this['_viewToAnnotation'][_0x3897('0x1c')](),this[_0x3897('0x1d')][_0x3897('0x14')]();}['refreshPositioning'](){for(const _0x19da6a of this)_0x19da6a[_0x3897('0x1f')]();this[_0x3897('0xe')]();}[_0x3897('0xe')](){const _0x22dda0=Array['from'](this)[_0x3897('0x2')]((_0xf991e3,_0x4b30fc)=>v(_0xf991e3[_0x3897('0x21')][_0x3897('0x3')],_0x4b30fc[_0x3897('0x21')][_0x3897('0x3')]));for(let _0x970787=_0x22dda0[_0x3897('0xd')]-0x1;_0x970787>0x0;_0x970787--){const _0x77b1b=_0x22dda0[_0x970787];_0x970787!==this[_0x3897('0xa')](_0x77b1b)&&(this['remove'](_0x77b1b),this['add'](_0x77b1b));}}[_0x3897('0x1a')](_0x5513e3){let _0x38b0be=0x0;if(!_0x5513e3)return this[_0x3897('0xd')];for(const _0x1e3ab4 of this){const _0x6609bb=_0x1e3ab4['view'][_0x3897('0x3')];if(_0x6609bb){if(v(_0x5513e3,_0x6609bb)<0x0)return _0x38b0be;_0x38b0be++;}}return _0x38b0be;}}export function bindAnnotationCollections({source:_0x4b4342,target:_0x3ff37d,filter:_0x2276b2}){for(const _0x50d854 of _0x4b4342)_0x2276b2(_0x50d854)&&_0x3ff37d['add'](_0x50d854);_0x3ff37d[_0x3897('0x18')](_0x4b4342,_0x3897('0xc'),(_0x4a3efd,_0xcfa99a)=>{_0x2276b2(_0xcfa99a)&&_0x3ff37d[_0x3897('0xc')](_0xcfa99a);}),_0x3ff37d[_0x3897('0x18')](_0x4b4342,'remove',(_0x54d665,_0x21db31)=>{_0x3ff37d[_0x3897('0x12')](_0x21db31)&&_0x3ff37d[_0x3897('0x1e')](_0x21db31);});}function v(_0xacdbb3,_0x2282bf){if(null===_0xacdbb3&&null===_0x2282bf)return 0x0;if(null===_0xacdbb3)return-0x1;if(null===_0x2282bf)return 0x1;const _0x32466f=_0xacdbb3[_0x3897('0x13')]-_0x2282bf[_0x3897('0x13')];return 0x0==_0x32466f?_0xacdbb3[_0x3897('0xf')]-_0x2282bf[_0x3897('0xf')]:_0x32466f;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b82=['deactivateAll','collection','view','_visibleAnnotations','pluginName','destroy','has','delete','remove','_bindAnnotationsToVisibleAnnotations','set','source','listenTo','change:isVisible','_addActiveAnnotation','refreshPositioning','refreshVisibility','activate','getByInnerView','_deactivateAllAnnotations','fire','add','createAnnotation','activeAnnotations','isVisible','element','focusTracker'];(function(_0x327ae9,_0x1b8219){const _0x561cef=function(_0x28a4ac){while(--_0x28a4ac){_0x327ae9['push'](_0x327ae9['shift']());}};_0x561cef(++_0x1b8219);}(_0x1b82,0x138));const _0x561c=function(_0x327ae9,_0x1b8219){_0x327ae9=_0x327ae9-0x0;let _0x561cef=_0x1b82[_0x327ae9];return _0x561cef;};import{ContextPlugin as _0x10e69b}from'ckeditor5/src/core.js';import _0x1ac764 from'./annotation.js';import _0x3e9d1a from'./annotationcollection.js';import _0x519a14 from'./view/annotationview.js';export default class b extends _0x10e69b{static get[_0x561c('0x10')](){return'Annotations';}constructor(_0x159ef5){super(_0x159ef5),this[_0x561c('0xd')]=new _0x3e9d1a(),this['_visibleAnnotations']=new _0x3e9d1a(),this[_0x561c('0x16')](_0x561c('0x8'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x561c('0x6')](_0x153388){this[_0x561c('0xd')][_0x561c('0x6')](_0x153388);}[_0x561c('0x14')](_0x3d5474){this['collection'][_0x561c('0x14')](_0x3d5474),_0x3d5474[_0x561c('0x11')]();}[_0x561c('0x1')](){for(const _0x18b3a9 of this[_0x561c('0xd')])_0x18b3a9[_0x561c('0x1')]();}[_0x561c('0x0')](){this[_0x561c('0xf')][_0x561c('0x0')]();}[_0x561c('0x3')](_0x18ad33){return this['collection'][_0x561c('0x3')](_0x18ad33);}[_0x561c('0xc')](){this[_0x561c('0x5')](_0x561c('0x4'));}[_0x561c('0x11')](){for(const _0x526a49 of this[_0x561c('0xd')])_0x526a49['destroy']();this[_0x561c('0xf')][_0x561c('0x11')](),this[_0x561c('0xd')][_0x561c('0x11')](),super['destroy']();}[_0x561c('0x2')](_0x53d73f){this[_0x561c('0x5')]('_activateAnnotation',_0x53d73f);}[_0x561c('0x7')](_0x496bfa){return new _0x1ac764(_0x496bfa);}['createAnnotationView'](_0x40e5c1,_0x2d634d){return new _0x519a14(_0x40e5c1,_0x2d634d);}[_0x561c('0x1a')](_0xeb94){const _0x535eb1=new Set(this[_0x561c('0x8')]);_0x535eb1[_0x561c('0x6')](_0xeb94),this['activeAnnotations']=_0x535eb1;}['_removeActiveAnnotation'](_0x3dde10){const _0x598638=new Set(this[_0x561c('0x8')]);_0x598638[_0x561c('0x13')](_0x3dde10),this[_0x561c('0x8')]=_0x598638;}[_0x561c('0x15')](){const _0x51efa1=this[_0x561c('0xd')],_0x9187de=this[_0x561c('0xf')];function _0x1c0745(_0x368818){const _0x1e86f6=_0x368818[_0x561c('0x17')];_0x1e86f6[_0x561c('0x9')]&&!_0x9187de['has'](_0x1e86f6)?_0x9187de[_0x561c('0x6')](_0x1e86f6):!_0x1e86f6[_0x561c('0x9')]&&_0x9187de[_0x561c('0x12')](_0x1e86f6)&&_0x9187de['remove'](_0x1e86f6),_0x1e86f6['view'][_0x561c('0xb')][_0x561c('0x14')](_0x1e86f6[_0x561c('0xe')][_0x561c('0xa')]),_0x1e86f6[_0x561c('0xe')][_0x561c('0xb')]['add'](_0x1e86f6['view'][_0x561c('0xa')]);}this[_0x561c('0x18')](_0x51efa1,_0x561c('0x6'),(_0x339ba2,_0x4b7d63)=>{_0x4b7d63[_0x561c('0x9')]&&_0x9187de['add'](_0x4b7d63),this[_0x561c('0x18')](_0x4b7d63,_0x561c('0x19'),_0x1c0745);}),this['listenTo'](_0x51efa1,_0x561c('0x14'),(_0xeb1486,_0xf569f8)=>{_0x9187de['has'](_0xf569f8)&&_0x9187de[_0x561c('0x14')](_0xf569f8),this['stopListening'](_0xf569f8,'change:isVisible',_0x1c0745);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bee=['_activateAnnotation','add','deactivate','get','delete','filter','_visibleAnnotations','refilterAnnotations','push','from','length','AnnotationsUIs','destroy','_deactivateAllAnnotations','annotationsuis-register-already-registered','set','context','_uis','_setSelectedAnnotations','annotationsuis-register-invalid-interface','requires','remove','register','_assertAnnotationDoesNotBelongToMultipleUIs','listenTo','_uisData','collection','annotationsuis-missing-ui','_removeActiveAnnotation','pluginName','activate','annotationsuis-annotation-mismatch','activeAnnotations','deactivateAll','_addActiveAnnotation','setActiveAnnotation','stopListening','has','activeUIs','change:activeAnnotation','plugins','isActive','type','function'];(function(_0x1ddbc9,_0x1bee14){const _0x56bb8e=function(_0x591908){while(--_0x591908){_0x1ddbc9['push'](_0x1ddbc9['shift']());}};_0x56bb8e(++_0x1bee14);}(_0x1bee,0xe1));const _0x56bb=function(_0x1ddbc9,_0x1bee14){_0x1ddbc9=_0x1ddbc9-0x0;let _0x56bb8e=_0x1bee[_0x1ddbc9];return _0x56bb8e;};import{ContextPlugin as _0x7fcd24}from'ckeditor5/src/core.js';import{CKEditorError as _0x4e1269}from'ckeditor5/src/utils.js';import _0x582745,{bindAnnotationCollections as _0x3c3104}from'./annotationcollection.js';import _0x233589 from'./annotations.js';export default class j extends _0x7fcd24{static get[_0x56bb('0xf')](){return[_0x233589];}static get[_0x56bb('0x18')](){return _0x56bb('0x6');}constructor(_0x5b0b67){super(_0x5b0b67),this[_0x56bb('0x21')]=new Set(),this[_0x56bb('0xc')]=new Map(),this[_0x56bb('0x14')]=new Map();}['init'](){const _0x381be4=this['context'][_0x56bb('0x23')][_0x56bb('0x2a')](_0x233589);this[_0x56bb('0x13')](_0x381be4,_0x56bb('0x27'),(_0x5df786,_0x20dbb5)=>{for(const _0x282562 of this[_0x56bb('0x21')]){const _0x3bc118=this['_uis'][_0x56bb('0x2a')](_0x282562);(0x0,this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x282562)[_0x56bb('0x0')])(_0x20dbb5)&&_0x3bc118[_0x56bb('0x1e')](_0x20dbb5);}}),this[_0x56bb('0x13')](_0x381be4,_0x56bb('0x8'),()=>{for(const _0x5cdbe3 of this[_0x56bb('0x21')]){this['_uis']['get'](_0x5cdbe3)['setActiveAnnotation'](null);}}),this['listenTo'](_0x381be4['_visibleAnnotations'],'add',(_0x24f0c5,_0xd79812)=>{this[_0x56bb('0x12')](_0xd79812);});}['hasActive'](){return this['activeUIs']['size']>0x0;}[_0x56bb('0x24')](_0x338c45){return this['activeUIs'][_0x56bb('0x20')](_0x338c45);}[_0x56bb('0x19')](_0x40832d,_0x2610b8=()=>!0x0){const _0x4f27d4=this[_0x56bb('0xb')][_0x56bb('0x23')][_0x56bb('0x2a')](_0x233589);if(!this[_0x56bb('0xc')][_0x56bb('0x20')](_0x40832d))throw new _0x4e1269(_0x56bb('0x16'),this,{'uiName':_0x40832d});this[_0x56bb('0x24')](_0x40832d)&&this[_0x56bb('0x29')](_0x40832d),this[_0x56bb('0x21')][_0x56bb('0x28')](_0x40832d);const _0x7b7863=new _0x582745(),_0x1abb5a=_0x4f27d4[_0x56bb('0x1')];_0x3c3104({'source':_0x1abb5a,'target':_0x7b7863,'filter':_0x2610b8}),this[_0x56bb('0x14')][_0x56bb('0xa')](_0x40832d,{'collection':_0x7b7863,'filter':_0x2610b8});const _0x1b8d4f=this[_0x56bb('0xc')][_0x56bb('0x2a')](_0x40832d);_0x1b8d4f['attach'](_0x7b7863),this[_0x56bb('0x13')](_0x1b8d4f,_0x56bb('0x22'),(_0x517e4b,_0x4bc9f8,_0x210179,_0x445f0e)=>{_0x445f0e&&_0x4f27d4[_0x56bb('0x17')](_0x445f0e),_0x210179&&_0x4f27d4[_0x56bb('0x1d')](_0x210179);});}[_0x56bb('0x29')](_0x4fe489){if(this[_0x56bb('0x21')]['delete'](_0x4fe489),!this[_0x56bb('0xc')][_0x56bb('0x20')](_0x4fe489))throw new _0x4e1269(_0x56bb('0x16'),this,{'uiName':_0x4fe489});const _0xa48e23=this[_0x56bb('0xc')]['get'](_0x4fe489);_0xa48e23['detach'](),this[_0x56bb('0x1f')](_0xa48e23),this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x4fe489)[_0x56bb('0x15')][_0x56bb('0x7')](),this['_uisData'][_0x56bb('0x2b')](_0x4fe489);}['switchTo'](_0x36d1d1){if(!this[_0x56bb('0xc')][_0x56bb('0x20')](_0x36d1d1))throw new _0x4e1269('annotationsuis-missing-ui',this,{'uiName':_0x36d1d1});const _0x4d9e5b=this[_0x56bb('0xb')][_0x56bb('0x23')][_0x56bb('0x2a')](_0x233589),_0x48fe24=Array[_0x56bb('0x4')](_0x4d9e5b[_0x56bb('0x1b')])[0x0]||null;this['deactivateAll'](),this[_0x56bb('0x19')](_0x36d1d1);const _0x586ef5=this[_0x56bb('0xc')][_0x56bb('0x2a')](_0x36d1d1);_0x586ef5['setActiveAnnotation'](_0x48fe24),_0x586ef5['_setSelectedAnnotations']&&_0x48fe24&&_0x586ef5[_0x56bb('0xd')]([_0x48fe24]);}[_0x56bb('0x1c')](){for(const _0x962916 of this['activeUIs'])this[_0x56bb('0x29')](_0x962916);}[_0x56bb('0x11')](_0x59e740,_0x36cef8){if(this[_0x56bb('0xc')][_0x56bb('0x20')](_0x59e740))throw new _0x4e1269(_0x56bb('0x9'));if('function'!=typeof _0x36cef8['attach']||_0x56bb('0x26')!=typeof _0x36cef8['detach']||_0x56bb('0x26')!=typeof _0x36cef8['setActiveAnnotation'])throw new _0x4e1269(_0x56bb('0xe'),null);this[_0x56bb('0xc')][_0x56bb('0xa')](_0x59e740,_0x36cef8);}[_0x56bb('0x2')](){const _0x5bb1e5=this[_0x56bb('0xb')][_0x56bb('0x23')][_0x56bb('0x2a')](_0x233589)[_0x56bb('0x15')],_0x3f1b20=new Map(),_0x39df3f=Array[_0x56bb('0x4')](this[_0x56bb('0x21')]);for(const _0x1fc00f of this[_0x56bb('0x21')]){const _0x135e33=this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x1fc00f)['collection'];for(const _0x5a62e6 of _0x135e33)_0x3f1b20[_0x56bb('0xa')](_0x5a62e6,_0x1fc00f);}for(const _0x9e6ff2 of _0x5bb1e5){const _0x527906=_0x3f1b20[_0x56bb('0x2a')](_0x9e6ff2);this[_0x56bb('0x12')](_0x9e6ff2);const _0x56097f=_0x39df3f['find'](_0x260112=>this[_0x56bb('0x14')]['get'](_0x260112)[_0x56bb('0x0')](_0x9e6ff2));_0x527906!==_0x56097f&&(_0x527906&&this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x527906)[_0x56bb('0x15')][_0x56bb('0x10')](_0x9e6ff2),_0x56097f&&this['_uisData'][_0x56bb('0x2a')](_0x56097f)[_0x56bb('0x15')][_0x56bb('0x28')](_0x9e6ff2));}}[_0x56bb('0x7')](){this['deactivateAll'](),super[_0x56bb('0x7')]();}[_0x56bb('0x12')](_0x34c37f){const _0x35a0b7=[];for(const _0x2098b2 of this[_0x56bb('0x21')]){(0x0,this[_0x56bb('0x14')][_0x56bb('0x2a')](_0x2098b2)[_0x56bb('0x0')])(_0x34c37f)&&_0x35a0b7[_0x56bb('0x3')](_0x2098b2);}if(_0x35a0b7[_0x56bb('0x5')]>0x1)throw new _0x4e1269(_0x56bb('0x1a'),null,{'matchedUIs':_0x35a0b7,'annotationType':_0x34c37f[_0x56bb('0x25')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bf9=['listenTo','function','get','directChange','delete','range','_dataCollectors','plugins','requires','blur','EditorAnnotations','_editorAnnotations','addSourceCollector','fire','uiUpdate','innerView','getByInnerView','remove','model','from','hasDomSelection','focusTracker','has','_editorAnnotationsData','view','add','refreshSelectedViews','annotation','change:range','isEqual','pluginName','document','selection','sort','editorannotations-invalid-source-callback','map','containsRange','refresh','editor','update','isCollapsed','push'];(function(_0x13ee8f,_0x2bf997){const _0x581dba=function(_0x57d004){while(--_0x57d004){_0x13ee8f['push'](_0x13ee8f['shift']());}};_0x581dba(++_0x2bf997);}(_0x2bf9,0xb7));const _0x581d=function(_0x13ee8f,_0x2bf997){_0x13ee8f=_0x13ee8f-0x0;let _0x581dba=_0x2bf9[_0x13ee8f];return _0x581dba;};import{Plugin as _0x7463a3}from'ckeditor5/src/core.js';import{CKEditorError as _0xff62ee}from'ckeditor5/src/utils.js';import{debounce as _0x2f744f}from'lodash-es';import _0x58c3a6 from'./annotations.js';export default class k extends _0x7463a3{static get[_0x581d('0x23')](){return[_0x58c3a6];}static get[_0x581d('0xf')](){return _0x581d('0x25');}constructor(_0x5c2b2b){super(_0x5c2b2b),this[_0x581d('0x21')]=new Set(),this[_0x581d('0x26')]=new Set();}['init'](){const _0x36a456=this['editor'],_0xc10416=_0x36a456[_0x581d('0x3')][_0x581d('0x10')][_0x581d('0x11')],_0x326c19=_0x2f744f(()=>this[_0x581d('0xb')](),0xa);_0xc10416['on'](_0x581d('0xd'),(_0x1cecc5,_0x3f7acb)=>{_0x3f7acb[_0x581d('0x1e')]&&(_0x326c19['cancel'](),this[_0x581d('0xb')]());}),this['listenTo'](_0x36a456['editing'][_0x581d('0x9')][_0x581d('0x10')],'change:isFocused',(_0xf4f744,_0x49a7e9,_0x3f3aa0)=>{_0x3f3aa0&&_0x326c19();}),this[_0x581d('0x1b')](_0x36a456['ui']['focusTracker'],'change:isFocused',(_0x508ee1,_0x305fb5,_0x359ddb)=>{_0x359ddb||_0x36a456['isReadOnly']||this['fire'](_0x581d('0x24'),{'isAnnotationTracked':_0x2316c1=>this[_0x581d('0x8')][_0x581d('0x7')](_0x2316c1[_0x581d('0x0')])});}),this[_0x581d('0x1b')](this['editor']['ui'],_0x581d('0x18'),()=>this[_0x581d('0x28')](_0x581d('0x29')));}['registerAnnotation'](_0x2c4631){if(this[_0x581d('0x26')][_0x581d('0x7')](_0x2c4631[_0x581d('0x9')]))return;this['_editorAnnotations']['add'](_0x2c4631[_0x581d('0x9')]),this['editor']['ui'][_0x581d('0x6')][_0x581d('0xa')](_0x2c4631['view']['element']);const _0x37be3b=this[_0x581d('0x17')][_0x581d('0x22')][_0x581d('0x1d')](_0x58c3a6);this['listenTo'](_0x37be3b['collection'],'remove',(_0x5d964a,_0x525e81)=>{this['editor']['ui']['focusTracker'][_0x581d('0x2')](_0x525e81[_0x581d('0x9')]['element']),this[_0x581d('0x26')][_0x581d('0x1f')](_0x525e81[_0x581d('0x9')]);});}[_0x581d('0x5')](){return this[_0x581d('0x17')]['editing'][_0x581d('0x9')]['hasDomSelection'];}[_0x581d('0x27')](_0x16f519){if(_0x581d('0x1c')!=typeof _0x16f519)throw new _0xff62ee(_0x581d('0x13'));this['_dataCollectors'][_0x581d('0xa')](_0x16f519);}[_0x581d('0xb')](){this[_0x581d('0x28')](_0x581d('0x16'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x3a1eac,annotations:_0x494089}){const _0x1409e2=[],_0x5a7c12=this[_0x581d('0x17')][_0x581d('0x3')][_0x581d('0x10')][_0x581d('0x11')],_0x1f283f=Array[_0x581d('0x4')](_0x5a7c12['getRanges']());for(const [_0x817866,_0x1cc1ae]of this[_0x581d('0x8')]){const _0x1d1598=_0x3b4ce0(_0x1cc1ae),_0x21c010=_0x494089[_0x581d('0x1')](_0x817866);_0x1d1598&&_0x21c010&&_0x1409e2[_0x581d('0x1a')]({'annotation':_0x21c010,'range':_0x1d1598});}function _0x3b4ce0(_0x238cc3){for(const _0x4f1715 of _0x238cc3)for(const _0x444ade of _0x1f283f)if(_0x4f1715[_0x581d('0x15')](_0x444ade,!_0x5a7c12[_0x581d('0x19')]))return _0x4f1715;return null;}return _0x1409e2[_0x581d('0x12')]((_0xfded66,_0x2e195d)=>{const _0x29a471=_0xfded66[_0x581d('0x20')],_0x551e57=_0x2e195d[_0x581d('0x20')];if(!_0x29a471[_0x581d('0xe')](_0x551e57)){if(_0x29a471[_0x581d('0x15')](_0x551e57,!0x0))return 0x1;if(_0x551e57[_0x581d('0x15')](_0x29a471,!0x0))return-0x1;}return _0xfded66[_0x581d('0xc')]==_0x3a1eac?-0x1:_0x2e195d[_0x581d('0xc')]==_0x3a1eac?0x1:0x0;})[_0x581d('0x14')](_0x3daf52=>_0x3daf52[_0x581d('0xc')]);}get['_editorAnnotationsData'](){const _0x120d3a=new Map();for(const _0x2a2433 of Array[_0x581d('0x4')](this[_0x581d('0x21')]))for(const [_0x5d1fe9,_0x37df34]of _0x2a2433())_0x120d3a['set'](_0x5d1fe9,_0x37df34);return _0x120d3a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d0b=['change:isFocused','focusTracker','hasActive','_forceRefresh','init','_addedAnnotations','annotations','right','_selectedAnnotations','push','domConverter','activeAnnotation','visibleView','getClientRects','setActiveAnnotation','set','focus','listenTo','_removeAnnotationFromBalloon','fromRect','register','_setSelectedAnnotations','requires','plugins','clear','change:height','editing','get','inlineannotations-attach-already-attached','editor','bottom','collapse','addObserver','target','isAttached','editableElement','_manuallyClosed','_addAnnotationToBalloon','delete','_closeAnnotation','view','left','getBoundingClientRect','getOrderedSelectedAnnotations','selection','map','length','width','_balloon','mousedown','stopListening','document','Esc','showStack','inline','isFocused','inlineannotations-not-allowed-with-context','detach','hasView','keystrokes','every','InlineAnnotations','attach','change:visibleView','updatePosition','includes','getByView','top','remove','from','context','has','add','targetRect','switchTo','isActive','pluginName','_getBalloonTargetForAnnotation'];(function(_0x4669bb,_0x4d0bbd){const _0x44727c=function(_0x4277c7){while(--_0x4277c7){_0x4669bb['push'](_0x4669bb['shift']());}};_0x44727c(++_0x4d0bbd);}(_0x4d0b,0x18c));const _0x4472=function(_0x4669bb,_0x4d0bbd){_0x4669bb=_0x4669bb-0x0;let _0x44727c=_0x4d0b[_0x4669bb];return _0x44727c;};import{Plugin as _0x3c5c6c}from'ckeditor5/src/core.js';import _0x3626d7 from'./annotationsuis.js';import _0xd8d130 from'./editorannotations.js';import{ContextualBalloon as _0x485e33}from'ckeditor5/src/ui.js';import{MouseObserver as _0x51619f}from'ckeditor5/src/engine.js';import{CKEditorError as _0x70466c,Rect as _0x19822c}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x3c5c6c{static get[_0x4472('0x10')](){return[_0xd8d130,_0x485e33,_0x3626d7];}static get[_0x4472('0x46')](){return _0x4472('0x37');}constructor(_0x1187d4){super(_0x1187d4),_0x1187d4[_0x4472('0x14')][_0x4472('0x22')][_0x4472('0x1a')](_0x51619f),this[_0x4472('0x1c')]=!0x1,this[_0x4472('0x9')]('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this[_0x4472('0x2a')]=_0x1187d4['plugins']['get'](_0x485e33),this[_0x4472('0x4d')]=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}[_0x4472('0x4c')](){const _0x416933=this['editor'][_0x4472('0x11')][_0x4472('0x15')](_0x3626d7);_0x416933['context']===this[_0x4472('0x17')]&&(_0x416933[_0x4472('0xe')](_0x4472('0x30'),this),this[_0x4472('0x17')][_0x4472('0x35')][_0x4472('0x9')](_0x4472('0x2e'),(_0x478ad0,_0x1271ab)=>{const _0x4bc605=this['_balloon'];if(this['isAttached']&&_0x4bc605[_0x4472('0x6')]){const _0x42f00c=this[_0x4472('0x0')][_0x4472('0x3c')](_0x4bc605[_0x4472('0x6')]);_0x42f00c&&this[_0x4472('0x21')](_0x42f00c),_0x1271ab();}}));}['afterInit'](){const _0x17b9b5=this[_0x4472('0x17')][_0x4472('0x11')][_0x4472('0x15')](_0x3626d7);_0x17b9b5[_0x4472('0x40')]===this[_0x4472('0x17')]&&(_0x17b9b5[_0x4472('0x4a')]()||_0x17b9b5[_0x4472('0x44')](_0x4472('0x30')));}[_0x4472('0x8')](_0x3656c4){_0x3656c4!==this['activeAnnotation']&&(this[_0x4472('0x5')]&&(this[_0x4472('0x5')][_0x4472('0x45')]=!0x1),_0x3656c4&&this[_0x4472('0x17')]['ui'][_0x4472('0x49')][_0x4472('0x31')]&&(this[_0x4472('0x0')]['has'](_0x3656c4)&&this[_0x4472('0x1f')](_0x3656c4,!0x0),_0x3656c4['isActive']=!0x0),_0x3656c4||this[_0x4472('0xf')]([]),this[_0x4472('0x5')]=_0x3656c4);}[_0x4472('0x38')](_0x2ad3a8){this[_0x4472('0x0')]=_0x2ad3a8;const _0x5b3603=this[_0x4472('0x17')][_0x4472('0x11')][_0x4472('0x15')](_0x3626d7),_0x27fab8=this['_balloon'];if(this['isAttached'])throw new _0x70466c(_0x4472('0x16'),this);if(_0x5b3603['context']!==this[_0x4472('0x17')])throw new _0x70466c(_0x4472('0x32'),this);const _0x3a91ba=this[_0x4472('0x17')][_0x4472('0x11')][_0x4472('0x15')](_0xd8d130);this['listenTo'](_0x3a91ba,'refresh',()=>{const _0x35b524=_0x3a91ba[_0x4472('0x25')]({'annotations':this[_0x4472('0x0')],'activeAnnotation':this[_0x4472('0x5')]});var _0x4d539c,_0x2584b6;!this[_0x4472('0x4b')]&&(_0x4d539c=_0x35b524,_0x2584b6=this[_0x4472('0x2')],_0x4d539c[_0x4472('0x28')]===_0x2584b6[_0x4472('0x28')]&&_0x4d539c[_0x4472('0x36')](_0x5128a2=>_0x2584b6['includes'](_0x5128a2)))||(this['_forceRefresh']=!0x1,this[_0x4472('0xf')](_0x35b524),this['setActiveAnnotation'](_0x35b524[0x0]||null));}),this[_0x4472('0xb')](_0x3a91ba,'blur',(_0x3f3a74,{isAnnotationTracked:_0x53a523})=>{this[_0x4472('0x5')]&&_0x53a523(this[_0x4472('0x5')])&&(this[_0x4472('0xf')]([]),this[_0x4472('0x8')](null));}),this[_0x4472('0xb')](this['editor']['ui']['focusTracker'],_0x4472('0x48'),(_0x2d658e,_0x5d605c,_0x3ccae0)=>{_0x3ccae0||this['setActiveAnnotation'](null);}),this[_0x4472('0xb')](_0x2ad3a8,_0x4472('0x3e'),(_0x257998,_0x573409)=>{this['_removeAnnotationFromBalloon'](_0x573409),_0x573409===this['activeAnnotation']&&this[_0x4472('0x8')](null);}),this['listenTo'](_0x27fab8,_0x4472('0x39'),(_0x4ff083,_0x13344d,_0x8e08a7,_0x42132f)=>{_0x42132f&&this[_0x4472('0x2c')](_0x42132f);const _0x500aa6=_0x2ad3a8[_0x4472('0x3c')](_0x8e08a7);_0x8e08a7&&_0x500aa6&&(this[_0x4472('0xb')](_0x8e08a7,_0x4472('0x13'),()=>{_0x27fab8[_0x4472('0x3a')]();}),this[_0x4472('0xb')](_0x8e08a7,'Esc',()=>{this[_0x4472('0x21')](_0x500aa6),this[_0x4472('0x17')][_0x4472('0x14')][_0x4472('0x22')]['focus']();}),this['activeAnnotation']!==_0x500aa6&&this[_0x4472('0x8')](_0x500aa6));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x27fab8['visibleView']&&(_0x2ad3a8['getByView'](_0x27fab8[_0x4472('0x6')])&&_0x27fab8[_0x4472('0x3a')]());}),this[_0x4472('0xb')](this[_0x4472('0x17')][_0x4472('0x14')][_0x4472('0x22')][_0x4472('0x2d')],_0x4472('0x2b'),()=>{this[_0x4472('0x4b')]=!0x0,this[_0x4472('0x1e')][_0x4472('0x12')]();}),this[_0x4472('0x17')][_0x4472('0x14')]['view'][_0x4472('0x2d')][_0x4472('0x26')][_0x4472('0x1d')]&&this[_0x4472('0x17')][_0x4472('0x14')][_0x4472('0x22')][_0x4472('0xa')](),this[_0x4472('0x1c')]=!0x0;}[_0x4472('0x33')](){if(!this['isAttached'])throw new _0x70466c('inlineannotations-detach-not-attached',this);this[_0x4472('0x8')](null);for(const _0x42f85a of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x42f85a);this[_0x4472('0x2c')](),this[_0x4472('0x1c')]=!0x1,this[_0x4472('0x0')]=null;}['destroy'](){this[_0x4472('0x1c')]&&this[_0x4472('0x33')]();}['_setSelectedAnnotations'](_0x3afc53){for(const _0x3d6128 of this['_selectedAnnotations'])_0x3afc53[_0x4472('0x3b')](_0x3d6128)||this[_0x4472('0x1e')][_0x4472('0x20')](_0x3d6128);for(const _0x1425a8 of this['annotations'])_0x3afc53['includes'](_0x1425a8)||this[_0x4472('0xc')](_0x1425a8);if(this[_0x4472('0x17')]['ui']['focusTracker']['isFocused'])for(const _0x40e2f3 of _0x3afc53)this['_addAnnotationToBalloon'](_0x40e2f3);this[_0x4472('0x2')]=_0x3afc53;}[_0x4472('0x1f')](_0x27eeff,_0x490b0c=!0x1){this[_0x4472('0x1e')][_0x4472('0x41')](_0x27eeff)||(this[_0x4472('0x4d')][_0x4472('0x41')](_0x27eeff)||this[_0x4472('0x2a')][_0x4472('0x34')](_0x27eeff['view'])||(this[_0x4472('0x4d')][_0x4472('0x42')](_0x27eeff),this[_0x4472('0x2a')][_0x4472('0x42')]({'stackId':_0x27eeff[_0x4472('0x22')]['id'],'view':_0x27eeff['view'],'position':{'target':()=>this[_0x4472('0x47')](_0x27eeff)}})),_0x490b0c&&this[_0x4472('0x2a')][_0x4472('0x2f')](_0x27eeff[_0x4472('0x22')]['id']));}['_getBalloonTargetForAnnotation'](_0x46f27d){const _0x5b54e4=_0x46f27d[_0x4472('0x1b')],_0x3e8036=this['editor'][_0x4472('0x14')]['view'],_0x2811fe=_0x3e8036[_0x4472('0x2d')][_0x4472('0x26')]['getFirstRange'](),_0x2cd1ad=_0x3e8036[_0x4472('0x4')]['viewRangeToDom'](_0x2811fe);if(_0x2cd1ad[_0x4472('0x19')](!0x0),_0x5b54e4){if(_0x5b54e4 instanceof _0x19822c)return _0x5b54e4;let _0x421653=[];for(const _0x39c89c of _0x5b54e4)_0x421653[_0x4472('0x3')](...(_0x59f5ce=_0x39c89c[_0x4472('0x7')](),Array[_0x4472('0x3f')](_0x59f5ce)[_0x4472('0x27')](DOMRect[_0x4472('0xd')])));_0x421653=function(_0x3675ce){const _0x5471b2=[];let _0x4c04a7=_0x3675ce[0x0];for(let _0x5df5bc=0x1;_0x5df5bc<_0x3675ce[_0x4472('0x28')];_0x5df5bc++)F(_0x4c04a7,_0x3675ce[_0x5df5bc])?_0x4c04a7[_0x4472('0x29')]+=_0x3675ce[_0x5df5bc][_0x4472('0x29')]:(_0x5471b2['push'](_0x4c04a7),_0x4c04a7=_0x3675ce[_0x5df5bc]);return _0x5471b2[_0x4472('0x3')](_0x4c04a7),_0x5471b2;}(_0x421653);const _0x15f480=_0x2cd1ad[_0x4472('0x24')]();return _0x421653['find'](_0xecce7f=>_0xecce7f[_0x4472('0x3d')]<=_0x15f480['top']&&_0xecce7f[_0x4472('0x18')]>=_0x15f480[_0x4472('0x18')]&&_0xecce7f[_0x4472('0x23')]<=_0x15f480['left']&&_0xecce7f[_0x4472('0x1')]>=_0x15f480[_0x4472('0x1')])||_0x421653[0x0];}var _0x59f5ce;return _0x46f27d[_0x4472('0x43')]||_0x2cd1ad;}[_0x4472('0xc')](_0x151262){this[_0x4472('0x4d')][_0x4472('0x41')](_0x151262)&&this['_balloon']['hasView'](_0x151262[_0x4472('0x22')])&&(this[_0x4472('0x4d')][_0x4472('0x20')](_0x151262),this[_0x4472('0x2a')][_0x4472('0x3e')](_0x151262['view']));}[_0x4472('0x21')](_0x5c5b94){this['_manuallyClosed'][_0x4472('0x42')](_0x5c5b94),this[_0x4472('0xc')](_0x5c5b94);}}function F(_0x9e6233,_0x2d358c){return _0x9e6233['top']===_0x2d358c[_0x4472('0x3d')]&&_0x9e6233[_0x4472('0x18')]===_0x2d358c[_0x4472('0x18')]&&_0x9e6233['right']===_0x2d358c[_0x4472('0x23')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4650=['clear','pin','_editorAnnotations','northArrowSouth','context','first','plugins','keyCode','pluginName','_refreshPositioning','attachToDom','_destroyEditorAnnotationsIntegration','getSidebarItemView','detach','contains','content','detachFromDom','bodyCollection','northArrowSouthWest','_annotations','execute','_setSelectedAnnotations','_refreshPositioningDebounced','annotations','add','set:container','low','has','getOrderedSelectedAnnotations','_annotationToNarrowView','removeEventListener','target','requires','southArrowNorthWest','esc','getByView','view','preventClosingBalloon','rearrange','setActiveAnnotation','listenTo','from','stopPropagation','defaultPositions','number','destroy','keydown','bind','type','register','mousedown','focusableElements','editors','_attachToContainer','attach','set','balloonPanelView','stopListening','southArrowNorth','activeAnnotation','locale','element','blur','EditorAnnotations','addEventListener','hasDomSelection','init','values','_showBalloon','create','isAttached','_updateBalloonPosition','focus','refresh','_attachListeners','off','NarrowSidebar','get','narrowSidebar','_domEmitter','_manuallyClosedAnnotationViews','addAnnotation','ready','_selectedAnnotations','refreshPositioning','Esc','resize','remove','_hideBalloon','_integrateWithEditorAnnotations','high','isVisible','delete','_detachListeners'];(function(_0x1adc3e,_0x46506e){const _0x540255=function(_0x42e481){while(--_0x42e481){_0x1adc3e['push'](_0x1adc3e['shift']());}};_0x540255(++_0x46506e);}(_0x4650,0xd4));const _0x5402=function(_0x1adc3e,_0x46506e){_0x1adc3e=_0x1adc3e-0x0;let _0x540255=_0x4650[_0x1adc3e];return _0x540255;};import{ContextPlugin as _0x131720,Context as _0x88b345}from'ckeditor5/src/core.js';import _0x4231c8 from'./annotationsuis.js';import _0x14ac71 from'./sidebar.js';import _0x5def53 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x21767d,BodyCollection as _0x593556}from'ckeditor5/src/ui.js';import{CKEditorError as _0x49bd96,DomEmitterMixin as _0xe0c08d,keyCodes as _0x7a74de,Collection as _0x5784c4}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x1bb5cd}from'lodash-es';import _0x36ee9a from'./editorannotations.js';export default class i extends _0x131720{static get[_0x5402('0x8')](){return[_0x14ac71,_0x4231c8];}static get[_0x5402('0x4e')](){return _0x5402('0x34');}constructor(_0x392613){super(_0x392613),this[_0x5402('0x2e')]=!0x1,this[_0x5402('0x38')]=new Set(),this['_domEmitter']=Object[_0x5402('0x2d')](_0xe0c08d),this['_annotationToNarrowView']=new Map(),this[_0x5402('0x1f')](_0x5402('0x23'),null),this['annotations']=null,this[_0x5402('0x3b')]=[],this[_0x5402('0x48')]=new _0x5784c4(),this[_0x5402('0x5c')]=_0x1bb5cd(()=>{this[_0x5402('0x4f')]();},0xfa,{'leading':!0x1});}[_0x5402('0x2a')](){this[_0x5402('0x4a')]['plugins']['get'](_0x4231c8)[_0x5402('0x19')](_0x5402('0x36'),this),this[_0x5402('0x57')]=new _0x593556(this['context']['locale']),this[_0x5402('0x20')]=new _0x21767d(this[_0x5402('0x4a')][_0x5402('0x24')]),this['bodyCollection'][_0x5402('0x50')](),this[_0x5402('0x57')][_0x5402('0x0')](this[_0x5402('0x20')]);}[_0x5402('0x1e')](_0x29a39a){this[_0x5402('0x5d')]=_0x29a39a;const _0x45ab0b=this[_0x5402('0x4a')][_0x5402('0x4c')]['get'](_0x14ac71),_0x468170=this[_0x5402('0x20')];if(_0x45ab0b[_0x5402('0x59')]=_0x29a39a,this['isAttached'])throw new _0x49bd96('narrowsidebar-attach-already-attached',this);this[_0x5402('0x2e')]=!0x0,this[_0x5402('0x10')](_0x45ab0b,_0x5402('0x1'),()=>{this[_0x5402('0x53')](),this[_0x5402('0x10')](_0x45ab0b,'change:container',_0x4c91e0=>{_0x4c91e0[_0x5402('0x33')](),this['attach'](_0x29a39a);});}),_0x45ab0b[_0x5402('0x1d')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x51cbbf=_0x282fee=>{const _0x454ff6=new _0x5def53(this['context'][_0x5402('0x24')]);_0x45ab0b[_0x5402('0x39')](_0x282fee,_0x454ff6),this[_0x5402('0x5')][_0x5402('0x1f')](_0x282fee,_0x454ff6),_0x454ff6[_0x5402('0x17')]('isDirty','annotationType',_0x5402('0x14'))['to'](_0x282fee[_0x5402('0xc')],'isDirty',_0x5402('0x18'),'length'),_0x454ff6['on'](_0x5402('0x5a'),()=>{this[_0x5402('0x38')][_0x5402('0x46')](),_0x468170[_0x5402('0x55')][_0x5402('0x4b')]!==_0x282fee['view']?(this['_showBalloon'](_0x282fee),_0x282fee[_0x5402('0xc')][_0x5402('0x25')][_0x5402('0x30')](),this['setActiveAnnotation'](_0x282fee)):this[_0x5402('0xf')](null);});};for(const _0x5b7541 of _0x29a39a)_0x51cbbf(_0x5b7541);this['listenTo'](_0x29a39a,_0x5402('0x0'),(_0x3b841b,_0x71877e)=>{_0x51cbbf(_0x71877e);}),this[_0x5402('0x10')](_0x29a39a,'remove',(_0x5e3ec3,_0xf351b6,_0x5f4757)=>{this[_0x5402('0x5')][_0x5402('0x35')](_0xf351b6)['destroy'](),this[_0x5402('0x5')][_0x5402('0x44')](_0xf351b6),_0x45ab0b[_0x5402('0xe')]({'removedAnnotation':_0xf351b6,'previousAnnotation':_0x29a39a[_0x5402('0x35')](_0x5f4757-0x1),'nextAnnotation':_0x29a39a[_0x5402('0x35')](_0x5f4757+0x1)}),_0xf351b6===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':_0x5402('0x2')}),this[_0x5402('0x10')](_0x29a39a,_0x5402('0x30'),(_0x102361,_0x3e646a)=>{this[_0x5402('0xf')](_0x3e646a);}),this[_0x5402('0x10')](_0x29a39a,_0x5402('0x26'),()=>{this[_0x5402('0xf')](null);}),this[_0x5402('0x37')][_0x5402('0x10')](document,_0x5402('0x16'),(_0x2ab798,_0x2449e8)=>{_0x2449e8[_0x5402('0x4d')]===_0x7a74de[_0x5402('0xa')]&&_0x468170['isVisible']&&(this[_0x5402('0x38')][_0x5402('0x0')](_0x468170[_0x5402('0x55')]['first']),this[_0x5402('0x40')](),_0x2449e8[_0x5402('0x12')](),_0x2449e8['preventDefault']());}),this['_domEmitter']['listenTo'](document,_0x5402('0x1a'),(_0x234797,_0x22b694)=>{const _0x43ae41=_0x22b694[_0x5402('0x7')];_0x468170[_0x5402('0x43')]&&_0x468170[_0x5402('0x25')]['contains'](_0x43ae41)||_0x45ab0b[_0x5402('0xc')][_0x5402('0x25')]['contains'](_0x43ae41)||_0x234797[_0x5402('0xd')]||this[_0x5402('0x23')]&&this[_0x5402('0x23')][_0x5402('0x1b')]['find'](_0x110d9c=>_0x110d9c[_0x5402('0x54')](_0x43ae41))||(this[_0x5402('0x38')]['clear'](),this[_0x5402('0x40')](),this[_0x5402('0xf')](null));});const _0x105322=this['context']instanceof _0x88b345?this[_0x5402('0x4a')][_0x5402('0x1c')]:new _0x5784c4([this[_0x5402('0x4a')]]);for(const _0x2d0023 of _0x105322)this['_integrateWithEditorAnnotations'](_0x2d0023);this[_0x5402('0x10')](_0x105322,_0x5402('0x0'),(_0x5c7a75,_0x2a208d)=>{this[_0x5402('0x10')](_0x2a208d,_0x5402('0x3a'),()=>{this[_0x5402('0x41')](_0x2a208d);});}),this[_0x5402('0x10')](_0x105322,_0x5402('0x3f'),(_0x59c2bb,_0x128f29)=>{_0x128f29[_0x5402('0x4c')][_0x5402('0x3')](_0x5402('0x27'))&&this['_destroyEditorAnnotationsIntegration'](_0x128f29[_0x5402('0x4c')]['get']('EditorAnnotations'));}),window[_0x5402('0x28')]('resize',this[_0x5402('0x5c')]),this['_refreshPositioning']();}[_0x5402('0xf')](_0xafb468){if(_0xafb468===this['activeAnnotation'])return;const _0x5efa94=this[_0x5402('0x4a')][_0x5402('0x4c')][_0x5402('0x35')](_0x14ac71);if(_0x5efa94['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0xafb468,'disableAnimationOnActivatedAnnotation':!0x0}),_0xafb468)_0x5efa94[_0x5402('0x52')](_0xafb468)?this[_0x5402('0x2c')](_0xafb468):this[_0x5402('0x40')]();else this[_0x5402('0x40')]();this[_0x5402('0x23')]=_0xafb468;}[_0x5402('0x53')](){if(!this[_0x5402('0x2e')])throw new _0x49bd96('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xd6b9bc=this[_0x5402('0x4a')][_0x5402('0x4c')][_0x5402('0x35')](_0x14ac71);this[_0x5402('0x40')](),Array[_0x5402('0x11')](this[_0x5402('0x5')][_0x5402('0x2b')](),_0x147fc6=>_0x147fc6[_0x5402('0x15')]()),this[_0x5402('0x5')][_0x5402('0x46')](),_0xd6b9bc['_detachFromContainer'](this[_0x5402('0x5d')]),this['stopListening'](),this[_0x5402('0x37')][_0x5402('0x21')](),this[_0x5402('0x4a')]instanceof _0x88b345&&this[_0x5402('0x21')](this[_0x5402('0x4a')][_0x5402('0x1c')]);for(const _0x347773 of Array[_0x5402('0x11')](this[_0x5402('0x48')]))this[_0x5402('0x51')](_0x347773);window[_0x5402('0x6')](_0x5402('0x3e'),this[_0x5402('0x5c')]),this[_0x5402('0x5c')]['cancel'](),this[_0x5402('0x3b')]=[],this[_0x5402('0x2e')]=!0x1,this[_0x5402('0x5d')]=null;}[_0x5402('0x15')](){this[_0x5402('0x2e')]&&this[_0x5402('0x53')](),this[_0x5402('0x57')][_0x5402('0x56')]();}['_integrateWithEditorAnnotations'](_0x2cf810){const _0x465364=_0x2cf810[_0x5402('0x4c')][_0x5402('0x35')](_0x36ee9a),_0x1198c6=this[_0x5402('0x4a')][_0x5402('0x4c')][_0x5402('0x35')](_0x14ac71),_0x59bff0=this[_0x5402('0x5d')],_0x4ddebe=this[_0x5402('0x20')],_0x4fbcb7=()=>{const _0x2804c9=_0x465364[_0x5402('0x4')]({'annotations':this[_0x5402('0x5d')],'activeAnnotation':this[_0x5402('0x23')]});this['_setSelectedAnnotations'](_0x2804c9),this['setActiveAnnotation'](_0x2804c9[0x0]||null);};this['listenTo'](_0x465364,_0x5402('0x31'),_0x4fbcb7),this[_0x5402('0x10')](_0x465364,_0x5402('0x26'),(_0x18fefd,{isAnnotationTracked:_0x423875})=>{this[_0x5402('0x23')]&&_0x423875(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this[_0x5402('0xf')](null));}),this[_0x5402('0x10')](_0x465364,'uiUpdate',()=>{this[_0x5402('0x5c')]();}),this['listenTo'](_0x59bff0,_0x5402('0x26'),_0x11fcb4=>{_0x465364['hasDomSelection']()&&_0x11fcb4['stop']();},{'priority':'high'}),this[_0x5402('0x10')](this[_0x5402('0x37')],'mousedown',(_0x2784d7,_0x4bcd77)=>{const _0x213e09=_0x4bcd77[_0x5402('0x7')];_0x4ddebe[_0x5402('0x43')]&&_0x4ddebe[_0x5402('0x25')][_0x5402('0x54')](_0x213e09)||_0x1198c6[_0x5402('0xc')]['element'][_0x5402('0x54')](_0x213e09)||this[_0x5402('0x23')]&&_0x465364[_0x5402('0x29')]()&&(_0x4fbcb7(),_0x2784d7[_0x5402('0xd')]=!0x0);},{'priority':_0x5402('0x42')}),this[_0x5402('0x48')][_0x5402('0x0')](_0x465364);}[_0x5402('0x51')](_0x265de5){_0x265de5&&(this[_0x5402('0x21')](_0x265de5),this[_0x5402('0x48')]['remove'](_0x265de5));}[_0x5402('0x5b')](_0x27ec2c){for(const _0x41ec50 of this[_0x5402('0x3b')])_0x27ec2c['includes'](_0x41ec50)||this['_manuallyClosedAnnotationViews'][_0x5402('0x44')](_0x41ec50['view']);this[_0x5402('0x3b')]=_0x27ec2c;}[_0x5402('0x4f')](){const _0x1dd871=this[_0x5402('0x20')];this['annotations'][_0x5402('0x3c')](),_0x1dd871[_0x5402('0x43')]&&this[_0x5402('0x2f')]();}[_0x5402('0x2c')](_0x27e1af){if(this[_0x5402('0x38')][_0x5402('0x3')](_0x27e1af[_0x5402('0xc')]))return;const _0x3c9d28=this[_0x5402('0x20')][_0x5402('0x55')]['first'];_0x3c9d28!==_0x27e1af[_0x5402('0xc')]?(_0x3c9d28&&this[_0x5402('0x45')](_0x3c9d28),this[_0x5402('0x32')](_0x27e1af['view']),this['balloonPanelView'][_0x5402('0x55')][_0x5402('0x46')](),this[_0x5402('0x20')][_0x5402('0x55')][_0x5402('0x0')](_0x27e1af['view']),this[_0x5402('0x2f')]()):this['_updateBalloonPosition']();}[_0x5402('0x2f')](){const _0x332b07=this[_0x5402('0x20')][_0x5402('0x55')][_0x5402('0x4b')],_0x5b9867=_0x332b07&&this['annotations'][_0x5402('0xb')](_0x332b07);if(!_0x5b9867||!this['_annotationToNarrowView']['has'](_0x5b9867))return;const _0x472045=this['_annotationToNarrowView'][_0x5402('0x35')](_0x5b9867)[_0x5402('0x25')],_0x49a65a=function(){const _0x5c99f4=_0x21767d[_0x5402('0x13')];return[_0x5c99f4['southArrowNorthEast'],_0x5c99f4['northArrowSouthEast'],_0x5c99f4[_0x5402('0x22')],_0x5c99f4[_0x5402('0x49')],_0x5c99f4[_0x5402('0x9')],_0x5c99f4[_0x5402('0x58')]];}();this[_0x5402('0x20')][_0x5402('0x47')]({'target':_0x472045,'positions':_0x49a65a});}[_0x5402('0x40')](){const _0x6092b2=this[_0x5402('0x20')],_0x26b7eb=_0x6092b2[_0x5402('0x55')][_0x5402('0x4b')];_0x26b7eb&&(this[_0x5402('0x45')](_0x26b7eb),_0x6092b2['unpin'](),_0x6092b2[_0x5402('0x55')][_0x5402('0x46')]());}[_0x5402('0x32')](_0x423f14){this[_0x5402('0x10')](_0x423f14,'change:height',()=>this[_0x5402('0x2f')]()),this['listenTo'](_0x423f14,_0x5402('0x3d'),(_0xca6ea2,_0x279e09)=>{this[_0x5402('0x38')]['add'](_0x423f14),this['_hideBalloon'](),_0x279e09();});}['_detachListeners'](_0x33af3d){this[_0x5402('0x21')](_0x33af3d);}}
|
|
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);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42f6=['_getItemBefore','appendChild','sidebar.preventScrollOutOfView','sidebar-attachtocontainer-missing-container','container','_annotations','_spaceBetweenItems','updateHeight','_updateLastItem','add','getSidebarItemView','top','refresh','set','_alignForTopChange','change:targetRect','listenTo','isActive','init','bottom','_setItemTop','_getItemAfter','_alignAfterItem','_sidebarItemViewToAnnotation','view','_createSidebarView','_alignBeforeItem','getIndex','locale','_getTargetTop','last','_lastItem','element','config','_destroySidebarItemView','clear','pluginName','get','target','_getMaxAvailableTop','nodeType','Sidebar','sidebar.container','change:_lastItem','_annotationToSidebarItemView','render','stopListening','rearrange','_recalculate','content','change:top','_recalculateBuffer','max','context','destroy','remove','targetRect','unbind','_activeAnnotation','define','_alignForBottomChange','addAnnotation','list','_alignToTargetRect','push','_targetTop','class','_detachFromContainer','length','minHeight'];(function(_0x7b6757,_0x42f65a){const _0x38d5e1=function(_0x39ccf7){while(--_0x39ccf7){_0x7b6757['push'](_0x7b6757['shift']());}};_0x38d5e1(++_0x42f65a);}(_0x42f6,0x84));const _0x38d5=function(_0x7b6757,_0x42f65a){_0x7b6757=_0x7b6757-0x0;let _0x38d5e1=_0x42f6[_0x7b6757];return _0x38d5e1;};import{ContextPlugin as _0x2fc423}from'ckeditor5/src/core.js';import{Rect as _0x5c5b9f,CKEditorError as _0x33a764}from'ckeditor5/src/utils.js';import _0x52bcdb from'./view/sidebarview.js';import _0x3e0c0f from'./view/sidebaritemview.js';export default class z extends _0x2fc423{static get[_0x38d5('0x2c')](){return _0x38d5('0x31');}constructor(_0x3e6c9d){super(_0x3e6c9d),this[_0x38d5('0x15')]('_lastItem',void 0x0),this[_0x38d5('0x20')]=this['_createSidebarView'](),this[_0x38d5('0x15')](_0x38d5('0xc'),null),this['_spaceBetweenItems']=0x19,this[_0x38d5('0x1f')]=new Map(),this[_0x38d5('0x34')]=new Map(),this['context'][_0x38d5('0x29')][_0x38d5('0x43')](_0x38d5('0xa'),!0x1),this[_0x38d5('0xd')]=null,this['_activeAnnotation']=null,this[_0x38d5('0x3b')]=[];}[_0x38d5('0x1a')](){const _0x58a33a=this[_0x38d5('0x3d')][_0x38d5('0x29')][_0x38d5('0x2d')](_0x38d5('0x32'));_0x58a33a&&this['setContainer'](_0x58a33a);}['setContainer'](_0x8bed1f){if(!y(_0x8bed1f))throw new _0x33a764('sidebar-setcontainer-invalid-element');this['container']=_0x8bed1f;}['_attachToContainer']({viewClass:_0x16041b='',spaceBetweenItems:_0x3c00c3=0x19}={}){if(!y(this['container']))throw new _0x33a764(_0x38d5('0xb'),this);this[_0x38d5('0xc')][_0x38d5('0x9')](this[_0x38d5('0x20')][_0x38d5('0x28')]),this[_0x38d5('0x20')][_0x38d5('0x4')]=_0x16041b,this[_0x38d5('0xe')]=_0x3c00c3;}[_0x38d5('0x37')]({removedAnnotation:_0x25c3fa,previousAnnotation:_0x264a46,nextAnnotation:_0x2492fd}){const _0x2bef40=this[_0x38d5('0x12')](_0x25c3fa);this['view'][_0x38d5('0x0')][_0x38d5('0x3f')](_0x2bef40),this['_destroySidebarItemView'](_0x25c3fa),_0x264a46&&this[_0x38d5('0x1')](this[_0x38d5('0x12')](_0x264a46)),_0x2492fd&&this['_alignToTargetRect'](this[_0x38d5('0x12')](_0x2492fd)),this[_0x38d5('0x10')]();}[_0x38d5('0x14')]({blurredAnnotation:_0x52a32c,activatedAnnotation:_0x10761f,disableAnimationOnActivatedAnnotation:_0xad13d8}){if(this[_0x38d5('0x42')]=_0x10761f,_0x52a32c){_0x52a32c[_0x38d5('0x19')]=!0x1;const _0xe12e04=this['getSidebarItemView'](_0x52a32c);_0xe12e04&&_0xad13d8&&(_0xe12e04['isAnimationDisabled']=!0x1);}if(_0x10761f){const _0x5eaa57=this[_0x38d5('0x12')](_0x10761f);_0x5eaa57&&(_0x10761f[_0x38d5('0x19')]=!0x0,_0xad13d8&&(_0x5eaa57['isAnimationDisabled']=!0x0,_0x5eaa57['top']+=0x1),this['_alignToTargetRect'](_0x5eaa57));}}[_0x38d5('0x5')](_0x5443b4){if(this['view'][_0x38d5('0x28')]['remove'](),_0x5443b4)for(const _0x5628b6 of _0x5443b4)this[_0x38d5('0x2a')](_0x5628b6);this[_0x38d5('0x20')]['list'][_0x38d5('0x2b')](),this['view'][_0x38d5('0x4')]='',this[_0x38d5('0x27')]=null;}[_0x38d5('0x45')](_0x595441,_0xf9ad98){_0xf9ad98||(_0xf9ad98=_0x595441['view']);const _0x4deb4b=new _0x3e0c0f(this[_0x38d5('0x3d')][_0x38d5('0x24')]);this[_0x38d5('0x1f')][_0x38d5('0x15')](_0x4deb4b,_0x595441),this[_0x38d5('0x34')][_0x38d5('0x15')](_0x595441,_0x4deb4b),_0x4deb4b[_0x38d5('0x39')][_0x38d5('0x11')](_0xf9ad98),this['listenTo'](_0x595441[_0x38d5('0x20')],_0x38d5('0x17'),(_0x1122db,_0x5b73c2,_0x71515)=>{const _0x5deb93=this[_0x38d5('0x25')](_0x595441,_0x71515);_0x4deb4b[_0x38d5('0x3')]!=_0x5deb93&&(_0x4deb4b['_targetTop']=_0x5deb93,this[_0x38d5('0x1c')](_0x4deb4b,_0x5deb93));}),this[_0x38d5('0x18')](_0x4deb4b,_0x38d5('0x3a'),()=>{this['_recalculate'](_0x4deb4b,_0x38d5('0x13'));}),this[_0x38d5('0x18')](_0x4deb4b,'change:bottom',()=>{this[_0x38d5('0x38')](_0x4deb4b,_0x38d5('0x1b'));}),this['_alignToTargetRect'](_0x4deb4b);const _0x5b9390=this[_0x38d5('0x8')](_0x4deb4b);if(_0x5b9390)this[_0x38d5('0x1e')](_0x5b9390,_0x4deb4b)||this[_0x38d5('0x1')](_0x4deb4b);else this[_0x38d5('0x1')](_0x4deb4b);return this[_0x38d5('0x10')](),this[_0x38d5('0x20')][_0x38d5('0x0')]['add'](_0x4deb4b),_0x4deb4b;}[_0x38d5('0x16')](_0x141968){if(!_0x141968[_0x38d5('0x39')]['length'])return;const _0x2cb324=this[_0x38d5('0x8')](_0x141968);if(!_0x2cb324)return;const _0x262681=this[_0x38d5('0x1f')]['get'](_0x2cb324),_0x335209=this['_activeAnnotation'];_0x335209&&_0x335209===_0x262681?this[_0x38d5('0x1e')](_0x2cb324,_0x141968):this[_0x38d5('0x22')](_0x141968,_0x2cb324);}['_alignForBottomChange'](_0xcc0e41){if(!_0xcc0e41[_0x38d5('0x39')][_0x38d5('0x6')])return;const _0x579ceb=this[_0x38d5('0x1d')](_0xcc0e41);if(!_0x579ceb)return;const _0xd19a=this[_0x38d5('0x1f')]['get'](_0x579ceb),_0x4d6c39=this[_0x38d5('0x3d')][_0x38d5('0x29')][_0x38d5('0x2d')](_0x38d5('0xa')),_0x59f6a4=this[_0x38d5('0x42')];_0x59f6a4&&_0x59f6a4===_0xd19a&&_0x4d6c39?(this[_0x38d5('0x22')](_0x579ceb,_0xcc0e41),this[_0x38d5('0x1e')](_0xcc0e41,_0x579ceb)):_0x59f6a4&&_0x59f6a4===_0xd19a?this[_0x38d5('0x22')](_0x579ceb,_0xcc0e41):this[_0x38d5('0x1e')](_0xcc0e41,_0x579ceb);}[_0x38d5('0x38')](_0x350fad,_0x37192b){0x0===this[_0x38d5('0x3b')][_0x38d5('0x6')]&&setTimeout(()=>{for(const {sidebarItemView:_0x1977f2,changedProp:_0x24d6f0}of this[_0x38d5('0x3b')])'top'===_0x24d6f0?this[_0x38d5('0x16')](_0x1977f2):this[_0x38d5('0x44')](_0x1977f2);this[_0x38d5('0x3b')]=[];},0xa),this[_0x38d5('0x3b')][_0x38d5('0x2')]({'sidebarItemView':_0x350fad,'changedProp':_0x37192b});}[_0x38d5('0x12')](_0x37175b){return this[_0x38d5('0x34')][_0x38d5('0x2d')](_0x37175b);}['destroy'](){this[_0x38d5('0x36')](),this[_0x38d5('0x20')]['destroy']();}[_0x38d5('0x2a')](_0x1c056e){const _0x30386b=this[_0x38d5('0x12')](_0x1c056e);this[_0x38d5('0x36')](_0x30386b),this[_0x38d5('0x36')](_0x1c056e[_0x38d5('0x20')]),_0x30386b[_0x38d5('0x3e')](),this[_0x38d5('0x34')]['delete'](_0x1c056e),this[_0x38d5('0x1f')]['delete'](_0x30386b);}[_0x38d5('0x21')](){const _0x429f69=new _0x52bcdb(this[_0x38d5('0x3d')][_0x38d5('0x24')]);return _0x429f69[_0x38d5('0x35')](),this['on'](_0x38d5('0x33'),(_0x1d22f7,_0x1b50a8,_0x15fc13,_0x238ae5)=>{_0x238ae5&&_0x429f69[_0x38d5('0x41')]('minHeight'),_0x15fc13?_0x429f69['bind'](_0x38d5('0x7'))['to'](_0x15fc13,_0x38d5('0x1b')):_0x429f69['minHeight']=null;}),_0x429f69;}['_updateLastItem'](){var _0x1b66ee;this[_0x38d5('0x27')]=(null===(_0x1b66ee=this[_0x38d5('0xd')])||void 0x0===_0x1b66ee?void 0x0:_0x1b66ee['last'])?this[_0x38d5('0x12')](this['_annotations'][_0x38d5('0x26')]):null;}['_getItemBefore'](_0x557b9f){var _0x3a076a;const _0x26a8b1=this[_0x38d5('0x1f')][_0x38d5('0x2d')](_0x557b9f),_0x4149f6=_0x26a8b1&&(null===(_0x3a076a=this[_0x38d5('0xd')])||void 0x0===_0x3a076a?void 0x0:_0x3a076a[_0x38d5('0x2d')](this[_0x38d5('0xd')][_0x38d5('0x23')](_0x26a8b1)-0x1));return _0x4149f6&&this['getSidebarItemView'](_0x4149f6)||null;}['_getItemAfter'](_0x459656){var _0x47d444;const _0x3f7a93=this[_0x38d5('0x1f')][_0x38d5('0x2d')](_0x459656),_0x43b5d8=_0x3f7a93&&(null===(_0x47d444=this[_0x38d5('0xd')])||void 0x0===_0x47d444?void 0x0:_0x47d444[_0x38d5('0x2d')](this[_0x38d5('0xd')][_0x38d5('0x23')](_0x3f7a93)+0x1));return _0x43b5d8&&this[_0x38d5('0x12')](_0x43b5d8)||null;}[_0x38d5('0x22')](_0x393438,_0x185908){_0x393438[_0x38d5('0xf')]();const _0x3e1d9c=M(_0x185908['bottom']+this[_0x38d5('0xe')],_0x393438[_0x38d5('0x13')]);return!!_0x3e1d9c&&(this['_setItemTop'](_0x185908,_0x185908[_0x38d5('0x13')]-_0x3e1d9c),!0x0);}[_0x38d5('0x1e')](_0x4348c2,_0x490fab){_0x4348c2[_0x38d5('0xf')]();const _0x51b06c=M(_0x4348c2[_0x38d5('0x1b')]+this[_0x38d5('0xe')],_0x490fab['top']);return!!_0x51b06c&&(this[_0x38d5('0x1c')](_0x490fab,_0x490fab[_0x38d5('0x13')]+_0x51b06c,!0x1),!0x0);}[_0x38d5('0x1')](_0x1df72d){const _0x3e372b=this['_sidebarItemViewToAnnotation'][_0x38d5('0x2d')](_0x1df72d);if(!_0x3e372b||!_0x3e372b['target']||!_0x3e372b[_0x38d5('0x40')])return;const _0x2924a2=this[_0x38d5('0x25')](_0x3e372b,_0x3e372b[_0x38d5('0x40')]);this[_0x38d5('0x1c')](_0x1df72d,_0x2924a2);}[_0x38d5('0x25')](_0xc64d61,_0x37ebdb){if(null===_0x37ebdb)return 0x0;if(_0xc64d61[_0x38d5('0x2e')]instanceof _0x5c5b9f)return _0x37ebdb['top'];{const _0x4598f4=new _0x5c5b9f(this['view']['element'])[_0x38d5('0x13')];return _0x37ebdb[_0x38d5('0x13')]-_0x4598f4;}}['_setItemTop'](_0x330962,_0x272f7e,_0x4ccb7b=this[_0x38d5('0x3d')]['config'][_0x38d5('0x2d')](_0x38d5('0xa'))){_0x4ccb7b&&(_0x272f7e=Math[_0x38d5('0x3c')](_0x272f7e,this['_getMaxAvailableTop'](_0x330962))),_0x330962['top']=_0x272f7e;}[_0x38d5('0x2f')](_0x4fc921){let _0xba4338=this[_0x38d5('0x8')](_0x4fc921),_0x29af13=0x0;for(;_0xba4338;)_0xba4338[_0x38d5('0xf')](),_0x29af13+=this[_0x38d5('0xe')]+_0xba4338['height'],_0xba4338=this[_0x38d5('0x8')](_0xba4338);return _0x29af13;}}function M(_0xd2f859,_0x39e014){return Math['max'](_0xd2f859-_0x39e014,0x0);}function y(_0x2f131f){return null!==_0x2f131f&&'object'==typeof _0x2f131f&&0x1===_0x2f131f[_0x38d5('0x30')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ece=['counterView','ck-annotation-counter__badge--','bindTemplate','_badge','children','ck-annotation-counter__badge--edit-mode','icon','...','number','ck-annotation-counter','setTemplate','isDirty','toString','bind','add','annotationType','extendTemplate','set','ck-annotation-counter__badge','span'];(function(_0x425fcc,_0x1ece41){const _0x3449a4=function(_0x29edeb){while(--_0x29edeb){_0x425fcc['push'](_0x425fcc['shift']());}};_0x3449a4(++_0x1ece41);}(_0x1ece,0x17b));const _0x3449=function(_0x425fcc,_0x1ece41){_0x425fcc=_0x425fcc-0x0;let _0x3449a4=_0x1ece[_0x425fcc];return _0x3449a4;};import{ButtonView as _0x343a47,View as _0x3c236a}from'ckeditor5/src/ui.js';import _0x5b85d6 from'../../../theme/icons/add-comment.svg';export default class D extends _0x343a47{constructor(_0x1ef360){super(_0x1ef360);const _0x3fff18=this[_0x3449('0x3')];this[_0x3449('0x12')](_0x3449('0xc'),!0x1),this[_0x3449('0x12')](_0x3449('0x9'),0x0),this[_0x3449('0xe')](_0x3449('0x4'))['to'](this,_0x3449('0xc'),this,'number',(_0x1a0503,_0x541a51)=>_0x1a0503?_0x3449('0x8'):_0x541a51[_0x3449('0xd')]()),this[_0x3449('0x12')](_0x3449('0x10'),''),this[_0x3449('0x7')]=_0x5b85d6,this[_0x3449('0x11')]({'attributes':{'class':[_0x3449('0xa')]}}),this[_0x3449('0x1')]=new _0x3c236a(),this[_0x3449('0x1')][_0x3449('0xb')]({'tag':_0x3449('0x0'),'attributes':{'class':[_0x3449('0x13'),_0x3fff18['to'](_0x3449('0x10'),_0x29ad2e=>_0x3449('0x2')+_0x29ad2e),_0x3fff18['if'](_0x3449('0xc'),_0x3449('0x6'))]},'children':[{'text':_0x3fff18['to'](_0x3449('0x4'))}]}),this[_0x3449('0x5')][_0x3449('0xf')](this[_0x3449('0x1')]);}}
|