@ckeditor/ckeditor5-export-pdf 42.0.2 → 43.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/build/export-pdf.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/dist/exportpdf.d.ts +5 -0
- package/dist/index.js +1 -1
- 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/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/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.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.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/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/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/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/ko.js +1 -1
- package/dist/translations/ko.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/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/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/sk.js +1 -1
- package/dist/translations/sk.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/tr.js +1 -1
- package/dist/translations/tr.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/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/utils/common-translations.d.ts +13 -0
- package/lang/translations/sr-latn.po +4 -4
- package/package.json +4 -4
- package/src/exportpdf.d.ts +5 -0
- package/src/exportpdf.js +1 -1
- package/src/exportpdfcommand.js +1 -1
- package/src/exportpdfui.js +1 -1
- package/src/index.js +1 -1
- package/src/utils/common-translations.d.ts +9 -0
- package/src/utils/common-translations.js +23 -0
- package/src/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x33d83b=>{const {'zh-cn':{dictionary:_0x308832,getPluralForm:_0x508f56}}={'zh-cn':{'dictionary':{'Export\x20to\x20PDF':'导出为PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'生成PDF时发生了异常。','PDF\x20export\x20started':'PDF\x20导出开始','PDF\x20export\x20failed':'PDF\x20导出失败','PDF\x20export\x20successful':'PDF\x20导出成功','Exporting\x20PDF\x20document':'正在导出\x20PDF\x20文档'},'getPluralForm':_0x590186=>0x0}};_0x33d83b['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x33d83b['zh-cn']['dictionary']=Object['assign'](_0x33d83b['zh-cn']['dictionary'],_0x308832),_0x33d83b['zh-cn']['getPluralForm']=_0x508f56;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/zh.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'zh':{'dictionary':{'Export\x20to\x20PDF':'匯出為\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'產生\x20PDF\x20時發生錯誤。','PDF\x20export\x20started':'PDF\x20匯出開始','PDF\x20export\x20failed':'PDF\x20匯出失敗','PDF\x20export\x20successful':'PDF\x20匯出成功','Exporting\x20PDF\x20document':'正在匯出\x20PDF\x20文件'},'getPluralForm':
|
|
23
|
+
export default{'zh':{'dictionary':{'Export\x20to\x20PDF':'匯出為\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'產生\x20PDF\x20時發生錯誤。','PDF\x20export\x20started':'PDF\x20匯出開始','PDF\x20export\x20failed':'PDF\x20匯出失敗','PDF\x20export\x20successful':'PDF\x20匯出成功','Exporting\x20PDF\x20document':'正在匯出\x20PDF\x20文件'},'getPluralForm':_0x1adb86=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5b33bf=>{const {zh:{dictionary:_0x70fb8e,getPluralForm:_0x170291}}={'zh':{'dictionary':{'Export\x20to\x20PDF':'匯出為\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'產生\x20PDF\x20時發生錯誤。','PDF\x20export\x20started':'PDF\x20匯出開始','PDF\x20export\x20failed':'PDF\x20匯出失敗','PDF\x20export\x20successful':'PDF\x20匯出成功','Exporting\x20PDF\x20document':'正在匯出\x20PDF\x20文件'},'getPluralForm':_0xcd3a45=>0x0}};_0x5b33bf['zh']||={'dictionary':{},'getPluralForm':null},_0x5b33bf['zh']['dictionary']=Object['assign'](_0x5b33bf['zh']['dictionary'],_0x70fb8e),_0x5b33bf['zh']['getPluralForm']=_0x170291;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module export-pdf/utils/common-translations
|
|
11
|
+
*/
|
|
12
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
+
export declare function getTranslation(locale: Locale, id: string): string;
|
|
@@ -27,16 +27,16 @@ msgstr "Došlo je do greške pri generisanju PDF-a."
|
|
|
27
27
|
|
|
28
28
|
msgctxt "Aria status message indicating start of PDF document export. Example: 'PDF export started'."
|
|
29
29
|
msgid "PDF export started"
|
|
30
|
-
msgstr ""
|
|
30
|
+
msgstr "Izvoz u PDF je počeo"
|
|
31
31
|
|
|
32
32
|
msgctxt "Aria status message indicating failed PDF document export. Example: 'PDF export failed'."
|
|
33
33
|
msgid "PDF export failed"
|
|
34
|
-
msgstr ""
|
|
34
|
+
msgstr "Izvoz PDF-a nije uspeo"
|
|
35
35
|
|
|
36
36
|
msgctxt "Aria status message indicating successful PDF document export. Example: 'PDF export successful'."
|
|
37
37
|
msgid "PDF export successful"
|
|
38
|
-
msgstr ""
|
|
38
|
+
msgstr "PDF izvoz nije uspeo"
|
|
39
39
|
|
|
40
40
|
msgctxt "Aria label set on Export to PDF button while exporting a PDF document."
|
|
41
41
|
msgid "Exporting PDF document"
|
|
42
|
-
msgstr ""
|
|
42
|
+
msgstr "Izvoz PDF dokumenta"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-pdf",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "43.0.0-alpha.0",
|
|
4
4
|
"description": "Export to PDF feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"type": "module",
|
|
31
31
|
"main": "src/index.js",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ckeditor/ckeditor5-core": "
|
|
34
|
-
"@ckeditor/ckeditor5-ui": "
|
|
35
|
-
"ckeditor5": "
|
|
33
|
+
"@ckeditor/ckeditor5-core": "43.0.0-alpha.0",
|
|
34
|
+
"@ckeditor/ckeditor5-ui": "43.0.0-alpha.0",
|
|
35
|
+
"ckeditor5": "43.0.0-alpha.0"
|
|
36
36
|
},
|
|
37
37
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
38
38
|
"author": "CKSource (http://cksource.com/)",
|
package/src/exportpdf.d.ts
CHANGED
|
@@ -222,4 +222,9 @@ export type ExportPdfConverterOptions = {
|
|
|
222
222
|
page_orientation?: 'portrait' | 'landscape' | string & Record<never, never>;
|
|
223
223
|
wait_for_network?: boolean;
|
|
224
224
|
wait_time?: number;
|
|
225
|
+
merge_fields?: {
|
|
226
|
+
prefix: string;
|
|
227
|
+
suffix: string;
|
|
228
|
+
data: Record<string, string>;
|
|
229
|
+
};
|
|
225
230
|
};
|
package/src/exportpdf.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20a14b=_0x56db;function _0x56db(_0x38673d,_0xc8411c){const _0x393f36=_0x393f();return _0x56db=function(_0x56db2a,_0xffc0d8){_0x56db2a=_0x56db2a-0x1c1;let _0x154165=_0x393f36[_0x56db2a];return _0x154165;},_0x56db(_0x38673d,_0xc8411c);}(function(_0x4577cf,_0x368e6c){const _0x428f86=_0x56db,_0x3af2e9=_0x4577cf();while(!![]){try{const _0x19acd2=-parseInt(_0x428f86(0x1d5))/0x1+-parseInt(_0x428f86(0x1d3))/0x2+parseInt(_0x428f86(0x1d2))/0x3*(-parseInt(_0x428f86(0x1c6))/0x4)+-parseInt(_0x428f86(0x1d6))/0x5*(-parseInt(_0x428f86(0x1c2))/0x6)+-parseInt(_0x428f86(0x1cc))/0x7*(parseInt(_0x428f86(0x1d7))/0x8)+parseInt(_0x428f86(0x1c7))/0x9*(-parseInt(_0x428f86(0x1db))/0xa)+parseInt(_0x428f86(0x1ca))/0xb;if(_0x19acd2===_0x368e6c)break;else _0x3af2e9['push'](_0x3af2e9['shift']());}catch(_0x3e1255){_0x3af2e9['push'](_0x3af2e9['shift']());}}}(_0x393f,0x4fdb6));import{Plugin as _0x129400}from'ckeditor5/src/core.js';function _0x393f(){const _0x4f45b2=['add','342267CQeiJl','373444UDJVlp','plugins','27113RGTfcY','5nkRIMT','2280LlvZmq','requires','CloudServices','_token','1850380ykeJUx','registerTokenUrl','exportPdf','890610KqJqUw','init','tokenUrl','config','4fvtqNs','9RUAquh','get','commands','8015381dhPEQc','token','910PWIWaN','then','pluginName','ExportPdf','editor'];_0x393f=function(){return _0x4f45b2;};return _0x393f();}import{Notification as _0x1df378}from'ckeditor5/src/ui.js';import _0x47a71b from'./exportpdfcommand.js';import _0x59dc21 from'./exportpdfui.js';export default class s extends _0x129400{static get[_0x20a14b(0x1ce)](){const _0x59f75d=_0x20a14b;return _0x59f75d(0x1cf);}static get[_0x20a14b(0x1d8)](){const _0xff30e4=_0x20a14b;return[_0xff30e4(0x1d9),_0x1df378,_0x59dc21];}[_0x20a14b(0x1c3)](){const _0x3be130=_0x20a14b,_0x504697=this[_0x3be130(0x1d0)],_0x3a8e86=_0x504697[_0x3be130(0x1c5)][_0x3be130(0x1c8)](_0x3be130(0x1c1))||{};_0x504697[_0x3be130(0x1c9)][_0x3be130(0x1d1)](_0x3be130(0x1c1),new _0x47a71b(_0x504697));const _0x21180d=_0x504697[_0x3be130(0x1d4)][_0x3be130(0x1c8)](_0x3be130(0x1d9));!0x1===_0x3a8e86[_0x3be130(0x1c4)]?this[_0x3be130(0x1da)]=null:_0x3a8e86[_0x3be130(0x1c4)]?_0x21180d[_0x3be130(0x1dc)](_0x3a8e86[_0x3be130(0x1c4)])[_0x3be130(0x1cd)](_0x24af14=>{const _0x4e1683=_0x3be130;this[_0x4e1683(0x1da)]=_0x24af14;}):this[_0x3be130(0x1da)]=_0x21180d[_0x3be130(0x1cb)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
const _0x389406=_0x1886;(function(_0xbcf505,_0x2c05da){const _0x28ec68=_0x1886,_0x5f4cfb=_0xbcf505();while(!![]){try{const _0x2314a3=-parseInt(_0x28ec68(0x208))/0x1*(-parseInt(_0x28ec68(0x1de))/0x2)+-parseInt(_0x28ec68(0x1f2))/0x3+-parseInt(_0x28ec68(0x1ee))/0x4*(parseInt(_0x28ec68(0x1e4))/0x5)+-parseInt(_0x28ec68(0x226))/0x6*(-parseInt(_0x28ec68(0x1f3))/0x7)+-parseInt(_0x28ec68(0x201))/0x8*(parseInt(_0x28ec68(0x212))/0x9)+parseInt(_0x28ec68(0x225))/0xa*(-parseInt(_0x28ec68(0x223))/0xb)+-parseInt(_0x28ec68(0x20d))/0xc*(-parseInt(_0x28ec68(0x205))/0xd);if(_0x2314a3===_0x2c05da)break;else _0x5f4cfb['push'](_0x5f4cfb['shift']());}catch(_0x2868b5){_0x5f4cfb['push'](_0x5f4cfb['shift']());}}}(_0x2c34,0x7f0fc));import{Command as _0x2e1ee9}from'ckeditor5/src/core.js';import{getStyles as _0x3eef71}from'./utils.js';function _0x1886(_0x110095,_0xf7b628){const _0x2c341b=_0x2c34();return _0x1886=function(_0x188618,_0x408524){_0x188618=_0x188618-0x1da;let _0xc6cfdc=_0x2c341b[_0x188618];return _0xc6cfdc;},_0x1886(_0x110095,_0xf7b628);}import{getTranslation as _0x5321e4}from'./utils/common-translations.js';export default class o extends _0x2e1ee9{constructor(_0x855699){const _0x3b0ff2=_0x1886;super(_0x855699),this[_0x3b0ff2(0x1f6)](_0x3b0ff2(0x1e8),!0x1),this[_0x3b0ff2(0x22a)]=!0x1;}[_0x389406(0x221)](){const _0x273576=_0x389406;this[_0x273576(0x224)]=!this[_0x273576(0x1e8)],this[_0x273576(0x21e)]=this[_0x273576(0x1e8)]?_0x273576(0x210):void 0x0;}[_0x389406(0x20a)](_0x55f1b7={}){const _0x4c98d0=_0x389406,_0x36a96d=this[_0x4c98d0(0x1f5)],_0x5676c9=_0x55f1b7[_0x4c98d0(0x22e)]||_0x4c98d0(0x1dc),_0x4e8b37=_0x55f1b7[_0x4c98d0(0x20f)]||(_0xdbb706=>_0xdbb706[_0x4c98d0(0x22b)][_0x4c98d0(0x1fc)]()),_0x315962=_0x36a96d[_0x4c98d0(0x218)][_0x4c98d0(0x1fc)](_0x4c98d0(0x22d)),_0x44bea7=_0x55f1b7[_0x4c98d0(0x220)]||_0x315962[_0x4c98d0(0x222)];return this[_0x4c98d0(0x1e8)]=!0x0,this[_0x4c98d0(0x221)](),_0x3eef71(_0x55f1b7[_0x4c98d0(0x219)]||[_0x4c98d0(0x213)])[_0x4c98d0(0x1df)](async _0x105268=>{const _0x29b851=_0x4c98d0;if(_0x36a96d['ui'][_0x29b851(0x1f0)][_0x29b851(0x211)](_0x5321e4(_0x36a96d[_0x29b851(0x22c)],_0x29b851(0x215))),_0x36a96d[_0x29b851(0x218)][_0x29b851(0x20b)](_0x29b851(0x203))){_0x55f1b7[_0x29b851(0x21d)]||(_0x55f1b7[_0x29b851(0x21d)]={});const _0x27e204=_0x36a96d[_0x29b851(0x218)][_0x29b851(0x1fc)](_0x29b851(0x203)),_0x3c80fb=_0x36a96d[_0x29b851(0x218)][_0x29b851(0x1fc)](_0x29b851(0x229)),_0x1d4cfe=_0x3c80fb[_0x29b851(0x1ed)],{prefix:_0x5169c5,suffix:_0x19c4e7}=_0x36a96d[_0x29b851(0x1da)][_0x29b851(0x1fc)](_0x29b851(0x1e7)),_0x1a26e7={'prefix':_0x5169c5,'suffix':_0x19c4e7,'data':{}};if(_0x29b851(0x21f)===_0x1d4cfe){for(const _0x54e9bf of _0x3c80fb[_0x29b851(0x217)])_0x1a26e7[_0x29b851(0x22b)][_0x54e9bf['id']]=_0x3c80fb[_0x29b851(0x1e3)](_0x54e9bf['id']);}else{const _0x2a4a3b=_0x29b851(0x21b)===_0x1d4cfe?_0x27e204[_0x29b851(0x207)]():_0x27e204[_0x29b851(0x1eb)](_0x1d4cfe,!0x0);for(const _0x40a64a of Object[_0x29b851(0x1f8)](_0x2a4a3b)){const [_0x52da8b,_0x422fef]=_0x40a64a;_0x1a26e7[_0x29b851(0x22b)][_0x52da8b]=null!==_0x422fef?_0x422fef:_0x3c80fb[_0x29b851(0x1e3)](_0x52da8b);}}_0x55f1b7[_0x29b851(0x21d)][_0x29b851(0x21c)]=_0x1a26e7;}const _0x3e0aa4={'html':_0x29b851(0x21a)+_0x36a96d[_0x29b851(0x22c)][_0x29b851(0x20e)]+_0x29b851(0x1dd)+await _0x4e8b37(_0x36a96d)+_0x29b851(0x1f9),'css':_0x105268,'options':_0x55f1b7[_0x29b851(0x21d)]},_0x2e450d={'method':_0x29b851(0x1ef),'headers':{'Content-Type':_0x29b851(0x1fa),'Accept':_0x29b851(0x1e6),..._0x44bea7?{'Authorization':_0x44bea7[_0x29b851(0x21e)]}:null,'x-cs-app-id':_0x55f1b7[_0x29b851(0x1e2)]||_0x29b851(0x206)},'body':JSON[_0x29b851(0x1e1)](_0x3e0aa4)};return window[_0x29b851(0x1f4)](_0x5676c9,_0x2e450d)[_0x29b851(0x1df)](_0x47e220=>{const _0x52e885=_0x29b851;if(0xc8!==_0x47e220[_0x52e885(0x1fb)])throw _0x47e220;return _0x47e220[_0x52e885(0x1e5)]();})[_0x29b851(0x1df)](_0x5e8b33=>{const _0x2d1a9c=_0x29b851;_0x36a96d['ui'][_0x2d1a9c(0x1f0)][_0x2d1a9c(0x211)](_0x5321e4(_0x36a96d[_0x2d1a9c(0x22c)],_0x2d1a9c(0x204)));const _0x4c8c44=_0x2d1a9c(0x1fd)==typeof _0x55f1b7[_0x2d1a9c(0x1db)]?_0x55f1b7[_0x2d1a9c(0x1db)]():_0x55f1b7[_0x2d1a9c(0x1db)];this[_0x2d1a9c(0x214)](_0x5e8b33,_0x4c8c44||_0x2d1a9c(0x200));});})[_0x4c98d0(0x209)](_0x4d86f3=>{const _0x200dfc=_0x4c98d0,_0x4a98db=_0x36a96d[_0x200dfc(0x218)][_0x200dfc(0x1fc)](_0x200dfc(0x20c));throw _0x36a96d['ui'][_0x200dfc(0x1f0)][_0x200dfc(0x211)](_0x5321e4(_0x36a96d[_0x200dfc(0x22c)],_0x200dfc(0x1f7)),{'politeness':_0x200dfc(0x202)}),_0x4a98db[_0x200dfc(0x1e0)](_0x5321e4(_0x36a96d[_0x200dfc(0x22c)],_0x200dfc(0x216))),_0x4d86f3;})[_0x4c98d0(0x228)](()=>{const _0x3a342a=_0x4c98d0;this[_0x3a342a(0x1e8)]=!0x1,this[_0x3a342a(0x221)]();});}[_0x389406(0x214)](_0x1b0baf,_0x245b41){const _0xfb2bc=_0x389406,_0x3d52b7=document[_0xfb2bc(0x1ec)]('a');_0x3d52b7[_0xfb2bc(0x1e9)]=window[_0xfb2bc(0x1f1)][_0xfb2bc(0x1fe)](_0x1b0baf),_0x3d52b7[_0xfb2bc(0x227)]=_0x245b41,_0x3d52b7[_0xfb2bc(0x1ea)](),_0x3d52b7[_0xfb2bc(0x1ff)]();}}function _0x2c34(){const _0x4b9a9a=['flattenedMergeFieldDefinitions','plugins','stylesheets','<html>\x0a\x09\x09\x09\x09\x09\x09<head>\x0a\x09\x09\x09\x09\x09\x09\x09<title>CKEditor\x205\x20PDF\x20document</title>\x0a\x09\x09\x09\x09\x09\x09\x09<meta\x20charset=\x22utf-8\x22>\x0a\x09\x09\x09\x09\x09\x09</head>\x0a\x09\x09\x09\x09\x09\x09<body>\x0a\x09\x09\x09\x09\x09\x09\x09<div\x20class=\x22ck-content\x22\x20dir=\x22','$defaultValues','merge_fields','converterOptions','value','$labels','token','refresh','_token','1647668KmOXLq','isEnabled','10QhpRkA','1237254jIKZBI','download','finally','MergeFieldsEditing','affectsData','data','locale','ExportPdf','converterUrl','config','fileName','https://pdf-converter.cke-cs.com/v1/convert/','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','2jPTkhz','then','showWarning','stringify','appID','getLabel','325SqtmqF','blob','application/pdf','mergeFields','isBusy','href','click','getDataSetValues','createElement','previewMode','27016PyXTNL','POST','ariaLiveAnnouncer','URL','675933gSPWbo','7tSXhXc','fetch','editor','set','PDF\x20export\x20failed','entries','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','application/json','status','get','function','createObjectURL','remove','document.pdf','7073032OMSxjS','assertive','MergeFields','PDF\x20export\x20successful','8580884SeejvR','cke5','getDefaultValues','32269Umzbvb','catch','execute','has','Notification','36VIJVHn','contentLanguageDirection','dataCallback','pending','announce','9iCmuau','EDITOR_STYLES','_downloadFile','PDF\x20export\x20started','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.'];_0x2c34=function(){return _0x4b9a9a;};return _0x2c34();}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
const _0x5b45e5=_0x738c;function _0x738c(_0x11fc2,_0x2e4f71){const _0x534026=_0x5340();return _0x738c=function(_0x738cf5,_0x375e48){_0x738cf5=_0x738cf5-0x90;let _0xf89b26=_0x534026[_0x738cf5];return _0xf89b26;},_0x738c(_0x11fc2,_0x2e4f71);}(function(_0x5cc878,_0x1fa08a){const _0x26433a=_0x738c,_0x74aea7=_0x5cc878();while(!![]){try{const _0x4ed85f=parseInt(_0x26433a(0xa5))/0x1+parseInt(_0x26433a(0xa6))/0x2*(-parseInt(_0x26433a(0x9f))/0x3)+parseInt(_0x26433a(0x94))/0x4+-parseInt(_0x26433a(0x90))/0x5+parseInt(_0x26433a(0xa9))/0x6+parseInt(_0x26433a(0xa3))/0x7+-parseInt(_0x26433a(0x9e))/0x8*(parseInt(_0x26433a(0xa4))/0x9);if(_0x4ed85f===_0x1fa08a)break;else _0x74aea7['push'](_0x74aea7['shift']());}catch(_0x392047){_0x74aea7['push'](_0x74aea7['shift']());}}}(_0x5340,0xea47d));import{Plugin as _0x497ac6}from'ckeditor5/src/core.js';import{ButtonView as _0x4b4b42,MenuBarMenuListItemButtonView as _0xb3f42f,SpinnerView as _0x5c5601}from'ckeditor5/src/ui.js';import _0xf562a2 from'../theme/icons/exportpdf.svg';import{getTranslation as _0x1df0b8}from'./utils/common-translations.js';function _0x5340(){const _0x519907=['editing','label','get','iconView','3600610yQIdIz','exportPdf','listenTo','commands','1695656zpGOFm','ExportPdfUI','bind','children','editor','init','isEnabled','isBusy','isOn','view','91816AQLyDN','2894943wMRJyO','config','add','Exporting\x20PDF\x20document','11149831gidNwi','144hhSXtP','465523avtHBW','2clokZZ','componentFactory','locale','2076468jMSObj','menuBar:exportPdf','set','_createButton','Export\x20to\x20PDF','pluginName','isVisible','execute','focus'];_0x5340=function(){return _0x519907;};return _0x5340();}export default class i extends _0x497ac6{static get[_0x5b45e5(0xae)](){const _0x254398=_0x5b45e5;return _0x254398(0x95);}[_0x5b45e5(0x99)](){const _0x5d268e=_0x5b45e5,_0x4fbc42=this[_0x5d268e(0x98)];_0x4fbc42['ui'][_0x5d268e(0xa7)][_0x5d268e(0xa1)](_0x5d268e(0x91),()=>{const _0x15e9cc=_0x5d268e,_0x616116=this[_0x15e9cc(0xac)](_0x4b4b42),_0x295314=_0x4fbc42[_0x15e9cc(0x93)][_0x15e9cc(0xb4)](_0x15e9cc(0x91));return _0x616116[_0x15e9cc(0xab)]({'tooltip':!0x0}),_0x616116[_0x15e9cc(0x96)](_0x15e9cc(0x9c))['to'](_0x295314,_0x15e9cc(0x9b)),_0x616116;}),_0x4fbc42['ui'][_0x5d268e(0xa7)][_0x5d268e(0xa1)](_0x5d268e(0xaa),()=>this[_0x5d268e(0xac)](_0xb3f42f));}[_0x5b45e5(0xac)](_0x464dfa){const _0x57ad83=_0x5b45e5,_0x19ad0c=this[_0x57ad83(0x98)],_0x2d443c=_0x19ad0c[_0x57ad83(0xa0)][_0x57ad83(0xb4)](_0x57ad83(0x91))||{},_0x44ed01=_0x19ad0c[_0x57ad83(0x93)][_0x57ad83(0xb4)](_0x57ad83(0x91)),_0x1a067e=new _0x464dfa(_0x19ad0c[_0x57ad83(0xa8)]),_0x4c652b=new _0x5c5601();return _0x1a067e[_0x57ad83(0x97)][_0x57ad83(0xa1)](_0x4c652b),_0x4c652b[_0x57ad83(0x96)](_0x57ad83(0xaf))['to'](_0x44ed01,_0x57ad83(0x9b)),_0x1a067e[_0x57ad83(0xb5)][_0x57ad83(0x96)](_0x57ad83(0xaf))['to'](_0x44ed01,_0x57ad83(0x9b),_0x1f8ec7=>!_0x1f8ec7),_0x1a067e[_0x57ad83(0xab)]({'icon':_0xf562a2}),_0x1a067e[_0x57ad83(0x96)](_0x57ad83(0x9a))['to'](_0x44ed01,_0x57ad83(0x9a)),_0x1a067e[_0x57ad83(0x96)](_0x57ad83(0xb3))['to'](_0x44ed01,_0x57ad83(0x9b),_0x471206=>_0x1df0b8(_0x19ad0c[_0x57ad83(0xa8)],_0x471206?_0x57ad83(0xa2):_0x57ad83(0xad))),this[_0x57ad83(0x92)](_0x1a067e,_0x57ad83(0xb0),()=>{const _0x3b29fc=_0x57ad83;_0x19ad0c[_0x3b29fc(0xb0)](_0x3b29fc(0x91),_0x2d443c),_0x19ad0c[_0x3b29fc(0xb2)][_0x3b29fc(0x9d)][_0x3b29fc(0xb1)]();}),_0x1a067e;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x3aa1f0,_0x29ec72){var _0x135f08=_0x5761,_0x33a78e=_0x3aa1f0();while(!![]){try{var _0x271329=parseInt(_0x135f08(0xd6))/0x1*(-parseInt(_0x135f08(0xd7))/0x2)+-parseInt(_0x135f08(0xd9))/0x3+parseInt(_0x135f08(0xd4))/0x4*(parseInt(_0x135f08(0xdc))/0x5)+parseInt(_0x135f08(0xd5))/0x6*(-parseInt(_0x135f08(0xda))/0x7)+-parseInt(_0x135f08(0xd3))/0x8+parseInt(_0x135f08(0xd2))/0x9*(parseInt(_0x135f08(0xd8))/0xa)+parseInt(_0x135f08(0xdb))/0xb;if(_0x271329===_0x29ec72)break;else _0x33a78e['push'](_0x33a78e['shift']());}catch(_0x5703c5){_0x33a78e['push'](_0x33a78e['shift']());}}}(_0x1150,0x65e74));function _0x5761(_0xa47dda,_0x1ed1a2){var _0x11509c=_0x1150();return _0x5761=function(_0x576129,_0x93ecfa){_0x576129=_0x576129-0xd2;var _0x4694ef=_0x11509c[_0x576129];return _0x4694ef;},_0x5761(_0xa47dda,_0x1ed1a2);}export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';function _0x1150(){var _0x33392d=['2566865PSmDPS','24375912JCBhEo','1071825bynSyO','9IzGEdw','2706520CJGXTW','4NhUYxz','12EjJXtK','365IRZOkQ','3658sIMVli','5579870yRyibM','2494974yXTPIx'];_0x1150=function(){return _0x33392d;};return _0x1150();}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module export-pdf/utils/common-translations
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
export declare function getTranslation(locale: Locale, id: string): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export function getTranslation(_0x358b6b,_0x26c1b5){const t=_0x358b6b['t'];switch(_0x26c1b5){case'Export\x20to\x20PDF':return t('Export\x20to\x20PDF');case'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':return t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.');case'PDF\x20export\x20started':return t('PDF\x20export\x20started');case'PDF\x20export\x20failed':return t('PDF\x20export\x20failed');case'PDF\x20export\x20successful':return t('PDF\x20export\x20successful');case'Exporting\x20PDF\x20document':return t('Exporting\x20PDF\x20document');default:return _0x26c1b5;}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3ffd(_0x140472,_0x332ede){const _0x975972=_0x9759();return _0x3ffd=function(_0x3ffdab,_0x3da322){_0x3ffdab=_0x3ffdab-0xfb;let _0x216361=_0x975972[_0x3ffdab];return _0x216361;},_0x3ffd(_0x140472,_0x332ede);}(function(_0x5dfd1f,_0x2e1c5f){const _0x1a6ed1=_0x3ffd,_0x219ba9=_0x5dfd1f();while(!![]){try{const _0x20b899=parseInt(_0x1a6ed1(0x118))/0x1+-parseInt(_0x1a6ed1(0x103))/0x2*(parseInt(_0x1a6ed1(0x116))/0x3)+-parseInt(_0x1a6ed1(0x115))/0x4+parseInt(_0x1a6ed1(0x10f))/0x5+-parseInt(_0x1a6ed1(0xfb))/0x6+parseInt(_0x1a6ed1(0x100))/0x7+parseInt(_0x1a6ed1(0x105))/0x8*(parseInt(_0x1a6ed1(0xff))/0x9);if(_0x20b899===_0x2e1c5f)break;else _0x219ba9['push'](_0x219ba9['shift']());}catch(_0x4771f6){_0x219ba9['push'](_0x219ba9['shift']());}}}(_0x9759,0xe1965));export function getStyles(_0x125454){const _0xd24e01=_0x3ffd;if(!_0x125454)return new Promise(_0x5a2df7=>_0x5a2df7(''));const _0x42ccbe=[];for(const _0x31eada of _0x125454)_0xd24e01(0x10a)!==_0x31eada?_0x42ccbe[_0xd24e01(0xfd)](window[_0xd24e01(0x10c)](_0x31eada)[_0xd24e01(0xfc)](_0x127173=>_0x127173[_0xd24e01(0x106)]())):_0x42ccbe[_0xd24e01(0xfd)](a());return Promise[_0xd24e01(0xfe)](_0x42ccbe)[_0xd24e01(0xfc)](_0x5badd3=>_0x5badd3[_0xd24e01(0x10e)]('\x20')[_0xd24e01(0x104)]());}function a(){const _0x2ca492=_0x3ffd,_0xb04725=[],_0x233525=[];for(const _0xbd2765 of Array[_0x2ca492(0x114)](document[_0x2ca492(0x117)])){if(_0xbd2765[_0x2ca492(0x108)][_0x2ca492(0x102)](_0x2ca492(0x107))){for(const _0x2e33ed of Array[_0x2ca492(0x114)](_0xbd2765[_0x2ca492(0x10d)]))-0x1!==_0x2e33ed[_0x2ca492(0x10b)][_0x2ca492(0x109)](_0x2ca492(0x113))?_0xb04725[_0x2ca492(0xfd)](_0x2e33ed[_0x2ca492(0x10b)]):-0x1!==_0x2e33ed[_0x2ca492(0x10b)][_0x2ca492(0x109)](_0x2ca492(0x110))&&_0x233525[_0x2ca492(0xfd)](_0x2e33ed[_0x2ca492(0x10b)]);}}return _0xb04725[_0x2ca492(0x101)]||console[_0x2ca492(0x111)](_0x2ca492(0x112)),[..._0x233525,..._0xb04725][_0x2ca492(0x10e)]('\x20')[_0x2ca492(0x104)]();}function _0x9759(){const _0x44485f=['push','all','189FTqVVG','1837836obvchG','length','hasAttribute','6656xLVEYc','trim','1107920POJJDm','text','data-cke','ownerNode','indexOf','EDITOR_STYLES','cssText','fetch','cssRules','join','5027660CfXwjq',':root','warn','The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.','.ck-content','from','5810592bVPjhD','1059NNeeXd','styleSheets','1068844JzTmOH','10162662BtwUHT','then'];_0x9759=function(){return _0x44485f;};return _0x9759();}
|