@ckeditor/ckeditor5-comments 35.2.1 → 35.3.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/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 _0x404c=['change:targetRect','config','sidebar.preventScrollOutOfView','_destroySidebarItemView','_createSidebarView','_annotations','target','getIndex','_alignAfterItem','_spaceBetweenItems','minHeight','change:_lastItem','list','element','_lastItem','context','_getItemAfter','_setItemTop','targetRect','pluginName','updateHeight','setContainer','_sidebarItemViewToAnnotation','object','container','_recalculate','nodeType','view','class','_targetTop','get','isAnimationDisabled','_alignForTopChange','_updateLastItem','init','Sidebar','set','_activeAnnotation','refresh','content','isActive','push','sidebar.container','_recalculateBuffer','define','destroy','addAnnotation','_annotationToSidebarItemView','change:top','_detachFromContainer','bind','_alignToTargetRect','top','bottom','_getItemBefore','max','listenTo','length','getSidebarItemView','_alignForBottomChange','_alignBeforeItem','unbind','clear','render','stopListening','height','add','locale','remove','_getTargetTop','sidebar-setcontainer-invalid-element','_getMaxAvailableTop'];(function(_0x5bdec3,_0x404cc9){const _0x2d04a0=function(_0x4dbf72){while(--_0x4dbf72){_0x5bdec3['push'](_0x5bdec3['shift']());}};_0x2d04a0(++_0x404cc9);}(_0x404c,0x1e6));const _0x2d04=function(_0x5bdec3,_0x404cc9){_0x5bdec3=_0x5bdec3-0x0;let _0x2d04a0=_0x404c[_0x5bdec3];return _0x2d04a0;};import{ContextPlugin as _0xd17d9a}from'ckeditor5/src/core';import _0x253c4a from'./view/sidebarview';import _0x482ec3 from'./view/sidebaritemview';import{Rect as _0x595528,CKEditorError as _0x105609}from'ckeditor5/src/utils';export default class b extends _0xd17d9a{static get[_0x2d04('0x25')](){return _0x2d04('0x35');}constructor(_0x397084){super(_0x397084),this[_0x2d04('0x36')]('_lastItem'),this[_0x2d04('0x2d')]=this[_0x2d04('0x16')](),this['set']('container',null),this[_0x2d04('0x1b')]=0x19,this[_0x2d04('0x28')]=new Map(),this[_0x2d04('0x41')]=new Map(),this[_0x2d04('0x21')][_0x2d04('0x13')][_0x2d04('0x3e')]('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this[_0x2d04('0x37')]=null,this['_recalculateBuffer']=[];}[_0x2d04('0x34')](){const _0x2d22ee=this['context'][_0x2d04('0x13')][_0x2d04('0x30')](_0x2d04('0x3c'));_0x2d22ee&&this[_0x2d04('0x27')](_0x2d22ee);}[_0x2d04('0x27')](_0x4a7403){if(!p(_0x4a7403))throw new _0x105609(_0x2d04('0x10'));this[_0x2d04('0x2a')]=_0x4a7403;}['_attachToContainer']({viewClass:_0x3dbac7='',spaceBetweenItems:_0xd8f059=0x19}={}){if(!p(this['container']))throw new _0x105609('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this[_0x2d04('0x2d')]['element']),this[_0x2d04('0x2d')]['class']=_0x3dbac7,this[_0x2d04('0x1b')]=_0xd8f059;}['rearrange']({removedAnnotation:_0x212d54,previousAnnotation:_0x2de394,nextAnnotation:_0x3fa33e}){const _0x41c9de=this['getSidebarItemView'](_0x212d54);this[_0x2d04('0x2d')]['list'][_0x2d04('0xe')](_0x41c9de),this[_0x2d04('0x15')](_0x212d54),_0x2de394&&this[_0x2d04('0x45')](this[_0x2d04('0x4')](_0x2de394)),_0x3fa33e&&this[_0x2d04('0x45')](this[_0x2d04('0x4')](_0x3fa33e)),this[_0x2d04('0x33')]();}[_0x2d04('0x38')]({blurredAnnotation:_0x3d4fed,activatedAnnotation:_0x390c18,disableAnimationOnActivatedAnnotation:_0x52fea0}){if(this['_activeAnnotation']=_0x390c18,_0x3d4fed){_0x3d4fed[_0x2d04('0x3a')]=!0x1;const _0x39c4b9=this[_0x2d04('0x4')](_0x3d4fed);_0x39c4b9&&_0x52fea0&&(_0x39c4b9[_0x2d04('0x31')]=!0x1);}if(_0x390c18){const _0x375f39=this[_0x2d04('0x4')](_0x390c18);_0x375f39&&(_0x390c18[_0x2d04('0x3a')]=!0x0,_0x52fea0&&(_0x375f39[_0x2d04('0x31')]=!0x0,_0x375f39[_0x2d04('0x46')]+=0x1),this['_alignToTargetRect'](_0x375f39));}}[_0x2d04('0x43')](_0x5efa53){this[_0x2d04('0xa')](),this['view'][_0x2d04('0x1f')][_0x2d04('0xe')]();for(const _0x3d60d2 of _0x5efa53)this[_0x2d04('0x15')](_0x3d60d2);this[_0x2d04('0x2d')][_0x2d04('0x1e')][_0x2d04('0x8')](),this[_0x2d04('0x2d')][_0x2d04('0x2e')]='',this[_0x2d04('0x20')]=null;}[_0x2d04('0x40')](_0x5cf775,_0x1a0848){_0x1a0848||(_0x1a0848=_0x5cf775['view']);const _0xffb74e=new _0x482ec3(this['context'][_0x2d04('0xd')]);this[_0x2d04('0x28')][_0x2d04('0x36')](_0xffb74e,_0x5cf775),this[_0x2d04('0x41')][_0x2d04('0x36')](_0x5cf775,_0xffb74e),_0xffb74e[_0x2d04('0x39')][_0x2d04('0xc')](_0x1a0848),this[_0x2d04('0x2')](_0x5cf775[_0x2d04('0x2d')],_0x2d04('0x12'),(_0x548050,_0xb6fadf,_0x3a0bfe)=>{const _0x2a384b=this[_0x2d04('0xf')](_0x5cf775,_0x3a0bfe);_0xffb74e[_0x2d04('0x2f')]!=_0x2a384b&&(_0xffb74e['_targetTop']=_0x2a384b,this[_0x2d04('0x23')](_0xffb74e,_0x2a384b));}),this[_0x2d04('0x2')](_0xffb74e,_0x2d04('0x42'),()=>{this[_0x2d04('0x2b')](_0xffb74e,_0x2d04('0x46'));}),this['listenTo'](_0xffb74e,'change:bottom',()=>{this[_0x2d04('0x2b')](_0xffb74e,_0x2d04('0x47'));}),this['_alignToTargetRect'](_0xffb74e);const _0xcbbc7a=this[_0x2d04('0x0')](_0xffb74e);if(_0xcbbc7a)this[_0x2d04('0x1a')](_0xcbbc7a,_0xffb74e)||this[_0x2d04('0x45')](_0xffb74e);else this[_0x2d04('0x45')](_0xffb74e);return this[_0x2d04('0x33')](),this[_0x2d04('0x2d')][_0x2d04('0x1e')][_0x2d04('0xc')](_0xffb74e),_0xffb74e;}[_0x2d04('0x32')](_0x5a2cc9){if(!_0x5a2cc9[_0x2d04('0x39')][_0x2d04('0x3')])return;const _0x4e3d2d=this[_0x2d04('0x0')](_0x5a2cc9);if(!_0x4e3d2d)return;const _0x1078db=this[_0x2d04('0x28')]['get'](_0x4e3d2d),_0x569c2b=this[_0x2d04('0x37')];_0x569c2b&&_0x569c2b===_0x1078db?this[_0x2d04('0x1a')](_0x4e3d2d,_0x5a2cc9):this[_0x2d04('0x6')](_0x5a2cc9,_0x4e3d2d);}[_0x2d04('0x5')](_0x4875d5){if(!_0x4875d5[_0x2d04('0x39')]['length'])return;const _0x5014a2=this[_0x2d04('0x22')](_0x4875d5);if(!_0x5014a2)return;const _0x23a483=this['_sidebarItemViewToAnnotation']['get'](_0x5014a2),_0x27f5fe=this[_0x2d04('0x21')][_0x2d04('0x13')]['get'](_0x2d04('0x14')),_0xf612de=this['_activeAnnotation'];_0xf612de&&_0xf612de===_0x23a483&&_0x27f5fe?(this['_alignBeforeItem'](_0x5014a2,_0x4875d5),this[_0x2d04('0x1a')](_0x4875d5,_0x5014a2)):_0xf612de&&_0xf612de===_0x23a483?this[_0x2d04('0x6')](_0x5014a2,_0x4875d5):this['_alignAfterItem'](_0x4875d5,_0x5014a2);}[_0x2d04('0x2b')](_0x561176,_0x294edc){0x0===this[_0x2d04('0x3d')][_0x2d04('0x3')]&&setTimeout(()=>{for(const {sidebarItemView:_0x4f812f,changedProp:_0x40dce3}of this[_0x2d04('0x3d')])'top'===_0x40dce3?this[_0x2d04('0x32')](_0x4f812f):this['_alignForBottomChange'](_0x4f812f);this[_0x2d04('0x3d')]=[];},0xa),this[_0x2d04('0x3d')][_0x2d04('0x3b')]({'sidebarItemView':_0x561176,'changedProp':_0x294edc});}['getSidebarItemView'](_0x4ccff7){return this[_0x2d04('0x41')][_0x2d04('0x30')](_0x4ccff7);}[_0x2d04('0x3f')](){this[_0x2d04('0x2d')][_0x2d04('0x3f')]();}[_0x2d04('0x15')](_0xc3d6b3){const _0xc96852=this[_0x2d04('0x4')](_0xc3d6b3);this[_0x2d04('0xa')](_0xc96852),this[_0x2d04('0xa')](_0xc3d6b3[_0x2d04('0x2d')]),_0xc96852[_0x2d04('0x3f')](),this[_0x2d04('0x41')]['delete'](_0xc3d6b3),this['_sidebarItemViewToAnnotation']['delete'](_0xc96852);}[_0x2d04('0x16')](){const _0x110bca=new _0x253c4a(this[_0x2d04('0x21')][_0x2d04('0xd')]);return _0x110bca[_0x2d04('0x9')](),this['on'](_0x2d04('0x1d'),(_0xa5ce5f,_0x1e27ab,_0x23cb6f,_0x337dff)=>{_0x337dff&&_0x110bca[_0x2d04('0x7')](_0x2d04('0x1c')),_0x23cb6f?_0x110bca[_0x2d04('0x44')](_0x2d04('0x1c'))['to'](_0x23cb6f,'bottom'):_0x110bca[_0x2d04('0x1c')]=null;}),_0x110bca;}[_0x2d04('0x33')](){this['_lastItem']=this[_0x2d04('0x4')](this['_annotations']['last']);}[_0x2d04('0x0')](_0x40b61a){const _0x1db6ba=this[_0x2d04('0x28')][_0x2d04('0x30')](_0x40b61a),_0x271e95=this[_0x2d04('0x17')][_0x2d04('0x30')](this[_0x2d04('0x17')][_0x2d04('0x19')](_0x1db6ba)-0x1);return _0x271e95&&this[_0x2d04('0x4')](_0x271e95);}[_0x2d04('0x22')](_0x47176e){const _0x404f06=this[_0x2d04('0x28')][_0x2d04('0x30')](_0x47176e),_0x42485b=this[_0x2d04('0x17')][_0x2d04('0x30')](this[_0x2d04('0x17')][_0x2d04('0x19')](_0x404f06)+0x1);return _0x42485b&&this['getSidebarItemView'](_0x42485b);}[_0x2d04('0x6')](_0xc825ef,_0xd661a0){_0xc825ef[_0x2d04('0x26')]();const _0x2ceb23=C(_0xd661a0[_0x2d04('0x47')]+this[_0x2d04('0x1b')],_0xc825ef[_0x2d04('0x46')]);return!!_0x2ceb23&&(this['_setItemTop'](_0xd661a0,_0xd661a0[_0x2d04('0x46')]-_0x2ceb23),!0x0);}['_alignAfterItem'](_0xf4ac6f,_0x2d8d4f){_0xf4ac6f[_0x2d04('0x26')]();const _0x4417ee=C(_0xf4ac6f[_0x2d04('0x47')]+this[_0x2d04('0x1b')],_0x2d8d4f[_0x2d04('0x46')]);return!!_0x4417ee&&(this[_0x2d04('0x23')](_0x2d8d4f,_0x2d8d4f['top']+_0x4417ee,!0x1),!0x0);}[_0x2d04('0x45')](_0x1f32ea){const _0x3eecbe=this[_0x2d04('0x28')]['get'](_0x1f32ea);if(!_0x3eecbe||!_0x3eecbe['target'])return;const _0x5e6efb=this[_0x2d04('0xf')](_0x3eecbe,_0x3eecbe[_0x2d04('0x24')]);this[_0x2d04('0x23')](_0x1f32ea,_0x5e6efb);}[_0x2d04('0xf')](_0x7d63d4,_0x16226e){if(null===_0x16226e)return 0x0;if(_0x7d63d4[_0x2d04('0x18')]instanceof _0x595528)return _0x16226e['top'];{const _0x37d9d6=new _0x595528(this[_0x2d04('0x2d')][_0x2d04('0x1f')])[_0x2d04('0x46')];return _0x16226e[_0x2d04('0x46')]-_0x37d9d6;}}[_0x2d04('0x23')](_0x4291cf,_0x39f2cd,_0x28b041=this[_0x2d04('0x21')][_0x2d04('0x13')]['get'](_0x2d04('0x14'))){_0x28b041&&(_0x39f2cd=Math['max'](_0x39f2cd,this[_0x2d04('0x11')](_0x4291cf))),_0x4291cf['top']=_0x39f2cd;}[_0x2d04('0x11')](_0x52ce59){let _0x224faa=this[_0x2d04('0x0')](_0x52ce59),_0x4a638a=0x0;for(;_0x224faa;)_0x224faa['updateHeight'](),_0x4a638a+=this[_0x2d04('0x1b')]+_0x224faa[_0x2d04('0xb')],_0x224faa=this[_0x2d04('0x0')](_0x224faa);return _0x4a638a;}}function C(_0x14efbe,_0x450c47){return Math[_0x2d04('0x1')](_0x14efbe-_0x450c47,0x0);}function p(_0x3ff47c){return null!==_0x3ff47c&&_0x2d04('0x29')==typeof _0x3ff47c&&0x1===_0x3ff47c[_0x2d04('0x2c')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dd2=['icon','isDirty','ck-annotation-counter__badge--edit-mode','children','_badge','...','annotationType','extendTemplate','number','set','bind','add'];(function(_0x4a795a,_0x5dd2cd){const _0x32c384=function(_0x466a27){while(--_0x466a27){_0x4a795a['push'](_0x4a795a['shift']());}};_0x32c384(++_0x5dd2cd);}(_0x5dd2,0x19d));const _0x32c3=function(_0x4a795a,_0x5dd2cd){_0x4a795a=_0x4a795a-0x0;let _0x32c384=_0x5dd2[_0x4a795a];return _0x32c384;};import{ButtonView as _0x337c02,View as _0x6adac4}from'ckeditor5/src/ui';import _0x198520 from'../../../theme/icons/add-comment.svg';export default class B extends _0x337c02{constructor(_0x7d835c){super(_0x7d835c);const _0x2a9b7a=this['bindTemplate'];this['set'](_0x32c3('0x8'),!0x1),this[_0x32c3('0x4')](_0x32c3('0x3'),0x0),this[_0x32c3('0x5')](_0x32c3('0xb'))['to'](this,'isDirty',this,_0x32c3('0x3'),(_0x58344a,_0x4efd90)=>_0x58344a?_0x32c3('0x0'):_0x4efd90),this[_0x32c3('0x4')](_0x32c3('0x1'),''),this[_0x32c3('0x7')]=_0x198520,this[_0x32c3('0x2')]({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new _0x6adac4(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x2a9b7a['to'](_0x32c3('0x1'),_0x387f9a=>'ck-annotation-counter__badge--'+_0x387f9a),_0x2a9b7a['if']('isDirty',_0x32c3('0x9'))]},'children':[{'text':_0x2a9b7a['to'](_0x32c3('0xb'))}]}),this[_0x32c3('0xa')][_0x32c3('0x6')](this['counterView']);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36ea=['_mutationObserver','ck-rounded-corners','type','focusTracker','isActive','mainView','detach','div','ck-annotation-wrapper--active','bindTemplate','createCollection','height','_updateHeight','set','element','targetRect','Esc','ck-annotation-wrapper','fire','add','keystrokes','focus','attach','destroy','render','content'];(function(_0x23957b,_0x36ea5f){const _0x46e905=function(_0x1a6bb4){while(--_0x1a6bb4){_0x23957b['push'](_0x23957b['shift']());}};_0x46e905(++_0x36ea5f);}(_0x36ea,0xf9));const _0x46e9=function(_0x23957b,_0x36ea5f){_0x23957b=_0x23957b-0x0;let _0x46e905=_0x36ea[_0x23957b];return _0x46e905;};import{View as _0x2253eb}from'ckeditor5/src/ui';import{FocusTracker as _0x57b2a1,KeystrokeHandler as _0x5739f8,uid as _0x229b5d}from'ckeditor5/src/utils';import _0x508daf from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x2253eb{constructor(_0x1be5c6,_0x52ea05){super(_0x1be5c6),this['id']=_0x229b5d(),this[_0x46e9('0xe')]=new _0x57b2a1(),this[_0x46e9('0x5')]=new _0x5739f8(),this['keystrokes']['set']('Esc',(_0x2df2ad,_0x4ec574)=>this[_0x46e9('0x3')](_0x46e9('0x1'),_0x4ec574)),this['set'](_0x46e9('0x0'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x46e9('0x18')](_0x46e9('0x16'),0x0),this[_0x46e9('0x18')](_0x46e9('0xf'),!0x1),this['set']('isDirty',!0x1),this[_0x46e9('0x18')]('length',0x0),this['set'](_0x46e9('0xd'),''),this['_mutationObserver']=_0x508daf(()=>this[_0x46e9('0x17')]()),this[_0x46e9('0xa')]=this[_0x46e9('0x15')](),this['content'][_0x46e9('0x4')](_0x52ea05),this[_0x46e9('0x10')]=_0x52ea05;const _0x4fd9ec=this[_0x46e9('0x14')];this['setTemplate']({'tag':_0x46e9('0x12'),'attributes':{'class':['ck',_0x46e9('0x2'),_0x46e9('0xc'),_0x4fd9ec['if'](_0x46e9('0xf'),_0x46e9('0x13'))],'tabindex':-0x1},'children':this[_0x46e9('0xa')]});}[_0x46e9('0x9')](){super['render'](),this[_0x46e9('0xe')]['add'](this[_0x46e9('0x19')]),this['keystrokes']['listenTo'](this[_0x46e9('0x19')]),this[_0x46e9('0xb')][_0x46e9('0x7')](this[_0x46e9('0x19')]);}['destroy'](){this['content']['clear'](),this['keystrokes'][_0x46e9('0x8')](),this['focusTracker'][_0x46e9('0x8')](),this[_0x46e9('0xb')][_0x46e9('0x11')](),super[_0x46e9('0x8')]();}[_0x46e9('0x6')](){this[_0x46e9('0x19')][_0x46e9('0x6')]();}[_0x46e9('0x17')](){const _0x2232b4=this[_0x46e9('0x19')]['clientHeight'];_0x2232b4&&(this['height']=_0x2232b4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb56b=['ck-sidebar-item--no-animation','height','attach','setTemplate','updateHeight','content','render','element','detach','_mutationObserver','isAnimationDisabled','ck-sidebar-item','set','bindTemplate','_targetTop','bottom','createCollection','top','bind'];(function(_0x55213d,_0xb56b85){const _0x38d9ea=function(_0x5912cf){while(--_0x5912cf){_0x55213d['push'](_0x55213d['shift']());}};_0x38d9ea(++_0xb56b85);}(_0xb56b,0x1c9));const _0x38d9=function(_0x55213d,_0xb56b85){_0x55213d=_0x55213d-0x0;let _0x38d9ea=_0xb56b[_0x55213d];return _0x38d9ea;};import{View as _0x3a8ac3}from'ckeditor5/src/ui';import{toUnit as _0x466443}from'ckeditor5/src/utils';import _0x10a051 from'../../utils/createmutationobserver';const gt=_0x466443('px');export default class O extends _0x3a8ac3{constructor(_0x34c3f6){super(_0x34c3f6),this[_0x38d9('0xb')]('top'),this[_0x38d9('0xb')](_0x38d9('0x0'),0x0),this[_0x38d9('0x11')](_0x38d9('0xe'))['to'](this,_0x38d9('0x10'),this,'height',(_0x1dc6c6,_0x582b07)=>(_0x1dc6c6||0x0)+_0x582b07),this[_0x38d9('0xb')](_0x38d9('0x9'),!0x1),this['_mutationObserver']=_0x10a051(()=>this[_0x38d9('0x3')]()),this[_0x38d9('0xd')]=null,this[_0x38d9('0x4')]=this[_0x38d9('0xf')]();const _0x110ef0=this[_0x38d9('0xc')];this[_0x38d9('0x2')]({'tag':'div','attributes':{'class':[_0x38d9('0xa'),_0x110ef0['to'](_0x38d9('0x9'),_0x4d34c8=>_0x4d34c8?_0x38d9('0x12'):'')],'style':{'top':_0x110ef0['to'](_0x38d9('0x10'),gt)}},'children':this[_0x38d9('0x4')]});}[_0x38d9('0x5')](){super['render'](),this[_0x38d9('0x8')][_0x38d9('0x1')](this[_0x38d9('0x6')]);}[_0x38d9('0x3')](){const _0x463a37=this[_0x38d9('0x6')]['clientHeight'];_0x463a37&&(this['height']=_0x463a37);}['destroy'](){this['content']['clear'](),this[_0x38d9('0x8')][_0x38d9('0x7')](),super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18b5=['class','minHeight','div','createCollection','list','bindTemplate','ck-sidebar','setTemplate','set'];(function(_0x1ecfdc,_0x18b52e){const _0x1a03cb=function(_0x5c108a){while(--_0x5c108a){_0x1ecfdc['push'](_0x1ecfdc['shift']());}};_0x1a03cb(++_0x18b52e);}(_0x18b5,0xe5));const _0x1a03=function(_0x1ecfdc,_0x18b52e){_0x1ecfdc=_0x1ecfdc-0x0;let _0x1a03cb=_0x18b5[_0x1ecfdc];return _0x1a03cb;};import{View as _0x284c1d}from'ckeditor5/src/ui';import{toUnit as _0x3f3143}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x3f3143('px');export default class T extends _0x284c1d{constructor(_0x44d06e){super(_0x44d06e);const _0x39edfc=this[_0x1a03('0x1')];this[_0x1a03('0x4')]('minHeight',0x0),this['set'](_0x1a03('0x5'),''),this['list']=this[_0x1a03('0x8')](),this[_0x1a03('0x3')]({'tag':_0x1a03('0x7'),'attributes':{'class':['ck',_0x1a03('0x2'),'ck-reset',_0x39edfc['to'](_0x1a03('0x5'))],'style':{'minHeight':_0x39edfc['to'](_0x1a03('0x6'),_0xc3abf4=>_0xc3abf4?gt(_0xc3abf4+0xa):null)}},'children':this[_0x1a03('0x0')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5113=['off','setActiveAnnotation','plugins','resize','focus','addAnnotation','_editorAnnotations','_refreshPositioningDebounced','hasDomSelection','set','activeAnnotation','annotations','getOrderedSelectedAnnotations','editors','isAttached','refreshPositioning','_integrateWithEditorAnnotations','set:container','detach','listenTo','from','_attachToContainer','init','rearrange','stop','WideSidebar','blur','stopListening','refresh','EditorAnnotations','removeEventListener','_activeAnnotation','_annotations','pluginName','remove','add','widesidebar-detach-not-attached','destroy','context','has','high','container','Sidebar','get','change:container','_destroyEditorAnnotationsIntegration'];(function(_0x23b8a0,_0x511354){const _0x555a19=function(_0x3e44c2){while(--_0x3e44c2){_0x23b8a0['push'](_0x23b8a0['shift']());}};_0x555a19(++_0x511354);}(_0x5113,0xfa));const _0x555a=function(_0x23b8a0,_0x511354){_0x23b8a0=_0x23b8a0-0x0;let _0x555a19=_0x5113[_0x23b8a0];return _0x555a19;};import{ContextPlugin as _0x1808da}from'ckeditor5/src/core';import _0xc05108 from'./annotationsuis';import _0xc8ab55 from'./sidebar';import{CKEditorError as _0x5847ff,Collection as _0x55f4ba}from'ckeditor5/src/utils';import{debounce as _0x37ba7d}from'lodash-es';export default class i extends _0x1808da{static get['requires'](){return[_0xc8ab55,_0xc05108];}static get[_0x555a('0xd')](){return _0x555a('0x5');}constructor(_0x4bc241){super(_0x4bc241),this[_0x555a('0x28')]=!0x1,this[_0x555a('0x23')](_0x555a('0x24'),null),this[_0x555a('0x25')]=null,this[_0x555a('0x20')]=new _0x55f4ba(),this[_0x555a('0x21')]=_0x37ba7d(()=>{this[_0x555a('0x25')][_0x555a('0x29')]();},0xfa,{'leading':!0x1});}[_0x555a('0x2')](){const _0x26c0a2=this[_0x555a('0x12')][_0x555a('0x1c')]['get'](_0xc05108),_0x159a2c=this[_0x555a('0x12')][_0x555a('0x1c')][_0x555a('0x17')](_0xc8ab55);_0x26c0a2['register']('wideSidebar',this),_0x159a2c[_0x555a('0x15')]&&_0x26c0a2['switchTo']('wideSidebar');}[_0x555a('0x1b')](_0x59b5c9){if(_0x59b5c9===this['activeAnnotation'])return;const _0x430c5e=this[_0x555a('0x12')][_0x555a('0x1c')][_0x555a('0x17')](_0xc8ab55);_0x430c5e[_0x555a('0xb')]=_0x59b5c9;const _0x5795fb=this[_0x555a('0x24')];this[_0x555a('0x24')]=_0x59b5c9,_0x430c5e[_0x555a('0x8')]({'blurredAnnotation':_0x5795fb,'activatedAnnotation':this[_0x555a('0x24')]});}['attach'](_0x58a4a9){this[_0x555a('0x25')]=_0x58a4a9;const _0x21ee34=this['context'][_0x555a('0x1c')][_0x555a('0x17')](_0x555a('0x16'));if(_0x21ee34[_0x555a('0xc')]=_0x58a4a9,this[_0x555a('0x28')])throw new _0x5847ff('widesidebar-attach-already-attached',this);this[_0x555a('0x28')]=!0x0,this[_0x555a('0x2d')](_0x21ee34,_0x555a('0x2b'),()=>{this[_0x555a('0x2c')](),this[_0x555a('0x2d')](_0x21ee34,_0x555a('0x18'),_0x398929=>{_0x398929[_0x555a('0x1a')](),this['attach'](_0x58a4a9);});}),_0x21ee34[_0x555a('0x1')]({'viewClass':'ck-sidebar--wide'});const _0x11c82f=_0xff8e82=>{_0xff8e82['updateTargetRect'](),_0x21ee34[_0x555a('0x1f')](_0xff8e82);};for(const _0x3903aa of _0x58a4a9)_0x11c82f(_0x3903aa);this[_0x555a('0x2d')](_0x58a4a9,_0x555a('0xf'),(_0x1ef836,_0x563e6d)=>{_0x11c82f(_0x563e6d);}),this[_0x555a('0x2d')](_0x58a4a9,_0x555a('0xe'),(_0x4db64f,_0x301f81,_0x9f0381)=>{_0x21ee34[_0x555a('0x3')]({'removedAnnotation':_0x301f81,'previousAnnotation':_0x58a4a9['get'](_0x9f0381-0x1),'nextAnnotation':_0x58a4a9[_0x555a('0x17')](_0x9f0381+0x1)}),_0x301f81===this[_0x555a('0x24')]&&this[_0x555a('0x1b')](null);},{'priority':_0x555a('0x14')}),this[_0x555a('0x2d')](_0x58a4a9,_0x555a('0x1e'),(_0x2d5162,_0x33bb2c)=>{this[_0x555a('0x1b')](_0x33bb2c);}),this[_0x555a('0x2d')](_0x58a4a9,_0x555a('0x6'),()=>{this[_0x555a('0x1b')](null);});const _0x22286f=this[_0x555a('0x12')]['editors']?this[_0x555a('0x12')][_0x555a('0x27')]:new _0x55f4ba([this[_0x555a('0x12')]]);for(const _0x5a9c06 of _0x22286f)this['_integrateWithEditorAnnotations'](_0x5a9c06);this[_0x555a('0x2d')](_0x22286f,_0x555a('0xf'),(_0x132bc2,_0x3a7252)=>{this[_0x555a('0x2d')](_0x3a7252,'ready',()=>{this[_0x555a('0x2a')](_0x3a7252);});}),this[_0x555a('0x2d')](_0x22286f,_0x555a('0xe'),(_0x2e5ca4,_0x23cb60)=>{_0x23cb60[_0x555a('0x1c')][_0x555a('0x13')](_0x555a('0x9'))&&this[_0x555a('0x19')](_0x23cb60[_0x555a('0x1c')][_0x555a('0x17')](_0x555a('0x9')));}),window['addEventListener'](_0x555a('0x1d'),this[_0x555a('0x21')]),this[_0x555a('0x25')][_0x555a('0x29')]();}[_0x555a('0x2c')](){if(!this[_0x555a('0x28')])throw new _0x5847ff(_0x555a('0x10'),this);this[_0x555a('0x1b')](null);const _0x20d9fd=this[_0x555a('0x12')][_0x555a('0x1c')][_0x555a('0x17')](_0xc8ab55);_0x20d9fd['_detachFromContainer'](this[_0x555a('0x25')]),this[_0x555a('0x7')](_0x20d9fd),this[_0x555a('0x7')](this[_0x555a('0x25')]),this[_0x555a('0x7')](this[_0x555a('0x12')][_0x555a('0x27')]);for(const _0x276443 of Array[_0x555a('0x0')](this[_0x555a('0x20')]))this[_0x555a('0x19')](_0x276443);window[_0x555a('0xa')](_0x555a('0x1d'),this['_refreshPositioningDebounced']),this[_0x555a('0x21')]['cancel'](),this[_0x555a('0x24')]=null,this[_0x555a('0x28')]=!0x1,this['annotations']=null;}[_0x555a('0x11')](){this[_0x555a('0x28')]&&this[_0x555a('0x2c')]();}['_integrateWithEditorAnnotations'](_0x2a6445){const _0x3d4976=_0x2a6445[_0x555a('0x1c')][_0x555a('0x17')]('EditorAnnotations');if(!_0x3d4976)return;const _0x4ed0e5=()=>{const _0x1d68e5=_0x3d4976[_0x555a('0x26')]({'annotations':this[_0x555a('0x25')],'activeAnnotation':this[_0x555a('0x24')]});this[_0x555a('0x1b')](_0x1d68e5[0x0]||null);};this[_0x555a('0x2d')](_0x3d4976,_0x555a('0x8'),_0x4ed0e5),this[_0x555a('0x2d')](_0x3d4976,'blur',(_0x58c9c6,{isAnnotationTracked:_0x2b3cad})=>{this['activeAnnotation']&&_0x2b3cad(this['activeAnnotation'])&&this[_0x555a('0x1b')](null);}),this['listenTo'](_0x3d4976,'uiUpdate',()=>{this[_0x555a('0x21')]();}),this[_0x555a('0x2d')](this[_0x555a('0x25')],'blur',_0x487f2b=>{_0x3d4976[_0x555a('0x22')]()&&(_0x4ed0e5(),_0x487f2b[_0x555a('0x4')]());},{'priority':_0x555a('0x14')}),this[_0x555a('0x20')][_0x555a('0xf')](_0x3d4976);}['_destroyEditorAnnotationsIntegration'](_0x4c57de){_0x4c57de&&(this[_0x555a('0x7')](_0x4c57de),this[_0x555a('0x20')]['remove'](_0x4c57de));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38db=['createRange','tableCell','selection','start','getLastMatchingPosition','execute','textProxy','model','isObject','push','element','refresh','getRanges','backward','comment:','_hasContent','document','isEnabled','_itemIsContent','editor','getItems','_trimToContent','change'];(function(_0x3b4b68,_0x38dba4){const _0x2f30db=function(_0x2cad5f){while(--_0x2cad5f){_0x3b4b68['push'](_0x3b4b68['shift']());}};_0x2f30db(++_0x38dba4);}(_0x38db,0x15d));const _0x2f30=function(_0x3b4b68,_0x38dba4){_0x3b4b68=_0x3b4b68-0x0;let _0x2f30db=_0x38db[_0x3b4b68];return _0x2f30db;};import{Command as _0xb7b57b}from'ckeditor5/src/core';import{uid as _0x3b6038}from'ckeditor5/src/utils';export default class j extends _0xb7b57b{[_0x2f30('0x7')](){const _0x43b4b6=this[_0x2f30('0xf')][_0x2f30('0x3')][_0x2f30('0xc')][_0x2f30('0x15')];for(const _0x399f5a of _0x43b4b6[_0x2f30('0x8')]())if(this['_hasContent'](_0x399f5a))return void(this[_0x2f30('0xd')]=!0x0);this['isEnabled']=!0x1;}[_0x2f30('0x1')]({threadId:_0x517acf=_0x3b6038()}={}){const _0x4e7ce0=this[_0x2f30('0xf')][_0x2f30('0x3')],_0x1a8c94=[];for(const _0x3781bd of _0x4e7ce0[_0x2f30('0xc')][_0x2f30('0x15')][_0x2f30('0x8')]())this[_0x2f30('0xb')](_0x3781bd)&&_0x1a8c94[_0x2f30('0x5')](this[_0x2f30('0x11')](_0x3781bd));_0x4e7ce0[_0x2f30('0x12')](_0x17412a=>{for(const _0x343d10 of _0x1a8c94){const _0x101359=_0x3b6038()['substr'](0x1,0x5),_0x205165=_0x2f30('0xa')+_0x517acf+':'+_0x101359;_0x17412a['addMarker'](_0x205165,{'range':_0x343d10,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x2f30('0xb')](_0x31c4ac){for(const _0x4be31b of _0x31c4ac[_0x2f30('0x10')]())if(this[_0x2f30('0xe')](_0x4be31b))return!0x0;return!0x1;}[_0x2f30('0xe')](_0x31545f){return _0x31545f['is'](_0x2f30('0x2'))||this[_0x2f30('0xf')][_0x2f30('0x3')]['schema'][_0x2f30('0x4')](_0x31545f)&&!_0x31545f['is'](_0x2f30('0x6'),_0x2f30('0x14'));}[_0x2f30('0x11')](_0x21b96a){const _0x495ebd=_0x22fb59=>!this[_0x2f30('0xe')](_0x22fb59['item']),_0x50818b=_0x21b96a[_0x2f30('0x16')][_0x2f30('0x0')](_0x495ebd),_0x1a2a9e=_0x21b96a['end'][_0x2f30('0x0')](_0x495ebd,{'direction':_0x2f30('0x9')});return this['editor'][_0x2f30('0x3')][_0x2f30('0x13')](_0x50818b,_0x1a2a9e);}}
|
|
@@ -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 _0x1d9d=['comment:','map','addCommentThread','model','change:isReadOnly','left','_attachedThreads','collaboration.channelId','_attachMarkerToThread','_threadToController','low','newRange','view','destroyed','markers','EditorAnnotations','activeMarker','getWalker','end','hasCommentThread','includes','sort','pluginName','attachTo','upcast','hasContent','updateMarker','reconvertMarker','state','hasMarkerForId','change','dataDowncast','CommentsRepository','_threads','removeMarker','removeCommentThread','editing','_handleMarkerAddAndRemove','switchReadOnly','for','Annotations','CommentsEditing','conversion','document','ck-comment-marker','elementToElement','getCommentThreads','editingDowncast','high','ck-comment-marker--active','managedUsingOperations','addComment','editor','once','_detachCommentThread','delete','isThreadsLoadingPaused','get','push','markerName','$marker','update:comment','destroy','markerToData','registerAnnotation','has','plugins','set','getChangedMarkers','getAllMarkersForId','config','registerPostFixer','ready','isEqual','length','affectsData','createRange','listenTo','_initializeMarkerConverters','top','add','stop','render','start','getCommentThread','comment','split','change:activeMarker','init'];(function(_0x2b430b,_0x1d9ded){const _0x441163=function(_0x430561){while(--_0x430561){_0x2b430b['push'](_0x2b430b['shift']());}};_0x441163(++_0x1d9ded);}(_0x1d9d,0x119));const _0x4411=function(_0x2b430b,_0x1d9ded){_0x2b430b=_0x2b430b-0x0;let _0x441163=_0x1d9d[_0x2b430b];return _0x441163;};import{Plugin as _0x419b69}from'ckeditor5/src/core';import{Rect as _0x5cb5fb}from'ckeditor5/src/utils';import _0x9e4f81 from'./commentsrepository';import _0x53a99b from'./addcommentthreadcommand';import{getMarkerDomElement as _0x32257c}from'ckeditor5-collaboration/src/collaboration-core';import _0x4ff866 from'../annotations/editorannotations';import _0x1c9b90 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x111038 from'./integrations/importword';export default class r extends _0x419b69{static get['requires'](){return[_0x9e4f81,_0x4ff866,_0x1c9b90,_0x111038];}static get[_0x4411('0x8')](){return _0x4411('0x1b');}constructor(_0x2ae435){super(_0x2ae435),this['set'](_0x4411('0x2a'),!0x0),_0x2ae435['data']['once'](_0x4411('0x3a'),()=>this[_0x4411('0x2a')]=!0x1),this[_0x4411('0x35')](_0x4411('0x2'),null),this['on'](_0x4411('0x49'),(_0x33a18b,_0xf35889,_0x56e6c1,_0x311867)=>{_0x2ae435[_0x4411('0x4e')]['change'](()=>{if(_0x56e6c1){const {id:_0x4c7dd6}=H(_0x56e6c1),_0x5194ab=this[_0x4411('0x37')](_0x4c7dd6);for(const _0x323ffc of _0x5194ab)_0x2ae435[_0x4411('0x16')]['reconvertMarker'](_0x323ffc);}if(_0x311867){const {id:_0x1a9f10}=H(_0x311867),_0x1b467c=this['getAllMarkersForId'](_0x1a9f10);for(const _0x19fc1a of _0x1b467c)_0x2ae435['editing'][_0x4411('0xd')](_0x19fc1a);}});}),this[_0x4411('0x51')]=new Map();}[_0x4411('0x4a')](){const _0x89465a=this[_0x4411('0x26')],_0xf1efb=_0x89465a[_0x4411('0x34')][_0x4411('0x2b')](_0x4411('0x12')),_0x363aa8=_0x89465a[_0x4411('0x38')][_0x4411('0x2b')](_0x4411('0x52'));_0x89465a['commands'][_0x4411('0x42')](_0x4411('0x4d'),new _0x53a99b(_0x89465a)),this[_0x4411('0x3f')](_0x89465a,_0x4411('0x4f'),(_0x1c0409,_0x1fe8d9,_0x1b3134)=>{_0xf1efb[_0x4411('0x18')](_0x1b3134,_0x89465a[_0x4411('0x38')][_0x4411('0x2b')](_0x4411('0x52')));}),this['listenTo'](_0xf1efb,G(_0x4411('0x15'),_0x363aa8),(_0x25233a,{threadId:_0x1568fb})=>{_0x89465a[_0x4411('0x4e')][_0x4411('0x10')](_0x5251af=>{for(const _0x9ec4bd of this[_0x4411('0x37')](_0x1568fb))_0x5251af['removeMarker'](_0x9ec4bd);});const _0x5dc71d=_0xf1efb['getCommentThread'](_0x1568fb);_0xf1efb[_0x4411('0x5')](_0x1568fb)&&!_0x5dc71d[_0x4411('0x3c')]||_0x25233a[_0x4411('0x43')]();},{'priority':_0x4411('0x22')}),this[_0x4411('0x3f')](_0xf1efb,G(_0x4411('0x25'),_0x363aa8),(_0x2ec35b,{threadId:_0x31cc7f,isFromAdapter:_0x39d424})=>{const _0x372b5a=this[_0x4411('0x37')](_0x31cc7f);if(_0x39d424||0x0==_0x372b5a[_0x4411('0x3c')]||!_0xf1efb[_0x4411('0x5')](_0x31cc7f))return;0x1===_0xf1efb[_0x4411('0x46')](_0x31cc7f)['length']&&_0x89465a[_0x4411('0x4e')][_0x4411('0x10')](_0x39aa4e=>{for(const _0x5398e4 of _0x372b5a)_0x39aa4e['updateMarker'](_0x5398e4,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x4411('0x55')}),this[_0x4411('0x40')](),this[_0x4411('0x17')]();}[_0x4411('0x30')](){const _0x259c8b=this[_0x4411('0x26')][_0x4411('0x34')][_0x4411('0x2b')](_0x4411('0x12')),_0x7b5f03=this[_0x4411('0x26')][_0x4411('0x38')]['get']('collaboration.channelId');for(const _0x354ec1 of _0x259c8b[_0x4411('0x20')]({'channelId':_0x7b5f03}))_0x259c8b['_detachCommentThread'](_0x354ec1['id']),_0x259c8b[_0x4411('0x13')][_0x4411('0x29')](_0x354ec1['id']);super[_0x4411('0x30')]();}[_0x4411('0xf')](_0x181efb){return this[_0x4411('0x37')](_0x181efb)[_0x4411('0x3c')]>0x0;}[_0x4411('0x37')](_0x40a764){return(this[_0x4411('0x51')][_0x4411('0x2b')](_0x40a764)||[])[_0x4411('0x4c')](_0x1ce2c3=>this[_0x4411('0x26')]['model']['markers'][_0x4411('0x2b')](_0x1ce2c3))['filter'](_0x3a65fd=>_0x3a65fd);}[_0x4411('0x40')](){const _0x25e355=this['editor'];_0x25e355[_0x4411('0x1c')][_0x4411('0x19')](_0x4411('0x21'))['markerToHighlight']({'model':_0x4411('0x47'),'view':_0x41cc18=>{const {id:_0x1e3a09}=H(_0x41cc18[_0x4411('0x2d')]),_0x3dbf8f=[_0x4411('0x1e')];return this[_0x4411('0x2')]&&H(this['activeMarker'])['id']===_0x1e3a09&&_0x3dbf8f[_0x4411('0x2c')](_0x4411('0x23')),{'classes':_0x3dbf8f,'attributes':{'data-comment':_0x1e3a09}};}}),_0x25e355[_0x4411('0x1c')][_0x4411('0x19')](_0x4411('0x11'))[_0x4411('0x31')]({'model':_0x4411('0x47'),'view':_0x29c847=>{const _0x39cb34=_0x25e355['model'][_0x4411('0x0')][_0x4411('0x2b')](_0x29c847),{id:_0x3dd112,part:_0x25267e}=H(_0x29c847);return _0x39cb34&&!_0x39cb34[_0x4411('0x3d')]?null:{'group':'comment','name':_0x25267e?_0x3dd112+':'+_0x25267e:_0x3dd112};}}),_0x25e355[_0x4411('0x1c')][_0x4411('0x19')]('upcast')[_0x4411('0x1f')]({'view':{'name':_0x4411('0x47'),'attribute':{'id':/^\w/}},'model':(_0x10b2bc,{writer:_0x33b4e1})=>_0x33b4e1['createElement'](_0x4411('0x2e'),{'data-name':_0x4411('0x4b')+_0x10b2bc['getAttribute']('id')})}),_0x25e355[_0x4411('0x1c')][_0x4411('0x19')](_0x4411('0xa'))['dataToMarker']({'view':_0x4411('0x47')});}[_0x4411('0x17')](){const _0x1236d9=this[_0x4411('0x26')],_0x2bf781=_0x1236d9[_0x4411('0x34')]['get'](_0x4411('0x12')),_0x4ace6c=new Set();_0x1236d9['model'][_0x4411('0x1d')][_0x4411('0x39')](_0x478341=>{let _0x5e9d22=!0x1;for(const {name:_0xead489,data:_0x2433a5}of _0x1236d9[_0x4411('0x4e')]['document']['differ'][_0x4411('0x36')]()){const {group:_0x165c36,id:_0x189fc7}=H(_0xead489);let _0x524019=_0x2433a5[_0x4411('0x56')];if(_0x4411('0x47')!==_0x165c36||!_0x524019)continue;const _0x386887='$graveyard'===_0x524019['root']['rootName'];_0x386887||(_0x524019=J(_0x524019,_0x1236d9['model']),!_0x524019||_0x524019[_0x4411('0x3b')](_0x2433a5[_0x4411('0x56')]))?!_0x524019||!_0x1236d9[_0x4411('0x4e')][_0x4411('0xb')](_0x524019)||this[_0x4411('0x51')][_0x4411('0x33')](_0x189fc7)&&_0x386887?(_0x478341[_0x4411('0x14')](_0xead489),_0x5e9d22=!0x0):_0x386887||(this[_0x4411('0x2a')]?_0x4ace6c['add'](_0xead489):this[_0x4411('0x53')](_0xead489,_0x189fc7)):(_0x478341[_0x4411('0xc')](_0xead489,{'range':_0x524019}),_0x5e9d22=!0x0);}return _0x5e9d22;}),this['on']('change:isThreadsLoadingPaused',(_0x2e8f79,_0x4f2056,_0x51d628)=>{if(!_0x51d628&&_0x4ace6c['size'])for(const _0x343b65 of _0x4ace6c){const {id:_0x608adf}=H(_0x343b65);_0x4ace6c['delete'](_0x608adf),_0x1236d9[_0x4411('0x4e')][_0x4411('0x0')]['get'](_0x343b65)&&this[_0x4411('0x53')](_0x343b65,_0x608adf);}}),this[_0x4411('0x3f')](_0x1236d9[_0x4411('0x4e')]['markers'],_0x4411('0x2f'),(_0x3b4546,_0x255628,_0x316fcb,_0x522d30)=>{if(_0x522d30)return;const {id:_0x3fcede}=H(_0x255628['name']),_0x50fb72=_0x1236d9[_0x4411('0x34')][_0x4411('0x2b')](_0x4411('0x12'))['getCommentThread'](_0x3fcede);_0x4ace6c[_0x4411('0x29')](_0x3fcede),_0x50fb72&&!this[_0x4411('0xf')](_0x3fcede)&&(this['_attachedThreads'][_0x4411('0x29')](_0x3fcede),_0x2bf781[_0x4411('0x28')](_0x3fcede));});}[_0x4411('0x53')](_0x3a6980,_0x12cc16){if(this[_0x4411('0x51')][_0x4411('0x33')](_0x12cc16)){const _0x179ea6=this[_0x4411('0x51')][_0x4411('0x2b')](_0x12cc16);return void(_0x179ea6[_0x4411('0x6')](_0x3a6980)||_0x179ea6[_0x4411('0x2c')](_0x3a6980));}this[_0x4411('0x51')][_0x4411('0x35')](_0x12cc16,[_0x3a6980]);const _0xb9eed6=this[_0x4411('0x26')],_0x19a99c=_0xb9eed6[_0x4411('0x34')][_0x4411('0x2b')](_0x4411('0x12')),_0x407245=_0xb9eed6['config'][_0x4411('0x2b')](_0x4411('0x52')),_0x45571d=_0xb9eed6['plugins'][_0x4411('0x2b')](_0x4411('0x1')),_0xd89bf9=()=>{const _0x52519e=this['getAllMarkersForId'](_0x12cc16);if(0x0===_0x52519e['length'])return null;if(0x1===_0x52519e[_0x4411('0x3c')])return _0x32257c(_0xb9eed6[_0x4411('0x16')],_0x52519e[0x0]);const _0x4a8a28=_0x52519e[_0x4411('0x4c')](_0x35162d=>_0x32257c(_0xb9eed6[_0x4411('0x16')],_0x35162d));return _0x4a8a28[_0x4411('0x7')]((_0x10c5bf,_0x2da48b)=>{const _0xfa8239=new _0x5cb5fb(_0x10c5bf),_0x569f95=new _0x5cb5fb(_0x2da48b),_0x1638f8=_0xfa8239[_0x4411('0x41')]-_0x569f95[_0x4411('0x41')];return 0x0==_0x1638f8?_0xfa8239['left']-_0x569f95[_0x4411('0x50')]:_0x1638f8;}),_0x4a8a28[0x0];};!this['getAllMarkersForId'](_0x12cc16)[0x0][_0x4411('0x24')]?_0xb9eed6[_0x4411('0x16')][_0x4411('0x57')][_0x4411('0x27')](_0x4411('0x44'),()=>{const _0x2d816c=_0xb9eed6[_0x4411('0x34')][_0x4411('0x2b')](_0x4411('0x1a')),_0x245010=_0x19a99c['openNewCommentThread']({'channelId':_0x407245,'threadId':_0x12cc16,'target':_0xd89bf9}),_0x45eb54=_0x19a99c[_0x4411('0x54')][_0x4411('0x2b')](_0x245010)[_0x4411('0x57')],_0x771150=_0x2d816c['getByInnerView'](_0x45eb54);_0x45571d['registerAnnotation'](_0x771150);},{'priority':_0x4411('0x55')}):_0x19a99c['fetchCommentThread']({'channelId':_0x407245,'threadId':_0x12cc16})['then'](_0x5982f2=>{if(_0x4411('0x58')!==_0xb9eed6[_0x4411('0xe')]){if(_0x5982f2){const _0x4e7446=_0x5982f2[_0x4411('0x9')](_0xd89bf9);_0x45571d[_0x4411('0x32')](_0x4e7446);}else{const _0x1b8167=this[_0x4411('0x37')](_0x12cc16);_0xb9eed6[_0x4411('0x4e')][_0x4411('0x10')](_0x5ca531=>{for(const _0x25fcc4 of _0x1b8167)_0x5ca531[_0x4411('0x14')](_0x25fcc4);});}}});}}function G(_0x532fbc,_0x303317){return _0x303317?_0x532fbc+':'+_0x303317:_0x532fbc;}function H(_0x5705bf){const _0x3b2833=_0x5705bf[_0x4411('0x48')](':');return{'group':_0x3b2833[0x0],'id':_0x3b2833[0x1],'part':_0x3b2833[0x2]};}function J(_0x2cbbdd,_0x17fb9e){const _0x24d929=_0x17fb9e['schema'],_0x29ff3a=_0x17fb9e[_0x4411('0x3e')](_0x2cbbdd[_0x4411('0x45')]);for(const _0x587cc5 of _0x2cbbdd[_0x4411('0x3')]()){const {type:_0x311b15,item:_0x2fbac6,nextPosition:_0x13f1ed}=_0x587cc5;if('text'===_0x311b15||_0x24d929['isObject'](_0x2fbac6)){const _0x29f185=_0x17fb9e['createPositionBefore'](_0x2fbac6);_0x29ff3a['isCollapsed']&&(_0x29ff3a['start']=_0x29f185),_0x29ff3a[_0x4411('0x4')]=_0x13f1ed;}}return _0x29ff3a['isCollapsed']?null:_0x29ff3a;}
|