@ckeditor/ckeditor5-collaboration-core 40.1.0 → 41.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 (106) hide show
  1. package/CHANGELOG.md +17 -17
  2. package/LICENSE.md +1 -1
  3. package/README.md +1 -1
  4. package/lang/translations/af.po +1 -1
  5. package/lang/translations/ar.po +1 -1
  6. package/lang/translations/az.po +1 -1
  7. package/lang/translations/bg.po +1 -1
  8. package/lang/translations/bn.po +1 -1
  9. package/lang/translations/bs.po +1 -1
  10. package/lang/translations/ca.po +1 -1
  11. package/lang/translations/cs.po +1 -1
  12. package/lang/translations/da.po +1 -1
  13. package/lang/translations/de-ch.po +1 -1
  14. package/lang/translations/de.po +1 -1
  15. package/lang/translations/el.po +1 -1
  16. package/lang/translations/en-au.po +1 -1
  17. package/lang/translations/en.po +1 -1
  18. package/lang/translations/es-co.po +1 -1
  19. package/lang/translations/es.po +1 -1
  20. package/lang/translations/et.po +1 -1
  21. package/lang/translations/fa.po +1 -1
  22. package/lang/translations/fi.po +1 -1
  23. package/lang/translations/fr.po +1 -1
  24. package/lang/translations/gl.po +1 -1
  25. package/lang/translations/he.po +1 -1
  26. package/lang/translations/hi.po +1 -1
  27. package/lang/translations/hr.po +1 -1
  28. package/lang/translations/hu.po +1 -1
  29. package/lang/translations/id.po +1 -1
  30. package/lang/translations/it.po +1 -1
  31. package/lang/translations/ja.po +1 -1
  32. package/lang/translations/jv.po +1 -1
  33. package/lang/translations/ko.po +1 -1
  34. package/lang/translations/lt.po +1 -1
  35. package/lang/translations/lv.po +1 -1
  36. package/lang/translations/ms.po +1 -1
  37. package/lang/translations/nl.po +1 -1
  38. package/lang/translations/no.po +1 -1
  39. package/lang/translations/pl.po +1 -1
  40. package/lang/translations/pt-br.po +1 -1
  41. package/lang/translations/pt.po +1 -1
  42. package/lang/translations/ro.po +1 -1
  43. package/lang/translations/ru.po +1 -1
  44. package/lang/translations/sk.po +1 -1
  45. package/lang/translations/sr-latn.po +1 -1
  46. package/lang/translations/sr.po +1 -1
  47. package/lang/translations/sv.po +1 -1
  48. package/lang/translations/th.po +1 -1
  49. package/lang/translations/tk.po +1 -1
  50. package/lang/translations/tr.po +1 -1
  51. package/lang/translations/tt.po +1 -1
  52. package/lang/translations/ug.po +1 -1
  53. package/lang/translations/uk.po +1 -1
  54. package/lang/translations/ur.po +1 -1
  55. package/lang/translations/vi.po +1 -1
  56. package/lang/translations/zh-cn.po +1 -1
  57. package/lang/translations/zh.po +1 -1
  58. package/package.json +3 -2
  59. package/src/augmentation.d.ts +3 -3
  60. package/src/augmentation.js +1 -1
  61. package/src/collaborationhistory.d.ts +2 -2
  62. package/src/collaborationhistory.js +1 -1
  63. package/src/collaborationoperation.d.ts +2 -2
  64. package/src/collaborationoperation.js +1 -1
  65. package/src/config.d.ts +1 -1
  66. package/src/config.js +1 -1
  67. package/src/index.d.ts +16 -16
  68. package/src/index.js +2 -2
  69. package/src/permissions.d.ts +2 -2
  70. package/src/permissions.js +2 -2
  71. package/src/suggestionstyles.d.ts +1 -1
  72. package/src/suggestionstyles.js +1 -1
  73. package/src/users/view/userview.d.ts +4 -4
  74. package/src/users/view/userview.js +2 -2
  75. package/src/users.d.ts +4 -4
  76. package/src/users.js +2 -2
  77. package/src/utils/common-translations.d.ts +2 -2
  78. package/src/utils/common-translations.js +2 -2
  79. package/src/utils/confirmmixin.d.ts +3 -3
  80. package/src/utils/confirmmixin.js +2 -2
  81. package/src/utils/confirmview.d.ts +3 -3
  82. package/src/utils/confirmview.js +2 -2
  83. package/src/utils/getdatetimeformatter.d.ts +2 -2
  84. package/src/utils/getdatetimeformatter.js +2 -2
  85. package/src/utils/getmarkerdomelement.d.ts +2 -2
  86. package/src/utils/getmarkerdomelement.js +2 -2
  87. package/src/utils/hashobject.d.ts +1 -1
  88. package/src/utils/hashobject.js +2 -2
  89. package/src/utils/sanitizeEditorConfig.d.ts +2 -2
  90. package/src/utils/sanitizeEditorConfig.js +2 -2
  91. package/src/utils/surroundingmarkersdetector.d.ts +2 -2
  92. package/src/utils/surroundingmarkersdetector.js +2 -2
  93. package/src/utils/trim-html.d.ts +1 -1
  94. package/src/utils/trim-html.js +2 -2
  95. package/theme/icons/notification.svg +1 -1
  96. package/theme/integrations/codeblock.css +1 -1
  97. package/theme/integrations/horizontalline.css +1 -1
  98. package/theme/integrations/image.css +1 -1
  99. package/theme/integrations/mediaembed.css +1 -1
  100. package/theme/integrations/pagebreak.css +1 -1
  101. package/theme/integrations/table.css +1 -1
  102. package/theme/suggestion.css +1 -1
  103. package/theme/suggestionmarker.css +1 -1
  104. package/theme/usercolormixin.css +1 -1
  105. package/theme/usercolors.css +1 -1
  106. package/theme/users.css +1 -1
package/src/index.d.ts CHANGED
@@ -1,19 +1,19 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- export { default as Permissions } from './permissions';
6
- export { default as Users, type User } from './users';
7
- export { default as UserView } from './users/view/userview';
8
- export { default as getDateTimeFormatter } from './utils/getdatetimeformatter';
9
- export { default as getMarkerDomElement, getAllMarkersDomElementsSorted } from './utils/getmarkerdomelement';
10
- export { default as trimHtml } from './utils/trim-html';
11
- export { default as ConfirmMixin } from './utils/confirmmixin';
12
- export { default as hashObject } from './utils/hashobject';
13
- export { default as sanitizeEditorConfig } from './utils/sanitizeEditorConfig';
14
- export { default as surroundingMarkersDetector } from './utils/surroundingmarkersdetector';
15
- export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation';
16
- export { default as CollaborationHistory } from './collaborationhistory';
17
- export type { LocaleConfig, RealTimeCollaborationConfig } from './config';
18
- export * from './suggestionstyles';
19
- import './augmentation';
5
+ export { default as Permissions } from './permissions.js';
6
+ export { default as Users, type User } from './users.js';
7
+ export { default as UserView } from './users/view/userview.js';
8
+ export { default as getDateTimeFormatter } from './utils/getdatetimeformatter.js';
9
+ export { default as getMarkerDomElement, getAllMarkersDomElementsSorted } from './utils/getmarkerdomelement.js';
10
+ export { default as trimHtml } from './utils/trim-html.js';
11
+ export { default as ConfirmMixin } from './utils/confirmmixin.js';
12
+ export { default as hashObject } from './utils/hashobject.js';
13
+ export { default as sanitizeEditorConfig } from './utils/sanitizeEditorConfig.js';
14
+ export { default as surroundingMarkersDetector } from './utils/surroundingmarkersdetector.js';
15
+ export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation.js';
16
+ export { default as CollaborationHistory } from './collaborationhistory.js';
17
+ export type { LocaleConfig, RealTimeCollaborationConfig } from './config.js';
18
+ export * from './suggestionstyles.js';
19
+ import './augmentation.js';
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export{default as Permissions}from'./permissions';export{default as Users}from'./users';export{default as UserView}from'./users/view/userview';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement';export{default as trimHtml}from'./utils/trim-html';export{default as ConfirmMixin}from'./utils/confirmmixin';export{default as hashObject}from'./utils/hashobject';export{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig';export{default as surroundingMarkersDetector}from'./utils/surroundingmarkersdetector';export*from'./suggestionstyles';import'./augmentation';
23
+ export{default as Permissions}from'./permissions.js';export{default as Users}from'./users.js';export{default as UserView}from'./users/view/userview.js';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter.js';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement.js';export{default as trimHtml}from'./utils/trim-html.js';export{default as ConfirmMixin}from'./utils/confirmmixin.js';export{default as hashObject}from'./utils/hashobject.js';export{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig.js';export{default as surroundingMarkersDetector}from'./utils/surroundingmarkersdetector.js';export*from'./suggestionstyles.js';import'./augmentation.js';
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module collaboration-core/permissions
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin } from 'ckeditor5/src/core';
9
+ import { ContextPlugin } from 'ckeditor5/src/core.js';
10
10
  /**
11
11
  * The `Permissions` plugin manages permissions set for the local user.
12
12
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x142f=['setPermissions','noPermissions','CommentsRepository','comment:admin','collaboration.channelId','includes','context','no-permissions','forceDisabled','disableReadOnlyMode','addCommentThread','comment:modify_all','has','isEnabled','config','document:write','find','plugins','commands','editors','Permissions','get','permissions-set-permissions-invalid-channel-id','pluginName'];(function(_0x272124,_0x142fff){const _0x791c89=function(_0x4c286a){while(--_0x4c286a){_0x272124['push'](_0x272124['shift']());}};_0x791c89(++_0x142fff);}(_0x142f,0x108));const _0x791c=function(_0x272124,_0x142fff){_0x272124=_0x272124-0x0;let _0x791c89=_0x142f[_0x272124];return _0x791c89;};import{ContextPlugin as _0x2e12ad,Editor as _0x2149cb}from'ckeditor5/src/core';import{CKEditorError as _0xabdcfe}from'ckeditor5/src/utils';export default class n extends _0x2e12ad{static get[_0x791c('0x17')](){return _0x791c('0x14');}[_0x791c('0x0')](_0x2a310c,_0x529305){let _0x951671;if(_0x529305||(_0x529305=this['context'][_0x791c('0xe')][_0x791c('0x15')]('collaboration.channelId')),this[_0x791c('0x6')][_0x791c('0xe')][_0x791c('0x15')](_0x791c('0x4'))==_0x529305?_0x951671=this['context']:_0x791c('0x13')in this[_0x791c('0x6')]&&this[_0x791c('0x6')][_0x791c('0x13')]&&(_0x951671=this['context']['editors'][_0x791c('0x10')](_0x4c499f=>_0x4c499f[_0x791c('0xe')][_0x791c('0x15')](_0x791c('0x4'))==_0x529305)),!_0x951671)throw new _0xabdcfe(_0x791c('0x16'),null);const _0xd932fc=_0x951671[_0x791c('0x11')],_0x9f5c31=_0xd932fc[_0x791c('0xc')](_0x791c('0x2'))?_0xd932fc[_0x791c('0x15')](_0x791c('0x2')):void 0x0,_0x4c88f2=_0xd932fc[_0x791c('0xc')]('CommentsOnly')&&_0xd932fc[_0x791c('0x15')]('CommentsOnly'),_0x3ce590=_0x2a310c[_0x791c('0x5')](_0x791c('0xf')),_0x13205f=_0x2a310c[_0x791c('0x5')](_0x791c('0xb')),_0xc44818=_0x2a310c['includes'](_0x791c('0x3')),_0x985c00=_0x2a310c[_0x791c('0x5')]('comment:write'),_0x223543=_0x985c00||_0xc44818,_0xfdd836=_0x223543||_0x13205f,_0x5804de=_0x3ce590||_0x223543;(_0x4c88f2&&(_0x4c88f2[_0x791c('0xd')]=!_0x3ce590&&_0xfdd836),_0x951671 instanceof _0x2149cb)&&(!(_0x3ce590||_0xfdd836&&_0x9f5c31)?_0x951671['enableReadOnlyMode']('no-permissions'):_0x951671[_0x791c('0x9')](_0x791c('0x7')));if(_0x9f5c31){_0x9f5c31[_0x791c('0x0')]({'admin':_0xc44818,'modifyAll':_0x13205f,'write':_0x985c00,'resolve':_0x5804de},_0x529305);const _0x438456=_0x951671 instanceof _0x2149cb&&_0x951671[_0x791c('0x12')][_0x791c('0x15')](_0x791c('0xa'));_0x438456&&(_0x223543?_0x438456['clearForceDisabled'](_0x791c('0x1')):_0x438456[_0x791c('0x8')](_0x791c('0x1')));}}}
23
+ const _0x4191=['config','pluginName','isEnabled','clearForceDisabled','permissions-set-permissions-invalid-channel-id','enableReadOnlyMode','plugins','get','collaboration.channelId','find','CommentsOnly','commands','forceDisabled','CommentsRepository','has','editors','comment:write','addCommentThread','setPermissions','includes','no-permissions','disableReadOnlyMode','context'];(function(_0x4c2beb,_0x4191e9){const _0x47fbb4=function(_0x3f0cfa){while(--_0x3f0cfa){_0x4c2beb['push'](_0x4c2beb['shift']());}};_0x47fbb4(++_0x4191e9);}(_0x4191,0x1a4));const _0x47fb=function(_0x4c2beb,_0x4191e9){_0x4c2beb=_0x4c2beb-0x0;let _0x47fbb4=_0x4191[_0x4c2beb];return _0x47fbb4;};import{ContextPlugin as _0x44473f,Editor as _0x20ba3e}from'ckeditor5/src/core.js';import{CKEditorError as _0x14f882}from'ckeditor5/src/utils.js';export default class n extends _0x44473f{static get[_0x47fb('0x12')](){return'Permissions';}['setPermissions'](_0xd0ab03,_0x4b708c){let _0x23a555;if(_0x4b708c||(_0x4b708c=this[_0x47fb('0x10')][_0x47fb('0x11')][_0x47fb('0x1')]('collaboration.channelId')),this[_0x47fb('0x10')][_0x47fb('0x11')][_0x47fb('0x1')](_0x47fb('0x2'))==_0x4b708c?_0x23a555=this[_0x47fb('0x10')]:_0x47fb('0x9')in this['context']&&this[_0x47fb('0x10')][_0x47fb('0x9')]&&(_0x23a555=this[_0x47fb('0x10')]['editors'][_0x47fb('0x3')](_0x48f356=>_0x48f356['config'][_0x47fb('0x1')](_0x47fb('0x2'))==_0x4b708c)),!_0x23a555)throw new _0x14f882(_0x47fb('0x15'),null);const _0x1d2a20=_0x23a555[_0x47fb('0x0')],_0x6d3bc3=_0x1d2a20['has'](_0x47fb('0x7'))?_0x1d2a20[_0x47fb('0x1')](_0x47fb('0x7')):void 0x0,_0x4bedff=_0x1d2a20[_0x47fb('0x8')](_0x47fb('0x4'))&&_0x1d2a20[_0x47fb('0x1')]('CommentsOnly'),_0x522032=_0xd0ab03[_0x47fb('0xd')]('document:write'),_0x5be806=_0xd0ab03[_0x47fb('0xd')]('comment:modify_all'),_0x584c54=_0xd0ab03[_0x47fb('0xd')]('comment:admin'),_0x2269e1=_0xd0ab03['includes'](_0x47fb('0xa')),_0x550aea=_0x2269e1||_0x584c54,_0x2ac08a=_0x550aea||_0x5be806,_0x5461f4=_0x522032||_0x550aea;(_0x4bedff&&(_0x4bedff[_0x47fb('0x13')]=!_0x522032&&_0x2ac08a),_0x23a555 instanceof _0x20ba3e)&&(!(_0x522032||_0x2ac08a&&_0x6d3bc3)?_0x23a555[_0x47fb('0x16')](_0x47fb('0xe')):_0x23a555[_0x47fb('0xf')](_0x47fb('0xe')));if(_0x6d3bc3){_0x6d3bc3[_0x47fb('0xc')]({'admin':_0x584c54,'modifyAll':_0x5be806,'write':_0x2269e1,'resolve':_0x5461f4},_0x4b708c);const _0x42bf71=_0x23a555 instanceof _0x20ba3e&&_0x23a555[_0x47fb('0x5')][_0x47fb('0x1')](_0x47fb('0xb'));_0x42bf71&&(_0x550aea?_0x42bf71[_0x47fb('0x14')]('noPermissions'):_0x42bf71[_0x47fb('0x6')]('noPermissions'));}}}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  import '../theme/suggestion.css';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module collaboration-core/users/view/userview
7
7
  */
8
- import { View, type TemplateDefinition } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import type { User } from '../../users';
8
+ import { View, type TemplateDefinition } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
+ import type { User } from '../../users.js';
11
11
  import '../../../theme/users.css';
12
12
  export default class UserView extends View {
13
13
  name: string;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x304b=['name','avatar','setTemplate','notificationView','ck-user__avatar','ck-user__anonymous','extendTemplate','ck\x20ck-user__name','push','initials','ck-user','url(\x27','ck\x20ck-user__name\x20ck-user__name--hidden','div'];(function(_0x5cb055,_0x304b8e){const _0x20477b=function(_0x30d817){while(--_0x30d817){_0x5cb055['push'](_0x5cb055['shift']());}};_0x20477b(++_0x304b8e);}(_0x304b,0x7c));const _0x2047=function(_0x5cb055,_0x304b8e){_0x5cb055=_0x5cb055-0x0;let _0x20477b=_0x304b[_0x5cb055];return _0x20477b;};import{View as _0x5d1bb6,IconView as _0x59d7b5}from'ckeditor5/src/ui';import _0x252157 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class C extends _0x5d1bb6{constructor(_0x53825e,_0x3ac28f,_0x46cd46){super(_0x53825e),this['name']=_0x3ac28f[_0x2047('0x2')],this[_0x2047('0x5')]=null;const _0x2c0367=['ck','ck-user__img'];if(_0x3ac28f['isAnonymous']&&_0x2c0367['push'](_0x2047('0x7')),_0x3ac28f[_0x2047('0x3')]&&_0x2c0367[_0x2047('0xa')](_0x2047('0x6')),_0x46cd46){const _0x700ec8=new _0x59d7b5();_0x700ec8[_0x2047('0x8')]({'attributes':{'class':['ck-user__icon']}}),_0x700ec8['content']=_0x252157,this[_0x2047('0x5')]={'tag':_0x2047('0x1'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x46cd46},'children':[_0x700ec8]};}const _0x3d3baa=[{'tag':_0x2047('0x1'),'attributes':{'class':_0x2c0367,'style':{'background-image':_0x3ac28f['avatar']?_0x2047('0xd')+_0x3ac28f['avatar']+'\x27)':''}}},{'tag':_0x2047('0x1'),'attributes':{'class':_0x3ac28f[_0x2047('0x3')]?_0x2047('0x0'):_0x2047('0x9')},'children':[{'text':_0x3ac28f[_0x2047('0xb')]}]}];this['notificationView']&&_0x3d3baa[_0x2047('0xa')](this[_0x2047('0x5')]),this[_0x2047('0x4')]({'tag':_0x2047('0x1'),'attributes':{'class':['ck',_0x2047('0xc')],'data-user-id':_0x3ac28f['id']},'children':_0x3d3baa});}}
23
+ const _0x30e3=['content','avatar','push','name','isAnonymous','ck-user__anonymous','ck-user','ck-user__icon','notificationView','ck\x20ck-user__name\x20ck-user__name--hidden','div','ck-user__img','url(\x27','ck-user__avatar'];(function(_0x4b35a3,_0x30e3ea){const _0x3ea397=function(_0xef9578){while(--_0xef9578){_0x4b35a3['push'](_0x4b35a3['shift']());}};_0x3ea397(++_0x30e3ea);}(_0x30e3,0x1a0));const _0x3ea3=function(_0x4b35a3,_0x30e3ea){_0x4b35a3=_0x4b35a3-0x0;let _0x3ea397=_0x30e3[_0x4b35a3];return _0x3ea397;};import{View as _0x2834d1,IconView as _0x32ccad}from'ckeditor5/src/ui.js';import _0x1ceb2c from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0x2834d1{constructor(_0x2fde0f,_0x3975b4,_0x1b2124){super(_0x2fde0f),this[_0x3ea3('0x7')]=_0x3975b4[_0x3ea3('0x7')],this['notificationView']=null;const _0x5d8e44=['ck',_0x3ea3('0x1')];if(_0x3975b4[_0x3ea3('0x8')]&&_0x5d8e44[_0x3ea3('0x6')](_0x3ea3('0x9')),_0x3975b4[_0x3ea3('0x5')]&&_0x5d8e44[_0x3ea3('0x6')](_0x3ea3('0x3')),_0x1b2124){const _0x2b85c4=new _0x32ccad();_0x2b85c4['extendTemplate']({'attributes':{'class':[_0x3ea3('0xb')]}}),_0x2b85c4[_0x3ea3('0x4')]=_0x1ceb2c,this[_0x3ea3('0xc')]={'tag':_0x3ea3('0x0'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x1b2124},'children':[_0x2b85c4]};}const _0x427f36=[{'tag':_0x3ea3('0x0'),'attributes':{'class':_0x5d8e44,'style':{'background-image':_0x3975b4[_0x3ea3('0x5')]?_0x3ea3('0x2')+_0x3975b4[_0x3ea3('0x5')]+'\x27)':''}}},{'tag':_0x3ea3('0x0'),'attributes':{'class':_0x3975b4['avatar']?_0x3ea3('0xd'):'ck\x20ck-user__name'},'children':[{'text':_0x3975b4['initials']}]}];this['notificationView']&&_0x427f36[_0x3ea3('0x6')](this[_0x3ea3('0xc')]),this['setTemplate']({'tag':_0x3ea3('0x0'),'attributes':{'class':['ck',_0x3ea3('0xa')],'data-user-id':_0x3975b4['id']},'children':_0x427f36});}}
package/src/users.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module collaboration-core/users
7
7
  * @publicApi
8
8
  */
9
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
10
- import { Collection } from 'ckeditor5/src/utils';
11
- import Permissions from './permissions';
9
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
10
+ import { Collection } from 'ckeditor5/src/utils.js';
11
+ import Permissions from './permissions.js';
12
12
  import '../theme/usercolors.css';
13
13
  /**
14
14
  * The `Users` plugin provides the basic interface for setting and getting users involved in the document editing process.
package/src/users.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16de=['context','_locale','getUser','useAnonymousUser','pluginName','string','_addAnonymousUser','add','locale','defineMe','users.anonymousUserId','licenseKey','includes','licenseKeyTrialLimit:operations','users-me-missing-user','licenseKeyValid','avatar','users.colorsCount','info','getBackgroundColorClass','anonymous-user','config','requires','split','charAt','licenseKeyTrialLimit:time','init','ck-user__marker--','length','licenseKeyTrial','_getInitial','trial-license-key-reached-limit-revisions','users-add-invalid-id','trim','_id','_getNextColor','users-me-already-defined','getOperationAuthor','initials','name','color','destroy','licenseKeyTrialLimit:revisions','define','Users','decorate','users-add-duplicated-id','get','addUser','_myId','Anonymous','_lastColor','_licenseKeyCheckInterval','_isAnonymous','toUpperCase','licenseKeyInvalid','has','ck-user__selection--','getMarkerClass','isAnonymous','users','trial-license-key-reached-limit-changes'];(function(_0x55a658,_0x16de49){const _0x286f6a=function(_0x386cc5){while(--_0x386cc5){_0x55a658['push'](_0x55a658['shift']());}};_0x286f6a(++_0x16de49);}(_0x16de,0x1cc));const _0x286f=function(_0x55a658,_0x16de49){_0x55a658=_0x55a658-0x0;let _0x286f6a=_0x16de[_0x55a658];return _0x286f6a;};import{ContextPlugin as _0x4938a6}from'ckeditor5/src/core';import{Collection as _0x4e1d08,CKEditorError as _0x56dd20}from'ckeditor5/src/utils';import _0x26ea13 from'./permissions';import{getTranslation as _0x1e2661}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x4938a6{static get[_0x286f('0x28')](){return _0x286f('0x12');}static get[_0x286f('0x3a')](){return[_0x26ea13];}constructor(_0x17a965){super(_0x17a965),this[_0x286f('0x24')]['config'][_0x286f('0x11')](_0x286f('0x2e'),_0x286f('0x38')),this['context']['config'][_0x286f('0x11')]('users.colorsCount',0x8),this['users']=new _0x4e1d08(),this[_0x286f('0x25')]=_0x17a965[_0x286f('0x2c')],this[_0x286f('0x1a')]=null,this[_0x286f('0x19')]=0x0,this[_0x286f('0x17')]=null,this[_0x286f('0x13')](_0x286f('0xb'));}[_0x286f('0x0')](){const _0x33a35e=this[_0x286f('0x24')];this[_0x286f('0x2f')]=_0x33a35e['config'][_0x286f('0x15')](_0x286f('0x2f'));const _0x28c235=[_0x286f('0x3'),'licenseKeyInvalid',_0x286f('0x33'),'licenseKeyTrialLimit:operations',_0x286f('0x3d'),_0x286f('0x10')];this[_0x286f('0x1a')]=setInterval(()=>{let _0x209f16;for(const _0x29da21 in _0x33a35e){const _0x4d483d=_0x33a35e[_0x29da21];if(_0x28c235[_0x286f('0x30')](_0x4d483d)){delete _0x33a35e[_0x29da21],_0x209f16=_0x4d483d;break;}}if(_0x286f('0x1d')===_0x209f16)throw clearInterval(this[_0x286f('0x1a')]),new _0x56dd20('invalid-license-key',null);if(_0x286f('0x3')===_0x209f16&&console[_0x286f('0x36')]('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),_0x286f('0x31')===_0x209f16)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x56dd20(_0x286f('0x23'),null);if(_0x286f('0x3d')===_0x209f16)throw clearInterval(this[_0x286f('0x1a')]),new _0x56dd20('trial-license-key-reached-limit-time',null);if(_0x286f('0x10')===_0x209f16)throw clearInterval(this[_0x286f('0x1a')]),new _0x56dd20(_0x286f('0x5'),null);_0x286f('0x33')===_0x209f16&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0x286f('0x2a')]();}get['me'](){return null==this[_0x286f('0x17')]?null:this[_0x286f('0x26')](this['_myId']);}[_0x286f('0x16')]({id:_0x40ef6d,name:_0x44eef3,..._0x15d7ea}){if(!_0x40ef6d||_0x286f('0x29')!=typeof _0x40ef6d)throw new _0x56dd20(_0x286f('0x6'));if(this[_0x286f('0x22')][_0x286f('0x1e')](_0x40ef6d))throw new _0x56dd20(_0x286f('0x14'),null,{'id':_0x40ef6d});const _0x1dc794={..._0x15d7ea,'id':_0x40ef6d,'name':a(this['_locale'],_0x44eef3),'color':this[_0x286f('0x9')]()};_0x1dc794[_0x286f('0xd')]=a(this[_0x286f('0x25')],_0x1dc794[_0x286f('0xd')]);const _0x1ccb20=new User(_0x1dc794);return this[_0x286f('0x22')][_0x286f('0x2b')](_0x1ccb20),_0x1ccb20;}['getUser'](_0x386a47){return this[_0x286f('0x22')]['get'](_0x386a47);}[_0x286f('0x27')](){const _0x3b8d54=this[_0x286f('0x24')][_0x286f('0x39')][_0x286f('0x15')](_0x286f('0x2e'));this[_0x286f('0x17')]||this[_0x286f('0x2d')](_0x3b8d54);}['defineMe'](_0x402e61){if(this[_0x286f('0x17')])throw new _0x56dd20(_0x286f('0xa'),null);if(!this[_0x286f('0x26')](_0x402e61))throw new _0x56dd20(_0x286f('0x32'),null);this[_0x286f('0x17')]=_0x402e61;}['getOperationAuthor'](){return this['me'];}[_0x286f('0xf')](){super['destroy'](),clearInterval(this[_0x286f('0x1a')]);}[_0x286f('0x9')](){const _0x1aba40=this['context'][_0x286f('0x39')][_0x286f('0x15')](_0x286f('0x35'));return this[_0x286f('0x19')]>=_0x1aba40&&(this['_lastColor']=0x0),new u(this[_0x286f('0x19')]++);}[_0x286f('0x2a')](){const _0x41224a=this[_0x286f('0x24')]['config'][_0x286f('0x15')]('users.anonymousUserId');this[_0x286f('0x16')]({'id':_0x41224a,'name':_0x1e2661(this['_locale'],_0x286f('0x18'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x4ada04){this['id']=_0x4ada04['id'],this[_0x286f('0xe')]=_0x4ada04[_0x286f('0xe')],this[_0x286f('0xd')]=_0x4ada04['name'],this[_0x286f('0x34')]=_0x4ada04[_0x286f('0x34')],this[_0x286f('0x1b')]=!0x1;}get[_0x286f('0x21')](){return this[_0x286f('0x1b')];}get[_0x286f('0xc')](){const _0x2dffb5=this[_0x286f('0xd')][_0x286f('0x3b')]('\x20');return 0x1===_0x2dffb5[_0x286f('0x2')]?this[_0x286f('0x4')](_0x2dffb5[0x0]):this[_0x286f('0x4')](_0x2dffb5[0x0])+this['_getInitial'](_0x2dffb5[_0x2dffb5[_0x286f('0x2')]-0x1]);}[_0x286f('0x4')](_0x13fb5b){return _0x13fb5b[_0x286f('0x3c')](0x0)[_0x286f('0x1c')]();}}function a(_0x59881f,_0x5b291e=''){return''==(_0x5b291e=_0x5b291e[_0x286f('0x7')]())?_0x1e2661(_0x59881f,_0x286f('0x18')):_0x5b291e;}class u{constructor(_0x488494){this[_0x286f('0x8')]=_0x488494;}[_0x286f('0x37')](){return'ck-user__bg-color--'+this[_0x286f('0x8')];}['getSelectionClass'](){return _0x286f('0x1f')+this[_0x286f('0x8')];}[_0x286f('0x20')](){return _0x286f('0x1')+this[_0x286f('0x8')];}}
23
+ const _0x50d1=['trim','ck-user__bg-color--','_myId','_addAnonymousUser','destroy','getSelectionClass','length','users.colorsCount','licenseKeyTrialLimit:revisions','split','anonymous-user','users-me-missing-user','licenseKeyInvalid','decorate','invalid-license-key','get','info','isAnonymous','getOperationAuthor','_id','licenseKeyTrialLimit:operations','getUser','context','_isAnonymous','color','avatar','users-add-duplicated-id','_licenseKeyCheckInterval','_getInitial','addUser','getMarkerClass','add','users-me-already-defined','Anonymous','_locale','init','define','initials','users.anonymousUserId','licenseKeyValid','locale','string','pluginName','defineMe','users','licenseKeyTrialLimit:time','_getNextColor','getBackgroundColorClass','has','config','licenseKeyTrial','trial-license-key-reached-limit-revisions','_lastColor','name'];(function(_0xcddb31,_0x50d15e){const _0x2da193=function(_0x4945ae){while(--_0x4945ae){_0xcddb31['push'](_0xcddb31['shift']());}};_0x2da193(++_0x50d15e);}(_0x50d1,0x9a));const _0x2da1=function(_0xcddb31,_0x50d15e){_0xcddb31=_0xcddb31-0x0;let _0x2da193=_0x50d1[_0xcddb31];return _0x2da193;};import{ContextPlugin as _0xfba487}from'ckeditor5/src/core.js';import{Collection as _0x32aa87,CKEditorError as _0x54349c}from'ckeditor5/src/utils.js';import _0x23bc1e from'./permissions.js';import{getTranslation as _0xe6ead6}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0xfba487{static get[_0x2da1('0x32')](){return'Users';}static get['requires'](){return[_0x23bc1e];}constructor(_0x99d119){super(_0x99d119),this[_0x2da1('0x1e')]['config'][_0x2da1('0x2c')](_0x2da1('0x2e'),_0x2da1('0x12')),this[_0x2da1('0x1e')][_0x2da1('0x3')]['define'](_0x2da1('0xf'),0x8),this['users']=new _0x32aa87(),this[_0x2da1('0x2a')]=_0x99d119[_0x2da1('0x30')],this['_licenseKeyCheckInterval']=null,this[_0x2da1('0x6')]=0x0,this[_0x2da1('0xa')]=null,this[_0x2da1('0x15')](_0x2da1('0x1a'));}[_0x2da1('0x2b')](){const _0x32a37a=this['context'];this['licenseKey']=_0x32a37a[_0x2da1('0x3')][_0x2da1('0x17')]('licenseKey');const _0xc0a37d=[_0x2da1('0x4'),_0x2da1('0x14'),_0x2da1('0x2f'),_0x2da1('0x1c'),_0x2da1('0x35'),_0x2da1('0x10')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55b2a7;for(const _0xfe926c in _0x32a37a){const _0x31da45=_0x32a37a[_0xfe926c];if(_0xc0a37d['includes'](_0x31da45)){delete _0x32a37a[_0xfe926c],_0x55b2a7=_0x31da45;break;}}if(_0x2da1('0x14')===_0x55b2a7)throw clearInterval(this[_0x2da1('0x23')]),new _0x54349c(_0x2da1('0x16'),null);if(_0x2da1('0x4')===_0x55b2a7&&console[_0x2da1('0x18')]('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'licenseKeyTrialLimit:operations'===_0x55b2a7)throw clearInterval(this[_0x2da1('0x23')]),new _0x54349c('trial-license-key-reached-limit-changes',null);if(_0x2da1('0x35')===_0x55b2a7)throw clearInterval(this[_0x2da1('0x23')]),new _0x54349c('trial-license-key-reached-limit-time',null);if(_0x2da1('0x10')===_0x55b2a7)throw clearInterval(this[_0x2da1('0x23')]),new _0x54349c(_0x2da1('0x5'),null);_0x2da1('0x2f')===_0x55b2a7&&clearInterval(this[_0x2da1('0x23')]);},0x3e8),this[_0x2da1('0xb')]();}get['me'](){return null==this[_0x2da1('0xa')]?null:this['getUser'](this[_0x2da1('0xa')]);}[_0x2da1('0x25')]({id:_0x1836f9,name:_0x5be0fc,..._0x3a1607}){if(!_0x1836f9||_0x2da1('0x31')!=typeof _0x1836f9)throw new _0x54349c('users-add-invalid-id');if(this[_0x2da1('0x34')][_0x2da1('0x2')](_0x1836f9))throw new _0x54349c(_0x2da1('0x22'),null,{'id':_0x1836f9});const _0x2d28de={..._0x3a1607,'id':_0x1836f9,'name':a(this[_0x2da1('0x2a')],_0x5be0fc),'color':this[_0x2da1('0x0')]()};_0x2d28de[_0x2da1('0x7')]=a(this[_0x2da1('0x2a')],_0x2d28de[_0x2da1('0x7')]);const _0x400f45=new User(_0x2d28de);return this[_0x2da1('0x34')][_0x2da1('0x27')](_0x400f45),_0x400f45;}[_0x2da1('0x1d')](_0x267e47){return this[_0x2da1('0x34')][_0x2da1('0x17')](_0x267e47);}['useAnonymousUser'](){const _0x24ed68=this[_0x2da1('0x1e')]['config'][_0x2da1('0x17')](_0x2da1('0x2e'));this[_0x2da1('0xa')]||this[_0x2da1('0x33')](_0x24ed68);}[_0x2da1('0x33')](_0xa65b7a){if(this[_0x2da1('0xa')])throw new _0x54349c(_0x2da1('0x28'),null);if(!this['getUser'](_0xa65b7a))throw new _0x54349c(_0x2da1('0x13'),null);this['_myId']=_0xa65b7a;}[_0x2da1('0x1a')](){return this['me'];}['destroy'](){super[_0x2da1('0xc')](),clearInterval(this['_licenseKeyCheckInterval']);}[_0x2da1('0x0')](){const _0x513662=this['context'][_0x2da1('0x3')][_0x2da1('0x17')](_0x2da1('0xf'));return this['_lastColor']>=_0x513662&&(this[_0x2da1('0x6')]=0x0),new u(this['_lastColor']++);}[_0x2da1('0xb')](){const _0x56d76d=this['context'][_0x2da1('0x3')][_0x2da1('0x17')](_0x2da1('0x2e'));this[_0x2da1('0x25')]({'id':_0x56d76d,'name':_0xe6ead6(this[_0x2da1('0x2a')],'Anonymous')})['_isAnonymous']=!0x0;}}export class User{constructor(_0x1c7aaa){this['id']=_0x1c7aaa['id'],this[_0x2da1('0x20')]=_0x1c7aaa[_0x2da1('0x20')],this['name']=_0x1c7aaa['name'],this[_0x2da1('0x21')]=_0x1c7aaa[_0x2da1('0x21')],this[_0x2da1('0x1f')]=!0x1;}get[_0x2da1('0x19')](){return this['_isAnonymous'];}get[_0x2da1('0x2d')](){const _0xd031af=this[_0x2da1('0x7')][_0x2da1('0x11')]('\x20');return 0x1===_0xd031af[_0x2da1('0xe')]?this['_getInitial'](_0xd031af[0x0]):this[_0x2da1('0x24')](_0xd031af[0x0])+this[_0x2da1('0x24')](_0xd031af[_0xd031af[_0x2da1('0xe')]-0x1]);}[_0x2da1('0x24')](_0x2ec958){return _0x2ec958['charAt'](0x0)['toUpperCase']();}}function a(_0x37993f,_0x5de7d4=''){return''==(_0x5de7d4=_0x5de7d4[_0x2da1('0x8')]())?_0xe6ead6(_0x37993f,_0x2da1('0x29')):_0x5de7d4;}class u{constructor(_0xf89760){this[_0x2da1('0x1b')]=_0xf89760;}[_0x2da1('0x1')](){return _0x2da1('0x9')+this[_0x2da1('0x1b')];}[_0x2da1('0xd')](){return'ck-user__selection--'+this[_0x2da1('0x1b')];}[_0x2da1('0x26')](){return'ck-user__marker--'+this['_id'];}}
@@ -1,9 +1,9 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module collaboration-core/utils/common-translations
7
7
  */
8
- import type { Locale } from 'ckeditor5/src/utils';
8
+ import type { Locale } from 'ckeditor5/src/utils.js';
9
9
  export declare function getTranslation(locale: Locale, id: string): string;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2b4476,_0x44d6b3){const t=_0x2b4476['t'];switch(_0x44d6b3){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
23
+ export function getTranslation(_0x2d7e4d,_0xd4f217){const t=_0x2d7e4d['t'];switch(_0xd4f217){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/comments/ui/view/confirmmixin
7
7
  */
8
- import type { View } from 'ckeditor5/src/ui';
9
- import type { Locale, Mixed } from 'ckeditor5/src/utils';
8
+ import type { View } from 'ckeditor5/src/ui.js';
9
+ import type { Locale, Mixed } from 'ckeditor5/src/utils.js';
10
10
  /**
11
11
  * Adds interface for showing confirmation view in the specific for `CommentThreadView` and `CommentView` structure
12
12
  * Confirm is always set to the `content` collection at the last position.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x37bd=['appendChild','set','destroy','_removeConfirm','deregisterChild','showConfirm','registerChild','isConfirm','focus','cancel','confirmView','once','element','render','locale','fire'];(function(_0x55eee5,_0x37bddb){var _0x5f2813=function(_0x3cdda4){while(--_0x3cdda4){_0x55eee5['push'](_0x55eee5['shift']());}};_0x5f2813(++_0x37bddb);}(_0x37bd,0x7a));var _0x5f28=function(_0x55eee5,_0x37bddb){_0x55eee5=_0x55eee5-0x0;var _0x5f2813=_0x37bd[_0x55eee5];return _0x5f2813;};import _0x529d28 from'./confirmview';export default function m(_0x1f11cf){return class extends _0x1f11cf{[_0x5f28('0xb')](_0x5c4253,_0x4568fd){return this['confirmView']=new _0x529d28(this[_0x5f28('0x4')]),this[_0x5f28('0x0')][_0x5f28('0x3')](),this[_0x5f28('0x0')]['message']=_0x5c4253,this[_0x5f28('0x0')][_0x5f28('0x1')](_0x5f28('0xf'),()=>{this[_0x5f28('0x9')]();}),this[_0x5f28('0x0')][_0x5f28('0x1')]('submit',()=>{this[_0x5f28('0x9')]();}),_0x4568fd[_0x5f28('0x6')](this['confirmView'][_0x5f28('0x2')]),this[_0x5f28('0xc')](this[_0x5f28('0x0')]),this[_0x5f28('0x2')][_0x5f28('0xe')](),this[_0x5f28('0x7')](_0x5f28('0xd'),!0x0),new Promise(_0x13933d=>this[_0x5f28('0x0')]['on']('submit',_0x13933d));}['cancelConfirm'](){this[_0x5f28('0xd')]&&this[_0x5f28('0x0')][_0x5f28('0x5')](_0x5f28('0xf'));}[_0x5f28('0x9')](){this[_0x5f28('0x2')]&&this[_0x5f28('0x0')]&&this[_0x5f28('0x0')][_0x5f28('0x2')]&&(this['element'][_0x5f28('0xe')](),this['confirmView'][_0x5f28('0x2')]['remove'](),this[_0x5f28('0xa')](this[_0x5f28('0x0')]),this[_0x5f28('0xd')]=!0x1,this[_0x5f28('0x0')][_0x5f28('0x8')](),this[_0x5f28('0x0')]=void 0x0);}};}
23
+ var _0x26e4=['locale','cancel','submit','confirmView','deregisterChild','cancelConfirm','showConfirm','fire','_removeConfirm','once','message','destroy','isConfirm','registerChild','render','element'];(function(_0xea0b0e,_0x26e41d){var _0x1fe82e=function(_0x10399){while(--_0x10399){_0xea0b0e['push'](_0xea0b0e['shift']());}};_0x1fe82e(++_0x26e41d);}(_0x26e4,0xa1));var _0x1fe8=function(_0xea0b0e,_0x26e41d){_0xea0b0e=_0xea0b0e-0x0;var _0x1fe82e=_0x26e4[_0xea0b0e];return _0x1fe82e;};import _0xbb96d0 from'./confirmview.js';export default function m(_0x40f35e){return class extends _0x40f35e{[_0x1fe8('0x5')](_0x3f2d3a,_0x1281ff){return this[_0x1fe8('0x2')]=new _0xbb96d0(this[_0x1fe8('0xf')]),this[_0x1fe8('0x2')][_0x1fe8('0xd')](),this[_0x1fe8('0x2')][_0x1fe8('0x9')]=_0x3f2d3a,this[_0x1fe8('0x2')][_0x1fe8('0x8')](_0x1fe8('0x0'),()=>{this[_0x1fe8('0x7')]();}),this[_0x1fe8('0x2')]['once'](_0x1fe8('0x1'),()=>{this[_0x1fe8('0x7')]();}),_0x1281ff['appendChild'](this[_0x1fe8('0x2')][_0x1fe8('0xe')]),this[_0x1fe8('0xc')](this['confirmView']),this[_0x1fe8('0xe')]['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x1bfdd7=>this[_0x1fe8('0x2')]['on'](_0x1fe8('0x1'),_0x1bfdd7));}[_0x1fe8('0x4')](){this[_0x1fe8('0xb')]&&this[_0x1fe8('0x2')][_0x1fe8('0x6')](_0x1fe8('0x0'));}[_0x1fe8('0x7')](){this[_0x1fe8('0xe')]&&this[_0x1fe8('0x2')]&&this[_0x1fe8('0x2')][_0x1fe8('0xe')]&&(this[_0x1fe8('0xe')]['focus'](),this['confirmView'][_0x1fe8('0xe')]['remove'](),this[_0x1fe8('0x3')](this[_0x1fe8('0x2')]),this['isConfirm']=!0x1,this[_0x1fe8('0x2')][_0x1fe8('0xa')](),this[_0x1fe8('0x2')]=void 0x0);}};}
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module comments/comments/ui/view/confirmview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
10
  export default class ConfirmView extends View {
11
11
  message: string;
12
12
  constructor(locale: Locale);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a94=['cancel','ck-thread__remove-confirm','bindTemplate','set','setTemplate','submit','icon','fire','cancelView','ck-thread__remove-confirm-','label','div','submitView','message','check','execute'];(function(_0x35cb57,_0x2a9457){const _0x39db85=function(_0x567752){while(--_0x567752){_0x35cb57['push'](_0x35cb57['shift']());}};_0x39db85(++_0x2a9457);}(_0x2a94,0x146));const _0x39db=function(_0x35cb57,_0x2a9457){_0x35cb57=_0x35cb57-0x0;let _0x39db85=_0x2a94[_0x35cb57];return _0x39db85;};import{View as _0x49fe4c,ButtonView as _0x1487e8}from'ckeditor5/src/ui';import{icons as _0x5a2ac7}from'ckeditor5/src/core';import{getTranslation as _0x395d31}from'./common-translations';export default class h extends _0x49fe4c{constructor(_0x10939e){super(_0x10939e);const _0xe0d727=this[_0x39db('0xc')];this['submitView']=this['_createButtonView'](_0x10939e,_0x395d31(_0x10939e,'Yes'),_0x5a2ac7[_0x39db('0x8')],_0x39db('0xf')),this[_0x39db('0x2')]=this['_createButtonView'](_0x10939e,_0x395d31(_0x10939e,'No'),_0x5a2ac7['cancel'],_0x39db('0xa')),this[_0x39db('0xd')]('message',_0x395d31(_0x10939e,'Are\x20you\x20sure?')),this[_0x39db('0xe')]({'tag':'div','attributes':{'class':[_0x39db('0xb')]},'children':[{'tag':_0x39db('0x5'),'attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0xe0d727['to'](_0x39db('0x7'))}]},{'tag':_0x39db('0x5'),'attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this[_0x39db('0x6')],this[_0x39db('0x2')]]}]}]});}['_createButtonView'](_0x35bc91,_0x32e301,_0x4b4aa3,_0x367c67){const _0x34c1f3=new _0x1487e8(_0x35bc91);return _0x34c1f3[_0x39db('0x4')]=_0x32e301,_0x34c1f3[_0x39db('0x0')]=_0x4b4aa3,_0x34c1f3['extendTemplate']({'attributes':{'class':_0x39db('0x3')+_0x367c67}}),_0x34c1f3['on'](_0x39db('0x9'),()=>this[_0x39db('0x1')](_0x367c67)),_0x34c1f3;}}
23
+ const _0x11b7=['submit','div','Are\x20you\x20sure?','fire','submitView','set','cancelView','message','check','Yes','label','cancel','ck-thread__remove-confirm-','extendTemplate','ck-thread__remove-confirm-actions','bindTemplate','setTemplate','_createButtonView','ck-thread__remove-confirm-inner'];(function(_0x4a0a69,_0x11b722){const _0x356824=function(_0x283c59){while(--_0x283c59){_0x4a0a69['push'](_0x4a0a69['shift']());}};_0x356824(++_0x11b722);}(_0x11b7,0x19b));const _0x3568=function(_0x4a0a69,_0x11b722){_0x4a0a69=_0x4a0a69-0x0;let _0x356824=_0x11b7[_0x4a0a69];return _0x356824;};import{View as _0x20996a,ButtonView as _0x4f4a71}from'ckeditor5/src/ui.js';import{icons as _0x1dd890}from'ckeditor5/src/core.js';import{getTranslation as _0x1a863e}from'./common-translations.js';export default class h extends _0x20996a{constructor(_0x4f03d3){super(_0x4f03d3);const _0x1d5bdd=this[_0x3568('0x3')];this[_0x3568('0xb')]=this[_0x3568('0x5')](_0x4f03d3,_0x1a863e(_0x4f03d3,_0x3568('0x10')),_0x1dd890[_0x3568('0xf')],_0x3568('0x7')),this[_0x3568('0xd')]=this[_0x3568('0x5')](_0x4f03d3,_0x1a863e(_0x4f03d3,'No'),_0x1dd890[_0x3568('0x12')],_0x3568('0x12')),this[_0x3568('0xc')](_0x3568('0xe'),_0x1a863e(_0x4f03d3,_0x3568('0x9'))),this[_0x3568('0x4')]({'tag':_0x3568('0x8'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':_0x3568('0x8'),'attributes':{'class':_0x3568('0x6')},'children':[{'tag':'p','children':[{'text':_0x1d5bdd['to'](_0x3568('0xe'))}]},{'tag':'div','attributes':{'class':_0x3568('0x2')},'children':[this[_0x3568('0xb')],this[_0x3568('0xd')]]}]}]});}['_createButtonView'](_0x27ea0e,_0x552a30,_0x394992,_0x11d082){const _0x30a41a=new _0x4f4a71(_0x27ea0e);return _0x30a41a[_0x3568('0x11')]=_0x552a30,_0x30a41a['icon']=_0x394992,_0x30a41a[_0x3568('0x1')]({'attributes':{'class':_0x3568('0x0')+_0x11d082}}),_0x30a41a['on']('execute',()=>this[_0x3568('0xa')](_0x11d082)),_0x30a41a;}}
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { LocaleConfig } from '../config';
5
+ import type { LocaleConfig } from '../config.js';
6
6
  /**
7
7
  * Returns a function that formats the date to the set format.
8
8
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43ad=['\x27Last\x27\x20EEEE\x20hh:mma','function','\x27Yesterday\x27\x20hh:mma','dateTimeFormat','\x27Today\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','invalid-date-time-format'];(function(_0x5f093f,_0x43ad90){const _0x497cbb=function(_0x2b1d93){while(--_0x2b1d93){_0x5f093f['push'](_0x5f093f['shift']());}};_0x497cbb(++_0x43ad90);}(_0x43ad,0x7c));const _0x497c=function(_0x5f093f,_0x43ad90){_0x5f093f=_0x5f093f-0x0;let _0x497cbb=_0x43ad[_0x5f093f];return _0x497cbb;};import _0x581785 from'date-fns/format';import _0x3682fd from'date-fns/parseISO';import _0x2cff41 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x290564}from'ckeditor5/src/utils';export default function E(_0x3539cf={}){if(void 0x0!==_0x3539cf[_0x497c('0x5')]&&_0x497c('0x3')!=typeof _0x3539cf[_0x497c('0x5')])throw new _0x290564(_0x497c('0x1'));return _0x41b7eb=>{const _0x5e499e='string'==typeof _0x41b7eb?_0x3682fd(_0x41b7eb):_0x41b7eb,_0x48f0e3=new Date(),_0x2ba3f0=_0x2cff41(_0x48f0e3,_0x5e499e);return _0x3539cf[_0x497c('0x5')]?_0x3539cf[_0x497c('0x5')](_0x5e499e):_0x581785(_0x5e499e,0x0===_0x2ba3f0?_0x497c('0x6'):0x1===_0x2ba3f0?_0x497c('0x4'):_0x2ba3f0<0x7?_0x497c('0x2'):_0x497c('0x0'));};}
23
+ const _0x1fb9=['dateTimeFormat','MM-dd-yyyy\x20hh:mma','function','\x27Today\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','string'];(function(_0xd2a053,_0x1fb9b0){const _0x1c4578=function(_0x145ba2){while(--_0x145ba2){_0xd2a053['push'](_0xd2a053['shift']());}};_0x1c4578(++_0x1fb9b0);}(_0x1fb9,0x9b));const _0x1c45=function(_0xd2a053,_0x1fb9b0){_0xd2a053=_0xd2a053-0x0;let _0x1c4578=_0x1fb9[_0xd2a053];return _0x1c4578;};import _0x5421f5 from'date-fns/format/index.js';import _0x11ff26 from'date-fns/parseISO/index.js';import _0x5236ae from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x2d2488}from'ckeditor5/src/utils.js';export default function j(_0x2e5a2c={}){if(void 0x0!==_0x2e5a2c[_0x1c45('0x1')]&&_0x1c45('0x3')!=typeof _0x2e5a2c[_0x1c45('0x1')])throw new _0x2d2488('invalid-date-time-format');return _0x404810=>{const _0x1dd918=_0x1c45('0x0')==typeof _0x404810?_0x11ff26(_0x404810):_0x404810,_0x47114a=new Date(),_0x5f5cf2=_0x5236ae(_0x47114a,_0x1dd918);return _0x2e5a2c['dateTimeFormat']?_0x2e5a2c['dateTimeFormat'](_0x1dd918):_0x5421f5(_0x1dd918,0x0===_0x5f5cf2?_0x1c45('0x4'):0x1===_0x5f5cf2?'\x27Yesterday\x27\x20hh:mma':_0x5f5cf2<0x7?_0x1c45('0x5'):_0x1c45('0x2'));};}
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { EditingController, Marker } from 'ckeditor5/src/engine';
5
+ import type { EditingController, Marker } from 'ckeditor5/src/engine.js';
6
6
  /**
7
7
  * Returns a first DOM element mapped with the marker.
8
8
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4538=['domConverter','filter','length','mapper','sort','name','view','from','markerNameToElements','mapViewToDom','values','item','map'];(function(_0x5f28a8,_0x4538ae){const _0x417710=function(_0x1ea4f0){while(--_0x1ea4f0){_0x5f28a8['push'](_0x5f28a8['shift']());}};_0x417710(++_0x4538ae);}(_0x4538,0x1f4));const _0x4177=function(_0x5f28a8,_0x4538ae){_0x5f28a8=_0x5f28a8-0x0;let _0x417710=_0x4538[_0x5f28a8];return _0x417710;};import{first as _0x54ef67}from'ckeditor5/src/utils';export default function k(_0xe498fc,_0x3e8203){const _0x1b7ec8=_0xe498fc[_0x4177('0xa')][_0x4177('0x2')](_0x3e8203[_0x4177('0xc')]);if(!_0x1b7ec8)return null;const _0x1d8a59=_0x54ef67(_0x1b7ec8[_0x4177('0x4')]());return _0xe498fc[_0x4177('0x0')]['domConverter'][_0x4177('0x3')](_0x1d8a59)||null;}export function getAllMarkersDomElementsSorted(_0x5e3578,_0x5a27ef){if(0x0===_0x5a27ef[_0x4177('0x9')])return null;const _0x476755=[],_0x3fa5e0=_0x5e3578[_0x4177('0x0')][_0x4177('0x7')];for(const _0x491ae2 of _0x5a27ef){const _0x2d061c=_0x5e3578[_0x4177('0xa')]['markerNameToElements'](_0x491ae2[_0x4177('0xc')]);if(!_0x2d061c)continue;const _0x32a16e=Array[_0x4177('0x1')](_0x2d061c)[_0x4177('0x6')](_0x48c533=>_0x3fa5e0[_0x4177('0x3')](_0x48c533))[_0x4177('0x8')](_0x437103=>!!_0x437103);_0x476755['push'](..._0x32a16e);}if(0x0===_0x476755['length'])return null;const _0x3e12ef=[];for(const _0x2f1448 of _0x476755){const _0x4dc2fb=_0x2f1448['getClientRects']()[_0x4177('0x5')](0x0);_0x4dc2fb&&_0x3e12ef['push']({'x':_0x4dc2fb['x'],'y':_0x4dc2fb['y'],'domElement':_0x2f1448});}return 0x0===_0x3e12ef[_0x4177('0x9')]?null:(_0x3e12ef[_0x4177('0xb')]((_0xb1c381,_0x57c3e7)=>_0xb1c381['y']-_0x57c3e7['y']||_0xb1c381['x']-_0x57c3e7['x']),_0x3e12ef['map'](_0x49e0b9=>_0x49e0b9['domElement']));}
23
+ const _0x3ca3=['domConverter','getClientRects','length','mapViewToDom','map','name','view','sort','domElement','markerNameToElements','mapper'];(function(_0x503869,_0x3ca396){const _0x18ed9c=function(_0x34aa90){while(--_0x34aa90){_0x503869['push'](_0x503869['shift']());}};_0x18ed9c(++_0x3ca396);}(_0x3ca3,0x1b5));const _0x18ed=function(_0x503869,_0x3ca396){_0x503869=_0x503869-0x0;let _0x18ed9c=_0x3ca3[_0x503869];return _0x18ed9c;};import{first as _0x167e4f}from'ckeditor5/src/utils.js';export default function k(_0x1ff2d5,_0x177150){const _0x3288ba=_0x1ff2d5[_0x18ed('0x2')][_0x18ed('0x1')](_0x177150[_0x18ed('0x8')]);if(!_0x3288ba)return null;const _0x4d8c4e=_0x167e4f(_0x3288ba['values']());return _0x1ff2d5['view']['domConverter'][_0x18ed('0x6')](_0x4d8c4e)||null;}export function getAllMarkersDomElementsSorted(_0x5ab5b7,_0x9df3b8){if(0x0===_0x9df3b8[_0x18ed('0x5')])return null;const _0x4bcd45=[],_0x58048b=_0x5ab5b7[_0x18ed('0x9')][_0x18ed('0x3')];for(const _0x265a31 of _0x9df3b8){const _0x49e0b9=_0x5ab5b7[_0x18ed('0x2')][_0x18ed('0x1')](_0x265a31[_0x18ed('0x8')]);if(!_0x49e0b9)continue;const _0xfb28c0=Array['from'](_0x49e0b9)[_0x18ed('0x7')](_0x4c9d57=>_0x58048b['mapViewToDom'](_0x4c9d57))['filter'](_0x23fea2=>!!_0x23fea2);_0x4bcd45['push'](..._0xfb28c0);}if(0x0===_0x4bcd45['length'])return null;const _0x85bc8f=[];for(const _0x494294 of _0x4bcd45){const _0x14aca5=_0x494294[_0x18ed('0x4')]()['item'](0x0);_0x14aca5&&_0x85bc8f['push']({'x':_0x14aca5['x'],'y':_0x14aca5['y'],'domElement':_0x494294});}return 0x0===_0x85bc8f[_0x18ed('0x5')]?null:(_0x85bc8f[_0x18ed('0xa')]((_0x1667a6,_0x70fa75)=>_0x1667a6['y']-_0x70fa75['y']||_0x1667a6['x']-_0x70fa75['x']),_0x85bc8f['map'](_0x2a3fe7=>_0x2a3fe7[_0x18ed('0x0')]));}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36da=['boolean','object','keys','toString','charCodeAt','sign','string'];(function(_0x4cc31a,_0x36da94){const _0x274a1e=function(_0x51c6af){while(--_0x51c6af){_0x4cc31a['push'](_0x4cc31a['shift']());}};_0x274a1e(++_0x36da94);}(_0x36da,0x1a6));const _0x274a=function(_0x4cc31a,_0x36da94){_0x4cc31a=_0x4cc31a-0x0;let _0x274a1e=_0x36da[_0x4cc31a];return _0x274a1e;};export default function b(_0x3afe89){let _0xd2854=0x0,_0x2c62c3=0x0;for(const _0x71f7d1 of g(_0x3afe89))_0xd2854=(_0xd2854<<0x5)-_0xd2854+_0x71f7d1,_0xd2854&=_0xd2854,[_0xd2854,_0x2c62c3]=[_0x2c62c3,_0xd2854];return O(_0xd2854)+O(_0x2c62c3);}function*j(_0x424408){_0x424408?_0x274a('0x5')==typeof _0x424408?yield 0x1:Array['isArray'](_0x424408)?yield*function*(_0x599cce){for(const _0x518808 of _0x599cce)yield*j(_0x518808);}(_0x424408):_0x274a('0x6')==typeof _0x424408?yield*g(_0x424408):_0x274a('0x4')==typeof _0x424408?yield*A(_0x424408):'number'==typeof _0x424408&&(yield _0x424408):yield 0x0;}function*g(_0x5d2876){if(yield M('{'),_0x5d2876){const _0x911a5c=Object[_0x274a('0x0')](_0x5d2876)['sort']();for(const _0x43b8e4 of _0x911a5c){yield*A(_0x43b8e4),yield M(':');const _0x46827f=_0x5d2876[_0x43b8e4];yield*j(_0x46827f);}}yield M('}');}function*A(_0x523af3){yield M('\x22');for(const _0x12f90c of _0x523af3)yield M(_0x12f90c);yield M('\x22');}function M(_0x4bf549){return _0x4bf549[_0x274a('0x2')](0x0);}function O(_0x3cd833){return(_0x3cd833*=Math[_0x274a('0x3')](_0x3cd833))[_0x274a('0x1')](0x24);}
23
+ const _0x11b7=['charCodeAt','object','sign','toString','string'];(function(_0x48b9e5,_0x11b7b1){const _0x1ebf25=function(_0xa259c4){while(--_0xa259c4){_0x48b9e5['push'](_0x48b9e5['shift']());}};_0x1ebf25(++_0x11b7b1);}(_0x11b7,0x195));const _0x1ebf=function(_0x48b9e5,_0x11b7b1){_0x48b9e5=_0x48b9e5-0x0;let _0x1ebf25=_0x11b7[_0x48b9e5];return _0x1ebf25;};export default function b(_0x1353ec){let _0x2e77c1=0x0,_0x1a2c98=0x0;for(const _0x4a996a of A(_0x1353ec))_0x2e77c1=(_0x2e77c1<<0x5)-_0x2e77c1+_0x4a996a,_0x2e77c1&=_0x2e77c1,[_0x2e77c1,_0x1a2c98]=[_0x1a2c98,_0x2e77c1];return q(_0x2e77c1)+q(_0x1a2c98);}function*g(_0x301ff1){null==_0x301ff1||null==_0x301ff1?yield 0x12b9b0a1:0x0===_0x301ff1||!0x1===_0x301ff1?yield 0x0:0x1===_0x301ff1||0x1==_0x301ff1?yield 0x1:Array['isArray'](_0x301ff1)?yield*function*(_0x367ed1){for(const _0x237ebb of _0x367ed1)yield*g(_0x237ebb);}(_0x301ff1):_0x1ebf('0x1')==typeof _0x301ff1?yield*A(_0x301ff1):_0x1ebf('0x4')==typeof _0x301ff1?yield*M(_0x301ff1):'number'==typeof _0x301ff1&&(yield _0x301ff1);}function*A(_0x40c16e){if(yield O('{'),_0x40c16e){const _0x3eb291=Object['keys'](_0x40c16e)['sort']();for(const _0x353b9d of _0x3eb291){yield*M(_0x353b9d),yield O(':');const _0x1e3152=_0x40c16e[_0x353b9d];yield*g(_0x1e3152);}}yield O('}');}function*M(_0x8ed7f5){yield O('\x22');for(const _0x3b2f64 of _0x8ed7f5)yield O(_0x3b2f64);yield O('\x22');}function O(_0x4f6fe5){return _0x4f6fe5[_0x1ebf('0x0')](0x0);}function q(_0xd6381e){return(_0xd6381e*=Math[_0x1ebf('0x2')](_0xd6381e))[_0x1ebf('0x3')](0x24);}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module collaboration-core/utils/common-translations
7
7
  */
8
- import type { Editor, EditorConfig } from 'ckeditor5/src/core';
8
+ import type { Editor, EditorConfig } from 'ckeditor5/src/core.js';
9
9
  /**
10
10
  * A function that prepares config for internal editors removing all unnecessary plugins like RTC.
11
11
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b0e=['filter','DocumentOutline','get','requires','set','has','WebSocketGateway','extraPlugins','length','constructor','rootsAttributes','toolbar','names','context','WProofreader','string','find','every','plugins','concat','includes','WordCount','removePlugins','config','pluginName','initialData'];(function(_0x59c1b1,_0x3b0e57){const _0x334383=function(_0x5337a7){while(--_0x5337a7){_0x59c1b1['push'](_0x59c1b1['shift']());}};_0x334383(++_0x3b0e57);}(_0x3b0e,0x1dd));const _0x3343=function(_0x59c1b1,_0x3b0e57){_0x59c1b1=_0x59c1b1-0x0;let _0x334383=_0x3b0e[_0x59c1b1];return _0x334383;};const w=[_0x3343('0x10'),_0x3343('0x4'),_0x3343('0x2'),_0x3343('0x1')],W=[_0x3343('0x17'),'RevisionTracker','Autosave',_0x3343('0xc'),_0x3343('0x12'),_0x3343('0x5')];function v(_0x590e32,_0x529940,_0x3c8a2f,_0x30e9f0=[]){const _0x541453=_0x3343('0x6')==typeof _0x590e32?_0x3c8a2f[_0x3343('0x13')](_0x590e32)[_0x3343('0x0')]:_0x590e32,_0x17e606=_0x541453[_0x3343('0xf')]||_0x541453['name'];if(_0x529940[_0x3343('0x16')](_0x17e606))return _0x529940[_0x3343('0x13')](_0x17e606);if(_0x529940[_0x3343('0x15')](_0x17e606,!0x0),_0x17e606&&W[_0x3343('0xa')](_0x30e9f0)[_0x3343('0xb')](_0x17e606))return _0x529940[_0x3343('0x15')](_0x17e606,!0x1),!0x1;if(!_0x541453[_0x3343('0x14')])return _0x529940[_0x3343('0x15')](_0x17e606,!0x0),!0x0;const _0x18fcf5=_0x541453['requires'][_0x3343('0x8')](_0xffed6f=>v(_0xffed6f,_0x529940,_0x3c8a2f,_0x30e9f0));return _0x529940['set'](_0x17e606,_0x18fcf5),_0x18fcf5;}export default function D(_0x4e6732,_0x1aed28){const _0x2d78a9={};for(const _0x475f51 of _0x4e6732['config'][_0x3343('0x3')]())w[_0x3343('0xb')](_0x475f51)||(_0x2d78a9[_0x475f51]=_0x4e6732[_0x3343('0xe')]['get'](_0x475f51));const _0x4ed7a4=_0x2d78a9[_0x3343('0x9')]||[],_0x397934=_0x4e6732[_0x3343('0x0')]['builtinPlugins']||[],_0x27d33b=_0x4ed7a4[_0x3343('0x19')]?_0x4ed7a4:_0x397934,_0x5ec248=_0x2d78a9[_0x3343('0x18')]||[];delete _0x2d78a9[_0x3343('0x18')];const _0x4f397f=_0x2d78a9[_0x3343('0xd')]||[];delete _0x2d78a9[_0x3343('0xd')];const _0x5e6484=_0x4e6732['_context'][_0x3343('0xe')][_0x3343('0x13')](_0x3343('0x9'))||[],_0x133b6f=_0x27d33b['concat'](_0x5ec248)[_0x3343('0xa')](_0x5e6484)['map'](_0x4cc82e=>'string'==typeof _0x4cc82e?_0x397934[_0x3343('0x7')](_0x45d43b=>_0x45d43b['pluginName']==_0x4cc82e):_0x4cc82e)['filter'](_0x80b2fb=>!_0x4f397f[_0x3343('0xb')](_0x80b2fb)&&!_0x4f397f['includes'](_0x80b2fb[_0x3343('0xf')])),_0x76dc31=Array['from'](new Set(_0x133b6f)),_0x2c4252=new Map();return _0x2d78a9['plugins']=_0x76dc31[_0x3343('0x11')](_0x186792=>v(_0x186792,_0x2c4252,_0x4e6732[_0x3343('0x9')],_0x1aed28)),_0x2d78a9;}
23
+ const _0x3620=['Autosave','WordCount','map','config','get','string','toolbar','extraPlugins','RevisionTracker','context','initialData','pluginName','WebSocketGateway','set','removePlugins','rootsAttributes','has','requires','find','concat','every','filter','WProofreader','builtinPlugins','includes','plugins'];(function(_0x269e2a,_0x36200e){const _0x22b72a=function(_0x1da529){while(--_0x1da529){_0x269e2a['push'](_0x269e2a['shift']());}};_0x22b72a(++_0x36200e);}(_0x3620,0x106));const _0x22b7=function(_0x269e2a,_0x36200e){_0x269e2a=_0x269e2a-0x0;let _0x22b72a=_0x3620[_0x269e2a];return _0x22b72a;};const w=[_0x22b7('0x8'),_0x22b7('0x7'),_0x22b7('0x4'),_0x22b7('0xd')],W=[_0x22b7('0xa'),_0x22b7('0x6'),_0x22b7('0x18'),_0x22b7('0x19'),'DocumentOutline',_0x22b7('0x14')];function v(_0x23c3fb,_0x416e97,_0x244301,_0x492c72=[]){const _0x4e01a9='string'==typeof _0x23c3fb?_0x244301[_0x22b7('0x2')](_0x23c3fb)['constructor']:_0x23c3fb,_0x52672a=_0x4e01a9[_0x22b7('0x9')]||_0x4e01a9['name'];if(_0x416e97[_0x22b7('0xe')](_0x52672a))return _0x416e97['get'](_0x52672a);if(_0x416e97[_0x22b7('0xb')](_0x52672a,!0x0),_0x52672a&&W[_0x22b7('0x11')](_0x492c72)[_0x22b7('0x16')](_0x52672a))return _0x416e97[_0x22b7('0xb')](_0x52672a,!0x1),!0x1;if(!_0x4e01a9[_0x22b7('0xf')])return _0x416e97['set'](_0x52672a,!0x0),!0x0;const _0x103fb3=_0x4e01a9[_0x22b7('0xf')][_0x22b7('0x12')](_0x3bc43d=>v(_0x3bc43d,_0x416e97,_0x244301,_0x492c72));return _0x416e97[_0x22b7('0xb')](_0x52672a,_0x103fb3),_0x103fb3;}export default function D(_0x137982,_0x26b9a9){const _0x1cb82c={};for(const _0x18bdae of _0x137982['config']['names']())w[_0x22b7('0x16')](_0x18bdae)||(_0x1cb82c[_0x18bdae]=_0x137982['config'][_0x22b7('0x2')](_0x18bdae));const _0xab0447=_0x1cb82c[_0x22b7('0x17')]||[],_0x217738=_0x137982['constructor'][_0x22b7('0x15')]||[],_0x192f89=_0xab0447['length']?_0xab0447:_0x217738,_0x5a52c4=_0x1cb82c[_0x22b7('0x5')]||[];delete _0x1cb82c['extraPlugins'];const _0x2c2b84=_0x1cb82c[_0x22b7('0xc')]||[];delete _0x1cb82c[_0x22b7('0xc')];const _0x2112d3=_0x137982['_context'][_0x22b7('0x1')]['get'](_0x22b7('0x17'))||[],_0x35be5c=_0x192f89[_0x22b7('0x11')](_0x5a52c4)['concat'](_0x2112d3)[_0x22b7('0x0')](_0x26a232=>_0x22b7('0x3')==typeof _0x26a232?_0x217738[_0x22b7('0x10')](_0x4286a2=>_0x4286a2[_0x22b7('0x9')]==_0x26a232):_0x26a232)['filter'](_0x8164c9=>!_0x2c2b84[_0x22b7('0x16')](_0x8164c9)&&!_0x2c2b84[_0x22b7('0x16')](_0x8164c9['pluginName'])),_0x41f64c=Array['from'](new Set(_0x35be5c)),_0xd3bc9=new Map();return _0x1cb82c[_0x22b7('0x17')]=_0x41f64c[_0x22b7('0x13')](_0x3a77d5=>v(_0x3a77d5,_0xd3bc9,_0x137982[_0x22b7('0x17')],_0x26b9a9)),_0x1cb82c;}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module collaboration-core/utils/surroundingmarkersdetector
7
7
  */
8
- import type { Marker, Model } from 'ckeditor5/src/engine';
8
+ import type { Marker, Model } from 'ckeditor5/src/engine.js';
9
9
  /**
10
10
  * A utility that responds to range changes in the document selection and detects which markers' ranges
11
11
  * touch or contain (surround) the document selection's focus.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30a4=['containsPosition','push','end','getRange','isEqual','change:range','includes','markers','length','focus','document','selection'];(function(_0x25e302,_0x30a47a){const _0x564172=function(_0x23ba1b){while(--_0x23ba1b){_0x25e302['push'](_0x25e302['shift']());}};_0x564172(++_0x30a47a);}(_0x30a4,0x103));const _0x5641=function(_0x25e302,_0x30a47a){_0x25e302=_0x25e302-0x0;let _0x564172=_0x30a4[_0x25e302];return _0x564172;};export default function q(_0x327a59,_0x4a80d4){const _0x42e373=[];_0x327a59[_0x5641('0x3')][_0x5641('0x4')]['on'](_0x5641('0xa'),()=>{const _0x24b494=function(_0x1a22f5,_0x538cac){const _0x12b591=[];for(const _0x43a346 of _0x1a22f5[_0x5641('0x0')]){const _0x24886c=_0x43a346[_0x5641('0x8')]();(_0x24886c[_0x5641('0x5')](_0x538cac)||_0x24886c['start'][_0x5641('0x9')](_0x538cac)||_0x24886c[_0x5641('0x7')]['isEqual'](_0x538cac))&&_0x12b591[_0x5641('0x6')](_0x43a346);}return _0x12b591;}(_0x327a59,_0x327a59[_0x5641('0x3')][_0x5641('0x4')][_0x5641('0x2')]),_0x336c07=[],_0x254e8e=[],_0x53da59=[];for(const _0x4f705c of _0x42e373)_0x24b494[_0x5641('0xb')](_0x4f705c)||_0x336c07[_0x5641('0x6')](_0x4f705c);for(const _0x2b96c3 of _0x24b494)_0x42e373['includes'](_0x2b96c3)||_0x254e8e[_0x5641('0x6')](_0x2b96c3),_0x53da59['push'](_0x2b96c3);(_0x336c07[_0x5641('0x1')]||_0x254e8e[_0x5641('0x1')])&&_0x4a80d4({'left':_0x336c07,'entered':_0x254e8e}),_0x42e373[_0x5641('0x1')]=0x0,_0x42e373[_0x5641('0x6')](..._0x53da59);});}
23
+ const _0x3486=['length','isEqual','document','start','push','change:range','containsPosition','includes','end','markers','getRange'];(function(_0x306409,_0x3486c3){const _0x47ed40=function(_0x56078f){while(--_0x56078f){_0x306409['push'](_0x306409['shift']());}};_0x47ed40(++_0x3486c3);}(_0x3486,0x12f));const _0x47ed=function(_0x306409,_0x3486c3){_0x306409=_0x306409-0x0;let _0x47ed40=_0x3486[_0x306409];return _0x47ed40;};export default function z(_0x331a3f,_0x7a0ec0){const _0x53d811=[];_0x331a3f[_0x47ed('0x7')]['selection']['on'](_0x47ed('0xa'),()=>{const _0x3c1ae1=function(_0x433055,_0x273cfe){const _0x5e4e0a=[];for(const _0x2dd0fd of _0x433055[_0x47ed('0x3')]){const _0x19e5fa=_0x2dd0fd[_0x47ed('0x4')]();(_0x19e5fa[_0x47ed('0x0')](_0x273cfe)||_0x19e5fa[_0x47ed('0x8')]['isEqual'](_0x273cfe)||_0x19e5fa[_0x47ed('0x2')][_0x47ed('0x6')](_0x273cfe))&&_0x5e4e0a[_0x47ed('0x9')](_0x2dd0fd);}return _0x5e4e0a;}(_0x331a3f,_0x331a3f[_0x47ed('0x7')]['selection']['focus']),_0x295dec=[],_0x570e19=[],_0x438be8=[];for(const _0x45c8d0 of _0x53d811)_0x3c1ae1[_0x47ed('0x1')](_0x45c8d0)||_0x295dec[_0x47ed('0x9')](_0x45c8d0);for(const _0x52d066 of _0x3c1ae1)_0x53d811[_0x47ed('0x1')](_0x52d066)||_0x570e19[_0x47ed('0x9')](_0x52d066),_0x438be8[_0x47ed('0x9')](_0x52d066);(_0x295dec['length']||_0x570e19[_0x47ed('0x5')])&&_0x7a0ec0({'left':_0x295dec,'entered':_0x570e19}),_0x53d811[_0x47ed('0x5')]=0x0,_0x53d811[_0x47ed('0x9')](..._0x438be8);});}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**