@ckeditor/ckeditor5-revision-history 35.1.0 → 35.2.1
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.
- package/build/revision-history.js +1 -1
- package/build/translations/es-co.js +1 -0
- package/build/translations/fa.js +1 -1
- package/build/translations/tt.js +1 -0
- package/lang/translations/es-co.po +124 -0
- package/lang/translations/fa.po +1 -1
- package/lang/translations/tt.po +122 -0
- package/package.json +7 -7
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){const i=e["es-co"]=e["es-co"]||{};i.dictionary=Object.assign(i.dictionary||{},{"Added by":"","Back to editing":"","Compare against selected":"",EDIT_X_OF_Y_REVISIONS:"Editar","Empty document":"","Initial revision":"","Loading...":"","Name of the revision (optional)":"","Name this revision":"","No changes":"",NUMBER_OF_CHANGES:["","",""],"Open revision history":"",PENDING_ACTION_REVISION_HISTORY:"","Removed by":"","Restore this revision":"",Restored:"","Revision author":"","Revision creator":"","Revision history":"","Revision name":"","Save current revision":"","Show next change":"","Show previous change":"","Suggested by":"",Total:"",X_OF_Y_CHANGES:"%0 de %1"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
package/build/translations/fa.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(i){const e=i.fa=i.fa||{};e.dictionary=Object.assign(e.dictionary||{},{"Added by":"","Back to editing":"","Compare against selected":"",EDIT_X_OF_Y_REVISIONS:"","Empty document":"","Initial revision":"","Loading...":"","Name of the revision (optional)":"","Name this revision":"","No changes":"",NUMBER_OF_CHANGES:["",""],"Open revision history":"",PENDING_ACTION_REVISION_HISTORY:"","Removed by":"","Restore this revision":"",Restored:"","Revision author":"","Revision creator":"","Revision history":"","Revision name":"","Save current revision":"","Show next change":"","Show previous change":"","Suggested by":"",Total:"",X_OF_Y_CHANGES:"0% از 1%"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
1
|
+
!function(i){const e=i.fa=i.fa||{};e.dictionary=Object.assign(e.dictionary||{},{"Added by":"","Back to editing":"","Compare against selected":"",EDIT_X_OF_Y_REVISIONS:"ویرایش","Empty document":"","Initial revision":"","Loading...":"","Name of the revision (optional)":"","Name this revision":"","No changes":"",NUMBER_OF_CHANGES:["",""],"Open revision history":"",PENDING_ACTION_REVISION_HISTORY:"","Removed by":"","Restore this revision":"",Restored:"","Revision author":"","Revision creator":"","Revision history":"","Revision name":"","Save current revision":"","Show next change":"","Show previous change":"","Suggested by":"",Total:"",X_OF_Y_CHANGES:"0% از 1%"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(i){const e=i.tt=i.tt||{};e.dictionary=Object.assign(e.dictionary||{},{"Added by":"","Back to editing":"","Compare against selected":"",EDIT_X_OF_Y_REVISIONS:"Редакцияләү","Empty document":"","Initial revision":"","Loading...":"Йөкләнә...","Name of the revision (optional)":"","Name this revision":"","No changes":"",NUMBER_OF_CHANGES:"","Open revision history":"",PENDING_ACTION_REVISION_HISTORY:"","Removed by":"","Restore this revision":"",Restored:"","Revision author":"","Revision creator":"","Revision history":"","Revision name":"","Save current revision":"","Show next change":"","Show previous change":"","Suggested by":"",Total:"",X_OF_Y_CHANGES:""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Spanish (Colombia) (https://www.transifex.com/ckeditor/teams/11143/es_CO/)\n"
|
|
16
|
+
"Language: es_CO\n"
|
|
17
|
+
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "The prefix for a name of a revision created by restoring other revision."
|
|
20
|
+
msgid "Restored"
|
|
21
|
+
msgstr ""
|
|
22
|
+
|
|
23
|
+
msgctxt "The name for an initial revision that is empty."
|
|
24
|
+
msgid "Empty document"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The name for an initial revision (if it was not empty)."
|
|
28
|
+
msgid "Initial revision"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for a dropdown item to compare given revision with already selected revision."
|
|
32
|
+
msgid "Compare against selected"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
35
|
+
msgctxt "The label for a dropdown item to rename given revision."
|
|
36
|
+
msgid "Name this revision"
|
|
37
|
+
msgstr ""
|
|
38
|
+
|
|
39
|
+
msgctxt "The label for the user who saved the revision."
|
|
40
|
+
msgid "Revision creator"
|
|
41
|
+
msgstr ""
|
|
42
|
+
|
|
43
|
+
msgctxt "The label for users who introduced changes in the revision."
|
|
44
|
+
msgid "Revision author"
|
|
45
|
+
msgstr ""
|
|
46
|
+
|
|
47
|
+
msgctxt "The label for the revision name."
|
|
48
|
+
msgid "Revision name"
|
|
49
|
+
msgstr ""
|
|
50
|
+
|
|
51
|
+
msgctxt "The label for a toolbar form field where a name for a new revision should be provided."
|
|
52
|
+
msgid "Name of the revision (optional)"
|
|
53
|
+
msgstr ""
|
|
54
|
+
|
|
55
|
+
msgctxt "The label for a dropdown item that saves current revision."
|
|
56
|
+
msgid "Save current revision"
|
|
57
|
+
msgstr ""
|
|
58
|
+
|
|
59
|
+
msgctxt "The label for a dropdown item to open the revision history view (revision viewer)."
|
|
60
|
+
msgid "Open revision history"
|
|
61
|
+
msgstr ""
|
|
62
|
+
|
|
63
|
+
msgctxt "The label for the sidebar in revision viewer."
|
|
64
|
+
msgid "Revision history"
|
|
65
|
+
msgstr ""
|
|
66
|
+
|
|
67
|
+
msgctxt "The label for a change tooltip for a suggestion change, shown in revision viewer."
|
|
68
|
+
msgid "Suggested by"
|
|
69
|
+
msgstr ""
|
|
70
|
+
|
|
71
|
+
msgctxt "The label for a change tooltip for an insertion change, shown in revision viewer."
|
|
72
|
+
msgid "Added by"
|
|
73
|
+
msgstr ""
|
|
74
|
+
|
|
75
|
+
msgctxt "The label for a change tooltip for a remove change, shown in revision viewer."
|
|
76
|
+
msgid "Removed by"
|
|
77
|
+
msgstr ""
|
|
78
|
+
|
|
79
|
+
msgctxt "Displayed in the revision viewer toolbar when loading a revision."
|
|
80
|
+
msgid "Loading..."
|
|
81
|
+
msgstr ""
|
|
82
|
+
|
|
83
|
+
msgctxt "Displayed in the revision viewer toolbar when the compared revisions have no changes."
|
|
84
|
+
msgid "No changes"
|
|
85
|
+
msgstr ""
|
|
86
|
+
|
|
87
|
+
msgctxt "Displayed in the revision viewer toolbar when the compared revisions have changes."
|
|
88
|
+
msgid "NUMBER_OF_CHANGES"
|
|
89
|
+
msgid_plural "%0 changes"
|
|
90
|
+
msgstr[0] ""
|
|
91
|
+
msgstr[1] ""
|
|
92
|
+
msgstr[2] ""
|
|
93
|
+
|
|
94
|
+
msgctxt "Edit: (2 of 5)"
|
|
95
|
+
msgid "X_OF_Y_CHANGES"
|
|
96
|
+
msgstr "%0 de %1"
|
|
97
|
+
|
|
98
|
+
msgctxt "The label for a button that highlights previous change in revision viewer."
|
|
99
|
+
msgid "Show previous change"
|
|
100
|
+
msgstr ""
|
|
101
|
+
|
|
102
|
+
msgctxt "The label for a button that highlights next change in revision viewer."
|
|
103
|
+
msgid "Show next change"
|
|
104
|
+
msgstr ""
|
|
105
|
+
|
|
106
|
+
msgctxt "(Total): 5 changes"
|
|
107
|
+
msgid "Total"
|
|
108
|
+
msgstr ""
|
|
109
|
+
|
|
110
|
+
msgctxt "(Edit): 2 of 5"
|
|
111
|
+
msgid "EDIT_X_OF_Y_REVISIONS"
|
|
112
|
+
msgstr "Editar"
|
|
113
|
+
|
|
114
|
+
msgctxt "The label for a button that closes revision viewer and shows editor."
|
|
115
|
+
msgid "Back to editing"
|
|
116
|
+
msgstr ""
|
|
117
|
+
|
|
118
|
+
msgctxt "The label for a button that restores given revision."
|
|
119
|
+
msgid "Restore this revision"
|
|
120
|
+
msgstr ""
|
|
121
|
+
|
|
122
|
+
msgctxt "The label for the alert shown when closing the editor with an unsaved revision history change."
|
|
123
|
+
msgid "PENDING_ACTION_REVISION_HISTORY"
|
|
124
|
+
msgstr ""
|
package/lang/translations/fa.po
CHANGED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Tatar (https://www.transifex.com/ckeditor/teams/11143/tt/)\n"
|
|
16
|
+
"Language: tt\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
|
|
19
|
+
msgctxt "The prefix for a name of a revision created by restoring other revision."
|
|
20
|
+
msgid "Restored"
|
|
21
|
+
msgstr ""
|
|
22
|
+
|
|
23
|
+
msgctxt "The name for an initial revision that is empty."
|
|
24
|
+
msgid "Empty document"
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
msgctxt "The name for an initial revision (if it was not empty)."
|
|
28
|
+
msgid "Initial revision"
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
msgctxt "The label for a dropdown item to compare given revision with already selected revision."
|
|
32
|
+
msgid "Compare against selected"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
35
|
+
msgctxt "The label for a dropdown item to rename given revision."
|
|
36
|
+
msgid "Name this revision"
|
|
37
|
+
msgstr ""
|
|
38
|
+
|
|
39
|
+
msgctxt "The label for the user who saved the revision."
|
|
40
|
+
msgid "Revision creator"
|
|
41
|
+
msgstr ""
|
|
42
|
+
|
|
43
|
+
msgctxt "The label for users who introduced changes in the revision."
|
|
44
|
+
msgid "Revision author"
|
|
45
|
+
msgstr ""
|
|
46
|
+
|
|
47
|
+
msgctxt "The label for the revision name."
|
|
48
|
+
msgid "Revision name"
|
|
49
|
+
msgstr ""
|
|
50
|
+
|
|
51
|
+
msgctxt "The label for a toolbar form field where a name for a new revision should be provided."
|
|
52
|
+
msgid "Name of the revision (optional)"
|
|
53
|
+
msgstr ""
|
|
54
|
+
|
|
55
|
+
msgctxt "The label for a dropdown item that saves current revision."
|
|
56
|
+
msgid "Save current revision"
|
|
57
|
+
msgstr ""
|
|
58
|
+
|
|
59
|
+
msgctxt "The label for a dropdown item to open the revision history view (revision viewer)."
|
|
60
|
+
msgid "Open revision history"
|
|
61
|
+
msgstr ""
|
|
62
|
+
|
|
63
|
+
msgctxt "The label for the sidebar in revision viewer."
|
|
64
|
+
msgid "Revision history"
|
|
65
|
+
msgstr ""
|
|
66
|
+
|
|
67
|
+
msgctxt "The label for a change tooltip for a suggestion change, shown in revision viewer."
|
|
68
|
+
msgid "Suggested by"
|
|
69
|
+
msgstr ""
|
|
70
|
+
|
|
71
|
+
msgctxt "The label for a change tooltip for an insertion change, shown in revision viewer."
|
|
72
|
+
msgid "Added by"
|
|
73
|
+
msgstr ""
|
|
74
|
+
|
|
75
|
+
msgctxt "The label for a change tooltip for a remove change, shown in revision viewer."
|
|
76
|
+
msgid "Removed by"
|
|
77
|
+
msgstr ""
|
|
78
|
+
|
|
79
|
+
msgctxt "Displayed in the revision viewer toolbar when loading a revision."
|
|
80
|
+
msgid "Loading..."
|
|
81
|
+
msgstr "Йөкләнә..."
|
|
82
|
+
|
|
83
|
+
msgctxt "Displayed in the revision viewer toolbar when the compared revisions have no changes."
|
|
84
|
+
msgid "No changes"
|
|
85
|
+
msgstr ""
|
|
86
|
+
|
|
87
|
+
msgctxt "Displayed in the revision viewer toolbar when the compared revisions have changes."
|
|
88
|
+
msgid "NUMBER_OF_CHANGES"
|
|
89
|
+
msgid_plural "%0 changes"
|
|
90
|
+
msgstr[0] ""
|
|
91
|
+
|
|
92
|
+
msgctxt "Edit: (2 of 5)"
|
|
93
|
+
msgid "X_OF_Y_CHANGES"
|
|
94
|
+
msgstr ""
|
|
95
|
+
|
|
96
|
+
msgctxt "The label for a button that highlights previous change in revision viewer."
|
|
97
|
+
msgid "Show previous change"
|
|
98
|
+
msgstr ""
|
|
99
|
+
|
|
100
|
+
msgctxt "The label for a button that highlights next change in revision viewer."
|
|
101
|
+
msgid "Show next change"
|
|
102
|
+
msgstr ""
|
|
103
|
+
|
|
104
|
+
msgctxt "(Total): 5 changes"
|
|
105
|
+
msgid "Total"
|
|
106
|
+
msgstr ""
|
|
107
|
+
|
|
108
|
+
msgctxt "(Edit): 2 of 5"
|
|
109
|
+
msgid "EDIT_X_OF_Y_REVISIONS"
|
|
110
|
+
msgstr "Редакцияләү"
|
|
111
|
+
|
|
112
|
+
msgctxt "The label for a button that closes revision viewer and shows editor."
|
|
113
|
+
msgid "Back to editing"
|
|
114
|
+
msgstr ""
|
|
115
|
+
|
|
116
|
+
msgctxt "The label for a button that restores given revision."
|
|
117
|
+
msgid "Restore this revision"
|
|
118
|
+
msgstr ""
|
|
119
|
+
|
|
120
|
+
msgctxt "The label for the alert shown when closing the editor with an unsaved revision history change."
|
|
121
|
+
msgid "PENDING_ACTION_REVISION_HISTORY"
|
|
122
|
+
msgstr ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-revision-history",
|
|
3
|
-
"version": "35.1
|
|
3
|
+
"version": "35.2.1",
|
|
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.1
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "^35.1
|
|
30
|
-
"@ckeditor/ckeditor5-undo": "^35.1
|
|
31
|
-
"@ckeditor/ckeditor5-editor-classic": "^35.1
|
|
32
|
-
"ckeditor5": "^35.1
|
|
33
|
-
"ckeditor5-collaboration": "^35.1
|
|
28
|
+
"@ckeditor/ckeditor5-core": "^35.2.1",
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "^35.2.1",
|
|
30
|
+
"@ckeditor/ckeditor5-undo": "^35.2.1",
|
|
31
|
+
"@ckeditor/ckeditor5-editor-classic": "^35.2.1",
|
|
32
|
+
"ckeditor5": "^35.2.1",
|
|
33
|
+
"ckeditor5-collaboration": "^35.2.1",
|
|
34
34
|
"lodash-es": "^4.17.15",
|
|
35
35
|
"luxon": "^1.25.0"
|
|
36
36
|
}
|
package/src/changeitem.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5e68=['author','createdAt','type','data'];(function(_0xf7a8d7,_0x5e6849){var _0x1d9341=function(_0x4dd303){while(--_0x4dd303){_0xf7a8d7['push'](_0xf7a8d7['shift']());}};_0x1d9341(++_0x5e6849);}(_0x5e68,0xa5));var _0x1d93=function(_0xf7a8d7,_0x5e6849){_0xf7a8d7=_0xf7a8d7-0x0;var _0x1d9341=_0x5e68[_0xf7a8d7];return _0x1d9341;};import{ObservableMixin as _0x3e9266,mix as _0x213782,uid as _0x32fa51}from'ckeditor5/src/utils';export default class h{constructor(_0x3709de){this['id']=_0x3709de['id']||_0x32fa51(),this['author']=_0x3709de[_0x1d93('0x3')],this[_0x1d93('0x1')]=_0x3709de[_0x1d93('0x1')],this[_0x1d93('0x2')]=_0x3709de[_0x1d93('0x2')]||{},this['set']('createdAt',_0x3709de[_0x1d93('0x0')]);}['toJSON'](){return{'id':this['id'],'authorId':this[_0x1d93('0x3')]['id'],'type':this['type'],'data':this[_0x1d93('0x2')],'createdAt':this[_0x1d93('0x0')]};}}_0x213782(h,_0x3e9266);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d20=['document','initPlugins','updateSourceElement','editing','locale','initialData','destroy','sourceElement','init','get','view','model','config','create'];(function(_0x267f7e,_0x1d204b){const _0x3929d3=function(_0x2fb5ff){while(--_0x2fb5ff){_0x267f7e['push'](_0x267f7e['shift']());}};_0x3929d3(++_0x1d204b);}(_0x1d20,0x105));const _0x3929=function(_0x267f7e,_0x1d204b){_0x267f7e=_0x267f7e-0x0;let _0x3929d3=_0x1d20[_0x267f7e];return _0x3929d3;};import{Editor as _0x5d397f,DataApiMixin as _0x4c8522,ElementApiMixin as _0x37393f}from'ckeditor5/src/core';import{mix as _0x462063}from'ckeditor5/src/utils';import _0x334252 from'./revisionviewereditorui';import _0x325cb8 from'./revisionviewereditoruiview';export default class w extends _0x5d397f{constructor(_0x1c9726,_0x30ce93){super(_0x30ce93),this[_0x3929('0xc')]=_0x1c9726,this[_0x3929('0x2')][_0x3929('0x5')]['createRoot']();const _0x5e768a=new _0x325cb8(this[_0x3929('0x9')],this[_0x3929('0x8')][_0x3929('0x1')],{'shouldToolbarGroupWhenFull':!0x0});this['ui']=new _0x334252(this,_0x5e768a);}[_0x3929('0xb')](){return this[_0x3929('0x7')](),this['ui'][_0x3929('0xb')](),super[_0x3929('0xb')]();}static async[_0x3929('0x4')](_0x14c483,_0x4eebfa){const _0xaaf711=new this(_0x14c483,_0x4eebfa);return await _0xaaf711[_0x3929('0x6')](),await _0xaaf711['ui']['init'](_0x14c483),await _0xaaf711['data'][_0x3929('0xd')](_0xaaf711[_0x3929('0x3')][_0x3929('0x0')](_0x3929('0xa'))),_0xaaf711['fire']('ready'),_0xaaf711;}}_0x462063(w,_0x4c8522),_0x462063(w,_0x37393f);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5249=['element','view','ready','_elementReplacer','toolbar','name','init','focusTracker','_toolbarConfig','bind','get','componentFactory','viewportTopOffset','fillFromConfig','document','fire','limiterElement','config','viewportOffset','isActive','addToolbar','detachDomRoot','render','setEditableElement','attachDomRoot','isFocused','stickyPanel','editor','editing','destroy','editable','getRoot','_initToolbar','rootName'];(function(_0xe38d5,_0x52495e){const _0x32b72d=function(_0x1804fa){while(--_0x1804fa){_0xe38d5['push'](_0xe38d5['shift']());}};_0x32b72d(++_0x52495e);}(_0x5249,0x67));const _0x32b7=function(_0xe38d5,_0x52495e){_0xe38d5=_0xe38d5-0x0;let _0x32b72d=_0x5249[_0xe38d5];return _0x32b72d;};import{EditorUI as _0x4a2182}from'ckeditor5/src/core';import{normalizeToolbarConfig as _0x1f4c73}from'ckeditor5/src/ui';import{ElementReplacer as _0x128762}from'ckeditor5/src/utils';export default class ot extends _0x4a2182{constructor(_0x184d1c,_0x3b8922){super(_0x184d1c),this['view']=_0x3b8922,this[_0x32b7('0x7')]=_0x1f4c73(_0x184d1c[_0x32b7('0x10')][_0x32b7('0x9')](_0x32b7('0x3'))),this[_0x32b7('0x2')]=new _0x128762();}get['element'](){return this['view']['element'];}[_0x32b7('0x5')](_0x577e89){const _0x2694cb=this['editor'],_0x5b7e04=this[_0x32b7('0x0')],_0xf1d319=_0x2694cb[_0x32b7('0x1b')][_0x32b7('0x0')],_0x23c9d8=_0x5b7e04[_0x32b7('0x1d')],_0x34ce3d=_0xf1d319[_0x32b7('0xd')][_0x32b7('0x1e')]();_0x23c9d8[_0x32b7('0x4')]=_0x34ce3d[_0x32b7('0x20')],_0x5b7e04[_0x32b7('0x15')]();const _0x5a73da=_0x23c9d8[_0x32b7('0x21')];this[_0x32b7('0x16')](_0x23c9d8[_0x32b7('0x4')],_0x5a73da),_0x5b7e04[_0x32b7('0x1d')][_0x32b7('0x8')](_0x32b7('0x18'))['to'](this[_0x32b7('0x6')]),_0xf1d319[_0x32b7('0x17')](_0x5a73da),this['_elementReplacer']['replace'](_0x577e89,this[_0x32b7('0x21')]),this[_0x32b7('0x1f')](),this[_0x32b7('0xe')](_0x32b7('0x1'));}[_0x32b7('0x1c')](){const _0x4ba0dc=this[_0x32b7('0x0')],_0x369e81=this[_0x32b7('0x1a')][_0x32b7('0x1b')][_0x32b7('0x0')];this[_0x32b7('0x2')]['restore'](),_0x369e81[_0x32b7('0x14')](_0x4ba0dc[_0x32b7('0x1d')]['name']),_0x4ba0dc['destroy'](),super[_0x32b7('0x1c')]();}['_initToolbar'](){const _0xf3caa1=this[_0x32b7('0x0')];_0xf3caa1['stickyPanel']['bind'](_0x32b7('0x12'))['to'](this[_0x32b7('0x6')],_0x32b7('0x18')),_0xf3caa1[_0x32b7('0x19')][_0x32b7('0xf')]=_0xf3caa1[_0x32b7('0x21')],_0xf3caa1['stickyPanel'][_0x32b7('0x8')](_0x32b7('0xb'))['to'](this,_0x32b7('0x11'),({top:_0x4084a1})=>_0x4084a1),_0xf3caa1[_0x32b7('0x3')][_0x32b7('0xc')](this[_0x32b7('0x7')],this[_0x32b7('0xa')]),this[_0x32b7('0x13')](_0xf3caa1[_0x32b7('0x3')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x154c=['stickyPanel','top','content','shouldToolbarGroupWhenFull','toolbar','editable','main','render'];(function(_0x4cc555,_0x154caa){var _0xb39f88=function(_0x4bd566){while(--_0x4bd566){_0x4cc555['push'](_0x4cc555['shift']());}};_0xb39f88(++_0x154caa);}(_0x154c,0x1a6));var _0xb39f=function(_0x4cc555,_0x154caa){_0x4cc555=_0x4cc555-0x0;var _0xb39f88=_0x154c[_0x4cc555];return _0xb39f88;};import{BoxedEditorUIView as _0x2bb4cb,InlineEditableUIView as _0x3935bd,StickyPanelView as _0x4432c8,ToolbarView as _0x2e49d3}from'ckeditor5/src/ui';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class at extends _0x2bb4cb{constructor(_0x9f332,_0x26d628,_0x49e63a={}){super(_0x9f332),this[_0xb39f('0x2')]=new _0x4432c8(_0x9f332),this['toolbar']=new _0x2e49d3(_0x9f332,{'shouldGroupWhenFull':_0x49e63a[_0xb39f('0x5')]}),this[_0xb39f('0x7')]=new _0x3935bd(_0x9f332,_0x26d628);}[_0xb39f('0x1')](){super[_0xb39f('0x1')](),this[_0xb39f('0x2')][_0xb39f('0x4')]['add'](this[_0xb39f('0x6')]),this[_0xb39f('0x3')]['add'](this[_0xb39f('0x2')]),this[_0xb39f('0x0')]['add'](this[_0xb39f('0x7')]);}}
|
package/src/revision.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3378=['authors','_update','name','creatorId','toVersion','attributes','fromVersion','creator','set','createdAt','diffData','map','setAttribute'];(function(_0x15cec0,_0x3378fc){const _0x1e9281=function(_0xc97234){while(--_0xc97234){_0x15cec0['push'](_0x15cec0['shift']());}};_0x1e9281(++_0x3378fc);}(_0x3378,0xbf));const _0x1e92=function(_0x15cec0,_0x3378fc){_0x15cec0=_0x15cec0-0x0;let _0x1e9281=_0x3378[_0x15cec0];return _0x1e9281;};import{ObservableMixin as _0x364474,mix as _0x584412,uid as _0x334deb}from'ckeditor5/src/utils';import{cloneDeep as _0x30db6d,set as _0x44aec2,unset as _0x1671c6}from'lodash-es';export default class n{constructor(_0x86515b){this['id']=_0x86515b['id']||_0x334deb(),this[_0x1e92('0xc')]('name',_0x86515b[_0x1e92('0x6')]||''),this[_0x1e92('0xb')]=_0x86515b['creator']||null,this['authors']=_0x86515b[_0x1e92('0x4')]||[],this['set'](_0x1e92('0x0'),_0x86515b[_0x1e92('0x0')]||new Date()),this[_0x1e92('0x1')]=_0x86515b[_0x1e92('0x1')]||null,this[_0x1e92('0xc')](_0x1e92('0x9'),_0x86515b[_0x1e92('0x9')]||{}),this[_0x1e92('0x8')]=_0x86515b[_0x1e92('0x8')]||0x0,this[_0x1e92('0xa')]=_0x86515b['fromVersion']||0x0;}['setName'](_0x32b3d5){this[_0x1e92('0x5')]({'name':_0x32b3d5});}[_0x1e92('0x3')](_0xc15ab9,_0x1408de){const _0xedc952=_0x30db6d(this[_0x1e92('0x9')]);_0x44aec2(_0xedc952,_0xc15ab9,_0x1408de),this[_0x1e92('0x5')]({'attributes':_0xedc952});}['removeAttribute'](_0x39e847){const _0x50ad1e=_0x30db6d(this[_0x1e92('0x9')]);_0x1671c6(_0x50ad1e,_0x39e847),this[_0x1e92('0x5')]({'attributes':_0x50ad1e});}['_update'](_0x27e02e,_0xbcc401=!0x1){let _0xa3b083=!0x1;const _0x2b8314={'id':this['id']};for(const _0x45a112 of[_0x1e92('0x6'),'createdAt','diffData',_0x1e92('0x4'),_0x1e92('0x9'),'toVersion','fromVersion',_0x1e92('0x7')]){const _0x50613e=_0x27e02e[_0x45a112];void 0x0!==_0x50613e&&_0x50613e!==this[_0x45a112]&&(this[_0x45a112]=_0x50613e,_0x2b8314[_0x45a112]=_0x50613e,_0xa3b083=!0x0);}_0xa3b083&&(_0x2b8314[_0x1e92('0x4')]&&(_0x2b8314['authorsIds']=_0x2b8314[_0x1e92('0x4')]['map'](_0x439893=>_0x439893['id']),delete _0x2b8314['authors']),this['fire'](_0x1e92('0x5'),_0x2b8314,_0xbcc401));}['toJSON'](){return{'id':this['id'],'name':this[_0x1e92('0x6')],'creatorId':this[_0x1e92('0xb')]?this[_0x1e92('0xb')]['id']:null,'authorsIds':this[_0x1e92('0x4')][_0x1e92('0x2')](_0x2d91ef=>_0x2d91ef['id']),'diffData':this[_0x1e92('0x1')],'createdAt':this[_0x1e92('0x0')],'attributes':this[_0x1e92('0x9')],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}_0x584412(n,_0x364474);
|
package/src/revisiondiff.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6190=['oldRevisionId','add','newRevisionId','changes','_setData'];(function(_0x83ef10,_0x61909a){const _0x1f72b5=function(_0x3bb413){while(--_0x3bb413){_0x83ef10['push'](_0x83ef10['shift']());}};_0x1f72b5(++_0x61909a);}(_0x6190,0x86));const _0x1f72=function(_0x83ef10,_0x61909a){_0x83ef10=_0x83ef10-0x0;let _0x1f72b5=_0x6190[_0x83ef10];return _0x1f72b5;};import{Collection as _0xba76a1}from'ckeditor5/src/utils';export default class f{constructor(_0x5250ec,_0x4a4c82){this[_0x1f72('0x3')]=_0x5250ec,this[_0x1f72('0x1')]=_0x4a4c82,this['changes']=new _0xba76a1();}[_0x1f72('0x0')](_0x1d68e6){for(const _0x20ef59 of _0x1d68e6[_0x1f72('0x4')])this['changes'][_0x1f72('0x2')](_0x20ef59);}}
|
package/src/revisionhistory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2489=['RealTimeCollaborativeTrackChanges','constructor','locale','RevisionTracker','concat','then','refreshVisibility','builtinPlugins','revisionHistory.editorContainer','revisionHistory.restoreRevisionCallback','RealTimeCollaborativeComments','data','RevisionsRepository','editor','Annotations','disableReadOnlyMode','_closeRevisionViewer','restoreRevision','error','closeRevisionViewerCallback','saveRevision','plugins','context','from','requires','update','style','map','names','long','adapter','showRevisionViewerCallback','toLocaleTimeString','isAnonymous','RealTimeCollaborativeEditing','revisionHistory.viewerContainer','enableReadOnlyMode','_showRevisionViewer','initialData','Users','addUser','removeMarker','isReady','toJSON','_recalculatePageBreaks','getRevisions','restrictedEditingException','isEnabled','creator','_restoreRevision','model','refreshPositioning','getRevisionData','addRevisionData','Restored','catch','getRevision','revision-history-missing-configuration','extraPlugins','Autosave','createdAt','string','markers','_update','RevisionHistoryUI','name','none','pluginName','bind','block','get','_getRevisionViewerEditorConfig','display','config','set','function','toVersion','every','create','includes','PaginationLookup','getUser','revisionHistory','_viewerEditor','RevisionHistory','save','_enhanceCloseRevisionViewerCallback','revisionHistory.showRevisionViewerCallback','revision-history-viewer-opened','has','users','revisionHistory.closeRevisionViewerCallback','_enhanceShowRevisionViewerCallback','init','indexOf','exitToEditing','fromVersion','push','repository','define'];(function(_0x4529ad,_0x24899d){const _0x52328b=function(_0x402193){while(--_0x402193){_0x4529ad['push'](_0x4529ad['shift']());}};_0x52328b(++_0x24899d);}(_0x2489,0x186));const _0x5232=function(_0x4529ad,_0x24899d){_0x4529ad=_0x4529ad-0x0;let _0x52328b=_0x2489[_0x4529ad];return _0x52328b;};import{Plugin as _0x5b307a}from'ckeditor5/src/core';import{CKEditorError as _0x143882,uid as _0x18e705}from'ckeditor5/src/utils';import _0x471444 from'./revisiontracker';import _0x4ef510 from'./ui/revisionhistory/revisionhistoryui';import _0x557c4c from'./revisionviewer';import _0x7f24f9 from'./ui/revisionviewer/revisionviewerui';import _0x11d8ea from'./ui/revisionssidebar/revisionssidebar';import _0x5ad8a3 from'./editor/revisionviewereditor';import{getTranslation as _0x13b96b}from'./utils/common-translations';const g=[_0x5232('0x20')],k=[_0x5232('0xd'),_0x5232('0x4a'),_0x5232('0x2c'),_0x5232('0x14'),_0x5232('0xa'),'RestrictedEditingMode',_0x5232('0x45')];export default class C extends _0x5b307a{static get[_0x5232('0x4d')](){return _0x5232('0x5e');}static get[_0x5232('0x22')](){return[_0x471444,_0x4ef510];}constructor(..._0x3268b2){if(super(..._0x3268b2),!this[_0x5232('0x17')][_0x5232('0x53')][_0x5232('0x50')](_0x5232('0x5c')))throw new _0x143882(_0x5232('0x43'),this);this['_viewerEditor']=null,this[_0x5232('0x17')]['config'][_0x5232('0x9')](_0x5232('0x61'),_0x279f14=>this[_0x5232('0x2f')](_0x279f14)),this[_0x5232('0x17')][_0x5232('0x53')][_0x5232('0x9')](_0x5232('0x1'),_0x13ba39=>this[_0x5232('0x1a')](_0x13ba39)),this[_0x5232('0x17')][_0x5232('0x53')][_0x5232('0x9')](_0x5232('0x13'),_0x3bd974=>this[_0x5232('0x3b')](_0x3bd974)),this['_enhanceShowRevisionViewerCallback'](),this[_0x5232('0x60')]();}set[_0x5232('0x28')](_0xffdd29){this['editor'][_0x5232('0x1f')][_0x5232('0x50')](_0x5232('0xd'))[_0x5232('0x28')]=_0xffdd29;}get[_0x5232('0x28')](){return this['editor'][_0x5232('0x1f')][_0x5232('0x50')](_0x5232('0xd'))[_0x5232('0x28')];}[_0x5232('0x3f')](..._0x359b40){return this['editor'][_0x5232('0x1f')][_0x5232('0x50')](_0x5232('0xd'))['addRevisionData'](..._0x359b40);}[_0x5232('0x42')](..._0x40aeac){return this[_0x5232('0x17')][_0x5232('0x1f')][_0x5232('0x50')]('RevisionsRepository')[_0x5232('0x42')](..._0x40aeac);}[_0x5232('0x37')](..._0x2d932f){return this[_0x5232('0x17')][_0x5232('0x1f')][_0x5232('0x50')](_0x5232('0x16'))[_0x5232('0x37')](..._0x2d932f);}[_0x5232('0x51')](){const _0x1706dc={},_0x950ab=this[_0x5232('0x17')],_0x229d93=_0x950ab[_0x5232('0x1f')][_0x5232('0x50')](_0x5232('0xd')),_0x1f462f=_0x950ab['plugins'][_0x5232('0x50')](_0x5232('0x31'))[_0x5232('0x0')];for(const _0x414f3d of _0x950ab['config'][_0x5232('0x26')]())g[_0x5232('0x59')](_0x414f3d)||(_0x1706dc[_0x414f3d]=_0x950ab[_0x5232('0x53')][_0x5232('0x50')](_0x414f3d));_0x1706dc[_0x5232('0x30')]='',_0x1706dc['toolbar']=[_0x5232('0x5'),_0x5232('0x1b'),'changesNavigation'];const _0x156bdc=this['editor'][_0x5232('0xb')][_0x5232('0x11')]||[],_0x4544d3=_0x1706dc[_0x5232('0x44')]||[];delete _0x1706dc[_0x5232('0x44')];const _0x400bd8=_0x156bdc['concat'](_0x1706dc[_0x5232('0x1f')])[_0x5232('0xe')](_0x4544d3)[_0x5232('0x25')](_0x59ca39=>_0x5232('0x47')==typeof _0x59ca39?_0x156bdc['find'](_0x3cee16=>_0x3cee16[_0x5232('0x4d')]==_0x59ca39):_0x59ca39);return _0x1706dc[_0x5232('0x1f')]=Array[_0x5232('0x21')](new Set(_0x400bd8))['filter'](_0x4fd614=>b(_0x4fd614,_0x950ab[_0x5232('0x1f')],[])),(_0x1706dc['plugins'][_0x5232('0x7')](_0x557c4c,_0x7f24f9,class extends _0x5b307a{static get['requires'](){return[_0x557c4c,_0x5232('0x31')];}[_0x5232('0x3')](){const _0x3515a1=this[_0x5232('0x17')][_0x5232('0x1f')]['get'](_0x5232('0x31'));for(const _0xca80f4 of _0x1f462f)_0xca80f4[_0x5232('0x2b')]||_0x3515a1[_0x5232('0x5b')](_0xca80f4['id'])||_0x3515a1[_0x5232('0x32')](_0xca80f4);const _0x2cf3d9=_0x229d93[_0x5232('0x8')][_0x5232('0x37')]();let _0x391350=null;const _0x2b0942=this[_0x5232('0x17')][_0x5232('0x1f')][_0x5232('0x50')]('RevisionViewer');_0x2b0942['adapter']=_0x229d93[_0x5232('0x28')],_0x2b0942['bind'](_0x5232('0x39'))['to'](_0x229d93),this[_0x5232('0x17')]['commands'][_0x5232('0x50')]('restoreRevision')[_0x5232('0x4e')]('isEnabled')['to'](_0x950ab,'isReadOnly',_0x128f6e=>!_0x128f6e);for(const _0x3f4340 of _0x2cf3d9){const _0x189767=null===_0x3f4340[_0x5232('0x3a')];if(_0x189767&&_0x3f4340['toVersion']===_0x3f4340[_0x5232('0x6')])continue;const _0xc4a082=_0x3f4340['toJSON']();_0x2b0942[_0x5232('0x3f')](_0xc4a082,(_0x4861de,_0x33b4ac,_0x1855b2)=>{if(_0x189767){if(_0x391350)_0x391350[_0x5232('0x49')](_0x4861de,_0x33b4ac);else{if(!_0x33b4ac){const _0x2f2b67=_0x1855b2[_0x5232('0x35')]();_0x2f2b67['id']=_0x18e705(),_0x229d93[_0x5232('0x1e')](_0x2f2b67,_0x1855b2[_0x5232('0x56')])[_0x5232('0xf')](_0x33fab9=>{_0x391350=_0x33fab9;});}}}else _0x3f4340[_0x5232('0x49')](_0x4861de,_0x33b4ac);});}}},_0x11d8ea),_0x1706dc);}[_0x5232('0x2')](){const _0x450840=this['editor'][_0x5232('0x53')][_0x5232('0x50')](_0x5232('0x5c'))[_0x5232('0x29')];this['editor'][_0x5232('0x53')][_0x5232('0x54')](_0x5232('0x61'),async()=>{this[_0x5232('0x17')][_0x5232('0x2e')]('revision-history-viewer-opened');const _0x24f26d=this[_0x5232('0x17')][_0x5232('0x1f')][_0x5232('0x50')]('RevisionTracker');this[_0x5232('0x17')]['plugins'][_0x5232('0x63')](_0x5232('0x45'))?await this['editor'][_0x5232('0x1f')]['get']('Autosave')[_0x5232('0x5f')]():await _0x24f26d[_0x5232('0x23')](),this[_0x5232('0x17')][_0x5232('0x1f')][_0x5232('0x63')]('PaginationLookup')&&this[_0x5232('0x17')][_0x5232('0x1f')][_0x5232('0x50')](_0x5232('0x5a'))[_0x5232('0x36')]();const _0x3c94a6=this[_0x5232('0x51')]();return _0x450840(_0x3c94a6)[_0x5232('0xf')](_0x29b5ab=>{this[_0x5232('0x5d')]=_0x29b5ab,this[_0x5232('0x17')][_0x5232('0x1f')][_0x5232('0x63')](_0x5232('0x18'))&&this['editor']['plugins'][_0x5232('0x50')]('Annotations')['refreshVisibility']();})[_0x5232('0x41')](_0x4ddc91=>{console[_0x5232('0x1c')](_0x4ddc91),this[_0x5232('0x17')]['disableReadOnlyMode'](_0x5232('0x62'));});});}[_0x5232('0x60')](){const _0x1be9a0=this[_0x5232('0x17')][_0x5232('0x53')]['get'](_0x5232('0x5c'))['closeRevisionViewerCallback'];this[_0x5232('0x17')][_0x5232('0x53')]['set'](_0x5232('0x1'),()=>(this[_0x5232('0x17')][_0x5232('0x1f')][_0x5232('0x63')](_0x5232('0x5a'))&&this['editor'][_0x5232('0x1f')][_0x5232('0x50')](_0x5232('0x5a'))[_0x5232('0x36')](),_0x1be9a0(this['_viewerEditor'])[_0x5232('0xf')](()=>{this[_0x5232('0x17')][_0x5232('0x19')](_0x5232('0x62')),this[_0x5232('0x5d')]=null,this[_0x5232('0x17')][_0x5232('0x1f')][_0x5232('0x63')](_0x5232('0x18'))&&(this['editor']['plugins'][_0x5232('0x50')](_0x5232('0x18'))[_0x5232('0x10')](),this[_0x5232('0x17')][_0x5232('0x1f')][_0x5232('0x50')](_0x5232('0x18'))[_0x5232('0x3d')]());})));}[_0x5232('0x2f')](_0x5319ef){const _0x5de3f0=this[_0x5232('0x17')][_0x5232('0x53')][_0x5232('0x50')](_0x5232('0x12')),_0x210198=this[_0x5232('0x17')][_0x5232('0x53')][_0x5232('0x50')](_0x5232('0x2d')),_0xb7ac75=this[_0x5232('0x17')][_0x5232('0x53')][_0x5232('0x50')]('revisionHistory.viewerEditorElement');return _0x5ad8a3[_0x5232('0x58')](_0xb7ac75,_0x5319ef)[_0x5232('0xf')](_0x3868c5=>(_0x210198[_0x5232('0x24')][_0x5232('0x52')]=_0x5232('0x4f'),_0x5de3f0['style']['display']=_0x5232('0x4c'),_0x3868c5));}[_0x5232('0x1a')](_0x2621b0){const _0x1cee56=this[_0x5232('0x17')]['config'][_0x5232('0x50')](_0x5232('0x12'));return this['editor'][_0x5232('0x53')][_0x5232('0x50')](_0x5232('0x2d'))[_0x5232('0x24')][_0x5232('0x52')]='none',_0x1cee56['style'][_0x5232('0x52')]='',_0x2621b0['destroy']();}async['_restoreRevision'](_0x2d4930){const _0x318625=this[_0x5232('0x17')],_0x54a92f=this['_viewerEditor']['plugins'][_0x5232('0x50')]('RevisionViewer'),_0x5564cc=_0x318625['plugins'][_0x5232('0x50')](_0x5232('0xd')),_0x40d452=_0x54a92f[_0x5232('0x8')][_0x5232('0x42')](_0x2d4930);let _0x4b582f,_0x34f280;try{_0x4b582f=await _0x54a92f[_0x5232('0x3e')](_0x40d452);}catch(_0x549d82){return void console['error'](_0x549d82);}_0x318625[_0x5232('0x3c')]['change'](_0x499d7b=>{for(const _0x2d732d of Array[_0x5232('0x21')](_0x318625[_0x5232('0x3c')][_0x5232('0x48')]['getMarkersGroup'](_0x5232('0x38'))))_0x499d7b[_0x5232('0x33')](_0x2d732d);}),_0x54a92f[_0x5232('0x34')]=!0x1,_0x318625[_0x5232('0x15')][_0x5232('0x54')](_0x4b582f,{'suppressErrorInCollaboration':!0x0});const _0x408079=_0x13b96b(_0x318625[_0x5232('0xc')],_0x5232('0x40'));if(_0x40d452[_0x5232('0x4b')])_0x34f280=-0x1==_0x40d452['name'][_0x5232('0x4')](_0x408079)?_0x408079+':\x20'+_0x40d452[_0x5232('0x4b')]:_0x40d452['name'];else _0x34f280=_0x408079+':\x20'+(_0x40d452[_0x5232('0x46')]['toLocaleDateString'](_0x318625[_0x5232('0xc')]['uiLanguage'],{'month':_0x5232('0x27'),'day':'numeric'})+',\x20'+_0x40d452[_0x5232('0x46')][_0x5232('0x2a')](_0x318625[_0x5232('0xc')]['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5564cc[_0x5232('0x1e')]({'name':_0x34f280}),_0x54a92f[_0x5232('0x34')]=!0x0,_0x318625[_0x5232('0x53')][_0x5232('0x50')](_0x5232('0x5c'))[_0x5232('0x1d')]();}}function b(_0x2fd9c5,_0x16f155,_0x331218){const _0x3dc38e=_0x5232('0x55')==typeof _0x2fd9c5?_0x2fd9c5['pluginName']||_0x2fd9c5[_0x5232('0x4b')]:_0x2fd9c5;if(_0x331218[_0x5232('0x59')](_0x3dc38e))return!0x0;if(_0x331218['push'](_0x3dc38e),k['includes'](_0x3dc38e))return!0x1;const _0x463a24=((_0x5232('0x55')==typeof _0x2fd9c5?_0x2fd9c5:_0x16f155[_0x5232('0x63')](_0x3dc38e)?_0x16f155[_0x5232('0x50')](_0x3dc38e):{})[_0x5232('0x22')]||[])[_0x5232('0x57')](_0x483807=>b(_0x483807,_0x16f155,_0x331218));return _0x463a24||k[_0x5232('0x7')](_0x3dc38e),_0x463a24;}
|
|
23
|
+
const _0x47ba=['none','Autosave','changesNavigation','model','uiLanguage','addUser','RevisionHistory','toJSON','init','revisionHistory.restoreRevisionCallback','toolbar','find','_restoreRevision','_closeRevisionViewer','editor','revisionHistory.showRevisionViewerCallback','createdAt','revisionHistory.closeRevisionViewerCallback','revisionHistory','plugins','RevisionViewer','numeric','_recalculatePageBreaks','isEnabled','getRevisionData','RevisionTracker','requires','destroy','revisionHistory.editorContainer','every','names','pluginName','includes','long','Users','map','revisionHistory.viewerEditorElement','adapter','revision-history-missing-configuration','function','update','context','revisionHistory.viewerContainer','RealTimeCollaborativeTrackChanges','refreshPositioning','get','define','getRevision','data','markers','addRevisionData','locale','Restored','getRevisions','concat','RestrictedEditingMode','_enhanceCloseRevisionViewerCallback','restoreRevision','getUser','change','filter','RealTimeCollaborativeEditing','disableReadOnlyMode','showRevisionViewerCallback','isReady','refreshVisibility','toVersion','revision-history-viewer-opened','RevisionsRepository','config','Annotations','_showRevisionViewer','restrictedEditingException','removeMarker','_enhanceShowRevisionViewerCallback','initialData','repository','builtinPlugins','creator','extraPlugins','style','toLocaleTimeString','isAnonymous','bind','commands','from','_getRevisionViewerEditorConfig','_update','PaginationLookup','push','then','isReadOnly','set','name','getMarkersGroup','indexOf','has','error','display','_viewerEditor','RealTimeCollaborativeComments'];(function(_0x592bb3,_0x47ba79){const _0x1a557e=function(_0x1be8f8){while(--_0x1be8f8){_0x592bb3['push'](_0x592bb3['shift']());}};_0x1a557e(++_0x47ba79);}(_0x47ba,0x1da));const _0x1a55=function(_0x592bb3,_0x47ba79){_0x592bb3=_0x592bb3-0x0;let _0x1a557e=_0x47ba[_0x592bb3];return _0x1a557e;};import{Plugin as _0xe72c00}from'ckeditor5/src/core';import{CKEditorError as _0x5b553d,uid as _0x148b4}from'ckeditor5/src/utils';import _0x4613b7 from'./revisiontracker';import _0x5e01f2 from'./ui/revisionhistory/revisionhistoryui';import _0x4b8781 from'./revisionviewer';import _0x1765f0 from'./ui/revisionviewer/revisionviewerui';import _0x2229a5 from'./ui/revisionssidebar/revisionssidebar';import _0x1b8f1c from'./editor/revisionviewereditor';import{getTranslation as _0x3ec7c5}from'./utils/common-translations';const g=[_0x1a55('0x48')],k=['RevisionTracker','RevisionHistoryUI',_0x1a55('0x5c'),_0x1a55('0x1e'),_0x1a55('0x4a'),_0x1a55('0x56'),_0x1a55('0x20')];export default class C extends _0xe72c00{static get[_0x1a55('0x3e')](){return _0x1a55('0x25');}static get[_0x1a55('0x39')](){return[_0x4613b7,_0x5e01f2];}constructor(..._0x514e12){if(super(..._0x514e12),!this[_0x1a55('0x2d')][_0x1a55('0x64')]['get'](_0x1a55('0x31')))throw new _0x5b553d(_0x1a55('0x45'),this);this['_viewerEditor']=null,this[_0x1a55('0x2d')][_0x1a55('0x64')][_0x1a55('0x4d')](_0x1a55('0x2e'),_0x49fa17=>this[_0x1a55('0x1')](_0x49fa17)),this['editor'][_0x1a55('0x64')]['define'](_0x1a55('0x30'),_0x245420=>this[_0x1a55('0x2c')](_0x245420)),this[_0x1a55('0x2d')][_0x1a55('0x64')][_0x1a55('0x4d')](_0x1a55('0x28'),_0x42daab=>this[_0x1a55('0x2b')](_0x42daab)),this[_0x1a55('0x4')](),this[_0x1a55('0x57')]();}set[_0x1a55('0x44')](_0x19c074){this['editor'][_0x1a55('0x32')][_0x1a55('0x4c')](_0x1a55('0x38'))[_0x1a55('0x44')]=_0x19c074;}get[_0x1a55('0x44')](){return this[_0x1a55('0x2d')][_0x1a55('0x32')]['get']('RevisionTracker')[_0x1a55('0x44')];}[_0x1a55('0x51')](..._0x4f034d){return this[_0x1a55('0x2d')][_0x1a55('0x32')][_0x1a55('0x4c')]('RevisionTracker')[_0x1a55('0x51')](..._0x4f034d);}[_0x1a55('0x4e')](..._0x6d0972){return this[_0x1a55('0x2d')][_0x1a55('0x32')]['get'](_0x1a55('0x63'))[_0x1a55('0x4e')](..._0x6d0972);}[_0x1a55('0x54')](..._0x45d0cd){return this[_0x1a55('0x2d')][_0x1a55('0x32')][_0x1a55('0x4c')](_0x1a55('0x63'))[_0x1a55('0x54')](..._0x45d0cd);}[_0x1a55('0x10')](){const _0x27c1f7={},_0x224515=this[_0x1a55('0x2d')],_0x4f7e95=_0x224515[_0x1a55('0x32')][_0x1a55('0x4c')]('RevisionTracker'),_0x4253a2=_0x224515['plugins'][_0x1a55('0x4c')](_0x1a55('0x41'))['users'];for(const _0x125abc of _0x224515[_0x1a55('0x64')][_0x1a55('0x3d')]())g[_0x1a55('0x3f')](_0x125abc)||(_0x27c1f7[_0x125abc]=_0x224515[_0x1a55('0x64')][_0x1a55('0x4c')](_0x125abc));_0x27c1f7[_0x1a55('0x5')]='',_0x27c1f7[_0x1a55('0x29')]=['exitToEditing','restoreRevision',_0x1a55('0x21')];const _0xe82012=this['editor']['constructor'][_0x1a55('0x7')]||[],_0x1b8f1b=_0x27c1f7[_0x1a55('0x9')]||[];delete _0x27c1f7[_0x1a55('0x9')];const _0x16cd2b=_0xe82012[_0x1a55('0x55')](_0x27c1f7[_0x1a55('0x32')])[_0x1a55('0x55')](_0x1b8f1b)[_0x1a55('0x42')](_0x386b40=>'string'==typeof _0x386b40?_0xe82012[_0x1a55('0x2a')](_0x17e7b3=>_0x17e7b3[_0x1a55('0x3e')]==_0x386b40):_0x386b40);return _0x27c1f7[_0x1a55('0x32')]=Array[_0x1a55('0xf')](new Set(_0x16cd2b))[_0x1a55('0x5b')](_0x1b1036=>b(_0x1b1036,_0x224515[_0x1a55('0x32')],[])),(_0x27c1f7[_0x1a55('0x32')][_0x1a55('0x13')](_0x4b8781,_0x1765f0,class extends _0xe72c00{static get[_0x1a55('0x39')](){return[_0x4b8781,_0x1a55('0x41')];}[_0x1a55('0x27')](){const _0x220dfc=this[_0x1a55('0x2d')][_0x1a55('0x32')][_0x1a55('0x4c')](_0x1a55('0x41'));for(const _0x2e2f77 of _0x4253a2)_0x2e2f77[_0x1a55('0xc')]||_0x220dfc[_0x1a55('0x59')](_0x2e2f77['id'])||_0x220dfc[_0x1a55('0x24')](_0x2e2f77);const _0xe8b77f=_0x4f7e95['repository'][_0x1a55('0x54')]();let _0x20f6d5=null;const _0x12939c=this[_0x1a55('0x2d')][_0x1a55('0x32')][_0x1a55('0x4c')](_0x1a55('0x33'));_0x12939c[_0x1a55('0x44')]=_0x4f7e95[_0x1a55('0x44')],_0x12939c[_0x1a55('0xd')](_0x1a55('0x36'))['to'](_0x4f7e95),this[_0x1a55('0x2d')][_0x1a55('0xe')][_0x1a55('0x4c')](_0x1a55('0x58'))[_0x1a55('0xd')]('isEnabled')['to'](_0x224515,_0x1a55('0x15'),_0xc2233e=>!_0xc2233e);for(const _0x43c6ee of _0xe8b77f){const _0x383eb6=null===_0x43c6ee[_0x1a55('0x8')];if(_0x383eb6&&_0x43c6ee[_0x1a55('0x61')]===_0x43c6ee['fromVersion'])continue;const _0x501157=_0x43c6ee[_0x1a55('0x26')]();_0x12939c[_0x1a55('0x51')](_0x501157,(_0x11e4b3,_0x49ed8e,_0xc11178)=>{if(_0x383eb6){if(_0x20f6d5)_0x20f6d5[_0x1a55('0x11')](_0x11e4b3,_0x49ed8e);else{if(!_0x49ed8e){const _0x11b06b=_0xc11178['toJSON']();_0x11b06b['id']=_0x148b4(),_0x4f7e95['saveRevision'](_0x11b06b,_0xc11178[_0x1a55('0x61')])['then'](_0x4e96ca=>{_0x20f6d5=_0x4e96ca;});}}}else _0x43c6ee[_0x1a55('0x11')](_0x11e4b3,_0x49ed8e);});}}},_0x2229a5),_0x27c1f7);}['_enhanceShowRevisionViewerCallback'](){const _0xf79f35=this[_0x1a55('0x2d')][_0x1a55('0x64')]['get'](_0x1a55('0x31'))[_0x1a55('0x5e')];this[_0x1a55('0x2d')]['config'][_0x1a55('0x16')](_0x1a55('0x2e'),async()=>{this[_0x1a55('0x2d')]['enableReadOnlyMode'](_0x1a55('0x62'));const _0x3436d0=this['editor'][_0x1a55('0x32')][_0x1a55('0x4c')](_0x1a55('0x38'));this[_0x1a55('0x2d')]['plugins'][_0x1a55('0x1a')]('Autosave')?await this['editor'][_0x1a55('0x32')][_0x1a55('0x4c')](_0x1a55('0x20'))['save']():await _0x3436d0[_0x1a55('0x47')](),this[_0x1a55('0x2d')][_0x1a55('0x32')]['has'](_0x1a55('0x12'))&&this['editor'][_0x1a55('0x32')]['get'](_0x1a55('0x12'))[_0x1a55('0x35')]();const _0x4e64bf=this[_0x1a55('0x10')]();return _0xf79f35(_0x4e64bf)['then'](_0x33b7ae=>{this[_0x1a55('0x1d')]=_0x33b7ae,this['editor']['plugins'][_0x1a55('0x1a')](_0x1a55('0x0'))&&this[_0x1a55('0x2d')]['plugins'][_0x1a55('0x4c')](_0x1a55('0x0'))[_0x1a55('0x60')]();})['catch'](_0x36514b=>{console[_0x1a55('0x1b')](_0x36514b),this[_0x1a55('0x2d')][_0x1a55('0x5d')](_0x1a55('0x62'));});});}['_enhanceCloseRevisionViewerCallback'](){const _0x35d6a7=this[_0x1a55('0x2d')][_0x1a55('0x64')][_0x1a55('0x4c')]('revisionHistory')['closeRevisionViewerCallback'];this['editor'][_0x1a55('0x64')][_0x1a55('0x16')](_0x1a55('0x30'),()=>(this['editor'][_0x1a55('0x32')][_0x1a55('0x1a')](_0x1a55('0x12'))&&this[_0x1a55('0x2d')]['plugins'][_0x1a55('0x4c')](_0x1a55('0x12'))['_recalculatePageBreaks'](),_0x35d6a7(this[_0x1a55('0x1d')])[_0x1a55('0x14')](()=>{this[_0x1a55('0x2d')][_0x1a55('0x5d')](_0x1a55('0x62')),this[_0x1a55('0x1d')]=null,this[_0x1a55('0x2d')][_0x1a55('0x32')]['has'](_0x1a55('0x0'))&&(this[_0x1a55('0x2d')]['plugins']['get'](_0x1a55('0x0'))[_0x1a55('0x60')](),this[_0x1a55('0x2d')]['plugins'][_0x1a55('0x4c')]('Annotations')[_0x1a55('0x4b')]());})));}[_0x1a55('0x1')](_0x541ac1){const _0x31256a=this[_0x1a55('0x2d')][_0x1a55('0x64')][_0x1a55('0x4c')]('revisionHistory.editorContainer'),_0x535f9d=this['editor'][_0x1a55('0x64')][_0x1a55('0x4c')](_0x1a55('0x49')),_0x21c8ec=this[_0x1a55('0x2d')][_0x1a55('0x64')]['get'](_0x1a55('0x43'));return _0x1b8f1c['create'](_0x21c8ec,_0x541ac1)[_0x1a55('0x14')](_0x42a163=>(_0x535f9d[_0x1a55('0xa')][_0x1a55('0x1c')]='block',_0x31256a[_0x1a55('0xa')][_0x1a55('0x1c')]=_0x1a55('0x1f'),_0x42a163));}['_closeRevisionViewer'](_0x40f227){const _0xa7e18b=this[_0x1a55('0x2d')]['config']['get'](_0x1a55('0x3b'));return this[_0x1a55('0x2d')][_0x1a55('0x64')]['get'](_0x1a55('0x49'))['style'][_0x1a55('0x1c')]=_0x1a55('0x1f'),_0xa7e18b['style'][_0x1a55('0x1c')]='',_0x40f227[_0x1a55('0x3a')]();}async['_restoreRevision'](_0x2bd804){const _0x1f3281=this[_0x1a55('0x2d')],_0x4efe19=this[_0x1a55('0x1d')]['plugins'][_0x1a55('0x4c')]('RevisionViewer'),_0x2327ab=_0x1f3281[_0x1a55('0x32')]['get']('RevisionTracker'),_0x3ce54a=_0x4efe19[_0x1a55('0x6')][_0x1a55('0x4e')](_0x2bd804);let _0xa4af74,_0x1676f9;try{_0xa4af74=await _0x4efe19[_0x1a55('0x37')](_0x3ce54a);}catch(_0x564ad0){return void console['error'](_0x564ad0);}_0x1f3281[_0x1a55('0x22')][_0x1a55('0x5a')](_0x363182=>{for(const _0x4a2c53 of Array[_0x1a55('0xf')](_0x1f3281[_0x1a55('0x22')][_0x1a55('0x50')][_0x1a55('0x18')](_0x1a55('0x2'))))_0x363182[_0x1a55('0x3')](_0x4a2c53);}),_0x4efe19[_0x1a55('0x5f')]=!0x1,_0x1f3281[_0x1a55('0x4f')][_0x1a55('0x16')](_0xa4af74,{'suppressErrorInCollaboration':!0x0});const _0xc1b4db=_0x3ec7c5(_0x1f3281['locale'],_0x1a55('0x53'));if(_0x3ce54a[_0x1a55('0x17')])_0x1676f9=-0x1==_0x3ce54a['name'][_0x1a55('0x19')](_0xc1b4db)?_0xc1b4db+':\x20'+_0x3ce54a[_0x1a55('0x17')]:_0x3ce54a[_0x1a55('0x17')];else _0x1676f9=_0xc1b4db+':\x20'+(_0x3ce54a[_0x1a55('0x2f')]['toLocaleDateString'](_0x1f3281[_0x1a55('0x52')][_0x1a55('0x23')],{'month':_0x1a55('0x40'),'day':'numeric'})+',\x20'+_0x3ce54a[_0x1a55('0x2f')][_0x1a55('0xb')](_0x1f3281[_0x1a55('0x52')][_0x1a55('0x23')],{'hour':_0x1a55('0x34'),'minute':_0x1a55('0x34')}));return await _0x2327ab['saveRevision']({'name':_0x1676f9}),_0x4efe19[_0x1a55('0x5f')]=!0x0,_0x1f3281[_0x1a55('0x64')][_0x1a55('0x4c')](_0x1a55('0x31'))['closeRevisionViewerCallback']();}}function b(_0x4b3c36,_0x129942,_0x5dc08c){const _0x3cd28e=_0x1a55('0x46')==typeof _0x4b3c36?_0x4b3c36['pluginName']||_0x4b3c36[_0x1a55('0x17')]:_0x4b3c36;if(_0x5dc08c['includes'](_0x3cd28e))return!0x0;if(_0x5dc08c[_0x1a55('0x13')](_0x3cd28e),k[_0x1a55('0x3f')](_0x3cd28e))return!0x1;const _0x62c16e=((_0x1a55('0x46')==typeof _0x4b3c36?_0x4b3c36:_0x129942[_0x1a55('0x1a')](_0x3cd28e)?_0x129942[_0x1a55('0x4c')](_0x3cd28e):{})[_0x1a55('0x39')]||[])[_0x1a55('0x3c')](_0x4b695a=>b(_0x4b695a,_0x129942,_0x5dc08c));return _0x62c16e||k[_0x1a55('0x13')](_0x3cd28e),_0x62c16e;}
|