@ckeditor/ckeditor5-comments 0.0.0-nightly-20230820.0 → 0.0.0-nightly-20230821.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- 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 _0x3947=['listenTo','focus','length','type','isActive','Esc','_mutationObserver','clientHeight','add','setTemplate','element','render','focusTracker','targetRect','set','destroy','isDirty','div','bindTemplate','height','_updateHeight','ck-rounded-corners','keystrokes','content','ck-annotation-wrapper','attach','mainView','createCollection'];(function(_0x1de24d,_0x394772){const _0x1e96f3=function(_0x2f969f){while(--_0x2f969f){_0x1de24d['push'](_0x1de24d['shift']());}};_0x1e96f3(++_0x394772);}(_0x3947,0xe1));const _0x1e96=function(_0x1de24d,_0x394772){_0x1de24d=_0x1de24d-0x0;let _0x1e96f3=_0x3947[_0x1de24d];return _0x1e96f3;};import{View as _0x59331a}from'ckeditor5/src/ui';import{FocusTracker as _0x2d3d9c,KeystrokeHandler as _0x40afa2,uid as _0x5634f6}from'ckeditor5/src/utils';import _0x344d6d from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x59331a{constructor(_0x4e5bfd,_0x20a04c){super(_0x4e5bfd),this['id']=_0x5634f6(),this[_0x1e96('0xb')]=new _0x2d3d9c(),this['keystrokes']=new _0x40afa2(),this[_0x1e96('0x15')][_0x1e96('0xd')](_0x1e96('0x4'),(_0x1e02d5,_0x1468f1)=>this['fire'](_0x1e96('0x4'),_0x1468f1)),this[_0x1e96('0xd')](_0x1e96('0xc'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x1e96('0x12'),0x0),this[_0x1e96('0xd')]('isActive',!0x1),this[_0x1e96('0xd')](_0x1e96('0xf'),!0x1),this['set'](_0x1e96('0x1'),0x0),this[_0x1e96('0xd')](_0x1e96('0x2'),''),this[_0x1e96('0x5')]=_0x344d6d(()=>this[_0x1e96('0x13')]()),this['content']=this[_0x1e96('0x1a')](),this[_0x1e96('0x16')][_0x1e96('0x7')](_0x20a04c),this[_0x1e96('0x19')]=_0x20a04c;const _0x5cef31=this[_0x1e96('0x11')];this[_0x1e96('0x8')]({'tag':_0x1e96('0x10'),'attributes':{'class':['ck',_0x1e96('0x17'),_0x1e96('0x14'),_0x5cef31['if'](_0x1e96('0x3'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x1e96('0x16')]});}['render'](){super[_0x1e96('0xa')](),this[_0x1e96('0xb')][_0x1e96('0x7')](this[_0x1e96('0x9')]),this[_0x1e96('0x15')][_0x1e96('0x1b')](this[_0x1e96('0x9')]),this[_0x1e96('0x5')][_0x1e96('0x18')](this[_0x1e96('0x9')]);}[_0x1e96('0xe')](){this['content']['clear'](),this[_0x1e96('0x15')]['destroy'](),this[_0x1e96('0xb')]['destroy'](),this[_0x1e96('0x5')]['detach'](),super[_0x1e96('0xe')]();}['focus'](){this[_0x1e96('0x9')][_0x1e96('0x0')]();}['_updateHeight'](){const _0x4a15c2=this[_0x1e96('0x9')][_0x1e96('0x6')];_0x4a15c2&&(this[_0x1e96('0x12')]=_0x4a15c2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39df=['isAnimationDisabled','setTemplate','destroy','detach','createCollection','clear','bind','render','attach','bindTemplate','div','set','_mutationObserver','element','_targetTop','height','content','top','ck-sidebar-item'];(function(_0x267c0e,_0x39dfab){const _0x46cb1e=function(_0x360776){while(--_0x360776){_0x267c0e['push'](_0x267c0e['shift']());}};_0x46cb1e(++_0x39dfab);}(_0x39df,0x105));const _0x46cb=function(_0x267c0e,_0x39dfab){_0x267c0e=_0x267c0e-0x0;let _0x46cb1e=_0x39df[_0x267c0e];return _0x46cb1e;};import{View as _0x18cee5}from'ckeditor5/src/ui';import{toUnit as _0x13ac4b}from'ckeditor5/src/utils';import _0x690b1e from'../../utils/createmutationobserver';const At=_0x13ac4b('px');export default class C extends _0x18cee5{constructor(_0x25485e){super(_0x25485e),this[_0x46cb('0x10')](_0x46cb('0x3'),0x0),this[_0x46cb('0x10')](_0x46cb('0x1'),0x0),this[_0x46cb('0xb')]('bottom')['to'](this,_0x46cb('0x3'),this,_0x46cb('0x1'),(_0x54a65b,_0x47f5c9)=>_0x54a65b+_0x47f5c9),this[_0x46cb('0x10')](_0x46cb('0x5'),!0x1),this[_0x46cb('0x11')]=_0x690b1e(()=>this['updateHeight']()),this[_0x46cb('0x0')]=null,this[_0x46cb('0x2')]=this[_0x46cb('0x9')]();const _0xe3cfd6=this[_0x46cb('0xe')];this[_0x46cb('0x6')]({'tag':_0x46cb('0xf'),'attributes':{'class':[_0x46cb('0x4'),_0xe3cfd6['to'](_0x46cb('0x5'),_0x2c32b2=>_0x2c32b2?'ck-sidebar-item--no-animation':'')],'style':{'top':_0xe3cfd6['to']('top',_0x2ce72d=>At(_0x2ce72d))}},'children':this[_0x46cb('0x2')]});}[_0x46cb('0xc')](){super[_0x46cb('0xc')](),this['_mutationObserver'][_0x46cb('0xd')](this[_0x46cb('0x12')]);}['updateHeight'](){const _0x4fc17a=this['element']['clientHeight'];_0x4fc17a&&(this[_0x46cb('0x1')]=_0x4fc17a);}[_0x46cb('0x7')](){this[_0x46cb('0x2')][_0x46cb('0xa')](),this['_mutationObserver'][_0x46cb('0x8')](),super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x214b=['class','set','ck-sidebar','minHeight','createCollection','list','div','ck-reset'];(function(_0x269f57,_0x214b5d){const _0x54e332=function(_0x569975){while(--_0x569975){_0x269f57['push'](_0x269f57['shift']());}};_0x54e332(++_0x214b5d);}(_0x214b,0x106));const _0x54e3=function(_0x269f57,_0x214b5d){_0x269f57=_0x269f57-0x0;let _0x54e332=_0x214b[_0x269f57];return _0x54e332;};import{View as _0x1b380d}from'ckeditor5/src/ui';import{toUnit as _0x1d0d06}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x1d0d06('px');export default class T extends _0x1b380d{constructor(_0x264f3e){super(_0x264f3e);const _0x46ca84=this['bindTemplate'];this[_0x54e3('0x3')](_0x54e3('0x5'),0x0),this['set'](_0x54e3('0x2'),''),this['list']=this[_0x54e3('0x6')](),this['setTemplate']({'tag':_0x54e3('0x0'),'attributes':{'class':['ck',_0x54e3('0x4'),_0x54e3('0x1'),_0x46ca84['to'](_0x54e3('0x2'))],'style':{'minHeight':_0x46ca84['to'](_0x54e3('0x5'),_0x355538=>'number'==typeof _0x355538?At(_0x355538+0xa):null)}},'children':this[_0x54e3('0x7')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4365=['plugins','high','activeAnnotation','_refreshPositioningDebounced','ck-sidebar--wide','context','isAttached','widesidebar-attach-already-attached','refresh','set:container','pluginName','switchTo','stop','editors','detach','container','removeEventListener','get','set','has','_activeAnnotation','register','rearrange','hasDomSelection','destroy','attach','_annotations','setActiveAnnotation','cancel','init','from','annotations','WideSidebar','requires','updateTargetRect','resize','EditorAnnotations','remove','add','stopListening','ready','listenTo','_editorAnnotations','_detachFromContainer','refreshPositioning','widesidebar-detach-not-attached','_integrateWithEditorAnnotations','change:container','focus','_destroyEditorAnnotationsIntegration','off','blur'];(function(_0x4cc07c,_0x4365f6){const _0xa1d2f2=function(_0x233c7e){while(--_0x233c7e){_0x4cc07c['push'](_0x4cc07c['shift']());}};_0xa1d2f2(++_0x4365f6);}(_0x4365,0x1a6));const _0xa1d2=function(_0x4cc07c,_0x4365f6){_0x4cc07c=_0x4cc07c-0x0;let _0xa1d2f2=_0x4365[_0x4cc07c];return _0xa1d2f2;};import{ContextPlugin as _0x214788,Context as _0x290266}from'ckeditor5/src/core';import _0x1c5a5e from'./annotationsuis';import _0x120410 from'./sidebar';import{CKEditorError as _0x2140ff,Collection as _0x30f8a6}from'ckeditor5/src/utils';import{debounce as _0x195bd5}from'lodash-es';import _0x32c350 from'./editorannotations';export default class i extends _0x214788{static get[_0xa1d2('0x1b')](){return[_0x120410,_0x1c5a5e];}static get[_0xa1d2('0x4')](){return _0xa1d2('0x1a');}constructor(_0x1da18d){super(_0x1da18d),this[_0xa1d2('0x0')]=!0x1,this[_0xa1d2('0xc')](_0xa1d2('0x30'),null),this[_0xa1d2('0x19')]=null,this[_0xa1d2('0x24')]=new _0x30f8a6(),this[_0xa1d2('0x31')]=_0x195bd5(()=>{this[_0xa1d2('0x19')][_0xa1d2('0x26')]();},0xfa,{'leading':!0x1});}[_0xa1d2('0x17')](){const _0x3be49e=this[_0xa1d2('0x33')][_0xa1d2('0x2e')][_0xa1d2('0xb')](_0x1c5a5e),_0x3557a3=this['context'][_0xa1d2('0x2e')][_0xa1d2('0xb')](_0x120410);_0x3be49e[_0xa1d2('0xf')]('wideSidebar',this),_0x3557a3[_0xa1d2('0x9')]&&_0x3be49e[_0xa1d2('0x5')]('wideSidebar');}[_0xa1d2('0x15')](_0x419b9c){if(_0x419b9c===this[_0xa1d2('0x30')])return;const _0x5098ae=this[_0xa1d2('0x33')][_0xa1d2('0x2e')][_0xa1d2('0xb')](_0x120410);_0x5098ae[_0xa1d2('0xe')]=_0x419b9c;const _0x11606b=this['activeAnnotation'];this['activeAnnotation']=_0x419b9c,_0x5098ae[_0xa1d2('0x2')]({'blurredAnnotation':_0x11606b,'activatedAnnotation':this[_0xa1d2('0x30')]});}[_0xa1d2('0x13')](_0x11c998){this[_0xa1d2('0x19')]=_0x11c998;const _0x209b79=this[_0xa1d2('0x33')][_0xa1d2('0x2e')][_0xa1d2('0xb')](_0x120410);if(_0x209b79[_0xa1d2('0x14')]=_0x11c998,this[_0xa1d2('0x0')])throw new _0x2140ff(_0xa1d2('0x1'),this);this[_0xa1d2('0x0')]=!0x0,this[_0xa1d2('0x23')](_0x209b79,_0xa1d2('0x3'),()=>{this[_0xa1d2('0x8')](),this[_0xa1d2('0x23')](_0x209b79,_0xa1d2('0x29'),_0x432a91=>{_0x432a91[_0xa1d2('0x2c')](),this[_0xa1d2('0x13')](_0x11c998);});}),_0x209b79['_attachToContainer']({'viewClass':_0xa1d2('0x32')});const _0xc4fc4f=_0x59672b=>{_0x59672b[_0xa1d2('0x1c')](),_0x209b79['addAnnotation'](_0x59672b);};for(const _0x504f25 of _0x11c998)_0xc4fc4f(_0x504f25);this[_0xa1d2('0x23')](_0x11c998,_0xa1d2('0x20'),(_0x37a651,_0x592a8b)=>{_0xc4fc4f(_0x592a8b);}),this['listenTo'](_0x11c998,_0xa1d2('0x1f'),(_0x391d39,_0x3f14fa,_0x41e12a)=>{_0x209b79[_0xa1d2('0x10')]({'removedAnnotation':_0x3f14fa,'previousAnnotation':_0x11c998['get'](_0x41e12a-0x1),'nextAnnotation':_0x11c998['get'](_0x41e12a+0x1)}),_0x3f14fa===this[_0xa1d2('0x30')]&&this[_0xa1d2('0x15')](null);},{'priority':_0xa1d2('0x2f')}),this[_0xa1d2('0x23')](_0x11c998,_0xa1d2('0x2a'),(_0x4316e3,_0x43e083)=>{this['setActiveAnnotation'](_0x43e083);}),this[_0xa1d2('0x23')](_0x11c998,_0xa1d2('0x2d'),()=>{this['setActiveAnnotation'](null);});const _0x5e5d3c=this[_0xa1d2('0x33')]instanceof _0x290266?this[_0xa1d2('0x33')][_0xa1d2('0x7')]:new _0x30f8a6([this[_0xa1d2('0x33')]]);for(const _0x506089 of _0x5e5d3c)this['_integrateWithEditorAnnotations'](_0x506089);this[_0xa1d2('0x23')](_0x5e5d3c,_0xa1d2('0x20'),(_0x206d02,_0x1c4599)=>{this[_0xa1d2('0x23')](_0x1c4599,_0xa1d2('0x22'),()=>{this[_0xa1d2('0x28')](_0x1c4599);});}),this[_0xa1d2('0x23')](_0x5e5d3c,'remove',(_0x2aba21,_0x5926da)=>{_0x5926da['plugins'][_0xa1d2('0xd')](_0xa1d2('0x1e'))&&this[_0xa1d2('0x2b')](_0x5926da[_0xa1d2('0x2e')][_0xa1d2('0xb')](_0xa1d2('0x1e')));}),window['addEventListener'](_0xa1d2('0x1d'),this[_0xa1d2('0x31')]),this[_0xa1d2('0x19')][_0xa1d2('0x26')]();}[_0xa1d2('0x8')](){if(!this['isAttached'])throw new _0x2140ff(_0xa1d2('0x27'),this);this[_0xa1d2('0x15')](null);const _0x588c20=this[_0xa1d2('0x33')][_0xa1d2('0x2e')]['get'](_0x120410);_0x588c20[_0xa1d2('0x25')](this[_0xa1d2('0x19')]),this[_0xa1d2('0x21')](_0x588c20),this[_0xa1d2('0x21')](this[_0xa1d2('0x19')]),this['context']instanceof _0x290266&&this['stopListening'](this['context'][_0xa1d2('0x7')]);for(const _0x33f75b of Array[_0xa1d2('0x18')](this[_0xa1d2('0x24')]))this['_destroyEditorAnnotationsIntegration'](_0x33f75b);window[_0xa1d2('0xa')]('resize',this[_0xa1d2('0x31')]),this[_0xa1d2('0x31')][_0xa1d2('0x16')](),this[_0xa1d2('0x30')]=null,this[_0xa1d2('0x0')]=!0x1,this['annotations']=null;}[_0xa1d2('0x12')](){this['isAttached']&&this[_0xa1d2('0x8')]();}[_0xa1d2('0x28')](_0x346d4e){const _0x40780e=_0x346d4e[_0xa1d2('0x2e')]['get'](_0x32c350);if(!_0x40780e)return;const _0x4560ad=()=>{const _0x4f7581=_0x40780e['getOrderedSelectedAnnotations']({'annotations':this[_0xa1d2('0x19')],'activeAnnotation':this[_0xa1d2('0x30')]});this['setActiveAnnotation'](_0x4f7581[0x0]||null);};this['listenTo'](_0x40780e,_0xa1d2('0x2'),_0x4560ad),this[_0xa1d2('0x23')](_0x40780e,_0xa1d2('0x2d'),(_0x4bd4d9,{isAnnotationTracked:_0x38443e})=>{this[_0xa1d2('0x30')]&&_0x38443e(this[_0xa1d2('0x30')])&&this[_0xa1d2('0x15')](null);}),this[_0xa1d2('0x23')](_0x40780e,'uiUpdate',()=>{this[_0xa1d2('0x31')]();}),this[_0xa1d2('0x23')](this[_0xa1d2('0x19')],_0xa1d2('0x2d'),_0x329687=>{_0x40780e[_0xa1d2('0x11')]()&&(_0x4560ad(),_0x329687[_0xa1d2('0x6')]());},{'priority':_0xa1d2('0x2f')}),this['_editorAnnotations'][_0xa1d2('0x20')](_0x40780e);}[_0xa1d2('0x2b')](_0x2ed988){this[_0xa1d2('0x21')](_0x2ed988),this[_0xa1d2('0x24')][_0xa1d2('0x1f')](_0x2ed988);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ed2=['backward','comment:','getRanges','substr','selection','editor','model','_itemIsContent','element','tableCell','_trimToContent','_hasContent','getLastMatchingPosition','refresh','end','start','schema','isEnabled','createRange','document','isObject'];(function(_0x310b2c,_0x4ed204){const _0xdbaf8b=function(_0x1290c0){while(--_0x1290c0){_0x310b2c['push'](_0x310b2c['shift']());}};_0xdbaf8b(++_0x4ed204);}(_0x4ed2,0x132));const _0xdbaf=function(_0x310b2c,_0x4ed204){_0x310b2c=_0x310b2c-0x0;let _0xdbaf8b=_0x4ed2[_0x310b2c];return _0xdbaf8b;};import{Command as _0x1ac326}from'ckeditor5/src/core';import{uid as _0x5d71af}from'ckeditor5/src/utils';export default class q extends _0x1ac326{[_0xdbaf('0x1')](){const _0x4c11e6=this[_0xdbaf('0xe')]['model'][_0xdbaf('0x7')][_0xdbaf('0xd')];for(const _0x445c3d of _0x4c11e6[_0xdbaf('0xb')]())if(this[_0xdbaf('0x14')](_0x445c3d))return void(this[_0xdbaf('0x5')]=!0x0);this[_0xdbaf('0x5')]=!0x1;}['execute']({threadId:_0x1109e7=_0x5d71af()}={}){const _0x494d48=this[_0xdbaf('0xe')][_0xdbaf('0xf')],_0x4615f0=[];for(const _0x554933 of _0x494d48[_0xdbaf('0x7')][_0xdbaf('0xd')][_0xdbaf('0xb')]())this[_0xdbaf('0x14')](_0x554933)&&_0x4615f0['push'](this[_0xdbaf('0x13')](_0x554933));_0x494d48['change'](_0x4ad469=>{for(const _0x4d1d22 of _0x4615f0){const _0x25537f=_0x5d71af()[_0xdbaf('0xc')](0x1,0x5),_0x25961a=_0xdbaf('0xa')+_0x1109e7+':'+_0x25537f;_0x4ad469['addMarker'](_0x25961a,{'range':_0x4d1d22,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0xdbaf('0x14')](_0x4b490e){for(const _0x3b8554 of _0x4b490e['getItems']())if(this['_itemIsContent'](_0x3b8554))return!0x0;return!0x1;}[_0xdbaf('0x10')](_0x187df1){return _0x187df1['is']('$textProxy')||this[_0xdbaf('0xe')]['model'][_0xdbaf('0x4')][_0xdbaf('0x8')](_0x187df1)&&!_0x187df1['is'](_0xdbaf('0x11'),_0xdbaf('0x12'));}[_0xdbaf('0x13')](_0x119d73){const _0x4ddd47=_0xf81e82=>!this[_0xdbaf('0x10')](_0xf81e82['item']),_0x557238=_0x119d73[_0xdbaf('0x3')][_0xdbaf('0x0')](_0x4ddd47),_0x4bd83c=_0x119d73[_0xdbaf('0x2')]['getLastMatchingPosition'](_0x4ddd47,{'direction':_0xdbaf('0x9')});return this['editor']['model'][_0xdbaf('0x6')](_0x557238,_0x4bd83c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20c6=['highest','activate','add','requires','resolvedAt','listenTo','_calculatePosition','context','CommentsArchive','getCommentThread','init','isActive','has','focus','resolveCommentThread','pluginName','collection','resolvedThreads','get','remove','plugins','removeCommentThread'];(function(_0x3a42b4,_0x20c69b){const _0xfaab3c=function(_0x39b743){while(--_0x39b743){_0x3a42b4['push'](_0x3a42b4['shift']());}};_0xfaab3c(++_0x20c69b);}(_0x20c6,0x73));const _0xfaab=function(_0x3a42b4,_0x20c69b){_0x3a42b4=_0x3a42b4-0x0;let _0xfaab3c=_0x20c6[_0x3a42b4];return _0xfaab3c;};import{ContextPlugin as _0x13768}from'ckeditor5/src/core';import{Collection as _0x584725}from'ckeditor5/src/utils';import _0x3afc90 from'./commentsrepository';import _0x20e8e5 from'../annotations/annotations';export default class p extends _0x13768{static get[_0xfaab('0xa')](){return _0xfaab('0x3');}static get[_0xfaab('0x14')](){return[_0x3afc90,_0x20e8e5];}constructor(_0x114a7c){super(_0x114a7c),this['resolvedThreads']=new _0x584725();}[_0xfaab('0x5')](){const _0x47059e=this[_0xfaab('0x2')],_0x3edc2f=_0x47059e[_0xfaab('0xf')][_0xfaab('0xd')](_0x3afc90),_0x518db0=_0x47059e[_0xfaab('0xf')][_0xfaab('0xd')](_0x20e8e5);this[_0xfaab('0x0')](_0x3edc2f,'addCommentThread',(_0x3b240c,{threadId:_0x342776,resolvedAt:_0x1680a9,deletedAt:_0x4a8600})=>{if(_0x1680a9&&!_0x4a8600){const _0x37dfcf=_0x3edc2f[_0xfaab('0x4')](_0x342776);this[_0xfaab('0xc')][_0xfaab('0x13')](_0x37dfcf,this[_0xfaab('0x1')](_0x1680a9));}}),this['listenTo'](_0x3edc2f,_0xfaab('0x9'),(_0x388251,{threadId:_0x10b1ef,resolvedAt:_0x26cac4})=>{const _0x4f053e=_0x3edc2f[_0xfaab('0x4')](_0x10b1ef);this[_0xfaab('0xc')][_0xfaab('0x13')](_0x4f053e,this[_0xfaab('0x1')](_0x26cac4));},{'priority':'highest'}),this[_0xfaab('0x0')](_0x3edc2f,'reopenCommentThread',(_0x34d65a,{threadId:_0x51cdf1})=>{const _0x88a527=_0x3edc2f['getCommentThread'](_0x51cdf1);this[_0xfaab('0xc')][_0xfaab('0x7')](_0x88a527)&&this[_0xfaab('0xc')][_0xfaab('0xe')](_0x88a527);},{'priority':_0xfaab('0x11')}),this[_0xfaab('0x0')](_0x3edc2f,_0xfaab('0x10'),(_0x48983a,{threadId:_0x306a99})=>{const _0x339d4d=_0x3edc2f[_0xfaab('0x4')](_0x306a99);this['resolvedThreads'][_0xfaab('0x7')](_0x339d4d)&&this[_0xfaab('0xc')][_0xfaab('0xe')](_0x339d4d);},{'priority':_0xfaab('0x11')}),this[_0xfaab('0x0')](_0x518db0[_0xfaab('0xb')],_0xfaab('0x8'),(_0x257600,_0x10a44e)=>{_0x10a44e[_0xfaab('0x6')]=!0x0,_0x518db0[_0xfaab('0x12')](_0x10a44e);});}[_0xfaab('0x1')](_0x3cd917){const _0x598eec=[...this['resolvedThreads']]['findIndex'](_0x178c8b=>_0x178c8b[_0xfaab('0x15')]<_0x3cd917);return _0x598eec>-0x1?_0x598eec:this['resolvedThreads']['length'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4803=['stopListening','ck-comments-archive-dropdown','requires','editor','listenTo','filter','add','extendTemplate','Annotations','remove','indexOf','CommentsRepository','panelView','ck-body','channelId','CommentsArchiveUI','resolvedAt','getByInnerView','_handleAnnotationFocusableElements','contains','_createArchiveUIDropdown','innerView','position','findIndex','_pendingThreads','collaboration.channelId','view','push','annotationViews','_visibleAnnotations','set','commentsArchive','change:isOpen','COMMENTS_ARCHIVE','config','commentsArchiveView','get','splice','collection','locale','focusableElements','focusTracker','resolvedThreads','_calculatePosition','plugins','classList','mainView','_threadToController','buttonView'];(function(_0x3ab1cb,_0x480372){const _0x5920b7=function(_0x1e9df8){while(--_0x1e9df8){_0x3ab1cb['push'](_0x3ab1cb['shift']());}};_0x5920b7(++_0x480372);}(_0x4803,0x15a));const _0x5920=function(_0x3ab1cb,_0x480372){_0x3ab1cb=_0x3ab1cb-0x0;let _0x5920b7=_0x4803[_0x3ab1cb];return _0x5920b7;};import'../../theme/commentsarchive.css';import{Plugin as _0x780525}from'ckeditor5/src/core';import{createDropdown as _0x3f6d1d,ViewCollection as _0x58fa18}from'ckeditor5/src/ui';import _0x1ffdb3 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x5a0093}from'../utils/common-translations';import _0x970b2d from'./ui/view/commentsarchiveview';import _0x4878dd from'./commentsarchive';export default class a extends _0x780525{static get['pluginName'](){return _0x5920('0xc');}static get[_0x5920('0x30')](){return[_0x4878dd];}constructor(_0x1d262f){super(_0x1d262f),this[_0x5920('0x19')]=new _0x58fa18(),this[_0x5920('0x15')]=[];}['init'](){this['editor']['ui']['componentFactory']['add'](_0x5920('0x1c'),()=>this[_0x5920('0x11')]());const _0x5b6c97=this[_0x5920('0x0')][_0x5920('0x29')][_0x5920('0x21')](_0x4878dd),_0x1fb2a1=this[_0x5920('0x0')][_0x5920('0x29')]['get'](_0x5920('0x5')),_0x3b8519=this[_0x5920('0x0')][_0x5920('0x29')][_0x5920('0x21')](_0x5920('0x8'));this['listenTo'](_0x5b6c97[_0x5920('0x27')],_0x5920('0x3'),(_0x2bd0bb,_0x303a99)=>{const _0x54a200=this[_0x5920('0x0')][_0x5920('0x1f')][_0x5920('0x21')](_0x5920('0x16'));if(!_0x54a200||_0x303a99[_0x5920('0xb')]===_0x54a200){const _0x507cc6=this[_0x5920('0x28')](_0x303a99[_0x5920('0xd')]),_0x1f20b1=_0x3b8519['_threadToController']['get'](_0x303a99);if(!_0x1f20b1)return void this[_0x5920('0x15')][_0x5920('0x18')]({'thread':_0x303a99,'position':_0x507cc6});const _0x401bec=_0x1fb2a1[_0x5920('0xe')](_0x1f20b1[_0x5920('0x17')]);_0x401bec['isVisible']&&_0x1fb2a1[_0x5920('0x1a')]['remove'](_0x401bec),this['annotationViews']['add'](_0x401bec[_0x5920('0x17')],_0x507cc6);}}),this['listenTo'](_0x1fb2a1[_0x5920('0x23')],_0x5920('0x3'),(_0x103255,_0x405d0d)=>{const _0x2f176b=this['_pendingThreads']['find'](({thread:_0x3f9c9e})=>{const _0xf76e7=_0x3b8519[_0x5920('0x2c')][_0x5920('0x21')](_0x3f9c9e);return _0xf76e7&&_0x405d0d[_0x5920('0x12')]===_0xf76e7[_0x5920('0x17')];});_0x2f176b&&(this[_0x5920('0x19')][_0x5920('0x3')](_0x405d0d[_0x5920('0x17')],_0x2f176b[_0x5920('0x13')]),this[_0x5920('0x15')][_0x5920('0x22')](this['_pendingThreads'][_0x5920('0x7')](_0x2f176b),0x1));}),this[_0x5920('0x1')](_0x5b6c97[_0x5920('0x27')],_0x5920('0x6'),(_0x1c62d6,_0x92b586)=>{const _0x29e7dc=this[_0x5920('0x0')][_0x5920('0x1f')][_0x5920('0x21')](_0x5920('0x16'));if(!_0x29e7dc||_0x92b586['channelId']===_0x29e7dc){const _0x18cc95=_0x3b8519[_0x5920('0x2c')][_0x5920('0x21')](_0x92b586),_0x2d5a1b=_0x1fb2a1[_0x5920('0xe')](_0x18cc95['view']);this[_0x5920('0x19')]['remove'](_0x2d5a1b[_0x5920('0x17')]),this[_0x5920('0x2e')](_0x2d5a1b[_0x5920('0x25')]);}});}[_0x5920('0xf')](_0x4139ed,_0x5c04b5){for(const _0x46a902 of _0x5c04b5[_0x5920('0x25')])_0x46a902[_0x5920('0x2a')][_0x5920('0x10')](_0x5920('0xa'))&&_0x4139ed[_0x5920('0x26')][_0x5920('0x3')](_0x46a902);this['listenTo'](_0x5c04b5[_0x5920('0x25')],_0x5920('0x3'),(_0x4fee8a,_0x19c769)=>{_0x19c769[_0x5920('0x2a')][_0x5920('0x10')](_0x5920('0xa'))&&_0x4139ed[_0x5920('0x26')][_0x5920('0x3')](_0x19c769);}),this['listenTo'](_0x5c04b5[_0x5920('0x25')],_0x5920('0x6'),(_0x38d30c,_0x310ffd)=>{_0x310ffd['classList'][_0x5920('0x10')](_0x5920('0xa'))&&_0x4139ed['focusTracker'][_0x5920('0x6')](_0x310ffd);});}[_0x5920('0x28')](_0x599ee9){const _0x1970aa=this['editor']['config'][_0x5920('0x21')](_0x5920('0x16')),_0x863075=[...this[_0x5920('0x0')]['plugins']['get'](_0x4878dd)['resolvedThreads']][_0x5920('0x2')](_0x44db85=>_0x44db85[_0x5920('0xb')]!==_0x1970aa)[_0x5920('0x14')](_0x4f5bc3=>_0x4f5bc3[_0x5920('0xd')]<_0x599ee9);return _0x863075>-0x1?_0x863075:this['annotationViews']['length'];}[_0x5920('0x11')](){const _0x2706ad=this['editor'],_0x328e87=this[_0x5920('0x0')][_0x5920('0x29')][_0x5920('0x21')](_0x5920('0x5')),_0x50b163=_0x3f6d1d(_0x2706ad[_0x5920('0x24')]);_0x50b163[_0x5920('0x2d')][_0x5920('0x1b')]({'icon':_0x1ffdb3,'label':_0x5a0093(_0x2706ad[_0x5920('0x24')],_0x5920('0x1e')),'tooltip':!0x0}),_0x50b163[_0x5920('0x9')][_0x5920('0x4')]({'attributes':{'class':_0x5920('0x2f')}}),_0x50b163['on'](_0x5920('0x1d'),(_0x435f9f,_0x9dcf19,_0x26eefe)=>{this['commentsArchiveView']||(this[_0x5920('0x20')]=new _0x970b2d(_0x2706ad[_0x5920('0x24')],this[_0x5920('0x19')])),_0x26eefe?_0x50b163['panelView']['children'][_0x5920('0x3')](this[_0x5920('0x20')]):_0x50b163[_0x5920('0x9')]['children']['remove'](this['commentsArchiveView']);});for(const _0x4e6fac of this[_0x5920('0x19')]){const _0x18bd8e=_0x328e87[_0x5920('0xe')](_0x4e6fac[_0x5920('0x2b')]);this[_0x5920('0xf')](_0x50b163,_0x18bd8e);}return _0x50b163[_0x5920('0x1')](this[_0x5920('0x19')],'add',(_0x19f159,_0x547701)=>{const _0xbc8123=_0x328e87[_0x5920('0xe')](_0x547701[_0x5920('0x2b')]);this[_0x5920('0xf')](_0x50b163,_0xbc8123);}),_0x50b163['listenTo'](this[_0x5920('0x19')],_0x5920('0x6'),(_0x3565f9,_0x428d54)=>{const _0x2ef635=_0x328e87[_0x5920('0xe')](_0x428d54[_0x5920('0x2b')]);for(const _0x5ec431 of _0x2ef635[_0x5920('0x25')])_0x5ec431[_0x5920('0x2a')]['contains'](_0x5920('0xa'))&&_0x50b163['focusTracker']['remove'](_0x5ec431);}),_0x50b163;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x35a5=['filter','push','context','model','low','$graveyard','end','text','change','_attachResolvedThread','ck-comment-marker--active','getItems','isThreadsLoadingPaused','markerToData','split','isObject','has','attachTo','$textProxy','ready','delete','getRange','add','length','document','consume','_autoResolvedThreads','resolve','focus','high','requires','getChangedMarkers','upcast','render','hasDomSelection','switchReadOnly','editing','change:isReadOnly','_detachCommentThread','newRange','scrollToThreadMarker','state','consumable','once','markerToHighlight','rootName','_getTargetForId','getAllMarkersForId','fetchCommentThread','openNewCommentThread','clear','_getTextContext','registerPostFixer','start','_hasTargetInContent','isCollapsed','_reconvertMarkers','markerName','isEqual','commands','addCommentThread','getAttribute','updateMarker','_removedThread','destroyed','_attachMarkerToThread','$marker','editor','setContext','_handleThreadMarker','item','enqueueChange','dataToMarker','plugins','removeCommentThread','_threadToController','addComment','getByInnerView','ck-comment-marker','ignoreResolvedComments','_attachedThreads','activeMarker','hasMarkerForId','createPositionBefore','affectsData','config','view','hasContent','isResolved','init','change:activeMarker','dataDowncast','collaboration.channelId','comment','change:isThreadsLoadingPaused','reconvertMarker','from','_initializeMarkerConverters','markers','differ','set','map','getCommentThread','removeMarker','editingDowncast','for','schema','_threads','isLocal','addMarker:','resolveCommentThread','data','getWalker','listenTo','createElement','reopen','_handleMarkerAddAndRemove','getCommentThreads','root','registerAnnotation','get'];(function(_0x307056,_0x35a586){const _0x5d2ae8=function(_0x1fef82){while(--_0x1fef82){_0x307056['push'](_0x307056['shift']());}};_0x5d2ae8(++_0x35a586);}(_0x35a5,0x12f));const _0x5d2a=function(_0x307056,_0x35a586){_0x307056=_0x307056-0x0;let _0x5d2ae8=_0x35a5[_0x307056];return _0x5d2ae8;};import{Plugin as _0x2bdc9c}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0xbaaaca}from'ckeditor5/src/utils';import _0x3ad7a2 from'./commentsrepository';import _0x3f8346 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x3323a4}from'ckeditor5-collaboration/src/collaboration-core';import _0x5ba2c3 from'../annotations/editorannotations';import _0x42434c from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x2e6800 from'./integrations/importword';import _0x5c0783 from'../annotations/annotations';export default class r extends _0x2bdc9c{static get[_0x5d2a('0x5a')](){return[_0x3ad7a2,_0x5ba2c3,_0x42434c,_0x2e6800];}static get['pluginName'](){return'CommentsEditing';}constructor(_0x3c407e){super(_0x3c407e),this[_0x5d2a('0x2')]=null,this[_0x5d2a('0x56')]=new Set(),this[_0x5d2a('0x27')](_0x5d2a('0x48'),!0x0),_0x3c407e['data'][_0x5d2a('0x67')](_0x5d2a('0x4f'),()=>this['isThreadsLoadingPaused']=!0x1),this[_0x5d2a('0x27')](_0x5d2a('0x14'),null),this['on'](_0x5d2a('0x1d'),(_0x27860d,_0x127659,_0x4efc58,_0x5471d2)=>{const _0x43b82c=_0x4efc58?tt(_0x4efc58)['id']:null;if(_0x3c407e[_0x5d2a('0x3f')][_0x5d2a('0x44')](()=>{if(_0x43b82c){const _0x52dd62=this[_0x5d2a('0x6b')](_0x43b82c);for(const _0x4dae06 of _0x52dd62)_0x3c407e[_0x5d2a('0x60')][_0x5d2a('0x22')](_0x4dae06);}if(_0x5471d2){const {id:_0x5c8554}=tt(_0x5471d2),_0x5e5b83=this[_0x5d2a('0x6b')](_0x5c8554);for(const _0x274c2a of _0x5e5b83)_0x3c407e[_0x5d2a('0x60')]['reconvertMarker'](_0x274c2a);}}),_0x43b82c){const _0x173e38=_0x3c407e['plugins']['get'](_0x3ad7a2)[_0x5d2a('0x29')](_0x43b82c);_0x173e38&&_0x173e38[_0x5d2a('0x1b')]&&this[_0x5d2a('0x64')](_0x43b82c);}}),this['_attachedThreads']=new Map();}[_0x5d2a('0x1c')](){const _0x38f025=this[_0x5d2a('0x6')],_0x309707=_0x38f025[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2),_0x374f2d=_0x38f025[_0x5d2a('0x18')]['get'](_0x5d2a('0x1f'));_0x38f025[_0x5d2a('0x77')][_0x5d2a('0x52')]('addCommentThread',new _0x3f8346(_0x38f025)),this[_0x5d2a('0x34')](_0x38f025,_0x5d2a('0x61'),(_0x2be323,_0x2e6d0d,_0x5d321f)=>{_0x309707[_0x5d2a('0x5f')](_0x5d321f,_0x38f025[_0x5d2a('0x18')]['get'](_0x5d2a('0x1f')));}),this['listenTo'](_0x309707,Z(_0x5d2a('0x78'),_0x374f2d),(_0x4cdf2a,{threadId:_0x4ea23f})=>{const _0x5b5a4b=this[_0x5d2a('0x6')][_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2)[_0x5d2a('0x29')](_0x4ea23f);_0x5b5a4b&&_0x5b5a4b[_0x5d2a('0x1b')]&&this[_0x5d2a('0x45')](_0x4ea23f);}),this[_0x5d2a('0x34')](_0x309707,Z(_0x5d2a('0xd'),_0x374f2d),(_0x2313f6,{threadId:_0x459104})=>{_0x38f025[_0x5d2a('0x3f')]['enqueueChange']({'isUndoable':!0x1},_0x9495d4=>{const _0x417002=this[_0x5d2a('0x6b')](_0x459104);this[_0x5d2a('0x13')][_0x5d2a('0x50')](_0x459104),this['_removedThread']=_0x459104;for(const _0x3002ab of _0x417002)_0x9495d4[_0x5d2a('0x2a')](_0x3002ab);}),this['_removedThread']=null;},{'priority':_0x5d2a('0x59')}),this['listenTo'](_0x309707,Z(_0x5d2a('0x31'),_0x374f2d),(_0x2c3ecd,{threadId:_0x11b835})=>{this[_0x5d2a('0x45')](_0x11b835),this['_reconvertMarkers'](_0x11b835),this[_0x5d2a('0x6')][_0x5d2a('0x60')]['view'][_0x5d2a('0x5e')]&&this[_0x5d2a('0x6')][_0x5d2a('0x60')][_0x5d2a('0x19')][_0x5d2a('0x58')]();},{'priority':_0x5d2a('0x40')}),this[_0x5d2a('0x34')](_0x309707,Z('reopenCommentThread',_0x374f2d),(_0x38934c,{threadId:_0x2a1318})=>{this[_0x5d2a('0x74')](_0x2a1318);},{'priority':_0x5d2a('0x40')}),this[_0x5d2a('0x34')](_0x309707,Z(_0x5d2a('0xf'),_0x374f2d),(_0x50b118,{threadId:_0xd1c956,isFromAdapter:_0xba605a})=>{const _0x37d39f=this[_0x5d2a('0x6b')](_0xd1c956);if(_0xba605a||0x0==_0x37d39f[_0x5d2a('0x53')]||!_0x309707['hasCommentThread'](_0xd1c956))return;0x1===_0x309707[_0x5d2a('0x29')](_0xd1c956)[_0x5d2a('0x53')]&&_0x38f025[_0x5d2a('0x3f')][_0x5d2a('0xa')]({'isUndoable':!0x1},_0x5612a7=>{for(const _0x45b809 of _0x37d39f)_0x5612a7[_0x5d2a('0x1')](_0x45b809,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5d2a('0x40')}),this[_0x5d2a('0x24')](),this[_0x5d2a('0x37')]();}['destroy'](){const _0x276c81=this[_0x5d2a('0x6')]['plugins'][_0x5d2a('0x3b')](_0x3ad7a2),_0x1edc7e=this[_0x5d2a('0x6')]['config']['get'](_0x5d2a('0x1f'));for(const _0x51bd43 of _0x276c81[_0x5d2a('0x38')]({'channelId':_0x1edc7e}))_0x276c81[_0x5d2a('0x62')](_0x51bd43['id']),_0x276c81[_0x5d2a('0x2e')]['delete'](_0x51bd43['id']);super['destroy']();}[_0x5d2a('0x15')](_0x19407d){return this[_0x5d2a('0x6b')](_0x19407d)[_0x5d2a('0x53')]>0x0;}[_0x5d2a('0x6b')](_0x479be3){return Array[_0x5d2a('0x23')](this[_0x5d2a('0x13')][_0x5d2a('0x3b')](_0x479be3)||[])[_0x5d2a('0x28')](_0x1bf34d=>this[_0x5d2a('0x6')][_0x5d2a('0x3f')][_0x5d2a('0x25')][_0x5d2a('0x3b')](_0x1bf34d))[_0x5d2a('0x3c')](_0x23d5d8=>_0x23d5d8);}[_0x5d2a('0x64')](_0xf102ff){const _0x1e7b77=this['_getTargetForId'](_0xf102ff);_0x1e7b77&&setTimeout(()=>{this['activeMarker']&&tt(this[_0x5d2a('0x14')])['id']===_0xf102ff&&_0xbaaaca({'target':_0x1e7b77[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5d2a('0x74')](_0xfcf4b0){this['editor'][_0x5d2a('0x3f')][_0x5d2a('0x44')](()=>{for(const _0x2e8bf2 of this['getAllMarkersForId'](_0xfcf4b0))this['editor'][_0x5d2a('0x60')]['reconvertMarker'](_0x2e8bf2);});}[_0x5d2a('0x45')](_0x33c710){const _0x4dc73e=this[_0x5d2a('0x6')][_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2),_0x3fde7a=this[_0x5d2a('0x6')][_0x5d2a('0xc')]['get'](_0x5ba2c3),_0x5ef613=_0x4dc73e[_0x5d2a('0x29')](_0x33c710);if(!this['_attachedThreads'][_0x5d2a('0x4c')](_0x33c710)){const _0x4b01a1=_0x5ef613[_0x5d2a('0x4d')](()=>this[_0x5d2a('0x6a')](_0x5ef613['id']));_0x3fde7a[_0x5d2a('0x3a')](_0x4b01a1),this[_0x5d2a('0x13')][_0x5d2a('0x27')](_0x33c710,new Set()),_0x5ef613[_0x5d2a('0x72')]=!0x1;}}['_initializeMarkerConverters'](){const _0xf617ae=this[_0x5d2a('0x6')];_0xf617ae['conversion']['for'](_0x5d2a('0x2b'))[_0x5d2a('0x68')]({'model':_0x5d2a('0x20'),'view':(_0x2fece6,_0x5f0812)=>{const {id:_0x5e9917}=tt(_0x2fece6[_0x5d2a('0x75')]),_0x56bfc9=_0xf617ae[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2)[_0x5d2a('0x29')](_0x5e9917),_0x231e4a=this[_0x5d2a('0x14')]&&tt(this[_0x5d2a('0x14')])['id']===_0x5e9917;if(_0x56bfc9&&_0x56bfc9[_0x5d2a('0x1b')]&&!_0x231e4a&&_0x2fece6[_0x5d2a('0x9')])return _0x5f0812[_0x5d2a('0x66')]['consume'](_0x2fece6['item'],_0x5d2a('0x30')+_0x2fece6[_0x5d2a('0x75')]),_0x5f0812[_0x5d2a('0x66')][_0x5d2a('0x55')](_0x2fece6['item'],'removeMarker:'+_0x2fece6['markerName']),{'classes':[]};const _0x482eb2=[_0x5d2a('0x11')];return _0x231e4a&&_0x482eb2[_0x5d2a('0x3d')](_0x5d2a('0x46')),{'classes':_0x482eb2,'attributes':{'data-comment':_0x5e9917}};}}),_0xf617ae['conversion'][_0x5d2a('0x2c')](_0x5d2a('0x1e'))[_0x5d2a('0x49')]({'model':_0x5d2a('0x20'),'view':(_0x1965f6,{options:_0x970568})=>{const _0x28ae77=_0xf617ae[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2),_0x5af1ea=_0xf617ae[_0x5d2a('0x3f')][_0x5d2a('0x25')][_0x5d2a('0x3b')](_0x1965f6),{id:_0x5cfc3d,part:_0x515660}=tt(_0x1965f6);if(_0x5af1ea&&!_0x5af1ea[_0x5d2a('0x17')])return null;if(_0x970568[_0x5d2a('0x12')]){const _0x3938df=_0x28ae77[_0x5d2a('0x29')](_0x5cfc3d);if(_0x3938df&&_0x3938df[_0x5d2a('0x1b')])return null;}return{'group':_0x5d2a('0x20'),'name':_0x515660?_0x5cfc3d+':'+_0x515660:_0x5cfc3d};}}),_0xf617ae['conversion']['for'](_0x5d2a('0x5c'))['elementToElement']({'view':{'name':_0x5d2a('0x20'),'attributes':{'id':/^\w/}},'model':(_0x2b8f6c,{writer:_0x5d5a44})=>_0x5d5a44[_0x5d2a('0x35')](_0x5d2a('0x5'),{'data-name':'comment:'+_0x2b8f6c[_0x5d2a('0x0')]('id')})}),_0xf617ae['conversion'][_0x5d2a('0x2c')](_0x5d2a('0x5c'))[_0x5d2a('0xb')]({'view':_0x5d2a('0x20')});}[_0x5d2a('0x37')](){const _0x2685b1=this['editor'],_0x485c33=_0x2685b1[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2),_0x29702b=new Set(),_0x46461f=new Set();_0x2685b1[_0x5d2a('0x3f')][_0x5d2a('0x54')][_0x5d2a('0x70')](_0x3c36ef=>{let _0x2f9f4f=!0x1;for(const {name:_0x1a4b22,data:_0x4570c3}of _0x2685b1[_0x5d2a('0x3f')]['document'][_0x5d2a('0x26')][_0x5d2a('0x5b')]()){const {group:_0x5bc29d,id:_0xe91dc0}=tt(_0x1a4b22);let _0x2511a8=_0x4570c3['newRange'];if(_0x5d2a('0x20')!==_0x5bc29d||!_0x2511a8)continue;const _0x5ae5c7=_0x5d2a('0x41')===_0x2511a8[_0x5d2a('0x39')][_0x5d2a('0x69')];_0x5ae5c7||(_0x2511a8=ot(_0x2511a8,_0x2685b1[_0x5d2a('0x3f')]),!_0x2511a8||_0x2511a8[_0x5d2a('0x73')]||!_0x4570c3['newRange']||_0x2511a8[_0x5d2a('0x76')](_0x4570c3[_0x5d2a('0x63')]))?_0x2685b1[_0x5d2a('0x3f')][_0x5d2a('0x1a')](_0x2511a8)&&!_0x5ae5c7?this[_0x5d2a('0x48')]?_0x29702b[_0x5d2a('0x52')](_0x1a4b22):this[_0x5d2a('0x8')](_0x1a4b22,_0xe91dc0):(_0x46461f['add'](_0x1a4b22),_0x29702b[_0x5d2a('0x50')](_0x1a4b22),_0x3c36ef[_0x5d2a('0x2a')](_0x1a4b22),_0x2f9f4f=!0x0):(_0x3c36ef[_0x5d2a('0x1')](_0x1a4b22,{'range':_0x2511a8}),_0x2f9f4f=!0x0);}return _0x2f9f4f;}),this['on'](_0x5d2a('0x21'),(_0x54f310,_0x2fcb36,_0x3c09aa)=>{if(!_0x3c09aa&&_0x29702b['size'])for(const _0x461f6a of _0x29702b){const {id:_0x307806}=tt(_0x461f6a);_0x29702b[_0x5d2a('0x50')](_0x461f6a),_0x2685b1[_0x5d2a('0x3f')]['markers'][_0x5d2a('0x3b')](_0x461f6a)&&this[_0x5d2a('0x8')](_0x461f6a,_0x307806);}}),this[_0x5d2a('0x34')](_0x2685b1[_0x5d2a('0x3f')][_0x5d2a('0x54')],_0x5d2a('0x44'),(_0x49d159,_0x453f9f)=>{for(const {name:_0x1da20b,data:{newRange:_0x55cb5e}}of _0x2685b1[_0x5d2a('0x3f')]['document'][_0x5d2a('0x26')][_0x5d2a('0x5b')]()){const {group:_0x319735,id:_0x2a9f27}=tt(_0x1da20b);if(_0x5d2a('0x20')!==_0x319735)continue;const _0x535a89=_0x485c33[_0x5d2a('0x29')](_0x2a9f27),_0x5774d1=this['hasMarkerForId'](_0x2a9f27);_0x535a89&&(_0x535a89['_hasTargetInContent']||_0x2685b1[_0x5d2a('0x60')][_0x5d2a('0x19')][_0x5d2a('0x67')](_0x5d2a('0x5d'),()=>{const _0x424bc8=_0x2685b1[_0x5d2a('0xc')]['get'](_0x5c0783),_0x5b2dc6=_0x485c33[_0x5d2a('0xe')]['get'](_0x535a89)[_0x5d2a('0x19')];_0x424bc8[_0x5d2a('0x10')](_0x5b2dc6)['refreshVisibility']();},{'priority':'low'}),_0x535a89[_0x5d2a('0x72')]=_0x5774d1||!!_0x55cb5e),_0x55cb5e||(_0x46461f[_0x5d2a('0x52')](_0x1da20b),_0x29702b[_0x5d2a('0x50')](_0x1da20b),this[_0x5d2a('0x13')][_0x5d2a('0x4c')](_0x2a9f27)&&this[_0x5d2a('0x13')][_0x5d2a('0x3b')](_0x2a9f27)[_0x5d2a('0x50')](_0x1da20b));}if(_0x453f9f[_0x5d2a('0x2f')])for(const _0x5e7a27 of _0x46461f){const {id:_0x3d84a7}=tt(_0x5e7a27),_0x2dae45=_0x485c33[_0x5d2a('0x29')](_0x3d84a7),_0x46fb2e=this[_0x5d2a('0x15')](_0x3d84a7);_0x29702b[_0x5d2a('0x50')](_0x5e7a27),!_0x2dae45||_0x46fb2e||_0x2dae45['isResolved']||this['_removedThread']===_0x3d84a7||(this[_0x5d2a('0x56')][_0x5d2a('0x52')](_0x2dae45),_0x2dae45[_0x5d2a('0x57')]());}_0x46461f[_0x5d2a('0x6e')]();});}['_getTargetForId'](_0x3d8c68){const _0x3fb23e=this['editor'],_0x398b7f=this[_0x5d2a('0x6b')](_0x3d8c68);return _0x3323a4(_0x3fb23e[_0x5d2a('0x60')],_0x398b7f);}[_0x5d2a('0x6f')](_0x7c0927){const _0x4ec69c=this[_0x5d2a('0x6b')](_0x7c0927);let _0x4c70e4='',_0xdc1a31=!0x1;for(const _0x3253a5 of _0x4ec69c){const _0x178466=_0x3253a5[_0x5d2a('0x51')]();for(const _0x32ec07 of Array[_0x5d2a('0x23')](_0x178466[_0x5d2a('0x47')]()))_0x32ec07['is'](_0x5d2a('0x4e'))?(_0x4c70e4&&_0xdc1a31&&(_0x4c70e4+='\x20',_0xdc1a31=!0x1),_0x4c70e4+=_0x32ec07[_0x5d2a('0x32')]):_0xdc1a31=!0x0;_0xdc1a31=!0x0;}return _0x4c70e4['substring'](0x0,0x96);}[_0x5d2a('0x4')](_0x54b65b,_0x47ea3d){const _0x4aee33=this[_0x5d2a('0x6')],_0x1ae7e6=_0x4aee33[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x3ad7a2);let _0x2fad4f=_0x1ae7e6[_0x5d2a('0x29')](_0x47ea3d);if(this[_0x5d2a('0x13')][_0x5d2a('0x4c')](_0x47ea3d)){const _0x5ef1d3=this[_0x5d2a('0x13')][_0x5d2a('0x3b')](_0x47ea3d);_0x5ef1d3['has'](_0x54b65b)||_0x5ef1d3[_0x5d2a('0x52')](_0x54b65b);}const _0x2111a6=_0x4aee33[_0x5d2a('0x18')]['get'](_0x5d2a('0x1f')),_0x549076=_0x4aee33[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x5ba2c3);if(_0x2fad4f&&_0x2fad4f['isResolved']&&this[_0x5d2a('0x56')][_0x5d2a('0x4c')](_0x2fad4f)&&(this[_0x5d2a('0x56')][_0x5d2a('0x50')](_0x2fad4f),_0x2fad4f[_0x5d2a('0x36')]()),this[_0x5d2a('0x13')][_0x5d2a('0x4c')](_0x47ea3d))return _0x2fad4f;return this[_0x5d2a('0x13')][_0x5d2a('0x27')](_0x47ea3d,new Set([_0x54b65b])),(!this[_0x5d2a('0x6b')](_0x47ea3d)[0x0]['managedUsingOperations']?_0x4aee33[_0x5d2a('0x60')][_0x5d2a('0x19')]['once'](_0x5d2a('0x5d'),()=>{const _0x2013f3=_0x4aee33[_0x5d2a('0xc')][_0x5d2a('0x3b')](_0x5c0783);_0x2fad4f=_0x1ae7e6[_0x5d2a('0x6d')]({'channelId':_0x2111a6,'threadId':_0x47ea3d,'target':()=>this['_getTargetForId'](_0x47ea3d),'context':{'type':'text','value':this[_0x5d2a('0x6f')](_0x47ea3d)}});const _0x5c294e=_0x1ae7e6[_0x5d2a('0xe')]['get'](_0x2fad4f)[_0x5d2a('0x19')],_0x3cb027=_0x2013f3[_0x5d2a('0x10')](_0x5c294e);_0x3cb027&&_0x549076['registerAnnotation'](_0x3cb027);},{'priority':'low'}):_0x1ae7e6[_0x5d2a('0x6c')]({'channelId':_0x2111a6,'threadId':_0x47ea3d})['then'](_0x67463b=>{if(_0x5d2a('0x3')!==_0x4aee33[_0x5d2a('0x65')]){if(_0x2fad4f=_0x67463b,_0x2fad4f){const _0x329ce0=_0x2fad4f[_0x5d2a('0x4d')](()=>this[_0x5d2a('0x6a')](_0x47ea3d));_0x549076['registerAnnotation'](_0x329ce0),_0x2fad4f['isResolved']&&this[_0x5d2a('0x74')](_0x47ea3d);}else{const _0x27d394=this[_0x5d2a('0x6b')](_0x47ea3d);_0x4aee33[_0x5d2a('0x3f')]['change'](_0x29c94f=>{for(const _0x4dae5f of _0x27d394)_0x29c94f[_0x5d2a('0x2a')](_0x4dae5f);});}}}),_0x2fad4f);}['_handleThreadMarker'](_0x54091c,_0x354c47){const _0x4b3527=this[_0x5d2a('0x4')](_0x54091c,_0x354c47);_0x4b3527&&!_0x4b3527[_0x5d2a('0x3e')]&&_0x4b3527[_0x5d2a('0x7')]({'type':_0x5d2a('0x43'),'value':this[_0x5d2a('0x6f')](_0x354c47)});}}function Z(_0x33d523,_0x363140){return _0x363140?_0x33d523+':'+_0x363140:_0x33d523;}function tt(_0x1d2e76){const _0xfa33a4=_0x1d2e76[_0x5d2a('0x4a')](':');return{'group':_0xfa33a4[0x0],'id':_0xfa33a4[0x1],'part':_0xfa33a4[0x2]};}function ot(_0x3e0837,_0x217ae3){const _0x5b6638=_0x217ae3[_0x5d2a('0x2d')],_0x6e1291=_0x217ae3['createRange'](_0x3e0837[_0x5d2a('0x71')]);for(const _0x5ba108 of _0x3e0837[_0x5d2a('0x33')]()){const {type:_0x2a1e28,item:_0x4a1fb4,nextPosition:_0x3cce5e}=_0x5ba108;if('text'===_0x2a1e28||_0x5b6638[_0x5d2a('0x4b')](_0x4a1fb4)){const _0x204b0a=_0x217ae3[_0x5d2a('0x16')](_0x4a1fb4);_0x6e1291[_0x5d2a('0x73')]&&(_0x6e1291[_0x5d2a('0x71')]=_0x204b0a),_0x6e1291[_0x5d2a('0x42')]=_0x3cce5e;}}return _0x6e1291;}
|
|
23
|
+
const _0x3d9c=['listenTo','_handleMarkerAddAndRemove','$graveyard','scrollToThreadMarker','destroy','set','upcast','config','rootName','editingDowncast','_getTextContext','model','openNewCommentThread','view','collaboration.channelId','_attachMarkerToThread','enqueueChange','hasDomSelection','markerName','registerPostFixer','render','markers','clear','_autoResolvedThreads','state','isThreadsLoadingPaused','commands','context','reopenCommentThread','change:isThreadsLoadingPaused','resolveCommentThread','fetchCommentThread','from','setContext','_hasTargetInContent','_initializeMarkerConverters','attachTo','getCommentThread','$marker','hasCommentThread','isCollapsed','_getTargetForId','dataDowncast','addMarker:','size','delete','editing','once','isEqual','getItems','ready','_removedThread','substring','for','then','getAllMarkersForId','_attachedThreads','end','filter','newRange','affectsData','change','differ','push','requires','getChangedMarkers','removeCommentThread','addCommentThread','removeMarker','length','item','addComment','consume','add','getByInnerView','has','isObject','createRange','comment','ignoreResolvedComments','_handleThreadMarker','focus','schema','text','start','activeMarker','resolve','reconvertMarker','pluginName','createElement','low','_reconvertMarkers','editor','conversion','hasMarkerForId','consumable','get','plugins','init','destroyed','_threads','CommentsEditing','change:activeMarker','document','registerAnnotation','managedUsingOperations','switchReadOnly','_threadToController','markerToHighlight','removeMarker:','comment:','ck-comment-marker','_detachCommentThread','root','getRange','updateMarker','refreshVisibility','isResolved','data','ck-comment-marker--active','getWalker','_attachResolvedThread'];(function(_0x19d824,_0x3d9cf6){const _0x52783c=function(_0x41491e){while(--_0x41491e){_0x19d824['push'](_0x19d824['shift']());}};_0x52783c(++_0x3d9cf6);}(_0x3d9c,0xd0));const _0x5278=function(_0x19d824,_0x3d9cf6){_0x19d824=_0x19d824-0x0;let _0x52783c=_0x3d9c[_0x19d824];return _0x52783c;};import{Plugin as _0x5cf62e}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2d772e}from'ckeditor5/src/utils';import _0x5b2327 from'./commentsrepository';import _0x2a94e9 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x4ffc28}from'ckeditor5-collaboration/src/collaboration-core';import _0x42aeb8 from'../annotations/editorannotations';import _0x57e0d6 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x4a4fbc from'./integrations/importword';import _0x12e9df from'../annotations/annotations';export default class r extends _0x5cf62e{static get[_0x5278('0x64')](){return[_0x5b2327,_0x42aeb8,_0x57e0d6,_0x4a4fbc];}static get[_0x5278('0x2')](){return _0x5278('0xf');}constructor(_0x516afa){super(_0x516afa),this[_0x5278('0x57')]=null,this['_autoResolvedThreads']=new Set(),this[_0x5278('0x29')](_0x5278('0x3d'),!0x0),_0x516afa[_0x5278('0x20')][_0x5278('0x53')](_0x5278('0x56'),()=>this[_0x5278('0x3d')]=!0x1),this[_0x5278('0x29')](_0x5278('0x79'),null),this['on'](_0x5278('0x10'),(_0x23dfa1,_0x205a9b,_0xdeca0d,_0x525f98)=>{const _0x287df9=_0xdeca0d?tt(_0xdeca0d)['id']:null;if(_0x516afa['model']['change'](()=>{if(_0x287df9){const _0x1c30b8=this['getAllMarkersForId'](_0x287df9);for(const _0x5bf7b4 of _0x1c30b8)_0x516afa['editing']['reconvertMarker'](_0x5bf7b4);}if(_0x525f98){const {id:_0x56d37b}=tt(_0x525f98),_0x15521b=this[_0x5278('0x5b')](_0x56d37b);for(const _0x496739 of _0x15521b)_0x516afa[_0x5278('0x52')]['reconvertMarker'](_0x496739);}}),_0x287df9){const _0x3b5cc9=_0x516afa[_0x5278('0xb')][_0x5278('0xa')](_0x5b2327)[_0x5278('0x49')](_0x287df9);_0x3b5cc9&&_0x3b5cc9[_0x5278('0x1f')]&&this[_0x5278('0x27')](_0x287df9);}}),this[_0x5278('0x5c')]=new Map();}[_0x5278('0xc')](){const _0x48b997=this[_0x5278('0x6')],_0x3a93b1=_0x48b997[_0x5278('0xb')][_0x5278('0xa')](_0x5b2327),_0x1fa95d=_0x48b997[_0x5278('0x2b')][_0x5278('0xa')](_0x5278('0x32'));_0x48b997[_0x5278('0x3e')][_0x5278('0x6d')]('addCommentThread',new _0x2a94e9(_0x48b997)),this[_0x5278('0x24')](_0x48b997,'change:isReadOnly',(_0x2a0105,_0x3ddd34,_0xc4e412)=>{_0x3a93b1[_0x5278('0x14')](_0xc4e412,_0x48b997[_0x5278('0x2b')][_0x5278('0xa')](_0x5278('0x32')));}),this[_0x5278('0x24')](_0x3a93b1,Z(_0x5278('0x67'),_0x1fa95d),(_0x302295,{threadId:_0x243870})=>{const _0x3372b9=this[_0x5278('0x6')][_0x5278('0xb')][_0x5278('0xa')](_0x5b2327)[_0x5278('0x49')](_0x243870);_0x3372b9&&_0x3372b9[_0x5278('0x1f')]&&this[_0x5278('0x23')](_0x243870);}),this[_0x5278('0x24')](_0x3a93b1,Z(_0x5278('0x66'),_0x1fa95d),(_0x147185,{threadId:_0x1f75fe})=>{_0x48b997[_0x5278('0x2f')][_0x5278('0x34')]({'isUndoable':!0x1},_0x12996f=>{const _0x57853f=this[_0x5278('0x5b')](_0x1f75fe);this[_0x5278('0x5c')][_0x5278('0x51')](_0x1f75fe),this[_0x5278('0x57')]=_0x1f75fe;for(const _0x438122 of _0x57853f)_0x12996f[_0x5278('0x68')](_0x438122);}),this['_removedThread']=null;},{'priority':'high'}),this['listenTo'](_0x3a93b1,Z(_0x5278('0x42'),_0x1fa95d),(_0x27fd4f,{threadId:_0x2c5fe2})=>{this[_0x5278('0x23')](_0x2c5fe2),this['_reconvertMarkers'](_0x2c5fe2),this[_0x5278('0x6')][_0x5278('0x52')][_0x5278('0x31')][_0x5278('0x35')]&&this[_0x5278('0x6')]['editing']['view'][_0x5278('0x75')]();},{'priority':_0x5278('0x4')}),this[_0x5278('0x24')](_0x3a93b1,Z(_0x5278('0x40'),_0x1fa95d),(_0x4162cf,{threadId:_0x38d959})=>{this[_0x5278('0x5')](_0x38d959);},{'priority':_0x5278('0x4')}),this[_0x5278('0x24')](_0x3a93b1,Z(_0x5278('0x6b'),_0x1fa95d),(_0x18e81b,{threadId:_0x1844bc,isFromAdapter:_0xb2e7c9})=>{const _0x1de92b=this['getAllMarkersForId'](_0x1844bc);if(_0xb2e7c9||0x0==_0x1de92b[_0x5278('0x69')]||!_0x3a93b1[_0x5278('0x4b')](_0x1844bc))return;0x1===_0x3a93b1[_0x5278('0x49')](_0x1844bc)['length']&&_0x48b997[_0x5278('0x2f')][_0x5278('0x34')]({'isUndoable':!0x1},_0x250831=>{for(const _0xe04713 of _0x1de92b)_0x250831[_0x5278('0x1d')](_0xe04713,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5278('0x4')}),this[_0x5278('0x47')](),this[_0x5278('0x25')]();}['destroy'](){const _0x74d70b=this[_0x5278('0x6')]['plugins'][_0x5278('0xa')](_0x5b2327),_0xd86938=this[_0x5278('0x6')][_0x5278('0x2b')]['get'](_0x5278('0x32'));for(const _0x3bcc76 of _0x74d70b['getCommentThreads']({'channelId':_0xd86938}))_0x74d70b[_0x5278('0x1a')](_0x3bcc76['id']),_0x74d70b[_0x5278('0xe')][_0x5278('0x51')](_0x3bcc76['id']);super[_0x5278('0x28')]();}[_0x5278('0x8')](_0xeca1ac){return this[_0x5278('0x5b')](_0xeca1ac)[_0x5278('0x69')]>0x0;}[_0x5278('0x5b')](_0x503b43){return Array[_0x5278('0x44')](this[_0x5278('0x5c')]['get'](_0x503b43)||[])['map'](_0x1edd3=>this[_0x5278('0x6')][_0x5278('0x2f')]['markers']['get'](_0x1edd3))[_0x5278('0x5e')](_0x1f00b9=>_0x1f00b9);}['scrollToThreadMarker'](_0x471125){const _0x5c15da=this[_0x5278('0x4d')](_0x471125);_0x5c15da&&setTimeout(()=>{this[_0x5278('0x79')]&&tt(this[_0x5278('0x79')])['id']===_0x471125&&_0x2d772e({'target':_0x5c15da[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5278('0x5')](_0x16d798){this[_0x5278('0x6')][_0x5278('0x2f')][_0x5278('0x61')](()=>{for(const _0x985a00 of this[_0x5278('0x5b')](_0x16d798))this['editor']['editing'][_0x5278('0x1')](_0x985a00);});}[_0x5278('0x23')](_0x575c5f){const _0x550e8f=this[_0x5278('0x6')][_0x5278('0xb')][_0x5278('0xa')](_0x5b2327),_0x2ff7b2=this[_0x5278('0x6')][_0x5278('0xb')][_0x5278('0xa')](_0x42aeb8),_0x55615b=_0x550e8f[_0x5278('0x49')](_0x575c5f);if(!this[_0x5278('0x5c')][_0x5278('0x6f')](_0x575c5f)){const _0x195c3e=_0x55615b[_0x5278('0x48')](()=>this[_0x5278('0x4d')](_0x55615b['id']));_0x2ff7b2[_0x5278('0x12')](_0x195c3e),this[_0x5278('0x5c')]['set'](_0x575c5f,new Set()),_0x55615b[_0x5278('0x46')]=!0x1;}}[_0x5278('0x47')](){const _0x226a77=this[_0x5278('0x6')];_0x226a77['conversion'][_0x5278('0x59')](_0x5278('0x2d'))[_0x5278('0x16')]({'model':_0x5278('0x72'),'view':(_0x1a500f,_0x4ab3de)=>{const {id:_0x5819f3}=tt(_0x1a500f[_0x5278('0x36')]),_0x45ed13=_0x226a77[_0x5278('0xb')][_0x5278('0xa')](_0x5b2327)['getCommentThread'](_0x5819f3),_0x4d4726=this['activeMarker']&&tt(this[_0x5278('0x79')])['id']===_0x5819f3;if(_0x45ed13&&_0x45ed13['isResolved']&&!_0x4d4726&&_0x1a500f[_0x5278('0x6a')])return _0x4ab3de['consumable'][_0x5278('0x6c')](_0x1a500f[_0x5278('0x6a')],_0x5278('0x4f')+_0x1a500f['markerName']),_0x4ab3de[_0x5278('0x9')][_0x5278('0x6c')](_0x1a500f[_0x5278('0x6a')],_0x5278('0x17')+_0x1a500f[_0x5278('0x36')]),{'classes':[]};const _0x2af4c6=[_0x5278('0x19')];return _0x4d4726&&_0x2af4c6[_0x5278('0x63')](_0x5278('0x21')),{'classes':_0x2af4c6,'attributes':{'data-comment':_0x5819f3}};}}),_0x226a77[_0x5278('0x7')]['for'](_0x5278('0x4e'))['markerToData']({'model':'comment','view':(_0x44eeb1,{options:_0x2cef7d})=>{const _0x2df9de=_0x226a77[_0x5278('0xb')][_0x5278('0xa')](_0x5b2327),_0x282898=_0x226a77[_0x5278('0x2f')][_0x5278('0x39')]['get'](_0x44eeb1),{id:_0x2dbfc9,part:_0x4f8c76}=tt(_0x44eeb1);if(_0x282898&&!_0x282898[_0x5278('0x60')])return null;if(_0x2cef7d[_0x5278('0x73')]){const _0x17a257=_0x2df9de[_0x5278('0x49')](_0x2dbfc9);if(_0x17a257&&_0x17a257['isResolved'])return null;}return{'group':_0x5278('0x72'),'name':_0x4f8c76?_0x2dbfc9+':'+_0x4f8c76:_0x2dbfc9};}}),_0x226a77[_0x5278('0x7')][_0x5278('0x59')](_0x5278('0x2a'))['elementToElement']({'view':{'name':_0x5278('0x72'),'attributes':{'id':/^\w/}},'model':(_0x5b51bc,{writer:_0x12a6d5})=>_0x12a6d5[_0x5278('0x3')](_0x5278('0x4a'),{'data-name':_0x5278('0x18')+_0x5b51bc['getAttribute']('id')})}),_0x226a77[_0x5278('0x7')][_0x5278('0x59')](_0x5278('0x2a'))['dataToMarker']({'view':_0x5278('0x72')});}[_0x5278('0x25')](){const _0x3cf3f4=this[_0x5278('0x6')],_0x494cd6=_0x3cf3f4[_0x5278('0xb')]['get'](_0x5b2327),_0x137622=new Set(),_0x41eb60=new Set();_0x3cf3f4[_0x5278('0x2f')]['document'][_0x5278('0x37')](_0x367d2a=>{let _0x1ad3b0=!0x1;for(const {name:_0x348991,data:_0x3e9b6d}of _0x3cf3f4['model'][_0x5278('0x11')]['differ'][_0x5278('0x65')]()){const {group:_0x2384f8,id:_0x5b3f8e}=tt(_0x348991);let _0xcded7f=_0x3e9b6d[_0x5278('0x5f')];if(_0x5278('0x72')!==_0x2384f8||!_0xcded7f)continue;const _0x25ad51=_0x5278('0x26')===_0xcded7f[_0x5278('0x1b')][_0x5278('0x2c')];_0x25ad51||(_0xcded7f=ot(_0xcded7f,_0x3cf3f4[_0x5278('0x2f')]),!_0xcded7f||_0xcded7f[_0x5278('0x4c')]||!_0x3e9b6d[_0x5278('0x5f')]||_0xcded7f[_0x5278('0x54')](_0x3e9b6d[_0x5278('0x5f')]))?_0x3cf3f4[_0x5278('0x2f')]['hasContent'](_0xcded7f)&&!_0x25ad51?this['isThreadsLoadingPaused']?_0x137622[_0x5278('0x6d')](_0x348991):this[_0x5278('0x74')](_0x348991,_0x5b3f8e):(_0x41eb60['add'](_0x348991),_0x137622['delete'](_0x348991),_0x367d2a['removeMarker'](_0x348991),_0x1ad3b0=!0x0):(_0x367d2a[_0x5278('0x1d')](_0x348991,{'range':_0xcded7f}),_0x1ad3b0=!0x0);}return _0x1ad3b0;}),this['on'](_0x5278('0x41'),(_0x36d035,_0xbd6d71,_0x4ee4e5)=>{if(!_0x4ee4e5&&_0x137622[_0x5278('0x50')])for(const _0x148d44 of _0x137622){const {id:_0x3e0a3d}=tt(_0x148d44);_0x137622[_0x5278('0x51')](_0x148d44),_0x3cf3f4[_0x5278('0x2f')][_0x5278('0x39')]['get'](_0x148d44)&&this[_0x5278('0x74')](_0x148d44,_0x3e0a3d);}}),this[_0x5278('0x24')](_0x3cf3f4[_0x5278('0x2f')]['document'],'change',(_0x37bfcb,_0x50f7b8)=>{for(const {name:_0x14c694,data:{newRange:_0x31af0d}}of _0x3cf3f4[_0x5278('0x2f')][_0x5278('0x11')][_0x5278('0x62')][_0x5278('0x65')]()){const {group:_0xbb2e88,id:_0x24c8a5}=tt(_0x14c694);if(_0x5278('0x72')!==_0xbb2e88)continue;const _0x41b75e=_0x494cd6[_0x5278('0x49')](_0x24c8a5),_0x57c2e0=this[_0x5278('0x8')](_0x24c8a5);_0x41b75e&&(_0x41b75e[_0x5278('0x46')]||_0x3cf3f4[_0x5278('0x52')][_0x5278('0x31')]['once'](_0x5278('0x38'),()=>{const _0x910974=_0x3cf3f4[_0x5278('0xb')][_0x5278('0xa')](_0x12e9df),_0x10baa0=_0x494cd6['_threadToController'][_0x5278('0xa')](_0x41b75e)[_0x5278('0x31')];_0x910974[_0x5278('0x6e')](_0x10baa0)[_0x5278('0x1e')]();},{'priority':_0x5278('0x4')}),_0x41b75e[_0x5278('0x46')]=_0x57c2e0||!!_0x31af0d),_0x31af0d||(_0x41eb60[_0x5278('0x6d')](_0x14c694),_0x137622[_0x5278('0x51')](_0x14c694),this[_0x5278('0x5c')]['has'](_0x24c8a5)&&this[_0x5278('0x5c')][_0x5278('0xa')](_0x24c8a5)[_0x5278('0x51')](_0x14c694));}if(_0x50f7b8['isLocal'])for(const _0x3da884 of _0x41eb60){const {id:_0xf4222a}=tt(_0x3da884),_0x1f5178=_0x494cd6[_0x5278('0x49')](_0xf4222a),_0x385d1a=this['hasMarkerForId'](_0xf4222a);_0x137622[_0x5278('0x51')](_0x3da884),!_0x1f5178||_0x385d1a||_0x1f5178[_0x5278('0x1f')]||this[_0x5278('0x57')]===_0xf4222a||(this['_autoResolvedThreads'][_0x5278('0x6d')](_0x1f5178),_0x1f5178[_0x5278('0x0')]());}_0x41eb60[_0x5278('0x3a')]();});}[_0x5278('0x4d')](_0xefd554){const _0x178493=this[_0x5278('0x6')],_0x3e7103=this[_0x5278('0x5b')](_0xefd554);return _0x4ffc28(_0x178493[_0x5278('0x52')],_0x3e7103);}[_0x5278('0x2e')](_0x52f945){const _0x5a36cb=this[_0x5278('0x5b')](_0x52f945);let _0x4f92e3='',_0x212429=!0x1;for(const _0x5ea347 of _0x5a36cb){const _0x1211aa=_0x5ea347[_0x5278('0x1c')]();for(const _0x5a3cb4 of Array['from'](_0x1211aa[_0x5278('0x55')]()))_0x5a3cb4['is']('$textProxy')?(_0x4f92e3&&_0x212429&&(_0x4f92e3+='\x20',_0x212429=!0x1),_0x4f92e3+=_0x5a3cb4[_0x5278('0x20')]):_0x212429=!0x0;_0x212429=!0x0;}return _0x4f92e3[_0x5278('0x58')](0x0,0x96);}[_0x5278('0x33')](_0x1a8ca2,_0x194d85){const _0x2b4d88=this[_0x5278('0x6')],_0x1a0691=_0x2b4d88[_0x5278('0xb')][_0x5278('0xa')](_0x5b2327);let _0x555c5f=_0x1a0691[_0x5278('0x49')](_0x194d85);if(this['_attachedThreads'][_0x5278('0x6f')](_0x194d85)){const _0x4f530c=this['_attachedThreads']['get'](_0x194d85);_0x4f530c[_0x5278('0x6f')](_0x1a8ca2)||_0x4f530c[_0x5278('0x6d')](_0x1a8ca2);}const _0xc7f549=_0x2b4d88[_0x5278('0x2b')][_0x5278('0xa')](_0x5278('0x32')),_0x1d7ffe=_0x2b4d88[_0x5278('0xb')][_0x5278('0xa')](_0x42aeb8);if(_0x555c5f&&_0x555c5f[_0x5278('0x1f')]&&this[_0x5278('0x3b')][_0x5278('0x6f')](_0x555c5f)&&(this[_0x5278('0x3b')][_0x5278('0x51')](_0x555c5f),_0x555c5f['reopen']()),this['_attachedThreads'][_0x5278('0x6f')](_0x194d85))return _0x555c5f;return this['_attachedThreads'][_0x5278('0x29')](_0x194d85,new Set([_0x1a8ca2])),(!this[_0x5278('0x5b')](_0x194d85)[0x0][_0x5278('0x13')]?_0x2b4d88[_0x5278('0x52')]['view'][_0x5278('0x53')](_0x5278('0x38'),()=>{const _0x449647=_0x2b4d88['plugins'][_0x5278('0xa')](_0x12e9df);_0x555c5f=_0x1a0691[_0x5278('0x30')]({'channelId':_0xc7f549,'threadId':_0x194d85,'target':()=>this[_0x5278('0x4d')](_0x194d85),'context':{'type':'text','value':this[_0x5278('0x2e')](_0x194d85)}});const _0x2faa2f=_0x1a0691[_0x5278('0x15')][_0x5278('0xa')](_0x555c5f)[_0x5278('0x31')],_0x4b0423=_0x449647[_0x5278('0x6e')](_0x2faa2f);_0x4b0423&&_0x1d7ffe['registerAnnotation'](_0x4b0423);},{'priority':_0x5278('0x4')}):_0x1a0691[_0x5278('0x43')]({'channelId':_0xc7f549,'threadId':_0x194d85})[_0x5278('0x5a')](_0x462642=>{if(_0x5278('0xd')!==_0x2b4d88[_0x5278('0x3c')]){if(_0x555c5f=_0x462642,_0x555c5f){const _0x318932=_0x555c5f[_0x5278('0x48')](()=>this[_0x5278('0x4d')](_0x194d85));_0x1d7ffe['registerAnnotation'](_0x318932),_0x555c5f[_0x5278('0x1f')]&&this[_0x5278('0x5')](_0x194d85);}else{const _0x4b8cbd=this[_0x5278('0x5b')](_0x194d85);_0x2b4d88[_0x5278('0x2f')][_0x5278('0x61')](_0x1e3a5f=>{for(const _0x3875d0 of _0x4b8cbd)_0x1e3a5f[_0x5278('0x68')](_0x3875d0);});}}}),_0x555c5f);}['_handleThreadMarker'](_0x587e50,_0x1ad768){const _0x1d26e1=this[_0x5278('0x33')](_0x587e50,_0x1ad768);_0x1d26e1&&!_0x1d26e1[_0x5278('0x3f')]&&_0x1d26e1[_0x5278('0x45')]({'type':_0x5278('0x77'),'value':this[_0x5278('0x2e')](_0x1ad768)});}}function Z(_0x523d3c,_0x40a6cd){return _0x40a6cd?_0x523d3c+':'+_0x40a6cd:_0x523d3c;}function tt(_0x550982){const _0x38716a=_0x550982['split'](':');return{'group':_0x38716a[0x0],'id':_0x38716a[0x1],'part':_0x38716a[0x2]};}function ot(_0x546d6a,_0x5be1c6){const _0x5bf9ca=_0x5be1c6[_0x5278('0x76')],_0x275e42=_0x5be1c6[_0x5278('0x71')](_0x546d6a[_0x5278('0x78')]);for(const _0x386888 of _0x546d6a[_0x5278('0x22')]()){const {type:_0x487f4f,item:_0x121ff7,nextPosition:_0x28e597}=_0x386888;if(_0x5278('0x77')===_0x487f4f||_0x5bf9ca[_0x5278('0x70')](_0x121ff7)){const _0x3cf28c=_0x5be1c6['createPositionBefore'](_0x121ff7);_0x275e42[_0x5278('0x4c')]&&(_0x275e42[_0x5278('0x78')]=_0x3cf28c),_0x275e42[_0x5278('0x5d')]=_0x28e597;}}return _0x275e42;}
|