@ckeditor/ckeditor5-case-change 48.2.0-alpha.7 → 48.3.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.
- package/dist/augmentation.d.ts +16 -16
- package/dist/casechange.d.ts +110 -110
- package/dist/casechangecommand.d.ts +25 -25
- package/dist/casechangeediting.d.ts +28 -28
- package/dist/casechangeui.d.ts +29 -29
- package/dist/index.d.ts +11 -11
- package/dist/index.js +1 -1
- package/dist/legacyerrors.d.ts +0 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/common-translations.d.ts +6 -6
- package/package.json +6 -6
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { CaseChange, CaseChangeEditing, CaseChangeUI, CaseChangeCommand, CaseChangeConfig } from
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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 { CaseChange, CaseChangeEditing, CaseChangeUI, CaseChangeCommand, CaseChangeConfig } from "./index.js";
|
|
6
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
caseChange?: CaseChangeConfig;
|
|
9
|
+
}
|
|
10
|
+
interface PluginsMap {
|
|
11
|
+
[CaseChange.pluginName]: CaseChange;
|
|
12
|
+
[CaseChangeEditing.pluginName]: CaseChangeEditing;
|
|
13
|
+
[CaseChangeUI.pluginName]: CaseChangeUI;
|
|
14
|
+
}
|
|
15
|
+
interface CommandsMap {
|
|
16
|
+
caseChange: CaseChangeCommand;
|
|
17
|
+
}
|
|
18
18
|
}
|
package/dist/casechange.d.ts
CHANGED
|
@@ -1,126 +1,126 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { CaseChangeEditing } from
|
|
11
|
-
import { CaseChangeUI } from
|
|
6
|
+
* @module case-change/casechange
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { CaseChangeEditing } from "./casechangeediting.js";
|
|
11
|
+
import { CaseChangeUI } from "./casechangeui.js";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
* The case change feature.
|
|
14
|
+
*
|
|
15
|
+
* For a detailed overview, check the {@glink features/case-change Case change} feature guide.
|
|
16
|
+
*/
|
|
17
17
|
export declare class CaseChange extends Plugin {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get requires(): PluginDependenciesOf<[CaseChangeEditing, CaseChangeUI]>;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName(): "CaseChange";
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static override get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static override get isPremiumPlugin(): true;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
36
|
+
* The configuration of the {@link module:case-change/casechange~CaseChange case change feature}.
|
|
37
|
+
*
|
|
38
|
+
* ```ts
|
|
39
|
+
* ClassicEditor
|
|
40
|
+
* .create( {
|
|
41
|
+
* caseChange: ... // Case change feature configuration.
|
|
42
|
+
* } )
|
|
43
|
+
* .then( /* ... *\/ )
|
|
44
|
+
* .catch( /* ... *\/ );
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
48
|
+
*/
|
|
49
49
|
export interface CaseChangeConfig {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Title case configuration.
|
|
52
|
+
*/
|
|
53
|
+
titleCase?: CaseChangeTitleCaseConfig;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
56
|
+
* Title case configuration.
|
|
57
|
+
* It allows setting words that should not be capitalized when formatted as title case.
|
|
58
|
+
*
|
|
59
|
+
* ```ts
|
|
60
|
+
* ClassicEditor
|
|
61
|
+
* .create( {
|
|
62
|
+
* caseChange: {
|
|
63
|
+
* titleCase {
|
|
64
|
+
* excludeWords: [ 'a', 'an', 'the' ]
|
|
65
|
+
* }
|
|
66
|
+
* }
|
|
67
|
+
* } )
|
|
68
|
+
* .then( /* ... *\/ )
|
|
69
|
+
* .catch( /* ... *\/ );
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* ```ts
|
|
73
|
+
* ClassicEditor
|
|
74
|
+
* .create( {
|
|
75
|
+
* caseChange: {
|
|
76
|
+
* titleCase {
|
|
77
|
+
* excludeWords: ( word ) => [ 'a', 'an', 'the' ].includes( word )
|
|
78
|
+
* }
|
|
79
|
+
* }
|
|
80
|
+
* } )
|
|
81
|
+
* .then( /* ... *\/ )
|
|
82
|
+
* .catch( /* ... *\/ );
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* ```ts
|
|
86
|
+
* ClassicEditor
|
|
87
|
+
* .create( {
|
|
88
|
+
* caseChange: {
|
|
89
|
+
* titleCase {
|
|
90
|
+
* excludeWords: ( word, { wordIndex } ) => wordIndex > 0 && [ 'a', 'an', 'the' ].includes( word )
|
|
91
|
+
* }
|
|
92
|
+
* }
|
|
93
|
+
* } )
|
|
94
|
+
* .then( /* ... *\/ )
|
|
95
|
+
* .catch( /* ... *\/ );
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
99
|
+
*/
|
|
100
100
|
export interface CaseChangeTitleCaseConfig {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
/**
|
|
102
|
+
* Words which should not be capitalized.
|
|
103
|
+
*/
|
|
104
|
+
excludeWords?: Array<string> | CaseChangeExcludeWordsCallback;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
* The exclude word callback.
|
|
108
|
+
*/
|
|
109
109
|
export type CaseChangeExcludeWordsCallback = (word: string, context: CaseChangeExcludeWordsCallbackContext) => boolean;
|
|
110
110
|
/**
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
* The exclude word callback context.
|
|
112
|
+
*/
|
|
113
113
|
export interface CaseChangeExcludeWordsCallbackContext {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
114
|
+
/**
|
|
115
|
+
* The offset in the text where the given word starts.
|
|
116
|
+
*/
|
|
117
|
+
charOffset: number;
|
|
118
|
+
/**
|
|
119
|
+
* The word index in the given text.
|
|
120
|
+
*/
|
|
121
|
+
wordIndex: number;
|
|
122
|
+
/**
|
|
123
|
+
* The block text.
|
|
124
|
+
*/
|
|
125
|
+
blockText: string;
|
|
126
126
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Command, type Editor } from
|
|
6
|
+
* @module case-change/casechangecommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from "@ckeditor/ckeditor5-core";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* This command changes the case of the selected text.
|
|
12
|
+
*/
|
|
13
13
|
export declare class CaseChangeCommand extends Command {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new `CaseChangeCommand` instance.
|
|
16
|
+
*
|
|
17
|
+
* @param editor The editor on which this command will be used.
|
|
18
|
+
*/
|
|
19
|
+
constructor(editor: Editor, transformCallback: CaseChangeTransformCallback);
|
|
20
|
+
/**
|
|
21
|
+
* Transforms the selected text with the defined case change callback.
|
|
22
|
+
*
|
|
23
|
+
* @fires execute
|
|
24
|
+
*/
|
|
25
|
+
override execute(): void;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
override refresh(): void;
|
|
30
30
|
}
|
|
31
31
|
export type CaseChangeTransformCallback = (arg: string) => string;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
6
|
+
* @module case-change/casechangeediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* The case change editing feature. It introduces three commands: `changeCaseUpper`, `changeCaseLower`, and `changeCaseTitle`.
|
|
11
|
+
*/
|
|
12
12
|
export declare class CaseChangeEditing extends Plugin {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
static get pluginName(): "CaseChangeEditing";
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static override get isOfficialPlugin(): true;
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static override get isPremiumPlugin(): true;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
init(): void;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
afterInit(): void;
|
|
33
33
|
}
|
package/dist/casechangeui.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
6
|
+
* @module case-change/casechangeui
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* The case change UI plugin.
|
|
12
|
+
*/
|
|
13
13
|
export declare class CaseChangeUI extends Plugin {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get pluginName(): "CaseChangeUI";
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static override get isOfficialPlugin(): true;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static override get isPremiumPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
init(): void;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
override destroy(): void;
|
|
34
34
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
export { CaseChange, type CaseChangeConfig, type CaseChangeTitleCaseConfig, type CaseChangeExcludeWordsCallback, type CaseChangeExcludeWordsCallbackContext } from
|
|
9
|
-
export { CaseChangeEditing } from
|
|
10
|
-
export { CaseChangeUI } from
|
|
11
|
-
export { CaseChangeCommand } from
|
|
12
|
-
export type { CaseChangeTransformCallback } from
|
|
13
|
-
import
|
|
6
|
+
* @module case-change
|
|
7
|
+
*/
|
|
8
|
+
export { CaseChange, type CaseChangeConfig, type CaseChangeTitleCaseConfig, type CaseChangeExcludeWordsCallback, type CaseChangeExcludeWordsCallbackContext } from "./casechange.js";
|
|
9
|
+
export { CaseChangeEditing } from "./casechangeediting.js";
|
|
10
|
+
export { CaseChangeUI } from "./casechangeui.js";
|
|
11
|
+
export { CaseChangeCommand } from "./casechangecommand.js";
|
|
12
|
+
export type { CaseChangeTransformCallback } from "./casechangecommand.js";
|
|
13
|
+
import "./augmentation.js";
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x3ca836,Plugin as _0xe35c7d}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x3917ff,Collection as _0x20142d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x4eb330,MenuBarMenuListView as _0x318bd0,MenuBarMenuListItemView as _0x20737b,MenuBarMenuListItemButtonView as _0x5be109,createDropdown as _0x3101a8,addListToDropdown as _0x5bc317,UIModel as _0x2a5075}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x4e8e2b}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x3ca836{['_transformCallback'];constructor(_0x46e144,_0x563cd2){super(_0x46e144),this['_transformCallback']=_0x563cd2;}['execute'](){const _0x1d72bd=this['editor']['model'],_0x33e30a=Array['from'](this['_getAffectedRanges']()),_0x17c677=Array['from'](_0x1d72bd['document']['selection']['getRanges']());_0x1d72bd['change'](_0x3d59a3=>{for(const _0xb5323d of _0x33e30a)this['_modifyContent'](_0xb5323d,_0x3d59a3);_0x3d59a3['setSelection'](_0x17c677);});}['refresh'](){for(const _0x3279c3 of this['_getAffectedRanges']())for(const _0x2c76b8 of _0x3279c3)if(_0x2c76b8['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x3f7fcd=this['editor']['model'],_0xa7912e=_0x3f7fcd['document']['selection'];if(_0xa7912e['isCollapsed']){const _0x53e462=this['_findAncestorTextBlock'](_0xa7912e['getFirstPosition']()['parent']);return _0x53e462?[_0x3f7fcd['createRangeIn'](_0x53e462)]:[];}return _0xa7912e['getRanges']();}['_modifyContent'](_0x480ae8,_0x4df1fe){for(const _0x39539c of this['_getElementsAllowingText'](_0x480ae8)){const _0x4ddce4=this['_getElementTextContent'](_0x39539c),_0x57310e=this['_transformCallback'](_0x4ddce4);for(const _0x24b714 of this['_getTextNodesRangeLimited'](_0x39539c,_0x480ae8))this['_replaceTextNodeData'](_0x24b714,_0x57310e,_0x4df1fe);}}['_findAncestorTextBlock'](_0x39619d){const _0xea47d=this['editor']['model']['schema'];if(_0x39619d['is']('element')&&_0xea47d['checkChild'](_0x39619d,'$text'))return _0x39619d;const _0x5090f2=_0x39619d['parent'];return!_0x5090f2||_0xea47d['isLimit'](_0x39619d)?null:this['_findAncestorTextBlock'](_0x5090f2);}*['_getElementsAllowingText'](_0x206b74){const _0x3428f8=new Set();for(const {item:_0x453af7}of _0x206b74['getWalker']()){const _0x7bf79=this['_findAncestorTextBlock'](_0x453af7);_0x7bf79&&!_0x3428f8['has'](_0x7bf79)&&(_0x3428f8['add'](_0x7bf79),yield _0x7bf79);}}['_getElementTextContent'](_0x4b835b){return Array['from'](_0x4b835b['getChildren']())['reduce']((_0x56bf98,_0xf47fe6)=>_0x56bf98+(_0xf47fe6['is']('$text')?_0xf47fe6['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x5e894f,_0x1984b4){const _0x1783b7=_0x1984b4['getIntersection'](this['editor']['model']['createRangeIn'](_0x5e894f));if(_0x1783b7){for(const _0x341e6d of _0x1783b7['getItems']())_0x341e6d['is']('$textProxy')&&_0x341e6d['parent']==_0x5e894f&&(yield _0x341e6d);}}['_replaceTextNodeData'](_0x76cf3c,_0x20cad1,_0x3aa3f4){const _0x4007ea=_0x20cad1['substring'](_0x76cf3c['startOffset'],_0x76cf3c['endOffset']);if(_0x4007ea===_0x76cf3c['data'])return;const _0xf18207=_0x76cf3c['getAttributes']();this['editor']['model']['insertContent'](_0x3aa3f4['createText'](_0x4007ea,_0xf18207),_0x3aa3f4['createSelection'](_0x3aa3f4['createRangeOn'](_0x76cf3c)));}}function d(_0x1efd99,_0x481b60,..._0x21fe79){const t=_0x1efd99['t'];switch(_0x481b60){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x21fe79);default:return _0x481b60;}}class CaseChangeEditing extends _0xe35c7d{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xee0b90=this['editor'],_0x128d93=_0xee0b90['locale']['contentLanguage'],_0x3f49ad=function(_0x40e599=[]){return'function'==typeof _0x40e599?_0x40e599:(_0x5d217e,{wordIndex:_0x39e118})=>_0x39e118>0x0&&_0x40e599['includes'](_0x5d217e);}(_0xee0b90['config']['get']('caseChange.titleCase.excludeWords')),_0x69919b={'changeCaseUpper':new CaseChangeCommand(_0xee0b90,_0x471ad7=>_0x471ad7['toLocaleUpperCase'](_0x128d93)),'changeCaseLower':new CaseChangeCommand(_0xee0b90,_0x24c24=>_0x24c24['toLocaleLowerCase'](_0x128d93)),'changeCaseTitle':new CaseChangeCommand(_0xee0b90,_0xae12f2=>function(_0x20ba59,_0xfba811,_0x18c5c9){return function(_0x3667cd,_0xcd2de6){let _0x1e4619='',_0x4b497e=0x0,_0x4e1422=0x0;for(const _0x573e00 of _0x3667cd['matchAll'](/ +/g)){const _0x81650a=_0x573e00['index'],_0x12f89f=_0x3667cd['substring'](_0x4b497e,_0x81650a);_0x12f89f['length']&&(_0x1e4619+=_0xcd2de6(_0x12f89f,_0x4b497e,_0x4e1422++)),_0x1e4619+=_0x573e00[0x0],_0x4b497e=_0x81650a+_0x573e00[0x0]['length'];}const _0x1448bc=_0x3667cd['substring'](_0x4b497e);return _0x1448bc['length']&&(_0x1e4619+=_0xcd2de6(_0x1448bc,_0x4b497e,_0x4e1422)),_0x1e4619;}(_0x20ba59,(_0x43e18c,_0x20cfcf,_0x4a33dd)=>{const _0x5be80c=_0x43e18c['toLocaleLowerCase'](_0x18c5c9);return _0xfba811(_0x5be80c,{'charOffset':_0x20cfcf,'wordIndex':_0x4a33dd,'blockText':_0x20ba59})?_0x5be80c:_0x5be80c['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x4c440b=>_0x4c440b['toLocaleUpperCase'](_0x18c5c9));});}(_0xae12f2,_0x3f49ad,_0x128d93))};for(const [_0x506e88,_0x215150]of Object['entries'](_0x69919b))_0xee0b90['commands']['add'](_0x506e88,_0x215150),_0x215150['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x506e88);});this['listenTo'](_0xee0b90['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0xee0b90['keystrokes']['set']('shift+f3',(_0x53ab24,_0x34e51f)=>{const _0x52522d=g(this['editor']['locale']),_0x11edc4=_0x52522d[this['_currentCommandIndex']%_0x52522d['length']]['commandName'];_0xee0b90['execute'](_0x11edc4),this['_currentCommandIndex']++,_0x34e51f();});}['afterInit'](){!async function(_0x25e08c){const _0x3e946b=_0xb1a6c1([0x45,0x4d,0x44,0x53,0x33,0x64,0x73,0x4c,0x6f,0x4a,0x59,0x30,0x6e,0x62,0x65,0x39,0x63,0x6d,0x6c,0x43,0x72,0x58,0x79,0x61,0x5a,0x38,0x7a,0x70,0x50,0x71,0x4e,0x36,0x6a,0x78,0x54,0x68,0x66,0x37,0x67,0x77,0x42,0x69,0x32,0x4b,0x46,0x4f,0x56,0x55,0x57,0x52,0x41,0x47,0x31,0x34,0x48,0x51,0x49,0x6b,0x75,0x74,0x35,0x76]),_0xb8a497=0x334129cd,_0x6d17d2=0x3346a21d^_0xb8a497,_0x4d0063=window[_0xb1a6c1([0x44,0x61,0x74,0x65])][_0xb1a6c1([0x6e,0x6f,0x77])](),_0x363923=_0x25e08c[_0xb1a6c1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26ea21=new window[(_0xb1a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x354f51=>{_0x363923[_0xb1a6c1([0x6f,0x6e,0x63,0x65])](_0xb1a6c1([0x72,0x65,0x61,0x64,0x79]),_0x354f51);}),_0x5d464e={[_0xb1a6c1([0x6b,0x74,0x79])]:_0xb1a6c1([0x45,0x43]),[_0xb1a6c1([0x75,0x73,0x65])]:_0xb1a6c1([0x73,0x69,0x67]),[_0xb1a6c1([0x63,0x72,0x76])]:_0xb1a6c1([0x50,0x2d,0x32,0x35,0x36]),[_0xb1a6c1([0x78])]:_0xb1a6c1([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]),[_0xb1a6c1([0x79])]:_0xb1a6c1([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]),[_0xb1a6c1([0x61,0x6c,0x67])]:_0xb1a6c1([0x45,0x53,0x32,0x35,0x36])},_0x17b8c9=_0x363923[_0xb1a6c1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb1a6c1([0x67,0x65,0x74])](_0xb1a6c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb22b05(){let _0x400480,_0x2c07cb=null,_0x4cb5ad=null;try{if(_0x17b8c9==_0xb1a6c1([0x47,0x50,0x4c]))return _0xb1a6c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x400480=_0x35ba28(),!_0x400480)return _0xb1a6c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x400480[_0xb1a6c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4cb5ad=_0xb18011(_0x400480[_0xb1a6c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x400480[_0xb1a6c1([0x6a,0x74,0x69])])),await _0x9e996e()?_0x4db62f()?_0x1aa0d7()?_0xb1a6c1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe9287b()?(_0x400480[_0xb1a6c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb1a6c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c07cb=_0x10bca4(_0xb1a6c1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x83af9a()):_0xb1a6c1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb1a6c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb1a6c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb1a6c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1aa0d7(){const _0x444ff2=[_0xb1a6c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb1a6c1([0x74,0x72,0x69,0x61,0x6c])][_0xb1a6c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x400480[_0xb1a6c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d0063/0x3e8:0xe10*_0x6d17d2;return _0x400480[_0xb1a6c1([0x65,0x78,0x70])]<_0x444ff2;}function _0x4db62f(){const _0x382af7=_0x400480[_0xb1a6c1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x382af7&&(!!_0x382af7[_0xb1a6c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb1a6c1([0x2a]))||(!!_0x382af7[_0xb1a6c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb1a6c1([0x43,0x43]))||!!_0x382af7[_0xb1a6c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb1a6c1([0x50,0x50]))));}function _0xe9287b(){const _0x5a29b1=_0x400480[_0xb1a6c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a29b1||0x0==_0x5a29b1[_0xb1a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x26a038}=new URL(window[_0xb1a6c1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a29b1[_0xb1a6c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26a038))return!0x0;const _0x17635d=_0x26a038[_0xb1a6c1([0x73,0x70,0x6c,0x69,0x74])](_0xb1a6c1([0x2e]));return _0x5a29b1[_0xb1a6c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51b758=>_0x51b758[_0xb1a6c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb1a6c1([0x2a])))[_0xb1a6c1([0x6d,0x61,0x70])](_0x831275=>_0x831275[_0xb1a6c1([0x73,0x70,0x6c,0x69,0x74])](_0xb1a6c1([0x2e])))[_0xb1a6c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a839d=>_0x2a839d[_0xb1a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x17635d[_0xb1a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb1a6c1([0x6d,0x61,0x70])](_0xcc0efb=>Array(_0x17635d[_0xb1a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xcc0efb[_0xb1a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb1a6c1([0x66,0x69,0x6c,0x6c])](_0xcc0efb[0x0]===_0xb1a6c1([0x2a])?_0xb1a6c1([0x2a]):'')[_0xb1a6c1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xcc0efb))[_0xb1a6c1([0x73,0x6f,0x6d,0x65])](_0x3b2f9e=>_0x17635d[_0xb1a6c1([0x65,0x76,0x65,0x72,0x79])]((_0x5b6121,_0x45dd8f)=>_0x3b2f9e[_0x45dd8f]===_0x5b6121||_0x3b2f9e[_0x45dd8f]===_0xb1a6c1([0x2a])));}function _0x83af9a(){return _0x2c07cb&&_0x4cb5ad?new window[(_0xb1a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa4963e,_0x747d31)=>{_0x2c07cb[_0xb1a6c1([0x74,0x68,0x65,0x6e])](_0xa4963e,_0x747d31),_0x4cb5ad[_0xb1a6c1([0x74,0x68,0x65,0x6e])](_0x2f6fab=>{_0x2f6fab!=_0xb1a6c1([0x56,0x61,0x6c,0x69,0x64])&&_0xa4963e(_0x2f6fab);},_0x747d31);}):_0x2c07cb||_0x4cb5ad||_0xb1a6c1([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb18011(_0x4a2217,_0x507b39){return new window[(_0xb1a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18cc27=>{if(_0x48994c())return _0x18cc27(_0xb1a6c1([0x56,0x61,0x6c,0x69,0x64]));_0x22fc3a(),_0x363923[_0xb1a6c1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb1a6c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4f6ba=!0x1;const _0x1b166f=_0x3917ff();function _0x19a58b(_0x7f6303){return!!_0x7f6303&&(typeof _0x7f6303===_0xb1a6c1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7f6303===_0xb1a6c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7f6303[_0xb1a6c1([0x74,0x68,0x65,0x6e])]===_0xb1a6c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7f6303[_0xb1a6c1([0x63,0x61,0x74,0x63,0x68])]===_0xb1a6c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20beee(_0x26ae12){_0x4ab0c9(_0x26ae12)[_0xb1a6c1([0x74,0x68,0x65,0x6e])](_0x1088cc=>{if(!_0x1088cc||_0x1088cc[_0xb1a6c1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb1a6c1([0x6f,0x6b]))return _0xb1a6c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a0a1f(_0x23dc01(_0x1b166f+_0x507b39))!=_0x1088cc[_0xb1a6c1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb1a6c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb1a6c1([0x56,0x61,0x6c,0x69,0x64]);})[_0xb1a6c1([0x74,0x68,0x65,0x6e])](_0x4f073b=>(_0x5f1f4e(),_0x4f073b),()=>{const _0x1d213d=_0x1df2d7();return null==_0x1d213d?(_0x5f1f4e(),_0xb1a6c1([0x56,0x61,0x6c,0x69,0x64])):_0xb1a6c1(_0x4d0063-_0x1d213d>(0x174dadcd^_0xb8a497)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb1a6c1([0x74,0x68,0x65,0x6e])](_0x18cc27)[_0xb1a6c1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18cc27(_0xb1a6c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e0ed2=0x3377c74d^_0xb8a497;function _0x5f1f4e(){const _0x714def=_0xb1a6c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a0a1f(_0x23dc01(_0x4a2217)),_0xf1366b=_0x331c2b(_0x4a0a1f(window[_0xb1a6c1([0x4d,0x61,0x74,0x68])][_0xb1a6c1([0x63,0x65,0x69,0x6c])](_0x4d0063/_0x2e0ed2)));window[_0xb1a6c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb1a6c1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x714def,_0xf1366b);}function _0x1df2d7(){const _0x7e2f12=_0xb1a6c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a0a1f(_0x23dc01(_0x4a2217)),_0x4fe980=window[_0xb1a6c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb1a6c1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7e2f12);return _0x4fe980?window[_0xb1a6c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x331c2b(_0x4fe980),0x10)*_0x2e0ed2:null;}function _0x4ab0c9(_0x2f949d){return new window[(_0xb1a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f5067,_0x54f1ee)=>{_0x2f949d[_0xb1a6c1([0x74,0x68,0x65,0x6e])](_0x4f5067,_0x54f1ee),window[_0xb1a6c1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54f1ee,0x3340fd0d^_0xb8a497);});}}_0x363923[_0xb1a6c1([0x6f,0x6e])](_0xb1a6c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d6a36,_0x420c60)=>{if(_0x420c60[0x0]!=_0x4a2217)return _0x18cc27(_0xb1a6c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x420c60[0x1]={..._0x420c60[0x1],[_0xb1a6c1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b166f};},{[_0xb1a6c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb1a6c1([0x68,0x69,0x67,0x68])}),_0x363923[_0xb1a6c1([0x6f,0x6e])](_0xb1a6c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f66e3=>{_0x19a58b(_0x4f66e3[_0xb1a6c1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4f6ba=!0x0,_0x20beee(_0x4f66e3[_0xb1a6c1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb1a6c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb1a6c1([0x6c,0x6f,0x77])}),_0x26ea21[_0xb1a6c1([0x74,0x68,0x65,0x6e])](()=>{_0x4f6ba||_0x18cc27(_0xb1a6c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x48994c(){return _0x363923[_0xb1a6c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb1a6c1([0x76,0x69,0x65,0x77])][_0xb1a6c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb1a6c1([0x61,0x75,0x74,0x6f]);}function _0x22fc3a(){_0x363923[_0xb1a6c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb1a6c1([0x76,0x69,0x65,0x77])][_0xb1a6c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb1a6c1([0x61,0x75,0x74,0x6f]);}}function _0x10bca4(_0x2ebd41){const _0x289820=[new window[(_0xb1a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x424fde=>setTimeout(_0x424fde,0x33481701^_0xb8a497)),_0x26ea21[_0xb1a6c1([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb1a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45d711=>{let _0x5180c5=0x0;_0x363923[_0xb1a6c1([0x6d,0x6f,0x64,0x65,0x6c])][_0xb1a6c1([0x6f,0x6e])](_0xb1a6c1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x433845,_0x20590f)=>{_0x20590f[0x0][_0xb1a6c1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5180c5++,_0x5180c5==(0x33412c25^_0xb8a497)&&(_0x45d711(),_0x433845[_0xb1a6c1([0x6f,0x66,0x66])]());});}))];return window[_0xb1a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb1a6c1([0x72,0x61,0x63,0x65])](_0x289820)[_0xb1a6c1([0x74,0x68,0x65,0x6e])](()=>_0x2ebd41);}async function _0x1983b4(){await _0x26ea21,_0x363923[_0xb1a6c1([0x6d,0x6f,0x64,0x65,0x6c])][_0xb1a6c1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x280d09,_0x363923[_0xb1a6c1([0x6d,0x6f,0x64,0x65,0x6c])][_0xb1a6c1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x280d09,_0x363923[_0xb1a6c1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb1a6c1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x30461e(_0x2648d9){const _0x2f1fd4=_0x569ed1();_0x363923[_0x2f1fd4]=_0xb1a6c1([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2648d9,_0x2648d9!=_0xb1a6c1([0x56,0x61,0x6c,0x69,0x64])&&_0x1983b4();}function _0x569ed1(){const _0x5efae2=window[_0xb1a6c1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb1a6c1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb1a6c1([0x6e,0x6f,0x77])]())[_0xb1a6c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb1a6c1([0x2e]),'');let _0x3131fe=_0xb1a6c1([0x45]);for(let _0x33dd1c=0x0;_0x33dd1c<_0x5efae2[_0xb1a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33dd1c+=0x2){let _0x413410=window[_0xb1a6c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5efae2[_0xb1a6c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33dd1c,_0x33dd1c+0x2));_0x413410>=_0x3e946b[_0xb1a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x413410-=_0x3e946b[_0xb1a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3131fe+=_0x3e946b[_0x413410];}return _0x3131fe;}function _0x35ba28(){const _0x3ca183=_0x17b8c9[_0xb1a6c1([0x73,0x70,0x6c,0x69,0x74])](_0xb1a6c1([0x2e]));if(0x3!=_0x3ca183[_0xb1a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x75222a(_0x3ca183[0x1]);function _0x75222a(_0x3ecc3){const _0x5c478d=_0x3d0be5(_0x3ecc3);return _0x5c478d&&_0x428129()?_0x5c478d:null;function _0x428129(){const _0x2e42b5=_0x5c478d[_0xb1a6c1([0x6a,0x74,0x69])],_0x2ccb76=window[_0xb1a6c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e42b5[_0xb1a6c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e42b5[_0xb1a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d4ce2={..._0x5c478d,[_0xb1a6c1([0x6a,0x74,0x69])]:_0x2e42b5[_0xb1a6c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e42b5[_0xb1a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d4ce2[_0xb1a6c1([0x76,0x63])],_0x23dc01(_0x3d4ce2)==_0x2ccb76;}}}async function _0x9e996e(){let _0x1027f6=!0x0;try{const _0x7963f4=_0x17b8c9[_0xb1a6c1([0x73,0x70,0x6c,0x69,0x74])](_0xb1a6c1([0x2e])),[_0x31cf5a,_0x483e23,_0x501eef]=_0x7963f4;return _0x454114(_0x31cf5a),await _0x55c7fd(_0x31cf5a,_0x483e23,_0x501eef),_0x1027f6;}catch{return!0x1;}function _0x454114(_0x581898){const _0x160308=_0x3d0be5(_0x581898);_0x160308&&_0x160308[_0xb1a6c1([0x61,0x6c,0x67])]==_0xb1a6c1([0x45,0x53,0x32,0x35,0x36])||(_0x1027f6=!0x1);}async function _0x55c7fd(_0x2e213d,_0x3ba7e4,_0x4e73b7){const _0x4356fd=window[_0xb1a6c1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb1a6c1([0x66,0x72,0x6f,0x6d])](_0x18bf48(_0x4e73b7),_0x34d5e2=>_0x34d5e2[_0xb1a6c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e9c1d=new window[(_0xb1a6c1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb1a6c1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e213d+_0xb1a6c1([0x2e])+_0x3ba7e4),_0x2a8b5d=window[_0xb1a6c1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb1a6c1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a8b5d)return;const _0x5d0316=await _0x2a8b5d[_0xb1a6c1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb1a6c1([0x6a,0x77,0x6b]),_0x5d464e,{[_0xb1a6c1([0x6e,0x61,0x6d,0x65])]:_0xb1a6c1([0x45,0x43,0x44,0x53,0x41]),[_0xb1a6c1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb1a6c1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb1a6c1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a8b5d[_0xb1a6c1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb1a6c1([0x6e,0x61,0x6d,0x65])]:_0xb1a6c1([0x45,0x43,0x44,0x53,0x41]),[_0xb1a6c1([0x68,0x61,0x73,0x68])]:{[_0xb1a6c1([0x6e,0x61,0x6d,0x65])]:_0xb1a6c1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d0316,_0x4356fd,_0x2e9c1d)||(_0x1027f6=!0x1);}}function _0x3d0be5(_0x270b8f){return _0x270b8f[_0xb1a6c1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb1a6c1([0x65,0x79]))?JSON[_0xb1a6c1([0x70,0x61,0x72,0x73,0x65])](_0x18bf48(_0x270b8f)):null;}function _0x18bf48(_0x19ef8c){return window[_0xb1a6c1([0x61,0x74,0x6f,0x62])](_0x19ef8c[_0xb1a6c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb1a6c1([0x2b]))[_0xb1a6c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb1a6c1([0x2f])));}function _0x23dc01(_0x9c18f6){let _0x5748e6=0x1505;function _0x365c03(_0x327288){for(let _0x3f4a42=0x0;_0x3f4a42<_0x327288[_0xb1a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f4a42++){const _0x2acd03=_0x327288[_0xb1a6c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f4a42);_0x5748e6=(_0x5748e6<<0x5)+_0x5748e6+_0x2acd03,_0x5748e6&=_0x5748e6;}}function _0x2808b6(_0x2cd6a5){Array[_0xb1a6c1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2cd6a5)?_0x2cd6a5[_0xb1a6c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2808b6):_0x2cd6a5&&typeof _0x2cd6a5==_0xb1a6c1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb1a6c1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2cd6a5)[_0xb1a6c1([0x73,0x6f,0x72,0x74])]()[_0xb1a6c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x420311,_0x5e4fda])=>{_0x365c03(_0x420311),_0x2808b6(_0x5e4fda);}):_0x365c03(window[_0xb1a6c1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2cd6a5));}return _0x2808b6(_0x9c18f6),_0x5748e6>>>0x0;}function _0x4a0a1f(_0x336404){return _0x336404[_0xb1a6c1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb1a6c1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb1a6c1([0x30]));}function _0x331c2b(_0x523f55){return _0x523f55[_0xb1a6c1([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb1a6c1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb1a6c1([0x6a,0x6f,0x69,0x6e])]('');}function _0x280d09(){}function _0xb1a6c1(_0x597115){return _0x597115['map'](_0x14142c=>String['fromCharCode'](_0x14142c))['join']('');}_0x30461e(await _0xb22b05());}(this);}['_announceCaseChangeOperation'](_0x197335){const {ui:_0x9bc30a,locale:_0x3f93dd}=this['editor'],_0x3517a3=g(_0x3f93dd)['find'](_0x596c83=>_0x596c83['commandName']===_0x197335)['label']['toLowerCase']();_0x9bc30a['ariaLiveAnnouncer']['announce'](d(_0x3f93dd,'Changed\x20case\x20to\x20%0',_0x3517a3));}}function g(_0x17bae7){return[{'label':d(_0x17bae7,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x17bae7,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x17bae7,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0xe35c7d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x14e276=this['editor'];this['_registerComponents'](),_0x14e276['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x14e276['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xfe85d8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22af5b;for(const _0x13a9d7 in _0xfe85d8){const _0x5a8582=_0x13a9d7,_0x200b62=_0xfe85d8[_0x5a8582];if('caseChangeLicenseKeyValid'==_0x200b62||'caseChangeLicenseKeyInvalid'==_0x200b62||'caseChangeLicenseKeyExpired'==_0x200b62||'caseChangeLicenseKeyDomainLimit'==_0x200b62||'caseChangeLicenseKeyNotAllowed'==_0x200b62||'caseChangeLicenseKeyEvaluationLimit'==_0x200b62||'caseChangeLicenseKeyUsageLimit'==_0x200b62){delete _0xfe85d8[_0x5a8582],_0x22af5b=_0x200b62,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x22af5b&&_0xfe85d8['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x22af5b&&_0xfe85d8['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x22af5b&&_0xfe85d8['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x22af5b&&_0xfe85d8['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x22af5b&&_0xfe85d8['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x22af5b&&_0xfe85d8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x5f2900=this['editor'],{itemDefinitions:_0x352e13,commands:_0x43ca11}=this['_getListItemDefinitionsAndCommands']();_0x5f2900['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x352e13,_0x43ca11)),_0x5f2900['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x352e13,_0x43ca11));}['_createMenuBarMenuView'](_0xd19112,_0x144449){const _0x2529c4=this['editor'],_0x29bd17=_0x2529c4['locale'],_0x38a4ff=new _0x4eb330(_0x29bd17),_0x549973=new _0x318bd0(_0x29bd17);_0x549973['set']({'ariaLabel':d(_0x29bd17,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x38a4ff['buttonView']),_0x38a4ff['bind']('isEnabled')['toMany'](_0x144449,'isEnabled',(..._0xa12787)=>_0xa12787['some'](_0x9afac7=>_0x9afac7));for(const _0x5ef396 of _0xd19112){const _0x5d4838=new _0x20737b(_0x29bd17,_0x38a4ff),_0x2e8e08=new _0x5be109(_0x29bd17);_0x2e8e08['delegate']('execute')['to'](_0x38a4ff),_0x2e8e08['bind'](...Object['keys'](_0x5ef396['model']))['to'](_0x5ef396['model']),_0x2e8e08['on']('execute',()=>{_0x2529c4['execute'](_0x5ef396['model']['commandName']),_0x2529c4['editing']['view']['focus']();}),_0x5d4838['children']['add'](_0x2e8e08),_0x549973['items']['add'](_0x5d4838);}return _0x38a4ff['panelView']['children']['add'](_0x549973),_0x38a4ff;}['_createDropdownView'](_0x38bbb2,_0x5ed0b4){const _0x273b57=this['editor'],_0xc3445=_0x3101a8(_0x273b57['locale']);return this['_setButtonProperties'](_0xc3445['buttonView']),_0xc3445['buttonView']['set']({'tooltip':!0x0}),_0xc3445['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x5bc317(_0xc3445,_0x38bbb2,{'ariaLabel':d(_0x273b57['locale'],'Case\x20change'),'role':'menu'}),_0xc3445['bind']('isEnabled')['toMany'](_0x5ed0b4,'isEnabled',(..._0x39744c)=>_0x39744c['some'](_0xd403d6=>_0xd403d6)),this['listenTo'](_0xc3445,'execute',_0x3fe5d4=>{_0x273b57['execute'](_0x3fe5d4['source']['commandName']),_0x273b57['editing']['view']['focus']();}),_0xc3445;}['_setButtonProperties'](_0x4783c1){const _0x5c28d7=this['editor'];_0x4783c1['set']({'label':d(_0x5c28d7['locale'],'Case\x20change'),'icon':_0x4e8e2b,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x3fb61a=new _0x20142d(),_0x58ed0f=[];for(const _0x3de929 of g(this['editor']['locale'])){const _0x2b654d=this['editor']['commands']['get'](_0x3de929['commandName']),_0x1f5d43=new _0x2a5075({'commandName':_0x3de929['commandName'],'label':_0x3de929['label'],'role':'menuitemradio','withText':!0x0});_0x1f5d43['bind']('isEnabled')['to'](_0x2b654d,'isEnabled'),_0x3fb61a['add']({'type':'button','model':_0x1f5d43}),_0x58ed0f['push'](_0x2b654d);}return{'itemDefinitions':_0x3fb61a,'commands':_0x58ed0f};}}class CaseChange extends _0xe35c7d{static get['requires'](){return[CaseChangeEditing,CaseChangeUI];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CaseChange,CaseChangeCommand,CaseChangeEditing,CaseChangeUI};
|
|
23
|
+
import{Command as _0x2bf6a3,Plugin as _0x21692b}from'@ckeditor/ckeditor5-core';import{Collection as _0xa731dd,uid as _0x3c66fa}from'@ckeditor/ckeditor5-utils';import{MenuBarMenuListItemButtonView as _0x473851,MenuBarMenuListItemView as _0x52128f,MenuBarMenuListView as _0x31afc3,MenuBarMenuView as _0x4ae778,UIModel as _0x3d9283,addListToDropdown as _0x3619fd,createDropdown as _0x523a93}from'@ckeditor/ckeditor5-ui';import{IconCaseChange as _0x2a9d55}from'@ckeditor/ckeditor5-icons';var h=class extends _0x2bf6a3{['_transformCallback'];constructor(_0x2a180a,_0x442a9a){super(_0x2a180a),this['_transformCallback']=_0x442a9a;}['execute'](){const _0x35e2f4=this['editor']['model'],_0x4d76dd=Array['from'](this['_getAffectedRanges']()),_0x1908b7=Array['from'](_0x35e2f4['document']['selection']['getRanges']());_0x35e2f4['change'](_0x1f4ba8=>{for(const _0xda7888 of _0x4d76dd)this['_modifyContent'](_0xda7888,_0x1f4ba8);_0x1f4ba8['setSelection'](_0x1908b7);});}['refresh'](){for(const _0x3bc6a4 of this['_getAffectedRanges']())for(const _0x4decc8 of _0x3bc6a4)if(_0x4decc8['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x516a57=this['editor']['model'],_0x3782d3=_0x516a57['document']['selection'];if(_0x3782d3['isCollapsed']){const _0x57f4be=this['_findAncestorTextBlock'](_0x3782d3['getFirstPosition']()['parent']);return _0x57f4be?[_0x516a57['createRangeIn'](_0x57f4be)]:[];}return _0x3782d3['getRanges']();}['_modifyContent'](_0x362456,_0x56c63e){for(const _0x26bbd6 of this['_getElementsAllowingText'](_0x362456)){const _0x1ae68e=this['_getElementTextContent'](_0x26bbd6),_0x5738d2=this['_transformCallback'](_0x1ae68e);for(const _0x565e7e of this['_getTextNodesRangeLimited'](_0x26bbd6,_0x362456))this['_replaceTextNodeData'](_0x565e7e,_0x5738d2,_0x56c63e);}}['_findAncestorTextBlock'](_0x5e838f){const _0x4ea095=this['editor']['model']['schema'];if(_0x5e838f['is']('element')&&_0x4ea095['checkChild'](_0x5e838f,'$text'))return _0x5e838f;const _0x559639=_0x5e838f['parent'];return!_0x559639||_0x4ea095['isLimit'](_0x5e838f)?null:this['_findAncestorTextBlock'](_0x559639);}*['_getElementsAllowingText'](_0x2dbc75){const _0x4fe63f=new Set();for(const {item:_0xd50f62}of _0x2dbc75['getWalker']()){const _0x36fe73=this['_findAncestorTextBlock'](_0xd50f62);_0x36fe73&&!_0x4fe63f['has'](_0x36fe73)&&(_0x4fe63f['add'](_0x36fe73),yield _0x36fe73);}}['_getElementTextContent'](_0x323157){return Array['from'](_0x323157['getChildren']())['reduce']((_0x46fa2c,_0x3b92b4)=>_0x46fa2c+(_0x3b92b4['is']('$text')?_0x3b92b4['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x41e464,_0x47b3f6){const _0x15735c=_0x47b3f6['getIntersection'](this['editor']['model']['createRangeIn'](_0x41e464));if(_0x15735c){for(const _0x369f3f of _0x15735c['getItems']())_0x369f3f['is']('$textProxy')&&_0x369f3f['parent']==_0x41e464&&(yield _0x369f3f);}}['_replaceTextNodeData'](_0x1d2c23,_0x594c30,_0x382281){const _0x5bbe91=_0x594c30['substring'](_0x1d2c23['startOffset'],_0x1d2c23['endOffset']);if(_0x5bbe91===_0x1d2c23['data'])return;const _0xe32089=_0x1d2c23['getAttributes']();this['editor']['model']['insertContent'](_0x382281['createText'](_0x5bbe91,_0xe32089),_0x382281['createSelection'](_0x382281['createRangeOn'](_0x1d2c23)));}};function w(_0x39339d,_0x586a16,..._0x1877a5){const t=_0x39339d['t'];switch(_0x586a16){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x1877a5);default:return _0x586a16;}}var g=class extends _0x21692b{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x48018a=this['editor'],_0x475fdf=_0x48018a['locale']['contentLanguage'],_0x3b5a8e=function(_0x7d239c=[]){return'function'==typeof _0x7d239c?_0x7d239c:(_0x5669aa,{wordIndex:_0x23a1dc})=>_0x23a1dc>0x0&&_0x7d239c['includes'](_0x5669aa);}(_0x48018a['config']['get']('caseChange.titleCase.excludeWords')),_0x4a9480={'changeCaseUpper':new h(_0x48018a,_0x5aff9e=>_0x5aff9e['toLocaleUpperCase'](_0x475fdf)),'changeCaseLower':new h(_0x48018a,_0x56a82f=>_0x56a82f['toLocaleLowerCase'](_0x475fdf)),'changeCaseTitle':new h(_0x48018a,_0x59e5a5=>function(_0x2f06ae,_0x3e660a,_0x438161){return function(_0x180568,_0x484ead){let _0x4c5752='',_0x4653be=0x0,_0x34ccec=0x0;for(const _0x3c477d of _0x180568['matchAll'](/ +/g)){const _0x91045a=_0x3c477d['index'],_0x615d7d=_0x180568['substring'](_0x4653be,_0x91045a);_0x615d7d['length']&&(_0x4c5752+=_0x484ead(_0x615d7d,_0x4653be,_0x34ccec++)),_0x4c5752+=_0x3c477d[0x0],_0x4653be=_0x91045a+_0x3c477d[0x0]['length'];}const _0x14b1d9=_0x180568['substring'](_0x4653be);return _0x14b1d9['length']&&(_0x4c5752+=_0x484ead(_0x14b1d9,_0x4653be,_0x34ccec)),_0x4c5752;}(_0x2f06ae,(_0x6ca01e,_0x117b48,_0x241f1a)=>{const _0x422f05=_0x6ca01e['toLocaleLowerCase'](_0x438161);return _0x3e660a(_0x422f05,{'charOffset':_0x117b48,'wordIndex':_0x241f1a,'blockText':_0x2f06ae})?_0x422f05:_0x422f05['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x392f6c=>_0x392f6c['toLocaleUpperCase'](_0x438161));});}(_0x59e5a5,_0x3b5a8e,_0x475fdf))};for(const [_0x513aae,_0x264477]of Object['entries'](_0x4a9480))_0x48018a['commands']['add'](_0x513aae,_0x264477),_0x264477['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x513aae);});this['listenTo'](_0x48018a['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x48018a['keystrokes']['set']('shift+f3',(_0x47e7a1,_0x4ac561)=>{const _0x3b0d4a=m(this['editor']['locale']),_0x2336f0=_0x3b0d4a[this['_currentCommandIndex']%_0x3b0d4a['length']]['commandName'];_0x48018a['execute'](_0x2336f0),this['_currentCommandIndex']++,_0x4ac561();});}['afterInit'](){!async function(_0x3d1b57){const _0x59b23f='EMDS3dsLoJY0nbe9cmlCrXyaZ8zpPqN6jxThf7gwBi2KFOVUWRAG14HQIkut5v',_0x1178e4=0x78de0,_0x4d0376=window['Date']['now'](),_0x56e377=_0x3d1b57['editor'],_0x6df3f6=new window['Promise'](_0x505892=>{_0x56e377['once']('ready',_0x505892);}),_0x5e2bdb={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x10b5b2=_0x56e377['config']['get']('licenseKey');async function _0x5aa480(){let _0x39fd2b,_0x335270=null,_0x2616dc=null;try{return'GPL'==_0x10b5b2?'NotAllowed':(_0x39fd2b=_0x4b3fc5(),_0x39fd2b?(_0x39fd2b['usageEndpoint']&&(_0x2616dc=_0x56acd2(_0x39fd2b['usageEndpoint'],_0x39fd2b['jti'])),await _0x13bc4e()?_0x2b27a2()?_0x1d7135()?'Expired':_0x3117cf()?('evaluation'==_0x39fd2b['licenseType']&&(_0x335270=_0x1649aa('EvaluationLimit')),await _0x4d756f()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1d7135(){const _0x521f0a=['evaluation','trial']['includes'](_0x39fd2b['licenseType'])?_0x4d0376/0x3e8:0xe10*_0x1178e4;return _0x39fd2b['exp']<_0x521f0a;}function _0x2b27a2(){const _0xa03109=_0x39fd2b['features'];return!!_0xa03109&&(!!_0xa03109['includes']('*')||(!!_0xa03109['includes']('CC')||!!_0xa03109['includes']('PP')));}function _0x3117cf(){const _0x1f3180=_0x39fd2b['licensedHosts'];if(!_0x1f3180||0x0==_0x1f3180['length'])return!0x0;const {hostname:_0xd4b4bf}=new URL(window['location']['href']);if(_0x1f3180['includes'](_0xd4b4bf))return!0x0;const _0x161c5c=_0xd4b4bf['split']('.');return _0x1f3180['filter'](_0x15f4bd=>_0x15f4bd['includes']('*'))['map'](_0x3f858f=>_0x3f858f['split']('.'))['filter'](_0x3aaa41=>_0x3aaa41['length']<=_0x161c5c['length'])['map'](_0x4ac94f=>Array(_0x161c5c['length']-_0x4ac94f['length'])['fill']('*'===_0x4ac94f[0x0]?'*':'')['concat'](_0x4ac94f))['some'](_0x1539d8=>_0x161c5c['every']((_0x3e1270,_0x52c509)=>_0x1539d8[_0x52c509]===_0x3e1270||'*'===_0x1539d8[_0x52c509]));}function _0x4d756f(){return _0x335270&&_0x2616dc?new window['Promise']((_0x10c8cd,_0x2fb7b1)=>{_0x335270['then'](_0x10c8cd,_0x2fb7b1),_0x2616dc['then'](_0x3495da=>{'Valid'!=_0x3495da&&_0x10c8cd(_0x3495da);},_0x2fb7b1);}):_0x335270||_0x2616dc||'Valid';}}function _0x56acd2(_0x5acbd8,_0x381e2f){return new window['Promise'](_0x6323f7=>{if(_0x543723())return _0x6323f7('Valid');_0x252c8d(),_0x56e377['decorate']('_sendUsageRequest');let _0x2c0b65=!0x1;const _0x393851=_0x3c66fa();function _0x202f36(_0x2ef166){return!!_0x2ef166&&('object'==typeof _0x2ef166||'function'==typeof _0x2ef166)&&'function'==typeof _0x2ef166['then']&&'function'==typeof _0x2ef166['catch'];}function _0x500b5f(_0x1c385e){_0x20cbab(_0x1c385e)['then'](_0x1759d5=>_0x1759d5&&'ok'==_0x1759d5['status']?_0x54151c(_0x29600d(_0x393851+_0x381e2f))!=_0x1759d5['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x94e60=>(_0x3d79a9(),_0x94e60),()=>{const _0x37adf0=_0x502cee();return null==_0x37adf0?(_0x3d79a9(),'Valid'):_0x4d0376-_0x37adf0>0x240c8400?'UsageLimit':'Valid';})['then'](_0x6323f7)['catch'](()=>{_0x6323f7('UsageLimit');});const _0x304a7c=0x36ee80;function _0x3d79a9(){const _0x4a5dc3='llct-'+_0x54151c(_0x29600d(_0x5acbd8)),_0x343d6b=_0x1582b7(_0x54151c(window['Math']['ceil'](_0x4d0376/_0x304a7c)));window['localStorage']['setItem'](_0x4a5dc3,_0x343d6b);}function _0x502cee(){const _0x44c7ef='llct-'+_0x54151c(_0x29600d(_0x5acbd8)),_0x5c7924=window['localStorage']['getItem'](_0x44c7ef);return _0x5c7924?window['parseInt'](_0x1582b7(_0x5c7924),0x10)*_0x304a7c:null;}function _0x20cbab(_0x492ef5){return new window['Promise']((_0x36a94d,_0x3a838d)=>{_0x492ef5['then'](_0x36a94d,_0x3a838d),window['setTimeout'](_0x3a838d,0x1d4c0);});}}_0x56e377['on']('_sendUsageRequest',(_0x4cf8af,_0x1604d6)=>{if(_0x1604d6[0x0]!=_0x5acbd8)return _0x6323f7('UsageLimit');_0x1604d6[0x1]={..._0x1604d6[0x1],'requestId':_0x393851};},{'priority':'high'}),_0x56e377['on']('_sendUsageRequest',_0x22b638=>{_0x202f36(_0x22b638['return'])&&(_0x2c0b65=!0x0,_0x500b5f(_0x22b638['return']));},{'priority':'low'}),_0x6df3f6['then'](()=>{_0x2c0b65||_0x6323f7('UsageLimit');});});function _0x543723(){return'auto'==_0x56e377['editing']['view']['_overlayModeHint'];}function _0x252c8d(){_0x56e377['editing']['view']['_overlayModeHint']='auto';}}function _0x1649aa(_0x48bbb5){const _0x244c9c=[new window['Promise'](_0x150b62=>setTimeout(_0x150b62,0x93ecc)),_0x6df3f6['then'](()=>new window['Promise'](_0x767b38=>{let _0x55bf7c=0x0;_0x56e377['model']['on']('applyOperation',(_0x3bc094,_0x100cfa)=>{_0x100cfa[0x0]['isDocumentOperation']&&_0x55bf7c++,0x5e8==_0x55bf7c&&(_0x767b38(),_0x3bc094['off']());});}))];return window['Promise']['race'](_0x244c9c)['then'](()=>_0x48bbb5);}async function _0x374ea3(){await _0x6df3f6,_0x56e377['model']['change']=_0x369f8a,_0x56e377['model']['enqueueChange']=_0x369f8a,_0x56e377['enableReadOnlyMode']('model');}function _0x519c3b(_0x4e1ac4){const _0x27bb50=_0x1cf753();_0x56e377[_0x27bb50]='caseChangeLicenseKey'+_0x4e1ac4,'Valid'!=_0x4e1ac4&&_0x374ea3();}function _0x1cf753(){const _0x506b8f=window['String'](window['performance']['now']())['replace']('.','');let _0x4625c4='E';for(let _0x2942e1=0x0;_0x2942e1<_0x506b8f['length'];_0x2942e1+=0x2){let _0x4a8cca=window['parseInt'](_0x506b8f['substring'](_0x2942e1,_0x2942e1+0x2));_0x4a8cca>=0x3e&&(_0x4a8cca-=0x3e),_0x4625c4+=_0x59b23f[_0x4a8cca];}return _0x4625c4;}function _0x4b3fc5(){const _0x281eca=_0x10b5b2['split']('.');if(0x3!=_0x281eca['length'])return null;return _0x12fc24(_0x281eca[0x1]);function _0x12fc24(_0x2e4bca){const _0x989058=_0x4a0810(_0x2e4bca);return _0x989058&&_0x59b12b()?_0x989058:null;function _0x59b12b(){const _0x2dbf91=_0x989058['jti'],_0x575b2e=window['parseInt'](_0x2dbf91['substring'](_0x2dbf91['length']-0x8),0x10),_0x2432ef={..._0x989058,'jti':_0x2dbf91['substring'](0x0,_0x2dbf91['length']-0x8)};return delete _0x2432ef['vc'],_0x29600d(_0x2432ef)==_0x575b2e;}}}async function _0x13bc4e(){let _0x6c11c3=!0x0;try{const [_0x2419ba,_0x246e60,_0x4f0d70]=_0x10b5b2['split']('.');return _0x294ac3(_0x2419ba),await _0x37f240(_0x2419ba,_0x246e60,_0x4f0d70),_0x6c11c3;}catch{return!0x1;}function _0x294ac3(_0xe49f6d){const _0x495cda=_0x4a0810(_0xe49f6d);_0x495cda&&'ES256'==_0x495cda['alg']||(_0x6c11c3=!0x1);}async function _0x37f240(_0x1a301d,_0x4c3f60,_0x1380c3){const _0x445953=window['Uint8Array']['from'](_0x3b3e87(_0x1380c3),_0x289db0=>_0x289db0['charCodeAt'](0x0)),_0x462172=new window['TextEncoder']()['encode'](_0x1a301d+'.'+_0x4c3f60),_0x30fbd0=window['crypto']['subtle'];if(!_0x30fbd0)return;const _0x3f35ca=await _0x30fbd0['importKey']('jwk',_0x5e2bdb,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x30fbd0['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3f35ca,_0x445953,_0x462172)||(_0x6c11c3=!0x1);}}function _0x4a0810(_0x1421be){return _0x1421be['startsWith']('ey')?JSON['parse'](_0x3b3e87(_0x1421be)):null;}function _0x3b3e87(_0x45a0d0){return window['atob'](_0x45a0d0['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x29600d(_0xce3b61){let _0x40e903=0x1505;function _0x26325b(_0x1fadae){for(let _0x4f3eb7=0x0;_0x4f3eb7<_0x1fadae['length'];_0x4f3eb7++){const _0x2130e0=_0x1fadae['charCodeAt'](_0x4f3eb7);_0x40e903=(_0x40e903<<0x5)+_0x40e903+_0x2130e0,_0x40e903&=_0x40e903;}}function _0x572afe(_0x34fe71){Array['isArray'](_0x34fe71)?_0x34fe71['forEach'](_0x572afe):_0x34fe71&&'object'==typeof _0x34fe71?Object['entries'](_0x34fe71)['sort']()['forEach'](([_0x2ece1b,_0x41705d])=>{_0x26325b(_0x2ece1b),_0x572afe(_0x41705d);}):_0x26325b(window['String'](_0x34fe71));}return _0x572afe(_0xce3b61),_0x40e903>>>0x0;}function _0x54151c(_0x5e297d){return _0x5e297d['toString'](0x10)['padStart'](0x8,'0');}function _0x1582b7(_0x580463){return _0x580463['split']('')['reverse']()['join']('');}function _0x369f8a(){}_0x519c3b(await _0x5aa480());}(this);}['_announceCaseChangeOperation'](_0x7aab3e){const {ui:_0x49c320,locale:_0x2f3513}=this['editor'],_0x41d6d6=m(_0x2f3513)['find'](_0x5b25f2=>_0x5b25f2['commandName']===_0x7aab3e)['label']['toLowerCase']();_0x49c320['ariaLiveAnnouncer']['announce'](w(_0x2f3513,'Changed\x20case\x20to\x20%0',_0x41d6d6));}};function m(_0x545992){return[{'label':w(_0x545992,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x545992,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x545992,'Title\x20Case'),'commandName':'changeCaseTitle'}];}var C=class extends _0x21692b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x22c45e=this['editor'];this['_registerComponents'](),_0x22c45e['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x22c45e['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3bf46f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c8892;for(const _0x31cac8 in _0x3bf46f){const _0x455419=_0x31cac8,_0x222cf1=_0x3bf46f[_0x455419];if('caseChangeLicenseKeyValid'==_0x222cf1||'caseChangeLicenseKeyInvalid'==_0x222cf1||'caseChangeLicenseKeyExpired'==_0x222cf1||'caseChangeLicenseKeyDomainLimit'==_0x222cf1||'caseChangeLicenseKeyNotAllowed'==_0x222cf1||'caseChangeLicenseKeyEvaluationLimit'==_0x222cf1||'caseChangeLicenseKeyUsageLimit'==_0x222cf1){delete _0x3bf46f[_0x455419],_0x4c8892=_0x222cf1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x4c8892&&_0x3bf46f['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x4c8892&&_0x3bf46f['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x4c8892&&_0x3bf46f['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x4c8892&&_0x3bf46f['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x4c8892&&_0x3bf46f['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x4c8892&&_0x3bf46f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x2c9fd9=this['editor'],{itemDefinitions:_0x10586b,commands:_0x2ab6b3}=this['_getListItemDefinitionsAndCommands']();_0x2c9fd9['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x10586b,_0x2ab6b3)),_0x2c9fd9['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x10586b,_0x2ab6b3));}['_createMenuBarMenuView'](_0x5bfebb,_0x3c0311){const _0x3ee04c=this['editor'],_0xb6581c=_0x3ee04c['locale'],_0x1a0e7b=new _0x4ae778(_0xb6581c),_0x30ee60=new _0x31afc3(_0xb6581c);_0x30ee60['set']({'ariaLabel':w(_0xb6581c,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x1a0e7b['buttonView']),_0x1a0e7b['bind']('isEnabled')['toMany'](_0x3c0311,'isEnabled',(..._0x18476f)=>_0x18476f['some'](_0xf97ab=>_0xf97ab));for(const _0x50636b of _0x5bfebb){const _0x339410=new _0x52128f(_0xb6581c,_0x1a0e7b),_0x5228b3=new _0x473851(_0xb6581c);_0x5228b3['delegate']('execute')['to'](_0x1a0e7b),_0x5228b3['bind'](...Object['keys'](_0x50636b['model']))['to'](_0x50636b['model']),_0x5228b3['on']('execute',()=>{_0x3ee04c['execute'](_0x50636b['model']['commandName']),_0x3ee04c['editing']['view']['focus']();}),_0x339410['children']['add'](_0x5228b3),_0x30ee60['items']['add'](_0x339410);}return _0x1a0e7b['panelView']['children']['add'](_0x30ee60),_0x1a0e7b;}['_createDropdownView'](_0x2db9ce,_0x2e7777){const _0x36c508=this['editor'],_0x24d862=_0x523a93(_0x36c508['locale']);return this['_setButtonProperties'](_0x24d862['buttonView']),_0x24d862['buttonView']['set']({'tooltip':!0x0}),_0x24d862['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x3619fd(_0x24d862,_0x2db9ce,{'ariaLabel':w(_0x36c508['locale'],'Case\x20change'),'role':'menu'}),_0x24d862['bind']('isEnabled')['toMany'](_0x2e7777,'isEnabled',(..._0x48b587)=>_0x48b587['some'](_0x581aa4=>_0x581aa4)),this['listenTo'](_0x24d862,'execute',_0x2ed8d2=>{_0x36c508['execute'](_0x2ed8d2['source']['commandName']),_0x36c508['editing']['view']['focus']();}),_0x24d862;}['_setButtonProperties'](_0x47b4c3){const _0x3efe18=this['editor'];_0x47b4c3['set']({'label':w(_0x3efe18['locale'],'Case\x20change'),'icon':_0x2a9d55,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x4843cd=new _0xa731dd(),_0x45ad94=[];for(const _0x23a65b of m(this['editor']['locale'])){const _0x4d0250=this['editor']['commands']['get'](_0x23a65b['commandName']),_0x2be30c=new _0x3d9283({'commandName':_0x23a65b['commandName'],'label':_0x23a65b['label'],'role':'menuitemradio','withText':!0x0});_0x2be30c['bind']('isEnabled')['to'](_0x4d0250,'isEnabled'),_0x4843cd['add']({'type':'button','model':_0x2be30c}),_0x45ad94['push'](_0x4d0250);}return{'itemDefinitions':_0x4843cd,'commands':_0x45ad94};}},y=class extends _0x21692b{static get['requires'](){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{y as CaseChange,h as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
|
package/dist/legacyerrors.d.ts
CHANGED
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Case\x20change':'','UPPERCASE':'','lowercase':'','Title\x20Case':'','Change\x20text\x20case':'','Changed\x20case\x20to\x20%0':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Case\x20change':'','UPPERCASE':'','lowercase':'','Title\x20Case':'','Change\x20text\x20case':'','Changed\x20case\x20to\x20%0':''},'getPluralForm':_0x276531=>0x1!=_0x276531}};
|