@ckeditor/ckeditor5-footnotes 0.0.1 → 47.2.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/CHANGELOG.md +4 -0
- package/LICENSE.md +6 -6
- package/README.md +44 -3
- package/build/footnotes.js +5 -0
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/be.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +65 -0
- package/dist/index-content.css +76 -0
- package/dist/index-editor.css +81 -0
- package/dist/index.css +187 -0
- package/dist/index.js +23 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/af.umd.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/ast.d.ts +8 -0
- package/dist/translations/ast.js +23 -0
- package/dist/translations/ast.umd.js +23 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +23 -0
- package/dist/translations/az.umd.js +23 -0
- package/dist/translations/be.d.ts +8 -0
- package/dist/translations/be.js +23 -0
- package/dist/translations/be.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +23 -0
- package/dist/translations/bs.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +23 -0
- package/dist/translations/de-ch.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en-gb.d.ts +8 -0
- package/dist/translations/en-gb.js +23 -0
- package/dist/translations/en-gb.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/eo.d.ts +8 -0
- package/dist/translations/eo.js +23 -0
- package/dist/translations/eo.umd.js +23 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es-co.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/eu.d.ts +8 -0
- package/dist/translations/eu.js +23 -0
- package/dist/translations/eu.umd.js +23 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +23 -0
- package/dist/translations/fa.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/gu.d.ts +8 -0
- package/dist/translations/gu.js +23 -0
- package/dist/translations/gu.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/hy.d.ts +8 -0
- package/dist/translations/hy.js +23 -0
- package/dist/translations/hy.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/jv.umd.js +23 -0
- package/dist/translations/kk.d.ts +8 -0
- package/dist/translations/kk.js +23 -0
- package/dist/translations/kk.umd.js +23 -0
- package/dist/translations/km.d.ts +8 -0
- package/dist/translations/km.js +23 -0
- package/dist/translations/km.umd.js +23 -0
- package/dist/translations/kn.d.ts +8 -0
- package/dist/translations/kn.js +23 -0
- package/dist/translations/kn.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/ku.d.ts +8 -0
- package/dist/translations/ku.js +23 -0
- package/dist/translations/ku.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nb.d.ts +8 -0
- package/dist/translations/nb.js +23 -0
- package/dist/translations/nb.umd.js +23 -0
- package/dist/translations/ne.d.ts +8 -0
- package/dist/translations/ne.js +23 -0
- package/dist/translations/ne.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/oc.d.ts +8 -0
- package/dist/translations/oc.js +23 -0
- package/dist/translations/oc.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/si.d.ts +8 -0
- package/dist/translations/si.js +23 -0
- package/dist/translations/si.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sl.d.ts +8 -0
- package/dist/translations/sl.js +23 -0
- package/dist/translations/sl.umd.js +23 -0
- package/dist/translations/sq.d.ts +8 -0
- package/dist/translations/sq.js +23 -0
- package/dist/translations/sq.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/ti.d.ts +8 -0
- package/dist/translations/ti.js +23 -0
- package/dist/translations/ti.umd.js +23 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +23 -0
- package/dist/translations/tk.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +23 -0
- package/dist/translations/tt.umd.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/ur.umd.js +23 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/uz.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/lang/contexts.json +27 -0
- package/lang/translations/af.po +112 -0
- package/lang/translations/ar.po +112 -0
- package/lang/translations/ast.po +112 -0
- package/lang/translations/az.po +112 -0
- package/lang/translations/be.po +112 -0
- package/lang/translations/bg.po +112 -0
- package/lang/translations/bn.po +112 -0
- package/lang/translations/bs.po +112 -0
- package/lang/translations/ca.po +112 -0
- package/lang/translations/cs.po +112 -0
- package/lang/translations/da.po +112 -0
- package/lang/translations/de-ch.po +112 -0
- package/lang/translations/de.po +112 -0
- package/lang/translations/el.po +112 -0
- package/lang/translations/en-au.po +112 -0
- package/lang/translations/en-gb.po +112 -0
- package/lang/translations/en.po +112 -0
- package/lang/translations/eo.po +112 -0
- package/lang/translations/es-co.po +112 -0
- package/lang/translations/es.po +112 -0
- package/lang/translations/et.po +112 -0
- package/lang/translations/eu.po +112 -0
- package/lang/translations/fa.po +112 -0
- package/lang/translations/fi.po +112 -0
- package/lang/translations/fr.po +112 -0
- package/lang/translations/gl.po +112 -0
- package/lang/translations/gu.po +112 -0
- package/lang/translations/he.po +112 -0
- package/lang/translations/hi.po +112 -0
- package/lang/translations/hr.po +112 -0
- package/lang/translations/hu.po +112 -0
- package/lang/translations/hy.po +112 -0
- package/lang/translations/id.po +112 -0
- package/lang/translations/it.po +112 -0
- package/lang/translations/ja.po +112 -0
- package/lang/translations/jv.po +112 -0
- package/lang/translations/kk.po +112 -0
- package/lang/translations/km.po +112 -0
- package/lang/translations/kn.po +112 -0
- package/lang/translations/ko.po +112 -0
- package/lang/translations/ku.po +112 -0
- package/lang/translations/lt.po +112 -0
- package/lang/translations/lv.po +112 -0
- package/lang/translations/ms.po +112 -0
- package/lang/translations/nb.po +112 -0
- package/lang/translations/ne.po +112 -0
- package/lang/translations/nl.po +112 -0
- package/lang/translations/no.po +112 -0
- package/lang/translations/oc.po +112 -0
- package/lang/translations/pl.po +112 -0
- package/lang/translations/pt-br.po +112 -0
- package/lang/translations/pt.po +112 -0
- package/lang/translations/ro.po +112 -0
- package/lang/translations/ru.po +112 -0
- package/lang/translations/si.po +112 -0
- package/lang/translations/sk.po +112 -0
- package/lang/translations/sl.po +112 -0
- package/lang/translations/sq.po +112 -0
- package/lang/translations/sr-latn.po +112 -0
- package/lang/translations/sr.po +112 -0
- package/lang/translations/sv.po +112 -0
- package/lang/translations/th.po +112 -0
- package/lang/translations/ti.po +112 -0
- package/lang/translations/tk.po +112 -0
- package/lang/translations/tr.po +112 -0
- package/lang/translations/tt.po +112 -0
- package/lang/translations/ug.po +112 -0
- package/lang/translations/uk.po +112 -0
- package/lang/translations/ur.po +112 -0
- package/lang/translations/uz.po +112 -0
- package/lang/translations/vi.po +112 -0
- package/lang/translations/zh-cn.po +112 -0
- package/lang/translations/zh.po +112 -0
- package/package.json +63 -4
- package/src/augmentation.d.ts +34 -0
- package/src/augmentation.js +23 -0
- package/src/commands/insertfootnotecommand.d.ts +20 -0
- package/src/commands/insertfootnotecommand.js +23 -0
- package/src/footnotes.d.ts +33 -0
- package/src/footnotes.js +23 -0
- package/src/footnotesclipboard.d.ts +38 -0
- package/src/footnotesclipboard.js +23 -0
- package/src/footnotesconfig.d.ts +30 -0
- package/src/footnotesconfig.js +23 -0
- package/src/footnotesediting.d.ts +47 -0
- package/src/footnotesediting.js +23 -0
- package/src/footnotesproperties/commands/footnotesstartcommand.d.ts +28 -0
- package/src/footnotesproperties/commands/footnotesstartcommand.js +23 -0
- package/src/footnotesproperties/commands/footnotesstylecommand.d.ts +29 -0
- package/src/footnotesproperties/commands/footnotesstylecommand.js +23 -0
- package/src/footnotesproperties/footnotespropertiesconfig.d.ts +53 -0
- package/src/footnotesproperties/footnotespropertiesconfig.js +23 -0
- package/src/footnotesproperties/footnotespropertiesediting.d.ts +36 -0
- package/src/footnotesproperties/footnotespropertiesediting.js +23 -0
- package/src/footnotesproperties/footnotespropertiesui.d.ts +41 -0
- package/src/footnotesproperties/footnotespropertiesui.js +23 -0
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.d.ts +15 -0
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +23 -0
- package/src/footnotesproperties.d.ts +32 -0
- package/src/footnotesproperties.js +23 -0
- package/src/footnotestracker.d.ts +102 -0
- package/src/footnotestracker.js +23 -0
- package/src/footnotesui.d.ts +31 -0
- package/src/footnotesui.js +23 -0
- package/src/index.d.ts +21 -0
- package/src/index.js +23 -0
- package/src/modelelementtracker.d.ts +60 -0
- package/src/modelelementtracker.js +23 -0
- package/theme/footnotes.css +153 -0
- package/theme/footnotesproperties.css +54 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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
|
+
/**
|
|
6
|
+
* @module footnotes/footnotesconfig
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { FootnotesPropertiesConfig } from './footnotesproperties/footnotespropertiesconfig.js';
|
|
10
|
+
/**
|
|
11
|
+
* The configuration of the {@link module:footnotes/footnotes~Footnotes} feature.
|
|
12
|
+
*
|
|
13
|
+
* Read more in {@link module:footnotes/footnotesconfig~FootnotesConfig}.
|
|
14
|
+
*/
|
|
15
|
+
export interface FootnotesConfig {
|
|
16
|
+
/**
|
|
17
|
+
* Allows multiple blocks in single footnote definition item.
|
|
18
|
+
*
|
|
19
|
+
* With this option enabled you can have block widgets, for example images or even tables, within a footnote definition item.
|
|
20
|
+
*
|
|
21
|
+
* **Note:** This is enabled by default.
|
|
22
|
+
*
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
multiBlock?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The configuration of the {@link module:footnotes/footnotesproperties~FootnotesProperties} feature.
|
|
28
|
+
*/
|
|
29
|
+
footnotesProperties?: FootnotesPropertiesConfig;
|
|
30
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export{};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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
|
+
/**
|
|
6
|
+
* @module footnotes/footnotesediting
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { type ViewNode } from 'ckeditor5/src/engine.js';
|
|
11
|
+
import { FootnotesTracker } from './footnotestracker.js';
|
|
12
|
+
/**
|
|
13
|
+
* The footnotes editing plugin.
|
|
14
|
+
*/
|
|
15
|
+
export declare class FootnotesEditing extends Plugin {
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "FootnotesEditing";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): readonly [typeof FootnotesTracker];
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get isOfficialPlugin(): true;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get isPremiumPlugin(): true;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
init(): void;
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
afterInit(): void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Checks if the given element is a footnotes definitions widget.
|
|
43
|
+
*
|
|
44
|
+
* @param element The element to check.
|
|
45
|
+
* @returns Whether the element is a footnotes definitions widget.
|
|
46
|
+
*/
|
|
47
|
+
export declare function isFootnotesDefinitionsWidget(element: ViewNode): boolean;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{Plugin as _0xd8fe3d}from'ckeditor5/src/core.js';import{isWidget as _0x1ff360,toWidget as _0x57dd10,toWidgetEditable as _0x577c2d}from'ckeditor5/src/widget.js';import{uid as _0x558bd0}from'ckeditor5/src/utils.js';import{PointerObserver as _0x145a9f,ClickObserver as _0x55933d}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x55fa84}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1b1194}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0xd8fe3d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x55fa84];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xa906cb}=this;_0xa906cb['config']['define']('footnotes.multiBlock',!0x0),_0xa906cb['commands']['add']('insertFootnote',new _0x1b1194(_0xa906cb)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x35985c){const _0x1ca078=_0x4e9fc3([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x1f9f05=0x47a28506,_0x2c19ea=0x47a5f296^_0x1f9f05,_0x347673=window[_0x4e9fc3([0x44,0x61,0x74,0x65])][_0x4e9fc3([0x6e,0x6f,0x77])](),_0x524aa3=_0x35985c[_0x4e9fc3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22a3e8=new window[(_0x4e9fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x423670=>{_0x524aa3[_0x4e9fc3([0x6f,0x6e,0x63,0x65])](_0x4e9fc3([0x72,0x65,0x61,0x64,0x79]),_0x423670);}),_0xbb204={[_0x4e9fc3([0x6b,0x74,0x79])]:_0x4e9fc3([0x45,0x43]),[_0x4e9fc3([0x75,0x73,0x65])]:_0x4e9fc3([0x73,0x69,0x67]),[_0x4e9fc3([0x63,0x72,0x76])]:_0x4e9fc3([0x50,0x2d,0x32,0x35,0x36]),[_0x4e9fc3([0x78])]:_0x4e9fc3([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]),[_0x4e9fc3([0x79])]:_0x4e9fc3([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]),[_0x4e9fc3([0x61,0x6c,0x67])]:_0x4e9fc3([0x45,0x53,0x32,0x35,0x36])},_0x28ac54=_0x524aa3[_0x4e9fc3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e9fc3([0x67,0x65,0x74])](_0x4e9fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x13947d(){let _0x1f1ccb,_0x3043a6=null,_0x59e66b=null;try{if(_0x28ac54==_0x4e9fc3([0x47,0x50,0x4c]))return _0x4e9fc3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1f1ccb=_0x305c80(),!_0x1f1ccb)return _0x4e9fc3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1f1ccb[_0x4e9fc3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x59e66b=_0x428198(_0x1f1ccb[_0x4e9fc3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1f1ccb[_0x4e9fc3([0x6a,0x74,0x69])])),await _0x29e93d()?_0x572316()?_0x53ee6f()?_0x4e9fc3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1aabe3()?(_0x1f1ccb[_0x4e9fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e9fc3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3043a6=_0x486125(_0x4e9fc3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1f1ccb[_0x4e9fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e9fc3([0x74,0x72,0x69,0x61,0x6c])&&(_0x3043a6=_0x486125(_0x4e9fc3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c9baa()):_0x4e9fc3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e9fc3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e9fc3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4e9fc3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x53ee6f(){const _0x573d4c=[_0x4e9fc3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e9fc3([0x74,0x72,0x69,0x61,0x6c])][_0x4e9fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1ccb[_0x4e9fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x347673/0x3e8:0xe10*_0x2c19ea;return _0x1f1ccb[_0x4e9fc3([0x65,0x78,0x70])]<_0x573d4c;}function _0x572316(){const _0x46ee75=_0x1f1ccb[_0x4e9fc3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x46ee75&&(!!_0x46ee75[_0x4e9fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e9fc3([0x2a]))||!!_0x46ee75[_0x4e9fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e9fc3([0x46,0x4f,0x4f])));}function _0x1aabe3(){const _0x29b079=_0x1f1ccb[_0x4e9fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29b079||0x0==_0x29b079[_0x4e9fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c3b82}=new URL(window[_0x4e9fc3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29b079[_0x4e9fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c3b82))return!0x0;const _0x539889=_0x3c3b82[_0x4e9fc3([0x73,0x70,0x6c,0x69,0x74])](_0x4e9fc3([0x2e]));return _0x29b079[_0x4e9fc3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x272d1f=>_0x272d1f[_0x4e9fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e9fc3([0x2a])))[_0x4e9fc3([0x6d,0x61,0x70])](_0x545155=>_0x545155[_0x4e9fc3([0x73,0x70,0x6c,0x69,0x74])](_0x4e9fc3([0x2e])))[_0x4e9fc3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ea200=>_0x2ea200[_0x4e9fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x539889[_0x4e9fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e9fc3([0x6d,0x61,0x70])](_0x15944f=>Array(_0x539889[_0x4e9fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x15944f[_0x4e9fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e9fc3([0x66,0x69,0x6c,0x6c])](_0x15944f[0x0]===_0x4e9fc3([0x2a])?_0x4e9fc3([0x2a]):'')[_0x4e9fc3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x15944f))[_0x4e9fc3([0x73,0x6f,0x6d,0x65])](_0x59a524=>_0x539889[_0x4e9fc3([0x65,0x76,0x65,0x72,0x79])]((_0x2b1cc0,_0x102b78)=>_0x59a524[_0x102b78]===_0x2b1cc0||_0x59a524[_0x102b78]===_0x4e9fc3([0x2a])));}function _0x4c9baa(){return _0x3043a6&&_0x59e66b?new window[(_0x4e9fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x82d37c,_0x116984)=>{_0x3043a6[_0x4e9fc3([0x74,0x68,0x65,0x6e])](_0x82d37c,_0x116984),_0x59e66b[_0x4e9fc3([0x74,0x68,0x65,0x6e])](_0x42ac7b=>{_0x42ac7b!=_0x4e9fc3([0x56,0x61,0x6c,0x69,0x64])&&_0x82d37c(_0x42ac7b);},_0x116984);}):_0x3043a6||_0x59e66b||_0x4e9fc3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x428198(_0x3b7783,_0x5c98fe){return new window[(_0x4e9fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f332a=>{if(_0x380aba())return _0x2f332a(_0x4e9fc3([0x56,0x61,0x6c,0x69,0x64]));_0x57832b(),_0x524aa3[_0x4e9fc3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e9fc3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x327818=!0x1;const _0x52f395=_0x558bd0();function _0x388a6c(_0x249863){return!!_0x249863&&(typeof _0x249863===_0x4e9fc3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x249863===_0x4e9fc3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x249863[_0x4e9fc3([0x74,0x68,0x65,0x6e])]===_0x4e9fc3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x249863[_0x4e9fc3([0x63,0x61,0x74,0x63,0x68])]===_0x4e9fc3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f18ef(_0x1bb15f){_0x49241b(_0x1bb15f)[_0x4e9fc3([0x74,0x68,0x65,0x6e])](_0x26a9b2=>{if(!_0x26a9b2||_0x26a9b2[_0x4e9fc3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e9fc3([0x6f,0x6b]))return _0x4e9fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e84d8(_0x2ec424(_0x52f395+_0x5c98fe))!=_0x26a9b2[_0x4e9fc3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e9fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e9fc3([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e9fc3([0x74,0x68,0x65,0x6e])](_0x2c2b75=>(_0x14432f(),_0x2c2b75),()=>{const _0x549288=_0xc3f1fa();return null==_0x549288?(_0x14432f(),_0x4e9fc3([0x56,0x61,0x6c,0x69,0x64])):_0x4e9fc3(_0x347673-_0x549288>(0x63ae0106^_0x1f9f05)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e9fc3([0x74,0x68,0x65,0x6e])](_0x2f332a)[_0x4e9fc3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f332a(_0x4e9fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x512ab2=0x47946b86^_0x1f9f05;function _0x14432f(){const _0xc91767=_0x4e9fc3([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e84d8(_0x2ec424(_0x3b7783)),_0x56ab5d=_0x391506(_0x5e84d8(window[_0x4e9fc3([0x4d,0x61,0x74,0x68])][_0x4e9fc3([0x63,0x65,0x69,0x6c])](_0x347673/_0x512ab2)));window[_0x4e9fc3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e9fc3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc91767,_0x56ab5d);}function _0xc3f1fa(){const _0x443a83=_0x4e9fc3([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e84d8(_0x2ec424(_0x3b7783)),_0x4bbe06=window[_0x4e9fc3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e9fc3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x443a83);return _0x4bbe06?window[_0x4e9fc3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x391506(_0x4bbe06),0x10)*_0x512ab2:null;}function _0x49241b(_0x28371c){return new window[(_0x4e9fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f93a8,_0x354c5e)=>{_0x28371c[_0x4e9fc3([0x74,0x68,0x65,0x6e])](_0x3f93a8,_0x354c5e),window[_0x4e9fc3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x354c5e,0x47a351c6^_0x1f9f05);});}}_0x524aa3[_0x4e9fc3([0x6f,0x6e])](_0x4e9fc3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28d4c,_0x40066e)=>{if(_0x40066e[0x0]!=_0x3b7783)return _0x2f332a(_0x4e9fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40066e[0x1]={..._0x40066e[0x1],[_0x4e9fc3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x52f395};},{[_0x4e9fc3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e9fc3([0x68,0x69,0x67,0x68])}),_0x524aa3[_0x4e9fc3([0x6f,0x6e])](_0x4e9fc3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2cb740=>{_0x388a6c(_0x2cb740[_0x4e9fc3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x327818=!0x0,_0x1f18ef(_0x2cb740[_0x4e9fc3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e9fc3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e9fc3([0x6c,0x6f,0x77])}),_0x22a3e8[_0x4e9fc3([0x74,0x68,0x65,0x6e])](()=>{_0x327818||_0x2f332a(_0x4e9fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x380aba(){return _0x524aa3[_0x4e9fc3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e9fc3([0x76,0x69,0x65,0x77])][_0x4e9fc3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e9fc3([0x61,0x75,0x74,0x6f]);}function _0x57832b(){_0x524aa3[_0x4e9fc3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e9fc3([0x76,0x69,0x65,0x77])][_0x4e9fc3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e9fc3([0x61,0x75,0x74,0x6f]);}}function _0x486125(_0x4cd67d){const _0x2960be=[new window[(_0x4e9fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20c535=>setTimeout(_0x20c535,0x47abbbca^_0x1f9f05)),_0x22a3e8[_0x4e9fc3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e9fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x314241=>{let _0x31bafe=0x0;_0x524aa3[_0x4e9fc3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e9fc3([0x6f,0x6e])](_0x4e9fc3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c4302,_0x4f6af8)=>{_0x4f6af8[0x0][_0x4e9fc3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x31bafe++,_0x31bafe==(0x47a284fe^_0x1f9f05)&&(_0x314241(),_0x1c4302[_0x4e9fc3([0x6f,0x66,0x66])]());});}))];return window[_0x4e9fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e9fc3([0x72,0x61,0x63,0x65])](_0x2960be)[_0x4e9fc3([0x74,0x68,0x65,0x6e])](()=>_0x4cd67d);}async function _0x2e9cf5(){await _0x22a3e8,_0x524aa3[_0x4e9fc3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e9fc3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x60b4ef,_0x524aa3[_0x4e9fc3([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e9fc3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x60b4ef,_0x524aa3[_0x4e9fc3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e9fc3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b478b(_0x11cb13){const _0x1e1b9a=_0xa69aec();_0x524aa3[_0x1e1b9a]=_0x4e9fc3([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11cb13,_0x11cb13!=_0x4e9fc3([0x56,0x61,0x6c,0x69,0x64])&&_0x2e9cf5();}function _0xa69aec(){const _0xfa08a8=window[_0x4e9fc3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e9fc3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e9fc3([0x6e,0x6f,0x77])]())[_0x4e9fc3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e9fc3([0x2e]),'');let _0x308efe=_0x4e9fc3([0x75]);for(let _0x5332ca=0x0;_0x5332ca<_0xfa08a8[_0x4e9fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5332ca+=0x2){let _0x356cbc=window[_0x4e9fc3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfa08a8[_0x4e9fc3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5332ca,_0x5332ca+0x2));_0x356cbc>=_0x1ca078[_0x4e9fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x356cbc-=_0x1ca078[_0x4e9fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x308efe+=_0x1ca078[_0x356cbc];}return _0x308efe;}function _0x305c80(){const _0x5f1288=_0x28ac54[_0x4e9fc3([0x73,0x70,0x6c,0x69,0x74])](_0x4e9fc3([0x2e]));if(0x3!=_0x5f1288[_0x4e9fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4edcc4(_0x5f1288[0x1]);function _0x4edcc4(_0x102d0a){const _0x363812=_0xb8f3d8(_0x102d0a);return _0x363812&&_0x129f12()?_0x363812:null;function _0x129f12(){const _0x3f57e0=_0x363812[_0x4e9fc3([0x6a,0x74,0x69])],_0x3c1ed2=window[_0x4e9fc3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f57e0[_0x4e9fc3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f57e0[_0x4e9fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x342c53={..._0x363812,[_0x4e9fc3([0x6a,0x74,0x69])]:_0x3f57e0[_0x4e9fc3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f57e0[_0x4e9fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x342c53[_0x4e9fc3([0x76,0x63])],_0x2ec424(_0x342c53)==_0x3c1ed2;}}}async function _0x29e93d(){let _0x1b707c=!0x0;try{const _0x3377e6=_0x28ac54[_0x4e9fc3([0x73,0x70,0x6c,0x69,0x74])](_0x4e9fc3([0x2e])),[_0x5d16df,_0x3f600a,_0x22bae2]=_0x3377e6;return _0x49cf31(_0x5d16df),await _0x3e1d7a(_0x5d16df,_0x3f600a,_0x22bae2),_0x1b707c;}catch{return!0x1;}function _0x49cf31(_0x3a6b5b){const _0x15b1b5=_0xb8f3d8(_0x3a6b5b);_0x15b1b5&&_0x15b1b5[_0x4e9fc3([0x61,0x6c,0x67])]==_0x4e9fc3([0x45,0x53,0x32,0x35,0x36])||(_0x1b707c=!0x1);}async function _0x3e1d7a(_0x8fe207,_0x14ab37,_0x4c1533){const _0x298f74=window[_0x4e9fc3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e9fc3([0x66,0x72,0x6f,0x6d])](_0x3bc43a(_0x4c1533),_0x380df3=>_0x380df3[_0x4e9fc3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39980e=new window[(_0x4e9fc3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e9fc3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8fe207+_0x4e9fc3([0x2e])+_0x14ab37),_0x3e3f0a=window[_0x4e9fc3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e9fc3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e3f0a)return;const _0x4a00c6=await _0x3e3f0a[_0x4e9fc3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e9fc3([0x6a,0x77,0x6b]),_0xbb204,{[_0x4e9fc3([0x6e,0x61,0x6d,0x65])]:_0x4e9fc3([0x45,0x43,0x44,0x53,0x41]),[_0x4e9fc3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e9fc3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e9fc3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e3f0a[_0x4e9fc3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e9fc3([0x6e,0x61,0x6d,0x65])]:_0x4e9fc3([0x45,0x43,0x44,0x53,0x41]),[_0x4e9fc3([0x68,0x61,0x73,0x68])]:{[_0x4e9fc3([0x6e,0x61,0x6d,0x65])]:_0x4e9fc3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a00c6,_0x298f74,_0x39980e)||(_0x1b707c=!0x1);}}function _0xb8f3d8(_0x241d4c){return _0x241d4c[_0x4e9fc3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e9fc3([0x65,0x79]))?JSON[_0x4e9fc3([0x70,0x61,0x72,0x73,0x65])](_0x3bc43a(_0x241d4c)):null;}function _0x3bc43a(_0x28d3ab){return window[_0x4e9fc3([0x61,0x74,0x6f,0x62])](_0x28d3ab[_0x4e9fc3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e9fc3([0x2b]))[_0x4e9fc3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e9fc3([0x2f])));}function _0x2ec424(_0x541c17){let _0x25a299=0x1505;function _0x10dd42(_0x10920d){for(let _0x2271e0=0x0;_0x2271e0<_0x10920d[_0x4e9fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2271e0++){const _0x136e61=_0x10920d[_0x4e9fc3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2271e0);_0x25a299=(_0x25a299<<0x5)+_0x25a299+_0x136e61,_0x25a299&=_0x25a299;}}function _0x4ae8bc(_0x3c45ee){Array[_0x4e9fc3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c45ee)?_0x3c45ee[_0x4e9fc3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4ae8bc):_0x3c45ee&&typeof _0x3c45ee==_0x4e9fc3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e9fc3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c45ee)[_0x4e9fc3([0x73,0x6f,0x72,0x74])]()[_0x4e9fc3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3681f4,_0x574544])=>{_0x10dd42(_0x3681f4),_0x4ae8bc(_0x574544);}):_0x10dd42(window[_0x4e9fc3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c45ee));}return _0x4ae8bc(_0x541c17),_0x25a299>>>0x0;}function _0x5e84d8(_0x2ad360){return _0x2ad360[_0x4e9fc3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e9fc3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e9fc3([0x30]));}function _0x391506(_0x5172a9){return _0x5172a9[_0x4e9fc3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e9fc3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e9fc3([0x6a,0x6f,0x69,0x6e])]('');}function _0x60b4ef(){}function _0x4e9fc3(_0xccfc1e){return _0xccfc1e['map'](_0x1f8e4f=>String['fromCharCode'](_0x1f8e4f))['join']('');}_0x1b478b(await _0x13947d());}(this);}['_moveSelectionToFootnoteDefinition'](_0x24bc4f){const {plugins:_0x4a8257,editing:_0x4edc29,model:_0x484e85}=this['editor'],_0x5a02fa=_0x4a8257['get'](_0x55fa84)['getFootnote'](_0x24bc4f);return!!_0x5a02fa&&(_0x484e85['change'](_0x2edf80=>{_0x2edf80['setSelection'](_0x2edf80['createPositionAt'](_0x5a02fa['definition'],'end'));}),_0x4edc29['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x38c384){const {plugins:_0x42f259,editing:_0x1ab62c,model:_0x20a456}=this['editor'],_0x2e2ee4=_0x42f259['get'](_0x55fa84)['getFootnote'](_0x38c384);return!!_0x2e2ee4&&(_0x20a456['change'](_0x57062a=>{_0x57062a['setSelection'](_0x2e2ee4['reference'],'on');}),_0x1ab62c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x20faea}=this['editor']['model'],_0x4ca024=this['editor']['config']['get']('footnotes.multiBlock');_0x20faea['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x20faea['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x20faea['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4ca024?_0x20faea['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x20faea['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x20faea['addChildCheck'](_0x5e858b=>{for(const _0xd0e881 of _0x5e858b)if('footnoteDefinition'===_0xd0e881['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x36907e}=this,{conversion:_0x2fa2fe,editing:_0x599918}=_0x36907e,{t:t}=_0x36907e['locale'];_0x2fa2fe['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5ce4e0,{writer:_0x4754a4,consumable:_0x4287cf})=>{const _0x43963c=_0x5ce4e0['getChild'](0x0);if(!_0x43963c||!_0x43963c['is']('element','a'))return null;const _0x2c88e6=_0x43963c['getAttribute']('href')||'';if(!_0x2c88e6['startsWith']('#'))return null;const _0x3916b0=_0x2c88e6['replace'](/^#/,'');if(!_0x3916b0)return null;_0x4287cf['consume'](_0x43963c,{'name':!0x0,'attributes':['href']});for(const {item:_0x2526a0}of _0x599918['view']['createRangeIn'](_0x43963c))_0x2526a0['is']('$textProxy')?_0x4287cf['consume'](_0x2526a0['textNode'],{'name':!0x0}):_0x2526a0['is']('element')&&_0x4287cf['consume'](_0x2526a0,{'name':!0x0});return _0x4754a4['createElement']('footnoteRef',{'footnoteId':_0x3916b0});}}),_0x2fa2fe['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2c18ac,{writer:_0x9a992a})=>D(_0x2c18ac,_0x9a992a)}),_0x2fa2fe['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x211d76,{writer:_0x2610c8})=>{const _0x5055d6=_0x211d76['getAttribute']('footnoteCounter');return _0x57dd10(D(_0x211d76,_0x2610c8),_0x2610c8,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5055d6)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3572dd}=this,{t:t}=_0x3572dd['locale'],{conversion:_0x204147}=_0x3572dd;_0x204147['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x204147['for']('upcast')['add'](_0x4e9b3f=>{_0x4e9b3f['on']('element:ol',(_0x301322,_0x1d8678,_0x38d872)=>{const _0x25121a=_0x1d8678['viewItem'];if(!_0x25121a['hasClass']('footnotes-list')||!_0x1d8678['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x38d872['consumable']['consume'](_0x25121a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x14ba17,modelCursor:_0x5a195d}=_0x38d872['convertChildren'](_0x1d8678['viewItem'],_0x1d8678['modelCursor']);_0x1d8678['modelRange']=_0x14ba17,_0x1d8678['modelCursor']=_0x5a195d;}),_0x4e9b3f['on']('element:hr',(_0x5d5413,_0xd45df4,_0x4fc820)=>{const _0x779563=_0xd45df4['viewItem'];_0x779563['hasClass']('footnotes-divider')&&_0xd45df4['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4fc820['consumable']['consume'](_0x779563,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x204147['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3846d0,{writer:_0x274ac8})=>g(_0x274ac8)}),_0x204147['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x537e4a,{writer:_0x5e786e})=>{const _0x59ae36=g(_0x5e786e,{'data-footnotes-list-label':t('Footnotes')}),_0x13ae6c=_0x57dd10(_0x59ae36,_0x5e786e,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5e786e['setCustomProperty']('footnotesDefinitions',!0x0,_0x13ae6c),_0x13ae6c;}});}['_defineDefinitionConverters'](){const {editor:_0x49b2ba}=this,{conversion:_0x3b684b,locale:_0x2fb789}=_0x49b2ba,_0x45c36f=_0x49b2ba['config']['get']('footnotes.multiBlock');_0x3b684b['for']('upcast')['add'](_0x3917f2=>{_0x3917f2['on']('element:li',(_0x20e409,_0x2e5af6,_0x158ed0)=>{const _0x506906=_0x2e5af6['viewItem'];if(!_0x506906['hasClass']('footnote-definition')||!_0x506906['getAttribute']('id'))return;const _0x1f39f0=_0x506906['parent'];if(!_0x1f39f0['is']('element','ol')||!_0x1f39f0['hasClass']('footnotes-list'))return;if(!_0x158ed0['consumable']['test'](_0x506906,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x6ce5b8=_0x158ed0['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x506906['getAttribute']('id')});if(!_0x158ed0['safeInsert'](_0x6ce5b8,_0x2e5af6['modelCursor']))return;_0x158ed0['consumable']['consume'](_0x506906,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4a5b9f=Array['from'](_0x506906['getChildren']())['find'](_0x5a724d=>_0x5a724d['is']('element')&&_0x5a724d['hasClass']('footnote-content'));for(const _0x103c85 of _0x506906['getChildren']())_0x103c85['is']('element')&&(_0x158ed0['consumable']['consume'](_0x103c85,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x158ed0['consumable']['consume'](_0x103c85,{'name':!0x0,'classes':'footnote-content'}));if(_0x4a5b9f){if(_0x45c36f)_0x158ed0['convertChildren'](_0x4a5b9f,_0x6ce5b8);else{const _0x5b1ba7=_0x158ed0['writer']['createElement']('footnoteInlineContent');_0x158ed0['writer']['insert'](_0x5b1ba7,_0x6ce5b8),_0x158ed0['convertChildren'](_0x4a5b9f,_0x5b1ba7);}}_0x158ed0['updateConversionResult'](_0x6ce5b8,_0x2e5af6);});}),_0x3b684b['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3df0a2,{writer:_0x56bf8e})=>v(_0x3df0a2,_0x56bf8e,_0x2fb789,{'dataPipeline':!0x0})}),_0x3b684b['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x448961,{writer:_0xcb85e1})=>v(_0x448961,_0xcb85e1,_0x2fb789)});}['_defineBogusParagraphConverters'](){const {editor:_0x58e86f}=this,{conversion:_0x4364f3}=_0x58e86f;_0x58e86f['config']['get']('footnotes.multiBlock')?(_0x4364f3['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x4364f3['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x58e86f['model']['document'],'change:data',()=>{!function(_0x5d8447,_0x11bebe){const _0x330aa7=_0x5d8447['document']['differ'],_0x37036d=new Set();for(const _0x2c5f70 of _0x330aa7['getChanges']()){const _0x53a31f='attribute'==_0x2c5f70['type']?_0x2c5f70['range']['start']['parent']:_0x2c5f70['position']['parent'];_0x53a31f['is']('element','footnoteDefinition')&&_0x37036d['add'](_0x53a31f);}for(const _0x3fde82 of _0x37036d['values']()){const _0x501a15=Array['from'](_0x3fde82['getChildren']())['filter'](_0x5dfa30=>p(_0x5dfa30,_0x11bebe['mapper']));for(const _0x3d857d of _0x501a15)_0x11bebe['reconvertItem'](_0x3d857d);}}(_0x58e86f['model'],_0x58e86f['editing']);})):(_0x4364f3['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x4364f3['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2f151e,{writer:_0x43b10e})=>{const _0x10d86b=_0x43b10e['createContainerElement']('span');return _0x43b10e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x10d86b),_0x10d86b;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3705ba}=this,{editing:_0x5a8e7d,t:t}=_0x3705ba,_0x5f8532=_0x3705ba['model']['document']['selection'];_0x3705ba['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x3705ba['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x5a8e7d['view']['document'],'enter',(_0x4792ac,_0x522156)=>{const _0x87e8a5=function(_0x40cabc){const _0x55db04=_0x40cabc['getSelectedElement']();if(_0x55db04?.['is']('element','footnoteRef'))return _0x55db04;return null;}(_0x5f8532);if(_0x87e8a5){const _0x51fa86=_0x87e8a5['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x51fa86),_0x522156['preventDefault'](),_0x4792ac['stop']();}},{'context':_0x1ff360});}['_defineClickHandlers'](){const {editor:_0x5ce270}=this,{editing:_0x54ef19}=_0x5ce270;_0x5ce270['editing']['view']['addObserver'](_0x145a9f),_0x5ce270['editing']['view']['addObserver'](_0x55933d);let _0x1c8468=!0x1;this['listenTo'](_0x54ef19['view']['document'],'pointerdown',(_0x5ec171,_0x4dff27)=>{const {target:_0x33549c}=_0x4dff27,_0x5afa56=_0x54ef19['view']['document']['selection'];_0x1c8468=!!(_0x33549c['is']('element','a')&&_0x33549c['parent']?.['is']('element','sup')&&_0x33549c['parent']['hasClass']('footnote'))&&_0x5afa56['getSelectedElement']()===_0x33549c['parent'];},{'priority':'high'}),this['listenTo'](_0x54ef19['view']['document'],'click',(_0x5b6d0e,_0x18d5de)=>{const {target:_0x1d50f3}=_0x18d5de;if(!_0x1d50f3['is']('element','a'))return;if(_0x1d50f3['parent']?.['is']('element','sup')&&_0x1d50f3['parent']['hasClass']('footnote')&&!_0x1c8468)return void _0x18d5de['preventDefault']();let _0x1c4726=_0x1d50f3['getAttribute']('href');if(!_0x1c4726?.['startsWith']('#'))return;_0x1c4726=_0x1c4726['slice'](0x1);let _0x16ba40=!0x1;(_0x1c4726['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1c4726['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1c4726))&&(_0x16ba40=!0x0),_0x16ba40&&(_0x18d5de['preventDefault'](),_0x5b6d0e['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x582a69}={}){return(_0x49354d,{writer:_0x44b66b})=>{if(!h(_0x49354d))return null;if(!_0x582a69)return _0x44b66b['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x206133=_0x44b66b['createContainerElement']('p');return _0x44b66b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x206133),_0x206133;};}function h(_0x219aa4){const {parent:_0x8ac236}=_0x219aa4;if(!_0x8ac236?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x8ac236['childCount'])return!0x1;for(const _0x2609aa of _0x219aa4['getAttributeKeys']())if(!_0x2609aa['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2609aa)return!0x1;return!0x0;}function p(_0x2978d9,_0x308392){if(!_0x2978d9['is']('element','paragraph'))return!0x1;const _0x2b4027=_0x308392['toViewElement'](_0x2978d9);return!!_0x2b4027&&h(_0x2978d9)!==_0x2b4027['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x579eec){return _0x1ff360(_0x579eec)&&_0x579eec['is']('containerElement')&&!!_0x579eec['getCustomProperty']('footnotesDefinitions');}function g(_0x29a7ba,_0x4c9f4f={}){const _0x458b16=_0x29a7ba['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x454458=_0x29a7ba['createContainerElement']('ol',{'class':'footnotes-list'},_0x29a7ba['createSlot']());return _0x29a7ba['createContainerElement']('div',{'class':'footnotes',..._0x4c9f4f},[_0x458b16,_0x454458]);}function D(_0xe06194,_0x51ecee){const _0x3adb8e=_0xe06194['getAttribute']('footnoteId'),_0x402d06=_0xe06194['getAttribute']('footnoteCounter'),_0x205755=_0x51ecee['createUIElement']('a',{'href':'#'+_0x3adb8e},function(_0x37449c){const _0x1bc883=this['toDomElement'](_0x37449c);return _0x1bc883['textContent']=_0x402d06,_0x1bc883;}),_0x85b6e5=_0x51ecee['createContainerElement']('sup',{'id':'ref-'+_0x3adb8e,'class':'footnote'},[_0x205755]);return _0x85b6e5['getFillerOffset']=()=>null,_0x85b6e5;}function v(_0x3932f5,_0x8531ac,_0x16afbc,{dataPipeline:_0x5160ea}={}){const {t:t}=_0x16afbc,_0x3168d0=_0x3932f5['getAttribute']('footnoteId'),_0x8dd033=_0x8531ac['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x3168d0},function(_0x1704ef){const _0x5b53a6=this['toDomElement'](_0x1704ef);return _0x5b53a6['innerText']='^',_0x5b53a6;}),_0x54d185=_0x5160ea?_0x8531ac['createContainerElement']('div',{'class':'footnote-content'}):_0x577c2d(_0x8531ac['createEditableElement']('div',{'class':'footnote-content'}),_0x8531ac,{'label':t('Footnote\x20content.')});return _0x8531ac['insert'](_0x8531ac['createPositionAt'](_0x54d185,0x0),_0x8531ac['createSlot']()),_0x8531ac['createContainerElement']('li',{'class':'footnote-definition','id':_0x3168d0},[_0x8dd033,_0x54d185]);}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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
|
+
/**
|
|
6
|
+
* @module footnotes/footnotesproperties/commands/footnotesstartcommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
10
|
+
/**
|
|
11
|
+
* Change footnotes definitions start command.
|
|
12
|
+
*/
|
|
13
|
+
export declare class FootnotesStartCommand extends Command {
|
|
14
|
+
/**
|
|
15
|
+
* Current list start value of the footnotesDefinitions container.
|
|
16
|
+
*/
|
|
17
|
+
value: number | null;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritdoc
|
|
20
|
+
*/
|
|
21
|
+
refresh(): void;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritdoc
|
|
24
|
+
*/
|
|
25
|
+
execute({ value }: {
|
|
26
|
+
value: number;
|
|
27
|
+
}): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x1df63f=_0x1153;function _0x1153(_0x25fbf3,_0x97748b){const _0x5ca220=_0x5ca2();return _0x1153=function(_0x1153e9,_0x3706af){_0x1153e9=_0x1153e9-0x1be;let _0x27dcce=_0x5ca220[_0x1153e9];return _0x27dcce;},_0x1153(_0x25fbf3,_0x97748b);}function _0x5ca2(){const _0x1ec461=['isInteger','setAttribute','11IbTnrW','5810790KyrAFo','2287540yUNSZH','getAttribute','isEnabled','8ylNwdV','13SBQMUa','refresh','2746933xYQTYR','plugins','getFootnotesDefinitionsObjectElement','value','change','184062oZNEYs','_updateFootnotesCounters','1802523IWgDNS','get','footnotesListStart','execute','4WDzwLz','model','13366260saJJNP','8479035dNXEBb'];_0x5ca2=function(){return _0x1ec461;};return _0x5ca2();}(function(_0x3e0869,_0x4c4e33){const _0x4818f3=_0x1153,_0x4f4006=_0x3e0869();while(!![]){try{const _0x786372=parseInt(_0x4818f3(0x1cb))/0x1*(-parseInt(_0x4818f3(0x1d2))/0x2)+parseInt(_0x4818f3(0x1d4))/0x3*(-parseInt(_0x4818f3(0x1bf))/0x4)+-parseInt(_0x4818f3(0x1c7))/0x5+parseInt(_0x4818f3(0x1c6))/0x6+-parseInt(_0x4818f3(0x1cd))/0x7*(parseInt(_0x4818f3(0x1ca))/0x8)+parseInt(_0x4818f3(0x1c2))/0x9+-parseInt(_0x4818f3(0x1c1))/0xa*(-parseInt(_0x4818f3(0x1c5))/0xb);if(_0x786372===_0x4c4e33)break;else _0x4f4006['push'](_0x4f4006['shift']());}catch(_0x2c16e2){_0x4f4006['push'](_0x4f4006['shift']());}}}(_0x5ca2,0x927e3));import{Command as _0x129e9c}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x4c5d12}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x129e9c{[_0x1df63f(0x1cc)](){const _0x6b7091=_0x1df63f,{editor:_0x405138}=this,_0x220a84=_0x405138[_0x6b7091(0x1ce)][_0x6b7091(0x1d5)](_0x4c5d12)[_0x6b7091(0x1cf)]();this[_0x6b7091(0x1c9)]=!!_0x220a84,this[_0x6b7091(0x1d0)]=_0x220a84?.[_0x6b7091(0x1c8)](_0x6b7091(0x1d6))??null;}[_0x1df63f(0x1be)]({value:_0x15840c}){const _0x3841b1=_0x1df63f,{editor:_0x25a43a}=this,_0x298568=_0x25a43a[_0x3841b1(0x1ce)][_0x3841b1(0x1d5)](_0x4c5d12),_0x7e8d45=_0x298568[_0x3841b1(0x1cf)]();_0x7e8d45&&Number[_0x3841b1(0x1c3)](_0x15840c)&&_0x25a43a[_0x3841b1(0x1c0)][_0x3841b1(0x1d1)](_0x1feabe=>{const _0x238942=_0x3841b1;_0x1feabe[_0x238942(0x1c4)](_0x238942(0x1d6),_0x15840c,_0x7e8d45),_0x298568[_0x238942(0x1d3)](_0x1feabe);});}}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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
|
+
/**
|
|
6
|
+
* @module footnotes/footnotesproperties/commands/footnotesstylecommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { type FootnotesDefinitionsStyle } from '../footnotespropertiesconfig.js';
|
|
11
|
+
/**
|
|
12
|
+
* Change footnotes definitions style command.
|
|
13
|
+
*/
|
|
14
|
+
export declare class FootnotesStyleCommand extends Command {
|
|
15
|
+
/**
|
|
16
|
+
* Current list style value of the footnotesDefinitions container.
|
|
17
|
+
*/
|
|
18
|
+
value: FootnotesDefinitionsStyle | null;
|
|
19
|
+
/**
|
|
20
|
+
* @inheritdoc
|
|
21
|
+
*/
|
|
22
|
+
refresh(): void;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritdoc
|
|
25
|
+
*/
|
|
26
|
+
execute({ value }: {
|
|
27
|
+
value: FootnotesDefinitionsStyle;
|
|
28
|
+
}): void;
|
|
29
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x14a110=_0xde52;function _0xf508(){const _0x368042=['1992466FtqeCg','model','includes','get','isEnabled','26IeETkn','change','3252072bAiXPl','33466Ulnuwj','11IVUnaS','setAttribute','2383800HAQKdA','8yXPhvE','value','_updateFootnotesCounters','refresh','2835144QJfeUd','execute','1588340hQaUem','getAttribute','plugins','3GXkjhH','getFootnotesDefinitionsObjectElement','footnotesListStyle','20074030pFJVMx'];_0xf508=function(){return _0x368042;};return _0xf508();}(function(_0x2dec69,_0x54899e){const _0x2ca50e=_0xde52,_0x59f185=_0x2dec69();while(!![]){try{const _0x325b07=parseInt(_0x2ca50e(0x188))/0x1*(-parseInt(_0x2ca50e(0x172))/0x2)+parseInt(_0x2ca50e(0x17f))/0x3*(-parseInt(_0x2ca50e(0x17c))/0x4)+parseInt(_0x2ca50e(0x175))/0x5+-parseInt(_0x2ca50e(0x18a))/0x6+-parseInt(_0x2ca50e(0x183))/0x7*(parseInt(_0x2ca50e(0x176))/0x8)+-parseInt(_0x2ca50e(0x17a))/0x9+-parseInt(_0x2ca50e(0x182))/0xa*(-parseInt(_0x2ca50e(0x173))/0xb);if(_0x325b07===_0x54899e)break;else _0x59f185['push'](_0x59f185['shift']());}catch(_0x1e30f5){_0x59f185['push'](_0x59f185['shift']());}}}(_0xf508,0x7c992));import{Command as _0x5a46e3}from'ckeditor5/src/core.js';function _0xde52(_0x50b57e,_0x2a4b48){const _0xf508a9=_0xf508();return _0xde52=function(_0xde5209,_0x15d4f0){_0xde5209=_0xde5209-0x172;let _0x537f64=_0xf508a9[_0xde5209];return _0x537f64;},_0xde52(_0x50b57e,_0x2a4b48);}import{FOOTNOTES_DEFINITIONS_STYLES as _0x24f25e}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x1fe396}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x5a46e3{[_0x14a110(0x179)](){const _0x2fd4a=_0x14a110,{editor:_0x1fc364}=this,_0x504be5=_0x1fc364[_0x2fd4a(0x17e)][_0x2fd4a(0x186)](_0x1fe396)[_0x2fd4a(0x180)]();this[_0x2fd4a(0x187)]=!!_0x504be5,this[_0x2fd4a(0x177)]=_0x504be5?.[_0x2fd4a(0x17d)](_0x2fd4a(0x181))??null;}[_0x14a110(0x17b)]({value:_0x247437}){const _0x388f34=_0x14a110,{editor:_0x5aaf59}=this,_0x558ce5=_0x5aaf59[_0x388f34(0x17e)][_0x388f34(0x186)](_0x1fe396),_0xa3a6f0=_0x558ce5[_0x388f34(0x180)]();_0xa3a6f0&&_0x24f25e[_0x388f34(0x185)](_0x247437)&&_0x5aaf59[_0x388f34(0x184)][_0x388f34(0x189)](_0x39d783=>{const _0x2180da=_0x388f34;_0x39d783[_0x2180da(0x174)](_0x2180da(0x181),_0x247437,_0xa3a6f0),_0x558ce5[_0x2180da(0x178)](_0x39d783);});}}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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
|
+
/**
|
|
6
|
+
* @module footnotes/footnotesproperties/footnotespropertiesconfig
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* The configuration of the {@link module:footnotes/footnotesproperties~FootnotesProperties} feature.
|
|
11
|
+
*
|
|
12
|
+
* Read more in {@link module:footnotes/footnotesproperties~FootnotesProperties}.
|
|
13
|
+
*/
|
|
14
|
+
export interface FootnotesPropertiesConfig {
|
|
15
|
+
/**
|
|
16
|
+
* The default style of the footnotes definitions. The default is `'decimal'`.
|
|
17
|
+
*
|
|
18
|
+
* Note: This configuration is used only when the footnotes definitions is being created after adding the first footnote.
|
|
19
|
+
*/
|
|
20
|
+
defaultStyle?: FootnotesDefinitionsStyle;
|
|
21
|
+
/**
|
|
22
|
+
* The default start index of the footnotes definitions. The default is `1`.
|
|
23
|
+
*
|
|
24
|
+
* Note: This configuration is used only when the footnotes definitions is being created after adding the first footnote.
|
|
25
|
+
*/
|
|
26
|
+
defaultStartIndex?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Items to be placed in the footnotes properties toolbar.
|
|
29
|
+
*
|
|
30
|
+
* Assuming that you use the
|
|
31
|
+
* {@link module:footnotes/footnotesproperties/footnotespropertiesui~FootnotesPropertiesUI} feature,
|
|
32
|
+
* the following toolbar items will be available in {@link module:ui/componentfactory~ComponentFactory}:
|
|
33
|
+
*
|
|
34
|
+
* * `'footnotesStyle'` - the dropdown for selecting the footnotes definitions style.
|
|
35
|
+
*
|
|
36
|
+
* The default configuration for footnotes toolbar is:
|
|
37
|
+
*
|
|
38
|
+
* ```ts
|
|
39
|
+
* const footnotesPropertiesConfig = {
|
|
40
|
+
* toolbar: [ 'footnotesStyle' ]
|
|
41
|
+
* };
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
toolbar?: Array<string>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The available styles for footnotes definitions.
|
|
48
|
+
*/
|
|
49
|
+
export declare const FOOTNOTES_DEFINITIONS_STYLES: readonly ["decimal", "decimal-leading-zero", "lower-latin", "upper-latin", "lower-alpha", "upper-alpha", "lower-roman", "upper-roman"];
|
|
50
|
+
/**
|
|
51
|
+
* The style of the footnotes list. It should correspond to the `list-style-type` CSS property.
|
|
52
|
+
*/
|
|
53
|
+
export type FootnotesDefinitionsStyle = (typeof FOOTNOTES_DEFINITIONS_STYLES)[number];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x28cc(_0x4e85f2,_0xf114a){const _0x3620df=_0x3620();return _0x28cc=function(_0x28cc70,_0x174e4){_0x28cc70=_0x28cc70-0x117;let _0x3ddd69=_0x3620df[_0x28cc70];return _0x3ddd69;},_0x28cc(_0x4e85f2,_0xf114a);}const _0x8d8263=_0x28cc;(function(_0x4f654f,_0x45612c){const _0x16bd6c=_0x28cc,_0x3f9cb9=_0x4f654f();while(!![]){try{const _0x565227=-parseInt(_0x16bd6c(0x124))/0x1+parseInt(_0x16bd6c(0x126))/0x2*(parseInt(_0x16bd6c(0x122))/0x3)+parseInt(_0x16bd6c(0x117))/0x4+parseInt(_0x16bd6c(0x123))/0x5*(parseInt(_0x16bd6c(0x11a))/0x6)+parseInt(_0x16bd6c(0x119))/0x7*(parseInt(_0x16bd6c(0x125))/0x8)+parseInt(_0x16bd6c(0x11d))/0x9*(-parseInt(_0x16bd6c(0x121))/0xa)+-parseInt(_0x16bd6c(0x11c))/0xb;if(_0x565227===_0x45612c)break;else _0x3f9cb9['push'](_0x3f9cb9['shift']());}catch(_0x455707){_0x3f9cb9['push'](_0x3f9cb9['shift']());}}}(_0x3620,0x659b6));function _0x3620(){const _0x6ab77e=['49740HRPWEp','3YPOfcv','10JvDWTv','6878OQoOFM','376nxaiIF','632780xQPyWz','upper-roman','lower-roman','upper-latin','1758200YGEhHZ','lower-latin','76951oCpCTH','1002678CflgSK','decimal-leading-zero','8534999cFzqOr','738BdzSnR','upper-alpha','lower-alpha','decimal'];_0x3620=function(){return _0x6ab77e;};return _0x3620();}export const FOOTNOTES_DEFINITIONS_STYLES=[_0x8d8263(0x120),_0x8d8263(0x11b),_0x8d8263(0x118),_0x8d8263(0x129),_0x8d8263(0x11f),_0x8d8263(0x11e),_0x8d8263(0x128),_0x8d8263(0x127)];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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
|
+
/**
|
|
6
|
+
* @module footnotes/footnotesproperties/footnotespropertiesediting
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { FootnotesTracker } from '../footnotestracker.js';
|
|
11
|
+
import { FootnotesEditing } from '../footnotesediting.js';
|
|
12
|
+
/**
|
|
13
|
+
* A plugin that provides footnotes properties editing.
|
|
14
|
+
*/
|
|
15
|
+
export declare class FootnotesPropertiesEditing extends Plugin {
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "FootnotesPropertiesEditing";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): readonly [typeof FootnotesEditing, typeof FootnotesTracker];
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get isOfficialPlugin(): true;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get isPremiumPlugin(): true;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
init(): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x17025e=_0x3178;(function(_0x501344,_0x257ba8){const _0x5f2caa=_0x3178,_0x182ff=_0x501344();while(!![]){try{const _0x1c390f=parseInt(_0x5f2caa(0x188))/0x1*(parseInt(_0x5f2caa(0x1ab))/0x2)+parseInt(_0x5f2caa(0x192))/0x3*(-parseInt(_0x5f2caa(0x1bd))/0x4)+parseInt(_0x5f2caa(0x19f))/0x5*(-parseInt(_0x5f2caa(0x17a))/0x6)+parseInt(_0x5f2caa(0x197))/0x7+parseInt(_0x5f2caa(0x1be))/0x8+parseInt(_0x5f2caa(0x19b))/0x9+-parseInt(_0x5f2caa(0x199))/0xa;if(_0x1c390f===_0x257ba8)break;else _0x182ff['push'](_0x182ff['shift']());}catch(_0xe12bd9){_0x182ff['push'](_0x182ff['shift']());}}}(_0x54b0,0x90dbd));import{Plugin as _0x2e4fce}from'ckeditor5/src/core.js';function _0x3178(_0x386711,_0x56a06f){const _0x54b03b=_0x54b0();return _0x3178=function(_0x317880,_0x3a3b42){_0x317880=_0x317880-0x172;let _0x10f465=_0x54b03b[_0x317880];return _0x10f465;},_0x3178(_0x386711,_0x56a06f);}function _0x54b0(){const _0x16f08c=['hasClass','footnotesStyle','setStyle','floor','nodeAfter','_defineSchema','config','_updateFootnotesCounters','59376rgKSjb','8530736IGOvga','fromCharCode','_getDefaultStartIndex','footnotesListStyle','$text','plugins','decimal-leading-zero','footnotesDefinitions','define','_defineConverters','footnotesListStart','viewItem','requires','type','decimal','commands','upcast','mapper','FootnotesPropertiesEditing','footnotes.footnotesProperties.defaultStartIndex','item','document','position','attribute:footnotesListStart:footnotesDefinitions','upper-latin','lower-alpha','removeStyle','model','getItems','editor','upper-roman','attribute:footnotesListStyle:footnotesDefinitions','modelCursor','2299602lhzmkP','init','consume','parseInt','consumable','parent','find','footnotesStart','isPremiumPlugin','registerPostFixer','hasAttribute','lower-roman','insert','createRangeOn','9eBOjkY','_definePostfixer','footnotes-list','start','writer','isNaN','setAttribute','getChildren','_defineFormatter','isOfficialPlugin','21UTOaRI','from','differ','list-style-type','getAttribute','7159173QRXxDT','setFootnoteFormatter','18799500uATkRn','_getDefaultListStyle','1375182FJWjKl','toViewElement','footnotes.footnotesProperties.defaultListStyle','getChanges','5UFDjJF','name','extend','lower-latin','element','getStyle','pluginName','schema','for','get','element:ol','upper-alpha','159686jRUFEn','toUpperCase','add','_formatFootnoteListValue','padStart','toLowerCase','removeAttribute','checkAttribute','downcast','max'];_0x54b0=function(){return _0x16f08c;};return _0x54b0();}import{FootnotesStyleCommand as _0x1896f4}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x120d2a}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x9dc3ba}from'../footnotestracker.js';import{FootnotesEditing as _0x398690}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x2e4fce{static get[_0x17025e(0x1a5)](){const _0x48ba0e=_0x17025e;return _0x48ba0e(0x1d0);}static get[_0x17025e(0x1ca)](){return[_0x398690,_0x9dc3ba];}static get[_0x17025e(0x191)](){return!0x0;}static get[_0x17025e(0x182)](){return!0x0;}[_0x17025e(0x17b)](){const _0x8cb2b2=_0x17025e,{editor:_0x344074}=this;_0x344074[_0x8cb2b2(0x1bb)][_0x8cb2b2(0x1c6)](_0x8cb2b2(0x19d),_0x8cb2b2(0x1cc)),_0x344074[_0x8cb2b2(0x1bb)][_0x8cb2b2(0x1c6)](_0x8cb2b2(0x1d1),0x1),_0x344074[_0x8cb2b2(0x1cd)][_0x8cb2b2(0x1ad)](_0x8cb2b2(0x1b6),new _0x1896f4(_0x344074)),_0x344074[_0x8cb2b2(0x1cd)][_0x8cb2b2(0x1ad)](_0x8cb2b2(0x181),new _0x120d2a(_0x344074)),this[_0x8cb2b2(0x1ba)](),this[_0x8cb2b2(0x1c7)](),this[_0x8cb2b2(0x190)](),this[_0x8cb2b2(0x189)]();}[_0x17025e(0x1ba)](){const _0x2759ff=_0x17025e,{editor:_0x113c38}=this,{schema:_0x3337ed}=_0x113c38[_0x2759ff(0x174)];_0x3337ed[_0x2759ff(0x1a1)](_0x2759ff(0x1c5),{'allowAttributes':[_0x2759ff(0x1c1),_0x2759ff(0x1c8)]});}[_0x17025e(0x1c7)](){const _0x2ca817=_0x17025e,{editor:_0xb33582}=this,{conversion:_0x302df0,model:_0x41e53f}=_0xb33582,{schema:_0x2dbcc9}=_0x41e53f;_0x302df0[_0x2ca817(0x1a7)](_0x2ca817(0x1ce))[_0x2ca817(0x1ad)](_0x4742de=>{const _0x593434=_0x2ca817;_0x4742de['on'](_0x593434(0x1a9),(_0x4bb354,_0x29b04c,_0x38bbd3)=>{const _0x3098bf=_0x593434,_0x23f606=_0x29b04c[_0x3098bf(0x1c9)],_0x25910b=_0x29b04c[_0x3098bf(0x179)]?.[_0x3098bf(0x17f)];_0x23f606[_0x3098bf(0x1b5)](_0x3098bf(0x18a))&&_0x25910b?.['is'](_0x3098bf(0x1a3),_0x3098bf(0x1c5))&&(function(_0x3df89b,_0x1b7473,_0x5e5797,_0x57e53f){const _0x2f71a9=_0x3098bf;if(!_0x57e53f[_0x2f71a9(0x1b2)](_0x1b7473,_0x2f71a9(0x1c8)))return;let _0x4f9a92=0x1;const _0x42255b=_0x5e5797[_0x2f71a9(0x17e)][_0x2f71a9(0x17c)](_0x3df89b,{'attributes':_0x2f71a9(0x18b)});if(_0x42255b){const _0x230175=Number[_0x2f71a9(0x17d)](_0x3df89b[_0x2f71a9(0x196)](_0x2f71a9(0x18b)),0xa);Number[_0x2f71a9(0x18d)](_0x230175)||(_0x4f9a92=_0x230175);}!_0x42255b&&_0x1b7473[_0x2f71a9(0x184)](_0x2f71a9(0x1c8))||_0x5e5797[_0x2f71a9(0x18c)][_0x2f71a9(0x18e)](_0x2f71a9(0x1c8),_0x4f9a92,_0x1b7473);}(_0x23f606,_0x25910b,_0x38bbd3,_0x2dbcc9),function(_0x139a05,_0x575ccc,_0x452a11,_0x104f87){const _0x165f43=_0x3098bf;if(!_0x104f87[_0x165f43(0x1b2)](_0x575ccc,_0x165f43(0x1c1)))return;let _0x597d5f=_0x165f43(0x1cc),_0x50c941=!0x1;if(_0x452a11[_0x165f43(0x17e)][_0x165f43(0x17c)](_0x139a05,{'attributes':_0x165f43(0x1cb)})){const _0x2bbaf6={0x1:_0x165f43(0x1cc),'a':_0x165f43(0x172),'A':_0x165f43(0x1aa),'i':_0x165f43(0x185),'I':_0x165f43(0x177)}[_0x139a05[_0x165f43(0x196)](_0x165f43(0x1cb))];_0x2bbaf6&&(_0x597d5f=_0x2bbaf6),_0x50c941=!0x0;}_0x452a11[_0x165f43(0x17e)][_0x165f43(0x17c)](_0x139a05,{'styles':_0x165f43(0x195)})&&(_0x597d5f=_0x139a05[_0x165f43(0x1a4)](_0x165f43(0x195)),_0x50c941=!0x0),!_0x50c941&&_0x575ccc[_0x165f43(0x184)](_0x165f43(0x1c1))||_0x452a11[_0x165f43(0x18c)][_0x165f43(0x18e)](_0x165f43(0x1c1),_0x597d5f,_0x575ccc);}(_0x23f606,_0x25910b,_0x38bbd3,_0x2dbcc9));});}),_0x302df0[_0x2ca817(0x1a7)](_0x2ca817(0x1b3))[_0x2ca817(0x1ad)](_0x1cc6d8=>{const _0x498690=_0x2ca817;_0x1cc6d8['on'](_0x498690(0x1d5),(_0x37d604,_0x1faad6,_0x15f5e2)=>{const _0x24a0fd=_0x498690;if(!_0x15f5e2[_0x24a0fd(0x17e)][_0x24a0fd(0x17c)](_0x1faad6[_0x24a0fd(0x1d2)],_0x37d604[_0x24a0fd(0x1a0)]))return;const _0x2e5096=C(_0x1faad6[_0x24a0fd(0x1d2)],_0x15f5e2[_0x24a0fd(0x1cf)]),{attributeNewValue:_0x4f8b2c}=_0x1faad6;null==_0x4f8b2c||0x1===_0x4f8b2c?_0x15f5e2[_0x24a0fd(0x18c)][_0x24a0fd(0x1b1)](_0x24a0fd(0x18b),_0x2e5096):_0x15f5e2[_0x24a0fd(0x18c)][_0x24a0fd(0x18e)](_0x24a0fd(0x18b),String(_0x4f8b2c),_0x2e5096);}),_0x1cc6d8['on'](_0x498690(0x178),(_0x326642,_0x296d2f,_0x4b4a81)=>{const _0x5a48de=_0x498690;if(!_0x4b4a81[_0x5a48de(0x17e)][_0x5a48de(0x17c)](_0x296d2f[_0x5a48de(0x1d2)],_0x326642[_0x5a48de(0x1a0)]))return;const _0x286d2c=C(_0x296d2f[_0x5a48de(0x1d2)],_0x4b4a81[_0x5a48de(0x1cf)]),{attributeNewValue:_0x402b51}=_0x296d2f;_0x402b51&&_0x5a48de(0x1cc)!==_0x402b51?_0x4b4a81[_0x5a48de(0x18c)][_0x5a48de(0x1b7)](_0x5a48de(0x195),_0x402b51,_0x286d2c):_0x4b4a81[_0x5a48de(0x18c)][_0x5a48de(0x173)](_0x5a48de(0x195),_0x286d2c);});});}[_0x17025e(0x189)](){const _0x5e814f=_0x17025e,{editor:_0x566dea}=this,{model:_0x690544}=_0x566dea,_0x2eebc1=_0x566dea[_0x5e814f(0x1c3)][_0x5e814f(0x1a8)](_0x9dc3ba),_0x46078c=this[_0x5e814f(0x19a)](),_0x4835d1=this[_0x5e814f(0x1c0)]();_0x690544[_0x5e814f(0x1d3)][_0x5e814f(0x183)](_0x37c096=>{const _0x2246b2=_0x5e814f,_0x538bcd=_0x690544[_0x2246b2(0x1d3)][_0x2246b2(0x194)][_0x2246b2(0x19e)]();let _0x65c8d4=!0x1;for(const _0xce1a94 of _0x538bcd){if(_0x2246b2(0x186)!==_0xce1a94[_0x2246b2(0x1cb)]||_0x2246b2(0x1c2)===_0xce1a94[_0x2246b2(0x1a0)])continue;const _0x218c66=_0x690544[_0x2246b2(0x187)](_0xce1a94[_0x2246b2(0x1d4)][_0x2246b2(0x1b9)]);for(const _0x1a4fbe of _0x218c66[_0x2246b2(0x175)]())_0x1a4fbe['is'](_0x2246b2(0x1a3),_0x2246b2(0x1c5))&&(!_0x1a4fbe[_0x2246b2(0x184)](_0x2246b2(0x1c8))&&_0x690544[_0x2246b2(0x1a6)][_0x2246b2(0x1b2)](_0x1a4fbe,_0x2246b2(0x1c8))&&(_0x37c096[_0x2246b2(0x18e)](_0x2246b2(0x1c8),_0x4835d1,_0x1a4fbe),_0x65c8d4=!0x0),!_0x1a4fbe[_0x2246b2(0x184)](_0x2246b2(0x1c1))&&_0x690544[_0x2246b2(0x1a6)][_0x2246b2(0x1b2)](_0x1a4fbe,_0x2246b2(0x1c1))&&(_0x37c096[_0x2246b2(0x18e)](_0x2246b2(0x1c1),_0x46078c,_0x1a4fbe),_0x65c8d4=!0x0));}return _0x65c8d4&&_0x2eebc1[_0x2246b2(0x1bc)](_0x37c096),_0x65c8d4;});}[_0x17025e(0x190)](){const _0x83331=_0x17025e,{editor:_0x4daecf}=this;_0x4daecf[_0x83331(0x1c3)][_0x83331(0x1a8)](_0x9dc3ba)[_0x83331(0x198)](_0x4c3421=>this[_0x83331(0x1ae)](_0x4c3421));}[_0x17025e(0x19a)](){const _0x805505=_0x17025e;return this[_0x805505(0x176)][_0x805505(0x1bb)][_0x805505(0x1a8)](_0x805505(0x19d));}[_0x17025e(0x1c0)](){const _0x5701fe=_0x17025e;return this[_0x5701fe(0x176)][_0x5701fe(0x1bb)][_0x5701fe(0x1a8)](_0x5701fe(0x1d1));}[_0x17025e(0x1ae)]({container:_0x1a7885,value:_0x33c15b,digits:_0x4555a1}){const _0x1c183d=_0x17025e,_0x379d18=_0x1a7885[_0x1c183d(0x196)](_0x1c183d(0x1c1)),_0x54d81c=_0x1a7885[_0x1c183d(0x196)](_0x1c183d(0x1c8)),_0x339425=Math[_0x1c183d(0x1b8)](_0x33c15b)+(_0x54d81c??0x1)-0x1;switch(_0x379d18){case _0x1c183d(0x1c4):return function(_0x37741e,_0x2db726){const _0x2d63bf=_0x1c183d;return String(_0x37741e)[_0x2d63bf(0x1af)](_0x2db726,'0');}(_0x339425,Math[_0x1c183d(0x1b4)](0x2,_0x4555a1));case _0x1c183d(0x172):case _0x1c183d(0x1a2):return M(_0x339425,!0x1);case _0x1c183d(0x1aa):case _0x1c183d(0x1d6):return M(_0x339425,!0x0);case _0x1c183d(0x185):return V(_0x339425,!0x1);case _0x1c183d(0x177):return V(_0x339425,!0x0);default:return String(_0x339425);}}}function C(_0x20e185,_0xe62c30){const _0x3fd4b9=_0x17025e,_0x4c2994=_0xe62c30[_0x3fd4b9(0x19c)](_0x20e185);return Array[_0x3fd4b9(0x193)](_0x4c2994[_0x3fd4b9(0x18f)]())[_0x3fd4b9(0x180)](_0x33deba=>_0x33deba['is'](_0x3fd4b9(0x1a3),'ol')&&_0x33deba[_0x3fd4b9(0x1b5)](_0x3fd4b9(0x18a)));}function M(_0x4e960b,_0x214b78){const _0x4566a6=_0x17025e;let _0x51cec1='',_0x4e2c0a=_0x4e960b;for(;_0x4e2c0a>0x0;){const _0x4ce56e=(_0x4e2c0a-0x1)%0x1a;_0x51cec1=String[_0x4566a6(0x1bf)](0x61+_0x4ce56e)+_0x51cec1,_0x4e2c0a=Math[_0x4566a6(0x1b8)]((_0x4e2c0a-0x1)/0x1a);}return _0x214b78?_0x51cec1[_0x4566a6(0x1ac)]():_0x51cec1;}const N=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function V(_0x25ad0a,_0x2295ca){const _0x380ec3=_0x17025e;let _0xfade0c='',_0x21cad0=_0x25ad0a;for(const {value:_0x290a35,numeral:_0x3b7df1}of N)for(;_0x21cad0>=_0x290a35;)_0xfade0c+=_0x3b7df1,_0x21cad0-=_0x290a35;return _0x2295ca?_0xfade0c:_0xfade0c[_0x380ec3(0x1b0)]();}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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
|
+
/**
|
|
6
|
+
* @module footnotes/footnotesproperties/footnotespropertiesui
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { ContextualBalloon } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
|
|
11
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
12
|
+
import '../../theme/footnotesproperties.css';
|
|
13
|
+
/**
|
|
14
|
+
* A plugin that provides footnotes properties UI.
|
|
15
|
+
*/
|
|
16
|
+
export declare class FootnotesPropertiesUI extends Plugin {
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "FootnotesPropertiesUI";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get requires(): readonly [typeof ContextualBalloon, typeof WidgetToolbarRepository];
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get isOfficialPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static get isPremiumPlugin(): true;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
init(): void;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
afterInit(): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{BalloonPanelView as _0xa8fb0e,ButtonView as _0x31bf7f,ContextualBalloon as _0x592670,createDropdown as _0x22037f}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x7c71b9}from'ckeditor5/src/widget.js';import{Plugin as _0x37e8b9}from'ckeditor5/src/core.js';import{IconFootnote as _0x5b27cb,IconListStyleDecimal as _0x15042e,IconListStyleDecimalLeadingZero as _0x139953,IconListStyleLowerLatin as _0xe0103e,IconListStyleLowerRoman as _0x33876b,IconListStyleUpperLatin as _0x17761b,IconListStyleUpperRoman as _0x130a49}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x4999dc}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x5118ff}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x37e8b9{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x592670,_0x7c71b9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x41d341}=this,{componentFactory:_0x4e72fb}=_0x41d341['ui'];_0x41d341['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4e72fb['add']('footnotesStyle',function(_0x6f120b){return _0x5d42dc=>{const {t:t}=_0x5d42dc,_0x2177e4=_0x6f120b['commands']['get']('footnotesStyle'),_0x397529=_0x22037f(_0x5d42dc),{buttonView:_0x402cd2}=_0x397529;return _0x397529['class']='ck-footnotes-styles-dropdown',_0x397529['bind']('isEnabled')['to'](_0x2177e4,'isEnabled'),_0x402cd2['set']({'label':t('Footnotes\x20style'),'icon':_0x5b27cb,'tooltip':!0x0}),_0x397529['once']('change:isOpen',()=>{const _0x438523=function({editor:_0x580c6f,dropdownView:_0x2fe759}){const {t:t}=_0x580c6f['locale'],_0x8885c1=t('Footnotes\x20definitions\x20styles'),_0x1d7fc8=function(_0x1c69c4){const t=_0x1c69c4['locale']['t'],_0x2661c3=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x15042e},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x139953},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x33876b},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x130a49},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0xe0103e},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x17761b}];return _0x2661c3['map'](function(_0x522fff){const _0x44e3c6=_0x522fff['locale'];return({label:_0x258090,icon:_0x3a4eef,tooltip:_0x49eadd,style:_0x4e7d17})=>{const _0x363195=_0x522fff['commands']['get']('footnotesStyle'),_0x132790=new _0x31bf7f(_0x44e3c6);return _0x132790['set']({'label':_0x258090,'icon':_0x3a4eef,'tooltip':_0x49eadd}),_0x132790['bind']('isOn')['to'](_0x363195,'value',_0x2e3a3d=>_0x2e3a3d===_0x4e7d17),_0x132790['bind']('isEnabled')['to'](_0x363195,'isEnabled'),_0x132790['on']('execute',()=>{_0x522fff['execute']('footnotesStyle',{'value':_0x4e7d17}),_0x522fff['editing']['view']['focus']();}),_0x132790;};}(_0x1c69c4));}(_0x580c6f),_0x81b4cd=new _0x4999dc(_0x580c6f['locale'],{'styleGridAriaLabel':_0x8885c1,'styleButtonViews':_0x1d7fc8});return _0x81b4cd['delegate']('execute')['to'](_0x2fe759),_0x81b4cd['on']('footnotesListStart',(_0x8d69f8,_0x4b6603)=>{_0x580c6f['execute']('footnotesStart',{'value':_0x4b6603['startIndex']});}),_0x81b4cd;}({'editor':_0x6f120b,'dropdownView':_0x397529});_0x397529['panelView']['children']['add'](_0x438523);}),_0x397529;};}(_0x41d341));}['afterInit'](){const {editor:_0x393d60}=this,{t:t}=_0x393d60['locale'],_0x185add=_0x393d60['plugins']['get'](_0x7c71b9),{defaultPositions:_0x5ce391}=_0xa8fb0e;_0x185add['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x393d60['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x4d6569=>{let _0x239fda=_0x4d6569['getFirstPosition']()?.['parent'];return _0x239fda?.['is']('$text')&&(_0x239fda=_0x239fda['parent']),_0x239fda?.['is']('element')?_0x239fda['findAncestor'](_0x5118ff):null;},'positions':[_0x5ce391['southArrowNorth'],_0x5ce391['southArrowNorthMiddleWest'],_0x5ce391['southArrowNorthMiddleEast'],_0x5ce391['southArrowNorthWest'],_0x5ce391['southArrowNorthEast'],_0x5ce391['northArrowSouth'],_0x5ce391['northArrowSouthMiddleWest'],_0x5ce391['northArrowSouthMiddleEast'],_0x5ce391['northArrowSouthWest'],_0x5ce391['northArrowSouthEast'],_0x5ce391['viewportStickyNorth']]});}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, 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
|
+
/**
|
|
6
|
+
* Fired when the footnotes start index value has changed via {@link ~FootnotesDefinitionsPropertiesView#startIndexFieldView}.
|
|
7
|
+
*
|
|
8
|
+
* @eventName ~FootnotesDefinitionsPropertiesView#listStart
|
|
9
|
+
*/
|
|
10
|
+
export type FootnotesDefinitionsPropertiesViewListStartEvent = {
|
|
11
|
+
name: 'footnotesListStart';
|
|
12
|
+
args: [data: {
|
|
13
|
+
startIndex: number;
|
|
14
|
+
}];
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{ButtonView as _0x4a6734,View as _0x1f4843,ViewCollection as _0x1767df,FocusCycler as _0x5ed5c0,addKeyboardHandlingForGrid as _0x95cead,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it}from'ckeditor5/src/ui.js';import{FocusTracker as et,KeystrokeHandler as ot,global as rt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x1f4843{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x1767df();['focusCycler'];constructor(_0x4bdfd5,{styleButtonViews:_0x3e4baa,styleGridAriaLabel:_0x3964a5}){super(_0x4bdfd5),(this['focusCycler']=new _0x5ed5c0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3e4baa,_0x3964a5),[this['startIndexFieldView'],this['additionalProperties']]=this['_appendAdditionalPropertiesCollapsibleView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-footnotes-definitions-properties']},'children':this['children']}));}['render'](){if(super['render'](),this['stylesView']){this['focusables']['add'](this['stylesView']),this['focusTracker']['add'](this['stylesView']['element']);for(const _0x3a0368 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3a0368['element']);_0x95cead({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x319dac=_0x295ffe=>_0x295ffe['stopPropagation']();this['keystrokes']['set']('arrowright',_0x319dac),this['keystrokes']['set']('arrowleft',_0x319dac),this['keystrokes']['set']('arrowup',_0x319dac),this['keystrokes']['set']('arrowdown',_0x319dac);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5b464a,_0x10dd3e){const _0x47bd43=new _0x1f4843(this['locale']);return _0x47bd43['children']=_0x47bd43['createCollection'](),_0x47bd43['children']['addMany'](_0x5b464a),_0x47bd43['setTemplate']({'tag':'div','attributes':{'aria-label':_0x10dd3e,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x47bd43['children']}),_0x47bd43['children']['delegate']('execute')['to'](this),_0x47bd43['focus']=function(){for(const _0x4bf220 of this['children'])if(_0x4bf220 instanceof _0x4a6734&&_0x4bf220['isOn'])return void _0x4bf220['focus']();this['children']['first']['focus']();},_0x47bd43['focusTracker']=new et(),_0x47bd43['keystrokes']=new ot(),_0x47bd43['render'](),_0x47bd43['keystrokes']['listenTo'](_0x47bd43['element']),this['children']['add'](_0x47bd43),_0x47bd43;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3e34b5=this['_createStartIndexPropertyView'](),_0x474798=[_0x3e34b5],_0x2ca828=new tt(this['locale'],_0x474798);return _0x2ca828['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2ca828['buttonView']['bind']('isEnabled')['toMany'](_0x474798,'isEnabled',(..._0x16c510)=>_0x16c510['some'](_0x3c67b0=>_0x3c67b0)),_0x2ca828['buttonView']['on']('change:isEnabled',(_0x21ee9f,_0x43bc2d,_0x47a7d9)=>{_0x47a7d9||(_0x2ca828['isCollapsed']=!0x0);}),this['children']['add'](_0x2ca828),[_0x3e34b5,_0x2ca828];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x223644=new st(this['locale'],it);return _0x223644['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x223644['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x223644['fieldView']['on']('input',()=>{const _0x3f6148=_0x223644['fieldView']['element'],_0x6f49f0=_0x3f6148['valueAsNumber'];Number['isNaN'](_0x6f49f0)?_0x223644['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3f6148['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x6f49f0}):_0x223644['errorText']=t(_0x6f49f0<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x223644;}}
|