@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20241216.0 → 0.0.0-nightly-20241217.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 (160) 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/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +23 -4
  148. package/src/exportpdf.js +1 -1
  149. package/src/exportpdfcommand.js +1 -1
  150. package/src/exportpdfui.js +1 -1
  151. package/src/index.js +1 -1
  152. package/src/utils/common-translations.js +1 -1
  153. package/src/utils.js +1 -1
  154. package/dist/augmentation.d.ts +0 -25
  155. package/dist/exportpdf.d.ts +0 -242
  156. package/dist/exportpdfcommand.d.ts +0 -43
  157. package/dist/exportpdfui.d.ts +0 -35
  158. package/dist/index.d.ts +0 -14
  159. package/dist/utils/common-translations.d.ts +0 -13
  160. package/dist/utils.d.ts +0 -14
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x544573=_0x77e4;(function(_0x4669b2,_0x5924ca){const _0x2fc077=_0x77e4,_0x5d9eeb=_0x4669b2();while(!![]){try{const _0x5a7cab=-parseInt(_0x2fc077(0x1ae))/0x1+parseInt(_0x2fc077(0x1a1))/0x2*(-parseInt(_0x2fc077(0x195))/0x3)+parseInt(_0x2fc077(0x18d))/0x4+-parseInt(_0x2fc077(0x1a5))/0x5*(-parseInt(_0x2fc077(0x17a))/0x6)+parseInt(_0x2fc077(0x1a2))/0x7*(parseInt(_0x2fc077(0x169))/0x8)+parseInt(_0x2fc077(0x17f))/0x9*(parseInt(_0x2fc077(0x16b))/0xa)+-parseInt(_0x2fc077(0x17d))/0xb;if(_0x5a7cab===_0x5924ca)break;else _0x5d9eeb['push'](_0x5d9eeb['shift']());}catch(_0x3ffceb){_0x5d9eeb['push'](_0x5d9eeb['shift']());}}}(_0x4ec7,0xa5472));import{Command as _0x2ae530}from'ckeditor5/src/core.js';function _0x4ec7(){const _0x2e30bd=['POST','90BOeJNZ','converterOptions','isEnabled','13915099kCGXgh','download','41859caREay','_downloadFile','contentLanguageDirection','plugins','getDataSetValues','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.','previewMode','locale','$labels','has','blob','pending','MergeFields','token','3942804MEreAl','then','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','Notification','config','get','function','<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','9XVZKzG','stringify','https://pdf-converter.cke-cs.com/v1/convert/','application/json','$defaultValues','getLabel','announce','set','MergeFieldsEditing','merge_fields','cke5','PDF\x20export\x20started','279448ijyiHA','4346727iEnWaj','entries','href','128545xIQgDV','showWarning','fetch','click','data','fileName','stylesheets','converterUrl','status','472969mGmhEO','finally','URL','getDefaultValues','affectsData','remove','editor','mergeFields','ariaLiveAnnouncer','value','PDF\x20export\x20failed','EDITOR_STYLES','createElement','_token','8ZQmoLm','application/pdf','1810fdTgTU','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','getMergeFieldsIds','appID','assertive','execute','refresh','catch','createObjectURL','ExportPdf','PDF\x20export\x20successful','isBusy','dataCallback','document.pdf'];_0x4ec7=function(){return _0x2e30bd;};return _0x4ec7();}import{getStyles as _0x5bb5d5}from'./utils.js';function _0x77e4(_0x526492,_0x523610){const _0x4ec703=_0x4ec7();return _0x77e4=function(_0x77e49f,_0x3070ba){_0x77e49f=_0x77e49f-0x15f;let _0x281c22=_0x4ec703[_0x77e49f];return _0x281c22;},_0x77e4(_0x526492,_0x523610);}import{getTranslation as _0x46d5aa}from'./utils/common-translations.js';export default class e extends _0x2ae530{constructor(_0x1070c8){const _0x24ccd5=_0x77e4;super(_0x1070c8),this[_0x24ccd5(0x19c)](_0x24ccd5(0x176),!0x1),this[_0x24ccd5(0x15f)]=!0x1;}[_0x544573(0x171)](){const _0x3f5356=_0x544573;this[_0x3f5356(0x17c)]=!this[_0x3f5356(0x176)],this[_0x3f5356(0x164)]=this[_0x3f5356(0x176)]?_0x3f5356(0x18a):void 0x0;}[_0x544573(0x170)](_0x4fa806={}){const _0x23b98c=_0x544573,_0x66246b=this[_0x23b98c(0x161)],_0x1a186d=_0x4fa806[_0x23b98c(0x1ac)]||_0x23b98c(0x197),_0x44d18c=_0x4fa806[_0x23b98c(0x177)]||(_0x48b926=>_0x48b926[_0x23b98c(0x1a9)][_0x23b98c(0x192)]()),_0x4c6868=_0x66246b[_0x23b98c(0x182)][_0x23b98c(0x192)](_0x23b98c(0x174)),_0xdb8665=_0x4fa806[_0x23b98c(0x18c)]||_0x4c6868[_0x23b98c(0x168)];return this[_0x23b98c(0x176)]=!0x0,this[_0x23b98c(0x171)](),_0x5bb5d5(_0x4fa806[_0x23b98c(0x1ab)]||[_0x23b98c(0x166)])[_0x23b98c(0x18e)](async _0x275c38=>{const _0x4e2a35=_0x23b98c;if(_0x66246b['ui'][_0x4e2a35(0x163)][_0x4e2a35(0x19b)](_0x46d5aa(_0x66246b[_0x4e2a35(0x186)],_0x4e2a35(0x1a0))),_0x66246b[_0x4e2a35(0x182)][_0x4e2a35(0x188)](_0x4e2a35(0x18b))){_0x4fa806[_0x4e2a35(0x17b)]||(_0x4fa806[_0x4e2a35(0x17b)]={});const _0x4d5edb=_0x66246b[_0x4e2a35(0x182)][_0x4e2a35(0x192)](_0x4e2a35(0x19d)),_0x54e78f=_0x4d5edb[_0x4e2a35(0x185)],{prefix:_0x332f7a,suffix:_0x1cb8f2}=_0x66246b[_0x4e2a35(0x191)][_0x4e2a35(0x192)](_0x4e2a35(0x162)),_0x29733f={'prefix':_0x332f7a,'suffix':_0x1cb8f2,'data':{}};if(_0x4e2a35(0x187)===_0x54e78f){for(const _0x5715c9 of _0x4d5edb[_0x4e2a35(0x16d)]())_0x29733f[_0x4e2a35(0x1a9)][_0x5715c9]=_0x332f7a+_0x4d5edb[_0x4e2a35(0x19a)](_0x5715c9)+_0x1cb8f2;}else{const _0x4dd16d=_0x4e2a35(0x199)===_0x54e78f?_0x4d5edb[_0x4e2a35(0x1b1)]():_0x4d5edb[_0x4e2a35(0x183)](_0x54e78f,!0x0);for(const _0x590b43 of Object[_0x4e2a35(0x1a3)](_0x4dd16d)){const [_0x5f1382,_0x4d6254]=_0x590b43;_0x29733f[_0x4e2a35(0x1a9)][_0x5f1382]=null!==_0x4d6254?_0x4d6254:_0x4d5edb[_0x4e2a35(0x19a)](_0x5f1382);}}_0x4fa806[_0x4e2a35(0x17b)][_0x4e2a35(0x19e)]=_0x29733f;}const _0x498cfb={'html':_0x4e2a35(0x194)+_0x66246b[_0x4e2a35(0x186)][_0x4e2a35(0x181)]+_0x4e2a35(0x18f)+await _0x44d18c(_0x66246b)+_0x4e2a35(0x16c),'css':_0x275c38,'options':_0x4fa806[_0x4e2a35(0x17b)]},_0x1d994f={'method':_0x4e2a35(0x179),'headers':{'Content-Type':_0x4e2a35(0x198),'Accept':_0x4e2a35(0x16a),..._0xdb8665?{'Authorization':_0xdb8665[_0x4e2a35(0x164)]}:null,'x-cs-app-id':_0x4fa806[_0x4e2a35(0x16e)]||_0x4e2a35(0x19f)},'body':JSON[_0x4e2a35(0x196)](_0x498cfb)};return window[_0x4e2a35(0x1a7)](_0x1a186d,_0x1d994f)[_0x4e2a35(0x18e)](_0x5bc48f=>{const _0x51c42e=_0x4e2a35;if(0xc8!==_0x5bc48f[_0x51c42e(0x1ad)])throw _0x5bc48f;return _0x5bc48f[_0x51c42e(0x189)]();})[_0x4e2a35(0x18e)](_0x534b1b=>{const _0x42a2e1=_0x4e2a35;_0x66246b['ui'][_0x42a2e1(0x163)][_0x42a2e1(0x19b)](_0x46d5aa(_0x66246b[_0x42a2e1(0x186)],_0x42a2e1(0x175)));const _0x3aaa0f=_0x42a2e1(0x193)==typeof _0x4fa806[_0x42a2e1(0x1aa)]?_0x4fa806[_0x42a2e1(0x1aa)]():_0x4fa806[_0x42a2e1(0x1aa)];this[_0x42a2e1(0x180)](_0x534b1b,_0x3aaa0f||_0x42a2e1(0x178));});})[_0x23b98c(0x172)](_0x5cf38e=>{const _0x33427c=_0x23b98c,_0x1ccf51=_0x66246b[_0x33427c(0x182)][_0x33427c(0x192)](_0x33427c(0x190));throw _0x66246b['ui'][_0x33427c(0x163)][_0x33427c(0x19b)](_0x46d5aa(_0x66246b[_0x33427c(0x186)],_0x33427c(0x165)),{'politeness':_0x33427c(0x16f)}),_0x1ccf51[_0x33427c(0x1a6)](_0x46d5aa(_0x66246b[_0x33427c(0x186)],_0x33427c(0x184))),_0x5cf38e;})[_0x23b98c(0x1af)](()=>{const _0x328aeb=_0x23b98c;this[_0x328aeb(0x176)]=!0x1,this[_0x328aeb(0x171)]();});}[_0x544573(0x180)](_0x58d0ec,_0x55d080){const _0x3f9e37=_0x544573,_0x1b7342=document[_0x3f9e37(0x167)]('a');_0x1b7342[_0x3f9e37(0x1a4)]=window[_0x3f9e37(0x1b0)][_0x3f9e37(0x173)](_0x58d0ec),_0x1b7342[_0x3f9e37(0x17e)]=_0x55d080,_0x1b7342[_0x3f9e37(0x1a8)](),_0x1b7342[_0x3f9e37(0x160)]();}}
23
+ const _0x5d245d=_0x1e34;(function(_0x1a426e,_0x1160f6){const _0x2d7b3f=_0x1e34,_0x1d323e=_0x1a426e();while(!![]){try{const _0x3c2b46=parseInt(_0x2d7b3f(0x114))/0x1+-parseInt(_0x2d7b3f(0xeb))/0x2*(parseInt(_0x2d7b3f(0xea))/0x3)+parseInt(_0x2d7b3f(0xf3))/0x4+-parseInt(_0x2d7b3f(0x103))/0x5*(parseInt(_0x2d7b3f(0x124))/0x6)+parseInt(_0x2d7b3f(0x10e))/0x7*(-parseInt(_0x2d7b3f(0x115))/0x8)+-parseInt(_0x2d7b3f(0xff))/0x9+-parseInt(_0x2d7b3f(0x133))/0xa*(-parseInt(_0x2d7b3f(0xed))/0xb);if(_0x3c2b46===_0x1160f6)break;else _0x1d323e['push'](_0x1d323e['shift']());}catch(_0x31097e){_0x1d323e['push'](_0x1d323e['shift']());}}}(_0x3ce8,0x5cfee));import{Command as _0x4a89d2}from'ckeditor5/src/core.js';function _0x1e34(_0xbeae52,_0x362ff){const _0x3ce856=_0x3ce8();return _0x1e34=function(_0x1e34e0,_0xca6427){_0x1e34e0=_0x1e34e0-0xe7;let _0x381180=_0x3ce856[_0x1e34e0];return _0x381180;},_0x1e34(_0xbeae52,_0x362ff);}import{getStyles as _0x479e87}from'./utils.js';function _0x3ce8(){const _0x4890eb=['catch','status','previewMode','Notification','getMergeFieldsIds','getDefaultValues','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.','MergeFieldsEditing','locale','href','has','ariaLiveAnnouncer','assertive','36pvjnsw','converterOptions','<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','stringify','set','showWarning','stylesheets','PDF\x20export\x20failed','value','application/json','PDF\x20export\x20started','fetch','cke5','then','finally','10ObWhVs','config','editor','fileName','ExportPdf','execute','_token','mergeFields','click','MergeFields','69ShnUGb','12886yMFFMH','dataCallback','17798308mHEFlK','createObjectURL','POST','announce','$labels','affectsData','2060496UxesUf','appID','pending','getLabel','application/pdf','converterUrl','entries','$defaultValues','blob','https://pdf-converter.cke-cs.com/v1/convert/','merge_fields','data','4295439HAwwJz','_downloadFile','isEnabled','EDITOR_STYLES','402940ErAffQ','function','getDataSetValues','document.pdf','contentLanguageDirection','plugins','URL','remove','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','get','createElement','9926rTEKIF','isBusy','token','refresh','PDF\x20export\x20successful','download','26042xymJwr','3776MNzaID','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>'];_0x3ce8=function(){return _0x4890eb;};return _0x3ce8();}import{getTranslation as _0x15301d}from'./utils/common-translations.js';export default class e extends _0x4a89d2{constructor(_0x124ec1){const _0x2e949f=_0x1e34;super(_0x124ec1),this[_0x2e949f(0x128)](_0x2e949f(0x10f),!0x1),this[_0x2e949f(0xf2)]=!0x1;}[_0x5d245d(0x111)](){const _0x4b72b3=_0x5d245d;this[_0x4b72b3(0x101)]=!this[_0x4b72b3(0x10f)],this[_0x4b72b3(0x12c)]=this[_0x4b72b3(0x10f)]?_0x4b72b3(0xf5):void 0x0;}[_0x5d245d(0x138)](_0x9be97c={}){const _0x50acc1=_0x5d245d,_0x14033c=this[_0x50acc1(0x135)],_0x5204c9=_0x9be97c[_0x50acc1(0xf8)]||_0x50acc1(0xfc),_0x554d3b=_0x9be97c[_0x50acc1(0xec)]||(_0xd96753=>_0xd96753[_0x50acc1(0xfe)][_0x50acc1(0x10c)]()),_0x244e7b=_0x14033c[_0x50acc1(0x108)][_0x50acc1(0x10c)](_0x50acc1(0x137)),_0x23ea6e=_0x9be97c[_0x50acc1(0x110)]||_0x244e7b[_0x50acc1(0x139)];return this[_0x50acc1(0x10f)]=!0x0,this[_0x50acc1(0x111)](),_0x479e87(_0x9be97c[_0x50acc1(0x12a)]||[_0x50acc1(0x102)])[_0x50acc1(0x131)](async _0x153be3=>{const _0x41a055=_0x50acc1;if(_0x14033c['ui'][_0x41a055(0x122)][_0x41a055(0xf0)](_0x15301d(_0x14033c[_0x41a055(0x11f)],_0x41a055(0x12e))),_0x14033c[_0x41a055(0x108)][_0x41a055(0x121)](_0x41a055(0xe9))){_0x9be97c[_0x41a055(0x125)]||(_0x9be97c[_0x41a055(0x125)]={});const _0xfed61e=_0x14033c[_0x41a055(0x108)][_0x41a055(0x10c)](_0x41a055(0x11e)),_0x1826e4=_0xfed61e[_0x41a055(0x119)],{prefix:_0x2706d0,suffix:_0x293580}=_0x14033c[_0x41a055(0x134)][_0x41a055(0x10c)](_0x41a055(0xe7)),_0x660511={'prefix':_0x2706d0,'suffix':_0x293580,'data':{}};if(_0x41a055(0xf1)===_0x1826e4){for(const _0x25fe93 of _0xfed61e[_0x41a055(0x11b)]())_0x660511[_0x41a055(0xfe)][_0x25fe93]=_0x2706d0+_0xfed61e[_0x41a055(0xf6)](_0x25fe93)+_0x293580;}else{const _0x4f17ba=_0x41a055(0xfa)===_0x1826e4?_0xfed61e[_0x41a055(0x11c)]():_0xfed61e[_0x41a055(0x105)](_0x1826e4,!0x0);for(const _0x3c70ec of Object[_0x41a055(0xf9)](_0x4f17ba)){const [_0x5a48de,_0x312223]=_0x3c70ec;_0x660511[_0x41a055(0xfe)][_0x5a48de]=null!==_0x312223?_0x312223:_0xfed61e[_0x41a055(0xf6)](_0x5a48de);}}_0x9be97c[_0x41a055(0x125)][_0x41a055(0xfd)]=_0x660511;}const _0x1f66c0={'html':_0x41a055(0x126)+_0x14033c[_0x41a055(0x11f)][_0x41a055(0x107)]+_0x41a055(0x10b)+await _0x554d3b(_0x14033c)+_0x41a055(0x116),'css':_0x153be3,'options':_0x9be97c[_0x41a055(0x125)]},_0x29ca9c={'method':_0x41a055(0xef),'headers':{'Content-Type':_0x41a055(0x12d),'Accept':_0x41a055(0xf7),..._0x23ea6e?{'Authorization':_0x23ea6e[_0x41a055(0x12c)]}:null,'x-cs-app-id':_0x9be97c[_0x41a055(0xf4)]||_0x41a055(0x130)},'body':JSON[_0x41a055(0x127)](_0x1f66c0)};return window[_0x41a055(0x12f)](_0x5204c9,_0x29ca9c)[_0x41a055(0x131)](_0xc41f09=>{const _0x43498f=_0x41a055;if(0xc8!==_0xc41f09[_0x43498f(0x118)])throw _0xc41f09;return _0xc41f09[_0x43498f(0xfb)]();})[_0x41a055(0x131)](_0x5e16c1=>{const _0x1e1826=_0x41a055;_0x14033c['ui'][_0x1e1826(0x122)][_0x1e1826(0xf0)](_0x15301d(_0x14033c[_0x1e1826(0x11f)],_0x1e1826(0x112)));const _0x3d0d00=_0x1e1826(0x104)==typeof _0x9be97c[_0x1e1826(0x136)]?_0x9be97c[_0x1e1826(0x136)]():_0x9be97c[_0x1e1826(0x136)];this[_0x1e1826(0x100)](_0x5e16c1,_0x3d0d00||_0x1e1826(0x106));});})[_0x50acc1(0x117)](_0x9c1935=>{const _0x171d32=_0x50acc1,_0x1b2603=_0x14033c[_0x171d32(0x108)][_0x171d32(0x10c)](_0x171d32(0x11a));throw _0x14033c['ui'][_0x171d32(0x122)][_0x171d32(0xf0)](_0x15301d(_0x14033c[_0x171d32(0x11f)],_0x171d32(0x12b)),{'politeness':_0x171d32(0x123)}),_0x1b2603[_0x171d32(0x129)](_0x15301d(_0x14033c[_0x171d32(0x11f)],_0x171d32(0x11d))),_0x9c1935;})[_0x50acc1(0x132)](()=>{const _0x13b2cc=_0x50acc1;this[_0x13b2cc(0x10f)]=!0x1,this[_0x13b2cc(0x111)]();});}[_0x5d245d(0x100)](_0x14d1bd,_0x168c19){const _0x4948fe=_0x5d245d,_0x5b80ef=document[_0x4948fe(0x10d)]('a');_0x5b80ef[_0x4948fe(0x120)]=window[_0x4948fe(0x109)][_0x4948fe(0xee)](_0x14d1bd),_0x5b80ef[_0x4948fe(0x113)]=_0x168c19,_0x5b80ef[_0x4948fe(0xe8)](),_0x5b80ef[_0x4948fe(0x10a)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14b750=_0x532e;(function(_0x5ee081,_0x297d3a){const _0xf97f4e=_0x532e,_0x2d8288=_0x5ee081();while(!![]){try{const _0x54d6c0=parseInt(_0xf97f4e(0x1e4))/0x1+-parseInt(_0xf97f4e(0x1eb))/0x2+parseInt(_0xf97f4e(0x1fa))/0x3+-parseInt(_0xf97f4e(0x1e0))/0x4+parseInt(_0xf97f4e(0x1f9))/0x5*(-parseInt(_0xf97f4e(0x1e1))/0x6)+-parseInt(_0xf97f4e(0x1e3))/0x7+-parseInt(_0xf97f4e(0x202))/0x8*(-parseInt(_0xf97f4e(0x1e8))/0x9);if(_0x54d6c0===_0x297d3a)break;else _0x2d8288['push'](_0x2d8288['shift']());}catch(_0x47d7fc){_0x2d8288['push'](_0x2d8288['shift']());}}}(_0x13ed,0x80046));function _0x13ed(){const _0x13b3d7=['pluginName','isOn','isPremiumPlugin','Exporting\x20PDF\x20document','config','init','35360gEZeQS','ExportPdfUI','set','get','focus','isOfficialPlugin','1177988nqllnf','12uZmkTU','children','4676539wUsNak','693331hUCQLi','locale','menuBar:exportPdf','listenTo','3627cGrXCJ','label','exportPdf','1950570kWTSYN','editor','isEnabled','editing','view','execute','componentFactory','commands','Export\x20to\x20PDF','bind','add','iconView','isBusy','isVisible','2249020HEpBMP','2661702eoEpij','_createButton'];_0x13ed=function(){return _0x13b3d7;};return _0x13ed();}import{Plugin as _0x41b7fa}from'ckeditor5/src/core.js';function _0x532e(_0x203b89,_0x57d600){const _0x13ed96=_0x13ed();return _0x532e=function(_0x532eb8,_0x371e2){_0x532eb8=_0x532eb8-0x1df;let _0x1369b8=_0x13ed96[_0x532eb8];return _0x1369b8;},_0x532e(_0x203b89,_0x57d600);}import{ButtonView as _0x3565c6,MenuBarMenuListItemButtonView as _0x4603ba,SpinnerView as _0xb1bad4}from'ckeditor5/src/ui.js';import _0x4562bd from'../theme/icons/exportpdf.svg';import{getTranslation as _0x4b8a10}from'./utils/common-translations.js';export default class s extends _0x41b7fa{static get[_0x14b750(0x1fc)](){const _0x170053=_0x14b750;return _0x170053(0x203);}static get[_0x14b750(0x1df)](){return!0x0;}static get[_0x14b750(0x1fe)](){return!0x0;}[_0x14b750(0x201)](){const _0x595a69=_0x14b750,_0x31328e=this[_0x595a69(0x1ec)];_0x31328e['ui'][_0x595a69(0x1f1)][_0x595a69(0x1f5)](_0x595a69(0x1ea),()=>{const _0x5d99ea=_0x595a69,_0x21c6e3=this[_0x5d99ea(0x1fb)](_0x3565c6),_0x447060=_0x31328e[_0x5d99ea(0x1f2)][_0x5d99ea(0x205)](_0x5d99ea(0x1ea));return _0x21c6e3[_0x5d99ea(0x204)]({'tooltip':!0x0}),_0x21c6e3[_0x5d99ea(0x1f4)](_0x5d99ea(0x1fd))['to'](_0x447060,_0x5d99ea(0x1f7)),_0x21c6e3;}),_0x31328e['ui'][_0x595a69(0x1f1)][_0x595a69(0x1f5)](_0x595a69(0x1e6),()=>this[_0x595a69(0x1fb)](_0x4603ba));}[_0x14b750(0x1fb)](_0x321748){const _0x6f4ffc=_0x14b750,_0x59e081=this[_0x6f4ffc(0x1ec)],_0x175e84=_0x59e081[_0x6f4ffc(0x200)][_0x6f4ffc(0x205)](_0x6f4ffc(0x1ea))||{},_0x1be6db=_0x59e081[_0x6f4ffc(0x1f2)][_0x6f4ffc(0x205)](_0x6f4ffc(0x1ea)),_0x426576=new _0x321748(_0x59e081[_0x6f4ffc(0x1e5)]),_0x5d1e83=new _0xb1bad4();return _0x426576[_0x6f4ffc(0x1e2)][_0x6f4ffc(0x1f5)](_0x5d1e83),_0x5d1e83[_0x6f4ffc(0x1f4)](_0x6f4ffc(0x1f8))['to'](_0x1be6db,_0x6f4ffc(0x1f7)),_0x426576[_0x6f4ffc(0x1f6)][_0x6f4ffc(0x1f4)](_0x6f4ffc(0x1f8))['to'](_0x1be6db,_0x6f4ffc(0x1f7),_0x5e9a72=>!_0x5e9a72),_0x426576[_0x6f4ffc(0x204)]({'icon':_0x4562bd}),_0x426576[_0x6f4ffc(0x1f4)](_0x6f4ffc(0x1ed))['to'](_0x1be6db,_0x6f4ffc(0x1ed)),_0x426576[_0x6f4ffc(0x1f4)](_0x6f4ffc(0x1e9))['to'](_0x1be6db,_0x6f4ffc(0x1f7),_0xbfad4=>_0x4b8a10(_0x59e081[_0x6f4ffc(0x1e5)],_0xbfad4?_0x6f4ffc(0x1ff):_0x6f4ffc(0x1f3))),this[_0x6f4ffc(0x1e7)](_0x426576,_0x6f4ffc(0x1f0),()=>{const _0x1c5f78=_0x6f4ffc;_0x59e081[_0x1c5f78(0x1f0)](_0x1c5f78(0x1ea),_0x175e84),_0x59e081[_0x1c5f78(0x1ee)][_0x1c5f78(0x1ef)][_0x1c5f78(0x206)]();}),_0x426576;}}
23
+ const _0x1f3e2b=_0x4cbe;function _0x4cbe(_0x2c5354,_0x365283){const _0x3035e0=_0x3035();return _0x4cbe=function(_0x4cbeaa,_0x5a43f3){_0x4cbeaa=_0x4cbeaa-0x163;let _0x3744b5=_0x3035e0[_0x4cbeaa];return _0x3744b5;},_0x4cbe(_0x2c5354,_0x365283);}(function(_0xdd9c3,_0x3b1028){const _0x3357f7=_0x4cbe,_0x290017=_0xdd9c3();while(!![]){try{const _0x22282c=-parseInt(_0x3357f7(0x187))/0x1*(-parseInt(_0x3357f7(0x179))/0x2)+parseInt(_0x3357f7(0x16d))/0x3*(parseInt(_0x3357f7(0x170))/0x4)+parseInt(_0x3357f7(0x178))/0x5*(-parseInt(_0x3357f7(0x185))/0x6)+parseInt(_0x3357f7(0x168))/0x7*(-parseInt(_0x3357f7(0x182))/0x8)+parseInt(_0x3357f7(0x165))/0x9+-parseInt(_0x3357f7(0x166))/0xa+parseInt(_0x3357f7(0x173))/0xb;if(_0x22282c===_0x3b1028)break;else _0x290017['push'](_0x290017['shift']());}catch(_0x32882f){_0x290017['push'](_0x290017['shift']());}}}(_0x3035,0xe5c60));function _0x3035(){const _0x59bfe6=['17xLdesk','label','isOfficialPlugin','set','commands','listenTo','ExportPdfUI','config','3785364VHnirW','3819490YWyznN','isOn','14077viAFdG','pluginName','iconView','bind','componentFactory','4480689HEoNGd','execute','children','4EhTUnI','Exporting\x20PDF\x20document','isVisible','5032060BgnimD','editing','focus','locale','isEnabled','631315XwTBSE','178972msXMJS','_createButton','exportPdf','init','isBusy','isPremiumPlugin','menuBar:exportPdf','Export\x20to\x20PDF','get','5200nEJOus','view','add','60MhEcKi','editor'];_0x3035=function(){return _0x59bfe6;};return _0x3035();}import{Plugin as _0x3d0cc2}from'ckeditor5/src/core.js';import{ButtonView as _0x50270d,MenuBarMenuListItemButtonView as _0x2fe5fd,SpinnerView as _0x3f8691}from'ckeditor5/src/ui.js';import _0x3d5c7a from'../theme/icons/exportpdf.svg';import{getTranslation as _0x1c9847}from'./utils/common-translations.js';export default class s extends _0x3d0cc2{static get[_0x1f3e2b(0x169)](){const _0xd838b4=_0x1f3e2b;return _0xd838b4(0x163);}static get[_0x1f3e2b(0x189)](){return!0x0;}static get[_0x1f3e2b(0x17e)](){return!0x0;}[_0x1f3e2b(0x17c)](){const _0x21dbe8=_0x1f3e2b,_0x29b0a9=this[_0x21dbe8(0x186)];_0x29b0a9['ui'][_0x21dbe8(0x16c)][_0x21dbe8(0x184)](_0x21dbe8(0x17b),()=>{const _0x56d211=_0x21dbe8,_0x49bacf=this[_0x56d211(0x17a)](_0x50270d),_0x83a439=_0x29b0a9[_0x56d211(0x18b)][_0x56d211(0x181)](_0x56d211(0x17b));return _0x49bacf[_0x56d211(0x18a)]({'tooltip':!0x0}),_0x49bacf[_0x56d211(0x16b)](_0x56d211(0x167))['to'](_0x83a439,_0x56d211(0x17d)),_0x49bacf;}),_0x29b0a9['ui'][_0x21dbe8(0x16c)][_0x21dbe8(0x184)](_0x21dbe8(0x17f),()=>this[_0x21dbe8(0x17a)](_0x2fe5fd));}[_0x1f3e2b(0x17a)](_0x334bf2){const _0xe4a3ac=_0x1f3e2b,_0x16d178=this[_0xe4a3ac(0x186)],_0x59e45f=_0x16d178[_0xe4a3ac(0x164)][_0xe4a3ac(0x181)](_0xe4a3ac(0x17b))||{},_0x2b0581=_0x16d178[_0xe4a3ac(0x18b)][_0xe4a3ac(0x181)](_0xe4a3ac(0x17b)),_0x1b09ab=new _0x334bf2(_0x16d178[_0xe4a3ac(0x176)]),_0x3360ea=new _0x3f8691();return _0x1b09ab[_0xe4a3ac(0x16f)][_0xe4a3ac(0x184)](_0x3360ea),_0x3360ea[_0xe4a3ac(0x16b)](_0xe4a3ac(0x172))['to'](_0x2b0581,_0xe4a3ac(0x17d)),_0x1b09ab[_0xe4a3ac(0x16a)][_0xe4a3ac(0x16b)](_0xe4a3ac(0x172))['to'](_0x2b0581,_0xe4a3ac(0x17d),_0xa3db3a=>!_0xa3db3a),_0x1b09ab[_0xe4a3ac(0x18a)]({'icon':_0x3d5c7a}),_0x1b09ab[_0xe4a3ac(0x16b)](_0xe4a3ac(0x177))['to'](_0x2b0581,_0xe4a3ac(0x177)),_0x1b09ab[_0xe4a3ac(0x16b)](_0xe4a3ac(0x188))['to'](_0x2b0581,_0xe4a3ac(0x17d),_0xe10e0b=>_0x1c9847(_0x16d178[_0xe4a3ac(0x176)],_0xe10e0b?_0xe4a3ac(0x171):_0xe4a3ac(0x180))),this[_0xe4a3ac(0x18c)](_0x1b09ab,_0xe4a3ac(0x16e),()=>{const _0x621b4d=_0xe4a3ac;_0x16d178[_0x621b4d(0x16e)](_0x621b4d(0x17b),_0x59e45f),_0x16d178[_0x621b4d(0x174)][_0x621b4d(0x183)][_0x621b4d(0x175)]();}),_0x1b09ab;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5af2(_0x2bf2a5,_0x475ba5){var _0x2fbd9b=_0x2fbd();return _0x5af2=function(_0x5af2d5,_0x46f7c2){_0x5af2d5=_0x5af2d5-0x162;var _0x470813=_0x2fbd9b[_0x5af2d5];return _0x470813;},_0x5af2(_0x2bf2a5,_0x475ba5);}function _0x2fbd(){var _0x46f9c0=['7pAtOkg','4824770cJVKvx','231632ToRzLM','149244CGQIIr','3WMzOBc','659808NEwzAN','126PiroEj','311473scrPqk','1378376oLnYQO','341685BrWlIZ'];_0x2fbd=function(){return _0x46f9c0;};return _0x2fbd();}(function(_0x35462d,_0x1c527d){var _0x538ef4=_0x5af2,_0x5cc48e=_0x35462d();while(!![]){try{var _0x2eb201=-parseInt(_0x538ef4(0x163))/0x1+parseInt(_0x538ef4(0x16b))/0x2+-parseInt(_0x538ef4(0x16a))/0x3*(-parseInt(_0x538ef4(0x164))/0x4)+-parseInt(_0x538ef4(0x165))/0x5+parseInt(_0x538ef4(0x169))/0x6*(parseInt(_0x538ef4(0x166))/0x7)+-parseInt(_0x538ef4(0x168))/0x8*(-parseInt(_0x538ef4(0x162))/0x9)+-parseInt(_0x538ef4(0x167))/0xa;if(_0x2eb201===_0x1c527d)break;else _0x5cc48e['push'](_0x5cc48e['shift']());}catch(_0x21cf3e){_0x5cc48e['push'](_0x5cc48e['shift']());}}}(_0x2fbd,0x3b309));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';
23
+ (function(_0x495214,_0x282cb9){var _0x243f2c=_0xc6ee,_0x3ffc31=_0x495214();while(!![]){try{var _0x4605b9=parseInt(_0x243f2c(0x13a))/0x1*(-parseInt(_0x243f2c(0x132))/0x2)+-parseInt(_0x243f2c(0x136))/0x3+-parseInt(_0x243f2c(0x133))/0x4+-parseInt(_0x243f2c(0x13b))/0x5+-parseInt(_0x243f2c(0x137))/0x6+-parseInt(_0x243f2c(0x138))/0x7*(parseInt(_0x243f2c(0x135))/0x8)+parseInt(_0x243f2c(0x134))/0x9*(parseInt(_0x243f2c(0x139))/0xa);if(_0x4605b9===_0x282cb9)break;else _0x3ffc31['push'](_0x3ffc31['shift']());}catch(_0x1cea30){_0x3ffc31['push'](_0x3ffc31['shift']());}}}(_0x4efb,0x43634));function _0xc6ee(_0xdc429c,_0x544b32){var _0x4efb7c=_0x4efb();return _0xc6ee=function(_0xc6ee13,_0x489764){_0xc6ee13=_0xc6ee13-0x132;var _0x5ec86e=_0x4efb7c[_0xc6ee13];return _0x5ec86e;},_0xc6ee(_0xdc429c,_0x544b32);}export{default as ExportPdf}from'./exportpdf.js';function _0x4efb(){var _0x1a0c1b=['1461150AgRUkM','14iAbqqB','40NuNtws','201254XKVgUH','649360GLqVut','2vZUKVk','531636YjfchF','3203127IpMCkZ','1402120DLVxLc','268506zBDLGR'];_0x4efb=function(){return _0x1a0c1b;};return _0x4efb();}import'./augmentation.js';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x1abc9a,_0x2614db){const t=_0x1abc9a['t'];switch(_0x2614db){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 _0x2614db;}}
23
+ export function getTranslation(_0x2f4edf,_0x4d0532){const t=_0x2f4edf['t'];switch(_0x4d0532){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 _0x4d0532;}}
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x25a3(){const _0x345eb7=['trim','data-cke','3940SVkbrU','all','442376ZmXkKM','552mhpcni','ownerNode','10SLfAiH','1118210ggmnwK',':root','styleSheets','warn','text','push','8178272WkUJhW','fetch','188167PzOgpQ','9iAVizP','length','hasAttribute','indexOf','cssRules','102wrBLoI','from','163661axVCmw','then','cssText','.ck-content','EDITOR_STYLES','633cRLTrs','join','194110VMFhIK','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.'];_0x25a3=function(){return _0x345eb7;};return _0x25a3();}(function(_0x2456bf,_0x8d3d96){const _0x143ded=_0x41e3,_0x36823a=_0x2456bf();while(!![]){try{const _0x3066cc=-parseInt(_0x143ded(0x15a))/0x1*(parseInt(_0x143ded(0x16a))/0x2)+parseInt(_0x143ded(0x15f))/0x3*(parseInt(_0x143ded(0x165))/0x4)+-parseInt(_0x143ded(0x161))/0x5+-parseInt(_0x143ded(0x158))/0x6*(-parseInt(_0x143ded(0x152))/0x7)+-parseInt(_0x143ded(0x150))/0x8+parseInt(_0x143ded(0x153))/0x9*(-parseInt(_0x143ded(0x16b))/0xa)+-parseInt(_0x143ded(0x167))/0xb*(-parseInt(_0x143ded(0x168))/0xc);if(_0x3066cc===_0x8d3d96)break;else _0x36823a['push'](_0x36823a['shift']());}catch(_0x192d8c){_0x36823a['push'](_0x36823a['shift']());}}}(_0x25a3,0x7fcfc));export function getStyles(_0x330046){const _0x5a754d=_0x41e3;if(!_0x330046)return new Promise(_0xd96e0=>_0xd96e0(''));const _0xbf09f6=[];for(const _0x299d65 of _0x330046)_0x5a754d(0x15e)!==_0x299d65?_0xbf09f6[_0x5a754d(0x14f)](window[_0x5a754d(0x151)](_0x299d65)[_0x5a754d(0x15b)](_0x2c88bc=>_0x2c88bc[_0x5a754d(0x14e)]())):_0xbf09f6[_0x5a754d(0x14f)](a());return Promise[_0x5a754d(0x166)](_0xbf09f6)[_0x5a754d(0x15b)](_0x1e4ab8=>_0x1e4ab8[_0x5a754d(0x160)]('\x20')[_0x5a754d(0x163)]());}function _0x41e3(_0x332c7a,_0x3e07ef){const _0x25a3b1=_0x25a3();return _0x41e3=function(_0x41e347,_0x1eef7a){_0x41e347=_0x41e347-0x14d;let _0x4609c4=_0x25a3b1[_0x41e347];return _0x4609c4;},_0x41e3(_0x332c7a,_0x3e07ef);}function a(){const _0x47e4d1=_0x41e3,_0x39a2ee=[],_0x1acf16=[];for(const _0x53a976 of Array[_0x47e4d1(0x159)](document[_0x47e4d1(0x16d)])){if(_0x53a976[_0x47e4d1(0x169)][_0x47e4d1(0x155)](_0x47e4d1(0x164))){for(const _0x1d96ae of Array[_0x47e4d1(0x159)](_0x53a976[_0x47e4d1(0x157)]))-0x1!==_0x1d96ae[_0x47e4d1(0x15c)][_0x47e4d1(0x156)](_0x47e4d1(0x15d))?_0x39a2ee[_0x47e4d1(0x14f)](_0x1d96ae[_0x47e4d1(0x15c)]):-0x1!==_0x1d96ae[_0x47e4d1(0x15c)][_0x47e4d1(0x156)](_0x47e4d1(0x16c))&&_0x1acf16[_0x47e4d1(0x14f)](_0x1d96ae[_0x47e4d1(0x15c)]);}}return _0x39a2ee[_0x47e4d1(0x154)]||console[_0x47e4d1(0x14d)](_0x47e4d1(0x162)),[..._0x1acf16,..._0x39a2ee][_0x47e4d1(0x160)]('\x20')[_0x47e4d1(0x163)]();}
23
+ (function(_0x33fa2f,_0x151440){const _0x48c867=_0xdcb0,_0x214716=_0x33fa2f();while(!![]){try{const _0x5bc222=parseInt(_0x48c867(0xa0))/0x1+parseInt(_0x48c867(0xa9))/0x2*(parseInt(_0x48c867(0x98))/0x3)+-parseInt(_0x48c867(0x89))/0x4*(parseInt(_0x48c867(0x91))/0x5)+-parseInt(_0x48c867(0x8a))/0x6*(-parseInt(_0x48c867(0x9e))/0x7)+-parseInt(_0x48c867(0x9f))/0x8+parseInt(_0x48c867(0x92))/0x9*(parseInt(_0x48c867(0x90))/0xa)+-parseInt(_0x48c867(0x99))/0xb*(-parseInt(_0x48c867(0x9d))/0xc);if(_0x5bc222===_0x151440)break;else _0x214716['push'](_0x214716['shift']());}catch(_0x267bd9){_0x214716['push'](_0x214716['shift']());}}}(_0x46a5,0x817f2));function _0x46a5(){const _0x57a996=['length','then','styleSheets','1292181eaxCdF','1775477uRJkDA','ownerNode','join','hasAttribute','60NHtbpA','38353jPhCmP','6813024GouZTa','476999REbAZs','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.','from','fetch','.ck-content','EDITOR_STYLES','data-cke','cssRules','trim','2mKlsJa','340kfbIJi','84aTIaDs',':root','all','indexOf','text','warn','3554940lvoKEj','44995iiKooZ','9EFjiQK','push','cssText'];_0x46a5=function(){return _0x57a996;};return _0x46a5();}function _0xdcb0(_0x10c0d4,_0x238f9f){const _0x46a581=_0x46a5();return _0xdcb0=function(_0xdcb032,_0x484cfc){_0xdcb032=_0xdcb032-0x89;let _0x205b67=_0x46a581[_0xdcb032];return _0x205b67;},_0xdcb0(_0x10c0d4,_0x238f9f);}export function getStyles(_0x3b22a3){const _0x2a21aa=_0xdcb0;if(!_0x3b22a3)return new Promise(_0x489362=>_0x489362(''));const _0xc605b7=[];for(const _0x358add of _0x3b22a3)_0x2a21aa(0xa5)!==_0x358add?_0xc605b7[_0x2a21aa(0x93)](window[_0x2a21aa(0xa3)](_0x358add)[_0x2a21aa(0x96)](_0x2f9a2e=>_0x2f9a2e[_0x2a21aa(0x8e)]())):_0xc605b7[_0x2a21aa(0x93)](a());return Promise[_0x2a21aa(0x8c)](_0xc605b7)[_0x2a21aa(0x96)](_0x81a151=>_0x81a151[_0x2a21aa(0x9b)]('\x20')[_0x2a21aa(0xa8)]());}function a(){const _0x53aee3=_0xdcb0,_0x1daa9c=[],_0x592afd=[];for(const _0x1bddf9 of Array[_0x53aee3(0xa2)](document[_0x53aee3(0x97)])){if(_0x1bddf9[_0x53aee3(0x9a)][_0x53aee3(0x9c)](_0x53aee3(0xa6))){for(const _0x557d8e of Array[_0x53aee3(0xa2)](_0x1bddf9[_0x53aee3(0xa7)]))-0x1!==_0x557d8e[_0x53aee3(0x94)][_0x53aee3(0x8d)](_0x53aee3(0xa4))?_0x1daa9c[_0x53aee3(0x93)](_0x557d8e[_0x53aee3(0x94)]):-0x1!==_0x557d8e[_0x53aee3(0x94)][_0x53aee3(0x8d)](_0x53aee3(0x8b))&&_0x592afd[_0x53aee3(0x93)](_0x557d8e[_0x53aee3(0x94)]);}}return _0x1daa9c[_0x53aee3(0x95)]||console[_0x53aee3(0x8f)](_0x53aee3(0xa1)),[..._0x592afd,..._0x1daa9c][_0x53aee3(0x9b)]('\x20')[_0x53aee3(0xa8)]();}
@@ -1,25 +0,0 @@
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-licensing-options
8
- */
9
- import type { ExportPdfConfig, ExportPdf, ExportPdfCommand } from './index.js';
10
- declare module '@ckeditor/ckeditor5-core' {
11
- interface EditorConfig {
12
- /**
13
- * The configuration of the {@link module:export-pdf/exportpdf~ExportPdf export to PDF feature}.
14
- *
15
- * Read more in {@link module:export-pdf/exportpdf~ExportPdfConfig}.
16
- */
17
- exportPdf?: ExportPdfConfig;
18
- }
19
- interface PluginsMap {
20
- [ExportPdf.pluginName]: ExportPdf;
21
- }
22
- interface CommandsMap {
23
- exportPdf: ExportPdfCommand;
24
- }
25
- }
@@ -1,242 +0,0 @@
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-licensing-options
8
- */
9
- /**
10
- * @module export-pdf/exportpdf
11
- * @publicApi
12
- */
13
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
14
- import { Notification } from 'ckeditor5/src/ui.js';
15
- import type { InitializedToken, TokenUrl } from '@ckeditor/ckeditor5-cloud-services';
16
- import ExportPdfUI from './exportpdfui.js';
17
- /**
18
- * The export to PDF feature.
19
- *
20
- * It allows you to generate a PDF file directly from the editor content.
21
- *
22
- * For a detailed overview, check the {@glink features/converters/export-pdf export to PDF} feature documentation.
23
- */
24
- export default class ExportPdf extends Plugin {
25
- /**
26
- * @inheritDoc
27
- */
28
- static get pluginName(): "ExportPdf";
29
- /**
30
- * @inheritDoc
31
- */
32
- static get isOfficialPlugin(): true;
33
- /**
34
- * @inheritDoc
35
- */
36
- static get isPremiumPlugin(): true;
37
- /**
38
- * @inheritDoc
39
- */
40
- static get requires(): readonly ["CloudServices", typeof Notification, typeof ExportPdfUI];
41
- /**
42
- * @inheritDoc
43
- */
44
- init(): void;
45
- }
46
- /**
47
- * The configuration of the export to PDF feature. It is used by the PDF export features from the `@ckeditor/ckeditor5-export-pdf` package.
48
- *
49
- * ```ts
50
- * ClassicEditor
51
- * .create( editorElement, {
52
- * exportPdf: ... // Export to PDF feature options.
53
- * } )
54
- * .then( ... )
55
- * .catch( ... );
56
- * ```
57
- *
58
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
59
- */
60
- export interface ExportPdfConfig {
61
- /**
62
- * Paths to the `.css` files containing additional styling for the editor's content (**the order of provided items matters**).
63
- *
64
- * ```ts
65
- * const exportPdfConfig = {
66
- * stylesheets: [ './path/to/custom-style.css' ]
67
- * }
68
- * ```
69
- *
70
- * **NOTE:** If `stylesheets` are not provided, the plugin will sent only
71
- * {@glink getting-started/setup/css the default editor content styles}
72
- * to the converter.
73
- *
74
- * **Default editor's content styles**:
75
- * {@glink getting-started/setup/css The default editor content styles}
76
- * are applied to the generated PDF thanks to the `'EDITOR_STYLES'` token, which is provided to the `stylesheets` by default.
77
- * If you don't want them to be applied, you have to omit the token:
78
- *
79
- * **NOTE:** The `'EDITOR_STYLES'` string is only supported in legacy custom builds with webpack or DLLs.
80
- * In other setups you always need to pass the stylesheets.
81
- *
82
- * ```ts
83
- * const exportPdfConfig = {
84
- * stylesheets: [ './path/to/custom-editor-styles.css' ]
85
- * }
86
- * ```
87
- *
88
- * **Web fonts:** If you want to {@glink features/converters/export-pdf#providing-web-font-styles use web fonts} in your PDF document,
89
- * you should provide a path to the file containing the web font declaration before the `'EDITOR_STYLES'` token and other style sheets:
90
- *
91
- * ```ts
92
- * const exportPdfConfig = {
93
- * stylesheets: [
94
- * './path/to/fonts.css'
95
- * './path/to/editor-styles.css',
96
- * ]
97
- * }
98
- * ```
99
- *
100
- * **Web fonts and custom styling:** For more advanced styling, your configuration should look like this:
101
- *
102
- * ```ts
103
- * const exportPdfConfig = {
104
- * stylesheets: [
105
- * './path/to/fonts.css',
106
- * './path/to/editor-styles.css',
107
- * './path/to/custom-styles.css'
108
- * ]
109
- * }
110
- * ```
111
- *
112
- * @default `[ 'EDITOR_STYLES' ]`
113
- */
114
- stylesheets?: Array<string>;
115
- /**
116
- * The name of the generated PDF file.
117
- *
118
- * ```ts
119
- * // Static file name.
120
- * const exportPdfConfig = {
121
- * fileName: 'my-document.pdf'
122
- * }
123
- *
124
- * // Dynamic file name.
125
- * const exportPdfConfig = {
126
- * fileName: () => {
127
- * const articleTitle = document.querySelector( '#title' );
128
- *
129
- * return `${ articleTitle.value }.pdf`;
130
- * }
131
- * }
132
- * ```
133
- *
134
- * **NOTE:** The file name must contain the `.pdf` extension.
135
- * Otherwise your operating system or device may have trouble identifying the file type.
136
- *
137
- * @default 'document.pdf'
138
- */
139
- fileName?: string | (() => string);
140
- /**
141
- * A URL to the HTML to PDF converter.
142
- *
143
- * ```ts
144
- * const exportPdfConfig = {
145
- * converterUrl: 'https://myconverter.com/v1/'
146
- * }
147
- * ```
148
- *
149
- * **NOTE:** The plugin uses the default HTML to PDF converter delivered by CKEditor Cloud Services.
150
- * You can provide a URL to an on-premises converter instead.
151
- *
152
- * @default 'https://pdf-converter.cke-cs.com/v1/convert'
153
- */
154
- converterUrl?: string;
155
- /**
156
- * The HTML to PDF converter options.
157
- *
158
- * **NOTE:** Configuring the plugin is not mandatory but it is highly recommended,
159
- * especially if you want to get the most accurate results when generating the PDF file.
160
- * To learn more, please check the [HTML to PDF converter configuration](https://pdf-converter.cke-cs.com/docs).
161
- *
162
- * ```ts
163
- * const exportPdfConfig = {
164
- * converterOptions: {
165
- * ...
166
- * }
167
- * }
168
- * ```
169
- *
170
- * @default `{
171
- * format: 'A4',
172
- * margin_top: '0',
173
- * margin_bottom: '0',
174
- * margin_right: '0',
175
- * margin_left: '0',
176
- * page_orientation: 'portrait',
177
- * header_html: undefined,
178
- * footer_html: undefined,
179
- * header_and_footer_css: undefined,
180
- * wait_for_network: true,
181
- * wait_time: 0
182
- * }`
183
- */
184
- converterOptions?: ExportPdfConverterOptions;
185
- /**
186
- * A function to gather the HTML to be converted to PDF.
187
- *
188
- * **NOTE:** This option may be useful when the editor does not have `getData()` method,
189
- * or if the HTML to be converted should be different than the edited one.
190
- *
191
- * ```ts
192
- * const exportPdfConfig = {
193
- * dataCallback: ( editor: Editor ) => {
194
- * return `
195
- * <header id="header">${ editor.data.get( { rootName: 'header' } ) }</header>
196
- * <div id="content">${ editor.data.get( { rootName: 'content' } ) }</div>
197
- * `;
198
- * }
199
- * }
200
- * ```
201
- *
202
- * @default `( editor: Editor ) => editor.getData()`
203
- */
204
- dataCallback?: (editor: Editor) => string;
205
- /**
206
- * A token URL or a token request function. This field is optional and should be used only when a different `tokenUrl` is required for
207
- * the export to PDF feature.
208
- *
209
- * **Note:** The token can be disabled with the `false` value provided.
210
- *
211
- * See: {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl}
212
- */
213
- tokenUrl?: TokenUrl | false;
214
- /**
215
- * The authentication token.
216
- *
217
- * See: {@link module:cloud-services/cloudservices~CloudServices#token}
218
- */
219
- token?: InitializedToken;
220
- /**
221
- * The application unique identifier.
222
- */
223
- appID?: string;
224
- }
225
- export type ExportPdfConverterOptions = {
226
- format?: 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | string & Record<never, never>;
227
- margin_top?: string;
228
- margin_bottom?: string;
229
- margin_right?: string;
230
- margin_left?: string;
231
- header_html?: string;
232
- footer_html?: string;
233
- header_and_footer_css?: string;
234
- page_orientation?: 'portrait' | 'landscape' | string & Record<never, never>;
235
- wait_for_network?: boolean;
236
- wait_time?: number;
237
- merge_fields?: {
238
- prefix: string;
239
- suffix: string;
240
- data: Record<string, string>;
241
- };
242
- };
@@ -1,43 +0,0 @@
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-licensing-options
8
- */
9
- /**
10
- * @module export-pdf/exportpdfcommand
11
- * @publicApi
12
- */
13
- import { Command, type Editor } from 'ckeditor5/src/core.js';
14
- import { type ExportPdfConfig } from './exportpdf.js';
15
- /**
16
- * The export to PDF command.
17
- *
18
- * It takes the editor's HTML and CSS rules from the document and sends them to the HTML to PDF converter.
19
- * After processing, the converter will send back a PDF file for download.
20
- */
21
- export default class ExportPdfCommand extends Command {
22
- /**
23
- * A command state that indicates if the command is currently executing.
24
- *
25
- * @observable
26
- */
27
- isBusy: boolean;
28
- /**
29
- * @inheritDoc
30
- */
31
- constructor(editor: Editor);
32
- /**
33
- * @inheritDoc
34
- */
35
- refresh(): void;
36
- /**
37
- * Executes the command.
38
- *
39
- * @fires execute
40
- * @param options Options for the executed command.
41
- */
42
- execute(options?: ExportPdfConfig): Promise<void>;
43
- }
@@ -1,35 +0,0 @@
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-licensing-options
8
- */
9
- /**
10
- * @module export-pdf/exportpdfui
11
- */
12
- import { Plugin } from 'ckeditor5/src/core.js';
13
- /**
14
- * The export to PDF UI feature.
15
- *
16
- * It introduces 'Export to PDF' button in toolbar and menu bar.
17
- */
18
- export default class ExportPdfUI extends Plugin {
19
- /**
20
- * @inheritDoc
21
- */
22
- static get pluginName(): "ExportPdfUI";
23
- /**
24
- * @inheritDoc
25
- */
26
- static get isOfficialPlugin(): true;
27
- /**
28
- * @inheritDoc
29
- */
30
- static get isPremiumPlugin(): true;
31
- /**
32
- * @inheritDoc
33
- */
34
- init(): void;
35
- }
package/dist/index.d.ts DELETED
@@ -1,14 +0,0 @@
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-licensing-options
8
- */
9
- /**
10
- * @module export-pdf
11
- */
12
- export { default as ExportPdf, type ExportPdfConfig } from './exportpdf.js';
13
- export type { default as ExportPdfCommand } from './exportpdfcommand.js';
14
- import './augmentation.js';
@@ -1,13 +0,0 @@
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-licensing-options
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/dist/utils.d.ts DELETED
@@ -1,14 +0,0 @@
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-licensing-options
8
- */
9
- /**
10
- * A helper function for getting concatenated CSS rules from external stylesheets and the editor.
11
- *
12
- * @param stylesheets An array of stylesheet paths delivered by the user through the plugin configuration.
13
- */
14
- export declare function getStyles(stylesheets?: Array<string>): Promise<string>;