@ckeditor/ckeditor5-comments 38.2.0-alpha.1 → 39.0.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/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 _0x5bbb=['setTemplate','render','height','mainView','bindTemplate','content','element','detach','length','focus','div','isDirty','attach','isActive','ck-rounded-corners','fire','ck-annotation-wrapper--active','destroy','keystrokes','createCollection','set','_updateHeight','targetRect','focusTracker','_mutationObserver'];(function(_0x1dd67a,_0x5bbb36){const _0x34310c=function(_0x200e69){while(--_0x200e69){_0x1dd67a['push'](_0x1dd67a['shift']());}};_0x34310c(++_0x5bbb36);}(_0x5bbb,0xe1));const _0x3431=function(_0x1dd67a,_0x5bbb36){_0x1dd67a=_0x1dd67a-0x0;let _0x34310c=_0x5bbb[_0x1dd67a];return _0x34310c;};import{View as _0x6a1293}from'ckeditor5/src/ui';import{FocusTracker as _0xc50ced,KeystrokeHandler as _0xc7b71f,uid as _0x44a6a1}from'ckeditor5/src/utils';import _0x1d5175 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x6a1293{constructor(_0x40bf97,_0x3b62e0){super(_0x40bf97),this['id']=_0x44a6a1(),this['focusTracker']=new _0xc50ced(),this[_0x3431('0x12')]=new _0xc7b71f(),this[_0x3431('0x12')]['set']('Esc',(_0x245bd9,_0x45fb2d)=>this[_0x3431('0xf')]('Esc',_0x45fb2d)),this['set'](_0x3431('0x16'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3431('0x14')](_0x3431('0x2'),0x0),this[_0x3431('0x14')](_0x3431('0xd'),!0x1),this[_0x3431('0x14')](_0x3431('0xb'),!0x1),this['set'](_0x3431('0x8'),0x0),this['set']('type',''),this['_mutationObserver']=_0x1d5175(()=>this[_0x3431('0x15')]()),this[_0x3431('0x5')]=this[_0x3431('0x13')](),this[_0x3431('0x5')]['add'](_0x3b62e0),this[_0x3431('0x3')]=_0x3b62e0;const _0x311840=this[_0x3431('0x4')];this[_0x3431('0x0')]({'tag':_0x3431('0xa'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x3431('0xe'),_0x311840['if']('isActive',_0x3431('0x10'))],'tabindex':-0x1},'children':this[_0x3431('0x5')]});}[_0x3431('0x1')](){super[_0x3431('0x1')](),this[_0x3431('0x17')]['add'](this['element']),this[_0x3431('0x12')]['listenTo'](this[_0x3431('0x6')]),this[_0x3431('0x18')][_0x3431('0xc')](this[_0x3431('0x6')]);}['destroy'](){this[_0x3431('0x5')]['clear'](),this[_0x3431('0x12')]['destroy'](),this[_0x3431('0x17')][_0x3431('0x11')](),this[_0x3431('0x18')][_0x3431('0x7')](),super[_0x3431('0x11')]();}[_0x3431('0x9')](){this[_0x3431('0x6')][_0x3431('0x9')]();}[_0x3431('0x15')](){const _0x55034a=this[_0x3431('0x6')]['clientHeight'];_0x55034a&&(this['height']=_0x55034a);}}
|
|
@@ -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 _0x42a7=['ck-sidebar-item--no-animation','createCollection','destroy','bind','isAnimationDisabled','content','element','ck-sidebar-item','set','top','div','_mutationObserver','bottom','_targetTop','render','detach','attach','clientHeight','height','setTemplate'];(function(_0xa3eb3c,_0x42a7ef){const _0x2b433b=function(_0x44116b){while(--_0x44116b){_0xa3eb3c['push'](_0xa3eb3c['shift']());}};_0x2b433b(++_0x42a7ef);}(_0x42a7,0x8f));const _0x2b43=function(_0xa3eb3c,_0x42a7ef){_0xa3eb3c=_0xa3eb3c-0x0;let _0x2b433b=_0x42a7[_0xa3eb3c];return _0x2b433b;};import{View as _0x584241}from'ckeditor5/src/ui';import{toUnit as _0x38ae66}from'ckeditor5/src/utils';import _0x3cc5a0 from'../../utils/createmutationobserver';const At=_0x38ae66('px');export default class C extends _0x584241{constructor(_0x534ba5){super(_0x534ba5),this[_0x2b43('0x5')](_0x2b43('0x6'),0x0),this[_0x2b43('0x5')](_0x2b43('0xf'),0x0),this[_0x2b43('0x0')](_0x2b43('0x9'))['to'](this,'top',this,_0x2b43('0xf'),(_0x3d545e,_0x20bf8a)=>_0x3d545e+_0x20bf8a),this[_0x2b43('0x5')](_0x2b43('0x1'),!0x1),this['_mutationObserver']=_0x3cc5a0(()=>this['updateHeight']()),this[_0x2b43('0xa')]=null,this[_0x2b43('0x2')]=this[_0x2b43('0x12')]();const _0x331b48=this['bindTemplate'];this[_0x2b43('0x10')]({'tag':_0x2b43('0x7'),'attributes':{'class':[_0x2b43('0x4'),_0x331b48['to'](_0x2b43('0x1'),_0x3cbb54=>_0x3cbb54?_0x2b43('0x11'):'')],'style':{'top':_0x331b48['to'](_0x2b43('0x6'),_0x26b0a9=>At(_0x26b0a9))}},'children':this['content']});}[_0x2b43('0xb')](){super[_0x2b43('0xb')](),this[_0x2b43('0x8')][_0x2b43('0xd')](this[_0x2b43('0x3')]);}['updateHeight'](){const _0x4764ad=this[_0x2b43('0x3')][_0x2b43('0xe')];_0x4764ad&&(this['height']=_0x4764ad);}[_0x2b43('0x13')](){this[_0x2b43('0x2')]['clear'](),this['_mutationObserver'][_0x2b43('0xc')](),super[_0x2b43('0x13')]();}}
|
|
@@ -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 _0x3135=['class','setTemplate','createCollection','bindTemplate','set','list','div','ck-reset','minHeight','number','ck-sidebar'];(function(_0x53fe00,_0x3135c5){const _0x5a225a=function(_0x129e62){while(--_0x129e62){_0x53fe00['push'](_0x53fe00['shift']());}};_0x5a225a(++_0x3135c5);}(_0x3135,0x1c5));const _0x5a22=function(_0x53fe00,_0x3135c5){_0x53fe00=_0x53fe00-0x0;let _0x5a225a=_0x3135[_0x53fe00];return _0x5a225a;};import{View as _0x11b04f}from'ckeditor5/src/ui';import{toUnit as _0x579291}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const At=_0x579291('px');export default class T extends _0x11b04f{constructor(_0x2f6d59){super(_0x2f6d59);const _0x1e88a0=this[_0x5a22('0x1')];this['set'](_0x5a22('0x6'),0x0),this[_0x5a22('0x2')](_0x5a22('0x9'),''),this[_0x5a22('0x3')]=this[_0x5a22('0x0')](),this[_0x5a22('0xa')]({'tag':_0x5a22('0x4'),'attributes':{'class':['ck',_0x5a22('0x8'),_0x5a22('0x5'),_0x1e88a0['to'](_0x5a22('0x9'))],'style':{'minHeight':_0x1e88a0['to'](_0x5a22('0x6'),_0xba8ff5=>_0x5a22('0x7')==typeof _0xba8ff5?At(_0xba8ff5+0xa):null)}},'children':this[_0x5a22('0x3')]});}}
|
|
@@ -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 _0x51ea=['widesidebar-detach-not-attached','removeEventListener','updateTargetRect','_annotations','focus','has','refreshPositioning','editors','resize','plugins','add','uiUpdate','set:container','hasDomSelection','_attachToContainer','activeAnnotation','_activeAnnotation','switchTo','container','register','requires','ck-sidebar--wide','init','stopListening','ready','listenTo','get','getOrderedSelectedAnnotations','pluginName','cancel','refresh','WideSidebar','context','_refreshPositioningDebounced','stop','setActiveAnnotation','attach','_editorAnnotations','annotations','isAttached','set','blur','off','detach','addAnnotation','_destroyEditorAnnotationsIntegration','from','high','widesidebar-attach-already-attached','EditorAnnotations'];(function(_0x3b955d,_0x51ea58){const _0x2de58f=function(_0x594c62){while(--_0x594c62){_0x3b955d['push'](_0x3b955d['shift']());}};_0x2de58f(++_0x51ea58);}(_0x51ea,0x15e));const _0x2de5=function(_0x3b955d,_0x51ea58){_0x3b955d=_0x3b955d-0x0;let _0x2de58f=_0x51ea[_0x3b955d];return _0x2de58f;};import{ContextPlugin as _0x303fc5,Context as _0x175a04}from'ckeditor5/src/core';import _0x14a401 from'./annotationsuis';import _0x51ea21 from'./sidebar';import{CKEditorError as _0x368d39,Collection as _0x482fc0}from'ckeditor5/src/utils';import{debounce as _0x3d4dcc}from'lodash-es';import _0x2368f8 from'./editorannotations';export default class i extends _0x303fc5{static get[_0x2de5('0x14')](){return[_0x51ea21,_0x14a401];}static get[_0x2de5('0x1c')](){return _0x2de5('0x1f');}constructor(_0xb4c298){super(_0xb4c298),this['isAttached']=!0x1,this[_0x2de5('0x28')](_0x2de5('0xf'),null),this[_0x2de5('0x26')]=null,this[_0x2de5('0x25')]=new _0x482fc0(),this['_refreshPositioningDebounced']=_0x3d4dcc(()=>{this[_0x2de5('0x26')][_0x2de5('0x6')]();},0xfa,{'leading':!0x1});}[_0x2de5('0x16')](){const _0x3f66a3=this['context']['plugins'][_0x2de5('0x1a')](_0x14a401),_0x547da3=this[_0x2de5('0x20')][_0x2de5('0x9')][_0x2de5('0x1a')](_0x51ea21);_0x3f66a3[_0x2de5('0x13')]('wideSidebar',this),_0x547da3[_0x2de5('0x12')]&&_0x3f66a3[_0x2de5('0x11')]('wideSidebar');}['setActiveAnnotation'](_0x53846a){if(_0x53846a===this[_0x2de5('0xf')])return;const _0x2cceb4=this[_0x2de5('0x20')][_0x2de5('0x9')][_0x2de5('0x1a')](_0x51ea21);_0x2cceb4[_0x2de5('0x10')]=_0x53846a;const _0x2ce187=this['activeAnnotation'];this[_0x2de5('0xf')]=_0x53846a,_0x2cceb4[_0x2de5('0x1e')]({'blurredAnnotation':_0x2ce187,'activatedAnnotation':this[_0x2de5('0xf')]});}['attach'](_0x5d4223){this[_0x2de5('0x26')]=_0x5d4223;const _0x152cee=this[_0x2de5('0x20')][_0x2de5('0x9')][_0x2de5('0x1a')](_0x51ea21);if(_0x152cee[_0x2de5('0x3')]=_0x5d4223,this[_0x2de5('0x27')])throw new _0x368d39(_0x2de5('0x30'),this);this[_0x2de5('0x27')]=!0x0,this[_0x2de5('0x19')](_0x152cee,_0x2de5('0xc'),()=>{this[_0x2de5('0x2b')](),this['listenTo'](_0x152cee,'change:container',_0x16b3c2=>{_0x16b3c2[_0x2de5('0x2a')](),this[_0x2de5('0x24')](_0x5d4223);});}),_0x152cee[_0x2de5('0xe')]({'viewClass':_0x2de5('0x15')});const _0x534059=_0x39e205=>{_0x39e205[_0x2de5('0x2')](),_0x152cee[_0x2de5('0x2c')](_0x39e205);};for(const _0x21a8eb of _0x5d4223)_0x534059(_0x21a8eb);this[_0x2de5('0x19')](_0x5d4223,_0x2de5('0xa'),(_0x35b438,_0x9fc453)=>{_0x534059(_0x9fc453);}),this[_0x2de5('0x19')](_0x5d4223,'remove',(_0x16332e,_0x44334e,_0xa93c5d)=>{_0x152cee['rearrange']({'removedAnnotation':_0x44334e,'previousAnnotation':_0x5d4223[_0x2de5('0x1a')](_0xa93c5d-0x1),'nextAnnotation':_0x5d4223[_0x2de5('0x1a')](_0xa93c5d+0x1)}),_0x44334e===this[_0x2de5('0xf')]&&this[_0x2de5('0x23')](null);},{'priority':_0x2de5('0x2f')}),this[_0x2de5('0x19')](_0x5d4223,_0x2de5('0x4'),(_0x18801d,_0x4574f8)=>{this[_0x2de5('0x23')](_0x4574f8);}),this[_0x2de5('0x19')](_0x5d4223,'blur',()=>{this[_0x2de5('0x23')](null);});const _0x452b4a=this['context']instanceof _0x175a04?this[_0x2de5('0x20')]['editors']:new _0x482fc0([this[_0x2de5('0x20')]]);for(const _0x42026b of _0x452b4a)this['_integrateWithEditorAnnotations'](_0x42026b);this['listenTo'](_0x452b4a,_0x2de5('0xa'),(_0x18a80a,_0x1692e8)=>{this[_0x2de5('0x19')](_0x1692e8,_0x2de5('0x18'),()=>{this['_integrateWithEditorAnnotations'](_0x1692e8);});}),this[_0x2de5('0x19')](_0x452b4a,'remove',(_0x2d5078,_0x28bf55)=>{_0x28bf55[_0x2de5('0x9')][_0x2de5('0x5')](_0x2de5('0x31'))&&this[_0x2de5('0x2d')](_0x28bf55[_0x2de5('0x9')][_0x2de5('0x1a')](_0x2de5('0x31')));}),window['addEventListener'](_0x2de5('0x8'),this[_0x2de5('0x21')]),this[_0x2de5('0x26')][_0x2de5('0x6')]();}[_0x2de5('0x2b')](){if(!this['isAttached'])throw new _0x368d39(_0x2de5('0x0'),this);this[_0x2de5('0x23')](null);const _0x25846d=this['context'][_0x2de5('0x9')][_0x2de5('0x1a')](_0x51ea21);_0x25846d['_detachFromContainer'](this[_0x2de5('0x26')]),this[_0x2de5('0x17')](_0x25846d),this[_0x2de5('0x17')](this['annotations']),this['context']instanceof _0x175a04&&this['stopListening'](this[_0x2de5('0x20')][_0x2de5('0x7')]);for(const _0x4290f7 of Array[_0x2de5('0x2e')](this[_0x2de5('0x25')]))this['_destroyEditorAnnotationsIntegration'](_0x4290f7);window[_0x2de5('0x1')](_0x2de5('0x8'),this[_0x2de5('0x21')]),this[_0x2de5('0x21')][_0x2de5('0x1d')](),this[_0x2de5('0xf')]=null,this[_0x2de5('0x27')]=!0x1,this[_0x2de5('0x26')]=null;}['destroy'](){this['isAttached']&&this[_0x2de5('0x2b')]();}['_integrateWithEditorAnnotations'](_0x27fbdf){const _0x4281d5=_0x27fbdf[_0x2de5('0x9')]['get'](_0x2368f8);if(!_0x4281d5)return;const _0x1dfbc6=()=>{const _0x1fc55a=_0x4281d5[_0x2de5('0x1b')]({'annotations':this[_0x2de5('0x26')],'activeAnnotation':this[_0x2de5('0xf')]});this['setActiveAnnotation'](_0x1fc55a[0x0]||null);};this[_0x2de5('0x19')](_0x4281d5,'refresh',_0x1dfbc6),this[_0x2de5('0x19')](_0x4281d5,_0x2de5('0x29'),(_0x28e8d2,{isAnnotationTracked:_0x93127})=>{this[_0x2de5('0xf')]&&_0x93127(this[_0x2de5('0xf')])&&this[_0x2de5('0x23')](null);}),this[_0x2de5('0x19')](_0x4281d5,_0x2de5('0xb'),()=>{this[_0x2de5('0x21')]();}),this[_0x2de5('0x19')](this[_0x2de5('0x26')],_0x2de5('0x29'),_0x406289=>{_0x4281d5[_0x2de5('0xd')]()&&(_0x1dfbc6(),_0x406289[_0x2de5('0x22')]());},{'priority':_0x2de5('0x2f')}),this[_0x2de5('0x25')]['add'](_0x4281d5);}[_0x2de5('0x2d')](_0x3d4404){this[_0x2de5('0x17')](_0x3d4404),this[_0x2de5('0x25')]['remove'](_0x3d4404);}}
|
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 _0x5d45=['substr','push','createRange','element','tableCell','_hasContent','schema','isEnabled','end','backward','item','selection','model','isObject','getRanges','$textProxy','_trimToContent','addMarker','editor','getItems','execute','comment:','_itemIsContent','change','document'];(function(_0x3fb008,_0x5d45a7){const _0x58fffe=function(_0x593f54){while(--_0x593f54){_0x3fb008['push'](_0x3fb008['shift']());}};_0x58fffe(++_0x5d45a7);}(_0x5d45,0x16f));const _0x58ff=function(_0x3fb008,_0x5d45a7){_0x3fb008=_0x3fb008-0x0;let _0x58fffe=_0x5d45[_0x3fb008];return _0x58fffe;};import{Command as _0x2766fe}from'ckeditor5/src/core';import{uid as _0x249438}from'ckeditor5/src/utils';export default class q extends _0x2766fe{['refresh'](){const _0x372130=this['editor']['model'][_0x58ff('0x7')][_0x58ff('0x13')];for(const _0x5c84b0 of _0x372130[_0x58ff('0x16')]())if(this[_0x58ff('0xd')](_0x5c84b0))return void(this[_0x58ff('0xf')]=!0x0);this['isEnabled']=!0x1;}[_0x58ff('0x3')]({threadId:_0x58b6e0=_0x249438()}={}){const _0x38c64=this[_0x58ff('0x1')][_0x58ff('0x14')],_0x427c89=[];for(const _0x10b986 of _0x38c64[_0x58ff('0x7')]['selection'][_0x58ff('0x16')]())this['_hasContent'](_0x10b986)&&_0x427c89[_0x58ff('0x9')](this[_0x58ff('0x18')](_0x10b986));_0x38c64[_0x58ff('0x6')](_0x14d4a8=>{for(const _0x109a76 of _0x427c89){const _0xa57faa=_0x249438()[_0x58ff('0x8')](0x1,0x5),_0x41c962=_0x58ff('0x4')+_0x58b6e0+':'+_0xa57faa;_0x14d4a8[_0x58ff('0x0')](_0x41c962,{'range':_0x109a76,'usingOperation':!0x1,'affectsData':!0x1});}});}['_hasContent'](_0x3c48c6){for(const _0x5b4177 of _0x3c48c6[_0x58ff('0x2')]())if(this[_0x58ff('0x5')](_0x5b4177))return!0x0;return!0x1;}[_0x58ff('0x5')](_0x41f817){return _0x41f817['is'](_0x58ff('0x17'))||this['editor'][_0x58ff('0x14')][_0x58ff('0xe')][_0x58ff('0x15')](_0x41f817)&&!_0x41f817['is'](_0x58ff('0xb'),_0x58ff('0xc'));}['_trimToContent'](_0x385e45){const _0x43ef39=_0xc8d130=>!this[_0x58ff('0x5')](_0xc8d130[_0x58ff('0x12')]),_0x24dee5=_0x385e45['start']['getLastMatchingPosition'](_0x43ef39),_0x2a9f8e=_0x385e45[_0x58ff('0x10')]['getLastMatchingPosition'](_0x43ef39,{'direction':_0x58ff('0x11')});return this['editor'][_0x58ff('0x14')][_0x58ff('0xa')](_0x24dee5,_0x2a9f8e);}}
|
|
@@ -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 _0x2f6c=['CommentsArchive','addCommentThread','collection','plugins','activate','has','findIndex','context','resolvedAt','isActive','requires','length','get','add','focus','removeCommentThread','listenTo','getCommentThread','resolveCommentThread','resolvedThreads','reopenCommentThread','highest','_calculatePosition'];(function(_0x164cc5,_0x2f6c62){const _0x23d8e3=function(_0x17e2f2){while(--_0x17e2f2){_0x164cc5['push'](_0x164cc5['shift']());}};_0x23d8e3(++_0x2f6c62);}(_0x2f6c,0xc1));const _0x23d8=function(_0x164cc5,_0x2f6c62){_0x164cc5=_0x164cc5-0x0;let _0x23d8e3=_0x2f6c[_0x164cc5];return _0x23d8e3;};import{ContextPlugin as _0x13b01f}from'ckeditor5/src/core';import{Collection as _0x44f169}from'ckeditor5/src/utils';import _0x13d61e from'./commentsrepository';import _0x205c97 from'../annotations/annotations';export default class p extends _0x13b01f{static get['pluginName'](){return _0x23d8('0xe');}static get[_0x23d8('0x1')](){return[_0x13d61e,_0x205c97];}constructor(_0x32f2f9){super(_0x32f2f9),this[_0x23d8('0xa')]=new _0x44f169();}['init'](){const _0x528224=this[_0x23d8('0x15')],_0x21ca2c=_0x528224['plugins'][_0x23d8('0x3')](_0x13d61e),_0x5c48cf=_0x528224[_0x23d8('0x11')][_0x23d8('0x3')](_0x205c97);this[_0x23d8('0x7')](_0x21ca2c,_0x23d8('0xf'),(_0x3f7c7d,{threadId:_0x53e246,resolvedAt:_0x505110,deletedAt:_0x1f95ed})=>{if(_0x505110&&!_0x1f95ed){const _0x2d2a4c=_0x21ca2c[_0x23d8('0x8')](_0x53e246);this[_0x23d8('0xa')]['add'](_0x2d2a4c,this[_0x23d8('0xd')](_0x505110));}}),this['listenTo'](_0x21ca2c,_0x23d8('0x9'),(_0x22108a,{threadId:_0x3f2ee2,resolvedAt:_0x20bfcc})=>{const _0x3cce77=_0x21ca2c[_0x23d8('0x8')](_0x3f2ee2);this[_0x23d8('0xa')][_0x23d8('0x4')](_0x3cce77,this[_0x23d8('0xd')](_0x20bfcc));},{'priority':'highest'}),this[_0x23d8('0x7')](_0x21ca2c,_0x23d8('0xb'),(_0x22435e,{threadId:_0x1b2eaf})=>{const _0x17dc04=_0x21ca2c[_0x23d8('0x8')](_0x1b2eaf);this[_0x23d8('0xa')][_0x23d8('0x13')](_0x17dc04)&&this[_0x23d8('0xa')]['remove'](_0x17dc04);},{'priority':_0x23d8('0xc')}),this[_0x23d8('0x7')](_0x21ca2c,_0x23d8('0x6'),(_0x34dec4,{threadId:_0x5c1266})=>{const _0x2ead14=_0x21ca2c['getCommentThread'](_0x5c1266);this[_0x23d8('0xa')][_0x23d8('0x13')](_0x2ead14)&&this[_0x23d8('0xa')]['remove'](_0x2ead14);},{'priority':'highest'}),this['listenTo'](_0x5c48cf[_0x23d8('0x10')],_0x23d8('0x5'),(_0x5184ad,_0x256497)=>{_0x256497[_0x23d8('0x0')]=!0x0,_0x5c48cf[_0x23d8('0x12')](_0x256497);});}[_0x23d8('0xd')](_0x5c4e97){const _0x23085b=[...this[_0x23d8('0xa')]][_0x23d8('0x14')](_0x19c9ff=>_0x19c9ff[_0x23d8('0x16')]<_0x5c4e97);return _0x23085b>-0x1?_0x23085b:this[_0x23d8('0xa')][_0x23d8('0x2')];}}
|
|
@@ -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 _0x1ce1=['resolvedThreads','innerView','filter','ck-body','_handleAnnotationFocusableElements','config','resolvedAt','_visibleAnnotations','isVisible','componentFactory','getByInnerView','CommentsArchiveUI','plugins','panelView','set','COMMENTS_ARCHIVE','_calculatePosition','Annotations','annotationViews','locale','contains','remove','children','collection','position','length','init','stopListening','commentsArchiveView','add','focusTracker','listenTo','buttonView','channelId','findIndex','find','extendTemplate','focusableElements','view','_threadToController','push','_createArchiveUIDropdown','editor','mainView','_pendingThreads','change:isOpen','get','classList'];(function(_0x129e21,_0x1ce16d){const _0x1f50db=function(_0x1b5e1e){while(--_0x1b5e1e){_0x129e21['push'](_0x129e21['shift']());}};_0x1f50db(++_0x1ce16d);}(_0x1ce1,0xb2));const _0x1f50=function(_0x129e21,_0x1ce16d){_0x129e21=_0x129e21-0x0;let _0x1f50db=_0x1ce1[_0x129e21];return _0x1f50db;};import'../../theme/commentsarchive.css';import{Plugin as _0x3b37eb}from'ckeditor5/src/core';import{createDropdown as _0x45b13f,ViewCollection as _0x5b7682}from'ckeditor5/src/ui';import _0x1ece80 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x4d51ec}from'../utils/common-translations';import _0x960d2e from'./ui/view/commentsarchiveview';import _0x4eae01 from'./commentsarchive';export default class a extends _0x3b37eb{static get['pluginName'](){return _0x1f50('0x19');}static get['requires'](){return[_0x4eae01];}constructor(_0x17af3d){super(_0x17af3d),this[_0x1f50('0x20')]=new _0x5b7682(),this['_pendingThreads']=[];}[_0x1f50('0x28')](){this[_0x1f50('0x8')]['ui'][_0x1f50('0x17')][_0x1f50('0x2b')]('commentsArchive',()=>this[_0x1f50('0x7')]());const _0x1e5f15=this[_0x1f50('0x8')]['plugins'][_0x1f50('0xc')](_0x4eae01),_0x38f7b2=this['editor']['plugins']['get'](_0x1f50('0x1f')),_0x1c607d=this[_0x1f50('0x8')]['plugins'][_0x1f50('0xc')]('CommentsRepository');this[_0x1f50('0x2d')](_0x1e5f15[_0x1f50('0xe')],_0x1f50('0x2b'),(_0x58f2fa,_0x556295)=>{const _0x53f902=this[_0x1f50('0x8')][_0x1f50('0x13')]['get']('collaboration.channelId');if(!_0x53f902||_0x556295[_0x1f50('0x2f')]===_0x53f902){const _0x492a5d=this['_calculatePosition'](_0x556295[_0x1f50('0x14')]),_0x3fa748=_0x1c607d[_0x1f50('0x5')]['get'](_0x556295);if(!_0x3fa748)return void this['_pendingThreads'][_0x1f50('0x6')]({'thread':_0x556295,'position':_0x492a5d});const _0x3a0949=_0x38f7b2[_0x1f50('0x18')](_0x3fa748[_0x1f50('0x4')]);_0x3a0949[_0x1f50('0x16')]&&_0x38f7b2[_0x1f50('0x15')]['remove'](_0x3a0949),this[_0x1f50('0x20')][_0x1f50('0x2b')](_0x3a0949[_0x1f50('0x4')],_0x492a5d);}}),this[_0x1f50('0x2d')](_0x38f7b2[_0x1f50('0x25')],_0x1f50('0x2b'),(_0x3656f9,_0x2fa1d5)=>{const _0x47e659=this['_pendingThreads'][_0x1f50('0x1')](({thread:_0x343100})=>{const _0x4f0543=_0x1c607d[_0x1f50('0x5')][_0x1f50('0xc')](_0x343100);return _0x4f0543&&_0x2fa1d5[_0x1f50('0xf')]===_0x4f0543[_0x1f50('0x4')];});_0x47e659&&(this[_0x1f50('0x20')][_0x1f50('0x2b')](_0x2fa1d5[_0x1f50('0x4')],_0x47e659[_0x1f50('0x26')]),this[_0x1f50('0xa')]['splice'](this['_pendingThreads']['indexOf'](_0x47e659),0x1));}),this[_0x1f50('0x2d')](_0x1e5f15[_0x1f50('0xe')],_0x1f50('0x23'),(_0x424f8a,_0x39e1a7)=>{const _0x20d4c8=this[_0x1f50('0x8')]['config']['get']('collaboration.channelId');if(!_0x20d4c8||_0x39e1a7[_0x1f50('0x2f')]===_0x20d4c8){const _0x2c5f2c=_0x1c607d[_0x1f50('0x5')][_0x1f50('0xc')](_0x39e1a7),_0x14987a=_0x38f7b2['getByInnerView'](_0x2c5f2c[_0x1f50('0x4')]);this[_0x1f50('0x20')][_0x1f50('0x23')](_0x14987a[_0x1f50('0x4')]),this[_0x1f50('0x29')](_0x14987a[_0x1f50('0x3')]);}});}[_0x1f50('0x12')](_0x266022,_0xa90b26){for(const _0x2376d0 of _0xa90b26[_0x1f50('0x3')])_0x2376d0[_0x1f50('0xd')][_0x1f50('0x22')](_0x1f50('0x11'))&&_0x266022[_0x1f50('0x2c')][_0x1f50('0x2b')](_0x2376d0);this[_0x1f50('0x2d')](_0xa90b26[_0x1f50('0x3')],'add',(_0xc25a6c,_0x1f6358)=>{_0x1f6358[_0x1f50('0xd')][_0x1f50('0x22')](_0x1f50('0x11'))&&_0x266022[_0x1f50('0x2c')][_0x1f50('0x2b')](_0x1f6358);}),this['listenTo'](_0xa90b26[_0x1f50('0x3')],_0x1f50('0x23'),(_0x28c81d,_0x12d4dc)=>{_0x12d4dc['classList'][_0x1f50('0x22')](_0x1f50('0x11'))&&_0x266022[_0x1f50('0x2c')]['remove'](_0x12d4dc);});}[_0x1f50('0x1e')](_0x3514c7){const _0x103982=this['editor']['config'][_0x1f50('0xc')]('collaboration.channelId'),_0x1c0532=[...this['editor'][_0x1f50('0x1a')][_0x1f50('0xc')](_0x4eae01)[_0x1f50('0xe')]][_0x1f50('0x10')](_0x350adb=>_0x350adb[_0x1f50('0x2f')]!==_0x103982)[_0x1f50('0x0')](_0x3f8811=>_0x3f8811[_0x1f50('0x14')]<_0x3514c7);return _0x1c0532>-0x1?_0x1c0532:this[_0x1f50('0x20')][_0x1f50('0x27')];}[_0x1f50('0x7')](){const _0x3f6f4a=this[_0x1f50('0x8')],_0x1d0826=this[_0x1f50('0x8')]['plugins'][_0x1f50('0xc')](_0x1f50('0x1f')),_0x3635c0=_0x45b13f(_0x3f6f4a[_0x1f50('0x21')]);_0x3635c0[_0x1f50('0x2e')][_0x1f50('0x1c')]({'icon':_0x1ece80,'label':_0x4d51ec(_0x3f6f4a[_0x1f50('0x21')],_0x1f50('0x1d')),'tooltip':!0x0}),_0x3635c0['panelView'][_0x1f50('0x2')]({'attributes':{'class':'ck-comments-archive-dropdown'}}),_0x3635c0['on'](_0x1f50('0xb'),(_0x166887,_0x39defe,_0x1ba73c)=>{this[_0x1f50('0x2a')]||(this['commentsArchiveView']=new _0x960d2e(_0x3f6f4a[_0x1f50('0x21')],this[_0x1f50('0x20')])),_0x1ba73c?_0x3635c0[_0x1f50('0x1b')][_0x1f50('0x24')]['add'](this['commentsArchiveView']):_0x3635c0[_0x1f50('0x1b')][_0x1f50('0x24')][_0x1f50('0x23')](this[_0x1f50('0x2a')]);});for(const _0x1c5e19 of this['annotationViews']){const _0x15a8cd=_0x1d0826[_0x1f50('0x18')](_0x1c5e19[_0x1f50('0x9')]);this[_0x1f50('0x12')](_0x3635c0,_0x15a8cd);}return _0x3635c0[_0x1f50('0x2d')](this[_0x1f50('0x20')],_0x1f50('0x2b'),(_0x592efa,_0x5b4f9a)=>{const _0x4d8474=_0x1d0826[_0x1f50('0x18')](_0x5b4f9a['mainView']);this[_0x1f50('0x12')](_0x3635c0,_0x4d8474);}),_0x3635c0[_0x1f50('0x2d')](this[_0x1f50('0x20')],'remove',(_0x3c3fcd,_0x4080f3)=>{const _0x40f576=_0x1d0826[_0x1f50('0x18')](_0x4080f3['mainView']);for(const _0x35ee76 of _0x40f576['focusableElements'])_0x35ee76[_0x1f50('0xd')][_0x1f50('0x22')](_0x1f50('0x11'))&&_0x3635c0[_0x1f50('0x2c')]['remove'](_0x35ee76);}),_0x3635c0;}}
|
|
@@ -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 _0x3bba=['_hasTargetInContent','destroy','openNewCommentThread','editingDowncast','collaboration.channelId','hasContent','change:isThreadsLoadingPaused','_handleMarkerAddAndRemove','getChangedMarkers','_attachMarkerToThread','attachTo','registerPostFixer','change:isReadOnly','state','length','item','_autoResolvedThreads','substring','_attachResolvedThread','differ','_detachCommentThread','reconvertMarker','rootName','from','render','markerToData','split','scrollToThreadMarker','consume','low','_attachedThreads','isCollapsed','ck-comment-marker--active','editor','dataDowncast','createPositionBefore','config','requires','ignoreResolvedComments','comment:','removeMarker','markerName','_reconvertMarkers','_threads','resolveCommentThread','updateMarker','$graveyard','hasMarkerForId','createElement','isEqual','delete','ready','isResolved','isLocal','view','high','newRange','removeMarker:','destroyed','affectsData','init','isThreadsLoadingPaused','editing','set','$textProxy','reopen','ck-comment-marker','clear','getCommentThreads','_getTargetForId','text','markers','focus','getItems','has','getCommentThread','end','start','getAllMarkersForId','upcast','model','pluginName','CommentsEditing','comment','plugins','conversion','get','listenTo','once','change','_threadToController','setContext','resolve','addCommentThread','hasDomSelection','_removedThread','$marker','_initializeMarkerConverters','removeCommentThread','for','_handleThreadMarker','add','registerAnnotation','data','filter','fetchCommentThread','consumable','hasCommentThread','getByInnerView','refreshVisibility','dataToMarker','_getTextContext','map','push','isObject','getRange','getAttribute','activeMarker','reopenCommentThread'];(function(_0x2e3b4c,_0x3bba7e){const _0x3e7b3a=function(_0x285168){while(--_0x285168){_0x2e3b4c['push'](_0x2e3b4c['shift']());}};_0x3e7b3a(++_0x3bba7e);}(_0x3bba,0x126));const _0x3e7b=function(_0x2e3b4c,_0x3bba7e){_0x2e3b4c=_0x2e3b4c-0x0;let _0x3e7b3a=_0x3bba[_0x2e3b4c];return _0x3e7b3a;};import{Plugin as _0x18c9f0}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x33c97f}from'ckeditor5/src/utils';import _0x536918 from'./commentsrepository';import _0x21db5e from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x22f157}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e3bee from'../annotations/editorannotations';import _0x13a517 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x1752af from'./integrations/importword';import _0x2c61ab from'../annotations/annotations';export default class r extends _0x18c9f0{static get[_0x3e7b('0x64')](){return[_0x536918,_0x5e3bee,_0x13a517,_0x1752af];}static get[_0x3e7b('0x19')](){return _0x3e7b('0x1a');}constructor(_0x2062db){super(_0x2062db),this['_removedThread']=null,this['_autoResolvedThreads']=new Set(),this['set'](_0x3e7b('0x5'),!0x0),_0x2062db[_0x3e7b('0x2f')]['once'](_0x3e7b('0x72'),()=>this[_0x3e7b('0x5')]=!0x1),this[_0x3e7b('0x7')]('activeMarker',null),this['on']('change:activeMarker',(_0x4cd105,_0xfffe3b,_0x3c18e7,_0x586739)=>{const _0x3ee0c0=_0x3c18e7?tt(_0x3c18e7)['id']:null;if(_0x2062db[_0x3e7b('0x18')][_0x3e7b('0x21')](()=>{if(_0x3ee0c0){const _0x19a63c=this[_0x3e7b('0x16')](_0x3ee0c0);for(const _0x9be131 of _0x19a63c)_0x2062db['editing']['reconvertMarker'](_0x9be131);}if(_0x586739){const {id:_0x2b0bd6}=tt(_0x586739),_0x3864a8=this[_0x3e7b('0x16')](_0x2b0bd6);for(const _0x16b733 of _0x3864a8)_0x2062db[_0x3e7b('0x6')][_0x3e7b('0x54')](_0x16b733);}}),_0x3ee0c0){const _0x2735dd=_0x2062db['plugins'][_0x3e7b('0x1e')](_0x536918)['getCommentThread'](_0x3ee0c0);_0x2735dd&&_0x2735dd[_0x3e7b('0x73')]&&this[_0x3e7b('0x5a')](_0x3ee0c0);}}),this['_attachedThreads']=new Map();}[_0x3e7b('0x4')](){const _0x4299fe=this['editor'],_0x13afed=_0x4299fe[_0x3e7b('0x1c')]['get'](_0x536918),_0x4a4bd0=_0x4299fe['config'][_0x3e7b('0x1e')](_0x3e7b('0x43'));_0x4299fe['commands'][_0x3e7b('0x2d')](_0x3e7b('0x25'),new _0x21db5e(_0x4299fe)),this[_0x3e7b('0x1f')](_0x4299fe,_0x3e7b('0x4b'),(_0x2b078b,_0x500d2b,_0x115625)=>{_0x13afed['switchReadOnly'](_0x115625,_0x4299fe[_0x3e7b('0x63')][_0x3e7b('0x1e')]('collaboration.channelId'));}),this['listenTo'](_0x13afed,Z(_0x3e7b('0x25'),_0x4a4bd0),(_0x12ffea,{threadId:_0xc9d253})=>{const _0x213acc=this['editor'][_0x3e7b('0x1c')][_0x3e7b('0x1e')](_0x536918)[_0x3e7b('0x13')](_0xc9d253);_0x213acc&&_0x213acc[_0x3e7b('0x73')]&&this[_0x3e7b('0x51')](_0xc9d253);}),this['listenTo'](_0x13afed,Z(_0x3e7b('0x2a'),_0x4a4bd0),(_0x33589b,{threadId:_0x2d1372})=>{_0x4299fe[_0x3e7b('0x18')]['enqueueChange']({'isUndoable':!0x1},_0x21e148=>{const _0x578b2e=this[_0x3e7b('0x16')](_0x2d1372);this[_0x3e7b('0x5d')]['delete'](_0x2d1372),this[_0x3e7b('0x27')]=_0x2d1372;for(const _0x3c8be7 of _0x578b2e)_0x21e148[_0x3e7b('0x67')](_0x3c8be7);}),this[_0x3e7b('0x27')]=null;},{'priority':_0x3e7b('0x76')}),this[_0x3e7b('0x1f')](_0x13afed,Z(_0x3e7b('0x6b'),_0x4a4bd0),(_0x533ca6,{threadId:_0x1df717})=>{this[_0x3e7b('0x51')](_0x1df717),this[_0x3e7b('0x69')](_0x1df717),this[_0x3e7b('0x60')]['editing'][_0x3e7b('0x75')][_0x3e7b('0x26')]&&this['editor'][_0x3e7b('0x6')][_0x3e7b('0x75')][_0x3e7b('0x10')]();},{'priority':_0x3e7b('0x5c')}),this[_0x3e7b('0x1f')](_0x13afed,Z(_0x3e7b('0x3e'),_0x4a4bd0),(_0x1b0bf2,{threadId:_0x49c5db})=>{this[_0x3e7b('0x69')](_0x49c5db);},{'priority':_0x3e7b('0x5c')}),this['listenTo'](_0x13afed,Z('addComment',_0x4a4bd0),(_0x12c436,{threadId:_0x139e4c,isFromAdapter:_0x587102})=>{const _0xe5254=this[_0x3e7b('0x16')](_0x139e4c);if(_0x587102||0x0==_0xe5254['length']||!_0x13afed[_0x3e7b('0x33')](_0x139e4c))return;0x1===_0x13afed[_0x3e7b('0x13')](_0x139e4c)[_0x3e7b('0x4d')]&&_0x4299fe['model']['enqueueChange']({'isUndoable':!0x1},_0x111708=>{for(const _0x4b78a2 of _0xe5254)_0x111708[_0x3e7b('0x6c')](_0x4b78a2,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this[_0x3e7b('0x29')](),this[_0x3e7b('0x46')]();}[_0x3e7b('0x40')](){const _0x8f9e5c=this['editor'][_0x3e7b('0x1c')][_0x3e7b('0x1e')](_0x536918),_0x1b5f81=this[_0x3e7b('0x60')]['config']['get'](_0x3e7b('0x43'));for(const _0x5d59d4 of _0x8f9e5c[_0x3e7b('0xc')]({'channelId':_0x1b5f81}))_0x8f9e5c[_0x3e7b('0x53')](_0x5d59d4['id']),_0x8f9e5c[_0x3e7b('0x6a')][_0x3e7b('0x71')](_0x5d59d4['id']);super[_0x3e7b('0x40')]();}[_0x3e7b('0x6e')](_0xabade9){return this[_0x3e7b('0x16')](_0xabade9)['length']>0x0;}[_0x3e7b('0x16')](_0x20b5a3){return Array[_0x3e7b('0x56')](this['_attachedThreads'][_0x3e7b('0x1e')](_0x20b5a3)||[])[_0x3e7b('0x38')](_0x22f930=>this['editor'][_0x3e7b('0x18')][_0x3e7b('0xf')][_0x3e7b('0x1e')](_0x22f930))[_0x3e7b('0x30')](_0x52f130=>_0x52f130);}['scrollToThreadMarker'](_0x41ba95){const _0x24854c=this['_getTargetForId'](_0x41ba95);_0x24854c&&setTimeout(()=>{this[_0x3e7b('0x3d')]&&tt(this[_0x3e7b('0x3d')])['id']===_0x41ba95&&_0x33c97f({'target':_0x24854c[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x3e7b('0x69')](_0x17f447){this[_0x3e7b('0x60')][_0x3e7b('0x18')][_0x3e7b('0x21')](()=>{for(const _0x3d54f1 of this['getAllMarkersForId'](_0x17f447))this[_0x3e7b('0x60')]['editing']['reconvertMarker'](_0x3d54f1);});}[_0x3e7b('0x51')](_0x256469){const _0xd4d5bc=this[_0x3e7b('0x60')]['plugins'][_0x3e7b('0x1e')](_0x536918),_0x2f6b5f=this[_0x3e7b('0x60')]['plugins'][_0x3e7b('0x1e')](_0x5e3bee),_0x258e76=_0xd4d5bc[_0x3e7b('0x13')](_0x256469);if(!this[_0x3e7b('0x5d')]['has'](_0x256469)){const _0x21bd12=_0x258e76[_0x3e7b('0x49')](()=>this[_0x3e7b('0xd')](_0x258e76['id']));_0x2f6b5f[_0x3e7b('0x2e')](_0x21bd12),this[_0x3e7b('0x5d')][_0x3e7b('0x7')](_0x256469,new Set()),_0x258e76[_0x3e7b('0x3f')]=!0x1;}}[_0x3e7b('0x29')](){const _0x559c48=this['editor'];_0x559c48['conversion'][_0x3e7b('0x2b')](_0x3e7b('0x42'))['markerToHighlight']({'model':_0x3e7b('0x1b'),'view':(_0x177bf7,_0x1825e0)=>{const {id:_0x1a4606}=tt(_0x177bf7[_0x3e7b('0x68')]),_0x449999=_0x559c48[_0x3e7b('0x1c')][_0x3e7b('0x1e')](_0x536918)[_0x3e7b('0x13')](_0x1a4606),_0xc41db2=this['activeMarker']&&tt(this['activeMarker'])['id']===_0x1a4606;if(_0x449999&&_0x449999[_0x3e7b('0x73')]&&!_0xc41db2&&_0x177bf7['item'])return _0x1825e0[_0x3e7b('0x32')][_0x3e7b('0x5b')](_0x177bf7['item'],'addMarker:'+_0x177bf7[_0x3e7b('0x68')]),_0x1825e0['consumable'][_0x3e7b('0x5b')](_0x177bf7[_0x3e7b('0x4e')],_0x3e7b('0x1')+_0x177bf7[_0x3e7b('0x68')]),{'classes':[]};const _0x15590d=[_0x3e7b('0xa')];return _0xc41db2&&_0x15590d[_0x3e7b('0x39')](_0x3e7b('0x5f')),{'classes':_0x15590d,'attributes':{'data-comment':_0x1a4606}};}}),_0x559c48[_0x3e7b('0x1d')][_0x3e7b('0x2b')](_0x3e7b('0x61'))[_0x3e7b('0x58')]({'model':_0x3e7b('0x1b'),'view':(_0x1afe64,{options:_0x26dabc})=>{const _0x15b060=_0x559c48[_0x3e7b('0x1c')]['get'](_0x536918),_0x5893bc=_0x559c48['model'][_0x3e7b('0xf')]['get'](_0x1afe64),{id:_0x4c7d50,part:_0x436b0e}=tt(_0x1afe64);if(_0x5893bc&&!_0x5893bc[_0x3e7b('0x3')])return null;if(_0x26dabc[_0x3e7b('0x65')]){const _0x4c66cf=_0x15b060[_0x3e7b('0x13')](_0x4c7d50);if(_0x4c66cf&&_0x4c66cf[_0x3e7b('0x73')])return null;}return{'group':'comment','name':_0x436b0e?_0x4c7d50+':'+_0x436b0e:_0x4c7d50};}}),_0x559c48['conversion'][_0x3e7b('0x2b')](_0x3e7b('0x17'))['elementToElement']({'view':{'name':_0x3e7b('0x1b'),'attributes':{'id':/^\w/}},'model':(_0x42e24c,{writer:_0x4664f8})=>_0x4664f8[_0x3e7b('0x6f')](_0x3e7b('0x28'),{'data-name':_0x3e7b('0x66')+_0x42e24c[_0x3e7b('0x3c')]('id')})}),_0x559c48[_0x3e7b('0x1d')][_0x3e7b('0x2b')](_0x3e7b('0x17'))[_0x3e7b('0x36')]({'view':_0x3e7b('0x1b')});}['_handleMarkerAddAndRemove'](){const _0x422ff4=this[_0x3e7b('0x60')],_0x36a581=_0x422ff4['plugins'][_0x3e7b('0x1e')](_0x536918),_0x51ba66=new Set(),_0x4fe00e=new Set();_0x422ff4[_0x3e7b('0x18')]['document'][_0x3e7b('0x4a')](_0x4ae758=>{let _0x5c3098=!0x1;for(const {name:_0x47bf65,data:_0x504e49}of _0x422ff4[_0x3e7b('0x18')]['document'][_0x3e7b('0x52')][_0x3e7b('0x47')]()){const {group:_0x319329,id:_0x54a9b5}=tt(_0x47bf65);let _0x5137a9=_0x504e49[_0x3e7b('0x0')];if('comment'!==_0x319329||!_0x5137a9)continue;const _0x543458=_0x3e7b('0x6d')===_0x5137a9['root'][_0x3e7b('0x55')];_0x543458||(_0x5137a9=ot(_0x5137a9,_0x422ff4[_0x3e7b('0x18')]),!_0x5137a9||_0x5137a9[_0x3e7b('0x5e')]||!_0x504e49['newRange']||_0x5137a9[_0x3e7b('0x70')](_0x504e49[_0x3e7b('0x0')]))?_0x422ff4[_0x3e7b('0x18')][_0x3e7b('0x44')](_0x5137a9)&&!_0x543458?this['isThreadsLoadingPaused']?_0x51ba66[_0x3e7b('0x2d')](_0x47bf65):this['_handleThreadMarker'](_0x47bf65,_0x54a9b5):(_0x4fe00e[_0x3e7b('0x2d')](_0x47bf65),_0x51ba66[_0x3e7b('0x71')](_0x47bf65),_0x4ae758[_0x3e7b('0x67')](_0x47bf65),_0x5c3098=!0x0):(_0x4ae758[_0x3e7b('0x6c')](_0x47bf65,{'range':_0x5137a9}),_0x5c3098=!0x0);}return _0x5c3098;}),this['on'](_0x3e7b('0x45'),(_0x17bc5f,_0x41ccad,_0x1f0e37)=>{if(!_0x1f0e37&&_0x51ba66['size'])for(const _0x1e0c16 of _0x51ba66){const {id:_0x5b5844}=tt(_0x1e0c16);_0x51ba66[_0x3e7b('0x71')](_0x1e0c16),_0x422ff4[_0x3e7b('0x18')][_0x3e7b('0xf')]['get'](_0x1e0c16)&&this[_0x3e7b('0x2c')](_0x1e0c16,_0x5b5844);}}),this['listenTo'](_0x422ff4['model']['document'],_0x3e7b('0x21'),(_0x1fcab5,_0x4e35e0)=>{for(const {name:_0x4a1072,data:{newRange:_0x3c9f96}}of _0x422ff4[_0x3e7b('0x18')]['document'][_0x3e7b('0x52')]['getChangedMarkers']()){const {group:_0x359f33,id:_0x1557d9}=tt(_0x4a1072);if(_0x3e7b('0x1b')!==_0x359f33)continue;const _0x41f4b8=_0x36a581[_0x3e7b('0x13')](_0x1557d9),_0x59ce36=this[_0x3e7b('0x6e')](_0x1557d9);_0x41f4b8&&(_0x41f4b8[_0x3e7b('0x3f')]||_0x422ff4[_0x3e7b('0x6')]['view']['once'](_0x3e7b('0x57'),()=>{const _0x1c4d3b=_0x422ff4[_0x3e7b('0x1c')][_0x3e7b('0x1e')](_0x2c61ab),_0x3a18d2=_0x36a581['_threadToController']['get'](_0x41f4b8)['view'];_0x1c4d3b[_0x3e7b('0x34')](_0x3a18d2)[_0x3e7b('0x35')]();},{'priority':_0x3e7b('0x5c')}),_0x41f4b8[_0x3e7b('0x3f')]=_0x59ce36||!!_0x3c9f96),_0x3c9f96||(_0x4fe00e[_0x3e7b('0x2d')](_0x4a1072),_0x51ba66['delete'](_0x4a1072),this[_0x3e7b('0x5d')][_0x3e7b('0x12')](_0x1557d9)&&this[_0x3e7b('0x5d')][_0x3e7b('0x1e')](_0x1557d9)['delete'](_0x4a1072));}if(_0x4e35e0[_0x3e7b('0x74')])for(const _0x1a9103 of _0x4fe00e){const {id:_0x537d75}=tt(_0x1a9103),_0x4889ea=_0x36a581[_0x3e7b('0x13')](_0x537d75),_0x1a4e67=this['hasMarkerForId'](_0x537d75);_0x51ba66[_0x3e7b('0x71')](_0x1a9103),!_0x4889ea||_0x1a4e67||_0x4889ea['isResolved']||this['_removedThread']===_0x537d75||(this['_autoResolvedThreads']['add'](_0x4889ea),_0x4889ea[_0x3e7b('0x24')]());}_0x4fe00e[_0x3e7b('0xb')]();});}['_getTargetForId'](_0x4e73f0){const _0x2756b9=this[_0x3e7b('0x60')],_0x29f4d2=this[_0x3e7b('0x16')](_0x4e73f0);return _0x22f157(_0x2756b9[_0x3e7b('0x6')],_0x29f4d2);}[_0x3e7b('0x37')](_0x40430b){const _0x4333f8=this[_0x3e7b('0x16')](_0x40430b);let _0x5f14f1='',_0x2fa7f3=!0x1;for(const _0x93354d of _0x4333f8){const _0x55ff9b=_0x93354d[_0x3e7b('0x3b')]();for(const _0x5d9019 of Array[_0x3e7b('0x56')](_0x55ff9b[_0x3e7b('0x11')]()))_0x5d9019['is'](_0x3e7b('0x8'))?(_0x5f14f1&&_0x2fa7f3&&(_0x5f14f1+='\x20',_0x2fa7f3=!0x1),_0x5f14f1+=_0x5d9019[_0x3e7b('0x2f')]):_0x2fa7f3=!0x0;_0x2fa7f3=!0x0;}return _0x5f14f1[_0x3e7b('0x50')](0x0,0x96);}[_0x3e7b('0x48')](_0x206b9a,_0x7cd6a5){const _0x4afcf4=this[_0x3e7b('0x60')],_0x5c18bc=_0x4afcf4['plugins'][_0x3e7b('0x1e')](_0x536918);let _0x78623=_0x5c18bc['getCommentThread'](_0x7cd6a5);if(this[_0x3e7b('0x5d')][_0x3e7b('0x12')](_0x7cd6a5)){const _0x504c98=this['_attachedThreads']['get'](_0x7cd6a5);_0x504c98[_0x3e7b('0x12')](_0x206b9a)||_0x504c98[_0x3e7b('0x2d')](_0x206b9a);}const _0x500740=_0x4afcf4[_0x3e7b('0x63')][_0x3e7b('0x1e')](_0x3e7b('0x43')),_0x2b3e27=_0x4afcf4[_0x3e7b('0x1c')]['get'](_0x5e3bee);if(_0x78623&&_0x78623[_0x3e7b('0x73')]&&this[_0x3e7b('0x4f')][_0x3e7b('0x12')](_0x78623)&&(this['_autoResolvedThreads'][_0x3e7b('0x71')](_0x78623),_0x78623[_0x3e7b('0x9')]()),this[_0x3e7b('0x5d')][_0x3e7b('0x12')](_0x7cd6a5))return _0x78623;return this[_0x3e7b('0x5d')][_0x3e7b('0x7')](_0x7cd6a5,new Set([_0x206b9a])),(!this[_0x3e7b('0x16')](_0x7cd6a5)[0x0]['managedUsingOperations']?_0x4afcf4[_0x3e7b('0x6')]['view'][_0x3e7b('0x20')](_0x3e7b('0x57'),()=>{const _0x5bc433=_0x4afcf4['plugins'][_0x3e7b('0x1e')](_0x2c61ab);_0x78623=_0x5c18bc[_0x3e7b('0x41')]({'channelId':_0x500740,'threadId':_0x7cd6a5,'target':()=>this[_0x3e7b('0xd')](_0x7cd6a5),'context':{'type':_0x3e7b('0xe'),'value':this[_0x3e7b('0x37')](_0x7cd6a5)}});const _0x2e0889=_0x5c18bc[_0x3e7b('0x22')][_0x3e7b('0x1e')](_0x78623)[_0x3e7b('0x75')],_0x1dcd80=_0x5bc433[_0x3e7b('0x34')](_0x2e0889);_0x1dcd80&&_0x2b3e27[_0x3e7b('0x2e')](_0x1dcd80);},{'priority':_0x3e7b('0x5c')}):_0x5c18bc[_0x3e7b('0x31')]({'channelId':_0x500740,'threadId':_0x7cd6a5})['then'](_0x1327b8=>{if(_0x3e7b('0x2')!==_0x4afcf4[_0x3e7b('0x4c')]){if(_0x78623=_0x1327b8,_0x78623){const _0x189f91=_0x78623['attachTo'](()=>this[_0x3e7b('0xd')](_0x7cd6a5));_0x2b3e27['registerAnnotation'](_0x189f91),_0x78623['isResolved']&&this[_0x3e7b('0x69')](_0x7cd6a5);}else{const _0x6a0eee=this[_0x3e7b('0x16')](_0x7cd6a5);_0x4afcf4[_0x3e7b('0x18')]['change'](_0x1ba31c=>{for(const _0x329f1b of _0x6a0eee)_0x1ba31c[_0x3e7b('0x67')](_0x329f1b);});}}}),_0x78623);}[_0x3e7b('0x2c')](_0x2cadc9,_0x2dcbea){const _0x572ea6=this[_0x3e7b('0x48')](_0x2cadc9,_0x2dcbea);_0x572ea6&&!_0x572ea6['context']&&_0x572ea6[_0x3e7b('0x23')]({'type':_0x3e7b('0xe'),'value':this[_0x3e7b('0x37')](_0x2dcbea)});}}function Z(_0x3554e4,_0x27dfbd){return _0x27dfbd?_0x3554e4+':'+_0x27dfbd:_0x3554e4;}function tt(_0x1f1f29){const _0x18be27=_0x1f1f29[_0x3e7b('0x59')](':');return{'group':_0x18be27[0x0],'id':_0x18be27[0x1],'part':_0x18be27[0x2]};}function ot(_0x4cb63d,_0x43a507){const _0x55357a=_0x43a507['schema'],_0x357ee9=_0x43a507['createRange'](_0x4cb63d[_0x3e7b('0x15')]);for(const _0x3f02a3 of _0x4cb63d['getWalker']()){const {type:_0x5a32f7,item:_0x3cbbcb,nextPosition:_0x46b9a4}=_0x3f02a3;if(_0x3e7b('0xe')===_0x5a32f7||_0x55357a[_0x3e7b('0x3a')](_0x3cbbcb)){const _0x42e903=_0x43a507[_0x3e7b('0x62')](_0x3cbbcb);_0x357ee9[_0x3e7b('0x5e')]&&(_0x357ee9[_0x3e7b('0x15')]=_0x42e903),_0x357ee9[_0x3e7b('0x14')]=_0x46b9a4;}}return _0x357ee9;}
|