@ckeditor/ckeditor5-comments 37.0.1 → 38.0.0-rc.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 +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +5 -0
- package/lang/contexts.json +2 -2
- package/lang/translations/af.po +5 -5
- package/lang/translations/ar.po +5 -5
- package/lang/translations/bg.po +5 -5
- package/lang/translations/bn.po +5 -5
- package/lang/translations/bs.po +4 -4
- package/lang/translations/ca.po +5 -5
- package/lang/translations/cs.po +5 -5
- package/lang/translations/da.po +5 -5
- package/lang/translations/de-ch.po +5 -5
- package/lang/translations/de.po +5 -5
- package/lang/translations/el.po +5 -5
- package/lang/translations/en-au.po +16 -16
- package/lang/translations/en.po +4 -4
- package/lang/translations/es-co.po +5 -5
- package/lang/translations/es.po +5 -5
- package/lang/translations/et.po +5 -5
- package/lang/translations/fa.po +5 -5
- package/lang/translations/fi.po +5 -5
- package/lang/translations/fr.po +5 -5
- package/lang/translations/gl.po +5 -5
- package/lang/translations/he.po +5 -5
- package/lang/translations/hi.po +5 -5
- package/lang/translations/hr.po +16 -16
- package/lang/translations/hu.po +5 -5
- package/lang/translations/id.po +5 -5
- package/lang/translations/it.po +5 -5
- package/lang/translations/ja.po +5 -5
- package/lang/translations/jv.po +5 -5
- package/lang/translations/ko.po +5 -5
- package/lang/translations/lt.po +5 -5
- package/lang/translations/lv.po +5 -5
- package/lang/translations/ms.po +5 -5
- package/lang/translations/nl.po +5 -5
- package/lang/translations/no.po +5 -5
- package/lang/translations/pl.po +5 -5
- package/lang/translations/pt-br.po +5 -5
- package/lang/translations/pt.po +5 -5
- package/lang/translations/ro.po +5 -5
- package/lang/translations/ru.po +5 -5
- package/lang/translations/sk.po +5 -5
- package/lang/translations/sr-latn.po +12 -12
- package/lang/translations/sr.po +12 -12
- package/lang/translations/sv.po +5 -5
- package/lang/translations/th.po +5 -5
- package/lang/translations/tk.po +5 -5
- package/lang/translations/tr.po +5 -5
- package/lang/translations/tt.po +4 -4
- package/lang/translations/ug.po +5 -5
- package/lang/translations/uk.po +5 -5
- package/lang/translations/ur.po +5 -5
- package/lang/translations/vi.po +5 -5
- package/lang/translations/zh-cn.po +5 -5
- package/lang/translations/zh.po +5 -5
- 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/augmentation.d.ts +2 -8
- 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.d.ts +87 -12
- 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.d.ts +6 -0
- 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.d.ts +9 -4
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +15 -7
- 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/theme/comment.css +12 -3
- package/theme/commentinput.css +8 -6
- package/theme/commentsarchive.css +10 -2
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15fa=['_target','mainView','length','clear','filter','_assertCorrectTarget','isVisible','focusableElements','refreshVisibility','view','add','isActive','_getNormalizedTarget','item','getClientRects','nodeType','render','object','targetRect','annotation-invalid-target','_type','stopListening','innerView','offsetParent','element','target','type'];(function(_0x46477f,_0x15fa9e){const _0x2c0268=function(_0x204c6e){while(--_0x204c6e){_0x46477f['push'](_0x46477f['shift']());}};_0x2c0268(++_0x15fa9e);}(_0x15fa,0x18b));const _0x2c02=function(_0x46477f,_0x15fa9e){_0x46477f=_0x46477f-0x0;let _0x2c0268=_0x15fa[_0x46477f];return _0x2c0268;};import{CKEditorError as _0x287b82,Rect as _0x63972d,Collection as _0x30c179,ObservableMixin as _0x3c7867}from'ckeditor5/src/utils';export default class d extends _0x3c7867(){constructor({view:_0x290943,target:_0x523fe2,type:_0x25d98b,isVisible:_0x59031f=!0x0}){super(),this[_0x2c02('0x13')]=_0x290943,this[_0x2c02('0x13')][_0x2c02('0x7')]||this[_0x2c02('0x13')][_0x2c02('0x1a')](),this['_type']=_0x25d98b,this[_0x2c02('0xa')]=_0x523fe2,d[_0x2c02('0xf')](this[_0x2c02('0x16')]()),this[_0x2c02('0x11')]=new _0x30c179([this[_0x2c02('0x13')][_0x2c02('0x7')]],{'idProperty':'_id'}),this[_0x2c02('0x11')]['on']('add',(_0x4aa827,_0x22a57d)=>{this['view']['focusTracker'][_0x2c02('0x14')](_0x22a57d);}),this[_0x2c02('0x11')]['on']('remove',(_0x583825,_0x1ff195)=>{this[_0x2c02('0x13')]['focusTracker']['remove'](_0x1ff195);}),this['set'](_0x2c02('0x10'),_0x59031f);}get[_0x2c02('0x9')](){return'function'==typeof this['_type']?this[_0x2c02('0x3')]():this[_0x2c02('0x3')];}get[_0x2c02('0x5')](){return this[_0x2c02('0x13')][_0x2c02('0xb')];}get['target'](){const _0x36d207=this['_getNormalizedTarget']();return d[_0x2c02('0xf')](_0x36d207),_0x36d207;}get[_0x2c02('0x1')](){const _0x110d30=this[_0x2c02('0x8')];if(null===_0x110d30)return null;if(_0x110d30 instanceof _0x63972d)return _0x110d30;const _0x49c8f6=_0x110d30[_0x2c02('0xe')](_0x4c39d4=>function(_0x17370e){const _0x474e6c=_0x17370e[_0x2c02('0x6')];if(_0x474e6c)return!0x0;const _0x6124ba=_0x17370e[_0x2c02('0x18')]()[_0x2c02('0x17')](0x0);return!!_0x6124ba;}(_0x4c39d4));return 0x0===_0x49c8f6[_0x2c02('0xc')]?null:new _0x63972d(_0x49c8f6[0x0]['getClientRects']()['item'](0x0));}get[_0x2c02('0x15')](){return this['view']['isActive'];}set[_0x2c02('0x15')](_0x4998c2){this['view'][_0x2c02('0x15')]=_0x4998c2,this[_0x2c02('0x13')][_0x2c02('0xb')][_0x2c02('0x15')]=_0x4998c2;}['updateTargetRect'](){this[_0x2c02('0x13')][_0x2c02('0x1')]=this[_0x2c02('0x1')];}['destroy'](){this['focusableElements'][_0x2c02('0x4')](),this[_0x2c02('0x11')][_0x2c02('0xd')](),this[_0x2c02('0x4')]();}[_0x2c02('0x12')](){this['isVisible']=!!this['targetRect'];}static[_0x2c02('0xf')](_0x3feac2){if(!(null===_0x3feac2||_0x3feac2 instanceof _0x63972d||Array['isArray'](_0x3feac2)&&_0x3feac2['every'](_0x22a763=>y(_0x22a763))))throw new _0x287b82(_0x2c02('0x2'),null,{'target':_0x3feac2});}[_0x2c02('0x16')](){const _0x37f7e0='function'==typeof this[_0x2c02('0xa')]?this['_target']():this[_0x2c02('0xa')];return y(_0x37f7e0)?[_0x37f7e0]:_0x37f7e0;}}function y(_0x228854){return null!==_0x228854&&_0x2c02('0x0')==typeof _0x228854&&'nodeType'in _0x228854&&0x1===_0x228854[_0x2c02('0x19')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a42=['getByInnerView','clear','_innerViewToAnnotation','fire','getByView','sort','isFocused','length','refreshPositioning','top','change:isFocused','targetRect','focusTracker','_focusTracker','stopListening','focus','delete','innerView','destroy','from','annotationcollection-not-existing-item','_sort','left','updateTargetRect','add','listenTo','annotationcollection-duplicated-item','get','_getOrderInContent','view','set','has','focusableElements','getIndex','remove','_viewToAnnotation'];(function(_0x565633,_0x2a42cc){const _0x5351bb=function(_0x11a638){while(--_0x11a638){_0x565633['push'](_0x565633['shift']());}};_0x5351bb(++_0x2a42cc);}(_0x2a42,0x1cf));const _0x5351=function(_0x565633,_0x2a42cc){_0x565633=_0x565633-0x0;let _0x5351bb=_0x2a42[_0x565633];return _0x5351bb;};import{CKEditorError as _0x1fe021,Collection as _0x1c8861,FocusTracker as _0x5c02cd}from'ckeditor5/src/utils';export default class x extends _0x1c8861{constructor(_0x39ff13=[]){super(),this[_0x5351('0x7')]=new Map(),this[_0x5351('0x4')]=new Map(),this[_0x5351('0x12')]=new _0x5c02cd(),this[_0x5351('0x12')]['on'](_0x5351('0xf'),(_0x25d84e,_0x258017,_0x3b2093)=>{_0x3b2093||this[_0x5351('0x8')]('blur');});for(const _0x286d63 of _0x39ff13)this[_0x5351('0x1d')](_0x286d63);}get['isFocused'](){return this[_0x5351('0x12')][_0x5351('0xb')];}[_0x5351('0x1d')](_0x5c705a){if(this[_0x5351('0x0')](_0x5c705a))throw new _0x1fe021(_0x5351('0x1f'),null);this[_0x5351('0x7')]['set'](_0x5c705a[_0x5351('0x16')],_0x5c705a),this[_0x5351('0x4')][_0x5351('0x23')](_0x5c705a['view'],_0x5c705a);for(const _0x344054 of _0x5c705a[_0x5351('0x1')])this[_0x5351('0x12')][_0x5351('0x1d')](_0x344054);this[_0x5351('0x1e')](_0x5c705a['focusableElements'],_0x5351('0x1d'),(_0x3a3c34,_0x12a47a)=>{this[_0x5351('0x12')][_0x5351('0x1d')](_0x12a47a);}),this[_0x5351('0x1e')](_0x5c705a[_0x5351('0x1')],_0x5351('0x3'),(_0x171abd,_0x576411)=>{this[_0x5351('0x12')][_0x5351('0x3')](_0x576411);}),this['listenTo'](_0x5c705a[_0x5351('0x22')][_0x5351('0x11')],'change:isFocused',(_0x259838,_0x56dc8c,_0x3f4ebc)=>{_0x3f4ebc&&this['fire'](_0x5351('0x14'),_0x5c705a);}),_0x5c705a[_0x5351('0x1c')]();const _0x19f910=this[_0x5351('0x21')](_0x5c705a[_0x5351('0x22')][_0x5351('0x10')]);return super[_0x5351('0x1d')](_0x5c705a,_0x19f910);}[_0x5351('0x3')](_0x1fa54b){if(!this[_0x5351('0x0')](_0x1fa54b))throw new _0x1fe021(_0x5351('0x19'),null);this[_0x5351('0x13')](_0x1fa54b[_0x5351('0x22')][_0x5351('0x11')]),this['stopListening'](_0x1fa54b[_0x5351('0x1')]);for(const _0xb4f7b1 of _0x1fa54b[_0x5351('0x1')])this[_0x5351('0x12')][_0x5351('0x3')](_0xb4f7b1);return this[_0x5351('0x4')][_0x5351('0x15')](_0x1fa54b[_0x5351('0x22')]),this[_0x5351('0x7')][_0x5351('0x15')](_0x1fa54b['innerView']),super[_0x5351('0x3')](_0x1fa54b);}[_0x5351('0x5')](_0x2c8bd8){return this[_0x5351('0x7')][_0x5351('0x20')](_0x2c8bd8);}[_0x5351('0x9')](_0x42188a){return this[_0x5351('0x4')][_0x5351('0x20')](_0x42188a);}[_0x5351('0x17')](){super[_0x5351('0x6')](),this[_0x5351('0x13')](),this[_0x5351('0x7')][_0x5351('0x6')](),this['_viewToAnnotation']['clear'](),this[_0x5351('0x12')]['destroy']();}[_0x5351('0xd')](){for(const _0x106f91 of this)_0x106f91[_0x5351('0x1c')]();this[_0x5351('0x1a')]();}['_sort'](){const _0x2dcf55=Array[_0x5351('0x18')](this)[_0x5351('0xa')]((_0x1eb9c0,_0x4fe523)=>v(_0x1eb9c0[_0x5351('0x22')][_0x5351('0x10')],_0x4fe523[_0x5351('0x22')][_0x5351('0x10')]));for(let _0x596f1d=_0x2dcf55[_0x5351('0xc')]-0x1;_0x596f1d>0x0;_0x596f1d--){const _0x49d3a3=_0x2dcf55[_0x596f1d];_0x596f1d!==this[_0x5351('0x2')](_0x49d3a3)&&(this[_0x5351('0x3')](_0x49d3a3),this['add'](_0x49d3a3));}}['_getOrderInContent'](_0xc41e14){let _0x168bdf=0x0;if(!_0xc41e14)return this['length'];for(const _0x4c3b27 of this){const _0x202f71=_0x4c3b27[_0x5351('0x22')][_0x5351('0x10')];if(_0x202f71){if(v(_0xc41e14,_0x202f71)<0x0)return _0x168bdf;_0x168bdf++;}}return _0x168bdf;}}export function bindAnnotationCollections({source:_0x34795c,target:_0x13b0f4,filter:_0x47e915}){for(const _0x203674 of _0x34795c)_0x47e915(_0x203674)&&_0x13b0f4[_0x5351('0x1d')](_0x203674);_0x13b0f4['listenTo'](_0x34795c,_0x5351('0x1d'),(_0x375f13,_0x33d10f)=>{_0x47e915(_0x33d10f)&&_0x13b0f4[_0x5351('0x1d')](_0x33d10f);}),_0x13b0f4['listenTo'](_0x34795c,'remove',(_0x28d5b4,_0x2e1c33)=>{_0x13b0f4['has'](_0x2e1c33)&&_0x13b0f4[_0x5351('0x3')](_0x2e1c33);});}function v(_0x987633,_0x30f350){if(null===_0x987633&&null===_0x30f350)return 0x0;if(null===_0x987633)return-0x1;if(null===_0x30f350)return 0x1;const _0x19fdbf=_0x987633[_0x5351('0xe')]-_0x30f350[_0x5351('0xe')];return 0x0==_0x19fdbf?_0x987633[_0x5351('0x1b')]-_0x30f350[_0x5351('0x1b')]:_0x19fdbf;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bdb=['listenTo','isVisible','activeAnnotations','stopListening','_visibleAnnotations','activate','getByInnerView','remove','_addActiveAnnotation','deactivateAll','_removeActiveAnnotation','has','delete','refreshVisibility','element','focusTracker','set','createAnnotationView','_activateAnnotation','change:isVisible','destroy','fire','_bindAnnotationsToVisibleAnnotations','createAnnotation','add','refreshPositioning','collection','source','view','pluginName'];(function(_0x1f84bf,_0x5bdb69){const _0x59b749=function(_0x31b686){while(--_0x31b686){_0x1f84bf['push'](_0x1f84bf['shift']());}};_0x59b749(++_0x5bdb69);}(_0x5bdb,0xe8));const _0x59b7=function(_0x1f84bf,_0x5bdb69){_0x1f84bf=_0x1f84bf-0x0;let _0x59b749=_0x5bdb[_0x1f84bf];return _0x59b749;};import{ContextPlugin as _0x50d61f}from'ckeditor5/src/core';import _0x48f2b6 from'./annotation';import _0x2c8c17 from'./annotationcollection';import _0x38efdc from'./view/annotationview';export default class b extends _0x50d61f{static get[_0x59b7('0x7')](){return'Annotations';}constructor(_0x1f1b43){super(_0x1f1b43),this[_0x59b7('0x4')]=new _0x2c8c17(),this[_0x59b7('0xc')]=new _0x2c8c17(),this[_0x59b7('0x18')](_0x59b7('0xa'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x59b7('0x2')](_0x2c89fc){this[_0x59b7('0x4')][_0x59b7('0x2')](_0x2c89fc);}[_0x59b7('0xf')](_0x4a301d){this[_0x59b7('0x4')][_0x59b7('0xf')](_0x4a301d),_0x4a301d['destroy']();}[_0x59b7('0x15')](){for(const _0x543df0 of this['collection'])_0x543df0[_0x59b7('0x15')]();}['refreshPositioning'](){this[_0x59b7('0xc')][_0x59b7('0x3')]();}[_0x59b7('0xe')](_0x30e454){return this['collection'][_0x59b7('0xe')](_0x30e454);}[_0x59b7('0x11')](){this[_0x59b7('0x1d')]('_deactivateAllAnnotations');}[_0x59b7('0x1c')](){for(const _0xafe822 of this[_0x59b7('0x4')])_0xafe822[_0x59b7('0x1c')]();this['_visibleAnnotations']['destroy'](),this[_0x59b7('0x4')][_0x59b7('0x1c')](),super['destroy']();}[_0x59b7('0xd')](_0x3ca581){this[_0x59b7('0x1d')](_0x59b7('0x1a'),_0x3ca581);}[_0x59b7('0x1')](_0x552f3e){return new _0x48f2b6(_0x552f3e);}[_0x59b7('0x19')](_0x29003b,_0x52cad6){return new _0x38efdc(_0x29003b,_0x52cad6);}[_0x59b7('0x10')](_0x5a5dc5){const _0xbef7f1=new Set(this[_0x59b7('0xa')]);_0xbef7f1[_0x59b7('0x2')](_0x5a5dc5),this[_0x59b7('0xa')]=_0xbef7f1;}[_0x59b7('0x12')](_0x4d637b){const _0x5ecf08=new Set(this[_0x59b7('0xa')]);_0x5ecf08[_0x59b7('0x14')](_0x4d637b),this[_0x59b7('0xa')]=_0x5ecf08;}[_0x59b7('0x0')](){const _0x450f9b=this[_0x59b7('0x4')],_0x5b8052=this['_visibleAnnotations'];function _0x97d7fd(_0x59426e){const _0x55bd92=_0x59426e[_0x59b7('0x5')];_0x55bd92[_0x59b7('0x9')]&&!_0x5b8052['has'](_0x55bd92)?_0x5b8052[_0x59b7('0x2')](_0x55bd92):!_0x55bd92['isVisible']&&_0x5b8052[_0x59b7('0x13')](_0x55bd92)&&_0x5b8052[_0x59b7('0xf')](_0x55bd92),_0x55bd92[_0x59b7('0x6')][_0x59b7('0x17')][_0x59b7('0xf')](_0x55bd92[_0x59b7('0x6')][_0x59b7('0x16')]),_0x55bd92[_0x59b7('0x6')][_0x59b7('0x17')][_0x59b7('0x2')](_0x55bd92[_0x59b7('0x6')][_0x59b7('0x16')]);}this[_0x59b7('0x8')](_0x450f9b,_0x59b7('0x2'),(_0x3e7cf0,_0x23fb40)=>{_0x23fb40[_0x59b7('0x9')]&&_0x5b8052['add'](_0x23fb40),this[_0x59b7('0x8')](_0x23fb40,_0x59b7('0x1b'),_0x97d7fd);}),this[_0x59b7('0x8')](_0x450f9b,_0x59b7('0xf'),(_0x91d4ec,_0x232453)=>{_0x5b8052[_0x59b7('0x13')](_0x232453)&&_0x5b8052[_0x59b7('0xf')](_0x232453),this[_0x59b7('0xb')](_0x232453,'change:isVisible',_0x97d7fd);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2085=['type','length','attach','_setSelectedAnnotations','find','annotationsuis-register-already-registered','deactivate','_visibleAnnotations','annotationsuis-annotation-mismatch','switchTo','push','_uisData','detach','annotationsuis-register-invalid-interface','from','filter','_removeActiveAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','destroy','context','delete','register','isActive','activeAnnotations','pluginName','AnnotationsUIs','listenTo','plugins','get','_activateAnnotation','function','activate','_addActiveAnnotation','set','collection','stopListening','has','_deactivateAllAnnotations','deactivateAll','setActiveAnnotation','requires','size','activeUIs','init','add','_uis','annotationsuis-missing-ui'];(function(_0x11747d,_0x2085cb){const _0x40e9db=function(_0x2adf7c){while(--_0x2adf7c){_0x11747d['push'](_0x11747d['shift']());}};_0x40e9db(++_0x2085cb);}(_0x2085,0xad));const _0x40e9=function(_0x11747d,_0x2085cb){_0x11747d=_0x11747d-0x0;let _0x40e9db=_0x2085[_0x11747d];return _0x40e9db;};import{ContextPlugin as _0x234370}from'ckeditor5/src/core';import{CKEditorError as _0x5b58f6}from'ckeditor5/src/utils';import _0x36165e,{bindAnnotationCollections as _0x24d852}from'./annotationcollection';import _0x309bea from'./annotations';export default class M extends _0x234370{static get[_0x40e9('0x8')](){return[_0x309bea];}static get[_0x40e9('0x27')](){return _0x40e9('0x28');}constructor(_0x1571f9){super(_0x1571f9),this[_0x40e9('0xa')]=new Set(),this['_uis']=new Map(),this[_0x40e9('0x1a')]=new Map();}[_0x40e9('0xb')](){const _0x1d3c1d=this['context'][_0x40e9('0x2a')][_0x40e9('0x2b')](_0x309bea);this['listenTo'](_0x1d3c1d,_0x40e9('0x2c'),(_0x1f7d0d,_0x229479)=>{for(const _0x55adfb of this['activeUIs']){const _0x2ac8f9=this['_uis'][_0x40e9('0x2b')](_0x55adfb);(0x0,this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x55adfb)['filter'])(_0x229479)&&_0x2ac8f9[_0x40e9('0x7')](_0x229479);}}),this[_0x40e9('0x29')](_0x1d3c1d,_0x40e9('0x5'),()=>{for(const _0x44eabc of this[_0x40e9('0xa')]){this['_uis'][_0x40e9('0x2b')](_0x44eabc)[_0x40e9('0x7')](null);}}),this[_0x40e9('0x29')](_0x1d3c1d[_0x40e9('0x16')],_0x40e9('0xc'),(_0x275b87,_0x37a86f)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x37a86f);});}['hasActive'](){return this[_0x40e9('0xa')][_0x40e9('0x9')]>0x0;}[_0x40e9('0x25')](_0x9ea674){return this[_0x40e9('0xa')]['has'](_0x9ea674);}[_0x40e9('0x2e')](_0x345cc3,_0x4b7ef9=()=>!0x0){const _0x347482=this[_0x40e9('0x22')][_0x40e9('0x2a')][_0x40e9('0x2b')](_0x309bea);if(!this[_0x40e9('0xd')][_0x40e9('0x4')](_0x345cc3))throw new _0x5b58f6('annotationsuis-missing-ui',this,{'uiName':_0x345cc3});this['isActive'](_0x345cc3)&&this['deactivate'](_0x345cc3),this['activeUIs'][_0x40e9('0xc')](_0x345cc3);const _0x80caaa=new _0x36165e(),_0x34a5ee=_0x347482['_visibleAnnotations'];_0x24d852({'source':_0x34a5ee,'target':_0x80caaa,'filter':_0x4b7ef9}),this[_0x40e9('0x1a')]['set'](_0x345cc3,{'collection':_0x80caaa,'filter':_0x4b7ef9});const _0x17d88b=this['_uis'][_0x40e9('0x2b')](_0x345cc3);_0x17d88b['attach'](_0x80caaa),this[_0x40e9('0x29')](_0x17d88b,'change:activeAnnotation',(_0x58ad59,_0x5ad956,_0x164488,_0x45ddc5)=>{_0x45ddc5&&_0x347482[_0x40e9('0x1f')](_0x45ddc5),_0x164488&&_0x347482[_0x40e9('0x0')](_0x164488);});}[_0x40e9('0x15')](_0x57ef89){if(this[_0x40e9('0xa')][_0x40e9('0x23')](_0x57ef89),!this['_uis'][_0x40e9('0x4')](_0x57ef89))throw new _0x5b58f6(_0x40e9('0xe'),this,{'uiName':_0x57ef89});const _0x363428=this['_uis'][_0x40e9('0x2b')](_0x57ef89);_0x363428[_0x40e9('0x1b')](),this[_0x40e9('0x3')](_0x363428),this['_uisData']['get'](_0x57ef89)[_0x40e9('0x2')][_0x40e9('0x21')](),this[_0x40e9('0x1a')][_0x40e9('0x23')](_0x57ef89);}[_0x40e9('0x18')](_0x2ae332){if(!this[_0x40e9('0xd')][_0x40e9('0x4')](_0x2ae332))throw new _0x5b58f6(_0x40e9('0xe'),this,{'uiName':_0x2ae332});const _0x25e8de=this[_0x40e9('0x22')][_0x40e9('0x2a')]['get'](_0x309bea),_0x1b96ec=Array[_0x40e9('0x1d')](_0x25e8de[_0x40e9('0x26')])[0x0]||null;this[_0x40e9('0x6')](),this[_0x40e9('0x2e')](_0x2ae332);const _0x31e032=this[_0x40e9('0xd')][_0x40e9('0x2b')](_0x2ae332);_0x31e032[_0x40e9('0x7')](_0x1b96ec),_0x31e032[_0x40e9('0x12')]&&_0x1b96ec&&_0x31e032[_0x40e9('0x12')]([_0x1b96ec]);}[_0x40e9('0x6')](){for(const _0x87df73 of this[_0x40e9('0xa')])this['deactivate'](_0x87df73);}[_0x40e9('0x24')](_0x49ac02,_0x11cd45){if(this[_0x40e9('0xd')][_0x40e9('0x4')](_0x49ac02))throw new _0x5b58f6(_0x40e9('0x14'));if(_0x40e9('0x2d')!=typeof _0x11cd45[_0x40e9('0x11')]||_0x40e9('0x2d')!=typeof _0x11cd45[_0x40e9('0x1b')]||_0x40e9('0x2d')!=typeof _0x11cd45[_0x40e9('0x7')])throw new _0x5b58f6(_0x40e9('0x1c'),null);this['_uis'][_0x40e9('0x1')](_0x49ac02,_0x11cd45);}['refilterAnnotations'](){const _0x25091e=this[_0x40e9('0x22')][_0x40e9('0x2a')][_0x40e9('0x2b')](_0x309bea)[_0x40e9('0x2')],_0x26cd8e=new Map(),_0x2bfba6=Array[_0x40e9('0x1d')](this[_0x40e9('0xa')]);for(const _0x78df99 of this[_0x40e9('0xa')]){const _0x74376d=this['_uisData'][_0x40e9('0x2b')](_0x78df99)[_0x40e9('0x2')];for(const _0x184c82 of _0x74376d)_0x26cd8e[_0x40e9('0x1')](_0x184c82,_0x78df99);}for(const _0x1fd964 of _0x25091e){const _0x42f074=_0x26cd8e['get'](_0x1fd964);this[_0x40e9('0x20')](_0x1fd964);const _0x48b026=_0x2bfba6[_0x40e9('0x13')](_0x26ed01=>this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x26ed01)[_0x40e9('0x1e')](_0x1fd964));_0x42f074!==_0x48b026&&(_0x42f074&&this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x42f074)[_0x40e9('0x2')]['remove'](_0x1fd964),_0x48b026&&this['_uisData'][_0x40e9('0x2b')](_0x48b026)[_0x40e9('0x2')]['add'](_0x1fd964));}}[_0x40e9('0x21')](){this[_0x40e9('0x6')](),super[_0x40e9('0x21')]();}[_0x40e9('0x20')](_0x491ecd){const _0x11c307=[];for(const _0x50f4e7 of this['activeUIs']){(0x0,this[_0x40e9('0x1a')][_0x40e9('0x2b')](_0x50f4e7)['filter'])(_0x491ecd)&&_0x11c307[_0x40e9('0x19')](_0x50f4e7);}if(_0x11c307[_0x40e9('0x10')]>0x1)throw new _0x5b58f6(_0x40e9('0x17'),null,{'matchedUIs':_0x11c307,'annotationType':_0x491ecd[_0x40e9('0xf')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45b6=['refresh','addSourceCollector','get','has','isReadOnly','focusTracker','sort','_editorAnnotations','containsRange','isEqual','editing','fire','refreshSelectedViews','_editorAnnotationsData','push','map','model','from','isCollapsed','collection','uiUpdate','cancel','editorannotations-invalid-source-callback','directChange','plugins','function','annotation','view','getByInnerView','document','selection','init','hasDomSelection','change:isFocused','listenTo','add','set','getRanges','editor','requires','range','_dataCollectors','element'];(function(_0x37f9b7,_0x45b6dc){const _0x1c95ee=function(_0x11a346){while(--_0x11a346){_0x37f9b7['push'](_0x37f9b7['shift']());}};_0x1c95ee(++_0x45b6dc);}(_0x45b6,0x14f));const _0x1c95=function(_0x37f9b7,_0x45b6dc){_0x37f9b7=_0x37f9b7-0x0;let _0x1c95ee=_0x45b6[_0x37f9b7];return _0x1c95ee;};import{Plugin as _0x205d54}from'ckeditor5/src/core';import{CKEditorError as _0x5b23a8}from'ckeditor5/src/utils';import{debounce as _0x40e3ee}from'lodash-es';import _0x27831a from'./annotations';export default class k extends _0x205d54{static get[_0x1c95('0x5')](){return[_0x27831a];}static get['pluginName'](){return'EditorAnnotations';}constructor(_0x4d4a4f){super(_0x4d4a4f),this['_dataCollectors']=new Set(),this[_0x1c95('0x10')]=new Set();}[_0x1c95('0x28')](){const _0x2c274b=this['editor'],_0x4377bf=_0x2c274b[_0x1c95('0x19')]['document'][_0x1c95('0x27')],_0x18c245=_0x40e3ee(()=>this[_0x1c95('0x15')](),0xa);_0x4377bf['on']('change:range',(_0x1ebdb3,_0x4d06dd)=>{_0x4d06dd[_0x1c95('0x20')]&&(_0x18c245[_0x1c95('0x1e')](),this['refreshSelectedViews']());}),this[_0x1c95('0x0')](_0x2c274b[_0x1c95('0x13')][_0x1c95('0x24')][_0x1c95('0x26')],'change:isFocused',(_0x57b212,_0x11aab8,_0xa2a2e6)=>{_0xa2a2e6&&_0x18c245();}),this[_0x1c95('0x0')](_0x2c274b['ui'][_0x1c95('0xe')],_0x1c95('0x2a'),(_0x36ca24,_0xaaa399,_0xcc1415)=>{_0xcc1415||_0x2c274b[_0x1c95('0xd')]||this[_0x1c95('0x14')]('blur',{'isAnnotationTracked':_0x205069=>this[_0x1c95('0x16')][_0x1c95('0xc')](_0x205069['innerView'])});}),this[_0x1c95('0x0')](this[_0x1c95('0x4')]['ui'],'update',()=>this[_0x1c95('0x14')](_0x1c95('0x1d')));}['registerAnnotation'](_0x22517b){if(this[_0x1c95('0x10')][_0x1c95('0xc')](_0x22517b[_0x1c95('0x24')]))return;this[_0x1c95('0x10')][_0x1c95('0x1')](_0x22517b[_0x1c95('0x24')]),this[_0x1c95('0x4')]['ui'][_0x1c95('0xe')][_0x1c95('0x1')](_0x22517b[_0x1c95('0x24')][_0x1c95('0x8')]);const _0x2a1844=this[_0x1c95('0x4')][_0x1c95('0x21')][_0x1c95('0xb')](_0x27831a);this[_0x1c95('0x0')](_0x2a1844[_0x1c95('0x1c')],'remove',(_0x264242,_0x4b822c)=>{this[_0x1c95('0x4')]['ui'][_0x1c95('0xe')]['remove'](_0x4b822c[_0x1c95('0x24')][_0x1c95('0x8')]),this[_0x1c95('0x10')]['delete'](_0x4b822c[_0x1c95('0x24')]);});}[_0x1c95('0x29')](){return this[_0x1c95('0x4')][_0x1c95('0x13')][_0x1c95('0x24')][_0x1c95('0x29')];}[_0x1c95('0xa')](_0x269469){if(_0x1c95('0x22')!=typeof _0x269469)throw new _0x5b23a8(_0x1c95('0x1f'));this[_0x1c95('0x7')][_0x1c95('0x1')](_0x269469);}[_0x1c95('0x15')](){this[_0x1c95('0x14')](_0x1c95('0x9'));}['getOrderedSelectedAnnotations']({activeAnnotation:_0x1cf3a5,annotations:_0x401001}){const _0x299ccf=[],_0x3e8028=this[_0x1c95('0x4')]['model']['document'][_0x1c95('0x27')],_0x414573=Array[_0x1c95('0x1a')](_0x3e8028[_0x1c95('0x3')]());for(const [_0x251a69,_0x25f875]of this[_0x1c95('0x16')]){const _0x35dfc3=_0x33ff98(_0x25f875),_0x2dc1ac=_0x401001[_0x1c95('0x25')](_0x251a69);_0x35dfc3&&_0x2dc1ac&&_0x299ccf[_0x1c95('0x17')]({'annotation':_0x2dc1ac,'range':_0x35dfc3});}function _0x33ff98(_0x5d088c){for(const _0x45061f of _0x5d088c)for(const _0x3265d4 of _0x414573)if(_0x45061f[_0x1c95('0x11')](_0x3265d4,!_0x3e8028[_0x1c95('0x1b')]))return _0x45061f;return null;}return _0x299ccf[_0x1c95('0xf')]((_0x57b3a4,_0x36194e)=>{const _0x26ffdb=_0x57b3a4['range'],_0x333993=_0x36194e[_0x1c95('0x6')];if(!_0x26ffdb[_0x1c95('0x12')](_0x333993)){if(_0x26ffdb[_0x1c95('0x11')](_0x333993,!0x0))return 0x1;if(_0x333993[_0x1c95('0x11')](_0x26ffdb,!0x0))return-0x1;}return _0x57b3a4[_0x1c95('0x23')]==_0x1cf3a5?-0x1:_0x36194e[_0x1c95('0x23')]==_0x1cf3a5?0x1:0x0;})[_0x1c95('0x18')](_0x3091cc=>_0x3091cc[_0x1c95('0x23')]);}get[_0x1c95('0x16')](){const _0x3a2ff9=new Map();for(const _0x154895 of Array[_0x1c95('0x1a')](this[_0x1c95('0x7')]))for(const [_0x9b3231,_0x4e2f5f]of _0x154895())_0x3a2ff9[_0x1c95('0x2')](_0x9b3231,_0x4e2f5f);return _0x3a2ff9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12df=['pluginName','set','Esc','requires','_addedAnnotations','getClientRects','register','_getBalloonTargetForAnnotation','isAttached','length','includes','editor','update','editing','every','setActiveAnnotation','map','_selectedAnnotations','detach','focus','stopListening','get','domConverter','_closeAnnotation','plugins','selection','getByView','activeAnnotation','inline','listenTo','focusTracker','fromRect','change:isFocused','isActive','targetRect','keystrokes','has','annotations','left','right','_setSelectedAnnotations','refresh','_addAnnotationToBalloon','_removeAnnotationFromBalloon','change:visibleView','document','hasView','visibleView','change:height','remove','mousedown','clear','_forceRefresh','switchTo','InlineAnnotations','editableElement','init','find','inlineannotations-attach-already-attached','isFocused','hasActive','add','top','_manuallyClosed','collapse','_balloon','push','blur','showStack','context','viewRangeToDom','width','bottom','destroy','view','updatePosition','delete','inlineannotations-not-allowed-with-context','from'];(function(_0x1ee210,_0x12df6b){const _0x244a01=function(_0x94a4e4){while(--_0x94a4e4){_0x1ee210['push'](_0x1ee210['shift']());}};_0x244a01(++_0x12df6b);}(_0x12df,0xe5));const _0x244a=function(_0x1ee210,_0x12df6b){_0x1ee210=_0x1ee210-0x0;let _0x244a01=_0x12df[_0x1ee210];return _0x244a01;};import{Plugin as _0x3b5198}from'ckeditor5/src/core';import _0xd97840 from'./annotationsuis';import _0x197b3a from'./editorannotations';import{ContextualBalloon as _0x44d7d0}from'ckeditor5/src/ui';import{MouseObserver as _0x230bea}from'ckeditor5/src/engine';import{CKEditorError as _0x506e15,Rect as _0x64b5d7}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x3b5198{static get[_0x244a('0xb')](){return[_0x197b3a,_0x44d7d0,_0xd97840];}static get[_0x244a('0x8')](){return _0x244a('0x3e');}constructor(_0x1238e9){super(_0x1238e9),_0x1238e9['editing'][_0x244a('0x3')]['addObserver'](_0x230bea),this[_0x244a('0x10')]=!0x1,this[_0x244a('0x9')](_0x244a('0x23'),null),this[_0x244a('0x2d')]=null,this[_0x244a('0x47')]=new Set(),this[_0x244a('0x49')]=_0x1238e9[_0x244a('0x20')]['get'](_0x44d7d0),this[_0x244a('0xc')]=new Set(),this[_0x244a('0x19')]=[],this[_0x244a('0x3c')]=!0x1;}[_0x244a('0x40')](){const _0x37e361=this[_0x244a('0x13')]['plugins'][_0x244a('0x1d')](_0xd97840);_0x37e361[_0x244a('0x4d')]===this[_0x244a('0x13')]&&(_0x37e361[_0x244a('0xe')](_0x244a('0x24'),this),this[_0x244a('0x13')][_0x244a('0x2b')][_0x244a('0x9')](_0x244a('0xa'),(_0xb42dc8,_0x28f60a)=>{const _0x18e84d=this[_0x244a('0x49')];if(this[_0x244a('0x10')]&&_0x18e84d[_0x244a('0x37')]){const _0x2991c4=this[_0x244a('0x2d')][_0x244a('0x22')](_0x18e84d['visibleView']);_0x2991c4&&this[_0x244a('0x1f')](_0x2991c4),_0x28f60a();}}));}['afterInit'](){const _0x2c8a66=this['editor']['plugins'][_0x244a('0x1d')](_0xd97840);_0x2c8a66[_0x244a('0x4d')]===this[_0x244a('0x13')]&&(_0x2c8a66[_0x244a('0x44')]()||_0x2c8a66[_0x244a('0x3d')](_0x244a('0x24')));}[_0x244a('0x17')](_0x2f7ee9){_0x2f7ee9!==this['activeAnnotation']&&(this[_0x244a('0x23')]&&(this[_0x244a('0x23')][_0x244a('0x29')]=!0x1),_0x2f7ee9&&this[_0x244a('0x13')]['ui']['focusTracker'][_0x244a('0x43')]&&(this['annotations'][_0x244a('0x2c')](_0x2f7ee9)&&this[_0x244a('0x32')](_0x2f7ee9,!0x0),_0x2f7ee9[_0x244a('0x29')]=!0x0),_0x2f7ee9||this[_0x244a('0x30')]([]),this[_0x244a('0x23')]=_0x2f7ee9);}['attach'](_0x38e7a1){this[_0x244a('0x2d')]=_0x38e7a1;const _0x2cc913=this['editor'][_0x244a('0x20')][_0x244a('0x1d')](_0xd97840),_0x5edc88=this['_balloon'];if(this[_0x244a('0x10')])throw new _0x506e15(_0x244a('0x42'),this);if(_0x2cc913['context']!==this[_0x244a('0x13')])throw new _0x506e15(_0x244a('0x6'),this);const _0xb42b17=this['editor'][_0x244a('0x20')][_0x244a('0x1d')](_0x197b3a);this[_0x244a('0x25')](_0xb42b17,_0x244a('0x31'),()=>{const _0x8200d7=_0xb42b17['getOrderedSelectedAnnotations']({'annotations':this[_0x244a('0x2d')],'activeAnnotation':this['activeAnnotation']});var _0x3a1439,_0x54ae82;!this[_0x244a('0x3c')]&&(_0x3a1439=_0x8200d7,_0x54ae82=this[_0x244a('0x19')],_0x3a1439[_0x244a('0x11')]===_0x54ae82[_0x244a('0x11')]&&_0x3a1439[_0x244a('0x16')](_0x51f7b6=>_0x54ae82[_0x244a('0x12')](_0x51f7b6)))||(this[_0x244a('0x3c')]=!0x1,this[_0x244a('0x30')](_0x8200d7),this[_0x244a('0x17')](_0x8200d7[0x0]||null));}),this[_0x244a('0x25')](_0xb42b17,_0x244a('0x4b'),(_0x2103d3,{isAnnotationTracked:_0x321352})=>{this[_0x244a('0x23')]&&_0x321352(this[_0x244a('0x23')])&&(this['_setSelectedAnnotations']([]),this[_0x244a('0x17')](null));}),this['listenTo'](this[_0x244a('0x13')]['ui'][_0x244a('0x26')],_0x244a('0x28'),(_0x4ab978,_0x264374,_0x18d7ea)=>{_0x18d7ea||this[_0x244a('0x17')](null);}),this['listenTo'](_0x38e7a1,_0x244a('0x39'),(_0x191d04,_0x1e9318)=>{this['_removeAnnotationFromBalloon'](_0x1e9318),_0x1e9318===this['activeAnnotation']&&this[_0x244a('0x17')](null);}),this['listenTo'](_0x5edc88,_0x244a('0x34'),(_0x100dbf,_0x2d8977,_0xb04d5e,_0xc4cf0d)=>{_0xc4cf0d&&this[_0x244a('0x1c')](_0xc4cf0d);const _0x4c9aa5=_0x38e7a1['getByView'](_0xb04d5e);_0xb04d5e&&_0x4c9aa5&&(this[_0x244a('0x25')](_0xb04d5e,_0x244a('0x38'),()=>{_0x5edc88[_0x244a('0x4')]();}),this['listenTo'](_0xb04d5e,_0x244a('0xa'),()=>{this[_0x244a('0x1f')](_0x4c9aa5),this[_0x244a('0x13')][_0x244a('0x15')]['view'][_0x244a('0x1b')]();}),this[_0x244a('0x23')]!==_0x4c9aa5&&this[_0x244a('0x17')](_0x4c9aa5));}),this[_0x244a('0x25')](this[_0x244a('0x13')]['ui'],_0x244a('0x14'),()=>{_0x5edc88[_0x244a('0x37')]&&(_0x38e7a1[_0x244a('0x22')](_0x5edc88[_0x244a('0x37')])&&_0x5edc88[_0x244a('0x4')]());}),this[_0x244a('0x25')](this[_0x244a('0x13')][_0x244a('0x15')]['view'][_0x244a('0x35')],_0x244a('0x3a'),()=>{this[_0x244a('0x3c')]=!0x0,this['_manuallyClosed'][_0x244a('0x3b')]();}),this[_0x244a('0x13')]['editing']['view'][_0x244a('0x35')][_0x244a('0x21')][_0x244a('0x3f')]&&this[_0x244a('0x13')]['editing']['view']['focus'](),this[_0x244a('0x10')]=!0x0;}[_0x244a('0x1a')](){if(!this[_0x244a('0x10')])throw new _0x506e15('inlineannotations-detach-not-attached',this);this[_0x244a('0x17')](null);for(const _0xc6ad64 of this[_0x244a('0xc')])this[_0x244a('0x33')](_0xc6ad64);this[_0x244a('0x1c')](),this[_0x244a('0x10')]=!0x1,this[_0x244a('0x2d')]=null;}[_0x244a('0x2')](){this[_0x244a('0x10')]&&this[_0x244a('0x1a')]();}[_0x244a('0x30')](_0x370d8d){for(const _0x24953d of this[_0x244a('0x19')])_0x370d8d[_0x244a('0x12')](_0x24953d)||this[_0x244a('0x47')]['delete'](_0x24953d);for(const _0x19edec of this[_0x244a('0x2d')])_0x370d8d[_0x244a('0x12')](_0x19edec)||this[_0x244a('0x33')](_0x19edec);if(this[_0x244a('0x13')]['ui'][_0x244a('0x26')][_0x244a('0x43')])for(const _0x425a76 of _0x370d8d)this['_addAnnotationToBalloon'](_0x425a76);this[_0x244a('0x19')]=_0x370d8d;}[_0x244a('0x32')](_0x3764dc,_0xd024fc=!0x1){this['_manuallyClosed'][_0x244a('0x2c')](_0x3764dc)||(this[_0x244a('0xc')][_0x244a('0x2c')](_0x3764dc)||this[_0x244a('0x49')]['hasView'](_0x3764dc['view'])||(this[_0x244a('0xc')][_0x244a('0x45')](_0x3764dc),this[_0x244a('0x49')][_0x244a('0x45')]({'stackId':_0x3764dc[_0x244a('0x3')]['id'],'view':_0x3764dc[_0x244a('0x3')],'position':{'target':()=>this[_0x244a('0xf')](_0x3764dc)}})),_0xd024fc&&this['_balloon'][_0x244a('0x4c')](_0x3764dc[_0x244a('0x3')]['id']));}[_0x244a('0xf')](_0x3b7160){const _0x38eeae=_0x3b7160['target'],_0x5e5fa0=this[_0x244a('0x13')]['editing'][_0x244a('0x3')],_0x281c61=_0x5e5fa0[_0x244a('0x35')][_0x244a('0x21')]['getFirstRange'](),_0x4a8b27=_0x5e5fa0[_0x244a('0x1e')][_0x244a('0x4e')](_0x281c61);if(_0x4a8b27[_0x244a('0x48')](!0x0),_0x38eeae){if(_0x38eeae instanceof _0x64b5d7)return _0x38eeae;let _0x3de75e=[];for(const _0x18aacf of _0x38eeae)_0x3de75e[_0x244a('0x4a')](...(_0x5f32d7=_0x18aacf[_0x244a('0xd')](),Array[_0x244a('0x7')](_0x5f32d7)[_0x244a('0x18')](DOMRect[_0x244a('0x27')])));_0x3de75e=function(_0x1b8237){const _0x1a2bb8=[];let _0x2e2d68=_0x1b8237[0x0];for(let _0x5eee31=0x1;_0x5eee31<_0x1b8237['length'];_0x5eee31++)F(_0x2e2d68,_0x1b8237[_0x5eee31])?_0x2e2d68[_0x244a('0x0')]+=_0x1b8237[_0x5eee31]['width']:(_0x1a2bb8[_0x244a('0x4a')](_0x2e2d68),_0x2e2d68=_0x1b8237[_0x5eee31]);return _0x1a2bb8[_0x244a('0x4a')](_0x2e2d68),_0x1a2bb8;}(_0x3de75e);const _0x33a0ca=_0x4a8b27['getBoundingClientRect']();return _0x3de75e[_0x244a('0x41')](_0xc9b201=>_0xc9b201[_0x244a('0x46')]<=_0x33a0ca['top']&&_0xc9b201[_0x244a('0x1')]>=_0x33a0ca[_0x244a('0x1')]&&_0xc9b201[_0x244a('0x2e')]<=_0x33a0ca[_0x244a('0x2e')]&&_0xc9b201[_0x244a('0x2f')]>=_0x33a0ca[_0x244a('0x2f')])||_0x3de75e[0x0];}var _0x5f32d7;return _0x3b7160[_0x244a('0x2a')]||_0x4a8b27;}['_removeAnnotationFromBalloon'](_0x3dbb78){this[_0x244a('0xc')][_0x244a('0x2c')](_0x3dbb78)&&this['_balloon'][_0x244a('0x36')](_0x3dbb78[_0x244a('0x3')])&&(this[_0x244a('0xc')][_0x244a('0x5')](_0x3dbb78),this[_0x244a('0x49')][_0x244a('0x39')](_0x3dbb78['view']));}[_0x244a('0x1f')](_0x5c4e42){this[_0x244a('0x47')]['add'](_0x5c4e42),this[_0x244a('0x33')](_0x5c4e42);}}function F(_0x345a40,_0x147583){return _0x345a40['top']===_0x147583[_0x244a('0x46')]&&_0x345a40[_0x244a('0x1')]===_0x147583[_0x244a('0x1')]&&_0x345a40['right']===_0x147583['left'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x269a=['context','narrowsidebar-attach-already-attached','has','detachFromDom','_annotationToNarrowView','bind','low','_editorAnnotations','editors','_setSelectedAnnotations','removeEventListener','refreshPositioning','southArrowNorthEast','resize','setActiveAnnotation','add','off','number','_refreshPositioning','focus','requires','length','defaultPositions','content','addEventListener','isAttached','EditorAnnotations','get','first','_domEmitter','annotationType','remove','detach','_showBalloon','isVisible','_hideBalloon','execute','addAnnotation','element','isDirty','init','includes','esc','register','set','target','unpin','mousedown','_destroyEditorAnnotationsIntegration','listenTo','refresh','_integrateWithEditorAnnotations','stop','_updateBalloonPosition','view','high','cancel','values','preventClosingBalloon','_refreshPositioningDebounced','activeAnnotation','attach','from','locale','keyCode','getByView','contains','attachToDom','southArrowNorthWest','_manuallyClosedAnnotationViews','getSidebarItemView','destroy','rearrange','NarrowSidebar','blur','balloonPanelView','_attachToContainer','_selectedAnnotations','clear','preventDefault','stopPropagation','plugins','ck-sidebar--narrow','getOrderedSelectedAnnotations','annotations','bodyCollection','_detachFromContainer','_attachListeners','create','southArrowNorth','_detachListeners','stopListening'];(function(_0x2f3d33,_0x269abb){const _0x58f171=function(_0x541fbc){while(--_0x541fbc){_0x2f3d33['push'](_0x2f3d33['shift']());}};_0x58f171(++_0x269abb);}(_0x269a,0x12a));const _0x58f1=function(_0x2f3d33,_0x269abb){_0x2f3d33=_0x2f3d33-0x0;let _0x58f171=_0x269a[_0x2f3d33];return _0x58f171;};import{ContextPlugin as _0x1469b8,Context as _0x2531c8}from'ckeditor5/src/core';import _0x41fd01 from'./annotationsuis';import _0x27aa92 from'./sidebar';import _0x60a638 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4da970,BodyCollection as _0x184704}from'ckeditor5/src/ui';import{CKEditorError as _0x1712a9,DomEmitterMixin as _0x8418e6,keyCodes as _0xad897c,Collection as _0x5b916d}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1b94d6}from'lodash-es';import _0x1858f4 from'./editorannotations';export default class s extends _0x1469b8{static get[_0x58f1('0x5a')](){return[_0x27aa92,_0x41fd01];}static get['pluginName'](){return _0x58f1('0x33');}constructor(_0x3e1703){super(_0x3e1703),this['isAttached']=!0x1,this[_0x58f1('0x2f')]=new Set(),this[_0x58f1('0x7')]=Object[_0x58f1('0x42')](_0x8418e6),this[_0x58f1('0x4a')]=new Map(),this['set'](_0x58f1('0x26'),null),this[_0x58f1('0x3e')]=null,this[_0x58f1('0x37')]=[],this[_0x58f1('0x4d')]=new _0x5b916d(),this[_0x58f1('0x25')]=_0x1b94d6(()=>{this[_0x58f1('0x58')]();},0xfa,{'leading':!0x1});}[_0x58f1('0x12')](){this['context'][_0x58f1('0x3b')][_0x58f1('0x5')](_0x41fd01)[_0x58f1('0x15')]('narrowSidebar',this),this[_0x58f1('0x3f')]=new _0x184704(this[_0x58f1('0x46')]['locale']),this['balloonPanelView']=new _0x4da970(this[_0x58f1('0x46')][_0x58f1('0x29')]),this[_0x58f1('0x3f')][_0x58f1('0x2d')](),this['bodyCollection'][_0x58f1('0x55')](this[_0x58f1('0x35')]);}['attach'](_0x4e3ebe){this[_0x58f1('0x3e')]=_0x4e3ebe;const _0x1b73d0=this[_0x58f1('0x46')][_0x58f1('0x3b')][_0x58f1('0x5')](_0x27aa92),_0x3c6cea=this[_0x58f1('0x35')];if(_0x1b73d0['_annotations']=_0x4e3ebe,this[_0x58f1('0x3')])throw new _0x1712a9(_0x58f1('0x47'),this);this['isAttached']=!0x0,this[_0x58f1('0x1b')](_0x1b73d0,'set:container',()=>{this[_0x58f1('0xa')](),this[_0x58f1('0x1b')](_0x1b73d0,'change:container',_0x111051=>{_0x111051[_0x58f1('0x56')](),this[_0x58f1('0x27')](_0x4e3ebe);});}),_0x1b73d0[_0x58f1('0x36')]({'viewClass':_0x58f1('0x3c'),'spaceBetweenItems':0x5});const _0x4ab361=_0x3ca26c=>{const _0x2bdf48=new _0x60a638(this[_0x58f1('0x46')][_0x58f1('0x29')]);_0x1b73d0[_0x58f1('0xf')](_0x3ca26c,_0x2bdf48),this[_0x58f1('0x4a')][_0x58f1('0x16')](_0x3ca26c,_0x2bdf48),_0x2bdf48[_0x58f1('0x4b')](_0x58f1('0x11'),_0x58f1('0x8'),_0x58f1('0x57'))['to'](_0x3ca26c[_0x58f1('0x20')],'isDirty','type',_0x58f1('0x5b')),_0x2bdf48['on'](_0x58f1('0xe'),()=>{this[_0x58f1('0x2f')][_0x58f1('0x38')](),_0x3c6cea[_0x58f1('0x1')][_0x58f1('0x6')]!==_0x3ca26c[_0x58f1('0x20')]?(this['_showBalloon'](_0x3ca26c),_0x3ca26c[_0x58f1('0x20')][_0x58f1('0x10')][_0x58f1('0x59')](),this[_0x58f1('0x54')](_0x3ca26c)):this[_0x58f1('0x54')](null);});};for(const _0x4af12d of _0x4e3ebe)_0x4ab361(_0x4af12d);this['listenTo'](_0x4e3ebe,_0x58f1('0x55'),(_0xcf4674,_0xd7b6a)=>{_0x4ab361(_0xd7b6a);}),this['listenTo'](_0x4e3ebe,_0x58f1('0x9'),(_0x473329,_0x5c9dc7,_0x2b7746)=>{this['_annotationToNarrowView'][_0x58f1('0x5')](_0x5c9dc7)[_0x58f1('0x31')](),this[_0x58f1('0x4a')]['delete'](_0x5c9dc7),_0x1b73d0[_0x58f1('0x32')]({'removedAnnotation':_0x5c9dc7,'previousAnnotation':_0x4e3ebe[_0x58f1('0x5')](_0x2b7746-0x1),'nextAnnotation':_0x4e3ebe[_0x58f1('0x5')](_0x2b7746+0x1)}),_0x5c9dc7===this[_0x58f1('0x26')]&&this[_0x58f1('0x54')](null);},{'priority':_0x58f1('0x4c')}),this[_0x58f1('0x1b')](_0x4e3ebe,_0x58f1('0x59'),(_0x4fa85f,_0xcb3c1)=>{this[_0x58f1('0x54')](_0xcb3c1);}),this[_0x58f1('0x1b')](_0x4e3ebe,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter'][_0x58f1('0x1b')](document,'keydown',(_0x352395,_0x460451)=>{_0x460451[_0x58f1('0x2a')]===_0xad897c[_0x58f1('0x14')]&&_0x3c6cea['isVisible']&&(this[_0x58f1('0x2f')][_0x58f1('0x55')](_0x3c6cea['content'][_0x58f1('0x6')]),this[_0x58f1('0xd')](),_0x460451[_0x58f1('0x3a')](),_0x460451[_0x58f1('0x39')]());}),this[_0x58f1('0x7')][_0x58f1('0x1b')](document,_0x58f1('0x19'),(_0x880207,_0x42abfc)=>{const _0xf5fe3=_0x42abfc[_0x58f1('0x17')];_0x3c6cea[_0x58f1('0xc')]&&_0x3c6cea[_0x58f1('0x10')][_0x58f1('0x2c')](_0xf5fe3)||_0x1b73d0['view'][_0x58f1('0x10')]['contains'](_0xf5fe3)||_0x880207['preventClosingBalloon']||(this[_0x58f1('0x2f')][_0x58f1('0x38')](),this['_hideBalloon'](),this[_0x58f1('0x54')](null));});const _0x3cc2ba=this['context']instanceof _0x2531c8?this['context']['editors']:new _0x5b916d([this[_0x58f1('0x46')]]);for(const _0x5c91d8 of _0x3cc2ba)this['_integrateWithEditorAnnotations'](_0x5c91d8);this[_0x58f1('0x1b')](_0x3cc2ba,_0x58f1('0x55'),(_0x8ce8dd,_0x2a585e)=>{this[_0x58f1('0x1b')](_0x2a585e,'ready',()=>{this[_0x58f1('0x1d')](_0x2a585e);});}),this[_0x58f1('0x1b')](_0x3cc2ba,_0x58f1('0x9'),(_0x850f87,_0xfce667)=>{_0xfce667[_0x58f1('0x3b')]['has'](_0x58f1('0x4'))&&this[_0x58f1('0x1a')](_0xfce667[_0x58f1('0x3b')][_0x58f1('0x5')](_0x58f1('0x4')));}),window[_0x58f1('0x2')](_0x58f1('0x53'),this[_0x58f1('0x25')]),this[_0x58f1('0x58')]();}[_0x58f1('0x54')](_0x211af7){if(_0x211af7===this[_0x58f1('0x26')])return;const _0xee7f5c=this[_0x58f1('0x46')][_0x58f1('0x3b')][_0x58f1('0x5')](_0x27aa92);if(_0xee7f5c[_0x58f1('0x1c')]({'blurredAnnotation':this[_0x58f1('0x26')],'activatedAnnotation':_0x211af7,'disableAnimationOnActivatedAnnotation':!0x0}),_0x211af7)_0xee7f5c[_0x58f1('0x30')](_0x211af7)?this[_0x58f1('0xb')](_0x211af7):this[_0x58f1('0xd')]();else this[_0x58f1('0xd')]();this[_0x58f1('0x26')]=_0x211af7;}[_0x58f1('0xa')](){if(!this[_0x58f1('0x3')])throw new _0x1712a9('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4b8178=this[_0x58f1('0x46')][_0x58f1('0x3b')][_0x58f1('0x5')](_0x27aa92);this[_0x58f1('0xd')](),Array[_0x58f1('0x28')](this['_annotationToNarrowView'][_0x58f1('0x23')](),_0x20a613=>_0x20a613[_0x58f1('0x31')]()),this['_annotationToNarrowView'][_0x58f1('0x38')](),_0x4b8178[_0x58f1('0x40')](this[_0x58f1('0x3e')]),this[_0x58f1('0x45')](),this[_0x58f1('0x7')]['stopListening'](),this[_0x58f1('0x46')]instanceof _0x2531c8&&this[_0x58f1('0x45')](this['context'][_0x58f1('0x4e')]);for(const _0x107a2f of Array[_0x58f1('0x28')](this[_0x58f1('0x4d')]))this[_0x58f1('0x1a')](_0x107a2f);window[_0x58f1('0x50')]('resize',this[_0x58f1('0x25')]),this[_0x58f1('0x25')][_0x58f1('0x22')](),this[_0x58f1('0x37')]=[],this[_0x58f1('0x3')]=!0x1,this[_0x58f1('0x3e')]=null;}['destroy'](){this['isAttached']&&this[_0x58f1('0xa')](),this[_0x58f1('0x3f')][_0x58f1('0x49')]();}[_0x58f1('0x1d')](_0xea9485){const _0xc3215c=_0xea9485[_0x58f1('0x3b')][_0x58f1('0x5')](_0x1858f4),_0x2cada6=this[_0x58f1('0x46')][_0x58f1('0x3b')][_0x58f1('0x5')](_0x27aa92),_0x33de74=this[_0x58f1('0x3e')],_0x341421=this['balloonPanelView'],_0x41566a=()=>{const _0x362ccf=_0xc3215c[_0x58f1('0x3d')]({'annotations':this[_0x58f1('0x3e')],'activeAnnotation':this[_0x58f1('0x26')]});this[_0x58f1('0x4f')](_0x362ccf),this['setActiveAnnotation'](_0x362ccf[0x0]||null);};this[_0x58f1('0x1b')](_0xc3215c,_0x58f1('0x1c'),_0x41566a),this[_0x58f1('0x1b')](_0xc3215c,_0x58f1('0x34'),(_0x43fa56,{isAnnotationTracked:_0x2dcad5})=>{this[_0x58f1('0x26')]&&_0x2dcad5(this[_0x58f1('0x26')])&&(this[_0x58f1('0x4f')]([]),this['setActiveAnnotation'](null));}),this[_0x58f1('0x1b')](_0xc3215c,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x58f1('0x1b')](_0x33de74,_0x58f1('0x34'),_0x51f0d3=>{_0xc3215c['hasDomSelection']()&&_0x51f0d3[_0x58f1('0x1e')]();},{'priority':_0x58f1('0x21')}),this[_0x58f1('0x1b')](this[_0x58f1('0x7')],'mousedown',(_0x1dbb1f,_0x62464)=>{const _0x29b760=_0x62464['target'];_0x341421[_0x58f1('0xc')]&&_0x341421[_0x58f1('0x10')][_0x58f1('0x2c')](_0x29b760)||_0x2cada6[_0x58f1('0x20')][_0x58f1('0x10')][_0x58f1('0x2c')](_0x29b760)||this[_0x58f1('0x26')]&&_0xc3215c['hasDomSelection']()&&(_0x41566a(),_0x1dbb1f[_0x58f1('0x24')]=!0x0);},{'priority':_0x58f1('0x21')}),this[_0x58f1('0x4d')][_0x58f1('0x55')](_0xc3215c);}['_destroyEditorAnnotationsIntegration'](_0x4758ca){_0x4758ca&&(this[_0x58f1('0x45')](_0x4758ca),this[_0x58f1('0x4d')][_0x58f1('0x9')](_0x4758ca));}[_0x58f1('0x4f')](_0x23e7f9){for(const _0x2734ef of this['_selectedAnnotations'])_0x23e7f9[_0x58f1('0x13')](_0x2734ef)||this[_0x58f1('0x2f')]['delete'](_0x2734ef[_0x58f1('0x20')]);this[_0x58f1('0x37')]=_0x23e7f9;}[_0x58f1('0x58')](){const _0x4a0249=this['balloonPanelView'];this[_0x58f1('0x3e')][_0x58f1('0x51')](),_0x4a0249['isVisible']&&this[_0x58f1('0x1f')]();}['_showBalloon'](_0x4c9b2f){if(this['_manuallyClosedAnnotationViews'][_0x58f1('0x48')](_0x4c9b2f[_0x58f1('0x20')]))return;const _0x48ae5a=this[_0x58f1('0x35')][_0x58f1('0x1')][_0x58f1('0x6')];_0x48ae5a!==_0x4c9b2f['view']?(_0x48ae5a&&this['_detachListeners'](_0x48ae5a),this[_0x58f1('0x41')](_0x4c9b2f['view']),this[_0x58f1('0x35')][_0x58f1('0x1')][_0x58f1('0x38')](),this[_0x58f1('0x35')]['content'][_0x58f1('0x55')](_0x4c9b2f[_0x58f1('0x20')]),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}[_0x58f1('0x1f')](){const _0x199bae=this[_0x58f1('0x35')][_0x58f1('0x1')][_0x58f1('0x6')],_0x18e1af=_0x199bae&&this[_0x58f1('0x3e')][_0x58f1('0x2b')](_0x199bae);if(!_0x18e1af||!this[_0x58f1('0x4a')][_0x58f1('0x48')](_0x18e1af))return;const _0x1eb1c7=this['_annotationToNarrowView'][_0x58f1('0x5')](_0x18e1af)[_0x58f1('0x10')],_0xb1ad10=function(){const _0xb7a869=_0x4da970[_0x58f1('0x0')];return[_0xb7a869[_0x58f1('0x52')],_0xb7a869['northArrowSouthEast'],_0xb7a869[_0x58f1('0x43')],_0xb7a869['northArrowSouth'],_0xb7a869[_0x58f1('0x2e')],_0xb7a869['northArrowSouthWest']];}();this[_0x58f1('0x35')]['pin']({'target':_0x1eb1c7,'positions':_0xb1ad10});}['_hideBalloon'](){const _0x546b58=this[_0x58f1('0x35')],_0x38a9b3=_0x546b58['content'][_0x58f1('0x6')];_0x38a9b3&&(this[_0x58f1('0x44')](_0x38a9b3),_0x546b58[_0x58f1('0x18')](),_0x546b58[_0x58f1('0x1')][_0x58f1('0x38')]());}[_0x58f1('0x41')](_0x54375e){this[_0x58f1('0x1b')](_0x54375e,'change:height',()=>this[_0x58f1('0x1f')]()),this[_0x58f1('0x1b')](_0x54375e,'Esc',(_0x26a54a,_0x52299b)=>{this['_manuallyClosedAnnotationViews'][_0x58f1('0x55')](_0x54375e),this[_0x58f1('0xd')](),_0x52299b();});}[_0x58f1('0x44')](_0x280da8){this[_0x58f1('0x45')](_0x280da8);}}
|
|
23
|
+
const _0x5744=['content','clear','locale','southArrowNorth','delete','_attachListeners','change:height','register','from','detachFromDom','northArrowSouth','focus','requires','mousedown','_detachListeners','_integrateWithEditorAnnotations','contains','unpin','preventClosingBalloon','has','stopListening','context','plugins','isDirty','pluginName','Esc','_hideBalloon','_showBalloon','low','length','init','detach','high','_refreshPositioning','annotations','_detachFromContainer','_destroyEditorAnnotationsIntegration','destroy','execute','first','target','stop','get','addEventListener','EditorAnnotations','cancel','listenTo','setActiveAnnotation','refresh','stopPropagation','NarrowSidebar','hasDomSelection','off','_refreshPositioningDebounced','_annotationToNarrowView','bind','narrowsidebar-detach-not-attached','removeEventListener','blur','_selectedAnnotations','_updateBalloonPosition','pin','_editorAnnotations','editors','_attachToContainer','isVisible','isAttached','_domEmitter','add','esc','attachToDom','resize','uiUpdate','activeAnnotation','southArrowNorthWest','attach','view','_manuallyClosedAnnotationViews','values','remove','getOrderedSelectedAnnotations','northArrowSouthWest','set','element','_setSelectedAnnotations','_annotations','balloonPanelView','bodyCollection','rearrange'];(function(_0x54ff40,_0x57443d){const _0x2f1d90=function(_0x59f1af){while(--_0x59f1af){_0x54ff40['push'](_0x54ff40['shift']());}};_0x2f1d90(++_0x57443d);}(_0x5744,0x1c9));const _0x2f1d=function(_0x54ff40,_0x57443d){_0x54ff40=_0x54ff40-0x0;let _0x2f1d90=_0x5744[_0x54ff40];return _0x2f1d90;};import{ContextPlugin as _0x5909f7,Context as _0x51d3b5}from'ckeditor5/src/core';import _0x4e2c64 from'./annotationsuis';import _0x27184f from'./sidebar';import _0x2f641a from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x15979e,BodyCollection as _0x1556b6}from'ckeditor5/src/ui';import{CKEditorError as _0x2102b8,DomEmitterMixin as _0x214f0b,keyCodes as _0x3dd241,Collection as _0x582851}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1f7d37}from'lodash-es';import _0x4c6b86 from'./editorannotations';export default class s extends _0x5909f7{static get[_0x2f1d('0x0')](){return[_0x27184f,_0x4e2c64];}static get[_0x2f1d('0xc')](){return _0x2f1d('0x26');}constructor(_0x26e652){super(_0x26e652),this['isAttached']=!0x1,this[_0x2f1d('0x41')]=new Set(),this[_0x2f1d('0x37')]=Object['create'](_0x214f0b),this[_0x2f1d('0x2a')]=new Map(),this[_0x2f1d('0x46')]('activeAnnotation',null),this['annotations']=null,this[_0x2f1d('0x2f')]=[],this['_editorAnnotations']=new _0x582851(),this[_0x2f1d('0x29')]=_0x1f7d37(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x2f1d('0x12')](){this[_0x2f1d('0x9')][_0x2f1d('0xa')]['get'](_0x4e2c64)[_0x2f1d('0x54')]('narrowSidebar',this),this[_0x2f1d('0x4b')]=new _0x1556b6(this[_0x2f1d('0x9')]['locale']),this[_0x2f1d('0x4a')]=new _0x15979e(this[_0x2f1d('0x9')][_0x2f1d('0x4f')]),this[_0x2f1d('0x4b')][_0x2f1d('0x3a')](),this[_0x2f1d('0x4b')]['add'](this[_0x2f1d('0x4a')]);}['attach'](_0x5a17d6){this[_0x2f1d('0x16')]=_0x5a17d6;const _0x511826=this[_0x2f1d('0x9')][_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x27184f),_0x320430=this[_0x2f1d('0x4a')];if(_0x511826[_0x2f1d('0x49')]=_0x5a17d6,this[_0x2f1d('0x36')])throw new _0x2102b8('narrowsidebar-attach-already-attached',this);this[_0x2f1d('0x36')]=!0x0,this[_0x2f1d('0x22')](_0x511826,'set:container',()=>{this['detach'](),this['listenTo'](_0x511826,'change:container',_0x575f18=>{_0x575f18[_0x2f1d('0x28')](),this[_0x2f1d('0x3f')](_0x5a17d6);});}),_0x511826[_0x2f1d('0x34')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x22c91a=_0x2f2c2e=>{const _0x3d0ec8=new _0x2f641a(this[_0x2f1d('0x9')][_0x2f1d('0x4f')]);_0x511826['addAnnotation'](_0x2f2c2e,_0x3d0ec8),this['_annotationToNarrowView'][_0x2f1d('0x46')](_0x2f2c2e,_0x3d0ec8),_0x3d0ec8[_0x2f1d('0x2b')](_0x2f1d('0xb'),'annotationType','number')['to'](_0x2f2c2e['view'],'isDirty','type',_0x2f1d('0x11')),_0x3d0ec8['on'](_0x2f1d('0x1a'),()=>{this[_0x2f1d('0x41')][_0x2f1d('0x4e')](),_0x320430[_0x2f1d('0x4d')]['first']!==_0x2f2c2e[_0x2f1d('0x40')]?(this[_0x2f1d('0xf')](_0x2f2c2e),_0x2f2c2e[_0x2f1d('0x40')]['element'][_0x2f1d('0x58')](),this[_0x2f1d('0x23')](_0x2f2c2e)):this[_0x2f1d('0x23')](null);});};for(const _0x138f3b of _0x5a17d6)_0x22c91a(_0x138f3b);this['listenTo'](_0x5a17d6,_0x2f1d('0x38'),(_0x293b9a,_0x2766bf)=>{_0x22c91a(_0x2766bf);}),this[_0x2f1d('0x22')](_0x5a17d6,_0x2f1d('0x43'),(_0x502aa5,_0x464fd4,_0x41eb81)=>{this['_annotationToNarrowView']['get'](_0x464fd4)['destroy'](),this[_0x2f1d('0x2a')][_0x2f1d('0x51')](_0x464fd4),_0x511826[_0x2f1d('0x4c')]({'removedAnnotation':_0x464fd4,'previousAnnotation':_0x5a17d6['get'](_0x41eb81-0x1),'nextAnnotation':_0x5a17d6[_0x2f1d('0x1e')](_0x41eb81+0x1)}),_0x464fd4===this[_0x2f1d('0x3d')]&&this[_0x2f1d('0x23')](null);},{'priority':_0x2f1d('0x10')}),this['listenTo'](_0x5a17d6,_0x2f1d('0x58'),(_0x2f5c18,_0x52e10a)=>{this['setActiveAnnotation'](_0x52e10a);}),this[_0x2f1d('0x22')](_0x5a17d6,_0x2f1d('0x2e'),()=>{this[_0x2f1d('0x23')](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5ef3a,_0x4b3aaa)=>{_0x4b3aaa['keyCode']===_0x3dd241[_0x2f1d('0x39')]&&_0x320430[_0x2f1d('0x35')]&&(this[_0x2f1d('0x41')][_0x2f1d('0x38')](_0x320430[_0x2f1d('0x4d')][_0x2f1d('0x1b')]),this[_0x2f1d('0xe')](),_0x4b3aaa[_0x2f1d('0x25')](),_0x4b3aaa['preventDefault']());}),this['_domEmitter'][_0x2f1d('0x22')](document,_0x2f1d('0x1'),(_0x51a5d9,_0x63d0d4)=>{const _0x4a1570=_0x63d0d4['target'];_0x320430['isVisible']&&_0x320430[_0x2f1d('0x47')][_0x2f1d('0x4')](_0x4a1570)||_0x511826[_0x2f1d('0x40')][_0x2f1d('0x47')][_0x2f1d('0x4')](_0x4a1570)||_0x51a5d9[_0x2f1d('0x6')]||(this[_0x2f1d('0x41')][_0x2f1d('0x4e')](),this[_0x2f1d('0xe')](),this[_0x2f1d('0x23')](null));});const _0x415ff9=this[_0x2f1d('0x9')]instanceof _0x51d3b5?this['context'][_0x2f1d('0x33')]:new _0x582851([this[_0x2f1d('0x9')]]);for(const _0x532e11 of _0x415ff9)this[_0x2f1d('0x3')](_0x532e11);this[_0x2f1d('0x22')](_0x415ff9,_0x2f1d('0x38'),(_0x45125d,_0x379a93)=>{this[_0x2f1d('0x22')](_0x379a93,'ready',()=>{this[_0x2f1d('0x3')](_0x379a93);});}),this[_0x2f1d('0x22')](_0x415ff9,_0x2f1d('0x43'),(_0x3a167f,_0x306b08)=>{_0x306b08[_0x2f1d('0xa')][_0x2f1d('0x7')](_0x2f1d('0x20'))&&this[_0x2f1d('0x18')](_0x306b08['plugins']['get'](_0x2f1d('0x20')));}),window[_0x2f1d('0x1f')](_0x2f1d('0x3b'),this[_0x2f1d('0x29')]),this[_0x2f1d('0x15')]();}['setActiveAnnotation'](_0x92a78d){if(_0x92a78d===this['activeAnnotation'])return;const _0x56ec17=this[_0x2f1d('0x9')][_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x27184f);if(_0x56ec17[_0x2f1d('0x24')]({'blurredAnnotation':this[_0x2f1d('0x3d')],'activatedAnnotation':_0x92a78d,'disableAnimationOnActivatedAnnotation':!0x0}),_0x92a78d)_0x56ec17['getSidebarItemView'](_0x92a78d)?this[_0x2f1d('0xf')](_0x92a78d):this['_hideBalloon']();else this[_0x2f1d('0xe')]();this[_0x2f1d('0x3d')]=_0x92a78d;}[_0x2f1d('0x13')](){if(!this['isAttached'])throw new _0x2102b8(_0x2f1d('0x2c'),this);this[_0x2f1d('0x23')](null);const _0x34ae8f=this[_0x2f1d('0x9')][_0x2f1d('0xa')]['get'](_0x27184f);this[_0x2f1d('0xe')](),Array[_0x2f1d('0x55')](this[_0x2f1d('0x2a')][_0x2f1d('0x42')](),_0x49f87e=>_0x49f87e[_0x2f1d('0x19')]()),this[_0x2f1d('0x2a')][_0x2f1d('0x4e')](),_0x34ae8f[_0x2f1d('0x17')](this[_0x2f1d('0x16')]),this[_0x2f1d('0x8')](),this[_0x2f1d('0x37')][_0x2f1d('0x8')](),this[_0x2f1d('0x9')]instanceof _0x51d3b5&&this[_0x2f1d('0x8')](this[_0x2f1d('0x9')][_0x2f1d('0x33')]);for(const _0x7b7c91 of Array[_0x2f1d('0x55')](this[_0x2f1d('0x32')]))this[_0x2f1d('0x18')](_0x7b7c91);window[_0x2f1d('0x2d')](_0x2f1d('0x3b'),this['_refreshPositioningDebounced']),this[_0x2f1d('0x29')][_0x2f1d('0x21')](),this['_selectedAnnotations']=[],this[_0x2f1d('0x36')]=!0x1,this['annotations']=null;}[_0x2f1d('0x19')](){this[_0x2f1d('0x36')]&&this[_0x2f1d('0x13')](),this[_0x2f1d('0x4b')][_0x2f1d('0x56')]();}[_0x2f1d('0x3')](_0x224504){const _0x3af356=_0x224504[_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x4c6b86),_0x220fda=this[_0x2f1d('0x9')][_0x2f1d('0xa')][_0x2f1d('0x1e')](_0x27184f),_0xb0c61b=this[_0x2f1d('0x16')],_0x5c5b52=this['balloonPanelView'],_0x24b15b=()=>{const _0x111c87=_0x3af356[_0x2f1d('0x44')]({'annotations':this['annotations'],'activeAnnotation':this[_0x2f1d('0x3d')]});this[_0x2f1d('0x48')](_0x111c87),this[_0x2f1d('0x23')](_0x111c87[0x0]||null);};this['listenTo'](_0x3af356,_0x2f1d('0x24'),_0x24b15b),this[_0x2f1d('0x22')](_0x3af356,_0x2f1d('0x2e'),(_0x33c4d5,{isAnnotationTracked:_0x315359})=>{this[_0x2f1d('0x3d')]&&_0x315359(this[_0x2f1d('0x3d')])&&(this[_0x2f1d('0x48')]([]),this[_0x2f1d('0x23')](null));}),this[_0x2f1d('0x22')](_0x3af356,_0x2f1d('0x3c'),()=>{this[_0x2f1d('0x29')]();}),this['listenTo'](_0xb0c61b,_0x2f1d('0x2e'),_0x5ebf1e=>{_0x3af356[_0x2f1d('0x27')]()&&_0x5ebf1e[_0x2f1d('0x1d')]();},{'priority':'high'}),this[_0x2f1d('0x22')](this['_domEmitter'],_0x2f1d('0x1'),(_0x29cdcd,_0x18c4ff)=>{const _0x29ed3f=_0x18c4ff[_0x2f1d('0x1c')];_0x5c5b52[_0x2f1d('0x35')]&&_0x5c5b52[_0x2f1d('0x47')]['contains'](_0x29ed3f)||_0x220fda['view'][_0x2f1d('0x47')][_0x2f1d('0x4')](_0x29ed3f)||this['activeAnnotation']&&_0x3af356[_0x2f1d('0x27')]()&&(_0x24b15b(),_0x29cdcd[_0x2f1d('0x6')]=!0x0);},{'priority':_0x2f1d('0x14')}),this['_editorAnnotations']['add'](_0x3af356);}[_0x2f1d('0x18')](_0x4658a6){_0x4658a6&&(this[_0x2f1d('0x8')](_0x4658a6),this[_0x2f1d('0x32')][_0x2f1d('0x43')](_0x4658a6));}['_setSelectedAnnotations'](_0x423cc5){for(const _0x101bd6 of this['_selectedAnnotations'])_0x423cc5['includes'](_0x101bd6)||this[_0x2f1d('0x41')]['delete'](_0x101bd6[_0x2f1d('0x40')]);this['_selectedAnnotations']=_0x423cc5;}['_refreshPositioning'](){const _0x4d25ed=this[_0x2f1d('0x4a')];this[_0x2f1d('0x16')]['refreshPositioning'](),_0x4d25ed['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x3c2bc7){if(this['_manuallyClosedAnnotationViews'][_0x2f1d('0x7')](_0x3c2bc7[_0x2f1d('0x40')]))return;const _0x1f690e=this[_0x2f1d('0x4a')][_0x2f1d('0x4d')][_0x2f1d('0x1b')];_0x1f690e!==_0x3c2bc7[_0x2f1d('0x40')]?(_0x1f690e&&this[_0x2f1d('0x2')](_0x1f690e),this[_0x2f1d('0x52')](_0x3c2bc7[_0x2f1d('0x40')]),this[_0x2f1d('0x4a')]['content']['clear'](),this['balloonPanelView']['content']['add'](_0x3c2bc7[_0x2f1d('0x40')]),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}[_0x2f1d('0x30')](){const _0x154e71=this['balloonPanelView'][_0x2f1d('0x4d')]['first'],_0x34cdc2=_0x154e71&&this['annotations']['getByView'](_0x154e71);if(!_0x34cdc2||!this[_0x2f1d('0x2a')]['has'](_0x34cdc2))return;const _0x1e19be=this[_0x2f1d('0x2a')][_0x2f1d('0x1e')](_0x34cdc2)['element'],_0x5d3339=function(){const _0x3d6945=_0x15979e['defaultPositions'];return[_0x3d6945['southArrowNorthEast'],_0x3d6945['northArrowSouthEast'],_0x3d6945[_0x2f1d('0x50')],_0x3d6945[_0x2f1d('0x57')],_0x3d6945[_0x2f1d('0x3e')],_0x3d6945[_0x2f1d('0x45')]];}();this[_0x2f1d('0x4a')][_0x2f1d('0x31')]({'target':_0x1e19be,'positions':_0x5d3339});}[_0x2f1d('0xe')](){const _0x4d39ee=this[_0x2f1d('0x4a')],_0x264a4f=_0x4d39ee[_0x2f1d('0x4d')]['first'];_0x264a4f&&(this['_detachListeners'](_0x264a4f),_0x4d39ee[_0x2f1d('0x5')](),_0x4d39ee[_0x2f1d('0x4d')][_0x2f1d('0x4e')]());}['_attachListeners'](_0x2f6d82){this[_0x2f1d('0x22')](_0x2f6d82,_0x2f1d('0x53'),()=>this[_0x2f1d('0x30')]()),this[_0x2f1d('0x22')](_0x2f6d82,_0x2f1d('0xd'),(_0x3bc829,_0x521bec)=>{this[_0x2f1d('0x41')][_0x2f1d('0x38')](_0x2f6d82),this[_0x2f1d('0xe')](),_0x521bec();});}[_0x2f1d('0x2')](_0x50aa79){this['stopListening'](_0x50aa79);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x406d=['_annotations','Sidebar','_getMaxAvailableTop','_alignForBottomChange','_detachFromContainer','change:targetRect','destroy','sidebar.container','height','delete','list','change:bottom','_setItemTop','sidebar.preventScrollOutOfView','_attachToContainer','push','nodeType','change:_lastItem','change:top','content','render','container','config','stopListening','isActive','remove','getIndex','_annotationToSidebarItemView','_getTargetTop','top','sidebar-attachtocontainer-missing-container','bottom','_alignToTargetRect','_alignBeforeItem','define','_spaceBetweenItems','setContainer','_getItemAfter','bind','_sidebarItemViewToAnnotation','context','_lastItem','clear','_recalculateBuffer','listenTo','updateHeight','appendChild','class','targetRect','_alignAfterItem','init','max','_updateLastItem','target','object','_targetTop','refresh','addAnnotation','sidebar-setcontainer-invalid-element','minHeight','length','view','set','_getItemBefore','getSidebarItemView','_destroySidebarItemView','_createSidebarView','isAnimationDisabled','element','_recalculate','_activeAnnotation','add','last','get'];(function(_0x24c901,_0x406d96){const _0x3fe832=function(_0x1de6cc){while(--_0x1de6cc){_0x24c901['push'](_0x24c901['shift']());}};_0x3fe832(++_0x406d96);}(_0x406d,0xfe));const _0x3fe8=function(_0x24c901,_0x406d96){_0x24c901=_0x24c901-0x0;let _0x3fe832=_0x406d[_0x24c901];return _0x3fe832;};import{ContextPlugin as _0x5f1b67}from'ckeditor5/src/core';import{Rect as _0x5aaf2c,CKEditorError as _0x192a37}from'ckeditor5/src/utils';import _0x48f658 from'./view/sidebarview';import _0x3dc90f from'./view/sidebaritemview';export default class z extends _0x5f1b67{static get['pluginName'](){return _0x3fe8('0x2b');}constructor(_0x2a0575){super(_0x2a0575),this['set'](_0x3fe8('0x9'),void 0x0),this[_0x3fe8('0x1d')]=this[_0x3fe8('0x22')](),this['set'](_0x3fe8('0x3f'),null),this[_0x3fe8('0x3')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3fe8('0x45')]=new Map(),this['context'][_0x3fe8('0x40')][_0x3fe8('0x2')](_0x3fe8('0x37'),!0x1),this[_0x3fe8('0x2a')]=null,this[_0x3fe8('0x26')]=null,this[_0x3fe8('0xb')]=[];}[_0x3fe8('0x12')](){const _0x30ecaf=this[_0x3fe8('0x8')]['config'][_0x3fe8('0x29')](_0x3fe8('0x31'));_0x30ecaf&&this[_0x3fe8('0x4')](_0x30ecaf);}[_0x3fe8('0x4')](_0x18fbfa){if(!y(_0x18fbfa))throw new _0x192a37(_0x3fe8('0x1a'));this[_0x3fe8('0x3f')]=_0x18fbfa;}[_0x3fe8('0x38')]({viewClass:_0x514969='',spaceBetweenItems:_0x14dda2=0x19}={}){if(!y(this[_0x3fe8('0x3f')]))throw new _0x192a37(_0x3fe8('0x48'),this);this[_0x3fe8('0x3f')][_0x3fe8('0xe')](this[_0x3fe8('0x1d')][_0x3fe8('0x24')]),this['view'][_0x3fe8('0xf')]=_0x514969,this['_spaceBetweenItems']=_0x14dda2;}['rearrange']({removedAnnotation:_0x3f15a8,previousAnnotation:_0x4bbc6b,nextAnnotation:_0x1cfd48}){const _0x25f571=this[_0x3fe8('0x20')](_0x3f15a8);this['view'][_0x3fe8('0x34')][_0x3fe8('0x43')](_0x25f571),this['_destroySidebarItemView'](_0x3f15a8),_0x4bbc6b&&this[_0x3fe8('0x0')](this[_0x3fe8('0x20')](_0x4bbc6b)),_0x1cfd48&&this[_0x3fe8('0x0')](this[_0x3fe8('0x20')](_0x1cfd48)),this[_0x3fe8('0x14')]();}[_0x3fe8('0x18')]({blurredAnnotation:_0x183548,activatedAnnotation:_0x424a52,disableAnimationOnActivatedAnnotation:_0x2f0900}){if(this[_0x3fe8('0x26')]=_0x424a52,_0x183548){_0x183548[_0x3fe8('0x42')]=!0x1;const _0x4e36b3=this[_0x3fe8('0x20')](_0x183548);_0x4e36b3&&_0x2f0900&&(_0x4e36b3['isAnimationDisabled']=!0x1);}if(_0x424a52){const _0x179bd4=this[_0x3fe8('0x20')](_0x424a52);_0x179bd4&&(_0x424a52[_0x3fe8('0x42')]=!0x0,_0x2f0900&&(_0x179bd4[_0x3fe8('0x23')]=!0x0,_0x179bd4['top']+=0x1),this['_alignToTargetRect'](_0x179bd4));}}[_0x3fe8('0x2e')](_0x5daa7d){if(this[_0x3fe8('0x41')](),this[_0x3fe8('0x1d')]['element'][_0x3fe8('0x43')](),_0x5daa7d)for(const _0x451d37 of _0x5daa7d)this[_0x3fe8('0x21')](_0x451d37);this[_0x3fe8('0x1d')][_0x3fe8('0x34')][_0x3fe8('0xa')](),this[_0x3fe8('0x1d')][_0x3fe8('0xf')]='',this['_lastItem']=null;}[_0x3fe8('0x19')](_0x531c8e,_0x24fa4c){_0x24fa4c||(_0x24fa4c=_0x531c8e[_0x3fe8('0x1d')]);const _0x787ec2=new _0x3dc90f(this['context']['locale']);this[_0x3fe8('0x7')]['set'](_0x787ec2,_0x531c8e),this[_0x3fe8('0x45')][_0x3fe8('0x1e')](_0x531c8e,_0x787ec2),_0x787ec2[_0x3fe8('0x3d')][_0x3fe8('0x27')](_0x24fa4c),this[_0x3fe8('0xc')](_0x531c8e[_0x3fe8('0x1d')],_0x3fe8('0x2f'),(_0x46fedc,_0x57f25e,_0x2a24ae)=>{const _0x2f576e=this[_0x3fe8('0x46')](_0x531c8e,_0x2a24ae);_0x787ec2[_0x3fe8('0x17')]!=_0x2f576e&&(_0x787ec2[_0x3fe8('0x17')]=_0x2f576e,this[_0x3fe8('0x36')](_0x787ec2,_0x2f576e));}),this[_0x3fe8('0xc')](_0x787ec2,_0x3fe8('0x3c'),()=>{this[_0x3fe8('0x25')](_0x787ec2,_0x3fe8('0x47'));}),this['listenTo'](_0x787ec2,_0x3fe8('0x35'),()=>{this['_recalculate'](_0x787ec2,_0x3fe8('0x49'));}),this[_0x3fe8('0x0')](_0x787ec2);const _0x24346a=this[_0x3fe8('0x1f')](_0x787ec2);if(_0x24346a)this[_0x3fe8('0x11')](_0x24346a,_0x787ec2)||this['_alignToTargetRect'](_0x787ec2);else this[_0x3fe8('0x0')](_0x787ec2);return this['_updateLastItem'](),this[_0x3fe8('0x1d')][_0x3fe8('0x34')][_0x3fe8('0x27')](_0x787ec2),_0x787ec2;}['_alignForTopChange'](_0x4ca901){if(!_0x4ca901[_0x3fe8('0x3d')]['length'])return;const _0x59c1a8=this[_0x3fe8('0x1f')](_0x4ca901);if(!_0x59c1a8)return;const _0x2c291d=this[_0x3fe8('0x7')][_0x3fe8('0x29')](_0x59c1a8),_0x1bee63=this[_0x3fe8('0x26')];_0x1bee63&&_0x1bee63===_0x2c291d?this[_0x3fe8('0x11')](_0x59c1a8,_0x4ca901):this[_0x3fe8('0x1')](_0x4ca901,_0x59c1a8);}[_0x3fe8('0x2d')](_0x58beeb){if(!_0x58beeb[_0x3fe8('0x3d')][_0x3fe8('0x1c')])return;const _0x3d5721=this['_getItemAfter'](_0x58beeb);if(!_0x3d5721)return;const _0x145da8=this['_sidebarItemViewToAnnotation'][_0x3fe8('0x29')](_0x3d5721),_0x2ffb30=this[_0x3fe8('0x8')][_0x3fe8('0x40')][_0x3fe8('0x29')](_0x3fe8('0x37')),_0x27c41c=this[_0x3fe8('0x26')];_0x27c41c&&_0x27c41c===_0x145da8&&_0x2ffb30?(this[_0x3fe8('0x1')](_0x3d5721,_0x58beeb),this[_0x3fe8('0x11')](_0x58beeb,_0x3d5721)):_0x27c41c&&_0x27c41c===_0x145da8?this[_0x3fe8('0x1')](_0x3d5721,_0x58beeb):this[_0x3fe8('0x11')](_0x58beeb,_0x3d5721);}[_0x3fe8('0x25')](_0x1d3400,_0x1f9078){0x0===this['_recalculateBuffer'][_0x3fe8('0x1c')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3d77d3,changedProp:_0x414ca2}of this[_0x3fe8('0xb')])_0x3fe8('0x47')===_0x414ca2?this['_alignForTopChange'](_0x3d77d3):this[_0x3fe8('0x2d')](_0x3d77d3);this[_0x3fe8('0xb')]=[];},0xa),this['_recalculateBuffer'][_0x3fe8('0x39')]({'sidebarItemView':_0x1d3400,'changedProp':_0x1f9078});}[_0x3fe8('0x20')](_0x462085){return this['_annotationToSidebarItemView']['get'](_0x462085);}['destroy'](){this[_0x3fe8('0x1d')][_0x3fe8('0x30')]();}[_0x3fe8('0x21')](_0x40ec82){const _0x110869=this[_0x3fe8('0x20')](_0x40ec82);this[_0x3fe8('0x41')](_0x110869),this[_0x3fe8('0x41')](_0x40ec82[_0x3fe8('0x1d')]),_0x110869[_0x3fe8('0x30')](),this[_0x3fe8('0x45')]['delete'](_0x40ec82),this[_0x3fe8('0x7')][_0x3fe8('0x33')](_0x110869);}['_createSidebarView'](){const _0x275f59=new _0x48f658(this['context']['locale']);return _0x275f59[_0x3fe8('0x3e')](),this['on'](_0x3fe8('0x3b'),(_0x3a3231,_0x176003,_0x204d42,_0x194169)=>{_0x194169&&_0x275f59['unbind'](_0x3fe8('0x1b')),_0x204d42?_0x275f59[_0x3fe8('0x6')](_0x3fe8('0x1b'))['to'](_0x204d42,_0x3fe8('0x49')):_0x275f59['minHeight']=null;}),_0x275f59;}[_0x3fe8('0x14')](){var _0x3dcf8a;this['_lastItem']=(null===(_0x3dcf8a=this[_0x3fe8('0x2a')])||void 0x0===_0x3dcf8a?void 0x0:_0x3dcf8a[_0x3fe8('0x28')])?this['getSidebarItemView'](this[_0x3fe8('0x2a')][_0x3fe8('0x28')]):null;}[_0x3fe8('0x1f')](_0x2e5064){var _0x12c337;const _0x320549=this[_0x3fe8('0x7')]['get'](_0x2e5064),_0x53cafc=_0x320549&&(null===(_0x12c337=this[_0x3fe8('0x2a')])||void 0x0===_0x12c337?void 0x0:_0x12c337[_0x3fe8('0x29')](this[_0x3fe8('0x2a')][_0x3fe8('0x44')](_0x320549)-0x1));return _0x53cafc&&this[_0x3fe8('0x20')](_0x53cafc)||null;}[_0x3fe8('0x5')](_0x22176e){var _0xdc3132;const _0x33aa2c=this[_0x3fe8('0x7')][_0x3fe8('0x29')](_0x22176e),_0x5cd3ec=_0x33aa2c&&(null===(_0xdc3132=this[_0x3fe8('0x2a')])||void 0x0===_0xdc3132?void 0x0:_0xdc3132[_0x3fe8('0x29')](this[_0x3fe8('0x2a')][_0x3fe8('0x44')](_0x33aa2c)+0x1));return _0x5cd3ec&&this[_0x3fe8('0x20')](_0x5cd3ec)||null;}[_0x3fe8('0x1')](_0xecb69e,_0x34f522){_0xecb69e[_0x3fe8('0xd')]();const _0x28b600=H(_0x34f522[_0x3fe8('0x49')]+this[_0x3fe8('0x3')],_0xecb69e[_0x3fe8('0x47')]);return!!_0x28b600&&(this[_0x3fe8('0x36')](_0x34f522,_0x34f522['top']-_0x28b600),!0x0);}[_0x3fe8('0x11')](_0x20b4dc,_0xcc27d7){_0x20b4dc[_0x3fe8('0xd')]();const _0x551cd8=H(_0x20b4dc[_0x3fe8('0x49')]+this[_0x3fe8('0x3')],_0xcc27d7[_0x3fe8('0x47')]);return!!_0x551cd8&&(this[_0x3fe8('0x36')](_0xcc27d7,_0xcc27d7[_0x3fe8('0x47')]+_0x551cd8,!0x1),!0x0);}[_0x3fe8('0x0')](_0x13771d){const _0x46efde=this[_0x3fe8('0x7')][_0x3fe8('0x29')](_0x13771d);if(!_0x46efde||!_0x46efde[_0x3fe8('0x15')]||!_0x46efde[_0x3fe8('0x10')])return;const _0x2ec002=this[_0x3fe8('0x46')](_0x46efde,_0x46efde['targetRect']);this[_0x3fe8('0x36')](_0x13771d,_0x2ec002);}[_0x3fe8('0x46')](_0x58c726,_0x4d2e9b){if(null===_0x4d2e9b)return 0x0;if(_0x58c726[_0x3fe8('0x15')]instanceof _0x5aaf2c)return _0x4d2e9b[_0x3fe8('0x47')];{const _0x1a710f=new _0x5aaf2c(this[_0x3fe8('0x1d')]['element'])[_0x3fe8('0x47')];return _0x4d2e9b[_0x3fe8('0x47')]-_0x1a710f;}}[_0x3fe8('0x36')](_0x3d5912,_0x119d8d,_0x1c5525=this[_0x3fe8('0x8')][_0x3fe8('0x40')][_0x3fe8('0x29')](_0x3fe8('0x37'))){_0x1c5525&&(_0x119d8d=Math[_0x3fe8('0x13')](_0x119d8d,this[_0x3fe8('0x2c')](_0x3d5912))),_0x3d5912[_0x3fe8('0x47')]=_0x119d8d;}[_0x3fe8('0x2c')](_0x5b5697){let _0x2466a6=this[_0x3fe8('0x1f')](_0x5b5697),_0x8c7b0b=0x0;for(;_0x2466a6;)_0x2466a6['updateHeight'](),_0x8c7b0b+=this['_spaceBetweenItems']+_0x2466a6[_0x3fe8('0x32')],_0x2466a6=this[_0x3fe8('0x1f')](_0x2466a6);return _0x8c7b0b;}}function H(_0x4f01bd,_0x3095cb){return Math[_0x3fe8('0x13')](_0x4f01bd-_0x3095cb,0x0);}function y(_0x5bdb46){return null!==_0x5bdb46&&_0x3fe8('0x16')==typeof _0x5bdb46&&0x1===_0x5bdb46[_0x3fe8('0x3a')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe155=['set','ck-annotation-counter','counterView','add','ck-annotation-counter__badge','toString','isDirty','_badge','bindTemplate','icon','annotationType','number','extendTemplate','ck-annotation-counter__badge--','children'];(function(_0x293ecc,_0xe15550){const _0x38f78c=function(_0x59cde2){while(--_0x59cde2){_0x293ecc['push'](_0x293ecc['shift']());}};_0x38f78c(++_0xe15550);}(_0xe155,0x111));const _0x38f7=function(_0x293ecc,_0xe15550){_0x293ecc=_0x293ecc-0x0;let _0x38f78c=_0xe155[_0x293ecc];return _0x38f78c;};import{ButtonView as _0xd8420d,View as _0xc69b16}from'ckeditor5/src/ui';import _0x20f889 from'../../../theme/icons/add-comment.svg';export default class D extends _0xd8420d{constructor(_0x50b06e){super(_0x50b06e);const _0x1de201=this[_0x38f7('0x5')];this[_0x38f7('0xc')](_0x38f7('0x3'),!0x1),this[_0x38f7('0xc')](_0x38f7('0x8'),0x0),this['bind']('_badge')['to'](this,_0x38f7('0x3'),this,_0x38f7('0x8'),(_0x266e44,_0x5c4f00)=>_0x266e44?'...':_0x5c4f00[_0x38f7('0x2')]()),this[_0x38f7('0xc')]('annotationType',''),this[_0x38f7('0x6')]=_0x20f889,this[_0x38f7('0x9')]({'attributes':{'class':[_0x38f7('0xd')]}}),this[_0x38f7('0xe')]=new _0xc69b16(),this[_0x38f7('0xe')]['setTemplate']({'tag':'span','attributes':{'class':[_0x38f7('0x1'),_0x1de201['to'](_0x38f7('0x7'),_0x5246c8=>_0x38f7('0xa')+_0x5246c8),_0x1de201['if'](_0x38f7('0x3'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1de201['to'](_0x38f7('0x4'))}]}),this[_0x38f7('0xb')][_0x38f7('0x0')](this['counterView']);}}
|