@ckeditor/ckeditor5-pagination 41.2.0 → 41.3.0-alpha.2

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.0",
3
+ "version": "41.3.0-alpha.2",
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.0",
16
- "ckeditor5": "41.2.0",
15
+ "@ckeditor/ckeditor5-theme-lark": "41.3.0-alpha.2",
16
+ "ckeditor5": "41.3.0-alpha.2",
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(_0x3369bd,_0x184903){var _0x38536c=_0x5176,_0x3ae256=_0x3369bd();while(!![]){try{var _0xf6ae2a=-parseInt(_0x38536c(0x119))/0x1+-parseInt(_0x38536c(0x11a))/0x2*(parseInt(_0x38536c(0x11f))/0x3)+parseInt(_0x38536c(0x11d))/0x4*(parseInt(_0x38536c(0x11b))/0x5)+-parseInt(_0x38536c(0x117))/0x6*(-parseInt(_0x38536c(0x120))/0x7)+-parseInt(_0x38536c(0x121))/0x8*(-parseInt(_0x38536c(0x118))/0x9)+parseInt(_0x38536c(0x11c))/0xa+parseInt(_0x38536c(0x122))/0xb*(-parseInt(_0x38536c(0x11e))/0xc);if(_0xf6ae2a===_0x184903)break;else _0x3ae256['push'](_0x3ae256['shift']());}catch(_0x3e4707){_0x3ae256['push'](_0x3ae256['shift']());}}}(_0x22dd,0xa1b36));function _0x5176(_0x29b635,_0x3aeffa){var _0x22dd94=_0x22dd();return _0x5176=function(_0x517664,_0x4d139a){_0x517664=_0x517664-0x117;var _0x4de4aa=_0x22dd94[_0x517664];return _0x4de4aa;},_0x5176(_0x29b635,_0x3aeffa);}function _0x22dd(){var _0x237590=['1115388TUxFwt','2EdPlDd','5iTZqrq','13051020enkTtp','3247740GsrnCK','252CdIypd','2454015MxuvbP','605437VZvGNZ','766280FjxKeT','252483HxjlRA','60UaSxiK','9nKMRki'];_0x22dd=function(){return _0x237590;};return _0x22dd();}export{default as Pagination}from'./pagination.js';import'./augmentation.js';
23
+ function _0x26f0(){var _0x1b3121=['511krQFHQ','12126OCnnpk','11AZNoZE','1548yhKmMy','2887762cdowON','9758616VLlrjH','3411455oeRpgN','1vhUARL','11731180iyXFRF','736605jxhWfB','127518HseXlt','8VVxQIT'];_0x26f0=function(){return _0x1b3121;};return _0x26f0();}(function(_0x76fc36,_0x41580e){var _0x172d5f=_0x4f9a,_0x460ba2=_0x76fc36();while(!![]){try{var _0x53f981=parseInt(_0x172d5f(0x64))/0x1*(parseInt(_0x172d5f(0x6d))/0x2)+parseInt(_0x172d5f(0x6a))/0x3*(-parseInt(_0x172d5f(0x6c))/0x4)+parseInt(_0x172d5f(0x6f))/0x5+parseInt(_0x172d5f(0x67))/0x6*(-parseInt(_0x172d5f(0x69))/0x7)+parseInt(_0x172d5f(0x68))/0x8*(-parseInt(_0x172d5f(0x66))/0x9)+-parseInt(_0x172d5f(0x65))/0xa*(-parseInt(_0x172d5f(0x6b))/0xb)+parseInt(_0x172d5f(0x6e))/0xc;if(_0x53f981===_0x41580e)break;else _0x460ba2['push'](_0x460ba2['shift']());}catch(_0x2a05f7){_0x460ba2['push'](_0x460ba2['shift']());}}}(_0x26f0,0xdf5fc));export{default as Pagination}from'./pagination.js';function _0x4f9a(_0x42f3ba,_0x4a6b25){var _0x26f028=_0x26f0();return _0x4f9a=function(_0x4f9a0f,_0x5c2337){_0x4f9a0f=_0x4f9a0f-0x64;var _0x33d79b=_0x26f028[_0x4f9a0f];return _0x33d79b;},_0x4f9a(_0x42f3ba,_0x4a6b25);}import'./augmentation.js';
package/src/pagination.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d0629=_0x2124;function _0x2124(_0x18456c,_0x381b94){const _0x3e5fd2=_0x3e5f();return _0x2124=function(_0x212409,_0x4a1b0c){_0x212409=_0x212409-0x1a8;let _0x213fdb=_0x3e5fd2[_0x212409];return _0x213fdb;},_0x2124(_0x18456c,_0x381b94);}(function(_0x590849,_0x29bfe8){const _0x2618c6=_0x2124,_0x21d07e=_0x590849();while(!![]){try{const _0x2bfa0f=-parseInt(_0x2618c6(0x1b1))/0x1+-parseInt(_0x2618c6(0x1b5))/0x2*(parseInt(_0x2618c6(0x1be))/0x3)+-parseInt(_0x2618c6(0x1b9))/0x4+parseInt(_0x2618c6(0x1c2))/0x5+parseInt(_0x2618c6(0x1c4))/0x6+parseInt(_0x2618c6(0x1c0))/0x7*(parseInt(_0x2618c6(0x1b7))/0x8)+-parseInt(_0x2618c6(0x1c3))/0x9*(-parseInt(_0x2618c6(0x1a8))/0xa);if(_0x2bfa0f===_0x29bfe8)break;else _0x21d07e['push'](_0x21d07e['shift']());}catch(_0x12bbfd){_0x21d07e['push'](_0x21d07e['shift']());}}}(_0x3e5f,0x20cde));import{Plugin as _0x364644}from'ckeditor5/src/core.js';import _0x23dd00 from'./paginationediting.js';import _0x58f940 from'./paginationui.js';import{env as _0x789c15}from'ckeditor5/src/utils.js';function _0x3e5f(){const _0x4cb656=['pluginName','requires','config','get','editor','plugins','forceDisabled','set','193268feueQP','isBlink','init','totalPages','1930OhANOh','pageNumber','8zPsHdB','pagination.enableOnUnsupportedBrowsers','60364poHSGb','bind','Pagination','ready','scrollToPage','93CfTPBy','browserCheck','1627493ohonZL','isEnabled','425870BWEBge','3618anKeba','83778MukfnZ','1020Guizjn'];_0x3e5f=function(){return _0x4cb656;};return _0x3e5f();}export default class o extends _0x364644{static get[_0x5d0629(0x1a9)](){const _0x478bea=_0x5d0629;return _0x478bea(0x1bb);}static get[_0x5d0629(0x1aa)](){return[_0x23dd00,_0x58f940];}constructor(_0xcfbc56){const _0x8540ee=_0x5d0629;super(_0xcfbc56),this[_0x8540ee(0x1c1)]=!0x1;}[_0x5d0629(0x1b3)](){const _0x3249f5=_0x5d0629;this[_0x3249f5(0x1b0)]({'pageNumber':0x1,'totalPages':0x1});const _0x2975a7=this[_0x3249f5(0x1ad)][_0x3249f5(0x1ae)][_0x3249f5(0x1ac)](_0x23dd00);this[_0x3249f5(0x1ba)](_0x3249f5(0x1b6))['to'](_0x2975a7),this[_0x3249f5(0x1ba)](_0x3249f5(0x1b4))['to'](_0x2975a7),_0x789c15[_0x3249f5(0x1b2)]||this[_0x3249f5(0x1ad)][_0x3249f5(0x1ab)][_0x3249f5(0x1ac)](_0x3249f5(0x1b8))?this[_0x3249f5(0x1ad)]['on'](_0x3249f5(0x1bc),()=>{const _0x1c0ece=_0x3249f5;this[_0x1c0ece(0x1c1)]=!0x0;}):this[_0x3249f5(0x1af)](_0x3249f5(0x1bf));}[_0x5d0629(0x1bd)](_0x42cff1){const _0x2b8983=_0x5d0629;this[_0x2b8983(0x1ad)][_0x2b8983(0x1ae)][_0x2b8983(0x1ac)](_0x23dd00)[_0x2b8983(0x1bd)](_0x42cff1);}}
23
+ const _0x2a2c5b=_0x4ba2;(function(_0x13c6fd,_0x383e01){const _0x2f8e12=_0x4ba2,_0x32a375=_0x13c6fd();while(!![]){try{const _0x1210a9=-parseInt(_0x2f8e12(0x7f))/0x1+parseInt(_0x2f8e12(0x74))/0x2+-parseInt(_0x2f8e12(0x83))/0x3+-parseInt(_0x2f8e12(0x84))/0x4*(-parseInt(_0x2f8e12(0x69))/0x5)+parseInt(_0x2f8e12(0x6d))/0x6*(parseInt(_0x2f8e12(0x7c))/0x7)+-parseInt(_0x2f8e12(0x79))/0x8*(parseInt(_0x2f8e12(0x86))/0x9)+parseInt(_0x2f8e12(0x81))/0xa*(-parseInt(_0x2f8e12(0x7e))/0xb);if(_0x1210a9===_0x383e01)break;else _0x32a375['push'](_0x32a375['shift']());}catch(_0x4d489a){_0x32a375['push'](_0x32a375['shift']());}}}(_0x3faf,0x74fc2));function _0x3faf(){const _0xccc3bf=['set','forceDisabled','70nAXpxe','plugins','40843sZDXNd','93751bEcdoM','isEnabled','530EeQumF','ready','1300332sxajOJ','124sGzcKH','pluginName','1396323WaYIER','62405gPQdJl','totalPages','get','isBlink','286662MkFkwf','scrollToPage','pageNumber','init','requires','bind','browserCheck','1607828jlofJD','editor','config','Pagination','pagination.enableOnUnsupportedBrowsers','24kXuHZD'];_0x3faf=function(){return _0xccc3bf;};return _0x3faf();}import{Plugin as _0x3ffd7c}from'ckeditor5/src/core.js';function _0x4ba2(_0x28d73a,_0x5ef95b){const _0x3faf83=_0x3faf();return _0x4ba2=function(_0x4ba28e,_0x2a5256){_0x4ba28e=_0x4ba28e-0x69;let _0x5a7b2b=_0x3faf83[_0x4ba28e];return _0x5a7b2b;},_0x4ba2(_0x28d73a,_0x5ef95b);}import _0x51adf0 from'./paginationediting.js';import _0x1d9759 from'./paginationui.js';import{env as _0x52205a}from'ckeditor5/src/utils.js';export default class o extends _0x3ffd7c{static get[_0x2a2c5b(0x85)](){const _0x38607d=_0x2a2c5b;return _0x38607d(0x77);}static get[_0x2a2c5b(0x71)](){return[_0x51adf0,_0x1d9759];}constructor(_0x590724){const _0x22e0a0=_0x2a2c5b;super(_0x590724),this[_0x22e0a0(0x80)]=!0x1;}[_0x2a2c5b(0x70)](){const _0x32a1a7=_0x2a2c5b;this[_0x32a1a7(0x7a)]({'pageNumber':0x1,'totalPages':0x1});const _0x52a1fb=this[_0x32a1a7(0x75)][_0x32a1a7(0x7d)][_0x32a1a7(0x6b)](_0x51adf0);this[_0x32a1a7(0x72)](_0x32a1a7(0x6f))['to'](_0x52a1fb),this[_0x32a1a7(0x72)](_0x32a1a7(0x6a))['to'](_0x52a1fb),_0x52205a[_0x32a1a7(0x6c)]||this[_0x32a1a7(0x75)][_0x32a1a7(0x76)][_0x32a1a7(0x6b)](_0x32a1a7(0x78))?this[_0x32a1a7(0x75)]['on'](_0x32a1a7(0x82),()=>{const _0x585788=_0x32a1a7;this[_0x585788(0x80)]=!0x0;}):this[_0x32a1a7(0x7b)](_0x32a1a7(0x73));}[_0x2a2c5b(0x6e)](_0x4c6d69){const _0x897e74=_0x2a2c5b;this[_0x897e74(0x75)][_0x897e74(0x7d)][_0x897e74(0x6b)](_0x51adf0)[_0x897e74(0x6e)](_0x4c6d69);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xda9ab3=_0x1f73;function _0x1f73(_0x45b639,_0x5927b9){const _0x27be0d=_0x27be();return _0x1f73=function(_0x1f73dd,_0x1bc415){_0x1f73dd=_0x1f73dd-0xbc;let _0x39ecb8=_0x27be0d[_0x1f73dd];return _0x39ecb8;},_0x1f73(_0x45b639,_0x5927b9);}(function(_0x370213,_0x610131){const _0x18afcf=_0x1f73,_0x5bc384=_0x370213();while(!![]){try{const _0x4871b2=parseInt(_0x18afcf(0xea))/0x1+parseInt(_0x18afcf(0xe7))/0x2+-parseInt(_0x18afcf(0xe4))/0x3+-parseInt(_0x18afcf(0xc0))/0x4+parseInt(_0x18afcf(0xfb))/0x5+parseInt(_0x18afcf(0xfd))/0x6*(-parseInt(_0x18afcf(0xd8))/0x7)+-parseInt(_0x18afcf(0x10e))/0x8*(parseInt(_0x18afcf(0xdd))/0x9);if(_0x4871b2===_0x610131)break;else _0x5bc384['push'](_0x5bc384['shift']());}catch(_0x57fa96){_0x5bc384['push'](_0x5bc384['shift']());}}}(_0x27be,0xbe3df));import{Plugin as _0x4a869f}from'ckeditor5/src/core.js';import{CKEditorError as _0x346a88}from'ckeditor5/src/utils.js';import _0x23e0cb from'./paginationlookup.js';import _0x5a3eb8 from'./paginationrenderer.js';function _0x27be(){const _0x7a6f8a=['6yYmwft','pageNumber','$text','index','substring','addMarker','_setUpDataDowncastConversion','bind','start','getFillerOffset','pagination-invalid-license-key','name','paginationLicenseKeyTrialLimit:operations','conversion','data-pagination-page','requires','markers','13072GSrjBT','toViewElement','plugins','has','parent','options','797708fbigut','always','licenseKey','length','checkChild','pagination','insert','setAttribute','pluginName','totalPages','Pagination','pagination-trial-license-key-reached-limit-changes','init','updateMarker','toViewPosition','writer','getContainedElement','scrollToPage','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.','root','nodeAfter','get','model','setStyle','799673wDEHDH','for','PaginationEditing','config','destroy','8235mCZwsy','paginationLicenseKeyValid','addMarker:','add','pagination:','paginationLicenseKeyInvalid','removeMarker','595791iWwhuu','stop','paginationLicenseKeyTrial','1842564AaBvMf','isEnabled','dataDowncast','1486780HeMAMM','schema','listenTo','_licenseKeyCheckInterval','consumable','page-break-before','info','set','change:pageBreaks','mapper','span','_updatePageBreakMarkers','consume','change','modelRange','bindElementToMarker','editor','1892710DElaLh','createContainerElement'];_0x27be=function(){return _0x7a6f8a;};return _0x27be();}import'../theme/pagination.css';export default class s extends _0x4a869f{static get[_0xda9ab3(0xc8)](){const _0x4e2eff=_0xda9ab3;return _0x4e2eff(0xda);}static get[_0xda9ab3(0x10c)](){return[_0x23e0cb,_0x5a3eb8];}[_0xda9ab3(0xcc)](){const _0x27bcd8=_0xda9ab3;this[_0x27bcd8(0xf1)]({'pageNumber':0x1,'totalPages':0x1});const _0x206cb0=this[_0x27bcd8(0xfa)][_0x27bcd8(0xbc)][_0x27bcd8(0xd5)](_0x27bcd8(0xca)),_0x3ec182=this[_0x27bcd8(0xfa)][_0x27bcd8(0xbc)][_0x27bcd8(0xd5)](_0x23e0cb),_0x59b8c9=this[_0x27bcd8(0xfa)][_0x27bcd8(0xbc)][_0x27bcd8(0xd5)](_0x5a3eb8);this[_0x27bcd8(0x104)](_0x27bcd8(0xe8))['to'](_0x206cb0),this[_0x27bcd8(0x103)](),this[_0x27bcd8(0x104)](_0x27bcd8(0xfe))['to'](_0x59b8c9),this[_0x27bcd8(0xec)](_0x3ec182,_0x27bcd8(0xf2),(_0x9000e6,_0x1f1251,_0x276d9c,_0x5dfec5)=>{const _0x92971b=_0x27bcd8;this[_0x92971b(0xc9)]=_0x276d9c[_0x92971b(0xc3)],this[_0x92971b(0xf5)](_0x276d9c,_0x5dfec5);});const _0xc03c74=this[_0x27bcd8(0xfa)];this[_0x27bcd8(0xc2)]=_0xc03c74[_0x27bcd8(0xdb)][_0x27bcd8(0xd5)](_0x27bcd8(0xc2)),this[_0x27bcd8(0xed)]=setInterval(()=>{const _0x169041=_0x27bcd8;let _0x45182e;for(const _0x5afc08 in _0xc03c74){const _0x1b3c41=_0x5afc08,_0x10aa64=_0xc03c74[_0x1b3c41];if(_0x169041(0xe6)===_0x10aa64||_0x169041(0xe2)===_0x10aa64||_0x169041(0xde)===_0x10aa64||_0x169041(0x109)===_0x10aa64){delete _0xc03c74[_0x1b3c41],_0x45182e=_0x10aa64;break;}}if(_0x169041(0xe2)===_0x45182e)throw clearInterval(this[_0x169041(0xed)]),new _0x346a88(_0x169041(0x107),null);if(_0x169041(0xe6)===_0x45182e&&console[_0x169041(0xf0)](_0x169041(0xd2)),_0x169041(0x109)===_0x45182e)throw clearInterval(this[_0x169041(0xed)]),new _0x346a88(_0x169041(0xcb),null);_0x169041(0xde)===_0x45182e&&clearInterval(this[_0x169041(0xed)]);},0x3e8);}[_0xda9ab3(0xdc)](){const _0x4560f5=_0xda9ab3;clearInterval(this[_0x4560f5(0xed)]);}[_0xda9ab3(0xd1)](_0x14c523){const _0x2f43c2=_0xda9ab3;if(!this[_0x2f43c2(0xe8)])return;_0x14c523<0x1&&(_0x14c523=0x1),_0x14c523>this[_0x2f43c2(0xc9)]&&(_0x14c523=this[_0x2f43c2(0xc9)]),this[_0x2f43c2(0xfa)][_0x2f43c2(0xbc)][_0x2f43c2(0xd5)](_0x5a3eb8)[_0x2f43c2(0xd1)](_0x14c523);}[_0xda9ab3(0xf5)](_0xe96680,_0x520e5f){const _0x5e929a=_0xda9ab3,_0x425fe7=this[_0x5e929a(0xfa)][_0x5e929a(0xd6)];this[_0x5e929a(0xe8)]&&_0x425fe7[_0x5e929a(0xf7)](_0x5ca5cf=>{const _0x25237a=_0x5e929a;for(let _0x5ad768=0x1;_0x5ad768<_0xe96680[_0x25237a(0xc3)];_0x5ad768++){const _0x34e473=_0xe96680[_0x5ad768][_0x25237a(0xf8)],_0x5df1c5=_0x25237a(0xe1)+(_0x5ad768+0x1);_0x425fe7[_0x25237a(0x10d)][_0x25237a(0xbd)](_0x5df1c5)?_0x5ca5cf[_0x25237a(0xcd)](_0x5df1c5,{'range':_0x34e473}):_0x5ca5cf[_0x25237a(0x102)](_0x5df1c5,{'range':_0x34e473,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x3c949d=_0xe96680[_0x25237a(0xc3)];_0x3c949d<_0x520e5f[_0x25237a(0xc3)];_0x3c949d++){const _0x40f6e9=_0x25237a(0xe1)+(_0x3c949d+0x1);_0x425fe7[_0x25237a(0x10d)][_0x25237a(0xbd)](_0x40f6e9)&&_0x5ca5cf[_0x25237a(0xe3)](_0x40f6e9);}});}[_0xda9ab3(0x103)](){const _0x3cdf3c=_0xda9ab3,_0x35ce2b=_0x3cdf3c(0xc5);this[_0x3cdf3c(0xfa)][_0x3cdf3c(0x10a)][_0x3cdf3c(0xd9)](_0x3cdf3c(0xe9))[_0x3cdf3c(0xe0)](_0x4dbb39=>{const _0x236342=_0x3cdf3c;_0x4dbb39['on'](_0x236342(0xdf)+_0x35ce2b,(_0x1b7592,{markerRange:_0x54cc86,markerName:_0x4a63f7},_0x165e5b)=>{const _0x113c29=_0x236342;if(!_0x165e5b[_0x113c29(0xbf)][_0x113c29(0xc5)])return;if(!_0x165e5b[_0x113c29(0xee)][_0x113c29(0xf6)](_0x54cc86,_0x1b7592[_0x113c29(0x108)]))return;const _0xafe579=_0x54cc86[_0x113c29(0xd0)]();let _0x1845fe=_0xafe579?_0x165e5b[_0x113c29(0xf3)][_0x113c29(0x10f)](_0xafe579):null;if(!_0x1845fe){const _0x430db=_0x54cc86[_0x113c29(0x105)];if(_0x165e5b[_0x113c29(0xeb)][_0x113c29(0xc4)](_0x430db,_0x113c29(0xff))){const _0x51ae21=_0x165e5b[_0x113c29(0xf3)][_0x113c29(0xce)](_0x430db);_0x1845fe=_0x165e5b[_0x113c29(0xcf)][_0x113c29(0xfc)](_0x113c29(0xf4)),_0x1845fe[_0x113c29(0x106)]=()=>null,_0x165e5b[_0x113c29(0xcf)][_0x113c29(0xc6)](_0x51ae21,_0x1845fe);}else{const _0x2d272d=_0x430db[_0x113c29(0xd4)];_0x1845fe=_0x165e5b[_0x113c29(0xf3)][_0x113c29(0x10f)](_0x2d272d);}}for(;_0x1845fe[_0x113c29(0xbe)]!==_0x1845fe[_0x113c29(0xd3)]&&0x0===_0x1845fe[_0x113c29(0x100)];)_0x1845fe=_0x1845fe[_0x113c29(0xbe)];const _0x28fe5c=_0x4a63f7[_0x113c29(0x101)](0xb);_0x165e5b[_0x113c29(0xcf)][_0x113c29(0xd7)](_0x113c29(0xef),_0x113c29(0xc1),_0x1845fe),_0x165e5b[_0x113c29(0xcf)][_0x113c29(0xc7)](_0x113c29(0x10b),_0x28fe5c,_0x1845fe),_0x165e5b[_0x113c29(0xf3)][_0x113c29(0xf9)](_0x1845fe,_0x4a63f7),_0x1b7592[_0x113c29(0xe5)]();});});}}
23
+ const _0x3f81a0=_0x5143;(function(_0x198154,_0x36e5db){const _0x5186ba=_0x5143,_0x5093c9=_0x198154();while(!![]){try{const _0x2a9193=parseInt(_0x5186ba(0xfb))/0x1*(-parseInt(_0x5186ba(0xf5))/0x2)+-parseInt(_0x5186ba(0x136))/0x3+parseInt(_0x5186ba(0x111))/0x4+parseInt(_0x5186ba(0xfa))/0x5*(parseInt(_0x5186ba(0x132))/0x6)+-parseInt(_0x5186ba(0xf9))/0x7+parseInt(_0x5186ba(0x12b))/0x8*(-parseInt(_0x5186ba(0x11c))/0x9)+parseInt(_0x5186ba(0xf7))/0xa;if(_0x2a9193===_0x36e5db)break;else _0x5093c9['push'](_0x5093c9['shift']());}catch(_0x2f4fcf){_0x5093c9['push'](_0x5093c9['shift']());}}}(_0x3f88,0x810c5));import{Plugin as _0xe187cd}from'ckeditor5/src/core.js';function _0x5143(_0xc73408,_0x5074a1){const _0x3f882b=_0x3f88();return _0x5143=function(_0x51435e,_0x162d56){_0x51435e=_0x51435e-0xe6;let _0x5db3bc=_0x3f882b[_0x51435e];return _0x5db3bc;},_0x5143(_0xc73408,_0x5074a1);}function _0x3f88(){const _0x5bf8fe=['$text','removeMarker','config','init','licenseKey','nodeAfter','paginationLicenseKeyValid','createContainerElement','requires','paginationLicenseKeyTrialLimit:operations','bindElementToMarker','_licenseKeyCheckInterval','checkChild','addMarker','pagination-invalid-license-key','_updatePageBreakMarkers','has','1953504tglzri','listenTo','data-pagination-page','dataDowncast','pluginName','change','paginationLicenseKeyInvalid','writer','pagination:','consume','updateMarker','153CISRwI','index','name','consumable','always','isEnabled','bind','pagination','root','_setUpDataDowncastConversion','start','paginationLicenseKeyTrial','getContainedElement','totalPages','editor','455024SVDkzy','setStyle','schema','modelRange','Pagination','options','toViewElement','24gZxLZX','length','conversion','markers','2403195GwoBLp','for','getFillerOffset','scrollToPage','pagination-trial-license-key-reached-limit-changes','span','add','model','addMarker:','toViewPosition','PaginationEditing','setAttribute','stop','pageNumber','substring','get','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.','page-break-before','change:pageBreaks','plugins','2oyIpaf','insert','28461990GJscsy','set','3643906vzkaci','462865jxzcXF','887737okayyP','parent','destroy','info','mapper'];_0x3f88=function(){return _0x5bf8fe;};return _0x3f88();}import{CKEditorError as _0x2df148}from'ckeditor5/src/utils.js';import _0x5b3e3b from'./paginationlookup.js';import _0x5f4969 from'./paginationrenderer.js';import'../theme/pagination.css';export default class s extends _0xe187cd{static get[_0x3f81a0(0x115)](){const _0x91c4fd=_0x3f81a0;return _0x91c4fd(0xeb);}static get[_0x3f81a0(0x108)](){return[_0x5b3e3b,_0x5f4969];}[_0x3f81a0(0x103)](){const _0x4124d6=_0x3f81a0;this[_0x4124d6(0xf8)]({'pageNumber':0x1,'totalPages':0x1});const _0x591eb1=this[_0x4124d6(0x12a)][_0x4124d6(0xf4)][_0x4124d6(0xf0)](_0x4124d6(0x12f)),_0xefd962=this[_0x4124d6(0x12a)][_0x4124d6(0xf4)][_0x4124d6(0xf0)](_0x5b3e3b),_0x2a21cd=this[_0x4124d6(0x12a)][_0x4124d6(0xf4)][_0x4124d6(0xf0)](_0x5f4969);this[_0x4124d6(0x122)](_0x4124d6(0x121))['to'](_0x591eb1),this[_0x4124d6(0x125)](),this[_0x4124d6(0x122)](_0x4124d6(0xee))['to'](_0x2a21cd),this[_0x4124d6(0x112)](_0xefd962,_0x4124d6(0xf3),(_0x325383,_0x7acbcb,_0x1da369,_0x3b8b39)=>{const _0xb7d6e8=_0x4124d6;this[_0xb7d6e8(0x129)]=_0x1da369[_0xb7d6e8(0x133)],this[_0xb7d6e8(0x10f)](_0x1da369,_0x3b8b39);});const _0x2879e1=this[_0x4124d6(0x12a)];this[_0x4124d6(0x104)]=_0x2879e1[_0x4124d6(0x102)][_0x4124d6(0xf0)](_0x4124d6(0x104)),this[_0x4124d6(0x10b)]=setInterval(()=>{const _0x59df46=_0x4124d6;let _0x10465f;for(const _0x5746a1 in _0x2879e1){const _0x4fc8cc=_0x5746a1,_0x1b8a18=_0x2879e1[_0x4fc8cc];if(_0x59df46(0x127)===_0x1b8a18||_0x59df46(0x117)===_0x1b8a18||_0x59df46(0x106)===_0x1b8a18||_0x59df46(0x109)===_0x1b8a18){delete _0x2879e1[_0x4fc8cc],_0x10465f=_0x1b8a18;break;}}if(_0x59df46(0x117)===_0x10465f)throw clearInterval(this[_0x59df46(0x10b)]),new _0x2df148(_0x59df46(0x10e),null);if(_0x59df46(0x127)===_0x10465f&&console[_0x59df46(0xfe)](_0x59df46(0xf1)),_0x59df46(0x109)===_0x10465f)throw clearInterval(this[_0x59df46(0x10b)]),new _0x2df148(_0x59df46(0x13a),null);_0x59df46(0x106)===_0x10465f&&clearInterval(this[_0x59df46(0x10b)]);},0x3e8);}[_0x3f81a0(0xfd)](){const _0x4a1b74=_0x3f81a0;clearInterval(this[_0x4a1b74(0x10b)]);}[_0x3f81a0(0x139)](_0x4e167b){const _0x56abd2=_0x3f81a0;if(!this[_0x56abd2(0x121)])return;_0x4e167b<0x1&&(_0x4e167b=0x1),_0x4e167b>this[_0x56abd2(0x129)]&&(_0x4e167b=this[_0x56abd2(0x129)]),this[_0x56abd2(0x12a)][_0x56abd2(0xf4)][_0x56abd2(0xf0)](_0x5f4969)[_0x56abd2(0x139)](_0x4e167b);}[_0x3f81a0(0x10f)](_0x331b81,_0xb32bd0){const _0x5a9b56=_0x3f81a0,_0x1b53c1=this[_0x5a9b56(0x12a)][_0x5a9b56(0xe8)];this[_0x5a9b56(0x121)]&&_0x1b53c1[_0x5a9b56(0x116)](_0x142e8a=>{const _0x5ed111=_0x5a9b56;for(let _0x2eaecd=0x1;_0x2eaecd<_0x331b81[_0x5ed111(0x133)];_0x2eaecd++){const _0x5cc489=_0x331b81[_0x2eaecd][_0x5ed111(0x12e)],_0x28f04a=_0x5ed111(0x119)+(_0x2eaecd+0x1);_0x1b53c1[_0x5ed111(0x135)][_0x5ed111(0x110)](_0x28f04a)?_0x142e8a[_0x5ed111(0x11b)](_0x28f04a,{'range':_0x5cc489}):_0x142e8a[_0x5ed111(0x10d)](_0x28f04a,{'range':_0x5cc489,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x551fea=_0x331b81[_0x5ed111(0x133)];_0x551fea<_0xb32bd0[_0x5ed111(0x133)];_0x551fea++){const _0xa3b3b4=_0x5ed111(0x119)+(_0x551fea+0x1);_0x1b53c1[_0x5ed111(0x135)][_0x5ed111(0x110)](_0xa3b3b4)&&_0x142e8a[_0x5ed111(0x101)](_0xa3b3b4);}});}[_0x3f81a0(0x125)](){const _0x2ab466=_0x3f81a0,_0x354f50=_0x2ab466(0x123);this[_0x2ab466(0x12a)][_0x2ab466(0x134)][_0x2ab466(0x137)](_0x2ab466(0x114))[_0x2ab466(0xe7)](_0x15157e=>{const _0x2f5ee4=_0x2ab466;_0x15157e['on'](_0x2f5ee4(0xe9)+_0x354f50,(_0xbb7ae5,{markerRange:_0x2d9df6,markerName:_0x34bb1d},_0x207e15)=>{const _0x18676b=_0x2f5ee4;if(!_0x207e15[_0x18676b(0x130)][_0x18676b(0x123)])return;if(!_0x207e15[_0x18676b(0x11f)][_0x18676b(0x11a)](_0x2d9df6,_0xbb7ae5[_0x18676b(0x11e)]))return;const _0x4cb164=_0x2d9df6[_0x18676b(0x128)]();let _0x357573=_0x4cb164?_0x207e15[_0x18676b(0xff)][_0x18676b(0x131)](_0x4cb164):null;if(!_0x357573){const _0xfbeafe=_0x2d9df6[_0x18676b(0x126)];if(_0x207e15[_0x18676b(0x12d)][_0x18676b(0x10c)](_0xfbeafe,_0x18676b(0x100))){const _0x4105df=_0x207e15[_0x18676b(0xff)][_0x18676b(0xea)](_0xfbeafe);_0x357573=_0x207e15[_0x18676b(0x118)][_0x18676b(0x107)](_0x18676b(0xe6)),_0x357573[_0x18676b(0x138)]=()=>null,_0x207e15[_0x18676b(0x118)][_0x18676b(0xf6)](_0x4105df,_0x357573);}else{const _0x388f85=_0xfbeafe[_0x18676b(0x105)];_0x357573=_0x207e15[_0x18676b(0xff)][_0x18676b(0x131)](_0x388f85);}}for(;_0x357573[_0x18676b(0xfc)]!==_0x357573[_0x18676b(0x124)]&&0x0===_0x357573[_0x18676b(0x11d)];)_0x357573=_0x357573[_0x18676b(0xfc)];const _0x34cc35=_0x34bb1d[_0x18676b(0xef)](0xb);_0x207e15[_0x18676b(0x118)][_0x18676b(0x12c)](_0x18676b(0xf2),_0x18676b(0x120),_0x357573),_0x207e15[_0x18676b(0x118)][_0x18676b(0xec)](_0x18676b(0x113),_0x34cc35,_0x357573),_0x207e15[_0x18676b(0xff)][_0x18676b(0x10a)](_0x357573,_0x34bb1d),_0xbb7ae5[_0x18676b(0xed)]();});});}}