@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260111.0 → 0.0.0-nightly-next-20260111.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 (272) hide show
  1. package/ckeditor5-metadata.json +2 -2
  2. package/{src → dist}/augmentation.d.ts +4 -0
  3. package/{src → dist}/index.d.ts +4 -0
  4. package/dist/index.js +3 -3
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/{src → dist}/ui/uploadcarecontroller.d.ts +7 -3
  152. package/{src → dist}/ui/uploadcareformview.d.ts +5 -1
  153. package/{src → dist}/uploadcare.d.ts +5 -1
  154. package/{src → dist}/uploadcarecommand.d.ts +6 -2
  155. package/{src → dist}/uploadcareconfig.d.ts +5 -1
  156. package/{src → dist}/uploadcareediting.d.ts +6 -2
  157. package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +9 -5
  158. package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +6 -2
  159. package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +6 -2
  160. package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +6 -2
  161. package/{src → dist}/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +5 -1
  162. package/{src → dist}/uploadcareimageedit/uploadcareimageeditcommand.d.ts +6 -2
  163. package/{src → dist}/uploadcareimageedit/uploadcareimageeditediting.d.ts +6 -2
  164. package/{src → dist}/uploadcareimageedit/uploadcareimageeditui.d.ts +5 -1
  165. package/{src → dist}/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +5 -1
  166. package/{src → dist}/uploadcareimageedit.d.ts +5 -1
  167. package/{src → dist}/uploadcareui.d.ts +5 -1
  168. package/{src → dist}/uploadcareuploadadapter.d.ts +6 -2
  169. package/{src → dist}/utils/common-translations.d.ts +4 -0
  170. package/{src → dist}/utils/dialogfocusmanagerview.d.ts +6 -2
  171. package/{src → dist}/utils/editingutils.d.ts +4 -0
  172. package/{src → dist}/utils/isancestor.d.ts +4 -0
  173. package/{src → dist}/utils/uploadutils.d.ts +4 -0
  174. package/package.json +23 -33
  175. package/build/translations/af.js +0 -1
  176. package/build/translations/ar.js +0 -1
  177. package/build/translations/ast.js +0 -1
  178. package/build/translations/az.js +0 -1
  179. package/build/translations/be.js +0 -1
  180. package/build/translations/bg.js +0 -1
  181. package/build/translations/bn.js +0 -1
  182. package/build/translations/bs.js +0 -1
  183. package/build/translations/ca.js +0 -1
  184. package/build/translations/cs.js +0 -1
  185. package/build/translations/da.js +0 -1
  186. package/build/translations/de-ch.js +0 -1
  187. package/build/translations/de.js +0 -1
  188. package/build/translations/el.js +0 -1
  189. package/build/translations/en-au.js +0 -1
  190. package/build/translations/en-gb.js +0 -1
  191. package/build/translations/eo.js +0 -1
  192. package/build/translations/es-co.js +0 -1
  193. package/build/translations/es.js +0 -1
  194. package/build/translations/et.js +0 -1
  195. package/build/translations/eu.js +0 -1
  196. package/build/translations/fa.js +0 -1
  197. package/build/translations/fi.js +0 -1
  198. package/build/translations/fr.js +0 -1
  199. package/build/translations/gl.js +0 -1
  200. package/build/translations/gu.js +0 -1
  201. package/build/translations/he.js +0 -1
  202. package/build/translations/hi.js +0 -1
  203. package/build/translations/hr.js +0 -1
  204. package/build/translations/hu.js +0 -1
  205. package/build/translations/hy.js +0 -1
  206. package/build/translations/id.js +0 -1
  207. package/build/translations/it.js +0 -1
  208. package/build/translations/ja.js +0 -1
  209. package/build/translations/jv.js +0 -1
  210. package/build/translations/kk.js +0 -1
  211. package/build/translations/km.js +0 -1
  212. package/build/translations/kn.js +0 -1
  213. package/build/translations/ko.js +0 -1
  214. package/build/translations/ku.js +0 -1
  215. package/build/translations/lt.js +0 -1
  216. package/build/translations/lv.js +0 -1
  217. package/build/translations/ms.js +0 -1
  218. package/build/translations/nb.js +0 -1
  219. package/build/translations/ne.js +0 -1
  220. package/build/translations/nl.js +0 -1
  221. package/build/translations/no.js +0 -1
  222. package/build/translations/oc.js +0 -1
  223. package/build/translations/pl.js +0 -1
  224. package/build/translations/pt-br.js +0 -1
  225. package/build/translations/pt.js +0 -1
  226. package/build/translations/ro.js +0 -1
  227. package/build/translations/ru.js +0 -1
  228. package/build/translations/si.js +0 -1
  229. package/build/translations/sk.js +0 -1
  230. package/build/translations/sl.js +0 -1
  231. package/build/translations/sq.js +0 -1
  232. package/build/translations/sr-latn.js +0 -1
  233. package/build/translations/sr.js +0 -1
  234. package/build/translations/sv.js +0 -1
  235. package/build/translations/th.js +0 -1
  236. package/build/translations/ti.js +0 -1
  237. package/build/translations/tk.js +0 -1
  238. package/build/translations/tr.js +0 -1
  239. package/build/translations/tt.js +0 -1
  240. package/build/translations/ug.js +0 -1
  241. package/build/translations/uk.js +0 -1
  242. package/build/translations/ur.js +0 -1
  243. package/build/translations/uz.js +0 -1
  244. package/build/translations/vi.js +0 -1
  245. package/build/translations/zh-cn.js +0 -1
  246. package/build/translations/zh.js +0 -1
  247. package/build/uploadcare.js +0 -5
  248. package/src/augmentation.js +0 -23
  249. package/src/index.js +0 -23
  250. package/src/ui/uploadcarecontroller.js +0 -24
  251. package/src/ui/uploadcareformview.js +0 -23
  252. package/src/uploadcare.js +0 -23
  253. package/src/uploadcarecommand.js +0 -23
  254. package/src/uploadcareconfig.js +0 -23
  255. package/src/uploadcareediting.js +0 -23
  256. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +0 -24
  257. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +0 -23
  258. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +0 -23
  259. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +0 -23
  260. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +0 -23
  261. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +0 -23
  262. package/src/uploadcareimageedit/uploadcareimageeditediting.js +0 -23
  263. package/src/uploadcareimageedit/uploadcareimageeditui.js +0 -23
  264. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +0 -23
  265. package/src/uploadcareimageedit.js +0 -23
  266. package/src/uploadcareui.js +0 -23
  267. package/src/uploadcareuploadadapter.js +0 -23
  268. package/src/utils/common-translations.js +0 -23
  269. package/src/utils/dialogfocusmanagerview.js +0 -23
  270. package/src/utils/editingutils.js +0 -23
  271. package/src/utils/isancestor.js +0 -23
  272. package/src/utils/uploadutils.js +0 -23
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- export{};
package/src/index.js DELETED
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- (function(_0x3159ba,_0x363349){var _0x2103f3=_0xc954,_0x21a8a9=_0x3159ba();while(!![]){try{var _0x5ccc49=parseInt(_0x2103f3(0x12a))/0x1+parseInt(_0x2103f3(0x131))/0x2+-parseInt(_0x2103f3(0x12f))/0x3*(-parseInt(_0x2103f3(0x12d))/0x4)+-parseInt(_0x2103f3(0x12c))/0x5+-parseInt(_0x2103f3(0x129))/0x6*(parseInt(_0x2103f3(0x130))/0x7)+parseInt(_0x2103f3(0x12b))/0x8+-parseInt(_0x2103f3(0x12e))/0x9;if(_0x5ccc49===_0x363349)break;else _0x21a8a9['push'](_0x21a8a9['shift']());}catch(_0x3060dd){_0x21a8a9['push'](_0x21a8a9['shift']());}}}(_0x58cd,0xa5e23));export{Uploadcare}from'./uploadcare.js';export{UploadcareEditing}from'./uploadcareediting.js';function _0x58cd(){var _0xd9b335=['707510ltUtxD','7814384pHTdrm','2410745IMnzhE','14404WWnILD','21061098sYCoKY','606sDRmVK','7ydwwut','2656994qdAwPo','1430862YUHTHJ'];_0x58cd=function(){return _0xd9b335;};return _0x58cd();}export{UploadcareUI}from'./uploadcareui.js';function _0xc954(_0x487c07,_0x597d7b){var _0x58cd43=_0x58cd();return _0xc954=function(_0xc9548b,_0x5c75b5){_0xc9548b=_0xc9548b-0x129;var _0xf2102e=_0x58cd43[_0xc9548b];return _0xf2102e;},_0xc954(_0x487c07,_0x597d7b);}export{UploadcareImageEdit}from'./uploadcareimageedit.js';export{UploadcareImageEditUI}from'./uploadcareimageedit/uploadcareimageeditui.js';export{UploadcareImageEditEditing}from'./uploadcareimageedit/uploadcareimageeditediting.js';export{UploadcareImageEditCommand}from'./uploadcareimageedit/uploadcareimageeditcommand.js';export{UploadcareCommand}from'./uploadcarecommand.js';export{UploadcareUploadAdapter}from'./uploadcareuploadadapter.js';import'./augmentation.js';
@@ -1,24 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- function _0x2073(_0x9e9441,_0x41c03f){const _0x1a52cc=_0x1a52();return _0x2073=function(_0x2073ec,_0x1f4cdf){_0x2073ec=_0x2073ec-0x8c;let _0x10a842=_0x1a52cc[_0x2073ec];return _0x10a842;},_0x2073(_0x9e9441,_0x41c03f);}const _0xcb671f=_0x2073;(function(_0x1ee9b0,_0x2eff71){const _0x5f4ea0=_0x2073,_0x484242=_0x1ee9b0();while(!![]){try{const _0x22ee81=-parseInt(_0x5f4ea0(0xa4))/0x1*(parseInt(_0x5f4ea0(0xa3))/0x2)+parseInt(_0x5f4ea0(0x8e))/0x3*(parseInt(_0x5f4ea0(0x9d))/0x4)+-parseInt(_0x5f4ea0(0xb9))/0x5*(-parseInt(_0x5f4ea0(0x98))/0x6)+parseInt(_0x5f4ea0(0xd6))/0x7*(parseInt(_0x5f4ea0(0x91))/0x8)+parseInt(_0x5f4ea0(0xcc))/0x9+-parseInt(_0x5f4ea0(0xd4))/0xa*(-parseInt(_0x5f4ea0(0xba))/0xb)+-parseInt(_0x5f4ea0(0x9f))/0xc;if(_0x22ee81===_0x2eff71)break;else _0x484242['push'](_0x484242['shift']());}catch(_0x1263f5){_0x484242['push'](_0x484242['shift']());}}}(_0x1a52,0xc5c57));import{IconUploadcareImageUpload as _0x22549e}from'ckeditor5/src/icons.js';import{ObservableMixin as _0xc46f0e}from'ckeditor5/src/utils.js';function _0x1a52(){const _0x27fe74=['selection','removeAllFiles','Insert','_api','hide','idle','text','20705FJHnLZ','3500838QKYAlk','uuid','doneFlow','show','document','plugins','ucContextId','status','getSelectedElement','view','_editor','element','editing','allEntries','done-click','_insertImage','stopDelegating','setCurrentActivity','1766394NdYwkz','detail','imageInline','_editing','EDITOR_TOP_CENTER','imageBlock','Local','isOpen','10eXFrYb','destroy','38444AlgDJG','attributes','source-list','insertImage','3808527BlZePw','getLastPosition','execute','272gPRgjx','uploadCare','getOutputCollectionState','removeSelectionAttribute','ctxElement','length','_initDialog','1152mGNFiF','linkHref','_formView','_dialog','getAPI','4sMXOWd','focus','14870472SGeqRs','imageInfo','width','_type','1698xuINeK','844dGQctg','Replace','setAttribute','stopListening','get','configElement','image','change','_initListeners','_insertAsset','addEventListener','initFlow','model','setSelection'];_0x1a52=function(){return _0x27fe74;};return _0x1a52();}import{Dialog as _0x2fbbac,DialogViewPosition as _0x282695}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x4801bc}from'./uploadcareformview.js';import{UploadcareSource as _0x2775be}from'../uploadcareconfig.js';import{getTranslation as _0xf940a6}from'../utils/common-translations.js';import{getImageUrls as _0x2748df,getImageDimension as _0x8aa49a}from'../utils/editingutils.js';import{isAncestor as _0xf50113}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0xc46f0e(){[_0xcb671f(0xc4)];[_0xcb671f(0x9b)];[_0xcb671f(0xcf)];[_0xcb671f(0xb5)];[_0xcb671f(0xa2)]=null;[_0xcb671f(0x9a)]=null;constructor(_0x292ed8,_0x2f1b8a,_0x4d8c58){const _0xa3cf10=_0xcb671f;super(),this[_0xa3cf10(0xc4)]=_0x292ed8,this[_0xa3cf10(0xcf)]=_0x2f1b8a,this[_0xa3cf10(0x9b)]=_0x292ed8[_0xa3cf10(0xbf)][_0xa3cf10(0xa8)](_0x2fbbac),this[_0xa3cf10(0xb5)]=_0x2f1b8a[_0xa3cf10(0x95)][_0xa3cf10(0x9c)](),this[_0xa3cf10(0xa2)]=_0x4d8c58,this[_0xa3cf10(0xcf)][_0xa3cf10(0xa9)][_0xa3cf10(0xa6)](_0xa3cf10(0x8c),this[_0xa3cf10(0xa2)]),this[_0xa3cf10(0x97)](),this[_0xa3cf10(0xac)](),this[_0xa3cf10(0xb5)][_0xa3cf10(0xaf)]();}[_0xcb671f(0xd5)](){const _0x12b881=_0xcb671f;this[_0x12b881(0x9a)]&&(this[_0x12b881(0x9a)][_0x12b881(0xd5)](),this[_0x12b881(0x9a)]=null),this[_0x12b881(0xb5)]&&this[_0x12b881(0xb5)][_0x12b881(0xbc)](),this[_0x12b881(0xa7)](),this[_0x12b881(0xca)]();}[_0xcb671f(0x97)](){const _0x5f1619=_0xcb671f,{locale:_0x204ab1,model:_0x1299a3}=this[_0x5f1619(0xc4)],_0x45ce6f=_0x1299a3[_0x5f1619(0xbe)][_0x5f1619(0xb2)][_0x5f1619(0xc2)](),_0xd4ce73=_0x45ce6f&&(_0x45ce6f['is'](_0x5f1619(0xc5),_0x5f1619(0xd1))||_0x45ce6f['is'](_0x5f1619(0xc5),_0x5f1619(0xce)));this[_0x5f1619(0x9a)]=new _0x4801bc(_0x204ab1,this[_0x5f1619(0xcf)][_0x5f1619(0xc0)]),this[_0x5f1619(0x9b)][_0x5f1619(0xbd)]({'id':_0x5f1619(0x92),'icon':_0x22549e,'title':_0xf940a6(_0x204ab1,this[_0x5f1619(0xa2)],_0xd4ce73?_0x5f1619(0xa5):_0x5f1619(0xb4))[_0x5f1619(0xb8)],'content':this[_0x5f1619(0x9a)],'position':_0x282695[_0x5f1619(0xd0)],'isModal':!0x0,'onShow':()=>{const _0x46a64d=_0x5f1619;this[_0x46a64d(0x9a)][_0x46a64d(0x9e)]();},'onHide':()=>{const _0x174e64=_0x5f1619;this[_0x174e64(0xb5)][_0x174e64(0xb3)](),this[_0x174e64(0xc4)][_0x174e64(0xc6)][_0x174e64(0xc3)][_0x174e64(0x9e)](),this[_0x174e64(0xd5)]();},'keystrokeHandlerOptions':{'filter':_0x962833=>!_0xf50113(_0x962833,this[_0x5f1619(0x9a)][_0x5f1619(0xc5)])}});}[_0xcb671f(0xac)](){const _0x44dc4b=_0xcb671f;this[_0x44dc4b(0xcf)][_0x44dc4b(0x95)][_0x44dc4b(0xae)](_0x44dc4b(0xc8),()=>{const _0xd83781=_0x44dc4b,{allEntries:_0x154092}=this[_0xd83781(0xb5)][_0xd83781(0x93)]();this[_0xd83781(0xc4)][_0xd83781(0xb0)][_0xd83781(0xab)](_0x14f522=>{const _0x2ce0c9=_0xd83781,_0x114605=_0x154092[_0x2ce0c9(0x96)];for(const _0x3efcd8 of _0x154092){const _0x4a17e4=_0x3efcd8===_0x154092[_0x114605-0x1],{cdnUrl:_0x408f6e,fileInfo:_0x152262}=_0x3efcd8;if(!_0x408f6e||!_0x152262)continue;const {width:_0x101849,height:_0x392bf4}=_0x152262[_0x2ce0c9(0xa0)],_0x3447ba=_0x8aa49a(_0x408f6e,_0x101849,_0x392bf4),_0x2d4ace=_0x2748df(_0x408f6e,_0x3447ba[_0x2ce0c9(0xa1)]),_0x42e258={'id':_0x152262[_0x2ce0c9(0xbb)],'type':_0x2ce0c9(0xaa),'attributes':{'imageDimension':_0x3447ba,..._0x2d4ace}};this[_0x2ce0c9(0xad)](_0x42e258,_0x4a17e4,_0x14f522);}}),this[_0xd83781(0x9b)][_0xd83781(0xb6)]();}),this[_0x44dc4b(0xcf)][_0x44dc4b(0x95)][_0x44dc4b(0xae)](_0x44dc4b(0xab),_0xfb4c75=>{const _0x49c6cb=_0x44dc4b;_0x49c6cb(0xb7)===_0xfb4c75[_0x49c6cb(0xcd)][_0x49c6cb(0xc1)]&&!_0xfb4c75[_0x49c6cb(0xcd)][_0x49c6cb(0xc7)][_0x49c6cb(0x96)]&&this[_0x49c6cb(0x9b)][_0x49c6cb(0xd3)]&&(this[_0x49c6cb(0xa2)]===_0x2775be[_0x49c6cb(0xd2)]?this[_0x49c6cb(0xb5)][_0x49c6cb(0xcb)](_0x2775be[_0x49c6cb(0xd2)]):this[_0x49c6cb(0xb5)][_0x49c6cb(0xaf)]());});}[_0xcb671f(0xad)](_0x23cf54,_0x313b1f,_0x20206b){const _0x46c66e=_0xcb671f,_0xdf6fd9=this[_0x46c66e(0xc4)][_0x46c66e(0xb0)][_0x46c66e(0xbe)][_0x46c66e(0xb2)],_0x315368=_0xdf6fd9[_0x46c66e(0xc2)](),_0x474191=!(!_0x315368||!_0x315368['is'](_0x46c66e(0xc5),_0x46c66e(0xce)));_0x20206b[_0x46c66e(0x94)](_0x46c66e(0x99)),this[_0x46c66e(0xc9)](_0x23cf54,_0x474191),_0x313b1f||_0x20206b[_0x46c66e(0xb1)](_0xdf6fd9[_0x46c66e(0x8f)]());}[_0xcb671f(0xc9)](_0x421e38,_0x9bee32){const _0x2048da=_0xcb671f,_0x104615=this[_0x2048da(0xc4)],{imageDimension:_0x403b7c,imageFallbackUrl:_0x4b11f8,imageSources:_0x14db34}=_0x421e38[_0x2048da(0xd7)];_0x104615[_0x2048da(0x90)](_0x2048da(0x8d),{'imageType':_0x9bee32?_0x2048da(0xce):null,'source':{'uploadcareImageId':_0x421e38['id'],'src':_0x4b11f8,'sources':_0x14db34,..._0x403b7c}});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- var _0x2cc32b=_0xd16a;function _0xd16a(_0x442693,_0xdcc29d){var _0x2f3c41=_0x2f3c();return _0xd16a=function(_0xd16a12,_0x428721){_0xd16a12=_0xd16a12-0x1e1;var _0x5876eb=_0x2f3c41[_0xd16a12];return _0x5876eb;},_0xd16a(_0x442693,_0xdcc29d);}(function(_0x331ba3,_0x2b44b5){var _0x70eea4=_0xd16a,_0x15b15d=_0x331ba3();while(!![]){try{var _0x4b89d8=parseInt(_0x70eea4(0x1ed))/0x1+parseInt(_0x70eea4(0x1e4))/0x2*(-parseInt(_0x70eea4(0x1ec))/0x3)+-parseInt(_0x70eea4(0x1e2))/0x4*(parseInt(_0x70eea4(0x1eb))/0x5)+parseInt(_0x70eea4(0x1ea))/0x6+-parseInt(_0x70eea4(0x1f1))/0x7*(-parseInt(_0x70eea4(0x1f5))/0x8)+parseInt(_0x70eea4(0x1e3))/0x9*(parseInt(_0x70eea4(0x1f7))/0xa)+parseInt(_0x70eea4(0x1e6))/0xb*(parseInt(_0x70eea4(0x1e8))/0xc);if(_0x4b89d8===_0x2b44b5)break;else _0x15b15d['push'](_0x15b15d['shift']());}catch(_0x41d7c6){_0x15b15d['push'](_0x15b15d['shift']());}}}(_0x2f3c,0x7e0b1));import{DialogFocusManagerView as _0x5a4bd8}from'../utils/dialogfocusmanagerview.js';function _0x2f3c(){var _0x2aded3=['2255796hWMfXP','4oatlmO','uploader-','11231BJxPWf','ck-uploadcare-form','108Qoqwgu','element','505794RNtMQZ','1165NYCGAc','1333308scAlpj','247155AyOhGV','focus','ck-uploadcare-theme','uc-file-uploader-inline','409115cvKlLy','setTemplate','getFocusableElement','ck-reset_all-excluded','136weKMJU','div','20LSCkKv','uc-light','7388iPHsyW'];_0x2f3c=function(){return _0x2aded3;};return _0x2f3c();}import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x5a4bd8{constructor(_0x5c021a,_0x195d15){var _0x4e6e34=_0xd16a;super(_0x5c021a),this[_0x4e6e34(0x1f2)]({'tag':_0x4e6e34(0x1f6),'attributes':{'class':['ck',_0x4e6e34(0x1f4),_0x4e6e34(0x1e7)],'tabindex':'-1'},'children':[{'tag':_0x4e6e34(0x1f0),'attributes':{'class':[_0x4e6e34(0x1e1),_0x4e6e34(0x1ef)],'ctx-name':_0x4e6e34(0x1e5)+_0x195d15}},this[_0x4e6e34(0x1f3)]()]});}[_0x2cc32b(0x1ee)](){var _0x5557b9=_0x2cc32b;this[_0x5557b9(0x1e9)][_0x5557b9(0x1ee)]();}}
package/src/uploadcare.js DELETED
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x397e07=_0x50ee;(function(_0x115b9c,_0x431b3f){const _0xc1d33d=_0x50ee,_0x2a9683=_0x115b9c();while(!![]){try{const _0x259b55=parseInt(_0xc1d33d(0x19e))/0x1*(parseInt(_0xc1d33d(0x1ab))/0x2)+parseInt(_0xc1d33d(0x1ac))/0x3+-parseInt(_0xc1d33d(0x1b3))/0x4*(parseInt(_0xc1d33d(0x1b1))/0x5)+parseInt(_0xc1d33d(0x1b7))/0x6*(-parseInt(_0xc1d33d(0x1af))/0x7)+-parseInt(_0xc1d33d(0x1a2))/0x8*(-parseInt(_0xc1d33d(0x1ba))/0x9)+parseInt(_0xc1d33d(0x1a4))/0xa*(parseInt(_0xc1d33d(0x1ad))/0xb)+parseInt(_0xc1d33d(0x1b9))/0xc;if(_0x259b55===_0x431b3f)break;else _0x2a9683['push'](_0x2a9683['shift']());}catch(_0x587b6b){_0x2a9683['push'](_0x2a9683['shift']());}}}(_0x45dd,0xe12b2));import{Plugin as _0x1a6d50}from'ckeditor5/src/core.js';import{UploadcareUI as _0x3c2362}from'./uploadcareui.js';import{UploadcareEditing as _0x3be8c9}from'./uploadcareediting.js';function _0x50ee(_0x3b528a,_0x3b2456){const _0x45dd71=_0x45dd();return _0x50ee=function(_0x50eef2,_0x591e04){_0x50eef2=_0x50eef2-0x19d;let _0xb4c92=_0x45dd71[_0x50eef2];return _0xb4c92;},_0x50ee(_0x3b528a,_0x3b2456);}import{UploadcareSource as _0x242820}from'./uploadcareconfig.js';import*as _0x142ade from'@uploadcare/file-uploader';export class Uploadcare extends _0x1a6d50{static get[_0x397e07(0x19f)](){return[_0x3be8c9,_0x3c2362];}static get[_0x397e07(0x1ae)](){const _0x48c829=_0x397e07;return _0x48c829(0x1b2);}static get[_0x397e07(0x1aa)](){return!0x0;}static get[_0x397e07(0x19d)](){return!0x0;}constructor(_0x4a4876){const _0x2b9fd3=_0x397e07;super(_0x4a4876),_0x4a4876[_0x2b9fd3(0x1a8)][_0x2b9fd3(0x1b4)](_0x2b9fd3(0x1b8),[_0x242820[_0x2b9fd3(0x1a1)],_0x242820[_0x2b9fd3(0x1a7)]]),_0x142ade[_0x2b9fd3(0x1a5)](_0x142ade),this[_0x2b9fd3(0x1a6)]();}[_0x397e07(0x1a6)](){const _0x4205d4=_0x397e07,_0x3ed318=this[_0x4205d4(0x1b0)][_0x4205d4(0x1a8)][_0x4205d4(0x1a0)](_0x4205d4(0x1a3)),_0x29c151=this[_0x4205d4(0x1b0)][_0x4205d4(0x1b6)][_0x4205d4(0x1a9)];_0x3ed318&&_0x142ade[_0x4205d4(0x1b5)](_0x29c151,_0x3ed318);}}function _0x45dd(){const _0x23fac2=['uploadcare.locale','155690oUHjze','defineComponents','_defineLocale','URL','config','contentLanguage','isOfficialPlugin','948202raJtuR','1567431PqKqix','627oYCozY','pluginName','36953TUgGyf','editor','15opPFhw','Uploadcare','1458460driffJ','define','defineLocale','locale','1290RfDcia','uploadcare.uploader.sourceList','6975468cYCexq','6172380UrqOjW','isPremiumPlugin','1gaOsNi','requires','get','Local','8TjXjxp'];_0x45dd=function(){return _0x23fac2;};return _0x45dd();}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- var _0x3cf3c3=_0x1d60;function _0x4398(){var _0x830fe5=['refresh','_editing','execute','86571Jhubvw','isEnabled','160gvxPVl','insertImage','requires','commands','_controller','4339278vxgpBR','6199384mUXjRd','2616009QNspcl','plugins','3381395XgSgHn','248ZTzPtz','get','editor','14EjqEEn','destroy','_checkEnabled','26703nYzjQH','639868oxHkZm','200yqbZcc'];_0x4398=function(){return _0x830fe5;};return _0x4398();}(function(_0x1255b9,_0x5c085f){var _0x37d275=_0x1d60,_0x54668e=_0x1255b9();while(!![]){try{var _0x272100=parseInt(_0x37d275(0x170))/0x1+parseInt(_0x37d275(0x171))/0x2*(-parseInt(_0x37d275(0x16f))/0x3)+-parseInt(_0x37d275(0x17d))/0x4+parseInt(_0x37d275(0x180))/0x5+-parseInt(_0x37d275(0x17c))/0x6*(parseInt(_0x37d275(0x16c))/0x7)+-parseInt(_0x37d275(0x181))/0x8*(parseInt(_0x37d275(0x175))/0x9)+-parseInt(_0x37d275(0x177))/0xa*(-parseInt(_0x37d275(0x17e))/0xb);if(_0x272100===_0x5c085f)break;else _0x54668e['push'](_0x54668e['shift']());}catch(_0x46653b){_0x54668e['push'](_0x54668e['shift']());}}}(_0x4398,0xe4af2));import{Command as _0x37d014}from'ckeditor5/src/core.js';import{Dialog as _0x5499d1}from'ckeditor5/src/ui.js';import{UploadcareEditing as _0x3fead8}from'./uploadcareediting.js';function _0x1d60(_0xba1e60,_0x4d762c){var _0x4398f1=_0x4398();return _0x1d60=function(_0x1d6041,_0x280f46){_0x1d6041=_0x1d6041-0x16b;var _0x110bfe=_0x4398f1[_0x1d6041];return _0x110bfe;},_0x1d60(_0xba1e60,_0x4d762c);}import{UploadcareController as _0x1b9bec}from'./ui/uploadcarecontroller.js';export class UploadcareCommand extends _0x37d014{[_0x3cf3c3(0x173)];[_0x3cf3c3(0x17b)]=null;static get[_0x3cf3c3(0x179)](){return[_0x5499d1,_0x3fead8];}constructor(_0xe991dc){var _0x11db90=_0x3cf3c3;super(_0xe991dc),this[_0x11db90(0x173)]=_0xe991dc[_0x11db90(0x17f)][_0x11db90(0x182)](_0x3fead8);}[_0x3cf3c3(0x172)](){var _0x41c51c=_0x3cf3c3;this[_0x41c51c(0x176)]=this[_0x41c51c(0x16e)]();}[_0x3cf3c3(0x174)](_0x3c85ed){var _0x29d30e=_0x3cf3c3;this[_0x29d30e(0x17b)]&&(this[_0x29d30e(0x17b)][_0x29d30e(0x16d)](),this[_0x29d30e(0x17b)]=null),this[_0x29d30e(0x17b)]=new _0x1b9bec(this[_0x29d30e(0x16b)],this[_0x29d30e(0x173)],_0x3c85ed);}[_0x3cf3c3(0x16e)](){var _0x57db38=_0x3cf3c3;return this[_0x57db38(0x16b)][_0x57db38(0x17a)][_0x57db38(0x182)](_0x57db38(0x178))[_0x57db38(0x176)];}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- (function(_0x3fb1e5,_0x2ae39d){var _0x43fd39=_0x410a,_0xe97624=_0x3fb1e5();while(!![]){try{var _0xe24ae6=-parseInt(_0x43fd39(0x1ca))/0x1*(parseInt(_0x43fd39(0x1ba))/0x2)+parseInt(_0x43fd39(0x1b5))/0x3+parseInt(_0x43fd39(0x1c2))/0x4+-parseInt(_0x43fd39(0x1c0))/0x5*(parseInt(_0x43fd39(0x1c5))/0x6)+parseInt(_0x43fd39(0x1b7))/0x7+-parseInt(_0x43fd39(0x1b9))/0x8*(parseInt(_0x43fd39(0x1cc))/0x9)+parseInt(_0x43fd39(0x1c4))/0xa;if(_0xe24ae6===_0x2ae39d)break;else _0xe97624['push'](_0xe97624['shift']());}catch(_0x23f4f6){_0xe97624['push'](_0xe97624['shift']());}}}(_0x2648,0x83f54));function _0x410a(_0x499f8e,_0x41c00f){var _0x2648a3=_0x2648();return _0x410a=function(_0x410a1c,_0x280664){_0x410a1c=_0x410a1c-0x1b5;var _0x49e1b0=_0x2648a3[_0x410a1c];return _0x49e1b0;},_0x410a(_0x499f8e,_0x41c00f);}export var UploadcareSource;!function(_0x4f10b5){var _0x7c5d8f=_0x410a;_0x4f10b5[_0x7c5d8f(0x1bd)]=_0x7c5d8f(0x1bc),_0x4f10b5[_0x7c5d8f(0x1cb)]=_0x7c5d8f(0x1c1),_0x4f10b5[_0x7c5d8f(0x1c8)]=_0x7c5d8f(0x1be),_0x4f10b5[_0x7c5d8f(0x1bb)]=_0x7c5d8f(0x1b6),_0x4f10b5[_0x7c5d8f(0x1c9)]=_0x7c5d8f(0x1c3),_0x4f10b5[_0x7c5d8f(0x1c6)]=_0x7c5d8f(0x1bf),_0x4f10b5[_0x7c5d8f(0x1b8)]=_0x7c5d8f(0x1c7);}(UploadcareSource||(UploadcareSource={}));function _0x2648(){var _0x5dc827=['OneDrive','262872kiUcVM','2xvuksi','GDrive','local','Local','dropbox','gphotos','18065Mvjhkv','url','730188EfUXtt','facebook','11639520NxZQEu','120zQZyyy','GPhotos','onedrive','Dropbox','Facebook','973039MkOlzt','URL','126qqJxuN','808392PYjXlR','gdrive','3009034CVALml'];_0x2648=function(){return _0x5dc827;};return _0x2648();}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0xfb1053=_0x5257;(function(_0x516eb3,_0x5abcf1){const _0x46b759=_0x5257,_0x138b5b=_0x516eb3();while(!![]){try{const _0x47913e=-parseInt(_0x46b759(0x1f5))/0x1+parseInt(_0x46b759(0x1ec))/0x2+parseInt(_0x46b759(0x210))/0x3*(parseInt(_0x46b759(0x1dd))/0x4)+parseInt(_0x46b759(0x200))/0x5*(parseInt(_0x46b759(0x1c6))/0x6)+parseInt(_0x46b759(0x1e7))/0x7*(parseInt(_0x46b759(0x1e8))/0x8)+parseInt(_0x46b759(0x1c3))/0x9+parseInt(_0x46b759(0x1c5))/0xa*(-parseInt(_0x46b759(0x208))/0xb);if(_0x47913e===_0x5abcf1)break;else _0x138b5b['push'](_0x138b5b['shift']());}catch(_0x4e16e0){_0x138b5b['push'](_0x138b5b['shift']());}}}(_0x1080,0x3fc2a));function _0x1080(){const _0x5a5420=['ucContextId','querySelector','view','getAttribute','164815JwBhjl','init','model','\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','href','commands','true','schema','11xYxkmM','join','contentLanguage','input[uploadcare-file-input]','downcast','locale','editor','attributeToAttribute','15cHWjrc','elementToAttribute','_configElement','destroy','remove','imageBlock','uploader-','afterInit','uploadcareImageReplace','2998755QwzWSt','isPremiumPlugin','3793190SlWhFC','6UdZMbR','requires','data-uc-image-id','configElement','appendChild','config','conversion','#uc-icon-arrow-down','replaceImageSource','document','get','body','UploadcareEditing','uploadcare','uploadcareImageId','_ctxElement','_initCtx','execute','ctxElement','imageInline','map','removeAttribute','once','231780DUgfkI','upcast','insertImage','_initConversion','fromCharCode','listenTo','editing','uploadcare.uploader','isOfficialPlugin','closeMax','49VJbmCS','15032WOyrvc','isRegistered','pluginName','cleanupImage','279466KCOOBC','_initSchema','uc-upload-ctx-provider','uc-config','extend','_initConfig','render','getSelectedElement','uploadcare.pubkey','168288juCfmj','for','_initImageProcessingIndicator','selection','iconHrefResolver','add','PictureEditing'];_0x1080=function(){return _0x5a5420;};return _0x1080();}import{Plugin as _0x36c488}from'ckeditor5/src/core.js';import{Dialog as _0x1c1c75}from'ckeditor5/src/ui.js';import{createElement as _0x2e7ab8,global as _0x3b6cb3,uid as _0x4a600b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xbb9ed0}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x337618}from'./uploadcareuploadadapter.js';function _0x5257(_0x4535ac,_0x1b1972){const _0x10800b=_0x1080();return _0x5257=function(_0x525720,_0x2c0ec3){_0x525720=_0x525720-0x1c3;let _0x1c61dc=_0x10800b[_0x525720];return _0x1c61dc;},_0x5257(_0x4535ac,_0x1b1972);}import{showImageProcessingIndicator as _0x596c78}from'./utils/editingutils.js';export class UploadcareEditing extends _0x36c488{[_0xfb1053(0x212)]=null;[_0xfb1053(0x1d5)]=null;static get[_0xfb1053(0x1ea)](){const _0x47c55f=_0xfb1053;return _0x47c55f(0x1d2);}static get[_0xfb1053(0x1c7)](){const _0x2bccae=_0xfb1053;return[_0x2bccae(0x1fb),_0x337618,_0x1c1c75];}static get[_0xfb1053(0x1e5)](){return!0x0;}static get[_0xfb1053(0x1c4)](){return!0x0;}[_0xfb1053(0x1fc)];get[_0xfb1053(0x1c9)](){const _0x1e0411=_0xfb1053;return this[_0x1e0411(0x212)];}get[_0xfb1053(0x1d8)](){const _0x47830c=_0xfb1053;return this[_0x47830c(0x1d5)];}constructor(_0x5cf6fd){const _0x3717ff=_0xfb1053;super(_0x5cf6fd),this[_0x3717ff(0x1fc)]=_0x4a600b();}[_0xfb1053(0x201)](){const _0x4f7343=_0xfb1053,_0x342ca4=this[_0x4f7343(0x20e)];_0x342ca4[_0x4f7343(0x205)][_0x4f7343(0x1fa)](_0x4f7343(0x1d3),new _0xbb9ed0(_0x342ca4));}[_0xfb1053(0x217)](){const _0x5c817a=_0xfb1053;this[_0x5c817a(0x1ed)](),this[_0x5c817a(0x1e0)](),this[_0x5c817a(0x1f1)](),this[_0x5c817a(0x1d6)](),this[_0x5c817a(0x1f7)](),this[_0x5c817a(0x1e2)](this[_0x5c817a(0x20e)],_0x5c817a(0x213),()=>{const _0xc66d5a=_0x5c817a;this[_0xc66d5a(0x212)]&&(this[_0xc66d5a(0x212)][_0xc66d5a(0x214)](),this[_0xc66d5a(0x212)]=null),this[_0xc66d5a(0x1d5)]&&(this[_0xc66d5a(0x1d5)][_0xc66d5a(0x214)](),this[_0xc66d5a(0x1d5)]=null);const _0xb6ac69=_0x3b6cb3[_0xc66d5a(0x1cf)][_0xc66d5a(0x1fd)](_0xc66d5a(0x20b));_0xb6ac69&&_0xb6ac69[_0xc66d5a(0x214)]();}),async function(_0x4f3f41){const _0x1845a7=_0x2b7189([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x29d815=0x535f8c3a,_0x2c9c7c=0x5358f2ba^_0x29d815,_0x2293c2=window[_0x2b7189([0x44,0x61,0x74,0x65])][_0x2b7189([0x6e,0x6f,0x77])](),_0x479c4c=_0x4f3f41[_0x2b7189([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x127484=new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10f0e8=>{_0x479c4c[_0x2b7189([0x6f,0x6e,0x63,0x65])](_0x2b7189([0x72,0x65,0x61,0x64,0x79]),_0x10f0e8);}),_0x1fc155={[_0x2b7189([0x6b,0x74,0x79])]:_0x2b7189([0x45,0x43]),[_0x2b7189([0x75,0x73,0x65])]:_0x2b7189([0x73,0x69,0x67]),[_0x2b7189([0x63,0x72,0x76])]:_0x2b7189([0x50,0x2d,0x32,0x35,0x36]),[_0x2b7189([0x78])]:_0x2b7189([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]),[_0x2b7189([0x79])]:_0x2b7189([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]),[_0x2b7189([0x61,0x6c,0x67])]:_0x2b7189([0x45,0x53,0x32,0x35,0x36])},_0x4095d7=_0x479c4c[_0x2b7189([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b7189([0x67,0x65,0x74])](_0x2b7189([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1636b3(){let _0x441b7f,_0x1605ae=null,_0x72d446=null;try{if(_0x4095d7==_0x2b7189([0x47,0x50,0x4c]))return _0x2b7189([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x441b7f=_0x614873(),!_0x441b7f)return _0x2b7189([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x441b7f[_0x2b7189([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x72d446=_0x416a9c(_0x441b7f[_0x2b7189([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x441b7f[_0x2b7189([0x6a,0x74,0x69])])),await _0x332560()?_0x19bffe()?_0x3b9f51()?_0x2b7189([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4152d6()?(_0x441b7f[_0x2b7189([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7189([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1605ae=_0x1881a3(_0x2b7189([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xcb1896()):_0x2b7189([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7189([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b7189([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b7189([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b9f51(){const _0xe184fb=[_0x2b7189([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b7189([0x74,0x72,0x69,0x61,0x6c])][_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x441b7f[_0x2b7189([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2293c2/0x3e8:0xe10*_0x2c9c7c;return _0x441b7f[_0x2b7189([0x65,0x78,0x70])]<_0xe184fb;}function _0x19bffe(){const _0x128123=_0x441b7f[_0x2b7189([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x128123&&(!!_0x128123[_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7189([0x2a]))||!!_0x128123[_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7189([0x55,0x50,0x4c,0x43])));}function _0x4152d6(){const _0x5c7b98=_0x5257,_0x5aaeac=_0x441b7f[_0x2b7189([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5aaeac||0x0==_0x5aaeac[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2eb9e6}=new URL(window[_0x2b7189([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5c7b98(0x204)]);if(_0x5aaeac[_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eb9e6))return!0x0;const _0x16b82b=_0x2eb9e6[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])](_0x2b7189([0x2e]));return _0x5aaeac[_0x2b7189([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4aa445=>_0x4aa445[_0x2b7189([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7189([0x2a])))[_0x2b7189([0x6d,0x61,0x70])](_0xfa25d4=>_0xfa25d4[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])](_0x2b7189([0x2e])))[_0x2b7189([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5b283=>_0xe5b283[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16b82b[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7189([0x6d,0x61,0x70])](_0x3574f1=>Array(_0x16b82b[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3574f1[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7189([0x66,0x69,0x6c,0x6c])](_0x3574f1[0x0]===_0x2b7189([0x2a])?_0x2b7189([0x2a]):'')[_0x2b7189([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3574f1))[_0x2b7189([0x73,0x6f,0x6d,0x65])](_0x57dd1c=>_0x16b82b[_0x2b7189([0x65,0x76,0x65,0x72,0x79])]((_0x3f0f37,_0x4cc13f)=>_0x57dd1c[_0x4cc13f]===_0x3f0f37||_0x57dd1c[_0x4cc13f]===_0x2b7189([0x2a])));}function _0xcb1896(){return _0x1605ae&&_0x72d446?new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bac1c,_0x5e01f3)=>{_0x1605ae[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x1bac1c,_0x5e01f3),_0x72d446[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x5cd4f8=>{_0x5cd4f8!=_0x2b7189([0x56,0x61,0x6c,0x69,0x64])&&_0x1bac1c(_0x5cd4f8);},_0x5e01f3);}):_0x1605ae||_0x72d446||_0x2b7189([0x56,0x61,0x6c,0x69,0x64]);}}function _0x416a9c(_0x2f2b86,_0x5d26fe){return new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26dce4=>{if(_0x3ca122())return _0x26dce4(_0x2b7189([0x56,0x61,0x6c,0x69,0x64]));_0x154697(),_0x479c4c[_0x2b7189([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b7189([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17e98f=!0x1;const _0x5d834a=_0x4a600b();function _0x1c4ec4(_0x151e85){return!!_0x151e85&&(typeof _0x151e85===_0x2b7189([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x151e85===_0x2b7189([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x151e85[_0x2b7189([0x74,0x68,0x65,0x6e])]===_0x2b7189([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x151e85[_0x2b7189([0x63,0x61,0x74,0x63,0x68])]===_0x2b7189([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17b0a7(_0x4bab29){_0x4146f4(_0x4bab29)[_0x2b7189([0x74,0x68,0x65,0x6e])](_0xbace89=>{if(!_0xbace89||_0xbace89[_0x2b7189([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b7189([0x6f,0x6b]))return _0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3394fe(_0x1c5310(_0x5d834a+_0x5d26fe))!=_0xbace89[_0x2b7189([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7189([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x39cb0d=>(_0x2bba7e(),_0x39cb0d),()=>{const _0x37a9e0=_0x4ff652();return null==_0x37a9e0?(_0x2bba7e(),_0x2b7189([0x56,0x61,0x6c,0x69,0x64])):_0x2b7189(_0x2293c2-_0x37a9e0>(0x7753083a^_0x29d815)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x26dce4)[_0x2b7189([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26dce4(_0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c0e0f=0x536962ba^_0x29d815;function _0x2bba7e(){const _0x5203be=_0x2b7189([0x6c,0x6c,0x63,0x74,0x2d])+_0x3394fe(_0x1c5310(_0x2f2b86)),_0x352d97=_0x39e0de(_0x3394fe(window[_0x2b7189([0x4d,0x61,0x74,0x68])][_0x2b7189([0x63,0x65,0x69,0x6c])](_0x2293c2/_0x3c0e0f)));window[_0x2b7189([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7189([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5203be,_0x352d97);}function _0x4ff652(){const _0x109019=_0x2b7189([0x6c,0x6c,0x63,0x74,0x2d])+_0x3394fe(_0x1c5310(_0x2f2b86)),_0x2963c3=window[_0x2b7189([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7189([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x109019);return _0x2963c3?window[_0x2b7189([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39e0de(_0x2963c3),0x10)*_0x3c0e0f:null;}function _0x4146f4(_0x54c804){return new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b9c2f,_0x30137a)=>{_0x54c804[_0x2b7189([0x74,0x68,0x65,0x6e])](_0x5b9c2f,_0x30137a),window[_0x2b7189([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30137a,0x535e58fa^_0x29d815);});}}_0x479c4c[_0x2b7189([0x6f,0x6e])](_0x2b7189([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42d54b,_0x122f95)=>{if(_0x122f95[0x0]!=_0x2f2b86)return _0x26dce4(_0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x122f95[0x1]={..._0x122f95[0x1],[_0x2b7189([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d834a};},{[_0x2b7189([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7189([0x68,0x69,0x67,0x68])}),_0x479c4c[_0x2b7189([0x6f,0x6e])](_0x2b7189([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19dd4b=>{_0x1c4ec4(_0x19dd4b[_0x2b7189([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17e98f=!0x0,_0x17b0a7(_0x19dd4b[_0x2b7189([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b7189([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7189([0x6c,0x6f,0x77])}),_0x127484[_0x2b7189([0x74,0x68,0x65,0x6e])](()=>{_0x17e98f||_0x26dce4(_0x2b7189([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ca122(){return _0x479c4c[_0x2b7189([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7189([0x76,0x69,0x65,0x77])][_0x2b7189([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b7189([0x61,0x75,0x74,0x6f]);}function _0x154697(){_0x479c4c[_0x2b7189([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7189([0x76,0x69,0x65,0x77])][_0x2b7189([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b7189([0x61,0x75,0x74,0x6f]);}}function _0x1881a3(_0xd23cd2){const _0x11ef84=[new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b4804=>setTimeout(_0x5b4804,0x5356b2f6^_0x29d815)),_0x127484[_0x2b7189([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17d780=>{let _0x2d1b7e=0x0;_0x479c4c[_0x2b7189([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7189([0x6f,0x6e])](_0x2b7189([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x476071,_0x514b52)=>{_0x514b52[0x0][_0x2b7189([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d1b7e++,_0x2d1b7e==(0x535f89d2^_0x29d815)&&(_0x17d780(),_0x476071[_0x2b7189([0x6f,0x66,0x66])]());});}))];return window[_0x2b7189([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b7189([0x72,0x61,0x63,0x65])](_0x11ef84)[_0x2b7189([0x74,0x68,0x65,0x6e])](()=>_0xd23cd2);}async function _0x3656bd(){await _0x127484,_0x479c4c[_0x2b7189([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7189([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d3259,_0x479c4c[_0x2b7189([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7189([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d3259,_0x479c4c[_0x2b7189([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b7189([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f26a2(_0x2bc953){const _0x5eedd1=_0x3cc95d();_0x479c4c[_0x5eedd1]=_0x2b7189([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2bc953,_0x2bc953!=_0x2b7189([0x56,0x61,0x6c,0x69,0x64])&&_0x3656bd();}function _0x3cc95d(){const _0x34c3bc=window[_0x2b7189([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b7189([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b7189([0x6e,0x6f,0x77])]())[_0x2b7189([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b7189([0x2e]),'');let _0xdb9230=_0x2b7189([0x68]);for(let _0x29cb5c=0x0;_0x29cb5c<_0x34c3bc[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29cb5c+=0x2){let _0x55df26=window[_0x2b7189([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34c3bc[_0x2b7189([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29cb5c,_0x29cb5c+0x2));_0x55df26>=_0x1845a7[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55df26-=_0x1845a7[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdb9230+=_0x1845a7[_0x55df26];}return _0xdb9230;}function _0x614873(){const _0x225608=_0x4095d7[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])](_0x2b7189([0x2e]));if(0x3!=_0x225608[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x593e33(_0x225608[0x1]);function _0x593e33(_0x549e2c){const _0x5d88a9=_0x4e4911(_0x549e2c);return _0x5d88a9&&_0x4ee4fd()?_0x5d88a9:null;function _0x4ee4fd(){const _0x336512=_0x5d88a9[_0x2b7189([0x6a,0x74,0x69])],_0x4d1910=window[_0x2b7189([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x336512[_0x2b7189([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x336512[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf99d4a={..._0x5d88a9,[_0x2b7189([0x6a,0x74,0x69])]:_0x336512[_0x2b7189([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x336512[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf99d4a[_0x2b7189([0x76,0x63])],_0x1c5310(_0xf99d4a)==_0x4d1910;}}}async function _0x332560(){let _0x13ad93=!0x0;try{const _0x55b09c=_0x4095d7[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])](_0x2b7189([0x2e])),[_0x397d98,_0x4a10ff,_0x22eca3]=_0x55b09c;return _0x4f51b2(_0x397d98),await _0x99ca6b(_0x397d98,_0x4a10ff,_0x22eca3),_0x13ad93;}catch{return!0x1;}function _0x4f51b2(_0x1d41a3){const _0x26c011=_0x4e4911(_0x1d41a3);_0x26c011&&_0x26c011[_0x2b7189([0x61,0x6c,0x67])]==_0x2b7189([0x45,0x53,0x32,0x35,0x36])||(_0x13ad93=!0x1);}async function _0x99ca6b(_0x224af6,_0x1c5f6f,_0x3a9214){const _0x517636=window[_0x2b7189([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b7189([0x66,0x72,0x6f,0x6d])](_0x142456(_0x3a9214),_0x56836c=>_0x56836c[_0x2b7189([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7011c7=new window[(_0x2b7189([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b7189([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x224af6+_0x2b7189([0x2e])+_0x1c5f6f),_0x411beb=window[_0x2b7189([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b7189([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x411beb)return;const _0x6dbb85=await _0x411beb[_0x2b7189([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b7189([0x6a,0x77,0x6b]),_0x1fc155,{[_0x2b7189([0x6e,0x61,0x6d,0x65])]:_0x2b7189([0x45,0x43,0x44,0x53,0x41]),[_0x2b7189([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b7189([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b7189([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x411beb[_0x2b7189([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b7189([0x6e,0x61,0x6d,0x65])]:_0x2b7189([0x45,0x43,0x44,0x53,0x41]),[_0x2b7189([0x68,0x61,0x73,0x68])]:{[_0x2b7189([0x6e,0x61,0x6d,0x65])]:_0x2b7189([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6dbb85,_0x517636,_0x7011c7)||(_0x13ad93=!0x1);}}function _0x4e4911(_0x434beb){return _0x434beb[_0x2b7189([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b7189([0x65,0x79]))?JSON[_0x2b7189([0x70,0x61,0x72,0x73,0x65])](_0x142456(_0x434beb)):null;}function _0x142456(_0x61acea){return window[_0x2b7189([0x61,0x74,0x6f,0x62])](_0x61acea[_0x2b7189([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b7189([0x2b]))[_0x2b7189([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b7189([0x2f])));}function _0x1c5310(_0x496856){let _0xcf4197=0x1505;function _0x5f4025(_0x132972){for(let _0x295a49=0x0;_0x295a49<_0x132972[_0x2b7189([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x295a49++){const _0x491887=_0x132972[_0x2b7189([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x295a49);_0xcf4197=(_0xcf4197<<0x5)+_0xcf4197+_0x491887,_0xcf4197&=_0xcf4197;}}function _0x39ee40(_0x4bf865){Array[_0x2b7189([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bf865)?_0x4bf865[_0x2b7189([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39ee40):_0x4bf865&&typeof _0x4bf865==_0x2b7189([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b7189([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bf865)[_0x2b7189([0x73,0x6f,0x72,0x74])]()[_0x2b7189([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16abc6,_0x52fdf4])=>{_0x5f4025(_0x16abc6),_0x39ee40(_0x52fdf4);}):_0x5f4025(window[_0x2b7189([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bf865));}return _0x39ee40(_0x496856),_0xcf4197>>>0x0;}function _0x3394fe(_0x59bf79){return _0x59bf79[_0x2b7189([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b7189([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b7189([0x30]));}function _0x39e0de(_0x1b0183){return _0x1b0183[_0x2b7189([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b7189([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b7189([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d3259(){}function _0x2b7189(_0x3dfe4e){const _0x12e708=_0x5257;return _0x3dfe4e[_0x12e708(0x1da)](_0x3cf4f7=>String[_0x12e708(0x1e1)](_0x3cf4f7))[_0x12e708(0x209)]('');}_0x1f26a2(await _0x1636b3());}(this);}[_0xfb1053(0x1ed)](){const _0x53fd6b=_0xfb1053,_0x32b104=this[_0x53fd6b(0x20e)][_0x53fd6b(0x202)][_0x53fd6b(0x207)];_0x32b104[_0x53fd6b(0x1e9)](_0x53fd6b(0x215))&&_0x32b104[_0x53fd6b(0x1f0)](_0x53fd6b(0x215),{'allowAttributes':[_0x53fd6b(0x1d4)]}),_0x32b104[_0x53fd6b(0x1e9)](_0x53fd6b(0x1d9))&&_0x32b104[_0x53fd6b(0x1f0)](_0x53fd6b(0x1d9),{'allowAttributes':[_0x53fd6b(0x1d4)]});}[_0xfb1053(0x1e0)](){const _0x3f3150=_0xfb1053,_0x4f853f=this[_0x3f3150(0x20e)];_0x4f853f[_0x3f3150(0x1cc)][_0x3f3150(0x1f6)](_0x3f3150(0x20c))[_0x3f3150(0x20f)]({'model':_0x3f3150(0x1d4),'view':_0x3f3150(0x1c8)}),_0x4f853f[_0x3f3150(0x1cc)][_0x3f3150(0x1f6)](_0x3f3150(0x1de))[_0x3f3150(0x211)]({'model':{'key':_0x3f3150(0x1d4),'value':_0x56391a=>_0x56391a[_0x3f3150(0x1ff)](_0x3f3150(0x1c8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x23babc=_0x4f853f[_0x3f3150(0x205)][_0x3f3150(0x1d0)](_0x3f3150(0x1ce));_0x23babc&&this[_0x3f3150(0x1e2)](_0x23babc,_0x3f3150(0x1eb),(_0x152483,[_0x205f23,_0xd44d4d])=>{const _0x156a5e=_0x3f3150;_0x205f23[_0x156a5e(0x1db)](_0x156a5e(0x1d4),_0xd44d4d);});}[_0xfb1053(0x1f1)](){const _0x548fd2=_0xfb1053,_0x733f35=this[_0x548fd2(0x20e)][_0x548fd2(0x1cb)][_0x548fd2(0x1d0)](_0x548fd2(0x1e4))||{},_0x2f1f05=this[_0x548fd2(0x20e)][_0x548fd2(0x1cb)][_0x548fd2(0x1d0)](_0x548fd2(0x1f4))||'';this[_0x548fd2(0x212)]=_0x2e7ab8(_0x3b6cb3[_0x548fd2(0x1cf)],_0x548fd2(0x1ef),{..._0x733f35,'pubkey':_0x2f1f05,'ctx-name':_0x548fd2(0x216)+this[_0x548fd2(0x1fc)],'sourceList':'','imgOnly':_0x548fd2(0x206),'removeCopyright':_0x548fd2(0x206),'localeName':this[_0x548fd2(0x20e)][_0x548fd2(0x20d)][_0x548fd2(0x20a)],'externalSourcesEmbedCss':_0x548fd2(0x203)}),this[_0x548fd2(0x212)][_0x548fd2(0x1f9)]=_0x5be43f=>{const _0x13fd1c=_0x548fd2;if(_0x13fd1c(0x1e6)==_0x5be43f)return _0x13fd1c(0x1cd);},_0x3b6cb3[_0x548fd2(0x1cf)][_0x548fd2(0x1d1)][_0x548fd2(0x1ca)](this[_0x548fd2(0x212)]);}[_0xfb1053(0x1d6)](){const _0xe35143=_0xfb1053;this[_0xe35143(0x1d5)]=_0x2e7ab8(_0x3b6cb3[_0xe35143(0x1cf)],_0xe35143(0x1ee),{'ctx-name':_0xe35143(0x216)+this[_0xe35143(0x1fc)]}),_0x3b6cb3[_0xe35143(0x1cf)][_0xe35143(0x1d1)][_0xe35143(0x1ca)](this[_0xe35143(0x1d5)]);}[_0xfb1053(0x1f7)](){const _0x1bdb60=_0xfb1053,_0x5e7909=this[_0x1bdb60(0x20e)][_0x1bdb60(0x205)][_0x1bdb60(0x1d0)](_0x1bdb60(0x1df));_0x5e7909&&this[_0x1bdb60(0x1e2)](_0x5e7909,_0x1bdb60(0x1d7),()=>{const _0x695351=_0x1bdb60,_0x39d7bf=this[_0x695351(0x20e)][_0x695351(0x202)][_0x695351(0x1cf)][_0x695351(0x1f8)][_0x695351(0x1f3)]();_0x39d7bf&&_0x39d7bf[_0x695351(0x1ff)](_0x695351(0x1d4))&&this[_0x695351(0x20e)][_0x695351(0x1e3)][_0x695351(0x1fe)][_0x695351(0x1dc)](_0x695351(0x1f2),()=>{const _0x3353a3=_0x695351;_0x596c78(this[_0x3353a3(0x20e)],_0x39d7bf);});});const _0x393efb=this[_0x1bdb60(0x20e)][_0x1bdb60(0x205)][_0x1bdb60(0x1d0)](_0x1bdb60(0x218));_0x393efb&&this[_0x1bdb60(0x1e2)](_0x393efb,_0x1bdb60(0x1d7),()=>{const _0x5988a0=_0x1bdb60,_0x340dc8=this[_0x5988a0(0x20e)][_0x5988a0(0x202)][_0x5988a0(0x1cf)][_0x5988a0(0x1f8)][_0x5988a0(0x1f3)]();_0x340dc8&&_0x340dc8[_0x5988a0(0x1ff)](_0x5988a0(0x1d4))&&this[_0x5988a0(0x20e)][_0x5988a0(0x1e3)][_0x5988a0(0x1fe)][_0x5988a0(0x1dc)](_0x5988a0(0x1f2),()=>{const _0xe84468=_0x5988a0;_0x596c78(this[_0xe84468(0x20e)],_0x340dc8);});});}}
@@ -1,24 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{global as _0x296288,ObservableMixin as _0x42dfe3}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x398df9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x35e479}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1bf95b}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x31e634}from'../../utils/uploadutils.js';import{getImageUrls as _0x3621f5,getImageDimension as _0x3eb8fa}from'../../utils/editingutils.js';import{isAncestor as _0x28c8b9}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x42dfe3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x49580f,_0x456ec7,_0x2d8b7e){super(),this['_editor']=_0x49580f,this['_dialog']=_0x456ec7,this['_imageElement']=_0x2d8b7e,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 _0x42db40=this['_imageElement'],_0x2e328f=_0x42db40['getAttribute']('uploadcareImageId'),_0x294d85=_0x42db40['getAttribute']('src');if(_0x2e328f)await this['_loadImageInfo'](_0x2e328f,_0x294d85);else{if(this['_imageCache']['has'](_0x294d85)){const _0x58d0ff=this['_imageCache']['get'](_0x294d85);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x58d0ff['url'],this['imageDimension']=_0x58d0ff['dimension'],this['imageId']=_0x58d0ff['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4f5323}=this['_editor'],t=_0x4f5323['t'],_0x2d2dd6=new _0x1bf95b(_0x4f5323,this['imageStatus'],this['_attributes']);_0x2d2dd6['bind']('status')['to'](this,'imageStatus'),_0x2d2dd6['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2d2dd6['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2d2dd6['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2d2dd6,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x35e479,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2d2dd6,'position':_0x398df9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2d2dd6['focus']();},'onHide':()=>{_0x2d2dd6['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xd9636f=>!_0x28c8b9(_0xd9636f,_0x2d2dd6['element'])}});}['_loadImageInfo'](_0x39ca2d,_0x3289ec){return _0x31e634['getInfo'](_0x39ca2d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4885ec=>{const {width:_0x316cfb,height:_0x3907ee}=_0x4885ec['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3289ec,this['imageDimension']={'width':_0x316cfb,'height':_0x3907ee},this['imageId']=_0x39ca2d;})['catch'](_0x406359=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x406359['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x313ca5,_0x44e478){return this['_getImageAsFile'](_0x313ca5)['then'](_0x58ed6d=>_0x31e634['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x44e478['signal'],'file':_0x58ed6d,'onProgress':_0x40bc87=>{_0x40bc87&&_0x40bc87['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x40bc87['value']));}}))['then'](_0x3bba5e=>{const {width:_0x4e5a73,height:_0x40da72}=_0x3bba5e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3bba5e['cdnUrl'],this['imageDimension']={'width':_0x4e5a73,'height':_0x40da72},this['imageId']=_0x3bba5e['uuid'],this['imageUploadProgress']=null;const _0xb79b0=_0x313ca5['getAttribute']('src');this['_imageCache']['set'](_0xb79b0,{'id':_0x3bba5e['uuid'],'url':_0x3bba5e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3d7122=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d7122['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xa275a9,_0x43de9d){_0xa275a9['on']('apply',(_0x4d255e,_0x2c7790)=>{this['_replaceImage'](_0x43de9d,_0x2c7790['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xa275a9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xa275a9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f5b85,_0x46fa88,_0x325dc5){const _0x17b53b=this['_editor'],{width:_0x401b1b,height:_0x5f49d0}=_0x3eb8fa(_0x46fa88,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5484f6,imageSources:_0x4a20fa}=_0x3621f5(_0x46fa88,_0x401b1b);_0x17b53b['model']['change'](_0x3eff2d=>{if('$graveyard'===_0x1f5b85['root']['rootName']){_0x17b53b['execute']('insertImage',{'imageType':_0x1f5b85['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f5b85['getAttributes']()),'uploadcareImageId':_0x325dc5,'src':_0x5484f6,'sources':_0x4a20fa,'width':_0x401b1b,'height':_0x5f49d0}});const _0x476757=_0x1f5b85['getChildren']();_0x1f5b85=_0x17b53b['model']['document']['selection']['getSelectedElement']();for(const _0x111097 of _0x476757)_0x3eff2d['append'](_0x3eff2d['cloneElement'](_0x111097),_0x1f5b85);}else _0x3eff2d['setSelection'](_0x1f5b85,'on'),_0x17b53b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f5b85['getAttributes']()),'uploadcareImageId':_0x325dc5,'src':_0x5484f6,'sources':_0x4a20fa,'width':_0x401b1b,'height':_0x5f49d0},_0x1f5b85);_0x3eff2d['setSelection'](_0x1f5b85,'on');});}async['_getImageAsFile'](_0x357dfe){const _0x6b8da3=_0x296288['window'],_0x2e9ec5=_0x296288['document']['location']['href'],_0x2578fb=new _0x6b8da3['URL'](_0x357dfe['getAttribute']('src'),_0x2e9ec5);if('data:'===_0x2578fb['protocol']){const _0x204180=_0x2578fb['href']['split'](','),_0x4b703b=_0x204180[0x0]['match'](/:(.*?);/)[0x1],_0x58f7b0=_0x4b703b['split']('/')[0x1],_0x221035=_0x6b8da3['atob'](_0x204180[_0x204180['length']-0x1]);let _0x511288=_0x221035['length'];const _0x542ae6=new _0x6b8da3['Uint8Array'](_0x511288);for(;_0x511288--;)_0x542ae6[_0x511288]=_0x221035['charCodeAt'](_0x511288);return new _0x6b8da3['File']([_0x542ae6],'image.'+_0x58f7b0,{'type':_0x4b703b});}const _0x185d3f=_0x2578fb['href']['split']('/'),_0xfb26ca=_0x185d3f[_0x185d3f['length']-0x1],_0x47e67c=_0xfb26ca['split']('.')[0x1];return _0x6b8da3['fetch'](_0x2578fb['href'])['then'](_0x32901f=>_0x32901f['clone']()['blob']())['then'](_0x50838a=>new _0x6b8da3['File']([_0x50838a],_0xfb26ca,{'type':'image/'+_0x47e67c}));}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- function _0x4438(){const _0x1fca4a=['55231uZoIrX','uc-cloud-image-editor','2528818SCgqZl','1NGgXeW','4345960KbATfd','ck-uploadcare-theme','1718202CEKbLo','175YzXRrc','setTemplate','2616gqhCKE','21EATLXh','image-edit','bindTemplate','imageSrc','529365WEjORs','146444IKIifi','uc-light','684iukMqJ','set','140320VuXGde'];_0x4438=function(){return _0x1fca4a;};return _0x4438();}function _0x4792(_0x29db09,_0xdfa2c7){const _0x443834=_0x4438();return _0x4792=function(_0x4792af,_0x13a305){_0x4792af=_0x4792af-0x15e;let _0x233888=_0x443834[_0x4792af];return _0x233888;},_0x4792(_0x29db09,_0xdfa2c7);}(function(_0x44077e,_0x3ad604){const _0x1a057d=_0x4792,_0x20cc0d=_0x44077e();while(!![]){try{const _0x22715a=parseInt(_0x1a057d(0x165))/0x1*(parseInt(_0x1a057d(0x164))/0x2)+parseInt(_0x1a057d(0x170))/0x3+-parseInt(_0x1a057d(0x171))/0x4*(-parseInt(_0x1a057d(0x169))/0x5)+-parseInt(_0x1a057d(0x168))/0x6*(-parseInt(_0x1a057d(0x16c))/0x7)+-parseInt(_0x1a057d(0x166))/0x8+-parseInt(_0x1a057d(0x15f))/0x9*(parseInt(_0x1a057d(0x161))/0xa)+-parseInt(_0x1a057d(0x162))/0xb*(parseInt(_0x1a057d(0x16b))/0xc);if(_0x22715a===_0x3ad604)break;else _0x20cc0d['push'](_0x20cc0d['shift']());}catch(_0x446c85){_0x20cc0d['push'](_0x20cc0d['shift']());}}}(_0x4438,0xd6227));import{View as _0x1ce3d5}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x1ce3d5{constructor(_0x30d317,_0x3d7f38){const _0x230262=_0x4792;super(_0x30d317);const _0x6baef=this[_0x230262(0x16e)];this[_0x230262(0x160)](_0x230262(0x16f),''),this[_0x230262(0x16a)]({'tag':_0x230262(0x163),'attributes':{..._0x3d7f38,'class':[_0x230262(0x15e),_0x230262(0x167)],'ctx-name':_0x230262(0x16d),'cdn-url':_0x6baef['to'](_0x230262(0x16f))}});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{IconError as _0x3388b2}from'ckeditor5/src/icons.js';import{ButtonView as _0x12bb9,IconView as _0x51955d,View as _0x5ffcac}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5ffcac{constructor(_0x549aef){super(_0x549aef);const t=_0x549aef['t'];this['set']('errorType',null);const _0x4f0e2c=new _0x12bb9(_0x549aef);_0x4f0e2c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4f0e2c['withText']=!0x0,_0x4f0e2c['class']='ck-button-action',_0x4f0e2c['on']('execute',()=>{this['fire']('retry');}),_0x4f0e2c['bind']('isVisible')['to'](this,'errorType',_0x222cef=>'NotFound'!==_0x222cef);const _0x150522=new _0x51955d();_0x150522['content']=_0x3388b2,_0x150522['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2a3e6f=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':[_0x150522,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2a3e6f['to']('errorType',_0x16f361=>t('NotFound'!==_0x16f361?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4f0e2c]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{SpinnerView as _0x333836,View as _0x2a8306}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x2a8306{constructor(_0x838ab8){super(_0x838ab8);const t=_0x838ab8['t'],_0x1ddfe5=this['bindTemplate'],_0x1bb437=new _0x333836();_0x1bb437['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':[_0x1bb437,{'text':_0x1ddfe5['to']('imageUploadProgress',_0x29df1d=>t('Loading\x20image...')+'\x20('+(_0x29df1d||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x4e9f49=_0x25ec;function _0x25ec(_0x37aa45,_0x1c8dd7){const _0x50f8a1=_0x50f8();return _0x25ec=function(_0x25ecc7,_0x30efc4){_0x25ecc7=_0x25ecc7-0x143;let _0x1abd62=_0x50f8a1[_0x25ecc7];return _0x1abd62;},_0x25ec(_0x37aa45,_0x1c8dd7);}(function(_0xd391c3,_0x2af6c2){const _0x5d2f16=_0x25ec,_0xfa9a53=_0xd391c3();while(!![]){try{const _0x5b35d0=parseInt(_0x5d2f16(0x154))/0x1*(-parseInt(_0x5d2f16(0x165))/0x2)+-parseInt(_0x5d2f16(0x14b))/0x3+-parseInt(_0x5d2f16(0x161))/0x4+parseInt(_0x5d2f16(0x147))/0x5*(parseInt(_0x5d2f16(0x172))/0x6)+parseInt(_0x5d2f16(0x14d))/0x7+parseInt(_0x5d2f16(0x155))/0x8+parseInt(_0x5d2f16(0x14a))/0x9*(parseInt(_0x5d2f16(0x15d))/0xa);if(_0x5b35d0===_0x2af6c2)break;else _0xfa9a53['push'](_0xfa9a53['shift']());}catch(_0x1c1e1c){_0xfa9a53['push'](_0xfa9a53['shift']());}}}(_0x50f8,0xeca01));import{View as _0x2d9830}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x297b0a}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3b59eb}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x504cc5}from'./uploadcareimageeditformeditingview.js';function _0x50f8(){const _0x25180a=['length','div','6544413hPlUhP','1868955tghKmo','_setView','1406377WOKsti','retry','addEventListener','ck-reset_all-excluded','nodeName','ck-uploadcare-form','setTemplate','2QbDwuQ','9085192WsywlG','uploading','_addErrorViewListeners','clear','cdnUrl','_loadingView','addMany','render','10ZXaXhk','filter','_addUploadcareImageEditorListeners','target','3139048CaUYkz','disconnect','_waitForImageEditorComponent','toLowerCase','1284208viadbV','createCollection','querySelector','apply','focus','_errorView','cancel','add','ready','_editingView','set','_focusableView','detail','30AgSxMG','addedNodes','error','change:status','fire','getFocusableElement','element','status','uc-cloud-image-editor','observe','_items','once','1597455ufNDeY'];_0x50f8=function(){return _0x25180a;};return _0x50f8();}import{DialogFocusManagerView as _0x220da9}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x220da9{[_0x4e9f49(0x145)];[_0x4e9f49(0x15a)];[_0x4e9f49(0x16a)];[_0x4e9f49(0x16e)];[_0x4e9f49(0x170)];constructor(_0x31aeea,_0x3cc21f,_0xfa3ff){const _0x48444a=_0x4e9f49;super(_0x31aeea),this[_0x48444a(0x145)]=this[_0x48444a(0x166)](),this[_0x48444a(0x15a)]=new _0x297b0a(_0x31aeea),this[_0x48444a(0x16a)]=new _0x3b59eb(_0x31aeea),this[_0x48444a(0x16e)]=new _0x504cc5(_0x31aeea,_0xfa3ff),this[_0x48444a(0x170)]=new _0x2d9830(_0x31aeea),this[_0x48444a(0x170)][_0x48444a(0x153)](this[_0x48444a(0x177)]()),this[_0x48444a(0x16f)](_0x48444a(0x179),_0x3cc21f),this[_0x48444a(0x153)]({'tag':_0x48444a(0x149),'attributes':{'class':['ck',_0x48444a(0x150),_0x48444a(0x152)],'tabindex':'-1'},'children':this[_0x48444a(0x145)]}),this[_0x48444a(0x14c)](),this[_0x48444a(0x146)](_0x48444a(0x15c),()=>{const _0x22560d=_0x48444a;this[_0x22560d(0x163)](this[_0x22560d(0x178)],_0x4972e7=>{const _0x3e7acf=_0x22560d;this[_0x3e7acf(0x15f)](_0x4972e7);});}),this['on'](_0x48444a(0x175),()=>{const _0x2fac38=_0x48444a;this[_0x2fac38(0x14c)]();}),this[_0x48444a(0x157)]();}[_0x4e9f49(0x169)](){const _0x5cdca2=_0x4e9f49;this[_0x5cdca2(0x178)][_0x5cdca2(0x169)]();}[_0x4e9f49(0x14c)](){const _0x21f43b=_0x4e9f49;switch(this[_0x21f43b(0x145)][_0x21f43b(0x158)](),this[_0x21f43b(0x179)]){case _0x21f43b(0x156):this[_0x21f43b(0x145)][_0x21f43b(0x16c)](this[_0x21f43b(0x15a)]);break;case _0x21f43b(0x174):this[_0x21f43b(0x145)][_0x21f43b(0x16c)](this[_0x21f43b(0x16a)]);break;case _0x21f43b(0x16d):this[_0x21f43b(0x145)][_0x21f43b(0x15b)]([this[_0x21f43b(0x16e)],this[_0x21f43b(0x170)]]);}}[_0x4e9f49(0x163)](_0x256f00,_0x2ff894){const _0x487b1a=_0x4e9f49,_0x39a398=_0x487b1a(0x143),_0x4a18b7=_0x256f00[_0x487b1a(0x167)](_0x39a398);if(_0x4a18b7)return _0x2ff894(_0x4a18b7);const _0x315221=new MutationObserver(_0x3fb293=>{const _0x25bd7e=_0x487b1a,_0x50ede7=_0x3fb293[_0x25bd7e(0x15e)](_0x18fdb3=>_0x18fdb3[_0x25bd7e(0x160)]===_0x256f00&&_0x18fdb3[_0x25bd7e(0x173)][_0x25bd7e(0x148)]>0x0&&_0x18fdb3[_0x25bd7e(0x173)][0x0][_0x25bd7e(0x151)][_0x25bd7e(0x164)]()===_0x39a398);_0x50ede7[_0x25bd7e(0x148)]&&(_0x315221[_0x25bd7e(0x162)](),_0x2ff894(_0x50ede7[0x0][_0x25bd7e(0x173)][0x0]));});_0x315221[_0x487b1a(0x144)](_0x256f00,{'childList':!0x0,'subtree':!0x0});}[_0x4e9f49(0x15f)](_0x4dbd69){const _0x1285a8=_0x4e9f49;_0x4dbd69[_0x1285a8(0x14f)](_0x1285a8(0x168),_0x5a040c=>{const _0x238017=_0x1285a8;this[_0x238017(0x176)](_0x238017(0x168),{'imageSrc':_0x5a040c[_0x238017(0x171)][_0x238017(0x159)]});}),_0x4dbd69[_0x1285a8(0x14f)](_0x1285a8(0x16b),()=>{const _0x276911=_0x1285a8;this[_0x276911(0x176)](_0x276911(0x16b));});}[_0x4e9f49(0x157)](){const _0x2fce72=_0x4e9f49;this[_0x2fce72(0x16a)]['on'](_0x2fce72(0x14e),()=>{const _0x1b1168=_0x2fce72;this[_0x1b1168(0x176)](_0x1b1168(0x14e));});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x524e78=_0xe4a7;(function(_0x2e2b18,_0x4525af){const _0xc6b011=_0xe4a7,_0x150d19=_0x2e2b18();while(!![]){try{const _0x4b2247=parseInt(_0xc6b011(0xe9))/0x1+parseInt(_0xc6b011(0xca))/0x2*(parseInt(_0xc6b011(0xe7))/0x3)+parseInt(_0xc6b011(0xde))/0x4*(-parseInt(_0xc6b011(0xd4))/0x5)+-parseInt(_0xc6b011(0xe3))/0x6*(parseInt(_0xc6b011(0xd0))/0x7)+parseInt(_0xc6b011(0xce))/0x8+parseInt(_0xc6b011(0xe1))/0x9+parseInt(_0xc6b011(0xcd))/0xa;if(_0x4b2247===_0x4525af)break;else _0x150d19['push'](_0x150d19['shift']());}catch(_0x1ab236){_0x150d19['push'](_0x150d19['shift']());}}}(_0x5714,0x52c69));function _0x5714(){const _0x2bb653=['isEnabled','42XLimFY','model','selection','isActive','792635avEXjC','refresh','element','imageEditController','bind','unbind','execute','getSelectedElement','document','_isEditable','16ChoFMc','imageBlock','requires','254943YuRLtz','editor','406104zQnGIn','imageInline','config','uploadcare.allowExternalImagesEditing','99TsEisZ','set','444995DySGtV','15706cIxEel','plugins','get','1050190qYWTjs','4334168SxHJUn'];_0x5714=function(){return _0x2bb653;};return _0x5714();}import{Command as _0x589469}from'ckeditor5/src/core.js';import{Dialog as _0xfe9443}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x54c367}from'./ui/uploadcareimageeditcontroller.js';function _0xe4a7(_0x584911,_0x2d1944){const _0x5714bd=_0x5714();return _0xe4a7=function(_0xe4a73b,_0x5e7a6f){_0xe4a73b=_0xe4a73b-0xca;let _0x19e1b5=_0x5714bd[_0xe4a73b];return _0x19e1b5;},_0xe4a7(_0x584911,_0x2d1944);}import{createEditabilityChecker as _0x38c0ac}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x589469{[_0x524e78(0xd7)];static get[_0x524e78(0xe0)](){return[_0xfe9443];}[_0x524e78(0xdd)];constructor(_0x52693a){const _0x31d62e=_0x524e78;super(_0x52693a),this[_0x31d62e(0xd7)]=void 0x0,this[_0x31d62e(0xdd)]=_0x38c0ac(_0x52693a[_0x31d62e(0xe5)][_0x31d62e(0xcc)](_0x31d62e(0xe6))||[]),this[_0x31d62e(0xe8)]({'isActive':!0x1});}[_0x524e78(0xd5)](){const _0x37863e=_0x524e78,_0x4a19ff=this[_0x37863e(0xe2)][_0x37863e(0xd1)][_0x37863e(0xdc)][_0x37863e(0xd2)][_0x37863e(0xdb)]();this[_0x37863e(0xcf)]=this[_0x37863e(0xdd)](_0x4a19ff);}[_0x524e78(0xda)](){const _0x40a3c6=_0x524e78;this[_0x40a3c6(0xd7)]&&(this[_0x40a3c6(0xd9)](_0x40a3c6(0xd3)),this[_0x40a3c6(0xd7)]=void 0x0);const _0x9b20f2=this[_0x40a3c6(0xe2)][_0x40a3c6(0xd1)][_0x40a3c6(0xdc)][_0x40a3c6(0xd2)][_0x40a3c6(0xdb)]();_0x9b20f2&&(_0x9b20f2['is'](_0x40a3c6(0xd6),_0x40a3c6(0xdf))||_0x9b20f2['is'](_0x40a3c6(0xd6),_0x40a3c6(0xe4)))&&(this[_0x40a3c6(0xd7)]=new _0x54c367(this[_0x40a3c6(0xe2)],this[_0x40a3c6(0xe2)][_0x40a3c6(0xcb)][_0x40a3c6(0xcc)](_0xfe9443),_0x9b20f2),this[_0x40a3c6(0xd8)](_0x40a3c6(0xd3))['to'](this[_0x40a3c6(0xd7)],_0x40a3c6(0xd3)));}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- function _0x30bd(_0x4a5e02,_0x1a3cb8){const _0x24f361=_0x24f3();return _0x30bd=function(_0x30bdae,_0x2a602d){_0x30bdae=_0x30bdae-0x1f2;let _0x4beaa3=_0x24f361[_0x30bdae];return _0x4beaa3;},_0x30bd(_0x4a5e02,_0x1a3cb8);}function _0x24f3(){const _0x392a60=['1152PeqnME','461534DdCfWs','init','36278ZqwSOH','commands','ImageEditing','6176bxKtwu','add','uploadcareImageEdit','1179rSMJPe','ImageUtils','75410fpQLGF','99eaLcur','3jKSsea','isPremiumPlugin','24128XOhrvL','uploadcareImageReplace','5135uLCaVL','isOfficialPlugin','pluginName','UploadcareImageEditEditing','requires','1300180yPAGKT'];_0x24f3=function(){return _0x392a60;};return _0x24f3();}const _0x3d5f4f=_0x30bd;(function(_0x3c46b4,_0x21066d){const _0x3c1bcc=_0x30bd,_0x3b4018=_0x3c46b4();while(!![]){try{const _0x30b601=-parseInt(_0x3c1bcc(0x207))/0x1+parseInt(_0x3c1bcc(0x205))/0x2+-parseInt(_0x3c1bcc(0x1fa))/0x3*(-parseInt(_0x3c1bcc(0x1fc))/0x4)+parseInt(_0x3c1bcc(0x1fe))/0x5*(parseInt(_0x3c1bcc(0x204))/0x6)+-parseInt(_0x3c1bcc(0x203))/0x7+-parseInt(_0x3c1bcc(0x1f3))/0x8*(parseInt(_0x3c1bcc(0x1f6))/0x9)+-parseInt(_0x3c1bcc(0x1f8))/0xa*(-parseInt(_0x3c1bcc(0x1f9))/0xb);if(_0x30b601===_0x21066d)break;else _0x3b4018['push'](_0x3b4018['shift']());}catch(_0x4da1d8){_0x3b4018['push'](_0x3b4018['shift']());}}}(_0x24f3,0x2ba0e));import{Plugin as _0x193a69}from'ckeditor5/src/core.js';import{Notification as _0x587723}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1ce401}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2ab9d2}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2f9ef6}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x193a69{static get[_0x3d5f4f(0x200)](){const _0x4cf9f3=_0x3d5f4f;return _0x4cf9f3(0x201);}static get[_0x3d5f4f(0x202)](){const _0x322320=_0x3d5f4f;return[_0x2f9ef6,_0x587723,_0x322320(0x1f7),_0x322320(0x1f2)];}static get[_0x3d5f4f(0x1ff)](){return!0x0;}static get[_0x3d5f4f(0x1fb)](){return!0x0;}[_0x3d5f4f(0x206)](){const _0x418647=_0x3d5f4f,{editor:_0x11f39e}=this;_0x11f39e[_0x418647(0x208)][_0x418647(0x1f4)](_0x418647(0x1f5),new _0x1ce401(_0x11f39e)),_0x11f39e[_0x418647(0x208)][_0x418647(0x1f4)](_0x418647(0x1fd),new _0x2ab9d2(_0x11f39e));}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{Plugin as _0x32289d}from'ckeditor5/src/core.js';import{ButtonView as _0x12b693}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x459017}from'ckeditor5/src/icons.js';import{createElement as _0x459dbb}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x32289d{['_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 _0x187b66=this['editor'];_0x187b66['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2b6101=>{const _0x232705=_0x187b66['commands']['get']('uploadcareImageEdit'),_0x3500e1=new _0x12b693(_0x2b6101),t=_0x2b6101['t'];return _0x3500e1['set']({'icon':_0x459017,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3500e1['bind']('isEnabled')['to'](_0x232705),_0x3500e1['bind']('isOn')['to'](_0x232705,'isActive'),this['listenTo'](_0x3500e1,'execute',()=>{_0x187b66['execute']('uploadcareImageEdit'),_0x187b66['editing']['view']['focus']();}),_0x3500e1;}),this['_initConfig']();}['_initConfig'](){const _0x2a41df=_0x459dbb(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2a41df),this['listenTo'](this['editor'],'destroy',()=>{_0x2a41df['remove']();});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- function _0x3d8e(){const _0x45ac60=['document','213BbQNgX','1372728YCbVpH','10742CVIiSk','sizes','getSelectedElement','isEnabled','76530VFtBiO','setAttributes','707028lGApJR','4700766Cfotis','removeAttribute','2704270jozPOY','refresh','424ckZnmX','execute','element','model','selection','imageBlock','change','1476Vnlzwo','160727BgyOca','imageInline','srcset','editor'];_0x3d8e=function(){return _0x45ac60;};return _0x3d8e();}const _0x20399e=_0x4373;(function(_0x375791,_0x162bfa){const _0x469344=_0x4373,_0x3d8bc4=_0x375791();while(!![]){try{const _0x3ab5ab=parseInt(_0x469344(0xfb))/0x1*(-parseInt(_0x469344(0xfd))/0x2)+parseInt(_0x469344(0xea))/0x3+parseInt(_0x469344(0x103))/0x4+parseInt(_0x469344(0xec))/0x5+-parseInt(_0x469344(0xfc))/0x6+-parseInt(_0x469344(0xf6))/0x7*(-parseInt(_0x469344(0xee))/0x8)+-parseInt(_0x469344(0xf5))/0x9*(parseInt(_0x469344(0x101))/0xa);if(_0x3ab5ab===_0x162bfa)break;else _0x3d8bc4['push'](_0x3d8bc4['shift']());}catch(_0x957dab){_0x3d8bc4['push'](_0x3d8bc4['shift']());}}}(_0x3d8e,0xd545b));function _0x4373(_0x2fcfa6,_0xef350d){const _0x3d8e40=_0x3d8e();return _0x4373=function(_0x4373f0,_0x3ac48a){_0x4373f0=_0x4373f0-0xea;let _0x4aa98b=_0x3d8e40[_0x4373f0];return _0x4aa98b;},_0x4373(_0x2fcfa6,_0xef350d);}import{Command as _0x59e7ad}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x59e7ad{[_0x20399e(0xed)](){const _0x3ac4d9=_0x20399e,_0x2df0d9=this[_0x3ac4d9(0xf9)][_0x3ac4d9(0xf1)][_0x3ac4d9(0xfa)][_0x3ac4d9(0xf2)][_0x3ac4d9(0xff)]();this[_0x3ac4d9(0x100)]=Boolean(_0x2df0d9&&(_0x2df0d9['is'](_0x3ac4d9(0xf0),_0x3ac4d9(0xf3))||_0x2df0d9['is'](_0x3ac4d9(0xf0),_0x3ac4d9(0xf7))));}[_0x20399e(0xef)](_0x570ff6){const _0x4930fb=_0x20399e,_0x13b04d=this[_0x4930fb(0xf9)][_0x4930fb(0xf1)][_0x4930fb(0xfa)][_0x4930fb(0xf2)][_0x4930fb(0xff)]();this[_0x4930fb(0xf9)][_0x4930fb(0xf1)][_0x4930fb(0xf4)](_0x36d7e6=>{const _0x17a9cf=_0x4930fb;_0x36d7e6[_0x17a9cf(0x102)](_0x570ff6,_0x13b04d),_0x36d7e6[_0x17a9cf(0xeb)](_0x17a9cf(0xf8),_0x13b04d),_0x36d7e6[_0x17a9cf(0xeb)](_0x17a9cf(0xfe),_0x13b04d);});}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- var _0x2cd504=_0x4e50;(function(_0x1b68cf,_0x2974d4){var _0x4f4a7b=_0x4e50,_0x33b348=_0x1b68cf();while(!![]){try{var _0x54db43=parseInt(_0x4f4a7b(0x1f6))/0x1+-parseInt(_0x4f4a7b(0x1fa))/0x2+-parseInt(_0x4f4a7b(0x1f4))/0x3*(parseInt(_0x4f4a7b(0x1fd))/0x4)+parseInt(_0x4f4a7b(0x1f7))/0x5*(parseInt(_0x4f4a7b(0x1f8))/0x6)+-parseInt(_0x4f4a7b(0x1f2))/0x7+-parseInt(_0x4f4a7b(0x1f5))/0x8*(-parseInt(_0x4f4a7b(0x1fe))/0x9)+parseInt(_0x4f4a7b(0x1f1))/0xa;if(_0x54db43===_0x2974d4)break;else _0x33b348['push'](_0x33b348['shift']());}catch(_0x480545){_0x33b348['push'](_0x33b348['shift']());}}}(_0x4cf9,0x68457));import{Plugin as _0x950f04}from'ckeditor5/src/core.js';function _0x4cf9(){var _0x3c9040=['pluginName','644932GZaTWC','2913903PXumAB','isOfficialPlugin','8225020HBhRsL','4829391JQBcHC','requires','3KYeuQh','8UjIvra','154635wWyAfQ','5nWyiow','1316868nLQlaH','UploadcareImageEdit','484282ZZqYEj','isPremiumPlugin'];_0x4cf9=function(){return _0x3c9040;};return _0x4cf9();}function _0x4e50(_0x4a383e,_0x16168c){var _0x4cf929=_0x4cf9();return _0x4e50=function(_0x4e50b0,_0x4f5b0c){_0x4e50b0=_0x4e50b0-0x1f1;var _0x59ae47=_0x4cf929[_0x4e50b0];return _0x59ae47;},_0x4e50(_0x4a383e,_0x16168c);}import{UploadcareImageEditEditing as _0xe29aab}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x283e6f}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x950f04{static get[_0x2cd504(0x1fc)](){var _0x3356a9=_0x2cd504;return _0x3356a9(0x1f9);}static get[_0x2cd504(0x1f3)](){return[_0xe29aab,_0x283e6f];}static get[_0x2cd504(0x1ff)](){return!0x0;}static get[_0x2cd504(0x1fb)](){return!0x0;}}