@ckeditor/ckeditor5-uploadcare 0.0.1 → 44.2.0-alpha.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 (434) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/LICENSE.md +5 -6
  3. package/README.md +35 -3
  4. package/build/translations/af.js +1 -0
  5. package/build/translations/ar.js +1 -0
  6. package/build/translations/ast.js +1 -0
  7. package/build/translations/az.js +1 -0
  8. package/build/translations/bg.js +1 -0
  9. package/build/translations/bn.js +1 -0
  10. package/build/translations/bs.js +1 -0
  11. package/build/translations/ca.js +1 -0
  12. package/build/translations/cs.js +1 -0
  13. package/build/translations/da.js +1 -0
  14. package/build/translations/de-ch.js +1 -0
  15. package/build/translations/de.js +1 -0
  16. package/build/translations/el.js +1 -0
  17. package/build/translations/en-au.js +1 -0
  18. package/build/translations/en-gb.js +1 -0
  19. package/build/translations/eo.js +1 -0
  20. package/build/translations/es-co.js +1 -0
  21. package/build/translations/es.js +1 -0
  22. package/build/translations/et.js +1 -0
  23. package/build/translations/eu.js +1 -0
  24. package/build/translations/fa.js +1 -0
  25. package/build/translations/fi.js +1 -0
  26. package/build/translations/fr.js +1 -0
  27. package/build/translations/gl.js +1 -0
  28. package/build/translations/gu.js +1 -0
  29. package/build/translations/he.js +1 -0
  30. package/build/translations/hi.js +1 -0
  31. package/build/translations/hr.js +1 -0
  32. package/build/translations/hu.js +1 -0
  33. package/build/translations/hy.js +1 -0
  34. package/build/translations/id.js +1 -0
  35. package/build/translations/it.js +1 -0
  36. package/build/translations/ja.js +1 -0
  37. package/build/translations/jv.js +1 -0
  38. package/build/translations/kk.js +1 -0
  39. package/build/translations/km.js +1 -0
  40. package/build/translations/kn.js +1 -0
  41. package/build/translations/ko.js +1 -0
  42. package/build/translations/ku.js +1 -0
  43. package/build/translations/lt.js +1 -0
  44. package/build/translations/lv.js +1 -0
  45. package/build/translations/ms.js +1 -0
  46. package/build/translations/nb.js +1 -0
  47. package/build/translations/ne.js +1 -0
  48. package/build/translations/nl.js +1 -0
  49. package/build/translations/no.js +1 -0
  50. package/build/translations/oc.js +1 -0
  51. package/build/translations/pl.js +1 -0
  52. package/build/translations/pt-br.js +1 -0
  53. package/build/translations/pt.js +1 -0
  54. package/build/translations/ro.js +1 -0
  55. package/build/translations/ru.js +1 -0
  56. package/build/translations/si.js +1 -0
  57. package/build/translations/sk.js +1 -0
  58. package/build/translations/sl.js +1 -0
  59. package/build/translations/sq.js +1 -0
  60. package/build/translations/sr-latn.js +1 -0
  61. package/build/translations/sr.js +1 -0
  62. package/build/translations/sv.js +1 -0
  63. package/build/translations/th.js +1 -0
  64. package/build/translations/ti.js +1 -0
  65. package/build/translations/tk.js +1 -0
  66. package/build/translations/tr.js +1 -0
  67. package/build/translations/tt.js +1 -0
  68. package/build/translations/ug.js +1 -0
  69. package/build/translations/uk.js +1 -0
  70. package/build/translations/ur.js +1 -0
  71. package/build/translations/uz.js +1 -0
  72. package/build/translations/vi.js +1 -0
  73. package/build/translations/zh-cn.js +1 -0
  74. package/build/translations/zh.js +1 -0
  75. package/build/uploadcare.js +5 -0
  76. package/ckeditor5-metadata.json +47 -0
  77. package/dist/index-content.css +5 -0
  78. package/dist/index-editor.css +265 -0
  79. package/dist/index.css +315 -0
  80. package/dist/index.js +25 -0
  81. package/dist/translations/af.d.ts +8 -0
  82. package/dist/translations/af.js +23 -0
  83. package/dist/translations/af.umd.js +23 -0
  84. package/dist/translations/ar.d.ts +8 -0
  85. package/dist/translations/ar.js +23 -0
  86. package/dist/translations/ar.umd.js +23 -0
  87. package/dist/translations/ast.d.ts +8 -0
  88. package/dist/translations/ast.js +23 -0
  89. package/dist/translations/ast.umd.js +23 -0
  90. package/dist/translations/az.d.ts +8 -0
  91. package/dist/translations/az.js +23 -0
  92. package/dist/translations/az.umd.js +23 -0
  93. package/dist/translations/bg.d.ts +8 -0
  94. package/dist/translations/bg.js +23 -0
  95. package/dist/translations/bg.umd.js +23 -0
  96. package/dist/translations/bn.d.ts +8 -0
  97. package/dist/translations/bn.js +23 -0
  98. package/dist/translations/bn.umd.js +23 -0
  99. package/dist/translations/bs.d.ts +8 -0
  100. package/dist/translations/bs.js +23 -0
  101. package/dist/translations/bs.umd.js +23 -0
  102. package/dist/translations/ca.d.ts +8 -0
  103. package/dist/translations/ca.js +23 -0
  104. package/dist/translations/ca.umd.js +23 -0
  105. package/dist/translations/cs.d.ts +8 -0
  106. package/dist/translations/cs.js +23 -0
  107. package/dist/translations/cs.umd.js +23 -0
  108. package/dist/translations/da.d.ts +8 -0
  109. package/dist/translations/da.js +23 -0
  110. package/dist/translations/da.umd.js +23 -0
  111. package/dist/translations/de-ch.d.ts +8 -0
  112. package/dist/translations/de-ch.js +23 -0
  113. package/dist/translations/de-ch.umd.js +23 -0
  114. package/dist/translations/de.d.ts +8 -0
  115. package/dist/translations/de.js +23 -0
  116. package/dist/translations/de.umd.js +23 -0
  117. package/dist/translations/el.d.ts +8 -0
  118. package/dist/translations/el.js +23 -0
  119. package/dist/translations/el.umd.js +23 -0
  120. package/dist/translations/en-au.d.ts +8 -0
  121. package/dist/translations/en-au.js +23 -0
  122. package/dist/translations/en-au.umd.js +23 -0
  123. package/dist/translations/en-gb.d.ts +8 -0
  124. package/dist/translations/en-gb.js +23 -0
  125. package/dist/translations/en-gb.umd.js +23 -0
  126. package/dist/translations/en.d.ts +8 -0
  127. package/dist/translations/en.js +23 -0
  128. package/dist/translations/en.umd.js +23 -0
  129. package/dist/translations/eo.d.ts +8 -0
  130. package/dist/translations/eo.js +23 -0
  131. package/dist/translations/eo.umd.js +23 -0
  132. package/dist/translations/es-co.d.ts +8 -0
  133. package/dist/translations/es-co.js +23 -0
  134. package/dist/translations/es-co.umd.js +23 -0
  135. package/dist/translations/es.d.ts +8 -0
  136. package/dist/translations/es.js +23 -0
  137. package/dist/translations/es.umd.js +23 -0
  138. package/dist/translations/et.d.ts +8 -0
  139. package/dist/translations/et.js +23 -0
  140. package/dist/translations/et.umd.js +23 -0
  141. package/dist/translations/eu.d.ts +8 -0
  142. package/dist/translations/eu.js +23 -0
  143. package/dist/translations/eu.umd.js +23 -0
  144. package/dist/translations/fa.d.ts +8 -0
  145. package/dist/translations/fa.js +23 -0
  146. package/dist/translations/fa.umd.js +23 -0
  147. package/dist/translations/fi.d.ts +8 -0
  148. package/dist/translations/fi.js +23 -0
  149. package/dist/translations/fi.umd.js +23 -0
  150. package/dist/translations/fr.d.ts +8 -0
  151. package/dist/translations/fr.js +23 -0
  152. package/dist/translations/fr.umd.js +23 -0
  153. package/dist/translations/gl.d.ts +8 -0
  154. package/dist/translations/gl.js +23 -0
  155. package/dist/translations/gl.umd.js +23 -0
  156. package/dist/translations/gu.d.ts +8 -0
  157. package/dist/translations/gu.js +23 -0
  158. package/dist/translations/gu.umd.js +23 -0
  159. package/dist/translations/he.d.ts +8 -0
  160. package/dist/translations/he.js +23 -0
  161. package/dist/translations/he.umd.js +23 -0
  162. package/dist/translations/hi.d.ts +8 -0
  163. package/dist/translations/hi.js +23 -0
  164. package/dist/translations/hi.umd.js +23 -0
  165. package/dist/translations/hr.d.ts +8 -0
  166. package/dist/translations/hr.js +23 -0
  167. package/dist/translations/hr.umd.js +23 -0
  168. package/dist/translations/hu.d.ts +8 -0
  169. package/dist/translations/hu.js +23 -0
  170. package/dist/translations/hu.umd.js +23 -0
  171. package/dist/translations/hy.d.ts +8 -0
  172. package/dist/translations/hy.js +23 -0
  173. package/dist/translations/hy.umd.js +23 -0
  174. package/dist/translations/id.d.ts +8 -0
  175. package/dist/translations/id.js +23 -0
  176. package/dist/translations/id.umd.js +23 -0
  177. package/dist/translations/it.d.ts +8 -0
  178. package/dist/translations/it.js +23 -0
  179. package/dist/translations/it.umd.js +23 -0
  180. package/dist/translations/ja.d.ts +8 -0
  181. package/dist/translations/ja.js +23 -0
  182. package/dist/translations/ja.umd.js +23 -0
  183. package/dist/translations/jv.d.ts +8 -0
  184. package/dist/translations/jv.js +23 -0
  185. package/dist/translations/jv.umd.js +23 -0
  186. package/dist/translations/kk.d.ts +8 -0
  187. package/dist/translations/kk.js +23 -0
  188. package/dist/translations/kk.umd.js +23 -0
  189. package/dist/translations/km.d.ts +8 -0
  190. package/dist/translations/km.js +23 -0
  191. package/dist/translations/km.umd.js +23 -0
  192. package/dist/translations/kn.d.ts +8 -0
  193. package/dist/translations/kn.js +23 -0
  194. package/dist/translations/kn.umd.js +23 -0
  195. package/dist/translations/ko.d.ts +8 -0
  196. package/dist/translations/ko.js +23 -0
  197. package/dist/translations/ko.umd.js +23 -0
  198. package/dist/translations/ku.d.ts +8 -0
  199. package/dist/translations/ku.js +23 -0
  200. package/dist/translations/ku.umd.js +23 -0
  201. package/dist/translations/lt.d.ts +8 -0
  202. package/dist/translations/lt.js +23 -0
  203. package/dist/translations/lt.umd.js +23 -0
  204. package/dist/translations/lv.d.ts +8 -0
  205. package/dist/translations/lv.js +23 -0
  206. package/dist/translations/lv.umd.js +23 -0
  207. package/dist/translations/ms.d.ts +8 -0
  208. package/dist/translations/ms.js +23 -0
  209. package/dist/translations/ms.umd.js +23 -0
  210. package/dist/translations/nb.d.ts +8 -0
  211. package/dist/translations/nb.js +23 -0
  212. package/dist/translations/nb.umd.js +23 -0
  213. package/dist/translations/ne.d.ts +8 -0
  214. package/dist/translations/ne.js +23 -0
  215. package/dist/translations/ne.umd.js +23 -0
  216. package/dist/translations/nl.d.ts +8 -0
  217. package/dist/translations/nl.js +23 -0
  218. package/dist/translations/nl.umd.js +23 -0
  219. package/dist/translations/no.d.ts +8 -0
  220. package/dist/translations/no.js +23 -0
  221. package/dist/translations/no.umd.js +23 -0
  222. package/dist/translations/oc.d.ts +8 -0
  223. package/dist/translations/oc.js +23 -0
  224. package/dist/translations/oc.umd.js +23 -0
  225. package/dist/translations/pl.d.ts +8 -0
  226. package/dist/translations/pl.js +23 -0
  227. package/dist/translations/pl.umd.js +23 -0
  228. package/dist/translations/pt-br.d.ts +8 -0
  229. package/dist/translations/pt-br.js +23 -0
  230. package/dist/translations/pt-br.umd.js +23 -0
  231. package/dist/translations/pt.d.ts +8 -0
  232. package/dist/translations/pt.js +23 -0
  233. package/dist/translations/pt.umd.js +23 -0
  234. package/dist/translations/ro.d.ts +8 -0
  235. package/dist/translations/ro.js +23 -0
  236. package/dist/translations/ro.umd.js +23 -0
  237. package/dist/translations/ru.d.ts +8 -0
  238. package/dist/translations/ru.js +23 -0
  239. package/dist/translations/ru.umd.js +23 -0
  240. package/dist/translations/si.d.ts +8 -0
  241. package/dist/translations/si.js +23 -0
  242. package/dist/translations/si.umd.js +23 -0
  243. package/dist/translations/sk.d.ts +8 -0
  244. package/dist/translations/sk.js +23 -0
  245. package/dist/translations/sk.umd.js +23 -0
  246. package/dist/translations/sl.d.ts +8 -0
  247. package/dist/translations/sl.js +23 -0
  248. package/dist/translations/sl.umd.js +23 -0
  249. package/dist/translations/sq.d.ts +8 -0
  250. package/dist/translations/sq.js +23 -0
  251. package/dist/translations/sq.umd.js +23 -0
  252. package/dist/translations/sr-latn.d.ts +8 -0
  253. package/dist/translations/sr-latn.js +23 -0
  254. package/dist/translations/sr-latn.umd.js +23 -0
  255. package/dist/translations/sr.d.ts +8 -0
  256. package/dist/translations/sr.js +23 -0
  257. package/dist/translations/sr.umd.js +23 -0
  258. package/dist/translations/sv.d.ts +8 -0
  259. package/dist/translations/sv.js +23 -0
  260. package/dist/translations/sv.umd.js +23 -0
  261. package/dist/translations/th.d.ts +8 -0
  262. package/dist/translations/th.js +23 -0
  263. package/dist/translations/th.umd.js +23 -0
  264. package/dist/translations/ti.d.ts +8 -0
  265. package/dist/translations/ti.js +23 -0
  266. package/dist/translations/ti.umd.js +23 -0
  267. package/dist/translations/tk.d.ts +8 -0
  268. package/dist/translations/tk.js +23 -0
  269. package/dist/translations/tk.umd.js +23 -0
  270. package/dist/translations/tr.d.ts +8 -0
  271. package/dist/translations/tr.js +23 -0
  272. package/dist/translations/tr.umd.js +23 -0
  273. package/dist/translations/tt.d.ts +8 -0
  274. package/dist/translations/tt.js +23 -0
  275. package/dist/translations/tt.umd.js +23 -0
  276. package/dist/translations/ug.d.ts +8 -0
  277. package/dist/translations/ug.js +23 -0
  278. package/dist/translations/ug.umd.js +23 -0
  279. package/dist/translations/uk.d.ts +8 -0
  280. package/dist/translations/uk.js +23 -0
  281. package/dist/translations/uk.umd.js +23 -0
  282. package/dist/translations/ur.d.ts +8 -0
  283. package/dist/translations/ur.js +23 -0
  284. package/dist/translations/ur.umd.js +23 -0
  285. package/dist/translations/uz.d.ts +8 -0
  286. package/dist/translations/uz.js +23 -0
  287. package/dist/translations/uz.umd.js +23 -0
  288. package/dist/translations/vi.d.ts +8 -0
  289. package/dist/translations/vi.js +23 -0
  290. package/dist/translations/vi.umd.js +23 -0
  291. package/dist/translations/zh-cn.d.ts +8 -0
  292. package/dist/translations/zh-cn.js +23 -0
  293. package/dist/translations/zh-cn.umd.js +23 -0
  294. package/dist/translations/zh.d.ts +8 -0
  295. package/dist/translations/zh.js +23 -0
  296. package/dist/translations/zh.umd.js +23 -0
  297. package/lang/contexts.json +27 -0
  298. package/lang/translations/af.po +112 -0
  299. package/lang/translations/ar.po +112 -0
  300. package/lang/translations/ast.po +112 -0
  301. package/lang/translations/az.po +112 -0
  302. package/lang/translations/bg.po +112 -0
  303. package/lang/translations/bn.po +112 -0
  304. package/lang/translations/bs.po +112 -0
  305. package/lang/translations/ca.po +112 -0
  306. package/lang/translations/cs.po +112 -0
  307. package/lang/translations/da.po +112 -0
  308. package/lang/translations/de-ch.po +112 -0
  309. package/lang/translations/de.po +112 -0
  310. package/lang/translations/el.po +112 -0
  311. package/lang/translations/en-au.po +112 -0
  312. package/lang/translations/en-gb.po +112 -0
  313. package/lang/translations/en.po +112 -0
  314. package/lang/translations/eo.po +112 -0
  315. package/lang/translations/es-co.po +112 -0
  316. package/lang/translations/es.po +112 -0
  317. package/lang/translations/et.po +112 -0
  318. package/lang/translations/eu.po +112 -0
  319. package/lang/translations/fa.po +112 -0
  320. package/lang/translations/fi.po +112 -0
  321. package/lang/translations/fr.po +112 -0
  322. package/lang/translations/gl.po +112 -0
  323. package/lang/translations/gu.po +112 -0
  324. package/lang/translations/he.po +112 -0
  325. package/lang/translations/hi.po +112 -0
  326. package/lang/translations/hr.po +112 -0
  327. package/lang/translations/hu.po +112 -0
  328. package/lang/translations/hy.po +112 -0
  329. package/lang/translations/id.po +112 -0
  330. package/lang/translations/it.po +112 -0
  331. package/lang/translations/ja.po +112 -0
  332. package/lang/translations/jv.po +112 -0
  333. package/lang/translations/kk.po +112 -0
  334. package/lang/translations/km.po +112 -0
  335. package/lang/translations/kn.po +112 -0
  336. package/lang/translations/ko.po +112 -0
  337. package/lang/translations/ku.po +112 -0
  338. package/lang/translations/lt.po +112 -0
  339. package/lang/translations/lv.po +112 -0
  340. package/lang/translations/ms.po +112 -0
  341. package/lang/translations/nb.po +112 -0
  342. package/lang/translations/ne.po +112 -0
  343. package/lang/translations/nl.po +112 -0
  344. package/lang/translations/no.po +112 -0
  345. package/lang/translations/oc.po +112 -0
  346. package/lang/translations/pl.po +112 -0
  347. package/lang/translations/pt-br.po +112 -0
  348. package/lang/translations/pt.po +112 -0
  349. package/lang/translations/ro.po +112 -0
  350. package/lang/translations/ru.po +112 -0
  351. package/lang/translations/si.po +112 -0
  352. package/lang/translations/sk.po +112 -0
  353. package/lang/translations/sl.po +112 -0
  354. package/lang/translations/sq.po +112 -0
  355. package/lang/translations/sr-latn.po +112 -0
  356. package/lang/translations/sr.po +112 -0
  357. package/lang/translations/sv.po +112 -0
  358. package/lang/translations/th.po +112 -0
  359. package/lang/translations/ti.po +112 -0
  360. package/lang/translations/tk.po +112 -0
  361. package/lang/translations/tr.po +112 -0
  362. package/lang/translations/tt.po +112 -0
  363. package/lang/translations/ug.po +112 -0
  364. package/lang/translations/uk.po +112 -0
  365. package/lang/translations/ur.po +112 -0
  366. package/lang/translations/uz.po +112 -0
  367. package/lang/translations/vi.po +112 -0
  368. package/lang/translations/zh-cn.po +112 -0
  369. package/lang/translations/zh.po +112 -0
  370. package/package.json +73 -7
  371. package/src/augmentation.d.ts +30 -0
  372. package/src/augmentation.js +23 -0
  373. package/src/index.d.ts +16 -0
  374. package/src/index.js +23 -0
  375. package/src/ui/uploadcarecontroller.d.ts +30 -0
  376. package/src/ui/uploadcarecontroller.js +24 -0
  377. package/src/ui/uploadcareformview.d.ts +23 -0
  378. package/src/ui/uploadcareformview.js +23 -0
  379. package/src/uploadcare.d.ts +48 -0
  380. package/src/uploadcare.js +23 -0
  381. package/src/uploadcarecommand.d.ts +38 -0
  382. package/src/uploadcarecommand.js +23 -0
  383. package/src/uploadcareconfig.d.ts +227 -0
  384. package/src/uploadcareconfig.js +23 -0
  385. package/src/uploadcareediting.d.ts +49 -0
  386. package/src/uploadcareediting.js +23 -0
  387. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +78 -0
  388. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +24 -0
  389. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +25 -0
  390. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +23 -0
  391. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +27 -0
  392. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +23 -0
  393. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +24 -0
  394. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +23 -0
  395. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +32 -0
  396. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +23 -0
  397. package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +49 -0
  398. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +23 -0
  399. package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +38 -0
  400. package/src/uploadcareimageedit/uploadcareimageeditediting.js +23 -0
  401. package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +48 -0
  402. package/src/uploadcareimageedit/uploadcareimageeditui.js +23 -0
  403. package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +23 -0
  404. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +23 -0
  405. package/src/uploadcareimageedit.d.ts +32 -0
  406. package/src/uploadcareimageedit.js +23 -0
  407. package/src/uploadcareui.d.ts +41 -0
  408. package/src/uploadcareui.js +23 -0
  409. package/src/uploadcareuploadadapter.d.ts +39 -0
  410. package/src/uploadcareuploadadapter.js +23 -0
  411. package/src/utils/common-translations.d.ts +5 -0
  412. package/src/utils/common-translations.js +23 -0
  413. package/src/utils/dialogfocusmanagerview.d.ts +29 -0
  414. package/src/utils/dialogfocusmanagerview.js +23 -0
  415. package/src/utils/editingutils.d.ts +5 -0
  416. package/src/utils/editingutils.js +23 -0
  417. package/src/utils/isancestor.d.ts +8 -0
  418. package/src/utils/isancestor.js +23 -0
  419. package/src/utils/uploadutils.d.ts +5 -0
  420. package/src/utils/uploadutils.js +23 -0
  421. package/theme/icons/dropbox.svg +11 -0
  422. package/theme/icons/error.svg +1 -0
  423. package/theme/icons/facebook.svg +11 -0
  424. package/theme/icons/google-drive.svg +11 -0
  425. package/theme/icons/google-photos.svg +11 -0
  426. package/theme/icons/image-upload.svg +11 -0
  427. package/theme/icons/instagram.svg +11 -0
  428. package/theme/icons/link.svg +11 -0
  429. package/theme/icons/local.svg +11 -0
  430. package/theme/icons/onedrive.svg +11 -0
  431. package/theme/icons/uploadcare-image-edit.svg +11 -0
  432. package/theme/uploadcare-form.css +198 -0
  433. package/theme/uploadcare-theme.css +20 -0
  434. package/theme/uploadcareimageedit.css +64 -0
@@ -0,0 +1,227 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module uploadcare/uploadcareconfig
7
+ * @publicApi
8
+ */
9
+ import type { ArrayOrItem } from 'ckeditor5/src/utils.js';
10
+ import type { ConfigType } from '@uploadcare/file-uploader';
11
+ /**
12
+ * The configuration of the {@link module:uploadcare/uploadcare~Uploadcare Uploadcare feature}.
13
+ *
14
+ * The minimal configuration for the Uploadcare feature requires providing the
15
+ * {@link module:uploadcare/uploadcareconfig~UploadcareConfig#pubkey `config.uploadcare.pubkey`}:
16
+ *
17
+ * ```ts
18
+ * ClassicEditor
19
+ * .create( editorElement, {
20
+ * uploadcare: {
21
+ * pubkey: 'YOUR_PUBLIC_KEY'
22
+ * }
23
+ * } )
24
+ * .then( ... )
25
+ * .catch( ... );
26
+ * ```
27
+ *
28
+ * However, you can also adjust the feature to fit your needs:
29
+ *
30
+ * ```ts
31
+ * ClassicEditor
32
+ * .create( editorElement, {
33
+ * uploadcare: {
34
+ * uploader: {
35
+ * sourceList: [
36
+ * 'local',
37
+ * 'url',
38
+ * 'instagram',
39
+ * 'gdrive'
40
+ * ],
41
+ * },
42
+ * pubkey: 'YOUR_PUBLIC_KEY'
43
+ * }
44
+ * } )
45
+ * .then( ... )
46
+ * .catch( ... );
47
+ * ```
48
+ *
49
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
50
+ */
51
+ export interface UploadcareConfig extends Omit<ConfigType, ExcludedKeys | 'sourceList'> {
52
+ /**
53
+ * The public key used for communication with the Uploadcare services.
54
+ *
55
+ * It will be used by both the File Uploader and Image Editor components.
56
+ */
57
+ pubkey: string;
58
+ /**
59
+ * Configuration that will be passed to the File Uploader component.
60
+ *
61
+ * You can find detailed information in the [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/options/).
62
+ *
63
+ * Please note that the source list is limited to the following values:
64
+ * * 'local'
65
+ * * 'url'
66
+ * * 'dropbox'
67
+ * * 'gdrive'
68
+ * * 'facebook'
69
+ * * 'gphotos'
70
+ * * 'instagram'
71
+ * * 'onedrive'
72
+ *
73
+ * Additionally, below options are not supported:
74
+ * * `imgOnly` - It's `true` by default.
75
+ * * `removeCopyright` - It's `true` by default.
76
+ * * `localeName` - The editor language is used.
77
+ * * `confirmUpload` - It's `false` by default.
78
+ * * `cameraMirror` - The `camera` source is not supported.
79
+ * * `cameraCapture` - The `camera` source is not supported.
80
+ * * `showEmptyList` - It's `false` by default.
81
+ *
82
+ * All other options documented in the Uploadcare documentation are supported.
83
+ */
84
+ uploader: UploadcareUploaderConfig;
85
+ /**
86
+ * Configuration for the Image Editor component. The component allows editing existing images in the CKEditor.
87
+ *
88
+ * You can find detailed information in the
89
+ * [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/image-editor/#configuration).
90
+ *
91
+ * Please note that the `cdn-url` and `uuid` attributes are automatically handled by the Uploadcare plugin and
92
+ * are not supported in the config options.
93
+ */
94
+ editor: UploadcareEditorConfig;
95
+ /**
96
+ * Allows editing images that are not hosted in Uploadcare service.
97
+ *
98
+ * This configuration option should whitelist URL(s) of images that should be editable.
99
+ *
100
+ * The image is editable if this option is:
101
+ * * a regular expression and it matches the image URL, or
102
+ * * a custom function that returns `true` for the image URL, or
103
+ * * `'origin'` literal and the image URL is from the same origin, or
104
+ * * an array of the above and the image URL matches one of the array elements.
105
+ *
106
+ * Images hosted in Uploadcare are always editable.
107
+ *
108
+ * @default []
109
+ */
110
+ allowExternalImagesEditing?: ArrayOrItem<RegExp | 'origin' | ((src: string) => boolean)>;
111
+ }
112
+ /**
113
+ * Configuration interface for the Uploadcare File Uploader component.
114
+ *
115
+ * This interface extends the Uploadcare config, excluding certain keys that are either not supported or have been modified.
116
+ *
117
+ * You can find detailed information in the [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/options/).
118
+ */
119
+ export interface UploadcareUploaderConfig extends Omit<ConfigType, ExcludedKeys | 'sourceList'> {
120
+ /**
121
+ * Comma-separated list of file sources.
122
+ *
123
+ * @default [ 'local', 'url' ]
124
+ */
125
+ sourceList?: Array<UploadcareSource>;
126
+ }
127
+ /**
128
+ * Configuration for the Uploadcare Image Editor component.
129
+ *
130
+ * You can find detailed information in the
131
+ * [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/image-editor/#configuration).
132
+ */
133
+ export interface UploadcareEditorConfig {
134
+ 'crop-preset'?: string;
135
+ tabs?: string;
136
+ }
137
+ /**
138
+ * All not supported config options.
139
+ */
140
+ type ExcludedKeys = 'imgOnly' | 'removeCopyright' | 'localeName' | 'confirmUpload' | 'cameraMirror' | 'cameraCapture' | 'showEmptyList';
141
+ /**
142
+ * Definition of all available upload sources.
143
+ */
144
+ export declare enum UploadcareSource {
145
+ Local = "local",
146
+ URL = "url",
147
+ Dropbox = "dropbox",
148
+ GDrive = "gdrive",
149
+ Facebook = "facebook",
150
+ GPhotos = "gphotos",
151
+ Instagram = "instagram",
152
+ OneDrive = "onedrive"
153
+ }
154
+ /**
155
+ * Image asset definition.
156
+ *
157
+ * The definition contains the unique `id`, asset `type`, `url` and `attributes`.
158
+ */
159
+ export interface UploadcareAssetImageDefinition {
160
+ /**
161
+ * An unique asset id.
162
+ */
163
+ id: string;
164
+ /**
165
+ * Asset type.
166
+ */
167
+ type: 'image';
168
+ /**
169
+ * Asset attributes.
170
+ */
171
+ attributes: UploadcareAssetImageAttributesDefinition;
172
+ }
173
+ /**
174
+ * Asset attributes definition for an image.
175
+ *
176
+ * The definition contains the `imageFallbackUrl`, an `imageSources` array with one image source definition object and the
177
+ * `imageTextAlternative`.
178
+ *
179
+ * ```ts
180
+ * {
181
+ * imageFallbackUrl: 'https://example.com/assets/asset-id/images/1000.png',
182
+ * imageSources: [
183
+ * {
184
+ * sizes: '1000px',
185
+ * srcset:
186
+ * 'https://example.com/assets/asset-id/images/100.webp 100w,' +
187
+ * 'https://example.com/assets/asset-id/images/200.webp 200w,' +
188
+ * 'https://example.com/assets/asset-id/images/300.webp 300w,' +
189
+ * 'https://example.com/assets/asset-id/images/400.webp 400w,' +
190
+ * 'https://example.com/assets/asset-id/images/500.webp 500w,' +
191
+ * 'https://example.com/assets/asset-id/images/600.webp 600w,' +
192
+ * 'https://example.com/assets/asset-id/images/700.webp 700w,' +
193
+ * 'https://example.com/assets/asset-id/images/800.webp 800w,' +
194
+ * 'https://example.com/assets/asset-id/images/900.webp 900w,' +
195
+ * 'https://example.com/assets/asset-id/images/1000.webp 1000w',
196
+ * type: 'image/webp'
197
+ * }
198
+ * ]
199
+ * }
200
+ * ```
201
+ */
202
+ export interface UploadcareAssetImageAttributesDefinition {
203
+ /**
204
+ * A fallback URL for browsers that do not support the "webp" format.
205
+ */
206
+ imageFallbackUrl: string;
207
+ /**
208
+ * An array containing one image source definition object.
209
+ */
210
+ imageSources: Array<{
211
+ srcset: string;
212
+ sizes: string;
213
+ type: string;
214
+ }>;
215
+ /**
216
+ * An alternative text for an image.
217
+ */
218
+ imageTextAlternative?: string;
219
+ /**
220
+ * An image dimension (width and height).
221
+ */
222
+ imageDimension: {
223
+ width: number;
224
+ height: number;
225
+ };
226
+ }
227
+ export {};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, 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 _0x4bcc(){var _0x4fe68b=['local','1685708hPorNL','7CZogym','onedrive','Local','gphotos','4659032IWNiRb','6EJaPgc','6892056ERYCXr','40hUSfqk','Dropbox','1088676yZevuq','dropbox','facebook','3492110iAExlx','Facebook','gdrive','url','GDrive','URL','242494kVHuEM','OneDrive','556899JpGUVX','GPhotos','Instagram','instagram'];_0x4bcc=function(){return _0x4fe68b;};return _0x4bcc();}(function(_0x339218,_0x1dff9d){var _0x416413=_0x49fb,_0x25fa6a=_0x339218();while(!![]){try{var _0x523550=-parseInt(_0x416413(0x1e6))/0x1+-parseInt(_0x416413(0x1f3))/0x2*(parseInt(_0x416413(0x1e8))/0x3)+-parseInt(_0x416413(0x1ed))/0x4+-parseInt(_0x416413(0x1fa))/0x5+parseInt(_0x416413(0x1f7))/0x6*(-parseInt(_0x416413(0x1ee))/0x7)+-parseInt(_0x416413(0x1f2))/0x8+parseInt(_0x416413(0x1f4))/0x9*(parseInt(_0x416413(0x1f5))/0xa);if(_0x523550===_0x1dff9d)break;else _0x25fa6a['push'](_0x25fa6a['shift']());}catch(_0x492e0d){_0x25fa6a['push'](_0x25fa6a['shift']());}}}(_0x4bcc,0x5cca5));function _0x49fb(_0x2696a8,_0x19a1b0){var _0x4bcc8f=_0x4bcc();return _0x49fb=function(_0x49fb3a,_0x15be0e){_0x49fb3a=_0x49fb3a-0x1e4;var _0x7829e2=_0x4bcc8f[_0x49fb3a];return _0x7829e2;},_0x49fb(_0x2696a8,_0x19a1b0);}export var UploadcareSource;!function(_0x97d34d){var _0x453499=_0x49fb;_0x97d34d[_0x453499(0x1f0)]=_0x453499(0x1ec),_0x97d34d[_0x453499(0x1e5)]=_0x453499(0x1fd),_0x97d34d[_0x453499(0x1f6)]=_0x453499(0x1f8),_0x97d34d[_0x453499(0x1e4)]=_0x453499(0x1fc),_0x97d34d[_0x453499(0x1fb)]=_0x453499(0x1f9),_0x97d34d[_0x453499(0x1e9)]=_0x453499(0x1f1),_0x97d34d[_0x453499(0x1ea)]=_0x453499(0x1eb),_0x97d34d[_0x453499(0x1e7)]=_0x453499(0x1ef);}(UploadcareSource||(UploadcareSource={}));
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module uploadcare/uploadcareediting
7
+ * @publicApi
8
+ */
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ import { Dialog } from 'ckeditor5/src/ui.js';
11
+ import UploadcareUploadAdapter from './uploadcareuploadadapter.js';
12
+ import type { UploaderBlock } from '@uploadcare/file-uploader';
13
+ /**
14
+ * The Uploadcare editing feature. It introduces the {@link module:uploadcare/uploadcarecommand~UploadcareCommand command}.
15
+ */
16
+ export default class UploadcareEditing extends Plugin {
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "UploadcareEditing";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get requires(): readonly ["PictureEditing", typeof UploadcareUploadAdapter, typeof Dialog];
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get isOfficialPlugin(): true;
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ static get isPremiumPlugin(): true;
33
+ /**
34
+ * Returns the DOM element that represents the Uploadcare config web component.
35
+ */
36
+ get configElement(): HTMLElement | null;
37
+ /**
38
+ * Returns the DOM element associated with the Uploadcare context web component.
39
+ */
40
+ get ctxElement(): UploaderBlock | null;
41
+ /**
42
+ * @inheritDoc
43
+ */
44
+ init(): void;
45
+ /**
46
+ * @inheritDoc
47
+ */
48
+ afterInit(): void;
49
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, 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 _0x2dfcf7=_0x2c0c;(function(_0x1d4e63,_0x54476f){const _0x39ca08=_0x2c0c,_0x28cefe=_0x1d4e63();while(!![]){try{const _0x4f1be6=parseInt(_0x39ca08(0x140))/0x1*(parseInt(_0x39ca08(0x129))/0x2)+parseInt(_0x39ca08(0x146))/0x3*(parseInt(_0x39ca08(0x154))/0x4)+parseInt(_0x39ca08(0x104))/0x5+-parseInt(_0x39ca08(0x138))/0x6+-parseInt(_0x39ca08(0x108))/0x7+parseInt(_0x39ca08(0x11b))/0x8+parseInt(_0x39ca08(0x130))/0x9*(parseInt(_0x39ca08(0x109))/0xa);if(_0x4f1be6===_0x54476f)break;else _0x28cefe['push'](_0x28cefe['shift']());}catch(_0x1c1993){_0x28cefe['push'](_0x28cefe['shift']());}}}(_0x51ec,0x6de54));import{Plugin as _0x3b14ec}from'ckeditor5/src/core.js';import{Dialog as _0x3a5f7e}from'ckeditor5/src/ui.js';import{createElement as _0x400a30,global as _0x5d1e1e,uid as _0x309b03}from'ckeditor5/src/utils.js';import _0x2d9251 from'./uploadcarecommand.js';import _0x2fda89 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3ce622}from'./utils/editingutils.js';function _0x2c0c(_0x5138c7,_0xa25b1){const _0x51ec14=_0x51ec();return _0x2c0c=function(_0x2c0cfa,_0x1b9b7d){_0x2c0cfa=_0x2c0cfa-0x104;let _0x4ca7ae=_0x51ec14[_0x2c0cfa];return _0x4ca7ae;},_0x2c0c(_0x5138c7,_0xa25b1);}export default class i extends _0x3b14ec{constructor(){const _0x278303=_0x2c0c;super(...arguments),this[_0x278303(0x13e)]=null,this[_0x278303(0x116)]=null;}static get[_0x2dfcf7(0x10b)](){const _0x32bb08=_0x2dfcf7;return _0x32bb08(0x141);}static get[_0x2dfcf7(0x155)](){const _0x27bed3=_0x2dfcf7;return[_0x27bed3(0x106),_0x2fda89,_0x3a5f7e];}static get[_0x2dfcf7(0x152)](){return!0x0;}static get[_0x2dfcf7(0x12c)](){return!0x0;}get[_0x2dfcf7(0x110)](){const _0x5c2849=_0x2dfcf7;return this[_0x5c2849(0x13e)];}get[_0x2dfcf7(0x133)](){const _0x519f40=_0x2dfcf7;return this[_0x519f40(0x116)];}[_0x2dfcf7(0x145)](){const _0x356c56=_0x2dfcf7,_0x4658a4=this[_0x356c56(0x153)];_0x4658a4[_0x356c56(0x156)][_0x356c56(0x122)](_0x356c56(0x115),new _0x2d9251(_0x4658a4));}[_0x2dfcf7(0x14a)](){const _0x3b5cb9=_0x2dfcf7;this[_0x3b5cb9(0x14d)](),this[_0x3b5cb9(0x128)](),this[_0x3b5cb9(0x13f)](),this[_0x3b5cb9(0x10c)](),this[_0x3b5cb9(0x157)](),this[_0x3b5cb9(0x123)](this[_0x3b5cb9(0x153)],_0x3b5cb9(0x118),()=>{const _0x3ecd2b=_0x3b5cb9;this[_0x3ecd2b(0x13e)]&&(this[_0x3ecd2b(0x13e)][_0x3ecd2b(0x126)](),this[_0x3ecd2b(0x13e)]=null),this[_0x3ecd2b(0x116)]&&(this[_0x3ecd2b(0x116)][_0x3ecd2b(0x126)](),this[_0x3ecd2b(0x116)]=null);const _0x421416=_0x5d1e1e[_0x3ecd2b(0x14c)][_0x3ecd2b(0x148)](_0x3ecd2b(0x13a));_0x421416&&_0x421416[_0x3ecd2b(0x126)]();}),async function(_0x501f08){const _0x44840b=_0x572cae([0x5a,0x50,0x69,0x53,0x41,0x54,0x62,0x32,0x49,0x48,0x78,0x6d,0x31,0x6e,0x34,0x37,0x61,0x4e,0x6a,0x38,0x43,0x51,0x71,0x36,0x64,0x75,0x59,0x57,0x44,0x58,0x76,0x47,0x77,0x4a,0x55,0x70,0x30,0x7a,0x73,0x52,0x72,0x68,0x45,0x79,0x35,0x66,0x56,0x74,0x6c,0x39,0x6b,0x42,0x4d,0x6f,0x46,0x4b,0x63,0x67,0x33,0x4c,0x4f,0x65]),_0x10d48b=0x235e9458,_0x4797be=0x2359c9a0^_0x10d48b,_0x29d8e6=window[_0x572cae([0x44,0x61,0x74,0x65])][_0x572cae([0x6e,0x6f,0x77])](),_0xdd7576=_0x501f08[_0x572cae([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x584e01=new window[(_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x96cb93=>{_0xdd7576[_0x572cae([0x6f,0x6e,0x63,0x65])](_0x572cae([0x72,0x65,0x61,0x64,0x79]),_0x96cb93);}),_0x51d6d7={[_0x572cae([0x6b,0x74,0x79])]:_0x572cae([0x45,0x43]),[_0x572cae([0x75,0x73,0x65])]:_0x572cae([0x73,0x69,0x67]),[_0x572cae([0x63,0x72,0x76])]:_0x572cae([0x50,0x2d,0x32,0x35,0x36]),[_0x572cae([0x78])]:_0x572cae([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]),[_0x572cae([0x79])]:_0x572cae([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]),[_0x572cae([0x61,0x6c,0x67])]:_0x572cae([0x45,0x53,0x32,0x35,0x36])},_0x53a083=_0xdd7576[_0x572cae([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x572cae([0x67,0x65,0x74])](_0x572cae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59512b(){let _0x38c3bc,_0x217485=null,_0x3787b7=null;try{if(_0x53a083==_0x572cae([0x47,0x50,0x4c]))return _0x572cae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38c3bc=_0x408e02(),!_0x38c3bc)return _0x572cae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38c3bc[_0x572cae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3787b7=_0x4255dc(_0x38c3bc[_0x572cae([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38c3bc[_0x572cae([0x6a,0x74,0x69])])),await _0xe35cdc()?_0x5acbe8()?_0x57fcc9()?_0x572cae([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13abec()?(_0x38c3bc[_0x572cae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x572cae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x217485=_0x54f79d(_0x572cae([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x38c3bc[_0x572cae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x572cae([0x74,0x72,0x69,0x61,0x6c])&&(_0x217485=_0x54f79d(_0x572cae([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c9cd4()):_0x572cae([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x572cae([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x572cae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x26acd7){return _0x572cae([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57fcc9(){const _0x277801=[_0x572cae([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x572cae([0x74,0x72,0x69,0x61,0x6c])][_0x572cae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c3bc[_0x572cae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29d8e6/0x3e8:0xe10*_0x4797be;return _0x38c3bc[_0x572cae([0x65,0x78,0x70])]<_0x277801;}function _0x5acbe8(){const _0x15cc08=_0x38c3bc[_0x572cae([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15cc08&&(!!_0x15cc08[_0x572cae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572cae([0x2a]))||!!_0x15cc08[_0x572cae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572cae([0x55,0x50,0x4c,0x43])));}function _0x13abec(){const _0x20262d=_0x2c0c,_0x4d0446=_0x38c3bc[_0x572cae([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d0446||0x0==_0x4d0446[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23eae0}=new URL(window[_0x572cae([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x20262d(0x131)]);if(_0x4d0446[_0x572cae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23eae0))return!0x0;const _0x8378fe=_0x23eae0[_0x572cae([0x73,0x70,0x6c,0x69,0x74])](_0x572cae([0x2e]));return _0x4d0446[_0x572cae([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x421d37=>_0x421d37[_0x572cae([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572cae([0x2a])))[_0x572cae([0x6d,0x61,0x70])](_0x32b12a=>_0x32b12a[_0x572cae([0x73,0x70,0x6c,0x69,0x74])](_0x572cae([0x2e])))[_0x572cae([0x73,0x6f,0x6d,0x65])](_0x2a9406=>_0x8378fe[_0x572cae([0x65,0x76,0x65,0x72,0x79])]((_0x45e3f6,_0x40d436)=>_0x2a9406[_0x40d436]===_0x45e3f6||_0x2a9406[_0x40d436]===_0x572cae([0x2a])));}function _0x5c9cd4(){return _0x217485&&_0x3787b7?new window[(_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d1a4f,_0x471641)=>{_0x217485[_0x572cae([0x74,0x68,0x65,0x6e])](_0x1d1a4f,_0x471641),_0x3787b7[_0x572cae([0x74,0x68,0x65,0x6e])](_0x4f43b5=>{_0x4f43b5!=_0x572cae([0x56,0x61,0x6c,0x69,0x64])&&_0x1d1a4f(_0x4f43b5);},_0x471641);}):_0x217485||_0x3787b7||_0x572cae([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4255dc(_0x1826cb,_0x2c8498){return new window[(_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x989857=>{if(_0x3598d5())return _0x989857(_0x572cae([0x56,0x61,0x6c,0x69,0x64]));_0x281f28(),_0xdd7576[_0x572cae([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x572cae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ed308=!0x1;const _0x105c73=_0x309b03();function _0x4908d8(_0x1547d9){return!!_0x1547d9&&(typeof _0x1547d9===_0x572cae([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1547d9===_0x572cae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1547d9[_0x572cae([0x74,0x68,0x65,0x6e])]===_0x572cae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1547d9[_0x572cae([0x63,0x61,0x74,0x63,0x68])]===_0x572cae([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41a36f(_0x1d4094){_0x56c442(_0x1d4094)[_0x572cae([0x74,0x68,0x65,0x6e])](_0x1c05e9=>{if(!_0x1c05e9||_0x1c05e9[_0x572cae([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x572cae([0x6f,0x6b]))return _0x572cae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41962c(_0x447600(_0x105c73+_0x2c8498))!=_0x1c05e9[_0x572cae([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x572cae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x572cae([0x56,0x61,0x6c,0x69,0x64]);})[_0x572cae([0x74,0x68,0x65,0x6e])](_0xe424bf=>(_0xc02917(),_0xe424bf),()=>{const _0x48e48c=_0x9fa738();return null==_0x48e48c?(_0xc02917(),_0x572cae([0x56,0x61,0x6c,0x69,0x64])):_0x572cae(_0x29d8e6-_0x48e48c>(0x7521058^_0x10d48b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x572cae([0x74,0x68,0x65,0x6e])](_0x989857)[_0x572cae([0x63,0x61,0x74,0x63,0x68])](()=>{_0x989857(_0x572cae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13dc18=0x23687ad8^_0x10d48b;function _0xc02917(){const _0x22d9a7=_0x572cae([0x6c,0x6c,0x63,0x74,0x2d])+_0x41962c(_0x447600(_0x1826cb)),_0x2eadcc=_0x55fb18(_0x41962c(window[_0x572cae([0x4d,0x61,0x74,0x68])][_0x572cae([0x63,0x65,0x69,0x6c])](_0x29d8e6/_0x13dc18)));window[_0x572cae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x572cae([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22d9a7,_0x2eadcc);}function _0x9fa738(){const _0x3906ea=_0x572cae([0x6c,0x6c,0x63,0x74,0x2d])+_0x41962c(_0x447600(_0x1826cb)),_0xc4aee6=window[_0x572cae([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x572cae([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3906ea);return _0xc4aee6?window[_0x572cae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55fb18(_0xc4aee6),0x10)*_0x13dc18:null;}function _0x56c442(_0x1de1b5){return new window[(_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d9393,_0x36614b)=>{_0x1de1b5[_0x572cae([0x74,0x68,0x65,0x6e])](_0x5d9393,_0x36614b),window[_0x572cae([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36614b,0x235f4098^_0x10d48b);});}}_0xdd7576[_0x572cae([0x6f,0x6e])](_0x572cae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5575b2,_0x35ca17)=>{if(_0x35ca17[0x0]!=_0x1826cb)return _0x989857(_0x572cae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35ca17[0x1]={..._0x35ca17[0x1],[_0x572cae([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x105c73};},{[_0x572cae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x572cae([0x68,0x69,0x67,0x68])}),_0xdd7576[_0x572cae([0x6f,0x6e])](_0x572cae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10b4e2=>{_0x4908d8(_0x10b4e2[_0x572cae([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ed308=!0x0,_0x41a36f(_0x10b4e2[_0x572cae([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x572cae([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x572cae([0x6c,0x6f,0x77])}),_0x584e01[_0x572cae([0x74,0x68,0x65,0x6e])](()=>{_0x2ed308||_0x989857(_0x572cae([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3598d5(){return _0xdd7576[_0x572cae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x572cae([0x76,0x69,0x65,0x77])][_0x572cae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x572cae([0x61,0x75,0x74,0x6f]);}function _0x281f28(){_0xdd7576[_0x572cae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x572cae([0x76,0x69,0x65,0x77])][_0x572cae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x572cae([0x61,0x75,0x74,0x6f]);}}function _0x54f79d(_0x4eec90){const _0x3eacb2=[new window[(_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57c41f=>setTimeout(_0x57c41f,0x2357aa94^_0x10d48b)),_0x584e01[_0x572cae([0x74,0x68,0x65,0x6e])](()=>new window[(_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eb346=>{let _0x1a7966=0x0;_0xdd7576[_0x572cae([0x6d,0x6f,0x64,0x65,0x6c])][_0x572cae([0x6f,0x6e])](_0x572cae([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29306e,_0x2f23f4)=>{_0x2f23f4[0x0][_0x572cae([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a7966++,_0x1a7966==(0x235e95a0^_0x10d48b)&&(_0x4eb346(),_0x29306e[_0x572cae([0x6f,0x66,0x66])]());});}))];return window[_0x572cae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x572cae([0x72,0x61,0x63,0x65])](_0x3eacb2)[_0x572cae([0x74,0x68,0x65,0x6e])](()=>_0x4eec90);}async function _0x3f95d2(){await _0x584e01,_0xdd7576[_0x572cae([0x6d,0x6f,0x64,0x65,0x6c])][_0x572cae([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2bb386,_0xdd7576[_0x572cae([0x6d,0x6f,0x64,0x65,0x6c])][_0x572cae([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2bb386,_0xdd7576[_0x572cae([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x572cae([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc77ad7(_0x43b01f){const _0x192207=_0x4f8b1f();_0xdd7576[_0x192207]=_0x572cae([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43b01f,_0x43b01f!=_0x572cae([0x56,0x61,0x6c,0x69,0x64])&&_0x3f95d2();}function _0x4f8b1f(){const _0x3c12de=window[_0x572cae([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x572cae([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x572cae([0x6e,0x6f,0x77])]())[_0x572cae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x572cae([0x2e]),'');let _0x5787a7=_0x572cae([0x5a]);for(let _0x238144=0x0;_0x238144<_0x3c12de[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x238144+=0x2){let _0x382bc4=window[_0x572cae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c12de[_0x572cae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x238144,_0x238144+0x2));_0x382bc4>=_0x44840b[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x382bc4-=_0x44840b[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5787a7+=_0x44840b[_0x382bc4];}return _0x5787a7;}function _0x408e02(){const _0x290d89=_0x53a083[_0x572cae([0x73,0x70,0x6c,0x69,0x74])](_0x572cae([0x2e]));if(0x3!=_0x290d89[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x333aff(_0x290d89[0x1]);function _0x333aff(_0x57ada1){const _0x174487=_0xa6e8ea(_0x57ada1);return _0x174487&&_0x3f7547()?_0x174487:null;function _0x3f7547(){const _0x111f02=_0x174487[_0x572cae([0x6a,0x74,0x69])],_0xe3932a=window[_0x572cae([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x111f02[_0x572cae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x111f02[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57f91c={..._0x174487,[_0x572cae([0x6a,0x74,0x69])]:_0x111f02[_0x572cae([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x111f02[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57f91c[_0x572cae([0x76,0x63])],_0x447600(_0x57f91c)==_0xe3932a;}}}async function _0xe35cdc(){let _0x116cfd=!0x0;try{const _0x2c6bec=_0x53a083[_0x572cae([0x73,0x70,0x6c,0x69,0x74])](_0x572cae([0x2e])),[_0x4e1ed0,_0x1cbfa9,_0x2d7e93]=_0x2c6bec;return _0x5e4ddc(_0x4e1ed0),await _0x1dd082(_0x4e1ed0,_0x1cbfa9,_0x2d7e93),_0x116cfd;}catch(_0x4ea734){return!0x1;}function _0x5e4ddc(_0x121e44){const _0x3ecafe=_0xa6e8ea(_0x121e44);_0x3ecafe&&_0x3ecafe[_0x572cae([0x61,0x6c,0x67])]==_0x572cae([0x45,0x53,0x32,0x35,0x36])||(_0x116cfd=!0x1);}async function _0x1dd082(_0x29b3ee,_0x3325d0,_0x4632f1){const _0x1cd281=window[_0x572cae([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x572cae([0x66,0x72,0x6f,0x6d])](_0x2abf14(_0x4632f1),_0x26c61a=>_0x26c61a[_0x572cae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x421f4c=new window[(_0x572cae([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x572cae([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x29b3ee+_0x572cae([0x2e])+_0x3325d0),_0x348cb3=window[_0x572cae([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x572cae([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x348cb3)return;const _0x279b03=await _0x348cb3[_0x572cae([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x572cae([0x6a,0x77,0x6b]),_0x51d6d7,{[_0x572cae([0x6e,0x61,0x6d,0x65])]:_0x572cae([0x45,0x43,0x44,0x53,0x41]),[_0x572cae([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x572cae([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x572cae([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x348cb3[_0x572cae([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x572cae([0x6e,0x61,0x6d,0x65])]:_0x572cae([0x45,0x43,0x44,0x53,0x41]),[_0x572cae([0x68,0x61,0x73,0x68])]:{[_0x572cae([0x6e,0x61,0x6d,0x65])]:_0x572cae([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x279b03,_0x1cd281,_0x421f4c)||(_0x116cfd=!0x1);}}function _0xa6e8ea(_0x49f593){return _0x49f593[_0x572cae([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x572cae([0x65,0x79]))?JSON[_0x572cae([0x70,0x61,0x72,0x73,0x65])](_0x2abf14(_0x49f593)):null;}function _0x2abf14(_0x30b46a){return window[_0x572cae([0x61,0x74,0x6f,0x62])](_0x30b46a[_0x572cae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x572cae([0x2b]))[_0x572cae([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x572cae([0x2f])));}function _0x447600(_0x4d9970){let _0x83232d=0x1505;function _0x11ee30(_0x53fb4e){for(let _0x1d351f=0x0;_0x1d351f<_0x53fb4e[_0x572cae([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d351f++){const _0x530d76=_0x53fb4e[_0x572cae([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d351f);_0x83232d=(_0x83232d<<0x5)+_0x83232d+_0x530d76,_0x83232d&=_0x83232d;}}function _0x3c6903(_0x480c0d){Array[_0x572cae([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x480c0d)?_0x480c0d[_0x572cae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c6903):_0x480c0d&&typeof _0x480c0d==_0x572cae([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x572cae([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x480c0d)[_0x572cae([0x73,0x6f,0x72,0x74])]()[_0x572cae([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b59d7,_0x5861ae])=>{_0x11ee30(_0x4b59d7),_0x3c6903(_0x5861ae);}):_0x11ee30(window[_0x572cae([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x480c0d));}return _0x3c6903(_0x4d9970),_0x83232d>>>0x0;}function _0x41962c(_0x3bdd8f){return _0x3bdd8f[_0x572cae([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x572cae([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x572cae([0x30]));}function _0x55fb18(_0x278f3c){return _0x278f3c[_0x572cae([0x73,0x70,0x6c,0x69,0x74])]('')[_0x572cae([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x572cae([0x6a,0x6f,0x69,0x6e])]('');}function _0x2bb386(){}function _0x572cae(_0x356419){const _0x5acfb4=_0x2c0c;return _0x356419[_0x5acfb4(0x112)](_0x1c5f71=>String[_0x5acfb4(0x12b)](_0x1c5f71))[_0x5acfb4(0x11c)]('');}_0xc77ad7(await _0x59512b());}(this);}[_0x2dfcf7(0x14d)](){const _0x3d74e8=_0x2dfcf7,_0x294f21=this[_0x3d74e8(0x153)][_0x3d74e8(0x135)][_0x3d74e8(0x113)];_0x294f21[_0x3d74e8(0x117)](_0x3d74e8(0x10d))&&_0x294f21[_0x3d74e8(0x149)](_0x3d74e8(0x10d),{'allowAttributes':[_0x3d74e8(0x13d)]}),_0x294f21[_0x3d74e8(0x117)](_0x3d74e8(0x14e))&&_0x294f21[_0x3d74e8(0x149)](_0x3d74e8(0x14e),{'allowAttributes':[_0x3d74e8(0x13d)]});}[_0x2dfcf7(0x128)](){const _0x1c30a1=_0x2dfcf7,_0x2481f4=this[_0x1c30a1(0x153)];_0x2481f4[_0x1c30a1(0x13c)][_0x1c30a1(0x12a)](_0x1c30a1(0x114))[_0x1c30a1(0x12e)]({'model':_0x1c30a1(0x13d),'view':_0x1c30a1(0x11f)}),_0x2481f4[_0x1c30a1(0x13c)][_0x1c30a1(0x12a)](_0x1c30a1(0x111))[_0x1c30a1(0x139)]({'model':{'key':_0x1c30a1(0x13d),'value':_0x15fc17=>_0x15fc17[_0x1c30a1(0x120)](_0x1c30a1(0x11f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3cfe52=_0x2481f4[_0x1c30a1(0x156)][_0x1c30a1(0x11e)](_0x1c30a1(0x10a));_0x3cfe52&&this[_0x1c30a1(0x123)](_0x3cfe52,_0x1c30a1(0x105),(_0x3ef740,[_0x32822a,_0x2dd136])=>{const _0x54e8bc=_0x1c30a1;_0x32822a[_0x54e8bc(0x137)](_0x54e8bc(0x13d),_0x2dd136);});}[_0x2dfcf7(0x13f)](){const _0x45217a=_0x2dfcf7,_0xae3229=this[_0x45217a(0x153)][_0x45217a(0x10e)][_0x45217a(0x11e)](_0x45217a(0x14b))||{},_0xe6e0df=this[_0x45217a(0x153)][_0x45217a(0x10e)][_0x45217a(0x11e)](_0x45217a(0x10f))||'';this[_0x45217a(0x13e)]=_0x400a30(_0x5d1e1e[_0x45217a(0x14c)],_0x45217a(0x119),{..._0xae3229,'pubkey':_0xe6e0df,'ctx-name':_0x45217a(0x147),'sourceList':'','imgOnly':_0x45217a(0x12f),'removeCopyright':_0x45217a(0x12f),'localeName':this[_0x45217a(0x153)][_0x45217a(0x107)][_0x45217a(0x14f)],'externalSourcesEmbedCss':_0x45217a(0x134)}),this[_0x45217a(0x13e)][_0x45217a(0x11a)]=_0x5c1c00=>{const _0x5759f2=_0x45217a;if(_0x5759f2(0x11d)==_0x5c1c00)return _0x5759f2(0x12d);},_0x5d1e1e[_0x45217a(0x14c)][_0x45217a(0x125)][_0x45217a(0x127)](this[_0x45217a(0x13e)]);}[_0x2dfcf7(0x10c)](){const _0x297c5c=_0x2dfcf7;this[_0x297c5c(0x116)]=_0x400a30(_0x5d1e1e[_0x297c5c(0x14c)],_0x297c5c(0x151),{'ctx-name':_0x297c5c(0x147)}),_0x5d1e1e[_0x297c5c(0x14c)][_0x297c5c(0x125)][_0x297c5c(0x127)](this[_0x297c5c(0x116)]);}[_0x2dfcf7(0x157)](){const _0x40539f=_0x2dfcf7,_0xc91cba=this[_0x40539f(0x153)][_0x40539f(0x156)][_0x40539f(0x11e)](_0x40539f(0x144));_0xc91cba&&this[_0x40539f(0x123)](_0xc91cba,_0x40539f(0x13b),()=>{const _0x369e9d=_0x40539f,_0x5a42f5=this[_0x369e9d(0x153)][_0x369e9d(0x135)][_0x369e9d(0x14c)][_0x369e9d(0x143)][_0x369e9d(0x121)]();_0x5a42f5&&_0x5a42f5[_0x369e9d(0x120)](_0x369e9d(0x13d))&&this[_0x369e9d(0x153)][_0x369e9d(0x124)][_0x369e9d(0x142)][_0x369e9d(0x136)](_0x369e9d(0x132),()=>{const _0xd79388=_0x369e9d;_0x3ce622(this[_0xd79388(0x153)],_0x5a42f5);});});const _0xda257c=this[_0x40539f(0x153)][_0x40539f(0x156)][_0x40539f(0x11e)](_0x40539f(0x150));_0xda257c&&this[_0x40539f(0x123)](_0xda257c,_0x40539f(0x13b),()=>{const _0x565f7e=_0x40539f,_0x12ee03=this[_0x565f7e(0x153)][_0x565f7e(0x135)][_0x565f7e(0x14c)][_0x565f7e(0x143)][_0x565f7e(0x121)]();_0x12ee03&&_0x12ee03[_0x565f7e(0x120)](_0x565f7e(0x13d))&&this[_0x565f7e(0x153)][_0x565f7e(0x124)][_0x565f7e(0x142)][_0x565f7e(0x136)](_0x565f7e(0x132),()=>{const _0xcafc1e=_0x565f7e;_0x3ce622(this[_0xcafc1e(0x153)],_0x12ee03);});});}}function _0x51ec(){const _0x294225=['uc-config','iconHrefResolver','5195432NafkHw','join','closeMax','get','data-uc-image-id','getAttribute','getSelectedElement','add','listenTo','editing','body','remove','appendChild','_initConversion','207098RpeDJX','for','fromCharCode','isPremiumPlugin','#uc-icon-arrow-down','attributeToAttribute','true','36mrEEAC','href','render','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','model','once','removeAttribute','3584346DqvqWy','elementToAttribute','input[uploadcare-file-input]','execute','conversion','uploadcareImageId','_configElement','_initConfig','1SfvMfN','UploadcareEditing','view','selection','insertImage','init','189942XMbDKG','uploader','querySelector','extend','afterInit','uploadcare.uploader','document','_initSchema','imageInline','contentLanguage','uploadcareImageReplace','uc-upload-ctx-provider','isOfficialPlugin','editor','4zoGqGI','requires','commands','_initImageProcessingIndicator','1111420fEZZns','cleanupImage','PictureEditing','locale','4853639kUVFtE','1755810FtUVSo','replaceImageSource','pluginName','_initCtx','imageBlock','config','uploadcare.pubkey','configElement','upcast','map','schema','downcast','uploadcare','_ctxElement','isRegistered','destroy'];_0x51ec=function(){return _0x294225;};return _0x51ec();}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ import { type Dialog } from 'ckeditor5/src/ui.js';
6
+ import type { Editor } from 'ckeditor5/src/core.js';
7
+ import type { Element as ModelElement } from 'ckeditor5/src/engine.js';
8
+ declare const UploadcareImageEditController_base: {
9
+ new (): import("ckeditor5/src/utils.js").Observable;
10
+ prototype: import("ckeditor5/src/utils.js").Observable;
11
+ };
12
+ /**
13
+ * Controller for the Image Edit Dialog.
14
+ *
15
+ * It manages the dialog and all the related actions during dialog instance lifecycle. It is bound to a dialog instance
16
+ * and an active image element and destroyed when dialog instance is closed.
17
+ */
18
+ export default class UploadcareImageEditController extends /* #__PURE__ -- @preserve */ UploadcareImageEditController_base {
19
+ /**
20
+ * Whenever the controller is active and dialog UI visible.
21
+ *
22
+ * @observable
23
+ * @readonly
24
+ */
25
+ isActive: boolean;
26
+ /**
27
+ * Status of the selected image when command is executed:
28
+ *
29
+ * * `uploading` - image is being uploaded to Uploadcare,
30
+ * * `ready` - image is ready to be edited (already in Uploadcare or just uploaded to it),
31
+ * * `error` - error occurred during image upload.
32
+ *
33
+ * @observable
34
+ * @readonly
35
+ */
36
+ imageStatus: 'uploading' | 'ready' | 'error';
37
+ imageErrorType: 'Network' | 'NotFound' | null;
38
+ /**
39
+ * The Uploadcare image ID.
40
+ *
41
+ * @observable
42
+ * @readonly
43
+ */
44
+ imageId: string | null;
45
+ /**
46
+ * The Uploadcare image source URL.
47
+ *
48
+ * @observable
49
+ * @readonly
50
+ */
51
+ imageSrc: string | null;
52
+ /**
53
+ * The image width and height. It is used to calculate proper `srcset` attributes and aspect ratio.
54
+ *
55
+ * @observable
56
+ * @readonly
57
+ */
58
+ imageDimension: {
59
+ width: number;
60
+ height: number;
61
+ } | null;
62
+ /**
63
+ * The Uploadcare image upload progress.
64
+ *
65
+ * @observable
66
+ * @readonly
67
+ */
68
+ imageUploadProgress: number | null;
69
+ /**
70
+ * Creates a new instance of `UploadcareImageEditController`.
71
+ */
72
+ constructor(editor: Editor, dialog: Dialog, imageElement: ModelElement);
73
+ /**
74
+ * Destroys `UploadcareImageEditController` instance.
75
+ */
76
+ destroy(): void;
77
+ }
78
+ export {};
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, 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 _0x4d13d5,ObservableMixin as _0x161ccb}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4e916d}from'ckeditor5/src/ui.js';import _0x82327 from'./uploadcareimageeditformview.js';import _0x21d56e from'../../utils/uploadutils.js';import _0x2eab27 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0xc5924c,getImageDimension as _0x13f4c2}from'../../utils/editingutils.js';import{isAncestor as _0x299516}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
+ _0x161ccb(){constructor(_0x2eb750,_0x2d60d0,_0x4c4627){super(),this['_editor']=_0x2eb750,this['_dialog']=_0x2d60d0,this['_imageElement']=_0x4c4627,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 _0x548a78=this['_imageElement'],_0x4ee782=_0x548a78['getAttribute']('uploadcareImageId'),_0x4fccc3=_0x548a78['getAttribute']('src');if(_0x4ee782)await this['_loadImageInfo'](_0x4ee782,_0x4fccc3);else{if(this['_imageCache']['has'](_0x4fccc3)){const _0x2b326d=this['_imageCache']['get'](_0x4fccc3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b326d['url'],this['imageDimension']=_0x2b326d['dimension'],this['imageId']=_0x2b326d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x48e914}=this['_editor'],t=_0x48e914['t'],_0x476baa=new _0x82327(_0x48e914,this['imageStatus'],this['_attributes']);_0x476baa['bind']('status')['to'](this,'imageStatus'),_0x476baa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x476baa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x476baa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x476baa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2eab27,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x476baa,'position':_0x4e916d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x476baa['focus']();},'onHide':()=>{_0x476baa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x37eb7a=>!_0x299516(_0x37eb7a,_0x476baa['element'])}});}['_loadImageInfo'](_0x3e275d,_0x356591){return _0x21d56e['getInfo'](_0x3e275d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4a6e97=>{const {width:_0xa27bd0,height:_0x58bff7}=_0x4a6e97['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x356591,this['imageDimension']={'width':_0xa27bd0,'height':_0x58bff7},this['imageId']=_0x3e275d;})['catch'](_0x5293d3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5293d3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x273988,_0x3b4d36){return this['_getImageAsFile'](_0x273988)['then'](_0x43ce97=>_0x21d56e['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3b4d36['signal'],'file':_0x43ce97,'onProgress':_0x205ed4=>{_0x205ed4&&_0x205ed4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x205ed4['value']));}}))['then'](_0x14489c=>{const {width:_0x679d70,height:_0x193e47}=_0x14489c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14489c['cdnUrl'],this['imageDimension']={'width':_0x679d70,'height':_0x193e47},this['imageId']=_0x14489c['uuid'],this['imageUploadProgress']=null;const _0x4dd0f4=_0x273988['getAttribute']('src');this['_imageCache']['set'](_0x4dd0f4,{'id':_0x14489c['uuid'],'url':_0x14489c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xd46a00=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd46a00['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x87cee9,_0xdc69d0){_0x87cee9['on']('apply',(_0x4a4286,_0x4071e3)=>{this['_replaceImage'](_0xdc69d0,_0x4071e3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x87cee9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x87cee9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x13e72f,_0x536de6,_0x486d9f){const _0x29fed8=this['_editor'],{width:_0x44f620,height:_0xaa4924}=_0x13f4c2(_0x536de6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2aae2d,imageSources:_0x71b6ba}=_0xc5924c(_0x536de6,_0x44f620);_0x29fed8['model']['change'](_0x4b4691=>{if('$graveyard'===_0x13e72f['root']['rootName']){_0x29fed8['execute']('insertImage',{'imageType':_0x13e72f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x13e72f['getAttributes']()),'uploadcareImageId':_0x486d9f,'src':_0x2aae2d,'sources':_0x71b6ba,'width':_0x44f620,'height':_0xaa4924}});const _0x47c9d8=_0x13e72f['getChildren']();_0x13e72f=_0x29fed8['model']['document']['selection']['getSelectedElement']();for(const _0x1a6bfd of _0x47c9d8)_0x4b4691['append'](_0x4b4691['cloneElement'](_0x1a6bfd),_0x13e72f);}else _0x4b4691['setSelection'](_0x13e72f,'on'),_0x29fed8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x13e72f['getAttributes']()),'uploadcareImageId':_0x486d9f,'src':_0x2aae2d,'sources':_0x71b6ba,'width':_0x44f620,'height':_0xaa4924},_0x13e72f);_0x4b4691['setSelection'](_0x13e72f,'on');});}async['_getImageAsFile'](_0xa3262e){const _0x56987b=_0x4d13d5['window'],_0x2de041=_0x4d13d5['document']['location']['href'],_0x7595d4=new _0x56987b['URL'](_0xa3262e['getAttribute']('src'),_0x2de041);if('data:'===_0x7595d4['protocol']){const _0x68a6b5=_0x7595d4['href']['split'](','),_0x322b4b=_0x68a6b5[0x0]['match'](/:(.*?);/)[0x1],_0x25dcc2=_0x322b4b['split']('/')[0x1],_0x2992c4=_0x56987b['atob'](_0x68a6b5[_0x68a6b5['length']-0x1]);let _0x2088d6=_0x2992c4['length'];const _0x2bd0e8=new _0x56987b['Uint8Array'](_0x2088d6);for(;_0x2088d6--;)_0x2bd0e8[_0x2088d6]=_0x2992c4['charCodeAt'](_0x2088d6);return new _0x56987b['File']([_0x2bd0e8],'image.'+_0x25dcc2,{'type':_0x322b4b});}const _0x376973=_0x7595d4['href']['split']('/'),_0x2728bc=_0x376973[_0x376973['length']-0x1],_0x3e722a=_0x2728bc['split']('.')[0x1];return _0x56987b['fetch'](_0x7595d4['href'])['then'](_0x59cfe5=>_0x59cfe5['clone']()['blob']())['then'](_0xad3021=>new _0x56987b['File']([_0xad3021],_0x2728bc,{'type':'image/'+_0x3e722a}));}}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformeditingview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
+ import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
11
+ /**
12
+ * A class representing the form editing view of the Uploadcare image edit feature.
13
+ */
14
+ export default class UploadcareImageEditFormEditingView extends View {
15
+ /**
16
+ * Image source URL.
17
+ *
18
+ * @observable
19
+ */
20
+ imageSrc: string | null;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ constructor(locale: Locale, attributes: UploadcareEditorConfig);
25
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, 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 _0x4dd0(){const _0x254bdd=['imageSrc','setTemplate','319Uaqlfn','131004WMJgSw','uc-light','49340IlnRzv','7352kUypES','bindTemplate','uc-cloud-image-editor','1730565SWUNpH','41808kpxPah','737023yWkCnO','set','12GaTYAy','image-edit','ck-uploadcare-theme','6QRHCLH','235rrMDUh','69489VUGAUo'];_0x4dd0=function(){return _0x254bdd;};return _0x4dd0();}(function(_0x3b4705,_0x5b8548){const _0x11d4c8=_0xf099,_0x576cd0=_0x3b4705();while(!![]){try{const _0x4593d2=-parseInt(_0x11d4c8(0x145))/0x1+-parseInt(_0x11d4c8(0x149))/0x2*(-parseInt(_0x11d4c8(0x143))/0x3)+parseInt(_0x11d4c8(0x14c))/0x4*(-parseInt(_0x11d4c8(0x144))/0x5)+-parseInt(_0x11d4c8(0x153))/0x6*(-parseInt(_0x11d4c8(0x151))/0x7)+parseInt(_0x11d4c8(0x150))/0x8+-parseInt(_0x11d4c8(0x14f))/0x9+-parseInt(_0x11d4c8(0x14b))/0xa*(-parseInt(_0x11d4c8(0x148))/0xb);if(_0x4593d2===_0x5b8548)break;else _0x576cd0['push'](_0x576cd0['shift']());}catch(_0x23fba5){_0x576cd0['push'](_0x576cd0['shift']());}}}(_0x4dd0,0x229a6));import{View as _0x1b12fb}from'ckeditor5/src/ui.js';function _0xf099(_0x3c132c,_0xc68110){const _0x4dd024=_0x4dd0();return _0xf099=function(_0xf099ce,_0x2683e4){_0xf099ce=_0xf099ce-0x141;let _0x81e192=_0x4dd024[_0xf099ce];return _0x81e192;},_0xf099(_0x3c132c,_0xc68110);}export default class tt extends _0x1b12fb{constructor(_0x2159de,_0x1910ee){const _0x324b4e=_0xf099;super(_0x2159de);const _0x5d2d47=this[_0x324b4e(0x14d)];this[_0x324b4e(0x152)](_0x324b4e(0x146),''),this[_0x324b4e(0x147)]({'tag':_0x324b4e(0x14e),'attributes':{..._0x1910ee,'class':[_0x324b4e(0x14a),_0x324b4e(0x142)],'ctx-name':_0x324b4e(0x141),'cdn-url':_0x5d2d47['to'](_0x324b4e(0x146))}});}}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformerrorview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
+ import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
11
+ /**
12
+ * A class representing the form error view of the Uploadcare image edit feature.
13
+ */
14
+ export default class UploadcareImageEditFormErrorView extends View {
15
+ /**
16
+ * The image upload error details.
17
+ *
18
+ * @observable
19
+ */
20
+ errorType: UploadcareImageEditController['imageErrorType'];
21
+ /**
22
+ * Creates an instance of the UploadcareImageEditFormErrorView view.
23
+ *
24
+ * @fires retry
25
+ */
26
+ constructor(locale: Locale);
27
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, 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{ButtonView as _0x397f62,IconView as et,View as _0x36b409}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x36b409{constructor(_0x3fbca3){super(_0x3fbca3);const t=_0x3fbca3['t'];this['set']('errorType',null);const _0x29f63a=new _0x397f62(_0x3fbca3);_0x29f63a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x29f63a['withText']=!0x0,_0x29f63a['class']='ck-button-action',_0x29f63a['on']('execute',()=>{this['fire']('retry');}),_0x29f63a['bind']('isVisible')['to'](this,'errorType',_0x1c6910=>'NotFound'!==_0x1c6910);const _0x5aa8c0=new et();_0x5aa8c0['content']=at,_0x5aa8c0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x140980=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':[_0x5aa8c0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x140980['to']('errorType',_0x5df490=>t('NotFound'!==_0x5df490?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x29f63a]},{'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'}]}]}]});}}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformloadingview
7
+ */
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
+ import { View } from 'ckeditor5/src/ui.js';
10
+ /**
11
+ * A class representing the form loading view of the Uploadcare image edit feature.
12
+ */
13
+ export default class UploadcareImageEditFormLoadingView extends View {
14
+ /**
15
+ * The image upload progress.
16
+ *
17
+ * @observable
18
+ */
19
+ imageUploadProgress: number | null;
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ constructor(locale: Locale);
24
+ }