@ckeditor/ckeditor5-revision-history 35.3.2 → 36.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 (145) hide show
  1. package/build/revision-history.js +3 -2
  2. package/build/translations/af.js +1 -0
  3. package/build/translations/ar.js +1 -0
  4. package/build/translations/az.js +1 -0
  5. package/build/translations/bg.js +1 -0
  6. package/build/translations/bn.js +1 -0
  7. package/build/translations/bs.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/cs.js +1 -0
  10. package/build/translations/da.js +1 -0
  11. package/build/translations/de-ch.js +1 -0
  12. package/build/translations/de.js +1 -0
  13. package/build/translations/el.js +1 -0
  14. package/build/translations/en-au.js +1 -0
  15. package/build/translations/en-gb.js +1 -0
  16. package/build/translations/es-co.js +1 -0
  17. package/build/translations/es.js +1 -0
  18. package/build/translations/et.js +1 -0
  19. package/build/translations/fa.js +1 -0
  20. package/build/translations/fi.js +1 -0
  21. package/build/translations/fr.js +1 -0
  22. package/build/translations/gl.js +1 -0
  23. package/build/translations/he.js +1 -0
  24. package/build/translations/hi.js +1 -0
  25. package/build/translations/hr.js +1 -0
  26. package/build/translations/hu.js +1 -0
  27. package/build/translations/id.js +1 -0
  28. package/build/translations/it.js +1 -0
  29. package/build/translations/ja.js +1 -0
  30. package/build/translations/jv.js +1 -0
  31. package/build/translations/ko.js +1 -0
  32. package/build/translations/ku.js +1 -0
  33. package/build/translations/lt.js +1 -0
  34. package/build/translations/lv.js +1 -0
  35. package/build/translations/ms.js +1 -0
  36. package/build/translations/ne.js +1 -0
  37. package/build/translations/nl.js +1 -0
  38. package/build/translations/no.js +1 -0
  39. package/build/translations/pl.js +1 -0
  40. package/build/translations/pt-br.js +1 -0
  41. package/build/translations/pt.js +1 -0
  42. package/build/translations/ro.js +1 -0
  43. package/build/translations/ru.js +1 -0
  44. package/build/translations/sk.js +1 -0
  45. package/build/translations/sr-latn.js +1 -0
  46. package/build/translations/sr.js +1 -0
  47. package/build/translations/sv.js +1 -0
  48. package/build/translations/th.js +1 -0
  49. package/build/translations/tk.js +1 -0
  50. package/build/translations/tr.js +1 -0
  51. package/build/translations/tt.js +1 -0
  52. package/build/translations/ug.js +1 -0
  53. package/build/translations/uk.js +1 -0
  54. package/build/translations/ur.js +1 -0
  55. package/build/translations/vi.js +1 -0
  56. package/build/translations/zh-cn.js +1 -0
  57. package/build/translations/zh.js +1 -0
  58. package/lang/translations/af.po +1 -1
  59. package/lang/translations/ar.po +1 -1
  60. package/lang/translations/az.po +1 -1
  61. package/lang/translations/bg.po +1 -1
  62. package/lang/translations/bn.po +1 -1
  63. package/lang/translations/bs.po +1 -1
  64. package/lang/translations/ca.po +1 -1
  65. package/lang/translations/cs.po +1 -1
  66. package/lang/translations/da.po +1 -1
  67. package/lang/translations/de-ch.po +1 -1
  68. package/lang/translations/de.po +1 -1
  69. package/lang/translations/el.po +1 -1
  70. package/lang/translations/en-au.po +1 -1
  71. package/lang/translations/en-gb.po +1 -1
  72. package/lang/translations/en.po +1 -1
  73. package/lang/translations/es-co.po +1 -1
  74. package/lang/translations/es.po +1 -1
  75. package/lang/translations/et.po +1 -1
  76. package/lang/translations/fa.po +1 -1
  77. package/lang/translations/fi.po +1 -1
  78. package/lang/translations/fr.po +1 -1
  79. package/lang/translations/gl.po +1 -1
  80. package/lang/translations/he.po +1 -1
  81. package/lang/translations/hi.po +1 -1
  82. package/lang/translations/hr.po +1 -1
  83. package/lang/translations/hu.po +1 -1
  84. package/lang/translations/id.po +1 -1
  85. package/lang/translations/it.po +1 -1
  86. package/lang/translations/ja.po +1 -1
  87. package/lang/translations/jv.po +1 -1
  88. package/lang/translations/ko.po +1 -1
  89. package/lang/translations/ku.po +1 -1
  90. package/lang/translations/lt.po +1 -1
  91. package/lang/translations/lv.po +1 -1
  92. package/lang/translations/ms.po +1 -1
  93. package/lang/translations/ne.po +1 -1
  94. package/lang/translations/nl.po +1 -1
  95. package/lang/translations/no.po +1 -1
  96. package/lang/translations/pl.po +1 -1
  97. package/lang/translations/pt-br.po +1 -1
  98. package/lang/translations/pt.po +1 -1
  99. package/lang/translations/ro.po +1 -1
  100. package/lang/translations/ru.po +1 -1
  101. package/lang/translations/sk.po +1 -1
  102. package/lang/translations/sr-latn.po +1 -1
  103. package/lang/translations/sr.po +1 -1
  104. package/lang/translations/sv.po +1 -1
  105. package/lang/translations/th.po +1 -1
  106. package/lang/translations/tk.po +1 -1
  107. package/lang/translations/tr.po +1 -1
  108. package/lang/translations/tt.po +1 -1
  109. package/lang/translations/ug.po +2 -2
  110. package/lang/translations/uk.po +1 -1
  111. package/lang/translations/ur.po +1 -1
  112. package/lang/translations/vi.po +1 -1
  113. package/lang/translations/zh-cn.po +1 -1
  114. package/lang/translations/zh.po +1 -1
  115. package/package.json +7 -7
  116. package/src/changeitem.js +2 -2
  117. package/src/editor/revisionviewereditor.js +2 -2
  118. package/src/editor/revisionviewereditorui.js +2 -2
  119. package/src/editor/revisionviewereditoruiview.js +2 -2
  120. package/src/index.js +1 -1
  121. package/src/revision.js +2 -2
  122. package/src/revisiondiff.js +2 -2
  123. package/src/revisionhistory.js +2 -2
  124. package/src/revisionsrepository.js +2 -2
  125. package/src/revisiontracker.js +2 -2
  126. package/src/revisionviewer.js +2 -2
  127. package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
  128. package/src/ui/revision/revisionauthorview.js +2 -2
  129. package/src/ui/revision/revisionnameview.js +2 -2
  130. package/src/ui/revision/revisionview.js +2 -2
  131. package/src/ui/revision/subrevisioncollapserview.js +2 -2
  132. package/src/ui/revision/subrevisionview.js +2 -2
  133. package/src/ui/revision/utils.js +2 -2
  134. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
  135. package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
  136. package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
  137. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
  138. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
  139. package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
  140. package/src/ui/revisionssidebar/utils.js +2 -2
  141. package/src/ui/revisionviewer/changedetailsview.js +2 -2
  142. package/src/ui/revisionviewer/changesnavigationview.js +2 -2
  143. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
  144. package/src/ui/revisionviewer/revisionviewerui.js +2 -2
  145. package/src/utils/common-translations.js +2 -2
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -92,7 +92,7 @@ msgstr[1] ""
92
92
 
93
93
  msgctxt "Edit: (2 of 5)"
94
94
  msgid "X_OF_Y_CHANGES"
95
- msgstr ""
95
+ msgstr "%0 / %1"
96
96
 
97
97
  msgctxt "The label for a button that highlights previous change in revision viewer."
98
98
  msgid "Show previous change"
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
1
+ # Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
2
  #
3
3
  # !!! IMPORTANT !!!
4
4
  #
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-revision-history",
3
- "version": "35.3.2",
3
+ "version": "36.0.0",
4
4
  "description": "Document revision history feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -25,12 +25,12 @@
25
25
  ],
26
26
  "main": "src/index.js",
27
27
  "dependencies": {
28
- "@ckeditor/ckeditor5-core": "^35.3.2",
29
- "@ckeditor/ckeditor5-ui": "^35.3.2",
30
- "@ckeditor/ckeditor5-undo": "^35.3.2",
31
- "@ckeditor/ckeditor5-editor-classic": "^35.3.2",
32
- "ckeditor5": "^35.3.2",
33
- "ckeditor5-collaboration": "^35.3.2",
28
+ "@ckeditor/ckeditor5-core": "^36.0.0",
29
+ "@ckeditor/ckeditor5-ui": "^36.0.0",
30
+ "@ckeditor/ckeditor5-undo": "^36.0.0",
31
+ "@ckeditor/ckeditor5-editor-classic": "^36.0.0",
32
+ "ckeditor5": "^36.0.0",
33
+ "ckeditor5-collaboration": "^36.0.0",
34
34
  "lodash-es": "^4.17.15",
35
35
  "luxon": "^1.25.0"
36
36
  }
package/src/changeitem.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x43d7=['author','data','set','type','createdAt','toJSON'];(function(_0x35548a,_0x43d77a){var _0x3785f4=function(_0x3385bd){while(--_0x3385bd){_0x35548a['push'](_0x35548a['shift']());}};_0x3785f4(++_0x43d77a);}(_0x43d7,0x144));var _0x3785=function(_0x35548a,_0x43d77a){_0x35548a=_0x35548a-0x0;var _0x3785f4=_0x43d7[_0x35548a];return _0x3785f4;};import{ObservableMixin as _0x360e96,mix as _0x50b4e7,uid as _0x34db69}from'ckeditor5/src/utils';export default class h{constructor(_0x530db1){this['id']=_0x530db1['id']||_0x34db69(),this[_0x3785('0x0')]=_0x530db1[_0x3785('0x0')],this['type']=_0x530db1[_0x3785('0x3')],this[_0x3785('0x1')]=_0x530db1['data']||{},this[_0x3785('0x2')](_0x3785('0x4'),_0x530db1[_0x3785('0x4')]);}[_0x3785('0x5')](){return{'id':this['id'],'authorId':this['author']['id'],'type':this[_0x3785('0x3')],'data':this[_0x3785('0x1')],'createdAt':this[_0x3785('0x4')]};}}_0x50b4e7(h,_0x360e96);
23
+ var _0x1a05=['data','toJSON','set','author','type','createdAt'];(function(_0x17115b,_0x1a057b){var _0x2464a9=function(_0x1602a4){while(--_0x1602a4){_0x17115b['push'](_0x17115b['shift']());}};_0x2464a9(++_0x1a057b);}(_0x1a05,0xc4));var _0x2464=function(_0x17115b,_0x1a057b){_0x17115b=_0x17115b-0x0;var _0x2464a9=_0x1a05[_0x17115b];return _0x2464a9;};import{ObservableMixin as _0x4d5f79,mix as _0x4e0e1e,uid as _0x278fff}from'ckeditor5/src/utils';export default class h{constructor(_0x266422){this['id']=_0x266422['id']||_0x278fff(),this[_0x2464('0x5')]=_0x266422['author'],this[_0x2464('0x0')]=_0x266422['type'],this[_0x2464('0x2')]=_0x266422[_0x2464('0x2')]||{},this[_0x2464('0x4')](_0x2464('0x1'),_0x266422[_0x2464('0x1')]);}[_0x2464('0x3')](){return{'id':this['id'],'authorId':this[_0x2464('0x5')]['id'],'type':this[_0x2464('0x0')],'data':this['data'],'createdAt':this['createdAt']};}}_0x4e0e1e(h,_0x4d5f79);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x45d2=['editing','model','updateSourceElement','create','sourceElement','get','createRoot','init','initPlugins','document','view','destroy'];(function(_0x513b04,_0x45d217){const _0x1cdcba=function(_0x3626ff){while(--_0x3626ff){_0x513b04['push'](_0x513b04['shift']());}};_0x1cdcba(++_0x45d217);}(_0x45d2,0x1b9));const _0x1cdc=function(_0x513b04,_0x45d217){_0x513b04=_0x513b04-0x0;let _0x1cdcba=_0x45d2[_0x513b04];return _0x1cdcba;};import{Editor as _0x4bf255,DataApiMixin as _0x421db9,ElementApiMixin as _0x5e4630}from'ckeditor5/src/core';import{mix as _0x1a5363}from'ckeditor5/src/utils';import _0xf2ae9e from'./revisionviewereditorui';import _0x4430a8 from'./revisionviewereditoruiview';export default class w extends _0x4bf255{constructor(_0x3a06fc,_0x494461){super(_0x494461),this[_0x1cdc('0x7')]=_0x3a06fc,this[_0x1cdc('0x4')][_0x1cdc('0x0')][_0x1cdc('0x9')]();const _0x2758de=new _0x4430a8(this['locale'],this[_0x1cdc('0x3')][_0x1cdc('0x1')],{'shouldToolbarGroupWhenFull':!0x0});this['ui']=new _0xf2ae9e(this,_0x2758de);}[_0x1cdc('0x2')](){return this[_0x1cdc('0x5')](),this['ui'][_0x1cdc('0x2')](),super['destroy']();}static async[_0x1cdc('0x6')](_0x1a33a9,_0x1a6086){const _0x305736=new this(_0x1a33a9,_0x1a6086);return await _0x305736[_0x1cdc('0xb')](),await _0x305736['ui'][_0x1cdc('0xa')](_0x1a33a9),await _0x305736['data'][_0x1cdc('0xa')](_0x305736['config'][_0x1cdc('0x8')]('initialData')),_0x305736['fire']('ready'),_0x305736;}}_0x1a5363(w,_0x421db9),_0x1a5363(w,_0x5e4630);
23
+ const _0x4280=['createRoot','initialData','config','locale','create','sourceElement','fire','destroy','init','document','data','editing','get','view','updateSourceElement','model'];(function(_0x415b19,_0x428089){const _0x198d5c=function(_0x5d423b){while(--_0x5d423b){_0x415b19['push'](_0x415b19['shift']());}};_0x198d5c(++_0x428089);}(_0x4280,0x176));const _0x198d=function(_0x415b19,_0x428089){_0x415b19=_0x415b19-0x0;let _0x198d5c=_0x4280[_0x415b19];return _0x198d5c;};import{Editor as _0x4af650,DataApiMixin as _0x50db7d,ElementApiMixin as _0x10d4d9}from'ckeditor5/src/core';import{mix as _0x372817}from'ckeditor5/src/utils';import _0x4dabc6 from'./revisionviewereditorui';import _0x5abd3a from'./revisionviewereditoruiview';export default class m extends _0x4af650{constructor(_0x223435,_0x45e0bc){super(_0x45e0bc),this[_0x198d('0xf')]=_0x223435,this[_0x198d('0x9')][_0x198d('0x3')][_0x198d('0xa')]();const _0x27d2fe=new _0x5abd3a(this[_0x198d('0xd')],this[_0x198d('0x5')][_0x198d('0x7')],{'shouldToolbarGroupWhenFull':!0x0});this['ui']=new _0x4dabc6(this,_0x27d2fe);}[_0x198d('0x1')](){return this[_0x198d('0x8')](),this['ui'][_0x198d('0x1')](),super[_0x198d('0x1')]();}static async[_0x198d('0xe')](_0x288a96,_0x1ac789){const _0x1fe488=new this(_0x288a96,_0x1ac789);return await _0x1fe488['initPlugins'](),await _0x1fe488['ui'][_0x198d('0x2')](_0x288a96),await _0x1fe488[_0x198d('0x4')][_0x198d('0x2')](_0x1fe488[_0x198d('0xc')][_0x198d('0x6')](_0x198d('0xb'))),_0x1fe488[_0x198d('0x0')]('ready'),_0x1fe488;}}_0x372817(m,_0x50db7d),_0x372817(m,_0x10d4d9);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x9229=['attachDomRoot','restore','isActive','destroy','_elementReplacer','get','componentFactory','render','rootName','element','ready','getRoot','limiterElement','bind','viewportOffset','fire','focusTracker','viewportTopOffset','stickyPanel','name','_toolbarConfig','addToolbar','editor','toolbar','document','view','detachDomRoot','config','replace','editable','_initToolbar','isFocused'];(function(_0x3c4360,_0x9229e9){const _0x19ff2e=function(_0x30890c){while(--_0x30890c){_0x3c4360['push'](_0x3c4360['shift']());}};_0x19ff2e(++_0x9229e9);}(_0x9229,0x161));const _0x19ff=function(_0x3c4360,_0x9229e9){_0x3c4360=_0x3c4360-0x0;let _0x19ff2e=_0x9229[_0x3c4360];return _0x19ff2e;};import{EditorUI as _0x4100a4}from'ckeditor5/src/core';import{normalizeToolbarConfig as _0x238d26}from'ckeditor5/src/ui';import{ElementReplacer as _0x268313}from'ckeditor5/src/utils';export default class ot extends _0x4100a4{constructor(_0x4fedab,_0x5cec18){super(_0x4fedab),this[_0x19ff('0x18')]=_0x5cec18,this[_0x19ff('0x13')]=_0x238d26(_0x4fedab[_0x19ff('0x1a')][_0x19ff('0x4')]('toolbar')),this[_0x19ff('0x3')]=new _0x268313();}get[_0x19ff('0x8')](){return this[_0x19ff('0x18')][_0x19ff('0x8')];}['init'](_0x1bf0b4){const _0x4579b2=this[_0x19ff('0x15')],_0x31e4ed=this[_0x19ff('0x18')],_0x2952b1=_0x4579b2['editing'][_0x19ff('0x18')],_0x19d12b=_0x31e4ed[_0x19ff('0x1c')],_0xf2d14e=_0x2952b1[_0x19ff('0x17')][_0x19ff('0xa')]();_0x19d12b['name']=_0xf2d14e[_0x19ff('0x7')],_0x31e4ed[_0x19ff('0x6')]();const _0x440b13=_0x19d12b['element'];this['setEditableElement'](_0x19d12b[_0x19ff('0x12')],_0x440b13),_0x31e4ed[_0x19ff('0x1c')]['bind'](_0x19ff('0x1e'))['to'](this['focusTracker']),_0x2952b1[_0x19ff('0x1f')](_0x440b13),this[_0x19ff('0x3')][_0x19ff('0x1b')](_0x1bf0b4,this['element']),this[_0x19ff('0x1d')](),this[_0x19ff('0xe')](_0x19ff('0x9'));}['destroy'](){super[_0x19ff('0x2')]();const _0x5c0094=this['view'],_0x3935b1=this[_0x19ff('0x15')]['editing'][_0x19ff('0x18')];this[_0x19ff('0x3')][_0x19ff('0x0')](),_0x3935b1[_0x19ff('0x19')](_0x5c0094[_0x19ff('0x1c')][_0x19ff('0x12')]),_0x5c0094[_0x19ff('0x2')]();}['_initToolbar'](){const _0x147fef=this['view'];_0x147fef[_0x19ff('0x11')][_0x19ff('0xc')](_0x19ff('0x1'))['to'](this[_0x19ff('0xf')],_0x19ff('0x1e')),_0x147fef[_0x19ff('0x11')][_0x19ff('0xb')]=_0x147fef['element'],_0x147fef[_0x19ff('0x11')][_0x19ff('0xc')](_0x19ff('0x10'))['to'](this,_0x19ff('0xd'),({top:_0x5161e4})=>_0x5161e4),_0x147fef[_0x19ff('0x16')]['fillFromConfig'](this[_0x19ff('0x13')],this[_0x19ff('0x5')]),this[_0x19ff('0x14')](_0x147fef['toolbar']);}}
23
+ const _0x29ce=['_initToolbar','stickyPanel','get','viewportOffset','ready','name','replace','config','_elementReplacer','editor','addToolbar','fillFromConfig','bind','getRoot','destroy','init','_toolbarConfig','setEditableElement','toolbar','focusTracker','rootName','componentFactory','attachDomRoot','view','viewportTopOffset','element','limiterElement','editable','restore'];(function(_0x380aa5,_0x29ce22){const _0x4a1085=function(_0x50f7fa){while(--_0x50f7fa){_0x380aa5['push'](_0x380aa5['shift']());}};_0x4a1085(++_0x29ce22);}(_0x29ce,0x72));const _0x4a10=function(_0x380aa5,_0x29ce22){_0x380aa5=_0x380aa5-0x0;let _0x4a1085=_0x29ce[_0x380aa5];return _0x4a1085;};import{EditorUI as _0x20331d,normalizeToolbarConfig as _0x254963}from'ckeditor5/src/ui';import{ElementReplacer as _0xd94cb5}from'ckeditor5/src/utils';export default class rt extends _0x20331d{constructor(_0x3d1a7a,_0x65fcd8){super(_0x3d1a7a),this[_0x4a10('0x19')]=_0x65fcd8,this[_0x4a10('0x12')]=_0x254963(_0x3d1a7a[_0x4a10('0x9')][_0x4a10('0x4')](_0x4a10('0x14'))),this['_elementReplacer']=new _0xd94cb5();}get[_0x4a10('0x1b')](){return this[_0x4a10('0x19')][_0x4a10('0x1b')];}[_0x4a10('0x11')](_0x2db08a){const _0x1fe05d=this[_0x4a10('0xb')],_0x1f4817=this[_0x4a10('0x19')],_0x3ead66=_0x1fe05d['editing'][_0x4a10('0x19')],_0x37b051=_0x1f4817[_0x4a10('0x0')],_0x574242=_0x3ead66['document'][_0x4a10('0xf')]();_0x37b051[_0x4a10('0x7')]=_0x574242[_0x4a10('0x16')],_0x1f4817['render']();const _0x332189=_0x37b051['element'];this[_0x4a10('0x13')](_0x37b051[_0x4a10('0x7')],_0x332189),_0x1f4817[_0x4a10('0x0')][_0x4a10('0xe')]('isFocused')['to'](this[_0x4a10('0x15')]),_0x3ead66[_0x4a10('0x18')](_0x332189),this['_elementReplacer'][_0x4a10('0x8')](_0x2db08a,this[_0x4a10('0x1b')]),this['_initToolbar'](),this['fire'](_0x4a10('0x6'));}[_0x4a10('0x10')](){super[_0x4a10('0x10')]();const _0x3dbbe0=this[_0x4a10('0x19')],_0x25e40d=this[_0x4a10('0xb')]['editing'][_0x4a10('0x19')];this[_0x4a10('0xa')][_0x4a10('0x1')](),_0x25e40d['detachDomRoot'](_0x3dbbe0[_0x4a10('0x0')][_0x4a10('0x7')]),_0x3dbbe0[_0x4a10('0x10')]();}[_0x4a10('0x2')](){const _0x42fcb2=this['view'];_0x42fcb2[_0x4a10('0x3')]['bind']('isActive')['to'](this[_0x4a10('0x15')],'isFocused'),_0x42fcb2[_0x4a10('0x3')][_0x4a10('0x1c')]=_0x42fcb2[_0x4a10('0x1b')],_0x42fcb2[_0x4a10('0x3')][_0x4a10('0xe')](_0x4a10('0x1a'))['to'](this,_0x4a10('0x5'),({top:_0x2d3447})=>_0x2d3447),_0x42fcb2[_0x4a10('0x14')][_0x4a10('0xd')](this[_0x4a10('0x12')],this[_0x4a10('0x17')]),this[_0x4a10('0xc')](_0x42fcb2[_0x4a10('0x14')]);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x2cff=['content','render','add','toolbar','stickyPanel','editable','shouldToolbarGroupWhenFull','main','top'];(function(_0x1d47b5,_0x2cff72){var _0x527237=function(_0x385e75){while(--_0x385e75){_0x1d47b5['push'](_0x1d47b5['shift']());}};_0x527237(++_0x2cff72);}(_0x2cff,0xdf));var _0x5272=function(_0x1d47b5,_0x2cff72){_0x1d47b5=_0x1d47b5-0x0;var _0x527237=_0x2cff[_0x1d47b5];return _0x527237;};import{BoxedEditorUIView as _0x1f7f15,InlineEditableUIView as _0x3de4f0,StickyPanelView as _0x5585af,ToolbarView as _0x45a9de}from'ckeditor5/src/ui';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class at extends _0x1f7f15{constructor(_0x43e243,_0x23cef5,_0x38ffac={}){super(_0x43e243),this[_0x5272('0x6')]=new _0x5585af(_0x43e243),this['toolbar']=new _0x45a9de(_0x43e243,{'shouldGroupWhenFull':_0x38ffac[_0x5272('0x8')]}),this[_0x5272('0x7')]=new _0x3de4f0(_0x43e243,_0x23cef5);}[_0x5272('0x3')](){super[_0x5272('0x3')](),this['stickyPanel'][_0x5272('0x2')][_0x5272('0x4')](this[_0x5272('0x5')]),this[_0x5272('0x1')][_0x5272('0x4')](this[_0x5272('0x6')]),this[_0x5272('0x0')][_0x5272('0x4')](this[_0x5272('0x7')]);}}
23
+ var _0x2881=['stickyPanel','add','main','toolbar','render','shouldToolbarGroupWhenFull','editable'];(function(_0x230a9d,_0x28812b){var _0x1d5254=function(_0x44d323){while(--_0x44d323){_0x230a9d['push'](_0x230a9d['shift']());}};_0x1d5254(++_0x28812b);}(_0x2881,0xf7));var _0x1d52=function(_0x230a9d,_0x28812b){_0x230a9d=_0x230a9d-0x0;var _0x1d5254=_0x2881[_0x230a9d];return _0x1d5254;};import{BoxedEditorUIView as _0x1b18c1,InlineEditableUIView as _0x11d930,StickyPanelView as _0x326940,ToolbarView as _0x12f37d}from'ckeditor5/src/ui';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class et extends _0x1b18c1{constructor(_0xfa1fe5,_0x3743ec,_0x16ef82={}){super(_0xfa1fe5),this['stickyPanel']=new _0x326940(_0xfa1fe5),this['toolbar']=new _0x12f37d(_0xfa1fe5,{'shouldGroupWhenFull':_0x16ef82[_0x1d52('0x3')]}),this['editable']=new _0x11d930(_0xfa1fe5,_0x3743ec);}[_0x1d52('0x2')](){super[_0x1d52('0x2')](),this[_0x1d52('0x5')]['content']['add'](this[_0x1d52('0x1')]),this['top'][_0x1d52('0x6')](this[_0x1d52('0x5')]),this[_0x1d52('0x0')][_0x1d52('0x6')](this[_0x1d52('0x4')]);}}
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
package/src/revision.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x3d40=['toVersion','authors','toJSON','createdAt','creator','set','_update','setAttribute','creatorId','name','attributes','removeAttribute','map','diffData','fromVersion'];(function(_0x33de40,_0x3d4025){const _0x108474=function(_0x2fecf7){while(--_0x2fecf7){_0x33de40['push'](_0x33de40['shift']());}};_0x108474(++_0x3d4025);}(_0x3d40,0x13e));const _0x1084=function(_0x33de40,_0x3d4025){_0x33de40=_0x33de40-0x0;let _0x108474=_0x3d40[_0x33de40];return _0x108474;};import{ObservableMixin as _0x4a092c,mix as _0x3cc195,uid as _0x1eaa4a}from'ckeditor5/src/utils';import{cloneDeep as _0x3b487f,set as _0x56dd6e,unset as _0x3aeb25}from'lodash-es';export default class n{constructor(_0x2e3585){this['id']=_0x2e3585['id']||_0x1eaa4a(),this['set'](_0x1084('0x6'),_0x2e3585['name']||''),this['creator']=_0x2e3585['creator']||null,this[_0x1084('0xd')]=_0x2e3585['authors']||[],this['set'](_0x1084('0x0'),_0x2e3585[_0x1084('0x0')]||new Date()),this[_0x1084('0xa')]=_0x2e3585['diffData']||null,this[_0x1084('0x2')](_0x1084('0x7'),_0x2e3585[_0x1084('0x7')]||{}),this[_0x1084('0xc')]=_0x2e3585[_0x1084('0xc')]||0x0,this[_0x1084('0xb')]=_0x2e3585[_0x1084('0xb')]||0x0;}['setName'](_0x4b25f4){this[_0x1084('0x3')]({'name':_0x4b25f4});}[_0x1084('0x4')](_0x2da7cf,_0x16898b){const _0x5ab866=_0x3b487f(this[_0x1084('0x7')]);_0x56dd6e(_0x5ab866,_0x2da7cf,_0x16898b),this[_0x1084('0x3')]({'attributes':_0x5ab866});}[_0x1084('0x8')](_0x6a4dc){const _0x528471=_0x3b487f(this[_0x1084('0x7')]);_0x3aeb25(_0x528471,_0x6a4dc),this[_0x1084('0x3')]({'attributes':_0x528471});}['_update'](_0x5709a8,_0x1c7597=!0x1){let _0x234a40=!0x1;const _0x529477={'id':this['id']};for(const _0x4f703b of[_0x1084('0x6'),_0x1084('0x0'),_0x1084('0xa'),_0x1084('0xd'),_0x1084('0x7'),_0x1084('0xc'),'fromVersion',_0x1084('0x5')]){const _0x5d17bc=_0x5709a8[_0x4f703b];void 0x0!==_0x5d17bc&&_0x5d17bc!==this[_0x4f703b]&&(this[_0x4f703b]=_0x5d17bc,_0x529477[_0x4f703b]=_0x5d17bc,_0x234a40=!0x0);}_0x234a40&&(_0x529477[_0x1084('0xd')]&&(_0x529477['authorsIds']=_0x529477[_0x1084('0xd')][_0x1084('0x9')](_0x1ef9e6=>_0x1ef9e6['id']),delete _0x529477[_0x1084('0xd')]),this['fire'](_0x1084('0x3'),_0x529477,_0x1c7597));}[_0x1084('0xe')](){return{'id':this['id'],'name':this['name'],'creatorId':this[_0x1084('0x1')]?this['creator']['id']:null,'authorsIds':this[_0x1084('0xd')][_0x1084('0x9')](_0x426706=>_0x426706['id']),'diffData':this[_0x1084('0xa')],'createdAt':this[_0x1084('0x0')],'attributes':this[_0x1084('0x7')],'fromVersion':this['fromVersion'],'toVersion':this[_0x1084('0xc')]};}}_0x3cc195(n,_0x4a092c);
23
+ const _0x22f9=['toVersion','map','removeAttribute','set','diffData','creatorId','name','attributes','fire','setName','authors','authorsIds','_update','createdAt','fromVersion','creator'];(function(_0x2b7d6a,_0x22f972){const _0x263dce=function(_0x3b9283){while(--_0x3b9283){_0x2b7d6a['push'](_0x2b7d6a['shift']());}};_0x263dce(++_0x22f972);}(_0x22f9,0x11a));const _0x263d=function(_0x2b7d6a,_0x22f972){_0x2b7d6a=_0x2b7d6a-0x0;let _0x263dce=_0x22f9[_0x2b7d6a];return _0x263dce;};import{ObservableMixin as _0x49899c,mix as _0x3faeec,uid as _0x423c34}from'ckeditor5/src/utils';import{cloneDeep as _0x2a3705,set as _0x478557,unset as _0x23bc5c}from'lodash-es';export default class n{constructor(_0x50c039){this['id']=_0x50c039['id']||_0x423c34(),this['set'](_0x263d('0xc'),_0x50c039[_0x263d('0xc')]||''),this[_0x263d('0x5')]=_0x50c039['creator']||null,this[_0x263d('0x0')]=_0x50c039['authors']||[],this['set'](_0x263d('0x3'),_0x50c039[_0x263d('0x3')]||new Date()),this[_0x263d('0xa')]=_0x50c039[_0x263d('0xa')]||null,this[_0x263d('0x9')](_0x263d('0xd'),_0x50c039['attributes']||{}),this[_0x263d('0x6')]=_0x50c039['toVersion']||0x0,this[_0x263d('0x4')]=_0x50c039[_0x263d('0x4')]||0x0;}[_0x263d('0xf')](_0x124aca){this['_update']({'name':_0x124aca});}['setAttribute'](_0x9e5ee1,_0x445081){const _0x2dfe83=_0x2a3705(this[_0x263d('0xd')]);_0x478557(_0x2dfe83,_0x9e5ee1,_0x445081),this[_0x263d('0x2')]({'attributes':_0x2dfe83});}[_0x263d('0x8')](_0x3eedc8){const _0x1fc279=_0x2a3705(this[_0x263d('0xd')]);_0x23bc5c(_0x1fc279,_0x3eedc8),this[_0x263d('0x2')]({'attributes':_0x1fc279});}['_update'](_0x4b977f,_0x5ebba2=!0x1){let _0x14e1cd=!0x1;const _0x16f272={'id':this['id']};for(const _0x72c50a of[_0x263d('0xc'),_0x263d('0x3'),_0x263d('0xa'),_0x263d('0x0'),_0x263d('0xd'),_0x263d('0x6'),_0x263d('0x4'),_0x263d('0xb')]){const _0x36fa1f=_0x4b977f[_0x72c50a];void 0x0!==_0x36fa1f&&_0x36fa1f!==this[_0x72c50a]&&(this[_0x72c50a]=_0x36fa1f,_0x16f272[_0x72c50a]=_0x36fa1f,_0x14e1cd=!0x0);}_0x14e1cd&&(_0x16f272[_0x263d('0x0')]&&(_0x16f272[_0x263d('0x1')]=_0x16f272[_0x263d('0x0')][_0x263d('0x7')](_0x4b6ec5=>_0x4b6ec5['id']),delete _0x16f272[_0x263d('0x0')]),this[_0x263d('0xe')](_0x263d('0x2'),_0x16f272,_0x5ebba2));}['toJSON'](){return{'id':this['id'],'name':this[_0x263d('0xc')],'creatorId':this['creator']?this[_0x263d('0x5')]['id']:null,'authorsIds':this[_0x263d('0x0')][_0x263d('0x7')](_0x5ab669=>_0x5ab669['id']),'diffData':this[_0x263d('0xa')],'createdAt':this[_0x263d('0x3')],'attributes':this['attributes'],'fromVersion':this[_0x263d('0x4')],'toVersion':this[_0x263d('0x6')]};}}_0x3faeec(n,_0x49899c);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x3a96=['newRevisionId','_setData','changes','add','oldRevisionId'];(function(_0x203fea,_0x3a965f){const _0x24737e=function(_0x13ed79){while(--_0x13ed79){_0x203fea['push'](_0x203fea['shift']());}};_0x24737e(++_0x3a965f);}(_0x3a96,0xeb));const _0x2473=function(_0x203fea,_0x3a965f){_0x203fea=_0x203fea-0x0;let _0x24737e=_0x3a96[_0x203fea];return _0x24737e;};import{Collection as _0x398670}from'ckeditor5/src/utils';export default class f{constructor(_0x3100b5,_0x2e5ae3){this[_0x2473('0x0')]=_0x3100b5,this[_0x2473('0x4')]=_0x2e5ae3,this['changes']=new _0x398670();}[_0x2473('0x1')](_0x2bd57f){for(const _0x552dbd of _0x2bd57f['changes'])this[_0x2473('0x2')][_0x2473('0x3')](_0x552dbd);}}
23
+ const _0x3355=['oldRevisionId','_setData','add','changes','newRevisionId'];(function(_0x22c079,_0x33553d){const _0xa19dff=function(_0x271b81){while(--_0x271b81){_0x22c079['push'](_0x22c079['shift']());}};_0xa19dff(++_0x33553d);}(_0x3355,0xf6));const _0xa19d=function(_0x22c079,_0x33553d){_0x22c079=_0x22c079-0x0;let _0xa19dff=_0x3355[_0x22c079];return _0xa19dff;};import{Collection as _0x44880c}from'ckeditor5/src/utils';export default class f{constructor(_0x4630c9,_0x3408c3){this[_0xa19d('0x3')]=_0x4630c9,this[_0xa19d('0x4')]=_0x3408c3,this[_0xa19d('0x2')]=new _0x44880c();}[_0xa19d('0x0')](_0x57daab){for(const _0x452c45 of _0x57daab[_0xa19d('0x2')])this[_0xa19d('0x2')][_0xa19d('0x1')](_0x452c45);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, 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 _0x1d88=['revisionHistory.viewerEditorElement','RevisionTracker','_showRevisionViewer','disableReadOnlyMode','toLocaleDateString','from','getRevisions','define','data','refreshVisibility','then','Users','long','Annotations','revisionHistory','isAnonymous','requires','RealTimeCollaborativeComments','fromVersion','repository','RevisionViewer','function','RealTimeCollaborativeTrackChanges','toVersion','showRevisionViewerCallback','constructor','_recalculatePageBreaks','update','editor','RestrictedEditingMode','removeMarker','RevisionHistoryUI','change','revisionHistory.restoreRevisionCallback','numeric','style','model','every','display','push','PaginationLookup','context','plugins','revisionHistory.showRevisionViewerCallback','bind','revisionHistory.viewerContainer','refreshPositioning','Autosave','error','catch','config','_update','addRevisionData','uiLanguage','_viewerEditor','set','pluginName','save','find','string','saveRevision','isReadOnly','RevisionHistory','RevisionsRepository','locale','_closeRevisionViewer','create','indexOf','users','adapter','revision-history-missing-configuration','createdAt','_enhanceCloseRevisionViewerCallback','_enhanceShowRevisionViewerCallback','filter','isEnabled','addUser','revisionHistory.closeRevisionViewerCallback','isReady','getMarkersGroup','exitToEditing','revisionHistory.editorContainer','includes','none','closeRevisionViewerCallback','block','changesNavigation','RealTimeCollaborativeEditing','toLocaleTimeString','has','concat','_getRevisionViewerEditorConfig','revision-history-viewer-opened','name','get','getRevision'];(function(_0x3a71ab,_0x1d8855){const _0xa6ecbf=function(_0x49c243){while(--_0x49c243){_0x3a71ab['push'](_0x3a71ab['shift']());}};_0xa6ecbf(++_0x1d8855);}(_0x1d88,0x159));const _0xa6ec=function(_0x3a71ab,_0x1d8855){_0x3a71ab=_0x3a71ab-0x0;let _0xa6ecbf=_0x1d88[_0x3a71ab];return _0xa6ecbf;};import{Plugin as _0x374e89}from'ckeditor5/src/core';import{CKEditorError as _0x1a6ea2,uid as _0x57559b}from'ckeditor5/src/utils';import _0x1fcb0f from'./revisiontracker';import _0x2d5328 from'./ui/revisionhistory/revisionhistoryui';import _0x140aef from'./revisionviewer';import _0x1aa74f from'./ui/revisionviewer/revisionviewerui';import _0x216d94 from'./ui/revisionssidebar/revisionssidebar';import _0x3ee5bb from'./editor/revisionviewereditor';import{getTranslation as _0x26783e}from'./utils/common-translations';const g=[_0xa6ec('0x50')],k=[_0xa6ec('0x28'),_0xa6ec('0x46'),_0xa6ec('0x1e'),_0xa6ec('0x38'),_0xa6ec('0x3d'),_0xa6ec('0x44'),_0xa6ec('0x56')];export default class C extends _0x374e89{static get[_0xa6ec('0x5f')](){return _0xa6ec('0x5');}static get[_0xa6ec('0x37')](){return[_0x1fcb0f,_0x2d5328];}constructor(..._0x488cba){if(super(..._0x488cba),!this[_0xa6ec('0x43')][_0xa6ec('0x59')][_0xa6ec('0x25')]('revisionHistory'))throw new _0x1a6ea2(_0xa6ec('0xd'),this);this[_0xa6ec('0x5d')]=null,this['editor'][_0xa6ec('0x59')]['define'](_0xa6ec('0x52'),_0x410694=>this['_showRevisionViewer'](_0x410694)),this[_0xa6ec('0x43')]['config']['define'](_0xa6ec('0x14'),_0x484f7e=>this[_0xa6ec('0x8')](_0x484f7e)),this[_0xa6ec('0x43')][_0xa6ec('0x59')][_0xa6ec('0x2e')](_0xa6ec('0x48'),_0x522e99=>this['_restoreRevision'](_0x522e99)),this[_0xa6ec('0x10')](),this[_0xa6ec('0xf')]();}set[_0xa6ec('0xc')](_0x362b9b){this['editor']['plugins'][_0xa6ec('0x25')](_0xa6ec('0x28'))[_0xa6ec('0xc')]=_0x362b9b;}get[_0xa6ec('0xc')](){return this[_0xa6ec('0x43')][_0xa6ec('0x51')][_0xa6ec('0x25')](_0xa6ec('0x28'))[_0xa6ec('0xc')];}[_0xa6ec('0x5b')](..._0x2779cc){return this[_0xa6ec('0x43')]['plugins'][_0xa6ec('0x25')](_0xa6ec('0x28'))[_0xa6ec('0x5b')](..._0x2779cc);}['getRevision'](..._0x510cae){return this['editor'][_0xa6ec('0x51')][_0xa6ec('0x25')](_0xa6ec('0x6'))[_0xa6ec('0x26')](..._0x510cae);}[_0xa6ec('0x2d')](..._0x144f0c){return this['editor'][_0xa6ec('0x51')][_0xa6ec('0x25')]('RevisionsRepository')['getRevisions'](..._0x144f0c);}[_0xa6ec('0x22')](){const _0x416068={},_0x5b5758=this[_0xa6ec('0x43')],_0x259d6f=_0x5b5758[_0xa6ec('0x51')][_0xa6ec('0x25')](_0xa6ec('0x28')),_0x44a52d=_0x5b5758[_0xa6ec('0x51')][_0xa6ec('0x25')](_0xa6ec('0x32'))[_0xa6ec('0xb')];for(const _0x151567 of _0x5b5758['config']['names']())g[_0xa6ec('0x19')](_0x151567)||(_0x416068[_0x151567]=_0x5b5758[_0xa6ec('0x59')][_0xa6ec('0x25')](_0x151567));_0x416068['initialData']='',_0x416068['toolbar']=[_0xa6ec('0x17'),'restoreRevision',_0xa6ec('0x1d')];const _0x1ffa5a=this['editor'][_0xa6ec('0x40')]['builtinPlugins']||[],_0x4d45c0=_0x416068['extraPlugins']||[];delete _0x416068['extraPlugins'];const _0x5673b0=_0x1ffa5a[_0xa6ec('0x21')](_0x416068[_0xa6ec('0x51')])[_0xa6ec('0x21')](_0x4d45c0)['map'](_0x3559d3=>_0xa6ec('0x2')==typeof _0x3559d3?_0x1ffa5a[_0xa6ec('0x1')](_0x546fc9=>_0x546fc9[_0xa6ec('0x5f')]==_0x3559d3):_0x3559d3);return _0x416068[_0xa6ec('0x51')]=Array[_0xa6ec('0x2c')](new Set(_0x5673b0))[_0xa6ec('0x11')](_0x44bd4c=>b(_0x44bd4c,_0x5b5758[_0xa6ec('0x51')],[])),(_0x416068[_0xa6ec('0x51')][_0xa6ec('0x4e')](_0x140aef,_0x1aa74f,class extends _0x374e89{static get[_0xa6ec('0x37')](){return[_0x140aef,_0xa6ec('0x32')];}['init'](){const _0x4eb86c=this[_0xa6ec('0x43')][_0xa6ec('0x51')]['get']('Users');for(const _0x550026 of _0x44a52d)_0x550026[_0xa6ec('0x36')]||_0x4eb86c['getUser'](_0x550026['id'])||_0x4eb86c[_0xa6ec('0x13')](_0x550026);const _0x3ae11b=_0x259d6f[_0xa6ec('0x3a')][_0xa6ec('0x2d')]();let _0x6350cb=null;const _0x17b8bf=this[_0xa6ec('0x43')][_0xa6ec('0x51')][_0xa6ec('0x25')](_0xa6ec('0x3b'));_0x17b8bf[_0xa6ec('0xc')]=_0x259d6f['adapter'],_0x17b8bf[_0xa6ec('0x53')](_0xa6ec('0x12'))['to'](_0x259d6f),this[_0xa6ec('0x43')]['commands'][_0xa6ec('0x25')]('restoreRevision')[_0xa6ec('0x53')](_0xa6ec('0x12'))['to'](_0x5b5758,_0xa6ec('0x4'),_0xa711f5=>!_0xa711f5);for(const _0x1dff8b of _0x3ae11b){const _0x37c146=null===_0x1dff8b['creator'];if(_0x37c146&&_0x1dff8b[_0xa6ec('0x3e')]===_0x1dff8b[_0xa6ec('0x39')])continue;const _0x2f9c57=_0x1dff8b['toJSON']();_0x17b8bf[_0xa6ec('0x5b')](_0x2f9c57,(_0x4fface,_0x42002e,_0x4c6473)=>{if(_0x37c146){if(_0x6350cb)_0x6350cb[_0xa6ec('0x5a')](_0x4fface,_0x42002e);else{if(!_0x42002e){const _0x1264af=_0x4c6473['toJSON']();_0x1264af['id']=_0x57559b(),_0x259d6f['saveRevision'](_0x1264af,_0x4c6473[_0xa6ec('0x3e')])[_0xa6ec('0x31')](_0x5180e0=>{_0x6350cb=_0x5180e0;});}}}else _0x1dff8b['_update'](_0x4fface,_0x42002e);});}}},_0x216d94),_0x416068);}[_0xa6ec('0x10')](){const _0x286fcb=this[_0xa6ec('0x43')][_0xa6ec('0x59')][_0xa6ec('0x25')](_0xa6ec('0x35'))[_0xa6ec('0x3f')];this[_0xa6ec('0x43')][_0xa6ec('0x59')]['set'](_0xa6ec('0x52'),async()=>{this['editor']['enableReadOnlyMode'](_0xa6ec('0x23'));const _0x4e7e99=this[_0xa6ec('0x43')][_0xa6ec('0x51')][_0xa6ec('0x25')](_0xa6ec('0x28'));this[_0xa6ec('0x43')][_0xa6ec('0x51')][_0xa6ec('0x20')]('Autosave')?await this[_0xa6ec('0x43')][_0xa6ec('0x51')][_0xa6ec('0x25')](_0xa6ec('0x56'))[_0xa6ec('0x0')]():await _0x4e7e99[_0xa6ec('0x42')](),this[_0xa6ec('0x43')]['plugins']['has'](_0xa6ec('0x4f'))&&this['editor'][_0xa6ec('0x51')][_0xa6ec('0x25')](_0xa6ec('0x4f'))[_0xa6ec('0x41')]();const _0x4dde4a=this[_0xa6ec('0x22')]();return _0x286fcb(_0x4dde4a)[_0xa6ec('0x31')](_0x59c7f7=>{this[_0xa6ec('0x5d')]=_0x59c7f7,this[_0xa6ec('0x43')][_0xa6ec('0x51')][_0xa6ec('0x20')](_0xa6ec('0x34'))&&this[_0xa6ec('0x43')]['plugins'][_0xa6ec('0x25')](_0xa6ec('0x34'))['refreshVisibility']();})[_0xa6ec('0x58')](_0x474e80=>{console[_0xa6ec('0x57')](_0x474e80),this[_0xa6ec('0x43')]['disableReadOnlyMode'](_0xa6ec('0x23'));});});}['_enhanceCloseRevisionViewerCallback'](){const _0x4ff6e8=this[_0xa6ec('0x43')][_0xa6ec('0x59')]['get'](_0xa6ec('0x35'))['closeRevisionViewerCallback'];this[_0xa6ec('0x43')]['config'][_0xa6ec('0x5e')]('revisionHistory.closeRevisionViewerCallback',()=>(this[_0xa6ec('0x43')]['plugins'][_0xa6ec('0x20')](_0xa6ec('0x4f'))&&this['editor'][_0xa6ec('0x51')][_0xa6ec('0x25')](_0xa6ec('0x4f'))[_0xa6ec('0x41')](),_0x4ff6e8(this[_0xa6ec('0x5d')])[_0xa6ec('0x31')](()=>{this[_0xa6ec('0x43')][_0xa6ec('0x2a')](_0xa6ec('0x23')),this[_0xa6ec('0x5d')]=null,this[_0xa6ec('0x43')][_0xa6ec('0x51')][_0xa6ec('0x20')](_0xa6ec('0x34'))&&(this[_0xa6ec('0x43')][_0xa6ec('0x51')][_0xa6ec('0x25')](_0xa6ec('0x34'))[_0xa6ec('0x30')](),this['editor']['plugins'][_0xa6ec('0x25')](_0xa6ec('0x34'))[_0xa6ec('0x55')]());})));}[_0xa6ec('0x29')](_0x218cb8){const _0x490d66=this[_0xa6ec('0x43')][_0xa6ec('0x59')][_0xa6ec('0x25')](_0xa6ec('0x18')),_0x118d8b=this['editor']['config'][_0xa6ec('0x25')](_0xa6ec('0x54')),_0x4c1fc6=this[_0xa6ec('0x43')][_0xa6ec('0x59')]['get'](_0xa6ec('0x27'));return _0x3ee5bb[_0xa6ec('0x9')](_0x4c1fc6,_0x218cb8)[_0xa6ec('0x31')](_0x59a778=>(_0x118d8b[_0xa6ec('0x4a')]['display']=_0xa6ec('0x1c'),_0x490d66[_0xa6ec('0x4a')]['display']=_0xa6ec('0x1a'),_0x59a778));}['_closeRevisionViewer'](_0x248453){const _0x718f27=this[_0xa6ec('0x43')][_0xa6ec('0x59')][_0xa6ec('0x25')](_0xa6ec('0x18'));return this['editor'][_0xa6ec('0x59')][_0xa6ec('0x25')](_0xa6ec('0x54'))[_0xa6ec('0x4a')][_0xa6ec('0x4d')]=_0xa6ec('0x1a'),_0x718f27[_0xa6ec('0x4a')][_0xa6ec('0x4d')]='',_0x248453['destroy']();}async['_restoreRevision'](_0x3fbce3){const _0x27005f=this[_0xa6ec('0x43')],_0x14b81d=this[_0xa6ec('0x5d')][_0xa6ec('0x51')]['get'](_0xa6ec('0x3b')),_0x41d9ec=_0x27005f[_0xa6ec('0x51')][_0xa6ec('0x25')]('RevisionTracker'),_0x57b33f=_0x14b81d[_0xa6ec('0x3a')]['getRevision'](_0x3fbce3);let _0x3bbabd,_0x2c8703;try{_0x3bbabd=await _0x14b81d['getRevisionData'](_0x57b33f);}catch(_0x3c5431){return void console['error'](_0x3c5431);}_0x27005f[_0xa6ec('0x4b')][_0xa6ec('0x47')](_0xb3687c=>{for(const _0x136c2b of Array[_0xa6ec('0x2c')](_0x27005f[_0xa6ec('0x4b')]['markers'][_0xa6ec('0x16')]('restrictedEditingException')))_0xb3687c[_0xa6ec('0x45')](_0x136c2b);}),_0x14b81d[_0xa6ec('0x15')]=!0x1,_0x27005f[_0xa6ec('0x2f')]['set'](_0x3bbabd,{'suppressErrorInCollaboration':!0x0});const _0x1008b0=_0x26783e(_0x27005f[_0xa6ec('0x7')],'Restored');if(_0x57b33f['name'])_0x2c8703=-0x1==_0x57b33f[_0xa6ec('0x24')][_0xa6ec('0xa')](_0x1008b0)?_0x1008b0+':\x20'+_0x57b33f[_0xa6ec('0x24')]:_0x57b33f[_0xa6ec('0x24')];else _0x2c8703=_0x1008b0+':\x20'+(_0x57b33f[_0xa6ec('0xe')][_0xa6ec('0x2b')](_0x27005f[_0xa6ec('0x7')][_0xa6ec('0x5c')],{'month':_0xa6ec('0x33'),'day':'numeric'})+',\x20'+_0x57b33f[_0xa6ec('0xe')][_0xa6ec('0x1f')](_0x27005f['locale'][_0xa6ec('0x5c')],{'hour':_0xa6ec('0x49'),'minute':_0xa6ec('0x49')}));return await _0x41d9ec[_0xa6ec('0x3')]({'name':_0x2c8703}),_0x14b81d[_0xa6ec('0x15')]=!0x0,_0x27005f['config'][_0xa6ec('0x25')]('revisionHistory')[_0xa6ec('0x1b')]();}}function b(_0x2123ce,_0x568b63,_0x29b55d){const _0x42f239=_0xa6ec('0x3c')==typeof _0x2123ce?_0x2123ce[_0xa6ec('0x5f')]||_0x2123ce[_0xa6ec('0x24')]:_0x2123ce;if(_0x29b55d[_0xa6ec('0x19')](_0x42f239))return!0x0;if(_0x29b55d[_0xa6ec('0x4e')](_0x42f239),k[_0xa6ec('0x19')](_0x42f239))return!0x1;const _0x4c39f9=((_0xa6ec('0x3c')==typeof _0x2123ce?_0x2123ce:_0x568b63['has'](_0x42f239)?_0x568b63['get'](_0x42f239):{})[_0xa6ec('0x37')]||[])[_0xa6ec('0x4c')](_0x22b6b9=>b(_0x22b6b9,_0x568b63,_0x29b55d));return _0x4c39f9||k['push'](_0x42f239),_0x4c39f9;}
23
+ const _0x5538=['change','toVersion','push','pluginName','init','locale','long','disableReadOnlyMode','getMarkersGroup','getRevision','isAnonymous','from','has','Annotations','revisionHistory.editorContainer','config','concat','addRevisionData','getRevisionData','getUser','commands','update','restrictedEditingException','revisionHistory.restoreRevisionCallback','_recalculatePageBreaks','numeric','function','markers','includes','closeRevisionViewerCallback','revisionHistory.viewerEditorElement','_getRevisionViewerEditorConfig','_restoreRevision','RevisionHistoryUI','revision-history-missing-configuration','data','_enhanceCloseRevisionViewerCallback','adapter','repository','then','bind','revision-history-viewer-opened','toJSON','none','style','saveRevision','uiLanguage','plugins','indexOf','getRevisions','restoreRevision','create','PaginationLookup','RevisionTracker','initialData','block','revisionHistory','Autosave','define','createdAt','RevisionViewer','isReady','revisionHistory.viewerContainer','set','find','context','name','RevisionsRepository','get','refreshVisibility','toolbar','requires','Restored','fromVersion','_update','toLocaleDateString','display','users','editor','filter','Users','extraPlugins','removeMarker','exitToEditing','WebSocketGateway','builtinPlugins','revisionHistory.closeRevisionViewerCallback','toLocaleTimeString','names','error','every','model','map','changesNavigation','_viewerEditor','_closeRevisionViewer','_showRevisionViewer','revisionHistory.showRevisionViewerCallback'];(function(_0x34cfae,_0x55387d){const _0x200eb6=function(_0x20ebc9){while(--_0x20ebc9){_0x34cfae['push'](_0x34cfae['shift']());}};_0x200eb6(++_0x55387d);}(_0x5538,0x142));const _0x200e=function(_0x34cfae,_0x55387d){_0x34cfae=_0x34cfae-0x0;let _0x200eb6=_0x5538[_0x34cfae];return _0x200eb6;};import{Plugin as _0x45874b}from'ckeditor5/src/core';import{CKEditorError as _0x484d12,uid as _0x44c620}from'ckeditor5/src/utils';import _0x470cb5 from'./revisiontracker';import _0x3053c6 from'./ui/revisionhistory/revisionhistoryui';import _0x5a20a9 from'./revisionviewer';import _0x5ac178 from'./ui/revisionviewer/revisionviewerui';import _0x3d449c from'./ui/revisionssidebar/revisionssidebar';import _0x5e74c3 from'./editor/revisionviewereditor';import{getTranslation as _0xd76de6}from'./utils/common-translations';export default class k extends _0x45874b{static get[_0x200e('0x49')](){return'RevisionHistory';}static get['requires'](){return[_0x470cb5,_0x3053c6];}constructor(..._0xa088c4){if(super(..._0xa088c4),!this[_0x200e('0x32')][_0x200e('0x55')][_0x200e('0x28')](_0x200e('0x1c')))throw new _0x484d12(_0x200e('0x6'),this);this[_0x200e('0x42')]=null,this[_0x200e('0x32')][_0x200e('0x55')][_0x200e('0x1e')](_0x200e('0x45'),_0x4a2efb=>this[_0x200e('0x44')](_0x4a2efb)),this['editor'][_0x200e('0x55')][_0x200e('0x1e')](_0x200e('0x3a'),_0xd48274=>this[_0x200e('0x43')](_0xd48274)),this['editor'][_0x200e('0x55')][_0x200e('0x1e')](_0x200e('0x5d'),_0xdb29f2=>this[_0x200e('0x4')](_0xdb29f2)),this['_enhanceShowRevisionViewerCallback'](),this[_0x200e('0x8')]();}set[_0x200e('0x9')](_0x14c4d1){this[_0x200e('0x32')][_0x200e('0x13')][_0x200e('0x28')](_0x200e('0x19'))['adapter']=_0x14c4d1;}get[_0x200e('0x9')](){return this[_0x200e('0x32')]['plugins'][_0x200e('0x28')](_0x200e('0x19'))[_0x200e('0x9')];}[_0x200e('0x57')](..._0x6f3233){return this[_0x200e('0x32')][_0x200e('0x13')][_0x200e('0x28')](_0x200e('0x19'))[_0x200e('0x57')](..._0x6f3233);}[_0x200e('0x4f')](..._0x350fca){return this[_0x200e('0x32')][_0x200e('0x13')][_0x200e('0x28')](_0x200e('0x27'))[_0x200e('0x4f')](..._0x350fca);}[_0x200e('0x15')](..._0x2b0668){return this['editor'][_0x200e('0x13')]['get'](_0x200e('0x27'))[_0x200e('0x15')](..._0x2b0668);}[_0x200e('0x3')](){const _0x213a22=[_0x200e('0x25')],_0x14f3cc=[_0x200e('0x19'),_0x200e('0x5'),_0x200e('0x38'),'RestrictedEditingMode','Autosave'],_0x377e1b={},_0x1442b1=this[_0x200e('0x32')],_0x22b5cf=_0x1442b1[_0x200e('0x13')][_0x200e('0x28')](_0x200e('0x19')),_0x59c647=_0x1442b1[_0x200e('0x13')][_0x200e('0x28')](_0x200e('0x34'))[_0x200e('0x31')];for(const _0x122525 of _0x1442b1[_0x200e('0x55')][_0x200e('0x3c')]())_0x213a22[_0x200e('0x0')](_0x122525)||(_0x377e1b[_0x122525]=_0x1442b1[_0x200e('0x55')][_0x200e('0x28')](_0x122525));_0x377e1b[_0x200e('0x1a')]='',_0x377e1b[_0x200e('0x2a')]=[_0x200e('0x37'),_0x200e('0x16'),_0x200e('0x41')];const _0x55abb0=this['editor']['constructor'][_0x200e('0x39')]||[],_0x162fb0=_0x377e1b[_0x200e('0x35')]||[];delete _0x377e1b[_0x200e('0x35')];const _0x4a9ecc=_0x55abb0[_0x200e('0x56')](_0x377e1b[_0x200e('0x13')])['concat'](_0x162fb0)[_0x200e('0x40')](_0x340c16=>'string'==typeof _0x340c16?_0x55abb0[_0x200e('0x24')](_0x4b3147=>_0x4b3147[_0x200e('0x49')]==_0x340c16):_0x340c16);let _0x4bd038=!0x1;_0x377e1b[_0x200e('0x13')]=Array[_0x200e('0x51')](new Set(_0x4a9ecc))[_0x200e('0x33')](_0x4db96c=>_0x251f64(_0x4db96c,_0x1442b1[_0x200e('0x13')],[])),_0x4bd038&&_0x377e1b[_0x200e('0x13')][_0x200e('0x48')](_0x1442b1['plugins']['get'](_0x200e('0x38'))['constructor']);function _0x251f64(_0x132adf,_0x2fe659,_0x1f471d){const _0x4a8075=_0x200e('0x60')==typeof _0x132adf?_0x132adf[_0x200e('0x49')]||_0x132adf[_0x200e('0x26')]:_0x132adf;if(_0x200e('0x38')===_0x4a8075&&(_0x4bd038=!0x0),_0x1f471d['includes'](_0x4a8075))return!0x0;if(_0x1f471d[_0x200e('0x48')](_0x4a8075),_0x14f3cc[_0x200e('0x0')](_0x4a8075))return!0x1;const _0x40b65b=((_0x200e('0x60')==typeof _0x132adf?_0x132adf:_0x2fe659[_0x200e('0x52')](_0x4a8075)?_0x2fe659['get'](_0x4a8075):{})[_0x200e('0x2b')]||[])[_0x200e('0x3e')](_0xed51c2=>_0x251f64(_0xed51c2,_0x2fe659,_0x1f471d));return _0x40b65b||_0x14f3cc[_0x200e('0x48')](_0x4a8075),_0x40b65b;}return _0x377e1b[_0x200e('0x13')][_0x200e('0x48')](_0x5a20a9,_0x5ac178,class extends _0x45874b{static get['requires'](){return[_0x5a20a9,_0x200e('0x34')];}[_0x200e('0x4a')](){const _0x2ebe99=this[_0x200e('0x32')][_0x200e('0x13')][_0x200e('0x28')](_0x200e('0x34'));for(const _0xe4a9f5 of _0x59c647)_0xe4a9f5[_0x200e('0x50')]||_0x2ebe99[_0x200e('0x59')](_0xe4a9f5['id'])||_0x2ebe99['addUser'](_0xe4a9f5);const _0x966b6d=_0x22b5cf[_0x200e('0xa')][_0x200e('0x15')]();let _0x43cee0=null;const _0x312c85=this[_0x200e('0x32')][_0x200e('0x13')][_0x200e('0x28')]('RevisionViewer');_0x312c85[_0x200e('0x9')]=_0x22b5cf[_0x200e('0x9')],_0x312c85['bind']('isEnabled')['to'](_0x22b5cf),this[_0x200e('0x32')][_0x200e('0x5a')][_0x200e('0x28')](_0x200e('0x16'))[_0x200e('0xc')]('isEnabled')['to'](_0x1442b1,'isReadOnly',_0x2af7ea=>!_0x2af7ea);for(const _0x16ed6a of _0x966b6d){const _0x59898f=null===_0x16ed6a['creator'];if(_0x59898f&&_0x16ed6a[_0x200e('0x47')]===_0x16ed6a[_0x200e('0x2d')])continue;const _0x4d9f87=_0x16ed6a[_0x200e('0xe')]();_0x312c85['addRevisionData'](_0x4d9f87,(_0x28b808,_0x2f80e2,_0x1dd202)=>{if(_0x59898f){if(_0x43cee0)_0x43cee0[_0x200e('0x2e')](_0x28b808,_0x2f80e2);else{if(!_0x2f80e2){const _0xc37971=_0x1dd202[_0x200e('0xe')]();_0xc37971['id']=_0x44c620(),_0x22b5cf[_0x200e('0x11')](_0xc37971,_0x1dd202['toVersion'])[_0x200e('0xb')](_0x21a27b=>{_0x43cee0=_0x21a27b;});}}}else _0x16ed6a[_0x200e('0x2e')](_0x28b808,_0x2f80e2);});}}},_0x3d449c),_0x377e1b;}['_enhanceShowRevisionViewerCallback'](){const _0x14630f=this['editor'][_0x200e('0x55')][_0x200e('0x28')]('revisionHistory')['showRevisionViewerCallback'];this[_0x200e('0x32')]['config'][_0x200e('0x23')](_0x200e('0x45'),async()=>{this[_0x200e('0x32')]['enableReadOnlyMode'](_0x200e('0xd'));const _0x1f189f=this[_0x200e('0x32')][_0x200e('0x13')]['get'](_0x200e('0x19'));this[_0x200e('0x32')][_0x200e('0x13')][_0x200e('0x52')]('Autosave')?await this[_0x200e('0x32')][_0x200e('0x13')][_0x200e('0x28')](_0x200e('0x1d'))['save']():await _0x1f189f[_0x200e('0x5b')](),this[_0x200e('0x32')][_0x200e('0x13')]['has'](_0x200e('0x18'))&&this[_0x200e('0x32')][_0x200e('0x13')][_0x200e('0x28')](_0x200e('0x18'))[_0x200e('0x5e')]();const _0x34b249=this[_0x200e('0x3')]();return _0x14630f(_0x34b249)[_0x200e('0xb')](_0x118852=>{this[_0x200e('0x42')]=_0x118852,this[_0x200e('0x32')][_0x200e('0x13')][_0x200e('0x52')]('Annotations')&&this[_0x200e('0x32')]['plugins'][_0x200e('0x28')]('Annotations')[_0x200e('0x29')]();})['catch'](_0x1148ab=>{console['error'](_0x1148ab),this['editor']['disableReadOnlyMode'](_0x200e('0xd'));});});}[_0x200e('0x8')](){const _0x965cb8=this[_0x200e('0x32')][_0x200e('0x55')][_0x200e('0x28')]('revisionHistory')[_0x200e('0x1')];this[_0x200e('0x32')]['config']['set'](_0x200e('0x3a'),()=>(this['editor'][_0x200e('0x13')]['has'](_0x200e('0x18'))&&this[_0x200e('0x32')][_0x200e('0x13')][_0x200e('0x28')](_0x200e('0x18'))[_0x200e('0x5e')](),_0x965cb8(this['_viewerEditor'])[_0x200e('0xb')](()=>{this['editor'][_0x200e('0x4d')](_0x200e('0xd')),this[_0x200e('0x42')]=null,this[_0x200e('0x32')][_0x200e('0x13')][_0x200e('0x52')](_0x200e('0x53'))&&(this['editor']['plugins'][_0x200e('0x28')](_0x200e('0x53'))[_0x200e('0x29')](),this[_0x200e('0x32')]['plugins'][_0x200e('0x28')](_0x200e('0x53'))['refreshPositioning']());})));}[_0x200e('0x44')](_0x5905c3){const _0x401441=this[_0x200e('0x32')][_0x200e('0x55')]['get'](_0x200e('0x54')),_0x39b85a=this[_0x200e('0x32')][_0x200e('0x55')][_0x200e('0x28')](_0x200e('0x22')),_0x44704b=this[_0x200e('0x32')][_0x200e('0x55')]['get'](_0x200e('0x2'));return _0x5e74c3[_0x200e('0x17')](_0x44704b,_0x5905c3)[_0x200e('0xb')](_0x108ace=>(_0x39b85a[_0x200e('0x10')]['display']=_0x200e('0x1b'),_0x401441[_0x200e('0x10')][_0x200e('0x30')]='none',_0x108ace));}[_0x200e('0x43')](_0x2cefa1){const _0x267ecf=this[_0x200e('0x32')][_0x200e('0x55')][_0x200e('0x28')]('revisionHistory.editorContainer');return this['editor'][_0x200e('0x55')][_0x200e('0x28')](_0x200e('0x22'))[_0x200e('0x10')][_0x200e('0x30')]=_0x200e('0xf'),_0x267ecf[_0x200e('0x10')][_0x200e('0x30')]='',_0x2cefa1['destroy']();}async[_0x200e('0x4')](_0x539c53){const _0x4b024a=this[_0x200e('0x32')],_0x341375=this[_0x200e('0x42')]['plugins'][_0x200e('0x28')](_0x200e('0x20')),_0x2bb008=_0x4b024a[_0x200e('0x13')][_0x200e('0x28')](_0x200e('0x19')),_0x13f2a0=_0x341375[_0x200e('0xa')][_0x200e('0x4f')](_0x539c53);let _0x3f3b0c,_0x55cc0b;try{_0x3f3b0c=await _0x341375[_0x200e('0x58')](_0x13f2a0);}catch(_0x1f3bfe){return void console[_0x200e('0x3d')](_0x1f3bfe);}_0x4b024a[_0x200e('0x3f')][_0x200e('0x46')](_0x146f9a=>{for(const _0x5c1304 of Array[_0x200e('0x51')](_0x4b024a['model'][_0x200e('0x61')][_0x200e('0x4e')](_0x200e('0x5c'))))_0x146f9a[_0x200e('0x36')](_0x5c1304);}),_0x341375[_0x200e('0x21')]=!0x1,_0x4b024a[_0x200e('0x7')][_0x200e('0x23')](_0x3f3b0c,{'suppressErrorInCollaboration':!0x0});const _0x5191c5=_0xd76de6(_0x4b024a[_0x200e('0x4b')],_0x200e('0x2c'));if(_0x13f2a0[_0x200e('0x26')])_0x55cc0b=-0x1==_0x13f2a0['name'][_0x200e('0x14')](_0x5191c5)?_0x5191c5+':\x20'+_0x13f2a0[_0x200e('0x26')]:_0x13f2a0['name'];else _0x55cc0b=_0x5191c5+':\x20'+(_0x13f2a0['createdAt'][_0x200e('0x2f')](_0x4b024a['locale']['uiLanguage'],{'month':_0x200e('0x4c'),'day':_0x200e('0x5f')})+',\x20'+_0x13f2a0[_0x200e('0x1f')][_0x200e('0x3b')](_0x4b024a[_0x200e('0x4b')][_0x200e('0x12')],{'hour':'numeric','minute':_0x200e('0x5f')}));return await _0x2bb008[_0x200e('0x11')]({'name':_0x55cc0b}),_0x341375[_0x200e('0x21')]=!0x0,_0x4b024a[_0x200e('0x55')][_0x200e('0x28')](_0x200e('0x1c'))['closeRevisionViewerCallback']();}}