@ckeditor/ckeditor5-comments 35.2.0 → 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 _0x4fd2=['stop','plugins','getAllMarkersForId','attachTo','_handleMarkerAddAndRemove','includes','removeMarker','text','_attachedThreads','rootName','registerAnnotation','markerName','isThreadsLoadingPaused','update:comment','destroyed','_attachMarkerToThread','CommentsRepository','reconvertMarker','EditorAnnotations','activeMarker','set','render','hasMarkerForId','left','addCommentThread','getWalker','change:activeMarker','delete','addComment','affectsData','isCollapsed','ck-comment-marker','isObject','createRange','getAttribute','collaboration.channelId','name','isEqual','getChangedMarkers','_detachCommentThread','end','_initializeMarkerConverters','filter','newRange','createPositionBefore','get','has','change:isThreadsLoadingPaused','hasCommentThread','high','dataDowncast','updateMarker','switchReadOnly','getCommentThread','requires','data','once','editor','sort','editing','getByInnerView','length','push','upcast','markerToData','add','createElement','ck-comment-marker--active','split','low','comment','markerToHighlight','config','document','destroy','for','conversion','markers','listenTo','model','start','hasContent','size','view','$marker','dataToMarker','managedUsingOperations','change','schema'];(function(_0x4db3c7,_0x4fd21d){const _0x969c8b=function(_0x2d6e74){while(--_0x2d6e74){_0x4db3c7['push'](_0x4db3c7['shift']());}};_0x969c8b(++_0x4fd21d);}(_0x4fd2,0x1aa));const _0x969c=function(_0x4db3c7,_0x4fd21d){_0x4db3c7=_0x4db3c7-0x0;let _0x969c8b=_0x4fd2[_0x4db3c7];return _0x969c8b;};import{Plugin as _0xf4a8a7}from'ckeditor5/src/core';import{Rect as _0xbb98f6}from'ckeditor5/src/utils';import _0x550ce0 from'./commentsrepository';import _0x4e2050 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x2db17a}from'ckeditor5-collaboration/src/collaboration-core';import _0x5cd1e5 from'../annotations/editorannotations';import _0x4720de from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x48a3a6 from'./integrations/importword';export default class r extends _0xf4a8a7{static get[_0x969c('0x49')](){return[_0x550ce0,_0x5cd1e5,_0x4720de,_0x48a3a6];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x48a9ab){super(_0x48a9ab),this[_0x969c('0x27')]('isThreadsLoadingPaused',!0x0),_0x48a9ab[_0x969c('0x4a')][_0x969c('0x4b')]('ready',()=>this[_0x969c('0x1f')]=!0x1),this['set'](_0x969c('0x26'),null),this['on'](_0x969c('0x2d'),(_0x27cdf0,_0x3d1071,_0xdc0ba3,_0x36cad9)=>{_0x48a9ab[_0x969c('0x9')]['change'](()=>{if(_0xdc0ba3){const {id:_0x4f1ffa}=H(_0xdc0ba3),_0xe36d97=this[_0x969c('0x15')](_0x4f1ffa);for(const _0x23048b of _0xe36d97)_0x48a9ab['editing'][_0x969c('0x24')](_0x23048b);}if(_0x36cad9){const {id:_0x500df5}=H(_0x36cad9),_0x3a6d73=this[_0x969c('0x15')](_0x500df5);for(const _0xdf7c37 of _0x3a6d73)_0x48a9ab[_0x969c('0x4e')][_0x969c('0x24')](_0xdf7c37);}});}),this[_0x969c('0x1b')]=new Map();}['init'](){const _0x3821c2=this[_0x969c('0x4c')],_0x601f05=_0x3821c2['plugins'][_0x969c('0x40')]('CommentsRepository'),_0x1285e6=_0x3821c2['config']['get'](_0x969c('0x36'));_0x3821c2['commands'][_0x969c('0x54')](_0x969c('0x2b'),new _0x4e2050(_0x3821c2)),this[_0x969c('0x8')](_0x3821c2,'change:isReadOnly',(_0x3a08c2,_0xd7e7c0,_0x3c4b25)=>{_0x601f05[_0x969c('0x47')](_0x3c4b25,_0x3821c2['config'][_0x969c('0x40')](_0x969c('0x36')));}),this[_0x969c('0x8')](_0x601f05,G('removeCommentThread',_0x1285e6),(_0x24286f,{threadId:_0x2cce80})=>{_0x3821c2[_0x969c('0x9')][_0x969c('0x11')](_0xb1bd48=>{for(const _0x144e78 of this[_0x969c('0x15')](_0x2cce80))_0xb1bd48[_0x969c('0x19')](_0x144e78);});const _0x323391=_0x601f05[_0x969c('0x48')](_0x2cce80);_0x601f05['hasCommentThread'](_0x2cce80)&&!_0x323391[_0x969c('0x50')]||_0x24286f[_0x969c('0x13')]();},{'priority':_0x969c('0x44')}),this[_0x969c('0x8')](_0x601f05,G(_0x969c('0x2f'),_0x1285e6),(_0x18b1a5,{threadId:_0x445adf,isFromAdapter:_0x4bb035})=>{const _0x5add1b=this[_0x969c('0x15')](_0x445adf);if(_0x4bb035||0x0==_0x5add1b[_0x969c('0x50')]||!_0x601f05[_0x969c('0x43')](_0x445adf))return;0x1===_0x601f05['getCommentThread'](_0x445adf)[_0x969c('0x50')]&&_0x3821c2['model'][_0x969c('0x11')](_0x21b265=>{for(const _0x3c83a6 of _0x5add1b)_0x21b265[_0x969c('0x46')](_0x3c83a6,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x969c('0x58')}),this['_initializeMarkerConverters'](),this[_0x969c('0x17')]();}[_0x969c('0x4')](){const _0x51e46c=this[_0x969c('0x4c')][_0x969c('0x14')][_0x969c('0x40')](_0x969c('0x23')),_0x4bd499=this[_0x969c('0x4c')][_0x969c('0x2')][_0x969c('0x40')](_0x969c('0x36'));for(const _0x137475 of _0x51e46c['getCommentThreads']({'channelId':_0x4bd499}))_0x51e46c[_0x969c('0x3a')](_0x137475['id']),_0x51e46c['_threads']['delete'](_0x137475['id']);super[_0x969c('0x4')]();}['hasMarkerForId'](_0x2b38b5){return this[_0x969c('0x15')](_0x2b38b5)[_0x969c('0x50')]>0x0;}[_0x969c('0x15')](_0x46a5ac){return(this[_0x969c('0x1b')]['get'](_0x46a5ac)||[])['map'](_0xc2fe17=>this['editor'][_0x969c('0x9')]['markers']['get'](_0xc2fe17))[_0x969c('0x3d')](_0x5b53b4=>_0x5b53b4);}[_0x969c('0x3c')](){const _0x5e505b=this[_0x969c('0x4c')];_0x5e505b[_0x969c('0x6')]['for']('editingDowncast')[_0x969c('0x1')]({'model':_0x969c('0x0'),'view':_0x4af387=>{const {id:_0x1b48ac}=H(_0x4af387[_0x969c('0x1e')]),_0x55f4a0=[_0x969c('0x32')];return this['activeMarker']&&H(this[_0x969c('0x26')])['id']===_0x1b48ac&&_0x55f4a0[_0x969c('0x51')](_0x969c('0x56')),{'classes':_0x55f4a0,'attributes':{'data-comment':_0x1b48ac}};}}),_0x5e505b['conversion'][_0x969c('0x5')](_0x969c('0x45'))[_0x969c('0x53')]({'model':_0x969c('0x0'),'view':_0x15c3cc=>{const _0x33f0ad=_0x5e505b[_0x969c('0x9')][_0x969c('0x7')][_0x969c('0x40')](_0x15c3cc),{id:_0x44e3f1,part:_0x31c86b}=H(_0x15c3cc);return _0x33f0ad&&!_0x33f0ad[_0x969c('0x30')]?null:{'group':_0x969c('0x0'),'name':_0x31c86b?_0x44e3f1+':'+_0x31c86b:_0x44e3f1};}}),_0x5e505b['conversion'][_0x969c('0x5')]('upcast')['elementToElement']({'view':{'name':_0x969c('0x0'),'attribute':{'id':/^\w/}},'model':(_0x56153b,{writer:_0x36343d})=>_0x36343d[_0x969c('0x55')](_0x969c('0xe'),{'data-name':'comment:'+_0x56153b[_0x969c('0x35')]('id')})}),_0x5e505b[_0x969c('0x6')][_0x969c('0x5')](_0x969c('0x52'))[_0x969c('0xf')]({'view':_0x969c('0x0')});}[_0x969c('0x17')](){const _0x1a6920=this[_0x969c('0x4c')],_0x577a4b=_0x1a6920[_0x969c('0x14')][_0x969c('0x40')]('CommentsRepository'),_0x12aae=new Set();_0x1a6920['model'][_0x969c('0x3')]['registerPostFixer'](_0x283568=>{let _0x21e9d9=!0x1;for(const {name:_0xc66d3,data:_0x50f3cd}of _0x1a6920[_0x969c('0x9')][_0x969c('0x3')]['differ'][_0x969c('0x39')]()){const {group:_0x2b6709,id:_0x37108c}=H(_0xc66d3);let _0x438592=_0x50f3cd[_0x969c('0x3e')];if(_0x969c('0x0')!==_0x2b6709||!_0x438592)continue;const _0x619fc5='$graveyard'===_0x438592['root'][_0x969c('0x1c')];_0x619fc5||(_0x438592=J(_0x438592,_0x1a6920['model']),!_0x438592||_0x438592[_0x969c('0x38')](_0x50f3cd[_0x969c('0x3e')]))?!_0x438592||!_0x1a6920[_0x969c('0x9')][_0x969c('0xb')](_0x438592)||this[_0x969c('0x1b')][_0x969c('0x41')](_0x37108c)&&_0x619fc5?(_0x283568['removeMarker'](_0xc66d3),_0x21e9d9=!0x0):_0x619fc5||(this[_0x969c('0x1f')]?_0x12aae['add'](_0xc66d3):this[_0x969c('0x22')](_0xc66d3,_0x37108c)):(_0x283568[_0x969c('0x46')](_0xc66d3,{'range':_0x438592}),_0x21e9d9=!0x0);}return _0x21e9d9;}),this['on'](_0x969c('0x42'),(_0x15caaf,_0x38b361,_0x436891)=>{if(!_0x436891&&_0x12aae[_0x969c('0xc')])for(const _0x36348a of _0x12aae){const {id:_0x3a6ce6}=H(_0x36348a);_0x12aae[_0x969c('0x2e')](_0x3a6ce6),_0x1a6920[_0x969c('0x9')]['markers'][_0x969c('0x40')](_0x36348a)&&this[_0x969c('0x22')](_0x36348a,_0x3a6ce6);}}),this['listenTo'](_0x1a6920[_0x969c('0x9')][_0x969c('0x7')],_0x969c('0x20'),(_0x2b6b45,_0xa3e7b,_0x5259f5,_0x2794b8)=>{if(_0x2794b8)return;const {id:_0x4abe4c}=H(_0xa3e7b[_0x969c('0x37')]),_0x2435a7=_0x1a6920[_0x969c('0x14')][_0x969c('0x40')]('CommentsRepository')['getCommentThread'](_0x4abe4c);_0x12aae[_0x969c('0x2e')](_0x4abe4c),_0x2435a7&&!this[_0x969c('0x29')](_0x4abe4c)&&(this[_0x969c('0x1b')]['delete'](_0x4abe4c),_0x577a4b[_0x969c('0x3a')](_0x4abe4c));});}[_0x969c('0x22')](_0x96c6bf,_0x5d9b80){if(this[_0x969c('0x1b')][_0x969c('0x41')](_0x5d9b80)){const _0x4ab790=this[_0x969c('0x1b')][_0x969c('0x40')](_0x5d9b80);return void(_0x4ab790[_0x969c('0x18')](_0x96c6bf)||_0x4ab790[_0x969c('0x51')](_0x96c6bf));}this[_0x969c('0x1b')][_0x969c('0x27')](_0x5d9b80,[_0x96c6bf]);const _0x21c1e7=this[_0x969c('0x4c')],_0x9fa100=_0x21c1e7['plugins'][_0x969c('0x40')](_0x969c('0x23')),_0x598870=_0x21c1e7[_0x969c('0x2')][_0x969c('0x40')](_0x969c('0x36')),_0x4353ff=_0x21c1e7['plugins']['get'](_0x969c('0x25')),_0x50c2c5=()=>{const _0x1207fe=this[_0x969c('0x15')](_0x5d9b80);if(0x0===_0x1207fe['length'])return null;if(0x1===_0x1207fe[_0x969c('0x50')])return _0x2db17a(_0x21c1e7['editing'],_0x1207fe[0x0]);const _0x308d73=_0x1207fe['map'](_0x33a353=>_0x2db17a(_0x21c1e7[_0x969c('0x4e')],_0x33a353));return _0x308d73[_0x969c('0x4d')]((_0x63596c,_0x21f951)=>{const _0x32236c=new _0xbb98f6(_0x63596c),_0x3f502d=new _0xbb98f6(_0x21f951),_0x82dad=_0x32236c['top']-_0x3f502d['top'];return 0x0==_0x82dad?_0x32236c[_0x969c('0x2a')]-_0x3f502d[_0x969c('0x2a')]:_0x82dad;}),_0x308d73[0x0];};!this[_0x969c('0x15')](_0x5d9b80)[0x0][_0x969c('0x10')]?_0x21c1e7[_0x969c('0x4e')][_0x969c('0xd')][_0x969c('0x4b')](_0x969c('0x28'),()=>{const _0x5ca6cd=_0x21c1e7['plugins']['get']('Annotations'),_0x94e612=_0x9fa100['openNewCommentThread']({'channelId':_0x598870,'threadId':_0x5d9b80,'target':_0x50c2c5}),_0x7266f8=_0x9fa100['_threadToController']['get'](_0x94e612)[_0x969c('0xd')],_0x2d71e6=_0x5ca6cd[_0x969c('0x4f')](_0x7266f8);_0x4353ff[_0x969c('0x1d')](_0x2d71e6);},{'priority':_0x969c('0x58')}):_0x9fa100['fetchCommentThread']({'channelId':_0x598870,'threadId':_0x5d9b80})['then'](_0x1274ac=>{if(_0x969c('0x21')!==_0x21c1e7['state']){if(_0x1274ac){const _0x5117aa=_0x1274ac[_0x969c('0x16')](_0x50c2c5);_0x4353ff['registerAnnotation'](_0x5117aa);}else{const _0x3dd8ae=this[_0x969c('0x15')](_0x5d9b80);_0x21c1e7[_0x969c('0x9')][_0x969c('0x11')](_0x2cbeb4=>{for(const _0x317e87 of _0x3dd8ae)_0x2cbeb4['removeMarker'](_0x317e87);});}}});}}function G(_0x552e65,_0x13ef25){return _0x13ef25?_0x552e65+':'+_0x13ef25:_0x552e65;}function H(_0x28aade){const _0x349728=_0x28aade[_0x969c('0x57')](':');return{'group':_0x349728[0x0],'id':_0x349728[0x1],'part':_0x349728[0x2]};}function J(_0x584da7,_0x22d6ac){const _0x471667=_0x22d6ac[_0x969c('0x12')],_0x3ba907=_0x22d6ac[_0x969c('0x34')](_0x584da7['start']);for(const _0x13a85c of _0x584da7[_0x969c('0x2c')]()){const {type:_0x73bdcc,item:_0x4de431,nextPosition:_0x486ccc}=_0x13a85c;if(_0x969c('0x1a')===_0x73bdcc||_0x471667[_0x969c('0x33')](_0x4de431)){const _0x5aa535=_0x22d6ac[_0x969c('0x3f')](_0x4de431);_0x3ba907[_0x969c('0x31')]&&(_0x3ba907[_0x969c('0xa')]=_0x5aa535),_0x3ba907[_0x969c('0x3b')]=_0x486ccc;}}return _0x3ba907[_0x969c('0x31')]?null:_0x3ba907;}
|
|
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;}
|