@ckeditor/ckeditor5-comments 35.2.1 → 35.3.1
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/CHANGELOG.md +1 -1
- package/README.md +1 -1
- 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/lang/contexts.json +4 -1
- package/lang/translations/af.po +12 -0
- package/lang/translations/ar.po +12 -0
- package/lang/translations/bg.po +12 -0
- package/lang/translations/bn.po +12 -0
- package/lang/translations/bs.po +12 -0
- package/lang/translations/ca.po +12 -0
- package/lang/translations/cs.po +12 -0
- package/lang/translations/da.po +12 -0
- package/lang/translations/de-ch.po +12 -0
- package/lang/translations/de.po +12 -0
- package/lang/translations/el.po +12 -0
- package/lang/translations/en-au.po +12 -0
- package/lang/translations/en.po +12 -0
- package/lang/translations/es-co.po +12 -0
- package/lang/translations/es.po +12 -0
- package/lang/translations/et.po +12 -0
- package/lang/translations/fa.po +12 -0
- package/lang/translations/fi.po +12 -0
- package/lang/translations/fr.po +12 -0
- package/lang/translations/gl.po +12 -0
- package/lang/translations/he.po +12 -0
- package/lang/translations/hi.po +12 -0
- package/lang/translations/hr.po +12 -0
- package/lang/translations/hu.po +12 -0
- package/lang/translations/id.po +12 -0
- package/lang/translations/it.po +12 -0
- package/lang/translations/ja.po +12 -0
- package/lang/translations/jv.po +12 -0
- package/lang/translations/ko.po +12 -0
- package/lang/translations/lt.po +12 -0
- package/lang/translations/lv.po +12 -0
- package/lang/translations/ms.po +12 -0
- package/lang/translations/nl.po +12 -0
- package/lang/translations/no.po +12 -0
- package/lang/translations/pl.po +12 -0
- package/lang/translations/pt-br.po +12 -0
- package/lang/translations/pt.po +12 -0
- package/lang/translations/ro.po +12 -0
- package/lang/translations/ru.po +12 -0
- package/lang/translations/sk.po +12 -0
- package/lang/translations/sr-latn.po +12 -0
- package/lang/translations/sr.po +12 -0
- package/lang/translations/sv.po +12 -0
- package/lang/translations/th.po +12 -0
- package/lang/translations/tk.po +12 -0
- package/lang/translations/tr.po +12 -0
- package/lang/translations/tt.po +12 -0
- package/lang/translations/ug.po +12 -0
- package/lang/translations/uk.po +12 -0
- package/lang/translations/ur.po +12 -0
- package/lang/translations/vi.po +12 -0
- package/lang/translations/zh-cn.po +12 -0
- package/lang/translations/zh.po +12 -0
- 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/comment.css +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f87=['view','list','change:_lastItem','_getMaxAvailableTop','remove','appendChild','element','bottom','rearrange','sidebar.container','change:top','define','context','unbind','add','nodeType','getSidebarItemView','height','listenTo','refresh','init','stopListening','_setItemTop','_updateLastItem','set','_getTargetTop','target','change:targetRect','_attachToContainer','locale','_annotationToSidebarItemView','getIndex','_createSidebarView','minHeight','sidebar-attachtocontainer-missing-container','get','updateHeight','isAnimationDisabled','_alignForTopChange','max','isActive','sidebar.preventScrollOutOfView','container','_detachFromContainer','config','top','render','clear','_annotations','_alignAfterItem','_lastItem','class','_recalculateBuffer','_alignToTargetRect','_activeAnnotation','destroy','_sidebarItemViewToAnnotation','_alignForBottomChange','_alignBeforeItem','change:bottom','_getItemBefore','_targetTop','delete','_destroySidebarItemView','_getItemAfter','length','_recalculate','targetRect','_spaceBetweenItems','content','sidebar-setcontainer-invalid-element'];(function(_0x2583c1,_0x1f8741){const _0x2a6bb1=function(_0x215155){while(--_0x215155){_0x2583c1['push'](_0x2583c1['shift']());}};_0x2a6bb1(++_0x1f8741);}(_0x1f87,0x101));const _0x2a6b=function(_0x2583c1,_0x1f8741){_0x2583c1=_0x2583c1-0x0;let _0x2a6bb1=_0x1f87[_0x2583c1];return _0x2a6bb1;};import{ContextPlugin as _0x781979}from'ckeditor5/src/core';import _0x376145 from'./view/sidebarview';import _0x13e760 from'./view/sidebaritemview';import{Rect as _0x4d0ac9,CKEditorError as _0x3e929b}from'ckeditor5/src/utils';export default class ht extends _0x781979{static get['pluginName'](){return'Sidebar';}constructor(_0x40afa3){super(_0x40afa3),this[_0x2a6b('0x33')](_0x2a6b('0x6')),this[_0x2a6b('0x1b')]=this[_0x2a6b('0x3b')](),this[_0x2a6b('0x33')](_0x2a6b('0x45'),null),this[_0x2a6b('0x18')]=0x19,this[_0x2a6b('0xc')]=new Map(),this[_0x2a6b('0x39')]=new Map(),this[_0x2a6b('0x27')][_0x2a6b('0x0')][_0x2a6b('0x26')](_0x2a6b('0x44'),!0x1),this[_0x2a6b('0x4')]=null,this[_0x2a6b('0xa')]=null,this[_0x2a6b('0x8')]=[];}[_0x2a6b('0x2f')](){const _0x5e3e2f=this[_0x2a6b('0x27')]['config'][_0x2a6b('0x3e')](_0x2a6b('0x24'));_0x5e3e2f&&this['setContainer'](_0x5e3e2f);}['setContainer'](_0xfc96cd){if(!K(_0xfc96cd))throw new _0x3e929b(_0x2a6b('0x1a'));this[_0x2a6b('0x45')]=_0xfc96cd;}[_0x2a6b('0x37')]({viewClass:_0x54f4e7='',spaceBetweenItems:_0x2e9d03=0x19}={}){if(!K(this[_0x2a6b('0x45')]))throw new _0x3e929b(_0x2a6b('0x3d'),this);this['container'][_0x2a6b('0x20')](this['view'][_0x2a6b('0x21')]),this[_0x2a6b('0x1b')][_0x2a6b('0x7')]=_0x54f4e7,this[_0x2a6b('0x18')]=_0x2e9d03;}[_0x2a6b('0x23')]({removedAnnotation:_0x19fed6,previousAnnotation:_0x4bc3fe,nextAnnotation:_0x21f746}){const _0x1e6cca=this[_0x2a6b('0x2b')](_0x19fed6);this[_0x2a6b('0x1b')][_0x2a6b('0x1c')][_0x2a6b('0x1f')](_0x1e6cca),this['_destroySidebarItemView'](_0x19fed6),_0x4bc3fe&&this['_alignToTargetRect'](this[_0x2a6b('0x2b')](_0x4bc3fe)),_0x21f746&&this[_0x2a6b('0x9')](this[_0x2a6b('0x2b')](_0x21f746)),this[_0x2a6b('0x32')]();}[_0x2a6b('0x2e')]({blurredAnnotation:_0xab2de4,activatedAnnotation:_0x1508a8,disableAnimationOnActivatedAnnotation:_0x1a83dd}){if(this['_activeAnnotation']=_0x1508a8,_0xab2de4){_0xab2de4[_0x2a6b('0x43')]=!0x1;const _0x2fbe89=this[_0x2a6b('0x2b')](_0xab2de4);_0x2fbe89&&_0x1a83dd&&(_0x2fbe89[_0x2a6b('0x40')]=!0x1);}if(_0x1508a8){const _0x46e0f4=this['getSidebarItemView'](_0x1508a8);_0x46e0f4&&(_0x1508a8['isActive']=!0x0,_0x1a83dd&&(_0x46e0f4[_0x2a6b('0x40')]=!0x0,_0x46e0f4[_0x2a6b('0x1')]+=0x1),this[_0x2a6b('0x9')](_0x46e0f4));}}[_0x2a6b('0x46')](_0x2606df){this[_0x2a6b('0x30')](),this[_0x2a6b('0x1b')][_0x2a6b('0x21')][_0x2a6b('0x1f')]();for(const _0x49febe of _0x2606df)this[_0x2a6b('0x13')](_0x49febe);this[_0x2a6b('0x1b')][_0x2a6b('0x1c')][_0x2a6b('0x3')](),this['view'][_0x2a6b('0x7')]='',this[_0x2a6b('0x6')]=null;}['addAnnotation'](_0x55f87f,_0x2f6792){_0x2f6792||(_0x2f6792=_0x55f87f['view']);const _0x21938c=new _0x13e760(this['context'][_0x2a6b('0x38')]);this[_0x2a6b('0xc')][_0x2a6b('0x33')](_0x21938c,_0x55f87f),this[_0x2a6b('0x39')][_0x2a6b('0x33')](_0x55f87f,_0x21938c),_0x21938c[_0x2a6b('0x19')][_0x2a6b('0x29')](_0x2f6792),this['listenTo'](_0x55f87f[_0x2a6b('0x1b')],_0x2a6b('0x36'),(_0x587483,_0x521fb9,_0x26f6e7)=>{const _0x5528b2=this[_0x2a6b('0x34')](_0x55f87f,_0x26f6e7);_0x21938c[_0x2a6b('0x11')]!=_0x5528b2&&(_0x21938c['_targetTop']=_0x5528b2,this['_setItemTop'](_0x21938c,_0x5528b2));}),this[_0x2a6b('0x2d')](_0x21938c,_0x2a6b('0x25'),()=>{this[_0x2a6b('0x16')](_0x21938c,_0x2a6b('0x1'));}),this[_0x2a6b('0x2d')](_0x21938c,_0x2a6b('0xf'),()=>{this[_0x2a6b('0x16')](_0x21938c,_0x2a6b('0x22'));}),this[_0x2a6b('0x9')](_0x21938c);const _0x431c49=this[_0x2a6b('0x10')](_0x21938c);if(_0x431c49)this[_0x2a6b('0x5')](_0x431c49,_0x21938c)||this[_0x2a6b('0x9')](_0x21938c);else this[_0x2a6b('0x9')](_0x21938c);return this[_0x2a6b('0x32')](),this[_0x2a6b('0x1b')]['list'][_0x2a6b('0x29')](_0x21938c),_0x21938c;}[_0x2a6b('0x41')](_0x47c2dd){if(!_0x47c2dd[_0x2a6b('0x19')][_0x2a6b('0x15')])return;const _0x25e910=this[_0x2a6b('0x10')](_0x47c2dd);if(!_0x25e910)return;const _0x476264=this[_0x2a6b('0xc')][_0x2a6b('0x3e')](_0x25e910),_0x27d73e=this[_0x2a6b('0xa')];_0x27d73e&&_0x27d73e===_0x476264?this[_0x2a6b('0x5')](_0x25e910,_0x47c2dd):this['_alignBeforeItem'](_0x47c2dd,_0x25e910);}[_0x2a6b('0xd')](_0x1cd042){if(!_0x1cd042[_0x2a6b('0x19')][_0x2a6b('0x15')])return;const _0x4b75b3=this[_0x2a6b('0x14')](_0x1cd042);if(!_0x4b75b3)return;const _0x3575ef=this[_0x2a6b('0xc')][_0x2a6b('0x3e')](_0x4b75b3),_0x43e703=this[_0x2a6b('0x27')][_0x2a6b('0x0')][_0x2a6b('0x3e')](_0x2a6b('0x44')),_0x139470=this[_0x2a6b('0xa')];_0x139470&&_0x139470===_0x3575ef&&_0x43e703?(this[_0x2a6b('0xe')](_0x4b75b3,_0x1cd042),this[_0x2a6b('0x5')](_0x1cd042,_0x4b75b3)):_0x139470&&_0x139470===_0x3575ef?this[_0x2a6b('0xe')](_0x4b75b3,_0x1cd042):this[_0x2a6b('0x5')](_0x1cd042,_0x4b75b3);}[_0x2a6b('0x16')](_0x40ab47,_0xcaf369){0x0===this[_0x2a6b('0x8')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x670cea,changedProp:_0x1c7779}of this['_recalculateBuffer'])_0x2a6b('0x1')===_0x1c7779?this['_alignForTopChange'](_0x670cea):this['_alignForBottomChange'](_0x670cea);this[_0x2a6b('0x8')]=[];},0xa),this[_0x2a6b('0x8')]['push']({'sidebarItemView':_0x40ab47,'changedProp':_0xcaf369});}[_0x2a6b('0x2b')](_0x22483b){return this[_0x2a6b('0x39')][_0x2a6b('0x3e')](_0x22483b);}[_0x2a6b('0xb')](){this[_0x2a6b('0x1b')][_0x2a6b('0xb')]();}['_destroySidebarItemView'](_0x5bc93d){const _0x441543=this[_0x2a6b('0x2b')](_0x5bc93d);this[_0x2a6b('0x30')](_0x441543),this[_0x2a6b('0x30')](_0x5bc93d[_0x2a6b('0x1b')]),_0x441543[_0x2a6b('0xb')](),this['_annotationToSidebarItemView'][_0x2a6b('0x12')](_0x5bc93d),this[_0x2a6b('0xc')]['delete'](_0x441543);}[_0x2a6b('0x3b')](){const _0x5fdecb=new _0x376145(this[_0x2a6b('0x27')][_0x2a6b('0x38')]);return _0x5fdecb[_0x2a6b('0x2')](),this['on'](_0x2a6b('0x1d'),(_0x3aa25e,_0x33eccc,_0x1a5800,_0x6c22d)=>{_0x6c22d&&_0x5fdecb[_0x2a6b('0x28')](_0x2a6b('0x3c')),_0x1a5800?_0x5fdecb['bind'](_0x2a6b('0x3c'))['to'](_0x1a5800,'bottom'):_0x5fdecb[_0x2a6b('0x3c')]=null;}),_0x5fdecb;}[_0x2a6b('0x32')](){this[_0x2a6b('0x6')]=this[_0x2a6b('0x2b')](this[_0x2a6b('0x4')]['last']);}[_0x2a6b('0x10')](_0x5ed0b2){const _0xbf5847=this[_0x2a6b('0xc')]['get'](_0x5ed0b2),_0x2ab208=this[_0x2a6b('0x4')][_0x2a6b('0x3e')](this[_0x2a6b('0x4')][_0x2a6b('0x3a')](_0xbf5847)-0x1);return _0x2ab208&&this['getSidebarItemView'](_0x2ab208);}[_0x2a6b('0x14')](_0x225f49){const _0x1d8916=this['_sidebarItemViewToAnnotation'][_0x2a6b('0x3e')](_0x225f49),_0x56c831=this[_0x2a6b('0x4')]['get'](this[_0x2a6b('0x4')]['getIndex'](_0x1d8916)+0x1);return _0x56c831&&this[_0x2a6b('0x2b')](_0x56c831);}[_0x2a6b('0xe')](_0x17770d,_0x3c613d){_0x17770d['updateHeight']();const _0x5ae568=ut(_0x3c613d[_0x2a6b('0x22')]+this[_0x2a6b('0x18')],_0x17770d[_0x2a6b('0x1')]);return!!_0x5ae568&&(this[_0x2a6b('0x31')](_0x3c613d,_0x3c613d[_0x2a6b('0x1')]-_0x5ae568),!0x0);}[_0x2a6b('0x5')](_0x397e3b,_0x5a2747){_0x397e3b['updateHeight']();const _0xe372b5=ut(_0x397e3b[_0x2a6b('0x22')]+this[_0x2a6b('0x18')],_0x5a2747['top']);return!!_0xe372b5&&(this['_setItemTop'](_0x5a2747,_0x5a2747[_0x2a6b('0x1')]+_0xe372b5,!0x1),!0x0);}[_0x2a6b('0x9')](_0x5a577e){const _0x5ed448=this[_0x2a6b('0xc')]['get'](_0x5a577e);if(!_0x5ed448||!_0x5ed448[_0x2a6b('0x35')])return;const _0x2566d0=this['_getTargetTop'](_0x5ed448,_0x5ed448[_0x2a6b('0x17')]);this[_0x2a6b('0x31')](_0x5a577e,_0x2566d0);}[_0x2a6b('0x34')](_0x4f8436,_0x4f4a77){if(null===_0x4f4a77)return 0x0;if(_0x4f8436['target']instanceof _0x4d0ac9)return _0x4f4a77['top'];{const _0x5adb22=new _0x4d0ac9(this['view'][_0x2a6b('0x21')])['top'];return _0x4f4a77[_0x2a6b('0x1')]-_0x5adb22;}}[_0x2a6b('0x31')](_0x11d77c,_0x28a375,_0x44f3f4=this[_0x2a6b('0x27')][_0x2a6b('0x0')][_0x2a6b('0x3e')](_0x2a6b('0x44'))){_0x44f3f4&&(_0x28a375=Math['max'](_0x28a375,this[_0x2a6b('0x1e')](_0x11d77c))),_0x11d77c[_0x2a6b('0x1')]=_0x28a375;}[_0x2a6b('0x1e')](_0x2deb4e){let _0x162b83=this[_0x2a6b('0x10')](_0x2deb4e),_0x42ca7b=0x0;for(;_0x162b83;)_0x162b83[_0x2a6b('0x3f')](),_0x42ca7b+=this['_spaceBetweenItems']+_0x162b83[_0x2a6b('0x2c')],_0x162b83=this[_0x2a6b('0x10')](_0x162b83);return _0x42ca7b;}}function ut(_0x236b51,_0x26e0b6){return Math[_0x2a6b('0x42')](_0x236b51-_0x26e0b6,0x0);}function K(_0x29e14e){return null!==_0x29e14e&&'object'==typeof _0x29e14e&&0x1===_0x29e14e[_0x2a6b('0x2a')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44da=['counterView','setTemplate','ck-annotation-counter','ck-annotation-counter__badge','bindTemplate','set','isDirty','add','span','annotationType','...','bind','number','_badge','icon'];(function(_0x26f07f,_0x44dadc){const _0x346cca=function(_0x3b5cb7){while(--_0x3b5cb7){_0x26f07f['push'](_0x26f07f['shift']());}};_0x346cca(++_0x44dadc);}(_0x44da,0x107));const _0x346c=function(_0x26f07f,_0x44dadc){_0x26f07f=_0x26f07f-0x0;let _0x346cca=_0x44da[_0x26f07f];return _0x346cca;};import{ButtonView as _0x13f7da,View as _0x215b91}from'ckeditor5/src/ui';import _0x54fb55 from'../../../theme/icons/add-comment.svg';export default class nt extends _0x13f7da{constructor(_0x2c0a07){super(_0x2c0a07);const _0x2f70f7=this[_0x346c('0xb')];this[_0x346c('0xc')](_0x346c('0xd'),!0x1),this[_0x346c('0xc')](_0x346c('0x4'),0x0),this[_0x346c('0x3')](_0x346c('0x5'))['to'](this,_0x346c('0xd'),this,_0x346c('0x4'),(_0x538e6d,_0x1a8065)=>_0x538e6d?_0x346c('0x2'):_0x1a8065),this['set'](_0x346c('0x1'),''),this[_0x346c('0x6')]=_0x54fb55,this['extendTemplate']({'attributes':{'class':[_0x346c('0x9')]}}),this[_0x346c('0x7')]=new _0x215b91(),this[_0x346c('0x7')][_0x346c('0x8')]({'tag':_0x346c('0x0'),'attributes':{'class':[_0x346c('0xa'),_0x2f70f7['to'](_0x346c('0x1'),_0x3fe9cd=>'ck-annotation-counter__badge--'+_0x3fe9cd),_0x2f70f7['if'](_0x346c('0xd'),'ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x2f70f7['to'](_0x346c('0x5'))}]}),this['children'][_0x346c('0xe')](this[_0x346c('0x7')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5218=['isActive','listenTo','bindTemplate','element','height','destroy','content','type','_mutationObserver','mainView','ck-annotation-wrapper--active','Esc','focusTracker','keystrokes','add','div','ck-annotation-wrapper','fire','render','ck-rounded-corners','setTemplate','isDirty','clientHeight','_updateHeight','set','createCollection','length'];(function(_0x2a4315,_0x52188b){const _0x3b6af2=function(_0x425044){while(--_0x425044){_0x2a4315['push'](_0x2a4315['shift']());}};_0x3b6af2(++_0x52188b);}(_0x5218,0x115));const _0x3b6a=function(_0x2a4315,_0x52188b){_0x2a4315=_0x2a4315-0x0;let _0x3b6af2=_0x5218[_0x2a4315];return _0x3b6af2;};import{View as _0x261d56}from'ckeditor5/src/ui';import{FocusTracker as _0x36b98d,KeystrokeHandler as _0x2140f4,uid as _0x2b7c4d}from'ckeditor5/src/utils';import _0x5e852d from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class j extends _0x261d56{constructor(_0x2c0f65,_0x9d04ee){super(_0x2c0f65),this['id']=_0x2b7c4d(),this[_0x3b6a('0x5')]=new _0x36b98d(),this[_0x3b6a('0x6')]=new _0x2140f4(),this['keystrokes'][_0x3b6a('0x11')](_0x3b6a('0x4'),(_0x5b4c46,_0x227b4b)=>this[_0x3b6a('0xa')](_0x3b6a('0x4'),_0x227b4b)),this[_0x3b6a('0x11')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3b6a('0x11')](_0x3b6a('0x18'),0x0),this[_0x3b6a('0x11')](_0x3b6a('0x14'),!0x1),this[_0x3b6a('0x11')](_0x3b6a('0xe'),!0x1),this[_0x3b6a('0x11')](_0x3b6a('0x13'),0x0),this['set'](_0x3b6a('0x0'),''),this[_0x3b6a('0x1')]=_0x5e852d(()=>this[_0x3b6a('0x10')]()),this[_0x3b6a('0x1a')]=this[_0x3b6a('0x12')](),this[_0x3b6a('0x1a')][_0x3b6a('0x7')](_0x9d04ee),this[_0x3b6a('0x2')]=_0x9d04ee;const _0x5f20d5=this[_0x3b6a('0x16')];this[_0x3b6a('0xd')]({'tag':_0x3b6a('0x8'),'attributes':{'class':['ck',_0x3b6a('0x9'),_0x3b6a('0xc'),_0x5f20d5['if'](_0x3b6a('0x14'),_0x3b6a('0x3'))],'tabindex':-0x1},'children':this['content']});}[_0x3b6a('0xb')](){super['render'](),this[_0x3b6a('0x5')][_0x3b6a('0x7')](this['element']),this['keystrokes'][_0x3b6a('0x15')](this['element']),this[_0x3b6a('0x1')]['attach'](this[_0x3b6a('0x17')]);}['destroy'](){this[_0x3b6a('0x1a')]['clear'](),this['keystrokes']['destroy'](),this['focusTracker'][_0x3b6a('0x19')](),this[_0x3b6a('0x1')]['detach'](),super[_0x3b6a('0x19')]();}['focus'](){this['element']['focus']();}[_0x3b6a('0x10')](){const _0x3f0071=this['element'][_0x3b6a('0xf')];_0x3f0071&&(this[_0x3b6a('0x18')]=_0x3f0071);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c22=['top','clientHeight','height','isAnimationDisabled','render','setTemplate','detach','ck-sidebar-item--no-animation','bindTemplate','bottom','content','_mutationObserver','createCollection','updateHeight','element','div','attach','bind','set','clear'];(function(_0x2c2855,_0x5c220d){const _0x2abe0f=function(_0x132e95){while(--_0x132e95){_0x2c2855['push'](_0x2c2855['shift']());}};_0x2abe0f(++_0x5c220d);}(_0x5c22,0x11d));const _0x2abe=function(_0x2c2855,_0x5c220d){_0x2c2855=_0x2c2855-0x0;let _0x2abe0f=_0x5c22[_0x2c2855];return _0x2abe0f;};import{View as _0x10cbbd}from'ckeditor5/src/ui';import{toUnit as _0x47b69b}from'ckeditor5/src/utils';import _0x2cb75e from'../../utils/createmutationobserver';const kt=_0x47b69b('px');export default class lt extends _0x10cbbd{constructor(_0x5e49be){super(_0x5e49be),this[_0x2abe('0xd')](_0x2abe('0xf')),this[_0x2abe('0xd')](_0x2abe('0x11'),0x0),this[_0x2abe('0xc')](_0x2abe('0x4'))['to'](this,_0x2abe('0xf'),this,_0x2abe('0x11'),(_0x19bc63,_0x373b5c)=>(_0x19bc63||0x0)+_0x373b5c),this[_0x2abe('0xd')](_0x2abe('0x12'),!0x1),this[_0x2abe('0x6')]=_0x2cb75e(()=>this[_0x2abe('0x8')]()),this['_targetTop']=null,this[_0x2abe('0x5')]=this[_0x2abe('0x7')]();const _0x22bb98=this[_0x2abe('0x3')];this[_0x2abe('0x0')]({'tag':_0x2abe('0xa'),'attributes':{'class':['ck-sidebar-item',_0x22bb98['to'](_0x2abe('0x12'),_0x286ed2=>_0x286ed2?_0x2abe('0x2'):'')],'style':{'top':_0x22bb98['to']('top',kt)}},'children':this[_0x2abe('0x5')]});}[_0x2abe('0x13')](){super[_0x2abe('0x13')](),this['_mutationObserver'][_0x2abe('0xb')](this['element']);}[_0x2abe('0x8')](){const _0x78b457=this[_0x2abe('0x9')][_0x2abe('0x10')];_0x78b457&&(this['height']=_0x78b457);}['destroy'](){this[_0x2abe('0x5')][_0x2abe('0xe')](),this[_0x2abe('0x6')][_0x2abe('0x1')](),super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bd9=['set','bindTemplate','setTemplate','class','ck-reset','minHeight','list'];(function(_0x592adc,_0x1bd95f){const _0xfad9f6=function(_0x7aa9fe){while(--_0x7aa9fe){_0x592adc['push'](_0x592adc['shift']());}};_0xfad9f6(++_0x1bd95f);}(_0x1bd9,0x1da));const _0xfad9=function(_0x592adc,_0x1bd95f){_0x592adc=_0x592adc-0x0;let _0xfad9f6=_0x1bd9[_0x592adc];return _0xfad9f6;};import{View as _0x58a63e}from'ckeditor5/src/ui';import{toUnit as _0x1e2780}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const kt=_0x1e2780('px');export default class ct extends _0x58a63e{constructor(_0x2156fc){super(_0x2156fc);const _0x27f4dd=this[_0xfad9('0x3')];this[_0xfad9('0x2')](_0xfad9('0x0'),0x0),this[_0xfad9('0x2')](_0xfad9('0x5'),''),this[_0xfad9('0x1')]=this['createCollection'](),this[_0xfad9('0x4')]({'tag':'div','attributes':{'class':['ck','ck-sidebar',_0xfad9('0x6'),_0x27f4dd['to'](_0xfad9('0x5'))],'style':{'minHeight':_0x27f4dd['to'](_0xfad9('0x0'),_0x5d5f0c=>_0x5d5f0c?kt(_0x5d5f0c+0xa):null)}},'children':this[_0xfad9('0x1')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d3f=['stop','remove','editors','resize','destroy','container','_activeAnnotation','WideSidebar','off','Sidebar','_destroyEditorAnnotationsIntegration','attach','hasDomSelection','refresh','add','EditorAnnotations','listenTo','detach','annotations','stopListening','updateTargetRect','setActiveAnnotation','set','removeEventListener','context','widesidebar-detach-not-attached','pluginName','get','_refreshPositioningDebounced','addAnnotation','from','_attachToContainer','addEventListener','_annotations','uiUpdate','register','activeAnnotation','isAttached','has','high','requires','rearrange','_integrateWithEditorAnnotations','plugins','wideSidebar','blur','switchTo','set:container','_editorAnnotations','refreshPositioning','getOrderedSelectedAnnotations'];(function(_0x2edbf7,_0x2d3f47){const _0x2a7574=function(_0x394849){while(--_0x394849){_0x2edbf7['push'](_0x2edbf7['shift']());}};_0x2a7574(++_0x2d3f47);}(_0x2d3f,0x129));const _0x2a75=function(_0x2edbf7,_0x2d3f47){_0x2edbf7=_0x2edbf7-0x0;let _0x2a7574=_0x2d3f[_0x2edbf7];return _0x2a7574;};import{ContextPlugin as _0x192028}from'ckeditor5/src/core';import _0x44e0c1 from'./annotationsuis';import _0x1611cb from'./sidebar';import{CKEditorError as _0xe9539a,Collection as _0x377902}from'ckeditor5/src/utils';import{debounce as _0xde78cf}from'lodash-es';export default class i extends _0x192028{static get[_0x2a75('0x31')](){return[_0x1611cb,_0x44e0c1];}static get[_0x2a75('0x23')](){return _0x2a75('0x10');}constructor(_0x3faebd){super(_0x3faebd),this[_0x2a75('0x2e')]=!0x1,this[_0x2a75('0x1f')](_0x2a75('0x2d'),null),this[_0x2a75('0x1b')]=null,this[_0x2a75('0x6')]=new _0x377902(),this['_refreshPositioningDebounced']=_0xde78cf(()=>{this[_0x2a75('0x1b')][_0x2a75('0x7')]();},0xfa,{'leading':!0x1});}['init'](){const _0x5cc3b8=this[_0x2a75('0x21')]['plugins'][_0x2a75('0x24')](_0x44e0c1),_0x401003=this[_0x2a75('0x21')][_0x2a75('0x1')][_0x2a75('0x24')](_0x1611cb);_0x5cc3b8[_0x2a75('0x2c')]('wideSidebar',this),_0x401003[_0x2a75('0xe')]&&_0x5cc3b8[_0x2a75('0x4')](_0x2a75('0x2'));}[_0x2a75('0x1e')](_0x2943a0){if(_0x2943a0===this[_0x2a75('0x2d')])return;const _0x45ee91=this[_0x2a75('0x21')][_0x2a75('0x1')][_0x2a75('0x24')](_0x1611cb);_0x45ee91[_0x2a75('0xf')]=_0x2943a0;const _0x3da071=this[_0x2a75('0x2d')];this['activeAnnotation']=_0x2943a0,_0x45ee91[_0x2a75('0x16')]({'blurredAnnotation':_0x3da071,'activatedAnnotation':this['activeAnnotation']});}[_0x2a75('0x14')](_0x4ba9f1){this['annotations']=_0x4ba9f1;const _0x2f0bce=this['context']['plugins']['get'](_0x2a75('0x12'));if(_0x2f0bce[_0x2a75('0x2a')]=_0x4ba9f1,this[_0x2a75('0x2e')])throw new _0xe9539a('widesidebar-attach-already-attached',this);this[_0x2a75('0x2e')]=!0x0,this[_0x2a75('0x19')](_0x2f0bce,_0x2a75('0x5'),()=>{this[_0x2a75('0x1a')](),this['listenTo'](_0x2f0bce,'change:container',_0x22bc35=>{_0x22bc35[_0x2a75('0x11')](),this[_0x2a75('0x14')](_0x4ba9f1);});}),_0x2f0bce[_0x2a75('0x28')]({'viewClass':'ck-sidebar--wide'});const _0x467f32=_0x2ed4e9=>{_0x2ed4e9[_0x2a75('0x1d')](),_0x2f0bce[_0x2a75('0x26')](_0x2ed4e9);};for(const _0x21339e of _0x4ba9f1)_0x467f32(_0x21339e);this['listenTo'](_0x4ba9f1,'add',(_0xddb246,_0x1998e2)=>{_0x467f32(_0x1998e2);}),this['listenTo'](_0x4ba9f1,_0x2a75('0xa'),(_0x367c8f,_0x2a9800,_0x2ebdc9)=>{_0x2f0bce[_0x2a75('0x32')]({'removedAnnotation':_0x2a9800,'previousAnnotation':_0x4ba9f1[_0x2a75('0x24')](_0x2ebdc9-0x1),'nextAnnotation':_0x4ba9f1[_0x2a75('0x24')](_0x2ebdc9+0x1)}),_0x2a9800===this[_0x2a75('0x2d')]&&this[_0x2a75('0x1e')](null);},{'priority':_0x2a75('0x30')}),this[_0x2a75('0x19')](_0x4ba9f1,'focus',(_0x288ad5,_0x5a7f16)=>{this[_0x2a75('0x1e')](_0x5a7f16);}),this[_0x2a75('0x19')](_0x4ba9f1,_0x2a75('0x3'),()=>{this[_0x2a75('0x1e')](null);});const _0x1d762f=this[_0x2a75('0x21')]['editors']?this[_0x2a75('0x21')][_0x2a75('0xb')]:new _0x377902([this[_0x2a75('0x21')]]);for(const _0x470990 of _0x1d762f)this['_integrateWithEditorAnnotations'](_0x470990);this[_0x2a75('0x19')](_0x1d762f,_0x2a75('0x17'),(_0x301c7d,_0x521928)=>{this[_0x2a75('0x19')](_0x521928,'ready',()=>{this[_0x2a75('0x0')](_0x521928);});}),this[_0x2a75('0x19')](_0x1d762f,_0x2a75('0xa'),(_0xf74c1,_0x136942)=>{_0x136942[_0x2a75('0x1')][_0x2a75('0x2f')]('EditorAnnotations')&&this[_0x2a75('0x13')](_0x136942['plugins'][_0x2a75('0x24')]('EditorAnnotations'));}),window[_0x2a75('0x29')](_0x2a75('0xc'),this[_0x2a75('0x25')]),this[_0x2a75('0x1b')][_0x2a75('0x7')]();}[_0x2a75('0x1a')](){if(!this[_0x2a75('0x2e')])throw new _0xe9539a(_0x2a75('0x22'),this);this['setActiveAnnotation'](null);const _0x8339ba=this[_0x2a75('0x21')][_0x2a75('0x1')]['get'](_0x1611cb);_0x8339ba['_detachFromContainer'](this['annotations']),this[_0x2a75('0x1c')](_0x8339ba),this[_0x2a75('0x1c')](this[_0x2a75('0x1b')]),this[_0x2a75('0x1c')](this[_0x2a75('0x21')][_0x2a75('0xb')]);for(const _0x3a9f6e of Array[_0x2a75('0x27')](this[_0x2a75('0x6')]))this[_0x2a75('0x13')](_0x3a9f6e);window[_0x2a75('0x20')]('resize',this[_0x2a75('0x25')]),this[_0x2a75('0x25')]['cancel'](),this[_0x2a75('0x2d')]=null,this[_0x2a75('0x2e')]=!0x1,this[_0x2a75('0x1b')]=null;}[_0x2a75('0xd')](){this[_0x2a75('0x2e')]&&this[_0x2a75('0x1a')]();}[_0x2a75('0x0')](_0x50bd22){const _0x2896c6=_0x50bd22['plugins'][_0x2a75('0x24')](_0x2a75('0x18'));if(!_0x2896c6)return;const _0x54cbd1=()=>{const _0x232660=_0x2896c6[_0x2a75('0x8')]({'annotations':this[_0x2a75('0x1b')],'activeAnnotation':this[_0x2a75('0x2d')]});this[_0x2a75('0x1e')](_0x232660[0x0]||null);};this['listenTo'](_0x2896c6,_0x2a75('0x16'),_0x54cbd1),this[_0x2a75('0x19')](_0x2896c6,'blur',(_0x51e1f0,{isAnnotationTracked:_0x395ba3})=>{this[_0x2a75('0x2d')]&&_0x395ba3(this[_0x2a75('0x2d')])&&this[_0x2a75('0x1e')](null);}),this['listenTo'](_0x2896c6,_0x2a75('0x2b'),()=>{this[_0x2a75('0x25')]();}),this[_0x2a75('0x19')](this[_0x2a75('0x1b')],_0x2a75('0x3'),_0x2cf898=>{_0x2896c6[_0x2a75('0x15')]()&&(_0x54cbd1(),_0x2cf898[_0x2a75('0x9')]());},{'priority':_0x2a75('0x30')}),this['_editorAnnotations'][_0x2a75('0x17')](_0x2896c6);}['_destroyEditorAnnotationsIntegration'](_0x5ecd8a){_0x5ecd8a&&(this[_0x2a75('0x1c')](_0x5ecd8a),this[_0x2a75('0x6')]['remove'](_0x5ecd8a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2987=['createRange','textProxy','isEnabled','element','change','refresh','getRanges','start','_itemIsContent','model','tableCell','backward','editor','selection','item','comment:','addMarker','_hasContent','document','getLastMatchingPosition','execute','isObject','_trimToContent','substr','end'];(function(_0x37278a,_0x29873b){const _0x444945=function(_0x5513ca){while(--_0x5513ca){_0x37278a['push'](_0x37278a['shift']());}};_0x444945(++_0x29873b);}(_0x2987,0x14b));const _0x4449=function(_0x37278a,_0x29873b){_0x37278a=_0x37278a-0x0;let _0x444945=_0x2987[_0x37278a];return _0x444945;};import{Command as _0x15d6f6}from'ckeditor5/src/core';import{uid as _0x19709d}from'ckeditor5/src/utils';export default class d extends _0x15d6f6{[_0x4449('0x18')](){const _0x3df6a8=this[_0x4449('0x6')][_0x4449('0x3')]['document'][_0x4449('0x7')];for(const _0x46dfd0 of _0x3df6a8[_0x4449('0x0')]())if(this[_0x4449('0xb')](_0x46dfd0))return void(this[_0x4449('0x15')]=!0x0);this['isEnabled']=!0x1;}[_0x4449('0xe')]({threadId:_0x124354=_0x19709d()}={}){const _0x4f3f2f=this[_0x4449('0x6')][_0x4449('0x3')],_0x7960bd=[];for(const _0x33916c of _0x4f3f2f[_0x4449('0xc')]['selection'][_0x4449('0x0')]())this['_hasContent'](_0x33916c)&&_0x7960bd['push'](this[_0x4449('0x10')](_0x33916c));_0x4f3f2f[_0x4449('0x17')](_0x5c705a=>{for(const _0x52b69d of _0x7960bd){const _0x39b333=_0x19709d()[_0x4449('0x11')](0x1,0x5),_0x111deb=_0x4449('0x9')+_0x124354+':'+_0x39b333;_0x5c705a[_0x4449('0xa')](_0x111deb,{'range':_0x52b69d,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x4449('0xb')](_0x4ee98f){for(const _0x2d514e of _0x4ee98f['getItems']())if(this['_itemIsContent'](_0x2d514e))return!0x0;return!0x1;}[_0x4449('0x2')](_0x10a040){return _0x10a040['is'](_0x4449('0x14'))||this[_0x4449('0x6')][_0x4449('0x3')]['schema'][_0x4449('0xf')](_0x10a040)&&!_0x10a040['is'](_0x4449('0x16'),_0x4449('0x4'));}['_trimToContent'](_0x2f8376){const _0x3e9d2e=_0x5ab336=>!this[_0x4449('0x2')](_0x5ab336[_0x4449('0x8')]),_0x3792a2=_0x2f8376[_0x4449('0x1')][_0x4449('0xd')](_0x3e9d2e),_0x9f0d2b=_0x2f8376[_0x4449('0x12')]['getLastMatchingPosition'](_0x3e9d2e,{'direction':_0x4449('0x5')});return this['editor'][_0x4449('0x3')][_0x4449('0x13')](_0x3792a2,_0x9f0d2b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x13c8=['document','name','_threadToController','map','render','delete','ready','for','left','isThreadsLoadingPaused','$graveyard','once','registerAnnotation','sort','CommentsEditing','length','model','init','createElement','top','destroy','filter','fetchCommentThread','removeMarker','getAttribute','isEqual','differ','text','markers','change:activeMarker','_handleMarkerAddAndRemove','then','getByInnerView','change','_initializeMarkerConverters','start','markerToData','collaboration.channelId','listenTo','conversion','markerName','registerPostFixer','createRange','ck-comment-marker--active','$marker','schema','switchReadOnly','activeMarker','dataToMarker','requires','isCollapsed','elementToElement','markerToHighlight','split','editor','high','update:comment','upcast','_threads','Annotations','newRange','destroyed','editing','comment','set','view','state','getChangedMarkers','config','size','openNewCommentThread','_detachCommentThread','_attachedThreads','end','updateMarker','createPositionBefore','getAllMarkersForId','CommentsRepository','dataDowncast','push','addComment','getCommentThreads','reconvertMarker','removeCommentThread','affectsData','comment:','hasCommentThread','hasMarkerForId','addCommentThread','getCommentThread','plugins','stop','get','_attachMarkerToThread','add','isObject'];(function(_0x2acbe7,_0x13c820){const _0x1f8c42=function(_0xc1c7de){while(--_0xc1c7de){_0x2acbe7['push'](_0x2acbe7['shift']());}};_0x1f8c42(++_0x13c820);}(_0x13c8,0x117));const _0x1f8c=function(_0x2acbe7,_0x13c820){_0x2acbe7=_0x2acbe7-0x0;let _0x1f8c42=_0x13c8[_0x2acbe7];return _0x1f8c42;};import{Plugin as _0x53d641}from'ckeditor5/src/core';import{Rect as _0xa8b038}from'ckeditor5/src/utils';import _0x21e911 from'./commentsrepository';import _0x182b1f from'./addcommentthreadcommand';import{getMarkerDomElement as _0x2a03e4}from'ckeditor5-collaboration/src/collaboration-core';import _0x25f891 from'../annotations/editorannotations';import _0x29da17 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x119ba5 from'./integrations/importword';export default class r extends _0x53d641{static get[_0x1f8c('0x3a')](){return[_0x21e911,_0x25f891,_0x29da17,_0x119ba5];}static get['pluginName'](){return _0x1f8c('0x17');}constructor(_0x5518cf){super(_0x5518cf),this[_0x1f8c('0x49')](_0x1f8c('0x12'),!0x0),_0x5518cf['data'][_0x1f8c('0x14')](_0x1f8c('0xf'),()=>this[_0x1f8c('0x12')]=!0x1),this[_0x1f8c('0x49')]('activeMarker',null),this['on'](_0x1f8c('0x26'),(_0x3e1a81,_0x14967f,_0x43e15f,_0x1bcbb7)=>{_0x5518cf[_0x1f8c('0x19')][_0x1f8c('0x2a')](()=>{if(_0x43e15f){const {id:_0x3290c7}=H(_0x43e15f),_0x5cd479=this['getAllMarkersForId'](_0x3290c7);for(const _0x542280 of _0x5cd479)_0x5518cf[_0x1f8c('0x47')][_0x1f8c('0x5b')](_0x542280);}if(_0x1bcbb7){const {id:_0x17c467}=H(_0x1bcbb7),_0x228ec1=this['getAllMarkersForId'](_0x17c467);for(const _0x1ae611 of _0x228ec1)_0x5518cf[_0x1f8c('0x47')][_0x1f8c('0x5b')](_0x1ae611);}});}),this['_attachedThreads']=new Map();}[_0x1f8c('0x1a')](){const _0x194fe4=this['editor'],_0x1c6599=_0x194fe4[_0x1f8c('0x3')][_0x1f8c('0x5')](_0x1f8c('0x56')),_0x31912e=_0x194fe4[_0x1f8c('0x4d')]['get'](_0x1f8c('0x2e'));_0x194fe4['commands'][_0x1f8c('0x7')](_0x1f8c('0x1'),new _0x182b1f(_0x194fe4)),this[_0x1f8c('0x2f')](_0x194fe4,'change:isReadOnly',(_0x42dee1,_0x378c81,_0x1c7877)=>{_0x1c6599[_0x1f8c('0x37')](_0x1c7877,_0x194fe4[_0x1f8c('0x4d')][_0x1f8c('0x5')](_0x1f8c('0x2e')));}),this[_0x1f8c('0x2f')](_0x1c6599,G(_0x1f8c('0x5c'),_0x31912e),(_0x384d7f,{threadId:_0x21e029})=>{_0x194fe4[_0x1f8c('0x19')][_0x1f8c('0x2a')](_0x34c1cd=>{for(const _0xe0b412 of this[_0x1f8c('0x55')](_0x21e029))_0x34c1cd[_0x1f8c('0x20')](_0xe0b412);});const _0x143e03=_0x1c6599['getCommentThread'](_0x21e029);_0x1c6599[_0x1f8c('0x5f')](_0x21e029)&&!_0x143e03['length']||_0x384d7f[_0x1f8c('0x4')]();},{'priority':_0x1f8c('0x40')}),this[_0x1f8c('0x2f')](_0x1c6599,G(_0x1f8c('0x59'),_0x31912e),(_0x176a41,{threadId:_0x95c3fe,isFromAdapter:_0x4c592})=>{const _0xfb236=this[_0x1f8c('0x55')](_0x95c3fe);if(_0x4c592||0x0==_0xfb236[_0x1f8c('0x18')]||!_0x1c6599['hasCommentThread'](_0x95c3fe))return;0x1===_0x1c6599[_0x1f8c('0x2')](_0x95c3fe)[_0x1f8c('0x18')]&&_0x194fe4['model'][_0x1f8c('0x2a')](_0x120d09=>{for(const _0x5598a8 of _0xfb236)_0x120d09[_0x1f8c('0x53')](_0x5598a8,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x1f8c('0x2b')](),this[_0x1f8c('0x27')]();}[_0x1f8c('0x1d')](){const _0xe3993c=this[_0x1f8c('0x3f')][_0x1f8c('0x3')][_0x1f8c('0x5')](_0x1f8c('0x56')),_0xe37124=this[_0x1f8c('0x3f')]['config'][_0x1f8c('0x5')](_0x1f8c('0x2e'));for(const _0x24fb0d of _0xe3993c[_0x1f8c('0x5a')]({'channelId':_0xe37124}))_0xe3993c[_0x1f8c('0x50')](_0x24fb0d['id']),_0xe3993c[_0x1f8c('0x43')]['delete'](_0x24fb0d['id']);super[_0x1f8c('0x1d')]();}[_0x1f8c('0x0')](_0x4b0ae8){return this[_0x1f8c('0x55')](_0x4b0ae8)[_0x1f8c('0x18')]>0x0;}[_0x1f8c('0x55')](_0x4b24c2){return(this[_0x1f8c('0x51')]['get'](_0x4b24c2)||[])['map'](_0x19faf9=>this[_0x1f8c('0x3f')][_0x1f8c('0x19')]['markers']['get'](_0x19faf9))[_0x1f8c('0x1e')](_0x299d96=>_0x299d96);}[_0x1f8c('0x2b')](){const _0x77fc5e=this[_0x1f8c('0x3f')];_0x77fc5e['conversion'][_0x1f8c('0x10')]('editingDowncast')[_0x1f8c('0x3d')]({'model':'comment','view':_0x196971=>{const {id:_0x2f6c76}=H(_0x196971[_0x1f8c('0x31')]),_0x1c7916=['ck-comment-marker'];return this['activeMarker']&&H(this[_0x1f8c('0x38')])['id']===_0x2f6c76&&_0x1c7916[_0x1f8c('0x58')](_0x1f8c('0x34')),{'classes':_0x1c7916,'attributes':{'data-comment':_0x2f6c76}};}}),_0x77fc5e[_0x1f8c('0x30')][_0x1f8c('0x10')](_0x1f8c('0x57'))[_0x1f8c('0x2d')]({'model':'comment','view':_0x513ed8=>{const _0x2838c7=_0x77fc5e[_0x1f8c('0x19')][_0x1f8c('0x25')][_0x1f8c('0x5')](_0x513ed8),{id:_0x4a02bb,part:_0xab5083}=H(_0x513ed8);return _0x2838c7&&!_0x2838c7[_0x1f8c('0x5d')]?null:{'group':'comment','name':_0xab5083?_0x4a02bb+':'+_0xab5083:_0x4a02bb};}}),_0x77fc5e['conversion'][_0x1f8c('0x10')]('upcast')[_0x1f8c('0x3c')]({'view':{'name':_0x1f8c('0x48'),'attribute':{'id':/^\w/}},'model':(_0x3f06b8,{writer:_0x1f8fec})=>_0x1f8fec[_0x1f8c('0x1b')](_0x1f8c('0x35'),{'data-name':_0x1f8c('0x5e')+_0x3f06b8[_0x1f8c('0x21')]('id')})}),_0x77fc5e['conversion'][_0x1f8c('0x10')](_0x1f8c('0x42'))[_0x1f8c('0x39')]({'view':'comment'});}[_0x1f8c('0x27')](){const _0x5290f4=this[_0x1f8c('0x3f')],_0x52e35a=_0x5290f4[_0x1f8c('0x3')][_0x1f8c('0x5')](_0x1f8c('0x56')),_0x219f67=new Set();_0x5290f4[_0x1f8c('0x19')][_0x1f8c('0x9')][_0x1f8c('0x32')](_0x24c158=>{let _0x48d641=!0x1;for(const {name:_0xb67ff4,data:_0x167324}of _0x5290f4[_0x1f8c('0x19')][_0x1f8c('0x9')][_0x1f8c('0x23')][_0x1f8c('0x4c')]()){const {group:_0x10ae30,id:_0x8b2a0d}=H(_0xb67ff4);let _0x437eaf=_0x167324[_0x1f8c('0x45')];if(_0x1f8c('0x48')!==_0x10ae30||!_0x437eaf)continue;const _0x36a389=_0x1f8c('0x13')===_0x437eaf['root']['rootName'];_0x36a389||(_0x437eaf=J(_0x437eaf,_0x5290f4[_0x1f8c('0x19')]),!_0x437eaf||_0x437eaf[_0x1f8c('0x22')](_0x167324[_0x1f8c('0x45')]))?!_0x437eaf||!_0x5290f4[_0x1f8c('0x19')]['hasContent'](_0x437eaf)||this[_0x1f8c('0x51')]['has'](_0x8b2a0d)&&_0x36a389?(_0x24c158['removeMarker'](_0xb67ff4),_0x48d641=!0x0):_0x36a389||(this[_0x1f8c('0x12')]?_0x219f67[_0x1f8c('0x7')](_0xb67ff4):this[_0x1f8c('0x6')](_0xb67ff4,_0x8b2a0d)):(_0x24c158[_0x1f8c('0x53')](_0xb67ff4,{'range':_0x437eaf}),_0x48d641=!0x0);}return _0x48d641;}),this['on']('change:isThreadsLoadingPaused',(_0x5c019b,_0x4bf15b,_0x281479)=>{if(!_0x281479&&_0x219f67[_0x1f8c('0x4e')])for(const _0x330e34 of _0x219f67){const {id:_0x4b8a9d}=H(_0x330e34);_0x219f67[_0x1f8c('0xe')](_0x4b8a9d),_0x5290f4['model'][_0x1f8c('0x25')]['get'](_0x330e34)&&this[_0x1f8c('0x6')](_0x330e34,_0x4b8a9d);}}),this[_0x1f8c('0x2f')](_0x5290f4[_0x1f8c('0x19')][_0x1f8c('0x25')],_0x1f8c('0x41'),(_0x6d8953,_0x3b3278,_0x4683d6,_0x5f00ee)=>{if(_0x5f00ee)return;const {id:_0x19ece6}=H(_0x3b3278[_0x1f8c('0xa')]),_0x2bbb68=_0x5290f4['plugins'][_0x1f8c('0x5')](_0x1f8c('0x56'))['getCommentThread'](_0x19ece6);_0x219f67[_0x1f8c('0xe')](_0x19ece6),_0x2bbb68&&!this[_0x1f8c('0x0')](_0x19ece6)&&(this[_0x1f8c('0x51')][_0x1f8c('0xe')](_0x19ece6),_0x52e35a[_0x1f8c('0x50')](_0x19ece6));});}[_0x1f8c('0x6')](_0xe343f3,_0x565429){if(this[_0x1f8c('0x51')]['has'](_0x565429)){const _0x341420=this[_0x1f8c('0x51')][_0x1f8c('0x5')](_0x565429);return void(_0x341420['includes'](_0xe343f3)||_0x341420[_0x1f8c('0x58')](_0xe343f3));}this[_0x1f8c('0x51')][_0x1f8c('0x49')](_0x565429,[_0xe343f3]);const _0x11aa60=this[_0x1f8c('0x3f')],_0x5c88ce=_0x11aa60[_0x1f8c('0x3')][_0x1f8c('0x5')](_0x1f8c('0x56')),_0x5714c3=_0x11aa60[_0x1f8c('0x4d')][_0x1f8c('0x5')](_0x1f8c('0x2e')),_0x4ca8f4=_0x11aa60[_0x1f8c('0x3')][_0x1f8c('0x5')]('EditorAnnotations'),_0x11b5ea=()=>{const _0x24e795=this[_0x1f8c('0x55')](_0x565429);if(0x0===_0x24e795[_0x1f8c('0x18')])return null;if(0x1===_0x24e795[_0x1f8c('0x18')])return _0x2a03e4(_0x11aa60[_0x1f8c('0x47')],_0x24e795[0x0]);const _0x241479=_0x24e795[_0x1f8c('0xc')](_0x5a3361=>_0x2a03e4(_0x11aa60[_0x1f8c('0x47')],_0x5a3361));return _0x241479[_0x1f8c('0x16')]((_0x5cfbaf,_0x196f9e)=>{const _0xa79c80=new _0xa8b038(_0x5cfbaf),_0x49e696=new _0xa8b038(_0x196f9e),_0x817b9f=_0xa79c80[_0x1f8c('0x1c')]-_0x49e696['top'];return 0x0==_0x817b9f?_0xa79c80[_0x1f8c('0x11')]-_0x49e696[_0x1f8c('0x11')]:_0x817b9f;}),_0x241479[0x0];};!this[_0x1f8c('0x55')](_0x565429)[0x0]['managedUsingOperations']?_0x11aa60['editing'][_0x1f8c('0x4a')][_0x1f8c('0x14')](_0x1f8c('0xd'),()=>{const _0x5416ee=_0x11aa60[_0x1f8c('0x3')]['get'](_0x1f8c('0x44')),_0x7b8aa=_0x5c88ce[_0x1f8c('0x4f')]({'channelId':_0x5714c3,'threadId':_0x565429,'target':_0x11b5ea}),_0x358561=_0x5c88ce[_0x1f8c('0xb')]['get'](_0x7b8aa)['view'],_0x33e5af=_0x5416ee[_0x1f8c('0x29')](_0x358561);_0x4ca8f4['registerAnnotation'](_0x33e5af);},{'priority':'low'}):_0x5c88ce[_0x1f8c('0x1f')]({'channelId':_0x5714c3,'threadId':_0x565429})[_0x1f8c('0x28')](_0x1f69a9=>{if(_0x1f8c('0x46')!==_0x11aa60[_0x1f8c('0x4b')]){if(_0x1f69a9){const _0x16ff38=_0x1f69a9['attachTo'](_0x11b5ea);_0x4ca8f4[_0x1f8c('0x15')](_0x16ff38);}else{const _0x468eba=this[_0x1f8c('0x55')](_0x565429);_0x11aa60[_0x1f8c('0x19')][_0x1f8c('0x2a')](_0x8c887d=>{for(const _0x4fd25d of _0x468eba)_0x8c887d['removeMarker'](_0x4fd25d);});}}});}}function G(_0x48b096,_0x4ac349){return _0x4ac349?_0x48b096+':'+_0x4ac349:_0x48b096;}function H(_0x101e30){const _0x145b72=_0x101e30[_0x1f8c('0x3e')](':');return{'group':_0x145b72[0x0],'id':_0x145b72[0x1],'part':_0x145b72[0x2]};}function J(_0x5ed8fb,_0x304c70){const _0x14b84a=_0x304c70[_0x1f8c('0x36')],_0x1b56d7=_0x304c70[_0x1f8c('0x33')](_0x5ed8fb[_0x1f8c('0x2c')]);for(const _0x4f4388 of _0x5ed8fb['getWalker']()){const {type:_0x32cce4,item:_0x4cb3a0,nextPosition:_0x55cb8f}=_0x4f4388;if(_0x1f8c('0x24')===_0x32cce4||_0x14b84a[_0x1f8c('0x8')](_0x4cb3a0)){const _0xd8a49d=_0x304c70[_0x1f8c('0x54')](_0x4cb3a0);_0x1b56d7[_0x1f8c('0x3b')]&&(_0x1b56d7['start']=_0xd8a49d),_0x1b56d7[_0x1f8c('0x52')]=_0x55cb8f;}}return _0x1b56d7['isCollapsed']?null:_0x1b56d7;}
|
|
23
|
+
const _0x3480=['length','left','model','reconvertMarker','fetchCommentThread','size','getByInnerView','collaboration.channelId','Annotations','upcast','isThreadsLoadingPaused','ck-comment-marker','createPositionBefore','change:isReadOnly','commands','getCommentThread','name','render','hasMarkerForId','_detachCommentThread','for','elementToElement','pluginName','_attachMarkerToThread','set','document','plugins','conversion','update:comment','_threadToController','push','editor','_handleMarkerAddAndRemove','low','map','registerAnnotation','isCollapsed','dataToMarker','getChangedMarkers','comment','sort','dataDowncast','activeMarker','end','isObject','differ','getWalker','affectsData','init','state','createElement','destroy','split','isEqual','ck-comment-marker--active','getAttribute','editing','markers','once','markerToData','newRange','addComment','openNewCommentThread','getAllMarkersForId','getCommentThreads','comment:','root','EditorAnnotations','switchReadOnly','get','editingDowncast','_threads','delete','high','change','hasContent','view','start','CommentsRepository','_attachedThreads','createRange','config','$graveyard','attachTo','removeCommentThread','top','text','schema','destroyed','registerPostFixer','listenTo','addCommentThread','change:isThreadsLoadingPaused','updateMarker','removeMarker','markerName'];(function(_0x515d64,_0x348080){const _0x90525a=function(_0x278741){while(--_0x278741){_0x515d64['push'](_0x515d64['shift']());}};_0x90525a(++_0x348080);}(_0x3480,0x1ba));const _0x9052=function(_0x515d64,_0x348080){_0x515d64=_0x515d64-0x0;let _0x90525a=_0x3480[_0x515d64];return _0x90525a;};import{Plugin as _0xaa2867}from'ckeditor5/src/core';import{Rect as _0x57c06a}from'ckeditor5/src/utils';import _0x3c4328 from'./commentsrepository';import _0x3f7637 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x57183e}from'ckeditor5-collaboration/src/collaboration-core';import _0x5c1338 from'../annotations/editorannotations';import _0x5a9668 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x36567a from'./integrations/importword';export default class r extends _0xaa2867{static get['requires'](){return[_0x3c4328,_0x5c1338,_0x5a9668,_0x36567a];}static get[_0x9052('0x3c')](){return'CommentsEditing';}constructor(_0x12fb98){super(_0x12fb98),this[_0x9052('0x3e')](_0x9052('0x30'),!0x0),_0x12fb98['data'][_0x9052('0x0')]('ready',()=>this[_0x9052('0x30')]=!0x1),this[_0x9052('0x3e')](_0x9052('0x50'),null),this['on']('change:activeMarker',(_0x440b59,_0x47e992,_0x12a20d,_0x5a7d16)=>{_0x12fb98['model']['change'](()=>{if(_0x12a20d){const {id:_0x5d89f7}=y(_0x12a20d),_0x551e4c=this[_0x9052('0x5')](_0x5d89f7);for(const _0x518718 of _0x551e4c)_0x12fb98[_0x9052('0x5e')]['reconvertMarker'](_0x518718);}if(_0x5a7d16){const {id:_0x769b10}=y(_0x5a7d16),_0x5eb176=this[_0x9052('0x5')](_0x769b10);for(const _0x918a9 of _0x5eb176)_0x12fb98[_0x9052('0x5e')][_0x9052('0x29')](_0x918a9);}});}),this[_0x9052('0x15')]=new Map();}[_0x9052('0x56')](){const _0x4a99d7=this[_0x9052('0x45')],_0x1898f0=_0x4a99d7[_0x9052('0x40')][_0x9052('0xb')](_0x9052('0x14')),_0x4fb8a6=_0x4a99d7[_0x9052('0x17')][_0x9052('0xb')]('collaboration.channelId');_0x4a99d7[_0x9052('0x34')]['add'](_0x9052('0x21'),new _0x3f7637(_0x4a99d7)),this[_0x9052('0x20')](_0x4a99d7,_0x9052('0x33'),(_0xc60b0b,_0x1b7759,_0x382689)=>{_0x1898f0[_0x9052('0xa')](_0x382689,_0x4a99d7['config'][_0x9052('0xb')]('collaboration.channelId'));}),this['listenTo'](_0x1898f0,w(_0x9052('0x1a'),_0x4fb8a6),(_0xcc3162,{threadId:_0x14e800})=>{_0x4a99d7['model']['change'](_0x5e13b3=>{for(const _0x27cd2a of this[_0x9052('0x5')](_0x14e800))_0x5e13b3[_0x9052('0x24')](_0x27cd2a);});const _0x4c0042=_0x1898f0['getCommentThread'](_0x14e800);_0x1898f0['hasCommentThread'](_0x14e800)&&!_0x4c0042[_0x9052('0x26')]||_0xcc3162['stop']();},{'priority':_0x9052('0xf')}),this[_0x9052('0x20')](_0x1898f0,w(_0x9052('0x3'),_0x4fb8a6),(_0x3aa4b0,{threadId:_0x37d2f9,isFromAdapter:_0xec62dd})=>{const _0x563be0=this['getAllMarkersForId'](_0x37d2f9);if(_0xec62dd||0x0==_0x563be0[_0x9052('0x26')]||!_0x1898f0['hasCommentThread'](_0x37d2f9))return;0x1===_0x1898f0[_0x9052('0x35')](_0x37d2f9)[_0x9052('0x26')]&&_0x4a99d7[_0x9052('0x28')][_0x9052('0x10')](_0x28e4eb=>{for(const _0x2aa4c2 of _0x563be0)_0x28e4eb[_0x9052('0x23')](_0x2aa4c2,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x9052('0x47')}),this['_initializeMarkerConverters'](),this[_0x9052('0x46')]();}[_0x9052('0x59')](){const _0x1a719a=this[_0x9052('0x45')][_0x9052('0x40')][_0x9052('0xb')](_0x9052('0x14')),_0x46930f=this[_0x9052('0x45')]['config'][_0x9052('0xb')]('collaboration.channelId');for(const _0x511baa of _0x1a719a[_0x9052('0x6')]({'channelId':_0x46930f}))_0x1a719a['_detachCommentThread'](_0x511baa['id']),_0x1a719a[_0x9052('0xd')][_0x9052('0xe')](_0x511baa['id']);super['destroy']();}[_0x9052('0x38')](_0x4a8660){return this['getAllMarkersForId'](_0x4a8660)[_0x9052('0x26')]>0x0;}[_0x9052('0x5')](_0x9533f8){return(this[_0x9052('0x15')][_0x9052('0xb')](_0x9533f8)||[])['map'](_0x35bb65=>this['editor'][_0x9052('0x28')][_0x9052('0x5f')]['get'](_0x35bb65))['filter'](_0x34a8e9=>_0x34a8e9);}['_initializeMarkerConverters'](){const _0x8ae42=this[_0x9052('0x45')];_0x8ae42[_0x9052('0x41')][_0x9052('0x3a')](_0x9052('0xc'))['markerToHighlight']({'model':_0x9052('0x4d'),'view':_0x15792b=>{const {id:_0x55a692}=y(_0x15792b[_0x9052('0x25')]),_0x26f20e=[_0x9052('0x31')];return this['activeMarker']&&y(this[_0x9052('0x50')])['id']===_0x55a692&&_0x26f20e[_0x9052('0x44')](_0x9052('0x5c')),{'classes':_0x26f20e,'attributes':{'data-comment':_0x55a692}};}}),_0x8ae42[_0x9052('0x41')]['for'](_0x9052('0x4f'))[_0x9052('0x1')]({'model':_0x9052('0x4d'),'view':_0x27668f=>{const _0x1b1624=_0x8ae42[_0x9052('0x28')]['markers'][_0x9052('0xb')](_0x27668f),{id:_0x45d20d,part:_0x139dff}=y(_0x27668f);return _0x1b1624&&!_0x1b1624[_0x9052('0x55')]?null:{'group':'comment','name':_0x139dff?_0x45d20d+':'+_0x139dff:_0x45d20d};}}),_0x8ae42[_0x9052('0x41')][_0x9052('0x3a')](_0x9052('0x2f'))[_0x9052('0x3b')]({'view':{'name':'comment','attribute':{'id':/^\w/}},'model':(_0x5ef35d,{writer:_0x3bffba})=>_0x3bffba[_0x9052('0x58')]('$marker',{'data-name':_0x9052('0x7')+_0x5ef35d[_0x9052('0x5d')]('id')})}),_0x8ae42[_0x9052('0x41')][_0x9052('0x3a')](_0x9052('0x2f'))[_0x9052('0x4b')]({'view':_0x9052('0x4d')});}[_0x9052('0x46')](){const _0x1a0ffd=this[_0x9052('0x45')],_0x38bb97=_0x1a0ffd['plugins']['get'](_0x9052('0x14')),_0x2c228a=new Set();_0x1a0ffd[_0x9052('0x28')][_0x9052('0x3f')][_0x9052('0x1f')](_0x2c01fa=>{let _0x1d6128=!0x1;for(const {name:_0x1ab270,data:_0xcb734b}of _0x1a0ffd['model'][_0x9052('0x3f')][_0x9052('0x53')][_0x9052('0x4c')]()){const {group:_0x3a2489,id:_0x291225}=y(_0x1ab270);let _0x3a7b6c=_0xcb734b[_0x9052('0x2')];if(_0x9052('0x4d')!==_0x3a2489||!_0x3a7b6c)continue;const _0xc0a45d=_0x9052('0x18')===_0x3a7b6c[_0x9052('0x8')]['rootName'];_0xc0a45d||(_0x3a7b6c=I(_0x3a7b6c,_0x1a0ffd[_0x9052('0x28')]),!_0x3a7b6c||_0x3a7b6c[_0x9052('0x5b')](_0xcb734b[_0x9052('0x2')]))?!_0x3a7b6c||!_0x1a0ffd['model'][_0x9052('0x11')](_0x3a7b6c)||this[_0x9052('0x15')]['has'](_0x291225)&&_0xc0a45d?(_0x2c01fa['removeMarker'](_0x1ab270),_0x1d6128=!0x0):_0xc0a45d||(this[_0x9052('0x30')]?_0x2c228a['add'](_0x1ab270):this[_0x9052('0x3d')](_0x1ab270,_0x291225)):(_0x2c01fa[_0x9052('0x23')](_0x1ab270,{'range':_0x3a7b6c}),_0x1d6128=!0x0);}return _0x1d6128;}),this['on'](_0x9052('0x22'),(_0x3b16c5,_0x2add4d,_0x2d801e)=>{if(!_0x2d801e&&_0x2c228a[_0x9052('0x2b')])for(const _0x5a8b7a of _0x2c228a){const {id:_0x549e89}=y(_0x5a8b7a);_0x2c228a['delete'](_0x549e89),_0x1a0ffd[_0x9052('0x28')][_0x9052('0x5f')]['get'](_0x5a8b7a)&&this[_0x9052('0x3d')](_0x5a8b7a,_0x549e89);}}),this[_0x9052('0x20')](_0x1a0ffd[_0x9052('0x28')]['markers'],_0x9052('0x42'),(_0xd29c9c,_0x4167ac,_0x51d200,_0x2621ee)=>{if(_0x2621ee)return;const {id:_0x4a789a}=y(_0x4167ac[_0x9052('0x36')]),_0x4b0380=_0x1a0ffd[_0x9052('0x40')][_0x9052('0xb')](_0x9052('0x14'))['getCommentThread'](_0x4a789a);_0x2c228a[_0x9052('0xe')](_0x4a789a),_0x4b0380&&!this[_0x9052('0x38')](_0x4a789a)&&(this[_0x9052('0x15')][_0x9052('0xe')](_0x4a789a),_0x38bb97[_0x9052('0x39')](_0x4a789a));});}[_0x9052('0x3d')](_0x2fb402,_0x3714a2){if(this[_0x9052('0x15')]['has'](_0x3714a2)){const _0x4887f1=this[_0x9052('0x15')][_0x9052('0xb')](_0x3714a2);return void(_0x4887f1['includes'](_0x2fb402)||_0x4887f1[_0x9052('0x44')](_0x2fb402));}this[_0x9052('0x15')]['set'](_0x3714a2,[_0x2fb402]);const _0x2bd966=this[_0x9052('0x45')],_0x4dde0b=_0x2bd966[_0x9052('0x40')][_0x9052('0xb')](_0x9052('0x14')),_0xaff068=_0x2bd966['config']['get'](_0x9052('0x2d')),_0x5e5289=_0x2bd966['plugins']['get'](_0x9052('0x9')),_0x5c092d=()=>{const _0x7e3b49=this[_0x9052('0x5')](_0x3714a2);if(0x0===_0x7e3b49[_0x9052('0x26')])return null;if(0x1===_0x7e3b49[_0x9052('0x26')])return _0x57183e(_0x2bd966['editing'],_0x7e3b49[0x0]);const _0x17040a=_0x7e3b49[_0x9052('0x48')](_0x377816=>_0x57183e(_0x2bd966[_0x9052('0x5e')],_0x377816));return _0x17040a[_0x9052('0x4e')]((_0x12bd6e,_0x9b78b7)=>{const _0x3e1a5d=new _0x57c06a(_0x12bd6e),_0x2774c0=new _0x57c06a(_0x9b78b7),_0x4b1733=_0x3e1a5d[_0x9052('0x1b')]-_0x2774c0[_0x9052('0x1b')];return 0x0==_0x4b1733?_0x3e1a5d[_0x9052('0x27')]-_0x2774c0['left']:_0x4b1733;}),_0x17040a[0x0];};!this[_0x9052('0x5')](_0x3714a2)[0x0]['managedUsingOperations']?_0x2bd966['editing']['view'][_0x9052('0x0')](_0x9052('0x37'),()=>{const _0x256190=_0x2bd966['plugins']['get'](_0x9052('0x2e')),_0x1707e4=_0x4dde0b[_0x9052('0x4')]({'channelId':_0xaff068,'threadId':_0x3714a2,'target':_0x5c092d}),_0x36397a=_0x4dde0b[_0x9052('0x43')][_0x9052('0xb')](_0x1707e4)[_0x9052('0x12')],_0x16a514=_0x256190[_0x9052('0x2c')](_0x36397a);_0x5e5289['registerAnnotation'](_0x16a514);},{'priority':_0x9052('0x47')}):_0x4dde0b[_0x9052('0x2a')]({'channelId':_0xaff068,'threadId':_0x3714a2})['then'](_0x3cf4c5=>{if(_0x9052('0x1e')!==_0x2bd966[_0x9052('0x57')]){if(_0x3cf4c5){const _0x3c1b82=_0x3cf4c5[_0x9052('0x19')](_0x5c092d);_0x5e5289[_0x9052('0x49')](_0x3c1b82);}else{const _0x66a132=this[_0x9052('0x5')](_0x3714a2);_0x2bd966[_0x9052('0x28')][_0x9052('0x10')](_0x329584=>{for(const _0x372d09 of _0x66a132)_0x329584[_0x9052('0x24')](_0x372d09);});}}});}}function w(_0x1a1037,_0x241f24){return _0x241f24?_0x1a1037+':'+_0x241f24:_0x1a1037;}function y(_0x5bec40){const _0x17006a=_0x5bec40[_0x9052('0x5a')](':');return{'group':_0x17006a[0x0],'id':_0x17006a[0x1],'part':_0x17006a[0x2]};}function I(_0x24a9ec,_0x2926b1){const _0x36e869=_0x2926b1[_0x9052('0x1d')],_0x539cba=_0x2926b1[_0x9052('0x16')](_0x24a9ec[_0x9052('0x13')]);for(const _0x1b8901 of _0x24a9ec[_0x9052('0x54')]()){const {type:_0x385c2c,item:_0x92805d,nextPosition:_0x16e801}=_0x1b8901;if(_0x9052('0x1c')===_0x385c2c||_0x36e869[_0x9052('0x52')](_0x92805d)){const _0x2aba54=_0x2926b1[_0x9052('0x32')](_0x92805d);_0x539cba[_0x9052('0x4a')]&&(_0x539cba[_0x9052('0x13')]=_0x2aba54),_0x539cba[_0x9052('0x51')]=_0x16e801;}}return _0x539cba[_0x9052('0x4a')]?null:_0x539cba;}
|