@ckeditor/ckeditor5-uploadcare 0.0.1 → 44.2.0-alpha.1

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 +10 -6
  3. package/README.md +46 -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(_0x282d29,_0x57762d){var _0x27260f=_0x5c1c,_0x51085b=_0x282d29();while(!![]){try{var _0x515a41=-parseInt(_0x27260f(0x1d7))/0x1+-parseInt(_0x27260f(0x1da))/0x2*(-parseInt(_0x27260f(0x1d3))/0x3)+parseInt(_0x27260f(0x1c8))/0x4+-parseInt(_0x27260f(0x1d4))/0x5+parseInt(_0x27260f(0x1d9))/0x6*(-parseInt(_0x27260f(0x1d8))/0x7)+parseInt(_0x27260f(0x1c6))/0x8+parseInt(_0x27260f(0x1cf))/0x9;if(_0x515a41===_0x57762d)break;else _0x51085b['push'](_0x51085b['shift']());}catch(_0x416dcc){_0x51085b['push'](_0x51085b['shift']());}}}(_0x1720,0x4fa0c));function _0x5c1c(_0x5b74c1,_0x33edbe){var _0x172083=_0x1720();return _0x5c1c=function(_0x5c1c6d,_0x2ac0b0){_0x5c1c6d=_0x5c1c6d-0x1c6;var _0x826dba=_0x172083[_0x5c1c6d];return _0x826dba;},_0x5c1c(_0x5b74c1,_0x33edbe);}export var UploadcareSource;!function(_0x158fcb){var _0xd54a6c=_0x5c1c;_0x158fcb[_0xd54a6c(0x1cd)]=_0xd54a6c(0x1cb),_0x158fcb[_0xd54a6c(0x1c9)]=_0xd54a6c(0x1d2),_0x158fcb[_0xd54a6c(0x1c7)]=_0xd54a6c(0x1d1),_0x158fcb[_0xd54a6c(0x1cc)]=_0xd54a6c(0x1de),_0x158fcb[_0xd54a6c(0x1d5)]=_0xd54a6c(0x1d0),_0x158fcb[_0xd54a6c(0x1dc)]=_0xd54a6c(0x1db),_0x158fcb[_0xd54a6c(0x1ce)]=_0xd54a6c(0x1dd),_0x158fcb[_0xd54a6c(0x1ca)]=_0xd54a6c(0x1d6);}(UploadcareSource||(UploadcareSource={}));function _0x1720(){var _0xc6da26=['gdrive','65200JpefhR','Dropbox','1055700rrGpwR','URL','OneDrive','local','GDrive','Local','Instagram','6333345ovOUNq','facebook','dropbox','url','3PRwVVH','5670cerAVA','Facebook','onedrive','645827ELEqog','3803464rEIcUl','6kRwZOa','1081378WxpujA','gphotos','GPhotos','instagram'];_0x1720=function(){return _0xc6da26;};return _0x1720();}
@@ -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 _0x1e28a3=_0x3d6d;function _0x3d6d(_0x14cd97,_0x37e82d){const _0x3c0b41=_0x3c0b();return _0x3d6d=function(_0x3d6db5,_0x967088){_0x3d6db5=_0x3d6db5-0x7f;let _0x322f33=_0x3c0b41[_0x3d6db5];return _0x322f33;},_0x3d6d(_0x14cd97,_0x37e82d);}(function(_0x3dc9d7,_0x3627dc){const _0x8e804f=_0x3d6d,_0x541018=_0x3dc9d7();while(!![]){try{const _0x2cbbcd=-parseInt(_0x8e804f(0xcc))/0x1*(parseInt(_0x8e804f(0x99))/0x2)+parseInt(_0x8e804f(0x90))/0x3*(-parseInt(_0x8e804f(0xad))/0x4)+parseInt(_0x8e804f(0x82))/0x5+parseInt(_0x8e804f(0xb3))/0x6*(-parseInt(_0x8e804f(0xcf))/0x7)+-parseInt(_0x8e804f(0xa9))/0x8+-parseInt(_0x8e804f(0xaf))/0x9*(parseInt(_0x8e804f(0x9b))/0xa)+parseInt(_0x8e804f(0xc3))/0xb;if(_0x2cbbcd===_0x3627dc)break;else _0x541018['push'](_0x541018['shift']());}catch(_0x197a6e){_0x541018['push'](_0x541018['shift']());}}}(_0x3c0b,0x5bec5));import{Plugin as _0x4f1f04}from'ckeditor5/src/core.js';import{Dialog as _0x446d36}from'ckeditor5/src/ui.js';import{createElement as _0x33f4bc,global as _0x10ee2e,uid as _0x2efeca}from'ckeditor5/src/utils.js';import _0x23b35a from'./uploadcarecommand.js';import _0x1b86bc from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x219750}from'./utils/editingutils.js';export default class i extends _0x4f1f04{constructor(){const _0x359bf1=_0x3d6d;super(...arguments),this[_0x359bf1(0x88)]=null,this[_0x359bf1(0x85)]=null;}static get[_0x1e28a3(0xce)](){const _0x52b0ad=_0x1e28a3;return _0x52b0ad(0xbd);}static get[_0x1e28a3(0x94)](){const _0x1d250b=_0x1e28a3;return[_0x1d250b(0xd2),_0x1b86bc,_0x446d36];}static get[_0x1e28a3(0xb1)](){return!0x0;}static get[_0x1e28a3(0xaa)](){return!0x0;}get[_0x1e28a3(0x84)](){const _0x1ec47c=_0x1e28a3;return this[_0x1ec47c(0x88)];}get[_0x1e28a3(0x8f)](){const _0x385143=_0x1e28a3;return this[_0x385143(0x85)];}[_0x1e28a3(0x95)](){const _0x386b11=_0x1e28a3,_0x4007e3=this[_0x386b11(0xbc)];_0x4007e3[_0x386b11(0x8c)][_0x386b11(0x91)](_0x386b11(0xba),new _0x23b35a(_0x4007e3));}[_0x1e28a3(0x9a)](){const _0x564f45=_0x1e28a3;this[_0x564f45(0x8a)](),this[_0x564f45(0x96)](),this[_0x564f45(0xb8)](),this[_0x564f45(0xa3)](),this[_0x564f45(0xb4)](),this[_0x564f45(0x7f)](this[_0x564f45(0xbc)],_0x564f45(0x87),()=>{const _0x5e8ce7=_0x564f45;this[_0x5e8ce7(0x88)]&&(this[_0x5e8ce7(0x88)][_0x5e8ce7(0x83)](),this[_0x5e8ce7(0x88)]=null),this[_0x5e8ce7(0x85)]&&(this[_0x5e8ce7(0x85)][_0x5e8ce7(0x83)](),this[_0x5e8ce7(0x85)]=null);const _0x254b96=_0x10ee2e[_0x5e8ce7(0xc5)][_0x5e8ce7(0x86)](_0x5e8ce7(0xc1));_0x254b96&&_0x254b96[_0x5e8ce7(0x83)]();}),async function(_0x23e8bf){const _0x4cc415=_0x24fbbf([0x6c,0x33,0x4d,0x4f,0x37,0x34,0x39,0x64,0x6d,0x47,0x69,0x52,0x43,0x30,0x72,0x66,0x32,0x36,0x42,0x70,0x57,0x78,0x51,0x63,0x5a,0x54,0x4b,0x45,0x6e,0x41,0x59,0x31,0x38,0x35,0x75,0x6f,0x74,0x65,0x61,0x77,0x73,0x56,0x53,0x4a,0x7a,0x79,0x76,0x4c,0x68,0x50,0x58,0x49,0x55,0x62,0x46,0x4e,0x67,0x44,0x6a,0x6b,0x48,0x71]),_0x41a347=0x57f4ff5c,_0x55f5ab=0x57f3a14c^_0x41a347,_0xad32af=window[_0x24fbbf([0x44,0x61,0x74,0x65])][_0x24fbbf([0x6e,0x6f,0x77])](),_0x28b856=_0x23e8bf[_0x24fbbf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5730c9=new window[(_0x24fbbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe85c44=>{_0x28b856[_0x24fbbf([0x6f,0x6e,0x63,0x65])](_0x24fbbf([0x72,0x65,0x61,0x64,0x79]),_0xe85c44);}),_0x3f7b97={[_0x24fbbf([0x6b,0x74,0x79])]:_0x24fbbf([0x45,0x43]),[_0x24fbbf([0x75,0x73,0x65])]:_0x24fbbf([0x73,0x69,0x67]),[_0x24fbbf([0x63,0x72,0x76])]:_0x24fbbf([0x50,0x2d,0x32,0x35,0x36]),[_0x24fbbf([0x78])]:_0x24fbbf([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]),[_0x24fbbf([0x79])]:_0x24fbbf([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]),[_0x24fbbf([0x61,0x6c,0x67])]:_0x24fbbf([0x45,0x53,0x32,0x35,0x36])},_0xe508e3=_0x28b856[_0x24fbbf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24fbbf([0x67,0x65,0x74])](_0x24fbbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e0b61(){let _0x84e1ed,_0x1dcbef=null,_0x7324b5=null;try{if(_0xe508e3==_0x24fbbf([0x47,0x50,0x4c]))return _0x24fbbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x84e1ed=_0x29facd(),!_0x84e1ed)return _0x24fbbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x84e1ed[_0x24fbbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x7324b5=_0x42c350(_0x84e1ed[_0x24fbbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x84e1ed[_0x24fbbf([0x6a,0x74,0x69])])),await _0x3ebb51()?_0x20fa50()?_0x4b91f5()?_0x24fbbf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x520143()?(_0x84e1ed[_0x24fbbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24fbbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1dcbef=_0x4f52ea(_0x24fbbf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x84e1ed[_0x24fbbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24fbbf([0x74,0x72,0x69,0x61,0x6c])&&(_0x1dcbef=_0x4f52ea(_0x24fbbf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22666d()):_0x24fbbf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24fbbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24fbbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x35ceb9){return _0x24fbbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b91f5(){const _0x132f10=[_0x24fbbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24fbbf([0x74,0x72,0x69,0x61,0x6c])][_0x24fbbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x84e1ed[_0x24fbbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xad32af/0x3e8:0xe10*_0x55f5ab;return _0x84e1ed[_0x24fbbf([0x65,0x78,0x70])]<_0x132f10;}function _0x20fa50(){const _0x448c50=_0x84e1ed[_0x24fbbf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x448c50&&(!!_0x448c50[_0x24fbbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24fbbf([0x2a]))||!!_0x448c50[_0x24fbbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24fbbf([0x55,0x50,0x4c,0x43])));}function _0x520143(){const _0x4c6b01=_0x3d6d,_0x41e1af=_0x84e1ed[_0x24fbbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41e1af||0x0==_0x41e1af[_0x24fbbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x290d9f}=new URL(window[_0x24fbbf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4c6b01(0xb5)]);if(_0x41e1af[_0x24fbbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x290d9f))return!0x0;const _0x52e849=_0x290d9f[_0x24fbbf([0x73,0x70,0x6c,0x69,0x74])](_0x24fbbf([0x2e]));return _0x41e1af[_0x24fbbf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x832422=>_0x832422[_0x24fbbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24fbbf([0x2a])))[_0x24fbbf([0x6d,0x61,0x70])](_0x2866a2=>_0x2866a2[_0x24fbbf([0x73,0x70,0x6c,0x69,0x74])](_0x24fbbf([0x2e])))[_0x24fbbf([0x73,0x6f,0x6d,0x65])](_0x46730c=>_0x52e849[_0x24fbbf([0x65,0x76,0x65,0x72,0x79])]((_0x447c8a,_0x3307e3)=>_0x46730c[_0x3307e3]===_0x447c8a||_0x46730c[_0x3307e3]===_0x24fbbf([0x2a])));}function _0x22666d(){return _0x1dcbef&&_0x7324b5?new window[(_0x24fbbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3af005,_0x15474c)=>{_0x1dcbef[_0x24fbbf([0x74,0x68,0x65,0x6e])](_0x3af005,_0x15474c),_0x7324b5[_0x24fbbf([0x74,0x68,0x65,0x6e])](_0x293bb2=>{_0x293bb2!=_0x24fbbf([0x56,0x61,0x6c,0x69,0x64])&&_0x3af005(_0x293bb2);},_0x15474c);}):_0x1dcbef||_0x7324b5||_0x24fbbf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42c350(_0x597ca2,_0x4ea017){return new window[(_0x24fbbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22040a=>{if(_0x42cbc8())return _0x22040a(_0x24fbbf([0x56,0x61,0x6c,0x69,0x64]));_0x194290(),_0x28b856[_0x24fbbf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24fbbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d06fd=!0x1;const _0x13b125=_0x2efeca();function _0x566067(_0x40affc){return!!_0x40affc&&(typeof _0x40affc===_0x24fbbf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40affc===_0x24fbbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40affc[_0x24fbbf([0x74,0x68,0x65,0x6e])]===_0x24fbbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40affc[_0x24fbbf([0x63,0x61,0x74,0x63,0x68])]===_0x24fbbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x184d6b(_0x447e7e){_0xc654ca(_0x447e7e)[_0x24fbbf([0x74,0x68,0x65,0x6e])](_0x3b49ec=>{if(!_0x3b49ec||_0x3b49ec[_0x24fbbf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24fbbf([0x6f,0x6b]))return _0x24fbbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51c78a(_0x20ad61(_0x13b125+_0x4ea017))!=_0x3b49ec[_0x24fbbf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24fbbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24fbbf([0x56,0x61,0x6c,0x69,0x64]);})[_0x24fbbf([0x74,0x68,0x65,0x6e])](_0x4fcc3d=>(_0x3c745c(),_0x4fcc3d),()=>{const _0x4379a9=_0x51ef4f();return null==_0x4379a9?(_0x3c745c(),_0x24fbbf([0x56,0x61,0x6c,0x69,0x64])):_0x24fbbf(_0xad32af-_0x4379a9>(0x73f87b5c^_0x41a347)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24fbbf([0x74,0x68,0x65,0x6e])](_0x22040a)[_0x24fbbf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x22040a(_0x24fbbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x45a515=0x57c211dc^_0x41a347;function _0x3c745c(){const _0x5858f2=_0x24fbbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x51c78a(_0x20ad61(_0x597ca2)),_0x2c90ce=_0x338755(_0x51c78a(window[_0x24fbbf([0x4d,0x61,0x74,0x68])][_0x24fbbf([0x63,0x65,0x69,0x6c])](_0xad32af/_0x45a515)));window[_0x24fbbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24fbbf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5858f2,_0x2c90ce);}function _0x51ef4f(){const _0x3e5f8e=_0x24fbbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x51c78a(_0x20ad61(_0x597ca2)),_0x1caa75=window[_0x24fbbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24fbbf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e5f8e);return _0x1caa75?window[_0x24fbbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x338755(_0x1caa75),0x10)*_0x45a515:null;}function _0xc654ca(_0x497d33){return new window[(_0x24fbbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfc70e,_0x470bfc)=>{_0x497d33[_0x24fbbf([0x74,0x68,0x65,0x6e])](_0xfc70e,_0x470bfc),window[_0x24fbbf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x470bfc,0x57f52b9c^_0x41a347);});}}_0x28b856[_0x24fbbf([0x6f,0x6e])](_0x24fbbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf33013,_0xd9dd2e)=>{if(_0xd9dd2e[0x0]!=_0x597ca2)return _0x22040a(_0x24fbbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd9dd2e[0x1]={..._0xd9dd2e[0x1],[_0x24fbbf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x13b125};},{[_0x24fbbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24fbbf([0x68,0x69,0x67,0x68])}),_0x28b856[_0x24fbbf([0x6f,0x6e])](_0x24fbbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x133fff=>{_0x566067(_0x133fff[_0x24fbbf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d06fd=!0x0,_0x184d6b(_0x133fff[_0x24fbbf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24fbbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24fbbf([0x6c,0x6f,0x77])}),_0x5730c9[_0x24fbbf([0x74,0x68,0x65,0x6e])](()=>{_0x2d06fd||_0x22040a(_0x24fbbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42cbc8(){return _0x28b856[_0x24fbbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24fbbf([0x76,0x69,0x65,0x77])][_0x24fbbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24fbbf([0x61,0x75,0x74,0x6f]);}function _0x194290(){_0x28b856[_0x24fbbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24fbbf([0x76,0x69,0x65,0x77])][_0x24fbbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24fbbf([0x61,0x75,0x74,0x6f]);}}function _0x4f52ea(_0x349b94){const _0x216d72=[new window[(_0x24fbbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x173617=>setTimeout(_0x173617,0x57fdc190^_0x41a347)),_0x5730c9[_0x24fbbf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24fbbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38ab45=>{let _0x378499=0x0;_0x28b856[_0x24fbbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x24fbbf([0x6f,0x6e])](_0x24fbbf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x544f34,_0x5add50)=>{_0x5add50[0x0][_0x24fbbf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x378499++,_0x378499==(0x57f4fea4^_0x41a347)&&(_0x38ab45(),_0x544f34[_0x24fbbf([0x6f,0x66,0x66])]());});}))];return window[_0x24fbbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24fbbf([0x72,0x61,0x63,0x65])](_0x216d72)[_0x24fbbf([0x74,0x68,0x65,0x6e])](()=>_0x349b94);}async function _0x12b278(){await _0x5730c9,_0x28b856[_0x24fbbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x24fbbf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7fa32e,_0x28b856[_0x24fbbf([0x6d,0x6f,0x64,0x65,0x6c])][_0x24fbbf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7fa32e,_0x28b856[_0x24fbbf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24fbbf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c7dfa(_0x547070){const _0x5675d9=_0x5b93c2();_0x28b856[_0x5675d9]=_0x24fbbf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x547070,_0x547070!=_0x24fbbf([0x56,0x61,0x6c,0x69,0x64])&&_0x12b278();}function _0x5b93c2(){const _0x289b68=window[_0x24fbbf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24fbbf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24fbbf([0x6e,0x6f,0x77])]())[_0x24fbbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24fbbf([0x2e]),'');let _0x30d226=_0x24fbbf([0x6c]);for(let _0x50cee0=0x0;_0x50cee0<_0x289b68[_0x24fbbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50cee0+=0x2){let _0x2cb0c7=window[_0x24fbbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x289b68[_0x24fbbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50cee0,_0x50cee0+0x2));_0x2cb0c7>=_0x4cc415[_0x24fbbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2cb0c7-=_0x4cc415[_0x24fbbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30d226+=_0x4cc415[_0x2cb0c7];}return _0x30d226;}function _0x29facd(){const _0x3d5343=_0xe508e3[_0x24fbbf([0x73,0x70,0x6c,0x69,0x74])](_0x24fbbf([0x2e]));if(0x3!=_0x3d5343[_0x24fbbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x442257(_0x3d5343[0x1]);function _0x442257(_0x51a9eb){const _0x32d0e1=_0x559f2e(_0x51a9eb);return _0x32d0e1&&_0x163bfb()?_0x32d0e1:null;function _0x163bfb(){const _0x260bac=_0x32d0e1[_0x24fbbf([0x6a,0x74,0x69])],_0x53f195=window[_0x24fbbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x260bac[_0x24fbbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x260bac[_0x24fbbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30bbde={..._0x32d0e1,[_0x24fbbf([0x6a,0x74,0x69])]:_0x260bac[_0x24fbbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x260bac[_0x24fbbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30bbde[_0x24fbbf([0x76,0x63])],_0x20ad61(_0x30bbde)==_0x53f195;}}}async function _0x3ebb51(){let _0x3072de=!0x0;try{const _0x1d8a83=_0xe508e3[_0x24fbbf([0x73,0x70,0x6c,0x69,0x74])](_0x24fbbf([0x2e])),[_0x1f90b7,_0x255b59,_0x54f7b7]=_0x1d8a83;return _0x1a6b06(_0x1f90b7),await _0x1e7950(_0x1f90b7,_0x255b59,_0x54f7b7),_0x3072de;}catch(_0x38bbc0){return!0x1;}function _0x1a6b06(_0x1f7fee){const _0x41d1ef=_0x559f2e(_0x1f7fee);_0x41d1ef&&_0x41d1ef[_0x24fbbf([0x61,0x6c,0x67])]==_0x24fbbf([0x45,0x53,0x32,0x35,0x36])||(_0x3072de=!0x1);}async function _0x1e7950(_0x48e6a9,_0x44012e,_0x5e4c19){const _0x54d712=window[_0x24fbbf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24fbbf([0x66,0x72,0x6f,0x6d])](_0x438de9(_0x5e4c19),_0x3fb52c=>_0x3fb52c[_0x24fbbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x129528=new window[(_0x24fbbf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24fbbf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48e6a9+_0x24fbbf([0x2e])+_0x44012e),_0x2e1a13=window[_0x24fbbf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24fbbf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e1a13)return;const _0x3ba0af=await _0x2e1a13[_0x24fbbf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24fbbf([0x6a,0x77,0x6b]),_0x3f7b97,{[_0x24fbbf([0x6e,0x61,0x6d,0x65])]:_0x24fbbf([0x45,0x43,0x44,0x53,0x41]),[_0x24fbbf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24fbbf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24fbbf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e1a13[_0x24fbbf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24fbbf([0x6e,0x61,0x6d,0x65])]:_0x24fbbf([0x45,0x43,0x44,0x53,0x41]),[_0x24fbbf([0x68,0x61,0x73,0x68])]:{[_0x24fbbf([0x6e,0x61,0x6d,0x65])]:_0x24fbbf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ba0af,_0x54d712,_0x129528)||(_0x3072de=!0x1);}}function _0x559f2e(_0x167a86){return _0x167a86[_0x24fbbf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24fbbf([0x65,0x79]))?JSON[_0x24fbbf([0x70,0x61,0x72,0x73,0x65])](_0x438de9(_0x167a86)):null;}function _0x438de9(_0x4a49c0){return window[_0x24fbbf([0x61,0x74,0x6f,0x62])](_0x4a49c0[_0x24fbbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24fbbf([0x2b]))[_0x24fbbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24fbbf([0x2f])));}function _0x20ad61(_0xfe36ce){let _0x1824a9=0x1505;function _0x5cb7f6(_0x267196){for(let _0x43a1ca=0x0;_0x43a1ca<_0x267196[_0x24fbbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43a1ca++){const _0x5a0c1d=_0x267196[_0x24fbbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x43a1ca);_0x1824a9=(_0x1824a9<<0x5)+_0x1824a9+_0x5a0c1d,_0x1824a9&=_0x1824a9;}}function _0x5f3325(_0x278060){Array[_0x24fbbf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x278060)?_0x278060[_0x24fbbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f3325):_0x278060&&typeof _0x278060==_0x24fbbf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24fbbf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x278060)[_0x24fbbf([0x73,0x6f,0x72,0x74])]()[_0x24fbbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13530d,_0x519b3b])=>{_0x5cb7f6(_0x13530d),_0x5f3325(_0x519b3b);}):_0x5cb7f6(window[_0x24fbbf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x278060));}return _0x5f3325(_0xfe36ce),_0x1824a9>>>0x0;}function _0x51c78a(_0x461d65){return _0x461d65[_0x24fbbf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24fbbf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24fbbf([0x30]));}function _0x338755(_0x3c7786){return _0x3c7786[_0x24fbbf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24fbbf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24fbbf([0x6a,0x6f,0x69,0x6e])]('');}function _0x7fa32e(){}function _0x24fbbf(_0x2a8920){const _0x474441=_0x3d6d;return _0x2a8920[_0x474441(0xbe)](_0x13fa98=>String[_0x474441(0xc7)](_0x13fa98))[_0x474441(0x98)]('');}_0x5c7dfa(await _0x3e0b61());}(this);}[_0x1e28a3(0x8a)](){const _0x4c8bed=_0x1e28a3,_0x63eeef=this[_0x4c8bed(0xbc)][_0x4c8bed(0xa8)][_0x4c8bed(0x9e)];_0x63eeef[_0x4c8bed(0xbf)](_0x4c8bed(0xa6))&&_0x63eeef[_0x4c8bed(0xc2)](_0x4c8bed(0xa6),{'allowAttributes':[_0x4c8bed(0x9d)]}),_0x63eeef[_0x4c8bed(0xbf)](_0x4c8bed(0x8e))&&_0x63eeef[_0x4c8bed(0xc2)](_0x4c8bed(0x8e),{'allowAttributes':[_0x4c8bed(0x9d)]});}[_0x1e28a3(0x96)](){const _0x26192a=_0x1e28a3,_0x11e49a=this[_0x26192a(0xbc)];_0x11e49a[_0x26192a(0xb2)][_0x26192a(0xa2)](_0x26192a(0xbb))[_0x26192a(0xb0)]({'model':_0x26192a(0x9d),'view':_0x26192a(0x93)}),_0x11e49a[_0x26192a(0xb2)][_0x26192a(0xa2)](_0x26192a(0xcd))[_0x26192a(0x92)]({'model':{'key':_0x26192a(0x9d),'value':_0x426a89=>_0x426a89[_0x26192a(0xc8)](_0x26192a(0x93))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x361d33=_0x11e49a[_0x26192a(0x8c)][_0x26192a(0xc0)](_0x26192a(0xa5));_0x361d33&&this[_0x26192a(0x7f)](_0x361d33,_0x26192a(0xb9),(_0x3fa8c5,[_0x41e338,_0x388398])=>{const _0x15b104=_0x26192a;_0x41e338[_0x15b104(0xae)](_0x15b104(0x9d),_0x388398);});}[_0x1e28a3(0xb8)](){const _0x34dfed=_0x1e28a3,_0x14a7b7=this[_0x34dfed(0xbc)][_0x34dfed(0xa0)][_0x34dfed(0xc0)](_0x34dfed(0xc9))||{},_0x334dbe=this[_0x34dfed(0xbc)][_0x34dfed(0xa0)][_0x34dfed(0xc0)](_0x34dfed(0xb7))||'';this[_0x34dfed(0x88)]=_0x33f4bc(_0x10ee2e[_0x34dfed(0xc5)],_0x34dfed(0x9c),{..._0x14a7b7,'pubkey':_0x334dbe,'ctx-name':_0x34dfed(0xca),'sourceList':'','imgOnly':_0x34dfed(0x8b),'removeCopyright':_0x34dfed(0x8b),'localeName':this[_0x34dfed(0xbc)][_0x34dfed(0xd0)][_0x34dfed(0x80)],'externalSourcesEmbedCss':_0x34dfed(0x9f)}),this[_0x34dfed(0x88)][_0x34dfed(0xc6)]=_0x3a9c4f=>{const _0x2cf24d=_0x34dfed;if(_0x2cf24d(0xd3)==_0x3a9c4f)return _0x2cf24d(0x8d);},_0x10ee2e[_0x34dfed(0xc5)][_0x34dfed(0xab)][_0x34dfed(0xd1)](this[_0x34dfed(0x88)]);}[_0x1e28a3(0xa3)](){const _0x3b2df9=_0x1e28a3;this[_0x3b2df9(0x85)]=_0x33f4bc(_0x10ee2e[_0x3b2df9(0xc5)],_0x3b2df9(0xac),{'ctx-name':_0x3b2df9(0xca)}),_0x10ee2e[_0x3b2df9(0xc5)][_0x3b2df9(0xab)][_0x3b2df9(0xd1)](this[_0x3b2df9(0x85)]);}[_0x1e28a3(0xb4)](){const _0x283ef7=_0x1e28a3,_0x18bc28=this[_0x283ef7(0xbc)][_0x283ef7(0x8c)][_0x283ef7(0xc0)](_0x283ef7(0x89));_0x18bc28&&this[_0x283ef7(0x7f)](_0x18bc28,_0x283ef7(0xa1),()=>{const _0x40ad87=_0x283ef7,_0x36e8c6=this[_0x40ad87(0xbc)][_0x40ad87(0xa8)][_0x40ad87(0xc5)][_0x40ad87(0x97)][_0x40ad87(0xcb)]();_0x36e8c6&&_0x36e8c6[_0x40ad87(0xc8)](_0x40ad87(0x9d))&&this[_0x40ad87(0xbc)][_0x40ad87(0xa4)][_0x40ad87(0xb6)][_0x40ad87(0xc4)](_0x40ad87(0xa7),()=>{const _0x3c5f77=_0x40ad87;_0x219750(this[_0x3c5f77(0xbc)],_0x36e8c6);});});const _0x418f99=this[_0x283ef7(0xbc)][_0x283ef7(0x8c)][_0x283ef7(0xc0)](_0x283ef7(0x81));_0x418f99&&this[_0x283ef7(0x7f)](_0x418f99,_0x283ef7(0xa1),()=>{const _0x524372=_0x283ef7,_0x2af878=this[_0x524372(0xbc)][_0x524372(0xa8)][_0x524372(0xc5)][_0x524372(0x97)][_0x524372(0xcb)]();_0x2af878&&_0x2af878[_0x524372(0xc8)](_0x524372(0x9d))&&this[_0x524372(0xbc)][_0x524372(0xa4)][_0x524372(0xb6)][_0x524372(0xc4)](_0x524372(0xa7),()=>{const _0x5c153d=_0x524372;_0x219750(this[_0x5c153d(0xbc)],_0x2af878);});});}}function _0x3c0b(){const _0xcfa9f6=['downcast','editor','UploadcareEditing','map','isRegistered','get','input[uploadcare-file-input]','extend','22534556fjDXgj','once','document','iconHrefResolver','fromCharCode','getAttribute','uploadcare.uploader','uploader','getSelectedElement','3925fkCFnF','upcast','pluginName','4277BCnkSM','locale','appendChild','PictureEditing','closeMax','listenTo','contentLanguage','uploadcareImageReplace','280255PprmIJ','remove','configElement','_ctxElement','querySelector','destroy','_configElement','insertImage','_initSchema','true','commands','#uc-icon-arrow-down','imageInline','ctxElement','46608MMujli','add','elementToAttribute','data-uc-image-id','requires','init','_initConversion','selection','join','134aTALHJ','afterInit','3701710hIBYum','uc-config','uploadcareImageId','schema','\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','config','execute','for','_initCtx','editing','replaceImageSource','imageBlock','render','model','5501808JtJxzZ','isPremiumPlugin','body','uc-upload-ctx-provider','80zovILt','removeAttribute','9YchkYC','attributeToAttribute','isOfficialPlugin','conversion','948YnMPkp','_initImageProcessingIndicator','href','view','uploadcare.pubkey','_initConfig','cleanupImage','uploadcare'];_0x3c0b=function(){return _0xcfa9f6;};return _0x3c0b();}
@@ -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 _0x1f2082,ObservableMixin as _0x4fa689}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1043da}from'ckeditor5/src/ui.js';import _0x3cdc0d from'./uploadcareimageeditformview.js';import _0x4fe6ac from'../../utils/uploadutils.js';import _0xc46832 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x5592a9,getImageDimension as _0x17b387}from'../../utils/editingutils.js';import{isAncestor as _0x59d374}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
+ _0x4fa689(){constructor(_0x161c37,_0x34deea,_0x48224f){super(),this['_editor']=_0x161c37,this['_dialog']=_0x34deea,this['_imageElement']=_0x48224f,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 _0x355983=this['_imageElement'],_0x512455=_0x355983['getAttribute']('uploadcareImageId'),_0x4b1d50=_0x355983['getAttribute']('src');if(_0x512455)await this['_loadImageInfo'](_0x512455,_0x4b1d50);else{if(this['_imageCache']['has'](_0x4b1d50)){const _0x27ba70=this['_imageCache']['get'](_0x4b1d50);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x27ba70['url'],this['imageDimension']=_0x27ba70['dimension'],this['imageId']=_0x27ba70['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1c868b}=this['_editor'],t=_0x1c868b['t'],_0xb4c132=new _0x3cdc0d(_0x1c868b,this['imageStatus'],this['_attributes']);_0xb4c132['bind']('status')['to'](this,'imageStatus'),_0xb4c132['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb4c132['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb4c132['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb4c132,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xc46832,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb4c132,'position':_0x1043da['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb4c132['focus']();},'onHide':()=>{_0xb4c132['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3988b1=>!_0x59d374(_0x3988b1,_0xb4c132['element'])}});}['_loadImageInfo'](_0x8f46ab,_0x122c5a){return _0x4fe6ac['getInfo'](_0x8f46ab,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3dff5c=>{const {width:_0x5c90ea,height:_0x156d84}=_0x3dff5c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x122c5a,this['imageDimension']={'width':_0x5c90ea,'height':_0x156d84},this['imageId']=_0x8f46ab;})['catch'](_0x5a9613=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a9613['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1e0d0a,_0x50bc70){return this['_getImageAsFile'](_0x1e0d0a)['then'](_0x8b1e64=>_0x4fe6ac['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x50bc70['signal'],'file':_0x8b1e64,'onProgress':_0x305496=>{_0x305496&&_0x305496['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x305496['value']));}}))['then'](_0x34164d=>{const {width:_0x211a0c,height:_0x38816a}=_0x34164d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34164d['cdnUrl'],this['imageDimension']={'width':_0x211a0c,'height':_0x38816a},this['imageId']=_0x34164d['uuid'],this['imageUploadProgress']=null;const _0x465de9=_0x1e0d0a['getAttribute']('src');this['_imageCache']['set'](_0x465de9,{'id':_0x34164d['uuid'],'url':_0x34164d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4c4c3c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c4c3c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x8c25d2,_0x100c82){_0x8c25d2['on']('apply',(_0x56fbaa,_0x566d2d)=>{this['_replaceImage'](_0x100c82,_0x566d2d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x8c25d2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x8c25d2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x554be4,_0x308949,_0x2df818){const _0x4f5de5=this['_editor'],{width:_0x129428,height:_0x5aa3b5}=_0x17b387(_0x308949,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x176386,imageSources:_0xcbf063}=_0x5592a9(_0x308949,_0x129428);_0x4f5de5['model']['change'](_0x17873a=>{if('$graveyard'===_0x554be4['root']['rootName']){_0x4f5de5['execute']('insertImage',{'imageType':_0x554be4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x554be4['getAttributes']()),'uploadcareImageId':_0x2df818,'src':_0x176386,'sources':_0xcbf063,'width':_0x129428,'height':_0x5aa3b5}});const _0x927028=_0x554be4['getChildren']();_0x554be4=_0x4f5de5['model']['document']['selection']['getSelectedElement']();for(const _0x45fce3 of _0x927028)_0x17873a['append'](_0x17873a['cloneElement'](_0x45fce3),_0x554be4);}else _0x17873a['setSelection'](_0x554be4,'on'),_0x4f5de5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x554be4['getAttributes']()),'uploadcareImageId':_0x2df818,'src':_0x176386,'sources':_0xcbf063,'width':_0x129428,'height':_0x5aa3b5},_0x554be4);_0x17873a['setSelection'](_0x554be4,'on');});}async['_getImageAsFile'](_0x12ee5a){const _0x26102d=_0x1f2082['window'],_0x3b6dbf=_0x1f2082['document']['location']['href'],_0x954efd=new _0x26102d['URL'](_0x12ee5a['getAttribute']('src'),_0x3b6dbf);if('data:'===_0x954efd['protocol']){const _0x548b8b=_0x954efd['href']['split'](','),_0x2afc25=_0x548b8b[0x0]['match'](/:(.*?);/)[0x1],_0x2a3e39=_0x2afc25['split']('/')[0x1],_0x135750=_0x26102d['atob'](_0x548b8b[_0x548b8b['length']-0x1]);let _0x532532=_0x135750['length'];const _0x4530b7=new _0x26102d['Uint8Array'](_0x532532);for(;_0x532532--;)_0x4530b7[_0x532532]=_0x135750['charCodeAt'](_0x532532);return new _0x26102d['File']([_0x4530b7],'image.'+_0x2a3e39,{'type':_0x2afc25});}const _0x51fd1c=_0x954efd['href']['split']('/'),_0x1f1606=_0x51fd1c[_0x51fd1c['length']-0x1],_0x1624ab=_0x1f1606['split']('.')[0x1];return _0x26102d['fetch'](_0x954efd['href'])['then'](_0xad764d=>_0xad764d['clone']()['blob']())['then'](_0x112f88=>new _0x26102d['File']([_0x112f88],_0x1f1606,{'type':'image/'+_0x1624ab}));}}
@@ -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(_0x2eb85e,_0x4e6b35){const _0x459f6d=_0x4fd5,_0x11f10f=_0x2eb85e();while(!![]){try{const _0x33f35e=parseInt(_0x459f6d(0x6e))/0x1+parseInt(_0x459f6d(0x70))/0x2+parseInt(_0x459f6d(0x75))/0x3+parseInt(_0x459f6d(0x77))/0x4+parseInt(_0x459f6d(0x73))/0x5*(parseInt(_0x459f6d(0x68))/0x6)+-parseInt(_0x459f6d(0x72))/0x7*(parseInt(_0x459f6d(0x76))/0x8)+-parseInt(_0x459f6d(0x6d))/0x9;if(_0x33f35e===_0x4e6b35)break;else _0x11f10f['push'](_0x11f10f['shift']());}catch(_0x610cd4){_0x11f10f['push'](_0x11f10f['shift']());}}}(_0x592f,0x62bad));function _0x592f(){const _0x121e8d=['303236kqSnfp','ck-uploadcare-theme','851746bYJKUO','set','28aAMKeW','65JrQJlj','imageSrc','617265NbEOyS','1581856JOCfpb','2771680rwArpa','bindTemplate','110202njxYwa','uc-cloud-image-editor','setTemplate','image-edit','uc-light','6041070lVthIM'];_0x592f=function(){return _0x121e8d;};return _0x592f();}function _0x4fd5(_0x2be7f9,_0x216bb3){const _0x592fe1=_0x592f();return _0x4fd5=function(_0x4fd547,_0x25087c){_0x4fd547=_0x4fd547-0x67;let _0xfda1f1=_0x592fe1[_0x4fd547];return _0xfda1f1;},_0x4fd5(_0x2be7f9,_0x216bb3);}import{View as _0x2f2b12}from'ckeditor5/src/ui.js';export default class tt extends _0x2f2b12{constructor(_0x992a14,_0x185ce2){const _0x1b2645=_0x4fd5;super(_0x992a14);const _0x3458a9=this[_0x1b2645(0x67)];this[_0x1b2645(0x71)](_0x1b2645(0x74),''),this[_0x1b2645(0x6a)]({'tag':_0x1b2645(0x69),'attributes':{..._0x185ce2,'class':[_0x1b2645(0x6c),_0x1b2645(0x6f)],'ctx-name':_0x1b2645(0x6b),'cdn-url':_0x3458a9['to'](_0x1b2645(0x74))}});}}
@@ -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 _0x6aece3,IconView as et,View as _0x73ed6}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x73ed6{constructor(_0x15fc66){super(_0x15fc66);const t=_0x15fc66['t'];this['set']('errorType',null);const _0x5528cf=new _0x6aece3(_0x15fc66);_0x5528cf['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5528cf['withText']=!0x0,_0x5528cf['class']='ck-button-action',_0x5528cf['on']('execute',()=>{this['fire']('retry');}),_0x5528cf['bind']('isVisible')['to'](this,'errorType',_0x1d3234=>'NotFound'!==_0x1d3234);const _0x1a66d4=new et();_0x1a66d4['content']=at,_0x1a66d4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x14ecc1=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':[_0x1a66d4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x14ecc1['to']('errorType',_0x3c752a=>t('NotFound'!==_0x3c752a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5528cf]},{'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
+ }