@ckeditor/ckeditor5-comments 0.0.0-nightly-20231226.0 → 0.0.0-nightly-20231228.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.d.ts +2 -2
- 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 _0x4b44=['length','ck-annotation-wrapper','isActive','bindTemplate','Esc','focusTracker','set','listenTo','add','ck-rounded-corners','content','height','mainView','clientHeight','_mutationObserver','focus','destroy','isDirty','keystrokes','render','attach','element','createCollection'];(function(_0x416a63,_0x4b44f9){const _0x46bc35=function(_0x5afbab){while(--_0x5afbab){_0x416a63['push'](_0x416a63['shift']());}};_0x46bc35(++_0x4b44f9);}(_0x4b44,0x177));const _0x46bc=function(_0x416a63,_0x4b44f9){_0x416a63=_0x416a63-0x0;let _0x46bc35=_0x4b44[_0x416a63];return _0x46bc35;};import{View as _0xc14a2f}from'ckeditor5/src/ui.js';import{FocusTracker as _0x10cb2e,KeystrokeHandler as _0x2c3e62,uid as _0x258e59}from'ckeditor5/src/utils.js';import _0x4c0b9a from'../../utils/createmutationobserver.js';import'../../../theme/annotation.css';export default class V extends _0xc14a2f{constructor(_0x4c53f8,_0x4546f6){super(_0x4c53f8),this['id']=_0x258e59(),this[_0x46bc('0x15')]=new _0x10cb2e(),this[_0x46bc('0xb')]=new _0x2c3e62(),this[_0x46bc('0xb')][_0x46bc('0x16')](_0x46bc('0x14'),(_0x3cd338,_0x4231a2)=>this['fire'](_0x46bc('0x14'),_0x4231a2)),this[_0x46bc('0x16')]('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x46bc('0x16')]('height',0x0),this[_0x46bc('0x16')](_0x46bc('0x12'),!0x1),this[_0x46bc('0x16')](_0x46bc('0xa'),!0x1),this[_0x46bc('0x16')](_0x46bc('0x10'),0x0),this[_0x46bc('0x16')]('type',''),this[_0x46bc('0x7')]=_0x4c0b9a(()=>this['_updateHeight']()),this[_0x46bc('0x3')]=this[_0x46bc('0xf')](),this[_0x46bc('0x3')][_0x46bc('0x1')](_0x4546f6),this[_0x46bc('0x5')]=_0x4546f6;const _0x16e01b=this[_0x46bc('0x13')];this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x46bc('0x11'),_0x46bc('0x2'),_0x16e01b['if'](_0x46bc('0x12'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}[_0x46bc('0xc')](){super[_0x46bc('0xc')](),this['focusTracker']['add'](this[_0x46bc('0xe')]),this['keystrokes'][_0x46bc('0x0')](this[_0x46bc('0xe')]),this[_0x46bc('0x7')][_0x46bc('0xd')](this[_0x46bc('0xe')]);}[_0x46bc('0x9')](){this[_0x46bc('0x3')]['clear'](),this['keystrokes'][_0x46bc('0x9')](),this[_0x46bc('0x15')][_0x46bc('0x9')](),this['_mutationObserver']['detach'](),super[_0x46bc('0x9')]();}['focus'](){this[_0x46bc('0xe')][_0x46bc('0x8')]();}['_updateHeight'](){const _0x4253f4=this[_0x46bc('0xe')][_0x46bc('0x6')];_0x4253f4&&(this[_0x46bc('0x4')]=_0x4253f4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x305f=['clear','_targetTop','height','detach','setTemplate','ck-sidebar-item--no-animation','isAnimationDisabled','_mutationObserver','attach','render','content','bindTemplate','bind','set','ck-sidebar-item','bottom','updateHeight','element','destroy','createCollection'];(function(_0x3e0c98,_0x305fe9){const _0x485663=function(_0x114d75){while(--_0x114d75){_0x3e0c98['push'](_0x3e0c98['shift']());}};_0x485663(++_0x305fe9);}(_0x305f,0x168));const _0x4856=function(_0x3e0c98,_0x305fe9){_0x3e0c98=_0x3e0c98-0x0;let _0x485663=_0x305f[_0x3e0c98];return _0x485663;};import{View as _0x514013}from'ckeditor5/src/ui.js';import{toUnit as _0x482b18}from'ckeditor5/src/utils.js';import _0x41fd47 from'../../utils/createmutationobserver.js';const Ht=_0x482b18('px');export default class C extends _0x514013{constructor(_0x10a513){super(_0x10a513),this[_0x4856('0xd')]('top',0x0),this['set'](_0x4856('0x2'),0x0),this[_0x4856('0xc')](_0x4856('0xf'))['to'](this,'top',this,_0x4856('0x2'),(_0x1fca0a,_0x3681b0)=>_0x1fca0a+_0x3681b0),this[_0x4856('0xd')](_0x4856('0x6'),!0x1),this[_0x4856('0x7')]=_0x41fd47(()=>this[_0x4856('0x10')]()),this[_0x4856('0x1')]=null,this[_0x4856('0xa')]=this[_0x4856('0x13')]();const _0x4b03d8=this[_0x4856('0xb')];this[_0x4856('0x4')]({'tag':'div','attributes':{'class':[_0x4856('0xe'),_0x4b03d8['to'](_0x4856('0x6'),_0x43ea36=>_0x43ea36?_0x4856('0x5'):'')],'style':{'top':_0x4b03d8['to']('top',_0x47414e=>Ht(_0x47414e))}},'children':this[_0x4856('0xa')]});}[_0x4856('0x9')](){super[_0x4856('0x9')](),this['_mutationObserver'][_0x4856('0x8')](this['element']);}[_0x4856('0x10')](){const _0x58dcfa=this[_0x4856('0x11')]['clientHeight'];_0x58dcfa&&(this['height']=_0x58dcfa);}['destroy'](){this[_0x4856('0xa')][_0x4856('0x0')](),this[_0x4856('0x7')][_0x4856('0x3')](),super[_0x4856('0x12')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8898=['ck-reset','setTemplate','bindTemplate','list','class','ck-sidebar','set','div','number','minHeight'];(function(_0x4046d6,_0x88986){const _0x1b3711=function(_0x2bb6aa){while(--_0x2bb6aa){_0x4046d6['push'](_0x4046d6['shift']());}};_0x1b3711(++_0x88986);}(_0x8898,0x172));const _0x1b37=function(_0x4046d6,_0x88986){_0x4046d6=_0x4046d6-0x0;let _0x1b3711=_0x8898[_0x4046d6];return _0x1b3711;};import{View as _0x3d0190}from'ckeditor5/src/ui.js';import{toUnit as _0x23c71e}from'ckeditor5/src/utils.js';import'../../../theme/sidebar.css';const Ht=_0x23c71e('px');export default class T extends _0x3d0190{constructor(_0x7a49cd){super(_0x7a49cd);const _0x135741=this[_0x1b37('0x2')];this[_0x1b37('0x6')](_0x1b37('0x9'),0x0),this['set'](_0x1b37('0x4'),''),this[_0x1b37('0x3')]=this['createCollection'](),this[_0x1b37('0x1')]({'tag':_0x1b37('0x7'),'attributes':{'class':['ck',_0x1b37('0x5'),_0x1b37('0x0'),_0x135741['to']('class')],'style':{'minHeight':_0x135741['to']('minHeight',_0x5f0f4e=>_0x1b37('0x8')==typeof _0x5f0f4e?Ht(_0x5f0f4e+0xa):null)}},'children':this[_0x1b37('0x3')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2170=['off','addAnnotation','_integrateWithEditorAnnotations','annotations','set:container','add','destroy','context','refreshPositioning','refresh','blur','WideSidebar','ck-sidebar--wide','_refreshPositioningDebounced','attach','high','_attachToContainer','pluginName','wideSidebar','listenTo','EditorAnnotations','updateTargetRect','switchTo','from','detach','editors','change:container','isAttached','_editorAnnotations','container','remove','get','init','setActiveAnnotation','removeEventListener','hasDomSelection','plugins','set','has','widesidebar-detach-not-attached','register','focus','_destroyEditorAnnotationsIntegration','stop','stopListening','resize','rearrange','activeAnnotation','cancel','getOrderedSelectedAnnotations','widesidebar-attach-already-attached','_activeAnnotation'];(function(_0xbd2145,_0x2170e1){const _0x2a9ccf=function(_0x49adad){while(--_0x49adad){_0xbd2145['push'](_0xbd2145['shift']());}};_0x2a9ccf(++_0x2170e1);}(_0x2170,0x95));const _0x2a9c=function(_0xbd2145,_0x2170e1){_0xbd2145=_0xbd2145-0x0;let _0x2a9ccf=_0x2170[_0xbd2145];return _0x2a9ccf;};import{ContextPlugin as _0x49d4a2,Context as _0x4ab166}from'ckeditor5/src/core.js';import _0x450c9c from'./annotationsuis.js';import _0x3f748f from'./sidebar.js';import{CKEditorError as _0x13aca6,Collection as _0x195034}from'ckeditor5/src/utils.js';import{debounce as _0xfa5243}from'lodash-es';import _0x283b4e from'./editorannotations.js';export default class n extends _0x49d4a2{static get['requires'](){return[_0x3f748f,_0x450c9c];}static get[_0x2a9c('0x18')](){return _0x2a9c('0x12');}constructor(_0x199633){super(_0x199633),this[_0x2a9c('0x22')]=!0x1,this[_0x2a9c('0x2c')](_0x2a9c('0x2'),null),this[_0x2a9c('0xa')]=null,this['_editorAnnotations']=new _0x195034(),this['_refreshPositioningDebounced']=_0xfa5243(()=>{this[_0x2a9c('0xa')][_0x2a9c('0xf')]();},0xfa,{'leading':!0x1});}[_0x2a9c('0x27')](){const _0x4e8aac=this[_0x2a9c('0xe')][_0x2a9c('0x2b')][_0x2a9c('0x26')](_0x450c9c),_0x15e89e=this['context'][_0x2a9c('0x2b')][_0x2a9c('0x26')](_0x3f748f);_0x4e8aac[_0x2a9c('0x2f')]('wideSidebar',this),_0x15e89e[_0x2a9c('0x24')]&&_0x4e8aac[_0x2a9c('0x1d')](_0x2a9c('0x19'));}[_0x2a9c('0x28')](_0x279d56){if(_0x279d56===this[_0x2a9c('0x2')])return;const _0x6502a4=this[_0x2a9c('0xe')][_0x2a9c('0x2b')]['get'](_0x3f748f);_0x6502a4[_0x2a9c('0x6')]=_0x279d56;const _0x1dec74=this[_0x2a9c('0x2')];this[_0x2a9c('0x2')]=_0x279d56,_0x6502a4[_0x2a9c('0x10')]({'blurredAnnotation':_0x1dec74,'activatedAnnotation':this['activeAnnotation']});}[_0x2a9c('0x15')](_0x31e1c3){this[_0x2a9c('0xa')]=_0x31e1c3;const _0x33fa93=this[_0x2a9c('0xe')][_0x2a9c('0x2b')][_0x2a9c('0x26')](_0x3f748f);if(_0x33fa93['_annotations']=_0x31e1c3,this[_0x2a9c('0x22')])throw new _0x13aca6(_0x2a9c('0x5'),this);this['isAttached']=!0x0,this['listenTo'](_0x33fa93,_0x2a9c('0xb'),()=>{this[_0x2a9c('0x1f')](),this[_0x2a9c('0x1a')](_0x33fa93,_0x2a9c('0x21'),_0x474c8b=>{_0x474c8b[_0x2a9c('0x7')](),this[_0x2a9c('0x15')](_0x31e1c3);});}),_0x33fa93[_0x2a9c('0x17')]({'viewClass':_0x2a9c('0x13')});const _0x73aee5=_0x8f5904=>{_0x8f5904[_0x2a9c('0x1c')](),_0x33fa93[_0x2a9c('0x8')](_0x8f5904);};for(const _0x2f17a8 of _0x31e1c3)_0x73aee5(_0x2f17a8);this['listenTo'](_0x31e1c3,'add',(_0x33d326,_0x2b5234)=>{_0x73aee5(_0x2b5234);}),this[_0x2a9c('0x1a')](_0x31e1c3,_0x2a9c('0x25'),(_0x11746,_0x307469,_0x3e8540)=>{_0x33fa93[_0x2a9c('0x1')]({'removedAnnotation':_0x307469,'previousAnnotation':_0x31e1c3[_0x2a9c('0x26')](_0x3e8540-0x1),'nextAnnotation':_0x31e1c3[_0x2a9c('0x26')](_0x3e8540+0x1)}),_0x307469===this[_0x2a9c('0x2')]&&this[_0x2a9c('0x28')](null);},{'priority':_0x2a9c('0x16')}),this[_0x2a9c('0x1a')](_0x31e1c3,_0x2a9c('0x30'),(_0x1dbf35,_0x25b69f)=>{this['setActiveAnnotation'](_0x25b69f);}),this[_0x2a9c('0x1a')](_0x31e1c3,_0x2a9c('0x11'),()=>{this[_0x2a9c('0x28')](null);});const _0x486952=this[_0x2a9c('0xe')]instanceof _0x4ab166?this[_0x2a9c('0xe')][_0x2a9c('0x20')]:new _0x195034([this['context']]);for(const _0x48a978 of _0x486952)this[_0x2a9c('0x9')](_0x48a978);this[_0x2a9c('0x1a')](_0x486952,_0x2a9c('0xc'),(_0x586aa2,_0x32cff9)=>{this['listenTo'](_0x32cff9,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x32cff9);});}),this['listenTo'](_0x486952,_0x2a9c('0x25'),(_0x2bf3df,_0x3027ba)=>{_0x3027ba['plugins'][_0x2a9c('0x2d')](_0x2a9c('0x1b'))&&this[_0x2a9c('0x31')](_0x3027ba[_0x2a9c('0x2b')]['get'](_0x2a9c('0x1b')));}),window['addEventListener'](_0x2a9c('0x0'),this['_refreshPositioningDebounced']),this[_0x2a9c('0xa')]['refreshPositioning']();}['detach'](){if(!this[_0x2a9c('0x22')])throw new _0x13aca6(_0x2a9c('0x2e'),this);this[_0x2a9c('0x28')](null);const _0x408f34=this[_0x2a9c('0xe')][_0x2a9c('0x2b')][_0x2a9c('0x26')](_0x3f748f);_0x408f34['_detachFromContainer'](this[_0x2a9c('0xa')]),this[_0x2a9c('0x33')](_0x408f34),this[_0x2a9c('0x33')](this['annotations']),this[_0x2a9c('0xe')]instanceof _0x4ab166&&this[_0x2a9c('0x33')](this[_0x2a9c('0xe')][_0x2a9c('0x20')]);for(const _0xae4b68 of Array[_0x2a9c('0x1e')](this[_0x2a9c('0x23')]))this[_0x2a9c('0x31')](_0xae4b68);window[_0x2a9c('0x29')](_0x2a9c('0x0'),this[_0x2a9c('0x14')]),this[_0x2a9c('0x14')][_0x2a9c('0x3')](),this[_0x2a9c('0x2')]=null,this[_0x2a9c('0x22')]=!0x1,this[_0x2a9c('0xa')]=null;}[_0x2a9c('0xd')](){this[_0x2a9c('0x22')]&&this['detach']();}['_integrateWithEditorAnnotations'](_0xf346d0){const _0xca8819=_0xf346d0['plugins'][_0x2a9c('0x26')](_0x283b4e);if(!_0xca8819)return;const _0x56b8ca=()=>{const _0x4b077e=_0xca8819[_0x2a9c('0x4')]({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4b077e[0x0]||null);};this[_0x2a9c('0x1a')](_0xca8819,_0x2a9c('0x10'),_0x56b8ca),this['listenTo'](_0xca8819,_0x2a9c('0x11'),(_0x36073f,{isAnnotationTracked:_0x11b60a})=>{this['activeAnnotation']&&_0x11b60a(this[_0x2a9c('0x2')])&&this[_0x2a9c('0x28')](null);}),this[_0x2a9c('0x1a')](_0xca8819,'uiUpdate',()=>{this[_0x2a9c('0x14')]();}),this['listenTo'](this['annotations'],_0x2a9c('0x11'),_0x2c93cd=>{_0xca8819[_0x2a9c('0x2a')]()&&(_0x56b8ca(),_0x2c93cd[_0x2a9c('0x32')]());},{'priority':_0x2a9c('0x16')}),this[_0x2a9c('0x23')][_0x2a9c('0xc')](_0xca8819);}['_destroyEditorAnnotationsIntegration'](_0x42e9eb){this[_0x2a9c('0x33')](_0x42e9eb),this['_editorAnnotations']['remove'](_0x42e9eb);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2893=['change','editor','refresh','element','document','getItems','execute','addMarker','schema','getLastMatchingPosition','push','isEnabled','_trimToContent','_hasContent','_itemIsContent','model','item','backward'];(function(_0x49c3ca,_0x289367){const _0x56ea1=function(_0xecafd){while(--_0xecafd){_0x49c3ca['push'](_0x49c3ca['shift']());}};_0x56ea1(++_0x289367);}(_0x2893,0x19a));const _0x56ea=function(_0x49c3ca,_0x289367){_0x49c3ca=_0x49c3ca-0x0;let _0x56ea1=_0x2893[_0x49c3ca];return _0x56ea1;};import{Command as _0x6bf6aa}from'ckeditor5/src/core.js';import{uid as _0x433c6e}from'ckeditor5/src/utils.js';export default class G extends _0x6bf6aa{[_0x56ea('0x6')](){const _0x41975a=this[_0x56ea('0x5')][_0x56ea('0x1')][_0x56ea('0x8')]['selection'];for(const _0x3e7aac of _0x41975a['getRanges']())if(this['_hasContent'](_0x3e7aac))return void(this[_0x56ea('0xf')]=!0x0);this[_0x56ea('0xf')]=!0x1;}[_0x56ea('0xa')]({threadId:_0x297901=_0x433c6e()}={}){const _0x12fbec=this['editor'][_0x56ea('0x1')],_0x2fcac8=[];for(const _0x12c12a of _0x12fbec[_0x56ea('0x8')]['selection']['getRanges']())this[_0x56ea('0x11')](_0x12c12a)&&_0x2fcac8[_0x56ea('0xe')](this[_0x56ea('0x10')](_0x12c12a));_0x12fbec[_0x56ea('0x4')](_0x3575b0=>{for(const _0x356179 of _0x2fcac8){const _0x3cb3bb=_0x433c6e()['substr'](0x1,0x5),_0x3a20bc='comment:'+_0x297901+':'+_0x3cb3bb;_0x3575b0[_0x56ea('0xb')](_0x3a20bc,{'range':_0x356179,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x56ea('0x11')](_0x38ddef){for(const _0x42b409 of _0x38ddef[_0x56ea('0x9')]())if(this[_0x56ea('0x0')](_0x42b409))return!0x0;return!0x1;}[_0x56ea('0x0')](_0x2e5705){return _0x2e5705['is']('$textProxy')||this[_0x56ea('0x5')][_0x56ea('0x1')][_0x56ea('0xc')]['isObject'](_0x2e5705)&&!_0x2e5705['is'](_0x56ea('0x7'),'tableCell');}[_0x56ea('0x10')](_0x113581){const _0x1dabfd=_0x52c6c6=>!this[_0x56ea('0x0')](_0x52c6c6[_0x56ea('0x2')]),_0x347947=_0x113581['start'][_0x56ea('0xd')](_0x1dabfd),_0x36145a=_0x113581['end'][_0x56ea('0xd')](_0x1dabfd,{'direction':_0x56ea('0x3')});return this['editor'][_0x56ea('0x1')]['createRange'](_0x347947,_0x36145a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9ee1=['has','_calculatePosition','removeCommentThread','requires','addCommentThread','stopListening','findIndex','get','archivedAt','highest','CommentsArchive','getCommentThread','archivedThreads','change:archivedAt','length','listenTo','plugins','collection','add','activate','focus','context','isActive'];(function(_0x45fa55,_0x9ee17d){const _0x5272b5=function(_0x2f5cf8){while(--_0x2f5cf8){_0x45fa55['push'](_0x45fa55['shift']());}};_0x5272b5(++_0x9ee17d);}(_0x9ee1,0x18a));const _0x5272=function(_0x45fa55,_0x9ee17d){_0x45fa55=_0x45fa55-0x0;let _0x5272b5=_0x9ee1[_0x45fa55];return _0x5272b5;};import{ContextPlugin as _0x206eeb}from'ckeditor5/src/core.js';import{Collection as _0x1370f9}from'ckeditor5/src/utils.js';import _0x8c01ef from'./commentsrepository.js';import _0x484a22 from'../annotations/annotations.js';export default class p extends _0x206eeb{static get['pluginName'](){return _0x5272('0x7');}static get[_0x5272('0x0')](){return[_0x8c01ef,_0x484a22];}constructor(_0x576a0e){super(_0x576a0e),this[_0x5272('0x9')]=new _0x1370f9();}['init'](){const _0x41e53c=this[_0x5272('0x12')],_0x9e6318=_0x41e53c[_0x5272('0xd')][_0x5272('0x4')](_0x8c01ef),_0x30791d=_0x41e53c[_0x5272('0xd')][_0x5272('0x4')](_0x484a22);this['listenTo'](_0x9e6318,_0x5272('0x1'),(_0x1a2f5a,{threadId:_0x1c9276})=>{const _0xb54606=_0x9e6318[_0x5272('0x8')](_0x1c9276);_0xb54606['archivedAt']&&this['archivedThreads'][_0x5272('0xf')](_0xb54606,this[_0x5272('0x15')](_0xb54606[_0x5272('0x5')])),this[_0x5272('0xc')](_0xb54606,_0x5272('0xa'),(_0x45a408,_0x5db6c0,_0xd89b2d)=>{_0xd89b2d?this[_0x5272('0x9')][_0x5272('0x14')](_0xb54606)||this[_0x5272('0x9')][_0x5272('0xf')](_0xb54606,this['_calculatePosition'](_0xb54606[_0x5272('0x5')])):this[_0x5272('0x9')][_0x5272('0x14')](_0xb54606)&&this[_0x5272('0x9')]['remove'](_0xb54606);});}),this[_0x5272('0xc')](_0x9e6318,_0x5272('0x16'),(_0x3cb504,{threadId:_0x50e5d0})=>{const _0x3dafa0=_0x9e6318[_0x5272('0x8')](_0x50e5d0);this[_0x5272('0x2')](_0x3dafa0),this[_0x5272('0x9')][_0x5272('0x14')](_0x3dafa0)&&this['archivedThreads']['remove'](_0x3dafa0);},{'priority':_0x5272('0x6')}),this[_0x5272('0xc')](_0x30791d[_0x5272('0xe')],_0x5272('0x11'),(_0x57b73f,_0xdc1423)=>{_0xdc1423[_0x5272('0x13')]=!0x0,_0x30791d[_0x5272('0x10')](_0xdc1423);});}[_0x5272('0x15')](_0x2308b5){const _0x54b875=[...this[_0x5272('0x9')]][_0x5272('0x3')](_0x1861e3=>_0x1861e3[_0x5272('0x5')]<_0x2308b5);return _0x54b875>-0x1?_0x54b875:this[_0x5272('0x9')][_0x5272('0xb')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cc5=['listenTo','buttonView','requires','classList','commentsArchive','ck-comments-archive-dropdown','COMMENTS_ARCHIVE','annotationViews','_calculatePosition','channelId','focusTracker','archivedAt','collection','commentsArchiveView','remove','splice','plugins','contains','find','panelView','Annotations','_pendingThreads','innerView','archivedThreads','_threadToController','push','position','focusableElements','children','pluginName','CommentsArchiveUI','findIndex','config','set','view','mainView','collaboration.channelId','_visibleAnnotations','get','_handleAnnotationFocusableElements','ck-body','isVisible','editor','getByInnerView','add','CommentsRepository','filter','componentFactory','change:isOpen'];(function(_0x5b9e13,_0x4cc5d9){const _0x48a7c0=function(_0x4fba16){while(--_0x4fba16){_0x5b9e13['push'](_0x5b9e13['shift']());}};_0x48a7c0(++_0x4cc5d9);}(_0x4cc5,0x1e5));const _0x48a7=function(_0x5b9e13,_0x4cc5d9){_0x5b9e13=_0x5b9e13-0x0;let _0x48a7c0=_0x4cc5[_0x5b9e13];return _0x48a7c0;};import'../../theme/commentsarchive.css';import{Plugin as _0x49362}from'ckeditor5/src/core.js';import{createDropdown as _0x4b5457,ViewCollection as _0x125f8f}from'ckeditor5/src/ui.js';import _0x1a552f from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x583161}from'../utils/common-translations.js';import _0x1b3919 from'./ui/view/commentsarchiveview.js';import _0x5f2b4d from'./commentsarchive.js';export default class a extends _0x49362{static get[_0x48a7('0x22')](){return _0x48a7('0x23');}static get[_0x48a7('0x7')](){return[_0x5f2b4d];}constructor(_0x28e09a){super(_0x28e09a),this[_0x48a7('0xc')]=new _0x125f8f(),this[_0x48a7('0x1a')]=[];}['init'](){this[_0x48a7('0x2f')]['ui'][_0x48a7('0x3')]['add'](_0x48a7('0x9'),()=>this['_createArchiveUIDropdown']());const _0x47b70f=this[_0x48a7('0x2f')]['plugins'][_0x48a7('0x2b')](_0x5f2b4d),_0x32c8d4=this['editor'][_0x48a7('0x15')][_0x48a7('0x2b')](_0x48a7('0x19')),_0x4c4e56=this[_0x48a7('0x2f')][_0x48a7('0x15')][_0x48a7('0x2b')](_0x48a7('0x1'));this['listenTo'](_0x47b70f[_0x48a7('0x1c')],'add',(_0x37922c,_0x5462bc)=>{const _0x4ebec9=this['editor'][_0x48a7('0x25')][_0x48a7('0x2b')](_0x48a7('0x29'));if(!_0x4ebec9||_0x5462bc[_0x48a7('0xe')]===_0x4ebec9){const _0x11b0f2=this[_0x48a7('0xd')](_0x5462bc[_0x48a7('0x10')]),_0x297e66=_0x4c4e56[_0x48a7('0x1d')][_0x48a7('0x2b')](_0x5462bc);if(!_0x297e66)return void this['_pendingThreads'][_0x48a7('0x1e')]({'thread':_0x5462bc,'position':_0x11b0f2});const _0x6069a=_0x32c8d4['getByInnerView'](_0x297e66[_0x48a7('0x27')]);_0x6069a[_0x48a7('0x2e')]&&_0x32c8d4[_0x48a7('0x2a')]['remove'](_0x6069a),this[_0x48a7('0xc')][_0x48a7('0x0')](_0x6069a['view'],_0x11b0f2);}}),this['listenTo'](_0x32c8d4[_0x48a7('0x11')],_0x48a7('0x0'),(_0x45bf7f,_0x5c5c40)=>{const _0x262779=this[_0x48a7('0x1a')][_0x48a7('0x17')](({thread:_0x74b200})=>{const _0x2dc40a=_0x4c4e56[_0x48a7('0x1d')][_0x48a7('0x2b')](_0x74b200);return _0x2dc40a&&_0x5c5c40[_0x48a7('0x1b')]===_0x2dc40a[_0x48a7('0x27')];});_0x262779&&(this[_0x48a7('0xc')][_0x48a7('0x0')](_0x5c5c40[_0x48a7('0x27')],_0x262779[_0x48a7('0x1f')]),this['_pendingThreads'][_0x48a7('0x14')](this[_0x48a7('0x1a')]['indexOf'](_0x262779),0x1));}),this[_0x48a7('0x5')](_0x47b70f[_0x48a7('0x1c')],_0x48a7('0x13'),(_0x5aeffa,_0x2a941b)=>{const _0x4d0824=this[_0x48a7('0x2f')][_0x48a7('0x25')]['get']('collaboration.channelId');if(!_0x4d0824||_0x2a941b[_0x48a7('0xe')]===_0x4d0824){const _0x159e8f=_0x4c4e56[_0x48a7('0x1d')][_0x48a7('0x2b')](_0x2a941b),_0x30cb24=_0x32c8d4[_0x48a7('0x30')](_0x159e8f[_0x48a7('0x27')]);this[_0x48a7('0xc')][_0x48a7('0x13')](_0x30cb24[_0x48a7('0x27')]),this['stopListening'](_0x30cb24['focusableElements']);}});}[_0x48a7('0x2c')](_0x472e24,_0x32f74f){for(const _0x27a8d6 of _0x32f74f['focusableElements'])_0x27a8d6[_0x48a7('0x8')][_0x48a7('0x16')](_0x48a7('0x2d'))&&_0x472e24[_0x48a7('0xf')][_0x48a7('0x0')](_0x27a8d6);this[_0x48a7('0x5')](_0x32f74f['focusableElements'],_0x48a7('0x0'),(_0x46b1e4,_0x5c695a)=>{_0x5c695a['classList'][_0x48a7('0x16')](_0x48a7('0x2d'))&&_0x472e24[_0x48a7('0xf')]['add'](_0x5c695a);}),this[_0x48a7('0x5')](_0x32f74f[_0x48a7('0x20')],_0x48a7('0x13'),(_0x5b769f,_0x86457f)=>{_0x86457f[_0x48a7('0x8')]['contains']('ck-body')&&_0x472e24[_0x48a7('0xf')][_0x48a7('0x13')](_0x86457f);});}[_0x48a7('0xd')](_0x18e037){const _0x3cb5fb=this[_0x48a7('0x2f')][_0x48a7('0x25')][_0x48a7('0x2b')]('collaboration.channelId'),_0x1e922d=[...this[_0x48a7('0x2f')][_0x48a7('0x15')][_0x48a7('0x2b')](_0x5f2b4d)[_0x48a7('0x1c')]][_0x48a7('0x2')](_0xac51c7=>_0xac51c7[_0x48a7('0xe')]===_0x3cb5fb)[_0x48a7('0x24')](_0x52f0c2=>_0x52f0c2[_0x48a7('0x10')]<_0x18e037);return _0x1e922d>-0x1?_0x1e922d-0x1:this['annotationViews']['length'];}['_createArchiveUIDropdown'](){const _0x87cb8c=this[_0x48a7('0x2f')],_0x134ecd=this[_0x48a7('0x2f')][_0x48a7('0x15')]['get'](_0x48a7('0x19')),_0x2556a4=_0x4b5457(_0x87cb8c['locale']);_0x2556a4[_0x48a7('0x6')][_0x48a7('0x26')]({'icon':_0x1a552f,'label':_0x583161(_0x87cb8c['locale'],_0x48a7('0xb')),'tooltip':!0x0}),_0x2556a4[_0x48a7('0x18')]['extendTemplate']({'attributes':{'class':_0x48a7('0xa')}}),_0x2556a4['on'](_0x48a7('0x4'),(_0xd8dc6a,_0x3cf46b,_0x151af6)=>{this['commentsArchiveView']||(this[_0x48a7('0x12')]=new _0x1b3919(_0x87cb8c['locale'],this['annotationViews'])),_0x151af6?_0x2556a4[_0x48a7('0x18')][_0x48a7('0x21')][_0x48a7('0x0')](this[_0x48a7('0x12')]):_0x2556a4[_0x48a7('0x18')][_0x48a7('0x21')][_0x48a7('0x13')](this[_0x48a7('0x12')]);});for(const _0x2b14ce of this[_0x48a7('0xc')]){const _0x3e65f7=_0x134ecd[_0x48a7('0x30')](_0x2b14ce['mainView']);this[_0x48a7('0x2c')](_0x2556a4,_0x3e65f7);}return _0x2556a4[_0x48a7('0x5')](this[_0x48a7('0xc')],_0x48a7('0x0'),(_0x19c3c0,_0x57e320)=>{const _0x3069bc=_0x134ecd[_0x48a7('0x30')](_0x57e320[_0x48a7('0x28')]);this[_0x48a7('0x2c')](_0x2556a4,_0x3069bc);}),_0x2556a4[_0x48a7('0x5')](this['annotationViews'],_0x48a7('0x13'),(_0x5569bb,_0x143998)=>{const _0xfd6488=_0x134ecd[_0x48a7('0x30')](_0x143998[_0x48a7('0x28')]);for(const _0x248976 of _0xfd6488[_0x48a7('0x20')])_0x248976[_0x48a7('0x8')][_0x48a7('0x16')]('ck-body')&&_0x2556a4[_0x48a7('0xf')]['remove'](_0x248976);}),_0x2556a4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x31f2=['change:isThreadsLoadingPaused','root','enqueueChange','createRange','switchReadOnly','group','_threadToController','low','differ','resolveCommentThread','for','ignoreResolvedComments','_getTextContext','_initAriaMarkerChangeAnnouncements','reopenCommentThread','editingDowncast','isCollapsed','CommentsEditing','push','set','render','removeMarker','upcast','clear','markerName','attachTo','getRange','registerAnnotation','managedUsingOperations','reconvertMarker','hasDomSelection','setUnlinkedAt','LEAVE_COMMENT_ANNOUNCEMENT','activeMarker','conversion','markerToData','once','archivedAt','rootName','isObject','markers','elementToElement','init','context','_reconvertMarkers','hasCommentThread','setContext','$textProxy','size','comments','listenTo','scrollToThreadMarker','getAllMarkersForId','editor','ENTER_COMMENT_ANNOUNCEMENT','getChangedMarkers','removeMarker:','editing','comment','unlinkedAt','substring','item','data','getWalker','_attachMarkerToThread','pluginName','document','_handleMarkerAddAndRemove','hasMarkerForId','delete','collaboration.channelId','_hasTargetInContent','createElement','hasContent','consume','newRange','_detachCommentThread','addComment','change:activeMarker','updateMarker','dataToMarker','model','$marker','text','comment:','consumable','plugins','addCommentThread','$graveyard','getCommentThreads','destroy','isLocal','ck-comment-marker--active','change','isResolved','then','get','isAttached','getItems','getCommentThread','getByInnerView','_handleThreadMarker','ready','_getTargetForId','createPositionBefore','start','removeCommentThread','view','config','locale','markerToHighlight','addMarker:','focus','ck-comment-marker','isThreadsLoadingPaused','add','announce','_initializeMarkerConverters','commands','name','dataDowncast','fetchCommentThread','length','_threads','ariaLiveAnnouncer','_attachResolvedThread'];(function(_0x3e294a,_0x31f2e9){const _0x32093a=function(_0x43bb1a){while(--_0x43bb1a){_0x3e294a['push'](_0x3e294a['shift']());}};_0x32093a(++_0x31f2e9);}(_0x31f2,0x169));const _0x3209=function(_0x3e294a,_0x31f2e9){_0x3e294a=_0x3e294a-0x0;let _0x32093a=_0x31f2[_0x3e294a];return _0x32093a;};import{Plugin as _0x24afde}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x405bf2}from'ckeditor5/src/utils.js';import _0x2f93de from'./commentsrepository.js';import _0x56630d from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x5f2058,getAllMarkersDomElementsSorted as _0x1ba9c9}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x22df07 from'../annotations/editorannotations.js';import _0x14224d from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x2f3c56 from'./integrations/importword.js';import _0x476c26 from'../annotations/annotations.js';import{getTranslation as _0x1c7e24}from'../utils/common-translations.js';export default class r extends _0x24afde{static get['requires'](){return[_0x2f93de,_0x22df07,_0x14224d,_0x2f3c56];}static get[_0x3209('0x52')](){return _0x3209('0x22');}constructor(_0x26be7a){super(_0x26be7a),this[_0x3209('0x24')](_0x3209('0x5'),!0x0),_0x26be7a[_0x3209('0x4f')][_0x3209('0x35')](_0x3209('0x77'),()=>this[_0x3209('0x5')]=!0x1),this[_0x3209('0x24')](_0x3209('0x32'),null),this['on'](_0x3209('0x5f'),(_0x3b0f12,_0x5e4092,_0x30fd9c,_0x200fd8)=>{const _0x26dc3c=_0x30fd9c?ot(_0x30fd9c)['id']:null;if(_0x26be7a['model'][_0x3209('0x6e')](()=>{if(_0x26dc3c){const _0x53a334=this[_0x3209('0x45')](_0x26dc3c);for(const _0x148f7e of _0x53a334)_0x26be7a[_0x3209('0x4a')][_0x3209('0x2e')](_0x148f7e);}if(_0x200fd8){const {id:_0x29caa2}=ot(_0x200fd8),_0x6c249e=this[_0x3209('0x45')](_0x29caa2);for(const _0x3af6cf of _0x6c249e)_0x26be7a['editing'][_0x3209('0x2e')](_0x3af6cf);}}),_0x26dc3c){const _0x5a8ab2=_0x26be7a['plugins']['get'](_0x2f93de)[_0x3209('0x74')](_0x26dc3c);_0x5a8ab2&&_0x5a8ab2[_0x3209('0x6f')]&&this[_0x3209('0x44')](_0x26dc3c);}}),this[_0x3209('0x1e')]();}[_0x3209('0x3b')](){const _0x14ab04=this[_0x3209('0x46')],_0x338399=_0x14ab04[_0x3209('0x67')][_0x3209('0x71')](_0x2f93de),_0x3a6ace=_0x14ab04[_0x3209('0x7d')][_0x3209('0x71')]('collaboration.channelId');_0x14ab04[_0x3209('0x9')][_0x3209('0x6')](_0x3209('0x68'),new _0x56630d(_0x14ab04)),this['listenTo'](_0x14ab04,'change:isReadOnly',(_0xb90a1,_0x39b597,_0x2b87fc)=>{_0x338399[_0x3209('0x15')](_0x2b87fc,_0x14ab04[_0x3209('0x7d')]['get'](_0x3209('0x57')));}),this[_0x3209('0x43')](_0x338399,tt('addCommentThread',_0x3a6ace),(_0x12c054,{threadId:_0x411613})=>{const _0x57b0b1=this[_0x3209('0x46')][_0x3209('0x67')]['get'](_0x2f93de)[_0x3209('0x74')](_0x411613);_0x57b0b1&&_0x57b0b1[_0x3209('0x36')]&&this[_0x3209('0x10')](_0x411613);}),this[_0x3209('0x43')](_0x338399,tt(_0x3209('0x7b'),_0x3a6ace),(_0x1979e6,{threadId:_0x1c801c})=>{_0x14ab04['model'][_0x3209('0x13')]({'isUndoable':!0x1},_0x2d11d7=>{const _0x27f7a1=this[_0x3209('0x45')](_0x1c801c);for(const _0x70c3e9 of _0x27f7a1)_0x2d11d7['removeMarker'](_0x70c3e9);});}),this['listenTo'](_0x338399,tt(_0x3209('0x1a'),_0x3a6ace),(_0x486f85,{threadId:_0x3cc88f})=>{(this['_attachResolvedThread'](_0x3cc88f),this[_0x3209('0x3d')](_0x3cc88f),this[_0x3209('0x46')][_0x3209('0x4a')][_0x3209('0x7c')][_0x3209('0x2f')])&&(this[_0x3209('0x46')][_0x3209('0x67')][_0x3209('0x71')](_0x2f93de)[_0x3209('0x74')](_0x3cc88f)[_0x3209('0x4c')]||this[_0x3209('0x46')]['editing']['view'][_0x3209('0x3')]());},{'priority':_0x3209('0x18')}),this[_0x3209('0x43')](_0x338399,tt(_0x3209('0x1f'),_0x3a6ace),(_0x4073eb,{threadId:_0x29c577})=>{this['_reconvertMarkers'](_0x29c577);},{'priority':'low'}),this[_0x3209('0x43')](_0x338399,tt(_0x3209('0x5e'),_0x3a6ace),(_0x11dff6,{threadId:_0x3b8758,isFromAdapter:_0xe5c627})=>{const _0x2a4261=this[_0x3209('0x45')](_0x3b8758);if(_0xe5c627||0x0==_0x2a4261[_0x3209('0xd')]||!_0x338399[_0x3209('0x3e')](_0x3b8758))return;0x1===_0x338399[_0x3209('0x74')](_0x3b8758)[_0x3209('0xd')]&&_0x14ab04[_0x3209('0x62')][_0x3209('0x13')]({'isUndoable':!0x1},_0x489949=>{for(const _0x5c3f22 of _0x2a4261)_0x489949[_0x3209('0x60')](_0x5c3f22,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x3209('0x8')](),this[_0x3209('0x54')]();}[_0x3209('0x6b')](){const _0x2ad92b=this[_0x3209('0x46')][_0x3209('0x67')]['get'](_0x2f93de),_0x444e55=this[_0x3209('0x46')][_0x3209('0x7d')][_0x3209('0x71')](_0x3209('0x57'));for(const _0x7bd2a9 of _0x2ad92b[_0x3209('0x6a')]({'channelId':_0x444e55}))_0x2ad92b[_0x3209('0x5d')](_0x7bd2a9['id']),_0x2ad92b[_0x3209('0xe')][_0x3209('0x56')](_0x7bd2a9['id']);super[_0x3209('0x6b')]();}['hasMarkerForId'](_0x2c8f3c){return this['getAllMarkersForId'](_0x2c8f3c)[_0x3209('0xd')]>0x0;}['getAllMarkersForId'](_0x2b3482){const _0x300b61=[];for(const _0x568ac4 of this[_0x3209('0x46')][_0x3209('0x62')]['markers'])_0x568ac4[_0x3209('0xa')]['startsWith'](_0x3209('0x65')+_0x2b3482)&&_0x300b61['push'](_0x568ac4);return _0x300b61;}[_0x3209('0x44')](_0x2a52cc){const _0x4128a0=this[_0x3209('0x78')](_0x2a52cc);_0x4128a0&&setTimeout(()=>{this[_0x3209('0x32')]&&ot(this[_0x3209('0x32')])['id']===_0x2a52cc&&_0x405bf2({'target':_0x4128a0[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x5ad8a3){this['editor'][_0x3209('0x62')][_0x3209('0x6e')](()=>{for(const _0x13dc78 of this[_0x3209('0x45')](_0x5ad8a3))this[_0x3209('0x46')][_0x3209('0x4a')]['reconvertMarker'](_0x13dc78);});}[_0x3209('0x10')](_0x39b92b){const _0x4ba212=this['editor'][_0x3209('0x67')]['get'](_0x2f93de),_0x54a256=this[_0x3209('0x46')][_0x3209('0x67')][_0x3209('0x71')](_0x22df07),_0x2445a5=_0x4ba212[_0x3209('0x74')](_0x39b92b);if(!_0x2445a5[_0x3209('0x72')]){const _0x3b2280=_0x2445a5['attachTo'](()=>this['_getTargetForId'](_0x2445a5['id']));_0x54a256[_0x3209('0x2c')](_0x3b2280),_0x2445a5[_0x3209('0x58')]=!0x1;}}[_0x3209('0x8')](){const _0x3c9fd2=this[_0x3209('0x46')];_0x3c9fd2['conversion'][_0x3209('0x1b')](_0x3209('0x20'))[_0x3209('0x1')]({'model':_0x3209('0x4b'),'view':(_0x56ef7e,_0x2c8668)=>{const {id:_0x290ca5}=ot(_0x56ef7e[_0x3209('0x29')]),_0x566881=_0x3c9fd2[_0x3209('0x67')][_0x3209('0x71')](_0x2f93de)['getCommentThread'](_0x290ca5),_0x1bf558=this[_0x3209('0x32')]&&ot(this[_0x3209('0x32')])['id']===_0x290ca5;if(_0x566881&&_0x566881[_0x3209('0x6f')]&&!_0x1bf558&&_0x56ef7e[_0x3209('0x4e')])return _0x2c8668[_0x3209('0x66')][_0x3209('0x5b')](_0x56ef7e[_0x3209('0x4e')],_0x3209('0x2')+_0x56ef7e[_0x3209('0x29')]),_0x2c8668[_0x3209('0x66')]['consume'](_0x56ef7e[_0x3209('0x4e')],_0x3209('0x49')+_0x56ef7e['markerName']),{'classes':[]};const _0x2ef5fb=[_0x3209('0x4')];return _0x1bf558&&_0x2ef5fb['push'](_0x3209('0x6d')),{'classes':_0x2ef5fb,'attributes':{'data-comment':_0x290ca5}};}}),_0x3c9fd2[_0x3209('0x33')][_0x3209('0x1b')](_0x3209('0xb'))[_0x3209('0x34')]({'model':_0x3209('0x4b'),'view':(_0x369c0d,{options:_0x16679c})=>{const _0x2c7206=_0x3c9fd2[_0x3209('0x67')]['get'](_0x2f93de),_0x5114f4=_0x3c9fd2[_0x3209('0x62')][_0x3209('0x39')][_0x3209('0x71')](_0x369c0d),{id:_0x186791,part:_0x55fc12}=ot(_0x369c0d);if(_0x5114f4&&!_0x5114f4['affectsData'])return null;if(_0x16679c[_0x3209('0x1c')]){const _0x4854da=_0x2c7206['getCommentThread'](_0x186791);if(_0x4854da&&_0x4854da['isResolved'])return null;}return{'group':_0x3209('0x4b'),'name':_0x55fc12?_0x186791+':'+_0x55fc12:_0x186791};}}),_0x3c9fd2[_0x3209('0x33')][_0x3209('0x1b')]('upcast')[_0x3209('0x3a')]({'view':{'name':_0x3209('0x4b'),'attributes':{'id':/^\w/}},'model':(_0x17cf66,{writer:_0x41899d})=>_0x41899d[_0x3209('0x59')](_0x3209('0x63'),{'data-name':_0x3209('0x65')+_0x17cf66['getAttribute']('id')})}),_0x3c9fd2[_0x3209('0x33')][_0x3209('0x1b')](_0x3209('0x27'))[_0x3209('0x61')]({'view':_0x3209('0x4b')});}[_0x3209('0x54')](){const _0x18a648=this[_0x3209('0x46')],_0x5556da=_0x18a648[_0x3209('0x67')][_0x3209('0x71')](_0x2f93de),_0x10d377=new Set(),_0x1b0c04=new Set();_0x18a648[_0x3209('0x62')]['document']['registerPostFixer'](_0x34a91e=>{let _0x4e5593=!0x1;for(const {name:_0x5d3278,data:_0x39d24c}of _0x18a648[_0x3209('0x62')]['document']['differ'][_0x3209('0x48')]()){const {group:_0x53fab4,id:_0x379cca}=ot(_0x5d3278);let _0x8d7763=_0x39d24c[_0x3209('0x5c')];if(_0x3209('0x4b')!==_0x53fab4||!_0x8d7763)continue;const _0x202bda=_0x3209('0x69')===_0x8d7763[_0x3209('0x12')][_0x3209('0x37')];_0x202bda||(_0x8d7763=et(_0x8d7763,_0x18a648[_0x3209('0x62')]),!_0x8d7763||_0x8d7763['isCollapsed']||!_0x39d24c[_0x3209('0x5c')]||_0x8d7763['isEqual'](_0x39d24c[_0x3209('0x5c')]))?_0x18a648['model'][_0x3209('0x5a')](_0x8d7763)&&!_0x202bda?this[_0x3209('0x5')]?_0x10d377[_0x3209('0x6')](_0x5d3278):this[_0x3209('0x76')](_0x5d3278,_0x379cca):(_0x1b0c04[_0x3209('0x6')](_0x5d3278),_0x10d377[_0x3209('0x56')](_0x5d3278),_0x34a91e[_0x3209('0x26')](_0x5d3278),_0x4e5593=!0x0):(_0x34a91e[_0x3209('0x60')](_0x5d3278,{'range':_0x8d7763}),_0x4e5593=!0x0);}return _0x4e5593;}),this['on'](_0x3209('0x11'),(_0x406bb8,_0x4a4d58,_0x4d473f)=>{if(!_0x4d473f&&_0x10d377[_0x3209('0x41')])for(const _0x4a7205 of _0x10d377){const {id:_0x3d036f}=ot(_0x4a7205);_0x10d377[_0x3209('0x56')](_0x4a7205),_0x18a648['model'][_0x3209('0x39')][_0x3209('0x71')](_0x4a7205)&&this[_0x3209('0x76')](_0x4a7205,_0x3d036f);}}),this[_0x3209('0x43')](_0x18a648[_0x3209('0x62')]['document'],_0x3209('0x6e'),(_0x59555a,_0x3c0c52)=>{for(const {name:_0x4bf705,data:{newRange:_0x481f74}}of _0x18a648[_0x3209('0x62')][_0x3209('0x53')][_0x3209('0x19')][_0x3209('0x48')]()){const {group:_0x289a85,id:_0x37d4fc}=ot(_0x4bf705);if('comment'!==_0x289a85)continue;const _0x105cfb=_0x5556da[_0x3209('0x74')](_0x37d4fc),_0x7ac725=this[_0x3209('0x55')](_0x37d4fc);_0x105cfb&&(_0x105cfb[_0x3209('0x58')]||_0x18a648[_0x3209('0x4a')][_0x3209('0x7c')][_0x3209('0x35')]('render',()=>{const _0x20fd79=_0x18a648[_0x3209('0x67')][_0x3209('0x71')](_0x476c26),_0x39752b=_0x5556da[_0x3209('0x17')][_0x3209('0x71')](_0x105cfb)['view'];_0x20fd79[_0x3209('0x75')](_0x39752b)['refreshVisibility']();},{'priority':'low'}),_0x105cfb[_0x3209('0x58')]=_0x7ac725||!!_0x481f74),_0x481f74||(_0x1b0c04[_0x3209('0x6')](_0x4bf705),_0x10d377[_0x3209('0x56')](_0x4bf705));}if(_0x3c0c52[_0x3209('0x6c')])for(const _0x4af269 of _0x1b0c04){const {id:_0xac8263}=ot(_0x4af269),_0x2419bc=_0x5556da['getCommentThread'](_0xac8263),_0x16f8d1=this[_0x3209('0x55')](_0xac8263);_0x10d377['delete'](_0x4af269),!_0x2419bc||_0x16f8d1||_0x2419bc[_0x3209('0x4c')]||_0x2419bc['setUnlinkedAt'](new Date());}_0x1b0c04[_0x3209('0x28')]();});}['_getTargetForId'](_0xc2fb05){const _0xfa6182=this[_0x3209('0x46')],_0x5d7f9e=this[_0x3209('0x45')](_0xc2fb05);return _0x1ba9c9(_0xfa6182[_0x3209('0x4a')],_0x5d7f9e);}[_0x3209('0x1d')](_0x2d1c93){const _0x21fff0=this[_0x3209('0x45')](_0x2d1c93);let _0x121369='',_0x523acc=!0x1;for(const _0x1d8573 of _0x21fff0){const _0x46e8ff=_0x1d8573[_0x3209('0x2b')]();for(const _0x283eda of Array['from'](_0x46e8ff[_0x3209('0x73')]()))_0x283eda['is'](_0x3209('0x40'))?(_0x121369&&_0x523acc&&(_0x121369+='\x20',_0x523acc=!0x1),_0x121369+=_0x283eda[_0x3209('0x4f')]):_0x523acc=!0x0;_0x523acc=!0x0;}return _0x121369[_0x3209('0x4d')](0x0,0x96);}['_attachMarkerToThread'](_0x312c78,_0x56249d){const _0x40b33a=this['editor'],_0x33cccd=_0x40b33a[_0x3209('0x67')][_0x3209('0x71')](_0x2f93de);let _0x43361d=_0x33cccd[_0x3209('0x74')](_0x56249d);const _0x1a0650=_0x40b33a['config']['get']('collaboration.channelId'),_0x48ce0b=_0x40b33a[_0x3209('0x67')][_0x3209('0x71')](_0x22df07);if(_0x43361d&&(_0x43361d[_0x3209('0x4c')]&&_0x43361d[_0x3209('0x30')](null),_0x43361d['isAttached']))return _0x43361d;return!this[_0x3209('0x45')](_0x56249d)[0x0][_0x3209('0x2d')]?_0x40b33a[_0x3209('0x4a')]['view']['once'](_0x3209('0x25'),()=>{if(_0x33cccd[_0x3209('0x74')](_0x56249d))return;const _0x3fcf25=_0x40b33a[_0x3209('0x67')][_0x3209('0x71')](_0x476c26);_0x43361d=_0x33cccd['openNewCommentThread']({'channelId':_0x1a0650,'threadId':_0x56249d,'target':()=>this['_getTargetForId'](_0x56249d),'context':{'type':_0x3209('0x64'),'value':this[_0x3209('0x1d')](_0x56249d)}});const _0x17f568=_0x33cccd[_0x3209('0x17')][_0x3209('0x71')](_0x43361d)[_0x3209('0x7c')],_0x5223f7=_0x3fcf25[_0x3209('0x75')](_0x17f568);_0x5223f7&&_0x48ce0b[_0x3209('0x2c')](_0x5223f7);},{'priority':_0x3209('0x18')}):_0x33cccd[_0x3209('0xc')]({'channelId':_0x1a0650,'threadId':_0x56249d})[_0x3209('0x70')](_0x20f5fd=>{if('destroyed'!==_0x40b33a['state']){if(_0x43361d=_0x20f5fd,_0x43361d&&!_0x43361d[_0x3209('0x72')]){const _0x2082be=_0x43361d[_0x3209('0x2a')](()=>this[_0x3209('0x78')](_0x56249d));_0x48ce0b[_0x3209('0x2c')](_0x2082be),_0x43361d[_0x3209('0x6f')]&&this[_0x3209('0x3d')](_0x56249d);}else{if(!_0x43361d){const _0x19a60d=this['getAllMarkersForId'](_0x56249d);_0x40b33a['model'][_0x3209('0x6e')](_0x2983fb=>{for(const _0x10d085 of _0x19a60d)_0x2983fb['removeMarker'](_0x10d085);});}}}}),_0x43361d;}[_0x3209('0x76')](_0x4e9ada,_0x547c80){const _0xeb572f=this[_0x3209('0x51')](_0x4e9ada,_0x547c80);_0xeb572f&&!_0xeb572f[_0x3209('0x3c')]&&_0xeb572f[_0x3209('0x3f')]({'type':'text','value':this[_0x3209('0x1d')](_0x547c80)});}[_0x3209('0x1e')](){const _0x224bc8=this[_0x3209('0x46')];_0x5f2058(_0x224bc8[_0x3209('0x62')],({left:_0x48b825,entered:_0x3c65bf})=>{const _0x4899e1=[];for(const _0x4ab9b1 of _0x48b825)if(rt(_0x4ab9b1)){_0x4899e1[_0x3209('0x23')](_0x1c7e24(_0x224bc8[_0x3209('0x0')],_0x3209('0x31')));break;}for(const _0x51daa7 of _0x3c65bf)if(rt(_0x51daa7)){_0x4899e1['push'](_0x1c7e24(_0x224bc8['locale'],_0x3209('0x47')));break;}_0x4899e1[_0x3209('0xd')]&&_0x224bc8['ui'][_0x3209('0xf')][_0x3209('0x7')](_0x3209('0x42'),_0x4899e1['join']('\x20'));});}}function tt(_0x43fe82,_0x544e3b){return _0x544e3b?_0x43fe82+':'+_0x544e3b:_0x43fe82;}function ot(_0x59de5a){const _0x370043=_0x59de5a['split'](':');return{'group':_0x370043[0x0],'id':_0x370043[0x1],'part':_0x370043[0x2]};}function et(_0x71e4c7,_0x5d614b){const _0x1f7d52=_0x5d614b['schema'],_0x50aa27=_0x5d614b[_0x3209('0x14')](_0x71e4c7[_0x3209('0x7a')]);for(const _0x2e1734 of _0x71e4c7[_0x3209('0x50')]()){const {type:_0x35c7da,item:_0x10f2d9,nextPosition:_0x24497c}=_0x2e1734;if('text'===_0x35c7da||_0x1f7d52[_0x3209('0x38')](_0x10f2d9)){const _0x1da1af=_0x5d614b[_0x3209('0x79')](_0x10f2d9);_0x50aa27[_0x3209('0x21')]&&(_0x50aa27['start']=_0x1da1af),_0x50aa27['end']=_0x24497c;}}return _0x50aa27;}function rt(_0x359be6){return _0x3209('0x4b')===ot(_0x359be6[_0x3209('0xa')])[_0x3209('0x16')];}
|
|
23
|
+
const _0x1c96=['clear','startsWith','low','editor','markerName','_handleMarkerAddAndRemove','markerToHighlight','registerAnnotation','from','getItems','model','root','context','_attachResolvedThread','_reconvertMarkers','getByInnerView','getCommentThread','change:activeMarker','delete','_threadToController','removeCommentThread','_getTextContext','getAttribute','ENTER_COMMENT_ANNOUNCEMENT','commands','data','isAttached','consume','$graveyard','for','openNewCommentThread','ready','removeMarker:','document','rootName','_initAriaMarkerChangeAnnouncements','hasMarkerForId','substring','collaboration.channelId','ariaLiveAnnouncer','fetchCommentThread','reopenCommentThread','comment:','_handleThreadMarker','activeMarker','start','conversion','add','schema','requires','addMarker:','markers','ignoreResolvedComments','size','isCollapsed','isResolved','_detachCommentThread','addComment','dataDowncast','$textProxy','change:isReadOnly','ck-comment-marker--active','newRange','item','setContext','join','ck-comment-marker','destroyed','name','announce','text','enqueueChange','config','isLocal','createRange','set','$marker','createElement','_threads','dataToMarker','length','push','destroy','scrollToThreadMarker','editing','isObject','end','editingDowncast','init','reconvertMarker','setUnlinkedAt','locale','isEqual','affectsData','getAllMarkersForId','pluginName','get','listenTo','render','hasDomSelection','resolveCommentThread','group','getRange','hasCommentThread','_attachMarkerToThread','differ','focus','getChangedMarkers','once','comments','CommentsEditing','createPositionBefore','split','refreshVisibility','plugins','removeMarker','isThreadsLoadingPaused','_hasTargetInContent','comment','change:isThreadsLoadingPaused','unlinkedAt','view','switchReadOnly','change','addCommentThread','consumable','_getTargetForId'];(function(_0x53d002,_0x1c9673){const _0x25e3b4=function(_0x23e75a){while(--_0x23e75a){_0x53d002['push'](_0x53d002['shift']());}};_0x25e3b4(++_0x1c9673);}(_0x1c96,0x1c4));const _0x25e3=function(_0x53d002,_0x1c9673){_0x53d002=_0x53d002-0x0;let _0x25e3b4=_0x1c96[_0x53d002];return _0x25e3b4;};import{Plugin as _0x5a4b36}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x427975}from'ckeditor5/src/utils.js';import _0x3de9b from'./commentsrepository.js';import _0x467dc1 from'./addcommentthreadcommand.js';import{surroundingMarkersDetector as _0x40b203,getAllMarkersDomElementsSorted as _0x45fe43}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x21e1f2 from'../annotations/editorannotations.js';import _0x5538c9 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0xa6a4d1 from'./integrations/importword.js';import _0x130beb from'../annotations/annotations.js';import{getTranslation as _0x32a8de}from'../utils/common-translations.js';export default class r extends _0x5a4b36{static get[_0x25e3('0x69')](){return[_0x3de9b,_0x21e1f2,_0x5538c9,_0xa6a4d1];}static get[_0x25e3('0x18')](){return _0x25e3('0x27');}constructor(_0x4a3673){super(_0x4a3673),this[_0x25e3('0x4')](_0x25e3('0x2d'),!0x0),_0x4a3673['data']['once'](_0x25e3('0x57'),()=>this[_0x25e3('0x2d')]=!0x1),this[_0x25e3('0x4')]('activeMarker',null),this['on'](_0x25e3('0x49'),(_0x246617,_0x39bf51,_0xb536f7,_0x565eb6)=>{const _0x4a53f7=_0xb536f7?ot(_0xb536f7)['id']:null;if(_0x4a3673[_0x25e3('0x42')][_0x25e3('0x34')](()=>{if(_0x4a53f7){const _0x52f629=this['getAllMarkersForId'](_0x4a53f7);for(const _0x2c9734 of _0x52f629)_0x4a3673[_0x25e3('0xd')][_0x25e3('0x12')](_0x2c9734);}if(_0x565eb6){const {id:_0x2ecf9e}=ot(_0x565eb6),_0x225eed=this[_0x25e3('0x17')](_0x2ecf9e);for(const _0x2300f5 of _0x225eed)_0x4a3673[_0x25e3('0xd')][_0x25e3('0x12')](_0x2300f5);}}),_0x4a53f7){const _0x35b2dd=_0x4a3673[_0x25e3('0x2b')][_0x25e3('0x19')](_0x3de9b)['getCommentThread'](_0x4a53f7);_0x35b2dd&&_0x35b2dd[_0x25e3('0x6f')]&&this[_0x25e3('0xc')](_0x4a53f7);}}),this[_0x25e3('0x5b')]();}[_0x25e3('0x11')](){const _0x1ffed5=this['editor'],_0x5e73d9=_0x1ffed5[_0x25e3('0x2b')][_0x25e3('0x19')](_0x3de9b),_0x42d341=_0x1ffed5['config'][_0x25e3('0x19')](_0x25e3('0x5e'));_0x1ffed5[_0x25e3('0x50')]['add'](_0x25e3('0x35'),new _0x467dc1(_0x1ffed5)),this[_0x25e3('0x1a')](_0x1ffed5,_0x25e3('0x74'),(_0x54b453,_0x1db391,_0x3ac644)=>{_0x5e73d9[_0x25e3('0x33')](_0x3ac644,_0x1ffed5[_0x25e3('0x1')][_0x25e3('0x19')](_0x25e3('0x5e')));}),this['listenTo'](_0x5e73d9,tt(_0x25e3('0x35'),_0x42d341),(_0x236c04,{threadId:_0x3fde03})=>{const _0x234443=this[_0x25e3('0x3b')][_0x25e3('0x2b')][_0x25e3('0x19')](_0x3de9b)['getCommentThread'](_0x3fde03);_0x234443&&_0x234443['archivedAt']&&this['_attachResolvedThread'](_0x3fde03);}),this[_0x25e3('0x1a')](_0x5e73d9,tt(_0x25e3('0x4c'),_0x42d341),(_0x4d5cd5,{threadId:_0x4b0a2e})=>{_0x1ffed5['model'][_0x25e3('0x0')]({'isUndoable':!0x1},_0x550ef7=>{const _0x47d8c8=this[_0x25e3('0x17')](_0x4b0a2e);for(const _0x14538b of _0x47d8c8)_0x550ef7[_0x25e3('0x2c')](_0x14538b);});}),this[_0x25e3('0x1a')](_0x5e73d9,tt(_0x25e3('0x1d'),_0x42d341),(_0x1528b4,{threadId:_0x212da4})=>{(this[_0x25e3('0x45')](_0x212da4),this['_reconvertMarkers'](_0x212da4),this[_0x25e3('0x3b')][_0x25e3('0xd')][_0x25e3('0x32')][_0x25e3('0x1c')])&&(this[_0x25e3('0x3b')][_0x25e3('0x2b')]['get'](_0x3de9b)['getCommentThread'](_0x212da4)[_0x25e3('0x31')]||this[_0x25e3('0x3b')][_0x25e3('0xd')][_0x25e3('0x32')][_0x25e3('0x23')]());},{'priority':_0x25e3('0x3a')}),this[_0x25e3('0x1a')](_0x5e73d9,tt(_0x25e3('0x61'),_0x42d341),(_0x2c61a9,{threadId:_0x2e9890})=>{this[_0x25e3('0x46')](_0x2e9890);},{'priority':_0x25e3('0x3a')}),this['listenTo'](_0x5e73d9,tt(_0x25e3('0x71'),_0x42d341),(_0x5cfcc7,{threadId:_0x21c774,isFromAdapter:_0x49930f})=>{const _0x4d3f50=this[_0x25e3('0x17')](_0x21c774);if(_0x49930f||0x0==_0x4d3f50[_0x25e3('0x9')]||!_0x5e73d9[_0x25e3('0x20')](_0x21c774))return;0x1===_0x5e73d9[_0x25e3('0x48')](_0x21c774)[_0x25e3('0x9')]&&_0x1ffed5[_0x25e3('0x42')][_0x25e3('0x0')]({'isUndoable':!0x1},_0xdbc5b3=>{for(const _0x233ffb of _0x4d3f50)_0xdbc5b3['updateMarker'](_0x233ffb,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x25e3('0x3a')}),this['_initializeMarkerConverters'](),this[_0x25e3('0x3d')]();}[_0x25e3('0xb')](){const _0x104d32=this['editor'][_0x25e3('0x2b')][_0x25e3('0x19')](_0x3de9b),_0x52e14f=this[_0x25e3('0x3b')]['config'][_0x25e3('0x19')](_0x25e3('0x5e'));for(const _0x5c1384 of _0x104d32['getCommentThreads']({'channelId':_0x52e14f}))_0x104d32[_0x25e3('0x70')](_0x5c1384['id']),_0x104d32[_0x25e3('0x7')][_0x25e3('0x4a')](_0x5c1384['id']);super[_0x25e3('0xb')]();}[_0x25e3('0x5c')](_0x5e3b9a){return this[_0x25e3('0x17')](_0x5e3b9a)['length']>0x0;}[_0x25e3('0x17')](_0x5d2093){const _0x4897b9=[];for(const _0x5236ef of this['editor'][_0x25e3('0x42')][_0x25e3('0x6b')])_0x5236ef['name'][_0x25e3('0x39')](_0x25e3('0x62')+_0x5d2093)&&_0x4897b9[_0x25e3('0xa')](_0x5236ef);return _0x4897b9;}[_0x25e3('0xc')](_0x3cb00b){const _0xebfb1e=this[_0x25e3('0x37')](_0x3cb00b);_0xebfb1e&&setTimeout(()=>{this[_0x25e3('0x64')]&&ot(this[_0x25e3('0x64')])['id']===_0x3cb00b&&_0x427975({'target':_0xebfb1e[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x1b6bd4){this['editor'][_0x25e3('0x42')][_0x25e3('0x34')](()=>{for(const _0x4e3679 of this[_0x25e3('0x17')](_0x1b6bd4))this[_0x25e3('0x3b')][_0x25e3('0xd')][_0x25e3('0x12')](_0x4e3679);});}[_0x25e3('0x45')](_0x54bed0){const _0x51cda8=this['editor'][_0x25e3('0x2b')][_0x25e3('0x19')](_0x3de9b),_0x436eda=this['editor'][_0x25e3('0x2b')][_0x25e3('0x19')](_0x21e1f2),_0x17a1a3=_0x51cda8[_0x25e3('0x48')](_0x54bed0);if(!_0x17a1a3[_0x25e3('0x52')]){const _0x58e346=_0x17a1a3['attachTo'](()=>this[_0x25e3('0x37')](_0x17a1a3['id']));_0x436eda[_0x25e3('0x3f')](_0x58e346),_0x17a1a3[_0x25e3('0x2e')]=!0x1;}}['_initializeMarkerConverters'](){const _0x3b4bcf=this[_0x25e3('0x3b')];_0x3b4bcf[_0x25e3('0x66')][_0x25e3('0x55')](_0x25e3('0x10'))[_0x25e3('0x3e')]({'model':_0x25e3('0x2f'),'view':(_0x248f22,_0x562e73)=>{const {id:_0x243b3e}=ot(_0x248f22['markerName']),_0x2bb26f=_0x3b4bcf['plugins'][_0x25e3('0x19')](_0x3de9b)[_0x25e3('0x48')](_0x243b3e),_0x3b32dd=this['activeMarker']&&ot(this['activeMarker'])['id']===_0x243b3e;if(_0x2bb26f&&_0x2bb26f[_0x25e3('0x6f')]&&!_0x3b32dd&&_0x248f22[_0x25e3('0x77')])return _0x562e73[_0x25e3('0x36')]['consume'](_0x248f22[_0x25e3('0x77')],_0x25e3('0x6a')+_0x248f22[_0x25e3('0x3c')]),_0x562e73[_0x25e3('0x36')][_0x25e3('0x53')](_0x248f22[_0x25e3('0x77')],_0x25e3('0x58')+_0x248f22['markerName']),{'classes':[]};const _0x1b4fcf=[_0x25e3('0x7a')];return _0x3b32dd&&_0x1b4fcf[_0x25e3('0xa')](_0x25e3('0x75')),{'classes':_0x1b4fcf,'attributes':{'data-comment':_0x243b3e}};}}),_0x3b4bcf[_0x25e3('0x66')]['for'](_0x25e3('0x72'))['markerToData']({'model':'comment','view':(_0x1fb1bd,{options:_0x363d2e})=>{const _0x963a52=_0x3b4bcf['plugins'][_0x25e3('0x19')](_0x3de9b),_0x5f2f0f=_0x3b4bcf[_0x25e3('0x42')]['markers'][_0x25e3('0x19')](_0x1fb1bd),{id:_0x442ff2,part:_0x137962}=ot(_0x1fb1bd);if(_0x5f2f0f&&!_0x5f2f0f[_0x25e3('0x16')])return null;if(_0x363d2e[_0x25e3('0x6c')]){const _0x5c5fbf=_0x963a52[_0x25e3('0x48')](_0x442ff2);if(_0x5c5fbf&&_0x5c5fbf[_0x25e3('0x6f')])return null;}return{'group':_0x25e3('0x2f'),'name':_0x137962?_0x442ff2+':'+_0x137962:_0x442ff2};}}),_0x3b4bcf[_0x25e3('0x66')]['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5b5d7d,{writer:_0x28770f})=>_0x28770f[_0x25e3('0x6')](_0x25e3('0x5'),{'data-name':'comment:'+_0x5b5d7d[_0x25e3('0x4e')]('id')})}),_0x3b4bcf[_0x25e3('0x66')][_0x25e3('0x55')]('upcast')[_0x25e3('0x8')]({'view':_0x25e3('0x2f')});}['_handleMarkerAddAndRemove'](){const _0x2122e5=this[_0x25e3('0x3b')],_0x5c0639=_0x2122e5['plugins']['get'](_0x3de9b),_0x5b528e=new Set(),_0x54135d=new Set();_0x2122e5[_0x25e3('0x42')][_0x25e3('0x59')]['registerPostFixer'](_0x192a7c=>{let _0x3f77cc=!0x1;for(const {name:_0x2452f0,data:_0x522cea}of _0x2122e5['model'][_0x25e3('0x59')][_0x25e3('0x22')][_0x25e3('0x24')]()){const {group:_0x20ec71,id:_0x2e73e1}=ot(_0x2452f0);let _0x4c63a2=_0x522cea[_0x25e3('0x76')];if(_0x25e3('0x2f')!==_0x20ec71||!_0x4c63a2)continue;const _0x10d467=_0x25e3('0x54')===_0x4c63a2[_0x25e3('0x43')][_0x25e3('0x5a')];_0x10d467||(_0x4c63a2=et(_0x4c63a2,_0x2122e5[_0x25e3('0x42')]),!_0x4c63a2||_0x4c63a2[_0x25e3('0x6e')]||!_0x522cea[_0x25e3('0x76')]||_0x4c63a2[_0x25e3('0x15')](_0x522cea[_0x25e3('0x76')]))?_0x2122e5[_0x25e3('0x42')]['hasContent'](_0x4c63a2)&&!_0x10d467?this[_0x25e3('0x2d')]?_0x5b528e[_0x25e3('0x67')](_0x2452f0):this[_0x25e3('0x63')](_0x2452f0,_0x2e73e1):(_0x54135d[_0x25e3('0x67')](_0x2452f0),_0x5b528e[_0x25e3('0x4a')](_0x2452f0),_0x192a7c[_0x25e3('0x2c')](_0x2452f0),_0x3f77cc=!0x0):(_0x192a7c['updateMarker'](_0x2452f0,{'range':_0x4c63a2}),_0x3f77cc=!0x0);}return _0x3f77cc;}),this['on'](_0x25e3('0x30'),(_0x4edabf,_0x1032f6,_0x5ab8b8)=>{if(!_0x5ab8b8&&_0x5b528e[_0x25e3('0x6d')])for(const _0x7d7d10 of _0x5b528e){const {id:_0x1122e2}=ot(_0x7d7d10);_0x5b528e[_0x25e3('0x4a')](_0x7d7d10),_0x2122e5['model'][_0x25e3('0x6b')][_0x25e3('0x19')](_0x7d7d10)&&this[_0x25e3('0x63')](_0x7d7d10,_0x1122e2);}}),this['listenTo'](_0x2122e5[_0x25e3('0x42')]['document'],_0x25e3('0x34'),(_0x58b99,_0x4e3661)=>{for(const {name:_0x2cc9ee,data:{newRange:_0x42417d}}of _0x2122e5[_0x25e3('0x42')][_0x25e3('0x59')][_0x25e3('0x22')][_0x25e3('0x24')]()){const {group:_0x8a2479,id:_0x156af6}=ot(_0x2cc9ee);if(_0x25e3('0x2f')!==_0x8a2479)continue;const _0x2c50d1=_0x5c0639[_0x25e3('0x48')](_0x156af6),_0x415c9b=this[_0x25e3('0x5c')](_0x156af6);_0x2c50d1&&(_0x2c50d1[_0x25e3('0x2e')]||_0x2122e5[_0x25e3('0xd')]['view'][_0x25e3('0x25')](_0x25e3('0x1b'),()=>{const _0x335437=_0x2122e5[_0x25e3('0x2b')]['get'](_0x130beb),_0x85617d=_0x5c0639['_threadToController'][_0x25e3('0x19')](_0x2c50d1)[_0x25e3('0x32')];_0x335437[_0x25e3('0x47')](_0x85617d)[_0x25e3('0x2a')]();},{'priority':'low'}),_0x2c50d1[_0x25e3('0x2e')]=_0x415c9b||!!_0x42417d),_0x42417d||(_0x54135d[_0x25e3('0x67')](_0x2cc9ee),_0x5b528e[_0x25e3('0x4a')](_0x2cc9ee));}if(_0x4e3661[_0x25e3('0x2')])for(const _0x381fa1 of _0x54135d){const {id:_0x1d2dc6}=ot(_0x381fa1),_0x385d4d=_0x5c0639['getCommentThread'](_0x1d2dc6),_0x1a2dae=this['hasMarkerForId'](_0x1d2dc6);_0x5b528e[_0x25e3('0x4a')](_0x381fa1),!_0x385d4d||_0x1a2dae||_0x385d4d[_0x25e3('0x31')]||_0x385d4d[_0x25e3('0x13')](new Date());}_0x54135d[_0x25e3('0x38')]();});}['_getTargetForId'](_0x3ee069){const _0x351dd5=this[_0x25e3('0x3b')],_0x28ae45=this['getAllMarkersForId'](_0x3ee069);return _0x45fe43(_0x351dd5['editing'],_0x28ae45);}[_0x25e3('0x4d')](_0x2b0fdb){const _0x314f12=this[_0x25e3('0x17')](_0x2b0fdb);let _0x5612cb='',_0x4d01c9=!0x1;for(const _0xc28e28 of _0x314f12){const _0x2ae453=_0xc28e28[_0x25e3('0x1f')]();for(const _0x302ea4 of Array[_0x25e3('0x40')](_0x2ae453[_0x25e3('0x41')]()))_0x302ea4['is'](_0x25e3('0x73'))?(_0x5612cb&&_0x4d01c9&&(_0x5612cb+='\x20',_0x4d01c9=!0x1),_0x5612cb+=_0x302ea4[_0x25e3('0x51')]):_0x4d01c9=!0x0;_0x4d01c9=!0x0;}return _0x5612cb[_0x25e3('0x5d')](0x0,0x96);}[_0x25e3('0x21')](_0x8740a8,_0x47e617){const _0xe0f484=this[_0x25e3('0x3b')],_0x547db4=_0xe0f484['plugins'][_0x25e3('0x19')](_0x3de9b);let _0x294d0d=_0x547db4['getCommentThread'](_0x47e617);const _0x10c701=_0xe0f484[_0x25e3('0x1')][_0x25e3('0x19')](_0x25e3('0x5e')),_0x5592a3=_0xe0f484[_0x25e3('0x2b')][_0x25e3('0x19')](_0x21e1f2);if(_0x294d0d&&(_0x294d0d[_0x25e3('0x31')]&&_0x294d0d[_0x25e3('0x13')](null),_0x294d0d[_0x25e3('0x52')]))return _0x294d0d;return!this[_0x25e3('0x17')](_0x47e617)[0x0]['managedUsingOperations']?_0xe0f484[_0x25e3('0xd')][_0x25e3('0x32')][_0x25e3('0x25')](_0x25e3('0x1b'),()=>{if(_0x547db4[_0x25e3('0x48')](_0x47e617))return;const _0x40b067=_0xe0f484[_0x25e3('0x2b')]['get'](_0x130beb);_0x294d0d=_0x547db4[_0x25e3('0x56')]({'channelId':_0x10c701,'threadId':_0x47e617,'target':()=>this[_0x25e3('0x37')](_0x47e617),'context':{'type':_0x25e3('0x7e'),'value':this[_0x25e3('0x4d')](_0x47e617)}});const _0x1e38de=_0x547db4[_0x25e3('0x4b')]['get'](_0x294d0d)[_0x25e3('0x32')],_0x56b4dd=_0x40b067[_0x25e3('0x47')](_0x1e38de);_0x56b4dd&&_0x5592a3[_0x25e3('0x3f')](_0x56b4dd);},{'priority':_0x25e3('0x3a')}):_0x547db4[_0x25e3('0x60')]({'channelId':_0x10c701,'threadId':_0x47e617})['then'](_0x453bf1=>{if(_0x25e3('0x7b')!==_0xe0f484['state']){if(_0x294d0d=_0x453bf1,_0x294d0d&&!_0x294d0d[_0x25e3('0x52')]){const _0x1d76b9=_0x294d0d['attachTo'](()=>this[_0x25e3('0x37')](_0x47e617));_0x5592a3[_0x25e3('0x3f')](_0x1d76b9),_0x294d0d['isResolved']&&this['_reconvertMarkers'](_0x47e617);}else{if(!_0x294d0d){const _0x1da359=this[_0x25e3('0x17')](_0x47e617);_0xe0f484[_0x25e3('0x42')][_0x25e3('0x34')](_0x370a4d=>{for(const _0x25c50b of _0x1da359)_0x370a4d[_0x25e3('0x2c')](_0x25c50b);});}}}}),_0x294d0d;}[_0x25e3('0x63')](_0x467a81,_0x423b18){const _0x4f7241=this['_attachMarkerToThread'](_0x467a81,_0x423b18);_0x4f7241&&!_0x4f7241[_0x25e3('0x44')]&&_0x4f7241[_0x25e3('0x78')]({'type':_0x25e3('0x7e'),'value':this[_0x25e3('0x4d')](_0x423b18)});}[_0x25e3('0x5b')](){const _0x2d8382=this[_0x25e3('0x3b')];_0x40b203(_0x2d8382[_0x25e3('0x42')],({left:_0x12e473,entered:_0x47865b})=>{const _0x521f62=[];for(const _0x3aa78a of _0x12e473)if(rt(_0x3aa78a)){_0x521f62[_0x25e3('0xa')](_0x32a8de(_0x2d8382['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x19e4a7 of _0x47865b)if(rt(_0x19e4a7)){_0x521f62[_0x25e3('0xa')](_0x32a8de(_0x2d8382[_0x25e3('0x14')],_0x25e3('0x4f')));break;}_0x521f62[_0x25e3('0x9')]&&_0x2d8382['ui'][_0x25e3('0x5f')][_0x25e3('0x7d')](_0x25e3('0x26'),_0x521f62[_0x25e3('0x79')]('\x20'));});}}function tt(_0x12c05b,_0x5782c9){return _0x5782c9?_0x12c05b+':'+_0x5782c9:_0x12c05b;}function ot(_0x5a8319){const _0x3adbc9=_0x5a8319[_0x25e3('0x29')](':');return{'group':_0x3adbc9[0x0],'id':_0x3adbc9[0x1],'part':_0x3adbc9[0x2]};}function et(_0x3341cf,_0x5cbc1d){const _0x10c3c6=_0x5cbc1d[_0x25e3('0x68')],_0x5d83f6=_0x5cbc1d[_0x25e3('0x3')](_0x3341cf[_0x25e3('0x65')]);for(const _0x257486 of _0x3341cf['getWalker']()){const {type:_0x9960b6,item:_0x57ef76,nextPosition:_0x48fa1e}=_0x257486;if(_0x25e3('0x7e')===_0x9960b6||_0x10c3c6[_0x25e3('0xe')](_0x57ef76)){const _0x20660e=_0x5cbc1d[_0x25e3('0x28')](_0x57ef76);_0x5d83f6[_0x25e3('0x6e')]&&(_0x5d83f6[_0x25e3('0x65')]=_0x20660e),_0x5d83f6[_0x25e3('0xf')]=_0x48fa1e;}}return _0x5d83f6;}function rt(_0x1cdb03){return _0x25e3('0x2f')===ot(_0x1cdb03[_0x25e3('0x7c')])[_0x25e3('0x1e')];}
|