@ckeditor/ckeditor5-export-pdf 42.0.2-alpha.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
- (_0x854e1a=>{const {'zh-cn':{dictionary:_0x1b2291,getPluralForm:_0x2db505}}={'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':_0x3d6d56=>0x0}};_0x854e1a['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x854e1a['zh-cn']['dictionary']=Object['assign'](_0x854e1a['zh-cn']['dictionary'],_0x1b2291),_0x854e1a['zh-cn']['getPluralForm']=_0x2db505;})(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':_0x337ad4=>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
- (_0x1a2117=>{const {zh:{dictionary:_0x3f28f1,getPluralForm:_0x5178ab}}={'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':_0x1164ff=>0x0}};_0x1a2117['zh']||={'dictionary':{},'getPluralForm':null},_0x1a2117['zh']['dictionary']=Object['assign'](_0x1a2117['zh']['dictionary'],_0x3f28f1),_0x1a2117['zh']['getPluralForm']=_0x5178ab;})(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-alpha.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-alpha.2",
34
- "@ckeditor/ckeditor5-ui": "42.0.2-alpha.2",
35
- "ckeditor5": "42.0.2-alpha.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 _0x1251fb=_0x4b2a;(function(_0x10e582,_0x10167b){const _0x138155=_0x4b2a,_0x134755=_0x10e582();while(!![]){try{const _0x4c5fb2=parseInt(_0x138155(0x1d0))/0x1+-parseInt(_0x138155(0x1c8))/0x2*(parseInt(_0x138155(0x1c2))/0x3)+-parseInt(_0x138155(0x1cc))/0x4+parseInt(_0x138155(0x1db))/0x5*(parseInt(_0x138155(0x1c6))/0x6)+-parseInt(_0x138155(0x1d9))/0x7*(-parseInt(_0x138155(0x1c3))/0x8)+parseInt(_0x138155(0x1c7))/0x9+-parseInt(_0x138155(0x1d7))/0xa;if(_0x4c5fb2===_0x10167b)break;else _0x134755['push'](_0x134755['shift']());}catch(_0x750995){_0x134755['push'](_0x134755['shift']());}}}(_0xffab,0x85386));import{Plugin as _0x548bcc}from'ckeditor5/src/core.js';import{Notification as _0x5d35c1}from'ckeditor5/src/ui.js';import _0x28e503 from'./exportpdfcommand.js';function _0xffab(){const _0xcf2da6=['1977966YzebrG','1691812GYHGrn','init','CloudServices','requires','2013736ekcWLq','tokenUrl','exportPdf','add','796768yDJIIG','then','editor','ExportPdf','_token','get','config','11318660zOkKzp','plugins','35QojzDe','token','5sEAXhn','registerTokenUrl','3hiUrEK','1599592gYzPjE','commands','pluginName','6063534vtEvuz'];_0xffab=function(){return _0xcf2da6;};return _0xffab();}import _0x545393 from'./exportpdfui.js';function _0x4b2a(_0x31147b,_0x5779c7){const _0xffab32=_0xffab();return _0x4b2a=function(_0x4b2a04,_0x3e365c){_0x4b2a04=_0x4b2a04-0x1c2;let _0x216540=_0xffab32[_0x4b2a04];return _0x216540;},_0x4b2a(_0x31147b,_0x5779c7);}export default class s extends _0x548bcc{static get[_0x1251fb(0x1c5)](){const _0x3781b3=_0x1251fb;return _0x3781b3(0x1d3);}static get[_0x1251fb(0x1cb)](){const _0x488271=_0x1251fb;return[_0x488271(0x1ca),_0x5d35c1,_0x545393];}[_0x1251fb(0x1c9)](){const _0x4d2ca2=_0x1251fb,_0x4d768b=this[_0x4d2ca2(0x1d2)],_0x4b3778=_0x4d768b[_0x4d2ca2(0x1d6)][_0x4d2ca2(0x1d5)](_0x4d2ca2(0x1ce))||{};_0x4d768b[_0x4d2ca2(0x1c4)][_0x4d2ca2(0x1cf)](_0x4d2ca2(0x1ce),new _0x28e503(_0x4d768b));const _0xa2cdfe=_0x4d768b[_0x4d2ca2(0x1d8)][_0x4d2ca2(0x1d5)](_0x4d2ca2(0x1ca));!0x1===_0x4b3778[_0x4d2ca2(0x1cd)]?this[_0x4d2ca2(0x1d4)]=null:_0x4b3778[_0x4d2ca2(0x1cd)]?_0xa2cdfe[_0x4d2ca2(0x1dc)](_0x4b3778[_0x4d2ca2(0x1cd)])[_0x4d2ca2(0x1d1)](_0x4da909=>{const _0x315c38=_0x4d2ca2;this[_0x315c38(0x1d4)]=_0x4da909;}):this[_0x4d2ca2(0x1d4)]=_0xa2cdfe[_0x4d2ca2(0x1da)];}}
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 _0x3e8b40}from'ckeditor5/src/core.js';import{getStyles as _0x15c8db}from'./utils.js';export default class o extends _0x3e8b40{constructor(_0x43dd6f){super(_0x43dd6f),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x2e33ef={}){const _0x4bddaa=this['editor'],t=_0x4bddaa['t'],_0x9bb7e8=_0x2e33ef['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x1fc782=_0x2e33ef['dataCallback']||(_0x2e3437=>_0x2e3437['data']['get']()),_0x3906d0=_0x4bddaa['plugins']['get']('ExportPdf'),_0x566195=_0x2e33ef['token']||_0x3906d0['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x15c8db(_0x2e33ef['stylesheets']||['EDITOR_STYLES'])['then'](async _0x59ab8b=>{_0x4bddaa['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x2beaa1={'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'+_0x4bddaa['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x1fc782(_0x4bddaa)+'\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':_0x59ab8b,'options':_0x2e33ef['converterOptions']},_0x743a71={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x566195?{'Authorization':_0x566195['value']}:null,'x-cs-app-id':_0x2e33ef['appID']||'cke5'},'body':JSON['stringify'](_0x2beaa1)};return window['fetch'](_0x9bb7e8,_0x743a71)['then'](_0xe1036c=>{if(0xc8!==_0xe1036c['status'])throw _0xe1036c;return _0xe1036c['blob']();})['then'](_0x3ab581=>{_0x4bddaa['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x372808='function'==typeof _0x2e33ef['fileName']?_0x2e33ef['fileName']():_0x2e33ef['fileName'];this['_downloadFile'](_0x3ab581,_0x372808||'document.pdf');});})['catch'](_0x3b5a02=>{const _0x1d487d=_0x4bddaa['plugins']['get']('Notification');throw _0x4bddaa['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x1d487d['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x3b5a02;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x43aa50,_0xbda077){const _0x28f399=document['createElement']('a');_0x28f399['href']=window['URL']['createObjectURL'](_0x43aa50),_0x28f399['download']=_0xbda077,_0x28f399['click'](),_0x28f399['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 _0x178fb0}from'ckeditor5/src/core.js';import{ButtonView as _0x2ac48e,MenuBarMenuListItemButtonView as _0x584ae5,SpinnerView as _0x233e68}from'ckeditor5/src/ui.js';import _0x2c64f3 from'../theme/icons/exportpdf.svg';export default class i extends _0x178fb0{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x5c28e2=this['editor'];_0x5c28e2['ui']['componentFactory']['add']('exportPdf',()=>{const _0x2a6f80=this['_createButton'](_0x2ac48e),_0x481d22=_0x5c28e2['commands']['get']('exportPdf');return _0x2a6f80['set']({'tooltip':!0x0}),_0x2a6f80['bind']('isOn')['to'](_0x481d22,'isBusy'),_0x2a6f80;}),_0x5c28e2['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x584ae5));}['_createButton'](_0x1d7225){const _0x2b1dcc=this['editor'],_0x5a2137=_0x2b1dcc['config']['get']('exportPdf')||{},t=_0x2b1dcc['locale']['t'],_0x5f2961=_0x2b1dcc['commands']['get']('exportPdf'),_0x2ae739=new _0x1d7225(_0x2b1dcc['locale']),_0x3a9608=new _0x233e68();return _0x2ae739['children']['add'](_0x3a9608),_0x3a9608['bind']('isVisible')['to'](_0x5f2961,'isBusy'),_0x2ae739['iconView']['bind']('isVisible')['to'](_0x5f2961,'isBusy',_0x5be16d=>!_0x5be16d),_0x2ae739['set']({'icon':_0x2c64f3}),_0x2ae739['bind']('isEnabled')['to'](_0x5f2961,'isEnabled'),_0x2ae739['bind']('label')['to'](_0x5f2961,'isBusy',_0x47ab99=>t(_0x47ab99?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x2ae739,'execute',()=>{_0x2b1dcc['execute']('exportPdf',_0x5a2137),_0x2b1dcc['editing']['view']['focus']();}),_0x2ae739;}}
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(_0xd80516,_0x43e46f){var _0x2afacd=_0x59bb,_0x5c1fd6=_0xd80516();while(!![]){try{var _0x31eeb1=-parseInt(_0x2afacd(0x10c))/0x1*(parseInt(_0x2afacd(0x10f))/0x2)+parseInt(_0x2afacd(0x109))/0x3*(parseInt(_0x2afacd(0x110))/0x4)+-parseInt(_0x2afacd(0x107))/0x5+parseInt(_0x2afacd(0x10d))/0x6*(-parseInt(_0x2afacd(0x10b))/0x7)+parseInt(_0x2afacd(0x106))/0x8*(parseInt(_0x2afacd(0x10e))/0x9)+parseInt(_0x2afacd(0x108))/0xa+parseInt(_0x2afacd(0x10a))/0xb;if(_0x31eeb1===_0x43e46f)break;else _0x5c1fd6['push'](_0x5c1fd6['shift']());}catch(_0x113db8){_0x5c1fd6['push'](_0x5c1fd6['shift']());}}}(_0x1e2d,0x495bf));function _0x59bb(_0x435d78,_0x4eb61f){var _0x1e2dd0=_0x1e2d();return _0x59bb=function(_0x59bb43,_0x558721){_0x59bb43=_0x59bb43-0x106;var _0x1dff8c=_0x1e2dd0[_0x59bb43];return _0x1dff8c;},_0x59bb(_0x435d78,_0x4eb61f);}export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';function _0x1e2d(){var _0x5e5d61=['573690eblikV','632410MvKZpN','585579qqPnXN','3566024YDypdt','213080QxYQBQ','1vTDnAJ','18PWolaD','9VYdFfa','1021366wgwFvi','12QjImFD','353728PkuIhr'];_0x1e2d=function(){return _0x5e5d61;};return _0x1e2d();}
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 _0x1cf9(_0x5bccaf,_0x3eaecf){const _0x58958c=_0x5895();return _0x1cf9=function(_0x1cf92f,_0x438a20){_0x1cf92f=_0x1cf92f-0x69;let _0x3caf3b=_0x58958c[_0x1cf92f];return _0x3caf3b;},_0x1cf9(_0x5bccaf,_0x3eaecf);}(function(_0x5b3163,_0x3f777b){const _0x37ff51=_0x1cf9,_0x52d6ca=_0x5b3163();while(!![]){try{const _0x3dd25d=parseInt(_0x37ff51(0x6a))/0x1*(-parseInt(_0x37ff51(0x6d))/0x2)+parseInt(_0x37ff51(0x7b))/0x3+parseInt(_0x37ff51(0x73))/0x4+-parseInt(_0x37ff51(0x6c))/0x5*(-parseInt(_0x37ff51(0x69))/0x6)+parseInt(_0x37ff51(0x71))/0x7*(-parseInt(_0x37ff51(0x7d))/0x8)+parseInt(_0x37ff51(0x89))/0x9*(parseInt(_0x37ff51(0x72))/0xa)+-parseInt(_0x37ff51(0x84))/0xb*(parseInt(_0x37ff51(0x6f))/0xc);if(_0x3dd25d===_0x3f777b)break;else _0x52d6ca['push'](_0x52d6ca['shift']());}catch(_0x13b1be){_0x52d6ca['push'](_0x52d6ca['shift']());}}}(_0x5895,0xbb5f7));export function getStyles(_0x526345){const _0x2823ca=_0x1cf9;if(!_0x526345)return new Promise(_0xf6f559=>_0xf6f559(''));const _0x2da854=[];for(const _0xa30abc of _0x526345)_0x2823ca(0x78)!==_0xa30abc?_0x2da854[_0x2823ca(0x7c)](window[_0x2823ca(0x87)](_0xa30abc)[_0x2823ca(0x74)](_0x12c827=>_0x12c827[_0x2823ca(0x77)]())):_0x2da854[_0x2823ca(0x7c)](f());return Promise[_0x2823ca(0x81)](_0x2da854)[_0x2823ca(0x74)](_0x5c8b53=>_0x5c8b53[_0x2823ca(0x88)]('\x20')[_0x2823ca(0x6b)]());}function _0x5895(){const _0x206a33=['ownerNode',':root','all','warn','data-cke','4241468JHkSys','.ck-content','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.','fetch','join','6395436SqrxDs','36UHVgzZ','13444FZHhfk','trim','1120060rTUDkN','186dEqHPE','styleSheets','60OFAiIp','cssText','183302cumvDj','10SnikxW','5281004FCfeFe','then','from','cssRules','text','EDITOR_STYLES','indexOf','hasAttribute','3990534UNnccv','push','232tfBtZT','length'];_0x5895=function(){return _0x206a33;};return _0x5895();}function f(){const _0x129c50=_0x1cf9,_0x230654=[],_0x2d36db=[];for(const _0x46d662 of Array[_0x129c50(0x75)](document[_0x129c50(0x6e)])){if(_0x46d662[_0x129c50(0x7f)][_0x129c50(0x7a)](_0x129c50(0x83))){for(const _0x2aec14 of Array[_0x129c50(0x75)](_0x46d662[_0x129c50(0x76)]))-0x1!==_0x2aec14[_0x129c50(0x70)][_0x129c50(0x79)](_0x129c50(0x85))?_0x230654[_0x129c50(0x7c)](_0x2aec14[_0x129c50(0x70)]):-0x1!==_0x2aec14[_0x129c50(0x70)][_0x129c50(0x79)](_0x129c50(0x80))&&_0x2d36db[_0x129c50(0x7c)](_0x2aec14[_0x129c50(0x70)]);}}return _0x230654[_0x129c50(0x7e)]||console[_0x129c50(0x82)](_0x129c50(0x86)),[..._0x2d36db,..._0x230654][_0x129c50(0x88)]('\x20')[_0x129c50(0x6b)]();}
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();}