@ckeditor/ckeditor5-pagination 48.8.1-alpha.4 → 49.0.0-alpha.1
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/LICENSE.md +1 -1
- package/dist/augmentation.d.ts +17 -17
- package/dist/index-editor.css +156 -140
- package/dist/index.css +144 -128
- package/dist/index.d.ts +10 -8
- package/dist/index.js +2 -2
- package/dist/legacyerrors.d.ts +0 -4
- package/dist/pagination.d.ts +124 -132
- package/dist/paginationediting.d.ts +72 -73
- package/dist/paginationlookup.d.ts +58 -58
- package/dist/paginationrenderer.d.ts +52 -52
- package/dist/paginationui.d.ts +28 -28
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/ui/linesrepository.d.ts +40 -34
- package/dist/ui/lineview.d.ts +47 -48
- package/dist/ui/pagenavigatorview.d.ts +52 -53
- package/dist/utils/common-translations.d.ts +6 -6
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x2780bf}from'@ckeditor/ckeditor5-core/dist/index.js';import{View as _0x1a9d6c,InputNumberView as _0xb2d858,ButtonView as _0x5c9cf3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{logWarning as _0x3bfb77,global as _0x26f0e7,Rect as _0xa2fe14,uid as _0x28ef39,toUnit as _0x1a366b,first as _0x5b75dd,env as _0x21a4ab,ResizeObserver as _0x2fd01c,keyCodes as _0x4d6c77}from'@ckeditor/ckeditor5-utils/dist/index.js';import{debounce as _0x1adb26}from'es-toolkit/compat';import{IconArrowDown as _0x1fce8a,IconArrowUp as _0xe5fc43}from'@ckeditor/ckeditor5-icons/dist/index.js';class PaginationLookup extends _0x2780bf{['_recalculatePageBreaksDebounced']=_0x1adb26(()=>this['_recalculatePageBreaks'](),0xc8);['_pagesContainer']=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x3bfb77('pagination-config-not-found',this['editor']['config']);const _0x49f7c0=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x49f7c0),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0xbd956b,_0x4929ef,_0xfee9b0)=>{_0xfee9b0&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){!async function(_0x2b6b5f){const _0x383c28=_0x547c2e([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x5b1610=0xc82cb1e,_0x1c40d1=0xc85419e^_0x5b1610,_0xf69e18=window[_0x547c2e([0x44,0x61,0x74,0x65])][_0x547c2e([0x6e,0x6f,0x77])](),_0x3e677d=_0x2b6b5f[_0x547c2e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36d42f=new window[(_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8810=>{_0x3e677d[_0x547c2e([0x6f,0x6e,0x63,0x65])](_0x547c2e([0x72,0x65,0x61,0x64,0x79]),_0x3e8810);}),_0x368123={[_0x547c2e([0x6b,0x74,0x79])]:_0x547c2e([0x45,0x43]),[_0x547c2e([0x75,0x73,0x65])]:_0x547c2e([0x73,0x69,0x67]),[_0x547c2e([0x63,0x72,0x76])]:_0x547c2e([0x50,0x2d,0x32,0x35,0x36]),[_0x547c2e([0x78])]:_0x547c2e([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]),[_0x547c2e([0x79])]:_0x547c2e([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]),[_0x547c2e([0x61,0x6c,0x67])]:_0x547c2e([0x45,0x53,0x32,0x35,0x36])},_0x59e7a9=_0x3e677d[_0x547c2e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x547c2e([0x67,0x65,0x74])](_0x547c2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xec235(){let _0x5175de,_0x17861b=null,_0x89e3f6=null;try{if(_0x59e7a9==_0x547c2e([0x47,0x50,0x4c]))return _0x547c2e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5175de=_0x39f0bc(),!_0x5175de)return _0x547c2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5175de[_0x547c2e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x89e3f6=_0x3b46ca(_0x5175de[_0x547c2e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5175de[_0x547c2e([0x6a,0x74,0x69])])),await _0x2e7514()?_0x32627d()?_0x1c4a1e()?_0x547c2e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11c860()?(_0x5175de[_0x547c2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x547c2e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17861b=_0x26822a(_0x547c2e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3fc6a9()):_0x547c2e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x547c2e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x547c2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x547c2e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c4a1e(){const _0x4811e7=[_0x547c2e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x547c2e([0x74,0x72,0x69,0x61,0x6c])][_0x547c2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5175de[_0x547c2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf69e18/0x3e8:0xe10*_0x1c40d1;return _0x5175de[_0x547c2e([0x65,0x78,0x70])]<_0x4811e7;}function _0x32627d(){const _0x3daa5b=_0x5175de[_0x547c2e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3daa5b&&(!!_0x3daa5b[_0x547c2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x547c2e([0x2a]))||!!_0x3daa5b[_0x547c2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x547c2e([0x50,0x41,0x47])));}function _0x11c860(){const _0x505988=_0x5175de[_0x547c2e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x505988||0x0==_0x505988[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c0902}=new URL(window[_0x547c2e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x505988[_0x547c2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c0902))return!0x0;const _0x262792=_0x2c0902[_0x547c2e([0x73,0x70,0x6c,0x69,0x74])](_0x547c2e([0x2e]));return _0x505988[_0x547c2e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5aaa65=>_0x5aaa65[_0x547c2e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x547c2e([0x2a])))[_0x547c2e([0x6d,0x61,0x70])](_0x55ab91=>_0x55ab91[_0x547c2e([0x73,0x70,0x6c,0x69,0x74])](_0x547c2e([0x2e])))[_0x547c2e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20755c=>_0x20755c[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x262792[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x547c2e([0x6d,0x61,0x70])](_0x1466b8=>Array(_0x262792[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1466b8[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x547c2e([0x66,0x69,0x6c,0x6c])](_0x1466b8[0x0]===_0x547c2e([0x2a])?_0x547c2e([0x2a]):'')[_0x547c2e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1466b8))[_0x547c2e([0x73,0x6f,0x6d,0x65])](_0x1e79c4=>_0x262792[_0x547c2e([0x65,0x76,0x65,0x72,0x79])]((_0x2eed63,_0x58fd2d)=>_0x1e79c4[_0x58fd2d]===_0x2eed63||_0x1e79c4[_0x58fd2d]===_0x547c2e([0x2a])));}function _0x3fc6a9(){return _0x17861b&&_0x89e3f6?new window[(_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e955e,_0xa69af9)=>{_0x17861b[_0x547c2e([0x74,0x68,0x65,0x6e])](_0x4e955e,_0xa69af9),_0x89e3f6[_0x547c2e([0x74,0x68,0x65,0x6e])](_0x5ea9ba=>{_0x5ea9ba!=_0x547c2e([0x56,0x61,0x6c,0x69,0x64])&&_0x4e955e(_0x5ea9ba);},_0xa69af9);}):_0x17861b||_0x89e3f6||_0x547c2e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b46ca(_0x1a96cd,_0x505a4a){return new window[(_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e650b=>{if(_0x3c63a2())return _0x1e650b(_0x547c2e([0x56,0x61,0x6c,0x69,0x64]));_0x5e03a7(),_0x3e677d[_0x547c2e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x547c2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4eb821=!0x1;const _0x44747f=_0x28ef39();function _0x3cf8c3(_0x2d4eeb){return!!_0x2d4eeb&&(typeof _0x2d4eeb===_0x547c2e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d4eeb===_0x547c2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d4eeb[_0x547c2e([0x74,0x68,0x65,0x6e])]===_0x547c2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d4eeb[_0x547c2e([0x63,0x61,0x74,0x63,0x68])]===_0x547c2e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1ba89e(_0x1a2ae9){_0x2fe63d(_0x1a2ae9)[_0x547c2e([0x74,0x68,0x65,0x6e])](_0x5739d9=>{if(!_0x5739d9||_0x5739d9[_0x547c2e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x547c2e([0x6f,0x6b]))return _0x547c2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10e7fd(_0x1a816d(_0x44747f+_0x505a4a))!=_0x5739d9[_0x547c2e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x547c2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x547c2e([0x56,0x61,0x6c,0x69,0x64]);})[_0x547c2e([0x74,0x68,0x65,0x6e])](_0x1e8229=>(_0x26e2f1(),_0x1e8229),()=>{const _0x2dd1bc=_0x2726c9();return null==_0x2dd1bc?(_0x26e2f1(),_0x547c2e([0x56,0x61,0x6c,0x69,0x64])):_0x547c2e(_0xf69e18-_0x2dd1bc>(0x288e4f1e^_0x5b1610)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x547c2e([0x74,0x68,0x65,0x6e])](_0x1e650b)[_0x547c2e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e650b(_0x547c2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x584786=0xcb4259e^_0x5b1610;function _0x26e2f1(){const _0x30b547=_0x547c2e([0x6c,0x6c,0x63,0x74,0x2d])+_0x10e7fd(_0x1a816d(_0x1a96cd)),_0x4381fc=_0x102e53(_0x10e7fd(window[_0x547c2e([0x4d,0x61,0x74,0x68])][_0x547c2e([0x63,0x65,0x69,0x6c])](_0xf69e18/_0x584786)));window[_0x547c2e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x547c2e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30b547,_0x4381fc);}function _0x2726c9(){const _0x2771b2=_0x547c2e([0x6c,0x6c,0x63,0x74,0x2d])+_0x10e7fd(_0x1a816d(_0x1a96cd)),_0x119c61=window[_0x547c2e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x547c2e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2771b2);return _0x119c61?window[_0x547c2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x102e53(_0x119c61),0x10)*_0x584786:null;}function _0x2fe63d(_0x8fe6ba){return new window[(_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d7289,_0x1d6324)=>{_0x8fe6ba[_0x547c2e([0x74,0x68,0x65,0x6e])](_0x4d7289,_0x1d6324),window[_0x547c2e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d6324,0xc831fde^_0x5b1610);});}}_0x3e677d[_0x547c2e([0x6f,0x6e])](_0x547c2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c37b1,_0x5b3c33)=>{if(_0x5b3c33[0x0]!=_0x1a96cd)return _0x1e650b(_0x547c2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b3c33[0x1]={..._0x5b3c33[0x1],[_0x547c2e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44747f};},{[_0x547c2e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x547c2e([0x68,0x69,0x67,0x68])}),_0x3e677d[_0x547c2e([0x6f,0x6e])](_0x547c2e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x20e9fd=>{_0x3cf8c3(_0x20e9fd[_0x547c2e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4eb821=!0x0,_0x1ba89e(_0x20e9fd[_0x547c2e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x547c2e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x547c2e([0x6c,0x6f,0x77])}),_0x36d42f[_0x547c2e([0x74,0x68,0x65,0x6e])](()=>{_0x4eb821||_0x1e650b(_0x547c2e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c63a2(){return _0x3e677d[_0x547c2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x547c2e([0x76,0x69,0x65,0x77])][_0x547c2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x547c2e([0x61,0x75,0x74,0x6f]);}function _0x5e03a7(){_0x3e677d[_0x547c2e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x547c2e([0x76,0x69,0x65,0x77])][_0x547c2e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x547c2e([0x61,0x75,0x74,0x6f]);}}function _0x26822a(_0x586a73){const _0x6145f1=[new window[(_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a91ec=>setTimeout(_0x4a91ec,0xc8bf5d2^_0x5b1610)),_0x36d42f[_0x547c2e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c7984=>{let _0x1e63e4=0x0;_0x3e677d[_0x547c2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x547c2e([0x6f,0x6e])](_0x547c2e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a6c20,_0x860aea)=>{_0x860aea[0x0][_0x547c2e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e63e4++,_0x1e63e4==(0xc82cef6^_0x5b1610)&&(_0x1c7984(),_0x3a6c20[_0x547c2e([0x6f,0x66,0x66])]());});}))];return window[_0x547c2e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x547c2e([0x72,0x61,0x63,0x65])](_0x6145f1)[_0x547c2e([0x74,0x68,0x65,0x6e])](()=>_0x586a73);}async function _0x403b0d(){await _0x36d42f,_0x3e677d[_0x547c2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x547c2e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10f171,_0x3e677d[_0x547c2e([0x6d,0x6f,0x64,0x65,0x6c])][_0x547c2e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10f171,_0x3e677d[_0x547c2e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x547c2e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x522cee(_0x3f4149){const _0x377678=_0x4dff33();_0x3e677d[_0x377678]=_0x547c2e([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f4149,_0x3f4149!=_0x547c2e([0x56,0x61,0x6c,0x69,0x64])&&_0x403b0d();}function _0x4dff33(){const _0xb723b8=window[_0x547c2e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x547c2e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x547c2e([0x6e,0x6f,0x77])]())[_0x547c2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x547c2e([0x2e]),'');let _0x13025d=_0x547c2e([0x49]);for(let _0x1d148d=0x0;_0x1d148d<_0xb723b8[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d148d+=0x2){let _0x251164=window[_0x547c2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb723b8[_0x547c2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d148d,_0x1d148d+0x2));_0x251164>=_0x383c28[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x251164-=_0x383c28[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13025d+=_0x383c28[_0x251164];}return _0x13025d;}function _0x39f0bc(){const _0x1c2115=_0x59e7a9[_0x547c2e([0x73,0x70,0x6c,0x69,0x74])](_0x547c2e([0x2e]));if(0x3!=_0x1c2115[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ce2d6(_0x1c2115[0x1]);function _0x5ce2d6(_0x28ad8b){const _0x2ed111=_0x2ccc28(_0x28ad8b);return _0x2ed111&&_0x595d99()?_0x2ed111:null;function _0x595d99(){const _0x46233b=_0x2ed111[_0x547c2e([0x6a,0x74,0x69])],_0x1d3491=window[_0x547c2e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46233b[_0x547c2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46233b[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16eebb={..._0x2ed111,[_0x547c2e([0x6a,0x74,0x69])]:_0x46233b[_0x547c2e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46233b[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16eebb[_0x547c2e([0x76,0x63])],_0x1a816d(_0x16eebb)==_0x1d3491;}}}async function _0x2e7514(){let _0x515ab0=!0x0;try{const _0x377869=_0x59e7a9[_0x547c2e([0x73,0x70,0x6c,0x69,0x74])](_0x547c2e([0x2e])),[_0x50ea60,_0x30e29e,_0x50d6cf]=_0x377869;return _0x48c991(_0x50ea60),await _0x1579a9(_0x50ea60,_0x30e29e,_0x50d6cf),_0x515ab0;}catch{return!0x1;}function _0x48c991(_0x5327b9){const _0x159d68=_0x2ccc28(_0x5327b9);_0x159d68&&_0x159d68[_0x547c2e([0x61,0x6c,0x67])]==_0x547c2e([0x45,0x53,0x32,0x35,0x36])||(_0x515ab0=!0x1);}async function _0x1579a9(_0x2c72bb,_0x1aae01,_0x2117b1){const _0x189273=window[_0x547c2e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x547c2e([0x66,0x72,0x6f,0x6d])](_0x36ef9e(_0x2117b1),_0x4a41c8=>_0x4a41c8[_0x547c2e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x41d7fe=new window[(_0x547c2e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x547c2e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c72bb+_0x547c2e([0x2e])+_0x1aae01),_0x464e2b=window[_0x547c2e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x547c2e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x464e2b)return;const _0x3bae74=await _0x464e2b[_0x547c2e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x547c2e([0x6a,0x77,0x6b]),_0x368123,{[_0x547c2e([0x6e,0x61,0x6d,0x65])]:_0x547c2e([0x45,0x43,0x44,0x53,0x41]),[_0x547c2e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x547c2e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x547c2e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x464e2b[_0x547c2e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x547c2e([0x6e,0x61,0x6d,0x65])]:_0x547c2e([0x45,0x43,0x44,0x53,0x41]),[_0x547c2e([0x68,0x61,0x73,0x68])]:{[_0x547c2e([0x6e,0x61,0x6d,0x65])]:_0x547c2e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3bae74,_0x189273,_0x41d7fe)||(_0x515ab0=!0x1);}}function _0x2ccc28(_0x51834f){return _0x51834f[_0x547c2e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x547c2e([0x65,0x79]))?JSON[_0x547c2e([0x70,0x61,0x72,0x73,0x65])](_0x36ef9e(_0x51834f)):null;}function _0x36ef9e(_0x448de0){return window[_0x547c2e([0x61,0x74,0x6f,0x62])](_0x448de0[_0x547c2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x547c2e([0x2b]))[_0x547c2e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x547c2e([0x2f])));}function _0x1a816d(_0x72a353){let _0x3d177a=0x1505;function _0x2fe4ea(_0x3db98b){for(let _0x22af12=0x0;_0x22af12<_0x3db98b[_0x547c2e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22af12++){const _0x2f8777=_0x3db98b[_0x547c2e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x22af12);_0x3d177a=(_0x3d177a<<0x5)+_0x3d177a+_0x2f8777,_0x3d177a&=_0x3d177a;}}function _0x5d9307(_0x25d693){Array[_0x547c2e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25d693)?_0x25d693[_0x547c2e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d9307):_0x25d693&&typeof _0x25d693==_0x547c2e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x547c2e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25d693)[_0x547c2e([0x73,0x6f,0x72,0x74])]()[_0x547c2e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11282b,_0x4edb04])=>{_0x2fe4ea(_0x11282b),_0x5d9307(_0x4edb04);}):_0x2fe4ea(window[_0x547c2e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25d693));}return _0x5d9307(_0x72a353),_0x3d177a>>>0x0;}function _0x10e7fd(_0x1402e8){return _0x1402e8[_0x547c2e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x547c2e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x547c2e([0x30]));}function _0x102e53(_0x107e80){return _0x107e80[_0x547c2e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x547c2e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x547c2e([0x6a,0x6f,0x69,0x6e])]('');}function _0x10f171(){}function _0x547c2e(_0x109e39){return _0x109e39['map'](_0x332ae3=>String['fromCharCode'](_0x332ae3))['join']('');}_0x522cee(await _0xec235());}(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x5f75f1=this['editor'],_0x32f8a9=_0x5f75f1['editing']['view'],_0x15e222=this['_getAttachedDomRoot']();if(!_0x15e222||0x0===_0x15e222['childElementCount'])return void _0x5f75f1['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x8eb91a,pageHeight:_0x17103e}=_0x5f75f1['config']['get']('pagination'),{top:_0x322275,left:_0x2cacdb,bottom:_0x39c87c,right:_0x2f4022}=this['_configuredPaddings'];this['_pagesContainer']=new _0x1a9d6c(_0x5f75f1['locale']);const _0x383c0d=this['_pagesContainer'];_0x383c0d['set']('class',''),_0x383c0d['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x8eb91a,'width':_0x8eb91a,'height':'calc(\x20'+_0x17103e+'\x20-\x20'+_0x322275+'\x20-\x20'+_0x39c87c+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x2f4022+'\x200\x20'+_0x2cacdb,'columnGap':'calc('+_0x2cacdb+'\x20+\x20'+_0x2f4022+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x383c0d['bindTemplate']['to']('class')}}),_0x383c0d['render'](),_0x15e222['parentNode']['insertBefore'](_0x383c0d['element'],_0x15e222['nextSibling']),this['listenTo'](_0x32f8a9,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x3d954a of this['editor']['editing']['view']['domRoots']['values']())if(_0x3d954a['ownerDocument']['body']['contains'](_0x3d954a))return _0x3d954a;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x317c48=this['editor']['editing']['view'],_0x37702b=this['_pagesContainer'],_0xf9c785=this['_getAttachedDomRoot']();if(!_0xf9c785)return Promise['resolve']();for(_0x37702b['class']=['ck-reset','ck-pagination-view',..._0xf9c785['classList']]['join']('\x20');_0x37702b['element']['firstChild'];)_0x37702b['element']['firstChild']['remove']();const _0x113bc7=Array['from'](_0x317c48['domRoots']);_0x113bc7['sort'](([,_0x1ce7d9],[,_0x50f429])=>_0x1ce7d9['compareDocumentPosition'](_0x50f429)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x489871,_0x198e17]of _0x113bc7){const _0x197d9=_0x198e17['cloneNode'](!0x0);'attributeStyleMap'in _0x197d9&&_0x197d9['attributeStyleMap']['clear'](),_0x197d9['dataset']['rootName']=_0x489871,_0x197d9['className']='ck-content\x20ck-pagination_enabled',_0x197d9['removeAttribute']('id'),_0x197d9['tabIndex']=-0x1,_0x37702b['element']['append'](_0x197d9);}const _0x483136=Array['from'](_0x37702b['element']['querySelectorAll']('img'));return function(_0x4c2697){return Promise['all'](_0x4c2697['map'](_0x4ce965=>Promise['race']([b(_0x4ce965),k(0x3e8)])));}(_0x483136)['then'](()=>{for(const _0x3c2486 of _0x483136['filter'](_0x523562=>!_0x523562['closest']('table')))if(_0x3c2486['offsetParent']){const _0x57af55=_0x26f0e7['window']['getComputedStyle'](_0x3c2486),_0x6d076e=_0x26f0e7['document']['createElement']('span');for(const _0xac55a2 of _0x57af55)_0x6d076e['style']['setProperty'](_0xac55a2,_0x57af55[_0xac55a2]);_0x6d076e['style']['backgroundImage']='url(\x20'+_0x3c2486['src']+'\x20)',_0x6d076e['style']['breakInside']='avoid','PICTURE'==_0x3c2486['parentElement']?.['tagName']?_0x3c2486['parentElement']['replaceWith'](_0x6d076e):_0x3c2486['replaceWith'](_0x6d076e);}return new Promise(_0x5b4de0=>_0x26f0e7['window']['requestAnimationFrame'](()=>_0x5b4de0()));})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x8d3d19=this['_pagesContainer']['element'];if(!_0x8d3d19['ownerDocument']['body']['contains'](_0x8d3d19))return;const _0x36db83=new _0xa2fe14(_0x8d3d19)['excludeScrollbarsAndBorders'](),_0x2a30fe=Math['floor'](_0x36db83['width']+0x64),_0x5253bb=L(_0x8d3d19,Math['floor'](_0x36db83['left']-_0x8d3d19['scrollLeft']),_0x2a30fe,_0x36db83['height'])['map'](_0x2d058b=>this['_mapPageStarterInfoToPageBreakInfo'](_0x2d058b))['filter'](_0x4a4d5c=>!0x1!==_0x4a4d5c);_0x5253bb['every'](_0x487956=>!!_0x487956)&&(this['pageBreaks']=_0x5253bb);}['_mapPageStarterInfoToPageBreakInfo'](_0x32f770){const _0xd2679e=this['editor']['editing']['view'],_0x4ff877=this['editor']['editing']['mapper'],_0x43ecd3=_0xd2679e['domConverter'],_0x60dd16=_0x32f770['path']['shift'](),_0x421382=this['_pagesContainer']['element']['childNodes'][_0x60dd16]['dataset']['rootName'],_0x3c0607=_0xd2679e['getDomRoot'](_0x421382);if(!_0x3c0607)return null;const _0x3803bf=function(_0x56a6f1,_0x8ccbfe){let _0x4df7c1=_0x56a6f1;for(const _0x12d04c of _0x8ccbfe['path']){if(!_0x4df7c1)return null;_0x4df7c1=_0x4df7c1['childNodes'][_0x12d04c];}return _0x4df7c1;}(_0x3c0607,_0x32f770);if(!_0x3803bf)return null;const _0x3721ed=_0x43ecd3['domPositionToView'](_0x3803bf,_0x32f770['textOffset']||0x0);return _0x3721ed?'manual'==_0x32f770['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x3721ed,_0x3803bf):'text'==_0x32f770['type']&&_0x4ff877['toModelPosition'](_0x3721ed)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x3721ed,_0x3803bf,_0x32f770['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x3721ed,_0x3803bf,_0x32f770['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x10784a,_0x1870b7){const _0x16cb96=this['editor']['model'],_0x1ba86e=this['editor']['editing']['mapper']['toModelElement'](_0x10784a['parent']),_0x11c931=_0x16cb96['createRangeOn'](_0x1ba86e);return new PageBreakInfo({'type':'manual','modelRange':_0x11c931,'domNode':_0x1870b7,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x257c71,_0x37db9e,_0x4c55ab){const _0x407b46=this['editor']['model'],_0x242ee1=this['editor']['editing']['mapper'],_0x5c20b1=this['editor']['editing']['view']['domConverter'];if(_0x4c55ab>=_0x37db9e['length'])return null;const _0x149cc3=_0x242ee1['toModelPosition'](_0x257c71),_0x77669b=_0x407b46['createRange'](_0x149cc3),_0x349a70=_0x242ee1['findMappedViewAncestor'](_0x257c71),_0x4ff8fa=_0x5c20b1['mapViewToDom'](_0x349a70);return new PageBreakInfo({'type':'text','modelRange':_0x77669b,'domNode':_0x37db9e,'offset':w(_0x37db9e,_0x4c55ab,_0x4ff8fa)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0xb9fd91,_0x4596b6,_0x3d88b0){const _0x20bd64=this['editor']['model'],_0x428971=this['editor']['editing'],_0x2acdbb=_0x428971['mapper'],_0x4207dc=_0x428971['view']['domConverter'],_0x64e294=_0x2acdbb['findMappedViewAncestor'](_0xb9fd91),_0x55206f=_0x2acdbb['toModelElement'](_0x64e294);if(!_0x55206f||_0x55206f['is']('element','$root'))return!0x1;const _0x31e203=function(_0x53bb4d){const _0x2b88fe=_0x53bb4d['parent'],_0x180d7e=_0x2b88fe['root']['document']['model'],_0x35e822=_0x2b88fe['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x1fa03e=null;for(const _0x5f4471 of _0x35e822){if(_0x5f4471['is']('rootElement'))return _0x1fa03e;if(!_0x180d7e['createPositionBefore'](_0x5f4471)['isTouching'](_0x53bb4d))return _0x1fa03e;_0x1fa03e=_0x5f4471;}}(_0x20bd64['createPositionBefore'](_0x55206f)),_0x196077=_0x31e203||_0x55206f;let _0x236356=_0x2acdbb['toViewElement'](_0x196077),_0x2c112a=_0x20bd64['createRangeOn'](_0x196077);const _0x271e6f=_0x20bd64['createPositionBefore'](_0x196077)['nodeBefore'];if(_0x271e6f&&_0x271e6f['is']('element','imageBlock')){const _0x1a035e=_0x2acdbb['toViewElement'](_0x271e6f),_0x94b0c7=_0x4207dc['mapViewToDom'](_0x1a035e),_0x234c1e=_0x26f0e7['window']['getComputedStyle'](_0x94b0c7)['float'];'left'!=_0x234c1e&&'right'!=_0x234c1e||(_0x2c112a=_0x20bd64['createRangeOn'](_0x271e6f));}for(;_0x236356['parent']!==_0x236356['root']&&0x0===_0x236356['index'];)_0x236356=_0x236356['parent'];const _0x745384=new _0xa2fe14(S(_0x4596b6)?_0x4596b6:y(_0x4596b6)),_0x49737d=_0x3d88b0?_0x745384['height']-_0x3d88b0:0x0,_0x114bb1=_0x4207dc['mapViewToDom'](_0x236356),_0x276b6e=new _0xa2fe14(_0x114bb1);return new PageBreakInfo({'type':'element','modelRange':_0x2c112a,'domNode':_0x114bb1,'offset':Math['round'](_0x49737d)||_0x64e294!=P(_0xb9fd91)?_0x49737d+_0x745384['top']-_0x276b6e['top']:0x0});}get['_configuredPaddings'](){const _0x5a9943=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x5a9943);}static['_findPageStarterInfos'](_0x14638b,_0x571777,_0x24fea5,_0x4e246f,_0x1cb7d6){return L(_0x14638b,_0x571777,_0x24fea5,_0x4e246f,_0x1cb7d6);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0xb728f1,modelRange:_0x378f2a,domNode:_0x3afd87,offset:_0x4afa05}){this['type']=_0xb728f1,this['modelRange']=_0x378f2a,this['_domNode']=_0x3afd87,this['_offset']=_0x4afa05;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x3beba9=new _0xa2fe14(S(this['_domNode'])?this['_domNode']:y(this['_domNode']));return'manual'==this['type']?_0x3beba9['top']+_0x3beba9['height']/0x2:_0x3beba9['top']+this['_offset'];}}function w(_0x10f6dc,_0x5df360,_0x3e693f){const _0x293271=y(_0x10f6dc),_0x19da19=function(_0x3b3532){const _0x8046f3=_0x26f0e7['document']['createRange']();return _0x8046f3['selectNodeContents'](_0x3b3532),_0x8046f3;}(_0x3e693f);let _0x4f173f;_0x4f173f=0x0==_0x5df360?x(_0x19da19['startContainer'],_0x19da19['startOffset'],_0x10f6dc['parentNode'],Array['from'](_0x10f6dc['parentNode']['childNodes'])['indexOf'](_0x10f6dc)):x(_0x19da19['startContainer'],_0x19da19['startOffset'],_0x10f6dc,_0x5df360);const _0x2f8d6b=x(_0x10f6dc,_0x5df360,_0x19da19['endContainer'],_0x19da19['endOffset']),_0x254932=new _0xa2fe14(_0x4f173f)['bottom'];return(new _0xa2fe14(_0x2f8d6b)['top']+_0x254932)/0x2-new _0xa2fe14(_0x293271)['top'];}function P(_0x51184b){let _0x2aea49=_0x51184b['parent'];for(;_0x2aea49['is']('$text')||_0x2aea49['is']('attributeElement');)_0x2aea49=_0x2aea49['parent'];return _0x2aea49;}function b(_0x1dafad){return _0x1dafad['hasAttribute']('width')&&_0x1dafad['hasAttribute']('height')?Promise['resolve']():new Promise(_0x32510f=>{function _0x1720db(){_0x1dafad['removeEventListener']('load',_0x1720db),_0x1dafad['removeEventListener']('error',_0x1720db),_0x32510f();}_0x1dafad['complete']?_0x32510f():(_0x1dafad['addEventListener']('load',_0x1720db),_0x1dafad['addEventListener']('error',_0x1720db));});}function k(_0xaad5ed){return new Promise(_0x2e5d5d=>setTimeout(_0x2e5d5d,_0xaad5ed));}function y(_0x2889e7){const _0x4419ca=_0x26f0e7['document']['createRange']();return _0x4419ca['selectNode'](_0x2889e7),_0x4419ca;}function v(_0x553ca4,_0x1eef83,_0x3e54d7){const _0x340e8f=_0x26f0e7['document']['createRange']();return _0x340e8f['setStart'](_0x553ca4,_0x1eef83),_0x340e8f['setEnd'](_0x553ca4,_0x3e54d7),_0x340e8f;}function x(_0x307eb4,_0x263ee0,_0x106b12,_0x432ce0){const _0x136722=_0x26f0e7['document']['createRange']();return _0x136722['setStart'](_0x307eb4,_0x263ee0),_0x136722['setEnd'](_0x106b12,_0x432ce0),_0x136722;}function L(_0x348a06,_0x1e23f4,_0x19b6e9,_0x571afc,_0x3089f7){const _0x579c58=[];for(const [_0x5d7e92,_0x16858a]of _0x348a06['childNodes']['entries']()){let _0x3aacc7=[];S(_0x16858a)&&_0x16858a['offsetParent']&&['static','relative']['includes'](_0x26f0e7['window']['getComputedStyle'](_0x16858a)['position'])?_0x3aacc7=N(_0x16858a,_0x5d7e92,_0x1e23f4,_0x19b6e9,_0x571afc,_0x3089f7):I(_0x16858a)&&(_0x3aacc7=_(_0x16858a,_0x5d7e92,_0x1e23f4,_0x19b6e9,_0x3089f7)),_0x3aacc7['length']&&(_0x579c58['push'](..._0x3aacc7),_0x1e23f4+=_0x3aacc7['length']*_0x19b6e9,_0x3089f7=!0x1);}return _0x579c58;}function N(_0x85e38d,_0x38abc3,_0x36aded,_0x36d97a,_0x310b01,_0x312f43){const _0x47668c=[];var _0x3e23f2;if((_0x3e23f2=_0x85e38d['previousSibling'])&&S(_0x3e23f2)&&Boolean(_0x3e23f2['classList']['contains']('page-break')||_0x3e23f2['closest']('.page-break'))&&(_0x47668c['push']({'type':'manual','offset':0x0,'path':[_0x38abc3-0x1]}),_0x312f43=!0x0),'table-row'==_0x26f0e7['window']['getComputedStyle'](_0x85e38d)['display']){let _0x715523=0x0,_0x598fb6=!0x1;for(const _0x2f4aec of _0x85e38d['getClientRects']())_0x715523+=_0x2f4aec['height'],_0x2f4aec['left']>=_0x36aded&&(_0x598fb6=!0x0);if(_0x715523<_0x310b01&&_0x598fb6)return _0x312f43||_0x47668c['push']({'type':'element','offset':0x0,'path':[_0x38abc3]}),_0x47668c;}const _0x462b5e=_0x85e38d['closest']('figure.image');if(_0x462b5e&&function(_0x5db4ab){let _0x2955c3=!0x1;const _0x27886c=_0x5db4ab['parentElement'],_0x2336c7=_0x27886c['dataset']['rootName'],_0x16a5d6=_0x5db4ab['nextElementSibling'],_0x4ae4cb=_0x5db4ab['previousElementSibling'],_0x5ca840=_0x16a5d6&&_0x26f0e7['window']['getComputedStyle'](_0x16a5d6)['float'],_0x4bbabd=_0x16a5d6&&'ck-fake-selection-container'===_0x16a5d6['className'];!_0x2336c7||_0x16a5d6||_0x4ae4cb||(_0x2955c3=!0x0),_0x2336c7&&!_0x4ae4cb&&_0x4bbabd&&(_0x2955c3=!0x0),_0x2336c7&&!_0x4ae4cb&&'none'!==_0x5ca840&&(_0x2955c3=!0x0);if(_0x2955c3)return!0x1;return!0x0;}(_0x462b5e)){const _0x2df67d=_0x26f0e7['window']['getComputedStyle'](_0x462b5e)['float'];if('left'==_0x2df67d||'right'==_0x2df67d)return _0x47668c;}const _0x29fdf8=L(_0x85e38d,_0x36aded,_0x36d97a,_0x310b01,_0x312f43);if(_0x29fdf8['length']){for(const _0x1742aa of _0x29fdf8)_0x47668c['push']({'type':_0x1742aa['type'],'offset':_0x1742aa['offset'],'textOffset':_0x1742aa['textOffset'],'path':[_0x38abc3,..._0x1742aa['path']]}),_0x36aded+=_0x36d97a,_0x312f43=!0x1;return _0x47668c;}return _0x47668c['push'](...function(_0x324dfc,_0x416863,_0xafb3e9,_0x363234,_0x4c0cf2){const _0x4306de=[];if('table-cell'==_0x26f0e7['window']['getComputedStyle'](_0x324dfc)['display'])return[];const _0x57cd41=[];for(const _0x31bb30 of _0x324dfc['getClientRects']())if(_0x31bb30['left']>=_0xafb3e9){for(const _0x4f7bda of _0x57cd41)_0x4f7bda['height']+=_0x31bb30['height'];_0x57cd41['push']({'height':_0x31bb30['height']}),_0xafb3e9+=_0x363234;}for(const _0x1a9cc8 of _0x57cd41)_0x4c0cf2||_0x4306de['push']({'type':'element','offset':_0x1a9cc8['height'],'textOffset':0x0,'path':[_0x416863]}),_0x4c0cf2=!0x1;return _0x4306de;}(_0x85e38d,_0x38abc3,_0x36aded,_0x36d97a,_0x312f43)),_0x47668c;}function _(_0x393ef6,_0x5a18b5,_0x515dd0,_0x97d0a2,_0x6e171){const _0x32e036=y(_0x393ef6),_0x3285e3=[];let _0x2e907b=0x0;for(const _0x559f16 of _0x32e036['getClientRects']())if(_0x559f16['left']>=_0x515dd0){const _0x44da73=R(_0x393ef6,_0x2e907b,_0x515dd0,_0x97d0a2);_0x6e171||_0x3285e3['push']({'type':'text','path':[_0x5a18b5],'textOffset':_0x44da73}),_0x2e907b=_0x44da73,_0x515dd0+=_0x97d0a2,_0x6e171=!0x1;}return _0x3285e3;}function R(_0xb93bae,_0xcd89ca,_0x4f67fc,_0x8c26c2){let _0x2843f3=_0xcd89ca,_0x2498ea=_0xb93bae['length'];for(;_0x2498ea-_0x2843f3>0x1;){const _0x38d753=Math['ceil']((_0x2843f3+_0x2498ea)/0x2);E(v(_0xb93bae,_0x2843f3,_0x38d753),_0x4f67fc,_0x8c26c2)?_0x2498ea=_0x38d753:_0x2843f3=_0x38d753;}return _0x2843f3;}function E(_0x258602,_0x344d70,_0x34f89a){for(const _0x5dbe38 of _0x258602['getClientRects']())if(_0x5dbe38['left']>=_0x344d70&&_0x5dbe38['left']<_0x344d70+_0x34f89a)return!0x0;return!0x1;}function S(_0x42bc58){return _0x42bc58['nodeType']==Node['ELEMENT_NODE'];}function I(_0x49ea21){return _0x49ea21['nodeType']==Node['TEXT_NODE'];}const B=/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1a366b('px');class LineView extends _0x1a9d6c{constructor(){super();const _0x167e8d=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x167e8d['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x167e8d['if']('isVisible','ck-hidden',_0x2bd4ac=>!_0x2bd4ac)],'style':{'left':_0x167e8d['to']('left',_0x19f4c9=>B(_0x19f4c9)),'top':_0x167e8d['to']('top',_0x1675c1=>B(_0x1675c1)),'width':_0x167e8d['to']('width',_0x4043c1=>B(_0x4043c1))}}});}}class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x4edc37){this['_viewCollection']=_0x4edc37['ui']['view']['body'];}['destroy'](){for(const _0x1ef20e of this['_hiddenLines'])_0x1ef20e['destroy']();}['cleanLines'](){for(const _0x4218ce of this['_visibleLines'])_0x4218ce['isVisible']=!0x1,this['_hiddenLines']['add'](_0x4218ce);this['_visibleLines']['clear']();}['showLine'](_0x5b79b7,_0x539a37,_0x2fa000,_0x4bb605){let _0xfdcdc5;this['_hiddenLines']['size']?(_0xfdcdc5=_0x5b75dd(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0xfdcdc5)):_0xfdcdc5=new LineView(),_0xfdcdc5['set']({'pageNumber':_0x4bb605,'left':_0x5b79b7,'top':_0x539a37,'width':_0x2fa000}),_0xfdcdc5['isVisible']=!0x0,this['_viewCollection']['has'](_0xfdcdc5)||this['_viewCollection']['add'](_0xfdcdc5),this['_visibleLines']['add'](_0xfdcdc5);}['setViewCollection'](_0x5b8f74){for(const _0x459ae2 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x459ae2)&&this['_viewCollection']['remove'](_0x459ae2);this['_viewCollection']=_0x5b8f74;}}const K='ck-pagination_enabled';class PaginationRenderer extends _0x2780bf{['linesRepository'];['_scrollableEditingRootDomAncestor']=null;['_resizeObserver']=null;['_paginationLookupPlugin'];static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['set']({'pageNumber':0x1}),this['linesRepository']=new LinesRepository(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](K),this['on']('change:isEnabled',(_0x8236e0,_0xf31987,_0x1ff00c)=>{_0x1ff00c||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](K,_0x1ff00c);});}['destroy'](){this['_toggleEditingRootsClass'](K,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0x769822){if(!this['isEnabled'])return;const _0x29a3f7=_0x769822>0x1?this['_getPageBreakLineOffset'](_0x769822-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x29a3f7-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x21a4ab['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x4845a0=this['editor'],_0x241736=this['_getAttachedDomRoot']();_0x241736?(this['_scrollableEditingRootDomAncestor']&&_0x4845a0['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=function(_0x1875cb){let _0x5dfb0a=_0x1875cb;do{_0x5dfb0a=_0x5dfb0a['parentElement'];const _0x82b830=_0x26f0e7['window']['getComputedStyle'](_0x5dfb0a)['overflowY'];if('auto'==_0x82b830||'scroll'==_0x82b830)break;}while('BODY'!=_0x5dfb0a['tagName']);return _0x5dfb0a;}(_0x241736),_0x4845a0['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x2fd01c(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x4845a0['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x38a8d4=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x38a8d4['ui']['view']['listenTo'](_0x26f0e7['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x38a8d4['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x5a6a42 of this['editor']['editing']['view']['domRoots']['values']())if(_0x5a6a42['ownerDocument']['body']['contains'](_0x5a6a42))return _0x5a6a42;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x54a072=this['_getAttachedDomRoot'](),_0x215f17=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x54a072||0x1==_0x215f17['length'])return void(this['pageNumber']=0x1);const _0x4b9484=new _0xa2fe14(_0x54a072)['excludeScrollbarsAndBorders'](),_0x212bbc=new _0xa2fe14(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x240300=_0x212bbc['top']+_0x212bbc['height']/0x3;let _0x3db38f=!0x1;const _0x3e096a=[];for(let _0x43f605=0x1;_0x43f605<_0x215f17['length'];_0x43f605++){const _0x18814d=this['_getPageBreakLineOffset'](_0x43f605,_0x212bbc);if(!_0x18814d)continue;const _0x2b8ba5=_0x212bbc['top']+_0x18814d-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x3e096a['push']({'pageOffsetTop':_0x2b8ba5,'domRootRect':_0x4b9484,'domScrollableRect':_0x212bbc,'pageNumber':_0x43f605}),_0x2b8ba5>_0x240300&&!_0x3db38f&&(this['pageNumber']=_0x43f605,_0x3db38f=!0x0);}this['_renderPageBreakLines'](_0x3e096a),_0x3db38f||(this['pageNumber']=_0x215f17['length']);}['_renderPageBreakLines'](_0x200412){const {scrollX:_0x3ed5d8,scrollY:_0x5d204b}=_0x26f0e7['window'];if(_0x200412['length']){for(const {domScrollableRect:_0x5057f1,pageOffsetTop:_0x4664b3,domRootRect:_0x50ede0,pageNumber:_0x33a84f}of _0x200412)_0x5057f1['top']<_0x4664b3&&_0x4664b3<_0x5057f1['bottom']&&this['linesRepository']['showLine'](_0x50ede0['left']+_0x3ed5d8,_0x4664b3+_0x5d204b,_0x50ede0['width'],_0x33a84f+0x1);}}['_getPageBreakLineOffset'](_0x3e1f55,_0x299787=null){const _0x53cf02=this['_paginationLookupPlugin']['pageBreaks'][_0x3e1f55]['offset'];return _0x53cf02?(_0x299787||(_0x299787=new _0xa2fe14(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x53cf02-_0x299787['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x316cb9,_0x49560f=!0x0){const _0x4a94ea=this['editor']['editing']['view'];_0x4a94ea['change'](_0x255061=>{for(const _0x5ef1cc of _0x4a94ea['document']['roots'])_0x49560f?_0x255061['addClass'](_0x316cb9,_0x5ef1cc):_0x255061['removeClass'](_0x316cb9,_0x5ef1cc);});}}function O(_0x1b120d,_0x15b02a,..._0x50ace1){const t=_0x1b120d['t'];switch(_0x15b02a){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x50ace1);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x15b02a;}}class PaginationEditing extends _0x2780bf{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x48c919=this['editor']['plugins']['get']('Pagination'),_0x43edfa=this['editor']['plugins']['get'](PaginationLookup),_0x4c97fe=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x48c919),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x4c97fe),this['listenTo'](_0x43edfa,'change:pageBreaks',(_0x5b37de,_0x9f4326,_0x2c9e02,_0x5b1110)=>{this['totalPages']=_0x2c9e02['length'],this['_updatePageBreakMarkers'](_0x2c9e02,_0x5b1110);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x49cd1b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x298bb1;for(const _0xc3ffd2 in _0x49cd1b){const _0x580ef3=_0xc3ffd2,_0x166193=_0x49cd1b[_0x580ef3];if('paginationLicenseKeyValid'==_0x166193||'paginationLicenseKeyInvalid'==_0x166193||'paginationLicenseKeyExpired'==_0x166193||'paginationLicenseKeyDomainLimit'==_0x166193||'paginationLicenseKeyNotAllowed'==_0x166193||'paginationLicenseKeyEvaluationLimit'==_0x166193||'paginationLicenseKeyUsageLimit'==_0x166193){delete _0x49cd1b[_0x580ef3],_0x298bb1=_0x166193,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x298bb1&&_0x49cd1b['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x298bb1&&_0x49cd1b['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x298bb1&&_0x49cd1b['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x298bb1&&_0x49cd1b['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x298bb1&&_0x49cd1b['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x298bb1&&_0x49cd1b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x3679e7){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x3679e7));}['moveSelectionToPage'](_0x2e95d6){if(!this['isEnabled'])return;const _0x27aa50=this['editor'],_0x3b8095=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x2e95d6-0x1];_0x3b8095&&_0x27aa50['model']['change'](_0x465d72=>{switch(_0x3b8095['type']){case'manual':{const _0x414599=_0x27aa50['model']['schema']['getNearestSelectionRange'](_0x3b8095['modelRange']['end'],'forward');_0x465d72['setSelection'](_0x414599);break;}case'element':{const _0x39695b=_0x27aa50['model']['schema']['getNearestSelectionRange'](_0x3b8095['modelRange']['start'],'forward');_0x465d72['setSelection'](_0x39695b);break;}case'text':{const _0x30c087=_0x3b8095['modelRange']['start'];if(_0x30c087['textNode']&&'\x20'===_0x30c087['textNode']['data'][_0x30c087['offset']]){const _0x2a9fc4=_0x465d72['createPositionAt'](_0x30c087['parent'],_0x30c087['offset']+0x1);_0x465d72['setSelection'](_0x2a9fc4);}else _0x465d72['setSelection'](_0x3b8095['modelRange']);}}_0x27aa50['editing']['view']['focus']();});}['goToNextPage'](){const _0x1e54af=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x1e54af),this['scrollToPage'](_0x1e54af);}['goToPreviousPage'](){const _0x529db4=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x529db4),this['scrollToPage'](_0x529db4);}['_updatePageBreakMarkers'](_0x90eb24,_0x3c1308){const _0x378f52=this['editor']['model'];this['isEnabled']&&_0x378f52['change'](_0x5e24c0=>{for(let _0x176ac8=0x1;_0x176ac8<_0x90eb24['length'];_0x176ac8++){const _0x5e61e3=_0x90eb24[_0x176ac8]['modelRange'],_0x34ebf2='pagination:'+(_0x176ac8+0x1);_0x378f52['markers']['has'](_0x34ebf2)?_0x5e24c0['updateMarker'](_0x34ebf2,{'range':_0x5e61e3}):_0x5e24c0['addMarker'](_0x34ebf2,{'range':_0x5e61e3,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x43398b=_0x90eb24['length'];_0x43398b<_0x3c1308['length'];_0x43398b++){const _0x17355d='pagination:'+(_0x43398b+0x1);_0x378f52['markers']['has'](_0x17355d)&&_0x5e24c0['removeMarker'](_0x17355d);}});}['_setUpDataDowncastConversion'](){const _0x507028='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x449f73=>{_0x449f73['on']('addMarker:'+_0x507028,(_0x34a6a7,{markerRange:_0x4b90ec,markerName:_0x21d603},_0x4966de)=>{if(!_0x4966de['options']['pagination'])return;if(!_0x4966de['consumable']['consume'](_0x4b90ec,_0x34a6a7['name']))return;const _0x229e69=_0x4b90ec['getContainedElement']();let _0x4c6486=_0x229e69?_0x4966de['mapper']['toViewElement'](_0x229e69):null;if(!_0x4c6486){const _0x553bdf=_0x4b90ec['start'];if(_0x4966de['schema']['checkChild'](_0x553bdf,'$text')){const _0x56ea79=_0x4966de['mapper']['toViewPosition'](_0x553bdf);_0x4c6486=_0x4966de['writer']['createContainerElement']('span'),_0x4c6486['getFillerOffset']=()=>null,_0x4966de['writer']['insert'](_0x56ea79,_0x4c6486);}else{const _0x5c0dda=_0x553bdf['nodeAfter'];_0x4c6486=_0x4966de['mapper']['toViewElement'](_0x5c0dda);}}for(;_0x4c6486['parent']!==_0x4c6486['root']&&0x0===_0x4c6486['index'];)_0x4c6486=_0x4c6486['parent'];const _0xc01f7a=_0x21d603['substring'](0xb);_0x4c6486['hasClass']('page-break')||(_0x4966de['writer']['setStyle']('page-break-before','always',_0x4c6486),_0x4966de['writer']['setAttribute']('data-pagination-page',_0xc01f7a,_0x4c6486),_0x4966de['mapper']['bindElementToMarker'](_0x4c6486,_0x21d603)),_0x34a6a7['stop']();});});}['_setupKeystrokes'](){const _0x2e0ded=this['editor'];_0x2e0ded['keystrokes']['set']('Shift+Pageup',(_0x5cc60f,_0x4bb8b2)=>{this['goToPreviousPage'](),_0x4bb8b2();}),_0x2e0ded['keystrokes']['set']('Shift+Pagedown',(_0xac9362,_0x10052b)=>{this['goToNextPage'](),_0x10052b();}),_0x2e0ded['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':O(_0x2e0ded['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':O(_0x2e0ded['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':O(_0x2e0ded['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x4c8319){return _0x4c8319<0x1&&(_0x4c8319=0x1),_0x4c8319>this['totalPages']&&(_0x4c8319=this['totalPages']),_0x4c8319;}}class PageNavigatorView extends _0x1a9d6c{['pageNumberView'];constructor(_0x5a959f){super(_0x5a959f);const _0x1ca7b6=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0xb2d858(_0x5a959f,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x5773ad=>O(_0x5a959f,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x5773ad)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x387c19=>!_0x387c19),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x1ca7b6['if']('isEnabled','ck-disabled',_0x59c934=>!_0x59c934)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x1ca7b6['to']('totalPages')}]}]});}['render'](){super['render']();const _0x2bfaa9=this['pageNumberView']['element'],_0x57001d=_0x18dd53=>{this['pageNumberView']['element']['value']=String(_0x18dd53);};_0x57001d(this['pageNumber']),this['on']('change:pageNumber',(_0x4d1a38,_0x213a0c,_0x40928e)=>{_0x57001d(_0x40928e);}),this['listenTo'](_0x2bfaa9,'keydown',(_0x110437,_0x5a71e7)=>{if('ArrowUp'===_0x5a71e7['key']||'ArrowDown'===_0x5a71e7['key'])return void _0x5a71e7['stopPropagation']();if(_0x5a71e7['keyCode']!==_0x4d6c77['enter'])return;_0x5a71e7['preventDefault']();const _0x365714=_0x2bfaa9['valueAsNumber'];Number['isNaN'](_0x365714)?_0x2bfaa9['value']=String(this['pageNumber']):(_0x2bfaa9['checkValidity']()?this['pageNumber']=_0x365714:_0x365714>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x2bfaa9['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x2bfaa9['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x2bfaa9,'blur',()=>{_0x2bfaa9['value']=String(this['pageNumber']);}),this['listenTo'](_0x2bfaa9,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends _0x2780bf{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x374c6c=this['editor'],_0x414f5a=_0x374c6c['plugins']['get']('PaginationEditing');_0x374c6c['ui']['componentFactory']['add']('pageNavigation',_0x531dc1=>{const _0x1e460e=new PageNavigatorView(_0x531dc1);return _0x1e460e['bind']('pageNumber')['to'](_0x414f5a),_0x1e460e['bind']('totalPages')['to'](_0x414f5a),_0x1e460e['bind']('isEnabled')['to'](_0x414f5a),_0x1e460e['on']('navigation',(_0x2ebfc7,_0x3668f4)=>{_0x414f5a['moveSelectionToPage'](_0x3668f4),_0x414f5a['scrollToPage'](_0x3668f4);}),_0x1e460e;}),_0x374c6c['ui']['componentFactory']['add']('nextPage',_0x19c0d4=>{const _0xdcd2c1=new _0x5c9cf3(_0x19c0d4);return _0xdcd2c1['isEnabled']=!0x0,_0xdcd2c1['label']=O(_0x374c6c['locale'],'Go\x20to\x20next\x20page'),_0xdcd2c1['icon']=_0x1fce8a,_0xdcd2c1['tooltip']=!0x0,_0xdcd2c1['keystroke']='Shift+PageDown',_0xdcd2c1['bind']('isEnabled')['to'](_0x414f5a),this['listenTo'](_0xdcd2c1,'execute',()=>{_0x414f5a['goToNextPage']();}),_0xdcd2c1;}),_0x374c6c['ui']['componentFactory']['add']('previousPage',_0x5d98d4=>{const _0x28025f=new _0x5c9cf3(_0x5d98d4);return _0x28025f['isEnabled']=!0x0,_0x28025f['label']=O(_0x374c6c['locale'],'Go\x20to\x20previous\x20page'),_0x28025f['icon']=_0xe5fc43,_0x28025f['tooltip']=!0x0,_0x28025f['keystroke']='Shift+PageUp',_0x28025f['bind']('isEnabled')['to'](_0x414f5a),this['listenTo'](_0x28025f,'execute',()=>{_0x414f5a['goToPreviousPage']();}),_0x28025f;});}}class Pagination extends _0x2780bf{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x1f0756){super(_0x1f0756),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0xe27852=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0xe27852),this['bind']('totalPages')['to'](_0xe27852),_0x21a4ab['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x4bb871){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x4bb871);}}export{Pagination,PaginationRenderer};
|
|
23
|
+
import{Plugin as _0x394059}from'@ckeditor/ckeditor5-core';import{ButtonView as _0x55bb95,InputNumberView as _0x16f11a,View as _0x3dce57}from'@ckeditor/ckeditor5-ui';import{Rect as _0x467f92,ResizeObserver as _0x567e47,env as _0x29cab9,findClosestScrollableAncestor as _0x1d0bdb,first as _0x2cd610,getParentElement as _0x135525,getParentNode as _0x3e7e72,getPositionedAncestor as _0x2c78b6,global as _0x39ac14,keyCodes as _0x14c526,logWarning as _0x40c8ea,toUnit as _0x289924,uid as _0xbe1af8}from'@ckeditor/ckeditor5-utils';import{debounce as _0x47215e}from'es-toolkit/compat';import{IconArrowDown as _0x274e7a,IconArrowUp as _0x2a723c}from'@ckeditor/ckeditor5-icons';var v=class extends _0x394059{_recalculatePageBreaksDebounced=_0x47215e(()=>this['_recalculatePageBreaks'](),0xc8);_pagesContainer=null;static get['pluginName'](){return'PaginationLookup';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){if(this['set']({'pageBreaks':[]}),!this['editor']['config']['get']('pagination'))return void _0x40c8ea('pagination-config-not-found',this['editor']['config']);const _0x2603e7=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x2603e7),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x357071,_0x34eaea,_0x167633)=>{_0x167633&&this['_recalculatePageBreaksDebounced']();});}afterInit(){!async function(_0x28d436){const _0x3a455a='vsmL4TPpuR53MlqSj2VXwH9oEAN8FxJtGUOdbDCZ01ihyfkBQY6acgz7rIeWKn',_0x36c620=0x79728,_0x98b0f2={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x52205d(_0x578912){const _0x23182b=new window['Promise'](_0x41cf81=>{_0x578912['once']('ready',_0x41cf81);}),_0x1e3fe9=window['Date']['now'](),_0x3bc679=_0x578912['config']['get']('licenseKey');async function _0x296b0b(){let _0x15a5f2,_0x437c1c=null,_0x4ace17=null;try{return'GPL'==_0x3bc679?'NotAllowed':(_0x15a5f2=_0x5dbac0(),_0x15a5f2?(_0x15a5f2['usageEndpoint']&&(_0x4ace17=_0x191fe7(_0x15a5f2['usageEndpoint'],_0x15a5f2['jti'])),await _0x422208()?_0x3b7a18()?_0x233dc2()?'Expired':_0x4dee62()?('evaluation'==_0x15a5f2['licenseType']&&(_0x437c1c=_0x18701c('EvaluationLimit')),await _0xf0fb25()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x233dc2(){const _0x4e8de7=['evaluation','trial']['includes'](_0x15a5f2['licenseType'])?_0x1e3fe9/0x3e8:0xe10*_0x36c620;return _0x15a5f2['exp']<_0x4e8de7;}function _0x3b7a18(){const _0x3c8a50=_0x15a5f2['features'];return!!_0x3c8a50&&(!!_0x3c8a50['includes']('*')||!!_0x3c8a50['includes']('PAG'));}function _0x4dee62(){const _0x38c352=_0x15a5f2['licensedHosts'];if(!_0x38c352||0x0==_0x38c352['length'])return!0x0;const {hostname:_0x22f344}=new URL(window['location']['href']);if(_0x38c352['includes'](_0x22f344))return!0x0;const _0xd37a50=_0x22f344['split']('.');return _0x38c352['filter'](_0x3d5a6e=>_0x3d5a6e['includes']('*'))['map'](_0x5bcbd9=>_0x5bcbd9['split']('.'))['filter'](_0x30c5a6=>_0x30c5a6['length']<=_0xd37a50['length'])['map'](_0x166303=>Array(_0xd37a50['length']-_0x166303['length'])['fill']('*'===_0x166303[0x0]?'*':'')['concat'](_0x166303))['some'](_0x217e65=>_0xd37a50['every']((_0x5f527d,_0x47daf2)=>_0x217e65[_0x47daf2]===_0x5f527d||'*'===_0x217e65[_0x47daf2]));}function _0xf0fb25(){return _0x437c1c&&_0x4ace17?new window['Promise']((_0x3772fa,_0xc94662)=>{_0x437c1c['then'](_0x3772fa,_0xc94662),_0x4ace17['then'](_0x2c3f0c=>{'Valid'!=_0x2c3f0c&&_0x3772fa(_0x2c3f0c);},_0xc94662);}):_0x437c1c||_0x4ace17||'Valid';}}function _0x191fe7(_0x10d9d2,_0x6c7ff1){return new window['Promise'](_0x26e230=>{if(_0x2c412f())return _0x26e230('Valid');_0x77af33(),_0x578912['decorate']('_sendUsageRequest');let _0x545a5d=!0x1;const _0x1cac75=_0xbe1af8();function _0x16fe3(_0x549c7f){return!!_0x549c7f&&('object'==typeof _0x549c7f||'function'==typeof _0x549c7f)&&'function'==typeof _0x549c7f['then']&&'function'==typeof _0x549c7f['catch'];}function _0x5ca7eb(_0x1b4101){_0x1e98b7(_0x1b4101)['then'](_0x36c8d4=>_0x36c8d4&&'ok'==_0x36c8d4['status']?_0x55ce31(_0x5016c4(_0x1cac75+_0x6c7ff1))!=_0x36c8d4['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x28c09a=>(_0x286559(),_0x28c09a),()=>{const _0x30b97f=_0x11f91b();return null==_0x30b97f?(_0x286559(),'Valid'):_0x1e3fe9-_0x30b97f>0x240c8400?'UsageLimit':'Valid';})['then'](_0x26e230)['catch'](()=>{_0x26e230('UsageLimit');});const _0x4ab211=0x36ee80;function _0x286559(){const _0x5a9417='llct-'+_0x55ce31(_0x5016c4(_0x10d9d2)),_0x584411=_0x54b651(_0x55ce31(window['Math']['ceil'](_0x1e3fe9/_0x4ab211)));window['localStorage']['setItem'](_0x5a9417,_0x584411);}function _0x11f91b(){const _0x5bd817='llct-'+_0x55ce31(_0x5016c4(_0x10d9d2)),_0x706681=window['localStorage']['getItem'](_0x5bd817);return _0x706681?window['parseInt'](_0x54b651(_0x706681),0x10)*_0x4ab211:null;}function _0x1e98b7(_0x255d63){return new window['Promise']((_0x4a96af,_0x1e3be4)=>{_0x255d63['then'](_0x4a96af,_0x1e3be4),window['setTimeout'](_0x1e3be4,0x1d4c0);});}}_0x578912['on']('_sendUsageRequest',(_0xd0b218,_0x5369c7)=>{if(_0x5369c7[0x0]!=_0x10d9d2)return _0x26e230('UsageLimit');_0x5369c7[0x1]={..._0x5369c7[0x1],'requestId':_0x1cac75};},{'priority':'high'}),_0x578912['on']('_sendUsageRequest',_0x3109a8=>{_0x16fe3(_0x3109a8['return'])&&(_0x545a5d=!0x0,_0x5ca7eb(_0x3109a8['return']));},{'priority':'low'}),_0x23182b['then'](()=>{_0x545a5d||_0x26e230('UsageLimit');});});function _0x2c412f(){return'auto'==_0x578912['editing']['view']['_overlayModeHint'];}function _0x77af33(){_0x578912['editing']['view']['_overlayModeHint']='auto';}}function _0x18701c(_0x4aa540){const _0x46ae39=[new window['Promise'](_0x36b2d0=>setTimeout(_0x36b2d0,0x93ecc)),_0x23182b['then'](()=>new window['Promise'](_0x3f37e8=>{let _0x4ba8ff=0x0;_0x578912['model']['on']('applyOperation',(_0x4c8fc1,_0x3fd564)=>{_0x3fd564[0x0]['isDocumentOperation']&&_0x4ba8ff++,0x5e8==_0x4ba8ff&&(_0x3f37e8(),_0x4c8fc1['off']());});}))];return window['Promise']['race'](_0x46ae39)['then'](()=>_0x4aa540);}async function _0x42f525(){await _0x23182b,_0x578912['model']['change']=_0x3f319b,_0x578912['model']['enqueueChange']=_0x3f319b,_0x578912['enableReadOnlyMode']('model');}function _0x34980f(_0x336632){const _0x4cee81=_0x57c6d6();_0x578912[_0x4cee81]='paginationLicenseKey'+_0x336632,'Valid'!=_0x336632&&_0x42f525();}function _0x57c6d6(){const _0x1f524a=window['String'](window['performance']['now']())['replace']('.','');let _0x1684b1='v';for(let _0x3bc76f=0x0;_0x3bc76f<_0x1f524a['length'];_0x3bc76f+=0x2){let _0x47c749=window['parseInt'](_0x1f524a['substring'](_0x3bc76f,_0x3bc76f+0x2));_0x47c749>=0x3e&&(_0x47c749-=0x3e),_0x1684b1+=_0x3a455a[_0x47c749];}return _0x1684b1;}function _0x5dbac0(){const _0x4dd402=_0x3bc679['split']('.');if(0x3!=_0x4dd402['length'])return null;return _0xd042c4(_0x4dd402[0x1]);function _0xd042c4(_0x521355){const _0x562a16=_0x4222fa(_0x521355);return _0x562a16&&_0x24d0cb()?_0x562a16:null;function _0x24d0cb(){const _0x1f1ba0=_0x562a16['jti'],_0x47cb59=window['parseInt'](_0x1f1ba0['substring'](_0x1f1ba0['length']-0x8),0x10),_0x5e4a3c={..._0x562a16,'jti':_0x1f1ba0['substring'](0x0,_0x1f1ba0['length']-0x8)};return delete _0x5e4a3c['vc'],_0x5016c4(_0x5e4a3c)==_0x47cb59;}}}async function _0x422208(){let _0x156b59=!0x0;try{const [_0x359cf6,_0x57ba99,_0x4fb853]=_0x3bc679['split']('.');return _0x2b6fb3(_0x359cf6),await _0x3d161c(_0x359cf6,_0x57ba99,_0x4fb853),_0x156b59;}catch{return!0x1;}function _0x2b6fb3(_0x3d8d24){const _0x3c7957=_0x4222fa(_0x3d8d24);_0x3c7957&&'ES256'==_0x3c7957['alg']||(_0x156b59=!0x1);}async function _0x3d161c(_0x1f6d86,_0x1b1a35,_0x486326){const _0x48a56a=window['Uint8Array']['from'](_0x1cc6f2(_0x486326),_0x3e5df2=>_0x3e5df2['charCodeAt'](0x0)),_0x42713d=new window['TextEncoder']()['encode'](_0x1f6d86+'.'+_0x1b1a35),_0x35eec4=window['crypto']['subtle'];if(!_0x35eec4)return;const _0x46513f=await _0x35eec4['importKey']('jwk',_0x98b0f2,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x35eec4['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x46513f,_0x48a56a,_0x42713d)||(_0x156b59=!0x1);}}function _0x4222fa(_0x1ced89){return _0x1ced89['startsWith']('ey')?JSON['parse'](_0x1cc6f2(_0x1ced89)):null;}function _0x1cc6f2(_0x1b6144){return window['atob'](_0x1b6144['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5016c4(_0x1057d6){let _0x52479d=0x1505;function _0x2b88d0(_0x16ee2d){for(let _0x262d9a=0x0;_0x262d9a<_0x16ee2d['length'];_0x262d9a++){const _0x4799aa=_0x16ee2d['charCodeAt'](_0x262d9a);_0x52479d=(_0x52479d<<0x5)+_0x52479d+_0x4799aa,_0x52479d&=_0x52479d;}}function _0xdeb525(_0x24fdf0){Array['isArray'](_0x24fdf0)?_0x24fdf0['forEach'](_0xdeb525):_0x24fdf0&&'object'==typeof _0x24fdf0?Object['entries'](_0x24fdf0)['sort']()['forEach'](([_0xb8301f,_0x408cef])=>{_0x2b88d0(_0xb8301f),_0xdeb525(_0x408cef);}):_0x2b88d0(window['String'](_0x24fdf0));}return _0xdeb525(_0x1057d6),_0x52479d>>>0x0;}function _0x55ce31(_0xc81d42){return _0xc81d42['toString'](0x10)['padStart'](0x8,'0');}function _0x54b651(_0x2fba98){return _0x2fba98['split']('')['reverse']()['join']('');}function _0x3f319b(){}_0x34980f(await _0x296b0b());}_0x52205d(_0x28d436['editor']);}(this);}destroy(){super['destroy'](),this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']&&(this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x28eb14=this['editor'],_0x15f75e=_0x28eb14['editing']['view'],_0x28db89=this['_getAttachedDomRoot']();if(!_0x28db89||!_0x28db89['hasChildNodes']())return void _0x28eb14['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x549c44,pageHeight:_0x209508}=_0x28eb14['config']['get']('pagination'),{top:_0xf1eb64,left:_0x2ec2e0,bottom:_0x1ee987,right:_0x4169d9}=this['_configuredPaddings'];this['_pagesContainer']=new _0x3dce57(_0x28eb14['locale']);const _0x5d8594=this['_pagesContainer'];_0x5d8594['set']('class',''),_0x5d8594['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x549c44,'width':_0x549c44,'height':'calc(\x20'+_0x209508+'\x20-\x20'+_0xf1eb64+'\x20-\x20'+_0x1ee987+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x4169d9+'\x200\x20'+_0x2ec2e0,'columnGap':'calc('+_0x2ec2e0+'\x20+\x20'+_0x4169d9+'\x20+\x20100px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x5d8594['bindTemplate']['to']('class')}}),_0x5d8594['render'](),_0x3e7e72(_0x28db89)['insertBefore'](_0x5d8594['element'],_0x28db89['nextSibling']),this['listenTo'](_0x15f75e,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}_getAttachedDomRoot(){for(const _0x4cde54 of this['editor']['editing']['view']['domRoots']['values']())if(_0x4cde54['isConnected'])return _0x4cde54;return null;}_recalculatePageBreaks(){if(!this['isEnabled'])return Promise['resolve']();const _0x5a50ba=this['editor']['editing']['view'],_0x30c196=this['_pagesContainer'],_0x78a720=this['_getAttachedDomRoot']();if(!_0x78a720||!_0x30c196)return Promise['resolve']();for(_0x30c196['class']=['ck-reset','ck-pagination-view',..._0x78a720['classList']]['join']('\x20');_0x30c196['element']['firstChild'];)_0x30c196['element']['firstChild']['remove']();const _0x59e71d=Array['from'](_0x5a50ba['domRoots']);_0x59e71d['sort'](([,_0x2a1c2b],[,_0x295c94])=>_0x2a1c2b['compareDocumentPosition'](_0x295c94)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x1fac1,_0x2fba36]of _0x59e71d){const _0x5d8f79=_0x2fba36['cloneNode'](!0x0);'attributeStyleMap'in _0x5d8f79&&_0x5d8f79['attributeStyleMap']['clear'](),_0x5d8f79['dataset']['rootName']=_0x1fac1,_0x5d8f79['className']='ck-content\x20ck-pagination_enabled',_0x5d8f79['removeAttribute']('id'),_0x5d8f79['tabIndex']=-0x1,_0x30c196['element']['append'](_0x5d8f79);}const _0x274271=Array['from'](_0x30c196['element']['querySelectorAll']('img'));return function(_0x397ec1){return Promise['all'](_0x397ec1['map'](_0x3a8edb=>Promise['race']([N(_0x3a8edb),_(0x3e8)])));}(_0x274271)['then'](()=>{for(const _0x371302 of _0x274271['filter'](_0x546603=>!_0x546603['closest']('table')))if(_0x371302['offsetParent']){const _0x2632a4=_0x39ac14['window']['getComputedStyle'](_0x371302),_0x4f4a3d=_0x39ac14['document']['createElement']('span');for(const _0x47ebd5 of _0x2632a4)_0x4f4a3d['style']['setProperty'](_0x47ebd5,_0x2632a4[_0x47ebd5]);_0x4f4a3d['style']['backgroundImage']='url(\x20'+_0x371302['src']+'\x20)',_0x4f4a3d['style']['breakInside']='avoid','PICTURE'==_0x371302['parentElement']?.['tagName']?_0x371302['parentElement']['replaceWith'](_0x4f4a3d):_0x371302['replaceWith'](_0x4f4a3d);}return new Promise(_0x141f65=>_0x39ac14['window']['requestAnimationFrame'](()=>_0x141f65()));})['then'](()=>{this['_updatePageBreaksData']();});}_updatePageBreaksData(){const _0x91cd79=this['_pagesContainer']['element'];if(!_0x91cd79['isConnected'])return;const _0x11aafc=new _0x467f92(_0x91cd79)['excludeScrollbarsAndBorders'](),_0x10404a=Math['floor'](_0x11aafc['width']+0x64),_0x5a5ca9=I(_0x91cd79,Math['floor'](_0x11aafc['left']-_0x91cd79['scrollLeft']),_0x10404a,_0x11aafc['height'])['map'](_0x13f4f5=>this['_mapPageStarterInfoToPageBreakInfo'](_0x13f4f5))['filter'](_0x2a0b73=>!0x1!==_0x2a0b73);_0x5a5ca9['every'](_0xafa804=>!!_0xafa804)&&(this['pageBreaks']=_0x5a5ca9);}_mapPageStarterInfoToPageBreakInfo(_0x208b4d){const _0xef7716=this['editor']['editing']['view'],_0x31865c=this['editor']['editing']['mapper'],_0x854980=_0xef7716['domConverter'],_0x39cc13=_0x208b4d['path']['shift'](),_0x2746da=this['_pagesContainer']['element']['childNodes'][_0x39cc13]['dataset']['rootName'],_0x271e2d=_0xef7716['getDomRoot'](_0x2746da);if(!_0x271e2d)return null;const _0xeba30b=function(_0x55ff98,_0x4fc3ed){let _0x355aa3=_0x55ff98;for(const _0x26ea15 of _0x4fc3ed['path']){if(!_0x355aa3)return null;_0x355aa3=_0x355aa3['childNodes'][_0x26ea15];}return _0x355aa3;}(_0x271e2d,_0x208b4d);if(!_0xeba30b)return null;const _0x1d3783=_0x854980['domPositionToView'](_0xeba30b,_0x208b4d['textOffset']||0x0);return _0x1d3783?'manual'==_0x208b4d['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x1d3783,_0xeba30b):'text'==_0x208b4d['type']&&_0x31865c['toModelPosition'](_0x1d3783)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x1d3783,_0xeba30b,_0x208b4d['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x1d3783,_0xeba30b,_0x208b4d['offset']):null;}_mapManualPageStarterInfoToPageBreakInfo(_0x21048b,_0x41ab9d){const _0x434314=this['editor']['model'],_0x49dfc7=this['editor']['editing']['mapper']['toModelElement'](_0x21048b['parent']),_0x41b2fc=_0x434314['createRangeOn'](_0x49dfc7);return new k({'type':'manual','modelRange':_0x41b2fc,'domNode':_0x41ab9d,'offset':0x0});}_mapTextPageStarterInfoToPageBreakInfo(_0x4fb094,_0x14fecc,_0x130770){const _0x4533f1=this['editor']['model'],_0x2e4d77=this['editor']['editing']['mapper'],_0x208293=this['editor']['editing']['view']['domConverter'];if(_0x130770>=_0x14fecc['length'])return null;const _0x3fabb6=_0x2e4d77['toModelPosition'](_0x4fb094),_0x3a2f93=_0x4533f1['createRange'](_0x3fabb6),_0x396af6=_0x2e4d77['findMappedViewAncestor'](_0x4fb094),_0x52d989=_0x208293['mapViewToDom'](_0x396af6);return new k({'type':'text','modelRange':_0x3a2f93,'domNode':_0x14fecc,'offset':L(_0x14fecc,_0x130770,_0x52d989)});}_mapElementPageStarterInfoToPageBreakInfo(_0x3c8df0,_0x35e2ea,_0x3cbd74){const _0x342b76=this['editor']['model'],_0x8ba276=this['editor']['editing'],_0xd8c6fa=_0x8ba276['mapper'],_0x2d33d8=_0x8ba276['view']['domConverter'],_0x31c3fc=_0xd8c6fa['findMappedViewAncestor'](_0x3c8df0),_0x16caa2=_0xd8c6fa['toModelElement'](_0x31c3fc);if(!_0x16caa2||_0x16caa2['is']('rootElement'))return!0x1;const _0x224640=function(_0x2f8d22){const _0x414a59=_0x2f8d22['parent'],_0x19e52a=_0x414a59['root']['document']['model'],_0x2c844b=_0x414a59['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x300611=null;for(const _0x820e08 of _0x2c844b){if(_0x820e08['is']('rootElement'))return _0x300611;if(!_0x19e52a['createPositionBefore'](_0x820e08)['isTouching'](_0x2f8d22))return _0x300611;_0x300611=_0x820e08;}}(_0x342b76['createPositionBefore'](_0x16caa2))||_0x16caa2;let _0x1245ca=_0xd8c6fa['toViewElement'](_0x224640),_0x4f18eb=_0x342b76['createRangeOn'](_0x224640);const _0xe0d180=_0x342b76['createPositionBefore'](_0x224640)['nodeBefore'];if(_0xe0d180&&_0xe0d180['is']('element','imageBlock')){const _0x508b4e=_0xd8c6fa['toViewElement'](_0xe0d180),_0x356398=_0x2d33d8['mapViewToDom'](_0x508b4e),_0x3345a9=_0x39ac14['window']['getComputedStyle'](_0x356398)['float'];'left'!=_0x3345a9&&'right'!=_0x3345a9||(_0x4f18eb=_0x342b76['createRangeOn'](_0xe0d180));}for(;_0x1245ca['parent']!==_0x1245ca['root']&&0x0===_0x1245ca['index'];)_0x1245ca=_0x1245ca['parent'];const _0x15feff=new _0x467f92(C(_0x35e2ea)?_0x35e2ea:E(_0x35e2ea)),_0x4b32cc=_0x3cbd74?_0x15feff['height']-_0x3cbd74:0x0,_0xe4f6a0=_0x2d33d8['mapViewToDom'](_0x1245ca),_0x271eba=new _0x467f92(_0xe4f6a0);return new k({'type':'element','modelRange':_0x4f18eb,'domNode':_0xe4f6a0,'offset':Math['round'](_0x4b32cc)||_0x31c3fc!=x(_0x3c8df0)?_0x4b32cc+_0x15feff['top']-_0x271eba['top']:0x0});}get['_configuredPaddings'](){const _0x5e0c1b=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0x5e0c1b);}static _findPageStarterInfos(_0x5e77f4,_0x398ed8,_0x4b56dd,_0x5c85fa,_0x420794){return I(_0x5e77f4,_0x398ed8,_0x4b56dd,_0x5c85fa,_0x420794);}},k=class{type;['modelRange'];['_domNode'];_offset;constructor({type:_0x90d4fc,modelRange:_0x1c56cd,domNode:_0x3e0b06,offset:_0x2d9336}){this['type']=_0x90d4fc,this['modelRange']=_0x1c56cd,this['_domNode']=_0x3e0b06,this['_offset']=_0x2d9336;}get offset(){if(!this['_domNode']['isConnected'])return 0x0;const _0x374d9a=new _0x467f92(C(this['_domNode'])?this['_domNode']:E(this['_domNode']));return'manual'==this['type']?_0x374d9a['top']+_0x374d9a['height']/0x2:_0x374d9a['top']+this['_offset'];}};function L(_0x31844e,_0x24288f,_0x42a464){const _0x2c04b4=E(_0x31844e),_0xed4ec0=function(_0x84175c){const _0x13fb6c=_0x39ac14['document']['createRange']();return _0x13fb6c['selectNodeContents'](_0x84175c),_0x13fb6c;}(_0x42a464);let _0x478d53;if(0x0==_0x24288f){const _0x31741a=_0x3e7e72(_0x31844e);_0x478d53=R(_0xed4ec0['startContainer'],_0xed4ec0['startOffset'],_0x31741a,Array['from'](_0x31741a['childNodes'])['indexOf'](_0x31844e));}else _0x478d53=R(_0xed4ec0['startContainer'],_0xed4ec0['startOffset'],_0x31844e,_0x24288f);const _0x41a63b=R(_0x31844e,_0x24288f,_0xed4ec0['endContainer'],_0xed4ec0['endOffset']),_0x4a1c9a=new _0x467f92(_0x478d53)['bottom'];return(new _0x467f92(_0x41a63b)['top']+_0x4a1c9a)/0x2-new _0x467f92(_0x2c04b4)['top'];}function x(_0x25671e){let _0x478549=_0x25671e['parent'];for(;_0x478549['is']('$text')||_0x478549['is']('attributeElement');)_0x478549=_0x478549['parent'];return _0x478549;}function N(_0x3a557f){return _0x3a557f['hasAttribute']('width')&&_0x3a557f['hasAttribute']('height')?Promise['resolve']():new Promise(_0x36743f=>{function _0x35f89f(){_0x3a557f['removeEventListener']('load',_0x35f89f),_0x3a557f['removeEventListener']('error',_0x35f89f),_0x36743f();}_0x3a557f['complete']?_0x36743f():(_0x3a557f['addEventListener']('load',_0x35f89f),_0x3a557f['addEventListener']('error',_0x35f89f));});}function _(_0xdfeac9){return new Promise(_0x354e33=>setTimeout(_0x354e33,_0xdfeac9));}function E(_0x5c477d){const _0x2d4e87=_0x39ac14['document']['createRange']();return _0x2d4e87['selectNode'](_0x5c477d),_0x2d4e87;}function S(_0x2d0605,_0x4f1943,_0x690299){const _0x38433e=_0x39ac14['document']['createRange']();return _0x38433e['setStart'](_0x2d0605,_0x4f1943),_0x38433e['setEnd'](_0x2d0605,_0x690299),_0x38433e;}function R(_0x2a669f,_0x11ebb4,_0x44d390,_0x4b0855){const _0x4512e5=_0x39ac14['document']['createRange']();return _0x4512e5['setStart'](_0x2a669f,_0x11ebb4),_0x4512e5['setEnd'](_0x44d390,_0x4b0855),_0x4512e5;}function I(_0x482d32,_0x3958ba,_0x1d09ac,_0x489ed5,_0x69e8bf){const _0x1c6e5b=[];for(const [_0x149248,_0x4a1a74]of _0x482d32['childNodes']['entries']()){let _0x97076b=[];C(_0x4a1a74)&&_0x4a1a74['offsetParent']&&['static','relative']['includes'](_0x39ac14['window']['getComputedStyle'](_0x4a1a74)['position'])?_0x97076b=K(_0x4a1a74,_0x149248,_0x3958ba,_0x1d09ac,_0x489ed5,_0x69e8bf):D(_0x4a1a74)&&(_0x97076b=A(_0x4a1a74,_0x149248,_0x3958ba,_0x1d09ac,_0x69e8bf)),_0x97076b['length']&&(_0x1c6e5b['push'](..._0x97076b),_0x3958ba+=_0x97076b['length']*_0x1d09ac,_0x69e8bf=!0x1);}return _0x1c6e5b;}function K(_0x371fb5,_0x2b86f8,_0x297ddd,_0xd3a288,_0x408d1f,_0x40d754){const _0x1afd62=[];var _0x2f7070;if((_0x2f7070=_0x371fb5['previousSibling'])&&C(_0x2f7070)&&Boolean(_0x2f7070['classList']['contains']('page-break')||_0x2f7070['closest']('.page-break'))&&(_0x1afd62['push']({'type':'manual','offset':0x0,'path':[_0x2b86f8-0x1]}),_0x40d754=!0x0),'table-row'==_0x39ac14['window']['getComputedStyle'](_0x371fb5)['display']){let _0x4edc46=0x0,_0x897bf2=!0x1;for(const _0x4c9df7 of _0x371fb5['getClientRects']())_0x4edc46+=_0x4c9df7['height'],_0x4c9df7['left']>=_0x297ddd&&(_0x897bf2=!0x0);if(_0x4edc46<_0x408d1f&&_0x897bf2)return _0x40d754||_0x1afd62['push']({'type':'element','offset':0x0,'path':[_0x2b86f8]}),_0x1afd62;}const _0x3215fe=_0x371fb5['closest']('figure.image');if(_0x3215fe&&function(_0x442ade){let _0x1b6ba3=!0x1;const _0x2fc011=_0x135525(_0x442ade)['dataset']['rootName'],_0x5674f1=_0x442ade['nextElementSibling'],_0x7acb3b=_0x442ade['previousElementSibling'],_0x2d1514=_0x5674f1&&_0x39ac14['window']['getComputedStyle'](_0x5674f1)['float'],_0x312963=_0x5674f1&&'ck-fake-selection-container'===_0x5674f1['className'];return!_0x2fc011||_0x5674f1||_0x7acb3b||(_0x1b6ba3=!0x0),_0x2fc011&&!_0x7acb3b&&_0x312963&&(_0x1b6ba3=!0x0),_0x2fc011&&!_0x7acb3b&&'none'!==_0x2d1514&&(_0x1b6ba3=!0x0),!_0x1b6ba3;}(_0x3215fe)){const _0x35e5e7=_0x39ac14['window']['getComputedStyle'](_0x3215fe)['float'];if('left'==_0x35e5e7||'right'==_0x35e5e7)return _0x1afd62;}const _0xb52656=I(_0x371fb5,_0x297ddd,_0xd3a288,_0x408d1f,_0x40d754);if(_0xb52656['length']){for(const _0x23a984 of _0xb52656)_0x1afd62['push']({'type':_0x23a984['type'],'offset':_0x23a984['offset'],'textOffset':_0x23a984['textOffset'],'path':[_0x2b86f8,..._0x23a984['path']]}),_0x297ddd+=_0xd3a288;return _0x1afd62;}return _0x1afd62['push'](...function(_0x241ad1,_0xbb9440,_0x29d0f2,_0x15314b,_0x2c1d20){const _0x3113ec=[];if('table-cell'==_0x39ac14['window']['getComputedStyle'](_0x241ad1)['display'])return[];const _0x13a881=[];for(const _0x15d373 of _0x241ad1['getClientRects']())if(_0x15d373['left']>=_0x29d0f2){for(const _0xb0f11e of _0x13a881)_0xb0f11e['height']+=_0x15d373['height'];_0x13a881['push']({'height':_0x15d373['height']}),_0x29d0f2+=_0x15314b;}for(const _0x203fe5 of _0x13a881)_0x2c1d20||_0x3113ec['push']({'type':'element','offset':_0x203fe5['height'],'textOffset':0x0,'path':[_0xbb9440]}),_0x2c1d20=!0x1;return _0x3113ec;}(_0x371fb5,_0x2b86f8,_0x297ddd,_0xd3a288,_0x40d754)),_0x1afd62;}function A(_0x1a1164,_0x3af229,_0x45d0a5,_0x2b2985,_0x429a43){const _0x2165e6=E(_0x1a1164),_0x1a1cb8=[];let _0x40d225=0x0;for(const _0x134720 of _0x2165e6['getClientRects']())if(_0x134720['left']>=_0x45d0a5){const _0x5dc305=O(_0x1a1164,_0x40d225,_0x45d0a5,_0x2b2985);_0x429a43||_0x1a1cb8['push']({'type':'text','path':[_0x3af229],'textOffset':_0x5dc305}),_0x40d225=_0x5dc305,_0x45d0a5+=_0x2b2985,_0x429a43=!0x1;}return _0x1a1cb8;}function O(_0x2949b3,_0x2dacaa,_0x2e5701,_0xf013be){let _0x1fb3ff=_0x2dacaa,_0x563734=_0x2949b3['length'];for(;_0x563734-_0x1fb3ff>0x1;){const _0x38f219=Math['ceil']((_0x1fb3ff+_0x563734)/0x2);U(S(_0x2949b3,_0x1fb3ff,_0x38f219),_0x2e5701,_0xf013be)?_0x563734=_0x38f219:_0x1fb3ff=_0x38f219;}return _0x1fb3ff;}function U(_0x43b964,_0x1c647f,_0x375326){for(const _0x540be9 of _0x43b964['getClientRects']())if(_0x540be9['left']>=_0x1c647f&&_0x540be9['left']<_0x1c647f+_0x375326)return!0x0;return!0x1;}function C(_0x96744f){return _0x96744f['nodeType']==Node['ELEMENT_NODE'];}function D(_0x1123cf){return _0x1123cf['nodeType']==Node['TEXT_NODE'];}const T=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x289924('px');var B=class extends _0x3dce57{constructor(){super();const _0x369582=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x369582['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x369582['if']('isVisible','ck-hidden',_0x863f25=>!_0x863f25)],'style':{'left':_0x369582['to']('left',_0x5a54f3=>T(_0x5a54f3)),'top':_0x369582['to']('top',_0x3bd326=>T(_0x3bd326)),'width':_0x369582['to']('width',_0x13f420=>T(_0x13f420))}}});}},G=class{_viewCollection;['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x4631a9){this['_viewCollection']=_0x4631a9['ui']['view']['body'];}get containerElement(){return this['_viewCollection']['bodyCollectionContainer'];}destroy(){for(const _0x52c39f of this['_hiddenLines'])_0x52c39f['destroy']();}['cleanLines'](){for(const _0x153939 of this['_visibleLines'])_0x153939['isVisible']=!0x1,this['_hiddenLines']['add'](_0x153939);this['_visibleLines']['clear']();}['showLine'](_0x309fb2,_0x49befd,_0x1c893c,_0x42f90e){let _0x540945;this['_hiddenLines']['size']?(_0x540945=_0x2cd610(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x540945)):_0x540945=new B(),_0x540945['set']({'pageNumber':_0x42f90e,'left':_0x309fb2,'top':_0x49befd,'width':_0x1c893c}),_0x540945['isVisible']=!0x0,this['_viewCollection']['has'](_0x540945)||this['_viewCollection']['add'](_0x540945),this['_visibleLines']['add'](_0x540945);}setViewCollection(_0x1c3f06){for(const _0x34c709 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x34c709)&&this['_viewCollection']['remove'](_0x34c709);this['_viewCollection']=_0x1c3f06;}};const V='ck-pagination_enabled';var M=class extends _0x394059{linesRepository;_scrollableEditingRootDomAncestor=null;['_resizeObserver']=null;_paginationLookupPlugin;static get['pluginName'](){return'PaginationRenderer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){this['set']({'pageNumber':0x1}),this['linesRepository']=new G(this['editor']),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']=null,this['_paginationLookupPlugin']=this['editor']['plugins']['get']('PaginationLookup'),this['bind']('isEnabled')['to'](this['editor']['plugins']['get']('PaginationEditing')),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['_toggleEditingRootsClass'](V),this['on']('change:isEnabled',(_0x43654d,_0x117425,_0x1e72e2)=>{_0x1e72e2||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](V,_0x1e72e2);});}destroy(){this['_toggleEditingRootsClass'](V,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0xb488a4){if(!this['isEnabled'])return;const _0x38ed84=_0xb488a4>0x1?this['_getPageBreakLineOffset'](_0xb488a4-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x38ed84-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':_0x29cab9['isMotionReduced']?'instant':'smooth'});}setupScrollableAncestor(){const _0x5b4d96=this['editor'],_0x1de2d9=this['_getAttachedDomRoot']();_0x1de2d9?(this['_scrollableEditingRootDomAncestor']&&_0x5b4d96['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=_0x1d0bdb(_0x1de2d9),_0x5b4d96['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x567e47(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x5b4d96['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x22b114=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x22b114['ui']['view']['listenTo'](_0x39ac14['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x22b114['ui']['once']('update',()=>this['_onUiReady']());}_getAttachedDomRoot(){for(const _0x26cd9e of this['editor']['editing']['view']['domRoots']['values']())if(_0x26cd9e['isConnected'])return _0x26cd9e;return null;}_updatePageBreakLines(){if(!this['isEnabled'])return;const _0x27d7fc=this['_getAttachedDomRoot'](),_0x2f4cf9=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x27d7fc||0x1==_0x2f4cf9['length'])return void(this['pageNumber']=0x1);const _0x5d7062=new _0x467f92(_0x27d7fc)['excludeScrollbarsAndBorders'](),_0x3d82ca=new _0x467f92(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0x41eecd=_0x3d82ca['top']+_0x3d82ca['height']/0x3;let _0x1a6c62=!0x1;const _0x5d0c31=[];for(let _0x539417=0x1;_0x539417<_0x2f4cf9['length'];_0x539417++){const _0x36db70=this['_getPageBreakLineOffset'](_0x539417,_0x3d82ca);if(!_0x36db70)continue;const _0x5cd314=_0x3d82ca['top']+_0x36db70-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x5d0c31['push']({'pageOffsetTop':_0x5cd314,'domRootRect':_0x5d7062,'domScrollableRect':_0x3d82ca,'pageNumber':_0x539417}),_0x5cd314>_0x41eecd&&!_0x1a6c62&&(this['pageNumber']=_0x539417,_0x1a6c62=!0x0);}this['_renderPageBreakLines'](_0x5d0c31),_0x1a6c62||(this['pageNumber']=_0x2f4cf9['length']);}['_renderPageBreakLines'](_0x25c102){if(!_0x25c102['length'])return;const {scrollX:_0x59ffd2,scrollY:_0x4d0dae}=_0x39ac14['window'],_0x457cef=_0x2c78b6(this['linesRepository']['containerElement']);let _0x375074,_0xb403d;if(_0x457cef){const _0x3f387f=new _0x467f92(_0x457cef);_0x375074=_0x3f387f['top']+_0x457cef['clientTop']-_0x457cef['scrollTop'],_0xb403d=_0x3f387f['left']+_0x457cef['clientLeft']-_0x457cef['scrollLeft'];}else _0x375074=-_0x4d0dae,_0xb403d=-_0x59ffd2;for(const {domScrollableRect:_0x29589c,pageOffsetTop:_0x17b84b,domRootRect:_0x1d5402,pageNumber:_0x26d0a3}of _0x25c102)_0x29589c['top']<_0x17b84b&&_0x17b84b<_0x29589c['bottom']&&this['linesRepository']['showLine'](_0x1d5402['left']-_0xb403d,_0x17b84b-_0x375074,_0x1d5402['width'],_0x26d0a3+0x1);}_getPageBreakLineOffset(_0x353171,_0x23c224=null){const _0x226977=this['_paginationLookupPlugin']['pageBreaks'][_0x353171]['offset'];return _0x226977?(_0x23c224||(_0x23c224=new _0x467f92(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x226977-_0x23c224['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}_toggleEditingRootsClass(_0x29fe2b,_0xd304df=!0x0){const _0x3500fd=this['editor']['editing']['view'];_0x3500fd['change'](_0x305ae0=>{for(const _0x197370 of _0x3500fd['document']['roots'])_0xd304df?_0x305ae0['addClass'](_0x29fe2b,_0x197370):_0x305ae0['removeClass'](_0x29fe2b,_0x197370);});}};function $(_0x47fd6c,_0x14cdb3,..._0x1d93bf){const t=_0x47fd6c['t'];switch(_0x14cdb3){case'Go\x20to\x20next\x20page':return t('Go\x20to\x20next\x20page');case'Go\x20to\x20previous\x20page':return t('Go\x20to\x20previous\x20page');case'Current\x20page\x20number\x20(from\x201\x20to\x20%0)':return t('Current\x20page\x20number\x20(from\x201\x20to\x20%0)',..._0x1d93bf);case'Keystrokes\x20for\x20navigating\x20through\x20documents':return t('Keystrokes\x20for\x20navigating\x20through\x20documents');case'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)');case'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)':return t('Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)');default:return _0x14cdb3;}}var j=class extends _0x394059{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[v,M];}init(){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x18b8f3=this['editor']['plugins']['get']('Pagination'),_0x3b0b5c=this['editor']['plugins']['get'](v),_0x2d6038=this['editor']['plugins']['get'](M);this['bind']('isEnabled')['to'](_0x18b8f3),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x2d6038),this['listenTo'](_0x3b0b5c,'change:pageBreaks',(_0x20860e,_0x53dc1c,_0x4b83d3,_0x2bc6a7)=>{this['totalPages']=_0x4b83d3['length'],this['_updatePageBreakMarkers'](_0x4b83d3,_0x2bc6a7);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0xcced79=[this['editor']];for(const _0xdfebfe of _0xcced79){let _0x29ac3f;for(const _0x548a0c in _0xdfebfe){const _0x46e76d=_0x548a0c,_0x1cd7ed=_0xdfebfe[_0x46e76d];if('paginationLicenseKeyValid'==_0x1cd7ed||'paginationLicenseKeyInvalid'==_0x1cd7ed||'paginationLicenseKeyExpired'==_0x1cd7ed||'paginationLicenseKeyDomainLimit'==_0x1cd7ed||'paginationLicenseKeyNotAllowed'==_0x1cd7ed||'paginationLicenseKeyEvaluationLimit'==_0x1cd7ed||'paginationLicenseKeyUsageLimit'==_0x1cd7ed){delete _0xdfebfe[_0x46e76d],_0x29ac3f=_0x1cd7ed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x29ac3f&&_0xdfebfe['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x29ac3f&&_0xdfebfe['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x29ac3f&&_0xdfebfe['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x29ac3f&&_0xdfebfe['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x29ac3f&&_0xdfebfe['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x29ac3f&&_0xdfebfe['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x26877b){this['isEnabled']&&this['editor']['plugins']['get'](M)['scrollToPage'](this['_validatePageNumber'](_0x26877b));}moveSelectionToPage(_0x638bac){if(!this['isEnabled'])return;const _0x158e24=this['editor'],_0x5db5df=this['editor']['plugins']['get'](v)['pageBreaks'][_0x638bac-0x1];_0x5db5df&&_0x158e24['model']['change'](_0x15286b=>{switch(_0x5db5df['type']){case'manual':{const _0x4618ea=_0x158e24['model']['schema']['getNearestSelectionRange'](_0x5db5df['modelRange']['end'],'forward');_0x15286b['setSelection'](_0x4618ea);break;}case'element':{const _0x466de5=_0x158e24['model']['schema']['getNearestSelectionRange'](_0x5db5df['modelRange']['start'],'forward');_0x15286b['setSelection'](_0x466de5);break;}case'text':{const _0x8b9247=_0x5db5df['modelRange']['start'];if(_0x8b9247['textNode']&&'\x20'===_0x8b9247['textNode']['data'][_0x8b9247['offset']]){const _0x487849=_0x15286b['createPositionAt'](_0x8b9247['parent'],_0x8b9247['offset']+0x1);_0x15286b['setSelection'](_0x487849);}else _0x15286b['setSelection'](_0x5db5df['modelRange']);}}_0x158e24['editing']['view']['focus']();});}goToNextPage(){const _0x4001e4=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x4001e4),this['scrollToPage'](_0x4001e4);}['goToPreviousPage'](){const _0x2177a3=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x2177a3),this['scrollToPage'](_0x2177a3);}_updatePageBreakMarkers(_0x83dc45,_0x3e144b){const _0x1bbae4=this['editor']['model'];this['isEnabled']&&_0x1bbae4['change'](_0x4201f8=>{for(let _0x13c6c8=0x1;_0x13c6c8<_0x83dc45['length'];_0x13c6c8++){const _0x34a4a3=_0x83dc45[_0x13c6c8]['modelRange'],_0x36ae70='pagination:'+(_0x13c6c8+0x1);_0x1bbae4['markers']['has'](_0x36ae70)?_0x4201f8['updateMarker'](_0x36ae70,{'range':_0x34a4a3}):_0x4201f8['addMarker'](_0x36ae70,{'range':_0x34a4a3,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x555c44=_0x83dc45['length'];_0x555c44<_0x3e144b['length'];_0x555c44++){const _0x3849dc='pagination:'+(_0x555c44+0x1);_0x1bbae4['markers']['has'](_0x3849dc)&&_0x4201f8['removeMarker'](_0x3849dc);}});}_setUpDataDowncastConversion(){this['editor']['conversion']['for']('dataDowncast')['add'](_0x5ef77a=>{_0x5ef77a['on']('addMarker:pagination',(_0x40be5b,{markerRange:_0x31bde0,markerName:_0xe1fdd6},_0x137e8f)=>{if(!_0x137e8f['options']['pagination'])return;if(!_0x137e8f['consumable']['consume'](_0x31bde0,_0x40be5b['name']))return;const _0x11694e=_0x31bde0['getContainedElement']();let _0x170c12=_0x11694e?_0x137e8f['mapper']['toViewElement'](_0x11694e):null;if(!_0x170c12){const _0x3a3271=_0x31bde0['start'];if(_0x137e8f['schema']['checkChild'](_0x3a3271,'$text')){const _0x1a5ec5=_0x137e8f['mapper']['toViewPosition'](_0x3a3271);_0x170c12=_0x137e8f['writer']['createContainerElement']('span'),_0x170c12['getFillerOffset']=()=>null,_0x137e8f['writer']['insert'](_0x1a5ec5,_0x170c12);}else{const _0x3b5cca=_0x3a3271['nodeAfter'];_0x170c12=_0x137e8f['mapper']['toViewElement'](_0x3b5cca);}}for(;_0x170c12['parent']!==_0x170c12['root']&&0x0===_0x170c12['index'];)_0x170c12=_0x170c12['parent'];const _0x293d3e=_0xe1fdd6['substring'](0xb);_0x170c12['hasClass']('page-break')||(_0x137e8f['writer']['setStyle']('page-break-before','always',_0x170c12),_0x137e8f['writer']['setAttribute']('data-pagination-page',_0x293d3e,_0x170c12),_0x137e8f['mapper']['bindElementToMarker'](_0x170c12,_0xe1fdd6)),_0x40be5b['stop']();});});}_setupKeystrokes(){const _0x53a3fa=this['editor'];_0x53a3fa['keystrokes']['set']('Shift+Pageup',(_0x5bf8ef,_0x184251)=>{this['goToPreviousPage'](),_0x184251();}),_0x53a3fa['keystrokes']['set']('Shift+Pagedown',(_0x5cab49,_0x36a90c)=>{this['goToNextPage'](),_0x36a90c();}),_0x53a3fa['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':$(_0x53a3fa['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':$(_0x53a3fa['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':$(_0x53a3fa['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}_validatePageNumber(_0x2b9fde){return _0x2b9fde<0x1&&(_0x2b9fde=0x1),_0x2b9fde>this['totalPages']&&(_0x2b9fde=this['totalPages']),_0x2b9fde;}},q=class extends _0x3dce57{['pageNumberView'];constructor(_0x191a7b){super(_0x191a7b);const _0x80d29d=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new _0x16f11a(_0x191a7b,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x35ff4d=>$(_0x191a7b,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x35ff4d)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x199ebf=>!_0x199ebf),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x80d29d['if']('isEnabled','ck-disabled',_0x172930=>!_0x172930)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x80d29d['to']('totalPages')}]}]});}['render'](){super['render']();const _0x5c3c4a=this['pageNumberView']['element'],_0x344523=_0xfbd42a=>{this['pageNumberView']['element']['value']=String(_0xfbd42a);};_0x344523(this['pageNumber']),this['on']('change:pageNumber',(_0x59d1c5,_0x2585c1,_0x59d122)=>{_0x344523(_0x59d122);}),this['listenTo'](_0x5c3c4a,'keydown',(_0x117119,_0x200275)=>{if('ArrowUp'===_0x200275['key']||'ArrowDown'===_0x200275['key'])return void _0x200275['stopPropagation']();if(_0x200275['keyCode']!==_0x14c526['enter'])return;_0x200275['preventDefault']();const _0x445e84=_0x5c3c4a['valueAsNumber'];Number['isNaN'](_0x445e84)?_0x5c3c4a['value']=String(this['pageNumber']):(_0x5c3c4a['checkValidity']()?this['pageNumber']=_0x445e84:_0x445e84>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x5c3c4a['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x5c3c4a['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x5c3c4a,'blur',()=>{_0x5c3c4a['value']=String(this['pageNumber']);}),this['listenTo'](_0x5c3c4a,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['pageNumberView']['element']['focus']();}},F=class extends _0x394059{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x40d813=this['editor'],_0x297d27=_0x40d813['plugins']['get']('PaginationEditing');_0x40d813['ui']['componentFactory']['add']('pageNavigation',_0x28491a=>{const _0x418eb0=new q(_0x28491a);return _0x418eb0['bind']('pageNumber')['to'](_0x297d27),_0x418eb0['bind']('totalPages')['to'](_0x297d27),_0x418eb0['bind']('isEnabled')['to'](_0x297d27),_0x418eb0['on']('navigation',(_0x1736cc,_0x2bc9a0)=>{_0x297d27['moveSelectionToPage'](_0x2bc9a0),_0x297d27['scrollToPage'](_0x2bc9a0);}),_0x418eb0;}),_0x40d813['ui']['componentFactory']['add']('nextPage',_0x53648a=>{const _0x16f114=new _0x55bb95(_0x53648a);return _0x16f114['isEnabled']=!0x0,_0x16f114['label']=$(_0x40d813['locale'],'Go\x20to\x20next\x20page'),_0x16f114['icon']=_0x274e7a,_0x16f114['tooltip']=!0x0,_0x16f114['keystroke']='Shift+PageDown',_0x16f114['bind']('isEnabled')['to'](_0x297d27),this['listenTo'](_0x16f114,'execute',()=>{_0x297d27['goToNextPage']();}),_0x16f114;}),_0x40d813['ui']['componentFactory']['add']('previousPage',_0x16e31e=>{const _0x261386=new _0x55bb95(_0x16e31e);return _0x261386['isEnabled']=!0x0,_0x261386['label']=$(_0x40d813['locale'],'Go\x20to\x20previous\x20page'),_0x261386['icon']=_0x2a723c,_0x261386['tooltip']=!0x0,_0x261386['keystroke']='Shift+PageUp',_0x261386['bind']('isEnabled')['to'](_0x297d27),this['listenTo'](_0x261386,'execute',()=>{_0x297d27['goToPreviousPage']();}),_0x261386;});}},H=class extends _0x394059{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[j,F];}constructor(_0x3676e8){super(_0x3676e8),this['isEnabled']=!0x1;}init(){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x57c9b3=this['editor']['plugins']['get'](j);this['bind']('pageNumber')['to'](_0x57c9b3),this['bind']('totalPages')['to'](_0x57c9b3),_0x29cab9['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x52db06){this['editor']['plugins']['get'](j)['scrollToPage'](_0x52db06);}};export{H as Pagination,M as PaginationRenderer};
|
package/dist/legacyerrors.d.ts
CHANGED
package/dist/pagination.d.ts
CHANGED
|
@@ -1,143 +1,135 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin, type Editor } from
|
|
10
|
-
import { PaginationEditing } from
|
|
11
|
-
import { PaginationUI } from
|
|
6
|
+
* @module pagination/pagination
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { PaginationEditing } from "./paginationediting.js";
|
|
11
|
+
import { PaginationUI } from "./paginationui.js";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
* The pagination feature.
|
|
14
|
+
*/
|
|
15
15
|
export declare class Pagination extends Plugin {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
16
|
+
/**
|
|
17
|
+
* The current page number.
|
|
18
|
+
*
|
|
19
|
+
* @observable
|
|
20
|
+
* @default 1
|
|
21
|
+
* @readonly
|
|
22
|
+
*/
|
|
23
|
+
readonly pageNumber: number;
|
|
24
|
+
/**
|
|
25
|
+
* The total page count.
|
|
26
|
+
*
|
|
27
|
+
* @observable
|
|
28
|
+
* @default 1
|
|
29
|
+
* @readonly
|
|
30
|
+
*/
|
|
31
|
+
readonly totalPages: number;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
static get pluginName(): "Pagination";
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
static override get isOfficialPlugin(): true;
|
|
40
|
+
/**
|
|
41
|
+
* @inheritDoc
|
|
42
|
+
*/
|
|
43
|
+
static override get isPremiumPlugin(): true;
|
|
44
|
+
/**
|
|
45
|
+
* @inheritDoc
|
|
46
|
+
*/
|
|
47
|
+
static get requires(): PluginDependenciesOf<[PaginationEditing, PaginationUI]>;
|
|
48
|
+
/**
|
|
49
|
+
* @inheritDoc
|
|
50
|
+
*/
|
|
51
|
+
constructor(editor: Editor);
|
|
52
|
+
/**
|
|
53
|
+
* @inheritDoc
|
|
54
|
+
*/
|
|
55
|
+
init(): void;
|
|
56
|
+
/**
|
|
57
|
+
* Scroll the editor content to a desired page.
|
|
58
|
+
*
|
|
59
|
+
* @param pageNumber The page number (counting from 1).
|
|
60
|
+
*/
|
|
61
|
+
scrollToPage(pageNumber: number): void;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
64
|
+
* The configuration of the pagination feature. It is used by the pagination feature from the `@ckeditor/ckeditor5-pagination` package.
|
|
65
|
+
*
|
|
66
|
+
* ```ts
|
|
67
|
+
* ClassicEditor
|
|
68
|
+
* .create( {
|
|
69
|
+
* pagination: {
|
|
70
|
+
* // A4
|
|
71
|
+
* pageWidth: '21cm',
|
|
72
|
+
* pageHeight: '29.7cm',
|
|
73
|
+
*
|
|
74
|
+
* pageMargins: {
|
|
75
|
+
* top: '20mm',
|
|
76
|
+
* bottom: '20mm',
|
|
77
|
+
* left: '12mm',
|
|
78
|
+
* right: '12mm'
|
|
79
|
+
* }
|
|
80
|
+
* }
|
|
81
|
+
* } )
|
|
82
|
+
* .then( ... )
|
|
83
|
+
* .catch( ... );
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* **NOTE:** The configuration of the plugin must match the {@link module:export-pdf/exportpdf~ExportPdfConfig export to PDF} or
|
|
87
|
+
* {@link module:export-word/exportword~ExportWordConfig export to Word} feature configuration.
|
|
88
|
+
*
|
|
89
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
90
|
+
*/
|
|
91
91
|
export interface PaginationConfig {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
92
|
+
/**
|
|
93
|
+
* The page width.
|
|
94
|
+
*/
|
|
95
|
+
pageWidth: string;
|
|
96
|
+
/**
|
|
97
|
+
* The page height.
|
|
98
|
+
*/
|
|
99
|
+
pageHeight: string;
|
|
100
|
+
/**
|
|
101
|
+
* The page margins.
|
|
102
|
+
*/
|
|
103
|
+
pageMargins: PaginationMarginsConfig;
|
|
104
|
+
/**
|
|
105
|
+
* The pagination feature is by default enabled only in browsers that are using the Blink engine
|
|
106
|
+
* (Chrome, Chromium, newer Edge, newer Opera). This is due to some existing incompatibilities in Firefox and Safari;
|
|
107
|
+
* we will be working on them in the future.
|
|
108
|
+
*
|
|
109
|
+
* This behavior can be modified by setting this configuration value to `true`.
|
|
110
|
+
*
|
|
111
|
+
* @default false
|
|
112
|
+
*/
|
|
113
|
+
enableOnUnsupportedBrowsers?: boolean;
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
* The configuration of the pagination feature page margins.
|
|
117
|
+
*/
|
|
118
118
|
export interface PaginationMarginsConfig {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
119
|
+
/**
|
|
120
|
+
* The top margin.
|
|
121
|
+
*/
|
|
122
|
+
top: string;
|
|
123
|
+
/**
|
|
124
|
+
* The bottom margin.
|
|
125
|
+
*/
|
|
126
|
+
bottom: string;
|
|
127
|
+
/**
|
|
128
|
+
* The left margin.
|
|
129
|
+
*/
|
|
130
|
+
left: string;
|
|
131
|
+
/**
|
|
132
|
+
* The right margin.
|
|
133
|
+
*/
|
|
134
|
+
right: string;
|
|
135
135
|
}
|
|
136
|
-
/**
|
|
137
|
-
* The configuration required by the pagination plugin is missing.
|
|
138
|
-
* Follow the instructions provided in {@glink features/pagination/pagination#configuration Pagination feature documentation}
|
|
139
|
-
* to initialize the plugin properly.
|
|
140
|
-
*
|
|
141
|
-
* @error pagination-config-not-found
|
|
142
|
-
* @param {module:core/editor/editorconfig~EditorConfig} config Configuration of the editor.
|
|
143
|
-
*/
|