@ckeditor/ckeditor5-comments 29.1.0 → 31.1.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 (46) hide show
  1. package/lang/translations/da.po +79 -0
  2. package/lang/translations/id.po +78 -0
  3. package/package.json +8 -8
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.js +1 -1
  6. package/src/annotations/annotations.js +1 -1
  7. package/src/annotations/annotationsuis.js +1 -1
  8. package/src/annotations/editorannotations.js +1 -1
  9. package/src/annotations/inlineannotations.js +1 -1
  10. package/src/annotations/narrowsidebar.js +1 -1
  11. package/src/annotations/sidebar.js +1 -1
  12. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  13. package/src/annotations/view/annotationview.js +1 -1
  14. package/src/annotations/view/sidebaritemview.js +1 -1
  15. package/src/annotations/view/sidebarview.js +1 -1
  16. package/src/annotations/widesidebar.js +1 -1
  17. package/src/comments/addcommentthreadcommand.js +1 -1
  18. package/src/comments/commentsediting.js +1 -1
  19. package/src/comments/commentsrepository.js +1 -1
  20. package/src/comments/commentsui.js +1 -1
  21. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  22. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  23. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  25. package/src/comments/ui/commentthreadcontroller.js +1 -1
  26. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  27. package/src/comments/ui/view/basecommentview.js +1 -1
  28. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  29. package/src/comments/ui/view/commentcontentview.js +1 -1
  30. package/src/comments/ui/view/commentinputview.js +1 -1
  31. package/src/comments/ui/view/commentslistview.js +1 -1
  32. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  33. package/src/comments/ui/view/commentthreadview.js +1 -1
  34. package/src/comments/ui/view/commentview.js +1 -1
  35. package/src/comments/ui/view/confirmmixin.js +1 -1
  36. package/src/comments/ui/view/confirmview.js +1 -1
  37. package/src/comments.js +1 -1
  38. package/src/commentsonly.js +1 -1
  39. package/src/utils/common-translations.js +1 -1
  40. package/src/utils/createmutationobserver.js +1 -1
  41. package/src/utils/getdatetimeformatter.js +1 -1
  42. package/src/utils/getmarkerdomelement.js +1 -1
  43. package/src/utils/trim-html.js +1 -1
  44. package/theme/icons/add-comment.svg +1 -1
  45. package/theme/sidebar-narrow.css +2 -2
  46. package/theme/icons/add-comment-inverted.svg +0 -11
@@ -0,0 +1,79 @@
1
+ # Copyright (c) 2003-2021, CKSource - Frederico Knabben. 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: Danish (https://www.transifex.com/ckeditor/teams/11143/da/)\n"
16
+ "Language: da\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 "Kommentarer"
22
+
23
+ msgctxt "The label for the number of comments."
24
+ msgid "NUMBER_OF_COMMENTS"
25
+ msgid_plural "%0 Comments"
26
+ msgstr[0] "%0 kommentar."
27
+ msgstr[1] "%0 kommentarer."
28
+
29
+ msgctxt "The alert displayed for a comment that is too long."
30
+ msgid "TOO_LONG_COMMENT_ALERT"
31
+ msgstr "Kommentar er for lang. Din kommentar indeholder %0 tegn, men grænsen er %1 tegn."
32
+
33
+ msgctxt "The placeholder for the reply field."
34
+ msgid "Reply..."
35
+ msgstr "Besvar..."
36
+
37
+ msgctxt "The placeholder for the new commend field."
38
+ msgid "Write a comment..."
39
+ msgstr "Skriv en kommentar..."
40
+
41
+ msgctxt "The label for the button that enables editing a comment."
42
+ msgid "Edit"
43
+ msgstr "Rediger"
44
+
45
+ msgctxt "The label for the button that deletes a comment."
46
+ msgid "Remove"
47
+ msgstr "Slet"
48
+
49
+ msgctxt "The label for for the button that submits a comment."
50
+ msgid "Submit"
51
+ msgstr "Send"
52
+
53
+ msgctxt "The confirmation message shown after pressing the delete comment button."
54
+ msgid "Delete comment?"
55
+ msgstr "Slet kommentar?"
56
+
57
+ msgctxt "The confirmation message shown after pressing the delete comment thread button."
58
+ msgid "Delete comment thread?"
59
+ msgstr "Slet kommentartråd?"
60
+
61
+ msgctxt "The label for confirming an action."
62
+ msgid "Yes"
63
+ msgstr "Ja"
64
+
65
+ msgctxt "The label for rejecting an action."
66
+ msgid "No"
67
+ msgstr "Nej"
68
+
69
+ msgctxt "The label for confirming a dangerous action."
70
+ msgid "Are you sure?"
71
+ msgstr "Er du sikker?"
72
+
73
+ msgctxt "The tooltip for the comment toolbar button."
74
+ msgid "Comment"
75
+ msgstr "Kommentar"
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 "Ikke gemte ændringer i kommentartråd."
@@ -0,0 +1,78 @@
1
+ # Copyright (c) 2003-2021, CKSource - Frederico Knabben. 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: Indonesian (https://www.transifex.com/ckeditor/teams/11143/id/)\n"
16
+ "Language: id\n"
17
+ "Plural-Forms: nplurals=1; plural=0;\n"
18
+
19
+ msgctxt "The label for the comment editor."
20
+ msgid "Comment editor"
21
+ msgstr "Editor komentar"
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
+
28
+ msgctxt "The alert displayed for a comment that is too long."
29
+ msgid "TOO_LONG_COMMENT_ALERT"
30
+ msgstr "Komentar terlalu panjang. Komentar Anda berisi %0 karakter tapi batas maksimalnya adalah %1 karakter."
31
+
32
+ msgctxt "The placeholder for the reply field."
33
+ msgid "Reply..."
34
+ msgstr "Balas..."
35
+
36
+ msgctxt "The placeholder for the new commend field."
37
+ msgid "Write a comment..."
38
+ msgstr "Tulis sebuah komentar..."
39
+
40
+ msgctxt "The label for the button that enables editing a comment."
41
+ msgid "Edit"
42
+ msgstr "Ubah"
43
+
44
+ msgctxt "The label for the button that deletes a comment."
45
+ msgid "Remove"
46
+ msgstr "Hapus"
47
+
48
+ msgctxt "The label for for the button that submits a comment."
49
+ msgid "Submit"
50
+ msgstr "Kirim"
51
+
52
+ msgctxt "The confirmation message shown after pressing the delete comment button."
53
+ msgid "Delete comment?"
54
+ msgstr "Hapus komentar?"
55
+
56
+ msgctxt "The confirmation message shown after pressing the delete comment thread button."
57
+ msgid "Delete comment thread?"
58
+ msgstr "Hapus utas komentar?"
59
+
60
+ msgctxt "The label for confirming an action."
61
+ msgid "Yes"
62
+ msgstr "Ya"
63
+
64
+ msgctxt "The label for rejecting an action."
65
+ msgid "No"
66
+ msgstr "Tidak"
67
+
68
+ msgctxt "The label for confirming a dangerous action."
69
+ msgid "Are you sure?"
70
+ msgstr "Apakah Anda yakin?"
71
+
72
+ msgctxt "The tooltip for the comment toolbar button."
73
+ msgid "Comment"
74
+ msgstr "Komentar"
75
+
76
+ msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
77
+ msgid "PENDING_ACTION_COMMENT_THREAD"
78
+ msgstr "Perubahan tidak tersimpar di utas komentar"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "29.1.0",
3
+ "version": "31.1.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": "^29.1.0",
34
- "@ckeditor/ckeditor5-basic-styles": "^29.1.0",
35
- "@ckeditor/ckeditor5-collaboration-core": "^29.1.0",
36
- "@ckeditor/ckeditor5-essentials": "^29.1.0",
37
- "@ckeditor/ckeditor5-list": "^29.1.0",
38
- "@ckeditor/ckeditor5-utils": "^29.1.0",
39
- "ckeditor5": "^29.1.0",
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",
40
40
  "date-fns": "^2.17.0",
41
41
  "lodash-es": "^4.17.11"
42
42
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x150f=['target','stopListening','remove','element','_id','innerView','type','render','view','add','mainView','updateTargetRect','isActive','destroy','focusableElements','targetRect','clear','_assertCorrectTarget','_target','_type','function','focusTracker'];(function(_0x475ff8,_0x150f7e){const _0x1396ea=function(_0x5758ba){while(--_0x5758ba){_0x475ff8['push'](_0x475ff8['shift']());}};_0x1396ea(++_0x150f7e);}(_0x150f,0x190));const _0x1396=function(_0x475ff8,_0x150f7e){_0x475ff8=_0x475ff8-0x0;let _0x1396ea=_0x150f[_0x475ff8];return _0x1396ea;};import{CKEditorError as _0xb8ec3e,Rect as _0x32e385,Collection as _0xd9b282}from'ckeditor5/src/utils';import{isElement as _0x4feb25}from'lodash-es';export default class d{constructor({view:_0x3018d6,target:_0x46cb02,type:_0x18b1ea}){this[_0x1396('0x4')]=_0x3018d6,this[_0x1396('0x4')]['element']||this[_0x1396('0x4')][_0x1396('0x3')](),this[_0x1396('0xf')]=_0x18b1ea,this[_0x1396('0xe')]=_0x46cb02,this[_0x1396('0xd')](),this[_0x1396('0xa')]=new _0xd9b282([this['view'][_0x1396('0x15')]],{'idProperty':_0x1396('0x0')}),this['focusableElements']['on'](_0x1396('0x5'),(_0x5d2464,_0xea6a60)=>{this[_0x1396('0x4')][_0x1396('0x11')][_0x1396('0x5')](_0xea6a60);}),this['focusableElements']['on'](_0x1396('0x14'),(_0x5a628e,_0x2e010a)=>{this[_0x1396('0x4')]['focusTracker']['remove'](_0x2e010a);});}get[_0x1396('0x2')](){return _0x1396('0x10')==typeof this[_0x1396('0xf')]?this['_type']():this[_0x1396('0xf')];}get[_0x1396('0x1')](){return this[_0x1396('0x4')]['mainView'];}get[_0x1396('0x12')](){return _0x1396('0x10')==typeof this['_target']?this[_0x1396('0xe')]():this[_0x1396('0xe')];}get[_0x1396('0xb')](){const _0x4ec34a=this[_0x1396('0x12')];return this['_assertCorrectTarget'](),null===_0x4ec34a?null:new _0x32e385(_0x4ec34a);}get['isActive'](){return this['view']['isActive'];}set[_0x1396('0x8')](_0x20abd2){this[_0x1396('0x4')][_0x1396('0x8')]=_0x20abd2,this[_0x1396('0x4')][_0x1396('0x6')][_0x1396('0x8')]=_0x20abd2;}[_0x1396('0x7')](){this['view'][_0x1396('0xb')]=this['targetRect'];}[_0x1396('0x9')](){this[_0x1396('0xa')][_0x1396('0x13')](),this[_0x1396('0xa')][_0x1396('0xc')]();}[_0x1396('0xd')](){const _0x19c712=this[_0x1396('0x12')];if(!(null===_0x19c712||_0x19c712 instanceof _0x32e385||_0x4feb25(_0x19c712)))throw new _0xb8ec3e('annotation-invalid-target',null,{'target':_0x19c712});}}
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});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3404=['targetRect','listenTo','get','destroy','stopListening','innerView','clear','top','focusableElements','has','set','_viewToAnnotation','from','updateTargetRect','left','sort','getIndex','_sort','fire','_getOrderInContent','view','getByView','change:isFocused','getByInnerView','max','annotationcollection-duplicated-item','_focusTracker','_innerViewToAnnotation','refreshPositioning','blur','isFocused','length','focusTracker','add','remove','delete'];(function(_0x25232a,_0x3404b0){const _0x17f3b5=function(_0x2a739d){while(--_0x2a739d){_0x25232a['push'](_0x25232a['shift']());}};_0x17f3b5(++_0x3404b0);}(_0x3404,0x100));const _0x17f3=function(_0x25232a,_0x3404b0){_0x25232a=_0x25232a-0x0;let _0x17f3b5=_0x3404[_0x25232a];return _0x17f3b5;};import{CKEditorError as _0x1329c7,Collection as _0x12eb05,Rect as _0x8b1f7,FocusTracker as _0x2147bd}from'ckeditor5/src/utils';export default class p extends _0x12eb05{constructor(_0x30305f=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x17f3('0x7')]=new Map(),this[_0x17f3('0x16')]=new _0x2147bd(),this[_0x17f3('0x16')]['on']('change:isFocused',(_0x3e8ac6,_0x444cf0,_0x4c43c2)=>{_0x4c43c2||this[_0x17f3('0xe')](_0x17f3('0x19'));});for(const _0x2916ae of _0x30305f)this[_0x17f3('0x1d')](_0x2916ae);}get[_0x17f3('0x1a')](){return this[_0x17f3('0x16')][_0x17f3('0x1a')];}[_0x17f3('0x1d')](_0x485216){if(this[_0x17f3('0x5')](_0x485216))throw new _0x1329c7(_0x17f3('0x15'),null);this[_0x17f3('0x17')][_0x17f3('0x6')](_0x485216[_0x17f3('0x1')],_0x485216),this[_0x17f3('0x7')][_0x17f3('0x6')](_0x485216[_0x17f3('0x10')],_0x485216);for(const _0x690322 of _0x485216[_0x17f3('0x4')])this['_focusTracker'][_0x17f3('0x1d')](_0x690322);this[_0x17f3('0x21')](_0x485216['focusableElements'],_0x17f3('0x1d'),(_0x5a3c8b,_0x4f7adc)=>{this[_0x17f3('0x16')][_0x17f3('0x1d')](_0x4f7adc);}),this[_0x17f3('0x21')](_0x485216[_0x17f3('0x4')],_0x17f3('0x1e'),(_0x360d95,_0x14194d)=>{this['_focusTracker'][_0x17f3('0x1e')](_0x14194d);}),this[_0x17f3('0x21')](_0x485216[_0x17f3('0x10')]['focusTracker'],_0x17f3('0x12'),(_0x174d44,_0x141406,_0x335f3c)=>{_0x335f3c&&this[_0x17f3('0xe')]('focus',_0x485216);});const _0xe3f819=this[_0x17f3('0xf')](_0x485216);super[_0x17f3('0x1d')](_0x485216,_0xe3f819),_0x485216[_0x17f3('0x9')]();}[_0x17f3('0x1e')](_0x485156){if(!this[_0x17f3('0x5')](_0x485156))throw new _0x1329c7('annotationcollection-not-existing-item',null);this[_0x17f3('0x0')](_0x485156[_0x17f3('0x10')][_0x17f3('0x1c')]),this[_0x17f3('0x0')](_0x485156[_0x17f3('0x4')]);for(const _0x4c62e8 of _0x485156[_0x17f3('0x4')])this[_0x17f3('0x16')][_0x17f3('0x1e')](_0x4c62e8);this['_viewToAnnotation'][_0x17f3('0x1f')](_0x485156[_0x17f3('0x10')]),this[_0x17f3('0x17')][_0x17f3('0x1f')](_0x485156[_0x17f3('0x1')]),super[_0x17f3('0x1e')](_0x485156);}[_0x17f3('0x13')](_0x64ed7){return this[_0x17f3('0x17')][_0x17f3('0x22')](_0x64ed7);}[_0x17f3('0x11')](_0x9c6eb6){return this[_0x17f3('0x7')]['get'](_0x9c6eb6);}[_0x17f3('0x23')](){super[_0x17f3('0x2')](),this['stopListening'](),this[_0x17f3('0x17')]=null,this['_viewToAnnotation']=null,this[_0x17f3('0x16')][_0x17f3('0x23')]();}[_0x17f3('0x18')](){for(const _0x128540 of this)_0x128540[_0x17f3('0x9')]();this[_0x17f3('0xd')]();}[_0x17f3('0xd')](){const _0x5cb68b=Array[_0x17f3('0x8')](this)[_0x17f3('0xb')]((_0x10d127,_0x4ec992)=>w(_0x10d127[_0x17f3('0x20')],_0x4ec992[_0x17f3('0x20')]));for(let _0x5c80bb=_0x5cb68b[_0x17f3('0x1b')]-0x1;_0x5c80bb>0x0;_0x5c80bb--){const _0x5d9cbb=_0x5cb68b[_0x5c80bb];_0x5c80bb!==this[_0x17f3('0xc')](_0x5d9cbb)&&(this[_0x17f3('0x1e')](_0x5d9cbb),this[_0x17f3('0x1d')](_0x5d9cbb,_0x5c80bb));}}['_getOrderInContent'](_0x27e0b6){let _0x37fa0f=0x0;const _0x114785=_0x27e0b6['targetRect'];for(const _0x5ccdd2 of this){const _0x46bb80=_0x5ccdd2['target'];if(_0x46bb80){if(w(_0x114785,new _0x8b1f7(_0x46bb80))<0x0)return _0x37fa0f;_0x37fa0f++;}}return Math[_0x17f3('0x14')](0x0,_0x37fa0f);}}export function bindAnnotationCollections({source:_0xa8b606,target:_0x1e7e02,filter:_0x36598c}){for(const _0x5ef909 of _0xa8b606)_0x36598c(_0x5ef909)&&_0x1e7e02['add'](_0x5ef909);_0x1e7e02[_0x17f3('0x21')](_0xa8b606,_0x17f3('0x1d'),(_0x7e92b0,_0x2c93ce)=>{_0x36598c(_0x2c93ce)&&_0x1e7e02[_0x17f3('0x1d')](_0x2c93ce);}),_0x1e7e02[_0x17f3('0x21')](_0xa8b606,_0x17f3('0x1e'),(_0x39102e,_0x2fb3e0)=>{_0x36598c(_0x2fb3e0)&&_0x1e7e02['remove'](_0x2fb3e0);});}function w(_0x50f0d9,_0x4bb45e){const _0x4b5343=_0x50f0d9['top']-_0x4bb45e[_0x17f3('0x3')];return 0x0==_0x4b5343?_0x50f0d9[_0x17f3('0xa')]-_0x4bb45e[_0x17f3('0xa')]:_0x4b5343;}
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;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ed4=['collection','Annotations','getByInnerView','pluginName','deactivateAll','activate','fire','activeAnnotations','delete','add','set','_addActiveAnnotation','destroy','_activateAnnotation','remove'];(function(_0x30837f,_0x3ed4ae){const _0x56aefa=function(_0x308ab8){while(--_0x308ab8){_0x30837f['push'](_0x30837f['shift']());}};_0x56aefa(++_0x3ed4ae);}(_0x3ed4,0x12f));const _0x56ae=function(_0x30837f,_0x3ed4ae){_0x30837f=_0x30837f-0x0;let _0x56aefa=_0x3ed4[_0x30837f];return _0x56aefa;};import{ContextPlugin as _0x4b1797}from'ckeditor5/src/core';import _0x2cc866 from'./annotationcollection';export default class v extends _0x4b1797{static get[_0x56ae('0x0')](){return _0x56ae('0xd');}constructor(_0x34bffd){super(_0x34bffd),this[_0x56ae('0xc')]=new _0x2cc866(),this[_0x56ae('0x7')](_0x56ae('0x4'),new Set());}[_0x56ae('0x6')](_0x5ede0d){this[_0x56ae('0xc')]['add'](_0x5ede0d);}[_0x56ae('0xb')](_0x1a41ef){this['collection'][_0x56ae('0xb')](_0x1a41ef),_0x1a41ef[_0x56ae('0x9')]();}[_0x56ae('0xe')](_0x2ce72e){return this['collection'][_0x56ae('0xe')](_0x2ce72e);}[_0x56ae('0x1')](){this[_0x56ae('0x3')]('_deactivateAllAnnotations');}[_0x56ae('0x9')](){for(const _0x42aed0 of this[_0x56ae('0xc')])_0x42aed0['destroy']();super[_0x56ae('0x9')]();}[_0x56ae('0x2')](_0x2bad85){this[_0x56ae('0x3')](_0x56ae('0xa'),_0x2bad85);}[_0x56ae('0x8')](_0x5d257a){const _0x1277d6=new Set(this['activeAnnotations']);_0x1277d6['add'](_0x5d257a),this[_0x56ae('0x4')]=_0x1277d6;}['_removeActiveAnnotation'](_0x3d98cf){const _0x462159=new Set(this[_0x56ae('0x4')]);_0x462159[_0x56ae('0x5')](_0x3d98cf),this[_0x56ae('0x4')]=_0x462159;}}
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;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25f5=['push','get','listenTo','AnnotationsUIs','_uisData','add','register','isActive','annotationsuis-activate-missing-ui','function','length','_uis','destroy','deactivate','detach','stopListening','setActiveAnnotation','_setSelectedAnnotations','collection','annotationsuis-register-invalid-interface','hasActive','from','deactivateAll','has','activate','attach','filter','requires','_assertAnnotationBelongsToSingleUI','set','plugins','delete','context','size','activeUIs','annotationsuis-register-already-registered'];(function(_0x5539c0,_0x25f559){const _0x58e187=function(_0x42d54f){while(--_0x42d54f){_0x5539c0['push'](_0x5539c0['shift']());}};_0x58e187(++_0x25f559);}(_0x25f5,0x1ca));const _0x58e1=function(_0x5539c0,_0x25f559){_0x5539c0=_0x5539c0-0x0;let _0x58e187=_0x25f5[_0x5539c0];return _0x58e187;};import{ContextPlugin as _0x47c308}from'ckeditor5/src/core';import{CKEditorError as _0xe0a11a}from'ckeditor5/src/utils';import _0x200a87,{bindAnnotationCollections as _0x38b08f}from'./annotationcollection';import _0x21de09 from'./annotations';export default class I extends _0x47c308{static get[_0x58e1('0x1')](){return[_0x21de09];}static get['pluginName'](){return _0x58e1('0xd');}constructor(_0x4b58cd){super(_0x4b58cd),this[_0x58e1('0x8')]=new Set(),this[_0x58e1('0x15')]=new Map(),this[_0x58e1('0xe')]=new Map();}['init'](){const _0x2344ec=this[_0x58e1('0x6')]['plugins'][_0x58e1('0xb')](_0x21de09);this[_0x58e1('0xc')](_0x2344ec,'_activateAnnotation',(_0x156fdd,_0x489a76)=>{for(const _0x4e0597 of this[_0x58e1('0x8')]){const _0x57732f=this[_0x58e1('0x15')][_0x58e1('0xb')](_0x4e0597);(0x0,this[_0x58e1('0xe')][_0x58e1('0xb')](_0x4e0597)[_0x58e1('0x0')])(_0x489a76)&&_0x57732f[_0x58e1('0x1a')](_0x489a76);}}),this['listenTo'](_0x2344ec,'_deactivateAllAnnotations',()=>{for(const _0x3c8ec6 of this['activeUIs']){this[_0x58e1('0x15')][_0x58e1('0xb')](_0x3c8ec6)[_0x58e1('0x1a')](null);}}),this['listenTo'](_0x2344ec[_0x58e1('0x1c')],_0x58e1('0xf'),(_0x40f973,_0x47b8bc)=>{this[_0x58e1('0x2')](_0x47b8bc);});}[_0x58e1('0x1e')](){return this['activeUIs'][_0x58e1('0x7')]>0x0;}['isActive'](_0x4fb3c0){return this[_0x58e1('0x8')]['has'](_0x4fb3c0);}['activate'](_0x1b77bd,_0x58b14a=()=>!0x0){const _0x5a2e58=this[_0x58e1('0x6')][_0x58e1('0x4')][_0x58e1('0xb')](_0x21de09);if(!this[_0x58e1('0x15')][_0x58e1('0x21')](_0x1b77bd))throw new _0xe0a11a(_0x58e1('0x12'),this,{'uiName':_0x1b77bd});this[_0x58e1('0x11')](_0x1b77bd)&&this[_0x58e1('0x17')](_0x1b77bd),this['activeUIs']['add'](_0x1b77bd);const _0x5dc970=new _0x200a87(),_0x335377=_0x5a2e58[_0x58e1('0x1c')];_0x38b08f({'source':_0x335377,'target':_0x5dc970,'filter':_0x58b14a}),this[_0x58e1('0xe')]['set'](_0x1b77bd,{'collection':_0x5dc970,'filter':_0x58b14a});const _0x951666=this[_0x58e1('0x15')]['get'](_0x1b77bd);_0x951666[_0x58e1('0x23')](_0x5dc970),this[_0x58e1('0xc')](_0x951666,'change:activeAnnotation',(_0x3a17b4,_0x578791,_0x1e865c,_0x21a665)=>{_0x21a665&&_0x5a2e58['_removeActiveAnnotation'](_0x21a665),_0x1e865c&&_0x5a2e58['_addActiveAnnotation'](_0x1e865c);});}[_0x58e1('0x17')](_0x306763){this[_0x58e1('0x8')][_0x58e1('0x5')](_0x306763);const _0x10253d=this['_uis'][_0x58e1('0xb')](_0x306763);_0x10253d[_0x58e1('0x18')](),this[_0x58e1('0x19')](_0x10253d),this[_0x58e1('0xe')]['get'](_0x306763)[_0x58e1('0x1c')][_0x58e1('0x16')](),this[_0x58e1('0xe')][_0x58e1('0x5')](_0x306763);}['switchTo'](_0x21416f){const _0x327626=this[_0x58e1('0x6')][_0x58e1('0x4')][_0x58e1('0xb')](_0x21de09),_0x4e6ad6=Array[_0x58e1('0x1f')](_0x327626['activeAnnotations'])[0x0]||null;this[_0x58e1('0x20')](),this[_0x58e1('0x22')](_0x21416f);const _0x584450=this[_0x58e1('0x15')][_0x58e1('0xb')](_0x21416f);_0x584450[_0x58e1('0x1a')](_0x4e6ad6),_0x584450[_0x58e1('0x1b')]&&_0x4e6ad6&&_0x584450[_0x58e1('0x1b')]([_0x4e6ad6]);}['deactivateAll'](){for(const _0x3397b5 of this[_0x58e1('0x8')])this[_0x58e1('0x17')](_0x3397b5);}[_0x58e1('0x10')](_0x27e49f,_0x35c0d0){if(this[_0x58e1('0x15')][_0x58e1('0x21')](_0x27e49f))throw new _0xe0a11a(_0x58e1('0x9'));if(_0x58e1('0x13')!=typeof _0x35c0d0['attach']||_0x58e1('0x13')!=typeof _0x35c0d0[_0x58e1('0x18')]||_0x58e1('0x13')!=typeof _0x35c0d0['setActiveAnnotation'])throw new _0xe0a11a(_0x58e1('0x1d'),null);this[_0x58e1('0x15')][_0x58e1('0x3')](_0x27e49f,_0x35c0d0);}['destroy'](){this[_0x58e1('0x20')](),super['destroy']();}[_0x58e1('0x2')](_0x31e0ca){const _0x3501d9=[];for(const _0x321785 of this['activeUIs']){(0x0,this[_0x58e1('0xe')][_0x58e1('0xb')](_0x321785)[_0x58e1('0x0')])(_0x31e0ca)&&_0x3501d9[_0x58e1('0xa')](_0x321785);}if(0x1!==_0x3501d9[_0x58e1('0x14')])throw new _0xe0a11a('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3501d9});}}
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']});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e21=['isReadOnly','_editorAnnotationsData','listenTo','sort','function','getByInnerView','blur','directChange','isEqual','isCollapsed','get','editing','range','innerView','getRanges','keys','from','document','init','selection','cancel','EditorAnnotations','add','fire','pluginName','containsRange','element','hasDomSelection','editorannotations-invalid-source-callback','getOrderedSelectedAnnotations','map','collection','focusTracker','uiUpdate','refresh','push','model','addSourceCollector','_dataCollectors','remove','refreshSelectedViews','annotation','has','editor','requires','view','change:isFocused'];(function(_0x48cfc3,_0x2e2189){const _0x464b78=function(_0x4c0c4a){while(--_0x4c0c4a){_0x48cfc3['push'](_0x48cfc3['shift']());}};_0x464b78(++_0x2e2189);}(_0x2e21,0x77));const _0x464b=function(_0x48cfc3,_0x2e2189){_0x48cfc3=_0x48cfc3-0x0;let _0x464b78=_0x2e21[_0x48cfc3];return _0x464b78;};import{Plugin as _0x9eec4}from'ckeditor5/src/core';import{CKEditorError as _0x5a3aaf}from'ckeditor5/src/utils';import{debounce as _0x38ffad}from'lodash-es';import _0xa0e6e5 from'./annotations';export default class k extends _0x9eec4{static get[_0x464b('0x13')](){return[_0xa0e6e5];}static get[_0x464b('0x2e')](){return _0x464b('0x2b');}constructor(_0x17617a){super(_0x17617a),this[_0x464b('0xd')]=new Set();}[_0x464b('0x28')](){const _0x2abe0b=this['editor'],_0x266ded=_0x2abe0b['plugins'][_0x464b('0x20')](_0xa0e6e5),_0x290ec9=_0x2abe0b[_0x464b('0xb')][_0x464b('0x27')][_0x464b('0x29')],_0x5c2c10=_0x38ffad(()=>this[_0x464b('0xf')](),0xa);_0x290ec9['on']('change:range',(_0x291e06,_0x21b3b5)=>{_0x21b3b5[_0x464b('0x1d')]&&(_0x5c2c10[_0x464b('0x2a')](),this[_0x464b('0xf')]());}),this[_0x464b('0x18')](_0x2abe0b[_0x464b('0x21')][_0x464b('0x14')]['document'],_0x464b('0x15'),(_0x3a2568,_0x353e46,_0x4ee76d)=>{_0x4ee76d&&_0x5c2c10();}),this[_0x464b('0x18')](_0x2abe0b['ui']['focusTracker'],'change:isFocused',(_0x29af08,_0xf730f6,_0x2d317e)=>{_0x2d317e||_0x2abe0b[_0x464b('0x16')]||this[_0x464b('0x2d')](_0x464b('0x1c'),{'isAnnotationTracked':_0x53e0fa=>this[_0x464b('0x17')][_0x464b('0x11')](_0x53e0fa[_0x464b('0x23')])});}),this['listenTo'](this[_0x464b('0x12')]['ui'],'update',()=>this['fire'](_0x464b('0x8')));const _0x448de4=new Set();this[_0x464b('0x18')](_0x266ded[_0x464b('0x6')],_0x464b('0x2c'),(_0x51edfb,_0x4df7e5)=>{for(const _0x14f81e of this[_0x464b('0x17')][_0x464b('0x25')]())if(_0x14f81e===_0x4df7e5[_0x464b('0x23')]){_0x2abe0b['ui'][_0x464b('0x7')][_0x464b('0x2c')](_0x4df7e5[_0x464b('0x14')][_0x464b('0x1')]),_0x448de4[_0x464b('0x2c')](_0x4df7e5[_0x464b('0x14')]);break;}}),this[_0x464b('0x18')](_0x266ded['collection'],_0x464b('0xe'),(_0x5650cd,_0xd6a7)=>{_0x448de4[_0x464b('0x11')](_0xd6a7[_0x464b('0x14')])&&(_0x2abe0b['ui'][_0x464b('0x7')][_0x464b('0xe')](_0xd6a7[_0x464b('0x14')][_0x464b('0x1')]),_0x448de4['delete'](_0xd6a7[_0x464b('0x14')]));});}[_0x464b('0x2')](){return this[_0x464b('0x12')][_0x464b('0x21')][_0x464b('0x14')][_0x464b('0x2')];}[_0x464b('0xc')](_0x44e9b){if(_0x464b('0x1a')!=typeof _0x44e9b)throw new _0x5a3aaf(_0x464b('0x3'));this['_dataCollectors'][_0x464b('0x2c')](_0x44e9b);}['refreshSelectedViews'](){this[_0x464b('0x2d')](_0x464b('0x9'));}[_0x464b('0x4')]({activeAnnotation:_0x3f101d,annotations:_0x1fa4d9}){const _0x389e34=[],_0x4851c0=this[_0x464b('0x12')][_0x464b('0xb')][_0x464b('0x27')]['selection'],_0x49dcc8=Array['from'](_0x4851c0[_0x464b('0x24')]());for(const [_0x11ab27,_0x4bf33d]of this[_0x464b('0x17')]){const _0x42a178=_0x1c461c(_0x4bf33d),_0x513a72=_0x1fa4d9[_0x464b('0x1b')](_0x11ab27);_0x42a178&&_0x513a72&&_0x389e34[_0x464b('0xa')]({'annotation':_0x513a72,'range':_0x42a178});}function _0x1c461c(_0x6c3819){for(const _0x1e7b65 of _0x6c3819)for(const _0x1a53e1 of _0x49dcc8)if(_0x1e7b65['containsRange'](_0x1a53e1,!_0x4851c0[_0x464b('0x1f')]))return _0x1e7b65;return null;}return _0x389e34[_0x464b('0x19')]((_0x2525df,_0x69ca1b)=>{const _0x24a024=_0x2525df[_0x464b('0x22')],_0x5db09b=_0x69ca1b[_0x464b('0x22')];if(!_0x24a024[_0x464b('0x1e')](_0x5db09b)){if(_0x24a024['containsRange'](_0x5db09b,!0x0))return 0x1;if(_0x5db09b[_0x464b('0x0')](_0x24a024,!0x0))return-0x1;}return _0x2525df[_0x464b('0x10')]==_0x3f101d?-0x1:_0x69ca1b[_0x464b('0x10')]==_0x3f101d?0x1:0x0;})[_0x464b('0x5')](_0x2a524d=>_0x2a524d[_0x464b('0x10')]);}get[_0x464b('0x17')](){const _0x1befde=new Map();for(const _0x374fbd of Array[_0x464b('0x26')](this[_0x464b('0xd')]))for(const [_0x596467,_0x3170c7]of _0x374fbd())_0x1befde['set'](_0x596467,_0x3170c7);return _0x1befde;}}
23
+ const _0x4267=['update','refreshSelectedViews','getByInnerView','get','selection','getRanges','document','set','from','model','editorannotations-invalid-source-callback','innerView','pluginName','getOrderedSelectedAnnotations','editor','containsRange','remove','has','requires','fire','uiUpdate','focusTracker','editing','blur','function','isReadOnly','plugins','range','view','annotation','listenTo','_dataCollectors','refresh','_editorAnnotationsData','element','sort','keys','cancel','change:isFocused','EditorAnnotations','collection','map','delete','add'];(function(_0x537b90,_0x426768){const _0x201a66=function(_0x26e1c9){while(--_0x26e1c9){_0x537b90['push'](_0x537b90['shift']());}};_0x201a66(++_0x426768);}(_0x4267,0x1c3));const _0x201a=function(_0x537b90,_0x426768){_0x537b90=_0x537b90-0x0;let _0x201a66=_0x4267[_0x537b90];return _0x201a66;};import{Plugin as _0x29bbb1}from'ckeditor5/src/core';import{CKEditorError as _0x3ec096}from'ckeditor5/src/utils';import{debounce as _0x4716ac}from'lodash-es';import _0x4f0195 from'./annotations';export default class k extends _0x29bbb1{static get[_0x201a('0x7')](){return[_0x4f0195];}static get[_0x201a('0x1')](){return _0x201a('0x1c');}constructor(_0x56c968){super(_0x56c968),this[_0x201a('0x14')]=new Set();}['init'](){const _0x41673a=this[_0x201a('0x3')],_0x1acf86=_0x41673a[_0x201a('0xf')][_0x201a('0x24')](_0x4f0195),_0xb130ae=_0x41673a[_0x201a('0x2a')]['document'][_0x201a('0x25')],_0x111284=_0x4716ac(()=>this[_0x201a('0x22')](),0xa);_0xb130ae['on']('change:range',(_0xbae7c4,_0x108680)=>{_0x108680['directChange']&&(_0x111284[_0x201a('0x1a')](),this[_0x201a('0x22')]());}),this[_0x201a('0x13')](_0x41673a[_0x201a('0xb')][_0x201a('0x11')][_0x201a('0x27')],_0x201a('0x1b'),(_0x42b24e,_0x25f82e,_0x19c5d6)=>{_0x19c5d6&&_0x111284();}),this[_0x201a('0x13')](_0x41673a['ui']['focusTracker'],'change:isFocused',(_0x50b36c,_0x56ade5,_0x39997c)=>{_0x39997c||_0x41673a[_0x201a('0xe')]||this[_0x201a('0x8')](_0x201a('0xc'),{'isAnnotationTracked':_0x3d3dd8=>this[_0x201a('0x16')][_0x201a('0x6')](_0x3d3dd8[_0x201a('0x0')])});}),this[_0x201a('0x13')](this[_0x201a('0x3')]['ui'],_0x201a('0x21'),()=>this[_0x201a('0x8')](_0x201a('0x9')));const _0x512a60=new Set();this['listenTo'](_0x1acf86[_0x201a('0x1d')],_0x201a('0x20'),(_0x4b18f5,_0xd908a3)=>{for(const _0x2a91e9 of this[_0x201a('0x16')][_0x201a('0x19')]())if(_0x2a91e9===_0xd908a3[_0x201a('0x0')]){_0x41673a['ui']['focusTracker'][_0x201a('0x20')](_0xd908a3[_0x201a('0x11')][_0x201a('0x17')]),_0x512a60[_0x201a('0x20')](_0xd908a3[_0x201a('0x11')]);break;}}),this[_0x201a('0x13')](_0x1acf86[_0x201a('0x1d')],_0x201a('0x5'),(_0x547c41,_0x2bbeed)=>{_0x512a60[_0x201a('0x6')](_0x2bbeed[_0x201a('0x11')])&&(_0x41673a['ui'][_0x201a('0xa')][_0x201a('0x5')](_0x2bbeed[_0x201a('0x11')][_0x201a('0x17')]),_0x512a60[_0x201a('0x1f')](_0x2bbeed[_0x201a('0x11')]));});}['hasDomSelection'](){return this['editor'][_0x201a('0xb')][_0x201a('0x11')]['hasDomSelection'];}['addSourceCollector'](_0x469e2c){if(_0x201a('0xd')!=typeof _0x469e2c)throw new _0x3ec096(_0x201a('0x2b'));this[_0x201a('0x14')][_0x201a('0x20')](_0x469e2c);}[_0x201a('0x22')](){this[_0x201a('0x8')](_0x201a('0x15'));}[_0x201a('0x2')]({activeAnnotation:_0x1049a7,annotations:_0x4fa0ab}){const _0xeede43=[],_0x2b2c2e=this[_0x201a('0x3')][_0x201a('0x2a')]['document'][_0x201a('0x25')],_0xeb42a9=Array[_0x201a('0x29')](_0x2b2c2e[_0x201a('0x26')]());for(const [_0x40b019,_0x3936e7]of this[_0x201a('0x16')]){const _0x5299c0=_0xd97ed1(_0x3936e7),_0x5ca381=_0x4fa0ab[_0x201a('0x23')](_0x40b019);_0x5299c0&&_0x5ca381&&_0xeede43['push']({'annotation':_0x5ca381,'range':_0x5299c0});}function _0xd97ed1(_0x51d286){for(const _0x23e8d9 of _0x51d286)for(const _0x23a1ad of _0xeb42a9)if(_0x23e8d9[_0x201a('0x4')](_0x23a1ad,!_0x2b2c2e['isCollapsed']))return _0x23e8d9;return null;}return _0xeede43[_0x201a('0x18')]((_0x49fe50,_0x3de9b4)=>{const _0xe17c61=_0x49fe50['range'],_0x3ab843=_0x3de9b4[_0x201a('0x10')];if(!_0xe17c61['isEqual'](_0x3ab843)){if(_0xe17c61['containsRange'](_0x3ab843,!0x0))return 0x1;if(_0x3ab843[_0x201a('0x4')](_0xe17c61,!0x0))return-0x1;}return _0x49fe50[_0x201a('0x12')]==_0x1049a7?-0x1:_0x3de9b4[_0x201a('0x12')]==_0x1049a7?0x1:0x0;})[_0x201a('0x1e')](_0x311f94=>_0x311f94[_0x201a('0x12')]);}get['_editorAnnotationsData'](){const _0x19ed7d=new Map();for(const _0x89eb9a of Array['from'](this[_0x201a('0x14')]))for(const [_0x1c17c1,_0x1d09b8]of _0x89eb9a())_0x19ed7d[_0x201a('0x28')](_0x1c17c1,_0x1d09b8);return _0x19ed7d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48b6=['isAttached','focusTracker','stopListening','register','InlineAnnotations','get','getByView','document','_setSelectedAnnotations','change:visibleView','_selectedAnnotations','has','detach','keystrokes','pluginName','set','EditorAnnotations','switchTo','hasActive','inlineannotations-attach-already-attached','editableElement','setActiveAnnotation','inlineannotations-detach-not-attached','remove','isActive','listenTo','getSelection','addObserver','refresh','focus','context','isFocused','mousedown','inline','getRangeAt','_manuallyClosed','add','bind','change:isFocused','activeAnnotation','clear','blur','afterInit','inlineannotations-not-allowed-with-context','attach','change:height','_removeAnnotationFromBalloon','Esc','view','editor','_annotations','_balloon','target','destroy','targetRect','visibleView','requires','plugins','_addedAnnotations','includes','editing','hasView','delete','selection'];(function(_0x2905d3,_0x48b6ff){const _0x30f6e3=function(_0x22fcb4){while(--_0x22fcb4){_0x2905d3['push'](_0x2905d3['shift']());}};_0x30f6e3(++_0x48b6ff);}(_0x48b6,0x110));const _0x30f6=function(_0x2905d3,_0x48b6ff){_0x2905d3=_0x2905d3-0x0;let _0x30f6e3=_0x48b6[_0x2905d3];return _0x30f6e3;};import{Plugin as _0x48670d}from'ckeditor5/src/core';import _0x34c749 from'./annotationsuis';import _0xe08140 from'./editorannotations';import{ContextualBalloon as _0x5d5b8}from'ckeditor5/src/ui';import{MouseObserver as _0x16eaa3}from'ckeditor5/src/engine';import{CKEditorError as _0x5cbe3a}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x48670d{static get[_0x30f6('0x28')](){return[_0xe08140,_0x5d5b8,_0x34c749];}static get[_0x30f6('0x3e')](){return _0x30f6('0x34');}constructor(_0x1a1f52){super(_0x1a1f52),_0x1a1f52[_0x30f6('0x2c')][_0x30f6('0x20')][_0x30f6('0xb')](_0x16eaa3),this[_0x30f6('0x30')]=!0x1,this[_0x30f6('0x3f')](_0x30f6('0x17'),null),this['_annotations']=null,this['_manuallyClosed']=new Set(),this[_0x30f6('0x23')]=_0x1a1f52['plugins'][_0x30f6('0x35')](_0x5d5b8),this[_0x30f6('0x2a')]=new Set(),this[_0x30f6('0x3a')]=[];}['init'](){const _0xbab054=this[_0x30f6('0x21')]['plugins']['get'](_0x34c749);_0xbab054['context']===this[_0x30f6('0x21')]&&(_0xbab054[_0x30f6('0x33')](_0x30f6('0x11'),this),this[_0x30f6('0x21')][_0x30f6('0x3d')]['set'](_0x30f6('0x1f'),(_0x588614,_0x5a311f)=>{const _0x88748=this[_0x30f6('0x23')];if(this[_0x30f6('0x30')]&&_0x88748[_0x30f6('0x27')]){const _0x4fa326=this[_0x30f6('0x22')][_0x30f6('0x36')](_0x88748[_0x30f6('0x27')]);this[_0x30f6('0x13')][_0x30f6('0x14')](_0x4fa326),this[_0x30f6('0x1e')](_0x4fa326),_0x5a311f();}}));}[_0x30f6('0x1a')](){const _0x1c345e=this[_0x30f6('0x21')][_0x30f6('0x29')]['get'](_0x34c749);_0x1c345e[_0x30f6('0xe')]===this[_0x30f6('0x21')]&&(_0x1c345e[_0x30f6('0x2')]()||_0x1c345e[_0x30f6('0x1')](_0x30f6('0x11')));}[_0x30f6('0x5')](_0x15b19a){_0x15b19a!==this[_0x30f6('0x17')]&&(this['activeAnnotation']&&(this[_0x30f6('0x17')][_0x30f6('0x8')]=!0x1),_0x15b19a&&this[_0x30f6('0x21')]['ui'][_0x30f6('0x31')]['isFocused']&&(this['_addAnnotationToBalloon'](_0x15b19a,!0x0),_0x15b19a[_0x30f6('0x8')]=!0x0),_0x15b19a||this[_0x30f6('0x38')]([]),this['activeAnnotation']=_0x15b19a);}[_0x30f6('0x1c')](_0x23a1d5){this[_0x30f6('0x22')]=_0x23a1d5;const _0x579220=this['editor'][_0x30f6('0x29')][_0x30f6('0x35')](_0x34c749),_0x134e71=this[_0x30f6('0x23')];if(this[_0x30f6('0x30')])throw new _0x5cbe3a(_0x30f6('0x3'),this);if(_0x579220[_0x30f6('0xe')]!==this[_0x30f6('0x21')])throw new _0x5cbe3a(_0x30f6('0x1b'),this);const _0x119db8=this['editor'][_0x30f6('0x29')][_0x30f6('0x35')](_0x30f6('0x0'));this[_0x30f6('0x9')](_0x119db8,_0x30f6('0xc'),function(){const _0x2a7eb3=_0x119db8['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x30f6('0x17')],'annotations':this[_0x30f6('0x22')]});this['_setSelectedAnnotations'](_0x2a7eb3),this[_0x30f6('0x5')](_0x2a7eb3[0x0]||null);}[_0x30f6('0x15')](this)),this[_0x30f6('0x9')](_0x119db8,_0x30f6('0x19'),(_0x52d096,{isAnnotationTracked:_0x49f403})=>{this[_0x30f6('0x17')]&&_0x49f403(this[_0x30f6('0x17')])&&(this[_0x30f6('0x38')]([]),this[_0x30f6('0x5')](null));}),this['listenTo'](this[_0x30f6('0x21')]['ui'][_0x30f6('0x31')],_0x30f6('0x16'),(_0x4b0f26,_0x283618,_0x3fe8ab)=>{_0x3fe8ab||this[_0x30f6('0x5')](null);}),this[_0x30f6('0x9')](_0x23a1d5,_0x30f6('0x7'),(_0x44b6a0,_0x1aa2d4)=>{this[_0x30f6('0x1e')](_0x1aa2d4),_0x1aa2d4===this[_0x30f6('0x17')]&&this[_0x30f6('0x5')](null);}),this[_0x30f6('0x9')](_0x134e71,_0x30f6('0x39'),(_0x506a94,_0x87c9b,_0x52d817,_0x2e0f17)=>{if(_0x2e0f17&&this[_0x30f6('0x32')](_0x2e0f17),!_0x52d817||!_0x23a1d5[_0x30f6('0x36')](_0x52d817))return;const _0x3aa805=_0x23a1d5['getByView'](_0x52d817);this[_0x30f6('0x9')](_0x52d817,_0x30f6('0x1d'),()=>{_0x134e71['updatePosition']();}),this[_0x30f6('0x9')](_0x52d817,_0x30f6('0x1f'),()=>{this['_manuallyClosed'][_0x30f6('0x14')](_0x3aa805),this['_removeAnnotationFromBalloon'](_0x3aa805),this[_0x30f6('0x21')][_0x30f6('0x2c')][_0x30f6('0x20')][_0x30f6('0xd')]();}),this[_0x30f6('0x17')]!==_0x3aa805&&this[_0x30f6('0x5')](_0x3aa805);}),this[_0x30f6('0x9')](this[_0x30f6('0x21')]['ui'],'update',()=>{_0x134e71[_0x30f6('0x27')]&&(_0x23a1d5[_0x30f6('0x36')](_0x134e71[_0x30f6('0x27')])&&_0x134e71['updatePosition']());}),this['listenTo'](this['editor'][_0x30f6('0x2c')][_0x30f6('0x20')][_0x30f6('0x37')],_0x30f6('0x10'),()=>{this['_manuallyClosed'][_0x30f6('0x18')]();}),this[_0x30f6('0x21')][_0x30f6('0x2c')][_0x30f6('0x20')][_0x30f6('0x37')][_0x30f6('0x2f')][_0x30f6('0x4')]&&this[_0x30f6('0x21')]['editing'][_0x30f6('0x20')][_0x30f6('0xd')](),this[_0x30f6('0x30')]=!0x0;}[_0x30f6('0x3c')](){if(!this['isAttached'])throw new _0x5cbe3a(_0x30f6('0x6'),this);this[_0x30f6('0x5')](null);for(const _0x1a7276 of this[_0x30f6('0x2a')])this[_0x30f6('0x1e')](_0x1a7276);this[_0x30f6('0x32')](),this[_0x30f6('0x30')]=!0x1;}[_0x30f6('0x25')](){this['isAttached']&&this[_0x30f6('0x3c')]();}[_0x30f6('0x38')](_0xdf089f){const _0x51a25d=this[_0x30f6('0x3a')];for(const _0x1fef63 of _0x51a25d)_0xdf089f[_0x30f6('0x2b')](_0x1fef63)||this['_manuallyClosed'][_0x30f6('0x2e')](_0x1fef63);for(const _0x30be8b of this[_0x30f6('0x22')])_0xdf089f['includes'](_0x30be8b)||this[_0x30f6('0x1e')](_0x30be8b);if(this[_0x30f6('0x21')]['ui'][_0x30f6('0x31')][_0x30f6('0xf')])for(const _0x411394 of _0xdf089f)this['_addAnnotationToBalloon'](_0x411394);this[_0x30f6('0x3a')]=_0xdf089f;}['_addAnnotationToBalloon'](_0xfa8edb,_0x338de0){this['_manuallyClosed'][_0x30f6('0x3b')](_0xfa8edb)||(this['_addedAnnotations'][_0x30f6('0x3b')](_0xfa8edb)||this[_0x30f6('0x23')][_0x30f6('0x2d')](_0xfa8edb['view'])||(this[_0x30f6('0x2a')][_0x30f6('0x14')](_0xfa8edb),this['_balloon'][_0x30f6('0x14')]({'stackId':_0xfa8edb[_0x30f6('0x20')]['id'],'view':_0xfa8edb[_0x30f6('0x20')],'position':{'target':()=>_0xfa8edb[_0x30f6('0x24')]||_0xfa8edb[_0x30f6('0x26')]||document[_0x30f6('0xa')]()[_0x30f6('0x12')](0x0)}})),_0x338de0&&this[_0x30f6('0x23')]['showStack'](_0xfa8edb['view']['id']));}[_0x30f6('0x1e')](_0x5efae4){this[_0x30f6('0x2a')][_0x30f6('0x3b')](_0x5efae4)&&this[_0x30f6('0x23')][_0x30f6('0x2d')](_0x5efae4[_0x30f6('0x20')])&&(this[_0x30f6('0x2a')][_0x30f6('0x2e')](_0x5efae4),this[_0x30f6('0x23')]['remove'](_0x5efae4['view']));}}
23
+ const _0x6971=['inlineannotations-detach-not-attached','inlineannotations-attach-already-attached','_balloon','update','showStack','focusTracker','destroy','editor','selection','_annotations','change:isFocused','hasView','isAttached','pluginName','_addAnnotationToBalloon','context','change:visibleView','includes','_setSelectedAnnotations','register','editing','inlineannotations-not-allowed-with-context','clear','visibleView','_selectedAnnotations','activeAnnotation','remove','has','requires','delete','editableElement','get','attach','hasActive','refresh','_addedAnnotations','setActiveAnnotation','plugins','switchTo','change:height','_removeAnnotationFromBalloon','updatePosition','getRangeAt','EditorAnnotations','blur','isActive','getByView','getSelection','addObserver','add','listenTo','focus','isFocused','stopListening','afterInit','_manuallyClosed','bind','document','set','view'];(function(_0x341b40,_0x6971ac){const _0x1cedc2=function(_0x5e0ce6){while(--_0x5e0ce6){_0x341b40['push'](_0x341b40['shift']());}};_0x1cedc2(++_0x6971ac);}(_0x6971,0x13f));const _0x1ced=function(_0x341b40,_0x6971ac){_0x341b40=_0x341b40-0x0;let _0x1cedc2=_0x6971[_0x341b40];return _0x1cedc2;};import{Plugin as _0x769ac7}from'ckeditor5/src/core';import _0x4c6d28 from'./annotationsuis';import _0x5eb499 from'./editorannotations';import{ContextualBalloon as _0x2b5d4a}from'ckeditor5/src/ui';import{MouseObserver as _0x593b5f}from'ckeditor5/src/engine';import{CKEditorError as _0x52b33b}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x769ac7{static get[_0x1ced('0x9')](){return[_0x5eb499,_0x2b5d4a,_0x4c6d28];}static get[_0x1ced('0x36')](){return'InlineAnnotations';}constructor(_0x5e6d6c){super(_0x5e6d6c),_0x5e6d6c[_0x1ced('0x1')][_0x1ced('0x28')][_0x1ced('0x1d')](_0x593b5f),this[_0x1ced('0x35')]=!0x1,this[_0x1ced('0x27')]('activeAnnotation',null),this[_0x1ced('0x32')]=null,this[_0x1ced('0x24')]=new Set(),this['_balloon']=_0x5e6d6c[_0x1ced('0x12')]['get'](_0x2b5d4a),this[_0x1ced('0x10')]=new Set(),this[_0x1ced('0x5')]=[];}['init'](){const _0x52a234=this[_0x1ced('0x30')][_0x1ced('0x12')][_0x1ced('0xc')](_0x4c6d28);_0x52a234[_0x1ced('0x38')]===this[_0x1ced('0x30')]&&(_0x52a234[_0x1ced('0x0')]('inline',this),this[_0x1ced('0x30')]['keystrokes']['set']('Esc',(_0x1575cc,_0x49503)=>{const _0x166ac9=this['_balloon'];if(this[_0x1ced('0x35')]&&_0x166ac9['visibleView']){const _0x792ea3=this[_0x1ced('0x32')][_0x1ced('0x1b')](_0x166ac9[_0x1ced('0x4')]);this[_0x1ced('0x24')][_0x1ced('0x1e')](_0x792ea3),this[_0x1ced('0x15')](_0x792ea3),_0x49503();}}));}[_0x1ced('0x23')](){const _0x586f99=this[_0x1ced('0x30')][_0x1ced('0x12')][_0x1ced('0xc')](_0x4c6d28);_0x586f99[_0x1ced('0x38')]===this[_0x1ced('0x30')]&&(_0x586f99[_0x1ced('0xe')]()||_0x586f99[_0x1ced('0x13')]('inline'));}[_0x1ced('0x11')](_0x42dae2){_0x42dae2!==this[_0x1ced('0x6')]&&(this[_0x1ced('0x6')]&&(this['activeAnnotation'][_0x1ced('0x1a')]=!0x1),_0x42dae2&&this['editor']['ui'][_0x1ced('0x2e')][_0x1ced('0x21')]&&(this[_0x1ced('0x37')](_0x42dae2,!0x0),_0x42dae2[_0x1ced('0x1a')]=!0x0),_0x42dae2||this[_0x1ced('0x3b')]([]),this[_0x1ced('0x6')]=_0x42dae2);}[_0x1ced('0xd')](_0x359d0c){this[_0x1ced('0x32')]=_0x359d0c;const _0x483fa6=this[_0x1ced('0x30')]['plugins'][_0x1ced('0xc')](_0x4c6d28),_0x1b8c6f=this[_0x1ced('0x2b')];if(this[_0x1ced('0x35')])throw new _0x52b33b(_0x1ced('0x2a'),this);if(_0x483fa6[_0x1ced('0x38')]!==this[_0x1ced('0x30')])throw new _0x52b33b(_0x1ced('0x2'),this);const _0x50ea9e=this['editor'][_0x1ced('0x12')][_0x1ced('0xc')](_0x1ced('0x18'));this[_0x1ced('0x1f')](_0x50ea9e,_0x1ced('0xf'),function(){const _0x17b72e=_0x50ea9e['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x1ced('0x6')],'annotations':this[_0x1ced('0x32')]});this[_0x1ced('0x3b')](_0x17b72e),this[_0x1ced('0x11')](_0x17b72e[0x0]||null);}[_0x1ced('0x25')](this)),this[_0x1ced('0x1f')](_0x50ea9e,_0x1ced('0x19'),(_0x3ca7b6,{isAnnotationTracked:_0x327eee})=>{this['activeAnnotation']&&_0x327eee(this[_0x1ced('0x6')])&&(this[_0x1ced('0x3b')]([]),this['setActiveAnnotation'](null));}),this[_0x1ced('0x1f')](this['editor']['ui'][_0x1ced('0x2e')],_0x1ced('0x33'),(_0x4e4b89,_0x2d0bce,_0x1b879d)=>{_0x1b879d||this[_0x1ced('0x11')](null);}),this[_0x1ced('0x1f')](_0x359d0c,_0x1ced('0x7'),(_0x7aeae0,_0x588c96)=>{this[_0x1ced('0x15')](_0x588c96),_0x588c96===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this[_0x1ced('0x1f')](_0x1b8c6f,_0x1ced('0x39'),(_0xc63c8e,_0x50cbb9,_0x1af3ef,_0x2f4d0d)=>{if(_0x2f4d0d&&this[_0x1ced('0x22')](_0x2f4d0d),!_0x1af3ef||!_0x359d0c['getByView'](_0x1af3ef))return;const _0x1bada5=_0x359d0c[_0x1ced('0x1b')](_0x1af3ef);this[_0x1ced('0x1f')](_0x1af3ef,_0x1ced('0x14'),()=>{_0x1b8c6f[_0x1ced('0x16')]();}),this[_0x1ced('0x1f')](_0x1af3ef,'Esc',()=>{this['_manuallyClosed'][_0x1ced('0x1e')](_0x1bada5),this['_removeAnnotationFromBalloon'](_0x1bada5),this[_0x1ced('0x30')]['editing']['view'][_0x1ced('0x20')]();}),this[_0x1ced('0x6')]!==_0x1bada5&&this['setActiveAnnotation'](_0x1bada5);}),this['listenTo'](this[_0x1ced('0x30')]['ui'],_0x1ced('0x2c'),()=>{_0x1b8c6f[_0x1ced('0x4')]&&(_0x359d0c[_0x1ced('0x1b')](_0x1b8c6f[_0x1ced('0x4')])&&_0x1b8c6f[_0x1ced('0x16')]());}),this[_0x1ced('0x1f')](this[_0x1ced('0x30')][_0x1ced('0x1')][_0x1ced('0x28')][_0x1ced('0x26')],'mousedown',()=>{this[_0x1ced('0x24')][_0x1ced('0x3')]();}),this[_0x1ced('0x30')]['editing'][_0x1ced('0x28')]['document'][_0x1ced('0x31')][_0x1ced('0xb')]&&this['editor'][_0x1ced('0x1')]['view'][_0x1ced('0x20')](),this[_0x1ced('0x35')]=!0x0;}['detach'](){if(!this[_0x1ced('0x35')])throw new _0x52b33b(_0x1ced('0x29'),this);this[_0x1ced('0x11')](null);for(const _0x29e2c0 of this['_addedAnnotations'])this[_0x1ced('0x15')](_0x29e2c0);this['stopListening'](),this[_0x1ced('0x35')]=!0x1;}[_0x1ced('0x2f')](){this[_0x1ced('0x35')]&&this['detach']();}[_0x1ced('0x3b')](_0x4816cb){const _0x2cfe5c=this[_0x1ced('0x5')];for(const _0x1f3d52 of _0x2cfe5c)_0x4816cb[_0x1ced('0x3a')](_0x1f3d52)||this[_0x1ced('0x24')][_0x1ced('0xa')](_0x1f3d52);for(const _0xe3620 of this[_0x1ced('0x32')])_0x4816cb['includes'](_0xe3620)||this[_0x1ced('0x15')](_0xe3620);if(this['editor']['ui']['focusTracker'][_0x1ced('0x21')])for(const _0x1db07e of _0x4816cb)this['_addAnnotationToBalloon'](_0x1db07e);this[_0x1ced('0x5')]=_0x4816cb;}['_addAnnotationToBalloon'](_0x37e021,_0x2c0d09){this[_0x1ced('0x24')][_0x1ced('0x8')](_0x37e021)||(this[_0x1ced('0x10')]['has'](_0x37e021)||this[_0x1ced('0x2b')][_0x1ced('0x34')](_0x37e021[_0x1ced('0x28')])||(this[_0x1ced('0x10')]['add'](_0x37e021),this['_balloon']['add']({'stackId':_0x37e021[_0x1ced('0x28')]['id'],'view':_0x37e021[_0x1ced('0x28')],'position':{'target':()=>_0x37e021['target']||_0x37e021['targetRect']||document[_0x1ced('0x1c')]()[_0x1ced('0x17')](0x0)}})),_0x2c0d09&&this[_0x1ced('0x2b')][_0x1ced('0x2d')](_0x37e021[_0x1ced('0x28')]['id']));}['_removeAnnotationFromBalloon'](_0xab5c3e){this['_addedAnnotations'][_0x1ced('0x8')](_0xab5c3e)&&this[_0x1ced('0x2b')][_0x1ced('0x34')](_0xab5c3e[_0x1ced('0x28')])&&(this[_0x1ced('0x10')][_0x1ced('0xa')](_0xab5c3e),this['_balloon'][_0x1ced('0x7')](_0xab5c3e['view']));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30a4=['_selectedAnnotations','setActiveAnnotation','refreshPositioning','narrowsidebar-attach-already-attached','isDirty','preventDefault','plugins','stop','add','element','get','preventClosingBalloon','_annotations','esc','stopPropagation','balloonPanelView','_updateBalloonPosition','bind','focus','destroy','removeEventListener','_attachListeners','values','register','uiUpdate','attach','NarrowSidebar','defaultPositions','content','detachFromDom','blur','annotationType','set:container','change:container','narrowSidebar','_destroyEditorAnnotationsIntegration','pin','length','southArrowNorthEast','narrowsidebar-detach-not-attached','hasDomSelection','_showBalloon','clear','northArrowSouthEast','create','view','refresh','pluginName','keydown','context','locale','_manuallyClosedAnnotationViews','isVisible','delete','_attachToContainer','remove','resize','first','_domEmitter','addEventListener','addAnnotation','off','_setSelectedAnnotations','ck-sidebar--narrow','_throttledRefreshPositioning','_editorAnnotations','execute','southArrowNorthWest','rearrange','editors','low','activeAnnotation','mousedown','unpin','detach','contains','cancel','listenTo','_hideBalloon','_detachFromContainer','from','_refreshPositioning','_detachListeners','keyCode','set','stopListening','has','_integrateWithEditorAnnotations','change:height','isAttached','bodyCollection','Sidebar','high','_annotationToNarrowView','Esc','number','EditorAnnotations','includes','northArrowSouthWest'];(function(_0x4566f6,_0x30a477){const _0x498a5b=function(_0x272060){while(--_0x272060){_0x4566f6['push'](_0x4566f6['shift']());}};_0x498a5b(++_0x30a477);}(_0x30a4,0x187));const _0x498a=function(_0x4566f6,_0x30a477){_0x4566f6=_0x4566f6-0x0;let _0x498a5b=_0x30a4[_0x4566f6];return _0x498a5b;};import{ContextPlugin as _0x344a00}from'ckeditor5/src/core';import _0x457fbb from'./annotationsuis';import _0x2addc6 from'./sidebar';import _0x4acd41 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x563600,BodyCollection as _0x38da23}from'ckeditor5/src/ui';import{CKEditorError as _0x29e068,DomEmitterMixin as _0x5e2f21,keyCodes as _0x4710f5,Collection as _0x4a0b95}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x1df1b6}from'lodash-es';export default class s extends _0x344a00{static get['requires'](){return[_0x2addc6,_0x457fbb];}static get[_0x498a('0x34')](){return _0x498a('0x1f');}constructor(_0x141a34){super(_0x141a34),this[_0x498a('0x5e')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object[_0x498a('0x31')](_0x5e2f21),this[_0x498a('0x62')]=new Map(),this[_0x498a('0x59')](_0x498a('0x4c'),null),this['_annotations']=null,this[_0x498a('0x5')]=[],this[_0x498a('0x46')]=new _0x4a0b95(),this['_throttledRefreshPositioning']=_0x1df1b6(()=>{this['_refreshPositioning']();},0x190,{'leading':!0x1});}['init'](){this[_0x498a('0x36')][_0x498a('0xb')][_0x498a('0xf')](_0x457fbb)[_0x498a('0x1c')](_0x498a('0x27'),this),this[_0x498a('0x5f')]=new _0x38da23(this[_0x498a('0x36')][_0x498a('0x37')]),this[_0x498a('0x14')]=new _0x563600(this['context']['locale']),this[_0x498a('0x5f')]['attachToDom'](),this[_0x498a('0x5f')][_0x498a('0xd')](this[_0x498a('0x14')]);}[_0x498a('0x1e')](_0x388fc5){this['_annotations']=_0x388fc5;const _0x3ea4a1=this[_0x498a('0x36')][_0x498a('0xb')]['get'](_0x2addc6),_0x4f5645=this[_0x498a('0x14')];if(_0x3ea4a1[_0x498a('0x11')]=_0x388fc5,this[_0x498a('0x5e')])throw new _0x29e068(_0x498a('0x8'),this);this[_0x498a('0x5e')]=!0x0,this[_0x498a('0x52')](_0x3ea4a1,_0x498a('0x25'),()=>{this['detach'](),this['listenTo'](_0x3ea4a1,_0x498a('0x26'),_0xc97b8a=>{_0xc97b8a[_0x498a('0x42')](),this[_0x498a('0x1e')](_0x388fc5);});}),_0x3ea4a1[_0x498a('0x3b')]({'viewClass':_0x498a('0x44'),'spaceBetweenItems':0x5});const _0x5522ca=_0x1f52f6=>{const _0x490843=new _0x4acd41(this[_0x498a('0x36')][_0x498a('0x37')]);_0x3ea4a1[_0x498a('0x41')](_0x1f52f6,_0x490843),this[_0x498a('0x62')]['set'](_0x1f52f6,_0x490843),_0x490843[_0x498a('0x16')]('isDirty',_0x498a('0x24'),_0x498a('0x1'))['to'](_0x1f52f6[_0x498a('0x32')],_0x498a('0x9'),'type',_0x498a('0x2a')),_0x490843['on'](_0x498a('0x47'),()=>{this[_0x498a('0x38')][_0x498a('0x2f')](),_0x4f5645[_0x498a('0x21')][_0x498a('0x3e')]!==_0x1f52f6[_0x498a('0x32')]?(this[_0x498a('0x2e')](_0x1f52f6),_0x1f52f6['view'][_0x498a('0xe')][_0x498a('0x17')](),this[_0x498a('0x6')](_0x1f52f6)):this['setActiveAnnotation'](null);});};for(const _0x41327b of _0x388fc5)_0x5522ca(_0x41327b);this[_0x498a('0x52')](_0x388fc5,_0x498a('0xd'),(_0x15681a,_0x342a83)=>{_0x5522ca(_0x342a83);}),this[_0x498a('0x52')](_0x388fc5,_0x498a('0x3c'),(_0x3f84d2,_0x94de0c,_0x4fdfa6)=>{this[_0x498a('0x62')]['get'](_0x94de0c)['destroy'](),this[_0x498a('0x62')][_0x498a('0x3a')](_0x94de0c),_0x3ea4a1[_0x498a('0x49')]({'removedAnnotation':_0x94de0c,'previousAnnotation':_0x388fc5[_0x498a('0xf')](_0x4fdfa6-0x1),'nextAnnotation':_0x388fc5[_0x498a('0xf')](_0x4fdfa6+0x1)}),_0x94de0c===this[_0x498a('0x4c')]&&this[_0x498a('0x6')](null);},{'priority':_0x498a('0x4b')}),this[_0x498a('0x52')](_0x388fc5,'focus',(_0x3ccbec,_0x234c53)=>{this[_0x498a('0x6')](_0x234c53);}),this['listenTo'](_0x388fc5,_0x498a('0x23'),()=>{this[_0x498a('0x6')](null);}),this['_domEmitter'][_0x498a('0x52')](document,_0x498a('0x35'),(_0x388bd5,_0x2dc330)=>{_0x2dc330[_0x498a('0x58')]===_0x4710f5[_0x498a('0x12')]&&_0x4f5645[_0x498a('0x39')]&&(this['_manuallyClosedAnnotationViews'][_0x498a('0xd')](_0x4f5645[_0x498a('0x21')][_0x498a('0x3e')]),this[_0x498a('0x53')](),_0x2dc330[_0x498a('0x13')](),_0x2dc330[_0x498a('0xa')]());}),this[_0x498a('0x3f')][_0x498a('0x52')](document,_0x498a('0x4d'),(_0x43c19d,_0x2518a2)=>{const _0x260442=_0x2518a2['target'];_0x4f5645[_0x498a('0x39')]&&_0x4f5645[_0x498a('0xe')][_0x498a('0x50')](_0x260442)||_0x3ea4a1[_0x498a('0x32')][_0x498a('0xe')][_0x498a('0x50')](_0x260442)||_0x43c19d[_0x498a('0x10')]||(this[_0x498a('0x38')]['clear'](),this[_0x498a('0x53')](),this['setActiveAnnotation'](null));});const _0x59ebf5=this[_0x498a('0x36')][_0x498a('0x4a')]?this[_0x498a('0x36')][_0x498a('0x4a')]:new _0x4a0b95([this[_0x498a('0x36')]]);for(const _0xba704a of _0x59ebf5)this[_0x498a('0x5c')](_0xba704a);this[_0x498a('0x52')](_0x59ebf5,_0x498a('0xd'),(_0x2ef290,_0x4caa3e)=>{this[_0x498a('0x52')](_0x4caa3e,'ready',()=>{this[_0x498a('0x5c')](_0x4caa3e);});}),this[_0x498a('0x52')](_0x59ebf5,_0x498a('0x3c'),(_0x449519,_0x38186b)=>{_0x38186b[_0x498a('0xb')]['has'](_0x498a('0x2'))&&this[_0x498a('0x28')](_0x38186b[_0x498a('0xb')]['get'](_0x498a('0x2')));}),window[_0x498a('0x40')](_0x498a('0x3d'),this[_0x498a('0x45')]),this[_0x498a('0x56')]();}[_0x498a('0x6')](_0x4c24c4){if(_0x4c24c4===this[_0x498a('0x4c')])return;const _0x17be53=this[_0x498a('0x36')][_0x498a('0xb')][_0x498a('0xf')](_0x498a('0x60'));if(_0x17be53[_0x498a('0x33')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4c24c4,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4c24c4)_0x17be53['getSidebarItemView'](_0x4c24c4)?this[_0x498a('0x2e')](_0x4c24c4):this[_0x498a('0x53')]();else this[_0x498a('0x53')]();this[_0x498a('0x4c')]=_0x4c24c4;}[_0x498a('0x4f')](){if(!this['isAttached'])throw new _0x29e068(_0x498a('0x2c'),this);this[_0x498a('0x6')](null);const _0x57682d=this[_0x498a('0x36')][_0x498a('0xb')][_0x498a('0xf')](_0x498a('0x60'));this[_0x498a('0x53')](),Array[_0x498a('0x55')](this[_0x498a('0x62')][_0x498a('0x1b')](),_0xa0a278=>_0xa0a278[_0x498a('0x18')]()),this['_annotationToNarrowView'][_0x498a('0x2f')](),_0x57682d[_0x498a('0x54')](this['_annotations']),this[_0x498a('0x5a')](),this[_0x498a('0x3f')][_0x498a('0x5a')](),this[_0x498a('0x5a')](this[_0x498a('0x36')][_0x498a('0x4a')]);for(const _0x1ad2ec of Array[_0x498a('0x55')](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1ad2ec);window[_0x498a('0x19')](_0x498a('0x3d'),this[_0x498a('0x45')]),this['_throttledRefreshPositioning'][_0x498a('0x51')](),this[_0x498a('0x5')]=[],this[_0x498a('0x5e')]=!0x1,this['_annotations']=null;}['destroy'](){this[_0x498a('0x5e')]&&this[_0x498a('0x4f')](),this[_0x498a('0x5f')][_0x498a('0x22')]();}[_0x498a('0x5c')](_0x3e7e62){const _0x45e686=_0x3e7e62[_0x498a('0xb')][_0x498a('0xf')](_0x498a('0x2')),_0x107332=this[_0x498a('0x36')][_0x498a('0xb')]['get'](_0x2addc6),_0x1ab90e=this[_0x498a('0x11')],_0x2b681d=this[_0x498a('0x14')],_0xa297a8=()=>{const _0x22c181=_0x45e686['getOrderedSelectedAnnotations']({'activeAnnotation':this[_0x498a('0x4c')],'annotations':this[_0x498a('0x11')]});this[_0x498a('0x43')](_0x22c181),this[_0x498a('0x6')](_0x22c181[0x0]||null);};this[_0x498a('0x52')](_0x45e686,_0x498a('0x33'),_0xa297a8),this[_0x498a('0x52')](_0x45e686,_0x498a('0x23'),(_0x1565ed,{isAnnotationTracked:_0x4cff99})=>{this[_0x498a('0x4c')]&&_0x4cff99(this[_0x498a('0x4c')])&&(this['_setSelectedAnnotations']([]),this[_0x498a('0x6')](null));}),this[_0x498a('0x52')](_0x45e686,_0x498a('0x1d'),()=>{this[_0x498a('0x45')]();}),this['listenTo'](_0x1ab90e,'blur',_0x24b3c2=>{_0x45e686['hasDomSelection']()&&_0x24b3c2[_0x498a('0xc')]();},{'priority':'high'}),this['_domEmitter']['listenTo'](document,_0x498a('0x4d'),(_0x201fd1,_0x251a44)=>{const _0x331862=_0x251a44['target'];_0x2b681d[_0x498a('0x39')]&&_0x2b681d['element'][_0x498a('0x50')](_0x331862)||_0x107332['view']['element'][_0x498a('0x50')](_0x331862)||this[_0x498a('0x4c')]&&_0x45e686[_0x498a('0x2d')]()&&(_0xa297a8(),_0x201fd1[_0x498a('0x10')]=!0x0);},{'priority':_0x498a('0x61')}),this[_0x498a('0x46')]['add'](_0x45e686);}[_0x498a('0x28')](_0x2d3e2e){_0x2d3e2e&&(this[_0x498a('0x5a')](_0x2d3e2e),this[_0x498a('0x46')][_0x498a('0x3c')](_0x2d3e2e));}[_0x498a('0x43')](_0x3e0ce1){for(const _0x275833 of this['_selectedAnnotations'])_0x3e0ce1[_0x498a('0x3')](_0x275833)||this[_0x498a('0x38')]['delete'](_0x275833['view']);this[_0x498a('0x5')]=_0x3e0ce1;}['_refreshPositioning'](){const _0x332fa1=this[_0x498a('0x14')];this[_0x498a('0x11')][_0x498a('0x7')](),_0x332fa1[_0x498a('0x39')]&&this[_0x498a('0x15')]();}[_0x498a('0x2e')](_0x26ae38){if(this[_0x498a('0x38')][_0x498a('0x5b')](_0x26ae38[_0x498a('0x32')]))return;const _0x446976=this[_0x498a('0x14')][_0x498a('0x21')]['first'];_0x446976!==_0x26ae38[_0x498a('0x32')]?(_0x446976&&this['_detachListeners'](_0x446976),this[_0x498a('0x1a')](_0x26ae38[_0x498a('0x32')]),this['balloonPanelView']['content'][_0x498a('0x2f')](),this[_0x498a('0x14')][_0x498a('0x21')][_0x498a('0xd')](_0x26ae38[_0x498a('0x32')]),this[_0x498a('0x15')]()):this[_0x498a('0x15')]();}[_0x498a('0x15')](){const _0x3123f2=this[_0x498a('0x14')][_0x498a('0x21')][_0x498a('0x3e')],_0xf88d09=this[_0x498a('0x11')]['getByView'](_0x3123f2);if(!this[_0x498a('0x62')][_0x498a('0x5b')](_0xf88d09))return;const _0x511e28=this[_0x498a('0x62')][_0x498a('0xf')](_0xf88d09)['element'],_0xd73b60=function(){const _0x361d8a=_0x563600[_0x498a('0x20')];return[_0x361d8a[_0x498a('0x2b')],_0x361d8a[_0x498a('0x30')],_0x361d8a['southArrowNorth'],_0x361d8a['northArrowSouth'],_0x361d8a[_0x498a('0x48')],_0x361d8a[_0x498a('0x4')]];}();this[_0x498a('0x14')][_0x498a('0x29')]({'target':_0x511e28,'positions':_0xd73b60});}[_0x498a('0x53')](){const _0x39a5e6=this['balloonPanelView'],_0x33f3de=_0x39a5e6[_0x498a('0x21')][_0x498a('0x3e')];_0x33f3de&&(this['_detachListeners'](_0x33f3de),_0x39a5e6[_0x498a('0x4e')](),_0x39a5e6[_0x498a('0x21')][_0x498a('0x2f')]());}[_0x498a('0x1a')](_0x51ec9c){this[_0x498a('0x52')](_0x51ec9c,_0x498a('0x5d'),()=>this[_0x498a('0x15')]()),this[_0x498a('0x52')](_0x51ec9c,_0x498a('0x0'),(_0xd6f9c8,_0x5ea1fb)=>{this[_0x498a('0x38')][_0x498a('0xd')](_0x51ec9c),this[_0x498a('0x53')](),_0x5ea1fb();});}[_0x498a('0x57')](_0xf64129){this[_0x498a('0x5a')](_0xf64129);}}
23
+ const _0x4776=['preventClosingBalloon','element','_throttledRefreshPositioning','_attachListeners','narrowsidebar-detach-not-attached','remove','delete','detachFromDom','EditorAnnotations','_setSelectedAnnotations','hasDomSelection','values','annotationType','_showBalloon','editors','northArrowSouthEast','_hideBalloon','context','contains','_refreshPositioning','change:height','locale','plugins','stop','target','unpin','bodyCollection','activeAnnotation','addAnnotation','attach','mousedown','has','_detachListeners','northArrowSouthWest','bind','create','add','southArrowNorthEast','narrowsidebar-attach-already-attached','_destroyEditorAnnotationsIntegration','_integrateWithEditorAnnotations','first','number','_selectedAnnotations','ck-sidebar--narrow','balloonPanelView','_updateBalloonPosition','type','off','refresh','stopListening','esc','change:container','pluginName','isAttached','length','high','ready','view','resize','NarrowSidebar','defaultPositions','getSidebarItemView','requires','Sidebar','preventDefault','focus','removeEventListener','setActiveAnnotation','northArrowSouth','detach','pin','keyCode','addEventListener','isVisible','blur','listenTo','_annotationToNarrowView','rearrange','stopPropagation','register','from','_attachToContainer','_manuallyClosedAnnotationViews','narrowSidebar','includes','destroy','isDirty','get','southArrowNorth','clear','_detachFromContainer','set','content','_domEmitter','Esc','_annotations','keydown','getOrderedSelectedAnnotations','_editorAnnotations','getByView'];(function(_0x537968,_0x4776e6){const _0x26dea4=function(_0x367e3e){while(--_0x367e3e){_0x537968['push'](_0x537968['shift']());}};_0x26dea4(++_0x4776e6);}(_0x4776,0x1c2));const _0x26de=function(_0x537968,_0x4776e6){_0x537968=_0x537968-0x0;let _0x26dea4=_0x4776[_0x537968];return _0x26dea4;};import{ContextPlugin as _0x5559f1}from'ckeditor5/src/core';import _0x166068 from'./annotationsuis';import _0x9ead6d from'./sidebar';import _0xd7441f from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x316fa6,BodyCollection as _0x15eca9}from'ckeditor5/src/ui';import{CKEditorError as _0x16975d,DomEmitterMixin as _0x5377c2,keyCodes as _0x51b316,Collection as _0x54159c}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x43d226}from'lodash-es';export default class s extends _0x5559f1{static get[_0x26de('0x11')](){return[_0x9ead6d,_0x166068];}static get[_0x26de('0x7')](){return _0x26de('0xe');}constructor(_0x4fe69f){super(_0x4fe69f),this[_0x26de('0x8')]=!0x1,this[_0x26de('0x25')]=new Set(),this[_0x26de('0x30')]=Object[_0x26de('0x5a')](_0x5377c2),this['_annotationToNarrowView']=new Map(),this[_0x26de('0x2e')]('activeAnnotation',null),this[_0x26de('0x32')]=null,this[_0x26de('0x62')]=[],this[_0x26de('0x35')]=new _0x54159c(),this[_0x26de('0x39')]=_0x43d226(()=>{this[_0x26de('0x4a')]();},0x190,{'leading':!0x1});}['init'](){this[_0x26de('0x48')][_0x26de('0x4d')][_0x26de('0x2a')](_0x166068)[_0x26de('0x22')](_0x26de('0x26'),this),this[_0x26de('0x51')]=new _0x15eca9(this[_0x26de('0x48')][_0x26de('0x4c')]),this[_0x26de('0x64')]=new _0x316fa6(this[_0x26de('0x48')][_0x26de('0x4c')]),this[_0x26de('0x51')]['attachToDom'](),this[_0x26de('0x51')][_0x26de('0x5b')](this[_0x26de('0x64')]);}['attach'](_0x3d9f83){this[_0x26de('0x32')]=_0x3d9f83;const _0x509234=this[_0x26de('0x48')]['plugins'][_0x26de('0x2a')](_0x9ead6d),_0x70e693=this[_0x26de('0x64')];if(_0x509234[_0x26de('0x32')]=_0x3d9f83,this[_0x26de('0x8')])throw new _0x16975d(_0x26de('0x5d'),this);this[_0x26de('0x8')]=!0x0,this[_0x26de('0x1e')](_0x509234,'set:container',()=>{this[_0x26de('0x18')](),this[_0x26de('0x1e')](_0x509234,_0x26de('0x6'),_0x50b07d=>{_0x50b07d[_0x26de('0x2')](),this[_0x26de('0x54')](_0x3d9f83);});}),_0x509234[_0x26de('0x24')]({'viewClass':_0x26de('0x63'),'spaceBetweenItems':0x5});const _0x59c877=_0x3be6c0=>{const _0x19f217=new _0xd7441f(this[_0x26de('0x48')][_0x26de('0x4c')]);_0x509234[_0x26de('0x53')](_0x3be6c0,_0x19f217),this[_0x26de('0x1f')]['set'](_0x3be6c0,_0x19f217),_0x19f217[_0x26de('0x59')](_0x26de('0x29'),_0x26de('0x43'),_0x26de('0x61'))['to'](_0x3be6c0[_0x26de('0xc')],_0x26de('0x29'),_0x26de('0x1'),_0x26de('0x9')),_0x19f217['on']('execute',()=>{this[_0x26de('0x25')][_0x26de('0x2c')](),_0x70e693[_0x26de('0x2f')][_0x26de('0x60')]!==_0x3be6c0[_0x26de('0xc')]?(this[_0x26de('0x44')](_0x3be6c0),_0x3be6c0['view']['element'][_0x26de('0x14')](),this['setActiveAnnotation'](_0x3be6c0)):this[_0x26de('0x16')](null);});};for(const _0x3deb10 of _0x3d9f83)_0x59c877(_0x3deb10);this['listenTo'](_0x3d9f83,_0x26de('0x5b'),(_0x2d7f37,_0x3e7e07)=>{_0x59c877(_0x3e7e07);}),this[_0x26de('0x1e')](_0x3d9f83,'remove',(_0x4a88b4,_0x537cb1,_0x4782b5)=>{this[_0x26de('0x1f')][_0x26de('0x2a')](_0x537cb1)['destroy'](),this[_0x26de('0x1f')][_0x26de('0x3d')](_0x537cb1),_0x509234[_0x26de('0x20')]({'removedAnnotation':_0x537cb1,'previousAnnotation':_0x3d9f83[_0x26de('0x2a')](_0x4782b5-0x1),'nextAnnotation':_0x3d9f83[_0x26de('0x2a')](_0x4782b5+0x1)}),_0x537cb1===this[_0x26de('0x52')]&&this[_0x26de('0x16')](null);},{'priority':'low'}),this[_0x26de('0x1e')](_0x3d9f83,'focus',(_0x500b30,_0x2a25af)=>{this['setActiveAnnotation'](_0x2a25af);}),this[_0x26de('0x1e')](_0x3d9f83,_0x26de('0x1d'),()=>{this['setActiveAnnotation'](null);}),this[_0x26de('0x30')][_0x26de('0x1e')](document,_0x26de('0x33'),(_0x140935,_0x370f49)=>{_0x370f49[_0x26de('0x1a')]===_0x51b316[_0x26de('0x5')]&&_0x70e693['isVisible']&&(this[_0x26de('0x25')][_0x26de('0x5b')](_0x70e693[_0x26de('0x2f')][_0x26de('0x60')]),this[_0x26de('0x47')](),_0x370f49[_0x26de('0x21')](),_0x370f49[_0x26de('0x13')]());}),this[_0x26de('0x30')]['listenTo'](document,_0x26de('0x55'),(_0x4af2bf,_0x13a5b0)=>{const _0x16b48f=_0x13a5b0[_0x26de('0x4f')];_0x70e693[_0x26de('0x1c')]&&_0x70e693[_0x26de('0x38')][_0x26de('0x49')](_0x16b48f)||_0x509234[_0x26de('0xc')]['element']['contains'](_0x16b48f)||_0x4af2bf[_0x26de('0x37')]||(this[_0x26de('0x25')][_0x26de('0x2c')](),this[_0x26de('0x47')](),this[_0x26de('0x16')](null));});const _0x4003bc=this[_0x26de('0x48')][_0x26de('0x45')]?this[_0x26de('0x48')][_0x26de('0x45')]:new _0x54159c([this['context']]);for(const _0x539d0e of _0x4003bc)this['_integrateWithEditorAnnotations'](_0x539d0e);this[_0x26de('0x1e')](_0x4003bc,_0x26de('0x5b'),(_0xc7e42b,_0x52c0c5)=>{this[_0x26de('0x1e')](_0x52c0c5,_0x26de('0xb'),()=>{this[_0x26de('0x5f')](_0x52c0c5);});}),this[_0x26de('0x1e')](_0x4003bc,_0x26de('0x3c'),(_0x39c1ed,_0x4b1ce1)=>{_0x4b1ce1[_0x26de('0x4d')]['has'](_0x26de('0x3f'))&&this[_0x26de('0x5e')](_0x4b1ce1[_0x26de('0x4d')][_0x26de('0x2a')](_0x26de('0x3f')));}),window[_0x26de('0x1b')](_0x26de('0xd'),this[_0x26de('0x39')]),this[_0x26de('0x4a')]();}[_0x26de('0x16')](_0x2965cb){if(_0x2965cb===this['activeAnnotation'])return;const _0x21920f=this[_0x26de('0x48')][_0x26de('0x4d')][_0x26de('0x2a')](_0x26de('0x12'));if(_0x21920f[_0x26de('0x3')]({'blurredAnnotation':this[_0x26de('0x52')],'activatedAnnotation':_0x2965cb,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2965cb)_0x21920f[_0x26de('0x10')](_0x2965cb)?this[_0x26de('0x44')](_0x2965cb):this[_0x26de('0x47')]();else this[_0x26de('0x47')]();this[_0x26de('0x52')]=_0x2965cb;}['detach'](){if(!this[_0x26de('0x8')])throw new _0x16975d(_0x26de('0x3b'),this);this['setActiveAnnotation'](null);const _0x152c84=this[_0x26de('0x48')][_0x26de('0x4d')][_0x26de('0x2a')](_0x26de('0x12'));this[_0x26de('0x47')](),Array[_0x26de('0x23')](this[_0x26de('0x1f')][_0x26de('0x42')](),_0x478a36=>_0x478a36['destroy']()),this[_0x26de('0x1f')][_0x26de('0x2c')](),_0x152c84[_0x26de('0x2d')](this[_0x26de('0x32')]),this[_0x26de('0x4')](),this[_0x26de('0x30')][_0x26de('0x4')](),this[_0x26de('0x4')](this['context'][_0x26de('0x45')]);for(const _0x1e322e of Array[_0x26de('0x23')](this[_0x26de('0x35')]))this[_0x26de('0x5e')](_0x1e322e);window[_0x26de('0x15')](_0x26de('0xd'),this[_0x26de('0x39')]),this[_0x26de('0x39')]['cancel'](),this['_selectedAnnotations']=[],this[_0x26de('0x8')]=!0x1,this['_annotations']=null;}[_0x26de('0x28')](){this[_0x26de('0x8')]&&this[_0x26de('0x18')](),this[_0x26de('0x51')][_0x26de('0x3e')]();}['_integrateWithEditorAnnotations'](_0x3236d2){const _0x19acee=_0x3236d2[_0x26de('0x4d')]['get'](_0x26de('0x3f')),_0x15b78b=this['context'][_0x26de('0x4d')]['get'](_0x9ead6d),_0x214012=this['_annotations'],_0xabe8a0=this[_0x26de('0x64')],_0x247fe4=()=>{const _0x13f2bc=_0x19acee[_0x26de('0x34')]({'activeAnnotation':this[_0x26de('0x52')],'annotations':this[_0x26de('0x32')]});this['_setSelectedAnnotations'](_0x13f2bc),this['setActiveAnnotation'](_0x13f2bc[0x0]||null);};this['listenTo'](_0x19acee,_0x26de('0x3'),_0x247fe4),this[_0x26de('0x1e')](_0x19acee,_0x26de('0x1d'),(_0x10d79a,{isAnnotationTracked:_0x166c07})=>{this[_0x26de('0x52')]&&_0x166c07(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this[_0x26de('0x1e')](_0x19acee,'uiUpdate',()=>{this[_0x26de('0x39')]();}),this[_0x26de('0x1e')](_0x214012,'blur',_0x161b68=>{_0x19acee[_0x26de('0x41')]()&&_0x161b68[_0x26de('0x4e')]();},{'priority':'high'}),this[_0x26de('0x30')]['listenTo'](document,_0x26de('0x55'),(_0x1d5404,_0x4b668b)=>{const _0x458779=_0x4b668b[_0x26de('0x4f')];_0xabe8a0[_0x26de('0x1c')]&&_0xabe8a0[_0x26de('0x38')][_0x26de('0x49')](_0x458779)||_0x15b78b[_0x26de('0xc')][_0x26de('0x38')][_0x26de('0x49')](_0x458779)||this['activeAnnotation']&&_0x19acee[_0x26de('0x41')]()&&(_0x247fe4(),_0x1d5404[_0x26de('0x37')]=!0x0);},{'priority':_0x26de('0xa')}),this[_0x26de('0x35')][_0x26de('0x5b')](_0x19acee);}['_destroyEditorAnnotationsIntegration'](_0x4d1e65){_0x4d1e65&&(this['stopListening'](_0x4d1e65),this[_0x26de('0x35')]['remove'](_0x4d1e65));}[_0x26de('0x40')](_0x3f64a3){for(const _0x4cc231 of this[_0x26de('0x62')])_0x3f64a3[_0x26de('0x27')](_0x4cc231)||this['_manuallyClosedAnnotationViews'][_0x26de('0x3d')](_0x4cc231[_0x26de('0xc')]);this[_0x26de('0x62')]=_0x3f64a3;}[_0x26de('0x4a')](){const _0x23e9c9=this[_0x26de('0x64')];this[_0x26de('0x32')]['refreshPositioning'](),_0x23e9c9['isVisible']&&this[_0x26de('0x0')]();}[_0x26de('0x44')](_0x53a087){if(this[_0x26de('0x25')][_0x26de('0x56')](_0x53a087[_0x26de('0xc')]))return;const _0x223315=this[_0x26de('0x64')][_0x26de('0x2f')][_0x26de('0x60')];_0x223315!==_0x53a087[_0x26de('0xc')]?(_0x223315&&this[_0x26de('0x57')](_0x223315),this[_0x26de('0x3a')](_0x53a087[_0x26de('0xc')]),this[_0x26de('0x64')]['content']['clear'](),this[_0x26de('0x64')][_0x26de('0x2f')]['add'](_0x53a087[_0x26de('0xc')]),this[_0x26de('0x0')]()):this['_updateBalloonPosition']();}[_0x26de('0x0')](){const _0x113fc8=this[_0x26de('0x64')]['content']['first'],_0xbae071=this[_0x26de('0x32')][_0x26de('0x36')](_0x113fc8);if(!this[_0x26de('0x1f')][_0x26de('0x56')](_0xbae071))return;const _0x185ebf=this[_0x26de('0x1f')][_0x26de('0x2a')](_0xbae071)[_0x26de('0x38')],_0x73b957=function(){const _0x187360=_0x316fa6[_0x26de('0xf')];return[_0x187360[_0x26de('0x5c')],_0x187360[_0x26de('0x46')],_0x187360[_0x26de('0x2b')],_0x187360[_0x26de('0x17')],_0x187360['southArrowNorthWest'],_0x187360[_0x26de('0x58')]];}();this[_0x26de('0x64')][_0x26de('0x19')]({'target':_0x185ebf,'positions':_0x73b957});}[_0x26de('0x47')](){const _0x1f5dd1=this[_0x26de('0x64')],_0x20a44d=_0x1f5dd1[_0x26de('0x2f')][_0x26de('0x60')];_0x20a44d&&(this['_detachListeners'](_0x20a44d),_0x1f5dd1[_0x26de('0x50')](),_0x1f5dd1[_0x26de('0x2f')]['clear']());}['_attachListeners'](_0x4c5080){this[_0x26de('0x1e')](_0x4c5080,_0x26de('0x4b'),()=>this[_0x26de('0x0')]()),this[_0x26de('0x1e')](_0x4c5080,_0x26de('0x31'),(_0x2f7db,_0x5ca2a2)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4c5080),this['_hideBalloon'](),_0x5ca2a2();});}[_0x26de('0x57')](_0x242324){this[_0x26de('0x4')](_0x242324);}}