@ckeditor/ckeditor5-comments 45.2.1-alpha.9 → 46.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/dist/index-editor.css +69 -67
- package/dist/index.css +80 -78
- package/dist/index.js +11 -9
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +19 -19
- package/src/annotations/annotation.d.ts +4 -4
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +2 -2
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +4 -4
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +4 -4
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +4 -4
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +5 -5
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +5 -5
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +14 -13
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +1 -1
- package/src/annotations/view/sidebaritemview.js +2 -1
- package/src/annotations/view/sidebarview.d.ts +4 -4
- package/src/annotations/view/sidebarview.js +2 -1
- package/src/annotations/widesidebar.d.ts +5 -5
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +2 -2
- package/src/comments/addcommentthreadcommand.d.ts +48 -9
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +3 -3
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +4 -4
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +7 -7
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +14 -6
- package/src/comments/commentsrepository.js +3 -3
- package/src/comments/commentsui.d.ts +5 -5
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/clipboard.d.ts +1 -1
- package/src/comments/integrations/clipboard.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/integrations/showcommenthighlights.d.ts +1 -1
- package/src/comments/integrations/showcommenthighlights.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +4 -4
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +2 -2
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +4 -4
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +4 -4
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +2 -2
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +2 -2
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.d.ts +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +2 -2
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +2 -2
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +2 -2
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +3 -3
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +10 -10
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +2 -2
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +3 -3
- package/src/index.d.ts +29 -25
- package/src/index.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +1 -1
- package/src/utils/createmutationobserver.js +1 -1
- package/theme/comment.css +2 -1
- package/theme/commentinput.css +2 -1
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
import { PendingActions, ContextPlugin, Editor, type Context } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Collection } from 'ckeditor5/src/utils.js';
|
|
11
11
|
import { Users, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
12
|
-
import CommentThreadController from './ui/commentthreadcontroller.js';
|
|
12
|
+
import { CommentThreadController } from './ui/commentthreadcontroller.js';
|
|
13
13
|
import '../../theme/comment.css';
|
|
14
14
|
import '../../theme/commentthread.css';
|
|
15
15
|
import '../../theme/commentinput.css';
|
|
16
|
-
import Annotation,
|
|
17
|
-
import Annotations from '../annotations/annotations.js';
|
|
18
|
-
import type {
|
|
16
|
+
import { Annotation, type AnnotationTarget } from '../annotations/annotation.js';
|
|
17
|
+
import { Annotations } from '../annotations/annotations.js';
|
|
18
|
+
import type { BaseCommentThreadView } from './ui/view/basecommentthreadview.js';
|
|
19
19
|
/**
|
|
20
20
|
* Stores the list of {@link module:comments/comments/commentsrepository~CommentThread}
|
|
21
21
|
* and provides event-driven API for managing them. It is also responsible for using the comments adapter
|
|
@@ -50,7 +50,7 @@ import type { default as BaseCommentThreadView } from './ui/view/basecommentthre
|
|
|
50
50
|
*
|
|
51
51
|
* For more information about the comments adapter see {@link module:comments/comments/commentsrepository~CommentsAdapter}.
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
53
|
+
export declare class CommentsRepository extends ContextPlugin {
|
|
54
54
|
/**
|
|
55
55
|
* The currently active comment thread.
|
|
56
56
|
* An annotation with this thread will be marked as active.
|
|
@@ -206,6 +206,14 @@ export default class CommentsRepository extends ContextPlugin {
|
|
|
206
206
|
skipEmpty?: boolean;
|
|
207
207
|
toJSON: true;
|
|
208
208
|
}): Array<CommentThreadDataJSON>;
|
|
209
|
+
/**
|
|
210
|
+
* Returns the annotation associated with the given comment thread.
|
|
211
|
+
*/
|
|
212
|
+
getAnnotationForCommentThread(thread: CommentThread): Annotation | null;
|
|
213
|
+
/**
|
|
214
|
+
* Returns the comment thread associated with the given annotation.
|
|
215
|
+
*/
|
|
216
|
+
getCommentThreadForAnnotation(annotation: Annotation): CommentThread | null;
|
|
209
217
|
/**
|
|
210
218
|
* Marks a comment thread with the given ID as active.
|
|
211
219
|
* When `threadId` is `null`, the currently active comment thread will be deactivated.
|
|
@@ -237,7 +245,7 @@ export default class CommentsRepository extends ContextPlugin {
|
|
|
237
245
|
*/
|
|
238
246
|
getPermissions(channelId?: string | symbol): CommentPermissionsConfig;
|
|
239
247
|
}
|
|
240
|
-
interface CommentPermissionsConfig {
|
|
248
|
+
export interface CommentPermissionsConfig {
|
|
241
249
|
/**
|
|
242
250
|
* Allows for removing other users' threads.
|
|
243
251
|
*/
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x22fa(_0x1a10d9,_0x42f6f3){const _0x46ca6c=_0x46ca();return _0x22fa=function(_0x22fa45,_0x3f2506){_0x22fa45=_0x22fa45-0x86;let _0x23f0a9=_0x46ca6c[_0x22fa45];return _0x23f0a9;},_0x22fa(_0x1a10d9,_0x42f6f3);}const _0x502d17=_0x22fa;(function(_0x14c0e3,_0x4a9ac8){const _0x203957=_0x22fa,_0x20cd2f=_0x14c0e3();while(!![]){try{const _0xc1033=parseInt(_0x203957(0x157))/0x1*(parseInt(_0x203957(0xc9))/0x2)+-parseInt(_0x203957(0xf6))/0x3*(-parseInt(_0x203957(0x91))/0x4)+parseInt(_0x203957(0xb7))/0x5*(parseInt(_0x203957(0x135))/0x6)+parseInt(_0x203957(0x151))/0x7*(parseInt(_0x203957(0xd6))/0x8)+parseInt(_0x203957(0xf5))/0x9*(parseInt(_0x203957(0xd9))/0xa)+parseInt(_0x203957(0xa1))/0xb*(-parseInt(_0x203957(0xf7))/0xc)+-parseInt(_0x203957(0x8f))/0xd;if(_0xc1033===_0x4a9ac8)break;else _0x20cd2f['push'](_0x20cd2f['shift']());}catch(_0x488d1f){_0x20cd2f['push'](_0x20cd2f['shift']());}}}(_0x46ca,0x54a86));import{PendingActions as _0x226da4,ContextPlugin as _0x339a19,Editor as _0x205eaa}from'ckeditor5/src/core.js';import{Collection as _0x44c181,uid as _0xb60eea,CKEditorError as _0x2c90f4,ObservableMixin as _0x305c66}from'ckeditor5/src/utils.js';import{getDateTimeFormatter as _0xa210e7,hashObject as _0x3c1a52,Users as _0x37550f}from'ckeditor5-collaboration/src/collaboration-core.js';import{cloneDeep as _0x48626b,isEqual as _0x4dad87,set as _0x563551,unset as _0x12a163}from'es-toolkit/compat';import _0x5b8940 from'./ui/commentthreadcontroller.js';import _0x5ccd0f from'./ui/view/commentthreadview.js';import _0x240ed7 from'./ui/view/commentview.js';import{getTranslation as _0x4c6d8f}from'../utils/common-translations.js';import'../../theme/comment.css';import'../../theme/commentthread.css';import'../../theme/commentinput.css';import _0x105101 from'../annotations/view/annotationview.js';import _0x2f64ef from'../annotations/annotation.js';import _0x408b13 from'../annotations/annotations.js';const _t=Symbol(_0x502d17(0x88)),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};function _0x46ca(){const _0x4c06a4=['CommentView','commentsrepository-adapter-already-set','commentsrepository-resolved-comment-thread','isDirty','_removeComment','comments','type','_viewToController','_resolveCommentThread','max','3456DYltaN','4044lnvIfD','20232mxSXzQ','@external','resolveCommentThread','_update','commentsrepository-remove-comment-internal-error','setAttribute','addUser','destroy','remove','PENDING_ACTION_COMMENT_THREAD','change:_readOnlyChannels','config','commentsrepository-update-missing-comment','comments.editorConfig','textContent','isFromAdapter','commentsrepository-invalid-comment-thread-id','commentsrepository-missing-thread-and-adapter-method','innerView','attributes','comments.CommentThreadView','plugins','_getExternalAuthor','comments.copyMarkers','getTime','_hasTargetInContent','values','author','commentId','_addComment','hasCommentThread','from','openNewCommentThread','isResolvable','_createNewComment','_add','listenTo','isExternal','_updateCommentThread','removeCommentThread','_adapter','licenseKey','comment','refreshVisibility','admin','modifyAll','createCommentThreadController','commentsrepository-update-comment-invalid-content','commentsrepository-fetch-comment-thread','commentsrepository-remove-comment-missing-comment-thread','commentsrepository-resolve-comment-thread-internal-error','reopenCommentThread','_threads','setPermissions','comments.maxCommentCharsWhenCollapsed','bodyCollectionContainer','escape','body','write','focus','channelId','locale','4101474xugUtc','_isAttached','string','commentsrepository-get-comment-invalid-id','_addCommentThread','resolve','catch','_findOptimalIndex','_attachCommentThread','commentsrepository-reopen-comment-thread-internal-error','editorReady','setActiveCommentThread','adapter','filter','_unbindEditors','_threadToController','unlinkedAt','_bindAnnotationToEditors','map','removeComment','getComment','addComment','function','commentsrepository-remove-missing-comment-thread','_reopenCommentThread','isResolved','authoredAt','context','84ygCksx','commentsrepository-active-missing-comment-thread','_repository','resolvedBy','_submitCommentThread','commentsrepository-active-not-attached','124977yDEEmG','div','set','updateComment','add','commentUpdated','fetchCommentThread','threadId','warn','_removeActiveAnnotation','setContext','commentsrepository-add-comment-internal-error','creator','update','commentsrepository-update-comment-thread-internal-error','comments.CommentView','_detachCommentThread','_removeCommentThread','change:_permissions','commentsrepository-add-comment-to-missing-comment-thread','toJSON','change:authoredAt','comments.maxCommentsWhenCollapsed','has','innerHTML','define','noChannel','commentsrepository-duplicated-comment-thread-id','focusTracker','assign','isReadOnly','getCommentThreads','weight','13341757DJRZSA','editorDestroyed','1256TgWmCH','get','comments.maxThreadTotalWeight','model','delete','fire','reduce','then','attachTo','commentsListView','createElement','removeAttribute','deactivateAll','PendingActions','activate','commentsrepository-update-comment-missing-comment-thread','2937SDOWiX','getCommentThread','_remove','commentsrepository-add-comment-thread-internal-error','content','isRemovable','canComment','authorName','CommentsRepository','once','commentsrepository-remove-missing-comment','reopen','updateCommentThread','_readOnlyChannels','requires','focusableElements','bind','isVisible','change:isDirty','commentsrepository-reopen-comment-thread','commentsrepository-missing-comment-thread','commentInputView','5rEZxLc','Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.','_createCommentThreadView','commentsrepository-invalid-comment-authorid','isOfficialPlugin','resolvedAt','commentsrepository-invalid-commentid','commentsrepository-attach-missing-comment-thread','external:','highest','lowest','length','isPremiumPlugin','commentThreadInputView','setUnlinkedAt','getUser','view','commentsrepository-add-comment-user-not-exists','4lHIbHs','getPermissions','commentsrepository-update-comment-internal-error','archivedAt','push','find','_updateComment','error','isActive','CommentThreadView','isEditable','init','createdAt','189848PCRjJc','pluginName','stopListening','4730cfwRMU','addCommentThread','_permissions','submitCommentThread','commentsrepository-invalid-comment-content','commentsrepository-remove-comment-thread-internal-error','trim','getByInnerView','submit','_updateActiveAnnotation','getIndex','isSubmitted','switchReadOnly','_isSubmitted','commentsrepository-missing-target','isAttached','change:activeAnnotations','activeCommentThread'];_0x46ca=function(){return _0x4c06a4;};return _0x46ca();}export default class o extends _0x339a19{[_0x502d17(0x12b)];[_0x502d17(0x144)];[_0x502d17(0xf2)];static get[_0x502d17(0xaf)](){return[_0x408b13,_0x226da4,_0x37550f];}static get[_0x502d17(0xd7)](){const _0x38f6e3=_0x502d17;return _0x38f6e3(0xa9);}static get[_0x502d17(0xbb)](){return!0x0;}static get[_0x502d17(0xc3)](){return!0x0;}constructor(_0x49c2c9){const _0x3574ee=_0x502d17;super(_0x49c2c9),this[_0x3574ee(0x12b)]=new Map(),this[_0x3574ee(0x144)]=new Map(),this[_0x3574ee(0xf2)]=new Map(),this[_0x3574ee(0x159)](_0x3574ee(0xae),new Set()),this[_0x3574ee(0x159)](_0x3574ee(0xdb),new Map());const _0x810e2a=this[_0x3574ee(0x150)][_0x3574ee(0x102)];_0x810e2a[_0x3574ee(0x87)](_0x3574ee(0x16d),0x2),_0x810e2a[_0x3574ee(0x87)](_0x3574ee(0x93),0x1f4),_0x810e2a[_0x3574ee(0x87)](_0x3574ee(0x12d),0x8c),_0x810e2a[_0x3574ee(0x87)](_0x3574ee(0x10b),_0x5ccd0f),_0x810e2a[_0x3574ee(0x87)](_0x3574ee(0x166),_0x240ed7),_0x810e2a[_0x3574ee(0x92)](_0x3574ee(0x104))||console[_0x3574ee(0x15f)](_0x3574ee(0xb8));}[_0x502d17(0xd4)](){const _0x383af3=_0x502d17,_0x59fe77=this[_0x383af3(0x150)][_0x383af3(0x10c)][_0x383af3(0x92)](_0x408b13);this[_0x383af3(0x159)](_0x383af3(0xea),null),this['on'](_0x383af3(0xda),(_0x221823,_0x1659f6)=>this[_0x383af3(0x139)](_0x1659f6)),this['on'](_0x383af3(0xdc),(_0x564336,_0x17951c)=>this[_0x383af3(0x155)](_0x17951c)),this['on'](_0x383af3(0xf9),(_0x308d8d,_0x152553)=>this[_0x383af3(0xf3)](_0x152553)),this['on'](_0x383af3(0xf9),(_0x40150c,_0x2f4a8f)=>this[_0x383af3(0xe2)](_0x2f4a8f),{'priority':_0x383af3(0xc1)}),this['on'](_0x383af3(0x12a),(_0xce8f5,_0x3ed412)=>this[_0x383af3(0x14d)](_0x3ed412)),this['on'](_0x383af3(0x12a),(_0x144799,_0x166abb)=>this[_0x383af3(0xe2)](_0x166abb),{'priority':_0x383af3(0xc1)}),this['on'](_0x383af3(0x11e),(_0x92bce4,_0x324421)=>this[_0x383af3(0x168)](_0x324421)),this['on'](_0x383af3(0xad),(_0xaee055,_0x4c51f8)=>this[_0x383af3(0x11d)](_0x4c51f8)),this['on'](_0x383af3(0xad),(_0x39b6e4,_0x513992)=>this[_0x383af3(0xe2)](_0x513992),{'priority':_0x383af3(0xc1)}),this['on'](_0x383af3(0x14a),(_0x1d88fe,_0x240bb7)=>this[_0x383af3(0x114)](_0x240bb7)),this['on'](_0x383af3(0x15a),(_0xa001ce,_0x2b9b9f)=>this[_0x383af3(0xcf)](_0x2b9b9f)),this['on'](_0x383af3(0x148),(_0x316387,_0x3409f2)=>this[_0x383af3(0xef)](_0x3409f2)),this['on'](_0x383af3(0x14a),(_0x4790ed,{threadId:_0x18fd5c,isFromAdapter:_0x31627b})=>{const _0xa9ec15=_0x383af3;if(_0x31627b)return;const _0x87110=this[_0xa9ec15(0xa2)](_0x18fd5c),_0x5b83ad=_0x87110&&this[_0xa9ec15(0x144)][_0xa9ec15(0x92)](_0x87110);_0x5b83ad&&_0x5b83ad[_0xa9ec15(0xc7)][_0xa9ec15(0x9a)][_0xa9ec15(0x132)](-0x1);},{'priority':_0x383af3(0xc1)}),this[_0x383af3(0x11b)](_0x59fe77,_0x383af3(0xe9),(_0x1a13eb,_0x25c242,_0x3e47b8)=>{const _0x486347=_0x383af3,_0x50ea13=Array[_0x486347(0x116)](_0x3e47b8)[_0x486347(0x147)](_0x233dd4=>this[_0x486347(0xf2)][_0x486347(0x92)](_0x233dd4[_0x486347(0x109)]))[_0x486347(0x142)](Boolean)[0x0];this[_0x486347(0xea)]=_0x50ea13?_0x50ea13[_0x486347(0x94)]:null;});}set[_0x502d17(0x141)](_0x54dd36){const _0x2eb884=_0x502d17;if(this[_0x2eb884(0x11f)])throw new _0x2c90f4(_0x2eb884(0xec));this[_0x2eb884(0x11f)]=_0x54dd36;}get[_0x502d17(0x141)](){const _0x1809ea=_0x502d17;return this[_0x1809ea(0x11f)];}[_0x502d17(0xda)]({channelId:_0x3891b9=_t,threadId:_0x1b0448=_0xb60eea(),comments:_0x217d11=[],unlinkedAt:_0x1507a5=null,resolvedAt:_0x201c6d=null,resolvedBy:_0x22f9e7=null,target:_0x4e62f8=null,context:_0x51ea6c=null,attributes:_0x3c4876={},isResolvable:_0x1b1dfa=!0x0,isSubmitted:_0x1876a3=!0x1,isFromAdapter:_0x52d160=!0x1}={}){const _0x2c1690=_0x502d17;return this[_0x2c1690(0x96)](Nt(_0x2c1690(0xda),_0x3891b9),{'channelId':_0x3891b9,'threadId':_0x1b0448,'comments':_0x217d11,'unlinkedAt':_0x1507a5,'resolvedAt':_0x201c6d,'resolvedBy':_0x22f9e7,'target':_0x4e62f8,'context':_0x51ea6c,'attributes':_0x3c4876,'isFromAdapter':_0x52d160,'isResolvable':_0x1b1dfa,'isSubmitted':_0x1876a3}),this[_0x2c1690(0xa2)](_0x1b0448);}[_0x502d17(0x117)]({channelId:_0x183e6d=_t,threadId:_0x281ef1=_0xb60eea(),target:_0x1aed95,context:_0x22f2c8=null,isResolvable:_0x22a98c=!0x0}){const _0x1b7b59=_0x502d17;if(this[_0x1b7b59(0xae)][_0x1b7b59(0x16e)](_0x183e6d)||this[_0x1b7b59(0xae)][_0x1b7b59(0x16e)](void 0x0))return null;if(!_0x1aed95)throw new _0x2c90f4(_0x1b7b59(0xe7));const _0x145872=this[_0x1b7b59(0xda)]({'channelId':_0x183e6d,'threadId':_0x281ef1,'target':_0x1aed95,'context':_0x22f2c8,'isResolvable':_0x22a98c});if(!_0x145872)return null;const _0x51dca5=this[_0x1b7b59(0x144)][_0x1b7b59(0x92)](_0x145872),_0x2a166d=_0x51dca5[_0x1b7b59(0xc7)][_0x1b7b59(0xc4)][_0x1b7b59(0xb6)],_0x48df38=this[_0x1b7b59(0x150)][_0x1b7b59(0x10c)][_0x1b7b59(0x92)](_0x408b13),_0xc4c305=_0x48df38[_0x1b7b59(0xe0)](_0x51dca5[_0x1b7b59(0xc7)]);return _0x48df38[_0x1b7b59(0x9f)](_0xc4c305),_0x2a166d[_0x1b7b59(0xaa)](_0x1b7b59(0x13f),()=>_0x2a166d[_0x1b7b59(0x132)]()),_0x145872;}[_0x502d17(0x115)](_0x5b8a22){const _0x38b01b=_0x502d17;if(_0x38b01b(0x137)!=typeof _0x5b8a22)throw new _0x2c90f4(_0x38b01b(0x107));return this[_0x38b01b(0x12b)][_0x38b01b(0x16e)](_0x5b8a22);}[_0x502d17(0xad)]({channelId:_0x1fd75d=_t,threadId:_0x2bddd4,context:_0x52027e,unlinkedAt:_0x4a74bb,attributes:_0x3d0606,isFromAdapter:_0x2ad3bd=!0x1}){const _0x47f77f=_0x502d17;return this[_0x47f77f(0x96)](Nt(_0x47f77f(0xad),_0x1fd75d),{'channelId':_0x1fd75d,'threadId':_0x2bddd4,'context':_0x52027e,'unlinkedAt':_0x4a74bb,'attributes':_0x3d0606,'isFromAdapter':_0x2ad3bd}),this[_0x47f77f(0xa2)](_0x2bddd4);}[_0x502d17(0xa2)](_0x133461){const _0x2de436=_0x502d17;if(_0x2de436(0x137)!=typeof _0x133461)throw new _0x2c90f4(_0x2de436(0x107));return this[_0x2de436(0x12b)][_0x2de436(0x92)](_0x133461);}[_0x502d17(0x15d)]({channelId:_0x37a444,threadId:_0x4b32ab}={}){const _0x383971=_0x502d17,_0x39574f=this[_0x383971(0xa2)](_0x4b32ab);if(_0x39574f)return Promise[_0x383971(0x13a)](_0x39574f);if(!this[_0x383971(0x141)])return Promise[_0x383971(0x13a)](void 0x0);if(_0x383971(0x14b)!=typeof this[_0x383971(0x141)][_0x383971(0xa2)])throw new _0x2c90f4(_0x383971(0x108),this[_0x383971(0x150)]);return this[_0x383971(0x141)][_0x383971(0xa2)]({'channelId':_0x37a444,'threadId':_0x4b32ab})[_0x383971(0x98)](_0x39ebb9=>this[_0x383971(0x115)](_0x4b32ab)?this[_0x383971(0xa2)](_0x4b32ab):_0x39ebb9?this[_0x383971(0xda)](Object[_0x383971(0x8b)]({'isFromAdapter':!0x0,'channelId':_0x37a444},_0x39ebb9)):void 0x0)[_0x383971(0x13b)](_0x312356=>{const _0x530634=_0x383971;throw console[_0x530634(0xd0)](_0x312356),new _0x2c90f4(_0x530634(0x127),this[_0x530634(0x150)]);});}[_0x502d17(0x8d)]({channelId:_0x2dc228,skipNotAttached:_0x5037f2=!0x1,skipEmpty:_0x1f7ee3=!0x1,toJSON:_0x459a0a=!0x1}={}){const _0x4980a0=_0x502d17,_0x237b73=[];for(const _0x20a7fb of this[_0x4980a0(0x12b)][_0x4980a0(0x111)]())_0x2dc228&&_0x20a7fb[_0x4980a0(0x133)]!==_0x2dc228||_0x5037f2&&!_0x20a7fb[_0x4980a0(0xe8)]||_0x1f7ee3&&0x0===_0x20a7fb[_0x4980a0(0xc2)]||_0x237b73[_0x4980a0(0xcd)](_0x20a7fb);return _0x459a0a?_0x237b73[_0x4980a0(0x147)](_0x4f6500=>_0x4f6500[_0x4980a0(0x16b)]()):_0x237b73;}[_0x502d17(0x140)](_0x2bba3f){const _0x164985=_0x502d17,_0x5e3ddc=this[_0x164985(0x150)][_0x164985(0x10c)][_0x164985(0x92)](_0x408b13);if(!_0x2bba3f)return void(this[_0x164985(0xea)]&&_0x5e3ddc[_0x164985(0x9d)]());const _0x11c023=this[_0x164985(0xa2)](_0x2bba3f);if(!_0x11c023)throw new _0x2c90f4(_0x164985(0x152),null,{'threadId':_0x2bba3f});if(!this[_0x164985(0x144)][_0x164985(0x16e)](_0x11c023))throw new _0x2c90f4(_0x164985(0x156),null,{'threadId':_0x2bba3f});const _0x3848e4=_0x5e3ddc[_0x164985(0xe0)](this[_0x164985(0x144)][_0x164985(0x92)](_0x11c023)[_0x164985(0xc7)]);_0x5e3ddc[_0x164985(0x9f)](_0x3848e4);}[_0x502d17(0xe5)](_0x50bf7a,_0x31ad5a){const _0x11903c=_0x502d17;_0x50bf7a?this[_0x11903c(0xae)][_0x11903c(0x15b)](_0x31ad5a):this[_0x11903c(0xae)][_0x11903c(0x95)](_0x31ad5a),this[_0x11903c(0x96)](_0x11903c(0x101),_0x11903c(0xae),this[_0x11903c(0xae)],this[_0x11903c(0xae)]);}[_0x502d17(0x8c)](_0x3232f7){const _0x1dfee9=_0x502d17;return this[_0x1dfee9(0xae)][_0x1dfee9(0x16e)](_0x3232f7)||this[_0x1dfee9(0xae)][_0x1dfee9(0x16e)](void 0x0);}[_0x502d17(0x125)](_0x498f4e,_0x5ab933){return new _0x5b8940(_0x498f4e,_0x5ab933);}[_0x502d17(0x12c)](_0x48fb36,_0x490250=_t){const _0x525e22=_0x502d17;this[_0x525e22(0xdb)][_0x525e22(0x159)](_0x490250,_0x48fb36),this[_0x525e22(0x96)](_0x525e22(0x169),_0x525e22(0xdb),this[_0x525e22(0xdb)],this[_0x525e22(0xdb)]);}[_0x502d17(0xca)](_0x202b9b=_t){const _0x400ac5=_0x502d17;return this[_0x400ac5(0xdb)][_0x400ac5(0x16e)](_0x202b9b)?this[_0x400ac5(0xdb)][_0x400ac5(0x92)](_0x202b9b):bt;}[_0x502d17(0x139)]({channelId:_0x1a1246,threadId:_0x5744b4,comments:_0x80161e,unlinkedAt:_0x5aa660,resolvedAt:_0x578145,resolvedBy:_0x126a3d,target:_0x4efa5d,context:_0x1ce279,attributes:_0x2a38ca,isFromAdapter:_0x3709e7,isResolvable:_0x4bc0e4,isSubmitted:_0x1c195b}){const _0x3e4a11=_0x502d17;if(_0x3e4a11(0x137)!=typeof _0x5744b4)throw new _0x2c90f4(_0x3e4a11(0x107),null,{'threadId':_0x5744b4});if(this[_0x3e4a11(0x115)](_0x5744b4))throw new _0x2c90f4(_0x3e4a11(0x89),null,{'threadId':_0x5744b4});const _0x483f6b=new CommentThread(this,{'channelId':_0x1a1246,'id':_0x5744b4,'context':_0x1ce279,'attributes':_0x2a38ca,'unlinkedAt':_0x5aa660,'resolvedAt':_0x578145,'resolvedBy':_0x126a3d?this[_0x3e4a11(0x150)][_0x3e4a11(0x10c)][_0x3e4a11(0x92)](_0x37550f)[_0x3e4a11(0xc6)](_0x126a3d):null,'isResolvable':_0x4bc0e4,'isSubmitted':_0x1c195b||_0x3709e7});this[_0x3e4a11(0x12b)][_0x3e4a11(0x159)](_0x5744b4,_0x483f6b);for(const _0xc34cca of _0x80161e)_0x483f6b[_0x3e4a11(0x11a)](this[_0x3e4a11(0x119)]({'threadId':_0x5744b4,..._0xc34cca}));return _0x4efa5d&&_0x483f6b[_0x3e4a11(0x99)](_0x4efa5d),_0x3709e7||!_0x483f6b[_0x3e4a11(0xc2)]?Promise[_0x3e4a11(0x13a)]():this[_0x3e4a11(0x155)]({'channelId':_0x1a1246,'threadId':_0x5744b4});}[_0x502d17(0x155)]({channelId:_0x3b3909,threadId:_0x192f60}){const _0x597333=_0x502d17;if(!this[_0x597333(0x115)](_0x192f60))throw new _0x2c90f4(_0x597333(0xb5),this);const _0x157457=this[_0x597333(0xa2)](_0x192f60);if(_0x157457[_0x597333(0xe6)]=!0x0,!this[_0x597333(0x141)]||_0x597333(0x14b)!=typeof this[_0x597333(0x141)][_0x597333(0xda)])return Promise[_0x597333(0x13a)]();const {id:_0x24ae46,comments:_0x43a02a,resolvedAt:_0x3d50c4,resolvedBy:_0x35b3ca,context:_0xc43583,attributes:_0x21d374}=_0x157457,_0x1f93b8=this[_0x597333(0x150)][_0x597333(0x10c)][_0x597333(0x92)](_0x597333(0x9e)),_0x550a79=_0x1f93b8[_0x597333(0x15b)](_0x4c6d8f(this[_0x597333(0x150)][_0x597333(0x134)],_0x597333(0x100)));return this[_0x597333(0x141)][_0x597333(0xda)]({'channelId':_0x3b3909,'threadId':_0x24ae46,'comments':_0x43a02a[_0x597333(0x147)](_0x5662b2=>_0x5662b2[_0x597333(0x16b)]()),'resolvedAt':_0x3d50c4,'resolvedBy':_0x35b3ca?_0x35b3ca['id']:_0x35b3ca,'context':_0xc43583,'attributes':_0x21d374})[_0x597333(0x98)](({comments:_0x2dfe40})=>{const _0x3ea579=_0x597333;_0x1f93b8[_0x3ea579(0xff)](_0x550a79);for(const _0x1e410d of _0x2dfe40)this[_0x3ea579(0xcf)]({'channelId':_0x3b3909,'threadId':_0x192f60,'commentId':_0x1e410d[_0x3ea579(0x113)],'createdAt':_0x1e410d[_0x3ea579(0xd5)],'isFromAdapter':!0x0});})[_0x597333(0x13b)](_0xc05d8=>{const _0x31fda6=_0x597333;throw console[_0x31fda6(0xd0)](_0xc05d8),new _0x2c90f4(_0x31fda6(0xa4),this);});}[_0x502d17(0x13d)]({threadId:_0x4be035,target:_0x4112c3}){const _0x1a5eb9=_0x502d17,_0x30fafb=this[_0x1a5eb9(0xa2)](_0x4be035);if(!_0x30fafb)throw new _0x2c90f4(_0x1a5eb9(0xbe),this);const _0xacb215=this[_0x1a5eb9(0x150)][_0x1a5eb9(0x10c)][_0x1a5eb9(0x92)](_0x1a5eb9(0x9e)),_0xbc0d8b=this[_0x1a5eb9(0x150)][_0x1a5eb9(0x10c)][_0x1a5eb9(0x92)](_0x408b13),_0x405b16=this[_0x1a5eb9(0xb9)](_0x30fafb),_0x24a49e=new _0x5b8940(_0x30fafb,_0x405b16);let _0x4ce1c2=null;_0x405b16['on'](_0x1a5eb9(0xb3),(_0xab60a5,_0x2450bf,_0x26c668)=>{const _0x389916=_0x1a5eb9;_0x26c668?_0x4ce1c2=_0xacb215[_0x389916(0x15b)](_0x4c6d8f(this[_0x389916(0x150)][_0x389916(0x134)],_0x389916(0x100))):_0x4ce1c2&&(_0xacb215[_0x389916(0xff)](_0x4ce1c2),_0x4ce1c2=null);}),this[_0x1a5eb9(0x144)][_0x1a5eb9(0x159)](_0x30fafb,_0x24a49e),this[_0x1a5eb9(0xf2)][_0x1a5eb9(0x159)](_0x405b16,_0x24a49e);const _0x3ff0cd=new _0x105101(this[_0x1a5eb9(0x150)][_0x1a5eb9(0x134)],_0x405b16);_0x3ff0cd[_0x1a5eb9(0xb1)](_0x1a5eb9(0xc2))['to'](_0x405b16),_0x3ff0cd[_0x1a5eb9(0xb1)](_0x1a5eb9(0xee))['to'](_0x405b16,_0x1a5eb9(0xee),_0x405b16,_0x1a5eb9(0xc2),(_0xffc760,_0x29eb87)=>_0xffc760||!_0x29eb87),_0x3ff0cd[_0x1a5eb9(0xb1)](_0x1a5eb9(0xd1))['to'](_0x405b16),_0x3ff0cd[_0x1a5eb9(0xf1)]=_0x1a5eb9(0x121);const _0x2f957a=new _0x2f64ef({'view':_0x3ff0cd,'target':_0x4112c3,'type':_0x1a5eb9(0x121),'isVisible':!_0x30fafb[_0x1a5eb9(0xcc)]});return _0x405b16['on'](_0x1a5eb9(0x12f),()=>{const _0x509acd=_0x1a5eb9;_0x2f957a[_0x509acd(0x96)](_0x509acd(0x12f));}),this[_0x1a5eb9(0x146)](_0x405b16,_0x2f957a),_0xbc0d8b[_0x1a5eb9(0x15b)](_0x2f957a),_0x2f957a;}[_0x502d17(0x146)](_0x33ee20,_0x11d9aa){const _0x231bef=_0x502d17;this[_0x231bef(0x11b)](_0x33ee20,_0x231bef(0x13f),(_0x3eb9e2,_0x2db0a1)=>{const _0x111f59=_0x231bef,_0x4decdf=_0x2db0a1['ui'][_0x111f59(0xc7)][_0x111f59(0x130)][_0x111f59(0x12e)];_0x11d9aa[_0x111f59(0xb0)][_0x111f59(0x15b)](_0x4decdf),this[_0x111f59(0x150)]instanceof _0x205eaa&&this[_0x111f59(0x150)]['ui'][_0x111f59(0x8a)][_0x111f59(0x15b)](_0x4decdf);},{'priority':_0x231bef(0xc0)}),this[_0x231bef(0x11b)](_0x33ee20,_0x231bef(0x90),(_0xb71824,_0x1b1b83)=>{const _0x438386=_0x231bef,_0x30aad6=_0x1b1b83['ui'][_0x438386(0xc7)][_0x438386(0x130)][_0x438386(0x12e)];_0x11d9aa[_0x438386(0xb0)][_0x438386(0x16e)](_0x30aad6)&&_0x11d9aa[_0x438386(0xb0)][_0x438386(0xff)](_0x30aad6),this[_0x438386(0x150)]instanceof _0x205eaa&&this[_0x438386(0x150)]['ui'][_0x438386(0x8a)][_0x438386(0xff)](_0x30aad6);});}[_0x502d17(0x143)](_0x320082){const _0x27553f=_0x502d17;this[_0x27553f(0xd8)](_0x320082,_0x27553f(0x13f)),this[_0x27553f(0xd8)](_0x320082,_0x27553f(0x90));}[_0x502d17(0xb9)](_0x273006){const _0x426e13=_0x502d17,_0x17813f=this[_0x426e13(0x150)][_0x426e13(0x10c)][_0x426e13(0x92)](_0x37550f),{config:_0x1086b1,locale:_0x3327e6}=this[_0x426e13(0x150)],_0x3c3d40=_0xa210e7(_0x1086b1[_0x426e13(0x92)](_0x426e13(0x134)),_0x3327e6);return new(0x0,(_0x1086b1[_0x426e13(0x92)](_0x426e13(0xf0)))[(_0x426e13(0xd2))])(_0x3327e6,_0x273006,_0x17813f['me'],{'editorConfig':{..._0x1086b1[_0x426e13(0x92)](_0x426e13(0x104)),'licenseKey':this[_0x426e13(0x150)][_0x426e13(0x102)][_0x426e13(0x92)](_0x426e13(0x120))},'copyMarkers':_0x1086b1[_0x426e13(0x92)](_0x426e13(0x10e)),'maxCommentsWhenCollapsed':_0x1086b1[_0x426e13(0x92)](_0x426e13(0x16d)),'maxThreadTotalWeight':_0x1086b1[_0x426e13(0x92)](_0x426e13(0x93)),'maxCommentCharsWhenCollapsed':_0x1086b1[_0x426e13(0x92)](_0x426e13(0x12d)),'formatDateTime':_0x3c3d40,'CommentView':_0x1086b1[_0x426e13(0x92)](_0x426e13(0xf0))[_0x426e13(0xeb)]});}[_0x502d17(0xf3)]({threadId:_0x4be89a,channelId:_0x395d66,resolvedAt:_0x136fb2,resolvedBy:_0x9f51d6,isFromAdapter:_0xe32db}){const _0x3dfc77=_0x502d17;if(!this[_0x3dfc77(0x115)](_0x4be89a))throw new _0x2c90f4(_0x3dfc77(0xb5),null,{'threadId':_0x4be89a});const _0x16ae26=this[_0x3dfc77(0xa2)](_0x4be89a);if(_0x16ae26[_0x3dfc77(0x14e)])throw new _0x2c90f4(_0x3dfc77(0xed),null,{'threadId':_0x4be89a});const _0x2c2a0c=this[_0x3dfc77(0x150)][_0x3dfc77(0x10c)][_0x3dfc77(0x92)](_0x37550f);if(_0x16ae26[_0x3dfc77(0x154)]=_0x2c2a0c[_0x3dfc77(0xc6)](_0x9f51d6),_0x16ae26[_0x3dfc77(0xbc)]=_0x136fb2,_0xe32db||!this[_0x3dfc77(0x141)]||_0x3dfc77(0x14b)!=typeof this[_0x3dfc77(0x141)][_0x3dfc77(0xf9)])return Promise[_0x3dfc77(0x13a)]();const _0x2314b3=this[_0x3dfc77(0x150)][_0x3dfc77(0x10c)][_0x3dfc77(0x92)](_0x3dfc77(0x9e)),_0x23d69c=_0x2314b3[_0x3dfc77(0x15b)](_0x4c6d8f(this[_0x3dfc77(0x150)][_0x3dfc77(0x134)],_0x3dfc77(0x100)));return this[_0x3dfc77(0x141)][_0x3dfc77(0xf9)]({'channelId':_0x395d66,'threadId':_0x4be89a})[_0x3dfc77(0x98)](({resolvedAt:_0x30d551,resolvedBy:_0x144b89})=>{const _0x203e55=_0x3dfc77;_0x2314b3[_0x203e55(0xff)](_0x23d69c),_0x16ae26[_0x203e55(0x154)]['id']!==_0x144b89&&(_0x16ae26[_0x203e55(0x154)]=_0x2c2a0c[_0x203e55(0xc6)](_0x144b89)),_0x16ae26[_0x203e55(0xbc)]=_0x30d551;})[_0x3dfc77(0x13b)](_0x476cc3=>{const _0x485d38=_0x3dfc77;throw console[_0x485d38(0xd0)](_0x476cc3),new _0x2c90f4(_0x485d38(0x129),this);});}[_0x502d17(0x14d)]({threadId:_0x134368,channelId:_0x54cea5,isFromAdapter:_0x40c7aa}){const _0x95df85=_0x502d17;if(!this[_0x95df85(0x115)](_0x134368))throw new _0x2c90f4(_0x95df85(0xb5),null,{'threadId':_0x134368});const _0x50e7be=this[_0x95df85(0xa2)](_0x134368);if(!_0x50e7be[_0x95df85(0x14e)])throw new _0x2c90f4(_0x95df85(0xb4),null,{'threadId':_0x134368});if(_0x50e7be[_0x95df85(0x154)]=null,_0x50e7be[_0x95df85(0xbc)]=null,_0x40c7aa||!this[_0x95df85(0x141)]||_0x95df85(0x14b)!=typeof this[_0x95df85(0x141)][_0x95df85(0x12a)])return Promise[_0x95df85(0x13a)]();const _0x31a3d8=this[_0x95df85(0x150)][_0x95df85(0x10c)][_0x95df85(0x92)](_0x95df85(0x9e)),_0x2819ff=_0x31a3d8[_0x95df85(0x15b)](_0x4c6d8f(this[_0x95df85(0x150)][_0x95df85(0x134)],_0x95df85(0x100)));return this[_0x95df85(0x141)][_0x95df85(0x12a)]({'channelId':_0x54cea5,'threadId':_0x134368})[_0x95df85(0x98)](()=>_0x31a3d8[_0x95df85(0xff)](_0x2819ff))[_0x95df85(0x13b)](_0x3148ad=>{const _0x182e95=_0x95df85;throw console[_0x182e95(0xd0)](_0x3148ad),new _0x2c90f4(_0x182e95(0x13e),this);});}[_0x502d17(0x168)]({threadId:_0x2ed79c,isFromAdapter:_0x3fda56}){const _0x5c28e6=_0x502d17,_0x97c188=this[_0x5c28e6(0xa2)](_0x2ed79c);if(!_0x97c188)throw new _0x2c90f4(_0x5c28e6(0x14c),this);if(this[_0x5c28e6(0x167)](_0x2ed79c),this[_0x5c28e6(0x12b)][_0x5c28e6(0x95)](_0x2ed79c),!_0x97c188[_0x5c28e6(0xe4)]||_0x3fda56||!this[_0x5c28e6(0x141)]||_0x5c28e6(0x14b)!=typeof this[_0x5c28e6(0x141)][_0x5c28e6(0x11e)])return Promise[_0x5c28e6(0x13a)]();const _0x101bc8=this[_0x5c28e6(0x150)][_0x5c28e6(0x10c)][_0x5c28e6(0x92)](_0x5c28e6(0x9e)),{channelId:_0x583f00}=_0x97c188,_0x56e162=_0x101bc8[_0x5c28e6(0x15b)](_0x4c6d8f(this[_0x5c28e6(0x150)][_0x5c28e6(0x134)],_0x5c28e6(0x100)));return this[_0x5c28e6(0x141)][_0x5c28e6(0x11e)]({'channelId':_0x583f00,'threadId':_0x2ed79c})[_0x5c28e6(0x98)](()=>_0x101bc8[_0x5c28e6(0xff)](_0x56e162))[_0x5c28e6(0x13b)](_0x5ed72b=>{const _0x1ad4fc=_0x5c28e6;throw console[_0x1ad4fc(0xd0)](_0x5ed72b),new _0x2c90f4(_0x1ad4fc(0xde),this);});}[_0x502d17(0x11d)]({threadId:_0x3377e8,unlinkedAt:_0x39bf10,context:_0x4b5ab6,attributes:_0x4c6b93,isFromAdapter:_0x51546d}){const _0xb97af8=_0x502d17;if(_0xb97af8(0x137)!=typeof _0x3377e8)throw new _0x2c90f4(_0xb97af8(0x107),null,{'threadId':_0x3377e8});if(!this[_0xb97af8(0x115)](_0x3377e8))throw new _0x2c90f4(_0xb97af8(0xb5),null,{'threadId':_0x3377e8});const _0x12e80b=this[_0xb97af8(0xa2)](_0x3377e8);let _0x58c732=!0x1;if(void 0x0!==_0x4b5ab6&&_0x12e80b[_0xb97af8(0x150)]!==_0x4b5ab6&&(_0x12e80b[_0xb97af8(0x150)]=_0x4b5ab6,_0x58c732=!0x0),void 0x0!==_0x39bf10&&_0x12e80b[_0xb97af8(0x145)]!==_0x39bf10&&(_0x12e80b[_0xb97af8(0x145)]=_0x39bf10,_0x58c732=!0x0),_0x4c6b93&&!_0x4dad87(_0x4c6b93,_0x12e80b[_0xb97af8(0x10a)])&&(_0x12e80b[_0xb97af8(0x10a)]=_0x4c6b93,_0x58c732=!0x0),!_0x58c732)return Promise[_0xb97af8(0x13a)]();if(!_0x12e80b[_0xb97af8(0xe4)]||_0x51546d||!this[_0xb97af8(0x141)]||_0xb97af8(0x14b)!=typeof this[_0xb97af8(0x141)][_0xb97af8(0xad)])return Promise[_0xb97af8(0x13a)]();const _0x145377=this[_0xb97af8(0x150)][_0xb97af8(0x10c)][_0xb97af8(0x92)](_0xb97af8(0x9e)),{channelId:_0xf9c2c}=_0x12e80b,_0x50f2c6=_0x145377[_0xb97af8(0x15b)](_0x4c6d8f(this[_0xb97af8(0x150)][_0xb97af8(0x134)],_0xb97af8(0x100)));return this[_0xb97af8(0x141)][_0xb97af8(0xad)]({'channelId':_0xf9c2c,'threadId':_0x3377e8,'context':_0x4b5ab6,'unlinkedAt':_0x39bf10,'attributes':_0x4c6b93})[_0xb97af8(0x98)](()=>_0x145377[_0xb97af8(0xff)](_0x50f2c6))[_0xb97af8(0x13b)](_0x5803cb=>{const _0x53bba9=_0xb97af8;throw console[_0x53bba9(0xd0)](_0x5803cb),new _0x2c90f4(_0x53bba9(0x165),this);});}[_0x502d17(0x167)](_0x598247){const _0xb4cc59=_0x502d17,_0x38e7b7=this[_0xb4cc59(0x150)][_0xb4cc59(0x10c)][_0xb4cc59(0x92)](_0x408b13),_0x39e400=this[_0xb4cc59(0xa2)](_0x598247);if(_0x39e400[_0xb4cc59(0x136)]=!0x1,this[_0xb4cc59(0x144)][_0xb4cc59(0x16e)](_0x39e400)){const _0x3b09c3=this[_0xb4cc59(0x144)][_0xb4cc59(0x92)](_0x39e400),_0x189520=_0x3b09c3[_0xb4cc59(0xc7)],_0x22628b=_0x38e7b7[_0xb4cc59(0xe0)](_0x189520);this[_0xb4cc59(0x144)][_0xb4cc59(0x95)](_0x39e400),this[_0xb4cc59(0xf2)][_0xb4cc59(0x95)](_0x189520),_0x22628b&&_0x38e7b7[_0xb4cc59(0xff)](_0x22628b),_0x3b09c3[_0xb4cc59(0xfe)](),_0x189520[_0xb4cc59(0xfe)]()[_0xb4cc59(0x98)](()=>{const _0x143398=_0xb4cc59;this[_0x143398(0x143)](_0x189520);});}}[_0x502d17(0xe2)]({threadId:_0x178a43,resolvedAt:_0x50d836,unlinkedAt:_0x13a335}){const _0x445527=_0x502d17,_0xf3829f=!!_0x50d836,_0x7d452f=this[_0x445527(0x150)][_0x445527(0x10c)][_0x445527(0x92)](_0x408b13),_0x589cfd=this[_0x445527(0xa2)](_0x178a43);if(this[_0x445527(0x144)][_0x445527(0x16e)](_0x589cfd)){const _0x166afd=this[_0x445527(0x144)][_0x445527(0x92)](_0x589cfd)[_0x445527(0xc7)],_0x3242fc=_0x7d452f[_0x445527(0xe0)](_0x166afd);_0x3242fc&&(_0xf3829f&&_0x7d452f[_0x445527(0x160)](_0x3242fc),_0x13a335?_0x3242fc[_0x445527(0xb2)]=!0x1:_0x3242fc[_0x445527(0x122)]());}}[_0x502d17(0x10d)](_0x14ca34){const _0x277232=_0x502d17,_0x58c510=this[_0x277232(0x150)][_0x277232(0x10c)][_0x277232(0x92)](_0x37550f),_0x1550a2=_0x3c1a52(_0x277232(0xbf)+_0x14ca34),_0x19e0ae=_0x58c510[_0x277232(0xc6)](_0x1550a2);return _0x19e0ae||_0x58c510[_0x277232(0xfd)]({'id':_0x1550a2,'name':_0x14ca34});}[_0x502d17(0x119)]({threadId:_0x101444,commentId:_0x6015dd=_0xb60eea(),content:_0x1f9418,authorId:_0x11d64e,createdAt:_0x2b25eb,attributes:_0x50ab93}){const _0x339062=_0x502d17;if(_0x339062(0x137)!=typeof _0x6015dd)throw new _0x2c90f4(_0x339062(0xbd));if(_0x339062(0x137)!=typeof _0x11d64e)throw new _0x2c90f4(_0x339062(0xba));if(_0x339062(0x137)!=typeof _0x1f9418||!_0x1f9418[_0x339062(0xdf)]())throw new _0x2c90f4(_0x339062(0xdd));const _0x1940fe=this[_0x339062(0x150)][_0x339062(0x10c)][_0x339062(0x92)](_0x37550f)[_0x339062(0xc6)](_0x11d64e);if(!_0x1940fe)throw new _0x2c90f4(_0x339062(0xc8),null,{'authorId':_0x11d64e});let _0x3cefee=null,_0x3583fb=_0x2b25eb;return _0x50ab93?.[_0x339062(0xf8)]&&(_0x3cefee=this[_0x339062(0x10d)](_0x50ab93[_0x339062(0xf8)][_0x339062(0xa8)]),_0x3583fb=new Date(_0x50ab93[_0x339062(0xf8)][_0x339062(0xd5)])),new Comment(this,{'threadId':_0x101444,'id':_0x6015dd,'author':_0x3cefee||_0x1940fe,'creator':_0x1940fe,'content':_0x1f9418,'createdAt':_0x2b25eb,'authoredAt':_0x3583fb,'attributes':_0x50ab93});}[_0x502d17(0x114)](_0x48c1c2){const _0x4547e1=_0x502d17;let {threadId:_0x1ae6cb,content:_0x5125b7,attributes:_0x25c96a,isFromAdapter:_0x524256}=_0x48c1c2;const _0x14c30e=this[_0x4547e1(0xa2)](_0x48c1c2[_0x4547e1(0x15e)]);if(!_0x14c30e)throw new _0x2c90f4(_0x4547e1(0x16a),this);const _0x585ba0=this[_0x4547e1(0x119)](_0x48c1c2),{id:_0x367e11}=_0x585ba0;if(_0x14c30e[_0x4547e1(0x11a)](_0x585ba0),_0x524256||!this[_0x4547e1(0x141)]||_0x4547e1(0x14b)!=typeof this[_0x4547e1(0x141)][_0x4547e1(0x14a)]||!_0x14c30e[_0x4547e1(0xe4)])return Promise[_0x4547e1(0x13a)]();const _0x2641ef=this[_0x4547e1(0x150)][_0x4547e1(0x10c)][_0x4547e1(0x92)](_0x4547e1(0x9e)),{channelId:_0x3098ea}=_0x14c30e,_0x160f0f=_0x2641ef[_0x4547e1(0x15b)](_0x4c6d8f(this[_0x4547e1(0x150)][_0x4547e1(0x134)],_0x4547e1(0x100)));return _0x25c96a||(_0x25c96a={}),this[_0x4547e1(0x141)][_0x4547e1(0x14a)]({'channelId':_0x3098ea,'threadId':_0x1ae6cb,'commentId':_0x367e11,'content':_0x5125b7,'attributes':_0x25c96a})[_0x4547e1(0x98)](_0x5c6977=>{const _0x2da105=_0x4547e1;_0x2641ef[_0x2da105(0xff)](_0x160f0f),_0x5c6977&&this[_0x2da105(0xcf)]({'channelId':_0x3098ea,'threadId':_0x1ae6cb,'commentId':_0x367e11,'createdAt':_0x5c6977[_0x2da105(0xd5)],'isFromAdapter':!0x0});})[_0x4547e1(0x13b)](_0x1647f5=>{const _0xfca275=_0x4547e1;throw console[_0xfca275(0xd0)](_0x1647f5),new _0x2c90f4(_0xfca275(0x162),this);});}[_0x502d17(0xcf)]({threadId:_0x2e798b,commentId:_0x445e63,content:_0x150c8b,createdAt:_0x103918,attributes:_0x50d9dd,isFromAdapter:_0x7fa789}){const _0x36bcb2=_0x502d17;if(void 0x0!==_0x150c8b&&(_0x36bcb2(0x137)!=typeof _0x150c8b||!_0x150c8b[_0x36bcb2(0xdf)]()[_0x36bcb2(0xc2)]))throw new _0x2c90f4(_0x36bcb2(0x126));const _0x47029b=this[_0x36bcb2(0xa2)](_0x2e798b),_0x4059d6=_0x47029b[_0x36bcb2(0x149)](_0x445e63);if(!_0x4059d6)throw new _0x2c90f4(_0x36bcb2(0x103),this);let _0x4b0a51=!0x1;if(_0x150c8b&&_0x150c8b!==_0x4059d6[_0x36bcb2(0xa5)]&&(_0x4059d6[_0x36bcb2(0xd3)]||_0x7fa789)&&(_0x4059d6[_0x36bcb2(0xa5)]=_0x150c8b,_0x4b0a51=!0x0),_0x103918&&_0x103918!==_0x4059d6[_0x36bcb2(0xd5)]&&(_0x4059d6[_0x36bcb2(0xd5)]=_0x103918,_0x4059d6[_0x36bcb2(0x10a)]&&_0x4059d6[_0x36bcb2(0x10a)][_0x36bcb2(0xf8)]||(_0x4059d6[_0x36bcb2(0x14f)]=_0x103918),_0x4b0a51=!0x0),_0x50d9dd&&!_0x4dad87(_0x50d9dd,_0x4059d6[_0x36bcb2(0x10a)])&&(_0x4059d6[_0x36bcb2(0x10a)]=_0x50d9dd,_0x4b0a51=!0x0),!_0x4b0a51)return Promise[_0x36bcb2(0x13a)]();if(_0x47029b[_0x36bcb2(0x96)](_0x36bcb2(0x15c)),_0x7fa789||!this[_0x36bcb2(0x141)]||_0x36bcb2(0x14b)!=typeof this[_0x36bcb2(0x141)][_0x36bcb2(0x15a)])return Promise[_0x36bcb2(0x13a)]();const _0x37a8bd=this[_0x36bcb2(0x150)][_0x36bcb2(0x10c)][_0x36bcb2(0x92)](_0x36bcb2(0x9e)),{channelId:_0xfa323e}=this[_0x36bcb2(0xa2)](_0x4059d6[_0x36bcb2(0x15e)]),_0x2b7689=_0x37a8bd[_0x36bcb2(0x15b)](_0x4c6d8f(this[_0x36bcb2(0x150)][_0x36bcb2(0x134)],_0x36bcb2(0x100)));return this[_0x36bcb2(0x141)][_0x36bcb2(0x15a)]({'channelId':_0xfa323e,'threadId':_0x2e798b,'commentId':_0x445e63,'content':_0x150c8b,'attributes':_0x50d9dd})[_0x36bcb2(0x98)](()=>_0x37a8bd[_0x36bcb2(0xff)](_0x2b7689))[_0x36bcb2(0x13b)](_0x5ab7ef=>{const _0x584e5d=_0x36bcb2;throw console[_0x584e5d(0xd0)](_0x5ab7ef),new _0x2c90f4(_0x584e5d(0xcb),this);});}[_0x502d17(0xef)]({threadId:_0x467f99,commentId:_0x28f235,isFromAdapter:_0x3e5204}){const _0x2152a8=_0x502d17,_0x56ca1b=this[_0x2152a8(0xa2)](_0x467f99),_0x5a0c23=_0x56ca1b[_0x2152a8(0x149)](_0x28f235);if(!_0x5a0c23)throw new _0x2c90f4(_0x2152a8(0xab),this);if(_0x56ca1b[_0x2152a8(0xa3)](_0x5a0c23),_0x3e5204||!this[_0x2152a8(0x141)]||_0x2152a8(0x14b)!=typeof this[_0x2152a8(0x141)][_0x2152a8(0x148)])return Promise[_0x2152a8(0x13a)]();const _0x167d73=this[_0x2152a8(0x150)][_0x2152a8(0x10c)][_0x2152a8(0x92)](_0x2152a8(0x9e)),{channelId:_0x36317a}=_0x56ca1b,_0x4679bb=_0x167d73[_0x2152a8(0x15b)](_0x4c6d8f(this[_0x2152a8(0x150)][_0x2152a8(0x134)],_0x2152a8(0x100)));return this[_0x2152a8(0x141)][_0x2152a8(0x148)]({'channelId':_0x36317a,'threadId':_0x467f99,'commentId':_0x28f235})[_0x2152a8(0x98)](()=>_0x167d73[_0x2152a8(0xff)](_0x4679bb))[_0x2152a8(0x13b)](_0x3e9495=>{const _0xf66ce9=_0x2152a8;throw console[_0xf66ce9(0xd0)](_0x3e9495),new _0x2c90f4(_0xf66ce9(0xfb),this);});}}export class CommentThread extends/* #__PURE__ -- @preserve */
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const _0xc5bbf1=_0x3c7a;(function(_0x13ba9d,_0x2d8ef3){const _0x2ef6bd=_0x3c7a,_0x3da4e2=_0x13ba9d();while(!![]){try{const _0x2b5194=parseInt(_0x2ef6bd(0x278))/0x1+parseInt(_0x2ef6bd(0x241))/0x2+-parseInt(_0x2ef6bd(0x281))/0x3*(-parseInt(_0x2ef6bd(0x233))/0x4)+-parseInt(_0x2ef6bd(0x28c))/0x5*(parseInt(_0x2ef6bd(0x23d))/0x6)+parseInt(_0x2ef6bd(0x20d))/0x7+-parseInt(_0x2ef6bd(0x289))/0x8*(parseInt(_0x2ef6bd(0x1ee))/0x9)+-parseInt(_0x2ef6bd(0x1f0))/0xa;if(_0x2b5194===_0x2d8ef3)break;else _0x3da4e2['push'](_0x3da4e2['shift']());}catch(_0x461058){_0x3da4e2['push'](_0x3da4e2['shift']());}}}(_0x1cbd,0x9200c));function _0x3c7a(_0x5d6319,_0x53abca){const _0x1cbd3d=_0x1cbd();return _0x3c7a=function(_0x3c7aa6,_0x409c4e){_0x3c7aa6=_0x3c7aa6-0x1a9;let _0x2c842d=_0x1cbd3d[_0x3c7aa6];return _0x2c842d;},_0x3c7a(_0x5d6319,_0x53abca);}import{PendingActions as _0x494404,ContextPlugin as _0x3fc569,Editor as _0x2a3b64}from'ckeditor5/src/core.js';import{Collection as _0x2e4339,uid as _0x5caea1,CKEditorError as _0x303d15,ObservableMixin as _0x1f7be4}from'ckeditor5/src/utils.js';import{getDateTimeFormatter as _0x11973f,hashObject as _0x331700,Users as _0x14f7be}from'ckeditor5-collaboration/src/collaboration-core.js';import{cloneDeep as _0x12c243,isEqual as _0x340a48,set as _0x32a80d,unset as _0x8645d0}from'es-toolkit/compat';function _0x1cbd(){const _0x295894=['setActiveCommentThread','write','licenseKey','resolvedBy','commentsrepository-fetch-comment-thread','hasCommentThread','get','_updateCommentThread','focusableElements','comments.CommentThreadView','max','context','trim','change:isDirty','author','20VwGcTz','view','reopen','setAttribute','_threadToController','commentsrepository-update-comment-missing-comment-thread','_getExternalAuthor','isResolved','commentsrepository-remove-comment-missing-comment-thread','@external','906kdkKeH','creator','type','isExternal','2315940NjgqFa','_removeCommentThread','_detachCommentThread','innerView','push','_createCommentThreadView','unlinkedAt','isPremiumPlugin','commentsrepository-update-missing-comment','refreshVisibility','activate','_unbindEditors','channelId','values','_attachCommentThread','comments.editorConfig','isReadOnly','comments.copyMarkers','commentId','resolveCommentThread','commentsrepository-invalid-comment-content','_isSubmitted','commentsrepository-reopen-comment-thread','plugins','pluginName','commentsrepository-update-comment-internal-error','innerHTML','commentsListView','isRemovable','_submitCommentThread','isActive','attributes','catch','bind','lowest','delete','isResolvable','content','submit','_createNewComment','destroy','getComment','locale','_permissions','archivedAt','_addCommentThread','removeAttribute','_updateComment','admin','commentsrepository-resolve-comment-thread-internal-error','commentsrepository-update-comment-invalid-content','submitCommentThread','textContent','change:authoredAt','external:','387813gUuLpL','isVisible','comments','commentsrepository-attach-missing-comment-thread','_findOptimalIndex','CommentsRepository','from','filter','comment','121089SEDJHA','commentsrepository-add-comment-user-not-exists','getAnnotationForCommentThread','assign','weight','_resolveCommentThread','editorReady','commentsrepository-invalid-comment-authorid','1160MoopZU','updateComment','createCommentThreadController','30295aUTltu','authorName','reduce','model','isDirty','getCommentThread','commentsrepository-remove-comment-thread-internal-error','deactivateAll','remove','adapter','comments.maxThreadTotalWeight','_add','_removeActiveAnnotation','commentsrepository-active-not-attached','modifyAll','commentsrepository-missing-thread-and-adapter-method','openNewCommentThread','comments.CommentView','escape','attachTo','commentsrepository-add-comment-to-missing-comment-thread','_hasTargetInContent','find','setContext','_reopenCommentThread','fetchCommentThread','threadId','comments.maxCommentsWhenCollapsed','bodyCollectionContainer','commentsrepository-remove-missing-comment-thread','add','div','noChannel','listenTo','isFromAdapter','getPermissions','getUser','getIndex','CommentView','highest','change:activeAnnotations','isAttached','createElement','function','resolvedAt','commentsrepository-resolved-comment-thread','_update','editorDestroyed','switchReadOnly','body','reopenCommentThread','commentsrepository-active-missing-comment-thread','commentThreadInputView','getCommentThreadForAnnotation','error','once','updateCommentThread','commentsrepository-remove-comment-internal-error','resolve','comments.maxCommentCharsWhenCollapsed','_viewToController','commentUpdated','commentsrepository-invalid-comment-thread-id','createdAt','commentsrepository-missing-comment-thread','_bindAnnotationToEditors','commentsrepository-invalid-commentid','addCommentThread','_threads','getTime','warn','then','commentsrepository-get-comment-invalid-id','addComment','26883yMjGkV','isSubmitted','8685590EOwiaW','_adapter','_updateActiveAnnotation','PENDING_ACTION_COMMENT_THREAD','_addComment','requires','commentsrepository-add-comment-internal-error','Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.','isOfficialPlugin','setPermissions','commentsrepository-reopen-comment-thread-internal-error','removeComment','_readOnlyChannels','string','getByInnerView','map','commentsrepository-adapter-already-set','toJSON','PendingActions','commentsrepository-missing-target','activeCommentThread','_remove','CommentThreadView','commentsrepository-duplicated-comment-thread-id','addUser','focusTracker','define','focus','authoredAt','7469091WDicmC','getCommentThreads','change:_readOnlyChannels','isEditable','removeCommentThread','commentsrepository-update-comment-thread-internal-error','set','setUnlinkedAt','stopListening','canComment','commentsrepository-add-comment-thread-internal-error','commentInputView','_removeComment','fire','_repository','has','update','_isAttached','init','config','change:_permissions','commentsrepository-remove-missing-comment','length'];_0x1cbd=function(){return _0x295894;};return _0x1cbd();}import{CommentThreadController as _0x2fa8f6}from'./ui/commentthreadcontroller.js';import{CommentThreadView as _0x49dcf0}from'./ui/view/commentthreadview.js';import{CommentView as _0x2f874f}from'./ui/view/commentview.js';import{getTranslation as _0x11b525}from'../utils/common-translations.js';import'../../theme/comment.css';import'../../theme/commentthread.css';import'../../theme/commentinput.css';import{AnnotationView as _0xb69a6b}from'../annotations/view/annotationview.js';import{Annotation as _0x20d744}from'../annotations/annotation.js';import{Annotations as _0x22725c}from'../annotations/annotations.js';const Tt=Symbol(_0xc5bbf1(0x1c4)),_t={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};export class CommentsRepository extends _0x3fc569{[_0xc5bbf1(0x1e8)];[_0xc5bbf1(0x237)];[_0xc5bbf1(0x1e0)];static get[_0xc5bbf1(0x1f5)](){return[_0x22725c,_0x494404,_0x14f7be];}static get[_0xc5bbf1(0x259)](){const _0x1e2742=_0xc5bbf1;return _0x1e2742(0x27d);}static get[_0xc5bbf1(0x1f8)](){return!0x0;}static get[_0xc5bbf1(0x248)](){return!0x0;}constructor(_0x368486){const _0x4d3d1c=_0xc5bbf1;super(_0x368486),this[_0x4d3d1c(0x1e8)]=new Map(),this[_0x4d3d1c(0x237)]=new Map(),this[_0x4d3d1c(0x1e0)]=new Map(),this[_0x4d3d1c(0x213)](_0x4d3d1c(0x1fc),new Set()),this[_0x4d3d1c(0x213)](_0x4d3d1c(0x26c),new Map());const _0x3b2318=this[_0x4d3d1c(0x22f)][_0x4d3d1c(0x220)];_0x3b2318[_0x4d3d1c(0x20a)](_0x4d3d1c(0x1bf),0x2),_0x3b2318[_0x4d3d1c(0x20a)](_0x4d3d1c(0x1ae),0x1f4),_0x3b2318[_0x4d3d1c(0x20a)](_0x4d3d1c(0x1df),0x8c),_0x3b2318[_0x4d3d1c(0x20a)](_0x4d3d1c(0x22d),_0x49dcf0),_0x3b2318[_0x4d3d1c(0x20a)](_0x4d3d1c(0x1b5),_0x2f874f),_0x3b2318[_0x4d3d1c(0x22a)](_0x4d3d1c(0x250))||console[_0x4d3d1c(0x1ea)](_0x4d3d1c(0x1f7));}[_0xc5bbf1(0x21f)](){const _0x21be9d=_0xc5bbf1,_0x51cf12=this[_0x21be9d(0x22f)][_0x21be9d(0x258)][_0x21be9d(0x22a)](_0x22725c);this[_0x21be9d(0x213)](_0x21be9d(0x204),null),this['on'](_0x21be9d(0x1e7),(_0x521e11,_0x100b3c)=>this[_0x21be9d(0x26e)](_0x100b3c)),this['on'](_0x21be9d(0x274),(_0x2d6988,_0x48432e)=>this[_0x21be9d(0x25e)](_0x48432e)),this['on'](_0x21be9d(0x254),(_0x41cde8,_0x44e189)=>this[_0x21be9d(0x286)](_0x44e189)),this['on'](_0x21be9d(0x254),(_0x43fc71,_0x14c4e0)=>this[_0x21be9d(0x1f2)](_0x14c4e0),{'priority':_0x21be9d(0x263)}),this['on'](_0x21be9d(0x1d6),(_0x4b2a4a,_0x489bd8)=>this[_0x21be9d(0x1bc)](_0x489bd8)),this['on'](_0x21be9d(0x1d6),(_0x1afec4,_0x332b23)=>this[_0x21be9d(0x1f2)](_0x332b23),{'priority':_0x21be9d(0x263)}),this['on'](_0x21be9d(0x211),(_0x47b02d,_0x545018)=>this[_0x21be9d(0x242)](_0x545018)),this['on'](_0x21be9d(0x1dc),(_0x39fc12,_0x3be983)=>this[_0x21be9d(0x22b)](_0x3be983)),this['on'](_0x21be9d(0x1dc),(_0x3865c1,_0x45696b)=>this[_0x21be9d(0x1f2)](_0x45696b),{'priority':_0x21be9d(0x263)}),this['on'](_0x21be9d(0x1ed),(_0x4a8022,_0x22f77f)=>this[_0x21be9d(0x1f4)](_0x22f77f)),this['on'](_0x21be9d(0x28a),(_0x11b4e0,_0x4fa207)=>this[_0x21be9d(0x270)](_0x4fa207)),this['on'](_0x21be9d(0x1fb),(_0x2e7853,_0x1e9012)=>this[_0x21be9d(0x219)](_0x1e9012)),this['on'](_0x21be9d(0x1ed),(_0x4bb43c,{threadId:_0x1c8d91,isFromAdapter:_0x525864})=>{const _0x5cec56=_0x21be9d;if(_0x525864)return;const _0x446250=this[_0x5cec56(0x1a9)](_0x1c8d91),_0x2803f6=_0x446250&&this[_0x5cec56(0x237)][_0x5cec56(0x22a)](_0x446250);_0x2803f6&&_0x2803f6[_0x5cec56(0x234)][_0x5cec56(0x25c)][_0x5cec56(0x20b)](-0x1);},{'priority':_0x21be9d(0x263)}),this[_0x21be9d(0x1c5)](_0x51cf12,_0x21be9d(0x1cc),(_0x19ef88,_0x585476,_0x37b9b0)=>{const _0x4240dc=_0x21be9d,_0x1d1d2e=Array[_0x4240dc(0x27e)](_0x37b9b0)[_0x4240dc(0x1ff)](_0x23773d=>this[_0x4240dc(0x1e0)][_0x4240dc(0x22a)](_0x23773d[_0x4240dc(0x244)]))[_0x4240dc(0x27f)](Boolean)[0x0];this[_0x4240dc(0x204)]=_0x1d1d2e?_0x1d1d2e[_0x4240dc(0x28f)]:null;});}set[_0xc5bbf1(0x1ad)](_0x4d5182){const _0x19a5a3=_0xc5bbf1;if(this[_0x19a5a3(0x1f1)])throw new _0x303d15(_0x19a5a3(0x200));this[_0x19a5a3(0x1f1)]=_0x4d5182;}get[_0xc5bbf1(0x1ad)](){const _0x15c9c7=_0xc5bbf1;return this[_0x15c9c7(0x1f1)];}[_0xc5bbf1(0x1e7)]({channelId:_0x264a32=Tt,threadId:_0xeee267=_0x5caea1(),comments:_0x224bc0=[],unlinkedAt:_0x12808a=null,resolvedAt:_0x1c3952=null,resolvedBy:_0x536dbd=null,target:_0x217304=null,context:_0x3c72c5=null,attributes:_0x480e4b={},isResolvable:_0x5f55c2=!0x0,isSubmitted:_0x55a155=!0x1,isFromAdapter:_0x37fd2e=!0x1}={}){const _0x32bf42=_0xc5bbf1;return this[_0x32bf42(0x21a)](bt(_0x32bf42(0x1e7),_0x264a32),{'channelId':_0x264a32,'threadId':_0xeee267,'comments':_0x224bc0,'unlinkedAt':_0x12808a,'resolvedAt':_0x1c3952,'resolvedBy':_0x536dbd,'target':_0x217304,'context':_0x3c72c5,'attributes':_0x480e4b,'isFromAdapter':_0x37fd2e,'isResolvable':_0x5f55c2,'isSubmitted':_0x55a155}),this[_0x32bf42(0x1a9)](_0xeee267);}[_0xc5bbf1(0x1b4)]({channelId:_0x48bf0a=Tt,threadId:_0x322d8c=_0x5caea1(),target:_0x232de5,context:_0xf0ba12=null,isResolvable:_0x2326b3=!0x0}){const _0x5b1168=_0xc5bbf1;if(this[_0x5b1168(0x1fc)][_0x5b1168(0x21c)](_0x48bf0a)||this[_0x5b1168(0x1fc)][_0x5b1168(0x21c)](void 0x0))return null;if(!_0x232de5)throw new _0x303d15(_0x5b1168(0x203));const _0x3e9321=this[_0x5b1168(0x1e7)]({'channelId':_0x48bf0a,'threadId':_0x322d8c,'target':_0x232de5,'context':_0xf0ba12,'isResolvable':_0x2326b3});if(!_0x3e9321)return null;const _0x33ad0e=this[_0x5b1168(0x237)][_0x5b1168(0x22a)](_0x3e9321),_0x39fa33=_0x33ad0e[_0x5b1168(0x234)][_0x5b1168(0x1d8)][_0x5b1168(0x218)],_0x1a3a60=this[_0x5b1168(0x22f)][_0x5b1168(0x258)][_0x5b1168(0x22a)](_0x22725c),_0x226255=_0x1a3a60[_0x5b1168(0x1fe)](_0x33ad0e[_0x5b1168(0x234)]);return _0x1a3a60[_0x5b1168(0x24b)](_0x226255),_0x39fa33[_0x5b1168(0x1db)](_0x5b1168(0x287),()=>_0x39fa33[_0x5b1168(0x20b)]()),_0x3e9321;}[_0xc5bbf1(0x229)](_0x236481){const _0x417218=_0xc5bbf1;if(_0x417218(0x1fd)!=typeof _0x236481)throw new _0x303d15(_0x417218(0x1e2));return this[_0x417218(0x1e8)][_0x417218(0x21c)](_0x236481);}[_0xc5bbf1(0x1dc)]({channelId:_0x47ee73=Tt,threadId:_0x5a2965,context:_0xd0a8e7,unlinkedAt:_0x51ab78,attributes:_0x1d345e,isFromAdapter:_0x524b3d=!0x1}){const _0x354c55=_0xc5bbf1;return this[_0x354c55(0x21a)](bt(_0x354c55(0x1dc),_0x47ee73),{'channelId':_0x47ee73,'threadId':_0x5a2965,'context':_0xd0a8e7,'unlinkedAt':_0x51ab78,'attributes':_0x1d345e,'isFromAdapter':_0x524b3d}),this[_0x354c55(0x1a9)](_0x5a2965);}[_0xc5bbf1(0x1a9)](_0x5dc7e5){const _0x53c2c8=_0xc5bbf1;if(_0x53c2c8(0x1fd)!=typeof _0x5dc7e5)throw new _0x303d15(_0x53c2c8(0x1e2));return this[_0x53c2c8(0x1e8)][_0x53c2c8(0x22a)](_0x5dc7e5);}[_0xc5bbf1(0x1bd)]({channelId:_0x26defe,threadId:_0x31126c}={}){const _0x535c16=_0xc5bbf1,_0x1cc4f2=this[_0x535c16(0x1a9)](_0x31126c);if(_0x1cc4f2)return Promise[_0x535c16(0x1de)](_0x1cc4f2);if(!this[_0x535c16(0x1ad)])return Promise[_0x535c16(0x1de)](void 0x0);if(_0x535c16(0x1cf)!=typeof this[_0x535c16(0x1ad)][_0x535c16(0x1a9)])throw new _0x303d15(_0x535c16(0x1b3),this[_0x535c16(0x22f)]);return this[_0x535c16(0x1ad)][_0x535c16(0x1a9)]({'channelId':_0x26defe,'threadId':_0x31126c})[_0x535c16(0x1eb)](_0xf106d9=>this[_0x535c16(0x229)](_0x31126c)?this[_0x535c16(0x1a9)](_0x31126c):_0xf106d9?this[_0x535c16(0x1e7)](Object[_0x535c16(0x284)]({'isFromAdapter':!0x0,'channelId':_0x26defe},_0xf106d9)):void 0x0)[_0x535c16(0x261)](_0x545819=>{const _0x887a0c=_0x535c16;throw console[_0x887a0c(0x1da)](_0x545819),new _0x303d15(_0x887a0c(0x228),this[_0x887a0c(0x22f)]);});}[_0xc5bbf1(0x20e)]({channelId:_0x363ac9,skipNotAttached:_0x53c6f7=!0x1,skipEmpty:_0x3e232c=!0x1,toJSON:_0x4f8ecf=!0x1}={}){const _0x221642=_0xc5bbf1,_0x3ce9db=[];for(const _0x14b595 of this[_0x221642(0x1e8)][_0x221642(0x24e)]())_0x363ac9&&_0x14b595[_0x221642(0x24d)]!==_0x363ac9||_0x53c6f7&&!_0x14b595[_0x221642(0x1cd)]||_0x3e232c&&0x0===_0x14b595[_0x221642(0x223)]||_0x3ce9db[_0x221642(0x245)](_0x14b595);return _0x4f8ecf?_0x3ce9db[_0x221642(0x1ff)](_0xea78a9=>_0xea78a9[_0x221642(0x201)]()):_0x3ce9db;}[_0xc5bbf1(0x283)](_0x157e63){const _0x25bd46=_0xc5bbf1,_0x5b8409=this[_0x25bd46(0x237)][_0x25bd46(0x22a)](_0x157e63);if(!_0x5b8409)return null;return this[_0x25bd46(0x22f)][_0x25bd46(0x258)][_0x25bd46(0x22a)](_0x22725c)[_0x25bd46(0x1fe)](_0x5b8409[_0x25bd46(0x234)])||null;}[_0xc5bbf1(0x1d9)](_0xd87d9f){const _0x16d833=_0xc5bbf1,_0x2cd043=this[_0x16d833(0x1e0)][_0x16d833(0x22a)](_0xd87d9f[_0x16d833(0x244)]);return _0x2cd043?_0x2cd043[_0x16d833(0x28f)]:null;}[_0xc5bbf1(0x224)](_0x3cb2d8){const _0x4efe6f=_0xc5bbf1,_0x3e82e6=this[_0x4efe6f(0x22f)][_0x4efe6f(0x258)][_0x4efe6f(0x22a)](_0x22725c);if(!_0x3cb2d8)return void(this[_0x4efe6f(0x204)]&&_0x3e82e6[_0x4efe6f(0x1ab)]());const _0x162dd5=this[_0x4efe6f(0x1a9)](_0x3cb2d8);if(!_0x162dd5)throw new _0x303d15(_0x4efe6f(0x1d7),null,{'threadId':_0x3cb2d8});if(!this[_0x4efe6f(0x237)][_0x4efe6f(0x21c)](_0x162dd5))throw new _0x303d15(_0x4efe6f(0x1b1),null,{'threadId':_0x3cb2d8});const _0x18822a=_0x3e82e6[_0x4efe6f(0x1fe)](this[_0x4efe6f(0x237)][_0x4efe6f(0x22a)](_0x162dd5)[_0x4efe6f(0x234)]);_0x3e82e6[_0x4efe6f(0x24b)](_0x18822a);}[_0xc5bbf1(0x1d4)](_0x215e5a,_0x2e71ff){const _0x1fb1a2=_0xc5bbf1;_0x215e5a?this[_0x1fb1a2(0x1fc)][_0x1fb1a2(0x1c2)](_0x2e71ff):this[_0x1fb1a2(0x1fc)][_0x1fb1a2(0x264)](_0x2e71ff),this[_0x1fb1a2(0x21a)](_0x1fb1a2(0x20f),_0x1fb1a2(0x1fc),this[_0x1fb1a2(0x1fc)],this[_0x1fb1a2(0x1fc)]);}[_0xc5bbf1(0x251)](_0x8a40be){const _0x3d58d0=_0xc5bbf1;return this[_0x3d58d0(0x1fc)][_0x3d58d0(0x21c)](_0x8a40be)||this[_0x3d58d0(0x1fc)][_0x3d58d0(0x21c)](void 0x0);}[_0xc5bbf1(0x28b)](_0x2391ca,_0x5c7ec8){return new _0x2fa8f6(_0x2391ca,_0x5c7ec8);}[_0xc5bbf1(0x1f9)](_0x3fd833,_0x5d710f=Tt){const _0x3e97ac=_0xc5bbf1;this[_0x3e97ac(0x26c)][_0x3e97ac(0x213)](_0x5d710f,_0x3fd833),this[_0x3e97ac(0x21a)](_0x3e97ac(0x221),_0x3e97ac(0x26c),this[_0x3e97ac(0x26c)],this[_0x3e97ac(0x26c)]);}[_0xc5bbf1(0x1c7)](_0x13245f=Tt){const _0x3a3140=_0xc5bbf1;return this[_0x3a3140(0x26c)][_0x3a3140(0x21c)](_0x13245f)?this[_0x3a3140(0x26c)][_0x3a3140(0x22a)](_0x13245f):_t;}[_0xc5bbf1(0x26e)]({channelId:_0x2040f4,threadId:_0x1a4f43,comments:_0x3b95e5,unlinkedAt:_0x5571dd,resolvedAt:_0x1f159a,resolvedBy:_0x463a1e,target:_0x294384,context:_0x3057c,attributes:_0x4fa3b3,isFromAdapter:_0x147d54,isResolvable:_0x36020,isSubmitted:_0x5968ce}){const _0x4deca1=_0xc5bbf1;if(_0x4deca1(0x1fd)!=typeof _0x1a4f43)throw new _0x303d15(_0x4deca1(0x1e2),null,{'threadId':_0x1a4f43});if(this[_0x4deca1(0x229)](_0x1a4f43))throw new _0x303d15(_0x4deca1(0x207),null,{'threadId':_0x1a4f43});const _0x31cd16=new CommentThread(this,{'channelId':_0x2040f4,'id':_0x1a4f43,'context':_0x3057c,'attributes':_0x4fa3b3,'unlinkedAt':_0x5571dd,'resolvedAt':_0x1f159a,'resolvedBy':_0x463a1e?this[_0x4deca1(0x22f)][_0x4deca1(0x258)][_0x4deca1(0x22a)](_0x14f7be)[_0x4deca1(0x1c8)](_0x463a1e):null,'isResolvable':_0x36020,'isSubmitted':_0x5968ce||_0x147d54});this[_0x4deca1(0x1e8)][_0x4deca1(0x213)](_0x1a4f43,_0x31cd16);for(const _0x32b350 of _0x3b95e5)_0x31cd16[_0x4deca1(0x1af)](this[_0x4deca1(0x268)]({'threadId':_0x1a4f43,..._0x32b350}));return _0x294384&&_0x31cd16[_0x4deca1(0x1b7)](_0x294384),_0x147d54||!_0x31cd16[_0x4deca1(0x223)]?Promise[_0x4deca1(0x1de)]():this[_0x4deca1(0x25e)]({'channelId':_0x2040f4,'threadId':_0x1a4f43});}[_0xc5bbf1(0x25e)]({channelId:_0x2272b2,threadId:_0x257d20}){const _0x47b468=_0xc5bbf1;if(!this[_0x47b468(0x229)](_0x257d20))throw new _0x303d15(_0x47b468(0x1e4),this);const _0x34051d=this[_0x47b468(0x1a9)](_0x257d20);if(_0x34051d[_0x47b468(0x256)]=!0x0,!this[_0x47b468(0x1ad)]||_0x47b468(0x1cf)!=typeof this[_0x47b468(0x1ad)][_0x47b468(0x1e7)])return Promise[_0x47b468(0x1de)]();const {id:_0x255fa5,comments:_0x5716d2,resolvedAt:_0x5d075f,resolvedBy:_0xe36705,context:_0x5605f2,attributes:_0x56a80d}=_0x34051d,_0x10d04a=this[_0x47b468(0x22f)][_0x47b468(0x258)][_0x47b468(0x22a)](_0x47b468(0x202)),_0x514b2d=_0x10d04a[_0x47b468(0x1c2)](_0x11b525(this[_0x47b468(0x22f)][_0x47b468(0x26b)],_0x47b468(0x1f3)));return this[_0x47b468(0x1ad)][_0x47b468(0x1e7)]({'channelId':_0x2272b2,'threadId':_0x255fa5,'comments':_0x5716d2[_0x47b468(0x1ff)](_0x526f4d=>_0x526f4d[_0x47b468(0x201)]()),'resolvedAt':_0x5d075f,'resolvedBy':_0xe36705?_0xe36705['id']:_0xe36705,'context':_0x5605f2,'attributes':_0x56a80d})[_0x47b468(0x1eb)](({comments:_0x33fadc})=>{const _0x413222=_0x47b468;_0x10d04a[_0x413222(0x1ac)](_0x514b2d);for(const _0xfc15f5 of _0x33fadc)this[_0x413222(0x270)]({'channelId':_0x2272b2,'threadId':_0x257d20,'commentId':_0xfc15f5[_0x413222(0x253)],'createdAt':_0xfc15f5[_0x413222(0x1e3)],'isFromAdapter':!0x0});})[_0x47b468(0x261)](_0x2cf18b=>{const _0x276d26=_0x47b468;throw console[_0x276d26(0x1da)](_0x2cf18b),new _0x303d15(_0x276d26(0x217),this);});}[_0xc5bbf1(0x24f)]({threadId:_0x139382,target:_0x48e27b}){const _0x1ad9b7=_0xc5bbf1,_0x2743f4=this[_0x1ad9b7(0x1a9)](_0x139382);if(!_0x2743f4)throw new _0x303d15(_0x1ad9b7(0x27b),this);const _0x18ba5e=this[_0x1ad9b7(0x22f)][_0x1ad9b7(0x258)][_0x1ad9b7(0x22a)](_0x1ad9b7(0x202)),_0x5aedf1=this[_0x1ad9b7(0x22f)][_0x1ad9b7(0x258)][_0x1ad9b7(0x22a)](_0x22725c),_0x3b2c01=this[_0x1ad9b7(0x246)](_0x2743f4),_0x511b52=new _0x2fa8f6(_0x2743f4,_0x3b2c01);let _0x4ed477=null;_0x3b2c01['on'](_0x1ad9b7(0x231),(_0x45da1f,_0x56b7ad,_0x35c710)=>{const _0x4b5a75=_0x1ad9b7;_0x35c710?_0x4ed477=_0x18ba5e[_0x4b5a75(0x1c2)](_0x11b525(this[_0x4b5a75(0x22f)][_0x4b5a75(0x26b)],_0x4b5a75(0x1f3))):_0x4ed477&&(_0x18ba5e[_0x4b5a75(0x1ac)](_0x4ed477),_0x4ed477=null);}),this[_0x1ad9b7(0x237)][_0x1ad9b7(0x213)](_0x2743f4,_0x511b52),this[_0x1ad9b7(0x1e0)][_0x1ad9b7(0x213)](_0x3b2c01,_0x511b52);const _0x2af636=new _0xb69a6b(this[_0x1ad9b7(0x22f)][_0x1ad9b7(0x26b)],_0x3b2c01);_0x2af636[_0x1ad9b7(0x262)](_0x1ad9b7(0x223))['to'](_0x3b2c01),_0x2af636[_0x1ad9b7(0x262)](_0x1ad9b7(0x290))['to'](_0x3b2c01,_0x1ad9b7(0x290),_0x3b2c01,_0x1ad9b7(0x223),(_0x1bc3a0,_0x111f23)=>_0x1bc3a0||!_0x111f23),_0x2af636[_0x1ad9b7(0x262)](_0x1ad9b7(0x25f))['to'](_0x3b2c01),_0x2af636[_0x1ad9b7(0x23f)]=_0x1ad9b7(0x280);const _0x315820=new _0x20d744({'view':_0x2af636,'target':_0x48e27b,'type':_0x1ad9b7(0x280),'isVisible':!_0x2743f4[_0x1ad9b7(0x26d)]});return _0x3b2c01['on'](_0x1ad9b7(0x1b6),()=>{const _0x2dc6c1=_0x1ad9b7;_0x315820[_0x2dc6c1(0x21a)](_0x2dc6c1(0x1b6));}),this[_0x1ad9b7(0x1e5)](_0x3b2c01,_0x315820),_0x5aedf1[_0x1ad9b7(0x1c2)](_0x315820),_0x315820;}[_0xc5bbf1(0x1e5)](_0x378df0,_0x2737b8){const _0x22ea18=_0xc5bbf1;this[_0x22ea18(0x1c5)](_0x378df0,_0x22ea18(0x287),(_0x432f06,_0x31f315)=>{const _0x39a698=_0x22ea18,_0x4caddc=_0x31f315['ui'][_0x39a698(0x234)][_0x39a698(0x1d5)][_0x39a698(0x1c0)];_0x2737b8[_0x39a698(0x22c)][_0x39a698(0x1c2)](_0x4caddc),this[_0x39a698(0x22f)]instanceof _0x2a3b64&&this[_0x39a698(0x22f)]['ui'][_0x39a698(0x209)][_0x39a698(0x1c2)](_0x4caddc);},{'priority':_0x22ea18(0x1cb)}),this[_0x22ea18(0x1c5)](_0x378df0,_0x22ea18(0x1d3),(_0x187309,_0x1cbb60)=>{const _0x50938c=_0x22ea18,_0x1e1407=_0x1cbb60['ui'][_0x50938c(0x234)][_0x50938c(0x1d5)][_0x50938c(0x1c0)];_0x2737b8[_0x50938c(0x22c)][_0x50938c(0x21c)](_0x1e1407)&&_0x2737b8[_0x50938c(0x22c)][_0x50938c(0x1ac)](_0x1e1407),this[_0x50938c(0x22f)]instanceof _0x2a3b64&&this[_0x50938c(0x22f)]['ui'][_0x50938c(0x209)][_0x50938c(0x1ac)](_0x1e1407);});}[_0xc5bbf1(0x24c)](_0xcfcee3){const _0x5915f1=_0xc5bbf1;this[_0x5915f1(0x215)](_0xcfcee3,_0x5915f1(0x287)),this[_0x5915f1(0x215)](_0xcfcee3,_0x5915f1(0x1d3));}[_0xc5bbf1(0x246)](_0x153509){const _0x6bee15=_0xc5bbf1,_0x5dab3f=this[_0x6bee15(0x22f)][_0x6bee15(0x258)][_0x6bee15(0x22a)](_0x14f7be),{config:_0x2ad9a3,locale:_0x59f8c1}=this[_0x6bee15(0x22f)],_0x123506=_0x11973f(_0x2ad9a3[_0x6bee15(0x22a)](_0x6bee15(0x26b)),_0x59f8c1);return new(0x0,(_0x2ad9a3[_0x6bee15(0x22a)](_0x6bee15(0x27a)))[(_0x6bee15(0x206))])(_0x59f8c1,_0x153509,_0x5dab3f['me'],{'editorConfig':{..._0x2ad9a3[_0x6bee15(0x22a)](_0x6bee15(0x250)),'licenseKey':this[_0x6bee15(0x22f)][_0x6bee15(0x220)][_0x6bee15(0x22a)](_0x6bee15(0x226))},'copyMarkers':_0x2ad9a3[_0x6bee15(0x22a)](_0x6bee15(0x252)),'maxCommentsWhenCollapsed':_0x2ad9a3[_0x6bee15(0x22a)](_0x6bee15(0x1bf)),'maxThreadTotalWeight':_0x2ad9a3[_0x6bee15(0x22a)](_0x6bee15(0x1ae)),'maxCommentCharsWhenCollapsed':_0x2ad9a3[_0x6bee15(0x22a)](_0x6bee15(0x1df)),'formatDateTime':_0x123506,'CommentView':_0x2ad9a3[_0x6bee15(0x22a)](_0x6bee15(0x27a))[_0x6bee15(0x1ca)]});}[_0xc5bbf1(0x286)]({threadId:_0xd72c4a,channelId:_0xeceea6,resolvedAt:_0x4aa653,resolvedBy:_0x3abd4d,isFromAdapter:_0x2d0df4}){const _0x139ed3=_0xc5bbf1;if(!this[_0x139ed3(0x229)](_0xd72c4a))throw new _0x303d15(_0x139ed3(0x1e4),null,{'threadId':_0xd72c4a});const _0x312a40=this[_0x139ed3(0x1a9)](_0xd72c4a);if(_0x312a40[_0x139ed3(0x23a)])throw new _0x303d15(_0x139ed3(0x1d1),null,{'threadId':_0xd72c4a});const _0x384215=this[_0x139ed3(0x22f)][_0x139ed3(0x258)][_0x139ed3(0x22a)](_0x14f7be);if(_0x312a40[_0x139ed3(0x227)]=_0x384215[_0x139ed3(0x1c8)](_0x3abd4d),_0x312a40[_0x139ed3(0x1d0)]=_0x4aa653,_0x2d0df4||!this[_0x139ed3(0x1ad)]||_0x139ed3(0x1cf)!=typeof this[_0x139ed3(0x1ad)][_0x139ed3(0x254)])return Promise[_0x139ed3(0x1de)]();const _0x44e013=this[_0x139ed3(0x22f)][_0x139ed3(0x258)][_0x139ed3(0x22a)](_0x139ed3(0x202)),_0x20cf3d=_0x44e013[_0x139ed3(0x1c2)](_0x11b525(this[_0x139ed3(0x22f)][_0x139ed3(0x26b)],_0x139ed3(0x1f3)));return this[_0x139ed3(0x1ad)][_0x139ed3(0x254)]({'channelId':_0xeceea6,'threadId':_0xd72c4a})[_0x139ed3(0x1eb)](({resolvedAt:_0x5d0baa,resolvedBy:_0x2e3846})=>{const _0x7cf085=_0x139ed3;_0x44e013[_0x7cf085(0x1ac)](_0x20cf3d),_0x312a40[_0x7cf085(0x227)]['id']!==_0x2e3846&&(_0x312a40[_0x7cf085(0x227)]=_0x384215[_0x7cf085(0x1c8)](_0x2e3846)),_0x312a40[_0x7cf085(0x1d0)]=_0x5d0baa;})[_0x139ed3(0x261)](_0x380c53=>{const _0x4ba992=_0x139ed3;throw console[_0x4ba992(0x1da)](_0x380c53),new _0x303d15(_0x4ba992(0x272),this);});}[_0xc5bbf1(0x1bc)]({threadId:_0x5b4c1a,channelId:_0x17330d,isFromAdapter:_0x3c8b85}){const _0x5f0699=_0xc5bbf1;if(!this[_0x5f0699(0x229)](_0x5b4c1a))throw new _0x303d15(_0x5f0699(0x1e4),null,{'threadId':_0x5b4c1a});const _0xae1954=this[_0x5f0699(0x1a9)](_0x5b4c1a);if(!_0xae1954[_0x5f0699(0x23a)])throw new _0x303d15(_0x5f0699(0x257),null,{'threadId':_0x5b4c1a});if(_0xae1954[_0x5f0699(0x227)]=null,_0xae1954[_0x5f0699(0x1d0)]=null,_0x3c8b85||!this[_0x5f0699(0x1ad)]||_0x5f0699(0x1cf)!=typeof this[_0x5f0699(0x1ad)][_0x5f0699(0x1d6)])return Promise[_0x5f0699(0x1de)]();const _0x813499=this[_0x5f0699(0x22f)][_0x5f0699(0x258)][_0x5f0699(0x22a)](_0x5f0699(0x202)),_0xf1e672=_0x813499[_0x5f0699(0x1c2)](_0x11b525(this[_0x5f0699(0x22f)][_0x5f0699(0x26b)],_0x5f0699(0x1f3)));return this[_0x5f0699(0x1ad)][_0x5f0699(0x1d6)]({'channelId':_0x17330d,'threadId':_0x5b4c1a})[_0x5f0699(0x1eb)](()=>_0x813499[_0x5f0699(0x1ac)](_0xf1e672))[_0x5f0699(0x261)](_0x25a88d=>{const _0x31f128=_0x5f0699;throw console[_0x31f128(0x1da)](_0x25a88d),new _0x303d15(_0x31f128(0x1fa),this);});}[_0xc5bbf1(0x242)]({threadId:_0x31acf2,isFromAdapter:_0x146a3d}){const _0x4d4085=_0xc5bbf1,_0x1a5399=this[_0x4d4085(0x1a9)](_0x31acf2);if(!_0x1a5399)throw new _0x303d15(_0x4d4085(0x1c1),this);if(this[_0x4d4085(0x243)](_0x31acf2),this[_0x4d4085(0x1e8)][_0x4d4085(0x264)](_0x31acf2),!_0x1a5399[_0x4d4085(0x1ef)]||_0x146a3d||!this[_0x4d4085(0x1ad)]||_0x4d4085(0x1cf)!=typeof this[_0x4d4085(0x1ad)][_0x4d4085(0x211)])return Promise[_0x4d4085(0x1de)]();const _0x49f592=this[_0x4d4085(0x22f)][_0x4d4085(0x258)][_0x4d4085(0x22a)](_0x4d4085(0x202)),{channelId:_0x443239}=_0x1a5399,_0x858368=_0x49f592[_0x4d4085(0x1c2)](_0x11b525(this[_0x4d4085(0x22f)][_0x4d4085(0x26b)],_0x4d4085(0x1f3)));return this[_0x4d4085(0x1ad)][_0x4d4085(0x211)]({'channelId':_0x443239,'threadId':_0x31acf2})[_0x4d4085(0x1eb)](()=>_0x49f592[_0x4d4085(0x1ac)](_0x858368))[_0x4d4085(0x261)](_0x5a283f=>{const _0x101cdc=_0x4d4085;throw console[_0x101cdc(0x1da)](_0x5a283f),new _0x303d15(_0x101cdc(0x1aa),this);});}[_0xc5bbf1(0x22b)]({threadId:_0x51490c,unlinkedAt:_0x4647c8,context:_0x7cf754,attributes:_0x143f04,isFromAdapter:_0x3eb09c}){const _0x473336=_0xc5bbf1;if(_0x473336(0x1fd)!=typeof _0x51490c)throw new _0x303d15(_0x473336(0x1e2),null,{'threadId':_0x51490c});if(!this[_0x473336(0x229)](_0x51490c))throw new _0x303d15(_0x473336(0x1e4),null,{'threadId':_0x51490c});const _0x5d7e3f=this[_0x473336(0x1a9)](_0x51490c);let _0x2ff1e8=!0x1;if(void 0x0!==_0x7cf754&&_0x5d7e3f[_0x473336(0x22f)]!==_0x7cf754&&(_0x5d7e3f[_0x473336(0x22f)]=_0x7cf754,_0x2ff1e8=!0x0),void 0x0!==_0x4647c8&&_0x5d7e3f[_0x473336(0x247)]!==_0x4647c8&&(_0x5d7e3f[_0x473336(0x247)]=_0x4647c8,_0x2ff1e8=!0x0),_0x143f04&&!_0x340a48(_0x143f04,_0x5d7e3f[_0x473336(0x260)])&&(_0x5d7e3f[_0x473336(0x260)]=_0x143f04,_0x2ff1e8=!0x0),!_0x2ff1e8)return Promise[_0x473336(0x1de)]();if(!_0x5d7e3f[_0x473336(0x1ef)]||_0x3eb09c||!this[_0x473336(0x1ad)]||_0x473336(0x1cf)!=typeof this[_0x473336(0x1ad)][_0x473336(0x1dc)])return Promise[_0x473336(0x1de)]();const _0x207549=this[_0x473336(0x22f)][_0x473336(0x258)][_0x473336(0x22a)](_0x473336(0x202)),{channelId:_0x24aee3}=_0x5d7e3f,_0x4216c4=_0x207549[_0x473336(0x1c2)](_0x11b525(this[_0x473336(0x22f)][_0x473336(0x26b)],_0x473336(0x1f3)));return this[_0x473336(0x1ad)][_0x473336(0x1dc)]({'channelId':_0x24aee3,'threadId':_0x51490c,'context':_0x7cf754,'unlinkedAt':_0x4647c8,'attributes':_0x143f04})[_0x473336(0x1eb)](()=>_0x207549[_0x473336(0x1ac)](_0x4216c4))[_0x473336(0x261)](_0x44458a=>{const _0x2779b2=_0x473336;throw console[_0x2779b2(0x1da)](_0x44458a),new _0x303d15(_0x2779b2(0x212),this);});}[_0xc5bbf1(0x243)](_0x4179d1){const _0x2d1d29=_0xc5bbf1,_0x982bfb=this[_0x2d1d29(0x22f)][_0x2d1d29(0x258)][_0x2d1d29(0x22a)](_0x22725c),_0x45888d=this[_0x2d1d29(0x1a9)](_0x4179d1);if(_0x45888d[_0x2d1d29(0x21e)]=!0x1,this[_0x2d1d29(0x237)][_0x2d1d29(0x21c)](_0x45888d)){const _0x2b8e8e=this[_0x2d1d29(0x237)][_0x2d1d29(0x22a)](_0x45888d),_0x48be52=_0x2b8e8e[_0x2d1d29(0x234)],_0x4921ef=_0x982bfb[_0x2d1d29(0x1fe)](_0x48be52);this[_0x2d1d29(0x237)][_0x2d1d29(0x264)](_0x45888d),this[_0x2d1d29(0x1e0)][_0x2d1d29(0x264)](_0x48be52),_0x4921ef&&_0x982bfb[_0x2d1d29(0x1ac)](_0x4921ef),_0x2b8e8e[_0x2d1d29(0x269)](),_0x48be52[_0x2d1d29(0x269)]()[_0x2d1d29(0x1eb)](()=>{const _0x7799e7=_0x2d1d29;this[_0x7799e7(0x24c)](_0x48be52);});}}[_0xc5bbf1(0x1f2)]({threadId:_0x2a2295,resolvedAt:_0x3f3dd6,unlinkedAt:_0x466f8f}){const _0x173fb2=_0xc5bbf1,_0x2c3e39=!!_0x3f3dd6,_0x26456f=this[_0x173fb2(0x22f)][_0x173fb2(0x258)][_0x173fb2(0x22a)](_0x22725c),_0x22ac77=this[_0x173fb2(0x1a9)](_0x2a2295);if(this[_0x173fb2(0x237)][_0x173fb2(0x21c)](_0x22ac77)){const _0x1d29ba=this[_0x173fb2(0x237)][_0x173fb2(0x22a)](_0x22ac77)[_0x173fb2(0x234)],_0x59c217=_0x26456f[_0x173fb2(0x1fe)](_0x1d29ba);_0x59c217&&(_0x2c3e39&&_0x26456f[_0x173fb2(0x1b0)](_0x59c217),_0x466f8f?_0x59c217[_0x173fb2(0x279)]=!0x1:_0x59c217[_0x173fb2(0x24a)]());}}[_0xc5bbf1(0x239)](_0x2a3fe6){const _0x4aac1c=_0xc5bbf1,_0x51bc76=this[_0x4aac1c(0x22f)][_0x4aac1c(0x258)][_0x4aac1c(0x22a)](_0x14f7be),_0x488192=_0x331700(_0x4aac1c(0x277)+_0x2a3fe6),_0xa22bac=_0x51bc76[_0x4aac1c(0x1c8)](_0x488192);return _0xa22bac||_0x51bc76[_0x4aac1c(0x208)]({'id':_0x488192,'name':_0x2a3fe6});}[_0xc5bbf1(0x268)]({threadId:_0x338a9f,commentId:_0x49e1bb=_0x5caea1(),content:_0x1554d4,authorId:_0x88a1c1,createdAt:_0x43429a,attributes:_0x33e6e6}){const _0x145b82=_0xc5bbf1;if(_0x145b82(0x1fd)!=typeof _0x49e1bb)throw new _0x303d15(_0x145b82(0x1e6));if(_0x145b82(0x1fd)!=typeof _0x88a1c1)throw new _0x303d15(_0x145b82(0x288));if(_0x145b82(0x1fd)!=typeof _0x1554d4||!_0x1554d4[_0x145b82(0x230)]())throw new _0x303d15(_0x145b82(0x255));const _0x1d3460=this[_0x145b82(0x22f)][_0x145b82(0x258)][_0x145b82(0x22a)](_0x14f7be)[_0x145b82(0x1c8)](_0x88a1c1);if(!_0x1d3460)throw new _0x303d15(_0x145b82(0x282),null,{'authorId':_0x88a1c1});let _0x967f1a=null,_0xc4d5b9=_0x43429a;return _0x33e6e6?.[_0x145b82(0x23c)]&&(_0x967f1a=this[_0x145b82(0x239)](_0x33e6e6[_0x145b82(0x23c)][_0x145b82(0x28d)]),_0xc4d5b9=new Date(_0x33e6e6[_0x145b82(0x23c)][_0x145b82(0x1e3)])),new Comment(this,{'threadId':_0x338a9f,'id':_0x49e1bb,'author':_0x967f1a||_0x1d3460,'creator':_0x1d3460,'content':_0x1554d4,'createdAt':_0x43429a,'authoredAt':_0xc4d5b9,'attributes':_0x33e6e6});}[_0xc5bbf1(0x1f4)](_0x4bbb8a){const _0x561efd=_0xc5bbf1;let {threadId:_0x23133e,content:_0x5b26bb,attributes:_0x583160,isFromAdapter:_0x2752b4}=_0x4bbb8a;const _0x500051=this[_0x561efd(0x1a9)](_0x4bbb8a[_0x561efd(0x1be)]);if(!_0x500051)throw new _0x303d15(_0x561efd(0x1b8),this);const _0x3f1731=this[_0x561efd(0x268)](_0x4bbb8a),{id:_0x2c204f}=_0x3f1731;if(_0x500051[_0x561efd(0x1af)](_0x3f1731),_0x2752b4||!this[_0x561efd(0x1ad)]||_0x561efd(0x1cf)!=typeof this[_0x561efd(0x1ad)][_0x561efd(0x1ed)]||!_0x500051[_0x561efd(0x1ef)])return Promise[_0x561efd(0x1de)]();const _0x12db20=this[_0x561efd(0x22f)][_0x561efd(0x258)][_0x561efd(0x22a)](_0x561efd(0x202)),{channelId:_0x24b06b}=_0x500051,_0x54363e=_0x12db20[_0x561efd(0x1c2)](_0x11b525(this[_0x561efd(0x22f)][_0x561efd(0x26b)],_0x561efd(0x1f3)));return _0x583160||(_0x583160={}),this[_0x561efd(0x1ad)][_0x561efd(0x1ed)]({'channelId':_0x24b06b,'threadId':_0x23133e,'commentId':_0x2c204f,'content':_0x5b26bb,'attributes':_0x583160})[_0x561efd(0x1eb)](_0x17af3c=>{const _0x26b612=_0x561efd;_0x12db20[_0x26b612(0x1ac)](_0x54363e),_0x17af3c&&this[_0x26b612(0x270)]({'channelId':_0x24b06b,'threadId':_0x23133e,'commentId':_0x2c204f,'createdAt':_0x17af3c[_0x26b612(0x1e3)],'isFromAdapter':!0x0});})[_0x561efd(0x261)](_0x149844=>{const _0x53d2ac=_0x561efd;throw console[_0x53d2ac(0x1da)](_0x149844),new _0x303d15(_0x53d2ac(0x1f6),this);});}[_0xc5bbf1(0x270)]({threadId:_0x1ded0e,commentId:_0x3cbf2a,content:_0x449d0e,createdAt:_0x3b1ec4,attributes:_0x4a8b4,isFromAdapter:_0x4d40ab}){const _0x5a42c3=_0xc5bbf1;if(void 0x0!==_0x449d0e&&(_0x5a42c3(0x1fd)!=typeof _0x449d0e||!_0x449d0e[_0x5a42c3(0x230)]()[_0x5a42c3(0x223)]))throw new _0x303d15(_0x5a42c3(0x273));const _0x4295ae=this[_0x5a42c3(0x1a9)](_0x1ded0e),_0x174a0e=_0x4295ae[_0x5a42c3(0x26a)](_0x3cbf2a);if(!_0x174a0e)throw new _0x303d15(_0x5a42c3(0x249),this);let _0x1677ea=!0x1;if(_0x449d0e&&_0x449d0e!==_0x174a0e[_0x5a42c3(0x266)]&&(_0x174a0e[_0x5a42c3(0x210)]||_0x4d40ab)&&(_0x174a0e[_0x5a42c3(0x266)]=_0x449d0e,_0x1677ea=!0x0),_0x3b1ec4&&_0x3b1ec4!==_0x174a0e[_0x5a42c3(0x1e3)]&&(_0x174a0e[_0x5a42c3(0x1e3)]=_0x3b1ec4,_0x174a0e[_0x5a42c3(0x260)]&&_0x174a0e[_0x5a42c3(0x260)][_0x5a42c3(0x23c)]||(_0x174a0e[_0x5a42c3(0x20c)]=_0x3b1ec4),_0x1677ea=!0x0),_0x4a8b4&&!_0x340a48(_0x4a8b4,_0x174a0e[_0x5a42c3(0x260)])&&(_0x174a0e[_0x5a42c3(0x260)]=_0x4a8b4,_0x1677ea=!0x0),!_0x1677ea)return Promise[_0x5a42c3(0x1de)]();if(_0x4295ae[_0x5a42c3(0x21a)](_0x5a42c3(0x1e1)),_0x4d40ab||!this[_0x5a42c3(0x1ad)]||_0x5a42c3(0x1cf)!=typeof this[_0x5a42c3(0x1ad)][_0x5a42c3(0x28a)])return Promise[_0x5a42c3(0x1de)]();const _0x3c94fb=this[_0x5a42c3(0x22f)][_0x5a42c3(0x258)][_0x5a42c3(0x22a)](_0x5a42c3(0x202)),{channelId:_0x4f0d83}=this[_0x5a42c3(0x1a9)](_0x174a0e[_0x5a42c3(0x1be)]),_0x465cd3=_0x3c94fb[_0x5a42c3(0x1c2)](_0x11b525(this[_0x5a42c3(0x22f)][_0x5a42c3(0x26b)],_0x5a42c3(0x1f3)));return this[_0x5a42c3(0x1ad)][_0x5a42c3(0x28a)]({'channelId':_0x4f0d83,'threadId':_0x1ded0e,'commentId':_0x3cbf2a,'content':_0x449d0e,'attributes':_0x4a8b4})[_0x5a42c3(0x1eb)](()=>_0x3c94fb[_0x5a42c3(0x1ac)](_0x465cd3))[_0x5a42c3(0x261)](_0x4cc3e9=>{const _0x231fb7=_0x5a42c3;throw console[_0x231fb7(0x1da)](_0x4cc3e9),new _0x303d15(_0x231fb7(0x25a),this);});}[_0xc5bbf1(0x219)]({threadId:_0x383415,commentId:_0x23b947,isFromAdapter:_0x1a0ca9}){const _0x25f02d=_0xc5bbf1,_0x417029=this[_0x25f02d(0x1a9)](_0x383415),_0x1dc5c6=_0x417029[_0x25f02d(0x26a)](_0x23b947);if(!_0x1dc5c6)throw new _0x303d15(_0x25f02d(0x222),this);if(_0x417029[_0x25f02d(0x205)](_0x1dc5c6),_0x1a0ca9||!this[_0x25f02d(0x1ad)]||_0x25f02d(0x1cf)!=typeof this[_0x25f02d(0x1ad)][_0x25f02d(0x1fb)])return Promise[_0x25f02d(0x1de)]();const _0x1e9244=this[_0x25f02d(0x22f)][_0x25f02d(0x258)][_0x25f02d(0x22a)](_0x25f02d(0x202)),{channelId:_0x54c126}=_0x417029,_0x4fd709=_0x1e9244[_0x25f02d(0x1c2)](_0x11b525(this[_0x25f02d(0x22f)][_0x25f02d(0x26b)],_0x25f02d(0x1f3)));return this[_0x25f02d(0x1ad)][_0x25f02d(0x1fb)]({'channelId':_0x54c126,'threadId':_0x383415,'commentId':_0x23b947})[_0x25f02d(0x1eb)](()=>_0x1e9244[_0x25f02d(0x1ac)](_0x4fd709))[_0x25f02d(0x261)](_0x3f371a=>{const _0x5c14bc=_0x25f02d;throw console[_0x5c14bc(0x1da)](_0x3f371a),new _0x303d15(_0x5c14bc(0x1dd),this);});}}export class CommentThread extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f7be4(){[_0xc5bbf1(0x24d)];['id'];[_0xc5bbf1(0x21e)];[_0xc5bbf1(0x256)];[_0xc5bbf1(0x27a)];[_0xc5bbf1(0x21b)];constructor(_0x3eac60,_0x16685d){const _0x1fcd29=_0xc5bbf1;super();const _0xe733f1=_0x16685d[_0x1fcd29(0x265)];this[_0x1fcd29(0x24d)]=_0x16685d[_0x1fcd29(0x24d)],this['id']=_0x16685d['id'],this[_0x1fcd29(0x27a)]=new _0x2e4339(),this[_0x1fcd29(0x21b)]=_0x3eac60,this[_0x1fcd29(0x21e)]=!0x1,this[_0x1fcd29(0x256)]=_0x16685d[_0x1fcd29(0x1ef)],this[_0x1fcd29(0x213)](_0x1fcd29(0x1b9),!0x0),this[_0x1fcd29(0x262)](_0x1fcd29(0x251))['to'](_0x3eac60,_0x1fcd29(0x26c),_0x3eac60,_0x1fcd29(0x1fc),()=>_0x3eac60[_0x1fcd29(0x251)](this[_0x1fcd29(0x24d)])),this[_0x1fcd29(0x262)](_0x1fcd29(0x25d))['to'](_0x3eac60,_0x1fcd29(0x26c),()=>_0x3eac60[_0x1fcd29(0x1c7)](this[_0x1fcd29(0x24d)])[_0x1fcd29(0x271)]),this[_0x1fcd29(0x262)](_0x1fcd29(0x216))['to'](_0x3eac60,_0x1fcd29(0x26c),()=>{const _0x34870a=_0x1fcd29,_0x44e966=_0x3eac60[_0x34870a(0x1c7)](this[_0x34870a(0x24d)]);return _0x44e966[_0x34870a(0x225)]||_0x44e966[_0x34870a(0x271)];}),this[_0x1fcd29(0x262)](_0x1fcd29(0x265))['to'](_0x3eac60,_0x1fcd29(0x26c),()=>_0xe733f1&&_0x3eac60[_0x1fcd29(0x1c7)](this[_0x1fcd29(0x24d)])[_0x1fcd29(0x1de)]),this[_0x1fcd29(0x213)](_0x1fcd29(0x22f),_0x16685d[_0x1fcd29(0x22f)]),this[_0x1fcd29(0x262)](_0x1fcd29(0x26d))['to'](this,_0x1fcd29(0x1d0),this,_0x1fcd29(0x247),(_0x3e93d7,_0x19ba7a)=>_0x3e93d7?_0x19ba7a?_0x3e93d7<_0x19ba7a?_0x3e93d7:_0x19ba7a:_0x3e93d7:_0x19ba7a),this[_0x1fcd29(0x213)](_0x1fcd29(0x247),_0x16685d[_0x1fcd29(0x247)]||null),this[_0x1fcd29(0x213)](_0x1fcd29(0x1d0),_0x16685d[_0x1fcd29(0x1d0)]||null),this[_0x1fcd29(0x213)](_0x1fcd29(0x227),_0x16685d[_0x1fcd29(0x227)]||null),this[_0x1fcd29(0x262)](_0x1fcd29(0x23a))['to'](this,_0x1fcd29(0x1d0),_0xc335f9=>!!_0xc335f9),this[_0x1fcd29(0x213)](_0x1fcd29(0x260),_0x16685d[_0x1fcd29(0x260)]||{});}get[_0xc5bbf1(0x285)](){const _0x15f0ce=_0xc5bbf1;return Array[_0x15f0ce(0x27e)](this[_0x15f0ce(0x27a)])[_0x15f0ce(0x28e)]((_0x5e2a33,_0x233a5)=>_0x5e2a33+_0x233a5[_0x15f0ce(0x285)],0x0);}get[_0xc5bbf1(0x223)](){const _0x2c5c1c=_0xc5bbf1;return this[_0x2c5c1c(0x27a)][_0x2c5c1c(0x223)];}get[_0xc5bbf1(0x1cd)](){const _0x19a6a1=_0xc5bbf1;return this[_0x19a6a1(0x21e)];}get[_0xc5bbf1(0x1ef)](){const _0x514c17=_0xc5bbf1;return this[_0x514c17(0x256)];}[_0xc5bbf1(0x267)](){const _0x3be102=_0xc5bbf1,{channelId:_0x193d03,id:_0x5927ca}=this;this[_0x3be102(0x21b)][_0x3be102(0x21a)](bt(_0x3be102(0x274),_0x193d03),{'channelId':_0x193d03,'threadId':_0x5927ca});}[_0xc5bbf1(0x214)](_0x292e7c){const _0x19db9c=_0xc5bbf1;this[_0x19db9c(0x1d2)]({'unlinkedAt':_0x292e7c});}[_0xc5bbf1(0x1de)]({resolvedAt:_0x1fc420=new Date(),resolvedBy:_0x4da942=null,isFromAdapter:_0x3896a9=!0x1}={}){const _0x2d80f3=_0xc5bbf1,_0x445a56=this[_0x2d80f3(0x21b)][_0x2d80f3(0x22f)][_0x2d80f3(0x258)][_0x2d80f3(0x22a)](_0x14f7be)['me'],{channelId:_0x544abb,id:_0x400907}=this;this[_0x2d80f3(0x21b)][_0x2d80f3(0x21a)](bt(_0x2d80f3(0x254),_0x544abb),{'channelId':_0x544abb,'threadId':_0x400907,'resolvedAt':_0x1fc420,'resolvedBy':_0x4da942||_0x445a56['id'],'isFromAdapter':_0x3896a9});}[_0xc5bbf1(0x235)]({isFromAdapter:_0x37cba3=!0x1}={}){const _0x31c04d=_0xc5bbf1,{channelId:_0x26657b,id:_0x43f87c}=this;this[_0x31c04d(0x21b)][_0x31c04d(0x21a)](bt(_0x31c04d(0x1d6),_0x26657b),{'channelId':_0x26657b,'threadId':_0x43f87c,'isFromAdapter':_0x37cba3});}[_0xc5bbf1(0x1bb)](_0x42045b){const _0x23f804=_0xc5bbf1;this[_0x23f804(0x22f)]||this[_0x23f804(0x1d2)]({'context':_0x42045b});}[_0xc5bbf1(0x236)](_0x3f4459,_0x4d23c7){const _0x281e88=_0xc5bbf1,_0x382f10=_0x12c243(this[_0x281e88(0x260)]);_0x32a80d(_0x382f10,_0x3f4459,_0x4d23c7),this[_0x281e88(0x1d2)]({'attributes':_0x382f10});}[_0xc5bbf1(0x26f)](_0x21d247){const _0x2fabae=_0xc5bbf1,_0x2ef31f=_0x12c243(this[_0x2fabae(0x260)]);_0x8645d0(_0x2ef31f,_0x21d247),this[_0x2fabae(0x1d2)]({'attributes':_0x2ef31f});}[_0xc5bbf1(0x1ac)]({isFromAdapter:_0x4f3f5e=!0x1}={}){const _0x1f6668=_0xc5bbf1,{channelId:_0x280c17,id:_0x57e230}=this;this[_0x1f6668(0x21b)][_0x1f6668(0x21a)](bt(_0x1f6668(0x211),_0x280c17),{'channelId':_0x280c17,'threadId':_0x57e230,'isFromAdapter':_0x4f3f5e});}[_0xc5bbf1(0x1b7)](_0x392a11){const _0x58f641=_0xc5bbf1;return this[_0x58f641(0x21b)][_0x58f641(0x24f)]({'threadId':this['id'],'target':_0x392a11});}[_0xc5bbf1(0x1ed)](_0x3acb81){const _0x5ade59=_0xc5bbf1,{channelId:_0xafd820,id:_0x789944}=this;this[_0x5ade59(0x21b)][_0x5ade59(0x21a)](bt(_0x5ade59(0x1ed),_0xafd820,_0x789944),Object[_0x5ade59(0x284)]({'channelId':_0xafd820,'threadId':_0x789944},_0x3acb81));}[_0xc5bbf1(0x26a)](_0x3fb358){const _0x5a5f8c=_0xc5bbf1;if(_0x5a5f8c(0x1fd)!=typeof _0x3fb358)throw new _0x303d15(_0x5a5f8c(0x1ec),null,{'commentId':_0x3fb358});return this[_0x5a5f8c(0x27a)][_0x5a5f8c(0x22a)](_0x3fb358);}[_0xc5bbf1(0x201)](){const _0x1562be=_0xc5bbf1;return{'threadId':this['id'],'context':this[_0x1562be(0x22f)],'unlinkedAt':this[_0x1562be(0x247)],'resolvedAt':this[_0x1562be(0x1d0)],'resolvedBy':this[_0x1562be(0x227)]?this[_0x1562be(0x227)]['id']:null,'archivedAt':this[_0x1562be(0x26d)],'comments':this[_0x1562be(0x27a)][_0x1562be(0x1ff)](_0x48279e=>_0x48279e[_0x1562be(0x201)]()),'attributes':this[_0x1562be(0x260)]};}[_0xc5bbf1(0x1af)](_0x59f7bb){const _0x2dc7f1=_0xc5bbf1;return this[_0x2dc7f1(0x1c5)](_0x59f7bb,_0x2dc7f1(0x276),()=>{const _0x2b0fc8=_0x2dc7f1,_0x81ef43=this[_0x2b0fc8(0x27c)](_0x59f7bb),_0x545ac6=this[_0x2b0fc8(0x27a)];_0x81ef43-0x1!=_0x545ac6[_0x2b0fc8(0x1c9)](_0x59f7bb)&&_0x81ef43+0x1!=_0x545ac6[_0x2b0fc8(0x1c9)](_0x59f7bb)&&(this[_0x2b0fc8(0x205)](_0x59f7bb),this[_0x2b0fc8(0x1af)](_0x59f7bb));}),this[_0x2dc7f1(0x27a)][_0x2dc7f1(0x1c2)](_0x59f7bb,this[_0x2dc7f1(0x27c)](_0x59f7bb));}[_0xc5bbf1(0x1d2)](_0x3325a3){const _0x50d40d=_0xc5bbf1,{channelId:_0x213350,id:_0x22ab87}=this;this[_0x50d40d(0x21b)][_0x50d40d(0x21a)](bt(_0x50d40d(0x1dc),_0x213350),{..._0x3325a3,'channelId':_0x213350,'threadId':_0x22ab87});}[_0xc5bbf1(0x205)](_0x18c32f){const _0x21164a=_0xc5bbf1;return this[_0x21164a(0x215)](_0x18c32f),_0x18c32f[_0x21164a(0x269)](),this[_0x21164a(0x27a)][_0x21164a(0x1ac)](_0x18c32f);}[_0xc5bbf1(0x27c)](_0x376f1d){const _0xe63a34=_0xc5bbf1,_0x55d2df=this[_0xe63a34(0x27a)][_0xe63a34(0x1ba)](_0x278712=>new Date(_0x278712[_0xe63a34(0x20c)])[_0xe63a34(0x1e9)]()>new Date(_0x376f1d[_0xe63a34(0x20c)])[_0xe63a34(0x1e9)]());return _0x55d2df?this[_0xe63a34(0x27a)][_0xe63a34(0x1c9)](_0x55d2df):this[_0xe63a34(0x223)];}}export class Comment extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1f7be4(){['id'];[_0xc5bbf1(0x1be)];[_0xc5bbf1(0x232)];[_0xc5bbf1(0x23e)];[_0xc5bbf1(0x240)];[_0xc5bbf1(0x1e3)];[_0xc5bbf1(0x21b)];constructor(_0x10e292,_0x3313b3){const _0x23d27c=_0xc5bbf1;super();const _0x116025=_0x10e292[_0x23d27c(0x22f)][_0x23d27c(0x258)][_0x23d27c(0x22a)](_0x14f7be)['me'],_0x3338f1=_0x10e292[_0x23d27c(0x1a9)](_0x3313b3[_0x23d27c(0x1be)]),_0x1bbc2e=0x0===_0x3338f1[_0x23d27c(0x27a)][_0x23d27c(0x223)],_0x404653=_0x116025===_0x3313b3[_0x23d27c(0x232)];this['id']=_0x3313b3['id'],this[_0x23d27c(0x1be)]=_0x3313b3[_0x23d27c(0x1be)],this[_0x23d27c(0x232)]=_0x3313b3[_0x23d27c(0x232)],this[_0x23d27c(0x23e)]=_0x3313b3[_0x23d27c(0x23e)],this[_0x23d27c(0x240)]=Boolean(_0x3313b3[_0x23d27c(0x260)]&&_0x3313b3[_0x23d27c(0x260)][_0x23d27c(0x23c)]),this[_0x23d27c(0x213)](_0x23d27c(0x266),_0x3313b3[_0x23d27c(0x266)]),this[_0x23d27c(0x1e3)]=_0x3313b3[_0x23d27c(0x1e3)]||new Date(),this[_0x23d27c(0x213)](_0x23d27c(0x20c),_0x3313b3[_0x23d27c(0x20c)]||new Date()),this[_0x23d27c(0x262)](_0x23d27c(0x1d0))['to'](_0x3338f1,_0x23d27c(0x1d0)),this[_0x23d27c(0x213)](_0x23d27c(0x260),_0x3313b3[_0x23d27c(0x260)]||{}),this[_0x23d27c(0x262)](_0x23d27c(0x210))['to'](_0x10e292,_0x23d27c(0x26c),()=>{const _0x137fdd=_0x23d27c,_0x2faf50=_0x10e292[_0x137fdd(0x1c7)](_0x3338f1[_0x137fdd(0x24d)])[_0x137fdd(0x225)],_0x56c569=_0x10e292[_0x137fdd(0x1c7)](_0x3338f1[_0x137fdd(0x24d)])[_0x137fdd(0x1b2)];return _0x404653&&_0x2faf50||!_0x404653&&_0x56c569;}),this[_0x23d27c(0x262)](_0x23d27c(0x25d))['to'](_0x3338f1,_0x23d27c(0x25d),_0x10e292,_0x23d27c(0x26c),_0xc803be=>{const _0x22388b=_0x23d27c,_0x1c8143=_0x10e292[_0x22388b(0x1c7)](_0x3338f1[_0x22388b(0x24d)])[_0x22388b(0x225)],_0x4082c8=_0x10e292[_0x22388b(0x1c7)](_0x3338f1[_0x22388b(0x24d)])[_0x22388b(0x1b2)];return _0x404653&&_0x1c8143||_0xc803be&&_0x1bbc2e||!_0x404653&&_0x4082c8&&!_0x1bbc2e;}),this[_0x23d27c(0x262)](_0x23d27c(0x251))['to'](_0x3338f1,_0x23d27c(0x251)),this[_0x23d27c(0x21b)]=_0x10e292;}get[_0xc5bbf1(0x285)](){const _0x39c5bc=_0xc5bbf1;return Math[_0x39c5bc(0x22e)](function(_0x15abcf){const _0x2090cc=_0x39c5bc,_0x4b917d=document[_0x2090cc(0x1ce)](_0x2090cc(0x1c3));return _0x4b917d[_0x2090cc(0x25b)]=_0x15abcf,_0x4b917d[_0x2090cc(0x275)][_0x2090cc(0x223)];}(this[_0x39c5bc(0x266)]),0xc8);}[_0xc5bbf1(0x21d)](_0x4290e0){const _0x1d70af=_0xc5bbf1,{threadId:_0x5284d8,id:_0x7500d1}=this;if(!this[_0x1d70af(0x21b)][_0x1d70af(0x229)](_0x5284d8))throw new _0x303d15(_0x1d70af(0x238),this);const {channelId:_0x2dadfb}=this[_0x1d70af(0x21b)][_0x1d70af(0x1a9)](_0x5284d8);this[_0x1d70af(0x21b)][_0x1d70af(0x21a)](bt(_0x1d70af(0x28a),_0x2dadfb,_0x5284d8),{'channelId':_0x2dadfb,'threadId':_0x5284d8,'commentId':_0x7500d1,..._0x4290e0});}[_0xc5bbf1(0x236)](_0x420ef3,_0x1c3dd3){const _0x1a2c4f=_0xc5bbf1,_0x10f86e=_0x12c243(this[_0x1a2c4f(0x260)]);_0x32a80d(_0x10f86e,_0x420ef3,_0x1c3dd3),this[_0x1a2c4f(0x21d)]({'attributes':_0x10f86e});}[_0xc5bbf1(0x26f)](_0x464d3b){const _0x3e4d21=_0xc5bbf1,_0x1d2e78=_0x12c243(this[_0x3e4d21(0x260)]);_0x8645d0(_0x1d2e78,_0x464d3b),this[_0x3e4d21(0x21d)]({'attributes':_0x1d2e78});}[_0xc5bbf1(0x1ac)](_0x1be093={}){const _0x1b6835=_0xc5bbf1;if(!_0x1be093[_0x1b6835(0x1c6)]&&!this[_0x1b6835(0x25d)])return;const {threadId:_0xb8f72d,id:_0xfbd036}=this;if(!this[_0x1b6835(0x21b)][_0x1b6835(0x229)](_0xb8f72d))throw new _0x303d15(_0x1b6835(0x23b),this);const {channelId:_0x2e6306}=this[_0x1b6835(0x21b)][_0x1b6835(0x1a9)](_0xb8f72d);this[_0x1b6835(0x21b)][_0x1b6835(0x21a)](bt(_0x1b6835(0x1fb),_0x2e6306,_0xb8f72d),{'channelId':_0x2e6306,'threadId':_0xb8f72d,'commentId':_0xfbd036,..._0x1be093});}[_0xc5bbf1(0x201)](){const _0x36582c=_0xc5bbf1;return{'commentId':this['id'],'content':this[_0x36582c(0x266)],'createdAt':this[_0x36582c(0x1e3)],'authorId':this[_0x36582c(0x23e)]['id'],'attributes':this[_0x36582c(0x260)]};}[_0xc5bbf1(0x269)](){const _0x3daae4=_0xc5bbf1;this[_0x3daae4(0x215)]();}}function bt(_0x350c2a,..._0x200203){for(const _0x5daa5b of _0x200203)void 0x0!==_0x5daa5b&&(_0x350c2a+=':'+String(_0x5daa5b));return _0x350c2a;}
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* @module comments/comments/commentsui
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import CommentsRepository from './commentsrepository.js';
|
|
10
|
-
import CommentsEditing from './commentsediting.js';
|
|
11
|
-
import EditorAnnotations from '../annotations/editorannotations.js';
|
|
12
|
-
import Annotations from '../annotations/annotations.js';
|
|
9
|
+
import { CommentsRepository } from './commentsrepository.js';
|
|
10
|
+
import { CommentsEditing } from './commentsediting.js';
|
|
11
|
+
import { EditorAnnotations } from '../annotations/editorannotations.js';
|
|
12
|
+
import { Annotations } from '../annotations/annotations.js';
|
|
13
13
|
/**
|
|
14
14
|
* Creates `comment` {@link module:ui/button/buttonview~ButtonView ui button} and binds with
|
|
15
15
|
* {@link module:comments/comments/addcommentthreadcommand~AddCommentThreadCommand}.
|
|
@@ -17,7 +17,7 @@ import Annotations from '../annotations/annotations.js';
|
|
|
17
17
|
* Because of CommentsRepository handles UI of CommentThreads responsibility of this plugin is limited to
|
|
18
18
|
* adjusting comments UX for the editor purpose.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export declare class CommentsUI extends Plugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x335e06=_0x5d3c;(function(_0x230bed,_0x4ac0b3){const _0x499845=_0x5d3c,_0x247b22=_0x230bed();while(!![]){try{const _0xa627d9=-parseInt(_0x499845(0x1fb))/0x1*(parseInt(_0x499845(0x1d2))/0x2)+-parseInt(_0x499845(0x1c8))/0x3+-parseInt(_0x499845(0x206))/0x4+parseInt(_0x499845(0x1de))/0x5*(parseInt(_0x499845(0x1bc))/0x6)+parseInt(_0x499845(0x1f7))/0x7+-parseInt(_0x499845(0x201))/0x8*(parseInt(_0x499845(0x1c3))/0x9)+parseInt(_0x499845(0x1fc))/0xa*(parseInt(_0x499845(0x1ec))/0xb);if(_0xa627d9===_0x4ac0b3)break;else _0x247b22['push'](_0x247b22['shift']());}catch(_0x53f2a0){_0x247b22['push'](_0x247b22['shift']());}}}(_0x168d,0x6b6a8));import{Plugin as _0x289514}from'ckeditor5/src/core.js';import{IconAddComment as _0x4de475}from'ckeditor5/src/icons.js';import{CommentsRepository as _0x51d768}from'./commentsrepository.js';import{CommentsEditing as _0x5ece8f}from'./commentsediting.js';import{EditorAnnotations as _0x281007}from'../annotations/editorannotations.js';function _0x5d3c(_0x56d026,_0x43810e){const _0x168d04=_0x168d();return _0x5d3c=function(_0x5d3c63,_0xf39a31){_0x5d3c63=_0x5d3c63-0x1ba;let _0x43b6f1=_0x168d04[_0x5d3c63];return _0x43b6f1;},_0x5d3c(_0x56d026,_0x43810e);}import{ButtonView as _0x2c5ac9,MenuBarMenuListItemButtonView as _0x19a774}from'ckeditor5/src/ui.js';function _0x168d(){const _0x1b8dc8=['model','CommentThreadInputView','evaluationLimit','highest','commentsLicenseKeyUsageLimit','domainLimit','_licenseKeyCheckInterval','8657pwwApI','addCommentThread','stop','get','requires','usageLimit','push','addSourceCollector','activeMarker','plugins','getAllMarkersForId','2647435czybOY','set','commentsLicenseKeyTrialLimit','expired','53785pJupmJ','24730faHHMv','hasCommentThread','locale','hasMarkerForId','view','981096zUMNLz','isOfficialPlugin','init','getCommentThread','commands','3319992lgOMSL','Comments','commentsLicenseKeyEvaluationLimit','map','innerView','bind','trialLimit','change:activeAnnotations','addComment','has','_viewToController','_showLicenseError','componentFactory','comment:','1146njNZrc','editor','focus','commentsLicenseKeyNotAllowed','CommentsUI','commentsLicenseKeyDomainLimit','low','18AwdaHz','commentsLicenseKeyInvalid','config','commentsLicenseKeyValid','listenTo','1759062eakpOW','isFocused','tooltip','_threadToController','_createUIButton','isEnabled','licenseKey','from','destroy','focusTracker','16MYCBYJ','commentsLicenseKeyExpired','execute','removeCommentThread','find','comment','featureNotAllowed','hasContent','isPremiumPlugin','length','CommentsListView','add','5430aQrRHM','invalid','menuBar:comment','getRange','Comment','editing','pluginName'];_0x168d=function(){return _0x1b8dc8;};return _0x168d();}import{Annotations as _0x2c9e43}from'../annotations/annotations.js';import{CommentsListView as _0x5202c5}from'./ui/view/commentslistview.js';import{CommentThreadInputView as _0x3af3e0}from'./ui/view/commentthreadinputview.js';import{getTranslation as _0x2b4b8e}from'../utils/common-translations.js';export class CommentsUI extends _0x289514{[_0x335e06(0x1ce)];[_0x335e06(0x1eb)];static get[_0x335e06(0x1e4)](){const _0x1ec0fd=_0x335e06;return _0x1ec0fd(0x1c0);}static get[_0x335e06(0x202)](){return!0x0;}static get[_0x335e06(0x1da)](){return!0x0;}static get[_0x335e06(0x1f0)](){return[_0x51d768,_0x5ece8f,_0x281007,_0x2c9e43];}get[_0x335e06(0x1dc)](){return _0x5202c5;}get[_0x335e06(0x1e6)](){return _0x3af3e0;}[_0x335e06(0x203)](){const _0x34b1f7=_0x335e06,_0x1d31e6=this[_0x34b1f7(0x1bd)],_0x20ca6d=_0x1d31e6[_0x34b1f7(0x1f5)][_0x34b1f7(0x1ef)](_0x51d768),_0x14a8cc=_0x1d31e6[_0x34b1f7(0x1f5)][_0x34b1f7(0x1ef)](_0x5ece8f),_0x2eea4c=_0x1d31e6[_0x34b1f7(0x1f5)][_0x34b1f7(0x1ef)](_0x2c9e43),_0x30221c=_0x1d31e6[_0x34b1f7(0x1f5)][_0x34b1f7(0x1ef)](_0x281007);_0x1d31e6['ui'][_0x34b1f7(0x1ba)][_0x34b1f7(0x1dd)](_0x34b1f7(0x1d7),()=>{const _0x12fb23=_0x34b1f7,_0x549aa4=this[_0x12fb23(0x1cc)](_0x2c5ac9);return _0x549aa4[_0x12fb23(0x1ca)]=!0x0,_0x549aa4;}),_0x1d31e6['ui'][_0x34b1f7(0x1ba)][_0x34b1f7(0x1dd)](_0x34b1f7(0x1e0),()=>this[_0x34b1f7(0x1cc)](_0x19a774)),_0x30221c[_0x34b1f7(0x1f3)](()=>{const _0x1cb2fd=_0x34b1f7,_0x8f9506=[];for(const [_0x4071b6,_0x1e5e5f]of _0x20ca6d[_0x1cb2fd(0x1cb)]){const _0x549f04=_0x14a8cc[_0x1cb2fd(0x1f6)](_0x4071b6['id']),_0x216e9d=_0x549f04[_0x1cb2fd(0x209)](_0x2a9429=>_0x2a9429[_0x1cb2fd(0x1e1)]());_0x549f04[_0x1cb2fd(0x1db)]>0x0&&_0x8f9506[_0x1cb2fd(0x1f2)]([_0x1e5e5f[_0x1cb2fd(0x200)],_0x216e9d]);}return _0x8f9506;}),this[_0x34b1f7(0x1c7)](_0x2eea4c,_0x34b1f7(0x20d),(_0x51e19a,_0x34e868,_0x251e01)=>{const _0x31c3e6=_0x34b1f7,_0x112eaa=Array[_0x31c3e6(0x1cf)](_0x251e01)[_0x31c3e6(0x209)](_0x4e125a=>_0x4e125a[_0x31c3e6(0x20a)])[_0x31c3e6(0x1d6)](_0x252227=>_0x20ca6d[_0x31c3e6(0x210)][_0x31c3e6(0x20f)](_0x252227));if(!_0x112eaa)return void(_0x14a8cc[_0x31c3e6(0x1f4)]=null);const _0x117a71=_0x20ca6d[_0x31c3e6(0x210)][_0x31c3e6(0x1ef)](_0x112eaa)[_0x31c3e6(0x1e5)]['id'],_0x268ec0=_0x31c3e6(0x1bb)+_0x117a71;_0x117a71&&_0x14a8cc[_0x31c3e6(0x1ff)](_0x117a71)?_0x14a8cc[_0x31c3e6(0x1f4)]=_0x268ec0:_0x14a8cc[_0x31c3e6(0x1f4)]&&(_0x14a8cc[_0x31c3e6(0x1f4)]=null);}),this[_0x34b1f7(0x1c7)](_0x20ca6d,_0x34b1f7(0x1d5),(_0x1c076b,{threadId:_0x2560f8,isFromAdapter:_0x2ac668})=>{const _0x5f2a0d=_0x34b1f7;!_0x2ac668&&_0x1d31e6['ui'][_0x5f2a0d(0x1d1)][_0x5f2a0d(0x1c9)]&&_0x14a8cc[_0x5f2a0d(0x1ff)](_0x2560f8)&&_0x1d31e6[_0x5f2a0d(0x1e3)][_0x5f2a0d(0x200)][_0x5f2a0d(0x1be)]();},{'priority':_0x34b1f7(0x1e8)}),this[_0x34b1f7(0x1c7)](_0x20ca6d,_0x34b1f7(0x20e),(_0xb48bd5,{threadId:_0x2ebcfd,isFromAdapter:_0x17573a})=>{const _0x3fe1a1=_0x34b1f7;if(_0x17573a||!_0x14a8cc[_0x3fe1a1(0x1ff)](_0x2ebcfd)||!_0x20ca6d[_0x3fe1a1(0x1fd)](_0x2ebcfd))return;0x1===_0x20ca6d[_0x3fe1a1(0x204)](_0x2ebcfd)[_0x3fe1a1(0x1db)]&&(_0x1d31e6[_0x3fe1a1(0x1e3)][_0x3fe1a1(0x200)][_0x3fe1a1(0x1be)](),_0xb48bd5[_0x3fe1a1(0x1ee)]());},{'priority':_0x34b1f7(0x1c2)}),this[_0x34b1f7(0x1ce)]=this[_0x34b1f7(0x1bd)][_0x34b1f7(0x1c5)][_0x34b1f7(0x1ef)](_0x34b1f7(0x1ce));const _0x2f8aaa=this[_0x34b1f7(0x1bd)];this[_0x34b1f7(0x1eb)]=setInterval(()=>{const _0x3ab90d=_0x34b1f7;let _0x56e493;for(const _0x58a444 in _0x2f8aaa){const _0x23727d=_0x58a444,_0x5e1b83=_0x2f8aaa[_0x23727d];if(_0x3ab90d(0x1c6)==_0x5e1b83||_0x3ab90d(0x1c4)==_0x5e1b83||_0x3ab90d(0x1d3)==_0x5e1b83||_0x3ab90d(0x1c1)==_0x5e1b83||_0x3ab90d(0x1bf)==_0x5e1b83||_0x3ab90d(0x208)==_0x5e1b83||_0x3ab90d(0x1f9)==_0x5e1b83||_0x3ab90d(0x1e9)==_0x5e1b83){delete _0x2f8aaa[_0x23727d],_0x56e493=_0x5e1b83,clearInterval(this[_0x3ab90d(0x1eb)]),this[_0x3ab90d(0x1eb)]=void 0x0;break;}}_0x3ab90d(0x1c4)==_0x56e493&&_0x2f8aaa[_0x3ab90d(0x211)](_0x3ab90d(0x1df)),_0x3ab90d(0x1d3)==_0x56e493&&_0x2f8aaa[_0x3ab90d(0x211)](_0x3ab90d(0x1fa)),_0x3ab90d(0x1c1)==_0x56e493&&_0x2f8aaa[_0x3ab90d(0x211)](_0x3ab90d(0x1ea)),_0x3ab90d(0x1bf)==_0x56e493&&_0x2f8aaa[_0x3ab90d(0x211)](_0x3ab90d(0x1d8),_0x3ab90d(0x207)),_0x3ab90d(0x208)==_0x56e493&&_0x2f8aaa[_0x3ab90d(0x211)](_0x3ab90d(0x1e7)),_0x3ab90d(0x1f9)==_0x56e493&&_0x2f8aaa[_0x3ab90d(0x211)](_0x3ab90d(0x20c)),_0x3ab90d(0x1e9)==_0x56e493&&_0x2f8aaa[_0x3ab90d(0x211)](_0x3ab90d(0x1f1));},0x3e8);}[_0x335e06(0x1d0)](){const _0x55df6e=_0x335e06;super[_0x55df6e(0x1d0)](),this[_0x55df6e(0x1eb)]&&clearInterval(this[_0x55df6e(0x1eb)]);}[_0x335e06(0x1cc)](_0x4f27ec){const _0x950cc4=_0x335e06,_0x2fc45c=this[_0x950cc4(0x1bd)],_0x225169=new _0x4f27ec(_0x2fc45c[_0x950cc4(0x1fe)]),_0x7e9f0f=_0x2fc45c[_0x950cc4(0x205)][_0x950cc4(0x1ef)](_0x950cc4(0x1ed));return _0x225169[_0x950cc4(0x1f8)]({'label':_0x2b4b8e(_0x2fc45c[_0x950cc4(0x1fe)],_0x950cc4(0x1e2)),'icon':_0x4de475}),_0x225169[_0x950cc4(0x20b)](_0x950cc4(0x1cd))['to'](_0x7e9f0f,_0x950cc4(0x1d9)),this[_0x950cc4(0x1c7)](_0x225169,_0x950cc4(0x1d4),()=>{const _0x5b5f6c=_0x950cc4;_0x7e9f0f[_0x5b5f6c(0x1d4)]();}),_0x225169;}}
|
|
@@ -10,7 +10,7 @@ import { ClipboardPipeline, ClipboardMarkersUtils } from 'ckeditor5/src/clipboar
|
|
|
10
10
|
/**
|
|
11
11
|
* Provides comments plugin integration for the clipboard feature.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export declare class CommentsClipboard extends Plugin {
|
|
14
14
|
/**
|
|
15
15
|
* @inheritDoc
|
|
16
16
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3a3b95=_0x2332;(function(_0x2ca034,_0xb7f2df){const _0x513af3=_0x2332,_0x51cbc5=_0x2ca034();while(!![]){try{const _0x3e7330=parseInt(_0x513af3(0x136))/0x1+-parseInt(_0x513af3(0x11f))/0x2*(parseInt(_0x513af3(0x132))/0x3)+parseInt(_0x513af3(0x135))/0x4+parseInt(_0x513af3(0x13e))/0x5*(parseInt(_0x513af3(0x116))/0x6)+parseInt(_0x513af3(0x129))/0x7+-parseInt(_0x513af3(0x122))/0x8*(-parseInt(_0x513af3(0x12f))/0x9)+-parseInt(_0x513af3(0x117))/0xa;if(_0x3e7330===_0xb7f2df)break;else _0x51cbc5['push'](_0x51cbc5['shift']());}catch(_0xfba2ff){_0x51cbc5['push'](_0x51cbc5['shift']());}}}(_0x4653,0x5247b));import{Plugin as _0x4de136}from'ckeditor5/src/core.js';function _0x2332(_0x3fb892,_0x4e0dae){const _0x46531b=_0x4653();return _0x2332=function(_0x233228,_0x3447b9){_0x233228=_0x233228-0x115;let _0x343175=_0x46531b[_0x233228];return _0x343175;},_0x2332(_0x3fb892,_0x4e0dae);}import{ClipboardPipeline as _0x450339,ClipboardMarkersUtils as _0x3dc59d}from'ckeditor5/src/clipboard.js';function _0x4653(){const _0x4a77da=['_mapCommentsCopyConfigToRegisterConfiguration','2581348JeQrzQ','comments.copyMarkers','dragstart','markers','split','always','165762NNhJfl','contentInsertion','_registerMarkerInClipboardPipeline','108198iyiZlE','config','cut','658012ztKEpj','215658aiOsQz','CommentsRepository','plugins','hasCommentThread','comment','all','_registerMarkerToCopy','highest','6180egPBlB','content','1956jfJSim','5455020kXtfOd','ClipboardMarkersUtils','editor','define','ClipboardPipeline','requires','listenTo','_removeMarkersWithoutThreads','18vZrcYK','default','get','24ASrPjp','keys','delete','never','has','afterInit'];_0x4653=function(){return _0x4a77da;};return _0x4653();}export class CommentsClipboard extends _0x4de136{constructor(_0x53581f){const _0x2db1f0=_0x2332;super(_0x53581f),this[_0x2db1f0(0x119)][_0x2db1f0(0x133)][_0x2db1f0(0x11a)](_0x2db1f0(0x12a),_0x2db1f0(0x120));}static get[_0x3a3b95(0x11c)](){return[_0x3dc59d,_0x450339];}[_0x3a3b95(0x127)](){const _0x5805a4=_0x3a3b95,_0x5d8bd2=this[_0x5805a4(0x119)][_0x5805a4(0x138)][_0x5805a4(0x121)](_0x5805a4(0x11b));this[_0x5805a4(0x131)](),this[_0x5805a4(0x11d)](_0x5d8bd2,_0x5805a4(0x130),(_0x17e283,_0x4ff7fd)=>this[_0x5805a4(0x11e)](_0x4ff7fd[_0x5805a4(0x115)][_0x5805a4(0x12c)]),{'priority':_0x5805a4(0x13d)});}[_0x3a3b95(0x11e)](_0x3f39df){const _0x34d977=_0x3a3b95;if(!this[_0x34d977(0x119)][_0x34d977(0x138)][_0x34d977(0x126)](_0x34d977(0x137)))return _0x3f39df;const _0x47d3a9=this[_0x34d977(0x119)][_0x34d977(0x138)][_0x34d977(0x121)](_0x34d977(0x137));for(const _0x4d5b47 of _0x3f39df[_0x34d977(0x123)]()){const [_0x317ee7,_0x313c24]=_0x4d5b47[_0x34d977(0x12d)](':');_0x34d977(0x13a)!=_0x317ee7||_0x47d3a9[_0x34d977(0x139)](_0x313c24)||_0x3f39df[_0x34d977(0x124)](_0x4d5b47);}return _0x3f39df;}[_0x3a3b95(0x131)](){const _0x115f60=_0x3a3b95,_0x906e1a=this[_0x115f60(0x119)][_0x115f60(0x138)][_0x115f60(0x121)](_0x115f60(0x118)),_0x13e6f6=this[_0x115f60(0x128)](this[_0x115f60(0x119)][_0x115f60(0x133)][_0x115f60(0x121)](_0x115f60(0x12a)));_0x13e6f6&&_0x906e1a[_0x115f60(0x13c)](_0x115f60(0x13a),_0x13e6f6);}[_0x3a3b95(0x128)](_0x3e2108){const _0x58a98e=_0x3a3b95;switch(_0x3e2108){case _0x58a98e(0x12e):return{'allowedActions':_0x58a98e(0x13b),'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case _0x58a98e(0x120):return{'allowedActions':[_0x58a98e(0x134),_0x58a98e(0x12b)],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};case _0x58a98e(0x125):return null;default:return null;}}}
|
|
@@ -9,7 +9,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* Provides comments plugin integration for restricted editing mode feature from restricted editing package.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export declare class CommentsRestrictedEditingMode extends Plugin {
|
|
13
13
|
/**
|
|
14
14
|
* @inheritDoc
|
|
15
15
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x598f(){const _0xb016c3=['22169OjaJeo','463948lFbUIe','RestrictedEditingModeEditing','enableCommand','get','editor','668547ZeQdVG','369MDVqVl','15vvKilE','afterInit','3144dHMTpL','132ebrOit','addCommentThread','893387GEWWkW','726cWKXrR','2418376TCpuXb','392090gkuzbr','plugins','has','565xNZkoY'];_0x598f=function(){return _0xb016c3;};return _0x598f();}function _0x15b3(_0x596b26,_0x20b78c){const _0x598f21=_0x598f();return _0x15b3=function(_0x15b352,_0x5b91fc){_0x15b352=_0x15b352-0xb1;let _0x58a5f1=_0x598f21[_0x15b352];return _0x58a5f1;},_0x15b3(_0x596b26,_0x20b78c);}const _0x523f79=_0x15b3;(function(_0x4a67a2,_0x3cb128){const _0x175ad7=_0x15b3,_0x64b5c1=_0x4a67a2();while(!![]){try{const _0x1c88e3=parseInt(_0x175ad7(0xb2))/0x1+-parseInt(_0x175ad7(0xbb))/0x2+-parseInt(_0x175ad7(0xb4))/0x3*(parseInt(_0x175ad7(0xc1))/0x4)+-parseInt(_0x175ad7(0xbf))/0x5*(-parseInt(_0x175ad7(0xba))/0x6)+-parseInt(_0x175ad7(0xc0))/0x7*(-parseInt(_0x175ad7(0xb6))/0x8)+parseInt(_0x175ad7(0xb3))/0x9*(parseInt(_0x175ad7(0xbc))/0xa)+-parseInt(_0x175ad7(0xb9))/0xb*(parseInt(_0x175ad7(0xb7))/0xc);if(_0x1c88e3===_0x3cb128)break;else _0x64b5c1['push'](_0x64b5c1['shift']());}catch(_0x545514){_0x64b5c1['push'](_0x64b5c1['shift']());}}}(_0x598f,0xcffc6));import{Plugin as _0x3cb628}from'ckeditor5/src/core.js';export class CommentsRestrictedEditingMode extends _0x3cb628{[_0x523f79(0xb5)](){const _0x3e1ba2=_0x523f79,_0x59b8e0=this[_0x3e1ba2(0xb1)];if(!_0x59b8e0[_0x3e1ba2(0xbd)][_0x3e1ba2(0xbe)](_0x3e1ba2(0xc2)))return;_0x59b8e0[_0x3e1ba2(0xbd)][_0x3e1ba2(0xc4)](_0x3e1ba2(0xc2))[_0x3e1ba2(0xc3)](_0x3e1ba2(0xb8));}}
|
|
@@ -9,7 +9,7 @@ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* Provides comments plugin integration for the import from Word feature.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export declare class CommentsImportWord extends Plugin {
|
|
13
13
|
/**
|
|
14
14
|
* @inheritDoc
|
|
15
15
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x7e5d(){const _0xd89804=['dataInsert','collaboration_features','execute','64208OihGja','get','collaboration.channelId','_handleImportedData','8294KZTipb','addCommentThread','117qAjnid','importWord.formatting.comments','config','high','listenTo','167179bEopya','426bzQEsA','146216XYRKyK','commands','basic','1500myWFiL','importWord','define','afterInit','editor','110831TzVpvA','map','530HnLuEL','forEach','1625Ggakbx','633Lxaozr','plugins'];_0x7e5d=function(){return _0xd89804;};return _0x7e5d();}const _0x39f850=_0x456e;(function(_0x3d837e,_0x1f5251){const _0x33a3f8=_0x456e,_0x181e5b=_0x3d837e();while(!![]){try{const _0xb10a3=parseInt(_0x33a3f8(0xbb))/0x1+parseInt(_0x33a3f8(0xc0))/0x2*(-parseInt(_0x33a3f8(0xab))/0x3)+-parseInt(_0x33a3f8(0xb0))/0x4+parseInt(_0x33a3f8(0xaa))/0x5*(-parseInt(_0x33a3f8(0xbc))/0x6)+parseInt(_0x33a3f8(0xa6))/0x7+-parseInt(_0x33a3f8(0xbd))/0x8*(-parseInt(_0x33a3f8(0xb6))/0x9)+parseInt(_0x33a3f8(0xa8))/0xa*(-parseInt(_0x33a3f8(0xb4))/0xb);if(_0xb10a3===_0x1f5251)break;else _0x181e5b['push'](_0x181e5b['shift']());}catch(_0x395b0a){_0x181e5b['push'](_0x181e5b['shift']());}}}(_0x7e5d,0x2cbea));import{Plugin as _0x2b62ef}from'ckeditor5/src/core.js';import{priorities as _0x4c32a5}from'ckeditor5/src/utils.js';import{Users as _0x3ec64b}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsRepository as _0xa9af77}from'../commentsrepository.js';function _0x456e(_0x5787c8,_0x2f636d){const _0x7e5d13=_0x7e5d();return _0x456e=function(_0x456e9d,_0x38317c){_0x456e9d=_0x456e9d-0xa4;let _0x3c7c8a=_0x7e5d13[_0x456e9d];return _0x3c7c8a;},_0x456e(_0x5787c8,_0x2f636d);}export class CommentsImportWord extends _0x2b62ef{constructor(_0x29c290){const _0x29164b=_0x456e;super(_0x29c290),this[_0x29164b(0xa5)][_0x29164b(0xb8)][_0x29164b(0xc2)](_0x29164b(0xb7),_0x29164b(0xbf));}[_0x39f850(0xa4)](){const _0x1dd0e5=_0x39f850,_0x49ef84=this[_0x1dd0e5(0xa5)],_0x1ea926=_0x49ef84[_0x1dd0e5(0xbe)][_0x1dd0e5(0xb1)](_0x1dd0e5(0xc1)),_0x53f00e=_0x49ef84[_0x1dd0e5(0xac)][_0x1dd0e5(0xb1)](_0x3ec64b);_0x1ea926&&(_0x1ea926['on'](_0x1dd0e5(0xaf),(_0x281e76,[,_0x3be0cb])=>{const _0x5d42ae=_0x1dd0e5;_0x3be0cb[_0x5d42ae(0xae)]={'comments':!0x0,'user_id':_0x53f00e['me']['id']};},{'priority':_0x4c32a5[_0x1dd0e5(0xb9)]+0xa}),this[_0x1dd0e5(0xba)](_0x1ea926,_0x1dd0e5(0xad),this[_0x1dd0e5(0xb3)]));}[_0x39f850(0xb3)](_0x278ba9,_0x3d5cf6){const _0x11e18e=_0x39f850,{comment_threads:_0x18fc40}=_0x3d5cf6;_0x18fc40&&_0x18fc40[_0x11e18e(0xa9)](({thread_id:_0x50a5e3,comments:_0x6c045d,is_resolved:_0x4a1903})=>{const _0x5f56f9=_0x11e18e,_0x256f09=new Date(),_0x5bed4b=_0x6c045d[_0x5f56f9(0xa7)](({author:_0x3b7fb8,content:_0x44e4ce,created_at:_0x3b4815})=>({'content':_0x44e4ce,'authorId':this[_0x5f56f9(0xa5)][_0x5f56f9(0xac)][_0x5f56f9(0xb1)](_0x3ec64b)['me']['id'],'createdAt':_0x256f09,'attributes':{'@external':{'authorName':_0x3b7fb8,'createdAt':_0x3b4815?new Date(_0x3b4815):new Date(),'source':_0x5f56f9(0xc1)}}})),_0x13940c=this[_0x5f56f9(0xa5)][_0x5f56f9(0xb8)][_0x5f56f9(0xb1)](_0x5f56f9(0xb2));this[_0x5f56f9(0xa5)][_0x5f56f9(0xac)][_0x5f56f9(0xb1)](_0xa9af77)[_0x5f56f9(0xb5)]({'channelId':_0x13940c,'threadId':_0x50a5e3,'comments':_0x5bed4b,'resolvedAt':_0x4a1903?_0x256f09:null});});}}
|
|
@@ -11,7 +11,7 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
11
11
|
* Some of them are similar or duplicates from the `showSuggestionHighlights` option handling in the track changes feature.
|
|
12
12
|
* Unfortunately, for now there's no single place where they could be shared and reused, so both plugins have to add them separately.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export declare class ShowCommentHighlights extends Plugin {
|
|
15
15
|
/**
|
|
16
16
|
* @inheritDoc
|
|
17
17
|
*/
|