@ckeditor/ckeditor5-comments 31.1.0 → 32.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 (87) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/lang/translations/bs.po +80 -0
  4. package/lang/translations/cs.po +1 -1
  5. package/lang/translations/da.po +1 -1
  6. package/lang/translations/de-ch.po +1 -1
  7. package/lang/translations/de.po +1 -1
  8. package/lang/translations/en-au.po +1 -1
  9. package/lang/translations/en.po +1 -1
  10. package/lang/translations/es.po +1 -1
  11. package/lang/translations/et.po +1 -1
  12. package/lang/translations/fr.po +1 -1
  13. package/lang/translations/gl.po +1 -1
  14. package/lang/translations/hi.po +1 -1
  15. package/lang/translations/hr.po +1 -1
  16. package/lang/translations/hu.po +1 -1
  17. package/lang/translations/id.po +1 -1
  18. package/lang/translations/it.po +1 -1
  19. package/lang/translations/ja.po +1 -1
  20. package/lang/translations/ko.po +1 -1
  21. package/lang/translations/nl.po +1 -1
  22. package/lang/translations/no.po +1 -1
  23. package/lang/translations/pl.po +1 -1
  24. package/lang/translations/pt-br.po +1 -1
  25. package/lang/translations/ro.po +1 -1
  26. package/lang/translations/ru.po +1 -1
  27. package/lang/translations/sk.po +1 -1
  28. package/lang/translations/sr-latn.po +1 -1
  29. package/lang/translations/sr.po +1 -1
  30. package/lang/translations/tk.po +1 -1
  31. package/lang/translations/tr.po +1 -1
  32. package/lang/translations/ug.po +1 -1
  33. package/lang/translations/uk.po +1 -1
  34. package/lang/translations/zh-cn.po +1 -1
  35. package/lang/translations/zh.po +1 -1
  36. package/package.json +8 -8
  37. package/src/annotations/annotation.js +2 -2
  38. package/src/annotations/annotationcollection.js +2 -2
  39. package/src/annotations/annotations.js +2 -2
  40. package/src/annotations/annotationsuis.js +2 -2
  41. package/src/annotations/editorannotations.js +2 -2
  42. package/src/annotations/inlineannotations.js +2 -2
  43. package/src/annotations/narrowsidebar.js +2 -2
  44. package/src/annotations/sidebar.js +2 -2
  45. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  46. package/src/annotations/view/annotationview.js +2 -2
  47. package/src/annotations/view/sidebaritemview.js +2 -2
  48. package/src/annotations/view/sidebarview.js +2 -2
  49. package/src/annotations/widesidebar.js +2 -2
  50. package/src/comments/addcommentthreadcommand.js +2 -2
  51. package/src/comments/commentsediting.js +2 -2
  52. package/src/comments/commentsrepository.js +2 -2
  53. package/src/comments/commentsui.js +2 -2
  54. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  55. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  56. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  57. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  58. package/src/comments/ui/commentthreadcontroller.js +2 -2
  59. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  60. package/src/comments/ui/view/basecommentview.js +2 -2
  61. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  62. package/src/comments/ui/view/commentcontentview.js +2 -2
  63. package/src/comments/ui/view/commentinputview.js +2 -2
  64. package/src/comments/ui/view/commentslistview.js +2 -2
  65. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  66. package/src/comments/ui/view/commentthreadview.js +2 -2
  67. package/src/comments/ui/view/commentview.js +2 -2
  68. package/src/comments/ui/view/confirmmixin.js +2 -2
  69. package/src/comments/ui/view/confirmview.js +2 -2
  70. package/src/comments.js +2 -2
  71. package/src/commentsonly.js +2 -2
  72. package/src/utils/common-translations.js +2 -2
  73. package/src/utils/createmutationobserver.js +2 -2
  74. package/src/utils/getdatetimeformatter.js +2 -2
  75. package/src/utils/getmarkerdomelement.js +2 -2
  76. package/src/utils/trim-html.js +2 -2
  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
package/LICENSE.md CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  **CKEditor 5 comments** (https://ckeditor.com/collaboration/comments/)<br>
5
- Copyright (c) 2003-2021, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
5
+ Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
6
6
 
7
7
  CKEditor 5 comments feature is licensed under a commercial license and is protected by copyright law.
8
8
  For more details about available licensing options please contact us at sales@cksource.com.
@@ -20,4 +20,4 @@ The following libraries are included in CKEditor 5 comments under the [MIT licen
20
20
  Trademarks
21
21
  ----------
22
22
 
23
- **CKEditor** is a trademark of [CKSource](http://cksource.com) Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
23
+ **CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
package/README.md CHANGED
@@ -40,11 +40,11 @@ As a licensed CKEditor 5 comments user you can report bugs and request features
40
40
  ## License
41
41
 
42
42
  **CKEditor 5 comments** (https://ckeditor.com/collaboration/comments/)<br>
43
- Copyright (c) 2003-2021, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
43
+ Copyright (c) 2003-2021, [CKSource](http://cksource.com) Holding sp. z o.o. All rights reserved.
44
44
 
45
45
  CKEditor 5 comments feature is licensed under a commercial license and is protected by copyright law.
46
46
  For more details about available licensing options please contact us at sales@cksource.com.
47
47
 
48
48
  ### Trademarks
49
49
 
50
- **CKEditor** is a trademark of [CKSource](http://cksource.com) Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
50
+ **CKEditor** is a trademark of [CKSource](http://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
@@ -0,0 +1,80 @@
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: Bosnian (https://www.transifex.com/ckeditor/teams/11143/bs/)\n"
16
+ "Language: bs\n"
17
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\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 komentar"
27
+ msgstr[1] "%0 komentara"
28
+ msgstr[2] "%0 komentara"
29
+
30
+ msgctxt "The alert displayed for a comment that is too long."
31
+ msgid "TOO_LONG_COMMENT_ALERT"
32
+ msgstr "Sadržaj komentara je predug. Vaš komentar ima %0 znakova, a limit za unos je %1 znakova."
33
+
34
+ msgctxt "The placeholder for the reply field."
35
+ msgid "Reply..."
36
+ msgstr "Odgovori..."
37
+
38
+ msgctxt "The placeholder for the new commend field."
39
+ msgid "Write a comment..."
40
+ msgstr "Napiši komentar..."
41
+
42
+ msgctxt "The label for the button that enables editing a comment."
43
+ msgid "Edit"
44
+ msgstr "Uredi"
45
+
46
+ msgctxt "The label for the button that deletes a comment."
47
+ msgid "Remove"
48
+ msgstr "Ukloni"
49
+
50
+ msgctxt "The label for for the button that submits a comment."
51
+ msgid "Submit"
52
+ msgstr ""
53
+
54
+ msgctxt "The confirmation message shown after pressing the delete comment button."
55
+ msgid "Delete comment?"
56
+ msgstr "Obriši komentar?"
57
+
58
+ msgctxt "The confirmation message shown after pressing the delete comment thread button."
59
+ msgid "Delete comment thread?"
60
+ msgstr "Obriši niz komentara?"
61
+
62
+ msgctxt "The label for confirming an action."
63
+ msgid "Yes"
64
+ msgstr "Da"
65
+
66
+ msgctxt "The label for rejecting an action."
67
+ msgid "No"
68
+ msgstr "Ne"
69
+
70
+ msgctxt "The label for confirming a dangerous action."
71
+ msgid "Are you sure?"
72
+ msgstr "Da li ste sigurni?"
73
+
74
+ msgctxt "The tooltip for the comment toolbar button."
75
+ msgid "Comment"
76
+ msgstr "Komentar"
77
+
78
+ msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
79
+ msgid "PENDING_ACTION_COMMENT_THREAD"
80
+ msgstr "Imate nesačuvane izmjene."
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
1
+ # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "31.1.0",
3
+ "version": "32.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/)",
@@ -30,13 +30,13 @@
30
30
  "discussions"
31
31
  ],
32
32
  "dependencies": {
33
- "@ckeditor/ckeditor5-autoformat": "^31.1.0",
34
- "@ckeditor/ckeditor5-basic-styles": "^31.1.0",
35
- "@ckeditor/ckeditor5-collaboration-core": "^31.1.0",
36
- "@ckeditor/ckeditor5-essentials": "^31.1.0",
37
- "@ckeditor/ckeditor5-list": "^31.1.0",
38
- "@ckeditor/ckeditor5-utils": "^31.1.0",
39
- "ckeditor5": "^31.1.0",
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
40
  "date-fns": "^2.17.0",
41
41
  "lodash-es": "^4.17.11"
42
42
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ee9=['_target','view','targetRect','_assertCorrectTarget','_id','focusTracker','focusableElements','function','_type','annotation-invalid-target','add','updateTargetRect','destroy','innerView','type','render','isActive','target','mainView','element','clear'];(function(_0x1ee65a,_0x4ee9b4){const _0x26235b=function(_0xbaec1f){while(--_0xbaec1f){_0x1ee65a['push'](_0x1ee65a['shift']());}};_0x26235b(++_0x4ee9b4);}(_0x4ee9,0xe5));const _0x2623=function(_0x1ee65a,_0x4ee9b4){_0x1ee65a=_0x1ee65a-0x0;let _0x26235b=_0x4ee9[_0x1ee65a];return _0x26235b;};import{CKEditorError as _0x1eeeef,Rect as _0x3f0701,Collection as _0x2abb42}from'ckeditor5/src/utils';import{isElement as _0x181884}from'lodash-es';export default class d{constructor({view:_0x43ebb4,target:_0x566213,type:_0x24f70c}){this[_0x2623('0x3')]=_0x43ebb4,this[_0x2623('0x3')][_0x2623('0x0')]||this['view'][_0x2623('0x11')](),this[_0x2623('0xa')]=_0x24f70c,this[_0x2623('0x2')]=_0x566213,this[_0x2623('0x5')](),this[_0x2623('0x8')]=new _0x2abb42([this[_0x2623('0x3')][_0x2623('0x0')]],{'idProperty':_0x2623('0x6')}),this[_0x2623('0x8')]['on'](_0x2623('0xc'),(_0x4cafc2,_0x5108)=>{this[_0x2623('0x3')][_0x2623('0x7')]['add'](_0x5108);}),this['focusableElements']['on']('remove',(_0x2f23df,_0x2c39e2)=>{this[_0x2623('0x3')][_0x2623('0x7')]['remove'](_0x2c39e2);});}get[_0x2623('0x10')](){return _0x2623('0x9')==typeof this[_0x2623('0xa')]?this[_0x2623('0xa')]():this['_type'];}get[_0x2623('0xf')](){return this['view'][_0x2623('0x14')];}get[_0x2623('0x13')](){return _0x2623('0x9')==typeof this[_0x2623('0x2')]?this['_target']():this[_0x2623('0x2')];}get['targetRect'](){const _0x436f58=this[_0x2623('0x13')];return this[_0x2623('0x5')](),null===_0x436f58?null:new _0x3f0701(_0x436f58);}get[_0x2623('0x12')](){return this['view'][_0x2623('0x12')];}set[_0x2623('0x12')](_0x189761){this[_0x2623('0x3')][_0x2623('0x12')]=_0x189761,this[_0x2623('0x3')][_0x2623('0x14')][_0x2623('0x12')]=_0x189761;}[_0x2623('0xd')](){this[_0x2623('0x3')][_0x2623('0x4')]=this[_0x2623('0x4')];}[_0x2623('0xe')](){this[_0x2623('0x8')]['stopListening'](),this[_0x2623('0x8')][_0x2623('0x1')]();}[_0x2623('0x5')](){const _0x463f0c=this[_0x2623('0x13')];if(!(null===_0x463f0c||_0x463f0c instanceof _0x3f0701||_0x181884(_0x463f0c)))throw new _0x1eeeef(_0x2623('0xb'),null,{'target':_0x463f0c});}}
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);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4909=['focusableElements','change:isFocused','getByView','fire','_focusTracker','stopListening','isFocused','_innerViewToAnnotation','annotationcollection-not-existing-item','delete','listenTo','targetRect','from','set','destroy','_getOrderInContent','clear','target','add','has','innerView','remove','_sort','length','sort','focus','top','getIndex','getByInnerView','view','annotationcollection-duplicated-item','left','max','focusTracker','_viewToAnnotation'];(function(_0x4cc24d,_0x490953){const _0x55fcd7=function(_0x21812f){while(--_0x21812f){_0x4cc24d['push'](_0x4cc24d['shift']());}};_0x55fcd7(++_0x490953);}(_0x4909,0x1a6));const _0x55fc=function(_0x4cc24d,_0x490953){_0x4cc24d=_0x4cc24d-0x0;let _0x55fcd7=_0x4909[_0x4cc24d];return _0x55fcd7;};import{CKEditorError as _0x2f2941,Collection as _0x2c651d,Rect as _0x441f33,FocusTracker as _0x39f636}from'ckeditor5/src/utils';export default class p extends _0x2c651d{constructor(_0x4b1395=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x55fc('0x20')]=new Map(),this[_0x55fc('0x2')]=new _0x39f636(),this[_0x55fc('0x2')]['on']('change:isFocused',(_0x9cd8fe,_0x41b3ec,_0x4d8205)=>{_0x4d8205||this[_0x55fc('0x1')]('blur');});for(const _0x2b1472 of _0x4b1395)this[_0x55fc('0x10')](_0x2b1472);}get['isFocused'](){return this[_0x55fc('0x2')][_0x55fc('0x4')];}['add'](_0xa454ae){if(this[_0x55fc('0x11')](_0xa454ae))throw new _0x2f2941(_0x55fc('0x1c'),null);this[_0x55fc('0x5')][_0x55fc('0xb')](_0xa454ae[_0x55fc('0x12')],_0xa454ae),this[_0x55fc('0x20')][_0x55fc('0xb')](_0xa454ae[_0x55fc('0x1b')],_0xa454ae);for(const _0x8d241 of _0xa454ae[_0x55fc('0x21')])this[_0x55fc('0x2')][_0x55fc('0x10')](_0x8d241);this[_0x55fc('0x8')](_0xa454ae[_0x55fc('0x21')],_0x55fc('0x10'),(_0x193ddc,_0x23e1f3)=>{this[_0x55fc('0x2')][_0x55fc('0x10')](_0x23e1f3);}),this[_0x55fc('0x8')](_0xa454ae[_0x55fc('0x21')],_0x55fc('0x13'),(_0x5ee9d2,_0x5f07fc)=>{this[_0x55fc('0x2')][_0x55fc('0x13')](_0x5f07fc);}),this['listenTo'](_0xa454ae[_0x55fc('0x1b')][_0x55fc('0x1f')],_0x55fc('0x22'),(_0x129300,_0x38e266,_0x150cf)=>{_0x150cf&&this[_0x55fc('0x1')](_0x55fc('0x17'),_0xa454ae);});const _0x462a8f=this['_getOrderInContent'](_0xa454ae);super[_0x55fc('0x10')](_0xa454ae,_0x462a8f),_0xa454ae['updateTargetRect']();}[_0x55fc('0x13')](_0x4df150){if(!this[_0x55fc('0x11')](_0x4df150))throw new _0x2f2941(_0x55fc('0x6'),null);this['stopListening'](_0x4df150[_0x55fc('0x1b')][_0x55fc('0x1f')]),this[_0x55fc('0x3')](_0x4df150[_0x55fc('0x21')]);for(const _0x5d01bf of _0x4df150[_0x55fc('0x21')])this[_0x55fc('0x2')]['remove'](_0x5d01bf);this[_0x55fc('0x20')]['delete'](_0x4df150['view']),this['_innerViewToAnnotation'][_0x55fc('0x7')](_0x4df150[_0x55fc('0x12')]),super['remove'](_0x4df150);}[_0x55fc('0x1a')](_0x5d9110){return this[_0x55fc('0x5')]['get'](_0x5d9110);}[_0x55fc('0x0')](_0x27926f){return this['_viewToAnnotation']['get'](_0x27926f);}[_0x55fc('0xc')](){super[_0x55fc('0xe')](),this[_0x55fc('0x3')](),this['_innerViewToAnnotation']=null,this[_0x55fc('0x20')]=null,this[_0x55fc('0x2')]['destroy']();}['refreshPositioning'](){for(const _0x2a766c of this)_0x2a766c['updateTargetRect']();this['_sort']();}[_0x55fc('0x14')](){const _0x4daaab=Array[_0x55fc('0xa')](this)[_0x55fc('0x16')]((_0x2686d2,_0x3f170f)=>w(_0x2686d2['targetRect'],_0x3f170f[_0x55fc('0x9')]));for(let _0x4b3955=_0x4daaab[_0x55fc('0x15')]-0x1;_0x4b3955>0x0;_0x4b3955--){const _0x3d9b7c=_0x4daaab[_0x4b3955];_0x4b3955!==this[_0x55fc('0x19')](_0x3d9b7c)&&(this[_0x55fc('0x13')](_0x3d9b7c),this['add'](_0x3d9b7c,_0x4b3955));}}[_0x55fc('0xd')](_0x16a7c8){let _0x14dbfa=0x0;const _0x471f42=_0x16a7c8[_0x55fc('0x9')];for(const _0x293834 of this){const _0x1bcba1=_0x293834[_0x55fc('0xf')];if(_0x1bcba1){if(w(_0x471f42,new _0x441f33(_0x1bcba1))<0x0)return _0x14dbfa;_0x14dbfa++;}}return Math[_0x55fc('0x1e')](0x0,_0x14dbfa);}}export function bindAnnotationCollections({source:_0x4c1b0e,target:_0x401a15,filter:_0x1e47bf}){for(const _0x90325a of _0x4c1b0e)_0x1e47bf(_0x90325a)&&_0x401a15['add'](_0x90325a);_0x401a15['listenTo'](_0x4c1b0e,_0x55fc('0x10'),(_0x5ae7e7,_0x206470)=>{_0x1e47bf(_0x206470)&&_0x401a15[_0x55fc('0x10')](_0x206470);}),_0x401a15[_0x55fc('0x8')](_0x4c1b0e,_0x55fc('0x13'),(_0x515930,_0x45b330)=>{_0x1e47bf(_0x45b330)&&_0x401a15[_0x55fc('0x13')](_0x45b330);});}function w(_0x3ab697,_0x133974){const _0x49da06=_0x3ab697[_0x55fc('0x18')]-_0x133974['top'];return 0x0==_0x49da06?_0x3ab697[_0x55fc('0x1d')]-_0x133974[_0x55fc('0x1d')]:_0x49da06;}
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;}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40f5=['set','getByInnerView','_activateAnnotation','Annotations','add','delete','remove','deactivateAll','_removeActiveAnnotation','destroy','fire','activeAnnotations','collection'];(function(_0x381b52,_0x40f507){const _0x148339=function(_0x4c5371){while(--_0x4c5371){_0x381b52['push'](_0x381b52['shift']());}};_0x148339(++_0x40f507);}(_0x40f5,0x14f));const _0x1483=function(_0x381b52,_0x40f507){_0x381b52=_0x381b52-0x0;let _0x148339=_0x40f5[_0x381b52];return _0x148339;};import{ContextPlugin as _0x396db5}from'ckeditor5/src/core';import _0x22cc18 from'./annotationcollection';export default class v extends _0x396db5{static get['pluginName'](){return _0x1483('0x6');}constructor(_0x4b9402){super(_0x4b9402),this[_0x1483('0x2')]=new _0x22cc18(),this[_0x1483('0x3')]('activeAnnotations',new Set());}['add'](_0x5c279c){this[_0x1483('0x2')][_0x1483('0x7')](_0x5c279c);}[_0x1483('0x9')](_0x1c5935){this[_0x1483('0x2')][_0x1483('0x9')](_0x1c5935),_0x1c5935['destroy']();}[_0x1483('0x4')](_0x3df8ae){return this[_0x1483('0x2')]['getByInnerView'](_0x3df8ae);}[_0x1483('0xa')](){this[_0x1483('0x0')]('_deactivateAllAnnotations');}['destroy'](){for(const _0x5bc6f8 of this[_0x1483('0x2')])_0x5bc6f8['destroy']();super[_0x1483('0xc')]();}['activate'](_0x3c1f81){this[_0x1483('0x0')](_0x1483('0x5'),_0x3c1f81);}['_addActiveAnnotation'](_0x206829){const _0x154520=new Set(this['activeAnnotations']);_0x154520[_0x1483('0x7')](_0x206829),this[_0x1483('0x1')]=_0x154520;}[_0x1483('0xb')](_0x5c5d73){const _0x51a807=new Set(this[_0x1483('0x1')]);_0x51a807[_0x1483('0x8')](_0x5c5d73),this['activeAnnotations']=_0x51a807;}}
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);});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ac2=['add','hasActive','_deactivateAllAnnotations','push','annotationsuis-annotation-mismatch','delete','pluginName','deactivateAll','find','_assertAnnotationDoesNotBelongToMultipleUIs','listenTo','set','from','_uisData','length','destroy','setActiveAnnotation','activeUIs','init','get','_activateAnnotation','filter','size','context','change:activeAnnotation','activate','refilterAnnotations','annotationsuis-activate-missing-ui','collection','isActive','deactivate','has','_addActiveAnnotation','function','activeAnnotations','register','_removeActiveAnnotation','requires','annotationsuis-register-already-registered','_uis','attach','remove','detach','stopListening','plugins'];(function(_0x465279,_0x2ac2c4){const _0x2a597a=function(_0x6f9c0b){while(--_0x6f9c0b){_0x465279['push'](_0x465279['shift']());}};_0x2a597a(++_0x2ac2c4);}(_0x2ac2,0x18b));const _0x2a59=function(_0x465279,_0x2ac2c4){_0x465279=_0x465279-0x0;let _0x2a597a=_0x2ac2[_0x465279];return _0x2a597a;};import{ContextPlugin as _0x3488f1}from'ckeditor5/src/core';import{CKEditorError as _0x39dfbc}from'ckeditor5/src/utils';import _0x1e8aec,{bindAnnotationCollections as _0x151421}from'./annotationcollection';import _0x1e0a20 from'./annotations';export default class M extends _0x3488f1{static get[_0x2a59('0x2')](){return[_0x1e0a20];}static get[_0x2a59('0x10')](){return'AnnotationsUIs';}constructor(_0x2690c8){super(_0x2690c8),this[_0x2a59('0x1b')]=new Set(),this[_0x2a59('0x4')]=new Map(),this['_uisData']=new Map();}[_0x2a59('0x1c')](){const _0x2c5e47=this[_0x2a59('0x21')][_0x2a59('0x9')][_0x2a59('0x1d')](_0x1e0a20);this['listenTo'](_0x2c5e47,_0x2a59('0x1e'),(_0x1a69e3,_0x358b54)=>{for(const _0x27a466 of this[_0x2a59('0x1b')]){const _0x599c9e=this['_uis']['get'](_0x27a466);(0x0,this[_0x2a59('0x17')][_0x2a59('0x1d')](_0x27a466)[_0x2a59('0x1f')])(_0x358b54)&&_0x599c9e[_0x2a59('0x1a')](_0x358b54);}}),this['listenTo'](_0x2c5e47,_0x2a59('0xc'),()=>{for(const _0x35b463 of this[_0x2a59('0x1b')]){this[_0x2a59('0x4')][_0x2a59('0x1d')](_0x35b463)[_0x2a59('0x1a')](null);}}),this[_0x2a59('0x14')](_0x2c5e47[_0x2a59('0x26')],_0x2a59('0xa'),(_0x21758e,_0x161ea6)=>{this[_0x2a59('0x13')](_0x161ea6);});}[_0x2a59('0xb')](){return this[_0x2a59('0x1b')][_0x2a59('0x20')]>0x0;}[_0x2a59('0x27')](_0xd4a812){return this[_0x2a59('0x1b')][_0x2a59('0x29')](_0xd4a812);}['activate'](_0x18dd93,_0x23062c=()=>!0x0){const _0x43b54c=this['context'][_0x2a59('0x9')]['get'](_0x1e0a20);if(!this['_uis'][_0x2a59('0x29')](_0x18dd93))throw new _0x39dfbc(_0x2a59('0x25'),this,{'uiName':_0x18dd93});this[_0x2a59('0x27')](_0x18dd93)&&this[_0x2a59('0x28')](_0x18dd93),this[_0x2a59('0x1b')][_0x2a59('0xa')](_0x18dd93);const _0x3294bd=new _0x1e8aec(),_0x1807e9=_0x43b54c['collection'];_0x151421({'source':_0x1807e9,'target':_0x3294bd,'filter':_0x23062c}),this[_0x2a59('0x17')][_0x2a59('0x15')](_0x18dd93,{'collection':_0x3294bd,'filter':_0x23062c});const _0x2fced1=this[_0x2a59('0x4')][_0x2a59('0x1d')](_0x18dd93);_0x2fced1[_0x2a59('0x5')](_0x3294bd),this[_0x2a59('0x14')](_0x2fced1,_0x2a59('0x22'),(_0xde775a,_0x1a3497,_0x495332,_0x524a9c)=>{_0x524a9c&&_0x43b54c[_0x2a59('0x1')](_0x524a9c),_0x495332&&_0x43b54c[_0x2a59('0x2a')](_0x495332);});}[_0x2a59('0x28')](_0x29fe27){this[_0x2a59('0x1b')][_0x2a59('0xf')](_0x29fe27);const _0x180ec2=this['_uis']['get'](_0x29fe27);_0x180ec2['detach'](),this[_0x2a59('0x8')](_0x180ec2),this[_0x2a59('0x17')][_0x2a59('0x1d')](_0x29fe27)[_0x2a59('0x26')][_0x2a59('0x19')](),this[_0x2a59('0x17')][_0x2a59('0xf')](_0x29fe27);}['switchTo'](_0x2c9b50){const _0x39c121=this['context']['plugins']['get'](_0x1e0a20),_0x577734=Array['from'](_0x39c121[_0x2a59('0x2c')])[0x0]||null;this[_0x2a59('0x11')](),this[_0x2a59('0x23')](_0x2c9b50);const _0x61502d=this[_0x2a59('0x4')][_0x2a59('0x1d')](_0x2c9b50);_0x61502d['setActiveAnnotation'](_0x577734),_0x61502d['_setSelectedAnnotations']&&_0x577734&&_0x61502d['_setSelectedAnnotations']([_0x577734]);}[_0x2a59('0x11')](){for(const _0x258dbb of this[_0x2a59('0x1b')])this['deactivate'](_0x258dbb);}[_0x2a59('0x0')](_0x583793,_0x245d02){if(this['_uis'][_0x2a59('0x29')](_0x583793))throw new _0x39dfbc(_0x2a59('0x3'));if(_0x2a59('0x2b')!=typeof _0x245d02[_0x2a59('0x5')]||_0x2a59('0x2b')!=typeof _0x245d02[_0x2a59('0x7')]||_0x2a59('0x2b')!=typeof _0x245d02[_0x2a59('0x1a')])throw new _0x39dfbc('annotationsuis-register-invalid-interface',null);this['_uis'][_0x2a59('0x15')](_0x583793,_0x245d02);}[_0x2a59('0x24')](){const _0x207f87=this[_0x2a59('0x21')]['plugins'][_0x2a59('0x1d')](_0x1e0a20)[_0x2a59('0x26')],_0xb5406e=new Map(),_0x58e38c=Array[_0x2a59('0x16')](this[_0x2a59('0x1b')]);for(const _0x2731a8 of this[_0x2a59('0x1b')]){const _0x16aa59=this[_0x2a59('0x17')]['get'](_0x2731a8)[_0x2a59('0x26')];for(const _0x3de889 of _0x16aa59)_0xb5406e[_0x2a59('0x15')](_0x3de889,_0x2731a8);}for(const _0x33b809 of _0x207f87){const _0x5ed88d=_0xb5406e[_0x2a59('0x1d')](_0x33b809);this[_0x2a59('0x13')](_0x33b809);const _0xf627f6=_0x58e38c[_0x2a59('0x12')](_0xcf0d6=>this['_uisData']['get'](_0xcf0d6)[_0x2a59('0x1f')](_0x33b809));_0x5ed88d!==_0xf627f6&&(_0x5ed88d&&this[_0x2a59('0x17')][_0x2a59('0x1d')](_0x5ed88d)[_0x2a59('0x26')][_0x2a59('0x6')](_0x33b809),_0xf627f6&&this[_0x2a59('0x17')][_0x2a59('0x1d')](_0xf627f6)[_0x2a59('0x26')][_0x2a59('0xa')](_0x33b809));}}[_0x2a59('0x19')](){this[_0x2a59('0x11')](),super[_0x2a59('0x19')]();}[_0x2a59('0x13')](_0xacfce0){const _0x198f2e=[];for(const _0x1592b9 of this[_0x2a59('0x1b')]){(0x0,this[_0x2a59('0x17')][_0x2a59('0x1d')](_0x1592b9)[_0x2a59('0x1f')])(_0xacfce0)&&_0x198f2e[_0x2a59('0xd')](_0x1592b9);}if(_0x198f2e[_0x2a59('0x18')]>0x1)throw new _0x39dfbc(_0x2a59('0xe'),null,{'matchedUIs':_0x198f2e,'annotationType':_0xacfce0['type']});}}
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')]});}}