@ckeditor/ckeditor5-comments 0.0.0-nightly-20231218.0 → 0.0.0-nightly-20231220.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/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 _0x15f0=['ck-annotation-wrapper--active','_updateHeight','height','destroy','set','listenTo','content','createCollection','fire','targetRect','type','add','element','setTemplate','isActive','length','div','isDirty','render','ck-rounded-corners','focusTracker','clear','_mutationObserver','clientHeight','focus','keystrokes'];(function(_0x5e17cf,_0x15f0b8){const _0x59c276=function(_0x52b43c){while(--_0x52b43c){_0x5e17cf['push'](_0x5e17cf['shift']());}};_0x59c276(++_0x15f0b8);}(_0x15f0,0x1ef));const _0x59c2=function(_0x5e17cf,_0x15f0b8){_0x5e17cf=_0x5e17cf-0x0;let _0x59c276=_0x15f0[_0x5e17cf];return _0x59c276;};import{View as _0x49ae0f}from'ckeditor5/src/ui.js';import{FocusTracker as _0x3efed1,KeystrokeHandler as _0x2ac4f5,uid as _0x19714d}from'ckeditor5/src/utils.js';import _0x21cb37 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0x49ae0f{constructor(_0x37e59f,_0x24107d){super(_0x37e59f),this['id']=_0x19714d(),this[_0x59c2('0x13')]=new _0x3efed1(),this[_0x59c2('0x18')]=new _0x2ac4f5(),this[_0x59c2('0x18')]['set']('Esc',(_0x43081c,_0x50a63a)=>this[_0x59c2('0x7')]('Esc',_0x50a63a)),this[_0x59c2('0x3')](_0x59c2('0x8'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this[_0x59c2('0x3')](_0x59c2('0xd'),!0x1),this['set'](_0x59c2('0x10'),!0x1),this['set'](_0x59c2('0xe'),0x0),this[_0x59c2('0x3')](_0x59c2('0x9'),''),this[_0x59c2('0x15')]=_0x21cb37(()=>this[_0x59c2('0x0')]()),this['content']=this[_0x59c2('0x6')](),this[_0x59c2('0x5')]['add'](_0x24107d),this['mainView']=_0x24107d;const _0x63e753=this['bindTemplate'];this[_0x59c2('0xc')]({'tag':_0x59c2('0xf'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x59c2('0x12'),_0x63e753['if']('isActive',_0x59c2('0x19'))],'tabindex':-0x1},'children':this[_0x59c2('0x5')]});}[_0x59c2('0x11')](){super['render'](),this[_0x59c2('0x13')][_0x59c2('0xa')](this['element']),this[_0x59c2('0x18')][_0x59c2('0x4')](this[_0x59c2('0xb')]),this['_mutationObserver']['attach'](this[_0x59c2('0xb')]);}[_0x59c2('0x2')](){this[_0x59c2('0x5')][_0x59c2('0x14')](),this[_0x59c2('0x18')][_0x59c2('0x2')](),this[_0x59c2('0x13')]['destroy'](),this[_0x59c2('0x15')]['detach'](),super['destroy']();}[_0x59c2('0x17')](){this['element'][_0x59c2('0x17')]();}[_0x59c2('0x0')](){const _0x31da22=this[_0x59c2('0xb')][_0x59c2('0x16')];_0x31da22&&(this[_0x59c2('0x1')]=_0x31da22);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25f7=['detach','clear','destroy','content','bottom','top','updateHeight','attach','isAnimationDisabled','set','bind','height','div','createCollection','element','render','ck-sidebar-item--no-animation'];(function(_0x97ea67,_0x25f747){const _0x2f3cb8=function(_0x54c5bb){while(--_0x54c5bb){_0x97ea67['push'](_0x97ea67['shift']());}};_0x2f3cb8(++_0x25f747);}(_0x25f7,0x8b));const _0x2f3c=function(_0x97ea67,_0x25f747){_0x97ea67=_0x97ea67-0x0;let _0x2f3cb8=_0x25f7[_0x97ea67];return _0x2f3cb8;};import{View as _0x24e165}from'ckeditor5/src/ui.js';import{toUnit as _0x4bf7e0}from'ckeditor5/src/utils.js';import _0x4f9f52 from'../../utils/createmutationobserver.js';const Ht=_0x4bf7e0('px');export default class C extends _0x24e165{constructor(_0x43f111){super(_0x43f111),this[_0x2f3c('0x6')]('top',0x0),this[_0x2f3c('0x6')](_0x2f3c('0x8'),0x0),this[_0x2f3c('0x7')](_0x2f3c('0x1'))['to'](this,_0x2f3c('0x2'),this,_0x2f3c('0x8'),(_0x19289c,_0x230648)=>_0x19289c+_0x230648),this['set'](_0x2f3c('0x5'),!0x1),this['_mutationObserver']=_0x4f9f52(()=>this[_0x2f3c('0x3')]()),this['_targetTop']=null,this['content']=this[_0x2f3c('0xa')]();const _0x3ef51b=this['bindTemplate'];this['setTemplate']({'tag':_0x2f3c('0x9'),'attributes':{'class':['ck-sidebar-item',_0x3ef51b['to'](_0x2f3c('0x5'),_0x2302d2=>_0x2302d2?_0x2f3c('0xd'):'')],'style':{'top':_0x3ef51b['to'](_0x2f3c('0x2'),_0x1e9266=>Ht(_0x1e9266))}},'children':this[_0x2f3c('0x0')]});}[_0x2f3c('0xc')](){super[_0x2f3c('0xc')](),this['_mutationObserver'][_0x2f3c('0x4')](this['element']);}[_0x2f3c('0x3')](){const _0x5cc6e8=this[_0x2f3c('0xb')]['clientHeight'];_0x5cc6e8&&(this['height']=_0x5cc6e8);}['destroy'](){this[_0x2f3c('0x0')][_0x2f3c('0xf')](),this['_mutationObserver'][_0x2f3c('0xe')](),super[_0x2f3c('0x10')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4fba=['setTemplate','minHeight','createCollection','ck-reset','set','number','bindTemplate','class','list'];(function(_0x150f04,_0x4fba5f){const _0x1e545e=function(_0x5c8876){while(--_0x5c8876){_0x150f04['push'](_0x150f04['shift']());}};_0x1e545e(++_0x4fba5f);}(_0x4fba,0xbc));const _0x1e54=function(_0x150f04,_0x4fba5f){_0x150f04=_0x150f04-0x0;let _0x1e545e=_0x4fba[_0x150f04];return _0x1e545e;};import{View as _0x430a79}from'ckeditor5/src/ui.js';import{toUnit as _0x2a9b9a}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x2a9b9a('px');export default class T extends _0x430a79{constructor(_0x214eeb){super(_0x214eeb);const _0x2ce7a0=this[_0x1e54('0x7')];this['set'](_0x1e54('0x2'),0x0),this[_0x1e54('0x5')]('class',''),this['list']=this[_0x1e54('0x3')](),this[_0x1e54('0x1')]({'tag':'div','attributes':{'class':['ck','ck-sidebar',_0x1e54('0x4'),_0x2ce7a0['to'](_0x1e54('0x8'))],'style':{'minHeight':_0x2ce7a0['to'](_0x1e54('0x2'),_0x1a3a3f=>_0x1e54('0x6')==typeof _0x1a3a3f?Ht(_0x1a3a3f+0xa):null)}},'children':this[_0x1e54('0x0')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43b5=['wideSidebar','get','_editorAnnotations','focus','EditorAnnotations','_integrateWithEditorAnnotations','annotations','change:container','blur','plugins','activeAnnotation','_destroyEditorAnnotationsIntegration','_refreshPositioningDebounced','_annotations','add','_activeAnnotation','has','stop','listenTo','isAttached','_attachToContainer','resize','switchTo','destroy','context','attach','refreshPositioning','off','pluginName','container','remove','widesidebar-detach-not-attached','removeEventListener','setActiveAnnotation','detach','updateTargetRect','getOrderedSelectedAnnotations','rearrange','set','addAnnotation','init','_detachFromContainer','refresh','editors','hasDomSelection','set:container','cancel','register','from','stopListening'];(function(_0xde8b74,_0x43b589){const _0xfb77d5=function(_0x43dad7){while(--_0x43dad7){_0xde8b74['push'](_0xde8b74['shift']());}};_0xfb77d5(++_0x43b589);}(_0x43b5,0x9e));const _0xfb77=function(_0xde8b74,_0x43b589){_0xde8b74=_0xde8b74-0x0;let _0xfb77d5=_0x43b5[_0xde8b74];return _0xfb77d5;};import{ContextPlugin as _0x2eae45,Context as _0xb7f1aa}from'ckeditor5/src/core.js';import _0x442f04 from'./annotationsuis.js';import _0x2df381 from'./sidebar.js';import{CKEditorError as _0x1558e3,Collection as _0x485f17}from'ckeditor5/src/utils.js';import{debounce as _0x24eb42}from'lodash-es';import _0x5dd352 from'./editorannotations.js';export default class n extends _0x2eae45{static get['requires'](){return[_0x2df381,_0x442f04];}static get[_0xfb77('0x14')](){return'WideSidebar';}constructor(_0x1a0ade){super(_0x1a0ade),this[_0xfb77('0xb')]=!0x1,this[_0xfb77('0x1e')](_0xfb77('0x2'),null),this[_0xfb77('0x30')]=null,this[_0xfb77('0x2c')]=new _0x485f17(),this[_0xfb77('0x4')]=_0x24eb42(()=>{this['annotations'][_0xfb77('0x12')]();},0xfa,{'leading':!0x1});}[_0xfb77('0x20')](){const _0x3cf33e=this[_0xfb77('0x10')]['plugins'][_0xfb77('0x2b')](_0x442f04),_0x142ecf=this[_0xfb77('0x10')]['plugins'][_0xfb77('0x2b')](_0x2df381);_0x3cf33e[_0xfb77('0x27')](_0xfb77('0x2a'),this),_0x142ecf[_0xfb77('0x15')]&&_0x3cf33e[_0xfb77('0xe')](_0xfb77('0x2a'));}['setActiveAnnotation'](_0x88a57){if(_0x88a57===this[_0xfb77('0x2')])return;const _0x7e507=this[_0xfb77('0x10')]['plugins']['get'](_0x2df381);_0x7e507[_0xfb77('0x7')]=_0x88a57;const _0x538557=this[_0xfb77('0x2')];this['activeAnnotation']=_0x88a57,_0x7e507['refresh']({'blurredAnnotation':_0x538557,'activatedAnnotation':this[_0xfb77('0x2')]});}[_0xfb77('0x11')](_0x778dad){this['annotations']=_0x778dad;const _0x190050=this[_0xfb77('0x10')][_0xfb77('0x1')][_0xfb77('0x2b')](_0x2df381);if(_0x190050[_0xfb77('0x5')]=_0x778dad,this['isAttached'])throw new _0x1558e3('widesidebar-attach-already-attached',this);this[_0xfb77('0xb')]=!0x0,this['listenTo'](_0x190050,_0xfb77('0x25'),()=>{this['detach'](),this[_0xfb77('0xa')](_0x190050,_0xfb77('0x31'),_0x50cebe=>{_0x50cebe[_0xfb77('0x13')](),this[_0xfb77('0x11')](_0x778dad);});}),_0x190050[_0xfb77('0xc')]({'viewClass':'ck-sidebar--wide'});const _0x2e28a5=_0x12403e=>{_0x12403e[_0xfb77('0x1b')](),_0x190050[_0xfb77('0x1f')](_0x12403e);};for(const _0x265104 of _0x778dad)_0x2e28a5(_0x265104);this['listenTo'](_0x778dad,_0xfb77('0x6'),(_0x4e1190,_0x1a9a15)=>{_0x2e28a5(_0x1a9a15);}),this['listenTo'](_0x778dad,_0xfb77('0x16'),(_0x447554,_0x49e3c6,_0x590ecf)=>{_0x190050[_0xfb77('0x1d')]({'removedAnnotation':_0x49e3c6,'previousAnnotation':_0x778dad[_0xfb77('0x2b')](_0x590ecf-0x1),'nextAnnotation':_0x778dad[_0xfb77('0x2b')](_0x590ecf+0x1)}),_0x49e3c6===this[_0xfb77('0x2')]&&this['setActiveAnnotation'](null);},{'priority':'high'}),this[_0xfb77('0xa')](_0x778dad,_0xfb77('0x2d'),(_0x516d14,_0x9a0717)=>{this[_0xfb77('0x19')](_0x9a0717);}),this[_0xfb77('0xa')](_0x778dad,_0xfb77('0x0'),()=>{this[_0xfb77('0x19')](null);});const _0x5cae4d=this[_0xfb77('0x10')]instanceof _0xb7f1aa?this['context'][_0xfb77('0x23')]:new _0x485f17([this[_0xfb77('0x10')]]);for(const _0x5176ff of _0x5cae4d)this[_0xfb77('0x2f')](_0x5176ff);this[_0xfb77('0xa')](_0x5cae4d,'add',(_0x3aed21,_0x3a8118)=>{this['listenTo'](_0x3a8118,'ready',()=>{this[_0xfb77('0x2f')](_0x3a8118);});}),this[_0xfb77('0xa')](_0x5cae4d,_0xfb77('0x16'),(_0x21f609,_0x24d7c0)=>{_0x24d7c0[_0xfb77('0x1')][_0xfb77('0x8')](_0xfb77('0x2e'))&&this[_0xfb77('0x3')](_0x24d7c0[_0xfb77('0x1')][_0xfb77('0x2b')](_0xfb77('0x2e')));}),window['addEventListener'](_0xfb77('0xd'),this[_0xfb77('0x4')]),this[_0xfb77('0x30')][_0xfb77('0x12')]();}[_0xfb77('0x1a')](){if(!this[_0xfb77('0xb')])throw new _0x1558e3(_0xfb77('0x17'),this);this[_0xfb77('0x19')](null);const _0x390be1=this[_0xfb77('0x10')][_0xfb77('0x1')][_0xfb77('0x2b')](_0x2df381);_0x390be1[_0xfb77('0x21')](this[_0xfb77('0x30')]),this[_0xfb77('0x29')](_0x390be1),this[_0xfb77('0x29')](this[_0xfb77('0x30')]),this[_0xfb77('0x10')]instanceof _0xb7f1aa&&this[_0xfb77('0x29')](this[_0xfb77('0x10')][_0xfb77('0x23')]);for(const _0x314623 of Array[_0xfb77('0x28')](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x314623);window[_0xfb77('0x18')]('resize',this[_0xfb77('0x4')]),this[_0xfb77('0x4')][_0xfb77('0x26')](),this[_0xfb77('0x2')]=null,this[_0xfb77('0xb')]=!0x1,this['annotations']=null;}[_0xfb77('0xf')](){this[_0xfb77('0xb')]&&this[_0xfb77('0x1a')]();}[_0xfb77('0x2f')](_0x1c7d52){const _0x2e0f32=_0x1c7d52[_0xfb77('0x1')][_0xfb77('0x2b')](_0x5dd352);if(!_0x2e0f32)return;const _0x3dcc83=()=>{const _0x1e31f8=_0x2e0f32[_0xfb77('0x1c')]({'annotations':this[_0xfb77('0x30')],'activeAnnotation':this[_0xfb77('0x2')]});this['setActiveAnnotation'](_0x1e31f8[0x0]||null);};this[_0xfb77('0xa')](_0x2e0f32,_0xfb77('0x22'),_0x3dcc83),this['listenTo'](_0x2e0f32,_0xfb77('0x0'),(_0x769fca,{isAnnotationTracked:_0x336212})=>{this[_0xfb77('0x2')]&&_0x336212(this['activeAnnotation'])&&this[_0xfb77('0x19')](null);}),this[_0xfb77('0xa')](_0x2e0f32,'uiUpdate',()=>{this[_0xfb77('0x4')]();}),this[_0xfb77('0xa')](this[_0xfb77('0x30')],_0xfb77('0x0'),_0xc50600=>{_0x2e0f32[_0xfb77('0x24')]()&&(_0x3dcc83(),_0xc50600[_0xfb77('0x9')]());},{'priority':'high'}),this[_0xfb77('0x2c')][_0xfb77('0x6')](_0x2e0f32);}['_destroyEditorAnnotationsIntegration'](_0x4770bd){this[_0xfb77('0x29')](_0x4770bd),this[_0xfb77('0x2c')][_0xfb77('0x16')](_0x4770bd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1040=['_itemIsContent','document','editor','_trimToContent','addMarker','$textProxy','getRanges','end','backward','selection','element','schema','substr','_hasContent','push','getLastMatchingPosition','isObject','start','isEnabled','tableCell','execute','change','model','refresh','comment:'];(function(_0x1d92f7,_0x1040cc){const _0xcdfde4=function(_0x17eee1){while(--_0x17eee1){_0x1d92f7['push'](_0x1d92f7['shift']());}};_0xcdfde4(++_0x1040cc);}(_0x1040,0xe0));const _0xcdfd=function(_0x1d92f7,_0x1040cc){_0x1d92f7=_0x1d92f7-0x0;let _0xcdfde4=_0x1040[_0x1d92f7];return _0xcdfde4;};import{Command as _0x4d0ec1}from'ckeditor5/src/core.js';import{uid as _0x46f265}from'ckeditor5/src/utils.js';export default class G extends _0x4d0ec1{[_0xcdfd('0x18')](){const _0x5d3a48=this[_0xcdfd('0x3')]['model'][_0xcdfd('0x2')][_0xcdfd('0xa')];for(const _0x84835c of _0x5d3a48['getRanges']())if(this[_0xcdfd('0xe')](_0x84835c))return void(this['isEnabled']=!0x0);this[_0xcdfd('0x13')]=!0x1;}[_0xcdfd('0x15')]({threadId:_0x30a640=_0x46f265()}={}){const _0x12b680=this[_0xcdfd('0x3')][_0xcdfd('0x17')],_0x2b3126=[];for(const _0x1fef72 of _0x12b680[_0xcdfd('0x2')][_0xcdfd('0xa')][_0xcdfd('0x7')]())this[_0xcdfd('0xe')](_0x1fef72)&&_0x2b3126[_0xcdfd('0xf')](this[_0xcdfd('0x4')](_0x1fef72));_0x12b680[_0xcdfd('0x16')](_0x317581=>{for(const _0x39bba1 of _0x2b3126){const _0x457fcf=_0x46f265()[_0xcdfd('0xd')](0x1,0x5),_0x175ebc=_0xcdfd('0x0')+_0x30a640+':'+_0x457fcf;_0x317581[_0xcdfd('0x5')](_0x175ebc,{'range':_0x39bba1,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0xcdfd('0xe')](_0xf32584){for(const _0x65d4dc of _0xf32584['getItems']())if(this['_itemIsContent'](_0x65d4dc))return!0x0;return!0x1;}[_0xcdfd('0x1')](_0x58862a){return _0x58862a['is'](_0xcdfd('0x6'))||this[_0xcdfd('0x3')][_0xcdfd('0x17')][_0xcdfd('0xc')][_0xcdfd('0x11')](_0x58862a)&&!_0x58862a['is'](_0xcdfd('0xb'),_0xcdfd('0x14'));}[_0xcdfd('0x4')](_0x292244){const _0x42c8b4=_0x346499=>!this[_0xcdfd('0x1')](_0x346499['item']),_0x1a3665=_0x292244[_0xcdfd('0x12')][_0xcdfd('0x10')](_0x42c8b4),_0x58dc6d=_0x292244[_0xcdfd('0x8')][_0xcdfd('0x10')](_0x42c8b4,{'direction':_0xcdfd('0x9')});return this[_0xcdfd('0x3')]['model']['createRange'](_0x1a3665,_0x58dc6d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x464b=['focus','change:archivedAt','add','listenTo','addCommentThread','plugins','_calculatePosition','init','removeCommentThread','remove','isActive','activate','stopListening','highest','archivedAt','length','CommentsArchive','context','pluginName','requires','has','collection','archivedThreads','get'];(function(_0x4ec164,_0x464b69){const _0x18c74f=function(_0xabe7aa){while(--_0xabe7aa){_0x4ec164['push'](_0x4ec164['shift']());}};_0x18c74f(++_0x464b69);}(_0x464b,0x1af));const _0x18c7=function(_0x4ec164,_0x464b69){_0x4ec164=_0x4ec164-0x0;let _0x18c74f=_0x464b[_0x4ec164];return _0x18c74f;};import{ContextPlugin as _0x23a63a}from'ckeditor5/src/core.js';import{Collection as _0x2fbaf3}from'ckeditor5/src/utils.js';import _0x5c4a65 from'./commentsrepository.js';import _0x4fe363 from'../annotations/annotations.js';export default class p extends _0x23a63a{static get[_0x18c7('0x13')](){return _0x18c7('0x11');}static get[_0x18c7('0x14')](){return[_0x5c4a65,_0x4fe363];}constructor(_0x37d94b){super(_0x37d94b),this[_0x18c7('0x17')]=new _0x2fbaf3();}[_0x18c7('0x8')](){const _0x478d6e=this[_0x18c7('0x12')],_0xb06507=_0x478d6e[_0x18c7('0x6')][_0x18c7('0x0')](_0x5c4a65),_0x241870=_0x478d6e[_0x18c7('0x6')]['get'](_0x4fe363);this[_0x18c7('0x4')](_0xb06507,_0x18c7('0x5'),(_0x3ea405,{threadId:_0x4ac1b3})=>{const _0x16aec9=_0xb06507['getCommentThread'](_0x4ac1b3);_0x16aec9[_0x18c7('0xf')]&&this[_0x18c7('0x17')]['add'](_0x16aec9,this[_0x18c7('0x7')](_0x16aec9['archivedAt'])),this[_0x18c7('0x4')](_0x16aec9,_0x18c7('0x2'),(_0x265b0e,_0x40928d,_0x61c2ee)=>{_0x61c2ee?this[_0x18c7('0x17')][_0x18c7('0x15')](_0x16aec9)||this[_0x18c7('0x17')][_0x18c7('0x3')](_0x16aec9,this[_0x18c7('0x7')](_0x16aec9[_0x18c7('0xf')])):this[_0x18c7('0x17')][_0x18c7('0x15')](_0x16aec9)&&this[_0x18c7('0x17')][_0x18c7('0xa')](_0x16aec9);});}),this['listenTo'](_0xb06507,_0x18c7('0x9'),(_0xce452b,{threadId:_0x1ebe26})=>{const _0x38712d=_0xb06507['getCommentThread'](_0x1ebe26);this[_0x18c7('0xd')](_0x38712d),this['archivedThreads']['has'](_0x38712d)&&this[_0x18c7('0x17')][_0x18c7('0xa')](_0x38712d);},{'priority':_0x18c7('0xe')}),this['listenTo'](_0x241870[_0x18c7('0x16')],_0x18c7('0x1'),(_0xc5ffa8,_0x40d93f)=>{_0x40d93f[_0x18c7('0xb')]=!0x0,_0x241870[_0x18c7('0xc')](_0x40d93f);});}[_0x18c7('0x7')](_0x5b76e2){const _0xef9d23=[...this[_0x18c7('0x17')]]['findIndex'](_0x224090=>_0x224090['archivedAt']<_0x5b76e2);return _0xef9d23>-0x1?_0xef9d23:this[_0x18c7('0x17')][_0x18c7('0x10')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4233=['view','findIndex','_pendingThreads','editor','position','channelId','_calculatePosition','pluginName','annotationViews','length','componentFactory','contains','set','get','CommentsArchiveUI','find','_visibleAnnotations','stopListening','_threadToController','init','innerView','push','_handleAnnotationFocusableElements','config','focusableElements','change:isOpen','isVisible','collaboration.channelId','COMMENTS_ARCHIVE','Annotations','getByInnerView','_createArchiveUIDropdown','commentsArchiveView','buttonView','locale','focusTracker','plugins','ck-body','filter','archivedThreads','archivedAt','mainView','classList','listenTo','remove','panelView','add','collection'];(function(_0x47e50c,_0x42335a){const _0x13496b=function(_0x44b089){while(--_0x44b089){_0x47e50c['push'](_0x47e50c['shift']());}};_0x13496b(++_0x42335a);}(_0x4233,0x192));const _0x1349=function(_0x47e50c,_0x42335a){_0x47e50c=_0x47e50c-0x0;let _0x13496b=_0x4233[_0x47e50c];return _0x13496b;};import'../../theme/commentsarchive.css';import{Plugin as _0x394b0f}from'ckeditor5/src/core.js';import{createDropdown as _0x4e2b61,ViewCollection as _0x42f5c3}from'ckeditor5/src/ui.js';import _0x498082 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x3f6b24}from'../utils/common-translations.js';import _0x5a2ff2 from'./ui/view/commentsarchiveview.js';import _0x292d4e from'./commentsarchive.js';export default class a extends _0x394b0f{static get[_0x1349('0x25')](){return _0x1349('0x2c');}static get['requires'](){return[_0x292d4e];}constructor(_0x566b8a){super(_0x566b8a),this[_0x1349('0x26')]=new _0x42f5c3(),this['_pendingThreads']=[];}[_0x1349('0x1')](){this['editor']['ui'][_0x1349('0x28')][_0x1349('0x1c')]('commentsArchive',()=>this[_0x1349('0xd')]());const _0x2a05ce=this['editor'][_0x1349('0x12')][_0x1349('0x2b')](_0x292d4e),_0x5b3a8b=this[_0x1349('0x21')]['plugins'][_0x1349('0x2b')](_0x1349('0xb')),_0x126992=this[_0x1349('0x21')][_0x1349('0x12')][_0x1349('0x2b')]('CommentsRepository');this['listenTo'](_0x2a05ce[_0x1349('0x15')],_0x1349('0x1c'),(_0x13f882,_0x5e53c9)=>{const _0x50029e=this['editor']['config'][_0x1349('0x2b')](_0x1349('0x9'));if(!_0x50029e||_0x5e53c9[_0x1349('0x23')]===_0x50029e){const _0x15b426=this[_0x1349('0x24')](_0x5e53c9[_0x1349('0x16')]),_0x579a3c=_0x126992[_0x1349('0x0')][_0x1349('0x2b')](_0x5e53c9);if(!_0x579a3c)return void this[_0x1349('0x20')][_0x1349('0x3')]({'thread':_0x5e53c9,'position':_0x15b426});const _0x3dc28a=_0x5b3a8b['getByInnerView'](_0x579a3c[_0x1349('0x1e')]);_0x3dc28a[_0x1349('0x8')]&&_0x5b3a8b[_0x1349('0x2e')]['remove'](_0x3dc28a),this[_0x1349('0x26')]['add'](_0x3dc28a[_0x1349('0x1e')],_0x15b426);}}),this[_0x1349('0x19')](_0x5b3a8b[_0x1349('0x1d')],'add',(_0xfed13e,_0x543744)=>{const _0x55089c=this[_0x1349('0x20')][_0x1349('0x2d')](({thread:_0x4af34c})=>{const _0x1712db=_0x126992[_0x1349('0x0')]['get'](_0x4af34c);return _0x1712db&&_0x543744[_0x1349('0x2')]===_0x1712db[_0x1349('0x1e')];});_0x55089c&&(this[_0x1349('0x26')][_0x1349('0x1c')](_0x543744[_0x1349('0x1e')],_0x55089c[_0x1349('0x22')]),this[_0x1349('0x20')]['splice'](this[_0x1349('0x20')]['indexOf'](_0x55089c),0x1));}),this[_0x1349('0x19')](_0x2a05ce[_0x1349('0x15')],_0x1349('0x1a'),(_0x3d2bfc,_0x5c543b)=>{const _0x24b735=this[_0x1349('0x21')][_0x1349('0x5')][_0x1349('0x2b')](_0x1349('0x9'));if(!_0x24b735||_0x5c543b['channelId']===_0x24b735){const _0x3d2a85=_0x126992[_0x1349('0x0')][_0x1349('0x2b')](_0x5c543b),_0x2b035d=_0x5b3a8b[_0x1349('0xc')](_0x3d2a85[_0x1349('0x1e')]);this['annotationViews'][_0x1349('0x1a')](_0x2b035d[_0x1349('0x1e')]),this[_0x1349('0x2f')](_0x2b035d[_0x1349('0x6')]);}});}[_0x1349('0x4')](_0x3d11b2,_0x22547b){for(const _0x4c75cf of _0x22547b[_0x1349('0x6')])_0x4c75cf[_0x1349('0x18')]['contains']('ck-body')&&_0x3d11b2[_0x1349('0x11')][_0x1349('0x1c')](_0x4c75cf);this['listenTo'](_0x22547b[_0x1349('0x6')],_0x1349('0x1c'),(_0x51885c,_0x15eb3e)=>{_0x15eb3e['classList']['contains'](_0x1349('0x13'))&&_0x3d11b2[_0x1349('0x11')]['add'](_0x15eb3e);}),this[_0x1349('0x19')](_0x22547b[_0x1349('0x6')],_0x1349('0x1a'),(_0x462a00,_0x44f277)=>{_0x44f277[_0x1349('0x18')][_0x1349('0x29')]('ck-body')&&_0x3d11b2['focusTracker'][_0x1349('0x1a')](_0x44f277);});}['_calculatePosition'](_0x138409){const _0x3a4a12=this['editor'][_0x1349('0x5')]['get'](_0x1349('0x9')),_0x193db5=[...this[_0x1349('0x21')]['plugins']['get'](_0x292d4e)['archivedThreads']][_0x1349('0x14')](_0x28ca5d=>_0x28ca5d[_0x1349('0x23')]===_0x3a4a12)[_0x1349('0x1f')](_0x37bad7=>_0x37bad7['archivedAt']<_0x138409);return _0x193db5>-0x1?_0x193db5-0x1:this[_0x1349('0x26')][_0x1349('0x27')];}[_0x1349('0xd')](){const _0x2f5c86=this['editor'],_0x3f59b2=this[_0x1349('0x21')][_0x1349('0x12')][_0x1349('0x2b')]('Annotations'),_0x4f4626=_0x4e2b61(_0x2f5c86[_0x1349('0x10')]);_0x4f4626[_0x1349('0xf')][_0x1349('0x2a')]({'icon':_0x498082,'label':_0x3f6b24(_0x2f5c86[_0x1349('0x10')],_0x1349('0xa')),'tooltip':!0x0}),_0x4f4626[_0x1349('0x1b')]['extendTemplate']({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x4f4626['on'](_0x1349('0x7'),(_0x171083,_0x55c411,_0x111ead)=>{this[_0x1349('0xe')]||(this[_0x1349('0xe')]=new _0x5a2ff2(_0x2f5c86[_0x1349('0x10')],this['annotationViews'])),_0x111ead?_0x4f4626[_0x1349('0x1b')]['children']['add'](this[_0x1349('0xe')]):_0x4f4626[_0x1349('0x1b')]['children'][_0x1349('0x1a')](this[_0x1349('0xe')]);});for(const _0x2b1d58 of this['annotationViews']){const _0x8e594f=_0x3f59b2[_0x1349('0xc')](_0x2b1d58[_0x1349('0x17')]);this[_0x1349('0x4')](_0x4f4626,_0x8e594f);}return _0x4f4626[_0x1349('0x19')](this['annotationViews'],_0x1349('0x1c'),(_0x474f58,_0x322123)=>{const _0x39f57a=_0x3f59b2[_0x1349('0xc')](_0x322123[_0x1349('0x17')]);this[_0x1349('0x4')](_0x4f4626,_0x39f57a);}),_0x4f4626[_0x1349('0x19')](this[_0x1349('0x26')],'remove',(_0x549eb4,_0x414d16)=>{const _0x76f000=_0x3f59b2[_0x1349('0xc')](_0x414d16[_0x1349('0x17')]);for(const _0x55036b of _0x76f000[_0x1349('0x6')])_0x55036b[_0x1349('0x18')][_0x1349('0x29')]('ck-body')&&_0x4f4626[_0x1349('0x11')]['remove'](_0x55036b);}),_0x4f4626;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2da2=['data','markers','openNewCommentThread','$graveyard','change:isThreadsLoadingPaused','ready','commands','editing','_handleMarkerAddAndRemove','_initAriaMarkerChangeAnnouncements','upcast','isThreadsLoadingPaused','ck-comment-marker','for','newRange','removeCommentThread','state','change:isReadOnly','start','size','getWalker','isCollapsed','registerPostFixer','getAttribute','requires','managedUsingOperations','then','join','registerAnnotation','unlinkedAt','change:activeMarker','editor','_detachCommentThread','LEAVE_COMMENT_ANNOUNCEMENT','addMarker:','ignoreResolvedComments','focus','isLocal','item','removeMarker','from','editingDowncast','setUnlinkedAt','getAllMarkersForId','schema','pluginName','destroy','addComment','root','scrollToThreadMarker','markerToHighlight','hasDomSelection','isResolved','_attachResolvedThread','destroyed','elementToElement','$textProxy','resolveCommentThread','consume','document','ENTER_COMMENT_ANNOUNCEMENT','consumable','clear','removeMarker:','getCommentThread','CommentsEditing','createElement','conversion','_handleThreadMarker','change','getByInnerView','_hasTargetInContent','reopenCommentThread','render','low','length','text','reconvertMarker','announce','refreshVisibility','markerName','get','archivedAt','context','differ','$marker','ck-comment-marker--active','markerToData','init','add','once','hasContent','comment:','_threads','fetchCommentThread','_threadToController','view','model','set','_reconvertMarkers','name','comment','collaboration.channelId','end','comments','push','_getTextContext','attachTo','_getTargetForId','isObject','createRange','delete','switchReadOnly','config','dataToMarker','listenTo','substring','isEqual','activeMarker','startsWith','plugins','getChangedMarkers','hasMarkerForId','isAttached','group','affectsData','updateMarker','_initializeMarkerConverters'];(function(_0x30d665,_0x2da268){const _0x2ab7cf=function(_0x44b755){while(--_0x44b755){_0x30d665['push'](_0x30d665['shift']());}};_0x2ab7cf(++_0x2da268);}(_0x2da2,0x131));const _0x2ab7=function(_0x30d665,_0x2da268){_0x30d665=_0x30d665-0x0;let _0x2ab7cf=_0x2da2[_0x30d665];return _0x2ab7cf;};import{Plugin as _0x4fff33}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x1c7a0f}from'ckeditor5/src/utils.js';import _0x31a553 from'./commentsrepository.js';import _0x22ee02 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x2e7497,getAllMarkersDomElementsSorted as _0x411292}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x118948 from'../annotations/editorannotations.js';import _0x2122b7 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x1bf02e from'./integrations/importword.js';import _0x370361 from'../annotations/annotations.js';import{getTranslation as _0x4409ff}from'../utils/common-translations.js';export default class r extends _0x4fff33{static get[_0x2ab7('0x67')](){return[_0x31a553,_0x118948,_0x2122b7,_0x1bf02e];}static get[_0x2ab7('0x7c')](){return _0x2ab7('0x10');}constructor(_0xce59bc){super(_0xce59bc),this[_0x2ab7('0x31')](_0x2ab7('0x5a'),!0x0),_0xce59bc[_0x2ab7('0x4f')][_0x2ab7('0x29')](_0x2ab7('0x54'),()=>this[_0x2ab7('0x5a')]=!0x1),this[_0x2ab7('0x31')](_0x2ab7('0x45'),null),this['on'](_0x2ab7('0x6d'),(_0x41a11a,_0x2295a4,_0x1a098d,_0x595e24)=>{const _0x5e46bf=_0x1a098d?ot(_0x1a098d)['id']:null;if(_0xce59bc[_0x2ab7('0x30')][_0x2ab7('0x14')](()=>{if(_0x5e46bf){const _0x4c52d6=this[_0x2ab7('0x7a')](_0x5e46bf);for(const _0x45daff of _0x4c52d6)_0xce59bc[_0x2ab7('0x56')][_0x2ab7('0x1c')](_0x45daff);}if(_0x595e24){const {id:_0x1b1149}=ot(_0x595e24),_0x4f573f=this[_0x2ab7('0x7a')](_0x1b1149);for(const _0x5b0f0f of _0x4f573f)_0xce59bc[_0x2ab7('0x56')]['reconvertMarker'](_0x5b0f0f);}}),_0x5e46bf){const _0x4f4682=_0xce59bc['plugins'][_0x2ab7('0x20')](_0x31a553)[_0x2ab7('0xf')](_0x5e46bf);_0x4f4682&&_0x4f4682[_0x2ab7('0x3')]&&this[_0x2ab7('0x0')](_0x5e46bf);}}),this[_0x2ab7('0x58')]();}[_0x2ab7('0x27')](){const _0x33f62a=this[_0x2ab7('0x6e')],_0x3db161=_0x33f62a[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x120231=_0x33f62a[_0x2ab7('0x40')][_0x2ab7('0x20')]('collaboration.channelId');_0x33f62a[_0x2ab7('0x55')][_0x2ab7('0x28')]('addCommentThread',new _0x22ee02(_0x33f62a)),this['listenTo'](_0x33f62a,_0x2ab7('0x60'),(_0x344180,_0x2b9f05,_0x173adf)=>{_0x3db161[_0x2ab7('0x3f')](_0x173adf,_0x33f62a[_0x2ab7('0x40')][_0x2ab7('0x20')](_0x2ab7('0x35')));}),this['listenTo'](_0x3db161,tt('addCommentThread',_0x120231),(_0x2d7ae4,{threadId:_0x59a8ac})=>{const _0x2ab049=this[_0x2ab7('0x6e')][_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553)[_0x2ab7('0xf')](_0x59a8ac);_0x2ab049&&_0x2ab049[_0x2ab7('0x21')]&&this[_0x2ab7('0x4')](_0x59a8ac);}),this[_0x2ab7('0x42')](_0x3db161,tt(_0x2ab7('0x5e'),_0x120231),(_0x5d11dc,{threadId:_0x5dc679})=>{_0x33f62a[_0x2ab7('0x30')]['enqueueChange']({'isUndoable':!0x1},_0x1b3166=>{const _0x1ce844=this[_0x2ab7('0x7a')](_0x5dc679);for(const _0x3a36eb of _0x1ce844)_0x1b3166[_0x2ab7('0x76')](_0x3a36eb);});}),this[_0x2ab7('0x42')](_0x3db161,tt(_0x2ab7('0x8'),_0x120231),(_0x391e4c,{threadId:_0x1d5a06})=>{(this['_attachResolvedThread'](_0x1d5a06),this[_0x2ab7('0x32')](_0x1d5a06),this[_0x2ab7('0x6e')][_0x2ab7('0x56')][_0x2ab7('0x2f')][_0x2ab7('0x2')])&&(this[_0x2ab7('0x6e')][_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553)[_0x2ab7('0xf')](_0x1d5a06)[_0x2ab7('0x6c')]||this[_0x2ab7('0x6e')][_0x2ab7('0x56')][_0x2ab7('0x2f')][_0x2ab7('0x73')]());},{'priority':_0x2ab7('0x19')}),this['listenTo'](_0x3db161,tt(_0x2ab7('0x17'),_0x120231),(_0x87877d,{threadId:_0x402a58})=>{this[_0x2ab7('0x32')](_0x402a58);},{'priority':_0x2ab7('0x19')}),this['listenTo'](_0x3db161,tt(_0x2ab7('0x7e'),_0x120231),(_0x148d60,{threadId:_0x5978d0,isFromAdapter:_0x53bf27})=>{const _0x2fb592=this[_0x2ab7('0x7a')](_0x5978d0);if(_0x53bf27||0x0==_0x2fb592[_0x2ab7('0x1a')]||!_0x3db161['hasCommentThread'](_0x5978d0))return;0x1===_0x3db161[_0x2ab7('0xf')](_0x5978d0)['length']&&_0x33f62a[_0x2ab7('0x30')]['enqueueChange']({'isUndoable':!0x1},_0x9d530e=>{for(const _0x488175 of _0x2fb592)_0x9d530e[_0x2ab7('0x4d')](_0x488175,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x2ab7('0x4e')](),this['_handleMarkerAddAndRemove']();}['destroy'](){const _0xa46cee=this['editor'][_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x4b90c7=this['editor'][_0x2ab7('0x40')]['get']('collaboration.channelId');for(const _0x47cfcd of _0xa46cee['getCommentThreads']({'channelId':_0x4b90c7}))_0xa46cee[_0x2ab7('0x6f')](_0x47cfcd['id']),_0xa46cee[_0x2ab7('0x2c')]['delete'](_0x47cfcd['id']);super[_0x2ab7('0x7d')]();}['hasMarkerForId'](_0x3ea6a0){return this[_0x2ab7('0x7a')](_0x3ea6a0)['length']>0x0;}['getAllMarkersForId'](_0x7e5f30){const _0x546436=[];for(const _0x4d9222 of this[_0x2ab7('0x6e')][_0x2ab7('0x30')]['markers'])_0x4d9222[_0x2ab7('0x33')][_0x2ab7('0x46')](_0x2ab7('0x2b')+_0x7e5f30)&&_0x546436[_0x2ab7('0x38')](_0x4d9222);return _0x546436;}[_0x2ab7('0x0')](_0x25e9b3){const _0x5212e4=this[_0x2ab7('0x3b')](_0x25e9b3);_0x5212e4&&setTimeout(()=>{this[_0x2ab7('0x45')]&&ot(this[_0x2ab7('0x45')])['id']===_0x25e9b3&&_0x1c7a0f({'target':_0x5212e4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x455ca7){this[_0x2ab7('0x6e')][_0x2ab7('0x30')]['change'](()=>{for(const _0x80598e of this[_0x2ab7('0x7a')](_0x455ca7))this[_0x2ab7('0x6e')][_0x2ab7('0x56')][_0x2ab7('0x1c')](_0x80598e);});}[_0x2ab7('0x4')](_0x3a4998){const _0x3c5463=this[_0x2ab7('0x6e')][_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x44ee9d=this[_0x2ab7('0x6e')][_0x2ab7('0x47')]['get'](_0x118948),_0x51a07d=_0x3c5463[_0x2ab7('0xf')](_0x3a4998);if(!_0x51a07d[_0x2ab7('0x4a')]){const _0x1ecce6=_0x51a07d['attachTo'](()=>this[_0x2ab7('0x3b')](_0x51a07d['id']));_0x44ee9d[_0x2ab7('0x6b')](_0x1ecce6),_0x51a07d[_0x2ab7('0x16')]=!0x1;}}[_0x2ab7('0x4e')](){const _0xb1629a=this[_0x2ab7('0x6e')];_0xb1629a[_0x2ab7('0x12')]['for'](_0x2ab7('0x78'))[_0x2ab7('0x1')]({'model':_0x2ab7('0x34'),'view':(_0x1d98d0,_0x123163)=>{const {id:_0x500435}=ot(_0x1d98d0[_0x2ab7('0x1f')]),_0x7da421=_0xb1629a['plugins'][_0x2ab7('0x20')](_0x31a553)[_0x2ab7('0xf')](_0x500435),_0x40d765=this[_0x2ab7('0x45')]&&ot(this['activeMarker'])['id']===_0x500435;if(_0x7da421&&_0x7da421[_0x2ab7('0x3')]&&!_0x40d765&&_0x1d98d0[_0x2ab7('0x75')])return _0x123163[_0x2ab7('0xc')][_0x2ab7('0x9')](_0x1d98d0['item'],_0x2ab7('0x71')+_0x1d98d0[_0x2ab7('0x1f')]),_0x123163[_0x2ab7('0xc')][_0x2ab7('0x9')](_0x1d98d0[_0x2ab7('0x75')],_0x2ab7('0xe')+_0x1d98d0[_0x2ab7('0x1f')]),{'classes':[]};const _0x208f28=[_0x2ab7('0x5b')];return _0x40d765&&_0x208f28[_0x2ab7('0x38')](_0x2ab7('0x25')),{'classes':_0x208f28,'attributes':{'data-comment':_0x500435}};}}),_0xb1629a['conversion'][_0x2ab7('0x5c')]('dataDowncast')[_0x2ab7('0x26')]({'model':_0x2ab7('0x34'),'view':(_0x32792b,{options:_0xf82266})=>{const _0x1eb309=_0xb1629a[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x3d792d=_0xb1629a[_0x2ab7('0x30')][_0x2ab7('0x50')][_0x2ab7('0x20')](_0x32792b),{id:_0x235195,part:_0x3f17ea}=ot(_0x32792b);if(_0x3d792d&&!_0x3d792d[_0x2ab7('0x4c')])return null;if(_0xf82266[_0x2ab7('0x72')]){const _0x24af9d=_0x1eb309[_0x2ab7('0xf')](_0x235195);if(_0x24af9d&&_0x24af9d[_0x2ab7('0x3')])return null;}return{'group':_0x2ab7('0x34'),'name':_0x3f17ea?_0x235195+':'+_0x3f17ea:_0x235195};}}),_0xb1629a[_0x2ab7('0x12')][_0x2ab7('0x5c')](_0x2ab7('0x59'))[_0x2ab7('0x6')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x2db755,{writer:_0x79c0f4})=>_0x79c0f4[_0x2ab7('0x11')](_0x2ab7('0x24'),{'data-name':_0x2ab7('0x2b')+_0x2db755[_0x2ab7('0x66')]('id')})}),_0xb1629a[_0x2ab7('0x12')]['for'](_0x2ab7('0x59'))[_0x2ab7('0x41')]({'view':_0x2ab7('0x34')});}[_0x2ab7('0x57')](){const _0x41d863=this[_0x2ab7('0x6e')],_0x160ffb=_0x41d863[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553),_0x3bb4f6=new Set(),_0x294916=new Set();_0x41d863[_0x2ab7('0x30')]['document'][_0x2ab7('0x65')](_0x78bc1a=>{let _0x1f9c0b=!0x1;for(const {name:_0x23d51d,data:_0x13fe84}of _0x41d863['model']['document'][_0x2ab7('0x23')][_0x2ab7('0x48')]()){const {group:_0x218bcf,id:_0x1319c4}=ot(_0x23d51d);let _0x3fff30=_0x13fe84['newRange'];if(_0x2ab7('0x34')!==_0x218bcf||!_0x3fff30)continue;const _0x17f077=_0x2ab7('0x52')===_0x3fff30[_0x2ab7('0x7f')]['rootName'];_0x17f077||(_0x3fff30=et(_0x3fff30,_0x41d863[_0x2ab7('0x30')]),!_0x3fff30||_0x3fff30[_0x2ab7('0x64')]||!_0x13fe84[_0x2ab7('0x5d')]||_0x3fff30[_0x2ab7('0x44')](_0x13fe84[_0x2ab7('0x5d')]))?_0x41d863[_0x2ab7('0x30')][_0x2ab7('0x2a')](_0x3fff30)&&!_0x17f077?this[_0x2ab7('0x5a')]?_0x3bb4f6[_0x2ab7('0x28')](_0x23d51d):this[_0x2ab7('0x13')](_0x23d51d,_0x1319c4):(_0x294916[_0x2ab7('0x28')](_0x23d51d),_0x3bb4f6[_0x2ab7('0x3e')](_0x23d51d),_0x78bc1a[_0x2ab7('0x76')](_0x23d51d),_0x1f9c0b=!0x0):(_0x78bc1a[_0x2ab7('0x4d')](_0x23d51d,{'range':_0x3fff30}),_0x1f9c0b=!0x0);}return _0x1f9c0b;}),this['on'](_0x2ab7('0x53'),(_0xf294c4,_0x1df3b2,_0x25c30c)=>{if(!_0x25c30c&&_0x3bb4f6[_0x2ab7('0x62')])for(const _0x1d14a5 of _0x3bb4f6){const {id:_0x90ae73}=ot(_0x1d14a5);_0x3bb4f6['delete'](_0x1d14a5),_0x41d863[_0x2ab7('0x30')][_0x2ab7('0x50')][_0x2ab7('0x20')](_0x1d14a5)&&this[_0x2ab7('0x13')](_0x1d14a5,_0x90ae73);}}),this['listenTo'](_0x41d863[_0x2ab7('0x30')][_0x2ab7('0xa')],'change',(_0x1146c2,_0x3daaea)=>{for(const {name:_0x32fd91,data:{newRange:_0x5013c9}}of _0x41d863[_0x2ab7('0x30')][_0x2ab7('0xa')]['differ'][_0x2ab7('0x48')]()){const {group:_0x16a779,id:_0x4e666e}=ot(_0x32fd91);if(_0x2ab7('0x34')!==_0x16a779)continue;const _0x39d09e=_0x160ffb[_0x2ab7('0xf')](_0x4e666e),_0x1577f9=this[_0x2ab7('0x49')](_0x4e666e);_0x39d09e&&(_0x39d09e['_hasTargetInContent']||_0x41d863[_0x2ab7('0x56')][_0x2ab7('0x2f')]['once'](_0x2ab7('0x18'),()=>{const _0x2d3f02=_0x41d863[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x370361),_0x582f8c=_0x160ffb[_0x2ab7('0x2e')][_0x2ab7('0x20')](_0x39d09e)[_0x2ab7('0x2f')];_0x2d3f02['getByInnerView'](_0x582f8c)[_0x2ab7('0x1e')]();},{'priority':_0x2ab7('0x19')}),_0x39d09e[_0x2ab7('0x16')]=_0x1577f9||!!_0x5013c9),_0x5013c9||(_0x294916[_0x2ab7('0x28')](_0x32fd91),_0x3bb4f6[_0x2ab7('0x3e')](_0x32fd91));}if(_0x3daaea[_0x2ab7('0x74')])for(const _0x263326 of _0x294916){const {id:_0x44ac13}=ot(_0x263326),_0x452624=_0x160ffb['getCommentThread'](_0x44ac13),_0x3834e7=this[_0x2ab7('0x49')](_0x44ac13);_0x3bb4f6[_0x2ab7('0x3e')](_0x263326),!_0x452624||_0x3834e7||_0x452624[_0x2ab7('0x6c')]||_0x452624[_0x2ab7('0x79')](new Date());}_0x294916[_0x2ab7('0xd')]();});}[_0x2ab7('0x3b')](_0x318290){const _0x5644c2=this[_0x2ab7('0x6e')],_0x3e61c7=this[_0x2ab7('0x7a')](_0x318290);return _0x411292(_0x5644c2[_0x2ab7('0x56')],_0x3e61c7);}[_0x2ab7('0x39')](_0x3c5a6a){const _0x1562cd=this[_0x2ab7('0x7a')](_0x3c5a6a);let _0x10d960='',_0x583a1c=!0x1;for(const _0x53164d of _0x1562cd){const _0x2f1f5f=_0x53164d['getRange']();for(const _0x48b80c of Array[_0x2ab7('0x77')](_0x2f1f5f['getItems']()))_0x48b80c['is'](_0x2ab7('0x7'))?(_0x10d960&&_0x583a1c&&(_0x10d960+='\x20',_0x583a1c=!0x1),_0x10d960+=_0x48b80c['data']):_0x583a1c=!0x0;_0x583a1c=!0x0;}return _0x10d960[_0x2ab7('0x43')](0x0,0x96);}['_attachMarkerToThread'](_0x923d12,_0x20cf3d){const _0x48d1e3=this[_0x2ab7('0x6e')],_0x19412e=_0x48d1e3[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x31a553);let _0x327cdc=_0x19412e[_0x2ab7('0xf')](_0x20cf3d);const _0x442f97=_0x48d1e3[_0x2ab7('0x40')][_0x2ab7('0x20')]('collaboration.channelId'),_0x1f3645=_0x48d1e3[_0x2ab7('0x47')][_0x2ab7('0x20')](_0x118948);if(_0x327cdc&&(_0x327cdc[_0x2ab7('0x6c')]&&_0x327cdc['setUnlinkedAt'](null),_0x327cdc['isAttached']))return _0x327cdc;return!this[_0x2ab7('0x7a')](_0x20cf3d)[0x0][_0x2ab7('0x68')]?_0x48d1e3[_0x2ab7('0x56')][_0x2ab7('0x2f')][_0x2ab7('0x29')]('render',()=>{if(_0x19412e[_0x2ab7('0xf')](_0x20cf3d))return;const _0x5cd485=_0x48d1e3[_0x2ab7('0x47')]['get'](_0x370361);_0x327cdc=_0x19412e[_0x2ab7('0x51')]({'channelId':_0x442f97,'threadId':_0x20cf3d,'target':()=>this[_0x2ab7('0x3b')](_0x20cf3d),'context':{'type':_0x2ab7('0x1b'),'value':this[_0x2ab7('0x39')](_0x20cf3d)}});const _0x2ecc59=_0x19412e[_0x2ab7('0x2e')][_0x2ab7('0x20')](_0x327cdc)[_0x2ab7('0x2f')],_0x22f1dc=_0x5cd485[_0x2ab7('0x15')](_0x2ecc59);_0x22f1dc&&_0x1f3645[_0x2ab7('0x6b')](_0x22f1dc);},{'priority':'low'}):_0x19412e[_0x2ab7('0x2d')]({'channelId':_0x442f97,'threadId':_0x20cf3d})[_0x2ab7('0x69')](_0x192f4a=>{if(_0x2ab7('0x5')!==_0x48d1e3[_0x2ab7('0x5f')]){if(_0x327cdc=_0x192f4a,_0x327cdc&&!_0x327cdc[_0x2ab7('0x4a')]){const _0x3cd722=_0x327cdc[_0x2ab7('0x3a')](()=>this[_0x2ab7('0x3b')](_0x20cf3d));_0x1f3645[_0x2ab7('0x6b')](_0x3cd722),_0x327cdc[_0x2ab7('0x3')]&&this[_0x2ab7('0x32')](_0x20cf3d);}else{if(!_0x327cdc){const _0x1e70ae=this[_0x2ab7('0x7a')](_0x20cf3d);_0x48d1e3['model'][_0x2ab7('0x14')](_0x26e382=>{for(const _0x32faae of _0x1e70ae)_0x26e382[_0x2ab7('0x76')](_0x32faae);});}}}}),_0x327cdc;}[_0x2ab7('0x13')](_0x2d4ee3,_0x48585d){const _0x373dc8=this['_attachMarkerToThread'](_0x2d4ee3,_0x48585d);_0x373dc8&&!_0x373dc8[_0x2ab7('0x22')]&&_0x373dc8['setContext']({'type':_0x2ab7('0x1b'),'value':this[_0x2ab7('0x39')](_0x48585d)});}[_0x2ab7('0x58')](){const _0xaab480=this[_0x2ab7('0x6e')];_0x2e7497(_0xaab480[_0x2ab7('0x30')],({left:_0x388666,entered:_0x26b2ad})=>{const _0x494e90=[];for(const _0x38b39d of _0x388666)if(rt(_0x38b39d)){_0x494e90[_0x2ab7('0x38')](_0x4409ff(_0xaab480['locale'],_0x2ab7('0x70')));break;}for(const _0x56c7e8 of _0x26b2ad)if(rt(_0x56c7e8)){_0x494e90[_0x2ab7('0x38')](_0x4409ff(_0xaab480['locale'],_0x2ab7('0xb')));break;}_0x494e90[_0x2ab7('0x1a')]&&_0xaab480['ui']['ariaLiveAnnouncer'][_0x2ab7('0x1d')](_0x2ab7('0x37'),_0x494e90[_0x2ab7('0x6a')]('\x20'));});}}function tt(_0x359dfc,_0x5a94c4){return _0x5a94c4?_0x359dfc+':'+_0x5a94c4:_0x359dfc;}function ot(_0x409bcd){const _0x9c8e6b=_0x409bcd['split'](':');return{'group':_0x9c8e6b[0x0],'id':_0x9c8e6b[0x1],'part':_0x9c8e6b[0x2]};}function et(_0x421865,_0x1d1e50){const _0x252833=_0x1d1e50[_0x2ab7('0x7b')],_0x2b1a3e=_0x1d1e50[_0x2ab7('0x3d')](_0x421865[_0x2ab7('0x61')]);for(const _0x47dcac of _0x421865[_0x2ab7('0x63')]()){const {type:_0x448740,item:_0x5b5223,nextPosition:_0x10e204}=_0x47dcac;if(_0x2ab7('0x1b')===_0x448740||_0x252833[_0x2ab7('0x3c')](_0x5b5223)){const _0x1ff12c=_0x1d1e50['createPositionBefore'](_0x5b5223);_0x2b1a3e[_0x2ab7('0x64')]&&(_0x2b1a3e['start']=_0x1ff12c),_0x2b1a3e[_0x2ab7('0x36')]=_0x10e204;}}return _0x2b1a3e;}function rt(_0x5ea85c){return _0x2ab7('0x34')===ot(_0x5ea85c[_0x2ab7('0x33')])[_0x2ab7('0x4b')];}
|
|
23
|
+
const _0x4177=['end','removeCommentThread','isResolved','openNewCommentThread','get','_initializeMarkerConverters','_getTextContext','for','text','activeMarker','createPositionBefore','_reconvertMarkers','fetchCommentThread','ignoreResolvedComments','getByInnerView','destroyed','root','substring','change','split','scrollToThreadMarker','isLocal','start','setUnlinkedAt','commands','getItems','_handleThreadMarker','addMarker:','hasCommentThread','rootName','differ','locale','pluginName','elementToElement','getAllMarkersForId','size','state','ariaLiveAnnouncer','isCollapsed','ck-comment-marker','ready','getRange','view','_hasTargetInContent','set','reopenCommentThread','isEqual','comment','newRange','removeMarker','unlinkedAt','$marker','clear','init','add','collaboration.channelId','_initAriaMarkerChangeAnnouncements','schema','registerPostFixer','focus','announce','resolveCommentThread','once','_threadToController','editing','dataToMarker','isAttached','data','delete','consumable','config','archivedAt','_attachMarkerToThread','destroy','switchReadOnly','addCommentThread','item','getChangedMarkers','_attachResolvedThread','low','getCommentThread','managedUsingOperations','_getTargetForId','push','consume','length','markers','change:isThreadsLoadingPaused','removeMarker:','_detachCommentThread','editor','comment:','markerName','ENTER_COMMENT_ANNOUNCEMENT','document','reconvertMarker','context','isThreadsLoadingPaused','registerAnnotation','isObject','attachTo','hasDomSelection','conversion','upcast','listenTo','enqueueChange','setContext','change:activeMarker','model','startsWith','dataDowncast','affectsData','updateMarker','getWalker','hasMarkerForId','plugins'];(function(_0x2827dd,_0x4177ee){const _0x32d1e0=function(_0x52ce68){while(--_0x52ce68){_0x2827dd['push'](_0x2827dd['shift']());}};_0x32d1e0(++_0x4177ee);}(_0x4177,0x10c));const _0x32d1=function(_0x2827dd,_0x4177ee){_0x2827dd=_0x2827dd-0x0;let _0x32d1e0=_0x4177[_0x2827dd];return _0x32d1e0;};import{Plugin as _0x2bd93a}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x5c74cd}from'ckeditor5/src/utils.js';import _0x4536b7 from'./commentsrepository.js';import _0x48befc from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x2b315a,getAllMarkersDomElementsSorted as _0x18ee58}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3add79 from'../annotations/editorannotations.js';import _0x44df12 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x376af8 from'./integrations/importword.js';import _0x2bfe43 from'../annotations/annotations.js';import{getTranslation as _0x364018}from'../utils/common-translations.js';export default class r extends _0x2bd93a{static get['requires'](){return[_0x4536b7,_0x3add79,_0x44df12,_0x376af8];}static get[_0x32d1('0x70')](){return'CommentsEditing';}constructor(_0x3c9910){super(_0x3c9910),this[_0x32d1('0x8')](_0x32d1('0x3d'),!0x0),_0x3c9910['data'][_0x32d1('0x1a')](_0x32d1('0x4'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x32d1('0x59'),null),this['on'](_0x32d1('0x47'),(_0x189f56,_0x24efb5,_0x19a8e3,_0xe253a4)=>{const _0x2f91bb=_0x19a8e3?ot(_0x19a8e3)['id']:null;if(_0x3c9910[_0x32d1('0x48')][_0x32d1('0x62')](()=>{if(_0x2f91bb){const _0x10586c=this['getAllMarkersForId'](_0x2f91bb);for(const _0x252596 of _0x10586c)_0x3c9910[_0x32d1('0x1c')]['reconvertMarker'](_0x252596);}if(_0xe253a4){const {id:_0x5becac}=ot(_0xe253a4),_0x1b55e2=this['getAllMarkersForId'](_0x5becac);for(const _0x36c0a2 of _0x1b55e2)_0x3c9910[_0x32d1('0x1c')]['reconvertMarker'](_0x36c0a2);}}),_0x2f91bb){const _0x36e78d=_0x3c9910[_0x32d1('0x4f')][_0x32d1('0x54')](_0x4536b7)[_0x32d1('0x2c')](_0x2f91bb);_0x36e78d&&_0x36e78d[_0x32d1('0x52')]&&this[_0x32d1('0x64')](_0x2f91bb);}}),this['_initAriaMarkerChangeAnnouncements']();}[_0x32d1('0x11')](){const _0x476be5=this[_0x32d1('0x36')],_0x1e79ac=_0x476be5['plugins']['get'](_0x4536b7),_0x153475=_0x476be5[_0x32d1('0x22')][_0x32d1('0x54')](_0x32d1('0x13'));_0x476be5[_0x32d1('0x68')][_0x32d1('0x12')]('addCommentThread',new _0x48befc(_0x476be5)),this[_0x32d1('0x44')](_0x476be5,'change:isReadOnly',(_0x4e6f37,_0x296f7e,_0x4bdf6d)=>{_0x1e79ac[_0x32d1('0x26')](_0x4bdf6d,_0x476be5[_0x32d1('0x22')][_0x32d1('0x54')]('collaboration.channelId'));}),this[_0x32d1('0x44')](_0x1e79ac,tt(_0x32d1('0x27'),_0x153475),(_0x356567,{threadId:_0x374417})=>{const _0x3a6f13=this[_0x32d1('0x36')]['plugins'][_0x32d1('0x54')](_0x4536b7)[_0x32d1('0x2c')](_0x374417);_0x3a6f13&&_0x3a6f13[_0x32d1('0x23')]&&this[_0x32d1('0x2a')](_0x374417);}),this[_0x32d1('0x44')](_0x1e79ac,tt(_0x32d1('0x51'),_0x153475),(_0x119338,{threadId:_0x1fc561})=>{_0x476be5[_0x32d1('0x48')][_0x32d1('0x45')]({'isUndoable':!0x1},_0x1e9e26=>{const _0x307186=this['getAllMarkersForId'](_0x1fc561);for(const _0x4c550b of _0x307186)_0x1e9e26[_0x32d1('0xd')](_0x4c550b);});}),this[_0x32d1('0x44')](_0x1e79ac,tt(_0x32d1('0x19'),_0x153475),(_0x12454e,{threadId:_0x349fff})=>{(this[_0x32d1('0x2a')](_0x349fff),this[_0x32d1('0x5b')](_0x349fff),this[_0x32d1('0x36')][_0x32d1('0x1c')][_0x32d1('0x6')][_0x32d1('0x41')])&&(this[_0x32d1('0x36')][_0x32d1('0x4f')][_0x32d1('0x54')](_0x4536b7)[_0x32d1('0x2c')](_0x349fff)[_0x32d1('0xe')]||this[_0x32d1('0x36')][_0x32d1('0x1c')][_0x32d1('0x6')][_0x32d1('0x17')]());},{'priority':_0x32d1('0x2b')}),this[_0x32d1('0x44')](_0x1e79ac,tt(_0x32d1('0x9'),_0x153475),(_0x1b94e3,{threadId:_0xd6157d})=>{this[_0x32d1('0x5b')](_0xd6157d);},{'priority':'low'}),this[_0x32d1('0x44')](_0x1e79ac,tt('addComment',_0x153475),(_0x54eb2f,{threadId:_0x2efb56,isFromAdapter:_0x4fae2a})=>{const _0x3bf6b4=this[_0x32d1('0x72')](_0x2efb56);if(_0x4fae2a||0x0==_0x3bf6b4[_0x32d1('0x31')]||!_0x1e79ac[_0x32d1('0x6c')](_0x2efb56))return;0x1===_0x1e79ac[_0x32d1('0x2c')](_0x2efb56)[_0x32d1('0x31')]&&_0x476be5['model']['enqueueChange']({'isUndoable':!0x1},_0x212772=>{for(const _0x51922a of _0x3bf6b4)_0x212772[_0x32d1('0x4c')](_0x51922a,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x32d1('0x2b')}),this[_0x32d1('0x55')](),this['_handleMarkerAddAndRemove']();}[_0x32d1('0x25')](){const _0x3319a4=this[_0x32d1('0x36')][_0x32d1('0x4f')][_0x32d1('0x54')](_0x4536b7),_0x381e1b=this[_0x32d1('0x36')]['config'][_0x32d1('0x54')]('collaboration.channelId');for(const _0x250605 of _0x3319a4['getCommentThreads']({'channelId':_0x381e1b}))_0x3319a4[_0x32d1('0x35')](_0x250605['id']),_0x3319a4['_threads'][_0x32d1('0x20')](_0x250605['id']);super['destroy']();}[_0x32d1('0x4e')](_0x3d2172){return this[_0x32d1('0x72')](_0x3d2172)['length']>0x0;}[_0x32d1('0x72')](_0x5f42da){const _0x2c59c5=[];for(const _0x54eef6 of this[_0x32d1('0x36')]['model']['markers'])_0x54eef6['name'][_0x32d1('0x49')](_0x32d1('0x37')+_0x5f42da)&&_0x2c59c5[_0x32d1('0x2f')](_0x54eef6);return _0x2c59c5;}[_0x32d1('0x64')](_0x448815){const _0x1f0f81=this[_0x32d1('0x2e')](_0x448815);_0x1f0f81&&setTimeout(()=>{this[_0x32d1('0x59')]&&ot(this[_0x32d1('0x59')])['id']===_0x448815&&_0x5c74cd({'target':_0x1f0f81[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x32d1('0x5b')](_0x21fadc){this[_0x32d1('0x36')][_0x32d1('0x48')][_0x32d1('0x62')](()=>{for(const _0x4b1e08 of this[_0x32d1('0x72')](_0x21fadc))this[_0x32d1('0x36')]['editing'][_0x32d1('0x3b')](_0x4b1e08);});}['_attachResolvedThread'](_0x9a6049){const _0x51d772=this[_0x32d1('0x36')][_0x32d1('0x4f')]['get'](_0x4536b7),_0x1524e2=this[_0x32d1('0x36')][_0x32d1('0x4f')][_0x32d1('0x54')](_0x3add79),_0x459258=_0x51d772[_0x32d1('0x2c')](_0x9a6049);if(!_0x459258['isAttached']){const _0x148cc0=_0x459258[_0x32d1('0x40')](()=>this['_getTargetForId'](_0x459258['id']));_0x1524e2[_0x32d1('0x3e')](_0x148cc0),_0x459258[_0x32d1('0x7')]=!0x1;}}['_initializeMarkerConverters'](){const _0x426fa8=this[_0x32d1('0x36')];_0x426fa8[_0x32d1('0x42')][_0x32d1('0x57')]('editingDowncast')['markerToHighlight']({'model':_0x32d1('0xb'),'view':(_0x4338b8,_0x2b5a34)=>{const {id:_0x1fdf23}=ot(_0x4338b8[_0x32d1('0x38')]),_0x1439fb=_0x426fa8[_0x32d1('0x4f')]['get'](_0x4536b7)[_0x32d1('0x2c')](_0x1fdf23),_0x23653c=this[_0x32d1('0x59')]&&ot(this['activeMarker'])['id']===_0x1fdf23;if(_0x1439fb&&_0x1439fb[_0x32d1('0x52')]&&!_0x23653c&&_0x4338b8[_0x32d1('0x28')])return _0x2b5a34[_0x32d1('0x21')][_0x32d1('0x30')](_0x4338b8[_0x32d1('0x28')],_0x32d1('0x6b')+_0x4338b8['markerName']),_0x2b5a34[_0x32d1('0x21')][_0x32d1('0x30')](_0x4338b8['item'],_0x32d1('0x34')+_0x4338b8['markerName']),{'classes':[]};const _0x257ab9=[_0x32d1('0x3')];return _0x23653c&&_0x257ab9[_0x32d1('0x2f')]('ck-comment-marker--active'),{'classes':_0x257ab9,'attributes':{'data-comment':_0x1fdf23}};}}),_0x426fa8[_0x32d1('0x42')]['for'](_0x32d1('0x4a'))['markerToData']({'model':_0x32d1('0xb'),'view':(_0x5c1150,{options:_0x253b70})=>{const _0x27ea45=_0x426fa8[_0x32d1('0x4f')][_0x32d1('0x54')](_0x4536b7),_0x56e4b7=_0x426fa8[_0x32d1('0x48')]['markers'][_0x32d1('0x54')](_0x5c1150),{id:_0x1e1f16,part:_0x5c6fca}=ot(_0x5c1150);if(_0x56e4b7&&!_0x56e4b7[_0x32d1('0x4b')])return null;if(_0x253b70[_0x32d1('0x5d')]){const _0x3916af=_0x27ea45['getCommentThread'](_0x1e1f16);if(_0x3916af&&_0x3916af[_0x32d1('0x52')])return null;}return{'group':_0x32d1('0xb'),'name':_0x5c6fca?_0x1e1f16+':'+_0x5c6fca:_0x1e1f16};}}),_0x426fa8[_0x32d1('0x42')]['for'](_0x32d1('0x43'))[_0x32d1('0x71')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x52d5cc,{writer:_0x44a03f})=>_0x44a03f['createElement'](_0x32d1('0xf'),{'data-name':'comment:'+_0x52d5cc['getAttribute']('id')})}),_0x426fa8[_0x32d1('0x42')][_0x32d1('0x57')](_0x32d1('0x43'))[_0x32d1('0x1d')]({'view':_0x32d1('0xb')});}['_handleMarkerAddAndRemove'](){const _0x4d5e2b=this[_0x32d1('0x36')],_0x4e283a=_0x4d5e2b['plugins'][_0x32d1('0x54')](_0x4536b7),_0x530cbb=new Set(),_0x2365fc=new Set();_0x4d5e2b[_0x32d1('0x48')]['document'][_0x32d1('0x16')](_0x3f1c3e=>{let _0x27af8a=!0x1;for(const {name:_0xea13ae,data:_0x3bf969}of _0x4d5e2b[_0x32d1('0x48')][_0x32d1('0x3a')][_0x32d1('0x6e')][_0x32d1('0x29')]()){const {group:_0xc9aedd,id:_0x1c687d}=ot(_0xea13ae);let _0xb352d2=_0x3bf969['newRange'];if('comment'!==_0xc9aedd||!_0xb352d2)continue;const _0x42d3ff='$graveyard'===_0xb352d2[_0x32d1('0x60')][_0x32d1('0x6d')];_0x42d3ff||(_0xb352d2=et(_0xb352d2,_0x4d5e2b[_0x32d1('0x48')]),!_0xb352d2||_0xb352d2[_0x32d1('0x2')]||!_0x3bf969[_0x32d1('0xc')]||_0xb352d2[_0x32d1('0xa')](_0x3bf969[_0x32d1('0xc')]))?_0x4d5e2b['model']['hasContent'](_0xb352d2)&&!_0x42d3ff?this[_0x32d1('0x3d')]?_0x530cbb[_0x32d1('0x12')](_0xea13ae):this[_0x32d1('0x6a')](_0xea13ae,_0x1c687d):(_0x2365fc['add'](_0xea13ae),_0x530cbb[_0x32d1('0x20')](_0xea13ae),_0x3f1c3e[_0x32d1('0xd')](_0xea13ae),_0x27af8a=!0x0):(_0x3f1c3e[_0x32d1('0x4c')](_0xea13ae,{'range':_0xb352d2}),_0x27af8a=!0x0);}return _0x27af8a;}),this['on'](_0x32d1('0x33'),(_0x599e05,_0xfc95d6,_0x53e88c)=>{if(!_0x53e88c&&_0x530cbb[_0x32d1('0x73')])for(const _0x3a7d70 of _0x530cbb){const {id:_0x4db35d}=ot(_0x3a7d70);_0x530cbb[_0x32d1('0x20')](_0x3a7d70),_0x4d5e2b[_0x32d1('0x48')][_0x32d1('0x32')]['get'](_0x3a7d70)&&this[_0x32d1('0x6a')](_0x3a7d70,_0x4db35d);}}),this[_0x32d1('0x44')](_0x4d5e2b[_0x32d1('0x48')][_0x32d1('0x3a')],_0x32d1('0x62'),(_0x109263,_0x10391d)=>{for(const {name:_0x555947,data:{newRange:_0x57d760}}of _0x4d5e2b[_0x32d1('0x48')][_0x32d1('0x3a')]['differ'][_0x32d1('0x29')]()){const {group:_0x5f119b,id:_0x4d50e3}=ot(_0x555947);if(_0x32d1('0xb')!==_0x5f119b)continue;const _0x266bac=_0x4e283a[_0x32d1('0x2c')](_0x4d50e3),_0x31edda=this[_0x32d1('0x4e')](_0x4d50e3);_0x266bac&&(_0x266bac[_0x32d1('0x7')]||_0x4d5e2b['editing'][_0x32d1('0x6')][_0x32d1('0x1a')]('render',()=>{const _0x2f98ae=_0x4d5e2b[_0x32d1('0x4f')]['get'](_0x2bfe43),_0x50d52f=_0x4e283a[_0x32d1('0x1b')]['get'](_0x266bac)[_0x32d1('0x6')];_0x2f98ae[_0x32d1('0x5e')](_0x50d52f)['refreshVisibility']();},{'priority':_0x32d1('0x2b')}),_0x266bac[_0x32d1('0x7')]=_0x31edda||!!_0x57d760),_0x57d760||(_0x2365fc[_0x32d1('0x12')](_0x555947),_0x530cbb[_0x32d1('0x20')](_0x555947));}if(_0x10391d[_0x32d1('0x65')])for(const _0x31584d of _0x2365fc){const {id:_0x5c83b3}=ot(_0x31584d),_0x51e069=_0x4e283a[_0x32d1('0x2c')](_0x5c83b3),_0x6cfeb5=this['hasMarkerForId'](_0x5c83b3);_0x530cbb['delete'](_0x31584d),!_0x51e069||_0x6cfeb5||_0x51e069[_0x32d1('0xe')]||_0x51e069[_0x32d1('0x67')](new Date());}_0x2365fc[_0x32d1('0x10')]();});}[_0x32d1('0x2e')](_0x224af1){const _0x27836e=this[_0x32d1('0x36')],_0x1bfe17=this['getAllMarkersForId'](_0x224af1);return _0x18ee58(_0x27836e['editing'],_0x1bfe17);}['_getTextContext'](_0x2afb27){const _0x48f679=this[_0x32d1('0x72')](_0x2afb27);let _0x1c1960='',_0xdcf7bb=!0x1;for(const _0x3b65f2 of _0x48f679){const _0x523b35=_0x3b65f2[_0x32d1('0x5')]();for(const _0x2f2b5b of Array['from'](_0x523b35[_0x32d1('0x69')]()))_0x2f2b5b['is']('$textProxy')?(_0x1c1960&&_0xdcf7bb&&(_0x1c1960+='\x20',_0xdcf7bb=!0x1),_0x1c1960+=_0x2f2b5b[_0x32d1('0x1f')]):_0xdcf7bb=!0x0;_0xdcf7bb=!0x0;}return _0x1c1960[_0x32d1('0x61')](0x0,0x96);}[_0x32d1('0x24')](_0x16ca8a,_0x278edd){const _0x3c2d70=this[_0x32d1('0x36')],_0x540c17=_0x3c2d70[_0x32d1('0x4f')]['get'](_0x4536b7);let _0x23d879=_0x540c17[_0x32d1('0x2c')](_0x278edd);const _0x61849d=_0x3c2d70[_0x32d1('0x22')][_0x32d1('0x54')](_0x32d1('0x13')),_0x11d1b=_0x3c2d70[_0x32d1('0x4f')][_0x32d1('0x54')](_0x3add79);if(_0x23d879&&(_0x23d879[_0x32d1('0xe')]&&_0x23d879['setUnlinkedAt'](null),_0x23d879[_0x32d1('0x1e')]))return _0x23d879;return!this[_0x32d1('0x72')](_0x278edd)[0x0][_0x32d1('0x2d')]?_0x3c2d70[_0x32d1('0x1c')][_0x32d1('0x6')][_0x32d1('0x1a')]('render',()=>{if(_0x540c17[_0x32d1('0x2c')](_0x278edd))return;const _0x12b3e4=_0x3c2d70[_0x32d1('0x4f')]['get'](_0x2bfe43);_0x23d879=_0x540c17[_0x32d1('0x53')]({'channelId':_0x61849d,'threadId':_0x278edd,'target':()=>this[_0x32d1('0x2e')](_0x278edd),'context':{'type':'text','value':this[_0x32d1('0x56')](_0x278edd)}});const _0x47ffcc=_0x540c17[_0x32d1('0x1b')][_0x32d1('0x54')](_0x23d879)[_0x32d1('0x6')],_0x89f517=_0x12b3e4[_0x32d1('0x5e')](_0x47ffcc);_0x89f517&&_0x11d1b[_0x32d1('0x3e')](_0x89f517);},{'priority':'low'}):_0x540c17[_0x32d1('0x5c')]({'channelId':_0x61849d,'threadId':_0x278edd})['then'](_0x38d3fb=>{if(_0x32d1('0x5f')!==_0x3c2d70[_0x32d1('0x0')]){if(_0x23d879=_0x38d3fb,_0x23d879&&!_0x23d879[_0x32d1('0x1e')]){const _0x3e73ac=_0x23d879[_0x32d1('0x40')](()=>this[_0x32d1('0x2e')](_0x278edd));_0x11d1b[_0x32d1('0x3e')](_0x3e73ac),_0x23d879[_0x32d1('0x52')]&&this[_0x32d1('0x5b')](_0x278edd);}else{if(!_0x23d879){const _0x51b34a=this[_0x32d1('0x72')](_0x278edd);_0x3c2d70['model']['change'](_0x265187=>{for(const _0x53f6be of _0x51b34a)_0x265187['removeMarker'](_0x53f6be);});}}}}),_0x23d879;}[_0x32d1('0x6a')](_0x51a07c,_0x121c63){const _0x2e0dfb=this[_0x32d1('0x24')](_0x51a07c,_0x121c63);_0x2e0dfb&&!_0x2e0dfb[_0x32d1('0x3c')]&&_0x2e0dfb[_0x32d1('0x46')]({'type':_0x32d1('0x58'),'value':this[_0x32d1('0x56')](_0x121c63)});}[_0x32d1('0x14')](){const _0x1178f5=this['editor'];_0x2b315a(_0x1178f5[_0x32d1('0x48')],({left:_0x1ef847,entered:_0x4fc690})=>{const _0x4b0651=[];for(const _0x6e13ff of _0x1ef847)if(rt(_0x6e13ff)){_0x4b0651[_0x32d1('0x2f')](_0x364018(_0x1178f5[_0x32d1('0x6f')],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x121c87 of _0x4fc690)if(rt(_0x121c87)){_0x4b0651[_0x32d1('0x2f')](_0x364018(_0x1178f5['locale'],_0x32d1('0x39')));break;}_0x4b0651[_0x32d1('0x31')]&&_0x1178f5['ui'][_0x32d1('0x1')][_0x32d1('0x18')]('comments',_0x4b0651['join']('\x20'));});}}function tt(_0x32c98b,_0x31a1c6){return _0x31a1c6?_0x32c98b+':'+_0x31a1c6:_0x32c98b;}function ot(_0x51de3a){const _0x48a655=_0x51de3a[_0x32d1('0x63')](':');return{'group':_0x48a655[0x0],'id':_0x48a655[0x1],'part':_0x48a655[0x2]};}function et(_0x2482f2,_0x4d51f1){const _0x344c0f=_0x4d51f1[_0x32d1('0x15')],_0x343ad0=_0x4d51f1['createRange'](_0x2482f2['start']);for(const _0x3cbd59 of _0x2482f2[_0x32d1('0x4d')]()){const {type:_0x3bd92e,item:_0x4eb70f,nextPosition:_0x422728}=_0x3cbd59;if(_0x32d1('0x58')===_0x3bd92e||_0x344c0f[_0x32d1('0x3f')](_0x4eb70f)){const _0x59ab1b=_0x4d51f1[_0x32d1('0x5a')](_0x4eb70f);_0x343ad0[_0x32d1('0x2')]&&(_0x343ad0[_0x32d1('0x66')]=_0x59ab1b),_0x343ad0[_0x32d1('0x50')]=_0x422728;}}return _0x343ad0;}function rt(_0x334d9f){return _0x32d1('0xb')===ot(_0x334d9f['name'])['group'];}
|