@ckeditor/ckeditor5-comments 39.0.2 → 40.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 (102) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/comments.js +1 -1
  4. package/build/translations/pt-br.js +1 -1
  5. package/lang/translations/pt-br.po +3 -3
  6. package/package.json +3 -3
  7. package/src/annotations/annotation.d.ts +90 -90
  8. package/src/annotations/annotation.js +1 -1
  9. package/src/annotations/annotationcollection.d.ts +98 -98
  10. package/src/annotations/annotationcollection.js +1 -1
  11. package/src/annotations/annotations.d.ts +154 -154
  12. package/src/annotations/annotations.js +1 -1
  13. package/src/annotations/annotationsuis.d.ts +232 -232
  14. package/src/annotations/annotationsuis.js +1 -1
  15. package/src/annotations/editorannotations.d.ts +67 -67
  16. package/src/annotations/editorannotations.js +1 -1
  17. package/src/annotations/inlineannotations.d.ts +90 -90
  18. package/src/annotations/inlineannotations.js +1 -1
  19. package/src/annotations/narrowsidebar.d.ts +85 -85
  20. package/src/annotations/narrowsidebar.js +1 -1
  21. package/src/annotations/sidebar.d.ts +100 -100
  22. package/src/annotations/sidebar.js +1 -1
  23. package/src/annotations/view/annotationcounterbuttonview.d.ts +29 -29
  24. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  25. package/src/annotations/view/annotationview.d.ts +90 -90
  26. package/src/annotations/view/annotationview.js +1 -1
  27. package/src/annotations/view/sidebaritemview.d.ts +55 -55
  28. package/src/annotations/view/sidebaritemview.js +1 -1
  29. package/src/annotations/view/sidebarview.d.ts +32 -32
  30. package/src/annotations/view/sidebarview.js +1 -1
  31. package/src/annotations/widesidebar.d.ts +77 -77
  32. package/src/annotations/widesidebar.js +1 -1
  33. package/src/augmentation.d.ts +52 -52
  34. package/src/comments/addcommentthreadcommand.d.ts +35 -35
  35. package/src/comments/addcommentthreadcommand.js +1 -1
  36. package/src/comments/commentsarchive.d.ts +31 -31
  37. package/src/comments/commentsarchive.js +1 -1
  38. package/src/comments/commentsarchiveui.d.ts +38 -38
  39. package/src/comments/commentsarchiveui.js +1 -1
  40. package/src/comments/commentsediting.d.ts +79 -79
  41. package/src/comments/commentsediting.js +1 -1
  42. package/src/comments/commentsrepository.d.ts +1129 -1105
  43. package/src/comments/commentsrepository.js +1 -1
  44. package/src/comments/commentsui.d.ts +33 -33
  45. package/src/comments/commentsui.js +1 -1
  46. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +17 -17
  47. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  48. package/src/comments/integrations/importword.d.ts +21 -21
  49. package/src/comments/integrations/importword.js +1 -1
  50. package/src/comments/ui/commenteditor/commenteditor.d.ts +36 -36
  51. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  52. package/src/comments/ui/commenteditor/commenteditorui.d.ts +31 -31
  53. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  54. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +36 -36
  55. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  56. package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
  57. package/src/comments/ui/commentthreadcontroller.js +1 -1
  58. package/src/comments/ui/view/basecommentthreadview.d.ts +119 -112
  59. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  60. package/src/comments/ui/view/basecommentview.d.ts +112 -112
  61. package/src/comments/ui/view/basecommentview.js +1 -1
  62. package/src/comments/ui/view/collapsedcommentsview.d.ts +13 -13
  63. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  64. package/src/comments/ui/view/commentcontentview.d.ts +14 -14
  65. package/src/comments/ui/view/commentcontentview.js +1 -1
  66. package/src/comments/ui/view/commentinputview.d.ts +86 -86
  67. package/src/comments/ui/view/commentinputview.js +1 -1
  68. package/src/comments/ui/view/commentsarchiveview.d.ts +38 -38
  69. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  70. package/src/comments/ui/view/commentslistview.d.ts +100 -100
  71. package/src/comments/ui/view/commentslistview.js +1 -1
  72. package/src/comments/ui/view/commentthreadheaderview.d.ts +50 -50
  73. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  74. package/src/comments/ui/view/commentthreadinputview.d.ts +41 -41
  75. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  76. package/src/comments/ui/view/commentthreadview.d.ts +118 -117
  77. package/src/comments/ui/view/commentthreadview.js +1 -1
  78. package/src/comments/ui/view/commentview.d.ts +243 -243
  79. package/src/comments/ui/view/commentview.js +1 -1
  80. package/src/comments.d.ts +35 -35
  81. package/src/comments.js +1 -1
  82. package/src/commentsonly.d.ts +33 -33
  83. package/src/commentsonly.js +1 -1
  84. package/src/config.d.ts +176 -176
  85. package/src/index.d.ts +24 -24
  86. package/src/utils/common-translations.d.ts +9 -9
  87. package/src/utils/common-translations.js +1 -1
  88. package/src/utils/createmutationobserver.d.ts +14 -14
  89. package/src/utils/createmutationobserver.js +1 -1
  90. package/theme/annotation-inline.css +2 -1
  91. package/theme/annotation.css +2 -1
  92. package/theme/comment.css +2 -1
  93. package/theme/commentinput.css +2 -1
  94. package/theme/commentmarker.css +2 -1
  95. package/theme/commentsarchive.css +2 -1
  96. package/theme/commentthread.css +12 -1
  97. package/theme/icons/add-comment.svg +1 -1
  98. package/theme/icons/comments-archive.svg +1 -1
  99. package/theme/icons/edit-comment.svg +1 -1
  100. package/theme/icons/remove-comment.svg +1 -1
  101. package/theme/sidebar-narrow.css +2 -1
  102. package/theme/sidebar.css +2 -1
@@ -1 +1 @@
1
- !function(o){const e=o["pt-br"]=o["pt-br"]||{};e.dictionary=Object.assign(e.dictionary||{},{Comment:"Comentário","Comment editor":"Editar comentário","Comment was made on an element":"O comentário foi feito em um elemento",COMMENTS_ARCHIVE:"Arquivo de comentários","Delete comment thread?":"Excluir segmento de comentários?","Delete comment?":"Excluir comentário?",Edit:"Editar",EMPTY_COMMENTS_ARCHIVE:"Não há tópicos de comentários arquivados.",EXTERNAL_AVATAR:"Nome do autor mostrado vem de uma fonte externa (adicionado por %0)",EXTERNAL_COMMENT:"Este comentário vem de uma fonte externa.",EXTERNAL_IMPORT_WORD_AVATAR:"Nome do autor mostrado vem de de um arquivo Word importado, importado por %0",EXTERNAL_IMPORT_WORD_COMMENT:"Este comentário vem de um arquivo Word importado.","Marked as resolved":"Marcado como solucionado",NUMBER_OF_COMMENTS:["%0 Comentários","%0 Comentários","%0 Comentários"],PENDING_ACTION_COMMENT_THREAD:"Alteração não salva no segmento de comentários.",Remove:"Remover",Reopen:"Reabrir",Reply:"Responder","Reply to reopen discussion...":"Responder para reabrir a discussão...","Reply...":"Responder...",Resolve:"Solucionar",TOO_LONG_COMMENT_ALERT:"O conteúdo do comentário é muito longo. Seu comentário possui %0 caracteres, mas o limite é de %1 caracteres.","Write a comment...":"Escrever um comentário..."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
1
+ !function(o){const e=o["pt-br"]=o["pt-br"]||{};e.dictionary=Object.assign(e.dictionary||{},{Comment:"Comentar","Comment editor":"Editor de comentários","Comment was made on an element":"O comentário foi feito em um elemento",COMMENTS_ARCHIVE:"Arquivo de comentários","Delete comment thread?":"Excluir segmento de comentários?","Delete comment?":"Excluir comentário?",Edit:"Editar",EMPTY_COMMENTS_ARCHIVE:"Não há tópicos de comentários arquivados.",EXTERNAL_AVATAR:"Nome do autor mostrado vem de uma fonte externa (adicionado por %0)",EXTERNAL_COMMENT:"Este comentário vem de uma fonte externa.",EXTERNAL_IMPORT_WORD_AVATAR:"Nome do autor mostrado vem de de um arquivo Word importado por %0",EXTERNAL_IMPORT_WORD_COMMENT:"Este comentário vem de um arquivo Word importado.","Marked as resolved":"Marcado como solucionado",NUMBER_OF_COMMENTS:["%0 Comentários","%0 Comentários","%0 Comentários"],PENDING_ACTION_COMMENT_THREAD:"Alteração não salva no segmento de comentários.",Remove:"Remover",Reopen:"Reabrir",Reply:"Responder","Reply to reopen discussion...":"Responder para reabrir a discussão...","Reply...":"Responder...",Resolve:"Solucionar",TOO_LONG_COMMENT_ALERT:"O conteúdo do comentário é muito longo. Seu comentário possui %0 caracteres, mas o limite é de %1 caracteres.","Write a comment...":"Escrever um comentário..."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -19,7 +19,7 @@ msgstr ""
19
19
 
20
20
  msgctxt "The label for the comment editor."
21
21
  msgid "Comment editor"
22
- msgstr "Editar comentário"
22
+ msgstr "Editor de comentários"
23
23
 
24
24
  msgctxt "The label for the number of comments."
25
25
  msgid "NUMBER_OF_COMMENTS"
@@ -82,7 +82,7 @@ msgstr "Marcado como solucionado"
82
82
 
83
83
  msgctxt "The tooltip for the comment toolbar button and the button that submits a comment thread."
84
84
  msgid "Comment"
85
- msgstr "Comentário"
85
+ msgstr "Comentar"
86
86
 
87
87
  msgctxt "The label for an alert shown when closing the editor with an unsaved comment change."
88
88
  msgid "PENDING_ACTION_COMMENT_THREAD"
@@ -102,7 +102,7 @@ msgstr "Nome do autor mostrado vem de uma fonte externa (adicionado por %0)"
102
102
 
103
103
  msgctxt "The additional information that displayed author name comes from imported Word file."
104
104
  msgid "EXTERNAL_IMPORT_WORD_AVATAR"
105
- msgstr "Nome do autor mostrado vem de de um arquivo Word importado, importado por %0"
105
+ msgstr "Nome do autor mostrado vem de de um arquivo Word importado por %0"
106
106
 
107
107
  msgctxt "The label for the comments archive dropdown UI."
108
108
  msgid "COMMENTS_ARCHIVE"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "39.0.2",
3
+ "version": "40.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/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "39.0.2",
47
- "ckeditor5-collaboration": "39.0.2",
46
+ "ckeditor5": "40.0.0",
47
+ "ckeditor5-collaboration": "40.0.0",
48
48
  "lodash-es": "4.17.21"
49
49
  },
50
50
  "types": "src/index.d.ts",
@@ -1,90 +1,90 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module comments/annotations/annotation
7
- * @publicApi
8
- */
9
- import { Rect, Collection } from 'ckeditor5/src/utils';
10
- import type { View } from 'ckeditor5/src/ui';
11
- import type AnnotationView from './view/annotationview';
12
- import type { AnnotationOptions } from './annotations';
13
- declare const Annotation_base: {
14
- new (): import("ckeditor5/src/utils").Observable;
15
- prototype: import("ckeditor5/src/utils").Observable;
16
- };
17
- /**
18
- * Represents an annotation.
19
- *
20
- * Annotation is an entity that combines an {@link module:comments/annotations/view/annotationview~AnnotationView}
21
- * and an annotation target (a DOM element or a {@link module:utils/dom/rect~Rect}) to which the annotation is bound.
22
- */
23
- export default class Annotation extends Annotation_base {
24
- /**
25
- * The visibility of the annotation. Annotations that are not visible, are filtered from Annotation UI collections.
26
- *
27
- * @observable
28
- */
29
- isVisible: boolean;
30
- /**
31
- * The annotation view.
32
- */
33
- view: AnnotationView;
34
- /**
35
- * A collection of DOM elements which, when focused, make the annotation active.
36
- *
37
- * By default, this collection only contains the annotation view element.
38
- * It can be extended with custom targets that will be tracked by the annotation focus tracking system.
39
- */
40
- focusableElements: Collection<HTMLElement>;
41
- /**
42
- * Creates an instance of the {@link module:comments/annotations/annotation~Annotation}.
43
- */
44
- constructor({ view, target, type, isVisible }: AnnotationOptions);
45
- /**
46
- * The type of the annotation.
47
- */
48
- get type(): string;
49
- /**
50
- * The annotation inner view.
51
- *
52
- * It is the view that is wrapped by the annotation view.*
53
- */
54
- get innerView(): View;
55
- /**
56
- * The annotation target to which the annotation view should be pinned.
57
- *
58
- * It can be an array of DOM elements or {@link module:utils/dom/rect~Rect a rect instance} or `null`.
59
- */
60
- get target(): Rect | Array<HTMLElement> | null;
61
- /**
62
- * The position and dimensions of the annotation target to which the annotation is bound.
63
- */
64
- get targetRect(): Rect | null;
65
- /**
66
- * The state of the annotation.
67
- */
68
- get isActive(): boolean;
69
- set isActive(value: boolean);
70
- /**
71
- * Updates the target rect in the annotation view instance.
72
- */
73
- updateTargetRect(): void;
74
- /**
75
- * Clears all event listeners and internal collections.
76
- */
77
- destroy(): void;
78
- /**
79
- * Refreshes the visibility of the annotation based on the visibility of the annotation target.
80
- *
81
- * It sets the {@link #isVisible} property when the target is not attached to DOM or if the target or its descendant has
82
- * set the `display` attribute to `none`.
83
- *
84
- * This method only updates an annotation if the annotation target is an HTML Element.
85
- */
86
- refreshVisibility(): void;
87
- }
88
- type Target = Rect | HTMLElement | null;
89
- export type AnnotationTarget = Target | (() => Target | Array<Target>);
90
- export {};
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/annotations/annotation
7
+ * @publicApi
8
+ */
9
+ import { Rect, Collection } from 'ckeditor5/src/utils';
10
+ import type { View } from 'ckeditor5/src/ui';
11
+ import type AnnotationView from './view/annotationview';
12
+ import type { AnnotationOptions } from './annotations';
13
+ declare const Annotation_base: {
14
+ new (): import("ckeditor5/src/utils").Observable;
15
+ prototype: import("ckeditor5/src/utils").Observable;
16
+ };
17
+ /**
18
+ * Represents an annotation.
19
+ *
20
+ * Annotation is an entity that combines an {@link module:comments/annotations/view/annotationview~AnnotationView}
21
+ * and an annotation target (a DOM element or a {@link module:utils/dom/rect~Rect}) to which the annotation is bound.
22
+ */
23
+ export default class Annotation extends Annotation_base {
24
+ /**
25
+ * The visibility of the annotation. Annotations that are not visible, are filtered from Annotation UI collections.
26
+ *
27
+ * @observable
28
+ */
29
+ isVisible: boolean;
30
+ /**
31
+ * The annotation view.
32
+ */
33
+ view: AnnotationView;
34
+ /**
35
+ * A collection of DOM elements which, when focused, make the annotation active.
36
+ *
37
+ * By default, this collection only contains the annotation view element.
38
+ * It can be extended with custom targets that will be tracked by the annotation focus tracking system.
39
+ */
40
+ focusableElements: Collection<HTMLElement>;
41
+ /**
42
+ * Creates an instance of the {@link module:comments/annotations/annotation~Annotation}.
43
+ */
44
+ constructor({ view, target, type, isVisible }: AnnotationOptions);
45
+ /**
46
+ * The type of the annotation.
47
+ */
48
+ get type(): string;
49
+ /**
50
+ * The annotation inner view.
51
+ *
52
+ * It is the view that is wrapped by the annotation view.*
53
+ */
54
+ get innerView(): View;
55
+ /**
56
+ * The annotation target to which the annotation view should be pinned.
57
+ *
58
+ * It can be an array of DOM elements or {@link module:utils/dom/rect~Rect a rect instance} or `null`.
59
+ */
60
+ get target(): Rect | Array<HTMLElement> | null;
61
+ /**
62
+ * The position and dimensions of the annotation target to which the annotation is bound.
63
+ */
64
+ get targetRect(): Rect | null;
65
+ /**
66
+ * The state of the annotation.
67
+ */
68
+ get isActive(): boolean;
69
+ set isActive(value: boolean);
70
+ /**
71
+ * Updates the target rect in the annotation view instance.
72
+ */
73
+ updateTargetRect(): void;
74
+ /**
75
+ * Clears all event listeners and internal collections.
76
+ */
77
+ destroy(): void;
78
+ /**
79
+ * Refreshes the visibility of the annotation based on the visibility of the annotation target.
80
+ *
81
+ * It sets the {@link #isVisible} property when the target is not attached to DOM or if the target or its descendant has
82
+ * set the `display` attribute to `none`.
83
+ *
84
+ * This method only updates an annotation if the annotation target is an HTML Element.
85
+ */
86
+ refreshVisibility(): void;
87
+ }
88
+ type Target = Rect | HTMLElement | null;
89
+ export type AnnotationTarget = Target | (() => Target | Array<Target>);
90
+ export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1dbc=['add','nodeType','isActive','_id','isArray','focusableElements','item','_assertCorrectTarget','innerView','remove','view','getClientRects','updateTargetRect','function','destroy','isVisible','focusTracker','_getNormalizedTarget','set','targetRect','stopListening','_type','annotation-invalid-target','filter','mainView','element','clear','_target'];(function(_0x3c0d50,_0x1dbcc6){const _0x4725d3=function(_0x11b84b){while(--_0x11b84b){_0x3c0d50['push'](_0x3c0d50['shift']());}};_0x4725d3(++_0x1dbcc6);}(_0x1dbc,0x160));const _0x4725=function(_0x3c0d50,_0x1dbcc6){_0x3c0d50=_0x3c0d50-0x0;let _0x4725d3=_0x1dbc[_0x3c0d50];return _0x4725d3;};import{CKEditorError as _0x1db29c,Rect as _0xcb6314,Collection as _0x4e6fc0,ObservableMixin as _0x52a241}from'ckeditor5/src/utils';export default class d extends _0x52a241(){constructor({view:_0x46791d,target:_0x7e4034,type:_0x164624,isVisible:_0x5e41ba=!0x0}){super(),this['view']=_0x46791d,this['view'][_0x4725('0x9')]||this[_0x4725('0x16')]['render'](),this[_0x4725('0x5')]=_0x164624,this[_0x4725('0xb')]=_0x7e4034,d[_0x4725('0x13')](this[_0x4725('0x1')]()),this[_0x4725('0x11')]=new _0x4e6fc0([this[_0x4725('0x16')]['element']],{'idProperty':_0x4725('0xf')}),this[_0x4725('0x11')]['on'](_0x4725('0xc'),(_0x3d9ef7,_0x146bbb)=>{this[_0x4725('0x16')][_0x4725('0x0')][_0x4725('0xc')](_0x146bbb);}),this[_0x4725('0x11')]['on'](_0x4725('0x15'),(_0x2e1e74,_0x5db11c)=>{this['view'][_0x4725('0x0')][_0x4725('0x15')](_0x5db11c);}),this[_0x4725('0x2')](_0x4725('0x1b'),_0x5e41ba);}get['type'](){return'function'==typeof this['_type']?this[_0x4725('0x5')]():this[_0x4725('0x5')];}get[_0x4725('0x14')](){return this[_0x4725('0x16')]['mainView'];}get['target'](){const _0x4b3a11=this[_0x4725('0x1')]();return d[_0x4725('0x13')](_0x4b3a11),_0x4b3a11;}get['targetRect'](){const _0x944a2c=this['target'];if(null===_0x944a2c)return null;if(_0x944a2c instanceof _0xcb6314)return _0x944a2c;const _0x17ffbc=_0x944a2c[_0x4725('0x7')](_0x40ecc1=>function(_0x110d6a){const _0x9f8b08=_0x110d6a['offsetParent'];if(_0x9f8b08)return!0x0;const _0x342091=_0x110d6a[_0x4725('0x17')]()[_0x4725('0x12')](0x0);return!!_0x342091;}(_0x40ecc1));return 0x0===_0x17ffbc['length']?null:new _0xcb6314(_0x17ffbc[0x0][_0x4725('0x17')]()[_0x4725('0x12')](0x0));}get[_0x4725('0xe')](){return this[_0x4725('0x16')][_0x4725('0xe')];}set['isActive'](_0x886171){this['view']['isActive']=_0x886171,this[_0x4725('0x16')][_0x4725('0x8')]['isActive']=_0x886171;}[_0x4725('0x18')](){this['view'][_0x4725('0x3')]=this[_0x4725('0x3')];}[_0x4725('0x1a')](){this[_0x4725('0x11')][_0x4725('0x4')](),this[_0x4725('0x11')][_0x4725('0xa')](),this['stopListening']();}['refreshVisibility'](){this[_0x4725('0x1b')]=!!this[_0x4725('0x3')];}static[_0x4725('0x13')](_0x31a8b0){if(!(null===_0x31a8b0||_0x31a8b0 instanceof _0xcb6314||Array[_0x4725('0x10')](_0x31a8b0)&&_0x31a8b0['every'](_0x450d34=>y(_0x450d34))))throw new _0x1db29c(_0x4725('0x6'),null,{'target':_0x31a8b0});}[_0x4725('0x1')](){const _0x561415=_0x4725('0x19')==typeof this[_0x4725('0xb')]?this[_0x4725('0xb')]():this[_0x4725('0xb')];return y(_0x561415)?[_0x561415]:_0x561415;}}function y(_0x2bbfe9){return null!==_0x2bbfe9&&'object'==typeof _0x2bbfe9&&_0x4725('0xd')in _0x2bbfe9&&0x1===_0x2bbfe9[_0x4725('0xd')];}
23
+ const _0x5253=['_id','focusTracker','isArray','mainView','innerView','type','nodeType','remove','updateTargetRect','targetRect','filter','set','offsetParent','_type','stopListening','_target','focusableElements','object','annotation-invalid-target','destroy','length','target','view','clear','isActive','getClientRects','isVisible','item','add','render','_getNormalizedTarget','_assertCorrectTarget','function'];(function(_0x2d4b0c,_0x52532d){const _0x16ec90=function(_0x162428){while(--_0x162428){_0x2d4b0c['push'](_0x2d4b0c['shift']());}};_0x16ec90(++_0x52532d);}(_0x5253,0x122));const _0x16ec=function(_0x2d4b0c,_0x52532d){_0x2d4b0c=_0x2d4b0c-0x0;let _0x16ec90=_0x5253[_0x2d4b0c];return _0x16ec90;};import{CKEditorError as _0x1564fe,Rect as _0x3ae695,Collection as _0x248cdc,ObservableMixin as _0x209af1}from'ckeditor5/src/utils';export default class d extends _0x209af1(){constructor({view:_0x230d3c,target:_0x315fc2,type:_0x376ebb,isVisible:_0x2afc24=!0x0}){super(),this[_0x16ec('0x1d')]=_0x230d3c,this[_0x16ec('0x1d')]['element']||this['view'][_0x16ec('0x3')](),this[_0x16ec('0x14')]=_0x376ebb,this[_0x16ec('0x16')]=_0x315fc2,d[_0x16ec('0x5')](this[_0x16ec('0x4')]()),this[_0x16ec('0x17')]=new _0x248cdc([this[_0x16ec('0x1d')]['element']],{'idProperty':_0x16ec('0x7')}),this[_0x16ec('0x17')]['on'](_0x16ec('0x2'),(_0x51cdbf,_0x1696bf)=>{this[_0x16ec('0x1d')]['focusTracker'][_0x16ec('0x2')](_0x1696bf);}),this[_0x16ec('0x17')]['on'](_0x16ec('0xe'),(_0x5759db,_0x421c5b)=>{this[_0x16ec('0x1d')][_0x16ec('0x8')][_0x16ec('0xe')](_0x421c5b);}),this[_0x16ec('0x12')](_0x16ec('0x0'),_0x2afc24);}get[_0x16ec('0xc')](){return _0x16ec('0x6')==typeof this[_0x16ec('0x14')]?this[_0x16ec('0x14')]():this[_0x16ec('0x14')];}get[_0x16ec('0xb')](){return this[_0x16ec('0x1d')][_0x16ec('0xa')];}get['target'](){const _0x4a1acf=this[_0x16ec('0x4')]();return d['_assertCorrectTarget'](_0x4a1acf),_0x4a1acf;}get[_0x16ec('0x10')](){const _0x135c2f=this[_0x16ec('0x1c')];if(null===_0x135c2f)return null;if(_0x135c2f instanceof _0x3ae695)return _0x135c2f;const _0x2faaa6=_0x135c2f[_0x16ec('0x11')](_0x30810d=>function(_0x3e85f4){const _0x38b247=_0x3e85f4[_0x16ec('0x13')];if(_0x38b247)return!0x0;const _0x5c70be=_0x3e85f4['getClientRects']()[_0x16ec('0x1')](0x0);return!!_0x5c70be;}(_0x30810d));return 0x0===_0x2faaa6[_0x16ec('0x1b')]?null:new _0x3ae695(_0x2faaa6[0x0][_0x16ec('0x20')]()['item'](0x0));}get[_0x16ec('0x1f')](){return this[_0x16ec('0x1d')]['isActive'];}set['isActive'](_0x50505d){this[_0x16ec('0x1d')][_0x16ec('0x1f')]=_0x50505d,this[_0x16ec('0x1d')][_0x16ec('0xa')]['isActive']=_0x50505d;}[_0x16ec('0xf')](){this[_0x16ec('0x1d')][_0x16ec('0x10')]=this[_0x16ec('0x10')];}[_0x16ec('0x1a')](){this['focusableElements'][_0x16ec('0x15')](),this['focusableElements'][_0x16ec('0x1e')](),this[_0x16ec('0x15')]();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static[_0x16ec('0x5')](_0x5890bf){if(!(null===_0x5890bf||_0x5890bf instanceof _0x3ae695||Array[_0x16ec('0x9')](_0x5890bf)&&_0x5890bf['every'](_0x5cb008=>y(_0x5cb008))))throw new _0x1564fe(_0x16ec('0x19'),null,{'target':_0x5890bf});}['_getNormalizedTarget'](){const _0x37ca12=_0x16ec('0x6')==typeof this[_0x16ec('0x16')]?this[_0x16ec('0x16')]():this[_0x16ec('0x16')];return y(_0x37ca12)?[_0x37ca12]:_0x37ca12;}}function y(_0x56c62c){return null!==_0x56c62c&&_0x16ec('0x18')==typeof _0x56c62c&&_0x16ec('0xd')in _0x56c62c&&0x1===_0x56c62c['nodeType'];}
@@ -1,98 +1,98 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module comments/annotations/annotationcollection
7
- * @publicApi
8
- */
9
- import { Collection } from 'ckeditor5/src/utils';
10
- import type { View } from 'ckeditor5/src/ui';
11
- import type Annotation from './annotation';
12
- /**
13
- * A collection of {@link module:comments/annotations/annotation~Annotation annotations}.
14
- *
15
- * It implements methods for managing annotations and creates a focus tracker for them to make it easier to manage
16
- * the focus for all annotations.
17
- *
18
- * `AnnotationCollection` fires {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:focus} when an annotation
19
- * becomes focused and {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:blur} when all annotations
20
- * lose focus.
21
- */
22
- export default class AnnotationCollection extends Collection<Annotation> {
23
- /**
24
- * @param annotations Initial annotations.
25
- */
26
- constructor(annotations?: Iterable<Annotation>);
27
- /**
28
- * Equals to `true` when one of the annotation in the collection is focused.
29
- */
30
- get isFocused(): boolean;
31
- /**
32
- * Adds an annotation to the collection.
33
- */
34
- add(annotation: Annotation): this;
35
- /**
36
- * Removes the annotation from the collection.
37
- */
38
- remove(annotation: Annotation): Annotation;
39
- /**
40
- * Gets the annotation for a given annotation view's inner view.
41
- */
42
- getByInnerView(innerView: View): Annotation | undefined;
43
- /**
44
- * Gets the annotation for a given annotation view.
45
- */
46
- getByView(view: View): Annotation | undefined;
47
- /**
48
- * Destroys all bindings and clears the collection.
49
- */
50
- destroy(): void;
51
- /**
52
- * Refreshes the positioning of all annotations and sorts them topmost and leftmost.
53
- */
54
- refreshPositioning(): void;
55
- }
56
- /**
57
- * Fired when an annotation becomes active.
58
- *
59
- * @eventName ~AnnotationCollection#focus
60
- * @param annotation An annotation that was focused.
61
- */
62
- export type AnnotationFocusEvent = {
63
- name: 'focus';
64
- args: [annotation: Annotation];
65
- };
66
- /**
67
- * Fired when all annotations become blurred.
68
- *
69
- * @eventName ~AnnotationCollection#blur
70
- */
71
- export type AnnotationBlurEvent = {
72
- name: 'blur';
73
- args: [];
74
- };
75
- /**
76
- * A helper function that binds two {@link module:comments/annotations/annotationcollection~AnnotationCollection AnnotationCollection}s
77
- * and allows filtering items based on the passed callback.
78
- *
79
- * Since {@link module:comments/annotations/annotationcollection~AnnotationCollection#refreshPositioning}
80
- * sorts the annotations by removing and inserting items, the binding implemented by the `bindTo()` method is lost. This is why
81
- * this helper needs to be used.
82
- *
83
- * This helper is used by the annotations UIs to filter which annotations from the
84
- * {@link module:comments/annotations/annotations~Annotations#collection main annotation collection} should be handled by
85
- * a given annotations UI.
86
- *
87
- * @param `options.source` The source collection
88
- * from which the annotations will be taken.
89
- * @param `options.target` The target collection
90
- * that will be synced to the source collection.
91
- * @param options.filter Filtering function that gets an annotation and should return `true` if the annotation should be
92
- * copied to the `target` collection.
93
- */
94
- export declare function bindAnnotationCollections({ source, target, filter }: {
95
- source: AnnotationCollection;
96
- target: AnnotationCollection;
97
- filter: (annotation: Annotation) => boolean;
98
- }): void;
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/annotations/annotationcollection
7
+ * @publicApi
8
+ */
9
+ import { Collection } from 'ckeditor5/src/utils';
10
+ import type { View } from 'ckeditor5/src/ui';
11
+ import type Annotation from './annotation';
12
+ /**
13
+ * A collection of {@link module:comments/annotations/annotation~Annotation annotations}.
14
+ *
15
+ * It implements methods for managing annotations and creates a focus tracker for them to make it easier to manage
16
+ * the focus for all annotations.
17
+ *
18
+ * `AnnotationCollection` fires {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:focus} when an annotation
19
+ * becomes focused and {@link module:comments/annotations/annotationcollection~AnnotationCollection#event:blur} when all annotations
20
+ * lose focus.
21
+ */
22
+ export default class AnnotationCollection extends Collection<Annotation> {
23
+ /**
24
+ * @param annotations Initial annotations.
25
+ */
26
+ constructor(annotations?: Iterable<Annotation>);
27
+ /**
28
+ * Equals to `true` when one of the annotation in the collection is focused.
29
+ */
30
+ get isFocused(): boolean;
31
+ /**
32
+ * Adds an annotation to the collection.
33
+ */
34
+ add(annotation: Annotation): this;
35
+ /**
36
+ * Removes the annotation from the collection.
37
+ */
38
+ remove(annotation: Annotation): Annotation;
39
+ /**
40
+ * Gets the annotation for a given annotation view's inner view.
41
+ */
42
+ getByInnerView(innerView: View): Annotation | undefined;
43
+ /**
44
+ * Gets the annotation for a given annotation view.
45
+ */
46
+ getByView(view: View): Annotation | undefined;
47
+ /**
48
+ * Destroys all bindings and clears the collection.
49
+ */
50
+ destroy(): void;
51
+ /**
52
+ * Refreshes the positioning of all annotations and sorts them topmost and leftmost.
53
+ */
54
+ refreshPositioning(): void;
55
+ }
56
+ /**
57
+ * Fired when an annotation becomes active.
58
+ *
59
+ * @eventName ~AnnotationCollection#focus
60
+ * @param annotation An annotation that was focused.
61
+ */
62
+ export type AnnotationFocusEvent = {
63
+ name: 'focus';
64
+ args: [annotation: Annotation];
65
+ };
66
+ /**
67
+ * Fired when all annotations become blurred.
68
+ *
69
+ * @eventName ~AnnotationCollection#blur
70
+ */
71
+ export type AnnotationBlurEvent = {
72
+ name: 'blur';
73
+ args: [];
74
+ };
75
+ /**
76
+ * A helper function that binds two {@link module:comments/annotations/annotationcollection~AnnotationCollection AnnotationCollection}s
77
+ * and allows filtering items based on the passed callback.
78
+ *
79
+ * Since {@link module:comments/annotations/annotationcollection~AnnotationCollection#refreshPositioning}
80
+ * sorts the annotations by removing and inserting items, the binding implemented by the `bindTo()` method is lost. This is why
81
+ * this helper needs to be used.
82
+ *
83
+ * This helper is used by the annotations UIs to filter which annotations from the
84
+ * {@link module:comments/annotations/annotations~Annotations#collection main annotation collection} should be handled by
85
+ * a given annotations UI.
86
+ *
87
+ * @param `options.source` The source collection
88
+ * from which the annotations will be taken.
89
+ * @param `options.target` The target collection
90
+ * that will be synced to the source collection.
91
+ * @param options.filter Filtering function that gets an annotation and should return `true` if the annotation should be
92
+ * copied to the `target` collection.
93
+ */
94
+ export declare function bindAnnotationCollections({ source, target, filter }: {
95
+ source: AnnotationCollection;
96
+ target: AnnotationCollection;
97
+ filter: (annotation: Annotation) => boolean;
98
+ }): void;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b25=['stopListening','top','getIndex','change:isFocused','blur','updateTargetRect','refreshPositioning','_focusTracker','targetRect','innerView','annotationcollection-duplicated-item','length','getByView','add','_getOrderInContent','clear','view','has','remove','left','_sort','set','get','focusableElements','focusTracker','destroy','from','isFocused','annotationcollection-not-existing-item','_viewToAnnotation','getByInnerView','listenTo','_innerViewToAnnotation','delete','fire'];(function(_0x4cbf30,_0x3b25c0){const _0x2f0500=function(_0x384258){while(--_0x384258){_0x4cbf30['push'](_0x4cbf30['shift']());}};_0x2f0500(++_0x3b25c0);}(_0x3b25,0x78));const _0x2f05=function(_0x4cbf30,_0x3b25c0){_0x4cbf30=_0x4cbf30-0x0;let _0x2f0500=_0x3b25[_0x4cbf30];return _0x2f0500;};import{CKEditorError as _0x19bf33,Collection as _0x4c5e97,FocusTracker as _0x354511}from'ckeditor5/src/utils';export default class x extends _0x4c5e97{constructor(_0x51a849=[]){super(),this[_0x2f05('0x11')]=new Map(),this[_0x2f05('0xe')]=new Map(),this[_0x2f05('0x1b')]=new _0x354511(),this[_0x2f05('0x1b')]['on'](_0x2f05('0x17'),(_0x17dbc0,_0x69ef4a,_0x1dcd39)=>{_0x1dcd39||this[_0x2f05('0x13')](_0x2f05('0x18'));});for(const _0x1764ad of _0x51a849)this[_0x2f05('0x21')](_0x1764ad);}get[_0x2f05('0xc')](){return this[_0x2f05('0x1b')][_0x2f05('0xc')];}[_0x2f05('0x21')](_0x4e7e26){if(this[_0x2f05('0x2')](_0x4e7e26))throw new _0x19bf33(_0x2f05('0x1e'),null);this[_0x2f05('0x11')][_0x2f05('0x6')](_0x4e7e26['innerView'],_0x4e7e26),this[_0x2f05('0xe')][_0x2f05('0x6')](_0x4e7e26[_0x2f05('0x1')],_0x4e7e26);for(const _0x59a28c of _0x4e7e26[_0x2f05('0x8')])this[_0x2f05('0x1b')][_0x2f05('0x21')](_0x59a28c);this[_0x2f05('0x10')](_0x4e7e26['focusableElements'],'add',(_0x17d263,_0x1d5904)=>{this[_0x2f05('0x1b')][_0x2f05('0x21')](_0x1d5904);}),this[_0x2f05('0x10')](_0x4e7e26[_0x2f05('0x8')],_0x2f05('0x3'),(_0x197bb1,_0x4a9eea)=>{this[_0x2f05('0x1b')]['remove'](_0x4a9eea);}),this[_0x2f05('0x10')](_0x4e7e26[_0x2f05('0x1')]['focusTracker'],_0x2f05('0x17'),(_0x461e8d,_0x5c1e70,_0x4b0811)=>{_0x4b0811&&this[_0x2f05('0x13')]('focus',_0x4e7e26);}),_0x4e7e26[_0x2f05('0x19')]();const _0x1d87cc=this[_0x2f05('0x22')](_0x4e7e26[_0x2f05('0x1')][_0x2f05('0x1c')]);return super[_0x2f05('0x21')](_0x4e7e26,_0x1d87cc);}[_0x2f05('0x3')](_0x3d3fc7){if(!this[_0x2f05('0x2')](_0x3d3fc7))throw new _0x19bf33(_0x2f05('0xd'),null);this[_0x2f05('0x14')](_0x3d3fc7[_0x2f05('0x1')][_0x2f05('0x9')]),this[_0x2f05('0x14')](_0x3d3fc7[_0x2f05('0x8')]);for(const _0x5eaeb6 of _0x3d3fc7[_0x2f05('0x8')])this[_0x2f05('0x1b')]['remove'](_0x5eaeb6);return this['_viewToAnnotation'][_0x2f05('0x12')](_0x3d3fc7[_0x2f05('0x1')]),this[_0x2f05('0x11')]['delete'](_0x3d3fc7[_0x2f05('0x1d')]),super[_0x2f05('0x3')](_0x3d3fc7);}[_0x2f05('0xf')](_0x1a0a87){return this[_0x2f05('0x11')][_0x2f05('0x7')](_0x1a0a87);}[_0x2f05('0x20')](_0x4a083b){return this[_0x2f05('0xe')][_0x2f05('0x7')](_0x4a083b);}['destroy'](){super[_0x2f05('0x0')](),this['stopListening'](),this[_0x2f05('0x11')][_0x2f05('0x0')](),this[_0x2f05('0xe')][_0x2f05('0x0')](),this['_focusTracker'][_0x2f05('0xa')]();}[_0x2f05('0x1a')](){for(const _0x44cfdc of this)_0x44cfdc['updateTargetRect']();this[_0x2f05('0x5')]();}[_0x2f05('0x5')](){const _0x38cd01=Array[_0x2f05('0xb')](this)['sort']((_0x566c16,_0x4dade2)=>v(_0x566c16['view'][_0x2f05('0x1c')],_0x4dade2[_0x2f05('0x1')][_0x2f05('0x1c')]));for(let _0x8bdbd3=_0x38cd01[_0x2f05('0x1f')]-0x1;_0x8bdbd3>0x0;_0x8bdbd3--){const _0x26354d=_0x38cd01[_0x8bdbd3];_0x8bdbd3!==this[_0x2f05('0x16')](_0x26354d)&&(this[_0x2f05('0x3')](_0x26354d),this['add'](_0x26354d));}}['_getOrderInContent'](_0x405fff){let _0x968a3c=0x0;if(!_0x405fff)return this[_0x2f05('0x1f')];for(const _0x5bc0a3 of this){const _0x568a71=_0x5bc0a3[_0x2f05('0x1')][_0x2f05('0x1c')];if(_0x568a71){if(v(_0x405fff,_0x568a71)<0x0)return _0x968a3c;_0x968a3c++;}}return _0x968a3c;}}export function bindAnnotationCollections({source:_0x24d318,target:_0x432179,filter:_0x2eda4e}){for(const _0x2e78c5 of _0x24d318)_0x2eda4e(_0x2e78c5)&&_0x432179['add'](_0x2e78c5);_0x432179[_0x2f05('0x10')](_0x24d318,_0x2f05('0x21'),(_0x3ac4ae,_0x4bc8d6)=>{_0x2eda4e(_0x4bc8d6)&&_0x432179['add'](_0x4bc8d6);}),_0x432179[_0x2f05('0x10')](_0x24d318,_0x2f05('0x3'),(_0x160410,_0x2c76c8)=>{_0x432179[_0x2f05('0x2')](_0x2c76c8)&&_0x432179[_0x2f05('0x3')](_0x2c76c8);});}function v(_0x21679f,_0x108c4c){if(null===_0x21679f&&null===_0x108c4c)return 0x0;if(null===_0x21679f)return-0x1;if(null===_0x108c4c)return 0x1;const _0x4e3291=_0x21679f[_0x2f05('0x15')]-_0x108c4c[_0x2f05('0x15')];return 0x0==_0x4e3291?_0x21679f[_0x2f05('0x4')]-_0x108c4c[_0x2f05('0x4')]:_0x4e3291;}
23
+ const _0x300a=['clear','blur','_viewToAnnotation','refreshPositioning','focus','targetRect','innerView','_getOrderInContent','_sort','sort','stopListening','getIndex','isFocused','annotationcollection-duplicated-item','get','top','destroy','_focusTracker','view','set','focusTracker','from','getByView','annotationcollection-not-existing-item','remove','updateTargetRect','delete','focusableElements','_innerViewToAnnotation','add','change:isFocused','listenTo','fire','length','has','left'];(function(_0x47293b,_0x300ad2){const _0x2aa787=function(_0x4d1f77){while(--_0x4d1f77){_0x47293b['push'](_0x47293b['shift']());}};_0x2aa787(++_0x300ad2);}(_0x300a,0x18f));const _0x2aa7=function(_0x47293b,_0x300ad2){_0x47293b=_0x47293b-0x0;let _0x2aa787=_0x300a[_0x47293b];return _0x2aa787;};import{CKEditorError as _0xe8b752,Collection as _0x5a8df0,FocusTracker as _0xbd9cbf}from'ckeditor5/src/utils';export default class x extends _0x5a8df0{constructor(_0x5563ff=[]){super(),this[_0x2aa7('0x19')]=new Map(),this[_0x2aa7('0x23')]=new Map(),this[_0x2aa7('0xe')]=new _0xbd9cbf(),this[_0x2aa7('0xe')]['on'](_0x2aa7('0x1b'),(_0x5cab3b,_0x2760fe,_0x49a8a7)=>{_0x49a8a7||this['fire'](_0x2aa7('0x22'));});for(const _0x4d0933 of _0x5563ff)this[_0x2aa7('0x1a')](_0x4d0933);}get[_0x2aa7('0x9')](){return this[_0x2aa7('0xe')]['isFocused'];}[_0x2aa7('0x1a')](_0x565a90){if(this[_0x2aa7('0x1f')](_0x565a90))throw new _0xe8b752(_0x2aa7('0xa'),null);this['_innerViewToAnnotation'][_0x2aa7('0x10')](_0x565a90[_0x2aa7('0x3')],_0x565a90),this[_0x2aa7('0x23')]['set'](_0x565a90[_0x2aa7('0xf')],_0x565a90);for(const _0x2ebe89 of _0x565a90[_0x2aa7('0x18')])this[_0x2aa7('0xe')][_0x2aa7('0x1a')](_0x2ebe89);this[_0x2aa7('0x1c')](_0x565a90[_0x2aa7('0x18')],_0x2aa7('0x1a'),(_0x5659fc,_0x5c2842)=>{this[_0x2aa7('0xe')][_0x2aa7('0x1a')](_0x5c2842);}),this[_0x2aa7('0x1c')](_0x565a90[_0x2aa7('0x18')],_0x2aa7('0x15'),(_0x280d93,_0x4ffbf8)=>{this[_0x2aa7('0xe')][_0x2aa7('0x15')](_0x4ffbf8);}),this['listenTo'](_0x565a90[_0x2aa7('0xf')][_0x2aa7('0x11')],_0x2aa7('0x1b'),(_0x186994,_0x47f681,_0x493958)=>{_0x493958&&this[_0x2aa7('0x1d')](_0x2aa7('0x1'),_0x565a90);}),_0x565a90[_0x2aa7('0x16')]();const _0x715f5e=this[_0x2aa7('0x4')](_0x565a90[_0x2aa7('0xf')][_0x2aa7('0x2')]);return super[_0x2aa7('0x1a')](_0x565a90,_0x715f5e);}[_0x2aa7('0x15')](_0x3958ac){if(!this[_0x2aa7('0x1f')](_0x3958ac))throw new _0xe8b752(_0x2aa7('0x14'),null);this[_0x2aa7('0x7')](_0x3958ac['view'][_0x2aa7('0x11')]),this[_0x2aa7('0x7')](_0x3958ac[_0x2aa7('0x18')]);for(const _0x1655ad of _0x3958ac[_0x2aa7('0x18')])this[_0x2aa7('0xe')][_0x2aa7('0x15')](_0x1655ad);return this[_0x2aa7('0x23')][_0x2aa7('0x17')](_0x3958ac['view']),this[_0x2aa7('0x19')][_0x2aa7('0x17')](_0x3958ac[_0x2aa7('0x3')]),super[_0x2aa7('0x15')](_0x3958ac);}['getByInnerView'](_0x1bf81a){return this[_0x2aa7('0x19')]['get'](_0x1bf81a);}[_0x2aa7('0x13')](_0x1b432e){return this[_0x2aa7('0x23')][_0x2aa7('0xb')](_0x1b432e);}['destroy'](){super[_0x2aa7('0x21')](),this['stopListening'](),this['_innerViewToAnnotation'][_0x2aa7('0x21')](),this['_viewToAnnotation'][_0x2aa7('0x21')](),this[_0x2aa7('0xe')][_0x2aa7('0xd')]();}[_0x2aa7('0x0')](){for(const _0x4f4c64 of this)_0x4f4c64[_0x2aa7('0x16')]();this['_sort']();}[_0x2aa7('0x5')](){const _0x19cdf2=Array[_0x2aa7('0x12')](this)[_0x2aa7('0x6')]((_0x44a2fe,_0x144263)=>v(_0x44a2fe['view'][_0x2aa7('0x2')],_0x144263[_0x2aa7('0xf')]['targetRect']));for(let _0x5ad0db=_0x19cdf2[_0x2aa7('0x1e')]-0x1;_0x5ad0db>0x0;_0x5ad0db--){const _0x4c4cc4=_0x19cdf2[_0x5ad0db];_0x5ad0db!==this[_0x2aa7('0x8')](_0x4c4cc4)&&(this[_0x2aa7('0x15')](_0x4c4cc4),this['add'](_0x4c4cc4));}}[_0x2aa7('0x4')](_0x1baa72){let _0xcbcef6=0x0;if(!_0x1baa72)return this[_0x2aa7('0x1e')];for(const _0x3ae349 of this){const _0x4f43ba=_0x3ae349['view'][_0x2aa7('0x2')];if(_0x4f43ba){if(v(_0x1baa72,_0x4f43ba)<0x0)return _0xcbcef6;_0xcbcef6++;}}return _0xcbcef6;}}export function bindAnnotationCollections({source:_0x458f95,target:_0xc6af4c,filter:_0x2a19b5}){for(const _0x2782fc of _0x458f95)_0x2a19b5(_0x2782fc)&&_0xc6af4c[_0x2aa7('0x1a')](_0x2782fc);_0xc6af4c[_0x2aa7('0x1c')](_0x458f95,'add',(_0x6db8dc,_0x2c7e9b)=>{_0x2a19b5(_0x2c7e9b)&&_0xc6af4c['add'](_0x2c7e9b);}),_0xc6af4c['listenTo'](_0x458f95,_0x2aa7('0x15'),(_0x598ab2,_0x54a55f)=>{_0xc6af4c['has'](_0x54a55f)&&_0xc6af4c[_0x2aa7('0x15')](_0x54a55f);});}function v(_0x1cd544,_0x2d6eb5){if(null===_0x1cd544&&null===_0x2d6eb5)return 0x0;if(null===_0x1cd544)return-0x1;if(null===_0x2d6eb5)return 0x1;const _0x2d5c9b=_0x1cd544[_0x2aa7('0xc')]-_0x2d6eb5[_0x2aa7('0xc')];return 0x0==_0x2d5c9b?_0x1cd544[_0x2aa7('0x20')]-_0x2d6eb5['left']:_0x2d5c9b;}