@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250214.0 → 0.0.0-nightly-next-20250215.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 (403) hide show
  1. package/LICENSE.md +0 -5
  2. package/README.md +5 -16
  3. package/build/uploadcare.js +1 -2
  4. package/ckeditor5-metadata.json +1 -1
  5. package/dist/index.js +3 -3
  6. package/lang/contexts.json +3 -0
  7. package/package.json +9 -8
  8. package/src/index.js +1 -1
  9. package/src/ui/uploadcarecontroller.d.ts +2 -6
  10. package/src/ui/uploadcarecontroller.js +2 -2
  11. package/src/ui/uploadcareformview.js +1 -1
  12. package/src/uploadcare.js +1 -1
  13. package/src/uploadcarecommand.js +1 -1
  14. package/src/uploadcareconfig.d.ts +8 -9
  15. package/src/uploadcareconfig.js +1 -1
  16. package/src/uploadcareediting.js +1 -1
  17. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
  18. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
  19. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +1 -4
  20. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
  21. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
  22. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
  23. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
  24. package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
  25. package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
  26. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
  27. package/src/uploadcareimageedit.js +1 -1
  28. package/src/uploadcareui.js +1 -1
  29. package/src/uploadcareuploadadapter.js +1 -1
  30. package/src/utils/common-translations.js +1 -1
  31. package/src/utils/dialogfocusmanagerview.js +1 -1
  32. package/src/utils/editingutils.js +1 -1
  33. package/src/utils/isancestor.js +1 -1
  34. package/src/utils/uploadutils.js +1 -1
  35. package/build/translations/af.js +0 -1
  36. package/build/translations/ar.js +0 -1
  37. package/build/translations/ast.js +0 -1
  38. package/build/translations/az.js +0 -1
  39. package/build/translations/bg.js +0 -1
  40. package/build/translations/bn.js +0 -1
  41. package/build/translations/bs.js +0 -1
  42. package/build/translations/ca.js +0 -1
  43. package/build/translations/cs.js +0 -1
  44. package/build/translations/da.js +0 -1
  45. package/build/translations/de-ch.js +0 -1
  46. package/build/translations/de.js +0 -1
  47. package/build/translations/el.js +0 -1
  48. package/build/translations/en-au.js +0 -1
  49. package/build/translations/en-gb.js +0 -1
  50. package/build/translations/eo.js +0 -1
  51. package/build/translations/es-co.js +0 -1
  52. package/build/translations/es.js +0 -1
  53. package/build/translations/et.js +0 -1
  54. package/build/translations/eu.js +0 -1
  55. package/build/translations/fa.js +0 -1
  56. package/build/translations/fi.js +0 -1
  57. package/build/translations/fr.js +0 -1
  58. package/build/translations/gl.js +0 -1
  59. package/build/translations/gu.js +0 -1
  60. package/build/translations/he.js +0 -1
  61. package/build/translations/hi.js +0 -1
  62. package/build/translations/hr.js +0 -1
  63. package/build/translations/hu.js +0 -1
  64. package/build/translations/hy.js +0 -1
  65. package/build/translations/id.js +0 -1
  66. package/build/translations/it.js +0 -1
  67. package/build/translations/ja.js +0 -1
  68. package/build/translations/jv.js +0 -1
  69. package/build/translations/kk.js +0 -1
  70. package/build/translations/km.js +0 -1
  71. package/build/translations/kn.js +0 -1
  72. package/build/translations/ko.js +0 -1
  73. package/build/translations/ku.js +0 -1
  74. package/build/translations/lt.js +0 -1
  75. package/build/translations/lv.js +0 -1
  76. package/build/translations/ms.js +0 -1
  77. package/build/translations/nb.js +0 -1
  78. package/build/translations/ne.js +0 -1
  79. package/build/translations/nl.js +0 -1
  80. package/build/translations/no.js +0 -1
  81. package/build/translations/oc.js +0 -1
  82. package/build/translations/pl.js +0 -1
  83. package/build/translations/pt-br.js +0 -1
  84. package/build/translations/pt.js +0 -1
  85. package/build/translations/ro.js +0 -1
  86. package/build/translations/ru.js +0 -1
  87. package/build/translations/si.js +0 -1
  88. package/build/translations/sk.js +0 -1
  89. package/build/translations/sl.js +0 -1
  90. package/build/translations/sq.js +0 -1
  91. package/build/translations/sr-latn.js +0 -1
  92. package/build/translations/sr.js +0 -1
  93. package/build/translations/sv.js +0 -1
  94. package/build/translations/th.js +0 -1
  95. package/build/translations/ti.js +0 -1
  96. package/build/translations/tk.js +0 -1
  97. package/build/translations/tr.js +0 -1
  98. package/build/translations/tt.js +0 -1
  99. package/build/translations/ug.js +0 -1
  100. package/build/translations/uk.js +0 -1
  101. package/build/translations/ur.js +0 -1
  102. package/build/translations/uz.js +0 -1
  103. package/build/translations/vi.js +0 -1
  104. package/build/translations/zh-cn.js +0 -1
  105. package/build/translations/zh.js +0 -1
  106. package/dist/translations/af.d.ts +0 -8
  107. package/dist/translations/af.js +0 -23
  108. package/dist/translations/af.umd.js +0 -23
  109. package/dist/translations/ar.d.ts +0 -8
  110. package/dist/translations/ar.js +0 -23
  111. package/dist/translations/ar.umd.js +0 -23
  112. package/dist/translations/ast.d.ts +0 -8
  113. package/dist/translations/ast.js +0 -23
  114. package/dist/translations/ast.umd.js +0 -23
  115. package/dist/translations/az.d.ts +0 -8
  116. package/dist/translations/az.js +0 -23
  117. package/dist/translations/az.umd.js +0 -23
  118. package/dist/translations/bg.d.ts +0 -8
  119. package/dist/translations/bg.js +0 -23
  120. package/dist/translations/bg.umd.js +0 -23
  121. package/dist/translations/bn.d.ts +0 -8
  122. package/dist/translations/bn.js +0 -23
  123. package/dist/translations/bn.umd.js +0 -23
  124. package/dist/translations/bs.d.ts +0 -8
  125. package/dist/translations/bs.js +0 -23
  126. package/dist/translations/bs.umd.js +0 -23
  127. package/dist/translations/ca.d.ts +0 -8
  128. package/dist/translations/ca.js +0 -23
  129. package/dist/translations/ca.umd.js +0 -23
  130. package/dist/translations/cs.d.ts +0 -8
  131. package/dist/translations/cs.js +0 -23
  132. package/dist/translations/cs.umd.js +0 -23
  133. package/dist/translations/da.d.ts +0 -8
  134. package/dist/translations/da.js +0 -23
  135. package/dist/translations/da.umd.js +0 -23
  136. package/dist/translations/de-ch.d.ts +0 -8
  137. package/dist/translations/de-ch.js +0 -23
  138. package/dist/translations/de-ch.umd.js +0 -23
  139. package/dist/translations/de.d.ts +0 -8
  140. package/dist/translations/de.js +0 -23
  141. package/dist/translations/de.umd.js +0 -23
  142. package/dist/translations/el.d.ts +0 -8
  143. package/dist/translations/el.js +0 -23
  144. package/dist/translations/el.umd.js +0 -23
  145. package/dist/translations/en-au.d.ts +0 -8
  146. package/dist/translations/en-au.js +0 -23
  147. package/dist/translations/en-au.umd.js +0 -23
  148. package/dist/translations/en-gb.d.ts +0 -8
  149. package/dist/translations/en-gb.js +0 -23
  150. package/dist/translations/en-gb.umd.js +0 -23
  151. package/dist/translations/en.d.ts +0 -8
  152. package/dist/translations/en.js +0 -23
  153. package/dist/translations/en.umd.js +0 -23
  154. package/dist/translations/eo.d.ts +0 -8
  155. package/dist/translations/eo.js +0 -23
  156. package/dist/translations/eo.umd.js +0 -23
  157. package/dist/translations/es-co.d.ts +0 -8
  158. package/dist/translations/es-co.js +0 -23
  159. package/dist/translations/es-co.umd.js +0 -23
  160. package/dist/translations/es.d.ts +0 -8
  161. package/dist/translations/es.js +0 -23
  162. package/dist/translations/es.umd.js +0 -23
  163. package/dist/translations/et.d.ts +0 -8
  164. package/dist/translations/et.js +0 -23
  165. package/dist/translations/et.umd.js +0 -23
  166. package/dist/translations/eu.d.ts +0 -8
  167. package/dist/translations/eu.js +0 -23
  168. package/dist/translations/eu.umd.js +0 -23
  169. package/dist/translations/fa.d.ts +0 -8
  170. package/dist/translations/fa.js +0 -23
  171. package/dist/translations/fa.umd.js +0 -23
  172. package/dist/translations/fi.d.ts +0 -8
  173. package/dist/translations/fi.js +0 -23
  174. package/dist/translations/fi.umd.js +0 -23
  175. package/dist/translations/fr.d.ts +0 -8
  176. package/dist/translations/fr.js +0 -23
  177. package/dist/translations/fr.umd.js +0 -23
  178. package/dist/translations/gl.d.ts +0 -8
  179. package/dist/translations/gl.js +0 -23
  180. package/dist/translations/gl.umd.js +0 -23
  181. package/dist/translations/gu.d.ts +0 -8
  182. package/dist/translations/gu.js +0 -23
  183. package/dist/translations/gu.umd.js +0 -23
  184. package/dist/translations/he.d.ts +0 -8
  185. package/dist/translations/he.js +0 -23
  186. package/dist/translations/he.umd.js +0 -23
  187. package/dist/translations/hi.d.ts +0 -8
  188. package/dist/translations/hi.js +0 -23
  189. package/dist/translations/hi.umd.js +0 -23
  190. package/dist/translations/hr.d.ts +0 -8
  191. package/dist/translations/hr.js +0 -23
  192. package/dist/translations/hr.umd.js +0 -23
  193. package/dist/translations/hu.d.ts +0 -8
  194. package/dist/translations/hu.js +0 -23
  195. package/dist/translations/hu.umd.js +0 -23
  196. package/dist/translations/hy.d.ts +0 -8
  197. package/dist/translations/hy.js +0 -23
  198. package/dist/translations/hy.umd.js +0 -23
  199. package/dist/translations/id.d.ts +0 -8
  200. package/dist/translations/id.js +0 -23
  201. package/dist/translations/id.umd.js +0 -23
  202. package/dist/translations/it.d.ts +0 -8
  203. package/dist/translations/it.js +0 -23
  204. package/dist/translations/it.umd.js +0 -23
  205. package/dist/translations/ja.d.ts +0 -8
  206. package/dist/translations/ja.js +0 -23
  207. package/dist/translations/ja.umd.js +0 -23
  208. package/dist/translations/jv.d.ts +0 -8
  209. package/dist/translations/jv.js +0 -23
  210. package/dist/translations/jv.umd.js +0 -23
  211. package/dist/translations/kk.d.ts +0 -8
  212. package/dist/translations/kk.js +0 -23
  213. package/dist/translations/kk.umd.js +0 -23
  214. package/dist/translations/km.d.ts +0 -8
  215. package/dist/translations/km.js +0 -23
  216. package/dist/translations/km.umd.js +0 -23
  217. package/dist/translations/kn.d.ts +0 -8
  218. package/dist/translations/kn.js +0 -23
  219. package/dist/translations/kn.umd.js +0 -23
  220. package/dist/translations/ko.d.ts +0 -8
  221. package/dist/translations/ko.js +0 -23
  222. package/dist/translations/ko.umd.js +0 -23
  223. package/dist/translations/ku.d.ts +0 -8
  224. package/dist/translations/ku.js +0 -23
  225. package/dist/translations/ku.umd.js +0 -23
  226. package/dist/translations/lt.d.ts +0 -8
  227. package/dist/translations/lt.js +0 -23
  228. package/dist/translations/lt.umd.js +0 -23
  229. package/dist/translations/lv.d.ts +0 -8
  230. package/dist/translations/lv.js +0 -23
  231. package/dist/translations/lv.umd.js +0 -23
  232. package/dist/translations/ms.d.ts +0 -8
  233. package/dist/translations/ms.js +0 -23
  234. package/dist/translations/ms.umd.js +0 -23
  235. package/dist/translations/nb.d.ts +0 -8
  236. package/dist/translations/nb.js +0 -23
  237. package/dist/translations/nb.umd.js +0 -23
  238. package/dist/translations/ne.d.ts +0 -8
  239. package/dist/translations/ne.js +0 -23
  240. package/dist/translations/ne.umd.js +0 -23
  241. package/dist/translations/nl.d.ts +0 -8
  242. package/dist/translations/nl.js +0 -23
  243. package/dist/translations/nl.umd.js +0 -23
  244. package/dist/translations/no.d.ts +0 -8
  245. package/dist/translations/no.js +0 -23
  246. package/dist/translations/no.umd.js +0 -23
  247. package/dist/translations/oc.d.ts +0 -8
  248. package/dist/translations/oc.js +0 -23
  249. package/dist/translations/oc.umd.js +0 -23
  250. package/dist/translations/pl.d.ts +0 -8
  251. package/dist/translations/pl.js +0 -23
  252. package/dist/translations/pl.umd.js +0 -23
  253. package/dist/translations/pt-br.d.ts +0 -8
  254. package/dist/translations/pt-br.js +0 -23
  255. package/dist/translations/pt-br.umd.js +0 -23
  256. package/dist/translations/pt.d.ts +0 -8
  257. package/dist/translations/pt.js +0 -23
  258. package/dist/translations/pt.umd.js +0 -23
  259. package/dist/translations/ro.d.ts +0 -8
  260. package/dist/translations/ro.js +0 -23
  261. package/dist/translations/ro.umd.js +0 -23
  262. package/dist/translations/ru.d.ts +0 -8
  263. package/dist/translations/ru.js +0 -23
  264. package/dist/translations/ru.umd.js +0 -23
  265. package/dist/translations/si.d.ts +0 -8
  266. package/dist/translations/si.js +0 -23
  267. package/dist/translations/si.umd.js +0 -23
  268. package/dist/translations/sk.d.ts +0 -8
  269. package/dist/translations/sk.js +0 -23
  270. package/dist/translations/sk.umd.js +0 -23
  271. package/dist/translations/sl.d.ts +0 -8
  272. package/dist/translations/sl.js +0 -23
  273. package/dist/translations/sl.umd.js +0 -23
  274. package/dist/translations/sq.d.ts +0 -8
  275. package/dist/translations/sq.js +0 -23
  276. package/dist/translations/sq.umd.js +0 -23
  277. package/dist/translations/sr-latn.d.ts +0 -8
  278. package/dist/translations/sr-latn.js +0 -23
  279. package/dist/translations/sr-latn.umd.js +0 -23
  280. package/dist/translations/sr.d.ts +0 -8
  281. package/dist/translations/sr.js +0 -23
  282. package/dist/translations/sr.umd.js +0 -23
  283. package/dist/translations/sv.d.ts +0 -8
  284. package/dist/translations/sv.js +0 -23
  285. package/dist/translations/sv.umd.js +0 -23
  286. package/dist/translations/th.d.ts +0 -8
  287. package/dist/translations/th.js +0 -23
  288. package/dist/translations/th.umd.js +0 -23
  289. package/dist/translations/ti.d.ts +0 -8
  290. package/dist/translations/ti.js +0 -23
  291. package/dist/translations/ti.umd.js +0 -23
  292. package/dist/translations/tk.d.ts +0 -8
  293. package/dist/translations/tk.js +0 -23
  294. package/dist/translations/tk.umd.js +0 -23
  295. package/dist/translations/tr.d.ts +0 -8
  296. package/dist/translations/tr.js +0 -23
  297. package/dist/translations/tr.umd.js +0 -23
  298. package/dist/translations/tt.d.ts +0 -8
  299. package/dist/translations/tt.js +0 -23
  300. package/dist/translations/tt.umd.js +0 -23
  301. package/dist/translations/ug.d.ts +0 -8
  302. package/dist/translations/ug.js +0 -23
  303. package/dist/translations/ug.umd.js +0 -23
  304. package/dist/translations/uk.d.ts +0 -8
  305. package/dist/translations/uk.js +0 -23
  306. package/dist/translations/uk.umd.js +0 -23
  307. package/dist/translations/ur.d.ts +0 -8
  308. package/dist/translations/ur.js +0 -23
  309. package/dist/translations/ur.umd.js +0 -23
  310. package/dist/translations/uz.d.ts +0 -8
  311. package/dist/translations/uz.js +0 -23
  312. package/dist/translations/uz.umd.js +0 -23
  313. package/dist/translations/vi.d.ts +0 -8
  314. package/dist/translations/vi.js +0 -23
  315. package/dist/translations/vi.umd.js +0 -23
  316. package/dist/translations/zh-cn.d.ts +0 -8
  317. package/dist/translations/zh-cn.js +0 -23
  318. package/dist/translations/zh-cn.umd.js +0 -23
  319. package/dist/translations/zh.d.ts +0 -8
  320. package/dist/translations/zh.js +0 -23
  321. package/dist/translations/zh.umd.js +0 -23
  322. package/lang/translations/af.po +0 -100
  323. package/lang/translations/ar.po +0 -100
  324. package/lang/translations/ast.po +0 -100
  325. package/lang/translations/az.po +0 -100
  326. package/lang/translations/bg.po +0 -100
  327. package/lang/translations/bn.po +0 -100
  328. package/lang/translations/bs.po +0 -100
  329. package/lang/translations/ca.po +0 -100
  330. package/lang/translations/cs.po +0 -100
  331. package/lang/translations/da.po +0 -100
  332. package/lang/translations/de-ch.po +0 -100
  333. package/lang/translations/de.po +0 -100
  334. package/lang/translations/el.po +0 -100
  335. package/lang/translations/en-au.po +0 -100
  336. package/lang/translations/en-gb.po +0 -100
  337. package/lang/translations/en.po +0 -100
  338. package/lang/translations/eo.po +0 -100
  339. package/lang/translations/es-co.po +0 -100
  340. package/lang/translations/es.po +0 -100
  341. package/lang/translations/et.po +0 -100
  342. package/lang/translations/eu.po +0 -100
  343. package/lang/translations/fa.po +0 -100
  344. package/lang/translations/fi.po +0 -100
  345. package/lang/translations/fr.po +0 -100
  346. package/lang/translations/gl.po +0 -100
  347. package/lang/translations/gu.po +0 -100
  348. package/lang/translations/he.po +0 -100
  349. package/lang/translations/hi.po +0 -100
  350. package/lang/translations/hr.po +0 -100
  351. package/lang/translations/hu.po +0 -100
  352. package/lang/translations/hy.po +0 -100
  353. package/lang/translations/id.po +0 -100
  354. package/lang/translations/it.po +0 -100
  355. package/lang/translations/ja.po +0 -100
  356. package/lang/translations/jv.po +0 -100
  357. package/lang/translations/kk.po +0 -100
  358. package/lang/translations/km.po +0 -100
  359. package/lang/translations/kn.po +0 -100
  360. package/lang/translations/ko.po +0 -100
  361. package/lang/translations/ku.po +0 -100
  362. package/lang/translations/lt.po +0 -100
  363. package/lang/translations/lv.po +0 -100
  364. package/lang/translations/ms.po +0 -100
  365. package/lang/translations/nb.po +0 -100
  366. package/lang/translations/ne.po +0 -100
  367. package/lang/translations/nl.po +0 -100
  368. package/lang/translations/no.po +0 -100
  369. package/lang/translations/oc.po +0 -100
  370. package/lang/translations/pl.po +0 -100
  371. package/lang/translations/pt-br.po +0 -100
  372. package/lang/translations/pt.po +0 -100
  373. package/lang/translations/ro.po +0 -100
  374. package/lang/translations/ru.po +0 -100
  375. package/lang/translations/si.po +0 -100
  376. package/lang/translations/sk.po +0 -100
  377. package/lang/translations/sl.po +0 -100
  378. package/lang/translations/sq.po +0 -100
  379. package/lang/translations/sr-latn.po +0 -100
  380. package/lang/translations/sr.po +0 -100
  381. package/lang/translations/sv.po +0 -100
  382. package/lang/translations/th.po +0 -100
  383. package/lang/translations/ti.po +0 -100
  384. package/lang/translations/tk.po +0 -100
  385. package/lang/translations/tr.po +0 -100
  386. package/lang/translations/tt.po +0 -100
  387. package/lang/translations/ug.po +0 -100
  388. package/lang/translations/uk.po +0 -100
  389. package/lang/translations/ur.po +0 -100
  390. package/lang/translations/uz.po +0 -100
  391. package/lang/translations/vi.po +0 -100
  392. package/lang/translations/zh-cn.po +0 -100
  393. package/lang/translations/zh.po +0 -100
  394. package/theme/icons/dropbox.svg +0 -11
  395. package/theme/icons/error.svg +0 -1
  396. package/theme/icons/facebook.svg +0 -11
  397. package/theme/icons/google-drive.svg +0 -11
  398. package/theme/icons/google-photos.svg +0 -11
  399. package/theme/icons/image-upload.svg +0 -11
  400. package/theme/icons/link.svg +0 -11
  401. package/theme/icons/local.svg +0 -11
  402. package/theme/icons/onedrive.svg +0 -11
  403. package/theme/icons/uploadcare-image-edit.svg +0 -11
@@ -35,6 +35,7 @@ import type { ConfigType } from '@uploadcare/file-uploader';
35
35
  * sourceList: [
36
36
  * 'local',
37
37
  * 'url',
38
+ * 'instagram',
38
39
  * 'gdrive'
39
40
  * ],
40
41
  * },
@@ -47,7 +48,7 @@ import type { ConfigType } from '@uploadcare/file-uploader';
47
48
  *
48
49
  * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
49
50
  */
50
- export interface UploadcareConfig {
51
+ export interface UploadcareConfig extends Omit<ConfigType, ExcludedKeys | 'sourceList'> {
51
52
  /**
52
53
  * The public key used for communication with the Uploadcare services.
53
54
  *
@@ -66,6 +67,7 @@ export interface UploadcareConfig {
66
67
  * * 'gdrive'
67
68
  * * 'facebook'
68
69
  * * 'gphotos'
70
+ * * 'instagram'
69
71
  * * 'onedrive'
70
72
  *
71
73
  * Additionally, below options are not supported:
@@ -79,7 +81,7 @@ export interface UploadcareConfig {
79
81
  *
80
82
  * All other options documented in the Uploadcare documentation are supported.
81
83
  */
82
- uploader?: UploadcareUploaderConfig;
84
+ uploader: UploadcareUploaderConfig;
83
85
  /**
84
86
  * Configuration for the Image Editor component. The component allows editing existing images in the CKEditor.
85
87
  *
@@ -89,7 +91,7 @@ export interface UploadcareConfig {
89
91
  * Please note that the `cdn-url` and `uuid` attributes are automatically handled by the Uploadcare plugin and
90
92
  * are not supported in the config options.
91
93
  */
92
- editor?: UploadcareEditorConfig;
94
+ editor: UploadcareEditorConfig;
93
95
  /**
94
96
  * Allows editing images that are not hosted in Uploadcare service.
95
97
  *
@@ -114,13 +116,13 @@ export interface UploadcareConfig {
114
116
  *
115
117
  * You can find detailed information in the [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/options/).
116
118
  */
117
- export interface UploadcareUploaderConfig extends Partial<Omit<ConfigType, ExcludedKeys | 'sourceList'>> {
119
+ export interface UploadcareUploaderConfig extends Omit<ConfigType, ExcludedKeys | 'sourceList'> {
118
120
  /**
119
121
  * Comma-separated list of file sources.
120
122
  *
121
123
  * @default [ 'local', 'url' ]
122
124
  */
123
- sourceList?: Array<UploadcareSourceValue>;
125
+ sourceList?: Array<UploadcareSource>;
124
126
  }
125
127
  /**
126
128
  * Configuration for the Uploadcare Image Editor component.
@@ -146,12 +148,9 @@ export declare enum UploadcareSource {
146
148
  GDrive = "gdrive",
147
149
  Facebook = "facebook",
148
150
  GPhotos = "gphotos",
151
+ Instagram = "instagram",
149
152
  OneDrive = "onedrive"
150
153
  }
151
- /**
152
- * Values for all available upload sources.
153
- */
154
- export type UploadcareSourceValue = `${UploadcareSource}`;
155
154
  /**
156
155
  * Image asset definition.
157
156
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4f18(_0x42458c,_0x1aba5f){var _0x2e11b8=_0x2e11();return _0x4f18=function(_0x4f1852,_0x327913){_0x4f1852=_0x4f1852-0x131;var _0x58095d=_0x2e11b8[_0x4f1852];return _0x58095d;},_0x4f18(_0x42458c,_0x1aba5f);}function _0x2e11(){var _0x5a16cb=['163180tCknIM','96QDlilI','OneDrive','GPhotos','7368053RnAatS','GDrive','Facebook','Local','gdrive','dropbox','gphotos','URL','onedrive','Dropbox','1812208hWesPG','2778132XWkJac','15864flqZzH','83755KfEskD','44395Pckhnr','6921LeaJsN','url','local','facebook'];_0x2e11=function(){return _0x5a16cb;};return _0x2e11();}(function(_0x35e685,_0x16062b){var _0x2429dd=_0x4f18,_0x2b09f5=_0x35e685();while(!![]){try{var _0x307ea9=parseInt(_0x2429dd(0x13e))/0x1+parseInt(_0x2429dd(0x13b))/0x2+-parseInt(_0x2429dd(0x13c))/0x3+-parseInt(_0x2429dd(0x144))/0x4+-parseInt(_0x2429dd(0x13f))/0x5*(-parseInt(_0x2429dd(0x145))/0x6)+-parseInt(_0x2429dd(0x131))/0x7+-parseInt(_0x2429dd(0x13d))/0x8*(-parseInt(_0x2429dd(0x140))/0x9);if(_0x307ea9===_0x16062b)break;else _0x2b09f5['push'](_0x2b09f5['shift']());}catch(_0x5bd2b3){_0x2b09f5['push'](_0x2b09f5['shift']());}}}(_0x2e11,0x9b9f8));export var UploadcareSource;!function(_0x577e40){var _0x180e8d=_0x4f18;_0x577e40[_0x180e8d(0x134)]=_0x180e8d(0x142),_0x577e40[_0x180e8d(0x138)]=_0x180e8d(0x141),_0x577e40[_0x180e8d(0x13a)]=_0x180e8d(0x136),_0x577e40[_0x180e8d(0x132)]=_0x180e8d(0x135),_0x577e40[_0x180e8d(0x133)]=_0x180e8d(0x143),_0x577e40[_0x180e8d(0x147)]=_0x180e8d(0x137),_0x577e40[_0x180e8d(0x146)]=_0x180e8d(0x139);}(UploadcareSource||(UploadcareSource={}));
23
+ function _0x50cb(_0x81720f,_0x1a862d){var _0x1b677c=_0x1b67();return _0x50cb=function(_0x50cb79,_0x2dec76){_0x50cb79=_0x50cb79-0xb2;var _0x2cec6b=_0x1b677c[_0x50cb79];return _0x2cec6b;},_0x50cb(_0x81720f,_0x1a862d);}(function(_0x3c94fe,_0x83e7b4){var _0x46a013=_0x50cb,_0x4b33f8=_0x3c94fe();while(!![]){try{var _0x2b04bc=parseInt(_0x46a013(0xba))/0x1*(-parseInt(_0x46a013(0xc4))/0x2)+-parseInt(_0x46a013(0xbe))/0x3+parseInt(_0x46a013(0xbb))/0x4+-parseInt(_0x46a013(0xb3))/0x5+-parseInt(_0x46a013(0xb4))/0x6+parseInt(_0x46a013(0xbf))/0x7+-parseInt(_0x46a013(0xca))/0x8*(-parseInt(_0x46a013(0xb6))/0x9);if(_0x2b04bc===_0x83e7b4)break;else _0x4b33f8['push'](_0x4b33f8['shift']());}catch(_0x11fca0){_0x4b33f8['push'](_0x4b33f8['shift']());}}}(_0x1b67,0x19c0c));export var UploadcareSource;!function(_0x1cd89c){var _0xa6749c=_0x50cb;_0x1cd89c[_0xa6749c(0xc6)]=_0xa6749c(0xc5),_0x1cd89c[_0xa6749c(0xb2)]=_0xa6749c(0xc3),_0x1cd89c[_0xa6749c(0xc8)]=_0xa6749c(0xbc),_0x1cd89c[_0xa6749c(0xc7)]=_0xa6749c(0xb9),_0x1cd89c[_0xa6749c(0xc2)]=_0xa6749c(0xb5),_0x1cd89c[_0xa6749c(0xb7)]=_0xa6749c(0xb8),_0x1cd89c[_0xa6749c(0xc0)]=_0xa6749c(0xc9),_0x1cd89c[_0xa6749c(0xbd)]=_0xa6749c(0xc1);}(UploadcareSource||(UploadcareSource={}));function _0x1b67(){var _0x37b0d1=['10xjIfiu','local','Local','GDrive','Dropbox','instagram','224tSaOIf','URL','764385NkXEbW','251694ASFDiu','facebook','150543MvmyHe','GPhotos','gphotos','gdrive','3989jXowmZ','75832flozIF','dropbox','OneDrive','555324FUPEwQ','126343udghYb','Instagram','onedrive','Facebook','url'];_0x1b67=function(){return _0x37b0d1;};return _0x1b67();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xaf017e=_0x1144;function _0x1144(_0x4b0da2,_0x4fd8b2){const _0x923e36=_0x923e();return _0x1144=function(_0x11445c,_0x1d16da){_0x11445c=_0x11445c-0x11d;let _0x54b7c6=_0x923e36[_0x11445c];return _0x54b7c6;},_0x1144(_0x4b0da2,_0x4fd8b2);}function _0x923e(){const _0x211a25=['input[uploadcare-file-input]','once','appendChild','#uc-icon-arrow-down','attributeToAttribute','removeAttribute','uploadcareImageReplace','render','1227624PDauIy','contentLanguage','4pIMpkX','1971165KgHWgQ','add','true','closeMax','join','document','ctxElement','isPremiumPlugin','getSelectedElement','requires','listenTo','_initImageProcessingIndicator','pluginName','extend','uploadcareImageId','isRegistered','replaceImageSource','84uUJuAx','uploadcare.pubkey','downcast','uploadcare.uploader','insertImage','6403959XdFpyc','\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','42iihlvc','_initConversion','1548236ChdCug','_initCtx','locale','_configElement','getAttribute','configElement','uc-config','selection','fromCharCode','cleanupImage','iconHrefResolver','querySelector','schema','_ctxElement','uploadcare','body','editing','upcast','for','imageInline','imageBlock','elementToAttribute','uploader','commands','config','get','afterInit','execute','conversion','19754090dAFbkY','261810bkTAZa','data-uc-image-id','remove','5968476RCeVkw','view','_initConfig','PictureEditing','_initSchema','model','href','init','UploadcareEditing','destroy','uc-upload-ctx-provider','isOfficialPlugin','map','editor'];_0x923e=function(){return _0x211a25;};return _0x923e();}(function(_0xe47fef,_0x1889dd){const _0x48d754=_0x1144,_0x197528=_0xe47fef();while(!![]){try{const _0x194015=-parseInt(_0x48d754(0x16f))/0x1+-parseInt(_0x48d754(0x154))/0x2*(parseInt(_0x48d754(0x155))/0x3)+parseInt(_0x48d754(0x166))/0x4*(parseInt(_0x48d754(0x139))/0x5)+parseInt(_0x48d754(0x13c))/0x6+-parseInt(_0x48d754(0x16d))/0x7*(parseInt(_0x48d754(0x152))/0x8)+parseInt(_0x48d754(0x16b))/0x9+parseInt(_0x48d754(0x138))/0xa;if(_0x194015===_0x1889dd)break;else _0x197528['push'](_0x197528['shift']());}catch(_0x35c155){_0x197528['push'](_0x197528['shift']());}}}(_0x923e,0xf3b64));import{Plugin as _0x27cb38}from'ckeditor5/src/core.js';import{Dialog as _0x3840ed}from'ckeditor5/src/ui.js';import{createElement as _0x3b00be,global as _0x306955,uid as _0x124f31}from'ckeditor5/src/utils.js';import _0x22e66d from'./uploadcarecommand.js';import _0x4c15c2 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4e5589}from'./utils/editingutils.js';export default class i extends _0x27cb38{constructor(){const _0x257a71=_0x1144;super(...arguments),this[_0x257a71(0x11e)]=null,this[_0x257a71(0x128)]=null;}static get[_0xaf017e(0x161)](){const _0x31d0ee=_0xaf017e;return _0x31d0ee(0x144);}static get[_0xaf017e(0x15e)](){const _0x252884=_0xaf017e;return[_0x252884(0x13f),_0x4c15c2,_0x3840ed];}static get[_0xaf017e(0x147)](){return!0x0;}static get[_0xaf017e(0x15c)](){return!0x0;}get[_0xaf017e(0x120)](){const _0x2f4609=_0xaf017e;return this[_0x2f4609(0x11e)];}get[_0xaf017e(0x15b)](){const _0x243e7e=_0xaf017e;return this[_0x243e7e(0x128)];}[_0xaf017e(0x143)](){const _0x238ecd=_0xaf017e,_0x1c1b36=this[_0x238ecd(0x149)];_0x1c1b36[_0x238ecd(0x132)][_0x238ecd(0x156)](_0x238ecd(0x129),new _0x22e66d(_0x1c1b36));}[_0xaf017e(0x135)](){const _0x366e97=_0xaf017e;this[_0x366e97(0x140)](),this[_0x366e97(0x16e)](),this[_0x366e97(0x13e)](),this[_0x366e97(0x170)](),this[_0x366e97(0x160)](),this[_0x366e97(0x15f)](this[_0x366e97(0x149)],_0x366e97(0x145),()=>{const _0x2ee0e1=_0x366e97;this[_0x2ee0e1(0x11e)]&&(this[_0x2ee0e1(0x11e)][_0x2ee0e1(0x13b)](),this[_0x2ee0e1(0x11e)]=null),this[_0x2ee0e1(0x128)]&&(this[_0x2ee0e1(0x128)][_0x2ee0e1(0x13b)](),this[_0x2ee0e1(0x128)]=null);const _0x108b6c=_0x306955[_0x2ee0e1(0x15a)][_0x2ee0e1(0x126)](_0x2ee0e1(0x14a));_0x108b6c&&_0x108b6c[_0x2ee0e1(0x13b)]();}),async function(_0x3513f5){const _0x28b24a=_0x5aa01a([0x52,0x45,0x39,0x79,0x43,0x71,0x4c,0x78,0x65,0x44,0x5a,0x30,0x38,0x77,0x41,0x6c,0x58,0x6e,0x49,0x42,0x47,0x37,0x4a,0x6a,0x57,0x6d,0x69,0x36,0x46,0x72,0x50,0x63,0x4d,0x32,0x48,0x31,0x67,0x76,0x56,0x33,0x70,0x6b,0x35,0x51,0x7a,0x75,0x73,0x74,0x68,0x6f,0x4b,0x53,0x54,0x59,0x62,0x34,0x55,0x4f,0x61,0x66,0x64,0x4e]),_0x4b50f0=0x418441e1,_0x16a453=0x41831e99^_0x4b50f0,_0x40e9c5=window[_0x5aa01a([0x44,0x61,0x74,0x65])][_0x5aa01a([0x6e,0x6f,0x77])](),_0x5f4e9b=_0x3513f5[_0x5aa01a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x11fa75=new window[(_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa140e6=>{_0x5f4e9b[_0x5aa01a([0x6f,0x6e,0x63,0x65])](_0x5aa01a([0x72,0x65,0x61,0x64,0x79]),_0xa140e6);}),_0x1a6df9={[_0x5aa01a([0x6b,0x74,0x79])]:_0x5aa01a([0x45,0x43]),[_0x5aa01a([0x75,0x73,0x65])]:_0x5aa01a([0x73,0x69,0x67]),[_0x5aa01a([0x63,0x72,0x76])]:_0x5aa01a([0x50,0x2d,0x32,0x35,0x36]),[_0x5aa01a([0x78])]:_0x5aa01a([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]),[_0x5aa01a([0x79])]:_0x5aa01a([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]),[_0x5aa01a([0x61,0x6c,0x67])]:_0x5aa01a([0x45,0x53,0x32,0x35,0x36])},_0x3bae3d=_0x5f4e9b[_0x5aa01a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5aa01a([0x67,0x65,0x74])](_0x5aa01a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5dcd3b(){let _0x7004ab,_0x119590=null,_0x4916ed=null;try{if(_0x3bae3d==_0x5aa01a([0x47,0x50,0x4c]))return _0x5aa01a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7004ab=_0x49c485(),!_0x7004ab)return _0x5aa01a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7004ab[_0x5aa01a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4916ed=_0x58786d(_0x7004ab[_0x5aa01a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7004ab[_0x5aa01a([0x6a,0x74,0x69])])),await _0x48fd5a()?_0x54aa51()?_0x328a60()?_0x5aa01a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1bd616()?(_0x7004ab[_0x5aa01a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5aa01a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x119590=_0x38137a(_0x5aa01a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7004ab[_0x5aa01a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5aa01a([0x74,0x72,0x69,0x61,0x6c])&&(_0x119590=_0x38137a(_0x5aa01a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b051f()):_0x5aa01a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5aa01a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5aa01a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xa4a573){return _0x5aa01a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x328a60(){const _0x46faca=[_0x5aa01a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5aa01a([0x74,0x72,0x69,0x61,0x6c])][_0x5aa01a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7004ab[_0x5aa01a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x40e9c5/0x3e8:0xe10*_0x16a453;return _0x7004ab[_0x5aa01a([0x65,0x78,0x70])]<_0x46faca;}function _0x54aa51(){const _0x5b80fe=_0x7004ab[_0x5aa01a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5b80fe&&(!!_0x5b80fe[_0x5aa01a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa01a([0x2a]))||!!_0x5b80fe[_0x5aa01a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa01a([0x55,0x50,0x4c,0x43])));}function _0x1bd616(){const _0x7f66c0=_0x1144,_0x26915b=_0x7004ab[_0x5aa01a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26915b||0x0==_0x26915b[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e700c}=new URL(window[_0x5aa01a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x7f66c0(0x142)]);if(_0x26915b[_0x5aa01a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e700c))return!0x0;const _0x2786a9=_0x2e700c[_0x5aa01a([0x73,0x70,0x6c,0x69,0x74])](_0x5aa01a([0x2e]));return _0x26915b[_0x5aa01a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ee16f=>_0x4ee16f[_0x5aa01a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa01a([0x2a])))[_0x5aa01a([0x6d,0x61,0x70])](_0x1756ec=>_0x1756ec[_0x5aa01a([0x73,0x70,0x6c,0x69,0x74])](_0x5aa01a([0x2e])))[_0x5aa01a([0x73,0x6f,0x6d,0x65])](_0x58316e=>_0x2786a9[_0x5aa01a([0x65,0x76,0x65,0x72,0x79])]((_0x2e443f,_0x389baa)=>_0x58316e[_0x389baa]===_0x2e443f||_0x58316e[_0x389baa]===_0x5aa01a([0x2a])));}function _0x3b051f(){return _0x119590&&_0x4916ed?new window[(_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51c734,_0x117378)=>{_0x119590[_0x5aa01a([0x74,0x68,0x65,0x6e])](_0x51c734,_0x117378),_0x4916ed[_0x5aa01a([0x74,0x68,0x65,0x6e])](_0x519c18=>{_0x519c18!=_0x5aa01a([0x56,0x61,0x6c,0x69,0x64])&&_0x51c734(_0x519c18);},_0x117378);}):_0x119590||_0x4916ed||_0x5aa01a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58786d(_0x355eea,_0x394dc1){return new window[(_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x308be3=>{if(_0x5ec94c())return _0x308be3(_0x5aa01a([0x56,0x61,0x6c,0x69,0x64]));_0x3b1d43(),_0x5f4e9b[_0x5aa01a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5aa01a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3172ad=!0x1;const _0x3fa10f=_0x124f31();function _0x14c95b(_0xa5ac6){return!!_0xa5ac6&&(typeof _0xa5ac6===_0x5aa01a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa5ac6===_0x5aa01a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa5ac6[_0x5aa01a([0x74,0x68,0x65,0x6e])]===_0x5aa01a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa5ac6[_0x5aa01a([0x63,0x61,0x74,0x63,0x68])]===_0x5aa01a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a5026(_0x4f8538){_0x29e993(_0x4f8538)[_0x5aa01a([0x74,0x68,0x65,0x6e])](_0x5d6e69=>{if(!_0x5d6e69||_0x5d6e69[_0x5aa01a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5aa01a([0x6f,0x6b]))return _0x5aa01a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x52d288(_0x5e3488(_0x3fa10f+_0x394dc1))!=_0x5d6e69[_0x5aa01a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5aa01a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5aa01a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5aa01a([0x74,0x68,0x65,0x6e])](_0x4932f3=>(_0x3ee3c4(),_0x4932f3),()=>{const _0x4275e2=_0x4b2f20();return null==_0x4275e2?(_0x3ee3c4(),_0x5aa01a([0x56,0x61,0x6c,0x69,0x64])):_0x5aa01a(_0x40e9c5-_0x4275e2>(0x6588c5e1^_0x4b50f0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5aa01a([0x74,0x68,0x65,0x6e])](_0x308be3)[_0x5aa01a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x308be3(_0x5aa01a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xde2f3d=0x41b2af61^_0x4b50f0;function _0x3ee3c4(){const _0x218c66=_0x5aa01a([0x6c,0x6c,0x63,0x74,0x2d])+_0x52d288(_0x5e3488(_0x355eea)),_0x93cdda=_0x2544e1(_0x52d288(window[_0x5aa01a([0x4d,0x61,0x74,0x68])][_0x5aa01a([0x63,0x65,0x69,0x6c])](_0x40e9c5/_0xde2f3d)));window[_0x5aa01a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5aa01a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x218c66,_0x93cdda);}function _0x4b2f20(){const _0x5550d6=_0x5aa01a([0x6c,0x6c,0x63,0x74,0x2d])+_0x52d288(_0x5e3488(_0x355eea)),_0x420aca=window[_0x5aa01a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5aa01a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5550d6);return _0x420aca?window[_0x5aa01a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2544e1(_0x420aca),0x10)*_0xde2f3d:null;}function _0x29e993(_0x79a90b){return new window[(_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x119275,_0x28d608)=>{_0x79a90b[_0x5aa01a([0x74,0x68,0x65,0x6e])](_0x119275,_0x28d608),window[_0x5aa01a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28d608,0x41859521^_0x4b50f0);});}}_0x5f4e9b[_0x5aa01a([0x6f,0x6e])](_0x5aa01a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14f515,_0x48b52c)=>{if(_0x48b52c[0x0]!=_0x355eea)return _0x308be3(_0x5aa01a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48b52c[0x1]={..._0x48b52c[0x1],[_0x5aa01a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fa10f};},{[_0x5aa01a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5aa01a([0x68,0x69,0x67,0x68])}),_0x5f4e9b[_0x5aa01a([0x6f,0x6e])](_0x5aa01a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x41c259=>{_0x14c95b(_0x41c259[_0x5aa01a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3172ad=!0x0,_0x5a5026(_0x41c259[_0x5aa01a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5aa01a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5aa01a([0x6c,0x6f,0x77])}),_0x11fa75[_0x5aa01a([0x74,0x68,0x65,0x6e])](()=>{_0x3172ad||_0x308be3(_0x5aa01a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ec94c(){return _0x5f4e9b[_0x5aa01a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aa01a([0x76,0x69,0x65,0x77])][_0x5aa01a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5aa01a([0x61,0x75,0x74,0x6f]);}function _0x3b1d43(){_0x5f4e9b[_0x5aa01a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aa01a([0x76,0x69,0x65,0x77])][_0x5aa01a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5aa01a([0x61,0x75,0x74,0x6f]);}}function _0x38137a(_0x251109){const _0x526045=[new window[(_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44115a=>setTimeout(_0x44115a,0x418d7f2d^_0x4b50f0)),_0x11fa75[_0x5aa01a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c32f3=>{let _0x334c3c=0x0;_0x5f4e9b[_0x5aa01a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aa01a([0x6f,0x6e])](_0x5aa01a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x543eaa,_0x57b11a)=>{_0x57b11a[0x0][_0x5aa01a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x334c3c++,_0x334c3c==(0x41844019^_0x4b50f0)&&(_0x3c32f3(),_0x543eaa[_0x5aa01a([0x6f,0x66,0x66])]());});}))];return window[_0x5aa01a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5aa01a([0x72,0x61,0x63,0x65])](_0x526045)[_0x5aa01a([0x74,0x68,0x65,0x6e])](()=>_0x251109);}async function _0x2a66d3(){await _0x11fa75,_0x5f4e9b[_0x5aa01a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aa01a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18637f,_0x5f4e9b[_0x5aa01a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aa01a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18637f,_0x5f4e9b[_0x5aa01a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5aa01a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xfd36b9(_0x569427){const _0x54bb13=_0x7ebd88();_0x5f4e9b[_0x54bb13]=_0x5aa01a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x569427,_0x569427!=_0x5aa01a([0x56,0x61,0x6c,0x69,0x64])&&_0x2a66d3();}function _0x7ebd88(){const _0x5bd010=window[_0x5aa01a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5aa01a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5aa01a([0x6e,0x6f,0x77])]())[_0x5aa01a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5aa01a([0x2e]),'');let _0x4a20d3=_0x5aa01a([0x52]);for(let _0x36e12e=0x0;_0x36e12e<_0x5bd010[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36e12e+=0x2){let _0x4c5a32=window[_0x5aa01a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bd010[_0x5aa01a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36e12e,_0x36e12e+0x2));_0x4c5a32>=_0x28b24a[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c5a32-=_0x28b24a[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a20d3+=_0x28b24a[_0x4c5a32];}return _0x4a20d3;}function _0x49c485(){const _0x5f4ed8=_0x3bae3d[_0x5aa01a([0x73,0x70,0x6c,0x69,0x74])](_0x5aa01a([0x2e]));if(0x3!=_0x5f4ed8[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1aba9e(_0x5f4ed8[0x1]);function _0x1aba9e(_0x1b15dc){const _0x21b432=_0x38c78f(_0x1b15dc);return _0x21b432&&_0x2a9cf4()?_0x21b432:null;function _0x2a9cf4(){const _0x40bd80=_0x21b432[_0x5aa01a([0x6a,0x74,0x69])],_0x16bb17=window[_0x5aa01a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40bd80[_0x5aa01a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40bd80[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21f3a5={..._0x21b432,[_0x5aa01a([0x6a,0x74,0x69])]:_0x40bd80[_0x5aa01a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40bd80[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21f3a5[_0x5aa01a([0x76,0x63])],_0x5e3488(_0x21f3a5)==_0x16bb17;}}}async function _0x48fd5a(){let _0x433f16=!0x0;try{const _0x560fe5=_0x3bae3d[_0x5aa01a([0x73,0x70,0x6c,0x69,0x74])](_0x5aa01a([0x2e])),[_0x4dd5c9,_0x3e8ab7,_0x1037fd]=_0x560fe5;return _0x1d2bfe(_0x4dd5c9),await _0x367f4d(_0x4dd5c9,_0x3e8ab7,_0x1037fd),_0x433f16;}catch(_0xd550ab){return!0x1;}function _0x1d2bfe(_0x37e7cd){const _0x5ecb75=_0x38c78f(_0x37e7cd);_0x5ecb75&&_0x5ecb75[_0x5aa01a([0x61,0x6c,0x67])]==_0x5aa01a([0x45,0x53,0x32,0x35,0x36])||(_0x433f16=!0x1);}async function _0x367f4d(_0x5e74ea,_0x3dca64,_0x9f789d){const _0xa58174=window[_0x5aa01a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5aa01a([0x66,0x72,0x6f,0x6d])](_0xac66e9(_0x9f789d),_0x71804b=>_0x71804b[_0x5aa01a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4378b0=new window[(_0x5aa01a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5aa01a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5e74ea+_0x5aa01a([0x2e])+_0x3dca64),_0x2c920d=window[_0x5aa01a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5aa01a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c920d)return;const _0x71b51f=await _0x2c920d[_0x5aa01a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5aa01a([0x6a,0x77,0x6b]),_0x1a6df9,{[_0x5aa01a([0x6e,0x61,0x6d,0x65])]:_0x5aa01a([0x45,0x43,0x44,0x53,0x41]),[_0x5aa01a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5aa01a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5aa01a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c920d[_0x5aa01a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5aa01a([0x6e,0x61,0x6d,0x65])]:_0x5aa01a([0x45,0x43,0x44,0x53,0x41]),[_0x5aa01a([0x68,0x61,0x73,0x68])]:{[_0x5aa01a([0x6e,0x61,0x6d,0x65])]:_0x5aa01a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x71b51f,_0xa58174,_0x4378b0)||(_0x433f16=!0x1);}}function _0x38c78f(_0x5191f6){return _0x5191f6[_0x5aa01a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5aa01a([0x65,0x79]))?JSON[_0x5aa01a([0x70,0x61,0x72,0x73,0x65])](_0xac66e9(_0x5191f6)):null;}function _0xac66e9(_0x59c0c2){return window[_0x5aa01a([0x61,0x74,0x6f,0x62])](_0x59c0c2[_0x5aa01a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5aa01a([0x2b]))[_0x5aa01a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5aa01a([0x2f])));}function _0x5e3488(_0x21faaa){let _0x319386=0x1505;function _0x58247d(_0x409705){for(let _0x2e1fb7=0x0;_0x2e1fb7<_0x409705[_0x5aa01a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e1fb7++){const _0x210096=_0x409705[_0x5aa01a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e1fb7);_0x319386=(_0x319386<<0x5)+_0x319386+_0x210096,_0x319386&=_0x319386;}}function _0x5da8fe(_0x2b81ca){Array[_0x5aa01a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b81ca)?_0x2b81ca[_0x5aa01a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5da8fe):_0x2b81ca&&typeof _0x2b81ca==_0x5aa01a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5aa01a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b81ca)[_0x5aa01a([0x73,0x6f,0x72,0x74])]()[_0x5aa01a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x238de0,_0x3d43c2])=>{_0x58247d(_0x238de0),_0x5da8fe(_0x3d43c2);}):_0x58247d(window[_0x5aa01a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b81ca));}return _0x5da8fe(_0x21faaa),_0x319386>>>0x0;}function _0x52d288(_0x16eee1){return _0x16eee1[_0x5aa01a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5aa01a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5aa01a([0x30]));}function _0x2544e1(_0xb3e259){return _0xb3e259[_0x5aa01a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5aa01a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5aa01a([0x6a,0x6f,0x69,0x6e])]('');}function _0x18637f(){}function _0x5aa01a(_0x58cc8d){const _0x4894fd=_0x1144;return _0x58cc8d[_0x4894fd(0x148)](_0x250652=>String[_0x4894fd(0x123)](_0x250652))[_0x4894fd(0x159)]('');}_0xfd36b9(await _0x5dcd3b());}(this);}[_0xaf017e(0x140)](){const _0x5133f7=_0xaf017e,_0x34c76a=this[_0x5133f7(0x149)][_0x5133f7(0x141)][_0x5133f7(0x127)];_0x34c76a[_0x5133f7(0x164)](_0x5133f7(0x12f))&&_0x34c76a[_0x5133f7(0x162)](_0x5133f7(0x12f),{'allowAttributes':[_0x5133f7(0x163)]}),_0x34c76a[_0x5133f7(0x164)](_0x5133f7(0x12e))&&_0x34c76a[_0x5133f7(0x162)](_0x5133f7(0x12e),{'allowAttributes':[_0x5133f7(0x163)]});}[_0xaf017e(0x16e)](){const _0x4c9eae=_0xaf017e,_0x78efe9=this[_0x4c9eae(0x149)];_0x78efe9[_0x4c9eae(0x137)][_0x4c9eae(0x12d)](_0x4c9eae(0x168))[_0x4c9eae(0x14e)]({'model':_0x4c9eae(0x163),'view':_0x4c9eae(0x13a)}),_0x78efe9[_0x4c9eae(0x137)][_0x4c9eae(0x12d)](_0x4c9eae(0x12c))[_0x4c9eae(0x130)]({'model':{'key':_0x4c9eae(0x163),'value':_0x2823cc=>_0x2823cc[_0x4c9eae(0x11f)](_0x4c9eae(0x13a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xb53a19=_0x78efe9[_0x4c9eae(0x132)][_0x4c9eae(0x134)](_0x4c9eae(0x165));_0xb53a19&&this[_0x4c9eae(0x15f)](_0xb53a19,_0x4c9eae(0x124),(_0x4b6b52,[_0x5a3ce0,_0x496ac1])=>{const _0x34d760=_0x4c9eae;_0x5a3ce0[_0x34d760(0x14f)](_0x34d760(0x163),_0x496ac1);});}[_0xaf017e(0x13e)](){const _0x347575=_0xaf017e,_0x40121f=this[_0x347575(0x149)][_0x347575(0x133)][_0x347575(0x134)](_0x347575(0x169))||{},_0x4f6432=this[_0x347575(0x149)][_0x347575(0x133)][_0x347575(0x134)](_0x347575(0x167))||'';this[_0x347575(0x11e)]=_0x3b00be(_0x306955[_0x347575(0x15a)],_0x347575(0x121),{..._0x40121f,'pubkey':_0x4f6432,'ctx-name':_0x347575(0x131),'sourceList':'','imgOnly':_0x347575(0x157),'removeCopyright':_0x347575(0x157),'localeName':this[_0x347575(0x149)][_0x347575(0x11d)][_0x347575(0x153)],'externalSourcesEmbedCss':_0x347575(0x16c)}),this[_0x347575(0x11e)][_0x347575(0x125)]=_0xe8f6ee=>{const _0x5e7c21=_0x347575;if(_0x5e7c21(0x158)==_0xe8f6ee)return _0x5e7c21(0x14d);},_0x306955[_0x347575(0x15a)][_0x347575(0x12a)][_0x347575(0x14c)](this[_0x347575(0x11e)]);}[_0xaf017e(0x170)](){const _0x5a5df8=_0xaf017e;this[_0x5a5df8(0x128)]=_0x3b00be(_0x306955[_0x5a5df8(0x15a)],_0x5a5df8(0x146),{'ctx-name':_0x5a5df8(0x131)}),_0x306955[_0x5a5df8(0x15a)][_0x5a5df8(0x12a)][_0x5a5df8(0x14c)](this[_0x5a5df8(0x128)]);}[_0xaf017e(0x160)](){const _0x33111f=_0xaf017e,_0x34544b=this[_0x33111f(0x149)][_0x33111f(0x132)][_0x33111f(0x134)](_0x33111f(0x16a));_0x34544b&&this[_0x33111f(0x15f)](_0x34544b,_0x33111f(0x136),()=>{const _0x2a0ff0=_0x33111f,_0x350652=this[_0x2a0ff0(0x149)][_0x2a0ff0(0x141)][_0x2a0ff0(0x15a)][_0x2a0ff0(0x122)][_0x2a0ff0(0x15d)]();_0x350652&&_0x350652[_0x2a0ff0(0x11f)](_0x2a0ff0(0x163))&&this[_0x2a0ff0(0x149)][_0x2a0ff0(0x12b)][_0x2a0ff0(0x13d)][_0x2a0ff0(0x14b)](_0x2a0ff0(0x151),()=>{const _0x368f2b=_0x2a0ff0;_0x4e5589(this[_0x368f2b(0x149)],_0x350652);});});const _0x4c2b18=this[_0x33111f(0x149)][_0x33111f(0x132)][_0x33111f(0x134)](_0x33111f(0x150));_0x4c2b18&&this[_0x33111f(0x15f)](_0x4c2b18,_0x33111f(0x136),()=>{const _0x3078ef=_0x33111f,_0xd250c2=this[_0x3078ef(0x149)][_0x3078ef(0x141)][_0x3078ef(0x15a)][_0x3078ef(0x122)][_0x3078ef(0x15d)]();_0xd250c2&&_0xd250c2[_0x3078ef(0x11f)](_0x3078ef(0x163))&&this[_0x3078ef(0x149)][_0x3078ef(0x12b)][_0x3078ef(0x13d)][_0x3078ef(0x14b)](_0x3078ef(0x151),()=>{const _0x2be975=_0x3078ef;_0x4e5589(this[_0x2be975(0x149)],_0xd250c2);});});}}
23
+ const _0x2d56d8=_0x53de;(function(_0x343374,_0x2c2b15){const _0x864a6d=_0x53de,_0x1672b9=_0x343374();while(!![]){try{const _0x55f35f=parseInt(_0x864a6d(0x11d))/0x1+-parseInt(_0x864a6d(0x133))/0x2+parseInt(_0x864a6d(0x13c))/0x3+-parseInt(_0x864a6d(0x148))/0x4+parseInt(_0x864a6d(0x141))/0x5*(-parseInt(_0x864a6d(0x13f))/0x6)+parseInt(_0x864a6d(0x122))/0x7*(-parseInt(_0x864a6d(0x12e))/0x8)+-parseInt(_0x864a6d(0x14b))/0x9;if(_0x55f35f===_0x2c2b15)break;else _0x1672b9['push'](_0x1672b9['shift']());}catch(_0x20644f){_0x1672b9['push'](_0x1672b9['shift']());}}}(_0x42e8,0x546e1));import{Plugin as _0x32516a}from'ckeditor5/src/core.js';import{Dialog as _0x2d2515}from'ckeditor5/src/ui.js';import{createElement as _0x158922,global as _0x108e74,uid as _0x50595f}from'ckeditor5/src/utils.js';function _0x53de(_0x490bf7,_0x3b7c33){const _0x42e8ab=_0x42e8();return _0x53de=function(_0x53de52,_0x36a398){_0x53de52=_0x53de52-0xf9;let _0x5930ab=_0x42e8ab[_0x53de52];return _0x5930ab;},_0x53de(_0x490bf7,_0x3b7c33);}import _0x45427a from'./uploadcarecommand.js';function _0x42e8(){const _0x2bdf06=['_initImageProcessingIndicator','16scOyTD','render','imageBlock','editor','attributeToAttribute','41338ZwqMXa','fromCharCode','uploadcare','insertImage','getSelectedElement','editing','_initSchema','execute','document','1698294nZwNxi','\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','requires','6NjuxnH','once','821375SsPYTV','configElement','model','destroy','contentLanguage','locale','getAttribute','516060mJoBmG','closeMax','_initConfig','1396881anPlcL','listenTo','commands','extend','config','uploader','true','isRegistered','selection','_ctxElement','_initCtx','elementToAttribute','uc-upload-ctx-provider','uploadcare.pubkey','remove','removeAttribute','input[uploadcare-file-input]','querySelector','map','init','view','href','iconHrefResolver','downcast','ctxElement','schema','replaceImageSource','UploadcareEditing','uc-config','_initConversion','isPremiumPlugin','uploadcare.uploader','upcast','isOfficialPlugin','pluginName','#uc-icon-arrow-down','_configElement','394229qjoLHY','PictureEditing','for','imageInline','uploadcareImageReplace','508669ZCvWTf','get','add','cleanupImage','data-uc-image-id','afterInit','body','join','uploadcareImageId','appendChild','conversion'];_0x42e8=function(){return _0x2bdf06;};return _0x42e8();}import _0x64c1f6 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x142de1}from'./utils/editingutils.js';export default class i extends _0x32516a{[_0x2d56d8(0x11c)]=null;[_0x2d56d8(0x101)]=null;static get[_0x2d56d8(0x11a)](){const _0x19a4b0=_0x2d56d8;return _0x19a4b0(0x113);}static get[_0x2d56d8(0x13e)](){const _0x724e2a=_0x2d56d8;return[_0x724e2a(0x11e),_0x64c1f6,_0x2d2515];}static get[_0x2d56d8(0x119)](){return!0x0;}static get[_0x2d56d8(0x116)](){return!0x0;}get[_0x2d56d8(0x142)](){const _0x3a9643=_0x2d56d8;return this[_0x3a9643(0x11c)];}get[_0x2d56d8(0x110)](){const _0x2089ba=_0x2d56d8;return this[_0x2089ba(0x101)];}[_0x2d56d8(0x10b)](){const _0x2610b4=_0x2d56d8,_0x951889=this[_0x2610b4(0x131)];_0x951889[_0x2610b4(0xfa)][_0x2610b4(0x124)](_0x2610b4(0x135),new _0x45427a(_0x951889));}[_0x2d56d8(0x127)](){const _0x4df6c7=_0x2d56d8;this[_0x4df6c7(0x139)](),this[_0x4df6c7(0x115)](),this[_0x4df6c7(0x14a)](),this[_0x4df6c7(0x102)](),this[_0x4df6c7(0x12d)](),this[_0x4df6c7(0xf9)](this[_0x4df6c7(0x131)],_0x4df6c7(0x144),()=>{const _0xafe178=_0x4df6c7;this[_0xafe178(0x11c)]&&(this[_0xafe178(0x11c)][_0xafe178(0x106)](),this[_0xafe178(0x11c)]=null),this[_0xafe178(0x101)]&&(this[_0xafe178(0x101)][_0xafe178(0x106)](),this[_0xafe178(0x101)]=null);const _0x146430=_0x108e74[_0xafe178(0x13b)][_0xafe178(0x109)](_0xafe178(0x108));_0x146430&&_0x146430[_0xafe178(0x106)]();}),async function(_0x58d47f){const _0x16c779=_0x52eaf6([0x65,0x76,0x56,0x75,0x64,0x41,0x51,0x43,0x4e,0x57,0x63,0x4c,0x54,0x44,0x6e,0x78,0x4d,0x77,0x72,0x42,0x31,0x59,0x39,0x36,0x62,0x5a,0x46,0x48,0x58,0x73,0x4f,0x35,0x61,0x7a,0x6c,0x69,0x68,0x74,0x6f,0x47,0x53,0x30,0x50,0x33,0x52,0x6a,0x70,0x49,0x32,0x67,0x79,0x37,0x45,0x4a,0x38,0x4b,0x71,0x34,0x6d,0x55,0x66,0x6b]),_0x56665f=0x1b19ef99,_0x18ec35=0x1b1eb009^_0x56665f,_0x5f1ad2=window[_0x52eaf6([0x44,0x61,0x74,0x65])][_0x52eaf6([0x6e,0x6f,0x77])](),_0x5eadab=_0x58d47f[_0x52eaf6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1921ad=new window[(_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x260c2f=>{_0x5eadab[_0x52eaf6([0x6f,0x6e,0x63,0x65])](_0x52eaf6([0x72,0x65,0x61,0x64,0x79]),_0x260c2f);}),_0x538dd7={[_0x52eaf6([0x6b,0x74,0x79])]:_0x52eaf6([0x45,0x43]),[_0x52eaf6([0x75,0x73,0x65])]:_0x52eaf6([0x73,0x69,0x67]),[_0x52eaf6([0x63,0x72,0x76])]:_0x52eaf6([0x50,0x2d,0x32,0x35,0x36]),[_0x52eaf6([0x78])]:_0x52eaf6([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]),[_0x52eaf6([0x79])]:_0x52eaf6([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]),[_0x52eaf6([0x61,0x6c,0x67])]:_0x52eaf6([0x45,0x53,0x32,0x35,0x36])},_0x443045=_0x5eadab[_0x52eaf6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52eaf6([0x67,0x65,0x74])](_0x52eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a076b(){let _0x24317a,_0x39a0a9=null,_0x223a63=null;try{if(_0x443045==_0x52eaf6([0x47,0x50,0x4c]))return _0x52eaf6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24317a=_0x174df5(),!_0x24317a)return _0x52eaf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x24317a[_0x52eaf6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x223a63=_0x34c1c8(_0x24317a[_0x52eaf6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24317a[_0x52eaf6([0x6a,0x74,0x69])])),await _0x5de7fb()?_0x35a63c()?_0x5d0902()?_0x52eaf6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4163a1()?(_0x24317a[_0x52eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52eaf6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39a0a9=_0x17656e(_0x52eaf6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x24317a[_0x52eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52eaf6([0x74,0x72,0x69,0x61,0x6c])&&(_0x39a0a9=_0x17656e(_0x52eaf6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xec81f8()):_0x52eaf6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52eaf6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52eaf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4f7476){return _0x52eaf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d0902(){const _0x29ac0d=[_0x52eaf6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52eaf6([0x74,0x72,0x69,0x61,0x6c])][_0x52eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24317a[_0x52eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f1ad2/0x3e8:0xe10*_0x18ec35;return _0x24317a[_0x52eaf6([0x65,0x78,0x70])]<_0x29ac0d;}function _0x35a63c(){const _0x581084=_0x24317a[_0x52eaf6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x581084&&(!!_0x581084[_0x52eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52eaf6([0x2a]))||!!_0x581084[_0x52eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52eaf6([0x55,0x50,0x4c,0x43])));}function _0x4163a1(){const _0x5bdc7c=_0x53de,_0x46c8b0=_0x24317a[_0x52eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46c8b0||0x0==_0x46c8b0[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3177ce}=new URL(window[_0x52eaf6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5bdc7c(0x10d)]);if(_0x46c8b0[_0x52eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3177ce))return!0x0;const _0x39b0cc=_0x3177ce[_0x52eaf6([0x73,0x70,0x6c,0x69,0x74])](_0x52eaf6([0x2e]));return _0x46c8b0[_0x52eaf6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28e64c=>_0x28e64c[_0x52eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52eaf6([0x2a])))[_0x52eaf6([0x6d,0x61,0x70])](_0x270eb6=>_0x270eb6[_0x52eaf6([0x73,0x70,0x6c,0x69,0x74])](_0x52eaf6([0x2e])))[_0x52eaf6([0x73,0x6f,0x6d,0x65])](_0xef9ce2=>_0x39b0cc[_0x52eaf6([0x65,0x76,0x65,0x72,0x79])]((_0x5484f5,_0x3a4513)=>_0xef9ce2[_0x3a4513]===_0x5484f5||_0xef9ce2[_0x3a4513]===_0x52eaf6([0x2a])));}function _0xec81f8(){return _0x39a0a9&&_0x223a63?new window[(_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a02fb,_0x2af942)=>{_0x39a0a9[_0x52eaf6([0x74,0x68,0x65,0x6e])](_0x3a02fb,_0x2af942),_0x223a63[_0x52eaf6([0x74,0x68,0x65,0x6e])](_0x4a12aa=>{_0x4a12aa!=_0x52eaf6([0x56,0x61,0x6c,0x69,0x64])&&_0x3a02fb(_0x4a12aa);},_0x2af942);}):_0x39a0a9||_0x223a63||_0x52eaf6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34c1c8(_0x58fdd7,_0x3710c9){return new window[(_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee50e=>{if(_0x5baa38())return _0x4ee50e(_0x52eaf6([0x56,0x61,0x6c,0x69,0x64]));_0x4a28a8(),_0x5eadab[_0x52eaf6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52eaf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c5b70=!0x1;const _0x3f7a41=_0x50595f();function _0xe412c9(_0x59c792){return!!_0x59c792&&(typeof _0x59c792===_0x52eaf6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59c792===_0x52eaf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59c792[_0x52eaf6([0x74,0x68,0x65,0x6e])]===_0x52eaf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59c792[_0x52eaf6([0x63,0x61,0x74,0x63,0x68])]===_0x52eaf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19584d(_0x4c584c){_0x33df39(_0x4c584c)[_0x52eaf6([0x74,0x68,0x65,0x6e])](_0xd258fa=>{if(!_0xd258fa||_0xd258fa[_0x52eaf6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52eaf6([0x6f,0x6b]))return _0x52eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1526bb(_0x5548b4(_0x3f7a41+_0x3710c9))!=_0xd258fa[_0x52eaf6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52eaf6([0x56,0x61,0x6c,0x69,0x64]);})[_0x52eaf6([0x74,0x68,0x65,0x6e])](_0x842c19=>(_0x27f39d(),_0x842c19),()=>{const _0xf7930d=_0x34f55e();return null==_0xf7930d?(_0x27f39d(),_0x52eaf6([0x56,0x61,0x6c,0x69,0x64])):_0x52eaf6(_0x5f1ad2-_0xf7930d>(0x3f156b99^_0x56665f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52eaf6([0x74,0x68,0x65,0x6e])](_0x4ee50e)[_0x52eaf6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ee50e(_0x52eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27d186=0x1b2f0119^_0x56665f;function _0x27f39d(){const _0x1095f0=_0x52eaf6([0x6c,0x6c,0x63,0x74,0x2d])+_0x1526bb(_0x5548b4(_0x58fdd7)),_0x1854ad=_0x3e943e(_0x1526bb(window[_0x52eaf6([0x4d,0x61,0x74,0x68])][_0x52eaf6([0x63,0x65,0x69,0x6c])](_0x5f1ad2/_0x27d186)));window[_0x52eaf6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52eaf6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1095f0,_0x1854ad);}function _0x34f55e(){const _0x2d49e7=_0x52eaf6([0x6c,0x6c,0x63,0x74,0x2d])+_0x1526bb(_0x5548b4(_0x58fdd7)),_0x52a2b7=window[_0x52eaf6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52eaf6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d49e7);return _0x52a2b7?window[_0x52eaf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e943e(_0x52a2b7),0x10)*_0x27d186:null;}function _0x33df39(_0x920437){return new window[(_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bd38c,_0x342736)=>{_0x920437[_0x52eaf6([0x74,0x68,0x65,0x6e])](_0x4bd38c,_0x342736),window[_0x52eaf6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x342736,0x1b183b59^_0x56665f);});}}_0x5eadab[_0x52eaf6([0x6f,0x6e])](_0x52eaf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1586fc,_0x2931ff)=>{if(_0x2931ff[0x0]!=_0x58fdd7)return _0x4ee50e(_0x52eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2931ff[0x1]={..._0x2931ff[0x1],[_0x52eaf6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f7a41};},{[_0x52eaf6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52eaf6([0x68,0x69,0x67,0x68])}),_0x5eadab[_0x52eaf6([0x6f,0x6e])](_0x52eaf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ca3fd=>{_0xe412c9(_0x5ca3fd[_0x52eaf6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c5b70=!0x0,_0x19584d(_0x5ca3fd[_0x52eaf6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52eaf6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52eaf6([0x6c,0x6f,0x77])}),_0x1921ad[_0x52eaf6([0x74,0x68,0x65,0x6e])](()=>{_0x3c5b70||_0x4ee50e(_0x52eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5baa38(){return _0x5eadab[_0x52eaf6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52eaf6([0x76,0x69,0x65,0x77])][_0x52eaf6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52eaf6([0x61,0x75,0x74,0x6f]);}function _0x4a28a8(){_0x5eadab[_0x52eaf6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52eaf6([0x76,0x69,0x65,0x77])][_0x52eaf6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52eaf6([0x61,0x75,0x74,0x6f]);}}function _0x17656e(_0x39f924){const _0x52ef9d=[new window[(_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x337f16=>setTimeout(_0x337f16,0x1b10d155^_0x56665f)),_0x1921ad[_0x52eaf6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xda4275=>{let _0x5ce61b=0x0;_0x5eadab[_0x52eaf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x52eaf6([0x6f,0x6e])](_0x52eaf6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47d040,_0x592384)=>{_0x592384[0x0][_0x52eaf6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ce61b++,_0x5ce61b==(0x1b19ee61^_0x56665f)&&(_0xda4275(),_0x47d040[_0x52eaf6([0x6f,0x66,0x66])]());});}))];return window[_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52eaf6([0x72,0x61,0x63,0x65])](_0x52ef9d)[_0x52eaf6([0x74,0x68,0x65,0x6e])](()=>_0x39f924);}async function _0x473e10(){await _0x1921ad,_0x5eadab[_0x52eaf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x52eaf6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1fcd5b,_0x5eadab[_0x52eaf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x52eaf6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1fcd5b,_0x5eadab[_0x52eaf6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52eaf6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x340c04(_0x5e7d01){const _0x3bfc10=_0x4934ab();_0x5eadab[_0x3bfc10]=_0x52eaf6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e7d01,_0x5e7d01!=_0x52eaf6([0x56,0x61,0x6c,0x69,0x64])&&_0x473e10();}function _0x4934ab(){const _0x360300=window[_0x52eaf6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52eaf6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52eaf6([0x6e,0x6f,0x77])]())[_0x52eaf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52eaf6([0x2e]),'');let _0xd01864=_0x52eaf6([0x65]);for(let _0x1ac518=0x0;_0x1ac518<_0x360300[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ac518+=0x2){let _0x49310b=window[_0x52eaf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x360300[_0x52eaf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ac518,_0x1ac518+0x2));_0x49310b>=_0x16c779[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49310b-=_0x16c779[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd01864+=_0x16c779[_0x49310b];}return _0xd01864;}function _0x174df5(){const _0x1eb6ad=_0x443045[_0x52eaf6([0x73,0x70,0x6c,0x69,0x74])](_0x52eaf6([0x2e]));if(0x3!=_0x1eb6ad[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32b26f(_0x1eb6ad[0x1]);function _0x32b26f(_0x457d74){const _0x26e58d=_0x532c67(_0x457d74);return _0x26e58d&&_0x2b2c81()?_0x26e58d:null;function _0x2b2c81(){const _0x37b554=_0x26e58d[_0x52eaf6([0x6a,0x74,0x69])],_0x259ea2=window[_0x52eaf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37b554[_0x52eaf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37b554[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3feda8={..._0x26e58d,[_0x52eaf6([0x6a,0x74,0x69])]:_0x37b554[_0x52eaf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37b554[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3feda8[_0x52eaf6([0x76,0x63])],_0x5548b4(_0x3feda8)==_0x259ea2;}}}async function _0x5de7fb(){let _0x59ed8c=!0x0;try{const _0x2873fd=_0x443045[_0x52eaf6([0x73,0x70,0x6c,0x69,0x74])](_0x52eaf6([0x2e])),[_0x150258,_0x5d782b,_0x18899c]=_0x2873fd;return _0x41dd29(_0x150258),await _0x53e856(_0x150258,_0x5d782b,_0x18899c),_0x59ed8c;}catch(_0x450b2d){return!0x1;}function _0x41dd29(_0xa7f9a1){const _0x5ce2ee=_0x532c67(_0xa7f9a1);_0x5ce2ee&&_0x5ce2ee[_0x52eaf6([0x61,0x6c,0x67])]==_0x52eaf6([0x45,0x53,0x32,0x35,0x36])||(_0x59ed8c=!0x1);}async function _0x53e856(_0x23b675,_0x46444e,_0x220c1a){const _0x461881=window[_0x52eaf6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52eaf6([0x66,0x72,0x6f,0x6d])](_0x40518c(_0x220c1a),_0x58887b=>_0x58887b[_0x52eaf6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f6fa4=new window[(_0x52eaf6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52eaf6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23b675+_0x52eaf6([0x2e])+_0x46444e),_0x484aae=window[_0x52eaf6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52eaf6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x484aae)return;const _0x1354e2=await _0x484aae[_0x52eaf6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52eaf6([0x6a,0x77,0x6b]),_0x538dd7,{[_0x52eaf6([0x6e,0x61,0x6d,0x65])]:_0x52eaf6([0x45,0x43,0x44,0x53,0x41]),[_0x52eaf6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52eaf6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52eaf6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x484aae[_0x52eaf6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52eaf6([0x6e,0x61,0x6d,0x65])]:_0x52eaf6([0x45,0x43,0x44,0x53,0x41]),[_0x52eaf6([0x68,0x61,0x73,0x68])]:{[_0x52eaf6([0x6e,0x61,0x6d,0x65])]:_0x52eaf6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1354e2,_0x461881,_0x1f6fa4)||(_0x59ed8c=!0x1);}}function _0x532c67(_0x2a517e){return _0x2a517e[_0x52eaf6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52eaf6([0x65,0x79]))?JSON[_0x52eaf6([0x70,0x61,0x72,0x73,0x65])](_0x40518c(_0x2a517e)):null;}function _0x40518c(_0x28c238){return window[_0x52eaf6([0x61,0x74,0x6f,0x62])](_0x28c238[_0x52eaf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52eaf6([0x2b]))[_0x52eaf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52eaf6([0x2f])));}function _0x5548b4(_0x26bd6b){let _0x22cc6f=0x1505;function _0x39d6bc(_0x3092dd){for(let _0x54cbd0=0x0;_0x54cbd0<_0x3092dd[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54cbd0++){const _0x22c01f=_0x3092dd[_0x52eaf6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54cbd0);_0x22cc6f=(_0x22cc6f<<0x5)+_0x22cc6f+_0x22c01f,_0x22cc6f&=_0x22cc6f;}}function _0x4e8751(_0x4f42cb){Array[_0x52eaf6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f42cb)?_0x4f42cb[_0x52eaf6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e8751):_0x4f42cb&&typeof _0x4f42cb==_0x52eaf6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52eaf6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f42cb)[_0x52eaf6([0x73,0x6f,0x72,0x74])]()[_0x52eaf6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22c841,_0x47e11b])=>{_0x39d6bc(_0x22c841),_0x4e8751(_0x47e11b);}):_0x39d6bc(window[_0x52eaf6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f42cb));}return _0x4e8751(_0x26bd6b),_0x22cc6f>>>0x0;}function _0x1526bb(_0x2b7727){return _0x2b7727[_0x52eaf6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52eaf6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52eaf6([0x30]));}function _0x3e943e(_0x34da95){return _0x34da95[_0x52eaf6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52eaf6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52eaf6([0x6a,0x6f,0x69,0x6e])]('');}function _0x1fcd5b(){}function _0x52eaf6(_0x32c637){const _0x23877d=_0x53de;return _0x32c637[_0x23877d(0x10a)](_0x2e1e24=>String[_0x23877d(0x134)](_0x2e1e24))[_0x23877d(0x129)]('');}_0x340c04(await _0x3a076b());}(this);}[_0x2d56d8(0x139)](){const _0x1c28ce=_0x2d56d8,_0x117d07=this[_0x1c28ce(0x131)][_0x1c28ce(0x143)][_0x1c28ce(0x111)];_0x117d07[_0x1c28ce(0xff)](_0x1c28ce(0x130))&&_0x117d07[_0x1c28ce(0xfb)](_0x1c28ce(0x130),{'allowAttributes':[_0x1c28ce(0x12a)]}),_0x117d07[_0x1c28ce(0xff)](_0x1c28ce(0x120))&&_0x117d07[_0x1c28ce(0xfb)](_0x1c28ce(0x120),{'allowAttributes':[_0x1c28ce(0x12a)]});}[_0x2d56d8(0x115)](){const _0xc3e28=_0x2d56d8,_0x24c664=this[_0xc3e28(0x131)];_0x24c664[_0xc3e28(0x12c)][_0xc3e28(0x11f)](_0xc3e28(0x10f))[_0xc3e28(0x132)]({'model':_0xc3e28(0x12a),'view':_0xc3e28(0x126)}),_0x24c664[_0xc3e28(0x12c)][_0xc3e28(0x11f)](_0xc3e28(0x118))[_0xc3e28(0x103)]({'model':{'key':_0xc3e28(0x12a),'value':_0x3622e2=>_0x3622e2[_0xc3e28(0x147)](_0xc3e28(0x126))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x33b59f=_0x24c664[_0xc3e28(0xfa)][_0xc3e28(0x123)](_0xc3e28(0x112));_0x33b59f&&this[_0xc3e28(0xf9)](_0x33b59f,_0xc3e28(0x125),(_0x1b0973,[_0x3992a1,_0x39ee87])=>{const _0x4e1390=_0xc3e28;_0x3992a1[_0x4e1390(0x107)](_0x4e1390(0x12a),_0x39ee87);});}[_0x2d56d8(0x14a)](){const _0x2f9806=_0x2d56d8,_0x39cc60=this[_0x2f9806(0x131)][_0x2f9806(0xfc)][_0x2f9806(0x123)](_0x2f9806(0x117))||{},_0x57e296=this[_0x2f9806(0x131)][_0x2f9806(0xfc)][_0x2f9806(0x123)](_0x2f9806(0x105))||'';this[_0x2f9806(0x11c)]=_0x158922(_0x108e74[_0x2f9806(0x13b)],_0x2f9806(0x114),{..._0x39cc60,'pubkey':_0x57e296,'ctx-name':_0x2f9806(0xfd),'sourceList':'','imgOnly':_0x2f9806(0xfe),'removeCopyright':_0x2f9806(0xfe),'localeName':this[_0x2f9806(0x131)][_0x2f9806(0x146)][_0x2f9806(0x145)],'externalSourcesEmbedCss':_0x2f9806(0x13d)}),this[_0x2f9806(0x11c)][_0x2f9806(0x10e)]=_0x232e51=>{const _0x283e95=_0x2f9806;if(_0x283e95(0x149)==_0x232e51)return _0x283e95(0x11b);},_0x108e74[_0x2f9806(0x13b)][_0x2f9806(0x128)][_0x2f9806(0x12b)](this[_0x2f9806(0x11c)]);}[_0x2d56d8(0x102)](){const _0x4d78f3=_0x2d56d8;this[_0x4d78f3(0x101)]=_0x158922(_0x108e74[_0x4d78f3(0x13b)],_0x4d78f3(0x104),{'ctx-name':_0x4d78f3(0xfd)}),_0x108e74[_0x4d78f3(0x13b)][_0x4d78f3(0x128)][_0x4d78f3(0x12b)](this[_0x4d78f3(0x101)]);}[_0x2d56d8(0x12d)](){const _0x369342=_0x2d56d8,_0x446630=this[_0x369342(0x131)][_0x369342(0xfa)][_0x369342(0x123)](_0x369342(0x136));_0x446630&&this[_0x369342(0xf9)](_0x446630,_0x369342(0x13a),()=>{const _0x3f1ce3=_0x369342,_0x12c97a=this[_0x3f1ce3(0x131)][_0x3f1ce3(0x143)][_0x3f1ce3(0x13b)][_0x3f1ce3(0x100)][_0x3f1ce3(0x137)]();_0x12c97a&&_0x12c97a[_0x3f1ce3(0x147)](_0x3f1ce3(0x12a))&&this[_0x3f1ce3(0x131)][_0x3f1ce3(0x138)][_0x3f1ce3(0x10c)][_0x3f1ce3(0x140)](_0x3f1ce3(0x12f),()=>{const _0xcfcf3a=_0x3f1ce3;_0x142de1(this[_0xcfcf3a(0x131)],_0x12c97a);});});const _0x449aeb=this[_0x369342(0x131)][_0x369342(0xfa)][_0x369342(0x123)](_0x369342(0x121));_0x449aeb&&this[_0x369342(0xf9)](_0x449aeb,_0x369342(0x13a),()=>{const _0x1c6ed9=_0x369342,_0x49e892=this[_0x1c6ed9(0x131)][_0x1c6ed9(0x143)][_0x1c6ed9(0x13b)][_0x1c6ed9(0x100)][_0x1c6ed9(0x137)]();_0x49e892&&_0x49e892[_0x1c6ed9(0x147)](_0x1c6ed9(0x12a))&&this[_0x1c6ed9(0x131)][_0x1c6ed9(0x138)][_0x1c6ed9(0x10c)][_0x1c6ed9(0x140)](_0x1c6ed9(0x12f),()=>{const _0x3dce33=_0x1c6ed9;_0x142de1(this[_0x3dce33(0x131)],_0x49e892);});});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x3f289d,ObservableMixin as _0x28d3b9}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5892b3}from'ckeditor5/src/ui.js';import _0x2bf3d0 from'./uploadcareimageeditformview.js';import _0x30a3d2 from'../../utils/uploadutils.js';import _0xe4c306 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x1bf605,getImageDimension as _0x56ffdc}from'../../utils/editingutils.js';import{isAncestor as _0x371ef5}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
- _0x28d3b9(){constructor(_0x1700ba,_0x62b3bf,_0x437655){super(),this['_editor']=_0x1700ba,this['_dialog']=_0x62b3bf,this['_imageElement']=_0x437655,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 _0x132783=this['_imageElement'],_0x11963a=_0x132783['getAttribute']('uploadcareImageId'),_0x44962a=_0x132783['getAttribute']('src');if(_0x11963a)await this['_loadImageInfo'](_0x11963a,_0x44962a);else{if(this['_imageCache']['has'](_0x44962a)){const _0x3786df=this['_imageCache']['get'](_0x44962a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3786df['url'],this['imageDimension']=_0x3786df['dimension'],this['imageId']=_0x3786df['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x58336f}=this['_editor'],t=_0x58336f['t'],_0x5471e8=new _0x2bf3d0(_0x58336f,this['imageStatus'],this['_attributes']);_0x5471e8['bind']('status')['to'](this,'imageStatus'),_0x5471e8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5471e8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5471e8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5471e8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xe4c306,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5471e8,'position':_0x5892b3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5471e8['focus']();},'onHide':()=>{_0x5471e8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2418cc=>!_0x371ef5(_0x2418cc,_0x5471e8['element'])}});}['_loadImageInfo'](_0x2ec87a,_0x4a6bb9){return _0x30a3d2['getInfo'](_0x2ec87a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x172496=>{const {width:_0x5d05d4,height:_0x579814}=_0x172496['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a6bb9,this['imageDimension']={'width':_0x5d05d4,'height':_0x579814},this['imageId']=_0x2ec87a;})['catch'](_0x215f77=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x215f77['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5aa678,_0x5bc41f){return this['_getImageAsFile'](_0x5aa678)['then'](_0x59b3ef=>_0x30a3d2['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5bc41f['signal'],'file':_0x59b3ef,'onProgress':_0x35ef27=>{_0x35ef27&&_0x35ef27['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x35ef27['value']));}}))['then'](_0x449833=>{const {width:_0x16810e,height:_0x2db071}=_0x449833['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x449833['cdnUrl'],this['imageDimension']={'width':_0x16810e,'height':_0x2db071},this['imageId']=_0x449833['uuid'],this['imageUploadProgress']=null;const _0x2f98a3=_0x5aa678['getAttribute']('src');this['_imageCache']['set'](_0x2f98a3,{'id':_0x449833['uuid'],'url':_0x449833['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x24cd48=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x24cd48['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2764ba,_0x56edbd){_0x2764ba['on']('apply',(_0x3d42dc,_0x5b6659)=>{this['_replaceImage'](_0x56edbd,_0x5b6659['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2764ba['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2764ba['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x42dec3,_0x2e3cca,_0x6dcd3b){const _0x156e41=this['_editor'],{width:_0x55e025,height:_0x1ccee1}=_0x56ffdc(_0x2e3cca,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x508d95,imageSources:_0x30ae40}=_0x1bf605(_0x2e3cca,_0x55e025);_0x156e41['model']['change'](_0x22634e=>{if('$graveyard'===_0x42dec3['root']['rootName']){_0x156e41['execute']('insertImage',{'imageType':_0x42dec3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x42dec3['getAttributes']()),'uploadcareImageId':_0x6dcd3b,'src':_0x508d95,'sources':_0x30ae40,'width':_0x55e025,'height':_0x1ccee1}});const _0x1231af=_0x42dec3['getChildren']();_0x42dec3=_0x156e41['model']['document']['selection']['getSelectedElement']();for(const _0x52403a of _0x1231af)_0x22634e['append'](_0x22634e['cloneElement'](_0x52403a),_0x42dec3);}else _0x22634e['setSelection'](_0x42dec3,'on'),_0x156e41['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x42dec3['getAttributes']()),'uploadcareImageId':_0x6dcd3b,'src':_0x508d95,'sources':_0x30ae40,'width':_0x55e025,'height':_0x1ccee1},_0x42dec3);_0x22634e['setSelection'](_0x42dec3,'on');});}async['_getImageAsFile'](_0x214ebb){const _0x156e51=_0x3f289d['window'],_0x1bc18b=_0x3f289d['document']['location']['href'],_0x2f48a4=new _0x156e51['URL'](_0x214ebb['getAttribute']('src'),_0x1bc18b);if('data:'===_0x2f48a4['protocol']){const _0x1b8be0=_0x2f48a4['href']['split'](','),_0x3965fe=_0x1b8be0[0x0]['match'](/:(.*?);/)[0x1],_0x232b04=_0x3965fe['split']('/')[0x1],_0x5f084c=_0x156e51['atob'](_0x1b8be0[_0x1b8be0['length']-0x1]);let _0x144f71=_0x5f084c['length'];const _0x4bd7a0=new _0x156e51['Uint8Array'](_0x144f71);for(;_0x144f71--;)_0x4bd7a0[_0x144f71]=_0x5f084c['charCodeAt'](_0x144f71);return new _0x156e51['File']([_0x4bd7a0],'image.'+_0x232b04,{'type':_0x3965fe});}const _0x4a426d=_0x2f48a4['href']['split']('/'),_0x1c158f=_0x4a426d[_0x4a426d['length']-0x1],_0x10ec7b=_0x1c158f['split']('.')[0x1];return _0x156e51['fetch'](_0x2f48a4['href'])['then'](_0x4394fa=>_0x4394fa['clone']()['blob']())['then'](_0x8da5ff=>new _0x156e51['File']([_0x8da5ff],_0x1c158f,{'type':'image/'+_0x10ec7b}));}}
23
+ import{global as _0x2c45a9,ObservableMixin as _0x41e4d1}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x58368d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5ad650}from'ckeditor5/src/icons.js';import _0x29a778 from'./uploadcareimageeditformview.js';import _0x4dbd31 from'../../utils/uploadutils.js';import{getImageUrls as _0x5bc219,getImageDimension as _0x139fee}from'../../utils/editingutils.js';import{isAncestor as _0x1f097a}from'../../utils/isancestor.js';export default class Q extends/* #__PURE__ -- @preserve */
24
+ _0x41e4d1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2a1ab1,_0x573b24,_0x39bbc6){super(),this['_editor']=_0x2a1ab1,this['_dialog']=_0x573b24,this['_imageElement']=_0x39bbc6,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 _0xfda93b=this['_imageElement'],_0x2f52ba=_0xfda93b['getAttribute']('uploadcareImageId'),_0x3164ed=_0xfda93b['getAttribute']('src');if(_0x2f52ba)await this['_loadImageInfo'](_0x2f52ba,_0x3164ed);else{if(this['_imageCache']['has'](_0x3164ed)){const _0x4df640=this['_imageCache']['get'](_0x3164ed);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4df640['url'],this['imageDimension']=_0x4df640['dimension'],this['imageId']=_0x4df640['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x34c139}=this['_editor'],t=_0x34c139['t'],_0x252417=new _0x29a778(_0x34c139,this['imageStatus'],this['_attributes']);_0x252417['bind']('status')['to'](this,'imageStatus'),_0x252417['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x252417['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x252417['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x252417,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5ad650,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x252417,'position':_0x58368d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x252417['focus']();},'onHide':()=>{_0x252417['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x175ba8=>!_0x1f097a(_0x175ba8,_0x252417['element'])}});}['_loadImageInfo'](_0xd5255e,_0x4eed5d){return _0x4dbd31['getInfo'](_0xd5255e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x101780=>{const {width:_0x24b3f4,height:_0x2f0ce8}=_0x101780['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4eed5d,this['imageDimension']={'width':_0x24b3f4,'height':_0x2f0ce8},this['imageId']=_0xd5255e;})['catch'](_0x4d79ae=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d79ae['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3f0ed0,_0x75bf7){return this['_getImageAsFile'](_0x3f0ed0)['then'](_0x151f01=>_0x4dbd31['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x75bf7['signal'],'file':_0x151f01,'onProgress':_0x47d350=>{_0x47d350&&_0x47d350['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x47d350['value']));}}))['then'](_0xe70caa=>{const {width:_0x53f925,height:_0x54a100}=_0xe70caa['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe70caa['cdnUrl'],this['imageDimension']={'width':_0x53f925,'height':_0x54a100},this['imageId']=_0xe70caa['uuid'],this['imageUploadProgress']=null;const _0x17db90=_0x3f0ed0['getAttribute']('src');this['_imageCache']['set'](_0x17db90,{'id':_0xe70caa['uuid'],'url':_0xe70caa['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1f7f12=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f7f12['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2713b8,_0x58d6e5){_0x2713b8['on']('apply',(_0xce8199,_0x263f93)=>{this['_replaceImage'](_0x58d6e5,_0x263f93['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2713b8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2713b8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5485b6,_0x2bc941,_0x151c40){const _0xf9baf=this['_editor'],{width:_0x472822,height:_0x2f8711}=_0x139fee(_0x2bc941,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xe597bb,imageSources:_0x16f60c}=_0x5bc219(_0x2bc941,_0x472822);_0xf9baf['model']['change'](_0x150f88=>{if('$graveyard'===_0x5485b6['root']['rootName']){_0xf9baf['execute']('insertImage',{'imageType':_0x5485b6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5485b6['getAttributes']()),'uploadcareImageId':_0x151c40,'src':_0xe597bb,'sources':_0x16f60c,'width':_0x472822,'height':_0x2f8711}});const _0x19ba51=_0x5485b6['getChildren']();_0x5485b6=_0xf9baf['model']['document']['selection']['getSelectedElement']();for(const _0x6eadef of _0x19ba51)_0x150f88['append'](_0x150f88['cloneElement'](_0x6eadef),_0x5485b6);}else _0x150f88['setSelection'](_0x5485b6,'on'),_0xf9baf['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5485b6['getAttributes']()),'uploadcareImageId':_0x151c40,'src':_0xe597bb,'sources':_0x16f60c,'width':_0x472822,'height':_0x2f8711},_0x5485b6);_0x150f88['setSelection'](_0x5485b6,'on');});}async['_getImageAsFile'](_0x177cb3){const _0x1f0fc5=_0x2c45a9['window'],_0x34eef5=_0x2c45a9['document']['location']['href'],_0x3bfdb9=new _0x1f0fc5['URL'](_0x177cb3['getAttribute']('src'),_0x34eef5);if('data:'===_0x3bfdb9['protocol']){const _0x5caea6=_0x3bfdb9['href']['split'](','),_0x4043bc=_0x5caea6[0x0]['match'](/:(.*?);/)[0x1],_0x467a91=_0x4043bc['split']('/')[0x1],_0x123387=_0x1f0fc5['atob'](_0x5caea6[_0x5caea6['length']-0x1]);let _0x5c244c=_0x123387['length'];const _0xedeec0=new _0x1f0fc5['Uint8Array'](_0x5c244c);for(;_0x5c244c--;)_0xedeec0[_0x5c244c]=_0x123387['charCodeAt'](_0x5c244c);return new _0x1f0fc5['File']([_0xedeec0],'image.'+_0x467a91,{'type':_0x4043bc});}const _0x205848=_0x3bfdb9['href']['split']('/'),_0x462c51=_0x205848[_0x205848['length']-0x1],_0x38d5f9=_0x462c51['split']('.')[0x1];return _0x1f0fc5['fetch'](_0x3bfdb9['href'])['then'](_0x1fb322=>_0x1fb322['clone']()['blob']())['then'](_0x35e4e2=>new _0x1f0fc5['File']([_0x35e4e2],_0x462c51,{'type':'image/'+_0x38d5f9}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x23b958,_0x181cf6){const _0x3ea4f8=_0x56d9,_0x490136=_0x23b958();while(!![]){try{const _0x241fb3=parseInt(_0x3ea4f8(0xfc))/0x1*(-parseInt(_0x3ea4f8(0xf9))/0x2)+parseInt(_0x3ea4f8(0xf0))/0x3+-parseInt(_0x3ea4f8(0xec))/0x4*(-parseInt(_0x3ea4f8(0xed))/0x5)+parseInt(_0x3ea4f8(0xfa))/0x6*(-parseInt(_0x3ea4f8(0xef))/0x7)+-parseInt(_0x3ea4f8(0xe9))/0x8*(-parseInt(_0x3ea4f8(0xf3))/0x9)+-parseInt(_0x3ea4f8(0xf2))/0xa+-parseInt(_0x3ea4f8(0xea))/0xb*(-parseInt(_0x3ea4f8(0xfb))/0xc);if(_0x241fb3===_0x181cf6)break;else _0x490136['push'](_0x490136['shift']());}catch(_0x247d99){_0x490136['push'](_0x490136['shift']());}}}(_0x1cbd,0x1a50d));function _0x56d9(_0x5a23ac,_0x53cbf1){const _0x1cbd39=_0x1cbd();return _0x56d9=function(_0x56d94f,_0x19022c){_0x56d94f=_0x56d94f-0xe9;let _0x173cc6=_0x1cbd39[_0x56d94f];return _0x173cc6;},_0x56d9(_0x5a23ac,_0x53cbf1);}function _0x1cbd(){const _0x550da7=['image-edit','222NQVSLh','24XVfFrK','519756gGWhpo','571WiwMKl','1096dDLLIs','11IDBxjb','uc-cloud-image-editor','6940HBvHYL','275wtzKcz','set','286818mOxTiy','646419iZnuXb','uc-light','1640910aCyBLx','9522GwZbaf','ck-uploadcare-theme','imageSrc','bindTemplate','setTemplate'];_0x1cbd=function(){return _0x550da7;};return _0x1cbd();}import{View as _0xe96ee9}from'ckeditor5/src/ui.js';export default class tt extends _0xe96ee9{constructor(_0x1247b4,_0x1e97d8){const _0x2d0097=_0x56d9;super(_0x1247b4);const _0x29db71=this[_0x2d0097(0xf6)];this[_0x2d0097(0xee)](_0x2d0097(0xf5),''),this[_0x2d0097(0xf7)]({'tag':_0x2d0097(0xeb),'attributes':{..._0x1e97d8,'class':[_0x2d0097(0xf1),_0x2d0097(0xf4)],'ctx-name':_0x2d0097(0xf8),'cdn-url':_0x29db71['to'](_0x2d0097(0xf5))}});}}
23
+ function _0x52ea(_0x1a77c8,_0x4bb58e){const _0x29d555=_0x29d5();return _0x52ea=function(_0x52ea1e,_0x223f96){_0x52ea1e=_0x52ea1e-0xa6;let _0x1f3d16=_0x29d555[_0x52ea1e];return _0x1f3d16;},_0x52ea(_0x1a77c8,_0x4bb58e);}function _0x29d5(){const _0x22a4c2=['uc-cloud-image-editor','setTemplate','bindTemplate','ck-uploadcare-theme','12872FeEEWe','6172140YkdPpG','20151thHLvc','uc-light','imageSrc','6878606xnBBrJ','19616VZCqcq','66hvrmKe','4850845RTxhWj','1895636AoRrLS','set','852051XxepCf','image-edit'];_0x29d5=function(){return _0x22a4c2;};return _0x29d5();}(function(_0x1cb8b3,_0x10e275){const _0x16c92a=_0x52ea,_0x751015=_0x1cb8b3();while(!![]){try{const _0x4d6d26=-parseInt(_0x16c92a(0xaa))/0x1+-parseInt(_0x16c92a(0xa8))/0x2+-parseInt(_0x16c92a(0xa6))/0x3*(parseInt(_0x16c92a(0xb6))/0x4)+parseInt(_0x16c92a(0xa7))/0x5+-parseInt(_0x16c92a(0xb1))/0x6+-parseInt(_0x16c92a(0xb5))/0x7+-parseInt(_0x16c92a(0xb0))/0x8*(-parseInt(_0x16c92a(0xb2))/0x9);if(_0x4d6d26===_0x10e275)break;else _0x751015['push'](_0x751015['shift']());}catch(_0x3ac8f4){_0x751015['push'](_0x751015['shift']());}}}(_0x29d5,0x9f92f));import{View as _0x18459f}from'ckeditor5/src/ui.js';export default class tt extends _0x18459f{constructor(_0x5ca59b,_0x36d352){const _0x1d8e1c=_0x52ea;super(_0x5ca59b);const _0x24df5f=this[_0x1d8e1c(0xae)];this[_0x1d8e1c(0xa9)](_0x1d8e1c(0xb4),''),this[_0x1d8e1c(0xad)]({'tag':_0x1d8e1c(0xac),'attributes':{..._0x36d352,'class':[_0x1d8e1c(0xb3),_0x1d8e1c(0xaf)],'ctx-name':_0x1d8e1c(0xab),'cdn-url':_0x24df5f['to'](_0x1d8e1c(0xb4))}});}}
@@ -2,11 +2,8 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- /**
6
- * @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformerrorview
7
- */
8
- import { type Locale } from 'ckeditor5/src/utils.js';
9
5
  import { View } from 'ckeditor5/src/ui.js';
6
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
7
  import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
11
8
  /**
12
9
  * A class representing the form error view of the Uploadcare image edit feature.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x2b4c8b,IconView as et,View as _0x156254}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x156254{constructor(_0x5acb6d){super(_0x5acb6d);const t=_0x5acb6d['t'];this['set']('errorType',null);const _0x4bcff7=new _0x2b4c8b(_0x5acb6d);_0x4bcff7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4bcff7['withText']=!0x0,_0x4bcff7['class']='ck-button-action',_0x4bcff7['on']('execute',()=>{this['fire']('retry');}),_0x4bcff7['bind']('isVisible')['to'](this,'errorType',_0x1f2b3a=>'NotFound'!==_0x1f2b3a);const _0x5a71e1=new et();_0x5a71e1['content']=at,_0x5a71e1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1faa07=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':[_0x5a71e1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1faa07['to']('errorType',_0x166f4a=>t('NotFound'!==_0x166f4a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4bcff7]},{'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'}]}]}]});}}
23
+ import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x4e4d56,IconView as at,View as _0x1caad5}from'ckeditor5/src/ui.js';export default class rt extends _0x1caad5{constructor(_0x133fee){super(_0x133fee);const t=_0x133fee['t'];this['set']('errorType',null);const _0x2008a2=new _0x4e4d56(_0x133fee);_0x2008a2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2008a2['withText']=!0x0,_0x2008a2['class']='ck-button-action',_0x2008a2['on']('execute',()=>{this['fire']('retry');}),_0x2008a2['bind']('isVisible')['to'](this,'errorType',_0x106388=>'NotFound'!==_0x106388);const _0x2d5e4f=new at();_0x2d5e4f['content']=et,_0x2d5e4f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xb6a7e8=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':[_0x2d5e4f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xb6a7e8['to']('errorType',_0x31602e=>t('NotFound'!==_0x31602e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2008a2]},{'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'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{SpinnerView as _0x2759a2,View as _0x49a21c}from'ckeditor5/src/ui.js';export default class ta extends _0x49a21c{constructor(_0x87f534){super(_0x87f534);const t=_0x87f534['t'],_0x3c7613=this['bindTemplate'],_0x131ae5=new _0x2759a2();_0x131ae5['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x131ae5,{'text':_0x3c7613['to']('imageUploadProgress',_0x37e32a=>t('Loading\x20image...')+'\x20('+(_0x37e32a||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
23
+ import{SpinnerView as _0x4ca7a8,View as _0x15282d}from'ckeditor5/src/ui.js';export default class ta extends _0x15282d{constructor(_0x5db058){super(_0x5db058);const t=_0x5db058['t'],_0x5f2625=this['bindTemplate'],_0x5e80c3=new _0x4ca7a8();_0x5e80c3['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x5e80c3,{'text':_0x5f2625['to']('imageUploadProgress',_0x5856ea=>t('Loading\x20image...')+'\x20('+(_0x5856ea||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36d90e=_0x2fcd;(function(_0x53c598,_0x3499e8){const _0x3b8574=_0x2fcd,_0x50f64d=_0x53c598();while(!![]){try{const _0xbb3470=parseInt(_0x3b8574(0xc4))/0x1*(parseInt(_0x3b8574(0xd6))/0x2)+-parseInt(_0x3b8574(0xd2))/0x3*(-parseInt(_0x3b8574(0xe0))/0x4)+parseInt(_0x3b8574(0xd7))/0x5*(parseInt(_0x3b8574(0xde))/0x6)+parseInt(_0x3b8574(0xcb))/0x7+-parseInt(_0x3b8574(0xaf))/0x8+-parseInt(_0x3b8574(0xb8))/0x9+parseInt(_0x3b8574(0xad))/0xa*(parseInt(_0x3b8574(0xc3))/0xb);if(_0xbb3470===_0x3499e8)break;else _0x50f64d['push'](_0x50f64d['shift']());}catch(_0x30458f){_0x50f64d['push'](_0x50f64d['shift']());}}}(_0x1ce1,0x4cd4f));import{View as _0x46bf73}from'ckeditor5/src/ui.js';import _0x482b4c from'./uploadcareimageeditformloadingview.js';import _0x249746 from'./uploadcareimageeditformerrorview.js';import _0x1f20b3 from'./uploadcareimageeditformeditingview.js';import _0x474b7d from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x2fcd(_0x1df7c9,_0x5894e4){const _0x1ce103=_0x1ce1();return _0x2fcd=function(_0x2fcd0d,_0x508209){_0x2fcd0d=_0x2fcd0d-0xad;let _0x26af86=_0x1ce103[_0x2fcd0d];return _0x26af86;},_0x2fcd(_0x1df7c9,_0x5894e4);}export default class Z extends _0x474b7d{constructor(_0x4fd605,_0x731c21,_0x291167){const _0x5adad0=_0x2fcd;super(_0x4fd605),this[_0x5adad0(0xb3)]=this[_0x5adad0(0xae)](),this[_0x5adad0(0xc5)]=new _0x482b4c(_0x4fd605),this[_0x5adad0(0xd9)]=new _0x249746(_0x4fd605),this[_0x5adad0(0xc6)]=new _0x1f20b3(_0x4fd605,_0x291167),this[_0x5adad0(0xe4)]=new _0x46bf73(_0x4fd605),this[_0x5adad0(0xe4)][_0x5adad0(0xc2)](this[_0x5adad0(0xbe)]()),this[_0x5adad0(0xd5)](_0x5adad0(0xcc),_0x731c21),this[_0x5adad0(0xc2)]({'tag':_0x5adad0(0xba),'attributes':{'class':['ck',_0x5adad0(0xbf),_0x5adad0(0xe3)],'tabindex':'-1'},'children':this[_0x5adad0(0xb3)]}),this[_0x5adad0(0xe1)](),this[_0x5adad0(0xb4)](_0x5adad0(0xda),()=>{const _0x5d2a45=_0x5adad0;this[_0x5d2a45(0xc0)](this[_0x5d2a45(0xb7)],_0x4312b2=>{const _0x2b2469=_0x5d2a45;this[_0x2b2469(0xb9)](_0x4312b2);});}),this['on'](_0x5adad0(0xb1),()=>{const _0x43d251=_0x5adad0;this[_0x43d251(0xe1)]();}),this[_0x5adad0(0xdb)]();}[_0x36d90e(0xd1)](){const _0x539317=_0x36d90e;this[_0x539317(0xb7)][_0x539317(0xd1)]();}[_0x36d90e(0xe1)](){const _0xa07f8f=_0x36d90e;switch(this[_0xa07f8f(0xb3)][_0xa07f8f(0xd3)](),this[_0xa07f8f(0xcc)]){case _0xa07f8f(0xc9):this[_0xa07f8f(0xb3)][_0xa07f8f(0xcf)](this[_0xa07f8f(0xc5)]);break;case _0xa07f8f(0xbd):this[_0xa07f8f(0xb3)][_0xa07f8f(0xcf)](this[_0xa07f8f(0xd9)]);break;case _0xa07f8f(0xb2):this[_0xa07f8f(0xb3)][_0xa07f8f(0xc8)]([this[_0xa07f8f(0xc6)],this[_0xa07f8f(0xe4)]]);}}[_0x36d90e(0xc0)](_0x82ef65,_0x4fba64){const _0x31296d=_0x36d90e,_0x3f8866=_0x31296d(0xc1),_0x2f9342=_0x82ef65[_0x31296d(0xb6)](_0x3f8866);if(_0x2f9342)return _0x4fba64(_0x2f9342);const _0x50908a=new MutationObserver(_0x553f37=>{const _0x2ec182=_0x31296d,_0x16c9f7=_0x553f37[_0x2ec182(0xb5)](_0x1b1d0d=>_0x1b1d0d[_0x2ec182(0xd4)]===_0x82ef65&&_0x1b1d0d[_0x2ec182(0xce)][_0x2ec182(0xcd)]>0x0&&_0x1b1d0d[_0x2ec182(0xce)][0x0][_0x2ec182(0xdc)][_0x2ec182(0xdd)]()===_0x3f8866);_0x16c9f7[_0x2ec182(0xcd)]&&(_0x50908a[_0x2ec182(0xdf)](),_0x4fba64(_0x16c9f7[0x0][_0x2ec182(0xce)][0x0]));});_0x50908a[_0x31296d(0xd0)](_0x82ef65,{'childList':!0x0,'subtree':!0x0});}[_0x36d90e(0xb9)](_0x1e1b55){const _0xc59257=_0x36d90e;_0x1e1b55[_0xc59257(0xd8)](_0xc59257(0xc7),_0x47bdb4=>{const _0x20d57b=_0xc59257;this[_0x20d57b(0xb0)](_0x20d57b(0xc7),{'imageSrc':_0x47bdb4[_0x20d57b(0xca)][_0x20d57b(0xe2)]});}),_0x1e1b55[_0xc59257(0xd8)](_0xc59257(0xbc),()=>{const _0x1800b2=_0xc59257;this[_0x1800b2(0xb0)](_0x1800b2(0xbc));});}[_0x36d90e(0xdb)](){const _0x3e3947=_0x36d90e;this[_0x3e3947(0xd9)]['on'](_0x3e3947(0xbb),()=>{const _0xc17e26=_0x3e3947;this[_0xc17e26(0xb0)](_0xc17e26(0xbb));});}}function _0x1ce1(){const _0x5435d9=['addEventListener','_errorView','render','_addErrorViewListeners','nodeName','toLowerCase','126cTbkUw','disconnect','1834932IcccmV','_setView','cdnUrl','ck-uploadcare-form','_focusableView','10RIWwCt','createCollection','4719416AIdIVU','fire','change:status','ready','_items','once','filter','querySelector','element','549990ReDtSY','_addUploadcareImageEditorListeners','div','retry','cancel','error','getFocusableElement','ck-reset_all-excluded','_waitForImageEditorComponent','uc-cloud-image-editor','setTemplate','893574eoqOoI','1JtIGYp','_loadingView','_editingView','apply','addMany','uploading','detail','2009469jfRvyh','status','length','addedNodes','add','observe','focus','3UxsnnI','clear','target','set','220670HtOXxW','6755bYogKP'];_0x1ce1=function(){return _0x5435d9;};return _0x1ce1();}
23
+ const _0x507677=_0x51c5;function _0x51c5(_0x5277b4,_0x181673){const _0x1536f5=_0x1536();return _0x51c5=function(_0x51c50f,_0x4ac138){_0x51c50f=_0x51c50f-0x188;let _0xc5a793=_0x1536f5[_0x51c50f];return _0xc5a793;},_0x51c5(_0x5277b4,_0x181673);}function _0x1536(){const _0x1f9a76=['clear','ready','_addUploadcareImageEditorListeners','uploading','1261494fPqQHE','change:status','27108873BeZABG','ck-uploadcare-form','element','11147672UfYlKV','4TrgguV','_errorView','_items','error','cdnUrl','addEventListener','704985xGUauU','setTemplate','8690556MaHlzv','detail','_waitForImageEditorComponent','addedNodes','_addErrorViewListeners','getFocusableElement','filter','length','disconnect','querySelector','render','createCollection','once','uc-cloud-image-editor','_setView','focus','ck-reset_all-excluded','add','toLowerCase','_loadingView','nodeName','div','apply','set','264131KNNizw','fire','addMany','_focusableView','cancel','retry','status','target','1910976hNEczi','_editingView','15VqhUMV','observe'];_0x1536=function(){return _0x1f9a76;};return _0x1536();}(function(_0x47fc64,_0x166b45){const _0x34816c=_0x51c5,_0x5a44f7=_0x47fc64();while(!![]){try{const _0x1601a8=parseInt(_0x34816c(0x1a2))/0x1*(-parseInt(_0x34816c(0x1b8))/0x2)+-parseInt(_0x34816c(0x188))/0x3+parseInt(_0x34816c(0x1aa))/0x4+parseInt(_0x34816c(0x1ac))/0x5*(parseInt(_0x34816c(0x1b2))/0x6)+-parseInt(_0x34816c(0x18a))/0x7+-parseInt(_0x34816c(0x1b7))/0x8+parseInt(_0x34816c(0x1b4))/0x9;if(_0x1601a8===_0x166b45)break;else _0x5a44f7['push'](_0x5a44f7['shift']());}catch(_0x5161fa){_0x5a44f7['push'](_0x5a44f7['shift']());}}}(_0x1536,0xb05bc));import{View as _0x2a2675}from'ckeditor5/src/ui.js';import _0x39a072 from'./uploadcareimageeditformloadingview.js';import _0x45ac24 from'./uploadcareimageeditformerrorview.js';import _0x5bff79 from'./uploadcareimageeditformeditingview.js';import _0x41ed22 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x41ed22{[_0x507677(0x1ba)];[_0x507677(0x19d)];[_0x507677(0x1b9)];[_0x507677(0x1ab)];[_0x507677(0x1a5)];constructor(_0x3a8739,_0xcbbb24,_0x409c83){const _0x258799=_0x507677;super(_0x3a8739),this[_0x258799(0x1ba)]=this[_0x258799(0x195)](),this[_0x258799(0x19d)]=new _0x39a072(_0x3a8739),this[_0x258799(0x1b9)]=new _0x45ac24(_0x3a8739),this[_0x258799(0x1ab)]=new _0x5bff79(_0x3a8739,_0x409c83),this[_0x258799(0x1a5)]=new _0x2a2675(_0x3a8739),this[_0x258799(0x1a5)][_0x258799(0x189)](this[_0x258799(0x18f)]()),this[_0x258799(0x1a1)](_0x258799(0x1a8),_0xcbbb24),this[_0x258799(0x189)]({'tag':_0x258799(0x19f),'attributes':{'class':['ck',_0x258799(0x19a),_0x258799(0x1b5)],'tabindex':'-1'},'children':this[_0x258799(0x1ba)]}),this[_0x258799(0x198)](),this[_0x258799(0x196)](_0x258799(0x194),()=>{const _0x16e9e8=_0x258799;this[_0x16e9e8(0x18c)](this[_0x16e9e8(0x1b6)],_0x4c80f7=>{const _0x4c4d64=_0x16e9e8;this[_0x4c4d64(0x1b0)](_0x4c80f7);});}),this['on'](_0x258799(0x1b3),()=>{const _0x22b0f5=_0x258799;this[_0x22b0f5(0x198)]();}),this[_0x258799(0x18e)]();}[_0x507677(0x199)](){const _0x424e8d=_0x507677;this[_0x424e8d(0x1b6)][_0x424e8d(0x199)]();}[_0x507677(0x198)](){const _0x1944bc=_0x507677;switch(this[_0x1944bc(0x1ba)][_0x1944bc(0x1ae)](),this[_0x1944bc(0x1a8)]){case _0x1944bc(0x1b1):this[_0x1944bc(0x1ba)][_0x1944bc(0x19b)](this[_0x1944bc(0x19d)]);break;case _0x1944bc(0x1bb):this[_0x1944bc(0x1ba)][_0x1944bc(0x19b)](this[_0x1944bc(0x1b9)]);break;case _0x1944bc(0x1af):this[_0x1944bc(0x1ba)][_0x1944bc(0x1a4)]([this[_0x1944bc(0x1ab)],this[_0x1944bc(0x1a5)]]);}}[_0x507677(0x18c)](_0x36d01c,_0x8eb35f){const _0x537fc3=_0x507677,_0x4ba56b=_0x537fc3(0x197),_0x2e5c75=_0x36d01c[_0x537fc3(0x193)](_0x4ba56b);if(_0x2e5c75)return _0x8eb35f(_0x2e5c75);const _0x44e9e7=new MutationObserver(_0x4cb38a=>{const _0x15665d=_0x537fc3,_0x1b39db=_0x4cb38a[_0x15665d(0x190)](_0x483100=>_0x483100[_0x15665d(0x1a9)]===_0x36d01c&&_0x483100[_0x15665d(0x18d)][_0x15665d(0x191)]>0x0&&_0x483100[_0x15665d(0x18d)][0x0][_0x15665d(0x19e)][_0x15665d(0x19c)]()===_0x4ba56b);_0x1b39db[_0x15665d(0x191)]&&(_0x44e9e7[_0x15665d(0x192)](),_0x8eb35f(_0x1b39db[0x0][_0x15665d(0x18d)][0x0]));});_0x44e9e7[_0x537fc3(0x1ad)](_0x36d01c,{'childList':!0x0,'subtree':!0x0});}[_0x507677(0x1b0)](_0x3eeead){const _0x84b042=_0x507677;_0x3eeead[_0x84b042(0x1bd)](_0x84b042(0x1a0),_0x2ea745=>{const _0xcaedaa=_0x84b042;this[_0xcaedaa(0x1a3)](_0xcaedaa(0x1a0),{'imageSrc':_0x2ea745[_0xcaedaa(0x18b)][_0xcaedaa(0x1bc)]});}),_0x3eeead[_0x84b042(0x1bd)](_0x84b042(0x1a6),()=>{const _0x280461=_0x84b042;this[_0x280461(0x1a3)](_0x280461(0x1a6));});}[_0x507677(0x18e)](){const _0x2f5b54=_0x507677;this[_0x2f5b54(0x1b9)]['on'](_0x2f5b54(0x1a7),()=>{const _0x3b190f=_0x2f5b54;this[_0x3b190f(0x1a3)](_0x3b190f(0x1a7));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x59e5(_0x59af50,_0x39f4db){const _0xbea459=_0xbea4();return _0x59e5=function(_0x59e5d2,_0xf80768){_0x59e5d2=_0x59e5d2-0x109;let _0x4a2841=_0xbea459[_0x59e5d2];return _0x4a2841;},_0x59e5(_0x59af50,_0x39f4db);}const _0x92bf06=_0x59e5;(function(_0x23165d,_0x31e8af){const _0x1284a8=_0x59e5,_0x22e4aa=_0x23165d();while(!![]){try{const _0x526dda=parseInt(_0x1284a8(0x116))/0x1*(-parseInt(_0x1284a8(0x111))/0x2)+-parseInt(_0x1284a8(0x126))/0x3+-parseInt(_0x1284a8(0x119))/0x4+-parseInt(_0x1284a8(0x109))/0x5+parseInt(_0x1284a8(0x118))/0x6*(parseInt(_0x1284a8(0x11f))/0x7)+-parseInt(_0x1284a8(0x120))/0x8+parseInt(_0x1284a8(0x10e))/0x9;if(_0x526dda===_0x31e8af)break;else _0x22e4aa['push'](_0x22e4aa['shift']());}catch(_0x94bfd8){_0x22e4aa['push'](_0x22e4aa['shift']());}}}(_0xbea4,0xdbfc9));import{Command as _0x6ea7a6}from'ckeditor5/src/core.js';import{Dialog as _0x2f9666}from'ckeditor5/src/ui.js';import _0x3bc191 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x20b443}from'../utils/editingutils.js';function _0xbea4(){const _0x5e9431=['10032234OnkVgX','1977532hFKSoV','isActive','isEnabled','document','bind','getSelectedElement','7kCRPUO','9146816DyzdmF','uploadcare.allowExternalImagesEditing','imageInline','plugins','imageEditController','model','3868584TBYDuW','editor','717530grkGEb','refresh','execute','requires','selection','24796395wagcxB','config','element','910720tIqByj','imageBlock','get','unbind','set','1aghvsf','_isEditable'];_0xbea4=function(){return _0x5e9431;};return _0xbea4();}export default class J extends _0x6ea7a6{static get[_0x92bf06(0x10c)](){return[_0x2f9666];}constructor(_0x459a85){const _0x403f24=_0x92bf06;super(_0x459a85),this[_0x403f24(0x124)]=void 0x0,this[_0x403f24(0x117)]=_0x20b443(_0x459a85[_0x403f24(0x10f)][_0x403f24(0x113)](_0x403f24(0x121))||[]),this[_0x403f24(0x115)]({'isActive':!0x1});}[_0x92bf06(0x10a)](){const _0x2c1e0c=_0x92bf06,_0x4a5bd6=this[_0x2c1e0c(0x127)][_0x2c1e0c(0x125)][_0x2c1e0c(0x11c)][_0x2c1e0c(0x10d)][_0x2c1e0c(0x11e)]();this[_0x2c1e0c(0x11b)]=this[_0x2c1e0c(0x117)](_0x4a5bd6);}[_0x92bf06(0x10b)](){const _0x1ee259=_0x92bf06;this[_0x1ee259(0x124)]&&(this[_0x1ee259(0x114)](_0x1ee259(0x11a)),this[_0x1ee259(0x124)]=void 0x0);const _0x3b0f1f=this[_0x1ee259(0x127)][_0x1ee259(0x125)][_0x1ee259(0x11c)][_0x1ee259(0x10d)][_0x1ee259(0x11e)]();_0x3b0f1f&&(_0x3b0f1f['is'](_0x1ee259(0x110),_0x1ee259(0x112))||_0x3b0f1f['is'](_0x1ee259(0x110),_0x1ee259(0x122)))&&(this[_0x1ee259(0x124)]=new _0x3bc191(this[_0x1ee259(0x127)],this[_0x1ee259(0x127)][_0x1ee259(0x123)][_0x1ee259(0x113)](_0x2f9666),_0x3b0f1f),this[_0x1ee259(0x11d)](_0x1ee259(0x11a))['to'](this[_0x1ee259(0x124)],_0x1ee259(0x11a)));}}
23
+ function _0x489e(_0x582568,_0x3f6b4c){const _0x52cdbb=_0x52cd();return _0x489e=function(_0x489e5e,_0x4dbbbc){_0x489e5e=_0x489e5e-0x9f;let _0x488e38=_0x52cdbb[_0x489e5e];return _0x488e38;},_0x489e(_0x582568,_0x3f6b4c);}const _0x4da2ee=_0x489e;(function(_0x47a854,_0x2f19f2){const _0x31553f=_0x489e,_0x43954e=_0x47a854();while(!![]){try{const _0x4dd70b=-parseInt(_0x31553f(0xae))/0x1+parseInt(_0x31553f(0xb7))/0x2+-parseInt(_0x31553f(0xab))/0x3+parseInt(_0x31553f(0xa0))/0x4*(parseInt(_0x31553f(0x9f))/0x5)+-parseInt(_0x31553f(0xb4))/0x6*(-parseInt(_0x31553f(0xb6))/0x7)+-parseInt(_0x31553f(0xaa))/0x8*(-parseInt(_0x31553f(0xa4))/0x9)+-parseInt(_0x31553f(0xb9))/0xa;if(_0x4dd70b===_0x2f19f2)break;else _0x43954e['push'](_0x43954e['shift']());}catch(_0x574a40){_0x43954e['push'](_0x43954e['shift']());}}}(_0x52cd,0xe2e94));import{Command as _0x47566e}from'ckeditor5/src/core.js';function _0x52cd(){const _0x22b0b1=['4228572CpnLAl','execute','selection','33468oMbQnx','document','uploadcare.allowExternalImagesEditing','element','model','refresh','5658834IMEjeU','set','7hYDMVQ','1839980VbCSQa','isEnabled','12110690UEZrxU','bind','plugins','config','imageBlock','requires','31585EJbbPm','888ylOYOi','imageEditController','isActive','getSelectedElement','1430937IFGjbt','editor','imageInline','unbind','_isEditable','get','16DzsQeB'];_0x52cd=function(){return _0x22b0b1;};return _0x52cd();}import{Dialog as _0x33db57}from'ckeditor5/src/ui.js';import _0xeeabea from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5effea}from'../utils/editingutils.js';export default class W extends _0x47566e{[_0x4da2ee(0xa1)];static get[_0x4da2ee(0xbe)](){return[_0x33db57];}[_0x4da2ee(0xa8)];constructor(_0x1ed2ee){const _0x352b30=_0x4da2ee;super(_0x1ed2ee),this[_0x352b30(0xa1)]=void 0x0,this[_0x352b30(0xa8)]=_0x5effea(_0x1ed2ee[_0x352b30(0xbc)][_0x352b30(0xa9)](_0x352b30(0xb0))||[]),this[_0x352b30(0xb5)]({'isActive':!0x1});}[_0x4da2ee(0xb3)](){const _0xa7d035=_0x4da2ee,_0x2b0001=this[_0xa7d035(0xa5)][_0xa7d035(0xb2)][_0xa7d035(0xaf)][_0xa7d035(0xad)][_0xa7d035(0xa3)]();this[_0xa7d035(0xb8)]=this[_0xa7d035(0xa8)](_0x2b0001);}[_0x4da2ee(0xac)](){const _0x3315ea=_0x4da2ee;this[_0x3315ea(0xa1)]&&(this[_0x3315ea(0xa7)](_0x3315ea(0xa2)),this[_0x3315ea(0xa1)]=void 0x0);const _0x44828b=this[_0x3315ea(0xa5)][_0x3315ea(0xb2)][_0x3315ea(0xaf)][_0x3315ea(0xad)][_0x3315ea(0xa3)]();_0x44828b&&(_0x44828b['is'](_0x3315ea(0xb1),_0x3315ea(0xbd))||_0x44828b['is'](_0x3315ea(0xb1),_0x3315ea(0xa6)))&&(this[_0x3315ea(0xa1)]=new _0xeeabea(this[_0x3315ea(0xa5)],this[_0x3315ea(0xa5)][_0x3315ea(0xbb)][_0x3315ea(0xa9)](_0x33db57),_0x44828b),this[_0x3315ea(0xba)](_0x3315ea(0xa2))['to'](this[_0x3315ea(0xa1)],_0x3315ea(0xa2)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x267d(){const _0x39bde5=['276dkTnDG','ImageUtils','requires','isPremiumPlugin','12530203UyQFrJ','58128370JwWfVf','8LddJNA','11DhyTtE','uploadcareImageEdit','pluginName','add','13135428CIRkQd','481167OcmUDR','init','5JiNyBq','1637332ulhUpF','uploadcareImageReplace','ImageEditing','commands','isOfficialPlugin','27848elPYah','UploadcareImageEditEditing','2644188IClFur'];_0x267d=function(){return _0x39bde5;};return _0x267d();}function _0x715a(_0x55f942,_0x145c14){const _0x267da2=_0x267d();return _0x715a=function(_0x715a2,_0x277146){_0x715a2=_0x715a2-0x1ef;let _0x1e6c3c=_0x267da2[_0x715a2];return _0x1e6c3c;},_0x715a(_0x55f942,_0x145c14);}const _0x128dae=_0x715a;(function(_0x2973ba,_0x130e7c){const _0x365621=_0x715a,_0x5520fe=_0x2973ba();while(!![]){try{const _0x404695=parseInt(_0x365621(0x205))/0x1+parseInt(_0x365621(0x1f6))/0x2*(-parseInt(_0x365621(0x1f9))/0x3)+parseInt(_0x365621(0x1f1))/0x4*(-parseInt(_0x365621(0x1f0))/0x5)+-parseInt(_0x365621(0x1f8))/0x6+parseInt(_0x365621(0x1fd))/0x7*(-parseInt(_0x365621(0x1ff))/0x8)+-parseInt(_0x365621(0x204))/0x9+parseInt(_0x365621(0x1fe))/0xa*(parseInt(_0x365621(0x200))/0xb);if(_0x404695===_0x130e7c)break;else _0x5520fe['push'](_0x5520fe['shift']());}catch(_0x9c1815){_0x5520fe['push'](_0x5520fe['shift']());}}}(_0x267d,0xdf024));import{Plugin as _0x5b82f0}from'ckeditor5/src/core.js';import{Notification as _0x3c1d4a}from'ckeditor5/src/ui.js';import _0x2e9c91 from'./uploadcareimageeditcommand.js';import _0x6b9b01 from'./uploadcareimagereplacecommand.js';import _0x387600 from'../uploadcareediting.js';export default class m extends _0x5b82f0{static get[_0x128dae(0x202)](){const _0x4f39ce=_0x128dae;return _0x4f39ce(0x1f7);}static get[_0x128dae(0x1fb)](){const _0x574143=_0x128dae;return[_0x387600,_0x3c1d4a,_0x574143(0x1fa),_0x574143(0x1f3)];}static get[_0x128dae(0x1f5)](){return!0x0;}static get[_0x128dae(0x1fc)](){return!0x0;}[_0x128dae(0x1ef)](){const _0x2200f2=_0x128dae,{editor:_0x4727b8}=this;_0x4727b8[_0x2200f2(0x1f4)][_0x2200f2(0x203)](_0x2200f2(0x201),new _0x2e9c91(_0x4727b8)),_0x4727b8[_0x2200f2(0x1f4)][_0x2200f2(0x203)](_0x2200f2(0x1f2),new _0x6b9b01(_0x4727b8));}}
23
+ const _0x490f9e=_0x92fc;function _0x92fc(_0x3faaf6,_0x1fabe2){const _0x651eef=_0x651e();return _0x92fc=function(_0x92fc67,_0x2be192){_0x92fc67=_0x92fc67-0x132;let _0x14d20a=_0x651eef[_0x92fc67];return _0x14d20a;},_0x92fc(_0x3faaf6,_0x1fabe2);}function _0x651e(){const _0xb2d17c=['pluginName','73226tbTvam','commands','386350cNKjaM','186xbxjIm','33GqIVSf','UploadcareImageEditEditing','uploadcareImageReplace','isOfficialPlugin','96341DuZfom','1783935UJAMpC','uploadcareImageEdit','90PoSguS','isPremiumPlugin','ImageUtils','ImageEditing','541740PJXmqd','init','requires','8YhcigH','add','3843KxzGdh','589025SSDOOt'];_0x651e=function(){return _0xb2d17c;};return _0x651e();}(function(_0x44d99d,_0x2e719d){const _0x444d62=_0x92fc,_0x363054=_0x44d99d();while(!![]){try{const _0x26b14a=-parseInt(_0x444d62(0x137))/0x1+-parseInt(_0x444d62(0x13a))/0x2*(-parseInt(_0x444d62(0x134))/0x3)+parseInt(_0x444d62(0x146))/0x4+-parseInt(_0x444d62(0x135))/0x5+parseInt(_0x444d62(0x142))/0x6*(-parseInt(_0x444d62(0x13f))/0x7)+-parseInt(_0x444d62(0x132))/0x8*(-parseInt(_0x444d62(0x140))/0x9)+parseInt(_0x444d62(0x139))/0xa*(parseInt(_0x444d62(0x13b))/0xb);if(_0x26b14a===_0x2e719d)break;else _0x363054['push'](_0x363054['shift']());}catch(_0x5674ec){_0x363054['push'](_0x363054['shift']());}}}(_0x651e,0x29ccc));import{Plugin as _0xa39605}from'ckeditor5/src/core.js';import{Notification as _0x1ea2b7}from'ckeditor5/src/ui.js';import _0x20201d from'./uploadcareimageeditcommand.js';import _0x157b20 from'./uploadcareimagereplacecommand.js';import _0x564114 from'../uploadcareediting.js';export default class g extends _0xa39605{static get[_0x490f9e(0x136)](){const _0x353276=_0x490f9e;return _0x353276(0x13c);}static get[_0x490f9e(0x148)](){const _0x3eefa5=_0x490f9e;return[_0x564114,_0x1ea2b7,_0x3eefa5(0x144),_0x3eefa5(0x145)];}static get[_0x490f9e(0x13e)](){return!0x0;}static get[_0x490f9e(0x143)](){return!0x0;}[_0x490f9e(0x147)](){const _0x4ffb50=_0x490f9e,{editor:_0x58ef1e}=this;_0x58ef1e[_0x4ffb50(0x138)][_0x4ffb50(0x133)](_0x4ffb50(0x141),new _0x20201d(_0x58ef1e)),_0x58ef1e[_0x4ffb50(0x138)][_0x4ffb50(0x133)](_0x4ffb50(0x13d),new _0x157b20(_0x58ef1e));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x4aff9c}from'ckeditor5/src/core.js';import{ButtonView as _0x4343af}from'ckeditor5/src/ui.js';import{createElement as _0xaed0ec}from'ckeditor5/src/utils.js';import _0x40298d from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x4aff9c{constructor(){super(...arguments),this['_imageCache']=new Map();}static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x2b0453=this['editor'];_0x2b0453['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c7c47=>{const _0x2f3ed1=_0x2b0453['commands']['get']('uploadcareImageEdit'),_0x54dc1f=new _0x4343af(_0x3c7c47),t=_0x3c7c47['t'];return _0x54dc1f['set']({'icon':_0x40298d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x54dc1f['bind']('isEnabled')['to'](_0x2f3ed1),_0x54dc1f['bind']('isOn')['to'](_0x2f3ed1,'isActive'),this['listenTo'](_0x54dc1f,'execute',()=>{_0x2b0453['execute']('uploadcareImageEdit'),_0x2b0453['editing']['view']['focus']();}),_0x54dc1f;}),this['_initConfig']();}['_initConfig'](){const _0x360d1a=_0xaed0ec(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x360d1a),this['listenTo'](this['editor'],'destroy',()=>{_0x360d1a['remove']();});}}
23
+ import{Plugin as _0x585caa}from'ckeditor5/src/core.js';import{ButtonView as _0x37008a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4da821}from'ckeditor5/src/icons.js';import{createElement as _0x2ae1e4}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x585caa{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x2313dc=this['editor'];_0x2313dc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x7d5eb9=>{const _0x4adddb=_0x2313dc['commands']['get']('uploadcareImageEdit'),_0x389456=new _0x37008a(_0x7d5eb9),t=_0x7d5eb9['t'];return _0x389456['set']({'icon':_0x4da821,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x389456['bind']('isEnabled')['to'](_0x4adddb),_0x389456['bind']('isOn')['to'](_0x4adddb,'isActive'),this['listenTo'](_0x389456,'execute',()=>{_0x2313dc['execute']('uploadcareImageEdit'),_0x2313dc['editing']['view']['focus']();}),_0x389456;}),this['_initConfig']();}['_initConfig'](){const _0x2fb48b=_0x2ae1e4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2fb48b),this['listenTo'](this['editor'],'destroy',()=>{_0x2fb48b['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x50f225=_0x52fe;function _0x52fe(_0x26f5a6,_0x13b849){const _0x1a341b=_0x1a34();return _0x52fe=function(_0x52fec9,_0x4ca530){_0x52fec9=_0x52fec9-0x1db;let _0x4eeb9d=_0x1a341b[_0x52fec9];return _0x4eeb9d;},_0x52fe(_0x26f5a6,_0x13b849);}(function(_0xa260ae,_0x95788f){const _0x3961b4=_0x52fe,_0x68e821=_0xa260ae();while(!![]){try{const _0x407234=-parseInt(_0x3961b4(0x1e4))/0x1+parseInt(_0x3961b4(0x1e9))/0x2+parseInt(_0x3961b4(0x1e8))/0x3*(parseInt(_0x3961b4(0x1ec))/0x4)+parseInt(_0x3961b4(0x1ee))/0x5+parseInt(_0x3961b4(0x1e0))/0x6+parseInt(_0x3961b4(0x1e2))/0x7*(-parseInt(_0x3961b4(0x1e1))/0x8)+-parseInt(_0x3961b4(0x1dd))/0x9;if(_0x407234===_0x95788f)break;else _0x68e821['push'](_0x68e821['shift']());}catch(_0x54cb9b){_0x68e821['push'](_0x68e821['shift']());}}}(_0x1a34,0x90c57));import{Command as _0x2b2952}from'ckeditor5/src/core.js';function _0x1a34(){const _0x3fb7fe=['3493693iiMIeF','editor','1025417iUDJvm','removeAttribute','isEnabled','srcset','121665JnUpeZ','2204498MJeAMR','document','setAttributes','24QsnAaw','imageBlock','4670520GbHCef','sizes','getSelectedElement','element','model','change','imageInline','selection','9972738JeEBjr','execute','refresh','5675388QiZGyv','8rnNoBC'];_0x1a34=function(){return _0x3fb7fe;};return _0x1a34();}export default class O extends _0x2b2952{[_0x50f225(0x1df)](){const _0x4e0516=_0x50f225,_0x295dc1=this[_0x4e0516(0x1e3)][_0x4e0516(0x1f2)][_0x4e0516(0x1ea)][_0x4e0516(0x1dc)][_0x4e0516(0x1f0)]();this[_0x4e0516(0x1e6)]=Boolean(_0x295dc1&&(_0x295dc1['is'](_0x4e0516(0x1f1),_0x4e0516(0x1ed))||_0x295dc1['is'](_0x4e0516(0x1f1),_0x4e0516(0x1db))));}[_0x50f225(0x1de)](_0x403130){const _0x29c6c1=_0x50f225,_0xd4d540=this[_0x29c6c1(0x1e3)][_0x29c6c1(0x1f2)][_0x29c6c1(0x1ea)][_0x29c6c1(0x1dc)][_0x29c6c1(0x1f0)]();this[_0x29c6c1(0x1e3)][_0x29c6c1(0x1f2)][_0x29c6c1(0x1f3)](_0x22252d=>{const _0x54027f=_0x29c6c1;_0x22252d[_0x54027f(0x1eb)](_0x403130,_0xd4d540),_0x22252d[_0x54027f(0x1e5)](_0x54027f(0x1e7),_0xd4d540),_0x22252d[_0x54027f(0x1e5)](_0x54027f(0x1ef),_0xd4d540);});}}
23
+ function _0x2a9f(){const _0xc4f9d4=['360251FDsiHw','isEnabled','sizes','1208520AFTNzJ','document','element','44115LYomJB','srcset','execute','model','21OYZvdX','116hnsRjU','1371375ufROCt','getSelectedElement','7581753EePTiP','selection','948456TXyHEj','editor','imageBlock','setAttributes','imageInline','removeAttribute','refresh','344658LtWtyd','change'];_0x2a9f=function(){return _0xc4f9d4;};return _0x2a9f();}function _0x5379(_0x35c19d,_0x473def){const _0x2a9f62=_0x2a9f();return _0x5379=function(_0x53793c,_0x2f00ea){_0x53793c=_0x53793c-0x15a;let _0x8c68c2=_0x2a9f62[_0x53793c];return _0x8c68c2;},_0x5379(_0x35c19d,_0x473def);}const _0x46cbde=_0x5379;(function(_0x2b59f7,_0x4f0d37){const _0x1f7bed=_0x5379,_0x3c0dde=_0x2b59f7();while(!![]){try{const _0x2da8e5=-parseInt(_0x1f7bed(0x169))/0x1+-parseInt(_0x1f7bed(0x167))/0x2+-parseInt(_0x1f7bed(0x15c))/0x3+parseInt(_0x1f7bed(0x15b))/0x4*(parseInt(_0x1f7bed(0x16f))/0x5)+-parseInt(_0x1f7bed(0x160))/0x6+parseInt(_0x1f7bed(0x15a))/0x7*(parseInt(_0x1f7bed(0x16c))/0x8)+parseInt(_0x1f7bed(0x15e))/0x9;if(_0x2da8e5===_0x4f0d37)break;else _0x3c0dde['push'](_0x3c0dde['shift']());}catch(_0x19c8a6){_0x3c0dde['push'](_0x3c0dde['shift']());}}}(_0x2a9f,0x628f2));import{Command as _0x5c40a5}from'ckeditor5/src/core.js';export default class Y extends _0x5c40a5{[_0x46cbde(0x166)](){const _0x1a886a=_0x46cbde,_0x240636=this[_0x1a886a(0x161)][_0x1a886a(0x172)][_0x1a886a(0x16d)][_0x1a886a(0x15f)][_0x1a886a(0x15d)]();this[_0x1a886a(0x16a)]=Boolean(_0x240636&&(_0x240636['is'](_0x1a886a(0x16e),_0x1a886a(0x162))||_0x240636['is'](_0x1a886a(0x16e),_0x1a886a(0x164))));}[_0x46cbde(0x171)](_0x45e730){const _0x5ae9b3=_0x46cbde,_0x4cee33=this[_0x5ae9b3(0x161)][_0x5ae9b3(0x172)][_0x5ae9b3(0x16d)][_0x5ae9b3(0x15f)][_0x5ae9b3(0x15d)]();this[_0x5ae9b3(0x161)][_0x5ae9b3(0x172)][_0x5ae9b3(0x168)](_0x4f3136=>{const _0x201e4f=_0x5ae9b3;_0x4f3136[_0x201e4f(0x163)](_0x45e730,_0x4cee33),_0x4f3136[_0x201e4f(0x165)](_0x201e4f(0x170),_0x4cee33),_0x4f3136[_0x201e4f(0x165)](_0x201e4f(0x16b),_0x4cee33);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3f502a=_0xf506;function _0xf506(_0x43c6d2,_0x15ba41){var _0xf05f82=_0xf05f();return _0xf506=function(_0xf50629,_0x2ab550){_0xf50629=_0xf50629-0x142;var _0x542b29=_0xf05f82[_0xf50629];return _0x542b29;},_0xf506(_0x43c6d2,_0x15ba41);}function _0xf05f(){var _0x4e9db5=['4768355bxqdyv','8qrdAQY','43837728nYXqJv','isPremiumPlugin','9TXzQiG','643334rDFcJz','pluginName','requires','12COFVZj','5048184RODNwL','41979jqdwyv','UploadcareImageEdit','8681950oCYveG','isOfficialPlugin','12030277jEFcZt','6jGtTKq'];_0xf05f=function(){return _0x4e9db5;};return _0xf05f();}(function(_0x4f6460,_0x15ca5c){var _0x531f17=_0xf506,_0x137646=_0x4f6460();while(!![]){try{var _0x50ba3d=-parseInt(_0x531f17(0x151))/0x1+-parseInt(_0x531f17(0x14c))/0x2*(parseInt(_0x531f17(0x14f))/0x3)+-parseInt(_0x531f17(0x148))/0x4*(parseInt(_0x531f17(0x147))/0x5)+parseInt(_0x531f17(0x146))/0x6*(parseInt(_0x531f17(0x145))/0x7)+-parseInt(_0x531f17(0x150))/0x8*(parseInt(_0x531f17(0x14b))/0x9)+-parseInt(_0x531f17(0x143))/0xa+parseInt(_0x531f17(0x149))/0xb;if(_0x50ba3d===_0x15ca5c)break;else _0x137646['push'](_0x137646['shift']());}catch(_0x225a41){_0x137646['push'](_0x137646['shift']());}}}(_0xf05f,0xec7cc));import{Plugin as _0x3babf2}from'ckeditor5/src/core.js';import _0x34883d from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x39a868 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x3babf2{static get[_0x3f502a(0x14d)](){var _0x2d7016=_0x3f502a;return _0x2d7016(0x142);}static get[_0x3f502a(0x14e)](){return[_0x34883d,_0x39a868];}static get[_0x3f502a(0x144)](){return!0x0;}static get[_0x3f502a(0x14a)](){return!0x0;}}
23
+ function _0x8fa0(_0x55b70e,_0x326b1a){var _0x4378fe=_0x4378();return _0x8fa0=function(_0x8fa0b4,_0x449f68){_0x8fa0b4=_0x8fa0b4-0x143;var _0x1d77ec=_0x4378fe[_0x8fa0b4];return _0x1d77ec;},_0x8fa0(_0x55b70e,_0x326b1a);}function _0x4378(){var _0x483b1b=['47194NFCKbE','40580ieQXJg','26ejkHIE','231ziqimJ','isOfficialPlugin','187576mTvYPj','requires','1689721sGajvC','pluginName','117cforJQ','UploadcareImageEdit','isPremiumPlugin','1769040apZNmx','150vHyDmL','5106983CPqeQK','1902018lziETC'];_0x4378=function(){return _0x483b1b;};return _0x4378();}var _0xe71b71=_0x8fa0;(function(_0x5d1742,_0x30baeb){var _0x6743aa=_0x8fa0,_0x222ed6=_0x5d1742();while(!![]){try{var _0x419315=parseInt(_0x6743aa(0x144))/0x1*(-parseInt(_0x6743aa(0x146))/0x2)+parseInt(_0x6743aa(0x147))/0x3*(-parseInt(_0x6743aa(0x145))/0x4)+parseInt(_0x6743aa(0x150))/0x5+-parseInt(_0x6743aa(0x143))/0x6+-parseInt(_0x6743aa(0x152))/0x7+-parseInt(_0x6743aa(0x149))/0x8*(-parseInt(_0x6743aa(0x14d))/0x9)+-parseInt(_0x6743aa(0x151))/0xa*(-parseInt(_0x6743aa(0x14b))/0xb);if(_0x419315===_0x30baeb)break;else _0x222ed6['push'](_0x222ed6['shift']());}catch(_0x277eb2){_0x222ed6['push'](_0x222ed6['shift']());}}}(_0x4378,0x7f535));import{Plugin as _0x1a34c2}from'ckeditor5/src/core.js';import _0x2acd74 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x1c03de from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x1a34c2{static get[_0xe71b71(0x14c)](){var _0x3cd9bb=_0xe71b71;return _0x3cd9bb(0x14e);}static get[_0xe71b71(0x14a)](){return[_0x2acd74,_0x1c03de];}static get[_0xe71b71(0x148)](){return!0x0;}static get[_0xe71b71(0x14f)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ca830=_0x4627;(function(_0x2d18fa,_0x3be09d){const _0x2e4b7b=_0x4627,_0x48e8ae=_0x2d18fa();while(!![]){try{const _0x25c9aa=parseInt(_0x2e4b7b(0x175))/0x1+-parseInt(_0x2e4b7b(0x162))/0x2+-parseInt(_0x2e4b7b(0x165))/0x3+parseInt(_0x2e4b7b(0x169))/0x4+-parseInt(_0x2e4b7b(0x18b))/0x5*(parseInt(_0x2e4b7b(0x158))/0x6)+parseInt(_0x2e4b7b(0x150))/0x7*(parseInt(_0x2e4b7b(0x16d))/0x8)+-parseInt(_0x2e4b7b(0x141))/0x9*(parseInt(_0x2e4b7b(0x164))/0xa);if(_0x25c9aa===_0x3be09d)break;else _0x48e8ae['push'](_0x48e8ae['shift']());}catch(_0x499e81){_0x48e8ae['push'](_0x48e8ae['shift']());}}}(_0xf11a,0xec28a));import{Plugin as _0x424594,icons as _0x295fe5}from'ckeditor5/src/core.js';import{ButtonView as _0x21fe9e,MenuBarMenuListItemButtonView as _0x4edd2a}from'ckeditor5/src/ui.js';import _0x414324 from'../theme/icons/dropbox.svg';import _0x6f3aec from'../theme/icons/facebook.svg';import _0x5448f0 from'../theme/icons/google-drive.svg';import _0x2d7eb0 from'../theme/icons/google-photos.svg';import _0x3929cd from'../theme/icons/link.svg';import _0x5234fb from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x577e1e}from'./uploadcareconfig.js';import{getTranslation as _0x1c184e}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x4627(_0x389988,_0x20ad57){const _0xf11a5b=_0xf11a();return _0x4627=function(_0x462730,_0x51fed0){_0x462730=_0x462730-0x13d;let _0x302469=_0xf11a5b[_0x462730];return _0x302469;},_0x4627(_0x389988,_0x20ad57);}function _0xf11a(){const _0x44cbc0=['destroy','_createToolbarButton','evaluationLimit','_normalizeConfigSourceList','featureNotAllowed','_createMenuBarButtons','upload','bind','icon','map','domainLimit','invalid','get','text','usageLimit','OneDrive','uploadcareLicenseKeyDomainLimit','_getIntegrationKey','plugins','url','pluginName','618960pMHgFi','trialLimit','Insert','isPremiumPlugin','Facebook','uploadcareLicenseKeyInvalid','_createDropdownButtons','UploadcareUI','9JqzteL','type','uploadcareLicenseKeyNotAllowed','tooltip','Dropbox','label','config','_showLicenseError','locale','URL','withText','commands','uploadcareLicenseKeyUsageLimit','entries','init','133SIPvHG','uploadcareLicenseKeyValid','expired','uploadcareLicenseKeyEvaluationLimit','uploadcare','uploadcareLicenseKeyTrialLimit','isOfficialPlugin','has','18aZqeib','Local','_licenseKeyCheckInterval','Replace','shortText','reduce','imageUpload','GDrive','forEach','_createButton','1885440SlEJFE','Uploadcare','17783790EYTcUm','3332733zECObw','push','registerIntegration','uploadcareLicenseKeyExpired','7264044OJOeip','uploadcare.uploader.sourceList','execute','isEnabled','786104eVstTq','editor','licenseKey','GPhotos','afterInit','ImageInsertUI','assetManager','isImageSelected','1487684jGGFok'];_0xf11a=function(){return _0x44cbc0;};return _0xf11a();}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x424594{static get[_0x5ca830(0x18a)](){const _0x5dbe1e=_0x5ca830;return _0x5dbe1e(0x140);}static get[_0x5ca830(0x156)](){return!0x0;}static get[_0x5ca830(0x18e)](){return!0x0;}[_0x5ca830(0x14f)](){const _0x1d509a=_0x5ca830;this[_0x1d509a(0x16f)]=this[_0x1d509a(0x16e)][_0x1d509a(0x147)][_0x1d509a(0x182)](_0x1d509a(0x16f));const _0x3304ad=this[_0x1d509a(0x16e)];this[_0x1d509a(0x15a)]=setInterval(()=>{const _0xc20660=_0x1d509a;let _0x53fb89;for(const _0x1bbba0 in _0x3304ad){const _0x4aa909=_0x1bbba0,_0x4094dd=_0x3304ad[_0x4aa909];if(_0xc20660(0x151)==_0x4094dd||_0xc20660(0x13e)==_0x4094dd||_0xc20660(0x168)==_0x4094dd||_0xc20660(0x186)==_0x4094dd||_0xc20660(0x143)==_0x4094dd||_0xc20660(0x153)==_0x4094dd||_0xc20660(0x155)==_0x4094dd||_0xc20660(0x14d)==_0x4094dd){delete _0x3304ad[_0x4aa909],_0x53fb89=_0x4094dd,clearInterval(this[_0xc20660(0x15a)]),this[_0xc20660(0x15a)]=void 0x0;break;}}_0xc20660(0x13e)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x181)),_0xc20660(0x168)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x152)),_0xc20660(0x186)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x180)),_0xc20660(0x143)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x17a),_0xc20660(0x163)),_0xc20660(0x153)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x178)),_0xc20660(0x155)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x18c)),_0xc20660(0x14d)==_0x53fb89&&_0x3304ad[_0xc20660(0x148)](_0xc20660(0x184));},0x3e8);}[_0x5ca830(0x171)](){const _0x53daf6=_0x5ca830,{editor:_0x276a0e}=this,_0x278552=_0x276a0e[_0x53daf6(0x14c)][_0x53daf6(0x182)](_0x53daf6(0x154));if(!_0x278552)return;const _0x1c3eaa=this[_0x53daf6(0x179)](_0x276a0e[_0x53daf6(0x147)][_0x53daf6(0x182)](_0x53daf6(0x16a)))[_0x53daf6(0x15d)]((_0x3a0569,_0x19a47)=>{const _0xba8a6a=_0x53daf6,_0x1983fe=this[_0xba8a6a(0x187)](_0x19a47[_0xba8a6a(0x142)]);return _0x3a0569[_0x1983fe]||(_0x3a0569[_0x1983fe]=[]),_0x3a0569[_0x1983fe][_0xba8a6a(0x166)](_0x19a47),_0x3a0569;},{});_0x276a0e[_0x53daf6(0x188)][_0x53daf6(0x157)](_0x53daf6(0x172))&&_0x276a0e[_0x53daf6(0x14c)][_0x53daf6(0x182)](_0x53daf6(0x154))&&Object[_0x53daf6(0x14e)](_0x1c3eaa)[_0x53daf6(0x160)](([_0x3e79bc,_0x40710c])=>{const _0x43a76d=_0x53daf6;_0x276a0e[_0x43a76d(0x188)][_0x43a76d(0x182)](_0x43a76d(0x172))[_0x43a76d(0x167)]({'name':_0x3e79bc,'observable':()=>_0x278552,'buttonViewCreator':()=>this[_0x43a76d(0x177)](_0x40710c),'formViewCreator':()=>this[_0x43a76d(0x13f)](_0x40710c),'menuBarButtonViewCreator':()=>this[_0x43a76d(0x17b)](_0x40710c),'override':_0x43a76d(0x173)!==_0x3e79bc});});}[_0x5ca830(0x176)](){const _0x57ca72=_0x5ca830;super[_0x57ca72(0x176)](),this[_0x57ca72(0x15a)]&&clearInterval(this[_0x57ca72(0x15a)]);}[_0x5ca830(0x179)](_0x2e2001){const _0x1a4fe6=_0x5ca830,{locale:_0x1c54a5}=this[_0x1a4fe6(0x16e)];return _0x2e2001[_0x1a4fe6(0x17f)](_0x2e98ca=>{const _0x59c648=_0x1a4fe6,_0x3d6bf5=_0x1c184e(_0x1c54a5,_0x2e98ca,_0x59c648(0x18d));switch(_0x2e98ca){case _0x577e1e[_0x59c648(0x159)]:return{'icon':_0x295fe5[_0x59c648(0x15e)],'type':_0x577e1e[_0x59c648(0x159)],..._0x3d6bf5};case _0x577e1e[_0x59c648(0x14a)]:return{'icon':_0x3929cd,'type':_0x577e1e[_0x59c648(0x14a)],..._0x3d6bf5};case _0x577e1e[_0x59c648(0x145)]:return{'icon':_0x414324,'type':_0x577e1e[_0x59c648(0x145)],..._0x3d6bf5};case _0x577e1e[_0x59c648(0x13d)]:return{'icon':_0x6f3aec,'type':_0x577e1e[_0x59c648(0x13d)],..._0x3d6bf5};case _0x577e1e[_0x59c648(0x15f)]:return{'icon':_0x5448f0,'type':_0x577e1e[_0x59c648(0x15f)],..._0x3d6bf5};case _0x577e1e[_0x59c648(0x170)]:return{'icon':_0x2d7eb0,'type':_0x577e1e[_0x59c648(0x170)],..._0x3d6bf5};case _0x577e1e[_0x59c648(0x185)]:return{'icon':_0x5234fb,'type':_0x577e1e[_0x59c648(0x185)],..._0x3d6bf5};}});}[_0x5ca830(0x187)](_0x3e0a04){const _0x3b7c7d=_0x5ca830;switch(_0x3e0a04){case _0x577e1e[_0x3b7c7d(0x159)]:return _0x3b7c7d(0x17c);case _0x577e1e[_0x3b7c7d(0x14a)]:return _0x3b7c7d(0x189);default:return _0x3b7c7d(0x173);}}[_0x5ca830(0x161)](_0x3cce26,_0x229640){const _0x35425d=_0x5ca830,_0x370b3a=this[_0x35425d(0x16e)],_0x396ad8=new _0x3cce26(_0x370b3a[_0x35425d(0x149)]),_0x9564d5=_0x370b3a[_0x35425d(0x14c)][_0x35425d(0x182)](_0x35425d(0x154));return _0x396ad8[_0x35425d(0x17d)](_0x35425d(0x16c))['to'](_0x9564d5),_0x396ad8['on'](_0x35425d(0x16b),()=>{const _0x350c85=_0x35425d;_0x9564d5[_0x350c85(0x16b)](_0x229640);}),_0x396ad8;}[_0x5ca830(0x177)](_0x2df247){const _0x3786c4=_0x5ca830,{locale:_0x277779}=this[_0x3786c4(0x16e)],_0x315ba7=this[_0x3786c4(0x16e)][_0x3786c4(0x188)][_0x3786c4(0x182)](_0x3786c4(0x172)),_0x496bf5=_0x2df247[0x0],_0x90592d=this[_0x3786c4(0x161)](_0x21fe9e,_0x496bf5[_0x3786c4(0x142)]);return _0x90592d[_0x3786c4(0x17e)]=_0x496bf5[_0x3786c4(0x17e)],_0x90592d[_0x3786c4(0x17d)](_0x3786c4(0x146))['to'](_0x315ba7,_0x3786c4(0x174),_0x4a5a8c=>_0x1c184e(_0x277779,_0x496bf5[_0x3786c4(0x142)],_0x4a5a8c?_0x3786c4(0x15b):_0x3786c4(0x18d))[_0x3786c4(0x183)]),_0x90592d[_0x3786c4(0x144)]=!0x0,_0x90592d;}[_0x5ca830(0x13f)](_0x44a451){const _0x54e0d3=_0x5ca830,{locale:_0x5ad8fb}=this[_0x54e0d3(0x16e)],_0x38eb06=this[_0x54e0d3(0x16e)][_0x54e0d3(0x188)][_0x54e0d3(0x182)](_0x54e0d3(0x172));return _0x44a451[_0x54e0d3(0x17f)](_0x5492f3=>{const _0x4dd74e=_0x54e0d3,_0x3159da=this[_0x4dd74e(0x161)](_0x21fe9e,_0x5492f3[_0x4dd74e(0x142)]);return _0x3159da[_0x4dd74e(0x14b)]=!0x0,_0x3159da[_0x4dd74e(0x17e)]=_0x5492f3[_0x4dd74e(0x17e)],_0x3159da[_0x4dd74e(0x17d)](_0x4dd74e(0x146))['to'](_0x38eb06,_0x4dd74e(0x174),_0x55b474=>_0x1c184e(_0x5ad8fb,_0x5492f3[_0x4dd74e(0x142)],_0x55b474?_0x4dd74e(0x15b):_0x4dd74e(0x18d))[_0x4dd74e(0x183)]),_0x3159da;});}[_0x5ca830(0x17b)](_0x2aa3ae){const _0x453e97=_0x5ca830;return _0x2aa3ae[_0x453e97(0x17f)](_0x468d4f=>{const _0x315a4b=_0x453e97,_0x3988ba=this[_0x315a4b(0x161)](_0x4edd2a,_0x468d4f[_0x315a4b(0x142)]);return _0x3988ba[_0x315a4b(0x17e)]=_0x468d4f[_0x315a4b(0x17e)],_0x3988ba[_0x315a4b(0x146)]=_0x468d4f[_0x315a4b(0x15c)],_0x3988ba;});}}
23
+ const _0x11b573=_0x46e0;(function(_0x19d96d,_0x2af587){const _0x358c00=_0x46e0,_0x3fdee1=_0x19d96d();while(!![]){try{const _0xb94836=-parseInt(_0x358c00(0x171))/0x1+-parseInt(_0x358c00(0x17a))/0x2+parseInt(_0x358c00(0x16e))/0x3*(-parseInt(_0x358c00(0x182))/0x4)+parseInt(_0x358c00(0x140))/0x5+-parseInt(_0x358c00(0x143))/0x6*(-parseInt(_0x358c00(0x14d))/0x7)+parseInt(_0x358c00(0x180))/0x8+-parseInt(_0x358c00(0x16d))/0x9*(-parseInt(_0x358c00(0x13e))/0xa);if(_0xb94836===_0x2af587)break;else _0x3fdee1['push'](_0x3fdee1['shift']());}catch(_0x2cc4a0){_0x3fdee1['push'](_0x3fdee1['shift']());}}}(_0x3b8a,0xba6ca));import{Plugin as _0x294094}from'ckeditor5/src/core.js';function _0x3b8a(){const _0x4b98d0=['2553940bYibHe','config','init','6846gdYJrD','get','Insert','uploadcareLicenseKeyNotAllowed','_createDropdownButtons','uploadcareLicenseKeyDomainLimit','URL','Dropbox','destroy','GPhotos','3780LHujQM','text','featureNotAllowed','pluginName','_createButton','execute','_createMenuBarButtons','plugins','isEnabled','uploadcare.uploader.sourceList','upload','_normalizeConfigSourceList','forEach','trialLimit','reduce','_createToolbarButton','commands','domainLimit','shortText','icon','has','expired','Uploadcare','invalid','uploadcareLicenseKeyEvaluationLimit','usageLimit','entries','licenseKey','url','isImageSelected','assetManager','isPremiumPlugin','139149ZYqGUv','16374AONreX','UploadcareUI','editor','157295naXTqO','withText','GDrive','uploadcare','bind','label','map','OneDrive','Instagram','1068550UechLK','_getIntegrationKey','isOfficialPlugin','Facebook','tooltip','evaluationLimit','3179872XVXPXk','uploadcareLicenseKeyInvalid','436TFEhck','uploadcareLicenseKeyTrialLimit','_showLicenseError','_licenseKeyCheckInterval','locale','Local','uploadcareLicenseKeyExpired','ImageInsertUI','afterInit','type','uploadcareLicenseKeyUsageLimit','uploadcareLicenseKeyValid','registerIntegration','push','340chdDNH','Replace'];_0x3b8a=function(){return _0x4b98d0;};return _0x3b8a();}import{IconDropbox as _0x3bb9cd,IconFacebook as _0x4c3831,IconGoogleDrive as _0x858ee3,IconGooglePhotos as _0x4c70ec,IconUploadcareImageUpload as _0xc68339,IconInstagram as _0x456f2b,IconUploadcareLink as _0x349808,IconOneDrive as _0x1c4968}from'ckeditor5/src/icons.js';import{ButtonView as _0x3a5a84,MenuBarMenuListItemButtonView as _0x32f2c3}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x29b6e6}from'./uploadcareconfig.js';function _0x46e0(_0x26c129,_0x2f5c7c){const _0x3b8a20=_0x3b8a();return _0x46e0=function(_0x46e0d6,_0x2f89af){_0x46e0d6=_0x46e0d6-0x13c;let _0x4c1d61=_0x3b8a20[_0x46e0d6];return _0x4c1d61;},_0x46e0(_0x26c129,_0x2f5c7c);}import{getTranslation as _0x436051}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x294094{[_0x11b573(0x168)];[_0x11b573(0x185)];static get[_0x11b573(0x150)](){const _0x3bf759=_0x11b573;return _0x3bf759(0x16f);}static get[_0x11b573(0x17c)](){return!0x0;}static get[_0x11b573(0x16c)](){return!0x0;}[_0x11b573(0x142)](){const _0x5676bc=_0x11b573;this[_0x5676bc(0x168)]=this[_0x5676bc(0x170)][_0x5676bc(0x141)][_0x5676bc(0x144)](_0x5676bc(0x168));const _0x16cb44=this[_0x5676bc(0x170)];this[_0x5676bc(0x185)]=setInterval(()=>{const _0x93e774=_0x5676bc;let _0x253b87;for(const _0x3c7dfa in _0x16cb44){const _0x5b541f=_0x3c7dfa,_0x55bbf8=_0x16cb44[_0x5b541f];if(_0x93e774(0x18d)==_0x55bbf8||_0x93e774(0x181)==_0x55bbf8||_0x93e774(0x188)==_0x55bbf8||_0x93e774(0x148)==_0x55bbf8||_0x93e774(0x146)==_0x55bbf8||_0x93e774(0x165)==_0x55bbf8||_0x93e774(0x183)==_0x55bbf8||_0x93e774(0x18c)==_0x55bbf8){delete _0x16cb44[_0x5b541f],_0x253b87=_0x55bbf8,clearInterval(this[_0x93e774(0x185)]),this[_0x93e774(0x185)]=void 0x0;break;}}_0x93e774(0x181)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x164)),_0x93e774(0x188)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x162)),_0x93e774(0x148)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x15e)),_0x93e774(0x146)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x14f),_0x93e774(0x163)),_0x93e774(0x165)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x17f)),_0x93e774(0x183)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x15a)),_0x93e774(0x18c)==_0x253b87&&_0x16cb44[_0x93e774(0x184)](_0x93e774(0x166));},0x3e8);}[_0x11b573(0x18a)](){const _0x5ca118=_0x11b573,{editor:_0x565867}=this,_0x3db466=_0x565867[_0x5ca118(0x15d)][_0x5ca118(0x144)](_0x5ca118(0x174));if(!_0x3db466)return;const _0x485d9a=this[_0x5ca118(0x158)](_0x565867[_0x5ca118(0x141)][_0x5ca118(0x144)](_0x5ca118(0x156)))[_0x5ca118(0x15b)]((_0x461a53,_0x2b3b8b)=>{const _0x56f232=_0x5ca118,_0x13c49b=this[_0x56f232(0x17b)](_0x2b3b8b[_0x56f232(0x18b)]);return _0x461a53[_0x13c49b]||(_0x461a53[_0x13c49b]=[]),_0x461a53[_0x13c49b][_0x56f232(0x13d)](_0x2b3b8b),_0x461a53;},{});_0x565867[_0x5ca118(0x154)][_0x5ca118(0x161)](_0x5ca118(0x189))&&_0x565867[_0x5ca118(0x15d)][_0x5ca118(0x144)](_0x5ca118(0x174))&&Object[_0x5ca118(0x167)](_0x485d9a)[_0x5ca118(0x159)](([_0x6a53ac,_0x345481])=>{const _0x277108=_0x5ca118;_0x565867[_0x277108(0x154)][_0x277108(0x144)](_0x277108(0x189))[_0x277108(0x13c)]({'name':_0x6a53ac,'observable':()=>_0x3db466,'buttonViewCreator':()=>this[_0x277108(0x15c)](_0x345481),'formViewCreator':()=>this[_0x277108(0x147)](_0x345481),'menuBarButtonViewCreator':()=>this[_0x277108(0x153)](_0x345481),'override':_0x277108(0x16b)!==_0x6a53ac});});}[_0x11b573(0x14b)](){const _0x29edec=_0x11b573;super[_0x29edec(0x14b)](),this[_0x29edec(0x185)]&&clearInterval(this[_0x29edec(0x185)]);}[_0x11b573(0x158)](_0x527a87){const _0x5eeeb4=_0x11b573,{locale:_0x4ff76e}=this[_0x5eeeb4(0x170)];return _0x527a87[_0x5eeeb4(0x177)](_0x459bfc=>{const _0x55140f=_0x5eeeb4,_0x3f7805=_0x436051(_0x4ff76e,_0x459bfc,_0x55140f(0x145));switch(_0x459bfc){case _0x29b6e6[_0x55140f(0x187)]:return{'icon':_0xc68339,'type':_0x29b6e6[_0x55140f(0x187)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x149)]:return{'icon':_0x349808,'type':_0x29b6e6[_0x55140f(0x149)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x14a)]:return{'icon':_0x3bb9cd,'type':_0x29b6e6[_0x55140f(0x14a)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x17d)]:return{'icon':_0x4c3831,'type':_0x29b6e6[_0x55140f(0x17d)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x173)]:return{'icon':_0x858ee3,'type':_0x29b6e6[_0x55140f(0x173)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x14c)]:return{'icon':_0x4c70ec,'type':_0x29b6e6[_0x55140f(0x14c)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x179)]:return{'icon':_0x456f2b,'type':_0x29b6e6[_0x55140f(0x179)],..._0x3f7805};case _0x29b6e6[_0x55140f(0x178)]:return{'icon':_0x1c4968,'type':_0x29b6e6[_0x55140f(0x178)],..._0x3f7805};}});}[_0x11b573(0x17b)](_0x131b10){const _0x2b3138=_0x11b573;switch(_0x131b10){case _0x29b6e6[_0x2b3138(0x187)]:return _0x2b3138(0x157);case _0x29b6e6[_0x2b3138(0x149)]:return _0x2b3138(0x169);default:return _0x2b3138(0x16b);}}[_0x11b573(0x151)](_0x2e6f83,_0x14a4db){const _0x158a6d=_0x11b573,_0x10b196=this[_0x158a6d(0x170)],_0x18ec1d=new _0x2e6f83(_0x10b196[_0x158a6d(0x186)]),_0x1f7c30=_0x10b196[_0x158a6d(0x15d)][_0x158a6d(0x144)](_0x158a6d(0x174));return _0x18ec1d[_0x158a6d(0x175)](_0x158a6d(0x155))['to'](_0x1f7c30),_0x18ec1d['on'](_0x158a6d(0x152),()=>{const _0x2b0938=_0x158a6d;_0x1f7c30[_0x2b0938(0x152)](_0x14a4db);}),_0x18ec1d;}[_0x11b573(0x15c)](_0x45979a){const _0x1edc1c=_0x11b573,{locale:_0x26b0c5}=this[_0x1edc1c(0x170)],_0x5370f3=this[_0x1edc1c(0x170)][_0x1edc1c(0x154)][_0x1edc1c(0x144)](_0x1edc1c(0x189)),_0x471fac=_0x45979a[0x0],_0x2382f8=this[_0x1edc1c(0x151)](_0x3a5a84,_0x471fac[_0x1edc1c(0x18b)]);return _0x2382f8[_0x1edc1c(0x160)]=_0x471fac[_0x1edc1c(0x160)],_0x2382f8[_0x1edc1c(0x175)](_0x1edc1c(0x176))['to'](_0x5370f3,_0x1edc1c(0x16a),_0x1b0ca9=>_0x436051(_0x26b0c5,_0x471fac[_0x1edc1c(0x18b)],_0x1b0ca9?_0x1edc1c(0x13f):_0x1edc1c(0x145))[_0x1edc1c(0x14e)]),_0x2382f8[_0x1edc1c(0x17e)]=!0x0,_0x2382f8;}[_0x11b573(0x147)](_0x47b2f5){const _0x446473=_0x11b573,{locale:_0x599a7c}=this[_0x446473(0x170)],_0x41ff37=this[_0x446473(0x170)][_0x446473(0x154)][_0x446473(0x144)](_0x446473(0x189));return _0x47b2f5[_0x446473(0x177)](_0x325aa0=>{const _0x53f0e4=_0x446473,_0x51753d=this[_0x53f0e4(0x151)](_0x3a5a84,_0x325aa0[_0x53f0e4(0x18b)]);return _0x51753d[_0x53f0e4(0x172)]=!0x0,_0x51753d[_0x53f0e4(0x160)]=_0x325aa0[_0x53f0e4(0x160)],_0x51753d[_0x53f0e4(0x175)](_0x53f0e4(0x176))['to'](_0x41ff37,_0x53f0e4(0x16a),_0x2a49e1=>_0x436051(_0x599a7c,_0x325aa0[_0x53f0e4(0x18b)],_0x2a49e1?_0x53f0e4(0x13f):_0x53f0e4(0x145))[_0x53f0e4(0x14e)]),_0x51753d;});}[_0x11b573(0x153)](_0x13cf93){const _0x4f5d0f=_0x11b573;return _0x13cf93[_0x4f5d0f(0x177)](_0x3ee24d=>{const _0x526680=_0x4f5d0f,_0x3a4ea8=this[_0x526680(0x151)](_0x32f2c3,_0x3ee24d[_0x526680(0x18b)]);return _0x3a4ea8[_0x526680(0x160)]=_0x3ee24d[_0x526680(0x160)],_0x3a4ea8[_0x526680(0x176)]=_0x3ee24d[_0x526680(0x15f)],_0x3a4ea8;});}}