@ckeditor/ckeditor5-line-height 48.8.1-alpha.4 → 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.
- package/dist/augmentation.d.ts +19 -19
- package/dist/index-content.css +22 -18
- package/dist/index-editor.css +7 -7
- package/dist/index.css +26 -18
- package/dist/index.d.ts +14 -12
- package/dist/index.js +1 -1
- package/dist/integrations/todolist.d.ts +25 -26
- package/dist/lineheight.d.ts +29 -29
- package/dist/lineheightcommand.d.ts +21 -21
- package/dist/lineheightconfig.d.ts +58 -58
- package/dist/lineheightediting.d.ts +41 -41
- package/dist/lineheightui.d.ts +28 -29
- 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.d.ts +0 -4
- package/package.json +8 -7
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { LineHeight, LineHeightEditing, LineHeightUI, LineHeightConfig, LineHeightTodoListIntegration } from
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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 { LineHeight, LineHeightEditing, LineHeightUI, LineHeightConfig, LineHeightTodoListIntegration } from "./index.js";
|
|
6
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
7
|
+
interface PluginsMap {
|
|
8
|
+
[LineHeight.pluginName]: LineHeight;
|
|
9
|
+
[LineHeightEditing.pluginName]: LineHeightEditing;
|
|
10
|
+
[LineHeightUI.pluginName]: LineHeightUI;
|
|
11
|
+
[LineHeightTodoListIntegration.pluginName]: LineHeightTodoListIntegration;
|
|
12
|
+
}
|
|
13
|
+
interface EditorConfig {
|
|
14
|
+
/**
|
|
15
|
+
* The configuration of the {@link module:line-height/lineheight~LineHeight} feature.
|
|
16
|
+
*
|
|
17
|
+
* Read more in {@link module:line-height/lineheightconfig~LineHeightConfig}.
|
|
18
|
+
*/
|
|
19
|
+
lineHeight?: LineHeightConfig;
|
|
20
|
+
}
|
|
21
21
|
}
|
package/dist/index-content.css
CHANGED
|
@@ -2,30 +2,34 @@
|
|
|
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
|
-
.ck-content .line-height-single{
|
|
6
|
-
line-height:1;
|
|
5
|
+
.ck-content .line-height-single {
|
|
6
|
+
line-height: 1;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.ck-content .line-height-double{
|
|
10
|
-
line-height:2;
|
|
9
|
+
.ck-content .line-height-double {
|
|
10
|
+
line-height: 2;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
:root{
|
|
14
|
-
--ck-content-list-marker-line-height:var(--ck-content-line-height);
|
|
13
|
+
:root, :host {
|
|
14
|
+
--ck-content-list-marker-line-height: var(--ck-content-line-height);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.ck-content .todo-list
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
.ck-content .todo-list {
|
|
18
|
+
& li.ck-list-marker-line-height {
|
|
19
|
+
&:before {
|
|
20
|
+
line-height: var(--ck-content-list-marker-line-height);
|
|
21
|
+
content: "";
|
|
22
|
+
}
|
|
21
23
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
24
|
+
& > .todo-list__label.todo-list__label_without-description {
|
|
25
|
+
width: 0;
|
|
26
|
+
line-height: var(--ck-content-list-marker-line-height);
|
|
27
|
+
position: absolute;
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
& input[type="checkbox"] {
|
|
30
|
+
margin: 0;
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
31
35
|
}
|
package/dist/index-editor.css
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
.ck-editor__editable.ck-content .todo-list {
|
|
6
|
+
& li.ck-list-marker-line-height > .todo-list__label.todo-list__label_without-description {
|
|
7
|
+
& > span[contenteditable="false"] {
|
|
8
|
+
width: 0;
|
|
9
|
+
display: inline-block;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
12
|
}
|
package/dist/index.css
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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
|
+
.ck-editor__editable.ck-content .todo-list {
|
|
6
|
+
& li.ck-list-marker-line-height > .todo-list__label.todo-list__label_without-description {
|
|
7
|
+
& > span[contenteditable="false"] {
|
|
8
|
+
width: 0;
|
|
9
|
+
display: inline-block;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
5
14
|
.ck-content .line-height-single {
|
|
6
15
|
line-height: 1;
|
|
7
16
|
}
|
|
@@ -10,27 +19,26 @@
|
|
|
10
19
|
line-height: 2;
|
|
11
20
|
}
|
|
12
21
|
|
|
13
|
-
:root {
|
|
22
|
+
:root, :host {
|
|
14
23
|
--ck-content-list-marker-line-height: var(--ck-content-line-height);
|
|
15
24
|
}
|
|
16
25
|
|
|
17
|
-
.ck-content .todo-list
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
width: 0;
|
|
24
|
-
line-height: var(--ck-content-list-marker-line-height);
|
|
25
|
-
position: absolute;
|
|
26
|
-
}
|
|
26
|
+
.ck-content .todo-list {
|
|
27
|
+
& li.ck-list-marker-line-height {
|
|
28
|
+
&:before {
|
|
29
|
+
line-height: var(--ck-content-list-marker-line-height);
|
|
30
|
+
content: "";
|
|
31
|
+
}
|
|
27
32
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
& > .todo-list__label.todo-list__label_without-description {
|
|
34
|
+
width: 0;
|
|
35
|
+
line-height: var(--ck-content-list-marker-line-height);
|
|
36
|
+
position: absolute;
|
|
32
37
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
& input[type="checkbox"] {
|
|
39
|
+
margin: 0;
|
|
40
|
+
position: relative;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
36
44
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
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 { LineHeight } from
|
|
9
|
-
export { LineHeightEditing } from
|
|
10
|
-
export { LineHeightUI } from
|
|
11
|
-
export { LineHeightTodoListIntegration } from
|
|
12
|
-
export { LineHeightCommand } from
|
|
13
|
-
export type { LineHeightConfig, LineHeightOption } from
|
|
14
|
-
import
|
|
6
|
+
* @module line-height
|
|
7
|
+
*/
|
|
8
|
+
export { LineHeight } from "./lineheight.js";
|
|
9
|
+
export { LineHeightEditing } from "./lineheightediting.js";
|
|
10
|
+
export { LineHeightUI } from "./lineheightui.js";
|
|
11
|
+
export { LineHeightTodoListIntegration } from "./integrations/todolist.js";
|
|
12
|
+
export { LineHeightCommand } from "./lineheightcommand.js";
|
|
13
|
+
export type { LineHeightConfig, LineHeightOption } from "./lineheightconfig.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{Command as _0x2b8cc5,Plugin as _0x5aaea3}from'@ckeditor/ckeditor5-core/dist/index.js';import{first as _0x167f1d,CKEditorError as _0x38470f,uid as _0x570b91,Collection as _0x4efa1d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Matcher as _0x42ddc0,isPercentageStyleValue as _0x20a440}from'@ckeditor/ckeditor5-engine/dist/index.js';import{UIModel as _0x162a85,createDropdown as _0x598929,addListToDropdown as _0x4dae00,MenuBarMenuView as _0x5ad2f9,MenuBarMenuListView as _0x241db1,MenuBarMenuListItemView as _0x137569,MenuBarMenuListItemButtonView as _0x4901d4}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconLineHeight as _0x3efa58}from'@ckeditor/ckeditor5-icons/dist/index.js';class LineHeightCommand extends _0x2b8cc5{['refresh'](){const _0x5d1dee=this['editor']['model']['document'],_0x5cd18b=_0x167f1d(_0x5d1dee['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x5cd18b)&&this['_canHaveLineHeight'](_0x5cd18b),this['value']=this['isEnabled']&&_0x5cd18b['getAttribute']('lineHeight');}['execute'](_0x54b0bb={}){const _0x201132=this['editor']['model'],_0x389c99=_0x201132['document']['selection'],_0x4e7dbb=_0x54b0bb['value'];_0x201132['change'](_0x59ed8d=>{const _0x1b81f6=Array['from'](_0x389c99['getSelectedBlocks']())['filter'](_0x5a9e47=>this['_canHaveLineHeight'](_0x5a9e47));for(const _0x3ec6ea of _0x1b81f6)_0x4e7dbb?_0x59ed8d['setAttribute']('lineHeight',_0x4e7dbb,_0x3ec6ea):_0x59ed8d['removeAttribute']('lineHeight',_0x3ec6ea);});}['_canHaveLineHeight'](_0x3c75b6){return this['editor']['model']['schema']['checkAttribute'](_0x3c75b6,'lineHeight');}}const p={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function H(_0x4c45a1){return'string'==typeof _0x4c45a1&&'default'===_0x4c45a1['toLowerCase']();}function L(_0x50cfa3){return _0x50cfa3['options']['map'](_0x15b6e6=>{return H(_0x15b6e6)?{'title':String(_0x50cfa3['defaultValue']),'model':'default'}:('number'==typeof _0x15b6e6&&(_0x15b6e6=String(_0x15b6e6)),'string'!=typeof _0x15b6e6?_0x15b6e6:parseFloat(_0x15b6e6)?{'title':_0x15b6e6,'model':_0x15b6e6,'view':{'name':'span','styles':{'line-height':_0x15b6e6}}}:'string'==typeof(_0x430c82=_0x15b6e6)?p[_0x430c82]:p[_0x430c82['model']]);var _0x430c82;})['filter'](_0x43b3ed=>void 0x0!==_0x43b3ed);}class LineHeightTodoListIntegration extends _0x5aaea3{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x5c26da,conversion:_0x5a8485}=this['editor'];if(!_0x5c26da['has']('ListEditing')||!_0x5c26da['has']('TodoListEditing'))return;_0x5c26da['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x324596,_0x4b8ff4,_0xc93d02,_0x5fce49,_0x147d38){'todo'==_0x147d38['getAttribute']('listType')&&_0x4b8ff4&&(_0x324596['addClass']('ck-list-marker-line-height',_0xc93d02),_0x324596['setStyle']('--ck-content-list-marker-line-height',_0x4b8ff4,_0xc93d02));}}),_0x5a8485['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x5a8485['for']('upcast')['add'](_0x51e8c4=>{_0x51e8c4['on']('element:li',function(_0x2320e4){const _0x336681=new _0x42ddc0(_0x2320e4);return(_0x3c073,_0x113d7f,_0x4cb83f)=>{const _0x544401=_0x336681['match'](_0x113d7f['viewItem']);if(!_0x544401)return;const _0x47da5f=_0x544401['match'];_0x47da5f['name']=!0x1,_0x4cb83f['consumable']['consume'](_0x113d7f['viewItem'],_0x47da5f);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}class LineHeightEditing extends _0x5aaea3{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[LineHeightTodoListIntegration];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x492a0e){super(_0x492a0e),_0x492a0e['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x268c86=this['editor'];this['_validateConfig'](),_0x268c86['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x268c86['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x268c86['commands']['add']('lineHeight',new LineHeightCommand(_0x268c86)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){!async function(_0x2310e9){const _0x3969e9=_0x41207b([0x50,0x48,0x51,0x33,0x59,0x55,0x49,0x42,0x72,0x6c,0x30,0x58,0x64,0x6e,0x77,0x47,0x39,0x6b,0x65,0x7a,0x38,0x73,0x66,0x70,0x4d,0x76,0x31,0x79,0x74,0x57,0x46,0x52,0x4e,0x5a,0x4f,0x56,0x35,0x6a,0x4a,0x61,0x71,0x37,0x54,0x63,0x32,0x6f,0x67,0x75,0x62,0x36,0x34,0x78,0x43,0x4b,0x44,0x45,0x41,0x4c,0x53,0x69,0x68,0x6d]),_0x7424ab=0x45ddd215,_0x50cc72=0x45da5895^_0x7424ab,_0x2232a8=window[_0x41207b([0x44,0x61,0x74,0x65])][_0x41207b([0x6e,0x6f,0x77])](),_0x150b40=_0x2310e9[_0x41207b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2911ba=new window[(_0x41207b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54ecbd=>{_0x150b40[_0x41207b([0x6f,0x6e,0x63,0x65])](_0x41207b([0x72,0x65,0x61,0x64,0x79]),_0x54ecbd);}),_0x1d3d4d={[_0x41207b([0x6b,0x74,0x79])]:_0x41207b([0x45,0x43]),[_0x41207b([0x75,0x73,0x65])]:_0x41207b([0x73,0x69,0x67]),[_0x41207b([0x63,0x72,0x76])]:_0x41207b([0x50,0x2d,0x32,0x35,0x36]),[_0x41207b([0x78])]:_0x41207b([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]),[_0x41207b([0x79])]:_0x41207b([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]),[_0x41207b([0x61,0x6c,0x67])]:_0x41207b([0x45,0x53,0x32,0x35,0x36])},_0x28bbf0=_0x150b40[_0x41207b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x41207b([0x67,0x65,0x74])](_0x41207b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a9695(){let _0x2b1703,_0x17bd1e=null,_0x1e4f61=null;try{if(_0x28bbf0==_0x41207b([0x47,0x50,0x4c]))return _0x41207b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b1703=_0x31f049(),!_0x2b1703)return _0x41207b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b1703[_0x41207b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e4f61=_0x560672(_0x2b1703[_0x41207b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b1703[_0x41207b([0x6a,0x74,0x69])])),await _0x20a1cb()?_0x4b82c9()?_0x40f502()?_0x41207b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1504ea()?(_0x2b1703[_0x41207b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x41207b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17bd1e=_0x254a19(_0x41207b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2794f8()):_0x41207b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x41207b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x41207b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x41207b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40f502(){const _0x359ab2=[_0x41207b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x41207b([0x74,0x72,0x69,0x61,0x6c])][_0x41207b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b1703[_0x41207b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2232a8/0x3e8:0xe10*_0x50cc72;return _0x2b1703[_0x41207b([0x65,0x78,0x70])]<_0x359ab2;}function _0x4b82c9(){const _0x42cda2=_0x2b1703[_0x41207b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42cda2&&(!!_0x42cda2[_0x41207b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41207b([0x2a]))||!!_0x42cda2[_0x41207b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41207b([0x4c,0x48])));}function _0x1504ea(){const _0x308998=_0x2b1703[_0x41207b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x308998||0x0==_0x308998[_0x41207b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1543cd}=new URL(window[_0x41207b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x308998[_0x41207b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1543cd))return!0x0;const _0x4baaa8=_0x1543cd[_0x41207b([0x73,0x70,0x6c,0x69,0x74])](_0x41207b([0x2e]));return _0x308998[_0x41207b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46ee80=>_0x46ee80[_0x41207b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41207b([0x2a])))[_0x41207b([0x6d,0x61,0x70])](_0x14aa8e=>_0x14aa8e[_0x41207b([0x73,0x70,0x6c,0x69,0x74])](_0x41207b([0x2e])))[_0x41207b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x581896=>_0x581896[_0x41207b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4baaa8[_0x41207b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41207b([0x6d,0x61,0x70])](_0x598c69=>Array(_0x4baaa8[_0x41207b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x598c69[_0x41207b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x41207b([0x66,0x69,0x6c,0x6c])](_0x598c69[0x0]===_0x41207b([0x2a])?_0x41207b([0x2a]):'')[_0x41207b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x598c69))[_0x41207b([0x73,0x6f,0x6d,0x65])](_0x49acf9=>_0x4baaa8[_0x41207b([0x65,0x76,0x65,0x72,0x79])]((_0x2556ff,_0x3edc69)=>_0x49acf9[_0x3edc69]===_0x2556ff||_0x49acf9[_0x3edc69]===_0x41207b([0x2a])));}function _0x2794f8(){return _0x17bd1e&&_0x1e4f61?new window[(_0x41207b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48d0cf,_0x23a709)=>{_0x17bd1e[_0x41207b([0x74,0x68,0x65,0x6e])](_0x48d0cf,_0x23a709),_0x1e4f61[_0x41207b([0x74,0x68,0x65,0x6e])](_0x357817=>{_0x357817!=_0x41207b([0x56,0x61,0x6c,0x69,0x64])&&_0x48d0cf(_0x357817);},_0x23a709);}):_0x17bd1e||_0x1e4f61||_0x41207b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x560672(_0x574815,_0x2f951f){return new window[(_0x41207b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dc27c=>{if(_0x3f236f())return _0x4dc27c(_0x41207b([0x56,0x61,0x6c,0x69,0x64]));_0x393326(),_0x150b40[_0x41207b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x41207b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x173c67=!0x1;const _0x1735ba=_0x570b91();function _0x48816e(_0x49b595){return!!_0x49b595&&(typeof _0x49b595===_0x41207b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49b595===_0x41207b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49b595[_0x41207b([0x74,0x68,0x65,0x6e])]===_0x41207b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49b595[_0x41207b([0x63,0x61,0x74,0x63,0x68])]===_0x41207b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5f100a(_0x4a1de0){_0x35a876(_0x4a1de0)[_0x41207b([0x74,0x68,0x65,0x6e])](_0x522d48=>{if(!_0x522d48||_0x522d48[_0x41207b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x41207b([0x6f,0x6b]))return _0x41207b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48fe88(_0x5cb958(_0x1735ba+_0x2f951f))!=_0x522d48[_0x41207b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x41207b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x41207b([0x56,0x61,0x6c,0x69,0x64]);})[_0x41207b([0x74,0x68,0x65,0x6e])](_0x2fbcf8=>(_0x5a2ec7(),_0x2fbcf8),()=>{const _0x14c1f9=_0x1510e3();return null==_0x14c1f9?(_0x5a2ec7(),_0x41207b([0x56,0x61,0x6c,0x69,0x64])):_0x41207b(_0x2232a8-_0x14c1f9>(0x61d15615^_0x7424ab)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x41207b([0x74,0x68,0x65,0x6e])](_0x4dc27c)[_0x41207b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4dc27c(_0x41207b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc987d=0x45eb3c95^_0x7424ab;function _0x5a2ec7(){const _0x39d77a=_0x41207b([0x6c,0x6c,0x63,0x74,0x2d])+_0x48fe88(_0x5cb958(_0x574815)),_0x5f491d=_0x6f6c80(_0x48fe88(window[_0x41207b([0x4d,0x61,0x74,0x68])][_0x41207b([0x63,0x65,0x69,0x6c])](_0x2232a8/_0xc987d)));window[_0x41207b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41207b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39d77a,_0x5f491d);}function _0x1510e3(){const _0x3b267a=_0x41207b([0x6c,0x6c,0x63,0x74,0x2d])+_0x48fe88(_0x5cb958(_0x574815)),_0x1eb3c8=window[_0x41207b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x41207b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b267a);return _0x1eb3c8?window[_0x41207b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6f6c80(_0x1eb3c8),0x10)*_0xc987d:null;}function _0x35a876(_0x34c95b){return new window[(_0x41207b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ee75b,_0x528c72)=>{_0x34c95b[_0x41207b([0x74,0x68,0x65,0x6e])](_0x4ee75b,_0x528c72),window[_0x41207b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x528c72,0x45dc06d5^_0x7424ab);});}}_0x150b40[_0x41207b([0x6f,0x6e])](_0x41207b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c4003,_0x3e63ce)=>{if(_0x3e63ce[0x0]!=_0x574815)return _0x4dc27c(_0x41207b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e63ce[0x1]={..._0x3e63ce[0x1],[_0x41207b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1735ba};},{[_0x41207b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41207b([0x68,0x69,0x67,0x68])}),_0x150b40[_0x41207b([0x6f,0x6e])](_0x41207b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2e2a7a=>{_0x48816e(_0x2e2a7a[_0x41207b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x173c67=!0x0,_0x5f100a(_0x2e2a7a[_0x41207b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x41207b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x41207b([0x6c,0x6f,0x77])}),_0x2911ba[_0x41207b([0x74,0x68,0x65,0x6e])](()=>{_0x173c67||_0x4dc27c(_0x41207b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f236f(){return _0x150b40[_0x41207b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41207b([0x76,0x69,0x65,0x77])][_0x41207b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x41207b([0x61,0x75,0x74,0x6f]);}function _0x393326(){_0x150b40[_0x41207b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x41207b([0x76,0x69,0x65,0x77])][_0x41207b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x41207b([0x61,0x75,0x74,0x6f]);}}function _0x254a19(_0x55c817){const _0x559fdf=[new window[(_0x41207b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd23c16=>setTimeout(_0xd23c16,0x45d4ecd9^_0x7424ab)),_0x2911ba[_0x41207b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x41207b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d7b5a=>{let _0x493026=0x0;_0x150b40[_0x41207b([0x6d,0x6f,0x64,0x65,0x6c])][_0x41207b([0x6f,0x6e])](_0x41207b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x49e177,_0x5f8564)=>{_0x5f8564[0x0][_0x41207b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x493026++,_0x493026==(0x45ddd7fd^_0x7424ab)&&(_0x5d7b5a(),_0x49e177[_0x41207b([0x6f,0x66,0x66])]());});}))];return window[_0x41207b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x41207b([0x72,0x61,0x63,0x65])](_0x559fdf)[_0x41207b([0x74,0x68,0x65,0x6e])](()=>_0x55c817);}async function _0x3c0b61(){await _0x2911ba,_0x150b40[_0x41207b([0x6d,0x6f,0x64,0x65,0x6c])][_0x41207b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x249d43,_0x150b40[_0x41207b([0x6d,0x6f,0x64,0x65,0x6c])][_0x41207b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x249d43,_0x150b40[_0x41207b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x41207b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e1b8f(_0x353b3f){const _0x4e71f0=_0x54e34e();_0x150b40[_0x4e71f0]=_0x41207b([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x353b3f,_0x353b3f!=_0x41207b([0x56,0x61,0x6c,0x69,0x64])&&_0x3c0b61();}function _0x54e34e(){const _0x191991=window[_0x41207b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x41207b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x41207b([0x6e,0x6f,0x77])]())[_0x41207b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x41207b([0x2e]),'');let _0x20417d=_0x41207b([0x50]);for(let _0x4ddbf4=0x0;_0x4ddbf4<_0x191991[_0x41207b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ddbf4+=0x2){let _0x382a63=window[_0x41207b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x191991[_0x41207b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ddbf4,_0x4ddbf4+0x2));_0x382a63>=_0x3969e9[_0x41207b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x382a63-=_0x3969e9[_0x41207b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20417d+=_0x3969e9[_0x382a63];}return _0x20417d;}function _0x31f049(){const _0x4134c0=_0x28bbf0[_0x41207b([0x73,0x70,0x6c,0x69,0x74])](_0x41207b([0x2e]));if(0x3!=_0x4134c0[_0x41207b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a05a9(_0x4134c0[0x1]);function _0x1a05a9(_0x5a631b){const _0x271468=_0x4ef0ac(_0x5a631b);return _0x271468&&_0x438b66()?_0x271468:null;function _0x438b66(){const _0x4ddc98=_0x271468[_0x41207b([0x6a,0x74,0x69])],_0x2615e4=window[_0x41207b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ddc98[_0x41207b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ddc98[_0x41207b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x97df37={..._0x271468,[_0x41207b([0x6a,0x74,0x69])]:_0x4ddc98[_0x41207b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ddc98[_0x41207b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x97df37[_0x41207b([0x76,0x63])],_0x5cb958(_0x97df37)==_0x2615e4;}}}async function _0x20a1cb(){let _0x2e183e=!0x0;try{const _0x2f6f06=_0x28bbf0[_0x41207b([0x73,0x70,0x6c,0x69,0x74])](_0x41207b([0x2e])),[_0x14f6e6,_0x464817,_0x5c4dd5]=_0x2f6f06;return _0x2b0383(_0x14f6e6),await _0xeeb362(_0x14f6e6,_0x464817,_0x5c4dd5),_0x2e183e;}catch{return!0x1;}function _0x2b0383(_0x2c64fe){const _0x5cea70=_0x4ef0ac(_0x2c64fe);_0x5cea70&&_0x5cea70[_0x41207b([0x61,0x6c,0x67])]==_0x41207b([0x45,0x53,0x32,0x35,0x36])||(_0x2e183e=!0x1);}async function _0xeeb362(_0x5d5f5c,_0x16184f,_0x4e3d0b){const _0x19cbbe=window[_0x41207b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x41207b([0x66,0x72,0x6f,0x6d])](_0x594513(_0x4e3d0b),_0x21c70b=>_0x21c70b[_0x41207b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x142c7f=new window[(_0x41207b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x41207b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d5f5c+_0x41207b([0x2e])+_0x16184f),_0x2a0a42=window[_0x41207b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x41207b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a0a42)return;const _0x396ad4=await _0x2a0a42[_0x41207b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x41207b([0x6a,0x77,0x6b]),_0x1d3d4d,{[_0x41207b([0x6e,0x61,0x6d,0x65])]:_0x41207b([0x45,0x43,0x44,0x53,0x41]),[_0x41207b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x41207b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x41207b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a0a42[_0x41207b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x41207b([0x6e,0x61,0x6d,0x65])]:_0x41207b([0x45,0x43,0x44,0x53,0x41]),[_0x41207b([0x68,0x61,0x73,0x68])]:{[_0x41207b([0x6e,0x61,0x6d,0x65])]:_0x41207b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x396ad4,_0x19cbbe,_0x142c7f)||(_0x2e183e=!0x1);}}function _0x4ef0ac(_0x2ba661){return _0x2ba661[_0x41207b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x41207b([0x65,0x79]))?JSON[_0x41207b([0x70,0x61,0x72,0x73,0x65])](_0x594513(_0x2ba661)):null;}function _0x594513(_0x229229){return window[_0x41207b([0x61,0x74,0x6f,0x62])](_0x229229[_0x41207b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x41207b([0x2b]))[_0x41207b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x41207b([0x2f])));}function _0x5cb958(_0x16a2cf){let _0x148122=0x1505;function _0x32a9c7(_0x15464a){for(let _0x23322c=0x0;_0x23322c<_0x15464a[_0x41207b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23322c++){const _0x31a51e=_0x15464a[_0x41207b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23322c);_0x148122=(_0x148122<<0x5)+_0x148122+_0x31a51e,_0x148122&=_0x148122;}}function _0x4744fc(_0x1ab9a9){Array[_0x41207b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ab9a9)?_0x1ab9a9[_0x41207b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4744fc):_0x1ab9a9&&typeof _0x1ab9a9==_0x41207b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x41207b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ab9a9)[_0x41207b([0x73,0x6f,0x72,0x74])]()[_0x41207b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2270ec,_0x1039dc])=>{_0x32a9c7(_0x2270ec),_0x4744fc(_0x1039dc);}):_0x32a9c7(window[_0x41207b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ab9a9));}return _0x4744fc(_0x16a2cf),_0x148122>>>0x0;}function _0x48fe88(_0x56d9cc){return _0x56d9cc[_0x41207b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x41207b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x41207b([0x30]));}function _0x6f6c80(_0x49459a){return _0x49459a[_0x41207b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x41207b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x41207b([0x6a,0x6f,0x69,0x6e])]('');}function _0x249d43(){}function _0x41207b(_0x3fe4b0){return _0x3fe4b0['map'](_0x25d1fc=>String['fromCharCode'](_0x25d1fc))['join']('');}_0x4e1b8f(await _0x1a9695());}(this);}['_validateConfig'](){const _0x17b956=this['editor'];if(!_0x17b956['config']['get']('lineHeight.supportAllValues'))return;const _0x55f0e7=_0x17b956['config']['get']('lineHeight.options')['filter'](_0x277475=>'string'==typeof _0x277475&&(!H(_0x277475)&&isNaN(Number(_0x277475))));if(_0x55f0e7['length'])throw new _0x38470f('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x55f0e7});}['_prepareAnyValueConverters'](){const _0x43ae60=this['editor'],_0x187dbd=this['editor']['config']['get']('lineHeight.defaultValue');_0x43ae60['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x13f8c3=>String(_0x13f8c3)===String(_0x187dbd)?null:{'key':'style','value':{'line-height':_0x13f8c3}}}),_0x43ae60['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x34f29c=>{let _0x3c58ee=_0x34f29c['getStyle']('line-height');return _0x20a440(_0x3c58ee)&&(_0x3c58ee=String(Number(_0x3c58ee['slice'](0x0,-0x1))/0x64)),String(_0x3c58ee)===String(_0x187dbd)?null:_0x3c58ee;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x1be103=this['editor'],_0x8d1a2a=this['editor']['config']['get']('lineHeight.defaultValue'),_0x12d42f=function(_0x4c3f3d,_0x48567f){const _0x390627={'model':{'key':_0x4c3f3d,'values':[]},'view':{}};for(const _0x5ba8ee of _0x48567f)'class'===_0x5ba8ee['view']?.['key']?(_0x390627['model']['values']['push'](_0x5ba8ee['model']),_0x390627['view'][_0x5ba8ee['model']]={'key':'class','value':_0x5ba8ee['view']['value']}):(_0x390627['model']['values']['push'](_0x5ba8ee['model']),_0x390627['view'][_0x5ba8ee['model']]={'key':'style','value':'line-height:'+_0x5ba8ee['model']+';'});return _0x390627;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x284888=>_0x284888['model']));_0x1be103['conversion']['attributeToAttribute'](_0x12d42f),_0x1be103['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x1465dc=>{let _0x482d54=_0x1465dc['getStyle']('line-height');return _0x20a440(_0x482d54)&&(_0x482d54=String(Number(_0x482d54['slice'](0x0,-0x1))/0x64)),_0x482d54===String(_0x8d1a2a)?null:_0x12d42f['model']['values']['includes'](_0x482d54)?_0x482d54:null;}}});}}class LineHeightUI extends _0x5aaea3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x29b44c={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x29b44c),this['_registerMenuBarComponent'](_0x29b44c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5881f3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x561774;for(const _0xefed26 in _0x5881f3){const _0x52ec56=_0xefed26,_0x4050bf=_0x5881f3[_0x52ec56];if('lineHeightLicenseKeyValid'==_0x4050bf||'lineHeightLicenseKeyInvalid'==_0x4050bf||'lineHeightLicenseKeyExpired'==_0x4050bf||'lineHeightLicenseKeyDomainLimit'==_0x4050bf||'lineHeightLicenseKeyNotAllowed'==_0x4050bf||'lineHeightLicenseKeyEvaluationLimit'==_0x4050bf||'lineHeightLicenseKeyUsageLimit'==_0x4050bf){delete _0x5881f3[_0x52ec56],_0x561774=_0x4050bf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x561774&&_0x5881f3['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x561774&&_0x5881f3['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x561774&&_0x5881f3['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x561774&&_0x5881f3['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x561774&&_0x5881f3['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x561774&&_0x5881f3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x56b6e8=this['editor'],t=_0x56b6e8['t'],_0x21ef00=_0x56b6e8['config']['get']('lineHeight'),_0x5ab955={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x21ef00)['map'](_0x4d5b58=>{const _0x25aa76=_0x5ab955[_0x4d5b58['title']];return _0x25aa76&&_0x25aa76!=_0x4d5b58['title']&&(_0x4d5b58=Object['assign']({},_0x4d5b58,{'title':_0x25aa76})),_0x4d5b58;});}['_prepareListOptions'](){const _0xadfad1=this['editor']['commands']['get']('lineHeight'),_0x2b6938=this['editor']['config']['get']('lineHeight.defaultValue'),_0x5f186c=this['_getLocalizedLineHeightOptions'](),_0x2dda6a=new _0x4efa1d(),_0x1764bf=_0x5f4fe6=>'default'===_0x5f4fe6||String(_0x2b6938)===_0x5f4fe6;for(const _0x2bbf76 of _0x5f186c){const _0x282b56={'type':'button','model':new _0x162a85({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x2bbf76['title'],'withText':!0x0})};_0x1764bf(_0x2bbf76['model'])?(_0x282b56['model']['bind']('isOn')['to'](_0xadfad1,'value',_0x538a6b=>!_0x538a6b),_0x282b56['model']['commandParam']=void 0x0):(_0x282b56['model']['bind']('isOn')['to'](_0xadfad1,'value',_0xafa4d3=>_0xafa4d3===_0x2bbf76['model']),_0x282b56['model']['commandParam']=_0x2bbf76['model']),_0x2dda6a['add'](_0x282b56);}if(this['_shouldRenderCustomValueOption']()){const _0x4cd57d=this['_getCustomValueOptionDefinition'](_0x5f186c);_0x2dda6a['add'](_0x4cd57d);}return _0x2dda6a;}['_getCustomValueOptionDefinition'](_0x45eef8){const _0x28ea9a=this['editor'],t=_0x28ea9a['t'],_0x4b397f=_0x28ea9a['commands']['get']('lineHeight'),_0x419338=_0x45eef8['map'](_0x2ed781=>_0x2ed781['model']),_0x5b62c0={'type':'button','model':new _0x162a85({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x5b62c0['model']['bind']('commandParam')['to'](_0x4b397f,'value'),_0x5b62c0['model']['bind']('isOn')['to'](_0x4b397f,'value',_0x4435ca=>!!_0x4435ca&&!_0x419338['includes'](String(_0x4435ca))),_0x5b62c0['model']['bind']('label')['to'](_0x4b397f,'value',_0x1d65e3=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x1d65e3))),_0x5b62c0;}['_registerToolbarComponent']({accessibleLabel:_0x54c430,options:_0x1a8c3a}){const _0x4546fa=this['editor'],_0x2463d5=_0x4546fa['commands']['get']('lineHeight');_0x4546fa['ui']['componentFactory']['add']('lineHeight',_0x271bb4=>{const _0x50d452=_0x598929(_0x271bb4);return _0x4dae00(_0x50d452,_0x1a8c3a,{'role':'menu','ariaLabel':_0x54c430}),_0x50d452['buttonView']['set']({'label':_0x54c430,'tooltip':!0x0,'icon':_0x3efa58}),_0x50d452['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x50d452['bind']('isEnabled')['to'](_0x2463d5),this['listenTo'](_0x50d452,'execute',_0x26c948=>{_0x4546fa['execute'](_0x26c948['source']['commandName'],{'value':_0x26c948['source']['commandParam']}),_0x4546fa['editing']['view']['focus']();}),_0x50d452['once']('change:isOpen',()=>{const _0x3df059=_0x50d452['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x50d452,_0x1a8c3a,_0x3df059);}),_0x50d452;});}['_registerMenuBarComponent']({accessibleLabel:_0x2ea7be,options:_0x3cfc7d}){const _0x24d4fc=this['editor'],_0x37d0ec=_0x24d4fc['commands']['get']('lineHeight');_0x24d4fc['ui']['componentFactory']['add']('menuBar:lineHeight',_0x33cd05=>{const _0x5e9032=new _0x5ad2f9(_0x33cd05);_0x5e9032['buttonView']['set']({'label':_0x2ea7be,'icon':_0x3efa58}),_0x5e9032['bind']('isEnabled')['to'](_0x37d0ec);const _0x16e505=new _0x241db1(_0x33cd05);for(const _0x53b803 of _0x3cfc7d){const _0x41fbe6=new _0x137569(_0x33cd05,_0x5e9032),_0x1d380f=new _0x4901d4(_0x33cd05);_0x1d380f['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x1d380f['bind'](...Object['keys'](_0x53b803['model']))['to'](_0x53b803['model']),_0x1d380f['delegate']('execute')['to'](_0x5e9032),_0x1d380f['on']('execute',()=>{_0x24d4fc['execute'](_0x53b803['model']['commandName'],{'value':_0x53b803['model']['commandParam']}),_0x24d4fc['editing']['view']['focus']();}),_0x41fbe6['children']['add'](_0x1d380f),_0x16e505['items']['add'](_0x41fbe6);}return _0x5e9032['panelView']['children']['add'](_0x16e505),this['_attachCustomOptionVisibilityHandler'](_0x5e9032,_0x3cfc7d,_0x16e505),_0x5e9032;});}['_attachCustomOptionVisibilityHandler'](_0xfe8e0a,_0x2fded2,_0x2c8b87){if(!this['_shouldRenderCustomValueOption']())return;const _0x15eead=()=>{if(!_0xfe8e0a['isOpen'])return;_0x2c8b87['items']['last']['isVisible']=Boolean(_0x2fded2['last']['model']['isOn']);};_0x15eead(),_0xfe8e0a['on']('change:isOpen',()=>{_0x15eead();});}}class LineHeight extends _0x5aaea3{static get['requires'](){return[LineHeightEditing,LineHeightUI];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{LineHeight,LineHeightCommand,LineHeightEditing,LineHeightTodoListIntegration,LineHeightUI};
|
|
23
|
+
import{Command as _0xa45122,Plugin as _0x5c9320}from'@ckeditor/ckeditor5-core';import{CKEditorError as _0xf690c7,Collection as _0x26ca9f,first as _0x559e38,uid as _0x50d9cb}from'@ckeditor/ckeditor5-utils';import{Matcher as _0x31f11f,isPercentageStyleValue as _0x64ae8b}from'@ckeditor/ckeditor5-engine';import{MenuBarMenuListItemButtonView as _0x1c3d12,MenuBarMenuListItemView as _0x17cd92,MenuBarMenuListView as _0x2fd378,MenuBarMenuView as _0x1f9829,UIModel as _0x46d173,addListToDropdown as _0x44c479,createDropdown as _0x3c63b7}from'@ckeditor/ckeditor5-ui';import{IconLineHeight as _0x5291dd}from'@ckeditor/ckeditor5-icons';var p=class extends _0xa45122{['refresh'](){const _0x375c30=this['editor']['model']['document'],_0x1c586e=_0x559e38(_0x375c30['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x1c586e)&&this['_canHaveLineHeight'](_0x1c586e),this['value']=this['isEnabled']&&_0x1c586e['getAttribute']('lineHeight');}execute(_0x5722b0={}){const _0x3b758c=this['editor']['model'],_0x361ea0=_0x3b758c['document']['selection'],_0x30f496=_0x5722b0['value'];_0x3b758c['change'](_0x101257=>{const _0x35ec5a=Array['from'](_0x361ea0['getSelectedBlocks']())['filter'](_0x55932e=>this['_canHaveLineHeight'](_0x55932e));for(const _0x28bf29 of _0x35ec5a)_0x30f496?_0x101257['setAttribute']('lineHeight',_0x30f496,_0x28bf29):_0x101257['removeAttribute']('lineHeight',_0x28bf29);});}_canHaveLineHeight(_0x1306cc){return this['editor']['model']['schema']['checkAttribute'](_0x1306cc,'lineHeight');}};const y={get 'single'(){return{'title':'Single','model':'single','view':{'key':'class','value':'line-height-single'}};},get 'double'(){return{'title':'Double','model':'double','view':{'key':'class','value':'line-height-double'}};}};function H(_0x4c08e1){return'string'==typeof _0x4c08e1&&'default'===_0x4c08e1['toLowerCase']();}function L(_0x55ff98){return _0x55ff98['options']['map'](_0x3cc5c5=>{return H(_0x3cc5c5)?{'title':String(_0x55ff98['defaultValue']),'model':'default'}:('number'==typeof _0x3cc5c5&&(_0x3cc5c5=String(_0x3cc5c5)),'string'!=typeof _0x3cc5c5?_0x3cc5c5:parseFloat(_0x3cc5c5)?{'title':_0x3cc5c5,'model':_0x3cc5c5,'view':{'name':'span','styles':{'line-height':_0x3cc5c5}}}:'string'==typeof(_0xead7bf=_0x3cc5c5)?y[_0xead7bf]:y[_0xead7bf['model']]);var _0xead7bf;})['filter'](_0x261c9e=>void 0x0!==_0x261c9e);}var v=class extends _0x5c9320{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const {plugins:_0x4c0d2f,conversion:_0x15bc5e}=this['editor'];_0x4c0d2f['has']('ListEditing')&&_0x4c0d2f['has']('TodoListEditing')&&(_0x4c0d2f['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x5a786d,_0x5d4f79,_0x3f57c4,_0x1e0d21,_0x1e1e82){'todo'==_0x1e1e82['getAttribute']('listType')&&_0x5d4f79&&(_0x5a786d['addClass']('ck-list-marker-line-height',_0x3f57c4),_0x5a786d['setStyle']('--ck-content-list-marker-line-height',_0x5d4f79,_0x3f57c4));}}),_0x15bc5e['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x15bc5e['for']('upcast')['add'](_0x3be890=>{_0x3be890['on']('element:li',function(_0x5d259c){const _0x47df84=new _0x31f11f(_0x5d259c);return(_0x17de8b,_0x574c68,_0x167ab6)=>{const _0x1a04c7=_0x47df84['match'](_0x574c68['viewItem']);if(!_0x1a04c7)return;const _0x921224=_0x1a04c7['match'];_0x921224['name']=!0x1,_0x167ab6['consumable']['consume'](_0x574c68['viewItem'],_0x921224);};}({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));}));}},b=class extends _0x5c9320{static get['pluginName'](){return'LineHeightEditing';}static get requires(){return[v];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a3eef){super(_0x1a3eef),_0x1a3eef['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}init(){const _0x187888=this['editor'];this['_validateConfig'](),_0x187888['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x187888['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x187888['commands']['add']('lineHeight',new p(_0x187888)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}afterInit(){!async function(_0x506357){const _0x3a4292='cvqCYM8ia9TDP6n5dmrzbJtlj03FwLxIpEWSUG7ARu21KfQoXNyg4ZBeOhskHV',_0x58fca9=0x79710,_0x207504={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x376d60(_0x359116){const _0x19d654=new window['Promise'](_0x4cc837=>{_0x359116['once']('ready',_0x4cc837);}),_0x43a130=window['Date']['now'](),_0x274419=_0x359116['config']['get']('licenseKey');async function _0x303c10(){let _0x4e46c3,_0x2579c5=null,_0x1faf46=null;try{return'GPL'==_0x274419?'NotAllowed':(_0x4e46c3=_0x1ad051(),_0x4e46c3?(_0x4e46c3['usageEndpoint']&&(_0x1faf46=_0x502d5d(_0x4e46c3['usageEndpoint'],_0x4e46c3['jti'])),await _0x457af2()?_0x4ec8d7()?_0x17f448()?'Expired':_0x54a3c7()?('evaluation'==_0x4e46c3['licenseType']&&(_0x2579c5=_0x3967b2('EvaluationLimit')),await _0x388621()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x17f448(){const _0x2b8fe4=['evaluation','trial']['includes'](_0x4e46c3['licenseType'])?_0x43a130/0x3e8:0xe10*_0x58fca9;return _0x4e46c3['exp']<_0x2b8fe4;}function _0x4ec8d7(){const _0x49734c=_0x4e46c3['features'];return!!_0x49734c&&(!!_0x49734c['includes']('*')||!!_0x49734c['includes']('LH'));}function _0x54a3c7(){const _0x28c304=_0x4e46c3['licensedHosts'];if(!_0x28c304||0x0==_0x28c304['length'])return!0x0;const {hostname:_0x43b1e4}=new URL(window['location']['href']);if(_0x28c304['includes'](_0x43b1e4))return!0x0;const _0x50e0d4=_0x43b1e4['split']('.');return _0x28c304['filter'](_0x2e597e=>_0x2e597e['includes']('*'))['map'](_0x208bb0=>_0x208bb0['split']('.'))['filter'](_0xc049eb=>_0xc049eb['length']<=_0x50e0d4['length'])['map'](_0x50096b=>Array(_0x50e0d4['length']-_0x50096b['length'])['fill']('*'===_0x50096b[0x0]?'*':'')['concat'](_0x50096b))['some'](_0x5323e8=>_0x50e0d4['every']((_0xa4963d,_0x5086a7)=>_0x5323e8[_0x5086a7]===_0xa4963d||'*'===_0x5323e8[_0x5086a7]));}function _0x388621(){return _0x2579c5&&_0x1faf46?new window['Promise']((_0x4711f5,_0x5c768f)=>{_0x2579c5['then'](_0x4711f5,_0x5c768f),_0x1faf46['then'](_0x543e00=>{'Valid'!=_0x543e00&&_0x4711f5(_0x543e00);},_0x5c768f);}):_0x2579c5||_0x1faf46||'Valid';}}function _0x502d5d(_0x31d7ac,_0x4e570a){return new window['Promise'](_0x1385be=>{if(_0x55c60a())return _0x1385be('Valid');_0x465e2d(),_0x359116['decorate']('_sendUsageRequest');let _0x4a6ce1=!0x1;const _0x12dd09=_0x50d9cb();function _0x4e9714(_0x3086bb){return!!_0x3086bb&&('object'==typeof _0x3086bb||'function'==typeof _0x3086bb)&&'function'==typeof _0x3086bb['then']&&'function'==typeof _0x3086bb['catch'];}function _0x8759d7(_0x3d0a10){_0x38d228(_0x3d0a10)['then'](_0x1f63e0=>_0x1f63e0&&'ok'==_0x1f63e0['status']?_0x48f728(_0x11f113(_0x12dd09+_0x4e570a))!=_0x1f63e0['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4745a3=>(_0x43544c(),_0x4745a3),()=>{const _0x5e9a9e=_0x3ea4f9();return null==_0x5e9a9e?(_0x43544c(),'Valid'):_0x43a130-_0x5e9a9e>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1385be)['catch'](()=>{_0x1385be('UsageLimit');});const _0x5eaa75=0x36ee80;function _0x43544c(){const _0x598967='llct-'+_0x48f728(_0x11f113(_0x31d7ac)),_0x28aff5=_0x5cc09a(_0x48f728(window['Math']['ceil'](_0x43a130/_0x5eaa75)));window['localStorage']['setItem'](_0x598967,_0x28aff5);}function _0x3ea4f9(){const _0xe61d28='llct-'+_0x48f728(_0x11f113(_0x31d7ac)),_0x3f2270=window['localStorage']['getItem'](_0xe61d28);return _0x3f2270?window['parseInt'](_0x5cc09a(_0x3f2270),0x10)*_0x5eaa75:null;}function _0x38d228(_0xa64ff5){return new window['Promise']((_0xe1d28,_0x2a1933)=>{_0xa64ff5['then'](_0xe1d28,_0x2a1933),window['setTimeout'](_0x2a1933,0x1d4c0);});}}_0x359116['on']('_sendUsageRequest',(_0x4e0aed,_0x4b9338)=>{if(_0x4b9338[0x0]!=_0x31d7ac)return _0x1385be('UsageLimit');_0x4b9338[0x1]={..._0x4b9338[0x1],'requestId':_0x12dd09};},{'priority':'high'}),_0x359116['on']('_sendUsageRequest',_0x4bfff8=>{_0x4e9714(_0x4bfff8['return'])&&(_0x4a6ce1=!0x0,_0x8759d7(_0x4bfff8['return']));},{'priority':'low'}),_0x19d654['then'](()=>{_0x4a6ce1||_0x1385be('UsageLimit');});});function _0x55c60a(){return'auto'==_0x359116['editing']['view']['_overlayModeHint'];}function _0x465e2d(){_0x359116['editing']['view']['_overlayModeHint']='auto';}}function _0x3967b2(_0x497f6d){const _0x20769d=[new window['Promise'](_0x22c52f=>setTimeout(_0x22c52f,0x93ecc)),_0x19d654['then'](()=>new window['Promise'](_0x585752=>{let _0x1b2f9e=0x0;_0x359116['model']['on']('applyOperation',(_0x67b2d1,_0xb603be)=>{_0xb603be[0x0]['isDocumentOperation']&&_0x1b2f9e++,0x5e8==_0x1b2f9e&&(_0x585752(),_0x67b2d1['off']());});}))];return window['Promise']['race'](_0x20769d)['then'](()=>_0x497f6d);}async function _0xf5df4e(){await _0x19d654,_0x359116['model']['change']=_0x1005b8,_0x359116['model']['enqueueChange']=_0x1005b8,_0x359116['enableReadOnlyMode']('model');}function _0x238eaa(_0x488f47){const _0x4c1191=_0x4cb942();_0x359116[_0x4c1191]='lineHeightLicenseKey'+_0x488f47,'Valid'!=_0x488f47&&_0xf5df4e();}function _0x4cb942(){const _0x263685=window['String'](window['performance']['now']())['replace']('.','');let _0xbefa35='c';for(let _0x2cec52=0x0;_0x2cec52<_0x263685['length'];_0x2cec52+=0x2){let _0x1813ab=window['parseInt'](_0x263685['substring'](_0x2cec52,_0x2cec52+0x2));_0x1813ab>=0x3e&&(_0x1813ab-=0x3e),_0xbefa35+=_0x3a4292[_0x1813ab];}return _0xbefa35;}function _0x1ad051(){const _0x5cd4da=_0x274419['split']('.');if(0x3!=_0x5cd4da['length'])return null;return _0x2f1bd3(_0x5cd4da[0x1]);function _0x2f1bd3(_0x34a332){const _0x147f38=_0xb76e7d(_0x34a332);return _0x147f38&&_0x5c9f17()?_0x147f38:null;function _0x5c9f17(){const _0x2d3770=_0x147f38['jti'],_0x2d4759=window['parseInt'](_0x2d3770['substring'](_0x2d3770['length']-0x8),0x10),_0xed7d46={..._0x147f38,'jti':_0x2d3770['substring'](0x0,_0x2d3770['length']-0x8)};return delete _0xed7d46['vc'],_0x11f113(_0xed7d46)==_0x2d4759;}}}async function _0x457af2(){let _0x13e2d3=!0x0;try{const [_0x4c2f56,_0x226ab2,_0x3f1813]=_0x274419['split']('.');return _0x1e0893(_0x4c2f56),await _0x561cfc(_0x4c2f56,_0x226ab2,_0x3f1813),_0x13e2d3;}catch{return!0x1;}function _0x1e0893(_0x375771){const _0x217931=_0xb76e7d(_0x375771);_0x217931&&'ES256'==_0x217931['alg']||(_0x13e2d3=!0x1);}async function _0x561cfc(_0x433133,_0x1d9cf2,_0x129c7e){const _0x1c077c=window['Uint8Array']['from'](_0x1e42f8(_0x129c7e),_0x3605c4=>_0x3605c4['charCodeAt'](0x0)),_0x58aecb=new window['TextEncoder']()['encode'](_0x433133+'.'+_0x1d9cf2),_0x25c73e=window['crypto']['subtle'];if(!_0x25c73e)return;const _0x8dc089=await _0x25c73e['importKey']('jwk',_0x207504,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x25c73e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x8dc089,_0x1c077c,_0x58aecb)||(_0x13e2d3=!0x1);}}function _0xb76e7d(_0x5d5121){return _0x5d5121['startsWith']('ey')?JSON['parse'](_0x1e42f8(_0x5d5121)):null;}function _0x1e42f8(_0xa03816){return window['atob'](_0xa03816['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x11f113(_0x3897d0){let _0x2a6416=0x1505;function _0x3d578c(_0xcea0){for(let _0x35c3d5=0x0;_0x35c3d5<_0xcea0['length'];_0x35c3d5++){const _0x45d52b=_0xcea0['charCodeAt'](_0x35c3d5);_0x2a6416=(_0x2a6416<<0x5)+_0x2a6416+_0x45d52b,_0x2a6416&=_0x2a6416;}}function _0x4c8d65(_0x38a21c){Array['isArray'](_0x38a21c)?_0x38a21c['forEach'](_0x4c8d65):_0x38a21c&&'object'==typeof _0x38a21c?Object['entries'](_0x38a21c)['sort']()['forEach'](([_0x213cb0,_0x116351])=>{_0x3d578c(_0x213cb0),_0x4c8d65(_0x116351);}):_0x3d578c(window['String'](_0x38a21c));}return _0x4c8d65(_0x3897d0),_0x2a6416>>>0x0;}function _0x48f728(_0x2f3930){return _0x2f3930['toString'](0x10)['padStart'](0x8,'0');}function _0x5cc09a(_0x2c29a7){return _0x2c29a7['split']('')['reverse']()['join']('');}function _0x1005b8(){}_0x238eaa(await _0x303c10());}_0x376d60(_0x506357['editor']);}(this);}_validateConfig(){const _0x158f7a=this['editor'];if(!_0x158f7a['config']['get']('lineHeight.supportAllValues'))return;const _0x1f5e19=_0x158f7a['config']['get']('lineHeight.options')['filter'](_0x286d2d=>'string'==typeof _0x286d2d&&(!H(_0x286d2d)&&isNaN(Number(_0x286d2d))));if(_0x1f5e19['length'])throw new _0xf690c7('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x1f5e19});}_prepareAnyValueConverters(){const _0x737cd0=this['editor'],_0x18a2c8=this['editor']['config']['get']('lineHeight.defaultValue');_0x737cd0['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x41acd3=>String(_0x41acd3)===String(_0x18a2c8)?null:{'key':'style','value':{'line-height':_0x41acd3}}}),_0x737cd0['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x1fa6fd=>{let _0x54b27d=_0x1fa6fd['getStyle']('line-height');return _0x64ae8b(_0x54b27d)&&(_0x54b27d=String(Number(_0x54b27d['slice'](0x0,-0x1))/0x64)),String(_0x54b27d)===String(_0x18a2c8)?null:_0x54b27d;}},'view':{'styles':{'line-height':/.*/}}});}_preparePredefinedConverters(){const _0x2cc540=this['editor'],_0x4818af=this['editor']['config']['get']('lineHeight.defaultValue'),_0x561d53=function(_0x510914,_0x245d32){const _0x3b05dc={'model':{'key':_0x510914,'values':[]},'view':{}};for(const _0x4695e6 of _0x245d32)'class'===_0x4695e6['view']?.['key']?(_0x3b05dc['model']['values']['push'](_0x4695e6['model']),_0x3b05dc['view'][_0x4695e6['model']]={'key':'class','value':_0x4695e6['view']['value']}):(_0x3b05dc['model']['values']['push'](_0x4695e6['model']),_0x3b05dc['view'][_0x4695e6['model']]={'key':'style','value':'line-height:'+_0x4695e6['model']+';'});return _0x3b05dc;}('lineHeight',L(this['editor']['config']['get']('lineHeight'))['filter'](_0x40925a=>_0x40925a['model']));_0x2cc540['conversion']['attributeToAttribute'](_0x561d53),_0x2cc540['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x14d806=>{let _0xf5c193=_0x14d806['getStyle']('line-height');return _0x64ae8b(_0xf5c193)&&(_0xf5c193=String(Number(_0xf5c193['slice'](0x0,-0x1))/0x64)),_0xf5c193===String(_0x4818af)?null:_0x561d53['model']['values']['includes'](_0xf5c193)?_0xf5c193:null;}}});}},k=class extends _0x5c9320{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x489190={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x489190),this['_registerMenuBarComponent'](_0x489190),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x19f02f=[this['editor']];for(const _0x1d1f3d of _0x19f02f){let _0x2e0e1f;for(const _0x6ac187 in _0x1d1f3d){const _0x1ca94a=_0x6ac187,_0x116361=_0x1d1f3d[_0x1ca94a];if('lineHeightLicenseKeyValid'==_0x116361||'lineHeightLicenseKeyInvalid'==_0x116361||'lineHeightLicenseKeyExpired'==_0x116361||'lineHeightLicenseKeyDomainLimit'==_0x116361||'lineHeightLicenseKeyNotAllowed'==_0x116361||'lineHeightLicenseKeyEvaluationLimit'==_0x116361||'lineHeightLicenseKeyUsageLimit'==_0x116361){delete _0x1d1f3d[_0x1ca94a],_0x2e0e1f=_0x116361,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x2e0e1f&&_0x1d1f3d['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x2e0e1f&&_0x1d1f3d['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x2e0e1f&&_0x1d1f3d['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x2e0e1f&&_0x1d1f3d['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x2e0e1f&&_0x1d1f3d['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x2e0e1f&&_0x1d1f3d['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_shouldRenderCustomValueOption(){return this['editor']['config']['get']('lineHeight.supportAllValues');}_getLocalizedLineHeightOptions(){const _0xdf1be0=this['editor'],t=_0xdf1be0['t'],_0x2d2107=_0xdf1be0['config']['get']('lineHeight'),_0x2582cb={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return L(_0x2d2107)['map'](_0x2a6872=>{const _0x4aa61c=_0x2582cb[_0x2a6872['title']];return _0x4aa61c&&_0x4aa61c!=_0x2a6872['title']&&(_0x2a6872=Object['assign']({},_0x2a6872,{'title':_0x4aa61c})),_0x2a6872;});}_prepareListOptions(){const _0x1680b3=this['editor']['commands']['get']('lineHeight'),_0x454296=this['editor']['config']['get']('lineHeight.defaultValue'),_0x3ab013=this['_getLocalizedLineHeightOptions'](),_0x2bac9b=new _0x26ca9f(),_0x5b3063=_0x5a87bb=>'default'===_0x5a87bb||String(_0x454296)===_0x5a87bb;for(const _0xb38928 of _0x3ab013){const _0x36a2ee={'type':'button','model':new _0x46d173({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0xb38928['title'],'withText':!0x0})};_0x5b3063(_0xb38928['model'])?(_0x36a2ee['model']['bind']('isOn')['to'](_0x1680b3,'value',_0x1080bf=>!_0x1080bf),_0x36a2ee['model']['commandParam']=void 0x0):(_0x36a2ee['model']['bind']('isOn')['to'](_0x1680b3,'value',_0x4b8fdf=>_0x4b8fdf===_0xb38928['model']),_0x36a2ee['model']['commandParam']=_0xb38928['model']),_0x2bac9b['add'](_0x36a2ee);}if(this['_shouldRenderCustomValueOption']()){const _0x217d40=this['_getCustomValueOptionDefinition'](_0x3ab013);_0x2bac9b['add'](_0x217d40);}return _0x2bac9b;}_getCustomValueOptionDefinition(_0x311a83){const _0x552de6=this['editor'],t=_0x552de6['t'],_0x396afe=_0x552de6['commands']['get']('lineHeight'),_0x5ab720=_0x311a83['map'](_0x30e431=>_0x30e431['model']),_0x17977a={'type':'button','model':new _0x46d173({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x17977a['model']['bind']('commandParam')['to'](_0x396afe,'value'),_0x17977a['model']['bind']('isOn')['to'](_0x396afe,'value',_0x311d5c=>!!_0x311d5c&&!_0x5ab720['includes'](String(_0x311d5c))),_0x17977a['model']['bind']('label')['to'](_0x396afe,'value',_0x383ce5=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x383ce5))),_0x17977a;}_registerToolbarComponent({accessibleLabel:_0x18e738,options:_0x523398}){const _0x4af155=this['editor'],_0x24430c=_0x4af155['commands']['get']('lineHeight');_0x4af155['ui']['componentFactory']['add']('lineHeight',_0x572f73=>{const _0x549933=_0x3c63b7(_0x572f73);return _0x44c479(_0x549933,_0x523398,{'role':'menu','ariaLabel':_0x18e738}),_0x549933['buttonView']['set']({'label':_0x18e738,'tooltip':!0x0,'icon':_0x5291dd}),_0x549933['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x549933['bind']('isEnabled')['to'](_0x24430c),this['listenTo'](_0x549933,'execute',_0x1c12a=>{_0x4af155['execute'](_0x1c12a['source']['commandName'],{'value':_0x1c12a['source']['commandParam']}),_0x4af155['editing']['view']['focus']();}),_0x549933['once']('change:isOpen',()=>{const _0x1e2e70=_0x549933['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x549933,_0x523398,_0x1e2e70);}),_0x549933;});}_registerMenuBarComponent({accessibleLabel:_0x52aec1,options:_0x535c69}){const _0x17a1d2=this['editor'],_0x21d0ba=_0x17a1d2['commands']['get']('lineHeight');_0x17a1d2['ui']['componentFactory']['add']('menuBar:lineHeight',_0x40a76a=>{const _0x36a5bb=new _0x1f9829(_0x40a76a);_0x36a5bb['buttonView']['set']({'label':_0x52aec1,'icon':_0x5291dd}),_0x36a5bb['bind']('isEnabled')['to'](_0x21d0ba);const _0x75be43=new _0x2fd378(_0x40a76a);for(const _0x24a41b of _0x535c69){const _0x51ece6=new _0x17cd92(_0x40a76a,_0x36a5bb),_0x605578=new _0x1c3d12(_0x40a76a);_0x605578['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x605578['bind'](...Object['keys'](_0x24a41b['model']))['to'](_0x24a41b['model']),_0x605578['delegate']('execute')['to'](_0x36a5bb),_0x605578['on']('execute',()=>{_0x17a1d2['execute'](_0x24a41b['model']['commandName'],{'value':_0x24a41b['model']['commandParam']}),_0x17a1d2['editing']['view']['focus']();}),_0x51ece6['children']['add'](_0x605578),_0x75be43['items']['add'](_0x51ece6);}return _0x36a5bb['panelView']['children']['add'](_0x75be43),this['_attachCustomOptionVisibilityHandler'](_0x36a5bb,_0x535c69,_0x75be43),_0x36a5bb;});}_attachCustomOptionVisibilityHandler(_0x227580,_0x1655d2,_0x10a312){if(!this['_shouldRenderCustomValueOption']())return;const _0x5947ff=()=>{if(!_0x227580['isOpen'])return;_0x10a312['items']['last']['isVisible']=Boolean(_0x1655d2['last']['model']['isOn']);};_0x5947ff(),_0x227580['on']('change:isOpen',()=>{_0x5947ff();});}},_=class extends _0x5c9320{static get requires(){return[b,k];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{_ as LineHeight,p as LineHeightCommand,b as LineHeightEditing,v as LineHeightTodoListIntegration,k as LineHeightUI};
|
|
@@ -1,31 +1,30 @@
|
|
|
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 '../../theme/integrations/todolist.css';
|
|
6
|
+
* @module line-height/integrations/todolist
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
11
10
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
* The to-do list line height support plugin.
|
|
12
|
+
*/
|
|
14
13
|
export declare class LineHeightTodoListIntegration extends Plugin {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get pluginName(): "LineHeightTodoListIntegration";
|
|
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;
|
|
31
30
|
}
|
package/dist/lineheight.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
|
|
10
|
-
import { LineHeightEditing } from
|
|
11
|
-
import { LineHeightUI } from
|
|
6
|
+
* @module line-height/lineheight
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { LineHeightEditing } from "./lineheightediting.js";
|
|
11
|
+
import { LineHeightUI } from "./lineheightui.js";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
* The line height plugin.
|
|
14
|
+
*
|
|
15
|
+
* For a detailed overview, check the {@glink features/line-height Line height feature documentation}.
|
|
16
|
+
*/
|
|
17
17
|
export declare class LineHeight 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<[LineHeightEditing, LineHeightUI]>;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName(): "LineHeight";
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static override get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static override get isPremiumPlugin(): true;
|
|
34
34
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
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 } from
|
|
6
|
+
* @module line-height/lineheightcommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from "@ckeditor/ckeditor5-core";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* The line height command. It applies the line height on block elements.
|
|
12
|
+
*/
|
|
13
13
|
export declare class LineHeightCommand extends Command {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
override refresh(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Executes the command.
|
|
20
|
+
*
|
|
21
|
+
* @param options.value The value to apply. When `undefined`, the command will remove the attribute.
|
|
22
|
+
*/
|
|
23
|
+
override execute(options?: {
|
|
24
|
+
value?: string;
|
|
25
|
+
}): void;
|
|
26
26
|
}
|