@ckeditor/ckeditor5-slash-command 0.0.0-internal-20241017.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/LICENSE.md +18 -0
- package/README.md +41 -0
- package/build/slash-command.js +5 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +14 -0
- package/dist/augmentation.d.ts +25 -0
- package/dist/index-content.css +5 -0
- package/dist/index-editor.css +70 -0
- package/dist/index.css +84 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +23 -0
- package/dist/legacyerrors.d.ts +24 -0
- package/dist/slashcommand.d.ts +41 -0
- package/dist/slashcommandconfig.d.ts +254 -0
- package/dist/slashcommandediting.d.ts +40 -0
- package/dist/slashcommandeditorconfig.d.ts +100 -0
- package/dist/slashcommandui.d.ts +45 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/uz.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/dist/ui/slashcommandbuttonview.d.ts +35 -0
- package/dist/utils/common-translations.d.ts +13 -0
- package/lang/contexts.json +25 -0
- package/lang/translations/ar.po +110 -0
- package/lang/translations/bg.po +110 -0
- package/lang/translations/bn.po +110 -0
- package/lang/translations/ca.po +110 -0
- package/lang/translations/cs.po +110 -0
- package/lang/translations/da.po +110 -0
- package/lang/translations/de.po +110 -0
- package/lang/translations/el.po +110 -0
- package/lang/translations/en-au.po +110 -0
- package/lang/translations/en.po +110 -0
- package/lang/translations/es.po +110 -0
- package/lang/translations/et.po +110 -0
- package/lang/translations/fi.po +110 -0
- package/lang/translations/fr.po +110 -0
- package/lang/translations/gl.po +110 -0
- package/lang/translations/he.po +110 -0
- package/lang/translations/hi.po +110 -0
- package/lang/translations/hr.po +110 -0
- package/lang/translations/hu.po +110 -0
- package/lang/translations/id.po +110 -0
- package/lang/translations/it.po +110 -0
- package/lang/translations/ja.po +110 -0
- package/lang/translations/ko.po +110 -0
- package/lang/translations/lt.po +110 -0
- package/lang/translations/lv.po +110 -0
- package/lang/translations/ms.po +110 -0
- package/lang/translations/nl.po +110 -0
- package/lang/translations/no.po +110 -0
- package/lang/translations/pl.po +110 -0
- package/lang/translations/pt-br.po +110 -0
- package/lang/translations/pt.po +110 -0
- package/lang/translations/ro.po +110 -0
- package/lang/translations/ru.po +110 -0
- package/lang/translations/sk.po +110 -0
- package/lang/translations/sr.po +110 -0
- package/lang/translations/sv.po +110 -0
- package/lang/translations/th.po +110 -0
- package/lang/translations/tr.po +110 -0
- package/lang/translations/uk.po +110 -0
- package/lang/translations/uz.po +110 -0
- package/lang/translations/vi.po +110 -0
- package/lang/translations/zh-cn.po +110 -0
- package/lang/translations/zh.po +110 -0
- package/package.json +37 -0
- package/src/augmentation.d.ts +21 -0
- package/src/augmentation.js +23 -0
- package/src/index.d.ts +13 -0
- package/src/index.js +23 -0
- package/src/legacyerrors.d.ts +20 -0
- package/src/legacyerrors.js +23 -0
- package/src/slashcommand.d.ts +37 -0
- package/src/slashcommand.js +23 -0
- package/src/slashcommandconfig.d.ts +250 -0
- package/src/slashcommandconfig.js +23 -0
- package/src/slashcommandediting.d.ts +36 -0
- package/src/slashcommandediting.js +23 -0
- package/src/slashcommandeditorconfig.d.ts +96 -0
- package/src/slashcommandeditorconfig.js +23 -0
- package/src/slashcommandui.d.ts +41 -0
- package/src/slashcommandui.js +23 -0
- package/src/ui/slashcommandbuttonview.d.ts +31 -0
- package/src/ui/slashcommandbuttonview.js +23 -0
- package/src/utils/common-translations.d.ts +9 -0
- package/src/utils/common-translations.js +23 -0
- package/theme/icons/play.svg +1 -0
- package/theme/slashcommand.css +77 -0
|
@@ -0,0 +1,250 @@
|
|
|
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 slash-command/slashcommandconfig
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import './slashcommandeditorconfig.js';
|
|
11
|
+
/**
|
|
12
|
+
* This plugin takes care of the configuration for {@link module:slash-command/slashcommand~SlashCommand}:
|
|
13
|
+
*
|
|
14
|
+
* * It manages the configuration of slash commands in the editor.
|
|
15
|
+
* * It provides default slash commands for common editor features.
|
|
16
|
+
* * It allows defining extra commands and reducing the list of defaults using the editor configuration.
|
|
17
|
+
* See {@link module:slash-command/slashcommandconfig~SlashCommandConfig} to learn more.
|
|
18
|
+
*
|
|
19
|
+
* @extends module:core/plugin~Plugin
|
|
20
|
+
*/
|
|
21
|
+
export default class SlashCommandConfig extends Plugin {
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName(): "SlashCommandConfig";
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static get isPremiumPlugin(): true;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
constructor(editor: Editor);
|
|
38
|
+
/**
|
|
39
|
+
* @inheritDoc
|
|
40
|
+
*/
|
|
41
|
+
afterInit(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Returns an array of slash command definitions enabled in the editor.
|
|
44
|
+
*
|
|
45
|
+
* This method takes into account the following:
|
|
46
|
+
* * The {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands list of default commands}.
|
|
47
|
+
* * The presence of {@link module:core/editor/editorconfig~EditorConfig#plugins editor features} (plugins).
|
|
48
|
+
* * The {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig#removeCommands} configuration.
|
|
49
|
+
* * The {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig#extraCommands} configuration.
|
|
50
|
+
*/
|
|
51
|
+
getAllowedCommands(): Array<SlashCommandDefinition>;
|
|
52
|
+
/**
|
|
53
|
+
* Returns a list of default slash command {@link module:slash-command/slashcommandconfig~SlashCommandDefinition definitions}
|
|
54
|
+
* for common editor features. The available definitions are as follows:
|
|
55
|
+
*
|
|
56
|
+
* ```js
|
|
57
|
+
* [
|
|
58
|
+
* {
|
|
59
|
+
* id: 'blockQuote',
|
|
60
|
+
* commandName: 'blockQuote',
|
|
61
|
+
* title: t( 'Block quote' ),
|
|
62
|
+
* // ...
|
|
63
|
+
* },
|
|
64
|
+
* {
|
|
65
|
+
* id: 'bulletedList',
|
|
66
|
+
* commandName: 'bulletedList',
|
|
67
|
+
* title: t( 'Bulleted list' ),
|
|
68
|
+
* // ...
|
|
69
|
+
* },
|
|
70
|
+
* {
|
|
71
|
+
* id: 'codeBlock',
|
|
72
|
+
* commandName: 'codeBlock',
|
|
73
|
+
* title: t( 'Insert code block' ),
|
|
74
|
+
* // ...
|
|
75
|
+
* },
|
|
76
|
+
* {
|
|
77
|
+
* id: 'ckbox',
|
|
78
|
+
* commandName: 'ckbox',
|
|
79
|
+
* title: t( 'Open file manager' ),
|
|
80
|
+
* // ...
|
|
81
|
+
* },
|
|
82
|
+
* {
|
|
83
|
+
* id: 'ckfinder',
|
|
84
|
+
* commandName: 'ckfinder',
|
|
85
|
+
* title: t( 'Insert image' ),
|
|
86
|
+
* // ...
|
|
87
|
+
* },
|
|
88
|
+
* {
|
|
89
|
+
* id: 'heading1',
|
|
90
|
+
* commandName: 'heading',
|
|
91
|
+
* title: t( 'Heading 1' ),
|
|
92
|
+
* // ...
|
|
93
|
+
* },
|
|
94
|
+
* {
|
|
95
|
+
* id: 'heading2',
|
|
96
|
+
* commandName: 'heading',
|
|
97
|
+
* title: t( 'Heading 2' ),
|
|
98
|
+
* // ...
|
|
99
|
+
* },
|
|
100
|
+
* {
|
|
101
|
+
* id: 'heading3',
|
|
102
|
+
* commandName: 'heading',
|
|
103
|
+
* title: t( 'Heading 3' ),
|
|
104
|
+
* // ...
|
|
105
|
+
* },
|
|
106
|
+
* {
|
|
107
|
+
* id: 'heading4',
|
|
108
|
+
* commandName: 'heading',
|
|
109
|
+
* title: t( 'Heading 4' ),
|
|
110
|
+
* // ...
|
|
111
|
+
* },
|
|
112
|
+
* {
|
|
113
|
+
* id: 'heading5',
|
|
114
|
+
* commandName: 'heading',
|
|
115
|
+
* title: t( 'Heading 5' ),
|
|
116
|
+
* // ...
|
|
117
|
+
* },
|
|
118
|
+
* {
|
|
119
|
+
* id: 'heading6',
|
|
120
|
+
* commandName: 'heading',
|
|
121
|
+
* title: t( 'Heading 6' ),
|
|
122
|
+
* // ...
|
|
123
|
+
* },
|
|
124
|
+
* {
|
|
125
|
+
* id: 'horizontalLine',
|
|
126
|
+
* commandName: 'horizontalLine',
|
|
127
|
+
* title: t( 'Horizontal line' ),
|
|
128
|
+
* // ...
|
|
129
|
+
* },
|
|
130
|
+
* {
|
|
131
|
+
* id: 'htmlEmbed',
|
|
132
|
+
* commandName: 'htmlEmbed',
|
|
133
|
+
* title: t( 'Insert HTML' ),
|
|
134
|
+
* // ...
|
|
135
|
+
* },
|
|
136
|
+
* {
|
|
137
|
+
* id: 'indent',
|
|
138
|
+
* commandName: 'indent',
|
|
139
|
+
* title: t( 'Increase indent' ),
|
|
140
|
+
* // ...
|
|
141
|
+
* },
|
|
142
|
+
* {
|
|
143
|
+
* id: 'insertMermaidCommand',
|
|
144
|
+
* commandName: 'insertMermaidCommand',
|
|
145
|
+
* title: t( 'Insert Mermaid diagram' ),
|
|
146
|
+
* // ...
|
|
147
|
+
* },
|
|
148
|
+
* {
|
|
149
|
+
* id: 'insertTable',
|
|
150
|
+
* commandName: 'insertTable',
|
|
151
|
+
* title: t( 'Insert table' ),
|
|
152
|
+
* // ...
|
|
153
|
+
* },
|
|
154
|
+
* {
|
|
155
|
+
* id: 'insertTableOfContents',
|
|
156
|
+
* commandName: 'insertTableOfContents',
|
|
157
|
+
* title: t( 'Table of contents' ),
|
|
158
|
+
* // ...
|
|
159
|
+
* },
|
|
160
|
+
* {
|
|
161
|
+
* id: 'numberedList',
|
|
162
|
+
* commandName: 'numberedList',
|
|
163
|
+
* title: t( 'Numbered list' ),
|
|
164
|
+
* // ...
|
|
165
|
+
* },
|
|
166
|
+
* {
|
|
167
|
+
* id: 'outdent',
|
|
168
|
+
* commandName: 'outdent',
|
|
169
|
+
* title: t( 'Decrease indent' ),
|
|
170
|
+
* // ...
|
|
171
|
+
* },
|
|
172
|
+
* {
|
|
173
|
+
* id: 'paragraph',
|
|
174
|
+
* commandName: 'paragraph',
|
|
175
|
+
* title: t( 'Paragraph' ),
|
|
176
|
+
* // ...
|
|
177
|
+
* },
|
|
178
|
+
* {
|
|
179
|
+
* id: 'todoList',
|
|
180
|
+
* commandName: 'todoList',
|
|
181
|
+
* title: t( 'To-do list' ),
|
|
182
|
+
* // ...
|
|
183
|
+
* }
|
|
184
|
+
* ]
|
|
185
|
+
*/
|
|
186
|
+
getDefaultCommands(): Array<SlashCommandDefinition>;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* An object describing a single command definition in the configuration.
|
|
190
|
+
*/
|
|
191
|
+
export interface SlashCommandDefinition {
|
|
192
|
+
/**
|
|
193
|
+
* A unique ID matched with the text that follows the slash ("/") character typed by the user,
|
|
194
|
+
* e.g. 'blockQuote', 'heading1'. See {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#aliases}
|
|
195
|
+
* to learn about slash command aliases that provide a similar functionality.
|
|
196
|
+
*/
|
|
197
|
+
id: string;
|
|
198
|
+
/**
|
|
199
|
+
* The name of the command to be executed if the `execute` property was not provided,
|
|
200
|
+
* for example, 'blockQuote', 'heading'. See {@link module:core/editor/editor~Editor#commands} to learn more about available commands.
|
|
201
|
+
*/
|
|
202
|
+
commandName?: string;
|
|
203
|
+
/**
|
|
204
|
+
* A meaningful title for the command displayed in a dropdown list of possible commands. It can be a string
|
|
205
|
+
* or a callback function returning a string.
|
|
206
|
+
*/
|
|
207
|
+
title: Function | string;
|
|
208
|
+
/**
|
|
209
|
+
* An optional description for the command. Useful when the title is not descriptive enough.
|
|
210
|
+
*/
|
|
211
|
+
description?: string;
|
|
212
|
+
/**
|
|
213
|
+
* An SVG string representing the icon of the command. If not provided, a generic icon will be used instead.
|
|
214
|
+
* The default size of the icon is 20x20 pixels. Be sure to set the correct `viewBox` attribute in the icon source.
|
|
215
|
+
*
|
|
216
|
+
* See {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#isIconColorInherited}.
|
|
217
|
+
*/
|
|
218
|
+
icon?: string;
|
|
219
|
+
/**
|
|
220
|
+
* By default, slash command icons are monochromatic and inherit the color of the text in the editor UI.
|
|
221
|
+
* Setting this property to `false` disables this inheritance and allows the use of complex (colorful) icons.
|
|
222
|
+
*
|
|
223
|
+
* Learn more in {@link module:ui/icon/iconview~IconView#isColorInherited}.
|
|
224
|
+
*/
|
|
225
|
+
isIconColorInherited?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* An optional list of aliases (extending the base
|
|
228
|
+
* {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#id}) to be used when filtering the list of slash commands
|
|
229
|
+
* based on the text that follows the slash ("/") character.
|
|
230
|
+
*/
|
|
231
|
+
aliases?: Array<string>;
|
|
232
|
+
/**
|
|
233
|
+
* A callback function defining custom logic to decide if the command should be displayed
|
|
234
|
+
* in the dropdown list. If not provided, the default command's {@link module:core/command~Command#isEnabled} property is used instead.
|
|
235
|
+
* If it's also unavailable, it falls back to `true`. This property is checked when a user types the slash ("/") character
|
|
236
|
+
* or changes the text that follows it.
|
|
237
|
+
*
|
|
238
|
+
* This callback gets an {@link module:core/editor/editor~Editor} instance as a parameter.
|
|
239
|
+
*/
|
|
240
|
+
isEnabled?: Function;
|
|
241
|
+
/**
|
|
242
|
+
* A callback function defining custom logic for executing the command. If not provided, the default
|
|
243
|
+
* command's {@link module:core/command~Command#execute} is used instead. Custom logic is useful especially when the slash command
|
|
244
|
+
* requires some arguments (acts like a wrapper) or combines some complex logic. This property is obligatory if
|
|
245
|
+
* {@link module:slash-command/slashcommandconfig~SlashCommandDefinition#commandName} was not passed.
|
|
246
|
+
*
|
|
247
|
+
* This callback gets an {@link module:core/editor/editor~Editor} instance as a parameter.
|
|
248
|
+
*/
|
|
249
|
+
execute?: Function;
|
|
250
|
+
}
|
|
@@ -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 _0x6cf4(){const _0x44c7a6=['Heading\x201','Create\x20a\x20heading\x20level\x205','Create\x20a\x20heading\x20level\x203','heading3','enabledStyles','2152815nDKmQp','htmlEmbed','template','function','8rTOldd','10762572qzaJin','Heading\x205','toLowerCase','insertTableOfContents','_proxyIsEnabled','getDefaultCommands','heading5','isIconColorInherited','heading2','commandName','description','176650DAfwJq','Paragraph','template.definitions','Create\x20a\x20heading\x20level\x206','aiAssistant','map','heading','heading1','To-do\x20list','Create\x20a\x20heading\x20level\x202','Table\x20of\x20contents','aliases','Insert\x20a\x20paragraph','commands','insertTemplate','model','Bulleted\x20list','outdent','execute','Create\x20a\x20bulleted\x20list','html','Insert\x20a\x20horizontal\x20line','Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file','405DwrCna','getAllowedCommands','Heading\x202','slash-command-execute-missing','Create\x20a\x20numbered\x20list','Numbered\x20list','489KIdYIq','Decrease\x20the\x20indentation','get','length','slashCommand.extraCommands','Block\x20quote','Create\x20a\x20block\x20quote','concat','Increase\x20indent','heading4','AI\x20Assistant','sort','filemanager','href','ckbox','quote','icon','bulletedList','Horizontal\x20line','robotPencil','tableOfContents','Create\x20a\x20heading\x20level\x201','4052cHDlWR','Create\x20a\x20code\x20block','Insert\x20an\x20HTML\x20snippet','numberedList','heading.options','Increase\x20the\x20indentation','Insert\x20table\x20of\x20contents','showAIAssistant','table','isPremiumPlugin','Create\x20a\x20heading\x20level\x204','Insert\x20Mermaid\x20diagram','browseFiles','push','title','Insert\x20code\x20block','heading6','12741001lgYTNa','Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content','Insert\x20the\x20Mermaid\x20diagram','includes','_allowedCommands','Heading\x204','Insert\x20image','style.definitions','Open\x20file\x20manager','horizontalLine','SlashCommandConfig','_proxyExecute','isOfficialPlugin','style','filter','insertTable','indent','name','config','upload','Create\x20a\x20table','Decrease\x20indent','isEnabled','split','Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file','fromCharCode','ckfinder','paragraph','Create\x20a\x20to-do\x20list','editor','pluginName','Insert\x20table','50357120aByzcA','codeBlock','Insert\x20HTML','Heading\x206','Heading\x203','join','locale','afterInit','insertMermaidCommand','slashCommand.removeCommands','36176gNveVj','toc','406rNliDC','blockQuote','todoList'];_0x6cf4=function(){return _0x44c7a6;};return _0x6cf4();}const _0x15422a=_0x421a;(function(_0x5c4c03,_0x1af3fa){const _0x42dd9d=_0x421a,_0x5b401f=_0x5c4c03();while(!![]){try{const _0x5adf4e=-parseInt(_0x42dd9d(0xd0))/0x1*(-parseInt(_0x42dd9d(0x10d))/0x2)+-parseInt(_0x42dd9d(0xba))/0x3*(-parseInt(_0x42dd9d(0x10b))/0x4)+parseInt(_0x42dd9d(0x115))/0x5+parseInt(_0x42dd9d(0x11a))/0x6+parseInt(_0x42dd9d(0xe1))/0x7*(parseInt(_0x42dd9d(0x119))/0x8)+-parseInt(_0x42dd9d(0xb4))/0x9*(parseInt(_0x42dd9d(0x125))/0xa)+-parseInt(_0x42dd9d(0x101))/0xb;if(_0x5adf4e===_0x1af3fa)break;else _0x5b401f['push'](_0x5b401f['shift']());}catch(_0x18dc40){_0x5b401f['push'](_0x5b401f['shift']());}}}(_0x6cf4,0xec69f));import{icons as _0x8712e,Plugin as _0x435002}from'ckeditor5/src/core.js';import{icons as _0x3e8891}from'ckeditor5-collaboration/src/collaboration-core.js';import{CKEditorError as _0x4ed3d5,uid as _0x190c44}from'ckeditor5/src/utils.js';import{getTranslation as _0x17f22b}from'./utils/common-translations.js';import'./slashcommandeditorconfig.js';function _0x421a(_0x2e005e,_0x3dafac){const _0x6cf4b9=_0x6cf4();return _0x421a=function(_0x421a94,_0x187bd0){_0x421a94=_0x421a94-0xa6;let _0x12800b=_0x6cf4b9[_0x421a94];return _0x12800b;},_0x421a(_0x2e005e,_0x3dafac);}export default class l extends _0x435002{static get[_0x15422a(0xff)](){const _0x21e3c2=_0x15422a;return _0x21e3c2(0xeb);}static get[_0x15422a(0xed)](){return!0x0;}static get[_0x15422a(0xd9)](){return!0x0;}constructor(_0x4533f7){const _0x6a0e52=_0x15422a;super(_0x4533f7),this[_0x6a0e52(0xe5)]=null;}[_0x15422a(0x108)](){const _0x4ad35b=_0x15422a,_0x3a5f93=this[_0x4ad35b(0xfe)][_0x4ad35b(0xf3)][_0x4ad35b(0xbc)](_0x4ad35b(0x10a))||[],_0x30adea=function(_0x1204b9){const _0x2d794e=_0x4ad35b;let _0x47f812=[_0x2d794e(0xc3),_0x2d794e(0x120),_0x2d794e(0xe0)];if(_0x1204b9){const _0x3ce28f=_0x1204b9[_0x2d794e(0x12a)](_0x23d1e1=>_0x23d1e1[_0x2d794e(0xac)]);_0x47f812=[_0x2d794e(0x12c),_0x2d794e(0x122),_0x2d794e(0x113),_0x2d794e(0xc3),_0x2d794e(0x120),_0x2d794e(0xe0)][_0x2d794e(0xef)](_0x49be63=>!_0x3ce28f[_0x2d794e(0xe4)](_0x49be63));}return _0x47f812;}(this[_0x4ad35b(0xfe)][_0x4ad35b(0xf3)][_0x4ad35b(0xbc)](_0x4ad35b(0xd4)));let _0x3b9fe2=this[_0x4ad35b(0x11f)]()[_0x4ad35b(0xef)](_0x54f05e=>!_0x30adea[_0x4ad35b(0xe4)](_0x54f05e['id']))[_0x4ad35b(0xef)](_0x1af4b5=>!_0x3a5f93[_0x4ad35b(0xe4)](_0x1af4b5[_0x4ad35b(0x123)]));const _0x151016=this[_0x4ad35b(0xfe)][_0x4ad35b(0xf3)][_0x4ad35b(0xbc)](_0x4ad35b(0xbe));_0x151016&&_0x151016[_0x4ad35b(0xbd)]&&(_0x3b9fe2=_0x3b9fe2[_0x4ad35b(0xc1)](_0x151016));const _0x3fd820=this[_0x4ad35b(0xfe)][_0x4ad35b(0xf3)][_0x4ad35b(0xbc)](_0x4ad35b(0x127));_0x3fd820&&_0x3fd820[_0x4ad35b(0xbd)]&&(_0x3b9fe2=_0x3b9fe2[_0x4ad35b(0xc1)](function(_0x5a6f24){const _0xb79bb0=_0x4ad35b;return _0x5a6f24[_0xb79bb0(0x12a)](_0x2243b5=>{const _0x477c52=_0xb79bb0,{title:_0x576ce6,icon:_0x1cbb08,description:_0x57efa0,data:_0x1d92cf}=_0x2243b5,_0x4cf6ae={'id':u(_0x576ce6,_0x477c52(0x117)),'commandName':_0x477c52(0xab),'execute':_0x445524=>{const _0x3c790c=_0x477c52;_0x445524[_0x3c790c(0xaf)](_0x3c790c(0xab),_0x1d92cf);},'description':_0x57efa0,'icon':_0x1cbb08,'title':_0x576ce6};return _0x1cbb08&&(_0x4cf6ae[_0x477c52(0x121)]=!0x1),_0x4cf6ae;});}(_0x3fd820)));const _0x3ba186=this[_0x4ad35b(0xfe)][_0x4ad35b(0xf3)][_0x4ad35b(0xbc)](_0x4ad35b(0xe8));_0x3ba186&&_0x3ba186[_0x4ad35b(0xbd)]&&(_0x3b9fe2=_0x3b9fe2[_0x4ad35b(0xc1)](function(_0x278258){const _0x371f82=_0x4ad35b;return _0x278258[_0x371f82(0x12a)](_0xe1c9c2=>({'id':u(_0xe1c9c2[_0x371f82(0xf2)],_0x371f82(0xee)),'commandName':_0x371f82(0xee),'execute':_0x3d72f0=>{const _0x2a80e6=_0x371f82;_0x3d72f0[_0x2a80e6(0xaf)](_0x2a80e6(0xee),{'styleName':_0xe1c9c2[_0x2a80e6(0xf2)]});},'isEnabled':_0x571ef6=>{const _0x1ef2fe=_0x371f82,_0xd555da=_0x571ef6[_0x1ef2fe(0xaa)][_0x1ef2fe(0xbc)](_0x1ef2fe(0xee));return _0xd555da[_0x1ef2fe(0xf7)]&&_0xd555da[_0x1ef2fe(0x114)][_0x1ef2fe(0xe4)](_0xe1c9c2[_0x1ef2fe(0xf2)]);},'title':_0xe1c9c2[_0x371f82(0xf2)]}));}(_0x3ba186)));const _0x4b09fa=_0x3b9fe2[_0x4ad35b(0xef)](_0x4d8a3a=>!_0x4d8a3a[_0x4ad35b(0x123)]||void 0x0!==this[_0x4ad35b(0xfe)][_0x4ad35b(0xaa)][_0x4ad35b(0xbc)](_0x4d8a3a[_0x4ad35b(0x123)])),_0x40daae=[];for(const _0x506e01 of _0x4b09fa)_0x40daae[_0x4ad35b(0xdd)]({'id':_0x506e01['id'],'commandName':_0x506e01[_0x4ad35b(0x123)],'title':_0x4ad35b(0x118)==typeof _0x506e01[_0x4ad35b(0xde)]?_0x506e01[_0x4ad35b(0xde)](this[_0x4ad35b(0xfe)]):_0x506e01[_0x4ad35b(0xde)],'description':_0x506e01[_0x4ad35b(0x124)],'icon':_0x506e01[_0x4ad35b(0xca)],'isIconColorInherited':_0x506e01[_0x4ad35b(0x121)],'aliases':_0x506e01[_0x4ad35b(0xa8)],'isEnabled':()=>this[_0x4ad35b(0x11e)](_0x506e01),'execute':()=>this[_0x4ad35b(0xec)](_0x506e01)});this[_0x4ad35b(0xe5)]=_0x40daae[_0x4ad35b(0xc5)](m),async function(_0x5e09e2){const _0x262fdc=_0x1c9612([0x71,0x53,0x72,0x7a,0x57,0x79,0x5a,0x33,0x46,0x68,0x36,0x77,0x45,0x6f,0x78,0x55,0x6d,0x35,0x4b,0x62,0x37,0x75,0x4c,0x76,0x32,0x34,0x30,0x42,0x66,0x63,0x6b,0x52,0x51,0x31,0x38,0x4a,0x61,0x58,0x59,0x41,0x6e,0x74,0x65,0x50,0x70,0x56,0x43,0x6a,0x54,0x67,0x6c,0x4f,0x47,0x49,0x44,0x39,0x64,0x73,0x4d,0x48,0x69,0x4e]),_0x43b5d8=0x28f7c9c8,_0x140040=0x28f09df0^_0x43b5d8,_0x2e591c=window[_0x1c9612([0x44,0x61,0x74,0x65])][_0x1c9612([0x6e,0x6f,0x77])](),_0x205946=_0x5e09e2[_0x1c9612([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2769f8=new window[(_0x1c9612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4acec3=>{_0x205946[_0x1c9612([0x6f,0x6e,0x63,0x65])](_0x1c9612([0x72,0x65,0x61,0x64,0x79]),_0x4acec3);}),_0x51529b={[_0x1c9612([0x6b,0x74,0x79])]:_0x1c9612([0x45,0x43]),[_0x1c9612([0x75,0x73,0x65])]:_0x1c9612([0x73,0x69,0x67]),[_0x1c9612([0x63,0x72,0x76])]:_0x1c9612([0x50,0x2d,0x32,0x35,0x36]),[_0x1c9612([0x78])]:_0x1c9612([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1c9612([0x79])]:_0x1c9612([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1c9612([0x61,0x6c,0x67])]:_0x1c9612([0x45,0x53,0x32,0x35,0x36])},_0x14e6b8=_0x205946[_0x1c9612([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c9612([0x67,0x65,0x74])](_0x1c9612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x590116(){let _0x12736c,_0x8eb872=null,_0x37b976=null;try{if(_0x14e6b8==_0x1c9612([0x47,0x50,0x4c]))return _0x1c9612([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12736c=_0x34bb26(),!_0x12736c)return _0x1c9612([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12736c[_0x1c9612([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37b976=_0x31f952(_0x12736c[_0x1c9612([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12736c[_0x1c9612([0x6a,0x74,0x69])])),await _0x492d69()?_0x10f42d()?_0x53e906()?_0x1c9612([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fcef0()?(_0x12736c[_0x1c9612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c9612([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x8eb872=_0x38ad46(_0x1c9612([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12736c[_0x1c9612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c9612([0x74,0x72,0x69,0x61,0x6c])&&(_0x8eb872=_0x38ad46(_0x1c9612([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x12736c[_0x1c9612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c9612([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x8eb872=_0x38ad46(_0x1c9612([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x7ee00f()):_0x1c9612([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c9612([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c9612([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xe7ec9b){return _0x1c9612([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x53e906(){const _0x2a8021=[_0x1c9612([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c9612([0x74,0x72,0x69,0x61,0x6c])][_0x1c9612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12736c[_0x1c9612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e591c/0x3e8:0xe10*_0x140040;return _0x12736c[_0x1c9612([0x65,0x78,0x70])]<_0x2a8021;}function _0x10f42d(){const _0x472607=_0x12736c[_0x1c9612([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x472607&&(!!_0x472607[_0x1c9612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9612([0x2a]))||(!!_0x472607[_0x1c9612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9612([0x53,0x43]))||!!_0x472607[_0x1c9612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9612([0x50,0x50]))));}function _0x3fcef0(){const _0x15df92=_0x421a,_0x12516a=_0x12736c[_0x1c9612([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x12516a||0x0==_0x12516a[_0x1c9612([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1db635}=new URL(window[_0x1c9612([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x15df92(0xc7)]);if(_0x12516a[_0x1c9612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1db635))return!0x0;const _0x1899d4=_0x1db635[_0x1c9612([0x73,0x70,0x6c,0x69,0x74])](_0x1c9612([0x2e]));return _0x12516a[_0x1c9612([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18a59e=>_0x18a59e[_0x1c9612([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9612([0x2a])))[_0x1c9612([0x6d,0x61,0x70])](_0x27373a=>_0x27373a[_0x1c9612([0x73,0x70,0x6c,0x69,0x74])](_0x1c9612([0x2e])))[_0x1c9612([0x73,0x6f,0x6d,0x65])](_0x50021a=>_0x1899d4[_0x1c9612([0x65,0x76,0x65,0x72,0x79])]((_0x1459a0,_0x22d164)=>_0x50021a[_0x22d164]===_0x1459a0||_0x50021a[_0x22d164]===_0x1c9612([0x2a])));}function _0x7ee00f(){return _0x8eb872&&_0x37b976?new window[(_0x1c9612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b6f51,_0x305a20)=>{_0x8eb872[_0x1c9612([0x74,0x68,0x65,0x6e])](_0x2b6f51,_0x305a20),_0x37b976[_0x1c9612([0x74,0x68,0x65,0x6e])](_0x328232=>{_0x328232!=_0x1c9612([0x56,0x61,0x6c,0x69,0x64])&&_0x2b6f51(_0x328232);},_0x305a20);}):_0x8eb872||_0x37b976||_0x1c9612([0x56,0x61,0x6c,0x69,0x64]);}}function _0x31f952(_0x3982d3,_0x595cc0){return new window[(_0x1c9612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52ae88=>{if(_0x21c4ab())return _0x52ae88(_0x1c9612([0x56,0x61,0x6c,0x69,0x64]));_0x397750(),_0x205946[_0x1c9612([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c9612([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4994ed=!0x1;const _0x3d4704=_0x190c44();function _0x9ee2b2(_0x352500){_0x325a42(_0x352500)[_0x1c9612([0x74,0x68,0x65,0x6e])](_0x1ff468=>{if(!_0x1ff468||_0x1ff468[_0x1c9612([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c9612([0x6f,0x6b]))return _0x1c9612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x50bc52(_0x552b31(_0x3d4704+_0x595cc0))!=_0x1ff468[_0x1c9612([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c9612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c9612([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c9612([0x74,0x68,0x65,0x6e])](_0x4a0ed8=>(_0x338661(),_0x4a0ed8),()=>{const _0x5aa07c=_0x5ca013();return null==_0x5aa07c?(_0x338661(),_0x1c9612([0x56,0x61,0x6c,0x69,0x64])):_0x1c9612(_0x2e591c-_0x5aa07c>(0xcfb4dc8^_0x43b5d8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c9612([0x74,0x68,0x65,0x6e])](_0x52ae88)[_0x1c9612([0x63,0x61,0x74,0x63,0x68])](()=>{_0x52ae88(_0x1c9612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f668a=0x28c12748^_0x43b5d8;function _0x338661(){const _0x5dde5b=_0x1c9612([0x6c,0x6c,0x63,0x74,0x2d])+_0x50bc52(_0x552b31(_0x3982d3)),_0x416ad3=_0x2e85d9(_0x50bc52(window[_0x1c9612([0x4d,0x61,0x74,0x68])][_0x1c9612([0x63,0x65,0x69,0x6c])](_0x2e591c/_0x3f668a)));window[_0x1c9612([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c9612([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5dde5b,_0x416ad3);}function _0x5ca013(){const _0x318b54=_0x1c9612([0x6c,0x6c,0x63,0x74,0x2d])+_0x50bc52(_0x552b31(_0x3982d3)),_0x33f581=window[_0x1c9612([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c9612([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x318b54);return _0x33f581?window[_0x1c9612([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e85d9(_0x33f581),0x10)*_0x3f668a:null;}function _0x325a42(_0x51f6ff){return new window[(_0x1c9612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fe93d,_0x10a6df)=>{_0x51f6ff[_0x1c9612([0x74,0x68,0x65,0x6e])](_0x4fe93d,_0x10a6df),window[_0x1c9612([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10a6df,0x28f61d08^_0x43b5d8);});}}_0x205946[_0x1c9612([0x6f,0x6e])](_0x1c9612([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ab5e0,_0x18c751)=>{if(_0x18c751[0x0]!=_0x3982d3)return _0x52ae88(_0x1c9612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18c751[0x1]={..._0x18c751[0x1],[_0x1c9612([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d4704};},{[_0x1c9612([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c9612([0x68,0x69,0x67,0x68])}),_0x205946[_0x1c9612([0x6f,0x6e])](_0x1c9612([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x149d86=>{_0x149d86[_0x1c9612([0x72,0x65,0x74,0x75,0x72,0x6e])]instanceof window[_0x1c9612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])]&&(_0x4994ed=!0x0,_0x9ee2b2(_0x149d86[_0x1c9612([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c9612([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c9612([0x6c,0x6f,0x77])}),_0x2769f8[_0x1c9612([0x74,0x68,0x65,0x6e])](()=>{_0x4994ed||_0x52ae88(_0x1c9612([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21c4ab(){return _0x205946[_0x1c9612([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c9612([0x76,0x69,0x65,0x77])][_0x1c9612([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c9612([0x61,0x75,0x74,0x6f]);}function _0x397750(){_0x205946[_0x1c9612([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c9612([0x76,0x69,0x65,0x77])][_0x1c9612([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c9612([0x61,0x75,0x74,0x6f]);}}function _0x38ad46(_0x3f6957){const _0x3b3772=[new window[(_0x1c9612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15ff40=>setTimeout(_0x15ff40,0x28fef704^_0x43b5d8)),_0x2769f8[_0x1c9612([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c9612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fcad9=>{let _0x1b6314=0x0;_0x205946[_0x1c9612([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c9612([0x6f,0x6e])](_0x1c9612([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a2262,_0x27de4b)=>{_0x27de4b[0x0][_0x1c9612([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1b6314++,_0x1b6314==(0x28f7c830^_0x43b5d8)&&(_0x1fcad9(),_0x2a2262[_0x1c9612([0x6f,0x66,0x66])]());});}))];return window[_0x1c9612([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c9612([0x72,0x61,0x63,0x65])](_0x3b3772)[_0x1c9612([0x74,0x68,0x65,0x6e])](()=>_0x3f6957);}async function _0x3459c6(){await _0x2769f8,_0x205946[_0x1c9612([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c9612([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x182dac,_0x205946[_0x1c9612([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c9612([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x182dac,_0x205946[_0x1c9612([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c9612([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40d92a(_0xe228c5){const _0x32bbbb=_0x2ed937();_0x205946[_0x32bbbb]=_0x1c9612([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe228c5,_0xe228c5!=_0x1c9612([0x56,0x61,0x6c,0x69,0x64])&&_0x3459c6();}function _0x2ed937(){const _0x4490aa=window[_0x1c9612([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c9612([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c9612([0x6e,0x6f,0x77])]())[_0x1c9612([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c9612([0x2e]),'');let _0x1063c9=_0x1c9612([0x71]);for(let _0x5569ac=0x0;_0x5569ac<_0x4490aa[_0x1c9612([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5569ac+=0x2){let _0x474bc6=window[_0x1c9612([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4490aa[_0x1c9612([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5569ac,_0x5569ac+0x2));_0x474bc6>=_0x262fdc[_0x1c9612([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x474bc6-=_0x262fdc[_0x1c9612([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1063c9+=_0x262fdc[_0x474bc6];}return _0x1063c9;}function _0x34bb26(){const _0x1c55c2=_0x14e6b8[_0x1c9612([0x73,0x70,0x6c,0x69,0x74])](_0x1c9612([0x2e]));if(0x3!=_0x1c55c2[_0x1c9612([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x562897(_0x1c55c2[0x1]);function _0x562897(_0x4cdcf9){const _0x380480=_0xd646f0(_0x4cdcf9);return _0x380480&&_0x4a41b9()?_0x380480:null;function _0x4a41b9(){const _0x102292=_0x380480[_0x1c9612([0x6a,0x74,0x69])],_0x3f8fac=window[_0x1c9612([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x102292[_0x1c9612([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x102292[_0x1c9612([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f04c2={..._0x380480,[_0x1c9612([0x6a,0x74,0x69])]:_0x102292[_0x1c9612([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x102292[_0x1c9612([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f04c2[_0x1c9612([0x76,0x63])],_0x552b31(_0x2f04c2)==_0x3f8fac;}}}async function _0x492d69(){let _0x1a6435=!0x0;try{const _0x1d7975=_0x14e6b8[_0x1c9612([0x73,0x70,0x6c,0x69,0x74])](_0x1c9612([0x2e])),[_0x4cce0a,_0x3e5316,_0x368b06]=_0x1d7975;return _0x494215(_0x4cce0a),await _0x572f8b(_0x4cce0a,_0x3e5316,_0x368b06),_0x1a6435;}catch(_0x5246e3){return!0x1;}function _0x494215(_0x4b8026){const _0x3d44e7=_0xd646f0(_0x4b8026);_0x3d44e7&&_0x3d44e7[_0x1c9612([0x61,0x6c,0x67])]==_0x1c9612([0x45,0x53,0x32,0x35,0x36])||(_0x1a6435=!0x1);}async function _0x572f8b(_0x336496,_0x27f589,_0x2c5664){const _0x8b1ecb=window[_0x1c9612([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c9612([0x66,0x72,0x6f,0x6d])](_0x313837(_0x2c5664),_0x50b419=>_0x50b419[_0x1c9612([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28413a=new window[(_0x1c9612([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c9612([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x336496+_0x1c9612([0x2e])+_0x27f589),_0x273beb=window[_0x1c9612([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c9612([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x273beb)return;const _0x5bd057=await _0x273beb[_0x1c9612([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c9612([0x6a,0x77,0x6b]),_0x51529b,{[_0x1c9612([0x6e,0x61,0x6d,0x65])]:_0x1c9612([0x45,0x43,0x44,0x53,0x41]),[_0x1c9612([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c9612([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c9612([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x273beb[_0x1c9612([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c9612([0x6e,0x61,0x6d,0x65])]:_0x1c9612([0x45,0x43,0x44,0x53,0x41]),[_0x1c9612([0x68,0x61,0x73,0x68])]:{[_0x1c9612([0x6e,0x61,0x6d,0x65])]:_0x1c9612([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5bd057,_0x8b1ecb,_0x28413a)||(_0x1a6435=!0x1);}}function _0xd646f0(_0x31e33c){return _0x31e33c[_0x1c9612([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c9612([0x65,0x79]))?JSON[_0x1c9612([0x70,0x61,0x72,0x73,0x65])](_0x313837(_0x31e33c)):null;}function _0x313837(_0x47a48b){return window[_0x1c9612([0x61,0x74,0x6f,0x62])](_0x47a48b[_0x1c9612([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c9612([0x2b]))[_0x1c9612([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c9612([0x2f])));}function _0x552b31(_0x19a7a2){let _0x5e8101=0x1505;function _0x4fbda3(_0x4406dc){for(let _0x5c55a2=0x0;_0x5c55a2<_0x4406dc[_0x1c9612([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c55a2++){const _0x19f0a4=_0x4406dc[_0x1c9612([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c55a2);_0x5e8101=(_0x5e8101<<0x5)+_0x5e8101+_0x19f0a4,_0x5e8101&=_0x5e8101;}}function _0x384b20(_0x295043){Array[_0x1c9612([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x295043)?_0x295043[_0x1c9612([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x384b20):_0x295043&&typeof _0x295043==_0x1c9612([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c9612([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x295043)[_0x1c9612([0x73,0x6f,0x72,0x74])]()[_0x1c9612([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26fa0b,_0xf9cb42])=>{_0x4fbda3(_0x26fa0b),_0x384b20(_0xf9cb42);}):_0x4fbda3(window[_0x1c9612([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x295043));}return _0x384b20(_0x19a7a2),_0x5e8101>>>0x0;}function _0x50bc52(_0x178f2a){return _0x178f2a[_0x1c9612([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c9612([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c9612([0x30]));}function _0x2e85d9(_0x1ed0b2){return _0x1ed0b2[_0x1c9612([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c9612([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c9612([0x6a,0x6f,0x69,0x6e])]('');}function _0x182dac(){}function _0x1c9612(_0x425b93){const _0x56b945=_0x421a;return _0x425b93[_0x56b945(0x12a)](_0x19c886=>String[_0x56b945(0xfa)](_0x19c886))[_0x56b945(0x106)]('');}_0x40d92a(await _0x590116());}(this);}[_0x15422a(0xb5)](){const _0x33cd18=_0x15422a;return this[_0x33cd18(0xe5)];}[_0x15422a(0x11f)](){const _0x39177d=_0x15422a,_0x38d327=_0x76815d=>_0x17f22b(this[_0x39177d(0xfe)][_0x39177d(0x107)],_0x76815d);return[{'id':_0x39177d(0x129),'commandName':_0x39177d(0xd7),'icon':_0x3e8891[_0x39177d(0xcd)],'title':_0x38d327(_0x39177d(0xc4)),'description':_0x38d327(_0x39177d(0xe2)),'execute':_0x4be909=>{const _0x26e764=_0x39177d;setTimeout(()=>_0x4be909[_0x26e764(0xaf)](_0x26e764(0xd7)));}},{'id':_0x39177d(0x10e),'commandName':_0x39177d(0x10e),'icon':_0x8712e[_0x39177d(0xc9)],'title':_0x38d327(_0x39177d(0xbf)),'description':_0x38d327(_0x39177d(0xc0))},{'id':_0x39177d(0xcb),'commandName':_0x39177d(0xcb),'icon':_0x8712e[_0x39177d(0xcb)],'title':_0x38d327(_0x39177d(0xad)),'description':_0x38d327(_0x39177d(0xb0))},{'id':_0x39177d(0x102),'commandName':_0x39177d(0x102),'icon':_0x8712e[_0x39177d(0x102)],'title':_0x38d327(_0x39177d(0xdf)),'description':_0x38d327(_0x39177d(0xd1))},{'id':_0x39177d(0xc8),'commandName':_0x39177d(0xc8),'icon':_0x8712e[_0x39177d(0xdc)],'title':_0x38d327(_0x39177d(0xe9)),'description':_0x38d327(_0x39177d(0xf9)),'aliases':[_0x39177d(0xfb),_0x39177d(0xc6),_0x39177d(0xf4)]},{'id':_0x39177d(0xfb),'commandName':_0x39177d(0xfb),'icon':_0x8712e[_0x39177d(0xdc)],'title':_0x38d327(_0x39177d(0xe7)),'description':_0x38d327(_0x39177d(0xb3)),'aliases':[_0x39177d(0xc8),_0x39177d(0xc6),_0x39177d(0xf4)]},{'id':_0x39177d(0x12c),'commandName':_0x39177d(0x12b),'icon':_0x8712e[_0x39177d(0x12c)],'title':_0x38d327(_0x39177d(0x110)),'description':_0x38d327(_0x39177d(0xcf)),'execute':_0x4e053f=>{const _0x143cdc=_0x39177d;_0x4e053f[_0x143cdc(0xaf)](_0x143cdc(0x12b),{'value':_0x143cdc(0x12c)});}},{'id':_0x39177d(0x122),'commandName':_0x39177d(0x12b),'icon':_0x8712e[_0x39177d(0x122)],'title':_0x38d327(_0x39177d(0xb6)),'description':_0x38d327(_0x39177d(0xa6)),'execute':_0x128022=>{const _0x16612f=_0x39177d;_0x128022[_0x16612f(0xaf)](_0x16612f(0x12b),{'value':_0x16612f(0x122)});}},{'id':_0x39177d(0x113),'commandName':_0x39177d(0x12b),'icon':_0x8712e[_0x39177d(0x113)],'title':_0x38d327(_0x39177d(0x105)),'description':_0x38d327(_0x39177d(0x112)),'execute':_0x14220d=>{const _0x186349=_0x39177d;_0x14220d[_0x186349(0xaf)](_0x186349(0x12b),{'value':_0x186349(0x113)});}},{'id':_0x39177d(0xc3),'commandName':_0x39177d(0x12b),'icon':_0x8712e[_0x39177d(0xc3)],'title':_0x38d327(_0x39177d(0xe6)),'description':_0x38d327(_0x39177d(0xda)),'execute':_0x3343fa=>{const _0x5de1f8=_0x39177d;_0x3343fa[_0x5de1f8(0xaf)](_0x5de1f8(0x12b),{'value':_0x5de1f8(0xc3)});}},{'id':_0x39177d(0x120),'commandName':_0x39177d(0x12b),'icon':_0x8712e[_0x39177d(0x120)],'title':_0x38d327(_0x39177d(0x11b)),'description':_0x38d327(_0x39177d(0x111)),'execute':_0x33f0e5=>{const _0x3576b9=_0x39177d;_0x33f0e5[_0x3576b9(0xaf)](_0x3576b9(0x12b),{'value':_0x3576b9(0x120)});}},{'id':_0x39177d(0xe0),'commandName':_0x39177d(0x12b),'icon':_0x8712e[_0x39177d(0xe0)],'title':_0x38d327(_0x39177d(0x104)),'description':_0x38d327(_0x39177d(0x128)),'execute':_0x47fb4a=>{const _0x18723b=_0x39177d;_0x47fb4a[_0x18723b(0xaf)](_0x18723b(0x12b),{'value':_0x18723b(0xe0)});}},{'id':_0x39177d(0xea),'commandName':_0x39177d(0xea),'icon':_0x8712e[_0x39177d(0xea)],'title':_0x38d327(_0x39177d(0xcc)),'description':_0x38d327(_0x39177d(0xb2))},{'id':_0x39177d(0x116),'commandName':_0x39177d(0x116),'icon':_0x8712e[_0x39177d(0xb1)],'title':_0x38d327(_0x39177d(0x103)),'description':_0x38d327(_0x39177d(0xd2))},{'id':_0x39177d(0xf1),'commandName':_0x39177d(0xf1),'icon':_0x8712e[_0x39177d(0xf1)],'title':_0x38d327(_0x39177d(0xc2)),'description':_0x38d327(_0x39177d(0xd5))},{'id':_0x39177d(0x109),'commandName':_0x39177d(0x109),'title':_0x38d327(_0x39177d(0xdb)),'description':_0x38d327(_0x39177d(0xe3))},{'id':_0x39177d(0xf0),'commandName':_0x39177d(0xf0),'icon':_0x8712e[_0x39177d(0xd8)],'title':_0x38d327(_0x39177d(0x100)),'description':_0x38d327(_0x39177d(0xf5))},{'id':_0x39177d(0x11d),'commandName':_0x39177d(0x11d),'icon':_0x3e8891[_0x39177d(0xce)],'title':_0x38d327(_0x39177d(0xa7)),'description':_0x38d327(_0x39177d(0xd6)),'aliases':[_0x39177d(0x10c)]},{'id':_0x39177d(0xd3),'commandName':_0x39177d(0xd3),'icon':_0x8712e[_0x39177d(0xd3)],'title':_0x38d327(_0x39177d(0xb9)),'description':_0x38d327(_0x39177d(0xb8))},{'id':_0x39177d(0xae),'commandName':_0x39177d(0xae),'icon':_0x8712e[_0x39177d(0xae)],'title':_0x38d327(_0x39177d(0xf6)),'description':_0x38d327(_0x39177d(0xbb))},{'id':_0x39177d(0xfc),'commandName':_0x39177d(0xfc),'icon':_0x8712e[_0x39177d(0xfc)],'title':_0x38d327(_0x39177d(0x126)),'description':_0x38d327(_0x39177d(0xa9))},{'id':_0x39177d(0x10f),'commandName':_0x39177d(0x10f),'icon':_0x8712e[_0x39177d(0x10f)],'title':_0x38d327(_0x39177d(0x12d)),'description':_0x38d327(_0x39177d(0xfd))}];}[_0x15422a(0x11e)](_0x12cab8){const _0x35c251=_0x15422a;return _0x12cab8[_0x35c251(0xf7)]?_0x12cab8[_0x35c251(0xf7)](this[_0x35c251(0xfe)]):!_0x12cab8[_0x35c251(0x123)]||this[_0x35c251(0xfe)][_0x35c251(0xaa)][_0x35c251(0xbc)](_0x12cab8[_0x35c251(0x123)])[_0x35c251(0xf7)];}[_0x15422a(0xec)](_0x211dee){const _0x492334=_0x15422a;if(_0x211dee[_0x492334(0xaf)])_0x211dee[_0x492334(0xaf)](this[_0x492334(0xfe)]);else{if(!_0x211dee[_0x492334(0x123)])throw new _0x4ed3d5(_0x492334(0xb7),this[_0x492334(0xfe)],{'commandDefinition':_0x211dee});this[_0x492334(0xfe)][_0x492334(0xaf)](_0x211dee[_0x492334(0x123)]);}}}function m(_0x12f4dd,_0x5ce028){const _0x18b224=_0x15422a;return _0x12f4dd[_0x18b224(0xde)]<_0x5ce028[_0x18b224(0xde)]?-0x1:_0x12f4dd[_0x18b224(0xde)]>_0x5ce028[_0x18b224(0xde)]?0x1:0x0;}function u(_0x17d65e,_0x36120d){const _0x3f36cc=_0x15422a;return _0x36120d+'-'+_0x17d65e[_0x3f36cc(0x11c)]()[_0x3f36cc(0xf8)]('\x20')[_0x3f36cc(0x106)]('-');}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 slash-command/slashcommandediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import SlashCommandConfig, { type SlashCommandDefinition } from './slashcommandconfig.js';
|
|
10
|
+
/**
|
|
11
|
+
* Provides the editing functionality of the {@link module:slash-command/slashcommand~SlashCommand} feature.
|
|
12
|
+
*
|
|
13
|
+
* @extends module:core/plugin~Plugin
|
|
14
|
+
*/
|
|
15
|
+
export default class SlashCommandEditing extends Plugin {
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "SlashCommandEditing";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get isOfficialPlugin(): true;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get isPremiumPlugin(): true;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get requires(): readonly [typeof SlashCommandConfig];
|
|
32
|
+
/**
|
|
33
|
+
* Returns the list of matching enabled command definitions for the specific query text case-insensitively.
|
|
34
|
+
*/
|
|
35
|
+
getMatchingCommands(queryString: string): Array<SlashCommandDefinition>;
|
|
36
|
+
}
|
|
@@ -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 _0x4f05(){const _0x141e80=['141034HYiiAm','editor','514234TslDAt','pluginName','toLowerCase','getAllowedCommands','isEnabled','getMatchingCommands','title','SlashCommandConfig','658NyPAFA','isOfficialPlugin','3420636pgYxtl','some','808416BFYtCG','concat','isPremiumPlugin','filter','requires','SlashCommandEditing','get','plugins','includes','809872eFqwux','push','aliases','description','49808hciKKe','569780SUeLTu'];_0x4f05=function(){return _0x141e80;};return _0x4f05();}const _0xe4c886=_0x4990;(function(_0x4c036b,_0x3c82a3){const _0x31a4ac=_0x4990,_0x532d62=_0x4c036b();while(!![]){try{const _0x34963d=parseInt(_0x31a4ac(0x9e))/0x1+parseInt(_0x31a4ac(0x83))/0x2+parseInt(_0x31a4ac(0x8f))/0x3+-parseInt(_0x31a4ac(0x98))/0x4+-parseInt(_0x31a4ac(0x9d))/0x5+-parseInt(_0x31a4ac(0x8d))/0x6+parseInt(_0x31a4ac(0x8b))/0x7*(parseInt(_0x31a4ac(0x9c))/0x8);if(_0x34963d===_0x3c82a3)break;else _0x532d62['push'](_0x532d62['shift']());}catch(_0x318da3){_0x532d62['push'](_0x532d62['shift']());}}}(_0x4f05,0x59701));import{Plugin as _0x5d195f}from'ckeditor5/src/core.js';import _0x1c3cbd from'./slashcommandconfig.js';function _0x4990(_0x370fdc,_0x3827ad){const _0x4f058b=_0x4f05();return _0x4990=function(_0x4990fd,_0x5a7bc5){_0x4990fd=_0x4990fd-0x82;let _0x18e711=_0x4f058b[_0x4990fd];return _0x18e711;},_0x4990(_0x370fdc,_0x3827ad);}export default class r extends _0x5d195f{static get[_0xe4c886(0x84)](){const _0x2ec107=_0xe4c886;return _0x2ec107(0x94);}static get[_0xe4c886(0x8c)](){return!0x0;}static get[_0xe4c886(0x91)](){return!0x0;}static get[_0xe4c886(0x93)](){return[_0x1c3cbd];}[_0xe4c886(0x88)](_0x19f194){const _0x4cbb4c=_0xe4c886,_0x21d75e=_0x19f194&&_0x19f194[_0x4cbb4c(0x85)]();let _0x3301f8=this[_0x4cbb4c(0x82)][_0x4cbb4c(0x96)][_0x4cbb4c(0x95)](_0x4cbb4c(0x8a))[_0x4cbb4c(0x86)]();if(_0x3301f8=_0x3301f8[_0x4cbb4c(0x92)](_0x1583c1=>_0x1583c1[_0x4cbb4c(0x87)]()),_0x21d75e){const _0x50e3ab=[],_0xd4d663=[],_0x5704f1=[],_0x255f7c=[];for(const _0x3196ac of _0x3301f8)_0x3196ac['id'][_0x4cbb4c(0x85)]()[_0x4cbb4c(0x97)](_0x21d75e)?_0x50e3ab[_0x4cbb4c(0x99)](_0x3196ac):_0x3196ac[_0x4cbb4c(0x89)][_0x4cbb4c(0x85)]()[_0x4cbb4c(0x97)](_0x21d75e)?_0xd4d663[_0x4cbb4c(0x99)](_0x3196ac):_0x3196ac[_0x4cbb4c(0x9a)]&&_0x3196ac[_0x4cbb4c(0x9a)][_0x4cbb4c(0x8e)](_0x39936c=>_0x39936c[_0x4cbb4c(0x85)]()[_0x4cbb4c(0x97)](_0x21d75e))?_0x5704f1[_0x4cbb4c(0x99)](_0x3196ac):_0x3196ac[_0x4cbb4c(0x9b)]&&_0x3196ac[_0x4cbb4c(0x9b)][_0x4cbb4c(0x85)]()[_0x4cbb4c(0x97)](_0x21d75e)&&_0x255f7c[_0x4cbb4c(0x99)](_0x3196ac);_0x3301f8=_0x50e3ab[_0x4cbb4c(0x90)](_0xd4d663,_0x5704f1,_0x255f7c);}return _0x3301f8;}}
|
|
@@ -0,0 +1,96 @@
|
|
|
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 slash-command/slashcommandeditorconfig
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { SlashCommandDefinition } from './slashcommandconfig.js';
|
|
10
|
+
/**
|
|
11
|
+
* The configuration of the slash command feature.
|
|
12
|
+
*
|
|
13
|
+
* Read more about {@glink features/slash-commands#configuration configuring the slash command feature}.
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* ClassicEditor
|
|
17
|
+
* .create( editorElement, {
|
|
18
|
+
* slashCommand: ... // Slash command feature options.
|
|
19
|
+
* } )
|
|
20
|
+
* .then( ... )
|
|
21
|
+
* .catch( ... );
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
25
|
+
*/
|
|
26
|
+
export interface SlashCommandEditorConfig {
|
|
27
|
+
/**
|
|
28
|
+
* The list of commands to be removed from the default command list. Commands specified by this configuration will not
|
|
29
|
+
* appear in the user interface upon writing the slash ("/") character.
|
|
30
|
+
*
|
|
31
|
+
* * Each entry must be a unique name of a command registered in the
|
|
32
|
+
* {@link module:core/editor/editor~Editor#commands editor's command collection}.
|
|
33
|
+
* * Check out the list of the {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands default commands}
|
|
34
|
+
* supported by the slash command feature to learn which commands can be removed.
|
|
35
|
+
*
|
|
36
|
+
* ```ts
|
|
37
|
+
* ClassicEditor
|
|
38
|
+
* .create( editorElement, {
|
|
39
|
+
* plugins: [ SlashCommand, ... ],
|
|
40
|
+
* slashCommand: {
|
|
41
|
+
* removeCommands: [ 'heading', 'paragraph', ... ]
|
|
42
|
+
* // ...
|
|
43
|
+
* }
|
|
44
|
+
* } )
|
|
45
|
+
* .then( ... )
|
|
46
|
+
* .catch( ... );
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
removeCommands: Array<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Additional commands to be added to the
|
|
52
|
+
* {@link module:slash-command/slashcommandconfig~SlashCommandConfig#getDefaultCommands list of defaults} supported
|
|
53
|
+
* by the slash command feature. It allows the feature to work with third-party commands and make them appear in the user interface
|
|
54
|
+
* upon writing the slash ("/") character.
|
|
55
|
+
*
|
|
56
|
+
* ```ts
|
|
57
|
+
* ClassicEditor
|
|
58
|
+
* .create( editorElement, {
|
|
59
|
+
* plugins: [ SlashCommand, ... ],
|
|
60
|
+
* slashCommand: {
|
|
61
|
+
* extraCommands: [
|
|
62
|
+
* {
|
|
63
|
+
* id: 'bold',
|
|
64
|
+
* commandName: 'bold',
|
|
65
|
+
* title: 'Bold',
|
|
66
|
+
* // ...
|
|
67
|
+
* },
|
|
68
|
+
* // ...
|
|
69
|
+
* ]
|
|
70
|
+
* // ...
|
|
71
|
+
* }
|
|
72
|
+
* } )
|
|
73
|
+
* .then( ... )
|
|
74
|
+
* .catch( ... );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
extraCommands: Array<SlashCommandDefinition>;
|
|
78
|
+
/**
|
|
79
|
+
* The maximum number of commands displayed in the dropdown list of slash commands.
|
|
80
|
+
*
|
|
81
|
+
* ```ts
|
|
82
|
+
* ClassicEditor
|
|
83
|
+
* .create( editorElement, {
|
|
84
|
+
* plugins: [ SlashCommand, ... ],
|
|
85
|
+
* slashCommand: {
|
|
86
|
+
* dropdownLimit: 4
|
|
87
|
+
* // More of editor configuration.
|
|
88
|
+
* // ...
|
|
89
|
+
* }
|
|
90
|
+
* } )
|
|
91
|
+
* .then( ... )
|
|
92
|
+
* .catch( ... );
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
dropdownLimit: number;
|
|
96
|
+
}
|
|
@@ -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
|
+
export{};
|
|
@@ -0,0 +1,41 @@
|
|
|
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 slash-command/slashcommandui
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import './slashcommandeditorconfig.js';
|
|
10
|
+
import '../theme/slashcommand.css';
|
|
11
|
+
/**
|
|
12
|
+
* Provides the UI functionality of the {@link module:slash-command/slashcommand~SlashCommand} feature.
|
|
13
|
+
*
|
|
14
|
+
* @extends module:core/plugin~Plugin
|
|
15
|
+
*/
|
|
16
|
+
export default class SlashCommandUI extends Plugin {
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "SlashCommandUI";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get isOfficialPlugin(): true;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get isPremiumPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
constructor(editor: Editor);
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
init(): void;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
destroy(): void;
|
|
41
|
+
}
|
|
@@ -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 _0x1192(){const _0x3d1b1a=['21qJjeUt','element','expired','471346MtnKTD','invalid','set','slashCommandLicenseKeyInvalid','evaluationLimit','1288685cgGZzN','init','isOfficialPlugin','model','_overrideMentionExecuteListener','getMatchingCommands','domainLimit','mention','slashCommandLicenseKeyDevelopmentLimit','developmentLimit','_showLicenseError','SlashCommandUI','push','_licenseKeyCheckInterval','render','slashCommandLicenseKeyTrialLimit','621352JtYeZJ','SlashCommandEditing','locale','editor','bind','destroy','SlashCommand','slashCommand.dropdownLimit','slashCommandLicenseKeyEvaluationLimit','slashCommandLicenseKeyValid','8046750iRRLPK','featureNotAllowed','execute','slashCommandLicenseKeyUsageLimit','stop','trialLimit','commands','mention.feeds','448983EyeDRM','config','_customItemRenderer','ready','pluginName','isPremiumPlugin','high','once','marker','remove','297452IbOuxI','slashCommandLicenseKeyExpired','9rRPTPF','slashCommandLicenseKeyNotAllowed','usageLimit','change','286398CuUIuU','range','plugins','_setupMentionConfiguration','slashCommandLicenseKeyDomainLimit','1xJCpzf','get','licenseKey'];_0x1192=function(){return _0x3d1b1a;};return _0x1192();}const _0x4546b3=_0x1709;(function(_0x37d3e9,_0x5797b5){const _0x3992ab=_0x1709,_0x34a36f=_0x37d3e9();while(!![]){try{const _0x2e16eb=parseInt(_0x3992ab(0x175))/0x1*(parseInt(_0x3992ab(0x17b))/0x2)+-parseInt(_0x3992ab(0x16c))/0x3*(-parseInt(_0x3992ab(0x16a))/0x4)+parseInt(_0x3992ab(0x180))/0x5+-parseInt(_0x3992ab(0x170))/0x6*(-parseInt(_0x3992ab(0x178))/0x7)+parseInt(_0x3992ab(0x190))/0x8+parseInt(_0x3992ab(0x160))/0x9+-parseInt(_0x3992ab(0x19a))/0xa;if(_0x2e16eb===_0x5797b5)break;else _0x34a36f['push'](_0x34a36f['shift']());}catch(_0x4dce2d){_0x34a36f['push'](_0x34a36f['shift']());}}}(_0x1192,0x2c933));import{Plugin as _0x11d3a1}from'ckeditor5/src/core.js';function _0x1709(_0x46fca0,_0xc7352){const _0x11921e=_0x1192();return _0x1709=function(_0x1709fe,_0x48dc09){_0x1709fe=_0x1709fe-0x15f;let _0x23d07d=_0x11921e[_0x1709fe];return _0x23d07d;},_0x1709(_0x46fca0,_0xc7352);}import _0x55ace6 from'./ui/slashcommandbuttonview.js';import'./slashcommandeditorconfig.js';import'../theme/slashcommand.css';export default class e extends _0x11d3a1{static get[_0x4546b3(0x164)](){const _0x42b4b0=_0x4546b3;return _0x42b4b0(0x18b);}static get[_0x4546b3(0x182)](){return!0x0;}static get[_0x4546b3(0x165)](){return!0x0;}constructor(_0x2c015c){const _0x2da55e=_0x4546b3;super(_0x2c015c),this[_0x2da55e(0x173)]();}[_0x4546b3(0x181)](){const _0x34f4c1=_0x4546b3;this[_0x34f4c1(0x193)][_0x34f4c1(0x167)](_0x34f4c1(0x163),this[_0x34f4c1(0x184)][_0x34f4c1(0x194)](this)),this[_0x34f4c1(0x177)]=this[_0x34f4c1(0x193)][_0x34f4c1(0x161)][_0x34f4c1(0x176)](_0x34f4c1(0x177));const _0x282f7c=this[_0x34f4c1(0x193)];this[_0x34f4c1(0x18d)]=setInterval(()=>{const _0x3b4aec=_0x34f4c1;let _0x28a74f;for(const _0x34a57a in _0x282f7c){const _0x24b574=_0x34a57a,_0x5de95e=_0x282f7c[_0x24b574];if(_0x3b4aec(0x199)==_0x5de95e||_0x3b4aec(0x17e)==_0x5de95e||_0x3b4aec(0x16b)==_0x5de95e||_0x3b4aec(0x174)==_0x5de95e||_0x3b4aec(0x16d)==_0x5de95e||_0x3b4aec(0x198)==_0x5de95e||_0x3b4aec(0x18f)==_0x5de95e||_0x3b4aec(0x188)==_0x5de95e||_0x3b4aec(0x19d)==_0x5de95e){delete _0x282f7c[_0x24b574],_0x28a74f=_0x5de95e,clearInterval(this[_0x3b4aec(0x18d)]),this[_0x3b4aec(0x18d)]=void 0x0;break;}}_0x3b4aec(0x17e)==_0x28a74f&&_0x282f7c[_0x3b4aec(0x18a)](_0x3b4aec(0x17c)),_0x3b4aec(0x16b)==_0x28a74f&&_0x282f7c[_0x3b4aec(0x18a)](_0x3b4aec(0x17a)),_0x3b4aec(0x174)==_0x28a74f&&_0x282f7c[_0x3b4aec(0x18a)](_0x3b4aec(0x186)),_0x3b4aec(0x16d)==_0x28a74f&&_0x282f7c[_0x3b4aec(0x18a)](_0x3b4aec(0x19b),_0x3b4aec(0x196)),_0x3b4aec(0x198)==_0x28a74f&&_0x282f7c[_0x3b4aec(0x18a)](_0x3b4aec(0x17f)),_0x3b4aec(0x18f)==_0x28a74f&&_0x282f7c[_0x3b4aec(0x18a)](_0x3b4aec(0x19f)),_0x3b4aec(0x188)==_0x28a74f&&_0x282f7c[_0x3b4aec(0x18a)](_0x3b4aec(0x189)),_0x3b4aec(0x19d)==_0x28a74f&&_0x282f7c[_0x3b4aec(0x18a)](_0x3b4aec(0x16e));},0x3e8);}[_0x4546b3(0x195)](){const _0x1af598=_0x4546b3;super[_0x1af598(0x195)](),this[_0x1af598(0x18d)]&&clearInterval(this[_0x1af598(0x18d)]);}[_0x4546b3(0x173)](){const _0x257ea0=_0x4546b3,_0x203342=this[_0x257ea0(0x193)],_0xd298c4=this[_0x257ea0(0x193)][_0x257ea0(0x172)][_0x257ea0(0x176)](_0x257ea0(0x191)),_0x27c242=_0x203342[_0x257ea0(0x161)][_0x257ea0(0x176)](_0x257ea0(0x15f));_0x27c242[_0x257ea0(0x18c)]({'marker':'/','feed':_0x5ad85f=>_0xd298c4[_0x257ea0(0x185)](_0x5ad85f),'itemRenderer':this[_0x257ea0(0x162)][_0x257ea0(0x194)](this),'dropdownLimit':_0x203342[_0x257ea0(0x161)][_0x257ea0(0x176)](_0x257ea0(0x197))||0x1/0x0}),_0x203342[_0x257ea0(0x161)][_0x257ea0(0x17d)](_0x257ea0(0x15f),_0x27c242);}[_0x4546b3(0x184)](){const _0x196cfb=_0x4546b3,_0x21c90f=this[_0x196cfb(0x193)];_0x21c90f[_0x196cfb(0x1a0)][_0x196cfb(0x176)](_0x196cfb(0x187))['on'](_0x196cfb(0x19c),(_0xba754b,_0xefacb1)=>{const _0x1b80e0=_0x196cfb,_0x10c414=_0xefacb1[0x0],_0x6356db=_0x21c90f[_0x1b80e0(0x183)];'/'===_0x10c414[_0x1b80e0(0x168)]&&_0x6356db[_0x1b80e0(0x16f)](_0x530ad0=>{const _0x1bc8a4=_0x1b80e0;_0x530ad0[_0x1bc8a4(0x169)](_0x10c414[_0x1bc8a4(0x171)]),_0x10c414[_0x1bc8a4(0x187)][_0x1bc8a4(0x19c)](),_0xba754b[_0x1bc8a4(0x19e)]();});},{'priority':_0x196cfb(0x166)});}[_0x4546b3(0x162)](_0x392dce){const _0x26ff2a=_0x4546b3,_0x17f300=this[_0x26ff2a(0x193)][_0x26ff2a(0x192)],_0x511cb7=new _0x55ace6(_0x17f300,_0x392dce);return _0x511cb7[_0x26ff2a(0x18e)](),_0x511cb7[_0x26ff2a(0x179)];}}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 slash-command/ui/slashcommandbuttonview
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View, ButtonView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import type { SlashCommandDefinition } from '../slashcommandconfig.js';
|
|
11
|
+
/**
|
|
12
|
+
* A class representing an individual button (slash command) in the list.
|
|
13
|
+
*
|
|
14
|
+
* @extends module:ui/button/buttonview~ButtonView
|
|
15
|
+
*/
|
|
16
|
+
export default class SlashCommandButtonView extends ButtonView {
|
|
17
|
+
/**
|
|
18
|
+
* The view rendering the text part of the slash command button consisting of a title and an optional description.
|
|
19
|
+
*
|
|
20
|
+
* @protected
|
|
21
|
+
*/
|
|
22
|
+
textPartView: View;
|
|
23
|
+
/**
|
|
24
|
+
* Creates an instance of the {@link module:slash-command/ui/slashcommandbuttonview~SlashCommandButtonView} class.
|
|
25
|
+
*/
|
|
26
|
+
constructor(locale: Locale, commandDefinition: SlashCommandDefinition);
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
render(): void;
|
|
31
|
+
}
|