@ckeditor/ckeditor5-track-changes 43.0.0-alpha.4 → 43.0.0-alpha.6
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/track-changes.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/trackchangesconfig.d.ts +7 -0
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/ui/suggestioncontroller.d.ts +1 -1
- package/dist/ui/view/basesuggestionthreadview.d.ts +8 -2
- package/dist/ui/view/suggestionthreadview.d.ts +42 -137
- package/dist/ui/view/suggestionview.d.ts +194 -0
- package/package.json +10 -10
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +7 -0
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +8 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +42 -137
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.d.ts +190 -0
- package/src/ui/view/suggestionview.js +23 -0
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/ui/view/suggestionview
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import { View, type TemplateDefinition, type FocusableView, ViewCollection, FocusCycler } from 'ckeditor5/src/ui.js';
|
|
11
|
+
import { LateFocusButtonView, UserView } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
12
|
+
import type Suggestion from '../../suggestion.js';
|
|
13
|
+
/**
|
|
14
|
+
* A view displaying a detailed information about the suggestion as well as controls to accept or discard it.
|
|
15
|
+
*
|
|
16
|
+
* This view can be replaced by other view by overwriting the
|
|
17
|
+
* {@link module:track-changes/trackchangesconfig~TrackChangesConfig#SuggestionView} configuration.
|
|
18
|
+
*/
|
|
19
|
+
export default class SuggestionView extends View implements FocusableView {
|
|
20
|
+
/**
|
|
21
|
+
* A suggestion description explaining what has been changed. To be presented to the user.
|
|
22
|
+
*
|
|
23
|
+
* @observable
|
|
24
|
+
*/
|
|
25
|
+
description: string;
|
|
26
|
+
/**
|
|
27
|
+
* A user view for the suggestion author.
|
|
28
|
+
*/
|
|
29
|
+
userView: UserView;
|
|
30
|
+
/**
|
|
31
|
+
* A button view for the button that accepts the suggestion.
|
|
32
|
+
*/
|
|
33
|
+
acceptButton: LateFocusButtonView;
|
|
34
|
+
/**
|
|
35
|
+
* A button view for the button that discards the suggestion.
|
|
36
|
+
*/
|
|
37
|
+
discardButton: LateFocusButtonView;
|
|
38
|
+
/**
|
|
39
|
+
* A collection of focusable child views.
|
|
40
|
+
*/
|
|
41
|
+
readonly focusables: ViewCollection<FocusableView>;
|
|
42
|
+
/**
|
|
43
|
+
* Tracks information about DOM focus in the suggestion.
|
|
44
|
+
*/
|
|
45
|
+
readonly focusTracker: FocusTracker;
|
|
46
|
+
/**
|
|
47
|
+
* Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
48
|
+
*/
|
|
49
|
+
readonly keystrokes: KeystrokeHandler;
|
|
50
|
+
/**
|
|
51
|
+
* Helps cycling over focusable views in the suggestion.
|
|
52
|
+
*/
|
|
53
|
+
readonly focusCycler: FocusCycler;
|
|
54
|
+
/**
|
|
55
|
+
* Suggestion creation date.
|
|
56
|
+
*
|
|
57
|
+
* @observable
|
|
58
|
+
*/
|
|
59
|
+
authoredAt: Date | null;
|
|
60
|
+
constructor(locale: Locale, model: Suggestion, config: SuggestionConfig);
|
|
61
|
+
/**
|
|
62
|
+
* @inheritDoc
|
|
63
|
+
*/
|
|
64
|
+
render(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Returns a template definition that will be passed to {@link module:ui/view~View#setTemplate}.
|
|
67
|
+
*
|
|
68
|
+
* Overwrite this method if you want to set a custom template for the suggestion view.
|
|
69
|
+
*
|
|
70
|
+
* The template looks as follows:
|
|
71
|
+
*
|
|
72
|
+
* ```ts
|
|
73
|
+
* const bind = this.bindTemplate;
|
|
74
|
+
* const suggestionContentElements = [
|
|
75
|
+
* {
|
|
76
|
+
* tag: 'div',
|
|
77
|
+
*
|
|
78
|
+
* attributes: {
|
|
79
|
+
* class: [ 'ck-suggestion__info', 'ck-annotation__info' ]
|
|
80
|
+
* },
|
|
81
|
+
*
|
|
82
|
+
* children: [
|
|
83
|
+
* {
|
|
84
|
+
* tag: 'span',
|
|
85
|
+
*
|
|
86
|
+
* children: [
|
|
87
|
+
* {
|
|
88
|
+
* text: this.userView.name
|
|
89
|
+
* }
|
|
90
|
+
* ],
|
|
91
|
+
*
|
|
92
|
+
* attributes: {
|
|
93
|
+
* class: [ 'ck-suggestion__info-name', 'ck-annotation__info-name' ]
|
|
94
|
+
* }
|
|
95
|
+
* },
|
|
96
|
+
* {
|
|
97
|
+
* tag: 'time',
|
|
98
|
+
*
|
|
99
|
+
* attributes: {
|
|
100
|
+
* datetime: bind.to( 'authoredAt' ),
|
|
101
|
+
* class: [ 'ck-comment__info-time', 'ck-annotation__info-time' ]
|
|
102
|
+
* },
|
|
103
|
+
*
|
|
104
|
+
* children: [
|
|
105
|
+
* {
|
|
106
|
+
* text: bind.to( 'authoredAt', value => this._config.formatDateTime( value ) )
|
|
107
|
+
* }
|
|
108
|
+
* ]
|
|
109
|
+
* }
|
|
110
|
+
* ]
|
|
111
|
+
* },
|
|
112
|
+
* {
|
|
113
|
+
* tag: 'div',
|
|
114
|
+
*
|
|
115
|
+
* attributes: {
|
|
116
|
+
* class: [ 'ck-suggestion__actions', 'ck-annotation__actions' ]
|
|
117
|
+
* },
|
|
118
|
+
*
|
|
119
|
+
* children: [
|
|
120
|
+
* this.acceptButton,
|
|
121
|
+
* this.discardButton
|
|
122
|
+
* ]
|
|
123
|
+
* },
|
|
124
|
+
* {
|
|
125
|
+
* tag: 'div',
|
|
126
|
+
*
|
|
127
|
+
* attributes: {
|
|
128
|
+
* class: [ 'ck-annotation__content-wrapper' ]
|
|
129
|
+
* }
|
|
130
|
+
* }
|
|
131
|
+
* ];
|
|
132
|
+
*
|
|
133
|
+
* if ( this._model.isExternal ) {
|
|
134
|
+
* suggestionContentElements.push( {
|
|
135
|
+
* tag: 'div',
|
|
136
|
+
*
|
|
137
|
+
* attributes: {
|
|
138
|
+
* class: [ 'ck-comment__external' ]
|
|
139
|
+
* },
|
|
140
|
+
*
|
|
141
|
+
* children: [ {
|
|
142
|
+
* text: this.getExternalSuggestionNote()
|
|
143
|
+
* } ]
|
|
144
|
+
* } );
|
|
145
|
+
* }
|
|
146
|
+
*
|
|
147
|
+
* return {
|
|
148
|
+
* tag: 'div',
|
|
149
|
+
*
|
|
150
|
+
* attributes: {
|
|
151
|
+
* class: [
|
|
152
|
+
* 'ck-suggestion',
|
|
153
|
+
* 'ck-annotation'
|
|
154
|
+
* ],
|
|
155
|
+
* tabindex: -1
|
|
156
|
+
* },
|
|
157
|
+
*
|
|
158
|
+
* children: [
|
|
159
|
+
* this.userView,
|
|
160
|
+
* {
|
|
161
|
+
* tag: 'div',
|
|
162
|
+
*
|
|
163
|
+
* attributes: {
|
|
164
|
+
* class: [ 'ck-suggestion__main', 'ck-annotation__main' ],
|
|
165
|
+
* role: 'presentation'
|
|
166
|
+
* },
|
|
167
|
+
*
|
|
168
|
+
* children: suggestionContentElements
|
|
169
|
+
* }
|
|
170
|
+
* ]
|
|
171
|
+
* };
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
getTemplate(): TemplateDefinition;
|
|
175
|
+
/**
|
|
176
|
+
* @inheritDoc
|
|
177
|
+
*/
|
|
178
|
+
focus(): void;
|
|
179
|
+
/**
|
|
180
|
+
* Gets the translated notification text which indicates that the author name comes from an external source.
|
|
181
|
+
*/
|
|
182
|
+
getUserViewNotificationText(): string | null;
|
|
183
|
+
/**
|
|
184
|
+
* Gets the translated note which indicates that the suggestion comes from an external source.
|
|
185
|
+
*/
|
|
186
|
+
getExternalSuggestionNote(): string;
|
|
187
|
+
}
|
|
188
|
+
export interface SuggestionConfig {
|
|
189
|
+
formatDateTime: (date: Date | string) => string;
|
|
190
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x51ef(){const _0x322b43=['tab','render','querySelector','acceptButton','EXTERNAL_IMPORT_WORD_AVATAR','fire','ck-suggestion--accept','ck-suggestion__user','shift+tab','authoredAt','setTemplate','bindTemplate','check','esc','cancel','locale','add','ck-annotation__content-wrapper','getUserViewNotificationText','focusTracker','31149MYYcWM','getExternalSuggestionNote','_createButton','3849PRJJLA','description','getTemplate','EXTERNAL_SUGGESTION','164791HIUUpe','keystrokes','acceptSuggestion','div','author','discardButton','1028712EJrcEc','Accept\x20suggestion','ck-annotation__main','Discard\x20suggestion','EXTERNAL_IMPORT_WORD_SUGGESTION','enter','.ck-annotation__content-wrapper','isExternal','listenTo','678178MYcgMC','set','change:description','2jPRtUg','ck-comment__info-time','_config','element','ck-annotation__info-name','ck-annotation__info','extendTemplate','ck-annotation__info-time','focusCycler','execute','attributes','span','userView','ck-suggestion--discard','source','focusables','_setupKeyboardNavigation','_model','focusFirst','ck-annotation','1056CGwNin','EXTERNAL_AVATAR','2885407KIhEkt','name','creator','ck-suggestion__main','target','ck-annotation__actions','ck-suggestion__info-name','formatDateTime','time','innerHTML','@external','focus','bind','ck-suggestion','discardSuggestion','push','ck-suggestion__info','importWord','ck-comment__external','4406982rJtbIh','ck-suggestion__actions','5UygJhM','750IMWlgN','ck-annotation__user','presentation','48CqJqbB'];_0x51ef=function(){return _0x322b43;};return _0x51ef();}const _0x349193=_0xc779;(function(_0x44a0a6,_0x4a8e84){const _0x232f3e=_0xc779,_0x225b42=_0x44a0a6();while(!![]){try{const _0x14d21d=parseInt(_0x232f3e(0x11b))/0x1*(parseInt(_0x232f3e(0x118))/0x2)+parseInt(_0x232f3e(0x105))/0x3*(-parseInt(_0x232f3e(0x12f))/0x4)+parseInt(_0x232f3e(0x146))/0x5*(-parseInt(_0x232f3e(0x144))/0x6)+parseInt(_0x232f3e(0x131))/0x7+parseInt(_0x232f3e(0x10f))/0x8+parseInt(_0x232f3e(0x102))/0x9*(parseInt(_0x232f3e(0x147))/0xa)+-parseInt(_0x232f3e(0x109))/0xb*(-parseInt(_0x232f3e(0x14a))/0xc);if(_0x14d21d===_0x4a8e84)break;else _0x225b42['push'](_0x225b42['shift']());}catch(_0x16dd80){_0x225b42['push'](_0x225b42['shift']());}}}(_0x51ef,0x7196a));import{FocusTracker as _0x54f258,KeystrokeHandler as _0x2b7f3f}from'ckeditor5/src/utils.js';import{View as _0x345e36,ViewCollection as _0x39478e,FocusCycler as _0x348a60}from'ckeditor5/src/ui.js';import{LateFocusButtonView as _0x6aca0d,UserView as _0x2710d4}from'ckeditor5-collaboration/src/collaboration-core.js';import{icons as _0x30cc0f}from'ckeditor5/src/core.js';function _0xc779(_0x49e46c,_0x1fb5e8){const _0x51ef67=_0x51ef();return _0xc779=function(_0xc779bf,_0x4fac2a){_0xc779bf=_0xc779bf-0xfb;let _0x4d02cd=_0x51ef67[_0xc779bf];return _0x4d02cd;},_0xc779(_0x49e46c,_0x1fb5e8);}import{getTranslation as _0x1c4819}from'../../utils/common-translations.js';export default class ce extends _0x345e36{constructor(_0x557f32,_0x1cb7c4,_0x5413f8){const _0x89fadf=_0xc779;super(_0x557f32),this[_0x89fadf(0x12c)]=_0x1cb7c4,this[_0x89fadf(0x11d)]=_0x5413f8,this[_0x89fadf(0x119)](_0x89fadf(0x106),''),this[_0x89fadf(0x13d)](_0x89fadf(0x154))['to'](_0x1cb7c4),this[_0x89fadf(0x14e)]=this[_0x89fadf(0x104)](_0x1c4819(_0x557f32,_0x89fadf(0x110)),_0x30cc0f[_0x89fadf(0x157)],_0x89fadf(0x151),_0x89fadf(0x10b),'sw'),this[_0x89fadf(0x10e)]=this[_0x89fadf(0x104)](_0x1c4819(_0x557f32,_0x89fadf(0x112)),_0x30cc0f[_0x89fadf(0xfc)],_0x89fadf(0x128),_0x89fadf(0x13f),'sw'),this[_0x89fadf(0x127)]=new _0x2710d4(_0x557f32,_0x1cb7c4[_0x89fadf(0x10d)],this[_0x89fadf(0x100)]()),this[_0x89fadf(0x127)][_0x89fadf(0x121)]({'attributes':{'class':[_0x89fadf(0x152),_0x89fadf(0x148)],'aria-hidden':!0x0}}),this[_0x89fadf(0x12a)]=new _0x39478e([this[_0x89fadf(0x14e)],this[_0x89fadf(0x10e)]]),this[_0x89fadf(0x101)]=new _0x54f258(),this[_0x89fadf(0x10a)]=new _0x2b7f3f(),this[_0x89fadf(0x123)]=new _0x348a60({'focusables':this[_0x89fadf(0x12a)],'focusTracker':this[_0x89fadf(0x101)],'keystrokeHandler':this[_0x89fadf(0x10a)],'actions':{'focusPrevious':_0x89fadf(0x153),'focusNext':_0x89fadf(0x14b)},'keystrokeHandlerOptions':{'filter':_0xa811e4=>_0xa811e4[_0x89fadf(0x135)]!==this[_0x89fadf(0x11e)]}}),this[_0x89fadf(0x155)](this[_0x89fadf(0x107)]());}[_0x349193(0x14c)](){const _0x2a88ff=_0x349193;super[_0x2a88ff(0x14c)]();const _0x6c924f=this[_0x2a88ff(0x11e)][_0x2a88ff(0x14d)](_0x2a88ff(0x115));_0x6c924f[_0x2a88ff(0x13a)]=this[_0x2a88ff(0x106)],this['on'](_0x2a88ff(0x11a),(_0x299eda,_0x1125b9,_0xc9c53b)=>{const _0x255c3a=_0x2a88ff;_0x6c924f[_0x255c3a(0x13a)]=_0xc9c53b;}),this[_0x2a88ff(0x12b)]();}[_0x349193(0x107)](){const _0x1669e4=_0x349193,_0x24c977=this[_0x1669e4(0x156)],_0x22b27f=[{'tag':_0x1669e4(0x10c),'attributes':{'class':[_0x1669e4(0x141),_0x1669e4(0x120)]},'children':[{'tag':_0x1669e4(0x126),'children':[{'text':this[_0x1669e4(0x127)][_0x1669e4(0x132)]}],'attributes':{'class':[_0x1669e4(0x137),_0x1669e4(0x11f)]}},{'tag':_0x1669e4(0x139),'attributes':{'datetime':_0x24c977['to'](_0x1669e4(0x154)),'class':[_0x1669e4(0x11c),_0x1669e4(0x122)]},'children':[{'text':_0x24c977['to'](_0x1669e4(0x154),_0x16eff7=>this[_0x1669e4(0x11d)][_0x1669e4(0x138)](_0x16eff7))}]}]},{'tag':_0x1669e4(0x10c),'attributes':{'class':[_0x1669e4(0x145),_0x1669e4(0x136)]},'children':[this[_0x1669e4(0x14e)],this[_0x1669e4(0x10e)]]},{'tag':_0x1669e4(0x10c),'attributes':{'class':[_0x1669e4(0xff)]}}];return this[_0x1669e4(0x12c)][_0x1669e4(0x116)]&&_0x22b27f[_0x1669e4(0x140)]({'tag':_0x1669e4(0x10c),'attributes':{'class':[_0x1669e4(0x143)]},'children':[{'text':this[_0x1669e4(0x103)]()}]}),{'tag':_0x1669e4(0x10c),'attributes':{'class':[_0x1669e4(0x13e),_0x1669e4(0x12e)],'tabindex':-0x1},'children':[this[_0x1669e4(0x127)],{'tag':_0x1669e4(0x10c),'attributes':{'class':[_0x1669e4(0x134),_0x1669e4(0x111)],'role':_0x1669e4(0x149)},'children':_0x22b27f}]};}[_0x349193(0x13c)](){const _0x4c02d8=_0x349193;this[_0x4c02d8(0x11e)][_0x4c02d8(0x13c)]();}[_0x349193(0x100)](){const _0x38c907=_0x349193;return this[_0x38c907(0x12c)][_0x38c907(0x116)]?_0x38c907(0x142)===this[_0x38c907(0x12c)][_0x38c907(0x125)][_0x38c907(0x13b)][_0x38c907(0x129)]?_0x1c4819(this[_0x38c907(0xfd)],_0x38c907(0x14f),this[_0x38c907(0x12c)][_0x38c907(0x133)][_0x38c907(0x132)]):_0x1c4819(this[_0x38c907(0xfd)],_0x38c907(0x130),this[_0x38c907(0x12c)][_0x38c907(0x133)][_0x38c907(0x132)]):null;}[_0x349193(0x103)](){const _0x511997=_0x349193;return _0x511997(0x142)===this[_0x511997(0x12c)][_0x511997(0x125)][_0x511997(0x13b)][_0x511997(0x129)]?_0x1c4819(this[_0x511997(0xfd)],_0x511997(0x113)):_0x1c4819(this[_0x511997(0xfd)],_0x511997(0x108));}[_0x349193(0x104)](_0x39ce22,_0xe6e022,_0x512c0f,_0x743947,_0x4476a7){const _0x188f8c=_0x349193,_0xc045c5=new _0x6aca0d(this[_0x188f8c(0xfd)]);return _0xc045c5[_0x188f8c(0x119)]({'label':_0x39ce22,'icon':_0xe6e022,'tooltip':!0x0,'tooltipPosition':_0x4476a7}),_0xc045c5[_0x188f8c(0x121)]({'attributes':{'class':_0x512c0f}}),_0xc045c5['on'](_0x188f8c(0x124),()=>{const _0x451937=_0x188f8c;this[_0x451937(0x150)](_0x743947,this[_0x451937(0x12c)]['id']);}),_0xc045c5;}[_0x349193(0x12b)](){const _0x6a738c=_0x349193,_0x460a32=this[_0x6a738c(0x11e)];this[_0x6a738c(0x10a)][_0x6a738c(0x117)](_0x460a32);for(const _0x13569f of this[_0x6a738c(0x12a)])this[_0x6a738c(0x101)][_0x6a738c(0xfe)](_0x13569f[_0x6a738c(0x11e)]),this[_0x6a738c(0x10a)][_0x6a738c(0x117)](_0x13569f[_0x6a738c(0x11e)]);this[_0x6a738c(0x10a)][_0x6a738c(0x119)](_0x6a738c(0x114),(_0x4eb28f,_0x5832de)=>{const _0x501e34=_0x6a738c;_0x460a32===_0x4eb28f[_0x501e34(0x135)]&&(this[_0x501e34(0x123)][_0x501e34(0x12d)](),_0x5832de());}),this[_0x6a738c(0x10a)][_0x6a738c(0x119)](_0x6a738c(0xfb),(_0x3dd13d,_0x41d487)=>{const _0x19a647=_0x6a738c;_0x460a32!==_0x3dd13d[_0x19a647(0x135)]&&(this[_0x19a647(0x13c)](),_0x41d487());});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x544e69,_0x4d1214,_0xa81485){const t=_0x544e69['t'];switch(_0x4d1214){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0xa81485);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xa81485);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xa81485);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xa81485);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xa81485);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0xa81485);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xa81485);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xa81485);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xa81485);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xa81485);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xa81485);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xa81485);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xa81485);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xa81485);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xa81485);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xa81485);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xa81485);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xa81485);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xa81485);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xa81485);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xa81485);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xa81485);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xa81485);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0xa81485);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xa81485);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xa81485);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xa81485);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xa81485);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xa81485);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0xa81485);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xa81485);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xa81485);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xa81485);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xa81485);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0xa81485);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xa81485);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0xa81485);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0xa81485);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xa81485);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0xa81485);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xa81485);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0xa81485);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xa81485);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xa81485);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0xa81485);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xa81485);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xa81485);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xa81485);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0xa81485);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0xa81485);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0xa81485);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4d1214;}}
|
|
23
|
+
export function getTranslation(_0x265cfd,_0x34cffb,_0x2cc2e0){const t=_0x265cfd['t'];switch(_0x34cffb){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x2cc2e0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2cc2e0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2cc2e0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2cc2e0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2cc2e0);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x2cc2e0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2cc2e0);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2cc2e0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2cc2e0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2cc2e0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2cc2e0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2cc2e0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2cc2e0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2cc2e0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2cc2e0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2cc2e0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2cc2e0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2cc2e0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2cc2e0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2cc2e0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2cc2e0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2cc2e0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2cc2e0);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x2cc2e0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2cc2e0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2cc2e0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2cc2e0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2cc2e0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2cc2e0);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2cc2e0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2cc2e0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2cc2e0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2cc2e0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2cc2e0);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x2cc2e0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2cc2e0);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x2cc2e0);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2cc2e0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2cc2e0);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x2cc2e0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2cc2e0);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x2cc2e0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2cc2e0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2cc2e0);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x2cc2e0);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2cc2e0);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2cc2e0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2cc2e0);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x2cc2e0);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x2cc2e0);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x2cc2e0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x34cffb;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x32b2(_0x176532,_0x3e8e83){const _0x3e6b59=_0x3e6b();return _0x32b2=function(_0x32b273,_0x18bedc){_0x32b273=_0x32b273-0xb3;let _0x50333c=_0x3e6b59[_0x32b273];return _0x50333c;},_0x32b2(_0x176532,_0x3e8e83);}(function(_0x59233c,_0x3c3449){const _0x4ac804=_0x32b2,_0x4e62b7=_0x59233c();while(!![]){try{const _0x266997=parseInt(_0x4ac804(0xc2))/0x1*(-parseInt(_0x4ac804(0xe6))/0x2)+parseInt(_0x4ac804(0xb6))/0x3*(-parseInt(_0x4ac804(0xe0))/0x4)+parseInt(_0x4ac804(0xd0))/0x5+parseInt(_0x4ac804(0xd7))/0x6*(-parseInt(_0x4ac804(0xc7))/0x7)+-parseInt(_0x4ac804(0xd9))/0x8*(parseInt(_0x4ac804(0xd2))/0x9)+parseInt(_0x4ac804(0xd8))/0xa+parseInt(_0x4ac804(0xc3))/0xb*(-parseInt(_0x4ac804(0xd1))/0xc);if(_0x266997===_0x3c3449)break;else _0x4e62b7['push'](_0x4e62b7['shift']());}catch(_0x362ac5){_0x4e62b7['push'](_0x4e62b7['shift']());}}}(_0x3e6b,0xb7e9b));export function normalizeDescription(_0x5b28d4){const _0x2e8246=_0x32b2;return Array[_0x2e8246(0xe2)](_0x5b28d4)||(_0x5b28d4=[_0x5b28d4]),_0x5b28d4[_0x2e8246(0xc5)](_0x3b8369=>{const _0x482eec=_0x2e8246,_0x179b30=_0x3b8369[_0x482eec(0xb5)][_0x482eec(0xdf)](/\*/g,''),_0x324f8e=_0x3b8369[_0x482eec(0xdb)]?_0x482eec(0xea)+_0x3b8369[_0x482eec(0xdb)][_0x482eec(0xb7)]+']':'';return'['+_0x3b8369[_0x482eec(0xd6)]+']\x20'+_0x179b30+_0x324f8e;})[_0x2e8246(0xc0)](';\x20');}export function renderDescription(_0x528153,_0x2c3175){const _0x239b08=_0x32b2;let _0x469bcc='';return _0x469bcc+=_0x528153[_0x239b08(0xd3)]('*')[_0x239b08(0xc5)]((_0x3922ef,_0x4c811e)=>_0x4c811e%0x2!=0x0?_0x239b08(0xc9)+nn(_0x3922ef)+_0x239b08(0xb9):nn(_0x3922ef))[_0x239b08(0xc0)](''),_0x2c3175&&(_0x469bcc+=_0x239b08(0xe3)+_0x2c3175[_0x239b08(0xb7)]+_0x239b08(0xcf)+_0x2c3175[_0x239b08(0xe4)]+_0x239b08(0xb8)),_0x469bcc;}function nn(_0x1ae7bb){const _0x4f9cb8=_0x32b2,_0x3cad70=document[_0x4f9cb8(0xde)](_0x4f9cb8(0xb3));return _0x3cad70[_0x4f9cb8(0xbc)]=_0x1ae7bb,_0x3cad70[_0x4f9cb8(0xc1)];}export function sortSuggestions(_0x1c2a2f){const _0x21d23b=_0x32b2;return _0x1c2a2f[_0x21d23b(0xd5)]((_0x321d13,_0x4f3fc2)=>_0x21d23b(0xba)==_0x321d13[_0x21d23b(0xd6)]&&_0x21d23b(0xba)!=_0x4f3fc2[_0x21d23b(0xd6)]?-0x1:_0x21d23b(0xba)!=_0x321d13[_0x21d23b(0xd6)]&&_0x21d23b(0xba)==_0x4f3fc2[_0x21d23b(0xd6)]?0x1:0x0);}export function getSelectedSuggestions(_0x1c91d6,_0x16d56c){const _0x5b73f3=_0x32b2,_0x5d2ba9=Array[_0x5b73f3(0xdd)](_0x1c91d6[_0x5b73f3(0xe8)]()),_0x195de5=new Set();for(const _0x411d58 of _0x16d56c)if(_0x411d58[_0x5b73f3(0xc4)]){for(const _0x2b4731 of _0x5d2ba9)for(const _0x326c57 of _0x411d58[_0x5b73f3(0xe8)]())(_0x2b4731[_0x5b73f3(0xcc)](_0x326c57)||_0x1c91d6[_0x5b73f3(0xbf)]&&!_0x411d58[_0x5b73f3(0xda)]&&_0x411d58[_0x5b73f3(0xb4)]&&_0x326c57[_0x5b73f3(0xbe)][_0x5b73f3(0xd4)](_0x2b4731[_0x5b73f3(0xe1)]))&&_0x195de5[_0x5b73f3(0xcb)](_0x411d58);}return _0x195de5;}export function getRangesOfBlockGroups(_0x507ef5,_0x33ebc8){const _0x619a5a=_0x32b2;let _0x1b5ea9,_0x3751f3=0x0;const _0x4e85aa=[],_0x488d6d=_0x33ebc8[_0x619a5a(0xbb)];for(;_0x3751f3<_0x507ef5[_0x619a5a(0xca)];){const _0x3b9621=_0x507ef5[_0x3751f3],_0x48b092=_0x507ef5[_0x3751f3+0x1];_0x1b5ea9||(_0x1b5ea9=_0x33ebc8[_0x619a5a(0xc6)](_0x3b9621)),on(_0x33ebc8,_0x3b9621,_0x48b092)||(_0x4e85aa[_0x619a5a(0xbd)](_0x33ebc8[_0x619a5a(0xe7)](_0x1b5ea9,_0x488d6d[_0x619a5a(0xdc)](_0x3b9621)?_0x33ebc8[_0x619a5a(0xce)](_0x3b9621):_0x33ebc8[_0x619a5a(0xc8)](_0x3b9621,_0x619a5a(0xbe)))),_0x1b5ea9=null),_0x3751f3++;}return _0x4e85aa;}function on(_0x2c8a2f,_0x36ccc3,_0x4b723e){const _0x359197=_0x32b2;if(!_0x4b723e)return!0x1;const _0x233dbc=_0x2c8a2f[_0x359197(0xce)](_0x36ccc3),_0x1a42ea=_0x2c8a2f[_0x359197(0xc6)](_0x4b723e);return _0x233dbc[_0x359197(0xd4)](_0x1a42ea);}function _0x3e6b(){const _0x27e694=['deletion','schema','innerText','push','end','isCollapsed','join','innerHTML','685963GTBPpa','1903EhYLyo','isInContent','map','createPositionBefore','21dMFuxY','createPositionAt','<span\x20class=\x22ck-suggestion-type\x22>','length','add','isIntersecting','execute','createPositionAfter','\x22\x20title=\x22','7020100opCvwH','53136WZSnxu','12609HoPNNj','split','isTouching','sort','type','267012kqXhAf','14098300QHnOPg','2144nvVYNa','isMultiRange','color','isObject','from','createElement','replace','4GBNacl','start','isArray','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','title','splice','2bQlIre','createRange','getRanges','change','\x20[color\x20','span','next','content','298686MOhTlW','value','\x22></span>','</span>'];_0x3e6b=function(){return _0x27e694;};return _0x3e6b();}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x3a22c7,_0xe74fa,_0x48a7a9){const _0x390999=_0x32b2;for(;_0x48a7a9[_0x390999(0xca)];){const _0x453e58=_0x48a7a9[_0x390999(0xe5)](0x0,0x64);_0x3a22c7[_0x390999(0xe9)](()=>{const _0x218160=_0x390999;for(const _0x291232 of _0x453e58)_0x291232[_0x218160(0xc4)]&&_0xe74fa[_0x218160(0xcd)](_0x291232['id']);});}}
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
!-->
|
|
10
10
|
|
|
11
|
-
<svg viewBox="0 0 20 20"
|
|
11
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 2.28C2 1.574 2.574 1 3.272 1l11.456.001c.703 0 1.272.573 1.272 1.28v8.453l-1.5 1.464V2.465c0-.003-11-.005-11-.005V16.5h2.356c.124.225.28.434.462.62l.868.88-3.914-.001A1.274 1.274 0 0 1 2 16.719V2.28Z"/><path d="M14.525 18H9.293l-1.48-1.5h3.75l.332.336.344-.336H14.5v-2.207L16 12.83v3.73L14.525 18Z"/><path d="M9.706 12.638a2.838 2.838 0 0 0-1.38-.36 2.817 2.817 0 0 0-1.602.5H6.18a.635.635 0 0 1-.633-.639.64.64 0 0 1 .633-.639h3.133a.639.639 0 0 1 .393 1.138Z"/><path d="M5.546 6.154c0-.353.292-.64.636-.64h5.682a.637.637 0 0 1 .449 1.09.641.641 0 0 1-.449.188H6.182a.636.636 0 0 1-.635-.639l-.001.001Z"/><path d="M5.546 9.138c0-.352.292-.638.636-.638h5.682a.635.635 0 0 1 .45 1.088.641.641 0 0 1-.45.189H6.182a.636.636 0 0 1-.636-.639Z"/><path d="m13.117 19.374 6.192-6.044a1.316 1.316 0 0 0 0-1.876 1.354 1.354 0 0 0-1.899 0l-5.515 5.382-2.63-2.666a1.312 1.312 0 0 0-.938-.393 1.315 1.315 0 0 0-.939.394 1.354 1.354 0 0 0 0 1.898l3.49 3.538a1.317 1.317 0 0 0 1.447.29c.266-.11.587-.321.792-.523Z" style="fill: #1FB11F" /></svg>
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
!-->
|
|
10
10
|
|
|
11
|
-
<svg viewBox="0 0 20 20"
|
|
11
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 2.28C2 1.574 2.574 1 3.272 1l11.456.001c.703 0 1.272.573 1.272 1.28v8.106l-.889.899-.611-.619V2.465c0-.003-11-.005-11-.005V16.5h6.458l-.136.138-.003.003c-.372.378-.628.85-.745 1.359l-5.802-.001A1.274 1.274 0 0 1 2 16.719V2.28Z"/><path d="M14.338 18h-3.676c.06-.112.136-.216.227-.308l1.178-1.192H14.5v-3.699l.61.618.89-.899v4.199c0 .383-.168.726-.431.96l-.457-.462-.774.783Z"/><path d="M9.043 11.5a2.853 2.853 0 0 0 .066 1.278H6.18a.635.635 0 0 1-.632-.639.64.64 0 0 1 .633-.639h2.863Z"/><path d="M12.493 9.233a2.816 2.816 0 0 0-2.434.544H6.182a.636.636 0 0 1-.636-.639c0-.352.292-.638.636-.638h5.682a.635.635 0 0 1 .629.733Z"/><path d="M5.546 6.154c0-.353.292-.64.636-.64h5.682a.637.637 0 0 1 .449 1.09.641.641 0 0 1-.449.188H6.182a.636.636 0 0 1-.635-.639l-.001.001Z"/><path d="m15.11 13.42 2.348-2.374a1.318 1.318 0 0 1 1.877 0 1.354 1.354 0 0 1 0 1.9l-2.346 2.372 2.346 2.374a1.354 1.354 0 0 1 0 1.898 1.316 1.316 0 0 1-1.877 0l-2.346-2.373-2.346 2.373a1.316 1.316 0 0 1-1.877 0 1.354 1.354 0 0 1 0-1.898l2.346-2.374-2.346-2.373a1.354 1.354 0 0 1 0-1.899 1.318 1.318 0 0 1 1.877 0l2.346 2.374h-.001Z" style="fill: #DA2020"/></svg>
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
!-->
|
|
10
10
|
|
|
11
|
-
<svg viewBox="0 0 20 20"
|
|
11
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.182 5.514a.643.643 0 0 0-.636.64v-.001a.636.636 0 0 0 .636.639h5.682a.641.641 0 0 0 .636-.638.637.637 0 0 0-.636-.64H6.182Z"/><path d="M6.182 8.5a.642.642 0 0 0-.588.882.636.636 0 0 0 .588.395h5.682a.641.641 0 0 0 .636-.639.635.635 0 0 0-.636-.638H6.182Z"/><path d="M6.18 11.5a.64.64 0 0 0 0 1.278h3.133a.64.64 0 0 0 0-1.278H6.18Z"/><path d="m11.772 18.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09 0-.274.076-.551.062-.166.099-.296.11-.393a2.934 2.934 0 0 0 0-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6 1.059-.56 2.11.118 1.05.68 1.443 1.272 1.177 1.772l-3.876 6.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954 2.954 0 0 0-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274 1.039.727-.26.34h-1.496l.717-1.067Z"/><path clip-rule="evenodd" d="M3.272 1A1.28 1.28 0 0 0 2 2.28v14.439a1.276 1.276 0 0 0 1.272 1.28h6.838a2.13 2.13 0 0 1 .003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395 7.395 0 0 1-.042-.142H3.5V2.46s11 .002 11 .005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272 1ZM16 9.29l-1.5 2.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904 0 0 1-.013.075l-.001.005a3.108 3.108 0 0 1-.097.312c-.027.101-.048.19-.062.266a.734.734 0 0 0-.014.287.25.25 0 0 0 .068.105.65.65 0 0 0 .088.074l.017.011.016.01h.175L14.73 18c.697 0 1.271-.573 1.271-1.281v-7.43Z"/></svg>
|