@ckeditor/ckeditor5-comments 38.0.1 → 38.1.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/build/comments.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -0
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +111 -0
- package/package.json +10 -8
- package/src/annotations/annotation.d.ts +86 -86
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +94 -94
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +150 -150
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +228 -227
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +63 -62
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +86 -84
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +81 -80
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +96 -96
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -25
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +86 -86
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +51 -51
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +28 -28
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +73 -72
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +48 -48
- package/src/comments/addcommentthreadcommand.d.ts +31 -31
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +27 -25
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +34 -32
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +75 -71
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1088 -1084
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +29 -25
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -13
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +17 -17
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -32
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +108 -108
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +108 -108
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -9
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +10 -10
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +82 -82
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +34 -34
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +96 -96
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -46
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +37 -37
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +113 -113
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +239 -239
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +31 -22
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +29 -28
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +172 -172
- package/src/index.d.ts +21 -19
- package/src/index.js +1 -1
- package/src/utils/common-translations.d.ts +5 -5
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +13 -13
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module comments/comments/commentsarchive
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/commentsarchive
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
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
|
+
/**
|
|
10
|
+
* This plugin handles all operations on resolved threads needed for the comments archive.
|
|
11
|
+
*/
|
|
12
|
+
export default class CommentsArchive extends ContextPlugin {
|
|
13
|
+
resolvedThreads: Collection<CommentThread>;
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get pluginName(): "CommentsArchive";
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get requires(): readonly [typeof CommentsRepository, typeof Annotations];
|
|
22
|
+
constructor(context: Context | Editor);
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
init(): void;
|
|
27
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x97e2=['resolveCommentThread','resolvedThreads','getCommentThread','listenTo','has','CommentsArchive','init','isActive','highest','length','remove','addCommentThread','plugins','pluginName','_calculatePosition','reopenCommentThread','requires','get','findIndex','removeCommentThread','add'];(function(_0x103681,_0x97e264){const _0x4d79bb=function(_0x217770){while(--_0x217770){_0x103681['push'](_0x103681['shift']());}};_0x4d79bb(++_0x97e264);}(_0x97e2,0xa8));const _0x4d79=function(_0x103681,_0x97e264){_0x103681=_0x103681-0x0;let _0x4d79bb=_0x97e2[_0x103681];return _0x4d79bb;};import{ContextPlugin as _0x558d73}from'ckeditor5/src/core';import{Collection as _0x4a1067}from'ckeditor5/src/utils';import _0x457a06 from'./commentsrepository';import _0x151e42 from'../annotations/annotations';export default class p extends _0x558d73{static get[_0x4d79('0xd')](){return _0x4d79('0x5');}static get[_0x4d79('0x10')](){return[_0x457a06,_0x151e42];}constructor(_0x382ecf){super(_0x382ecf),this[_0x4d79('0x1')]=new _0x4a1067();}[_0x4d79('0x6')](){const _0x535b1f=this['context'],_0xeb8406=_0x535b1f[_0x4d79('0xc')][_0x4d79('0x11')](_0x457a06),_0x11f59b=_0x535b1f[_0x4d79('0xc')]['get'](_0x151e42);this[_0x4d79('0x3')](_0xeb8406,_0x4d79('0xb'),(_0x50a1b7,{threadId:_0x26e58d,resolvedAt:_0x1053d9,deletedAt:_0x493246})=>{if(_0x1053d9&&!_0x493246){const _0x40f1ae=_0xeb8406[_0x4d79('0x2')](_0x26e58d);this[_0x4d79('0x1')][_0x4d79('0x14')](_0x40f1ae,this[_0x4d79('0xe')](_0x1053d9));}}),this[_0x4d79('0x3')](_0xeb8406,_0x4d79('0x0'),(_0x58f0d6,{threadId:_0x32c79c,resolvedAt:_0x222f7e})=>{const _0x48a869=_0xeb8406[_0x4d79('0x2')](_0x32c79c);this[_0x4d79('0x1')][_0x4d79('0x14')](_0x48a869,this[_0x4d79('0xe')](_0x222f7e));},{'priority':_0x4d79('0x8')}),this['listenTo'](_0xeb8406,_0x4d79('0xf'),(_0x3be614,{threadId:_0x521235})=>{const _0x564a20=_0xeb8406[_0x4d79('0x2')](_0x521235);this['resolvedThreads'][_0x4d79('0x4')](_0x564a20)&&this[_0x4d79('0x1')][_0x4d79('0xa')](_0x564a20);},{'priority':'highest'}),this[_0x4d79('0x3')](_0xeb8406,_0x4d79('0x13'),(_0x53422d,{threadId:_0x155795})=>{const _0x2fe240=_0xeb8406[_0x4d79('0x2')](_0x155795);this['resolvedThreads'][_0x4d79('0x4')](_0x2fe240)&&this[_0x4d79('0x1')][_0x4d79('0xa')](_0x2fe240);},{'priority':_0x4d79('0x8')}),this[_0x4d79('0x3')](_0x11f59b['collection'],'focus',(_0x2a4408,_0xbff332)=>{_0xbff332[_0x4d79('0x7')]=!0x0,_0x11f59b['activate'](_0xbff332);});}[_0x4d79('0xe')](_0x2a3a26){const _0x38a916=[...this[_0x4d79('0x1')]][_0x4d79('0x12')](_0x59878a=>_0x59878a['resolvedAt']<_0x2a3a26);return _0x38a916>-0x1?_0x38a916:this[_0x4d79('0x1')][_0x4d79('0x9')];}}
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module comments/comments/commentsarchiveui
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/commentsarchiveui
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
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';
|
|
11
|
+
/**
|
|
12
|
+
* Creates comments archive {@link module:ui/dropdown/dropdownview~DropdownView ui dropdown} and binds with
|
|
13
|
+
* resolved comment thread annotation views.
|
|
14
|
+
*/
|
|
15
|
+
export default class CommentsArchiveUI extends Plugin {
|
|
16
|
+
commentsArchiveView: CommentsArchiveView | undefined;
|
|
17
|
+
annotationViews: ViewCollection<AnnotationView>;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "CommentsArchiveUI";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): readonly [typeof CommentsArchive];
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
constructor(editor: Editor);
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
init(): void;
|
|
34
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5121=['requires','focusTracker','.ck.ck-body','config','set','COMMENTS_ARCHIVE','editor','stop','_calculatePosition','forEach','querySelectorAll','filter','stopListening','resolvedAt','isOpen','locale','plugins','_pendingThreads','_createArchiveUIDropdown','mousedown','collaboration.channelId','commentsArchiveView','extendTemplate','getByInnerView','Annotations','pluginName','add','get','ck-comments-archive-dropdown','panelView','resolvedThreads','findIndex','_threadToController','_visibleAnnotations','annotationViews','collection','high','channelId','componentFactory','children','view','element','CommentsArchiveUI','buttonView','innerView','length','listenTo','remove','init'];(function(_0x2bd79a,_0x5121d6){const _0xfe1ef8=function(_0x1cebc7){while(--_0x1cebc7){_0x2bd79a['push'](_0x2bd79a['shift']());}};_0xfe1ef8(++_0x5121d6);}(_0x5121,0x11c));const _0xfe1e=function(_0x2bd79a,_0x5121d6){_0x2bd79a=_0x2bd79a-0x0;let _0xfe1ef8=_0x5121[_0x2bd79a];return _0xfe1ef8;};import'../../theme/commentsarchive.css';import{Plugin as _0x1caeed}from'ckeditor5/src/core';import{createDropdown as _0x43377e,clickOutsideHandler as _0x1591cd,ViewCollection as _0x1e7870}from'ckeditor5/src/ui';import _0xaeac20 from'../../theme/icons/comments-archive.svg';import{getTranslation as _0x262d85}from'../utils/common-translations';import _0x5c8ec6 from'./ui/view/commentsarchiveview';import _0xbea4d1 from'./commentsarchive';export default class a extends _0x1caeed{static get[_0xfe1e('0x23')](){return _0xfe1e('0x3');}static get[_0xfe1e('0xa')](){return[_0xbea4d1];}constructor(_0x361036){super(_0x361036),this['annotationViews']=new _0x1e7870(),this[_0xfe1e('0x1b')]=[];}[_0xfe1e('0x9')](){this[_0xfe1e('0x10')]['ui'][_0xfe1e('0x30')][_0xfe1e('0x24')]('commentsArchive',()=>this['_createArchiveUIDropdown']());const _0x213b17=this[_0xfe1e('0x10')][_0xfe1e('0x1a')][_0xfe1e('0x25')](_0xbea4d1),_0x19c704=this[_0xfe1e('0x10')][_0xfe1e('0x1a')][_0xfe1e('0x25')](_0xfe1e('0x22')),_0x301a1a=this[_0xfe1e('0x10')][_0xfe1e('0x1a')][_0xfe1e('0x25')]('CommentsRepository');this[_0xfe1e('0x7')](_0x213b17['resolvedThreads'],_0xfe1e('0x24'),(_0x31512d,_0x251c16)=>{const _0x571bae=this[_0xfe1e('0x10')][_0xfe1e('0xd')]['get'](_0xfe1e('0x1e'));if(!_0x571bae||_0x251c16['channelId']===_0x571bae){const _0x31fb63=this[_0xfe1e('0x12')](_0x251c16[_0xfe1e('0x17')]),_0x52a965=_0x301a1a[_0xfe1e('0x2a')][_0xfe1e('0x25')](_0x251c16);if(!_0x52a965)return void this[_0xfe1e('0x1b')]['push']({'thread':_0x251c16,'position':_0x31fb63});const _0x564b96=_0x19c704[_0xfe1e('0x21')](_0x52a965[_0xfe1e('0x1')]);_0x564b96['isVisible']&&_0x19c704[_0xfe1e('0x2b')][_0xfe1e('0x8')](_0x564b96),this[_0xfe1e('0x2c')]['add'](_0x564b96[_0xfe1e('0x1')],_0x31fb63);}}),this[_0xfe1e('0x7')](_0x19c704[_0xfe1e('0x2d')],'add',(_0x1e7473,_0x3ca51d)=>{this['_pendingThreads'][_0xfe1e('0x13')](({thread:_0x26eabe,position:_0x109f45},_0x7f010b)=>{const _0x4b77e5=_0x301a1a[_0xfe1e('0x2a')][_0xfe1e('0x25')](_0x26eabe);_0x4b77e5&&_0x3ca51d[_0xfe1e('0x5')]===_0x4b77e5[_0xfe1e('0x1')]&&(this[_0xfe1e('0x2c')][_0xfe1e('0x24')](_0x3ca51d[_0xfe1e('0x1')],_0x109f45),this[_0xfe1e('0x1b')]['splice'](_0x7f010b,0x1));});}),this[_0xfe1e('0x7')](_0x213b17['resolvedThreads'],_0xfe1e('0x8'),(_0x2ca0e3,_0x2a528f)=>{const _0xb858c4=this[_0xfe1e('0x10')]['config'][_0xfe1e('0x25')](_0xfe1e('0x1e'));if(!_0xb858c4||_0x2a528f['channelId']===_0xb858c4){const _0x4f9dc6=_0x301a1a[_0xfe1e('0x2a')]['get'](_0x2a528f),_0x3b9174=_0x19c704[_0xfe1e('0x21')](_0x4f9dc6['view'])[_0xfe1e('0x1')];this[_0xfe1e('0x2c')][_0xfe1e('0x8')](_0x3b9174);}});}[_0xfe1e('0x12')](_0x43762b){const _0x71b4a2=this[_0xfe1e('0x10')][_0xfe1e('0xd')][_0xfe1e('0x25')](_0xfe1e('0x1e')),_0x9af664=[...this['editor'][_0xfe1e('0x1a')][_0xfe1e('0x25')](_0xbea4d1)[_0xfe1e('0x28')]][_0xfe1e('0x15')](_0x2f130c=>_0x2f130c[_0xfe1e('0x2f')]!==_0x71b4a2)[_0xfe1e('0x29')](_0x4ed471=>_0x4ed471[_0xfe1e('0x17')]<_0x43762b);return _0x9af664>-0x1?_0x9af664:this[_0xfe1e('0x2c')][_0xfe1e('0x6')];}[_0xfe1e('0x1c')](){const _0x404096=this[_0xfe1e('0x10')],_0x435f60=_0x43377e(_0x404096['locale']);return _0x435f60['on']('render',()=>{_0x435f60[_0xfe1e('0x16')](document,_0xfe1e('0x1d')),_0x1591cd({'emitter':_0x435f60,'activator':()=>_0x435f60['isOpen'],'callback':()=>{_0x435f60[_0xfe1e('0x18')]=!0x1;},'contextElements':()=>[_0x435f60[_0xfe1e('0x2')],...document[_0xfe1e('0x14')](_0xfe1e('0xc'))]});}),_0x435f60[_0xfe1e('0xb')]['on']('change:isFocused',_0x4a4797=>{_0x4a4797[_0xfe1e('0x11')]();},{'priority':_0xfe1e('0x2e')}),_0x435f60[_0xfe1e('0x4')][_0xfe1e('0xe')]({'icon':_0xaeac20,'label':_0x262d85(_0x404096['locale'],_0xfe1e('0xf')),'tooltip':!0x0}),_0x435f60[_0xfe1e('0x27')][_0xfe1e('0x20')]({'attributes':{'class':_0xfe1e('0x26')}}),_0x435f60['on']('change:isOpen',(_0x12484d,_0x567887,_0x2dc345)=>{this[_0xfe1e('0x1f')]||(this[_0xfe1e('0x1f')]=new _0x5c8ec6(_0x404096[_0xfe1e('0x19')],this[_0xfe1e('0x2c')])),_0x2dc345?_0x435f60[_0xfe1e('0x27')][_0xfe1e('0x0')]['add'](this[_0xfe1e('0x1f')]):_0x435f60[_0xfe1e('0x27')][_0xfe1e('0x0')][_0xfe1e('0x8')](this[_0xfe1e('0x1f')]);}),_0x435f60;}}
|
|
@@ -1,71 +1,75 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module comments/comments/commentsediting
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin, type
|
|
5
|
-
import type { Marker } from 'ckeditor5/src/engine';
|
|
6
|
-
import '
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
*
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
*
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
* @
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @inheritDoc
|
|
38
|
-
*/
|
|
39
|
-
static get
|
|
40
|
-
/**
|
|
41
|
-
* @inheritDoc
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @inheritDoc
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @inheritDoc
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
*
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
*
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/comments/commentsediting
|
|
3
|
+
*/
|
|
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';
|
|
9
|
+
import '../../theme/commentmarker.css';
|
|
10
|
+
import CommentsImportWord from './integrations/importword';
|
|
11
|
+
/**
|
|
12
|
+
* Plugin that keeps in sync comments in {@link module:comments/comments/commentsrepository~CommentsRepository} with
|
|
13
|
+
* {@link module:engine/model/markercollection~Marker comment markers}.
|
|
14
|
+
*/
|
|
15
|
+
export default class CommentsEditing extends Plugin {
|
|
16
|
+
/**
|
|
17
|
+
* If set to `true`, the plugin won't load comment thread for the new marker immediately after the marker is added to the editor.
|
|
18
|
+
* Instead, the plugin will wait until the flag will be set to `false` and then load missing comments.
|
|
19
|
+
*
|
|
20
|
+
* It's useful to hold fetching comments from the server when comments are used with real-time collaboration.
|
|
21
|
+
* When a user connects to an existing document, the operations from the history need to be applied one by one.
|
|
22
|
+
* An operation which added a new comment marker might be followed by an operation which removes that marker, so it's not
|
|
23
|
+
* necessary to make an additional request then.
|
|
24
|
+
*
|
|
25
|
+
* @observable
|
|
26
|
+
*/
|
|
27
|
+
isThreadsLoadingPaused: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Name of the active comment marker.
|
|
30
|
+
*
|
|
31
|
+
* Markers conversion checks if comment should be marked as active and adds/removes additional css class during the conversion.
|
|
32
|
+
*
|
|
33
|
+
* @observable
|
|
34
|
+
*/
|
|
35
|
+
activeMarker: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
static get requires(): readonly [typeof CommentsRepository, typeof EditorAnnotations, typeof CommentsRestrictedEditingMode, typeof CommentsImportWord];
|
|
40
|
+
/**
|
|
41
|
+
* @inheritDoc
|
|
42
|
+
*/
|
|
43
|
+
static get pluginName(): "CommentsEditing";
|
|
44
|
+
/**
|
|
45
|
+
* @inheritDoc
|
|
46
|
+
*/
|
|
47
|
+
constructor(editor: Editor);
|
|
48
|
+
/**
|
|
49
|
+
* @inheritDoc
|
|
50
|
+
*/
|
|
51
|
+
init(): void;
|
|
52
|
+
/**
|
|
53
|
+
* @inheritDoc
|
|
54
|
+
*/
|
|
55
|
+
destroy(): void;
|
|
56
|
+
/**
|
|
57
|
+
* Returns `true` if there is at least one marker in the content that is related to a comment thread with given `threadId`.
|
|
58
|
+
*
|
|
59
|
+
* @param threadId Comment thread id.
|
|
60
|
+
*/
|
|
61
|
+
hasMarkerForId(threadId: string): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Returns all markers that are related to the comment thread with the given `threadId`.
|
|
64
|
+
*
|
|
65
|
+
* @param threadId Comment thread id.
|
|
66
|
+
* @returns Array with all markers related to given comment thread.
|
|
67
|
+
*/
|
|
68
|
+
getAllMarkersForId(threadId: string): Array<Marker>;
|
|
69
|
+
/**
|
|
70
|
+
* Scrolls editing view to the first thread marker.
|
|
71
|
+
*
|
|
72
|
+
* @param threadId Comment thread id.
|
|
73
|
+
*/
|
|
74
|
+
scrollToThreadMarker(threadId: string): void;
|
|
75
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1b47=['markers','reopenCommentThread','isCollapsed','isEqual','end','high','markerToData','ck-comment-marker--active','_threads','set','push','addComment','get','upcast','_hasTargetInContent','refreshVisibility','comment:','getItems','plugins','consumable','_attachedThreads','root','setContext','_initializeMarkerConverters','registerAnnotation','includes','comment','has','scrollToThreadMarker','resolve','markerName','length','addCommentThread','newRange','delete','editor','text','$textProxy','getCommentThread','activeMarker','isResolved','editing','view','attachTo','once','collaboration.channelId','createRange','removeMarker','filter','change:isReadOnly','data','focus','then','_attachMarkerToThread','low','document','dataToMarker','schema','getAttribute','from','conversion','registerPostFixer','getCommentThreads','removeCommentThread','map','getChangedMarkers','differ','getAllMarkersForId','getWalker','ignoreResolvedComments','addMarker:','dataDowncast','getByInnerView','_threadToController','commands','add','hasMarkerForId','for','fetchCommentThread','model','$graveyard','_getTextContext','substring','reconvertMarker','createPositionBefore','CommentsEditing','consume','_handleThreadMarker','affectsData','config','ck-comment-marker','size','editingDowncast','start','elementToElement','destroy','enqueueChange','listenTo','hasDomSelection','createElement','split','change','ready','_handleMarkerAddAndRemove','getRange','resolveCommentThread','item','managedUsingOperations','render','isThreadsLoadingPaused','_getTargetForId','updateMarker','$marker'];(function(_0xdec847,_0x1b474a){const _0x4d0f3e=function(_0x53b8ca){while(--_0x53b8ca){_0xdec847['push'](_0xdec847['shift']());}};_0x4d0f3e(++_0x1b474a);}(_0x1b47,0x9e));const _0x4d0f=function(_0xdec847,_0x1b474a){_0xdec847=_0xdec847-0x0;let _0x4d0f3e=_0x1b47[_0xdec847];return _0x4d0f3e;};import{Plugin as _0x4497cf}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2f7256}from'ckeditor5/src/utils';import _0x54e255 from'./commentsrepository';import _0x522ff5 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x253c05}from'ckeditor5-collaboration/src/collaboration-core';import _0x1c74e4 from'../annotations/editorannotations';import _0x4fa397 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x5def8f from'./integrations/importword';import _0x39f743 from'../annotations/annotations';export default class r extends _0x4497cf{static get['requires'](){return[_0x54e255,_0x1c74e4,_0x4fa397,_0x5def8f];}static get['pluginName'](){return _0x4d0f('0x28');}constructor(_0x3b4047){super(_0x3b4047),this['set'](_0x4d0f('0x40'),!0x0),_0x3b4047[_0x4d0f('0x5')]['once'](_0x4d0f('0x39'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x4d0f('0x6b'),null),this['on']('change:activeMarker',(_0x2d95f2,_0x196811,_0xb4823,_0xa65089)=>{const _0xa5af14=_0xb4823?ot(_0xb4823)['id']:null;if(_0x3b4047[_0x4d0f('0x22')][_0x4d0f('0x38')](()=>{if(_0xa5af14){const _0x54bbd3=this['getAllMarkersForId'](_0xa5af14);for(const _0x59c37b of _0x54bbd3)_0x3b4047[_0x4d0f('0x6d')][_0x4d0f('0x26')](_0x59c37b);}if(_0xa65089){const {id:_0x16edd4}=ot(_0xa65089),_0x55a47a=this[_0x4d0f('0x16')](_0x16edd4);for(const _0x567aed of _0x55a47a)_0x3b4047[_0x4d0f('0x6d')][_0x4d0f('0x26')](_0x567aed);}}),_0xa5af14){const _0xe8c19f=_0x3b4047[_0x4d0f('0x56')]['get'](_0x54e255)[_0x4d0f('0x6a')](_0xa5af14);_0xe8c19f&&_0xe8c19f['isResolved']&&this['scrollToThreadMarker'](_0xa5af14);}}),this['_attachedThreads']=new Map();}['init'](){const _0x11cb71=this['editor'],_0x4b81c3=_0x11cb71[_0x4d0f('0x56')]['get'](_0x54e255),_0x1772e6=_0x11cb71[_0x4d0f('0x2c')][_0x4d0f('0x50')](_0x4d0f('0x0'));_0x11cb71[_0x4d0f('0x1d')][_0x4d0f('0x1e')](_0x4d0f('0x64'),new _0x522ff5(_0x11cb71)),this[_0x4d0f('0x34')](_0x11cb71,_0x4d0f('0x4'),(_0x587a4b,_0x448975,_0x5e55d8)=>{_0x4b81c3['switchReadOnly'](_0x5e55d8,_0x11cb71['config'][_0x4d0f('0x50')](_0x4d0f('0x0')));}),this['listenTo'](_0x4b81c3,tt(_0x4d0f('0x64'),_0x1772e6),(_0x108ac3,{threadId:_0x23c8a9})=>{const _0xc8f2e8=_0x11cb71[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x1c74e4),_0x359402=this[_0x4d0f('0x67')][_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255)['getCommentThread'](_0x23c8a9);if(_0x359402&&_0x359402['isResolved']&&!this[_0x4d0f('0x58')][_0x4d0f('0x5f')](_0x23c8a9)){const _0x477c36=_0x359402[_0x4d0f('0x6f')](()=>this[_0x4d0f('0x41')](_0x359402['id']));_0xc8f2e8['registerAnnotation'](_0x477c36),this['_attachedThreads']['set'](_0x23c8a9,[]),0x0===this[_0x4d0f('0x16')](_0x23c8a9)[_0x4d0f('0x63')]&&(_0x359402[_0x4d0f('0x52')]=!0x1);}}),this[_0x4d0f('0x34')](_0x4b81c3,tt(_0x4d0f('0x12'),_0x1772e6),(_0x3d4f65,{threadId:_0x5c06e2})=>{_0x11cb71[_0x4d0f('0x22')]['enqueueChange']({'isUndoable':!0x1},_0x2b5c7c=>{const _0xc3827=this[_0x4d0f('0x16')](_0x5c06e2);this[_0x4d0f('0x58')]['delete'](_0x5c06e2);for(const _0x235029 of _0xc3827)_0x2b5c7c[_0x4d0f('0x2')](_0x235029);});},{'priority':_0x4d0f('0x49')}),this[_0x4d0f('0x34')](_0x4b81c3,tt(_0x4d0f('0x3c'),_0x1772e6),(_0x3ca3a9,{threadId:_0x1fe638})=>{this['_reconvertMarkers'](_0x1fe638),this[_0x4d0f('0x67')][_0x4d0f('0x6d')][_0x4d0f('0x6e')][_0x4d0f('0x35')]&&this[_0x4d0f('0x67')][_0x4d0f('0x6d')][_0x4d0f('0x6e')][_0x4d0f('0x6')]();},{'priority':_0x4d0f('0x9')}),this[_0x4d0f('0x34')](_0x4b81c3,tt(_0x4d0f('0x45'),_0x1772e6),(_0x316ebd,{threadId:_0x391091})=>{this['_reconvertMarkers'](_0x391091);},{'priority':_0x4d0f('0x9')}),this[_0x4d0f('0x34')](_0x4b81c3,tt(_0x4d0f('0x4f'),_0x1772e6),(_0x571ec1,{threadId:_0xbe6e7a,isFromAdapter:_0xf7a045})=>{const _0x4f858a=this[_0x4d0f('0x16')](_0xbe6e7a);if(_0xf7a045||0x0==_0x4f858a[_0x4d0f('0x63')]||!_0x4b81c3['hasCommentThread'](_0xbe6e7a))return;0x1===_0x4b81c3[_0x4d0f('0x6a')](_0xbe6e7a)[_0x4d0f('0x63')]&&_0x11cb71[_0x4d0f('0x22')][_0x4d0f('0x33')]({'isUndoable':!0x1},_0x407873=>{for(const _0x3a8885 of _0x4f858a)_0x407873[_0x4d0f('0x42')](_0x3a8885,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x4d0f('0x9')}),this[_0x4d0f('0x5b')](),this[_0x4d0f('0x3a')]();}['destroy'](){const _0x4eed6e=this[_0x4d0f('0x67')][_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255),_0x541492=this[_0x4d0f('0x67')][_0x4d0f('0x2c')][_0x4d0f('0x50')]('collaboration.channelId');for(const _0x28bdfd of _0x4eed6e[_0x4d0f('0x11')]({'channelId':_0x541492}))_0x4eed6e['_detachCommentThread'](_0x28bdfd['id']),_0x4eed6e[_0x4d0f('0x4c')][_0x4d0f('0x66')](_0x28bdfd['id']);super[_0x4d0f('0x32')]();}['hasMarkerForId'](_0xf7f0de){return this[_0x4d0f('0x16')](_0xf7f0de)[_0x4d0f('0x63')]>0x0;}['getAllMarkersForId'](_0x65e10d){return(this[_0x4d0f('0x58')][_0x4d0f('0x50')](_0x65e10d)||[])[_0x4d0f('0x13')](_0x2ba522=>this[_0x4d0f('0x67')][_0x4d0f('0x22')][_0x4d0f('0x44')]['get'](_0x2ba522))[_0x4d0f('0x3')](_0x3c58f3=>_0x3c58f3);}[_0x4d0f('0x60')](_0x32867f){const _0x1dca8f=this[_0x4d0f('0x41')](_0x32867f);_0x1dca8f&&setTimeout(()=>{this['activeMarker']&&ot(this[_0x4d0f('0x6b')])['id']===_0x32867f&&_0x2f7256({'target':_0x1dca8f[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x10d04a){this[_0x4d0f('0x67')][_0x4d0f('0x22')][_0x4d0f('0x38')](()=>{for(const _0x3eb0b8 of this[_0x4d0f('0x16')](_0x10d04a))this[_0x4d0f('0x67')][_0x4d0f('0x6d')][_0x4d0f('0x26')](_0x3eb0b8);});}['_initializeMarkerConverters'](){const _0x10d465=this[_0x4d0f('0x67')];_0x10d465[_0x4d0f('0xf')][_0x4d0f('0x20')](_0x4d0f('0x2f'))['markerToHighlight']({'model':_0x4d0f('0x5e'),'view':(_0xc8a9cc,_0x46d62b)=>{const {id:_0x190907}=ot(_0xc8a9cc['markerName']),_0x4ed419=_0x10d465[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255)[_0x4d0f('0x6a')](_0x190907),_0x44117a=this[_0x4d0f('0x6b')]&&ot(this['activeMarker'])['id']===_0x190907;if(_0x4ed419&&_0x4ed419[_0x4d0f('0x6c')]&&!_0x44117a&&_0xc8a9cc[_0x4d0f('0x3d')])return _0x46d62b[_0x4d0f('0x57')][_0x4d0f('0x29')](_0xc8a9cc['item'],_0x4d0f('0x19')+_0xc8a9cc[_0x4d0f('0x62')]),_0x46d62b[_0x4d0f('0x57')]['consume'](_0xc8a9cc['item'],'removeMarker:'+_0xc8a9cc[_0x4d0f('0x62')]),{'classes':[]};const _0x43fd99=[_0x4d0f('0x2d')];return _0x44117a&&_0x43fd99['push'](_0x4d0f('0x4b')),{'classes':_0x43fd99,'attributes':{'data-comment':_0x190907}};}}),_0x10d465['conversion'][_0x4d0f('0x20')](_0x4d0f('0x1a'))[_0x4d0f('0x4a')]({'model':_0x4d0f('0x5e'),'view':(_0x41bd4d,{options:_0x4b1b5e})=>{const _0x22e6b7=_0x10d465[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255),_0x5257ea=_0x10d465[_0x4d0f('0x22')][_0x4d0f('0x44')][_0x4d0f('0x50')](_0x41bd4d),{id:_0x365e69,part:_0x27d53f}=ot(_0x41bd4d),_0x46a712=_0x22e6b7[_0x4d0f('0x6a')](_0x365e69);return _0x5257ea&&!_0x5257ea[_0x4d0f('0x2b')]||_0x46a712&&_0x46a712[_0x4d0f('0x6c')]&&_0x4b1b5e[_0x4d0f('0x18')]?null:{'group':_0x4d0f('0x5e'),'name':_0x27d53f?_0x365e69+':'+_0x27d53f:_0x365e69};}}),_0x10d465[_0x4d0f('0xf')][_0x4d0f('0x20')](_0x4d0f('0x51'))[_0x4d0f('0x31')]({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x13b1c1,{writer:_0x1feda6})=>_0x1feda6[_0x4d0f('0x36')](_0x4d0f('0x43'),{'data-name':_0x4d0f('0x54')+_0x13b1c1[_0x4d0f('0xd')]('id')})}),_0x10d465['conversion'][_0x4d0f('0x20')]('upcast')[_0x4d0f('0xb')]({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x1f20d2=this[_0x4d0f('0x67')],_0x46ee56=_0x1f20d2[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255),_0x5c6d21=new Set();_0x1f20d2['model']['document'][_0x4d0f('0x10')](_0x1860a8=>{let _0x293d94=!0x1;for(const {name:_0x28399d,data:_0x2e08ee}of _0x1f20d2['model'][_0x4d0f('0xa')][_0x4d0f('0x15')][_0x4d0f('0x14')]()){const {group:_0xbeb272,id:_0x1cb389}=ot(_0x28399d);let _0xe2cceb=_0x2e08ee['newRange'];if(_0x4d0f('0x5e')!==_0xbeb272||!_0xe2cceb)continue;const _0xe8d1d1=_0x4d0f('0x23')===_0xe2cceb[_0x4d0f('0x59')]['rootName'];_0xe8d1d1||(_0xe2cceb=et(_0xe2cceb,_0x1f20d2['model']),!_0xe2cceb||!_0x2e08ee[_0x4d0f('0x65')]||_0xe2cceb[_0x4d0f('0x47')](_0x2e08ee['newRange']))?!_0xe2cceb||!_0x1f20d2[_0x4d0f('0x22')]['hasContent'](_0xe2cceb)||this[_0x4d0f('0x58')][_0x4d0f('0x5f')](_0x1cb389)&&_0xe8d1d1?(_0x1860a8[_0x4d0f('0x2')](_0x28399d),_0x293d94=!0x0):_0xe8d1d1||(this[_0x4d0f('0x40')]?_0x5c6d21['add'](_0x28399d):this[_0x4d0f('0x2a')](_0x28399d,_0x1cb389)):(_0x1860a8[_0x4d0f('0x42')](_0x28399d,{'range':_0xe2cceb}),_0x293d94=!0x0);}return _0x293d94;}),this['on']('change:isThreadsLoadingPaused',(_0x5132ef,_0x3667ad,_0x3a81b8)=>{if(!_0x3a81b8&&_0x5c6d21[_0x4d0f('0x2e')])for(const _0x130e0d of _0x5c6d21){const {id:_0x294a99}=ot(_0x130e0d);_0x5c6d21[_0x4d0f('0x66')](_0x294a99),_0x1f20d2['model'][_0x4d0f('0x44')]['get'](_0x130e0d)&&this[_0x4d0f('0x2a')](_0x130e0d,_0x294a99);}}),this['listenTo'](_0x1f20d2[_0x4d0f('0x22')][_0x4d0f('0xa')],'change',(_0x316967,_0x20d34e)=>{for(const {name:_0x658046,data:{newRange:_0x33fc49}}of _0x1f20d2['model'][_0x4d0f('0xa')][_0x4d0f('0x15')][_0x4d0f('0x14')]()){const {group:_0x53ecf9,id:_0xb4f7d2}=ot(_0x658046);if(_0x4d0f('0x5e')!==_0x53ecf9)continue;const _0x45eaa3=_0x46ee56['getCommentThread'](_0xb4f7d2),_0x3ec9f9=this[_0x4d0f('0x1f')](_0xb4f7d2);_0x45eaa3&&(_0x45eaa3[_0x4d0f('0x52')]||_0x1f20d2[_0x4d0f('0x6d')][_0x4d0f('0x6e')]['once'](_0x4d0f('0x3f'),()=>{const _0x5a32b7=_0x1f20d2[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x39f743),_0xdfecb9=_0x46ee56[_0x4d0f('0x1c')][_0x4d0f('0x50')](_0x45eaa3)[_0x4d0f('0x6e')];_0x5a32b7[_0x4d0f('0x1b')](_0xdfecb9)[_0x4d0f('0x53')]();},{'priority':_0x4d0f('0x9')}),_0x45eaa3[_0x4d0f('0x52')]=_0x3ec9f9||!!_0x33fc49),!_0x33fc49&&_0x20d34e['isLocal']&&(_0x5c6d21[_0x4d0f('0x66')](_0xb4f7d2),_0x45eaa3&&!_0x45eaa3[_0x4d0f('0x6c')]&&!_0x3ec9f9&&this[_0x4d0f('0x58')]['has'](_0xb4f7d2)&&(this[_0x4d0f('0x58')]['delete'](_0xb4f7d2),_0x45eaa3[_0x4d0f('0x61')]()));}});}[_0x4d0f('0x41')](_0x51636f){const _0x17808d=this[_0x4d0f('0x67')],_0x418222=this['getAllMarkersForId'](_0x51636f);return _0x253c05(_0x17808d[_0x4d0f('0x6d')],_0x418222);}[_0x4d0f('0x24')](_0x494309){const _0x22afbd=this['getAllMarkersForId'](_0x494309);let _0x140d36='',_0x1b69bc=!0x1;for(const _0x1a2042 of _0x22afbd){const _0x51d069=_0x1a2042[_0x4d0f('0x3b')]();for(const _0x119c68 of Array[_0x4d0f('0xe')](_0x51d069[_0x4d0f('0x55')]()))_0x119c68['is'](_0x4d0f('0x69'))?(_0x140d36&&_0x1b69bc&&(_0x140d36+='\x20',_0x1b69bc=!0x1),_0x140d36+=_0x119c68[_0x4d0f('0x5')]):_0x1b69bc=!0x0;_0x1b69bc=!0x0;}return _0x140d36[_0x4d0f('0x25')](0x0,0x96);}[_0x4d0f('0x8')](_0x3a0657,_0x116ee9){const _0x2c9def=this[_0x4d0f('0x67')],_0x4146e0=_0x2c9def[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x54e255);let _0x5a3d8d=_0x4146e0[_0x4d0f('0x6a')](_0x116ee9);if(this[_0x4d0f('0x58')]['has'](_0x116ee9)){const _0x54a613=this['_attachedThreads'][_0x4d0f('0x50')](_0x116ee9);return _0x54a613[_0x4d0f('0x5d')](_0x3a0657)||_0x54a613[_0x4d0f('0x4e')](_0x3a0657),_0x5a3d8d;}this['_attachedThreads'][_0x4d0f('0x4d')](_0x116ee9,[_0x3a0657]);const _0x2782d9=_0x2c9def[_0x4d0f('0x2c')][_0x4d0f('0x50')](_0x4d0f('0x0')),_0x18710c=_0x2c9def[_0x4d0f('0x56')][_0x4d0f('0x50')](_0x1c74e4);if(_0x5a3d8d&&_0x5a3d8d[_0x4d0f('0x6c')])return _0x5a3d8d['reopen'](),_0x5a3d8d;return!this[_0x4d0f('0x16')](_0x116ee9)[0x0][_0x4d0f('0x3e')]?_0x2c9def[_0x4d0f('0x6d')][_0x4d0f('0x6e')][_0x4d0f('0x70')]('render',()=>{const _0x4ef953=_0x2c9def[_0x4d0f('0x56')]['get'](_0x39f743);_0x5a3d8d=_0x4146e0['openNewCommentThread']({'channelId':_0x2782d9,'threadId':_0x116ee9,'target':()=>this[_0x4d0f('0x41')](_0x116ee9),'context':{'type':_0x4d0f('0x68'),'value':this[_0x4d0f('0x24')](_0x116ee9)}});const _0x2e88a9=_0x4146e0['_threadToController'][_0x4d0f('0x50')](_0x5a3d8d)[_0x4d0f('0x6e')],_0x3362b4=_0x4ef953[_0x4d0f('0x1b')](_0x2e88a9);_0x3362b4&&_0x18710c[_0x4d0f('0x5c')](_0x3362b4);},{'priority':'low'}):_0x4146e0[_0x4d0f('0x21')]({'channelId':_0x2782d9,'threadId':_0x116ee9})[_0x4d0f('0x7')](_0x212204=>{if('destroyed'!==_0x2c9def['state']){if(_0x5a3d8d=_0x212204,_0x5a3d8d){const _0x1b550e=_0x5a3d8d[_0x4d0f('0x6f')](()=>this['_getTargetForId'](_0x116ee9));_0x18710c[_0x4d0f('0x5c')](_0x1b550e),_0x5a3d8d[_0x4d0f('0x6c')]&&this['_reconvertMarkers'](_0x116ee9);}else{const _0x2812e6=this[_0x4d0f('0x16')](_0x116ee9);_0x2c9def['model'][_0x4d0f('0x38')](_0x2dd636=>{for(const _0x181d69 of _0x2812e6)_0x2dd636[_0x4d0f('0x2')](_0x181d69);});}}}),_0x5a3d8d;}[_0x4d0f('0x2a')](_0xdc863c,_0x16de4b){const _0x1372ce=this[_0x4d0f('0x8')](_0xdc863c,_0x16de4b);_0x1372ce&&!_0x1372ce['context']&&_0x1372ce[_0x4d0f('0x5a')]({'type':_0x4d0f('0x68'),'value':this[_0x4d0f('0x24')](_0x16de4b)});}}function tt(_0x39d02d,_0x51c659){return _0x51c659?_0x39d02d+':'+_0x51c659:_0x39d02d;}function ot(_0xfc4e50){const _0x23eed2=_0xfc4e50[_0x4d0f('0x37')](':');return{'group':_0x23eed2[0x0],'id':_0x23eed2[0x1],'part':_0x23eed2[0x2]};}function et(_0x2226bb,_0x2ac3dc){const _0x48de27=_0x2ac3dc[_0x4d0f('0xc')],_0x5a1b22=_0x2ac3dc[_0x4d0f('0x1')](_0x2226bb[_0x4d0f('0x30')]);for(const _0x1c4731 of _0x2226bb[_0x4d0f('0x17')]()){const {type:_0x367ee1,item:_0xa5b165,nextPosition:_0x3408c0}=_0x1c4731;if(_0x4d0f('0x68')===_0x367ee1||_0x48de27['isObject'](_0xa5b165)){const _0x1bd2db=_0x2ac3dc[_0x4d0f('0x27')](_0xa5b165);_0x5a1b22[_0x4d0f('0x46')]&&(_0x5a1b22['start']=_0x1bd2db),_0x5a1b22[_0x4d0f('0x48')]=_0x3408c0;}}return _0x5a1b22[_0x4d0f('0x46')]?null:_0x5a1b22;}
|
|
23
|
+
const _0x1a0d=['consumable','pluginName','map','high','add','getAttribute','markerToHighlight','activeMarker','createElement','text','_initializeMarkerConverters','_hasTargetInContent','collaboration.channelId','filter','ck-comment-marker','addComment','isLocal','plugins','change','$textProxy','push','editing','isResolved','document','_attachMarkerToThread','comment','length','getAllMarkersForId','getItems','hasMarkerForId','requires','$marker','_handleMarkerAddAndRemove','destroy','reconvertMarker','differ','end','editor','dataDowncast','markerName','render','reopenCommentThread','createPositionBefore','isEqual','isCollapsed','openNewCommentThread','hasContent','getRange','scrollToThreadMarker','once','config','upcast','focus','_getTextContext','delete','addCommentThread','resolveCommentThread','root','view','_threadToController','for','size','_reconvertMarkers','_attachedThreads','_handleThreadMarker','getByInnerView','removeMarker:','start','isObject','editingDowncast','then','get','getWalker','model','getCommentThreads','CommentsEditing','_getTargetForId','listenTo','setContext','low','ready','init','state','isThreadsLoadingPaused','schema','getCommentThread','data','item','addMarker:','comment:','newRange','change:isThreadsLoadingPaused','getChangedMarkers','ck-comment-marker--active','elementToElement','dataToMarker','includes','set','destroyed','attachTo','split','removeMarker','createRange','reopen','markers','affectsData','hasCommentThread','enqueueChange','managedUsingOperations','conversion','has','consume','registerAnnotation','updateMarker','registerPostFixer','removeCommentThread'];(function(_0x54cd25,_0x1a0d10){const _0x5a03e2=function(_0x2255f9){while(--_0x2255f9){_0x54cd25['push'](_0x54cd25['shift']());}};_0x5a03e2(++_0x1a0d10);}(_0x1a0d,0x1c8));const _0x5a03=function(_0x54cd25,_0x1a0d10){_0x54cd25=_0x54cd25-0x0;let _0x5a03e2=_0x1a0d[_0x54cd25];return _0x5a03e2;};import{Plugin as _0x3fbbee}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3101be}from'ckeditor5/src/utils';import _0x47bd7a from'./commentsrepository';import _0x1775a7 from'./addcommentthreadcommand';import{getAllMarkersDomElementsSorted as _0x2910b8}from'ckeditor5-collaboration/src/collaboration-core';import _0x207f98 from'../annotations/editorannotations';import _0x7f8c81 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';import _0x2054e9 from'./integrations/importword';import _0x6ecb72 from'../annotations/annotations';export default class r extends _0x3fbbee{static get[_0x5a03('0x26')](){return[_0x47bd7a,_0x207f98,_0x7f8c81,_0x2054e9];}static get[_0x5a03('0x9')](){return _0x5a03('0x53');}constructor(_0x18bde5){super(_0x18bde5),this['set'](_0x5a03('0x5b'),!0x0),_0x18bde5['data'][_0x5a03('0x39')](_0x5a03('0x58'),()=>this[_0x5a03('0x5b')]=!0x1),this['set'](_0x5a03('0xf'),null),this['on']('change:activeMarker',(_0xfadae0,_0x710e04,_0x21b281,_0x4bd1a9)=>{const _0xf977d8=_0x21b281?ot(_0x21b281)['id']:null;if(_0x18bde5['model']['change'](()=>{if(_0xf977d8){const _0x1c8e28=this[_0x5a03('0x23')](_0xf977d8);for(const _0x1d865e of _0x1c8e28)_0x18bde5[_0x5a03('0x1d')][_0x5a03('0x2a')](_0x1d865e);}if(_0x4bd1a9){const {id:_0x5bc742}=ot(_0x4bd1a9),_0x49a7b9=this[_0x5a03('0x23')](_0x5bc742);for(const _0x11bc94 of _0x49a7b9)_0x18bde5['editing'][_0x5a03('0x2a')](_0x11bc94);}}),_0xf977d8){const _0x1aba85=_0x18bde5['plugins'][_0x5a03('0x4f')](_0x47bd7a)[_0x5a03('0x5d')](_0xf977d8);_0x1aba85&&_0x1aba85[_0x5a03('0x1e')]&&this[_0x5a03('0x38')](_0xf977d8);}}),this[_0x5a03('0x47')]=new Map();}[_0x5a03('0x59')](){const _0x15ad12=this[_0x5a03('0x2d')],_0x414481=_0x15ad12['plugins'][_0x5a03('0x4f')](_0x47bd7a),_0x227eb3=_0x15ad12[_0x5a03('0x3a')][_0x5a03('0x4f')]('collaboration.channelId');_0x15ad12['commands'][_0x5a03('0xc')](_0x5a03('0x3f'),new _0x1775a7(_0x15ad12)),this[_0x5a03('0x55')](_0x15ad12,'change:isReadOnly',(_0x467f5e,_0x339e27,_0x16ba96)=>{_0x414481['switchReadOnly'](_0x16ba96,_0x15ad12[_0x5a03('0x3a')][_0x5a03('0x4f')]('collaboration.channelId'));}),this[_0x5a03('0x55')](_0x414481,tt(_0x5a03('0x3f'),_0x227eb3),(_0x106246,{threadId:_0x26dafd})=>{const _0x7c0c05=_0x15ad12[_0x5a03('0x19')]['get'](_0x207f98),_0x220ea0=this[_0x5a03('0x2d')][_0x5a03('0x19')][_0x5a03('0x4f')](_0x47bd7a)[_0x5a03('0x5d')](_0x26dafd);if(_0x220ea0&&_0x220ea0['isResolved']&&!this['_attachedThreads']['has'](_0x26dafd)){const _0x31826b=_0x220ea0[_0x5a03('0x6b')](()=>this['_getTargetForId'](_0x220ea0['id']));_0x7c0c05[_0x5a03('0x4')](_0x31826b),this[_0x5a03('0x47')][_0x5a03('0x69')](_0x26dafd,[]),0x0===this[_0x5a03('0x23')](_0x26dafd)[_0x5a03('0x22')]&&(_0x220ea0['_hasTargetInContent']=!0x1);}}),this[_0x5a03('0x55')](_0x414481,tt(_0x5a03('0x7'),_0x227eb3),(_0x2d0ca8,{threadId:_0x3a1054})=>{_0x15ad12[_0x5a03('0x51')][_0x5a03('0x73')]({'isUndoable':!0x1},_0x176a3a=>{const _0xf14afc=this[_0x5a03('0x23')](_0x3a1054);this['_attachedThreads'][_0x5a03('0x3e')](_0x3a1054);for(const _0x54bf28 of _0xf14afc)_0x176a3a[_0x5a03('0x6d')](_0x54bf28);});},{'priority':_0x5a03('0xb')}),this[_0x5a03('0x55')](_0x414481,tt(_0x5a03('0x40'),_0x227eb3),(_0x357d3f,{threadId:_0x2942f2})=>{this[_0x5a03('0x46')](_0x2942f2),this[_0x5a03('0x2d')][_0x5a03('0x1d')]['view']['hasDomSelection']&&this[_0x5a03('0x2d')]['editing']['view'][_0x5a03('0x3c')]();},{'priority':'low'}),this['listenTo'](_0x414481,tt(_0x5a03('0x31'),_0x227eb3),(_0x4495f1,{threadId:_0x4552b1})=>{this['_reconvertMarkers'](_0x4552b1);},{'priority':'low'}),this[_0x5a03('0x55')](_0x414481,tt(_0x5a03('0x17'),_0x227eb3),(_0x392a19,{threadId:_0xb816a9,isFromAdapter:_0x1c0cc2})=>{const _0x41053a=this['getAllMarkersForId'](_0xb816a9);if(_0x1c0cc2||0x0==_0x41053a[_0x5a03('0x22')]||!_0x414481[_0x5a03('0x72')](_0xb816a9))return;0x1===_0x414481['getCommentThread'](_0xb816a9)[_0x5a03('0x22')]&&_0x15ad12[_0x5a03('0x51')]['enqueueChange']({'isUndoable':!0x1},_0x4c27b7=>{for(const _0x9202f9 of _0x41053a)_0x4c27b7['updateMarker'](_0x9202f9,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x5a03('0x57')}),this['_initializeMarkerConverters'](),this[_0x5a03('0x28')]();}[_0x5a03('0x29')](){const _0x539ca7=this[_0x5a03('0x2d')][_0x5a03('0x19')][_0x5a03('0x4f')](_0x47bd7a),_0x6ca73b=this['editor']['config']['get'](_0x5a03('0x14'));for(const _0x574c05 of _0x539ca7[_0x5a03('0x52')]({'channelId':_0x6ca73b}))_0x539ca7['_detachCommentThread'](_0x574c05['id']),_0x539ca7['_threads'][_0x5a03('0x3e')](_0x574c05['id']);super['destroy']();}[_0x5a03('0x25')](_0x1062b6){return this[_0x5a03('0x23')](_0x1062b6)['length']>0x0;}[_0x5a03('0x23')](_0x40df49){return(this[_0x5a03('0x47')][_0x5a03('0x4f')](_0x40df49)||[])[_0x5a03('0xa')](_0x4e374a=>this[_0x5a03('0x2d')][_0x5a03('0x51')][_0x5a03('0x70')][_0x5a03('0x4f')](_0x4e374a))[_0x5a03('0x15')](_0x47e0fd=>_0x47e0fd);}[_0x5a03('0x38')](_0x3cb5d2){const _0x198c11=this[_0x5a03('0x54')](_0x3cb5d2);_0x198c11&&setTimeout(()=>{this['activeMarker']&&ot(this['activeMarker'])['id']===_0x3cb5d2&&_0x3101be({'target':_0x198c11[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}[_0x5a03('0x46')](_0x4cefef){this['editor'][_0x5a03('0x51')][_0x5a03('0x1a')](()=>{for(const _0x153d99 of this[_0x5a03('0x23')](_0x4cefef))this['editor']['editing']['reconvertMarker'](_0x153d99);});}[_0x5a03('0x12')](){const _0x40a727=this[_0x5a03('0x2d')];_0x40a727[_0x5a03('0x1')][_0x5a03('0x44')](_0x5a03('0x4d'))[_0x5a03('0xe')]({'model':_0x5a03('0x21'),'view':(_0x3d4f2a,_0x5690fa)=>{const {id:_0x19c0f7}=ot(_0x3d4f2a[_0x5a03('0x2f')]),_0x1a74b1=_0x40a727[_0x5a03('0x19')][_0x5a03('0x4f')](_0x47bd7a)[_0x5a03('0x5d')](_0x19c0f7),_0x5d0b39=this[_0x5a03('0xf')]&&ot(this['activeMarker'])['id']===_0x19c0f7;if(_0x1a74b1&&_0x1a74b1['isResolved']&&!_0x5d0b39&&_0x3d4f2a[_0x5a03('0x5f')])return _0x5690fa['consumable'][_0x5a03('0x3')](_0x3d4f2a['item'],_0x5a03('0x60')+_0x3d4f2a[_0x5a03('0x2f')]),_0x5690fa[_0x5a03('0x8')]['consume'](_0x3d4f2a[_0x5a03('0x5f')],_0x5a03('0x4a')+_0x3d4f2a['markerName']),{'classes':[]};const _0x3bf006=[_0x5a03('0x16')];return _0x5d0b39&&_0x3bf006[_0x5a03('0x1c')](_0x5a03('0x65')),{'classes':_0x3bf006,'attributes':{'data-comment':_0x19c0f7}};}}),_0x40a727['conversion']['for'](_0x5a03('0x2e'))['markerToData']({'model':'comment','view':(_0x13143d,{options:_0x4b1171})=>{const _0x50c275=_0x40a727[_0x5a03('0x19')]['get'](_0x47bd7a),_0x2d9c2a=_0x40a727[_0x5a03('0x51')][_0x5a03('0x70')][_0x5a03('0x4f')](_0x13143d),{id:_0x16b464,part:_0x4fbf37}=ot(_0x13143d);if(_0x2d9c2a&&!_0x2d9c2a[_0x5a03('0x71')])return null;if(_0x4b1171['ignoreResolvedComments']){const _0x1076f4=_0x50c275[_0x5a03('0x5d')](_0x16b464);if(_0x1076f4&&_0x1076f4[_0x5a03('0x1e')])return null;}return{'group':_0x5a03('0x21'),'name':_0x4fbf37?_0x16b464+':'+_0x4fbf37:_0x16b464};}}),_0x40a727[_0x5a03('0x1')][_0x5a03('0x44')](_0x5a03('0x3b'))[_0x5a03('0x66')]({'view':{'name':_0x5a03('0x21'),'attributes':{'id':/^\w/}},'model':(_0x350499,{writer:_0x752cbb})=>_0x752cbb[_0x5a03('0x10')](_0x5a03('0x27'),{'data-name':_0x5a03('0x61')+_0x350499[_0x5a03('0xd')]('id')})}),_0x40a727[_0x5a03('0x1')]['for'](_0x5a03('0x3b'))[_0x5a03('0x67')]({'view':_0x5a03('0x21')});}[_0x5a03('0x28')](){const _0x1c047a=this['editor'],_0x2085e0=_0x1c047a['plugins']['get'](_0x47bd7a),_0x19bf0a=new Set();_0x1c047a[_0x5a03('0x51')][_0x5a03('0x1f')][_0x5a03('0x6')](_0x20dfed=>{let _0x364adc=!0x1;for(const {name:_0x3dadfb,data:_0x360919}of _0x1c047a[_0x5a03('0x51')][_0x5a03('0x1f')][_0x5a03('0x2b')]['getChangedMarkers']()){const {group:_0x3fbb60,id:_0x158b57}=ot(_0x3dadfb);let _0x501166=_0x360919[_0x5a03('0x62')];if(_0x5a03('0x21')!==_0x3fbb60||!_0x501166)continue;const _0x47ee17='$graveyard'===_0x501166[_0x5a03('0x41')]['rootName'];_0x47ee17||(_0x501166=et(_0x501166,_0x1c047a['model']),!_0x501166||!_0x360919['newRange']||_0x501166[_0x5a03('0x33')](_0x360919[_0x5a03('0x62')]))?!_0x501166||!_0x1c047a[_0x5a03('0x51')][_0x5a03('0x36')](_0x501166)||this[_0x5a03('0x47')][_0x5a03('0x2')](_0x158b57)&&_0x47ee17?(_0x20dfed['removeMarker'](_0x3dadfb),_0x364adc=!0x0):_0x47ee17||(this['isThreadsLoadingPaused']?_0x19bf0a[_0x5a03('0xc')](_0x3dadfb):this[_0x5a03('0x48')](_0x3dadfb,_0x158b57)):(_0x20dfed[_0x5a03('0x5')](_0x3dadfb,{'range':_0x501166}),_0x364adc=!0x0);}return _0x364adc;}),this['on'](_0x5a03('0x63'),(_0x149edd,_0x1fafeb,_0x11d54e)=>{if(!_0x11d54e&&_0x19bf0a[_0x5a03('0x45')])for(const _0x218928 of _0x19bf0a){const {id:_0x28cb84}=ot(_0x218928);_0x19bf0a[_0x5a03('0x3e')](_0x28cb84),_0x1c047a['model'][_0x5a03('0x70')][_0x5a03('0x4f')](_0x218928)&&this[_0x5a03('0x48')](_0x218928,_0x28cb84);}}),this[_0x5a03('0x55')](_0x1c047a['model'][_0x5a03('0x1f')],_0x5a03('0x1a'),(_0x5a2d2c,_0x251aa7)=>{for(const {name:_0x32df9d,data:{newRange:_0x483872}}of _0x1c047a[_0x5a03('0x51')][_0x5a03('0x1f')][_0x5a03('0x2b')][_0x5a03('0x64')]()){const {group:_0x2e2bfc,id:_0x24631b}=ot(_0x32df9d);if(_0x5a03('0x21')!==_0x2e2bfc)continue;const _0x3dcf4e=_0x2085e0['getCommentThread'](_0x24631b),_0x169d4e=this[_0x5a03('0x25')](_0x24631b);_0x3dcf4e&&(_0x3dcf4e[_0x5a03('0x13')]||_0x1c047a[_0x5a03('0x1d')][_0x5a03('0x42')][_0x5a03('0x39')](_0x5a03('0x30'),()=>{const _0x3d3b8a=_0x1c047a[_0x5a03('0x19')][_0x5a03('0x4f')](_0x6ecb72),_0x5b1bad=_0x2085e0[_0x5a03('0x43')][_0x5a03('0x4f')](_0x3dcf4e)[_0x5a03('0x42')];_0x3d3b8a[_0x5a03('0x49')](_0x5b1bad)['refreshVisibility']();},{'priority':_0x5a03('0x57')}),_0x3dcf4e[_0x5a03('0x13')]=_0x169d4e||!!_0x483872),!_0x483872&&_0x251aa7[_0x5a03('0x18')]&&(_0x19bf0a[_0x5a03('0x3e')](_0x24631b),_0x3dcf4e&&!_0x3dcf4e[_0x5a03('0x1e')]&&!_0x169d4e&&this[_0x5a03('0x47')]['has'](_0x24631b)&&(this[_0x5a03('0x47')][_0x5a03('0x3e')](_0x24631b),_0x3dcf4e['resolve']()));}});}[_0x5a03('0x54')](_0x507bba){const _0x2da416=this[_0x5a03('0x2d')],_0x40f474=this[_0x5a03('0x23')](_0x507bba);return _0x2910b8(_0x2da416[_0x5a03('0x1d')],_0x40f474);}[_0x5a03('0x3d')](_0x51df18){const _0x21d026=this[_0x5a03('0x23')](_0x51df18);let _0x442a06='',_0x4118bf=!0x1;for(const _0x26984f of _0x21d026){const _0x47fba9=_0x26984f[_0x5a03('0x37')]();for(const _0x2dfaa4 of Array['from'](_0x47fba9[_0x5a03('0x24')]()))_0x2dfaa4['is'](_0x5a03('0x1b'))?(_0x442a06&&_0x4118bf&&(_0x442a06+='\x20',_0x4118bf=!0x1),_0x442a06+=_0x2dfaa4[_0x5a03('0x5e')]):_0x4118bf=!0x0;_0x4118bf=!0x0;}return _0x442a06['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x2e8dc4,_0x2ba0dd){const _0x42a690=this[_0x5a03('0x2d')],_0x5b0939=_0x42a690['plugins'][_0x5a03('0x4f')](_0x47bd7a);let _0x4ef45c=_0x5b0939[_0x5a03('0x5d')](_0x2ba0dd);if(this[_0x5a03('0x47')][_0x5a03('0x2')](_0x2ba0dd)){const _0x178bfd=this['_attachedThreads']['get'](_0x2ba0dd);return _0x178bfd[_0x5a03('0x68')](_0x2e8dc4)||_0x178bfd[_0x5a03('0x1c')](_0x2e8dc4),_0x4ef45c;}this[_0x5a03('0x47')][_0x5a03('0x69')](_0x2ba0dd,[_0x2e8dc4]);const _0x3d3df4=_0x42a690[_0x5a03('0x3a')][_0x5a03('0x4f')](_0x5a03('0x14')),_0x134b28=_0x42a690['plugins'][_0x5a03('0x4f')](_0x207f98);if(_0x4ef45c&&_0x4ef45c['isResolved'])return _0x4ef45c[_0x5a03('0x6f')](),_0x4ef45c;return!this['getAllMarkersForId'](_0x2ba0dd)[0x0][_0x5a03('0x0')]?_0x42a690[_0x5a03('0x1d')][_0x5a03('0x42')][_0x5a03('0x39')]('render',()=>{const _0x2f16be=_0x42a690[_0x5a03('0x19')][_0x5a03('0x4f')](_0x6ecb72);_0x4ef45c=_0x5b0939[_0x5a03('0x35')]({'channelId':_0x3d3df4,'threadId':_0x2ba0dd,'target':()=>this[_0x5a03('0x54')](_0x2ba0dd),'context':{'type':'text','value':this[_0x5a03('0x3d')](_0x2ba0dd)}});const _0x25f64e=_0x5b0939[_0x5a03('0x43')][_0x5a03('0x4f')](_0x4ef45c)['view'],_0x1b5079=_0x2f16be[_0x5a03('0x49')](_0x25f64e);_0x1b5079&&_0x134b28[_0x5a03('0x4')](_0x1b5079);},{'priority':_0x5a03('0x57')}):_0x5b0939['fetchCommentThread']({'channelId':_0x3d3df4,'threadId':_0x2ba0dd})[_0x5a03('0x4e')](_0x20eda4=>{if(_0x5a03('0x6a')!==_0x42a690[_0x5a03('0x5a')]){if(_0x4ef45c=_0x20eda4,_0x4ef45c){const _0x5d59c0=_0x4ef45c[_0x5a03('0x6b')](()=>this['_getTargetForId'](_0x2ba0dd));_0x134b28[_0x5a03('0x4')](_0x5d59c0),_0x4ef45c[_0x5a03('0x1e')]&&this[_0x5a03('0x46')](_0x2ba0dd);}else{const _0x5c87fd=this[_0x5a03('0x23')](_0x2ba0dd);_0x42a690[_0x5a03('0x51')][_0x5a03('0x1a')](_0x473bf9=>{for(const _0x530e95 of _0x5c87fd)_0x473bf9[_0x5a03('0x6d')](_0x530e95);});}}}),_0x4ef45c;}[_0x5a03('0x48')](_0x4e0760,_0x22e8fa){const _0x23d85a=this[_0x5a03('0x20')](_0x4e0760,_0x22e8fa);_0x23d85a&&!_0x23d85a['context']&&_0x23d85a[_0x5a03('0x56')]({'type':_0x5a03('0x11'),'value':this[_0x5a03('0x3d')](_0x22e8fa)});}}function tt(_0x17c5e4,_0x3d47e2){return _0x3d47e2?_0x17c5e4+':'+_0x3d47e2:_0x17c5e4;}function ot(_0x940fa6){const _0x40948d=_0x940fa6[_0x5a03('0x6c')](':');return{'group':_0x40948d[0x0],'id':_0x40948d[0x1],'part':_0x40948d[0x2]};}function et(_0x38381b,_0x130f93){const _0x17bd79=_0x130f93[_0x5a03('0x5c')],_0x5c07cd=_0x130f93[_0x5a03('0x6e')](_0x38381b[_0x5a03('0x4b')]);for(const _0xfff7a9 of _0x38381b[_0x5a03('0x50')]()){const {type:_0x19f692,item:_0x350799,nextPosition:_0x9f02b7}=_0xfff7a9;if(_0x5a03('0x11')===_0x19f692||_0x17bd79[_0x5a03('0x4c')](_0x350799)){const _0x25dd71=_0x130f93[_0x5a03('0x32')](_0x350799);_0x5c07cd['isCollapsed']&&(_0x5c07cd[_0x5a03('0x4b')]=_0x25dd71),_0x5c07cd[_0x5a03('0x2c')]=_0x9f02b7;}}return _0x5c07cd[_0x5a03('0x34')]?null:_0x5c07cd;}
|