@ckeditor/ckeditor5-export-pdf 0.0.0-internal-20241017.0 → 0.0.0-internal-20241206.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 (289) hide show
  1. package/LICENSE.md +6 -6
  2. package/README.md +19 -15
  3. package/build/export-pdf.js +1 -1
  4. package/build/translations/ast.js +1 -0
  5. package/build/translations/az.js +1 -0
  6. package/build/translations/bs.js +1 -0
  7. package/build/translations/de-ch.js +1 -0
  8. package/build/translations/en-gb.js +1 -0
  9. package/build/translations/eo.js +1 -0
  10. package/build/translations/eu.js +1 -0
  11. package/build/translations/fa.js +1 -0
  12. package/build/translations/gu.js +1 -0
  13. package/build/translations/hy.js +1 -0
  14. package/build/translations/kk.js +1 -0
  15. package/build/translations/km.js +1 -0
  16. package/build/translations/kn.js +1 -0
  17. package/build/translations/ku.js +1 -0
  18. package/build/translations/nb.js +1 -0
  19. package/build/translations/ne.js +1 -0
  20. package/build/translations/oc.js +1 -0
  21. package/build/translations/si.js +1 -0
  22. package/build/translations/sl.js +1 -0
  23. package/build/translations/sq.js +1 -0
  24. package/build/translations/ti.js +1 -0
  25. package/build/translations/tk.js +1 -0
  26. package/build/translations/tt.js +1 -0
  27. package/build/translations/uz.js +1 -0
  28. package/dist/index.js +1 -1
  29. package/dist/translations/af.js +1 -1
  30. package/dist/translations/af.umd.js +1 -1
  31. package/dist/translations/ar.js +1 -1
  32. package/dist/translations/ar.umd.js +1 -1
  33. package/dist/translations/ast.d.ts +8 -0
  34. package/dist/translations/ast.js +23 -0
  35. package/dist/translations/ast.umd.js +23 -0
  36. package/dist/translations/az.d.ts +8 -0
  37. package/dist/translations/az.js +23 -0
  38. package/dist/translations/az.umd.js +23 -0
  39. package/dist/translations/bg.js +1 -1
  40. package/dist/translations/bg.umd.js +1 -1
  41. package/dist/translations/bn.js +1 -1
  42. package/dist/translations/bn.umd.js +1 -1
  43. package/dist/translations/bs.d.ts +8 -0
  44. package/dist/translations/bs.js +23 -0
  45. package/dist/translations/bs.umd.js +23 -0
  46. package/dist/translations/ca.js +1 -1
  47. package/dist/translations/ca.umd.js +1 -1
  48. package/dist/translations/cs.js +1 -1
  49. package/dist/translations/cs.umd.js +1 -1
  50. package/dist/translations/da.js +1 -1
  51. package/dist/translations/da.umd.js +1 -1
  52. package/dist/translations/de-ch.d.ts +8 -0
  53. package/dist/translations/de-ch.js +23 -0
  54. package/dist/translations/de-ch.umd.js +23 -0
  55. package/dist/translations/de.js +1 -1
  56. package/dist/translations/de.umd.js +1 -1
  57. package/dist/translations/el.js +1 -1
  58. package/dist/translations/el.umd.js +1 -1
  59. package/dist/translations/en-au.js +1 -1
  60. package/dist/translations/en-au.umd.js +1 -1
  61. package/dist/translations/en-gb.d.ts +8 -0
  62. package/dist/translations/en-gb.js +23 -0
  63. package/dist/translations/en-gb.umd.js +23 -0
  64. package/dist/translations/en.js +1 -1
  65. package/dist/translations/en.umd.js +1 -1
  66. package/dist/translations/eo.d.ts +8 -0
  67. package/dist/translations/eo.js +23 -0
  68. package/dist/translations/eo.umd.js +23 -0
  69. package/dist/translations/es-co.js +1 -1
  70. package/dist/translations/es-co.umd.js +1 -1
  71. package/dist/translations/es.js +1 -1
  72. package/dist/translations/es.umd.js +1 -1
  73. package/dist/translations/et.js +1 -1
  74. package/dist/translations/et.umd.js +1 -1
  75. package/dist/translations/eu.d.ts +8 -0
  76. package/dist/translations/eu.js +23 -0
  77. package/dist/translations/eu.umd.js +23 -0
  78. package/dist/translations/fa.d.ts +8 -0
  79. package/dist/translations/fa.js +23 -0
  80. package/dist/translations/fa.umd.js +23 -0
  81. package/dist/translations/fi.js +1 -1
  82. package/dist/translations/fi.umd.js +1 -1
  83. package/dist/translations/fr.js +1 -1
  84. package/dist/translations/fr.umd.js +1 -1
  85. package/dist/translations/gl.js +1 -1
  86. package/dist/translations/gl.umd.js +1 -1
  87. package/dist/translations/gu.d.ts +8 -0
  88. package/dist/translations/gu.js +23 -0
  89. package/dist/translations/gu.umd.js +23 -0
  90. package/dist/translations/he.js +1 -1
  91. package/dist/translations/he.umd.js +1 -1
  92. package/dist/translations/hi.js +1 -1
  93. package/dist/translations/hi.umd.js +1 -1
  94. package/dist/translations/hr.js +1 -1
  95. package/dist/translations/hr.umd.js +1 -1
  96. package/dist/translations/hu.js +1 -1
  97. package/dist/translations/hu.umd.js +1 -1
  98. package/dist/translations/hy.d.ts +8 -0
  99. package/dist/translations/hy.js +23 -0
  100. package/dist/translations/hy.umd.js +23 -0
  101. package/dist/translations/id.js +1 -1
  102. package/dist/translations/id.umd.js +1 -1
  103. package/dist/translations/it.js +1 -1
  104. package/dist/translations/it.umd.js +1 -1
  105. package/dist/translations/ja.js +1 -1
  106. package/dist/translations/ja.umd.js +1 -1
  107. package/dist/translations/jv.js +1 -1
  108. package/dist/translations/jv.umd.js +1 -1
  109. package/dist/translations/kk.d.ts +8 -0
  110. package/dist/translations/kk.js +23 -0
  111. package/dist/translations/kk.umd.js +23 -0
  112. package/dist/translations/km.d.ts +8 -0
  113. package/dist/translations/km.js +23 -0
  114. package/dist/translations/km.umd.js +23 -0
  115. package/dist/translations/kn.d.ts +8 -0
  116. package/dist/translations/kn.js +23 -0
  117. package/dist/translations/kn.umd.js +23 -0
  118. package/dist/translations/ko.js +1 -1
  119. package/dist/translations/ko.umd.js +1 -1
  120. package/dist/translations/ku.d.ts +8 -0
  121. package/dist/translations/ku.js +23 -0
  122. package/dist/translations/ku.umd.js +23 -0
  123. package/dist/translations/lt.js +1 -1
  124. package/dist/translations/lt.umd.js +1 -1
  125. package/dist/translations/lv.js +1 -1
  126. package/dist/translations/lv.umd.js +1 -1
  127. package/dist/translations/ms.js +1 -1
  128. package/dist/translations/ms.umd.js +1 -1
  129. package/dist/translations/nb.d.ts +8 -0
  130. package/dist/translations/nb.js +23 -0
  131. package/dist/translations/nb.umd.js +23 -0
  132. package/dist/translations/ne.d.ts +8 -0
  133. package/dist/translations/ne.js +23 -0
  134. package/dist/translations/ne.umd.js +23 -0
  135. package/dist/translations/nl.js +1 -1
  136. package/dist/translations/nl.umd.js +1 -1
  137. package/dist/translations/no.js +1 -1
  138. package/dist/translations/no.umd.js +1 -1
  139. package/dist/translations/oc.d.ts +8 -0
  140. package/dist/translations/oc.js +23 -0
  141. package/dist/translations/oc.umd.js +23 -0
  142. package/dist/translations/pl.js +1 -1
  143. package/dist/translations/pl.umd.js +1 -1
  144. package/dist/translations/pt-br.js +1 -1
  145. package/dist/translations/pt-br.umd.js +1 -1
  146. package/dist/translations/pt.js +1 -1
  147. package/dist/translations/pt.umd.js +1 -1
  148. package/dist/translations/ro.js +1 -1
  149. package/dist/translations/ro.umd.js +1 -1
  150. package/dist/translations/ru.js +1 -1
  151. package/dist/translations/ru.umd.js +1 -1
  152. package/dist/translations/si.d.ts +8 -0
  153. package/dist/translations/si.js +23 -0
  154. package/dist/translations/si.umd.js +23 -0
  155. package/dist/translations/sk.js +1 -1
  156. package/dist/translations/sk.umd.js +1 -1
  157. package/dist/translations/sl.d.ts +8 -0
  158. package/dist/translations/sl.js +23 -0
  159. package/dist/translations/sl.umd.js +23 -0
  160. package/dist/translations/sq.d.ts +8 -0
  161. package/dist/translations/sq.js +23 -0
  162. package/dist/translations/sq.umd.js +23 -0
  163. package/dist/translations/sr-latn.js +1 -1
  164. package/dist/translations/sr-latn.umd.js +1 -1
  165. package/dist/translations/sr.js +1 -1
  166. package/dist/translations/sr.umd.js +1 -1
  167. package/dist/translations/sv.js +1 -1
  168. package/dist/translations/sv.umd.js +1 -1
  169. package/dist/translations/th.js +1 -1
  170. package/dist/translations/th.umd.js +1 -1
  171. package/dist/translations/ti.d.ts +8 -0
  172. package/dist/translations/ti.js +23 -0
  173. package/dist/translations/ti.umd.js +23 -0
  174. package/dist/translations/tk.d.ts +8 -0
  175. package/dist/translations/tk.js +23 -0
  176. package/dist/translations/tk.umd.js +23 -0
  177. package/dist/translations/tr.js +1 -1
  178. package/dist/translations/tr.umd.js +1 -1
  179. package/dist/translations/tt.d.ts +8 -0
  180. package/dist/translations/tt.js +23 -0
  181. package/dist/translations/tt.umd.js +23 -0
  182. package/dist/translations/ug.js +1 -1
  183. package/dist/translations/ug.umd.js +1 -1
  184. package/dist/translations/uk.js +1 -1
  185. package/dist/translations/uk.umd.js +1 -1
  186. package/dist/translations/ur.js +1 -1
  187. package/dist/translations/ur.umd.js +1 -1
  188. package/dist/translations/uz.d.ts +8 -0
  189. package/dist/translations/uz.js +23 -0
  190. package/dist/translations/uz.umd.js +23 -0
  191. package/dist/translations/vi.js +1 -1
  192. package/dist/translations/vi.umd.js +1 -1
  193. package/dist/translations/zh-cn.js +1 -1
  194. package/dist/translations/zh-cn.umd.js +1 -1
  195. package/dist/translations/zh.js +1 -1
  196. package/dist/translations/zh.umd.js +1 -1
  197. package/lang/translations/af.po +3 -9
  198. package/lang/translations/ar.po +4 -10
  199. package/lang/translations/ast.po +36 -0
  200. package/lang/translations/az.po +36 -0
  201. package/lang/translations/bg.po +3 -9
  202. package/lang/translations/bn.po +3 -9
  203. package/lang/translations/bs.po +36 -0
  204. package/lang/translations/ca.po +3 -9
  205. package/lang/translations/cs.po +4 -10
  206. package/lang/translations/da.po +3 -9
  207. package/lang/translations/de-ch.po +36 -0
  208. package/lang/translations/de.po +3 -9
  209. package/lang/translations/el.po +3 -9
  210. package/lang/translations/en-au.po +3 -9
  211. package/lang/translations/en-gb.po +36 -0
  212. package/lang/translations/en.po +5 -11
  213. package/lang/translations/eo.po +36 -0
  214. package/lang/translations/es-co.po +4 -10
  215. package/lang/translations/es.po +4 -10
  216. package/lang/translations/et.po +3 -9
  217. package/lang/translations/eu.po +36 -0
  218. package/lang/translations/fa.po +36 -0
  219. package/lang/translations/fi.po +3 -9
  220. package/lang/translations/fr.po +4 -10
  221. package/lang/translations/gl.po +3 -9
  222. package/lang/translations/gu.po +36 -0
  223. package/lang/translations/he.po +4 -10
  224. package/lang/translations/hi.po +3 -9
  225. package/lang/translations/hr.po +4 -10
  226. package/lang/translations/hu.po +3 -9
  227. package/lang/translations/hy.po +36 -0
  228. package/lang/translations/id.po +3 -9
  229. package/lang/translations/it.po +4 -10
  230. package/lang/translations/ja.po +3 -9
  231. package/lang/translations/jv.po +4 -10
  232. package/lang/translations/kk.po +36 -0
  233. package/lang/translations/km.po +36 -0
  234. package/lang/translations/kn.po +36 -0
  235. package/lang/translations/ko.po +3 -9
  236. package/lang/translations/ku.po +36 -0
  237. package/lang/translations/lt.po +4 -10
  238. package/lang/translations/lv.po +4 -10
  239. package/lang/translations/ms.po +3 -9
  240. package/lang/translations/nb.po +36 -0
  241. package/lang/translations/ne.po +36 -0
  242. package/lang/translations/nl.po +3 -9
  243. package/lang/translations/no.po +3 -9
  244. package/lang/translations/oc.po +36 -0
  245. package/lang/translations/pl.po +4 -10
  246. package/lang/translations/pt-br.po +4 -10
  247. package/lang/translations/pt.po +4 -10
  248. package/lang/translations/ro.po +4 -10
  249. package/lang/translations/ru.po +4 -10
  250. package/lang/translations/si.po +36 -0
  251. package/lang/translations/sk.po +4 -10
  252. package/lang/translations/sl.po +36 -0
  253. package/lang/translations/sq.po +36 -0
  254. package/lang/translations/sr-latn.po +4 -10
  255. package/lang/translations/sr.po +4 -10
  256. package/lang/translations/sv.po +3 -9
  257. package/lang/translations/th.po +3 -9
  258. package/lang/translations/ti.po +36 -0
  259. package/lang/translations/tk.po +36 -0
  260. package/lang/translations/tr.po +3 -9
  261. package/lang/translations/tt.po +36 -0
  262. package/lang/translations/ug.po +4 -10
  263. package/lang/translations/uk.po +4 -10
  264. package/lang/translations/ur.po +3 -9
  265. package/lang/translations/uz.po +36 -0
  266. package/lang/translations/vi.po +3 -9
  267. package/lang/translations/zh-cn.po +3 -9
  268. package/lang/translations/zh.po +3 -9
  269. package/package.json +23 -4
  270. package/src/augmentation.d.ts +1 -1
  271. package/src/exportpdf.d.ts +1 -1
  272. package/src/exportpdf.js +1 -1
  273. package/src/exportpdfcommand.d.ts +1 -1
  274. package/src/exportpdfcommand.js +1 -1
  275. package/src/exportpdfui.d.ts +1 -1
  276. package/src/exportpdfui.js +1 -1
  277. package/src/index.d.ts +1 -1
  278. package/src/index.js +1 -1
  279. package/src/utils/common-translations.d.ts +1 -1
  280. package/src/utils/common-translations.js +1 -1
  281. package/src/utils.d.ts +1 -1
  282. package/src/utils.js +1 -1
  283. package/dist/augmentation.d.ts +0 -25
  284. package/dist/exportpdf.d.ts +0 -242
  285. package/dist/exportpdfcommand.d.ts +0 -43
  286. package/dist/exportpdfui.d.ts +0 -35
  287. package/dist/index.d.ts +0 -14
  288. package/dist/utils/common-translations.d.ts +0 -13
  289. package/dist/utils.d.ts +0 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-pdf",
3
- "version": "0.0.0-internal-20241017.0",
3
+ "version": "0.0.0-internal-20241206.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": "0.0.0-internal-20241017.0",
34
- "@ckeditor/ckeditor5-ui": "0.0.0-internal-20241017.0",
35
- "ckeditor5": "0.0.0-internal-20241017.0"
33
+ "@ckeditor/ckeditor5-core": "0.0.0-internal-20241206.0",
34
+ "@ckeditor/ckeditor5-ui": "0.0.0-internal-20241206.0",
35
+ "ckeditor5": "0.0.0-internal-20241206.0"
36
36
  },
37
37
  "license": "SEE LICENSE IN LICENSE.md",
38
38
  "author": "CKSource (http://cksource.com/)",
@@ -49,5 +49,24 @@
49
49
  "CHANGELOG.md"
50
50
  ],
51
51
  "types": "src/index.d.ts",
52
+ "exports": {
53
+ ".": {
54
+ "types": "./src/index.d.ts",
55
+ "import": "./src/index.js"
56
+ },
57
+ "./dist/*": {
58
+ "types": "./src/index.d.ts",
59
+ "import": "./dist/*"
60
+ },
61
+ "./src/*": {
62
+ "types": "./src/index.d.ts",
63
+ "import": "./src/*"
64
+ },
65
+ "./build/*": "./build/*",
66
+ "./lang/*": "./lang/*",
67
+ "./theme/*": "./theme/*",
68
+ "./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
69
+ "./package.json": "./package.json"
70
+ },
52
71
  "obfuscated": true
53
72
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import type { ExportPdfConfig, ExportPdf, ExportPdfCommand } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module export-pdf/exportpdf
package/src/exportpdf.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3349b0=_0x193b;function _0x193b(_0x306d35,_0x1c01f4){const _0x333206=_0x3332();return _0x193b=function(_0x193b8f,_0x3967f0){_0x193b8f=_0x193b8f-0x1a5;let _0x54b2e2=_0x333206[_0x193b8f];return _0x54b2e2;},_0x193b(_0x306d35,_0x1c01f4);}(function(_0x57f055,_0x43f415){const _0x152e81=_0x193b,_0x52a91a=_0x57f055();while(!![]){try{const _0x2f1dba=parseInt(_0x152e81(0x1bd))/0x1+-parseInt(_0x152e81(0x1bb))/0x2*(parseInt(_0x152e81(0x1ba))/0x3)+-parseInt(_0x152e81(0x1b9))/0x4+-parseInt(_0x152e81(0x1b7))/0x5+parseInt(_0x152e81(0x1a9))/0x6*(-parseInt(_0x152e81(0x1a7))/0x7)+parseInt(_0x152e81(0x1a5))/0x8*(parseInt(_0x152e81(0x1ac))/0x9)+parseInt(_0x152e81(0x1ab))/0xa;if(_0x2f1dba===_0x43f415)break;else _0x52a91a['push'](_0x52a91a['shift']());}catch(_0x13e7c6){_0x52a91a['push'](_0x52a91a['shift']());}}}(_0x3332,0xe66c3));import{Plugin as _0x460594}from'ckeditor5/src/core.js';import{Notification as _0x63eec9}from'ckeditor5/src/ui.js';import _0x4ebe9d from'./exportpdfcommand.js';import _0x20dc95 from'./exportpdfui.js';function _0x3332(){const _0x2476da=['CloudServices','isOfficialPlugin','plugins','init','exportPdf','5818465akQqIk','pluginName','4976904odlyTF','3WeXKdY','1231386yKkcTk','ExportPdf','1039880ANlvmJ','get','then','registerTokenUrl','editor','10010296gODtdH','isPremiumPlugin','371IseBsf','_token','72228MYxasI','token','23142700MADuxc','9FJmItr','add','config','commands','requires','tokenUrl'];_0x3332=function(){return _0x2476da;};return _0x3332();}export default class o extends _0x460594{static get[_0x3349b0(0x1b8)](){const _0x19a2e5=_0x3349b0;return _0x19a2e5(0x1bc);}static get[_0x3349b0(0x1b3)](){return!0x0;}static get[_0x3349b0(0x1a6)](){return!0x0;}static get[_0x3349b0(0x1b0)](){const _0x415b4f=_0x3349b0;return[_0x415b4f(0x1b2),_0x63eec9,_0x20dc95];}[_0x3349b0(0x1b5)](){const _0x197844=_0x3349b0,_0x11e941=this[_0x197844(0x1c1)],_0x30f798=_0x11e941[_0x197844(0x1ae)][_0x197844(0x1be)](_0x197844(0x1b6))||{};_0x11e941[_0x197844(0x1af)][_0x197844(0x1ad)](_0x197844(0x1b6),new _0x4ebe9d(_0x11e941));const _0x2d6d42=_0x11e941[_0x197844(0x1b4)][_0x197844(0x1be)](_0x197844(0x1b2));!0x1===_0x30f798[_0x197844(0x1b1)]?this[_0x197844(0x1a8)]=null:_0x30f798[_0x197844(0x1b1)]?_0x2d6d42[_0x197844(0x1c0)](_0x30f798[_0x197844(0x1b1)])[_0x197844(0x1bf)](_0x4fd89c=>{const _0x3e3760=_0x197844;this[_0x3e3760(0x1a8)]=_0x4fd89c;}):this[_0x197844(0x1a8)]=_0x2d6d42[_0x197844(0x1aa)];}}
23
+ const _0x1f0afc=_0xb2f3;(function(_0x475ba5,_0xd16d68){const _0x4c9123=_0xb2f3,_0x67739b=_0x475ba5();while(!![]){try{const _0x2a48e4=-parseInt(_0x4c9123(0x19e))/0x1*(parseInt(_0x4c9123(0x1a9))/0x2)+-parseInt(_0x4c9123(0x1ad))/0x3+parseInt(_0x4c9123(0x1b2))/0x4+-parseInt(_0x4c9123(0x1ac))/0x5*(-parseInt(_0x4c9123(0x1a8))/0x6)+parseInt(_0x4c9123(0x1ae))/0x7+-parseInt(_0x4c9123(0x198))/0x8+parseInt(_0x4c9123(0x1b0))/0x9*(parseInt(_0x4c9123(0x1b4))/0xa);if(_0x2a48e4===_0xd16d68)break;else _0x67739b['push'](_0x67739b['shift']());}catch(_0x27bef0){_0x67739b['push'](_0x67739b['shift']());}}}(_0x5f2a,0xe9eaa));import{Plugin as _0x2cf2e8}from'ckeditor5/src/core.js';import{Notification as _0x506208}from'ckeditor5/src/ui.js';import _0x579581 from'./exportpdfcommand.js';import _0x5d0298 from'./exportpdfui.js';function _0x5f2a(){const _0xe29b4e=['get','5508603JiogwL','CloudServices','3789808pfvHOs','requires','30dqeHYn','14199608OgTjVe','exportPdf','add','pluginName','init','ExportPdf','1BAjIPd','config','isPremiumPlugin','tokenUrl','editor','plugins','token','_token','then','registerTokenUrl','94746QIViTk','2524462KQmhIv','commands','isOfficialPlugin','505vTvUGS','5551197WjEpUX','10270113gEElJL'];_0x5f2a=function(){return _0xe29b4e;};return _0x5f2a();}function _0xb2f3(_0x74d2b0,_0x1cbd53){const _0x5f2abb=_0x5f2a();return _0xb2f3=function(_0xb2f308,_0x2eb6a6){_0xb2f308=_0xb2f308-0x198;let _0x34fc80=_0x5f2abb[_0xb2f308];return _0x34fc80;},_0xb2f3(_0x74d2b0,_0x1cbd53);}export default class o extends _0x2cf2e8{static get[_0x1f0afc(0x19b)](){const _0x366818=_0x1f0afc;return _0x366818(0x19d);}static get[_0x1f0afc(0x1ab)](){return!0x0;}static get[_0x1f0afc(0x1a0)](){return!0x0;}static get[_0x1f0afc(0x1b3)](){const _0x2b7805=_0x1f0afc;return[_0x2b7805(0x1b1),_0x506208,_0x5d0298];}[_0x1f0afc(0x19c)](){const _0x69729a=_0x1f0afc,_0xc39588=this[_0x69729a(0x1a2)],_0x204763=_0xc39588[_0x69729a(0x19f)][_0x69729a(0x1af)](_0x69729a(0x199))||{};_0xc39588[_0x69729a(0x1aa)][_0x69729a(0x19a)](_0x69729a(0x199),new _0x579581(_0xc39588));const _0x57a5cc=_0xc39588[_0x69729a(0x1a3)][_0x69729a(0x1af)](_0x69729a(0x1b1));!0x1===_0x204763[_0x69729a(0x1a1)]?this[_0x69729a(0x1a5)]=null:_0x204763[_0x69729a(0x1a1)]?_0x57a5cc[_0x69729a(0x1a7)](_0x204763[_0x69729a(0x1a1)])[_0x69729a(0x1a6)](_0x52dceb=>{const _0x1919d9=_0x69729a;this[_0x1919d9(0x1a5)]=_0x52dceb;}):this[_0x69729a(0x1a5)]=_0x57a5cc[_0x69729a(0x1a4)];}}
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module export-pdf/exportpdfcommand
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4856(){const _0x3406e7=['POST','status','converterOptions','stylesheets','has','EDITOR_STYLES','811749tissrb','data','showWarning','entries','locale','refresh','get','$labels','config','converterUrl','2225fXslAG','plugins','application/json','mergeFields','announce','fileName','document.pdf','stringify','getDefaultValues','1081332EHssHc','URL','token','remove','PDF\x20export\x20started','function','execute','2220EZCCwm','merge_fields','14242420kudjRA','_downloadFile','createElement','cke5','9UXNVRh','MergeFieldsEditing','blob','getDataSetValues','getMergeFieldsIds','401699caIpfc','previewMode','application/pdf','ExportPdf','set','1818565boeAWQ','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','_token','assertive','then','value','createObjectURL','158344zOCaON','isBusy','isEnabled','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','ariaLiveAnnouncer','download','$defaultValues','pending','click','https://pdf-converter.cke-cs.com/v1/convert/','affectsData','catch','MergeFields','PDF\x20export\x20successful','getLabel','appID','finally','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.','editor','PDF\x20export\x20failed','Notification','<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','2EXmuHe','contentLanguageDirection','href','fetch','dataCallback'];_0x4856=function(){return _0x3406e7;};return _0x4856();}const _0x584927=_0x33d5;(function(_0x15ee48,_0xc5a628){const _0x42b0a2=_0x33d5,_0xf0d9a7=_0x15ee48();while(!![]){try{const _0x42eb78=parseInt(_0x42b0a2(0x20c))/0x1*(-parseInt(_0x42b0a2(0x22e))/0x2)+-parseInt(_0x42b0a2(0x1e7))/0x3+parseInt(_0x42b0a2(0x201))/0x4*(-parseInt(_0x42b0a2(0x1f1))/0x5)+parseInt(_0x42b0a2(0x1fa))/0x6+-parseInt(_0x42b0a2(0x211))/0x7+-parseInt(_0x42b0a2(0x218))/0x8+parseInt(_0x42b0a2(0x207))/0x9*(parseInt(_0x42b0a2(0x203))/0xa);if(_0x42eb78===_0xc5a628)break;else _0xf0d9a7['push'](_0xf0d9a7['shift']());}catch(_0x407a4f){_0xf0d9a7['push'](_0xf0d9a7['shift']());}}}(_0x4856,0x63073));import{Command as _0x130cd4}from'ckeditor5/src/core.js';import{getStyles as _0x3b5960}from'./utils.js';import{getTranslation as _0xa5152e}from'./utils/common-translations.js';function _0x33d5(_0x4ab483,_0xab89af){const _0x485665=_0x4856();return _0x33d5=function(_0x33d550,_0xf507d2){_0x33d550=_0x33d550-0x1e2;let _0x2f5e58=_0x485665[_0x33d550];return _0x2f5e58;},_0x33d5(_0x4ab483,_0xab89af);}export default class e extends _0x130cd4{constructor(_0x1fea18){const _0x147388=_0x33d5;super(_0x1fea18),this[_0x147388(0x210)](_0x147388(0x219),!0x1),this[_0x147388(0x222)]=!0x1;}[_0x584927(0x1ec)](){const _0x5eeb5c=_0x584927;this[_0x5eeb5c(0x21a)]=!this[_0x5eeb5c(0x219)],this[_0x5eeb5c(0x216)]=this[_0x5eeb5c(0x219)]?_0x5eeb5c(0x21f):void 0x0;}[_0x584927(0x200)](_0x48c884={}){const _0x5dbe51=_0x584927,_0x45dbab=this[_0x5dbe51(0x22a)],_0x28c7ae=_0x48c884[_0x5dbe51(0x1f0)]||_0x5dbe51(0x221),_0x450a59=_0x48c884[_0x5dbe51(0x232)]||(_0x33b5bc=>_0x33b5bc[_0x5dbe51(0x1e8)][_0x5dbe51(0x1ed)]()),_0x329ae5=_0x45dbab[_0x5dbe51(0x1f2)][_0x5dbe51(0x1ed)](_0x5dbe51(0x20f)),_0xb84dec=_0x48c884[_0x5dbe51(0x1fc)]||_0x329ae5[_0x5dbe51(0x213)];return this[_0x5dbe51(0x219)]=!0x0,this[_0x5dbe51(0x1ec)](),_0x3b5960(_0x48c884[_0x5dbe51(0x1e4)]||[_0x5dbe51(0x1e6)])[_0x5dbe51(0x215)](async _0x18c94f=>{const _0xf3702c=_0x5dbe51;if(_0x45dbab['ui'][_0xf3702c(0x21c)][_0xf3702c(0x1f5)](_0xa5152e(_0x45dbab[_0xf3702c(0x1eb)],_0xf3702c(0x1fe))),_0x45dbab[_0xf3702c(0x1f2)][_0xf3702c(0x1e5)](_0xf3702c(0x224))){_0x48c884[_0xf3702c(0x1e3)]||(_0x48c884[_0xf3702c(0x1e3)]={});const _0xa68a33=_0x45dbab[_0xf3702c(0x1f2)][_0xf3702c(0x1ed)](_0xf3702c(0x208)),_0x31af07=_0xa68a33[_0xf3702c(0x20d)],{prefix:_0x48b7b3,suffix:_0x56875c}=_0x45dbab[_0xf3702c(0x1ef)][_0xf3702c(0x1ed)](_0xf3702c(0x1f4)),_0x393d46={'prefix':_0x48b7b3,'suffix':_0x56875c,'data':{}};if(_0xf3702c(0x1ee)===_0x31af07){for(const _0x393000 of _0xa68a33[_0xf3702c(0x20b)]())_0x393d46[_0xf3702c(0x1e8)][_0x393000]=_0x48b7b3+_0xa68a33[_0xf3702c(0x226)](_0x393000)+_0x56875c;}else{const _0x4a5ff7=_0xf3702c(0x21e)===_0x31af07?_0xa68a33[_0xf3702c(0x1f9)]():_0xa68a33[_0xf3702c(0x20a)](_0x31af07,!0x0);for(const _0x5c9c00 of Object[_0xf3702c(0x1ea)](_0x4a5ff7)){const [_0x47f6d0,_0x4da707]=_0x5c9c00;_0x393d46[_0xf3702c(0x1e8)][_0x47f6d0]=null!==_0x4da707?_0x4da707:_0xa68a33[_0xf3702c(0x226)](_0x47f6d0);}}_0x48c884[_0xf3702c(0x1e3)][_0xf3702c(0x202)]=_0x393d46;}const _0x1095c3={'html':_0xf3702c(0x22d)+_0x45dbab[_0xf3702c(0x1eb)][_0xf3702c(0x22f)]+_0xf3702c(0x21b)+await _0x450a59(_0x45dbab)+_0xf3702c(0x212),'css':_0x18c94f,'options':_0x48c884[_0xf3702c(0x1e3)]},_0x9d172b={'method':_0xf3702c(0x233),'headers':{'Content-Type':_0xf3702c(0x1f3),'Accept':_0xf3702c(0x20e),..._0xb84dec?{'Authorization':_0xb84dec[_0xf3702c(0x216)]}:null,'x-cs-app-id':_0x48c884[_0xf3702c(0x227)]||_0xf3702c(0x206)},'body':JSON[_0xf3702c(0x1f8)](_0x1095c3)};return window[_0xf3702c(0x231)](_0x28c7ae,_0x9d172b)[_0xf3702c(0x215)](_0x40727d=>{const _0x582629=_0xf3702c;if(0xc8!==_0x40727d[_0x582629(0x1e2)])throw _0x40727d;return _0x40727d[_0x582629(0x209)]();})[_0xf3702c(0x215)](_0x542c53=>{const _0x5977d0=_0xf3702c;_0x45dbab['ui'][_0x5977d0(0x21c)][_0x5977d0(0x1f5)](_0xa5152e(_0x45dbab[_0x5977d0(0x1eb)],_0x5977d0(0x225)));const _0x1affa6=_0x5977d0(0x1ff)==typeof _0x48c884[_0x5977d0(0x1f6)]?_0x48c884[_0x5977d0(0x1f6)]():_0x48c884[_0x5977d0(0x1f6)];this[_0x5977d0(0x204)](_0x542c53,_0x1affa6||_0x5977d0(0x1f7));});})[_0x5dbe51(0x223)](_0x1c0d5c=>{const _0x48c566=_0x5dbe51,_0x1aabf2=_0x45dbab[_0x48c566(0x1f2)][_0x48c566(0x1ed)](_0x48c566(0x22c));throw _0x45dbab['ui'][_0x48c566(0x21c)][_0x48c566(0x1f5)](_0xa5152e(_0x45dbab[_0x48c566(0x1eb)],_0x48c566(0x22b)),{'politeness':_0x48c566(0x214)}),_0x1aabf2[_0x48c566(0x1e9)](_0xa5152e(_0x45dbab[_0x48c566(0x1eb)],_0x48c566(0x229))),_0x1c0d5c;})[_0x5dbe51(0x228)](()=>{const _0x16612c=_0x5dbe51;this[_0x16612c(0x219)]=!0x1,this[_0x16612c(0x1ec)]();});}[_0x584927(0x204)](_0x44f907,_0x124590){const _0x1967c9=_0x584927,_0x145199=document[_0x1967c9(0x205)]('a');_0x145199[_0x1967c9(0x230)]=window[_0x1967c9(0x1fb)][_0x1967c9(0x217)](_0x44f907),_0x145199[_0x1967c9(0x21d)]=_0x124590,_0x145199[_0x1967c9(0x220)](),_0x145199[_0x1967c9(0x1fd)]();}}
23
+ function _0x3dbe(){const _0x4619a4=['7IUfJvd','EDITOR_STYLES','fileName','279016mrQQJj','entries','Notification','contentLanguageDirection','ExportPdf','https://pdf-converter.cke-cs.com/v1/convert/','locale','pending','remove','announce','fetch','isEnabled','ariaLiveAnnouncer','39118904wFDkbO','\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','showWarning','getMergeFieldsIds','document.pdf','20gfohxi','stylesheets','application/pdf','<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','converterOptions','getDefaultValues','merge_fields','URL','185rqfDhw','115402FfQVSP','isBusy','execute','MergeFields','click','PDF\x20export\x20failed','getLabel','assertive','createObjectURL','getDataSetValues','165774hWKbxB','dataCallback','config','value','get','appID','cke5','createElement','57otKUdM','\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09','2943076VNHFgw','function','$defaultValues','converterUrl','MergeFieldsEditing','PDF\x20export\x20successful','$labels','2497464XXbfdk','mergeFields','download','previewMode','catch','application/json','finally','has','then','set','href','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.','plugins','data','editor','token','PDF\x20export\x20started','POST','_token','blob','affectsData','stringify','status','9336968zCiFAf','refresh','_downloadFile'];_0x3dbe=function(){return _0x4619a4;};return _0x3dbe();}const _0xcbfe3f=_0x1cdc;(function(_0xd06fb7,_0x453637){const _0x48e8cb=_0x1cdc,_0x20670e=_0xd06fb7();while(!![]){try{const _0x4bbf1c=parseInt(_0x48e8cb(0x1ab))/0x1+parseInt(_0x48e8cb(0x1c6))/0x2*(-parseInt(_0x48e8cb(0x1d8))/0x3)+parseInt(_0x48e8cb(0x1da))/0x4+-parseInt(_0x48e8cb(0x1c5))/0x5*(parseInt(_0x48e8cb(0x1d0))/0x6)+parseInt(_0x48e8cb(0x1a8))/0x7*(-parseInt(_0x48e8cb(0x1a5))/0x8)+parseInt(_0x48e8cb(0x1e1))/0x9*(-parseInt(_0x48e8cb(0x1bd))/0xa)+parseInt(_0x48e8cb(0x1b8))/0xb;if(_0x4bbf1c===_0x453637)break;else _0x20670e['push'](_0x20670e['shift']());}catch(_0x41a320){_0x20670e['push'](_0x20670e['shift']());}}}(_0x3dbe,0xb24e8));function _0x1cdc(_0x1531d5,_0x333cbe){const _0x3dbebd=_0x3dbe();return _0x1cdc=function(_0x1cdc60,_0x2f4f4d){_0x1cdc60=_0x1cdc60-0x19e;let _0x1d5693=_0x3dbebd[_0x1cdc60];return _0x1d5693;},_0x1cdc(_0x1531d5,_0x333cbe);}import{Command as _0x590f36}from'ckeditor5/src/core.js';import{getStyles as _0x46604e}from'./utils.js';import{getTranslation as _0x5195c5}from'./utils/common-translations.js';export default class e extends _0x590f36{constructor(_0x410d50){const _0x269782=_0x1cdc;super(_0x410d50),this[_0x269782(0x1ea)](_0x269782(0x1c7),!0x1),this[_0x269782(0x1a2)]=!0x1;}[_0xcbfe3f(0x1a6)](){const _0x4247d5=_0xcbfe3f;this[_0x4247d5(0x1b6)]=!this[_0x4247d5(0x1c7)],this[_0x4247d5(0x1d3)]=this[_0x4247d5(0x1c7)]?_0x4247d5(0x1b2):void 0x0;}[_0xcbfe3f(0x1c8)](_0x1a2019={}){const _0x492275=_0xcbfe3f,_0x282a26=this[_0x492275(0x1ef)],_0xf8fd5d=_0x1a2019[_0x492275(0x1dd)]||_0x492275(0x1b0),_0x50fd80=_0x1a2019[_0x492275(0x1d1)]||(_0x4707da=>_0x4707da[_0x492275(0x1ee)][_0x492275(0x1d4)]()),_0x3e1766=_0x282a26[_0x492275(0x1ed)][_0x492275(0x1d4)](_0x492275(0x1af)),_0x274672=_0x1a2019[_0x492275(0x1f0)]||_0x3e1766[_0x492275(0x1a0)];return this[_0x492275(0x1c7)]=!0x0,this[_0x492275(0x1a6)](),_0x46604e(_0x1a2019[_0x492275(0x1be)]||[_0x492275(0x1a9)])[_0x492275(0x1e9)](async _0xf9eb6c=>{const _0x80c663=_0x492275;if(_0x282a26['ui'][_0x80c663(0x1b7)][_0x80c663(0x1b4)](_0x5195c5(_0x282a26[_0x80c663(0x1b1)],_0x80c663(0x19e))),_0x282a26[_0x80c663(0x1ed)][_0x80c663(0x1e8)](_0x80c663(0x1c9))){_0x1a2019[_0x80c663(0x1c1)]||(_0x1a2019[_0x80c663(0x1c1)]={});const _0x5051dc=_0x282a26[_0x80c663(0x1ed)][_0x80c663(0x1d4)](_0x80c663(0x1de)),_0x55bba1=_0x5051dc[_0x80c663(0x1e4)],{prefix:_0x4142c1,suffix:_0x3bd69f}=_0x282a26[_0x80c663(0x1d2)][_0x80c663(0x1d4)](_0x80c663(0x1e2)),_0x5bba2e={'prefix':_0x4142c1,'suffix':_0x3bd69f,'data':{}};if(_0x80c663(0x1e0)===_0x55bba1){for(const _0x2434be of _0x5051dc[_0x80c663(0x1bb)]())_0x5bba2e[_0x80c663(0x1ee)][_0x2434be]=_0x4142c1+_0x5051dc[_0x80c663(0x1cc)](_0x2434be)+_0x3bd69f;}else{const _0x454674=_0x80c663(0x1dc)===_0x55bba1?_0x5051dc[_0x80c663(0x1c2)]():_0x5051dc[_0x80c663(0x1cf)](_0x55bba1,!0x0);for(const _0xfbb3fb of Object[_0x80c663(0x1ac)](_0x454674)){const [_0x5800e7,_0x21af3c]=_0xfbb3fb;_0x5bba2e[_0x80c663(0x1ee)][_0x5800e7]=null!==_0x21af3c?_0x21af3c:_0x5051dc[_0x80c663(0x1cc)](_0x5800e7);}}_0x1a2019[_0x80c663(0x1c1)][_0x80c663(0x1c3)]=_0x5bba2e;}const _0x8b5cbd={'html':_0x80c663(0x1c0)+_0x282a26[_0x80c663(0x1b1)][_0x80c663(0x1ae)]+_0x80c663(0x1d9)+await _0x50fd80(_0x282a26)+_0x80c663(0x1b9),'css':_0xf9eb6c,'options':_0x1a2019[_0x80c663(0x1c1)]},_0x2c71dc={'method':_0x80c663(0x19f),'headers':{'Content-Type':_0x80c663(0x1e6),'Accept':_0x80c663(0x1bf),..._0x274672?{'Authorization':_0x274672[_0x80c663(0x1d3)]}:null,'x-cs-app-id':_0x1a2019[_0x80c663(0x1d5)]||_0x80c663(0x1d6)},'body':JSON[_0x80c663(0x1a3)](_0x8b5cbd)};return window[_0x80c663(0x1b5)](_0xf8fd5d,_0x2c71dc)[_0x80c663(0x1e9)](_0x721ac3=>{const _0x2f65e=_0x80c663;if(0xc8!==_0x721ac3[_0x2f65e(0x1a4)])throw _0x721ac3;return _0x721ac3[_0x2f65e(0x1a1)]();})[_0x80c663(0x1e9)](_0x3c7f84=>{const _0x5a32dd=_0x80c663;_0x282a26['ui'][_0x5a32dd(0x1b7)][_0x5a32dd(0x1b4)](_0x5195c5(_0x282a26[_0x5a32dd(0x1b1)],_0x5a32dd(0x1df)));const _0x1ea9ad=_0x5a32dd(0x1db)==typeof _0x1a2019[_0x5a32dd(0x1aa)]?_0x1a2019[_0x5a32dd(0x1aa)]():_0x1a2019[_0x5a32dd(0x1aa)];this[_0x5a32dd(0x1a7)](_0x3c7f84,_0x1ea9ad||_0x5a32dd(0x1bc));});})[_0x492275(0x1e5)](_0x3faf86=>{const _0x41c6b1=_0x492275,_0x54b195=_0x282a26[_0x41c6b1(0x1ed)][_0x41c6b1(0x1d4)](_0x41c6b1(0x1ad));throw _0x282a26['ui'][_0x41c6b1(0x1b7)][_0x41c6b1(0x1b4)](_0x5195c5(_0x282a26[_0x41c6b1(0x1b1)],_0x41c6b1(0x1cb)),{'politeness':_0x41c6b1(0x1cd)}),_0x54b195[_0x41c6b1(0x1ba)](_0x5195c5(_0x282a26[_0x41c6b1(0x1b1)],_0x41c6b1(0x1ec))),_0x3faf86;})[_0x492275(0x1e7)](()=>{const _0x97885d=_0x492275;this[_0x97885d(0x1c7)]=!0x1,this[_0x97885d(0x1a6)]();});}[_0xcbfe3f(0x1a7)](_0x288366,_0x31c38f){const _0x36785e=_0xcbfe3f,_0x12710b=document[_0x36785e(0x1d7)]('a');_0x12710b[_0x36785e(0x1eb)]=window[_0x36785e(0x1c4)][_0x36785e(0x1ce)](_0x288366),_0x12710b[_0x36785e(0x1e3)]=_0x31c38f,_0x12710b[_0x36785e(0x1ca)](),_0x12710b[_0x36785e(0x1b3)]();}}
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module export-pdf/exportpdfui
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2de356=_0x98ec;(function(_0x1be154,_0x57a12d){const _0x318caf=_0x98ec,_0x2249d9=_0x1be154();while(!![]){try{const _0x17a307=parseInt(_0x318caf(0x19c))/0x1*(-parseInt(_0x318caf(0x18e))/0x2)+parseInt(_0x318caf(0x19e))/0x3+parseInt(_0x318caf(0x194))/0x4+parseInt(_0x318caf(0x1a1))/0x5*(-parseInt(_0x318caf(0x196))/0x6)+parseInt(_0x318caf(0x1a8))/0x7*(-parseInt(_0x318caf(0x1a7))/0x8)+parseInt(_0x318caf(0x183))/0x9+parseInt(_0x318caf(0x189))/0xa*(parseInt(_0x318caf(0x192))/0xb);if(_0x17a307===_0x57a12d)break;else _0x2249d9['push'](_0x2249d9['shift']());}catch(_0x3b59ac){_0x2249d9['push'](_0x2249d9['shift']());}}}(_0x196a,0x2140d));import{Plugin as _0x204902}from'ckeditor5/src/core.js';import{ButtonView as _0x471ea8,MenuBarMenuListItemButtonView as _0x1d5e0b,SpinnerView as _0x1c67de}from'ckeditor5/src/ui.js';import _0x59ad8f from'../theme/icons/exportpdf.svg';import{getTranslation as _0x48aa47}from'./utils/common-translations.js';function _0x98ec(_0x4bb118,_0x4bc2f8){const _0x196aa6=_0x196a();return _0x98ec=function(_0x98ec38,_0x1308b3){_0x98ec38=_0x98ec38-0x181;let _0x25ba05=_0x196aa6[_0x98ec38];return _0x25ba05;},_0x98ec(_0x4bb118,_0x4bc2f8);}function _0x196a(){const _0x3f3b7b=['children','isOfficialPlugin','config','isOn','922005uUUpSn','componentFactory','get','pluginName','exportPdf','add','740lZANgL','_createButton','ExportPdfUI','Export\x20to\x20PDF','menuBar:exportPdf','352EtANIW','bind','init','isPremiumPlugin','13684GVLQmc','isBusy','799808oufdJA','isEnabled','330BjGpTa','label','commands','focus','isVisible','iconView','1016kIzCsw','listenTo','99063MPXPXV','set','editing','5mVvWYG','locale','execute','view','Exporting\x20PDF\x20document','editor','149864ceiorc','42FZPLvJ'];_0x196a=function(){return _0x3f3b7b;};return _0x196a();}export default class s extends _0x204902{static get[_0x2de356(0x186)](){const _0x5592a3=_0x2de356;return _0x5592a3(0x18b);}static get[_0x2de356(0x1aa)](){return!0x0;}static get[_0x2de356(0x191)](){return!0x0;}[_0x2de356(0x190)](){const _0x2e708f=_0x2de356,_0x956b44=this[_0x2e708f(0x1a6)];_0x956b44['ui'][_0x2e708f(0x184)][_0x2e708f(0x188)](_0x2e708f(0x187),()=>{const _0x4fd52a=_0x2e708f,_0x3f84eb=this[_0x4fd52a(0x18a)](_0x471ea8),_0x3cb36=_0x956b44[_0x4fd52a(0x198)][_0x4fd52a(0x185)](_0x4fd52a(0x187));return _0x3f84eb[_0x4fd52a(0x19f)]({'tooltip':!0x0}),_0x3f84eb[_0x4fd52a(0x18f)](_0x4fd52a(0x182))['to'](_0x3cb36,_0x4fd52a(0x193)),_0x3f84eb;}),_0x956b44['ui'][_0x2e708f(0x184)][_0x2e708f(0x188)](_0x2e708f(0x18d),()=>this[_0x2e708f(0x18a)](_0x1d5e0b));}[_0x2de356(0x18a)](_0x1e1bed){const _0x793951=_0x2de356,_0x391b05=this[_0x793951(0x1a6)],_0xa4fb5=_0x391b05[_0x793951(0x181)][_0x793951(0x185)](_0x793951(0x187))||{},_0x544819=_0x391b05[_0x793951(0x198)][_0x793951(0x185)](_0x793951(0x187)),_0x5c8669=new _0x1e1bed(_0x391b05[_0x793951(0x1a2)]),_0x17c200=new _0x1c67de();return _0x5c8669[_0x793951(0x1a9)][_0x793951(0x188)](_0x17c200),_0x17c200[_0x793951(0x18f)](_0x793951(0x19a))['to'](_0x544819,_0x793951(0x193)),_0x5c8669[_0x793951(0x19b)][_0x793951(0x18f)](_0x793951(0x19a))['to'](_0x544819,_0x793951(0x193),_0x479e0d=>!_0x479e0d),_0x5c8669[_0x793951(0x19f)]({'icon':_0x59ad8f}),_0x5c8669[_0x793951(0x18f)](_0x793951(0x195))['to'](_0x544819,_0x793951(0x195)),_0x5c8669[_0x793951(0x18f)](_0x793951(0x197))['to'](_0x544819,_0x793951(0x193),_0x391742=>_0x48aa47(_0x391b05[_0x793951(0x1a2)],_0x391742?_0x793951(0x1a5):_0x793951(0x18c))),this[_0x793951(0x19d)](_0x5c8669,_0x793951(0x1a3),()=>{const _0x34333a=_0x793951;_0x391b05[_0x34333a(0x1a3)](_0x34333a(0x187),_0xa4fb5),_0x391b05[_0x34333a(0x1a0)][_0x34333a(0x1a4)][_0x34333a(0x199)]();}),_0x5c8669;}}
23
+ const _0x16dfe0=_0x12a3;(function(_0x26a902,_0x3ce0ac){const _0x20fd70=_0x12a3,_0x256aae=_0x26a902();while(!![]){try{const _0x2557df=parseInt(_0x20fd70(0x122))/0x1*(parseInt(_0x20fd70(0x13a))/0x2)+parseInt(_0x20fd70(0x13d))/0x3+parseInt(_0x20fd70(0x12e))/0x4*(parseInt(_0x20fd70(0x138))/0x5)+parseInt(_0x20fd70(0x124))/0x6*(-parseInt(_0x20fd70(0x13f))/0x7)+-parseInt(_0x20fd70(0x144))/0x8+parseInt(_0x20fd70(0x133))/0x9+-parseInt(_0x20fd70(0x130))/0xa*(parseInt(_0x20fd70(0x146))/0xb);if(_0x2557df===_0x3ce0ac)break;else _0x256aae['push'](_0x256aae['shift']());}catch(_0x22847e){_0x256aae['push'](_0x256aae['shift']());}}}(_0x5362,0xaabbc));import{Plugin as _0x12543a}from'ckeditor5/src/core.js';import{ButtonView as _0x5eb69e,MenuBarMenuListItemButtonView as _0x3b0738,SpinnerView as _0x37429c}from'ckeditor5/src/ui.js';import _0x1ad869 from'../theme/icons/exportpdf.svg';function _0x12a3(_0x2ac873,_0x3dcf7b){const _0x53627c=_0x5362();return _0x12a3=function(_0x12a362,_0x34a6db){_0x12a362=_0x12a362-0x122;let _0x465394=_0x53627c[_0x12a362];return _0x465394;},_0x12a3(_0x2ac873,_0x3dcf7b);}import{getTranslation as _0x29b522}from'./utils/common-translations.js';function _0x5362(){const _0x119996=['bind','children','963005mgpXVZ','view','44FsTbHI','menuBar:exportPdf','exportPdf','243840DcrwYy','isPremiumPlugin','96747zeRGLE','pluginName','isEnabled','label','execute','4007440zPcOfY','get','132pgkWPg','editing','componentFactory','editor','locale','iconView','8681RJTPtz','add','18JPSsQO','focus','config','isVisible','Export\x20to\x20PDF','init','isBusy','listenTo','isOfficialPlugin','set','16hCdGVt','Exporting\x20PDF\x20document','277790pvKbqm','commands','ExportPdfUI','4791591UGCeYv','_createButton','isOn'];_0x5362=function(){return _0x119996;};return _0x5362();}export default class s extends _0x12543a{static get[_0x16dfe0(0x140)](){const _0x40b506=_0x16dfe0;return _0x40b506(0x132);}static get[_0x16dfe0(0x12c)](){return!0x0;}static get[_0x16dfe0(0x13e)](){return!0x0;}[_0x16dfe0(0x129)](){const _0x383b75=_0x16dfe0,_0x46fe85=this[_0x383b75(0x149)];_0x46fe85['ui'][_0x383b75(0x148)][_0x383b75(0x123)](_0x383b75(0x13c),()=>{const _0x2bf779=_0x383b75,_0x2abcb5=this[_0x2bf779(0x134)](_0x5eb69e),_0x344380=_0x46fe85[_0x2bf779(0x131)][_0x2bf779(0x145)](_0x2bf779(0x13c));return _0x2abcb5[_0x2bf779(0x12d)]({'tooltip':!0x0}),_0x2abcb5[_0x2bf779(0x136)](_0x2bf779(0x135))['to'](_0x344380,_0x2bf779(0x12a)),_0x2abcb5;}),_0x46fe85['ui'][_0x383b75(0x148)][_0x383b75(0x123)](_0x383b75(0x13b),()=>this[_0x383b75(0x134)](_0x3b0738));}[_0x16dfe0(0x134)](_0x557f9c){const _0x2be2b9=_0x16dfe0,_0x10f99e=this[_0x2be2b9(0x149)],_0x42fb38=_0x10f99e[_0x2be2b9(0x126)][_0x2be2b9(0x145)](_0x2be2b9(0x13c))||{},_0x59db37=_0x10f99e[_0x2be2b9(0x131)][_0x2be2b9(0x145)](_0x2be2b9(0x13c)),_0x5170bd=new _0x557f9c(_0x10f99e[_0x2be2b9(0x14a)]),_0x4a62c7=new _0x37429c();return _0x5170bd[_0x2be2b9(0x137)][_0x2be2b9(0x123)](_0x4a62c7),_0x4a62c7[_0x2be2b9(0x136)](_0x2be2b9(0x127))['to'](_0x59db37,_0x2be2b9(0x12a)),_0x5170bd[_0x2be2b9(0x14b)][_0x2be2b9(0x136)](_0x2be2b9(0x127))['to'](_0x59db37,_0x2be2b9(0x12a),_0x59d7ae=>!_0x59d7ae),_0x5170bd[_0x2be2b9(0x12d)]({'icon':_0x1ad869}),_0x5170bd[_0x2be2b9(0x136)](_0x2be2b9(0x141))['to'](_0x59db37,_0x2be2b9(0x141)),_0x5170bd[_0x2be2b9(0x136)](_0x2be2b9(0x142))['to'](_0x59db37,_0x2be2b9(0x12a),_0x22d4f1=>_0x29b522(_0x10f99e[_0x2be2b9(0x14a)],_0x22d4f1?_0x2be2b9(0x12f):_0x2be2b9(0x128))),this[_0x2be2b9(0x12b)](_0x5170bd,_0x2be2b9(0x143),()=>{const _0x20b85c=_0x2be2b9;_0x10f99e[_0x20b85c(0x143)](_0x20b85c(0x13c),_0x42fb38),_0x10f99e[_0x20b85c(0x147)][_0x20b85c(0x139)][_0x20b85c(0x125)]();}),_0x5170bd;}}
package/src/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module export-pdf
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x33320c,_0x1bbfa2){var _0x1bb244=_0x6790,_0x2b33fd=_0x33320c();while(!![]){try{var _0x210c3e=-parseInt(_0x1bb244(0x153))/0x1*(-parseInt(_0x1bb244(0x155))/0x2)+parseInt(_0x1bb244(0x15a))/0x3+-parseInt(_0x1bb244(0x156))/0x4+parseInt(_0x1bb244(0x158))/0x5+-parseInt(_0x1bb244(0x159))/0x6*(parseInt(_0x1bb244(0x15c))/0x7)+-parseInt(_0x1bb244(0x154))/0x8*(-parseInt(_0x1bb244(0x157))/0x9)+-parseInt(_0x1bb244(0x15b))/0xa;if(_0x210c3e===_0x1bbfa2)break;else _0x2b33fd['push'](_0x2b33fd['shift']());}catch(_0xf516ab){_0x2b33fd['push'](_0x2b33fd['shift']());}}}(_0x4e69,0xcfbf6));export{default as ExportPdf}from'./exportpdf.js';function _0x6790(_0x50f083,_0x1b5507){var _0x4e6988=_0x4e69();return _0x6790=function(_0x67901c,_0x20eabb){_0x67901c=_0x67901c-0x153;var _0x7066c6=_0x4e6988[_0x67901c];return _0x7066c6;},_0x6790(_0x50f083,_0x1b5507);}function _0x4e69(){var _0x49e166=['8aeBIme','3333794PDCGCM','4972744xOvDdG','10900467lBVeaC','4234000ibEbvM','81966SsyCQs','1539147ztfHGn','9552820ChBGcp','609kJGMHb','1ObhDpe'];_0x4e69=function(){return _0x49e166;};return _0x4e69();}import'./augmentation.js';
23
+ (function(_0x1a5a0e,_0x4b434f){var _0x40d85b=_0x4180,_0x455597=_0x1a5a0e();while(!![]){try{var _0x2a1eef=parseInt(_0x40d85b(0x1f9))/0x1+-parseInt(_0x40d85b(0x1f6))/0x2+parseInt(_0x40d85b(0x1f2))/0x3*(parseInt(_0x40d85b(0x1f8))/0x4)+-parseInt(_0x40d85b(0x1fa))/0x5+parseInt(_0x40d85b(0x1f4))/0x6*(parseInt(_0x40d85b(0x1f7))/0x7)+-parseInt(_0x40d85b(0x1fb))/0x8*(parseInt(_0x40d85b(0x1f3))/0x9)+parseInt(_0x40d85b(0x1f5))/0xa;if(_0x2a1eef===_0x4b434f)break;else _0x455597['push'](_0x455597['shift']());}catch(_0x5d3562){_0x455597['push'](_0x455597['shift']());}}}(_0x44a4,0x7ba8c));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';function _0x4180(_0x44c6bc,_0x49b950){var _0x44a47f=_0x44a4();return _0x4180=function(_0x41801e,_0x3cd56c){_0x41801e=_0x41801e-0x1f2;var _0x15baf8=_0x44a47f[_0x41801e];return _0x15baf8;},_0x4180(_0x44c6bc,_0x49b950);}function _0x44a4(){var _0x5b4a22=['9576ZYIJFE','108EXVopT','758120wBZnbU','2248245oHzzsX','5672WFTHHL','11037TBXOsq','4797OdjEfd','660DVRTuB','9547930OVNhML','1257344STXZAC'];_0x44a4=function(){return _0x5b4a22;};return _0x44a4();}
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module export-pdf/utils/common-translations
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x64da07,_0x1eba26){const t=_0x64da07['t'];switch(_0x1eba26){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 _0x1eba26;}}
23
+ export function getTranslation(_0x46040,_0x581684){const t=_0x46040['t'];switch(_0x581684){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 _0x581684;}}
package/src/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * A helper function for getting concatenated CSS rules from external stylesheets and the editor.
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2b62(_0x5dd22f,_0x50d175){const _0x2e55dc=_0x2e55();return _0x2b62=function(_0x2b6265,_0x297287){_0x2b6265=_0x2b6265-0xeb;let _0x18db3c=_0x2e55dc[_0x2b6265];return _0x18db3c;},_0x2b62(_0x5dd22f,_0x50d175);}(function(_0x58e0d3,_0x2ccdde){const _0x233cff=_0x2b62,_0x4530e7=_0x58e0d3();while(!![]){try{const _0x42a2ae=parseInt(_0x233cff(0xff))/0x1+parseInt(_0x233cff(0x10a))/0x2*(-parseInt(_0x233cff(0x10b))/0x3)+-parseInt(_0x233cff(0xf7))/0x4*(parseInt(_0x233cff(0xfe))/0x5)+parseInt(_0x233cff(0xf4))/0x6*(parseInt(_0x233cff(0xfa))/0x7)+parseInt(_0x233cff(0xfc))/0x8*(parseInt(_0x233cff(0xf1))/0x9)+-parseInt(_0x233cff(0x107))/0xa*(-parseInt(_0x233cff(0xeb))/0xb)+-parseInt(_0x233cff(0x109))/0xc;if(_0x42a2ae===_0x2ccdde)break;else _0x4530e7['push'](_0x4530e7['shift']());}catch(_0x3910f2){_0x4530e7['push'](_0x4530e7['shift']());}}}(_0x2e55,0x720d3));function _0x2e55(){const _0x206124=['96WGpkhf','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.','trim','76979hhmZgI','fetch','48mzMJYY','cssText','21215IiOqIx','825612XAKzkn','from','styleSheets','cssRules','.ck-content','text','ownerNode','warn','100WmHaaR','all','5544744DLLQjC','616xPjyvW','4056IhfaWx','492283IHrxtp','data-cke','EDITOR_STYLES','indexOf',':root','length','47043TWUffe','hasAttribute','then','78FlACSA','push','join'];_0x2e55=function(){return _0x206124;};return _0x2e55();}export function getStyles(_0x1a14c6){const _0x1d085e=_0x2b62;if(!_0x1a14c6)return new Promise(_0x14e993=>_0x14e993(''));const _0x56c79d=[];for(const _0x247926 of _0x1a14c6)_0x1d085e(0xed)!==_0x247926?_0x56c79d[_0x1d085e(0xf5)](window[_0x1d085e(0xfb)](_0x247926)[_0x1d085e(0xf3)](_0x25af7b=>_0x25af7b[_0x1d085e(0x104)]())):_0x56c79d[_0x1d085e(0xf5)](a());return Promise[_0x1d085e(0x108)](_0x56c79d)[_0x1d085e(0xf3)](_0x259bb3=>_0x259bb3[_0x1d085e(0xf6)]('\x20')[_0x1d085e(0xf9)]());}function a(){const _0x5227df=_0x2b62,_0x4b0345=[],_0x5c6730=[];for(const _0x14ee9d of Array[_0x5227df(0x100)](document[_0x5227df(0x101)])){if(_0x14ee9d[_0x5227df(0x105)][_0x5227df(0xf2)](_0x5227df(0xec))){for(const _0x3c51ea of Array[_0x5227df(0x100)](_0x14ee9d[_0x5227df(0x102)]))-0x1!==_0x3c51ea[_0x5227df(0xfd)][_0x5227df(0xee)](_0x5227df(0x103))?_0x4b0345[_0x5227df(0xf5)](_0x3c51ea[_0x5227df(0xfd)]):-0x1!==_0x3c51ea[_0x5227df(0xfd)][_0x5227df(0xee)](_0x5227df(0xef))&&_0x5c6730[_0x5227df(0xf5)](_0x3c51ea[_0x5227df(0xfd)]);}}return _0x4b0345[_0x5227df(0xf0)]||console[_0x5227df(0x106)](_0x5227df(0xf8)),[..._0x5c6730,..._0x4b0345][_0x5227df(0xf6)]('\x20')[_0x5227df(0xf9)]();}
23
+ (function(_0x5741c8,_0x14c93c){const _0x2c3735=_0x300c,_0x3abfdb=_0x5741c8();while(!![]){try{const _0x19c716=parseInt(_0x2c3735(0x123))/0x1+-parseInt(_0x2c3735(0x110))/0x2*(-parseInt(_0x2c3735(0x113))/0x3)+parseInt(_0x2c3735(0x10e))/0x4+parseInt(_0x2c3735(0x119))/0x5+-parseInt(_0x2c3735(0x112))/0x6*(parseInt(_0x2c3735(0x114))/0x7)+-parseInt(_0x2c3735(0x121))/0x8+-parseInt(_0x2c3735(0x106))/0x9;if(_0x19c716===_0x14c93c)break;else _0x3abfdb['push'](_0x3abfdb['shift']());}catch(_0x5791f8){_0x3abfdb['push'](_0x3abfdb['shift']());}}}(_0x25e4,0x5758b));function _0x300c(_0x237eb2,_0x3a1df5){const _0x25e429=_0x25e4();return _0x300c=function(_0x300ce4,_0x4ede5e){_0x300ce4=_0x300ce4-0x106;let _0x49a6c8=_0x25e429[_0x300ce4];return _0x49a6c8;},_0x300c(_0x237eb2,_0x3a1df5);}function _0x25e4(){const _0xf14b0a=['14PUZgrr','styleSheets','1056lDiMjC','219546pycemY','5096rSfALb','text','.ck-content','join','data-cke','2922145GAnFvS','cssRules','push','cssText','indexOf','hasAttribute','from','ownerNode','1911888GXXbze',':root','499975qBzZRk','10670751GXtYNZ','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.','fetch','trim','all','EDITOR_STYLES','length','1255384nsJvPm','then'];_0x25e4=function(){return _0xf14b0a;};return _0x25e4();}export function getStyles(_0x579e9e){const _0x7b734f=_0x300c;if(!_0x579e9e)return new Promise(_0xd3f329=>_0xd3f329(''));const _0x3c0026=[];for(const _0x22751e of _0x579e9e)_0x7b734f(0x10c)!==_0x22751e?_0x3c0026[_0x7b734f(0x11b)](window[_0x7b734f(0x109)](_0x22751e)[_0x7b734f(0x10f)](_0x5f3637=>_0x5f3637[_0x7b734f(0x115)]())):_0x3c0026[_0x7b734f(0x11b)](a());return Promise[_0x7b734f(0x10b)](_0x3c0026)[_0x7b734f(0x10f)](_0x29caa1=>_0x29caa1[_0x7b734f(0x117)]('\x20')[_0x7b734f(0x10a)]());}function a(){const _0x5ca3ce=_0x300c,_0x5e3428=[],_0x808849=[];for(const _0x5a9bd9 of Array[_0x5ca3ce(0x11f)](document[_0x5ca3ce(0x111)])){if(_0x5a9bd9[_0x5ca3ce(0x120)][_0x5ca3ce(0x11e)](_0x5ca3ce(0x118))){for(const _0x5be802 of Array[_0x5ca3ce(0x11f)](_0x5a9bd9[_0x5ca3ce(0x11a)]))-0x1!==_0x5be802[_0x5ca3ce(0x11c)][_0x5ca3ce(0x11d)](_0x5ca3ce(0x116))?_0x5e3428[_0x5ca3ce(0x11b)](_0x5be802[_0x5ca3ce(0x11c)]):-0x1!==_0x5be802[_0x5ca3ce(0x11c)][_0x5ca3ce(0x11d)](_0x5ca3ce(0x122))&&_0x808849[_0x5ca3ce(0x11b)](_0x5be802[_0x5ca3ce(0x11c)]);}}return _0x5e3428[_0x5ca3ce(0x10d)]||console[_0x5ca3ce(0x107)](_0x5ca3ce(0x108)),[..._0x808849,..._0x5e3428][_0x5ca3ce(0x117)]('\x20')[_0x5ca3ce(0x10a)]();}
@@ -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-oss-license
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-oss-license
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-oss-license
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-oss-license
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
- }