@ckeditor/ckeditor5-comments 31.1.0 → 32.0.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 +2 -2
- package/lang/translations/bs.po +80 -0
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +8 -8
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.js +2 -2
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments/ui/view/confirmmixin.js +2 -2
- package/src/comments/ui/view/confirmview.js +2 -2
- package/src/comments.js +2 -2
- package/src/commentsonly.js +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.js +2 -2
- package/src/utils/getdatetimeformatter.js +2 -2
- package/src/utils/getmarkerdomelement.js +2 -2
- package/src/utils/trim-html.js +2 -2
- package/theme/annotation-inline.css +1 -1
- package/theme/annotation.css +1 -1
- package/theme/comment.css +1 -1
- package/theme/commentinput.css +1 -1
- package/theme/commentmarker.css +1 -1
- package/theme/commentthread.css +1 -1
- package/theme/icons/add-comment.svg +1 -1
- package/theme/icons/edit-comment.svg +1 -1
- package/theme/icons/remove-comment.svg +1 -1
- package/theme/sidebar-narrow.css +1 -1
- package/theme/sidebar.css +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7eca=['change:isFocused','view','getRanges','editor','selection','focusTracker','change:range','document','fire','add','innerView','from','uiUpdate','EditorAnnotations','element','isEqual','sort','getOrderedSelectedAnnotations','requires','plugins','blur','model','addSourceCollector','delete','set','map','isReadOnly','editing','annotation','_dataCollectors','_editorAnnotationsData','containsRange','editorannotations-invalid-source-callback','get','cancel','has','hasDomSelection','pluginName','update','range','listenTo','refreshSelectedViews','remove'];(function(_0x57e516,_0x7ecae0){const _0x11f7ff=function(_0x5202c9){while(--_0x5202c9){_0x57e516['push'](_0x57e516['shift']());}};_0x11f7ff(++_0x7ecae0);}(_0x7eca,0x7b));const _0x11f7=function(_0x57e516,_0x7ecae0){_0x57e516=_0x57e516-0x0;let _0x11f7ff=_0x7eca[_0x57e516];return _0x11f7ff;};import{Plugin as _0x5a9420}from'ckeditor5/src/core';import{CKEditorError as _0x334e9a}from'ckeditor5/src/utils';import{debounce as _0x5b42b1}from'lodash-es';import _0x2a978f from'./annotations';export default class k extends _0x5a9420{static get[_0x11f7('0x18')](){return[_0x2a978f];}static get[_0x11f7('0x0')](){return _0x11f7('0x13');}constructor(_0x52ee70){super(_0x52ee70),this[_0x11f7('0x23')]=new Set();}['init'](){const _0x16da2e=this['editor'],_0x292e1e=_0x16da2e[_0x11f7('0x19')][_0x11f7('0x27')](_0x2a978f),_0x4b7472=_0x16da2e[_0x11f7('0x1b')]['document'][_0x11f7('0xa')],_0x2f5237=_0x5b42b1(()=>this[_0x11f7('0x4')](),0xa);_0x4b7472['on'](_0x11f7('0xc'),(_0x1e0430,_0x2ce74d)=>{_0x2ce74d['directChange']&&(_0x2f5237[_0x11f7('0x28')](),this[_0x11f7('0x4')]());}),this[_0x11f7('0x3')](_0x16da2e[_0x11f7('0x21')][_0x11f7('0x7')][_0x11f7('0xd')],_0x11f7('0x6'),(_0x41481f,_0x49e47e,_0x56917c)=>{_0x56917c&&_0x2f5237();}),this[_0x11f7('0x3')](_0x16da2e['ui'][_0x11f7('0xb')],_0x11f7('0x6'),(_0x26c2f6,_0x13ec77,_0x3dc960)=>{_0x3dc960||_0x16da2e[_0x11f7('0x20')]||this[_0x11f7('0xe')](_0x11f7('0x1a'),{'isAnnotationTracked':_0x3ec2dd=>this['_editorAnnotationsData'][_0x11f7('0x29')](_0x3ec2dd[_0x11f7('0x10')])});}),this[_0x11f7('0x3')](this[_0x11f7('0x9')]['ui'],_0x11f7('0x1'),()=>this[_0x11f7('0xe')](_0x11f7('0x12')));const _0x3fe0b4=new Set();this[_0x11f7('0x3')](_0x292e1e['collection'],_0x11f7('0xf'),(_0xa7b415,_0x43f5a5)=>{for(const _0x5613bf of this['_editorAnnotationsData']['keys']())if(_0x5613bf===_0x43f5a5[_0x11f7('0x10')]){_0x16da2e['ui'][_0x11f7('0xb')]['add'](_0x43f5a5['view'][_0x11f7('0x14')]),_0x3fe0b4[_0x11f7('0xf')](_0x43f5a5['view']);break;}}),this[_0x11f7('0x3')](_0x292e1e['collection'],_0x11f7('0x5'),(_0x413679,_0x43d9b1)=>{_0x3fe0b4[_0x11f7('0x29')](_0x43d9b1[_0x11f7('0x7')])&&(_0x16da2e['ui'][_0x11f7('0xb')][_0x11f7('0x5')](_0x43d9b1[_0x11f7('0x7')][_0x11f7('0x14')]),_0x3fe0b4[_0x11f7('0x1d')](_0x43d9b1[_0x11f7('0x7')]));});}[_0x11f7('0x2a')](){return this['editor']['editing'][_0x11f7('0x7')][_0x11f7('0x2a')];}[_0x11f7('0x1c')](_0x2ae256){if('function'!=typeof _0x2ae256)throw new _0x334e9a(_0x11f7('0x26'));this['_dataCollectors'][_0x11f7('0xf')](_0x2ae256);}[_0x11f7('0x4')](){this['fire']('refresh');}[_0x11f7('0x17')]({activeAnnotation:_0x34671a,annotations:_0x5b3322}){const _0x335dc3=[],_0x568486=this['editor'][_0x11f7('0x1b')]['document'][_0x11f7('0xa')],_0x16ea55=Array[_0x11f7('0x11')](_0x568486[_0x11f7('0x8')]());for(const [_0x5266c0,_0x189d4d]of this[_0x11f7('0x24')]){const _0x499b37=_0x491c50(_0x189d4d),_0x5b6a7d=_0x5b3322['getByInnerView'](_0x5266c0);_0x499b37&&_0x5b6a7d&&_0x335dc3['push']({'annotation':_0x5b6a7d,'range':_0x499b37});}function _0x491c50(_0x369dae){for(const _0x498b77 of _0x369dae)for(const _0x5017f0 of _0x16ea55)if(_0x498b77['containsRange'](_0x5017f0,!_0x568486['isCollapsed']))return _0x498b77;return null;}return _0x335dc3[_0x11f7('0x16')]((_0x4b75d8,_0x5a3a17)=>{const _0x20413e=_0x4b75d8['range'],_0x1f5e3d=_0x5a3a17[_0x11f7('0x2')];if(!_0x20413e[_0x11f7('0x15')](_0x1f5e3d)){if(_0x20413e[_0x11f7('0x25')](_0x1f5e3d,!0x0))return 0x1;if(_0x1f5e3d[_0x11f7('0x25')](_0x20413e,!0x0))return-0x1;}return _0x4b75d8[_0x11f7('0x22')]==_0x34671a?-0x1:_0x5a3a17['annotation']==_0x34671a?0x1:0x0;})[_0x11f7('0x1f')](_0x405581=>_0x405581[_0x11f7('0x22')]);}get[_0x11f7('0x24')](){const _0x26a1f5=new Map();for(const _0x32a72c of Array['from'](this[_0x11f7('0x23')]))for(const [_0x2efc1f,_0xbda767]of _0x32a72c())_0x26a1f5[_0x11f7('0x1e')](_0x2efc1f,_0xbda767);return _0x26a1f5;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49a0=['add','plugins','getByView','_manuallyClosed','get','setActiveAnnotation','inlineannotations-not-allowed-with-context','_addedAnnotations','activeAnnotation','stopListening','hasView','change:visibleView','set','targetRect','listenTo','_removeAnnotationFromBalloon','blur','isAttached','hasActive','mousedown','focus','_annotations','editing','visibleView','inline','bind','context','focusTracker','refresh','attach','showStack','has','includes','EditorAnnotations','editor','_selectedAnnotations','remove','requires','Esc','InlineAnnotations','document','inlineannotations-detach-not-attached','keystrokes','change:isFocused','delete','detach','editableElement','init','_addAnnotationToBalloon','register','isActive','isFocused','switchTo','view','_setSelectedAnnotations','_balloon','afterInit','clear','destroy','updatePosition'];(function(_0xfcc72,_0x49a0c6){const _0x4fc040=function(_0x2ec178){while(--_0x2ec178){_0xfcc72['push'](_0xfcc72['shift']());}};_0x4fc040(++_0x49a0c6);}(_0x49a0,0x68));const _0x4fc0=function(_0xfcc72,_0x49a0c6){_0xfcc72=_0xfcc72-0x0;let _0x4fc040=_0x49a0[_0xfcc72];return _0x4fc040;};import{Plugin as _0x387b2a}from'ckeditor5/src/core';import _0x3d314a from'./annotationsuis';import _0x144cb7 from'./editorannotations';import{ContextualBalloon as _0x4c6882}from'ckeditor5/src/ui';import{MouseObserver as _0x378e8d}from'ckeditor5/src/engine';import{CKEditorError as _0x5d95e0}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x387b2a{static get[_0x4fc0('0x35')](){return[_0x144cb7,_0x4c6882,_0x3d314a];}static get['pluginName'](){return _0x4fc0('0x37');}constructor(_0x3ad8a7){super(_0x3ad8a7),_0x3ad8a7['editing']['view']['addObserver'](_0x378e8d),this['isAttached']=!0x1,this[_0x4fc0('0x1c')](_0x4fc0('0x18'),null),this[_0x4fc0('0x25')]=null,this[_0x4fc0('0x13')]=new Set(),this[_0x4fc0('0xb')]=_0x3ad8a7[_0x4fc0('0x11')][_0x4fc0('0x14')](_0x4c6882),this['_addedAnnotations']=new Set(),this[_0x4fc0('0x33')]=[];}[_0x4fc0('0x3')](){const _0xce2646=this[_0x4fc0('0x32')][_0x4fc0('0x11')]['get'](_0x3d314a);_0xce2646['context']===this['editor']&&(_0xce2646[_0x4fc0('0x5')](_0x4fc0('0x28'),this),this[_0x4fc0('0x32')][_0x4fc0('0x3a')][_0x4fc0('0x1c')]('Esc',(_0x13182f,_0x818708)=>{const _0x375665=this[_0x4fc0('0xb')];if(this[_0x4fc0('0x21')]&&_0x375665['visibleView']){const _0x267caf=this['_annotations'][_0x4fc0('0x12')](_0x375665[_0x4fc0('0x27')]);this[_0x4fc0('0x13')][_0x4fc0('0x10')](_0x267caf),this[_0x4fc0('0x1f')](_0x267caf),_0x818708();}}));}[_0x4fc0('0xc')](){const _0x328ba0=this[_0x4fc0('0x32')][_0x4fc0('0x11')][_0x4fc0('0x14')](_0x3d314a);_0x328ba0['context']===this[_0x4fc0('0x32')]&&(_0x328ba0[_0x4fc0('0x22')]()||_0x328ba0[_0x4fc0('0x8')](_0x4fc0('0x28')));}[_0x4fc0('0x15')](_0x1a5782){_0x1a5782!==this[_0x4fc0('0x18')]&&(this[_0x4fc0('0x18')]&&(this[_0x4fc0('0x18')][_0x4fc0('0x6')]=!0x1),_0x1a5782&&this[_0x4fc0('0x32')]['ui']['focusTracker'][_0x4fc0('0x7')]&&(this[_0x4fc0('0x4')](_0x1a5782,!0x0),_0x1a5782['isActive']=!0x0),_0x1a5782||this[_0x4fc0('0xa')]([]),this[_0x4fc0('0x18')]=_0x1a5782);}[_0x4fc0('0x2d')](_0x9a7996){this[_0x4fc0('0x25')]=_0x9a7996;const _0x5b7a99=this[_0x4fc0('0x32')][_0x4fc0('0x11')][_0x4fc0('0x14')](_0x3d314a),_0x310253=this[_0x4fc0('0xb')];if(this['isAttached'])throw new _0x5d95e0('inlineannotations-attach-already-attached',this);if(_0x5b7a99[_0x4fc0('0x2a')]!==this[_0x4fc0('0x32')])throw new _0x5d95e0(_0x4fc0('0x16'),this);const _0x2e4aea=this[_0x4fc0('0x32')]['plugins'][_0x4fc0('0x14')](_0x4fc0('0x31'));this[_0x4fc0('0x1e')](_0x2e4aea,_0x4fc0('0x2c'),function(){const _0x2fc8d5=_0x2e4aea['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x4fc0('0x18')],'annotations':this[_0x4fc0('0x25')]});this[_0x4fc0('0xa')](_0x2fc8d5),this[_0x4fc0('0x15')](_0x2fc8d5[0x0]||null);}[_0x4fc0('0x29')](this)),this[_0x4fc0('0x1e')](_0x2e4aea,_0x4fc0('0x20'),(_0x2b9d1d,{isAnnotationTracked:_0x10c8c1})=>{this[_0x4fc0('0x18')]&&_0x10c8c1(this[_0x4fc0('0x18')])&&(this[_0x4fc0('0xa')]([]),this[_0x4fc0('0x15')](null));}),this[_0x4fc0('0x1e')](this[_0x4fc0('0x32')]['ui']['focusTracker'],_0x4fc0('0x3b'),(_0x438eb7,_0x22c2d1,_0x465971)=>{_0x465971||this['setActiveAnnotation'](null);}),this[_0x4fc0('0x1e')](_0x9a7996,_0x4fc0('0x34'),(_0x1b74a0,_0x107d4e)=>{this[_0x4fc0('0x1f')](_0x107d4e),_0x107d4e===this[_0x4fc0('0x18')]&&this[_0x4fc0('0x15')](null);}),this[_0x4fc0('0x1e')](_0x310253,_0x4fc0('0x1b'),(_0xeb4b35,_0x410731,_0x5891a3,_0x26428b)=>{if(_0x26428b&&this[_0x4fc0('0x19')](_0x26428b),!_0x5891a3||!_0x9a7996['getByView'](_0x5891a3))return;const _0x46e68c=_0x9a7996[_0x4fc0('0x12')](_0x5891a3);this[_0x4fc0('0x1e')](_0x5891a3,'change:height',()=>{_0x310253[_0x4fc0('0xf')]();}),this[_0x4fc0('0x1e')](_0x5891a3,_0x4fc0('0x36'),()=>{this[_0x4fc0('0x13')][_0x4fc0('0x10')](_0x46e68c),this[_0x4fc0('0x1f')](_0x46e68c),this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')][_0x4fc0('0x24')]();}),this['activeAnnotation']!==_0x46e68c&&this['setActiveAnnotation'](_0x46e68c);}),this[_0x4fc0('0x1e')](this['editor']['ui'],'update',()=>{_0x310253[_0x4fc0('0x27')]&&(_0x9a7996[_0x4fc0('0x12')](_0x310253['visibleView'])&&_0x310253[_0x4fc0('0xf')]());}),this['listenTo'](this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')][_0x4fc0('0x38')],_0x4fc0('0x23'),()=>{this[_0x4fc0('0x13')][_0x4fc0('0xd')]();}),this[_0x4fc0('0x32')]['editing'][_0x4fc0('0x9')]['document']['selection'][_0x4fc0('0x2')]&&this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')]['focus'](),this['isAttached']=!0x0;}[_0x4fc0('0x1')](){if(!this[_0x4fc0('0x21')])throw new _0x5d95e0(_0x4fc0('0x39'),this);this[_0x4fc0('0x15')](null);for(const _0x2aa29b of this[_0x4fc0('0x17')])this['_removeAnnotationFromBalloon'](_0x2aa29b);this[_0x4fc0('0x19')](),this['isAttached']=!0x1;}[_0x4fc0('0xe')](){this[_0x4fc0('0x21')]&&this[_0x4fc0('0x1')]();}[_0x4fc0('0xa')](_0x3081e7){const _0x3e305b=this['_selectedAnnotations'];for(const _0x3700f4 of _0x3e305b)_0x3081e7[_0x4fc0('0x30')](_0x3700f4)||this['_manuallyClosed'][_0x4fc0('0x0')](_0x3700f4);for(const _0x222052 of this[_0x4fc0('0x25')])_0x3081e7[_0x4fc0('0x30')](_0x222052)||this[_0x4fc0('0x1f')](_0x222052);if(this[_0x4fc0('0x32')]['ui'][_0x4fc0('0x2b')][_0x4fc0('0x7')])for(const _0x27195e of _0x3081e7)this[_0x4fc0('0x4')](_0x27195e);this[_0x4fc0('0x33')]=_0x3081e7;}[_0x4fc0('0x4')](_0x4529cb,_0x1e47c6){this[_0x4fc0('0x13')][_0x4fc0('0x2f')](_0x4529cb)||(this['_addedAnnotations'][_0x4fc0('0x2f')](_0x4529cb)||this['_balloon'][_0x4fc0('0x1a')](_0x4529cb[_0x4fc0('0x9')])||(this[_0x4fc0('0x17')][_0x4fc0('0x10')](_0x4529cb),this[_0x4fc0('0xb')][_0x4fc0('0x10')]({'stackId':_0x4529cb[_0x4fc0('0x9')]['id'],'view':_0x4529cb[_0x4fc0('0x9')],'position':{'target':()=>_0x4529cb['target']||_0x4529cb[_0x4fc0('0x1d')]||document['getSelection']()['getRangeAt'](0x0)}})),_0x1e47c6&&this[_0x4fc0('0xb')][_0x4fc0('0x2e')](_0x4529cb['view']['id']));}[_0x4fc0('0x1f')](_0x1e1bb1){this[_0x4fc0('0x17')][_0x4fc0('0x2f')](_0x1e1bb1)&&this[_0x4fc0('0xb')][_0x4fc0('0x1a')](_0x1e1bb1[_0x4fc0('0x9')])&&(this[_0x4fc0('0x17')][_0x4fc0('0x0')](_0x1e1bb1),this[_0x4fc0('0xb')][_0x4fc0('0x34')](_0x1e1bb1[_0x4fc0('0x9')]));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4776=['preventClosingBalloon','element','_throttledRefreshPositioning','_attachListeners','narrowsidebar-detach-not-attached','remove','delete','detachFromDom','EditorAnnotations','_setSelectedAnnotations','hasDomSelection','values','annotationType','_showBalloon','editors','northArrowSouthEast','_hideBalloon','context','contains','_refreshPositioning','change:height','locale','plugins','stop','target','unpin','bodyCollection','activeAnnotation','addAnnotation','attach','mousedown','has','_detachListeners','northArrowSouthWest','bind','create','add','southArrowNorthEast','narrowsidebar-attach-already-attached','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','first','number','_selectedAnnotations','ck-sidebar--narrow','balloonPanelView','_updateBalloonPosition','type','off','refresh','stopListening','esc','change:container','pluginName','isAttached','length','high','ready','view','resize','NarrowSidebar','defaultPositions','getSidebarItemView','requires','Sidebar','preventDefault','focus','removeEventListener','setActiveAnnotation','northArrowSouth','detach','pin','keyCode','addEventListener','isVisible','blur','listenTo','_annotationToNarrowView','rearrange','stopPropagation','register','from','_attachToContainer','_manuallyClosedAnnotationViews','narrowSidebar','includes','destroy','isDirty','get','southArrowNorth','clear','_detachFromContainer','set','content','_domEmitter','Esc','_annotations','keydown','getOrderedSelectedAnnotations','_editorAnnotations','getByView'];(function(_0x537968,_0x4776e6){const _0x26dea4=function(_0x367e3e){while(--_0x367e3e){_0x537968['push'](_0x537968['shift']());}};_0x26dea4(++_0x4776e6);}(_0x4776,0x1c2));const _0x26de=function(_0x537968,_0x4776e6){_0x537968=_0x537968-0x0;let _0x26dea4=_0x4776[_0x537968];return _0x26dea4;};import{ContextPlugin as _0x5559f1}from'ckeditor5/src/core';import _0x166068 from'./annotationsuis';import _0x9ead6d from'./sidebar';import _0xd7441f from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x316fa6,BodyCollection as _0x15eca9}from'ckeditor5/src/ui';import{CKEditorError as _0x16975d,DomEmitterMixin as _0x5377c2,keyCodes as _0x51b316,Collection as _0x54159c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x43d226}from'lodash-es';export default class s extends _0x5559f1{static get[_0x26de('0x11')](){return[_0x9ead6d,_0x166068];}static get[_0x26de('0x7')](){return _0x26de('0xe');}constructor(_0x4fe69f){super(_0x4fe69f),this[_0x26de('0x8')]=!0x1,this[_0x26de('0x25')]=new Set(),this[_0x26de('0x30')]=Object[_0x26de('0x5a')](_0x5377c2),this['_annotationToNarrowView']=new Map(),this[_0x26de('0x2e')]('activeAnnotation',null),this[_0x26de('0x32')]=null,this[_0x26de('0x62')]=[],this[_0x26de('0x35')]=new _0x54159c(),this[_0x26de('0x39')]=_0x43d226(()=>{this[_0x26de('0x4a')]();},0x190,{'leading':!0x1});}['init'](){this[_0x26de('0x48')][_0x26de('0x4d')][_0x26de('0x2a')](_0x166068)[_0x26de('0x22')](_0x26de('0x26'),this),this[_0x26de('0x51')]=new _0x15eca9(this[_0x26de('0x48')][_0x26de('0x4c')]),this[_0x26de('0x64')]=new _0x316fa6(this[_0x26de('0x48')][_0x26de('0x4c')]),this[_0x26de('0x51')]['attachToDom'](),this[_0x26de('0x51')][_0x26de('0x5b')](this[_0x26de('0x64')]);}['attach'](_0x3d9f83){this[_0x26de('0x32')]=_0x3d9f83;const _0x509234=this[_0x26de('0x48')]['plugins'][_0x26de('0x2a')](_0x9ead6d),_0x70e693=this[_0x26de('0x64')];if(_0x509234[_0x26de('0x32')]=_0x3d9f83,this[_0x26de('0x8')])throw new _0x16975d(_0x26de('0x5d'),this);this[_0x26de('0x8')]=!0x0,this[_0x26de('0x1e')](_0x509234,'set:container',()=>{this[_0x26de('0x18')](),this[_0x26de('0x1e')](_0x509234,_0x26de('0x6'),_0x50b07d=>{_0x50b07d[_0x26de('0x2')](),this[_0x26de('0x54')](_0x3d9f83);});}),_0x509234[_0x26de('0x24')]({'viewClass':_0x26de('0x63'),'spaceBetweenItems':0x5});const _0x59c877=_0x3be6c0=>{const _0x19f217=new _0xd7441f(this[_0x26de('0x48')][_0x26de('0x4c')]);_0x509234[_0x26de('0x53')](_0x3be6c0,_0x19f217),this[_0x26de('0x1f')]['set'](_0x3be6c0,_0x19f217),_0x19f217[_0x26de('0x59')](_0x26de('0x29'),_0x26de('0x43'),_0x26de('0x61'))['to'](_0x3be6c0[_0x26de('0xc')],_0x26de('0x29'),_0x26de('0x1'),_0x26de('0x9')),_0x19f217['on']('execute',()=>{this[_0x26de('0x25')][_0x26de('0x2c')](),_0x70e693[_0x26de('0x2f')][_0x26de('0x60')]!==_0x3be6c0[_0x26de('0xc')]?(this[_0x26de('0x44')](_0x3be6c0),_0x3be6c0['view']['element'][_0x26de('0x14')](),this['setActiveAnnotation'](_0x3be6c0)):this[_0x26de('0x16')](null);});};for(const _0x3deb10 of _0x3d9f83)_0x59c877(_0x3deb10);this['listenTo'](_0x3d9f83,_0x26de('0x5b'),(_0x2d7f37,_0x3e7e07)=>{_0x59c877(_0x3e7e07);}),this[_0x26de('0x1e')](_0x3d9f83,'remove',(_0x4a88b4,_0x537cb1,_0x4782b5)=>{this[_0x26de('0x1f')][_0x26de('0x2a')](_0x537cb1)['destroy'](),this[_0x26de('0x1f')][_0x26de('0x3d')](_0x537cb1),_0x509234[_0x26de('0x20')]({'removedAnnotation':_0x537cb1,'previousAnnotation':_0x3d9f83[_0x26de('0x2a')](_0x4782b5-0x1),'nextAnnotation':_0x3d9f83[_0x26de('0x2a')](_0x4782b5+0x1)}),_0x537cb1===this[_0x26de('0x52')]&&this[_0x26de('0x16')](null);},{'priority':'low'}),this[_0x26de('0x1e')](_0x3d9f83,'focus',(_0x500b30,_0x2a25af)=>{this['setActiveAnnotation'](_0x2a25af);}),this[_0x26de('0x1e')](_0x3d9f83,_0x26de('0x1d'),()=>{this['setActiveAnnotation'](null);}),this[_0x26de('0x30')][_0x26de('0x1e')](document,_0x26de('0x33'),(_0x140935,_0x370f49)=>{_0x370f49[_0x26de('0x1a')]===_0x51b316[_0x26de('0x5')]&&_0x70e693['isVisible']&&(this[_0x26de('0x25')][_0x26de('0x5b')](_0x70e693[_0x26de('0x2f')][_0x26de('0x60')]),this[_0x26de('0x47')](),_0x370f49[_0x26de('0x21')](),_0x370f49[_0x26de('0x13')]());}),this[_0x26de('0x30')]['listenTo'](document,_0x26de('0x55'),(_0x4af2bf,_0x13a5b0)=>{const _0x16b48f=_0x13a5b0[_0x26de('0x4f')];_0x70e693[_0x26de('0x1c')]&&_0x70e693[_0x26de('0x38')][_0x26de('0x49')](_0x16b48f)||_0x509234[_0x26de('0xc')]['element']['contains'](_0x16b48f)||_0x4af2bf[_0x26de('0x37')]||(this[_0x26de('0x25')][_0x26de('0x2c')](),this[_0x26de('0x47')](),this[_0x26de('0x16')](null));});const _0x4003bc=this[_0x26de('0x48')][_0x26de('0x45')]?this[_0x26de('0x48')][_0x26de('0x45')]:new _0x54159c([this['context']]);for(const _0x539d0e of _0x4003bc)this['_integrateWithEditorAnnotations'](_0x539d0e);this[_0x26de('0x1e')](_0x4003bc,_0x26de('0x5b'),(_0xc7e42b,_0x52c0c5)=>{this[_0x26de('0x1e')](_0x52c0c5,_0x26de('0xb'),()=>{this[_0x26de('0x5f')](_0x52c0c5);});}),this[_0x26de('0x1e')](_0x4003bc,_0x26de('0x3c'),(_0x39c1ed,_0x4b1ce1)=>{_0x4b1ce1[_0x26de('0x4d')]['has'](_0x26de('0x3f'))&&this[_0x26de('0x5e')](_0x4b1ce1[_0x26de('0x4d')][_0x26de('0x2a')](_0x26de('0x3f')));}),window[_0x26de('0x1b')](_0x26de('0xd'),this[_0x26de('0x39')]),this[_0x26de('0x4a')]();}[_0x26de('0x16')](_0x2965cb){if(_0x2965cb===this['activeAnnotation'])return;const _0x21920f=this[_0x26de('0x48')][_0x26de('0x4d')][_0x26de('0x2a')](_0x26de('0x12'));if(_0x21920f[_0x26de('0x3')]({'blurredAnnotation':this[_0x26de('0x52')],'activatedAnnotation':_0x2965cb,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2965cb)_0x21920f[_0x26de('0x10')](_0x2965cb)?this[_0x26de('0x44')](_0x2965cb):this[_0x26de('0x47')]();else this[_0x26de('0x47')]();this[_0x26de('0x52')]=_0x2965cb;}['detach'](){if(!this[_0x26de('0x8')])throw new _0x16975d(_0x26de('0x3b'),this);this['setActiveAnnotation'](null);const _0x152c84=this[_0x26de('0x48')][_0x26de('0x4d')][_0x26de('0x2a')](_0x26de('0x12'));this[_0x26de('0x47')](),Array[_0x26de('0x23')](this[_0x26de('0x1f')][_0x26de('0x42')](),_0x478a36=>_0x478a36['destroy']()),this[_0x26de('0x1f')][_0x26de('0x2c')](),_0x152c84[_0x26de('0x2d')](this[_0x26de('0x32')]),this[_0x26de('0x4')](),this[_0x26de('0x30')][_0x26de('0x4')](),this[_0x26de('0x4')](this['context'][_0x26de('0x45')]);for(const _0x1e322e of Array[_0x26de('0x23')](this[_0x26de('0x35')]))this[_0x26de('0x5e')](_0x1e322e);window[_0x26de('0x15')](_0x26de('0xd'),this[_0x26de('0x39')]),this[_0x26de('0x39')]['cancel'](),this['_selectedAnnotations']=[],this[_0x26de('0x8')]=!0x1,this['_annotations']=null;}[_0x26de('0x28')](){this[_0x26de('0x8')]&&this[_0x26de('0x18')](),this[_0x26de('0x51')][_0x26de('0x3e')]();}['_integrateWithEditorAnnotations'](_0x3236d2){const _0x19acee=_0x3236d2[_0x26de('0x4d')]['get'](_0x26de('0x3f')),_0x15b78b=this['context'][_0x26de('0x4d')]['get'](_0x9ead6d),_0x214012=this['_annotations'],_0xabe8a0=this[_0x26de('0x64')],_0x247fe4=()=>{const _0x13f2bc=_0x19acee[_0x26de('0x34')]({'activeAnnotation':this[_0x26de('0x52')],'annotations':this[_0x26de('0x32')]});this['_setSelectedAnnotations'](_0x13f2bc),this['setActiveAnnotation'](_0x13f2bc[0x0]||null);};this['listenTo'](_0x19acee,_0x26de('0x3'),_0x247fe4),this[_0x26de('0x1e')](_0x19acee,_0x26de('0x1d'),(_0x10d79a,{isAnnotationTracked:_0x166c07})=>{this[_0x26de('0x52')]&&_0x166c07(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this[_0x26de('0x1e')](_0x19acee,'uiUpdate',()=>{this[_0x26de('0x39')]();}),this[_0x26de('0x1e')](_0x214012,'blur',_0x161b68=>{_0x19acee[_0x26de('0x41')]()&&_0x161b68[_0x26de('0x4e')]();},{'priority':'high'}),this[_0x26de('0x30')]['listenTo'](document,_0x26de('0x55'),(_0x1d5404,_0x4b668b)=>{const _0x458779=_0x4b668b[_0x26de('0x4f')];_0xabe8a0[_0x26de('0x1c')]&&_0xabe8a0[_0x26de('0x38')][_0x26de('0x49')](_0x458779)||_0x15b78b[_0x26de('0xc')][_0x26de('0x38')][_0x26de('0x49')](_0x458779)||this['activeAnnotation']&&_0x19acee[_0x26de('0x41')]()&&(_0x247fe4(),_0x1d5404[_0x26de('0x37')]=!0x0);},{'priority':_0x26de('0xa')}),this[_0x26de('0x35')][_0x26de('0x5b')](_0x19acee);}['_destroyEditorAnnotationsIntegration'](_0x4d1e65){_0x4d1e65&&(this['stopListening'](_0x4d1e65),this[_0x26de('0x35')]['remove'](_0x4d1e65));}[_0x26de('0x40')](_0x3f64a3){for(const _0x4cc231 of this[_0x26de('0x62')])_0x3f64a3[_0x26de('0x27')](_0x4cc231)||this['_manuallyClosedAnnotationViews'][_0x26de('0x3d')](_0x4cc231[_0x26de('0xc')]);this[_0x26de('0x62')]=_0x3f64a3;}[_0x26de('0x4a')](){const _0x23e9c9=this[_0x26de('0x64')];this[_0x26de('0x32')]['refreshPositioning'](),_0x23e9c9['isVisible']&&this[_0x26de('0x0')]();}[_0x26de('0x44')](_0x53a087){if(this[_0x26de('0x25')][_0x26de('0x56')](_0x53a087[_0x26de('0xc')]))return;const _0x223315=this[_0x26de('0x64')][_0x26de('0x2f')][_0x26de('0x60')];_0x223315!==_0x53a087[_0x26de('0xc')]?(_0x223315&&this[_0x26de('0x57')](_0x223315),this[_0x26de('0x3a')](_0x53a087[_0x26de('0xc')]),this[_0x26de('0x64')]['content']['clear'](),this[_0x26de('0x64')][_0x26de('0x2f')]['add'](_0x53a087[_0x26de('0xc')]),this[_0x26de('0x0')]()):this['_updateBalloonPosition']();}[_0x26de('0x0')](){const _0x113fc8=this[_0x26de('0x64')]['content']['first'],_0xbae071=this[_0x26de('0x32')][_0x26de('0x36')](_0x113fc8);if(!this[_0x26de('0x1f')][_0x26de('0x56')](_0xbae071))return;const _0x185ebf=this[_0x26de('0x1f')][_0x26de('0x2a')](_0xbae071)[_0x26de('0x38')],_0x73b957=function(){const _0x187360=_0x316fa6[_0x26de('0xf')];return[_0x187360[_0x26de('0x5c')],_0x187360[_0x26de('0x46')],_0x187360[_0x26de('0x2b')],_0x187360[_0x26de('0x17')],_0x187360['southArrowNorthWest'],_0x187360[_0x26de('0x58')]];}();this[_0x26de('0x64')][_0x26de('0x19')]({'target':_0x185ebf,'positions':_0x73b957});}[_0x26de('0x47')](){const _0x1f5dd1=this[_0x26de('0x64')],_0x20a44d=_0x1f5dd1[_0x26de('0x2f')][_0x26de('0x60')];_0x20a44d&&(this['_detachListeners'](_0x20a44d),_0x1f5dd1[_0x26de('0x50')](),_0x1f5dd1[_0x26de('0x2f')]['clear']());}['_attachListeners'](_0x4c5080){this[_0x26de('0x1e')](_0x4c5080,_0x26de('0x4b'),()=>this[_0x26de('0x0')]()),this[_0x26de('0x1e')](_0x4c5080,_0x26de('0x31'),(_0x2f7db,_0x5ca2a2)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4c5080),this['_hideBalloon'](),_0x5ca2a2();});}[_0x26de('0x57')](_0x242324){this[_0x26de('0x4')](_0x242324);}}
|
|
23
|
+
const _0x22c3=['isAttached','plugins','content','hasDomSelection','_detachFromContainer','Sidebar','init','_hideBalloon','preventClosingBalloon','EditorAnnotations','ck-sidebar--narrow','number','removeEventListener','northArrowSouth','_setSelectedAnnotations','resize','stopListening','keyCode','_destroyEditorAnnotationsIntegration','stop','editors','refreshPositioning','_attachListeners','_updateBalloonPosition','activeAnnotation','_domEmitter','target','mousedown','_annotationToNarrowView','balloonPanelView','blur','register','off','getByView','context','change:height','detach','isVisible','pluginName','refresh','narrowSidebar','Esc','listenTo','length','set','_throttledRefreshPositioning','preventDefault','first','set:container','attach','clear','stopPropagation','low','keydown','requires','ready','addEventListener','pin','change:container','high','type','focus','defaultPositions','esc','getSidebarItemView','setActiveAnnotation','_showBalloon','_annotations','cancel','bind','values','destroy','view','annotationType','get','contains','_selectedAnnotations','_detachListeners','element','remove','add','_integrateWithEditorAnnotations','northArrowSouthWest','unpin','delete','has','_editorAnnotations','bodyCollection','_refreshPositioning','_attachToContainer','southArrowNorthWest','locale','rearrange','southArrowNorthEast','_manuallyClosedAnnotationViews','narrowsidebar-attach-already-attached'];(function(_0x152738,_0x22c313){const _0xa3fa0a=function(_0x5a2e8b){while(--_0x5a2e8b){_0x152738['push'](_0x152738['shift']());}};_0xa3fa0a(++_0x22c313);}(_0x22c3,0xbc));const _0xa3fa=function(_0x152738,_0x22c313){_0x152738=_0x152738-0x0;let _0xa3fa0a=_0x22c3[_0x152738];return _0xa3fa0a;};import{ContextPlugin as _0xce22ef}from'ckeditor5/src/core';import _0x3eab28 from'./annotationsuis';import _0xdcc9b0 from'./sidebar';import _0x247ca2 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x1c66bc,BodyCollection as _0x561f52}from'ckeditor5/src/ui';import{CKEditorError as _0x20a550,DomEmitterMixin as _0x3bc5de,keyCodes as _0x506443,Collection as _0x45798c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x5471ef}from'lodash-es';export default class s extends _0xce22ef{static get[_0xa3fa('0x3a')](){return[_0xdcc9b0,_0x3eab28];}static get[_0xa3fa('0x2a')](){return'NarrowSidebar';}constructor(_0x4b3e6d){super(_0x4b3e6d),this[_0xa3fa('0x4')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0xa3fa('0x1d')]=Object['create'](_0x3bc5de),this[_0xa3fa('0x20')]=new Map(),this[_0xa3fa('0x30')](_0xa3fa('0x1c'),null),this[_0xa3fa('0x47')]=null,this[_0xa3fa('0x50')]=[],this['_editorAnnotations']=new _0x45798c(),this[_0xa3fa('0x31')]=_0x5471ef(()=>{this[_0xa3fa('0x5c')]();},0x190,{'leading':!0x1});}[_0xa3fa('0xa')](){this[_0xa3fa('0x26')][_0xa3fa('0x5')][_0xa3fa('0x4e')](_0x3eab28)[_0xa3fa('0x23')](_0xa3fa('0x2c'),this),this[_0xa3fa('0x5b')]=new _0x561f52(this[_0xa3fa('0x26')][_0xa3fa('0x5f')]),this[_0xa3fa('0x21')]=new _0x1c66bc(this[_0xa3fa('0x26')][_0xa3fa('0x5f')]),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this[_0xa3fa('0x21')]);}[_0xa3fa('0x35')](_0x163b9c){this['_annotations']=_0x163b9c;const _0x2176fc=this[_0xa3fa('0x26')]['plugins'][_0xa3fa('0x4e')](_0xdcc9b0),_0x15c5ef=this[_0xa3fa('0x21')];if(_0x2176fc[_0xa3fa('0x47')]=_0x163b9c,this[_0xa3fa('0x4')])throw new _0x20a550(_0xa3fa('0x3'),this);this[_0xa3fa('0x4')]=!0x0,this['listenTo'](_0x2176fc,_0xa3fa('0x34'),()=>{this[_0xa3fa('0x28')](),this['listenTo'](_0x2176fc,_0xa3fa('0x3e'),_0x4344dd=>{_0x4344dd[_0xa3fa('0x24')](),this[_0xa3fa('0x35')](_0x163b9c);});}),_0x2176fc[_0xa3fa('0x5d')]({'viewClass':_0xa3fa('0xe'),'spaceBetweenItems':0x5});const _0x5d6d22=_0x1adfed=>{const _0x58905f=new _0x247ca2(this['context'][_0xa3fa('0x5f')]);_0x2176fc['addAnnotation'](_0x1adfed,_0x58905f),this['_annotationToNarrowView'][_0xa3fa('0x30')](_0x1adfed,_0x58905f),_0x58905f[_0xa3fa('0x49')]('isDirty',_0xa3fa('0x4d'),_0xa3fa('0xf'))['to'](_0x1adfed['view'],'isDirty',_0xa3fa('0x40'),_0xa3fa('0x2f')),_0x58905f['on']('execute',()=>{this[_0xa3fa('0x2')][_0xa3fa('0x36')](),_0x15c5ef[_0xa3fa('0x6')][_0xa3fa('0x33')]!==_0x1adfed[_0xa3fa('0x4c')]?(this[_0xa3fa('0x46')](_0x1adfed),_0x1adfed[_0xa3fa('0x4c')][_0xa3fa('0x52')]['focus'](),this['setActiveAnnotation'](_0x1adfed)):this[_0xa3fa('0x45')](null);});};for(const _0x166106 of _0x163b9c)_0x5d6d22(_0x166106);this['listenTo'](_0x163b9c,'add',(_0x105519,_0x304e7a)=>{_0x5d6d22(_0x304e7a);}),this[_0xa3fa('0x2e')](_0x163b9c,_0xa3fa('0x53'),(_0x72d76,_0x3370e0,_0x558318)=>{this[_0xa3fa('0x20')]['get'](_0x3370e0)[_0xa3fa('0x4b')](),this['_annotationToNarrowView'][_0xa3fa('0x58')](_0x3370e0),_0x2176fc[_0xa3fa('0x0')]({'removedAnnotation':_0x3370e0,'previousAnnotation':_0x163b9c[_0xa3fa('0x4e')](_0x558318-0x1),'nextAnnotation':_0x163b9c[_0xa3fa('0x4e')](_0x558318+0x1)}),_0x3370e0===this[_0xa3fa('0x1c')]&&this[_0xa3fa('0x45')](null);},{'priority':_0xa3fa('0x38')}),this['listenTo'](_0x163b9c,_0xa3fa('0x41'),(_0x43bde2,_0x511568)=>{this[_0xa3fa('0x45')](_0x511568);}),this[_0xa3fa('0x2e')](_0x163b9c,'blur',()=>{this[_0xa3fa('0x45')](null);}),this[_0xa3fa('0x1d')][_0xa3fa('0x2e')](document,_0xa3fa('0x39'),(_0x277001,_0x38a6d0)=>{_0x38a6d0[_0xa3fa('0x15')]===_0x506443[_0xa3fa('0x43')]&&_0x15c5ef[_0xa3fa('0x29')]&&(this[_0xa3fa('0x2')][_0xa3fa('0x54')](_0x15c5ef[_0xa3fa('0x6')][_0xa3fa('0x33')]),this[_0xa3fa('0xb')](),_0x38a6d0[_0xa3fa('0x37')](),_0x38a6d0[_0xa3fa('0x32')]());}),this[_0xa3fa('0x1d')][_0xa3fa('0x2e')](document,_0xa3fa('0x1f'),(_0x401ab4,_0x71952f)=>{const _0x33f0cb=_0x71952f[_0xa3fa('0x1e')];_0x15c5ef[_0xa3fa('0x29')]&&_0x15c5ef[_0xa3fa('0x52')]['contains'](_0x33f0cb)||_0x2176fc[_0xa3fa('0x4c')][_0xa3fa('0x52')]['contains'](_0x33f0cb)||_0x401ab4[_0xa3fa('0xc')]||(this[_0xa3fa('0x2')][_0xa3fa('0x36')](),this['_hideBalloon'](),this[_0xa3fa('0x45')](null));});const _0x150498=this['context']['editors']?this['context'][_0xa3fa('0x18')]:new _0x45798c([this[_0xa3fa('0x26')]]);for(const _0x559692 of _0x150498)this[_0xa3fa('0x55')](_0x559692);this[_0xa3fa('0x2e')](_0x150498,_0xa3fa('0x54'),(_0x46947d,_0x4e4207)=>{this[_0xa3fa('0x2e')](_0x4e4207,_0xa3fa('0x3b'),()=>{this['_integrateWithEditorAnnotations'](_0x4e4207);});}),this[_0xa3fa('0x2e')](_0x150498,'remove',(_0x5a2c97,_0x52caf0)=>{_0x52caf0[_0xa3fa('0x5')][_0xa3fa('0x59')](_0xa3fa('0xd'))&&this[_0xa3fa('0x16')](_0x52caf0[_0xa3fa('0x5')][_0xa3fa('0x4e')](_0xa3fa('0xd')));}),window[_0xa3fa('0x3c')](_0xa3fa('0x13'),this[_0xa3fa('0x31')]),this[_0xa3fa('0x5c')]();}[_0xa3fa('0x45')](_0x4df7a8){if(_0x4df7a8===this[_0xa3fa('0x1c')])return;const _0x18dd5a=this[_0xa3fa('0x26')]['plugins']['get'](_0xa3fa('0x9'));if(_0x18dd5a[_0xa3fa('0x2b')]({'blurredAnnotation':this[_0xa3fa('0x1c')],'activatedAnnotation':_0x4df7a8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4df7a8)_0x18dd5a[_0xa3fa('0x44')](_0x4df7a8)?this['_showBalloon'](_0x4df7a8):this['_hideBalloon']();else this[_0xa3fa('0xb')]();this['activeAnnotation']=_0x4df7a8;}[_0xa3fa('0x28')](){if(!this[_0xa3fa('0x4')])throw new _0x20a550('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x341020=this[_0xa3fa('0x26')][_0xa3fa('0x5')][_0xa3fa('0x4e')]('Sidebar');this[_0xa3fa('0xb')](),Array['from'](this[_0xa3fa('0x20')][_0xa3fa('0x4a')](),_0x458d31=>_0x458d31['destroy']()),this[_0xa3fa('0x20')][_0xa3fa('0x36')](),_0x341020[_0xa3fa('0x8')](this[_0xa3fa('0x47')]),this[_0xa3fa('0x14')](),this[_0xa3fa('0x1d')][_0xa3fa('0x14')](),this[_0xa3fa('0x14')](this[_0xa3fa('0x26')]['editors']);for(const _0x63e327 of Array['from'](this[_0xa3fa('0x5a')]))this['_destroyEditorAnnotationsIntegration'](_0x63e327);window[_0xa3fa('0x10')](_0xa3fa('0x13'),this['_throttledRefreshPositioning']),this[_0xa3fa('0x31')][_0xa3fa('0x48')](),this[_0xa3fa('0x50')]=[],this['isAttached']=!0x1,this['_annotations']=null;}[_0xa3fa('0x4b')](){this[_0xa3fa('0x4')]&&this['detach'](),this[_0xa3fa('0x5b')]['detachFromDom']();}[_0xa3fa('0x55')](_0x38a283){const _0x34e3e8=_0x38a283['plugins'][_0xa3fa('0x4e')](_0xa3fa('0xd')),_0x4fb254=this[_0xa3fa('0x26')]['plugins']['get'](_0xdcc9b0),_0xdc292b=this['_annotations'],_0x2f897d=this['balloonPanelView'],_0x376133=()=>{const _0x20abe6=_0x34e3e8['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0xa3fa('0x47')]});this[_0xa3fa('0x12')](_0x20abe6),this['setActiveAnnotation'](_0x20abe6[0x0]||null);};this[_0xa3fa('0x2e')](_0x34e3e8,_0xa3fa('0x2b'),_0x376133),this[_0xa3fa('0x2e')](_0x34e3e8,_0xa3fa('0x22'),(_0x242c7c,{isAnnotationTracked:_0x3078fb})=>{this[_0xa3fa('0x1c')]&&_0x3078fb(this[_0xa3fa('0x1c')])&&(this[_0xa3fa('0x12')]([]),this[_0xa3fa('0x45')](null));}),this[_0xa3fa('0x2e')](_0x34e3e8,'uiUpdate',()=>{this[_0xa3fa('0x31')]();}),this[_0xa3fa('0x2e')](_0xdc292b,'blur',_0x154f6b=>{_0x34e3e8[_0xa3fa('0x7')]()&&_0x154f6b[_0xa3fa('0x17')]();},{'priority':_0xa3fa('0x3f')}),this[_0xa3fa('0x1d')]['listenTo'](document,_0xa3fa('0x1f'),(_0x53f636,_0x235d60)=>{const _0x5dfa1b=_0x235d60[_0xa3fa('0x1e')];_0x2f897d[_0xa3fa('0x29')]&&_0x2f897d['element']['contains'](_0x5dfa1b)||_0x4fb254[_0xa3fa('0x4c')]['element'][_0xa3fa('0x4f')](_0x5dfa1b)||this[_0xa3fa('0x1c')]&&_0x34e3e8[_0xa3fa('0x7')]()&&(_0x376133(),_0x53f636[_0xa3fa('0xc')]=!0x0);},{'priority':_0xa3fa('0x3f')}),this[_0xa3fa('0x5a')]['add'](_0x34e3e8);}[_0xa3fa('0x16')](_0x1b0005){_0x1b0005&&(this[_0xa3fa('0x14')](_0x1b0005),this[_0xa3fa('0x5a')][_0xa3fa('0x53')](_0x1b0005));}[_0xa3fa('0x12')](_0x1a3e3c){for(const _0x5a6307 of this['_selectedAnnotations'])_0x1a3e3c['includes'](_0x5a6307)||this[_0xa3fa('0x2')]['delete'](_0x5a6307['view']);this[_0xa3fa('0x50')]=_0x1a3e3c;}[_0xa3fa('0x5c')](){const _0x38f839=this[_0xa3fa('0x21')];this[_0xa3fa('0x47')][_0xa3fa('0x19')](),_0x38f839[_0xa3fa('0x29')]&&this[_0xa3fa('0x1b')]();}[_0xa3fa('0x46')](_0x3e8512){if(this[_0xa3fa('0x2')][_0xa3fa('0x59')](_0x3e8512[_0xa3fa('0x4c')]))return;const _0x4a088c=this[_0xa3fa('0x21')][_0xa3fa('0x6')][_0xa3fa('0x33')];_0x4a088c!==_0x3e8512[_0xa3fa('0x4c')]?(_0x4a088c&&this[_0xa3fa('0x51')](_0x4a088c),this['_attachListeners'](_0x3e8512[_0xa3fa('0x4c')]),this['balloonPanelView']['content']['clear'](),this[_0xa3fa('0x21')][_0xa3fa('0x6')][_0xa3fa('0x54')](_0x3e8512[_0xa3fa('0x4c')]),this[_0xa3fa('0x1b')]()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x298bf4=this[_0xa3fa('0x21')]['content'][_0xa3fa('0x33')],_0x5446f8=this['_annotations'][_0xa3fa('0x25')](_0x298bf4);if(!this[_0xa3fa('0x20')][_0xa3fa('0x59')](_0x5446f8))return;const _0x45b66e=this[_0xa3fa('0x20')][_0xa3fa('0x4e')](_0x5446f8)['element'],_0x32f2fa=function(){const _0x5c8749=_0x1c66bc[_0xa3fa('0x42')];return[_0x5c8749[_0xa3fa('0x1')],_0x5c8749['northArrowSouthEast'],_0x5c8749['southArrowNorth'],_0x5c8749[_0xa3fa('0x11')],_0x5c8749[_0xa3fa('0x5e')],_0x5c8749[_0xa3fa('0x56')]];}();this[_0xa3fa('0x21')][_0xa3fa('0x3d')]({'target':_0x45b66e,'positions':_0x32f2fa});}[_0xa3fa('0xb')](){const _0x2cd591=this[_0xa3fa('0x21')],_0x5b034a=_0x2cd591[_0xa3fa('0x6')][_0xa3fa('0x33')];_0x5b034a&&(this[_0xa3fa('0x51')](_0x5b034a),_0x2cd591[_0xa3fa('0x57')](),_0x2cd591[_0xa3fa('0x6')][_0xa3fa('0x36')]());}[_0xa3fa('0x1a')](_0x4a317e){this[_0xa3fa('0x2e')](_0x4a317e,_0xa3fa('0x27'),()=>this[_0xa3fa('0x1b')]()),this[_0xa3fa('0x2e')](_0x4a317e,_0xa3fa('0x2d'),(_0x8b3a0c,_0x11476a)=>{this[_0xa3fa('0x2')][_0xa3fa('0x54')](_0x4a317e),this['_hideBalloon'](),_0x11476a();});}[_0xa3fa('0x51')](_0x4915a0){this[_0xa3fa('0x14')](_0x4915a0);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a07=['_spaceBetweenItems','minHeight','length','addAnnotation','_updateLastItem','_annotationToSidebarItemView','_annotations','view','content','delete','_getTargetTop','getIndex','bottom','_getItemAfter','top','updateHeight','_detachFromContainer','rearrange','_getItemBefore','_lastItem','remove','sidebar.preventScrollOutOfView','listenTo','last','_destroySidebarItemView','context','sidebar-setcontainer-invalid-element','target','_attachToContainer','change:_lastItem','getSidebarItemView','add','_setItemTop','bind','config','_activeAnnotation','destroy','_createSidebarView','_sidebarItemViewToAnnotation','list','change:bottom','Sidebar','_alignBeforeItem','container','_alignAfterItem','sidebar-attachtocontainer-missing-container','setContainer','set','_targetTop','max','isAnimationDisabled','pluginName','element','change:top','init','stopListening','class','locale','clear','appendChild','change:targetRect','define','sidebar.container','isActive','get','targetRect','refresh','_getMaxAvailableTop','_alignToTargetRect','height'];(function(_0x4f7cb2,_0x2a0701){const _0x32202f=function(_0x23ba6b){while(--_0x23ba6b){_0x4f7cb2['push'](_0x4f7cb2['shift']());}};_0x32202f(++_0x2a0701);}(_0x2a07,0x1b2));const _0x3220=function(_0x4f7cb2,_0x2a0701){_0x4f7cb2=_0x4f7cb2-0x0;let _0x32202f=_0x2a07[_0x4f7cb2];return _0x32202f;};import{ContextPlugin as _0x30bcc9}from'ckeditor5/src/core';import _0x36d231 from'./view/sidebarview';import _0x31561d from'./view/sidebaritemview';import{Rect as _0x4fa7f3,CKEditorError as _0x5aa609}from'ckeditor5/src/utils';import{isElement as _0x5c2a45,throttle as _0x5cfa75}from'lodash-es';export default class b extends _0x30bcc9{static get[_0x3220('0x25')](){return _0x3220('0x1b');}constructor(_0x107353){super(_0x107353),this[_0x3220('0x21')](_0x3220('0x5')),this[_0x3220('0x3f')]=this[_0x3220('0x17')](),this['set'](_0x3220('0x1d'),null),this[_0x3220('0x38')]=0x19,this[_0x3220('0x18')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context'][_0x3220('0x14')][_0x3220('0x2f')](_0x3220('0x7'),!0x1),this[_0x3220('0x3e')]=null,this[_0x3220('0x15')]=null;}[_0x3220('0x28')](){const _0x490712=this['context'][_0x3220('0x14')][_0x3220('0x32')](_0x3220('0x30'));_0x490712&&this[_0x3220('0x20')](_0x490712);}['setContainer'](_0x324f2f){if(!_0x5c2a45(_0x324f2f))throw new _0x5aa609(_0x3220('0xc'));this[_0x3220('0x1d')]=_0x324f2f;}[_0x3220('0xe')]({viewClass:_0xce7e41='',spaceBetweenItems:_0x1fb45a=0x19}={}){if(!_0x5c2a45(this[_0x3220('0x1d')]))throw new _0x5aa609(_0x3220('0x1f'),this);this[_0x3220('0x1d')][_0x3220('0x2d')](this['view'][_0x3220('0x26')]),this[_0x3220('0x3f')][_0x3220('0x2a')]=_0xce7e41,this[_0x3220('0x38')]=_0x1fb45a;}[_0x3220('0x3')]({removedAnnotation:_0x4e5029,previousAnnotation:_0x4b3ca8,nextAnnotation:_0x3307a7}){const _0x30e497=this[_0x3220('0x10')](_0x4e5029);this[_0x3220('0x3f')][_0x3220('0x19')][_0x3220('0x6')](_0x30e497),this[_0x3220('0xa')](_0x4e5029),_0x4b3ca8&&this[_0x3220('0x36')](this[_0x3220('0x10')](_0x4b3ca8)),_0x3307a7&&this[_0x3220('0x36')](this[_0x3220('0x10')](_0x3307a7)),this['_updateLastItem']();}[_0x3220('0x34')]({blurredAnnotation:_0x5cdeab,activatedAnnotation:_0x19b67e,disableAnimationOnActivatedAnnotation:_0x1a0764}){if(this[_0x3220('0x15')]=_0x19b67e,_0x5cdeab){_0x5cdeab[_0x3220('0x31')]=!0x1;const _0x3e74ee=this[_0x3220('0x10')](_0x5cdeab);_0x3e74ee&&_0x1a0764&&(_0x3e74ee[_0x3220('0x24')]=!0x1);}if(_0x19b67e){const _0x175c7e=this[_0x3220('0x10')](_0x19b67e);_0x175c7e&&(_0x19b67e[_0x3220('0x31')]=!0x0,_0x1a0764&&(_0x175c7e['isAnimationDisabled']=!0x0,_0x175c7e[_0x3220('0x0')]+=0x1),this['_alignToTargetRect'](_0x175c7e));}}[_0x3220('0x2')](_0x377973){this[_0x3220('0x29')](),this[_0x3220('0x3f')][_0x3220('0x26')][_0x3220('0x6')]();for(const _0xc816e0 of _0x377973)this[_0x3220('0xa')](_0xc816e0);this['view'][_0x3220('0x19')][_0x3220('0x2c')](),this['view']['class']='',this[_0x3220('0x5')]=null;}[_0x3220('0x3b')](_0x456072,_0x467621){_0x467621||(_0x467621=_0x456072[_0x3220('0x3f')]);const _0x1f5e25=new _0x31561d(this[_0x3220('0xb')][_0x3220('0x2b')]);this[_0x3220('0x18')][_0x3220('0x21')](_0x1f5e25,_0x456072),this[_0x3220('0x3d')]['set'](_0x456072,_0x1f5e25),_0x1f5e25[_0x3220('0x40')][_0x3220('0x11')](_0x467621),this[_0x3220('0x36')](_0x1f5e25),this['listenTo'](_0x456072[_0x3220('0x3f')],_0x3220('0x2e'),()=>{const _0x421033=this[_0x3220('0x42')](_0x1f5e25);_0x1f5e25[_0x3220('0x22')]!=_0x421033&&(_0x1f5e25[_0x3220('0x22')]=_0x421033,this[_0x3220('0x12')](_0x1f5e25,_0x421033));}),this[_0x3220('0x8')](_0x1f5e25,_0x3220('0x27'),_0x5cfa75(()=>{if(!_0x1f5e25[_0x3220('0x40')][_0x3220('0x3a')])return;const _0x594e79=this[_0x3220('0x4')](_0x1f5e25);if(!_0x594e79)return;const _0x2724dc=this[_0x3220('0x18')][_0x3220('0x32')](_0x594e79),_0x56c4a4=this['_activeAnnotation'];_0x56c4a4&&_0x56c4a4===_0x2724dc?this[_0x3220('0x1e')](_0x594e79,_0x1f5e25):this[_0x3220('0x1c')](_0x1f5e25,_0x594e79);},0xa,{'leading':!0x1})),this[_0x3220('0x8')](_0x1f5e25,_0x3220('0x1a'),_0x5cfa75(()=>{if(!_0x1f5e25['content'][_0x3220('0x3a')])return;const _0x3f44ee=this[_0x3220('0x45')](_0x1f5e25);if(!_0x3f44ee)return;const _0x26d6d1=this[_0x3220('0x18')][_0x3220('0x32')](_0x3f44ee),_0x28d4ce=this[_0x3220('0xb')][_0x3220('0x14')][_0x3220('0x32')](_0x3220('0x7')),_0x5c2cfb=this['_activeAnnotation'];_0x5c2cfb&&_0x5c2cfb===_0x26d6d1&&_0x28d4ce?(this[_0x3220('0x1c')](_0x3f44ee,_0x1f5e25),this[_0x3220('0x1e')](_0x1f5e25,_0x3f44ee)):_0x5c2cfb&&_0x5c2cfb===_0x26d6d1?this['_alignBeforeItem'](_0x3f44ee,_0x1f5e25):this[_0x3220('0x1e')](_0x1f5e25,_0x3f44ee);},0xa,{'leading':!0x1}));const _0x283c35=this[_0x3220('0x4')](_0x1f5e25);if(_0x283c35)this[_0x3220('0x1e')](_0x283c35,_0x1f5e25)||this['_alignToTargetRect'](_0x1f5e25);else this[_0x3220('0x36')](_0x1f5e25);return this['_updateLastItem'](),this[_0x3220('0x3f')]['list'][_0x3220('0x11')](_0x1f5e25),_0x1f5e25;}[_0x3220('0x10')](_0x1a1496){return this[_0x3220('0x3d')][_0x3220('0x32')](_0x1a1496);}['destroy'](){this[_0x3220('0x3f')][_0x3220('0x16')]();}[_0x3220('0xa')](_0x69917){const _0x4b50aa=this['getSidebarItemView'](_0x69917);this[_0x3220('0x29')](_0x4b50aa),this[_0x3220('0x29')](_0x69917['view']),_0x4b50aa[_0x3220('0x16')](),this[_0x3220('0x3d')][_0x3220('0x41')](_0x69917),this[_0x3220('0x18')][_0x3220('0x41')](_0x4b50aa);}[_0x3220('0x17')](){const _0x46fbd2=new _0x36d231(this[_0x3220('0xb')][_0x3220('0x2b')]);return _0x46fbd2['render'](),this['on'](_0x3220('0xf'),(_0x39761d,_0x2127ce,_0x2c0c1f,_0x41d1b6)=>{_0x41d1b6&&_0x46fbd2['unbind'](_0x3220('0x39')),_0x2c0c1f?_0x46fbd2[_0x3220('0x13')](_0x3220('0x39'))['to'](_0x2c0c1f,_0x3220('0x44')):_0x46fbd2[_0x3220('0x39')]=null;}),_0x46fbd2;}[_0x3220('0x3c')](){this['_lastItem']=this[_0x3220('0x10')](this['_annotations'][_0x3220('0x9')]);}[_0x3220('0x4')](_0x17337f){const _0xbc4708=this[_0x3220('0x18')][_0x3220('0x32')](_0x17337f),_0x137844=this[_0x3220('0x3e')][_0x3220('0x32')](this[_0x3220('0x3e')][_0x3220('0x43')](_0xbc4708)-0x1);return _0x137844&&this['getSidebarItemView'](_0x137844);}['_getItemAfter'](_0x3d095d){const _0x32e84e=this[_0x3220('0x18')][_0x3220('0x32')](_0x3d095d),_0x4292b9=this[_0x3220('0x3e')][_0x3220('0x32')](this[_0x3220('0x3e')][_0x3220('0x43')](_0x32e84e)+0x1);return _0x4292b9&&this[_0x3220('0x10')](_0x4292b9);}['_alignBeforeItem'](_0x318bfb,_0x27608e){_0x318bfb[_0x3220('0x1')]();const _0x560500=C(_0x27608e['bottom']+this[_0x3220('0x38')],_0x318bfb[_0x3220('0x0')]);return!!_0x560500&&(this[_0x3220('0x12')](_0x27608e,_0x27608e[_0x3220('0x0')]-_0x560500),!0x0);}['_alignAfterItem'](_0xf7943a,_0x3dfce2){_0xf7943a[_0x3220('0x1')]();const _0x539fea=C(_0xf7943a[_0x3220('0x44')]+this['_spaceBetweenItems'],_0x3dfce2[_0x3220('0x0')]);return!!_0x539fea&&(this[_0x3220('0x12')](_0x3dfce2,_0x3dfce2[_0x3220('0x0')]+_0x539fea,!0x1),!0x0);}[_0x3220('0x36')](_0x131abd){const _0xbc1962=this['_sidebarItemViewToAnnotation'][_0x3220('0x32')](_0x131abd);if(!_0xbc1962||!_0xbc1962[_0x3220('0xd')])return;const _0x72ecc3=this[_0x3220('0x42')](_0x131abd);this[_0x3220('0x12')](_0x131abd,_0x72ecc3);}[_0x3220('0x42')](_0x30fb82){const _0x131b9f=this[_0x3220('0x18')][_0x3220('0x32')](_0x30fb82);if(null===_0x131b9f[_0x3220('0x33')])return 0x0;if(_0x131b9f['target']instanceof _0x4fa7f3)return _0x131b9f[_0x3220('0x33')][_0x3220('0x0')];{const _0x46cdd8=new _0x4fa7f3(this['view'][_0x3220('0x26')])['top'];return _0x131b9f[_0x3220('0x33')][_0x3220('0x0')]-_0x46cdd8;}}[_0x3220('0x12')](_0x1e22d2,_0x31f3ff,_0x5119a5=this[_0x3220('0xb')]['config'][_0x3220('0x32')](_0x3220('0x7'))){_0x5119a5&&(_0x31f3ff=Math['max'](_0x31f3ff,this[_0x3220('0x35')](_0x1e22d2))),_0x1e22d2[_0x3220('0x0')]=_0x31f3ff;}[_0x3220('0x35')](_0x17b881){let _0x14e1c5=this['_getItemBefore'](_0x17b881),_0x4e227d=0x0;for(;_0x14e1c5;)_0x14e1c5[_0x3220('0x1')](),_0x4e227d+=this['_spaceBetweenItems']+_0x14e1c5[_0x3220('0x37')],_0x14e1c5=this[_0x3220('0x4')](_0x14e1c5);return _0x4e227d;}}function C(_0x754e11,_0x19ea72){return Math[_0x3220('0x23')](_0x754e11-_0x19ea72,0x0);}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x135b=['annotationType','add','ck-annotation-counter__badge--edit-mode','bind','children','ck-annotation-counter__badge--','ck-annotation-counter','icon','counterView','isDirty','ck-annotation-counter__badge','set','number'];(function(_0x519ce,_0x135b7c){const _0xdfd35=function(_0x482f09){while(--_0x482f09){_0x519ce['push'](_0x519ce['shift']());}};_0xdfd35(++_0x135b7c);}(_0x135b,0x65));const _0xdfd3=function(_0x519ce,_0x135b7c){_0x519ce=_0x519ce-0x0;let _0xdfd35=_0x135b[_0x519ce];return _0xdfd35;};import{ButtonView as _0x1e4576,View as _0x2d718f}from'ckeditor5/src/ui';import _0x360a61 from'../../../theme/icons/add-comment.svg';export default class B extends _0x1e4576{constructor(_0x4056f8){super(_0x4056f8);const _0x48770b=this['bindTemplate'];this[_0xdfd3('0x1')](_0xdfd3('0xc'),!0x1),this[_0xdfd3('0x1')](_0xdfd3('0x2'),0x0),this[_0xdfd3('0x6')]('_badge')['to'](this,_0xdfd3('0xc'),this,_0xdfd3('0x2'),(_0x1d5d67,_0x55524e)=>_0x1d5d67?'...':_0x55524e),this[_0xdfd3('0x1')](_0xdfd3('0x3'),''),this[_0xdfd3('0xa')]=_0x360a61,this['extendTemplate']({'attributes':{'class':[_0xdfd3('0x9')]}}),this[_0xdfd3('0xb')]=new _0x2d718f(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':[_0xdfd3('0x0'),_0x48770b['to'](_0xdfd3('0x3'),_0x3486d2=>_0xdfd3('0x8')+_0x3486d2),_0x48770b['if'](_0xdfd3('0xc'),_0xdfd3('0x5'))]},'children':[{'text':_0x48770b['to']('_badge')}]}),this[_0xdfd3('0x7')][_0xdfd3('0x4')](this[_0xdfd3('0xb')]);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e5a=['focusTracker','mainView','clientHeight','div','render','_mutationObserver','add','isActive','focus','detach','bindTemplate','content','element','ck-rounded-corners','keystrokes','listenTo','attach','ck-annotation-wrapper','type','height','Esc','createCollection','isDirty','_updateHeight','destroy','setTemplate','set','fire'];(function(_0x5eb722,_0x2e5a13){const _0x5adf90=function(_0x31752f){while(--_0x31752f){_0x5eb722['push'](_0x5eb722['shift']());}};_0x5adf90(++_0x2e5a13);}(_0x2e5a,0x1f2));const _0x5adf=function(_0x5eb722,_0x2e5a13){_0x5eb722=_0x5eb722-0x0;let _0x5adf90=_0x2e5a[_0x5eb722];return _0x5adf90;};import{View as _0x52f669}from'ckeditor5/src/ui';import{FocusTracker as _0x348e70,KeystrokeHandler as _0x3a5703,uid as _0x5b956f}from'ckeditor5/src/utils';import _0x5ba1b from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class it extends _0x52f669{constructor(_0x597702,_0x55c8fb){super(_0x597702),this['id']=_0x5b956f(),this['focusTracker']=new _0x348e70(),this[_0x5adf('0x14')]=new _0x3a5703(),this[_0x5adf('0x14')][_0x5adf('0x4')](_0x5adf('0x1a'),(_0x4608cb,_0x1a190f)=>this[_0x5adf('0x5')](_0x5adf('0x1a'),_0x1a190f)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x5adf('0x4')](_0x5adf('0x19'),0x0),this[_0x5adf('0x4')](_0x5adf('0xd'),!0x1),this[_0x5adf('0x4')](_0x5adf('0x0'),!0x1),this[_0x5adf('0x4')]('length',0x0),this[_0x5adf('0x4')](_0x5adf('0x18'),''),this[_0x5adf('0xb')]=_0x5ba1b(()=>this[_0x5adf('0x1')]()),this[_0x5adf('0x11')]=this[_0x5adf('0x1b')](),this['content'][_0x5adf('0xc')](_0x55c8fb),this[_0x5adf('0x7')]=_0x55c8fb;const _0x1d4079=this[_0x5adf('0x10')];this[_0x5adf('0x3')]({'tag':_0x5adf('0x9'),'attributes':{'class':['ck',_0x5adf('0x17'),_0x5adf('0x13'),_0x1d4079['if'](_0x5adf('0xd'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x5adf('0x11')]});}[_0x5adf('0xa')](){super['render'](),this[_0x5adf('0x6')]['add'](this[_0x5adf('0x12')]),this[_0x5adf('0x14')][_0x5adf('0x15')](this['element']),this[_0x5adf('0xb')][_0x5adf('0x16')](this[_0x5adf('0x12')]);}[_0x5adf('0x2')](){this[_0x5adf('0x11')]['clear'](),this[_0x5adf('0x14')][_0x5adf('0x2')](),this['focusTracker']['destroy'](),this[_0x5adf('0xb')][_0x5adf('0xf')](),super[_0x5adf('0x2')]();}[_0x5adf('0xe')](){this[_0x5adf('0x12')][_0x5adf('0xe')]();}[_0x5adf('0x1')](){const _0x4e5ec7=this[_0x5adf('0x12')][_0x5adf('0x8')];_0x4e5ec7&&(this[_0x5adf('0x19')]=_0x4e5ec7);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d9f=['_mutationObserver','top','bind','set','setTemplate','bottom','render','element','height','content','bindTemplate','createCollection','updateHeight','ck-sidebar-item','destroy','isAnimationDisabled','clientHeight','detach','attach','_targetTop'];(function(_0x1c3a0b,_0x5d9f57){const _0x189dd0=function(_0x4d06b7){while(--_0x4d06b7){_0x1c3a0b['push'](_0x1c3a0b['shift']());}};_0x189dd0(++_0x5d9f57);}(_0x5d9f,0x6b));const _0x189d=function(_0x1c3a0b,_0x5d9f57){_0x1c3a0b=_0x1c3a0b-0x0;let _0x189dd0=_0x5d9f[_0x1c3a0b];return _0x189dd0;};import{View as _0x5a04fc}from'ckeditor5/src/ui';import{toUnit as _0x28f1b0}from'ckeditor5/src/utils';import _0x40690c from'../../utils/createmutationobserver';const gt=_0x28f1b0('px');export default class V extends _0x5a04fc{constructor(_0x4fef88){super(_0x4fef88),this['set']('top'),this[_0x189d('0x10')]('height',0x0),this[_0x189d('0xf')](_0x189d('0x12'))['to'](this,_0x189d('0xe'),this,_0x189d('0x1'),(_0x160580,_0xd3467f)=>(_0x160580||0x0)+_0xd3467f),this[_0x189d('0x10')](_0x189d('0x8'),!0x1),this[_0x189d('0xd')]=_0x40690c(()=>this[_0x189d('0x5')]()),this[_0x189d('0xc')]=null,this[_0x189d('0x2')]=this[_0x189d('0x4')]();const _0x42917e=this[_0x189d('0x3')];this[_0x189d('0x11')]({'tag':'div','attributes':{'class':[_0x189d('0x6'),_0x42917e['to'](_0x189d('0x8'),_0x2f2292=>_0x2f2292?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x42917e['to'](_0x189d('0xe'),gt)}},'children':this[_0x189d('0x2')]});}['render'](){super[_0x189d('0x13')](),this[_0x189d('0xd')][_0x189d('0xb')](this[_0x189d('0x0')]);}[_0x189d('0x5')](){const _0x83fd3d=this['element'][_0x189d('0x9')];_0x83fd3d&&(this[_0x189d('0x1')]=_0x83fd3d);}[_0x189d('0x7')](){this['content']['clear'](),this[_0x189d('0xd')][_0x189d('0xa')](),super[_0x189d('0x7')]();}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30c3=['set','class','setTemplate','ck-reset','div','list','createCollection','bindTemplate','minHeight'];(function(_0xed5014,_0x30c38f){const _0x178aa0=function(_0x3ea671){while(--_0x3ea671){_0xed5014['push'](_0xed5014['shift']());}};_0x178aa0(++_0x30c38f);}(_0x30c3,0xa2));const _0x178a=function(_0xed5014,_0x30c38f){_0xed5014=_0xed5014-0x0;let _0x178aa0=_0x30c3[_0xed5014];return _0x178aa0;};import{View as _0x278cfa}from'ckeditor5/src/ui';import{toUnit as _0x6dd516}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x6dd516('px');export default class T extends _0x278cfa{constructor(_0x54db50){super(_0x54db50);const _0x590762=this[_0x178a('0x7')];this['set'](_0x178a('0x8'),0x0),this[_0x178a('0x0')]('class',''),this['list']=this[_0x178a('0x6')](),this[_0x178a('0x2')]({'tag':_0x178a('0x4'),'attributes':{'class':['ck','ck-sidebar',_0x178a('0x3'),_0x590762['to'](_0x178a('0x1'))],'style':{'minHeight':_0x590762['to'](_0x178a('0x8'),_0x1056b2=>_0x1056b2?gt(_0x1056b2+0xa):null)}},'children':this[_0x178a('0x5')]});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x169e=['widesidebar-detach-not-attached','activeAnnotation','off','removeEventListener','refresh','stopListening','_annotations','_destroyEditorAnnotationsIntegration','_editorAnnotations','isAttached','ready','set','_integrateWithEditorAnnotations','setActiveAnnotation','requires','_attachToContainer','EditorAnnotations','hasDomSelection','add','register','_throttledPositioningRefresh','WideSidebar','addEventListener','high','pluginName','container','plugins','resize','widesidebar-attach-already-attached','wideSidebar','_detachFromContainer','_activeAnnotation','change:container','stop','context','uiUpdate','listenTo','remove','editors','refreshPositioning','has','blur','switchTo','getOrderedSelectedAnnotations','get','ck-sidebar--wide','detach','updateTargetRect','attach'];(function(_0x5542e7,_0x169e45){const _0x31236d=function(_0x434294){while(--_0x434294){_0x5542e7['push'](_0x5542e7['shift']());}};_0x31236d(++_0x169e45);}(_0x169e,0x1ca));const _0x3123=function(_0x5542e7,_0x169e45){_0x5542e7=_0x5542e7-0x0;let _0x31236d=_0x169e[_0x5542e7];return _0x31236d;};import{ContextPlugin as _0x20b92f}from'ckeditor5/src/core';import _0x2c81a3 from'./annotationsuis';import _0x6f2571 from'./sidebar';import{CKEditorError as _0x7fcb2c,Collection as _0x4d7e75}from'ckeditor5/src/utils';import{throttle as _0x1c865e}from'lodash-es';export default class i extends _0x20b92f{static get[_0x3123('0x2e')](){return[_0x6f2571,_0x2c81a3];}static get[_0x3123('0x7')](){return _0x3123('0x4');}constructor(_0x37a96b){super(_0x37a96b),this[_0x3123('0x29')]=!0x1,this[_0x3123('0x2b')](_0x3123('0x21'),null),this[_0x3123('0x26')]=null,this[_0x3123('0x28')]=new _0x4d7e75(),this[_0x3123('0x3')]=_0x1c865e(()=>{this[_0x3123('0x26')][_0x3123('0x16')]();},0x190,{'leading':!0x1});}['init'](){const _0xdd4cc9=this[_0x3123('0x11')][_0x3123('0x9')][_0x3123('0x1b')](_0x2c81a3),_0x34d007=this[_0x3123('0x11')][_0x3123('0x9')][_0x3123('0x1b')](_0x6f2571);_0xdd4cc9[_0x3123('0x2')]('wideSidebar',this),_0x34d007[_0x3123('0x8')]&&_0xdd4cc9[_0x3123('0x19')](_0x3123('0xc'));}[_0x3123('0x2d')](_0x21d5ec){if(_0x21d5ec===this[_0x3123('0x21')])return;const _0x511109=this['context'][_0x3123('0x9')]['get'](_0x6f2571);_0x511109[_0x3123('0xe')]=_0x21d5ec;const _0x2ac4cb=this[_0x3123('0x21')];this[_0x3123('0x21')]=_0x21d5ec,_0x511109[_0x3123('0x24')]({'blurredAnnotation':_0x2ac4cb,'activatedAnnotation':this[_0x3123('0x21')]});}[_0x3123('0x1f')](_0x2f4f2b){this['_annotations']=_0x2f4f2b;const _0xbe80cb=this[_0x3123('0x11')]['plugins'][_0x3123('0x1b')]('Sidebar');if(_0xbe80cb[_0x3123('0x26')]=_0x2f4f2b,this[_0x3123('0x29')])throw new _0x7fcb2c(_0x3123('0xb'),this);this[_0x3123('0x29')]=!0x0,this[_0x3123('0x13')](_0xbe80cb,'set:container',()=>{this[_0x3123('0x1d')](),this[_0x3123('0x13')](_0xbe80cb,_0x3123('0xf'),_0x30220b=>{_0x30220b[_0x3123('0x22')](),this['attach'](_0x2f4f2b);});}),_0xbe80cb[_0x3123('0x2f')]({'viewClass':_0x3123('0x1c')});const _0x2490ed=_0x469c10=>{_0x469c10[_0x3123('0x1e')](),_0xbe80cb['addAnnotation'](_0x469c10);};for(const _0x186a58 of _0x2f4f2b)_0x2490ed(_0x186a58);this[_0x3123('0x13')](_0x2f4f2b,_0x3123('0x1'),(_0x34f142,_0x56497c)=>{_0x2490ed(_0x56497c);}),this[_0x3123('0x13')](_0x2f4f2b,_0x3123('0x14'),(_0x2cec4f,_0x50851b,_0x2a4be8)=>{_0xbe80cb['rearrange']({'removedAnnotation':_0x50851b,'previousAnnotation':_0x2f4f2b['get'](_0x2a4be8-0x1),'nextAnnotation':_0x2f4f2b['get'](_0x2a4be8+0x1)}),_0x50851b===this[_0x3123('0x21')]&&this[_0x3123('0x2d')](null);},{'priority':_0x3123('0x6')}),this[_0x3123('0x13')](_0x2f4f2b,'focus',(_0x1446d3,_0x4792ac)=>{this['setActiveAnnotation'](_0x4792ac);}),this[_0x3123('0x13')](_0x2f4f2b,_0x3123('0x18'),()=>{this[_0x3123('0x2d')](null);});const _0x3f4860=this['context'][_0x3123('0x15')]?this[_0x3123('0x11')][_0x3123('0x15')]:new _0x4d7e75([this[_0x3123('0x11')]]);for(const _0x5881ec of _0x3f4860)this[_0x3123('0x2c')](_0x5881ec);this[_0x3123('0x13')](_0x3f4860,_0x3123('0x1'),(_0x16d712,_0x546826)=>{this[_0x3123('0x13')](_0x546826,_0x3123('0x2a'),()=>{this[_0x3123('0x2c')](_0x546826);});}),this[_0x3123('0x13')](_0x3f4860,_0x3123('0x14'),(_0x5abde6,_0x208097)=>{_0x208097[_0x3123('0x9')][_0x3123('0x17')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x208097[_0x3123('0x9')]['get'](_0x3123('0x30')));}),window[_0x3123('0x5')](_0x3123('0xa'),this[_0x3123('0x3')]),this['_annotations'][_0x3123('0x16')]();}[_0x3123('0x1d')](){if(!this['isAttached'])throw new _0x7fcb2c(_0x3123('0x20'),this);this[_0x3123('0x2d')](null);const _0x5061db=this[_0x3123('0x11')][_0x3123('0x9')]['get'](_0x6f2571);_0x5061db[_0x3123('0xd')](this[_0x3123('0x26')]),this[_0x3123('0x25')](_0x5061db),this[_0x3123('0x25')](this[_0x3123('0x26')]),this[_0x3123('0x25')](this['context'][_0x3123('0x15')]);for(const _0x11105f of Array['from'](this[_0x3123('0x28')]))this[_0x3123('0x27')](_0x11105f);window[_0x3123('0x23')](_0x3123('0xa'),this['_throttledPositioningRefresh']),this[_0x3123('0x3')]['cancel'](),this['activeAnnotation']=null,this[_0x3123('0x29')]=!0x1;}['destroy'](){this['isAttached']&&this[_0x3123('0x1d')]();}[_0x3123('0x2c')](_0x238c68){const _0xc1eb75=_0x238c68[_0x3123('0x9')][_0x3123('0x1b')](_0x3123('0x30'));if(!_0xc1eb75)return;const _0x5affe6=()=>{const _0x118e7c=_0xc1eb75[_0x3123('0x1a')]({'annotations':this[_0x3123('0x26')],'activeAnnotation':this[_0x3123('0x21')]});this[_0x3123('0x2d')](_0x118e7c[0x0]||null);};this[_0x3123('0x13')](_0xc1eb75,_0x3123('0x24'),_0x5affe6),this[_0x3123('0x13')](_0xc1eb75,_0x3123('0x18'),(_0x45576e,{isAnnotationTracked:_0x14f3c1})=>{this[_0x3123('0x21')]&&_0x14f3c1(this[_0x3123('0x21')])&&this['setActiveAnnotation'](null);}),this[_0x3123('0x13')](_0xc1eb75,_0x3123('0x12'),()=>{this[_0x3123('0x26')]['refreshPositioning']();}),this[_0x3123('0x13')](this[_0x3123('0x26')],'blur',_0x12a7c5=>{_0xc1eb75[_0x3123('0x0')]()&&(_0x5affe6(),_0x12a7c5[_0x3123('0x10')]());},{'priority':_0x3123('0x6')}),this['_editorAnnotations'][_0x3123('0x1')](_0xc1eb75);}[_0x3123('0x27')](_0x3d355d){_0x3d355d&&(this[_0x3123('0x25')](_0x3d355d),this[_0x3123('0x28')]['remove'](_0x3d355d));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1407=['_trimToContent','substr','document','backward','comment:','createRange','getLastMatchingPosition','selection','getItems','model','push','_itemIsContent','_hasContent','addMarker','end','isObject','refresh','tableCell','schema','execute','editor','element','getRanges','isEnabled'];(function(_0x483f47,_0x140754){const _0x5486e3=function(_0x11eb09){while(--_0x11eb09){_0x483f47['push'](_0x483f47['shift']());}};_0x5486e3(++_0x140754);}(_0x1407,0x193));const _0x5486=function(_0x483f47,_0x140754){_0x483f47=_0x483f47-0x0;let _0x5486e3=_0x1407[_0x483f47];return _0x5486e3;};import{Command as _0x525d39}from'ckeditor5/src/core';import{uid as _0x44c44c}from'ckeditor5/src/utils';export default class j extends _0x525d39{[_0x5486('0x15')](){const _0x4c7d96=this[_0x5486('0x1')]['model'][_0x5486('0x7')][_0x5486('0xc')];for(const _0x3fcafa of _0x4c7d96[_0x5486('0x3')]())if(this['_hasContent'](_0x3fcafa))return void(this[_0x5486('0x4')]=!0x0);this[_0x5486('0x4')]=!0x1;}[_0x5486('0x0')]({threadId:_0x4fc6c6=_0x44c44c()}={}){const _0x241e53=this[_0x5486('0x1')][_0x5486('0xe')],_0x5e105e=[];for(const _0x26baba of _0x241e53[_0x5486('0x7')][_0x5486('0xc')]['getRanges']())this[_0x5486('0x11')](_0x26baba)&&_0x5e105e[_0x5486('0xf')](this[_0x5486('0x5')](_0x26baba));_0x241e53['change'](_0xa375c5=>{for(const _0x54a098 of _0x5e105e){const _0x4bbbf1=_0x44c44c()[_0x5486('0x6')](0x1,0x5),_0xbdba4d=_0x5486('0x9')+_0x4fc6c6+':'+_0x4bbbf1;_0xa375c5[_0x5486('0x12')](_0xbdba4d,{'range':_0x54a098,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x5486('0x11')](_0x14df8f){for(const _0x177d72 of _0x14df8f[_0x5486('0xd')]())if(this[_0x5486('0x10')](_0x177d72))return!0x0;return!0x1;}['_itemIsContent'](_0xff764f){return _0xff764f['is']('textProxy')||this[_0x5486('0x1')][_0x5486('0xe')][_0x5486('0x17')][_0x5486('0x14')](_0xff764f)&&!_0xff764f['is'](_0x5486('0x2'),_0x5486('0x16'));}[_0x5486('0x5')](_0x4f214d){const _0x58b78f=_0x22c560=>!this[_0x5486('0x10')](_0x22c560['item']),_0x2432c0=_0x4f214d['start']['getLastMatchingPosition'](_0x58b78f),_0x5aa563=_0x4f214d[_0x5486('0x13')][_0x5486('0xb')](_0x58b78f,{'direction':_0x5486('0x8')});return this[_0x5486('0x1')][_0x5486('0xe')][_0x5486('0xa')](_0x2432c0,_0x5aa563);}}
|