@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260107.0 → 0.0.0-nightly-next-20260107.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 (272) hide show
  1. package/ckeditor5-metadata.json +2 -2
  2. package/{src → dist}/augmentation.d.ts +4 -0
  3. package/{src → dist}/index.d.ts +4 -0
  4. package/dist/index.js +3 -3
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/{src → dist}/ui/uploadcarecontroller.d.ts +7 -3
  152. package/{src → dist}/ui/uploadcareformview.d.ts +5 -1
  153. package/{src → dist}/uploadcare.d.ts +5 -1
  154. package/{src → dist}/uploadcarecommand.d.ts +6 -2
  155. package/{src → dist}/uploadcareconfig.d.ts +5 -1
  156. package/{src → dist}/uploadcareediting.d.ts +6 -2
  157. package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +9 -5
  158. package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +6 -2
  159. package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +6 -2
  160. package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +6 -2
  161. package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +5 -1
  162. package/{src → dist}/uploadcareimageedit/uploadcareimageeditcommand.d.ts +6 -2
  163. package/{src → dist}/uploadcareimageedit/uploadcareimageeditediting.d.ts +6 -2
  164. package/{src → dist}/uploadcareimageedit/uploadcareimageeditui.d.ts +5 -1
  165. package/{src → dist}/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +5 -1
  166. package/{src → dist}/uploadcareimageedit.d.ts +5 -1
  167. package/{src → dist}/uploadcareui.d.ts +5 -1
  168. package/{src → dist}/uploadcareuploadadapter.d.ts +6 -2
  169. package/{src → dist}/utils/common-translations.d.ts +4 -0
  170. package/{src → dist}/utils/dialogfocusmanagerview.d.ts +6 -2
  171. package/{src → dist}/utils/editingutils.d.ts +4 -0
  172. package/{src → dist}/utils/isancestor.d.ts +4 -0
  173. package/{src → dist}/utils/uploadutils.d.ts +4 -0
  174. package/package.json +23 -33
  175. package/build/translations/af.js +0 -1
  176. package/build/translations/ar.js +0 -1
  177. package/build/translations/ast.js +0 -1
  178. package/build/translations/az.js +0 -1
  179. package/build/translations/be.js +0 -1
  180. package/build/translations/bg.js +0 -1
  181. package/build/translations/bn.js +0 -1
  182. package/build/translations/bs.js +0 -1
  183. package/build/translations/ca.js +0 -1
  184. package/build/translations/cs.js +0 -1
  185. package/build/translations/da.js +0 -1
  186. package/build/translations/de-ch.js +0 -1
  187. package/build/translations/de.js +0 -1
  188. package/build/translations/el.js +0 -1
  189. package/build/translations/en-au.js +0 -1
  190. package/build/translations/en-gb.js +0 -1
  191. package/build/translations/eo.js +0 -1
  192. package/build/translations/es-co.js +0 -1
  193. package/build/translations/es.js +0 -1
  194. package/build/translations/et.js +0 -1
  195. package/build/translations/eu.js +0 -1
  196. package/build/translations/fa.js +0 -1
  197. package/build/translations/fi.js +0 -1
  198. package/build/translations/fr.js +0 -1
  199. package/build/translations/gl.js +0 -1
  200. package/build/translations/gu.js +0 -1
  201. package/build/translations/he.js +0 -1
  202. package/build/translations/hi.js +0 -1
  203. package/build/translations/hr.js +0 -1
  204. package/build/translations/hu.js +0 -1
  205. package/build/translations/hy.js +0 -1
  206. package/build/translations/id.js +0 -1
  207. package/build/translations/it.js +0 -1
  208. package/build/translations/ja.js +0 -1
  209. package/build/translations/jv.js +0 -1
  210. package/build/translations/kk.js +0 -1
  211. package/build/translations/km.js +0 -1
  212. package/build/translations/kn.js +0 -1
  213. package/build/translations/ko.js +0 -1
  214. package/build/translations/ku.js +0 -1
  215. package/build/translations/lt.js +0 -1
  216. package/build/translations/lv.js +0 -1
  217. package/build/translations/ms.js +0 -1
  218. package/build/translations/nb.js +0 -1
  219. package/build/translations/ne.js +0 -1
  220. package/build/translations/nl.js +0 -1
  221. package/build/translations/no.js +0 -1
  222. package/build/translations/oc.js +0 -1
  223. package/build/translations/pl.js +0 -1
  224. package/build/translations/pt-br.js +0 -1
  225. package/build/translations/pt.js +0 -1
  226. package/build/translations/ro.js +0 -1
  227. package/build/translations/ru.js +0 -1
  228. package/build/translations/si.js +0 -1
  229. package/build/translations/sk.js +0 -1
  230. package/build/translations/sl.js +0 -1
  231. package/build/translations/sq.js +0 -1
  232. package/build/translations/sr-latn.js +0 -1
  233. package/build/translations/sr.js +0 -1
  234. package/build/translations/sv.js +0 -1
  235. package/build/translations/th.js +0 -1
  236. package/build/translations/ti.js +0 -1
  237. package/build/translations/tk.js +0 -1
  238. package/build/translations/tr.js +0 -1
  239. package/build/translations/tt.js +0 -1
  240. package/build/translations/ug.js +0 -1
  241. package/build/translations/uk.js +0 -1
  242. package/build/translations/ur.js +0 -1
  243. package/build/translations/uz.js +0 -1
  244. package/build/translations/vi.js +0 -1
  245. package/build/translations/zh-cn.js +0 -1
  246. package/build/translations/zh.js +0 -1
  247. package/build/uploadcare.js +0 -5
  248. package/src/augmentation.js +0 -23
  249. package/src/index.js +0 -23
  250. package/src/ui/uploadcarecontroller.js +0 -24
  251. package/src/ui/uploadcareformview.js +0 -23
  252. package/src/uploadcare.js +0 -23
  253. package/src/uploadcarecommand.js +0 -23
  254. package/src/uploadcareconfig.js +0 -23
  255. package/src/uploadcareediting.js +0 -23
  256. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +0 -24
  257. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +0 -23
  258. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +0 -23
  259. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +0 -23
  260. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +0 -23
  261. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +0 -23
  262. package/src/uploadcareimageedit/uploadcareimageeditediting.js +0 -23
  263. package/src/uploadcareimageedit/uploadcareimageeditui.js +0 -23
  264. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +0 -23
  265. package/src/uploadcareimageedit.js +0 -23
  266. package/src/uploadcareui.js +0 -23
  267. package/src/uploadcareuploadadapter.js +0 -23
  268. package/src/utils/common-translations.js +0 -23
  269. package/src/utils/dialogfocusmanagerview.js +0 -23
  270. package/src/utils/editingutils.js +0 -23
  271. package/src/utils/isancestor.js +0 -23
  272. package/src/utils/uploadutils.js +0 -23
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- export{};
package/src/index.js DELETED
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- (function(_0x1f6d7e,_0x4f4592){var _0x1258a6=_0x13b6,_0x4685f9=_0x1f6d7e();while(!![]){try{var _0x21dd56=parseInt(_0x1258a6(0xfd))/0x1*(-parseInt(_0x1258a6(0x100))/0x2)+parseInt(_0x1258a6(0x104))/0x3*(-parseInt(_0x1258a6(0xff))/0x4)+-parseInt(_0x1258a6(0xf8))/0x5*(-parseInt(_0x1258a6(0xf9))/0x6)+-parseInt(_0x1258a6(0x101))/0x7*(-parseInt(_0x1258a6(0x103))/0x8)+parseInt(_0x1258a6(0xfb))/0x9*(-parseInt(_0x1258a6(0xf7))/0xa)+parseInt(_0x1258a6(0xfc))/0xb*(parseInt(_0x1258a6(0xfe))/0xc)+parseInt(_0x1258a6(0xfa))/0xd*(parseInt(_0x1258a6(0x102))/0xe);if(_0x21dd56===_0x4f4592)break;else _0x4685f9['push'](_0x4685f9['shift']());}catch(_0x2e9acf){_0x4685f9['push'](_0x4685f9['shift']());}}}(_0x5533,0xa6984));export{Uploadcare}from'./uploadcare.js';export{UploadcareEditing}from'./uploadcareediting.js';export{UploadcareUI}from'./uploadcareui.js';function _0x13b6(_0x46c14e,_0x20e6ec){var _0x553393=_0x5533();return _0x13b6=function(_0x13b644,_0x3a84b1){_0x13b644=_0x13b644-0xf7;var _0x26c192=_0x553393[_0x13b644];return _0x26c192;},_0x13b6(_0x46c14e,_0x20e6ec);}export{UploadcareImageEdit}from'./uploadcareimageedit.js';function _0x5533(){var _0x44eb1e=['10GwtpvO','8285AYrIhF','1602AeVUsV','172276ymaYss','1900809JHnRsE','353892jGCgsq','351562zRUtpl','36kDUIVR','3880XGAAtc','6JSHkzc','8247736gevBFo','322fTTzTw','8lrtLfs','228EWylsf'];_0x5533=function(){return _0x44eb1e;};return _0x5533();}export{UploadcareImageEditUI}from'./uploadcareimageedit/uploadcareimageeditui.js';export{UploadcareImageEditEditing}from'./uploadcareimageedit/uploadcareimageeditediting.js';export{UploadcareImageEditCommand}from'./uploadcareimageedit/uploadcareimageeditcommand.js';export{UploadcareCommand}from'./uploadcarecommand.js';export{UploadcareUploadAdapter}from'./uploadcareuploadadapter.js';import'./augmentation.js';
@@ -1,24 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0xf046d3=_0x4075;(function(_0x2b72e6,_0x3e73bb){const _0x1f5e39=_0x4075,_0x5f5a3c=_0x2b72e6();while(!![]){try{const _0x34dcf4=parseInt(_0x1f5e39(0xf1))/0x1+-parseInt(_0x1f5e39(0xd8))/0x2*(parseInt(_0x1f5e39(0xf6))/0x3)+parseInt(_0x1f5e39(0xea))/0x4+-parseInt(_0x1f5e39(0x10f))/0x5*(parseInt(_0x1f5e39(0xda))/0x6)+parseInt(_0x1f5e39(0x113))/0x7*(parseInt(_0x1f5e39(0xe7))/0x8)+parseInt(_0x1f5e39(0xfe))/0x9+-parseInt(_0x1f5e39(0xfa))/0xa;if(_0x34dcf4===_0x3e73bb)break;else _0x5f5a3c['push'](_0x5f5a3c['shift']());}catch(_0x39e597){_0x5f5a3c['push'](_0x5f5a3c['shift']());}}}(_0x4f39,0x9e611));import{IconUploadcareImageUpload as _0x31071a}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x19afff}from'ckeditor5/src/utils.js';import{Dialog as _0x5113ef,DialogViewPosition as _0x3c59f9}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x19b361}from'./uploadcareformview.js';import{UploadcareSource as _0x5a5e57}from'../uploadcareconfig.js';import{getTranslation as _0x47ee25}from'../utils/common-translations.js';function _0x4f39(){const _0x5a2f89=['detail','removeSelectionAttribute','get','_insertAsset','addEventListener','initFlow','execute','insertImage','_formView','225755jpwvuC','focus','plugins','_dialog','5908GbqbQq','view','Insert','EDITOR_TOP_CENTER','length','getSelectedElement','setAttribute','getOutputCollectionState','_editing','setCurrentActivity','hide','imageInfo','_initListeners','idle','_type','14kbZnAm','image','60zKceby','linkHref','getAPI','width','show','stopListening','_api','getLastPosition','_insertImage','removeAllFiles','done-click','stopDelegating','source-list','1048dABXCr','Replace','text','585072QVNONC','status','editing','doneFlow','ucContextId','allEntries','model','1121703oWxiLL','attributes','isOpen','selection','element','13227CPUDmQ','setSelection','_editor','_initDialog','11173510uNKJir','change','imageBlock','imageInline','7829190ZHGumn','configElement','Local','uploadCare','document','uuid','ctxElement','destroy'];_0x4f39=function(){return _0x5a2f89;};return _0x4f39();}function _0x4075(_0x284c94,_0x558ac0){const _0x4f3966=_0x4f39();return _0x4075=function(_0x4075cc,_0x463543){_0x4075cc=_0x4075cc-0xca;let _0x51243d=_0x4f3966[_0x4075cc];return _0x51243d;},_0x4075(_0x284c94,_0x558ac0);}import{getImageUrls as _0x2d140f,getImageDimension as _0x2c5161}from'../utils/editingutils.js';import{isAncestor as _0x5b9ab0}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x19afff(){[_0xf046d3(0xf8)];[_0xf046d3(0x112)];[_0xf046d3(0xd1)];[_0xf046d3(0xe0)];[_0xf046d3(0xd7)]=null;[_0xf046d3(0x10e)]=null;constructor(_0x236fcd,_0x287e05,_0x5004a9){const _0x527e53=_0xf046d3;super(),this[_0x527e53(0xf8)]=_0x236fcd,this[_0x527e53(0xd1)]=_0x287e05,this[_0x527e53(0x112)]=_0x236fcd[_0x527e53(0x111)][_0x527e53(0x108)](_0x5113ef),this[_0x527e53(0xe0)]=_0x287e05[_0x527e53(0x104)][_0x527e53(0xdc)](),this[_0x527e53(0xd7)]=_0x5004a9,this[_0x527e53(0xd1)][_0x527e53(0xff)][_0x527e53(0xcf)](_0x527e53(0xe6),this[_0x527e53(0xd7)]),this[_0x527e53(0xf9)](),this[_0x527e53(0xd5)](),this[_0x527e53(0xe0)][_0x527e53(0x10b)]();}[_0xf046d3(0x105)](){const _0x1ed547=_0xf046d3;this[_0x1ed547(0x10e)]&&(this[_0x1ed547(0x10e)][_0x1ed547(0x105)](),this[_0x1ed547(0x10e)]=null),this[_0x1ed547(0xe0)]&&this[_0x1ed547(0xe0)][_0x1ed547(0xed)](),this[_0x1ed547(0xdf)](),this[_0x1ed547(0xe5)]();}[_0xf046d3(0xf9)](){const _0x3adeeb=_0xf046d3,{locale:_0x1b6e21,model:_0x5698a0}=this[_0x3adeeb(0xf8)],_0x365776=_0x5698a0[_0x3adeeb(0x102)][_0x3adeeb(0xf4)][_0x3adeeb(0xce)](),_0x5f41f3=_0x365776&&(_0x365776['is'](_0x3adeeb(0xf5),_0x3adeeb(0xfc))||_0x365776['is'](_0x3adeeb(0xf5),_0x3adeeb(0xfd)));this[_0x3adeeb(0x10e)]=new _0x19b361(_0x1b6e21,this[_0x3adeeb(0xd1)][_0x3adeeb(0xee)]),this[_0x3adeeb(0x112)][_0x3adeeb(0xde)]({'id':_0x3adeeb(0x101),'icon':_0x31071a,'title':_0x47ee25(_0x1b6e21,this[_0x3adeeb(0xd7)],_0x5f41f3?_0x3adeeb(0xe8):_0x3adeeb(0xcb))[_0x3adeeb(0xe9)],'content':this[_0x3adeeb(0x10e)],'position':_0x3c59f9[_0x3adeeb(0xcc)],'isModal':!0x0,'onShow':()=>{const _0x5371b4=_0x3adeeb;this[_0x5371b4(0x10e)][_0x5371b4(0x110)]();},'onHide':()=>{const _0x1dfb25=_0x3adeeb;this[_0x1dfb25(0xe0)][_0x1dfb25(0xe3)](),this[_0x1dfb25(0xf8)][_0x1dfb25(0xec)][_0x1dfb25(0xca)][_0x1dfb25(0x110)](),this[_0x1dfb25(0x105)]();},'keystrokeHandlerOptions':{'filter':_0x4d0fee=>!_0x5b9ab0(_0x4d0fee,this[_0x3adeeb(0x10e)][_0x3adeeb(0xf5)])}});}[_0xf046d3(0xd5)](){const _0x1ef4dd=_0xf046d3;this[_0x1ef4dd(0xd1)][_0x1ef4dd(0x104)][_0x1ef4dd(0x10a)](_0x1ef4dd(0xe4),()=>{const _0x28f88e=_0x1ef4dd,{allEntries:_0x421467}=this[_0x28f88e(0xe0)][_0x28f88e(0xd0)]();this[_0x28f88e(0xf8)][_0x28f88e(0xf0)][_0x28f88e(0xfb)](_0x142015=>{const _0x15c058=_0x28f88e,_0x1a8654=_0x421467[_0x15c058(0xcd)];for(const _0x4888f2 of _0x421467){const _0x4f8681=_0x4888f2===_0x421467[_0x1a8654-0x1],{cdnUrl:_0x19282d,fileInfo:_0x44fc3e}=_0x4888f2;if(!_0x19282d||!_0x44fc3e)continue;const {width:_0x128bd0,height:_0x3f85af}=_0x44fc3e[_0x15c058(0xd4)],_0x1e019d=_0x2c5161(_0x19282d,_0x128bd0,_0x3f85af),_0x3f682a=_0x2d140f(_0x19282d,_0x1e019d[_0x15c058(0xdd)]),_0x511942={'id':_0x44fc3e[_0x15c058(0x103)],'type':_0x15c058(0xd9),'attributes':{'imageDimension':_0x1e019d,..._0x3f682a}};this[_0x15c058(0x109)](_0x511942,_0x4f8681,_0x142015);}}),this[_0x28f88e(0x112)][_0x28f88e(0xd3)]();}),this[_0x1ef4dd(0xd1)][_0x1ef4dd(0x104)][_0x1ef4dd(0x10a)](_0x1ef4dd(0xfb),_0xea6266=>{const _0xf3bd70=_0x1ef4dd;_0xf3bd70(0xd6)===_0xea6266[_0xf3bd70(0x106)][_0xf3bd70(0xeb)]&&!_0xea6266[_0xf3bd70(0x106)][_0xf3bd70(0xef)][_0xf3bd70(0xcd)]&&this[_0xf3bd70(0x112)][_0xf3bd70(0xf3)]&&(this[_0xf3bd70(0xd7)]===_0x5a5e57[_0xf3bd70(0x100)]?this[_0xf3bd70(0xe0)][_0xf3bd70(0xd2)](_0x5a5e57[_0xf3bd70(0x100)]):this[_0xf3bd70(0xe0)][_0xf3bd70(0x10b)]());});}[_0xf046d3(0x109)](_0x22258c,_0x115ea8,_0x307336){const _0x1af14f=_0xf046d3,_0x11d568=this[_0x1af14f(0xf8)][_0x1af14f(0xf0)][_0x1af14f(0x102)][_0x1af14f(0xf4)],_0x5210b0=_0x11d568[_0x1af14f(0xce)](),_0x5dea3b=!(!_0x5210b0||!_0x5210b0['is'](_0x1af14f(0xf5),_0x1af14f(0xfd)));_0x307336[_0x1af14f(0x107)](_0x1af14f(0xdb)),this[_0x1af14f(0xe2)](_0x22258c,_0x5dea3b),_0x115ea8||_0x307336[_0x1af14f(0xf7)](_0x11d568[_0x1af14f(0xe1)]());}[_0xf046d3(0xe2)](_0x37e8a7,_0x38201a){const _0x197fe3=_0xf046d3,_0x5d27d6=this[_0x197fe3(0xf8)],{imageDimension:_0x4fa528,imageFallbackUrl:_0x12ba77,imageSources:_0x4acc6a}=_0x37e8a7[_0x197fe3(0xf2)];_0x5d27d6[_0x197fe3(0x10c)](_0x197fe3(0x10d),{'imageType':_0x38201a?_0x197fe3(0xfd):null,'source':{'uploadcareImageId':_0x37e8a7['id'],'src':_0x12ba77,'sources':_0x4acc6a,..._0x4fa528}});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- function _0x5de4(){var _0x567635=['div','2037870gJlDNv','14548600AuyQZv','24vShnFH','ck-reset_all-excluded','element','2690824AIjKnb','1759060ogwiaJ','1132545FOcPcZ','952049Lndpop','uc-light','ck-uploadcare-theme','5688ieQiob','4OEWXGX','setTemplate','getFocusableElement','uc-file-uploader-inline','354PsYZog','focus','uploader-','ck-uploadcare-form'];_0x5de4=function(){return _0x567635;};return _0x5de4();}var _0x58bb72=_0x571b;(function(_0x4c5cf1,_0x178bd1){var _0x109b47=_0x571b,_0x370ac2=_0x4c5cf1();while(!![]){try{var _0x4dda20=-parseInt(_0x109b47(0xa9))/0x1*(-parseInt(_0x109b47(0x99))/0x2)+parseInt(_0x109b47(0xa5))/0x3*(-parseInt(_0x109b47(0xaa))/0x4)+parseInt(_0x109b47(0xa4))/0x5+-parseInt(_0x109b47(0xa0))/0x6*(-parseInt(_0x109b47(0xa6))/0x7)+parseInt(_0x109b47(0xa3))/0x8+parseInt(_0x109b47(0x9e))/0x9+-parseInt(_0x109b47(0x9f))/0xa;if(_0x4dda20===_0x178bd1)break;else _0x370ac2['push'](_0x370ac2['shift']());}catch(_0x47b1a2){_0x370ac2['push'](_0x370ac2['shift']());}}}(_0x5de4,0x9a8c0));function _0x571b(_0x5b9a9e,_0x1a57b0){var _0x5de4ac=_0x5de4();return _0x571b=function(_0x571b33,_0x5c0f9d){_0x571b33=_0x571b33-0x98;var _0x11af0a=_0x5de4ac[_0x571b33];return _0x11af0a;},_0x571b(_0x5b9a9e,_0x1a57b0);}import{DialogFocusManagerView as _0x188106}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x188106{constructor(_0x5501d5,_0x3b7933){var _0x2a62c5=_0x571b;super(_0x5501d5),this[_0x2a62c5(0xab)]({'tag':_0x2a62c5(0x9d),'attributes':{'class':['ck',_0x2a62c5(0xa1),_0x2a62c5(0x9c)],'tabindex':'-1'},'children':[{'tag':_0x2a62c5(0x98),'attributes':{'class':[_0x2a62c5(0xa7),_0x2a62c5(0xa8)],'ctx-name':_0x2a62c5(0x9b)+_0x3b7933}},this[_0x2a62c5(0xac)]()]});}[_0x58bb72(0x9a)](){var _0x35aada=_0x58bb72;this[_0x35aada(0xa2)][_0x35aada(0x9a)]();}}
package/src/uploadcare.js DELETED
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x33d9e3=_0x24f8;(function(_0x43ae38,_0x372523){const _0x53a76e=_0x24f8,_0x2401a4=_0x43ae38();while(!![]){try{const _0x13bafd=-parseInt(_0x53a76e(0x1ef))/0x1*(-parseInt(_0x53a76e(0x1f9))/0x2)+-parseInt(_0x53a76e(0x200))/0x3+-parseInt(_0x53a76e(0x1eb))/0x4*(-parseInt(_0x53a76e(0x1ec))/0x5)+parseInt(_0x53a76e(0x203))/0x6*(-parseInt(_0x53a76e(0x1f5))/0x7)+-parseInt(_0x53a76e(0x1ff))/0x8+-parseInt(_0x53a76e(0x1f2))/0x9+-parseInt(_0x53a76e(0x1fa))/0xa*(-parseInt(_0x53a76e(0x1f0))/0xb);if(_0x13bafd===_0x372523)break;else _0x2401a4['push'](_0x2401a4['shift']());}catch(_0x4731c6){_0x2401a4['push'](_0x2401a4['shift']());}}}(_0x18d4,0xcde0f));import{Plugin as _0x2321e6}from'ckeditor5/src/core.js';import{UploadcareUI as _0x3c0429}from'./uploadcareui.js';function _0x24f8(_0x320c02,_0x134c74){const _0x18d4cf=_0x18d4();return _0x24f8=function(_0x24f873,_0x1c7eff){_0x24f873=_0x24f873-0x1e8;let _0x1021ab=_0x18d4cf[_0x24f873];return _0x1021ab;},_0x24f8(_0x320c02,_0x134c74);}function _0x18d4(){const _0x402c70=['_defineLocale','9840104QjxwSX','4159023ISEvpx','defineLocale','define','6jSrbGu','URL','uploadcare.uploader.sourceList','Local','editor','299628BkUPgk','10Fogmlx','defineComponents','get','6DHFaOy','22EFLkEa','uploadcare.locale','14058144mPfYQW','config','Uploadcare','7273567vhvfoi','isPremiumPlugin','contentLanguage','isOfficialPlugin','2098YZxCBi','29523110aXpsjN','requires','pluginName','locale'];_0x18d4=function(){return _0x402c70;};return _0x18d4();}import{UploadcareEditing as _0x117565}from'./uploadcareediting.js';import{UploadcareSource as _0x40868b}from'./uploadcareconfig.js';import*as _0x4a028d from'@uploadcare/file-uploader';export class Uploadcare extends _0x2321e6{static get[_0x33d9e3(0x1fb)](){return[_0x117565,_0x3c0429];}static get[_0x33d9e3(0x1fc)](){const _0x47b315=_0x33d9e3;return _0x47b315(0x1f4);}static get[_0x33d9e3(0x1f8)](){return!0x0;}static get[_0x33d9e3(0x1f6)](){return!0x0;}constructor(_0x520ee8){const _0x8b64cc=_0x33d9e3;super(_0x520ee8),_0x520ee8[_0x8b64cc(0x1f3)][_0x8b64cc(0x202)](_0x8b64cc(0x1e8),[_0x40868b[_0x8b64cc(0x1e9)],_0x40868b[_0x8b64cc(0x204)]]),_0x4a028d[_0x8b64cc(0x1ed)](_0x4a028d),this[_0x8b64cc(0x1fe)]();}[_0x33d9e3(0x1fe)](){const _0x4c1911=_0x33d9e3,_0x120927=this[_0x4c1911(0x1ea)][_0x4c1911(0x1f3)][_0x4c1911(0x1ee)](_0x4c1911(0x1f1)),_0xc27363=this[_0x4c1911(0x1ea)][_0x4c1911(0x1fd)][_0x4c1911(0x1f7)];_0x120927&&_0x4a028d[_0x4c1911(0x201)](_0xc27363,_0x120927);}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- var _0x2ba333=_0x1e6a;(function(_0x1abd81,_0x537f44){var _0x52d419=_0x1e6a,_0x42b133=_0x1abd81();while(!![]){try{var _0xae398d=-parseInt(_0x52d419(0xdf))/0x1+parseInt(_0x52d419(0xd4))/0x2*(-parseInt(_0x52d419(0xdc))/0x3)+-parseInt(_0x52d419(0xda))/0x4*(-parseInt(_0x52d419(0xca))/0x5)+-parseInt(_0x52d419(0xd3))/0x6*(-parseInt(_0x52d419(0xd8))/0x7)+parseInt(_0x52d419(0xdb))/0x8*(-parseInt(_0x52d419(0xe2))/0x9)+-parseInt(_0x52d419(0xe0))/0xa*(parseInt(_0x52d419(0xdd))/0xb)+parseInt(_0x52d419(0xd2))/0xc*(parseInt(_0x52d419(0xd1))/0xd);if(_0xae398d===_0x537f44)break;else _0x42b133['push'](_0x42b133['shift']());}catch(_0x3a375f){_0x42b133['push'](_0x42b133['shift']());}}}(_0x40be,0xed1bf));import{Command as _0x2748e8}from'ckeditor5/src/core.js';function _0x40be(){var _0x55fc70=['_checkEnabled','_controller','requires','plugins','3341LvSSSd','275532SVAIuJ','72qlQeMk','20tteyOP','isEnabled','refresh','get','80843bRtRqN','commands','1662432AqVfgv','104tZWbpV','128667oLeYaq','11rfolSZ','execute','1917592XUaWrZ','18787910SEvZOz','_editing','1159137EVbyyT','editor','10TWuAiz','destroy','insertImage'];_0x40be=function(){return _0x55fc70;};return _0x40be();}import{Dialog as _0x2dbdbf}from'ckeditor5/src/ui.js';function _0x1e6a(_0x17c942,_0x1b2909){var _0x40beb0=_0x40be();return _0x1e6a=function(_0x1e6a35,_0x22db38){_0x1e6a35=_0x1e6a35-0xc9;var _0x2ccfa2=_0x40beb0[_0x1e6a35];return _0x2ccfa2;},_0x1e6a(_0x17c942,_0x1b2909);}import{UploadcareEditing as _0x4fd98f}from'./uploadcareediting.js';import{UploadcareController as _0x3ef7df}from'./ui/uploadcarecontroller.js';export class UploadcareCommand extends _0x2748e8{[_0x2ba333(0xe1)];[_0x2ba333(0xce)]=null;static get[_0x2ba333(0xcf)](){return[_0x2dbdbf,_0x4fd98f];}constructor(_0x556eb6){var _0x4270bd=_0x2ba333;super(_0x556eb6),this[_0x4270bd(0xe1)]=_0x556eb6[_0x4270bd(0xd0)][_0x4270bd(0xd7)](_0x4fd98f);}[_0x2ba333(0xd6)](){var _0xeea8c6=_0x2ba333;this[_0xeea8c6(0xd5)]=this[_0xeea8c6(0xcd)]();}[_0x2ba333(0xde)](_0x4e265c){var _0x204f21=_0x2ba333;this[_0x204f21(0xce)]&&(this[_0x204f21(0xce)][_0x204f21(0xcb)](),this[_0x204f21(0xce)]=null),this[_0x204f21(0xce)]=new _0x3ef7df(this[_0x204f21(0xc9)],this[_0x204f21(0xe1)],_0x4e265c);}[_0x2ba333(0xcd)](){var _0x22f1ed=_0x2ba333;return this[_0x22f1ed(0xc9)][_0x22f1ed(0xd9)][_0x22f1ed(0xd7)](_0x22f1ed(0xcc))[_0x22f1ed(0xd5)];}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- (function(_0x4bc355,_0x1c81fb){var _0x1ec82f=_0x4e30,_0x58a4a0=_0x4bc355();while(!![]){try{var _0x5f445a=-parseInt(_0x1ec82f(0xb5))/0x1+-parseInt(_0x1ec82f(0xb9))/0x2*(parseInt(_0x1ec82f(0xb0))/0x3)+-parseInt(_0x1ec82f(0xa9))/0x4*(-parseInt(_0x1ec82f(0xbc))/0x5)+parseInt(_0x1ec82f(0xa8))/0x6+parseInt(_0x1ec82f(0xac))/0x7+-parseInt(_0x1ec82f(0xb2))/0x8+-parseInt(_0x1ec82f(0xbe))/0x9;if(_0x5f445a===_0x1c81fb)break;else _0x58a4a0['push'](_0x58a4a0['shift']());}catch(_0x1045e1){_0x58a4a0['push'](_0x58a4a0['shift']());}}}(_0x516f,0xf0538));export var UploadcareSource;function _0x516f(){var _0x4b93f1=['gdrive','3029400PpKLpG','10807212dtvECD','12dfLafL','onedrive','gphotos','13158607LRZDys','Local','facebook','GPhotos','1635099HVEslC','Dropbox','744544VWMqFF','local','URL','997047eXspJW','Facebook','url','GDrive','6DQPOCD','dropbox','OneDrive','608645JHPiWF'];_0x516f=function(){return _0x4b93f1;};return _0x516f();}function _0x4e30(_0x5c5154,_0x3812f4){var _0x516f46=_0x516f();return _0x4e30=function(_0x4e3012,_0x485d8f){_0x4e3012=_0x4e3012-0xa8;var _0xe7e6f4=_0x516f46[_0x4e3012];return _0xe7e6f4;},_0x4e30(_0x5c5154,_0x3812f4);}!function(_0x42a914){var _0x24a081=_0x4e30;_0x42a914[_0x24a081(0xad)]=_0x24a081(0xb3),_0x42a914[_0x24a081(0xb4)]=_0x24a081(0xb7),_0x42a914[_0x24a081(0xb1)]=_0x24a081(0xba),_0x42a914[_0x24a081(0xb8)]=_0x24a081(0xbd),_0x42a914[_0x24a081(0xb6)]=_0x24a081(0xae),_0x42a914[_0x24a081(0xaf)]=_0x24a081(0xab),_0x42a914[_0x24a081(0xbb)]=_0x24a081(0xaa);}(UploadcareSource||(UploadcareSource={}));
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x74c410=_0x5052;(function(_0x2f4d7a,_0x199b00){const _0x1312eb=_0x5052,_0x1d36a2=_0x2f4d7a();while(!![]){try{const _0x312458=-parseInt(_0x1312eb(0x1ed))/0x1*(parseInt(_0x1312eb(0x1ec))/0x2)+parseInt(_0x1312eb(0x1de))/0x3+parseInt(_0x1312eb(0x215))/0x4+-parseInt(_0x1312eb(0x1f4))/0x5+-parseInt(_0x1312eb(0x21b))/0x6*(parseInt(_0x1312eb(0x212))/0x7)+parseInt(_0x1312eb(0x20d))/0x8+-parseInt(_0x1312eb(0x202))/0x9*(-parseInt(_0x1312eb(0x221))/0xa);if(_0x312458===_0x199b00)break;else _0x1d36a2['push'](_0x1d36a2['shift']());}catch(_0x2748ee){_0x1d36a2['push'](_0x1d36a2['shift']());}}}(_0x2188,0x67975));import{Plugin as _0x8a7c83}from'ckeditor5/src/core.js';import{Dialog as _0x198477}from'ckeditor5/src/ui.js';import{createElement as _0x840eea,global as _0x1b4f4b,uid as _0x4eddcf}from'ckeditor5/src/utils.js';function _0x2188(){const _0x41d75f=['\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','body','appendChild','_initCtx','getAttribute','_initConversion','execute','for','ctxElement','206qPGJZw','177MsViLf','model','isOfficialPlugin','uploadcareImageReplace','uploader-','iconHrefResolver','remove','4188400DWKbMB','extend','fromCharCode','contentLanguage','_initSchema','listenTo','cleanupImage','_initImageProcessingIndicator','querySelector','uc-config','editor','once','editing','getSelectedElement','9rkLqzx','PictureEditing','conversion','elementToAttribute','uc-upload-ctx-provider','closeMax','init','attributeToAttribute','UploadcareEditing','upcast','isRegistered','2386016dfODCv','locale','imageInline','map','replaceImageSource','261009BsaNlt','pluginName','_initConfig','1389944gsCXYe','_configElement','config','removeAttribute','true','add','114TOToKL','schema','render','_ctxElement','requires','uploadcare','12248130slKytL','#uc-icon-arrow-down','uploadcare.uploader','imageBlock','data-uc-image-id','document','insertImage','afterInit','join','commands','destroy','view','ucContextId','downcast','uploadcare.pubkey','href','isPremiumPlugin','uploadcareImageId','354366CQZvkV','input[uploadcare-file-input]','get','configElement','selection'];_0x2188=function(){return _0x41d75f;};return _0x2188();}import{UploadcareCommand as _0x36c666}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5c6f13}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x509b29}from'./utils/editingutils.js';function _0x5052(_0x4cb4c3,_0x59b5a9){const _0x218850=_0x2188();return _0x5052=function(_0x505295,_0x16ed7b){_0x505295=_0x505295-0x1d4;let _0x31ff05=_0x218850[_0x505295];return _0x31ff05;},_0x5052(_0x4cb4c3,_0x59b5a9);}export class UploadcareEditing extends _0x8a7c83{[_0x74c410(0x216)]=null;[_0x74c410(0x21e)]=null;static get[_0x74c410(0x213)](){const _0x5adbbe=_0x74c410;return _0x5adbbe(0x20a);}static get[_0x74c410(0x21f)](){const _0x436098=_0x74c410;return[_0x436098(0x203),_0x5c6f13,_0x198477];}static get[_0x74c410(0x1ef)](){return!0x0;}static get[_0x74c410(0x1dc)](){return!0x0;}[_0x74c410(0x1d8)];get[_0x74c410(0x1e1)](){const _0xe15358=_0x74c410;return this[_0xe15358(0x216)];}get[_0x74c410(0x1eb)](){const _0x75c9a6=_0x74c410;return this[_0x75c9a6(0x21e)];}constructor(_0x2f8a81){const _0x53cea1=_0x74c410;super(_0x2f8a81),this[_0x53cea1(0x1d8)]=_0x4eddcf();}[_0x74c410(0x208)](){const _0x37d481=_0x74c410,_0x265e83=this[_0x37d481(0x1fe)];_0x265e83[_0x37d481(0x1d5)][_0x37d481(0x21a)](_0x37d481(0x220),new _0x36c666(_0x265e83));}[_0x74c410(0x228)](){const _0x370550=_0x74c410;this[_0x370550(0x1f8)](),this[_0x370550(0x1e8)](),this[_0x370550(0x214)](),this[_0x370550(0x1e6)](),this[_0x370550(0x1fb)](),this[_0x370550(0x1f9)](this[_0x370550(0x1fe)],_0x370550(0x1d6),()=>{const _0x59c3e0=_0x370550;this[_0x59c3e0(0x216)]&&(this[_0x59c3e0(0x216)][_0x59c3e0(0x1f3)](),this[_0x59c3e0(0x216)]=null),this[_0x59c3e0(0x21e)]&&(this[_0x59c3e0(0x21e)][_0x59c3e0(0x1f3)](),this[_0x59c3e0(0x21e)]=null);const _0x9ff9fe=_0x1b4f4b[_0x59c3e0(0x226)][_0x59c3e0(0x1fc)](_0x59c3e0(0x1df));_0x9ff9fe&&_0x9ff9fe[_0x59c3e0(0x1f3)]();}),async function(_0x1f0d68){const _0x540aff=_0x4609e4([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x478fa8=0x535f8c3a,_0x3c4463=0x5358f21a^_0x478fa8,_0x263d90=window[_0x4609e4([0x44,0x61,0x74,0x65])][_0x4609e4([0x6e,0x6f,0x77])](),_0x5caa5e=_0x1f0d68[_0x4609e4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4653fd=new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e3476=>{_0x5caa5e[_0x4609e4([0x6f,0x6e,0x63,0x65])](_0x4609e4([0x72,0x65,0x61,0x64,0x79]),_0x1e3476);}),_0x10710d={[_0x4609e4([0x6b,0x74,0x79])]:_0x4609e4([0x45,0x43]),[_0x4609e4([0x75,0x73,0x65])]:_0x4609e4([0x73,0x69,0x67]),[_0x4609e4([0x63,0x72,0x76])]:_0x4609e4([0x50,0x2d,0x32,0x35,0x36]),[_0x4609e4([0x78])]:_0x4609e4([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4609e4([0x79])]:_0x4609e4([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4609e4([0x61,0x6c,0x67])]:_0x4609e4([0x45,0x53,0x32,0x35,0x36])},_0x227b39=_0x5caa5e[_0x4609e4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4609e4([0x67,0x65,0x74])](_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8f0904(){let _0x386512,_0x3c2424=null,_0x2a52bf=null;try{if(_0x227b39==_0x4609e4([0x47,0x50,0x4c]))return _0x4609e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x386512=_0x3906a0(),!_0x386512)return _0x4609e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x386512[_0x4609e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a52bf=_0x355039(_0x386512[_0x4609e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x386512[_0x4609e4([0x6a,0x74,0x69])])),await _0x240ec5()?_0x45bf9b()?_0x143e31()?_0x4609e4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54160a()?(_0x386512[_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4609e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c2424=_0x393b21(_0x4609e4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x386512[_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4609e4([0x74,0x72,0x69,0x61,0x6c])&&(_0x3c2424=_0x393b21(_0x4609e4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1db0ac()):_0x4609e4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4609e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4609e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4609e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x143e31(){const _0x3639a9=[_0x4609e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4609e4([0x74,0x72,0x69,0x61,0x6c])][_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386512[_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x263d90/0x3e8:0xe10*_0x3c4463;return _0x386512[_0x4609e4([0x65,0x78,0x70])]<_0x3639a9;}function _0x45bf9b(){const _0x10ae45=_0x386512[_0x4609e4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x10ae45&&(!!_0x10ae45[_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4609e4([0x2a]))||!!_0x10ae45[_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4609e4([0x55,0x50,0x4c,0x43])));}function _0x54160a(){const _0x21a817=_0x5052,_0x4ea13c=_0x386512[_0x4609e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ea13c||0x0==_0x4ea13c[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58badf}=new URL(window[_0x4609e4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x21a817(0x1db)]);if(_0x4ea13c[_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58badf))return!0x0;const _0x170de0=_0x58badf[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])](_0x4609e4([0x2e]));return _0x4ea13c[_0x4609e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x137d3a=>_0x137d3a[_0x4609e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4609e4([0x2a])))[_0x4609e4([0x6d,0x61,0x70])](_0x763328=>_0x763328[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])](_0x4609e4([0x2e])))[_0x4609e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a25ed=>_0x1a25ed[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x170de0[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4609e4([0x6d,0x61,0x70])](_0x5708d9=>Array(_0x170de0[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5708d9[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4609e4([0x66,0x69,0x6c,0x6c])](_0x5708d9[0x0]===_0x4609e4([0x2a])?_0x4609e4([0x2a]):'')[_0x4609e4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5708d9))[_0x4609e4([0x73,0x6f,0x6d,0x65])](_0x597ed2=>_0x170de0[_0x4609e4([0x65,0x76,0x65,0x72,0x79])]((_0x419733,_0x26b13e)=>_0x597ed2[_0x26b13e]===_0x419733||_0x597ed2[_0x26b13e]===_0x4609e4([0x2a])));}function _0x1db0ac(){return _0x3c2424&&_0x2a52bf?new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e01c1,_0x4fbafb)=>{_0x3c2424[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x4e01c1,_0x4fbafb),_0x2a52bf[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x431f67=>{_0x431f67!=_0x4609e4([0x56,0x61,0x6c,0x69,0x64])&&_0x4e01c1(_0x431f67);},_0x4fbafb);}):_0x3c2424||_0x2a52bf||_0x4609e4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x355039(_0x505c85,_0x3fabd0){return new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18184f=>{if(_0x1b3381())return _0x18184f(_0x4609e4([0x56,0x61,0x6c,0x69,0x64]));_0xec57bd(),_0x5caa5e[_0x4609e4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4609e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26d3bc=!0x1;const _0x434409=_0x4eddcf();function _0x4fff5f(_0x2974f9){return!!_0x2974f9&&(typeof _0x2974f9===_0x4609e4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2974f9===_0x4609e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2974f9[_0x4609e4([0x74,0x68,0x65,0x6e])]===_0x4609e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2974f9[_0x4609e4([0x63,0x61,0x74,0x63,0x68])]===_0x4609e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a2777(_0x318967){_0x22e93f(_0x318967)[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x2f5185=>{if(!_0x2f5185||_0x2f5185[_0x4609e4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4609e4([0x6f,0x6b]))return _0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b9a90(_0x34b939(_0x434409+_0x3fabd0))!=_0x2f5185[_0x4609e4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4609e4([0x56,0x61,0x6c,0x69,0x64]);})[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x4d41a9=>(_0x33faf5(),_0x4d41a9),()=>{const _0x199eb4=_0x156fe9();return null==_0x199eb4?(_0x33faf5(),_0x4609e4([0x56,0x61,0x6c,0x69,0x64])):_0x4609e4(_0x263d90-_0x199eb4>(0x7753083a^_0x478fa8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x18184f)[_0x4609e4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18184f(_0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x22ccd5=0x536962ba^_0x478fa8;function _0x33faf5(){const _0x2ea674=_0x4609e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b9a90(_0x34b939(_0x505c85)),_0x2392b0=_0x245c3f(_0x1b9a90(window[_0x4609e4([0x4d,0x61,0x74,0x68])][_0x4609e4([0x63,0x65,0x69,0x6c])](_0x263d90/_0x22ccd5)));window[_0x4609e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4609e4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ea674,_0x2392b0);}function _0x156fe9(){const _0x470e04=_0x4609e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b9a90(_0x34b939(_0x505c85)),_0x52bf15=window[_0x4609e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4609e4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x470e04);return _0x52bf15?window[_0x4609e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x245c3f(_0x52bf15),0x10)*_0x22ccd5:null;}function _0x22e93f(_0x3445f5){return new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32972f,_0x53f7d8)=>{_0x3445f5[_0x4609e4([0x74,0x68,0x65,0x6e])](_0x32972f,_0x53f7d8),window[_0x4609e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53f7d8,0x535e58fa^_0x478fa8);});}}_0x5caa5e[_0x4609e4([0x6f,0x6e])](_0x4609e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e6853,_0x36792d)=>{if(_0x36792d[0x0]!=_0x505c85)return _0x18184f(_0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36792d[0x1]={..._0x36792d[0x1],[_0x4609e4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x434409};},{[_0x4609e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4609e4([0x68,0x69,0x67,0x68])}),_0x5caa5e[_0x4609e4([0x6f,0x6e])](_0x4609e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4202d6=>{_0x4fff5f(_0x4202d6[_0x4609e4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26d3bc=!0x0,_0x4a2777(_0x4202d6[_0x4609e4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4609e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4609e4([0x6c,0x6f,0x77])}),_0x4653fd[_0x4609e4([0x74,0x68,0x65,0x6e])](()=>{_0x26d3bc||_0x18184f(_0x4609e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b3381(){return _0x5caa5e[_0x4609e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4609e4([0x76,0x69,0x65,0x77])][_0x4609e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4609e4([0x61,0x75,0x74,0x6f]);}function _0xec57bd(){_0x5caa5e[_0x4609e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4609e4([0x76,0x69,0x65,0x77])][_0x4609e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4609e4([0x61,0x75,0x74,0x6f]);}}function _0x393b21(_0x39506f){const _0x17de54=[new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e4838=>setTimeout(_0x1e4838,0x5356b2f6^_0x478fa8)),_0x4653fd[_0x4609e4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5866f7=>{let _0x51c7e5=0x0;_0x5caa5e[_0x4609e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4609e4([0x6f,0x6e])](_0x4609e4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4aa38e,_0x86bd5a)=>{_0x86bd5a[0x0][_0x4609e4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51c7e5++,_0x51c7e5==(0x535f89d2^_0x478fa8)&&(_0x5866f7(),_0x4aa38e[_0x4609e4([0x6f,0x66,0x66])]());});}))];return window[_0x4609e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4609e4([0x72,0x61,0x63,0x65])](_0x17de54)[_0x4609e4([0x74,0x68,0x65,0x6e])](()=>_0x39506f);}async function _0x2fe959(){await _0x4653fd,_0x5caa5e[_0x4609e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4609e4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5689a2,_0x5caa5e[_0x4609e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x4609e4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5689a2,_0x5caa5e[_0x4609e4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4609e4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19d9d2(_0x163c8f){const _0x1a3eb4=_0x217fbe();_0x5caa5e[_0x1a3eb4]=_0x4609e4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x163c8f,_0x163c8f!=_0x4609e4([0x56,0x61,0x6c,0x69,0x64])&&_0x2fe959();}function _0x217fbe(){const _0x5f0799=window[_0x4609e4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4609e4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4609e4([0x6e,0x6f,0x77])]())[_0x4609e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4609e4([0x2e]),'');let _0x234de8=_0x4609e4([0x68]);for(let _0x5d3190=0x0;_0x5d3190<_0x5f0799[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d3190+=0x2){let _0x14acb1=window[_0x4609e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f0799[_0x4609e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d3190,_0x5d3190+0x2));_0x14acb1>=_0x540aff[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14acb1-=_0x540aff[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x234de8+=_0x540aff[_0x14acb1];}return _0x234de8;}function _0x3906a0(){const _0x114e88=_0x227b39[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])](_0x4609e4([0x2e]));if(0x3!=_0x114e88[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2cee32(_0x114e88[0x1]);function _0x2cee32(_0x24feaa){const _0x4ab6fe=_0x4fa41a(_0x24feaa);return _0x4ab6fe&&_0x116fa6()?_0x4ab6fe:null;function _0x116fa6(){const _0x5cb300=_0x4ab6fe[_0x4609e4([0x6a,0x74,0x69])],_0x1e2f3d=window[_0x4609e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cb300[_0x4609e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cb300[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c72ae={..._0x4ab6fe,[_0x4609e4([0x6a,0x74,0x69])]:_0x5cb300[_0x4609e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cb300[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c72ae[_0x4609e4([0x76,0x63])],_0x34b939(_0x5c72ae)==_0x1e2f3d;}}}async function _0x240ec5(){let _0x2d0c09=!0x0;try{const _0x3883ea=_0x227b39[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])](_0x4609e4([0x2e])),[_0x3501c5,_0x4070d8,_0x26a460]=_0x3883ea;return _0x283123(_0x3501c5),await _0x26cff4(_0x3501c5,_0x4070d8,_0x26a460),_0x2d0c09;}catch{return!0x1;}function _0x283123(_0x416e51){const _0x5ac813=_0x4fa41a(_0x416e51);_0x5ac813&&_0x5ac813[_0x4609e4([0x61,0x6c,0x67])]==_0x4609e4([0x45,0x53,0x32,0x35,0x36])||(_0x2d0c09=!0x1);}async function _0x26cff4(_0x166069,_0x1f20af,_0x22b586){const _0x2f83dc=window[_0x4609e4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4609e4([0x66,0x72,0x6f,0x6d])](_0x5a458a(_0x22b586),_0x14d54f=>_0x14d54f[_0x4609e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x267d8f=new window[(_0x4609e4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4609e4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x166069+_0x4609e4([0x2e])+_0x1f20af),_0x1fd0f5=window[_0x4609e4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4609e4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1fd0f5)return;const _0x8e67f7=await _0x1fd0f5[_0x4609e4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4609e4([0x6a,0x77,0x6b]),_0x10710d,{[_0x4609e4([0x6e,0x61,0x6d,0x65])]:_0x4609e4([0x45,0x43,0x44,0x53,0x41]),[_0x4609e4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4609e4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4609e4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1fd0f5[_0x4609e4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4609e4([0x6e,0x61,0x6d,0x65])]:_0x4609e4([0x45,0x43,0x44,0x53,0x41]),[_0x4609e4([0x68,0x61,0x73,0x68])]:{[_0x4609e4([0x6e,0x61,0x6d,0x65])]:_0x4609e4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8e67f7,_0x2f83dc,_0x267d8f)||(_0x2d0c09=!0x1);}}function _0x4fa41a(_0x2adaf0){return _0x2adaf0[_0x4609e4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4609e4([0x65,0x79]))?JSON[_0x4609e4([0x70,0x61,0x72,0x73,0x65])](_0x5a458a(_0x2adaf0)):null;}function _0x5a458a(_0x4d7cf7){return window[_0x4609e4([0x61,0x74,0x6f,0x62])](_0x4d7cf7[_0x4609e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4609e4([0x2b]))[_0x4609e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4609e4([0x2f])));}function _0x34b939(_0x259b7e){let _0x7672b0=0x1505;function _0x1e7227(_0x42972e){for(let _0x107a62=0x0;_0x107a62<_0x42972e[_0x4609e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x107a62++){const _0x287ced=_0x42972e[_0x4609e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x107a62);_0x7672b0=(_0x7672b0<<0x5)+_0x7672b0+_0x287ced,_0x7672b0&=_0x7672b0;}}function _0xe79984(_0x410d8d){Array[_0x4609e4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x410d8d)?_0x410d8d[_0x4609e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe79984):_0x410d8d&&typeof _0x410d8d==_0x4609e4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4609e4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x410d8d)[_0x4609e4([0x73,0x6f,0x72,0x74])]()[_0x4609e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x510566,_0x110a99])=>{_0x1e7227(_0x510566),_0xe79984(_0x110a99);}):_0x1e7227(window[_0x4609e4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x410d8d));}return _0xe79984(_0x259b7e),_0x7672b0>>>0x0;}function _0x1b9a90(_0x16b019){return _0x16b019[_0x4609e4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4609e4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4609e4([0x30]));}function _0x245c3f(_0x33eb50){return _0x33eb50[_0x4609e4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4609e4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4609e4([0x6a,0x6f,0x69,0x6e])]('');}function _0x5689a2(){}function _0x4609e4(_0x55a1c6){const _0x3ef467=_0x5052;return _0x55a1c6[_0x3ef467(0x210)](_0x371ae2=>String[_0x3ef467(0x1f6)](_0x371ae2))[_0x3ef467(0x1d4)]('');}_0x19d9d2(await _0x8f0904());}(this);}[_0x74c410(0x1f8)](){const _0x4f1e74=_0x74c410,_0xbff8af=this[_0x4f1e74(0x1fe)][_0x4f1e74(0x1ee)][_0x4f1e74(0x21c)];_0xbff8af[_0x4f1e74(0x20c)](_0x4f1e74(0x224))&&_0xbff8af[_0x4f1e74(0x1f5)](_0x4f1e74(0x224),{'allowAttributes':[_0x4f1e74(0x1dd)]}),_0xbff8af[_0x4f1e74(0x20c)](_0x4f1e74(0x20f))&&_0xbff8af[_0x4f1e74(0x1f5)](_0x4f1e74(0x20f),{'allowAttributes':[_0x4f1e74(0x1dd)]});}[_0x74c410(0x1e8)](){const _0x4b1d22=_0x74c410,_0x1d0d87=this[_0x4b1d22(0x1fe)];_0x1d0d87[_0x4b1d22(0x204)][_0x4b1d22(0x1ea)](_0x4b1d22(0x1d9))[_0x4b1d22(0x209)]({'model':_0x4b1d22(0x1dd),'view':_0x4b1d22(0x225)}),_0x1d0d87[_0x4b1d22(0x204)][_0x4b1d22(0x1ea)](_0x4b1d22(0x20b))[_0x4b1d22(0x205)]({'model':{'key':_0x4b1d22(0x1dd),'value':_0x382e5f=>_0x382e5f[_0x4b1d22(0x1e7)](_0x4b1d22(0x225))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x445e92=_0x1d0d87[_0x4b1d22(0x1d5)][_0x4b1d22(0x1e0)](_0x4b1d22(0x211));_0x445e92&&this[_0x4b1d22(0x1f9)](_0x445e92,_0x4b1d22(0x1fa),(_0x1d2635,[_0x4e178e,_0x2b73e0])=>{const _0x336f59=_0x4b1d22;_0x4e178e[_0x336f59(0x218)](_0x336f59(0x1dd),_0x2b73e0);});}[_0x74c410(0x214)](){const _0x29437d=_0x74c410,_0x341fcd=this[_0x29437d(0x1fe)][_0x29437d(0x217)][_0x29437d(0x1e0)](_0x29437d(0x223))||{},_0x5818fd=this[_0x29437d(0x1fe)][_0x29437d(0x217)][_0x29437d(0x1e0)](_0x29437d(0x1da))||'';this[_0x29437d(0x216)]=_0x840eea(_0x1b4f4b[_0x29437d(0x226)],_0x29437d(0x1fd),{..._0x341fcd,'pubkey':_0x5818fd,'ctx-name':_0x29437d(0x1f1)+this[_0x29437d(0x1d8)],'sourceList':'','imgOnly':_0x29437d(0x219),'removeCopyright':_0x29437d(0x219),'localeName':this[_0x29437d(0x1fe)][_0x29437d(0x20e)][_0x29437d(0x1f7)],'externalSourcesEmbedCss':_0x29437d(0x1e3)}),this[_0x29437d(0x216)][_0x29437d(0x1f2)]=_0x298bd1=>{const _0xacafd0=_0x29437d;if(_0xacafd0(0x207)==_0x298bd1)return _0xacafd0(0x222);},_0x1b4f4b[_0x29437d(0x226)][_0x29437d(0x1e4)][_0x29437d(0x1e5)](this[_0x29437d(0x216)]);}[_0x74c410(0x1e6)](){const _0x591409=_0x74c410;this[_0x591409(0x21e)]=_0x840eea(_0x1b4f4b[_0x591409(0x226)],_0x591409(0x206),{'ctx-name':_0x591409(0x1f1)+this[_0x591409(0x1d8)]}),_0x1b4f4b[_0x591409(0x226)][_0x591409(0x1e4)][_0x591409(0x1e5)](this[_0x591409(0x21e)]);}[_0x74c410(0x1fb)](){const _0x7dee32=_0x74c410,_0x514cff=this[_0x7dee32(0x1fe)][_0x7dee32(0x1d5)][_0x7dee32(0x1e0)](_0x7dee32(0x227));_0x514cff&&this[_0x7dee32(0x1f9)](_0x514cff,_0x7dee32(0x1e9),()=>{const _0x109f72=_0x7dee32,_0x16c12e=this[_0x109f72(0x1fe)][_0x109f72(0x1ee)][_0x109f72(0x226)][_0x109f72(0x1e2)][_0x109f72(0x201)]();_0x16c12e&&_0x16c12e[_0x109f72(0x1e7)](_0x109f72(0x1dd))&&this[_0x109f72(0x1fe)][_0x109f72(0x200)][_0x109f72(0x1d7)][_0x109f72(0x1ff)](_0x109f72(0x21d),()=>{const _0x1869f9=_0x109f72;_0x509b29(this[_0x1869f9(0x1fe)],_0x16c12e);});});const _0x524a77=this[_0x7dee32(0x1fe)][_0x7dee32(0x1d5)][_0x7dee32(0x1e0)](_0x7dee32(0x1f0));_0x524a77&&this[_0x7dee32(0x1f9)](_0x524a77,_0x7dee32(0x1e9),()=>{const _0x50b358=_0x7dee32,_0x4cd3cb=this[_0x50b358(0x1fe)][_0x50b358(0x1ee)][_0x50b358(0x226)][_0x50b358(0x1e2)][_0x50b358(0x201)]();_0x4cd3cb&&_0x4cd3cb[_0x50b358(0x1e7)](_0x50b358(0x1dd))&&this[_0x50b358(0x1fe)][_0x50b358(0x200)][_0x50b358(0x1d7)][_0x50b358(0x1ff)](_0x50b358(0x21d),()=>{const _0x47c6af=_0x50b358;_0x509b29(this[_0x47c6af(0x1fe)],_0x4cd3cb);});});}}
@@ -1,24 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{global as _0x1db50c,ObservableMixin as _0x45f95f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3453e4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x42fb45}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2fade0}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x2bacf2}from'../../utils/uploadutils.js';import{getImageUrls as _0x835e86,getImageDimension as _0x3905f9}from'../../utils/editingutils.js';import{isAncestor as _0x5726c4}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x45f95f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14944b,_0x36f6da,_0x1141fd){super(),this['_editor']=_0x14944b,this['_dialog']=_0x36f6da,this['_imageElement']=_0x1141fd,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x135da8=this['_imageElement'],_0xbe52b5=_0x135da8['getAttribute']('uploadcareImageId'),_0x17856b=_0x135da8['getAttribute']('src');if(_0xbe52b5)await this['_loadImageInfo'](_0xbe52b5,_0x17856b);else{if(this['_imageCache']['has'](_0x17856b)){const _0x13062d=this['_imageCache']['get'](_0x17856b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13062d['url'],this['imageDimension']=_0x13062d['dimension'],this['imageId']=_0x13062d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x478d91}=this['_editor'],t=_0x478d91['t'],_0x2feca5=new _0x2fade0(_0x478d91,this['imageStatus'],this['_attributes']);_0x2feca5['bind']('status')['to'](this,'imageStatus'),_0x2feca5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2feca5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2feca5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2feca5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x42fb45,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2feca5,'position':_0x3453e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2feca5['focus']();},'onHide':()=>{_0x2feca5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x187f28=>!_0x5726c4(_0x187f28,_0x2feca5['element'])}});}['_loadImageInfo'](_0x2ad621,_0x3c2ca1){return _0x2bacf2['getInfo'](_0x2ad621,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x175d0b=>{const {width:_0x1c61c3,height:_0x12eda1}=_0x175d0b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c2ca1,this['imageDimension']={'width':_0x1c61c3,'height':_0x12eda1},this['imageId']=_0x2ad621;})['catch'](_0x1bf04f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bf04f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1f6d5b,_0x37ab11){return this['_getImageAsFile'](_0x1f6d5b)['then'](_0x326454=>_0x2bacf2['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x37ab11['signal'],'file':_0x326454,'onProgress':_0x14a087=>{_0x14a087&&_0x14a087['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x14a087['value']));}}))['then'](_0x205123=>{const {width:_0x557a8c,height:_0x3c1a4d}=_0x205123['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x205123['cdnUrl'],this['imageDimension']={'width':_0x557a8c,'height':_0x3c1a4d},this['imageId']=_0x205123['uuid'],this['imageUploadProgress']=null;const _0x231b0c=_0x1f6d5b['getAttribute']('src');this['_imageCache']['set'](_0x231b0c,{'id':_0x205123['uuid'],'url':_0x205123['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x79516f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x79516f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x58878c,_0x19437a){_0x58878c['on']('apply',(_0x516bd3,_0x1d027c)=>{this['_replaceImage'](_0x19437a,_0x1d027c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x58878c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x58878c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x560a5d,_0x4b4764,_0x258c70){const _0xd58617=this['_editor'],{width:_0x4092b5,height:_0x496e4b}=_0x3905f9(_0x4b4764,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x54e24e,imageSources:_0x8a9bf}=_0x835e86(_0x4b4764,_0x4092b5);_0xd58617['model']['change'](_0x9a5e06=>{if('$graveyard'===_0x560a5d['root']['rootName']){_0xd58617['execute']('insertImage',{'imageType':_0x560a5d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x560a5d['getAttributes']()),'uploadcareImageId':_0x258c70,'src':_0x54e24e,'sources':_0x8a9bf,'width':_0x4092b5,'height':_0x496e4b}});const _0x113f55=_0x560a5d['getChildren']();_0x560a5d=_0xd58617['model']['document']['selection']['getSelectedElement']();for(const _0x4c0865 of _0x113f55)_0x9a5e06['append'](_0x9a5e06['cloneElement'](_0x4c0865),_0x560a5d);}else _0x9a5e06['setSelection'](_0x560a5d,'on'),_0xd58617['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x560a5d['getAttributes']()),'uploadcareImageId':_0x258c70,'src':_0x54e24e,'sources':_0x8a9bf,'width':_0x4092b5,'height':_0x496e4b},_0x560a5d);_0x9a5e06['setSelection'](_0x560a5d,'on');});}async['_getImageAsFile'](_0x19e96c){const _0x1d4d72=_0x1db50c['window'],_0x21cdbc=_0x1db50c['document']['location']['href'],_0x1a8b08=new _0x1d4d72['URL'](_0x19e96c['getAttribute']('src'),_0x21cdbc);if('data:'===_0x1a8b08['protocol']){const _0x284023=_0x1a8b08['href']['split'](','),_0x545dab=_0x284023[0x0]['match'](/:(.*?);/)[0x1],_0x37031f=_0x545dab['split']('/')[0x1],_0x22d484=_0x1d4d72['atob'](_0x284023[_0x284023['length']-0x1]);let _0x781da0=_0x22d484['length'];const _0x3bf4ba=new _0x1d4d72['Uint8Array'](_0x781da0);for(;_0x781da0--;)_0x3bf4ba[_0x781da0]=_0x22d484['charCodeAt'](_0x781da0);return new _0x1d4d72['File']([_0x3bf4ba],'image.'+_0x37031f,{'type':_0x545dab});}const _0x3b7585=_0x1a8b08['href']['split']('/'),_0x58e0ec=_0x3b7585[_0x3b7585['length']-0x1],_0x5d2c4b=_0x58e0ec['split']('.')[0x1];return _0x1d4d72['fetch'](_0x1a8b08['href'])['then'](_0x597228=>_0x597228['clone']()['blob']())['then'](_0xd56608=>new _0x1d4d72['File']([_0xd56608],_0x58e0ec,{'type':'image/'+_0x5d2c4b}));}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- (function(_0x14f874,_0x1f99a2){const _0x9e0f40=_0xa2e2,_0x35d46f=_0x14f874();while(!![]){try{const _0x5becbe=parseInt(_0x9e0f40(0xde))/0x1+parseInt(_0x9e0f40(0xdc))/0x2+parseInt(_0x9e0f40(0xd8))/0x3*(parseInt(_0x9e0f40(0xd5))/0x4)+parseInt(_0x9e0f40(0xd7))/0x5*(parseInt(_0x9e0f40(0xd2))/0x6)+-parseInt(_0x9e0f40(0xd3))/0x7*(-parseInt(_0x9e0f40(0xd1))/0x8)+parseInt(_0x9e0f40(0xdb))/0x9*(-parseInt(_0x9e0f40(0xe0))/0xa)+-parseInt(_0x9e0f40(0xdf))/0xb;if(_0x5becbe===_0x1f99a2)break;else _0x35d46f['push'](_0x35d46f['shift']());}catch(_0x5ca980){_0x35d46f['push'](_0x35d46f['shift']());}}}(_0x307d,0x1c38a));import{View as _0x5a7c8a}from'ckeditor5/src/ui.js';function _0xa2e2(_0x4855e5,_0x34ad67){const _0x307df7=_0x307d();return _0xa2e2=function(_0xa2e28d,_0x4065c7){_0xa2e28d=_0xa2e28d-0xcf;let _0x55175c=_0x307df7[_0xa2e28d];return _0x55175c;},_0xa2e2(_0x4855e5,_0x34ad67);}export class UploadcareImageEditFormEditingView extends _0x5a7c8a{constructor(_0x496b4e,_0x1ff9c7){const _0x3f9d30=_0xa2e2;super(_0x496b4e);const _0x54972c=this[_0x3f9d30(0xdd)];this[_0x3f9d30(0xd4)](_0x3f9d30(0xcf),''),this[_0x3f9d30(0xd6)]({'tag':_0x3f9d30(0xd0),'attributes':{..._0x1ff9c7,'class':[_0x3f9d30(0xe1),_0x3f9d30(0xd9)],'ctx-name':_0x3f9d30(0xda),'cdn-url':_0x54972c['to'](_0x3f9d30(0xcf))}});}}function _0x307d(){const _0x587421=['24LCvtIF','13074PDCaMb','52024TKdhCn','set','627076BiXXcC','setTemplate','110zQaOEj','3wFFmht','ck-uploadcare-theme','image-edit','45xRVIpW','449310aRIIRz','bindTemplate','16168tINybp','1849947oEdhBV','368110gMYvDq','uc-light','imageSrc','uc-cloud-image-editor'];_0x307d=function(){return _0x587421;};return _0x307d();}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{IconError as _0x48de4b}from'ckeditor5/src/icons.js';import{ButtonView as _0x44f3d6,IconView as _0x11d681,View as _0x5cd180}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5cd180{constructor(_0x3097d5){super(_0x3097d5);const t=_0x3097d5['t'];this['set']('errorType',null);const _0x322a40=new _0x44f3d6(_0x3097d5);_0x322a40['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x322a40['withText']=!0x0,_0x322a40['class']='ck-button-action',_0x322a40['on']('execute',()=>{this['fire']('retry');}),_0x322a40['bind']('isVisible')['to'](this,'errorType',_0x109b79=>'NotFound'!==_0x109b79);const _0x1b2824=new _0x11d681();_0x1b2824['content']=_0x48de4b,_0x1b2824['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5c5f5a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x1b2824,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5c5f5a['to']('errorType',_0x32726e=>t('NotFound'!==_0x32726e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x322a40]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{SpinnerView as _0x4ee0b5,View as _0x1a822a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1a822a{constructor(_0x478330){super(_0x478330);const t=_0x478330['t'],_0x17fc73=this['bindTemplate'],_0xd1ad7=new _0x4ee0b5();_0xd1ad7['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0xd1ad7,{'text':_0x17fc73['to']('imageUploadProgress',_0x1b6587=>t('Loading\x20image...')+'\x20('+(_0x1b6587||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x1533e9=_0x3ab5;(function(_0x35c114,_0x158d79){const _0xac25a2=_0x3ab5,_0x3b7462=_0x35c114();while(!![]){try{const _0x2f3591=-parseInt(_0xac25a2(0x17c))/0x1+parseInt(_0xac25a2(0x16c))/0x2*(-parseInt(_0xac25a2(0x188))/0x3)+-parseInt(_0xac25a2(0x179))/0x4*(-parseInt(_0xac25a2(0x171))/0x5)+parseInt(_0xac25a2(0x196))/0x6*(-parseInt(_0xac25a2(0x168))/0x7)+parseInt(_0xac25a2(0x198))/0x8+parseInt(_0xac25a2(0x16f))/0x9*(parseInt(_0xac25a2(0x190))/0xa)+parseInt(_0xac25a2(0x16b))/0xb;if(_0x2f3591===_0x158d79)break;else _0x3b7462['push'](_0x3b7462['shift']());}catch(_0x4921e9){_0x3b7462['push'](_0x3b7462['shift']());}}}(_0x4222,0xc8911));import{View as _0x3faf54}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x4a1b9a}from'./uploadcareimageeditformloadingview.js';function _0x3ab5(_0x7baba2,_0x5f2b5d){const _0x4222e=_0x4222();return _0x3ab5=function(_0x3ab52d,_0x211e71){_0x3ab52d=_0x3ab52d-0x164;let _0x2293b6=_0x4222e[_0x3ab52d];return _0x2293b6;},_0x3ab5(_0x7baba2,_0x5f2b5d);}import{UploadcareImageEditFormErrorView as _0xa88d4d}from'./uploadcareimageeditformerrorview.js';function _0x4222(){const _0x3b0cab=['once','nodeName','set','getFocusableElement','_items','error','3476718nQSoRp','createCollection','render','6894173qRECsU','5722HjpAqD','addEventListener','ck-uploadcare-form','521568CMCZBo','_editingView','195395SpZooW','add','element','clear','querySelector','retry','addMany','addedNodes','140kDgJys','filter','_addUploadcareImageEditorListeners','1443103ianeEE','uploading','target','div','_addErrorViewListeners','_errorView','uc-cloud-image-editor','setTemplate','length','change:status','_loadingView','fire','477glZAMm','disconnect','cdnUrl','_waitForImageEditorComponent','detail','toLowerCase','observe','apply','20xnGrYK','ck-reset_all-excluded','_focusableView','_setView','focus','ready','6OloJME','status','8846280FRyjNs','cancel'];_0x4222=function(){return _0x3b0cab;};return _0x4222();}import{UploadcareImageEditFormEditingView as _0x57b38c}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3dd2d6}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x3dd2d6{[_0x1533e9(0x166)];[_0x1533e9(0x186)];[_0x1533e9(0x181)];[_0x1533e9(0x170)];[_0x1533e9(0x192)];constructor(_0x458539,_0x1956b6,_0x33f916){const _0x3c4256=_0x1533e9;super(_0x458539),this[_0x3c4256(0x166)]=this[_0x3c4256(0x169)](),this[_0x3c4256(0x186)]=new _0x4a1b9a(_0x458539),this[_0x3c4256(0x181)]=new _0xa88d4d(_0x458539),this[_0x3c4256(0x170)]=new _0x57b38c(_0x458539,_0x33f916),this[_0x3c4256(0x192)]=new _0x3faf54(_0x458539),this[_0x3c4256(0x192)][_0x3c4256(0x183)](this[_0x3c4256(0x165)]()),this[_0x3c4256(0x164)](_0x3c4256(0x197),_0x1956b6),this[_0x3c4256(0x183)]({'tag':_0x3c4256(0x17f),'attributes':{'class':['ck',_0x3c4256(0x191),_0x3c4256(0x16e)],'tabindex':'-1'},'children':this[_0x3c4256(0x166)]}),this[_0x3c4256(0x193)](),this[_0x3c4256(0x19a)](_0x3c4256(0x16a),()=>{const _0x595a47=_0x3c4256;this[_0x595a47(0x18b)](this[_0x595a47(0x173)],_0x196771=>{const _0x3c7885=_0x595a47;this[_0x3c7885(0x17b)](_0x196771);});}),this['on'](_0x3c4256(0x185),()=>{const _0x4ab2bf=_0x3c4256;this[_0x4ab2bf(0x193)]();}),this[_0x3c4256(0x180)]();}[_0x1533e9(0x194)](){const _0xaca009=_0x1533e9;this[_0xaca009(0x173)][_0xaca009(0x194)]();}[_0x1533e9(0x193)](){const _0x49113a=_0x1533e9;switch(this[_0x49113a(0x166)][_0x49113a(0x174)](),this[_0x49113a(0x197)]){case _0x49113a(0x17d):this[_0x49113a(0x166)][_0x49113a(0x172)](this[_0x49113a(0x186)]);break;case _0x49113a(0x167):this[_0x49113a(0x166)][_0x49113a(0x172)](this[_0x49113a(0x181)]);break;case _0x49113a(0x195):this[_0x49113a(0x166)][_0x49113a(0x177)]([this[_0x49113a(0x170)],this[_0x49113a(0x192)]]);}}[_0x1533e9(0x18b)](_0x47a43b,_0x54dd86){const _0x349e8b=_0x1533e9,_0x172b42=_0x349e8b(0x182),_0x481be4=_0x47a43b[_0x349e8b(0x175)](_0x172b42);if(_0x481be4)return _0x54dd86(_0x481be4);const _0x5a2485=new MutationObserver(_0x2e4700=>{const _0x34b1b4=_0x349e8b,_0x10ae20=_0x2e4700[_0x34b1b4(0x17a)](_0x4da2d6=>_0x4da2d6[_0x34b1b4(0x17e)]===_0x47a43b&&_0x4da2d6[_0x34b1b4(0x178)][_0x34b1b4(0x184)]>0x0&&_0x4da2d6[_0x34b1b4(0x178)][0x0][_0x34b1b4(0x19b)][_0x34b1b4(0x18d)]()===_0x172b42);_0x10ae20[_0x34b1b4(0x184)]&&(_0x5a2485[_0x34b1b4(0x189)](),_0x54dd86(_0x10ae20[0x0][_0x34b1b4(0x178)][0x0]));});_0x5a2485[_0x349e8b(0x18e)](_0x47a43b,{'childList':!0x0,'subtree':!0x0});}[_0x1533e9(0x17b)](_0x2229fc){const _0x4c9633=_0x1533e9;_0x2229fc[_0x4c9633(0x16d)](_0x4c9633(0x18f),_0x1cbe07=>{const _0x5d9fc9=_0x4c9633;this[_0x5d9fc9(0x187)](_0x5d9fc9(0x18f),{'imageSrc':_0x1cbe07[_0x5d9fc9(0x18c)][_0x5d9fc9(0x18a)]});}),_0x2229fc[_0x4c9633(0x16d)](_0x4c9633(0x199),()=>{const _0x3130b2=_0x4c9633;this[_0x3130b2(0x187)](_0x3130b2(0x199));});}[_0x1533e9(0x180)](){const _0xd14de5=_0x1533e9;this[_0xd14de5(0x181)]['on'](_0xd14de5(0x176),()=>{const _0x2351aa=_0xd14de5;this[_0x2351aa(0x187)](_0x2351aa(0x176));});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x19424f=_0x2a3d;(function(_0x477c6f,_0x5ac9a3){const _0x15c9ed=_0x2a3d,_0x130fd7=_0x477c6f();while(!![]){try{const _0x48d334=parseInt(_0x15c9ed(0x18a))/0x1+parseInt(_0x15c9ed(0x182))/0x2*(-parseInt(_0x15c9ed(0x179))/0x3)+parseInt(_0x15c9ed(0x181))/0x4+parseInt(_0x15c9ed(0x173))/0x5*(-parseInt(_0x15c9ed(0x17e))/0x6)+-parseInt(_0x15c9ed(0x17a))/0x7+parseInt(_0x15c9ed(0x17b))/0x8+-parseInt(_0x15c9ed(0x18d))/0x9*(parseInt(_0x15c9ed(0x171))/0xa);if(_0x48d334===_0x5ac9a3)break;else _0x130fd7['push'](_0x130fd7['shift']());}catch(_0x549a7){_0x130fd7['push'](_0x130fd7['shift']());}}}(_0x32eb,0x7041e));import{Command as _0x28204a}from'ckeditor5/src/core.js';import{Dialog as _0xa6f7e3}from'ckeditor5/src/ui.js';function _0x32eb(){const _0x348878=['isActive','execute','679299WJHeMT','4529QRzQXf','1066448bYqheG','refresh','imageEditController','66nnDmwO','element','model','3582952VGdgmA','2tjaNFX','getSelectedElement','_isEditable','plugins','editor','bind','isEnabled','get','663791MDQlns','unbind','requires','8759511uJgLgb','set','uploadcare.allowExternalImagesEditing','config','10ndrkjb','imageInline','14850rbPUTg','imageBlock','document','selection'];_0x32eb=function(){return _0x348878;};return _0x32eb();}import{UploadcareImageEditController as _0x40eb16}from'./ui/uploadcareimageeditcontroller.js';function _0x2a3d(_0x16a30b,_0x29aac5){const _0x32eb9e=_0x32eb();return _0x2a3d=function(_0x2a3d32,_0x5efd00){_0x2a3d32=_0x2a3d32-0x170;let _0x5443ff=_0x32eb9e[_0x2a3d32];return _0x5443ff;},_0x2a3d(_0x16a30b,_0x29aac5);}import{createEditabilityChecker as _0xf8de8a}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x28204a{[_0x19424f(0x17d)];static get[_0x19424f(0x18c)](){return[_0xa6f7e3];}[_0x19424f(0x184)];constructor(_0x330cb8){const _0xb2c4cc=_0x19424f;super(_0x330cb8),this[_0xb2c4cc(0x17d)]=void 0x0,this[_0xb2c4cc(0x184)]=_0xf8de8a(_0x330cb8[_0xb2c4cc(0x170)][_0xb2c4cc(0x189)](_0xb2c4cc(0x18f))||[]),this[_0xb2c4cc(0x18e)]({'isActive':!0x1});}[_0x19424f(0x17c)](){const _0x6ea99=_0x19424f,_0x237f16=this[_0x6ea99(0x186)][_0x6ea99(0x180)][_0x6ea99(0x175)][_0x6ea99(0x176)][_0x6ea99(0x183)]();this[_0x6ea99(0x188)]=this[_0x6ea99(0x184)](_0x237f16);}[_0x19424f(0x178)](){const _0x52cea5=_0x19424f;this[_0x52cea5(0x17d)]&&(this[_0x52cea5(0x18b)](_0x52cea5(0x177)),this[_0x52cea5(0x17d)]=void 0x0);const _0x465fe0=this[_0x52cea5(0x186)][_0x52cea5(0x180)][_0x52cea5(0x175)][_0x52cea5(0x176)][_0x52cea5(0x183)]();_0x465fe0&&(_0x465fe0['is'](_0x52cea5(0x17f),_0x52cea5(0x174))||_0x465fe0['is'](_0x52cea5(0x17f),_0x52cea5(0x172)))&&(this[_0x52cea5(0x17d)]=new _0x40eb16(this[_0x52cea5(0x186)],this[_0x52cea5(0x186)][_0x52cea5(0x185)][_0x52cea5(0x189)](_0xa6f7e3),_0x465fe0),this[_0x52cea5(0x187)](_0x52cea5(0x177))['to'](this[_0x52cea5(0x17d)],_0x52cea5(0x177)));}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- function _0x5060(_0x3b91d5,_0x3d8173){const _0x269384=_0x2693();return _0x5060=function(_0x506043,_0x66fd5c){_0x506043=_0x506043-0x1cb;let _0x42e5de=_0x269384[_0x506043];return _0x42e5de;},_0x5060(_0x3b91d5,_0x3d8173);}const _0xd0107e=_0x5060;(function(_0x4b4ca0,_0x372599){const _0x82125a=_0x5060,_0x2885bb=_0x4b4ca0();while(!![]){try{const _0x13ff28=parseInt(_0x82125a(0x1e0))/0x1*(-parseInt(_0x82125a(0x1d4))/0x2)+parseInt(_0x82125a(0x1db))/0x3+parseInt(_0x82125a(0x1cc))/0x4*(parseInt(_0x82125a(0x1da))/0x5)+-parseInt(_0x82125a(0x1ce))/0x6+parseInt(_0x82125a(0x1de))/0x7*(-parseInt(_0x82125a(0x1dc))/0x8)+-parseInt(_0x82125a(0x1e1))/0x9*(parseInt(_0x82125a(0x1d6))/0xa)+parseInt(_0x82125a(0x1df))/0xb;if(_0x13ff28===_0x372599)break;else _0x2885bb['push'](_0x2885bb['shift']());}catch(_0x116598){_0x2885bb['push'](_0x2885bb['shift']());}}}(_0x2693,0xb82c7));import{Plugin as _0x3c4b8a}from'ckeditor5/src/core.js';function _0x2693(){const _0x415f84=['ImageEditing','UploadcareImageEditEditing','commands','16202WxAKRI','isOfficialPlugin','27930mMOfOY','isPremiumPlugin','add','init','2451615DZYzSZ','58938LfrMHd','2792qWVxUL','requires','1652BGXRHl','18033037zsooEb','154DFofem','1134whueej','ImageUtils','12xliyhg','uploadcareImageEdit','4162626iOOzqt','uploadcareImageReplace','pluginName'];_0x2693=function(){return _0x415f84;};return _0x2693();}import{Notification as _0x2394c2}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x59dadd}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1ec2ee}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x1c0d7c}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3c4b8a{static get[_0xd0107e(0x1d0)](){const _0x1159ad=_0xd0107e;return _0x1159ad(0x1d2);}static get[_0xd0107e(0x1dd)](){const _0x1d18f8=_0xd0107e;return[_0x1c0d7c,_0x2394c2,_0x1d18f8(0x1cb),_0x1d18f8(0x1d1)];}static get[_0xd0107e(0x1d5)](){return!0x0;}static get[_0xd0107e(0x1d7)](){return!0x0;}[_0xd0107e(0x1d9)](){const _0x397795=_0xd0107e,{editor:_0x1aca45}=this;_0x1aca45[_0x397795(0x1d3)][_0x397795(0x1d8)](_0x397795(0x1cd),new _0x59dadd(_0x1aca45)),_0x1aca45[_0x397795(0x1d3)][_0x397795(0x1d8)](_0x397795(0x1cf),new _0x1ec2ee(_0x1aca45));}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{Plugin as _0x4411bc}from'ckeditor5/src/core.js';import{ButtonView as _0x1ff5c1}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xe75ae5}from'ckeditor5/src/icons.js';import{createElement as _0x43c600}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x4411bc{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x4753d1=this['editor'];_0x4753d1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3b7e4e=>{const _0x43e3d3=_0x4753d1['commands']['get']('uploadcareImageEdit'),_0x52cacd=new _0x1ff5c1(_0x3b7e4e),t=_0x3b7e4e['t'];return _0x52cacd['set']({'icon':_0xe75ae5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x52cacd['bind']('isEnabled')['to'](_0x43e3d3),_0x52cacd['bind']('isOn')['to'](_0x43e3d3,'isActive'),this['listenTo'](_0x52cacd,'execute',()=>{_0x4753d1['execute']('uploadcareImageEdit'),_0x4753d1['editing']['view']['focus']();}),_0x52cacd;}),this['_initConfig']();}['_initConfig'](){const _0x3960e4=_0x43c600(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3960e4),this['listenTo'](this['editor'],'destroy',()=>{_0x3960e4['remove']();});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x3813d3=_0x5076;(function(_0x2d9021,_0x326602){const _0x3f50b6=_0x5076,_0x2cf00b=_0x2d9021();while(!![]){try{const _0x1ac9df=parseInt(_0x3f50b6(0x11a))/0x1*(-parseInt(_0x3f50b6(0x122))/0x2)+parseInt(_0x3f50b6(0x11e))/0x3+-parseInt(_0x3f50b6(0x123))/0x4*(parseInt(_0x3f50b6(0x12f))/0x5)+parseInt(_0x3f50b6(0x125))/0x6*(-parseInt(_0x3f50b6(0x120))/0x7)+-parseInt(_0x3f50b6(0x126))/0x8*(-parseInt(_0x3f50b6(0x129))/0x9)+-parseInt(_0x3f50b6(0x11c))/0xa*(parseInt(_0x3f50b6(0x128))/0xb)+parseInt(_0x3f50b6(0x12e))/0xc;if(_0x1ac9df===_0x326602)break;else _0x2cf00b['push'](_0x2cf00b['shift']());}catch(_0x59f1bf){_0x2cf00b['push'](_0x2cf00b['shift']());}}}(_0x57a0,0x5fd21));function _0x5076(_0x57c10,_0x5d67b6){const _0x57a07c=_0x57a0();return _0x5076=function(_0x50769e,_0x3ad9ce){_0x50769e=_0x50769e-0x116;let _0x3b6c46=_0x57a07c[_0x50769e];return _0x3b6c46;},_0x5076(_0x57c10,_0x5d67b6);}import{Command as _0x3a80a1}from'ckeditor5/src/core.js';function _0x57a0(){const _0x392f69=['1979964rFcVEC','document','3993222wVMdCg','24oSggxk','isEnabled','28347yywEAF','1457838vonMDL','removeAttribute','setAttributes','change','refresh','20618484zNjCtQ','5DpadaP','execute','imageBlock','imageInline','getSelectedElement','model','editor','234631zxYynS','selection','390oKQxlx','sizes','459756oukHdS','srcset','7BmpvXd','element','6GQjIZG'];_0x57a0=function(){return _0x392f69;};return _0x57a0();}export class UploadcareImageReplaceCommand extends _0x3a80a1{[_0x3813d3(0x12d)](){const _0x110221=_0x3813d3,_0x34fd81=this[_0x110221(0x119)][_0x110221(0x118)][_0x110221(0x124)][_0x110221(0x11b)][_0x110221(0x117)]();this[_0x110221(0x127)]=Boolean(_0x34fd81&&(_0x34fd81['is'](_0x110221(0x121),_0x110221(0x131))||_0x34fd81['is'](_0x110221(0x121),_0x110221(0x116))));}[_0x3813d3(0x130)](_0x267fd0){const _0x42a8eb=_0x3813d3,_0xc5fe1a=this[_0x42a8eb(0x119)][_0x42a8eb(0x118)][_0x42a8eb(0x124)][_0x42a8eb(0x11b)][_0x42a8eb(0x117)]();this[_0x42a8eb(0x119)][_0x42a8eb(0x118)][_0x42a8eb(0x12c)](_0x3f0d9b=>{const _0x26a3d6=_0x42a8eb;_0x3f0d9b[_0x26a3d6(0x12b)](_0x267fd0,_0xc5fe1a),_0x3f0d9b[_0x26a3d6(0x12a)](_0x26a3d6(0x11f),_0xc5fe1a),_0x3f0d9b[_0x26a3d6(0x12a)](_0x26a3d6(0x11d),_0xc5fe1a);});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- function _0x5790(_0x5a45eb,_0x362a25){var _0x27dddf=_0x27dd();return _0x5790=function(_0x5790f8,_0x563c71){_0x5790f8=_0x5790f8-0x1d3;var _0x2603c5=_0x27dddf[_0x5790f8];return _0x2603c5;},_0x5790(_0x5a45eb,_0x362a25);}var _0x4864db=_0x5790;(function(_0x47f349,_0xd44852){var _0x593cd2=_0x5790,_0x219672=_0x47f349();while(!![]){try{var _0x35df3f=-parseInt(_0x593cd2(0x1db))/0x1*(parseInt(_0x593cd2(0x1e0))/0x2)+parseInt(_0x593cd2(0x1de))/0x3*(-parseInt(_0x593cd2(0x1dc))/0x4)+parseInt(_0x593cd2(0x1d5))/0x5+parseInt(_0x593cd2(0x1df))/0x6+-parseInt(_0x593cd2(0x1d4))/0x7*(-parseInt(_0x593cd2(0x1e1))/0x8)+parseInt(_0x593cd2(0x1d7))/0x9+-parseInt(_0x593cd2(0x1dd))/0xa;if(_0x35df3f===_0xd44852)break;else _0x219672['push'](_0x219672['shift']());}catch(_0x12c3c6){_0x219672['push'](_0x219672['shift']());}}}(_0x27dd,0x3af06));import{Plugin as _0xcf02f0}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x1dab3b}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x3f4352}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x27dd(){var _0xac925a=['requires','69fdsOug','11136sdByPD','4134510AlUBtp','177WCbYGX','1232322IpIDcl','4578OuEJSd','24ncDGiG','isPremiumPlugin','601923CFxyXH','1008175CZESQa','pluginName','2808657DOmjhl','isOfficialPlugin','UploadcareImageEdit'];_0x27dd=function(){return _0xac925a;};return _0x27dd();}export class UploadcareImageEdit extends _0xcf02f0{static get[_0x4864db(0x1d6)](){var _0x14b182=_0x4864db;return _0x14b182(0x1d9);}static get[_0x4864db(0x1da)](){return[_0x1dab3b,_0x3f4352];}static get[_0x4864db(0x1d8)](){return!0x0;}static get[_0x4864db(0x1d3)](){return!0x0;}}