@ckeditor/ckeditor5-slash-command 48.8.1-alpha.3 → 49.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/dist/augmentation.d.ts +19 -19
  2. package/dist/index-editor.css +53 -51
  3. package/dist/index.css +46 -44
  4. package/dist/index.d.ts +14 -12
  5. package/dist/index.js +1 -1
  6. package/dist/legacyerrors.d.ts +0 -4
  7. package/dist/slashcommand.d.ts +33 -33
  8. package/dist/slashcommandconfig.d.ts +248 -248
  9. package/dist/slashcommandediting.d.ts +31 -31
  10. package/dist/slashcommandeditorconfig.d.ts +91 -91
  11. package/dist/slashcommandui.d.ts +35 -36
  12. package/dist/translations/af.js +1 -1
  13. package/dist/translations/af.umd.js +1 -1
  14. package/dist/translations/ar.js +1 -1
  15. package/dist/translations/ar.umd.js +1 -1
  16. package/dist/translations/ast.js +1 -1
  17. package/dist/translations/ast.umd.js +1 -1
  18. package/dist/translations/az.js +1 -1
  19. package/dist/translations/az.umd.js +1 -1
  20. package/dist/translations/be.js +1 -1
  21. package/dist/translations/be.umd.js +1 -1
  22. package/dist/translations/bg.js +1 -1
  23. package/dist/translations/bg.umd.js +1 -1
  24. package/dist/translations/bn.js +1 -1
  25. package/dist/translations/bn.umd.js +1 -1
  26. package/dist/translations/bs.js +1 -1
  27. package/dist/translations/bs.umd.js +1 -1
  28. package/dist/translations/ca.js +1 -1
  29. package/dist/translations/ca.umd.js +1 -1
  30. package/dist/translations/cs.js +1 -1
  31. package/dist/translations/cs.umd.js +1 -1
  32. package/dist/translations/da.js +1 -1
  33. package/dist/translations/da.umd.js +1 -1
  34. package/dist/translations/de-ch.js +1 -1
  35. package/dist/translations/de-ch.umd.js +1 -1
  36. package/dist/translations/de.js +1 -1
  37. package/dist/translations/de.umd.js +1 -1
  38. package/dist/translations/el.js +1 -1
  39. package/dist/translations/el.umd.js +1 -1
  40. package/dist/translations/en-au.js +1 -1
  41. package/dist/translations/en-au.umd.js +1 -1
  42. package/dist/translations/en-gb.js +1 -1
  43. package/dist/translations/en-gb.umd.js +1 -1
  44. package/dist/translations/en.js +1 -1
  45. package/dist/translations/en.umd.js +1 -1
  46. package/dist/translations/eo.js +1 -1
  47. package/dist/translations/eo.umd.js +1 -1
  48. package/dist/translations/es-co.js +1 -1
  49. package/dist/translations/es-co.umd.js +1 -1
  50. package/dist/translations/es.js +1 -1
  51. package/dist/translations/es.umd.js +1 -1
  52. package/dist/translations/et.js +1 -1
  53. package/dist/translations/et.umd.js +1 -1
  54. package/dist/translations/eu.js +1 -1
  55. package/dist/translations/eu.umd.js +1 -1
  56. package/dist/translations/fa.js +1 -1
  57. package/dist/translations/fa.umd.js +1 -1
  58. package/dist/translations/fi.js +1 -1
  59. package/dist/translations/fi.umd.js +1 -1
  60. package/dist/translations/fr.js +1 -1
  61. package/dist/translations/fr.umd.js +1 -1
  62. package/dist/translations/gl.js +1 -1
  63. package/dist/translations/gl.umd.js +1 -1
  64. package/dist/translations/gu.js +1 -1
  65. package/dist/translations/gu.umd.js +1 -1
  66. package/dist/translations/he.js +1 -1
  67. package/dist/translations/he.umd.js +1 -1
  68. package/dist/translations/hi.js +1 -1
  69. package/dist/translations/hi.umd.js +1 -1
  70. package/dist/translations/hr.js +1 -1
  71. package/dist/translations/hr.umd.js +1 -1
  72. package/dist/translations/hu.js +1 -1
  73. package/dist/translations/hu.umd.js +1 -1
  74. package/dist/translations/hy.js +1 -1
  75. package/dist/translations/hy.umd.js +1 -1
  76. package/dist/translations/id.js +1 -1
  77. package/dist/translations/id.umd.js +1 -1
  78. package/dist/translations/it.js +1 -1
  79. package/dist/translations/it.umd.js +1 -1
  80. package/dist/translations/ja.js +1 -1
  81. package/dist/translations/ja.umd.js +1 -1
  82. package/dist/translations/jv.js +1 -1
  83. package/dist/translations/jv.umd.js +1 -1
  84. package/dist/translations/kk.js +1 -1
  85. package/dist/translations/kk.umd.js +1 -1
  86. package/dist/translations/km.js +1 -1
  87. package/dist/translations/km.umd.js +1 -1
  88. package/dist/translations/kn.js +1 -1
  89. package/dist/translations/kn.umd.js +1 -1
  90. package/dist/translations/ko.js +1 -1
  91. package/dist/translations/ko.umd.js +1 -1
  92. package/dist/translations/ku.js +1 -1
  93. package/dist/translations/ku.umd.js +1 -1
  94. package/dist/translations/lt.js +1 -1
  95. package/dist/translations/lt.umd.js +1 -1
  96. package/dist/translations/lv.js +1 -1
  97. package/dist/translations/lv.umd.js +1 -1
  98. package/dist/translations/ms.js +1 -1
  99. package/dist/translations/ms.umd.js +1 -1
  100. package/dist/translations/nb.js +1 -1
  101. package/dist/translations/nb.umd.js +1 -1
  102. package/dist/translations/ne.js +1 -1
  103. package/dist/translations/ne.umd.js +1 -1
  104. package/dist/translations/nl.js +1 -1
  105. package/dist/translations/nl.umd.js +1 -1
  106. package/dist/translations/no.js +1 -1
  107. package/dist/translations/no.umd.js +1 -1
  108. package/dist/translations/oc.js +1 -1
  109. package/dist/translations/oc.umd.js +1 -1
  110. package/dist/translations/pl.js +1 -1
  111. package/dist/translations/pl.umd.js +1 -1
  112. package/dist/translations/pt-br.js +1 -1
  113. package/dist/translations/pt-br.umd.js +1 -1
  114. package/dist/translations/pt.js +1 -1
  115. package/dist/translations/pt.umd.js +1 -1
  116. package/dist/translations/ro.js +1 -1
  117. package/dist/translations/ro.umd.js +1 -1
  118. package/dist/translations/ru.js +1 -1
  119. package/dist/translations/ru.umd.js +1 -1
  120. package/dist/translations/si.js +1 -1
  121. package/dist/translations/si.umd.js +1 -1
  122. package/dist/translations/sk.js +1 -1
  123. package/dist/translations/sk.umd.js +1 -1
  124. package/dist/translations/sl.js +1 -1
  125. package/dist/translations/sl.umd.js +1 -1
  126. package/dist/translations/sq.js +1 -1
  127. package/dist/translations/sq.umd.js +1 -1
  128. package/dist/translations/sr-latn.js +1 -1
  129. package/dist/translations/sr-latn.umd.js +1 -1
  130. package/dist/translations/sr.js +1 -1
  131. package/dist/translations/sr.umd.js +1 -1
  132. package/dist/translations/sv.js +1 -1
  133. package/dist/translations/sv.umd.js +1 -1
  134. package/dist/translations/th.js +1 -1
  135. package/dist/translations/th.umd.js +1 -1
  136. package/dist/translations/ti.js +1 -1
  137. package/dist/translations/ti.umd.js +1 -1
  138. package/dist/translations/tk.js +1 -1
  139. package/dist/translations/tk.umd.js +1 -1
  140. package/dist/translations/tr.js +1 -1
  141. package/dist/translations/tr.umd.js +1 -1
  142. package/dist/translations/tt.js +1 -1
  143. package/dist/translations/tt.umd.js +1 -1
  144. package/dist/translations/ug.js +1 -1
  145. package/dist/translations/ug.umd.js +1 -1
  146. package/dist/translations/uk.js +1 -1
  147. package/dist/translations/uk.umd.js +1 -1
  148. package/dist/translations/ur.js +1 -1
  149. package/dist/translations/ur.umd.js +1 -1
  150. package/dist/translations/uz.js +1 -1
  151. package/dist/translations/uz.umd.js +1 -1
  152. package/dist/translations/vi.js +1 -1
  153. package/dist/translations/vi.umd.js +1 -1
  154. package/dist/translations/zh-cn.js +1 -1
  155. package/dist/translations/zh-cn.umd.js +1 -1
  156. package/dist/translations/zh.js +1 -1
  157. package/dist/translations/zh.umd.js +1 -1
  158. package/dist/ui/slashcommandbuttonview.d.ts +26 -26
  159. package/dist/utils/common-translations.d.ts +6 -6
  160. package/package.json +9 -9
@@ -1,21 +1,21 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- import type { SlashCommand, SlashCommandConfig, SlashCommandEditing, SlashCommandUI, SlashCommandEditorConfig } from './index.js';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface EditorConfig {
8
- /**
9
- * The configuration of the {@link module:slash-command/slashcommand~SlashCommand} feature.
10
- *
11
- * Read more in {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig}.
12
- */
13
- slashCommand?: SlashCommandEditorConfig;
14
- }
15
- interface PluginsMap {
16
- [SlashCommand.pluginName]: SlashCommand;
17
- [SlashCommandConfig.pluginName]: SlashCommandConfig;
18
- [SlashCommandEditing.pluginName]: SlashCommandEditing;
19
- [SlashCommandUI.pluginName]: SlashCommandUI;
20
- }
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import type { SlashCommand, SlashCommandConfig, SlashCommandEditing, SlashCommandUI, SlashCommandEditorConfig } from "./index.js";
6
+ declare module "@ckeditor/ckeditor5-core" {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the {@link module:slash-command/slashcommand~SlashCommand} feature.
10
+ *
11
+ * Read more in {@link module:slash-command/slashcommandeditorconfig~SlashCommandEditorConfig}.
12
+ */
13
+ slashCommand?: SlashCommandEditorConfig;
14
+ }
15
+ interface PluginsMap {
16
+ [SlashCommand.pluginName]: SlashCommand;
17
+ [SlashCommandConfig.pluginName]: SlashCommandConfig;
18
+ [SlashCommandEditing.pluginName]: SlashCommandEditing;
19
+ [SlashCommandUI.pluginName]: SlashCommandUI;
20
+ }
21
21
  }
@@ -2,68 +2,70 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- :root{
6
- --ck-slash-command-button-width:250px;
7
- --ck-slash-command-description-width:200px;
5
+ :root, :host {
6
+ --ck-slash-command-button-width: 250px;
7
+ --ck-slash-command-description-width: 200px;
8
+ --ck-slash-command-button-radius: var(--ck-list-dropdown-button-border-radius, 0);
8
9
  }
9
10
 
10
- .ck-mentions .ck.ck-button.ck-slash-command-button{
11
- width:var(--ck-slash-command-button-width);
12
- padding:calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base));
13
- justify-content:flex-start;
14
- display:flex;
15
- }
11
+ .ck-mentions .ck.ck-button.ck-slash-command-button {
12
+ width: var(--ck-slash-command-button-width);
13
+ padding: calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base));
14
+ border-radius: var(--ck-slash-command-button-radius);
15
+ justify-content: flex-start;
16
+ display: flex;
16
17
 
17
- .ck-mentions .ck.ck-button.ck-slash-command-button .ck.ck-icon{
18
- color:var(--ck-color-base-text);
19
- background-color:var(--ck-color-base-background);
20
- box-sizing:initial;
21
- border-radius:2px;
22
- flex-shrink:0;
23
- margin-left:0;
24
- padding:5px;
25
- }
18
+ & .ck.ck-icon {
19
+ color: var(--ck-color-text);
20
+ background-color: var(--ck-color-surface-container);
21
+ box-sizing: initial;
22
+ border-radius: 2px;
23
+ flex-shrink: 0;
24
+ margin-left: 0;
25
+ padding: 5px;
26
26
 
27
- [dir="ltr"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button .ck.ck-icon){
28
- margin:0 var(--ck-spacing-small) 0 0;
29
- }
27
+ [dir="ltr"] & {
28
+ margin: 0 var(--ck-spacing-gap-compact) 0 0;
29
+ }
30
30
 
31
- [dir="rtl"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button .ck.ck-icon){
32
- margin:0 0 0 var(--ck-spacing-small);
33
- }
31
+ [dir="rtl"] & {
32
+ margin: 0 0 0 var(--ck-spacing-gap-compact);
33
+ }
34
+ }
34
35
 
35
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part{
36
- flex-direction:column;
37
- display:flex;
38
- }
36
+ & > .ck-slash-command-button__text-part {
37
+ flex-direction: column;
38
+ display: flex;
39
39
 
40
- [dir="ltr"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part){
41
- margin-left:var(--ck-spacing-small);
42
- }
40
+ [dir="ltr"] & {
41
+ margin-left: var(--ck-spacing-gap-compact);
42
+ }
43
43
 
44
- [dir="rtl"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part){
45
- margin-right:var(--ck-spacing-small);
46
- }
44
+ [dir="rtl"] & {
45
+ margin-right: var(--ck-spacing-gap-compact);
46
+ }
47
47
 
48
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > span{
49
- line-height:1.2em;
50
- }
48
+ & > span {
49
+ line-height: 1.2em;
50
+ }
51
51
 
52
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-button__label, .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-slash-command-button__description{
53
- width:var(--ck-slash-command-description-width);
54
- text-overflow:ellipsis;
55
- overflow:hidden;
56
- }
52
+ & > .ck-button__label, & > .ck-slash-command-button__description {
53
+ width: var(--ck-slash-command-description-width);
54
+ text-overflow: ellipsis;
55
+ overflow: hidden;
56
+ }
57
57
 
58
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-button__label{
59
- font-weight:bold;
60
- }
58
+ & > .ck-button__label {
59
+ font-weight: bold;
60
+ }
61
61
 
62
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-slash-command-button__description{
63
- font-size:var(--ck-font-size-small);
64
- opacity:.75;
65
- }
62
+ & > .ck-slash-command-button__description {
63
+ font-size: var(--ck-font-size-small, var(--ck-font-size-sm));
64
+ opacity: .75;
65
+ }
66
+ }
66
67
 
67
- .ck-mentions .ck.ck-button.ck-slash-command-button.ck-on > .ck-slash-command-button__text-part > span{
68
- color:var(--ck-color-list-button-on-text);
68
+ &.ck-on > .ck-slash-command-button__text-part > span {
69
+ color: var(--ck-list-button-on-text-color);
70
+ }
69
71
  }
package/dist/index.css CHANGED
@@ -2,68 +2,70 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- :root {
5
+ :root, :host {
6
6
  --ck-slash-command-button-width: 250px;
7
7
  --ck-slash-command-description-width: 200px;
8
+ --ck-slash-command-button-radius: var(--ck-list-dropdown-button-border-radius, 0);
8
9
  }
9
10
 
10
11
  .ck-mentions .ck.ck-button.ck-slash-command-button {
11
12
  width: var(--ck-slash-command-button-width);
12
13
  padding: calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base));
14
+ border-radius: var(--ck-slash-command-button-radius);
13
15
  justify-content: flex-start;
14
16
  display: flex;
15
- }
16
17
 
17
- .ck-mentions .ck.ck-button.ck-slash-command-button .ck.ck-icon {
18
- color: var(--ck-color-base-text);
19
- background-color: var(--ck-color-base-background);
20
- box-sizing: initial;
21
- border-radius: 2px;
22
- flex-shrink: 0;
23
- margin-left: 0;
24
- padding: 5px;
25
- }
18
+ & .ck.ck-icon {
19
+ color: var(--ck-color-text);
20
+ background-color: var(--ck-color-surface-container);
21
+ box-sizing: initial;
22
+ border-radius: 2px;
23
+ flex-shrink: 0;
24
+ margin-left: 0;
25
+ padding: 5px;
26
26
 
27
- [dir="ltr"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button .ck.ck-icon) {
28
- margin: 0 var(--ck-spacing-small) 0 0;
29
- }
27
+ [dir="ltr"] & {
28
+ margin: 0 var(--ck-spacing-gap-compact) 0 0;
29
+ }
30
30
 
31
- [dir="rtl"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button .ck.ck-icon) {
32
- margin: 0 0 0 var(--ck-spacing-small);
33
- }
31
+ [dir="rtl"] & {
32
+ margin: 0 0 0 var(--ck-spacing-gap-compact);
33
+ }
34
+ }
34
35
 
35
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part {
36
- flex-direction: column;
37
- display: flex;
38
- }
36
+ & > .ck-slash-command-button__text-part {
37
+ flex-direction: column;
38
+ display: flex;
39
39
 
40
- [dir="ltr"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part) {
41
- margin-left: var(--ck-spacing-small);
42
- }
40
+ [dir="ltr"] & {
41
+ margin-left: var(--ck-spacing-gap-compact);
42
+ }
43
43
 
44
- [dir="rtl"] :is(.ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part) {
45
- margin-right: var(--ck-spacing-small);
46
- }
44
+ [dir="rtl"] & {
45
+ margin-right: var(--ck-spacing-gap-compact);
46
+ }
47
47
 
48
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > span {
49
- line-height: 1.2em;
50
- }
48
+ & > span {
49
+ line-height: 1.2em;
50
+ }
51
51
 
52
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-button__label, .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-slash-command-button__description {
53
- width: var(--ck-slash-command-description-width);
54
- text-overflow: ellipsis;
55
- overflow: hidden;
56
- }
52
+ & > .ck-button__label, & > .ck-slash-command-button__description {
53
+ width: var(--ck-slash-command-description-width);
54
+ text-overflow: ellipsis;
55
+ overflow: hidden;
56
+ }
57
57
 
58
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-button__label {
59
- font-weight: bold;
60
- }
58
+ & > .ck-button__label {
59
+ font-weight: bold;
60
+ }
61
61
 
62
- .ck-mentions .ck.ck-button.ck-slash-command-button > .ck-slash-command-button__text-part > .ck-slash-command-button__description {
63
- font-size: var(--ck-font-size-small);
64
- opacity: .75;
65
- }
62
+ & > .ck-slash-command-button__description {
63
+ font-size: var(--ck-font-size-small, var(--ck-font-size-sm));
64
+ opacity: .75;
65
+ }
66
+ }
66
67
 
67
- .ck-mentions .ck.ck-button.ck-slash-command-button.ck-on > .ck-slash-command-button__text-part > span {
68
- color: var(--ck-color-list-button-on-text);
68
+ &.ck-on > .ck-slash-command-button__text-part > span {
69
+ color: var(--ck-list-button-on-text-color);
70
+ }
69
71
  }
package/dist/index.d.ts CHANGED
@@ -1,14 +1,16 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module slash-command
7
- */
8
- export { SlashCommand } from './slashcommand.js';
9
- export { SlashCommandConfig } from './slashcommandconfig.js';
10
- export { SlashCommandEditing } from './slashcommandediting.js';
11
- export { SlashCommandUI } from './slashcommandui.js';
12
- export type { SlashCommandEditorConfig } from './slashcommandeditorconfig.js';
13
- export type { SlashCommandDefinition } from './slashcommandconfig.js';
14
- import './augmentation.js';
6
+ * @module slash-command
7
+ */
8
+ export { SlashCommand } from "./slashcommand.js";
9
+ export { SlashCommandConfig } from "./slashcommandconfig.js";
10
+ export { SlashCommandEditing } from "./slashcommandediting.js";
11
+ export { SlashCommandUI } from "./slashcommandui.js";
12
+ export type { SlashCommandEditorConfig } from "./slashcommandeditorconfig.js";
13
+ export type { SlashCommandDefinition } from "./slashcommandconfig.js";
14
+ import "../theme/index-editor.css";
15
+ import "../theme/index-content.css";
16
+ import "./augmentation.js";
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x4a4149}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x3fe898}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x279201,uid as _0x4bbdf3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x4eda46,IconQuote as _0x122c8f,IconBulletedList as _0x5f1015,IconCodeBlock as _0x2b68f0,IconBrowseFiles as _0x3bb381,IconEmoji as _0x289b7b,IconHeading1 as _0xbfe048,IconHeading2 as _0x1b9b85,IconHeading3 as _0x3d5ed2,IconHeading4 as _0x499532,IconHeading5 as _0x2c61c6,IconHeading6 as _0x42c041,IconHorizontalLine as _0x393331,IconHtml as _0x12b458,IconIndent as _0x240796,IconTable as _0x5c8169,IconTableOfContents as _0x2ad964,IconNumberedList as _0x4884c2,IconOutdent as _0x2faca1,IconParagraph as _0x2b7999,IconTodoList as _0x18272c,IconFootnote as _0x54b401,IconPlay as _0x194784}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1666dd,View as _0x33c86f}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x4a4149{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4402b7){super(_0x4402b7),this['_allowedCommands']=null;}['afterInit'](){const _0x47a588=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x50d907=function(_0x5201e4){let _0x5c5fe2=['heading4','heading5','heading6'];if(_0x5201e4){const _0x357582=_0x5201e4['map'](_0x2604da=>_0x2604da['model']);_0x5c5fe2=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x313a7e=>!_0x357582['includes'](_0x313a7e));}return _0x5c5fe2;}(this['editor']['config']['get']('heading.options'));let _0x54a69f=this['getDefaultCommands']()['filter'](_0x48dd0a=>!_0x50d907['includes'](_0x48dd0a['id']))['filter'](_0x78d8ef=>!_0x47a588['includes'](_0x78d8ef['commandName']));const _0x2570fb=this['editor']['config']['get']('slashCommand.extraCommands');_0x2570fb&&_0x2570fb['length']&&(_0x54a69f=_0x54a69f['concat'](_0x2570fb));const _0x26746e=this['editor']['config']['get']('template.definitions');_0x26746e&&_0x26746e['length']&&(_0x54a69f=_0x54a69f['concat'](function(_0x576b1d){return _0x576b1d['map'](_0x58f865=>{const {title:_0xe7a49a,icon:_0x22f8ac,description:_0x264da3,data:_0x2abea4}=_0x58f865,_0x226913={'id':O(_0xe7a49a,'template'),'commandName':'insertTemplate','execute':_0x7153ce=>{_0x7153ce['execute']('insertTemplate',_0x2abea4);},'description':_0x264da3,'icon':_0x22f8ac,'title':_0xe7a49a};return _0x22f8ac&&(_0x226913['isIconColorInherited']=!0x1),_0x226913;});}(_0x26746e)));const _0x12a62a=this['editor']['config']['get']('style.definitions');_0x12a62a&&_0x12a62a['length']&&(_0x54a69f=_0x54a69f['concat'](function(_0x20750b){return _0x20750b['map'](_0x196ea5=>({'id':O(_0x196ea5['name'],'style'),'commandName':'style','execute':_0x9e52e5=>{_0x9e52e5['execute']('style',{'styleName':_0x196ea5['name']});},'isEnabled':_0x5bb235=>{const _0x58bf07=_0x5bb235['commands']['get']('style');return _0x58bf07['isEnabled']&&_0x58bf07['enabledStyles']['includes'](_0x196ea5['name']);},'title':_0x196ea5['name']}));}(_0x12a62a)));const _0x3c5f4d=_0x54a69f['filter'](_0x13b86b=>!_0x13b86b['commandName']||void 0x0!==this['editor']['commands']['get'](_0x13b86b['commandName'])),_0x2ef5bc=[];for(const _0x56af21 of _0x3c5f4d)_0x2ef5bc['push']({'id':_0x56af21['id'],'commandName':_0x56af21['commandName'],'title':'function'==typeof _0x56af21['title']?_0x56af21['title'](this['editor']):_0x56af21['title'],'description':_0x56af21['description'],'icon':_0x56af21['icon'],'isIconColorInherited':_0x56af21['isIconColorInherited'],'aliases':_0x56af21['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x56af21),'execute':()=>this['_proxyExecute'](_0x56af21)});this['_allowedCommands']=_0x2ef5bc['sort'](S),async function(_0x2127ec){const _0x102661=_0x45c58f([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x53f670=0x305505ed,_0x53da6b=0x30528f85^_0x53f670,_0x16de2f=window[_0x45c58f([0x44,0x61,0x74,0x65])][_0x45c58f([0x6e,0x6f,0x77])](),_0x4f9212=_0x2127ec[_0x45c58f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x314e6c=new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x316bee=>{_0x4f9212[_0x45c58f([0x6f,0x6e,0x63,0x65])](_0x45c58f([0x72,0x65,0x61,0x64,0x79]),_0x316bee);}),_0xc006eb={[_0x45c58f([0x6b,0x74,0x79])]:_0x45c58f([0x45,0x43]),[_0x45c58f([0x75,0x73,0x65])]:_0x45c58f([0x73,0x69,0x67]),[_0x45c58f([0x63,0x72,0x76])]:_0x45c58f([0x50,0x2d,0x32,0x35,0x36]),[_0x45c58f([0x78])]:_0x45c58f([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]),[_0x45c58f([0x79])]:_0x45c58f([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]),[_0x45c58f([0x61,0x6c,0x67])]:_0x45c58f([0x45,0x53,0x32,0x35,0x36])},_0x2fc355=_0x4f9212[_0x45c58f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45c58f([0x67,0x65,0x74])](_0x45c58f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x166f0e(){let _0x584777,_0x165fa9=null,_0x55b700=null;try{if(_0x2fc355==_0x45c58f([0x47,0x50,0x4c]))return _0x45c58f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x584777=_0x2a283e(),!_0x584777)return _0x45c58f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x584777[_0x45c58f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55b700=_0x787876(_0x584777[_0x45c58f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x584777[_0x45c58f([0x6a,0x74,0x69])])),await _0x36316b()?_0x1a6185()?_0x284e9f()?_0x45c58f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x62476()?(_0x584777[_0x45c58f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45c58f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x165fa9=_0x58b667(_0x45c58f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e0457()):_0x45c58f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45c58f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45c58f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x45c58f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x284e9f(){const _0x57a2e5=[_0x45c58f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45c58f([0x74,0x72,0x69,0x61,0x6c])][_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x584777[_0x45c58f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16de2f/0x3e8:0xe10*_0x53da6b;return _0x584777[_0x45c58f([0x65,0x78,0x70])]<_0x57a2e5;}function _0x1a6185(){const _0x2c5466=_0x584777[_0x45c58f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c5466&&(!!_0x2c5466[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x2a]))||(!!_0x2c5466[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x53,0x43]))||(!!_0x2c5466[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x50,0x50]))||!(!_0x2c5466[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x533b1d()))));}function _0x62476(){const _0x4cbc88=_0x584777[_0x45c58f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cbc88||0x0==_0x4cbc88[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x387ec2}=new URL(window[_0x45c58f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4cbc88[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x387ec2))return!0x0;const _0x619355=_0x387ec2[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])](_0x45c58f([0x2e]));return _0x4cbc88[_0x45c58f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5592e1=>_0x5592e1[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x2a])))[_0x45c58f([0x6d,0x61,0x70])](_0x19c6a0=>_0x19c6a0[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])](_0x45c58f([0x2e])))[_0x45c58f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30b345=>_0x30b345[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x619355[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45c58f([0x6d,0x61,0x70])](_0x27a06a=>Array(_0x619355[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27a06a[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45c58f([0x66,0x69,0x6c,0x6c])](_0x27a06a[0x0]===_0x45c58f([0x2a])?_0x45c58f([0x2a]):'')[_0x45c58f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27a06a))[_0x45c58f([0x73,0x6f,0x6d,0x65])](_0x23f717=>_0x619355[_0x45c58f([0x65,0x76,0x65,0x72,0x79])]((_0x57e87c,_0x4af295)=>_0x23f717[_0x4af295]===_0x57e87c||_0x23f717[_0x4af295]===_0x45c58f([0x2a])));}function _0x2e0457(){return _0x165fa9&&_0x55b700?new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22e36e,_0x7c6315)=>{_0x165fa9[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x22e36e,_0x7c6315),_0x55b700[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x21d4c4=>{_0x21d4c4!=_0x45c58f([0x56,0x61,0x6c,0x69,0x64])&&_0x22e36e(_0x21d4c4);},_0x7c6315);}):_0x165fa9||_0x55b700||_0x45c58f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x787876(_0x2e8ca1,_0x139e5b){return new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b30ba=>{if(_0x5d2398())return _0x3b30ba(_0x45c58f([0x56,0x61,0x6c,0x69,0x64]));_0x1a2695(),_0x4f9212[_0x45c58f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45c58f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x416ab8=!0x1;const _0x1a6664=_0x4bbdf3();function _0x3645ad(_0x181cee){return!!_0x181cee&&(typeof _0x181cee===_0x45c58f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x181cee===_0x45c58f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x181cee[_0x45c58f([0x74,0x68,0x65,0x6e])]===_0x45c58f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x181cee[_0x45c58f([0x63,0x61,0x74,0x63,0x68])]===_0x45c58f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25f125(_0x8e04e){_0x3b0bed(_0x8e04e)[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x13b9ee=>{if(!_0x13b9ee||_0x13b9ee[_0x45c58f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45c58f([0x6f,0x6b]))return _0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3bca9e(_0x5bfed9(_0x1a6664+_0x139e5b))!=_0x13b9ee[_0x45c58f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45c58f([0x56,0x61,0x6c,0x69,0x64]);})[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x57b83e=>(_0x14cabd(),_0x57b83e),()=>{const _0x562e05=_0x576d9d();return null==_0x562e05?(_0x14cabd(),_0x45c58f([0x56,0x61,0x6c,0x69,0x64])):_0x45c58f(_0x16de2f-_0x562e05>(0x145981ed^_0x53f670)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x3b30ba)[_0x45c58f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b30ba(_0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7bb424=0x3063eb6d^_0x53f670;function _0x14cabd(){const _0x6b1677=_0x45c58f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bca9e(_0x5bfed9(_0x2e8ca1)),_0x37f887=_0x2614e4(_0x3bca9e(window[_0x45c58f([0x4d,0x61,0x74,0x68])][_0x45c58f([0x63,0x65,0x69,0x6c])](_0x16de2f/_0x7bb424)));window[_0x45c58f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45c58f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6b1677,_0x37f887);}function _0x576d9d(){const _0xe24d4=_0x45c58f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bca9e(_0x5bfed9(_0x2e8ca1)),_0x3bbcbf=window[_0x45c58f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45c58f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe24d4);return _0x3bbcbf?window[_0x45c58f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2614e4(_0x3bbcbf),0x10)*_0x7bb424:null;}function _0x3b0bed(_0x55cbbb){return new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17b66a,_0x35b817)=>{_0x55cbbb[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x17b66a,_0x35b817),window[_0x45c58f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35b817,0x3054d12d^_0x53f670);});}}_0x4f9212[_0x45c58f([0x6f,0x6e])](_0x45c58f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x405510,_0x46ccce)=>{if(_0x46ccce[0x0]!=_0x2e8ca1)return _0x3b30ba(_0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46ccce[0x1]={..._0x46ccce[0x1],[_0x45c58f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a6664};},{[_0x45c58f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45c58f([0x68,0x69,0x67,0x68])}),_0x4f9212[_0x45c58f([0x6f,0x6e])](_0x45c58f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14dab5=>{_0x3645ad(_0x14dab5[_0x45c58f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x416ab8=!0x0,_0x25f125(_0x14dab5[_0x45c58f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45c58f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45c58f([0x6c,0x6f,0x77])}),_0x314e6c[_0x45c58f([0x74,0x68,0x65,0x6e])](()=>{_0x416ab8||_0x3b30ba(_0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d2398(){return _0x4f9212[_0x45c58f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45c58f([0x76,0x69,0x65,0x77])][_0x45c58f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45c58f([0x61,0x75,0x74,0x6f]);}function _0x1a2695(){_0x4f9212[_0x45c58f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45c58f([0x76,0x69,0x65,0x77])][_0x45c58f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45c58f([0x61,0x75,0x74,0x6f]);}}function _0x58b667(_0x1c501a){const _0x120323=[new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x454af0=>setTimeout(_0x454af0,0x305c3b21^_0x53f670)),_0x314e6c[_0x45c58f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x167dad=>{let _0x59ded0=0x0;_0x4f9212[_0x45c58f([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c58f([0x6f,0x6e])](_0x45c58f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4dbbaa,_0x1b64ca)=>{_0x1b64ca[0x0][_0x45c58f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59ded0++,_0x59ded0==(0x30550005^_0x53f670)&&(_0x167dad(),_0x4dbbaa[_0x45c58f([0x6f,0x66,0x66])]());});}))];return window[_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45c58f([0x72,0x61,0x63,0x65])](_0x120323)[_0x45c58f([0x74,0x68,0x65,0x6e])](()=>_0x1c501a);}async function _0x3d5c5d(){await _0x314e6c,_0x4f9212[_0x45c58f([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c58f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3699be,_0x4f9212[_0x45c58f([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c58f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3699be,_0x4f9212[_0x45c58f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45c58f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x533b1d(){return window[_0x45c58f([0x67,0x6c,0x6f,0x62])]&&window[_0x45c58f([0x67,0x6c,0x6f,0x62])][_0x45c58f([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x13c52d(_0x495776){const _0x1452ce=_0x2b8381();_0x4f9212[_0x1452ce]=_0x45c58f([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x495776,_0x495776!=_0x45c58f([0x56,0x61,0x6c,0x69,0x64])&&_0x3d5c5d();}function _0x2b8381(){const _0x287af5=window[_0x45c58f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45c58f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45c58f([0x6e,0x6f,0x77])]())[_0x45c58f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45c58f([0x2e]),'');let _0x173ae4=_0x45c58f([0x75]);for(let _0x1e1783=0x0;_0x1e1783<_0x287af5[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e1783+=0x2){let _0x24b5ae=window[_0x45c58f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x287af5[_0x45c58f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e1783,_0x1e1783+0x2));_0x24b5ae>=_0x102661[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24b5ae-=_0x102661[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x173ae4+=_0x102661[_0x24b5ae];}return _0x173ae4;}function _0x2a283e(){const _0x1cf762=_0x2fc355[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])](_0x45c58f([0x2e]));if(0x3!=_0x1cf762[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x22b2c7(_0x1cf762[0x1]);function _0x22b2c7(_0x3cd66e){const _0x4b6046=_0x2c4cbd(_0x3cd66e);return _0x4b6046&&_0x4442d3()?_0x4b6046:null;function _0x4442d3(){const _0x2f06d5=_0x4b6046[_0x45c58f([0x6a,0x74,0x69])],_0x3a2d9c=window[_0x45c58f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f06d5[_0x45c58f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f06d5[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xcd6340={..._0x4b6046,[_0x45c58f([0x6a,0x74,0x69])]:_0x2f06d5[_0x45c58f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f06d5[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xcd6340[_0x45c58f([0x76,0x63])],_0x5bfed9(_0xcd6340)==_0x3a2d9c;}}}async function _0x36316b(){let _0x28cdb1=!0x0;try{const _0x29f4ff=_0x2fc355[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])](_0x45c58f([0x2e])),[_0x11d582,_0x5ab89a,_0xe01bfc]=_0x29f4ff;return _0x58cb8f(_0x11d582),await _0x39f756(_0x11d582,_0x5ab89a,_0xe01bfc),_0x28cdb1;}catch{return!0x1;}function _0x58cb8f(_0x3d9747){const _0x130743=_0x2c4cbd(_0x3d9747);_0x130743&&_0x130743[_0x45c58f([0x61,0x6c,0x67])]==_0x45c58f([0x45,0x53,0x32,0x35,0x36])||(_0x28cdb1=!0x1);}async function _0x39f756(_0x2bd847,_0x3f7ec0,_0x496369){const _0x15e06f=window[_0x45c58f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45c58f([0x66,0x72,0x6f,0x6d])](_0x2f65e5(_0x496369),_0x1e8efd=>_0x1e8efd[_0x45c58f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a3f20=new window[(_0x45c58f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45c58f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2bd847+_0x45c58f([0x2e])+_0x3f7ec0),_0x58bf51=window[_0x45c58f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45c58f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58bf51)return;const _0x2d1037=await _0x58bf51[_0x45c58f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45c58f([0x6a,0x77,0x6b]),_0xc006eb,{[_0x45c58f([0x6e,0x61,0x6d,0x65])]:_0x45c58f([0x45,0x43,0x44,0x53,0x41]),[_0x45c58f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45c58f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45c58f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58bf51[_0x45c58f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45c58f([0x6e,0x61,0x6d,0x65])]:_0x45c58f([0x45,0x43,0x44,0x53,0x41]),[_0x45c58f([0x68,0x61,0x73,0x68])]:{[_0x45c58f([0x6e,0x61,0x6d,0x65])]:_0x45c58f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d1037,_0x15e06f,_0x2a3f20)||(_0x28cdb1=!0x1);}}function _0x2c4cbd(_0x1215b8){return _0x1215b8[_0x45c58f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45c58f([0x65,0x79]))?JSON[_0x45c58f([0x70,0x61,0x72,0x73,0x65])](_0x2f65e5(_0x1215b8)):null;}function _0x2f65e5(_0xc50d5){return window[_0x45c58f([0x61,0x74,0x6f,0x62])](_0xc50d5[_0x45c58f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45c58f([0x2b]))[_0x45c58f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45c58f([0x2f])));}function _0x5bfed9(_0x438ed5){let _0x51c5e4=0x1505;function _0x2472c5(_0x1aedf0){for(let _0x3873ee=0x0;_0x3873ee<_0x1aedf0[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3873ee++){const _0x248b9b=_0x1aedf0[_0x45c58f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3873ee);_0x51c5e4=(_0x51c5e4<<0x5)+_0x51c5e4+_0x248b9b,_0x51c5e4&=_0x51c5e4;}}function _0x2f3c79(_0x2722d6){Array[_0x45c58f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2722d6)?_0x2722d6[_0x45c58f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f3c79):_0x2722d6&&typeof _0x2722d6==_0x45c58f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45c58f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2722d6)[_0x45c58f([0x73,0x6f,0x72,0x74])]()[_0x45c58f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c1b88,_0x3cc759])=>{_0x2472c5(_0x2c1b88),_0x2f3c79(_0x3cc759);}):_0x2472c5(window[_0x45c58f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2722d6));}return _0x2f3c79(_0x438ed5),_0x51c5e4>>>0x0;}function _0x3bca9e(_0x11e6b5){return _0x11e6b5[_0x45c58f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45c58f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45c58f([0x30]));}function _0x2614e4(_0x115b02){return _0x115b02[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45c58f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45c58f([0x6a,0x6f,0x69,0x6e])]('');}function _0x3699be(){}function _0x45c58f(_0x42d79a){return _0x42d79a['map'](_0x25881a=>String['fromCharCode'](_0x25881a))['join']('');}_0x13c52d(await _0x166f0e());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x15bfd4=_0xeeb8b6=>function(_0x1ab776,_0x563f96){const t=_0x1ab776['t'],_0x299e22=_0x1ab776['t'];switch(_0x563f96){case'AI\x20Assistant':return _0x299e22('AI\x20Assistant');case'Block\x20quote':return _0x299e22('Block\x20quote');case'Bulleted\x20List':return _0x299e22('Bulleted\x20List');case'Insert\x20code\x20block':return _0x299e22('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x299e22('Open\x20file\x20manager');case'Insert\x20image':return _0x299e22('Insert\x20image');case'Heading\x201':return _0x299e22('Heading\x201');case'Heading\x202':return _0x299e22('Heading\x202');case'Heading\x203':return _0x299e22('Heading\x203');case'Heading\x204':return _0x299e22('Heading\x204');case'Heading\x205':return _0x299e22('Heading\x205');case'Heading\x206':return _0x299e22('Heading\x206');case'Horizontal\x20line':return _0x299e22('Horizontal\x20line');case'Insert\x20HTML':return _0x299e22('Insert\x20HTML');case'Increase\x20indent':return _0x299e22('Increase\x20indent');case'Insert\x20table':return _0x299e22('Insert\x20table');case'Table\x20of\x20contents':return _0x299e22('Table\x20of\x20contents');case'Numbered\x20List':return _0x299e22('Numbered\x20List');case'Decrease\x20indent':return _0x299e22('Decrease\x20indent');case'Paragraph':return _0x299e22('Paragraph');case'To-do\x20List':return _0x299e22('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x563f96;}}(this['editor']['locale'],_0xeeb8b6);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x4eda46,'title':_0x15bfd4('AI\x20Assistant'),'description':_0x15bfd4('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x503143=>{setTimeout(()=>_0x503143['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x122c8f,'title':_0x15bfd4('Block\x20quote'),'description':_0x15bfd4('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x5f1015,'title':_0x15bfd4('Bulleted\x20List'),'description':_0x15bfd4('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x2b68f0,'title':_0x15bfd4('Insert\x20code\x20block'),'description':_0x15bfd4('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x3bb381,'title':_0x15bfd4('Open\x20file\x20manager'),'description':_0x15bfd4('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x3bb381,'title':_0x15bfd4('Insert\x20image'),'description':_0x15bfd4('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x289b7b,'title':_0x15bfd4('Emoji'),'description':_0x15bfd4('Insert\x20an\x20emoji'),'execute':_0x28f8c7=>{setTimeout(()=>_0x28f8c7['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0xbfe048,'title':_0x15bfd4('Heading\x201'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x201'),'execute':_0x304955=>{_0x304955['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x1b9b85,'title':_0x15bfd4('Heading\x202'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x202'),'execute':_0x282fa2=>{_0x282fa2['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x3d5ed2,'title':_0x15bfd4('Heading\x203'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x203'),'execute':_0x1125f9=>{_0x1125f9['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x499532,'title':_0x15bfd4('Heading\x204'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x204'),'execute':_0x3a7fc3=>{_0x3a7fc3['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x2c61c6,'title':_0x15bfd4('Heading\x205'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x205'),'execute':_0x591b5c=>{_0x591b5c['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x42c041,'title':_0x15bfd4('Heading\x206'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x206'),'execute':_0x502793=>{_0x502793['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x393331,'title':_0x15bfd4('Horizontal\x20line'),'description':_0x15bfd4('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x12b458,'title':_0x15bfd4('Insert\x20HTML'),'description':_0x15bfd4('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x240796,'title':_0x15bfd4('Increase\x20indent'),'description':_0x15bfd4('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x15bfd4('Insert\x20Mermaid\x20diagram'),'description':_0x15bfd4('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x5c8169,'title':_0x15bfd4('Insert\x20table'),'description':_0x15bfd4('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x2ad964,'title':_0x15bfd4('Table\x20of\x20contents'),'description':_0x15bfd4('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x4884c2,'title':_0x15bfd4('Numbered\x20List'),'description':_0x15bfd4('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x2faca1,'title':_0x15bfd4('Decrease\x20indent'),'description':_0x15bfd4('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x2b7999,'title':_0x15bfd4('Paragraph'),'description':_0x15bfd4('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x18272c,'title':_0x15bfd4('To-do\x20List'),'description':_0x15bfd4('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x54b401,'title':_0x15bfd4('Footnote'),'description':_0x15bfd4('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x169566){return _0x169566['isEnabled']?_0x169566['isEnabled'](this['editor']):!_0x169566['commandName']||this['editor']['commands']['get'](_0x169566['commandName'])['isEnabled'];}['_proxyExecute'](_0x50a131){if(_0x50a131['execute'])_0x50a131['execute'](this['editor']);else{if(!_0x50a131['commandName'])throw new _0x279201('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x50a131});this['editor']['execute'](_0x50a131['commandName']);}}}function S(_0x333583,_0x43b8d8){return _0x333583['title']<_0x43b8d8['title']?-0x1:_0x333583['title']>_0x43b8d8['title']?0x1:0x0;}function O(_0x227bb5,_0x5ed4d1){return _0x5ed4d1+'-'+_0x227bb5['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x4a4149{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x551d1a){const _0x59f310=_0x551d1a&&_0x551d1a['toLowerCase']();let _0x5d448d=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x5d448d=_0x5d448d['filter'](_0x43b504=>_0x43b504['isEnabled']()),_0x59f310){const _0x4e373f=[],_0x4c4345=[],_0x32ac7e=[],_0x233eed=[];for(const _0x1f8f35 of _0x5d448d)_0x1f8f35['id']['toLowerCase']()['includes'](_0x59f310)?_0x4e373f['push'](_0x1f8f35):_0x1f8f35['title']['toLowerCase']()['includes'](_0x59f310)?_0x4c4345['push'](_0x1f8f35):_0x1f8f35['aliases']&&_0x1f8f35['aliases']['some'](_0x45944e=>_0x45944e['toLowerCase']()['includes'](_0x59f310))?_0x32ac7e['push'](_0x1f8f35):_0x1f8f35['description']&&_0x1f8f35['description']['toLowerCase']()['includes'](_0x59f310)&&_0x233eed['push'](_0x1f8f35);_0x5d448d=_0x4e373f['concat'](_0x4c4345,_0x32ac7e,_0x233eed);}return _0x5d448d;}}class SlashCommandButtonView extends _0x1666dd{constructor(_0x189acf,_0x46c7e1){super(_0x189acf),this['textPartView']=this['_createTextPartView'](_0x189acf,_0x46c7e1),void 0x0!==_0x46c7e1['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x46c7e1['isIconColorInherited']),this['set']({'icon':_0x46c7e1['icon']||_0x194784,'withText':!0x0,'label':_0x46c7e1['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x270887,_0x53c31e){const _0x335114=new _0x33c86f(_0x270887);return _0x335114['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x53c31e['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x53c31e['description']}]}]:[this['labelView']]}),_0x335114;}}class SlashCommandUI extends _0x4a4149{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x446339){super(_0x446339),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4cc713=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x585df7;for(const _0x220914 in _0x4cc713){const _0x425ae8=_0x220914,_0x490e7a=_0x4cc713[_0x425ae8];if('slashCommandLicenseKeyValid'==_0x490e7a||'slashCommandLicenseKeyInvalid'==_0x490e7a||'slashCommandLicenseKeyExpired'==_0x490e7a||'slashCommandLicenseKeyDomainLimit'==_0x490e7a||'slashCommandLicenseKeyNotAllowed'==_0x490e7a||'slashCommandLicenseKeyEvaluationLimit'==_0x490e7a||'slashCommandLicenseKeyUsageLimit'==_0x490e7a){delete _0x4cc713[_0x425ae8],_0x585df7=_0x490e7a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x585df7&&_0x4cc713['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x585df7&&_0x4cc713['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x585df7&&_0x4cc713['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x585df7&&_0x4cc713['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x585df7&&_0x4cc713['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x585df7&&_0x4cc713['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x43eedd=this['editor'],_0x218469=this['editor']['plugins']['get']('SlashCommandEditing'),_0x37f591=_0x43eedd['config']['get']('mention.feeds');_0x37f591['push']({'marker':'/','feed':_0xcffbc6=>_0x218469['getMatchingCommands'](_0xcffbc6),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x43eedd['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x43eedd['config']['set']('mention.feeds',_0x37f591);}['_overrideMentionExecuteListener'](){const _0x460bb9=this['editor'];_0x460bb9['commands']['get']('mention')['on']('execute',(_0x18ad1f,_0x4d1be9)=>{const _0x487ba5=_0x4d1be9[0x0],_0x4ca52a=_0x460bb9['model'];'/'===_0x487ba5['marker']&&_0x4ca52a['change'](_0x2701ab=>{_0x2701ab['remove'](_0x487ba5['range']),_0x487ba5['mention']['execute'](),_0x18ad1f['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x411203){const _0x53d82b=this['editor']['locale'],_0x30fa30=new SlashCommandButtonView(_0x53d82b,_0x411203);return _0x30fa30['render'](),_0x30fa30['element'];}}class SlashCommand extends _0x4a4149{static get['requires'](){return[_0x3fe898,SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI};
23
+ import{Plugin as _0x59521b}from'@ckeditor/ckeditor5-core';import{Mention as _0x30e252}from'@ckeditor/ckeditor5-mention';import{CKEditorError as _0x5c1de1,uid as _0x45f9e0}from'@ckeditor/ckeditor5-utils';import{IconBrowseFiles as _0x396cb8,IconBulletedList as _0x592979,IconCodeBlock as _0x414e69,IconEmoji as _0x3e7779,IconFootnote as _0x1f5619,IconHeading1 as _0x124667,IconHeading2 as _0x223e69,IconHeading3 as _0x36987c,IconHeading4 as _0x260541,IconHeading5 as _0x2d05d2,IconHeading6 as _0xf91cbf,IconHorizontalLine as _0x29ba52,IconHtml as _0x1195fa,IconIndent as _0xf88175,IconNumberedList as _0x473175,IconOutdent as _0x135bc3,IconParagraph as _0x26ca32,IconPlay as _0x4beb22,IconQuote as _0x1dd0d3,IconRobotPencil as _0x201eec,IconTable as _0x3a1377,IconTableOfContents as _0x52e7f0,IconTodoList as _0x239913}from'@ckeditor/ckeditor5-icons';import{ButtonView as _0x5378b8,View as _0x22dc31}from'@ckeditor/ckeditor5-ui';var O=class extends _0x59521b{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35696b){super(_0x35696b),this['_allowedCommands']=null;}afterInit(){const _0x6a6eaa=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x1b9f00=function(_0x41ce2f){let _0x264e79=['heading4','heading5','heading6'];if(_0x41ce2f){const _0x504808=_0x41ce2f['map'](_0x38c439=>_0x38c439['model']);_0x264e79=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x529e49=>!_0x504808['includes'](_0x529e49));}return _0x264e79;}(this['editor']['config']['get']('heading.options'));let _0x21bf39=this['getDefaultCommands']()['filter'](_0x4ee863=>!_0x1b9f00['includes'](_0x4ee863['id']))['filter'](_0x4385a6=>!_0x6a6eaa['includes'](_0x4385a6['commandName']));const _0x25b145=this['editor']['config']['get']('slashCommand.extraCommands');_0x25b145&&_0x25b145['length']&&(_0x21bf39=_0x21bf39['concat'](_0x25b145));const _0x3948e2=this['editor']['config']['get']('template.definitions');_0x3948e2&&_0x3948e2['length']&&(_0x21bf39=_0x21bf39['concat'](function(_0x277f2b){return _0x277f2b['map'](_0x5c4785=>{const {title:_0x30e9d7,icon:_0xcb50d4,description:_0x17bfc9,data:_0x51605a}=_0x5c4785,_0x34708d={'id':P(_0x30e9d7,'template'),'commandName':'insertTemplate','execute':_0x117a85=>{_0x117a85['execute']('insertTemplate',_0x51605a);},'description':_0x17bfc9,'icon':_0xcb50d4,'title':_0x30e9d7};return _0xcb50d4&&(_0x34708d['isIconColorInherited']=!0x1),_0x34708d;});}(_0x3948e2)));const _0x16a358=this['editor']['config']['get']('style.definitions');_0x16a358&&_0x16a358['length']&&(_0x21bf39=_0x21bf39['concat'](function(_0xbf5ddc){return _0xbf5ddc['map'](_0x108637=>({'id':P(_0x108637['name'],'style'),'commandName':'style','execute':_0x241613=>{_0x241613['execute']('style',{'styleName':_0x108637['name']});},'isEnabled':_0x40a879=>{const _0x416ca3=_0x40a879['commands']['get']('style');return _0x416ca3['isEnabled']&&_0x416ca3['enabledStyles']['includes'](_0x108637['name']);},'title':_0x108637['name']}));}(_0x16a358)));const _0x5ddf96=_0x21bf39['filter'](_0x347867=>!_0x347867['commandName']||void 0x0!==this['editor']['commands']['get'](_0x347867['commandName'])),_0x1877e5=[];for(const _0x425f2d of _0x5ddf96)_0x1877e5['push']({'id':_0x425f2d['id'],'commandName':_0x425f2d['commandName'],'title':'function'==typeof _0x425f2d['title']?_0x425f2d['title'](this['editor']):_0x425f2d['title'],'description':_0x425f2d['description'],'icon':_0x425f2d['icon'],'isIconColorInherited':_0x425f2d['isIconColorInherited'],'aliases':_0x425f2d['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x425f2d),'execute':()=>this['_proxyExecute'](_0x425f2d)});this['_allowedCommands']=_0x1877e5['sort'](E),async function(_0x496bb7){const _0x2a9164='5goNZRxHzmBfrl0Fq6Cks1ahDGS2LUEWiby3wKvu4IVPdeT8jn9MOQJtcAY7Xp',_0x16e15a=0x79710,_0x4c5f56={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x22aba4(_0x43112d){const _0x2471a1=new window['Promise'](_0x2eb707=>{_0x43112d['once']('ready',_0x2eb707);}),_0x12d20c=window['Date']['now'](),_0x1a49ad=_0x43112d['config']['get']('licenseKey');async function _0x13af7a(){let _0x5a20b4,_0x155087=null,_0x1bfe96=null;try{return'GPL'==_0x1a49ad?'NotAllowed':(_0x5a20b4=_0x2f63d4(),_0x5a20b4?(_0x5a20b4['usageEndpoint']&&(_0x1bfe96=_0x2b1f39(_0x5a20b4['usageEndpoint'],_0x5a20b4['jti'])),await _0x202618()?_0x5112ea()?_0x4c3994()?'Expired':_0xde86a()?('evaluation'==_0x5a20b4['licenseType']&&(_0x155087=_0x2a0ed2('EvaluationLimit')),await _0x523a2f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4c3994(){const _0x40f114=['evaluation','trial']['includes'](_0x5a20b4['licenseType'])?_0x12d20c/0x3e8:0xe10*_0x16e15a;return _0x5a20b4['exp']<_0x40f114;}function _0x5112ea(){const _0x4ca51d=_0x5a20b4['features'];return!!_0x4ca51d&&(!!_0x4ca51d['includes']('*')||(!!_0x4ca51d['includes']('SC')||(!!_0x4ca51d['includes']('PP')||!(!_0x4ca51d['includes']('TRILIUM')||!_0x5bd240()))));}function _0xde86a(){const _0x1b6674=_0x5a20b4['licensedHosts'];if(!_0x1b6674||0x0==_0x1b6674['length'])return!0x0;const {hostname:_0x2791d0}=new URL(window['location']['href']);if(_0x1b6674['includes'](_0x2791d0))return!0x0;const _0x3aa05d=_0x2791d0['split']('.');return _0x1b6674['filter'](_0x184559=>_0x184559['includes']('*'))['map'](_0x308086=>_0x308086['split']('.'))['filter'](_0x2b5029=>_0x2b5029['length']<=_0x3aa05d['length'])['map'](_0x38faeb=>Array(_0x3aa05d['length']-_0x38faeb['length'])['fill']('*'===_0x38faeb[0x0]?'*':'')['concat'](_0x38faeb))['some'](_0x4cf338=>_0x3aa05d['every']((_0x2bac3e,_0x57fd7b)=>_0x4cf338[_0x57fd7b]===_0x2bac3e||'*'===_0x4cf338[_0x57fd7b]));}function _0x523a2f(){return _0x155087&&_0x1bfe96?new window['Promise']((_0x3418a3,_0x242682)=>{_0x155087['then'](_0x3418a3,_0x242682),_0x1bfe96['then'](_0x521e22=>{'Valid'!=_0x521e22&&_0x3418a3(_0x521e22);},_0x242682);}):_0x155087||_0x1bfe96||'Valid';}}function _0x2b1f39(_0x3de0cd,_0x3c5202){return new window['Promise'](_0x3eec44=>{if(_0x583429())return _0x3eec44('Valid');_0x5350f5(),_0x43112d['decorate']('_sendUsageRequest');let _0x55dbc7=!0x1;const _0x5fe3bc=_0x45f9e0();function _0x5285ce(_0x10438d){return!!_0x10438d&&('object'==typeof _0x10438d||'function'==typeof _0x10438d)&&'function'==typeof _0x10438d['then']&&'function'==typeof _0x10438d['catch'];}function _0x14eda9(_0x7601a1){_0x590d4f(_0x7601a1)['then'](_0x4f1d2d=>_0x4f1d2d&&'ok'==_0x4f1d2d['status']?_0x333ef9(_0x215398(_0x5fe3bc+_0x3c5202))!=_0x4f1d2d['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x307395=>(_0x70943(),_0x307395),()=>{const _0x19749f=_0x363c36();return null==_0x19749f?(_0x70943(),'Valid'):_0x12d20c-_0x19749f>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3eec44)['catch'](()=>{_0x3eec44('UsageLimit');});const _0x3a8224=0x36ee80;function _0x70943(){const _0x4b5f11='llct-'+_0x333ef9(_0x215398(_0x3de0cd)),_0x5cb417=_0x4a40a7(_0x333ef9(window['Math']['ceil'](_0x12d20c/_0x3a8224)));window['localStorage']['setItem'](_0x4b5f11,_0x5cb417);}function _0x363c36(){const _0x1940f8='llct-'+_0x333ef9(_0x215398(_0x3de0cd)),_0x4a3a49=window['localStorage']['getItem'](_0x1940f8);return _0x4a3a49?window['parseInt'](_0x4a40a7(_0x4a3a49),0x10)*_0x3a8224:null;}function _0x590d4f(_0x245a4e){return new window['Promise']((_0x56f601,_0x16b399)=>{_0x245a4e['then'](_0x56f601,_0x16b399),window['setTimeout'](_0x16b399,0x1d4c0);});}}_0x43112d['on']('_sendUsageRequest',(_0xf18640,_0x39158c)=>{if(_0x39158c[0x0]!=_0x3de0cd)return _0x3eec44('UsageLimit');_0x39158c[0x1]={..._0x39158c[0x1],'requestId':_0x5fe3bc};},{'priority':'high'}),_0x43112d['on']('_sendUsageRequest',_0x51b90b=>{_0x5285ce(_0x51b90b['return'])&&(_0x55dbc7=!0x0,_0x14eda9(_0x51b90b['return']));},{'priority':'low'}),_0x2471a1['then'](()=>{_0x55dbc7||_0x3eec44('UsageLimit');});});function _0x583429(){return'auto'==_0x43112d['editing']['view']['_overlayModeHint'];}function _0x5350f5(){_0x43112d['editing']['view']['_overlayModeHint']='auto';}}function _0x2a0ed2(_0x17eb29){const _0x1c6f5e=[new window['Promise'](_0x4c1bbd=>setTimeout(_0x4c1bbd,0x93ecc)),_0x2471a1['then'](()=>new window['Promise'](_0x1bb782=>{let _0x2e4d71=0x0;_0x43112d['model']['on']('applyOperation',(_0x1e8e7d,_0x5b5688)=>{_0x5b5688[0x0]['isDocumentOperation']&&_0x2e4d71++,0x5e8==_0x2e4d71&&(_0x1bb782(),_0x1e8e7d['off']());});}))];return window['Promise']['race'](_0x1c6f5e)['then'](()=>_0x17eb29);}async function _0x54a009(){await _0x2471a1,_0x43112d['model']['change']=_0x4de402,_0x43112d['model']['enqueueChange']=_0x4de402,_0x43112d['enableReadOnlyMode']('model');}function _0x5bd240(){return window['glob']&&window['glob']['triliumVersion'];}function _0x1db939(_0x22e233){const _0x19c8b9=_0x107d57();_0x43112d[_0x19c8b9]='slashCommandLicenseKey'+_0x22e233,'Valid'!=_0x22e233&&_0x54a009();}function _0x107d57(){const _0x1fa93d=window['String'](window['performance']['now']())['replace']('.','');let _0x1c5b40='g';for(let _0x5c705f=0x0;_0x5c705f<_0x1fa93d['length'];_0x5c705f+=0x2){let _0x217f59=window['parseInt'](_0x1fa93d['substring'](_0x5c705f,_0x5c705f+0x2));_0x217f59>=0x3e&&(_0x217f59-=0x3e),_0x1c5b40+=_0x2a9164[_0x217f59];}return _0x1c5b40;}function _0x2f63d4(){const _0x4151e2=_0x1a49ad['split']('.');if(0x3!=_0x4151e2['length'])return null;return _0x92da09(_0x4151e2[0x1]);function _0x92da09(_0x19751e){const _0x2d7008=_0x3e822f(_0x19751e);return _0x2d7008&&_0x1df5fe()?_0x2d7008:null;function _0x1df5fe(){const _0x4d45f2=_0x2d7008['jti'],_0x2d6225=window['parseInt'](_0x4d45f2['substring'](_0x4d45f2['length']-0x8),0x10),_0x20b441={..._0x2d7008,'jti':_0x4d45f2['substring'](0x0,_0x4d45f2['length']-0x8)};return delete _0x20b441['vc'],_0x215398(_0x20b441)==_0x2d6225;}}}async function _0x202618(){let _0x567cc6=!0x0;try{const [_0x236015,_0x2aa3eb,_0x5edbc4]=_0x1a49ad['split']('.');return _0x233584(_0x236015),await _0x471d4d(_0x236015,_0x2aa3eb,_0x5edbc4),_0x567cc6;}catch{return!0x1;}function _0x233584(_0x4eac53){const _0x3a44fa=_0x3e822f(_0x4eac53);_0x3a44fa&&'ES256'==_0x3a44fa['alg']||(_0x567cc6=!0x1);}async function _0x471d4d(_0x5a3a4c,_0x461736,_0x1215ba){const _0x58b92f=window['Uint8Array']['from'](_0x4334e9(_0x1215ba),_0x4d0e17=>_0x4d0e17['charCodeAt'](0x0)),_0x5ce1d8=new window['TextEncoder']()['encode'](_0x5a3a4c+'.'+_0x461736),_0x3759be=window['crypto']['subtle'];if(!_0x3759be)return;const _0x6346fd=await _0x3759be['importKey']('jwk',_0x4c5f56,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3759be['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x6346fd,_0x58b92f,_0x5ce1d8)||(_0x567cc6=!0x1);}}function _0x3e822f(_0x5b74e3){return _0x5b74e3['startsWith']('ey')?JSON['parse'](_0x4334e9(_0x5b74e3)):null;}function _0x4334e9(_0x3aa64b){return window['atob'](_0x3aa64b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x215398(_0x2d4f94){let _0x2313d2=0x1505;function _0x1e9dca(_0x428745){for(let _0x3c04d0=0x0;_0x3c04d0<_0x428745['length'];_0x3c04d0++){const _0x436cec=_0x428745['charCodeAt'](_0x3c04d0);_0x2313d2=(_0x2313d2<<0x5)+_0x2313d2+_0x436cec,_0x2313d2&=_0x2313d2;}}function _0x5d5bc3(_0x2e42c4){Array['isArray'](_0x2e42c4)?_0x2e42c4['forEach'](_0x5d5bc3):_0x2e42c4&&'object'==typeof _0x2e42c4?Object['entries'](_0x2e42c4)['sort']()['forEach'](([_0x36a785,_0x3273d7])=>{_0x1e9dca(_0x36a785),_0x5d5bc3(_0x3273d7);}):_0x1e9dca(window['String'](_0x2e42c4));}return _0x5d5bc3(_0x2d4f94),_0x2313d2>>>0x0;}function _0x333ef9(_0x588209){return _0x588209['toString'](0x10)['padStart'](0x8,'0');}function _0x4a40a7(_0x1793f2){return _0x1793f2['split']('')['reverse']()['join']('');}function _0x4de402(){}_0x1db939(await _0x13af7a());}_0x22aba4(_0x496bb7['editor']);}(this);}getAllowedCommands(){return this['_allowedCommands'];}getDefaultCommands(){const _0xc647dc=_0x31f186=>function(_0x183551,_0x2ad6b4){const t=_0x183551['t'],_0x5fbd22=_0x183551['t'];switch(_0x2ad6b4){case'AI\x20Assistant':return _0x5fbd22('AI\x20Assistant');case'Block\x20quote':return _0x5fbd22('Block\x20quote');case'Bulleted\x20List':return _0x5fbd22('Bulleted\x20List');case'Insert\x20code\x20block':return _0x5fbd22('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x5fbd22('Open\x20file\x20manager');case'Insert\x20image':return _0x5fbd22('Insert\x20image');case'Heading\x201':return _0x5fbd22('Heading\x201');case'Heading\x202':return _0x5fbd22('Heading\x202');case'Heading\x203':return _0x5fbd22('Heading\x203');case'Heading\x204':return _0x5fbd22('Heading\x204');case'Heading\x205':return _0x5fbd22('Heading\x205');case'Heading\x206':return _0x5fbd22('Heading\x206');case'Horizontal\x20line':return _0x5fbd22('Horizontal\x20line');case'Insert\x20HTML':return _0x5fbd22('Insert\x20HTML');case'Increase\x20indent':return _0x5fbd22('Increase\x20indent');case'Insert\x20table':return _0x5fbd22('Insert\x20table');case'Table\x20of\x20contents':return _0x5fbd22('Table\x20of\x20contents');case'Numbered\x20List':return _0x5fbd22('Numbered\x20List');case'Decrease\x20indent':return _0x5fbd22('Decrease\x20indent');case'Paragraph':return _0x5fbd22('Paragraph');case'To-do\x20List':return _0x5fbd22('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x2ad6b4;}}(this['editor']['locale'],_0x31f186);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x201eec,'title':_0xc647dc('AI\x20Assistant'),'description':_0xc647dc('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x3db569=>{setTimeout(()=>_0x3db569['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x1dd0d3,'title':_0xc647dc('Block\x20quote'),'description':_0xc647dc('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x592979,'title':_0xc647dc('Bulleted\x20List'),'description':_0xc647dc('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x414e69,'title':_0xc647dc('Insert\x20code\x20block'),'description':_0xc647dc('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x396cb8,'title':_0xc647dc('Open\x20file\x20manager'),'description':_0xc647dc('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x396cb8,'title':_0xc647dc('Insert\x20image'),'description':_0xc647dc('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x3e7779,'title':_0xc647dc('Emoji'),'description':_0xc647dc('Insert\x20an\x20emoji'),'execute':_0x2e46ea=>{setTimeout(()=>_0x2e46ea['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x124667,'title':_0xc647dc('Heading\x201'),'description':_0xc647dc('Create\x20a\x20heading\x20level\x201'),'execute':_0x7a77e6=>{_0x7a77e6['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x223e69,'title':_0xc647dc('Heading\x202'),'description':_0xc647dc('Create\x20a\x20heading\x20level\x202'),'execute':_0x8d0748=>{_0x8d0748['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x36987c,'title':_0xc647dc('Heading\x203'),'description':_0xc647dc('Create\x20a\x20heading\x20level\x203'),'execute':_0xca7735=>{_0xca7735['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x260541,'title':_0xc647dc('Heading\x204'),'description':_0xc647dc('Create\x20a\x20heading\x20level\x204'),'execute':_0x2b5310=>{_0x2b5310['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x2d05d2,'title':_0xc647dc('Heading\x205'),'description':_0xc647dc('Create\x20a\x20heading\x20level\x205'),'execute':_0x8c5c9c=>{_0x8c5c9c['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0xf91cbf,'title':_0xc647dc('Heading\x206'),'description':_0xc647dc('Create\x20a\x20heading\x20level\x206'),'execute':_0x5072dd=>{_0x5072dd['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x29ba52,'title':_0xc647dc('Horizontal\x20line'),'description':_0xc647dc('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x1195fa,'title':_0xc647dc('Insert\x20HTML'),'description':_0xc647dc('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0xf88175,'title':_0xc647dc('Increase\x20indent'),'description':_0xc647dc('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0xc647dc('Insert\x20Mermaid\x20diagram'),'description':_0xc647dc('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x3a1377,'title':_0xc647dc('Insert\x20table'),'description':_0xc647dc('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x52e7f0,'title':_0xc647dc('Table\x20of\x20contents'),'description':_0xc647dc('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x473175,'title':_0xc647dc('Numbered\x20List'),'description':_0xc647dc('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x135bc3,'title':_0xc647dc('Decrease\x20indent'),'description':_0xc647dc('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x26ca32,'title':_0xc647dc('Paragraph'),'description':_0xc647dc('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x239913,'title':_0xc647dc('To-do\x20List'),'description':_0xc647dc('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x1f5619,'title':_0xc647dc('Footnote'),'description':_0xc647dc('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0xe73615){return _0xe73615['isEnabled']?_0xe73615['isEnabled'](this['editor']):!_0xe73615['commandName']||this['editor']['commands']['get'](_0xe73615['commandName'])['isEnabled'];}_proxyExecute(_0x11f36a){if(_0x11f36a['execute'])_0x11f36a['execute'](this['editor']);else{if(!_0x11f36a['commandName'])throw new _0x5c1de1('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x11f36a});this['editor']['execute'](_0x11f36a['commandName']);}}};function E(_0x45a461,_0x532b2c){return _0x45a461['title']<_0x532b2c['title']?-0x1:_0x45a461['title']>_0x532b2c['title']?0x1:0x0;}function P(_0x2888c7,_0x25aea6){return _0x25aea6+'-'+_0x2888c7['toLowerCase']()['split']('\x20')['join']('-');}var K=class extends _0x59521b{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[O];}getMatchingCommands(_0xb243ef){const _0x437899=_0xb243ef&&_0xb243ef['toLowerCase']();let _0x56c276=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x56c276=_0x56c276['filter'](_0x150c2=>_0x150c2['isEnabled']()),_0x437899){const _0x14bc96=[],_0x27d88d=[],_0x3405ba=[],_0x2cc26d=[];for(const _0x3b4d86 of _0x56c276)_0x3b4d86['id']['toLowerCase']()['includes'](_0x437899)?_0x14bc96['push'](_0x3b4d86):_0x3b4d86['title']['toLowerCase']()['includes'](_0x437899)?_0x27d88d['push'](_0x3b4d86):_0x3b4d86['aliases']&&_0x3b4d86['aliases']['some'](_0x5488c5=>_0x5488c5['toLowerCase']()['includes'](_0x437899))?_0x3405ba['push'](_0x3b4d86):_0x3b4d86['description']&&_0x3b4d86['description']['toLowerCase']()['includes'](_0x437899)&&_0x2cc26d['push'](_0x3b4d86);_0x56c276=_0x14bc96['concat'](_0x27d88d,_0x3405ba,_0x2cc26d);}return _0x56c276;}},M=class extends _0x5378b8{constructor(_0x32727f,_0x522626){super(_0x32727f),this['textPartView']=this['_createTextPartView'](_0x32727f,_0x522626),void 0x0!==_0x522626['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x522626['isIconColorInherited']),this['set']({'icon':_0x522626['icon']||_0x4beb22,'withText':!0x0,'label':_0x522626['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}_createTextPartView(_0x10fe05,_0x108577){const _0x35961a=new _0x22dc31(_0x10fe05);return _0x35961a['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x108577['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x108577['description']}]}]:[this['labelView']]}),_0x35961a;}},S=class extends _0x59521b{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2adc06){super(_0x2adc06),this['_setupMentionConfiguration']();}init(){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x106c88=[this['editor']];for(const _0x3689e2 of _0x106c88){let _0x2bd68d;for(const _0xe63ad6 in _0x3689e2){const _0x5662db=_0xe63ad6,_0x43d54f=_0x3689e2[_0x5662db];if('slashCommandLicenseKeyValid'==_0x43d54f||'slashCommandLicenseKeyInvalid'==_0x43d54f||'slashCommandLicenseKeyExpired'==_0x43d54f||'slashCommandLicenseKeyDomainLimit'==_0x43d54f||'slashCommandLicenseKeyNotAllowed'==_0x43d54f||'slashCommandLicenseKeyEvaluationLimit'==_0x43d54f||'slashCommandLicenseKeyUsageLimit'==_0x43d54f){delete _0x3689e2[_0x5662db],_0x2bd68d=_0x43d54f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x2bd68d&&_0x3689e2['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x2bd68d&&_0x3689e2['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x2bd68d&&_0x3689e2['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x2bd68d&&_0x3689e2['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x2bd68d&&_0x3689e2['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x2bd68d&&_0x3689e2['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_setupMentionConfiguration(){const _0x1310b9=this['editor'],_0x530182=this['editor']['plugins']['get']('SlashCommandEditing'),_0x45c30f=_0x1310b9['config']['get']('mention.feeds');_0x45c30f['push']({'marker':'/','feed':_0x2fbb9a=>_0x530182['getMatchingCommands'](_0x2fbb9a),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x1310b9['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x1310b9['config']['set']('mention.feeds',_0x45c30f);}_overrideMentionExecuteListener(){const _0x5a4c61=this['editor'];_0x5a4c61['commands']['get']('mention')['on']('execute',(_0x156349,_0x2e83a9)=>{const _0x4b802b=_0x2e83a9[0x0],_0x5cf871=_0x5a4c61['model'];'/'===_0x4b802b['marker']&&_0x5cf871['change'](_0x31cbb2=>{_0x31cbb2['remove'](_0x4b802b['range']),_0x4b802b['mention']['execute'](),_0x156349['stop']();});},{'priority':'high'});}_customItemRenderer(_0x5cff66){const _0x5e3d5a=this['editor']['locale'],_0x177edb=new M(_0x5e3d5a,_0x5cff66);return _0x177edb['render'](),_0x177edb['element'];}},D=class extends _0x59521b{static get requires(){return[_0x30e252,K,S];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{D as SlashCommand,O as SlashCommandConfig,K as SlashCommandEditing,S as SlashCommandUI};
@@ -1,5 +1 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  export {};
@@ -1,38 +1,38 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module slash-command/slashcommand
7
- * @publicApi
8
- */
9
- import { Plugin } from '@ckeditor/ckeditor5-core';
10
- import { Mention } from '@ckeditor/ckeditor5-mention';
11
- import { SlashCommandEditing } from './slashcommandediting.js';
12
- import { SlashCommandUI } from './slashcommandui.js';
6
+ * @module slash-command/slashcommand
7
+ * @publicApi
8
+ */
9
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
10
+ import { Mention } from "@ckeditor/ckeditor5-mention";
11
+ import { SlashCommandEditing } from "./slashcommandediting.js";
12
+ import { SlashCommandUI } from "./slashcommandui.js";
13
13
  /**
14
- * The slash command feature.
15
- * It allows for an easy access to a predefined list of editor commands by typing `/` inside the editor.
16
- *
17
- * For a detailed overview, check the {@glink features/slash-commands Slash command} feature guide.
18
- *
19
- * @extends module:core/plugin~Plugin
20
- */
14
+ * The slash command feature.
15
+ * It allows for an easy access to a predefined list of editor commands by typing `/` inside the editor.
16
+ *
17
+ * For a detailed overview, check the {@glink features/slash-commands Slash command} feature guide.
18
+ *
19
+ * @extends module:core/plugin~Plugin
20
+ */
21
21
  export declare class SlashCommand extends Plugin {
22
- /**
23
- * @inheritDoc
24
- */
25
- static get requires(): readonly [typeof Mention, typeof SlashCommandEditing, typeof SlashCommandUI];
26
- /**
27
- * @inheritDoc
28
- */
29
- static get pluginName(): "SlashCommand";
30
- /**
31
- * @inheritDoc
32
- */
33
- static get isOfficialPlugin(): true;
34
- /**
35
- * @inheritDoc
36
- */
37
- static get isPremiumPlugin(): true;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get requires(): PluginDependenciesOf<[Mention, SlashCommandEditing, SlashCommandUI]>;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get pluginName(): "SlashCommand";
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ static override get isOfficialPlugin(): true;
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ static override get isPremiumPlugin(): true;
38
38
  }