@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20240624.0 → 0.0.0-nightly-20240625.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 (106) hide show
  1. package/build/export-pdf.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es-co.js +1 -1
  25. package/dist/translations/es-co.umd.js +1 -1
  26. package/dist/translations/es.js +1 -1
  27. package/dist/translations/es.umd.js +1 -1
  28. package/dist/translations/et.js +1 -1
  29. package/dist/translations/et.umd.js +1 -1
  30. package/dist/translations/fi.js +1 -1
  31. package/dist/translations/fi.umd.js +1 -1
  32. package/dist/translations/fr.js +1 -1
  33. package/dist/translations/fr.umd.js +1 -1
  34. package/dist/translations/gl.js +1 -1
  35. package/dist/translations/gl.umd.js +1 -1
  36. package/dist/translations/he.js +1 -1
  37. package/dist/translations/he.umd.js +1 -1
  38. package/dist/translations/hi.js +1 -1
  39. package/dist/translations/hi.umd.js +1 -1
  40. package/dist/translations/hr.js +1 -1
  41. package/dist/translations/hr.umd.js +1 -1
  42. package/dist/translations/hu.js +1 -1
  43. package/dist/translations/hu.umd.js +1 -1
  44. package/dist/translations/id.js +1 -1
  45. package/dist/translations/id.umd.js +1 -1
  46. package/dist/translations/it.js +1 -1
  47. package/dist/translations/it.umd.js +1 -1
  48. package/dist/translations/ja.js +1 -1
  49. package/dist/translations/ja.umd.js +1 -1
  50. package/dist/translations/jv.js +1 -1
  51. package/dist/translations/jv.umd.js +1 -1
  52. package/dist/translations/ko.js +1 -1
  53. package/dist/translations/ko.umd.js +1 -1
  54. package/dist/translations/lt.js +1 -1
  55. package/dist/translations/lt.umd.js +1 -1
  56. package/dist/translations/lv.js +1 -1
  57. package/dist/translations/lv.umd.js +1 -1
  58. package/dist/translations/ms.js +1 -1
  59. package/dist/translations/ms.umd.js +1 -1
  60. package/dist/translations/nl.js +1 -1
  61. package/dist/translations/nl.umd.js +1 -1
  62. package/dist/translations/no.js +1 -1
  63. package/dist/translations/no.umd.js +1 -1
  64. package/dist/translations/pl.js +1 -1
  65. package/dist/translations/pl.umd.js +1 -1
  66. package/dist/translations/pt-br.js +1 -1
  67. package/dist/translations/pt-br.umd.js +1 -1
  68. package/dist/translations/pt.js +1 -1
  69. package/dist/translations/pt.umd.js +1 -1
  70. package/dist/translations/ro.js +1 -1
  71. package/dist/translations/ro.umd.js +1 -1
  72. package/dist/translations/ru.js +1 -1
  73. package/dist/translations/ru.umd.js +1 -1
  74. package/dist/translations/sk.js +1 -1
  75. package/dist/translations/sk.umd.js +1 -1
  76. package/dist/translations/sr-latn.js +1 -1
  77. package/dist/translations/sr-latn.umd.js +1 -1
  78. package/dist/translations/sr.js +1 -1
  79. package/dist/translations/sr.umd.js +1 -1
  80. package/dist/translations/sv.js +1 -1
  81. package/dist/translations/sv.umd.js +1 -1
  82. package/dist/translations/th.js +1 -1
  83. package/dist/translations/th.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/ug.js +1 -1
  87. package/dist/translations/ug.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/dist/types/utils/common-translations.d.ts +13 -0
  99. package/package.json +2 -2
  100. package/src/exportpdf.js +1 -1
  101. package/src/exportpdfcommand.js +1 -1
  102. package/src/exportpdfui.js +1 -1
  103. package/src/index.js +1 -1
  104. package/src/utils/common-translations.d.ts +9 -0
  105. package/src/utils/common-translations.js +23 -0
  106. package/src/utils.js +1 -1
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-pdf",
3
- "version": "0.0.0-nightly-20240624.0",
3
+ "version": "0.0.0-nightly-20240625.0",
4
4
  "description": "Export to PDF feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -30,7 +30,7 @@
30
30
  "type": "module",
31
31
  "main": "src/index.js",
32
32
  "dependencies": {
33
- "ckeditor5": "0.0.0-nightly-20240624.0"
33
+ "ckeditor5": "0.0.0-nightly-20240625.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
package/src/exportpdf.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a8bac=_0x3fc2;function _0x1e08(){const _0x40bff5=['get','CloudServices','_token','239868POpBIb','ExportPdf','editor','pluginName','requires','config','init','tokenUrl','exportPdf','2972564wCHnaT','1568196ytTwUi','registerTokenUrl','plugins','token','537317lGYcnv','1018672iQWDkt','commands','1goHafc','8IlIovr','add','8133255SHEkkk','then','4717356gESLbm','55vVKvxT','340OWpMHa'];_0x1e08=function(){return _0x40bff5;};return _0x1e08();}(function(_0x1ada45,_0x1352d8){const _0x52754e=_0x3fc2,_0x48b56f=_0x1ada45();while(!![]){try{const _0x8b817c=-parseInt(_0x52754e(0x182))/0x1*(parseInt(_0x52754e(0x180))/0x2)+-parseInt(_0x52754e(0x17b))/0x3+parseInt(_0x52754e(0x18d))/0x4*(-parseInt(_0x52754e(0x188))/0x5)+-parseInt(_0x52754e(0x187))/0x6+parseInt(_0x52754e(0x17a))/0x7+-parseInt(_0x52754e(0x183))/0x8*(-parseInt(_0x52754e(0x185))/0x9)+-parseInt(_0x52754e(0x189))/0xa*(-parseInt(_0x52754e(0x17f))/0xb);if(_0x8b817c===_0x1352d8)break;else _0x48b56f['push'](_0x48b56f['shift']());}catch(_0x1c944e){_0x48b56f['push'](_0x48b56f['shift']());}}}(_0x1e08,0x7ccee));import{Plugin as _0x3574f7}from'ckeditor5/src/core.js';import{Notification as _0xa01498}from'ckeditor5/src/ui.js';import _0x58e0d9 from'./exportpdfcommand.js';function _0x3fc2(_0x5d303a,_0xc74253){const _0x1e08d7=_0x1e08();return _0x3fc2=function(_0x3fc27d,_0x212679){_0x3fc27d=_0x3fc27d-0x177;let _0x4f7c12=_0x1e08d7[_0x3fc27d];return _0x4f7c12;},_0x3fc2(_0x5d303a,_0xc74253);}import _0x1d2806 from'./exportpdfui.js';export default class s extends _0x3574f7{static get[_0x4a8bac(0x190)](){const _0x146a09=_0x4a8bac;return _0x146a09(0x18e);}static get[_0x4a8bac(0x191)](){const _0x23059a=_0x4a8bac;return[_0x23059a(0x18b),_0xa01498,_0x1d2806];}[_0x4a8bac(0x177)](){const _0x20aa71=_0x4a8bac,_0x597dcb=this[_0x20aa71(0x18f)],_0x2bd2a4=_0x597dcb[_0x20aa71(0x192)][_0x20aa71(0x18a)](_0x20aa71(0x179))||{};_0x597dcb[_0x20aa71(0x181)][_0x20aa71(0x184)](_0x20aa71(0x179),new _0x58e0d9(_0x597dcb));const _0x2bc42f=_0x597dcb[_0x20aa71(0x17d)][_0x20aa71(0x18a)](_0x20aa71(0x18b));!0x1===_0x2bd2a4[_0x20aa71(0x178)]?this[_0x20aa71(0x18c)]=null:_0x2bd2a4[_0x20aa71(0x178)]?_0x2bc42f[_0x20aa71(0x17c)](_0x2bd2a4[_0x20aa71(0x178)])[_0x20aa71(0x186)](_0x44d075=>{const _0x155991=_0x20aa71;this[_0x155991(0x18c)]=_0x44d075;}):this[_0x20aa71(0x18c)]=_0x2bc42f[_0x20aa71(0x17e)];}}
23
+ const _0x52e375=_0x234e;(function(_0x1f7c3c,_0x21ac28){const _0x1f0db3=_0x234e,_0x456492=_0x1f7c3c();while(!![]){try{const _0x4ecbcf=parseInt(_0x1f0db3(0x1f3))/0x1+-parseInt(_0x1f0db3(0x1e2))/0x2*(-parseInt(_0x1f0db3(0x1f4))/0x3)+parseInt(_0x1f0db3(0x1ec))/0x4+-parseInt(_0x1f0db3(0x1e6))/0x5*(-parseInt(_0x1f0db3(0x1dd))/0x6)+-parseInt(_0x1f0db3(0x1db))/0x7+parseInt(_0x1f0db3(0x1eb))/0x8+-parseInt(_0x1f0db3(0x1f2))/0x9*(parseInt(_0x1f0db3(0x1dc))/0xa);if(_0x4ecbcf===_0x21ac28)break;else _0x456492['push'](_0x456492['shift']());}catch(_0x42c411){_0x456492['push'](_0x456492['shift']());}}}(_0x55ee,0x58b3a));function _0x234e(_0x5781ad,_0x2376c4){const _0x55eeff=_0x55ee();return _0x234e=function(_0x234e72,_0xd22dd4){_0x234e72=_0x234e72-0x1da;let _0x4e3b9f=_0x55eeff[_0x234e72];return _0x4e3b9f;},_0x234e(_0x5781ad,_0x2376c4);}import{Plugin as _0x5efcfc}from'ckeditor5/src/core.js';import{Notification as _0x22355e}from'ckeditor5/src/ui.js';import _0x455714 from'./exportpdfcommand.js';import _0x272a64 from'./exportpdfui.js';export default class s extends _0x5efcfc{static get[_0x52e375(0x1e8)](){const _0x34d046=_0x52e375;return _0x34d046(0x1e0);}static get[_0x52e375(0x1f1)](){const _0x58fab5=_0x52e375;return[_0x58fab5(0x1e3),_0x22355e,_0x272a64];}[_0x52e375(0x1e9)](){const _0x1e95a8=_0x52e375,_0x2450ad=this[_0x1e95a8(0x1ed)],_0x3fe4d0=_0x2450ad[_0x1e95a8(0x1ee)][_0x1e95a8(0x1e5)](_0x1e95a8(0x1ef))||{};_0x2450ad[_0x1e95a8(0x1da)][_0x1e95a8(0x1f0)](_0x1e95a8(0x1ef),new _0x455714(_0x2450ad));const _0x4c1201=_0x2450ad[_0x1e95a8(0x1df)][_0x1e95a8(0x1e5)](_0x1e95a8(0x1e3));!0x1===_0x3fe4d0[_0x1e95a8(0x1ea)]?this[_0x1e95a8(0x1de)]=null:_0x3fe4d0[_0x1e95a8(0x1ea)]?_0x4c1201[_0x1e95a8(0x1e7)](_0x3fe4d0[_0x1e95a8(0x1ea)])[_0x1e95a8(0x1e4)](_0x4065d1=>{const _0x41555e=_0x1e95a8;this[_0x41555e(0x1de)]=_0x4065d1;}):this[_0x1e95a8(0x1de)]=_0x4c1201[_0x1e95a8(0x1e1)];}}function _0x55ee(){const _0x4d0d87=['34371sDnsTn','commands','2494394jZRcCL','9560MhtxVD','6uhHjrB','_token','plugins','ExportPdf','token','74HIAjsf','CloudServices','then','get','2222670XUycum','registerTokenUrl','pluginName','init','tokenUrl','1608344mSmHiB','1728260KhvcAt','editor','config','exportPdf','add','requires','11151ZMVfpv','402597kzBNmj'];_0x55ee=function(){return _0x4d0d87;};return _0x55ee();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x47bd29}from'ckeditor5/src/core.js';import{getStyles as _0x420ba5}from'./utils.js';export default class o extends _0x47bd29{constructor(_0x2dbe30){super(_0x2dbe30),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x34be04={}){const _0x41ffcc=this['editor'],t=_0x41ffcc['t'],_0x35f5e8=_0x34be04['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x76026f=_0x34be04['dataCallback']||(_0xad07e4=>_0xad07e4['data']['get']()),_0x48d4f5=_0x41ffcc['plugins']['get']('ExportPdf'),_0x33c7ed=_0x34be04['token']||_0x48d4f5['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x420ba5(_0x34be04['stylesheets']||['EDITOR_STYLES'])['then'](async _0x18daa7=>{_0x41ffcc['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x305d79={'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'+_0x41ffcc['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x76026f(_0x41ffcc)+'\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':_0x18daa7,'options':_0x34be04['converterOptions']},_0x307447={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x33c7ed?{'Authorization':_0x33c7ed['value']}:null,'x-cs-app-id':_0x34be04['appID']||'cke5'},'body':JSON['stringify'](_0x305d79)};return window['fetch'](_0x35f5e8,_0x307447)['then'](_0xecd4c=>{if(0xc8!==_0xecd4c['status'])throw _0xecd4c;return _0xecd4c['blob']();})['then'](_0x2302fc=>{_0x41ffcc['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x57900f='function'==typeof _0x34be04['fileName']?_0x34be04['fileName']():_0x34be04['fileName'];this['_downloadFile'](_0x2302fc,_0x57900f||'document.pdf');});})['catch'](_0x4a506e=>{const _0x328015=_0x41ffcc['plugins']['get']('Notification');throw _0x41ffcc['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x328015['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x4a506e;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x25f8c6,_0x267fed){const _0x5464cc=document['createElement']('a');_0x5464cc['href']=window['URL']['createObjectURL'](_0x25f8c6),_0x5464cc['download']=_0x267fed,_0x5464cc['click'](),_0x5464cc['remove']();}}
23
+ const _0x25bcd3=_0x2ce9;(function(_0x1d6ef0,_0x1d81a3){const _0x36cdcc=_0x2ce9,_0x381fcd=_0x1d6ef0();while(!![]){try{const _0x56f573=-parseInt(_0x36cdcc(0x121))/0x1+-parseInt(_0x36cdcc(0x12f))/0x2*(parseInt(_0x36cdcc(0x129))/0x3)+parseInt(_0x36cdcc(0x134))/0x4*(parseInt(_0x36cdcc(0x123))/0x5)+parseInt(_0x36cdcc(0xf1))/0x6+-parseInt(_0x36cdcc(0xfc))/0x7*(parseInt(_0x36cdcc(0xf2))/0x8)+-parseInt(_0x36cdcc(0x112))/0x9*(-parseInt(_0x36cdcc(0x108))/0xa)+parseInt(_0x36cdcc(0x125))/0xb*(parseInt(_0x36cdcc(0x11e))/0xc);if(_0x56f573===_0x1d81a3)break;else _0x381fcd['push'](_0x381fcd['shift']());}catch(_0x53f4b0){_0x381fcd['push'](_0x381fcd['shift']());}}}(_0x5edc,0x3875b));import{Command as _0xb425d6}from'ckeditor5/src/core.js';import{getStyles as _0x2e5467}from'./utils.js';import{getTranslation as _0x5181af}from'./utils/common-translations.js';function _0x5edc(){const _0x45d37e=['refresh','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','createElement','pending','Notification','application/json','assertive','cke5','converterUrl','120YuqrcY','createObjectURL','plugins','219629JHSJIl','fileName','32225OsMDfU','showWarning','613217xnAgeG','ariaLiveAnnouncer','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','_token','27711KZpxKx','blob','status','isBusy','data','finally','64CVvoDG','function','set','PDF\x20export\x20successful','announce','4mEzRlj','href','contentLanguageDirection','1089126uxcQvO','16JDuxjw','https://pdf-converter.cke-cs.com/v1/convert/','isEnabled','PDF\x20export\x20failed','get','<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','ExportPdf','POST','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.','fetch','203462GapkWP','execute','then','click','PDF\x20export\x20started','document.pdf','converterOptions','catch','affectsData','editor','_downloadFile','token','320OyABPu','EDITOR_STYLES','appID','remove','locale','application/pdf','download','dataCallback','stringify','stylesheets','16641SsSmMb','URL','value'];_0x5edc=function(){return _0x45d37e;};return _0x5edc();}function _0x2ce9(_0x27cce2,_0x336401){const _0x5edcd3=_0x5edc();return _0x2ce9=function(_0x2ce9ed,_0x5bf7f1){_0x2ce9ed=_0x2ce9ed-0xf0;let _0x5143d5=_0x5edcd3[_0x2ce9ed];return _0x5143d5;},_0x2ce9(_0x27cce2,_0x336401);}export default class o extends _0xb425d6{constructor(_0x3ecfaa){const _0x26db70=_0x2ce9;super(_0x3ecfaa),this[_0x26db70(0x131)](_0x26db70(0x12c),!0x1),this[_0x26db70(0x104)]=!0x1;}[_0x25bcd3(0x115)](){const _0x1c6232=_0x25bcd3;this[_0x1c6232(0xf4)]=!this[_0x1c6232(0x12c)],this[_0x1c6232(0x114)]=this[_0x1c6232(0x12c)]?_0x1c6232(0x118):void 0x0;}[_0x25bcd3(0xfd)](_0x3d6068={}){const _0x5524da=_0x25bcd3,_0x68447f=this[_0x5524da(0x105)],_0x4c6c29=_0x3d6068[_0x5524da(0x11d)]||_0x5524da(0xf3),_0x30cec9=_0x3d6068[_0x5524da(0x10f)]||(_0x308e76=>_0x308e76[_0x5524da(0x12d)][_0x5524da(0xf6)]()),_0xa3aadd=_0x68447f[_0x5524da(0x120)][_0x5524da(0xf6)](_0x5524da(0xf8)),_0x18964a=_0x3d6068[_0x5524da(0x107)]||_0xa3aadd[_0x5524da(0x128)];return this[_0x5524da(0x12c)]=!0x0,this[_0x5524da(0x115)](),_0x2e5467(_0x3d6068[_0x5524da(0x111)]||[_0x5524da(0x109)])[_0x5524da(0xfe)](async _0x24a0ac=>{const _0x506f03=_0x5524da;_0x68447f['ui'][_0x506f03(0x126)][_0x506f03(0x133)](_0x5181af(_0x68447f[_0x506f03(0x10c)],_0x506f03(0x100)));const _0x3171a9={'html':_0x506f03(0xf7)+_0x68447f[_0x506f03(0x10c)][_0x506f03(0xf0)]+_0x506f03(0x127)+await _0x30cec9(_0x68447f)+_0x506f03(0x116),'css':_0x24a0ac,'options':_0x3d6068[_0x506f03(0x102)]},_0x4fe1bc={'method':_0x506f03(0xf9),'headers':{'Content-Type':_0x506f03(0x11a),'Accept':_0x506f03(0x10d),..._0x18964a?{'Authorization':_0x18964a[_0x506f03(0x114)]}:null,'x-cs-app-id':_0x3d6068[_0x506f03(0x10a)]||_0x506f03(0x11c)},'body':JSON[_0x506f03(0x110)](_0x3171a9)};return window[_0x506f03(0xfb)](_0x4c6c29,_0x4fe1bc)[_0x506f03(0xfe)](_0x55f500=>{const _0x2bdf7b=_0x506f03;if(0xc8!==_0x55f500[_0x2bdf7b(0x12b)])throw _0x55f500;return _0x55f500[_0x2bdf7b(0x12a)]();})[_0x506f03(0xfe)](_0x52ad3c=>{const _0x23d41f=_0x506f03;_0x68447f['ui'][_0x23d41f(0x126)][_0x23d41f(0x133)](_0x5181af(_0x68447f[_0x23d41f(0x10c)],_0x23d41f(0x132)));const _0xbf9a3a=_0x23d41f(0x130)==typeof _0x3d6068[_0x23d41f(0x122)]?_0x3d6068[_0x23d41f(0x122)]():_0x3d6068[_0x23d41f(0x122)];this[_0x23d41f(0x106)](_0x52ad3c,_0xbf9a3a||_0x23d41f(0x101));});})[_0x5524da(0x103)](_0x4f2a74=>{const _0x33e489=_0x5524da,_0xbacc83=_0x68447f[_0x33e489(0x120)][_0x33e489(0xf6)](_0x33e489(0x119));throw _0x68447f['ui'][_0x33e489(0x126)][_0x33e489(0x133)](_0x5181af(_0x68447f[_0x33e489(0x10c)],_0x33e489(0xf5)),{'politeness':_0x33e489(0x11b)}),_0xbacc83[_0x33e489(0x124)](_0x5181af(_0x68447f[_0x33e489(0x10c)],_0x33e489(0xfa))),_0x4f2a74;})[_0x5524da(0x12e)](()=>{const _0x1fc9dd=_0x5524da;this[_0x1fc9dd(0x12c)]=!0x1,this[_0x1fc9dd(0x115)]();});}[_0x25bcd3(0x106)](_0x106ad7,_0x470b45){const _0x49d691=_0x25bcd3,_0xcd5c53=document[_0x49d691(0x117)]('a');_0xcd5c53[_0x49d691(0x135)]=window[_0x49d691(0x113)][_0x49d691(0x11f)](_0x106ad7),_0xcd5c53[_0x49d691(0x10e)]=_0x470b45,_0xcd5c53[_0x49d691(0xff)](),_0xcd5c53[_0x49d691(0x10b)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3ef513}from'ckeditor5/src/core.js';import{ButtonView as _0x33e7b8,MenuBarMenuListItemButtonView as _0xcad3f9,SpinnerView as _0x20846b}from'ckeditor5/src/ui.js';import _0x3d4cd8 from'../theme/icons/exportpdf.svg';export default class i extends _0x3ef513{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x470fe1=this['editor'];_0x470fe1['ui']['componentFactory']['add']('exportPdf',()=>{const _0x3b458f=this['_createButton'](_0x33e7b8),_0x22f36f=_0x470fe1['commands']['get']('exportPdf');return _0x3b458f['set']({'tooltip':!0x0}),_0x3b458f['bind']('isOn')['to'](_0x22f36f,'isBusy'),_0x3b458f;}),_0x470fe1['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0xcad3f9));}['_createButton'](_0x29d5cb){const _0x308bff=this['editor'],_0x5ce17d=_0x308bff['config']['get']('exportPdf')||{},t=_0x308bff['locale']['t'],_0x23f2cb=_0x308bff['commands']['get']('exportPdf'),_0x306348=new _0x29d5cb(_0x308bff['locale']),_0x35be2a=new _0x20846b();return _0x306348['children']['add'](_0x35be2a),_0x35be2a['bind']('isVisible')['to'](_0x23f2cb,'isBusy'),_0x306348['iconView']['bind']('isVisible')['to'](_0x23f2cb,'isBusy',_0x2afad1=>!_0x2afad1),_0x306348['set']({'icon':_0x3d4cd8}),_0x306348['bind']('isEnabled')['to'](_0x23f2cb,'isEnabled'),_0x306348['bind']('label')['to'](_0x23f2cb,'isBusy',_0x256794=>t(_0x256794?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x306348,'execute',()=>{_0x308bff['execute']('exportPdf',_0x5ce17d),_0x308bff['editing']['view']['focus']();}),_0x306348;}}
23
+ function _0x3b77(_0x2fb022,_0x359907){const _0x47c95e=_0x47c9();return _0x3b77=function(_0x3b77fd,_0x2b3502){_0x3b77fd=_0x3b77fd-0xce;let _0x2d4713=_0x47c95e[_0x3b77fd];return _0x2d4713;},_0x3b77(_0x2fb022,_0x359907);}const _0x39df7e=_0x3b77;(function(_0x3d795e,_0x411f34){const _0x29b3f1=_0x3b77,_0x1ee8b5=_0x3d795e();while(!![]){try{const _0x281554=parseInt(_0x29b3f1(0xe7))/0x1+parseInt(_0x29b3f1(0xd1))/0x2+-parseInt(_0x29b3f1(0xde))/0x3*(-parseInt(_0x29b3f1(0xe3))/0x4)+-parseInt(_0x29b3f1(0xdf))/0x5+-parseInt(_0x29b3f1(0xe6))/0x6*(parseInt(_0x29b3f1(0xd7))/0x7)+parseInt(_0x29b3f1(0xd2))/0x8*(-parseInt(_0x29b3f1(0xf3))/0x9)+parseInt(_0x29b3f1(0xda))/0xa*(parseInt(_0x29b3f1(0xe4))/0xb);if(_0x281554===_0x411f34)break;else _0x1ee8b5['push'](_0x1ee8b5['shift']());}catch(_0x199a81){_0x1ee8b5['push'](_0x1ee8b5['shift']());}}}(_0x47c9,0x6deb7));import{Plugin as _0x34ef9c}from'ckeditor5/src/core.js';function _0x47c9(){const _0x5e6792=['1169652zliDGB','54728CflQJg','add','isOn','view','exportPdf','1152172wscCTk','isEnabled','locale','380daiOtQ','editing','get','isBusy','37671qJDZof','2930135spCBQo','focus','execute','set','164YDbhhZ','52063kDqgvi','menuBar:exportPdf','24QrXbJE','880313qJSkEd','listenTo','_createButton','ExportPdfUI','isVisible','iconView','pluginName','children','commands','Export\x20to\x20PDF','Exporting\x20PDF\x20document','componentFactory','612igDopL','bind','label','editor','init','config'];_0x47c9=function(){return _0x5e6792;};return _0x47c9();}import{ButtonView as _0x54f9ef,MenuBarMenuListItemButtonView as _0x356ac2,SpinnerView as _0x345e49}from'ckeditor5/src/ui.js';import _0x1d02f1 from'../theme/icons/exportpdf.svg';import{getTranslation as _0x569901}from'./utils/common-translations.js';export default class i extends _0x34ef9c{static get[_0x39df7e(0xed)](){const _0x5680d8=_0x39df7e;return _0x5680d8(0xea);}[_0x39df7e(0xcf)](){const _0x3ba80a=_0x39df7e,_0x2995ed=this[_0x3ba80a(0xce)];_0x2995ed['ui'][_0x3ba80a(0xf2)][_0x3ba80a(0xd3)](_0x3ba80a(0xd6),()=>{const _0x33b676=_0x3ba80a,_0x22e396=this[_0x33b676(0xe9)](_0x54f9ef),_0x5c52bb=_0x2995ed[_0x33b676(0xef)][_0x33b676(0xdc)](_0x33b676(0xd6));return _0x22e396[_0x33b676(0xe2)]({'tooltip':!0x0}),_0x22e396[_0x33b676(0xf4)](_0x33b676(0xd4))['to'](_0x5c52bb,_0x33b676(0xdd)),_0x22e396;}),_0x2995ed['ui'][_0x3ba80a(0xf2)][_0x3ba80a(0xd3)](_0x3ba80a(0xe5),()=>this[_0x3ba80a(0xe9)](_0x356ac2));}[_0x39df7e(0xe9)](_0x4657d5){const _0x240a06=_0x39df7e,_0x582d07=this[_0x240a06(0xce)],_0x86b064=_0x582d07[_0x240a06(0xd0)][_0x240a06(0xdc)](_0x240a06(0xd6))||{},_0xbce823=_0x582d07[_0x240a06(0xef)][_0x240a06(0xdc)](_0x240a06(0xd6)),_0x32acb4=new _0x4657d5(_0x582d07[_0x240a06(0xd9)]),_0x2b94d7=new _0x345e49();return _0x32acb4[_0x240a06(0xee)][_0x240a06(0xd3)](_0x2b94d7),_0x2b94d7[_0x240a06(0xf4)](_0x240a06(0xeb))['to'](_0xbce823,_0x240a06(0xdd)),_0x32acb4[_0x240a06(0xec)][_0x240a06(0xf4)](_0x240a06(0xeb))['to'](_0xbce823,_0x240a06(0xdd),_0x291ef1=>!_0x291ef1),_0x32acb4[_0x240a06(0xe2)]({'icon':_0x1d02f1}),_0x32acb4[_0x240a06(0xf4)](_0x240a06(0xd8))['to'](_0xbce823,_0x240a06(0xd8)),_0x32acb4[_0x240a06(0xf4)](_0x240a06(0xf5))['to'](_0xbce823,_0x240a06(0xdd),_0x1f12e9=>_0x569901(_0x582d07[_0x240a06(0xd9)],_0x1f12e9?_0x240a06(0xf1):_0x240a06(0xf0))),this[_0x240a06(0xe8)](_0x32acb4,_0x240a06(0xe1),()=>{const _0x36d15c=_0x240a06;_0x582d07[_0x36d15c(0xe1)](_0x36d15c(0xd6),_0x86b064),_0x582d07[_0x36d15c(0xdb)][_0x36d15c(0xd5)][_0x36d15c(0xe0)]();}),_0x32acb4;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x178f(_0x54e7c7,_0xe91b6e){var _0x9ff908=_0x9ff9();return _0x178f=function(_0x178fdf,_0x8cd007){_0x178fdf=_0x178fdf-0x8f;var _0x391507=_0x9ff908[_0x178fdf];return _0x391507;},_0x178f(_0x54e7c7,_0xe91b6e);}function _0x9ff9(){var _0x3df76a=['7259427oNtarJ','2790003NVxBUT','5949328neqiyg','6080754Xsrzec','95pBYCdp','4195970xbRUvT','763052BxBIFy','8NjhOIq','7534eNmcPn'];_0x9ff9=function(){return _0x3df76a;};return _0x9ff9();}(function(_0x3d0760,_0x33165a){var _0x3556bf=_0x178f,_0x49c36d=_0x3d0760();while(!![]){try{var _0x1eb5dc=parseInt(_0x3556bf(0x8f))/0x1*(-parseInt(_0x3556bf(0x93))/0x2)+parseInt(_0x3556bf(0x95))/0x3+-parseInt(_0x3556bf(0x91))/0x4+-parseInt(_0x3556bf(0x90))/0x5+parseInt(_0x3556bf(0x97))/0x6+parseInt(_0x3556bf(0x96))/0x7+parseInt(_0x3556bf(0x92))/0x8*(-parseInt(_0x3556bf(0x94))/0x9);if(_0x1eb5dc===_0x33165a)break;else _0x49c36d['push'](_0x49c36d['shift']());}catch(_0x5e0f94){_0x49c36d['push'](_0x49c36d['shift']());}}}(_0x9ff9,0x9239b));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';
23
+ (function(_0x475b9c,_0x1ec7c6){var _0x1f990a=_0x3610,_0x2dc43b=_0x475b9c();while(!![]){try{var _0x3068c9=parseInt(_0x1f990a(0x8f))/0x1+-parseInt(_0x1f990a(0x96))/0x2*(-parseInt(_0x1f990a(0x97))/0x3)+parseInt(_0x1f990a(0x92))/0x4*(parseInt(_0x1f990a(0x98))/0x5)+parseInt(_0x1f990a(0x94))/0x6+parseInt(_0x1f990a(0x93))/0x7*(parseInt(_0x1f990a(0x99))/0x8)+-parseInt(_0x1f990a(0x8e))/0x9*(parseInt(_0x1f990a(0x90))/0xa)+parseInt(_0x1f990a(0x91))/0xb*(-parseInt(_0x1f990a(0x95))/0xc);if(_0x3068c9===_0x1ec7c6)break;else _0x2dc43b['push'](_0x2dc43b['shift']());}catch(_0x4e238b){_0x2dc43b['push'](_0x2dc43b['shift']());}}}(_0x4022,0x4435a));export{default as ExportPdf}from'./exportpdf.js';function _0x3610(_0x363d4,_0x16c3fa){var _0x40223e=_0x4022();return _0x3610=function(_0x36102b,_0x14f6d1){_0x36102b=_0x36102b-0x8e;var _0x49f001=_0x40223e[_0x36102b];return _0x49f001;},_0x3610(_0x363d4,_0x16c3fa);}import'./augmentation.js';function _0x4022(){var _0x484e97=['4vJoIlJ','21cLHGdt','2162976ltaJJL','29568JqSyaa','10910OzVjFg','69HgLWXP','624735usnokt','486232BiJOtN','22086UkQXNf','346531oRljLv','2010pyvNmQ','1639PAlKYu'];_0x4022=function(){return _0x484e97;};return _0x4022();}
@@ -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(_0x29f9a2,_0x1f98fa){const t=_0x29f9a2['t'];switch(_0x1f98fa){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 _0x1f98fa;}}
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1faa(){const _0x1be9f7=['6259460oWrdCY','warn','hasAttribute','indexOf','21dxELiW','text','2277596ouFepe','3265506PfnMhH','.ck-content','data-cke','2934672uRovxY','all','length','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.','then',':root','114942sxhRFu','trim','push','from','59642FVFaZT','ownerNode','styleSheets','cssText','fetch','3416308FANKqb','cssRules','join','EDITOR_STYLES'];_0x1faa=function(){return _0x1be9f7;};return _0x1faa();}(function(_0x1eb548,_0x223d58){const _0xce47ff=_0x220e,_0x4e152e=_0x1eb548();while(!![]){try{const _0x34eddd=-parseInt(_0xce47ff(0x7f))/0x1+parseInt(_0xce47ff(0x7b))/0x2*(-parseInt(_0xce47ff(0x6f))/0x3)+-parseInt(_0xce47ff(0x71))/0x4+parseInt(_0xce47ff(0x88))/0x5+parseInt(_0xce47ff(0x72))/0x6+parseInt(_0xce47ff(0x84))/0x7+-parseInt(_0xce47ff(0x75))/0x8;if(_0x34eddd===_0x223d58)break;else _0x4e152e['push'](_0x4e152e['shift']());}catch(_0x2bd187){_0x4e152e['push'](_0x4e152e['shift']());}}}(_0x1faa,0xd84ff));export function getStyles(_0x5e909b){const _0x471053=_0x220e;if(!_0x5e909b)return new Promise(_0x140989=>_0x140989(''));const _0xfff898=[];for(const _0x133c9d of _0x5e909b)_0x471053(0x87)!==_0x133c9d?_0xfff898[_0x471053(0x7d)](window[_0x471053(0x83)](_0x133c9d)[_0x471053(0x79)](_0x26ec7f=>_0x26ec7f[_0x471053(0x70)]())):_0xfff898[_0x471053(0x7d)](f());return Promise[_0x471053(0x76)](_0xfff898)[_0x471053(0x79)](_0x2553ce=>_0x2553ce[_0x471053(0x86)]('\x20')[_0x471053(0x7c)]());}function _0x220e(_0x5d6852,_0x268db9){const _0x1faa41=_0x1faa();return _0x220e=function(_0x220e76,_0x563dc9){_0x220e76=_0x220e76-0x6d;let _0x4c51e2=_0x1faa41[_0x220e76];return _0x4c51e2;},_0x220e(_0x5d6852,_0x268db9);}function f(){const _0x494e9a=_0x220e,_0x1dd2f1=[],_0x5e6cd1=[];for(const _0x452381 of Array[_0x494e9a(0x7e)](document[_0x494e9a(0x81)])){if(_0x452381[_0x494e9a(0x80)][_0x494e9a(0x6d)](_0x494e9a(0x74))){for(const _0x6983ad of Array[_0x494e9a(0x7e)](_0x452381[_0x494e9a(0x85)]))-0x1!==_0x6983ad[_0x494e9a(0x82)][_0x494e9a(0x6e)](_0x494e9a(0x73))?_0x1dd2f1[_0x494e9a(0x7d)](_0x6983ad[_0x494e9a(0x82)]):-0x1!==_0x6983ad[_0x494e9a(0x82)][_0x494e9a(0x6e)](_0x494e9a(0x7a))&&_0x5e6cd1[_0x494e9a(0x7d)](_0x6983ad[_0x494e9a(0x82)]);}}return _0x1dd2f1[_0x494e9a(0x77)]||console[_0x494e9a(0x89)](_0x494e9a(0x78)),[..._0x5e6cd1,..._0x1dd2f1][_0x494e9a(0x86)]('\x20')[_0x494e9a(0x7c)]();}
23
+ (function(_0x2a2e07,_0x4c512e){const _0x38dcc7=_0x52e2,_0x7db676=_0x2a2e07();while(!![]){try{const _0x3fa970=-parseInt(_0x38dcc7(0x103))/0x1*(parseInt(_0x38dcc7(0x106))/0x2)+-parseInt(_0x38dcc7(0x116))/0x3+-parseInt(_0x38dcc7(0x115))/0x4*(-parseInt(_0x38dcc7(0x10b))/0x5)+parseInt(_0x38dcc7(0x104))/0x6*(-parseInt(_0x38dcc7(0x108))/0x7)+parseInt(_0x38dcc7(0xff))/0x8*(parseInt(_0x38dcc7(0xfe))/0x9)+-parseInt(_0x38dcc7(0x102))/0xa+-parseInt(_0x38dcc7(0x112))/0xb*(-parseInt(_0x38dcc7(0x113))/0xc);if(_0x3fa970===_0x4c512e)break;else _0x7db676['push'](_0x7db676['shift']());}catch(_0x47c341){_0x7db676['push'](_0x7db676['shift']());}}}(_0x4b81,0xb98a6));export function getStyles(_0x579451){const _0x297785=_0x52e2;if(!_0x579451)return new Promise(_0x32a506=>_0x32a506(''));const _0x1ef918=[];for(const _0x1cd6a8 of _0x579451)_0x297785(0xfc)!==_0x1cd6a8?_0x1ef918[_0x297785(0xf6)](window[_0x297785(0xfa)](_0x1cd6a8)[_0x297785(0x110)](_0x320d79=>_0x320d79[_0x297785(0x10d)]())):_0x1ef918[_0x297785(0xf6)](a());return Promise[_0x297785(0x107)](_0x1ef918)[_0x297785(0x110)](_0x1e1930=>_0x1e1930[_0x297785(0xf9)]('\x20')[_0x297785(0xf7)]());}function _0x52e2(_0x10b85f,_0x192935){const _0x4b8143=_0x4b81();return _0x52e2=function(_0x52e29d,_0x3bb1c9){_0x52e29d=_0x52e29d-0xf6;let _0x1478bd=_0x4b8143[_0x52e29d];return _0x1478bd;},_0x52e2(_0x10b85f,_0x192935);}function a(){const _0x3e86cf=_0x52e2,_0x2cf64b=[],_0xb7dc02=[];for(const _0x34f9f9 of Array[_0x3e86cf(0x111)](document[_0x3e86cf(0x10f)])){if(_0x34f9f9[_0x3e86cf(0x10c)][_0x3e86cf(0x101)](_0x3e86cf(0x109))){for(const _0x19f038 of Array[_0x3e86cf(0x111)](_0x34f9f9[_0x3e86cf(0x100)]))-0x1!==_0x19f038[_0x3e86cf(0xfb)][_0x3e86cf(0x114)](_0x3e86cf(0xfd))?_0x2cf64b[_0x3e86cf(0xf6)](_0x19f038[_0x3e86cf(0xfb)]):-0x1!==_0x19f038[_0x3e86cf(0xfb)][_0x3e86cf(0x114)](_0x3e86cf(0xf8))&&_0xb7dc02[_0x3e86cf(0xf6)](_0x19f038[_0x3e86cf(0xfb)]);}}return _0x2cf64b[_0x3e86cf(0x105)]||console[_0x3e86cf(0x10e)](_0x3e86cf(0x10a)),[..._0xb7dc02,..._0x2cf64b][_0x3e86cf(0xf9)]('\x20')[_0x3e86cf(0xf7)]();}function _0x4b81(){const _0x341c16=['join','fetch','cssText','EDITOR_STYLES','.ck-content','9gDaNYg','2806224JxMvyK','cssRules','hasAttribute','8332510dwwoLv','811599QYQJPN','682932bzqMRY','length','2suuCHd','all','91TVdpLY','data-cke','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.','31210rMekRS','ownerNode','text','warn','styleSheets','then','from','275pbFvId','1232412FuGXOm','indexOf','628PEyOzY','41361zoYayP','push','trim',':root'];_0x4b81=function(){return _0x341c16;};return _0x4b81();}