@ckeditor/ckeditor5-comments 38.2.0-alpha.1 → 39.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/build/comments.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +12 -12
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sq.po +2 -2
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -5
- package/src/annotations/annotation.d.ts +10 -6
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +7 -3
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.d.ts +10 -6
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.d.ts +9 -5
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.d.ts +8 -4
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.d.ts +10 -6
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.d.ts +10 -6
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.d.ts +9 -5
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.d.ts +6 -2
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.d.ts +6 -2
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.d.ts +6 -2
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.d.ts +6 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.d.ts +9 -5
- package/src/annotations/widesidebar.js +2 -2
- package/src/augmentation.d.ts +5 -1
- package/src/augmentation.js +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +5 -1
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsarchive.d.ts +8 -4
- package/src/comments/commentsarchive.js +2 -2
- package/src/comments/commentsarchiveui.d.ts +9 -5
- package/src/comments/commentsarchiveui.js +2 -2
- package/src/comments/commentsediting.d.ts +10 -6
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.d.ts +30 -13
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.d.ts +9 -5
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +5 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.d.ts +5 -1
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.d.ts +9 -5
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +7 -3
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +7 -3
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.d.ts +6 -6
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +12 -8
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.d.ts +8 -4
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.d.ts +6 -2
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.d.ts +6 -2
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.d.ts +8 -4
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentsarchiveview.d.ts +7 -3
- package/src/comments/ui/view/commentsarchiveview.js +2 -2
- package/src/comments/ui/view/commentslistview.d.ts +9 -5
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadheaderview.d.ts +7 -3
- package/src/comments/ui/view/commentthreadheaderview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.d.ts +9 -5
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.d.ts +11 -7
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +12 -8
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +14 -10
- package/src/comments.js +2 -2
- package/src/commentsonly.d.ts +6 -2
- package/src/commentsonly.js +2 -2
- package/src/config.d.ts +11 -7
- package/src/config.js +1 -1
- package/src/index.d.ts +24 -21
- package/src/index.js +2 -2
- package/src/utils/common-translations.d.ts +5 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.d.ts +2 -1
- package/src/utils/createmutationobserver.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bf1=['listenTo','length','clear','Esc','focus','mainView','bindTemplate','_mutationObserver','keystrokes','detach','focusTracker','content','render','height','_updateHeight','element','targetRect','set','isDirty','destroy','fire','createCollection','clientHeight','ck-annotation-wrapper--active','ck-annotation-wrapper','isActive','ck-rounded-corners'];(function(_0x219a45,_0x5bf183){const _0x21143b=function(_0x1a7940){while(--_0x1a7940){_0x219a45['push'](_0x219a45['shift']());}};_0x21143b(++_0x5bf183);}(_0x5bf1,0xf1));const _0x2114=function(_0x219a45,_0x5bf183){_0x219a45=_0x219a45-0x0;let _0x21143b=_0x5bf1[_0x219a45];return _0x21143b;};import{View as _0x2414d1}from'ckeditor5/src/ui';import{FocusTracker as _0x1a4edf,KeystrokeHandler as _0x20912c,uid as _0x34b6cc}from'ckeditor5/src/utils';import _0xf2b911 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x2414d1{constructor(_0x43b6e3,_0x1d5450){super(_0x43b6e3),this['id']=_0x34b6cc(),this[_0x2114('0xc')]=new _0x1a4edf(),this[_0x2114('0xa')]=new _0x20912c(),this[_0x2114('0xa')]['set'](_0x2114('0x5'),(_0x3e52c8,_0x44a500)=>this[_0x2114('0x16')](_0x2114('0x5'),_0x44a500)),this['set'](_0x2114('0x12'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x2114('0xf'),0x0),this[_0x2114('0x13')](_0x2114('0x0'),!0x1),this[_0x2114('0x13')](_0x2114('0x14'),!0x1),this[_0x2114('0x13')](_0x2114('0x3'),0x0),this['set']('type',''),this['_mutationObserver']=_0xf2b911(()=>this[_0x2114('0x10')]()),this['content']=this[_0x2114('0x17')](),this[_0x2114('0xd')]['add'](_0x1d5450),this[_0x2114('0x7')]=_0x1d5450;const _0x33f60e=this[_0x2114('0x8')];this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x2114('0x1a'),_0x2114('0x1'),_0x33f60e['if']('isActive',_0x2114('0x19'))],'tabindex':-0x1},'children':this[_0x2114('0xd')]});}[_0x2114('0xe')](){super[_0x2114('0xe')](),this[_0x2114('0xc')]['add'](this[_0x2114('0x11')]),this[_0x2114('0xa')][_0x2114('0x2')](this[_0x2114('0x11')]),this[_0x2114('0x9')]['attach'](this[_0x2114('0x11')]);}[_0x2114('0x15')](){this[_0x2114('0xd')][_0x2114('0x4')](),this[_0x2114('0xa')]['destroy'](),this[_0x2114('0xc')][_0x2114('0x15')](),this[_0x2114('0x9')][_0x2114('0xb')](),super[_0x2114('0x15')]();}[_0x2114('0x6')](){this['element'][_0x2114('0x6')]();}[_0x2114('0x10')](){const _0x4c6cb8=this['element'][_0x2114('0x18')];_0x4c6cb8&&(this['height']=_0x4c6cb8);}}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/annotations/view/sidebaritemview
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui
|
|
6
|
-
import { type Locale } from 'ckeditor5/src/utils
|
|
9
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
7
11
|
/**
|
|
8
12
|
* A wrapper view that wraps given {@link module:ui/view~View} to display it as a {@link module:comments/annotations/sidebar~Sidebar} item.
|
|
9
13
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cd9=['set','ck-sidebar-item','createCollection','attach','render','element','top','height','destroy','ck-sidebar-item--no-animation','bottom','content','clientHeight','setTemplate','isAnimationDisabled','_mutationObserver'];(function(_0x3ac335,_0x4cd9e0){const _0x1bd2de=function(_0x4832d4){while(--_0x4832d4){_0x3ac335['push'](_0x3ac335['shift']());}};_0x1bd2de(++_0x4cd9e0);}(_0x4cd9,0x15b));const _0x1bd2=function(_0x3ac335,_0x4cd9e0){_0x3ac335=_0x3ac335-0x0;let _0x1bd2de=_0x4cd9[_0x3ac335];return _0x1bd2de;};import{View as _0x1104c4}from'ckeditor5/src/ui';import{toUnit as _0x2afbe6}from'ckeditor5/src/utils';import _0x5b5912 from'../../utils/createmutationobserver';const At=_0x2afbe6('px');export default class C extends _0x1104c4{constructor(_0x26f921){super(_0x26f921),this[_0x1bd2('0x5')](_0x1bd2('0xb'),0x0),this[_0x1bd2('0x5')]('height',0x0),this['bind'](_0x1bd2('0xf'))['to'](this,_0x1bd2('0xb'),this,'height',(_0x5a2de1,_0x49780c)=>_0x5a2de1+_0x49780c),this[_0x1bd2('0x5')](_0x1bd2('0x3'),!0x1),this['_mutationObserver']=_0x5b5912(()=>this['updateHeight']()),this['_targetTop']=null,this[_0x1bd2('0x0')]=this[_0x1bd2('0x7')]();const _0x1d6592=this['bindTemplate'];this[_0x1bd2('0x2')]({'tag':'div','attributes':{'class':[_0x1bd2('0x6'),_0x1d6592['to'](_0x1bd2('0x3'),_0x44f2c2=>_0x44f2c2?_0x1bd2('0xe'):'')],'style':{'top':_0x1d6592['to'](_0x1bd2('0xb'),_0x421acf=>At(_0x421acf))}},'children':this[_0x1bd2('0x0')]});}[_0x1bd2('0x9')](){super[_0x1bd2('0x9')](),this[_0x1bd2('0x4')][_0x1bd2('0x8')](this[_0x1bd2('0xa')]);}['updateHeight'](){const _0x550b54=this[_0x1bd2('0xa')][_0x1bd2('0x1')];_0x550b54&&(this[_0x1bd2('0xc')]=_0x550b54);}['destroy'](){this[_0x1bd2('0x0')]['clear'](),this[_0x1bd2('0x4')]['detach'](),super[_0x1bd2('0xd')]();}}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/annotations/view/sidebarview
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui
|
|
6
|
-
import { type Locale } from 'ckeditor5/src/utils
|
|
9
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
10
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
7
11
|
import '../../../theme/sidebar.css';
|
|
8
12
|
/**
|
|
9
13
|
* The sidebar view class that displays the collection of sidebar item views.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13f3=['list','set','number','div','setTemplate','ck-reset','minHeight','ck-sidebar','class'];(function(_0x22b394,_0x13f3a6){const _0x49f720=function(_0x3fcff5){while(--_0x3fcff5){_0x22b394['push'](_0x22b394['shift']());}};_0x49f720(++_0x13f3a6);}(_0x13f3,0xf5));const _0x49f7=function(_0x22b394,_0x13f3a6){_0x22b394=_0x22b394-0x0;let _0x49f720=_0x13f3[_0x22b394];return _0x49f720;};import{View as _0x616409}from'ckeditor5/src/ui';import{toUnit as _0x3eadf0}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x3eadf0('px');export default class T extends _0x616409{constructor(_0x140338){super(_0x140338);const _0x2c966b=this['bindTemplate'];this[_0x49f7('0x8')](_0x49f7('0x4'),0x0),this['set']('class',''),this['list']=this['createCollection'](),this[_0x49f7('0x2')]({'tag':_0x49f7('0x1'),'attributes':{'class':['ck',_0x49f7('0x5'),_0x49f7('0x3'),_0x2c966b['to'](_0x49f7('0x6'))],'style':{'minHeight':_0x2c966b['to']('minHeight',_0x54a5cb=>_0x49f7('0x0')==typeof _0x54a5cb?At(_0x54a5cb+0xa):null)}},'children':this[_0x49f7('0x7')]});}}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/annotations/widesidebar
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core
|
|
6
|
-
import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis
|
|
7
|
-
import Sidebar from './sidebar
|
|
8
|
-
import type Annotation from './annotation
|
|
9
|
-
import type { default as AnnotationCollection } from './annotationcollection
|
|
9
|
+
import { ContextPlugin, Context, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import AnnotationsUIs, { type AnnotationsUI } from './annotationsuis';
|
|
11
|
+
import Sidebar from './sidebar';
|
|
12
|
+
import type Annotation from './annotation';
|
|
13
|
+
import type { default as AnnotationCollection } from './annotationcollection';
|
|
10
14
|
/**
|
|
11
15
|
* The wide sidebar UI for displaying annotations.
|
|
12
16
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10b0=['remove','from','stop','detach','ready','WideSidebar','add','annotations','activeAnnotation','addEventListener','EditorAnnotations','get','set','refreshPositioning','addAnnotation','attach','stopListening','has','setActiveAnnotation','pluginName','destroy','_annotations','uiUpdate','set:container','updateTargetRect','register','cancel','ck-sidebar--wide','isAttached','refresh','_refreshPositioningDebounced','wideSidebar','change:container','listenTo','_destroyEditorAnnotationsIntegration','plugins','context','editors','container','widesidebar-attach-already-attached','resize','_integrateWithEditorAnnotations','rearrange','_activeAnnotation','_editorAnnotations','high','focus','blur'];(function(_0x56c9c5,_0x10b0f0){const _0x918895=function(_0x128ddc){while(--_0x128ddc){_0x56c9c5['push'](_0x56c9c5['shift']());}};_0x918895(++_0x10b0f0);}(_0x10b0,0x1d0));const _0x9188=function(_0x56c9c5,_0x10b0f0){_0x56c9c5=_0x56c9c5-0x0;let _0x918895=_0x10b0[_0x56c9c5];return _0x918895;};import{ContextPlugin as _0x1bb172,Context as _0x369c18}from'ckeditor5/src/core';import _0x364217 from'./annotationsuis';import _0x43267f from'./sidebar';import{CKEditorError as _0x19fbbc,Collection as _0x3834c7}from'ckeditor5/src/utils';import{debounce as _0x379b69}from'lodash-es';import _0x160b49 from'./editorannotations';export default class i extends _0x1bb172{static get['requires'](){return[_0x43267f,_0x364217];}static get[_0x9188('0x23')](){return _0x9188('0x15');}constructor(_0x212daf){super(_0x212daf),this[_0x9188('0x2c')]=!0x1,this[_0x9188('0x1c')](_0x9188('0x18'),null),this[_0x9188('0x17')]=null,this[_0x9188('0xc')]=new _0x3834c7(),this[_0x9188('0x2e')]=_0x379b69(()=>{this[_0x9188('0x17')][_0x9188('0x1d')]();},0xfa,{'leading':!0x1});}['init'](){const _0x12210c=this[_0x9188('0x4')][_0x9188('0x3')][_0x9188('0x1b')](_0x364217),_0x501735=this[_0x9188('0x4')]['plugins'][_0x9188('0x1b')](_0x43267f);_0x12210c[_0x9188('0x29')](_0x9188('0x2f'),this),_0x501735[_0x9188('0x6')]&&_0x12210c['switchTo'](_0x9188('0x2f'));}['setActiveAnnotation'](_0x3571b6){if(_0x3571b6===this[_0x9188('0x18')])return;const _0x5d82eb=this[_0x9188('0x4')]['plugins'][_0x9188('0x1b')](_0x43267f);_0x5d82eb[_0x9188('0xb')]=_0x3571b6;const _0x48c0eb=this[_0x9188('0x18')];this['activeAnnotation']=_0x3571b6,_0x5d82eb[_0x9188('0x2d')]({'blurredAnnotation':_0x48c0eb,'activatedAnnotation':this[_0x9188('0x18')]});}[_0x9188('0x1f')](_0x21f3da){this['annotations']=_0x21f3da;const _0x124ff6=this['context'][_0x9188('0x3')][_0x9188('0x1b')](_0x43267f);if(_0x124ff6[_0x9188('0x25')]=_0x21f3da,this[_0x9188('0x2c')])throw new _0x19fbbc(_0x9188('0x7'),this);this[_0x9188('0x2c')]=!0x0,this[_0x9188('0x1')](_0x124ff6,_0x9188('0x27'),()=>{this[_0x9188('0x13')](),this[_0x9188('0x1')](_0x124ff6,_0x9188('0x0'),_0x2781ab=>{_0x2781ab['off'](),this[_0x9188('0x1f')](_0x21f3da);});}),_0x124ff6['_attachToContainer']({'viewClass':_0x9188('0x2b')});const _0x1a60ce=_0x62558a=>{_0x62558a[_0x9188('0x28')](),_0x124ff6[_0x9188('0x1e')](_0x62558a);};for(const _0x3461d5 of _0x21f3da)_0x1a60ce(_0x3461d5);this[_0x9188('0x1')](_0x21f3da,_0x9188('0x16'),(_0x56d488,_0x11c127)=>{_0x1a60ce(_0x11c127);}),this[_0x9188('0x1')](_0x21f3da,_0x9188('0x10'),(_0x32cb58,_0x36c53d,_0x5afd6a)=>{_0x124ff6[_0x9188('0xa')]({'removedAnnotation':_0x36c53d,'previousAnnotation':_0x21f3da['get'](_0x5afd6a-0x1),'nextAnnotation':_0x21f3da['get'](_0x5afd6a+0x1)}),_0x36c53d===this[_0x9188('0x18')]&&this[_0x9188('0x22')](null);},{'priority':_0x9188('0xd')}),this[_0x9188('0x1')](_0x21f3da,_0x9188('0xe'),(_0x11bc9f,_0x36ab4c)=>{this['setActiveAnnotation'](_0x36ab4c);}),this[_0x9188('0x1')](_0x21f3da,_0x9188('0xf'),()=>{this[_0x9188('0x22')](null);});const _0x5ed7df=this[_0x9188('0x4')]instanceof _0x369c18?this[_0x9188('0x4')][_0x9188('0x5')]:new _0x3834c7([this[_0x9188('0x4')]]);for(const _0x11a80a of _0x5ed7df)this[_0x9188('0x9')](_0x11a80a);this[_0x9188('0x1')](_0x5ed7df,_0x9188('0x16'),(_0xa51fe4,_0x5e0005)=>{this['listenTo'](_0x5e0005,_0x9188('0x14'),()=>{this[_0x9188('0x9')](_0x5e0005);});}),this['listenTo'](_0x5ed7df,'remove',(_0x1c672d,_0x440783)=>{_0x440783[_0x9188('0x3')][_0x9188('0x21')](_0x9188('0x1a'))&&this[_0x9188('0x2')](_0x440783['plugins']['get'](_0x9188('0x1a')));}),window[_0x9188('0x19')](_0x9188('0x8'),this['_refreshPositioningDebounced']),this['annotations']['refreshPositioning']();}[_0x9188('0x13')](){if(!this[_0x9188('0x2c')])throw new _0x19fbbc('widesidebar-detach-not-attached',this);this[_0x9188('0x22')](null);const _0x38ca72=this[_0x9188('0x4')]['plugins'][_0x9188('0x1b')](_0x43267f);_0x38ca72['_detachFromContainer'](this[_0x9188('0x17')]),this[_0x9188('0x20')](_0x38ca72),this[_0x9188('0x20')](this[_0x9188('0x17')]),this[_0x9188('0x4')]instanceof _0x369c18&&this[_0x9188('0x20')](this['context'][_0x9188('0x5')]);for(const _0x340786 of Array[_0x9188('0x11')](this[_0x9188('0xc')]))this[_0x9188('0x2')](_0x340786);window['removeEventListener'](_0x9188('0x8'),this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced'][_0x9188('0x2a')](),this['activeAnnotation']=null,this[_0x9188('0x2c')]=!0x1,this[_0x9188('0x17')]=null;}[_0x9188('0x24')](){this[_0x9188('0x2c')]&&this[_0x9188('0x13')]();}['_integrateWithEditorAnnotations'](_0x4aa962){const _0x463b64=_0x4aa962[_0x9188('0x3')][_0x9188('0x1b')](_0x160b49);if(!_0x463b64)return;const _0x3b0202=()=>{const _0x4199d0=_0x463b64['getOrderedSelectedAnnotations']({'annotations':this[_0x9188('0x17')],'activeAnnotation':this[_0x9188('0x18')]});this['setActiveAnnotation'](_0x4199d0[0x0]||null);};this[_0x9188('0x1')](_0x463b64,'refresh',_0x3b0202),this['listenTo'](_0x463b64,_0x9188('0xf'),(_0x529bd7,{isAnnotationTracked:_0x3fff23})=>{this[_0x9188('0x18')]&&_0x3fff23(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this[_0x9188('0x1')](_0x463b64,_0x9188('0x26'),()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],_0x9188('0xf'),_0x330a16=>{_0x463b64['hasDomSelection']()&&(_0x3b0202(),_0x330a16[_0x9188('0x12')]());},{'priority':_0x9188('0xd')}),this[_0x9188('0xc')][_0x9188('0x16')](_0x463b64);}[_0x9188('0x2')](_0x810b2c){this[_0x9188('0x20')](_0x810b2c),this[_0x9188('0xc')][_0x9188('0x10')](_0x810b2c);}}
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import type { CommentsConfig, SidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, CommentsRepository, CommentsUI } from './index';
|
|
2
6
|
declare module '@ckeditor/ckeditor5-core' {
|
|
3
7
|
interface EditorConfig {
|
|
4
8
|
/**
|
package/src/augmentation.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/addcommentthreadcommand
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { Command } from 'ckeditor5/src/core
|
|
9
|
+
import { Command } from 'ckeditor5/src/core';
|
|
6
10
|
/**
|
|
7
11
|
* Adds a new CommentMarker what automatically adds corresponding CommentThread to the CommentsEditing#threads collection.
|
|
8
12
|
* Note this command adds only a CommentThread draft, to make is public marker has to be changed to be managed using operation.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9e75=['isEnabled','substr','comment:','schema','selection','_hasContent','editor','_trimToContent','addMarker','_itemIsContent','getLastMatchingPosition','push','getRanges','execute','model','element','backward','$textProxy','getItems'];(function(_0x1ce009,_0x9e75ee){const _0x24720f=function(_0x34b0ef){while(--_0x34b0ef){_0x1ce009['push'](_0x1ce009['shift']());}};_0x24720f(++_0x9e75ee);}(_0x9e75,0x6b));const _0x2472=function(_0x1ce009,_0x9e75ee){_0x1ce009=_0x1ce009-0x0;let _0x24720f=_0x9e75[_0x1ce009];return _0x24720f;};import{Command as _0x214934}from'ckeditor5/src/core';import{uid as _0x3b6d38}from'ckeditor5/src/utils';export default class q extends _0x214934{['refresh'](){const _0x4ac79e=this[_0x2472('0xd')][_0x2472('0x2')]['document'][_0x2472('0xb')];for(const _0x2a03e4 of _0x4ac79e[_0x2472('0x0')]())if(this[_0x2472('0xc')](_0x2a03e4))return void(this['isEnabled']=!0x0);this[_0x2472('0x7')]=!0x1;}[_0x2472('0x1')]({threadId:_0x5d2953=_0x3b6d38()}={}){const _0x42f814=this['editor']['model'],_0x17942d=[];for(const _0x550203 of _0x42f814['document']['selection'][_0x2472('0x0')]())this[_0x2472('0xc')](_0x550203)&&_0x17942d[_0x2472('0x12')](this[_0x2472('0xe')](_0x550203));_0x42f814['change'](_0x1b5227=>{for(const _0x4b2987 of _0x17942d){const _0x4d4f9e=_0x3b6d38()[_0x2472('0x8')](0x1,0x5),_0x2c66d6=_0x2472('0x9')+_0x5d2953+':'+_0x4d4f9e;_0x1b5227[_0x2472('0xf')](_0x2c66d6,{'range':_0x4b2987,'usingOperation':!0x1,'affectsData':!0x1});}});}[_0x2472('0xc')](_0x397e8e){for(const _0x257bbd of _0x397e8e[_0x2472('0x6')]())if(this[_0x2472('0x10')](_0x257bbd))return!0x0;return!0x1;}['_itemIsContent'](_0x93dcd8){return _0x93dcd8['is'](_0x2472('0x5'))||this[_0x2472('0xd')]['model'][_0x2472('0xa')]['isObject'](_0x93dcd8)&&!_0x93dcd8['is'](_0x2472('0x3'),'tableCell');}[_0x2472('0xe')](_0x5b6c36){const _0x216fad=_0x59eb65=>!this[_0x2472('0x10')](_0x59eb65['item']),_0x53b04f=_0x5b6c36['start'][_0x2472('0x11')](_0x216fad),_0x5b35ed=_0x5b6c36['end']['getLastMatchingPosition'](_0x216fad,{'direction':_0x2472('0x4')});return this['editor'][_0x2472('0x2')]['createRange'](_0x53b04f,_0x5b35ed);}}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/commentsarchive
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core
|
|
6
|
-
import { Collection } from 'ckeditor5/src/utils
|
|
7
|
-
import CommentsRepository, { type CommentThread } from './commentsrepository
|
|
8
|
-
import Annotations from '../annotations/annotations
|
|
9
|
+
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import { Collection } from 'ckeditor5/src/utils';
|
|
11
|
+
import CommentsRepository, { type CommentThread } from './commentsrepository';
|
|
12
|
+
import Annotations from '../annotations/annotations';
|
|
9
13
|
/**
|
|
10
14
|
* This plugin handles all operations on resolved threads needed for the comments archive.
|
|
11
15
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36f5=['highest','resolveCommentThread','activate','focus','init','get','resolvedAt','plugins','listenTo','has','collection','requires','isActive','getCommentThread','_calculatePosition','addCommentThread','resolvedThreads','context','length','remove','CommentsArchive','add','removeCommentThread','pluginName'];(function(_0x250c5b,_0x36f5cb){const _0x500eb3=function(_0x419701){while(--_0x419701){_0x250c5b['push'](_0x250c5b['shift']());}};_0x500eb3(++_0x36f5cb);}(_0x36f5,0xff));const _0x500e=function(_0x250c5b,_0x36f5cb){_0x250c5b=_0x250c5b-0x0;let _0x500eb3=_0x36f5[_0x250c5b];return _0x500eb3;};import{ContextPlugin as _0x4deb87}from'ckeditor5/src/core';import{Collection as _0x436ccc}from'ckeditor5/src/utils';import _0x3d7aff from'./commentsrepository';import _0x14ad91 from'../annotations/annotations';export default class p extends _0x4deb87{static get[_0x500e('0x8')](){return _0x500e('0x5');}static get[_0x500e('0x14')](){return[_0x3d7aff,_0x14ad91];}constructor(_0x5cee9b){super(_0x5cee9b),this[_0x500e('0x1')]=new _0x436ccc();}[_0x500e('0xd')](){const _0x2f176d=this[_0x500e('0x2')],_0x5e6692=_0x2f176d['plugins'][_0x500e('0xe')](_0x3d7aff),_0x1499bd=_0x2f176d[_0x500e('0x10')]['get'](_0x14ad91);this[_0x500e('0x11')](_0x5e6692,_0x500e('0x0'),(_0x5e4aa7,{threadId:_0x4b8840,resolvedAt:_0x560ebf,deletedAt:_0x144c6a})=>{if(_0x560ebf&&!_0x144c6a){const _0x881537=_0x5e6692[_0x500e('0x16')](_0x4b8840);this[_0x500e('0x1')][_0x500e('0x6')](_0x881537,this[_0x500e('0x17')](_0x560ebf));}}),this[_0x500e('0x11')](_0x5e6692,_0x500e('0xa'),(_0x3d4a2a,{threadId:_0x196edf,resolvedAt:_0x5eb758})=>{const _0x5c8e30=_0x5e6692[_0x500e('0x16')](_0x196edf);this[_0x500e('0x1')][_0x500e('0x6')](_0x5c8e30,this[_0x500e('0x17')](_0x5eb758));},{'priority':_0x500e('0x9')}),this['listenTo'](_0x5e6692,'reopenCommentThread',(_0x3c7c97,{threadId:_0x54bd4c})=>{const _0x3f4447=_0x5e6692[_0x500e('0x16')](_0x54bd4c);this[_0x500e('0x1')][_0x500e('0x12')](_0x3f4447)&&this['resolvedThreads'][_0x500e('0x4')](_0x3f4447);},{'priority':_0x500e('0x9')}),this[_0x500e('0x11')](_0x5e6692,_0x500e('0x7'),(_0x3b923c,{threadId:_0x317c39})=>{const _0x12f4f3=_0x5e6692[_0x500e('0x16')](_0x317c39);this[_0x500e('0x1')][_0x500e('0x12')](_0x12f4f3)&&this[_0x500e('0x1')][_0x500e('0x4')](_0x12f4f3);},{'priority':_0x500e('0x9')}),this[_0x500e('0x11')](_0x1499bd[_0x500e('0x13')],_0x500e('0xc'),(_0x5ba6b4,_0x4313d8)=>{_0x4313d8[_0x500e('0x15')]=!0x0,_0x1499bd[_0x500e('0xb')](_0x4313d8);});}[_0x500e('0x17')](_0x459034){const _0xd32a52=[...this[_0x500e('0x1')]]['findIndex'](_0x14f9a2=>_0x14f9a2[_0x500e('0xf')]<_0x459034);return _0xd32a52>-0x1?_0xd32a52:this[_0x500e('0x1')][_0x500e('0x3')];}}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/commentsarchiveui
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
9
|
import '../../theme/commentsarchive.css';
|
|
6
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core
|
|
7
|
-
import { ViewCollection } from 'ckeditor5/src/ui
|
|
8
|
-
import CommentsArchiveView from './ui/view/commentsarchiveview
|
|
9
|
-
import CommentsArchive from './commentsarchive
|
|
10
|
-
import type AnnotationView from '../annotations/view/annotationview
|
|
10
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
11
|
+
import { ViewCollection } from 'ckeditor5/src/ui';
|
|
12
|
+
import CommentsArchiveView from './ui/view/commentsarchiveview';
|
|
13
|
+
import CommentsArchive from './commentsarchive';
|
|
14
|
+
import type AnnotationView from '../annotations/view/annotationview';
|
|
11
15
|
/**
|
|
12
16
|
* Creates comments archive {@link module:ui/dropdown/dropdownview~DropdownView ui dropdown} and binds with
|
|
13
17
|
* resolved comment thread annotation views.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30db=['_threadToController','ck-body','push','collection','_pendingThreads','length','mainView','collaboration.channelId','findIndex','Annotations','_calculatePosition','get','_createArchiveUIDropdown','find','annotationViews','classList','plugins','isVisible','listenTo','CommentsRepository','focusableElements','focusTracker','buttonView','contains','config','children','extendTemplate','channelId','_handleAnnotationFocusableElements','innerView','add','remove','position','locale','panelView','_visibleAnnotations','set','init','editor','filter','resolvedThreads','resolvedAt','getByInnerView','CommentsArchiveUI','change:isOpen','view','commentsArchive','commentsArchiveView'];(function(_0x1639ec,_0x30db15){const _0x1ce3db=function(_0x2790ef){while(--_0x2790ef){_0x1639ec['push'](_0x1639ec['shift']());}};_0x1ce3db(++_0x30db15);}(_0x30db,0xc1));const _0x1ce3=function(_0x1639ec,_0x30db15){_0x1639ec=_0x1639ec-0x0;let _0x1ce3db=_0x30db[_0x1639ec];return _0x1ce3db;};import'../../theme/commentsarchive.css';import{Plugin as _0x41b119}from'ckeditor5/src/core';import{createDropdown as _0x539c44,ViewCollection as _0x4a723a}from'ckeditor5/src/ui';import _0x560133 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x445600}from'../utils/common-translations';import _0x5f03d6 from'./ui/view/commentsarchiveview';import _0x2089d8 from'./commentsarchive';export default class a extends _0x41b119{static get['pluginName'](){return _0x1ce3('0x2a');}static get['requires'](){return[_0x2089d8];}constructor(_0x10b63b){super(_0x10b63b),this['annotationViews']=new _0x4a723a(),this[_0x1ce3('0x3')]=[];}[_0x1ce3('0x24')](){this[_0x1ce3('0x25')]['ui']['componentFactory']['add'](_0x1ce3('0x2d'),()=>this[_0x1ce3('0xb')]());const _0x2bf972=this[_0x1ce3('0x25')]['plugins'][_0x1ce3('0xa')](_0x2089d8),_0x3217ff=this[_0x1ce3('0x25')][_0x1ce3('0xf')][_0x1ce3('0xa')]('Annotations'),_0x298437=this[_0x1ce3('0x25')][_0x1ce3('0xf')]['get'](_0x1ce3('0x12'));this[_0x1ce3('0x11')](_0x2bf972[_0x1ce3('0x27')],_0x1ce3('0x1d'),(_0x5a7c18,_0x930dd2)=>{const _0x20fa02=this[_0x1ce3('0x25')][_0x1ce3('0x17')][_0x1ce3('0xa')](_0x1ce3('0x6'));if(!_0x20fa02||_0x930dd2[_0x1ce3('0x1a')]===_0x20fa02){const _0x5943a8=this[_0x1ce3('0x9')](_0x930dd2[_0x1ce3('0x28')]),_0x1be2e4=_0x298437[_0x1ce3('0x2f')][_0x1ce3('0xa')](_0x930dd2);if(!_0x1be2e4)return void this[_0x1ce3('0x3')][_0x1ce3('0x1')]({'thread':_0x930dd2,'position':_0x5943a8});const _0x2efc49=_0x3217ff[_0x1ce3('0x29')](_0x1be2e4['view']);_0x2efc49[_0x1ce3('0x10')]&&_0x3217ff[_0x1ce3('0x22')][_0x1ce3('0x1e')](_0x2efc49),this['annotationViews']['add'](_0x2efc49[_0x1ce3('0x2c')],_0x5943a8);}}),this[_0x1ce3('0x11')](_0x3217ff[_0x1ce3('0x2')],_0x1ce3('0x1d'),(_0x28e724,_0x4db21c)=>{const _0x2c4ce3=this['_pendingThreads'][_0x1ce3('0xc')](({thread:_0x5eb3e7})=>{const _0x2bfe21=_0x298437['_threadToController'][_0x1ce3('0xa')](_0x5eb3e7);return _0x2bfe21&&_0x4db21c[_0x1ce3('0x1c')]===_0x2bfe21[_0x1ce3('0x2c')];});_0x2c4ce3&&(this[_0x1ce3('0xd')][_0x1ce3('0x1d')](_0x4db21c['view'],_0x2c4ce3[_0x1ce3('0x1f')]),this[_0x1ce3('0x3')]['splice'](this[_0x1ce3('0x3')]['indexOf'](_0x2c4ce3),0x1));}),this[_0x1ce3('0x11')](_0x2bf972[_0x1ce3('0x27')],_0x1ce3('0x1e'),(_0x4a419b,_0x31aa3f)=>{const _0x443e65=this[_0x1ce3('0x25')][_0x1ce3('0x17')][_0x1ce3('0xa')](_0x1ce3('0x6'));if(!_0x443e65||_0x31aa3f['channelId']===_0x443e65){const _0x5a26f5=_0x298437[_0x1ce3('0x2f')][_0x1ce3('0xa')](_0x31aa3f),_0x40c45e=_0x3217ff['getByInnerView'](_0x5a26f5[_0x1ce3('0x2c')]);this['annotationViews'][_0x1ce3('0x1e')](_0x40c45e[_0x1ce3('0x2c')]),this['stopListening'](_0x40c45e['focusableElements']);}});}[_0x1ce3('0x1b')](_0x454349,_0x41e0f3){for(const _0x1a0998 of _0x41e0f3[_0x1ce3('0x13')])_0x1a0998[_0x1ce3('0xe')][_0x1ce3('0x16')](_0x1ce3('0x0'))&&_0x454349[_0x1ce3('0x14')][_0x1ce3('0x1d')](_0x1a0998);this[_0x1ce3('0x11')](_0x41e0f3[_0x1ce3('0x13')],'add',(_0x59e4c6,_0x1bafbe)=>{_0x1bafbe[_0x1ce3('0xe')]['contains'](_0x1ce3('0x0'))&&_0x454349[_0x1ce3('0x14')][_0x1ce3('0x1d')](_0x1bafbe);}),this[_0x1ce3('0x11')](_0x41e0f3['focusableElements'],_0x1ce3('0x1e'),(_0x470138,_0xee05b2)=>{_0xee05b2[_0x1ce3('0xe')][_0x1ce3('0x16')](_0x1ce3('0x0'))&&_0x454349[_0x1ce3('0x14')][_0x1ce3('0x1e')](_0xee05b2);});}[_0x1ce3('0x9')](_0x12f446){const _0x1c3264=this[_0x1ce3('0x25')][_0x1ce3('0x17')][_0x1ce3('0xa')](_0x1ce3('0x6')),_0x3a7ae2=[...this[_0x1ce3('0x25')][_0x1ce3('0xf')][_0x1ce3('0xa')](_0x2089d8)['resolvedThreads']][_0x1ce3('0x26')](_0x1639c5=>_0x1639c5[_0x1ce3('0x1a')]!==_0x1c3264)[_0x1ce3('0x7')](_0x33f0d2=>_0x33f0d2[_0x1ce3('0x28')]<_0x12f446);return _0x3a7ae2>-0x1?_0x3a7ae2:this['annotationViews'][_0x1ce3('0x4')];}[_0x1ce3('0xb')](){const _0xbc93e9=this[_0x1ce3('0x25')],_0xd69227=this[_0x1ce3('0x25')][_0x1ce3('0xf')]['get'](_0x1ce3('0x8')),_0x206a0f=_0x539c44(_0xbc93e9[_0x1ce3('0x20')]);_0x206a0f[_0x1ce3('0x15')][_0x1ce3('0x23')]({'icon':_0x560133,'label':_0x445600(_0xbc93e9[_0x1ce3('0x20')],'COMMENTS_ARCHIVE'),'tooltip':!0x0}),_0x206a0f[_0x1ce3('0x21')][_0x1ce3('0x19')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x206a0f['on'](_0x1ce3('0x2b'),(_0x3041a2,_0x19aada,_0x56afc3)=>{this[_0x1ce3('0x2e')]||(this['commentsArchiveView']=new _0x5f03d6(_0xbc93e9['locale'],this[_0x1ce3('0xd')])),_0x56afc3?_0x206a0f[_0x1ce3('0x21')][_0x1ce3('0x18')][_0x1ce3('0x1d')](this[_0x1ce3('0x2e')]):_0x206a0f[_0x1ce3('0x21')]['children']['remove'](this['commentsArchiveView']);});for(const _0x385db7 of this[_0x1ce3('0xd')]){const _0x3c3203=_0xd69227['getByInnerView'](_0x385db7[_0x1ce3('0x5')]);this[_0x1ce3('0x1b')](_0x206a0f,_0x3c3203);}return _0x206a0f[_0x1ce3('0x11')](this['annotationViews'],_0x1ce3('0x1d'),(_0x469701,_0x201fc3)=>{const _0x3155bf=_0xd69227['getByInnerView'](_0x201fc3[_0x1ce3('0x5')]);this['_handleAnnotationFocusableElements'](_0x206a0f,_0x3155bf);}),_0x206a0f['listenTo'](this['annotationViews'],_0x1ce3('0x1e'),(_0x71c110,_0x314f97)=>{const _0xc9734f=_0xd69227[_0x1ce3('0x29')](_0x314f97['mainView']);for(const _0x3ca9dd of _0xc9734f['focusableElements'])_0x3ca9dd['classList']['contains'](_0x1ce3('0x0'))&&_0x206a0f[_0x1ce3('0x14')][_0x1ce3('0x1e')](_0x3ca9dd);}),_0x206a0f;}}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments/commentsediting
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core
|
|
5
|
-
import type { Marker } from 'ckeditor5/src/engine
|
|
6
|
-
import CommentsRepository from './commentsrepository
|
|
7
|
-
import EditorAnnotations from '../annotations/editorannotations
|
|
8
|
-
import CommentsRestrictedEditingMode from './integrations/commentsrestrictededitingmode
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
import type { Marker } from 'ckeditor5/src/engine';
|
|
10
|
+
import CommentsRepository from './commentsrepository';
|
|
11
|
+
import EditorAnnotations from '../annotations/editorannotations';
|
|
12
|
+
import CommentsRestrictedEditingMode from './integrations/commentsrestrictededitingmode';
|
|
9
13
|
import '../../theme/commentmarker.css';
|
|
10
|
-
import CommentsImportWord from './integrations/importword
|
|
14
|
+
import CommentsImportWord from './integrations/importword';
|
|
11
15
|
/**
|
|
12
16
|
* Plugin that keeps in sync comments in {@link module:comments/comments/commentsrepository~CommentsRepository} with
|
|
13
17
|
* {@link module:engine/model/markercollection~Marker comment markers}.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xe2c5=['data','hasMarkerForId','state','reopenCommentThread','commands','getCommentThreads','_detachCommentThread','scrollToThreadMarker','setContext','_attachMarkerToThread','collaboration.channelId','isEqual','for','ready','getAllMarkersForId','filter','differ','isResolved','hasDomSelection','addComment','length','upcast','consumable','requires','openNewCommentThread','pluginName','schema','model','newRange','push','set','root','_handleMarkerAddAndRemove','hasContent','resolve','plugins','init','_reconvertMarkers','_attachedThreads','markerName','config','CommentsEditing','resolveCommentThread','delete','refreshVisibility','_getTargetForId','change:activeMarker','switchReadOnly','conversion','low','_threads','render','destroy','attachTo','consume','updateMarker','markerToData','_getTextContext','getByInnerView','getRange','markers','change','has','affectsData','markerToHighlight','text','_handleThreadMarker','editor','view','comment','getChangedMarkers','isCollapsed','enqueueChange','destroyed','once','context','reconvertMarker','_initializeMarkerConverters','isThreadsLoadingPaused','get','removeCommentThread','listenTo','registerAnnotation','$textProxy','$graveyard','getCommentThread','isObject','addCommentThread','item','editing','add','comment:','start','ck-comment-marker','document','includes','hasCommentThread','substring','_hasTargetInContent','activeMarker','registerPostFixer','$marker','removeMarker','createRange','getItems','elementToElement','editingDowncast','split'];(function(_0x38d6d8,_0xe2c5bd){const _0x1e7829=function(_0x303180){while(--_0x303180){_0x38d6d8['push'](_0x38d6d8['shift']());}};_0x1e7829(++_0xe2c5bd);}(_0xe2c5,0x152));const _0x1e78=function(_0x38d6d8,_0xe2c5bd){_0x38d6d8=_0x38d6d8-0x0;let _0x1e7829=_0xe2c5[_0x38d6d8];return _0x1e7829;};import{Plugin as _0x3e1f43}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x1aac91}from'ckeditor5/src/utils.js';import _0x556cac from'./commentsrepository.js';import _0x10108c from'./addcommentthreadcommand.js';import{getAllMarkersDomElementsSorted as _0x39e065}from'ckeditor5-collaboration';import _0x881bf9 from'../annotations/editorannotations.js';import _0x37c821 from'./integrations/commentsrestrictededitingmode.js';import'../../theme/commentmarker.css';import _0x44ba76 from'./integrations/importword.js';import _0x254c7a from'../annotations/annotations.js';export default class r extends _0x3e1f43{static get[_0x1e78('0x9')](){return[_0x556cac,_0x881bf9,_0x37c821,_0x44ba76];}static get[_0x1e78('0xb')](){return _0x1e78('0x1b');}constructor(_0xc4539f){super(_0xc4539f),this['set'](_0x1e78('0x40'),!0x0),_0xc4539f[_0x1e78('0x5e')]['once'](_0x1e78('0x6b'),()=>this[_0x1e78('0x40')]=!0x1),this[_0x1e78('0x10')](_0x1e78('0x55'),null),this['on'](_0x1e78('0x20'),(_0x441c19,_0x1ab46b,_0x284609,_0x376ba1)=>{const _0xb2698=_0x284609?tt(_0x284609)['id']:null;if(_0xc4539f['model']['change'](()=>{if(_0xb2698){const _0x2c0e6d=this[_0x1e78('0x0')](_0xb2698);for(const _0x109ff4 of _0x2c0e6d)_0xc4539f[_0x1e78('0x4b')][_0x1e78('0x3e')](_0x109ff4);}if(_0x376ba1){const {id:_0x20ece8}=tt(_0x376ba1),_0x56de31=this[_0x1e78('0x0')](_0x20ece8);for(const _0xbf5fa8 of _0x56de31)_0xc4539f[_0x1e78('0x4b')][_0x1e78('0x3e')](_0xbf5fa8);}}),_0xb2698){const _0xf84625=_0xc4539f[_0x1e78('0x15')]['get'](_0x556cac)[_0x1e78('0x47')](_0xb2698);_0xf84625&&_0xf84625['isResolved']&&this[_0x1e78('0x65')](_0xb2698);}}),this[_0x1e78('0x18')]=new Map();}[_0x1e78('0x16')](){const _0x42ca47=this[_0x1e78('0x35')],_0x84b555=_0x42ca47[_0x1e78('0x15')]['get'](_0x556cac),_0x7b7bf3=_0x42ca47[_0x1e78('0x1a')][_0x1e78('0x41')](_0x1e78('0x68'));_0x42ca47[_0x1e78('0x62')][_0x1e78('0x4c')](_0x1e78('0x49'),new _0x10108c(_0x42ca47)),this[_0x1e78('0x43')](_0x42ca47,'change:isReadOnly',(_0x41d26c,_0x503ccf,_0xbf81e6)=>{_0x84b555[_0x1e78('0x21')](_0xbf81e6,_0x42ca47[_0x1e78('0x1a')][_0x1e78('0x41')](_0x1e78('0x68')));}),this[_0x1e78('0x43')](_0x84b555,Z(_0x1e78('0x49'),_0x7b7bf3),(_0x507fe0,{threadId:_0x298d08})=>{const _0x1feead=_0x42ca47[_0x1e78('0x15')]['get'](_0x881bf9),_0x2b632a=this[_0x1e78('0x35')][_0x1e78('0x15')]['get'](_0x556cac)['getCommentThread'](_0x298d08);if(_0x2b632a&&_0x2b632a[_0x1e78('0x3')]&&!this[_0x1e78('0x18')][_0x1e78('0x30')](_0x298d08)){const _0x238091=_0x2b632a[_0x1e78('0x27')](()=>this[_0x1e78('0x1f')](_0x2b632a['id']));_0x1feead['registerAnnotation'](_0x238091),this['_attachedThreads'][_0x1e78('0x10')](_0x298d08,[]),0x0===this[_0x1e78('0x0')](_0x298d08)[_0x1e78('0x6')]&&(_0x2b632a[_0x1e78('0x54')]=!0x1);}}),this[_0x1e78('0x43')](_0x84b555,Z(_0x1e78('0x42'),_0x7b7bf3),(_0x51713d,{threadId:_0x4cbacc})=>{_0x42ca47[_0x1e78('0xd')][_0x1e78('0x3a')]({'isUndoable':!0x1},_0x39e3c0=>{const _0x2697c1=this['getAllMarkersForId'](_0x4cbacc);this[_0x1e78('0x18')][_0x1e78('0x1d')](_0x4cbacc);for(const _0x132dfe of _0x2697c1)_0x39e3c0[_0x1e78('0x58')](_0x132dfe);});},{'priority':'high'}),this[_0x1e78('0x43')](_0x84b555,Z(_0x1e78('0x1c'),_0x7b7bf3),(_0x468219,{threadId:_0x39c521})=>{this[_0x1e78('0x17')](_0x39c521),this[_0x1e78('0x35')][_0x1e78('0x4b')]['view'][_0x1e78('0x4')]&&this[_0x1e78('0x35')]['editing'][_0x1e78('0x36')]['focus']();},{'priority':_0x1e78('0x23')}),this['listenTo'](_0x84b555,Z(_0x1e78('0x61'),_0x7b7bf3),(_0x3469c6,{threadId:_0x195336})=>{this[_0x1e78('0x17')](_0x195336);},{'priority':'low'}),this[_0x1e78('0x43')](_0x84b555,Z(_0x1e78('0x5'),_0x7b7bf3),(_0x19c69b,{threadId:_0x4bf61c,isFromAdapter:_0x489a29})=>{const _0x42466a=this[_0x1e78('0x0')](_0x4bf61c);if(_0x489a29||0x0==_0x42466a[_0x1e78('0x6')]||!_0x84b555[_0x1e78('0x52')](_0x4bf61c))return;0x1===_0x84b555[_0x1e78('0x47')](_0x4bf61c)['length']&&_0x42ca47['model'][_0x1e78('0x3a')]({'isUndoable':!0x1},_0x10802e=>{for(const _0x48a085 of _0x42466a)_0x10802e['updateMarker'](_0x48a085,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x1e78('0x3f')](),this['_handleMarkerAddAndRemove']();}[_0x1e78('0x26')](){const _0x2f5cd1=this[_0x1e78('0x35')]['plugins'][_0x1e78('0x41')](_0x556cac),_0x2d89c0=this[_0x1e78('0x35')][_0x1e78('0x1a')]['get'](_0x1e78('0x68'));for(const _0x419e07 of _0x2f5cd1[_0x1e78('0x63')]({'channelId':_0x2d89c0}))_0x2f5cd1[_0x1e78('0x64')](_0x419e07['id']),_0x2f5cd1[_0x1e78('0x24')][_0x1e78('0x1d')](_0x419e07['id']);super['destroy']();}[_0x1e78('0x5f')](_0x382812){return this[_0x1e78('0x0')](_0x382812)['length']>0x0;}[_0x1e78('0x0')](_0x5ad898){return(this[_0x1e78('0x18')]['get'](_0x5ad898)||[])['map'](_0x118bd1=>this[_0x1e78('0x35')]['model'][_0x1e78('0x2e')][_0x1e78('0x41')](_0x118bd1))[_0x1e78('0x1')](_0x1e003a=>_0x1e003a);}[_0x1e78('0x65')](_0x4ea8cb){const _0x48b1db=this[_0x1e78('0x1f')](_0x4ea8cb);_0x48b1db&&setTimeout(()=>{this[_0x1e78('0x55')]&&tt(this[_0x1e78('0x55')])['id']===_0x4ea8cb&&_0x1aac91({'target':_0x48b1db[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x38b763){this[_0x1e78('0x35')]['model']['change'](()=>{for(const _0x395207 of this[_0x1e78('0x0')](_0x38b763))this[_0x1e78('0x35')][_0x1e78('0x4b')][_0x1e78('0x3e')](_0x395207);});}[_0x1e78('0x3f')](){const _0x3df8a1=this[_0x1e78('0x35')];_0x3df8a1[_0x1e78('0x22')]['for'](_0x1e78('0x5c'))[_0x1e78('0x32')]({'model':_0x1e78('0x37'),'view':(_0x2868f3,_0x1930bf)=>{const {id:_0x26b001}=tt(_0x2868f3[_0x1e78('0x19')]),_0x43f61d=_0x3df8a1[_0x1e78('0x15')][_0x1e78('0x41')](_0x556cac)[_0x1e78('0x47')](_0x26b001),_0x29366e=this[_0x1e78('0x55')]&&tt(this[_0x1e78('0x55')])['id']===_0x26b001;if(_0x43f61d&&_0x43f61d[_0x1e78('0x3')]&&!_0x29366e&&_0x2868f3['item'])return _0x1930bf[_0x1e78('0x8')]['consume'](_0x2868f3[_0x1e78('0x4a')],'addMarker:'+_0x2868f3[_0x1e78('0x19')]),_0x1930bf['consumable'][_0x1e78('0x28')](_0x2868f3[_0x1e78('0x4a')],'removeMarker:'+_0x2868f3[_0x1e78('0x19')]),{'classes':[]};const _0x3ede44=[_0x1e78('0x4f')];return _0x29366e&&_0x3ede44[_0x1e78('0xf')]('ck-comment-marker--active'),{'classes':_0x3ede44,'attributes':{'data-comment':_0x26b001}};}}),_0x3df8a1[_0x1e78('0x22')][_0x1e78('0x6a')]('dataDowncast')[_0x1e78('0x2a')]({'model':_0x1e78('0x37'),'view':(_0x5d9883,{options:_0x381077})=>{const _0x53e939=_0x3df8a1[_0x1e78('0x15')]['get'](_0x556cac),_0x27480a=_0x3df8a1[_0x1e78('0xd')][_0x1e78('0x2e')][_0x1e78('0x41')](_0x5d9883),{id:_0x42d3b0,part:_0x20005f}=tt(_0x5d9883);if(_0x27480a&&!_0x27480a[_0x1e78('0x31')])return null;if(_0x381077['ignoreResolvedComments']){const _0x7de094=_0x53e939[_0x1e78('0x47')](_0x42d3b0);if(_0x7de094&&_0x7de094[_0x1e78('0x3')])return null;}return{'group':_0x1e78('0x37'),'name':_0x20005f?_0x42d3b0+':'+_0x20005f:_0x42d3b0};}}),_0x3df8a1['conversion'][_0x1e78('0x6a')]('upcast')[_0x1e78('0x5b')]({'view':{'name':_0x1e78('0x37'),'attributes':{'id':/^\w/}},'model':(_0x35d764,{writer:_0x5923fd})=>_0x5923fd['createElement'](_0x1e78('0x57'),{'data-name':_0x1e78('0x4d')+_0x35d764['getAttribute']('id')})}),_0x3df8a1[_0x1e78('0x22')]['for'](_0x1e78('0x7'))['dataToMarker']({'view':_0x1e78('0x37')});}[_0x1e78('0x12')](){const _0x1980b7=this[_0x1e78('0x35')],_0x9619b0=_0x1980b7[_0x1e78('0x15')][_0x1e78('0x41')](_0x556cac),_0x220d70=new Set();_0x1980b7['model'][_0x1e78('0x50')][_0x1e78('0x56')](_0x36924a=>{let _0xc461cf=!0x1;for(const {name:_0x2256dd,data:_0x5c4ce1}of _0x1980b7['model'][_0x1e78('0x50')]['differ'][_0x1e78('0x38')]()){const {group:_0x20fecd,id:_0x490228}=tt(_0x2256dd);let _0xe8365d=_0x5c4ce1[_0x1e78('0xe')];if(_0x1e78('0x37')!==_0x20fecd||!_0xe8365d)continue;const _0x363e06=_0x1e78('0x46')===_0xe8365d[_0x1e78('0x11')]['rootName'];_0x363e06||(_0xe8365d=ot(_0xe8365d,_0x1980b7[_0x1e78('0xd')]),!_0xe8365d||!_0x5c4ce1[_0x1e78('0xe')]||_0xe8365d[_0x1e78('0x69')](_0x5c4ce1[_0x1e78('0xe')]))?!_0xe8365d||!_0x1980b7[_0x1e78('0xd')][_0x1e78('0x13')](_0xe8365d)||this[_0x1e78('0x18')][_0x1e78('0x30')](_0x490228)&&_0x363e06?(_0x36924a['removeMarker'](_0x2256dd),_0xc461cf=!0x0):_0x363e06||(this[_0x1e78('0x40')]?_0x220d70['add'](_0x2256dd):this[_0x1e78('0x34')](_0x2256dd,_0x490228)):(_0x36924a[_0x1e78('0x29')](_0x2256dd,{'range':_0xe8365d}),_0xc461cf=!0x0);}return _0xc461cf;}),this['on']('change:isThreadsLoadingPaused',(_0x20bc58,_0x2ce83d,_0x1215ae)=>{if(!_0x1215ae&&_0x220d70['size'])for(const _0xd132bf of _0x220d70){const {id:_0x4b5932}=tt(_0xd132bf);_0x220d70[_0x1e78('0x1d')](_0x4b5932),_0x1980b7[_0x1e78('0xd')][_0x1e78('0x2e')]['get'](_0xd132bf)&&this['_handleThreadMarker'](_0xd132bf,_0x4b5932);}}),this['listenTo'](_0x1980b7[_0x1e78('0xd')][_0x1e78('0x50')],_0x1e78('0x2f'),(_0x3623bf,_0x3207e6)=>{for(const {name:_0x4e72e8,data:{newRange:_0x4d9768}}of _0x1980b7[_0x1e78('0xd')]['document'][_0x1e78('0x2')][_0x1e78('0x38')]()){const {group:_0x57f0f0,id:_0x5968ba}=tt(_0x4e72e8);if('comment'!==_0x57f0f0)continue;const _0x2c1a21=_0x9619b0[_0x1e78('0x47')](_0x5968ba),_0x2fa7ad=this[_0x1e78('0x5f')](_0x5968ba);_0x2c1a21&&(_0x2c1a21['_hasTargetInContent']||_0x1980b7[_0x1e78('0x4b')][_0x1e78('0x36')][_0x1e78('0x3c')](_0x1e78('0x25'),()=>{const _0x1b34f1=_0x1980b7[_0x1e78('0x15')][_0x1e78('0x41')](_0x254c7a),_0x41d536=_0x9619b0['_threadToController'][_0x1e78('0x41')](_0x2c1a21)[_0x1e78('0x36')];_0x1b34f1['getByInnerView'](_0x41d536)[_0x1e78('0x1e')]();},{'priority':_0x1e78('0x23')}),_0x2c1a21[_0x1e78('0x54')]=_0x2fa7ad||!!_0x4d9768),!_0x4d9768&&_0x3207e6['isLocal']&&(_0x220d70[_0x1e78('0x1d')](_0x5968ba),_0x2c1a21&&!_0x2c1a21[_0x1e78('0x3')]&&!_0x2fa7ad&&this[_0x1e78('0x18')][_0x1e78('0x30')](_0x5968ba)&&(this[_0x1e78('0x18')][_0x1e78('0x1d')](_0x5968ba),_0x2c1a21[_0x1e78('0x14')]()));}});}['_getTargetForId'](_0x526ce9){const _0x2b280d=this[_0x1e78('0x35')],_0x4aa991=this[_0x1e78('0x0')](_0x526ce9);return _0x39e065(_0x2b280d[_0x1e78('0x4b')],_0x4aa991);}[_0x1e78('0x2b')](_0x49bac5){const _0x49c65d=this[_0x1e78('0x0')](_0x49bac5);let _0x26f707='',_0x2737df=!0x1;for(const _0x1ba49a of _0x49c65d){const _0x3b8c98=_0x1ba49a[_0x1e78('0x2d')]();for(const _0x5e4b30 of Array['from'](_0x3b8c98[_0x1e78('0x5a')]()))_0x5e4b30['is'](_0x1e78('0x45'))?(_0x26f707&&_0x2737df&&(_0x26f707+='\x20',_0x2737df=!0x1),_0x26f707+=_0x5e4b30['data']):_0x2737df=!0x0;_0x2737df=!0x0;}return _0x26f707[_0x1e78('0x53')](0x0,0x96);}[_0x1e78('0x67')](_0x3469d4,_0x276454){const _0x205f09=this[_0x1e78('0x35')],_0x55083b=_0x205f09['plugins'][_0x1e78('0x41')](_0x556cac);let _0x1bbcd9=_0x55083b[_0x1e78('0x47')](_0x276454);if(this[_0x1e78('0x18')]['has'](_0x276454)){const _0x349ad8=this['_attachedThreads'][_0x1e78('0x41')](_0x276454);return _0x349ad8[_0x1e78('0x51')](_0x3469d4)||_0x349ad8[_0x1e78('0xf')](_0x3469d4),_0x1bbcd9;}this[_0x1e78('0x18')][_0x1e78('0x10')](_0x276454,[_0x3469d4]);const _0xae231e=_0x205f09[_0x1e78('0x1a')][_0x1e78('0x41')](_0x1e78('0x68')),_0x4b1385=_0x205f09['plugins'][_0x1e78('0x41')](_0x881bf9);if(_0x1bbcd9&&_0x1bbcd9[_0x1e78('0x3')])return _0x1bbcd9['reopen'](),_0x1bbcd9;return!this[_0x1e78('0x0')](_0x276454)[0x0]['managedUsingOperations']?_0x205f09[_0x1e78('0x4b')][_0x1e78('0x36')][_0x1e78('0x3c')](_0x1e78('0x25'),()=>{const _0x1f9804=_0x205f09['plugins'][_0x1e78('0x41')](_0x254c7a);_0x1bbcd9=_0x55083b[_0x1e78('0xa')]({'channelId':_0xae231e,'threadId':_0x276454,'target':()=>this['_getTargetForId'](_0x276454),'context':{'type':'text','value':this[_0x1e78('0x2b')](_0x276454)}});const _0x4a7367=_0x55083b['_threadToController']['get'](_0x1bbcd9)[_0x1e78('0x36')],_0x1fae0a=_0x1f9804[_0x1e78('0x2c')](_0x4a7367);_0x1fae0a&&_0x4b1385[_0x1e78('0x44')](_0x1fae0a);},{'priority':_0x1e78('0x23')}):_0x55083b['fetchCommentThread']({'channelId':_0xae231e,'threadId':_0x276454})['then'](_0x17edd0=>{if(_0x1e78('0x3b')!==_0x205f09[_0x1e78('0x60')]){if(_0x1bbcd9=_0x17edd0,_0x1bbcd9){const _0x55654b=_0x1bbcd9[_0x1e78('0x27')](()=>this[_0x1e78('0x1f')](_0x276454));_0x4b1385[_0x1e78('0x44')](_0x55654b),_0x1bbcd9[_0x1e78('0x3')]&&this[_0x1e78('0x17')](_0x276454);}else{const _0x583b01=this[_0x1e78('0x0')](_0x276454);_0x205f09[_0x1e78('0xd')]['change'](_0xbeaa4f=>{for(const _0x310ba3 of _0x583b01)_0xbeaa4f[_0x1e78('0x58')](_0x310ba3);});}}}),_0x1bbcd9;}['_handleThreadMarker'](_0x35815e,_0x16f09f){const _0x259a5f=this['_attachMarkerToThread'](_0x35815e,_0x16f09f);_0x259a5f&&!_0x259a5f[_0x1e78('0x3d')]&&_0x259a5f[_0x1e78('0x66')]({'type':_0x1e78('0x33'),'value':this['_getTextContext'](_0x16f09f)});}}function Z(_0x4dc7cc,_0x5ba79b){return _0x5ba79b?_0x4dc7cc+':'+_0x5ba79b:_0x4dc7cc;}function tt(_0x4b6186){const _0x31ebd4=_0x4b6186[_0x1e78('0x5d')](':');return{'group':_0x31ebd4[0x0],'id':_0x31ebd4[0x1],'part':_0x31ebd4[0x2]};}function ot(_0x1bd58a,_0x515253){const _0x58781b=_0x515253[_0x1e78('0xc')],_0x33a499=_0x515253[_0x1e78('0x59')](_0x1bd58a[_0x1e78('0x4e')]);for(const _0x5361cc of _0x1bd58a['getWalker']()){const {type:_0x16a484,item:_0x316952,nextPosition:_0x212bb1}=_0x5361cc;if(_0x1e78('0x33')===_0x16a484||_0x58781b[_0x1e78('0x48')](_0x316952)){const _0x435d0f=_0x515253['createPositionBefore'](_0x316952);_0x33a499[_0x1e78('0x39')]&&(_0x33a499[_0x1e78('0x4e')]=_0x435d0f),_0x33a499['end']=_0x212bb1;}}return _0x33a499[_0x1e78('0x39')]?null:_0x33a499;}
|
|
23
|
+
const _0x1fa3=['resolveCommentThread','model','attachTo','substring','_attachedThreads','once','getCommentThreads','hasCommentThread','comment:','registerAnnotation','differ','reopenCommentThread','start','then','change:activeMarker','split','getRange','requires','_attachMarkerToThread','removeMarker:','isLocal','editor','isObject','getWalker','getByInnerView','refreshVisibility','_detachCommentThread','focus','$textProxy','createRange','getChangedMarkers','get','_hasTargetInContent','resolve','isThreadsLoadingPaused','_handleMarkerAddAndRemove','scrollToThreadMarker','affectsData','render','change:isReadOnly','reopen','ready','_removedThread','filter','view','setContext','for','ck-comment-marker','hasDomSelection','CommentsEditing','createElement','pluginName','add','context','has','upcast','change:isThreadsLoadingPaused','hasMarkerForId','removeMarker','ignoreResolvedComments','change','markerToData','push','openNewCommentThread','removeCommentThread','getAllMarkersForId','elementToElement','activeMarker','destroy','conversion','consumable','_handleThreadMarker','comment','newRange','hasContent','_getTargetForId','map','item','config','markers','isCollapsed','init','_autoResolvedThreads','_threadToController','listenTo','from','_initializeMarkerConverters','set','markerName','data','end','addCommentThread','registerPostFixer','length','collaboration.channelId','delete','editingDowncast','$graveyard','getCommentThread','reconvertMarker','_attachResolvedThread','markerToHighlight','high','addMarker:','document','dataDowncast','_getTextContext','isResolved','_reconvertMarkers','editing','rootName','enqueueChange','ck-comment-marker--active','plugins','isEqual','dataToMarker','schema','size','getItems','low','commands','consume','clear','text'];(function(_0x3fe63d,_0x1fa305){const _0x58dfa1=function(_0x40fbf4){while(--_0x40fbf4){_0x3fe63d['push'](_0x3fe63d['shift']());}};_0x58dfa1(++_0x1fa305);}(_0x1fa3,0x170));const _0x58df=function(_0x3fe63d,_0x1fa305){_0x3fe63d=_0x3fe63d-0x0;let _0x58dfa1=_0x1fa3[_0x3fe63d];return _0x58dfa1;};import{Plugin as _0x52a63d}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1b0496}from'ckeditor5/src/utils';import _0x3774d2 from'./commentsrepository';import _0x4bf6b1 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x576cfb}from'ckeditor5-collaboration/src/collaboration-core';import _0x34c36f from'../annotations/editorannotations';import _0x2c1a2e from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x12cfc3 from'./integrations/importword';import _0x196f95 from'../annotations/annotations';export default class r extends _0x52a63d{static get[_0x58df('0x15')](){return[_0x3774d2,_0x34c36f,_0x2c1a2e,_0x12cfc3];}static get[_0x58df('0x37')](){return _0x58df('0x35');}constructor(_0x14efa8){super(_0x14efa8),this[_0x58df('0x2e')]=null,this[_0x58df('0x56')]=new Set(),this[_0x58df('0x5b')](_0x58df('0x26'),!0x0),_0x14efa8[_0x58df('0x5d')][_0x58df('0x9')](_0x58df('0x2d'),()=>this[_0x58df('0x26')]=!0x1),this[_0x58df('0x5b')]('activeMarker',null),this['on'](_0x58df('0x12'),(_0x1f54cf,_0x22567a,_0x4a222d,_0xc2bba2)=>{const _0x42cf2b=_0x4a222d?tt(_0x4a222d)['id']:null;if(_0x14efa8['model'][_0x58df('0x40')](()=>{if(_0x42cf2b){const _0x2b8161=this['getAllMarkersForId'](_0x42cf2b);for(const _0x351b43 of _0x2b8161)_0x14efa8[_0x58df('0x71')][_0x58df('0x67')](_0x351b43);}if(_0xc2bba2){const {id:_0x37e776}=tt(_0xc2bba2),_0x1d1047=this[_0x58df('0x45')](_0x37e776);for(const _0x4ddbc3 of _0x1d1047)_0x14efa8[_0x58df('0x71')][_0x58df('0x67')](_0x4ddbc3);}}),_0x42cf2b){const _0x447a66=_0x14efa8[_0x58df('0x75')][_0x58df('0x23')](_0x3774d2)[_0x58df('0x66')](_0x42cf2b);_0x447a66&&_0x447a66['isResolved']&&this[_0x58df('0x28')](_0x42cf2b);}}),this[_0x58df('0x8')]=new Map();}[_0x58df('0x55')](){const _0xe16a7c=this[_0x58df('0x19')],_0x43da58=_0xe16a7c[_0x58df('0x75')]['get'](_0x3774d2),_0x8f5259=_0xe16a7c[_0x58df('0x52')][_0x58df('0x23')](_0x58df('0x62'));_0xe16a7c[_0x58df('0x0')][_0x58df('0x38')](_0x58df('0x5f'),new _0x4bf6b1(_0xe16a7c)),this[_0x58df('0x58')](_0xe16a7c,_0x58df('0x2b'),(_0x234f80,_0x57c38a,_0x2ab83d)=>{_0x43da58['switchReadOnly'](_0x2ab83d,_0xe16a7c[_0x58df('0x52')]['get'](_0x58df('0x62')));}),this[_0x58df('0x58')](_0x43da58,Z('addCommentThread',_0x8f5259),(_0x3b518e,{threadId:_0x599e82})=>{const _0x1f660e=this[_0x58df('0x19')][_0x58df('0x75')]['get'](_0x3774d2)['getCommentThread'](_0x599e82);_0x1f660e&&_0x1f660e[_0x58df('0x6f')]&&this[_0x58df('0x68')](_0x599e82);}),this[_0x58df('0x58')](_0x43da58,Z(_0x58df('0x44'),_0x8f5259),(_0xc6668d,{threadId:_0x191d6d})=>{_0xe16a7c[_0x58df('0x5')][_0x58df('0x73')]({'isUndoable':!0x1},_0x12f72d=>{const _0x14d8ce=this['getAllMarkersForId'](_0x191d6d);this[_0x58df('0x8')][_0x58df('0x63')](_0x191d6d),this[_0x58df('0x2e')]=_0x191d6d;for(const _0x449fd6 of _0x14d8ce)_0x12f72d[_0x58df('0x3e')](_0x449fd6);}),this[_0x58df('0x2e')]=null;},{'priority':_0x58df('0x6a')}),this[_0x58df('0x58')](_0x43da58,Z(_0x58df('0x4'),_0x8f5259),(_0x41f63d,{threadId:_0x2334fe})=>{this[_0x58df('0x68')](_0x2334fe),this[_0x58df('0x70')](_0x2334fe),this[_0x58df('0x19')]['editing']['view'][_0x58df('0x34')]&&this[_0x58df('0x19')]['editing'][_0x58df('0x30')][_0x58df('0x1f')]();},{'priority':_0x58df('0x7b')}),this['listenTo'](_0x43da58,Z(_0x58df('0xf'),_0x8f5259),(_0x251390,{threadId:_0x185ee2})=>{this['_reconvertMarkers'](_0x185ee2);},{'priority':_0x58df('0x7b')}),this[_0x58df('0x58')](_0x43da58,Z('addComment',_0x8f5259),(_0x18c142,{threadId:_0x2fc7be,isFromAdapter:_0x45f17d})=>{const _0x3ecbce=this['getAllMarkersForId'](_0x2fc7be);if(_0x45f17d||0x0==_0x3ecbce[_0x58df('0x61')]||!_0x43da58[_0x58df('0xb')](_0x2fc7be))return;0x1===_0x43da58[_0x58df('0x66')](_0x2fc7be)[_0x58df('0x61')]&&_0xe16a7c[_0x58df('0x5')][_0x58df('0x73')]({'isUndoable':!0x1},_0x51f284=>{for(const _0x321f49 of _0x3ecbce)_0x51f284['updateMarker'](_0x321f49,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x58df('0x7b')}),this[_0x58df('0x5a')](),this[_0x58df('0x27')]();}['destroy'](){const _0x524b1e=this['editor'][_0x58df('0x75')][_0x58df('0x23')](_0x3774d2),_0x474100=this['editor'][_0x58df('0x52')][_0x58df('0x23')](_0x58df('0x62'));for(const _0x42b4ac of _0x524b1e[_0x58df('0xa')]({'channelId':_0x474100}))_0x524b1e[_0x58df('0x1e')](_0x42b4ac['id']),_0x524b1e['_threads'][_0x58df('0x63')](_0x42b4ac['id']);super[_0x58df('0x48')]();}[_0x58df('0x3d')](_0x341b07){return this[_0x58df('0x45')](_0x341b07)[_0x58df('0x61')]>0x0;}[_0x58df('0x45')](_0x569574){return Array[_0x58df('0x59')](this['_attachedThreads'][_0x58df('0x23')](_0x569574)||[])[_0x58df('0x50')](_0x18c846=>this[_0x58df('0x19')][_0x58df('0x5')][_0x58df('0x53')][_0x58df('0x23')](_0x18c846))[_0x58df('0x2f')](_0x4fb3c3=>_0x4fb3c3);}[_0x58df('0x28')](_0x4edcf5){const _0x7a3788=this[_0x58df('0x4f')](_0x4edcf5);_0x7a3788&&setTimeout(()=>{this['activeMarker']&&tt(this['activeMarker'])['id']===_0x4edcf5&&_0x1b0496({'target':_0x7a3788[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x58df('0x70')](_0x4e00f3){this[_0x58df('0x19')][_0x58df('0x5')][_0x58df('0x40')](()=>{for(const _0x3b908b of this[_0x58df('0x45')](_0x4e00f3))this[_0x58df('0x19')]['editing'][_0x58df('0x67')](_0x3b908b);});}['_attachResolvedThread'](_0xb53526){const _0x4a5c15=this[_0x58df('0x19')][_0x58df('0x75')][_0x58df('0x23')](_0x3774d2),_0x977f09=this[_0x58df('0x19')]['plugins'][_0x58df('0x23')](_0x34c36f),_0x21a72c=_0x4a5c15[_0x58df('0x66')](_0xb53526);if(!this[_0x58df('0x8')][_0x58df('0x3a')](_0xb53526)){const _0x4dbf5f=_0x21a72c['attachTo'](()=>this[_0x58df('0x4f')](_0x21a72c['id']));_0x977f09['registerAnnotation'](_0x4dbf5f),this['_attachedThreads']['set'](_0xb53526,new Set()),_0x21a72c[_0x58df('0x24')]=!0x1;}}[_0x58df('0x5a')](){const _0x1b3b2b=this[_0x58df('0x19')];_0x1b3b2b[_0x58df('0x49')][_0x58df('0x32')](_0x58df('0x64'))[_0x58df('0x69')]({'model':_0x58df('0x4c'),'view':(_0x136d41,_0x429e86)=>{const {id:_0x2b29ce}=tt(_0x136d41[_0x58df('0x5c')]),_0x59d459=_0x1b3b2b['plugins']['get'](_0x3774d2)[_0x58df('0x66')](_0x2b29ce),_0x292e9b=this[_0x58df('0x47')]&&tt(this[_0x58df('0x47')])['id']===_0x2b29ce;if(_0x59d459&&_0x59d459[_0x58df('0x6f')]&&!_0x292e9b&&_0x136d41[_0x58df('0x51')])return _0x429e86[_0x58df('0x4a')][_0x58df('0x1')](_0x136d41['item'],_0x58df('0x6b')+_0x136d41[_0x58df('0x5c')]),_0x429e86[_0x58df('0x4a')][_0x58df('0x1')](_0x136d41[_0x58df('0x51')],_0x58df('0x17')+_0x136d41[_0x58df('0x5c')]),{'classes':[]};const _0x19b9ab=[_0x58df('0x33')];return _0x292e9b&&_0x19b9ab[_0x58df('0x42')](_0x58df('0x74')),{'classes':_0x19b9ab,'attributes':{'data-comment':_0x2b29ce}};}}),_0x1b3b2b[_0x58df('0x49')][_0x58df('0x32')](_0x58df('0x6d'))[_0x58df('0x41')]({'model':'comment','view':(_0x49eb97,{options:_0xb55dcd})=>{const _0x379af8=_0x1b3b2b['plugins']['get'](_0x3774d2),_0x272b46=_0x1b3b2b[_0x58df('0x5')]['markers'][_0x58df('0x23')](_0x49eb97),{id:_0x54a63e,part:_0x4f43f6}=tt(_0x49eb97);if(_0x272b46&&!_0x272b46[_0x58df('0x29')])return null;if(_0xb55dcd[_0x58df('0x3f')]){const _0x298acc=_0x379af8[_0x58df('0x66')](_0x54a63e);if(_0x298acc&&_0x298acc[_0x58df('0x6f')])return null;}return{'group':_0x58df('0x4c'),'name':_0x4f43f6?_0x54a63e+':'+_0x4f43f6:_0x54a63e};}}),_0x1b3b2b['conversion'][_0x58df('0x32')]('upcast')[_0x58df('0x46')]({'view':{'name':_0x58df('0x4c'),'attributes':{'id':/^\w/}},'model':(_0x257753,{writer:_0x3d7b28})=>_0x3d7b28[_0x58df('0x36')]('$marker',{'data-name':_0x58df('0xc')+_0x257753['getAttribute']('id')})}),_0x1b3b2b[_0x58df('0x49')][_0x58df('0x32')](_0x58df('0x3b'))[_0x58df('0x77')]({'view':_0x58df('0x4c')});}[_0x58df('0x27')](){const _0x366129=this[_0x58df('0x19')],_0xcd5af=_0x366129[_0x58df('0x75')]['get'](_0x3774d2),_0x2b3cb3=new Set(),_0x27898f=new Set();_0x366129[_0x58df('0x5')][_0x58df('0x6c')][_0x58df('0x60')](_0x42254e=>{let _0x14453e=!0x1;for(const {name:_0x433a69,data:_0x1eb01d}of _0x366129['model']['document'][_0x58df('0xe')][_0x58df('0x22')]()){const {group:_0x3e8a34,id:_0x271bb5}=tt(_0x433a69);let _0x2b1eea=_0x1eb01d['newRange'];if('comment'!==_0x3e8a34||!_0x2b1eea)continue;const _0x5cdce2=_0x58df('0x65')===_0x2b1eea['root'][_0x58df('0x72')];_0x5cdce2||(_0x2b1eea=ot(_0x2b1eea,_0x366129[_0x58df('0x5')]),!_0x2b1eea||_0x2b1eea[_0x58df('0x54')]||!_0x1eb01d['newRange']||_0x2b1eea[_0x58df('0x76')](_0x1eb01d[_0x58df('0x4d')]))?_0x366129[_0x58df('0x5')][_0x58df('0x4e')](_0x2b1eea)&&!_0x5cdce2?this[_0x58df('0x26')]?_0x2b3cb3['add'](_0x433a69):this[_0x58df('0x4b')](_0x433a69,_0x271bb5):(_0x27898f['add'](_0x433a69),_0x2b3cb3['delete'](_0x433a69),_0x42254e[_0x58df('0x3e')](_0x433a69),_0x14453e=!0x0):(_0x42254e['updateMarker'](_0x433a69,{'range':_0x2b1eea}),_0x14453e=!0x0);}return _0x14453e;}),this['on'](_0x58df('0x3c'),(_0x32a5f3,_0xce001d,_0x2f7353)=>{if(!_0x2f7353&&_0x2b3cb3[_0x58df('0x79')])for(const _0x4af62e of _0x2b3cb3){const {id:_0x1db415}=tt(_0x4af62e);_0x2b3cb3['delete'](_0x4af62e),_0x366129[_0x58df('0x5')][_0x58df('0x53')][_0x58df('0x23')](_0x4af62e)&&this['_handleThreadMarker'](_0x4af62e,_0x1db415);}}),this['listenTo'](_0x366129[_0x58df('0x5')][_0x58df('0x6c')],_0x58df('0x40'),(_0x369277,_0x2c378a)=>{for(const {name:_0x1a637d,data:{newRange:_0x263dd2}}of _0x366129[_0x58df('0x5')][_0x58df('0x6c')][_0x58df('0xe')][_0x58df('0x22')]()){const {group:_0x316859,id:_0x23c709}=tt(_0x1a637d);if(_0x58df('0x4c')!==_0x316859)continue;const _0x518fb6=_0xcd5af[_0x58df('0x66')](_0x23c709),_0x4c0ea0=this[_0x58df('0x3d')](_0x23c709);_0x518fb6&&(_0x518fb6[_0x58df('0x24')]||_0x366129['editing'][_0x58df('0x30')][_0x58df('0x9')](_0x58df('0x2a'),()=>{const _0x23b9ea=_0x366129[_0x58df('0x75')][_0x58df('0x23')](_0x196f95),_0x499c2d=_0xcd5af[_0x58df('0x57')][_0x58df('0x23')](_0x518fb6)[_0x58df('0x30')];_0x23b9ea['getByInnerView'](_0x499c2d)[_0x58df('0x1d')]();},{'priority':_0x58df('0x7b')}),_0x518fb6[_0x58df('0x24')]=_0x4c0ea0||!!_0x263dd2),_0x263dd2||(_0x27898f[_0x58df('0x38')](_0x1a637d),_0x2b3cb3[_0x58df('0x63')](_0x1a637d),this[_0x58df('0x8')][_0x58df('0x3a')](_0x23c709)&&this['_attachedThreads']['get'](_0x23c709)[_0x58df('0x63')](_0x1a637d));}if(_0x2c378a[_0x58df('0x18')])for(const _0x189b7c of _0x27898f){const {id:_0x54e218}=tt(_0x189b7c),_0x42c00b=_0xcd5af[_0x58df('0x66')](_0x54e218),_0x424e49=this[_0x58df('0x3d')](_0x54e218);_0x2b3cb3[_0x58df('0x63')](_0x189b7c),!_0x42c00b||_0x424e49||_0x42c00b[_0x58df('0x6f')]||this[_0x58df('0x2e')]===_0x54e218||(this[_0x58df('0x56')][_0x58df('0x38')](_0x42c00b),_0x42c00b[_0x58df('0x25')]());}_0x27898f[_0x58df('0x2')]();});}['_getTargetForId'](_0x1895b6){const _0x145859=this['editor'],_0x48af71=this[_0x58df('0x45')](_0x1895b6);return _0x576cfb(_0x145859[_0x58df('0x71')],_0x48af71);}['_getTextContext'](_0x15f04e){const _0x36b16d=this['getAllMarkersForId'](_0x15f04e);let _0x2db1d2='',_0x535e79=!0x1;for(const _0x1be740 of _0x36b16d){const _0x55a9fe=_0x1be740[_0x58df('0x14')]();for(const _0x11d2d0 of Array[_0x58df('0x59')](_0x55a9fe[_0x58df('0x7a')]()))_0x11d2d0['is'](_0x58df('0x20'))?(_0x2db1d2&&_0x535e79&&(_0x2db1d2+='\x20',_0x535e79=!0x1),_0x2db1d2+=_0x11d2d0['data']):_0x535e79=!0x0;_0x535e79=!0x0;}return _0x2db1d2[_0x58df('0x7')](0x0,0x96);}[_0x58df('0x16')](_0x89a6b5,_0x3989e4){const _0x3040a5=this[_0x58df('0x19')],_0x4e551a=_0x3040a5['plugins'][_0x58df('0x23')](_0x3774d2);let _0x871118=_0x4e551a[_0x58df('0x66')](_0x3989e4);if(this[_0x58df('0x8')]['has'](_0x3989e4)){const _0x22f883=this['_attachedThreads'][_0x58df('0x23')](_0x3989e4);_0x22f883[_0x58df('0x3a')](_0x89a6b5)||_0x22f883[_0x58df('0x38')](_0x89a6b5);}const _0x492d03=_0x3040a5[_0x58df('0x52')][_0x58df('0x23')](_0x58df('0x62')),_0x275223=_0x3040a5[_0x58df('0x75')][_0x58df('0x23')](_0x34c36f);if(_0x871118&&_0x871118[_0x58df('0x6f')]&&this[_0x58df('0x56')][_0x58df('0x3a')](_0x871118)&&(this[_0x58df('0x56')][_0x58df('0x63')](_0x871118),_0x871118[_0x58df('0x2c')]()),this['_attachedThreads'][_0x58df('0x3a')](_0x3989e4))return _0x871118;return this[_0x58df('0x8')][_0x58df('0x5b')](_0x3989e4,new Set([_0x89a6b5])),(!this[_0x58df('0x45')](_0x3989e4)[0x0]['managedUsingOperations']?_0x3040a5['editing'][_0x58df('0x30')][_0x58df('0x9')](_0x58df('0x2a'),()=>{const _0x351e17=_0x3040a5[_0x58df('0x75')][_0x58df('0x23')](_0x196f95);_0x871118=_0x4e551a[_0x58df('0x43')]({'channelId':_0x492d03,'threadId':_0x3989e4,'target':()=>this['_getTargetForId'](_0x3989e4),'context':{'type':_0x58df('0x3'),'value':this['_getTextContext'](_0x3989e4)}});const _0xd16c6b=_0x4e551a[_0x58df('0x57')][_0x58df('0x23')](_0x871118)[_0x58df('0x30')],_0x246399=_0x351e17[_0x58df('0x1c')](_0xd16c6b);_0x246399&&_0x275223[_0x58df('0xd')](_0x246399);},{'priority':_0x58df('0x7b')}):_0x4e551a['fetchCommentThread']({'channelId':_0x492d03,'threadId':_0x3989e4})[_0x58df('0x11')](_0x29d0cb=>{if('destroyed'!==_0x3040a5['state']){if(_0x871118=_0x29d0cb,_0x871118){const _0x19e1ad=_0x871118[_0x58df('0x6')](()=>this[_0x58df('0x4f')](_0x3989e4));_0x275223[_0x58df('0xd')](_0x19e1ad),_0x871118['isResolved']&&this['_reconvertMarkers'](_0x3989e4);}else{const _0x3d79d6=this[_0x58df('0x45')](_0x3989e4);_0x3040a5[_0x58df('0x5')][_0x58df('0x40')](_0x1ac391=>{for(const _0x4c31b4 of _0x3d79d6)_0x1ac391[_0x58df('0x3e')](_0x4c31b4);});}}}),_0x871118);}[_0x58df('0x4b')](_0x5e0857,_0x48f532){const _0x3d65a1=this[_0x58df('0x16')](_0x5e0857,_0x48f532);_0x3d65a1&&!_0x3d65a1[_0x58df('0x39')]&&_0x3d65a1[_0x58df('0x31')]({'type':_0x58df('0x3'),'value':this[_0x58df('0x6e')](_0x48f532)});}}function Z(_0x3bf799,_0x33715b){return _0x33715b?_0x3bf799+':'+_0x33715b:_0x3bf799;}function tt(_0x4464dd){const _0x42ba47=_0x4464dd[_0x58df('0x13')](':');return{'group':_0x42ba47[0x0],'id':_0x42ba47[0x1],'part':_0x42ba47[0x2]};}function ot(_0x3d017b,_0x21aa0c){const _0x2b44f3=_0x21aa0c[_0x58df('0x78')],_0x3b74d5=_0x21aa0c[_0x58df('0x21')](_0x3d017b[_0x58df('0x10')]);for(const _0x5a85d5 of _0x3d017b[_0x58df('0x1b')]()){const {type:_0x2f9268,item:_0x2ffd87,nextPosition:_0x5e9e33}=_0x5a85d5;if(_0x58df('0x3')===_0x2f9268||_0x2b44f3[_0x58df('0x1a')](_0x2ffd87)){const _0x4baf7e=_0x21aa0c['createPositionBefore'](_0x2ffd87);_0x3b74d5[_0x58df('0x54')]&&(_0x3b74d5[_0x58df('0x10')]=_0x4baf7e),_0x3b74d5[_0x58df('0x5e')]=_0x5e9e33;}}return _0x3b74d5;}
|