@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.
Files changed (111) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/build/export-pdf.js +1 -1
  3. package/build/translations/sr-latn.js +1 -1
  4. package/dist/exportpdf.d.ts +5 -0
  5. package/dist/index.js +1 -1
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/bg.js +1 -1
  11. package/dist/translations/bg.umd.js +1 -1
  12. package/dist/translations/bn.js +1 -1
  13. package/dist/translations/bn.umd.js +1 -1
  14. package/dist/translations/ca.js +1 -1
  15. package/dist/translations/ca.umd.js +1 -1
  16. package/dist/translations/cs.js +1 -1
  17. package/dist/translations/cs.umd.js +1 -1
  18. package/dist/translations/da.js +1 -1
  19. package/dist/translations/da.umd.js +1 -1
  20. package/dist/translations/de.js +1 -1
  21. package/dist/translations/de.umd.js +1 -1
  22. package/dist/translations/el.js +1 -1
  23. package/dist/translations/el.umd.js +1 -1
  24. package/dist/translations/en-au.js +1 -1
  25. package/dist/translations/en-au.umd.js +1 -1
  26. package/dist/translations/en.umd.js +1 -1
  27. package/dist/translations/es-co.js +1 -1
  28. package/dist/translations/es-co.umd.js +1 -1
  29. package/dist/translations/es.js +1 -1
  30. package/dist/translations/es.umd.js +1 -1
  31. package/dist/translations/et.js +1 -1
  32. package/dist/translations/et.umd.js +1 -1
  33. package/dist/translations/fi.js +1 -1
  34. package/dist/translations/fi.umd.js +1 -1
  35. package/dist/translations/fr.js +1 -1
  36. package/dist/translations/fr.umd.js +1 -1
  37. package/dist/translations/gl.js +1 -1
  38. package/dist/translations/gl.umd.js +1 -1
  39. package/dist/translations/he.js +1 -1
  40. package/dist/translations/he.umd.js +1 -1
  41. package/dist/translations/hi.js +1 -1
  42. package/dist/translations/hi.umd.js +1 -1
  43. package/dist/translations/hr.js +1 -1
  44. package/dist/translations/hr.umd.js +1 -1
  45. package/dist/translations/hu.js +1 -1
  46. package/dist/translations/hu.umd.js +1 -1
  47. package/dist/translations/id.js +1 -1
  48. package/dist/translations/id.umd.js +1 -1
  49. package/dist/translations/it.js +1 -1
  50. package/dist/translations/it.umd.js +1 -1
  51. package/dist/translations/ja.js +1 -1
  52. package/dist/translations/ja.umd.js +1 -1
  53. package/dist/translations/jv.js +1 -1
  54. package/dist/translations/jv.umd.js +1 -1
  55. package/dist/translations/ko.js +1 -1
  56. package/dist/translations/ko.umd.js +1 -1
  57. package/dist/translations/lt.js +1 -1
  58. package/dist/translations/lt.umd.js +1 -1
  59. package/dist/translations/lv.js +1 -1
  60. package/dist/translations/lv.umd.js +1 -1
  61. package/dist/translations/ms.js +1 -1
  62. package/dist/translations/ms.umd.js +1 -1
  63. package/dist/translations/nl.js +1 -1
  64. package/dist/translations/nl.umd.js +1 -1
  65. package/dist/translations/no.js +1 -1
  66. package/dist/translations/no.umd.js +1 -1
  67. package/dist/translations/pl.js +1 -1
  68. package/dist/translations/pl.umd.js +1 -1
  69. package/dist/translations/pt-br.js +1 -1
  70. package/dist/translations/pt-br.umd.js +1 -1
  71. package/dist/translations/pt.js +1 -1
  72. package/dist/translations/pt.umd.js +1 -1
  73. package/dist/translations/ro.js +1 -1
  74. package/dist/translations/ro.umd.js +1 -1
  75. package/dist/translations/ru.js +1 -1
  76. package/dist/translations/ru.umd.js +1 -1
  77. package/dist/translations/sk.js +1 -1
  78. package/dist/translations/sk.umd.js +1 -1
  79. package/dist/translations/sr-latn.js +1 -1
  80. package/dist/translations/sr-latn.umd.js +1 -1
  81. package/dist/translations/sr.js +1 -1
  82. package/dist/translations/sr.umd.js +1 -1
  83. package/dist/translations/sv.js +1 -1
  84. package/dist/translations/sv.umd.js +1 -1
  85. package/dist/translations/th.js +1 -1
  86. package/dist/translations/th.umd.js +1 -1
  87. package/dist/translations/tr.js +1 -1
  88. package/dist/translations/tr.umd.js +1 -1
  89. package/dist/translations/ug.js +1 -1
  90. package/dist/translations/ug.umd.js +1 -1
  91. package/dist/translations/uk.js +1 -1
  92. package/dist/translations/uk.umd.js +1 -1
  93. package/dist/translations/ur.js +1 -1
  94. package/dist/translations/ur.umd.js +1 -1
  95. package/dist/translations/vi.js +1 -1
  96. package/dist/translations/vi.umd.js +1 -1
  97. package/dist/translations/zh-cn.js +1 -1
  98. package/dist/translations/zh-cn.umd.js +1 -1
  99. package/dist/translations/zh.js +1 -1
  100. package/dist/translations/zh.umd.js +1 -1
  101. package/dist/utils/common-translations.d.ts +13 -0
  102. package/lang/translations/sr-latn.po +4 -4
  103. package/package.json +4 -4
  104. package/src/exportpdf.d.ts +5 -0
  105. package/src/exportpdf.js +1 -1
  106. package/src/exportpdfcommand.js +1 -1
  107. package/src/exportpdfui.js +1 -1
  108. package/src/index.js +1 -1
  109. package/src/utils/common-translations.d.ts +9 -0
  110. package/src/utils/common-translations.js +23 -0
  111. package/src/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (_0x3c66bc=>{const {'zh-cn':{dictionary:_0x2ca1d1,getPluralForm:_0x559e78}}={'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':_0x517a37=>0x0}};_0x3c66bc['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x3c66bc['zh-cn']['dictionary']=Object['assign'](_0x3c66bc['zh-cn']['dictionary'],_0x2ca1d1),_0x3c66bc['zh-cn']['getPluralForm']=_0x559e78;})(window['CKEDITOR_TRANSLATIONS']||={});
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']||={});
@@ -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':_0x170e03=>0x0}};
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
- (_0x484cf7=>{const {zh:{dictionary:_0x4c145b,getPluralForm:_0x38bdac}}={'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':_0x1cd5e9=>0x0}};_0x484cf7['zh']||={'dictionary':{},'getPluralForm':null},_0x484cf7['zh']['dictionary']=Object['assign'](_0x484cf7['zh']['dictionary'],_0x4c145b),_0x484cf7['zh']['getPluralForm']=_0x38bdac;})(window['CKEDITOR_TRANSLATIONS']||={});
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": "42.0.2",
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": "42.0.2",
34
- "@ckeditor/ckeditor5-ui": "42.0.2",
35
- "ckeditor5": "42.0.2"
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/)",
@@ -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 _0x528c57=_0x51c9;function _0x51c9(_0x35da6f,_0x11cef9){const _0x30db76=_0x30db();return _0x51c9=function(_0x51c94e,_0x9f20e9){_0x51c94e=_0x51c94e-0xec;let _0x6b093f=_0x30db76[_0x51c94e];return _0x6b093f;},_0x51c9(_0x35da6f,_0x11cef9);}(function(_0x3233d4,_0x1ce706){const _0x1936e7=_0x51c9,_0x120608=_0x3233d4();while(!![]){try{const _0x3929db=-parseInt(_0x1936e7(0xfd))/0x1+-parseInt(_0x1936e7(0x101))/0x2*(parseInt(_0x1936e7(0xf2))/0x3)+parseInt(_0x1936e7(0xf8))/0x4*(-parseInt(_0x1936e7(0xf6))/0x5)+parseInt(_0x1936e7(0xf0))/0x6+-parseInt(_0x1936e7(0xf3))/0x7*(parseInt(_0x1936e7(0x104))/0x8)+parseInt(_0x1936e7(0xec))/0x9+parseInt(_0x1936e7(0xf4))/0xa;if(_0x3929db===_0x1ce706)break;else _0x120608['push'](_0x120608['shift']());}catch(_0xa6ce18){_0x120608['push'](_0x120608['shift']());}}}(_0x30db,0xd529f));import{Plugin as _0x2d0271}from'ckeditor5/src/core.js';import{Notification as _0x2f6943}from'ckeditor5/src/ui.js';import _0xaa221c from'./exportpdfcommand.js';function _0x30db(){const _0x54e919=['plugins','ExportPdf','9302571ZphaAH','pluginName','editor','config','3169248qWdTJV','init','231DtCrLN','7231djamYW','21816070fSMmSf','add','5zRMddu','_token','5954668OiFMRK','tokenUrl','token','exportPdf','then','576229PyJRCx','get','requires','CloudServices','20598KyIuXM','registerTokenUrl','commands','96wyKeKo'];_0x30db=function(){return _0x54e919;};return _0x30db();}import _0x5c962f from'./exportpdfui.js';export default class s extends _0x2d0271{static get[_0x528c57(0xed)](){const _0x4bea3e=_0x528c57;return _0x4bea3e(0x106);}static get[_0x528c57(0xff)](){const _0xdacadf=_0x528c57;return[_0xdacadf(0x100),_0x2f6943,_0x5c962f];}[_0x528c57(0xf1)](){const _0xdead81=_0x528c57,_0x3447c2=this[_0xdead81(0xee)],_0x1eb044=_0x3447c2[_0xdead81(0xef)][_0xdead81(0xfe)](_0xdead81(0xfb))||{};_0x3447c2[_0xdead81(0x103)][_0xdead81(0xf5)](_0xdead81(0xfb),new _0xaa221c(_0x3447c2));const _0x56a783=_0x3447c2[_0xdead81(0x105)][_0xdead81(0xfe)](_0xdead81(0x100));!0x1===_0x1eb044[_0xdead81(0xf9)]?this[_0xdead81(0xf7)]=null:_0x1eb044[_0xdead81(0xf9)]?_0x56a783[_0xdead81(0x102)](_0x1eb044[_0xdead81(0xf9)])[_0xdead81(0xfc)](_0x17be60=>{const _0x1991b2=_0xdead81;this[_0x1991b2(0xf7)]=_0x17be60;}):this[_0xdead81(0xf7)]=_0x56a783[_0xdead81(0xfa)];}}
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)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x34ba1e}from'ckeditor5/src/core.js';import{getStyles as _0x52de49}from'./utils.js';export default class o extends _0x34ba1e{constructor(_0x3aab1c){super(_0x3aab1c),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0xb3fd28={}){const _0x359810=this['editor'],t=_0x359810['t'],_0x5ac524=_0xb3fd28['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x337849=_0xb3fd28['dataCallback']||(_0x443cd6=>_0x443cd6['data']['get']()),_0x9c3e25=_0x359810['plugins']['get']('ExportPdf'),_0x12be09=_0xb3fd28['token']||_0x9c3e25['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x52de49(_0xb3fd28['stylesheets']||['EDITOR_STYLES'])['then'](async _0x224c89=>{_0x359810['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x36ca70={'html':'<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'+_0x359810['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x337849(_0x359810)+'\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','css':_0x224c89,'options':_0xb3fd28['converterOptions']},_0x1b727e={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x12be09?{'Authorization':_0x12be09['value']}:null,'x-cs-app-id':_0xb3fd28['appID']||'cke5'},'body':JSON['stringify'](_0x36ca70)};return window['fetch'](_0x5ac524,_0x1b727e)['then'](_0x3987f9=>{if(0xc8!==_0x3987f9['status'])throw _0x3987f9;return _0x3987f9['blob']();})['then'](_0x2f9487=>{_0x359810['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x3336a9='function'==typeof _0xb3fd28['fileName']?_0xb3fd28['fileName']():_0xb3fd28['fileName'];this['_downloadFile'](_0x2f9487,_0x3336a9||'document.pdf');});})['catch'](_0x59c181=>{const _0x1a8fd1=_0x359810['plugins']['get']('Notification');throw _0x359810['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x1a8fd1['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x59c181;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x32d981,_0x3f2e4d){const _0x4ef442=document['createElement']('a');_0x4ef442['href']=window['URL']['createObjectURL'](_0x32d981),_0x4ef442['download']=_0x3f2e4d,_0x4ef442['click'](),_0x4ef442['remove']();}}
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();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x14ccc4}from'ckeditor5/src/core.js';import{ButtonView as _0xce2700,MenuBarMenuListItemButtonView as _0x32f662,SpinnerView as _0x59c93c}from'ckeditor5/src/ui.js';import _0xcc2cdf from'../theme/icons/exportpdf.svg';export default class i extends _0x14ccc4{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x3a5bbe=this['editor'];_0x3a5bbe['ui']['componentFactory']['add']('exportPdf',()=>{const _0x55398e=this['_createButton'](_0xce2700),_0x18fbb4=_0x3a5bbe['commands']['get']('exportPdf');return _0x55398e['set']({'tooltip':!0x0}),_0x55398e['bind']('isOn')['to'](_0x18fbb4,'isBusy'),_0x55398e;}),_0x3a5bbe['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x32f662));}['_createButton'](_0x48b97c){const _0x37d21d=this['editor'],_0x48b285=_0x37d21d['config']['get']('exportPdf')||{},t=_0x37d21d['locale']['t'],_0x282d06=_0x37d21d['commands']['get']('exportPdf'),_0x51e581=new _0x48b97c(_0x37d21d['locale']),_0x5cb232=new _0x59c93c();return _0x51e581['children']['add'](_0x5cb232),_0x5cb232['bind']('isVisible')['to'](_0x282d06,'isBusy'),_0x51e581['iconView']['bind']('isVisible')['to'](_0x282d06,'isBusy',_0x344d3d=>!_0x344d3d),_0x51e581['set']({'icon':_0xcc2cdf}),_0x51e581['bind']('isEnabled')['to'](_0x282d06,'isEnabled'),_0x51e581['bind']('label')['to'](_0x282d06,'isBusy',_0x4c0386=>t(_0x4c0386?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x51e581,'execute',()=>{_0x37d21d['execute']('exportPdf',_0x48b285),_0x37d21d['editing']['view']['focus']();}),_0x51e581;}}
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
- function _0x2f55(_0x290524,_0x276c9f){var _0x3548e0=_0x3548();return _0x2f55=function(_0x2f55c3,_0x1d58b3){_0x2f55c3=_0x2f55c3-0x1b9;var _0x24a829=_0x3548e0[_0x2f55c3];return _0x24a829;},_0x2f55(_0x290524,_0x276c9f);}(function(_0x23d2b5,_0x27e8eb){var _0xb7acb=_0x2f55,_0x58d52f=_0x23d2b5();while(!![]){try{var _0x131e7a=-parseInt(_0xb7acb(0x1c2))/0x1*(-parseInt(_0xb7acb(0x1bb))/0x2)+parseInt(_0xb7acb(0x1bf))/0x3+parseInt(_0xb7acb(0x1bd))/0x4+parseInt(_0xb7acb(0x1ba))/0x5*(parseInt(_0xb7acb(0x1c0))/0x6)+parseInt(_0xb7acb(0x1be))/0x7+-parseInt(_0xb7acb(0x1b9))/0x8*(-parseInt(_0xb7acb(0x1c1))/0x9)+-parseInt(_0xb7acb(0x1bc))/0xa;if(_0x131e7a===_0x27e8eb)break;else _0x58d52f['push'](_0x58d52f['shift']());}catch(_0x2c0dd1){_0x58d52f['push'](_0x58d52f['shift']());}}}(_0x3548,0x46b2d));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';function _0x3548(){var _0x46b115=['752364EdTLtO','12QyCBKJ','54swUHVl','326259hqlTSg','455352QvxYJM','464985SPFBzE','2yREjfI','13302080lQMsfE','697484HdoJaA','2386041PHfIXc'];_0x3548=function(){return _0x46b115;};return _0x3548();}
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 _0x486b(_0x19d51e,_0x4674b4){const _0x2cee6a=_0x2cee();return _0x486b=function(_0x486b18,_0x40a806){_0x486b18=_0x486b18-0x1e9;let _0xc71d7b=_0x2cee6a[_0x486b18];return _0xc71d7b;},_0x486b(_0x19d51e,_0x4674b4);}(function(_0x142721,_0x13bdf2){const _0x806254=_0x486b,_0x459491=_0x142721();while(!![]){try{const _0x28b33b=-parseInt(_0x806254(0x204))/0x1*(parseInt(_0x806254(0x206))/0x2)+parseInt(_0x806254(0x1ff))/0x3*(-parseInt(_0x806254(0x1fc))/0x4)+parseInt(_0x806254(0x1fa))/0x5*(-parseInt(_0x806254(0x1f5))/0x6)+parseInt(_0x806254(0x1e9))/0x7*(-parseInt(_0x806254(0x201))/0x8)+parseInt(_0x806254(0x208))/0x9*(-parseInt(_0x806254(0x1f6))/0xa)+-parseInt(_0x806254(0x1ea))/0xb*(parseInt(_0x806254(0x1f3))/0xc)+-parseInt(_0x806254(0x1ee))/0xd*(-parseInt(_0x806254(0x1fe))/0xe);if(_0x28b33b===_0x13bdf2)break;else _0x459491['push'](_0x459491['shift']());}catch(_0x27f2ff){_0x459491['push'](_0x459491['shift']());}}}(_0x2cee,0xe83aa));export function getStyles(_0x3609a2){const _0x36d1c4=_0x486b;if(!_0x3609a2)return new Promise(_0x5580fe=>_0x5580fe(''));const _0xe6057d=[];for(const _0x4cdf3e of _0x3609a2)_0x36d1c4(0x20a)!==_0x4cdf3e?_0xe6057d[_0x36d1c4(0x1eb)](window[_0x36d1c4(0x207)](_0x4cdf3e)[_0x36d1c4(0x1ef)](_0x15108b=>_0x15108b[_0x36d1c4(0x1fd)]())):_0xe6057d[_0x36d1c4(0x1eb)](f());return Promise[_0x36d1c4(0x205)](_0xe6057d)[_0x36d1c4(0x1ef)](_0x52b277=>_0x52b277[_0x36d1c4(0x1f1)]('\x20')[_0x36d1c4(0x20b)]());}function _0x2cee(){const _0x1a2e08=['11QYDcid','push','hasAttribute',':root','26WgAHQV','then','data-cke','join','length','13133916fQOzKk','cssText','138wgogzk','1970PuIRNk','ownerNode','from','.ck-content','390645sYjMGl','styleSheets','12eePJgO','text','69407282bnheKx','1365651xVmDiw','indexOf','24tinkQX','cssRules','warn','560223tCbcdl','all','6atgIvv','fetch','82278ZZlxLO','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.','EDITOR_STYLES','trim','2859178TmNVFe'];_0x2cee=function(){return _0x1a2e08;};return _0x2cee();}function f(){const _0x25e01b=_0x486b,_0x1fcc42=[],_0x40fcd5=[];for(const _0x2471b0 of Array[_0x25e01b(0x1f8)](document[_0x25e01b(0x1fb)])){if(_0x2471b0[_0x25e01b(0x1f7)][_0x25e01b(0x1ec)](_0x25e01b(0x1f0))){for(const _0x44a2c6 of Array[_0x25e01b(0x1f8)](_0x2471b0[_0x25e01b(0x202)]))-0x1!==_0x44a2c6[_0x25e01b(0x1f4)][_0x25e01b(0x200)](_0x25e01b(0x1f9))?_0x1fcc42[_0x25e01b(0x1eb)](_0x44a2c6[_0x25e01b(0x1f4)]):-0x1!==_0x44a2c6[_0x25e01b(0x1f4)][_0x25e01b(0x200)](_0x25e01b(0x1ed))&&_0x40fcd5[_0x25e01b(0x1eb)](_0x44a2c6[_0x25e01b(0x1f4)]);}}return _0x1fcc42[_0x25e01b(0x1f2)]||console[_0x25e01b(0x203)](_0x25e01b(0x209)),[..._0x40fcd5,..._0x1fcc42][_0x25e01b(0x1f1)]('\x20')[_0x25e01b(0x20b)]();}
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();}