@ckeditor/ckeditor5-comments 0.0.0-nightly-20231206.0 → 0.0.0-nightly-20231208.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/build/comments.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/ug.js +1 -1
- package/lang/translations/gl.po +2 -2
- package/lang/translations/sr-latn.po +3 -3
- package/lang/translations/ug.po +10 -10
- 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/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.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/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11bb=['_sidebarItemViewToAnnotation','_annotationToSidebarItemView','top','context','target','unbind','_getTargetTop','getSidebarItemView','last','change:_lastItem','_attachToContainer','height','max','listenTo','render','refresh','targetRect','_getItemAfter','destroy','sidebar.container','_spaceBetweenItems','_alignForBottomChange','_alignAfterItem','clear','add','_activeAnnotation','_updateLastItem','_alignForTopChange','config','set','_setItemTop','object','getIndex','setContainer','delete','updateHeight','_alignBeforeItem','length','rearrange','isActive','element','remove','sidebar.preventScrollOutOfView','container','class','Sidebar','_getItemBefore','_annotations','_destroySidebarItemView','locale','_recalculateBuffer','change:targetRect','addAnnotation','_getMaxAvailableTop','sidebar-setcontainer-invalid-element','content','get','bottom','_createSidebarView','change:bottom','init','stopListening','minHeight','push','_detachFromContainer','view','_alignToTargetRect','list','appendChild','isAnimationDisabled','_lastItem','_recalculate'];(function(_0x10c68a,_0x11bb89){const _0x786788=function(_0x3f482c){while(--_0x3f482c){_0x10c68a['push'](_0x10c68a['shift']());}};_0x786788(++_0x11bb89);}(_0x11bb,0xaa));const _0x7867=function(_0x10c68a,_0x11bb89){_0x10c68a=_0x10c68a-0x0;let _0x786788=_0x11bb[_0x10c68a];return _0x786788;};import{ContextPlugin as _0x21ac19}from'ckeditor5/src/core';import{Rect as _0x37bf08,CKEditorError as _0x2eb825}from'ckeditor5/src/utils';import _0x3cd58d from'./view/sidebarview';import _0x28c24a from'./view/sidebaritemview';export default class z extends _0x21ac19{static get['pluginName'](){return _0x7867('0x13');}constructor(_0x52dd12){super(_0x52dd12),this[_0x7867('0x3')](_0x7867('0x2c'),void 0x0),this[_0x7867('0x27')]=this[_0x7867('0x20')](),this[_0x7867('0x3')](_0x7867('0x11'),null),this[_0x7867('0x42')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x7867('0x2f')]=new Map(),this[_0x7867('0x31')]['config']['define'](_0x7867('0x10'),!0x1),this[_0x7867('0x15')]=null,this[_0x7867('0x47')]=null,this['_recalculateBuffer']=[];}[_0x7867('0x22')](){const _0x20577a=this[_0x7867('0x31')][_0x7867('0x2')][_0x7867('0x1e')](_0x7867('0x41'));_0x20577a&&this[_0x7867('0x7')](_0x20577a);}[_0x7867('0x7')](_0x4bf6f9){if(!y(_0x4bf6f9))throw new _0x2eb825(_0x7867('0x1c'));this[_0x7867('0x11')]=_0x4bf6f9;}[_0x7867('0x38')]({viewClass:_0x410fe1='',spaceBetweenItems:_0x5f1e2b=0x19}={}){if(!y(this[_0x7867('0x11')]))throw new _0x2eb825('sidebar-attachtocontainer-missing-container',this);this[_0x7867('0x11')][_0x7867('0x2a')](this[_0x7867('0x27')][_0x7867('0xe')]),this[_0x7867('0x27')][_0x7867('0x12')]=_0x410fe1,this[_0x7867('0x42')]=_0x5f1e2b;}[_0x7867('0xc')]({removedAnnotation:_0x1e0724,previousAnnotation:_0x38f3d1,nextAnnotation:_0x30bba9}){const _0x3efb12=this[_0x7867('0x35')](_0x1e0724);this[_0x7867('0x27')][_0x7867('0x29')][_0x7867('0xf')](_0x3efb12),this[_0x7867('0x16')](_0x1e0724),_0x38f3d1&&this['_alignToTargetRect'](this[_0x7867('0x35')](_0x38f3d1)),_0x30bba9&&this[_0x7867('0x28')](this[_0x7867('0x35')](_0x30bba9)),this[_0x7867('0x0')]();}[_0x7867('0x3d')]({blurredAnnotation:_0x2b5263,activatedAnnotation:_0x2f9726,disableAnimationOnActivatedAnnotation:_0x196e3a}){if(this[_0x7867('0x47')]=_0x2f9726,_0x2b5263){_0x2b5263[_0x7867('0xd')]=!0x1;const _0x565e69=this[_0x7867('0x35')](_0x2b5263);_0x565e69&&_0x196e3a&&(_0x565e69['isAnimationDisabled']=!0x1);}if(_0x2f9726){const _0x206863=this[_0x7867('0x35')](_0x2f9726);_0x206863&&(_0x2f9726['isActive']=!0x0,_0x196e3a&&(_0x206863[_0x7867('0x2b')]=!0x0,_0x206863[_0x7867('0x30')]+=0x1),this['_alignToTargetRect'](_0x206863));}}[_0x7867('0x26')](_0x450cda){if(this['view']['element'][_0x7867('0xf')](),_0x450cda)for(const _0x4749eb of _0x450cda)this[_0x7867('0x16')](_0x4749eb);this[_0x7867('0x27')][_0x7867('0x29')][_0x7867('0x45')](),this['view'][_0x7867('0x12')]='',this[_0x7867('0x2c')]=null;}[_0x7867('0x1a')](_0x20f71c,_0x1a1c21){_0x1a1c21||(_0x1a1c21=_0x20f71c[_0x7867('0x27')]);const _0x1a3677=new _0x28c24a(this[_0x7867('0x31')][_0x7867('0x17')]);this[_0x7867('0x2e')][_0x7867('0x3')](_0x1a3677,_0x20f71c),this[_0x7867('0x2f')][_0x7867('0x3')](_0x20f71c,_0x1a3677),_0x1a3677[_0x7867('0x1d')][_0x7867('0x46')](_0x1a1c21),this[_0x7867('0x3b')](_0x20f71c[_0x7867('0x27')],_0x7867('0x19'),(_0x1c7f3b,_0x1aa9d2,_0x4b87e5)=>{const _0x5e05f5=this[_0x7867('0x34')](_0x20f71c,_0x4b87e5);_0x1a3677['_targetTop']!=_0x5e05f5&&(_0x1a3677['_targetTop']=_0x5e05f5,this[_0x7867('0x4')](_0x1a3677,_0x5e05f5));}),this['listenTo'](_0x1a3677,'change:top',()=>{this[_0x7867('0x2d')](_0x1a3677,_0x7867('0x30'));}),this[_0x7867('0x3b')](_0x1a3677,_0x7867('0x21'),()=>{this[_0x7867('0x2d')](_0x1a3677,_0x7867('0x1f'));}),this[_0x7867('0x28')](_0x1a3677);const _0xc7b26e=this['_getItemBefore'](_0x1a3677);if(_0xc7b26e)this[_0x7867('0x44')](_0xc7b26e,_0x1a3677)||this[_0x7867('0x28')](_0x1a3677);else this[_0x7867('0x28')](_0x1a3677);return this[_0x7867('0x0')](),this['view'][_0x7867('0x29')][_0x7867('0x46')](_0x1a3677),_0x1a3677;}[_0x7867('0x1')](_0x1474bd){if(!_0x1474bd[_0x7867('0x1d')][_0x7867('0xb')])return;const _0x4ec4be=this[_0x7867('0x14')](_0x1474bd);if(!_0x4ec4be)return;const _0x3a082c=this[_0x7867('0x2e')][_0x7867('0x1e')](_0x4ec4be),_0x447c1c=this[_0x7867('0x47')];_0x447c1c&&_0x447c1c===_0x3a082c?this[_0x7867('0x44')](_0x4ec4be,_0x1474bd):this[_0x7867('0xa')](_0x1474bd,_0x4ec4be);}[_0x7867('0x43')](_0x779ce){if(!_0x779ce[_0x7867('0x1d')][_0x7867('0xb')])return;const _0x33c078=this['_getItemAfter'](_0x779ce);if(!_0x33c078)return;const _0x4d2ea0=this[_0x7867('0x2e')][_0x7867('0x1e')](_0x33c078),_0x3c471d=this['context'][_0x7867('0x2')][_0x7867('0x1e')]('sidebar.preventScrollOutOfView'),_0x410d30=this[_0x7867('0x47')];_0x410d30&&_0x410d30===_0x4d2ea0&&_0x3c471d?(this['_alignBeforeItem'](_0x33c078,_0x779ce),this[_0x7867('0x44')](_0x779ce,_0x33c078)):_0x410d30&&_0x410d30===_0x4d2ea0?this[_0x7867('0xa')](_0x33c078,_0x779ce):this['_alignAfterItem'](_0x779ce,_0x33c078);}[_0x7867('0x2d')](_0x36a80d,_0x5e8037){0x0===this[_0x7867('0x18')][_0x7867('0xb')]&&setTimeout(()=>{for(const {sidebarItemView:_0x2fea55,changedProp:_0x54986c}of this[_0x7867('0x18')])_0x7867('0x30')===_0x54986c?this[_0x7867('0x1')](_0x2fea55):this[_0x7867('0x43')](_0x2fea55);this[_0x7867('0x18')]=[];},0xa),this['_recalculateBuffer'][_0x7867('0x25')]({'sidebarItemView':_0x36a80d,'changedProp':_0x5e8037});}['getSidebarItemView'](_0x22e24a){return this[_0x7867('0x2f')]['get'](_0x22e24a);}['destroy'](){this[_0x7867('0x23')](),this[_0x7867('0x27')][_0x7867('0x40')]();}['_destroySidebarItemView'](_0x18c3d0){const _0xe1735d=this[_0x7867('0x35')](_0x18c3d0);this[_0x7867('0x23')](_0xe1735d),this['stopListening'](_0x18c3d0[_0x7867('0x27')]),_0xe1735d[_0x7867('0x40')](),this[_0x7867('0x2f')][_0x7867('0x8')](_0x18c3d0),this[_0x7867('0x2e')]['delete'](_0xe1735d);}[_0x7867('0x20')](){const _0x4ef023=new _0x3cd58d(this['context'][_0x7867('0x17')]);return _0x4ef023[_0x7867('0x3c')](),this['on'](_0x7867('0x37'),(_0x110f6d,_0x4c5628,_0x521e7e,_0x3d83fb)=>{_0x3d83fb&&_0x4ef023[_0x7867('0x33')](_0x7867('0x24')),_0x521e7e?_0x4ef023['bind'](_0x7867('0x24'))['to'](_0x521e7e,'bottom'):_0x4ef023[_0x7867('0x24')]=null;}),_0x4ef023;}[_0x7867('0x0')](){var _0x5c3bb8;this[_0x7867('0x2c')]=(null===(_0x5c3bb8=this[_0x7867('0x15')])||void 0x0===_0x5c3bb8?void 0x0:_0x5c3bb8['last'])?this['getSidebarItemView'](this['_annotations'][_0x7867('0x36')]):null;}['_getItemBefore'](_0x6d8fa8){var _0x115029;const _0x2578e8=this['_sidebarItemViewToAnnotation'][_0x7867('0x1e')](_0x6d8fa8),_0x12b87a=_0x2578e8&&(null===(_0x115029=this[_0x7867('0x15')])||void 0x0===_0x115029?void 0x0:_0x115029[_0x7867('0x1e')](this['_annotations']['getIndex'](_0x2578e8)-0x1));return _0x12b87a&&this[_0x7867('0x35')](_0x12b87a)||null;}[_0x7867('0x3f')](_0x1470f6){var _0x2f59b8;const _0x207d49=this[_0x7867('0x2e')]['get'](_0x1470f6),_0x403caa=_0x207d49&&(null===(_0x2f59b8=this[_0x7867('0x15')])||void 0x0===_0x2f59b8?void 0x0:_0x2f59b8[_0x7867('0x1e')](this[_0x7867('0x15')][_0x7867('0x6')](_0x207d49)+0x1));return _0x403caa&&this[_0x7867('0x35')](_0x403caa)||null;}[_0x7867('0xa')](_0x228839,_0x52cd25){_0x228839[_0x7867('0x9')]();const _0x18cf26=H(_0x52cd25[_0x7867('0x1f')]+this[_0x7867('0x42')],_0x228839[_0x7867('0x30')]);return!!_0x18cf26&&(this['_setItemTop'](_0x52cd25,_0x52cd25[_0x7867('0x30')]-_0x18cf26),!0x0);}[_0x7867('0x44')](_0x8bd746,_0x3a0647){_0x8bd746[_0x7867('0x9')]();const _0x42f994=H(_0x8bd746['bottom']+this['_spaceBetweenItems'],_0x3a0647[_0x7867('0x30')]);return!!_0x42f994&&(this[_0x7867('0x4')](_0x3a0647,_0x3a0647[_0x7867('0x30')]+_0x42f994,!0x1),!0x0);}[_0x7867('0x28')](_0x5f2e37){const _0x5aaaa9=this[_0x7867('0x2e')][_0x7867('0x1e')](_0x5f2e37);if(!_0x5aaaa9||!_0x5aaaa9[_0x7867('0x32')]||!_0x5aaaa9[_0x7867('0x3e')])return;const _0x236a86=this[_0x7867('0x34')](_0x5aaaa9,_0x5aaaa9[_0x7867('0x3e')]);this[_0x7867('0x4')](_0x5f2e37,_0x236a86);}['_getTargetTop'](_0x333999,_0x55f354){if(null===_0x55f354)return 0x0;if(_0x333999[_0x7867('0x32')]instanceof _0x37bf08)return _0x55f354['top'];{const _0x266255=new _0x37bf08(this[_0x7867('0x27')][_0x7867('0xe')])[_0x7867('0x30')];return _0x55f354[_0x7867('0x30')]-_0x266255;}}[_0x7867('0x4')](_0x10838a,_0x23c671,_0x3e815e=this[_0x7867('0x31')][_0x7867('0x2')][_0x7867('0x1e')](_0x7867('0x10'))){_0x3e815e&&(_0x23c671=Math[_0x7867('0x3a')](_0x23c671,this[_0x7867('0x1b')](_0x10838a))),_0x10838a[_0x7867('0x30')]=_0x23c671;}['_getMaxAvailableTop'](_0x4aad9b){let _0x2030e1=this['_getItemBefore'](_0x4aad9b),_0x1a8f1c=0x0;for(;_0x2030e1;)_0x2030e1['updateHeight'](),_0x1a8f1c+=this[_0x7867('0x42')]+_0x2030e1[_0x7867('0x39')],_0x2030e1=this['_getItemBefore'](_0x2030e1);return _0x1a8f1c;}}function H(_0x501726,_0x22060e){return Math['max'](_0x501726-_0x22060e,0x0);}function y(_0x255145){return null!==_0x255145&&_0x7867('0x5')==typeof _0x255145&&0x1===_0x255145['nodeType'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x304a=['annotationType','isDirty','counterView','ck-annotation-counter__badge','ck-annotation-counter__badge--','icon','number','span','ck-annotation-counter__badge--edit-mode','add','set','extendTemplate','_badge','...','ck-annotation-counter','toString'];(function(_0x31a2eb,_0x304a3b){const _0x33c778=function(_0x352a48){while(--_0x352a48){_0x31a2eb['push'](_0x31a2eb['shift']());}};_0x33c778(++_0x304a3b);}(_0x304a,0x134));const _0x33c7=function(_0x31a2eb,_0x304a3b){_0x31a2eb=_0x31a2eb-0x0;let _0x33c778=_0x304a[_0x31a2eb];return _0x33c778;};import{ButtonView as _0x5a5978,View as _0x3cc075}from'ckeditor5/src/ui';import _0x13c7e8 from'../../../theme/icons/add-comment.svg';export default class D extends _0x5a5978{constructor(_0xf40360){super(_0xf40360);const _0xcba301=this['bindTemplate'];this[_0x33c7('0x6')](_0x33c7('0xd'),!0x1),this[_0x33c7('0x6')]('number',0x0),this['bind'](_0x33c7('0x8'))['to'](this,_0x33c7('0xd'),this,_0x33c7('0x2'),(_0x3ba213,_0x70004f)=>_0x3ba213?_0x33c7('0x9'):_0x70004f[_0x33c7('0xb')]()),this[_0x33c7('0x6')]('annotationType',''),this[_0x33c7('0x1')]=_0x13c7e8,this[_0x33c7('0x7')]({'attributes':{'class':[_0x33c7('0xa')]}}),this[_0x33c7('0xe')]=new _0x3cc075(),this[_0x33c7('0xe')]['setTemplate']({'tag':_0x33c7('0x3'),'attributes':{'class':[_0x33c7('0xf'),_0xcba301['to'](_0x33c7('0xc'),_0xd08b36=>_0x33c7('0x0')+_0xd08b36),_0xcba301['if']('isDirty',_0x33c7('0x4'))]},'children':[{'text':_0xcba301['to'](_0x33c7('0x8'))}]}),this['children'][_0x33c7('0x5')](this[_0x33c7('0xe')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1dc7=['render','set','isDirty','div','focusTracker','fire','_mutationObserver','_updateHeight','clear','keystrokes','element','ck-annotation-wrapper--active','focus','Esc','height','targetRect','type','length','destroy','content'];(function(_0x11c159,_0x1dc7b7){const _0x35414a=function(_0x52be1a){while(--_0x52be1a){_0x11c159['push'](_0x11c159['shift']());}};_0x35414a(++_0x1dc7b7);}(_0x1dc7,0xae));const _0x3541=function(_0x11c159,_0x1dc7b7){_0x11c159=_0x11c159-0x0;let _0x35414a=_0x1dc7[_0x11c159];return _0x35414a;};import{View as _0x57eddb}from'ckeditor5/src/ui';import{FocusTracker as _0x23c8a4,KeystrokeHandler as _0x242c47,uid as _0x2b5b84}from'ckeditor5/src/utils';import _0x445ca0 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x57eddb{constructor(_0x45fbe5,_0x315d80){super(_0x45fbe5),this['id']=_0x2b5b84(),this['focusTracker']=new _0x23c8a4(),this[_0x3541('0xf')]=new _0x242c47(),this[_0x3541('0xf')][_0x3541('0x7')](_0x3541('0x13'),(_0x256b7d,_0x99a56f)=>this[_0x3541('0xb')](_0x3541('0x13'),_0x99a56f)),this[_0x3541('0x7')](_0x3541('0x1'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3541('0x7')](_0x3541('0x0'),0x0),this[_0x3541('0x7')]('isActive',!0x1),this[_0x3541('0x7')](_0x3541('0x8'),!0x1),this[_0x3541('0x7')](_0x3541('0x3'),0x0),this[_0x3541('0x7')](_0x3541('0x2'),''),this[_0x3541('0xc')]=_0x445ca0(()=>this[_0x3541('0xd')]()),this[_0x3541('0x5')]=this['createCollection'](),this[_0x3541('0x5')]['add'](_0x315d80),this['mainView']=_0x315d80;const _0x2ec612=this['bindTemplate'];this['setTemplate']({'tag':_0x3541('0x9'),'attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x2ec612['if']('isActive',_0x3541('0x11'))],'tabindex':-0x1},'children':this[_0x3541('0x5')]});}[_0x3541('0x6')](){super[_0x3541('0x6')](),this[_0x3541('0xa')]['add'](this[_0x3541('0x10')]),this[_0x3541('0xf')]['listenTo'](this[_0x3541('0x10')]),this['_mutationObserver']['attach'](this[_0x3541('0x10')]);}[_0x3541('0x4')](){this['content'][_0x3541('0xe')](),this['keystrokes'][_0x3541('0x4')](),this[_0x3541('0xa')][_0x3541('0x4')](),this[_0x3541('0xc')]['detach'](),super['destroy']();}['focus'](){this[_0x3541('0x10')][_0x3541('0x12')]();}[_0x3541('0xd')](){const _0x50284e=this[_0x3541('0x10')]['clientHeight'];_0x50284e&&(this[_0x3541('0x0')]=_0x50284e);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33b7=['set','bindTemplate','ck-sidebar-item--no-animation','clear','setTemplate','destroy','_mutationObserver','height','element','createCollection','ck-sidebar-item','top','clientHeight','_targetTop','bottom','content','isAnimationDisabled','attach','bind','updateHeight'];(function(_0x581760,_0x33b7e7){const _0x332219=function(_0x2cfbc1){while(--_0x2cfbc1){_0x581760['push'](_0x581760['shift']());}};_0x332219(++_0x33b7e7);}(_0x33b7,0x1d6));const _0x3322=function(_0x581760,_0x33b7e7){_0x581760=_0x581760-0x0;let _0x332219=_0x33b7[_0x581760];return _0x332219;};import{View as _0x4422c5}from'ckeditor5/src/ui';import{toUnit as _0x3e1439}from'ckeditor5/src/utils';import _0x4f13a3 from'../../utils/createmutationobserver';const jt=_0x3e1439('px');export default class C extends _0x4422c5{constructor(_0x1222f7){super(_0x1222f7),this[_0x3322('0xa')](_0x3322('0x1'),0x0),this['set'](_0x3322('0x11'),0x0),this[_0x3322('0x8')](_0x3322('0x4'))['to'](this,_0x3322('0x1'),this,_0x3322('0x11'),(_0x33f185,_0x319450)=>_0x33f185+_0x319450),this['set'](_0x3322('0x6'),!0x1),this[_0x3322('0x10')]=_0x4f13a3(()=>this[_0x3322('0x9')]()),this[_0x3322('0x3')]=null,this[_0x3322('0x5')]=this[_0x3322('0x13')]();const _0x5321d8=this[_0x3322('0xb')];this[_0x3322('0xe')]({'tag':'div','attributes':{'class':[_0x3322('0x0'),_0x5321d8['to']('isAnimationDisabled',_0xb7fc7c=>_0xb7fc7c?_0x3322('0xc'):'')],'style':{'top':_0x5321d8['to']('top',_0x50ab84=>jt(_0x50ab84))}},'children':this[_0x3322('0x5')]});}['render'](){super['render'](),this[_0x3322('0x10')][_0x3322('0x7')](this[_0x3322('0x12')]);}[_0x3322('0x9')](){const _0x510845=this[_0x3322('0x12')][_0x3322('0x2')];_0x510845&&(this[_0x3322('0x11')]=_0x510845);}[_0x3322('0xf')](){this[_0x3322('0x5')][_0x3322('0xd')](),this[_0x3322('0x10')]['detach'](),super[_0x3322('0xf')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xac46=['div','class','set','createCollection','minHeight','ck-sidebar','number','ck-reset','setTemplate','list'];(function(_0x473e9d,_0xac469a){const _0x58d654=function(_0x3b2fc6){while(--_0x3b2fc6){_0x473e9d['push'](_0x473e9d['shift']());}};_0x58d654(++_0xac469a);}(_0xac46,0x18f));const _0x58d6=function(_0x473e9d,_0xac469a){_0x473e9d=_0x473e9d-0x0;let _0x58d654=_0xac46[_0x473e9d];return _0x58d654;};import{View as _0x32cc5e}from'ckeditor5/src/ui';import{toUnit as _0x1635ff}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const jt=_0x1635ff('px');export default class T extends _0x32cc5e{constructor(_0x140a2e){super(_0x140a2e);const _0x39f19a=this['bindTemplate'];this[_0x58d6('0x3')](_0x58d6('0x5'),0x0),this[_0x58d6('0x3')](_0x58d6('0x2'),''),this['list']=this[_0x58d6('0x4')](),this[_0x58d6('0x9')]({'tag':_0x58d6('0x1'),'attributes':{'class':['ck',_0x58d6('0x6'),_0x58d6('0x8'),_0x39f19a['to']('class')],'style':{'minHeight':_0x39f19a['to'](_0x58d6('0x5'),_0x25f71a=>_0x58d6('0x7')==typeof _0x25f71a?jt(_0x25f71a+0xa):null)}},'children':this[_0x58d6('0x0')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12d0=['_editorAnnotations','removeEventListener','get','_activeAnnotation','widesidebar-detach-not-attached','high','hasDomSelection','annotations','container','blur','change:container','_annotations','setActiveAnnotation','_destroyEditorAnnotationsIntegration','_attachToContainer','editors','resize','cancel','_refreshPositioningDebounced','refresh','addAnnotation','stop','plugins','switchTo','detach','listenTo','activeAnnotation','stopListening','remove','WideSidebar','uiUpdate','add','context','wideSidebar','refreshPositioning','attach','_integrateWithEditorAnnotations','requires','widesidebar-attach-already-attached','isAttached','from','focus','pluginName','has','addEventListener','_detachFromContainer','EditorAnnotations','rearrange'];(function(_0x480cea,_0x12d0af){const _0x6dd3ad=function(_0x5022da){while(--_0x5022da){_0x480cea['push'](_0x480cea['shift']());}};_0x6dd3ad(++_0x12d0af);}(_0x12d0,0x192));const _0x6dd3=function(_0x480cea,_0x12d0af){_0x480cea=_0x480cea-0x0;let _0x6dd3ad=_0x12d0[_0x480cea];return _0x6dd3ad;};import{ContextPlugin as _0x29992f,Context as _0x5d8cb6}from'ckeditor5/src/core';import _0x5e8173 from'./annotationsuis';import _0x29d9d5 from'./sidebar';import{CKEditorError as _0x593f1d,Collection as _0x1376bf}from'ckeditor5/src/utils';import{debounce as _0x336ee4}from'lodash-es';import _0x1e3b90 from'./editorannotations';export default class i extends _0x29992f{static get[_0x6dd3('0x13')](){return[_0x29d9d5,_0x5e8173];}static get[_0x6dd3('0x18')](){return _0x6dd3('0xb');}constructor(_0x3644e0){super(_0x3644e0),this[_0x6dd3('0x15')]=!0x1,this['set']('activeAnnotation',null),this[_0x6dd3('0x25')]=null,this[_0x6dd3('0x1e')]=new _0x1376bf(),this[_0x6dd3('0x0')]=_0x336ee4(()=>{this['annotations'][_0x6dd3('0x10')]();},0xfa,{'leading':!0x1});}['init'](){const _0x442eef=this[_0x6dd3('0xe')]['plugins'][_0x6dd3('0x20')](_0x5e8173),_0x4e4a54=this[_0x6dd3('0xe')][_0x6dd3('0x4')][_0x6dd3('0x20')](_0x29d9d5);_0x442eef['register'](_0x6dd3('0xf'),this),_0x4e4a54[_0x6dd3('0x26')]&&_0x442eef[_0x6dd3('0x5')]('wideSidebar');}[_0x6dd3('0x2a')](_0x59f33a){if(_0x59f33a===this['activeAnnotation'])return;const _0x2d1932=this[_0x6dd3('0xe')]['plugins'][_0x6dd3('0x20')](_0x29d9d5);_0x2d1932[_0x6dd3('0x21')]=_0x59f33a;const _0x33861a=this['activeAnnotation'];this[_0x6dd3('0x8')]=_0x59f33a,_0x2d1932[_0x6dd3('0x1')]({'blurredAnnotation':_0x33861a,'activatedAnnotation':this[_0x6dd3('0x8')]});}['attach'](_0x1694ab){this[_0x6dd3('0x25')]=_0x1694ab;const _0x180b64=this[_0x6dd3('0xe')]['plugins']['get'](_0x29d9d5);if(_0x180b64[_0x6dd3('0x29')]=_0x1694ab,this[_0x6dd3('0x15')])throw new _0x593f1d(_0x6dd3('0x14'),this);this[_0x6dd3('0x15')]=!0x0,this['listenTo'](_0x180b64,'set:container',()=>{this[_0x6dd3('0x6')](),this['listenTo'](_0x180b64,_0x6dd3('0x28'),_0x5783ab=>{_0x5783ab['off'](),this[_0x6dd3('0x11')](_0x1694ab);});}),_0x180b64[_0x6dd3('0x2c')]({'viewClass':'ck-sidebar--wide'});const _0x2914dd=_0x3f86f0=>{_0x3f86f0['updateTargetRect'](),_0x180b64[_0x6dd3('0x2')](_0x3f86f0);};for(const _0x51869a of _0x1694ab)_0x2914dd(_0x51869a);this['listenTo'](_0x1694ab,_0x6dd3('0xd'),(_0x4bd5b1,_0x5599f9)=>{_0x2914dd(_0x5599f9);}),this[_0x6dd3('0x7')](_0x1694ab,_0x6dd3('0xa'),(_0x44e5bc,_0x1a3a02,_0x381905)=>{_0x180b64[_0x6dd3('0x1d')]({'removedAnnotation':_0x1a3a02,'previousAnnotation':_0x1694ab[_0x6dd3('0x20')](_0x381905-0x1),'nextAnnotation':_0x1694ab[_0x6dd3('0x20')](_0x381905+0x1)}),_0x1a3a02===this[_0x6dd3('0x8')]&&this[_0x6dd3('0x2a')](null);},{'priority':_0x6dd3('0x23')}),this[_0x6dd3('0x7')](_0x1694ab,_0x6dd3('0x17'),(_0x5c3f2c,_0x56439b)=>{this[_0x6dd3('0x2a')](_0x56439b);}),this['listenTo'](_0x1694ab,_0x6dd3('0x27'),()=>{this['setActiveAnnotation'](null);});const _0x48557c=this[_0x6dd3('0xe')]instanceof _0x5d8cb6?this[_0x6dd3('0xe')][_0x6dd3('0x2d')]:new _0x1376bf([this[_0x6dd3('0xe')]]);for(const _0x156163 of _0x48557c)this[_0x6dd3('0x12')](_0x156163);this[_0x6dd3('0x7')](_0x48557c,_0x6dd3('0xd'),(_0x440995,_0x17badb)=>{this[_0x6dd3('0x7')](_0x17badb,'ready',()=>{this[_0x6dd3('0x12')](_0x17badb);});}),this[_0x6dd3('0x7')](_0x48557c,_0x6dd3('0xa'),(_0x3c4e5f,_0x2bd86d)=>{_0x2bd86d[_0x6dd3('0x4')][_0x6dd3('0x19')]('EditorAnnotations')&&this[_0x6dd3('0x2b')](_0x2bd86d['plugins'][_0x6dd3('0x20')](_0x6dd3('0x1c')));}),window[_0x6dd3('0x1a')](_0x6dd3('0x2e'),this['_refreshPositioningDebounced']),this[_0x6dd3('0x25')][_0x6dd3('0x10')]();}[_0x6dd3('0x6')](){if(!this[_0x6dd3('0x15')])throw new _0x593f1d(_0x6dd3('0x22'),this);this[_0x6dd3('0x2a')](null);const _0x51b9bd=this[_0x6dd3('0xe')]['plugins']['get'](_0x29d9d5);_0x51b9bd[_0x6dd3('0x1b')](this[_0x6dd3('0x25')]),this[_0x6dd3('0x9')](_0x51b9bd),this[_0x6dd3('0x9')](this[_0x6dd3('0x25')]),this[_0x6dd3('0xe')]instanceof _0x5d8cb6&&this['stopListening'](this[_0x6dd3('0xe')]['editors']);for(const _0x211873 of Array[_0x6dd3('0x16')](this[_0x6dd3('0x1e')]))this[_0x6dd3('0x2b')](_0x211873);window[_0x6dd3('0x1f')]('resize',this[_0x6dd3('0x0')]),this[_0x6dd3('0x0')][_0x6dd3('0x2f')](),this[_0x6dd3('0x8')]=null,this[_0x6dd3('0x15')]=!0x1,this[_0x6dd3('0x25')]=null;}['destroy'](){this[_0x6dd3('0x15')]&&this[_0x6dd3('0x6')]();}['_integrateWithEditorAnnotations'](_0x4b2fa9){const _0x1b970d=_0x4b2fa9[_0x6dd3('0x4')][_0x6dd3('0x20')](_0x1e3b90);if(!_0x1b970d)return;const _0x20d188=()=>{const _0x363a0b=_0x1b970d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x6dd3('0x8')]});this[_0x6dd3('0x2a')](_0x363a0b[0x0]||null);};this[_0x6dd3('0x7')](_0x1b970d,'refresh',_0x20d188),this[_0x6dd3('0x7')](_0x1b970d,_0x6dd3('0x27'),(_0x1a2724,{isAnnotationTracked:_0x1fd790})=>{this[_0x6dd3('0x8')]&&_0x1fd790(this['activeAnnotation'])&&this[_0x6dd3('0x2a')](null);}),this[_0x6dd3('0x7')](_0x1b970d,_0x6dd3('0xc'),()=>{this[_0x6dd3('0x0')]();}),this[_0x6dd3('0x7')](this['annotations'],_0x6dd3('0x27'),_0x16a7f9=>{_0x1b970d[_0x6dd3('0x24')]()&&(_0x20d188(),_0x16a7f9[_0x6dd3('0x3')]());},{'priority':_0x6dd3('0x23')}),this[_0x6dd3('0x1e')][_0x6dd3('0xd')](_0x1b970d);}[_0x6dd3('0x2b')](_0x36af7d){this[_0x6dd3('0x9')](_0x36af7d),this[_0x6dd3('0x1e')][_0x6dd3('0xa')](_0x36af7d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13d9=['editor','isObject','_hasContent','addMarker','substr','getItems','document','getRanges','isEnabled','model','getLastMatchingPosition','refresh','_itemIsContent','backward','tableCell','element','selection','createRange','item','schema','$textProxy','_trimToContent','change','comment:'];(function(_0x5b0ba5,_0x13d939){const _0x2171e5=function(_0x10d516){while(--_0x10d516){_0x5b0ba5['push'](_0x5b0ba5['shift']());}};_0x2171e5(++_0x13d939);}(_0x13d9,0x1e2));const _0x2171=function(_0x5b0ba5,_0x13d939){_0x5b0ba5=_0x5b0ba5-0x0;let _0x2171e5=_0x13d9[_0x5b0ba5];return _0x2171e5;};import{Command as _0x2f9803}from'ckeditor5/src/core';import{uid as _0xaebb8}from'ckeditor5/src/utils';export default class q extends _0x2f9803{[_0x2171('0x9')](){const _0x28ad9a=this[_0x2171('0x16')][_0x2171('0x7')][_0x2171('0x4')]['selection'];for(const _0x5ab31b of _0x28ad9a[_0x2171('0x5')]())if(this[_0x2171('0x0')](_0x5ab31b))return void(this['isEnabled']=!0x0);this[_0x2171('0x6')]=!0x1;}['execute']({threadId:_0x430bc9=_0xaebb8()}={}){const _0x28e0dc=this['editor'][_0x2171('0x7')],_0x58e2c2=[];for(const _0x3233af of _0x28e0dc[_0x2171('0x4')][_0x2171('0xe')][_0x2171('0x5')]())this[_0x2171('0x0')](_0x3233af)&&_0x58e2c2['push'](this[_0x2171('0x13')](_0x3233af));_0x28e0dc[_0x2171('0x14')](_0x1b8ed9=>{for(const _0x906ce3 of _0x58e2c2){const _0x16dd3a=_0xaebb8()[_0x2171('0x2')](0x1,0x5),_0x5f40f9=_0x2171('0x15')+_0x430bc9+':'+_0x16dd3a;_0x1b8ed9[_0x2171('0x1')](_0x5f40f9,{'range':_0x906ce3,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x2171('0x0')](_0x5e9c5a){for(const _0x5aa51e of _0x5e9c5a[_0x2171('0x3')]())if(this[_0x2171('0xa')](_0x5aa51e))return!0x0;return!0x1;}[_0x2171('0xa')](_0x92ba89){return _0x92ba89['is'](_0x2171('0x12'))||this['editor'][_0x2171('0x7')][_0x2171('0x11')][_0x2171('0x17')](_0x92ba89)&&!_0x92ba89['is'](_0x2171('0xd'),_0x2171('0xc'));}[_0x2171('0x13')](_0x32f633){const _0x5a0862=_0x3a2b55=>!this['_itemIsContent'](_0x3a2b55[_0x2171('0x10')]),_0x21100f=_0x32f633['start'][_0x2171('0x8')](_0x5a0862),_0x3742cf=_0x32f633['end'][_0x2171('0x8')](_0x5a0862,{'direction':_0x2171('0xb')});return this['editor'][_0x2171('0x7')][_0x2171('0xf')](_0x21100f,_0x3742cf);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4575=['remove','listenTo','_calculatePosition','init','stopListening','plugins','add','pluginName','getCommentThread','findIndex','collection','context','get','focus','has','archivedThreads','change:archivedAt','isActive','addCommentThread','archivedAt','length','activate','removeCommentThread'];(function(_0x298528,_0x4575c6){const _0xda3bcd=function(_0x3b9207){while(--_0x3b9207){_0x298528['push'](_0x298528['shift']());}};_0xda3bcd(++_0x4575c6);}(_0x4575,0x112));const _0xda3b=function(_0x298528,_0x4575c6){_0x298528=_0x298528-0x0;let _0xda3bcd=_0x4575[_0x298528];return _0xda3bcd;};import{ContextPlugin as _0x190660}from'ckeditor5/src/core';import{Collection as _0x42e965}from'ckeditor5/src/utils';import _0x5ef404 from'./commentsrepository';import _0x24dfc3 from'../annotations/annotations';export default class p extends _0x190660{static get[_0xda3b('0x9')](){return'CommentsArchive';}static get['requires'](){return[_0x5ef404,_0x24dfc3];}constructor(_0x262680){super(_0x262680),this[_0xda3b('0x11')]=new _0x42e965();}[_0xda3b('0x5')](){const _0x3aea1c=this[_0xda3b('0xd')],_0x45f57e=_0x3aea1c[_0xda3b('0x7')]['get'](_0x5ef404),_0x3f3df4=_0x3aea1c[_0xda3b('0x7')][_0xda3b('0xe')](_0x24dfc3);this['listenTo'](_0x45f57e,_0xda3b('0x14'),(_0x2655c5,{threadId:_0x404254})=>{const _0x1770c7=_0x45f57e[_0xda3b('0xa')](_0x404254);_0x1770c7[_0xda3b('0x15')]&&this['archivedThreads'][_0xda3b('0x8')](_0x1770c7,this[_0xda3b('0x4')](_0x1770c7['archivedAt'])),this['listenTo'](_0x1770c7,_0xda3b('0x12'),(_0x478d5b,_0x25580d,_0xc292c6)=>{_0xc292c6?this[_0xda3b('0x11')][_0xda3b('0x10')](_0x1770c7)||this[_0xda3b('0x11')][_0xda3b('0x8')](_0x1770c7,this[_0xda3b('0x4')](_0x1770c7['archivedAt'])):this[_0xda3b('0x11')][_0xda3b('0x10')](_0x1770c7)&&this[_0xda3b('0x11')][_0xda3b('0x2')](_0x1770c7);});}),this['listenTo'](_0x45f57e,_0xda3b('0x1'),(_0x38b9e9,{threadId:_0x5d60a9})=>{const _0x55f7b2=_0x45f57e['getCommentThread'](_0x5d60a9);this[_0xda3b('0x6')](_0x55f7b2),this[_0xda3b('0x11')]['has'](_0x55f7b2)&&this[_0xda3b('0x11')][_0xda3b('0x2')](_0x55f7b2);},{'priority':'highest'}),this[_0xda3b('0x3')](_0x3f3df4[_0xda3b('0xc')],_0xda3b('0xf'),(_0x9d4eb9,_0x587a42)=>{_0x587a42[_0xda3b('0x13')]=!0x0,_0x3f3df4[_0xda3b('0x0')](_0x587a42);});}['_calculatePosition'](_0xe8f984){const _0x44a2e4=[...this[_0xda3b('0x11')]][_0xda3b('0xb')](_0x27224b=>_0x27224b[_0xda3b('0x15')]<_0xe8f984);return _0x44a2e4>-0x1?_0x44a2e4:this[_0xda3b('0x11')][_0xda3b('0x16')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x74a2=['buttonView','locale','annotationViews','requires','filter','COMMENTS_ARCHIVE','Annotations','collaboration.channelId','stopListening','focusableElements','children','init','componentFactory','archivedThreads','_visibleAnnotations','position','push','focusTracker','remove','get','editor','pluginName','isVisible','plugins','config','commentsArchiveView','_createArchiveUIDropdown','ck-body','change:isOpen','listenTo','panelView','find','_handleAnnotationFocusableElements','collection','contains','classList','_calculatePosition','archivedAt','innerView','CommentsArchiveUI','commentsArchive','channelId','_threadToController','ck-comments-archive-dropdown','set','mainView','add','splice','getByInnerView','view','_pendingThreads'];(function(_0x2855de,_0x74a256){const _0x2d90cc=function(_0x2016c3){while(--_0x2016c3){_0x2855de['push'](_0x2855de['shift']());}};_0x2d90cc(++_0x74a256);}(_0x74a2,0x10d));const _0x2d90=function(_0x2855de,_0x74a256){_0x2855de=_0x2855de-0x0;let _0x2d90cc=_0x74a2[_0x2855de];return _0x2d90cc;};import'../../theme/commentsarchive.css';import{Plugin as _0xf1465a}from'ckeditor5/src/core';import{createDropdown as _0x459187,ViewCollection as _0x1d2b5d}from'ckeditor5/src/ui';import _0x5e9033 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x5b094f}from'../utils/common-translations';import _0x4b0bda from'./ui/view/commentsarchiveview';import _0x56e4a4 from'./commentsarchive';export default class a extends _0xf1465a{static get[_0x2d90('0x7')](){return _0x2d90('0x19');}static get[_0x2d90('0x28')](){return[_0x56e4a4];}constructor(_0x56a96a){super(_0x56a96a),this[_0x2d90('0x27')]=new _0x1d2b5d(),this[_0x2d90('0x24')]=[];}[_0x2d90('0x30')](){this[_0x2d90('0x6')]['ui'][_0x2d90('0x31')][_0x2d90('0x20')](_0x2d90('0x1a'),()=>this[_0x2d90('0xc')]());const _0xb4b215=this['editor'][_0x2d90('0x9')][_0x2d90('0x5')](_0x56e4a4),_0x233f2e=this['editor'][_0x2d90('0x9')][_0x2d90('0x5')](_0x2d90('0x2b')),_0x59897b=this[_0x2d90('0x6')][_0x2d90('0x9')][_0x2d90('0x5')]('CommentsRepository');this[_0x2d90('0xf')](_0xb4b215['archivedThreads'],_0x2d90('0x20'),(_0x28296d,_0x228714)=>{const _0x920bf6=this[_0x2d90('0x6')][_0x2d90('0xa')]['get'](_0x2d90('0x2c'));if(!_0x920bf6||_0x228714['channelId']===_0x920bf6){const _0x1ab234=this['_calculatePosition'](_0x228714[_0x2d90('0x17')]),_0x3ca34b=_0x59897b[_0x2d90('0x1c')][_0x2d90('0x5')](_0x228714);if(!_0x3ca34b)return void this[_0x2d90('0x24')][_0x2d90('0x2')]({'thread':_0x228714,'position':_0x1ab234});const _0x35367d=_0x233f2e[_0x2d90('0x22')](_0x3ca34b[_0x2d90('0x23')]);_0x35367d[_0x2d90('0x8')]&&_0x233f2e[_0x2d90('0x0')][_0x2d90('0x4')](_0x35367d),this[_0x2d90('0x27')][_0x2d90('0x20')](_0x35367d[_0x2d90('0x23')],_0x1ab234);}}),this[_0x2d90('0xf')](_0x233f2e[_0x2d90('0x13')],_0x2d90('0x20'),(_0x1132a7,_0x5ae965)=>{const _0x5da1cd=this['_pendingThreads'][_0x2d90('0x11')](({thread:_0x229774})=>{const _0x1e7b8c=_0x59897b[_0x2d90('0x1c')][_0x2d90('0x5')](_0x229774);return _0x1e7b8c&&_0x5ae965[_0x2d90('0x18')]===_0x1e7b8c[_0x2d90('0x23')];});_0x5da1cd&&(this[_0x2d90('0x27')][_0x2d90('0x20')](_0x5ae965[_0x2d90('0x23')],_0x5da1cd[_0x2d90('0x1')]),this[_0x2d90('0x24')][_0x2d90('0x21')](this[_0x2d90('0x24')]['indexOf'](_0x5da1cd),0x1));}),this[_0x2d90('0xf')](_0xb4b215[_0x2d90('0x32')],_0x2d90('0x4'),(_0x582aa9,_0x37234e)=>{const _0x3ed739=this[_0x2d90('0x6')][_0x2d90('0xa')]['get'](_0x2d90('0x2c'));if(!_0x3ed739||_0x37234e[_0x2d90('0x1b')]===_0x3ed739){const _0x1343d6=_0x59897b[_0x2d90('0x1c')]['get'](_0x37234e),_0x3893d9=_0x233f2e[_0x2d90('0x22')](_0x1343d6['view']);this[_0x2d90('0x27')][_0x2d90('0x4')](_0x3893d9[_0x2d90('0x23')]),this[_0x2d90('0x2d')](_0x3893d9['focusableElements']);}});}[_0x2d90('0x12')](_0x1aab8b,_0x528fc6){for(const _0x475de8 of _0x528fc6['focusableElements'])_0x475de8[_0x2d90('0x15')][_0x2d90('0x14')](_0x2d90('0xd'))&&_0x1aab8b[_0x2d90('0x3')]['add'](_0x475de8);this[_0x2d90('0xf')](_0x528fc6['focusableElements'],_0x2d90('0x20'),(_0x170ef5,_0x1d7c88)=>{_0x1d7c88[_0x2d90('0x15')][_0x2d90('0x14')](_0x2d90('0xd'))&&_0x1aab8b[_0x2d90('0x3')][_0x2d90('0x20')](_0x1d7c88);}),this[_0x2d90('0xf')](_0x528fc6[_0x2d90('0x2e')],'remove',(_0x5954a,_0x39b679)=>{_0x39b679[_0x2d90('0x15')][_0x2d90('0x14')]('ck-body')&&_0x1aab8b[_0x2d90('0x3')]['remove'](_0x39b679);});}[_0x2d90('0x16')](_0x94606){const _0xe7405f=this[_0x2d90('0x6')][_0x2d90('0xa')][_0x2d90('0x5')](_0x2d90('0x2c')),_0x4dcbc4=[...this['editor'][_0x2d90('0x9')][_0x2d90('0x5')](_0x56e4a4)[_0x2d90('0x32')]][_0x2d90('0x29')](_0x5b0da0=>_0x5b0da0[_0x2d90('0x1b')]===_0xe7405f)['findIndex'](_0x4af405=>_0x4af405[_0x2d90('0x17')]<_0x94606);return _0x4dcbc4>-0x1?_0x4dcbc4-0x1:this['annotationViews']['length'];}[_0x2d90('0xc')](){const _0x5dc23b=this['editor'],_0x83cbbd=this[_0x2d90('0x6')][_0x2d90('0x9')][_0x2d90('0x5')]('Annotations'),_0x2ede47=_0x459187(_0x5dc23b['locale']);_0x2ede47[_0x2d90('0x25')][_0x2d90('0x1e')]({'icon':_0x5e9033,'label':_0x5b094f(_0x5dc23b[_0x2d90('0x26')],_0x2d90('0x2a')),'tooltip':!0x0}),_0x2ede47[_0x2d90('0x10')]['extendTemplate']({'attributes':{'class':_0x2d90('0x1d')}}),_0x2ede47['on'](_0x2d90('0xe'),(_0xac9303,_0x560961,_0x4ac980)=>{this['commentsArchiveView']||(this[_0x2d90('0xb')]=new _0x4b0bda(_0x5dc23b['locale'],this[_0x2d90('0x27')])),_0x4ac980?_0x2ede47[_0x2d90('0x10')][_0x2d90('0x2f')][_0x2d90('0x20')](this[_0x2d90('0xb')]):_0x2ede47['panelView'][_0x2d90('0x2f')][_0x2d90('0x4')](this[_0x2d90('0xb')]);});for(const _0x2b8b65 of this[_0x2d90('0x27')]){const _0x8b54d9=_0x83cbbd[_0x2d90('0x22')](_0x2b8b65[_0x2d90('0x1f')]);this[_0x2d90('0x12')](_0x2ede47,_0x8b54d9);}return _0x2ede47[_0x2d90('0xf')](this[_0x2d90('0x27')],_0x2d90('0x20'),(_0x5c40a2,_0x473921)=>{const _0x1034ce=_0x83cbbd[_0x2d90('0x22')](_0x473921[_0x2d90('0x1f')]);this['_handleAnnotationFocusableElements'](_0x2ede47,_0x1034ce);}),_0x2ede47['listenTo'](this[_0x2d90('0x27')],'remove',(_0x54645c,_0x14e304)=>{const _0x5db5b0=_0x83cbbd[_0x2d90('0x22')](_0x14e304[_0x2d90('0x1f')]);for(const _0x1b33b2 of _0x5db5b0['focusableElements'])_0x1b33b2['classList'][_0x2d90('0x14')]('ck-body')&&_0x2ede47[_0x2d90('0x3')]['remove'](_0x1b33b2);}),_0x2ede47;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2011=['reopenCommentThread','text','affectsData','model','isEqual','refreshVisibility','name','_threadToController','pluginName','rootName','enqueueChange','isResolved','createPositionBefore','data','size','collaboration.channelId','view','attachTo','isCollapsed','fetchCommentThread','ariaLiveAnnouncer','_detachCommentThread','low','$graveyard','isLocal','differ','dataDowncast','getWalker','set','focus','_handleMarkerAddAndRemove','root','editor','markerToHighlight','state','change','schema','resolveCommentThread','init','createRange','managedUsingOperations','$marker','delete','once','_attachMarkerToThread','reconvertMarker','markers','_getTextContext','startsWith','editing','config','item','getByInnerView','getChangedMarkers','upcast','_initializeMarkerConverters','elementToElement','locale','_initAriaMarkerChangeAnnouncements','scrollToThreadMarker','removeMarker','group','destroy','hasDomSelection','newRange','_threads','for','comment:','end','setUnlinkedAt','addCommentThread','_getTargetForId','getAllMarkersForId','get','switchReadOnly','push','_attachResolvedThread','split','unlinkedAt','ck-comment-marker--active','isAttached','requires','change:activeMarker','getCommentThread','markerToData','openNewCommentThread','change:isReadOnly','activeMarker','ignoreResolvedComments','setContext','from','getAttribute','_reconvertMarkers','getRange','length','markerName','registerAnnotation','getItems','getCommentThreads','ready','plugins','conversion','archivedAt','isThreadsLoadingPaused','comment','destroyed','clear','listenTo','substring','hasMarkerForId','add','addComment','_hasTargetInContent','ENTER_COMMENT_ANNOUNCEMENT','document','_handleThreadMarker','consume','consumable'];(function(_0x3e842a,_0x2011f3){const _0x5095df=function(_0x3a8eea){while(--_0x3a8eea){_0x3e842a['push'](_0x3e842a['shift']());}};_0x5095df(++_0x2011f3);}(_0x2011,0x74));const _0x5095=function(_0x3e842a,_0x2011f3){_0x3e842a=_0x3e842a-0x0;let _0x5095df=_0x2011[_0x3e842a];return _0x5095df;};import{Plugin as _0x1a60b9}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x36efa8}from'ckeditor5/src/utils';import _0x1156c7 from'./commentsrepository';import _0x16add1 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x1da77c,getAllMarkersDomElementsSorted as _0x3dea6e}from'ckeditor5-collaboration/src/collaboration-core';import _0x19c92e from'../annotations/editorannotations';import _0x59d27b from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x37d519 from'./integrations/importword';import _0x223d44 from'../annotations/annotations';import{getTranslation as _0x279d27}from'../utils/common-translations';export default class r extends _0x1a60b9{static get[_0x5095('0x53')](){return[_0x1156c7,_0x19c92e,_0x59d27b,_0x37d519];}static get[_0x5095('0xa')](){return'CommentsEditing';}constructor(_0x19bc8f){super(_0x19bc8f),this[_0x5095('0x1e')](_0x5095('0x69'),!0x0),_0x19bc8f[_0x5095('0xf')][_0x5095('0x2d')](_0x5095('0x65'),()=>this[_0x5095('0x69')]=!0x1),this[_0x5095('0x1e')](_0x5095('0x59'),null),this['on'](_0x5095('0x54'),(_0x285c93,_0x377515,_0x4f7fe2,_0x3f9c38)=>{const _0x203880=_0x4f7fe2?ot(_0x4f7fe2)['id']:null;if(_0x19bc8f['model'][_0x5095('0x25')](()=>{if(_0x203880){const _0xf9bef4=this['getAllMarkersForId'](_0x203880);for(const _0x213eff of _0xf9bef4)_0x19bc8f[_0x5095('0x33')][_0x5095('0x2f')](_0x213eff);}if(_0x3f9c38){const {id:_0x363249}=ot(_0x3f9c38),_0x4fedfe=this[_0x5095('0x4a')](_0x363249);for(const _0x292ddf of _0x4fedfe)_0x19bc8f[_0x5095('0x33')]['reconvertMarker'](_0x292ddf);}}),_0x203880){const _0x1bd195=_0x19bc8f['plugins'][_0x5095('0x4b')](_0x1156c7)['getCommentThread'](_0x203880);_0x1bd195&&_0x1bd195[_0x5095('0xd')]&&this[_0x5095('0x3d')](_0x203880);}}),this[_0x5095('0x3c')]();}[_0x5095('0x28')](){const _0x893fd=this[_0x5095('0x22')],_0x325b2a=_0x893fd[_0x5095('0x66')]['get'](_0x1156c7),_0x3a153c=_0x893fd['config'][_0x5095('0x4b')]('collaboration.channelId');_0x893fd['commands'][_0x5095('0x70')]('addCommentThread',new _0x16add1(_0x893fd)),this[_0x5095('0x6d')](_0x893fd,_0x5095('0x58'),(_0x74dae,_0x1a606d,_0x5718a6)=>{_0x325b2a[_0x5095('0x4c')](_0x5718a6,_0x893fd['config'][_0x5095('0x4b')](_0x5095('0x11')));}),this[_0x5095('0x6d')](_0x325b2a,tt(_0x5095('0x48'),_0x3a153c),(_0x5b37b1,{threadId:_0x1592d8})=>{const _0x386086=this[_0x5095('0x22')]['plugins'][_0x5095('0x4b')](_0x1156c7)[_0x5095('0x55')](_0x1592d8);_0x386086&&_0x386086[_0x5095('0x68')]&&this[_0x5095('0x4e')](_0x1592d8);}),this['listenTo'](_0x325b2a,tt('removeCommentThread',_0x3a153c),(_0x370607,{threadId:_0x12c720})=>{_0x893fd[_0x5095('0x5')][_0x5095('0xc')]({'isUndoable':!0x1},_0x3ff27e=>{const _0x3748a9=this['getAllMarkersForId'](_0x12c720);for(const _0x411c5f of _0x3748a9)_0x3ff27e['removeMarker'](_0x411c5f);});}),this[_0x5095('0x6d')](_0x325b2a,tt(_0x5095('0x27'),_0x3a153c),(_0x318ab5,{threadId:_0x290cf7})=>{(this[_0x5095('0x4e')](_0x290cf7),this[_0x5095('0x5e')](_0x290cf7),this['editor']['editing']['view'][_0x5095('0x41')])&&(this['editor'][_0x5095('0x66')][_0x5095('0x4b')](_0x1156c7)[_0x5095('0x55')](_0x290cf7)[_0x5095('0x50')]||this[_0x5095('0x22')]['editing'][_0x5095('0x12')][_0x5095('0x1f')]());},{'priority':_0x5095('0x18')}),this[_0x5095('0x6d')](_0x325b2a,tt(_0x5095('0x2'),_0x3a153c),(_0x2fd2c1,{threadId:_0x18e0ee})=>{this[_0x5095('0x5e')](_0x18e0ee);},{'priority':_0x5095('0x18')}),this[_0x5095('0x6d')](_0x325b2a,tt(_0x5095('0x71'),_0x3a153c),(_0x3112cc,{threadId:_0x49f04f,isFromAdapter:_0x2ce485})=>{const _0x833a02=this[_0x5095('0x4a')](_0x49f04f);if(_0x2ce485||0x0==_0x833a02[_0x5095('0x60')]||!_0x325b2a['hasCommentThread'](_0x49f04f))return;0x1===_0x325b2a[_0x5095('0x55')](_0x49f04f)[_0x5095('0x60')]&&_0x893fd[_0x5095('0x5')][_0x5095('0xc')]({'isUndoable':!0x1},_0x5ef733=>{for(const _0x3bf45c of _0x833a02)_0x5ef733['updateMarker'](_0x3bf45c,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5095('0x18')}),this['_initializeMarkerConverters'](),this[_0x5095('0x20')]();}[_0x5095('0x40')](){const _0x1c8243=this[_0x5095('0x22')]['plugins'][_0x5095('0x4b')](_0x1156c7),_0x52bee4=this[_0x5095('0x22')]['config'][_0x5095('0x4b')]('collaboration.channelId');for(const _0xb8adbd of _0x1c8243[_0x5095('0x64')]({'channelId':_0x52bee4}))_0x1c8243[_0x5095('0x17')](_0xb8adbd['id']),_0x1c8243[_0x5095('0x43')][_0x5095('0x2c')](_0xb8adbd['id']);super['destroy']();}['hasMarkerForId'](_0xba6e2d){return this[_0x5095('0x4a')](_0xba6e2d)[_0x5095('0x60')]>0x0;}['getAllMarkersForId'](_0x42e47e){const _0xec992b=[];for(const _0x3726ae of this['editor'][_0x5095('0x5')][_0x5095('0x30')])_0x3726ae[_0x5095('0x8')][_0x5095('0x32')](_0x5095('0x45')+_0x42e47e)&&_0xec992b[_0x5095('0x4d')](_0x3726ae);return _0xec992b;}[_0x5095('0x3d')](_0x55f469){const _0x4f799c=this['_getTargetForId'](_0x55f469);_0x4f799c&&setTimeout(()=>{this[_0x5095('0x59')]&&ot(this['activeMarker'])['id']===_0x55f469&&_0x36efa8({'target':_0x4f799c[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x55f98b){this[_0x5095('0x22')][_0x5095('0x5')]['change'](()=>{for(const _0x3b61fd of this['getAllMarkersForId'](_0x55f98b))this['editor']['editing'][_0x5095('0x2f')](_0x3b61fd);});}['_attachResolvedThread'](_0x58c672){const _0x31d2f6=this['editor'][_0x5095('0x66')][_0x5095('0x4b')](_0x1156c7),_0x439bf8=this[_0x5095('0x22')][_0x5095('0x66')][_0x5095('0x4b')](_0x19c92e),_0x579ee9=_0x31d2f6[_0x5095('0x55')](_0x58c672);if(!_0x579ee9['isAttached']){const _0x477074=_0x579ee9['attachTo'](()=>this['_getTargetForId'](_0x579ee9['id']));_0x439bf8['registerAnnotation'](_0x477074),_0x579ee9[_0x5095('0x72')]=!0x1;}}[_0x5095('0x39')](){const _0x20944f=this[_0x5095('0x22')];_0x20944f[_0x5095('0x67')][_0x5095('0x44')]('editingDowncast')[_0x5095('0x23')]({'model':_0x5095('0x6a'),'view':(_0x25f407,_0x110dbc)=>{const {id:_0x89f945}=ot(_0x25f407['markerName']),_0x4a96c6=_0x20944f[_0x5095('0x66')][_0x5095('0x4b')](_0x1156c7)[_0x5095('0x55')](_0x89f945),_0xa4b7c5=this['activeMarker']&&ot(this['activeMarker'])['id']===_0x89f945;if(_0x4a96c6&&_0x4a96c6[_0x5095('0xd')]&&!_0xa4b7c5&&_0x25f407[_0x5095('0x35')])return _0x110dbc[_0x5095('0x1')][_0x5095('0x0')](_0x25f407['item'],'addMarker:'+_0x25f407[_0x5095('0x61')]),_0x110dbc[_0x5095('0x1')][_0x5095('0x0')](_0x25f407[_0x5095('0x35')],'removeMarker:'+_0x25f407['markerName']),{'classes':[]};const _0x1bedcd=['ck-comment-marker'];return _0xa4b7c5&&_0x1bedcd[_0x5095('0x4d')](_0x5095('0x51')),{'classes':_0x1bedcd,'attributes':{'data-comment':_0x89f945}};}}),_0x20944f['conversion'][_0x5095('0x44')](_0x5095('0x1c'))[_0x5095('0x56')]({'model':'comment','view':(_0x2ee138,{options:_0x2d7b26})=>{const _0x184d8d=_0x20944f[_0x5095('0x66')][_0x5095('0x4b')](_0x1156c7),_0x40a25d=_0x20944f[_0x5095('0x5')][_0x5095('0x30')]['get'](_0x2ee138),{id:_0x196e7f,part:_0x7115c1}=ot(_0x2ee138);if(_0x40a25d&&!_0x40a25d[_0x5095('0x4')])return null;if(_0x2d7b26[_0x5095('0x5a')]){const _0x42fce6=_0x184d8d[_0x5095('0x55')](_0x196e7f);if(_0x42fce6&&_0x42fce6[_0x5095('0xd')])return null;}return{'group':_0x5095('0x6a'),'name':_0x7115c1?_0x196e7f+':'+_0x7115c1:_0x196e7f};}}),_0x20944f['conversion']['for'](_0x5095('0x38'))[_0x5095('0x3a')]({'view':{'name':_0x5095('0x6a'),'attributes':{'id':/^\w/}},'model':(_0x3a9d34,{writer:_0x31f82b})=>_0x31f82b['createElement'](_0x5095('0x2b'),{'data-name':'comment:'+_0x3a9d34[_0x5095('0x5d')]('id')})}),_0x20944f[_0x5095('0x67')]['for'](_0x5095('0x38'))['dataToMarker']({'view':_0x5095('0x6a')});}['_handleMarkerAddAndRemove'](){const _0x8f8d1d=this[_0x5095('0x22')],_0x5b1284=_0x8f8d1d[_0x5095('0x66')][_0x5095('0x4b')](_0x1156c7),_0x16e65a=new Set(),_0x1ca806=new Set();_0x8f8d1d[_0x5095('0x5')][_0x5095('0x74')]['registerPostFixer'](_0xb21057=>{let _0x5a38ca=!0x1;for(const {name:_0xd9d965,data:_0x3411b7}of _0x8f8d1d[_0x5095('0x5')][_0x5095('0x74')]['differ'][_0x5095('0x37')]()){const {group:_0x8af498,id:_0x4d8e7c}=ot(_0xd9d965);let _0x17457f=_0x3411b7[_0x5095('0x42')];if(_0x5095('0x6a')!==_0x8af498||!_0x17457f)continue;const _0x4105c8=_0x5095('0x19')===_0x17457f[_0x5095('0x21')][_0x5095('0xb')];_0x4105c8||(_0x17457f=et(_0x17457f,_0x8f8d1d[_0x5095('0x5')]),!_0x17457f||_0x17457f[_0x5095('0x14')]||!_0x3411b7[_0x5095('0x42')]||_0x17457f[_0x5095('0x6')](_0x3411b7['newRange']))?_0x8f8d1d[_0x5095('0x5')]['hasContent'](_0x17457f)&&!_0x4105c8?this[_0x5095('0x69')]?_0x16e65a[_0x5095('0x70')](_0xd9d965):this[_0x5095('0x75')](_0xd9d965,_0x4d8e7c):(_0x1ca806[_0x5095('0x70')](_0xd9d965),_0x16e65a['delete'](_0xd9d965),_0xb21057[_0x5095('0x3e')](_0xd9d965),_0x5a38ca=!0x0):(_0xb21057['updateMarker'](_0xd9d965,{'range':_0x17457f}),_0x5a38ca=!0x0);}return _0x5a38ca;}),this['on']('change:isThreadsLoadingPaused',(_0x3b73d8,_0x3612f5,_0x32fecf)=>{if(!_0x32fecf&&_0x16e65a[_0x5095('0x10')])for(const _0x473d5a of _0x16e65a){const {id:_0x4aae88}=ot(_0x473d5a);_0x16e65a[_0x5095('0x2c')](_0x473d5a),_0x8f8d1d['model'][_0x5095('0x30')]['get'](_0x473d5a)&&this[_0x5095('0x75')](_0x473d5a,_0x4aae88);}}),this[_0x5095('0x6d')](_0x8f8d1d['model'][_0x5095('0x74')],_0x5095('0x25'),(_0x5a646f,_0x38fa69)=>{for(const {name:_0x5e1f95,data:{newRange:_0x2b3383}}of _0x8f8d1d[_0x5095('0x5')][_0x5095('0x74')][_0x5095('0x1b')][_0x5095('0x37')]()){const {group:_0x5b6a20,id:_0x479ab7}=ot(_0x5e1f95);if(_0x5095('0x6a')!==_0x5b6a20)continue;const _0x57b15d=_0x5b1284[_0x5095('0x55')](_0x479ab7),_0x377181=this[_0x5095('0x6f')](_0x479ab7);_0x57b15d&&(_0x57b15d[_0x5095('0x72')]||_0x8f8d1d[_0x5095('0x33')][_0x5095('0x12')][_0x5095('0x2d')]('render',()=>{const _0x3a6580=_0x8f8d1d[_0x5095('0x66')][_0x5095('0x4b')](_0x223d44),_0xbd227=_0x5b1284[_0x5095('0x9')][_0x5095('0x4b')](_0x57b15d)['view'];_0x3a6580['getByInnerView'](_0xbd227)[_0x5095('0x7')]();},{'priority':_0x5095('0x18')}),_0x57b15d[_0x5095('0x72')]=_0x377181||!!_0x2b3383),_0x2b3383||(_0x1ca806[_0x5095('0x70')](_0x5e1f95),_0x16e65a[_0x5095('0x2c')](_0x5e1f95));}if(_0x38fa69[_0x5095('0x1a')])for(const _0x33bdce of _0x1ca806){const {id:_0x1ebbf2}=ot(_0x33bdce),_0x2856a8=_0x5b1284[_0x5095('0x55')](_0x1ebbf2),_0x38c62b=this[_0x5095('0x6f')](_0x1ebbf2);_0x16e65a['delete'](_0x33bdce),!_0x2856a8||_0x38c62b||_0x2856a8[_0x5095('0x50')]||_0x2856a8[_0x5095('0x47')](new Date());}_0x1ca806[_0x5095('0x6c')]();});}[_0x5095('0x49')](_0x2f2aec){const _0x8ff74f=this[_0x5095('0x22')],_0x47009a=this['getAllMarkersForId'](_0x2f2aec);return _0x3dea6e(_0x8ff74f[_0x5095('0x33')],_0x47009a);}[_0x5095('0x31')](_0x5566ed){const _0x24d448=this[_0x5095('0x4a')](_0x5566ed);let _0x53196a='',_0x2c7ce9=!0x1;for(const _0x56e6a3 of _0x24d448){const _0x138a18=_0x56e6a3[_0x5095('0x5f')]();for(const _0x441ee9 of Array[_0x5095('0x5c')](_0x138a18[_0x5095('0x63')]()))_0x441ee9['is']('$textProxy')?(_0x53196a&&_0x2c7ce9&&(_0x53196a+='\x20',_0x2c7ce9=!0x1),_0x53196a+=_0x441ee9['data']):_0x2c7ce9=!0x0;_0x2c7ce9=!0x0;}return _0x53196a[_0x5095('0x6e')](0x0,0x96);}['_attachMarkerToThread'](_0x1cf2ee,_0x482d70){const _0x1539bd=this[_0x5095('0x22')],_0x5c362c=_0x1539bd[_0x5095('0x66')][_0x5095('0x4b')](_0x1156c7);let _0x39d4b3=_0x5c362c[_0x5095('0x55')](_0x482d70);const _0x5e7464=_0x1539bd[_0x5095('0x34')][_0x5095('0x4b')](_0x5095('0x11')),_0xa0d2a7=_0x1539bd['plugins'][_0x5095('0x4b')](_0x19c92e);if(_0x39d4b3&&(_0x39d4b3['unlinkedAt']&&_0x39d4b3[_0x5095('0x47')](null),_0x39d4b3[_0x5095('0x52')]))return _0x39d4b3;return!this[_0x5095('0x4a')](_0x482d70)[0x0][_0x5095('0x2a')]?_0x1539bd['editing']['view']['once']('render',()=>{if(_0x5c362c[_0x5095('0x55')](_0x482d70))return;const _0xa3f0a5=_0x1539bd[_0x5095('0x66')][_0x5095('0x4b')](_0x223d44);_0x39d4b3=_0x5c362c[_0x5095('0x57')]({'channelId':_0x5e7464,'threadId':_0x482d70,'target':()=>this['_getTargetForId'](_0x482d70),'context':{'type':_0x5095('0x3'),'value':this[_0x5095('0x31')](_0x482d70)}});const _0x530617=_0x5c362c[_0x5095('0x9')]['get'](_0x39d4b3)[_0x5095('0x12')],_0x2806b0=_0xa3f0a5[_0x5095('0x36')](_0x530617);_0x2806b0&&_0xa0d2a7[_0x5095('0x62')](_0x2806b0);},{'priority':_0x5095('0x18')}):_0x5c362c[_0x5095('0x15')]({'channelId':_0x5e7464,'threadId':_0x482d70})['then'](_0x5ba12c=>{if(_0x5095('0x6b')!==_0x1539bd[_0x5095('0x24')]){if(_0x39d4b3=_0x5ba12c,_0x39d4b3&&!_0x39d4b3['isAttached']){const _0x1636a9=_0x39d4b3[_0x5095('0x13')](()=>this[_0x5095('0x49')](_0x482d70));_0xa0d2a7['registerAnnotation'](_0x1636a9),_0x39d4b3[_0x5095('0xd')]&&this[_0x5095('0x5e')](_0x482d70);}else{if(!_0x39d4b3){const _0x1d6368=this[_0x5095('0x4a')](_0x482d70);_0x1539bd[_0x5095('0x5')][_0x5095('0x25')](_0x249ed7=>{for(const _0x5e89c1 of _0x1d6368)_0x249ed7[_0x5095('0x3e')](_0x5e89c1);});}}}}),_0x39d4b3;}[_0x5095('0x75')](_0x13c791,_0x29339f){const _0x1d2416=this[_0x5095('0x2e')](_0x13c791,_0x29339f);_0x1d2416&&!_0x1d2416['context']&&_0x1d2416[_0x5095('0x5b')]({'type':_0x5095('0x3'),'value':this[_0x5095('0x31')](_0x29339f)});}['_initAriaMarkerChangeAnnouncements'](){const _0xf1d711=this['editor'];_0x1da77c(_0xf1d711[_0x5095('0x5')],({left:_0x14ea09,entered:_0x40ced6})=>{const _0x2b4a28=[];for(const _0xdfa49 of _0x14ea09)if(rt(_0xdfa49)){_0x2b4a28[_0x5095('0x4d')](_0x279d27(_0xf1d711['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0xe480f3 of _0x40ced6)if(rt(_0xe480f3)){_0x2b4a28[_0x5095('0x4d')](_0x279d27(_0xf1d711[_0x5095('0x3b')],_0x5095('0x73')));break;}_0x2b4a28[_0x5095('0x60')]&&_0xf1d711['ui'][_0x5095('0x16')]['announce']('comments',_0x2b4a28['join']('\x20'));});}}function tt(_0x1b7e2c,_0x914bd1){return _0x914bd1?_0x1b7e2c+':'+_0x914bd1:_0x1b7e2c;}function ot(_0x3adb59){const _0x30910c=_0x3adb59[_0x5095('0x4f')](':');return{'group':_0x30910c[0x0],'id':_0x30910c[0x1],'part':_0x30910c[0x2]};}function et(_0x53a7a8,_0x19e09f){const _0x534143=_0x19e09f[_0x5095('0x26')],_0x24eb40=_0x19e09f[_0x5095('0x29')](_0x53a7a8['start']);for(const _0x199114 of _0x53a7a8[_0x5095('0x1d')]()){const {type:_0x38145d,item:_0x3eac38,nextPosition:_0x2936d9}=_0x199114;if(_0x5095('0x3')===_0x38145d||_0x534143['isObject'](_0x3eac38)){const _0x370a53=_0x19e09f[_0x5095('0xe')](_0x3eac38);_0x24eb40[_0x5095('0x14')]&&(_0x24eb40['start']=_0x370a53),_0x24eb40[_0x5095('0x46')]=_0x2936d9;}}return _0x24eb40;}function rt(_0x577065){return _0x5095('0x6a')===ot(_0x577065[_0x5095('0x8')])[_0x5095('0x3f')];}
|
|
23
|
+
const _0x5ac1=['_handleThreadMarker','hasMarkerForId','addCommentThread','collaboration.channelId','change:activeMarker','addMarker:','editing','root','_detachCommentThread','item','updateMarker','getRange','delete','enqueueChange','$textProxy','text','markers','getWalker','model','getAttribute','scrollToThreadMarker','_attachResolvedThread','_getTargetForId','isResolved','setUnlinkedAt','affectsData','render','dataDowncast','_reconvertMarkers','document','isThreadsLoadingPaused','createRange','attachTo','removeMarker','commands','isObject','destroy','_handleMarkerAddAndRemove','start','once','fetchCommentThread','reconvertMarker','isEqual','switchReadOnly','createPositionBefore','group','change:isReadOnly','set','isCollapsed','hasCommentThread','for','openNewCommentThread','_getTextContext','consume','context','comments','registerAnnotation','upcast','config','archivedAt','getAllMarkersForId','then','conversion','unlinkedAt','_threadToController','getByInnerView','get','addComment','length','_hasTargetInContent','getItems','add','view','push','isAttached','isLocal','differ','getCommentThreads','LEAVE_COMMENT_ANNOUNCEMENT','split','startsWith','schema','low','rootName','markerToData','ariaLiveAnnouncer','removeCommentThread','activeMarker','consumable','setContext','removeMarker:','name','_initAriaMarkerChangeAnnouncements','_attachMarkerToThread','editor','dataToMarker','locale','size','change:isThreadsLoadingPaused','_threads','plugins','data','refreshVisibility','substring','join','change','init','listenTo','CommentsEditing','state','requires','newRange','markerName','announce','comment','editingDowncast','registerPostFixer','getChangedMarkers','getCommentThread','ck-comment-marker--active','$marker'];(function(_0x56fbb8,_0x5ac126){const _0x376a95=function(_0x4e25a2){while(--_0x4e25a2){_0x56fbb8['push'](_0x56fbb8['shift']());}};_0x376a95(++_0x5ac126);}(_0x5ac1,0x1d1));const _0x376a=function(_0x56fbb8,_0x5ac126){_0x56fbb8=_0x56fbb8-0x0;let _0x376a95=_0x5ac1[_0x56fbb8];return _0x376a95;};import{Plugin as _0x1e3676}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x11d671}from'ckeditor5/src/utils';import _0x42654b from'./commentsrepository';import _0x571ea8 from'./addcommentthreadcommand';import{surroundingMarkersDetector as _0x14416c,getAllMarkersDomElementsSorted as _0x80c220}from'ckeditor5-collaboration/src/collaboration-core';import _0x35ced3 from'../annotations/editorannotations';import _0x4d24bd from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x516e72 from'./integrations/importword';import _0x3d77a2 from'../annotations/annotations';import{getTranslation as _0x459d07}from'../utils/common-translations';export default class r extends _0x1e3676{static get[_0x376a('0x8')](){return[_0x42654b,_0x35ced3,_0x4d24bd,_0x516e72];}static get['pluginName'](){return _0x376a('0x6');}constructor(_0x11aa10){super(_0x11aa10),this[_0x376a('0x42')](_0x376a('0x31'),!0x0),_0x11aa10[_0x376a('0x78')]['once']('ready',()=>this[_0x376a('0x31')]=!0x1),this['set']('activeMarker',null),this['on'](_0x376a('0x17'),(_0x48a0a6,_0x3c3329,_0x4a7db3,_0x4e38c0)=>{const _0x3f96f2=_0x4a7db3?ot(_0x4a7db3)['id']:null;if(_0x11aa10[_0x376a('0x25')]['change'](()=>{if(_0x3f96f2){const _0x3c5fef=this['getAllMarkersForId'](_0x3f96f2);for(const _0x32e296 of _0x3c5fef)_0x11aa10['editing'][_0x376a('0x3c')](_0x32e296);}if(_0x4e38c0){const {id:_0x200a90}=ot(_0x4e38c0),_0x2d94c9=this['getAllMarkersForId'](_0x200a90);for(const _0x4f5da2 of _0x2d94c9)_0x11aa10[_0x376a('0x19')]['reconvertMarker'](_0x4f5da2);}}),_0x3f96f2){const _0x470db2=_0x11aa10[_0x376a('0x77')][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0x3f96f2);_0x470db2&&_0x470db2[_0x376a('0x2a')]&&this[_0x376a('0x27')](_0x3f96f2);}}),this['_initAriaMarkerChangeAnnouncements']();}[_0x376a('0x4')](){const _0x79280e=this[_0x376a('0x71')],_0x4c1608=_0x79280e[_0x376a('0x77')]['get'](_0x42654b),_0x464e9b=_0x79280e[_0x376a('0x4d')]['get'](_0x376a('0x16'));_0x79280e[_0x376a('0x35')]['add'](_0x376a('0x15'),new _0x571ea8(_0x79280e)),this[_0x376a('0x5')](_0x79280e,_0x376a('0x41'),(_0x268aec,_0x243a96,_0x5b6dcc)=>{_0x4c1608[_0x376a('0x3e')](_0x5b6dcc,_0x79280e[_0x376a('0x4d')][_0x376a('0x55')]('collaboration.channelId'));}),this[_0x376a('0x5')](_0x4c1608,tt(_0x376a('0x15'),_0x464e9b),(_0x2463d0,{threadId:_0x52c8dd})=>{const _0x184594=this[_0x376a('0x71')][_0x376a('0x77')][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0x52c8dd);_0x184594&&_0x184594[_0x376a('0x4e')]&&this[_0x376a('0x28')](_0x52c8dd);}),this[_0x376a('0x5')](_0x4c1608,tt(_0x376a('0x69'),_0x464e9b),(_0x23f472,{threadId:_0x1ab6fd})=>{_0x79280e['model'][_0x376a('0x20')]({'isUndoable':!0x1},_0x3f75fb=>{const _0x40f761=this[_0x376a('0x4f')](_0x1ab6fd);for(const _0x20d60c of _0x40f761)_0x3f75fb[_0x376a('0x34')](_0x20d60c);});}),this[_0x376a('0x5')](_0x4c1608,tt('resolveCommentThread',_0x464e9b),(_0x1fd5c4,{threadId:_0xdaebaf})=>{(this[_0x376a('0x28')](_0xdaebaf),this['_reconvertMarkers'](_0xdaebaf),this['editor'][_0x376a('0x19')][_0x376a('0x5b')]['hasDomSelection'])&&(this[_0x376a('0x71')]['plugins'][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0xdaebaf)[_0x376a('0x52')]||this[_0x376a('0x71')][_0x376a('0x19')][_0x376a('0x5b')]['focus']());},{'priority':'low'}),this[_0x376a('0x5')](_0x4c1608,tt('reopenCommentThread',_0x464e9b),(_0x38c61f,{threadId:_0x15daa3})=>{this[_0x376a('0x2f')](_0x15daa3);},{'priority':_0x376a('0x65')}),this[_0x376a('0x5')](_0x4c1608,tt(_0x376a('0x56'),_0x464e9b),(_0x435ed5,{threadId:_0x227af7,isFromAdapter:_0x320ba8})=>{const _0x5ecebc=this['getAllMarkersForId'](_0x227af7);if(_0x320ba8||0x0==_0x5ecebc[_0x376a('0x57')]||!_0x4c1608[_0x376a('0x44')](_0x227af7))return;0x1===_0x4c1608[_0x376a('0x10')](_0x227af7)['length']&&_0x79280e['model'][_0x376a('0x20')]({'isUndoable':!0x1},_0x183a32=>{for(const _0x4a29bc of _0x5ecebc)_0x183a32[_0x376a('0x1d')](_0x4a29bc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this[_0x376a('0x38')]();}['destroy'](){const _0x1ead5f=this[_0x376a('0x71')]['plugins'][_0x376a('0x55')](_0x42654b),_0x357a01=this[_0x376a('0x71')][_0x376a('0x4d')][_0x376a('0x55')](_0x376a('0x16'));for(const _0x2cb021 of _0x1ead5f[_0x376a('0x60')]({'channelId':_0x357a01}))_0x1ead5f[_0x376a('0x1b')](_0x2cb021['id']),_0x1ead5f[_0x376a('0x76')][_0x376a('0x1f')](_0x2cb021['id']);super[_0x376a('0x37')]();}[_0x376a('0x14')](_0x35d34f){return this[_0x376a('0x4f')](_0x35d34f)['length']>0x0;}[_0x376a('0x4f')](_0x11af53){const _0x3ba4a3=[];for(const _0x3a8094 of this[_0x376a('0x71')]['model']['markers'])_0x3a8094['name'][_0x376a('0x63')]('comment:'+_0x11af53)&&_0x3ba4a3[_0x376a('0x5c')](_0x3a8094);return _0x3ba4a3;}[_0x376a('0x27')](_0x327b0a){const _0x3d0435=this[_0x376a('0x29')](_0x327b0a);_0x3d0435&&setTimeout(()=>{this[_0x376a('0x6a')]&&ot(this[_0x376a('0x6a')])['id']===_0x327b0a&&_0x11d671({'target':_0x3d0435[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xfe5818){this[_0x376a('0x71')][_0x376a('0x25')][_0x376a('0x3')](()=>{for(const _0x139d03 of this[_0x376a('0x4f')](_0xfe5818))this['editor'][_0x376a('0x19')][_0x376a('0x3c')](_0x139d03);});}['_attachResolvedThread'](_0x15d9f4){const _0x2c8b9a=this[_0x376a('0x71')][_0x376a('0x77')][_0x376a('0x55')](_0x42654b),_0x1ea714=this[_0x376a('0x71')][_0x376a('0x77')][_0x376a('0x55')](_0x35ced3),_0x470175=_0x2c8b9a[_0x376a('0x10')](_0x15d9f4);if(!_0x470175[_0x376a('0x5d')]){const _0x22fe1f=_0x470175['attachTo'](()=>this[_0x376a('0x29')](_0x470175['id']));_0x1ea714['registerAnnotation'](_0x22fe1f),_0x470175[_0x376a('0x58')]=!0x1;}}['_initializeMarkerConverters'](){const _0x4f9f63=this[_0x376a('0x71')];_0x4f9f63['conversion'][_0x376a('0x45')](_0x376a('0xd'))['markerToHighlight']({'model':_0x376a('0xc'),'view':(_0x70050c,_0x4e4c94)=>{const {id:_0x2cf339}=ot(_0x70050c[_0x376a('0xa')]),_0x4f2dec=_0x4f9f63[_0x376a('0x77')][_0x376a('0x55')](_0x42654b)[_0x376a('0x10')](_0x2cf339),_0x41c378=this['activeMarker']&&ot(this[_0x376a('0x6a')])['id']===_0x2cf339;if(_0x4f2dec&&_0x4f2dec[_0x376a('0x2a')]&&!_0x41c378&&_0x70050c['item'])return _0x4e4c94['consumable'][_0x376a('0x48')](_0x70050c[_0x376a('0x1c')],_0x376a('0x18')+_0x70050c['markerName']),_0x4e4c94[_0x376a('0x6b')][_0x376a('0x48')](_0x70050c[_0x376a('0x1c')],_0x376a('0x6d')+_0x70050c['markerName']),{'classes':[]};const _0x48d8f8=['ck-comment-marker'];return _0x41c378&&_0x48d8f8[_0x376a('0x5c')](_0x376a('0x11')),{'classes':_0x48d8f8,'attributes':{'data-comment':_0x2cf339}};}}),_0x4f9f63[_0x376a('0x51')][_0x376a('0x45')](_0x376a('0x2e'))[_0x376a('0x67')]({'model':_0x376a('0xc'),'view':(_0x2fcd88,{options:_0x1e4489})=>{const _0x336543=_0x4f9f63[_0x376a('0x77')][_0x376a('0x55')](_0x42654b),_0x15fe89=_0x4f9f63[_0x376a('0x25')]['markers']['get'](_0x2fcd88),{id:_0x1023ce,part:_0x24ee4a}=ot(_0x2fcd88);if(_0x15fe89&&!_0x15fe89[_0x376a('0x2c')])return null;if(_0x1e4489['ignoreResolvedComments']){const _0x58e38e=_0x336543[_0x376a('0x10')](_0x1023ce);if(_0x58e38e&&_0x58e38e[_0x376a('0x2a')])return null;}return{'group':_0x376a('0xc'),'name':_0x24ee4a?_0x1023ce+':'+_0x24ee4a:_0x1023ce};}}),_0x4f9f63[_0x376a('0x51')][_0x376a('0x45')](_0x376a('0x4c'))['elementToElement']({'view':{'name':_0x376a('0xc'),'attributes':{'id':/^\w/}},'model':(_0xf56158,{writer:_0x204dec})=>_0x204dec['createElement'](_0x376a('0x12'),{'data-name':'comment:'+_0xf56158[_0x376a('0x26')]('id')})}),_0x4f9f63[_0x376a('0x51')][_0x376a('0x45')]('upcast')[_0x376a('0x72')]({'view':_0x376a('0xc')});}[_0x376a('0x38')](){const _0x40d519=this['editor'],_0x5a722d=_0x40d519[_0x376a('0x77')][_0x376a('0x55')](_0x42654b),_0x5dddff=new Set(),_0xec15a=new Set();_0x40d519[_0x376a('0x25')][_0x376a('0x30')][_0x376a('0xe')](_0x423927=>{let _0x53cb3c=!0x1;for(const {name:_0x4a58e5,data:_0xe925e9}of _0x40d519[_0x376a('0x25')][_0x376a('0x30')][_0x376a('0x5f')]['getChangedMarkers']()){const {group:_0x2befb0,id:_0x53d45a}=ot(_0x4a58e5);let _0x51fb2d=_0xe925e9[_0x376a('0x9')];if(_0x376a('0xc')!==_0x2befb0||!_0x51fb2d)continue;const _0xa1ab6f='$graveyard'===_0x51fb2d[_0x376a('0x1a')][_0x376a('0x66')];_0xa1ab6f||(_0x51fb2d=et(_0x51fb2d,_0x40d519[_0x376a('0x25')]),!_0x51fb2d||_0x51fb2d[_0x376a('0x43')]||!_0xe925e9[_0x376a('0x9')]||_0x51fb2d[_0x376a('0x3d')](_0xe925e9['newRange']))?_0x40d519['model']['hasContent'](_0x51fb2d)&&!_0xa1ab6f?this[_0x376a('0x31')]?_0x5dddff['add'](_0x4a58e5):this['_handleThreadMarker'](_0x4a58e5,_0x53d45a):(_0xec15a['add'](_0x4a58e5),_0x5dddff[_0x376a('0x1f')](_0x4a58e5),_0x423927['removeMarker'](_0x4a58e5),_0x53cb3c=!0x0):(_0x423927[_0x376a('0x1d')](_0x4a58e5,{'range':_0x51fb2d}),_0x53cb3c=!0x0);}return _0x53cb3c;}),this['on'](_0x376a('0x75'),(_0x4c0bd1,_0x5e82f7,_0x198a75)=>{if(!_0x198a75&&_0x5dddff[_0x376a('0x74')])for(const _0x5d09cc of _0x5dddff){const {id:_0x5db44b}=ot(_0x5d09cc);_0x5dddff[_0x376a('0x1f')](_0x5d09cc),_0x40d519[_0x376a('0x25')][_0x376a('0x23')][_0x376a('0x55')](_0x5d09cc)&&this[_0x376a('0x13')](_0x5d09cc,_0x5db44b);}}),this[_0x376a('0x5')](_0x40d519[_0x376a('0x25')][_0x376a('0x30')],_0x376a('0x3'),(_0x17cd81,_0xaea202)=>{for(const {name:_0x3771d3,data:{newRange:_0x1d2f9c}}of _0x40d519[_0x376a('0x25')][_0x376a('0x30')][_0x376a('0x5f')][_0x376a('0xf')]()){const {group:_0x4694dd,id:_0x19acbe}=ot(_0x3771d3);if('comment'!==_0x4694dd)continue;const _0xfacc96=_0x5a722d[_0x376a('0x10')](_0x19acbe),_0x1c0127=this[_0x376a('0x14')](_0x19acbe);_0xfacc96&&(_0xfacc96[_0x376a('0x58')]||_0x40d519['editing']['view'][_0x376a('0x3a')](_0x376a('0x2d'),()=>{const _0x25b859=_0x40d519[_0x376a('0x77')][_0x376a('0x55')](_0x3d77a2),_0xfec2c3=_0x5a722d[_0x376a('0x53')][_0x376a('0x55')](_0xfacc96)[_0x376a('0x5b')];_0x25b859[_0x376a('0x54')](_0xfec2c3)[_0x376a('0x0')]();},{'priority':_0x376a('0x65')}),_0xfacc96[_0x376a('0x58')]=_0x1c0127||!!_0x1d2f9c),_0x1d2f9c||(_0xec15a[_0x376a('0x5a')](_0x3771d3),_0x5dddff[_0x376a('0x1f')](_0x3771d3));}if(_0xaea202[_0x376a('0x5e')])for(const _0x346561 of _0xec15a){const {id:_0x593caf}=ot(_0x346561),_0x3d7a9a=_0x5a722d[_0x376a('0x10')](_0x593caf),_0x285468=this[_0x376a('0x14')](_0x593caf);_0x5dddff[_0x376a('0x1f')](_0x346561),!_0x3d7a9a||_0x285468||_0x3d7a9a[_0x376a('0x52')]||_0x3d7a9a[_0x376a('0x2b')](new Date());}_0xec15a['clear']();});}['_getTargetForId'](_0x1ddf8f){const _0x3b3224=this[_0x376a('0x71')],_0x44f55a=this[_0x376a('0x4f')](_0x1ddf8f);return _0x80c220(_0x3b3224[_0x376a('0x19')],_0x44f55a);}[_0x376a('0x47')](_0x359237){const _0x16a715=this[_0x376a('0x4f')](_0x359237);let _0x332b1a='',_0x423eec=!0x1;for(const _0x30b0ce of _0x16a715){const _0x513f7b=_0x30b0ce[_0x376a('0x1e')]();for(const _0x50676b of Array['from'](_0x513f7b[_0x376a('0x59')]()))_0x50676b['is'](_0x376a('0x21'))?(_0x332b1a&&_0x423eec&&(_0x332b1a+='\x20',_0x423eec=!0x1),_0x332b1a+=_0x50676b[_0x376a('0x78')]):_0x423eec=!0x0;_0x423eec=!0x0;}return _0x332b1a[_0x376a('0x1')](0x0,0x96);}[_0x376a('0x70')](_0xd1e7d4,_0x42afe1){const _0x45c225=this[_0x376a('0x71')],_0xfae551=_0x45c225[_0x376a('0x77')][_0x376a('0x55')](_0x42654b);let _0x1c9555=_0xfae551[_0x376a('0x10')](_0x42afe1);const _0x3c56d1=_0x45c225[_0x376a('0x4d')][_0x376a('0x55')]('collaboration.channelId'),_0x55a250=_0x45c225['plugins'][_0x376a('0x55')](_0x35ced3);if(_0x1c9555&&(_0x1c9555['unlinkedAt']&&_0x1c9555['setUnlinkedAt'](null),_0x1c9555['isAttached']))return _0x1c9555;return!this[_0x376a('0x4f')](_0x42afe1)[0x0]['managedUsingOperations']?_0x45c225['editing']['view'][_0x376a('0x3a')](_0x376a('0x2d'),()=>{if(_0xfae551[_0x376a('0x10')](_0x42afe1))return;const _0xbd5b6b=_0x45c225['plugins']['get'](_0x3d77a2);_0x1c9555=_0xfae551[_0x376a('0x46')]({'channelId':_0x3c56d1,'threadId':_0x42afe1,'target':()=>this[_0x376a('0x29')](_0x42afe1),'context':{'type':_0x376a('0x22'),'value':this['_getTextContext'](_0x42afe1)}});const _0x3909e2=_0xfae551[_0x376a('0x53')][_0x376a('0x55')](_0x1c9555)[_0x376a('0x5b')],_0x4c4985=_0xbd5b6b[_0x376a('0x54')](_0x3909e2);_0x4c4985&&_0x55a250[_0x376a('0x4b')](_0x4c4985);},{'priority':_0x376a('0x65')}):_0xfae551[_0x376a('0x3b')]({'channelId':_0x3c56d1,'threadId':_0x42afe1})[_0x376a('0x50')](_0x1b3fd9=>{if('destroyed'!==_0x45c225[_0x376a('0x7')]){if(_0x1c9555=_0x1b3fd9,_0x1c9555&&!_0x1c9555[_0x376a('0x5d')]){const _0x1568c8=_0x1c9555[_0x376a('0x33')](()=>this[_0x376a('0x29')](_0x42afe1));_0x55a250[_0x376a('0x4b')](_0x1568c8),_0x1c9555[_0x376a('0x2a')]&&this[_0x376a('0x2f')](_0x42afe1);}else{if(!_0x1c9555){const _0x5e2d07=this[_0x376a('0x4f')](_0x42afe1);_0x45c225['model'][_0x376a('0x3')](_0x1541ac=>{for(const _0x12edb2 of _0x5e2d07)_0x1541ac[_0x376a('0x34')](_0x12edb2);});}}}}),_0x1c9555;}[_0x376a('0x13')](_0x477a60,_0x15c3b1){const _0x2f9841=this[_0x376a('0x70')](_0x477a60,_0x15c3b1);_0x2f9841&&!_0x2f9841[_0x376a('0x49')]&&_0x2f9841[_0x376a('0x6c')]({'type':_0x376a('0x22'),'value':this['_getTextContext'](_0x15c3b1)});}[_0x376a('0x6f')](){const _0x24a3cf=this[_0x376a('0x71')];_0x14416c(_0x24a3cf['model'],({left:_0x4bccbe,entered:_0x5eb154})=>{const _0x2b2e68=[];for(const _0x2c5294 of _0x4bccbe)if(rt(_0x2c5294)){_0x2b2e68[_0x376a('0x5c')](_0x459d07(_0x24a3cf[_0x376a('0x73')],_0x376a('0x61')));break;}for(const _0x1d606d of _0x5eb154)if(rt(_0x1d606d)){_0x2b2e68[_0x376a('0x5c')](_0x459d07(_0x24a3cf[_0x376a('0x73')],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x2b2e68[_0x376a('0x57')]&&_0x24a3cf['ui'][_0x376a('0x68')][_0x376a('0xb')](_0x376a('0x4a'),_0x2b2e68[_0x376a('0x2')]('\x20'));});}}function tt(_0x240cab,_0xebdd60){return _0xebdd60?_0x240cab+':'+_0xebdd60:_0x240cab;}function ot(_0x4fa8f5){const _0x5d8883=_0x4fa8f5[_0x376a('0x62')](':');return{'group':_0x5d8883[0x0],'id':_0x5d8883[0x1],'part':_0x5d8883[0x2]};}function et(_0x55e127,_0x364252){const _0x437ea6=_0x364252[_0x376a('0x64')],_0x23e083=_0x364252[_0x376a('0x32')](_0x55e127[_0x376a('0x39')]);for(const _0x1a701e of _0x55e127[_0x376a('0x24')]()){const {type:_0x21848c,item:_0x1583e4,nextPosition:_0x55c3fc}=_0x1a701e;if(_0x376a('0x22')===_0x21848c||_0x437ea6[_0x376a('0x36')](_0x1583e4)){const _0x520992=_0x364252[_0x376a('0x3f')](_0x1583e4);_0x23e083[_0x376a('0x43')]&&(_0x23e083[_0x376a('0x39')]=_0x520992),_0x23e083['end']=_0x55c3fc;}}return _0x23e083;}function rt(_0x11d3e3){return _0x376a('0xc')===ot(_0x11d3e3[_0x376a('0x6e')])[_0x376a('0x40')];}
|