@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260129.0 → 0.0.0-nightly-20260130.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 (349) hide show
  1. package/build/translations/af.js +1 -0
  2. package/build/translations/ar.js +1 -0
  3. package/build/translations/ast.js +1 -0
  4. package/build/translations/az.js +1 -0
  5. package/build/translations/be.js +1 -0
  6. package/build/translations/bg.js +1 -0
  7. package/build/translations/bn.js +1 -0
  8. package/build/translations/bs.js +1 -0
  9. package/build/translations/ca.js +1 -0
  10. package/build/translations/cs.js +1 -0
  11. package/build/translations/da.js +1 -0
  12. package/build/translations/de-ch.js +1 -0
  13. package/build/translations/de.js +1 -0
  14. package/build/translations/el.js +1 -0
  15. package/build/translations/en-au.js +1 -0
  16. package/build/translations/en-gb.js +1 -0
  17. package/build/translations/eo.js +1 -0
  18. package/build/translations/es-co.js +1 -0
  19. package/build/translations/es.js +1 -0
  20. package/build/translations/et.js +1 -0
  21. package/build/translations/eu.js +1 -0
  22. package/build/translations/fa.js +1 -0
  23. package/build/translations/fi.js +1 -0
  24. package/build/translations/fr.js +1 -0
  25. package/build/translations/gl.js +1 -0
  26. package/build/translations/gu.js +1 -0
  27. package/build/translations/he.js +1 -0
  28. package/build/translations/hi.js +1 -0
  29. package/build/translations/hr.js +1 -0
  30. package/build/translations/hu.js +1 -0
  31. package/build/translations/hy.js +1 -0
  32. package/build/translations/id.js +1 -0
  33. package/build/translations/it.js +1 -0
  34. package/build/translations/ja.js +1 -0
  35. package/build/translations/jv.js +1 -0
  36. package/build/translations/kk.js +1 -0
  37. package/build/translations/km.js +1 -0
  38. package/build/translations/kn.js +1 -0
  39. package/build/translations/ko.js +1 -0
  40. package/build/translations/ku.js +1 -0
  41. package/build/translations/lt.js +1 -0
  42. package/build/translations/lv.js +1 -0
  43. package/build/translations/ms.js +1 -0
  44. package/build/translations/nb.js +1 -0
  45. package/build/translations/ne.js +1 -0
  46. package/build/translations/nl.js +1 -0
  47. package/build/translations/no.js +1 -0
  48. package/build/translations/oc.js +1 -0
  49. package/build/translations/pl.js +1 -0
  50. package/build/translations/pt-br.js +1 -0
  51. package/build/translations/pt.js +1 -0
  52. package/build/translations/ro.js +1 -0
  53. package/build/translations/ru.js +1 -0
  54. package/build/translations/si.js +1 -0
  55. package/build/translations/sk.js +1 -0
  56. package/build/translations/sl.js +1 -0
  57. package/build/translations/sq.js +1 -0
  58. package/build/translations/sr-latn.js +1 -0
  59. package/build/translations/sr.js +1 -0
  60. package/build/translations/sv.js +1 -0
  61. package/build/translations/th.js +1 -0
  62. package/build/translations/ti.js +1 -0
  63. package/build/translations/tk.js +1 -0
  64. package/build/translations/tr.js +1 -0
  65. package/build/translations/tt.js +1 -0
  66. package/build/translations/ug.js +1 -0
  67. package/build/translations/uk.js +1 -0
  68. package/build/translations/ur.js +1 -0
  69. package/build/translations/uz.js +1 -0
  70. package/build/translations/vi.js +1 -0
  71. package/build/translations/zh-cn.js +1 -0
  72. package/build/translations/zh.js +1 -0
  73. package/build/uploadcare.js +5 -0
  74. package/ckeditor5-metadata.json +2 -2
  75. package/dist/index.js +3 -3
  76. package/dist/translations/af.js +1 -1
  77. package/dist/translations/af.umd.js +1 -1
  78. package/dist/translations/ar.js +1 -1
  79. package/dist/translations/ar.umd.js +1 -1
  80. package/dist/translations/ast.js +1 -1
  81. package/dist/translations/ast.umd.js +1 -1
  82. package/dist/translations/az.js +1 -1
  83. package/dist/translations/az.umd.js +1 -1
  84. package/dist/translations/be.js +1 -1
  85. package/dist/translations/be.umd.js +1 -1
  86. package/dist/translations/bg.js +1 -1
  87. package/dist/translations/bg.umd.js +1 -1
  88. package/dist/translations/bn.js +1 -1
  89. package/dist/translations/bn.umd.js +1 -1
  90. package/dist/translations/bs.js +1 -1
  91. package/dist/translations/bs.umd.js +1 -1
  92. package/dist/translations/ca.js +1 -1
  93. package/dist/translations/ca.umd.js +1 -1
  94. package/dist/translations/cs.js +1 -1
  95. package/dist/translations/cs.umd.js +1 -1
  96. package/dist/translations/da.js +1 -1
  97. package/dist/translations/da.umd.js +1 -1
  98. package/dist/translations/de-ch.js +1 -1
  99. package/dist/translations/de-ch.umd.js +1 -1
  100. package/dist/translations/de.js +1 -1
  101. package/dist/translations/de.umd.js +1 -1
  102. package/dist/translations/el.js +1 -1
  103. package/dist/translations/el.umd.js +1 -1
  104. package/dist/translations/en-au.js +1 -1
  105. package/dist/translations/en-au.umd.js +1 -1
  106. package/dist/translations/en-gb.js +1 -1
  107. package/dist/translations/en-gb.umd.js +1 -1
  108. package/dist/translations/en.js +1 -1
  109. package/dist/translations/en.umd.js +1 -1
  110. package/dist/translations/eo.js +1 -1
  111. package/dist/translations/eo.umd.js +1 -1
  112. package/dist/translations/es-co.js +1 -1
  113. package/dist/translations/es-co.umd.js +1 -1
  114. package/dist/translations/es.js +1 -1
  115. package/dist/translations/es.umd.js +1 -1
  116. package/dist/translations/et.js +1 -1
  117. package/dist/translations/et.umd.js +1 -1
  118. package/dist/translations/eu.js +1 -1
  119. package/dist/translations/eu.umd.js +1 -1
  120. package/dist/translations/fa.js +1 -1
  121. package/dist/translations/fa.umd.js +1 -1
  122. package/dist/translations/fi.js +1 -1
  123. package/dist/translations/fi.umd.js +1 -1
  124. package/dist/translations/fr.js +1 -1
  125. package/dist/translations/fr.umd.js +1 -1
  126. package/dist/translations/gl.js +1 -1
  127. package/dist/translations/gl.umd.js +1 -1
  128. package/dist/translations/gu.js +1 -1
  129. package/dist/translations/gu.umd.js +1 -1
  130. package/dist/translations/he.js +1 -1
  131. package/dist/translations/he.umd.js +1 -1
  132. package/dist/translations/hi.js +1 -1
  133. package/dist/translations/hi.umd.js +1 -1
  134. package/dist/translations/hr.js +1 -1
  135. package/dist/translations/hr.umd.js +1 -1
  136. package/dist/translations/hu.js +1 -1
  137. package/dist/translations/hu.umd.js +1 -1
  138. package/dist/translations/hy.js +1 -1
  139. package/dist/translations/hy.umd.js +1 -1
  140. package/dist/translations/id.js +1 -1
  141. package/dist/translations/id.umd.js +1 -1
  142. package/dist/translations/it.js +1 -1
  143. package/dist/translations/it.umd.js +1 -1
  144. package/dist/translations/ja.js +1 -1
  145. package/dist/translations/ja.umd.js +1 -1
  146. package/dist/translations/jv.js +1 -1
  147. package/dist/translations/jv.umd.js +1 -1
  148. package/dist/translations/kk.js +1 -1
  149. package/dist/translations/kk.umd.js +1 -1
  150. package/dist/translations/km.js +1 -1
  151. package/dist/translations/km.umd.js +1 -1
  152. package/dist/translations/kn.js +1 -1
  153. package/dist/translations/kn.umd.js +1 -1
  154. package/dist/translations/ko.js +1 -1
  155. package/dist/translations/ko.umd.js +1 -1
  156. package/dist/translations/ku.js +1 -1
  157. package/dist/translations/ku.umd.js +1 -1
  158. package/dist/translations/lt.js +1 -1
  159. package/dist/translations/lt.umd.js +1 -1
  160. package/dist/translations/lv.js +1 -1
  161. package/dist/translations/lv.umd.js +1 -1
  162. package/dist/translations/ms.js +1 -1
  163. package/dist/translations/ms.umd.js +1 -1
  164. package/dist/translations/nb.js +1 -1
  165. package/dist/translations/nb.umd.js +1 -1
  166. package/dist/translations/ne.js +1 -1
  167. package/dist/translations/ne.umd.js +1 -1
  168. package/dist/translations/nl.js +1 -1
  169. package/dist/translations/nl.umd.js +1 -1
  170. package/dist/translations/no.js +1 -1
  171. package/dist/translations/no.umd.js +1 -1
  172. package/dist/translations/oc.js +1 -1
  173. package/dist/translations/oc.umd.js +1 -1
  174. package/dist/translations/pl.js +1 -1
  175. package/dist/translations/pl.umd.js +1 -1
  176. package/dist/translations/pt-br.js +1 -1
  177. package/dist/translations/pt-br.umd.js +1 -1
  178. package/dist/translations/pt.js +1 -1
  179. package/dist/translations/pt.umd.js +1 -1
  180. package/dist/translations/ro.js +1 -1
  181. package/dist/translations/ro.umd.js +1 -1
  182. package/dist/translations/ru.js +1 -1
  183. package/dist/translations/ru.umd.js +1 -1
  184. package/dist/translations/si.js +1 -1
  185. package/dist/translations/si.umd.js +1 -1
  186. package/dist/translations/sk.js +1 -1
  187. package/dist/translations/sk.umd.js +1 -1
  188. package/dist/translations/sl.js +1 -1
  189. package/dist/translations/sl.umd.js +1 -1
  190. package/dist/translations/sq.js +1 -1
  191. package/dist/translations/sq.umd.js +1 -1
  192. package/dist/translations/sr-latn.js +1 -1
  193. package/dist/translations/sr-latn.umd.js +1 -1
  194. package/dist/translations/sr.js +1 -1
  195. package/dist/translations/sr.umd.js +1 -1
  196. package/dist/translations/sv.js +1 -1
  197. package/dist/translations/sv.umd.js +1 -1
  198. package/dist/translations/th.js +1 -1
  199. package/dist/translations/th.umd.js +1 -1
  200. package/dist/translations/ti.js +1 -1
  201. package/dist/translations/ti.umd.js +1 -1
  202. package/dist/translations/tk.js +1 -1
  203. package/dist/translations/tk.umd.js +1 -1
  204. package/dist/translations/tr.js +1 -1
  205. package/dist/translations/tr.umd.js +1 -1
  206. package/dist/translations/tt.js +1 -1
  207. package/dist/translations/tt.umd.js +1 -1
  208. package/dist/translations/ug.js +1 -1
  209. package/dist/translations/ug.umd.js +1 -1
  210. package/dist/translations/uk.js +1 -1
  211. package/dist/translations/uk.umd.js +1 -1
  212. package/dist/translations/ur.js +1 -1
  213. package/dist/translations/ur.umd.js +1 -1
  214. package/dist/translations/uz.js +1 -1
  215. package/dist/translations/uz.umd.js +1 -1
  216. package/dist/translations/vi.js +1 -1
  217. package/dist/translations/vi.umd.js +1 -1
  218. package/dist/translations/zh-cn.js +1 -1
  219. package/dist/translations/zh-cn.umd.js +1 -1
  220. package/dist/translations/zh.js +1 -1
  221. package/dist/translations/zh.umd.js +1 -1
  222. package/lang/contexts.json +24 -0
  223. package/lang/translations/af.po +100 -0
  224. package/lang/translations/ar.po +100 -0
  225. package/lang/translations/ast.po +100 -0
  226. package/lang/translations/az.po +100 -0
  227. package/lang/translations/be.po +100 -0
  228. package/lang/translations/bg.po +100 -0
  229. package/lang/translations/bn.po +100 -0
  230. package/lang/translations/bs.po +100 -0
  231. package/lang/translations/ca.po +100 -0
  232. package/lang/translations/cs.po +100 -0
  233. package/lang/translations/da.po +100 -0
  234. package/lang/translations/de-ch.po +100 -0
  235. package/lang/translations/de.po +100 -0
  236. package/lang/translations/el.po +100 -0
  237. package/lang/translations/en-au.po +100 -0
  238. package/lang/translations/en-gb.po +100 -0
  239. package/lang/translations/en.po +100 -0
  240. package/lang/translations/eo.po +100 -0
  241. package/lang/translations/es-co.po +100 -0
  242. package/lang/translations/es.po +100 -0
  243. package/lang/translations/et.po +100 -0
  244. package/lang/translations/eu.po +100 -0
  245. package/lang/translations/fa.po +100 -0
  246. package/lang/translations/fi.po +100 -0
  247. package/lang/translations/fr.po +100 -0
  248. package/lang/translations/gl.po +100 -0
  249. package/lang/translations/gu.po +100 -0
  250. package/lang/translations/he.po +100 -0
  251. package/lang/translations/hi.po +100 -0
  252. package/lang/translations/hr.po +100 -0
  253. package/lang/translations/hu.po +100 -0
  254. package/lang/translations/hy.po +100 -0
  255. package/lang/translations/id.po +100 -0
  256. package/lang/translations/it.po +100 -0
  257. package/lang/translations/ja.po +100 -0
  258. package/lang/translations/jv.po +100 -0
  259. package/lang/translations/kk.po +100 -0
  260. package/lang/translations/km.po +100 -0
  261. package/lang/translations/kn.po +100 -0
  262. package/lang/translations/ko.po +100 -0
  263. package/lang/translations/ku.po +100 -0
  264. package/lang/translations/lt.po +100 -0
  265. package/lang/translations/lv.po +100 -0
  266. package/lang/translations/ms.po +100 -0
  267. package/lang/translations/nb.po +100 -0
  268. package/lang/translations/ne.po +100 -0
  269. package/lang/translations/nl.po +100 -0
  270. package/lang/translations/no.po +100 -0
  271. package/lang/translations/oc.po +100 -0
  272. package/lang/translations/pl.po +100 -0
  273. package/lang/translations/pt-br.po +100 -0
  274. package/lang/translations/pt.po +100 -0
  275. package/lang/translations/ro.po +100 -0
  276. package/lang/translations/ru.po +100 -0
  277. package/lang/translations/si.po +100 -0
  278. package/lang/translations/sk.po +100 -0
  279. package/lang/translations/sl.po +100 -0
  280. package/lang/translations/sq.po +100 -0
  281. package/lang/translations/sr-latn.po +100 -0
  282. package/lang/translations/sr.po +100 -0
  283. package/lang/translations/sv.po +100 -0
  284. package/lang/translations/th.po +100 -0
  285. package/lang/translations/ti.po +100 -0
  286. package/lang/translations/tk.po +100 -0
  287. package/lang/translations/tr.po +100 -0
  288. package/lang/translations/tt.po +100 -0
  289. package/lang/translations/ug.po +100 -0
  290. package/lang/translations/uk.po +100 -0
  291. package/lang/translations/ur.po +100 -0
  292. package/lang/translations/uz.po +100 -0
  293. package/lang/translations/vi.po +100 -0
  294. package/lang/translations/zh-cn.po +100 -0
  295. package/lang/translations/zh.po +100 -0
  296. package/package.json +46 -23
  297. package/src/augmentation.js +23 -0
  298. package/src/index.js +23 -0
  299. package/{dist → src}/ui/uploadcarecontroller.d.ts +3 -3
  300. package/src/ui/uploadcarecontroller.js +24 -0
  301. package/{dist → src}/ui/uploadcareformview.d.ts +1 -1
  302. package/src/ui/uploadcareformview.js +23 -0
  303. package/{dist → src}/uploadcare.d.ts +1 -1
  304. package/src/uploadcare.js +23 -0
  305. package/{dist → src}/uploadcarecommand.d.ts +2 -2
  306. package/src/uploadcarecommand.js +23 -0
  307. package/{dist → src}/uploadcareconfig.d.ts +1 -1
  308. package/src/uploadcareconfig.js +23 -0
  309. package/{dist → src}/uploadcareediting.d.ts +2 -2
  310. package/src/uploadcareediting.js +23 -0
  311. package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +5 -5
  312. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +24 -0
  313. package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +2 -2
  314. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +23 -0
  315. package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -2
  316. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +23 -0
  317. package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +2 -2
  318. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +23 -0
  319. package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +1 -1
  320. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +23 -0
  321. package/{dist → src}/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -2
  322. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +23 -0
  323. package/{dist → src}/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -2
  324. package/src/uploadcareimageedit/uploadcareimageeditediting.js +23 -0
  325. package/{dist → src}/uploadcareimageedit/uploadcareimageeditui.d.ts +1 -1
  326. package/src/uploadcareimageedit/uploadcareimageeditui.js +23 -0
  327. package/{dist → src}/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -1
  328. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +23 -0
  329. package/{dist → src}/uploadcareimageedit.d.ts +1 -1
  330. package/src/uploadcareimageedit.js +23 -0
  331. package/{dist → src}/uploadcareui.d.ts +1 -1
  332. package/src/uploadcareui.js +23 -0
  333. package/{dist → src}/uploadcareuploadadapter.d.ts +2 -2
  334. package/src/uploadcareuploadadapter.js +23 -0
  335. package/src/utils/common-translations.js +23 -0
  336. package/{dist → src}/utils/dialogfocusmanagerview.d.ts +2 -2
  337. package/src/utils/dialogfocusmanagerview.js +23 -0
  338. package/src/utils/editingutils.js +23 -0
  339. package/src/utils/isancestor.js +23 -0
  340. package/src/utils/uploadutils.js +23 -0
  341. package/theme/uploadcare-form.css +201 -0
  342. package/theme/uploadcare-theme.css +20 -0
  343. package/theme/uploadcareimageedit.css +64 -0
  344. /package/{dist → src}/augmentation.d.ts +0 -0
  345. /package/{dist → src}/index.d.ts +0 -0
  346. /package/{dist → src}/utils/common-translations.d.ts +0 -0
  347. /package/{dist → src}/utils/editingutils.d.ts +0 -0
  348. /package/{dist → src}/utils/isancestor.d.ts +0 -0
  349. /package/{dist → src}/utils/uploadutils.d.ts +0 -0
@@ -0,0 +1,24 @@
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 _0x5503db=_0x1aa0;(function(_0x450bc4,_0x28b548){const _0x464c4f=_0x1aa0,_0xc12fa7=_0x450bc4();while(!![]){try{const _0x2fba39=-parseInt(_0x464c4f(0x111))/0x1*(-parseInt(_0x464c4f(0x106))/0x2)+-parseInt(_0x464c4f(0x10b))/0x3+parseInt(_0x464c4f(0xe4))/0x4*(parseInt(_0x464c4f(0xfd))/0x5)+-parseInt(_0x464c4f(0x114))/0x6*(-parseInt(_0x464c4f(0x112))/0x7)+parseInt(_0x464c4f(0x105))/0x8+-parseInt(_0x464c4f(0x117))/0x9+-parseInt(_0x464c4f(0xff))/0xa*(parseInt(_0x464c4f(0xef))/0xb);if(_0x2fba39===_0x28b548)break;else _0xc12fa7['push'](_0xc12fa7['shift']());}catch(_0x24df38){_0xc12fa7['push'](_0xc12fa7['shift']());}}}(_0x5dbc,0x825d1));import{IconUploadcareImageUpload as _0x322331}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x2436d0}from'ckeditor5/src/utils.js';function _0x5dbc(){const _0x5af012=['allEntries','source-list','document','Replace','image','uploadCare','idle','change','_initListeners','stopListening','setSelection','execute','editing','model','stopDelegating','view','isOpen','Local','configElement','getOutputCollectionState','destroy','68dBpyiT','_initDialog','insertImage','plugins','_api','imageInline','selection','ucContextId','doneFlow','done-click','_dialog','6952mFtQjk','imageInfo','imageBlock','text','get','width','show','getAPI','focus','removeSelectionAttribute','uuid','hide','setAttribute','setCurrentActivity','94520akWBqP','removeAllFiles','16840LBGCEM','element','ctxElement','_insertAsset','length','Insert','7750488QhptId','26972kffdDv','getLastPosition','linkHref','addEventListener','detail','1361673tNIgIc','_editing','initFlow','_insertImage','_formView','getSelectedElement','68tKUmbo','119WsnRpu','_editor','133374FRxvXE','attributes','EDITOR_TOP_CENTER','4796748SXwFmy','status','_type'];_0x5dbc=function(){return _0x5af012;};return _0x5dbc();}import{Dialog as _0x3e6a09,DialogViewPosition as _0x585450}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x5a83e9}from'./uploadcareformview.js';import{UploadcareSource as _0x44ac86}from'../uploadcareconfig.js';import{getTranslation as _0x5d3cff}from'../utils/common-translations.js';function _0x1aa0(_0x5a44a0,_0x192e17){const _0x5dbc23=_0x5dbc();return _0x1aa0=function(_0x1aa036,_0x528290){_0x1aa036=_0x1aa036-0xcd;let _0x3a29d7=_0x5dbc23[_0x1aa036];return _0x3a29d7;},_0x1aa0(_0x5a44a0,_0x192e17);}import{getImageUrls as _0x39566c,getImageDimension as _0xf54b09}from'../utils/editingutils.js';import{isAncestor as _0x33ed8e}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x2436d0(){[_0x5503db(0x113)];[_0x5503db(0xee)];[_0x5503db(0x10c)];[_0x5503db(0xe8)];[_0x5503db(0xce)]=null;[_0x5503db(0x10f)]=null;constructor(_0x318014,_0x192669,_0x35993c){const _0x1b61dc=_0x5503db;super(),this[_0x1b61dc(0x113)]=_0x318014,this[_0x1b61dc(0x10c)]=_0x192669,this[_0x1b61dc(0xee)]=_0x318014[_0x1b61dc(0xe7)][_0x1b61dc(0xf3)](_0x3e6a09),this[_0x1b61dc(0xe8)]=_0x192669[_0x1b61dc(0x101)][_0x1b61dc(0xf6)](),this[_0x1b61dc(0xce)]=_0x35993c,this[_0x1b61dc(0x10c)][_0x1b61dc(0xe1)][_0x1b61dc(0xfb)](_0x1b61dc(0xd0),this[_0x1b61dc(0xce)]),this[_0x1b61dc(0xe5)](),this[_0x1b61dc(0xd7)](),this[_0x1b61dc(0xe8)][_0x1b61dc(0x10d)]();}[_0x5503db(0xe3)](){const _0x3d381=_0x5503db;this[_0x3d381(0x10f)]&&(this[_0x3d381(0x10f)][_0x3d381(0xe3)](),this[_0x3d381(0x10f)]=null),this[_0x3d381(0xe8)]&&this[_0x3d381(0xe8)][_0x3d381(0xec)](),this[_0x3d381(0xd8)](),this[_0x3d381(0xdd)]();}[_0x5503db(0xe5)](){const _0x1d3c58=_0x5503db,{locale:_0x5f55cc,model:_0x3a3e77}=this[_0x1d3c58(0x113)],_0x298f54=_0x3a3e77[_0x1d3c58(0xd1)][_0x1d3c58(0xea)][_0x1d3c58(0x110)](),_0x36dbbf=_0x298f54&&(_0x298f54['is'](_0x1d3c58(0x100),_0x1d3c58(0xf1))||_0x298f54['is'](_0x1d3c58(0x100),_0x1d3c58(0xe9)));this[_0x1d3c58(0x10f)]=new _0x5a83e9(_0x5f55cc,this[_0x1d3c58(0x10c)][_0x1d3c58(0xeb)]),this[_0x1d3c58(0xee)][_0x1d3c58(0xf5)]({'id':_0x1d3c58(0xd4),'icon':_0x322331,'title':_0x5d3cff(_0x5f55cc,this[_0x1d3c58(0xce)],_0x36dbbf?_0x1d3c58(0xd2):_0x1d3c58(0x104))[_0x1d3c58(0xf2)],'content':this[_0x1d3c58(0x10f)],'position':_0x585450[_0x1d3c58(0x116)],'isModal':!0x0,'onShow':()=>{const _0x2bda7e=_0x1d3c58;this[_0x2bda7e(0x10f)][_0x2bda7e(0xf7)]();},'onHide':()=>{const _0x2b7331=_0x1d3c58;this[_0x2b7331(0xe8)][_0x2b7331(0xfe)](),this[_0x2b7331(0x113)][_0x2b7331(0xdb)][_0x2b7331(0xde)][_0x2b7331(0xf7)](),this[_0x2b7331(0xe3)]();},'keystrokeHandlerOptions':{'filter':_0x33ecb4=>!_0x33ed8e(_0x33ecb4,this[_0x1d3c58(0x10f)][_0x1d3c58(0x100)])}});}[_0x5503db(0xd7)](){const _0x225fd6=_0x5503db;this[_0x225fd6(0x10c)][_0x225fd6(0x101)][_0x225fd6(0x109)](_0x225fd6(0xed),()=>{const _0x5495db=_0x225fd6,{allEntries:_0x1bb57f}=this[_0x5495db(0xe8)][_0x5495db(0xe2)]();this[_0x5495db(0x113)][_0x5495db(0xdc)][_0x5495db(0xd6)](_0x3b031d=>{const _0x14288e=_0x5495db,_0x1abb64=_0x1bb57f[_0x14288e(0x103)];for(const _0x199b3b of _0x1bb57f){const _0x18a482=_0x199b3b===_0x1bb57f[_0x1abb64-0x1],{cdnUrl:_0x3251b0,fileInfo:_0x5e18fd}=_0x199b3b;if(!_0x3251b0||!_0x5e18fd)continue;const {width:_0xbfd336,height:_0x4a2267}=_0x5e18fd[_0x14288e(0xf0)],_0x59d5f5=_0xf54b09(_0x3251b0,_0xbfd336,_0x4a2267),_0x20c1aa=_0x39566c(_0x3251b0,_0x59d5f5[_0x14288e(0xf4)]),_0xd0765e={'id':_0x5e18fd[_0x14288e(0xf9)],'type':_0x14288e(0xd3),'attributes':{'imageDimension':_0x59d5f5,..._0x20c1aa}};this[_0x14288e(0x102)](_0xd0765e,_0x18a482,_0x3b031d);}}),this[_0x5495db(0xee)][_0x5495db(0xfa)]();}),this[_0x225fd6(0x10c)][_0x225fd6(0x101)][_0x225fd6(0x109)](_0x225fd6(0xd6),_0xb11ade=>{const _0x13ff6f=_0x225fd6;_0x13ff6f(0xd5)===_0xb11ade[_0x13ff6f(0x10a)][_0x13ff6f(0xcd)]&&!_0xb11ade[_0x13ff6f(0x10a)][_0x13ff6f(0xcf)][_0x13ff6f(0x103)]&&this[_0x13ff6f(0xee)][_0x13ff6f(0xdf)]&&(this[_0x13ff6f(0xce)]===_0x44ac86[_0x13ff6f(0xe0)]?this[_0x13ff6f(0xe8)][_0x13ff6f(0xfc)](_0x44ac86[_0x13ff6f(0xe0)]):this[_0x13ff6f(0xe8)][_0x13ff6f(0x10d)]());});}[_0x5503db(0x102)](_0x10dfd0,_0x5a5e37,_0x17d6f1){const _0x49ea6c=_0x5503db,_0x156180=this[_0x49ea6c(0x113)][_0x49ea6c(0xdc)][_0x49ea6c(0xd1)][_0x49ea6c(0xea)],_0x16d745=_0x156180[_0x49ea6c(0x110)](),_0x297573=!(!_0x16d745||!_0x16d745['is'](_0x49ea6c(0x100),_0x49ea6c(0xe9)));_0x17d6f1[_0x49ea6c(0xf8)](_0x49ea6c(0x108)),this[_0x49ea6c(0x10e)](_0x10dfd0,_0x297573),_0x5a5e37||_0x17d6f1[_0x49ea6c(0xd9)](_0x156180[_0x49ea6c(0x107)]());}[_0x5503db(0x10e)](_0x1bf608,_0x4a71af){const _0x292d58=_0x5503db,_0x291e45=this[_0x292d58(0x113)],{imageDimension:_0x437e2d,imageFallbackUrl:_0x2beda4,imageSources:_0x42fe6f}=_0x1bf608[_0x292d58(0x115)];_0x291e45[_0x292d58(0xda)](_0x292d58(0xe6),{'imageType':_0x4a71af?_0x292d58(0xe9):null,'source':{'uploadcareImageId':_0x1bf608['id'],'src':_0x2beda4,'sources':_0x42fe6f,..._0x437e2d}});}}
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module uploadcare/ui/uploadcareformview
7
7
  */
8
- import { type Locale } from '@ckeditor/ckeditor5-utils';
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
9
  import { DialogFocusManagerView } from '../utils/dialogfocusmanagerview.js';
10
10
  import '../../theme/uploadcare-form.css';
11
11
  /**
@@ -0,0 +1,23 @@
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 _0x32b6b8=_0x5146;function _0x3b64(){var _0x36d15d=['47622kOmWcg','588lUwEpm','getFocusableElement','uc-file-uploader-inline','ck-uploadcare-form','533652OGysRD','focus','element','122679OCLJOA','setTemplate','353595LvqNct','126mfDeKd','110zTHVRv','31544PCiHeA','22qeRxUI','1396503HyrhjU','uploader-','ck-reset_all-excluded','ck-uploadcare-theme','uc-light','4azVbXn','div','2503356auTeSo'];_0x3b64=function(){return _0x36d15d;};return _0x3b64();}function _0x5146(_0x1b989a,_0x309ecb){var _0x3b64f4=_0x3b64();return _0x5146=function(_0x514623,_0x265131){_0x514623=_0x514623-0x1c0;var _0x5203a6=_0x3b64f4[_0x514623];return _0x5203a6;},_0x5146(_0x1b989a,_0x309ecb);}(function(_0x2c2cf0,_0x5ee9b2){var _0x52fe03=_0x5146,_0x5db645=_0x2c2cf0();while(!![]){try{var _0x3b9227=-parseInt(_0x52fe03(0x1c4))/0x1*(parseInt(_0x52fe03(0x1c1))/0x2)+-parseInt(_0x52fe03(0x1cc))/0x3+parseInt(_0x52fe03(0x1c3))/0x4+-parseInt(_0x52fe03(0x1ce))/0x5*(parseInt(_0x52fe03(0x1cf))/0x6)+parseInt(_0x52fe03(0x1c5))/0x7*(parseInt(_0x52fe03(0x1d1))/0x8)+parseInt(_0x52fe03(0x1d3))/0x9*(parseInt(_0x52fe03(0x1d0))/0xa)+parseInt(_0x52fe03(0x1d2))/0xb*(-parseInt(_0x52fe03(0x1c9))/0xc);if(_0x3b9227===_0x5ee9b2)break;else _0x5db645['push'](_0x5db645['shift']());}catch(_0x35aa57){_0x5db645['push'](_0x5db645['shift']());}}}(_0x3b64,0xe8d6e));import{DialogFocusManagerView as _0x25c14d}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x25c14d{constructor(_0x2d32b9,_0x4f0b5b){var _0x477dc6=_0x5146;super(_0x2d32b9),this[_0x477dc6(0x1cd)]({'tag':_0x477dc6(0x1c2),'attributes':{'class':['ck',_0x477dc6(0x1d5),_0x477dc6(0x1c8)],'tabindex':'-1'},'children':[{'tag':_0x477dc6(0x1c7),'attributes':{'class':[_0x477dc6(0x1c0),_0x477dc6(0x1d6)],'ctx-name':_0x477dc6(0x1d4)+_0x4f0b5b}},this[_0x477dc6(0x1c6)]()]});}[_0x32b6b8(0x1ca)](){var _0x3a42ad=_0x32b6b8;this[_0x3a42ad(0x1cb)][_0x3a42ad(0x1ca)]();}}
@@ -6,7 +6,7 @@
6
6
  * @module uploadcare/uploadcare
7
7
  * @publicApi
8
8
  */
9
- import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
10
10
  import { UploadcareUI } from './uploadcareui.js';
11
11
  import { UploadcareEditing } from './uploadcareediting.js';
12
12
  import * as UC from '@uploadcare/file-uploader';
@@ -0,0 +1,23 @@
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 _0xf84093=_0x2eac;(function(_0x1fb6ff,_0x543a08){const _0xb8be7d=_0x2eac,_0x530dab=_0x1fb6ff();while(!![]){try{const _0x4a2f34=parseInt(_0xb8be7d(0x9c))/0x1*(parseInt(_0xb8be7d(0xa2))/0x2)+-parseInt(_0xb8be7d(0xaf))/0x3+-parseInt(_0xb8be7d(0x9d))/0x4*(parseInt(_0xb8be7d(0x97))/0x5)+-parseInt(_0xb8be7d(0x9a))/0x6+-parseInt(_0xb8be7d(0x96))/0x7*(-parseInt(_0xb8be7d(0x99))/0x8)+parseInt(_0xb8be7d(0x9b))/0x9+-parseInt(_0xb8be7d(0xa4))/0xa*(-parseInt(_0xb8be7d(0xac))/0xb);if(_0x4a2f34===_0x543a08)break;else _0x530dab['push'](_0x530dab['shift']());}catch(_0x5cc91b){_0x530dab['push'](_0x530dab['shift']());}}}(_0x27af,0xaf1a3));import{Plugin as _0x2bcf83}from'ckeditor5/src/core.js';function _0x2eac(_0x23e61f,_0x2ba8b5){const _0x27af6d=_0x27af();return _0x2eac=function(_0x2eac6e,_0x49fb00){_0x2eac6e=_0x2eac6e-0x95;let _0x374c27=_0x27af6d[_0x2eac6e];return _0x374c27;},_0x2eac(_0x23e61f,_0x2ba8b5);}import{UploadcareUI as _0x3c8749}from'./uploadcareui.js';import{UploadcareEditing as _0x3bc22e}from'./uploadcareediting.js';import{UploadcareSource as _0x5690f1}from'./uploadcareconfig.js';import*as _0xe620c4 from'@uploadcare/file-uploader';export class Uploadcare extends _0x2bcf83{static get[_0xf84093(0xa9)](){return[_0x3bc22e,_0x3c8749];}static get[_0xf84093(0xa0)](){const _0x2ea5a5=_0xf84093;return _0x2ea5a5(0xb0);}static get[_0xf84093(0xad)](){return!0x0;}static get[_0xf84093(0x95)](){return!0x0;}constructor(_0x4f4d33){const _0x3bbcee=_0xf84093;super(_0x4f4d33),_0x4f4d33[_0x3bbcee(0xab)][_0x3bbcee(0xa1)](_0x3bbcee(0x9e),[_0x5690f1[_0x3bbcee(0xa6)],_0x5690f1[_0x3bbcee(0xa3)]]),_0xe620c4[_0x3bbcee(0x9f)](_0xe620c4),this[_0x3bbcee(0x98)]();}[_0xf84093(0x98)](){const _0x3ffc12=_0xf84093,_0x1cc3d5=this[_0x3ffc12(0xa7)][_0x3ffc12(0xab)][_0x3ffc12(0xae)](_0x3ffc12(0xa8)),_0x99cbe4=this[_0x3ffc12(0xa7)][_0x3ffc12(0xa5)][_0x3ffc12(0xaa)];_0x1cc3d5&&_0xe620c4[_0x3ffc12(0xb1)](_0x99cbe4,_0x1cc3d5);}}function _0x27af(){const _0x3e0acc=['3206679lxZmGg','Uploadcare','defineLocale','isPremiumPlugin','460726lYWQxl','7003345DhPOtg','_defineLocale','120bEypOZ','6737232aFdVeb','237006FpdCcG','143xlrfsY','4ydNQtR','uploadcare.uploader.sourceList','defineComponents','pluginName','define','13352mMYNhU','URL','3344830GneiQD','locale','Local','editor','uploadcare.locale','requires','contentLanguage','config','77eYdPmR','isOfficialPlugin','get'];_0x27af=function(){return _0x3e0acc;};return _0x27af();}
@@ -6,8 +6,8 @@
6
6
  * @module uploadcare/uploadcarecommand
7
7
  * @publicApi
8
8
  */
9
- import { Command, type Editor } from '@ckeditor/ckeditor5-core';
10
- import { Dialog } from '@ckeditor/ckeditor5-ui';
9
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
+ import { Dialog } from 'ckeditor5/src/ui.js';
11
11
  import { UploadcareEditing } from './uploadcareediting.js';
12
12
  import type { UploadcareSource } from './uploadcareconfig.js';
13
13
  /**
@@ -0,0 +1,23 @@
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 _0x3a2588=_0x3fc3;function _0x3fc3(_0x5448c1,_0x5aa3f6){var _0x28bfec=_0x28bf();return _0x3fc3=function(_0x3fc392,_0x2454e7){_0x3fc392=_0x3fc392-0xaf;var _0x4baf68=_0x28bfec[_0x3fc392];return _0x4baf68;},_0x3fc3(_0x5448c1,_0x5aa3f6);}(function(_0x1e7e8c,_0x15502a){var _0x3ed95d=_0x3fc3,_0x64e2a4=_0x1e7e8c();while(!![]){try{var _0x65e376=parseInt(_0x3ed95d(0xc4))/0x1*(-parseInt(_0x3ed95d(0xb7))/0x2)+-parseInt(_0x3ed95d(0xc2))/0x3*(-parseInt(_0x3ed95d(0xbd))/0x4)+-parseInt(_0x3ed95d(0xc3))/0x5+parseInt(_0x3ed95d(0xb3))/0x6+parseInt(_0x3ed95d(0xc0))/0x7+-parseInt(_0x3ed95d(0xb4))/0x8+-parseInt(_0x3ed95d(0xaf))/0x9*(-parseInt(_0x3ed95d(0xbf))/0xa);if(_0x65e376===_0x15502a)break;else _0x64e2a4['push'](_0x64e2a4['shift']());}catch(_0x16bdcf){_0x64e2a4['push'](_0x64e2a4['shift']());}}}(_0x28bf,0x8d4b1));import{Command as _0x4e4efe}from'ckeditor5/src/core.js';import{Dialog as _0x4e5eab}from'ckeditor5/src/ui.js';import{UploadcareEditing as _0x558ac0}from'./uploadcareediting.js';function _0x28bf(){var _0x3d5de=['1077XiHWkS','3371230GilEwd','332OCNLNJ','_checkEnabled','558apBUzJ','refresh','execute','get','6076992zSTtjh','5739560zEycQB','insertImage','requires','6514gLOche','isEnabled','editor','_controller','destroy','commands','8040kZHeBg','plugins','192510qEwGDm','866376fkOcpl','_editing'];_0x28bf=function(){return _0x3d5de;};return _0x28bf();}import{UploadcareController as _0x24fbe2}from'./ui/uploadcarecontroller.js';export class UploadcareCommand extends _0x4e4efe{[_0x3a2588(0xc1)];[_0x3a2588(0xba)]=null;static get[_0x3a2588(0xb6)](){return[_0x4e5eab,_0x558ac0];}constructor(_0x7264d){var _0x1b8067=_0x3a2588;super(_0x7264d),this[_0x1b8067(0xc1)]=_0x7264d[_0x1b8067(0xbe)][_0x1b8067(0xb2)](_0x558ac0);}[_0x3a2588(0xb0)](){var _0x14567f=_0x3a2588;this[_0x14567f(0xb8)]=this[_0x14567f(0xc5)]();}[_0x3a2588(0xb1)](_0x382fd1){var _0xe6ffde=_0x3a2588;this[_0xe6ffde(0xba)]&&(this[_0xe6ffde(0xba)][_0xe6ffde(0xbb)](),this[_0xe6ffde(0xba)]=null),this[_0xe6ffde(0xba)]=new _0x24fbe2(this[_0xe6ffde(0xb9)],this[_0xe6ffde(0xc1)],_0x382fd1);}[_0x3a2588(0xc5)](){var _0x3ecb82=_0x3a2588;return this[_0x3ecb82(0xb9)][_0x3ecb82(0xbc)][_0x3ecb82(0xb2)](_0x3ecb82(0xb5))[_0x3ecb82(0xb8)];}}
@@ -6,7 +6,7 @@
6
6
  * @module uploadcare/uploadcareconfig
7
7
  * @publicApi
8
8
  */
9
- import type { ArrayOrItem } from '@ckeditor/ckeditor5-utils';
9
+ import type { ArrayOrItem } from 'ckeditor5/src/utils.js';
10
10
  import type { ConfigType } from '@uploadcare/file-uploader';
11
11
  /**
12
12
  * Locale definition type matching Uploadcare `LocaleDefinition` type.
@@ -0,0 +1,23 @@
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(_0x12a77a,_0x19ae05){var _0x59e9ea=_0x48d0,_0x2b6261=_0x12a77a();while(!![]){try{var _0x1f86d7=-parseInt(_0x59e9ea(0x1dd))/0x1*(parseInt(_0x59e9ea(0x1dc))/0x2)+-parseInt(_0x59e9ea(0x1cf))/0x3+-parseInt(_0x59e9ea(0x1cc))/0x4+-parseInt(_0x59e9ea(0x1e0))/0x5*(-parseInt(_0x59e9ea(0x1d6))/0x6)+parseInt(_0x59e9ea(0x1d1))/0x7+parseInt(_0x59e9ea(0x1d2))/0x8*(-parseInt(_0x59e9ea(0x1d5))/0x9)+parseInt(_0x59e9ea(0x1da))/0xa;if(_0x1f86d7===_0x19ae05)break;else _0x2b6261['push'](_0x2b6261['shift']());}catch(_0x433b6a){_0x2b6261['push'](_0x2b6261['shift']());}}}(_0x1775,0xdd3a5));function _0x1775(){var _0x2d2820=['26253wDrlDA','12060CiLdpQ','url','facebook','URL','37627910vTbNQr','Local','10znPDYD','199107VYkcmX','local','gphotos','730xrJbAj','dropbox','Dropbox','OneDrive','1778140XMNOXA','onedrive','GDrive','1622445USNLBk','Facebook','1412411uDJBRE','3760bJqUBl','GPhotos','gdrive'];_0x1775=function(){return _0x2d2820;};return _0x1775();}function _0x48d0(_0x58b2cc,_0xb9ddb){var _0x1775ba=_0x1775();return _0x48d0=function(_0x48d0ef,_0x43f99a){_0x48d0ef=_0x48d0ef-0x1c9;var _0x452bd7=_0x1775ba[_0x48d0ef];return _0x452bd7;},_0x48d0(_0x58b2cc,_0xb9ddb);}export var UploadcareSource;!function(_0x21307){var _0x4a08dd=_0x48d0;_0x21307[_0x4a08dd(0x1db)]=_0x4a08dd(0x1de),_0x21307[_0x4a08dd(0x1d9)]=_0x4a08dd(0x1d7),_0x21307[_0x4a08dd(0x1ca)]=_0x4a08dd(0x1c9),_0x21307[_0x4a08dd(0x1ce)]=_0x4a08dd(0x1d4),_0x21307[_0x4a08dd(0x1d0)]=_0x4a08dd(0x1d8),_0x21307[_0x4a08dd(0x1d3)]=_0x4a08dd(0x1df),_0x21307[_0x4a08dd(0x1cb)]=_0x4a08dd(0x1cd);}(UploadcareSource||(UploadcareSource={}));
@@ -6,8 +6,8 @@
6
6
  * @module uploadcare/uploadcareediting
7
7
  * @publicApi
8
8
  */
9
- import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
10
- import { Dialog } from '@ckeditor/ckeditor5-ui';
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
10
+ import { Dialog } from 'ckeditor5/src/ui.js';
11
11
  import { UploadcareUploadAdapter } from './uploadcareuploadadapter.js';
12
12
  import type { UploaderBlock } from '@uploadcare/file-uploader';
13
13
  /**
@@ -0,0 +1,23 @@
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 _0x4e3a91=_0xe679;(function(_0x52630d,_0x273f83){const _0x8c32c7=_0xe679,_0x248586=_0x52630d();while(!![]){try{const _0x15665a=parseInt(_0x8c32c7(0xbc))/0x1+parseInt(_0x8c32c7(0xb3))/0x2+parseInt(_0x8c32c7(0xa9))/0x3+-parseInt(_0x8c32c7(0xd5))/0x4*(-parseInt(_0x8c32c7(0xd9))/0x5)+-parseInt(_0x8c32c7(0xa3))/0x6+-parseInt(_0x8c32c7(0xbf))/0x7+parseInt(_0x8c32c7(0xd3))/0x8*(parseInt(_0x8c32c7(0xd7))/0x9);if(_0x15665a===_0x273f83)break;else _0x248586['push'](_0x248586['shift']());}catch(_0x3906c8){_0x248586['push'](_0x248586['shift']());}}}(_0x5b94,0xe2f53));function _0xe679(_0x3d406b,_0x1f8edc){const _0x5b9456=_0x5b94();return _0xe679=function(_0xe679be,_0x593ac8){_0xe679be=_0xe679be-0x92;let _0x4847fa=_0x5b9456[_0xe679be];return _0x4847fa;},_0xe679(_0x3d406b,_0x1f8edc);}function _0x5b94(){const _0x4fc4c2=['listenTo','6078714pfUNzo','destroy','configElement','editor','_initConversion','document','3934083ddDIcd','data-uc-image-id','render','_initCtx','schema','replaceImageSource','requires','removeAttribute','isPremiumPlugin','contentLanguage','1751984QTfGsw','join','\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','elementToAttribute','extend','model','closeMax','selection','imageInline','482409FIqNUt','afterInit','view','12589654OGlgMD','imageBlock','iconHrefResolver','add','isRegistered','pluginName','PictureEditing','appendChild','getAttribute','downcast','locale','true','map','uc-config','_initImageProcessingIndicator','input[uploadcare-file-input]','upcast','cleanupImage','fromCharCode','_ctxElement','1330520VxkJBU','for','1624952MYIkkB','uploadcareImageId','36uabBPO','uploadcare.uploader','5eaLhoh','init','getSelectedElement','ucContextId','uploader-','uploadcare.pubkey','get','#uc-icon-arrow-down','uc-upload-ctx-provider','attributeToAttribute','body','ctxElement','isOfficialPlugin','querySelector','execute','insertImage','config','once','_configElement','remove','_initConfig','conversion','commands','uploadcareImageReplace','uploadcare','UploadcareEditing','_initSchema','href','editing'];_0x5b94=function(){return _0x4fc4c2;};return _0x5b94();}import{Plugin as _0x19cb54}from'ckeditor5/src/core.js';import{Dialog as _0x59cdab}from'ckeditor5/src/ui.js';import{createElement as _0x390f43,global as _0x394905,uid as _0x2c6a26}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x653b5e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2e1e8a}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x40fc90}from'./utils/editingutils.js';export class UploadcareEditing extends _0x19cb54{[_0x4e3a91(0x97)]=null;[_0x4e3a91(0xd2)]=null;static get[_0x4e3a91(0xc4)](){const _0x36898d=_0x4e3a91;return _0x36898d(0x9e);}static get[_0x4e3a91(0xaf)](){const _0x3f5f6d=_0x4e3a91;return[_0x3f5f6d(0xc5),_0x2e1e8a,_0x59cdab];}static get[_0x4e3a91(0xe5)](){return!0x0;}static get[_0x4e3a91(0xb1)](){return!0x0;}[_0x4e3a91(0xdc)];get[_0x4e3a91(0xa5)](){const _0xf429dc=_0x4e3a91;return this[_0xf429dc(0x97)];}get[_0x4e3a91(0xe4)](){const _0x579394=_0x4e3a91;return this[_0x579394(0xd2)];}constructor(_0x2de535){const _0x25766a=_0x4e3a91;super(_0x2de535),this[_0x25766a(0xdc)]=_0x2c6a26();}[_0x4e3a91(0xda)](){const _0x3258d0=_0x4e3a91,_0xe5920d=this[_0x3258d0(0xa6)];_0xe5920d[_0x3258d0(0x9b)][_0x3258d0(0xc2)](_0x3258d0(0x9d),new _0x653b5e(_0xe5920d));}[_0x4e3a91(0xbd)](){const _0xacb866=_0x4e3a91;this[_0xacb866(0x9f)](),this[_0xacb866(0xa7)](),this[_0xacb866(0x99)](),this[_0xacb866(0xac)](),this[_0xacb866(0xcd)](),this[_0xacb866(0xa2)](this[_0xacb866(0xa6)],_0xacb866(0xa4),()=>{const _0x647607=_0xacb866;this[_0x647607(0x97)]&&(this[_0x647607(0x97)][_0x647607(0x98)](),this[_0x647607(0x97)]=null),this[_0x647607(0xd2)]&&(this[_0x647607(0xd2)][_0x647607(0x98)](),this[_0x647607(0xd2)]=null);const _0x31fbc7=_0x394905[_0x647607(0xa8)][_0x647607(0x92)](_0x647607(0xce));_0x31fbc7&&_0x31fbc7[_0x647607(0x98)]();}),async function(_0x20b7e2){const _0x44648f=_0x5c0efa([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]),_0x331bca=0x535f8c3a,_0x5a2716=0x53580c72^_0x331bca,_0xdaf0e0=window[_0x5c0efa([0x44,0x61,0x74,0x65])][_0x5c0efa([0x6e,0x6f,0x77])](),_0x2ef96b=_0x20b7e2[_0x5c0efa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f5066=new window[(_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a25d7=>{_0x2ef96b[_0x5c0efa([0x6f,0x6e,0x63,0x65])](_0x5c0efa([0x72,0x65,0x61,0x64,0x79]),_0x1a25d7);}),_0x1f3d2e={[_0x5c0efa([0x6b,0x74,0x79])]:_0x5c0efa([0x45,0x43]),[_0x5c0efa([0x75,0x73,0x65])]:_0x5c0efa([0x73,0x69,0x67]),[_0x5c0efa([0x63,0x72,0x76])]:_0x5c0efa([0x50,0x2d,0x32,0x35,0x36]),[_0x5c0efa([0x78])]:_0x5c0efa([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]),[_0x5c0efa([0x79])]:_0x5c0efa([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]),[_0x5c0efa([0x61,0x6c,0x67])]:_0x5c0efa([0x45,0x53,0x32,0x35,0x36])},_0x7e5b=_0x2ef96b[_0x5c0efa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c0efa([0x67,0x65,0x74])](_0x5c0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x537932(){let _0x396295,_0xd9f764=null,_0x4e3afb=null;try{if(_0x7e5b==_0x5c0efa([0x47,0x50,0x4c]))return _0x5c0efa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x396295=_0x49c770(),!_0x396295)return _0x5c0efa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x396295[_0x5c0efa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e3afb=_0x14e2cf(_0x396295[_0x5c0efa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x396295[_0x5c0efa([0x6a,0x74,0x69])])),await _0x2080f0()?_0x145d7c()?_0x3dc6f7()?_0x5c0efa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5514c8()?(_0x396295[_0x5c0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c0efa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd9f764=_0x246ffb(_0x5c0efa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4aa573()):_0x5c0efa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c0efa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c0efa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c0efa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3dc6f7(){const _0x528275=[_0x5c0efa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c0efa([0x74,0x72,0x69,0x61,0x6c])][_0x5c0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x396295[_0x5c0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdaf0e0/0x3e8:0xe10*_0x5a2716;return _0x396295[_0x5c0efa([0x65,0x78,0x70])]<_0x528275;}function _0x145d7c(){const _0x336a06=_0x396295[_0x5c0efa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x336a06&&(!!_0x336a06[_0x5c0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0efa([0x2a]))||!!_0x336a06[_0x5c0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0efa([0x55,0x50,0x4c,0x43])));}function _0x5514c8(){const _0x9cf5af=_0xe679,_0x5d73eb=_0x396295[_0x5c0efa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d73eb||0x0==_0x5d73eb[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3160f7}=new URL(window[_0x5c0efa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x9cf5af(0xa0)]);if(_0x5d73eb[_0x5c0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3160f7))return!0x0;const _0x4685ab=_0x3160f7[_0x5c0efa([0x73,0x70,0x6c,0x69,0x74])](_0x5c0efa([0x2e]));return _0x5d73eb[_0x5c0efa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cf6a9=>_0x5cf6a9[_0x5c0efa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0efa([0x2a])))[_0x5c0efa([0x6d,0x61,0x70])](_0x70e137=>_0x70e137[_0x5c0efa([0x73,0x70,0x6c,0x69,0x74])](_0x5c0efa([0x2e])))[_0x5c0efa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c557c=>_0x2c557c[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4685ab[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c0efa([0x6d,0x61,0x70])](_0x584594=>Array(_0x4685ab[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x584594[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c0efa([0x66,0x69,0x6c,0x6c])](_0x584594[0x0]===_0x5c0efa([0x2a])?_0x5c0efa([0x2a]):'')[_0x5c0efa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x584594))[_0x5c0efa([0x73,0x6f,0x6d,0x65])](_0x1187e2=>_0x4685ab[_0x5c0efa([0x65,0x76,0x65,0x72,0x79])]((_0x2b33e3,_0x1d6f09)=>_0x1187e2[_0x1d6f09]===_0x2b33e3||_0x1187e2[_0x1d6f09]===_0x5c0efa([0x2a])));}function _0x4aa573(){return _0xd9f764&&_0x4e3afb?new window[(_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x79045d,_0x100342)=>{_0xd9f764[_0x5c0efa([0x74,0x68,0x65,0x6e])](_0x79045d,_0x100342),_0x4e3afb[_0x5c0efa([0x74,0x68,0x65,0x6e])](_0x52162f=>{_0x52162f!=_0x5c0efa([0x56,0x61,0x6c,0x69,0x64])&&_0x79045d(_0x52162f);},_0x100342);}):_0xd9f764||_0x4e3afb||_0x5c0efa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x14e2cf(_0x462def,_0x4b3d64){return new window[(_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x103461=>{if(_0x5a8f4e())return _0x103461(_0x5c0efa([0x56,0x61,0x6c,0x69,0x64]));_0x4a1a33(),_0x2ef96b[_0x5c0efa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c0efa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52d3ca=!0x1;const _0x1f4aeb=_0x2c6a26();function _0x4a0a15(_0x1c2e32){return!!_0x1c2e32&&(typeof _0x1c2e32===_0x5c0efa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c2e32===_0x5c0efa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c2e32[_0x5c0efa([0x74,0x68,0x65,0x6e])]===_0x5c0efa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c2e32[_0x5c0efa([0x63,0x61,0x74,0x63,0x68])]===_0x5c0efa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fb037(_0x31d969){_0xedd60e(_0x31d969)[_0x5c0efa([0x74,0x68,0x65,0x6e])](_0x260a12=>{if(!_0x260a12||_0x260a12[_0x5c0efa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c0efa([0x6f,0x6b]))return _0x5c0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x437460(_0x1dc8ae(_0x1f4aeb+_0x4b3d64))!=_0x260a12[_0x5c0efa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c0efa([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c0efa([0x74,0x68,0x65,0x6e])](_0x289c40=>(_0x440099(),_0x289c40),()=>{const _0x4b2eac=_0x4f7095();return null==_0x4b2eac?(_0x440099(),_0x5c0efa([0x56,0x61,0x6c,0x69,0x64])):_0x5c0efa(_0xdaf0e0-_0x4b2eac>(0x7753083a^_0x331bca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c0efa([0x74,0x68,0x65,0x6e])](_0x103461)[_0x5c0efa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x103461(_0x5c0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a808b=0x536962ba^_0x331bca;function _0x440099(){const _0x13fde8=_0x5c0efa([0x6c,0x6c,0x63,0x74,0x2d])+_0x437460(_0x1dc8ae(_0x462def)),_0x15ffc5=_0x3e2c22(_0x437460(window[_0x5c0efa([0x4d,0x61,0x74,0x68])][_0x5c0efa([0x63,0x65,0x69,0x6c])](_0xdaf0e0/_0x4a808b)));window[_0x5c0efa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c0efa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13fde8,_0x15ffc5);}function _0x4f7095(){const _0x3311ef=_0x5c0efa([0x6c,0x6c,0x63,0x74,0x2d])+_0x437460(_0x1dc8ae(_0x462def)),_0x4d19e7=window[_0x5c0efa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c0efa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3311ef);return _0x4d19e7?window[_0x5c0efa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e2c22(_0x4d19e7),0x10)*_0x4a808b:null;}function _0xedd60e(_0x17e537){return new window[(_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bb7ba,_0x650f85)=>{_0x17e537[_0x5c0efa([0x74,0x68,0x65,0x6e])](_0x3bb7ba,_0x650f85),window[_0x5c0efa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x650f85,0x535e58fa^_0x331bca);});}}_0x2ef96b[_0x5c0efa([0x6f,0x6e])](_0x5c0efa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4cdfb6,_0x5d4e2e)=>{if(_0x5d4e2e[0x0]!=_0x462def)return _0x103461(_0x5c0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d4e2e[0x1]={..._0x5d4e2e[0x1],[_0x5c0efa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f4aeb};},{[_0x5c0efa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c0efa([0x68,0x69,0x67,0x68])}),_0x2ef96b[_0x5c0efa([0x6f,0x6e])](_0x5c0efa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8498d9=>{_0x4a0a15(_0x8498d9[_0x5c0efa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52d3ca=!0x0,_0x2fb037(_0x8498d9[_0x5c0efa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c0efa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c0efa([0x6c,0x6f,0x77])}),_0x3f5066[_0x5c0efa([0x74,0x68,0x65,0x6e])](()=>{_0x52d3ca||_0x103461(_0x5c0efa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a8f4e(){return _0x2ef96b[_0x5c0efa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c0efa([0x76,0x69,0x65,0x77])][_0x5c0efa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c0efa([0x61,0x75,0x74,0x6f]);}function _0x4a1a33(){_0x2ef96b[_0x5c0efa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c0efa([0x76,0x69,0x65,0x77])][_0x5c0efa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c0efa([0x61,0x75,0x74,0x6f]);}}function _0x246ffb(_0x3a3a68){const _0x5393c9=[new window[(_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17de7f=>setTimeout(_0x17de7f,0x5356b2f6^_0x331bca)),_0x3f5066[_0x5c0efa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c8053=>{let _0x19bf05=0x0;_0x2ef96b[_0x5c0efa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c0efa([0x6f,0x6e])](_0x5c0efa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26c8e9,_0x3ae5f7)=>{_0x3ae5f7[0x0][_0x5c0efa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19bf05++,_0x19bf05==(0x535f89d2^_0x331bca)&&(_0x4c8053(),_0x26c8e9[_0x5c0efa([0x6f,0x66,0x66])]());});}))];return window[_0x5c0efa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c0efa([0x72,0x61,0x63,0x65])](_0x5393c9)[_0x5c0efa([0x74,0x68,0x65,0x6e])](()=>_0x3a3a68);}async function _0x348e4a(){await _0x3f5066,_0x2ef96b[_0x5c0efa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c0efa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x12eac5,_0x2ef96b[_0x5c0efa([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c0efa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x12eac5,_0x2ef96b[_0x5c0efa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c0efa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45a997(_0xcd04df){const _0x1e4b3c=_0x5b2792();_0x2ef96b[_0x1e4b3c]=_0x5c0efa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xcd04df,_0xcd04df!=_0x5c0efa([0x56,0x61,0x6c,0x69,0x64])&&_0x348e4a();}function _0x5b2792(){const _0x59c4ff=window[_0x5c0efa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c0efa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c0efa([0x6e,0x6f,0x77])]())[_0x5c0efa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c0efa([0x2e]),'');let _0x239f8a=_0x5c0efa([0x68]);for(let _0x4104e2=0x0;_0x4104e2<_0x59c4ff[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4104e2+=0x2){let _0x33b92a=window[_0x5c0efa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59c4ff[_0x5c0efa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4104e2,_0x4104e2+0x2));_0x33b92a>=_0x44648f[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x33b92a-=_0x44648f[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x239f8a+=_0x44648f[_0x33b92a];}return _0x239f8a;}function _0x49c770(){const _0x38dd07=_0x7e5b[_0x5c0efa([0x73,0x70,0x6c,0x69,0x74])](_0x5c0efa([0x2e]));if(0x3!=_0x38dd07[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3489e3(_0x38dd07[0x1]);function _0x3489e3(_0x594acf){const _0x341cd6=_0x52eae6(_0x594acf);return _0x341cd6&&_0x4fcd7f()?_0x341cd6:null;function _0x4fcd7f(){const _0x15122c=_0x341cd6[_0x5c0efa([0x6a,0x74,0x69])],_0x50152d=window[_0x5c0efa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15122c[_0x5c0efa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15122c[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5133d2={..._0x341cd6,[_0x5c0efa([0x6a,0x74,0x69])]:_0x15122c[_0x5c0efa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15122c[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5133d2[_0x5c0efa([0x76,0x63])],_0x1dc8ae(_0x5133d2)==_0x50152d;}}}async function _0x2080f0(){let _0x19e74a=!0x0;try{const _0x54626c=_0x7e5b[_0x5c0efa([0x73,0x70,0x6c,0x69,0x74])](_0x5c0efa([0x2e])),[_0x43d75f,_0x545eff,_0x48a3bc]=_0x54626c;return _0x4f8dde(_0x43d75f),await _0x231bb7(_0x43d75f,_0x545eff,_0x48a3bc),_0x19e74a;}catch{return!0x1;}function _0x4f8dde(_0x1aeeaa){const _0x16b2a4=_0x52eae6(_0x1aeeaa);_0x16b2a4&&_0x16b2a4[_0x5c0efa([0x61,0x6c,0x67])]==_0x5c0efa([0x45,0x53,0x32,0x35,0x36])||(_0x19e74a=!0x1);}async function _0x231bb7(_0x2570b9,_0x368756,_0x2ef4e0){const _0x29911e=window[_0x5c0efa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c0efa([0x66,0x72,0x6f,0x6d])](_0x11aab5(_0x2ef4e0),_0x24300e=>_0x24300e[_0x5c0efa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dd559=new window[(_0x5c0efa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c0efa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2570b9+_0x5c0efa([0x2e])+_0x368756),_0x421397=window[_0x5c0efa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c0efa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x421397)return;const _0x3dc008=await _0x421397[_0x5c0efa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c0efa([0x6a,0x77,0x6b]),_0x1f3d2e,{[_0x5c0efa([0x6e,0x61,0x6d,0x65])]:_0x5c0efa([0x45,0x43,0x44,0x53,0x41]),[_0x5c0efa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c0efa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c0efa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x421397[_0x5c0efa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c0efa([0x6e,0x61,0x6d,0x65])]:_0x5c0efa([0x45,0x43,0x44,0x53,0x41]),[_0x5c0efa([0x68,0x61,0x73,0x68])]:{[_0x5c0efa([0x6e,0x61,0x6d,0x65])]:_0x5c0efa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3dc008,_0x29911e,_0x4dd559)||(_0x19e74a=!0x1);}}function _0x52eae6(_0x1d42f6){return _0x1d42f6[_0x5c0efa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c0efa([0x65,0x79]))?JSON[_0x5c0efa([0x70,0x61,0x72,0x73,0x65])](_0x11aab5(_0x1d42f6)):null;}function _0x11aab5(_0x4ab53c){return window[_0x5c0efa([0x61,0x74,0x6f,0x62])](_0x4ab53c[_0x5c0efa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c0efa([0x2b]))[_0x5c0efa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c0efa([0x2f])));}function _0x1dc8ae(_0x1142a0){let _0x4b037a=0x1505;function _0x2a2460(_0x1b03a6){for(let _0x441575=0x0;_0x441575<_0x1b03a6[_0x5c0efa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x441575++){const _0x53772e=_0x1b03a6[_0x5c0efa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x441575);_0x4b037a=(_0x4b037a<<0x5)+_0x4b037a+_0x53772e,_0x4b037a&=_0x4b037a;}}function _0x4cd7ad(_0x5f4bd4){Array[_0x5c0efa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f4bd4)?_0x5f4bd4[_0x5c0efa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4cd7ad):_0x5f4bd4&&typeof _0x5f4bd4==_0x5c0efa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c0efa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f4bd4)[_0x5c0efa([0x73,0x6f,0x72,0x74])]()[_0x5c0efa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf78d7d,_0x259ac4])=>{_0x2a2460(_0xf78d7d),_0x4cd7ad(_0x259ac4);}):_0x2a2460(window[_0x5c0efa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f4bd4));}return _0x4cd7ad(_0x1142a0),_0x4b037a>>>0x0;}function _0x437460(_0x2eec72){return _0x2eec72[_0x5c0efa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c0efa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c0efa([0x30]));}function _0x3e2c22(_0x5a86d4){return _0x5a86d4[_0x5c0efa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c0efa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c0efa([0x6a,0x6f,0x69,0x6e])]('');}function _0x12eac5(){}function _0x5c0efa(_0x39ba6f){const _0x38d4f7=_0xe679;return _0x39ba6f[_0x38d4f7(0xcb)](_0x2330f7=>String[_0x38d4f7(0xd1)](_0x2330f7))[_0x38d4f7(0xb4)]('');}_0x45a997(await _0x537932());}(this);}[_0x4e3a91(0x9f)](){const _0x3ca042=_0x4e3a91,_0x8cee34=this[_0x3ca042(0xa6)][_0x3ca042(0xb8)][_0x3ca042(0xad)];_0x8cee34[_0x3ca042(0xc3)](_0x3ca042(0xc0))&&_0x8cee34[_0x3ca042(0xb7)](_0x3ca042(0xc0),{'allowAttributes':[_0x3ca042(0xd6)]}),_0x8cee34[_0x3ca042(0xc3)](_0x3ca042(0xbb))&&_0x8cee34[_0x3ca042(0xb7)](_0x3ca042(0xbb),{'allowAttributes':[_0x3ca042(0xd6)]});}[_0x4e3a91(0xa7)](){const _0x2c934a=_0x4e3a91,_0x3869f0=this[_0x2c934a(0xa6)];_0x3869f0[_0x2c934a(0x9a)][_0x2c934a(0xd4)](_0x2c934a(0xc8))[_0x2c934a(0xe2)]({'model':_0x2c934a(0xd6),'view':_0x2c934a(0xaa)}),_0x3869f0[_0x2c934a(0x9a)][_0x2c934a(0xd4)](_0x2c934a(0xcf))[_0x2c934a(0xb6)]({'model':{'key':_0x2c934a(0xd6),'value':_0x5d9351=>_0x5d9351[_0x2c934a(0xc7)](_0x2c934a(0xaa))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57e05c=_0x3869f0[_0x2c934a(0x9b)][_0x2c934a(0xdf)](_0x2c934a(0xae));_0x57e05c&&this[_0x2c934a(0xa2)](_0x57e05c,_0x2c934a(0xd0),(_0x3bd95e,[_0x143831,_0x4e5934])=>{const _0x1fb2ca=_0x2c934a;_0x143831[_0x1fb2ca(0xb0)](_0x1fb2ca(0xd6),_0x4e5934);});}[_0x4e3a91(0x99)](){const _0x3f8e5f=_0x4e3a91,_0x1f288f=this[_0x3f8e5f(0xa6)][_0x3f8e5f(0x95)][_0x3f8e5f(0xdf)](_0x3f8e5f(0xd8))||{},_0x414c4d=this[_0x3f8e5f(0xa6)][_0x3f8e5f(0x95)][_0x3f8e5f(0xdf)](_0x3f8e5f(0xde))||'';this[_0x3f8e5f(0x97)]=_0x390f43(_0x394905[_0x3f8e5f(0xa8)],_0x3f8e5f(0xcc),{..._0x1f288f,'pubkey':_0x414c4d,'ctx-name':_0x3f8e5f(0xdd)+this[_0x3f8e5f(0xdc)],'sourceList':'','imgOnly':_0x3f8e5f(0xca),'removeCopyright':_0x3f8e5f(0xca),'localeName':this[_0x3f8e5f(0xa6)][_0x3f8e5f(0xc9)][_0x3f8e5f(0xb2)],'externalSourcesEmbedCss':_0x3f8e5f(0xb5)}),this[_0x3f8e5f(0x97)][_0x3f8e5f(0xc1)]=_0x485008=>{const _0x194951=_0x3f8e5f;if(_0x194951(0xb9)==_0x485008)return _0x194951(0xe0);},_0x394905[_0x3f8e5f(0xa8)][_0x3f8e5f(0xe3)][_0x3f8e5f(0xc6)](this[_0x3f8e5f(0x97)]);}[_0x4e3a91(0xac)](){const _0x191575=_0x4e3a91;this[_0x191575(0xd2)]=_0x390f43(_0x394905[_0x191575(0xa8)],_0x191575(0xe1),{'ctx-name':_0x191575(0xdd)+this[_0x191575(0xdc)]}),_0x394905[_0x191575(0xa8)][_0x191575(0xe3)][_0x191575(0xc6)](this[_0x191575(0xd2)]);}[_0x4e3a91(0xcd)](){const _0x146afe=_0x4e3a91,_0x2232fd=this[_0x146afe(0xa6)][_0x146afe(0x9b)][_0x146afe(0xdf)](_0x146afe(0x94));_0x2232fd&&this[_0x146afe(0xa2)](_0x2232fd,_0x146afe(0x93),()=>{const _0x32accc=_0x146afe,_0x5cb255=this[_0x32accc(0xa6)][_0x32accc(0xb8)][_0x32accc(0xa8)][_0x32accc(0xba)][_0x32accc(0xdb)]();_0x5cb255&&_0x5cb255[_0x32accc(0xc7)](_0x32accc(0xd6))&&this[_0x32accc(0xa6)][_0x32accc(0xa1)][_0x32accc(0xbe)][_0x32accc(0x96)](_0x32accc(0xab),()=>{const _0x1c06ef=_0x32accc;_0x40fc90(this[_0x1c06ef(0xa6)],_0x5cb255);});});const _0x3ca785=this[_0x146afe(0xa6)][_0x146afe(0x9b)][_0x146afe(0xdf)](_0x146afe(0x9c));_0x3ca785&&this[_0x146afe(0xa2)](_0x3ca785,_0x146afe(0x93),()=>{const _0x4cf79c=_0x146afe,_0x46504f=this[_0x4cf79c(0xa6)][_0x4cf79c(0xb8)][_0x4cf79c(0xa8)][_0x4cf79c(0xba)][_0x4cf79c(0xdb)]();_0x46504f&&_0x46504f[_0x4cf79c(0xc7)](_0x4cf79c(0xd6))&&this[_0x4cf79c(0xa6)][_0x4cf79c(0xa1)][_0x4cf79c(0xbe)][_0x4cf79c(0x96)](_0x4cf79c(0xab),()=>{const _0x375cb=_0x4cf79c;_0x40fc90(this[_0x375cb(0xa6)],_0x46504f);});});}}
@@ -2,12 +2,12 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import { type Dialog } from '@ckeditor/ckeditor5-ui';
6
- import type { Editor } from '@ckeditor/ckeditor5-core';
7
- import type { ModelElement } from '@ckeditor/ckeditor5-engine';
5
+ import { type Dialog } from 'ckeditor5/src/ui.js';
6
+ import type { Editor } from 'ckeditor5/src/core.js';
7
+ import type { ModelElement } from 'ckeditor5/src/engine.js';
8
8
  declare const UploadcareImageEditController_base: {
9
- new (): import("@ckeditor/ckeditor5-utils").Observable;
10
- prototype: import("@ckeditor/ckeditor5-utils").Observable;
9
+ new (): import("ckeditor5/src/utils.js").Observable;
10
+ prototype: import("ckeditor5/src/utils.js").Observable;
11
11
  };
12
12
  /**
13
13
  * Controller for the Image Edit Dialog.
@@ -0,0 +1,24 @@
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 _0xf4f596,ObservableMixin as _0x199a79}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x12a993}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x13dcf8}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x54fb97}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x20ccf3}from'../../utils/uploadutils.js';import{getImageUrls as _0x2a7a36,getImageDimension as _0x22606f}from'../../utils/editingutils.js';import{isAncestor as _0x14be79}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x199a79(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x528c54,_0x178313,_0x3d6ec8){super(),this['_editor']=_0x528c54,this['_dialog']=_0x178313,this['_imageElement']=_0x3d6ec8,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 _0x28c42a=this['_imageElement'],_0x11e429=_0x28c42a['getAttribute']('uploadcareImageId'),_0x569f9a=_0x28c42a['getAttribute']('src');if(_0x11e429)await this['_loadImageInfo'](_0x11e429,_0x569f9a);else{if(this['_imageCache']['has'](_0x569f9a)){const _0xdb21c2=this['_imageCache']['get'](_0x569f9a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xdb21c2['url'],this['imageDimension']=_0xdb21c2['dimension'],this['imageId']=_0xdb21c2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x298b2c}=this['_editor'],t=_0x298b2c['t'],_0x4695aa=new _0x54fb97(_0x298b2c,this['imageStatus'],this['_attributes']);_0x4695aa['bind']('status')['to'](this,'imageStatus'),_0x4695aa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4695aa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4695aa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4695aa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x13dcf8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4695aa,'position':_0x12a993['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4695aa['focus']();},'onHide':()=>{_0x4695aa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4eda3d=>!_0x14be79(_0x4eda3d,_0x4695aa['element'])}});}['_loadImageInfo'](_0x34aca9,_0xbc03ab){return _0x20ccf3['getInfo'](_0x34aca9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x193415=>{const {width:_0x47100e,height:_0x3e7730}=_0x193415['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbc03ab,this['imageDimension']={'width':_0x47100e,'height':_0x3e7730},this['imageId']=_0x34aca9;})['catch'](_0x5eb423=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5eb423['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x335f0c,_0xb7afe4){return this['_getImageAsFile'](_0x335f0c)['then'](_0x380239=>_0x20ccf3['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':_0xb7afe4['signal'],'file':_0x380239,'onProgress':_0x39ea2e=>{_0x39ea2e&&_0x39ea2e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x39ea2e['value']));}}))['then'](_0x32e857=>{const {width:_0x360395,height:_0x254f03}=_0x32e857['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32e857['cdnUrl'],this['imageDimension']={'width':_0x360395,'height':_0x254f03},this['imageId']=_0x32e857['uuid'],this['imageUploadProgress']=null;const _0x6840dd=_0x335f0c['getAttribute']('src');this['_imageCache']['set'](_0x6840dd,{'id':_0x32e857['uuid'],'url':_0x32e857['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2b7041=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2b7041['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x46aa72,_0x219a3d){_0x46aa72['on']('apply',(_0x1caf0f,_0x1a2e6b)=>{this['_replaceImage'](_0x219a3d,_0x1a2e6b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x46aa72['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x46aa72['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xe0d4b7,_0x3a0403,_0x32a242){const _0x388c2e=this['_editor'],{width:_0x5ddfa5,height:_0x232bec}=_0x22606f(_0x3a0403,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x44b6ec,imageSources:_0x5645ad}=_0x2a7a36(_0x3a0403,_0x5ddfa5);_0x388c2e['model']['change'](_0x5c0b14=>{if('$graveyard'===_0xe0d4b7['root']['rootName']){_0x388c2e['execute']('insertImage',{'imageType':_0xe0d4b7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xe0d4b7['getAttributes']()),'uploadcareImageId':_0x32a242,'src':_0x44b6ec,'sources':_0x5645ad,'width':_0x5ddfa5,'height':_0x232bec}});const _0xde8486=_0xe0d4b7['getChildren']();_0xe0d4b7=_0x388c2e['model']['document']['selection']['getSelectedElement']();for(const _0x5560cc of _0xde8486)_0x5c0b14['append'](_0x5c0b14['cloneElement'](_0x5560cc),_0xe0d4b7);}else _0x5c0b14['setSelection'](_0xe0d4b7,'on'),_0x388c2e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xe0d4b7['getAttributes']()),'uploadcareImageId':_0x32a242,'src':_0x44b6ec,'sources':_0x5645ad,'width':_0x5ddfa5,'height':_0x232bec},_0xe0d4b7);_0x5c0b14['setSelection'](_0xe0d4b7,'on');});}async['_getImageAsFile'](_0x54b91d){const _0x5ca923=_0xf4f596['window'],_0xd1ddf6=_0xf4f596['document']['location']['href'],_0x4e929a=new _0x5ca923['URL'](_0x54b91d['getAttribute']('src'),_0xd1ddf6);if('data:'===_0x4e929a['protocol']){const _0x122bf1=_0x4e929a['href']['split'](','),_0x2f90ef=_0x122bf1[0x0]['match'](/:(.*?);/)[0x1],_0x1c6820=_0x2f90ef['split']('/')[0x1],_0x3bbee0=_0x5ca923['atob'](_0x122bf1[_0x122bf1['length']-0x1]);let _0x3a8d17=_0x3bbee0['length'];const _0x41e491=new _0x5ca923['Uint8Array'](_0x3a8d17);for(;_0x3a8d17--;)_0x41e491[_0x3a8d17]=_0x3bbee0['charCodeAt'](_0x3a8d17);return new _0x5ca923['File']([_0x41e491],'image.'+_0x1c6820,{'type':_0x2f90ef});}const _0x1ee07f=_0x4e929a['href']['split']('/'),_0x2aa555=_0x1ee07f[_0x1ee07f['length']-0x1],_0x447f67=_0x2aa555['split']('.')[0x1];return _0x5ca923['fetch'](_0x4e929a['href'])['then'](_0x1e82b1=>_0x1e82b1['clone']()['blob']())['then'](_0x142efd=>new _0x5ca923['File']([_0x142efd],_0x2aa555,{'type':'image/'+_0x447f67}));}}
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformeditingview
7
7
  */
8
- import { type Locale } from '@ckeditor/ckeditor5-utils';
9
- import { View } from '@ckeditor/ckeditor5-ui';
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
10
  import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
11
11
  /**
12
12
  * A class representing the form editing view of the Uploadcare image edit feature.
@@ -0,0 +1,23 @@
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 _0x10a6(){const _0x344f7a=['10932OKWcOF','3SdAOLa','4526982ynDLPh','614584Hltskx','209204QTVQSE','imageSrc','1253505XtiIbp','ck-uploadcare-theme','setTemplate','uc-light','set','bindTemplate','48915CzEiDc','image-edit','5261443EmUoEa','uc-cloud-image-editor','260SNUXLk','63LCNZEG','512DMBYUC'];_0x10a6=function(){return _0x344f7a;};return _0x10a6();}function _0x3c15(_0x94961f,_0x19e909){const _0x10a683=_0x10a6();return _0x3c15=function(_0x3c152f,_0x34dc0f){_0x3c152f=_0x3c152f-0x1b2;let _0x45fd8f=_0x10a683[_0x3c152f];return _0x45fd8f;},_0x3c15(_0x94961f,_0x19e909);}(function(_0x85c148,_0x172422){const _0x48d7b6=_0x3c15,_0x11e725=_0x85c148();while(!![]){try{const _0x560ef8=-parseInt(_0x48d7b6(0x1ba))/0x1*(-parseInt(_0x48d7b6(0x1bd))/0x2)+-parseInt(_0x48d7b6(0x1b9))/0x3*(parseInt(_0x48d7b6(0x1b8))/0x4)+-parseInt(_0x48d7b6(0x1bf))/0x5+parseInt(_0x48d7b6(0x1bb))/0x6+parseInt(_0x48d7b6(0x1b7))/0x7*(parseInt(_0x48d7b6(0x1bc))/0x8)+-parseInt(_0x48d7b6(0x1b2))/0x9*(parseInt(_0x48d7b6(0x1b6))/0xa)+-parseInt(_0x48d7b6(0x1b4))/0xb;if(_0x560ef8===_0x172422)break;else _0x11e725['push'](_0x11e725['shift']());}catch(_0x2cc7ec){_0x11e725['push'](_0x11e725['shift']());}}}(_0x10a6,0x6742a));import{View as _0x4a8c4d}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x4a8c4d{constructor(_0x36b834,_0x5b52e5){const _0x461c58=_0x3c15;super(_0x36b834);const _0x856343=this[_0x461c58(0x1c4)];this[_0x461c58(0x1c3)](_0x461c58(0x1be),''),this[_0x461c58(0x1c1)]({'tag':_0x461c58(0x1b5),'attributes':{..._0x5b52e5,'class':[_0x461c58(0x1c2),_0x461c58(0x1c0)],'ctx-name':_0x461c58(0x1b3),'cdn-url':_0x856343['to'](_0x461c58(0x1be))}});}}
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import { View } from '@ckeditor/ckeditor5-ui';
6
- import type { Locale } from '@ckeditor/ckeditor5-utils';
5
+ import { View } from 'ckeditor5/src/ui.js';
6
+ import type { Locale } from 'ckeditor5/src/utils.js';
7
7
  import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
8
8
  /**
9
9
  * A class representing the form error view of the Uploadcare image edit feature.
@@ -0,0 +1,23 @@
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 _0x55ed62}from'ckeditor5/src/icons.js';import{ButtonView as _0x3983f8,IconView as _0x5072e5,View as _0x21d067}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x21d067{constructor(_0x4b2841){super(_0x4b2841);const t=_0x4b2841['t'];this['set']('errorType',null);const _0x8c5b3f=new _0x3983f8(_0x4b2841);_0x8c5b3f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x8c5b3f['withText']=!0x0,_0x8c5b3f['class']='ck-button-action',_0x8c5b3f['on']('execute',()=>{this['fire']('retry');}),_0x8c5b3f['bind']('isVisible')['to'](this,'errorType',_0x53b579=>'NotFound'!==_0x53b579);const _0x376db2=new _0x5072e5();_0x376db2['content']=_0x55ed62,_0x376db2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x17129e=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':[_0x376db2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x17129e['to']('errorType',_0x2dbae2=>t('NotFound'!==_0x2dbae2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x8c5b3f]},{'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'}]}]}]});}}
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformloadingview
7
7
  */
8
- import { type Locale } from '@ckeditor/ckeditor5-utils';
9
- import { View } from '@ckeditor/ckeditor5-ui';
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
10
  /**
11
11
  * A class representing the form loading view of the Uploadcare image edit feature.
12
12
  */
@@ -0,0 +1,23 @@
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 _0x206fd4,View as _0x437930}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x437930{constructor(_0x5f37b8){super(_0x5f37b8);const t=_0x5f37b8['t'],_0x32fc26=this['bindTemplate'],_0xed783f=new _0x206fd4();_0xed783f['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':[_0xed783f,{'text':_0x32fc26['to']('imageUploadProgress',_0x12e6db=>t('Loading\x20image...')+'\x20('+(_0x12e6db||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'}]}]}]});}}
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformview
7
7
  */
8
- import { type Locale } from '@ckeditor/ckeditor5-utils';
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
9
  import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
10
10
  import { DialogFocusManagerView } from '../../utils/dialogfocusmanagerview.js';
11
11
  import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
@@ -0,0 +1,23 @@
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 _0x49be90=_0x2b8c;(function(_0x278169,_0x5011f3){const _0xc24d89=_0x2b8c,_0x8137f=_0x278169();while(!![]){try{const _0x3b3aac=parseInt(_0xc24d89(0x17a))/0x1*(-parseInt(_0xc24d89(0x176))/0x2)+parseInt(_0xc24d89(0x1a2))/0x3*(-parseInt(_0xc24d89(0x16e))/0x4)+parseInt(_0xc24d89(0x194))/0x5+-parseInt(_0xc24d89(0x175))/0x6*(-parseInt(_0xc24d89(0x17b))/0x7)+-parseInt(_0xc24d89(0x188))/0x8+parseInt(_0xc24d89(0x16d))/0x9*(parseInt(_0xc24d89(0x193))/0xa)+parseInt(_0xc24d89(0x190))/0xb;if(_0x3b3aac===_0x5011f3)break;else _0x8137f['push'](_0x8137f['shift']());}catch(_0x1669e5){_0x8137f['push'](_0x8137f['shift']());}}}(_0x4aed,0xd5a78));import{View as _0x42a67d}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x2b75c7}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x48c2aa}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x184afc}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5ca752}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5ca752{[_0x49be90(0x18a)];[_0x49be90(0x180)];[_0x49be90(0x19c)];[_0x49be90(0x184)];[_0x49be90(0x19b)];constructor(_0x435f83,_0x584347,_0x2ec962){const _0x5b2952=_0x49be90;super(_0x435f83),this[_0x5b2952(0x18a)]=this[_0x5b2952(0x185)](),this[_0x5b2952(0x180)]=new _0x2b75c7(_0x435f83),this[_0x5b2952(0x19c)]=new _0x48c2aa(_0x435f83),this[_0x5b2952(0x184)]=new _0x184afc(_0x435f83,_0x2ec962),this[_0x5b2952(0x19b)]=new _0x42a67d(_0x435f83),this[_0x5b2952(0x19b)][_0x5b2952(0x189)](this[_0x5b2952(0x178)]()),this[_0x5b2952(0x181)](_0x5b2952(0x198),_0x584347),this[_0x5b2952(0x189)]({'tag':_0x5b2952(0x174),'attributes':{'class':['ck',_0x5b2952(0x18b),_0x5b2952(0x199)],'tabindex':'-1'},'children':this[_0x5b2952(0x18a)]}),this[_0x5b2952(0x16b)](),this[_0x5b2952(0x177)](_0x5b2952(0x191),()=>{const _0x585ae0=_0x5b2952;this[_0x585ae0(0x18e)](this[_0x585ae0(0x192)],_0x4b80da=>{const _0x4b58ae=_0x585ae0;this[_0x4b58ae(0x1a0)](_0x4b80da);});}),this['on'](_0x5b2952(0x18f),()=>{const _0x42ff38=_0x5b2952;this[_0x42ff38(0x16b)]();}),this[_0x5b2952(0x17f)]();}[_0x49be90(0x187)](){const _0x5a38fb=_0x49be90;this[_0x5a38fb(0x192)][_0x5a38fb(0x187)]();}[_0x49be90(0x16b)](){const _0x1e0239=_0x49be90;switch(this[_0x1e0239(0x18a)][_0x1e0239(0x18d)](),this[_0x1e0239(0x198)]){case _0x1e0239(0x17c):this[_0x1e0239(0x18a)][_0x1e0239(0x173)](this[_0x1e0239(0x180)]);break;case _0x1e0239(0x16c):this[_0x1e0239(0x18a)][_0x1e0239(0x173)](this[_0x1e0239(0x19c)]);break;case _0x1e0239(0x19d):this[_0x1e0239(0x18a)][_0x1e0239(0x1a1)]([this[_0x1e0239(0x184)],this[_0x1e0239(0x19b)]]);}}[_0x49be90(0x18e)](_0x2412b5,_0x31f890){const _0x161133=_0x49be90,_0x19a50e=_0x161133(0x18c),_0x417f56=_0x2412b5[_0x161133(0x19f)](_0x19a50e);if(_0x417f56)return _0x31f890(_0x417f56);const _0x152683=new MutationObserver(_0x4bb5ab=>{const _0x3fead2=_0x161133,_0x5b320f=_0x4bb5ab[_0x3fead2(0x195)](_0x2dc641=>_0x2dc641[_0x3fead2(0x179)]===_0x2412b5&&_0x2dc641[_0x3fead2(0x16f)][_0x3fead2(0x19a)]>0x0&&_0x2dc641[_0x3fead2(0x16f)][0x0][_0x3fead2(0x197)][_0x3fead2(0x19e)]()===_0x19a50e);_0x5b320f[_0x3fead2(0x19a)]&&(_0x152683[_0x3fead2(0x17e)](),_0x31f890(_0x5b320f[0x0][_0x3fead2(0x16f)][0x0]));});_0x152683[_0x161133(0x182)](_0x2412b5,{'childList':!0x0,'subtree':!0x0});}[_0x49be90(0x1a0)](_0x2f8160){const _0x2252b1=_0x49be90;_0x2f8160[_0x2252b1(0x172)](_0x2252b1(0x17d),_0x2bf0d4=>{const _0x5e4b6b=_0x2252b1;this[_0x5e4b6b(0x171)](_0x5e4b6b(0x17d),{'imageSrc':_0x2bf0d4[_0x5e4b6b(0x196)][_0x5e4b6b(0x183)]});}),_0x2f8160[_0x2252b1(0x172)](_0x2252b1(0x186),()=>{const _0x230b5c=_0x2252b1;this[_0x230b5c(0x171)](_0x230b5c(0x186));});}[_0x49be90(0x17f)](){const _0x2b4567=_0x49be90;this[_0x2b4567(0x19c)]['on'](_0x2b4567(0x170),()=>{const _0xb318fa=_0x2b4567;this[_0xb318fa(0x171)](_0xb318fa(0x170));});}}function _0x2b8c(_0x4fc0d9,_0x5f3d8b){const _0x4aed72=_0x4aed();return _0x2b8c=function(_0x2b8c78,_0x3f9fbd){_0x2b8c78=_0x2b8c78-0x16b;let _0x502dba=_0x4aed72[_0x2b8c78];return _0x502dba;},_0x2b8c(_0x4fc0d9,_0x5f3d8b);}function _0x4aed(){const _0x1377d7=['retry','fire','addEventListener','add','div','108hqGOfo','2cSFUNL','once','getFocusableElement','target','1724621mJKsKt','629461ZfqYbF','uploading','apply','disconnect','_addErrorViewListeners','_loadingView','set','observe','cdnUrl','_editingView','createCollection','cancel','focus','8429880QxeKqE','setTemplate','_items','ck-reset_all-excluded','uc-cloud-image-editor','clear','_waitForImageEditorComponent','change:status','20198464WYpxjU','render','element','10ixhUNT','3712260URjfXG','filter','detail','nodeName','status','ck-uploadcare-form','length','_focusableView','_errorView','ready','toLowerCase','querySelector','_addUploadcareImageEditorListeners','addMany','569961pBpQhu','_setView','error','10494693HMnfVf','36DJGCcs','addedNodes'];_0x4aed=function(){return _0x1377d7;};return _0x4aed();}
@@ -6,8 +6,8 @@
6
6
  * @module uploadcare/uploadcareimageedit/uploadcareimageeditcommand
7
7
  * @publicApi
8
8
  */
9
- import { Command, type Editor } from '@ckeditor/ckeditor5-core';
10
- import { Dialog } from '@ckeditor/ckeditor5-ui';
9
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
+ import { Dialog } from 'ckeditor5/src/ui.js';
11
11
  import { UploadcareImageEditController } from './ui/uploadcareimageeditcontroller.js';
12
12
  /**
13
13
  * The Uploadcare edit image command.
@@ -0,0 +1,23 @@
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 _0x5aab(){const _0x5d4c54=['model','105676jdAnjE','config','unbind','6512zzavWn','isActive','document','161jmUANp','1399104DUIXro','bind','selection','requires','getSelectedElement','_isEditable','10ElRonu','789mICWmD','uploadcare.allowExternalImagesEditing','44364jwHwFB','930KMQdHO','set','165818qGQKfF','execute','imageBlock','imageInline','editor','imageEditController','3400kfLsiH','element','refresh','get','1424616ladeKJ','isEnabled','plugins'];_0x5aab=function(){return _0x5d4c54;};return _0x5aab();}const _0x422982=_0x56bb;(function(_0xef522,_0x1b1b97){const _0x436273=_0x56bb,_0x557fb8=_0xef522();while(!![]){try{const _0x940740=-parseInt(_0x436273(0x9f))/0x1+parseInt(_0x436273(0x9d))/0x2*(-parseInt(_0x436273(0x9a))/0x3)+parseInt(_0x436273(0x8c))/0x4*(parseInt(_0x436273(0x99))/0x5)+parseInt(_0x436273(0x9c))/0x6*(-parseInt(_0x436273(0x92))/0x7)+parseInt(_0x436273(0xa9))/0x8+parseInt(_0x436273(0x93))/0x9+-parseInt(_0x436273(0xa5))/0xa*(-parseInt(_0x436273(0x8f))/0xb);if(_0x940740===_0x1b1b97)break;else _0x557fb8['push'](_0x557fb8['shift']());}catch(_0x881efe){_0x557fb8['push'](_0x557fb8['shift']());}}}(_0x5aab,0x1f9c4));import{Command as _0x18757f}from'ckeditor5/src/core.js';import{Dialog as _0xfc4caa}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x30f0fe}from'./ui/uploadcareimageeditcontroller.js';function _0x56bb(_0x210f75,_0x3eae9f){const _0x5aab14=_0x5aab();return _0x56bb=function(_0x56bbf2,_0x370a4b){_0x56bbf2=_0x56bbf2-0x89;let _0x16475c=_0x5aab14[_0x56bbf2];return _0x16475c;},_0x56bb(_0x210f75,_0x3eae9f);}import{createEditabilityChecker as _0x41ace1}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x18757f{[_0x422982(0xa4)];static get[_0x422982(0x96)](){return[_0xfc4caa];}[_0x422982(0x98)];constructor(_0xff4544){const _0x92cbab=_0x422982;super(_0xff4544),this[_0x92cbab(0xa4)]=void 0x0,this[_0x92cbab(0x98)]=_0x41ace1(_0xff4544[_0x92cbab(0x8d)][_0x92cbab(0xa8)](_0x92cbab(0x9b))||[]),this[_0x92cbab(0x9e)]({'isActive':!0x1});}[_0x422982(0xa7)](){const _0x334efe=_0x422982,_0x5a7130=this[_0x334efe(0xa3)][_0x334efe(0x8b)][_0x334efe(0x91)][_0x334efe(0x95)][_0x334efe(0x97)]();this[_0x334efe(0x89)]=this[_0x334efe(0x98)](_0x5a7130);}[_0x422982(0xa0)](){const _0x7883c4=_0x422982;this[_0x7883c4(0xa4)]&&(this[_0x7883c4(0x8e)](_0x7883c4(0x90)),this[_0x7883c4(0xa4)]=void 0x0);const _0x521282=this[_0x7883c4(0xa3)][_0x7883c4(0x8b)][_0x7883c4(0x91)][_0x7883c4(0x95)][_0x7883c4(0x97)]();_0x521282&&(_0x521282['is'](_0x7883c4(0xa6),_0x7883c4(0xa1))||_0x521282['is'](_0x7883c4(0xa6),_0x7883c4(0xa2)))&&(this[_0x7883c4(0xa4)]=new _0x30f0fe(this[_0x7883c4(0xa3)],this[_0x7883c4(0xa3)][_0x7883c4(0x8a)][_0x7883c4(0xa8)](_0xfc4caa),_0x521282),this[_0x7883c4(0x94)](_0x7883c4(0x90))['to'](this[_0x7883c4(0xa4)],_0x7883c4(0x90)));}}
@@ -6,8 +6,8 @@
6
6
  * @module uploadcare/uploadcareimageedit/uploadcareimageeditediting
7
7
  * @publicApi
8
8
  */
9
- import { Plugin } from '@ckeditor/ckeditor5-core';
10
- import { Notification } from '@ckeditor/ckeditor5-ui';
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import { Notification } from 'ckeditor5/src/ui.js';
11
11
  import { UploadcareEditing } from '../uploadcareediting.js';
12
12
  /**
13
13
  * The Uploadcare image editing plugin.