@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251015.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +18 -0
  3. package/README.md +45 -0
  4. package/build/footnotes.js +4 -0
  5. package/ckeditor5-metadata.json +65 -0
  6. package/dist/index-content.css +73 -0
  7. package/dist/index-editor.css +81 -0
  8. package/dist/index.css +184 -0
  9. package/dist/index.js +23 -0
  10. package/lang/contexts.json +26 -0
  11. package/package.json +73 -0
  12. package/src/augmentation.d.ts +34 -0
  13. package/src/augmentation.js +23 -0
  14. package/src/commands/insertfootnotecommand.d.ts +20 -0
  15. package/src/commands/insertfootnotecommand.js +23 -0
  16. package/src/footnotes.d.ts +33 -0
  17. package/src/footnotes.js +23 -0
  18. package/src/footnotesclipboard.d.ts +38 -0
  19. package/src/footnotesclipboard.js +23 -0
  20. package/src/footnotesconfig.d.ts +30 -0
  21. package/src/footnotesconfig.js +23 -0
  22. package/src/footnotesediting.d.ts +47 -0
  23. package/src/footnotesediting.js +23 -0
  24. package/src/footnotesproperties/commands/footnotesstartcommand.d.ts +28 -0
  25. package/src/footnotesproperties/commands/footnotesstartcommand.js +23 -0
  26. package/src/footnotesproperties/commands/footnotesstylecommand.d.ts +29 -0
  27. package/src/footnotesproperties/commands/footnotesstylecommand.js +23 -0
  28. package/src/footnotesproperties/footnotespropertiesconfig.d.ts +53 -0
  29. package/src/footnotesproperties/footnotespropertiesconfig.js +23 -0
  30. package/src/footnotesproperties/footnotespropertiesediting.d.ts +36 -0
  31. package/src/footnotesproperties/footnotespropertiesediting.js +23 -0
  32. package/src/footnotesproperties/footnotespropertiesui.d.ts +41 -0
  33. package/src/footnotesproperties/footnotespropertiesui.js +23 -0
  34. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.d.ts +15 -0
  35. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +23 -0
  36. package/src/footnotesproperties.d.ts +32 -0
  37. package/src/footnotesproperties.js +23 -0
  38. package/src/footnotestracker.d.ts +102 -0
  39. package/src/footnotestracker.js +23 -0
  40. package/src/footnotesui.d.ts +31 -0
  41. package/src/footnotesui.js +23 -0
  42. package/src/index.d.ts +21 -0
  43. package/src/index.js +23 -0
  44. package/src/modelelementtracker.d.ts +56 -0
  45. package/src/modelelementtracker.js +23 -0
  46. package/theme/footnotes.css +149 -0
  47. package/theme/footnotesproperties.css +54 -0
@@ -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 _0x1ab5b0}from'ckeditor5/src/core.js';import{isWidget as _0x56867c,toWidget as _0x3c65d7,toWidgetEditable as _0x2c030b}from'ckeditor5/src/widget.js';import{uid as _0x25dfb2}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3b1ac0,ClickObserver as _0x2db507}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x583e44}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x37fddf}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1ab5b0{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x583e44];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x27ca2f}=this;_0x27ca2f['config']['define']('footnotes.multiBlock',!0x0),_0x27ca2f['commands']['add']('insertFootnote',new _0x37fddf(_0x27ca2f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1583b8){const _0x59e15b=_0x3f5008([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]),_0xd6e7e8=0x47a28506,_0x5eaa00=0x47a5f346^_0xd6e7e8,_0xae72ad=window[_0x3f5008([0x44,0x61,0x74,0x65])][_0x3f5008([0x6e,0x6f,0x77])](),_0x3236d3=_0x1583b8[_0x3f5008([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1019b0=new window[(_0x3f5008([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b663a=>{_0x3236d3[_0x3f5008([0x6f,0x6e,0x63,0x65])](_0x3f5008([0x72,0x65,0x61,0x64,0x79]),_0x2b663a);}),_0x48b480={[_0x3f5008([0x6b,0x74,0x79])]:_0x3f5008([0x45,0x43]),[_0x3f5008([0x75,0x73,0x65])]:_0x3f5008([0x73,0x69,0x67]),[_0x3f5008([0x63,0x72,0x76])]:_0x3f5008([0x50,0x2d,0x32,0x35,0x36]),[_0x3f5008([0x78])]:_0x3f5008([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]),[_0x3f5008([0x79])]:_0x3f5008([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]),[_0x3f5008([0x61,0x6c,0x67])]:_0x3f5008([0x45,0x53,0x32,0x35,0x36])},_0x4cb9bc=_0x3236d3[_0x3f5008([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f5008([0x67,0x65,0x74])](_0x3f5008([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x55aa9d(){let _0xa44f94,_0x3d567d=null,_0x3e6a7a=null;try{if(_0x4cb9bc==_0x3f5008([0x47,0x50,0x4c]))return _0x3f5008([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa44f94=_0x56a911(),!_0xa44f94)return _0x3f5008([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa44f94[_0x3f5008([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e6a7a=_0x4e79eb(_0xa44f94[_0x3f5008([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa44f94[_0x3f5008([0x6a,0x74,0x69])])),await _0x87007c()?_0x34dfef()?_0x36ef26()?_0x3f5008([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2603c8()?(_0xa44f94[_0x3f5008([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f5008([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d567d=_0x176a0c(_0x3f5008([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa44f94[_0x3f5008([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f5008([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d567d=_0x176a0c(_0x3f5008([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x68bbd3()):_0x3f5008([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f5008([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f5008([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3f5008([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36ef26(){const _0x528065=[_0x3f5008([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f5008([0x74,0x72,0x69,0x61,0x6c])][_0x3f5008([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa44f94[_0x3f5008([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xae72ad/0x3e8:0xe10*_0x5eaa00;return _0xa44f94[_0x3f5008([0x65,0x78,0x70])]<_0x528065;}function _0x34dfef(){const _0x402af4=_0xa44f94[_0x3f5008([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x402af4&&(!!_0x402af4[_0x3f5008([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5008([0x2a]))||!!_0x402af4[_0x3f5008([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5008([0x46,0x4f,0x4f])));}function _0x2603c8(){const _0x2f6993=_0xa44f94[_0x3f5008([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f6993||0x0==_0x2f6993[_0x3f5008([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4bf294}=new URL(window[_0x3f5008([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2f6993[_0x3f5008([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bf294))return!0x0;const _0x5a53c3=_0x4bf294[_0x3f5008([0x73,0x70,0x6c,0x69,0x74])](_0x3f5008([0x2e]));return _0x2f6993[_0x3f5008([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x421b08=>_0x421b08[_0x3f5008([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f5008([0x2a])))[_0x3f5008([0x6d,0x61,0x70])](_0x210d4e=>_0x210d4e[_0x3f5008([0x73,0x70,0x6c,0x69,0x74])](_0x3f5008([0x2e])))[_0x3f5008([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4df317=>_0x4df317[_0x3f5008([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a53c3[_0x3f5008([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f5008([0x6d,0x61,0x70])](_0x229305=>Array(_0x5a53c3[_0x3f5008([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x229305[_0x3f5008([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f5008([0x66,0x69,0x6c,0x6c])](_0x229305[0x0]===_0x3f5008([0x2a])?_0x3f5008([0x2a]):'')[_0x3f5008([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x229305))[_0x3f5008([0x73,0x6f,0x6d,0x65])](_0x23dbc2=>_0x5a53c3[_0x3f5008([0x65,0x76,0x65,0x72,0x79])]((_0x5708bc,_0x2c32a9)=>_0x23dbc2[_0x2c32a9]===_0x5708bc||_0x23dbc2[_0x2c32a9]===_0x3f5008([0x2a])));}function _0x68bbd3(){return _0x3d567d&&_0x3e6a7a?new window[(_0x3f5008([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a6be4,_0x2bf179)=>{_0x3d567d[_0x3f5008([0x74,0x68,0x65,0x6e])](_0x1a6be4,_0x2bf179),_0x3e6a7a[_0x3f5008([0x74,0x68,0x65,0x6e])](_0x8f4b37=>{_0x8f4b37!=_0x3f5008([0x56,0x61,0x6c,0x69,0x64])&&_0x1a6be4(_0x8f4b37);},_0x2bf179);}):_0x3d567d||_0x3e6a7a||_0x3f5008([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e79eb(_0x2bef10,_0x282e05){return new window[(_0x3f5008([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x199727=>{if(_0x205d46())return _0x199727(_0x3f5008([0x56,0x61,0x6c,0x69,0x64]));_0x3cee23(),_0x3236d3[_0x3f5008([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f5008([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50ac36=!0x1;const _0x461866=_0x25dfb2();function _0x19d609(_0x5d59b2){return!!_0x5d59b2&&(typeof _0x5d59b2===_0x3f5008([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d59b2===_0x3f5008([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d59b2[_0x3f5008([0x74,0x68,0x65,0x6e])]===_0x3f5008([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d59b2[_0x3f5008([0x63,0x61,0x74,0x63,0x68])]===_0x3f5008([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4379c6(_0x141bc2){_0x2cffc4(_0x141bc2)[_0x3f5008([0x74,0x68,0x65,0x6e])](_0x1d014f=>{if(!_0x1d014f||_0x1d014f[_0x3f5008([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f5008([0x6f,0x6b]))return _0x3f5008([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57251f(_0x2725e6(_0x461866+_0x282e05))!=_0x1d014f[_0x3f5008([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f5008([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f5008([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f5008([0x74,0x68,0x65,0x6e])](_0x4aa59c=>(_0x2d7c11(),_0x4aa59c),()=>{const _0x4d6a8d=_0x11f37e();return null==_0x4d6a8d?(_0x2d7c11(),_0x3f5008([0x56,0x61,0x6c,0x69,0x64])):_0x3f5008(_0xae72ad-_0x4d6a8d>(0x63ae0106^_0xd6e7e8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f5008([0x74,0x68,0x65,0x6e])](_0x199727)[_0x3f5008([0x63,0x61,0x74,0x63,0x68])](()=>{_0x199727(_0x3f5008([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a38b0=0x47946b86^_0xd6e7e8;function _0x2d7c11(){const _0x55bc91=_0x3f5008([0x6c,0x6c,0x63,0x74,0x2d])+_0x57251f(_0x2725e6(_0x2bef10)),_0x337ea7=_0x434c77(_0x57251f(window[_0x3f5008([0x4d,0x61,0x74,0x68])][_0x3f5008([0x63,0x65,0x69,0x6c])](_0xae72ad/_0x4a38b0)));window[_0x3f5008([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f5008([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55bc91,_0x337ea7);}function _0x11f37e(){const _0x2603cc=_0x3f5008([0x6c,0x6c,0x63,0x74,0x2d])+_0x57251f(_0x2725e6(_0x2bef10)),_0x189d91=window[_0x3f5008([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f5008([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2603cc);return _0x189d91?window[_0x3f5008([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x434c77(_0x189d91),0x10)*_0x4a38b0:null;}function _0x2cffc4(_0x38f311){return new window[(_0x3f5008([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c6213,_0x2c8362)=>{_0x38f311[_0x3f5008([0x74,0x68,0x65,0x6e])](_0x5c6213,_0x2c8362),window[_0x3f5008([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c8362,0x47a351c6^_0xd6e7e8);});}}_0x3236d3[_0x3f5008([0x6f,0x6e])](_0x3f5008([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17a016,_0x119691)=>{if(_0x119691[0x0]!=_0x2bef10)return _0x199727(_0x3f5008([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x119691[0x1]={..._0x119691[0x1],[_0x3f5008([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x461866};},{[_0x3f5008([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f5008([0x68,0x69,0x67,0x68])}),_0x3236d3[_0x3f5008([0x6f,0x6e])](_0x3f5008([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9ab668=>{_0x19d609(_0x9ab668[_0x3f5008([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50ac36=!0x0,_0x4379c6(_0x9ab668[_0x3f5008([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f5008([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f5008([0x6c,0x6f,0x77])}),_0x1019b0[_0x3f5008([0x74,0x68,0x65,0x6e])](()=>{_0x50ac36||_0x199727(_0x3f5008([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x205d46(){return _0x3236d3[_0x3f5008([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f5008([0x76,0x69,0x65,0x77])][_0x3f5008([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f5008([0x61,0x75,0x74,0x6f]);}function _0x3cee23(){_0x3236d3[_0x3f5008([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f5008([0x76,0x69,0x65,0x77])][_0x3f5008([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f5008([0x61,0x75,0x74,0x6f]);}}function _0x176a0c(_0x2f4022){const _0x2685db=[new window[(_0x3f5008([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2896=>setTimeout(_0x5c2896,0x47abbbca^_0xd6e7e8)),_0x1019b0[_0x3f5008([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f5008([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36c76d=>{let _0x4ebdea=0x0;_0x3236d3[_0x3f5008([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f5008([0x6f,0x6e])](_0x3f5008([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b7f10,_0x31c97f)=>{_0x31c97f[0x0][_0x3f5008([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ebdea++,_0x4ebdea==(0x47a284fe^_0xd6e7e8)&&(_0x36c76d(),_0x4b7f10[_0x3f5008([0x6f,0x66,0x66])]());});}))];return window[_0x3f5008([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f5008([0x72,0x61,0x63,0x65])](_0x2685db)[_0x3f5008([0x74,0x68,0x65,0x6e])](()=>_0x2f4022);}async function _0x477154(){await _0x1019b0,_0x3236d3[_0x3f5008([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f5008([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2157ea,_0x3236d3[_0x3f5008([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f5008([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2157ea,_0x3236d3[_0x3f5008([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f5008([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3084bf(_0x40feba){const _0x2802a8=_0x2d8885();_0x3236d3[_0x2802a8]=_0x3f5008([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40feba,_0x40feba!=_0x3f5008([0x56,0x61,0x6c,0x69,0x64])&&_0x477154();}function _0x2d8885(){const _0x14ed9e=window[_0x3f5008([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f5008([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f5008([0x6e,0x6f,0x77])]())[_0x3f5008([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f5008([0x2e]),'');let _0x18e5e3=_0x3f5008([0x75]);for(let _0x364441=0x0;_0x364441<_0x14ed9e[_0x3f5008([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x364441+=0x2){let _0x178edf=window[_0x3f5008([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14ed9e[_0x3f5008([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x364441,_0x364441+0x2));_0x178edf>=_0x59e15b[_0x3f5008([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x178edf-=_0x59e15b[_0x3f5008([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18e5e3+=_0x59e15b[_0x178edf];}return _0x18e5e3;}function _0x56a911(){const _0x428583=_0x4cb9bc[_0x3f5008([0x73,0x70,0x6c,0x69,0x74])](_0x3f5008([0x2e]));if(0x3!=_0x428583[_0x3f5008([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f996b(_0x428583[0x1]);function _0x2f996b(_0x24c39f){const _0x26abc2=_0x2c5a26(_0x24c39f);return _0x26abc2&&_0x19a650()?_0x26abc2:null;function _0x19a650(){const _0x726b24=_0x26abc2[_0x3f5008([0x6a,0x74,0x69])],_0x47c25a=window[_0x3f5008([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x726b24[_0x3f5008([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x726b24[_0x3f5008([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x35f093={..._0x26abc2,[_0x3f5008([0x6a,0x74,0x69])]:_0x726b24[_0x3f5008([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x726b24[_0x3f5008([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x35f093[_0x3f5008([0x76,0x63])],_0x2725e6(_0x35f093)==_0x47c25a;}}}async function _0x87007c(){let _0x22b79e=!0x0;try{const _0x54b41e=_0x4cb9bc[_0x3f5008([0x73,0x70,0x6c,0x69,0x74])](_0x3f5008([0x2e])),[_0x4712ad,_0x166092,_0x1019e4]=_0x54b41e;return _0x15b6e1(_0x4712ad),await _0x131f00(_0x4712ad,_0x166092,_0x1019e4),_0x22b79e;}catch{return!0x1;}function _0x15b6e1(_0x4653cc){const _0x409af4=_0x2c5a26(_0x4653cc);_0x409af4&&_0x409af4[_0x3f5008([0x61,0x6c,0x67])]==_0x3f5008([0x45,0x53,0x32,0x35,0x36])||(_0x22b79e=!0x1);}async function _0x131f00(_0x8643e3,_0x2f446b,_0x408881){const _0x557e05=window[_0x3f5008([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f5008([0x66,0x72,0x6f,0x6d])](_0x40d299(_0x408881),_0x2fcf77=>_0x2fcf77[_0x3f5008([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25151d=new window[(_0x3f5008([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f5008([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8643e3+_0x3f5008([0x2e])+_0x2f446b),_0xfa5089=window[_0x3f5008([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f5008([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xfa5089)return;const _0x591226=await _0xfa5089[_0x3f5008([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f5008([0x6a,0x77,0x6b]),_0x48b480,{[_0x3f5008([0x6e,0x61,0x6d,0x65])]:_0x3f5008([0x45,0x43,0x44,0x53,0x41]),[_0x3f5008([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f5008([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f5008([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xfa5089[_0x3f5008([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f5008([0x6e,0x61,0x6d,0x65])]:_0x3f5008([0x45,0x43,0x44,0x53,0x41]),[_0x3f5008([0x68,0x61,0x73,0x68])]:{[_0x3f5008([0x6e,0x61,0x6d,0x65])]:_0x3f5008([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x591226,_0x557e05,_0x25151d)||(_0x22b79e=!0x1);}}function _0x2c5a26(_0x594c69){return _0x594c69[_0x3f5008([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f5008([0x65,0x79]))?JSON[_0x3f5008([0x70,0x61,0x72,0x73,0x65])](_0x40d299(_0x594c69)):null;}function _0x40d299(_0xccb3a6){return window[_0x3f5008([0x61,0x74,0x6f,0x62])](_0xccb3a6[_0x3f5008([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f5008([0x2b]))[_0x3f5008([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f5008([0x2f])));}function _0x2725e6(_0x1b233e){let _0x507d31=0x1505;function _0x2d1c79(_0x2503cc){for(let _0x1df340=0x0;_0x1df340<_0x2503cc[_0x3f5008([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1df340++){const _0x129c25=_0x2503cc[_0x3f5008([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1df340);_0x507d31=(_0x507d31<<0x5)+_0x507d31+_0x129c25,_0x507d31&=_0x507d31;}}function _0x112734(_0x13ca1b){Array[_0x3f5008([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13ca1b)?_0x13ca1b[_0x3f5008([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x112734):_0x13ca1b&&typeof _0x13ca1b==_0x3f5008([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f5008([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13ca1b)[_0x3f5008([0x73,0x6f,0x72,0x74])]()[_0x3f5008([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c2159,_0x2ff185])=>{_0x2d1c79(_0x2c2159),_0x112734(_0x2ff185);}):_0x2d1c79(window[_0x3f5008([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13ca1b));}return _0x112734(_0x1b233e),_0x507d31>>>0x0;}function _0x57251f(_0x106758){return _0x106758[_0x3f5008([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f5008([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f5008([0x30]));}function _0x434c77(_0x3382c3){return _0x3382c3[_0x3f5008([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f5008([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f5008([0x6a,0x6f,0x69,0x6e])]('');}function _0x2157ea(){}function _0x3f5008(_0x54dc6d){return _0x54dc6d['map'](_0x1f513a=>String['fromCharCode'](_0x1f513a))['join']('');}_0x3084bf(await _0x55aa9d());}(this);}['_moveSelectionToFootnoteDefinition'](_0x27a15a){const {plugins:_0x1250ba,editing:_0x44a32d,model:_0x1cd987}=this['editor'],_0x5317a0=_0x1250ba['get'](_0x583e44)['getFootnote'](_0x27a15a);return!!_0x5317a0&&(_0x1cd987['change'](_0xf301fc=>{_0xf301fc['setSelection'](_0xf301fc['createPositionAt'](_0x5317a0['definition'],'end'));}),_0x44a32d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x39de4e){const {plugins:_0x1727ea,editing:_0x4dd4c3,model:_0x2a4a99}=this['editor'],_0x4b7ce7=_0x1727ea['get'](_0x583e44)['getFootnote'](_0x39de4e);return!!_0x4b7ce7&&(_0x2a4a99['change'](_0x5be815=>{_0x5be815['setSelection'](_0x4b7ce7['reference'],'on');}),_0x4dd4c3['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x150fb8}=this['editor']['model'],_0x8f5c7d=this['editor']['config']['get']('footnotes.multiBlock');_0x150fb8['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x150fb8['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x150fb8['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x8f5c7d?_0x150fb8['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x150fb8['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x150fb8['addChildCheck'](_0x324815=>{for(const _0x10723e of _0x324815)if('footnoteDefinition'===_0x10723e['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x100030}=this,{conversion:_0x59dfdf,editing:_0x335a0d}=_0x100030,{t:t}=_0x100030['locale'];_0x59dfdf['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x204f81,{writer:_0x5ab672,consumable:_0x58abe4})=>{const _0x58120e=_0x204f81['getChild'](0x0);if(!_0x58120e||!_0x58120e['is']('element','a'))return null;const _0x3be92d=_0x58120e['getAttribute']('href')||'';if(!_0x3be92d['startsWith']('#'))return null;const _0x34b2ea=_0x3be92d['replace'](/^#/,'');if(!_0x34b2ea)return null;_0x58abe4['consume'](_0x58120e,{'name':!0x0,'attributes':['href']});for(const {item:_0x844458}of _0x335a0d['view']['createRangeIn'](_0x58120e))_0x844458['is']('$textProxy')?_0x58abe4['consume'](_0x844458['textNode'],{'name':!0x0}):_0x844458['is']('element')&&_0x58abe4['consume'](_0x844458,{'name':!0x0});return _0x5ab672['createElement']('footnoteRef',{'footnoteId':_0x34b2ea});}}),_0x59dfdf['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x48f372,{writer:_0xe95fc1})=>g(_0x48f372,_0xe95fc1)}),_0x59dfdf['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5e7a9f,{writer:_0x8b4560})=>{const _0x407953=_0x5e7a9f['getAttribute']('footnoteCounter');return _0x3c65d7(g(_0x5e7a9f,_0x8b4560),_0x8b4560,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x407953)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1b09d0}=this,{t:t}=_0x1b09d0['locale'],{conversion:_0x1cd17a}=_0x1b09d0;_0x1cd17a['for']('upcast')['elementToElement']({'view':{'name':'ol','classes':['footnotes']},'model':'footnotesDefinitions','converterPriority':'high'}),_0x1cd17a['for']('dataDowncast')['elementToElement']({'model':'footnotesDefinitions','view':{'name':'ol','classes':['footnotes']}}),_0x1cd17a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x22d715,{writer:_0x126dc0})=>{const _0x4b9133=_0x126dc0['createContainerElement']('div',{'class':'footnotes-wrapper','data-footnotes-list-label':t('Footnotes')},_0x126dc0['createContainerElement']('ol',{'class':'footnotes'},_0x126dc0['createSlot']())),_0x1d183f=_0x3c65d7(_0x4b9133,_0x126dc0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x126dc0['setCustomProperty']('footnotesDefinitions',!0x0,_0x1d183f),_0x1d183f;}});}['_defineDefinitionConverters'](){const {editor:_0x421728}=this,{conversion:_0xdfc5c3,locale:_0x4f822b}=_0x421728,_0x34ffa4=_0x421728['config']['get']('footnotes.multiBlock');_0xdfc5c3['for']('upcast')['add'](_0x46b342=>{_0x46b342['on']('element:li',(_0x3d7c0d,_0x486b50,_0x4be137)=>{const _0x13113b=_0x486b50['viewItem'];if(!_0x13113b['hasClass']('footnote-definition')||!_0x13113b['getAttribute']('id'))return;const _0xa0027f=_0x13113b['parent'];if(!_0xa0027f['is']('element','ol')||!_0xa0027f['hasClass']('footnotes'))return;if(!_0x4be137['consumable']['test'](_0x13113b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4b83e5=_0x4be137['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x13113b['getAttribute']('id')});if(!_0x4be137['safeInsert'](_0x4b83e5,_0x486b50['modelCursor']))return;_0x4be137['consumable']['consume'](_0x13113b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2ebbe6=Array['from'](_0x13113b['getChildren']())['find'](_0xeb3181=>_0xeb3181['is']('element')&&_0xeb3181['hasClass']('footnote-content'));for(const _0x4f4c60 of _0x13113b['getChildren']())_0x4f4c60['is']('element')&&(_0x4be137['consumable']['consume'](_0x4f4c60,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4be137['consumable']['consume'](_0x4f4c60,{'name':!0x0,'classes':'footnote-content'}));if(_0x2ebbe6){if(_0x34ffa4)_0x4be137['convertChildren'](_0x2ebbe6,_0x4b83e5);else{const _0x48802a=_0x4be137['writer']['createElement']('footnoteInlineContent');_0x4be137['writer']['insert'](_0x48802a,_0x4b83e5),_0x4be137['convertChildren'](_0x2ebbe6,_0x48802a);}}_0x4be137['updateConversionResult'](_0x4b83e5,_0x486b50);});}),_0xdfc5c3['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x52c566,{writer:_0x2a91c3})=>D(_0x52c566,_0x2a91c3,_0x4f822b,{'dataPipeline':!0x0})}),_0xdfc5c3['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1463cd,{writer:_0x185f82})=>D(_0x1463cd,_0x185f82,_0x4f822b)});}['_defineBogusParagraphConverters'](){const {editor:_0x517d67}=this,{conversion:_0x201fd3}=_0x517d67;_0x517d67['config']['get']('footnotes.multiBlock')?(_0x201fd3['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x201fd3['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x517d67['model']['document'],'change:data',()=>{!function(_0x20b1e9,_0x451907){const _0x5b17c4=_0x20b1e9['document']['differ'],_0x1aaccd=new Set();for(const _0xe47e5f of _0x5b17c4['getChanges']()){const _0x42c00f='attribute'==_0xe47e5f['type']?_0xe47e5f['range']['start']['parent']:_0xe47e5f['position']['parent'];_0x42c00f['is']('element','footnoteDefinition')&&_0x1aaccd['add'](_0x42c00f);}for(const _0x11978e of _0x1aaccd['values']()){const _0x3835bd=Array['from'](_0x11978e['getChildren']())['filter'](_0x282d74=>p(_0x282d74,_0x451907['mapper']));for(const _0x5a003b of _0x3835bd)_0x451907['reconvertItem'](_0x5a003b);}}(_0x517d67['model'],_0x517d67['editing']);})):(_0x201fd3['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x201fd3['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x292e1f,{writer:_0x574ace})=>{const _0x5c3727=_0x574ace['createContainerElement']('span');return _0x574ace['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5c3727),_0x5c3727;}}));}['_defineKeyboardHandlers'](){const {editor:_0x506118}=this,{editing:_0x86ec19,t:t}=_0x506118,_0x2d7664=_0x506118['model']['document']['selection'];_0x506118['keystrokes']['set']('CTRL+Alt+D','insertFootnote'),_0x506118['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+D'}]}),this['listenTo'](_0x86ec19['view']['document'],'enter',(_0x260663,_0x1643df)=>{const _0x18c746=function(_0x5a8f24){const _0x5be56d=_0x5a8f24['getSelectedElement']();if(_0x5be56d?.['is']('element','footnoteRef'))return _0x5be56d;return null;}(_0x2d7664);if(_0x18c746){const _0x17a9cd=_0x18c746['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x17a9cd),_0x1643df['preventDefault'](),_0x260663['stop']();}},{'context':_0x56867c});}['_defineClickHandlers'](){const {editor:_0x2fe7e5}=this,{editing:_0x4de9dc}=_0x2fe7e5;_0x2fe7e5['editing']['view']['addObserver'](_0x3b1ac0),_0x2fe7e5['editing']['view']['addObserver'](_0x2db507);let _0x7b7b8=!0x1;this['listenTo'](_0x4de9dc['view']['document'],'pointerdown',(_0x3d73d6,_0x58889d)=>{const {target:_0x3ef870}=_0x58889d,_0x163297=_0x4de9dc['view']['document']['selection'];_0x7b7b8=!(!_0x3ef870['is']('element','sup')||!_0x3ef870['hasClass']('footnote'))&&_0x163297['getSelectedElement']()===_0x3ef870;},{'priority':'high'}),this['listenTo'](_0x4de9dc['view']['document'],'click',(_0xeae346,_0x5506e3)=>{const {target:_0x30f1a3}=_0x5506e3,_0x3bc55a=_0x30f1a3['getChild'](0x0)['getAttribute']('href');this['_moveSelectionToFootnoteDefinition'](_0x3bc55a['slice'](0x1)),_0xeae346['stop'](),_0x5506e3['preventDefault']();},{'priority':'high','context':_0x43025c=>_0x43025c['is']('element','sup')&&_0x43025c['hasClass']('footnote')&&_0x7b7b8}),this['listenTo'](_0x4de9dc['view']['document'],'click',(_0x50f7ff,_0x5ddb39)=>{const {target:_0x1c86b7}=_0x5ddb39;if(!_0x1c86b7['is']('element','a'))return;let _0x26d7e1=_0x1c86b7['getAttribute']('href');if(!_0x26d7e1?.['startsWith']('#'))return;_0x26d7e1=_0x26d7e1['slice'](0x1);let _0x54c7db=!0x1;(_0x26d7e1['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x26d7e1['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x26d7e1))&&(_0x54c7db=!0x0),_0x54c7db&&(_0x5ddb39['preventDefault'](),_0x50f7ff['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x28f17e}={}){return(_0x572206,{writer:_0x304adb})=>{if(!h(_0x572206))return null;if(!_0x28f17e)return _0x304adb['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xc10181=_0x304adb['createContainerElement']('p');return _0x304adb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xc10181),_0xc10181;};}function h(_0x4898d1){const {parent:_0x3e2a44}=_0x4898d1;if(!_0x3e2a44?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3e2a44['childCount'])return!0x1;for(const _0x1a1b37 of _0x4898d1['getAttributeKeys']())if(!_0x1a1b37['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1a1b37)return!0x1;return!0x0;}function p(_0x16b9a8,_0x58d42a){if(!_0x16b9a8['is']('element','paragraph'))return!0x1;const _0x1886d1=_0x58d42a['toViewElement'](_0x16b9a8);return!!_0x1886d1&&h(_0x16b9a8)!==_0x1886d1['is']('element','span');}export function isFootnotesDefinitionsWidget(_0xd7bdf1){return _0x56867c(_0xd7bdf1)&&_0xd7bdf1['is']('containerElement')&&!!_0xd7bdf1['getCustomProperty']('footnotesDefinitions');}function g(_0x4b60b3,_0x33e0a2){const _0xf471b8=_0x4b60b3['getAttribute']('footnoteId'),_0x4c0849=_0x4b60b3['getAttribute']('footnoteCounter'),_0x366180=_0x33e0a2['createUIElement']('a',{'id':'ref-'+_0xf471b8,'href':'#'+_0xf471b8},function(_0x38869b){const _0x2eea87=this['toDomElement'](_0x38869b);return _0x2eea87['textContent']=_0x4c0849,_0x2eea87;}),_0x28e515=_0x33e0a2['createContainerElement']('sup',{'class':'footnote'},[_0x366180]);return _0x28e515['getFillerOffset']=()=>null,_0x28e515;}function D(_0x2d7c8a,_0xe010a7,_0x213210,{dataPipeline:_0x5b7df4}={}){const {t:t}=_0x213210,_0x1d350e=_0x2d7c8a['getAttribute']('footnoteId'),_0x441f65=_0xe010a7['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1d350e},function(_0x48f702){const _0x23789a=this['toDomElement'](_0x48f702);return _0x23789a['innerText']='^',_0x23789a;}),_0x19d4d6=_0x5b7df4?_0xe010a7['createContainerElement']('div',{'class':'footnote-content'}):_0x2c030b(_0xe010a7['createEditableElement']('div',{'class':'footnote-content'}),_0xe010a7,{'label':t('Footnote\x20content.')});return _0xe010a7['insert'](_0xe010a7['createPositionAt'](_0x19d4d6,0x0),_0xe010a7['createSlot']()),_0xe010a7['createContainerElement']('li',{'class':'footnote-definition','id':_0x1d350e},[_0x441f65,_0x19d4d6]);}
@@ -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 _0x458397=_0x1b81;(function(_0x538aae,_0x3fc186){const _0x82f3e4=_0x1b81,_0x164207=_0x538aae();while(!![]){try{const _0x551baf=parseInt(_0x82f3e4(0x1f2))/0x1*(parseInt(_0x82f3e4(0x1e6))/0x2)+parseInt(_0x82f3e4(0x1ea))/0x3+parseInt(_0x82f3e4(0x1e7))/0x4+parseInt(_0x82f3e4(0x1e9))/0x5+-parseInt(_0x82f3e4(0x1f0))/0x6+-parseInt(_0x82f3e4(0x1f1))/0x7+-parseInt(_0x82f3e4(0x1eb))/0x8;if(_0x551baf===_0x3fc186)break;else _0x164207['push'](_0x164207['shift']());}catch(_0x6ad9fe){_0x164207['push'](_0x164207['shift']());}}}(_0x40ef,0x9deb6));function _0x40ef(){const _0x37bcf4=['refresh','1088262coSZzh','8787044gFfMnT','1WVWfJx','plugins','footnotesListStart','_updateFootnotesCounters','isInteger','execute','value','change','get','getFootnotesDefinitionsObjectElement','1736354UdWOnx','3735672FGwOqa','getAttribute','2288145TCriZn','1416951YWNQxN','5188272fGnjxg','isEnabled','model','setAttribute'];_0x40ef=function(){return _0x37bcf4;};return _0x40ef();}function _0x1b81(_0x3fcd8e,_0x43896e){const _0x40efd2=_0x40ef();return _0x1b81=function(_0x1b81a2,_0x421b89){_0x1b81a2=_0x1b81a2-0x1e1;let _0x391426=_0x40efd2[_0x1b81a2];return _0x391426;},_0x1b81(_0x3fcd8e,_0x43896e);}import{Command as _0x33d897}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x2077b5}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x33d897{[_0x458397(0x1ef)](){const _0x2e4245=_0x458397,{editor:_0x106c69}=this,_0x19d7c6=_0x106c69[_0x2e4245(0x1f3)][_0x2e4245(0x1e4)](_0x2077b5)[_0x2e4245(0x1e5)]();this[_0x2e4245(0x1ec)]=!!_0x19d7c6,this[_0x2e4245(0x1e2)]=_0x19d7c6?.[_0x2e4245(0x1e8)](_0x2e4245(0x1f4))??null;}[_0x458397(0x1e1)]({value:_0x3767eb}){const _0x3808a8=_0x458397,{editor:_0xff716c}=this,_0x53313b=_0xff716c[_0x3808a8(0x1f3)][_0x3808a8(0x1e4)](_0x2077b5),_0x18b413=_0x53313b[_0x3808a8(0x1e5)]();_0x18b413&&Number[_0x3808a8(0x1f6)](_0x3767eb)&&_0xff716c[_0x3808a8(0x1ed)][_0x3808a8(0x1e3)](_0x5a4fd8=>{const _0x702be9=_0x3808a8;_0x5a4fd8[_0x702be9(0x1ee)](_0x702be9(0x1f4),_0x3767eb,_0x18b413),_0x53313b[_0x702be9(0x1f5)](_0x5a4fd8);});}}
@@ -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
+ function _0x3863(_0xf3f6fa,_0x269170){const _0x9dd8fd=_0x9dd8();return _0x3863=function(_0x3863b1,_0x4fb324){_0x3863b1=_0x3863b1-0x163;let _0x147d78=_0x9dd8fd[_0x3863b1];return _0x147d78;},_0x3863(_0xf3f6fa,_0x269170);}function _0x9dd8(){const _0x1a5144=['model','2594059FLlRrf','189sVurRa','getFootnotesDefinitionsObjectElement','isEnabled','plugins','1265663BiQire','88UWtTDP','execute','5198YZZxCn','_updateFootnotesCounters','11508LdnjqQ','footnotesListStyle','2005AByOel','value','10Ujtbyk','54NWmQII','get','603325rSHYIn','includes','72558TawTPU','refresh','getAttribute','17372993BMSycc','change','setAttribute','228ogXtRo'];_0x9dd8=function(){return _0x1a5144;};return _0x9dd8();}const _0x1604e4=_0x3863;(function(_0x3b149b,_0x5234d4){const _0x4a2cc5=_0x3863,_0x44a0c7=_0x3b149b();while(!![]){try{const _0xa4cd4d=-parseInt(_0x4a2cc5(0x16e))/0x1+parseInt(_0x4a2cc5(0x165))/0x2*(-parseInt(_0x4a2cc5(0x179))/0x3)+parseInt(_0x4a2cc5(0x167))/0x4*(parseInt(_0x4a2cc5(0x169))/0x5)+parseInt(_0x4a2cc5(0x16c))/0x6*(-parseInt(_0x4a2cc5(0x17d))/0x7)+-parseInt(_0x4a2cc5(0x163))/0x8*(parseInt(_0x4a2cc5(0x170))/0x9)+-parseInt(_0x4a2cc5(0x16b))/0xa*(parseInt(_0x4a2cc5(0x173))/0xb)+parseInt(_0x4a2cc5(0x176))/0xc*(parseInt(_0x4a2cc5(0x178))/0xd);if(_0xa4cd4d===_0x5234d4)break;else _0x44a0c7['push'](_0x44a0c7['shift']());}catch(_0x31f42a){_0x44a0c7['push'](_0x44a0c7['shift']());}}}(_0x9dd8,0xd77ae));import{Command as _0xc0c2d5}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x465964}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x7170bb}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0xc0c2d5{[_0x1604e4(0x171)](){const _0x37a890=_0x1604e4,{editor:_0x347498}=this,_0x194090=_0x347498[_0x37a890(0x17c)][_0x37a890(0x16d)](_0x7170bb)[_0x37a890(0x17a)]();this[_0x37a890(0x17b)]=!!_0x194090,this[_0x37a890(0x16a)]=_0x194090?.[_0x37a890(0x172)](_0x37a890(0x168))??null;}[_0x1604e4(0x164)]({value:_0x3a6214}){const _0x130f0a=_0x1604e4,{editor:_0xf1b4dd}=this,_0xab1230=_0xf1b4dd[_0x130f0a(0x17c)][_0x130f0a(0x16d)](_0x7170bb),_0x44dfc7=_0xab1230[_0x130f0a(0x17a)]();_0x44dfc7&&_0x465964[_0x130f0a(0x16f)](_0x3a6214)&&_0xf1b4dd[_0x130f0a(0x177)][_0x130f0a(0x174)](_0x368a90=>{const _0x4ef086=_0x130f0a;_0x368a90[_0x4ef086(0x175)](_0x4ef086(0x168),_0x3a6214,_0x44dfc7),_0xab1230[_0x4ef086(0x166)](_0x368a90);});}}
@@ -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 _0x29d7(){const _0x34b4c4=['lower-alpha','decimal','decimal-leading-zero','upper-latin','upper-alpha','2043AYpdyY','2304835owidFU','4522536qMzgHr','9282749PkWJBj','6yLiklJ','1671483dcvzjV','upper-roman','54930sFkVHh','lower-latin','lower-roman','2109800cgkGgK','4Wqnnim','214135fZScCm'];_0x29d7=function(){return _0x34b4c4;};return _0x29d7();}function _0x2618(_0x1c86cc,_0x3c0078){const _0x29d7b6=_0x29d7();return _0x2618=function(_0x2618a5,_0x5db0cb){_0x2618a5=_0x2618a5-0x139;let _0x3d97c8=_0x29d7b6[_0x2618a5];return _0x3d97c8;},_0x2618(_0x1c86cc,_0x3c0078);}const _0x2e8006=_0x2618;(function(_0x4483a2,_0x4aabf1){const _0x6b0752=_0x2618,_0x595f00=_0x4483a2();while(!![]){try{const _0x2d970c=-parseInt(_0x6b0752(0x146))/0x1+-parseInt(_0x6b0752(0x144))/0x2+parseInt(_0x6b0752(0x13f))/0x3+parseInt(_0x6b0752(0x145))/0x4*(-parseInt(_0x6b0752(0x13b))/0x5)+-parseInt(_0x6b0752(0x13e))/0x6*(-parseInt(_0x6b0752(0x13d))/0x7)+-parseInt(_0x6b0752(0x13c))/0x8+parseInt(_0x6b0752(0x13a))/0x9*(parseInt(_0x6b0752(0x141))/0xa);if(_0x2d970c===_0x4aabf1)break;else _0x595f00['push'](_0x595f00['shift']());}catch(_0x4db936){_0x595f00['push'](_0x595f00['shift']());}}}(_0x29d7,0xcbd2c));export const FOOTNOTES_DEFINITIONS_STYLES=[_0x2e8006(0x148),_0x2e8006(0x149),_0x2e8006(0x142),_0x2e8006(0x14a),_0x2e8006(0x147),_0x2e8006(0x139),_0x2e8006(0x143),_0x2e8006(0x140)];
@@ -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 _0x45b55b=_0x3539;(function(_0x13bff9,_0x27a37d){const _0x54274c=_0x3539,_0x54ec1f=_0x13bff9();while(!![]){try{const _0xdc0c35=-parseInt(_0x54274c(0x1a9))/0x1+-parseInt(_0x54274c(0x1a4))/0x2*(-parseInt(_0x54274c(0x183))/0x3)+parseInt(_0x54274c(0x1da))/0x4*(-parseInt(_0x54274c(0x1b8))/0x5)+parseInt(_0x54274c(0x1d2))/0x6*(-parseInt(_0x54274c(0x1e1))/0x7)+parseInt(_0x54274c(0x1d0))/0x8+parseInt(_0x54274c(0x197))/0x9*(parseInt(_0x54274c(0x19d))/0xa)+parseInt(_0x54274c(0x1c0))/0xb*(parseInt(_0x54274c(0x1ad))/0xc);if(_0xdc0c35===_0x27a37d)break;else _0x54ec1f['push'](_0x54ec1f['shift']());}catch(_0x4acb26){_0x54ec1f['push'](_0x54ec1f['shift']());}}}(_0x49ea,0x74f2c));import{Plugin as _0x18f536}from'ckeditor5/src/core.js';import{FootnotesStyleCommand as _0x37e4a5}from'./commands/footnotesstylecommand.js';import{FootnotesStartCommand as _0x3c901b}from'./commands/footnotesstartcommand.js';import{FootnotesTracker as _0x3ab7dd}from'../footnotestracker.js';function _0x3539(_0x1225a2,_0x3d8cac){const _0x49eaa9=_0x49ea();return _0x3539=function(_0x3539af,_0x4757e8){_0x3539af=_0x3539af-0x17d;let _0x3d0718=_0x49eaa9[_0x3539af];return _0x3d0718;},_0x3539(_0x1225a2,_0x3d8cac);}import{FootnotesEditing as _0x3c6e5a}from'../footnotesediting.js';export class FootnotesPropertiesEditing extends _0x18f536{static get[_0x45b55b(0x1b6)](){const _0x26b182=_0x45b55b;return _0x26b182(0x1c6);}static get[_0x45b55b(0x1d4)](){return[_0x3c6e5a,_0x3ab7dd];}static get[_0x45b55b(0x1a8)](){return!0x0;}static get[_0x45b55b(0x1d8)](){return!0x0;}[_0x45b55b(0x1d6)](){const _0x459c68=_0x45b55b,{editor:_0x2b28ea}=this;_0x2b28ea[_0x459c68(0x1a7)][_0x459c68(0x1e2)](_0x459c68(0x19e),_0x459c68(0x19c)),_0x2b28ea[_0x459c68(0x1a7)][_0x459c68(0x1e2)](_0x459c68(0x1de),0x1),_0x2b28ea[_0x459c68(0x198)][_0x459c68(0x192)](_0x459c68(0x1b3),new _0x37e4a5(_0x2b28ea)),_0x2b28ea[_0x459c68(0x198)][_0x459c68(0x192)](_0x459c68(0x1cc),new _0x3c901b(_0x2b28ea)),this[_0x459c68(0x18e)](),this[_0x459c68(0x196)](),this[_0x459c68(0x193)](),this[_0x459c68(0x1b5)]();}[_0x45b55b(0x18e)](){const _0x5bca18=_0x45b55b,{editor:_0x4fc1c4}=this,{schema:_0xa7ab11}=_0x4fc1c4[_0x5bca18(0x1ab)];_0xa7ab11[_0x5bca18(0x1dd)](_0x5bca18(0x181),{'allowAttributes':[_0x5bca18(0x1d5),_0x5bca18(0x1ba)]});}[_0x45b55b(0x196)](){const _0xf5c6ab=_0x45b55b,{editor:_0x1f6a94}=this,{conversion:_0x7b869c,model:_0x3f9062}=_0x1f6a94,{schema:_0x741c32}=_0x3f9062;_0x7b869c[_0xf5c6ab(0x1a0)](_0xf5c6ab(0x1db))[_0xf5c6ab(0x18b)]({'view':{'name':'ol','styles':{'list-style-type':/.+/}},'model':{'key':_0xf5c6ab(0x1d5),'value':_0x18853e=>_0x18853e[_0xf5c6ab(0x187)](_0xf5c6ab(0x1b4))}}),_0x7b869c[_0xf5c6ab(0x1a0)](_0xf5c6ab(0x1db))[_0xf5c6ab(0x18b)]({'view':{'name':'ol','attributes':{'start':/.+/}},'model':{'key':_0xf5c6ab(0x1ba),'value':_0x54ed5f=>{const _0x531a7d=_0xf5c6ab,_0x4123c3=_0x54ed5f[_0x531a7d(0x185)](_0x531a7d(0x18d)),_0x552b0f=Number[_0x531a7d(0x1d7)](_0x4123c3,0xa);return Number[_0x531a7d(0x182)](_0x552b0f)?null:_0x552b0f;}}}),_0x7b869c[_0xf5c6ab(0x1a0)](_0xf5c6ab(0x1db))[_0xf5c6ab(0x18b)]({'view':{'name':'ol','attributes':{'type':/.+/}},'model':{'key':_0xf5c6ab(0x1d5),'value':_0x250166=>({0x1:_0xf5c6ab(0x19c),'a':_0xf5c6ab(0x19b),'A':_0xf5c6ab(0x190),'i':_0xf5c6ab(0x17e),'I':_0xf5c6ab(0x1d3)}[_0x250166[_0xf5c6ab(0x185)](_0xf5c6ab(0x1bb))])}}),_0x7b869c[_0xf5c6ab(0x1a0)](_0xf5c6ab(0x1db))[_0xf5c6ab(0x192)](_0x784b6a=>{const _0x3d3671=_0xf5c6ab;_0x784b6a['on'](_0x3d3671(0x1c2),(_0x372dd8,_0x47e65a,_0x1281c2)=>{const _0x54da4a=_0x3d3671,_0x2313da=_0x47e65a[_0x54da4a(0x1bf)]?.[_0x54da4a(0x18d)][_0x54da4a(0x1cb)];_0x2313da?.['is'](_0x54da4a(0x1be),_0x54da4a(0x181))&&(!_0x2313da[_0x54da4a(0x1c1)](_0x54da4a(0x1d5))&&_0x741c32[_0x54da4a(0x1ae)](_0x2313da,_0x54da4a(0x1d5))&&_0x1281c2[_0x54da4a(0x1af)][_0x54da4a(0x191)](_0x54da4a(0x1d5),_0x54da4a(0x19c),_0x2313da),!_0x2313da[_0x54da4a(0x1c1)](_0x54da4a(0x1ba))&&_0x741c32[_0x54da4a(0x1ae)](_0x2313da,_0x54da4a(0x1ba))&&_0x1281c2[_0x54da4a(0x1af)][_0x54da4a(0x191)](_0x54da4a(0x1ba),0x1,_0x2313da));},{'priority':_0x3d3671(0x1ac)});}),_0x7b869c[_0xf5c6ab(0x1a0)](_0xf5c6ab(0x19a))[_0xf5c6ab(0x18b)]({'model':{'name':_0xf5c6ab(0x181),'key':_0xf5c6ab(0x1ba)},'view':_0x31561a=>0x1===_0x31561a?null:{'key':_0xf5c6ab(0x18d),'value':String(_0x31561a)}}),_0x7b869c[_0xf5c6ab(0x1a0)](_0xf5c6ab(0x19a))[_0xf5c6ab(0x18b)]({'model':{'name':_0xf5c6ab(0x181),'key':_0xf5c6ab(0x1d5)},'view':_0x4f2003=>_0xf5c6ab(0x19c)===_0x4f2003?null:{'key':_0xf5c6ab(0x19f),'value':{'list-style-type':_0x4f2003}}}),_0x7b869c[_0xf5c6ab(0x1a0)](_0xf5c6ab(0x180))[_0xf5c6ab(0x192)](_0x4ba432=>{const _0x2e2e12=_0xf5c6ab;_0x4ba432['on'](_0x2e2e12(0x17d),(_0x3239b1,_0x98df1d,_0x23df69)=>{const _0x23cdff=_0x2e2e12;if(!_0x23df69[_0x23cdff(0x18c)][_0x23cdff(0x188)](_0x98df1d[_0x23cdff(0x1c4)],_0x3239b1[_0x23cdff(0x1b2)]))return;const _0x2fd144=b(_0x98df1d[_0x23cdff(0x1c4)],_0x23df69[_0x23cdff(0x1c8)]);null===_0x98df1d[_0x23cdff(0x186)]||void 0x0===_0x98df1d[_0x23cdff(0x186)]||0x1===_0x98df1d[_0x23cdff(0x186)]?_0x23df69[_0x23cdff(0x1af)][_0x23cdff(0x1ca)](_0x23cdff(0x18d),_0x2fd144):_0x23df69[_0x23cdff(0x1af)][_0x23cdff(0x191)](_0x23cdff(0x18d),String(_0x98df1d[_0x23cdff(0x186)]),_0x2fd144);}),_0x4ba432['on'](_0x2e2e12(0x1aa),(_0x31a0f6,_0x5b872f,_0x5b0197)=>{const _0xb5af60=_0x2e2e12;if(!_0x5b0197[_0xb5af60(0x18c)][_0xb5af60(0x188)](_0x5b872f[_0xb5af60(0x1c4)],_0x31a0f6[_0xb5af60(0x1b2)]))return;const _0x2730fe=b(_0x5b872f[_0xb5af60(0x1c4)],_0x5b0197[_0xb5af60(0x1c8)]);_0x5b872f[_0xb5af60(0x186)]&&_0xb5af60(0x19c)!==_0x5b872f[_0xb5af60(0x186)]?_0x5b0197[_0xb5af60(0x1af)][_0xb5af60(0x199)](_0xb5af60(0x1b4),_0x5b872f[_0xb5af60(0x186)],_0x2730fe):_0x5b0197[_0xb5af60(0x1af)][_0xb5af60(0x18f)](_0xb5af60(0x1b4),_0x2730fe);});});}[_0x45b55b(0x1b5)](){const _0x5cd72b=_0x45b55b,{editor:_0x5c0293}=this,{model:_0x15173e}=_0x5c0293,_0x19e6bb=_0x5c0293[_0x5cd72b(0x1dc)][_0x5cd72b(0x184)](_0x3ab7dd),_0x142498=this[_0x5cd72b(0x1b9)](),_0x224a90=this[_0x5cd72b(0x1e3)]();_0x15173e[_0x5cd72b(0x1a5)][_0x5cd72b(0x1cf)](_0x5e6ec5=>{const _0x3db382=_0x5cd72b,_0x181d86=_0x15173e[_0x3db382(0x1a5)][_0x3db382(0x1c3)][_0x3db382(0x1e0)]();let _0x41e95b=!0x1;for(const _0x401d2e of _0x181d86){if(_0x3db382(0x189)!==_0x401d2e[_0x3db382(0x1bb)]||_0x3db382(0x1df)===_0x401d2e[_0x3db382(0x1b2)])continue;const _0x4b5603=_0x15173e[_0x3db382(0x1b7)](_0x401d2e[_0x3db382(0x1bc)][_0x3db382(0x1cb)]);for(const _0x206439 of _0x4b5603[_0x3db382(0x1bd)]())_0x206439['is'](_0x3db382(0x1be),_0x3db382(0x181))&&(_0x206439[_0x3db382(0x1c1)](_0x3db382(0x1ba))||(_0x5e6ec5[_0x3db382(0x191)](_0x3db382(0x1ba),_0x224a90,_0x206439),_0x41e95b=!0x0),_0x206439[_0x3db382(0x1c1)](_0x3db382(0x1d5))||(_0x5e6ec5[_0x3db382(0x191)](_0x3db382(0x1d5),_0x142498,_0x206439),_0x41e95b=!0x0));}return _0x41e95b&&_0x19e6bb[_0x3db382(0x195)](_0x5e6ec5),_0x41e95b;});}[_0x45b55b(0x193)](){const _0x6ad341=_0x45b55b,{editor:_0x3564b9}=this;_0x3564b9[_0x6ad341(0x1dc)][_0x6ad341(0x184)](_0x3ab7dd)[_0x6ad341(0x1cd)](_0x1ffb80=>this[_0x6ad341(0x1a2)](_0x1ffb80));}[_0x45b55b(0x1b9)](){const _0x1c2832=_0x45b55b;return this[_0x1c2832(0x1ce)][_0x1c2832(0x1a7)][_0x1c2832(0x184)](_0x1c2832(0x19e));}[_0x45b55b(0x1e3)](){const _0x548d10=_0x45b55b;return this[_0x548d10(0x1ce)][_0x548d10(0x1a7)][_0x548d10(0x184)](_0x548d10(0x1de));}[_0x45b55b(0x1a2)]({container:_0x5ad946,value:_0x44e8f4,digits:_0x3a9619}){const _0x598831=_0x45b55b,_0x54372c=_0x5ad946[_0x598831(0x185)](_0x598831(0x1d5)),_0x25a9ce=_0x5ad946[_0x598831(0x185)](_0x598831(0x1ba)),_0x52ec50=Math[_0x598831(0x1a1)](_0x44e8f4)+(_0x25a9ce-0x1);switch(_0x54372c){case _0x598831(0x19c):default:return String(_0x52ec50);case _0x598831(0x17f):return function(_0x5a25b3,_0x3ea825){const _0x524d97=_0x598831;return String(_0x5a25b3)[_0x524d97(0x1b0)](_0x3ea825,'0');}(_0x52ec50,Math[_0x598831(0x1c7)](0x2,_0x3a9619));case _0x598831(0x19b):case _0x598831(0x18a):return x(_0x52ec50,!0x1);case _0x598831(0x190):case _0x598831(0x1c9):return x(_0x52ec50,!0x0);case _0x598831(0x17e):return M(_0x52ec50,!0x1);case _0x598831(0x1d3):return M(_0x52ec50,!0x0);}}}function b(_0x41eaaa,_0x129f7a){const _0x33018c=_0x45b55b,_0x28c9ab=_0x129f7a[_0x33018c(0x1d1)](_0x41eaaa);return Array[_0x33018c(0x1a3)](_0x28c9ab[_0x33018c(0x194)]())[_0x33018c(0x1c5)](_0x53bf9b=>_0x53bf9b['is'](_0x33018c(0x1be),'ol'));}function x(_0x3ff127,_0x2984f1){const _0x4b6a26=_0x45b55b;let _0xd19e4c='',_0x417bfa=_0x3ff127;for(;_0x417bfa>0x0;){const _0x2a7787=(_0x417bfa-0x1)%0x1a;_0xd19e4c=String[_0x4b6a26(0x1b1)](0x61+_0x2a7787)+_0xd19e4c,_0x417bfa=Math[_0x4b6a26(0x1a1)]((_0x417bfa-0x1)/0x1a);}return _0x2984f1?_0xd19e4c[_0x4b6a26(0x1d9)]():_0xd19e4c;}const C=[{'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 M(_0x1ef171,_0x212fe1){const _0x552d82=_0x45b55b;let _0x1f6a27='',_0x2a80bf=_0x1ef171;for(const {value:_0x25ce62,numeral:_0x3ab6f0}of C)for(;_0x2a80bf>=_0x25ce62;)_0x1f6a27+=_0x3ab6f0,_0x2a80bf-=_0x25ce62;return _0x212fe1?_0x1f6a27:_0x1f6a27[_0x552d82(0x1a6)]();}function _0x49ea(){const _0x122728=['817118DtopjI','attribute:footnotesListStyle:footnotesDefinitions','model','low','12GGfFts','checkAttribute','writer','padStart','fromCharCode','name','footnotesStyle','list-style-type','_definePostfixer','pluginName','createRangeOn','26355oMHWpq','_getDefaultListStyle','footnotesListStart','type','position','getItems','element','modelRange','9142639GkCkbn','hasAttribute','element:ol','differ','item','find','FootnotesPropertiesEditing','max','mapper','upper-latin','removeAttribute','nodeAfter','footnotesStart','setFootnoteFormatter','editor','registerPostFixer','2042384nkPOVN','toViewElement','6jIusme','upper-roman','requires','footnotesListStyle','init','parseInt','isPremiumPlugin','toUpperCase','684tiGimO','upcast','plugins','extend','footnotes.footnotesProperties.defaultStartIndex','$text','getChanges','1154839ubuIYV','define','_getDefaultStartIndex','attribute:footnotesListStart:footnotesDefinitions','lower-roman','decimal-leading-zero','editingDowncast','footnotesDefinitions','isNaN','1473icBEyI','get','getAttribute','attributeNewValue','getStyle','consume','insert','lower-latin','attributeToAttribute','consumable','start','_defineSchema','removeStyle','upper-alpha','setAttribute','add','_defineFormatter','getChildren','_updateFootnotesCounters','_defineConverters','117VRoFLS','commands','setStyle','dataDowncast','lower-alpha','decimal','254110qRquvK','footnotes.footnotesProperties.defaultListStyle','style','for','floor','_formatFootnoteListValue','from','3852xxdQmI','document','toLowerCase','config','isOfficialPlugin'];_0x49ea=function(){return _0x122728;};return _0x49ea();}
@@ -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 _0x842d19,ButtonView as _0x14215b,ContextualBalloon as _0x1172c1,createDropdown as _0x56e212}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x239d22}from'ckeditor5/src/widget.js';import{Plugin as _0x1d2aa6}from'ckeditor5/src/core.js';import{IconFootnote as _0x753aa5,IconListStyleDecimal as _0x28a125,IconListStyleDecimalLeadingZero as _0x321eb6,IconListStyleLowerLatin as _0x249446,IconListStyleLowerRoman as _0x426652,IconListStyleUpperLatin as _0x59c1e6,IconListStyleUpperRoman as _0x407ffe}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x290ff7}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x572e96}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x1d2aa6{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1172c1,_0x239d22];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2a1ea9}=this,{componentFactory:_0x2e5bd9}=_0x2a1ea9['ui'];_0x2a1ea9['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2e5bd9['add']('footnotesStyle',function(_0x37742b){return _0x2746c0=>{const {t:t}=_0x2746c0,_0x27abbb=_0x37742b['commands']['get']('footnotesStyle'),_0x299beb=_0x56e212(_0x2746c0),{buttonView:_0x546fe0}=_0x299beb;return _0x299beb['class']='ck-footnotes-styles-dropdown',_0x299beb['bind']('isEnabled')['to'](_0x27abbb,'isEnabled'),_0x546fe0['set']({'label':t('Footnotes\x20style'),'icon':_0x753aa5,'tooltip':!0x0}),_0x299beb['once']('change:isOpen',()=>{const _0x31ae6e=function({editor:_0x5d3316,dropdownView:_0x2deab4}){const {t:t}=_0x5d3316['locale'],_0x3ef002=t('Footnotes\x20definitions\x20styles'),_0x2b8e4f=function(_0x49d30f){const t=_0x49d30f['locale']['t'],_0x43d99c=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x28a125},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x321eb6},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x426652},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x407ffe},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x249446},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x59c1e6}];return _0x43d99c['map'](function(_0x788ae4){const _0xa18a5a=_0x788ae4['locale'];return({label:_0x2a825e,icon:_0xb055a8,tooltip:_0x564676,style:_0x38940b})=>{const _0x4df49d=_0x788ae4['commands']['get']('footnotesStyle'),_0x23c3ea=new _0x14215b(_0xa18a5a);return _0x23c3ea['set']({'label':_0x2a825e,'icon':_0xb055a8,'tooltip':_0x564676}),_0x23c3ea['bind']('isOn')['to'](_0x4df49d,'value',_0x945c12=>_0x945c12===_0x38940b),_0x23c3ea['bind']('isEnabled')['to'](_0x4df49d,'isEnabled'),_0x23c3ea['on']('execute',()=>{_0x788ae4['execute']('footnotesStyle',{'value':_0x38940b}),_0x788ae4['editing']['view']['focus']();}),_0x23c3ea;};}(_0x49d30f));}(_0x5d3316),_0x14e777=new _0x290ff7(_0x5d3316['locale'],{'styleGridAriaLabel':_0x3ef002,'styleButtonViews':_0x2b8e4f});return _0x14e777['delegate']('execute')['to'](_0x2deab4),_0x14e777['on']('footnotesListStart',(_0xd35702,_0x2f09fc)=>{_0x5d3316['execute']('footnotesStart',{'value':_0x2f09fc['startIndex']});}),_0x14e777;}({'editor':_0x37742b,'dropdownView':_0x299beb});_0x299beb['panelView']['children']['add'](_0x31ae6e);}),_0x299beb;};}(_0x2a1ea9));}['afterInit'](){const {editor:_0x3e2630}=this,{t:t}=_0x3e2630['locale'],_0x3e886f=_0x3e2630['plugins']['get'](_0x239d22),{defaultPositions:_0x3dbaf7}=_0x842d19;_0x3e886f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3e2630['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3d3560=>{let _0xee6268=_0x3d3560['getFirstPosition']()?.['parent'];return _0xee6268?.['is']('$text')&&(_0xee6268=_0xee6268['parent']),_0xee6268?.['is']('element')?_0xee6268['findAncestor'](_0x572e96):null;},'positions':[_0x3dbaf7['southArrowNorth'],_0x3dbaf7['southArrowNorthMiddleWest'],_0x3dbaf7['southArrowNorthMiddleEast'],_0x3dbaf7['southArrowNorthWest'],_0x3dbaf7['southArrowNorthEast'],_0x3dbaf7['northArrowSouth'],_0x3dbaf7['northArrowSouthMiddleWest'],_0x3dbaf7['northArrowSouthMiddleEast'],_0x3dbaf7['northArrowSouthWest'],_0x3dbaf7['northArrowSouthEast'],_0x3dbaf7['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 _0x1437e2,View as _0x148c69,ViewCollection as _0x43f94f,FocusCycler as _0x2909be,addKeyboardHandlingForGrid as _0x4f4f19,CollapsibleView as _0x338088,LabeledFieldView as tt,createLabeledInputNumber as st}from'ckeditor5/src/ui.js';import{FocusTracker as it,KeystrokeHandler as et,global as ot}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x148c69{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new it();['keystrokes']=new et();['focusables']=new _0x43f94f();['focusCycler'];constructor(_0x1280fb,{styleButtonViews:_0x4d5fb1,styleGridAriaLabel:_0x120746}){super(_0x1280fb),(this['focusCycler']=new _0x2909be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x4d5fb1,_0x120746),[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 _0x21c013 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x21c013['element']);_0x4f4f19({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>ot['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 _0x596723=_0xe927bd=>_0xe927bd['stopPropagation']();this['keystrokes']['set']('arrowright',_0x596723),this['keystrokes']['set']('arrowleft',_0x596723),this['keystrokes']['set']('arrowup',_0x596723),this['keystrokes']['set']('arrowdown',_0x596723);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x44e81f,_0x1a32c3){const _0x29af2a=new _0x148c69(this['locale']);return _0x29af2a['children']=_0x29af2a['createCollection'](),_0x29af2a['children']['addMany'](_0x44e81f),_0x29af2a['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1a32c3,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x29af2a['children']}),_0x29af2a['children']['delegate']('execute')['to'](this),_0x29af2a['focus']=function(){for(const _0x433393 of this['children'])if(_0x433393 instanceof _0x1437e2&&_0x433393['isOn'])return void _0x433393['focus']();this['children']['first']['focus']();},_0x29af2a['focusTracker']=new it(),_0x29af2a['keystrokes']=new et(),_0x29af2a['render'](),_0x29af2a['keystrokes']['listenTo'](_0x29af2a['element']),this['children']['add'](_0x29af2a),_0x29af2a;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4e3b22=this['_createStartIndexPropertyView'](),_0x826006=[_0x4e3b22],_0x561c0a=new _0x338088(this['locale'],_0x826006);return _0x561c0a['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x561c0a['buttonView']['bind']('isEnabled')['toMany'](_0x826006,'isEnabled',(..._0x2b1706)=>_0x2b1706['some'](_0x1f2b94=>_0x1f2b94)),_0x561c0a['buttonView']['on']('change:isEnabled',(_0x69b132,_0x3f582c,_0x52efd5)=>{_0x52efd5||(_0x561c0a['isCollapsed']=!0x0);}),this['children']['add'](_0x561c0a),[_0x4e3b22,_0x561c0a];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4eb84f=new tt(this['locale'],st);return _0x4eb84f['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4eb84f['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4eb84f['fieldView']['on']('input',()=>{const _0x35ad56=_0x4eb84f['fieldView']['element'],_0x12e61=_0x35ad56['valueAsNumber'];Number['isNaN'](_0x12e61)?_0x4eb84f['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x35ad56['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x12e61}):_0x4eb84f['errorText']=t('Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0x4eb84f;}}
@@ -0,0 +1,32 @@
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
7
+ * @publicApi
8
+ */
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import { FootnotesPropertiesEditing } from './footnotesproperties/footnotespropertiesediting.js';
11
+ import { FootnotesPropertiesUI } from './footnotesproperties/footnotespropertiesui.js';
12
+ /**
13
+ * The footnotes properties plugin.
14
+ */
15
+ export declare class FootnotesProperties extends Plugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName(): "FootnotesProperties";
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get requires(): readonly [typeof FootnotesPropertiesEditing, typeof FootnotesPropertiesUI];
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get isOfficialPlugin(): true;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get isPremiumPlugin(): true;
32
+ }