@ckeditor/ckeditor5-export-pdf 42.0.2 → 43.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.
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
+ (_0x3900c4=>{const {'zh-cn':{dictionary:_0x88163,getPluralForm:_0x52b814}}={'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':_0x2a31db=>0x0}};_0x3900c4['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x3900c4['zh-cn']['dictionary']=Object['assign'](_0x3900c4['zh-cn']['dictionary'],_0x88163),_0x3900c4['zh-cn']['getPluralForm']=_0x52b814;})(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':_0x569cbb=>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
+ (_0x3643fb=>{const {zh:{dictionary:_0x1c6ac3,getPluralForm:_0x46432e}}={'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':_0x2e00c0=>0x0}};_0x3643fb['zh']||={'dictionary':{},'getPluralForm':null},_0x3643fb['zh']['dictionary']=Object['assign'](_0x3643fb['zh']['dictionary'],_0x1c6ac3),_0x3643fb['zh']['getPluralForm']=_0x46432e;})(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.1",
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.1",
34
+ "@ckeditor/ckeditor5-ui": "43.0.0-alpha.1",
35
+ "ckeditor5": "43.0.0-alpha.1"
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 _0x429a4d=_0x5994;function _0x3f93(){const _0x3e2668=['CloudServices','get','exportPdf','882795nkpzho','ExportPdf','editor','4ASGdSl','4nfedOd','174504IPIZyK','pluginName','then','60173siAYpF','config','init','317165mZlvyW','requires','plugins','2918650rtYiyM','4237720FkSwMc','_token','tokenUrl','token','18nEsnKH','add','1224420hMPqid','commands','registerTokenUrl'];_0x3f93=function(){return _0x3e2668;};return _0x3f93();}(function(_0x3ece33,_0x3182a2){const _0xe7dfb0=_0x5994,_0x55ab9a=_0x3ece33();while(!![]){try{const _0x5414af=-parseInt(_0xe7dfb0(0x97))/0x1*(-parseInt(_0xe7dfb0(0x93))/0x2)+parseInt(_0xe7dfb0(0xaa))/0x3+-parseInt(_0xe7dfb0(0x92))/0x4*(-parseInt(_0xe7dfb0(0x9a))/0x5)+parseInt(_0xe7dfb0(0xa4))/0x6+parseInt(_0xe7dfb0(0x9d))/0x7+-parseInt(_0xe7dfb0(0x94))/0x8+parseInt(_0xe7dfb0(0xa2))/0x9*(-parseInt(_0xe7dfb0(0x9e))/0xa);if(_0x5414af===_0x3182a2)break;else _0x55ab9a['push'](_0x55ab9a['shift']());}catch(_0x4d08dc){_0x55ab9a['push'](_0x55ab9a['shift']());}}}(_0x3f93,0x3814b));import{Plugin as _0x348a40}from'ckeditor5/src/core.js';function _0x5994(_0x1c2433,_0x584e00){const _0x3f9331=_0x3f93();return _0x5994=function(_0x599418,_0x475fa3){_0x599418=_0x599418-0x90;let _0x4ff9a6=_0x3f9331[_0x599418];return _0x4ff9a6;},_0x5994(_0x1c2433,_0x584e00);}import{Notification as _0x4aa83e}from'ckeditor5/src/ui.js';import _0x3cfa9b from'./exportpdfcommand.js';import _0x3ab43c from'./exportpdfui.js';export default class s extends _0x348a40{static get[_0x429a4d(0x95)](){const _0x364a6c=_0x429a4d;return _0x364a6c(0x90);}static get[_0x429a4d(0x9b)](){const _0x3d683b=_0x429a4d;return[_0x3d683b(0xa7),_0x4aa83e,_0x3ab43c];}[_0x429a4d(0x99)](){const _0x33bddb=_0x429a4d,_0x2d8f26=this[_0x33bddb(0x91)],_0x342411=_0x2d8f26[_0x33bddb(0x98)][_0x33bddb(0xa8)](_0x33bddb(0xa9))||{};_0x2d8f26[_0x33bddb(0xa5)][_0x33bddb(0xa3)](_0x33bddb(0xa9),new _0x3cfa9b(_0x2d8f26));const _0x1e0dcd=_0x2d8f26[_0x33bddb(0x9c)][_0x33bddb(0xa8)](_0x33bddb(0xa7));!0x1===_0x342411[_0x33bddb(0xa0)]?this[_0x33bddb(0x9f)]=null:_0x342411[_0x33bddb(0xa0)]?_0x1e0dcd[_0x33bddb(0xa6)](_0x342411[_0x33bddb(0xa0)])[_0x33bddb(0x96)](_0x6eb926=>{const _0x5a59f2=_0x33bddb;this[_0x5a59f2(0x9f)]=_0x6eb926;}):this[_0x33bddb(0x9f)]=_0x1e0dcd[_0x33bddb(0xa1)];}}
@@ -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 _0x5a67f7=_0x476b;(function(_0x351267,_0x419ca6){const _0x5b7099=_0x476b,_0x47c5ae=_0x351267();while(!![]){try{const _0x11bafd=parseInt(_0x5b7099(0x21b))/0x1+-parseInt(_0x5b7099(0x20c))/0x2+-parseInt(_0x5b7099(0x21d))/0x3+parseInt(_0x5b7099(0x1e0))/0x4*(-parseInt(_0x5b7099(0x205))/0x5)+parseInt(_0x5b7099(0x207))/0x6*(-parseInt(_0x5b7099(0x219))/0x7)+-parseInt(_0x5b7099(0x1ec))/0x8+parseInt(_0x5b7099(0x1f0))/0x9;if(_0x11bafd===_0x419ca6)break;else _0x47c5ae['push'](_0x47c5ae['shift']());}catch(_0x38119a){_0x47c5ae['push'](_0x47c5ae['shift']());}}}(_0x41ba,0xc840e));import{Command as _0x4e8ae4}from'ckeditor5/src/core.js';function _0x476b(_0x28c98b,_0x21226d){const _0x41ba6c=_0x41ba();return _0x476b=function(_0x476bce,_0x5d32e2){_0x476bce=_0x476bce-0x1cf;let _0x5b7638=_0x41ba6c[_0x476bce];return _0x5b7638;},_0x476b(_0x28c98b,_0x21226d);}function _0x41ba(){const _0x4b7504=['ariaLiveAnnouncer','status','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','fileName','showWarning','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','assertive','dataCallback','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.','isBusy','cke5','createElement','get','5guSFev','application/json','636pYJmTk','catch','PDF\x20export\x20failed','https://pdf-converter.cke-cs.com/v1/convert/','affectsData','2032220eEASmq','PDF\x20export\x20started','_token','PDF\x20export\x20successful','config','previewMode','download','locale','entries','MergeFields','finally','stylesheets','application/pdf','37849YolDXu','has','925687OvfuuO','getDefaultValues','3424977GSLiSx','announce','ExportPdf','appID','click','converterOptions','token','blob','stringify','isEnabled','then','contentLanguageDirection','refresh','createObjectURL','URL','plugins','value','MergeFieldsEditing','Notification','converterUrl','3917972GTvpyj','remove','mergeFields','<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','pending','POST','execute','getLabel','flattenedMergeFieldDefinitions','href','document.pdf','getDataSetValues','12361304LMXFRk','EDITOR_STYLES','function','fetch','46351062jOBqBx','_downloadFile','$labels','editor','merge_fields','$defaultValues','set','data'];_0x41ba=function(){return _0x4b7504;};return _0x41ba();}import{getStyles as _0x4a6369}from'./utils.js';import{getTranslation as _0x49579f}from'./utils/common-translations.js';export default class o extends _0x4e8ae4{constructor(_0x2a603a){const _0x1a78e5=_0x476b;super(_0x2a603a),this[_0x1a78e5(0x1f6)](_0x1a78e5(0x201),!0x1),this[_0x1a78e5(0x20b)]=!0x1;}[_0x5a67f7(0x1d8)](){const _0x423d8f=_0x5a67f7;this[_0x423d8f(0x1d5)]=!this[_0x423d8f(0x201)],this[_0x423d8f(0x1dc)]=this[_0x423d8f(0x201)]?_0x423d8f(0x1e4):void 0x0;}[_0x5a67f7(0x1e6)](_0x3c1061={}){const _0x1afc89=_0x5a67f7,_0x15c8fb=this[_0x1afc89(0x1f3)],_0xc8b044=_0x3c1061[_0x1afc89(0x1df)]||_0x1afc89(0x20a),_0x13c1f6=_0x3c1061[_0x1afc89(0x1ff)]||(_0x301f93=>_0x301f93[_0x1afc89(0x1f7)][_0x1afc89(0x204)]()),_0x366ce3=_0x15c8fb[_0x1afc89(0x1db)][_0x1afc89(0x204)](_0x1afc89(0x21f)),_0x50a2aa=_0x3c1061[_0x1afc89(0x1d2)]||_0x366ce3[_0x1afc89(0x20e)];return this[_0x1afc89(0x201)]=!0x0,this[_0x1afc89(0x1d8)](),_0x4a6369(_0x3c1061[_0x1afc89(0x217)]||[_0x1afc89(0x1ed)])[_0x1afc89(0x1d6)](async _0x6a1333=>{const _0x343878=_0x1afc89;if(_0x15c8fb['ui'][_0x343878(0x1f8)][_0x343878(0x21e)](_0x49579f(_0x15c8fb[_0x343878(0x213)],_0x343878(0x20d))),_0x15c8fb[_0x343878(0x1db)][_0x343878(0x21a)](_0x343878(0x215))){_0x3c1061[_0x343878(0x1d1)]||(_0x3c1061[_0x343878(0x1d1)]={});const _0x1a50c4=_0x15c8fb[_0x343878(0x1db)][_0x343878(0x204)](_0x343878(0x215)),_0x4005bc=_0x15c8fb[_0x343878(0x1db)][_0x343878(0x204)](_0x343878(0x1dd)),_0x548553=_0x4005bc[_0x343878(0x211)],{prefix:_0x3afa77,suffix:_0x6b3c85}=_0x15c8fb[_0x343878(0x210)][_0x343878(0x204)](_0x343878(0x1e2)),_0x175ac7={'prefix':_0x3afa77,'suffix':_0x6b3c85,'data':{}};if(_0x343878(0x1f2)===_0x548553){for(const _0x246f81 of _0x4005bc[_0x343878(0x1e8)])_0x175ac7[_0x343878(0x1f7)][_0x246f81['id']]=_0x4005bc[_0x343878(0x1e7)](_0x246f81['id']);}else{const _0x3d6d4f=_0x343878(0x1f5)===_0x548553?_0x1a50c4[_0x343878(0x21c)]():_0x1a50c4[_0x343878(0x1eb)](_0x548553,!0x0);for(const _0x5c0518 of Object[_0x343878(0x214)](_0x3d6d4f)){const [_0x208b79,_0x31a392]=_0x5c0518;_0x175ac7[_0x343878(0x1f7)][_0x208b79]=null!==_0x31a392?_0x31a392:_0x4005bc[_0x343878(0x1e7)](_0x208b79);}}_0x3c1061[_0x343878(0x1d1)][_0x343878(0x1f4)]=_0x175ac7;}const _0x5f0ccf={'html':_0x343878(0x1e3)+_0x15c8fb[_0x343878(0x213)][_0x343878(0x1d7)]+_0x343878(0x1fa)+await _0x13c1f6(_0x15c8fb)+_0x343878(0x1fd),'css':_0x6a1333,'options':_0x3c1061[_0x343878(0x1d1)]},_0xe8a201={'method':_0x343878(0x1e5),'headers':{'Content-Type':_0x343878(0x206),'Accept':_0x343878(0x218),..._0x50a2aa?{'Authorization':_0x50a2aa[_0x343878(0x1dc)]}:null,'x-cs-app-id':_0x3c1061[_0x343878(0x1cf)]||_0x343878(0x202)},'body':JSON[_0x343878(0x1d4)](_0x5f0ccf)};return window[_0x343878(0x1ef)](_0xc8b044,_0xe8a201)[_0x343878(0x1d6)](_0x13c3eb=>{const _0x2b3bcc=_0x343878;if(0xc8!==_0x13c3eb[_0x2b3bcc(0x1f9)])throw _0x13c3eb;return _0x13c3eb[_0x2b3bcc(0x1d3)]();})[_0x343878(0x1d6)](_0x1d2779=>{const _0xa069ea=_0x343878;_0x15c8fb['ui'][_0xa069ea(0x1f8)][_0xa069ea(0x21e)](_0x49579f(_0x15c8fb[_0xa069ea(0x213)],_0xa069ea(0x20f)));const _0x58e772=_0xa069ea(0x1ee)==typeof _0x3c1061[_0xa069ea(0x1fb)]?_0x3c1061[_0xa069ea(0x1fb)]():_0x3c1061[_0xa069ea(0x1fb)];this[_0xa069ea(0x1f1)](_0x1d2779,_0x58e772||_0xa069ea(0x1ea));});})[_0x1afc89(0x208)](_0x5e6132=>{const _0x1300c9=_0x1afc89,_0x6d6c50=_0x15c8fb[_0x1300c9(0x1db)][_0x1300c9(0x204)](_0x1300c9(0x1de));throw _0x15c8fb['ui'][_0x1300c9(0x1f8)][_0x1300c9(0x21e)](_0x49579f(_0x15c8fb[_0x1300c9(0x213)],_0x1300c9(0x209)),{'politeness':_0x1300c9(0x1fe)}),_0x6d6c50[_0x1300c9(0x1fc)](_0x49579f(_0x15c8fb[_0x1300c9(0x213)],_0x1300c9(0x200))),_0x5e6132;})[_0x1afc89(0x216)](()=>{const _0x354b9e=_0x1afc89;this[_0x354b9e(0x201)]=!0x1,this[_0x354b9e(0x1d8)]();});}[_0x5a67f7(0x1f1)](_0x5bfffd,_0x2f2bb8){const _0x12f848=_0x5a67f7,_0x28242a=document[_0x12f848(0x203)]('a');_0x28242a[_0x12f848(0x1e9)]=window[_0x12f848(0x1da)][_0x12f848(0x1d9)](_0x5bfffd),_0x28242a[_0x12f848(0x212)]=_0x2f2bb8,_0x28242a[_0x12f848(0x1d0)](),_0x28242a[_0x12f848(0x1e1)]();}}
@@ -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
+ function _0x7333(){const _0x1ee91c=['bind','2194083YVRKPO','componentFactory','20397juzOUj','isVisible','label','52kVwyFC','init','2792dbRxWo','config','add','exportPdf','execute','5fVzTBd','pluginName','Export\x20to\x20PDF','3365100cgLcXu','editing','commands','editor','130204eqkkDf','ExportPdfUI','isBusy','isEnabled','children','134gccNSi','iconView','187cUaKhM','menuBar:exportPdf','get','isOn','locale','4475772HNUCJx','focus','Exporting\x20PDF\x20document','10AZqWqg','set','39kPFwTF','listenTo','_createButton','20321jztuAu','view','1047108UdbuhI'];_0x7333=function(){return _0x1ee91c;};return _0x7333();}function _0x36bd(_0xc16abf,_0xf08c95){const _0x73338c=_0x7333();return _0x36bd=function(_0x36bd04,_0x29f196){_0x36bd04=_0x36bd04-0x15e;let _0xc02b71=_0x73338c[_0x36bd04];return _0xc02b71;},_0x36bd(_0xc16abf,_0xf08c95);}const _0x4b88dc=_0x36bd;(function(_0x49dd1b,_0x10afba){const _0x21dd10=_0x36bd,_0x18adeb=_0x49dd1b();while(!![]){try{const _0x210d9c=parseInt(_0x21dd10(0x170))/0x1*(parseInt(_0x21dd10(0x186))/0x2)+parseInt(_0x21dd10(0x167))/0x3*(parseInt(_0x21dd10(0x181))/0x4)+parseInt(_0x21dd10(0x17a))/0x5*(parseInt(_0x21dd10(0x17d))/0x6)+parseInt(_0x21dd10(0x16a))/0x7*(parseInt(_0x21dd10(0x175))/0x8)+-parseInt(_0x21dd10(0x16e))/0x9*(-parseInt(_0x21dd10(0x165))/0xa)+-parseInt(_0x21dd10(0x188))/0xb*(parseInt(_0x21dd10(0x16c))/0xc)+parseInt(_0x21dd10(0x173))/0xd*(-parseInt(_0x21dd10(0x162))/0xe);if(_0x210d9c===_0x10afba)break;else _0x18adeb['push'](_0x18adeb['shift']());}catch(_0x4d0c6f){_0x18adeb['push'](_0x18adeb['shift']());}}}(_0x7333,0xce627));import{Plugin as _0x4791e2}from'ckeditor5/src/core.js';import{ButtonView as _0x5ed36e,MenuBarMenuListItemButtonView as _0x57f04a,SpinnerView as _0x4835bf}from'ckeditor5/src/ui.js';import _0x3985b1 from'../theme/icons/exportpdf.svg';import{getTranslation as _0x1ae953}from'./utils/common-translations.js';export default class i extends _0x4791e2{static get[_0x4b88dc(0x17b)](){const _0x119168=_0x4b88dc;return _0x119168(0x182);}[_0x4b88dc(0x174)](){const _0x17aed4=_0x4b88dc,_0x3edef4=this[_0x17aed4(0x180)];_0x3edef4['ui'][_0x17aed4(0x16f)][_0x17aed4(0x177)](_0x17aed4(0x178),()=>{const _0xf799e7=_0x17aed4,_0x55ad6e=this[_0xf799e7(0x169)](_0x5ed36e),_0xa27790=_0x3edef4[_0xf799e7(0x17f)][_0xf799e7(0x15f)](_0xf799e7(0x178));return _0x55ad6e[_0xf799e7(0x166)]({'tooltip':!0x0}),_0x55ad6e[_0xf799e7(0x16d)](_0xf799e7(0x160))['to'](_0xa27790,_0xf799e7(0x183)),_0x55ad6e;}),_0x3edef4['ui'][_0x17aed4(0x16f)][_0x17aed4(0x177)](_0x17aed4(0x15e),()=>this[_0x17aed4(0x169)](_0x57f04a));}[_0x4b88dc(0x169)](_0x378121){const _0x148c55=_0x4b88dc,_0x42e5a9=this[_0x148c55(0x180)],_0x1d8169=_0x42e5a9[_0x148c55(0x176)][_0x148c55(0x15f)](_0x148c55(0x178))||{},_0x5043de=_0x42e5a9[_0x148c55(0x17f)][_0x148c55(0x15f)](_0x148c55(0x178)),_0x531089=new _0x378121(_0x42e5a9[_0x148c55(0x161)]),_0x357191=new _0x4835bf();return _0x531089[_0x148c55(0x185)][_0x148c55(0x177)](_0x357191),_0x357191[_0x148c55(0x16d)](_0x148c55(0x171))['to'](_0x5043de,_0x148c55(0x183)),_0x531089[_0x148c55(0x187)][_0x148c55(0x16d)](_0x148c55(0x171))['to'](_0x5043de,_0x148c55(0x183),_0x1e4ce4=>!_0x1e4ce4),_0x531089[_0x148c55(0x166)]({'icon':_0x3985b1}),_0x531089[_0x148c55(0x16d)](_0x148c55(0x184))['to'](_0x5043de,_0x148c55(0x184)),_0x531089[_0x148c55(0x16d)](_0x148c55(0x172))['to'](_0x5043de,_0x148c55(0x183),_0x5da7e7=>_0x1ae953(_0x42e5a9[_0x148c55(0x161)],_0x5da7e7?_0x148c55(0x164):_0x148c55(0x17c))),this[_0x148c55(0x168)](_0x531089,_0x148c55(0x179),()=>{const _0x5be135=_0x148c55;_0x42e5a9[_0x5be135(0x179)](_0x5be135(0x178),_0x1d8169),_0x42e5a9[_0x5be135(0x17e)][_0x5be135(0x16b)][_0x5be135(0x163)]();}),_0x531089;}}
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(_0x40b0eb,_0x129da8){var _0x5d867b=_0x350d,_0x2ac292=_0x40b0eb();while(!![]){try{var _0x12f4c1=-parseInt(_0x5d867b(0x164))/0x1*(parseInt(_0x5d867b(0x166))/0x2)+parseInt(_0x5d867b(0x165))/0x3+parseInt(_0x5d867b(0x160))/0x4+parseInt(_0x5d867b(0x167))/0x5*(-parseInt(_0x5d867b(0x161))/0x6)+parseInt(_0x5d867b(0x169))/0x7*(-parseInt(_0x5d867b(0x168))/0x8)+-parseInt(_0x5d867b(0x163))/0x9+-parseInt(_0x5d867b(0x15f))/0xa*(-parseInt(_0x5d867b(0x162))/0xb);if(_0x12f4c1===_0x129da8)break;else _0x2ac292['push'](_0x2ac292['shift']());}catch(_0x59e33a){_0x2ac292['push'](_0x2ac292['shift']());}}}(_0x5c58,0xccdcb));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';function _0x350d(_0x2c90a5,_0x3c7f8c){var _0x5c5860=_0x5c58();return _0x350d=function(_0x350dc0,_0x5196ec){_0x350dc0=_0x350dc0-0x15f;var _0x208353=_0x5c5860[_0x350dc0];return _0x208353;},_0x350d(_0x2c90a5,_0x3c7f8c);}function _0x5c58(){var _0x3f9b9f=['15ypcHtB','472XybLgm','146293mCieee','7880060aIechB','2076696JbSUmM','1783374eRhOvP','44nnBJxW','2940174wKQAgw','672314ACKDoh','2891877sRtSvn','4TUktMx'];_0x5c58=function(){return _0x3f9b9f;};return _0x5c58();}
@@ -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(_0x3a23bb,_0x82b350){const t=_0x3a23bb['t'];switch(_0x82b350){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 _0x82b350;}}
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(_0x49c868,_0x36d580){const _0x59879f=_0x4990,_0x4d7780=_0x49c868();while(!![]){try{const _0xcca49a=-parseInt(_0x59879f(0xf7))/0x1*(parseInt(_0x59879f(0xf8))/0x2)+-parseInt(_0x59879f(0xf6))/0x3*(-parseInt(_0x59879f(0xe9))/0x4)+-parseInt(_0x59879f(0xe2))/0x5*(-parseInt(_0x59879f(0xe5))/0x6)+parseInt(_0x59879f(0xef))/0x7*(-parseInt(_0x59879f(0xfd))/0x8)+-parseInt(_0x59879f(0xf9))/0x9+-parseInt(_0x59879f(0xf3))/0xa*(-parseInt(_0x59879f(0xed))/0xb)+parseInt(_0x59879f(0xf0))/0xc;if(_0xcca49a===_0x36d580)break;else _0x4d7780['push'](_0x4d7780['shift']());}catch(_0x3b0d87){_0x4d7780['push'](_0x4d7780['shift']());}}}(_0x28aa,0x7aadd));export function getStyles(_0x7e9fc6){const _0xd12ab9=_0x4990;if(!_0x7e9fc6)return new Promise(_0x11406b=>_0x11406b(''));const _0x21713f=[];for(const _0x3a0e3e of _0x7e9fc6)_0xd12ab9(0xf5)!==_0x3a0e3e?_0x21713f[_0xd12ab9(0xfb)](window[_0xd12ab9(0xe3)](_0x3a0e3e)[_0xd12ab9(0xff)](_0x1fd3ed=>_0x1fd3ed[_0xd12ab9(0xe4)]())):_0x21713f[_0xd12ab9(0xfb)](a());return Promise[_0xd12ab9(0xf4)](_0x21713f)[_0xd12ab9(0xff)](_0x1253af=>_0x1253af[_0xd12ab9(0xe8)]('\x20')[_0xd12ab9(0xec)]());}function _0x28aa(){const _0x56531c=['cssText','1704YNEimZ','from','then','hasAttribute','indexOf','ownerNode','1045585NGzgdK','fetch','text','6tmdrKP',':root','length','join','1922016YunJvt','.ck-content','data-cke','trim','22gIELgQ','cssRules','9989QtZRpR','12484992IxZfHU','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.','styleSheets','2788130ttSQaa','all','EDITOR_STYLES','3LqGgvB','883gTMQaW','1654mVtBIu','6758802BgDPxD','warn','push'];_0x28aa=function(){return _0x56531c;};return _0x28aa();}function _0x4990(_0x5c6c53,_0x3f3bba){const _0x28aa02=_0x28aa();return _0x4990=function(_0x49909d,_0x4a0341){_0x49909d=_0x49909d-0xdf;let _0x3ece41=_0x28aa02[_0x49909d];return _0x3ece41;},_0x4990(_0x5c6c53,_0x3f3bba);}function a(){const _0x4948d2=_0x4990,_0x26ca86=[],_0x544417=[];for(const _0x13e2e1 of Array[_0x4948d2(0xfe)](document[_0x4948d2(0xf2)])){if(_0x13e2e1[_0x4948d2(0xe1)][_0x4948d2(0xdf)](_0x4948d2(0xeb))){for(const _0x3edfd8 of Array[_0x4948d2(0xfe)](_0x13e2e1[_0x4948d2(0xee)]))-0x1!==_0x3edfd8[_0x4948d2(0xfc)][_0x4948d2(0xe0)](_0x4948d2(0xea))?_0x26ca86[_0x4948d2(0xfb)](_0x3edfd8[_0x4948d2(0xfc)]):-0x1!==_0x3edfd8[_0x4948d2(0xfc)][_0x4948d2(0xe0)](_0x4948d2(0xe6))&&_0x544417[_0x4948d2(0xfb)](_0x3edfd8[_0x4948d2(0xfc)]);}}return _0x26ca86[_0x4948d2(0xe7)]||console[_0x4948d2(0xfa)](_0x4948d2(0xf1)),[..._0x544417,..._0x26ca86][_0x4948d2(0xe8)]('\x20')[_0x4948d2(0xec)]();}