@ckeditor/ckeditor5-comments 32.0.0 → 33.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/comments.js +5 -0
  4. package/build/translations/bs.js +1 -0
  5. package/build/translations/cs.js +1 -0
  6. package/build/translations/da.js +1 -0
  7. package/build/translations/de-ch.js +1 -0
  8. package/build/translations/de.js +1 -0
  9. package/build/translations/el.js +1 -0
  10. package/build/translations/en-au.js +1 -0
  11. package/build/translations/es.js +1 -0
  12. package/build/translations/et.js +1 -0
  13. package/build/translations/fr.js +1 -0
  14. package/build/translations/gl.js +1 -0
  15. package/build/translations/hi.js +1 -0
  16. package/build/translations/hr.js +1 -0
  17. package/build/translations/hu.js +1 -0
  18. package/build/translations/id.js +1 -0
  19. package/build/translations/it.js +1 -0
  20. package/build/translations/ja.js +1 -0
  21. package/build/translations/ko.js +1 -0
  22. package/build/translations/nl.js +1 -0
  23. package/build/translations/no.js +1 -0
  24. package/build/translations/pl.js +1 -0
  25. package/build/translations/pt-br.js +1 -0
  26. package/build/translations/ro.js +1 -0
  27. package/build/translations/ru.js +1 -0
  28. package/build/translations/sk.js +1 -0
  29. package/build/translations/sr-latn.js +1 -0
  30. package/build/translations/sr.js +1 -0
  31. package/build/translations/tk.js +1 -0
  32. package/build/translations/tr.js +1 -0
  33. package/build/translations/ug.js +1 -0
  34. package/build/translations/uk.js +1 -0
  35. package/build/translations/zh-cn.js +1 -0
  36. package/build/translations/zh.js +1 -0
  37. package/lang/translations/el.po +79 -0
  38. package/package.json +4 -9
  39. package/src/annotations/annotation.js +1 -1
  40. package/src/annotations/annotationcollection.js +1 -1
  41. package/src/annotations/annotations.js +1 -1
  42. package/src/annotations/annotationsuis.js +1 -1
  43. package/src/annotations/editorannotations.js +1 -1
  44. package/src/annotations/inlineannotations.js +1 -1
  45. package/src/annotations/narrowsidebar.js +1 -1
  46. package/src/annotations/sidebar.js +1 -1
  47. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  48. package/src/annotations/view/annotationview.js +1 -1
  49. package/src/annotations/view/sidebaritemview.js +1 -1
  50. package/src/annotations/view/sidebarview.js +1 -1
  51. package/src/annotations/widesidebar.js +1 -1
  52. package/src/comments/addcommentthreadcommand.js +1 -1
  53. package/src/comments/commentsediting.js +1 -1
  54. package/src/comments/commentsrepository.js +1 -1
  55. package/src/comments/commentsui.js +1 -1
  56. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  57. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  58. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  59. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  60. package/src/comments/ui/commentthreadcontroller.js +1 -1
  61. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  62. package/src/comments/ui/view/basecommentview.js +1 -1
  63. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  64. package/src/comments/ui/view/commentcontentview.js +1 -1
  65. package/src/comments/ui/view/commentinputview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.js +1 -1
  67. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  68. package/src/comments/ui/view/commentthreadview.js +1 -1
  69. package/src/comments/ui/view/commentview.js +1 -1
  70. package/src/comments/ui/view/confirmmixin.js +1 -1
  71. package/src/comments/ui/view/confirmview.js +1 -1
  72. package/src/comments.js +1 -1
  73. package/src/commentsonly.js +1 -1
  74. package/src/{utils/getmarkerdomelement.js → index.js} +1 -1
  75. package/src/utils/common-translations.js +1 -1
  76. package/src/utils/createmutationobserver.js +1 -1
  77. package/theme/annotation-inline.css +1 -1
  78. package/theme/annotation.css +1 -1
  79. package/theme/comment.css +1 -1
  80. package/theme/commentinput.css +1 -1
  81. package/theme/commentmarker.css +1 -1
  82. package/theme/commentthread.css +1 -1
  83. package/theme/icons/add-comment.svg +1 -1
  84. package/theme/icons/edit-comment.svg +1 -1
  85. package/theme/icons/remove-comment.svg +1 -1
  86. package/theme/sidebar-narrow.css +1 -1
  87. package/theme/sidebar.css +1 -1
  88. package/src/utils/getdatetimeformatter.js +0 -23
  89. package/src/utils/trim-html.js +0 -23
@@ -0,0 +1 @@
1
+ !function(e){const n=e.nl=e.nl||{};n.dictionary=Object.assign(n.dictionary||{},{"Are you sure?":"Weet u het zeker?",Comment:"Opmerking","Comment editor":"Opmerking editor","Delete comment thread?":"Discussie verwijderen?","Delete comment?":"Opmerking verwijderen?",Edit:"Wijzigen",No:"Nee",NUMBER_OF_COMMENTS:["%0 opmerking","%0 opmerkingen"],PENDING_ACTION_COMMENT_THREAD:"De discussie bevat openstaande wijzigingen.",Remove:"Verwijderen","Reply...":"Beantwoorden...",Submit:"Opslaan",TOO_LONG_COMMENT_ALERT:"De opmerking is te lang. De opmerking bevat %0 tekens terwijl er %1 tekens toegestaan zijn.","Write a comment...":"Schrijf een opmerking...",Yes:"Ja"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const n=e.no=e.no||{};n.dictionary=Object.assign(n.dictionary||{},{"Are you sure?":"Er du sikker?",Comment:"Kommenter","Comment editor":"Redigeringsverktøy for kommentarer","Delete comment thread?":"Slett kommentartråd?","Delete comment?":"Slett kommentar?",Edit:"Rediger",No:"Nei",NUMBER_OF_COMMENTS:["%0 kommentar","%0 kommentarer"],PENDING_ACTION_COMMENT_THREAD:"Ulagrede endringer i kommentartråden.",Remove:"Fjern","Reply...":"Svar...",Submit:"Lagre",TOO_LONG_COMMENT_ALERT:"Kommentarinnhold er for langt. Kommentaren din har %0 tegn, men grensen er %1 tegn.","Write a comment...":"Skriv en kommentar...",Yes:"Ja"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e.pl=e.pl||{};t.dictionary=Object.assign(t.dictionary||{},{"Are you sure?":"Jesteś pewny/pewna?",Comment:"Skomentuj","Comment editor":"Edytor komentarza","Delete comment thread?":"Usunąć wątek komentarzy?","Delete comment?":"Usunąć komentarz?",Edit:"Edytuj",No:"Nie",NUMBER_OF_COMMENTS:["%0 Komentarz","%0 Komentarze","%0 Komentarzy","%0 Komentarza"],PENDING_ACTION_COMMENT_THREAD:"Niezapisana zmiana w wątku komentarzy.",Remove:"Usuń","Reply...":"Odpowiedz...",Submit:"Zatwierdź",TOO_LONG_COMMENT_ALERT:'Komentarz jest zbyt długi. Twój komentarz ma %0 znaków. Dopuszczalny limit to %1 znaków."',"Write a comment...":"Napisz komentarz...",Yes:"Tak"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const o=e["pt-br"]=e["pt-br"]||{};o.dictionary=Object.assign(o.dictionary||{},{"Are you sure?":"Você tem certeza?",Comment:"Comentário","Comment editor":"Editar comentário","Delete comment thread?":"Excluir segmento de comentários?","Delete comment?":"Excluir comentário?",Edit:"Editar",No:"Não",NUMBER_OF_COMMENTS:["%0 Comentários","%0 Comentários"],PENDING_ACTION_COMMENT_THREAD:"Alteração não salva no segmento de comentários.",Remove:"Remover","Reply...":"Responder...",Submit:"Enviar",TOO_LONG_COMMENT_ALERT:"O conteúdo do comentário é muito longo. Seu comentário possui %0 caracteres, mas o limite é de %1 caracteres.","Write a comment...":"Escrever um comentário...",Yes:"Sim"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e.ro=e.ro||{};t.dictionary=Object.assign(t.dictionary||{},{"Are you sure?":"Sunteți sigur?",Comment:"Comentează","Comment editor":"Editor de comentarii","Delete comment thread?":"Ștergeți firul de comentarii? ","Delete comment?":"Ștergi comentariul?",Edit:"Editează",No:"Nu",NUMBER_OF_COMMENTS:["%0 Comment","%0 Comment","%0 Comentarii"],PENDING_ACTION_COMMENT_THREAD:"O schimbare nesalvată în firul de comentarii.",Remove:"Șterge","Reply...":"Răspunde...",Submit:"Trimite",TOO_LONG_COMMENT_ALERT:"Conținutul comentariului este prea lung. Comentariul tău are %0 caractere, dar limita este %1 caractere.","Write a comment...":"Scrie un comentariu...",Yes:"Da"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e.ru=e.ru||{};t.dictionary=Object.assign(t.dictionary||{},{"Are you sure?":"Вы уверены?",Comment:"Комментарий","Comment editor":"Редактор комментариев","Delete comment thread?":"Удалить ветку комментариев?","Delete comment?":"Удалить комментарий?",Edit:"Редактировать",No:"Нет",NUMBER_OF_COMMENTS:["%0 Комментарий","%0 Комментариев","%0 Комментариев","%0 Комментария"],PENDING_ACTION_COMMENT_THREAD:"Изменения в ветке комментариев не сохранены.",Remove:"Удалить","Reply...":"Ответ...",Submit:"Отправить",TOO_LONG_COMMENT_ALERT:"Комментарий слишком длинный. Ваш комментарий состоит из %0 символов, тогда как предел %1 символов.","Write a comment...":"Введите комментарий...",Yes:"Да"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const o=e.sk=e.sk||{};o.dictionary=Object.assign(o.dictionary||{},{"Are you sure?":"Ste si istý?",Comment:"Komentár","Comment editor":"Editor komentárov","Delete comment thread?":"Vymazať vlákno komentáru?","Delete comment?":"Vymazať komentár?",Edit:"Upraviť",No:"Nie",NUMBER_OF_COMMENTS:["%0 Komentár","%0 Komentáre","%0 Komentárov","%0 komentárov"],PENDING_ACTION_COMMENT_THREAD:"Vo vlákne komentáru sú neuložené zmeny.",Remove:"Odstrániť","Reply...":"Odpovedať...",Submit:"Potvrdiť",TOO_LONG_COMMENT_ALERT:"Obsah komentára je príliš dlhý. Komentár ma %0 znakov, limit je %1 znakov.","Write a comment...":"Vložiť komentár...",Yes:"Áno"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const a=e["sr-latn"]=e["sr-latn"]||{};a.dictionary=Object.assign(a.dictionary||{},{"Are you sure?":"Jesi siguran?",Comment:"Napomena","Comment editor":"Uređivač napomene","Delete comment thread?":"Brišete nit napomene?","Delete comment?":"Brišete napomenu?",Edit:"Uredi",No:"Ne",NUMBER_OF_COMMENTS:["","",""],PENDING_ACTION_COMMENT_THREAD:"Nesačuvana promena u niti napomena.",Remove:"Odstrani","Reply...":"Odgovori",Submit:"Pošalji",TOO_LONG_COMMENT_ALERT:"Napomena je dugačka. Sadrži %0 karaktera, ali maximalno je dozvoljeno %1 karaktera.","Write a comment...":"Napiši napomenu",Yes:"Da"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e.sr=e.sr||{};t.dictionary=Object.assign(t.dictionary||{},{"Are you sure?":"Сигуран си?",Comment:"Напомена","Comment editor":"Уређивач напомене ","Delete comment thread?":"Бришете нит напомене?","Delete comment?":"Бришете напомену?",Edit:"Уреди",No:"Не",NUMBER_OF_COMMENTS:["","",""],PENDING_ACTION_COMMENT_THREAD:"Несачувана измена у нити напомена.",Remove:"Одстрани","Reply...":"Одговори",Submit:"Пошаљи",TOO_LONG_COMMENT_ALERT:"Напомена је дугачка. Садржи %0 карактера, али је дозвољено максимално %1 карактера.","Write a comment...":"Напиши напомену",Yes:"Да"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const i=e.tk=e.tk||{};i.dictionary=Object.assign(i.dictionary||{},{"Are you sure?":"Ynanýarsyňyzmy?",Comment:"Teswir","Comment editor":"Teswir redaktory","Delete comment thread?":"Teswir bölümini pozuň?","Delete comment?":"Teswir pozuň?",Edit:"Redaktirläň",No:"Ýok",NUMBER_OF_COMMENTS:["%0 Teswir","%0 Teswir"],PENDING_ACTION_COMMENT_THREAD:"Teswirler bölüminde saklanmadyk üýtgeşme.",Remove:"Aýyr","Reply...":"Jogap...",Submit:"Iberiň",TOO_LONG_COMMENT_ALERT:"Düşündiriş mazmuny gaty uzyn. Teswiriňizde %0 simwol bar, ýöne çäk %1 simwol.","Write a comment...":"Teswir ýazyň...",Yes:"Hawa"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(i){const e=i.tr=i.tr||{};e.dictionary=Object.assign(e.dictionary||{},{"Are you sure?":"Emin misiniz?",Comment:"Yorum","Comment editor":"Yorum Düzenleyici","Delete comment thread?":"Yorum dizesi silinsin mi?","Delete comment?":"Yorum silinsin mi?",Edit:"Düzenle",No:"Hayır",NUMBER_OF_COMMENTS:["%0 Yorum","%0 Yorum"],PENDING_ACTION_COMMENT_THREAD:"Yorum dizisinde kaydedilmemiş değişiklikler var.",Remove:"Sil","Reply...":"Cevapla...",Submit:"Gönder",TOO_LONG_COMMENT_ALERT:"Yorum içeriğiniz çok uzun. Yorununuz %0 karakterden oluşuyor ama %1 karakter sayısına izin veriliyor.","Write a comment...":"Bir yorum yaz...",Yes:"Evet"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e.ug=e.ug||{};t.dictionary=Object.assign(t.dictionary||{},{"Are you sure?":"جەزملەشتۈرەمسىز؟",Comment:"ئىنكاس","Comment editor":"ئىنكاس تەھرىرلىگۈچ","Delete comment thread?":"ئىنكاس باغلىمىنى ئۆچۈرەمسىز؟","Delete comment?":"ئىنكاسنى ئۆچۈرەمسىز؟",Edit:"تەھرىرلەش",No:"ياق",NUMBER_OF_COMMENTS:["%0 ئىنكاس","%0 ئىنكاس"],PENDING_ACTION_COMMENT_THREAD:"",Remove:"چىقىرىۋېتىش","Reply...":"جاۋاب...",Submit:"يوللاش",TOO_LONG_COMMENT_ALERT:"","Write a comment...":"ئىنكاس يېزىش...",Yes:"ھەئە"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e.uk=e.uk||{};t.dictionary=Object.assign(t.dictionary||{},{"Are you sure?":"Ви впевнені?",Comment:"Коментар","Comment editor":"Редактор коментарів","Delete comment thread?":"Видати ланцюжок коментарів?","Delete comment?":"Видалити коментар?",Edit:"Редагувати",No:"Ні",NUMBER_OF_COMMENTS:["%0 Коментар","%0 Коментаря","%0 Коментарів","%0 Коментарів"],PENDING_ACTION_COMMENT_THREAD:"Незбережена зміна ланцюжка коментарів.",Remove:"Видалити","Reply...":"Відповісти...",Submit:"Відправити",TOO_LONG_COMMENT_ALERT:"Коментар задовгий. Ваш коментар містить %0 знак із %1 допустимих.","Write a comment...":"Написати коментар...",Yes:"Так"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e["zh-cn"]=e["zh-cn"]||{};t.dictionary=Object.assign(t.dictionary||{},{"Are you sure?":"你确定吗?",Comment:"评论","Comment editor":"评论插件","Delete comment thread?":"删除这组评论?","Delete comment?":"删除这条评论?",Edit:"编辑",No:"取消",NUMBER_OF_COMMENTS:"%0 条评论",PENDING_ACTION_COMMENT_THREAD:"评论区有未保存内容",Remove:"删除","Reply...":"回复...",Submit:"提交",TOO_LONG_COMMENT_ALERT:"评论内容过长。评论内容长度必须大于%0个字符而小于%1个字符。","Write a comment...":"编写评论...",Yes:"确定"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e.zh=e.zh||{};t.dictionary=Object.assign(t.dictionary||{},{"Are you sure?":"確定做此操作?",Comment:"留言","Comment editor":"留言編輯器","Delete comment thread?":"刪除討論串?","Delete comment?":"刪除留言?",Edit:"編輯",No:"先不要",NUMBER_OF_COMMENTS:"%0 則留言",PENDING_ACTION_COMMENT_THREAD:"討論串尚未儲存。",Remove:"刪除","Reply...":"回覆...",Submit:"送出",TOO_LONG_COMMENT_ALERT:"留言內容太長。你的留言有 %0 個字,上限字數為 %1。","Write a comment...":"撰寫留言...",Yes:"好"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1,79 @@
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Greek (https://www.transifex.com/ckeditor/teams/11143/el/)\n"
16
+ "Language: el\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "The label for the comment editor."
20
+ msgid "Comment editor"
21
+ msgstr "Επεξεργαστής σχολίου"
22
+
23
+ msgctxt "The label for the number of comments."
24
+ msgid "NUMBER_OF_COMMENTS"
25
+ msgid_plural "%0 Comments"
26
+ msgstr[0] "%0 Σχόλια"
27
+ msgstr[1] "%0 Σχόλια"
28
+
29
+ msgctxt "The alert displayed for a comment that is too long."
30
+ msgid "TOO_LONG_COMMENT_ALERT"
31
+ msgstr "Το περιεχόμενο του σχολείου είναι μεγάλο. Το σχόλιό σας έχει %0 χαρακτήρες και το όριο είναι %1 χαρακτήρες."
32
+
33
+ msgctxt "The placeholder for the reply field."
34
+ msgid "Reply..."
35
+ msgstr "Απάντηση..."
36
+
37
+ msgctxt "The placeholder for the new commend field."
38
+ msgid "Write a comment..."
39
+ msgstr "Γράψτε ένα σχόλιο..."
40
+
41
+ msgctxt "The label for the button that enables editing a comment."
42
+ msgid "Edit"
43
+ msgstr "Επεξεργασία"
44
+
45
+ msgctxt "The label for the button that deletes a comment."
46
+ msgid "Remove"
47
+ msgstr "Απομάκρυνση"
48
+
49
+ msgctxt "The label for for the button that submits a comment."
50
+ msgid "Submit"
51
+ msgstr "Υποβολή"
52
+
53
+ msgctxt "The confirmation message shown after pressing the delete comment button."
54
+ msgid "Delete comment?"
55
+ msgstr "Διαγραφή σχολίου;"
56
+
57
+ msgctxt "The confirmation message shown after pressing the delete comment thread button."
58
+ msgid "Delete comment thread?"
59
+ msgstr "Διαγραφή νήματος σχολίους"
60
+
61
+ msgctxt "The label for confirming an action."
62
+ msgid "Yes"
63
+ msgstr "Ναι"
64
+
65
+ msgctxt "The label for rejecting an action."
66
+ msgid "No"
67
+ msgstr "Όχι"
68
+
69
+ msgctxt "The label for confirming a dangerous action."
70
+ msgid "Are you sure?"
71
+ msgstr "Είστε σίγουροις"
72
+
73
+ msgctxt "The tooltip for the comment toolbar button."
74
+ msgid "Comment"
75
+ msgstr "Σχόλιο"
76
+
77
+ msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
78
+ msgid "PENDING_ACTION_COMMENT_THREAD"
79
+ msgstr "Μη αποθηκευμένη αλλαγή σε νήμα σχολίου."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "32.0.0",
3
+ "version": "33.0.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/)",
@@ -29,15 +29,10 @@
29
29
  "discussion",
30
30
  "discussions"
31
31
  ],
32
+ "main": "src/index.js",
32
33
  "dependencies": {
33
- "@ckeditor/ckeditor5-autoformat": "^32.0.0",
34
- "@ckeditor/ckeditor5-basic-styles": "^32.0.0",
35
- "@ckeditor/ckeditor5-collaboration-core": "^32.0.0",
36
- "@ckeditor/ckeditor5-essentials": "^32.0.0",
37
- "@ckeditor/ckeditor5-list": "^32.0.0",
38
- "@ckeditor/ckeditor5-utils": "^32.0.0",
39
- "ckeditor5": "^32.0.0",
40
- "date-fns": "^2.17.0",
34
+ "ckeditor5": "^33.0.0",
35
+ "ckeditor5-collaboration": "^33.0.0",
41
36
  "lodash-es": "^4.17.11"
42
37
  }
43
38
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ade=['render','target','_id','item','_isTargetElementVisible','remove','stopListening','add','isActive','_type','refreshVisibility','isVisible','targetRect','_target','focusableElements','destroy','getClientRects','clear','focusTracker','view','_assertCorrectTarget','element','offsetParent','mainView','function'];(function(_0x5cf400,_0x5ade59){const _0x410122=function(_0x3f8687){while(--_0x3f8687){_0x5cf400['push'](_0x5cf400['shift']());}};_0x410122(++_0x5ade59);}(_0x5ade,0x1ea));const _0x4101=function(_0x5cf400,_0x5ade59){_0x5cf400=_0x5cf400-0x0;let _0x410122=_0x5ade[_0x5cf400];return _0x410122;};import{CKEditorError as _0x1d16c9,Rect as _0xd51009,Collection as _0x365ed9,mix as _0x2df483,ObservableMixin as _0x2edda8}from'ckeditor5/src/utils';import{isElement as _0x21a448}from'lodash-es';export default class p{constructor({view:_0x2d9e2a,target:_0x49949e,type:_0x3450b8,isVisible:_0x1f3f8e=!0x0}){this['view']=_0x2d9e2a,this[_0x4101('0x4')][_0x4101('0x6')]||this[_0x4101('0x4')][_0x4101('0xa')](),this['_type']=_0x3450b8,this[_0x4101('0x17')]=_0x49949e,this[_0x4101('0x5')](),this['focusableElements']=new _0x365ed9([this[_0x4101('0x4')][_0x4101('0x6')]],{'idProperty':_0x4101('0xc')}),this[_0x4101('0x18')]['on'](_0x4101('0x11'),(_0x1fb597,_0x9073fd)=>{this[_0x4101('0x4')][_0x4101('0x3')][_0x4101('0x11')](_0x9073fd);}),this[_0x4101('0x18')]['on'](_0x4101('0xf'),(_0x2d4b8a,_0x47b53d)=>{this[_0x4101('0x4')][_0x4101('0x3')]['remove'](_0x47b53d);}),this['set'](_0x4101('0x15'),_0x1f3f8e);}get['type'](){return _0x4101('0x9')==typeof this[_0x4101('0x13')]?this['_type']():this[_0x4101('0x13')];}get['innerView'](){return this[_0x4101('0x4')][_0x4101('0x8')];}get[_0x4101('0xb')](){return'function'==typeof this[_0x4101('0x17')]?this['_target']():this['_target'];}get[_0x4101('0x16')](){const _0x20aba9=this['target'];return this[_0x4101('0x5')](),null!==_0x20aba9&&this[_0x4101('0xe')]()?new _0xd51009(_0x20aba9):null;}get[_0x4101('0x12')](){return this[_0x4101('0x4')][_0x4101('0x12')];}set[_0x4101('0x12')](_0x2a69a4){this['view'][_0x4101('0x12')]=_0x2a69a4,this[_0x4101('0x4')][_0x4101('0x8')]['isActive']=_0x2a69a4;}['updateTargetRect'](){this['view'][_0x4101('0x16')]=this[_0x4101('0x16')];}[_0x4101('0x0')](){this[_0x4101('0x18')][_0x4101('0x10')](),this[_0x4101('0x18')][_0x4101('0x2')](),this[_0x4101('0x10')]();}[_0x4101('0x14')](){this[_0x4101('0x15')]=this[_0x4101('0xe')]();}[_0x4101('0xe')](){const _0xf869e6=this[_0x4101('0xb')];if(_0x21a448(_0xf869e6)){const _0x1f6e99=_0xf869e6[_0x4101('0x1')]()[_0x4101('0xd')](0x0),_0x1e5de6=_0xf869e6[_0x4101('0x7')];if(!_0x1f6e99||!_0x1e5de6)return!0x1;}return!0x0;}[_0x4101('0x5')](){const _0x43c9e2=this[_0x4101('0xb')];if(!(null===_0x43c9e2||_0x43c9e2 instanceof _0xd51009||_0x21a448(_0x43c9e2)))throw new _0x1d16c9('annotation-invalid-target',null,{'target':_0x43c9e2});}}_0x2df483(p,_0x2edda8);
23
+ const _0x15f1=['clear','isVisible','focusTracker','render','view','type','add','element','_type','_target','focusableElements','_isTargetElementVisible','targetRect','offsetParent','innerView','_assertCorrectTarget','refreshVisibility','getClientRects','target','_id','mainView','isActive','stopListening','set','annotation-invalid-target'];(function(_0xda45d7,_0x15f1f9){const _0x533eeb=function(_0x4893b8){while(--_0x4893b8){_0xda45d7['push'](_0xda45d7['shift']());}};_0x533eeb(++_0x15f1f9);}(_0x15f1,0x9d));const _0x533e=function(_0xda45d7,_0x15f1f9){_0xda45d7=_0xda45d7-0x0;let _0x533eeb=_0x15f1[_0xda45d7];return _0x533eeb;};import{CKEditorError as _0x5ca36a,Rect as _0x55baec,Collection as _0x14b303,mix as _0x2ca081,ObservableMixin as _0x40716d}from'ckeditor5/src/utils';import{isElement as _0x1dd9a2}from'lodash-es';export default class p{constructor({view:_0x347a41,target:_0x34a865,type:_0x431b37,isVisible:_0x4ec95a=!0x0}){this[_0x533e('0x16')]=_0x347a41,this[_0x533e('0x16')][_0x533e('0x0')]||this[_0x533e('0x16')][_0x533e('0x15')](),this[_0x533e('0x1')]=_0x431b37,this['_target']=_0x34a865,this[_0x533e('0x8')](),this[_0x533e('0x3')]=new _0x14b303([this['view'][_0x533e('0x0')]],{'idProperty':_0x533e('0xc')}),this[_0x533e('0x3')]['on'](_0x533e('0x18'),(_0xd88faa,_0x12206f)=>{this[_0x533e('0x16')][_0x533e('0x14')]['add'](_0x12206f);}),this[_0x533e('0x3')]['on']('remove',(_0x4b2901,_0x472c44)=>{this[_0x533e('0x16')][_0x533e('0x14')]['remove'](_0x472c44);}),this[_0x533e('0x10')](_0x533e('0x13'),_0x4ec95a);}get[_0x533e('0x17')](){return'function'==typeof this[_0x533e('0x1')]?this[_0x533e('0x1')]():this['_type'];}get[_0x533e('0x7')](){return this[_0x533e('0x16')]['mainView'];}get['target'](){return'function'==typeof this[_0x533e('0x2')]?this[_0x533e('0x2')]():this['_target'];}get[_0x533e('0x5')](){const _0x29e1dc=this['target'];return this[_0x533e('0x8')](),null!==_0x29e1dc&&this['_isTargetElementVisible']()?new _0x55baec(_0x29e1dc):null;}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x4632f0){this[_0x533e('0x16')]['isActive']=_0x4632f0,this[_0x533e('0x16')][_0x533e('0xd')][_0x533e('0xe')]=_0x4632f0;}['updateTargetRect'](){this[_0x533e('0x16')][_0x533e('0x5')]=this[_0x533e('0x5')];}['destroy'](){this['focusableElements'][_0x533e('0xf')](),this[_0x533e('0x3')][_0x533e('0x12')](),this[_0x533e('0xf')]();}[_0x533e('0x9')](){this[_0x533e('0x13')]=this[_0x533e('0x4')]();}[_0x533e('0x4')](){const _0x494b5b=this[_0x533e('0xb')];if(_0x1dd9a2(_0x494b5b)){const _0x65f13f=_0x494b5b[_0x533e('0xa')]()['item'](0x0),_0x10eaa8=_0x494b5b[_0x533e('0x6')];if(!_0x65f13f||!_0x10eaa8)return!0x1;}return!0x0;}[_0x533e('0x8')](){const _0x3a765b=this['target'];if(!(null===_0x3a765b||_0x3a765b instanceof _0x55baec||_0x1dd9a2(_0x3a765b)))throw new _0x5ca36a(_0x533e('0x11'),null,{'target':_0x3a765b});}}_0x2ca081(p,_0x40716d);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x179d=['stopListening','length','delete','getByInnerView','focusableElements','change:isFocused','isFocused','from','getByView','annotationcollection-not-existing-item','innerView','view','get','focusTracker','_items','_getOrderInContent','annotationcollection-duplicated-item','remove','clear','listenTo','_innerViewToAnnotation','has','refreshPositioning','set','add','fire','left','sort','targetRect','top','getIndex','_viewToAnnotation','updateTargetRect','focus','_focusTracker'];(function(_0x33e300,_0x179ddd){const _0x3ecfa2=function(_0x5ba055){while(--_0x5ba055){_0x33e300['push'](_0x33e300['shift']());}};_0x3ecfa2(++_0x179ddd);}(_0x179d,0x13e));const _0x3ecf=function(_0x33e300,_0x179ddd){_0x33e300=_0x33e300-0x0;let _0x3ecfa2=_0x179d[_0x33e300];return _0x3ecfa2;};import{CKEditorError as _0x36332e,Collection as _0x214faf,FocusTracker as _0x1b3679}from'ckeditor5/src/utils';export default class x extends _0x214faf{constructor(_0x286a02=[]){super(),this[_0x3ecf('0x11')]=new Map(),this[_0x3ecf('0x1c')]=new Map(),this[_0x3ecf('0x1f')]=new _0x1b3679(),this[_0x3ecf('0x1f')]['on'](_0x3ecf('0x2'),(_0x36c84a,_0x7a54a,_0x13eed5)=>{_0x13eed5||this['fire']('blur');});for(const _0x29ec6f of _0x286a02)this['add'](_0x29ec6f);}get[_0x3ecf('0x3')](){return this[_0x3ecf('0x1f')][_0x3ecf('0x3')];}[_0x3ecf('0x15')](_0x318c4d){if(this[_0x3ecf('0x12')](_0x318c4d))throw new _0x36332e(_0x3ecf('0xd'),null);this[_0x3ecf('0x11')]['set'](_0x318c4d[_0x3ecf('0x7')],_0x318c4d),this[_0x3ecf('0x1c')][_0x3ecf('0x14')](_0x318c4d[_0x3ecf('0x8')],_0x318c4d);for(const _0x153b4b of _0x318c4d[_0x3ecf('0x1')])this['_focusTracker']['add'](_0x153b4b);this[_0x3ecf('0x10')](_0x318c4d[_0x3ecf('0x1')],'add',(_0x12af1c,_0x532e83)=>{this[_0x3ecf('0x1f')][_0x3ecf('0x15')](_0x532e83);}),this[_0x3ecf('0x10')](_0x318c4d[_0x3ecf('0x1')],_0x3ecf('0xe'),(_0x33a585,_0xc7274a)=>{this['_focusTracker'][_0x3ecf('0xe')](_0xc7274a);}),this[_0x3ecf('0x10')](_0x318c4d[_0x3ecf('0x8')]['focusTracker'],_0x3ecf('0x2'),(_0x1707a3,_0x41c5cf,_0x4f40f8)=>{_0x4f40f8&&this[_0x3ecf('0x16')](_0x3ecf('0x1e'),_0x318c4d);});const _0x1d97f5=this[_0x3ecf('0xc')](_0x318c4d);super['add'](_0x318c4d,_0x1d97f5),_0x318c4d[_0x3ecf('0x1d')]();}[_0x3ecf('0xe')](_0x13e9c7){if(!this[_0x3ecf('0x12')](_0x13e9c7))throw new _0x36332e(_0x3ecf('0x6'),null);this[_0x3ecf('0x20')](_0x13e9c7[_0x3ecf('0x8')][_0x3ecf('0xa')]),this[_0x3ecf('0x20')](_0x13e9c7[_0x3ecf('0x1')]);for(const _0x1a95ad of _0x13e9c7['focusableElements'])this['_focusTracker'][_0x3ecf('0xe')](_0x1a95ad);this[_0x3ecf('0x1c')][_0x3ecf('0x22')](_0x13e9c7[_0x3ecf('0x8')]),this['_innerViewToAnnotation'][_0x3ecf('0x22')](_0x13e9c7[_0x3ecf('0x7')]),super[_0x3ecf('0xe')](_0x13e9c7);}[_0x3ecf('0x0')](_0x11f7b6){return this['_innerViewToAnnotation'][_0x3ecf('0x9')](_0x11f7b6);}[_0x3ecf('0x5')](_0x968906){return this['_viewToAnnotation']['get'](_0x968906);}['destroy'](){super[_0x3ecf('0xf')](),this[_0x3ecf('0x20')](),this[_0x3ecf('0x11')][_0x3ecf('0xf')](),this[_0x3ecf('0x1c')][_0x3ecf('0xf')](),this[_0x3ecf('0x1f')]['destroy']();}[_0x3ecf('0x13')](){for(const _0x2af30b of this)_0x2af30b[_0x3ecf('0x1d')]();this['_sort']();}['_sort'](){const _0x2dac65=Array[_0x3ecf('0x4')](this)[_0x3ecf('0x18')]((_0x4bc007,_0x8f89d8)=>y(_0x4bc007['targetRect'],_0x8f89d8[_0x3ecf('0x19')]));for(let _0x185c40=_0x2dac65[_0x3ecf('0x21')]-0x1;_0x185c40>0x0;_0x185c40--){const _0x1d2cc0=_0x2dac65[_0x185c40];_0x185c40!==this[_0x3ecf('0x1b')](_0x1d2cc0)&&(this[_0x3ecf('0xe')](_0x1d2cc0),this['add'](_0x1d2cc0,_0x185c40));}}[_0x3ecf('0xc')](_0x4f1d5e){let _0x56bbeb=0x0;const _0x2d0574=_0x4f1d5e[_0x3ecf('0x19')];if(!_0x2d0574)return this[_0x3ecf('0xb')][_0x3ecf('0x21')];for(const _0x2f7368 of this){const _0x16555b=_0x2f7368[_0x3ecf('0x19')];if(_0x16555b){if(y(_0x2d0574,_0x16555b)<0x0)return _0x56bbeb;_0x56bbeb++;}}return _0x56bbeb;}}export function bindAnnotationCollections({source:_0x890f07,target:_0x25349b,filter:_0x389ef3}){for(const _0x2be3cb of _0x890f07)_0x389ef3(_0x2be3cb)&&_0x25349b[_0x3ecf('0x15')](_0x2be3cb);_0x25349b[_0x3ecf('0x10')](_0x890f07,_0x3ecf('0x15'),(_0xc089eb,_0x498a84)=>{_0x389ef3(_0x498a84)&&_0x25349b['add'](_0x498a84);}),_0x25349b[_0x3ecf('0x10')](_0x890f07,'remove',(_0x1da88e,_0x34f992)=>{_0x25349b['has'](_0x34f992)&&_0x25349b[_0x3ecf('0xe')](_0x34f992);});}function y(_0x5508b3,_0x3353c5){if(null===_0x5508b3&&null===_0x3353c5)return 0x0;if(null===_0x5508b3)return-0x1;if(null===_0x3353c5)return 0x1;const _0x5e3bbe=_0x5508b3[_0x3ecf('0x1a')]-_0x3353c5[_0x3ecf('0x1a')];return 0x0==_0x5e3bbe?_0x5508b3[_0x3ecf('0x17')]-_0x3353c5[_0x3ecf('0x17')]:_0x5e3bbe;}
23
+ const _0x1d50=['change:isFocused','fire','_sort','blur','add','_innerViewToAnnotation','remove','getIndex','clear','updateTargetRect','_viewToAnnotation','refreshPositioning','focusTracker','_items','_focusTracker','view','destroy','left','stopListening','has','_getOrderInContent','set','targetRect','listenTo','focusableElements','from','delete','length','get','innerView','top'];(function(_0x326b07,_0x1d50f3){const _0x32020d=function(_0x1e567a){while(--_0x1e567a){_0x326b07['push'](_0x326b07['shift']());}};_0x32020d(++_0x1d50f3);}(_0x1d50,0x137));const _0x3202=function(_0x326b07,_0x1d50f3){_0x326b07=_0x326b07-0x0;let _0x32020d=_0x1d50[_0x326b07];return _0x32020d;};import{CKEditorError as _0x4d9e63,Collection as _0x55dab7,FocusTracker as _0x287de0}from'ckeditor5/src/utils';export default class x extends _0x55dab7{constructor(_0x4f14ae=[]){super(),this[_0x3202('0x4')]=new Map(),this[_0x3202('0x9')]=new Map(),this[_0x3202('0xd')]=new _0x287de0(),this[_0x3202('0xd')]['on'](_0x3202('0x1e'),(_0x3005ee,_0x4fb247,_0x18062f)=>{_0x18062f||this[_0x3202('0x0')](_0x3202('0x2'));});for(const _0xe20619 of _0x4f14ae)this[_0x3202('0x3')](_0xe20619);}get['isFocused'](){return this[_0x3202('0xd')]['isFocused'];}[_0x3202('0x3')](_0x371154){if(this['has'](_0x371154))throw new _0x4d9e63('annotationcollection-duplicated-item',null);this[_0x3202('0x4')][_0x3202('0x14')](_0x371154[_0x3202('0x1c')],_0x371154),this['_viewToAnnotation'][_0x3202('0x14')](_0x371154[_0x3202('0xe')],_0x371154);for(const _0x142025 of _0x371154[_0x3202('0x17')])this['_focusTracker']['add'](_0x142025);this[_0x3202('0x16')](_0x371154[_0x3202('0x17')],_0x3202('0x3'),(_0x1fd6c9,_0x3fc271)=>{this['_focusTracker']['add'](_0x3fc271);}),this[_0x3202('0x16')](_0x371154['focusableElements'],'remove',(_0x2bf33b,_0x178f05)=>{this['_focusTracker'][_0x3202('0x5')](_0x178f05);}),this[_0x3202('0x16')](_0x371154['view'][_0x3202('0xb')],'change:isFocused',(_0x539d2f,_0x4a8485,_0xd71ef)=>{_0xd71ef&&this[_0x3202('0x0')]('focus',_0x371154);});const _0x47a8e5=this['_getOrderInContent'](_0x371154);super[_0x3202('0x3')](_0x371154,_0x47a8e5),_0x371154[_0x3202('0x8')]();}[_0x3202('0x5')](_0x33d6bc){if(!this['has'](_0x33d6bc))throw new _0x4d9e63('annotationcollection-not-existing-item',null);this[_0x3202('0x11')](_0x33d6bc[_0x3202('0xe')][_0x3202('0xb')]),this[_0x3202('0x11')](_0x33d6bc[_0x3202('0x17')]);for(const _0xb821aa of _0x33d6bc[_0x3202('0x17')])this[_0x3202('0xd')][_0x3202('0x5')](_0xb821aa);this['_viewToAnnotation'][_0x3202('0x19')](_0x33d6bc['view']),this['_innerViewToAnnotation'][_0x3202('0x19')](_0x33d6bc[_0x3202('0x1c')]),super['remove'](_0x33d6bc);}['getByInnerView'](_0x199ae4){return this[_0x3202('0x4')][_0x3202('0x1b')](_0x199ae4);}['getByView'](_0xb4adf5){return this[_0x3202('0x9')][_0x3202('0x1b')](_0xb4adf5);}['destroy'](){super['clear'](),this[_0x3202('0x11')](),this[_0x3202('0x4')][_0x3202('0x7')](),this[_0x3202('0x9')][_0x3202('0x7')](),this['_focusTracker'][_0x3202('0xf')]();}[_0x3202('0xa')](){for(const _0x326cc6 of this)_0x326cc6[_0x3202('0x8')]();this[_0x3202('0x1')]();}[_0x3202('0x1')](){const _0x4f0460=Array[_0x3202('0x18')](this)['sort']((_0x4e4d51,_0x4cd5ec)=>y(_0x4e4d51[_0x3202('0x15')],_0x4cd5ec[_0x3202('0x15')]));for(let _0x19dbdb=_0x4f0460['length']-0x1;_0x19dbdb>0x0;_0x19dbdb--){const _0x1c589c=_0x4f0460[_0x19dbdb];_0x19dbdb!==this[_0x3202('0x6')](_0x1c589c)&&(this[_0x3202('0x5')](_0x1c589c),this[_0x3202('0x3')](_0x1c589c,_0x19dbdb));}}[_0x3202('0x13')](_0x597b36){let _0x348899=0x0;const _0x5e4e07=_0x597b36[_0x3202('0x15')];if(!_0x5e4e07)return this[_0x3202('0xc')][_0x3202('0x1a')];for(const _0x10160b of this){const _0x164654=_0x10160b[_0x3202('0x15')];if(_0x164654){if(y(_0x5e4e07,_0x164654)<0x0)return _0x348899;_0x348899++;}}return _0x348899;}}export function bindAnnotationCollections({source:_0x5b8813,target:_0x2df6af,filter:_0x461046}){for(const _0x1061f9 of _0x5b8813)_0x461046(_0x1061f9)&&_0x2df6af['add'](_0x1061f9);_0x2df6af[_0x3202('0x16')](_0x5b8813,_0x3202('0x3'),(_0xf2d9ae,_0x35ba20)=>{_0x461046(_0x35ba20)&&_0x2df6af[_0x3202('0x3')](_0x35ba20);}),_0x2df6af[_0x3202('0x16')](_0x5b8813,_0x3202('0x5'),(_0x420bc6,_0x12a405)=>{_0x2df6af[_0x3202('0x12')](_0x12a405)&&_0x2df6af[_0x3202('0x5')](_0x12a405);});}function y(_0x23f9d9,_0x59c344){if(null===_0x23f9d9&&null===_0x59c344)return 0x0;if(null===_0x23f9d9)return-0x1;if(null===_0x59c344)return 0x1;const _0x404860=_0x23f9d9[_0x3202('0x1d')]-_0x59c344[_0x3202('0x1d')];return 0x0==_0x404860?_0x23f9d9[_0x3202('0x10')]-_0x59c344['left']:_0x404860;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x387a=['stopListening','_deactivateAllAnnotations','isVisible','refreshVisibility','Annotations','activate','_activateAnnotation','has','add','listenTo','change:isVisible','activeAnnotations','collection','source','pluginName','getByInnerView','_visibleAnnotations','destroy','_bindAnnotationsToVisibleAnnotations','remove','delete','_addActiveAnnotation','deactivateAll','refreshPositioning'];(function(_0x1d826a,_0x387a93){const _0x4d9dfb=function(_0x11c1b5){while(--_0x11c1b5){_0x1d826a['push'](_0x1d826a['shift']());}};_0x4d9dfb(++_0x387a93);}(_0x387a,0xe0));const _0x4d9d=function(_0x1d826a,_0x387a93){_0x1d826a=_0x1d826a-0x0;let _0x4d9dfb=_0x387a[_0x1d826a];return _0x4d9dfb;};import{ContextPlugin as _0x47cd74}from'ckeditor5/src/core';import _0x2cf3c9 from'./annotationcollection';export default class v extends _0x47cd74{static get[_0x4d9d('0x6')](){return _0x4d9d('0x14');}constructor(_0x2c5303){super(_0x2c5303),this[_0x4d9d('0x4')]=new _0x2cf3c9(),this[_0x4d9d('0x8')]=new _0x2cf3c9(),this['set'](_0x4d9d('0x3'),new Set()),this[_0x4d9d('0xa')]();}[_0x4d9d('0x0')](_0x2bfeba){this[_0x4d9d('0x4')][_0x4d9d('0x0')](_0x2bfeba);}[_0x4d9d('0xb')](_0x21a693){this['collection'][_0x4d9d('0xb')](_0x21a693),_0x21a693[_0x4d9d('0x9')]();}[_0x4d9d('0x13')](){for(const _0x41ba30 of this['collection'])_0x41ba30[_0x4d9d('0x13')]();}[_0x4d9d('0xf')](){this[_0x4d9d('0x8')]['refreshPositioning']();}[_0x4d9d('0x7')](_0x4e07dc){return this[_0x4d9d('0x4')][_0x4d9d('0x7')](_0x4e07dc);}[_0x4d9d('0xe')](){this['fire'](_0x4d9d('0x11'));}['destroy'](){for(const _0x20e9f5 of this[_0x4d9d('0x4')])_0x20e9f5['destroy']();this['_visibleAnnotations'][_0x4d9d('0x9')](),this[_0x4d9d('0x4')]['destroy'](),super[_0x4d9d('0x9')]();}[_0x4d9d('0x15')](_0x4c84f3){this['fire'](_0x4d9d('0x16'),_0x4c84f3);}[_0x4d9d('0xd')](_0xedf333){const _0x3a2bb7=new Set(this[_0x4d9d('0x3')]);_0x3a2bb7[_0x4d9d('0x0')](_0xedf333),this['activeAnnotations']=_0x3a2bb7;}['_removeActiveAnnotation'](_0x3c2624){const _0x1e893d=new Set(this['activeAnnotations']);_0x1e893d[_0x4d9d('0xc')](_0x3c2624),this[_0x4d9d('0x3')]=_0x1e893d;}[_0x4d9d('0xa')](){const _0x15c3a0=this[_0x4d9d('0x4')],_0x48f05c=this['_visibleAnnotations'];function _0x191d29(_0x226060){const _0x7f8814=_0x226060[_0x4d9d('0x5')];_0x7f8814[_0x4d9d('0x12')]&&!_0x48f05c[_0x4d9d('0x17')](_0x7f8814)?_0x48f05c['add'](_0x7f8814):!_0x7f8814[_0x4d9d('0x12')]&&_0x48f05c[_0x4d9d('0x17')](_0x7f8814)&&_0x48f05c[_0x4d9d('0xb')](_0x7f8814);}this[_0x4d9d('0x1')](_0x15c3a0,_0x4d9d('0x0'),(_0x16088b,_0x5da884)=>{_0x5da884['isVisible']&&_0x48f05c[_0x4d9d('0x0')](_0x5da884),this[_0x4d9d('0x1')](_0x5da884,_0x4d9d('0x2'),_0x191d29);}),this[_0x4d9d('0x1')](_0x15c3a0,_0x4d9d('0xb'),(_0x31eab0,_0x2846fe)=>{_0x48f05c['has'](_0x2846fe)&&_0x48f05c['remove'](_0x2846fe),this[_0x4d9d('0x10')](_0x2846fe,_0x4d9d('0x2'),_0x191d29);});}}
23
+ const _0x54ab=['pluginName','delete','createAnnotation','refreshVisibility','stopListening','deactivateAll','destroy','has','activate','_visibleAnnotations','_bindAnnotationsToVisibleAnnotations','remove','add','getByInnerView','collection','fire','_addActiveAnnotation','change:isVisible','activeAnnotations','set','isVisible','refreshPositioning','source','listenTo'];(function(_0x41c1ba,_0x54ab0a){const _0x27d136=function(_0x485c30){while(--_0x485c30){_0x41c1ba['push'](_0x41c1ba['shift']());}};_0x27d136(++_0x54ab0a);}(_0x54ab,0x75));const _0x27d1=function(_0x41c1ba,_0x54ab0a){_0x41c1ba=_0x41c1ba-0x0;let _0x27d136=_0x54ab[_0x41c1ba];return _0x27d136;};import{ContextPlugin as _0x40a6a0}from'ckeditor5/src/core';import _0x433ba9 from'./annotation';import _0x9ae26e from'./annotationcollection';import _0x5c12ae from'./view/annotationview';export default class V extends _0x40a6a0{static get[_0x27d1('0x3')](){return'Annotations';}constructor(_0x10288d){super(_0x10288d),this['collection']=new _0x9ae26e(),this[_0x27d1('0xc')]=new _0x9ae26e(),this[_0x27d1('0x16')]('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations']();}['add'](_0x2d23f6){this[_0x27d1('0x11')][_0x27d1('0xf')](_0x2d23f6);}[_0x27d1('0xe')](_0x5e805e){this[_0x27d1('0x11')][_0x27d1('0xe')](_0x5e805e),_0x5e805e['destroy']();}[_0x27d1('0x6')](){for(const _0x92c0cf of this['collection'])_0x92c0cf[_0x27d1('0x6')]();}['refreshPositioning'](){this[_0x27d1('0xc')][_0x27d1('0x0')]();}[_0x27d1('0x10')](_0xab7b4b){return this['collection'][_0x27d1('0x10')](_0xab7b4b);}[_0x27d1('0x8')](){this[_0x27d1('0x12')]('_deactivateAllAnnotations');}[_0x27d1('0x9')](){for(const _0x24b233 of this[_0x27d1('0x11')])_0x24b233[_0x27d1('0x9')]();this['_visibleAnnotations'][_0x27d1('0x9')](),this[_0x27d1('0x11')][_0x27d1('0x9')](),super[_0x27d1('0x9')]();}[_0x27d1('0xb')](_0x12b309){this['fire']('_activateAnnotation',_0x12b309);}[_0x27d1('0x5')](_0x232d36){return new _0x433ba9(_0x232d36);}['createAnnotationView'](_0x2c0aa4,_0x1980fc){return new _0x5c12ae(_0x2c0aa4,_0x1980fc);}[_0x27d1('0x13')](_0x225377){const _0x5e6bde=new Set(this['activeAnnotations']);_0x5e6bde[_0x27d1('0xf')](_0x225377),this[_0x27d1('0x15')]=_0x5e6bde;}['_removeActiveAnnotation'](_0x2a0e2b){const _0x18e5d3=new Set(this[_0x27d1('0x15')]);_0x18e5d3[_0x27d1('0x4')](_0x2a0e2b),this[_0x27d1('0x15')]=_0x18e5d3;}[_0x27d1('0xd')](){const _0x38852d=this[_0x27d1('0x11')],_0x1ffcd2=this[_0x27d1('0xc')];function _0x345b87(_0x14b352){const _0x5ab1eb=_0x14b352[_0x27d1('0x1')];_0x5ab1eb[_0x27d1('0x17')]&&!_0x1ffcd2[_0x27d1('0xa')](_0x5ab1eb)?_0x1ffcd2[_0x27d1('0xf')](_0x5ab1eb):!_0x5ab1eb[_0x27d1('0x17')]&&_0x1ffcd2[_0x27d1('0xa')](_0x5ab1eb)&&_0x1ffcd2[_0x27d1('0xe')](_0x5ab1eb);}this[_0x27d1('0x2')](_0x38852d,_0x27d1('0xf'),(_0x57ade6,_0x23fdcf)=>{_0x23fdcf[_0x27d1('0x17')]&&_0x1ffcd2[_0x27d1('0xf')](_0x23fdcf),this['listenTo'](_0x23fdcf,'change:isVisible',_0x345b87);}),this[_0x27d1('0x2')](_0x38852d,_0x27d1('0xe'),(_0x18f2fa,_0x1a7e8e)=>{_0x1ffcd2[_0x27d1('0xa')](_0x1a7e8e)&&_0x1ffcd2['remove'](_0x1a7e8e),this[_0x27d1('0x7')](_0x1a7e8e,_0x27d1('0x14'),_0x345b87);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b6e=['from','deactivateAll','add','isActive','collection','has','filter','annotationsuis-register-invalid-interface','destroy','set','push','annotationsuis-register-already-registered','type','context','plugins','annotationsuis-annotation-mismatch','activate','requires','listenTo','attach','activeAnnotations','hasActive','_assertAnnotationDoesNotBelongToMultipleUIs','activeUIs','_uisData','get','size','change:activeAnnotation','find','AnnotationsUIs','length','function','delete','_addActiveAnnotation','_uis','switchTo','setActiveAnnotation','detach','_setSelectedAnnotations','_activateAnnotation','deactivate','_visibleAnnotations','pluginName'];(function(_0x9aded0,_0x5b6e1b){const _0x1399fa=function(_0x295531){while(--_0x295531){_0x9aded0['push'](_0x9aded0['shift']());}};_0x1399fa(++_0x5b6e1b);}(_0x5b6e,0x8c));const _0x1399=function(_0x9aded0,_0x5b6e1b){_0x9aded0=_0x9aded0-0x0;let _0x1399fa=_0x5b6e[_0x9aded0];return _0x1399fa;};import{ContextPlugin as _0x19a17c}from'ckeditor5/src/core';import{CKEditorError as _0x38106e}from'ckeditor5/src/utils';import _0x19f427,{bindAnnotationCollections as _0x4eb783}from'./annotationcollection';import _0x285315 from'./annotations';export default class I extends _0x19a17c{static get[_0x1399('0x6')](){return[_0x285315];}static get[_0x1399('0x1f')](){return _0x1399('0x12');}constructor(_0x39e8f5){super(_0x39e8f5),this['activeUIs']=new Set(),this['_uis']=new Map(),this[_0x1399('0xd')]=new Map();}['init'](){const _0x334d52=this[_0x1399('0x2')][_0x1399('0x3')][_0x1399('0xe')](_0x285315);this[_0x1399('0x7')](_0x334d52,_0x1399('0x1c'),(_0x4448a2,_0x2415ed)=>{for(const _0x405fd8 of this[_0x1399('0xc')]){const _0x3bd9be=this['_uis'][_0x1399('0xe')](_0x405fd8);(0x0,this['_uisData'][_0x1399('0xe')](_0x405fd8)['filter'])(_0x2415ed)&&_0x3bd9be['setActiveAnnotation'](_0x2415ed);}}),this[_0x1399('0x7')](_0x334d52,'_deactivateAllAnnotations',()=>{for(const _0x3c8f80 of this[_0x1399('0xc')]){this[_0x1399('0x17')][_0x1399('0xe')](_0x3c8f80)['setActiveAnnotation'](null);}}),this['listenTo'](_0x334d52[_0x1399('0x1e')],'add',(_0x240b1d,_0x50101e)=>{this[_0x1399('0xb')](_0x50101e);});}[_0x1399('0xa')](){return this['activeUIs'][_0x1399('0xf')]>0x0;}[_0x1399('0x23')](_0x342495){return this['activeUIs']['has'](_0x342495);}[_0x1399('0x5')](_0x4436e4,_0x5057b4=()=>!0x0){const _0x561f4b=this[_0x1399('0x2')]['plugins'][_0x1399('0xe')](_0x285315);if(!this[_0x1399('0x17')][_0x1399('0x25')](_0x4436e4))throw new _0x38106e('annotationsuis-activate-missing-ui',this,{'uiName':_0x4436e4});this['isActive'](_0x4436e4)&&this['deactivate'](_0x4436e4),this[_0x1399('0xc')]['add'](_0x4436e4);const _0xe3ce5e=new _0x19f427(),_0x3a6746=_0x561f4b[_0x1399('0x1e')];_0x4eb783({'source':_0x3a6746,'target':_0xe3ce5e,'filter':_0x5057b4}),this[_0x1399('0xd')][_0x1399('0x29')](_0x4436e4,{'collection':_0xe3ce5e,'filter':_0x5057b4});const _0x484771=this[_0x1399('0x17')][_0x1399('0xe')](_0x4436e4);_0x484771[_0x1399('0x8')](_0xe3ce5e),this[_0x1399('0x7')](_0x484771,_0x1399('0x10'),(_0x295fd0,_0x504fe3,_0x4f2a4d,_0xec7f55)=>{_0xec7f55&&_0x561f4b['_removeActiveAnnotation'](_0xec7f55),_0x4f2a4d&&_0x561f4b[_0x1399('0x16')](_0x4f2a4d);});}['deactivate'](_0x1063b8){this[_0x1399('0xc')][_0x1399('0x15')](_0x1063b8);const _0x2361e6=this[_0x1399('0x17')]['get'](_0x1063b8);_0x2361e6[_0x1399('0x1a')](),this['stopListening'](_0x2361e6),this[_0x1399('0xd')][_0x1399('0xe')](_0x1063b8)[_0x1399('0x24')][_0x1399('0x28')](),this['_uisData'][_0x1399('0x15')](_0x1063b8);}[_0x1399('0x18')](_0x10bfc4){const _0x32369f=this[_0x1399('0x2')][_0x1399('0x3')][_0x1399('0xe')](_0x285315),_0x593d75=Array[_0x1399('0x20')](_0x32369f[_0x1399('0x9')])[0x0]||null;this['deactivateAll'](),this[_0x1399('0x5')](_0x10bfc4);const _0x17d9ef=this[_0x1399('0x17')]['get'](_0x10bfc4);_0x17d9ef[_0x1399('0x19')](_0x593d75),_0x17d9ef[_0x1399('0x1b')]&&_0x593d75&&_0x17d9ef[_0x1399('0x1b')]([_0x593d75]);}[_0x1399('0x21')](){for(const _0x1bfa92 of this[_0x1399('0xc')])this[_0x1399('0x1d')](_0x1bfa92);}['register'](_0x3bfea7,_0x2111f7){if(this[_0x1399('0x17')][_0x1399('0x25')](_0x3bfea7))throw new _0x38106e(_0x1399('0x0'));if(_0x1399('0x14')!=typeof _0x2111f7[_0x1399('0x8')]||_0x1399('0x14')!=typeof _0x2111f7['detach']||'function'!=typeof _0x2111f7[_0x1399('0x19')])throw new _0x38106e(_0x1399('0x27'),null);this[_0x1399('0x17')][_0x1399('0x29')](_0x3bfea7,_0x2111f7);}['refilterAnnotations'](){const _0x2bacc6=this[_0x1399('0x2')][_0x1399('0x3')]['get'](_0x285315)['collection'],_0x3a9497=new Map(),_0x67e443=Array[_0x1399('0x20')](this[_0x1399('0xc')]);for(const _0x230ce7 of this['activeUIs']){const _0x3e5f10=this[_0x1399('0xd')][_0x1399('0xe')](_0x230ce7)[_0x1399('0x24')];for(const _0x55113b of _0x3e5f10)_0x3a9497[_0x1399('0x29')](_0x55113b,_0x230ce7);}for(const _0x56f044 of _0x2bacc6){const _0x67c3a6=_0x3a9497['get'](_0x56f044);this[_0x1399('0xb')](_0x56f044);const _0x33ff1a=_0x67e443[_0x1399('0x11')](_0x2d0c4d=>this[_0x1399('0xd')]['get'](_0x2d0c4d)[_0x1399('0x26')](_0x56f044));_0x67c3a6!==_0x33ff1a&&(_0x67c3a6&&this[_0x1399('0xd')][_0x1399('0xe')](_0x67c3a6)[_0x1399('0x24')]['remove'](_0x56f044),_0x33ff1a&&this[_0x1399('0xd')]['get'](_0x33ff1a)[_0x1399('0x24')][_0x1399('0x22')](_0x56f044));}}[_0x1399('0x28')](){this[_0x1399('0x21')](),super[_0x1399('0x28')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xd14a90){const _0x291396=[];for(const _0x1b3b2e of this[_0x1399('0xc')]){(0x0,this[_0x1399('0xd')][_0x1399('0xe')](_0x1b3b2e)[_0x1399('0x26')])(_0xd14a90)&&_0x291396[_0x1399('0x2a')](_0x1b3b2e);}if(_0x291396[_0x1399('0x13')]>0x1)throw new _0x38106e(_0x1399('0x4'),null,{'matchedUIs':_0x291396,'annotationType':_0xd14a90[_0x1399('0x1')]});}}
23
+ const _0x5443=['switchTo','isActive','refilterAnnotations','attach','length','setActiveAnnotation','_uisData','get','hasActive','_uis','annotationsuis-register-invalid-interface','_activateAnnotation','annotationsuis-register-already-registered','from','size','context','register','_deactivateAllAnnotations','listenTo','activeUIs','plugins','_removeActiveAnnotation','_visibleAnnotations','requires','set','filter','function','_setSelectedAnnotations','detach','pluginName','has','destroy','annotationsuis-activate-missing-ui','add','collection','delete','AnnotationsUIs','deactivateAll','init','activeAnnotations','_assertAnnotationDoesNotBelongToMultipleUIs','deactivate','type','activate'];(function(_0xe81566,_0x5443ba){const _0x1c4949=function(_0x4444c0){while(--_0x4444c0){_0xe81566['push'](_0xe81566['shift']());}};_0x1c4949(++_0x5443ba);}(_0x5443,0xa0));const _0x1c49=function(_0xe81566,_0x5443ba){_0xe81566=_0xe81566-0x0;let _0x1c4949=_0x5443[_0xe81566];return _0x1c4949;};import{ContextPlugin as _0x34fb0d}from'ckeditor5/src/core';import{CKEditorError as _0x4b8f6e}from'ckeditor5/src/utils';import _0x2abb73,{bindAnnotationCollections as _0x1557f6}from'./annotationcollection';import _0x1c1b10 from'./annotations';export default class I extends _0x34fb0d{static get[_0x1c49('0x27')](){return[_0x1c1b10];}static get[_0x1c49('0x1')](){return _0x1c49('0x8');}constructor(_0x27f275){super(_0x27f275),this[_0x1c49('0x23')]=new Set(),this[_0x1c49('0x19')]=new Map(),this[_0x1c49('0x16')]=new Map();}[_0x1c49('0xa')](){const _0xbf43a7=this[_0x1c49('0x1f')][_0x1c49('0x24')][_0x1c49('0x17')](_0x1c1b10);this[_0x1c49('0x22')](_0xbf43a7,_0x1c49('0x1b'),(_0x531bc0,_0xe7f247)=>{for(const _0x1a8a34 of this[_0x1c49('0x23')]){const _0x260fea=this[_0x1c49('0x19')][_0x1c49('0x17')](_0x1a8a34);(0x0,this[_0x1c49('0x16')]['get'](_0x1a8a34)['filter'])(_0xe7f247)&&_0x260fea['setActiveAnnotation'](_0xe7f247);}}),this[_0x1c49('0x22')](_0xbf43a7,_0x1c49('0x21'),()=>{for(const _0xc3e629 of this[_0x1c49('0x23')]){this[_0x1c49('0x19')][_0x1c49('0x17')](_0xc3e629)[_0x1c49('0x15')](null);}}),this[_0x1c49('0x22')](_0xbf43a7[_0x1c49('0x26')],_0x1c49('0x5'),(_0x5143f2,_0x38fbe5)=>{this[_0x1c49('0xc')](_0x38fbe5);});}[_0x1c49('0x18')](){return this[_0x1c49('0x23')][_0x1c49('0x1e')]>0x0;}[_0x1c49('0x11')](_0x1e5b8c){return this[_0x1c49('0x23')][_0x1c49('0x2')](_0x1e5b8c);}['activate'](_0x252e0c,_0x1f5d1f=()=>!0x0){const _0x15d8e8=this[_0x1c49('0x1f')][_0x1c49('0x24')][_0x1c49('0x17')](_0x1c1b10);if(!this[_0x1c49('0x19')][_0x1c49('0x2')](_0x252e0c))throw new _0x4b8f6e(_0x1c49('0x4'),this,{'uiName':_0x252e0c});this[_0x1c49('0x11')](_0x252e0c)&&this[_0x1c49('0xd')](_0x252e0c),this[_0x1c49('0x23')][_0x1c49('0x5')](_0x252e0c);const _0x355efe=new _0x2abb73(),_0x21f98e=_0x15d8e8[_0x1c49('0x26')];_0x1557f6({'source':_0x21f98e,'target':_0x355efe,'filter':_0x1f5d1f}),this[_0x1c49('0x16')][_0x1c49('0x28')](_0x252e0c,{'collection':_0x355efe,'filter':_0x1f5d1f});const _0x442925=this[_0x1c49('0x19')][_0x1c49('0x17')](_0x252e0c);_0x442925[_0x1c49('0x13')](_0x355efe),this[_0x1c49('0x22')](_0x442925,'change:activeAnnotation',(_0x5d2c46,_0x362b04,_0x179aef,_0x5949b4)=>{_0x5949b4&&_0x15d8e8[_0x1c49('0x25')](_0x5949b4),_0x179aef&&_0x15d8e8['_addActiveAnnotation'](_0x179aef);});}[_0x1c49('0xd')](_0x1cabd8){this[_0x1c49('0x23')][_0x1c49('0x7')](_0x1cabd8);const _0x2ccbe2=this[_0x1c49('0x19')]['get'](_0x1cabd8);_0x2ccbe2[_0x1c49('0x0')](),this['stopListening'](_0x2ccbe2),this[_0x1c49('0x16')][_0x1c49('0x17')](_0x1cabd8)[_0x1c49('0x6')][_0x1c49('0x3')](),this[_0x1c49('0x16')][_0x1c49('0x7')](_0x1cabd8);}[_0x1c49('0x10')](_0x294a06){const _0x15526e=this['context'][_0x1c49('0x24')][_0x1c49('0x17')](_0x1c1b10),_0x59de97=Array[_0x1c49('0x1d')](_0x15526e[_0x1c49('0xb')])[0x0]||null;this[_0x1c49('0x9')](),this[_0x1c49('0xf')](_0x294a06);const _0x3054c1=this[_0x1c49('0x19')][_0x1c49('0x17')](_0x294a06);_0x3054c1['setActiveAnnotation'](_0x59de97),_0x3054c1['_setSelectedAnnotations']&&_0x59de97&&_0x3054c1[_0x1c49('0x2b')]([_0x59de97]);}[_0x1c49('0x9')](){for(const _0x5cfbda of this[_0x1c49('0x23')])this[_0x1c49('0xd')](_0x5cfbda);}[_0x1c49('0x20')](_0x441ebc,_0x2954b8){if(this[_0x1c49('0x19')]['has'](_0x441ebc))throw new _0x4b8f6e(_0x1c49('0x1c'));if('function'!=typeof _0x2954b8[_0x1c49('0x13')]||'function'!=typeof _0x2954b8[_0x1c49('0x0')]||_0x1c49('0x2a')!=typeof _0x2954b8[_0x1c49('0x15')])throw new _0x4b8f6e(_0x1c49('0x1a'),null);this[_0x1c49('0x19')][_0x1c49('0x28')](_0x441ebc,_0x2954b8);}[_0x1c49('0x12')](){const _0x54fba0=this['context'][_0x1c49('0x24')][_0x1c49('0x17')](_0x1c1b10)['collection'],_0x4e996e=new Map(),_0x24f6be=Array['from'](this[_0x1c49('0x23')]);for(const _0x960a04 of this[_0x1c49('0x23')]){const _0x4ea3e5=this[_0x1c49('0x16')][_0x1c49('0x17')](_0x960a04)[_0x1c49('0x6')];for(const _0x1871c9 of _0x4ea3e5)_0x4e996e[_0x1c49('0x28')](_0x1871c9,_0x960a04);}for(const _0x20aee8 of _0x54fba0){const _0x1e98f7=_0x4e996e[_0x1c49('0x17')](_0x20aee8);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x20aee8);const _0x3919e1=_0x24f6be['find'](_0x53688e=>this[_0x1c49('0x16')][_0x1c49('0x17')](_0x53688e)[_0x1c49('0x29')](_0x20aee8));_0x1e98f7!==_0x3919e1&&(_0x1e98f7&&this[_0x1c49('0x16')][_0x1c49('0x17')](_0x1e98f7)[_0x1c49('0x6')]['remove'](_0x20aee8),_0x3919e1&&this['_uisData'][_0x1c49('0x17')](_0x3919e1)['collection']['add'](_0x20aee8));}}['destroy'](){this[_0x1c49('0x9')](),super[_0x1c49('0x3')]();}[_0x1c49('0xc')](_0x565a3d){const _0x59d432=[];for(const _0x330775 of this[_0x1c49('0x23')]){(0x0,this[_0x1c49('0x16')][_0x1c49('0x17')](_0x330775)[_0x1c49('0x29')])(_0x565a3d)&&_0x59d432['push'](_0x330775);}if(_0x59d432[_0x1c49('0x14')]>0x1)throw new _0x4b8f6e('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x59d432,'annotationType':_0x565a3d[_0x1c49('0xe')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7eca=['change:isFocused','view','getRanges','editor','selection','focusTracker','change:range','document','fire','add','innerView','from','uiUpdate','EditorAnnotations','element','isEqual','sort','getOrderedSelectedAnnotations','requires','plugins','blur','model','addSourceCollector','delete','set','map','isReadOnly','editing','annotation','_dataCollectors','_editorAnnotationsData','containsRange','editorannotations-invalid-source-callback','get','cancel','has','hasDomSelection','pluginName','update','range','listenTo','refreshSelectedViews','remove'];(function(_0x57e516,_0x7ecae0){const _0x11f7ff=function(_0x5202c9){while(--_0x5202c9){_0x57e516['push'](_0x57e516['shift']());}};_0x11f7ff(++_0x7ecae0);}(_0x7eca,0x7b));const _0x11f7=function(_0x57e516,_0x7ecae0){_0x57e516=_0x57e516-0x0;let _0x11f7ff=_0x7eca[_0x57e516];return _0x11f7ff;};import{Plugin as _0x5a9420}from'ckeditor5/src/core';import{CKEditorError as _0x334e9a}from'ckeditor5/src/utils';import{debounce as _0x5b42b1}from'lodash-es';import _0x2a978f from'./annotations';export default class k extends _0x5a9420{static get[_0x11f7('0x18')](){return[_0x2a978f];}static get[_0x11f7('0x0')](){return _0x11f7('0x13');}constructor(_0x52ee70){super(_0x52ee70),this[_0x11f7('0x23')]=new Set();}['init'](){const _0x16da2e=this['editor'],_0x292e1e=_0x16da2e[_0x11f7('0x19')][_0x11f7('0x27')](_0x2a978f),_0x4b7472=_0x16da2e[_0x11f7('0x1b')]['document'][_0x11f7('0xa')],_0x2f5237=_0x5b42b1(()=>this[_0x11f7('0x4')](),0xa);_0x4b7472['on'](_0x11f7('0xc'),(_0x1e0430,_0x2ce74d)=>{_0x2ce74d['directChange']&&(_0x2f5237[_0x11f7('0x28')](),this[_0x11f7('0x4')]());}),this[_0x11f7('0x3')](_0x16da2e[_0x11f7('0x21')][_0x11f7('0x7')][_0x11f7('0xd')],_0x11f7('0x6'),(_0x41481f,_0x49e47e,_0x56917c)=>{_0x56917c&&_0x2f5237();}),this[_0x11f7('0x3')](_0x16da2e['ui'][_0x11f7('0xb')],_0x11f7('0x6'),(_0x26c2f6,_0x13ec77,_0x3dc960)=>{_0x3dc960||_0x16da2e[_0x11f7('0x20')]||this[_0x11f7('0xe')](_0x11f7('0x1a'),{'isAnnotationTracked':_0x3ec2dd=>this['_editorAnnotationsData'][_0x11f7('0x29')](_0x3ec2dd[_0x11f7('0x10')])});}),this[_0x11f7('0x3')](this[_0x11f7('0x9')]['ui'],_0x11f7('0x1'),()=>this[_0x11f7('0xe')](_0x11f7('0x12')));const _0x3fe0b4=new Set();this[_0x11f7('0x3')](_0x292e1e['collection'],_0x11f7('0xf'),(_0xa7b415,_0x43f5a5)=>{for(const _0x5613bf of this['_editorAnnotationsData']['keys']())if(_0x5613bf===_0x43f5a5[_0x11f7('0x10')]){_0x16da2e['ui'][_0x11f7('0xb')]['add'](_0x43f5a5['view'][_0x11f7('0x14')]),_0x3fe0b4[_0x11f7('0xf')](_0x43f5a5['view']);break;}}),this[_0x11f7('0x3')](_0x292e1e['collection'],_0x11f7('0x5'),(_0x413679,_0x43d9b1)=>{_0x3fe0b4[_0x11f7('0x29')](_0x43d9b1[_0x11f7('0x7')])&&(_0x16da2e['ui'][_0x11f7('0xb')][_0x11f7('0x5')](_0x43d9b1[_0x11f7('0x7')][_0x11f7('0x14')]),_0x3fe0b4[_0x11f7('0x1d')](_0x43d9b1[_0x11f7('0x7')]));});}[_0x11f7('0x2a')](){return this['editor']['editing'][_0x11f7('0x7')][_0x11f7('0x2a')];}[_0x11f7('0x1c')](_0x2ae256){if('function'!=typeof _0x2ae256)throw new _0x334e9a(_0x11f7('0x26'));this['_dataCollectors'][_0x11f7('0xf')](_0x2ae256);}[_0x11f7('0x4')](){this['fire']('refresh');}[_0x11f7('0x17')]({activeAnnotation:_0x34671a,annotations:_0x5b3322}){const _0x335dc3=[],_0x568486=this['editor'][_0x11f7('0x1b')]['document'][_0x11f7('0xa')],_0x16ea55=Array[_0x11f7('0x11')](_0x568486[_0x11f7('0x8')]());for(const [_0x5266c0,_0x189d4d]of this[_0x11f7('0x24')]){const _0x499b37=_0x491c50(_0x189d4d),_0x5b6a7d=_0x5b3322['getByInnerView'](_0x5266c0);_0x499b37&&_0x5b6a7d&&_0x335dc3['push']({'annotation':_0x5b6a7d,'range':_0x499b37});}function _0x491c50(_0x369dae){for(const _0x498b77 of _0x369dae)for(const _0x5017f0 of _0x16ea55)if(_0x498b77['containsRange'](_0x5017f0,!_0x568486['isCollapsed']))return _0x498b77;return null;}return _0x335dc3[_0x11f7('0x16')]((_0x4b75d8,_0x5a3a17)=>{const _0x20413e=_0x4b75d8['range'],_0x1f5e3d=_0x5a3a17[_0x11f7('0x2')];if(!_0x20413e[_0x11f7('0x15')](_0x1f5e3d)){if(_0x20413e[_0x11f7('0x25')](_0x1f5e3d,!0x0))return 0x1;if(_0x1f5e3d[_0x11f7('0x25')](_0x20413e,!0x0))return-0x1;}return _0x4b75d8[_0x11f7('0x22')]==_0x34671a?-0x1:_0x5a3a17['annotation']==_0x34671a?0x1:0x0;})[_0x11f7('0x1f')](_0x405581=>_0x405581[_0x11f7('0x22')]);}get[_0x11f7('0x24')](){const _0x26a1f5=new Map();for(const _0x32a72c of Array['from'](this[_0x11f7('0x23')]))for(const [_0x2efc1f,_0xbda767]of _0x32a72c())_0x26a1f5[_0x11f7('0x1e')](_0x2efc1f,_0xbda767);return _0x26a1f5;}}
23
+ const _0x1855=['annotation','remove','collection','editing','model','element','push','document','view','plugins','has','change:isFocused','getOrderedSelectedAnnotations','editorannotations-invalid-source-callback','refresh','sort','innerView','range','change:range','directChange','add','from','_dataCollectors','hasDomSelection','map','containsRange','refreshSelectedViews','isCollapsed','addSourceCollector','pluginName','getByInnerView','keys','init','get','editor','isReadOnly','listenTo','selection','delete','_editorAnnotationsData','fire','cancel','set','requires','focusTracker'];(function(_0x362386,_0x1855cd){const _0x3bb80c=function(_0x3f8122){while(--_0x3f8122){_0x362386['push'](_0x362386['shift']());}};_0x3bb80c(++_0x1855cd);}(_0x1855,0x147));const _0x3bb8=function(_0x362386,_0x1855cd){_0x362386=_0x362386-0x0;let _0x3bb80c=_0x1855[_0x362386];return _0x3bb80c;};import{Plugin as _0x558b1d}from'ckeditor5/src/core';import{CKEditorError as _0x227259}from'ckeditor5/src/utils';import{debounce as _0x223d77}from'lodash-es';import _0x564171 from'./annotations';export default class k extends _0x558b1d{static get[_0x3bb8('0x1f')](){return[_0x564171];}static get[_0x3bb8('0x11')](){return'EditorAnnotations';}constructor(_0x42fe20){super(_0x42fe20),this['_dataCollectors']=new Set();}[_0x3bb8('0x14')](){const _0x49110a=this[_0x3bb8('0x16')],_0x1764f6=_0x49110a[_0x3bb8('0x2a')][_0x3bb8('0x15')](_0x564171),_0xa4c2d8=_0x49110a[_0x3bb8('0x25')][_0x3bb8('0x28')]['selection'],_0x1a93c4=_0x223d77(()=>this[_0x3bb8('0xe')](),0xa);_0xa4c2d8['on'](_0x3bb8('0x6'),(_0x3610cb,_0xde067a)=>{_0xde067a[_0x3bb8('0x7')]&&(_0x1a93c4[_0x3bb8('0x1d')](),this[_0x3bb8('0xe')]());}),this[_0x3bb8('0x18')](_0x49110a[_0x3bb8('0x24')][_0x3bb8('0x29')][_0x3bb8('0x28')],'change:isFocused',(_0x2750c7,_0x36f6aa,_0x3b722a)=>{_0x3b722a&&_0x1a93c4();}),this[_0x3bb8('0x18')](_0x49110a['ui']['focusTracker'],_0x3bb8('0x2c'),(_0x1e7787,_0x774f94,_0x2336d9)=>{_0x2336d9||_0x49110a[_0x3bb8('0x17')]||this[_0x3bb8('0x1c')]('blur',{'isAnnotationTracked':_0x178db3=>this[_0x3bb8('0x1b')][_0x3bb8('0x2b')](_0x178db3[_0x3bb8('0x4')])});}),this[_0x3bb8('0x18')](this[_0x3bb8('0x16')]['ui'],'update',()=>this[_0x3bb8('0x1c')]('uiUpdate'));const _0x4d5e3b=new Set();this[_0x3bb8('0x18')](_0x1764f6[_0x3bb8('0x23')],_0x3bb8('0x8'),(_0x443b98,_0x36e805)=>{for(const _0x1a7fcd of this[_0x3bb8('0x1b')][_0x3bb8('0x13')]())if(_0x1a7fcd===_0x36e805['innerView']){_0x49110a['ui'][_0x3bb8('0x20')][_0x3bb8('0x8')](_0x36e805[_0x3bb8('0x29')][_0x3bb8('0x26')]),_0x4d5e3b['add'](_0x36e805['view']);break;}}),this[_0x3bb8('0x18')](_0x1764f6[_0x3bb8('0x23')],_0x3bb8('0x22'),(_0x2bb5c0,_0xe6d3b0)=>{_0x4d5e3b[_0x3bb8('0x2b')](_0xe6d3b0['view'])&&(_0x49110a['ui'][_0x3bb8('0x20')]['remove'](_0xe6d3b0[_0x3bb8('0x29')]['element']),_0x4d5e3b[_0x3bb8('0x1a')](_0xe6d3b0['view']));});}[_0x3bb8('0xb')](){return this[_0x3bb8('0x16')][_0x3bb8('0x24')][_0x3bb8('0x29')]['hasDomSelection'];}[_0x3bb8('0x10')](_0x3d2530){if('function'!=typeof _0x3d2530)throw new _0x227259(_0x3bb8('0x1'));this['_dataCollectors']['add'](_0x3d2530);}[_0x3bb8('0xe')](){this[_0x3bb8('0x1c')](_0x3bb8('0x2'));}[_0x3bb8('0x0')]({activeAnnotation:_0x33fc1e,annotations:_0x4f3856}){const _0x509b7c=[],_0x2c15ac=this[_0x3bb8('0x16')][_0x3bb8('0x25')]['document'][_0x3bb8('0x19')],_0xe565ca=Array[_0x3bb8('0x9')](_0x2c15ac['getRanges']());for(const [_0x713807,_0x196f11]of this[_0x3bb8('0x1b')]){const _0x480e26=_0x241ee1(_0x196f11),_0x1c31fe=_0x4f3856[_0x3bb8('0x12')](_0x713807);_0x480e26&&_0x1c31fe&&_0x509b7c[_0x3bb8('0x27')]({'annotation':_0x1c31fe,'range':_0x480e26});}function _0x241ee1(_0x2c8564){for(const _0x17fd46 of _0x2c8564)for(const _0x42518d of _0xe565ca)if(_0x17fd46[_0x3bb8('0xd')](_0x42518d,!_0x2c15ac[_0x3bb8('0xf')]))return _0x17fd46;return null;}return _0x509b7c[_0x3bb8('0x3')]((_0x3cf163,_0x108144)=>{const _0x12cb56=_0x3cf163['range'],_0x537e79=_0x108144[_0x3bb8('0x5')];if(!_0x12cb56['isEqual'](_0x537e79)){if(_0x12cb56['containsRange'](_0x537e79,!0x0))return 0x1;if(_0x537e79[_0x3bb8('0xd')](_0x12cb56,!0x0))return-0x1;}return _0x3cf163[_0x3bb8('0x21')]==_0x33fc1e?-0x1:_0x108144[_0x3bb8('0x21')]==_0x33fc1e?0x1:0x0;})[_0x3bb8('0xc')](_0x408d4e=>_0x408d4e[_0x3bb8('0x21')]);}get[_0x3bb8('0x1b')](){const _0x685736=new Map();for(const _0x5141e2 of Array[_0x3bb8('0x9')](this[_0x3bb8('0xa')]))for(const [_0x2d8210,_0x25aebf]of _0x5141e2())_0x685736[_0x3bb8('0x1e')](_0x2d8210,_0x25aebf);return _0x685736;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49a0=['add','plugins','getByView','_manuallyClosed','get','setActiveAnnotation','inlineannotations-not-allowed-with-context','_addedAnnotations','activeAnnotation','stopListening','hasView','change:visibleView','set','targetRect','listenTo','_removeAnnotationFromBalloon','blur','isAttached','hasActive','mousedown','focus','_annotations','editing','visibleView','inline','bind','context','focusTracker','refresh','attach','showStack','has','includes','EditorAnnotations','editor','_selectedAnnotations','remove','requires','Esc','InlineAnnotations','document','inlineannotations-detach-not-attached','keystrokes','change:isFocused','delete','detach','editableElement','init','_addAnnotationToBalloon','register','isActive','isFocused','switchTo','view','_setSelectedAnnotations','_balloon','afterInit','clear','destroy','updatePosition'];(function(_0xfcc72,_0x49a0c6){const _0x4fc040=function(_0x2ec178){while(--_0x2ec178){_0xfcc72['push'](_0xfcc72['shift']());}};_0x4fc040(++_0x49a0c6);}(_0x49a0,0x68));const _0x4fc0=function(_0xfcc72,_0x49a0c6){_0xfcc72=_0xfcc72-0x0;let _0x4fc040=_0x49a0[_0xfcc72];return _0x4fc040;};import{Plugin as _0x387b2a}from'ckeditor5/src/core';import _0x3d314a from'./annotationsuis';import _0x144cb7 from'./editorannotations';import{ContextualBalloon as _0x4c6882}from'ckeditor5/src/ui';import{MouseObserver as _0x378e8d}from'ckeditor5/src/engine';import{CKEditorError as _0x5d95e0}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x387b2a{static get[_0x4fc0('0x35')](){return[_0x144cb7,_0x4c6882,_0x3d314a];}static get['pluginName'](){return _0x4fc0('0x37');}constructor(_0x3ad8a7){super(_0x3ad8a7),_0x3ad8a7['editing']['view']['addObserver'](_0x378e8d),this['isAttached']=!0x1,this[_0x4fc0('0x1c')](_0x4fc0('0x18'),null),this[_0x4fc0('0x25')]=null,this[_0x4fc0('0x13')]=new Set(),this[_0x4fc0('0xb')]=_0x3ad8a7[_0x4fc0('0x11')][_0x4fc0('0x14')](_0x4c6882),this['_addedAnnotations']=new Set(),this[_0x4fc0('0x33')]=[];}[_0x4fc0('0x3')](){const _0xce2646=this[_0x4fc0('0x32')][_0x4fc0('0x11')]['get'](_0x3d314a);_0xce2646['context']===this['editor']&&(_0xce2646[_0x4fc0('0x5')](_0x4fc0('0x28'),this),this[_0x4fc0('0x32')][_0x4fc0('0x3a')][_0x4fc0('0x1c')]('Esc',(_0x13182f,_0x818708)=>{const _0x375665=this[_0x4fc0('0xb')];if(this[_0x4fc0('0x21')]&&_0x375665['visibleView']){const _0x267caf=this['_annotations'][_0x4fc0('0x12')](_0x375665[_0x4fc0('0x27')]);this[_0x4fc0('0x13')][_0x4fc0('0x10')](_0x267caf),this[_0x4fc0('0x1f')](_0x267caf),_0x818708();}}));}[_0x4fc0('0xc')](){const _0x328ba0=this[_0x4fc0('0x32')][_0x4fc0('0x11')][_0x4fc0('0x14')](_0x3d314a);_0x328ba0['context']===this[_0x4fc0('0x32')]&&(_0x328ba0[_0x4fc0('0x22')]()||_0x328ba0[_0x4fc0('0x8')](_0x4fc0('0x28')));}[_0x4fc0('0x15')](_0x1a5782){_0x1a5782!==this[_0x4fc0('0x18')]&&(this[_0x4fc0('0x18')]&&(this[_0x4fc0('0x18')][_0x4fc0('0x6')]=!0x1),_0x1a5782&&this[_0x4fc0('0x32')]['ui']['focusTracker'][_0x4fc0('0x7')]&&(this[_0x4fc0('0x4')](_0x1a5782,!0x0),_0x1a5782['isActive']=!0x0),_0x1a5782||this[_0x4fc0('0xa')]([]),this[_0x4fc0('0x18')]=_0x1a5782);}[_0x4fc0('0x2d')](_0x9a7996){this[_0x4fc0('0x25')]=_0x9a7996;const _0x5b7a99=this[_0x4fc0('0x32')][_0x4fc0('0x11')][_0x4fc0('0x14')](_0x3d314a),_0x310253=this[_0x4fc0('0xb')];if(this['isAttached'])throw new _0x5d95e0('inlineannotations-attach-already-attached',this);if(_0x5b7a99[_0x4fc0('0x2a')]!==this[_0x4fc0('0x32')])throw new _0x5d95e0(_0x4fc0('0x16'),this);const _0x2e4aea=this[_0x4fc0('0x32')]['plugins'][_0x4fc0('0x14')](_0x4fc0('0x31'));this[_0x4fc0('0x1e')](_0x2e4aea,_0x4fc0('0x2c'),function(){const _0x2fc8d5=_0x2e4aea['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x4fc0('0x18')],'annotations':this[_0x4fc0('0x25')]});this[_0x4fc0('0xa')](_0x2fc8d5),this[_0x4fc0('0x15')](_0x2fc8d5[0x0]||null);}[_0x4fc0('0x29')](this)),this[_0x4fc0('0x1e')](_0x2e4aea,_0x4fc0('0x20'),(_0x2b9d1d,{isAnnotationTracked:_0x10c8c1})=>{this[_0x4fc0('0x18')]&&_0x10c8c1(this[_0x4fc0('0x18')])&&(this[_0x4fc0('0xa')]([]),this[_0x4fc0('0x15')](null));}),this[_0x4fc0('0x1e')](this[_0x4fc0('0x32')]['ui']['focusTracker'],_0x4fc0('0x3b'),(_0x438eb7,_0x22c2d1,_0x465971)=>{_0x465971||this['setActiveAnnotation'](null);}),this[_0x4fc0('0x1e')](_0x9a7996,_0x4fc0('0x34'),(_0x1b74a0,_0x107d4e)=>{this[_0x4fc0('0x1f')](_0x107d4e),_0x107d4e===this[_0x4fc0('0x18')]&&this[_0x4fc0('0x15')](null);}),this[_0x4fc0('0x1e')](_0x310253,_0x4fc0('0x1b'),(_0xeb4b35,_0x410731,_0x5891a3,_0x26428b)=>{if(_0x26428b&&this[_0x4fc0('0x19')](_0x26428b),!_0x5891a3||!_0x9a7996['getByView'](_0x5891a3))return;const _0x46e68c=_0x9a7996[_0x4fc0('0x12')](_0x5891a3);this[_0x4fc0('0x1e')](_0x5891a3,'change:height',()=>{_0x310253[_0x4fc0('0xf')]();}),this[_0x4fc0('0x1e')](_0x5891a3,_0x4fc0('0x36'),()=>{this[_0x4fc0('0x13')][_0x4fc0('0x10')](_0x46e68c),this[_0x4fc0('0x1f')](_0x46e68c),this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')][_0x4fc0('0x24')]();}),this['activeAnnotation']!==_0x46e68c&&this['setActiveAnnotation'](_0x46e68c);}),this[_0x4fc0('0x1e')](this['editor']['ui'],'update',()=>{_0x310253[_0x4fc0('0x27')]&&(_0x9a7996[_0x4fc0('0x12')](_0x310253['visibleView'])&&_0x310253[_0x4fc0('0xf')]());}),this['listenTo'](this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')][_0x4fc0('0x38')],_0x4fc0('0x23'),()=>{this[_0x4fc0('0x13')][_0x4fc0('0xd')]();}),this[_0x4fc0('0x32')]['editing'][_0x4fc0('0x9')]['document']['selection'][_0x4fc0('0x2')]&&this[_0x4fc0('0x32')][_0x4fc0('0x26')][_0x4fc0('0x9')]['focus'](),this['isAttached']=!0x0;}[_0x4fc0('0x1')](){if(!this[_0x4fc0('0x21')])throw new _0x5d95e0(_0x4fc0('0x39'),this);this[_0x4fc0('0x15')](null);for(const _0x2aa29b of this[_0x4fc0('0x17')])this['_removeAnnotationFromBalloon'](_0x2aa29b);this[_0x4fc0('0x19')](),this['isAttached']=!0x1;}[_0x4fc0('0xe')](){this[_0x4fc0('0x21')]&&this[_0x4fc0('0x1')]();}[_0x4fc0('0xa')](_0x3081e7){const _0x3e305b=this['_selectedAnnotations'];for(const _0x3700f4 of _0x3e305b)_0x3081e7[_0x4fc0('0x30')](_0x3700f4)||this['_manuallyClosed'][_0x4fc0('0x0')](_0x3700f4);for(const _0x222052 of this[_0x4fc0('0x25')])_0x3081e7[_0x4fc0('0x30')](_0x222052)||this[_0x4fc0('0x1f')](_0x222052);if(this[_0x4fc0('0x32')]['ui'][_0x4fc0('0x2b')][_0x4fc0('0x7')])for(const _0x27195e of _0x3081e7)this[_0x4fc0('0x4')](_0x27195e);this[_0x4fc0('0x33')]=_0x3081e7;}[_0x4fc0('0x4')](_0x4529cb,_0x1e47c6){this[_0x4fc0('0x13')][_0x4fc0('0x2f')](_0x4529cb)||(this['_addedAnnotations'][_0x4fc0('0x2f')](_0x4529cb)||this['_balloon'][_0x4fc0('0x1a')](_0x4529cb[_0x4fc0('0x9')])||(this[_0x4fc0('0x17')][_0x4fc0('0x10')](_0x4529cb),this[_0x4fc0('0xb')][_0x4fc0('0x10')]({'stackId':_0x4529cb[_0x4fc0('0x9')]['id'],'view':_0x4529cb[_0x4fc0('0x9')],'position':{'target':()=>_0x4529cb['target']||_0x4529cb[_0x4fc0('0x1d')]||document['getSelection']()['getRangeAt'](0x0)}})),_0x1e47c6&&this[_0x4fc0('0xb')][_0x4fc0('0x2e')](_0x4529cb['view']['id']));}[_0x4fc0('0x1f')](_0x1e1bb1){this[_0x4fc0('0x17')][_0x4fc0('0x2f')](_0x1e1bb1)&&this[_0x4fc0('0xb')][_0x4fc0('0x1a')](_0x1e1bb1[_0x4fc0('0x9')])&&(this[_0x4fc0('0x17')][_0x4fc0('0x0')](_0x1e1bb1),this[_0x4fc0('0xb')][_0x4fc0('0x34')](_0x1e1bb1[_0x4fc0('0x9')]));}}
23
+ const _0x4f89=['requires','pluginName','_selectedAnnotations','EditorAnnotations','attach','set','has','editor','inlineannotations-not-allowed-with-context','context','getSelection','focus','blur','keystrokes','destroy','change:height','setActiveAnnotation','update','inline','clear','editableElement','add','editing','Esc','inlineannotations-attach-already-attached','addObserver','get','_annotations','visibleView','remove','_manuallyClosed','_addedAnnotations','view','register','isAttached','plugins','change:visibleView','hasView','activeAnnotation','document','updatePosition','_setSelectedAnnotations','stopListening','targetRect','getByView','bind','_balloon','_removeAnnotationFromBalloon','focusTracker','selection','refresh','afterInit','InlineAnnotations','_addAnnotationToBalloon','mousedown','isFocused','change:isFocused','inlineannotations-detach-not-attached','switchTo','listenTo','detach','delete','isActive'];(function(_0x54c6cf,_0x4f89b1){const _0x586297=function(_0x533c10){while(--_0x533c10){_0x54c6cf['push'](_0x54c6cf['shift']());}};_0x586297(++_0x4f89b1);}(_0x4f89,0x1c8));const _0x5862=function(_0x54c6cf,_0x4f89b1){_0x54c6cf=_0x54c6cf-0x0;let _0x586297=_0x4f89[_0x54c6cf];return _0x586297;};import{Plugin as _0x128311}from'ckeditor5/src/core';import _0x235bac from'./annotationsuis';import _0x7e1d97 from'./editorannotations';import{ContextualBalloon as _0xe5f3c5}from'ckeditor5/src/ui';import{MouseObserver as _0x5c3f10}from'ckeditor5/src/engine';import{CKEditorError as _0x15c006}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x128311{static get[_0x5862('0x30')](){return[_0x7e1d97,_0xe5f3c5,_0x235bac];}static get[_0x5862('0x31')](){return _0x5862('0x25');}constructor(_0x577613){super(_0x577613),_0x577613[_0x5862('0x7')][_0x5862('0x11')][_0x5862('0xa')](_0x5c3f10),this['isAttached']=!0x1,this[_0x5862('0x35')](_0x5862('0x17'),null),this[_0x5862('0xc')]=null,this[_0x5862('0xf')]=new Set(),this[_0x5862('0x1f')]=_0x577613[_0x5862('0x14')][_0x5862('0xb')](_0xe5f3c5),this['_addedAnnotations']=new Set(),this[_0x5862('0x32')]=[];}['init'](){const _0x5e73fb=this[_0x5862('0x37')]['plugins'][_0x5862('0xb')](_0x235bac);_0x5e73fb[_0x5862('0x39')]===this[_0x5862('0x37')]&&(_0x5e73fb[_0x5862('0x12')](_0x5862('0x3'),this),this[_0x5862('0x37')][_0x5862('0x3d')][_0x5862('0x35')](_0x5862('0x8'),(_0x2ca8d1,_0x35494f)=>{const _0x4c99a7=this[_0x5862('0x1f')];if(this[_0x5862('0x13')]&&_0x4c99a7['visibleView']){const _0x322092=this[_0x5862('0xc')][_0x5862('0x1d')](_0x4c99a7['visibleView']);this[_0x5862('0xf')]['add'](_0x322092),this[_0x5862('0x20')](_0x322092),_0x35494f();}}));}[_0x5862('0x24')](){const _0x59aa7a=this[_0x5862('0x37')][_0x5862('0x14')]['get'](_0x235bac);_0x59aa7a['context']===this[_0x5862('0x37')]&&(_0x59aa7a['hasActive']()||_0x59aa7a[_0x5862('0x2b')]('inline'));}[_0x5862('0x1')](_0x3ef6ec){_0x3ef6ec!==this[_0x5862('0x17')]&&(this['activeAnnotation']&&(this['activeAnnotation'][_0x5862('0x2f')]=!0x1),_0x3ef6ec&&this[_0x5862('0x37')]['ui'][_0x5862('0x21')][_0x5862('0x28')]&&(this[_0x5862('0x26')](_0x3ef6ec,!0x0),_0x3ef6ec[_0x5862('0x2f')]=!0x0),_0x3ef6ec||this[_0x5862('0x1a')]([]),this[_0x5862('0x17')]=_0x3ef6ec);}[_0x5862('0x34')](_0x59d18b){this[_0x5862('0xc')]=_0x59d18b;const _0x5cb023=this[_0x5862('0x37')][_0x5862('0x14')]['get'](_0x235bac),_0x2ac759=this['_balloon'];if(this['isAttached'])throw new _0x15c006(_0x5862('0x9'),this);if(_0x5cb023[_0x5862('0x39')]!==this['editor'])throw new _0x15c006(_0x5862('0x38'),this);const _0x2b8789=this[_0x5862('0x37')][_0x5862('0x14')]['get'](_0x5862('0x33'));this[_0x5862('0x2c')](_0x2b8789,_0x5862('0x23'),function(){const _0x4a679c=_0x2b8789['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x5862('0xc')]});this[_0x5862('0x1a')](_0x4a679c),this['setActiveAnnotation'](_0x4a679c[0x0]||null);}[_0x5862('0x1e')](this)),this[_0x5862('0x2c')](_0x2b8789,_0x5862('0x3c'),(_0x11fc11,{isAnnotationTracked:_0x2a7784})=>{this['activeAnnotation']&&_0x2a7784(this[_0x5862('0x17')])&&(this['_setSelectedAnnotations']([]),this[_0x5862('0x1')](null));}),this[_0x5862('0x2c')](this['editor']['ui'][_0x5862('0x21')],_0x5862('0x29'),(_0x594c2d,_0x22f5dc,_0x350c47)=>{_0x350c47||this[_0x5862('0x1')](null);}),this[_0x5862('0x2c')](_0x59d18b,_0x5862('0xe'),(_0x22a99a,_0x12f404)=>{this['_removeAnnotationFromBalloon'](_0x12f404),_0x12f404===this[_0x5862('0x17')]&&this[_0x5862('0x1')](null);}),this[_0x5862('0x2c')](_0x2ac759,_0x5862('0x15'),(_0x3bf079,_0x4068f2,_0x53ee2d,_0x9fe385)=>{if(_0x9fe385&&this[_0x5862('0x1b')](_0x9fe385),!_0x53ee2d||!_0x59d18b['getByView'](_0x53ee2d))return;const _0x3e7f61=_0x59d18b[_0x5862('0x1d')](_0x53ee2d);this[_0x5862('0x2c')](_0x53ee2d,_0x5862('0x0'),()=>{_0x2ac759[_0x5862('0x19')]();}),this['listenTo'](_0x53ee2d,_0x5862('0x8'),()=>{this[_0x5862('0xf')][_0x5862('0x6')](_0x3e7f61),this[_0x5862('0x20')](_0x3e7f61),this[_0x5862('0x37')][_0x5862('0x7')]['view']['focus']();}),this[_0x5862('0x17')]!==_0x3e7f61&&this[_0x5862('0x1')](_0x3e7f61);}),this[_0x5862('0x2c')](this[_0x5862('0x37')]['ui'],_0x5862('0x2'),()=>{_0x2ac759[_0x5862('0xd')]&&(_0x59d18b['getByView'](_0x2ac759['visibleView'])&&_0x2ac759[_0x5862('0x19')]());}),this['listenTo'](this[_0x5862('0x37')][_0x5862('0x7')][_0x5862('0x11')][_0x5862('0x18')],_0x5862('0x27'),()=>{this['_manuallyClosed'][_0x5862('0x4')]();}),this[_0x5862('0x37')][_0x5862('0x7')]['view'][_0x5862('0x18')][_0x5862('0x22')][_0x5862('0x5')]&&this['editor'][_0x5862('0x7')]['view'][_0x5862('0x3b')](),this[_0x5862('0x13')]=!0x0;}[_0x5862('0x2d')](){if(!this[_0x5862('0x13')])throw new _0x15c006(_0x5862('0x2a'),this);this['setActiveAnnotation'](null);for(const _0x46fe1b of this[_0x5862('0x10')])this[_0x5862('0x20')](_0x46fe1b);this[_0x5862('0x1b')](),this['isAttached']=!0x1;}[_0x5862('0x3e')](){this[_0x5862('0x13')]&&this[_0x5862('0x2d')]();}[_0x5862('0x1a')](_0x6d3ada){const _0x1c9ace=this[_0x5862('0x32')];for(const _0x2500f2 of _0x1c9ace)_0x6d3ada['includes'](_0x2500f2)||this[_0x5862('0xf')][_0x5862('0x2e')](_0x2500f2);for(const _0x264c4e of this[_0x5862('0xc')])_0x6d3ada['includes'](_0x264c4e)||this[_0x5862('0x20')](_0x264c4e);if(this[_0x5862('0x37')]['ui'][_0x5862('0x21')][_0x5862('0x28')])for(const _0x25ae38 of _0x6d3ada)this['_addAnnotationToBalloon'](_0x25ae38);this['_selectedAnnotations']=_0x6d3ada;}[_0x5862('0x26')](_0x4684f9,_0x4acdd7){this['_manuallyClosed']['has'](_0x4684f9)||(this[_0x5862('0x10')][_0x5862('0x36')](_0x4684f9)||this['_balloon'][_0x5862('0x16')](_0x4684f9[_0x5862('0x11')])||(this['_addedAnnotations'][_0x5862('0x6')](_0x4684f9),this['_balloon'][_0x5862('0x6')]({'stackId':_0x4684f9['view']['id'],'view':_0x4684f9[_0x5862('0x11')],'position':{'target':()=>_0x4684f9['target']||_0x4684f9[_0x5862('0x1c')]||document[_0x5862('0x3a')]()['getRangeAt'](0x0)}})),_0x4acdd7&&this[_0x5862('0x1f')]['showStack'](_0x4684f9[_0x5862('0x11')]['id']));}[_0x5862('0x20')](_0x268989){this[_0x5862('0x10')][_0x5862('0x36')](_0x268989)&&this[_0x5862('0x1f')][_0x5862('0x16')](_0x268989[_0x5862('0x11')])&&(this['_addedAnnotations'][_0x5862('0x2e')](_0x268989),this[_0x5862('0x1f')]['remove'](_0x268989['view']));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22c3=['isAttached','plugins','content','hasDomSelection','_detachFromContainer','Sidebar','init','_hideBalloon','preventClosingBalloon','EditorAnnotations','ck-sidebar--narrow','number','removeEventListener','northArrowSouth','_setSelectedAnnotations','resize','stopListening','keyCode','_destroyEditorAnnotationsIntegration','stop','editors','refreshPositioning','_attachListeners','_updateBalloonPosition','activeAnnotation','_domEmitter','target','mousedown','_annotationToNarrowView','balloonPanelView','blur','register','off','getByView','context','change:height','detach','isVisible','pluginName','refresh','narrowSidebar','Esc','listenTo','length','set','_throttledRefreshPositioning','preventDefault','first','set:container','attach','clear','stopPropagation','low','keydown','requires','ready','addEventListener','pin','change:container','high','type','focus','defaultPositions','esc','getSidebarItemView','setActiveAnnotation','_showBalloon','_annotations','cancel','bind','values','destroy','view','annotationType','get','contains','_selectedAnnotations','_detachListeners','element','remove','add','_integrateWithEditorAnnotations','northArrowSouthWest','unpin','delete','has','_editorAnnotations','bodyCollection','_refreshPositioning','_attachToContainer','southArrowNorthWest','locale','rearrange','southArrowNorthEast','_manuallyClosedAnnotationViews','narrowsidebar-attach-already-attached'];(function(_0x152738,_0x22c313){const _0xa3fa0a=function(_0x5a2e8b){while(--_0x5a2e8b){_0x152738['push'](_0x152738['shift']());}};_0xa3fa0a(++_0x22c313);}(_0x22c3,0xbc));const _0xa3fa=function(_0x152738,_0x22c313){_0x152738=_0x152738-0x0;let _0xa3fa0a=_0x22c3[_0x152738];return _0xa3fa0a;};import{ContextPlugin as _0xce22ef}from'ckeditor5/src/core';import _0x3eab28 from'./annotationsuis';import _0xdcc9b0 from'./sidebar';import _0x247ca2 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x1c66bc,BodyCollection as _0x561f52}from'ckeditor5/src/ui';import{CKEditorError as _0x20a550,DomEmitterMixin as _0x3bc5de,keyCodes as _0x506443,Collection as _0x45798c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x5471ef}from'lodash-es';export default class s extends _0xce22ef{static get[_0xa3fa('0x3a')](){return[_0xdcc9b0,_0x3eab28];}static get[_0xa3fa('0x2a')](){return'NarrowSidebar';}constructor(_0x4b3e6d){super(_0x4b3e6d),this[_0xa3fa('0x4')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0xa3fa('0x1d')]=Object['create'](_0x3bc5de),this[_0xa3fa('0x20')]=new Map(),this[_0xa3fa('0x30')](_0xa3fa('0x1c'),null),this[_0xa3fa('0x47')]=null,this[_0xa3fa('0x50')]=[],this['_editorAnnotations']=new _0x45798c(),this[_0xa3fa('0x31')]=_0x5471ef(()=>{this[_0xa3fa('0x5c')]();},0x190,{'leading':!0x1});}[_0xa3fa('0xa')](){this[_0xa3fa('0x26')][_0xa3fa('0x5')][_0xa3fa('0x4e')](_0x3eab28)[_0xa3fa('0x23')](_0xa3fa('0x2c'),this),this[_0xa3fa('0x5b')]=new _0x561f52(this[_0xa3fa('0x26')][_0xa3fa('0x5f')]),this[_0xa3fa('0x21')]=new _0x1c66bc(this[_0xa3fa('0x26')][_0xa3fa('0x5f')]),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this[_0xa3fa('0x21')]);}[_0xa3fa('0x35')](_0x163b9c){this['_annotations']=_0x163b9c;const _0x2176fc=this[_0xa3fa('0x26')]['plugins'][_0xa3fa('0x4e')](_0xdcc9b0),_0x15c5ef=this[_0xa3fa('0x21')];if(_0x2176fc[_0xa3fa('0x47')]=_0x163b9c,this[_0xa3fa('0x4')])throw new _0x20a550(_0xa3fa('0x3'),this);this[_0xa3fa('0x4')]=!0x0,this['listenTo'](_0x2176fc,_0xa3fa('0x34'),()=>{this[_0xa3fa('0x28')](),this['listenTo'](_0x2176fc,_0xa3fa('0x3e'),_0x4344dd=>{_0x4344dd[_0xa3fa('0x24')](),this[_0xa3fa('0x35')](_0x163b9c);});}),_0x2176fc[_0xa3fa('0x5d')]({'viewClass':_0xa3fa('0xe'),'spaceBetweenItems':0x5});const _0x5d6d22=_0x1adfed=>{const _0x58905f=new _0x247ca2(this['context'][_0xa3fa('0x5f')]);_0x2176fc['addAnnotation'](_0x1adfed,_0x58905f),this['_annotationToNarrowView'][_0xa3fa('0x30')](_0x1adfed,_0x58905f),_0x58905f[_0xa3fa('0x49')]('isDirty',_0xa3fa('0x4d'),_0xa3fa('0xf'))['to'](_0x1adfed['view'],'isDirty',_0xa3fa('0x40'),_0xa3fa('0x2f')),_0x58905f['on']('execute',()=>{this[_0xa3fa('0x2')][_0xa3fa('0x36')](),_0x15c5ef[_0xa3fa('0x6')][_0xa3fa('0x33')]!==_0x1adfed[_0xa3fa('0x4c')]?(this[_0xa3fa('0x46')](_0x1adfed),_0x1adfed[_0xa3fa('0x4c')][_0xa3fa('0x52')]['focus'](),this['setActiveAnnotation'](_0x1adfed)):this[_0xa3fa('0x45')](null);});};for(const _0x166106 of _0x163b9c)_0x5d6d22(_0x166106);this['listenTo'](_0x163b9c,'add',(_0x105519,_0x304e7a)=>{_0x5d6d22(_0x304e7a);}),this[_0xa3fa('0x2e')](_0x163b9c,_0xa3fa('0x53'),(_0x72d76,_0x3370e0,_0x558318)=>{this[_0xa3fa('0x20')]['get'](_0x3370e0)[_0xa3fa('0x4b')](),this['_annotationToNarrowView'][_0xa3fa('0x58')](_0x3370e0),_0x2176fc[_0xa3fa('0x0')]({'removedAnnotation':_0x3370e0,'previousAnnotation':_0x163b9c[_0xa3fa('0x4e')](_0x558318-0x1),'nextAnnotation':_0x163b9c[_0xa3fa('0x4e')](_0x558318+0x1)}),_0x3370e0===this[_0xa3fa('0x1c')]&&this[_0xa3fa('0x45')](null);},{'priority':_0xa3fa('0x38')}),this['listenTo'](_0x163b9c,_0xa3fa('0x41'),(_0x43bde2,_0x511568)=>{this[_0xa3fa('0x45')](_0x511568);}),this[_0xa3fa('0x2e')](_0x163b9c,'blur',()=>{this[_0xa3fa('0x45')](null);}),this[_0xa3fa('0x1d')][_0xa3fa('0x2e')](document,_0xa3fa('0x39'),(_0x277001,_0x38a6d0)=>{_0x38a6d0[_0xa3fa('0x15')]===_0x506443[_0xa3fa('0x43')]&&_0x15c5ef[_0xa3fa('0x29')]&&(this[_0xa3fa('0x2')][_0xa3fa('0x54')](_0x15c5ef[_0xa3fa('0x6')][_0xa3fa('0x33')]),this[_0xa3fa('0xb')](),_0x38a6d0[_0xa3fa('0x37')](),_0x38a6d0[_0xa3fa('0x32')]());}),this[_0xa3fa('0x1d')][_0xa3fa('0x2e')](document,_0xa3fa('0x1f'),(_0x401ab4,_0x71952f)=>{const _0x33f0cb=_0x71952f[_0xa3fa('0x1e')];_0x15c5ef[_0xa3fa('0x29')]&&_0x15c5ef[_0xa3fa('0x52')]['contains'](_0x33f0cb)||_0x2176fc[_0xa3fa('0x4c')][_0xa3fa('0x52')]['contains'](_0x33f0cb)||_0x401ab4[_0xa3fa('0xc')]||(this[_0xa3fa('0x2')][_0xa3fa('0x36')](),this['_hideBalloon'](),this[_0xa3fa('0x45')](null));});const _0x150498=this['context']['editors']?this['context'][_0xa3fa('0x18')]:new _0x45798c([this[_0xa3fa('0x26')]]);for(const _0x559692 of _0x150498)this[_0xa3fa('0x55')](_0x559692);this[_0xa3fa('0x2e')](_0x150498,_0xa3fa('0x54'),(_0x46947d,_0x4e4207)=>{this[_0xa3fa('0x2e')](_0x4e4207,_0xa3fa('0x3b'),()=>{this['_integrateWithEditorAnnotations'](_0x4e4207);});}),this[_0xa3fa('0x2e')](_0x150498,'remove',(_0x5a2c97,_0x52caf0)=>{_0x52caf0[_0xa3fa('0x5')][_0xa3fa('0x59')](_0xa3fa('0xd'))&&this[_0xa3fa('0x16')](_0x52caf0[_0xa3fa('0x5')][_0xa3fa('0x4e')](_0xa3fa('0xd')));}),window[_0xa3fa('0x3c')](_0xa3fa('0x13'),this[_0xa3fa('0x31')]),this[_0xa3fa('0x5c')]();}[_0xa3fa('0x45')](_0x4df7a8){if(_0x4df7a8===this[_0xa3fa('0x1c')])return;const _0x18dd5a=this[_0xa3fa('0x26')]['plugins']['get'](_0xa3fa('0x9'));if(_0x18dd5a[_0xa3fa('0x2b')]({'blurredAnnotation':this[_0xa3fa('0x1c')],'activatedAnnotation':_0x4df7a8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4df7a8)_0x18dd5a[_0xa3fa('0x44')](_0x4df7a8)?this['_showBalloon'](_0x4df7a8):this['_hideBalloon']();else this[_0xa3fa('0xb')]();this['activeAnnotation']=_0x4df7a8;}[_0xa3fa('0x28')](){if(!this[_0xa3fa('0x4')])throw new _0x20a550('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x341020=this[_0xa3fa('0x26')][_0xa3fa('0x5')][_0xa3fa('0x4e')]('Sidebar');this[_0xa3fa('0xb')](),Array['from'](this[_0xa3fa('0x20')][_0xa3fa('0x4a')](),_0x458d31=>_0x458d31['destroy']()),this[_0xa3fa('0x20')][_0xa3fa('0x36')](),_0x341020[_0xa3fa('0x8')](this[_0xa3fa('0x47')]),this[_0xa3fa('0x14')](),this[_0xa3fa('0x1d')][_0xa3fa('0x14')](),this[_0xa3fa('0x14')](this[_0xa3fa('0x26')]['editors']);for(const _0x63e327 of Array['from'](this[_0xa3fa('0x5a')]))this['_destroyEditorAnnotationsIntegration'](_0x63e327);window[_0xa3fa('0x10')](_0xa3fa('0x13'),this['_throttledRefreshPositioning']),this[_0xa3fa('0x31')][_0xa3fa('0x48')](),this[_0xa3fa('0x50')]=[],this['isAttached']=!0x1,this['_annotations']=null;}[_0xa3fa('0x4b')](){this[_0xa3fa('0x4')]&&this['detach'](),this[_0xa3fa('0x5b')]['detachFromDom']();}[_0xa3fa('0x55')](_0x38a283){const _0x34e3e8=_0x38a283['plugins'][_0xa3fa('0x4e')](_0xa3fa('0xd')),_0x4fb254=this[_0xa3fa('0x26')]['plugins']['get'](_0xdcc9b0),_0xdc292b=this['_annotations'],_0x2f897d=this['balloonPanelView'],_0x376133=()=>{const _0x20abe6=_0x34e3e8['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0xa3fa('0x47')]});this[_0xa3fa('0x12')](_0x20abe6),this['setActiveAnnotation'](_0x20abe6[0x0]||null);};this[_0xa3fa('0x2e')](_0x34e3e8,_0xa3fa('0x2b'),_0x376133),this[_0xa3fa('0x2e')](_0x34e3e8,_0xa3fa('0x22'),(_0x242c7c,{isAnnotationTracked:_0x3078fb})=>{this[_0xa3fa('0x1c')]&&_0x3078fb(this[_0xa3fa('0x1c')])&&(this[_0xa3fa('0x12')]([]),this[_0xa3fa('0x45')](null));}),this[_0xa3fa('0x2e')](_0x34e3e8,'uiUpdate',()=>{this[_0xa3fa('0x31')]();}),this[_0xa3fa('0x2e')](_0xdc292b,'blur',_0x154f6b=>{_0x34e3e8[_0xa3fa('0x7')]()&&_0x154f6b[_0xa3fa('0x17')]();},{'priority':_0xa3fa('0x3f')}),this[_0xa3fa('0x1d')]['listenTo'](document,_0xa3fa('0x1f'),(_0x53f636,_0x235d60)=>{const _0x5dfa1b=_0x235d60[_0xa3fa('0x1e')];_0x2f897d[_0xa3fa('0x29')]&&_0x2f897d['element']['contains'](_0x5dfa1b)||_0x4fb254[_0xa3fa('0x4c')]['element'][_0xa3fa('0x4f')](_0x5dfa1b)||this[_0xa3fa('0x1c')]&&_0x34e3e8[_0xa3fa('0x7')]()&&(_0x376133(),_0x53f636[_0xa3fa('0xc')]=!0x0);},{'priority':_0xa3fa('0x3f')}),this[_0xa3fa('0x5a')]['add'](_0x34e3e8);}[_0xa3fa('0x16')](_0x1b0005){_0x1b0005&&(this[_0xa3fa('0x14')](_0x1b0005),this[_0xa3fa('0x5a')][_0xa3fa('0x53')](_0x1b0005));}[_0xa3fa('0x12')](_0x1a3e3c){for(const _0x5a6307 of this['_selectedAnnotations'])_0x1a3e3c['includes'](_0x5a6307)||this[_0xa3fa('0x2')]['delete'](_0x5a6307['view']);this[_0xa3fa('0x50')]=_0x1a3e3c;}[_0xa3fa('0x5c')](){const _0x38f839=this[_0xa3fa('0x21')];this[_0xa3fa('0x47')][_0xa3fa('0x19')](),_0x38f839[_0xa3fa('0x29')]&&this[_0xa3fa('0x1b')]();}[_0xa3fa('0x46')](_0x3e8512){if(this[_0xa3fa('0x2')][_0xa3fa('0x59')](_0x3e8512[_0xa3fa('0x4c')]))return;const _0x4a088c=this[_0xa3fa('0x21')][_0xa3fa('0x6')][_0xa3fa('0x33')];_0x4a088c!==_0x3e8512[_0xa3fa('0x4c')]?(_0x4a088c&&this[_0xa3fa('0x51')](_0x4a088c),this['_attachListeners'](_0x3e8512[_0xa3fa('0x4c')]),this['balloonPanelView']['content']['clear'](),this[_0xa3fa('0x21')][_0xa3fa('0x6')][_0xa3fa('0x54')](_0x3e8512[_0xa3fa('0x4c')]),this[_0xa3fa('0x1b')]()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x298bf4=this[_0xa3fa('0x21')]['content'][_0xa3fa('0x33')],_0x5446f8=this['_annotations'][_0xa3fa('0x25')](_0x298bf4);if(!this[_0xa3fa('0x20')][_0xa3fa('0x59')](_0x5446f8))return;const _0x45b66e=this[_0xa3fa('0x20')][_0xa3fa('0x4e')](_0x5446f8)['element'],_0x32f2fa=function(){const _0x5c8749=_0x1c66bc[_0xa3fa('0x42')];return[_0x5c8749[_0xa3fa('0x1')],_0x5c8749['northArrowSouthEast'],_0x5c8749['southArrowNorth'],_0x5c8749[_0xa3fa('0x11')],_0x5c8749[_0xa3fa('0x5e')],_0x5c8749[_0xa3fa('0x56')]];}();this[_0xa3fa('0x21')][_0xa3fa('0x3d')]({'target':_0x45b66e,'positions':_0x32f2fa});}[_0xa3fa('0xb')](){const _0x2cd591=this[_0xa3fa('0x21')],_0x5b034a=_0x2cd591[_0xa3fa('0x6')][_0xa3fa('0x33')];_0x5b034a&&(this[_0xa3fa('0x51')](_0x5b034a),_0x2cd591[_0xa3fa('0x57')](),_0x2cd591[_0xa3fa('0x6')][_0xa3fa('0x36')]());}[_0xa3fa('0x1a')](_0x4a317e){this[_0xa3fa('0x2e')](_0x4a317e,_0xa3fa('0x27'),()=>this[_0xa3fa('0x1b')]()),this[_0xa3fa('0x2e')](_0x4a317e,_0xa3fa('0x2d'),(_0x8b3a0c,_0x11476a)=>{this[_0xa3fa('0x2')][_0xa3fa('0x54')](_0x4a317e),this['_hideBalloon'](),_0x11476a();});}[_0xa3fa('0x51')](_0x4915a0){this[_0xa3fa('0x14')](_0x4915a0);}}
23
+ const _0x1843=['refreshPositioning','attachToDom','_detachListeners','has','remove','detach','register','keydown','clear','NarrowSidebar','southArrowNorthWest','stopListening','isVisible','contains','unpin','_throttledRefreshPositioning','off','isDirty','preventDefault','_detachFromContainer','focus','_hideBalloon','target','get','element','_selectedAnnotations','listenTo','view','esc','destroy','context','ck-sidebar--narrow','resize','balloonPanelView','activeAnnotation','refresh','_annotations','values','length','high','preventClosingBalloon','setActiveAnnotation','bodyCollection','_attachToContainer','stop','locale','_manuallyClosedAnnotationViews','content','mousedown','northArrowSouthEast','plugins','narrowsidebar-detach-not-attached','cancel','_updateBalloonPosition','_attachListeners','Sidebar','requires','rearrange','blur','hasDomSelection','_refreshPositioning','set','change:container','narrowSidebar','detachFromDom','editors','addEventListener','getByView','pluginName','delete','_domEmitter','_annotationToNarrowView','_destroyEditorAnnotationsIntegration','addAnnotation','init','removeEventListener','first','narrowsidebar-attach-already-attached','attach','change:height','EditorAnnotations','isAttached','create','_showBalloon','_editorAnnotations','_setSelectedAnnotations','keyCode','_integrateWithEditorAnnotations','add','type'];(function(_0x5d929c,_0x184329){const _0xb9784f=function(_0x14f7a3){while(--_0x14f7a3){_0x5d929c['push'](_0x5d929c['shift']());}};_0xb9784f(++_0x184329);}(_0x1843,0x1ed));const _0xb978=function(_0x5d929c,_0x184329){_0x5d929c=_0x5d929c-0x0;let _0xb9784f=_0x1843[_0x5d929c];return _0xb9784f;};import{ContextPlugin as _0x53a403}from'ckeditor5/src/core';import _0x5d07ea from'./annotationsuis';import _0x536bdb from'./sidebar';import _0x220f8b from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x4143a6,BodyCollection as _0x529ac2}from'ckeditor5/src/ui';import{CKEditorError as _0x556d90,DomEmitterMixin as _0x559ff9,keyCodes as _0x2d3321,Collection as _0x8692ab}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x33c2a0}from'lodash-es';export default class s extends _0x53a403{static get[_0xb978('0xd')](){return[_0x536bdb,_0x5d07ea];}static get[_0xb978('0x19')](){return _0xb978('0x38');}constructor(_0x29ebfa){super(_0x29ebfa),this['isAttached']=!0x1,this[_0xb978('0x3')]=new Set(),this[_0xb978('0x1b')]=Object[_0xb978('0x27')](_0x559ff9),this[_0xb978('0x1c')]=new Map(),this[_0xb978('0x12')](_0xb978('0x51'),null),this[_0xb978('0x53')]=null,this[_0xb978('0x48')]=[],this[_0xb978('0x29')]=new _0x8692ab(),this['_throttledRefreshPositioning']=_0x33c2a0(()=>{this[_0xb978('0x11')]();},0x190,{'leading':!0x1});}[_0xb978('0x1f')](){this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0x5d07ea)[_0xb978('0x35')](_0xb978('0x14'),this),this[_0xb978('0x59')]=new _0x529ac2(this[_0xb978('0x4d')][_0xb978('0x2')]),this[_0xb978('0x50')]=new _0x4143a6(this[_0xb978('0x4d')][_0xb978('0x2')]),this[_0xb978('0x59')][_0xb978('0x30')](),this['bodyCollection'][_0xb978('0x2d')](this[_0xb978('0x50')]);}[_0xb978('0x23')](_0x33f11c){this['_annotations']=_0x33f11c;const _0xcb87c0=this['context']['plugins'][_0xb978('0x46')](_0x536bdb),_0x577ac6=this[_0xb978('0x50')];if(_0xcb87c0[_0xb978('0x53')]=_0x33f11c,this['isAttached'])throw new _0x556d90(_0xb978('0x22'),this);this[_0xb978('0x26')]=!0x0,this[_0xb978('0x49')](_0xcb87c0,'set:container',()=>{this[_0xb978('0x34')](),this[_0xb978('0x49')](_0xcb87c0,_0xb978('0x13'),_0x5f5ac3=>{_0x5f5ac3[_0xb978('0x3f')](),this[_0xb978('0x23')](_0x33f11c);});}),_0xcb87c0[_0xb978('0x0')]({'viewClass':_0xb978('0x4e'),'spaceBetweenItems':0x5});const _0x2c61db=_0xa88d72=>{const _0x49d563=new _0x220f8b(this[_0xb978('0x4d')][_0xb978('0x2')]);_0xcb87c0[_0xb978('0x1e')](_0xa88d72,_0x49d563),this['_annotationToNarrowView'][_0xb978('0x12')](_0xa88d72,_0x49d563),_0x49d563['bind']('isDirty','annotationType','number')['to'](_0xa88d72[_0xb978('0x4a')],_0xb978('0x40'),_0xb978('0x2e'),_0xb978('0x55')),_0x49d563['on']('execute',()=>{this[_0xb978('0x3')]['clear'](),_0x577ac6[_0xb978('0x4')][_0xb978('0x21')]!==_0xa88d72['view']?(this['_showBalloon'](_0xa88d72),_0xa88d72[_0xb978('0x4a')]['element']['focus'](),this['setActiveAnnotation'](_0xa88d72)):this[_0xb978('0x58')](null);});};for(const _0x3d7012 of _0x33f11c)_0x2c61db(_0x3d7012);this[_0xb978('0x49')](_0x33f11c,'add',(_0x3ce507,_0x17447c)=>{_0x2c61db(_0x17447c);}),this[_0xb978('0x49')](_0x33f11c,_0xb978('0x33'),(_0x1a0860,_0x24fb0e,_0x51f3d9)=>{this['_annotationToNarrowView'][_0xb978('0x46')](_0x24fb0e)['destroy'](),this[_0xb978('0x1c')][_0xb978('0x1a')](_0x24fb0e),_0xcb87c0[_0xb978('0xe')]({'removedAnnotation':_0x24fb0e,'previousAnnotation':_0x33f11c[_0xb978('0x46')](_0x51f3d9-0x1),'nextAnnotation':_0x33f11c[_0xb978('0x46')](_0x51f3d9+0x1)}),_0x24fb0e===this[_0xb978('0x51')]&&this[_0xb978('0x58')](null);},{'priority':'low'}),this[_0xb978('0x49')](_0x33f11c,_0xb978('0x43'),(_0x6062d8,_0x3ca5b8)=>{this[_0xb978('0x58')](_0x3ca5b8);}),this['listenTo'](_0x33f11c,_0xb978('0xf'),()=>{this[_0xb978('0x58')](null);}),this['_domEmitter'][_0xb978('0x49')](document,_0xb978('0x36'),(_0x23cae6,_0x845db4)=>{_0x845db4[_0xb978('0x2b')]===_0x2d3321[_0xb978('0x4b')]&&_0x577ac6[_0xb978('0x3b')]&&(this[_0xb978('0x3')][_0xb978('0x2d')](_0x577ac6[_0xb978('0x4')][_0xb978('0x21')]),this['_hideBalloon'](),_0x845db4['stopPropagation'](),_0x845db4[_0xb978('0x41')]());}),this[_0xb978('0x1b')][_0xb978('0x49')](document,_0xb978('0x5'),(_0x2a8e10,_0x5df01f)=>{const _0x49e25c=_0x5df01f['target'];_0x577ac6[_0xb978('0x3b')]&&_0x577ac6['element'][_0xb978('0x3c')](_0x49e25c)||_0xcb87c0[_0xb978('0x4a')][_0xb978('0x47')][_0xb978('0x3c')](_0x49e25c)||_0x2a8e10[_0xb978('0x57')]||(this[_0xb978('0x3')][_0xb978('0x37')](),this[_0xb978('0x44')](),this[_0xb978('0x58')](null));});const _0x4eb275=this[_0xb978('0x4d')]['editors']?this[_0xb978('0x4d')][_0xb978('0x16')]:new _0x8692ab([this['context']]);for(const _0x181c5b of _0x4eb275)this[_0xb978('0x2c')](_0x181c5b);this[_0xb978('0x49')](_0x4eb275,'add',(_0x5df7ee,_0x2923b4)=>{this['listenTo'](_0x2923b4,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2923b4);});}),this[_0xb978('0x49')](_0x4eb275,_0xb978('0x33'),(_0x62e9c4,_0x4905d2)=>{_0x4905d2[_0xb978('0x7')]['has'](_0xb978('0x25'))&&this[_0xb978('0x1d')](_0x4905d2['plugins'][_0xb978('0x46')](_0xb978('0x25')));}),window[_0xb978('0x17')](_0xb978('0x4f'),this[_0xb978('0x3e')]),this[_0xb978('0x11')]();}[_0xb978('0x58')](_0x1965ea){if(_0x1965ea===this[_0xb978('0x51')])return;const _0x50c019=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0xb978('0xc'));if(_0x50c019['refresh']({'blurredAnnotation':this[_0xb978('0x51')],'activatedAnnotation':_0x1965ea,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1965ea)_0x50c019['getSidebarItemView'](_0x1965ea)?this['_showBalloon'](_0x1965ea):this[_0xb978('0x44')]();else this[_0xb978('0x44')]();this[_0xb978('0x51')]=_0x1965ea;}[_0xb978('0x34')](){if(!this['isAttached'])throw new _0x556d90(_0xb978('0x8'),this);this['setActiveAnnotation'](null);const _0xa4a826=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0xb978('0xc'));this[_0xb978('0x44')](),Array['from'](this[_0xb978('0x1c')][_0xb978('0x54')](),_0x4070d7=>_0x4070d7[_0xb978('0x4c')]()),this[_0xb978('0x1c')]['clear'](),_0xa4a826[_0xb978('0x42')](this[_0xb978('0x53')]),this[_0xb978('0x3a')](),this[_0xb978('0x1b')]['stopListening'](),this['stopListening'](this[_0xb978('0x4d')][_0xb978('0x16')]);for(const _0x3569f0 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3569f0);window[_0xb978('0x20')](_0xb978('0x4f'),this[_0xb978('0x3e')]),this[_0xb978('0x3e')][_0xb978('0x9')](),this[_0xb978('0x48')]=[],this[_0xb978('0x26')]=!0x1,this['_annotations']=null;}[_0xb978('0x4c')](){this[_0xb978('0x26')]&&this['detach'](),this[_0xb978('0x59')][_0xb978('0x15')]();}[_0xb978('0x2c')](_0x338d35){const _0x411798=_0x338d35[_0xb978('0x7')][_0xb978('0x46')](_0xb978('0x25')),_0x4220d1=this[_0xb978('0x4d')][_0xb978('0x7')][_0xb978('0x46')](_0x536bdb),_0x11c8c1=this['_annotations'],_0x2c6c2e=this[_0xb978('0x50')],_0x166a27=()=>{const _0x56ae60=_0x411798['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0xb978('0x51')],'annotations':this[_0xb978('0x53')]});this['_setSelectedAnnotations'](_0x56ae60),this[_0xb978('0x58')](_0x56ae60[0x0]||null);};this[_0xb978('0x49')](_0x411798,_0xb978('0x52'),_0x166a27),this['listenTo'](_0x411798,_0xb978('0xf'),(_0x34e604,{isAnnotationTracked:_0x1add6e})=>{this[_0xb978('0x51')]&&_0x1add6e(this[_0xb978('0x51')])&&(this['_setSelectedAnnotations']([]),this[_0xb978('0x58')](null));}),this[_0xb978('0x49')](_0x411798,'uiUpdate',()=>{this[_0xb978('0x3e')]();}),this[_0xb978('0x49')](_0x11c8c1,'blur',_0x389a21=>{_0x411798[_0xb978('0x10')]()&&_0x389a21[_0xb978('0x1')]();},{'priority':_0xb978('0x56')}),this[_0xb978('0x1b')][_0xb978('0x49')](document,_0xb978('0x5'),(_0xebc7a0,_0x31dd18)=>{const _0x5501fc=_0x31dd18[_0xb978('0x45')];_0x2c6c2e[_0xb978('0x3b')]&&_0x2c6c2e[_0xb978('0x47')][_0xb978('0x3c')](_0x5501fc)||_0x4220d1[_0xb978('0x4a')][_0xb978('0x47')]['contains'](_0x5501fc)||this[_0xb978('0x51')]&&_0x411798['hasDomSelection']()&&(_0x166a27(),_0xebc7a0[_0xb978('0x57')]=!0x0);},{'priority':'high'}),this[_0xb978('0x29')][_0xb978('0x2d')](_0x411798);}['_destroyEditorAnnotationsIntegration'](_0x470ffe){_0x470ffe&&(this[_0xb978('0x3a')](_0x470ffe),this[_0xb978('0x29')]['remove'](_0x470ffe));}[_0xb978('0x2a')](_0x4fd009){for(const _0x4c8721 of this[_0xb978('0x48')])_0x4fd009['includes'](_0x4c8721)||this[_0xb978('0x3')][_0xb978('0x1a')](_0x4c8721[_0xb978('0x4a')]);this[_0xb978('0x48')]=_0x4fd009;}['_refreshPositioning'](){const _0x1583a0=this[_0xb978('0x50')];this[_0xb978('0x53')][_0xb978('0x2f')](),_0x1583a0[_0xb978('0x3b')]&&this['_updateBalloonPosition']();}[_0xb978('0x28')](_0x184ac3){if(this[_0xb978('0x3')][_0xb978('0x32')](_0x184ac3[_0xb978('0x4a')]))return;const _0x355e97=this[_0xb978('0x50')]['content'][_0xb978('0x21')];_0x355e97!==_0x184ac3[_0xb978('0x4a')]?(_0x355e97&&this['_detachListeners'](_0x355e97),this['_attachListeners'](_0x184ac3[_0xb978('0x4a')]),this[_0xb978('0x50')]['content'][_0xb978('0x37')](),this[_0xb978('0x50')][_0xb978('0x4')][_0xb978('0x2d')](_0x184ac3[_0xb978('0x4a')]),this[_0xb978('0xa')]()):this[_0xb978('0xa')]();}[_0xb978('0xa')](){const _0x8a01fc=this[_0xb978('0x50')][_0xb978('0x4')]['first'],_0x4b565b=this['_annotations'][_0xb978('0x18')](_0x8a01fc);if(!this[_0xb978('0x1c')]['has'](_0x4b565b))return;const _0x3b7c77=this[_0xb978('0x1c')]['get'](_0x4b565b)[_0xb978('0x47')],_0x5476b3=function(){const _0x317038=_0x4143a6['defaultPositions'];return[_0x317038['southArrowNorthEast'],_0x317038[_0xb978('0x6')],_0x317038['southArrowNorth'],_0x317038['northArrowSouth'],_0x317038[_0xb978('0x39')],_0x317038['northArrowSouthWest']];}();this[_0xb978('0x50')]['pin']({'target':_0x3b7c77,'positions':_0x5476b3});}['_hideBalloon'](){const _0x26618d=this[_0xb978('0x50')],_0x432bf6=_0x26618d[_0xb978('0x4')][_0xb978('0x21')];_0x432bf6&&(this[_0xb978('0x31')](_0x432bf6),_0x26618d[_0xb978('0x3d')](),_0x26618d['content']['clear']());}[_0xb978('0xb')](_0x1a9f0c){this[_0xb978('0x49')](_0x1a9f0c,_0xb978('0x24'),()=>this[_0xb978('0xa')]()),this['listenTo'](_0x1a9f0c,'Esc',(_0xc64974,_0x4852e0)=>{this[_0xb978('0x3')][_0xb978('0x2d')](_0x1a9f0c),this[_0xb978('0x44')](),_0x4852e0();});}[_0xb978('0x31')](_0x3740d2){this[_0xb978('0x3a')](_0x3740d2);}}