@ckeditor/ckeditor5-comments 35.3.2 → 35.4.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 -1
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/translations/ar.po +3 -3
- package/lang/translations/bg.po +3 -3
- package/lang/translations/bn.po +3 -3
- package/lang/translations/ca.po +3 -3
- package/lang/translations/cs.po +3 -3
- package/lang/translations/da.po +3 -3
- package/lang/translations/de.po +3 -3
- package/lang/translations/el.po +3 -3
- package/lang/translations/es.po +3 -3
- package/lang/translations/et.po +3 -3
- package/lang/translations/fi.po +3 -3
- package/lang/translations/fr.po +3 -3
- package/lang/translations/he.po +3 -3
- package/lang/translations/hi.po +3 -3
- package/lang/translations/hu.po +3 -3
- package/lang/translations/id.po +3 -3
- package/lang/translations/it.po +3 -3
- package/lang/translations/ja.po +3 -3
- package/lang/translations/ko.po +3 -3
- package/lang/translations/lt.po +3 -3
- package/lang/translations/lv.po +3 -3
- package/lang/translations/ms.po +3 -3
- package/lang/translations/nl.po +3 -3
- package/lang/translations/no.po +3 -3
- package/lang/translations/pl.po +3 -3
- package/lang/translations/pt-br.po +3 -3
- package/lang/translations/pt.po +3 -3
- package/lang/translations/ro.po +3 -3
- package/lang/translations/ru.po +3 -3
- package/lang/translations/sk.po +3 -3
- package/lang/translations/sr.po +3 -3
- package/lang/translations/sv.po +3 -3
- package/lang/translations/th.po +3 -3
- package/lang/translations/tr.po +3 -3
- package/lang/translations/uk.po +3 -3
- package/lang/translations/vi.po +3 -3
- package/lang/translations/zh-cn.po +3 -3
- package/lang/translations/zh.po +3 -3
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/annotation.css +23 -6
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13b4=['editorannotations-invalid-source-callback','pluginName','getByInnerView','editor','refresh','requires','annotation','listenTo','change:range','focusTracker','_editorAnnotationsData','change:isFocused','_editorAnnotations','EditorAnnotations','directChange','element','_dataCollectors','plugins','isReadOnly','update','remove','refreshSelectedViews','fire','function','from','push','init','document','blur','map','addSourceCollector','collection','containsRange','innerView','view','editing','hasDomSelection','model','isEqual','add','isCollapsed','range','sort','selection','set','getOrderedSelectedAnnotations'];(function(_0x3097ba,_0x13b42b){const _0x1d9e2f=function(_0x86d184){while(--_0x86d184){_0x3097ba['push'](_0x3097ba['shift']());}};_0x1d9e2f(++_0x13b42b);}(_0x13b4,0x130));const _0x1d9e=function(_0x3097ba,_0x13b42b){_0x3097ba=_0x3097ba-0x0;let _0x1d9e2f=_0x13b4[_0x3097ba];return _0x1d9e2f;};import{Plugin as _0x1e779d}from'ckeditor5/src/core';import{CKEditorError as _0x568bf0}from'ckeditor5/src/utils';import{debounce as _0x180ff9}from'lodash-es';import _0x2c536d from'./annotations';export default class k extends _0x1e779d{static get[_0x1d9e('0x17')](){return[_0x2c536d];}static get[_0x1d9e('0x13')](){return _0x1d9e('0x1f');}constructor(_0x2a5191){super(_0x2a5191),this[_0x1d9e('0x22')]=new Set(),this['_editorAnnotations']=new Set();}[_0x1d9e('0x2c')](){const _0x4c53ae=this[_0x1d9e('0x15')],_0x5eb20c=_0x4c53ae[_0x1d9e('0x9')][_0x1d9e('0x2d')][_0x1d9e('0xf')],_0x32bb36=_0x180ff9(()=>this[_0x1d9e('0x27')](),0xa);_0x5eb20c['on'](_0x1d9e('0x1a'),(_0x378285,_0x23c76c)=>{_0x23c76c[_0x1d9e('0x20')]&&(_0x32bb36['cancel'](),this[_0x1d9e('0x27')]());}),this[_0x1d9e('0x19')](_0x4c53ae['editing']['view'][_0x1d9e('0x2d')],_0x1d9e('0x1d'),(_0x452b9b,_0xfb593e,_0x3a6948)=>{_0x3a6948&&_0x32bb36();}),this[_0x1d9e('0x19')](_0x4c53ae['ui']['focusTracker'],_0x1d9e('0x1d'),(_0x59feae,_0x1551e2,_0x58aa33)=>{_0x58aa33||_0x4c53ae[_0x1d9e('0x24')]||this[_0x1d9e('0x28')](_0x1d9e('0x0'),{'isAnnotationTracked':_0x2a0162=>this[_0x1d9e('0x1c')]['has'](_0x2a0162[_0x1d9e('0x5')])});}),this[_0x1d9e('0x19')](this[_0x1d9e('0x15')]['ui'],_0x1d9e('0x25'),()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x897c00){if(this[_0x1d9e('0x1e')]['has'](_0x897c00))return;this[_0x1d9e('0x1e')][_0x1d9e('0xb')](_0x897c00[_0x1d9e('0x6')]),this[_0x1d9e('0x15')]['ui'][_0x1d9e('0x1b')]['add'](_0x897c00['view'][_0x1d9e('0x21')]);const _0x30a01a=this[_0x1d9e('0x15')][_0x1d9e('0x23')]['get'](_0x2c536d);this[_0x1d9e('0x19')](_0x30a01a[_0x1d9e('0x3')],'remove',(_0x5279a8,_0x57e54d)=>{this[_0x1d9e('0x15')]['ui'][_0x1d9e('0x1b')][_0x1d9e('0x26')](_0x57e54d['view']['element']),this[_0x1d9e('0x1e')]['delete'](_0x57e54d[_0x1d9e('0x6')]);});}[_0x1d9e('0x8')](){return this[_0x1d9e('0x15')][_0x1d9e('0x7')][_0x1d9e('0x6')]['hasDomSelection'];}[_0x1d9e('0x2')](_0x33ddf0){if(_0x1d9e('0x29')!=typeof _0x33ddf0)throw new _0x568bf0(_0x1d9e('0x12'));this[_0x1d9e('0x22')][_0x1d9e('0xb')](_0x33ddf0);}['refreshSelectedViews'](){this['fire'](_0x1d9e('0x16'));}[_0x1d9e('0x11')]({activeAnnotation:_0x30fc65,annotations:_0x13c035}){const _0x4902c9=[],_0x1f71ab=this['editor']['model'][_0x1d9e('0x2d')][_0x1d9e('0xf')],_0x120e66=Array[_0x1d9e('0x2a')](_0x1f71ab['getRanges']());for(const [_0x2e018e,_0x24349c]of this[_0x1d9e('0x1c')]){const _0x4ac706=_0x2da11a(_0x24349c),_0x501c27=_0x13c035[_0x1d9e('0x14')](_0x2e018e);_0x4ac706&&_0x501c27&&_0x4902c9[_0x1d9e('0x2b')]({'annotation':_0x501c27,'range':_0x4ac706});}function _0x2da11a(_0x5e253b){for(const _0x5abaa2 of _0x5e253b)for(const _0x10c06f of _0x120e66)if(_0x5abaa2[_0x1d9e('0x4')](_0x10c06f,!_0x1f71ab[_0x1d9e('0xc')]))return _0x5abaa2;return null;}return _0x4902c9[_0x1d9e('0xe')]((_0x372203,_0x466db6)=>{const _0x223b34=_0x372203[_0x1d9e('0xd')],_0x42543a=_0x466db6[_0x1d9e('0xd')];if(!_0x223b34[_0x1d9e('0xa')](_0x42543a)){if(_0x223b34['containsRange'](_0x42543a,!0x0))return 0x1;if(_0x42543a['containsRange'](_0x223b34,!0x0))return-0x1;}return _0x372203[_0x1d9e('0x18')]==_0x30fc65?-0x1:_0x466db6[_0x1d9e('0x18')]==_0x30fc65?0x1:0x0;})[_0x1d9e('0x1')](_0x5d695d=>_0x5d695d[_0x1d9e('0x18')]);}get[_0x1d9e('0x1c')](){const _0x190e48=new Map();for(const _0x13626c of Array[_0x1d9e('0x2a')](this['_dataCollectors']))for(const [_0x433998,_0x1ba5ca]of _0x13626c())_0x190e48[_0x1d9e('0x10')](_0x433998,_0x1ba5ca);return _0x190e48;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40bf=['set','afterInit','focusTracker','has','inlineannotations-not-allowed-with-context','focus','inline','setActiveAnnotation','isFocused','_setSelectedAnnotations','visibleView','get','getSelection','mousedown','change:isFocused','switchTo','updatePosition','EditorAnnotations','update','_addedAnnotations','register','Esc','_selectedAnnotations','includes','destroy','init','requires','getRangeAt','every','editableElement','length','annotations','detach','target','InlineAnnotations','listenTo','activeAnnotation','stopListening','delete','attach','addObserver','inlineannotations-attach-already-attached','hasView','change:visibleView','plugins','pluginName','document','_manuallyClosed','view','_addAnnotationToBalloon','_balloon','_forceRefresh','_removeAnnotationFromBalloon','refresh','inlineannotations-detach-not-attached','editor','_closeAnnotation','blur','getByView','isAttached','context','selection','keystrokes','add','getOrderedSelectedAnnotations','editing','isActive','remove'];(function(_0x91cc1a,_0x40bf78){const _0x29eed3=function(_0x32654e){while(--_0x32654e){_0x91cc1a['push'](_0x91cc1a['shift']());}};_0x29eed3(++_0x40bf78);}(_0x40bf,0x8a));const _0x29ee=function(_0x91cc1a,_0x40bf78){_0x91cc1a=_0x91cc1a-0x0;let _0x29eed3=_0x40bf[_0x91cc1a];return _0x29eed3;};import{Plugin as _0x1151ca}from'ckeditor5/src/core';import _0xfb4ccc from'./annotationsuis';import _0xd6a0d8 from'./editorannotations';import{ContextualBalloon as _0x4e0336}from'ckeditor5/src/ui';import{MouseObserver as _0x1f9d5c}from'ckeditor5/src/engine';import{CKEditorError as _0x2a2f33}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x1151ca{static get[_0x29ee('0x18')](){return[_0xd6a0d8,_0x4e0336,_0xfb4ccc];}static get[_0x29ee('0x2b')](){return _0x29ee('0x20');}constructor(_0x1ad473){super(_0x1ad473),_0x1ad473['editing'][_0x29ee('0x2e')][_0x29ee('0x26')](_0x1f9d5c),this[_0x29ee('0x39')]=!0x1,this[_0x29ee('0x42')](_0x29ee('0x22'),null),this[_0x29ee('0x1d')]=null,this[_0x29ee('0x2d')]=new Set(),this['_balloon']=_0x1ad473[_0x29ee('0x2a')][_0x29ee('0x9')](_0x4e0336),this[_0x29ee('0x11')]=new Set(),this[_0x29ee('0x14')]=[],this[_0x29ee('0x31')]=!0x1;}[_0x29ee('0x17')](){const _0x2d618f=this[_0x29ee('0x35')][_0x29ee('0x2a')]['get'](_0xfb4ccc);_0x2d618f['context']===this['editor']&&(_0x2d618f[_0x29ee('0x12')]('inline',this),this['editor'][_0x29ee('0x3c')]['set'](_0x29ee('0x13'),(_0x1ef033,_0x523711)=>{const _0x5168df=this['_balloon'];if(this[_0x29ee('0x39')]&&_0x5168df[_0x29ee('0x8')]){const _0x5a025e=this[_0x29ee('0x1d')]['getByView'](_0x5168df[_0x29ee('0x8')]);this[_0x29ee('0x36')](_0x5a025e),_0x523711();}}));}[_0x29ee('0x43')](){const _0xf54310=this[_0x29ee('0x35')]['plugins'][_0x29ee('0x9')](_0xfb4ccc);_0xf54310[_0x29ee('0x3a')]===this[_0x29ee('0x35')]&&(_0xf54310['hasActive']()||_0xf54310[_0x29ee('0xd')](_0x29ee('0x4')));}[_0x29ee('0x5')](_0x119775){_0x119775!==this[_0x29ee('0x22')]&&(this[_0x29ee('0x22')]&&(this[_0x29ee('0x22')]['isActive']=!0x1),_0x119775&&this[_0x29ee('0x35')]['ui'][_0x29ee('0x0')][_0x29ee('0x6')]&&(this[_0x29ee('0x2f')](_0x119775,!0x0),_0x119775[_0x29ee('0x40')]=!0x0),_0x119775||this['_setSelectedAnnotations']([]),this[_0x29ee('0x22')]=_0x119775);}[_0x29ee('0x25')](_0x338b2b){this[_0x29ee('0x1d')]=_0x338b2b;const _0x23dce8=this[_0x29ee('0x35')][_0x29ee('0x2a')][_0x29ee('0x9')](_0xfb4ccc),_0x5c7c47=this['_balloon'];if(this[_0x29ee('0x39')])throw new _0x2a2f33(_0x29ee('0x27'),this);if(_0x23dce8['context']!==this['editor'])throw new _0x2a2f33(_0x29ee('0x2'),this);const _0x46db45=this[_0x29ee('0x35')][_0x29ee('0x2a')][_0x29ee('0x9')](_0x29ee('0xf'));this[_0x29ee('0x21')](_0x46db45,_0x29ee('0x33'),function(){const _0x354508=_0x46db45[_0x29ee('0x3e')]({'activeAnnotation':this[_0x29ee('0x22')],'annotations':this['annotations']});if(!this[_0x29ee('0x31')]&&(_0x1f5776=_0x354508,_0x448789=this[_0x29ee('0x14')],_0x1f5776['length']===_0x448789[_0x29ee('0x1c')]&&_0x1f5776[_0x29ee('0x1a')](_0x2f055f=>_0x448789[_0x29ee('0x15')](_0x2f055f))))return;var _0x1f5776,_0x448789;this[_0x29ee('0x31')]=!0x1,this[_0x29ee('0x7')](_0x354508),this[_0x29ee('0x5')](_0x354508[0x0]||null);}['bind'](this)),this[_0x29ee('0x21')](_0x46db45,_0x29ee('0x37'),(_0x531d55,{isAnnotationTracked:_0x3b17e6})=>{this[_0x29ee('0x22')]&&_0x3b17e6(this['activeAnnotation'])&&(this[_0x29ee('0x7')]([]),this[_0x29ee('0x5')](null));}),this[_0x29ee('0x21')](this[_0x29ee('0x35')]['ui']['focusTracker'],_0x29ee('0xc'),(_0x4dc09d,_0x5c4218,_0x378d11)=>{_0x378d11||this[_0x29ee('0x5')](null);}),this[_0x29ee('0x21')](_0x338b2b,_0x29ee('0x41'),(_0x4548d9,_0x1a1664)=>{this[_0x29ee('0x32')](_0x1a1664),_0x1a1664===this[_0x29ee('0x22')]&&this[_0x29ee('0x5')](null);}),this['listenTo'](_0x5c7c47,_0x29ee('0x29'),(_0x553b1f,_0x2b5d0c,_0x46c797,_0x907bd3)=>{if(_0x907bd3&&this[_0x29ee('0x23')](_0x907bd3),!_0x46c797||!_0x338b2b[_0x29ee('0x38')](_0x46c797))return;const _0x3c17d3=_0x338b2b['getByView'](_0x46c797);this[_0x29ee('0x21')](_0x46c797,'change:height',()=>{_0x5c7c47[_0x29ee('0xe')]();}),this['listenTo'](_0x46c797,'Esc',()=>{this[_0x29ee('0x36')](_0x3c17d3),this[_0x29ee('0x35')][_0x29ee('0x3f')]['view'][_0x29ee('0x3')]();}),this['activeAnnotation']!==_0x3c17d3&&this[_0x29ee('0x5')](_0x3c17d3);}),this[_0x29ee('0x21')](this['editor']['ui'],_0x29ee('0x10'),()=>{_0x5c7c47[_0x29ee('0x8')]&&(_0x338b2b[_0x29ee('0x38')](_0x5c7c47[_0x29ee('0x8')])&&_0x5c7c47[_0x29ee('0xe')]());}),this[_0x29ee('0x21')](this[_0x29ee('0x35')]['editing'][_0x29ee('0x2e')][_0x29ee('0x2c')],_0x29ee('0xb'),()=>{this[_0x29ee('0x31')]=!0x0,this[_0x29ee('0x2d')]['clear']();}),this[_0x29ee('0x35')][_0x29ee('0x3f')][_0x29ee('0x2e')][_0x29ee('0x2c')][_0x29ee('0x3b')][_0x29ee('0x1b')]&&this[_0x29ee('0x35')][_0x29ee('0x3f')][_0x29ee('0x2e')][_0x29ee('0x3')](),this[_0x29ee('0x39')]=!0x0;}['detach'](){if(!this[_0x29ee('0x39')])throw new _0x2a2f33(_0x29ee('0x34'),this);this[_0x29ee('0x5')](null);for(const _0x158293 of this['_addedAnnotations'])this[_0x29ee('0x32')](_0x158293);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}[_0x29ee('0x16')](){this[_0x29ee('0x39')]&&this[_0x29ee('0x1e')]();}[_0x29ee('0x7')](_0x14107f){for(const _0xbf06eb of this[_0x29ee('0x14')])_0x14107f[_0x29ee('0x15')](_0xbf06eb)||this[_0x29ee('0x2d')][_0x29ee('0x24')](_0xbf06eb);for(const _0x7d65ad of this[_0x29ee('0x1d')])_0x14107f[_0x29ee('0x15')](_0x7d65ad)||this[_0x29ee('0x32')](_0x7d65ad);if(this[_0x29ee('0x35')]['ui'][_0x29ee('0x0')][_0x29ee('0x6')])for(const _0x381b36 of _0x14107f)this[_0x29ee('0x2f')](_0x381b36);this['_selectedAnnotations']=_0x14107f;}[_0x29ee('0x2f')](_0x26eb3e,_0x313e42){this[_0x29ee('0x2d')]['has'](_0x26eb3e)||(this['_addedAnnotations'][_0x29ee('0x1')](_0x26eb3e)||this['_balloon'][_0x29ee('0x28')](_0x26eb3e[_0x29ee('0x2e')])||(this[_0x29ee('0x11')][_0x29ee('0x3d')](_0x26eb3e),this[_0x29ee('0x30')][_0x29ee('0x3d')]({'stackId':_0x26eb3e['view']['id'],'view':_0x26eb3e['view'],'position':{'target':()=>_0x26eb3e[_0x29ee('0x1f')]||_0x26eb3e['targetRect']||document[_0x29ee('0xa')]()[_0x29ee('0x19')](0x0)}})),_0x313e42&&this[_0x29ee('0x30')]['showStack'](_0x26eb3e['view']['id']));}['_removeAnnotationFromBalloon'](_0x2dbe76){this[_0x29ee('0x11')]['has'](_0x2dbe76)&&this[_0x29ee('0x30')][_0x29ee('0x28')](_0x2dbe76[_0x29ee('0x2e')])&&(this['_addedAnnotations'][_0x29ee('0x24')](_0x2dbe76),this[_0x29ee('0x30')][_0x29ee('0x41')](_0x2dbe76['view']));}[_0x29ee('0x36')](_0x5068f0){this[_0x29ee('0x2d')][_0x29ee('0x3d')](_0x5068f0),this[_0x29ee('0x32')](_0x5068f0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x533b=['Sidebar','_selectedAnnotations','contains','low','detach','requires','_showBalloon','resize','activeAnnotation','blur','addAnnotation','create','delete','_editorAnnotations','Esc','init','attach','change:container','isDirty','_destroyEditorAnnotationsIntegration','first','uiUpdate','_domEmitter','mousedown','editors','isVisible','focus','destroy','refreshPositioning','listenTo','stopListening','_annotations','element','_refreshPositioning','esc','bodyCollection','annotations','type','narrowsidebar-detach-not-attached','narrowsidebar-attach-already-attached','ready','_integrateWithEditorAnnotations','set:container','_detachFromContainer','attachToDom','annotationType','rearrange','add','from','detachFromDom','change:height','plugins','addEventListener','southArrowNorthEast','narrowSidebar','_hideBalloon','_manuallyClosedAnnotationViews','content','southArrowNorth','setActiveAnnotation','getSidebarItemView','getOrderedSelectedAnnotations','view','get','EditorAnnotations','refresh','clear','preventDefault','context','northArrowSouthEast','has','_updateBalloonPosition','set','pin','remove','high','_attachListeners','_detachListeners','number','_refreshPositioningDebounced','balloonPanelView','northArrowSouth','getByView','target','isAttached','hasDomSelection','locale','register','_annotationToNarrowView','includes','execute','defaultPositions','northArrowSouthWest','preventClosingBalloon','_setSelectedAnnotations','keydown'];(function(_0x228511,_0x533b3b){const _0x2de320=function(_0x2cd0d0){while(--_0x2cd0d0){_0x228511['push'](_0x228511['shift']());}};_0x2de320(++_0x533b3b);}(_0x533b,0xf5));const _0x2de3=function(_0x228511,_0x533b3b){_0x228511=_0x228511-0x0;let _0x2de320=_0x533b[_0x228511];return _0x2de320;};import{ContextPlugin as _0x4aa965}from'ckeditor5/src/core';import _0x274d20 from'./annotationsuis';import _0x1cbf17 from'./sidebar';import _0x56795e from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x2b4ed3,BodyCollection as _0x1c154a}from'ckeditor5/src/ui';import{CKEditorError as _0x5cbe7a,DomEmitterMixin as _0x3e0a7b,keyCodes as _0x34f758,Collection as _0x5b1bbc}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x224c6e}from'lodash-es';export default class s extends _0x4aa965{static get[_0x2de3('0x30')](){return[_0x1cbf17,_0x274d20];}static get['pluginName'](){return'NarrowSidebar';}constructor(_0x378dac){super(_0x378dac),this[_0x2de3('0x1f')]=!0x1,this[_0x2de3('0x3')]=new Set(),this[_0x2de3('0x41')]=Object[_0x2de3('0x36')](_0x3e0a7b),this[_0x2de3('0x23')]=new Map(),this[_0x2de3('0x13')](_0x2de3('0x33'),null),this[_0x2de3('0x4f')]=null,this[_0x2de3('0x2c')]=[],this[_0x2de3('0x38')]=new _0x5b1bbc(),this[_0x2de3('0x1a')]=_0x224c6e(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}[_0x2de3('0x3a')](){this[_0x2de3('0xf')][_0x2de3('0x5e')][_0x2de3('0xa')](_0x274d20)[_0x2de3('0x22')](_0x2de3('0x1'),this),this['bodyCollection']=new _0x1c154a(this[_0x2de3('0xf')][_0x2de3('0x21')]),this[_0x2de3('0x1b')]=new _0x2b4ed3(this[_0x2de3('0xf')][_0x2de3('0x21')]),this[_0x2de3('0x4e')][_0x2de3('0x57')](),this[_0x2de3('0x4e')]['add'](this[_0x2de3('0x1b')]);}[_0x2de3('0x3b')](_0x33124d){this[_0x2de3('0x4f')]=_0x33124d;const _0x4f83b3=this['context'][_0x2de3('0x5e')]['get'](_0x1cbf17),_0x4c7901=this['balloonPanelView'];if(_0x4f83b3[_0x2de3('0x4a')]=_0x33124d,this[_0x2de3('0x1f')])throw new _0x5cbe7a(_0x2de3('0x52'),this);this[_0x2de3('0x1f')]=!0x0,this[_0x2de3('0x48')](_0x4f83b3,_0x2de3('0x55'),()=>{this[_0x2de3('0x2f')](),this['listenTo'](_0x4f83b3,_0x2de3('0x3c'),_0x4fca61=>{_0x4fca61['off'](),this[_0x2de3('0x3b')](_0x33124d);});}),_0x4f83b3['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x1a0b69=_0x3ba75a=>{const _0x41e5e8=new _0x56795e(this[_0x2de3('0xf')][_0x2de3('0x21')]);_0x4f83b3[_0x2de3('0x35')](_0x3ba75a,_0x41e5e8),this[_0x2de3('0x23')][_0x2de3('0x13')](_0x3ba75a,_0x41e5e8),_0x41e5e8['bind'](_0x2de3('0x3d'),_0x2de3('0x58'),_0x2de3('0x19'))['to'](_0x3ba75a[_0x2de3('0x9')],_0x2de3('0x3d'),_0x2de3('0x50'),'length'),_0x41e5e8['on'](_0x2de3('0x25'),()=>{this['_manuallyClosedAnnotationViews'][_0x2de3('0xd')](),_0x4c7901[_0x2de3('0x4')][_0x2de3('0x3f')]!==_0x3ba75a['view']?(this[_0x2de3('0x31')](_0x3ba75a),_0x3ba75a['view']['element']['focus'](),this[_0x2de3('0x6')](_0x3ba75a)):this[_0x2de3('0x6')](null);});};for(const _0x1bb7d5 of _0x33124d)_0x1a0b69(_0x1bb7d5);this[_0x2de3('0x48')](_0x33124d,'add',(_0x5d0935,_0x2f4cbe)=>{_0x1a0b69(_0x2f4cbe);}),this['listenTo'](_0x33124d,_0x2de3('0x15'),(_0x307a69,_0x314e49,_0xe312d3)=>{this[_0x2de3('0x23')][_0x2de3('0xa')](_0x314e49)['destroy'](),this[_0x2de3('0x23')][_0x2de3('0x37')](_0x314e49),_0x4f83b3[_0x2de3('0x59')]({'removedAnnotation':_0x314e49,'previousAnnotation':_0x33124d[_0x2de3('0xa')](_0xe312d3-0x1),'nextAnnotation':_0x33124d[_0x2de3('0xa')](_0xe312d3+0x1)}),_0x314e49===this[_0x2de3('0x33')]&&this['setActiveAnnotation'](null);},{'priority':_0x2de3('0x2e')}),this[_0x2de3('0x48')](_0x33124d,_0x2de3('0x45'),(_0x417e85,_0x4b1755)=>{this[_0x2de3('0x6')](_0x4b1755);}),this[_0x2de3('0x48')](_0x33124d,_0x2de3('0x34'),()=>{this['setActiveAnnotation'](null);}),this[_0x2de3('0x41')][_0x2de3('0x48')](document,_0x2de3('0x2a'),(_0x19e203,_0x6a387e)=>{_0x6a387e['keyCode']===_0x34f758[_0x2de3('0x4d')]&&_0x4c7901['isVisible']&&(this[_0x2de3('0x3')][_0x2de3('0x5a')](_0x4c7901[_0x2de3('0x4')][_0x2de3('0x3f')]),this[_0x2de3('0x2')](),_0x6a387e['stopPropagation'](),_0x6a387e[_0x2de3('0xe')]());}),this['_domEmitter'][_0x2de3('0x48')](document,_0x2de3('0x42'),(_0x5923cd,_0x5b2bfe)=>{const _0x4a1df4=_0x5b2bfe[_0x2de3('0x1e')];_0x4c7901[_0x2de3('0x44')]&&_0x4c7901['element'][_0x2de3('0x2d')](_0x4a1df4)||_0x4f83b3['view']['element'][_0x2de3('0x2d')](_0x4a1df4)||_0x5923cd[_0x2de3('0x28')]||(this[_0x2de3('0x3')][_0x2de3('0xd')](),this[_0x2de3('0x2')](),this[_0x2de3('0x6')](null));});const _0x33a54c=this[_0x2de3('0xf')][_0x2de3('0x43')]?this[_0x2de3('0xf')][_0x2de3('0x43')]:new _0x5b1bbc([this[_0x2de3('0xf')]]);for(const _0x139195 of _0x33a54c)this[_0x2de3('0x54')](_0x139195);this[_0x2de3('0x48')](_0x33a54c,'add',(_0x150c0b,_0x723d5b)=>{this[_0x2de3('0x48')](_0x723d5b,_0x2de3('0x53'),()=>{this[_0x2de3('0x54')](_0x723d5b);});}),this['listenTo'](_0x33a54c,_0x2de3('0x15'),(_0x367819,_0x4cf5c5)=>{_0x4cf5c5['plugins'][_0x2de3('0x11')](_0x2de3('0xb'))&&this[_0x2de3('0x3e')](_0x4cf5c5[_0x2de3('0x5e')]['get'](_0x2de3('0xb')));}),window[_0x2de3('0x5f')](_0x2de3('0x32'),this[_0x2de3('0x1a')]),this[_0x2de3('0x4c')]();}[_0x2de3('0x6')](_0xf7cf50){if(_0xf7cf50===this['activeAnnotation'])return;const _0x7a15=this[_0x2de3('0xf')]['plugins'][_0x2de3('0xa')](_0x2de3('0x2b'));if(_0x7a15[_0x2de3('0xc')]({'blurredAnnotation':this[_0x2de3('0x33')],'activatedAnnotation':_0xf7cf50,'disableAnimationOnActivatedAnnotation':!0x0}),_0xf7cf50)_0x7a15[_0x2de3('0x7')](_0xf7cf50)?this[_0x2de3('0x31')](_0xf7cf50):this[_0x2de3('0x2')]();else this[_0x2de3('0x2')]();this[_0x2de3('0x33')]=_0xf7cf50;}[_0x2de3('0x2f')](){if(!this[_0x2de3('0x1f')])throw new _0x5cbe7a(_0x2de3('0x51'),this);this[_0x2de3('0x6')](null);const _0x20baf1=this[_0x2de3('0xf')]['plugins'][_0x2de3('0xa')](_0x2de3('0x2b'));this[_0x2de3('0x2')](),Array['from'](this[_0x2de3('0x23')]['values'](),_0x316e99=>_0x316e99[_0x2de3('0x46')]()),this[_0x2de3('0x23')]['clear'](),_0x20baf1[_0x2de3('0x56')](this[_0x2de3('0x4f')]),this[_0x2de3('0x49')](),this[_0x2de3('0x41')][_0x2de3('0x49')](),this['stopListening'](this[_0x2de3('0xf')]['editors']);for(const _0x2c1247 of Array[_0x2de3('0x5b')](this[_0x2de3('0x38')]))this['_destroyEditorAnnotationsIntegration'](_0x2c1247);window['removeEventListener'](_0x2de3('0x32'),this['_refreshPositioningDebounced']),this[_0x2de3('0x1a')]['cancel'](),this[_0x2de3('0x2c')]=[],this[_0x2de3('0x1f')]=!0x1,this[_0x2de3('0x4f')]=null;}[_0x2de3('0x46')](){this[_0x2de3('0x1f')]&&this[_0x2de3('0x2f')](),this[_0x2de3('0x4e')][_0x2de3('0x5c')]();}[_0x2de3('0x54')](_0x5320b5){const _0x37f3e1=_0x5320b5[_0x2de3('0x5e')][_0x2de3('0xa')](_0x2de3('0xb')),_0x35afd9=this[_0x2de3('0xf')][_0x2de3('0x5e')]['get'](_0x1cbf17),_0x21a1f6=this[_0x2de3('0x4f')],_0x520cb1=this[_0x2de3('0x1b')],_0x287e47=()=>{const _0x5544ee=_0x37f3e1[_0x2de3('0x8')]({'activeAnnotation':this[_0x2de3('0x33')],'annotations':this['annotations']});this[_0x2de3('0x29')](_0x5544ee),this[_0x2de3('0x6')](_0x5544ee[0x0]||null);};this[_0x2de3('0x48')](_0x37f3e1,'refresh',_0x287e47),this['listenTo'](_0x37f3e1,_0x2de3('0x34'),(_0x3d10de,{isAnnotationTracked:_0x1fa9ff})=>{this[_0x2de3('0x33')]&&_0x1fa9ff(this[_0x2de3('0x33')])&&(this[_0x2de3('0x29')]([]),this[_0x2de3('0x6')](null));}),this[_0x2de3('0x48')](_0x37f3e1,_0x2de3('0x40'),()=>{this[_0x2de3('0x1a')]();}),this['listenTo'](_0x21a1f6,_0x2de3('0x34'),_0x3d98a5=>{_0x37f3e1[_0x2de3('0x20')]()&&_0x3d98a5['stop']();},{'priority':_0x2de3('0x16')}),this[_0x2de3('0x41')]['listenTo'](document,_0x2de3('0x42'),(_0x3e1d3f,_0x4ffc29)=>{const _0x313b76=_0x4ffc29[_0x2de3('0x1e')];_0x520cb1['isVisible']&&_0x520cb1[_0x2de3('0x4b')]['contains'](_0x313b76)||_0x35afd9[_0x2de3('0x9')][_0x2de3('0x4b')][_0x2de3('0x2d')](_0x313b76)||this[_0x2de3('0x33')]&&_0x37f3e1[_0x2de3('0x20')]()&&(_0x287e47(),_0x3e1d3f['preventClosingBalloon']=!0x0);},{'priority':_0x2de3('0x16')}),this['_editorAnnotations']['add'](_0x37f3e1);}[_0x2de3('0x3e')](_0x400f21){_0x400f21&&(this['stopListening'](_0x400f21),this[_0x2de3('0x38')][_0x2de3('0x15')](_0x400f21));}['_setSelectedAnnotations'](_0x2c6553){for(const _0x1f64a9 of this[_0x2de3('0x2c')])_0x2c6553[_0x2de3('0x24')](_0x1f64a9)||this[_0x2de3('0x3')][_0x2de3('0x37')](_0x1f64a9[_0x2de3('0x9')]);this[_0x2de3('0x2c')]=_0x2c6553;}[_0x2de3('0x4c')](){const _0x4e947f=this[_0x2de3('0x1b')];this[_0x2de3('0x4f')][_0x2de3('0x47')](),_0x4e947f[_0x2de3('0x44')]&&this[_0x2de3('0x12')]();}[_0x2de3('0x31')](_0x13cbca){if(this[_0x2de3('0x3')][_0x2de3('0x11')](_0x13cbca['view']))return;const _0x3915df=this['balloonPanelView'][_0x2de3('0x4')][_0x2de3('0x3f')];_0x3915df!==_0x13cbca['view']?(_0x3915df&&this['_detachListeners'](_0x3915df),this[_0x2de3('0x17')](_0x13cbca['view']),this[_0x2de3('0x1b')][_0x2de3('0x4')]['clear'](),this['balloonPanelView'][_0x2de3('0x4')]['add'](_0x13cbca['view']),this[_0x2de3('0x12')]()):this[_0x2de3('0x12')]();}[_0x2de3('0x12')](){const _0x4d1a5b=this[_0x2de3('0x1b')]['content'][_0x2de3('0x3f')],_0x3d9188=this[_0x2de3('0x4f')][_0x2de3('0x1d')](_0x4d1a5b);if(!this['_annotationToNarrowView'][_0x2de3('0x11')](_0x3d9188))return;const _0xedc383=this[_0x2de3('0x23')][_0x2de3('0xa')](_0x3d9188)[_0x2de3('0x4b')],_0x4e9a55=function(){const _0x51fa00=_0x2b4ed3[_0x2de3('0x26')];return[_0x51fa00[_0x2de3('0x0')],_0x51fa00[_0x2de3('0x10')],_0x51fa00[_0x2de3('0x5')],_0x51fa00[_0x2de3('0x1c')],_0x51fa00['southArrowNorthWest'],_0x51fa00[_0x2de3('0x27')]];}();this[_0x2de3('0x1b')][_0x2de3('0x14')]({'target':_0xedc383,'positions':_0x4e9a55});}[_0x2de3('0x2')](){const _0x55d366=this['balloonPanelView'],_0x5c564d=_0x55d366[_0x2de3('0x4')]['first'];_0x5c564d&&(this[_0x2de3('0x18')](_0x5c564d),_0x55d366['unpin'](),_0x55d366[_0x2de3('0x4')][_0x2de3('0xd')]());}[_0x2de3('0x17')](_0x2c504c){this[_0x2de3('0x48')](_0x2c504c,_0x2de3('0x5d'),()=>this['_updateBalloonPosition']()),this[_0x2de3('0x48')](_0x2c504c,_0x2de3('0x39'),(_0x986ee7,_0x5e15ba)=>{this['_manuallyClosedAnnotationViews'][_0x2de3('0x5a')](_0x2c504c),this[_0x2de3('0x2')](),_0x5e15ba();});}[_0x2de3('0x18')](_0x1a1190){this[_0x2de3('0x49')](_0x1a1190);}}
|
|
23
|
+
const _0x345e=['_showBalloon','content','add','stopListening','detach','keyCode','refresh','annotationType','isDirty','southArrowNorthWest','_annotationToNarrowView','editors','_setSelectedAnnotations','register','southArrowNorth','bodyCollection','ready','Sidebar','pluginName','setActiveAnnotation','remove','mousedown','set:container','defaultPositions','init','isVisible','_refreshPositioning','removeEventListener','preventDefault','requires','number','attach','isAttached','keydown','create','target','_domEmitter','delete','off','preventClosingBalloon','resize','ck-sidebar--narrow','activeAnnotation','contains','first','_refreshPositioningDebounced','view','addEventListener','unpin','set','attachToDom','element','narrowsidebar-attach-already-attached','_hideBalloon','annotations','stop','locale','_updateBalloonPosition','_attachListeners','pin','destroy','_detachListeners','_annotations','_integrateWithEditorAnnotations','addAnnotation','Esc','_manuallyClosedAnnotationViews','getSidebarItemView','context','northArrowSouthWest','_destroyEditorAnnotationsIntegration','high','type','_attachToContainer','has','NarrowSidebar','balloonPanelView','get','blur','getByView','change:container','from','refreshPositioning','listenTo','plugins','EditorAnnotations','detachFromDom','includes','focus','execute','northArrowSouth','hasDomSelection','_editorAnnotations','narrowsidebar-detach-not-attached','_selectedAnnotations','clear','southArrowNorthEast'];(function(_0x18dfa4,_0x345e1d){const _0x26a996=function(_0x3b00e4){while(--_0x3b00e4){_0x18dfa4['push'](_0x18dfa4['shift']());}};_0x26a996(++_0x345e1d);}(_0x345e,0xcc));const _0x26a9=function(_0x18dfa4,_0x345e1d){_0x18dfa4=_0x18dfa4-0x0;let _0x26a996=_0x345e[_0x18dfa4];return _0x26a996;};import{ContextPlugin as _0x5b5fe7}from'ckeditor5/src/core';import _0x3ceff8 from'./annotationsuis';import _0x135e89 from'./sidebar';import _0x6ba298 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x46efca,BodyCollection as _0x50c2bd}from'ckeditor5/src/ui';import{CKEditorError as _0x5a8c46,DomEmitterMixin as _0x327c70,keyCodes as _0x18baf,Collection as _0x17726f}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x3891ea}from'lodash-es';export default class s extends _0x5b5fe7{static get[_0x26a9('0x13')](){return[_0x135e89,_0x3ceff8];}static get[_0x26a9('0x8')](){return _0x26a9('0x41');}constructor(_0x32d86c){super(_0x32d86c),this['isAttached']=!0x1,this[_0x26a9('0x38')]=new Set(),this['_domEmitter']=Object[_0x26a9('0x18')](_0x327c70),this[_0x26a9('0x0')]=new Map(),this['set'](_0x26a9('0x20'),null),this[_0x26a9('0x2c')]=null,this['_selectedAnnotations']=[],this[_0x26a9('0x52')]=new _0x17726f(),this[_0x26a9('0x23')]=_0x3891ea(()=>{this[_0x26a9('0x10')]();},0xfa,{'leading':!0x1});}[_0x26a9('0xe')](){this[_0x26a9('0x3a')][_0x26a9('0x4a')][_0x26a9('0x43')](_0x3ceff8)[_0x26a9('0x3')]('narrowSidebar',this),this[_0x26a9('0x5')]=new _0x50c2bd(this[_0x26a9('0x3a')][_0x26a9('0x2e')]),this[_0x26a9('0x42')]=new _0x46efca(this['context'][_0x26a9('0x2e')]),this[_0x26a9('0x5')][_0x26a9('0x28')](),this[_0x26a9('0x5')][_0x26a9('0x59')](this[_0x26a9('0x42')]);}[_0x26a9('0x15')](_0x2410f5){this[_0x26a9('0x2c')]=_0x2410f5;const _0x1b9f07=this['context']['plugins'][_0x26a9('0x43')](_0x135e89),_0x4d0e3f=this[_0x26a9('0x42')];if(_0x1b9f07[_0x26a9('0x34')]=_0x2410f5,this['isAttached'])throw new _0x5a8c46(_0x26a9('0x2a'),this);this[_0x26a9('0x16')]=!0x0,this[_0x26a9('0x49')](_0x1b9f07,_0x26a9('0xc'),()=>{this['detach'](),this['listenTo'](_0x1b9f07,_0x26a9('0x46'),_0x31c711=>{_0x31c711[_0x26a9('0x1c')](),this[_0x26a9('0x15')](_0x2410f5);});}),_0x1b9f07[_0x26a9('0x3f')]({'viewClass':_0x26a9('0x1f'),'spaceBetweenItems':0x5});const _0x2e4251=_0x31621d=>{const _0x3efd7e=new _0x6ba298(this[_0x26a9('0x3a')]['locale']);_0x1b9f07[_0x26a9('0x36')](_0x31621d,_0x3efd7e),this['_annotationToNarrowView'][_0x26a9('0x27')](_0x31621d,_0x3efd7e),_0x3efd7e['bind']('isDirty',_0x26a9('0x5e'),_0x26a9('0x14'))['to'](_0x31621d[_0x26a9('0x24')],_0x26a9('0x5f'),_0x26a9('0x3e'),'length'),_0x3efd7e['on'](_0x26a9('0x4f'),()=>{this[_0x26a9('0x38')][_0x26a9('0x55')](),_0x4d0e3f[_0x26a9('0x58')][_0x26a9('0x22')]!==_0x31621d[_0x26a9('0x24')]?(this[_0x26a9('0x57')](_0x31621d),_0x31621d[_0x26a9('0x24')][_0x26a9('0x29')][_0x26a9('0x4e')](),this['setActiveAnnotation'](_0x31621d)):this['setActiveAnnotation'](null);});};for(const _0x7f7fcd of _0x2410f5)_0x2e4251(_0x7f7fcd);this[_0x26a9('0x49')](_0x2410f5,'add',(_0x40368b,_0x17ca48)=>{_0x2e4251(_0x17ca48);}),this[_0x26a9('0x49')](_0x2410f5,_0x26a9('0xa'),(_0x36fa0a,_0xd7c4f2,_0x123680)=>{this['_annotationToNarrowView']['get'](_0xd7c4f2)[_0x26a9('0x32')](),this[_0x26a9('0x0')][_0x26a9('0x1b')](_0xd7c4f2),_0x1b9f07['rearrange']({'removedAnnotation':_0xd7c4f2,'previousAnnotation':_0x2410f5['get'](_0x123680-0x1),'nextAnnotation':_0x2410f5['get'](_0x123680+0x1)}),_0xd7c4f2===this['activeAnnotation']&&this[_0x26a9('0x9')](null);},{'priority':'low'}),this[_0x26a9('0x49')](_0x2410f5,_0x26a9('0x4e'),(_0x3c33ea,_0x5c47d3)=>{this['setActiveAnnotation'](_0x5c47d3);}),this[_0x26a9('0x49')](_0x2410f5,_0x26a9('0x44'),()=>{this[_0x26a9('0x9')](null);}),this[_0x26a9('0x1a')][_0x26a9('0x49')](document,_0x26a9('0x17'),(_0x4f29eb,_0xeac032)=>{_0xeac032[_0x26a9('0x5c')]===_0x18baf['esc']&&_0x4d0e3f[_0x26a9('0xf')]&&(this['_manuallyClosedAnnotationViews'][_0x26a9('0x59')](_0x4d0e3f[_0x26a9('0x58')][_0x26a9('0x22')]),this[_0x26a9('0x2b')](),_0xeac032['stopPropagation'](),_0xeac032[_0x26a9('0x12')]());}),this[_0x26a9('0x1a')][_0x26a9('0x49')](document,_0x26a9('0xb'),(_0x2c385b,_0x5e2a21)=>{const _0x5d5dde=_0x5e2a21[_0x26a9('0x19')];_0x4d0e3f['isVisible']&&_0x4d0e3f[_0x26a9('0x29')][_0x26a9('0x21')](_0x5d5dde)||_0x1b9f07['view'][_0x26a9('0x29')][_0x26a9('0x21')](_0x5d5dde)||_0x2c385b[_0x26a9('0x1d')]||(this[_0x26a9('0x38')][_0x26a9('0x55')](),this[_0x26a9('0x2b')](),this[_0x26a9('0x9')](null));});const _0x11db78=this['context'][_0x26a9('0x1')]?this[_0x26a9('0x3a')][_0x26a9('0x1')]:new _0x17726f([this[_0x26a9('0x3a')]]);for(const _0x1b03eb of _0x11db78)this[_0x26a9('0x35')](_0x1b03eb);this[_0x26a9('0x49')](_0x11db78,_0x26a9('0x59'),(_0x40c7a7,_0x4d681a)=>{this[_0x26a9('0x49')](_0x4d681a,_0x26a9('0x6'),()=>{this[_0x26a9('0x35')](_0x4d681a);});}),this[_0x26a9('0x49')](_0x11db78,'remove',(_0x500062,_0x470e18)=>{_0x470e18['plugins'][_0x26a9('0x40')](_0x26a9('0x4b'))&&this[_0x26a9('0x3c')](_0x470e18['plugins'][_0x26a9('0x43')](_0x26a9('0x4b')));}),window[_0x26a9('0x25')](_0x26a9('0x1e'),this[_0x26a9('0x23')]),this['_refreshPositioning']();}[_0x26a9('0x9')](_0x2a5a55){if(_0x2a5a55===this['activeAnnotation'])return;const _0x1eab9b=this[_0x26a9('0x3a')][_0x26a9('0x4a')][_0x26a9('0x43')](_0x26a9('0x7'));if(_0x1eab9b[_0x26a9('0x5d')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2a5a55,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2a5a55)_0x1eab9b[_0x26a9('0x39')](_0x2a5a55)?this['_showBalloon'](_0x2a5a55):this[_0x26a9('0x2b')]();else this['_hideBalloon']();this[_0x26a9('0x20')]=_0x2a5a55;}[_0x26a9('0x5b')](){if(!this[_0x26a9('0x16')])throw new _0x5a8c46(_0x26a9('0x53'),this);this[_0x26a9('0x9')](null);const _0x407787=this[_0x26a9('0x3a')]['plugins']['get'](_0x26a9('0x7'));this['_hideBalloon'](),Array[_0x26a9('0x47')](this[_0x26a9('0x0')]['values'](),_0x4fbbf9=>_0x4fbbf9[_0x26a9('0x32')]()),this[_0x26a9('0x0')][_0x26a9('0x55')](),_0x407787['_detachFromContainer'](this['annotations']),this[_0x26a9('0x5a')](),this[_0x26a9('0x1a')][_0x26a9('0x5a')](),this[_0x26a9('0x5a')](this[_0x26a9('0x3a')][_0x26a9('0x1')]);for(const _0x34e2ed of Array[_0x26a9('0x47')](this[_0x26a9('0x52')]))this['_destroyEditorAnnotationsIntegration'](_0x34e2ed);window[_0x26a9('0x11')](_0x26a9('0x1e'),this[_0x26a9('0x23')]),this['_refreshPositioningDebounced']['cancel'](),this[_0x26a9('0x54')]=[],this[_0x26a9('0x16')]=!0x1,this[_0x26a9('0x2c')]=null;}[_0x26a9('0x32')](){this[_0x26a9('0x16')]&&this[_0x26a9('0x5b')](),this[_0x26a9('0x5')][_0x26a9('0x4c')]();}['_integrateWithEditorAnnotations'](_0x1f3550){const _0x15fd29=_0x1f3550['plugins'][_0x26a9('0x43')]('EditorAnnotations'),_0x20addf=this[_0x26a9('0x3a')][_0x26a9('0x4a')]['get'](_0x135e89),_0x1c87d8=this[_0x26a9('0x2c')],_0x1be126=this[_0x26a9('0x42')],_0x47f48e=()=>{const _0x44711a=_0x15fd29['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this['annotations']});this[_0x26a9('0x2')](_0x44711a),this[_0x26a9('0x9')](_0x44711a[0x0]||null);};this[_0x26a9('0x49')](_0x15fd29,'refresh',_0x47f48e),this[_0x26a9('0x49')](_0x15fd29,_0x26a9('0x44'),(_0x1b0bc1,{isAnnotationTracked:_0x27a143})=>{this[_0x26a9('0x20')]&&_0x27a143(this['activeAnnotation'])&&(this[_0x26a9('0x2')]([]),this[_0x26a9('0x9')](null));}),this[_0x26a9('0x49')](_0x15fd29,'uiUpdate',()=>{this[_0x26a9('0x23')]();}),this['listenTo'](_0x1c87d8,_0x26a9('0x44'),_0x444f6f=>{_0x15fd29[_0x26a9('0x51')]()&&_0x444f6f[_0x26a9('0x2d')]();},{'priority':_0x26a9('0x3d')}),this['_domEmitter'][_0x26a9('0x49')](document,_0x26a9('0xb'),(_0x5ac51d,_0x5d5232)=>{const _0x44fb36=_0x5d5232[_0x26a9('0x19')];_0x1be126[_0x26a9('0xf')]&&_0x1be126[_0x26a9('0x29')]['contains'](_0x44fb36)||_0x20addf['view'][_0x26a9('0x29')][_0x26a9('0x21')](_0x44fb36)||this['activeAnnotation']&&_0x15fd29[_0x26a9('0x51')]()&&(_0x47f48e(),_0x5ac51d[_0x26a9('0x1d')]=!0x0);},{'priority':'high'}),this[_0x26a9('0x52')][_0x26a9('0x59')](_0x15fd29);}['_destroyEditorAnnotationsIntegration'](_0x1e2230){_0x1e2230&&(this['stopListening'](_0x1e2230),this[_0x26a9('0x52')]['remove'](_0x1e2230));}['_setSelectedAnnotations'](_0x355026){for(const _0x38b61f of this[_0x26a9('0x54')])_0x355026[_0x26a9('0x4d')](_0x38b61f)||this[_0x26a9('0x38')][_0x26a9('0x1b')](_0x38b61f[_0x26a9('0x24')]);this['_selectedAnnotations']=_0x355026;}[_0x26a9('0x10')](){const _0x3c9295=this[_0x26a9('0x42')];this[_0x26a9('0x2c')][_0x26a9('0x48')](),_0x3c9295[_0x26a9('0xf')]&&this['_updateBalloonPosition']();}[_0x26a9('0x57')](_0x313a3f){if(this['_manuallyClosedAnnotationViews'][_0x26a9('0x40')](_0x313a3f[_0x26a9('0x24')]))return;const _0x27f873=this['balloonPanelView'][_0x26a9('0x58')][_0x26a9('0x22')];_0x27f873!==_0x313a3f['view']?(_0x27f873&&this[_0x26a9('0x33')](_0x27f873),this['_attachListeners'](_0x313a3f[_0x26a9('0x24')]),this['balloonPanelView']['content'][_0x26a9('0x55')](),this['balloonPanelView']['content'][_0x26a9('0x59')](_0x313a3f[_0x26a9('0x24')]),this[_0x26a9('0x2f')]()):this[_0x26a9('0x2f')]();}[_0x26a9('0x2f')](){const _0x133bbf=this[_0x26a9('0x42')][_0x26a9('0x58')]['first'],_0x2583b1=this[_0x26a9('0x2c')][_0x26a9('0x45')](_0x133bbf);if(!this[_0x26a9('0x0')]['has'](_0x2583b1))return;const _0x5ba942=this['_annotationToNarrowView'][_0x26a9('0x43')](_0x2583b1)[_0x26a9('0x29')],_0x4cd686=function(){const _0x372475=_0x46efca[_0x26a9('0xd')];return[_0x372475[_0x26a9('0x56')],_0x372475['northArrowSouthEast'],_0x372475[_0x26a9('0x4')],_0x372475[_0x26a9('0x50')],_0x372475[_0x26a9('0x60')],_0x372475[_0x26a9('0x3b')]];}();this[_0x26a9('0x42')][_0x26a9('0x31')]({'target':_0x5ba942,'positions':_0x4cd686});}[_0x26a9('0x2b')](){const _0x519721=this[_0x26a9('0x42')],_0x15c110=_0x519721[_0x26a9('0x58')][_0x26a9('0x22')];_0x15c110&&(this[_0x26a9('0x33')](_0x15c110),_0x519721[_0x26a9('0x26')](),_0x519721[_0x26a9('0x58')][_0x26a9('0x55')]());}[_0x26a9('0x30')](_0x4ca639){this[_0x26a9('0x49')](_0x4ca639,'change:height',()=>this[_0x26a9('0x2f')]()),this[_0x26a9('0x49')](_0x4ca639,_0x26a9('0x37'),(_0x29f1a4,_0x6d2479)=>{this[_0x26a9('0x38')]['add'](_0x4ca639),this[_0x26a9('0x2b')](),_0x6d2479();});}[_0x26a9('0x33')](_0x3913e4){this['stopListening'](_0x3913e4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2761=['container','destroy','get','object','locale','_activeAnnotation','minHeight','_getTargetTop','stopListening','_createSidebarView','_lastItem','change:targetRect','_detachFromContainer','_annotations','clear','list','add','refresh','target','_getItemAfter','set','_getMaxAvailableTop','content','appendChild','bottom','pluginName','_setItemTop','define','render','_alignAfterItem','updateHeight','sidebar.container','_destroySidebarItemView','bind','_alignBeforeItem','top','_attachToContainer','_sidebarItemViewToAnnotation','change:top','getIndex','view','sidebar-attachtocontainer-missing-container','nodeType','context','sidebar.preventScrollOutOfView','push','_annotationToSidebarItemView','_getItemBefore','listenTo','Sidebar','addAnnotation','_alignForTopChange','init','class','_updateLastItem','isAnimationDisabled','delete','change:bottom','_recalculateBuffer','max','remove','isActive','element','_alignToTargetRect','config','sidebar-setcontainer-invalid-element','length','_alignForBottomChange','_recalculate','_spaceBetweenItems','getSidebarItemView'];(function(_0x4ac63d,_0x276192){const _0x5941e5=function(_0x435d89){while(--_0x435d89){_0x4ac63d['push'](_0x4ac63d['shift']());}};_0x5941e5(++_0x276192);}(_0x2761,0x19e));const _0x5941=function(_0x4ac63d,_0x276192){_0x4ac63d=_0x4ac63d-0x0;let _0x5941e5=_0x2761[_0x4ac63d];return _0x5941e5;};import{ContextPlugin as _0x5bc14a}from'ckeditor5/src/core';import _0x59da0a from'./view/sidebarview';import _0x526db4 from'./view/sidebaritemview';import{Rect as _0x535eb9,CKEditorError as _0x3b9abf}from'ckeditor5/src/utils';export default class b extends _0x5bc14a{static get[_0x5941('0x25')](){return _0x5941('0x3d');}constructor(_0x3522f5){super(_0x3522f5),this[_0x5941('0x20')](_0x5941('0x16')),this[_0x5941('0x34')]=this[_0x5941('0x15')](),this[_0x5941('0x20')](_0x5941('0xc'),null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x5941('0x3a')]=new Map(),this[_0x5941('0x37')]['config'][_0x5941('0x27')](_0x5941('0x38'),!0x1),this[_0x5941('0x19')]=null,this[_0x5941('0x11')]=null,this['_recalculateBuffer']=[];}[_0x5941('0x40')](){const _0x51e30f=this[_0x5941('0x37')][_0x5941('0x5')][_0x5941('0xe')](_0x5941('0x2b'));_0x51e30f&&this['setContainer'](_0x51e30f);}['setContainer'](_0x58db3a){if(!p(_0x58db3a))throw new _0x3b9abf(_0x5941('0x6'));this['container']=_0x58db3a;}[_0x5941('0x30')]({viewClass:_0x5868dc='',spaceBetweenItems:_0x6bf270=0x19}={}){if(!p(this[_0x5941('0xc')]))throw new _0x3b9abf(_0x5941('0x35'),this);this[_0x5941('0xc')][_0x5941('0x23')](this[_0x5941('0x34')][_0x5941('0x3')]),this[_0x5941('0x34')][_0x5941('0x41')]=_0x5868dc,this[_0x5941('0xa')]=_0x6bf270;}['rearrange']({removedAnnotation:_0xf29664,previousAnnotation:_0x34a205,nextAnnotation:_0x2c879e}){const _0x2c4c78=this['getSidebarItemView'](_0xf29664);this['view'][_0x5941('0x1b')][_0x5941('0x1')](_0x2c4c78),this['_destroySidebarItemView'](_0xf29664),_0x34a205&&this[_0x5941('0x4')](this[_0x5941('0xb')](_0x34a205)),_0x2c879e&&this[_0x5941('0x4')](this['getSidebarItemView'](_0x2c879e)),this['_updateLastItem']();}[_0x5941('0x1d')]({blurredAnnotation:_0x1283ec,activatedAnnotation:_0x1a630b,disableAnimationOnActivatedAnnotation:_0x3174a3}){if(this['_activeAnnotation']=_0x1a630b,_0x1283ec){_0x1283ec['isActive']=!0x1;const _0xb5ea90=this['getSidebarItemView'](_0x1283ec);_0xb5ea90&&_0x3174a3&&(_0xb5ea90['isAnimationDisabled']=!0x1);}if(_0x1a630b){const _0x552db9=this[_0x5941('0xb')](_0x1a630b);_0x552db9&&(_0x1a630b[_0x5941('0x2')]=!0x0,_0x3174a3&&(_0x552db9[_0x5941('0x43')]=!0x0,_0x552db9[_0x5941('0x2f')]+=0x1),this[_0x5941('0x4')](_0x552db9));}}[_0x5941('0x18')](_0x5b69a3){this[_0x5941('0x14')](),this[_0x5941('0x34')][_0x5941('0x3')][_0x5941('0x1')]();for(const _0x4a461a of _0x5b69a3)this['_destroySidebarItemView'](_0x4a461a);this[_0x5941('0x34')][_0x5941('0x1b')][_0x5941('0x1a')](),this[_0x5941('0x34')]['class']='',this[_0x5941('0x16')]=null;}[_0x5941('0x3e')](_0x4a648c,_0x4f047f){_0x4f047f||(_0x4f047f=_0x4a648c[_0x5941('0x34')]);const _0x27a0d6=new _0x526db4(this[_0x5941('0x37')][_0x5941('0x10')]);this['_sidebarItemViewToAnnotation']['set'](_0x27a0d6,_0x4a648c),this[_0x5941('0x3a')][_0x5941('0x20')](_0x4a648c,_0x27a0d6),_0x27a0d6['content'][_0x5941('0x1c')](_0x4f047f),this['listenTo'](_0x4a648c[_0x5941('0x34')],_0x5941('0x17'),(_0x1b8908,_0x42e17b,_0x5aa1e7)=>{const _0x5029fd=this['_getTargetTop'](_0x4a648c,_0x5aa1e7);_0x27a0d6['_targetTop']!=_0x5029fd&&(_0x27a0d6['_targetTop']=_0x5029fd,this[_0x5941('0x26')](_0x27a0d6,_0x5029fd));}),this['listenTo'](_0x27a0d6,_0x5941('0x32'),()=>{this[_0x5941('0x9')](_0x27a0d6,'top');}),this[_0x5941('0x3c')](_0x27a0d6,_0x5941('0x45'),()=>{this[_0x5941('0x9')](_0x27a0d6,'bottom');}),this['_alignToTargetRect'](_0x27a0d6);const _0x44bee5=this['_getItemBefore'](_0x27a0d6);if(_0x44bee5)this[_0x5941('0x29')](_0x44bee5,_0x27a0d6)||this['_alignToTargetRect'](_0x27a0d6);else this[_0x5941('0x4')](_0x27a0d6);return this['_updateLastItem'](),this[_0x5941('0x34')]['list'][_0x5941('0x1c')](_0x27a0d6),_0x27a0d6;}[_0x5941('0x3f')](_0x319efe){if(!_0x319efe[_0x5941('0x22')]['length'])return;const _0x1b55c8=this['_getItemBefore'](_0x319efe);if(!_0x1b55c8)return;const _0x22e242=this[_0x5941('0x31')][_0x5941('0xe')](_0x1b55c8),_0x37f470=this[_0x5941('0x11')];_0x37f470&&_0x37f470===_0x22e242?this[_0x5941('0x29')](_0x1b55c8,_0x319efe):this[_0x5941('0x2e')](_0x319efe,_0x1b55c8);}[_0x5941('0x8')](_0x3e6478){if(!_0x3e6478['content'][_0x5941('0x7')])return;const _0x504334=this['_getItemAfter'](_0x3e6478);if(!_0x504334)return;const _0x541201=this[_0x5941('0x31')]['get'](_0x504334),_0x56036c=this[_0x5941('0x37')]['config'][_0x5941('0xe')](_0x5941('0x38')),_0x410f1c=this[_0x5941('0x11')];_0x410f1c&&_0x410f1c===_0x541201&&_0x56036c?(this['_alignBeforeItem'](_0x504334,_0x3e6478),this[_0x5941('0x29')](_0x3e6478,_0x504334)):_0x410f1c&&_0x410f1c===_0x541201?this[_0x5941('0x2e')](_0x504334,_0x3e6478):this['_alignAfterItem'](_0x3e6478,_0x504334);}['_recalculate'](_0xfdcceb,_0xf85080){0x0===this[_0x5941('0x46')][_0x5941('0x7')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4e0ea4,changedProp:_0x277f1c}of this['_recalculateBuffer'])_0x5941('0x2f')===_0x277f1c?this['_alignForTopChange'](_0x4e0ea4):this[_0x5941('0x8')](_0x4e0ea4);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer'][_0x5941('0x39')]({'sidebarItemView':_0xfdcceb,'changedProp':_0xf85080});}[_0x5941('0xb')](_0x11e6ba){return this[_0x5941('0x3a')][_0x5941('0xe')](_0x11e6ba);}['destroy'](){this[_0x5941('0x34')][_0x5941('0xd')]();}[_0x5941('0x2c')](_0x25fb4b){const _0x28b8c5=this[_0x5941('0xb')](_0x25fb4b);this[_0x5941('0x14')](_0x28b8c5),this[_0x5941('0x14')](_0x25fb4b[_0x5941('0x34')]),_0x28b8c5[_0x5941('0xd')](),this[_0x5941('0x3a')][_0x5941('0x44')](_0x25fb4b),this['_sidebarItemViewToAnnotation'][_0x5941('0x44')](_0x28b8c5);}['_createSidebarView'](){const _0x1ae893=new _0x59da0a(this[_0x5941('0x37')][_0x5941('0x10')]);return _0x1ae893[_0x5941('0x28')](),this['on']('change:_lastItem',(_0x2c51f1,_0x401711,_0x1e8e14,_0x585b9c)=>{_0x585b9c&&_0x1ae893['unbind'](_0x5941('0x12')),_0x1e8e14?_0x1ae893[_0x5941('0x2d')](_0x5941('0x12'))['to'](_0x1e8e14,_0x5941('0x24')):_0x1ae893[_0x5941('0x12')]=null;}),_0x1ae893;}[_0x5941('0x42')](){this[_0x5941('0x16')]=this[_0x5941('0xb')](this[_0x5941('0x19')]['last']);}[_0x5941('0x3b')](_0x7e6e14){const _0x3aaec4=this[_0x5941('0x31')]['get'](_0x7e6e14),_0x4ed90a=this[_0x5941('0x19')][_0x5941('0xe')](this[_0x5941('0x19')][_0x5941('0x33')](_0x3aaec4)-0x1);return _0x4ed90a&&this[_0x5941('0xb')](_0x4ed90a);}[_0x5941('0x1f')](_0x43a927){const _0x56ba8a=this['_sidebarItemViewToAnnotation'][_0x5941('0xe')](_0x43a927),_0x223e06=this[_0x5941('0x19')][_0x5941('0xe')](this[_0x5941('0x19')][_0x5941('0x33')](_0x56ba8a)+0x1);return _0x223e06&&this['getSidebarItemView'](_0x223e06);}[_0x5941('0x2e')](_0xe121c4,_0x1e2a43){_0xe121c4[_0x5941('0x2a')]();const _0x249b44=C(_0x1e2a43[_0x5941('0x24')]+this[_0x5941('0xa')],_0xe121c4['top']);return!!_0x249b44&&(this[_0x5941('0x26')](_0x1e2a43,_0x1e2a43[_0x5941('0x2f')]-_0x249b44),!0x0);}['_alignAfterItem'](_0x42e200,_0x21649e){_0x42e200['updateHeight']();const _0x4d5cff=C(_0x42e200[_0x5941('0x24')]+this[_0x5941('0xa')],_0x21649e[_0x5941('0x2f')]);return!!_0x4d5cff&&(this['_setItemTop'](_0x21649e,_0x21649e[_0x5941('0x2f')]+_0x4d5cff,!0x1),!0x0);}[_0x5941('0x4')](_0x504fa6){const _0xf429d4=this['_sidebarItemViewToAnnotation']['get'](_0x504fa6);if(!_0xf429d4||!_0xf429d4[_0x5941('0x1e')])return;const _0x2f932f=this[_0x5941('0x13')](_0xf429d4,_0xf429d4['targetRect']);this[_0x5941('0x26')](_0x504fa6,_0x2f932f);}[_0x5941('0x13')](_0x5591b4,_0x3e022a){if(null===_0x3e022a)return 0x0;if(_0x5591b4[_0x5941('0x1e')]instanceof _0x535eb9)return _0x3e022a['top'];{const _0x314066=new _0x535eb9(this[_0x5941('0x34')]['element'])['top'];return _0x3e022a[_0x5941('0x2f')]-_0x314066;}}[_0x5941('0x26')](_0x2778f6,_0x5662ce,_0x230628=this[_0x5941('0x37')][_0x5941('0x5')][_0x5941('0xe')]('sidebar.preventScrollOutOfView')){_0x230628&&(_0x5662ce=Math[_0x5941('0x0')](_0x5662ce,this['_getMaxAvailableTop'](_0x2778f6))),_0x2778f6[_0x5941('0x2f')]=_0x5662ce;}[_0x5941('0x21')](_0x4d0b1e){let _0x1436a6=this[_0x5941('0x3b')](_0x4d0b1e),_0x5f3c68=0x0;for(;_0x1436a6;)_0x1436a6[_0x5941('0x2a')](),_0x5f3c68+=this[_0x5941('0xa')]+_0x1436a6['height'],_0x1436a6=this[_0x5941('0x3b')](_0x1436a6);return _0x5f3c68;}}function C(_0x17cf70,_0x128783){return Math[_0x5941('0x0')](_0x17cf70-_0x128783,0x0);}function p(_0x447d85){return null!==_0x447d85&&_0x5941('0xf')==typeof _0x447d85&&0x1===_0x447d85[_0x5941('0x36')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ad0=['counterView','_badge','extendTemplate','set','isDirty','add','children','bind','span','ck-annotation-counter__badge','number','icon','ck-annotation-counter','...','ck-annotation-counter__badge--edit-mode'];(function(_0x439ffb,_0x4ad08a){const _0x130f03=function(_0x15b5b7){while(--_0x15b5b7){_0x439ffb['push'](_0x439ffb['shift']());}};_0x130f03(++_0x4ad08a);}(_0x4ad0,0x180));const _0x130f=function(_0x439ffb,_0x4ad08a){_0x439ffb=_0x439ffb-0x0;let _0x130f03=_0x4ad0[_0x439ffb];return _0x130f03;};import{ButtonView as _0x248161,View as _0x4a1247}from'ckeditor5/src/ui';import _0x3c1ffe from'../../../theme/icons/add-comment.svg';export default class B extends _0x248161{constructor(_0x1abe2a){super(_0x1abe2a);const _0x10dc15=this['bindTemplate'];this[_0x130f('0x9')]('isDirty',!0x1),this[_0x130f('0x9')](_0x130f('0x1'),0x0),this[_0x130f('0xd')](_0x130f('0x7'))['to'](this,_0x130f('0xa'),this,_0x130f('0x1'),(_0x2c62e8,_0x38089d)=>_0x2c62e8?_0x130f('0x4'):_0x38089d),this[_0x130f('0x9')]('annotationType',''),this[_0x130f('0x2')]=_0x3c1ffe,this[_0x130f('0x8')]({'attributes':{'class':[_0x130f('0x3')]}}),this[_0x130f('0x6')]=new _0x4a1247(),this['counterView']['setTemplate']({'tag':_0x130f('0xe'),'attributes':{'class':[_0x130f('0x0'),_0x10dc15['to']('annotationType',_0x3ced65=>'ck-annotation-counter__badge--'+_0x3ced65),_0x10dc15['if'](_0x130f('0xa'),_0x130f('0x5'))]},'children':[{'text':_0x10dc15['to'](_0x130f('0x7'))}]}),this[_0x130f('0xc')][_0x130f('0xb')](this[_0x130f('0x6')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56e9=['length','focusTracker','bindTemplate','content','isActive','_mutationObserver','createCollection','setTemplate','div','type','render','add','clientHeight','height','ck-annotation-wrapper--active','clear','Esc','fire','focus','detach','keystrokes','_updateHeight','listenTo','element','isDirty','destroy','mainView','ck-annotation-wrapper','set','attach'];(function(_0xc09b33,_0x56e9f5){const _0x1d8131=function(_0x16088){while(--_0x16088){_0xc09b33['push'](_0xc09b33['shift']());}};_0x1d8131(++_0x56e9f5);}(_0x56e9,0x96));const _0x1d81=function(_0xc09b33,_0x56e9f5){_0xc09b33=_0xc09b33-0x0;let _0x1d8131=_0x56e9[_0xc09b33];return _0x1d8131;};import{View as _0x2457fd}from'ckeditor5/src/ui';import{FocusTracker as _0x4b3985,KeystrokeHandler as _0x1b80cb,uid as _0x1a9cd3}from'ckeditor5/src/utils';import _0x4490af from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x2457fd{constructor(_0x4889a2,_0x592a0a){super(_0x4889a2),this['id']=_0x1a9cd3(),this[_0x1d81('0x1')]=new _0x4b3985(),this[_0x1d81('0x14')]=new _0x1b80cb(),this[_0x1d81('0x14')]['set'](_0x1d81('0x10'),(_0xbf2ece,_0x2242b9)=>this[_0x1d81('0x11')](_0x1d81('0x10'),_0x2242b9)),this[_0x1d81('0x1c')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x1d81('0x1c')](_0x1d81('0xd'),0x0),this[_0x1d81('0x1c')](_0x1d81('0x4'),!0x1),this[_0x1d81('0x1c')](_0x1d81('0x18'),!0x1),this[_0x1d81('0x1c')](_0x1d81('0x0'),0x0),this[_0x1d81('0x1c')](_0x1d81('0x9'),''),this[_0x1d81('0x5')]=_0x4490af(()=>this['_updateHeight']()),this['content']=this[_0x1d81('0x6')](),this[_0x1d81('0x3')][_0x1d81('0xb')](_0x592a0a),this[_0x1d81('0x1a')]=_0x592a0a;const _0x1d75bc=this[_0x1d81('0x2')];this[_0x1d81('0x7')]({'tag':_0x1d81('0x8'),'attributes':{'class':['ck',_0x1d81('0x1b'),'ck-rounded-corners',_0x1d75bc['if'](_0x1d81('0x4'),_0x1d81('0xe'))],'tabindex':-0x1},'children':this[_0x1d81('0x3')]});}[_0x1d81('0xa')](){super[_0x1d81('0xa')](),this['focusTracker']['add'](this[_0x1d81('0x17')]),this[_0x1d81('0x14')][_0x1d81('0x16')](this[_0x1d81('0x17')]),this['_mutationObserver'][_0x1d81('0x1d')](this[_0x1d81('0x17')]);}[_0x1d81('0x19')](){this[_0x1d81('0x3')][_0x1d81('0xf')](),this[_0x1d81('0x14')][_0x1d81('0x19')](),this[_0x1d81('0x1')]['destroy'](),this['_mutationObserver'][_0x1d81('0x13')](),super[_0x1d81('0x19')]();}[_0x1d81('0x12')](){this['element']['focus']();}[_0x1d81('0x15')](){const _0x2aa3b7=this[_0x1d81('0x17')][_0x1d81('0xc')];_0x2aa3b7&&(this[_0x1d81('0xd')]=_0x2aa3b7);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26e1=['bindTemplate','_mutationObserver','createCollection','height','set','top','element','destroy','ck-sidebar-item','content','detach','ck-sidebar-item--no-animation','updateHeight','clientHeight','setTemplate','_targetTop','attach','render','bottom','bind','isAnimationDisabled'];(function(_0x2cc69b,_0x26e168){const _0x921098=function(_0x42d84f){while(--_0x42d84f){_0x2cc69b['push'](_0x2cc69b['shift']());}};_0x921098(++_0x26e168);}(_0x26e1,0x120));const _0x9210=function(_0x2cc69b,_0x26e168){_0x2cc69b=_0x2cc69b-0x0;let _0x921098=_0x26e1[_0x2cc69b];return _0x921098;};import{View as _0xb5f0e3}from'ckeditor5/src/ui';import{toUnit as _0x15b978}from'ckeditor5/src/utils';import _0x302b5b from'../../utils/createmutationobserver';const gt=_0x15b978('px');export default class O extends _0xb5f0e3{constructor(_0x56e1fb){super(_0x56e1fb),this[_0x9210('0xa')]('top'),this[_0x9210('0xa')](_0x9210('0x9'),0x0),this[_0x9210('0x4')](_0x9210('0x3'))['to'](this,_0x9210('0xb'),this,_0x9210('0x9'),(_0x403d19,_0x2b1479)=>(_0x403d19||0x0)+_0x2b1479),this['set'](_0x9210('0x5'),!0x1),this[_0x9210('0x7')]=_0x302b5b(()=>this[_0x9210('0x12')]()),this[_0x9210('0x0')]=null,this[_0x9210('0xf')]=this[_0x9210('0x8')]();const _0x3b952f=this[_0x9210('0x6')];this[_0x9210('0x14')]({'tag':'div','attributes':{'class':[_0x9210('0xe'),_0x3b952f['to'](_0x9210('0x5'),_0x4e4319=>_0x4e4319?_0x9210('0x11'):'')],'style':{'top':_0x3b952f['to']('top',gt)}},'children':this[_0x9210('0xf')]});}[_0x9210('0x2')](){super[_0x9210('0x2')](),this[_0x9210('0x7')][_0x9210('0x1')](this[_0x9210('0xc')]);}[_0x9210('0x12')](){const _0x898c33=this[_0x9210('0xc')][_0x9210('0x13')];_0x898c33&&(this['height']=_0x898c33);}[_0x9210('0xd')](){this[_0x9210('0xf')]['clear'](),this[_0x9210('0x7')][_0x9210('0x10')](),super[_0x9210('0xd')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3060=['div','setTemplate','class','minHeight','set','list','bindTemplate','createCollection','ck-reset'];(function(_0x1488a0,_0x3060d8){const _0x29c420=function(_0x2bc9cf){while(--_0x2bc9cf){_0x1488a0['push'](_0x1488a0['shift']());}};_0x29c420(++_0x3060d8);}(_0x3060,0xba));const _0x29c4=function(_0x1488a0,_0x3060d8){_0x1488a0=_0x1488a0-0x0;let _0x29c420=_0x3060[_0x1488a0];return _0x29c420;};import{View as _0x3ce763}from'ckeditor5/src/ui';import{toUnit as _0x1a4dbb}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x1a4dbb('px');export default class T extends _0x3ce763{constructor(_0x47b4c3){super(_0x47b4c3);const _0x5cc8aa=this[_0x29c4('0x0')];this[_0x29c4('0x7')](_0x29c4('0x6'),0x0),this[_0x29c4('0x7')](_0x29c4('0x5'),''),this[_0x29c4('0x8')]=this[_0x29c4('0x1')](),this[_0x29c4('0x4')]({'tag':_0x29c4('0x3'),'attributes':{'class':['ck','ck-sidebar',_0x29c4('0x2'),_0x5cc8aa['to'](_0x29c4('0x5'))],'style':{'minHeight':_0x5cc8aa['to'](_0x29c4('0x6'),_0x1aa9e0=>_0x1aa9e0?gt(_0x1aa9e0+0xa):null)}},'children':this[_0x29c4('0x8')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d51=['hasDomSelection','getOrderedSelectedAnnotations','uiUpdate','_destroyEditorAnnotationsIntegration','_detachFromContainer','attach','context','ck-sidebar--wide','updateTargetRect','_refreshPositioningDebounced','_integrateWithEditorAnnotations','wideSidebar','get','set','Sidebar','widesidebar-attach-already-attached','cancel','ready','requires','editors','annotations','addAnnotation','off','detach','removeEventListener','listenTo','stopListening','activeAnnotation','stop','remove','isAttached','add','blur','WideSidebar','refreshPositioning','set:container','_attachToContainer','plugins','_editorAnnotations','setActiveAnnotation','rearrange','EditorAnnotations','high','refresh','addEventListener','_activeAnnotation','widesidebar-detach-not-attached','_annotations','resize','change:container'];(function(_0x270de7,_0x1d518d){const _0x38a779=function(_0x5eb705){while(--_0x5eb705){_0x270de7['push'](_0x270de7['shift']());}};_0x38a779(++_0x1d518d);}(_0x1d51,0x108));const _0x38a7=function(_0x270de7,_0x1d518d){_0x270de7=_0x270de7-0x0;let _0x38a779=_0x1d51[_0x270de7];return _0x38a779;};import{ContextPlugin as _0x69f504}from'ckeditor5/src/core';import _0x14aa57 from'./annotationsuis';import _0x32df56 from'./sidebar';import{CKEditorError as _0x59f31c,Collection as _0x5a2039}from'ckeditor5/src/utils';import{debounce as _0xefb837}from'lodash-es';export default class i extends _0x69f504{static get[_0x38a7('0x4')](){return[_0x32df56,_0x14aa57];}static get['pluginName'](){return _0x38a7('0x13');}constructor(_0x60e918){super(_0x60e918),this[_0x38a7('0x10')]=!0x1,this[_0x38a7('0x31')](_0x38a7('0xd'),null),this[_0x38a7('0x6')]=null,this['_editorAnnotations']=new _0x5a2039(),this[_0x38a7('0x2d')]=_0xefb837(()=>{this[_0x38a7('0x6')]['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x89aa30=this[_0x38a7('0x2a')]['plugins'][_0x38a7('0x30')](_0x14aa57),_0x271c3=this[_0x38a7('0x2a')]['plugins'][_0x38a7('0x30')](_0x32df56);_0x89aa30['register'](_0x38a7('0x2f'),this),_0x271c3['container']&&_0x89aa30['switchTo'](_0x38a7('0x2f'));}['setActiveAnnotation'](_0x20c0df){if(_0x20c0df===this[_0x38a7('0xd')])return;const _0x5bbbf2=this['context'][_0x38a7('0x17')]['get'](_0x32df56);_0x5bbbf2[_0x38a7('0x1f')]=_0x20c0df;const _0x303a30=this[_0x38a7('0xd')];this[_0x38a7('0xd')]=_0x20c0df,_0x5bbbf2['refresh']({'blurredAnnotation':_0x303a30,'activatedAnnotation':this[_0x38a7('0xd')]});}['attach'](_0x50fde5){this[_0x38a7('0x6')]=_0x50fde5;const _0x17705c=this[_0x38a7('0x2a')][_0x38a7('0x17')][_0x38a7('0x30')](_0x38a7('0x0'));if(_0x17705c[_0x38a7('0x21')]=_0x50fde5,this[_0x38a7('0x10')])throw new _0x59f31c(_0x38a7('0x1'),this);this[_0x38a7('0x10')]=!0x0,this[_0x38a7('0xb')](_0x17705c,_0x38a7('0x15'),()=>{this[_0x38a7('0x9')](),this[_0x38a7('0xb')](_0x17705c,_0x38a7('0x23'),_0x4d5364=>{_0x4d5364[_0x38a7('0x8')](),this[_0x38a7('0x29')](_0x50fde5);});}),_0x17705c[_0x38a7('0x16')]({'viewClass':_0x38a7('0x2b')});const _0x3eadb5=_0xfcd5a5=>{_0xfcd5a5[_0x38a7('0x2c')](),_0x17705c[_0x38a7('0x7')](_0xfcd5a5);};for(const _0xc7bce5 of _0x50fde5)_0x3eadb5(_0xc7bce5);this[_0x38a7('0xb')](_0x50fde5,_0x38a7('0x11'),(_0x3d8f3d,_0x4004a9)=>{_0x3eadb5(_0x4004a9);}),this[_0x38a7('0xb')](_0x50fde5,_0x38a7('0xf'),(_0x5c303c,_0x50f1e9,_0x4d15b5)=>{_0x17705c[_0x38a7('0x1a')]({'removedAnnotation':_0x50f1e9,'previousAnnotation':_0x50fde5[_0x38a7('0x30')](_0x4d15b5-0x1),'nextAnnotation':_0x50fde5['get'](_0x4d15b5+0x1)}),_0x50f1e9===this[_0x38a7('0xd')]&&this[_0x38a7('0x19')](null);},{'priority':'high'}),this[_0x38a7('0xb')](_0x50fde5,'focus',(_0x45fd44,_0x1e45bf)=>{this['setActiveAnnotation'](_0x1e45bf);}),this[_0x38a7('0xb')](_0x50fde5,_0x38a7('0x12'),()=>{this[_0x38a7('0x19')](null);});const _0x14c75a=this['context'][_0x38a7('0x5')]?this[_0x38a7('0x2a')][_0x38a7('0x5')]:new _0x5a2039([this['context']]);for(const _0x1db7d5 of _0x14c75a)this[_0x38a7('0x2e')](_0x1db7d5);this[_0x38a7('0xb')](_0x14c75a,_0x38a7('0x11'),(_0x5083e5,_0x1d0e63)=>{this[_0x38a7('0xb')](_0x1d0e63,_0x38a7('0x3'),()=>{this[_0x38a7('0x2e')](_0x1d0e63);});}),this[_0x38a7('0xb')](_0x14c75a,_0x38a7('0xf'),(_0x4ff551,_0x5100fc)=>{_0x5100fc['plugins']['has'](_0x38a7('0x1b'))&&this['_destroyEditorAnnotationsIntegration'](_0x5100fc[_0x38a7('0x17')][_0x38a7('0x30')](_0x38a7('0x1b')));}),window[_0x38a7('0x1e')]('resize',this[_0x38a7('0x2d')]),this[_0x38a7('0x6')][_0x38a7('0x14')]();}[_0x38a7('0x9')](){if(!this[_0x38a7('0x10')])throw new _0x59f31c(_0x38a7('0x20'),this);this[_0x38a7('0x19')](null);const _0x2aa979=this[_0x38a7('0x2a')]['plugins'][_0x38a7('0x30')](_0x32df56);_0x2aa979[_0x38a7('0x28')](this[_0x38a7('0x6')]),this[_0x38a7('0xc')](_0x2aa979),this[_0x38a7('0xc')](this[_0x38a7('0x6')]),this[_0x38a7('0xc')](this[_0x38a7('0x2a')][_0x38a7('0x5')]);for(const _0x2783a2 of Array['from'](this['_editorAnnotations']))this[_0x38a7('0x27')](_0x2783a2);window[_0x38a7('0xa')](_0x38a7('0x22'),this[_0x38a7('0x2d')]),this[_0x38a7('0x2d')][_0x38a7('0x2')](),this[_0x38a7('0xd')]=null,this[_0x38a7('0x10')]=!0x1,this[_0x38a7('0x6')]=null;}['destroy'](){this[_0x38a7('0x10')]&&this[_0x38a7('0x9')]();}['_integrateWithEditorAnnotations'](_0x1f89b5){const _0xa67425=_0x1f89b5[_0x38a7('0x17')]['get'](_0x38a7('0x1b'));if(!_0xa67425)return;const _0x333580=()=>{const _0x14fec9=_0xa67425[_0x38a7('0x25')]({'annotations':this[_0x38a7('0x6')],'activeAnnotation':this[_0x38a7('0xd')]});this[_0x38a7('0x19')](_0x14fec9[0x0]||null);};this[_0x38a7('0xb')](_0xa67425,_0x38a7('0x1d'),_0x333580),this[_0x38a7('0xb')](_0xa67425,_0x38a7('0x12'),(_0x4244b0,{isAnnotationTracked:_0x585f9b})=>{this[_0x38a7('0xd')]&&_0x585f9b(this[_0x38a7('0xd')])&&this[_0x38a7('0x19')](null);}),this[_0x38a7('0xb')](_0xa67425,_0x38a7('0x26'),()=>{this['_refreshPositioningDebounced']();}),this[_0x38a7('0xb')](this[_0x38a7('0x6')],_0x38a7('0x12'),_0x30de1b=>{_0xa67425[_0x38a7('0x24')]()&&(_0x333580(),_0x30de1b[_0x38a7('0xe')]());},{'priority':_0x38a7('0x1c')}),this[_0x38a7('0x18')]['add'](_0xa67425);}[_0x38a7('0x27')](_0x1b435f){_0x1b435f&&(this[_0x38a7('0xc')](_0x1b435f),this['_editorAnnotations'][_0x38a7('0xf')](_0x1b435f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3cbc=['element','item','push','createRange','backward','model','textProxy','getRanges','isEnabled','editor','getLastMatchingPosition','_itemIsContent','comment:','execute','addMarker','_trimToContent','tableCell','substr','isObject'];(function(_0x410df9,_0x3cbca9){const _0x520c87=function(_0x3a761f){while(--_0x3a761f){_0x410df9['push'](_0x410df9['shift']());}};_0x520c87(++_0x3cbca9);}(_0x3cbc,0x175));const _0x520c=function(_0x410df9,_0x3cbca9){_0x410df9=_0x410df9-0x0;let _0x520c87=_0x3cbc[_0x410df9];return _0x520c87;};import{Command as _0x268363}from'ckeditor5/src/core';import{uid as _0x1cbb0c}from'ckeditor5/src/utils';export default class j extends _0x268363{['refresh'](){const _0x278784=this['editor']['model']['document']['selection'];for(const _0x1e8c20 of _0x278784[_0x520c('0xe')]())if(this['_hasContent'](_0x1e8c20))return void(this['isEnabled']=!0x0);this[_0x520c('0xf')]=!0x1;}[_0x520c('0x1')]({threadId:_0x918761=_0x1cbb0c()}={}){const _0x2fdf94=this[_0x520c('0x10')][_0x520c('0xc')],_0x3cf0d5=[];for(const _0x72cc2e of _0x2fdf94['document']['selection']['getRanges']())this['_hasContent'](_0x72cc2e)&&_0x3cf0d5[_0x520c('0x9')](this[_0x520c('0x3')](_0x72cc2e));_0x2fdf94['change'](_0x6d453e=>{for(const _0x597246 of _0x3cf0d5){const _0x163a3b=_0x1cbb0c()[_0x520c('0x5')](0x1,0x5),_0x40f5e0=_0x520c('0x0')+_0x918761+':'+_0x163a3b;_0x6d453e[_0x520c('0x2')](_0x40f5e0,{'range':_0x597246,'usingOperation':!0x1,'affectData':!0x1});}});}['_hasContent'](_0x36ba94){for(const _0xcc3d42 of _0x36ba94['getItems']())if(this[_0x520c('0x12')](_0xcc3d42))return!0x0;return!0x1;}[_0x520c('0x12')](_0x105ed3){return _0x105ed3['is'](_0x520c('0xd'))||this[_0x520c('0x10')][_0x520c('0xc')]['schema'][_0x520c('0x6')](_0x105ed3)&&!_0x105ed3['is'](_0x520c('0x7'),_0x520c('0x4'));}[_0x520c('0x3')](_0x21b95b){const _0x19683b=_0x3a5bbd=>!this['_itemIsContent'](_0x3a5bbd[_0x520c('0x8')]),_0x3bfd52=_0x21b95b['start'][_0x520c('0x11')](_0x19683b),_0xe61de1=_0x21b95b['end'][_0x520c('0x11')](_0x19683b,{'direction':_0x520c('0xb')});return this['editor'][_0x520c('0xc')][_0x520c('0xa')](_0x3bfd52,_0xe61de1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3576=['getByInnerView','isObject','model','config','state','change','change:isReadOnly','createRange','editor','Annotations','createElement','getCommentThread','once','hasContent','push','text','collaboration.channelId','editing','_initializeMarkerConverters','dataToMarker','comment','for','_handleMarkerAddAndRemove','upcast','end','stop','get','listenTo','$marker','delete','differ','rootName','getAttribute','top','size','removeCommentThread','data','createPositionBefore','map','switchReadOnly','low','view','editingDowncast','plugins','change:isThreadsLoadingPaused','sort','destroyed','getChangedMarkers','ck-comment-marker','includes','$graveyard','root','hasMarkerForId','has','left','pluginName','reconvertMarker','_attachMarkerToThread','attachTo','hasCommentThread','init','markerToData','isThreadsLoadingPaused','getAllMarkersForId','schema','set','conversion','updateMarker','_detachCommentThread','length','split','markers','CommentsRepository','document','ready','update:comment','start','addComment','addCommentThread','_attachedThreads','name','isCollapsed','ck-comment-marker--active','registerAnnotation','registerPostFixer','affectsData','getWalker','CommentsEditing','add','destroy','openNewCommentThread','activeMarker','getCommentThreads','change:activeMarker','newRange','commands'];(function(_0x1969a1,_0x3576b0){const _0x27f78f=function(_0x1f5fdb){while(--_0x1f5fdb){_0x1969a1['push'](_0x1969a1['shift']());}};_0x27f78f(++_0x3576b0);}(_0x3576,0xce));const _0x27f7=function(_0x1969a1,_0x3576b0){_0x1969a1=_0x1969a1-0x0;let _0x27f78f=_0x3576[_0x1969a1];return _0x27f78f;};import{Plugin as _0x3bbf7f}from'ckeditor5/src/core';import{Rect as _0x5a49bb}from'ckeditor5/src/utils';import _0x2e0be1 from'./commentsrepository';import _0x1c27e3 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x696325}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ed7c4 from'../annotations/editorannotations';import _0x21e1ef from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x4578f2 from'./integrations/importword';export default class r extends _0x3bbf7f{static get['requires'](){return[_0x2e0be1,_0x3ed7c4,_0x21e1ef,_0x4578f2];}static get[_0x27f7('0x29')](){return _0x27f7('0x49');}constructor(_0x2e35ff){super(_0x2e35ff),this[_0x27f7('0x33')]('isThreadsLoadingPaused',!0x0),_0x2e35ff[_0x27f7('0x16')][_0x27f7('0x5e')](_0x27f7('0x3c'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x27f7('0x33')](_0x27f7('0x4d'),null),this['on'](_0x27f7('0x4f'),(_0x4c50fe,_0x5e94d1,_0x49481b,_0x275eca)=>{_0x2e35ff[_0x27f7('0x54')][_0x27f7('0x57')](()=>{if(_0x49481b){const {id:_0x16c8be}=H(_0x49481b),_0x10bffb=this[_0x27f7('0x31')](_0x16c8be);for(const _0x417081 of _0x10bffb)_0x2e35ff[_0x27f7('0x3')][_0x27f7('0x2a')](_0x417081);}if(_0x275eca){const {id:_0x20a991}=H(_0x275eca),_0x7df943=this[_0x27f7('0x31')](_0x20a991);for(const _0x3112f7 of _0x7df943)_0x2e35ff[_0x27f7('0x3')]['reconvertMarker'](_0x3112f7);}});}),this['_attachedThreads']=new Map();}[_0x27f7('0x2e')](){const _0xd44e2e=this[_0x27f7('0x5a')],_0x4e36e0=_0xd44e2e[_0x27f7('0x1d')][_0x27f7('0xc')]('CommentsRepository'),_0x121156=_0xd44e2e[_0x27f7('0x55')][_0x27f7('0xc')](_0x27f7('0x2'));_0xd44e2e[_0x27f7('0x51')][_0x27f7('0x4a')](_0x27f7('0x40'),new _0x1c27e3(_0xd44e2e)),this[_0x27f7('0xd')](_0xd44e2e,_0x27f7('0x58'),(_0x45b77b,_0x3c98c6,_0x7db65d)=>{_0x4e36e0[_0x27f7('0x19')](_0x7db65d,_0xd44e2e[_0x27f7('0x55')][_0x27f7('0xc')](_0x27f7('0x2')));}),this[_0x27f7('0xd')](_0x4e36e0,G(_0x27f7('0x15'),_0x121156),(_0x6b8440,{threadId:_0x3db3da})=>{_0xd44e2e[_0x27f7('0x54')][_0x27f7('0x57')](_0x3d4026=>{for(const _0x56a302 of this[_0x27f7('0x31')](_0x3db3da))_0x3d4026['removeMarker'](_0x56a302);});const _0x365840=_0x4e36e0['getCommentThread'](_0x3db3da);_0x4e36e0[_0x27f7('0x2d')](_0x3db3da)&&!_0x365840[_0x27f7('0x37')]||_0x6b8440[_0x27f7('0xb')]();},{'priority':'high'}),this[_0x27f7('0xd')](_0x4e36e0,G(_0x27f7('0x3f'),_0x121156),(_0x181ccd,{threadId:_0x281d31,isFromAdapter:_0x4b4c16})=>{const _0xae2957=this['getAllMarkersForId'](_0x281d31);if(_0x4b4c16||0x0==_0xae2957['length']||!_0x4e36e0[_0x27f7('0x2d')](_0x281d31))return;0x1===_0x4e36e0['getCommentThread'](_0x281d31)[_0x27f7('0x37')]&&_0xd44e2e[_0x27f7('0x54')][_0x27f7('0x57')](_0x54555a=>{for(const _0x268dc0 of _0xae2957)_0x54555a[_0x27f7('0x35')](_0x268dc0,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x27f7('0x4')](),this[_0x27f7('0x8')]();}['destroy'](){const _0x477a82=this[_0x27f7('0x5a')][_0x27f7('0x1d')][_0x27f7('0xc')](_0x27f7('0x3a')),_0x233fd0=this[_0x27f7('0x5a')]['config'][_0x27f7('0xc')](_0x27f7('0x2'));for(const _0x405753 of _0x477a82[_0x27f7('0x4e')]({'channelId':_0x233fd0}))_0x477a82[_0x27f7('0x36')](_0x405753['id']),_0x477a82['_threads']['delete'](_0x405753['id']);super[_0x27f7('0x4b')]();}['hasMarkerForId'](_0xb8e9dc){return this[_0x27f7('0x31')](_0xb8e9dc)[_0x27f7('0x37')]>0x0;}[_0x27f7('0x31')](_0xac69a5){return(this[_0x27f7('0x41')][_0x27f7('0xc')](_0xac69a5)||[])[_0x27f7('0x18')](_0x58172e=>this['editor'][_0x27f7('0x54')][_0x27f7('0x39')][_0x27f7('0xc')](_0x58172e))['filter'](_0xe5fad4=>_0xe5fad4);}[_0x27f7('0x4')](){const _0x19872f=this[_0x27f7('0x5a')];_0x19872f['conversion'][_0x27f7('0x7')](_0x27f7('0x1c'))['markerToHighlight']({'model':_0x27f7('0x6'),'view':_0x36350a=>{const {id:_0x3ab2f2}=H(_0x36350a['markerName']),_0x35b348=[_0x27f7('0x22')];return this[_0x27f7('0x4d')]&&H(this[_0x27f7('0x4d')])['id']===_0x3ab2f2&&_0x35b348[_0x27f7('0x0')](_0x27f7('0x44')),{'classes':_0x35b348,'attributes':{'data-comment':_0x3ab2f2}};}}),_0x19872f['conversion'][_0x27f7('0x7')]('dataDowncast')[_0x27f7('0x2f')]({'model':'comment','view':_0x1f9b16=>{const _0x5e3c56=_0x19872f[_0x27f7('0x54')][_0x27f7('0x39')]['get'](_0x1f9b16),{id:_0x70f668,part:_0x574fc9}=H(_0x1f9b16);return _0x5e3c56&&!_0x5e3c56[_0x27f7('0x47')]?null:{'group':_0x27f7('0x6'),'name':_0x574fc9?_0x70f668+':'+_0x574fc9:_0x70f668};}}),_0x19872f[_0x27f7('0x34')][_0x27f7('0x7')](_0x27f7('0x9'))['elementToElement']({'view':{'name':_0x27f7('0x6'),'attribute':{'id':/^\w/}},'model':(_0x3110fe,{writer:_0x428137})=>_0x428137[_0x27f7('0x5c')](_0x27f7('0xe'),{'data-name':'comment:'+_0x3110fe[_0x27f7('0x12')]('id')})}),_0x19872f[_0x27f7('0x34')][_0x27f7('0x7')](_0x27f7('0x9'))[_0x27f7('0x5')]({'view':'comment'});}[_0x27f7('0x8')](){const _0x4d4f8e=this[_0x27f7('0x5a')],_0x6e8a3d=_0x4d4f8e['plugins'][_0x27f7('0xc')](_0x27f7('0x3a')),_0x1576d2=new Set();_0x4d4f8e[_0x27f7('0x54')][_0x27f7('0x3b')][_0x27f7('0x46')](_0x2f2635=>{let _0x6c3bf2=!0x1;for(const {name:_0x50f9fe,data:_0x5076c4}of _0x4d4f8e[_0x27f7('0x54')]['document'][_0x27f7('0x10')][_0x27f7('0x21')]()){const {group:_0x5a964e,id:_0x36b23e}=H(_0x50f9fe);let _0x5b1872=_0x5076c4[_0x27f7('0x50')];if(_0x27f7('0x6')!==_0x5a964e||!_0x5b1872)continue;const _0x582dc6=_0x27f7('0x24')===_0x5b1872[_0x27f7('0x25')][_0x27f7('0x11')];_0x582dc6||(_0x5b1872=J(_0x5b1872,_0x4d4f8e[_0x27f7('0x54')]),!_0x5b1872||_0x5b1872['isEqual'](_0x5076c4['newRange']))?!_0x5b1872||!_0x4d4f8e['model'][_0x27f7('0x5f')](_0x5b1872)||this[_0x27f7('0x41')]['has'](_0x36b23e)&&_0x582dc6?(_0x2f2635['removeMarker'](_0x50f9fe),_0x6c3bf2=!0x0):_0x582dc6||(this[_0x27f7('0x30')]?_0x1576d2[_0x27f7('0x4a')](_0x50f9fe):this[_0x27f7('0x2b')](_0x50f9fe,_0x36b23e)):(_0x2f2635[_0x27f7('0x35')](_0x50f9fe,{'range':_0x5b1872}),_0x6c3bf2=!0x0);}return _0x6c3bf2;}),this['on'](_0x27f7('0x1e'),(_0x1f028c,_0x21d7c4,_0x30c397)=>{if(!_0x30c397&&_0x1576d2[_0x27f7('0x14')])for(const _0x3aa01a of _0x1576d2){const {id:_0x54853b}=H(_0x3aa01a);_0x1576d2[_0x27f7('0xf')](_0x54853b),_0x4d4f8e['model']['markers'][_0x27f7('0xc')](_0x3aa01a)&&this['_attachMarkerToThread'](_0x3aa01a,_0x54853b);}}),this['listenTo'](_0x4d4f8e[_0x27f7('0x54')][_0x27f7('0x39')],_0x27f7('0x3d'),(_0x464a1d,_0x47f4e7,_0x1b37a7,_0x47939c)=>{if(_0x47939c)return;const {id:_0x5822c3}=H(_0x47f4e7[_0x27f7('0x42')]),_0x556c49=_0x4d4f8e[_0x27f7('0x1d')][_0x27f7('0xc')](_0x27f7('0x3a'))[_0x27f7('0x5d')](_0x5822c3);_0x1576d2[_0x27f7('0xf')](_0x5822c3),_0x556c49&&!this[_0x27f7('0x26')](_0x5822c3)&&(this[_0x27f7('0x41')][_0x27f7('0xf')](_0x5822c3),_0x6e8a3d[_0x27f7('0x36')](_0x5822c3));});}['_attachMarkerToThread'](_0x1ab807,_0x368eff){if(this['_attachedThreads'][_0x27f7('0x27')](_0x368eff)){const _0x22dcc8=this['_attachedThreads'][_0x27f7('0xc')](_0x368eff);return void(_0x22dcc8[_0x27f7('0x23')](_0x1ab807)||_0x22dcc8['push'](_0x1ab807));}this[_0x27f7('0x41')]['set'](_0x368eff,[_0x1ab807]);const _0x423838=this[_0x27f7('0x5a')],_0x131e44=_0x423838[_0x27f7('0x1d')][_0x27f7('0xc')](_0x27f7('0x3a')),_0x1e3ecc=_0x423838[_0x27f7('0x55')][_0x27f7('0xc')](_0x27f7('0x2')),_0x44924b=_0x423838['plugins'][_0x27f7('0xc')]('EditorAnnotations'),_0x38d793=()=>{const _0x124524=this['getAllMarkersForId'](_0x368eff);if(0x0===_0x124524[_0x27f7('0x37')])return null;if(0x1===_0x124524[_0x27f7('0x37')])return _0x696325(_0x423838[_0x27f7('0x3')],_0x124524[0x0]);const _0xb265f1=_0x124524['map'](_0x39a414=>_0x696325(_0x423838[_0x27f7('0x3')],_0x39a414));return _0xb265f1[_0x27f7('0x1f')]((_0x5b912f,_0x1f2058)=>{const _0x4972a6=new _0x5a49bb(_0x5b912f),_0x19d12d=new _0x5a49bb(_0x1f2058),_0x4a4314=_0x4972a6[_0x27f7('0x13')]-_0x19d12d[_0x27f7('0x13')];return 0x0==_0x4a4314?_0x4972a6['left']-_0x19d12d[_0x27f7('0x28')]:_0x4a4314;}),_0xb265f1[0x0];};!this[_0x27f7('0x31')](_0x368eff)[0x0]['managedUsingOperations']?_0x423838['editing'][_0x27f7('0x1b')][_0x27f7('0x5e')]('render',()=>{const _0x5c91ef=_0x423838['plugins'][_0x27f7('0xc')](_0x27f7('0x5b')),_0x5555c3=_0x131e44[_0x27f7('0x4c')]({'channelId':_0x1e3ecc,'threadId':_0x368eff,'target':_0x38d793}),_0x2a6c92=_0x131e44['_threadToController'][_0x27f7('0xc')](_0x5555c3)['view'],_0x1a9309=_0x5c91ef[_0x27f7('0x52')](_0x2a6c92);_0x44924b[_0x27f7('0x45')](_0x1a9309);},{'priority':_0x27f7('0x1a')}):_0x131e44['fetchCommentThread']({'channelId':_0x1e3ecc,'threadId':_0x368eff})['then'](_0x4e93b6=>{if(_0x27f7('0x20')!==_0x423838[_0x27f7('0x56')]){if(_0x4e93b6){const _0x2b5173=_0x4e93b6[_0x27f7('0x2c')](_0x38d793);_0x44924b[_0x27f7('0x45')](_0x2b5173);}else{const _0x4873a6=this['getAllMarkersForId'](_0x368eff);_0x423838[_0x27f7('0x54')][_0x27f7('0x57')](_0x269cff=>{for(const _0x31b34c of _0x4873a6)_0x269cff['removeMarker'](_0x31b34c);});}}});}}function G(_0x4924c9,_0x216165){return _0x216165?_0x4924c9+':'+_0x216165:_0x4924c9;}function H(_0x26ec77){const _0x450d0a=_0x26ec77[_0x27f7('0x38')](':');return{'group':_0x450d0a[0x0],'id':_0x450d0a[0x1],'part':_0x450d0a[0x2]};}function J(_0x37ccea,_0x286404){const _0x575a4b=_0x286404[_0x27f7('0x32')],_0x3a7356=_0x286404[_0x27f7('0x59')](_0x37ccea[_0x27f7('0x3e')]);for(const _0xdb4d70 of _0x37ccea[_0x27f7('0x48')]()){const {type:_0x4c58b9,item:_0x2c6552,nextPosition:_0x24a00c}=_0xdb4d70;if(_0x27f7('0x1')===_0x4c58b9||_0x575a4b[_0x27f7('0x53')](_0x2c6552)){const _0x4e7e8d=_0x286404[_0x27f7('0x17')](_0x2c6552);_0x3a7356[_0x27f7('0x43')]&&(_0x3a7356[_0x27f7('0x3e')]=_0x4e7e8d),_0x3a7356[_0x27f7('0xa')]=_0x24a00c;}}return _0x3a7356[_0x27f7('0x43')]?null:_0x3a7356;}
|
|
23
|
+
const _0x34c5=['getCommentThread','removeCommentThread','CommentsRepository','init','destroy','hasContent','change:isThreadsLoadingPaused','_initializeMarkerConverters','registerAnnotation','upcast','document','dataToMarker','openNewCommentThread','differ','stop','map','addComment','switchReadOnly','for','ck-comment-marker','set','removeMarker','requires','updateMarker','_attachedThreads','hasCommentThread','name','high','CommentsEditing','getAllMarkersForId','EditorAnnotations','pluginName','_handleMarkerAddAndRemove','collaboration.channelId','getByInnerView','editing','listenTo','end','top','_detachCommentThread','model','low','view','start','includes','split','change','render','reconvertMarker','markerName','left','$marker','isObject','update:comment','Annotations','markers','commands','destroyed','schema','fetchCommentThread','delete','get','activeMarker','root','_threadToController','affectsData','_attachMarkerToThread','rootName','$graveyard','length','markerToHighlight','dataDowncast','comment:','once','change:isReadOnly','createPositionBefore','editor','_threads','filter','config','registerPostFixer','push','has','getAttribute','ck-comment-marker--active','isThreadsLoadingPaused','comment','conversion','elementToElement','add','plugins','createElement','data'];(function(_0x7af825,_0x34c593){const _0x5595bb=function(_0x335f50){while(--_0x335f50){_0x7af825['push'](_0x7af825['shift']());}};_0x5595bb(++_0x34c593);}(_0x34c5,0x84));const _0x5595=function(_0x7af825,_0x34c593){_0x7af825=_0x7af825-0x0;let _0x5595bb=_0x34c5[_0x7af825];return _0x5595bb;};import{Plugin as _0x277d29}from'ckeditor5/src/core';import{Rect as _0x25c4f5}from'ckeditor5/src/utils';import _0x451444 from'./commentsrepository';import _0x3b6fe9 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x3460dd}from'ckeditor5-collaboration/src/collaboration-core';import _0x1ddc19 from'../annotations/editorannotations';import _0x2d31c2 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x46500c from'./integrations/importword';export default class r extends _0x277d29{static get[_0x5595('0x4c')](){return[_0x451444,_0x1ddc19,_0x2d31c2,_0x46500c];}static get[_0x5595('0x55')](){return _0x5595('0x52');}constructor(_0x14730a){super(_0x14730a),this['set']('isThreadsLoadingPaused',!0x0),_0x14730a[_0x5595('0x35')][_0x5595('0x22')]('ready',()=>this[_0x5595('0x2e')]=!0x1),this[_0x5595('0x4a')](_0x5595('0x17'),null),this['on']('change:activeMarker',(_0x1487b4,_0x51ffc6,_0x56e013,_0x12ec1f)=>{_0x14730a[_0x5595('0x1')]['change'](()=>{if(_0x56e013){const {id:_0x5f4222}=H(_0x56e013),_0x45a089=this[_0x5595('0x53')](_0x5f4222);for(const _0x154df9 of _0x45a089)_0x14730a[_0x5595('0x59')][_0x5595('0x9')](_0x154df9);}if(_0x12ec1f){const {id:_0x85863e}=H(_0x12ec1f),_0x5bf73e=this[_0x5595('0x53')](_0x85863e);for(const _0xc5ccdc of _0x5bf73e)_0x14730a[_0x5595('0x59')][_0x5595('0x9')](_0xc5ccdc);}});}),this[_0x5595('0x4e')]=new Map();}[_0x5595('0x39')](){const _0x3bd5f2=this[_0x5595('0x25')],_0x363d22=_0x3bd5f2['plugins']['get'](_0x5595('0x38')),_0x38719a=_0x3bd5f2[_0x5595('0x28')]['get']('collaboration.channelId');_0x3bd5f2[_0x5595('0x11')][_0x5595('0x32')]('addCommentThread',new _0x3b6fe9(_0x3bd5f2)),this['listenTo'](_0x3bd5f2,_0x5595('0x23'),(_0x4f6852,_0x1c69e6,_0x1e6ec5)=>{_0x363d22[_0x5595('0x47')](_0x1e6ec5,_0x3bd5f2[_0x5595('0x28')][_0x5595('0x16')](_0x5595('0x57')));}),this[_0x5595('0x5a')](_0x363d22,G(_0x5595('0x37'),_0x38719a),(_0x2fe994,{threadId:_0x270696})=>{_0x3bd5f2['model'][_0x5595('0x7')](_0xd5db24=>{for(const _0x10fba1 of this[_0x5595('0x53')](_0x270696))_0xd5db24[_0x5595('0x4b')](_0x10fba1);});const _0x21e923=_0x363d22[_0x5595('0x36')](_0x270696);_0x363d22['hasCommentThread'](_0x270696)&&!_0x21e923['length']||_0x2fe994[_0x5595('0x44')]();},{'priority':_0x5595('0x51')}),this[_0x5595('0x5a')](_0x363d22,G(_0x5595('0x46'),_0x38719a),(_0x2929a0,{threadId:_0x65f79d,isFromAdapter:_0x3e072d})=>{const _0x192c83=this['getAllMarkersForId'](_0x65f79d);if(_0x3e072d||0x0==_0x192c83['length']||!_0x363d22[_0x5595('0x4f')](_0x65f79d))return;0x1===_0x363d22['getCommentThread'](_0x65f79d)[_0x5595('0x1e')]&&_0x3bd5f2[_0x5595('0x1')]['change'](_0x32cce6=>{for(const _0x469616 of _0x192c83)_0x32cce6[_0x5595('0x4d')](_0x469616,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5595('0x2')}),this[_0x5595('0x3d')](),this['_handleMarkerAddAndRemove']();}[_0x5595('0x3a')](){const _0x7a76ec=this[_0x5595('0x25')][_0x5595('0x33')][_0x5595('0x16')](_0x5595('0x38')),_0x457d1a=this[_0x5595('0x25')][_0x5595('0x28')][_0x5595('0x16')](_0x5595('0x57'));for(const _0x4b9863 of _0x7a76ec['getCommentThreads']({'channelId':_0x457d1a}))_0x7a76ec[_0x5595('0x0')](_0x4b9863['id']),_0x7a76ec[_0x5595('0x26')][_0x5595('0x15')](_0x4b9863['id']);super[_0x5595('0x3a')]();}['hasMarkerForId'](_0xec1f0a){return this[_0x5595('0x53')](_0xec1f0a)['length']>0x0;}['getAllMarkersForId'](_0x461952){return(this[_0x5595('0x4e')]['get'](_0x461952)||[])[_0x5595('0x45')](_0x4069d1=>this[_0x5595('0x25')]['model'][_0x5595('0x10')][_0x5595('0x16')](_0x4069d1))[_0x5595('0x27')](_0x581162=>_0x581162);}[_0x5595('0x3d')](){const _0x6823ab=this[_0x5595('0x25')];_0x6823ab[_0x5595('0x30')][_0x5595('0x48')]('editingDowncast')[_0x5595('0x1f')]({'model':_0x5595('0x2f'),'view':_0x1b78ac=>{const {id:_0x5da2a9}=H(_0x1b78ac[_0x5595('0xa')]),_0x39291a=[_0x5595('0x49')];return this['activeMarker']&&H(this[_0x5595('0x17')])['id']===_0x5da2a9&&_0x39291a[_0x5595('0x2a')](_0x5595('0x2d')),{'classes':_0x39291a,'attributes':{'data-comment':_0x5da2a9}};}}),_0x6823ab[_0x5595('0x30')][_0x5595('0x48')](_0x5595('0x20'))['markerToData']({'model':'comment','view':_0x44fb3b=>{const _0xc59cd9=_0x6823ab['model'][_0x5595('0x10')][_0x5595('0x16')](_0x44fb3b),{id:_0x50dcfa,part:_0x35bf73}=H(_0x44fb3b);return _0xc59cd9&&!_0xc59cd9[_0x5595('0x1a')]?null:{'group':_0x5595('0x2f'),'name':_0x35bf73?_0x50dcfa+':'+_0x35bf73:_0x50dcfa};}}),_0x6823ab['conversion'][_0x5595('0x48')]('upcast')[_0x5595('0x31')]({'view':{'name':'comment','attribute':{'id':/^\w/}},'model':(_0x3bdbb1,{writer:_0xcbb2c})=>_0xcbb2c[_0x5595('0x34')](_0x5595('0xc'),{'data-name':_0x5595('0x21')+_0x3bdbb1[_0x5595('0x2c')]('id')})}),_0x6823ab[_0x5595('0x30')]['for'](_0x5595('0x3f'))[_0x5595('0x41')]({'view':_0x5595('0x2f')});}[_0x5595('0x56')](){const _0x11d648=this[_0x5595('0x25')],_0x643ac1=_0x11d648[_0x5595('0x33')][_0x5595('0x16')](_0x5595('0x38')),_0x3f446a=new Set();_0x11d648['model'][_0x5595('0x40')][_0x5595('0x29')](_0x5007b7=>{let _0x196f62=!0x1;for(const {name:_0x18b3cf,data:_0x35cea2}of _0x11d648[_0x5595('0x1')][_0x5595('0x40')][_0x5595('0x43')]['getChangedMarkers']()){const {group:_0x66f7d2,id:_0x3ee846}=H(_0x18b3cf);let _0x7cb633=_0x35cea2['newRange'];if(_0x5595('0x2f')!==_0x66f7d2||!_0x7cb633)continue;const _0x22780=_0x5595('0x1d')===_0x7cb633[_0x5595('0x18')][_0x5595('0x1c')];_0x22780||(_0x7cb633=J(_0x7cb633,_0x11d648[_0x5595('0x1')]),!_0x7cb633||_0x7cb633['isEqual'](_0x35cea2['newRange']))?!_0x7cb633||!_0x11d648[_0x5595('0x1')][_0x5595('0x3b')](_0x7cb633)||this[_0x5595('0x4e')][_0x5595('0x2b')](_0x3ee846)&&_0x22780?(_0x5007b7['removeMarker'](_0x18b3cf),_0x196f62=!0x0):_0x22780||(this['isThreadsLoadingPaused']?_0x3f446a['add'](_0x18b3cf):this[_0x5595('0x1b')](_0x18b3cf,_0x3ee846)):(_0x5007b7[_0x5595('0x4d')](_0x18b3cf,{'range':_0x7cb633}),_0x196f62=!0x0);}return _0x196f62;}),this['on'](_0x5595('0x3c'),(_0x47039e,_0x70d979,_0x30cf78)=>{if(!_0x30cf78&&_0x3f446a['size'])for(const _0x4c79bc of _0x3f446a){const {id:_0x211ced}=H(_0x4c79bc);_0x3f446a['delete'](_0x211ced),_0x11d648[_0x5595('0x1')][_0x5595('0x10')][_0x5595('0x16')](_0x4c79bc)&&this[_0x5595('0x1b')](_0x4c79bc,_0x211ced);}}),this['listenTo'](_0x11d648[_0x5595('0x1')][_0x5595('0x10')],_0x5595('0xe'),(_0x365bbb,_0x10d665,_0x3122e2,_0x369662)=>{if(_0x369662)return;const {id:_0x5247f8}=H(_0x10d665[_0x5595('0x50')]),_0x1d0660=_0x11d648[_0x5595('0x33')][_0x5595('0x16')]('CommentsRepository')[_0x5595('0x36')](_0x5247f8);_0x3f446a[_0x5595('0x15')](_0x5247f8),_0x1d0660&&!this['hasMarkerForId'](_0x5247f8)&&(this[_0x5595('0x4e')]['delete'](_0x5247f8),_0x643ac1[_0x5595('0x0')](_0x5247f8));});}[_0x5595('0x1b')](_0x3e5f8c,_0x3fbce3){if(this[_0x5595('0x4e')][_0x5595('0x2b')](_0x3fbce3)){const _0x49b363=this[_0x5595('0x4e')][_0x5595('0x16')](_0x3fbce3);return void(_0x49b363[_0x5595('0x5')](_0x3e5f8c)||_0x49b363['push'](_0x3e5f8c));}this[_0x5595('0x4e')][_0x5595('0x4a')](_0x3fbce3,[_0x3e5f8c]);const _0x3c3110=this[_0x5595('0x25')],_0x5745d4=_0x3c3110[_0x5595('0x33')][_0x5595('0x16')](_0x5595('0x38')),_0x2b2d72=_0x3c3110[_0x5595('0x28')]['get']('collaboration.channelId'),_0x1b5913=_0x3c3110[_0x5595('0x33')]['get'](_0x5595('0x54')),_0x3fe7c4=()=>{const _0x3aba3c=this[_0x5595('0x53')](_0x3fbce3);if(0x0===_0x3aba3c['length'])return null;if(0x1===_0x3aba3c[_0x5595('0x1e')])return _0x3460dd(_0x3c3110[_0x5595('0x59')],_0x3aba3c[0x0]);const _0x507a63=_0x3aba3c['map'](_0x733a6b=>_0x3460dd(_0x3c3110[_0x5595('0x59')],_0x733a6b));return _0x507a63['sort']((_0x544250,_0x2dc92d)=>{const _0x5380cb=new _0x25c4f5(_0x544250),_0xf50afa=new _0x25c4f5(_0x2dc92d),_0x104879=_0x5380cb[_0x5595('0x5c')]-_0xf50afa[_0x5595('0x5c')];return 0x0==_0x104879?_0x5380cb['left']-_0xf50afa[_0x5595('0xb')]:_0x104879;}),_0x507a63[0x0];};!this[_0x5595('0x53')](_0x3fbce3)[0x0]['managedUsingOperations']?_0x3c3110[_0x5595('0x59')][_0x5595('0x3')]['once'](_0x5595('0x8'),()=>{const _0x80a11e=_0x3c3110[_0x5595('0x33')]['get'](_0x5595('0xf')),_0x266b7a=_0x5745d4[_0x5595('0x42')]({'channelId':_0x2b2d72,'threadId':_0x3fbce3,'target':_0x3fe7c4}),_0x211f18=_0x5745d4[_0x5595('0x19')][_0x5595('0x16')](_0x266b7a)[_0x5595('0x3')],_0xd48273=_0x80a11e[_0x5595('0x58')](_0x211f18);_0x1b5913[_0x5595('0x3e')](_0xd48273);},{'priority':'low'}):_0x5745d4[_0x5595('0x14')]({'channelId':_0x2b2d72,'threadId':_0x3fbce3})['then'](_0xfeb3e6=>{if(_0x5595('0x12')!==_0x3c3110['state']){if(_0xfeb3e6){const _0x2d8488=_0xfeb3e6['attachTo'](_0x3fe7c4);_0x1b5913[_0x5595('0x3e')](_0x2d8488);}else{const _0x313758=this[_0x5595('0x53')](_0x3fbce3);_0x3c3110[_0x5595('0x1')][_0x5595('0x7')](_0x3fd94b=>{for(const _0x3b1e66 of _0x313758)_0x3fd94b[_0x5595('0x4b')](_0x3b1e66);});}}});}}function G(_0x3fd018,_0x3487cd){return _0x3487cd?_0x3fd018+':'+_0x3487cd:_0x3fd018;}function H(_0x2989eb){const _0x335874=_0x2989eb[_0x5595('0x6')](':');return{'group':_0x335874[0x0],'id':_0x335874[0x1],'part':_0x335874[0x2]};}function J(_0xab2ac4,_0x3b173e){const _0x12df87=_0x3b173e[_0x5595('0x13')],_0x289260=_0x3b173e['createRange'](_0xab2ac4[_0x5595('0x4')]);for(const _0x312bb3 of _0xab2ac4['getWalker']()){const {type:_0x54d179,item:_0x46083c,nextPosition:_0x10e8d7}=_0x312bb3;if('text'===_0x54d179||_0x12df87[_0x5595('0xd')](_0x46083c)){const _0x89e6cb=_0x3b173e[_0x5595('0x24')](_0x46083c);_0x289260['isCollapsed']&&(_0x289260[_0x5595('0x4')]=_0x89e6cb),_0x289260[_0x5595('0x5b')]=_0x10e8d7;}}return _0x289260['isCollapsed']?null:_0x289260;}
|