@ckeditor/ckeditor5-comments 41.0.0 → 41.1.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
- package/theme/annotation.css +4 -0
- package/theme/commentthread.css +4 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53bb=['Esc','set','div','element','add','keystrokes','ck-annotation-wrapper--active','content','ck-annotation-wrapper','focusTracker','destroy','isDirty','type','height','ck-rounded-corners','_updateHeight','setTemplate','detach','focus','_mutationObserver','length','render','fire'];(function(_0x25d827,_0x53bb4f){const _0x1f625f=function(_0x2ebfcf){while(--_0x2ebfcf){_0x25d827['push'](_0x25d827['shift']());}};_0x1f625f(++_0x53bb4f);}(_0x53bb,0x103));const _0x1f62=function(_0x25d827,_0x53bb4f){_0x25d827=_0x25d827-0x0;let _0x1f625f=_0x53bb[_0x25d827];return _0x1f625f;};import{View as _0xa270c3}from'ckeditor5/src/ui.js';import{FocusTracker as _0x31e41c,KeystrokeHandler as _0x381367,uid as _0xf67a3a}from'ckeditor5/src/utils.js';import _0x59ce66 from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0xa270c3{constructor(_0x2e19d6,_0x19f100){super(_0x2e19d6),this['id']=_0xf67a3a(),this[_0x1f62('0x3')]=new _0x31e41c(),this['keystrokes']=new _0x381367(),this[_0x1f62('0x16')][_0x1f62('0x12')](_0x1f62('0x11'),(_0x209906,_0x3a3773)=>this[_0x1f62('0x10')](_0x1f62('0x11'),_0x3a3773)),this[_0x1f62('0x12')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x1f62('0x7'),0x0),this[_0x1f62('0x12')]('isActive',!0x1),this[_0x1f62('0x12')](_0x1f62('0x5'),!0x1),this[_0x1f62('0x12')](_0x1f62('0xe'),0x0),this['set'](_0x1f62('0x6'),''),this[_0x1f62('0xd')]=_0x59ce66(()=>this[_0x1f62('0x9')]()),this[_0x1f62('0x1')]=this['createCollection'](),this[_0x1f62('0x1')][_0x1f62('0x15')](_0x19f100),this['mainView']=_0x19f100;const _0x383b4d=this['bindTemplate'];this[_0x1f62('0xa')]({'tag':_0x1f62('0x13'),'attributes':{'class':['ck',_0x1f62('0x2'),_0x1f62('0x8'),_0x383b4d['if']('isActive',_0x1f62('0x0'))],'tabindex':-0x1},'children':this[_0x1f62('0x1')]});}[_0x1f62('0xf')](){super[_0x1f62('0xf')](),this['focusTracker']['add'](this[_0x1f62('0x14')]),this[_0x1f62('0x16')]['listenTo'](this[_0x1f62('0x14')]),this['_mutationObserver']['attach'](this[_0x1f62('0x14')]);}['destroy'](){this[_0x1f62('0x1')]['clear'](),this[_0x1f62('0x16')][_0x1f62('0x4')](),this[_0x1f62('0x3')][_0x1f62('0x4')](),this[_0x1f62('0xd')][_0x1f62('0xb')](),super[_0x1f62('0x4')]();}[_0x1f62('0xc')](){this[_0x1f62('0x14')][_0x1f62('0xc')]();}[_0x1f62('0x9')](){const _0x5f55f1=this[_0x1f62('0x14')]['clientHeight'];_0x5f55f1&&(this[_0x1f62('0x7')]=_0x5f55f1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5dfe=['ck-sidebar-item','detach','clientHeight','render','isAnimationDisabled','_mutationObserver','destroy','div','clear','content','bindTemplate','bind','updateHeight','height','_targetTop','element','set','top'];(function(_0x28c791,_0x5dfee6){const _0x4d83f3=function(_0x108d95){while(--_0x108d95){_0x28c791['push'](_0x28c791['shift']());}};_0x4d83f3(++_0x5dfee6);}(_0x5dfe,0x10f));const _0x4d83=function(_0x28c791,_0x5dfee6){_0x28c791=_0x28c791-0x0;let _0x4d83f3=_0x5dfe[_0x28c791];return _0x4d83f3;};import{View as _0x1b0088}from'ckeditor5/src/ui.js';import{toUnit as _0x5a3a68}from'ckeditor5/src/utils.js';import _0x3924ad from'../../utils/createmutationobserver.js';const Ht=_0x5a3a68('px');export default class C extends _0x1b0088{constructor(_0xb35af4){super(_0xb35af4),this[_0x4d83('0xf')](_0x4d83('0x10'),0x0),this[_0x4d83('0xf')](_0x4d83('0xc'),0x0),this[_0x4d83('0xa')]('bottom')['to'](this,_0x4d83('0x10'),this,_0x4d83('0xc'),(_0x5e81ce,_0x6066c1)=>_0x5e81ce+_0x6066c1),this[_0x4d83('0xf')]('isAnimationDisabled',!0x1),this[_0x4d83('0x4')]=_0x3924ad(()=>this[_0x4d83('0xb')]()),this[_0x4d83('0xd')]=null,this[_0x4d83('0x8')]=this['createCollection']();const _0x5acb11=this[_0x4d83('0x9')];this['setTemplate']({'tag':_0x4d83('0x6'),'attributes':{'class':[_0x4d83('0x11'),_0x5acb11['to'](_0x4d83('0x3'),_0x5f1e52=>_0x5f1e52?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x5acb11['to'](_0x4d83('0x10'),_0xc2b369=>Ht(_0xc2b369))}},'children':this['content']});}['render'](){super[_0x4d83('0x2')](),this['_mutationObserver']['attach'](this['element']);}[_0x4d83('0xb')](){const _0x47c994=this[_0x4d83('0xe')][_0x4d83('0x1')];_0x47c994&&(this[_0x4d83('0xc')]=_0x47c994);}[_0x4d83('0x5')](){this[_0x4d83('0x8')][_0x4d83('0x7')](),this[_0x4d83('0x4')][_0x4d83('0x0')](),super[_0x4d83('0x5')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58fe=['set','createCollection','class','list','ck-sidebar','div','setTemplate','number','minHeight'];(function(_0x1466f4,_0x58fef3){const _0x5e1005=function(_0x1931b4){while(--_0x1931b4){_0x1466f4['push'](_0x1466f4['shift']());}};_0x5e1005(++_0x58fef3);}(_0x58fe,0xb9));const _0x5e10=function(_0x1466f4,_0x58fef3){_0x1466f4=_0x1466f4-0x0;let _0x5e1005=_0x58fe[_0x1466f4];return _0x5e1005;};import{View as _0x104ef2}from'ckeditor5/src/ui.js';import{toUnit as _0x2c5d21}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x2c5d21('px');export default class T extends _0x104ef2{constructor(_0x30dc68){super(_0x30dc68);const _0x24e981=this['bindTemplate'];this[_0x5e10('0x4')](_0x5e10('0x3'),0x0),this[_0x5e10('0x4')](_0x5e10('0x6'),''),this[_0x5e10('0x7')]=this[_0x5e10('0x5')](),this[_0x5e10('0x1')]({'tag':_0x5e10('0x0'),'attributes':{'class':['ck',_0x5e10('0x8'),'ck-reset',_0x24e981['to'](_0x5e10('0x6'))],'style':{'minHeight':_0x24e981['to'](_0x5e10('0x3'),_0x35fe41=>_0x5e10('0x2')==typeof _0x35fe41?Ht(_0x35fe41+0xa):null)}},'children':this[_0x5e10('0x7')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3aef=['_annotations','setActiveAnnotation','ck-sidebar--wide','detach','annotations','pluginName','set','get','uiUpdate','from','_refreshPositioningDebounced','EditorAnnotations','_activeAnnotation','init','editors','container','register','removeEventListener','isAttached','blur','cancel','context','updateTargetRect','_detachFromContainer','getOrderedSelectedAnnotations','focus','_editorAnnotations','resize','widesidebar-attach-already-attached','stop','refresh','attach','plugins','_integrateWithEditorAnnotations','widesidebar-detach-not-attached','WideSidebar','destroy','refreshPositioning','_destroyEditorAnnotationsIntegration','switchTo','hasDomSelection','wideSidebar','has','rearrange','listenTo','ready','_attachToContainer','change:container','remove','add','stopListening','set:container','high','activeAnnotation'];(function(_0x2669a5,_0x3aeffa){const _0x32cc91=function(_0x403fcf){while(--_0x403fcf){_0x2669a5['push'](_0x2669a5['shift']());}};_0x32cc91(++_0x3aeffa);}(_0x3aef,0x105));const _0x32cc=function(_0x2669a5,_0x3aeffa){_0x2669a5=_0x2669a5-0x0;let _0x32cc91=_0x3aef[_0x2669a5];return _0x32cc91;};import{ContextPlugin as _0x1b5314,Context as _0x3f26f9}from'ckeditor5/src/core.js';import _0x2ab893 from'./annotationsuis.js';import _0x12c7e1 from'./sidebar.js';import{CKEditorError as _0x49b370,Collection as _0x1af001}from'ckeditor5/src/utils.js';import{debounce as _0x35b36c}from'lodash-es';import _0x522b16 from'./editorannotations.js';export default class n extends _0x1b5314{static get['requires'](){return[_0x12c7e1,_0x2ab893];}static get[_0x32cc('0xe')](){return _0x32cc('0x2c');}constructor(_0xdf9b3f){super(_0xdf9b3f),this[_0x32cc('0x1b')]=!0x1,this[_0x32cc('0xf')](_0x32cc('0x8'),null),this[_0x32cc('0xd')]=null,this[_0x32cc('0x23')]=new _0x1af001(),this[_0x32cc('0x13')]=_0x35b36c(()=>{this['annotations'][_0x32cc('0x2e')]();},0xfa,{'leading':!0x1});}[_0x32cc('0x16')](){const _0x1605df=this[_0x32cc('0x1e')]['plugins'][_0x32cc('0x10')](_0x2ab893),_0x5c8745=this[_0x32cc('0x1e')][_0x32cc('0x29')]['get'](_0x12c7e1);_0x1605df[_0x32cc('0x19')](_0x32cc('0x32'),this),_0x5c8745[_0x32cc('0x18')]&&_0x1605df[_0x32cc('0x30')]('wideSidebar');}['setActiveAnnotation'](_0x5c863a){if(_0x5c863a===this['activeAnnotation'])return;const _0x4e4759=this[_0x32cc('0x1e')]['plugins'][_0x32cc('0x10')](_0x12c7e1);_0x4e4759[_0x32cc('0x15')]=_0x5c863a;const _0x3786fb=this[_0x32cc('0x8')];this[_0x32cc('0x8')]=_0x5c863a,_0x4e4759[_0x32cc('0x27')]({'blurredAnnotation':_0x3786fb,'activatedAnnotation':this['activeAnnotation']});}[_0x32cc('0x28')](_0xa4717d){this[_0x32cc('0xd')]=_0xa4717d;const _0x1628ac=this[_0x32cc('0x1e')][_0x32cc('0x29')][_0x32cc('0x10')](_0x12c7e1);if(_0x1628ac[_0x32cc('0x9')]=_0xa4717d,this[_0x32cc('0x1b')])throw new _0x49b370(_0x32cc('0x25'),this);this[_0x32cc('0x1b')]=!0x0,this['listenTo'](_0x1628ac,_0x32cc('0x6'),()=>{this[_0x32cc('0xc')](),this[_0x32cc('0x35')](_0x1628ac,_0x32cc('0x2'),_0x1d6ea1=>{_0x1d6ea1['off'](),this[_0x32cc('0x28')](_0xa4717d);});}),_0x1628ac[_0x32cc('0x1')]({'viewClass':_0x32cc('0xb')});const _0x135257=_0x28b14e=>{_0x28b14e[_0x32cc('0x1f')](),_0x1628ac['addAnnotation'](_0x28b14e);};for(const _0x2e947c of _0xa4717d)_0x135257(_0x2e947c);this[_0x32cc('0x35')](_0xa4717d,'add',(_0x36d8b7,_0xb0af65)=>{_0x135257(_0xb0af65);}),this[_0x32cc('0x35')](_0xa4717d,'remove',(_0x306fb1,_0x314381,_0x408dd4)=>{_0x1628ac[_0x32cc('0x34')]({'removedAnnotation':_0x314381,'previousAnnotation':_0xa4717d[_0x32cc('0x10')](_0x408dd4-0x1),'nextAnnotation':_0xa4717d[_0x32cc('0x10')](_0x408dd4+0x1)}),_0x314381===this[_0x32cc('0x8')]&&this['setActiveAnnotation'](null);},{'priority':_0x32cc('0x7')}),this['listenTo'](_0xa4717d,_0x32cc('0x22'),(_0xf3549f,_0xdedb29)=>{this[_0x32cc('0xa')](_0xdedb29);}),this['listenTo'](_0xa4717d,'blur',()=>{this[_0x32cc('0xa')](null);});const _0x56907c=this[_0x32cc('0x1e')]instanceof _0x3f26f9?this[_0x32cc('0x1e')][_0x32cc('0x17')]:new _0x1af001([this[_0x32cc('0x1e')]]);for(const _0x8259b4 of _0x56907c)this[_0x32cc('0x2a')](_0x8259b4);this[_0x32cc('0x35')](_0x56907c,_0x32cc('0x4'),(_0xe73377,_0x2ab68f)=>{this[_0x32cc('0x35')](_0x2ab68f,_0x32cc('0x0'),()=>{this[_0x32cc('0x2a')](_0x2ab68f);});}),this[_0x32cc('0x35')](_0x56907c,_0x32cc('0x3'),(_0x32508a,_0x2fbe49)=>{_0x2fbe49[_0x32cc('0x29')][_0x32cc('0x33')](_0x32cc('0x14'))&&this[_0x32cc('0x2f')](_0x2fbe49[_0x32cc('0x29')][_0x32cc('0x10')]('EditorAnnotations'));}),window['addEventListener'](_0x32cc('0x24'),this[_0x32cc('0x13')]),this[_0x32cc('0xd')][_0x32cc('0x2e')]();}[_0x32cc('0xc')](){if(!this[_0x32cc('0x1b')])throw new _0x49b370(_0x32cc('0x2b'),this);this[_0x32cc('0xa')](null);const _0x141727=this[_0x32cc('0x1e')][_0x32cc('0x29')][_0x32cc('0x10')](_0x12c7e1);_0x141727[_0x32cc('0x20')](this['annotations']),this[_0x32cc('0x5')](_0x141727),this[_0x32cc('0x5')](this[_0x32cc('0xd')]),this[_0x32cc('0x1e')]instanceof _0x3f26f9&&this['stopListening'](this[_0x32cc('0x1e')][_0x32cc('0x17')]);for(const _0x46665f of Array[_0x32cc('0x12')](this[_0x32cc('0x23')]))this[_0x32cc('0x2f')](_0x46665f);window[_0x32cc('0x1a')](_0x32cc('0x24'),this[_0x32cc('0x13')]),this[_0x32cc('0x13')][_0x32cc('0x1d')](),this[_0x32cc('0x8')]=null,this['isAttached']=!0x1,this[_0x32cc('0xd')]=null;}[_0x32cc('0x2d')](){this[_0x32cc('0x1b')]&&this[_0x32cc('0xc')]();}[_0x32cc('0x2a')](_0x4fbc06){const _0x4ac6bb=_0x4fbc06[_0x32cc('0x29')][_0x32cc('0x10')](_0x522b16);if(!_0x4ac6bb)return;const _0x27732f=()=>{const _0x3da941=_0x4ac6bb[_0x32cc('0x21')]({'annotations':this[_0x32cc('0xd')],'activeAnnotation':this['activeAnnotation']});this[_0x32cc('0xa')](_0x3da941[0x0]||null);};this[_0x32cc('0x35')](_0x4ac6bb,_0x32cc('0x27'),_0x27732f),this['listenTo'](_0x4ac6bb,'blur',(_0x904f31,{isAnnotationTracked:_0x22de15})=>{this[_0x32cc('0x8')]&&_0x22de15(this[_0x32cc('0x8')])&&this[_0x32cc('0xa')](null);}),this[_0x32cc('0x35')](_0x4ac6bb,_0x32cc('0x11'),()=>{this[_0x32cc('0x13')]();}),this[_0x32cc('0x35')](this[_0x32cc('0xd')],_0x32cc('0x1c'),_0x228425=>{_0x4ac6bb[_0x32cc('0x31')]()&&(_0x27732f(),_0x228425[_0x32cc('0x26')]());},{'priority':_0x32cc('0x7')}),this[_0x32cc('0x23')]['add'](_0x4ac6bb);}[_0x32cc('0x2f')](_0x2cf9c2){this[_0x32cc('0x5')](_0x2cf9c2),this[_0x32cc('0x23')][_0x32cc('0x3')](_0x2cf9c2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36a1=['isEnabled','getRanges','$textProxy','editor','getLastMatchingPosition','isObject','change','_trimToContent','document','substr','execute','selection','end','element','push','refresh','item','addMarker','_hasContent','schema','tableCell','model'];(function(_0x7820e2,_0x36a193){const _0x49c3a5=function(_0x47d0a9){while(--_0x47d0a9){_0x7820e2['push'](_0x7820e2['shift']());}};_0x49c3a5(++_0x36a193);}(_0x36a1,0x83));const _0x49c3=function(_0x7820e2,_0x36a193){_0x7820e2=_0x7820e2-0x0;let _0x49c3a5=_0x36a1[_0x7820e2];return _0x49c3a5;};import{Command as _0x1205d7}from'ckeditor5/src/core.js';import{uid as _0x323e07}from'ckeditor5/src/utils.js';export default class G extends _0x1205d7{[_0x49c3('0x10')](){const _0x1e94a0=this[_0x49c3('0x4')][_0x49c3('0x0')][_0x49c3('0x9')][_0x49c3('0xc')];for(const _0x477bd3 of _0x1e94a0[_0x49c3('0x2')]())if(this[_0x49c3('0x13')](_0x477bd3))return void(this['isEnabled']=!0x0);this[_0x49c3('0x1')]=!0x1;}[_0x49c3('0xb')]({threadId:_0x545c6a=_0x323e07()}={}){const _0x2613f3=this[_0x49c3('0x4')][_0x49c3('0x0')],_0x5f1deb=[];for(const _0x351425 of _0x2613f3[_0x49c3('0x9')][_0x49c3('0xc')][_0x49c3('0x2')]())this[_0x49c3('0x13')](_0x351425)&&_0x5f1deb[_0x49c3('0xf')](this[_0x49c3('0x8')](_0x351425));_0x2613f3[_0x49c3('0x7')](_0x153b50=>{for(const _0x33d0ac of _0x5f1deb){const _0x36b1c8=_0x323e07()[_0x49c3('0xa')](0x1,0x5),_0x357edd='comment:'+_0x545c6a+':'+_0x36b1c8;_0x153b50[_0x49c3('0x12')](_0x357edd,{'range':_0x33d0ac,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x49c3('0x13')](_0x395996){for(const _0x2dd530 of _0x395996['getItems']())if(this['_itemIsContent'](_0x2dd530))return!0x0;return!0x1;}['_itemIsContent'](_0x2152b8){return _0x2152b8['is'](_0x49c3('0x3'))||this['editor'][_0x49c3('0x0')][_0x49c3('0x14')][_0x49c3('0x6')](_0x2152b8)&&!_0x2152b8['is'](_0x49c3('0xe'),_0x49c3('0x15'));}['_trimToContent'](_0x4752e6){const _0x1116b7=_0x19a790=>!this['_itemIsContent'](_0x19a790[_0x49c3('0x11')]),_0x175e5f=_0x4752e6['start'][_0x49c3('0x5')](_0x1116b7),_0x5409d2=_0x4752e6[_0x49c3('0xd')][_0x49c3('0x5')](_0x1116b7,{'direction':'backward'});return this[_0x49c3('0x4')][_0x49c3('0x0')]['createRange'](_0x175e5f,_0x5409d2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b88=['collection','findIndex','has','pluginName','archivedThreads','init','activate','_calculatePosition','removeCommentThread','highest','listenTo','plugins','add','focus','getCommentThread','stopListening','remove','get','archivedAt','requires','addCommentThread','isActive'];(function(_0x19c7dd,_0x3b8868){const _0x28516f=function(_0x4ce35e){while(--_0x4ce35e){_0x19c7dd['push'](_0x19c7dd['shift']());}};_0x28516f(++_0x3b8868);}(_0x3b88,0xd0));const _0x2851=function(_0x19c7dd,_0x3b8868){_0x19c7dd=_0x19c7dd-0x0;let _0x28516f=_0x3b88[_0x19c7dd];return _0x28516f;};import{ContextPlugin as _0x43b405}from'ckeditor5/src/core.js';import{Collection as _0xf11f9c}from'ckeditor5/src/utils.js';import _0x2400fc from'./commentsrepository.js';import _0x1df888 from'../annotations/annotations.js';export default class p extends _0x43b405{static get[_0x2851('0xf')](){return'CommentsArchive';}static get[_0x2851('0x9')](){return[_0x2400fc,_0x1df888];}constructor(_0x3a83f2){super(_0x3a83f2),this[_0x2851('0x10')]=new _0xf11f9c();}[_0x2851('0x11')](){const _0x3cd14d=this['context'],_0xf621b4=_0x3cd14d[_0x2851('0x1')][_0x2851('0x7')](_0x2400fc),_0x4e97b7=_0x3cd14d[_0x2851('0x1')][_0x2851('0x7')](_0x1df888);this['listenTo'](_0xf621b4,_0x2851('0xa'),(_0x4b96e7,{threadId:_0x34badf})=>{const _0x181942=_0xf621b4[_0x2851('0x4')](_0x34badf);_0x181942[_0x2851('0x8')]&&this[_0x2851('0x10')][_0x2851('0x2')](_0x181942,this['_calculatePosition'](_0x181942[_0x2851('0x8')])),this[_0x2851('0x0')](_0x181942,'change:archivedAt',(_0x46fcff,_0x4217a1,_0xcdd80)=>{_0xcdd80?this[_0x2851('0x10')][_0x2851('0xe')](_0x181942)||this[_0x2851('0x10')][_0x2851('0x2')](_0x181942,this[_0x2851('0x13')](_0x181942[_0x2851('0x8')])):this[_0x2851('0x10')][_0x2851('0xe')](_0x181942)&&this[_0x2851('0x10')][_0x2851('0x6')](_0x181942);});}),this['listenTo'](_0xf621b4,_0x2851('0x14'),(_0x4669cf,{threadId:_0xf53376})=>{const _0x4e6650=_0xf621b4[_0x2851('0x4')](_0xf53376);this[_0x2851('0x5')](_0x4e6650),this['archivedThreads'][_0x2851('0xe')](_0x4e6650)&&this[_0x2851('0x10')][_0x2851('0x6')](_0x4e6650);},{'priority':_0x2851('0x15')}),this[_0x2851('0x0')](_0x4e97b7[_0x2851('0xc')],_0x2851('0x3'),(_0x5629d7,_0x1e5cb1)=>{_0x1e5cb1[_0x2851('0xb')]=!0x0,_0x4e97b7[_0x2851('0x12')](_0x1e5cb1);});}[_0x2851('0x13')](_0x14831a){const _0x216ecd=[...this[_0x2851('0x10')]][_0x2851('0xd')](_0x1df64c=>_0x1df64c[_0x2851('0x8')]<_0x14831a);return _0x216ecd>-0x1?_0x216ecd:this[_0x2851('0x10')]['length'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x521e=['pluginName','view','editor','requires','commentsArchive','change:isOpen','getByInnerView','componentFactory','classList','_handleAnnotationFocusableElements','CommentsArchiveUI','splice','_threadToController','panelView','findIndex','add','archivedThreads','COMMENTS_ARCHIVE','children','collection','_pendingThreads','buttonView','contains','annotationViews','stopListening','focusableElements','length','Annotations','_calculatePosition','focusTracker','CommentsRepository','ck-comments-archive-dropdown','mainView','_visibleAnnotations','ck-body','remove','find','listenTo','_createArchiveUIDropdown','config','innerView','init','locale','isVisible','commentsArchiveView','archivedAt','push','get','plugins','set'];(function(_0x4bc78a,_0x521e6d){const _0x1f1564=function(_0x13a273){while(--_0x13a273){_0x4bc78a['push'](_0x4bc78a['shift']());}};_0x1f1564(++_0x521e6d);}(_0x521e,0x1a2));const _0x1f15=function(_0x4bc78a,_0x521e6d){_0x4bc78a=_0x4bc78a-0x0;let _0x1f1564=_0x521e[_0x4bc78a];return _0x1f1564;};import'../../theme/commentsarchive.css';import{Plugin as _0x578840}from'ckeditor5/src/core.js';import{createDropdown as _0x32adea,ViewCollection as _0x422c24}from'ckeditor5/src/ui.js';import _0x42da95 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0xaf936d}from'../utils/common-translations.js';import _0x5ab285 from'./ui/view/commentsarchiveview.js';import _0xb9ec8 from'./commentsarchive.js';export default class a extends _0x578840{static get[_0x1f15('0x20')](){return _0x1f15('0x2a');}static get[_0x1f15('0x23')](){return[_0xb9ec8];}constructor(_0x404b96){super(_0x404b96),this[_0x1f15('0x5')]=new _0x422c24(),this[_0x1f15('0x2')]=[];}[_0x1f15('0x17')](){this[_0x1f15('0x22')]['ui'][_0x1f15('0x27')][_0x1f15('0x2f')](_0x1f15('0x24'),()=>this[_0x1f15('0x14')]());const _0x5dbf54=this['editor'][_0x1f15('0x1e')][_0x1f15('0x1d')](_0xb9ec8),_0x5e5c82=this[_0x1f15('0x22')]['plugins'][_0x1f15('0x1d')]('Annotations'),_0x175c7a=this[_0x1f15('0x22')][_0x1f15('0x1e')][_0x1f15('0x1d')](_0x1f15('0xc'));this[_0x1f15('0x13')](_0x5dbf54[_0x1f15('0x30')],_0x1f15('0x2f'),(_0x3fd991,_0x47a985)=>{const _0x7dc674=this['editor'][_0x1f15('0x15')][_0x1f15('0x1d')]('collaboration.channelId');if(!_0x7dc674||_0x47a985['channelId']===_0x7dc674){const _0x56ec92=this[_0x1f15('0xa')](_0x47a985[_0x1f15('0x1b')]),_0xba0d0e=_0x175c7a[_0x1f15('0x2c')][_0x1f15('0x1d')](_0x47a985);if(!_0xba0d0e)return void this['_pendingThreads'][_0x1f15('0x1c')]({'thread':_0x47a985,'position':_0x56ec92});const _0x47548e=_0x5e5c82[_0x1f15('0x26')](_0xba0d0e[_0x1f15('0x21')]);_0x47548e[_0x1f15('0x19')]&&_0x5e5c82[_0x1f15('0xf')][_0x1f15('0x11')](_0x47548e),this['annotationViews'][_0x1f15('0x2f')](_0x47548e[_0x1f15('0x21')],_0x56ec92);}}),this[_0x1f15('0x13')](_0x5e5c82[_0x1f15('0x1')],_0x1f15('0x2f'),(_0x223ead,_0x1d9071)=>{const _0x1cbee0=this[_0x1f15('0x2')][_0x1f15('0x12')](({thread:_0x1dae09})=>{const _0x2dfb11=_0x175c7a[_0x1f15('0x2c')][_0x1f15('0x1d')](_0x1dae09);return _0x2dfb11&&_0x1d9071[_0x1f15('0x16')]===_0x2dfb11['view'];});_0x1cbee0&&(this['annotationViews'][_0x1f15('0x2f')](_0x1d9071[_0x1f15('0x21')],_0x1cbee0['position']),this['_pendingThreads'][_0x1f15('0x2b')](this['_pendingThreads']['indexOf'](_0x1cbee0),0x1));}),this[_0x1f15('0x13')](_0x5dbf54['archivedThreads'],_0x1f15('0x11'),(_0x2b02f8,_0x26c7a4)=>{const _0x5244ec=this['editor'][_0x1f15('0x15')][_0x1f15('0x1d')]('collaboration.channelId');if(!_0x5244ec||_0x26c7a4['channelId']===_0x5244ec){const _0x40a4b9=_0x175c7a[_0x1f15('0x2c')]['get'](_0x26c7a4),_0x315f44=_0x5e5c82[_0x1f15('0x26')](_0x40a4b9[_0x1f15('0x21')]);this[_0x1f15('0x5')][_0x1f15('0x11')](_0x315f44[_0x1f15('0x21')]),this[_0x1f15('0x6')](_0x315f44[_0x1f15('0x7')]);}});}[_0x1f15('0x29')](_0x1daa09,_0x44da95){for(const _0x4d7ad1 of _0x44da95['focusableElements'])_0x4d7ad1[_0x1f15('0x28')][_0x1f15('0x4')](_0x1f15('0x10'))&&_0x1daa09[_0x1f15('0xb')][_0x1f15('0x2f')](_0x4d7ad1);this[_0x1f15('0x13')](_0x44da95[_0x1f15('0x7')],_0x1f15('0x2f'),(_0x22f1ba,_0x57f0a3)=>{_0x57f0a3[_0x1f15('0x28')][_0x1f15('0x4')](_0x1f15('0x10'))&&_0x1daa09[_0x1f15('0xb')][_0x1f15('0x2f')](_0x57f0a3);}),this[_0x1f15('0x13')](_0x44da95[_0x1f15('0x7')],_0x1f15('0x11'),(_0x37715f,_0x8506a6)=>{_0x8506a6[_0x1f15('0x28')]['contains'](_0x1f15('0x10'))&&_0x1daa09[_0x1f15('0xb')][_0x1f15('0x11')](_0x8506a6);});}[_0x1f15('0xa')](_0x39220f){const _0x236037=this[_0x1f15('0x22')][_0x1f15('0x15')][_0x1f15('0x1d')]('collaboration.channelId'),_0x33662f=[...this[_0x1f15('0x22')][_0x1f15('0x1e')][_0x1f15('0x1d')](_0xb9ec8)[_0x1f15('0x30')]]['filter'](_0x1eb440=>_0x1eb440['channelId']===_0x236037)[_0x1f15('0x2e')](_0xdbe93e=>_0xdbe93e[_0x1f15('0x1b')]<_0x39220f);return _0x33662f>-0x1?_0x33662f-0x1:this['annotationViews'][_0x1f15('0x8')];}[_0x1f15('0x14')](){const _0xe1e686=this[_0x1f15('0x22')],_0x3b19d9=this[_0x1f15('0x22')][_0x1f15('0x1e')][_0x1f15('0x1d')](_0x1f15('0x9')),_0x27fc39=_0x32adea(_0xe1e686[_0x1f15('0x18')]);_0x27fc39[_0x1f15('0x3')][_0x1f15('0x1f')]({'icon':_0x42da95,'label':_0xaf936d(_0xe1e686[_0x1f15('0x18')],_0x1f15('0x31')),'tooltip':!0x0}),_0x27fc39['panelView']['extendTemplate']({'attributes':{'class':_0x1f15('0xd')}}),_0x27fc39['on'](_0x1f15('0x25'),(_0x52a3f6,_0x190895,_0x213745)=>{this['commentsArchiveView']||(this[_0x1f15('0x1a')]=new _0x5ab285(_0xe1e686[_0x1f15('0x18')],this[_0x1f15('0x5')])),_0x213745?_0x27fc39[_0x1f15('0x2d')][_0x1f15('0x0')][_0x1f15('0x2f')](this['commentsArchiveView']):_0x27fc39[_0x1f15('0x2d')][_0x1f15('0x0')][_0x1f15('0x11')](this['commentsArchiveView']);});for(const _0x20795c of this['annotationViews']){const _0x2af511=_0x3b19d9['getByInnerView'](_0x20795c[_0x1f15('0xe')]);this['_handleAnnotationFocusableElements'](_0x27fc39,_0x2af511);}return _0x27fc39[_0x1f15('0x13')](this[_0x1f15('0x5')],_0x1f15('0x2f'),(_0x2e1c2c,_0x2b772e)=>{const _0xf19bf=_0x3b19d9[_0x1f15('0x26')](_0x2b772e[_0x1f15('0xe')]);this[_0x1f15('0x29')](_0x27fc39,_0xf19bf);}),_0x27fc39[_0x1f15('0x13')](this[_0x1f15('0x5')],_0x1f15('0x11'),(_0x556bd9,_0x457a19)=>{const _0xceb3f1=_0x3b19d9[_0x1f15('0x26')](_0x457a19[_0x1f15('0xe')]);for(const _0x2a530a of _0xceb3f1[_0x1f15('0x7')])_0x2a530a[_0x1f15('0x28')]['contains'](_0x1f15('0x10'))&&_0x27fc39[_0x1f15('0xb')][_0x1f15('0x11')](_0x2a530a);}),_0x27fc39;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5e02=['ignoreResolvedComments','$graveyard','low','length','addComment','plugins','dataDowncast','schema','isResolved','group','requires','elementToElement','announce','isLocal','getByInnerView','affectsData','removeCommentThread','data','rootName','markerName','end','change:isThreadsLoadingPaused','setUnlinkedAt','split','item','_attachArchivedThread','getChangedMarkers','delete','comments','addCommentThread','init','activeMarker','_reconvertMarkers','set','_attachMarkerToThread','_hasTargetInContent','start','editingDowncast','_initAriaMarkerChangeAnnouncements','model','managedUsingOperations','destroyed','size','createElement','upcast','getCommentThreads','enqueueChange','name','view','change','config','collaboration.channelId','getRange','removeMarker:','updateMarker','add','createPositionBefore','commands','switchReadOnly','getItems','hasCommentThread','createRange','ck-comment-marker','editor','_getTextContext','substring','_handleThreadMarker','render','_getTargetForId','attachTo','openNewCommentThread','getAllMarkersForId','differ','registerAnnotation','isEqual','fetchCommentThread','comment','scrollToThreadMarker','reopenCommentThread','join','hasDomSelection','listenTo','getWalker','markerToData','get','addMarker:','_initializeMarkerConverters','markers','reconvertMarker','_handleMarkerAddAndRemove','context','conversion','unlinkedAt','once','ariaLiveAnnouncer','change:activeMarker','hasMarkerForId','getCommentThread','newRange','destroy','editing','isThreadsLoadingPaused','setContext','then','CommentsEditing','consume','root','hasContent','removeMarker','document','$marker','refreshVisibility','for','comment:','clear','dataToMarker','push'];(function(_0x26d4c0,_0x5e0214){const _0x80e416=function(_0x5c7f92){while(--_0x5c7f92){_0x26d4c0['push'](_0x26d4c0['shift']());}};_0x80e416(++_0x5e0214);}(_0x5e02,0x6e));const _0x80e4=function(_0x26d4c0,_0x5e0214){_0x26d4c0=_0x26d4c0-0x0;let _0x80e416=_0x5e02[_0x26d4c0];return _0x80e416;};import{Plugin as _0x2cf34a}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x26a6a3}from'ckeditor5/src/utils.js';import _0x5db589 from'./commentsrepository.js';import _0x6d1935 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x1c111d,getAllMarkersDomElementsSorted as _0x2b3741}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2639d5 from'../annotations/editorannotations.js';import _0xc7a8b3 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x25e210 from'./integrations/importword.js';import _0xe4803e from'../annotations/annotations.js';import{getTranslation as _0x143480}from'../utils/common-translations.js';export default class r extends _0x2cf34a{static get[_0x80e4('0x11')](){return[_0x5db589,_0x2639d5,_0xc7a8b3,_0x25e210];}static get['pluginName'](){return _0x80e4('0x6f');}constructor(_0x2d265c){super(_0x2d265c),this[_0x80e4('0x28')](_0x80e4('0x6c'),!0x0),_0x2d265c[_0x80e4('0x18')]['once']('ready',()=>this[_0x80e4('0x6c')]=!0x1),this['set'](_0x80e4('0x26'),null),this['on'](_0x80e4('0x66'),(_0x577ad5,_0x53c22f,_0x465181,_0xfd4d0)=>{const _0x47f011=_0x465181?ot(_0x465181)['id']:null;if(_0x2d265c['model'][_0x80e4('0x38')](()=>{if(_0x47f011){const _0x5d9825=this['getAllMarkersForId'](_0x47f011);for(const _0x18fea4 of _0x5d9825)_0x2d265c[_0x80e4('0x6b')][_0x80e4('0x5f')](_0x18fea4);}if(_0xfd4d0){const {id:_0x1fbbcf}=ot(_0xfd4d0),_0x6c84dd=this[_0x80e4('0x4e')](_0x1fbbcf);for(const _0x2cf7a0 of _0x6c84dd)_0x2d265c[_0x80e4('0x6b')]['reconvertMarker'](_0x2cf7a0);}}),_0x47f011){const _0x301d66=_0x2d265c['plugins'][_0x80e4('0x5b')](_0x5db589)[_0x80e4('0x68')](_0x47f011);_0x301d66&&_0x301d66[_0x80e4('0xf')]&&this[_0x80e4('0x54')](_0x47f011);}}),this['_initAriaMarkerChangeAnnouncements']();}[_0x80e4('0x25')](){const _0x40ae16=this[_0x80e4('0x46')],_0x325cbf=_0x40ae16[_0x80e4('0xc')]['get'](_0x5db589),_0x32c40e=_0x40ae16[_0x80e4('0x39')]['get'](_0x80e4('0x3a'));_0x40ae16[_0x80e4('0x40')][_0x80e4('0x3e')]('addCommentThread',new _0x6d1935(_0x40ae16)),this[_0x80e4('0x58')](_0x40ae16,'change:isReadOnly',(_0x23a58a,_0x3dfc5c,_0x2fb8f4)=>{_0x325cbf[_0x80e4('0x41')](_0x2fb8f4,_0x40ae16[_0x80e4('0x39')][_0x80e4('0x5b')]('collaboration.channelId'));}),this['listenTo'](_0x325cbf,tt(_0x80e4('0x24'),_0x32c40e),(_0x1fbf83,{threadId:_0x2a43ca})=>{const _0x530842=this[_0x80e4('0x46')]['plugins'][_0x80e4('0x5b')](_0x5db589)['getCommentThread'](_0x2a43ca);_0x530842&&_0x530842[_0x80e4('0x63')]&&this[_0x80e4('0x20')](_0x2a43ca);}),this[_0x80e4('0x58')](_0x325cbf,tt(_0x80e4('0x17'),_0x32c40e),(_0x334f82,{threadId:_0x5b3625})=>{_0x40ae16[_0x80e4('0x2e')][_0x80e4('0x35')]({'isUndoable':!0x1},_0x4d91a3=>{const _0x51e4b9=this[_0x80e4('0x4e')](_0x5b3625);for(const _0x26f586 of _0x51e4b9)_0x4d91a3['removeMarker'](_0x26f586);});}),this[_0x80e4('0x58')](_0x325cbf,tt('resolveCommentThread',_0x32c40e),(_0x3f106e,{threadId:_0x38c742})=>{(this[_0x80e4('0x27')](_0x38c742),this[_0x80e4('0x46')]['editing'][_0x80e4('0x37')][_0x80e4('0x57')])&&(this[_0x80e4('0x46')]['plugins']['get'](_0x5db589)['getCommentThread'](_0x38c742)['unlinkedAt']||this[_0x80e4('0x46')][_0x80e4('0x6b')][_0x80e4('0x37')]['focus']());},{'priority':_0x80e4('0x9')}),this[_0x80e4('0x58')](_0x325cbf,tt(_0x80e4('0x55'),_0x32c40e),(_0x43fe4e,{threadId:_0x42676d})=>{this[_0x80e4('0x27')](_0x42676d);},{'priority':_0x80e4('0x9')}),this[_0x80e4('0x58')](_0x325cbf,tt(_0x80e4('0xb'),_0x32c40e),(_0x1709e1,{threadId:_0x53641a,isFromAdapter:_0x39ae8f})=>{const _0x44bd31=this[_0x80e4('0x4e')](_0x53641a);if(_0x39ae8f||0x0==_0x44bd31[_0x80e4('0xa')]||!_0x325cbf[_0x80e4('0x43')](_0x53641a))return;0x1===_0x325cbf[_0x80e4('0x68')](_0x53641a)[_0x80e4('0xa')]&&_0x40ae16[_0x80e4('0x2e')][_0x80e4('0x35')]({'isUndoable':!0x1},_0x1d04f4=>{for(const _0xd646a3 of _0x44bd31)_0x1d04f4['updateMarker'](_0xd646a3,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x80e4('0x5d')](),this[_0x80e4('0x60')]();}[_0x80e4('0x6a')](){const _0x10189b=this['editor'][_0x80e4('0xc')][_0x80e4('0x5b')](_0x5db589),_0x101fea=this['editor']['config'][_0x80e4('0x5b')](_0x80e4('0x3a'));for(const _0x363c61 of _0x10189b[_0x80e4('0x34')]({'channelId':_0x101fea}))_0x10189b['_detachCommentThread'](_0x363c61['id']),_0x10189b['_threads'][_0x80e4('0x22')](_0x363c61['id']);super['destroy']();}[_0x80e4('0x67')](_0xe283f9){return this[_0x80e4('0x4e')](_0xe283f9)[_0x80e4('0xa')]>0x0;}['getAllMarkersForId'](_0x1660a9){const _0x386763=[];for(const _0x4961ac of this['editor'][_0x80e4('0x2e')][_0x80e4('0x5e')])_0x4961ac[_0x80e4('0x36')]['startsWith'](_0x80e4('0x3')+_0x1660a9)&&_0x386763[_0x80e4('0x6')](_0x4961ac);return _0x386763;}[_0x80e4('0x54')](_0xfd76a7){const _0x566559=this[_0x80e4('0x4b')](_0xfd76a7);_0x566559&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x80e4('0x26')])['id']===_0xfd76a7&&_0x26a6a3({'target':_0x566559[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x80e4('0x27')](_0x16d874){this['editor']['model'][_0x80e4('0x38')](()=>{for(const _0x11b3cb of this[_0x80e4('0x4e')](_0x16d874))this[_0x80e4('0x46')][_0x80e4('0x6b')]['reconvertMarker'](_0x11b3cb);});}[_0x80e4('0x20')](_0x577b94){const _0x434348=this[_0x80e4('0x46')][_0x80e4('0xc')][_0x80e4('0x5b')](_0x5db589),_0x22aeb0=this[_0x80e4('0x46')][_0x80e4('0xc')][_0x80e4('0x5b')](_0x2639d5),_0x52c61e=_0x434348['getCommentThread'](_0x577b94);if(!_0x52c61e['isAttached']){const _0x368dd1=_0x52c61e[_0x80e4('0x4c')](()=>this[_0x80e4('0x4b')](_0x52c61e['id']));_0x22aeb0[_0x80e4('0x50')](_0x368dd1),_0x52c61e[_0x80e4('0x2a')]=!0x1;}}[_0x80e4('0x5d')](){const _0x460896=this[_0x80e4('0x46')];_0x460896[_0x80e4('0x62')][_0x80e4('0x2')](_0x80e4('0x2c'))['markerToHighlight']({'model':_0x80e4('0x53'),'view':(_0x582ac9,_0x8cf79a)=>{const {id:_0x522b55}=ot(_0x582ac9['markerName']),_0x5aa48a=_0x460896[_0x80e4('0xc')][_0x80e4('0x5b')](_0x5db589)[_0x80e4('0x68')](_0x522b55),_0x3c4a2a=this[_0x80e4('0x26')]&&ot(this['activeMarker'])['id']===_0x522b55;if(_0x5aa48a&&_0x5aa48a[_0x80e4('0xf')]&&!_0x3c4a2a&&_0x582ac9[_0x80e4('0x1f')])return _0x8cf79a['consumable'][_0x80e4('0x70')](_0x582ac9[_0x80e4('0x1f')],_0x80e4('0x5c')+_0x582ac9[_0x80e4('0x1a')]),_0x8cf79a['consumable'][_0x80e4('0x70')](_0x582ac9[_0x80e4('0x1f')],_0x80e4('0x3c')+_0x582ac9['markerName']),null;const _0x585f1a=[_0x80e4('0x45')];return _0x3c4a2a&&_0x585f1a[_0x80e4('0x6')]('ck-comment-marker--active'),{'classes':_0x585f1a,'attributes':{'data-comment':_0x522b55}};}}),_0x460896[_0x80e4('0x62')][_0x80e4('0x2')](_0x80e4('0xd'))[_0x80e4('0x5a')]({'model':'comment','view':(_0x2a3dd8,{options:_0xcfc14f})=>{const _0x1ca858=_0x460896[_0x80e4('0xc')][_0x80e4('0x5b')](_0x5db589),_0x56dc9d=_0x460896['model'][_0x80e4('0x5e')][_0x80e4('0x5b')](_0x2a3dd8),{id:_0x3ff3eb,part:_0xad3fed}=ot(_0x2a3dd8);if(_0x56dc9d&&!_0x56dc9d[_0x80e4('0x16')])return null;if(_0xcfc14f[_0x80e4('0x7')]){const _0x2553c3=_0x1ca858[_0x80e4('0x68')](_0x3ff3eb);if(_0x2553c3&&_0x2553c3[_0x80e4('0xf')])return null;}return{'group':_0x80e4('0x53'),'name':_0xad3fed?_0x3ff3eb+':'+_0xad3fed:_0x3ff3eb};}}),_0x460896['conversion'][_0x80e4('0x2')](_0x80e4('0x33'))[_0x80e4('0x12')]({'view':{'name':_0x80e4('0x53'),'attributes':{'id':/^\w/}},'model':(_0x570205,{writer:_0x55179f})=>_0x55179f[_0x80e4('0x32')](_0x80e4('0x0'),{'data-name':_0x80e4('0x3')+_0x570205['getAttribute']('id')})}),_0x460896[_0x80e4('0x62')]['for'](_0x80e4('0x33'))[_0x80e4('0x5')]({'view':_0x80e4('0x53')});}[_0x80e4('0x60')](){const _0x19f3d4=this[_0x80e4('0x46')],_0x3a5031=_0x19f3d4[_0x80e4('0xc')][_0x80e4('0x5b')](_0x5db589),_0x1be51c=new Set(),_0x3e9541=new Set();_0x19f3d4[_0x80e4('0x2e')][_0x80e4('0x74')]['registerPostFixer'](_0x26da82=>{let _0x2b3113=!0x1;for(const {name:_0x763de9,data:_0x4eb17d}of _0x19f3d4[_0x80e4('0x2e')][_0x80e4('0x74')][_0x80e4('0x4f')][_0x80e4('0x21')]()){const {group:_0xafa79c,id:_0x4b8b03}=ot(_0x763de9);let _0x17da2c=_0x4eb17d['newRange'];if(_0x80e4('0x53')!==_0xafa79c||!_0x17da2c)continue;const _0x17c77e=_0x80e4('0x8')===_0x17da2c[_0x80e4('0x71')][_0x80e4('0x19')];_0x17c77e||(_0x17da2c=et(_0x17da2c,_0x19f3d4[_0x80e4('0x2e')]),!_0x17da2c||_0x17da2c['isCollapsed']||!_0x4eb17d[_0x80e4('0x69')]||_0x17da2c[_0x80e4('0x51')](_0x4eb17d[_0x80e4('0x69')]))?_0x19f3d4['model'][_0x80e4('0x72')](_0x17da2c)&&!_0x17c77e?this[_0x80e4('0x6c')]?_0x1be51c[_0x80e4('0x3e')](_0x763de9):this['_handleThreadMarker'](_0x763de9,_0x4b8b03):(_0x3e9541[_0x80e4('0x3e')](_0x763de9),_0x1be51c[_0x80e4('0x22')](_0x763de9),_0x26da82[_0x80e4('0x73')](_0x763de9),_0x2b3113=!0x0):(_0x26da82[_0x80e4('0x3d')](_0x763de9,{'range':_0x17da2c}),_0x2b3113=!0x0);}return _0x2b3113;}),this['on'](_0x80e4('0x1c'),(_0x2f7fa1,_0x541525,_0x41bd6b)=>{if(!_0x41bd6b&&_0x1be51c[_0x80e4('0x31')])for(const _0x35abcc of _0x1be51c){const {id:_0x29eae0}=ot(_0x35abcc);_0x1be51c[_0x80e4('0x22')](_0x35abcc),_0x19f3d4[_0x80e4('0x2e')][_0x80e4('0x5e')][_0x80e4('0x5b')](_0x35abcc)&&this[_0x80e4('0x49')](_0x35abcc,_0x29eae0);}}),this[_0x80e4('0x58')](_0x19f3d4[_0x80e4('0x2e')]['document'],_0x80e4('0x38'),(_0x150dcf,_0x1488d6)=>{for(const {name:_0x1c3165,data:{newRange:_0x17e2ff}}of _0x19f3d4[_0x80e4('0x2e')][_0x80e4('0x74')][_0x80e4('0x4f')][_0x80e4('0x21')]()){const {group:_0x5d2fa7,id:_0x283fb2}=ot(_0x1c3165);if(_0x80e4('0x53')!==_0x5d2fa7)continue;const _0x20f24d=_0x3a5031[_0x80e4('0x68')](_0x283fb2),_0x10d699=this[_0x80e4('0x67')](_0x283fb2);_0x20f24d&&(_0x20f24d[_0x80e4('0x2a')]||_0x19f3d4[_0x80e4('0x6b')][_0x80e4('0x37')][_0x80e4('0x64')](_0x80e4('0x4a'),()=>{const _0x2bb20d=_0x19f3d4[_0x80e4('0xc')][_0x80e4('0x5b')](_0xe4803e),_0x4c0df3=_0x3a5031['_threadToController'][_0x80e4('0x5b')](_0x20f24d)[_0x80e4('0x37')];_0x2bb20d['getByInnerView'](_0x4c0df3)[_0x80e4('0x1')]();},{'priority':_0x80e4('0x9')}),_0x20f24d[_0x80e4('0x2a')]=_0x10d699||!!_0x17e2ff),_0x17e2ff||(_0x3e9541[_0x80e4('0x3e')](_0x1c3165),_0x1be51c['delete'](_0x1c3165));}if(_0x1488d6[_0x80e4('0x14')])for(const _0x2dc9ca of _0x3e9541){const {id:_0x3240f9}=ot(_0x2dc9ca),_0x524709=_0x3a5031[_0x80e4('0x68')](_0x3240f9),_0x34ff92=this[_0x80e4('0x67')](_0x3240f9);_0x1be51c['delete'](_0x2dc9ca),!_0x524709||_0x34ff92||_0x524709['unlinkedAt']||_0x524709[_0x80e4('0x1d')](new Date());}_0x3e9541[_0x80e4('0x4')]();});}['_getTargetForId'](_0x330c8b){const _0x2ea010=this[_0x80e4('0x46')],_0x3f62bd=this['getAllMarkersForId'](_0x330c8b);return _0x2b3741(_0x2ea010[_0x80e4('0x6b')],_0x3f62bd);}['_getTextContext'](_0x590a5f){const _0x2ea485=this[_0x80e4('0x4e')](_0x590a5f);let _0x1ab561='',_0x35b4b7=!0x1;for(const _0x41f2ff of _0x2ea485){const _0x149478=_0x41f2ff[_0x80e4('0x3b')]();for(const _0x3e3173 of Array['from'](_0x149478[_0x80e4('0x42')]()))_0x3e3173['is']('$textProxy')?(_0x1ab561&&_0x35b4b7&&(_0x1ab561+='\x20',_0x35b4b7=!0x1),_0x1ab561+=_0x3e3173['data']):_0x35b4b7=!0x0;_0x35b4b7=!0x0;}return _0x1ab561[_0x80e4('0x48')](0x0,0x96);}['_attachMarkerToThread'](_0x51032b,_0x192338){const _0x3085e4=this[_0x80e4('0x46')],_0x428b9c=_0x3085e4[_0x80e4('0xc')][_0x80e4('0x5b')](_0x5db589);let _0x5059c0=_0x428b9c[_0x80e4('0x68')](_0x192338);const _0x4c80fd=_0x3085e4[_0x80e4('0x39')][_0x80e4('0x5b')]('collaboration.channelId'),_0x3eb005=_0x3085e4['plugins'][_0x80e4('0x5b')](_0x2639d5);if(_0x5059c0&&(_0x5059c0[_0x80e4('0x63')]&&_0x5059c0[_0x80e4('0x1d')](null),_0x5059c0['isAttached']))return _0x5059c0;return!this[_0x80e4('0x4e')](_0x192338)[0x0][_0x80e4('0x2f')]?_0x3085e4[_0x80e4('0x6b')][_0x80e4('0x37')]['once']('render',()=>{if(_0x428b9c[_0x80e4('0x68')](_0x192338))return;const _0x5280d8=_0x3085e4[_0x80e4('0xc')][_0x80e4('0x5b')](_0xe4803e);_0x5059c0=_0x428b9c[_0x80e4('0x4d')]({'channelId':_0x4c80fd,'threadId':_0x192338,'target':()=>this[_0x80e4('0x4b')](_0x192338),'context':{'type':'text','value':this[_0x80e4('0x47')](_0x192338)}});const _0x4ea78d=_0x428b9c['_threadToController'][_0x80e4('0x5b')](_0x5059c0)[_0x80e4('0x37')],_0x28a022=_0x5280d8[_0x80e4('0x15')](_0x4ea78d);_0x28a022&&_0x3eb005[_0x80e4('0x50')](_0x28a022);},{'priority':_0x80e4('0x9')}):_0x428b9c[_0x80e4('0x52')]({'channelId':_0x4c80fd,'threadId':_0x192338})[_0x80e4('0x6e')](_0x276409=>{if(_0x80e4('0x30')!==_0x3085e4['state']){if(_0x5059c0=_0x276409,_0x5059c0&&!_0x5059c0['isAttached']){const _0x158a8f=_0x5059c0[_0x80e4('0x4c')](()=>this[_0x80e4('0x4b')](_0x192338));_0x3eb005[_0x80e4('0x50')](_0x158a8f),_0x5059c0[_0x80e4('0xf')]&&this[_0x80e4('0x27')](_0x192338);}else{if(!_0x5059c0){const _0x5ee06c=this[_0x80e4('0x4e')](_0x192338);_0x3085e4[_0x80e4('0x2e')][_0x80e4('0x38')](_0x2123e6=>{for(const _0x230d20 of _0x5ee06c)_0x2123e6[_0x80e4('0x73')](_0x230d20);});}}}}),_0x5059c0;}[_0x80e4('0x49')](_0x67bb49,_0x1ccd09){const _0x1f625a=this[_0x80e4('0x29')](_0x67bb49,_0x1ccd09);_0x1f625a&&!_0x1f625a[_0x80e4('0x61')]&&_0x1f625a[_0x80e4('0x6d')]({'type':'text','value':this['_getTextContext'](_0x1ccd09)});}[_0x80e4('0x2d')](){const _0x58662f=this[_0x80e4('0x46')];_0x1c111d(_0x58662f['model'],({left:_0x4bcb9c,entered:_0x43a20b})=>{const _0x3b1690=[];for(const _0x3f60e8 of _0x4bcb9c)if(rt(_0x3f60e8)){_0x3b1690[_0x80e4('0x6')](_0x143480(_0x58662f['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x392a1d of _0x43a20b)if(rt(_0x392a1d)){_0x3b1690['push'](_0x143480(_0x58662f['locale'],'ENTER_COMMENT_ANNOUNCEMENT'));break;}_0x3b1690['length']&&_0x58662f['ui'][_0x80e4('0x65')][_0x80e4('0x13')](_0x80e4('0x23'),_0x3b1690[_0x80e4('0x56')]('\x20'));});}}function tt(_0x20436a,_0x16fc20){return _0x16fc20?_0x20436a+':'+_0x16fc20:_0x20436a;}function ot(_0x2c6585){const _0x46bc56=_0x2c6585[_0x80e4('0x1e')](':');return{'group':_0x46bc56[0x0],'id':_0x46bc56[0x1],'part':_0x46bc56[0x2]};}function et(_0x1c9768,_0x12e2fa){const _0x198de4=_0x12e2fa[_0x80e4('0xe')],_0x3906d3=_0x12e2fa[_0x80e4('0x44')](_0x1c9768[_0x80e4('0x2b')]);for(const _0x3ebd36 of _0x1c9768[_0x80e4('0x59')]()){const {type:_0x423609,item:_0x75a66b,nextPosition:_0x2f8007}=_0x3ebd36;if('text'===_0x423609||_0x198de4['isObject'](_0x75a66b)){const _0x372c30=_0x12e2fa[_0x80e4('0x3f')](_0x75a66b);_0x3906d3['isCollapsed']&&(_0x3906d3[_0x80e4('0x2b')]=_0x372c30),_0x3906d3[_0x80e4('0x1b')]=_0x2f8007;}}return _0x3906d3;}function rt(_0x51f8fd){return _0x80e4('0x53')===ot(_0x51f8fd[_0x80e4('0x36')])[_0x80e4('0x10')];}
|
|
23
|
+
const _0x2895=['getItems','view','once','get','hasContent','render','hasCommentThread','listenTo','init','removeMarker','startsWith','isLocal','_initAriaMarkerChangeAnnouncements','_detachCommentThread','$marker','unlinkedAt','getAllMarkersForId','resolveCommentThread','comments','change:isThreadsLoadingPaused','getByInnerView','set','plugins','isResolved','data','CommentsEditing','destroyed','item','conversion','LEAVE_COMMENT_ANNOUNCEMENT','editingDowncast','isEqual','commands','getCommentThread','isObject','ck-comment-marker','hasDomSelection','delete','_getTargetForId','attachTo','scrollToThreadMarker','reconvertMarker','openNewCommentThread','model','addMarker:','group','_initializeMarkerConverters','root','then','hasMarkerForId','markerName','isAttached','markerToHighlight','registerAnnotation','differ','getCommentThreads','context','addComment','push','_handleMarkerAddAndRemove','_threadToController','focus','config','requires','activeMarker','newRange','ck-comment-marker--active','reopenCommentThread','getChangedMarkers','announce','elementToElement','getAttribute','destroy','affectsData','fetchCommentThread','registerPostFixer','comment:','upcast','for','low','$textProxy','enqueueChange','switchReadOnly','from','_attachArchivedThread','_getTextContext','add','pluginName','_handleThreadMarker','change:isReadOnly','_reconvertMarkers','ENTER_COMMENT_ANNOUNCEMENT','change','start','ariaLiveAnnouncer','change:activeMarker','markers','length','document','addCommentThread','_hasTargetInContent','end','size','state','dataDowncast','_attachMarkerToThread','consume','getWalker','setContext','clear','split','isThreadsLoadingPaused','text','collaboration.channelId','createPositionBefore','setUnlinkedAt','updateMarker','managedUsingOperations','refreshVisibility','isCollapsed','$graveyard','comment','editor','createElement','locale','consumable','editing'];(function(_0x11c36e,_0x28957c){const _0x1a3667=function(_0x5636da){while(--_0x5636da){_0x11c36e['push'](_0x11c36e['shift']());}};_0x1a3667(++_0x28957c);}(_0x2895,0xae));const _0x1a36=function(_0x11c36e,_0x28957c){_0x11c36e=_0x11c36e-0x0;let _0x1a3667=_0x2895[_0x11c36e];return _0x1a3667;};import{Plugin as _0x13241f}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x2d7541}from'ckeditor5/src/utils.js';import _0x503ed2 from'./commentsrepository.js';import _0x397c6d from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x3b914d,getAllMarkersDomElementsSorted as _0x408bcc}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4bbe01 from'../annotations/editorannotations.js';import _0x2f1b00 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x6f50af from'./integrations/importword.js';import _0x1cedf6 from'../annotations/annotations.js';import{getTranslation as _0xe61512}from'../utils/common-translations.js';export default class r extends _0x13241f{static get[_0x1a36('0x10')](){return[_0x503ed2,_0x4bbe01,_0x2f1b00,_0x6f50af];}static get[_0x1a36('0x28')](){return _0x1a36('0x69');}constructor(_0x5e86a5){super(_0x5e86a5),this[_0x1a36('0x65')](_0x1a36('0x40'),!0x0),_0x5e86a5[_0x1a36('0x68')][_0x1a36('0x52')]('ready',()=>this['isThreadsLoadingPaused']=!0x1),this[_0x1a36('0x65')](_0x1a36('0x11'),null),this['on'](_0x1a36('0x30'),(_0x1a5947,_0x203f5f,_0x56923b,_0xf75d2)=>{const _0x269506=_0x56923b?ot(_0x56923b)['id']:null;if(_0x5e86a5['model'][_0x1a36('0x2d')](()=>{if(_0x269506){const _0x3d0ad2=this[_0x1a36('0x60')](_0x269506);for(const _0x1a180f of _0x3d0ad2)_0x5e86a5[_0x1a36('0x4f')][_0x1a36('0x79')](_0x1a180f);}if(_0xf75d2){const {id:_0x4845bf}=ot(_0xf75d2),_0x18d48f=this['getAllMarkersForId'](_0x4845bf);for(const _0x449071 of _0x18d48f)_0x5e86a5[_0x1a36('0x4f')][_0x1a36('0x79')](_0x449071);}}),_0x269506){const _0x39597b=_0x5e86a5[_0x1a36('0x66')][_0x1a36('0x53')](_0x503ed2)[_0x1a36('0x71')](_0x269506);_0x39597b&&_0x39597b[_0x1a36('0x67')]&&this[_0x1a36('0x78')](_0x269506);}}),this[_0x1a36('0x5c')]();}[_0x1a36('0x58')](){const _0x1f73b3=this[_0x1a36('0x4b')],_0x5c9437=_0x1f73b3[_0x1a36('0x66')][_0x1a36('0x53')](_0x503ed2),_0x1ce7eb=_0x1f73b3[_0x1a36('0xf')]['get'](_0x1a36('0x42'));_0x1f73b3[_0x1a36('0x70')][_0x1a36('0x27')](_0x1a36('0x34'),new _0x397c6d(_0x1f73b3)),this['listenTo'](_0x1f73b3,_0x1a36('0x2a'),(_0x37bfe5,_0x596211,_0x5eb9b4)=>{_0x5c9437[_0x1a36('0x23')](_0x5eb9b4,_0x1f73b3[_0x1a36('0xf')][_0x1a36('0x53')](_0x1a36('0x42')));}),this[_0x1a36('0x57')](_0x5c9437,tt(_0x1a36('0x34'),_0x1ce7eb),(_0x5d094c,{threadId:_0x2b10da})=>{const _0x3806fb=this[_0x1a36('0x4b')]['plugins'][_0x1a36('0x53')](_0x503ed2)['getCommentThread'](_0x2b10da);_0x3806fb&&_0x3806fb[_0x1a36('0x5f')]&&this[_0x1a36('0x25')](_0x2b10da);}),this['listenTo'](_0x5c9437,tt('removeCommentThread',_0x1ce7eb),(_0x462483,{threadId:_0x47cadd})=>{_0x1f73b3[_0x1a36('0x7b')][_0x1a36('0x22')]({'isUndoable':!0x1},_0x8dc80d=>{const _0x291858=this['getAllMarkersForId'](_0x47cadd);for(const _0x2bf0a8 of _0x291858)_0x8dc80d[_0x1a36('0x59')](_0x2bf0a8);});}),this[_0x1a36('0x57')](_0x5c9437,tt(_0x1a36('0x61'),_0x1ce7eb),(_0x299039,{threadId:_0x58d4dd})=>{(this[_0x1a36('0x2b')](_0x58d4dd),this[_0x1a36('0x4b')][_0x1a36('0x4f')]['view'][_0x1a36('0x74')])&&(this[_0x1a36('0x4b')][_0x1a36('0x66')][_0x1a36('0x53')](_0x503ed2)[_0x1a36('0x71')](_0x58d4dd)[_0x1a36('0x5f')]||this[_0x1a36('0x4b')]['editing']['view'][_0x1a36('0xe')]());},{'priority':'low'}),this[_0x1a36('0x57')](_0x5c9437,tt(_0x1a36('0x14'),_0x1ce7eb),(_0x61b67d,{threadId:_0x167b29})=>{this[_0x1a36('0x2b')](_0x167b29);},{'priority':_0x1a36('0x20')}),this[_0x1a36('0x57')](_0x5c9437,tt(_0x1a36('0xa'),_0x1ce7eb),(_0x53b540,{threadId:_0x13fd54,isFromAdapter:_0x1cf7d7})=>{const _0x5bdcc7=this[_0x1a36('0x60')](_0x13fd54);if(_0x1cf7d7||0x0==_0x5bdcc7[_0x1a36('0x32')]||!_0x5c9437[_0x1a36('0x56')](_0x13fd54))return;0x1===_0x5c9437[_0x1a36('0x71')](_0x13fd54)[_0x1a36('0x32')]&&_0x1f73b3[_0x1a36('0x7b')]['enqueueChange']({'isUndoable':!0x1},_0x29277a=>{for(const _0x332615 of _0x5bdcc7)_0x29277a[_0x1a36('0x45')](_0x332615,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x1a36('0x20')}),this[_0x1a36('0x7e')](),this[_0x1a36('0xc')]();}[_0x1a36('0x19')](){const _0xe54000=this['editor'][_0x1a36('0x66')]['get'](_0x503ed2),_0x5c6aca=this['editor'][_0x1a36('0xf')][_0x1a36('0x53')]('collaboration.channelId');for(const _0xd23f38 of _0xe54000[_0x1a36('0x8')]({'channelId':_0x5c6aca}))_0xe54000[_0x1a36('0x5d')](_0xd23f38['id']),_0xe54000['_threads'][_0x1a36('0x75')](_0xd23f38['id']);super['destroy']();}[_0x1a36('0x2')](_0x10b94d){return this['getAllMarkersForId'](_0x10b94d)[_0x1a36('0x32')]>0x0;}[_0x1a36('0x60')](_0x27af3c){const _0x1d2311=[];for(const _0x581827 of this[_0x1a36('0x4b')]['model'][_0x1a36('0x31')])_0x581827['name'][_0x1a36('0x5a')]('comment:'+_0x27af3c)&&_0x1d2311[_0x1a36('0xb')](_0x581827);return _0x1d2311;}['scrollToThreadMarker'](_0x5ab5e3){const _0x5846b9=this[_0x1a36('0x76')](_0x5ab5e3);_0x5846b9&&setTimeout(()=>{this[_0x1a36('0x11')]&&ot(this['activeMarker'])['id']===_0x5ab5e3&&_0x2d7541({'target':_0x5846b9[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x334c0f){this[_0x1a36('0x4b')][_0x1a36('0x7b')][_0x1a36('0x2d')](()=>{for(const _0x5aa634 of this[_0x1a36('0x60')](_0x334c0f))this[_0x1a36('0x4b')][_0x1a36('0x4f')][_0x1a36('0x79')](_0x5aa634);});}[_0x1a36('0x25')](_0x4fea11){const _0x31db41=this['editor']['plugins']['get'](_0x503ed2),_0x4af146=this[_0x1a36('0x4b')]['plugins']['get'](_0x4bbe01),_0x2990fc=_0x31db41[_0x1a36('0x71')](_0x4fea11);if(!_0x2990fc['isAttached']){const _0x731dc3=_0x2990fc[_0x1a36('0x77')](()=>this[_0x1a36('0x76')](_0x2990fc['id']));_0x4af146[_0x1a36('0x6')](_0x731dc3),_0x2990fc[_0x1a36('0x35')]=!0x1;}}[_0x1a36('0x7e')](){const _0x56eb3e=this[_0x1a36('0x4b')];_0x56eb3e['conversion']['for'](_0x1a36('0x6e'))[_0x1a36('0x5')]({'model':_0x1a36('0x4a'),'view':(_0xd2124b,_0x4cb466)=>{const {id:_0x2a49d8}=ot(_0xd2124b[_0x1a36('0x3')]),_0x28b601=_0x56eb3e[_0x1a36('0x66')][_0x1a36('0x53')](_0x503ed2)[_0x1a36('0x71')](_0x2a49d8),_0x596fc2=this[_0x1a36('0x11')]&&ot(this[_0x1a36('0x11')])['id']===_0x2a49d8;if(_0x28b601&&_0x28b601[_0x1a36('0x67')]&&!_0x596fc2&&_0xd2124b[_0x1a36('0x6b')])return _0x4cb466[_0x1a36('0x4e')]['consume'](_0xd2124b[_0x1a36('0x6b')],_0x1a36('0x7c')+_0xd2124b[_0x1a36('0x3')]),_0x4cb466[_0x1a36('0x4e')][_0x1a36('0x3b')](_0xd2124b[_0x1a36('0x6b')],'removeMarker:'+_0xd2124b['markerName']),null;const _0x118140=[_0x1a36('0x73')];return _0x596fc2&&_0x118140['push'](_0x1a36('0x13')),{'classes':_0x118140,'attributes':{'data-comment':_0x2a49d8}};}}),_0x56eb3e[_0x1a36('0x6c')][_0x1a36('0x1f')](_0x1a36('0x39'))['markerToData']({'model':'comment','view':(_0x128a52,{options:_0x29a0d0})=>{const _0x534555=_0x56eb3e[_0x1a36('0x66')][_0x1a36('0x53')](_0x503ed2),_0x1f3b17=_0x56eb3e[_0x1a36('0x7b')][_0x1a36('0x31')][_0x1a36('0x53')](_0x128a52),{id:_0x2ebf16,part:_0x122e72}=ot(_0x128a52);if(_0x1f3b17&&!_0x1f3b17[_0x1a36('0x1a')])return null;if(_0x29a0d0['ignoreResolvedComments']){const _0x518aa5=_0x534555[_0x1a36('0x71')](_0x2ebf16);if(_0x518aa5&&_0x518aa5[_0x1a36('0x67')])return null;}return{'group':'comment','name':_0x122e72?_0x2ebf16+':'+_0x122e72:_0x2ebf16};}}),_0x56eb3e['conversion'][_0x1a36('0x1f')](_0x1a36('0x1e'))[_0x1a36('0x17')]({'view':{'name':_0x1a36('0x4a'),'attributes':{'id':/^\w/}},'model':(_0x3042bd,{writer:_0x222e1a})=>_0x222e1a[_0x1a36('0x4c')](_0x1a36('0x5e'),{'data-name':_0x1a36('0x1d')+_0x3042bd[_0x1a36('0x18')]('id')})}),_0x56eb3e['conversion'][_0x1a36('0x1f')](_0x1a36('0x1e'))['dataToMarker']({'view':_0x1a36('0x4a')});}[_0x1a36('0xc')](){const _0x32238c=this[_0x1a36('0x4b')],_0x37d6b0=_0x32238c[_0x1a36('0x66')][_0x1a36('0x53')](_0x503ed2),_0x5bb5c7=new Set(),_0x3d3f8b=new Set();_0x32238c[_0x1a36('0x7b')][_0x1a36('0x33')][_0x1a36('0x1c')](_0x5aa0c6=>{let _0x1efe8f=!0x1;for(const {name:_0x1b174d,data:_0x54cb61}of _0x32238c[_0x1a36('0x7b')][_0x1a36('0x33')]['differ'][_0x1a36('0x15')]()){const {group:_0xc6f25e,id:_0x161107}=ot(_0x1b174d);let _0x13623c=_0x54cb61['newRange'];if(_0x1a36('0x4a')!==_0xc6f25e||!_0x13623c)continue;const _0x261051=_0x1a36('0x49')===_0x13623c[_0x1a36('0x0')]['rootName'];_0x261051||(_0x13623c=et(_0x13623c,_0x32238c[_0x1a36('0x7b')]),!_0x13623c||_0x13623c[_0x1a36('0x48')]||!_0x54cb61[_0x1a36('0x12')]||_0x13623c[_0x1a36('0x6f')](_0x54cb61[_0x1a36('0x12')]))?_0x32238c[_0x1a36('0x7b')][_0x1a36('0x54')](_0x13623c)&&!_0x261051?this[_0x1a36('0x40')]?_0x5bb5c7[_0x1a36('0x27')](_0x1b174d):this[_0x1a36('0x29')](_0x1b174d,_0x161107):(_0x3d3f8b['add'](_0x1b174d),_0x5bb5c7[_0x1a36('0x75')](_0x1b174d),_0x5aa0c6['removeMarker'](_0x1b174d),_0x1efe8f=!0x0):(_0x5aa0c6[_0x1a36('0x45')](_0x1b174d,{'range':_0x13623c}),_0x1efe8f=!0x0);}return _0x1efe8f;}),this['on'](_0x1a36('0x63'),(_0x229071,_0x5a7f1e,_0x44d35e)=>{if(!_0x44d35e&&_0x5bb5c7[_0x1a36('0x37')])for(const _0x1df4fa of _0x5bb5c7){const {id:_0x2685cd}=ot(_0x1df4fa);_0x5bb5c7['delete'](_0x1df4fa),_0x32238c['model']['markers'][_0x1a36('0x53')](_0x1df4fa)&&this[_0x1a36('0x29')](_0x1df4fa,_0x2685cd);}}),this[_0x1a36('0x57')](_0x32238c[_0x1a36('0x7b')][_0x1a36('0x33')],_0x1a36('0x2d'),(_0x5a05c7,_0xf87efa)=>{for(const {name:_0x15b973,data:{newRange:_0x46c62f}}of _0x32238c[_0x1a36('0x7b')][_0x1a36('0x33')][_0x1a36('0x7')][_0x1a36('0x15')]()){const {group:_0x2e3865,id:_0x276f5d}=ot(_0x15b973);if(_0x1a36('0x4a')!==_0x2e3865)continue;const _0x25d31b=_0x37d6b0[_0x1a36('0x71')](_0x276f5d),_0x238d73=this['hasMarkerForId'](_0x276f5d);_0x25d31b&&(_0x25d31b[_0x1a36('0x35')]||_0x32238c['editing'][_0x1a36('0x51')][_0x1a36('0x52')](_0x1a36('0x55'),()=>{const _0x3c3159=_0x32238c[_0x1a36('0x66')][_0x1a36('0x53')](_0x1cedf6),_0x13d13d=_0x37d6b0[_0x1a36('0xd')][_0x1a36('0x53')](_0x25d31b)[_0x1a36('0x51')];_0x3c3159[_0x1a36('0x64')](_0x13d13d)[_0x1a36('0x47')]();},{'priority':_0x1a36('0x20')}),_0x25d31b[_0x1a36('0x35')]=_0x238d73||!!_0x46c62f),_0x46c62f||(_0x3d3f8b[_0x1a36('0x27')](_0x15b973),_0x5bb5c7[_0x1a36('0x75')](_0x15b973));}if(_0xf87efa[_0x1a36('0x5b')])for(const _0x426afb of _0x3d3f8b){const {id:_0x4d61e2}=ot(_0x426afb),_0x120998=_0x37d6b0['getCommentThread'](_0x4d61e2),_0x34a90d=this[_0x1a36('0x2')](_0x4d61e2);_0x5bb5c7[_0x1a36('0x75')](_0x426afb),!_0x120998||_0x34a90d||_0x120998['unlinkedAt']||_0x120998['setUnlinkedAt'](new Date());}_0x3d3f8b[_0x1a36('0x3e')]();});}[_0x1a36('0x76')](_0x5f0e28){const _0x5f0643=this[_0x1a36('0x4b')],_0x5ac87e=this[_0x1a36('0x60')](_0x5f0e28);return _0x408bcc(_0x5f0643[_0x1a36('0x4f')],_0x5ac87e);}[_0x1a36('0x26')](_0x1ca299){const _0xca6f00=this[_0x1a36('0x60')](_0x1ca299);let _0x115494='',_0x45598f=!0x1;for(const _0x59aa8c of _0xca6f00){const _0x4e4b11=_0x59aa8c['getRange']();for(const _0xad2c94 of Array[_0x1a36('0x24')](_0x4e4b11[_0x1a36('0x50')]()))_0xad2c94['is'](_0x1a36('0x21'))?(_0x115494&&_0x45598f&&(_0x115494+='\x20',_0x45598f=!0x1),_0x115494+=_0xad2c94[_0x1a36('0x68')]):_0x45598f=!0x0;_0x45598f=!0x0;}return _0x115494['substring'](0x0,0x96);}[_0x1a36('0x3a')](_0x1e1fe0,_0x1dc524){const _0x18eef4=this[_0x1a36('0x4b')],_0x2d4a95=_0x18eef4['plugins']['get'](_0x503ed2);let _0x256d2c=_0x2d4a95['getCommentThread'](_0x1dc524);const _0x5a906c=_0x18eef4[_0x1a36('0xf')][_0x1a36('0x53')](_0x1a36('0x42')),_0x588d33=_0x18eef4['plugins'][_0x1a36('0x53')](_0x4bbe01);if(_0x256d2c&&(_0x256d2c[_0x1a36('0x5f')]&&_0x256d2c[_0x1a36('0x44')](null),_0x256d2c[_0x1a36('0x4')]))return _0x256d2c;return!this[_0x1a36('0x60')](_0x1dc524)[0x0][_0x1a36('0x46')]?_0x18eef4[_0x1a36('0x4f')][_0x1a36('0x51')][_0x1a36('0x52')](_0x1a36('0x55'),()=>{if(_0x2d4a95[_0x1a36('0x71')](_0x1dc524))return;const _0x33e56f=_0x18eef4[_0x1a36('0x66')][_0x1a36('0x53')](_0x1cedf6);_0x256d2c=_0x2d4a95[_0x1a36('0x7a')]({'channelId':_0x5a906c,'threadId':_0x1dc524,'target':()=>this[_0x1a36('0x76')](_0x1dc524),'context':{'type':_0x1a36('0x41'),'value':this[_0x1a36('0x26')](_0x1dc524)}});const _0x207b6a=_0x2d4a95[_0x1a36('0xd')]['get'](_0x256d2c)[_0x1a36('0x51')],_0x4f8887=_0x33e56f[_0x1a36('0x64')](_0x207b6a);_0x4f8887&&_0x588d33['registerAnnotation'](_0x4f8887);},{'priority':_0x1a36('0x20')}):_0x2d4a95[_0x1a36('0x1b')]({'channelId':_0x5a906c,'threadId':_0x1dc524})[_0x1a36('0x1')](_0x97ec5d=>{if(_0x1a36('0x6a')!==_0x18eef4[_0x1a36('0x38')]){if(_0x256d2c=_0x97ec5d,_0x256d2c&&!_0x256d2c[_0x1a36('0x4')]){const _0x3b1cf5=_0x256d2c[_0x1a36('0x77')](()=>this[_0x1a36('0x76')](_0x1dc524));_0x588d33[_0x1a36('0x6')](_0x3b1cf5),_0x256d2c[_0x1a36('0x67')]&&this[_0x1a36('0x2b')](_0x1dc524);}else{if(!_0x256d2c){const _0x2037d6=this['getAllMarkersForId'](_0x1dc524);_0x18eef4[_0x1a36('0x7b')][_0x1a36('0x2d')](_0x59d333=>{for(const _0x4f148d of _0x2037d6)_0x59d333[_0x1a36('0x59')](_0x4f148d);});}}}}),_0x256d2c;}[_0x1a36('0x29')](_0x180305,_0x308a35){const _0x444e0a=this[_0x1a36('0x3a')](_0x180305,_0x308a35);_0x444e0a&&!_0x444e0a[_0x1a36('0x9')]&&_0x444e0a[_0x1a36('0x3d')]({'type':_0x1a36('0x41'),'value':this['_getTextContext'](_0x308a35)});}[_0x1a36('0x5c')](){const _0x39f7d6=this['editor'];_0x3b914d(_0x39f7d6[_0x1a36('0x7b')],({left:_0x1fb4e5,entered:_0x19602f})=>{const _0x484e69=[];for(const _0x1889f2 of _0x1fb4e5)if(rt(_0x1889f2)){_0x484e69[_0x1a36('0xb')](_0xe61512(_0x39f7d6[_0x1a36('0x4d')],_0x1a36('0x6d')));break;}for(const _0x3fa106 of _0x19602f)if(rt(_0x3fa106)){_0x484e69[_0x1a36('0xb')](_0xe61512(_0x39f7d6[_0x1a36('0x4d')],_0x1a36('0x2c')));break;}_0x484e69[_0x1a36('0x32')]&&_0x39f7d6['ui'][_0x1a36('0x2f')][_0x1a36('0x16')](_0x1a36('0x62'),_0x484e69['join']('\x20'));});}}function tt(_0x4cfab0,_0x1fa2cb){return _0x1fa2cb?_0x4cfab0+':'+_0x1fa2cb:_0x4cfab0;}function ot(_0x21eb71){const _0x39536a=_0x21eb71[_0x1a36('0x3f')](':');return{'group':_0x39536a[0x0],'id':_0x39536a[0x1],'part':_0x39536a[0x2]};}function et(_0x10d1d5,_0x21f3a2){const _0x5f0524=_0x21f3a2['schema'],_0x38238f=_0x21f3a2['createRange'](_0x10d1d5[_0x1a36('0x2e')]);for(const _0x590146 of _0x10d1d5[_0x1a36('0x3c')]()){const {type:_0x32d560,item:_0x40b550,nextPosition:_0x9f7a86}=_0x590146;if(_0x1a36('0x41')===_0x32d560||_0x5f0524[_0x1a36('0x72')](_0x40b550)){const _0x40b30c=_0x21f3a2[_0x1a36('0x43')](_0x40b550);_0x38238f[_0x1a36('0x48')]&&(_0x38238f[_0x1a36('0x2e')]=_0x40b30c),_0x38238f[_0x1a36('0x36')]=_0x9f7a86;}}return _0x38238f;}function rt(_0x5de470){return _0x1a36('0x4a')===ot(_0x5de470['name'])[_0x1a36('0x7d')];}
|