@ckeditor/ckeditor5-pagination 41.2.1 → 41.3.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/build/pagination.js +2 -2
  2. package/dist/content-index.css +4 -0
  3. package/dist/editor-index.css +72 -0
  4. package/dist/index.css +158 -0
  5. package/dist/translations/ar.d.ts +8 -0
  6. package/dist/translations/ar.js +23 -0
  7. package/dist/translations/bg.d.ts +8 -0
  8. package/dist/translations/bg.js +23 -0
  9. package/dist/translations/bn.d.ts +8 -0
  10. package/dist/translations/bn.js +23 -0
  11. package/dist/translations/ca.d.ts +8 -0
  12. package/dist/translations/ca.js +23 -0
  13. package/dist/translations/cs.d.ts +8 -0
  14. package/dist/translations/cs.js +23 -0
  15. package/dist/translations/da.d.ts +8 -0
  16. package/dist/translations/da.js +23 -0
  17. package/dist/translations/de.d.ts +8 -0
  18. package/dist/translations/de.js +23 -0
  19. package/dist/translations/el.d.ts +8 -0
  20. package/dist/translations/el.js +23 -0
  21. package/dist/translations/en-au.d.ts +8 -0
  22. package/dist/translations/en-au.js +23 -0
  23. package/dist/translations/en.d.ts +8 -0
  24. package/dist/translations/en.js +23 -0
  25. package/dist/translations/es.d.ts +8 -0
  26. package/dist/translations/es.js +23 -0
  27. package/dist/translations/et.d.ts +8 -0
  28. package/dist/translations/et.js +23 -0
  29. package/dist/translations/fi.d.ts +8 -0
  30. package/dist/translations/fi.js +23 -0
  31. package/dist/translations/fr.d.ts +8 -0
  32. package/dist/translations/fr.js +23 -0
  33. package/dist/translations/gl.d.ts +8 -0
  34. package/dist/translations/gl.js +23 -0
  35. package/dist/translations/he.d.ts +8 -0
  36. package/dist/translations/he.js +23 -0
  37. package/dist/translations/hi.d.ts +8 -0
  38. package/dist/translations/hi.js +23 -0
  39. package/dist/translations/hr.d.ts +8 -0
  40. package/dist/translations/hr.js +23 -0
  41. package/dist/translations/hu.d.ts +8 -0
  42. package/dist/translations/hu.js +23 -0
  43. package/dist/translations/id.d.ts +8 -0
  44. package/dist/translations/id.js +23 -0
  45. package/dist/translations/it.d.ts +8 -0
  46. package/dist/translations/it.js +23 -0
  47. package/dist/translations/ja.d.ts +8 -0
  48. package/dist/translations/ja.js +23 -0
  49. package/dist/translations/jv.d.ts +8 -0
  50. package/dist/translations/jv.js +23 -0
  51. package/dist/translations/ko.d.ts +8 -0
  52. package/dist/translations/ko.js +23 -0
  53. package/dist/translations/lt.d.ts +8 -0
  54. package/dist/translations/lt.js +23 -0
  55. package/dist/translations/lv.d.ts +8 -0
  56. package/dist/translations/lv.js +23 -0
  57. package/dist/translations/ms.d.ts +8 -0
  58. package/dist/translations/ms.js +23 -0
  59. package/dist/translations/nl.d.ts +8 -0
  60. package/dist/translations/nl.js +23 -0
  61. package/dist/translations/no.d.ts +8 -0
  62. package/dist/translations/no.js +23 -0
  63. package/dist/translations/pl.d.ts +8 -0
  64. package/dist/translations/pl.js +23 -0
  65. package/dist/translations/pt-br.d.ts +8 -0
  66. package/dist/translations/pt-br.js +23 -0
  67. package/dist/translations/pt.d.ts +8 -0
  68. package/dist/translations/pt.js +23 -0
  69. package/dist/translations/ro.d.ts +8 -0
  70. package/dist/translations/ro.js +23 -0
  71. package/dist/translations/ru.d.ts +8 -0
  72. package/dist/translations/ru.js +23 -0
  73. package/dist/translations/sk.d.ts +8 -0
  74. package/dist/translations/sk.js +23 -0
  75. package/dist/translations/sr-latn.d.ts +8 -0
  76. package/dist/translations/sr-latn.js +23 -0
  77. package/dist/translations/sr.d.ts +8 -0
  78. package/dist/translations/sr.js +23 -0
  79. package/dist/translations/sv.d.ts +8 -0
  80. package/dist/translations/sv.js +23 -0
  81. package/dist/translations/th.d.ts +8 -0
  82. package/dist/translations/th.js +23 -0
  83. package/dist/translations/tr.d.ts +8 -0
  84. package/dist/translations/tr.js +23 -0
  85. package/dist/translations/ug.d.ts +8 -0
  86. package/dist/translations/ug.js +23 -0
  87. package/dist/translations/uk.d.ts +8 -0
  88. package/dist/translations/uk.js +23 -0
  89. package/dist/translations/ur.d.ts +8 -0
  90. package/dist/translations/ur.js +23 -0
  91. package/dist/translations/vi.d.ts +8 -0
  92. package/dist/translations/vi.js +23 -0
  93. package/dist/translations/zh-cn.d.ts +8 -0
  94. package/dist/translations/zh-cn.js +23 -0
  95. package/dist/translations/zh.d.ts +8 -0
  96. package/dist/translations/zh.js +23 -0
  97. package/dist/types/augmentation.d.ts +23 -0
  98. package/dist/types/index.d.ts +13 -0
  99. package/dist/types/pagination.d.ts +151 -0
  100. package/dist/types/paginationediting.d.ts +58 -0
  101. package/dist/types/paginationlookup.d.ts +62 -0
  102. package/dist/types/paginationrenderer.d.ts +44 -0
  103. package/dist/types/paginationui.d.ts +29 -0
  104. package/dist/types/ui/linesrepository.d.ts +38 -0
  105. package/dist/types/ui/lineview.d.ts +57 -0
  106. package/dist/types/ui/pagenavigatorview.d.ts +65 -0
  107. package/lang/contexts.json +2 -1
  108. package/package.json +4 -3
  109. package/src/index.js +1 -1
  110. package/src/pagination.js +1 -1
  111. package/src/paginationediting.js +1 -1
  112. package/src/paginationlookup.js +1 -1
  113. package/src/paginationrenderer.js +1 -1
  114. package/src/paginationui.js +1 -1
  115. package/src/ui/linesrepository.js +1 -1
  116. package/src/ui/lineview.js +1 -1
  117. package/src/ui/pagenavigatorview.js +1 -1
@@ -0,0 +1,151 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module pagination/pagination
11
+ * @publicApi
12
+ */
13
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
14
+ import PaginationEditing from './paginationediting.js';
15
+ import PaginationUI from './paginationui.js';
16
+ /**
17
+ * The pagination feature.
18
+ */
19
+ export default class Pagination extends Plugin {
20
+ /**
21
+ * The current page number.
22
+ *
23
+ * @observable
24
+ * @default 1
25
+ * @readonly
26
+ */
27
+ readonly pageNumber: number;
28
+ /**
29
+ * The total page count.
30
+ *
31
+ * @observable
32
+ * @default 1
33
+ * @readonly
34
+ */
35
+ readonly totalPages: number;
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ static get pluginName(): "Pagination";
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ static get requires(): readonly [typeof PaginationEditing, typeof PaginationUI];
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ constructor(editor: Editor);
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ init(): void;
52
+ /**
53
+ * Scroll the editor content to a desired page.
54
+ *
55
+ * @param pageNumber The page number (counting from 1).
56
+ */
57
+ scrollToPage(pageNumber: number): void;
58
+ }
59
+ /**
60
+ * The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination` package.
61
+ *
62
+ * ```ts
63
+ * ClassicEditor
64
+ * .create( editorElement, {
65
+ * pagination: {
66
+ * // A4
67
+ * pageWidth: '21cm',
68
+ * pageHeight: '29.7cm',
69
+ *
70
+ * pageMargins: {
71
+ * top: '20mm',
72
+ * bottom: '20mm',
73
+ * left: '12mm',
74
+ * right: '12mm'
75
+ * }
76
+ * }
77
+ * } )
78
+ * .then( ... )
79
+ * .catch( ... );
80
+ * ```
81
+ *
82
+ * **NOTE:** The configuration of the plugin must match the {@link module:export-pdf/exportpdf~ExportPdfConfig export to PDF} or
83
+ * {@link module:export-word/exportword~ExportWordConfig export to Word} feature configuration.
84
+ *
85
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
86
+ */
87
+ export interface PaginationConfig {
88
+ /**
89
+ * The page width.
90
+ */
91
+ pageWidth: string;
92
+ /**
93
+ * The page height.
94
+ */
95
+ pageHeight: string;
96
+ /**
97
+ * The page margins.
98
+ */
99
+ pageMargins: PaginationMarginsConfig;
100
+ /**
101
+ * The pagination feature is by default enabled only in browsers that are using the Blink engine
102
+ * (Chrome, Chromium, newer Edge, newer Opera). This is due to some existing incompatibilities in Firefox and Safari;
103
+ * we will be working on them in the future.
104
+ *
105
+ * This behavior can be modified by setting this configuration value to `true`.
106
+ *
107
+ * @default false
108
+ */
109
+ enableOnUnsupportedBrowsers?: boolean;
110
+ }
111
+ /**
112
+ * The configuration of the pagination feature page margins.
113
+ */
114
+ export interface PaginationMarginsConfig {
115
+ /**
116
+ * The top margin.
117
+ */
118
+ top: string;
119
+ /**
120
+ * The bottom margin.
121
+ */
122
+ bottom: string;
123
+ /**
124
+ * The left margin.
125
+ */
126
+ left: string;
127
+ /**
128
+ * The right margin.
129
+ */
130
+ right: string;
131
+ }
132
+ /**
133
+ * Invalid license key. Please contact our customer support at https://ckeditor.com/contact/.
134
+ *
135
+ * @error pagination-invalid-license-key
136
+ */
137
+ /**
138
+ * You have exhausted the trial usage limit (reason: reached document changes limit). Restart the editor.
139
+ *
140
+ * Please contact our customer support to get a full access at https://ckeditor.com/contact/.
141
+ *
142
+ * @error pagination-trial-license-key-reached-limit-changes
143
+ */
144
+ /**
145
+ * The configuration required by the pagination plugin is missing.
146
+ * Follow the instructions provided in {@glink features/pagination/pagination#configuration Pagination feature documentation}
147
+ * to initialize the plugin properly.
148
+ *
149
+ * @error pagination-config-not-found
150
+ * @param {module:core/editor/editorconfig~EditorConfig} config Configuration of the editor.
151
+ */
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module pagination/paginationediting
11
+ */
12
+ import { Plugin } from 'ckeditor5/src/core.js';
13
+ import PaginationLookup from './paginationlookup.js';
14
+ import PaginationRenderer from './paginationrenderer.js';
15
+ import '../theme/pagination.css';
16
+ /**
17
+ * The pagination editing plugin.
18
+ */
19
+ export default class PaginationEditing extends Plugin {
20
+ /**
21
+ * The current page number.
22
+ *
23
+ * @observable
24
+ * @default 1
25
+ * @readonly
26
+ */
27
+ readonly pageNumber: number;
28
+ /**
29
+ * The total page count.
30
+ *
31
+ * @observable
32
+ * @default 1
33
+ * @readonly
34
+ */
35
+ totalPages: number;
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ static get pluginName(): "PaginationEditing";
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ static get requires(): readonly [typeof PaginationLookup, typeof PaginationRenderer];
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ init(): void;
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ destroy(): void;
52
+ /**
53
+ * Scroll the editor content to a desired page.
54
+ *
55
+ * @param pageNumber The page number (counting from 1).
56
+ */
57
+ scrollToPage(pageNumber: number): void;
58
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module pagination/paginationlookup
11
+ */
12
+ import type { Range } from 'ckeditor5/src/engine.js';
13
+ import { Plugin } from 'ckeditor5/src/core.js';
14
+ /**
15
+ * The pagination lookup plugin.
16
+ */
17
+ export default class PaginationLookup extends Plugin {
18
+ /**
19
+ * List of the page breaks.
20
+ *
21
+ * @observable
22
+ * @default []
23
+ * @readonly
24
+ */
25
+ pageBreaks: Array<PageBreakInfo>;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get pluginName(): "PaginationLookup";
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ init(): void;
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ afterInit(): void;
38
+ /**
39
+ * @inheritDoc
40
+ */
41
+ destroy(): void;
42
+ }
43
+ /**
44
+ * Single page break information.
45
+ */
46
+ export declare class PageBreakInfo {
47
+ readonly type: 'manual' | 'element' | 'text';
48
+ readonly modelRange: Range;
49
+ /**
50
+ * Creates PageBreakInfo instance.
51
+ */
52
+ constructor({ type, modelRange, domNode, offset }: {
53
+ readonly type: PageBreakInfo['type'];
54
+ readonly modelRange: PageBreakInfo['modelRange'];
55
+ readonly domNode: Node;
56
+ readonly offset: number;
57
+ });
58
+ /**
59
+ * The top offset in window coordinates.
60
+ */
61
+ get offset(): number;
62
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module pagination/paginationrenderer
11
+ */
12
+ import { Plugin } from 'ckeditor5/src/core.js';
13
+ /**
14
+ * The pagination renderer plugin. This plugin renders pagination lines (with numbers) over
15
+ * the editing root of the editor.
16
+ */
17
+ export default class PaginationRenderer extends Plugin {
18
+ /**
19
+ * The current page number.
20
+ *
21
+ * @observable
22
+ * @default 1
23
+ * @readonly
24
+ */
25
+ pageNumber: number;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get pluginName(): "PaginationRenderer";
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ init(): void;
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ destroy(): void;
38
+ /**
39
+ * Scroll the editor content to a desired page.
40
+ *
41
+ * @param pageNumber The page number (counting from 1).
42
+ */
43
+ scrollToPage(pageNumber: number): void;
44
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module pagination/paginationui
11
+ */
12
+ import { Plugin } from 'ckeditor5/src/core.js';
13
+ /**
14
+ * The pagination UI plugin. It introduces:
15
+ *
16
+ * * The `'pageNavigation'` UI view,
17
+ * * The `'nextPage'` UI button,
18
+ * * The `'previousPage'` UI button.
19
+ */
20
+ export default class PaginationUI extends Plugin {
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get pluginName(): "PaginationUI";
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ init(): void;
29
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module pagination/ui/linesrepository
11
+ */
12
+ import type { Editor } from 'ckeditor5/src/core.js';
13
+ /**
14
+ * Helper class for managing the page break lines.
15
+ */
16
+ export default class LinesRepository {
17
+ /**
18
+ * Creates a new lines repository instance.
19
+ */
20
+ constructor(editor: Editor);
21
+ /**
22
+ * Destroys the lines repository instance.
23
+ */
24
+ destroy(): void;
25
+ /**
26
+ * Hides all lines.
27
+ */
28
+ cleanLines(): void;
29
+ /**
30
+ * Shows a line at specified page coordinates.
31
+ *
32
+ * @param left
33
+ * @param top
34
+ * @param width
35
+ * @param pageNumber The page number (line label).
36
+ */
37
+ showLine(left: number, top: number, width: number, pageNumber: number): void;
38
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module pagination/ui/lineview
11
+ */
12
+ import { View } from 'ckeditor5/src/ui.js';
13
+ import '../../theme/line.css';
14
+ /**
15
+ * The page break line view.
16
+ */
17
+ export default class LineView extends View {
18
+ /**
19
+ * Controls whether the line is visible.
20
+ *
21
+ * @observable
22
+ * @default false
23
+ */
24
+ isVisible: boolean;
25
+ /**
26
+ * Controls the line position x coordinate.
27
+ *
28
+ * @observable
29
+ * @default null
30
+ */
31
+ left: number | null;
32
+ /**
33
+ * Controls the line width.
34
+ *
35
+ * @observable
36
+ * @default null
37
+ */
38
+ width: number | null;
39
+ /**
40
+ * Controls the line label.
41
+ *
42
+ * @observable
43
+ * @default null
44
+ */
45
+ pageNumber: number | null;
46
+ /**
47
+ * Controls the line position y coordinate.
48
+ *
49
+ * @observable
50
+ * @default null
51
+ */
52
+ top: number | null;
53
+ /**
54
+ * @inheritDoc
55
+ */
56
+ constructor();
57
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module pagination/ui/pagenavigatorview
11
+ */
12
+ import { View, InputNumberView } from 'ckeditor5/src/ui.js';
13
+ import { type Locale } from 'ckeditor5/src/utils.js';
14
+ import '../../theme/pagenavigator.css';
15
+ /**
16
+ * The page navigation UI element.
17
+ */
18
+ export default class PageNavigatorView extends View {
19
+ /**
20
+ * The current page number.
21
+ *
22
+ * @observable
23
+ * @default 1
24
+ */
25
+ pageNumber: number;
26
+ /**
27
+ * The total page count.
28
+ *
29
+ * @observable
30
+ * @default 1
31
+ */
32
+ totalPages: number;
33
+ /**
34
+ * Controls whether the component is enabled.
35
+ *
36
+ * @observable
37
+ * @default true
38
+ */
39
+ isEnabled: boolean;
40
+ /**
41
+ * An instance of the input number view to type a new page number.
42
+ */
43
+ pageNumberView: InputNumberView;
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ constructor(locale: Locale);
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ render(): void;
52
+ /**
53
+ * @inheritDoc
54
+ */
55
+ focus(): void;
56
+ }
57
+ /**
58
+ * An event fired after {@link module:pagination/ui/pagenavigatorview~PageNavigatorView#pageNumberView} value is updated.
59
+ *
60
+ * @eventName ~PageNavigatorView#navigation
61
+ */
62
+ export type PaginationNavigationEvent = {
63
+ name: 'navigation';
64
+ args: [pageNumber: number];
65
+ };
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "Show next page": "A toolbar button tooltip for a pagination feature.",
3
- "Show previous page": "A toolbar button tooltip for a pagination feature."
3
+ "Show previous page": "A toolbar button tooltip for a pagination feature.",
4
+ "Current page number (from 1 to %0)": "Assistive technologies label for the page number input in the pagination feature's toolbar UI. Example: 'Current page number (from 1 to 10)'."
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-pagination",
3
- "version": "41.2.1",
3
+ "version": "41.3.0-alpha.3",
4
4
  "description": "Pagination feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,8 +12,8 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-theme-lark": "41.2.1",
16
- "ckeditor5": "41.2.1",
15
+ "@ckeditor/ckeditor5-theme-lark": "41.3.0-alpha.3",
16
+ "ckeditor5": "41.3.0-alpha.3",
17
17
  "lodash-es": "4.17.21"
18
18
  },
19
19
  "license": "SEE LICENSE IN LICENSE.md",
@@ -21,6 +21,7 @@
21
21
  "homepage": "https://ckeditor.com/ckeditor-5",
22
22
  "bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
23
23
  "files": [
24
+ "dist",
24
25
  "lang",
25
26
  "src/**/*.js",
26
27
  "src/**/*.d.ts",
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xe876(){var _0xdacb7c=['20yIllwS','427725KmMcSL','638zXmLme','3DHJxiF','30wHBwPk','560lwgqDB','1250332xztSyk','1792629hllQty','167988TvyStw','606838MdcJdk','683040BwcaAX','38885QDHiqE'];_0xe876=function(){return _0xdacb7c;};return _0xe876();}function _0x5e9e(_0x4f1e0f,_0x28b61a){var _0xe87652=_0xe876();return _0x5e9e=function(_0x5e9e28,_0x1caf38){_0x5e9e28=_0x5e9e28-0xd0;var _0x4db135=_0xe87652[_0x5e9e28];return _0x4db135;},_0x5e9e(_0x4f1e0f,_0x28b61a);}(function(_0x4ad496,_0x2a56bb){var _0x4f390c=_0x5e9e,_0x42c60a=_0x4ad496();while(!![]){try{var _0x277831=-parseInt(_0x4f390c(0xda))/0x1+parseInt(_0x4f390c(0xd6))/0x2*(parseInt(_0x4f390c(0xd0))/0x3)+-parseInt(_0x4f390c(0xd3))/0x4+parseInt(_0x4f390c(0xd1))/0x5*(-parseInt(_0x4f390c(0xd7))/0x6)+-parseInt(_0x4f390c(0xd8))/0x7*(-parseInt(_0x4f390c(0xd2))/0x8)+parseInt(_0x4f390c(0xd4))/0x9*(parseInt(_0x4f390c(0xd9))/0xa)+-parseInt(_0x4f390c(0xdb))/0xb*(-parseInt(_0x4f390c(0xd5))/0xc);if(_0x277831===_0x2a56bb)break;else _0x42c60a['push'](_0x42c60a['shift']());}catch(_0xe39193){_0x42c60a['push'](_0x42c60a['shift']());}}}(_0xe876,0x74ff9));export{default as Pagination}from'./pagination.js';import'./augmentation.js';
23
+ function _0x20f0(_0x12cf16,_0x556432){var _0x1cb31c=_0x1cb3();return _0x20f0=function(_0x20f00d,_0xe7d90c){_0x20f00d=_0x20f00d-0x72;var _0x5be038=_0x1cb31c[_0x20f00d];return _0x5be038;},_0x20f0(_0x12cf16,_0x556432);}(function(_0x138225,_0x40bcee){var _0x3ea89c=_0x20f0,_0x3d0418=_0x138225();while(!![]){try{var _0x193cf2=-parseInt(_0x3ea89c(0x77))/0x1+parseInt(_0x3ea89c(0x79))/0x2+parseInt(_0x3ea89c(0x72))/0x3*(parseInt(_0x3ea89c(0x7a))/0x4)+parseInt(_0x3ea89c(0x73))/0x5+parseInt(_0x3ea89c(0x76))/0x6*(-parseInt(_0x3ea89c(0x78))/0x7)+-parseInt(_0x3ea89c(0x75))/0x8+parseInt(_0x3ea89c(0x74))/0x9;if(_0x193cf2===_0x40bcee)break;else _0x3d0418['push'](_0x3d0418['shift']());}catch(_0x5eda03){_0x3d0418['push'](_0x3d0418['shift']());}}}(_0x1cb3,0x93376));export{default as Pagination}from'./pagination.js';import'./augmentation.js';function _0x1cb3(){var _0x591f37=['10700820kdrZLR','7686584OWhJal','30pOksIi','621311trUfJx','1355039fzMsAj','952788udbqDa','6700ZuMjrb','1623cOdAbF','2907340WFLJxQ'];_0x1cb3=function(){return _0x591f37;};return _0x1cb3();}
package/src/pagination.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10c9f2=_0x2580;(function(_0x52b85a,_0x27f82c){const _0x3b5441=_0x2580,_0x3010f5=_0x52b85a();while(!![]){try{const _0x1b4dcb=parseInt(_0x3b5441(0x78))/0x1*(-parseInt(_0x3b5441(0x7e))/0x2)+parseInt(_0x3b5441(0x81))/0x3+parseInt(_0x3b5441(0x6e))/0x4+-parseInt(_0x3b5441(0x72))/0x5*(-parseInt(_0x3b5441(0x6c))/0x6)+-parseInt(_0x3b5441(0x80))/0x7*(-parseInt(_0x3b5441(0x87))/0x8)+parseInt(_0x3b5441(0x74))/0x9*(parseInt(_0x3b5441(0x7b))/0xa)+parseInt(_0x3b5441(0x6b))/0xb*(-parseInt(_0x3b5441(0x75))/0xc);if(_0x1b4dcb===_0x27f82c)break;else _0x3010f5['push'](_0x3010f5['shift']());}catch(_0x583094){_0x3010f5['push'](_0x3010f5['shift']());}}}(_0x18b6,0x9bdd3));import{Plugin as _0x3120dc}from'ckeditor5/src/core.js';function _0x18b6(){const _0x3f5438=['bind','scrollToPage','pagination.enableOnUnsupportedBrowsers','isBlink','editor','6166952VExngt','init','plugins','2728HCePXg','330kIYjHB','config','3891464GhsWVc','get','isEnabled','forceDisabled','8530cbNKQD','browserCheck','1511424UgJxWL','92748xnVixk','pluginName','requires','589277FWLDSq','Pagination','totalPages','40wVFuXR','set','pageNumber','2LDxcKz','ready','7uFzkup','1905537ziIZfe'];_0x18b6=function(){return _0x3f5438;};return _0x18b6();}function _0x2580(_0x5336c6,_0x59b754){const _0x18b6d7=_0x18b6();return _0x2580=function(_0x2580c8,_0x32cec7){_0x2580c8=_0x2580c8-0x6b;let _0x401130=_0x18b6d7[_0x2580c8];return _0x401130;},_0x2580(_0x5336c6,_0x59b754);}import _0x20a88c from'./paginationediting.js';import _0x24e160 from'./paginationui.js';import{env as _0x2d6420}from'ckeditor5/src/utils.js';export default class o extends _0x3120dc{static get[_0x10c9f2(0x76)](){const _0x46c361=_0x10c9f2;return _0x46c361(0x79);}static get[_0x10c9f2(0x77)](){return[_0x20a88c,_0x24e160];}constructor(_0x2f74a1){const _0x28a3ed=_0x10c9f2;super(_0x2f74a1),this[_0x28a3ed(0x70)]=!0x1;}[_0x10c9f2(0x88)](){const _0x3eb8be=_0x10c9f2;this[_0x3eb8be(0x7c)]({'pageNumber':0x1,'totalPages':0x1});const _0x598da8=this[_0x3eb8be(0x86)][_0x3eb8be(0x89)][_0x3eb8be(0x6f)](_0x20a88c);this[_0x3eb8be(0x82)](_0x3eb8be(0x7d))['to'](_0x598da8),this[_0x3eb8be(0x82)](_0x3eb8be(0x7a))['to'](_0x598da8),_0x2d6420[_0x3eb8be(0x85)]||this[_0x3eb8be(0x86)][_0x3eb8be(0x6d)][_0x3eb8be(0x6f)](_0x3eb8be(0x84))?this[_0x3eb8be(0x86)]['on'](_0x3eb8be(0x7f),()=>{const _0x5eb2a4=_0x3eb8be;this[_0x5eb2a4(0x70)]=!0x0;}):this[_0x3eb8be(0x71)](_0x3eb8be(0x73));}[_0x10c9f2(0x83)](_0x3ed11e){const _0x3186d1=_0x10c9f2;this[_0x3186d1(0x86)][_0x3186d1(0x89)][_0x3186d1(0x6f)](_0x20a88c)[_0x3186d1(0x83)](_0x3ed11e);}}
23
+ const _0x35f4d8=_0x1cc8;(function(_0x275037,_0x3bc5fe){const _0x27c6ba=_0x1cc8,_0x38db01=_0x275037();while(!![]){try{const _0x2cf32e=-parseInt(_0x27c6ba(0x151))/0x1*(-parseInt(_0x27c6ba(0x165))/0x2)+parseInt(_0x27c6ba(0x159))/0x3+-parseInt(_0x27c6ba(0x15a))/0x4*(-parseInt(_0x27c6ba(0x166))/0x5)+parseInt(_0x27c6ba(0x155))/0x6+-parseInt(_0x27c6ba(0x157))/0x7+-parseInt(_0x27c6ba(0x15c))/0x8+parseInt(_0x27c6ba(0x16a))/0x9;if(_0x2cf32e===_0x3bc5fe)break;else _0x38db01['push'](_0x38db01['shift']());}catch(_0x40c86a){_0x38db01['push'](_0x38db01['shift']());}}}(_0x4616,0xe11a3));function _0x1cc8(_0x49414a,_0x45ab76){const _0x4616fe=_0x4616();return _0x1cc8=function(_0x1cc863,_0x2f2a70){_0x1cc863=_0x1cc863-0x14f;let _0xfc52c9=_0x4616fe[_0x1cc863];return _0xfc52c9;},_0x1cc8(_0x49414a,_0x45ab76);}import{Plugin as _0x27b7f3}from'ckeditor5/src/core.js';import _0x46e6eb from'./paginationediting.js';import _0x3568bd from'./paginationui.js';function _0x4616(){const _0x28d91e=['3010gqtOYQ','65mhqlfx','set','requires','Pagination','12796515TWcbEC','pageNumber','totalPages','1183vldcKx','bind','get','browserCheck','1299450cniuEl','isBlink','12862570EAaoKI','forceDisabled','2770494DgsZfB','75108DLDmaj','init','14615160vWEzgV','config','scrollToPage','pluginName','isEnabled','ready','editor','pagination.enableOnUnsupportedBrowsers','plugins'];_0x4616=function(){return _0x28d91e;};return _0x4616();}import{env as _0x13851d}from'ckeditor5/src/utils.js';export default class o extends _0x27b7f3{static get[_0x35f4d8(0x15f)](){const _0x23123c=_0x35f4d8;return _0x23123c(0x169);}static get[_0x35f4d8(0x168)](){return[_0x46e6eb,_0x3568bd];}constructor(_0x1652d5){const _0x5ad493=_0x35f4d8;super(_0x1652d5),this[_0x5ad493(0x160)]=!0x1;}[_0x35f4d8(0x15b)](){const _0xa7e69a=_0x35f4d8;this[_0xa7e69a(0x167)]({'pageNumber':0x1,'totalPages':0x1});const _0x5e0282=this[_0xa7e69a(0x162)][_0xa7e69a(0x164)][_0xa7e69a(0x153)](_0x46e6eb);this[_0xa7e69a(0x152)](_0xa7e69a(0x14f))['to'](_0x5e0282),this[_0xa7e69a(0x152)](_0xa7e69a(0x150))['to'](_0x5e0282),_0x13851d[_0xa7e69a(0x156)]||this[_0xa7e69a(0x162)][_0xa7e69a(0x15d)][_0xa7e69a(0x153)](_0xa7e69a(0x163))?this[_0xa7e69a(0x162)]['on'](_0xa7e69a(0x161),()=>{const _0x2f9fa3=_0xa7e69a;this[_0x2f9fa3(0x160)]=!0x0;}):this[_0xa7e69a(0x158)](_0xa7e69a(0x154));}[_0x35f4d8(0x15e)](_0x51a40c){const _0x4341c1=_0x35f4d8;this[_0x4341c1(0x162)][_0x4341c1(0x164)][_0x4341c1(0x153)](_0x46e6eb)[_0x4341c1(0x15e)](_0x51a40c);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14256f=_0xb6ad;function _0x2933(){const _0x28ba73=['12200590aGSBBj','dataDowncast','info','set','pluginName','toViewElement','72SqfpGB','4ZEjSGz','init','substring','change:pageBreaks','data-pagination-page','Pagination','pageNumber','updateMarker','editor','8yzaYMM','config','paginationLicenseKeyTrialLimit:operations','346695iJEDBk','paginationLicenseKeyInvalid','removeMarker','mapper','pagination-invalid-license-key','setAttribute','start','for','11bMPjtl','root','plugins','checkChild','paginationLicenseKeyValid','requires','name','pagination','nodeAfter','get','consumable','getContainedElement','addMarker:','PaginationEditing','4190165sYxgrT','licenseKey','bindElementToMarker','change','conversion','destroy','_setUpDataDowncastConversion','has','modelRange','$text','2509527ehmmSo','parent','listenTo','_updatePageBreakMarkers','scrollToPage','options','index','_licenseKeyCheckInterval','addMarker','toViewPosition','6320552igoCny','add','consume','span','5480271mjWoqh','model','createContainerElement','bind','isEnabled','length','always','markers','getFillerOffset','insert','writer','231954gAWuiB','paginationLicenseKeyTrial','totalPages','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20pagination\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','pagination:','schema','stop','pagination-trial-license-key-reached-limit-changes','setStyle','page-break-before'];_0x2933=function(){return _0x28ba73;};return _0x2933();}(function(_0x1f7dd8,_0x170798){const _0x46b9dc=_0xb6ad,_0x4834a8=_0x1f7dd8();while(!![]){try{const _0xb84756=parseInt(_0x46b9dc(0xfe))/0x1*(parseInt(_0x46b9dc(0x118))/0x2)+parseInt(_0x46b9dc(0xe5))/0x3*(parseInt(_0x46b9dc(0x10f))/0x4)+parseInt(_0x46b9dc(0x11b))/0x5*(-parseInt(_0x46b9dc(0x10e))/0x6)+parseInt(_0x46b9dc(0xdb))/0x7+parseInt(_0x46b9dc(0xef))/0x8+-parseInt(_0x46b9dc(0xf3))/0x9+-parseInt(_0x46b9dc(0x108))/0xa*(parseInt(_0x46b9dc(0xcd))/0xb);if(_0xb84756===_0x170798)break;else _0x4834a8['push'](_0x4834a8['shift']());}catch(_0x13a3f4){_0x4834a8['push'](_0x4834a8['shift']());}}}(_0x2933,0x781a7));import{Plugin as _0x37dc7f}from'ckeditor5/src/core.js';import{CKEditorError as _0x2b5fa3}from'ckeditor5/src/utils.js';import _0x41f919 from'./paginationlookup.js';import _0x327bbc from'./paginationrenderer.js';function _0xb6ad(_0x1aa78a,_0x743116){const _0x293391=_0x2933();return _0xb6ad=function(_0xb6adb3,_0x1d877c){_0xb6adb3=_0xb6adb3-0xcd;let _0x2621c1=_0x293391[_0xb6adb3];return _0x2621c1;},_0xb6ad(_0x1aa78a,_0x743116);}import'../theme/pagination.css';export default class s extends _0x37dc7f{static get[_0x14256f(0x10c)](){const _0x3bcd04=_0x14256f;return _0x3bcd04(0xda);}static get[_0x14256f(0xd2)](){return[_0x41f919,_0x327bbc];}[_0x14256f(0x110)](){const _0x52b6c0=_0x14256f;this[_0x52b6c0(0x10b)]({'pageNumber':0x1,'totalPages':0x1});const _0x331cba=this[_0x52b6c0(0x117)][_0x52b6c0(0xcf)][_0x52b6c0(0xd6)](_0x52b6c0(0x114)),_0x5b9c2d=this[_0x52b6c0(0x117)][_0x52b6c0(0xcf)][_0x52b6c0(0xd6)](_0x41f919),_0x171c11=this[_0x52b6c0(0x117)][_0x52b6c0(0xcf)][_0x52b6c0(0xd6)](_0x327bbc);this[_0x52b6c0(0xf6)](_0x52b6c0(0xf7))['to'](_0x331cba),this[_0x52b6c0(0xe1)](),this[_0x52b6c0(0xf6)](_0x52b6c0(0x115))['to'](_0x171c11),this[_0x52b6c0(0xe7)](_0x5b9c2d,_0x52b6c0(0x112),(_0x8cd320,_0x18df59,_0x2c6208,_0x34fd76)=>{const _0x25ccbb=_0x52b6c0;this[_0x25ccbb(0x100)]=_0x2c6208[_0x25ccbb(0xf8)],this[_0x25ccbb(0xe8)](_0x2c6208,_0x34fd76);});const _0xd62269=this[_0x52b6c0(0x117)];this[_0x52b6c0(0xdc)]=_0xd62269[_0x52b6c0(0x119)][_0x52b6c0(0xd6)](_0x52b6c0(0xdc)),this[_0x52b6c0(0xec)]=setInterval(()=>{const _0xca9b2e=_0x52b6c0;let _0x25ef60;for(const _0x30a016 in _0xd62269){const _0x397a2f=_0x30a016,_0x2af87b=_0xd62269[_0x397a2f];if(_0xca9b2e(0xff)===_0x2af87b||_0xca9b2e(0x11c)===_0x2af87b||_0xca9b2e(0xd1)===_0x2af87b||_0xca9b2e(0x11a)===_0x2af87b){delete _0xd62269[_0x397a2f],_0x25ef60=_0x2af87b;break;}}if(_0xca9b2e(0x11c)===_0x25ef60)throw clearInterval(this[_0xca9b2e(0xec)]),new _0x2b5fa3(_0xca9b2e(0x11f),null);if(_0xca9b2e(0xff)===_0x25ef60&&console[_0xca9b2e(0x10a)](_0xca9b2e(0x101)),_0xca9b2e(0x11a)===_0x25ef60)throw clearInterval(this[_0xca9b2e(0xec)]),new _0x2b5fa3(_0xca9b2e(0x105),null);_0xca9b2e(0xd1)===_0x25ef60&&clearInterval(this[_0xca9b2e(0xec)]);},0x3e8);}[_0x14256f(0xe0)](){const _0x2bc8b7=_0x14256f;clearInterval(this[_0x2bc8b7(0xec)]);}[_0x14256f(0xe9)](_0x2e4f7a){const _0x4ba43a=_0x14256f;if(!this[_0x4ba43a(0xf7)])return;_0x2e4f7a<0x1&&(_0x2e4f7a=0x1),_0x2e4f7a>this[_0x4ba43a(0x100)]&&(_0x2e4f7a=this[_0x4ba43a(0x100)]),this[_0x4ba43a(0x117)][_0x4ba43a(0xcf)][_0x4ba43a(0xd6)](_0x327bbc)[_0x4ba43a(0xe9)](_0x2e4f7a);}[_0x14256f(0xe8)](_0x534a3b,_0x17f0ff){const _0x1b7a51=_0x14256f,_0x593b7a=this[_0x1b7a51(0x117)][_0x1b7a51(0xf4)];this[_0x1b7a51(0xf7)]&&_0x593b7a[_0x1b7a51(0xde)](_0x2f85cd=>{const _0x46ba34=_0x1b7a51;for(let _0x2d5b40=0x1;_0x2d5b40<_0x534a3b[_0x46ba34(0xf8)];_0x2d5b40++){const _0x4c9965=_0x534a3b[_0x2d5b40][_0x46ba34(0xe3)],_0x4bf088=_0x46ba34(0x102)+(_0x2d5b40+0x1);_0x593b7a[_0x46ba34(0xfa)][_0x46ba34(0xe2)](_0x4bf088)?_0x2f85cd[_0x46ba34(0x116)](_0x4bf088,{'range':_0x4c9965}):_0x2f85cd[_0x46ba34(0xed)](_0x4bf088,{'range':_0x4c9965,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x219f44=_0x534a3b[_0x46ba34(0xf8)];_0x219f44<_0x17f0ff[_0x46ba34(0xf8)];_0x219f44++){const _0x4b94e3=_0x46ba34(0x102)+(_0x219f44+0x1);_0x593b7a[_0x46ba34(0xfa)][_0x46ba34(0xe2)](_0x4b94e3)&&_0x2f85cd[_0x46ba34(0x11d)](_0x4b94e3);}});}[_0x14256f(0xe1)](){const _0x11878a=_0x14256f,_0x5589df=_0x11878a(0xd4);this[_0x11878a(0x117)][_0x11878a(0xdf)][_0x11878a(0x122)](_0x11878a(0x109))[_0x11878a(0xf0)](_0x60f301=>{const _0x27de8a=_0x11878a;_0x60f301['on'](_0x27de8a(0xd9)+_0x5589df,(_0x11d1ef,{markerRange:_0x27e54a,markerName:_0x380c38},_0x256c80)=>{const _0x2af906=_0x27de8a;if(!_0x256c80[_0x2af906(0xea)][_0x2af906(0xd4)])return;if(!_0x256c80[_0x2af906(0xd7)][_0x2af906(0xf1)](_0x27e54a,_0x11d1ef[_0x2af906(0xd3)]))return;const _0x2d5cc8=_0x27e54a[_0x2af906(0xd8)]();let _0x26c123=_0x2d5cc8?_0x256c80[_0x2af906(0x11e)][_0x2af906(0x10d)](_0x2d5cc8):null;if(!_0x26c123){const _0x288862=_0x27e54a[_0x2af906(0x121)];if(_0x256c80[_0x2af906(0x103)][_0x2af906(0xd0)](_0x288862,_0x2af906(0xe4))){const _0x307e49=_0x256c80[_0x2af906(0x11e)][_0x2af906(0xee)](_0x288862);_0x26c123=_0x256c80[_0x2af906(0xfd)][_0x2af906(0xf5)](_0x2af906(0xf2)),_0x26c123[_0x2af906(0xfb)]=()=>null,_0x256c80[_0x2af906(0xfd)][_0x2af906(0xfc)](_0x307e49,_0x26c123);}else{const _0x498eaa=_0x288862[_0x2af906(0xd5)];_0x26c123=_0x256c80[_0x2af906(0x11e)][_0x2af906(0x10d)](_0x498eaa);}}for(;_0x26c123[_0x2af906(0xe6)]!==_0x26c123[_0x2af906(0xce)]&&0x0===_0x26c123[_0x2af906(0xeb)];)_0x26c123=_0x26c123[_0x2af906(0xe6)];const _0x5dd8ef=_0x380c38[_0x2af906(0x111)](0xb);_0x256c80[_0x2af906(0xfd)][_0x2af906(0x106)](_0x2af906(0x107),_0x2af906(0xf9),_0x26c123),_0x256c80[_0x2af906(0xfd)][_0x2af906(0x120)](_0x2af906(0x113),_0x5dd8ef,_0x26c123),_0x256c80[_0x2af906(0x11e)][_0x2af906(0xdd)](_0x26c123,_0x380c38),_0x11d1ef[_0x2af906(0x104)]();});});}}
23
+ function _0x13f1(_0x19314c,_0x2608d2){const _0x3e2d11=_0x3e2d();return _0x13f1=function(_0x13f1b4,_0x381184){_0x13f1b4=_0x13f1b4-0x1da;let _0x4e083f=_0x3e2d11[_0x13f1b4];return _0x4e083f;},_0x13f1(_0x19314c,_0x2608d2);}const _0x18d3cb=_0x13f1;(function(_0x2cd77b,_0x112ddc){const _0x34786e=_0x13f1,_0x365b0c=_0x2cd77b();while(!![]){try{const _0x292cfe=-parseInt(_0x34786e(0x1fe))/0x1*(parseInt(_0x34786e(0x1e2))/0x2)+parseInt(_0x34786e(0x225))/0x3*(-parseInt(_0x34786e(0x1da))/0x4)+-parseInt(_0x34786e(0x209))/0x5*(parseInt(_0x34786e(0x20f))/0x6)+-parseInt(_0x34786e(0x20a))/0x7*(-parseInt(_0x34786e(0x22b))/0x8)+-parseInt(_0x34786e(0x1e3))/0x9*(parseInt(_0x34786e(0x202))/0xa)+parseInt(_0x34786e(0x212))/0xb*(parseInt(_0x34786e(0x1eb))/0xc)+parseInt(_0x34786e(0x218))/0xd;if(_0x292cfe===_0x112ddc)break;else _0x365b0c['push'](_0x365b0c['shift']());}catch(_0x4e5730){_0x365b0c['push'](_0x365b0c['shift']());}}}(_0x3e2d,0x5d87d));import{Plugin as _0x2251c4}from'ckeditor5/src/core.js';import{CKEditorError as _0x2956fa}from'ckeditor5/src/utils.js';import _0xfdbb0e from'./paginationlookup.js';import _0x459c2a from'./paginationrenderer.js';import'../theme/pagination.css';export default class s extends _0x2251c4{static get[_0x18d3cb(0x230)](){const _0x12244a=_0x18d3cb;return _0x12244a(0x1ea);}static get[_0x18d3cb(0x213)](){return[_0xfdbb0e,_0x459c2a];}[_0x18d3cb(0x228)](){const _0x4961cb=_0x18d3cb;this[_0x4961cb(0x207)]({'pageNumber':0x1,'totalPages':0x1});const _0x2c1e3a=this[_0x4961cb(0x21b)][_0x4961cb(0x224)][_0x4961cb(0x211)](_0x4961cb(0x200)),_0x46c567=this[_0x4961cb(0x21b)][_0x4961cb(0x224)][_0x4961cb(0x211)](_0xfdbb0e),_0xb5575a=this[_0x4961cb(0x21b)][_0x4961cb(0x224)][_0x4961cb(0x211)](_0x459c2a);this[_0x4961cb(0x1ff)](_0x4961cb(0x1f6))['to'](_0x2c1e3a),this[_0x4961cb(0x203)](),this[_0x4961cb(0x1ff)](_0x4961cb(0x1e5))['to'](_0xb5575a),this[_0x4961cb(0x1f3)](_0x46c567,_0x4961cb(0x1de),(_0xb03f62,_0x30de94,_0x4bdf99,_0x5f1971)=>{const _0x548aaa=_0x4961cb;this[_0x548aaa(0x22d)]=_0x4bdf99[_0x548aaa(0x1f1)],this[_0x548aaa(0x1e7)](_0x4bdf99,_0x5f1971);});const _0x424164=this[_0x4961cb(0x21b)];this[_0x4961cb(0x210)]=_0x424164[_0x4961cb(0x21e)][_0x4961cb(0x211)](_0x4961cb(0x210)),this[_0x4961cb(0x1f4)]=setInterval(()=>{const _0x4d9307=_0x4961cb;let _0x25c701;for(const _0x571339 in _0x424164){const _0x4a9c74=_0x571339,_0x26ceca=_0x424164[_0x4a9c74];if(_0x4d9307(0x1fd)===_0x26ceca||_0x4d9307(0x20b)===_0x26ceca||_0x4d9307(0x214)===_0x26ceca||_0x4d9307(0x1ee)===_0x26ceca){delete _0x424164[_0x4a9c74],_0x25c701=_0x26ceca;break;}}if(_0x4d9307(0x20b)===_0x25c701)throw clearInterval(this[_0x4d9307(0x1f4)]),new _0x2956fa(_0x4d9307(0x227),null);if(_0x4d9307(0x1fd)===_0x25c701&&console[_0x4d9307(0x226)](_0x4d9307(0x219)),_0x4d9307(0x1ee)===_0x25c701)throw clearInterval(this[_0x4d9307(0x1f4)]),new _0x2956fa(_0x4d9307(0x1f5),null);_0x4d9307(0x214)===_0x25c701&&clearInterval(this[_0x4d9307(0x1f4)]);},0x3e8);}[_0x18d3cb(0x220)](){const _0x3f2e0f=_0x18d3cb;clearInterval(this[_0x3f2e0f(0x1f4)]);}[_0x18d3cb(0x201)](_0x26aeed){const _0x3de241=_0x18d3cb;if(!this[_0x3de241(0x1f6)])return;_0x26aeed<0x1&&(_0x26aeed=0x1),_0x26aeed>this[_0x3de241(0x22d)]&&(_0x26aeed=this[_0x3de241(0x22d)]),this[_0x3de241(0x21b)][_0x3de241(0x224)][_0x3de241(0x211)](_0x459c2a)[_0x3de241(0x201)](_0x26aeed);}[_0x18d3cb(0x1e7)](_0x480b31,_0x68c3d9){const _0x2d7c7d=_0x18d3cb,_0x5afb5c=this[_0x2d7c7d(0x21b)][_0x2d7c7d(0x231)];this[_0x2d7c7d(0x1f6)]&&_0x5afb5c[_0x2d7c7d(0x1db)](_0x4a8634=>{const _0x15d0ce=_0x2d7c7d;for(let _0x4f4f07=0x1;_0x4f4f07<_0x480b31[_0x15d0ce(0x1f1)];_0x4f4f07++){const _0x46a15d=_0x480b31[_0x4f4f07][_0x15d0ce(0x1e4)],_0x34528f=_0x15d0ce(0x20e)+(_0x4f4f07+0x1);_0x5afb5c[_0x15d0ce(0x208)][_0x15d0ce(0x1f9)](_0x34528f)?_0x4a8634[_0x15d0ce(0x20c)](_0x34528f,{'range':_0x46a15d}):_0x4a8634[_0x15d0ce(0x222)](_0x34528f,{'range':_0x46a15d,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x387ed6=_0x480b31[_0x15d0ce(0x1f1)];_0x387ed6<_0x68c3d9[_0x15d0ce(0x1f1)];_0x387ed6++){const _0x5be4fa=_0x15d0ce(0x20e)+(_0x387ed6+0x1);_0x5afb5c[_0x15d0ce(0x208)][_0x15d0ce(0x1f9)](_0x5be4fa)&&_0x4a8634[_0x15d0ce(0x223)](_0x5be4fa);}});}[_0x18d3cb(0x203)](){const _0x16a88c=_0x18d3cb,_0x13b98d=_0x16a88c(0x1f7);this[_0x16a88c(0x21b)][_0x16a88c(0x1e8)][_0x16a88c(0x22a)](_0x16a88c(0x229))[_0x16a88c(0x21a)](_0x50c156=>{const _0x2e6404=_0x16a88c;_0x50c156['on'](_0x2e6404(0x215)+_0x13b98d,(_0x560696,{markerRange:_0x580b10,markerName:_0x5128e3},_0x1a54e1)=>{const _0x76d14f=_0x2e6404;if(!_0x1a54e1[_0x76d14f(0x1fc)][_0x76d14f(0x1f7)])return;if(!_0x1a54e1[_0x76d14f(0x21f)][_0x76d14f(0x1ef)](_0x580b10,_0x560696[_0x76d14f(0x216)]))return;const _0x21de7a=_0x580b10[_0x76d14f(0x1f8)]();let _0x502fac=_0x21de7a?_0x1a54e1[_0x76d14f(0x1dd)][_0x76d14f(0x1ed)](_0x21de7a):null;if(!_0x502fac){const _0x111168=_0x580b10[_0x76d14f(0x1e9)];if(_0x1a54e1[_0x76d14f(0x21d)][_0x76d14f(0x206)](_0x111168,_0x76d14f(0x20d))){const _0x4f36f1=_0x1a54e1[_0x76d14f(0x1dd)][_0x76d14f(0x1f0)](_0x111168);_0x502fac=_0x1a54e1[_0x76d14f(0x1df)][_0x76d14f(0x217)](_0x76d14f(0x1e0)),_0x502fac[_0x76d14f(0x22e)]=()=>null,_0x1a54e1[_0x76d14f(0x1df)][_0x76d14f(0x1ec)](_0x4f36f1,_0x502fac);}else{const _0x2d9ce1=_0x111168[_0x76d14f(0x221)];_0x502fac=_0x1a54e1[_0x76d14f(0x1dd)][_0x76d14f(0x1ed)](_0x2d9ce1);}}for(;_0x502fac[_0x76d14f(0x1dc)]!==_0x502fac[_0x76d14f(0x205)]&&0x0===_0x502fac[_0x76d14f(0x21c)];)_0x502fac=_0x502fac[_0x76d14f(0x1dc)];const _0x195f2a=_0x5128e3[_0x76d14f(0x1e1)](0xb);_0x1a54e1[_0x76d14f(0x1df)][_0x76d14f(0x22f)](_0x76d14f(0x1fb),_0x76d14f(0x204),_0x502fac),_0x1a54e1[_0x76d14f(0x1df)][_0x76d14f(0x22c)](_0x76d14f(0x1fa),_0x195f2a,_0x502fac),_0x1a54e1[_0x76d14f(0x1dd)][_0x76d14f(0x1e6)](_0x502fac,_0x5128e3),_0x560696[_0x76d14f(0x1f2)]();});});}}function _0x3e2d(){const _0x4dfd26=['writer','span','substring','20epbrmx','19287SUouMZ','modelRange','pageNumber','bindElementToMarker','_updatePageBreakMarkers','conversion','start','PaginationEditing','19692dlYgPT','insert','toViewElement','paginationLicenseKeyTrialLimit:operations','consume','toViewPosition','length','stop','listenTo','_licenseKeyCheckInterval','pagination-trial-license-key-reached-limit-changes','isEnabled','pagination','getContainedElement','has','data-pagination-page','page-break-before','options','paginationLicenseKeyTrial','50199jJKOOt','bind','Pagination','scrollToPage','3030BJGKtP','_setUpDataDowncastConversion','always','root','checkChild','set','markers','5HfLwIw','476035NsThsy','paginationLicenseKeyInvalid','updateMarker','$text','pagination:','328566OGLYCi','licenseKey','get','2563HdSFYS','requires','paginationLicenseKeyValid','addMarker:','name','createContainerElement','13072813OSjnKl','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20pagination\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','add','editor','index','schema','config','consumable','destroy','nodeAfter','addMarker','removeMarker','plugins','18jqPsoM','info','pagination-invalid-license-key','init','dataDowncast','for','88EujJih','setAttribute','totalPages','getFillerOffset','setStyle','pluginName','model','364552CdAwun','change','parent','mapper','change:pageBreaks'];_0x3e2d=function(){return _0x4dfd26;};return _0x3e2d();}