@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260115.0 → 0.0.0-nightly-20260116.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/{dist → src}/augmentation.d.ts +0 -4
  298. package/src/augmentation.js +23 -0
  299. package/{dist → src}/index.d.ts +0 -4
  300. package/src/index.js +23 -0
  301. package/{dist → src}/ui/uploadcarecontroller.d.ts +3 -7
  302. package/src/ui/uploadcarecontroller.js +24 -0
  303. package/{dist → src}/ui/uploadcareformview.d.ts +1 -5
  304. package/src/ui/uploadcareformview.js +23 -0
  305. package/{dist → src}/uploadcare.d.ts +1 -5
  306. package/src/uploadcare.js +23 -0
  307. package/{dist → src}/uploadcarecommand.d.ts +2 -6
  308. package/src/uploadcarecommand.js +23 -0
  309. package/{dist → src}/uploadcareconfig.d.ts +1 -5
  310. package/src/uploadcareconfig.js +23 -0
  311. package/{dist → src}/uploadcareediting.d.ts +2 -6
  312. package/src/uploadcareediting.js +23 -0
  313. package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +5 -9
  314. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +24 -0
  315. package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +2 -6
  316. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +23 -0
  317. package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -6
  318. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +23 -0
  319. package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +2 -6
  320. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +23 -0
  321. package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +1 -5
  322. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +23 -0
  323. package/{dist → src}/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -6
  324. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +23 -0
  325. package/{dist → src}/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -6
  326. package/src/uploadcareimageedit/uploadcareimageeditediting.js +23 -0
  327. package/{dist → src}/uploadcareimageedit/uploadcareimageeditui.d.ts +1 -5
  328. package/src/uploadcareimageedit/uploadcareimageeditui.js +23 -0
  329. package/{dist → src}/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -5
  330. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +23 -0
  331. package/{dist → src}/uploadcareimageedit.d.ts +1 -5
  332. package/src/uploadcareimageedit.js +23 -0
  333. package/{dist → src}/uploadcareui.d.ts +1 -5
  334. package/src/uploadcareui.js +23 -0
  335. package/{dist → src}/uploadcareuploadadapter.d.ts +2 -6
  336. package/src/uploadcareuploadadapter.js +23 -0
  337. package/{dist → src}/utils/common-translations.d.ts +0 -4
  338. package/src/utils/common-translations.js +23 -0
  339. package/{dist → src}/utils/dialogfocusmanagerview.d.ts +2 -6
  340. package/src/utils/dialogfocusmanagerview.js +23 -0
  341. package/{dist → src}/utils/editingutils.d.ts +0 -4
  342. package/src/utils/editingutils.js +23 -0
  343. package/{dist → src}/utils/isancestor.d.ts +0 -4
  344. package/src/utils/isancestor.js +23 -0
  345. package/{dist → src}/utils/uploadutils.d.ts +0 -4
  346. package/src/utils/uploadutils.js +23 -0
  347. package/theme/uploadcare-form.css +201 -0
  348. package/theme/uploadcare-theme.css +20 -0
  349. package/theme/uploadcareimageedit.css +64 -0
@@ -2,16 +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
- /**
6
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import type { Editor } from '@ckeditor/ckeditor5-core';
5
+ import type { Editor } from 'ckeditor5/src/core.js';
10
6
  import { UploadcareSource } from '../uploadcareconfig.js';
11
7
  import { type UploadcareEditing } from '../uploadcareediting.js';
12
8
  declare const UploadcareController_base: {
13
- new (): import("@ckeditor/ckeditor5-utils").Observable;
14
- prototype: import("@ckeditor/ckeditor5-utils").Observable;
9
+ new (): import("ckeditor5/src/utils.js").Observable;
10
+ prototype: import("ckeditor5/src/utils.js").Observable;
15
11
  };
16
12
  /**
17
13
  * The Uploadcare controller. It is used by the {@link module:uploadcare/uploadcarecommand~UploadcareCommand Uploadcare command}
@@ -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 _0x368f9=_0x100c;function _0x4e60(){const _0x5c0244=['241672ngPiHC','_type','getSelectedElement','9262170KcsMoR','execute','61NMLfAG','show','imageInline','selection','attributes','5565934pAPKRK','5097666YNgCQk','document','length','_editing','image','idle','getOutputCollectionState','_api','destroy','editing','text','Local','Insert','linkHref','3bpMFmg','_dialog','10FTWxWY','done-click','imageBlock','_initDialog','stopListening','37750DAMSxm','uploadCare','imageInfo','_insertAsset','834jgmuOH','model','view','stopDelegating','allEntries','EDITOR_TOP_CENTER','initFlow','setAttribute','ctxElement','get','hide','isOpen','width','getAPI','_formView','element','removeSelectionAttribute','_initListeners','Replace','insertImage','plugins','addEventListener','23298MvXqts','source-list','configElement','change','detail','setCurrentActivity','uuid','status','_editor','ucContextId','setSelection','857376elWZYt','doneFlow','removeAllFiles','focus','getLastPosition','_insertImage'];_0x4e60=function(){return _0x5c0244;};return _0x4e60();}(function(_0x39ace6,_0x173907){const _0x392a14=_0x100c,_0x3becd0=_0x39ace6();while(!![]){try{const _0xa1e785=parseInt(_0x392a14(0x1e8))/0x1*(-parseInt(_0x392a14(0x21d))/0x2)+-parseInt(_0x392a14(0x1fc))/0x3*(parseInt(_0x392a14(0x1e3))/0x4)+parseInt(_0x392a14(0x203))/0x5*(parseInt(_0x392a14(0x207))/0x6)+parseInt(_0x392a14(0x1ee))/0x7+parseInt(_0x392a14(0x228))/0x8+-parseInt(_0x392a14(0x1e6))/0x9+-parseInt(_0x392a14(0x1fe))/0xa*(-parseInt(_0x392a14(0x1ed))/0xb);if(_0xa1e785===_0x173907)break;else _0x3becd0['push'](_0x3becd0['shift']());}catch(_0x43fc93){_0x3becd0['push'](_0x3becd0['shift']());}}}(_0x4e60,0x9037d));import{IconUploadcareImageUpload as _0x281e15}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x5164e9}from'ckeditor5/src/utils.js';import{Dialog as _0x25f013,DialogViewPosition as _0x55539b}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x6cc72e}from'./uploadcareformview.js';import{UploadcareSource as _0x10ef04}from'../uploadcareconfig.js';import{getTranslation as _0x255423}from'../utils/common-translations.js';import{getImageUrls as _0x1397f4,getImageDimension as _0x329ea0}from'../utils/editingutils.js';import{isAncestor as _0x7cc7e1}from'../utils/isancestor.js';function _0x100c(_0x2286c1,_0x35d930){const _0x4e6038=_0x4e60();return _0x100c=function(_0x100cbc,_0x4f8b8a){_0x100cbc=_0x100cbc-0x1e1;let _0x542dac=_0x4e6038[_0x100cbc];return _0x542dac;},_0x100c(_0x2286c1,_0x35d930);}export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x5164e9(){[_0x368f9(0x225)];[_0x368f9(0x1fd)];[_0x368f9(0x1f1)];[_0x368f9(0x1f5)];[_0x368f9(0x1e4)]=null;[_0x368f9(0x215)]=null;constructor(_0x292dc7,_0x4a8f2b,_0x396358){const _0x3eda9d=_0x368f9;super(),this[_0x3eda9d(0x225)]=_0x292dc7,this[_0x3eda9d(0x1f1)]=_0x4a8f2b,this[_0x3eda9d(0x1fd)]=_0x292dc7[_0x3eda9d(0x21b)][_0x3eda9d(0x210)](_0x25f013),this[_0x3eda9d(0x1f5)]=_0x4a8f2b[_0x3eda9d(0x20f)][_0x3eda9d(0x214)](),this[_0x3eda9d(0x1e4)]=_0x396358,this[_0x3eda9d(0x1f1)][_0x3eda9d(0x21f)][_0x3eda9d(0x20e)](_0x3eda9d(0x21e),this[_0x3eda9d(0x1e4)]),this[_0x3eda9d(0x201)](),this[_0x3eda9d(0x218)](),this[_0x3eda9d(0x1f5)][_0x3eda9d(0x20d)]();}[_0x368f9(0x1f6)](){const _0x367bba=_0x368f9;this[_0x367bba(0x215)]&&(this[_0x367bba(0x215)][_0x367bba(0x1f6)](),this[_0x367bba(0x215)]=null),this[_0x367bba(0x1f5)]&&this[_0x367bba(0x1f5)][_0x367bba(0x229)](),this[_0x367bba(0x202)](),this[_0x367bba(0x20a)]();}[_0x368f9(0x201)](){const _0x2e36a3=_0x368f9,{locale:_0x1b66d3,model:_0x180aa9}=this[_0x2e36a3(0x225)],_0x524dd5=_0x180aa9[_0x2e36a3(0x1ef)][_0x2e36a3(0x1eb)][_0x2e36a3(0x1e5)](),_0x2ecd89=_0x524dd5&&(_0x524dd5['is'](_0x2e36a3(0x216),_0x2e36a3(0x200))||_0x524dd5['is'](_0x2e36a3(0x216),_0x2e36a3(0x1ea)));this[_0x2e36a3(0x215)]=new _0x6cc72e(_0x1b66d3,this[_0x2e36a3(0x1f1)][_0x2e36a3(0x226)]),this[_0x2e36a3(0x1fd)][_0x2e36a3(0x1e9)]({'id':_0x2e36a3(0x204),'icon':_0x281e15,'title':_0x255423(_0x1b66d3,this[_0x2e36a3(0x1e4)],_0x2ecd89?_0x2e36a3(0x219):_0x2e36a3(0x1fa))[_0x2e36a3(0x1f8)],'content':this[_0x2e36a3(0x215)],'position':_0x55539b[_0x2e36a3(0x20c)],'isModal':!0x0,'onShow':()=>{const _0x29e4e6=_0x2e36a3;this[_0x29e4e6(0x215)][_0x29e4e6(0x22b)]();},'onHide':()=>{const _0x12fbc3=_0x2e36a3;this[_0x12fbc3(0x1f5)][_0x12fbc3(0x22a)](),this[_0x12fbc3(0x225)][_0x12fbc3(0x1f7)][_0x12fbc3(0x209)][_0x12fbc3(0x22b)](),this[_0x12fbc3(0x1f6)]();},'keystrokeHandlerOptions':{'filter':_0x2d41fe=>!_0x7cc7e1(_0x2d41fe,this[_0x2e36a3(0x215)][_0x2e36a3(0x216)])}});}[_0x368f9(0x218)](){const _0x5d8f5c=_0x368f9;this[_0x5d8f5c(0x1f1)][_0x5d8f5c(0x20f)][_0x5d8f5c(0x21c)](_0x5d8f5c(0x1ff),()=>{const _0x5922ee=_0x5d8f5c,{allEntries:_0x1980bf}=this[_0x5922ee(0x1f5)][_0x5922ee(0x1f4)]();this[_0x5922ee(0x225)][_0x5922ee(0x208)][_0x5922ee(0x220)](_0x1b4e44=>{const _0x5751bc=_0x5922ee,_0x3bac57=_0x1980bf[_0x5751bc(0x1f0)];for(const _0x142081 of _0x1980bf){const _0x10f799=_0x142081===_0x1980bf[_0x3bac57-0x1],{cdnUrl:_0x252b2a,fileInfo:_0x47276b}=_0x142081;if(!_0x252b2a||!_0x47276b)continue;const {width:_0x3a4f32,height:_0x2c2953}=_0x47276b[_0x5751bc(0x205)],_0x3a3f62=_0x329ea0(_0x252b2a,_0x3a4f32,_0x2c2953),_0x432be7=_0x1397f4(_0x252b2a,_0x3a3f62[_0x5751bc(0x213)]),_0x50fc0={'id':_0x47276b[_0x5751bc(0x223)],'type':_0x5751bc(0x1f2),'attributes':{'imageDimension':_0x3a3f62,..._0x432be7}};this[_0x5751bc(0x206)](_0x50fc0,_0x10f799,_0x1b4e44);}}),this[_0x5922ee(0x1fd)][_0x5922ee(0x211)]();}),this[_0x5d8f5c(0x1f1)][_0x5d8f5c(0x20f)][_0x5d8f5c(0x21c)](_0x5d8f5c(0x220),_0x47165d=>{const _0x2a142c=_0x5d8f5c;_0x2a142c(0x1f3)===_0x47165d[_0x2a142c(0x221)][_0x2a142c(0x224)]&&!_0x47165d[_0x2a142c(0x221)][_0x2a142c(0x20b)][_0x2a142c(0x1f0)]&&this[_0x2a142c(0x1fd)][_0x2a142c(0x212)]&&(this[_0x2a142c(0x1e4)]===_0x10ef04[_0x2a142c(0x1f9)]?this[_0x2a142c(0x1f5)][_0x2a142c(0x222)](_0x10ef04[_0x2a142c(0x1f9)]):this[_0x2a142c(0x1f5)][_0x2a142c(0x20d)]());});}[_0x368f9(0x206)](_0x3df245,_0x2d6907,_0xee2ba0){const _0x58bdbd=_0x368f9,_0x2330fb=this[_0x58bdbd(0x225)][_0x58bdbd(0x208)][_0x58bdbd(0x1ef)][_0x58bdbd(0x1eb)],_0x14a31f=_0x2330fb[_0x58bdbd(0x1e5)](),_0x4f440e=!(!_0x14a31f||!_0x14a31f['is'](_0x58bdbd(0x216),_0x58bdbd(0x1ea)));_0xee2ba0[_0x58bdbd(0x217)](_0x58bdbd(0x1fb)),this[_0x58bdbd(0x1e2)](_0x3df245,_0x4f440e),_0x2d6907||_0xee2ba0[_0x58bdbd(0x227)](_0x2330fb[_0x58bdbd(0x1e1)]());}[_0x368f9(0x1e2)](_0x44ff7a,_0x1aeba3){const _0x26d8eb=_0x368f9,_0x1bf17d=this[_0x26d8eb(0x225)],{imageDimension:_0x32c883,imageFallbackUrl:_0x1c3cd0,imageSources:_0x3278e9}=_0x44ff7a[_0x26d8eb(0x1ec)];_0x1bf17d[_0x26d8eb(0x1e7)](_0x26d8eb(0x21a),{'imageType':_0x1aeba3?_0x26d8eb(0x1ea):null,'source':{'uploadcareImageId':_0x44ff7a['id'],'src':_0x1c3cd0,'sources':_0x3278e9,..._0x32c883}});}}
@@ -1,7 +1,3 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  /**
6
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
7
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -9,7 +5,7 @@
9
5
  /**
10
6
  * @module uploadcare/ui/uploadcareformview
11
7
  */
12
- import { type Locale } from '@ckeditor/ckeditor5-utils';
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
13
9
  import { DialogFocusManagerView } from '../utils/dialogfocusmanagerview.js';
14
10
  import '../../theme/uploadcare-form.css';
15
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 _0x4449ab=_0x19cb;(function(_0x575de8,_0x51e354){var _0x1d45aa=_0x19cb,_0x236a29=_0x575de8();while(!![]){try{var _0x189c1a=-parseInt(_0x1d45aa(0xde))/0x1+parseInt(_0x1d45aa(0xe1))/0x2+-parseInt(_0x1d45aa(0xdd))/0x3+-parseInt(_0x1d45aa(0xe7))/0x4+parseInt(_0x1d45aa(0xeb))/0x5+parseInt(_0x1d45aa(0xe2))/0x6*(parseInt(_0x1d45aa(0xe4))/0x7)+parseInt(_0x1d45aa(0xe6))/0x8;if(_0x189c1a===_0x51e354)break;else _0x236a29['push'](_0x236a29['shift']());}catch(_0x283c8d){_0x236a29['push'](_0x236a29['shift']());}}}(_0x26db,0xa0285));function _0x19cb(_0x3e7485,_0x5a9fd5){var _0x26db99=_0x26db();return _0x19cb=function(_0x19cb35,_0x7c8828){_0x19cb35=_0x19cb35-0xdd;var _0x42aad4=_0x26db99[_0x19cb35];return _0x42aad4;},_0x19cb(_0x3e7485,_0x5a9fd5);}import{DialogFocusManagerView as _0x4d20a7}from'../utils/dialogfocusmanagerview.js';function _0x26db(){var _0x551ae8=['div','uc-file-uploader-inline','getFocusableElement','78558xmTLpG','167597hEVUYv','focus','ck-reset_all-excluded','402432GwhnBA','1341714OIPDkq','ck-uploadcare-theme','7ZfxPUt','uc-light','4900104BAFxcl','1223980fUdcFt','setTemplate','ck-uploadcare-form','uploader-','592175UpOrLe','element'];_0x26db=function(){return _0x551ae8;};return _0x26db();}import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x4d20a7{constructor(_0x472e90,_0x346435){var _0x9bc6fe=_0x19cb;super(_0x472e90),this[_0x9bc6fe(0xe8)]({'tag':_0x9bc6fe(0xed),'attributes':{'class':['ck',_0x9bc6fe(0xe0),_0x9bc6fe(0xe9)],'tabindex':'-1'},'children':[{'tag':_0x9bc6fe(0xee),'attributes':{'class':[_0x9bc6fe(0xe5),_0x9bc6fe(0xe3)],'ctx-name':_0x9bc6fe(0xea)+_0x346435}},this[_0x9bc6fe(0xef)]()]});}[_0x4449ab(0xdf)](){var _0x298c1b=_0x4449ab;this[_0x298c1b(0xec)][_0x298c1b(0xdf)]();}}
@@ -1,7 +1,3 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  /**
6
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
7
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -10,7 +6,7 @@
10
6
  * @module uploadcare/uploadcare
11
7
  * @publicApi
12
8
  */
13
- import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
14
10
  import { UploadcareUI } from './uploadcareui.js';
15
11
  import { UploadcareEditing } from './uploadcareediting.js';
16
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 _0x552462=_0x49b9;(function(_0x5227b2,_0x283a2f){const _0x57bc91=_0x49b9,_0x477b64=_0x5227b2();while(!![]){try{const _0x167ee8=-parseInt(_0x57bc91(0x1cc))/0x1*(parseInt(_0x57bc91(0x1d0))/0x2)+-parseInt(_0x57bc91(0x1c9))/0x3*(-parseInt(_0x57bc91(0x1ca))/0x4)+parseInt(_0x57bc91(0x1c7))/0x5*(-parseInt(_0x57bc91(0x1e1))/0x6)+-parseInt(_0x57bc91(0x1d5))/0x7+-parseInt(_0x57bc91(0x1cd))/0x8*(-parseInt(_0x57bc91(0x1e0))/0x9)+-parseInt(_0x57bc91(0x1d8))/0xa*(-parseInt(_0x57bc91(0x1d3))/0xb)+-parseInt(_0x57bc91(0x1d6))/0xc*(parseInt(_0x57bc91(0x1ce))/0xd);if(_0x167ee8===_0x283a2f)break;else _0x477b64['push'](_0x477b64['shift']());}catch(_0x31988d){_0x477b64['push'](_0x477b64['shift']());}}}(_0x4fb8,0xab22c));import{Plugin as _0x49b5d3}from'ckeditor5/src/core.js';import{UploadcareUI as _0x50cabb}from'./uploadcareui.js';import{UploadcareEditing as _0x29d399}from'./uploadcareediting.js';import{UploadcareSource as _0x480351}from'./uploadcareconfig.js';function _0x49b9(_0x22e8b8,_0x23c184){const _0x4fb8ea=_0x4fb8();return _0x49b9=function(_0x49b94b,_0x6cca22){_0x49b94b=_0x49b94b-0x1c6;let _0x5877eb=_0x4fb8ea[_0x49b94b];return _0x5877eb;},_0x49b9(_0x22e8b8,_0x23c184);}import*as _0x18d169 from'@uploadcare/file-uploader';export class Uploadcare extends _0x49b5d3{static get[_0x552462(0x1d2)](){return[_0x29d399,_0x50cabb];}static get[_0x552462(0x1d1)](){const _0x5bb32e=_0x552462;return _0x5bb32e(0x1d9);}static get[_0x552462(0x1c6)](){return!0x0;}static get[_0x552462(0x1cf)](){return!0x0;}constructor(_0x55f786){const _0x4329f3=_0x552462;super(_0x55f786),_0x55f786[_0x4329f3(0x1de)][_0x4329f3(0x1e2)](_0x4329f3(0x1e4),[_0x480351[_0x4329f3(0x1db)],_0x480351[_0x4329f3(0x1e3)]]),_0x18d169[_0x4329f3(0x1da)](_0x18d169),this[_0x4329f3(0x1d7)]();}[_0x552462(0x1d7)](){const _0x372f29=_0x552462,_0x375a42=this[_0x372f29(0x1df)][_0x372f29(0x1de)][_0x372f29(0x1c8)](_0x372f29(0x1dc)),_0x43b581=this[_0x372f29(0x1df)][_0x372f29(0x1d4)][_0x372f29(0x1dd)];_0x375a42&&_0x18d169[_0x372f29(0x1cb)](_0x43b581,_0x375a42);}}function _0x4fb8(){const _0x93f477=['24LYbVme','define','URL','uploadcare.uploader.sourceList','isOfficialPlugin','368925DMzzaH','get','3590631ArOAlv','4dhIOoe','defineLocale','38XCYflk','8CIZEIL','13AuqqGM','isPremiumPlugin','33266swGboj','pluginName','requires','10497553vsCHdh','locale','7051128ZRWlIC','7542816GCptpP','_defineLocale','10lqgQQO','Uploadcare','defineComponents','Local','uploadcare.locale','contentLanguage','config','editor','10015542iGSCGT'];_0x4fb8=function(){return _0x93f477;};return _0x4fb8();}
@@ -1,7 +1,3 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  /**
6
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
7
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -10,8 +6,8 @@
10
6
  * @module uploadcare/uploadcarecommand
11
7
  * @publicApi
12
8
  */
13
- import { Command, type Editor } from '@ckeditor/ckeditor5-core';
14
- import { Dialog } from '@ckeditor/ckeditor5-ui';
9
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
+ import { Dialog } from 'ckeditor5/src/ui.js';
15
11
  import { UploadcareEditing } from './uploadcareediting.js';
16
12
  import type { UploadcareSource } from './uploadcareconfig.js';
17
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 _0x41dc07=_0x155c;(function(_0x1587b1,_0x1e5961){var _0x484158=_0x155c,_0x151cb7=_0x1587b1();while(!![]){try{var _0x3baa31=-parseInt(_0x484158(0xbb))/0x1+-parseInt(_0x484158(0xb8))/0x2*(parseInt(_0x484158(0xb4))/0x3)+-parseInt(_0x484158(0xbd))/0x4*(parseInt(_0x484158(0xb9))/0x5)+-parseInt(_0x484158(0xbe))/0x6*(parseInt(_0x484158(0xb7))/0x7)+-parseInt(_0x484158(0xaa))/0x8+-parseInt(_0x484158(0xab))/0x9*(-parseInt(_0x484158(0xba))/0xa)+parseInt(_0x484158(0xac))/0xb*(parseInt(_0x484158(0xb2))/0xc);if(_0x3baa31===_0x1e5961)break;else _0x151cb7['push'](_0x151cb7['shift']());}catch(_0x4a7a74){_0x151cb7['push'](_0x151cb7['shift']());}}}(_0x15c4,0x8a429));import{Command as _0x878201}from'ckeditor5/src/core.js';import{Dialog as _0x46759c}from'ckeditor5/src/ui.js';function _0x15c4(){var _0x3aed4e=['2025dqdtjl','22QIytAK','plugins','_editing','execute','destroy','_controller','22908228PyXfxN','commands','3bjcpgs','refresh','_checkEnabled','47929JiVbli','2072582BCOMpF','1887010uMgkrE','41270bNclUV','1087284OpCrbN','editor','4cnKzVj','654VhsoIX','requires','isEnabled','get','insertImage','7464000qKroWj'];_0x15c4=function(){return _0x3aed4e;};return _0x15c4();}function _0x155c(_0x2c4682,_0x4acf1a){var _0x15c42a=_0x15c4();return _0x155c=function(_0x155c7e,_0x3e28ed){_0x155c7e=_0x155c7e-0xa9;var _0x2bff6f=_0x15c42a[_0x155c7e];return _0x2bff6f;},_0x155c(_0x2c4682,_0x4acf1a);}import{UploadcareEditing as _0x72cc46}from'./uploadcareediting.js';import{UploadcareController as _0x39f979}from'./ui/uploadcarecontroller.js';export class UploadcareCommand extends _0x878201{[_0x41dc07(0xae)];[_0x41dc07(0xb1)]=null;static get[_0x41dc07(0xbf)](){return[_0x46759c,_0x72cc46];}constructor(_0x247c5a){var _0x377b4e=_0x41dc07;super(_0x247c5a),this[_0x377b4e(0xae)]=_0x247c5a[_0x377b4e(0xad)][_0x377b4e(0xc1)](_0x72cc46);}[_0x41dc07(0xb5)](){var _0xc224dc=_0x41dc07;this[_0xc224dc(0xc0)]=this[_0xc224dc(0xb6)]();}[_0x41dc07(0xaf)](_0x29552e){var _0x2bb015=_0x41dc07;this[_0x2bb015(0xb1)]&&(this[_0x2bb015(0xb1)][_0x2bb015(0xb0)](),this[_0x2bb015(0xb1)]=null),this[_0x2bb015(0xb1)]=new _0x39f979(this[_0x2bb015(0xbc)],this[_0x2bb015(0xae)],_0x29552e);}[_0x41dc07(0xb6)](){var _0x25941a=_0x41dc07;return this[_0x25941a(0xbc)][_0x25941a(0xb3)][_0x25941a(0xc1)](_0x25941a(0xa9))[_0x25941a(0xc0)];}}
@@ -1,7 +1,3 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  /**
6
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
7
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -10,7 +6,7 @@
10
6
  * @module uploadcare/uploadcareconfig
11
7
  * @publicApi
12
8
  */
13
- import type { ArrayOrItem } from '@ckeditor/ckeditor5-utils';
9
+ import type { ArrayOrItem } from 'ckeditor5/src/utils.js';
14
10
  import type { ConfigType } from '@uploadcare/file-uploader';
15
11
  /**
16
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 _0x1090(){var _0x54f58e=['Facebook','Local','OneDrive','Dropbox','GPhotos','398926hsKhsp','local','url','4552618BnHedT','gphotos','9wknaQD','8680xGAvsj','284KuMqfg','219648RmaMsz','dropbox','gdrive','facebook','9595856qUlswR','onedrive','691100FrjdBF','GDrive','2341638nDYKVc','URL'];_0x1090=function(){return _0x54f58e;};return _0x1090();}function _0x3ef5(_0x51c58f,_0x3654fc){var _0x1090e2=_0x1090();return _0x3ef5=function(_0x3ef521,_0x4b9adc){_0x3ef521=_0x3ef521-0x10c;var _0x49f48c=_0x1090e2[_0x3ef521];return _0x49f48c;},_0x3ef5(_0x51c58f,_0x3654fc);}(function(_0x18fae9,_0x29323d){var _0x5667b2=_0x3ef5,_0x28ef4f=_0x18fae9();while(!![]){try{var _0xae392c=-parseInt(_0x5667b2(0x110))/0x1+-parseInt(_0x5667b2(0x119))/0x2+parseInt(_0x5667b2(0x121))/0x3+parseInt(_0x5667b2(0x120))/0x4*(-parseInt(_0x5667b2(0x11f))/0x5)+-parseInt(_0x5667b2(0x112))/0x6+parseInt(_0x5667b2(0x11c))/0x7+parseInt(_0x5667b2(0x10e))/0x8*(parseInt(_0x5667b2(0x11e))/0x9);if(_0xae392c===_0x29323d)break;else _0x28ef4f['push'](_0x28ef4f['shift']());}catch(_0x5a9acf){_0x28ef4f['push'](_0x28ef4f['shift']());}}}(_0x1090,0x7eb44));export var UploadcareSource;!function(_0x2bacd5){var _0x3c6692=_0x3ef5;_0x2bacd5[_0x3c6692(0x115)]=_0x3c6692(0x11a),_0x2bacd5[_0x3c6692(0x113)]=_0x3c6692(0x11b),_0x2bacd5[_0x3c6692(0x117)]=_0x3c6692(0x122),_0x2bacd5[_0x3c6692(0x111)]=_0x3c6692(0x10c),_0x2bacd5[_0x3c6692(0x114)]=_0x3c6692(0x10d),_0x2bacd5[_0x3c6692(0x118)]=_0x3c6692(0x11d),_0x2bacd5[_0x3c6692(0x116)]=_0x3c6692(0x10f);}(UploadcareSource||(UploadcareSource={}));
@@ -1,7 +1,3 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  /**
6
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
7
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -10,8 +6,8 @@
10
6
  * @module uploadcare/uploadcareediting
11
7
  * @publicApi
12
8
  */
13
- import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
14
- import { Dialog } from '@ckeditor/ckeditor5-ui';
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
10
+ import { Dialog } from 'ckeditor5/src/ui.js';
15
11
  import { UploadcareUploadAdapter } from './uploadcareuploadadapter.js';
16
12
  import type { UploaderBlock } from '@uploadcare/file-uploader';
17
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 _0x37deec=_0x5594;(function(_0x58ab8,_0x3deaa8){const _0x1dace6=_0x5594,_0x524d1d=_0x58ab8();while(!![]){try{const _0x567477=parseInt(_0x1dace6(0xad))/0x1*(-parseInt(_0x1dace6(0xf0))/0x2)+parseInt(_0x1dace6(0xf3))/0x3*(-parseInt(_0x1dace6(0xda))/0x4)+parseInt(_0x1dace6(0xe4))/0x5*(parseInt(_0x1dace6(0xb7))/0x6)+-parseInt(_0x1dace6(0xb4))/0x7+parseInt(_0x1dace6(0x9f))/0x8*(parseInt(_0x1dace6(0xb2))/0x9)+-parseInt(_0x1dace6(0xc0))/0xa*(parseInt(_0x1dace6(0xde))/0xb)+parseInt(_0x1dace6(0xa4))/0xc;if(_0x567477===_0x3deaa8)break;else _0x524d1d['push'](_0x524d1d['shift']());}catch(_0x1bbbac){_0x524d1d['push'](_0x524d1d['shift']());}}}(_0x33c1,0xb9c9e));import{Plugin as _0x51dc4f}from'ckeditor5/src/core.js';import{Dialog as _0x2ae7c8}from'ckeditor5/src/ui.js';import{createElement as _0x530af2,global as _0x1b2f9a,uid as _0x5b697c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xaa4555}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5791b7}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xd90381}from'./utils/editingutils.js';function _0x5594(_0x9ebd51,_0x2366fa){const _0x33c1a0=_0x33c1();return _0x5594=function(_0x5594bf,_0x14841a){_0x5594bf=_0x5594bf-0x9e;let _0xf5573e=_0x33c1a0[_0x5594bf];return _0xf5573e;},_0x5594(_0x9ebd51,_0x2366fa);}function _0x33c1(){const _0x5a5b07=['2WnHgRK','for','conversion','locale','contentLanguage','732222lnGRDs','imageInline','3757523uUTYQU','isPremiumPlugin','selection','8473266IyXsjk','editing','PictureEditing','model','attributeToAttribute','document','input[uploadcare-file-input]','_initConversion','cleanupImage','24410OLnNJg','map','elementToAttribute','configElement','isOfficialPlugin','join','editor','data-uc-image-id','_ctxElement','\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','extend','afterInit','listenTo','get','getSelectedElement','isRegistered','_initCtx','add','schema','_initSchema','iconHrefResolver','href','pluginName','remove','imageBlock','uploadcareImageId','128720ZnzDOi','ctxElement','destroy','body','1947BySrYT','_initImageProcessingIndicator','uploadcare.uploader','config','uc-upload-ctx-provider','fromCharCode','5BWLWkH','init','true','uploadcare.pubkey','_configElement','insertImage','render','closeMax','ucContextId','once','replaceImageSource','uc-config','1387624ZqOvqI','_initConfig','#uc-icon-arrow-down','114ukTdaz','appendChild','commands','88eNEpnP','requires','uploadcare','view','upcast','24397812yXJdvs','getAttribute','UploadcareEditing','uploader-','removeAttribute','uploadcareImageReplace','downcast','querySelector','execute'];_0x33c1=function(){return _0x5a5b07;};return _0x33c1();}export class UploadcareEditing extends _0x51dc4f{[_0x37deec(0xe8)]=null;[_0x37deec(0xc8)]=null;static get[_0x37deec(0xd6)](){const _0x145463=_0x37deec;return _0x145463(0xa6);}static get[_0x37deec(0xa0)](){const _0xfd8ee7=_0x37deec;return[_0xfd8ee7(0xb9),_0x5791b7,_0x2ae7c8];}static get[_0x37deec(0xc4)](){return!0x0;}static get[_0x37deec(0xb5)](){return!0x0;}[_0x37deec(0xec)];get[_0x37deec(0xc3)](){const _0x43bb32=_0x37deec;return this[_0x43bb32(0xe8)];}get[_0x37deec(0xdb)](){const _0x3f9b96=_0x37deec;return this[_0x3f9b96(0xc8)];}constructor(_0x529205){const _0x5ca39c=_0x37deec;super(_0x529205),this[_0x5ca39c(0xec)]=_0x5b697c();}[_0x37deec(0xe5)](){const _0x5a1c88=_0x37deec,_0x1b9796=this[_0x5a1c88(0xc6)];_0x1b9796[_0x5a1c88(0x9e)][_0x5a1c88(0xd1)](_0x5a1c88(0xa1),new _0xaa4555(_0x1b9796));}[_0x37deec(0xcb)](){const _0x59638d=_0x37deec;this[_0x59638d(0xd3)](),this[_0x59638d(0xbe)](),this[_0x59638d(0xf1)](),this[_0x59638d(0xd0)](),this[_0x59638d(0xdf)](),this[_0x59638d(0xcc)](this[_0x59638d(0xc6)],_0x59638d(0xdc),()=>{const _0x2dc6ef=_0x59638d;this[_0x2dc6ef(0xe8)]&&(this[_0x2dc6ef(0xe8)][_0x2dc6ef(0xd7)](),this[_0x2dc6ef(0xe8)]=null),this[_0x2dc6ef(0xc8)]&&(this[_0x2dc6ef(0xc8)][_0x2dc6ef(0xd7)](),this[_0x2dc6ef(0xc8)]=null);const _0x173c20=_0x1b2f9a[_0x2dc6ef(0xbc)][_0x2dc6ef(0xab)](_0x2dc6ef(0xbd));_0x173c20&&_0x173c20[_0x2dc6ef(0xd7)]();}),async function(_0x5d1d52){const _0x323d87=_0x3039ea([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]),_0x4541ce=0x535f8c3a,_0xc4f361=0x5358f2c2^_0x4541ce,_0x2fd8e8=window[_0x3039ea([0x44,0x61,0x74,0x65])][_0x3039ea([0x6e,0x6f,0x77])](),_0xc347d8=_0x5d1d52[_0x3039ea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3cc999=new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x273bc3=>{_0xc347d8[_0x3039ea([0x6f,0x6e,0x63,0x65])](_0x3039ea([0x72,0x65,0x61,0x64,0x79]),_0x273bc3);}),_0x31710a={[_0x3039ea([0x6b,0x74,0x79])]:_0x3039ea([0x45,0x43]),[_0x3039ea([0x75,0x73,0x65])]:_0x3039ea([0x73,0x69,0x67]),[_0x3039ea([0x63,0x72,0x76])]:_0x3039ea([0x50,0x2d,0x32,0x35,0x36]),[_0x3039ea([0x78])]:_0x3039ea([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]),[_0x3039ea([0x79])]:_0x3039ea([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]),[_0x3039ea([0x61,0x6c,0x67])]:_0x3039ea([0x45,0x53,0x32,0x35,0x36])},_0x3ab3c8=_0xc347d8[_0x3039ea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3039ea([0x67,0x65,0x74])](_0x3039ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a7db0(){let _0x2a76d2,_0x5982d1=null,_0x11305d=null;try{if(_0x3ab3c8==_0x3039ea([0x47,0x50,0x4c]))return _0x3039ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a76d2=_0x162d23(),!_0x2a76d2)return _0x3039ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a76d2[_0x3039ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11305d=_0x180804(_0x2a76d2[_0x3039ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a76d2[_0x3039ea([0x6a,0x74,0x69])])),await _0x195a05()?_0x1a6556()?_0x5d504b()?_0x3039ea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7c863a()?(_0x2a76d2[_0x3039ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3039ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5982d1=_0x66f322(_0x3039ea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25a05c()):_0x3039ea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3039ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3039ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3039ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d504b(){const _0x5aadad=[_0x3039ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3039ea([0x74,0x72,0x69,0x61,0x6c])][_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a76d2[_0x3039ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fd8e8/0x3e8:0xe10*_0xc4f361;return _0x2a76d2[_0x3039ea([0x65,0x78,0x70])]<_0x5aadad;}function _0x1a6556(){const _0x113163=_0x2a76d2[_0x3039ea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x113163&&(!!_0x113163[_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039ea([0x2a]))||!!_0x113163[_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039ea([0x55,0x50,0x4c,0x43])));}function _0x7c863a(){const _0x3baab0=_0x5594,_0x2e58bd=_0x2a76d2[_0x3039ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e58bd||0x0==_0x2e58bd[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6a2937}=new URL(window[_0x3039ea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3baab0(0xd5)]);if(_0x2e58bd[_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6a2937))return!0x0;const _0xc92079=_0x6a2937[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])](_0x3039ea([0x2e]));return _0x2e58bd[_0x3039ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10ce27=>_0x10ce27[_0x3039ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039ea([0x2a])))[_0x3039ea([0x6d,0x61,0x70])](_0x58da63=>_0x58da63[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])](_0x3039ea([0x2e])))[_0x3039ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7c0a0f=>_0x7c0a0f[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xc92079[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3039ea([0x6d,0x61,0x70])](_0x1a3851=>Array(_0xc92079[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a3851[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3039ea([0x66,0x69,0x6c,0x6c])](_0x1a3851[0x0]===_0x3039ea([0x2a])?_0x3039ea([0x2a]):'')[_0x3039ea([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a3851))[_0x3039ea([0x73,0x6f,0x6d,0x65])](_0x4f6c8b=>_0xc92079[_0x3039ea([0x65,0x76,0x65,0x72,0x79])]((_0x37e511,_0x138be7)=>_0x4f6c8b[_0x138be7]===_0x37e511||_0x4f6c8b[_0x138be7]===_0x3039ea([0x2a])));}function _0x25a05c(){return _0x5982d1&&_0x11305d?new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cc75c,_0x166e9c)=>{_0x5982d1[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x5cc75c,_0x166e9c),_0x11305d[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x3e7953=>{_0x3e7953!=_0x3039ea([0x56,0x61,0x6c,0x69,0x64])&&_0x5cc75c(_0x3e7953);},_0x166e9c);}):_0x5982d1||_0x11305d||_0x3039ea([0x56,0x61,0x6c,0x69,0x64]);}}function _0x180804(_0x49479b,_0x57cba8){return new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d2e13=>{if(_0x15cd64())return _0x3d2e13(_0x3039ea([0x56,0x61,0x6c,0x69,0x64]));_0x28188a(),_0xc347d8[_0x3039ea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3039ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16ba07=!0x1;const _0x5ae2d1=_0x5b697c();function _0x218ee9(_0x38a599){return!!_0x38a599&&(typeof _0x38a599===_0x3039ea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38a599===_0x3039ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38a599[_0x3039ea([0x74,0x68,0x65,0x6e])]===_0x3039ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38a599[_0x3039ea([0x63,0x61,0x74,0x63,0x68])]===_0x3039ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b486c(_0x35d38e){_0x3afb4f(_0x35d38e)[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x1cab00=>{if(!_0x1cab00||_0x1cab00[_0x3039ea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3039ea([0x6f,0x6b]))return _0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x74048(_0x332680(_0x5ae2d1+_0x57cba8))!=_0x1cab00[_0x3039ea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3039ea([0x56,0x61,0x6c,0x69,0x64]);})[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x4dae67=>(_0x49b82c(),_0x4dae67),()=>{const _0x56db01=_0x5f5597();return null==_0x56db01?(_0x49b82c(),_0x3039ea([0x56,0x61,0x6c,0x69,0x64])):_0x3039ea(_0x2fd8e8-_0x56db01>(0x7753083a^_0x4541ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x3d2e13)[_0x3039ea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d2e13(_0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a8e45=0x536962ba^_0x4541ce;function _0x49b82c(){const _0x15e8c2=_0x3039ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x74048(_0x332680(_0x49479b)),_0x31d890=_0x7355c9(_0x74048(window[_0x3039ea([0x4d,0x61,0x74,0x68])][_0x3039ea([0x63,0x65,0x69,0x6c])](_0x2fd8e8/_0x1a8e45)));window[_0x3039ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3039ea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15e8c2,_0x31d890);}function _0x5f5597(){const _0x25bf8d=_0x3039ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x74048(_0x332680(_0x49479b)),_0x1cd3ee=window[_0x3039ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3039ea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25bf8d);return _0x1cd3ee?window[_0x3039ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7355c9(_0x1cd3ee),0x10)*_0x1a8e45:null;}function _0x3afb4f(_0x550d3a){return new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dc2c3,_0x513743)=>{_0x550d3a[_0x3039ea([0x74,0x68,0x65,0x6e])](_0x1dc2c3,_0x513743),window[_0x3039ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x513743,0x535e58fa^_0x4541ce);});}}_0xc347d8[_0x3039ea([0x6f,0x6e])](_0x3039ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46419a,_0x4a4318)=>{if(_0x4a4318[0x0]!=_0x49479b)return _0x3d2e13(_0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a4318[0x1]={..._0x4a4318[0x1],[_0x3039ea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ae2d1};},{[_0x3039ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3039ea([0x68,0x69,0x67,0x68])}),_0xc347d8[_0x3039ea([0x6f,0x6e])](_0x3039ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x238deb=>{_0x218ee9(_0x238deb[_0x3039ea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16ba07=!0x0,_0x2b486c(_0x238deb[_0x3039ea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3039ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3039ea([0x6c,0x6f,0x77])}),_0x3cc999[_0x3039ea([0x74,0x68,0x65,0x6e])](()=>{_0x16ba07||_0x3d2e13(_0x3039ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15cd64(){return _0xc347d8[_0x3039ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3039ea([0x76,0x69,0x65,0x77])][_0x3039ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3039ea([0x61,0x75,0x74,0x6f]);}function _0x28188a(){_0xc347d8[_0x3039ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3039ea([0x76,0x69,0x65,0x77])][_0x3039ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3039ea([0x61,0x75,0x74,0x6f]);}}function _0x66f322(_0x284cdb){const _0x4edb39=[new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3239d=>setTimeout(_0x3239d,0x5356b2f6^_0x4541ce)),_0x3cc999[_0x3039ea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ab921=>{let _0x3e1d9d=0x0;_0xc347d8[_0x3039ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039ea([0x6f,0x6e])](_0x3039ea([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52be21,_0x28cd54)=>{_0x28cd54[0x0][_0x3039ea([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e1d9d++,_0x3e1d9d==(0x535f89d2^_0x4541ce)&&(_0x5ab921(),_0x52be21[_0x3039ea([0x6f,0x66,0x66])]());});}))];return window[_0x3039ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3039ea([0x72,0x61,0x63,0x65])](_0x4edb39)[_0x3039ea([0x74,0x68,0x65,0x6e])](()=>_0x284cdb);}async function _0x41da02(){await _0x3cc999,_0xc347d8[_0x3039ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039ea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41cc37,_0xc347d8[_0x3039ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039ea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41cc37,_0xc347d8[_0x3039ea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3039ea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7e1707(_0x597936){const _0x56a4e5=_0x268afb();_0xc347d8[_0x56a4e5]=_0x3039ea([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x597936,_0x597936!=_0x3039ea([0x56,0x61,0x6c,0x69,0x64])&&_0x41da02();}function _0x268afb(){const _0x350c29=window[_0x3039ea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3039ea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3039ea([0x6e,0x6f,0x77])]())[_0x3039ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3039ea([0x2e]),'');let _0x26163e=_0x3039ea([0x68]);for(let _0x5ee444=0x0;_0x5ee444<_0x350c29[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ee444+=0x2){let _0x53665=window[_0x3039ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x350c29[_0x3039ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ee444,_0x5ee444+0x2));_0x53665>=_0x323d87[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53665-=_0x323d87[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26163e+=_0x323d87[_0x53665];}return _0x26163e;}function _0x162d23(){const _0x19aff6=_0x3ab3c8[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])](_0x3039ea([0x2e]));if(0x3!=_0x19aff6[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58eed5(_0x19aff6[0x1]);function _0x58eed5(_0x28d7f5){const _0x5861cc=_0xa90b74(_0x28d7f5);return _0x5861cc&&_0xf2de24()?_0x5861cc:null;function _0xf2de24(){const _0x5a262b=_0x5861cc[_0x3039ea([0x6a,0x74,0x69])],_0x56f1fd=window[_0x3039ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a262b[_0x3039ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a262b[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ff20e={..._0x5861cc,[_0x3039ea([0x6a,0x74,0x69])]:_0x5a262b[_0x3039ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a262b[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ff20e[_0x3039ea([0x76,0x63])],_0x332680(_0x4ff20e)==_0x56f1fd;}}}async function _0x195a05(){let _0x2fc717=!0x0;try{const _0x30235d=_0x3ab3c8[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])](_0x3039ea([0x2e])),[_0x2b54dd,_0x121916,_0x4b7d0c]=_0x30235d;return _0x5c629d(_0x2b54dd),await _0x2b4e9c(_0x2b54dd,_0x121916,_0x4b7d0c),_0x2fc717;}catch{return!0x1;}function _0x5c629d(_0xd6f028){const _0x11825b=_0xa90b74(_0xd6f028);_0x11825b&&_0x11825b[_0x3039ea([0x61,0x6c,0x67])]==_0x3039ea([0x45,0x53,0x32,0x35,0x36])||(_0x2fc717=!0x1);}async function _0x2b4e9c(_0x49fecf,_0x59f8e7,_0x423313){const _0x5a6635=window[_0x3039ea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3039ea([0x66,0x72,0x6f,0x6d])](_0x1e1f1f(_0x423313),_0x5bc9ce=>_0x5bc9ce[_0x3039ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xf4d78=new window[(_0x3039ea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3039ea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49fecf+_0x3039ea([0x2e])+_0x59f8e7),_0xdd8358=window[_0x3039ea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3039ea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdd8358)return;const _0x4a80c8=await _0xdd8358[_0x3039ea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3039ea([0x6a,0x77,0x6b]),_0x31710a,{[_0x3039ea([0x6e,0x61,0x6d,0x65])]:_0x3039ea([0x45,0x43,0x44,0x53,0x41]),[_0x3039ea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3039ea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3039ea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdd8358[_0x3039ea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3039ea([0x6e,0x61,0x6d,0x65])]:_0x3039ea([0x45,0x43,0x44,0x53,0x41]),[_0x3039ea([0x68,0x61,0x73,0x68])]:{[_0x3039ea([0x6e,0x61,0x6d,0x65])]:_0x3039ea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a80c8,_0x5a6635,_0xf4d78)||(_0x2fc717=!0x1);}}function _0xa90b74(_0x1d1b2a){return _0x1d1b2a[_0x3039ea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3039ea([0x65,0x79]))?JSON[_0x3039ea([0x70,0x61,0x72,0x73,0x65])](_0x1e1f1f(_0x1d1b2a)):null;}function _0x1e1f1f(_0x57ae3a){return window[_0x3039ea([0x61,0x74,0x6f,0x62])](_0x57ae3a[_0x3039ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3039ea([0x2b]))[_0x3039ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3039ea([0x2f])));}function _0x332680(_0x1403c8){let _0x2ed575=0x1505;function _0x2f5444(_0x5b49d8){for(let _0x5bd8cd=0x0;_0x5bd8cd<_0x5b49d8[_0x3039ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bd8cd++){const _0x42e78e=_0x5b49d8[_0x3039ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5bd8cd);_0x2ed575=(_0x2ed575<<0x5)+_0x2ed575+_0x42e78e,_0x2ed575&=_0x2ed575;}}function _0x19518c(_0x342c4c){Array[_0x3039ea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x342c4c)?_0x342c4c[_0x3039ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19518c):_0x342c4c&&typeof _0x342c4c==_0x3039ea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3039ea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x342c4c)[_0x3039ea([0x73,0x6f,0x72,0x74])]()[_0x3039ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cd065,_0x4ef3ff])=>{_0x2f5444(_0x1cd065),_0x19518c(_0x4ef3ff);}):_0x2f5444(window[_0x3039ea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x342c4c));}return _0x19518c(_0x1403c8),_0x2ed575>>>0x0;}function _0x74048(_0x3594eb){return _0x3594eb[_0x3039ea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3039ea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3039ea([0x30]));}function _0x7355c9(_0x10e8f2){return _0x10e8f2[_0x3039ea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3039ea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3039ea([0x6a,0x6f,0x69,0x6e])]('');}function _0x41cc37(){}function _0x3039ea(_0x2cfbc4){const _0x1af3ce=_0x5594;return _0x2cfbc4[_0x1af3ce(0xc1)](_0x19a2ef=>String[_0x1af3ce(0xe3)](_0x19a2ef))[_0x1af3ce(0xc5)]('');}_0x7e1707(await _0x3a7db0());}(this);}[_0x37deec(0xd3)](){const _0x455e10=_0x37deec,_0x4c6dee=this[_0x455e10(0xc6)][_0x455e10(0xba)][_0x455e10(0xd2)];_0x4c6dee[_0x455e10(0xcf)](_0x455e10(0xd8))&&_0x4c6dee[_0x455e10(0xca)](_0x455e10(0xd8),{'allowAttributes':[_0x455e10(0xd9)]}),_0x4c6dee[_0x455e10(0xcf)](_0x455e10(0xb3))&&_0x4c6dee[_0x455e10(0xca)](_0x455e10(0xb3),{'allowAttributes':[_0x455e10(0xd9)]});}[_0x37deec(0xbe)](){const _0x3b428d=_0x37deec,_0x43d69d=this[_0x3b428d(0xc6)];_0x43d69d[_0x3b428d(0xaf)][_0x3b428d(0xae)](_0x3b428d(0xaa))[_0x3b428d(0xbb)]({'model':_0x3b428d(0xd9),'view':_0x3b428d(0xc7)}),_0x43d69d[_0x3b428d(0xaf)][_0x3b428d(0xae)](_0x3b428d(0xa3))[_0x3b428d(0xc2)]({'model':{'key':_0x3b428d(0xd9),'value':_0x125383=>_0x125383[_0x3b428d(0xa5)](_0x3b428d(0xc7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x54bcf5=_0x43d69d[_0x3b428d(0x9e)][_0x3b428d(0xcd)](_0x3b428d(0xee));_0x54bcf5&&this[_0x3b428d(0xcc)](_0x54bcf5,_0x3b428d(0xbf),(_0x4b03f7,[_0x8b0105,_0x23b864])=>{const _0x804850=_0x3b428d;_0x8b0105[_0x804850(0xa8)](_0x804850(0xd9),_0x23b864);});}[_0x37deec(0xf1)](){const _0xe9ed60=_0x37deec,_0x894ea=this[_0xe9ed60(0xc6)][_0xe9ed60(0xe1)][_0xe9ed60(0xcd)](_0xe9ed60(0xe0))||{},_0x47981a=this[_0xe9ed60(0xc6)][_0xe9ed60(0xe1)][_0xe9ed60(0xcd)](_0xe9ed60(0xe7))||'';this[_0xe9ed60(0xe8)]=_0x530af2(_0x1b2f9a[_0xe9ed60(0xbc)],_0xe9ed60(0xef),{..._0x894ea,'pubkey':_0x47981a,'ctx-name':_0xe9ed60(0xa7)+this[_0xe9ed60(0xec)],'sourceList':'','imgOnly':_0xe9ed60(0xe6),'removeCopyright':_0xe9ed60(0xe6),'localeName':this[_0xe9ed60(0xc6)][_0xe9ed60(0xb0)][_0xe9ed60(0xb1)],'externalSourcesEmbedCss':_0xe9ed60(0xc9)}),this[_0xe9ed60(0xe8)][_0xe9ed60(0xd4)]=_0x50d322=>{const _0x253e55=_0xe9ed60;if(_0x253e55(0xeb)==_0x50d322)return _0x253e55(0xf2);},_0x1b2f9a[_0xe9ed60(0xbc)][_0xe9ed60(0xdd)][_0xe9ed60(0xf4)](this[_0xe9ed60(0xe8)]);}[_0x37deec(0xd0)](){const _0x333057=_0x37deec;this[_0x333057(0xc8)]=_0x530af2(_0x1b2f9a[_0x333057(0xbc)],_0x333057(0xe2),{'ctx-name':_0x333057(0xa7)+this[_0x333057(0xec)]}),_0x1b2f9a[_0x333057(0xbc)][_0x333057(0xdd)][_0x333057(0xf4)](this[_0x333057(0xc8)]);}[_0x37deec(0xdf)](){const _0x4b739b=_0x37deec,_0x305be6=this[_0x4b739b(0xc6)][_0x4b739b(0x9e)][_0x4b739b(0xcd)](_0x4b739b(0xe9));_0x305be6&&this[_0x4b739b(0xcc)](_0x305be6,_0x4b739b(0xac),()=>{const _0x350e14=_0x4b739b,_0x3fe8e2=this[_0x350e14(0xc6)][_0x350e14(0xba)][_0x350e14(0xbc)][_0x350e14(0xb6)][_0x350e14(0xce)]();_0x3fe8e2&&_0x3fe8e2[_0x350e14(0xa5)](_0x350e14(0xd9))&&this[_0x350e14(0xc6)][_0x350e14(0xb8)][_0x350e14(0xa2)][_0x350e14(0xed)](_0x350e14(0xea),()=>{const _0x5ccfb9=_0x350e14;_0xd90381(this[_0x5ccfb9(0xc6)],_0x3fe8e2);});});const _0x2c0b56=this[_0x4b739b(0xc6)][_0x4b739b(0x9e)][_0x4b739b(0xcd)](_0x4b739b(0xa9));_0x2c0b56&&this[_0x4b739b(0xcc)](_0x2c0b56,_0x4b739b(0xac),()=>{const _0x89a103=_0x4b739b,_0x48f37b=this[_0x89a103(0xc6)][_0x89a103(0xba)][_0x89a103(0xbc)][_0x89a103(0xb6)][_0x89a103(0xce)]();_0x48f37b&&_0x48f37b[_0x89a103(0xa5)](_0x89a103(0xd9))&&this[_0x89a103(0xc6)][_0x89a103(0xb8)][_0x89a103(0xa2)][_0x89a103(0xed)](_0x89a103(0xea),()=>{const _0x46fddc=_0x89a103;_0xd90381(this[_0x46fddc(0xc6)],_0x48f37b);});});}}
@@ -2,16 +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
- /**
6
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import { type Dialog } from '@ckeditor/ckeditor5-ui';
10
- import type { Editor } from '@ckeditor/ckeditor5-core';
11
- 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';
12
8
  declare const UploadcareImageEditController_base: {
13
- new (): import("@ckeditor/ckeditor5-utils").Observable;
14
- prototype: import("@ckeditor/ckeditor5-utils").Observable;
9
+ new (): import("ckeditor5/src/utils.js").Observable;
10
+ prototype: import("ckeditor5/src/utils.js").Observable;
15
11
  };
16
12
  /**
17
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 _0x5d0e2d,ObservableMixin as _0x57c09a}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5a6e09}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x481622}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x13a954}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x3a52ba}from'../../utils/uploadutils.js';import{getImageUrls as _0x46c1e5,getImageDimension as _0x1d6461}from'../../utils/editingutils.js';import{isAncestor as _0x4c863b}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x57c09a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xfd8347,_0x44aed3,_0x144fcc){super(),this['_editor']=_0xfd8347,this['_dialog']=_0x44aed3,this['_imageElement']=_0x144fcc,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 _0x59d622=this['_imageElement'],_0xbfebf5=_0x59d622['getAttribute']('uploadcareImageId'),_0x362ee6=_0x59d622['getAttribute']('src');if(_0xbfebf5)await this['_loadImageInfo'](_0xbfebf5,_0x362ee6);else{if(this['_imageCache']['has'](_0x362ee6)){const _0x3aaa0e=this['_imageCache']['get'](_0x362ee6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3aaa0e['url'],this['imageDimension']=_0x3aaa0e['dimension'],this['imageId']=_0x3aaa0e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xb7484d}=this['_editor'],t=_0xb7484d['t'],_0x4f6aa9=new _0x13a954(_0xb7484d,this['imageStatus'],this['_attributes']);_0x4f6aa9['bind']('status')['to'](this,'imageStatus'),_0x4f6aa9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4f6aa9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4f6aa9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4f6aa9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x481622,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4f6aa9,'position':_0x5a6e09['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4f6aa9['focus']();},'onHide':()=>{_0x4f6aa9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x46f6ef=>!_0x4c863b(_0x46f6ef,_0x4f6aa9['element'])}});}['_loadImageInfo'](_0x55bcb8,_0xda16ab){return _0x3a52ba['getInfo'](_0x55bcb8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4a41a8=>{const {width:_0x5dac93,height:_0x16d08a}=_0x4a41a8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xda16ab,this['imageDimension']={'width':_0x5dac93,'height':_0x16d08a},this['imageId']=_0x55bcb8;})['catch'](_0x35d8ef=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x35d8ef['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x11048a,_0x5cbc3b){return this['_getImageAsFile'](_0x11048a)['then'](_0x8d548a=>_0x3a52ba['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':_0x5cbc3b['signal'],'file':_0x8d548a,'onProgress':_0x3c310f=>{_0x3c310f&&_0x3c310f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3c310f['value']));}}))['then'](_0xb7ee8b=>{const {width:_0x2ec7e3,height:_0x1cd5d3}=_0xb7ee8b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb7ee8b['cdnUrl'],this['imageDimension']={'width':_0x2ec7e3,'height':_0x1cd5d3},this['imageId']=_0xb7ee8b['uuid'],this['imageUploadProgress']=null;const _0x570684=_0x11048a['getAttribute']('src');this['_imageCache']['set'](_0x570684,{'id':_0xb7ee8b['uuid'],'url':_0xb7ee8b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2f9b91=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2f9b91['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1a4503,_0x320a16){_0x1a4503['on']('apply',(_0x3ee266,_0x1204c1)=>{this['_replaceImage'](_0x320a16,_0x1204c1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1a4503['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1a4503['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2bf211,_0x4afa8a,_0x14ddde){const _0x467462=this['_editor'],{width:_0x32623b,height:_0x2fffa5}=_0x1d6461(_0x4afa8a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x16784b,imageSources:_0x3b6150}=_0x46c1e5(_0x4afa8a,_0x32623b);_0x467462['model']['change'](_0xda92f8=>{if('$graveyard'===_0x2bf211['root']['rootName']){_0x467462['execute']('insertImage',{'imageType':_0x2bf211['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2bf211['getAttributes']()),'uploadcareImageId':_0x14ddde,'src':_0x16784b,'sources':_0x3b6150,'width':_0x32623b,'height':_0x2fffa5}});const _0x16940c=_0x2bf211['getChildren']();_0x2bf211=_0x467462['model']['document']['selection']['getSelectedElement']();for(const _0x2bb226 of _0x16940c)_0xda92f8['append'](_0xda92f8['cloneElement'](_0x2bb226),_0x2bf211);}else _0xda92f8['setSelection'](_0x2bf211,'on'),_0x467462['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2bf211['getAttributes']()),'uploadcareImageId':_0x14ddde,'src':_0x16784b,'sources':_0x3b6150,'width':_0x32623b,'height':_0x2fffa5},_0x2bf211);_0xda92f8['setSelection'](_0x2bf211,'on');});}async['_getImageAsFile'](_0x2a7185){const _0x5847dc=_0x5d0e2d['window'],_0x3f9451=_0x5d0e2d['document']['location']['href'],_0x462f1e=new _0x5847dc['URL'](_0x2a7185['getAttribute']('src'),_0x3f9451);if('data:'===_0x462f1e['protocol']){const _0x316da6=_0x462f1e['href']['split'](','),_0x407172=_0x316da6[0x0]['match'](/:(.*?);/)[0x1],_0x2ed529=_0x407172['split']('/')[0x1],_0x27133a=_0x5847dc['atob'](_0x316da6[_0x316da6['length']-0x1]);let _0x43ef77=_0x27133a['length'];const _0x5126e9=new _0x5847dc['Uint8Array'](_0x43ef77);for(;_0x43ef77--;)_0x5126e9[_0x43ef77]=_0x27133a['charCodeAt'](_0x43ef77);return new _0x5847dc['File']([_0x5126e9],'image.'+_0x2ed529,{'type':_0x407172});}const _0xe7d946=_0x462f1e['href']['split']('/'),_0x3d383f=_0xe7d946[_0xe7d946['length']-0x1],_0x103f1=_0x3d383f['split']('.')[0x1];return _0x5847dc['fetch'](_0x462f1e['href'])['then'](_0x429a3c=>_0x429a3c['clone']()['blob']())['then'](_0x1c0e16=>new _0x5847dc['File']([_0x1c0e16],_0x3d383f,{'type':'image/'+_0x103f1}));}}
@@ -1,7 +1,3 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  /**
6
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
7
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -9,8 +5,8 @@
9
5
  /**
10
6
  * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformeditingview
11
7
  */
12
- import { type Locale } from '@ckeditor/ckeditor5-utils';
13
- import { View } from '@ckeditor/ckeditor5-ui';
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
14
10
  import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
15
11
  /**
16
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(_0x50861b,_0x241ef2){const _0x57309b=_0x5cff,_0x4d8d29=_0x50861b();while(!![]){try{const _0x41aea7=-parseInt(_0x57309b(0x17d))/0x1*(parseInt(_0x57309b(0x170))/0x2)+-parseInt(_0x57309b(0x175))/0x3*(parseInt(_0x57309b(0x180))/0x4)+-parseInt(_0x57309b(0x174))/0x5+-parseInt(_0x57309b(0x17f))/0x6+parseInt(_0x57309b(0x178))/0x7+parseInt(_0x57309b(0x172))/0x8*(parseInt(_0x57309b(0x176))/0x9)+parseInt(_0x57309b(0x17a))/0xa;if(_0x41aea7===_0x241ef2)break;else _0x4d8d29['push'](_0x4d8d29['shift']());}catch(_0x2a8bed){_0x4d8d29['push'](_0x4d8d29['shift']());}}}(_0x6697,0xac83f));import{View as _0x39cb4b}from'ckeditor5/src/ui.js';function _0x6697(){const _0x13f95e=['684250nXkCGd','806934ZGfAPS','18BeKmdc','image-edit','4031846gPeopd','uc-light','12610340bBOJKC','bindTemplate','uc-cloud-image-editor','424747RhICYM','setTemplate','3885648MKlmMd','4WVblkS','set','2betiem','ck-uploadcare-theme','1391176igbXgX','imageSrc'];_0x6697=function(){return _0x13f95e;};return _0x6697();}function _0x5cff(_0x3b7c56,_0x4b7917){const _0x66972f=_0x6697();return _0x5cff=function(_0x5cff34,_0x34c4d5){_0x5cff34=_0x5cff34-0x170;let _0x2db796=_0x66972f[_0x5cff34];return _0x2db796;},_0x5cff(_0x3b7c56,_0x4b7917);}export class UploadcareImageEditFormEditingView extends _0x39cb4b{constructor(_0x19625c,_0x4432de){const _0x315f57=_0x5cff;super(_0x19625c);const _0x188ba7=this[_0x315f57(0x17b)];this[_0x315f57(0x181)](_0x315f57(0x173),''),this[_0x315f57(0x17e)]({'tag':_0x315f57(0x17c),'attributes':{..._0x4432de,'class':[_0x315f57(0x179),_0x315f57(0x171)],'ctx-name':_0x315f57(0x177),'cdn-url':_0x188ba7['to'](_0x315f57(0x173))}});}}
@@ -2,12 +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
- /**
6
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
8
- */
9
- import { View } from '@ckeditor/ckeditor5-ui';
10
- import type { Locale } from '@ckeditor/ckeditor5-utils';
5
+ import { View } from 'ckeditor5/src/ui.js';
6
+ import type { Locale } from 'ckeditor5/src/utils.js';
11
7
  import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
12
8
  /**
13
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 _0x5c5468}from'ckeditor5/src/icons.js';import{ButtonView as _0x2192cc,IconView as _0x34c13a,View as _0x10e161}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x10e161{constructor(_0x7131ec){super(_0x7131ec);const t=_0x7131ec['t'];this['set']('errorType',null);const _0x52f168=new _0x2192cc(_0x7131ec);_0x52f168['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x52f168['withText']=!0x0,_0x52f168['class']='ck-button-action',_0x52f168['on']('execute',()=>{this['fire']('retry');}),_0x52f168['bind']('isVisible')['to'](this,'errorType',_0x269fd2=>'NotFound'!==_0x269fd2);const _0x1d2670=new _0x34c13a();_0x1d2670['content']=_0x5c5468,_0x1d2670['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xf9b286=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':[_0x1d2670,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xf9b286['to']('errorType',_0x1a9904=>t('NotFound'!==_0x1a9904?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x52f168]},{'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,7 +1,3 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  /**
6
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
7
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -9,8 +5,8 @@
9
5
  /**
10
6
  * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformloadingview
11
7
  */
12
- import { type Locale } from '@ckeditor/ckeditor5-utils';
13
- import { View } from '@ckeditor/ckeditor5-ui';
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
14
10
  /**
15
11
  * A class representing the form loading view of the Uploadcare image edit feature.
16
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 _0x9abc5e,View as _0x283085}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x283085{constructor(_0x19b369){super(_0x19b369);const t=_0x19b369['t'],_0x7f7ebd=this['bindTemplate'],_0x239082=new _0x9abc5e();_0x239082['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':[_0x239082,{'text':_0x7f7ebd['to']('imageUploadProgress',_0xd4cb59=>t('Loading\x20image...')+'\x20('+(_0xd4cb59||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,7 +1,3 @@
1
- /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
1
  /**
6
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
7
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
@@ -9,7 +5,7 @@
9
5
  /**
10
6
  * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformview
11
7
  */
12
- import { type Locale } from '@ckeditor/ckeditor5-utils';
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
13
9
  import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
14
10
  import { DialogFocusManagerView } from '../../utils/dialogfocusmanagerview.js';
15
11
  import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';