@ckeditor/ckeditor5-comments 40.1.0 → 40.2.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/CHANGELOG.md +19 -19
- package/README.md +1 -1
- package/build/comments.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/ug.js +1 -1
- package/lang/translations/gl.po +2 -2
- package/lang/translations/sr-latn.po +3 -3
- package/lang/translations/ug.po +10 -10
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1 -0
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
package/build/translations/gl.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(o){const e=o.gl=o.gl||{};e.dictionary=Object.assign(e.dictionary||{},{Comment:"Comentario","Comment editor":"Editor de comentarios","Comment was made on an element":"Comentouse un elemento",COMMENTS_ARCHIVE:"Arquivo de comentarios","Delete comment thread?":"Eliminar o fío de comentarios?","Delete comment?":"Eliminar o comentario?",Edit:"Editar",EMPTY_COMMENTS_ARCHIVE:"Non hai fíos de comentarios arquivados.",ENTER_COMMENT_ANNOUNCEMENT:"",EXTERNAL_AVATAR:"O nome do autor amosado procede dunha fonte externa (engadido por %0)",EXTERNAL_COMMENT:"Este comentario procede dunha fonte externa.",EXTERNAL_IMPORT_WORD_AVATAR:"O nome do autor amosado procede dun documento de Word importado por %0",EXTERNAL_IMPORT_WORD_COMMENT:"Este comentario procede dun ficheiro de Word importado.",LEAVE_COMMENT_ANNOUNCEMENT:"","Marked as resolved":"Marcado como solucionado",NUMBER_OF_COMMENTS:["%0 comentario","%0 comentarios"],PENDING_ACTION_COMMENT_THREAD:"Cambio sen gardar no fío de comentarios.",Remove:"Retirar",Reopen:"Volver abrir",Reply:"Responder","Reply to reopen discussion...":"Responder para volver abrir a discusión...","Reply...":"Responder…",Resolve:"Solucionar",TOO_LONG_COMMENT_ALERT:"O contido dos comentarios é demasiado longo. O seu comentario ten %0 caracteres mais o límite é de %1 caracteres.","Write a comment...":"Escribir un comentario…"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
1
|
+
!function(o){const e=o.gl=o.gl||{};e.dictionary=Object.assign(e.dictionary||{},{Comment:"Comentario","Comment editor":"Editor de comentarios","Comment was made on an element":"Comentouse un elemento",COMMENTS_ARCHIVE:"Arquivo de comentarios","Delete comment thread?":"Eliminar o fío de comentarios?","Delete comment?":"Eliminar o comentario?",Edit:"Editar",EMPTY_COMMENTS_ARCHIVE:"Non hai fíos de comentarios arquivados.",ENTER_COMMENT_ANNOUNCEMENT:"Introducindo un comentario.",EXTERNAL_AVATAR:"O nome do autor amosado procede dunha fonte externa (engadido por %0)",EXTERNAL_COMMENT:"Este comentario procede dunha fonte externa.",EXTERNAL_IMPORT_WORD_AVATAR:"O nome do autor amosado procede dun documento de Word importado por %0",EXTERNAL_IMPORT_WORD_COMMENT:"Este comentario procede dun ficheiro de Word importado.",LEAVE_COMMENT_ANNOUNCEMENT:"Abandonando un comentario.","Marked as resolved":"Marcado como solucionado",NUMBER_OF_COMMENTS:["%0 comentario","%0 comentarios"],PENDING_ACTION_COMMENT_THREAD:"Cambio sen gardar no fío de comentarios.",Remove:"Retirar",Reopen:"Volver abrir",Reply:"Responder","Reply to reopen discussion...":"Responder para volver abrir a discusión...","Reply...":"Responder…",Resolve:"Solucionar",TOO_LONG_COMMENT_ALERT:"O contido dos comentarios é demasiado longo. O seu comentario ten %0 caracteres mais o límite é de %1 caracteres.","Write a comment...":"Escribir un comentario…"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){const o=e["sr-latn"]=e["sr-latn"]||{};o.dictionary=Object.assign(o.dictionary||{},{Comment:"Napomena","Comment editor":"Uređivač napomene","Comment was made on an element":"Komentar je dat na element",COMMENTS_ARCHIVE:"Arhiva komentara","Delete comment thread?":"Brišete nit napomene?","Delete comment?":"Brišete napomenu?",Edit:"Uredi",EMPTY_COMMENTS_ARCHIVE:"Nema arhiviranih niti komentara.",ENTER_COMMENT_ANNOUNCEMENT:"",EXTERNAL_AVATAR:"Prikazano ime autora potiče iz spoljnog izvora (dodao %0)",EXTERNAL_COMMENT:"Ovaj komentar dolazi iz spoljnog izvora.",EXTERNAL_IMPORT_WORD_AVATAR:"Prikazano ime autora potiče iz Word dokumenta uvezenog od strane %0",EXTERNAL_IMPORT_WORD_COMMENT:"Ovaj komentar dolazi iz uvezene Word datoteke.",LEAVE_COMMENT_ANNOUNCEMENT:"","Marked as resolved":"Označeno kao rešeno",NUMBER_OF_COMMENTS:["","",""],PENDING_ACTION_COMMENT_THREAD:"Nesačuvana promena u niti napomena.",Remove:"Odstrani",Reopen:"Ponovo otvori",Reply:"","Reply to reopen discussion...":"Odgovorite da ponovo otvorite diskusiju...","Reply...":"Odgovori",Resolve:"Rešiti",TOO_LONG_COMMENT_ALERT:"Napomena je dugačka. Sadrži %0 karaktera, ali maximalno je dozvoljeno %1 karaktera.","Write a comment...":"Napiši napomenu"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
1
|
+
!function(e){const o=e["sr-latn"]=e["sr-latn"]||{};o.dictionary=Object.assign(o.dictionary||{},{Comment:"Napomena","Comment editor":"Uređivač napomene","Comment was made on an element":"Komentar je dat na element",COMMENTS_ARCHIVE:"Arhiva komentara","Delete comment thread?":"Brišete nit napomene?","Delete comment?":"Brišete napomenu?",Edit:"Uredi",EMPTY_COMMENTS_ARCHIVE:"Nema arhiviranih niti komentara.",ENTER_COMMENT_ANNOUNCEMENT:"Unošenje komentara.",EXTERNAL_AVATAR:"Prikazano ime autora potiče iz spoljnog izvora (dodao %0)",EXTERNAL_COMMENT:"Ovaj komentar dolazi iz spoljnog izvora.",EXTERNAL_IMPORT_WORD_AVATAR:"Prikazano ime autora potiče iz Word dokumenta uvezenog od strane %0",EXTERNAL_IMPORT_WORD_COMMENT:"Ovaj komentar dolazi iz uvezene Word datoteke.",LEAVE_COMMENT_ANNOUNCEMENT:"Napuštanje komentara.","Marked as resolved":"Označeno kao rešeno",NUMBER_OF_COMMENTS:["","",""],PENDING_ACTION_COMMENT_THREAD:"Nesačuvana promena u niti napomena.",Remove:"Odstrani",Reopen:"Ponovo otvori",Reply:"Odgovori","Reply to reopen discussion...":"Odgovorite da ponovo otvorite diskusiju...","Reply...":"Odgovori",Resolve:"Rešiti",TOO_LONG_COMMENT_ALERT:"Napomena je dugačka. Sadrži %0 karaktera, ali maximalno je dozvoljeno %1 karaktera.","Write a comment...":"Napiši napomenu"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
package/build/translations/ug.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(E){const e=E.ug=E.ug||{};e.dictionary=Object.assign(e.dictionary||{},{Comment:"ئىنكاس","Comment editor":"ئىنكاس تەھرىرلىگۈچ","Comment was made on an element":"",COMMENTS_ARCHIVE:"","Delete comment thread?":"ئىنكاس باغلىمىنى ئۆچۈرەمسىز؟","Delete comment?":"ئىنكاسنى ئۆچۈرەمسىز؟",Edit:"تەھرىرلەش",EMPTY_COMMENTS_ARCHIVE:"",ENTER_COMMENT_ANNOUNCEMENT:"",EXTERNAL_AVATAR:"كۆرۈنگەن يازغۇچىنىڭ ئىسمى سىرتقى مەنبە (قوشقۇچى %0) دىن كەلگەن",EXTERNAL_COMMENT:"بۇ ئىنكاس سىرتقى مەنبەدىن كەلگەن.",EXTERNAL_IMPORT_WORD_AVATAR:"كۆرۈنگەن يازغۇچىنىڭ ئىسمى %0 ئەكىرگەن Wordھۆججىتىدىن دىن كەلگەن",EXTERNAL_IMPORT_WORD_COMMENT:"بۇ ئىنكاس ئەكىرىلگەن Word ھۆججىتىدىن كەلگەن.",LEAVE_COMMENT_ANNOUNCEMENT:"","Marked as resolved":"",NUMBER_OF_COMMENTS:["%0 ئىنكاس","%0 ئىنكاس"],PENDING_ACTION_COMMENT_THREAD:"ئىنكاس رايونىدا ساقلانمىغان ئۆزگەرتىش مەۋجۇت",Remove:"چىقىرىۋېتىش",Reopen:"",Reply:"","Reply to reopen discussion...":"","Reply...":"جاۋاب...",Resolve:"",TOO_LONG_COMMENT_ALERT:"ئىنكاس مەزمۇنى بەك ئۇزۇن. ئىنكاسىڭىز %0 ھەرپ ئەمما چېكى %1 ھەرپ.","Write a comment...":"ئىنكاس يېزىش..."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
1
|
+
!function(E){const e=E.ug=E.ug||{};e.dictionary=Object.assign(e.dictionary||{},{Comment:"ئىنكاس","Comment editor":"ئىنكاس تەھرىرلىگۈچ","Comment was made on an element":"ئېلېمېنتقا ئىنكاس يېزىلغان",COMMENTS_ARCHIVE:"ئىنكاس ئارخىپى","Delete comment thread?":"ئىنكاس باغلىمىنى ئۆچۈرەمسىز؟","Delete comment?":"ئىنكاسنى ئۆچۈرەمسىز؟",Edit:"تەھرىرلەش",EMPTY_COMMENTS_ARCHIVE:"ئارخىپلانغان ھېچقانداق ئىنكاس يوق.",ENTER_COMMENT_ANNOUNCEMENT:"ئىنكاسقا كىرىش.",EXTERNAL_AVATAR:"كۆرۈنگەن يازغۇچىنىڭ ئىسمى سىرتقى مەنبە (قوشقۇچى %0) دىن كەلگەن",EXTERNAL_COMMENT:"بۇ ئىنكاس سىرتقى مەنبەدىن كەلگەن.",EXTERNAL_IMPORT_WORD_AVATAR:"كۆرۈنگەن يازغۇچىنىڭ ئىسمى %0 ئەكىرگەن Wordھۆججىتىدىن دىن كەلگەن",EXTERNAL_IMPORT_WORD_COMMENT:"بۇ ئىنكاس ئەكىرىلگەن Word ھۆججىتىدىن كەلگەن.",LEAVE_COMMENT_ANNOUNCEMENT:"ئىنكاستىن چىقىش.","Marked as resolved":"ھەل قىلىندى بەلگىسى سېلىنغان",NUMBER_OF_COMMENTS:["%0 ئىنكاس","%0 ئىنكاس"],PENDING_ACTION_COMMENT_THREAD:"ئىنكاس رايونىدا ساقلانمىغان ئۆزگەرتىش مەۋجۇت",Remove:"چىقىرىۋېتىش",Reopen:"قايتا ئاچ",Reply:"جاۋاب","Reply to reopen discussion...":"قايتا ئېچىلغان سۆزلىشىشكە ئىنكاس قايتۇرىدۇ…","Reply...":"جاۋاب...",Resolve:"ھەل قىل",TOO_LONG_COMMENT_ALERT:"ئىنكاس مەزمۇنى بەك ئۇزۇن. ئىنكاسىڭىز %0 ھەرپ ئەمما چېكى %1 ھەرپ.","Write a comment...":"ئىنكاس يېزىش..."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
package/lang/translations/gl.po
CHANGED
|
@@ -85,11 +85,11 @@ msgstr "Comentario"
|
|
|
85
85
|
|
|
86
86
|
msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
|
|
87
87
|
msgid "ENTER_COMMENT_ANNOUNCEMENT"
|
|
88
|
-
msgstr ""
|
|
88
|
+
msgstr "Introducindo un comentario."
|
|
89
89
|
|
|
90
90
|
msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
|
|
91
91
|
msgid "LEAVE_COMMENT_ANNOUNCEMENT"
|
|
92
|
-
msgstr ""
|
|
92
|
+
msgstr "Abandonando un comentario."
|
|
93
93
|
|
|
94
94
|
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
95
95
|
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
@@ -66,7 +66,7 @@ msgstr "Odstrani"
|
|
|
66
66
|
|
|
67
67
|
msgctxt "The label for for the button that adds a reply to a comment thread."
|
|
68
68
|
msgid "Reply"
|
|
69
|
-
msgstr ""
|
|
69
|
+
msgstr "Odgovori"
|
|
70
70
|
|
|
71
71
|
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
72
72
|
msgid "Delete comment?"
|
|
@@ -86,11 +86,11 @@ msgstr "Napomena"
|
|
|
86
86
|
|
|
87
87
|
msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
|
|
88
88
|
msgid "ENTER_COMMENT_ANNOUNCEMENT"
|
|
89
|
-
msgstr ""
|
|
89
|
+
msgstr "Unošenje komentara."
|
|
90
90
|
|
|
91
91
|
msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
|
|
92
92
|
msgid "LEAVE_COMMENT_ANNOUNCEMENT"
|
|
93
|
-
msgstr ""
|
|
93
|
+
msgstr "Napuštanje komentara."
|
|
94
94
|
|
|
95
95
|
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
96
96
|
msgid "PENDING_ACTION_COMMENT_THREAD"
|
package/lang/translations/ug.po
CHANGED
|
@@ -37,7 +37,7 @@ msgstr "جاۋاب..."
|
|
|
37
37
|
|
|
38
38
|
msgctxt "The placeholder for the reply field when the comment thread is resolved."
|
|
39
39
|
msgid "Reply to reopen discussion..."
|
|
40
|
-
msgstr ""
|
|
40
|
+
msgstr "قايتا ئېچىلغان سۆزلىشىشكە ئىنكاس قايتۇرىدۇ…"
|
|
41
41
|
|
|
42
42
|
msgctxt "The placeholder for the new commend field."
|
|
43
43
|
msgid "Write a comment..."
|
|
@@ -45,7 +45,7 @@ msgstr "ئىنكاس يېزىش..."
|
|
|
45
45
|
|
|
46
46
|
msgctxt "The information that comment was made on element and has no context"
|
|
47
47
|
msgid "Comment was made on an element"
|
|
48
|
-
msgstr ""
|
|
48
|
+
msgstr "ئېلېمېنتقا ئىنكاس يېزىلغان"
|
|
49
49
|
|
|
50
50
|
msgctxt "The label for the button that enables editing a comment."
|
|
51
51
|
msgid "Edit"
|
|
@@ -53,11 +53,11 @@ msgstr "تەھرىرلەش"
|
|
|
53
53
|
|
|
54
54
|
msgctxt "The label for the button that resolves a comment thread."
|
|
55
55
|
msgid "Resolve"
|
|
56
|
-
msgstr ""
|
|
56
|
+
msgstr "ھەل قىل"
|
|
57
57
|
|
|
58
58
|
msgctxt "The label for the button that reopens a resolved comment thread."
|
|
59
59
|
msgid "Reopen"
|
|
60
|
-
msgstr ""
|
|
60
|
+
msgstr "قايتا ئاچ"
|
|
61
61
|
|
|
62
62
|
msgctxt "The label for the button that deletes a comment."
|
|
63
63
|
msgid "Remove"
|
|
@@ -65,7 +65,7 @@ msgstr "چىقىرىۋېتىش"
|
|
|
65
65
|
|
|
66
66
|
msgctxt "The label for for the button that adds a reply to a comment thread."
|
|
67
67
|
msgid "Reply"
|
|
68
|
-
msgstr ""
|
|
68
|
+
msgstr "جاۋاب"
|
|
69
69
|
|
|
70
70
|
msgctxt "The confirmation message shown after pressing the delete comment button."
|
|
71
71
|
msgid "Delete comment?"
|
|
@@ -77,7 +77,7 @@ msgstr "ئىنكاس باغلىمىنى ئۆچۈرەمسىز؟"
|
|
|
77
77
|
|
|
78
78
|
msgctxt "A message informing that the comment has been resolved"
|
|
79
79
|
msgid "Marked as resolved"
|
|
80
|
-
msgstr ""
|
|
80
|
+
msgstr "ھەل قىلىندى بەلگىسى سېلىنغان"
|
|
81
81
|
|
|
82
82
|
msgctxt "The tooltip for the comment toolbar button and the button that submits a comment thread."
|
|
83
83
|
msgid "Comment"
|
|
@@ -85,11 +85,11 @@ msgstr "ئىنكاس"
|
|
|
85
85
|
|
|
86
86
|
msgctxt "A message read out by assistive technologies the moment the user selection moves into a comment."
|
|
87
87
|
msgid "ENTER_COMMENT_ANNOUNCEMENT"
|
|
88
|
-
msgstr ""
|
|
88
|
+
msgstr "ئىنكاسقا كىرىش."
|
|
89
89
|
|
|
90
90
|
msgctxt "A message read out by assistive technologies the moment the user selection leaves a comment."
|
|
91
91
|
msgid "LEAVE_COMMENT_ANNOUNCEMENT"
|
|
92
|
-
msgstr ""
|
|
92
|
+
msgstr "ئىنكاستىن چىقىش."
|
|
93
93
|
|
|
94
94
|
msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
|
|
95
95
|
msgid "PENDING_ACTION_COMMENT_THREAD"
|
|
@@ -113,8 +113,8 @@ msgstr "كۆرۈنگەن يازغۇچىنىڭ ئىسمى %0 ئەكىرگەن Wor
|
|
|
113
113
|
|
|
114
114
|
msgctxt "The label for the comments archive dropdown UI."
|
|
115
115
|
msgid "COMMENTS_ARCHIVE"
|
|
116
|
-
msgstr ""
|
|
116
|
+
msgstr "ئىنكاس ئارخىپى"
|
|
117
117
|
|
|
118
118
|
msgctxt "The information that comments archive is empty."
|
|
119
119
|
msgid "EMPTY_COMMENTS_ARCHIVE"
|
|
120
|
-
msgstr ""
|
|
120
|
+
msgstr "ئارخىپلانغان ھېچقانداق ئىنكاس يوق."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-comments",
|
|
3
|
-
"version": "40.
|
|
3
|
+
"version": "40.2.0",
|
|
4
4
|
"description": "Collaborative comments feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"CHANGELOG.md"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"ckeditor5": "40.
|
|
47
|
-
"ckeditor5-collaboration": "40.
|
|
46
|
+
"ckeditor5": "40.2.0",
|
|
47
|
+
"ckeditor5-collaboration": "40.2.0",
|
|
48
48
|
"lodash-es": "4.17.21"
|
|
49
49
|
},
|
|
50
50
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2827=['_assertCorrectTarget','view','_id','targetRect','focusTracker','focusableElements','_type','add','getClientRects','set','type','isActive','target','item','nodeType','_target','refreshVisibility','annotation-invalid-target','innerView','clear','element','mainView','every','filter','function','object','render','_getNormalizedTarget'];(function(_0x32e621,_0x282778){const _0x5db835=function(_0x89c6f4){while(--_0x89c6f4){_0x32e621['push'](_0x32e621['shift']());}};_0x5db835(++_0x282778);}(_0x2827,0x13a));const _0x5db8=function(_0x32e621,_0x282778){_0x32e621=_0x32e621-0x0;let _0x5db835=_0x2827[_0x32e621];return _0x5db835;};import{CKEditorError as _0x56951b,Rect as _0x57d41d,Collection as _0x123d84,ObservableMixin as _0x2a9a26}from'ckeditor5/src/utils';export default class d extends _0x2a9a26(){constructor({view:_0x4bb367,target:_0x4a7122,type:_0x2282e5,isVisible:_0x313eb4=!0x0}){super(),this[_0x5db8('0x17')]=_0x4bb367,this[_0x5db8('0x17')]['element']||this[_0x5db8('0x17')][_0x5db8('0x14')](),this[_0x5db8('0x0')]=_0x2282e5,this[_0x5db8('0x9')]=_0x4a7122,d[_0x5db8('0x16')](this[_0x5db8('0x15')]()),this[_0x5db8('0x1b')]=new _0x123d84([this[_0x5db8('0x17')][_0x5db8('0xe')]],{'idProperty':_0x5db8('0x18')}),this[_0x5db8('0x1b')]['on']('add',(_0x14723f,_0x136925)=>{this[_0x5db8('0x17')][_0x5db8('0x1a')][_0x5db8('0x1')](_0x136925);}),this[_0x5db8('0x1b')]['on']('remove',(_0x5666cc,_0x443220)=>{this[_0x5db8('0x17')][_0x5db8('0x1a')]['remove'](_0x443220);}),this[_0x5db8('0x3')]('isVisible',_0x313eb4);}get[_0x5db8('0x4')](){return _0x5db8('0x12')==typeof this['_type']?this[_0x5db8('0x0')]():this[_0x5db8('0x0')];}get[_0x5db8('0xc')](){return this[_0x5db8('0x17')][_0x5db8('0xf')];}get[_0x5db8('0x6')](){const _0x1b4c21=this[_0x5db8('0x15')]();return d[_0x5db8('0x16')](_0x1b4c21),_0x1b4c21;}get[_0x5db8('0x19')](){const _0x3bbd0b=this[_0x5db8('0x6')];if(null===_0x3bbd0b)return null;if(_0x3bbd0b instanceof _0x57d41d)return _0x3bbd0b;const _0x1cb6af=_0x3bbd0b[_0x5db8('0x11')](_0x50280f=>function(_0x2b7f8b){const _0x32b9cb=_0x2b7f8b['offsetParent'];if(_0x32b9cb)return!0x0;const _0x563f74=_0x2b7f8b[_0x5db8('0x2')]()['item'](0x0);return!!_0x563f74;}(_0x50280f));return 0x0===_0x1cb6af['length']?null:new _0x57d41d(_0x1cb6af[0x0][_0x5db8('0x2')]()[_0x5db8('0x7')](0x0));}get[_0x5db8('0x5')](){return this['view'][_0x5db8('0x5')];}set[_0x5db8('0x5')](_0x2cef43){this[_0x5db8('0x17')][_0x5db8('0x5')]=_0x2cef43,this[_0x5db8('0x17')][_0x5db8('0xf')][_0x5db8('0x5')]=_0x2cef43;}['updateTargetRect'](){this[_0x5db8('0x17')][_0x5db8('0x19')]=this[_0x5db8('0x19')];}['destroy'](){this['focusableElements']['stopListening'](),this[_0x5db8('0x1b')][_0x5db8('0xd')](),this['stopListening']();}[_0x5db8('0xa')](){this['isVisible']=!!this[_0x5db8('0x19')];}static['_assertCorrectTarget'](_0x49ea84){if(!(null===_0x49ea84||_0x49ea84 instanceof _0x57d41d||Array['isArray'](_0x49ea84)&&_0x49ea84[_0x5db8('0x10')](_0x7767d0=>y(_0x7767d0))))throw new _0x56951b(_0x5db8('0xb'),null,{'target':_0x49ea84});}[_0x5db8('0x15')](){const _0x328f03=_0x5db8('0x12')==typeof this[_0x5db8('0x9')]?this['_target']():this['_target'];return y(_0x328f03)?[_0x328f03]:_0x328f03;}}function y(_0x5d533a){return null!==_0x5d533a&&_0x5db8('0x13')==typeof _0x5d533a&&_0x5db8('0x8')in _0x5d533a&&0x1===_0x5d533a[_0x5db8('0x8')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xeae4=['get','delete','refreshPositioning','_innerViewToAnnotation','_getOrderInContent','clear','listenTo','top','focusableElements','focus','fire','change:isFocused','targetRect','from','sort','set','remove','updateTargetRect','annotationcollection-not-existing-item','annotationcollection-duplicated-item','focusTracker','getIndex','_viewToAnnotation','add','getByInnerView','view','stopListening','_focusTracker','left','_sort','innerView','has','getByView'];(function(_0x3498fb,_0xeae45){const _0x622b05=function(_0x4a5300){while(--_0x4a5300){_0x3498fb['push'](_0x3498fb['shift']());}};_0x622b05(++_0xeae45);}(_0xeae4,0x141));const _0x622b=function(_0x3498fb,_0xeae45){_0x3498fb=_0x3498fb-0x0;let _0x622b05=_0xeae4[_0x3498fb];return _0x622b05;};import{CKEditorError as _0x4ea0f4,Collection as _0x12ef79,FocusTracker as _0x5a5c5b}from'ckeditor5/src/utils';export default class x extends _0x12ef79{constructor(_0x242eb7=[]){super(),this[_0x622b('0xc')]=new Map(),this[_0x622b('0x1f')]=new Map(),this[_0x622b('0x3')]=new _0x5a5c5b(),this[_0x622b('0x3')]['on'](_0x622b('0x14'),(_0x3800ff,_0x418b68,_0x4a8730)=>{_0x4a8730||this[_0x622b('0x13')]('blur');});for(const _0x2adb40 of _0x242eb7)this['add'](_0x2adb40);}get['isFocused'](){return this[_0x622b('0x3')]['isFocused'];}['add'](_0x3bc7c9){if(this[_0x622b('0x7')](_0x3bc7c9))throw new _0x4ea0f4(_0x622b('0x1c'),null);this['_innerViewToAnnotation'][_0x622b('0x18')](_0x3bc7c9[_0x622b('0x6')],_0x3bc7c9),this['_viewToAnnotation']['set'](_0x3bc7c9[_0x622b('0x1')],_0x3bc7c9);for(const _0x3dbbfb of _0x3bc7c9[_0x622b('0x11')])this[_0x622b('0x3')][_0x622b('0x20')](_0x3dbbfb);this[_0x622b('0xf')](_0x3bc7c9['focusableElements'],_0x622b('0x20'),(_0x2edaa0,_0x3b1054)=>{this[_0x622b('0x3')][_0x622b('0x20')](_0x3b1054);}),this[_0x622b('0xf')](_0x3bc7c9[_0x622b('0x11')],_0x622b('0x19'),(_0x9ed0c2,_0x18d0a2)=>{this[_0x622b('0x3')][_0x622b('0x19')](_0x18d0a2);}),this[_0x622b('0xf')](_0x3bc7c9[_0x622b('0x1')][_0x622b('0x1d')],_0x622b('0x14'),(_0x4f0208,_0x56c407,_0x162447)=>{_0x162447&&this[_0x622b('0x13')](_0x622b('0x12'),_0x3bc7c9);}),_0x3bc7c9[_0x622b('0x1a')]();const _0x40401f=this[_0x622b('0xd')](_0x3bc7c9[_0x622b('0x1')][_0x622b('0x15')]);return super[_0x622b('0x20')](_0x3bc7c9,_0x40401f);}[_0x622b('0x19')](_0x16d788){if(!this[_0x622b('0x7')](_0x16d788))throw new _0x4ea0f4(_0x622b('0x1b'),null);this[_0x622b('0x2')](_0x16d788[_0x622b('0x1')]['focusTracker']),this[_0x622b('0x2')](_0x16d788[_0x622b('0x11')]);for(const _0x5a5579 of _0x16d788[_0x622b('0x11')])this[_0x622b('0x3')][_0x622b('0x19')](_0x5a5579);return this[_0x622b('0x1f')][_0x622b('0xa')](_0x16d788['view']),this['_innerViewToAnnotation']['delete'](_0x16d788['innerView']),super[_0x622b('0x19')](_0x16d788);}[_0x622b('0x0')](_0x3b516e){return this[_0x622b('0xc')][_0x622b('0x9')](_0x3b516e);}[_0x622b('0x8')](_0x1bbd9f){return this[_0x622b('0x1f')]['get'](_0x1bbd9f);}['destroy'](){super[_0x622b('0xe')](),this[_0x622b('0x2')](),this[_0x622b('0xc')][_0x622b('0xe')](),this[_0x622b('0x1f')][_0x622b('0xe')](),this[_0x622b('0x3')]['destroy']();}[_0x622b('0xb')](){for(const _0x8c7ca5 of this)_0x8c7ca5[_0x622b('0x1a')]();this['_sort']();}[_0x622b('0x5')](){const _0x4b1932=Array[_0x622b('0x16')](this)[_0x622b('0x17')]((_0x4fd253,_0x56dde1)=>v(_0x4fd253[_0x622b('0x1')][_0x622b('0x15')],_0x56dde1[_0x622b('0x1')][_0x622b('0x15')]));for(let _0x377f97=_0x4b1932['length']-0x1;_0x377f97>0x0;_0x377f97--){const _0x1e05ff=_0x4b1932[_0x377f97];_0x377f97!==this[_0x622b('0x1e')](_0x1e05ff)&&(this[_0x622b('0x19')](_0x1e05ff),this['add'](_0x1e05ff));}}[_0x622b('0xd')](_0x5d12fa){let _0x24f088=0x0;if(!_0x5d12fa)return this['length'];for(const _0x1f038f of this){const _0x238a10=_0x1f038f[_0x622b('0x1')]['targetRect'];if(_0x238a10){if(v(_0x5d12fa,_0x238a10)<0x0)return _0x24f088;_0x24f088++;}}return _0x24f088;}}export function bindAnnotationCollections({source:_0x2daed8,target:_0x1d8e22,filter:_0x46a926}){for(const _0x33a052 of _0x2daed8)_0x46a926(_0x33a052)&&_0x1d8e22[_0x622b('0x20')](_0x33a052);_0x1d8e22['listenTo'](_0x2daed8,'add',(_0x21393b,_0x336d78)=>{_0x46a926(_0x336d78)&&_0x1d8e22[_0x622b('0x20')](_0x336d78);}),_0x1d8e22[_0x622b('0xf')](_0x2daed8,_0x622b('0x19'),(_0x487618,_0x528be2)=>{_0x1d8e22[_0x622b('0x7')](_0x528be2)&&_0x1d8e22['remove'](_0x528be2);});}function v(_0x55f0c0,_0x1b12e6){if(null===_0x55f0c0&&null===_0x1b12e6)return 0x0;if(null===_0x55f0c0)return-0x1;if(null===_0x1b12e6)return 0x1;const _0x4f69ff=_0x55f0c0[_0x622b('0x10')]-_0x1b12e6[_0x622b('0x10')];return 0x0==_0x4f69ff?_0x55f0c0['left']-_0x1b12e6[_0x622b('0x4')]:_0x4f69ff;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fc5=['deactivateAll','createAnnotation','stopListening','activeAnnotations','_activateAnnotation','activate','collection','createAnnotationView','delete','set','destroy','_removeActiveAnnotation','element','isVisible','refreshPositioning','_deactivateAllAnnotations','pluginName','source','view','change:isVisible','_visibleAnnotations','remove','listenTo','_bindAnnotationsToVisibleAnnotations','getByInnerView','has','Annotations','fire','add'];(function(_0x2039ff,_0x2fc512){const _0x1005e3=function(_0x20aa12){while(--_0x20aa12){_0x2039ff['push'](_0x2039ff['shift']());}};_0x1005e3(++_0x2fc512);}(_0x2fc5,0xeb));const _0x1005=function(_0x2039ff,_0x2fc512){_0x2039ff=_0x2039ff-0x0;let _0x1005e3=_0x2fc5[_0x2039ff];return _0x1005e3;};import{ContextPlugin as _0x202184}from'ckeditor5/src/core';import _0x4db80b from'./annotation';import _0x46d8cf from'./annotationcollection';import _0x3dc909 from'./view/annotationview';export default class b extends _0x202184{static get[_0x1005('0xd')](){return _0x1005('0x17');}constructor(_0x5de84f){super(_0x5de84f),this[_0x1005('0x3')]=new _0x46d8cf(),this['_visibleAnnotations']=new _0x46d8cf(),this[_0x1005('0x6')](_0x1005('0x0'),new Set()),this[_0x1005('0x14')]();}[_0x1005('0x19')](_0x344d87){this[_0x1005('0x3')][_0x1005('0x19')](_0x344d87);}[_0x1005('0x12')](_0x52aa76){this['collection'][_0x1005('0x12')](_0x52aa76),_0x52aa76[_0x1005('0x7')]();}['refreshVisibility'](){for(const _0xf8e732 of this[_0x1005('0x3')])_0xf8e732['refreshVisibility']();}[_0x1005('0xb')](){this[_0x1005('0x11')]['refreshPositioning']();}[_0x1005('0x15')](_0x19c69e){return this[_0x1005('0x3')][_0x1005('0x15')](_0x19c69e);}[_0x1005('0x1a')](){this[_0x1005('0x18')](_0x1005('0xc'));}[_0x1005('0x7')](){for(const _0x2c9288 of this[_0x1005('0x3')])_0x2c9288['destroy']();this[_0x1005('0x11')][_0x1005('0x7')](),this[_0x1005('0x3')][_0x1005('0x7')](),super[_0x1005('0x7')]();}[_0x1005('0x2')](_0x20f666){this['fire'](_0x1005('0x1'),_0x20f666);}[_0x1005('0x1b')](_0x9d00ad){return new _0x4db80b(_0x9d00ad);}[_0x1005('0x4')](_0x105b98,_0x57df5c){return new _0x3dc909(_0x105b98,_0x57df5c);}['_addActiveAnnotation'](_0x4116e1){const _0x20ea4e=new Set(this['activeAnnotations']);_0x20ea4e[_0x1005('0x19')](_0x4116e1),this[_0x1005('0x0')]=_0x20ea4e;}[_0x1005('0x8')](_0x292139){const _0x1b0155=new Set(this[_0x1005('0x0')]);_0x1b0155[_0x1005('0x5')](_0x292139),this[_0x1005('0x0')]=_0x1b0155;}[_0x1005('0x14')](){const _0x5e66f7=this['collection'],_0x37a79f=this[_0x1005('0x11')];function _0xae28c4(_0x3b3cda){const _0x166e3e=_0x3b3cda[_0x1005('0xe')];_0x166e3e[_0x1005('0xa')]&&!_0x37a79f[_0x1005('0x16')](_0x166e3e)?_0x37a79f['add'](_0x166e3e):!_0x166e3e[_0x1005('0xa')]&&_0x37a79f[_0x1005('0x16')](_0x166e3e)&&_0x37a79f[_0x1005('0x12')](_0x166e3e),_0x166e3e[_0x1005('0xf')]['focusTracker'][_0x1005('0x12')](_0x166e3e['view'][_0x1005('0x9')]),_0x166e3e['view']['focusTracker']['add'](_0x166e3e[_0x1005('0xf')][_0x1005('0x9')]);}this['listenTo'](_0x5e66f7,_0x1005('0x19'),(_0x104dc4,_0x2ab8c5)=>{_0x2ab8c5[_0x1005('0xa')]&&_0x37a79f['add'](_0x2ab8c5),this[_0x1005('0x13')](_0x2ab8c5,'change:isVisible',_0xae28c4);}),this[_0x1005('0x13')](_0x5e66f7,_0x1005('0x12'),(_0x23d4da,_0x11a9d5)=>{_0x37a79f['has'](_0x11a9d5)&&_0x37a79f[_0x1005('0x12')](_0x11a9d5),this[_0x1005('0x1c')](_0x11a9d5,_0x1005('0x10'),_0xae28c4);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2076=['_setSelectedAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','_activateAnnotation','_visibleAnnotations','listenTo','_removeActiveAnnotation','plugins','hasActive','set','register','remove','deactivate','context','deactivateAll','add','find','annotationsuis-register-already-registered','pluginName','from','attach','collection','has','filter','stopListening','init','setActiveAnnotation','destroy','get','push','_addActiveAnnotation','activate','activeAnnotations','_uis','isActive','annotationsuis-missing-ui','requires','function','delete','annotationsuis-register-invalid-interface','activeUIs','_uisData','_deactivateAllAnnotations'];(function(_0x476c1a,_0x207600){const _0x16f5c3=function(_0x1424ba){while(--_0x1424ba){_0x476c1a['push'](_0x476c1a['shift']());}};_0x16f5c3(++_0x207600);}(_0x2076,0x190));const _0x16f5=function(_0x476c1a,_0x207600){_0x476c1a=_0x476c1a-0x0;let _0x16f5c3=_0x2076[_0x476c1a];return _0x16f5c3;};import{ContextPlugin as _0x4c9eb0}from'ckeditor5/src/core';import{CKEditorError as _0x2ae167}from'ckeditor5/src/utils';import _0x36d090,{bindAnnotationCollections as _0x1f5955}from'./annotationcollection';import _0x3b2825 from'./annotations';export default class M extends _0x4c9eb0{static get[_0x16f5('0xd')](){return[_0x3b2825];}static get[_0x16f5('0x25')](){return'AnnotationsUIs';}constructor(_0x3e8dc5){super(_0x3e8dc5),this[_0x16f5('0x11')]=new Set(),this[_0x16f5('0xa')]=new Map(),this['_uisData']=new Map();}[_0x16f5('0x2')](){const _0x2118ca=this[_0x16f5('0x20')][_0x16f5('0x1a')]['get'](_0x3b2825);this[_0x16f5('0x18')](_0x2118ca,_0x16f5('0x16'),(_0xc7e654,_0x4b4914)=>{for(const _0x59ac6d of this[_0x16f5('0x11')]){const _0x7b1499=this[_0x16f5('0xa')]['get'](_0x59ac6d);(0x0,this['_uisData'][_0x16f5('0x5')](_0x59ac6d)[_0x16f5('0x0')])(_0x4b4914)&&_0x7b1499[_0x16f5('0x3')](_0x4b4914);}}),this[_0x16f5('0x18')](_0x2118ca,_0x16f5('0x13'),()=>{for(const _0x3d2064 of this['activeUIs']){this[_0x16f5('0xa')][_0x16f5('0x5')](_0x3d2064)[_0x16f5('0x3')](null);}}),this[_0x16f5('0x18')](_0x2118ca['_visibleAnnotations'],_0x16f5('0x22'),(_0x1b73ce,_0x1b33d1)=>{this[_0x16f5('0x15')](_0x1b33d1);});}[_0x16f5('0x1b')](){return this[_0x16f5('0x11')]['size']>0x0;}[_0x16f5('0xb')](_0x27db33){return this[_0x16f5('0x11')]['has'](_0x27db33);}[_0x16f5('0x8')](_0x107b56,_0x557b8a=()=>!0x0){const _0x477195=this[_0x16f5('0x20')][_0x16f5('0x1a')][_0x16f5('0x5')](_0x3b2825);if(!this[_0x16f5('0xa')][_0x16f5('0x29')](_0x107b56))throw new _0x2ae167(_0x16f5('0xc'),this,{'uiName':_0x107b56});this[_0x16f5('0xb')](_0x107b56)&&this[_0x16f5('0x1f')](_0x107b56),this[_0x16f5('0x11')][_0x16f5('0x22')](_0x107b56);const _0x23e808=new _0x36d090(),_0x2f3229=_0x477195[_0x16f5('0x17')];_0x1f5955({'source':_0x2f3229,'target':_0x23e808,'filter':_0x557b8a}),this[_0x16f5('0x12')]['set'](_0x107b56,{'collection':_0x23e808,'filter':_0x557b8a});const _0xf3e33f=this[_0x16f5('0xa')][_0x16f5('0x5')](_0x107b56);_0xf3e33f[_0x16f5('0x27')](_0x23e808),this[_0x16f5('0x18')](_0xf3e33f,'change:activeAnnotation',(_0x5a4bfe,_0x36c8e6,_0x40f9dc,_0x29a559)=>{_0x29a559&&_0x477195[_0x16f5('0x19')](_0x29a559),_0x40f9dc&&_0x477195[_0x16f5('0x7')](_0x40f9dc);});}[_0x16f5('0x1f')](_0x576242){if(this[_0x16f5('0x11')][_0x16f5('0xf')](_0x576242),!this[_0x16f5('0xa')][_0x16f5('0x29')](_0x576242))throw new _0x2ae167(_0x16f5('0xc'),this,{'uiName':_0x576242});const _0x38dc25=this[_0x16f5('0xa')][_0x16f5('0x5')](_0x576242);_0x38dc25['detach'](),this[_0x16f5('0x1')](_0x38dc25),this[_0x16f5('0x12')][_0x16f5('0x5')](_0x576242)[_0x16f5('0x28')][_0x16f5('0x4')](),this[_0x16f5('0x12')]['delete'](_0x576242);}['switchTo'](_0x1c42cf){if(!this[_0x16f5('0xa')][_0x16f5('0x29')](_0x1c42cf))throw new _0x2ae167(_0x16f5('0xc'),this,{'uiName':_0x1c42cf});const _0x10ce7c=this[_0x16f5('0x20')][_0x16f5('0x1a')][_0x16f5('0x5')](_0x3b2825),_0x5ccabf=Array[_0x16f5('0x26')](_0x10ce7c[_0x16f5('0x9')])[0x0]||null;this[_0x16f5('0x21')](),this[_0x16f5('0x8')](_0x1c42cf);const _0x57f0ed=this[_0x16f5('0xa')]['get'](_0x1c42cf);_0x57f0ed[_0x16f5('0x3')](_0x5ccabf),_0x57f0ed['_setSelectedAnnotations']&&_0x5ccabf&&_0x57f0ed[_0x16f5('0x14')]([_0x5ccabf]);}['deactivateAll'](){for(const _0x3d22a2 of this[_0x16f5('0x11')])this[_0x16f5('0x1f')](_0x3d22a2);}[_0x16f5('0x1d')](_0x1eb696,_0x3ebee6){if(this['_uis']['has'](_0x1eb696))throw new _0x2ae167(_0x16f5('0x24'));if(_0x16f5('0xe')!=typeof _0x3ebee6[_0x16f5('0x27')]||_0x16f5('0xe')!=typeof _0x3ebee6['detach']||_0x16f5('0xe')!=typeof _0x3ebee6[_0x16f5('0x3')])throw new _0x2ae167(_0x16f5('0x10'),null);this[_0x16f5('0xa')]['set'](_0x1eb696,_0x3ebee6);}['refilterAnnotations'](){const _0x48277e=this['context']['plugins'][_0x16f5('0x5')](_0x3b2825)['collection'],_0x4b6f8f=new Map(),_0x1e53c1=Array[_0x16f5('0x26')](this[_0x16f5('0x11')]);for(const _0xf9063c of this[_0x16f5('0x11')]){const _0x434469=this[_0x16f5('0x12')][_0x16f5('0x5')](_0xf9063c)['collection'];for(const _0xb19017 of _0x434469)_0x4b6f8f[_0x16f5('0x1c')](_0xb19017,_0xf9063c);}for(const _0x3869fc of _0x48277e){const _0x3aff8e=_0x4b6f8f[_0x16f5('0x5')](_0x3869fc);this[_0x16f5('0x15')](_0x3869fc);const _0x3b5c86=_0x1e53c1[_0x16f5('0x23')](_0x3b96e5=>this[_0x16f5('0x12')][_0x16f5('0x5')](_0x3b96e5)[_0x16f5('0x0')](_0x3869fc));_0x3aff8e!==_0x3b5c86&&(_0x3aff8e&&this[_0x16f5('0x12')][_0x16f5('0x5')](_0x3aff8e)[_0x16f5('0x28')][_0x16f5('0x1e')](_0x3869fc),_0x3b5c86&&this['_uisData'][_0x16f5('0x5')](_0x3b5c86)[_0x16f5('0x28')]['add'](_0x3869fc));}}[_0x16f5('0x4')](){this[_0x16f5('0x21')](),super['destroy']();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xef212e){const _0x4c4487=[];for(const _0xf8334d of this['activeUIs']){(0x0,this['_uisData'][_0x16f5('0x5')](_0xf8334d)[_0x16f5('0x0')])(_0xef212e)&&_0x4c4487[_0x16f5('0x6')](_0xf8334d);}if(_0x4c4487['length']>0x1)throw new _0x2ae167('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x4c4487,'annotationType':_0xef212e['type']});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x374c=['EditorAnnotations','_dataCollectors','innerView','sort','delete','annotation','init','isEqual','refresh','directChange','refreshSelectedViews','containsRange','uiUpdate','_editorAnnotations','selection','isCollapsed','map','model','addSourceCollector','has','function','listenTo','push','fire','_editorAnnotationsData','update','hasDomSelection','element','from','view','plugins','document','getOrderedSelectedAnnotations','cancel','set','get','editor','remove','blur','range','getRanges','focusTracker','registerAnnotation','add','change:range','editorannotations-invalid-source-callback','requires','editing'];(function(_0x482da0,_0x374c2a){const _0x320ba5=function(_0x3bd760){while(--_0x3bd760){_0x482da0['push'](_0x482da0['shift']());}};_0x320ba5(++_0x374c2a);}(_0x374c,0x193));const _0x320b=function(_0x482da0,_0x374c2a){_0x482da0=_0x482da0-0x0;let _0x320ba5=_0x374c[_0x482da0];return _0x320ba5;};import{Plugin as _0x5ba1d1}from'ckeditor5/src/core';import{CKEditorError as _0x1a5e54}from'ckeditor5/src/utils';import{debounce as _0x1ca270}from'lodash-es';import _0x591021 from'./annotations';export default class k extends _0x5ba1d1{static get[_0x320b('0x1b')](){return[_0x591021];}static get['pluginName'](){return _0x320b('0x1d');}constructor(_0x14f6bd){super(_0x14f6bd),this[_0x320b('0x1e')]=new Set(),this['_editorAnnotations']=new Set();}[_0x320b('0x23')](){const _0x3a3c61=this[_0x320b('0x11')],_0x278278=_0x3a3c61['model'][_0x320b('0xc')][_0x320b('0x2b')],_0x1ac8bf=_0x1ca270(()=>this[_0x320b('0x27')](),0xa);_0x278278['on'](_0x320b('0x19'),(_0x90a0d,_0x103352)=>{_0x103352[_0x320b('0x26')]&&(_0x1ac8bf[_0x320b('0xe')](),this[_0x320b('0x27')]());}),this['listenTo'](_0x3a3c61[_0x320b('0x1c')][_0x320b('0xa')]['document'],'change:isFocused',(_0x25e9e7,_0x29592e,_0x54381e)=>{_0x54381e&&_0x1ac8bf();}),this[_0x320b('0x2')](_0x3a3c61['ui'][_0x320b('0x16')],'change:isFocused',(_0x455b2d,_0x1c55dc,_0x52db03)=>{_0x52db03||_0x3a3c61['isReadOnly']||this[_0x320b('0x4')](_0x320b('0x13'),{'isAnnotationTracked':_0x5abafd=>this[_0x320b('0x5')]['has'](_0x5abafd[_0x320b('0x1f')])});}),this[_0x320b('0x2')](this[_0x320b('0x11')]['ui'],_0x320b('0x6'),()=>this[_0x320b('0x4')](_0x320b('0x29')));}[_0x320b('0x17')](_0x426fca){if(this[_0x320b('0x2a')][_0x320b('0x0')](_0x426fca['view']))return;this['_editorAnnotations'][_0x320b('0x18')](_0x426fca[_0x320b('0xa')]),this['editor']['ui'][_0x320b('0x16')][_0x320b('0x18')](_0x426fca[_0x320b('0xa')][_0x320b('0x8')]);const _0x23f0fa=this[_0x320b('0x11')][_0x320b('0xb')][_0x320b('0x10')](_0x591021);this[_0x320b('0x2')](_0x23f0fa['collection'],_0x320b('0x12'),(_0x4df9e3,_0x56f468)=>{this['editor']['ui'][_0x320b('0x16')][_0x320b('0x12')](_0x56f468[_0x320b('0xa')][_0x320b('0x8')]),this[_0x320b('0x2a')][_0x320b('0x21')](_0x56f468['view']);});}['hasDomSelection'](){return this['editor'][_0x320b('0x1c')][_0x320b('0xa')][_0x320b('0x7')];}[_0x320b('0x2f')](_0x17d7db){if(_0x320b('0x1')!=typeof _0x17d7db)throw new _0x1a5e54(_0x320b('0x1a'));this[_0x320b('0x1e')][_0x320b('0x18')](_0x17d7db);}[_0x320b('0x27')](){this['fire'](_0x320b('0x25'));}[_0x320b('0xd')]({activeAnnotation:_0x28303,annotations:_0x19f41e}){const _0xf79a3c=[],_0x2690b9=this[_0x320b('0x11')][_0x320b('0x2e')]['document'][_0x320b('0x2b')],_0x54330d=Array[_0x320b('0x9')](_0x2690b9[_0x320b('0x15')]());for(const [_0x4e68ef,_0x50954b]of this[_0x320b('0x5')]){const _0x3b40f2=_0x3fb158(_0x50954b),_0x442969=_0x19f41e['getByInnerView'](_0x4e68ef);_0x3b40f2&&_0x442969&&_0xf79a3c[_0x320b('0x3')]({'annotation':_0x442969,'range':_0x3b40f2});}function _0x3fb158(_0x5f12ac){for(const _0x449a28 of _0x5f12ac)for(const _0x48b5bf of _0x54330d)if(_0x449a28[_0x320b('0x28')](_0x48b5bf,!_0x2690b9[_0x320b('0x2c')]))return _0x449a28;return null;}return _0xf79a3c[_0x320b('0x20')]((_0x30d1b3,_0x7ba02d)=>{const _0x7aec88=_0x30d1b3['range'],_0x144bc5=_0x7ba02d[_0x320b('0x14')];if(!_0x7aec88[_0x320b('0x24')](_0x144bc5)){if(_0x7aec88[_0x320b('0x28')](_0x144bc5,!0x0))return 0x1;if(_0x144bc5[_0x320b('0x28')](_0x7aec88,!0x0))return-0x1;}return _0x30d1b3[_0x320b('0x22')]==_0x28303?-0x1:_0x7ba02d[_0x320b('0x22')]==_0x28303?0x1:0x0;})[_0x320b('0x2d')](_0x1956e7=>_0x1956e7[_0x320b('0x22')]);}get['_editorAnnotationsData'](){const _0x4afad9=new Map();for(const _0x24be49 of Array[_0x320b('0x9')](this['_dataCollectors']))for(const [_0x51b928,_0x3b481c]of _0x24be49())_0x4afad9[_0x320b('0xf')](_0x51b928,_0x3b481c);return _0x4afad9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3590=['keystrokes','editing','domConverter','refresh','annotations','activeAnnotation','clear','_setSelectedAnnotations','setActiveAnnotation','set','find','switchTo','selection','pluginName','length','editableElement','getFirstRange','includes','_getBalloonTargetForAnnotation','left','_closeAnnotation','_selectedAnnotations','listenTo','getByView','fromRect','isFocused','change:height','every','targetRect','has','focusTracker','inlineannotations-attach-already-attached','requires','_manuallyClosed','collapse','remove','target','attach','document','init','right','focus','blur','_forceRefresh','updatePosition','plugins','register','add','_addedAnnotations','InlineAnnotations','visibleView','push','update','Esc','getOrderedSelectedAnnotations','delete','get','inline','destroy','view','top','detach','getBoundingClientRect','width','inlineannotations-not-allowed-with-context','inlineannotations-detach-not-attached','afterInit','change:visibleView','_addAnnotationToBalloon','bottom','context','isAttached','hasActive','editor','hasView','isActive','stopListening','_removeAnnotationFromBalloon','_balloon'];(function(_0x4cdc3e,_0x3590a0){const _0x1b184d=function(_0x2cd4bd){while(--_0x2cd4bd){_0x4cdc3e['push'](_0x4cdc3e['shift']());}};_0x1b184d(++_0x3590a0);}(_0x3590,0x1a7));const _0x1b18=function(_0x4cdc3e,_0x3590a0){_0x4cdc3e=_0x4cdc3e-0x0;let _0x1b184d=_0x3590[_0x4cdc3e];return _0x1b184d;};import{Plugin as _0x27bcc6}from'ckeditor5/src/core';import _0x51c007 from'./annotationsuis';import _0x2bd586 from'./editorannotations';import{ContextualBalloon as _0x30d8cc}from'ckeditor5/src/ui';import{MouseObserver as _0x4b5a78}from'ckeditor5/src/engine';import{CKEditorError as _0x2b22e0,Rect as _0x369551}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x27bcc6{static get[_0x1b18('0x4')](){return[_0x2bd586,_0x30d8cc,_0x51c007];}static get[_0x1b18('0x40')](){return _0x1b18('0x15');}constructor(_0x49940b){super(_0x49940b),_0x49940b[_0x1b18('0x34')][_0x1b18('0x1f')]['addObserver'](_0x4b5a78),this[_0x1b18('0x2b')]=!0x1,this[_0x1b18('0x3c')](_0x1b18('0x38'),null),this[_0x1b18('0x37')]=null,this['_manuallyClosed']=new Set(),this[_0x1b18('0x32')]=_0x49940b[_0x1b18('0x11')][_0x1b18('0x1c')](_0x30d8cc),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}[_0x1b18('0xb')](){const _0x441251=this[_0x1b18('0x2d')][_0x1b18('0x11')][_0x1b18('0x1c')](_0x51c007);_0x441251[_0x1b18('0x2a')]===this[_0x1b18('0x2d')]&&(_0x441251[_0x1b18('0x12')]('inline',this),this['editor'][_0x1b18('0x33')]['set'](_0x1b18('0x19'),(_0xc15a5c,_0xe1b553)=>{const _0x2689d3=this[_0x1b18('0x32')];if(this[_0x1b18('0x2b')]&&_0x2689d3[_0x1b18('0x16')]){const _0x1ecb31=this[_0x1b18('0x37')][_0x1b18('0x4a')](_0x2689d3[_0x1b18('0x16')]);_0x1ecb31&&this[_0x1b18('0x47')](_0x1ecb31),_0xe1b553();}}));}[_0x1b18('0x26')](){const _0x47686f=this['editor'][_0x1b18('0x11')][_0x1b18('0x1c')](_0x51c007);_0x47686f['context']===this[_0x1b18('0x2d')]&&(_0x47686f[_0x1b18('0x2c')]()||_0x47686f[_0x1b18('0x3e')](_0x1b18('0x1d')));}[_0x1b18('0x3b')](_0x21d0e1){_0x21d0e1!==this['activeAnnotation']&&(this[_0x1b18('0x38')]&&(this['activeAnnotation'][_0x1b18('0x2f')]=!0x1),_0x21d0e1&&this[_0x1b18('0x2d')]['ui'][_0x1b18('0x2')][_0x1b18('0x4c')]&&(this[_0x1b18('0x37')][_0x1b18('0x1')](_0x21d0e1)&&this[_0x1b18('0x28')](_0x21d0e1,!0x0),_0x21d0e1[_0x1b18('0x2f')]=!0x0),_0x21d0e1||this[_0x1b18('0x3a')]([]),this['activeAnnotation']=_0x21d0e1);}[_0x1b18('0x9')](_0x906d44){this[_0x1b18('0x37')]=_0x906d44;const _0x297406=this[_0x1b18('0x2d')][_0x1b18('0x11')]['get'](_0x51c007),_0x564dca=this[_0x1b18('0x32')];if(this[_0x1b18('0x2b')])throw new _0x2b22e0(_0x1b18('0x3'),this);if(_0x297406[_0x1b18('0x2a')]!==this['editor'])throw new _0x2b22e0(_0x1b18('0x24'),this);const _0x591107=this[_0x1b18('0x2d')][_0x1b18('0x11')]['get'](_0x2bd586);this['listenTo'](_0x591107,_0x1b18('0x36'),()=>{const _0x214acc=_0x591107[_0x1b18('0x1a')]({'annotations':this['annotations'],'activeAnnotation':this[_0x1b18('0x38')]});var _0x272b3e,_0x4d74a0;!this['_forceRefresh']&&(_0x272b3e=_0x214acc,_0x4d74a0=this['_selectedAnnotations'],_0x272b3e[_0x1b18('0x41')]===_0x4d74a0[_0x1b18('0x41')]&&_0x272b3e[_0x1b18('0x4e')](_0x23ca19=>_0x4d74a0[_0x1b18('0x44')](_0x23ca19)))||(this[_0x1b18('0xf')]=!0x1,this[_0x1b18('0x3a')](_0x214acc),this[_0x1b18('0x3b')](_0x214acc[0x0]||null));}),this['listenTo'](_0x591107,_0x1b18('0xe'),(_0x7f77f5,{isAnnotationTracked:_0x352aa7})=>{this[_0x1b18('0x38')]&&_0x352aa7(this[_0x1b18('0x38')])&&(this[_0x1b18('0x3a')]([]),this[_0x1b18('0x3b')](null));}),this[_0x1b18('0x49')](this[_0x1b18('0x2d')]['ui']['focusTracker'],'change:isFocused',(_0x3012c2,_0x30cd2b,_0x95c32e)=>{_0x95c32e||this[_0x1b18('0x3b')](null);}),this['listenTo'](_0x906d44,_0x1b18('0x7'),(_0x112ffc,_0x145b9d)=>{this[_0x1b18('0x31')](_0x145b9d),_0x145b9d===this[_0x1b18('0x38')]&&this['setActiveAnnotation'](null);}),this[_0x1b18('0x49')](_0x564dca,_0x1b18('0x27'),(_0x54cff4,_0x5150d4,_0xb8c947,_0x5c195d)=>{_0x5c195d&&this[_0x1b18('0x30')](_0x5c195d);const _0x1d8422=_0x906d44[_0x1b18('0x4a')](_0xb8c947);_0xb8c947&&_0x1d8422&&(this['listenTo'](_0xb8c947,_0x1b18('0x4d'),()=>{_0x564dca[_0x1b18('0x10')]();}),this['listenTo'](_0xb8c947,_0x1b18('0x19'),()=>{this[_0x1b18('0x47')](_0x1d8422),this[_0x1b18('0x2d')][_0x1b18('0x34')][_0x1b18('0x1f')]['focus']();}),this[_0x1b18('0x38')]!==_0x1d8422&&this['setActiveAnnotation'](_0x1d8422));}),this['listenTo'](this[_0x1b18('0x2d')]['ui'],_0x1b18('0x18'),()=>{_0x564dca[_0x1b18('0x16')]&&(_0x906d44['getByView'](_0x564dca['visibleView'])&&_0x564dca[_0x1b18('0x10')]());}),this[_0x1b18('0x49')](this[_0x1b18('0x2d')][_0x1b18('0x34')]['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed'][_0x1b18('0x39')]();}),this[_0x1b18('0x2d')][_0x1b18('0x34')][_0x1b18('0x1f')][_0x1b18('0xa')][_0x1b18('0x3f')][_0x1b18('0x42')]&&this['editor'][_0x1b18('0x34')]['view'][_0x1b18('0xd')](),this[_0x1b18('0x2b')]=!0x0;}[_0x1b18('0x21')](){if(!this[_0x1b18('0x2b')])throw new _0x2b22e0(_0x1b18('0x25'),this);this['setActiveAnnotation'](null);for(const _0x7e50b9 of this['_addedAnnotations'])this[_0x1b18('0x31')](_0x7e50b9);this[_0x1b18('0x30')](),this['isAttached']=!0x1,this[_0x1b18('0x37')]=null;}[_0x1b18('0x1e')](){this['isAttached']&&this[_0x1b18('0x21')]();}[_0x1b18('0x3a')](_0x412cd8){for(const _0x1189e0 of this[_0x1b18('0x48')])_0x412cd8['includes'](_0x1189e0)||this[_0x1b18('0x5')][_0x1b18('0x1b')](_0x1189e0);for(const _0x191caa of this[_0x1b18('0x37')])_0x412cd8[_0x1b18('0x44')](_0x191caa)||this[_0x1b18('0x31')](_0x191caa);if(this['editor']['ui']['focusTracker'][_0x1b18('0x4c')])for(const _0x316e23 of _0x412cd8)this[_0x1b18('0x28')](_0x316e23);this['_selectedAnnotations']=_0x412cd8;}[_0x1b18('0x28')](_0x29c971,_0x55827c=!0x1){this['_manuallyClosed'][_0x1b18('0x1')](_0x29c971)||(this[_0x1b18('0x14')]['has'](_0x29c971)||this[_0x1b18('0x32')]['hasView'](_0x29c971[_0x1b18('0x1f')])||(this['_addedAnnotations'][_0x1b18('0x13')](_0x29c971),this[_0x1b18('0x32')]['add']({'stackId':_0x29c971[_0x1b18('0x1f')]['id'],'view':_0x29c971[_0x1b18('0x1f')],'position':{'target':()=>this[_0x1b18('0x45')](_0x29c971)}})),_0x55827c&&this[_0x1b18('0x32')]['showStack'](_0x29c971['view']['id']));}['_getBalloonTargetForAnnotation'](_0x183787){const _0x45dfb7=_0x183787[_0x1b18('0x8')],_0x31159f=this[_0x1b18('0x2d')]['editing'][_0x1b18('0x1f')],_0x1cacb8=_0x31159f[_0x1b18('0xa')]['selection'][_0x1b18('0x43')](),_0x4a9bb6=_0x31159f[_0x1b18('0x35')]['viewRangeToDom'](_0x1cacb8);if(_0x4a9bb6[_0x1b18('0x6')](!0x0),_0x45dfb7){if(_0x45dfb7 instanceof _0x369551)return _0x45dfb7;let _0x2d527c=[];for(const _0x2f0107 of _0x45dfb7)_0x2d527c[_0x1b18('0x17')](...(_0xb84257=_0x2f0107['getClientRects'](),Array['from'](_0xb84257)['map'](DOMRect[_0x1b18('0x4b')])));_0x2d527c=function(_0x47e7b5){const _0x20012a=[];let _0xe3faa3=_0x47e7b5[0x0];for(let _0x2a1888=0x1;_0x2a1888<_0x47e7b5['length'];_0x2a1888++)F(_0xe3faa3,_0x47e7b5[_0x2a1888])?_0xe3faa3[_0x1b18('0x23')]+=_0x47e7b5[_0x2a1888][_0x1b18('0x23')]:(_0x20012a[_0x1b18('0x17')](_0xe3faa3),_0xe3faa3=_0x47e7b5[_0x2a1888]);return _0x20012a[_0x1b18('0x17')](_0xe3faa3),_0x20012a;}(_0x2d527c);const _0x538bf8=_0x4a9bb6[_0x1b18('0x22')]();return _0x2d527c[_0x1b18('0x3d')](_0x49ddc0=>_0x49ddc0[_0x1b18('0x20')]<=_0x538bf8[_0x1b18('0x20')]&&_0x49ddc0['bottom']>=_0x538bf8[_0x1b18('0x29')]&&_0x49ddc0['left']<=_0x538bf8['left']&&_0x49ddc0[_0x1b18('0xc')]>=_0x538bf8[_0x1b18('0xc')])||_0x2d527c[0x0];}var _0xb84257;return _0x183787[_0x1b18('0x0')]||_0x4a9bb6;}[_0x1b18('0x31')](_0x3dc7bd){this[_0x1b18('0x14')]['has'](_0x3dc7bd)&&this[_0x1b18('0x32')][_0x1b18('0x2e')](_0x3dc7bd[_0x1b18('0x1f')])&&(this[_0x1b18('0x14')][_0x1b18('0x1b')](_0x3dc7bd),this[_0x1b18('0x32')]['remove'](_0x3dc7bd[_0x1b18('0x1f')]));}[_0x1b18('0x47')](_0x2fd039){this[_0x1b18('0x5')][_0x1b18('0x13')](_0x2fd039),this[_0x1b18('0x31')](_0x2fd039);}}function F(_0x588b82,_0x332738){return _0x588b82['top']===_0x332738[_0x1b18('0x20')]&&_0x588b82[_0x1b18('0x29')]===_0x332738[_0x1b18('0x29')]&&_0x588b82['right']===_0x332738[_0x1b18('0x46')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4872=['NarrowSidebar','mousedown','set:container','contains','content','pin','EditorAnnotations','_refreshPositioning','setActiveAnnotation','detach','narrowSidebar','off','_detachListeners','resize','activeAnnotation','clear','attachToDom','northArrowSouthEast','uiUpdate','listenTo','number','defaultPositions','keydown','northArrowSouthWest','bodyCollection','focusableElements','_destroyEditorAnnotationsIntegration','rearrange','has','blur','context','attach','stop','set','change:height','focus','_domEmitter','balloonPanelView','target','_annotations','ready','includes','element','_manuallyClosedAnnotationViews','_updateBalloonPosition','delete','annotationType','stopPropagation','from','find','annotations','preventClosingBalloon','removeEventListener','execute','editors','destroy','unpin','high','_refreshPositioningDebounced','requires','stopListening','_attachToContainer','southArrowNorthEast','isDirty','_selectedAnnotations','view','_showBalloon','register','_annotationToNarrowView','_setSelectedAnnotations','_integrateWithEditorAnnotations','length','_hideBalloon','add','plugins','hasDomSelection','southArrowNorth','northArrowSouth','remove','get','_editorAnnotations','_attachListeners','addAnnotation','getSidebarItemView','_detachFromContainer','isAttached','isVisible','getByView','first','narrowsidebar-detach-not-attached','detachFromDom','cancel','init','locale','values','esc'];(function(_0x5969d9,_0x48727f){const _0x268b58=function(_0x1034e2){while(--_0x1034e2){_0x5969d9['push'](_0x5969d9['shift']());}};_0x268b58(++_0x48727f);}(_0x4872,0x1db));const _0x268b=function(_0x5969d9,_0x48727f){_0x5969d9=_0x5969d9-0x0;let _0x268b58=_0x4872[_0x5969d9];return _0x268b58;};import{ContextPlugin as _0x440824,Context as _0x43570c}from'ckeditor5/src/core';import _0x253d9a from'./annotationsuis';import _0x4599fa from'./sidebar';import _0x54b65b from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x475006,BodyCollection as _0x380e66}from'ckeditor5/src/ui';import{CKEditorError as _0x524c4e,DomEmitterMixin as _0x5245dc,keyCodes as _0xbf2b63,Collection as _0x94d74}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x21e045}from'lodash-es';import _0x2677dc from'./editorannotations';export default class s extends _0x440824{static get[_0x268b('0x40')](){return[_0x4599fa,_0x253d9a];}static get['pluginName'](){return _0x268b('0x5');}constructor(_0x4158eb){super(_0x4158eb),this[_0x268b('0x5a')]=!0x1,this[_0x268b('0x30')]=new Set(),this[_0x268b('0x29')]=Object['create'](_0x5245dc),this[_0x268b('0x49')]=new Map(),this[_0x268b('0x26')](_0x268b('0x13'),null),this['annotations']=null,this[_0x268b('0x45')]=[],this['_editorAnnotations']=new _0x94d74(),this[_0x268b('0x3f')]=_0x21e045(()=>{this[_0x268b('0xc')]();},0xfa,{'leading':!0x1});}[_0x268b('0x1')](){this['context'][_0x268b('0x4f')][_0x268b('0x54')](_0x253d9a)[_0x268b('0x48')](_0x268b('0xf'),this),this[_0x268b('0x1d')]=new _0x380e66(this[_0x268b('0x23')]['locale']),this[_0x268b('0x2a')]=new _0x475006(this[_0x268b('0x23')][_0x268b('0x2')]),this[_0x268b('0x1d')][_0x268b('0x15')](),this[_0x268b('0x1d')][_0x268b('0x4e')](this[_0x268b('0x2a')]);}[_0x268b('0x24')](_0x32dcc7){this['annotations']=_0x32dcc7;const _0x1cad2a=this[_0x268b('0x23')][_0x268b('0x4f')][_0x268b('0x54')](_0x4599fa),_0x1b7915=this[_0x268b('0x2a')];if(_0x1cad2a[_0x268b('0x2c')]=_0x32dcc7,this[_0x268b('0x5a')])throw new _0x524c4e('narrowsidebar-attach-already-attached',this);this[_0x268b('0x5a')]=!0x0,this['listenTo'](_0x1cad2a,_0x268b('0x7'),()=>{this['detach'](),this[_0x268b('0x18')](_0x1cad2a,'change:container',_0xae3196=>{_0xae3196[_0x268b('0x10')](),this['attach'](_0x32dcc7);});}),_0x1cad2a[_0x268b('0x42')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x914f76=_0x444da2=>{const _0x10f787=new _0x54b65b(this[_0x268b('0x23')][_0x268b('0x2')]);_0x1cad2a[_0x268b('0x57')](_0x444da2,_0x10f787),this[_0x268b('0x49')][_0x268b('0x26')](_0x444da2,_0x10f787),_0x10f787['bind']('isDirty',_0x268b('0x33'),_0x268b('0x19'))['to'](_0x444da2[_0x268b('0x46')],_0x268b('0x44'),'type',_0x268b('0x4c')),_0x10f787['on'](_0x268b('0x3a'),()=>{this[_0x268b('0x30')]['clear'](),_0x1b7915[_0x268b('0x9')][_0x268b('0x5d')]!==_0x444da2[_0x268b('0x46')]?(this[_0x268b('0x47')](_0x444da2),_0x444da2[_0x268b('0x46')]['element']['focus'](),this[_0x268b('0xd')](_0x444da2)):this[_0x268b('0xd')](null);});};for(const _0x3c31a4 of _0x32dcc7)_0x914f76(_0x3c31a4);this[_0x268b('0x18')](_0x32dcc7,'add',(_0x1c7145,_0x27423a)=>{_0x914f76(_0x27423a);}),this[_0x268b('0x18')](_0x32dcc7,'remove',(_0x112ae0,_0x41ca59,_0x1ba6c9)=>{this[_0x268b('0x49')][_0x268b('0x54')](_0x41ca59)[_0x268b('0x3c')](),this[_0x268b('0x49')][_0x268b('0x32')](_0x41ca59),_0x1cad2a[_0x268b('0x20')]({'removedAnnotation':_0x41ca59,'previousAnnotation':_0x32dcc7[_0x268b('0x54')](_0x1ba6c9-0x1),'nextAnnotation':_0x32dcc7[_0x268b('0x54')](_0x1ba6c9+0x1)}),_0x41ca59===this[_0x268b('0x13')]&&this[_0x268b('0xd')](null);},{'priority':'low'}),this[_0x268b('0x18')](_0x32dcc7,_0x268b('0x28'),(_0x2d21ac,_0x129c0e)=>{this['setActiveAnnotation'](_0x129c0e);}),this[_0x268b('0x18')](_0x32dcc7,'blur',()=>{this['setActiveAnnotation'](null);}),this[_0x268b('0x29')]['listenTo'](document,_0x268b('0x1b'),(_0x63ebd9,_0x5b3ec4)=>{_0x5b3ec4['keyCode']===_0xbf2b63[_0x268b('0x4')]&&_0x1b7915[_0x268b('0x5b')]&&(this['_manuallyClosedAnnotationViews']['add'](_0x1b7915[_0x268b('0x9')]['first']),this[_0x268b('0x4d')](),_0x5b3ec4[_0x268b('0x34')](),_0x5b3ec4['preventDefault']());}),this['_domEmitter']['listenTo'](document,_0x268b('0x6'),(_0x40ace2,_0x1dc60a)=>{const _0x3b12c7=_0x1dc60a[_0x268b('0x2b')];_0x1b7915['isVisible']&&_0x1b7915[_0x268b('0x2f')][_0x268b('0x8')](_0x3b12c7)||_0x1cad2a[_0x268b('0x46')][_0x268b('0x2f')][_0x268b('0x8')](_0x3b12c7)||_0x40ace2[_0x268b('0x38')]||this[_0x268b('0x13')]&&this[_0x268b('0x13')][_0x268b('0x1e')][_0x268b('0x36')](_0x25915f=>_0x25915f['contains'](_0x3b12c7))||(this['_manuallyClosedAnnotationViews'][_0x268b('0x14')](),this['_hideBalloon'](),this[_0x268b('0xd')](null));});const _0x3a0ae2=this[_0x268b('0x23')]instanceof _0x43570c?this[_0x268b('0x23')][_0x268b('0x3b')]:new _0x94d74([this['context']]);for(const _0x2490f4 of _0x3a0ae2)this[_0x268b('0x4b')](_0x2490f4);this[_0x268b('0x18')](_0x3a0ae2,_0x268b('0x4e'),(_0x1067f7,_0x1649d1)=>{this[_0x268b('0x18')](_0x1649d1,_0x268b('0x2d'),()=>{this[_0x268b('0x4b')](_0x1649d1);});}),this[_0x268b('0x18')](_0x3a0ae2,_0x268b('0x53'),(_0x4fa879,_0x470fef)=>{_0x470fef[_0x268b('0x4f')][_0x268b('0x21')](_0x268b('0xb'))&&this[_0x268b('0x1f')](_0x470fef[_0x268b('0x4f')][_0x268b('0x54')](_0x268b('0xb')));}),window['addEventListener'](_0x268b('0x12'),this['_refreshPositioningDebounced']),this[_0x268b('0xc')]();}[_0x268b('0xd')](_0x44872b){if(_0x44872b===this[_0x268b('0x13')])return;const _0xe94ffe=this[_0x268b('0x23')][_0x268b('0x4f')][_0x268b('0x54')](_0x4599fa);if(_0xe94ffe['refresh']({'blurredAnnotation':this[_0x268b('0x13')],'activatedAnnotation':_0x44872b,'disableAnimationOnActivatedAnnotation':!0x0}),_0x44872b)_0xe94ffe[_0x268b('0x58')](_0x44872b)?this[_0x268b('0x47')](_0x44872b):this[_0x268b('0x4d')]();else this['_hideBalloon']();this[_0x268b('0x13')]=_0x44872b;}['detach'](){if(!this[_0x268b('0x5a')])throw new _0x524c4e(_0x268b('0x5e'),this);this[_0x268b('0xd')](null);const _0x359b93=this[_0x268b('0x23')][_0x268b('0x4f')][_0x268b('0x54')](_0x4599fa);this[_0x268b('0x4d')](),Array[_0x268b('0x35')](this[_0x268b('0x49')][_0x268b('0x3')](),_0x52080b=>_0x52080b[_0x268b('0x3c')]()),this['_annotationToNarrowView'][_0x268b('0x14')](),_0x359b93[_0x268b('0x59')](this[_0x268b('0x37')]),this[_0x268b('0x41')](),this[_0x268b('0x29')][_0x268b('0x41')](),this[_0x268b('0x23')]instanceof _0x43570c&&this[_0x268b('0x41')](this['context'][_0x268b('0x3b')]);for(const _0x4626b3 of Array[_0x268b('0x35')](this[_0x268b('0x55')]))this[_0x268b('0x1f')](_0x4626b3);window[_0x268b('0x39')]('resize',this[_0x268b('0x3f')]),this[_0x268b('0x3f')][_0x268b('0x0')](),this['_selectedAnnotations']=[],this[_0x268b('0x5a')]=!0x1,this[_0x268b('0x37')]=null;}[_0x268b('0x3c')](){this['isAttached']&&this[_0x268b('0xe')](),this[_0x268b('0x1d')][_0x268b('0x5f')]();}[_0x268b('0x4b')](_0xa6814){const _0x4b654b=_0xa6814[_0x268b('0x4f')]['get'](_0x2677dc),_0x51a59b=this[_0x268b('0x23')][_0x268b('0x4f')][_0x268b('0x54')](_0x4599fa),_0x39b91f=this['annotations'],_0x139b26=this['balloonPanelView'],_0x57b99a=()=>{const _0x1d1953=_0x4b654b['getOrderedSelectedAnnotations']({'annotations':this[_0x268b('0x37')],'activeAnnotation':this['activeAnnotation']});this[_0x268b('0x4a')](_0x1d1953),this[_0x268b('0xd')](_0x1d1953[0x0]||null);};this['listenTo'](_0x4b654b,'refresh',_0x57b99a),this[_0x268b('0x18')](_0x4b654b,_0x268b('0x22'),(_0x43bc4d,{isAnnotationTracked:_0x2d378c})=>{this['activeAnnotation']&&_0x2d378c(this['activeAnnotation'])&&(this[_0x268b('0x4a')]([]),this[_0x268b('0xd')](null));}),this['listenTo'](_0x4b654b,_0x268b('0x17'),()=>{this['_refreshPositioningDebounced']();}),this[_0x268b('0x18')](_0x39b91f,_0x268b('0x22'),_0xdac207=>{_0x4b654b[_0x268b('0x50')]()&&_0xdac207[_0x268b('0x25')]();},{'priority':_0x268b('0x3e')}),this[_0x268b('0x18')](this[_0x268b('0x29')],_0x268b('0x6'),(_0x25928e,_0x13d16a)=>{const _0x28dee5=_0x13d16a[_0x268b('0x2b')];_0x139b26['isVisible']&&_0x139b26[_0x268b('0x2f')][_0x268b('0x8')](_0x28dee5)||_0x51a59b[_0x268b('0x46')]['element'][_0x268b('0x8')](_0x28dee5)||this[_0x268b('0x13')]&&_0x4b654b[_0x268b('0x50')]()&&(_0x57b99a(),_0x25928e[_0x268b('0x38')]=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x268b('0x4e')](_0x4b654b);}[_0x268b('0x1f')](_0x33efa3){_0x33efa3&&(this[_0x268b('0x41')](_0x33efa3),this[_0x268b('0x55')][_0x268b('0x53')](_0x33efa3));}[_0x268b('0x4a')](_0x22944d){for(const _0x38eecb of this[_0x268b('0x45')])_0x22944d[_0x268b('0x2e')](_0x38eecb)||this[_0x268b('0x30')][_0x268b('0x32')](_0x38eecb[_0x268b('0x46')]);this[_0x268b('0x45')]=_0x22944d;}['_refreshPositioning'](){const _0x1efc07=this['balloonPanelView'];this[_0x268b('0x37')]['refreshPositioning'](),_0x1efc07['isVisible']&&this[_0x268b('0x31')]();}[_0x268b('0x47')](_0x58eae0){if(this['_manuallyClosedAnnotationViews'][_0x268b('0x21')](_0x58eae0['view']))return;const _0x7579d6=this[_0x268b('0x2a')][_0x268b('0x9')][_0x268b('0x5d')];_0x7579d6!==_0x58eae0[_0x268b('0x46')]?(_0x7579d6&&this[_0x268b('0x11')](_0x7579d6),this[_0x268b('0x56')](_0x58eae0[_0x268b('0x46')]),this[_0x268b('0x2a')][_0x268b('0x9')]['clear'](),this[_0x268b('0x2a')][_0x268b('0x9')]['add'](_0x58eae0[_0x268b('0x46')]),this['_updateBalloonPosition']()):this[_0x268b('0x31')]();}[_0x268b('0x31')](){const _0x3dd3c7=this[_0x268b('0x2a')][_0x268b('0x9')]['first'],_0x51dbf6=_0x3dd3c7&&this[_0x268b('0x37')][_0x268b('0x5c')](_0x3dd3c7);if(!_0x51dbf6||!this[_0x268b('0x49')][_0x268b('0x21')](_0x51dbf6))return;const _0x694af7=this[_0x268b('0x49')][_0x268b('0x54')](_0x51dbf6)['element'],_0x50887c=function(){const _0x2c4460=_0x475006[_0x268b('0x1a')];return[_0x2c4460[_0x268b('0x43')],_0x2c4460[_0x268b('0x16')],_0x2c4460[_0x268b('0x51')],_0x2c4460[_0x268b('0x52')],_0x2c4460['southArrowNorthWest'],_0x2c4460[_0x268b('0x1c')]];}();this[_0x268b('0x2a')][_0x268b('0xa')]({'target':_0x694af7,'positions':_0x50887c});}[_0x268b('0x4d')](){const _0x80b541=this['balloonPanelView'],_0x26c3c7=_0x80b541[_0x268b('0x9')][_0x268b('0x5d')];_0x26c3c7&&(this[_0x268b('0x11')](_0x26c3c7),_0x80b541[_0x268b('0x3d')](),_0x80b541[_0x268b('0x9')][_0x268b('0x14')]());}['_attachListeners'](_0x679b84){this[_0x268b('0x18')](_0x679b84,_0x268b('0x27'),()=>this[_0x268b('0x31')]()),this['listenTo'](_0x679b84,'Esc',(_0x38fcdc,_0x52e44c)=>{this['_manuallyClosedAnnotationViews'][_0x268b('0x4e')](_0x679b84),this['_hideBalloon'](),_0x52e44c();});}[_0x268b('0x11')](_0x2d1cb1){this[_0x268b('0x41')](_0x2d1cb1);}}
|
|
23
|
+
const _0x2158=['listenTo','context','set','_setSelectedAnnotations','high','view','refresh','_annotationToNarrowView','refreshPositioning','annotationType','off','requires','southArrowNorthEast','_refreshPositioningDebounced','length','remove','getByView','contains','content','change:height','_refreshPositioning','bodyCollection','create','getSidebarItemView','change:container','_detachListeners','set:container','ready','esc','_editorAnnotations','rearrange','balloonPanelView','low','_showBalloon','first','target','detach','setActiveAnnotation','execute','find','_annotations','isAttached','init','NarrowSidebar','hasDomSelection','editors','_updateBalloonPosition','keyCode','pin','mousedown','_integrateWithEditorAnnotations','_attachListeners','unpin','southArrowNorthWest','delete','addEventListener','_domEmitter','locale','northArrowSouth','clear','activeAnnotation','element','EditorAnnotations','values','preventClosingBalloon','_destroyEditorAnnotationsIntegration','removeEventListener','has','from','stopListening','destroy','add','getOrderedSelectedAnnotations','type','get','includes','_attachToContainer','number','annotations','stop','ck-sidebar--narrow','detachFromDom','focus','narrowsidebar-detach-not-attached','resize','register','_manuallyClosedAnnotationViews','bind','_selectedAnnotations','plugins','focusableElements','blur','keydown','isDirty','attach','isVisible','_hideBalloon'];(function(_0x3ca809,_0x215890){const _0x2c09c9=function(_0x57593d){while(--_0x57593d){_0x3ca809['push'](_0x3ca809['shift']());}};_0x2c09c9(++_0x215890);}(_0x2158,0x163));const _0x2c09=function(_0x3ca809,_0x215890){_0x3ca809=_0x3ca809-0x0;let _0x2c09c9=_0x2158[_0x3ca809];return _0x2c09c9;};import{ContextPlugin as _0x1e1122,Context as _0x5399e4}from'ckeditor5/src/core';import _0x2b334e from'./annotationsuis';import _0x361a7f from'./sidebar';import _0x326e38 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x37c988,BodyCollection as _0x5265ad}from'ckeditor5/src/ui';import{CKEditorError as _0x178521,DomEmitterMixin as _0x1b14f5,keyCodes as _0x28d4bc,Collection as _0x2f0a8b}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x5b8eb3}from'lodash-es';import _0x3c33a6 from'./editorannotations';export default class s extends _0x1e1122{static get[_0x2c09('0x2c')](){return[_0x361a7f,_0x2b334e];}static get['pluginName'](){return _0x2c09('0x4c');}constructor(_0x124282){super(_0x124282),this['isAttached']=!0x1,this[_0x2c09('0x16')]=new Set(),this[_0x2c09('0x59')]=Object[_0x2c09('0x37')](_0x1b14f5),this['_annotationToNarrowView']=new Map(),this[_0x2c09('0x23')](_0x2c09('0x5d'),null),this[_0x2c09('0xe')]=null,this[_0x2c09('0x18')]=[],this[_0x2c09('0x3e')]=new _0x2f0a8b(),this['_refreshPositioningDebounced']=_0x5b8eb3(()=>{this[_0x2c09('0x35')]();},0xfa,{'leading':!0x1});}[_0x2c09('0x4b')](){this[_0x2c09('0x22')][_0x2c09('0x19')][_0x2c09('0xa')](_0x2b334e)[_0x2c09('0x15')]('narrowSidebar',this),this[_0x2c09('0x36')]=new _0x5265ad(this['context'][_0x2c09('0x5a')]),this[_0x2c09('0x40')]=new _0x37c988(this[_0x2c09('0x22')][_0x2c09('0x5a')]),this[_0x2c09('0x36')]['attachToDom'](),this['bodyCollection'][_0x2c09('0x7')](this[_0x2c09('0x40')]);}[_0x2c09('0x1e')](_0x1ecf0b){this[_0x2c09('0xe')]=_0x1ecf0b;const _0x1727ac=this[_0x2c09('0x22')][_0x2c09('0x19')][_0x2c09('0xa')](_0x361a7f),_0x58c019=this[_0x2c09('0x40')];if(_0x1727ac[_0x2c09('0x49')]=_0x1ecf0b,this[_0x2c09('0x4a')])throw new _0x178521('narrowsidebar-attach-already-attached',this);this[_0x2c09('0x4a')]=!0x0,this[_0x2c09('0x21')](_0x1727ac,_0x2c09('0x3b'),()=>{this['detach'](),this['listenTo'](_0x1727ac,_0x2c09('0x39'),_0x338154=>{_0x338154[_0x2c09('0x2b')](),this[_0x2c09('0x1e')](_0x1ecf0b);});}),_0x1727ac[_0x2c09('0xc')]({'viewClass':_0x2c09('0x10'),'spaceBetweenItems':0x5});const _0xc2a731=_0x3dda65=>{const _0x3a0e1f=new _0x326e38(this[_0x2c09('0x22')][_0x2c09('0x5a')]);_0x1727ac['addAnnotation'](_0x3dda65,_0x3a0e1f),this['_annotationToNarrowView']['set'](_0x3dda65,_0x3a0e1f),_0x3a0e1f[_0x2c09('0x17')](_0x2c09('0x1d'),_0x2c09('0x2a'),_0x2c09('0xd'))['to'](_0x3dda65[_0x2c09('0x26')],_0x2c09('0x1d'),_0x2c09('0x9'),_0x2c09('0x2f')),_0x3a0e1f['on'](_0x2c09('0x47'),()=>{this[_0x2c09('0x16')][_0x2c09('0x5c')](),_0x58c019[_0x2c09('0x33')][_0x2c09('0x43')]!==_0x3dda65[_0x2c09('0x26')]?(this[_0x2c09('0x42')](_0x3dda65),_0x3dda65[_0x2c09('0x26')][_0x2c09('0x5e')][_0x2c09('0x12')](),this[_0x2c09('0x46')](_0x3dda65)):this['setActiveAnnotation'](null);});};for(const _0x1c299e of _0x1ecf0b)_0xc2a731(_0x1c299e);this[_0x2c09('0x21')](_0x1ecf0b,_0x2c09('0x7'),(_0xf42abf,_0x5a91a)=>{_0xc2a731(_0x5a91a);}),this[_0x2c09('0x21')](_0x1ecf0b,_0x2c09('0x30'),(_0xb99e77,_0x37343c,_0x275ef9)=>{this[_0x2c09('0x28')][_0x2c09('0xa')](_0x37343c)[_0x2c09('0x6')](),this['_annotationToNarrowView']['delete'](_0x37343c),_0x1727ac[_0x2c09('0x3f')]({'removedAnnotation':_0x37343c,'previousAnnotation':_0x1ecf0b[_0x2c09('0xa')](_0x275ef9-0x1),'nextAnnotation':_0x1ecf0b[_0x2c09('0xa')](_0x275ef9+0x1)}),_0x37343c===this[_0x2c09('0x5d')]&&this[_0x2c09('0x46')](null);},{'priority':_0x2c09('0x41')}),this['listenTo'](_0x1ecf0b,_0x2c09('0x12'),(_0x1ff267,_0x274e72)=>{this[_0x2c09('0x46')](_0x274e72);}),this[_0x2c09('0x21')](_0x1ecf0b,'blur',()=>{this[_0x2c09('0x46')](null);}),this[_0x2c09('0x59')]['listenTo'](document,_0x2c09('0x1c'),(_0x2e33df,_0x1aebda)=>{_0x1aebda[_0x2c09('0x50')]===_0x28d4bc[_0x2c09('0x3d')]&&_0x58c019[_0x2c09('0x1f')]&&(this['_manuallyClosedAnnotationViews']['add'](_0x58c019[_0x2c09('0x33')][_0x2c09('0x43')]),this[_0x2c09('0x20')](),_0x1aebda['stopPropagation'](),_0x1aebda['preventDefault']());}),this[_0x2c09('0x59')][_0x2c09('0x21')](document,_0x2c09('0x52'),(_0x3d78e1,_0x25ceb3)=>{const _0x425e94=_0x25ceb3[_0x2c09('0x44')];_0x58c019[_0x2c09('0x1f')]&&_0x58c019[_0x2c09('0x5e')]['contains'](_0x425e94)||_0x1727ac[_0x2c09('0x26')][_0x2c09('0x5e')][_0x2c09('0x32')](_0x425e94)||_0x3d78e1['preventClosingBalloon']||this[_0x2c09('0x5d')]&&this[_0x2c09('0x5d')][_0x2c09('0x1a')][_0x2c09('0x48')](_0xffdb32=>_0xffdb32[_0x2c09('0x32')](_0x425e94))||(this[_0x2c09('0x16')][_0x2c09('0x5c')](),this[_0x2c09('0x20')](),this[_0x2c09('0x46')](null));});const _0x2dba46=this[_0x2c09('0x22')]instanceof _0x5399e4?this[_0x2c09('0x22')]['editors']:new _0x2f0a8b([this[_0x2c09('0x22')]]);for(const _0x1cfc1e of _0x2dba46)this[_0x2c09('0x53')](_0x1cfc1e);this[_0x2c09('0x21')](_0x2dba46,_0x2c09('0x7'),(_0x487fff,_0x3db0d9)=>{this[_0x2c09('0x21')](_0x3db0d9,_0x2c09('0x3c'),()=>{this[_0x2c09('0x53')](_0x3db0d9);});}),this[_0x2c09('0x21')](_0x2dba46,_0x2c09('0x30'),(_0x430111,_0x17fd87)=>{_0x17fd87[_0x2c09('0x19')][_0x2c09('0x3')](_0x2c09('0x5f'))&&this['_destroyEditorAnnotationsIntegration'](_0x17fd87[_0x2c09('0x19')][_0x2c09('0xa')](_0x2c09('0x5f')));}),window[_0x2c09('0x58')](_0x2c09('0x14'),this['_refreshPositioningDebounced']),this[_0x2c09('0x35')]();}[_0x2c09('0x46')](_0x4cced0){if(_0x4cced0===this['activeAnnotation'])return;const _0x479233=this[_0x2c09('0x22')][_0x2c09('0x19')][_0x2c09('0xa')](_0x361a7f);if(_0x479233[_0x2c09('0x27')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4cced0,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4cced0)_0x479233[_0x2c09('0x38')](_0x4cced0)?this['_showBalloon'](_0x4cced0):this['_hideBalloon']();else this[_0x2c09('0x20')]();this[_0x2c09('0x5d')]=_0x4cced0;}[_0x2c09('0x45')](){if(!this['isAttached'])throw new _0x178521(_0x2c09('0x13'),this);this[_0x2c09('0x46')](null);const _0x5b4201=this['context'][_0x2c09('0x19')][_0x2c09('0xa')](_0x361a7f);this[_0x2c09('0x20')](),Array[_0x2c09('0x4')](this[_0x2c09('0x28')][_0x2c09('0x60')](),_0x14ff0c=>_0x14ff0c[_0x2c09('0x6')]()),this['_annotationToNarrowView'][_0x2c09('0x5c')](),_0x5b4201['_detachFromContainer'](this['annotations']),this[_0x2c09('0x5')](),this[_0x2c09('0x59')][_0x2c09('0x5')](),this[_0x2c09('0x22')]instanceof _0x5399e4&&this[_0x2c09('0x5')](this[_0x2c09('0x22')][_0x2c09('0x4e')]);for(const _0x5e0a4d of Array[_0x2c09('0x4')](this[_0x2c09('0x3e')]))this[_0x2c09('0x1')](_0x5e0a4d);window[_0x2c09('0x2')](_0x2c09('0x14'),this[_0x2c09('0x2e')]),this[_0x2c09('0x2e')]['cancel'](),this[_0x2c09('0x18')]=[],this[_0x2c09('0x4a')]=!0x1,this[_0x2c09('0xe')]=null;}[_0x2c09('0x6')](){this[_0x2c09('0x4a')]&&this[_0x2c09('0x45')](),this[_0x2c09('0x36')][_0x2c09('0x11')]();}[_0x2c09('0x53')](_0x3cc88){const _0x128e00=_0x3cc88[_0x2c09('0x19')][_0x2c09('0xa')](_0x3c33a6),_0x24d94e=this[_0x2c09('0x22')][_0x2c09('0x19')]['get'](_0x361a7f),_0x5ce962=this[_0x2c09('0xe')],_0x3dd83b=this[_0x2c09('0x40')],_0x1ac5f4=()=>{const _0x239f31=_0x128e00[_0x2c09('0x8')]({'annotations':this['annotations'],'activeAnnotation':this[_0x2c09('0x5d')]});this['_setSelectedAnnotations'](_0x239f31),this['setActiveAnnotation'](_0x239f31[0x0]||null);};this[_0x2c09('0x21')](_0x128e00,_0x2c09('0x27'),_0x1ac5f4),this[_0x2c09('0x21')](_0x128e00,_0x2c09('0x1b'),(_0x647157,{isAnnotationTracked:_0x1315be})=>{this[_0x2c09('0x5d')]&&_0x1315be(this['activeAnnotation'])&&(this[_0x2c09('0x24')]([]),this[_0x2c09('0x46')](null));}),this[_0x2c09('0x21')](_0x128e00,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x2c09('0x21')](_0x5ce962,_0x2c09('0x1b'),_0x5db006=>{_0x128e00[_0x2c09('0x4d')]()&&_0x5db006[_0x2c09('0xf')]();},{'priority':_0x2c09('0x25')}),this['listenTo'](this[_0x2c09('0x59')],'mousedown',(_0x1ac87e,_0x2dcc4a)=>{const _0x3912f2=_0x2dcc4a[_0x2c09('0x44')];_0x3dd83b['isVisible']&&_0x3dd83b[_0x2c09('0x5e')][_0x2c09('0x32')](_0x3912f2)||_0x24d94e[_0x2c09('0x26')]['element'][_0x2c09('0x32')](_0x3912f2)||this['activeAnnotation']&&_0x128e00[_0x2c09('0x4d')]()&&(_0x1ac5f4(),_0x1ac87e[_0x2c09('0x0')]=!0x0);},{'priority':_0x2c09('0x25')}),this[_0x2c09('0x3e')]['add'](_0x128e00);}[_0x2c09('0x1')](_0x460dd1){_0x460dd1&&(this[_0x2c09('0x5')](_0x460dd1),this[_0x2c09('0x3e')][_0x2c09('0x30')](_0x460dd1));}[_0x2c09('0x24')](_0x3e8387){for(const _0x4828e4 of this[_0x2c09('0x18')])_0x3e8387[_0x2c09('0xb')](_0x4828e4)||this[_0x2c09('0x16')][_0x2c09('0x57')](_0x4828e4[_0x2c09('0x26')]);this[_0x2c09('0x18')]=_0x3e8387;}[_0x2c09('0x35')](){const _0x598ca3=this['balloonPanelView'];this[_0x2c09('0xe')][_0x2c09('0x29')](),_0x598ca3[_0x2c09('0x1f')]&&this[_0x2c09('0x4f')]();}[_0x2c09('0x42')](_0x28c720){if(this[_0x2c09('0x16')][_0x2c09('0x3')](_0x28c720[_0x2c09('0x26')]))return;const _0x4d17d2=this[_0x2c09('0x40')]['content'][_0x2c09('0x43')];_0x4d17d2!==_0x28c720[_0x2c09('0x26')]?(_0x4d17d2&&this[_0x2c09('0x3a')](_0x4d17d2),this['_attachListeners'](_0x28c720[_0x2c09('0x26')]),this[_0x2c09('0x40')][_0x2c09('0x33')]['clear'](),this[_0x2c09('0x40')][_0x2c09('0x33')][_0x2c09('0x7')](_0x28c720['view']),this[_0x2c09('0x4f')]()):this[_0x2c09('0x4f')]();}[_0x2c09('0x4f')](){const _0x2a309a=this['balloonPanelView'][_0x2c09('0x33')][_0x2c09('0x43')],_0x535600=_0x2a309a&&this[_0x2c09('0xe')][_0x2c09('0x31')](_0x2a309a);if(!_0x535600||!this['_annotationToNarrowView'][_0x2c09('0x3')](_0x535600))return;const _0x488ac8=this[_0x2c09('0x28')][_0x2c09('0xa')](_0x535600)[_0x2c09('0x5e')],_0x5c9e4e=function(){const _0x430156=_0x37c988['defaultPositions'];return[_0x430156[_0x2c09('0x2d')],_0x430156['northArrowSouthEast'],_0x430156['southArrowNorth'],_0x430156[_0x2c09('0x5b')],_0x430156[_0x2c09('0x56')],_0x430156['northArrowSouthWest']];}();this['balloonPanelView'][_0x2c09('0x51')]({'target':_0x488ac8,'positions':_0x5c9e4e});}[_0x2c09('0x20')](){const _0x47c731=this[_0x2c09('0x40')],_0x37a3b7=_0x47c731[_0x2c09('0x33')][_0x2c09('0x43')];_0x37a3b7&&(this[_0x2c09('0x3a')](_0x37a3b7),_0x47c731[_0x2c09('0x55')](),_0x47c731['content'][_0x2c09('0x5c')]());}[_0x2c09('0x54')](_0x5aac5a){this[_0x2c09('0x21')](_0x5aac5a,_0x2c09('0x34'),()=>this[_0x2c09('0x4f')]()),this[_0x2c09('0x21')](_0x5aac5a,'Esc',(_0x48c590,_0x388976)=>{this[_0x2c09('0x16')][_0x2c09('0x7')](_0x5aac5a),this[_0x2c09('0x20')](),_0x388976();});}[_0x2c09('0x3a')](_0xa27e41){this['stopListening'](_0xa27e41);}}
|