@ckeditor/ckeditor5-comments 0.0.0-nightly-20231206.0 → 0.0.0-nightly-20231208.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 +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.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": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20231208.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": "0.0.0-nightly-
|
|
47
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
46
|
+
"ckeditor5": "0.0.0-nightly-20231208.0",
|
|
47
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231208.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 _0x4ea5=['function','_target','innerView','getClientRects','render','item','target','_getNormalizedTarget','targetRect','isActive','mainView','_assertCorrectTarget','element','isVisible','nodeType','add','type','stopListening','refreshVisibility','_type','length','offsetParent','_id','annotation-invalid-target','focusTracker','focusableElements','isArray','view'];(function(_0x7c6575,_0x4ea535){const _0x207dd6=function(_0x54fab2){while(--_0x54fab2){_0x7c6575['push'](_0x7c6575['shift']());}};_0x207dd6(++_0x4ea535);}(_0x4ea5,0x84));const _0x207d=function(_0x7c6575,_0x4ea535){_0x7c6575=_0x7c6575-0x0;let _0x207dd6=_0x4ea5[_0x7c6575];return _0x207dd6;};import{CKEditorError as _0x2a6541,Rect as _0xf2d3fd,Collection as _0x25d6f7,ObservableMixin as _0x84e879}from'ckeditor5/src/utils';export default class d extends _0x84e879(){constructor({view:_0x156811,target:_0x3bdf40,type:_0xa72538,isVisible:_0xd9f11c=!0x0}){super(),this[_0x207d('0x7')]=_0x156811,this[_0x207d('0x7')]['element']||this[_0x207d('0x7')][_0x207d('0xc')](),this['_type']=_0xa72538,this['_target']=_0x3bdf40,d['_assertCorrectTarget'](this[_0x207d('0xf')]()),this['focusableElements']=new _0x25d6f7([this['view'][_0x207d('0x14')]],{'idProperty':_0x207d('0x2')}),this['focusableElements']['on'](_0x207d('0x17'),(_0x31082c,_0x45055a)=>{this[_0x207d('0x7')][_0x207d('0x4')][_0x207d('0x17')](_0x45055a);}),this[_0x207d('0x5')]['on']('remove',(_0x17f4a4,_0x1e8db7)=>{this[_0x207d('0x7')]['focusTracker']['remove'](_0x1e8db7);}),this['set'](_0x207d('0x15'),_0xd9f11c);}get[_0x207d('0x18')](){return'function'==typeof this['_type']?this[_0x207d('0x1b')]():this[_0x207d('0x1b')];}get[_0x207d('0xa')](){return this['view'][_0x207d('0x12')];}get[_0x207d('0xe')](){const _0x101c48=this['_getNormalizedTarget']();return d[_0x207d('0x13')](_0x101c48),_0x101c48;}get['targetRect'](){const _0x33c16c=this[_0x207d('0xe')];if(null===_0x33c16c)return null;if(_0x33c16c instanceof _0xf2d3fd)return _0x33c16c;const _0x2dc66d=_0x33c16c['filter'](_0x5d54ea=>function(_0x14da21){const _0x9f9a21=_0x14da21[_0x207d('0x1')];if(_0x9f9a21)return!0x0;const _0x588cd3=_0x14da21[_0x207d('0xb')]()['item'](0x0);return!!_0x588cd3;}(_0x5d54ea));return 0x0===_0x2dc66d[_0x207d('0x0')]?null:new _0xf2d3fd(_0x2dc66d[0x0][_0x207d('0xb')]()[_0x207d('0xd')](0x0));}get[_0x207d('0x11')](){return this[_0x207d('0x7')]['isActive'];}set[_0x207d('0x11')](_0x221df3){this[_0x207d('0x7')]['isActive']=_0x221df3,this[_0x207d('0x7')]['mainView'][_0x207d('0x11')]=_0x221df3;}['updateTargetRect'](){this[_0x207d('0x7')]['targetRect']=this[_0x207d('0x10')];}['destroy'](){this[_0x207d('0x5')][_0x207d('0x19')](),this['focusableElements']['clear'](),this['stopListening']();}[_0x207d('0x1a')](){this[_0x207d('0x15')]=!!this[_0x207d('0x10')];}static[_0x207d('0x13')](_0x4ee644){if(!(null===_0x4ee644||_0x4ee644 instanceof _0xf2d3fd||Array[_0x207d('0x6')](_0x4ee644)&&_0x4ee644['every'](_0x1707cf=>y(_0x1707cf))))throw new _0x2a6541(_0x207d('0x3'),null,{'target':_0x4ee644});}[_0x207d('0xf')](){const _0x2d0423=_0x207d('0x8')==typeof this['_target']?this[_0x207d('0x9')]():this[_0x207d('0x9')];return y(_0x2d0423)?[_0x2d0423]:_0x2d0423;}}function y(_0xaaa8e4){return null!==_0xaaa8e4&&'object'==typeof _0xaaa8e4&&_0x207d('0x16')in _0xaaa8e4&&0x1===_0xaaa8e4['nodeType'];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59d9=['change:isFocused','remove','destroy','stopListening','_viewToAnnotation','listenTo','delete','innerView','sort','set','length','has','from','get','focusTracker','_sort','add','annotationcollection-duplicated-item','getByView','getIndex','focus','updateTargetRect','_focusTracker','isFocused','view','focusableElements','top','left','_getOrderInContent','_innerViewToAnnotation','clear','fire','targetRect'];(function(_0xf0a3cb,_0x59d9ba){const _0xaadc71=function(_0x5dfcfb){while(--_0x5dfcfb){_0xf0a3cb['push'](_0xf0a3cb['shift']());}};_0xaadc71(++_0x59d9ba);}(_0x59d9,0xa3));const _0xaadc=function(_0xf0a3cb,_0x59d9ba){_0xf0a3cb=_0xf0a3cb-0x0;let _0xaadc71=_0x59d9[_0xf0a3cb];return _0xaadc71;};import{CKEditorError as _0x19657a,Collection as _0x456172,FocusTracker as _0x18e597}from'ckeditor5/src/utils';export default class x extends _0x456172{constructor(_0x2b4751=[]){super(),this[_0xaadc('0x1f')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0xaadc('0x18')]=new _0x18e597(),this[_0xaadc('0x18')]['on'](_0xaadc('0x2'),(_0x1ac030,_0x2cc73e,_0x38107d)=>{_0x38107d||this['fire']('blur');});for(const _0x5d0641 of _0x2b4751)this['add'](_0x5d0641);}get[_0xaadc('0x19')](){return this[_0xaadc('0x18')]['isFocused'];}[_0xaadc('0x12')](_0x371b6b){if(this[_0xaadc('0xd')](_0x371b6b))throw new _0x19657a(_0xaadc('0x13'),null);this[_0xaadc('0x1f')][_0xaadc('0xb')](_0x371b6b[_0xaadc('0x9')],_0x371b6b),this[_0xaadc('0x6')][_0xaadc('0xb')](_0x371b6b[_0xaadc('0x1a')],_0x371b6b);for(const _0x475c22 of _0x371b6b[_0xaadc('0x1b')])this[_0xaadc('0x18')]['add'](_0x475c22);this[_0xaadc('0x7')](_0x371b6b[_0xaadc('0x1b')],_0xaadc('0x12'),(_0x1b9ecd,_0x17d5c3)=>{this['_focusTracker'][_0xaadc('0x12')](_0x17d5c3);}),this[_0xaadc('0x7')](_0x371b6b['focusableElements'],_0xaadc('0x3'),(_0x20a244,_0x487631)=>{this[_0xaadc('0x18')][_0xaadc('0x3')](_0x487631);}),this[_0xaadc('0x7')](_0x371b6b['view'][_0xaadc('0x10')],_0xaadc('0x2'),(_0x36d5a1,_0x46f312,_0x5b1636)=>{_0x5b1636&&this[_0xaadc('0x0')](_0xaadc('0x16'),_0x371b6b);}),_0x371b6b[_0xaadc('0x17')]();const _0x5b34c5=this[_0xaadc('0x1e')](_0x371b6b['view']['targetRect']);return super[_0xaadc('0x12')](_0x371b6b,_0x5b34c5);}[_0xaadc('0x3')](_0x14c520){if(!this['has'](_0x14c520))throw new _0x19657a('annotationcollection-not-existing-item',null);this['stopListening'](_0x14c520[_0xaadc('0x1a')]['focusTracker']),this[_0xaadc('0x5')](_0x14c520['focusableElements']);for(const _0x5ec6ad of _0x14c520[_0xaadc('0x1b')])this[_0xaadc('0x18')][_0xaadc('0x3')](_0x5ec6ad);return this['_viewToAnnotation'][_0xaadc('0x8')](_0x14c520[_0xaadc('0x1a')]),this[_0xaadc('0x1f')][_0xaadc('0x8')](_0x14c520['innerView']),super['remove'](_0x14c520);}['getByInnerView'](_0x519e2b){return this[_0xaadc('0x1f')][_0xaadc('0xf')](_0x519e2b);}[_0xaadc('0x14')](_0x2cc176){return this[_0xaadc('0x6')][_0xaadc('0xf')](_0x2cc176);}[_0xaadc('0x4')](){super[_0xaadc('0x20')](),this[_0xaadc('0x5')](),this[_0xaadc('0x1f')][_0xaadc('0x20')](),this[_0xaadc('0x6')]['clear'](),this[_0xaadc('0x18')][_0xaadc('0x4')]();}['refreshPositioning'](){for(const _0x2dcb42 of this)_0x2dcb42['updateTargetRect']();this[_0xaadc('0x11')]();}['_sort'](){const _0x16ea7f=Array[_0xaadc('0xe')](this)[_0xaadc('0xa')]((_0x582822,_0x5b5917)=>v(_0x582822['view'][_0xaadc('0x1')],_0x5b5917[_0xaadc('0x1a')]['targetRect']));for(let _0x5158d5=_0x16ea7f[_0xaadc('0xc')]-0x1;_0x5158d5>0x0;_0x5158d5--){const _0x27013a=_0x16ea7f[_0x5158d5];_0x5158d5!==this[_0xaadc('0x15')](_0x27013a)&&(this[_0xaadc('0x3')](_0x27013a),this[_0xaadc('0x12')](_0x27013a));}}[_0xaadc('0x1e')](_0x2ae518){let _0xd172df=0x0;if(!_0x2ae518)return this[_0xaadc('0xc')];for(const _0x5d3a78 of this){const _0x465e24=_0x5d3a78[_0xaadc('0x1a')][_0xaadc('0x1')];if(_0x465e24){if(v(_0x2ae518,_0x465e24)<0x0)return _0xd172df;_0xd172df++;}}return _0xd172df;}}export function bindAnnotationCollections({source:_0x3bb8d4,target:_0x3ea0de,filter:_0x3ebfb2}){for(const _0x2216c9 of _0x3bb8d4)_0x3ebfb2(_0x2216c9)&&_0x3ea0de[_0xaadc('0x12')](_0x2216c9);_0x3ea0de[_0xaadc('0x7')](_0x3bb8d4,'add',(_0x103118,_0x2a6060)=>{_0x3ebfb2(_0x2a6060)&&_0x3ea0de[_0xaadc('0x12')](_0x2a6060);}),_0x3ea0de['listenTo'](_0x3bb8d4,_0xaadc('0x3'),(_0x1ab31f,_0x287ed4)=>{_0x3ea0de[_0xaadc('0xd')](_0x287ed4)&&_0x3ea0de[_0xaadc('0x3')](_0x287ed4);});}function v(_0x445160,_0x4caea6){if(null===_0x445160&&null===_0x4caea6)return 0x0;if(null===_0x445160)return-0x1;if(null===_0x4caea6)return 0x1;const _0x520649=_0x445160[_0xaadc('0x1c')]-_0x4caea6[_0xaadc('0x1c')];return 0x0==_0x520649?_0x445160[_0xaadc('0x1d')]-_0x4caea6[_0xaadc('0x1d')]:_0x520649;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c6c=['pluginName','focusTracker','add','_visibleAnnotations','createAnnotation','fire','getByInnerView','isVisible','_bindAnnotationsToVisibleAnnotations','source','collection','activate','delete','set','_deactivateAllAnnotations','element','refreshVisibility','Annotations','change:isVisible','_addActiveAnnotation','view','has','remove','destroy','deactivateAll','refreshPositioning','_removeActiveAnnotation','activeAnnotations','listenTo'];(function(_0x3f1f68,_0x5c6caf){const _0x290336=function(_0x43c1d6){while(--_0x43c1d6){_0x3f1f68['push'](_0x3f1f68['shift']());}};_0x290336(++_0x5c6caf);}(_0x5c6c,0x16d));const _0x2903=function(_0x3f1f68,_0x5c6caf){_0x3f1f68=_0x3f1f68-0x0;let _0x290336=_0x5c6c[_0x3f1f68];return _0x290336;};import{ContextPlugin as _0x1854c8}from'ckeditor5/src/core';import _0x26cfaf from'./annotation';import _0x14db80 from'./annotationcollection';import _0x1a5648 from'./view/annotationview';export default class b extends _0x1854c8{static get[_0x2903('0xc')](){return _0x2903('0x0');}constructor(_0x3b85d5){super(_0x3b85d5),this[_0x2903('0x16')]=new _0x14db80(),this['_visibleAnnotations']=new _0x14db80(),this[_0x2903('0x19')](_0x2903('0xa'),new Set()),this[_0x2903('0x14')]();}[_0x2903('0xe')](_0x26b81d){this['collection']['add'](_0x26b81d);}[_0x2903('0x5')](_0x4bc1eb){this[_0x2903('0x16')]['remove'](_0x4bc1eb),_0x4bc1eb['destroy']();}[_0x2903('0x1c')](){for(const _0x385856 of this[_0x2903('0x16')])_0x385856[_0x2903('0x1c')]();}[_0x2903('0x8')](){this[_0x2903('0xf')][_0x2903('0x8')]();}['getByInnerView'](_0x26ed32){return this[_0x2903('0x16')][_0x2903('0x12')](_0x26ed32);}[_0x2903('0x7')](){this['fire'](_0x2903('0x1a'));}[_0x2903('0x6')](){for(const _0x4021bc of this[_0x2903('0x16')])_0x4021bc['destroy']();this[_0x2903('0xf')][_0x2903('0x6')](),this['collection'][_0x2903('0x6')](),super['destroy']();}[_0x2903('0x17')](_0x72ae36){this[_0x2903('0x11')]('_activateAnnotation',_0x72ae36);}[_0x2903('0x10')](_0x1d4865){return new _0x26cfaf(_0x1d4865);}['createAnnotationView'](_0x3fa36b,_0x5af52c){return new _0x1a5648(_0x3fa36b,_0x5af52c);}[_0x2903('0x2')](_0x1adc58){const _0x8c2e9c=new Set(this[_0x2903('0xa')]);_0x8c2e9c['add'](_0x1adc58),this[_0x2903('0xa')]=_0x8c2e9c;}[_0x2903('0x9')](_0x29189f){const _0x5c3480=new Set(this[_0x2903('0xa')]);_0x5c3480[_0x2903('0x18')](_0x29189f),this[_0x2903('0xa')]=_0x5c3480;}['_bindAnnotationsToVisibleAnnotations'](){const _0x101f3d=this[_0x2903('0x16')],_0x182c06=this['_visibleAnnotations'];function _0x52bf67(_0x20fdba){const _0x5b5088=_0x20fdba[_0x2903('0x15')];_0x5b5088[_0x2903('0x13')]&&!_0x182c06[_0x2903('0x4')](_0x5b5088)?_0x182c06[_0x2903('0xe')](_0x5b5088):!_0x5b5088['isVisible']&&_0x182c06[_0x2903('0x4')](_0x5b5088)&&_0x182c06[_0x2903('0x5')](_0x5b5088),_0x5b5088[_0x2903('0x3')][_0x2903('0xd')][_0x2903('0x5')](_0x5b5088[_0x2903('0x3')][_0x2903('0x1b')]),_0x5b5088[_0x2903('0x3')][_0x2903('0xd')][_0x2903('0xe')](_0x5b5088['view'][_0x2903('0x1b')]);}this[_0x2903('0xb')](_0x101f3d,'add',(_0x59d227,_0x367841)=>{_0x367841[_0x2903('0x13')]&&_0x182c06[_0x2903('0xe')](_0x367841),this[_0x2903('0xb')](_0x367841,_0x2903('0x1'),_0x52bf67);}),this[_0x2903('0xb')](_0x101f3d,_0x2903('0x5'),(_0x3a4e12,_0x11bd9a)=>{_0x182c06['has'](_0x11bd9a)&&_0x182c06[_0x2903('0x5')](_0x11bd9a),this['stopListening'](_0x11bd9a,_0x2903('0x1'),_0x52bf67);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d26=['function','_setSelectedAnnotations','annotationsuis-register-already-registered','switchTo','plugins','isActive','activate','type','deactivate','annotationsuis-missing-ui','init','annotationsuis-register-invalid-interface','listenTo','AnnotationsUIs','activeUIs','find','hasActive','_addActiveAnnotation','_uisData','size','refilterAnnotations','_removeActiveAnnotation','deactivateAll','set','_visibleAnnotations','attach','_activateAnnotation','detach','filter','register','get','push','pluginName','_assertAnnotationDoesNotBelongToMultipleUIs','from','context','add','collection','requires','has','_uis','destroy','setActiveAnnotation','length','activeAnnotations'];(function(_0x59745c,_0x3d2624){const _0x466dfc=function(_0x3f0679){while(--_0x3f0679){_0x59745c['push'](_0x59745c['shift']());}};_0x466dfc(++_0x3d2624);}(_0x3d26,0x1dc));const _0x466d=function(_0x59745c,_0x3d2624){_0x59745c=_0x59745c-0x0;let _0x466dfc=_0x3d26[_0x59745c];return _0x466dfc;};import{ContextPlugin as _0x2956f8}from'ckeditor5/src/core';import{CKEditorError as _0x50996b}from'ckeditor5/src/utils';import _0x21db00,{bindAnnotationCollections as _0x455a4c}from'./annotationcollection';import _0x450024 from'./annotations';export default class M extends _0x2956f8{static get[_0x466d('0xc')](){return[_0x450024];}static get[_0x466d('0x6')](){return _0x466d('0x20');}constructor(_0x343a2d){super(_0x343a2d),this['activeUIs']=new Set(),this[_0x466d('0xe')]=new Map(),this[_0x466d('0x25')]=new Map();}[_0x466d('0x1d')](){const _0x1c03f5=this[_0x466d('0x9')][_0x466d('0x17')][_0x466d('0x4')](_0x450024);this[_0x466d('0x1f')](_0x1c03f5,_0x466d('0x0'),(_0x7a08d5,_0x2deaed)=>{for(const _0xa61d45 of this['activeUIs']){const _0x302f16=this[_0x466d('0xe')][_0x466d('0x4')](_0xa61d45);(0x0,this[_0x466d('0x25')][_0x466d('0x4')](_0xa61d45)['filter'])(_0x2deaed)&&_0x302f16[_0x466d('0x10')](_0x2deaed);}}),this[_0x466d('0x1f')](_0x1c03f5,'_deactivateAllAnnotations',()=>{for(const _0x55ecbb of this[_0x466d('0x21')]){this[_0x466d('0xe')][_0x466d('0x4')](_0x55ecbb)[_0x466d('0x10')](null);}}),this[_0x466d('0x1f')](_0x1c03f5[_0x466d('0x2b')],_0x466d('0xa'),(_0xd55e5c,_0x330a2f)=>{this[_0x466d('0x7')](_0x330a2f);});}[_0x466d('0x23')](){return this[_0x466d('0x21')][_0x466d('0x26')]>0x0;}[_0x466d('0x18')](_0x18de3f){return this[_0x466d('0x21')][_0x466d('0xd')](_0x18de3f);}[_0x466d('0x19')](_0x201f96,_0x3c70a0=()=>!0x0){const _0x4fdca1=this[_0x466d('0x9')][_0x466d('0x17')]['get'](_0x450024);if(!this['_uis'][_0x466d('0xd')](_0x201f96))throw new _0x50996b(_0x466d('0x1c'),this,{'uiName':_0x201f96});this['isActive'](_0x201f96)&&this[_0x466d('0x1b')](_0x201f96),this[_0x466d('0x21')]['add'](_0x201f96);const _0x323778=new _0x21db00(),_0x2dc308=_0x4fdca1[_0x466d('0x2b')];_0x455a4c({'source':_0x2dc308,'target':_0x323778,'filter':_0x3c70a0}),this[_0x466d('0x25')]['set'](_0x201f96,{'collection':_0x323778,'filter':_0x3c70a0});const _0x293f85=this[_0x466d('0xe')][_0x466d('0x4')](_0x201f96);_0x293f85[_0x466d('0x2c')](_0x323778),this[_0x466d('0x1f')](_0x293f85,'change:activeAnnotation',(_0x3d3cc6,_0x5d79a5,_0x226057,_0xc906d6)=>{_0xc906d6&&_0x4fdca1[_0x466d('0x28')](_0xc906d6),_0x226057&&_0x4fdca1[_0x466d('0x24')](_0x226057);});}[_0x466d('0x1b')](_0xa1215){if(this[_0x466d('0x21')]['delete'](_0xa1215),!this[_0x466d('0xe')][_0x466d('0xd')](_0xa1215))throw new _0x50996b(_0x466d('0x1c'),this,{'uiName':_0xa1215});const _0x56aec4=this[_0x466d('0xe')][_0x466d('0x4')](_0xa1215);_0x56aec4[_0x466d('0x1')](),this['stopListening'](_0x56aec4),this[_0x466d('0x25')]['get'](_0xa1215)['collection'][_0x466d('0xf')](),this[_0x466d('0x25')]['delete'](_0xa1215);}[_0x466d('0x16')](_0x3eb6d0){if(!this[_0x466d('0xe')]['has'](_0x3eb6d0))throw new _0x50996b(_0x466d('0x1c'),this,{'uiName':_0x3eb6d0});const _0xf3ea12=this['context'][_0x466d('0x17')][_0x466d('0x4')](_0x450024),_0x25172f=Array['from'](_0xf3ea12[_0x466d('0x12')])[0x0]||null;this[_0x466d('0x29')](),this[_0x466d('0x19')](_0x3eb6d0);const _0x547b23=this[_0x466d('0xe')]['get'](_0x3eb6d0);_0x547b23[_0x466d('0x10')](_0x25172f),_0x547b23[_0x466d('0x14')]&&_0x25172f&&_0x547b23[_0x466d('0x14')]([_0x25172f]);}[_0x466d('0x29')](){for(const _0x45cb0c of this[_0x466d('0x21')])this[_0x466d('0x1b')](_0x45cb0c);}[_0x466d('0x3')](_0x5461f2,_0x5d9bfb){if(this[_0x466d('0xe')][_0x466d('0xd')](_0x5461f2))throw new _0x50996b(_0x466d('0x15'));if(_0x466d('0x13')!=typeof _0x5d9bfb[_0x466d('0x2c')]||_0x466d('0x13')!=typeof _0x5d9bfb[_0x466d('0x1')]||_0x466d('0x13')!=typeof _0x5d9bfb[_0x466d('0x10')])throw new _0x50996b(_0x466d('0x1e'),null);this[_0x466d('0xe')][_0x466d('0x2a')](_0x5461f2,_0x5d9bfb);}[_0x466d('0x27')](){const _0x418c3a=this[_0x466d('0x9')]['plugins'][_0x466d('0x4')](_0x450024)[_0x466d('0xb')],_0x1480af=new Map(),_0x8948a7=Array[_0x466d('0x8')](this[_0x466d('0x21')]);for(const _0x3ca287 of this[_0x466d('0x21')]){const _0x260b55=this[_0x466d('0x25')]['get'](_0x3ca287)['collection'];for(const _0x2280e6 of _0x260b55)_0x1480af['set'](_0x2280e6,_0x3ca287);}for(const _0x26bf3b of _0x418c3a){const _0x39e3f6=_0x1480af[_0x466d('0x4')](_0x26bf3b);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x26bf3b);const _0x553036=_0x8948a7[_0x466d('0x22')](_0x515170=>this[_0x466d('0x25')][_0x466d('0x4')](_0x515170)['filter'](_0x26bf3b));_0x39e3f6!==_0x553036&&(_0x39e3f6&&this['_uisData'][_0x466d('0x4')](_0x39e3f6)[_0x466d('0xb')]['remove'](_0x26bf3b),_0x553036&&this[_0x466d('0x25')][_0x466d('0x4')](_0x553036)[_0x466d('0xb')]['add'](_0x26bf3b));}}[_0x466d('0xf')](){this[_0x466d('0x29')](),super[_0x466d('0xf')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xe65716){const _0x416900=[];for(const _0x908642 of this['activeUIs']){(0x0,this[_0x466d('0x25')]['get'](_0x908642)[_0x466d('0x2')])(_0xe65716)&&_0x416900[_0x466d('0x5')](_0x908642);}if(_0x416900[_0x466d('0x11')]>0x1)throw new _0x50996b('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x416900,'annotationType':_0xe65716[_0x466d('0x1a')]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f48=['getRanges','model','set','EditorAnnotations','registerAnnotation','refreshSelectedViews','uiUpdate','change:isFocused','update','_editorAnnotations','addSourceCollector','collection','_dataCollectors','view','get','annotation','from','push','remove','document','change:range','cancel','range','selection','function','editing','_editorAnnotationsData','element','fire','requires','getByInnerView','innerView','directChange','add','editor','has','pluginName','refresh','map','listenTo','focusTracker','containsRange','blur','init','getOrderedSelectedAnnotations','sort','hasDomSelection'];(function(_0x52374b,_0x2f4867){const _0x4912c0=function(_0x3f2581){while(--_0x3f2581){_0x52374b['push'](_0x52374b['shift']());}};_0x4912c0(++_0x2f4867);}(_0x2f48,0x1bd));const _0x4912=function(_0x52374b,_0x2f4867){_0x52374b=_0x52374b-0x0;let _0x4912c0=_0x2f48[_0x52374b];return _0x4912c0;};import{Plugin as _0x488fc4}from'ckeditor5/src/core';import{CKEditorError as _0x5b1c24}from'ckeditor5/src/utils';import{debounce as _0x218ffe}from'lodash-es';import _0x3f404a from'./annotations';export default class k extends _0x488fc4{static get[_0x4912('0x7')](){return[_0x3f404a];}static get[_0x4912('0xe')](){return _0x4912('0x1c');}constructor(_0x459a68){super(_0x459a68),this[_0x4912('0x25')]=new Set(),this[_0x4912('0x22')]=new Set();}[_0x4912('0x15')](){const _0x26e24a=this[_0x4912('0xc')],_0x156133=_0x26e24a[_0x4912('0x1a')]['document'][_0x4912('0x1')],_0xd1ee70=_0x218ffe(()=>this[_0x4912('0x1e')](),0xa);_0x156133['on'](_0x4912('0x2d'),(_0x5b077a,_0x4f9018)=>{_0x4f9018[_0x4912('0xa')]&&(_0xd1ee70[_0x4912('0x2e')](),this['refreshSelectedViews']());}),this[_0x4912('0x11')](_0x26e24a[_0x4912('0x3')][_0x4912('0x26')]['document'],_0x4912('0x20'),(_0x53eea3,_0x51e40d,_0x4b895d)=>{_0x4b895d&&_0xd1ee70();}),this[_0x4912('0x11')](_0x26e24a['ui'][_0x4912('0x12')],_0x4912('0x20'),(_0x494e7f,_0x40ff49,_0x564cf1)=>{_0x564cf1||_0x26e24a['isReadOnly']||this[_0x4912('0x6')](_0x4912('0x14'),{'isAnnotationTracked':_0x521c28=>this[_0x4912('0x4')][_0x4912('0xd')](_0x521c28[_0x4912('0x9')])});}),this['listenTo'](this[_0x4912('0xc')]['ui'],_0x4912('0x21'),()=>this[_0x4912('0x6')](_0x4912('0x1f')));}[_0x4912('0x1d')](_0x14568b){if(this[_0x4912('0x22')]['has'](_0x14568b[_0x4912('0x26')]))return;this[_0x4912('0x22')][_0x4912('0xb')](_0x14568b[_0x4912('0x26')]),this[_0x4912('0xc')]['ui'][_0x4912('0x12')][_0x4912('0xb')](_0x14568b['view'][_0x4912('0x5')]);const _0x5a0534=this['editor']['plugins'][_0x4912('0x27')](_0x3f404a);this[_0x4912('0x11')](_0x5a0534[_0x4912('0x24')],_0x4912('0x2b'),(_0xc9fd78,_0x3d0fd0)=>{this[_0x4912('0xc')]['ui'][_0x4912('0x12')][_0x4912('0x2b')](_0x3d0fd0['view'][_0x4912('0x5')]),this[_0x4912('0x22')]['delete'](_0x3d0fd0['view']);});}['hasDomSelection'](){return this[_0x4912('0xc')][_0x4912('0x3')][_0x4912('0x26')][_0x4912('0x18')];}[_0x4912('0x23')](_0x46d0dc){if(_0x4912('0x2')!=typeof _0x46d0dc)throw new _0x5b1c24('editorannotations-invalid-source-callback');this[_0x4912('0x25')][_0x4912('0xb')](_0x46d0dc);}[_0x4912('0x1e')](){this[_0x4912('0x6')](_0x4912('0xf'));}[_0x4912('0x16')]({activeAnnotation:_0x325030,annotations:_0x3471d1}){const _0x195cba=[],_0x548ba8=this[_0x4912('0xc')][_0x4912('0x1a')][_0x4912('0x2c')]['selection'],_0x2ce418=Array[_0x4912('0x29')](_0x548ba8[_0x4912('0x19')]());for(const [_0x2189ff,_0x28c99d]of this[_0x4912('0x4')]){const _0x52a169=_0x34153f(_0x28c99d),_0x4ff6e5=_0x3471d1[_0x4912('0x8')](_0x2189ff);_0x52a169&&_0x4ff6e5&&_0x195cba[_0x4912('0x2a')]({'annotation':_0x4ff6e5,'range':_0x52a169});}function _0x34153f(_0x109047){for(const _0xab9648 of _0x109047)for(const _0x2e0749 of _0x2ce418)if(_0xab9648['containsRange'](_0x2e0749,!_0x548ba8['isCollapsed']))return _0xab9648;return null;}return _0x195cba[_0x4912('0x17')]((_0xebf61f,_0x1cc719)=>{const _0x9095b4=_0xebf61f[_0x4912('0x0')],_0x27ca6a=_0x1cc719[_0x4912('0x0')];if(!_0x9095b4['isEqual'](_0x27ca6a)){if(_0x9095b4['containsRange'](_0x27ca6a,!0x0))return 0x1;if(_0x27ca6a[_0x4912('0x13')](_0x9095b4,!0x0))return-0x1;}return _0xebf61f['annotation']==_0x325030?-0x1:_0x1cc719[_0x4912('0x28')]==_0x325030?0x1:0x0;})[_0x4912('0x10')](_0x5df531=>_0x5df531[_0x4912('0x28')]);}get[_0x4912('0x4')](){const _0x205a16=new Map();for(const _0x57fe4d of Array[_0x4912('0x29')](this[_0x4912('0x25')]))for(const [_0x2d4919,_0x3e8959]of _0x57fe4d())_0x205a16[_0x4912('0x1b')](_0x2d4919,_0x3e8959);return _0x205a16;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x219b=['init','editor','document','inlineannotations-attach-already-attached','setActiveAnnotation','collapse','showStack','refresh','annotations','editableElement','length','from','left','_manuallyClosed','width','top','updatePosition','add','_selectedAnnotations','isActive','activeAnnotation','set','visibleView','_addAnnotationToBalloon','update','getBoundingClientRect','_setSelectedAnnotations','target','pluginName','selection','hasView','domConverter','_addedAnnotations','listenTo','get','find','focus','change:height','editing','context','requires','fromRect','view','getByView','keystrokes','isFocused','addObserver','isAttached','mousedown','right','detach','afterInit','bottom','_balloon','stopListening','plugins','push','focusTracker','delete','map','Esc','has','getClientRects','remove','every','_forceRefresh','_closeAnnotation','inline','includes','_getBalloonTargetForAnnotation','register'];(function(_0x467f21,_0x219b5f){const _0x116133=function(_0x3ea731){while(--_0x3ea731){_0x467f21['push'](_0x467f21['shift']());}};_0x116133(++_0x219b5f);}(_0x219b,0x18c));const _0x1161=function(_0x467f21,_0x219b5f){_0x467f21=_0x467f21-0x0;let _0x116133=_0x219b[_0x467f21];return _0x116133;};import{Plugin as _0x4886cb}from'ckeditor5/src/core';import _0x1e452b from'./annotationsuis';import _0x307b65 from'./editorannotations';import{ContextualBalloon as _0xb7b5a6}from'ckeditor5/src/ui';import{MouseObserver as _0x358c62}from'ckeditor5/src/engine';import{CKEditorError as _0x3084dc,Rect as _0x1b74b1}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x4886cb{static get[_0x1161('0x46')](){return[_0x307b65,_0xb7b5a6,_0x1e452b];}static get[_0x1161('0x3a')](){return'InlineAnnotations';}constructor(_0x56402d){super(_0x56402d),_0x56402d['editing'][_0x1161('0x1')][_0x1161('0x5')](_0x358c62),this[_0x1161('0x6')]=!0x1,this['set'](_0x1161('0x32'),null),this[_0x1161('0x26')]=null,this['_manuallyClosed']=new Set(),this[_0x1161('0xc')]=_0x56402d[_0x1161('0xe')][_0x1161('0x40')](_0xb7b5a6),this[_0x1161('0x3e')]=new Set(),this[_0x1161('0x30')]=[],this[_0x1161('0x18')]=!0x1;}[_0x1161('0x1e')](){const _0x34e07d=this[_0x1161('0x1f')][_0x1161('0xe')]['get'](_0x1e452b);_0x34e07d[_0x1161('0x45')]===this[_0x1161('0x1f')]&&(_0x34e07d[_0x1161('0x1d')]('inline',this),this[_0x1161('0x1f')][_0x1161('0x3')][_0x1161('0x33')](_0x1161('0x13'),(_0x1b374f,_0x170bcb)=>{const _0x529e58=this['_balloon'];if(this['isAttached']&&_0x529e58['visibleView']){const _0x31f8b2=this[_0x1161('0x26')][_0x1161('0x2')](_0x529e58[_0x1161('0x34')]);_0x31f8b2&&this['_closeAnnotation'](_0x31f8b2),_0x170bcb();}}));}[_0x1161('0xa')](){const _0x537671=this[_0x1161('0x1f')][_0x1161('0xe')][_0x1161('0x40')](_0x1e452b);_0x537671[_0x1161('0x45')]===this['editor']&&(_0x537671['hasActive']()||_0x537671['switchTo'](_0x1161('0x1a')));}['setActiveAnnotation'](_0x175f64){_0x175f64!==this[_0x1161('0x32')]&&(this[_0x1161('0x32')]&&(this['activeAnnotation'][_0x1161('0x31')]=!0x1),_0x175f64&&this[_0x1161('0x1f')]['ui'][_0x1161('0x10')][_0x1161('0x4')]&&(this['annotations'][_0x1161('0x14')](_0x175f64)&&this[_0x1161('0x35')](_0x175f64,!0x0),_0x175f64['isActive']=!0x0),_0x175f64||this['_setSelectedAnnotations']([]),this[_0x1161('0x32')]=_0x175f64);}['attach'](_0x3d78aa){this[_0x1161('0x26')]=_0x3d78aa;const _0x31951d=this[_0x1161('0x1f')][_0x1161('0xe')][_0x1161('0x40')](_0x1e452b),_0x587147=this[_0x1161('0xc')];if(this['isAttached'])throw new _0x3084dc(_0x1161('0x21'),this);if(_0x31951d['context']!==this[_0x1161('0x1f')])throw new _0x3084dc('inlineannotations-not-allowed-with-context',this);const _0x3afdb2=this[_0x1161('0x1f')][_0x1161('0xe')][_0x1161('0x40')](_0x307b65);this['listenTo'](_0x3afdb2,_0x1161('0x25'),()=>{const _0xaedb5d=_0x3afdb2['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x1161('0x32')]});var _0x2f65ba,_0x3d3e42;!this[_0x1161('0x18')]&&(_0x2f65ba=_0xaedb5d,_0x3d3e42=this[_0x1161('0x30')],_0x2f65ba[_0x1161('0x28')]===_0x3d3e42[_0x1161('0x28')]&&_0x2f65ba[_0x1161('0x17')](_0x2b3a53=>_0x3d3e42['includes'](_0x2b3a53)))||(this[_0x1161('0x18')]=!0x1,this[_0x1161('0x38')](_0xaedb5d),this[_0x1161('0x22')](_0xaedb5d[0x0]||null));}),this['listenTo'](_0x3afdb2,'blur',(_0x4775f6,{isAnnotationTracked:_0x2fe47e})=>{this[_0x1161('0x32')]&&_0x2fe47e(this[_0x1161('0x32')])&&(this[_0x1161('0x38')]([]),this[_0x1161('0x22')](null));}),this['listenTo'](this[_0x1161('0x1f')]['ui'][_0x1161('0x10')],'change:isFocused',(_0x1e21e1,_0x5590c9,_0x44ed32)=>{_0x44ed32||this[_0x1161('0x22')](null);}),this[_0x1161('0x3f')](_0x3d78aa,'remove',(_0x3ae573,_0x3668a3)=>{this['_removeAnnotationFromBalloon'](_0x3668a3),_0x3668a3===this['activeAnnotation']&&this[_0x1161('0x22')](null);}),this['listenTo'](_0x587147,'change:visibleView',(_0x1f0995,_0x5a2b8b,_0x5efd34,_0x12f60e)=>{_0x12f60e&&this[_0x1161('0xd')](_0x12f60e);const _0x34ccb2=_0x3d78aa[_0x1161('0x2')](_0x5efd34);_0x5efd34&&_0x34ccb2&&(this[_0x1161('0x3f')](_0x5efd34,_0x1161('0x43'),()=>{_0x587147[_0x1161('0x2e')]();}),this[_0x1161('0x3f')](_0x5efd34,_0x1161('0x13'),()=>{this[_0x1161('0x19')](_0x34ccb2),this[_0x1161('0x1f')][_0x1161('0x44')][_0x1161('0x1')][_0x1161('0x42')]();}),this['activeAnnotation']!==_0x34ccb2&&this[_0x1161('0x22')](_0x34ccb2));}),this[_0x1161('0x3f')](this[_0x1161('0x1f')]['ui'],_0x1161('0x36'),()=>{_0x587147['visibleView']&&(_0x3d78aa[_0x1161('0x2')](_0x587147[_0x1161('0x34')])&&_0x587147[_0x1161('0x2e')]());}),this[_0x1161('0x3f')](this[_0x1161('0x1f')]['editing'][_0x1161('0x1')][_0x1161('0x20')],_0x1161('0x7'),()=>{this[_0x1161('0x18')]=!0x0,this[_0x1161('0x2b')]['clear']();}),this[_0x1161('0x1f')]['editing'][_0x1161('0x1')][_0x1161('0x20')][_0x1161('0x3b')][_0x1161('0x27')]&&this[_0x1161('0x1f')]['editing'][_0x1161('0x1')][_0x1161('0x42')](),this[_0x1161('0x6')]=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x3084dc('inlineannotations-detach-not-attached',this);this[_0x1161('0x22')](null);for(const _0x13d3b6 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x13d3b6);this['stopListening'](),this['isAttached']=!0x1,this[_0x1161('0x26')]=null;}['destroy'](){this[_0x1161('0x6')]&&this[_0x1161('0x9')]();}[_0x1161('0x38')](_0x418f89){for(const _0x171ad8 of this[_0x1161('0x30')])_0x418f89[_0x1161('0x1b')](_0x171ad8)||this['_manuallyClosed'][_0x1161('0x11')](_0x171ad8);for(const _0x355a30 of this['annotations'])_0x418f89[_0x1161('0x1b')](_0x355a30)||this['_removeAnnotationFromBalloon'](_0x355a30);if(this[_0x1161('0x1f')]['ui']['focusTracker']['isFocused'])for(const _0x54a90a of _0x418f89)this[_0x1161('0x35')](_0x54a90a);this[_0x1161('0x30')]=_0x418f89;}[_0x1161('0x35')](_0x3f71fe,_0x57b7a6=!0x1){this[_0x1161('0x2b')][_0x1161('0x14')](_0x3f71fe)||(this[_0x1161('0x3e')][_0x1161('0x14')](_0x3f71fe)||this[_0x1161('0xc')]['hasView'](_0x3f71fe[_0x1161('0x1')])||(this[_0x1161('0x3e')][_0x1161('0x2f')](_0x3f71fe),this[_0x1161('0xc')][_0x1161('0x2f')]({'stackId':_0x3f71fe[_0x1161('0x1')]['id'],'view':_0x3f71fe['view'],'position':{'target':()=>this[_0x1161('0x1c')](_0x3f71fe)}})),_0x57b7a6&&this[_0x1161('0xc')][_0x1161('0x24')](_0x3f71fe[_0x1161('0x1')]['id']));}[_0x1161('0x1c')](_0x423a09){const _0x31e85a=_0x423a09[_0x1161('0x39')],_0x4ee266=this[_0x1161('0x1f')]['editing']['view'],_0x6d6287=_0x4ee266['document'][_0x1161('0x3b')]['getFirstRange'](),_0x2bf44f=_0x4ee266[_0x1161('0x3d')]['viewRangeToDom'](_0x6d6287);if(_0x2bf44f[_0x1161('0x23')](!0x0),_0x31e85a){if(_0x31e85a instanceof _0x1b74b1)return _0x31e85a;let _0x51f580=[];for(const _0x466084 of _0x31e85a)_0x51f580[_0x1161('0xf')](...(_0x35b79e=_0x466084[_0x1161('0x15')](),Array[_0x1161('0x29')](_0x35b79e)[_0x1161('0x12')](DOMRect[_0x1161('0x0')])));_0x51f580=function(_0x3bf22e){const _0x3b01bb=[];let _0x33dae9=_0x3bf22e[0x0];for(let _0x26125b=0x1;_0x26125b<_0x3bf22e[_0x1161('0x28')];_0x26125b++)F(_0x33dae9,_0x3bf22e[_0x26125b])?_0x33dae9['width']+=_0x3bf22e[_0x26125b][_0x1161('0x2c')]:(_0x3b01bb[_0x1161('0xf')](_0x33dae9),_0x33dae9=_0x3bf22e[_0x26125b]);return _0x3b01bb[_0x1161('0xf')](_0x33dae9),_0x3b01bb;}(_0x51f580);const _0x528c82=_0x2bf44f[_0x1161('0x37')]();return _0x51f580[_0x1161('0x41')](_0x41f555=>_0x41f555['top']<=_0x528c82[_0x1161('0x2d')]&&_0x41f555[_0x1161('0xb')]>=_0x528c82[_0x1161('0xb')]&&_0x41f555[_0x1161('0x2a')]<=_0x528c82[_0x1161('0x2a')]&&_0x41f555['right']>=_0x528c82[_0x1161('0x8')])||_0x51f580[0x0];}var _0x35b79e;return _0x423a09['targetRect']||_0x2bf44f;}['_removeAnnotationFromBalloon'](_0x9c566f){this[_0x1161('0x3e')][_0x1161('0x14')](_0x9c566f)&&this['_balloon'][_0x1161('0x3c')](_0x9c566f[_0x1161('0x1')])&&(this[_0x1161('0x3e')][_0x1161('0x11')](_0x9c566f),this[_0x1161('0xc')][_0x1161('0x16')](_0x9c566f[_0x1161('0x1')]));}['_closeAnnotation'](_0x12987d){this[_0x1161('0x2b')][_0x1161('0x2f')](_0x12987d),this['_removeAnnotationFromBalloon'](_0x12987d);}}function F(_0x356a34,_0x3e289b){return _0x356a34[_0x1161('0x2d')]===_0x3e289b[_0x1161('0x2d')]&&_0x356a34[_0x1161('0xb')]===_0x3e289b['bottom']&&_0x356a34[_0x1161('0x8')]===_0x3e289b[_0x1161('0x2a')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xef69=['ready','_detachListeners','first','refreshPositioning','low','destroy','attachToDom','requires','locale','_attachToContainer','_annotations','set','getByView','isAttached','includes','bind','init','_setSelectedAnnotations','_refreshPositioningDebounced','add','addAnnotation','southArrowNorthWest','find','_detachFromContainer','change:height','getSidebarItemView','contains','get','activeAnnotation','removeEventListener','attach','preventClosingBalloon','_domEmitter','off','register','northArrowSouthWest','getOrderedSelectedAnnotations','_selectedAnnotations','isVisible','high','execute','_destroyEditorAnnotationsIntegration','content','blur','stopListening','NarrowSidebar','number','_updateBalloonPosition','listenTo','type','context','pluginName','focus','resize','focusableElements','clear','from','Esc','defaultPositions','view','esc','element','cancel','remove','_attachListeners','_annotationToNarrowView','EditorAnnotations','narrowsidebar-attach-already-attached','addEventListener','_hideBalloon','setActiveAnnotation','isDirty','plugins','unpin','uiUpdate','ck-sidebar--narrow','pin','balloonPanelView','refresh','delete','editors','_integrateWithEditorAnnotations','target','narrowSidebar','rearrange','annotations','narrowsidebar-detach-not-attached','_manuallyClosedAnnotationViews','_refreshPositioning','_showBalloon','mousedown','detach','bodyCollection','northArrowSouth','has','_editorAnnotations'];(function(_0xc58b63,_0xef69f2){const _0x486e89=function(_0x1d0395){while(--_0x1d0395){_0xc58b63['push'](_0xc58b63['shift']());}};_0x486e89(++_0xef69f2);}(_0xef69,0x97));const _0x486e=function(_0xc58b63,_0xef69f2){_0xc58b63=_0xc58b63-0x0;let _0x486e89=_0xef69[_0xc58b63];return _0x486e89;};import{ContextPlugin as _0x2bcbc9,Context as _0x1b8e75}from'ckeditor5/src/core';import _0x50441a from'./annotationsuis';import _0x5d7e31 from'./sidebar';import _0x1e1658 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4a75a2,BodyCollection as _0x4b0de6}from'ckeditor5/src/ui';import{CKEditorError as _0x2206d8,DomEmitterMixin as _0x206ac7,keyCodes as _0x1f2ec1,Collection as _0x2cfaa8}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x1497d7}from'lodash-es';import _0x54b766 from'./editorannotations';export default class s extends _0x2bcbc9{static get[_0x486e('0x30')](){return[_0x5d7e31,_0x50441a];}static get[_0x486e('0x5c')](){return _0x486e('0x56');}constructor(_0x350fed){super(_0x350fed),this[_0x486e('0x36')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x486e('0x49')]=Object['create'](_0x206ac7),this['_annotationToNarrowView']=new Map(),this[_0x486e('0x34')](_0x486e('0x45'),null),this[_0x486e('0x1e')]=null,this[_0x486e('0x4e')]=[],this[_0x486e('0x28')]=new _0x2cfaa8(),this['_refreshPositioningDebounced']=_0x1497d7(()=>{this[_0x486e('0x21')]();},0xfa,{'leading':!0x1});}[_0x486e('0x39')](){this[_0x486e('0x5b')]['plugins'][_0x486e('0x44')](_0x50441a)[_0x486e('0x4b')](_0x486e('0x1c'),this),this[_0x486e('0x25')]=new _0x4b0de6(this['context']['locale']),this[_0x486e('0x16')]=new _0x4a75a2(this[_0x486e('0x5b')]['locale']),this['bodyCollection'][_0x486e('0x2f')](),this[_0x486e('0x25')][_0x486e('0x3c')](this[_0x486e('0x16')]);}[_0x486e('0x47')](_0x476f81){this[_0x486e('0x1e')]=_0x476f81;const _0x54a1aa=this[_0x486e('0x5b')][_0x486e('0x11')]['get'](_0x5d7e31),_0xf6f478=this[_0x486e('0x16')];if(_0x54a1aa[_0x486e('0x33')]=_0x476f81,this['isAttached'])throw new _0x2206d8(_0x486e('0xc'),this);this[_0x486e('0x36')]=!0x0,this[_0x486e('0x59')](_0x54a1aa,'set:container',()=>{this['detach'](),this[_0x486e('0x59')](_0x54a1aa,'change:container',_0x5013c6=>{_0x5013c6[_0x486e('0x4a')](),this[_0x486e('0x47')](_0x476f81);});}),_0x54a1aa[_0x486e('0x32')]({'viewClass':_0x486e('0x14'),'spaceBetweenItems':0x5});const _0xad1d36=_0x1f7ddd=>{const _0x3261d6=new _0x1e1658(this['context'][_0x486e('0x31')]);_0x54a1aa[_0x486e('0x3d')](_0x1f7ddd,_0x3261d6),this[_0x486e('0xa')]['set'](_0x1f7ddd,_0x3261d6),_0x3261d6[_0x486e('0x38')](_0x486e('0x10'),'annotationType',_0x486e('0x57'))['to'](_0x1f7ddd['view'],_0x486e('0x10'),_0x486e('0x5a'),'length'),_0x3261d6['on'](_0x486e('0x51'),()=>{this[_0x486e('0x20')][_0x486e('0x0')](),_0xf6f478[_0x486e('0x53')][_0x486e('0x2b')]!==_0x1f7ddd[_0x486e('0x4')]?(this[_0x486e('0x22')](_0x1f7ddd),_0x1f7ddd['view']['element'][_0x486e('0x5d')](),this[_0x486e('0xf')](_0x1f7ddd)):this[_0x486e('0xf')](null);});};for(const _0x3e2647 of _0x476f81)_0xad1d36(_0x3e2647);this[_0x486e('0x59')](_0x476f81,_0x486e('0x3c'),(_0x52649a,_0x31c699)=>{_0xad1d36(_0x31c699);}),this[_0x486e('0x59')](_0x476f81,_0x486e('0x8'),(_0x2f8421,_0x26ffda,_0x5bf2b0)=>{this[_0x486e('0xa')][_0x486e('0x44')](_0x26ffda)[_0x486e('0x2e')](),this['_annotationToNarrowView']['delete'](_0x26ffda),_0x54a1aa[_0x486e('0x1d')]({'removedAnnotation':_0x26ffda,'previousAnnotation':_0x476f81['get'](_0x5bf2b0-0x1),'nextAnnotation':_0x476f81[_0x486e('0x44')](_0x5bf2b0+0x1)}),_0x26ffda===this[_0x486e('0x45')]&&this[_0x486e('0xf')](null);},{'priority':_0x486e('0x2d')}),this[_0x486e('0x59')](_0x476f81,_0x486e('0x5d'),(_0x4c194f,_0x3fb85a)=>{this[_0x486e('0xf')](_0x3fb85a);}),this[_0x486e('0x59')](_0x476f81,_0x486e('0x54'),()=>{this[_0x486e('0xf')](null);}),this[_0x486e('0x49')]['listenTo'](document,'keydown',(_0x52e61d,_0x4a5d1a)=>{_0x4a5d1a['keyCode']===_0x1f2ec1[_0x486e('0x5')]&&_0xf6f478[_0x486e('0x4f')]&&(this[_0x486e('0x20')][_0x486e('0x3c')](_0xf6f478['content'][_0x486e('0x2b')]),this[_0x486e('0xe')](),_0x4a5d1a['stopPropagation'](),_0x4a5d1a['preventDefault']());}),this[_0x486e('0x49')]['listenTo'](document,'mousedown',(_0x11ab60,_0x1d44fd)=>{const _0x5b865e=_0x1d44fd[_0x486e('0x1b')];_0xf6f478[_0x486e('0x4f')]&&_0xf6f478['element'][_0x486e('0x43')](_0x5b865e)||_0x54a1aa[_0x486e('0x4')][_0x486e('0x6')][_0x486e('0x43')](_0x5b865e)||_0x11ab60['preventClosingBalloon']||this[_0x486e('0x45')]&&this['activeAnnotation'][_0x486e('0x5f')][_0x486e('0x3f')](_0x84213b=>_0x84213b[_0x486e('0x43')](_0x5b865e))||(this[_0x486e('0x20')][_0x486e('0x0')](),this[_0x486e('0xe')](),this[_0x486e('0xf')](null));});const _0x2c2416=this[_0x486e('0x5b')]instanceof _0x1b8e75?this[_0x486e('0x5b')][_0x486e('0x19')]:new _0x2cfaa8([this[_0x486e('0x5b')]]);for(const _0x3279ff of _0x2c2416)this[_0x486e('0x1a')](_0x3279ff);this[_0x486e('0x59')](_0x2c2416,_0x486e('0x3c'),(_0x2e8642,_0x464517)=>{this['listenTo'](_0x464517,_0x486e('0x29'),()=>{this[_0x486e('0x1a')](_0x464517);});}),this['listenTo'](_0x2c2416,_0x486e('0x8'),(_0x2772a7,_0x2ce01d)=>{_0x2ce01d['plugins'][_0x486e('0x27')](_0x486e('0xb'))&&this[_0x486e('0x52')](_0x2ce01d[_0x486e('0x11')]['get'](_0x486e('0xb')));}),window[_0x486e('0xd')](_0x486e('0x5e'),this[_0x486e('0x3b')]),this['_refreshPositioning']();}['setActiveAnnotation'](_0x1523d4){if(_0x1523d4===this[_0x486e('0x45')])return;const _0x1e851f=this[_0x486e('0x5b')][_0x486e('0x11')][_0x486e('0x44')](_0x5d7e31);if(_0x1e851f[_0x486e('0x17')]({'blurredAnnotation':this[_0x486e('0x45')],'activatedAnnotation':_0x1523d4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1523d4)_0x1e851f[_0x486e('0x42')](_0x1523d4)?this[_0x486e('0x22')](_0x1523d4):this[_0x486e('0xe')]();else this[_0x486e('0xe')]();this[_0x486e('0x45')]=_0x1523d4;}[_0x486e('0x24')](){if(!this[_0x486e('0x36')])throw new _0x2206d8(_0x486e('0x1f'),this);this['setActiveAnnotation'](null);const _0x2f056c=this[_0x486e('0x5b')][_0x486e('0x11')][_0x486e('0x44')](_0x5d7e31);this[_0x486e('0xe')](),Array[_0x486e('0x1')](this[_0x486e('0xa')]['values'](),_0x3de0cd=>_0x3de0cd[_0x486e('0x2e')]()),this['_annotationToNarrowView'][_0x486e('0x0')](),_0x2f056c[_0x486e('0x40')](this[_0x486e('0x1e')]),this[_0x486e('0x55')](),this['_domEmitter'][_0x486e('0x55')](),this['context']instanceof _0x1b8e75&&this[_0x486e('0x55')](this[_0x486e('0x5b')][_0x486e('0x19')]);for(const _0x63ec34 of Array[_0x486e('0x1')](this['_editorAnnotations']))this[_0x486e('0x52')](_0x63ec34);window[_0x486e('0x46')](_0x486e('0x5e'),this[_0x486e('0x3b')]),this[_0x486e('0x3b')][_0x486e('0x7')](),this['_selectedAnnotations']=[],this[_0x486e('0x36')]=!0x1,this[_0x486e('0x1e')]=null;}[_0x486e('0x2e')](){this[_0x486e('0x36')]&&this[_0x486e('0x24')](),this[_0x486e('0x25')]['detachFromDom']();}[_0x486e('0x1a')](_0x1d225e){const _0x13f337=_0x1d225e[_0x486e('0x11')][_0x486e('0x44')](_0x54b766),_0x161883=this[_0x486e('0x5b')][_0x486e('0x11')][_0x486e('0x44')](_0x5d7e31),_0x39b75f=this[_0x486e('0x1e')],_0x4b67df=this[_0x486e('0x16')],_0x1f2705=()=>{const _0x2a1c0a=_0x13f337[_0x486e('0x4d')]({'annotations':this[_0x486e('0x1e')],'activeAnnotation':this[_0x486e('0x45')]});this[_0x486e('0x3a')](_0x2a1c0a),this[_0x486e('0xf')](_0x2a1c0a[0x0]||null);};this[_0x486e('0x59')](_0x13f337,_0x486e('0x17'),_0x1f2705),this[_0x486e('0x59')](_0x13f337,'blur',(_0x177090,{isAnnotationTracked:_0x1b65c8})=>{this[_0x486e('0x45')]&&_0x1b65c8(this[_0x486e('0x45')])&&(this[_0x486e('0x3a')]([]),this[_0x486e('0xf')](null));}),this['listenTo'](_0x13f337,_0x486e('0x13'),()=>{this['_refreshPositioningDebounced']();}),this[_0x486e('0x59')](_0x39b75f,_0x486e('0x54'),_0xadfe59=>{_0x13f337['hasDomSelection']()&&_0xadfe59['stop']();},{'priority':_0x486e('0x50')}),this['listenTo'](this[_0x486e('0x49')],_0x486e('0x23'),(_0x2e2a97,_0xe97528)=>{const _0x540b5e=_0xe97528[_0x486e('0x1b')];_0x4b67df[_0x486e('0x4f')]&&_0x4b67df['element'][_0x486e('0x43')](_0x540b5e)||_0x161883['view'][_0x486e('0x6')][_0x486e('0x43')](_0x540b5e)||this[_0x486e('0x45')]&&_0x13f337['hasDomSelection']()&&(_0x1f2705(),_0x2e2a97[_0x486e('0x48')]=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x486e('0x3c')](_0x13f337);}['_destroyEditorAnnotationsIntegration'](_0x23575c){_0x23575c&&(this['stopListening'](_0x23575c),this['_editorAnnotations'][_0x486e('0x8')](_0x23575c));}[_0x486e('0x3a')](_0x2c6630){for(const _0x7cb2e1 of this[_0x486e('0x4e')])_0x2c6630[_0x486e('0x37')](_0x7cb2e1)||this['_manuallyClosedAnnotationViews'][_0x486e('0x18')](_0x7cb2e1[_0x486e('0x4')]);this[_0x486e('0x4e')]=_0x2c6630;}[_0x486e('0x21')](){const _0x554317=this['balloonPanelView'];this['annotations'][_0x486e('0x2c')](),_0x554317['isVisible']&&this[_0x486e('0x58')]();}['_showBalloon'](_0x577b04){if(this[_0x486e('0x20')][_0x486e('0x27')](_0x577b04[_0x486e('0x4')]))return;const _0x51d5c7=this['balloonPanelView'][_0x486e('0x53')][_0x486e('0x2b')];_0x51d5c7!==_0x577b04[_0x486e('0x4')]?(_0x51d5c7&&this[_0x486e('0x2a')](_0x51d5c7),this[_0x486e('0x9')](_0x577b04[_0x486e('0x4')]),this[_0x486e('0x16')][_0x486e('0x53')][_0x486e('0x0')](),this[_0x486e('0x16')]['content'][_0x486e('0x3c')](_0x577b04[_0x486e('0x4')]),this[_0x486e('0x58')]()):this[_0x486e('0x58')]();}[_0x486e('0x58')](){const _0x5d3f8c=this['balloonPanelView'][_0x486e('0x53')][_0x486e('0x2b')],_0x3fc4f8=_0x5d3f8c&&this[_0x486e('0x1e')][_0x486e('0x35')](_0x5d3f8c);if(!_0x3fc4f8||!this[_0x486e('0xa')][_0x486e('0x27')](_0x3fc4f8))return;const _0x18dc52=this[_0x486e('0xa')][_0x486e('0x44')](_0x3fc4f8)[_0x486e('0x6')],_0x114245=function(){const _0x52c985=_0x4a75a2[_0x486e('0x3')];return[_0x52c985['southArrowNorthEast'],_0x52c985['northArrowSouthEast'],_0x52c985['southArrowNorth'],_0x52c985[_0x486e('0x26')],_0x52c985[_0x486e('0x3e')],_0x52c985[_0x486e('0x4c')]];}();this['balloonPanelView'][_0x486e('0x15')]({'target':_0x18dc52,'positions':_0x114245});}[_0x486e('0xe')](){const _0x13d4ea=this[_0x486e('0x16')],_0x4db018=_0x13d4ea[_0x486e('0x53')][_0x486e('0x2b')];_0x4db018&&(this['_detachListeners'](_0x4db018),_0x13d4ea[_0x486e('0x12')](),_0x13d4ea[_0x486e('0x53')][_0x486e('0x0')]());}[_0x486e('0x9')](_0x40af0f){this[_0x486e('0x59')](_0x40af0f,_0x486e('0x41'),()=>this[_0x486e('0x58')]()),this[_0x486e('0x59')](_0x40af0f,_0x486e('0x2'),(_0x5af01b,_0x5048c9)=>{this[_0x486e('0x20')][_0x486e('0x3c')](_0x40af0f),this[_0x486e('0xe')](),_0x5048c9();});}[_0x486e('0x2a')](_0x1e5b35){this[_0x486e('0x55')](_0x1e5b35);}}
|
|
23
|
+
const _0x45c4=['stop','length','isDirty','focusableElements','number','listenTo','defaultPositions','context','narrowsidebar-attach-already-attached','refreshPositioning','blur','contains','set','_destroyEditorAnnotationsIntegration','element','editors','destroy','detach','_attachListeners','plugins','_annotationToNarrowView','_detachListeners','preventDefault','southArrowNorthEast','keyCode','attachToDom','_detachFromContainer','create','find','low','change:height','includes','off','target','balloonPanelView','_selectedAnnotations','get','_editorAnnotations','high','unpin','ck-sidebar--narrow','bodyCollection','_hideBalloon','init','type','_showBalloon','_refreshPositioningDebounced','pluginName','resize','_attachToContainer','_updateBalloonPosition','southArrowNorthWest','_integrateWithEditorAnnotations','northArrowSouthWest','EditorAnnotations','addEventListener','southArrowNorth','remove','first','mousedown','narrowSidebar','isAttached','hasDomSelection','has','cancel','setActiveAnnotation','register','addAnnotation','delete','pin','change:container','_refreshPositioning','execute','from','activeAnnotation','detachFromDom','_annotations','refresh','annotationType','preventClosingBalloon','_setSelectedAnnotations','keydown','clear','content','stopListening','getByView','northArrowSouth','focus','locale','isVisible','NarrowSidebar','bind','narrowsidebar-detach-not-attached','add','_manuallyClosedAnnotationViews','northArrowSouthEast','view','annotations','_domEmitter'];(function(_0x828e41,_0x45c447){const _0x531776=function(_0x407c0f){while(--_0x407c0f){_0x828e41['push'](_0x828e41['shift']());}};_0x531776(++_0x45c447);}(_0x45c4,0x86));const _0x5317=function(_0x828e41,_0x45c447){_0x828e41=_0x828e41-0x0;let _0x531776=_0x45c4[_0x828e41];return _0x531776;};import{ContextPlugin as _0x364bb7,Context as _0x4092fc}from'ckeditor5/src/core';import _0x3883c7 from'./annotationsuis';import _0x198cb3 from'./sidebar';import _0x2fbf6f from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x3b9b2f,BodyCollection as _0x3e5280}from'ckeditor5/src/ui';import{CKEditorError as _0x2c47e5,DomEmitterMixin as _0x33a64f,keyCodes as _0x5e1017,Collection as _0x2c087b}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x5150c8}from'lodash-es';import _0x1828fd from'./editorannotations';export default class s extends _0x364bb7{static get['requires'](){return[_0x198cb3,_0x3883c7];}static get[_0x5317('0xc')](){return _0x5317('0x37');}constructor(_0x292282){super(_0x292282),this['isAttached']=!0x1,this[_0x5317('0x3b')]=new Set(),this[_0x5317('0x3f')]=Object[_0x5317('0x5b')](_0x33a64f),this[_0x5317('0x54')]=new Map(),this['set'](_0x5317('0x27'),null),this['annotations']=null,this['_selectedAnnotations']=[],this[_0x5317('0x2')]=new _0x2c087b(),this['_refreshPositioningDebounced']=_0x5150c8(()=>{this[_0x5317('0x24')]();},0xfa,{'leading':!0x1});}[_0x5317('0x8')](){this[_0x5317('0x47')][_0x5317('0x53')][_0x5317('0x1')](_0x3883c7)[_0x5317('0x1f')](_0x5317('0x19'),this),this['bodyCollection']=new _0x3e5280(this[_0x5317('0x47')][_0x5317('0x35')]),this[_0x5317('0x62')]=new _0x3b9b2f(this[_0x5317('0x47')]['locale']),this[_0x5317('0x6')][_0x5317('0x59')](),this[_0x5317('0x6')][_0x5317('0x3a')](this[_0x5317('0x62')]);}['attach'](_0x367ed0){this['annotations']=_0x367ed0;const _0x1f3f25=this[_0x5317('0x47')][_0x5317('0x53')][_0x5317('0x1')](_0x198cb3),_0x45c73d=this[_0x5317('0x62')];if(_0x1f3f25[_0x5317('0x29')]=_0x367ed0,this['isAttached'])throw new _0x2c47e5(_0x5317('0x48'),this);this[_0x5317('0x1a')]=!0x0,this[_0x5317('0x45')](_0x1f3f25,'set:container',()=>{this[_0x5317('0x51')](),this[_0x5317('0x45')](_0x1f3f25,_0x5317('0x23'),_0x28b64a=>{_0x28b64a[_0x5317('0x60')](),this['attach'](_0x367ed0);});}),_0x1f3f25[_0x5317('0xe')]({'viewClass':_0x5317('0x5'),'spaceBetweenItems':0x5});const _0x5b9172=_0x2690f8=>{const _0x35913=new _0x2fbf6f(this['context']['locale']);_0x1f3f25[_0x5317('0x20')](_0x2690f8,_0x35913),this[_0x5317('0x54')][_0x5317('0x4c')](_0x2690f8,_0x35913),_0x35913[_0x5317('0x38')](_0x5317('0x42'),_0x5317('0x2b'),_0x5317('0x44'))['to'](_0x2690f8[_0x5317('0x3d')],_0x5317('0x42'),_0x5317('0x9'),_0x5317('0x41')),_0x35913['on'](_0x5317('0x25'),()=>{this[_0x5317('0x3b')][_0x5317('0x2f')](),_0x45c73d[_0x5317('0x30')][_0x5317('0x17')]!==_0x2690f8[_0x5317('0x3d')]?(this[_0x5317('0xa')](_0x2690f8),_0x2690f8['view'][_0x5317('0x4e')][_0x5317('0x34')](),this[_0x5317('0x1e')](_0x2690f8)):this[_0x5317('0x1e')](null);});};for(const _0xd264de of _0x367ed0)_0x5b9172(_0xd264de);this[_0x5317('0x45')](_0x367ed0,_0x5317('0x3a'),(_0x129170,_0x41201c)=>{_0x5b9172(_0x41201c);}),this[_0x5317('0x45')](_0x367ed0,_0x5317('0x16'),(_0x2319a0,_0x32339d,_0x344fc4)=>{this['_annotationToNarrowView'][_0x5317('0x1')](_0x32339d)['destroy'](),this[_0x5317('0x54')][_0x5317('0x21')](_0x32339d),_0x1f3f25['rearrange']({'removedAnnotation':_0x32339d,'previousAnnotation':_0x367ed0['get'](_0x344fc4-0x1),'nextAnnotation':_0x367ed0['get'](_0x344fc4+0x1)}),_0x32339d===this[_0x5317('0x27')]&&this[_0x5317('0x1e')](null);},{'priority':_0x5317('0x5d')}),this[_0x5317('0x45')](_0x367ed0,_0x5317('0x34'),(_0x14ed73,_0x4b9e34)=>{this[_0x5317('0x1e')](_0x4b9e34);}),this[_0x5317('0x45')](_0x367ed0,'blur',()=>{this[_0x5317('0x1e')](null);}),this[_0x5317('0x3f')]['listenTo'](document,_0x5317('0x2e'),(_0x4b06b4,_0x531809)=>{_0x531809[_0x5317('0x58')]===_0x5e1017['esc']&&_0x45c73d[_0x5317('0x36')]&&(this[_0x5317('0x3b')][_0x5317('0x3a')](_0x45c73d['content'][_0x5317('0x17')]),this['_hideBalloon'](),_0x531809['stopPropagation'](),_0x531809[_0x5317('0x56')]());}),this['_domEmitter'][_0x5317('0x45')](document,'mousedown',(_0x4f66d2,_0x193602)=>{const _0x5b4882=_0x193602[_0x5317('0x61')];_0x45c73d[_0x5317('0x36')]&&_0x45c73d[_0x5317('0x4e')][_0x5317('0x4b')](_0x5b4882)||_0x1f3f25[_0x5317('0x3d')][_0x5317('0x4e')]['contains'](_0x5b4882)||_0x4f66d2[_0x5317('0x2c')]||this['activeAnnotation']&&this[_0x5317('0x27')][_0x5317('0x43')][_0x5317('0x5c')](_0x30268b=>_0x30268b[_0x5317('0x4b')](_0x5b4882))||(this[_0x5317('0x3b')]['clear'](),this[_0x5317('0x7')](),this[_0x5317('0x1e')](null));});const _0x268f0b=this[_0x5317('0x47')]instanceof _0x4092fc?this[_0x5317('0x47')][_0x5317('0x4f')]:new _0x2c087b([this[_0x5317('0x47')]]);for(const _0x4f3229 of _0x268f0b)this[_0x5317('0x11')](_0x4f3229);this['listenTo'](_0x268f0b,_0x5317('0x3a'),(_0x374022,_0x2c6cf3)=>{this[_0x5317('0x45')](_0x2c6cf3,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2c6cf3);});}),this['listenTo'](_0x268f0b,_0x5317('0x16'),(_0x48cd5b,_0x307995)=>{_0x307995[_0x5317('0x53')][_0x5317('0x1c')]('EditorAnnotations')&&this[_0x5317('0x4d')](_0x307995[_0x5317('0x53')][_0x5317('0x1')](_0x5317('0x13')));}),window[_0x5317('0x14')](_0x5317('0xd'),this['_refreshPositioningDebounced']),this[_0x5317('0x24')]();}[_0x5317('0x1e')](_0x191459){if(_0x191459===this['activeAnnotation'])return;const _0x416cef=this[_0x5317('0x47')][_0x5317('0x53')][_0x5317('0x1')](_0x198cb3);if(_0x416cef[_0x5317('0x2a')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x191459,'disableAnimationOnActivatedAnnotation':!0x0}),_0x191459)_0x416cef['getSidebarItemView'](_0x191459)?this[_0x5317('0xa')](_0x191459):this[_0x5317('0x7')]();else this[_0x5317('0x7')]();this[_0x5317('0x27')]=_0x191459;}[_0x5317('0x51')](){if(!this[_0x5317('0x1a')])throw new _0x2c47e5(_0x5317('0x39'),this);this[_0x5317('0x1e')](null);const _0x1861e6=this[_0x5317('0x47')][_0x5317('0x53')][_0x5317('0x1')](_0x198cb3);this[_0x5317('0x7')](),Array['from'](this[_0x5317('0x54')]['values'](),_0x4c3f35=>_0x4c3f35[_0x5317('0x50')]()),this[_0x5317('0x54')]['clear'](),_0x1861e6[_0x5317('0x5a')](this['annotations']),this[_0x5317('0x31')](),this['_domEmitter'][_0x5317('0x31')](),this['context']instanceof _0x4092fc&&this['stopListening'](this[_0x5317('0x47')][_0x5317('0x4f')]);for(const _0x45d07c of Array[_0x5317('0x26')](this[_0x5317('0x2')]))this['_destroyEditorAnnotationsIntegration'](_0x45d07c);window['removeEventListener']('resize',this[_0x5317('0xb')]),this[_0x5317('0xb')][_0x5317('0x1d')](),this[_0x5317('0x0')]=[],this[_0x5317('0x1a')]=!0x1,this[_0x5317('0x3e')]=null;}[_0x5317('0x50')](){this[_0x5317('0x1a')]&&this[_0x5317('0x51')](),this['bodyCollection'][_0x5317('0x28')]();}['_integrateWithEditorAnnotations'](_0x221bd5){const _0x2c62af=_0x221bd5['plugins'][_0x5317('0x1')](_0x1828fd),_0xdd95c9=this['context'][_0x5317('0x53')][_0x5317('0x1')](_0x198cb3),_0x385f2c=this['annotations'],_0x42a47c=this[_0x5317('0x62')],_0x34688f=()=>{const _0x3529b9=_0x2c62af['getOrderedSelectedAnnotations']({'annotations':this[_0x5317('0x3e')],'activeAnnotation':this[_0x5317('0x27')]});this[_0x5317('0x2d')](_0x3529b9),this[_0x5317('0x1e')](_0x3529b9[0x0]||null);};this['listenTo'](_0x2c62af,_0x5317('0x2a'),_0x34688f),this[_0x5317('0x45')](_0x2c62af,'blur',(_0xe00ee,{isAnnotationTracked:_0x37edd9})=>{this['activeAnnotation']&&_0x37edd9(this[_0x5317('0x27')])&&(this[_0x5317('0x2d')]([]),this[_0x5317('0x1e')](null));}),this[_0x5317('0x45')](_0x2c62af,'uiUpdate',()=>{this[_0x5317('0xb')]();}),this[_0x5317('0x45')](_0x385f2c,_0x5317('0x4a'),_0x532fb3=>{_0x2c62af[_0x5317('0x1b')]()&&_0x532fb3[_0x5317('0x40')]();},{'priority':_0x5317('0x3')}),this['listenTo'](this[_0x5317('0x3f')],_0x5317('0x18'),(_0x12434a,_0x546c7a)=>{const _0x588e0a=_0x546c7a['target'];_0x42a47c[_0x5317('0x36')]&&_0x42a47c[_0x5317('0x4e')][_0x5317('0x4b')](_0x588e0a)||_0xdd95c9[_0x5317('0x3d')][_0x5317('0x4e')][_0x5317('0x4b')](_0x588e0a)||this[_0x5317('0x27')]&&_0x2c62af['hasDomSelection']()&&(_0x34688f(),_0x12434a[_0x5317('0x2c')]=!0x0);},{'priority':'high'}),this[_0x5317('0x2')][_0x5317('0x3a')](_0x2c62af);}[_0x5317('0x4d')](_0x3fea15){_0x3fea15&&(this['stopListening'](_0x3fea15),this['_editorAnnotations'][_0x5317('0x16')](_0x3fea15));}['_setSelectedAnnotations'](_0x78d466){for(const _0x2bf327 of this['_selectedAnnotations'])_0x78d466[_0x5317('0x5f')](_0x2bf327)||this[_0x5317('0x3b')][_0x5317('0x21')](_0x2bf327[_0x5317('0x3d')]);this[_0x5317('0x0')]=_0x78d466;}[_0x5317('0x24')](){const _0x4cbdb8=this[_0x5317('0x62')];this[_0x5317('0x3e')][_0x5317('0x49')](),_0x4cbdb8[_0x5317('0x36')]&&this['_updateBalloonPosition']();}[_0x5317('0xa')](_0x3f71a9){if(this['_manuallyClosedAnnotationViews']['has'](_0x3f71a9[_0x5317('0x3d')]))return;const _0x5415bb=this['balloonPanelView']['content']['first'];_0x5415bb!==_0x3f71a9['view']?(_0x5415bb&&this[_0x5317('0x55')](_0x5415bb),this[_0x5317('0x52')](_0x3f71a9[_0x5317('0x3d')]),this[_0x5317('0x62')][_0x5317('0x30')][_0x5317('0x2f')](),this['balloonPanelView'][_0x5317('0x30')]['add'](_0x3f71a9[_0x5317('0x3d')]),this[_0x5317('0xf')]()):this[_0x5317('0xf')]();}[_0x5317('0xf')](){const _0x4666dd=this[_0x5317('0x62')][_0x5317('0x30')]['first'],_0xab752f=_0x4666dd&&this[_0x5317('0x3e')][_0x5317('0x32')](_0x4666dd);if(!_0xab752f||!this[_0x5317('0x54')][_0x5317('0x1c')](_0xab752f))return;const _0x248ddc=this[_0x5317('0x54')]['get'](_0xab752f)['element'],_0x6b5622=function(){const _0x19d3ed=_0x3b9b2f[_0x5317('0x46')];return[_0x19d3ed[_0x5317('0x57')],_0x19d3ed[_0x5317('0x3c')],_0x19d3ed[_0x5317('0x15')],_0x19d3ed[_0x5317('0x33')],_0x19d3ed[_0x5317('0x10')],_0x19d3ed[_0x5317('0x12')]];}();this[_0x5317('0x62')][_0x5317('0x22')]({'target':_0x248ddc,'positions':_0x6b5622});}['_hideBalloon'](){const _0x5bde29=this[_0x5317('0x62')],_0x3c4e13=_0x5bde29[_0x5317('0x30')][_0x5317('0x17')];_0x3c4e13&&(this[_0x5317('0x55')](_0x3c4e13),_0x5bde29[_0x5317('0x4')](),_0x5bde29['content'][_0x5317('0x2f')]());}[_0x5317('0x52')](_0x2dd34b){this[_0x5317('0x45')](_0x2dd34b,_0x5317('0x5e'),()=>this[_0x5317('0xf')]()),this[_0x5317('0x45')](_0x2dd34b,'Esc',(_0x3be7cb,_0x5004fa)=>{this['_manuallyClosedAnnotationViews'][_0x5317('0x3a')](_0x2dd34b),this[_0x5317('0x7')](),_0x5004fa();});}[_0x5317('0x55')](_0x4ec161){this[_0x5317('0x31')](_0x4ec161);}}
|