@ckeditor/ckeditor5-uploadcare 0.0.0-internal-20251210.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.
- package/CHANGELOG.md +6 -0
- package/LICENSE.md +22 -0
- package/README.md +47 -0
- package/build/translations/af.js +1 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/ast.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/be.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/eo.js +1 -0
- package/build/translations/es-co.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/eu.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/gu.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/hy.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/kk.js +1 -0
- package/build/translations/km.js +1 -0
- package/build/translations/kn.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nb.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/oc.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/si.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sq.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/ti.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/build/uploadcare.js +5 -0
- package/ckeditor5-metadata.json +47 -0
- package/dist/index-content.css +5 -0
- package/dist/index-editor.css +265 -0
- package/dist/index.css +315 -0
- package/dist/index.js +25 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/af.umd.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/ar.umd.js +23 -0
- package/dist/translations/ast.d.ts +8 -0
- package/dist/translations/ast.js +23 -0
- package/dist/translations/ast.umd.js +23 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +23 -0
- package/dist/translations/az.umd.js +23 -0
- package/dist/translations/be.d.ts +8 -0
- package/dist/translations/be.js +23 -0
- package/dist/translations/be.umd.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bg.umd.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bn.umd.js +23 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +23 -0
- package/dist/translations/bs.umd.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/ca.umd.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/cs.umd.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/da.umd.js +23 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +23 -0
- package/dist/translations/de-ch.umd.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/de.umd.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/el.umd.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-au.umd.js +23 -0
- package/dist/translations/en-gb.d.ts +8 -0
- package/dist/translations/en-gb.js +23 -0
- package/dist/translations/en-gb.umd.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/en.umd.js +23 -0
- package/dist/translations/eo.d.ts +8 -0
- package/dist/translations/eo.js +23 -0
- package/dist/translations/eo.umd.js +23 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es-co.umd.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/es.umd.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/et.umd.js +23 -0
- package/dist/translations/eu.d.ts +8 -0
- package/dist/translations/eu.js +23 -0
- package/dist/translations/eu.umd.js +23 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +23 -0
- package/dist/translations/fa.umd.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fi.umd.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/fr.umd.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/gl.umd.js +23 -0
- package/dist/translations/gu.d.ts +8 -0
- package/dist/translations/gu.js +23 -0
- package/dist/translations/gu.umd.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/he.umd.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hi.umd.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hr.umd.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/hu.umd.js +23 -0
- package/dist/translations/hy.d.ts +8 -0
- package/dist/translations/hy.js +23 -0
- package/dist/translations/hy.umd.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/id.umd.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/it.umd.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/ja.umd.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/jv.umd.js +23 -0
- package/dist/translations/kk.d.ts +8 -0
- package/dist/translations/kk.js +23 -0
- package/dist/translations/kk.umd.js +23 -0
- package/dist/translations/km.d.ts +8 -0
- package/dist/translations/km.js +23 -0
- package/dist/translations/km.umd.js +23 -0
- package/dist/translations/kn.d.ts +8 -0
- package/dist/translations/kn.js +23 -0
- package/dist/translations/kn.umd.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ko.umd.js +23 -0
- package/dist/translations/ku.d.ts +8 -0
- package/dist/translations/ku.js +23 -0
- package/dist/translations/ku.umd.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lt.umd.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/lv.umd.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ms.umd.js +23 -0
- package/dist/translations/nb.d.ts +8 -0
- package/dist/translations/nb.js +23 -0
- package/dist/translations/nb.umd.js +23 -0
- package/dist/translations/ne.d.ts +8 -0
- package/dist/translations/ne.js +23 -0
- package/dist/translations/ne.umd.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/nl.umd.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/no.umd.js +23 -0
- package/dist/translations/oc.d.ts +8 -0
- package/dist/translations/oc.js +23 -0
- package/dist/translations/oc.umd.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pl.umd.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt-br.umd.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/pt.umd.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ro.umd.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/ru.umd.js +23 -0
- package/dist/translations/si.d.ts +8 -0
- package/dist/translations/si.js +23 -0
- package/dist/translations/si.umd.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sk.umd.js +23 -0
- package/dist/translations/sl.d.ts +8 -0
- package/dist/translations/sl.js +23 -0
- package/dist/translations/sl.umd.js +23 -0
- package/dist/translations/sq.d.ts +8 -0
- package/dist/translations/sq.js +23 -0
- package/dist/translations/sq.umd.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr-latn.umd.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sr.umd.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/sv.umd.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/th.umd.js +23 -0
- package/dist/translations/ti.d.ts +8 -0
- package/dist/translations/ti.js +23 -0
- package/dist/translations/ti.umd.js +23 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +23 -0
- package/dist/translations/tk.umd.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tr.umd.js +23 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +23 -0
- package/dist/translations/tt.umd.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/ug.umd.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/uk.umd.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/ur.umd.js +23 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +23 -0
- package/dist/translations/uz.umd.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/vi.umd.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh-cn.umd.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/translations/zh.umd.js +23 -0
- package/lang/contexts.json +24 -0
- package/lang/translations/af.po +100 -0
- package/lang/translations/ar.po +100 -0
- package/lang/translations/ast.po +100 -0
- package/lang/translations/az.po +100 -0
- package/lang/translations/be.po +100 -0
- package/lang/translations/bg.po +100 -0
- package/lang/translations/bn.po +100 -0
- package/lang/translations/bs.po +100 -0
- package/lang/translations/ca.po +100 -0
- package/lang/translations/cs.po +100 -0
- package/lang/translations/da.po +100 -0
- package/lang/translations/de-ch.po +100 -0
- package/lang/translations/de.po +100 -0
- package/lang/translations/el.po +100 -0
- package/lang/translations/en-au.po +100 -0
- package/lang/translations/en-gb.po +100 -0
- package/lang/translations/en.po +100 -0
- package/lang/translations/eo.po +100 -0
- package/lang/translations/es-co.po +100 -0
- package/lang/translations/es.po +100 -0
- package/lang/translations/et.po +100 -0
- package/lang/translations/eu.po +100 -0
- package/lang/translations/fa.po +100 -0
- package/lang/translations/fi.po +100 -0
- package/lang/translations/fr.po +100 -0
- package/lang/translations/gl.po +100 -0
- package/lang/translations/gu.po +100 -0
- package/lang/translations/he.po +100 -0
- package/lang/translations/hi.po +100 -0
- package/lang/translations/hr.po +100 -0
- package/lang/translations/hu.po +100 -0
- package/lang/translations/hy.po +100 -0
- package/lang/translations/id.po +100 -0
- package/lang/translations/it.po +100 -0
- package/lang/translations/ja.po +100 -0
- package/lang/translations/jv.po +100 -0
- package/lang/translations/kk.po +100 -0
- package/lang/translations/km.po +100 -0
- package/lang/translations/kn.po +100 -0
- package/lang/translations/ko.po +100 -0
- package/lang/translations/ku.po +100 -0
- package/lang/translations/lt.po +100 -0
- package/lang/translations/lv.po +100 -0
- package/lang/translations/ms.po +100 -0
- package/lang/translations/nb.po +100 -0
- package/lang/translations/ne.po +100 -0
- package/lang/translations/nl.po +100 -0
- package/lang/translations/no.po +100 -0
- package/lang/translations/oc.po +100 -0
- package/lang/translations/pl.po +100 -0
- package/lang/translations/pt-br.po +100 -0
- package/lang/translations/pt.po +100 -0
- package/lang/translations/ro.po +100 -0
- package/lang/translations/ru.po +100 -0
- package/lang/translations/si.po +100 -0
- package/lang/translations/sk.po +100 -0
- package/lang/translations/sl.po +100 -0
- package/lang/translations/sq.po +100 -0
- package/lang/translations/sr-latn.po +100 -0
- package/lang/translations/sr.po +100 -0
- package/lang/translations/sv.po +100 -0
- package/lang/translations/th.po +100 -0
- package/lang/translations/ti.po +100 -0
- package/lang/translations/tk.po +100 -0
- package/lang/translations/tr.po +100 -0
- package/lang/translations/tt.po +100 -0
- package/lang/translations/ug.po +100 -0
- package/lang/translations/uk.po +100 -0
- package/lang/translations/ur.po +100 -0
- package/lang/translations/uz.po +100 -0
- package/lang/translations/vi.po +100 -0
- package/lang/translations/zh-cn.po +100 -0
- package/lang/translations/zh.po +100 -0
- package/package.json +81 -0
- package/src/augmentation.d.ts +30 -0
- package/src/augmentation.js +23 -0
- package/src/index.d.ts +18 -0
- package/src/index.js +23 -0
- package/src/ui/uploadcarecontroller.d.ts +26 -0
- package/src/ui/uploadcarecontroller.js +24 -0
- package/src/ui/uploadcareformview.d.ts +23 -0
- package/src/ui/uploadcareformview.js +23 -0
- package/src/uploadcare.d.ts +48 -0
- package/src/uploadcare.js +23 -0
- package/src/uploadcarecommand.d.ts +38 -0
- package/src/uploadcarecommand.js +23 -0
- package/src/uploadcareconfig.d.ts +280 -0
- package/src/uploadcareconfig.js +23 -0
- package/src/uploadcareediting.d.ts +59 -0
- package/src/uploadcareediting.js +23 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +78 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +24 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +25 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +23 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +24 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +23 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +24 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +23 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +32 -0
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +23 -0
- package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +49 -0
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +23 -0
- package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +38 -0
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +23 -0
- package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +47 -0
- package/src/uploadcareimageedit/uploadcareimageeditui.js +23 -0
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +23 -0
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +23 -0
- package/src/uploadcareimageedit.d.ts +32 -0
- package/src/uploadcareimageedit.js +23 -0
- package/src/uploadcareui.d.ts +41 -0
- package/src/uploadcareui.js +23 -0
- package/src/uploadcareuploadadapter.d.ts +39 -0
- package/src/uploadcareuploadadapter.js +23 -0
- package/src/utils/common-translations.d.ts +5 -0
- package/src/utils/common-translations.js +23 -0
- package/src/utils/dialogfocusmanagerview.d.ts +29 -0
- package/src/utils/dialogfocusmanagerview.js +23 -0
- package/src/utils/editingutils.d.ts +5 -0
- package/src/utils/editingutils.js +23 -0
- package/src/utils/isancestor.d.ts +8 -0
- package/src/utils/isancestor.js +23 -0
- package/src/utils/uploadutils.d.ts +5 -0
- package/src/utils/uploadutils.js +23 -0
- package/theme/uploadcare-form.css +198 -0
- package/theme/uploadcare-theme.css +20 -0
- package/theme/uploadcareimageedit.css +64 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x3680(){const _0xb822df=['34642XMflcr','requires','6441855QRradC','40yYRsMz','Uploadcare','config','locale','editor','8QMimFp','11SJfpTT','5AUiXGW','6705912fScueK','Local','get','contentLanguage','isPremiumPlugin','4256470pnZlxm','_defineLocale','uploadcare.uploader.sourceList','define','uploadcare.locale','7952442ScQVXu','defineComponents','1556595WRyXBh','8835608XDQrPM','URL','defineLocale','isOfficialPlugin','pluginName','27UwVBFe'];_0x3680=function(){return _0xb822df;};return _0x3680();}const _0x117292=_0xc5d2;function _0xc5d2(_0x282380,_0x468710){const _0x368069=_0x3680();return _0xc5d2=function(_0xc5d2ad,_0x11dfad){_0xc5d2ad=_0xc5d2ad-0x15d;let _0x285b75=_0x368069[_0xc5d2ad];return _0x285b75;},_0xc5d2(_0x282380,_0x468710);}(function(_0x45e1fc,_0x527bf0){const _0x37a1d4=_0xc5d2,_0x6f8f54=_0x45e1fc();while(!![]){try{const _0x3563b1=parseInt(_0x37a1d4(0x174))/0x1*(-parseInt(_0x37a1d4(0x171))/0x2)+parseInt(_0x37a1d4(0x16a))/0x3*(parseInt(_0x37a1d4(0x179))/0x4)+-parseInt(_0x37a1d4(0x15d))/0x5*(-parseInt(_0x37a1d4(0x168))/0x6)+parseInt(_0x37a1d4(0x173))/0x7+-parseInt(_0x37a1d4(0x16b))/0x8+parseInt(_0x37a1d4(0x170))/0x9*(-parseInt(_0x37a1d4(0x163))/0xa)+parseInt(_0x37a1d4(0x17a))/0xb*(parseInt(_0x37a1d4(0x15e))/0xc);if(_0x3563b1===_0x527bf0)break;else _0x6f8f54['push'](_0x6f8f54['shift']());}catch(_0x51f14e){_0x6f8f54['push'](_0x6f8f54['shift']());}}}(_0x3680,0xbb7fc));import{Plugin as _0x49de21}from'ckeditor5/src/core.js';import{UploadcareUI as _0x39520d}from'./uploadcareui.js';import{UploadcareEditing as _0x59fecb}from'./uploadcareediting.js';import{UploadcareSource as _0x2f0f41}from'./uploadcareconfig.js';import*as _0x592d65 from'@uploadcare/file-uploader';export class Uploadcare extends _0x49de21{static get[_0x117292(0x172)](){return[_0x59fecb,_0x39520d];}static get[_0x117292(0x16f)](){const _0x14f95b=_0x117292;return _0x14f95b(0x175);}static get[_0x117292(0x16e)](){return!0x0;}static get[_0x117292(0x162)](){return!0x0;}constructor(_0x2e0aff){const _0x16ed35=_0x117292;super(_0x2e0aff),_0x2e0aff[_0x16ed35(0x176)][_0x16ed35(0x166)](_0x16ed35(0x165),[_0x2f0f41[_0x16ed35(0x15f)],_0x2f0f41[_0x16ed35(0x16c)]]),_0x592d65[_0x16ed35(0x169)](_0x592d65),this[_0x16ed35(0x164)]();}[_0x117292(0x164)](){const _0x5ea38c=_0x117292,_0x3d5caf=this[_0x5ea38c(0x178)][_0x5ea38c(0x176)][_0x5ea38c(0x160)](_0x5ea38c(0x167)),_0x213b15=this[_0x5ea38c(0x178)][_0x5ea38c(0x177)][_0x5ea38c(0x161)];_0x3d5caf&&_0x592d65[_0x5ea38c(0x16d)](_0x213b15,_0x3d5caf);}}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module uploadcare/uploadcarecommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
|
+
import { UploadcareEditing } from './uploadcareediting.js';
|
|
12
|
+
import type { UploadcareSource } from './uploadcareconfig.js';
|
|
13
|
+
/**
|
|
14
|
+
* The Uploadcare command. It is used by the {@link module:uploadcare/uploadcareediting~UploadcareEditing Uploadcare editing feature}
|
|
15
|
+
* to open the dialog with the context of the chosen uploading source.
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* editor.execute( 'uploadcare' );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare class UploadcareCommand extends Command {
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): readonly [typeof Dialog, typeof UploadcareEditing];
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
constructor(editor: Editor);
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
refresh(): void;
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
execute(type: UploadcareSource): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x5948(){var _0x30752e=['33kFrwKC','destroy','plugins','108zzadsw','commands','_editing','_checkEnabled','869076bkShNH','8BBuICd','10848rbdflt','65334ykEVrw','insertImage','90Hwtxxb','200130xZQBMW','114951eWTrgu','2875208IaQvAM','refresh','isEnabled','_controller','editor','requires','182026zMkesf','4iKAeYb','get','execute','192EsVkDH'];_0x5948=function(){return _0x30752e;};return _0x5948();}var _0x287f24=_0x444b;(function(_0x454c9f,_0x1b4e7b){var _0x3c11e6=_0x444b,_0x2671ad=_0x454c9f();while(!![]){try{var _0x5427f5=parseInt(_0x3c11e6(0x121))/0x1*(parseInt(_0x3c11e6(0x129))/0x2)+-parseInt(_0x3c11e6(0x11c))/0x3*(parseInt(_0x3c11e6(0x12c))/0x4)+parseInt(_0x3c11e6(0x11f))/0x5*(-parseInt(_0x3c11e6(0x11d))/0x6)+parseInt(_0x3c11e6(0x122))/0x7*(parseInt(_0x3c11e6(0x11b))/0x8)+parseInt(_0x3c11e6(0x116))/0x9*(-parseInt(_0x3c11e6(0x120))/0xa)+-parseInt(_0x3c11e6(0x12d))/0xb*(-parseInt(_0x3c11e6(0x11a))/0xc)+-parseInt(_0x3c11e6(0x128))/0xd;if(_0x5427f5===_0x1b4e7b)break;else _0x2671ad['push'](_0x2671ad['shift']());}catch(_0x46cf98){_0x2671ad['push'](_0x2671ad['shift']());}}}(_0x5948,0x392cb));import{Command as _0x1683cf}from'ckeditor5/src/core.js';import{Dialog as _0x38cbd2}from'ckeditor5/src/ui.js';import{UploadcareEditing as _0xdd7771}from'./uploadcareediting.js';function _0x444b(_0x51a885,_0x4b9dbb){var _0x594895=_0x5948();return _0x444b=function(_0x444bef,_0x1d8f80){_0x444bef=_0x444bef-0x114;var _0x56fba3=_0x594895[_0x444bef];return _0x56fba3;},_0x444b(_0x51a885,_0x4b9dbb);}import{UploadcareController as _0x565837}from'./ui/uploadcarecontroller.js';export class UploadcareCommand extends _0x1683cf{[_0x287f24(0x118)];[_0x287f24(0x125)]=null;static get[_0x287f24(0x127)](){return[_0x38cbd2,_0xdd7771];}constructor(_0x33f0bd){var _0x5930d5=_0x287f24;super(_0x33f0bd),this[_0x5930d5(0x118)]=_0x33f0bd[_0x5930d5(0x115)][_0x5930d5(0x12a)](_0xdd7771);}[_0x287f24(0x123)](){var _0x2b1dae=_0x287f24;this[_0x2b1dae(0x124)]=this[_0x2b1dae(0x119)]();}[_0x287f24(0x12b)](_0x13f943){var _0x41ad74=_0x287f24;this[_0x41ad74(0x125)]&&(this[_0x41ad74(0x125)][_0x41ad74(0x114)](),this[_0x41ad74(0x125)]=null),this[_0x41ad74(0x125)]=new _0x565837(this[_0x41ad74(0x126)],this[_0x41ad74(0x118)],_0x13f943);}[_0x287f24(0x119)](){var _0x39be32=_0x287f24;return this[_0x39be32(0x126)][_0x39be32(0x117)][_0x39be32(0x12a)](_0x39be32(0x11e))[_0x39be32(0x124)];}}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module uploadcare/uploadcareconfig
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { ArrayOrItem } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import type { ConfigType } from '@uploadcare/file-uploader';
|
|
11
|
+
/**
|
|
12
|
+
* Locale definition type matching Uploadcare `LocaleDefinition` type.
|
|
13
|
+
* A plain object with translation keys and values.
|
|
14
|
+
*/
|
|
15
|
+
export type UploadcareLocaleDefinition = Record<string, string>;
|
|
16
|
+
/**
|
|
17
|
+
* Locale definition resolver type matching Uploadcare `LocaleDefinitionResolver` type.
|
|
18
|
+
* A function that returns a Promise with `LocaleDefinition`.
|
|
19
|
+
*/
|
|
20
|
+
export type UploadcareLocaleDefinitionResolver = () => Promise<UploadcareLocaleDefinition>;
|
|
21
|
+
/**
|
|
22
|
+
* The configuration of the {@link module:uploadcare/uploadcare~Uploadcare Uploadcare feature}.
|
|
23
|
+
*
|
|
24
|
+
* The minimal configuration for the Uploadcare feature requires providing the
|
|
25
|
+
* {@link module:uploadcare/uploadcareconfig~UploadcareConfig#pubkey `config.uploadcare.pubkey`}:
|
|
26
|
+
*
|
|
27
|
+
* ```ts
|
|
28
|
+
* ClassicEditor
|
|
29
|
+
* .create( editorElement, {
|
|
30
|
+
* uploadcare: {
|
|
31
|
+
* pubkey: 'YOUR_PUBLIC_KEY'
|
|
32
|
+
* }
|
|
33
|
+
* } )
|
|
34
|
+
* .then( ... )
|
|
35
|
+
* .catch( ... );
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* However, you can also adjust the feature to fit your needs:
|
|
39
|
+
*
|
|
40
|
+
* ```ts
|
|
41
|
+
* ClassicEditor
|
|
42
|
+
* .create( editorElement, {
|
|
43
|
+
* uploadcare: {
|
|
44
|
+
* uploader: {
|
|
45
|
+
* sourceList: [
|
|
46
|
+
* 'local',
|
|
47
|
+
* 'url',
|
|
48
|
+
* 'gdrive'
|
|
49
|
+
* ],
|
|
50
|
+
* },
|
|
51
|
+
* pubkey: 'YOUR_PUBLIC_KEY'
|
|
52
|
+
* }
|
|
53
|
+
* } )
|
|
54
|
+
* .then( ... )
|
|
55
|
+
* .catch( ... );
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
59
|
+
*/
|
|
60
|
+
export interface UploadcareConfig {
|
|
61
|
+
/**
|
|
62
|
+
* The public key used for communication with the Uploadcare services.
|
|
63
|
+
*
|
|
64
|
+
* It will be used by both the File Uploader and Image Editor components.
|
|
65
|
+
*/
|
|
66
|
+
pubkey: string;
|
|
67
|
+
/**
|
|
68
|
+
* Configuration that will be passed to the File Uploader component.
|
|
69
|
+
*
|
|
70
|
+
* You can find detailed information in the [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/options/).
|
|
71
|
+
*
|
|
72
|
+
* Please note that the source list is limited to the following values:
|
|
73
|
+
* * 'local'
|
|
74
|
+
* * 'url'
|
|
75
|
+
* * 'dropbox'
|
|
76
|
+
* * 'gdrive'
|
|
77
|
+
* * 'facebook'
|
|
78
|
+
* * 'gphotos'
|
|
79
|
+
* * 'onedrive'
|
|
80
|
+
*
|
|
81
|
+
* Additionally, below options are not supported:
|
|
82
|
+
* * `imgOnly` - It's `true` by default.
|
|
83
|
+
* * `removeCopyright` - It's `true` by default.
|
|
84
|
+
* * `localeName` - Custom translations can be provided via the `locale` config option.
|
|
85
|
+
* * `confirmUpload` - It's `false` by default.
|
|
86
|
+
* * `cameraMirror` - The `camera` source is not supported.
|
|
87
|
+
* * `cameraCapture` - The `camera` source is not supported.
|
|
88
|
+
* * `showEmptyList` - It's `false` by default.
|
|
89
|
+
*
|
|
90
|
+
* All other options documented in the Uploadcare documentation are supported.
|
|
91
|
+
*/
|
|
92
|
+
uploader?: UploadcareUploaderConfig;
|
|
93
|
+
/**
|
|
94
|
+
* Configuration for the Image Editor component. The component allows editing existing images in the CKEditor.
|
|
95
|
+
*
|
|
96
|
+
* You can find detailed information in the
|
|
97
|
+
* [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/image-editor/#configuration).
|
|
98
|
+
*
|
|
99
|
+
* Please note that the `cdn-url` and `uuid` attributes are automatically handled by the Uploadcare plugin and
|
|
100
|
+
* are not supported in the config options.
|
|
101
|
+
*/
|
|
102
|
+
editor?: UploadcareEditorConfig;
|
|
103
|
+
/**
|
|
104
|
+
* Allows editing images that are not hosted in Uploadcare service.
|
|
105
|
+
*
|
|
106
|
+
* This configuration option should whitelist URL(s) of images that should be editable.
|
|
107
|
+
*
|
|
108
|
+
* The image is editable if this option is:
|
|
109
|
+
* * a regular expression and it matches the image URL, or
|
|
110
|
+
* * a custom function that returns `true` for the image URL, or
|
|
111
|
+
* * `'origin'` literal and the image URL is from the same origin, or
|
|
112
|
+
* * an array of the above and the image URL matches one of the array elements.
|
|
113
|
+
*
|
|
114
|
+
* Images hosted in Uploadcare are always editable.
|
|
115
|
+
*
|
|
116
|
+
* @default []
|
|
117
|
+
*/
|
|
118
|
+
allowExternalImagesEditing?: ArrayOrItem<RegExp | 'origin' | ((src: string) => boolean)>;
|
|
119
|
+
/**
|
|
120
|
+
* Locale configuration for Uploadcare components.
|
|
121
|
+
*
|
|
122
|
+
* The plugin automatically uses the editor's language (`editor.locale.contentLanguage`) as the locale name.
|
|
123
|
+
* If the editor language is different from 'en', you need to provide translations for that language.
|
|
124
|
+
* This property is used only to supply translations that will be used by Uploadcare components.
|
|
125
|
+
*
|
|
126
|
+
* For information on how to configure the editor's language, see the
|
|
127
|
+
* [CKEditor 5 localization documentation](https://ckeditor.com/docs/ckeditor5/latest/framework/deep-dive/ui/localization.html).
|
|
128
|
+
*
|
|
129
|
+
* Example with `UploadcareLocaleDefinition`:
|
|
130
|
+
* ```ts
|
|
131
|
+
* uploadcare: {
|
|
132
|
+
* pubkey: 'YOUR_PUBLIC_KEY',
|
|
133
|
+
* locale: {
|
|
134
|
+
* 'locale-id': 'de',
|
|
135
|
+
* 'social-source-lang': 'de',
|
|
136
|
+
* 'upload-file': 'Datei hochladen',
|
|
137
|
+
* 'file__one': 'Datei',
|
|
138
|
+
* 'file__other': 'Dateien',
|
|
139
|
+
* 'header-uploading': 'Lade {{count}} {{plural:file(count)}} hoch'
|
|
140
|
+
* }
|
|
141
|
+
* }
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* Example with `UploadcareLocaleDefinitionResolver` (for CDN loading):
|
|
145
|
+
* ```ts
|
|
146
|
+
* uploadcare: {
|
|
147
|
+
* pubkey: 'YOUR_PUBLIC_KEY',
|
|
148
|
+
* locale: () => import('https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@v1/locales/file-uploader/de.js')
|
|
149
|
+
* .then( module => module.default )
|
|
150
|
+
* }
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
153
|
+
* For detailed information about locale definition format, available languages, and CDN translations,
|
|
154
|
+
* see the [Uploadcare localization documentation](https://uploadcare.com/docs/file-uploader/localization/).
|
|
155
|
+
*
|
|
156
|
+
* When translations are provided, they will be automatically applied to the Uploadcare
|
|
157
|
+
* components using `UC.defineLocale()` with the editor's language as the locale name.
|
|
158
|
+
*
|
|
159
|
+
* @default undefined
|
|
160
|
+
*/
|
|
161
|
+
locale?: UploadcareLocaleDefinition | UploadcareLocaleDefinitionResolver;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Configuration interface for the Uploadcare File Uploader component.
|
|
165
|
+
*
|
|
166
|
+
* This interface extends the Uploadcare config, excluding certain keys that are either not supported or have been modified.
|
|
167
|
+
*
|
|
168
|
+
* You can find detailed information in the [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/options/).
|
|
169
|
+
*/
|
|
170
|
+
export interface UploadcareUploaderConfig extends Partial<Omit<ConfigType, UploadcareExcludedKeys | 'sourceList'>> {
|
|
171
|
+
/**
|
|
172
|
+
* Comma-separated list of file sources.
|
|
173
|
+
*
|
|
174
|
+
* @default [ 'local', 'url' ]
|
|
175
|
+
*/
|
|
176
|
+
sourceList?: Array<UploadcareSourceValue>;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Configuration for the Uploadcare Image Editor component.
|
|
180
|
+
*
|
|
181
|
+
* You can find detailed information in the
|
|
182
|
+
* [Uploadcare documentation](https://uploadcare.com/docs/file-uploader/image-editor/#configuration).
|
|
183
|
+
*/
|
|
184
|
+
export interface UploadcareEditorConfig {
|
|
185
|
+
'crop-preset'?: string;
|
|
186
|
+
tabs?: string;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* All not supported config options.
|
|
190
|
+
*/
|
|
191
|
+
export type UploadcareExcludedKeys = 'imgOnly' | 'removeCopyright' | 'localeName' | 'confirmUpload' | 'cameraMirror' | 'cameraCapture' | 'showEmptyList';
|
|
192
|
+
/**
|
|
193
|
+
* Definition of all available upload sources.
|
|
194
|
+
*/
|
|
195
|
+
export declare enum UploadcareSource {
|
|
196
|
+
Local = "local",
|
|
197
|
+
URL = "url",
|
|
198
|
+
Dropbox = "dropbox",
|
|
199
|
+
GDrive = "gdrive",
|
|
200
|
+
Facebook = "facebook",
|
|
201
|
+
GPhotos = "gphotos",
|
|
202
|
+
OneDrive = "onedrive"
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Values for all available upload sources.
|
|
206
|
+
*/
|
|
207
|
+
export type UploadcareSourceValue = `${UploadcareSource}`;
|
|
208
|
+
/**
|
|
209
|
+
* Image asset definition.
|
|
210
|
+
*
|
|
211
|
+
* The definition contains the unique `id`, asset `type`, `url` and `attributes`.
|
|
212
|
+
*/
|
|
213
|
+
export interface UploadcareAssetImageDefinition {
|
|
214
|
+
/**
|
|
215
|
+
* An unique asset id.
|
|
216
|
+
*/
|
|
217
|
+
id: string;
|
|
218
|
+
/**
|
|
219
|
+
* Asset type.
|
|
220
|
+
*/
|
|
221
|
+
type: 'image';
|
|
222
|
+
/**
|
|
223
|
+
* Asset attributes.
|
|
224
|
+
*/
|
|
225
|
+
attributes: UploadcareAssetImageAttributesDefinition;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Asset attributes definition for an image.
|
|
229
|
+
*
|
|
230
|
+
* The definition contains the `imageFallbackUrl`, an `imageSources` array with one image source definition object and the
|
|
231
|
+
* `imageTextAlternative`.
|
|
232
|
+
*
|
|
233
|
+
* ```ts
|
|
234
|
+
* {
|
|
235
|
+
* imageFallbackUrl: 'https://example.com/assets/asset-id/images/1000.png',
|
|
236
|
+
* imageSources: [
|
|
237
|
+
* {
|
|
238
|
+
* sizes: '1000px',
|
|
239
|
+
* srcset:
|
|
240
|
+
* 'https://example.com/assets/asset-id/images/100.webp 100w,' +
|
|
241
|
+
* 'https://example.com/assets/asset-id/images/200.webp 200w,' +
|
|
242
|
+
* 'https://example.com/assets/asset-id/images/300.webp 300w,' +
|
|
243
|
+
* 'https://example.com/assets/asset-id/images/400.webp 400w,' +
|
|
244
|
+
* 'https://example.com/assets/asset-id/images/500.webp 500w,' +
|
|
245
|
+
* 'https://example.com/assets/asset-id/images/600.webp 600w,' +
|
|
246
|
+
* 'https://example.com/assets/asset-id/images/700.webp 700w,' +
|
|
247
|
+
* 'https://example.com/assets/asset-id/images/800.webp 800w,' +
|
|
248
|
+
* 'https://example.com/assets/asset-id/images/900.webp 900w,' +
|
|
249
|
+
* 'https://example.com/assets/asset-id/images/1000.webp 1000w',
|
|
250
|
+
* type: 'image/webp'
|
|
251
|
+
* }
|
|
252
|
+
* ]
|
|
253
|
+
* }
|
|
254
|
+
* ```
|
|
255
|
+
*/
|
|
256
|
+
export interface UploadcareAssetImageAttributesDefinition {
|
|
257
|
+
/**
|
|
258
|
+
* A fallback URL for browsers that do not support the "webp" format.
|
|
259
|
+
*/
|
|
260
|
+
imageFallbackUrl: string;
|
|
261
|
+
/**
|
|
262
|
+
* An array containing one image source definition object.
|
|
263
|
+
*/
|
|
264
|
+
imageSources: Array<{
|
|
265
|
+
srcset: string;
|
|
266
|
+
sizes: string;
|
|
267
|
+
type: string;
|
|
268
|
+
}>;
|
|
269
|
+
/**
|
|
270
|
+
* An alternative text for an image.
|
|
271
|
+
*/
|
|
272
|
+
imageTextAlternative?: string;
|
|
273
|
+
/**
|
|
274
|
+
* An image dimension (width and height).
|
|
275
|
+
*/
|
|
276
|
+
imageDimension: {
|
|
277
|
+
width: number;
|
|
278
|
+
height: number;
|
|
279
|
+
};
|
|
280
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x4c93(_0x32515f,_0x3c1189){var _0x52001b=_0x5200();return _0x4c93=function(_0x4c93b9,_0x1ff473){_0x4c93b9=_0x4c93b9-0xb9;var _0x13ccef=_0x52001b[_0x4c93b9];return _0x13ccef;},_0x4c93(_0x32515f,_0x3c1189);}(function(_0x17cfca,_0x4c73a8){var _0x40efc2=_0x4c93,_0x2aa615=_0x17cfca();while(!![]){try{var _0x1ae66d=parseInt(_0x40efc2(0xb9))/0x1*(-parseInt(_0x40efc2(0xc6))/0x2)+parseInt(_0x40efc2(0xcd))/0x3+parseInt(_0x40efc2(0xbd))/0x4+-parseInt(_0x40efc2(0xbc))/0x5*(parseInt(_0x40efc2(0xbb))/0x6)+-parseInt(_0x40efc2(0xca))/0x7+-parseInt(_0x40efc2(0xc2))/0x8*(parseInt(_0x40efc2(0xce))/0x9)+parseInt(_0x40efc2(0xcb))/0xa;if(_0x1ae66d===_0x4c73a8)break;else _0x2aa615['push'](_0x2aa615['shift']());}catch(_0x2e01db){_0x2aa615['push'](_0x2aa615['shift']());}}}(_0x5200,0x8c79b));export var UploadcareSource;!function(_0x263149){var _0x80b78=_0x4c93;_0x263149[_0x80b78(0xcc)]=_0x80b78(0xba),_0x263149[_0x80b78(0xc1)]=_0x80b78(0xc5),_0x263149[_0x80b78(0xbe)]=_0x80b78(0xd0),_0x263149[_0x80b78(0xbf)]=_0x80b78(0xc3),_0x263149[_0x80b78(0xc4)]=_0x80b78(0xc0),_0x263149[_0x80b78(0xcf)]=_0x80b78(0xc9),_0x263149[_0x80b78(0xc8)]=_0x80b78(0xc7);}(UploadcareSource||(UploadcareSource={}));function _0x5200(){var _0x24c92d=['Facebook','url','518LHjYVf','onedrive','OneDrive','gphotos','1741334CSHYzv','8030630LRNywo','Local','818607gmAJFo','143622JWacMr','GPhotos','dropbox','1946uRSMuB','local','474OssbSP','26665llEVYm','4545280WwQHWh','Dropbox','GDrive','facebook','URL','232aXGBuM','gdrive'];_0x5200=function(){return _0x24c92d;};return _0x5200();}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module uploadcare/uploadcareediting
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
|
+
import { UploadcareUploadAdapter } from './uploadcareuploadadapter.js';
|
|
12
|
+
import type { UploaderBlock } from '@uploadcare/file-uploader';
|
|
13
|
+
/**
|
|
14
|
+
* The Uploadcare editing feature. It introduces the {@link module:uploadcare/uploadcarecommand~UploadcareCommand command}.
|
|
15
|
+
*/
|
|
16
|
+
export declare class UploadcareEditing extends Plugin {
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "UploadcareEditing";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get requires(): readonly ["PictureEditing", typeof UploadcareUploadAdapter, typeof Dialog];
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get isOfficialPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static get isPremiumPlugin(): true;
|
|
33
|
+
/**
|
|
34
|
+
* A unique ID used to make the `ctx-name` property distinct.
|
|
35
|
+
*
|
|
36
|
+
* This ID ensures that each editor instance references to a different Uploadcare web components.
|
|
37
|
+
*/
|
|
38
|
+
ucContextId: string;
|
|
39
|
+
/**
|
|
40
|
+
* Returns the DOM element that represents the Uploadcare config web component.
|
|
41
|
+
*/
|
|
42
|
+
get configElement(): HTMLElement | null;
|
|
43
|
+
/**
|
|
44
|
+
* Returns the DOM element associated with the Uploadcare context web component.
|
|
45
|
+
*/
|
|
46
|
+
get ctxElement(): UploaderBlock | null;
|
|
47
|
+
/**
|
|
48
|
+
* @inheritDoc
|
|
49
|
+
*/
|
|
50
|
+
constructor(editor: Editor);
|
|
51
|
+
/**
|
|
52
|
+
* @inheritDoc
|
|
53
|
+
*/
|
|
54
|
+
init(): void;
|
|
55
|
+
/**
|
|
56
|
+
* @inheritDoc
|
|
57
|
+
*/
|
|
58
|
+
afterInit(): void;
|
|
59
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x4bf0b9=_0x390d;(function(_0xd4f335,_0x2428e5){const _0x1217bd=_0x390d,_0x56cfa7=_0xd4f335();while(!![]){try{const _0x30cbf1=parseInt(_0x1217bd(0x1b6))/0x1+parseInt(_0x1217bd(0x1c2))/0x2+-parseInt(_0x1217bd(0x1dd))/0x3*(-parseInt(_0x1217bd(0x1db))/0x4)+-parseInt(_0x1217bd(0x19c))/0x5+parseInt(_0x1217bd(0x19a))/0x6+-parseInt(_0x1217bd(0x1a9))/0x7+-parseInt(_0x1217bd(0x1d6))/0x8;if(_0x30cbf1===_0x2428e5)break;else _0x56cfa7['push'](_0x56cfa7['shift']());}catch(_0x47471e){_0x56cfa7['push'](_0x56cfa7['shift']());}}}(_0x3534,0x9863e));import{Plugin as _0x3156d1}from'ckeditor5/src/core.js';function _0x390d(_0x4b5fb9,_0x2d6d06){const _0x353408=_0x3534();return _0x390d=function(_0x390d1a,_0x2f0fe5){_0x390d1a=_0x390d1a-0x190;let _0x504603=_0x353408[_0x390d1a];return _0x504603;},_0x390d(_0x4b5fb9,_0x2d6d06);}import{Dialog as _0x421c6c}from'ckeditor5/src/ui.js';import{createElement as _0x4e32d4,global as _0x532bf9,uid as _0x1d7a55}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4af48a}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x55a946}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x83ee42}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3156d1{[_0x4bf0b9(0x1b3)]=null;[_0x4bf0b9(0x190)]=null;static get[_0x4bf0b9(0x1c8)](){const _0x50c723=_0x4bf0b9;return _0x50c723(0x1d7);}static get[_0x4bf0b9(0x1be)](){const _0x7d145a=_0x4bf0b9;return[_0x7d145a(0x1b5),_0x55a946,_0x421c6c];}static get[_0x4bf0b9(0x1aa)](){return!0x0;}static get[_0x4bf0b9(0x1de)](){return!0x0;}[_0x4bf0b9(0x195)];get[_0x4bf0b9(0x191)](){const _0x1da2c0=_0x4bf0b9;return this[_0x1da2c0(0x1b3)];}get[_0x4bf0b9(0x1c1)](){const _0x59e189=_0x4bf0b9;return this[_0x59e189(0x190)];}constructor(_0x107727){const _0x2c14af=_0x4bf0b9;super(_0x107727),this[_0x2c14af(0x195)]=_0x1d7a55();}[_0x4bf0b9(0x1a8)](){const _0xdedfea=_0x4bf0b9,_0x1cbc01=this[_0xdedfea(0x1ce)];_0x1cbc01[_0xdedfea(0x1e2)][_0xdedfea(0x1cc)](_0xdedfea(0x1a7),new _0x4af48a(_0x1cbc01));}[_0x4bf0b9(0x1c7)](){const _0x12f131=_0x4bf0b9;this[_0x12f131(0x19f)](),this[_0x12f131(0x1bd)](),this[_0x12f131(0x1c3)](),this[_0x12f131(0x1a1)](),this[_0x12f131(0x1bc)](),this[_0x12f131(0x1b8)](this[_0x12f131(0x1ce)],_0x12f131(0x1d3),()=>{const _0x2dddfb=_0x12f131;this[_0x2dddfb(0x1b3)]&&(this[_0x2dddfb(0x1b3)][_0x2dddfb(0x19b)](),this[_0x2dddfb(0x1b3)]=null),this[_0x2dddfb(0x190)]&&(this[_0x2dddfb(0x190)][_0x2dddfb(0x19b)](),this[_0x2dddfb(0x190)]=null);const _0xfa6933=_0x532bf9[_0x2dddfb(0x1b9)][_0x2dddfb(0x1d2)](_0x2dddfb(0x19d));_0xfa6933&&_0xfa6933[_0x2dddfb(0x19b)]();}),async function(_0x3d120b){const _0xf73744=_0x5ea345([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]),_0x2884d9=0x535f8c3a,_0xeeea09=0x5358f7ba^_0x2884d9,_0x32ae47=window[_0x5ea345([0x44,0x61,0x74,0x65])][_0x5ea345([0x6e,0x6f,0x77])](),_0x25a1dd=_0x3d120b[_0x5ea345([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x126200=new window[(_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e4f9a=>{_0x25a1dd[_0x5ea345([0x6f,0x6e,0x63,0x65])](_0x5ea345([0x72,0x65,0x61,0x64,0x79]),_0x5e4f9a);}),_0x1698dc={[_0x5ea345([0x6b,0x74,0x79])]:_0x5ea345([0x45,0x43]),[_0x5ea345([0x75,0x73,0x65])]:_0x5ea345([0x73,0x69,0x67]),[_0x5ea345([0x63,0x72,0x76])]:_0x5ea345([0x50,0x2d,0x32,0x35,0x36]),[_0x5ea345([0x78])]:_0x5ea345([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]),[_0x5ea345([0x79])]:_0x5ea345([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]),[_0x5ea345([0x61,0x6c,0x67])]:_0x5ea345([0x45,0x53,0x32,0x35,0x36])},_0x59744f=_0x25a1dd[_0x5ea345([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ea345([0x67,0x65,0x74])](_0x5ea345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x404f54(){let _0x21bced,_0x4d5188=null,_0x423009=null;try{if(_0x59744f==_0x5ea345([0x47,0x50,0x4c]))return _0x5ea345([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21bced=_0x1516e9(),!_0x21bced)return _0x5ea345([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21bced[_0x5ea345([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x423009=_0x49790e(_0x21bced[_0x5ea345([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21bced[_0x5ea345([0x6a,0x74,0x69])])),await _0x31f5c8()?_0x3384e9()?_0x45b36a()?_0x5ea345([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28e005()?(_0x21bced[_0x5ea345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ea345([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d5188=_0x1f1690(_0x5ea345([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21bced[_0x5ea345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ea345([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d5188=_0x1f1690(_0x5ea345([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a7f9d()):_0x5ea345([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ea345([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ea345([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5ea345([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45b36a(){const _0x169350=[_0x5ea345([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ea345([0x74,0x72,0x69,0x61,0x6c])][_0x5ea345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21bced[_0x5ea345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32ae47/0x3e8:0xe10*_0xeeea09;return _0x21bced[_0x5ea345([0x65,0x78,0x70])]<_0x169350;}function _0x3384e9(){const _0x4fb22a=_0x21bced[_0x5ea345([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4fb22a&&(!!_0x4fb22a[_0x5ea345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ea345([0x2a]))||!!_0x4fb22a[_0x5ea345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ea345([0x55,0x50,0x4c,0x43])));}function _0x28e005(){const _0x221905=_0x390d,_0x171b69=_0x21bced[_0x5ea345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x171b69||0x0==_0x171b69[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x406d8c}=new URL(window[_0x5ea345([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x221905(0x197)]);if(_0x171b69[_0x5ea345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406d8c))return!0x0;const _0x35a387=_0x406d8c[_0x5ea345([0x73,0x70,0x6c,0x69,0x74])](_0x5ea345([0x2e]));return _0x171b69[_0x5ea345([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fa45b=>_0x1fa45b[_0x5ea345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ea345([0x2a])))[_0x5ea345([0x6d,0x61,0x70])](_0x5549ed=>_0x5549ed[_0x5ea345([0x73,0x70,0x6c,0x69,0x74])](_0x5ea345([0x2e])))[_0x5ea345([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bb625=>_0x4bb625[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35a387[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ea345([0x6d,0x61,0x70])](_0x56bc29=>Array(_0x35a387[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x56bc29[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5ea345([0x66,0x69,0x6c,0x6c])](_0x56bc29[0x0]===_0x5ea345([0x2a])?_0x5ea345([0x2a]):'')[_0x5ea345([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x56bc29))[_0x5ea345([0x73,0x6f,0x6d,0x65])](_0x1003e0=>_0x35a387[_0x5ea345([0x65,0x76,0x65,0x72,0x79])]((_0x48ae74,_0x1d530f)=>_0x1003e0[_0x1d530f]===_0x48ae74||_0x1003e0[_0x1d530f]===_0x5ea345([0x2a])));}function _0x5a7f9d(){return _0x4d5188&&_0x423009?new window[(_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26e266,_0x59d7e9)=>{_0x4d5188[_0x5ea345([0x74,0x68,0x65,0x6e])](_0x26e266,_0x59d7e9),_0x423009[_0x5ea345([0x74,0x68,0x65,0x6e])](_0x2456cf=>{_0x2456cf!=_0x5ea345([0x56,0x61,0x6c,0x69,0x64])&&_0x26e266(_0x2456cf);},_0x59d7e9);}):_0x4d5188||_0x423009||_0x5ea345([0x56,0x61,0x6c,0x69,0x64]);}}function _0x49790e(_0x2d7d9f,_0x13e6a4){return new window[(_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c8749=>{if(_0x1bd102())return _0x4c8749(_0x5ea345([0x56,0x61,0x6c,0x69,0x64]));_0x6f723f(),_0x25a1dd[_0x5ea345([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ea345([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2aba98=!0x1;const _0x5c9e6b=_0x1d7a55();function _0x4079e2(_0x19d875){return!!_0x19d875&&(typeof _0x19d875===_0x5ea345([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19d875===_0x5ea345([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19d875[_0x5ea345([0x74,0x68,0x65,0x6e])]===_0x5ea345([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19d875[_0x5ea345([0x63,0x61,0x74,0x63,0x68])]===_0x5ea345([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x326fa2(_0x56c97a){_0x5a21e3(_0x56c97a)[_0x5ea345([0x74,0x68,0x65,0x6e])](_0x48289b=>{if(!_0x48289b||_0x48289b[_0x5ea345([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ea345([0x6f,0x6b]))return _0x5ea345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19d997(_0x299765(_0x5c9e6b+_0x13e6a4))!=_0x48289b[_0x5ea345([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ea345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ea345([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ea345([0x74,0x68,0x65,0x6e])](_0x3159e4=>(_0x196a72(),_0x3159e4),()=>{const _0x67c9a0=_0x4859bb();return null==_0x67c9a0?(_0x196a72(),_0x5ea345([0x56,0x61,0x6c,0x69,0x64])):_0x5ea345(_0x32ae47-_0x67c9a0>(0x7753083a^_0x2884d9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ea345([0x74,0x68,0x65,0x6e])](_0x4c8749)[_0x5ea345([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c8749(_0x5ea345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3879ff=0x536962ba^_0x2884d9;function _0x196a72(){const _0x48dac2=_0x5ea345([0x6c,0x6c,0x63,0x74,0x2d])+_0x19d997(_0x299765(_0x2d7d9f)),_0x4900aa=_0x11510b(_0x19d997(window[_0x5ea345([0x4d,0x61,0x74,0x68])][_0x5ea345([0x63,0x65,0x69,0x6c])](_0x32ae47/_0x3879ff)));window[_0x5ea345([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ea345([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48dac2,_0x4900aa);}function _0x4859bb(){const _0x24000c=_0x5ea345([0x6c,0x6c,0x63,0x74,0x2d])+_0x19d997(_0x299765(_0x2d7d9f)),_0x3084dd=window[_0x5ea345([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ea345([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24000c);return _0x3084dd?window[_0x5ea345([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11510b(_0x3084dd),0x10)*_0x3879ff:null;}function _0x5a21e3(_0x413c03){return new window[(_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f253f,_0x4f332c)=>{_0x413c03[_0x5ea345([0x74,0x68,0x65,0x6e])](_0x5f253f,_0x4f332c),window[_0x5ea345([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f332c,0x535e58fa^_0x2884d9);});}}_0x25a1dd[_0x5ea345([0x6f,0x6e])](_0x5ea345([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35d041,_0xf8f786)=>{if(_0xf8f786[0x0]!=_0x2d7d9f)return _0x4c8749(_0x5ea345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf8f786[0x1]={..._0xf8f786[0x1],[_0x5ea345([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c9e6b};},{[_0x5ea345([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ea345([0x68,0x69,0x67,0x68])}),_0x25a1dd[_0x5ea345([0x6f,0x6e])](_0x5ea345([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3beebb=>{_0x4079e2(_0x3beebb[_0x5ea345([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2aba98=!0x0,_0x326fa2(_0x3beebb[_0x5ea345([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ea345([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ea345([0x6c,0x6f,0x77])}),_0x126200[_0x5ea345([0x74,0x68,0x65,0x6e])](()=>{_0x2aba98||_0x4c8749(_0x5ea345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1bd102(){return _0x25a1dd[_0x5ea345([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ea345([0x76,0x69,0x65,0x77])][_0x5ea345([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ea345([0x61,0x75,0x74,0x6f]);}function _0x6f723f(){_0x25a1dd[_0x5ea345([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ea345([0x76,0x69,0x65,0x77])][_0x5ea345([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ea345([0x61,0x75,0x74,0x6f]);}}function _0x1f1690(_0x187545){const _0x25e15c=[new window[(_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x176060=>setTimeout(_0x176060,0x5356b2f6^_0x2884d9)),_0x126200[_0x5ea345([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9538f5=>{let _0x11630a=0x0;_0x25a1dd[_0x5ea345([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ea345([0x6f,0x6e])](_0x5ea345([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x275f9a,_0x54045a)=>{_0x54045a[0x0][_0x5ea345([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11630a++,_0x11630a==(0x535f8dc2^_0x2884d9)&&(_0x9538f5(),_0x275f9a[_0x5ea345([0x6f,0x66,0x66])]());});}))];return window[_0x5ea345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ea345([0x72,0x61,0x63,0x65])](_0x25e15c)[_0x5ea345([0x74,0x68,0x65,0x6e])](()=>_0x187545);}async function _0x62a20b(){await _0x126200,_0x25a1dd[_0x5ea345([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ea345([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25eab8,_0x25a1dd[_0x5ea345([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ea345([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25eab8,_0x25a1dd[_0x5ea345([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ea345([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5238d0(_0x37a084){const _0x328d42=_0x212ee0();_0x25a1dd[_0x328d42]=_0x5ea345([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37a084,_0x37a084!=_0x5ea345([0x56,0x61,0x6c,0x69,0x64])&&_0x62a20b();}function _0x212ee0(){const _0x325807=window[_0x5ea345([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ea345([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ea345([0x6e,0x6f,0x77])]())[_0x5ea345([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ea345([0x2e]),'');let _0x1df07d=_0x5ea345([0x68]);for(let _0x3412b2=0x0;_0x3412b2<_0x325807[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3412b2+=0x2){let _0x332b95=window[_0x5ea345([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x325807[_0x5ea345([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3412b2,_0x3412b2+0x2));_0x332b95>=_0xf73744[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x332b95-=_0xf73744[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1df07d+=_0xf73744[_0x332b95];}return _0x1df07d;}function _0x1516e9(){const _0x3e2b08=_0x59744f[_0x5ea345([0x73,0x70,0x6c,0x69,0x74])](_0x5ea345([0x2e]));if(0x3!=_0x3e2b08[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b3d59(_0x3e2b08[0x1]);function _0x4b3d59(_0x526868){const _0x535405=_0x3b753e(_0x526868);return _0x535405&&_0x5528c7()?_0x535405:null;function _0x5528c7(){const _0x585de0=_0x535405[_0x5ea345([0x6a,0x74,0x69])],_0x448308=window[_0x5ea345([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x585de0[_0x5ea345([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x585de0[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b58f0={..._0x535405,[_0x5ea345([0x6a,0x74,0x69])]:_0x585de0[_0x5ea345([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x585de0[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b58f0[_0x5ea345([0x76,0x63])],_0x299765(_0x1b58f0)==_0x448308;}}}async function _0x31f5c8(){let _0x5d7651=!0x0;try{const _0x5cce39=_0x59744f[_0x5ea345([0x73,0x70,0x6c,0x69,0x74])](_0x5ea345([0x2e])),[_0x1d4c06,_0x243d64,_0x2c759c]=_0x5cce39;return _0x48bede(_0x1d4c06),await _0x5af9fe(_0x1d4c06,_0x243d64,_0x2c759c),_0x5d7651;}catch{return!0x1;}function _0x48bede(_0x3efb43){const _0x4470e2=_0x3b753e(_0x3efb43);_0x4470e2&&_0x4470e2[_0x5ea345([0x61,0x6c,0x67])]==_0x5ea345([0x45,0x53,0x32,0x35,0x36])||(_0x5d7651=!0x1);}async function _0x5af9fe(_0x11350c,_0x3cf9d9,_0x557df0){const _0x3bbba3=window[_0x5ea345([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ea345([0x66,0x72,0x6f,0x6d])](_0x5c14e3(_0x557df0),_0x543aa2=>_0x543aa2[_0x5ea345([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1062b5=new window[(_0x5ea345([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ea345([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11350c+_0x5ea345([0x2e])+_0x3cf9d9),_0x1b48dc=window[_0x5ea345([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ea345([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b48dc)return;const _0x23baf2=await _0x1b48dc[_0x5ea345([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ea345([0x6a,0x77,0x6b]),_0x1698dc,{[_0x5ea345([0x6e,0x61,0x6d,0x65])]:_0x5ea345([0x45,0x43,0x44,0x53,0x41]),[_0x5ea345([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ea345([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ea345([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b48dc[_0x5ea345([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ea345([0x6e,0x61,0x6d,0x65])]:_0x5ea345([0x45,0x43,0x44,0x53,0x41]),[_0x5ea345([0x68,0x61,0x73,0x68])]:{[_0x5ea345([0x6e,0x61,0x6d,0x65])]:_0x5ea345([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23baf2,_0x3bbba3,_0x1062b5)||(_0x5d7651=!0x1);}}function _0x3b753e(_0x3b04a3){return _0x3b04a3[_0x5ea345([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ea345([0x65,0x79]))?JSON[_0x5ea345([0x70,0x61,0x72,0x73,0x65])](_0x5c14e3(_0x3b04a3)):null;}function _0x5c14e3(_0x45705d){return window[_0x5ea345([0x61,0x74,0x6f,0x62])](_0x45705d[_0x5ea345([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ea345([0x2b]))[_0x5ea345([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ea345([0x2f])));}function _0x299765(_0x159018){let _0x3c064f=0x1505;function _0x66f668(_0x762a82){for(let _0x1dba1e=0x0;_0x1dba1e<_0x762a82[_0x5ea345([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dba1e++){const _0x17ce4d=_0x762a82[_0x5ea345([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1dba1e);_0x3c064f=(_0x3c064f<<0x5)+_0x3c064f+_0x17ce4d,_0x3c064f&=_0x3c064f;}}function _0x37f45d(_0x178708){Array[_0x5ea345([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x178708)?_0x178708[_0x5ea345([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37f45d):_0x178708&&typeof _0x178708==_0x5ea345([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ea345([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x178708)[_0x5ea345([0x73,0x6f,0x72,0x74])]()[_0x5ea345([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x205f66,_0x4d2b8a])=>{_0x66f668(_0x205f66),_0x37f45d(_0x4d2b8a);}):_0x66f668(window[_0x5ea345([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x178708));}return _0x37f45d(_0x159018),_0x3c064f>>>0x0;}function _0x19d997(_0x26ab8f){return _0x26ab8f[_0x5ea345([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ea345([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ea345([0x30]));}function _0x11510b(_0x238585){return _0x238585[_0x5ea345([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ea345([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ea345([0x6a,0x6f,0x69,0x6e])]('');}function _0x25eab8(){}function _0x5ea345(_0x7b2e01){const _0x19990a=_0x390d;return _0x7b2e01[_0x19990a(0x1ad)](_0x1301e0=>String[_0x19990a(0x196)](_0x1301e0))[_0x19990a(0x1dc)]('');}_0x5238d0(await _0x404f54());}(this);}[_0x4bf0b9(0x19f)](){const _0x54df29=_0x4bf0b9,_0x59e314=this[_0x54df29(0x1ce)][_0x54df29(0x1a4)][_0x54df29(0x194)];_0x59e314[_0x54df29(0x1b0)](_0x54df29(0x1a2))&&_0x59e314[_0x54df29(0x1cd)](_0x54df29(0x1a2),{'allowAttributes':[_0x54df29(0x1a3)]}),_0x59e314[_0x54df29(0x1b0)](_0x54df29(0x1c5))&&_0x59e314[_0x54df29(0x1cd)](_0x54df29(0x1c5),{'allowAttributes':[_0x54df29(0x1a3)]});}[_0x4bf0b9(0x1bd)](){const _0x135386=_0x4bf0b9,_0x36c92e=this[_0x135386(0x1ce)];_0x36c92e[_0x135386(0x1bf)][_0x135386(0x1ac)](_0x135386(0x1d0))[_0x135386(0x1e0)]({'model':_0x135386(0x1a3),'view':_0x135386(0x1a5)}),_0x36c92e[_0x135386(0x1bf)][_0x135386(0x1ac)](_0x135386(0x1d8))[_0x135386(0x1d4)]({'model':{'key':_0x135386(0x1a3),'value':_0x5edce7=>_0x5edce7[_0x135386(0x1c0)](_0x135386(0x1a5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x933e4=_0x36c92e[_0x135386(0x1e2)][_0x135386(0x1bb)](_0x135386(0x192));_0x933e4&&this[_0x135386(0x1b8)](_0x933e4,_0x135386(0x199),(_0x405ca0,[_0x99a668,_0x441909])=>{const _0xdbdf13=_0x135386;_0x99a668[_0xdbdf13(0x1d1)](_0xdbdf13(0x1a3),_0x441909);});}[_0x4bf0b9(0x1c3)](){const _0x3fb8fa=_0x4bf0b9,_0x3e0a00=this[_0x3fb8fa(0x1ce)][_0x3fb8fa(0x1cf)][_0x3fb8fa(0x1bb)](_0x3fb8fa(0x1b1))||{},_0x3b916b=this[_0x3fb8fa(0x1ce)][_0x3fb8fa(0x1cf)][_0x3fb8fa(0x1bb)](_0x3fb8fa(0x19e))||'';this[_0x3fb8fa(0x1b3)]=_0x4e32d4(_0x532bf9[_0x3fb8fa(0x1b9)],_0x3fb8fa(0x1ab),{..._0x3e0a00,'pubkey':_0x3b916b,'ctx-name':_0x3fb8fa(0x193)+this[_0x3fb8fa(0x195)],'sourceList':'','imgOnly':_0x3fb8fa(0x1e1),'removeCopyright':_0x3fb8fa(0x1e1),'localeName':this[_0x3fb8fa(0x1ce)][_0x3fb8fa(0x1da)][_0x3fb8fa(0x1b7)],'externalSourcesEmbedCss':_0x3fb8fa(0x1a6)}),this[_0x3fb8fa(0x1b3)][_0x3fb8fa(0x1ae)]=_0x65371c=>{const _0x498ffd=_0x3fb8fa;if(_0x498ffd(0x1d5)==_0x65371c)return _0x498ffd(0x1cb);},_0x532bf9[_0x3fb8fa(0x1b9)][_0x3fb8fa(0x1b2)][_0x3fb8fa(0x1c4)](this[_0x3fb8fa(0x1b3)]);}[_0x4bf0b9(0x1a1)](){const _0x5ef3c1=_0x4bf0b9;this[_0x5ef3c1(0x190)]=_0x4e32d4(_0x532bf9[_0x5ef3c1(0x1b9)],_0x5ef3c1(0x1c6),{'ctx-name':_0x5ef3c1(0x193)+this[_0x5ef3c1(0x195)]}),_0x532bf9[_0x5ef3c1(0x1b9)][_0x5ef3c1(0x1b2)][_0x5ef3c1(0x1c4)](this[_0x5ef3c1(0x190)]);}[_0x4bf0b9(0x1bc)](){const _0x2b356d=_0x4bf0b9,_0xf3ca32=this[_0x2b356d(0x1ce)][_0x2b356d(0x1e2)][_0x2b356d(0x1bb)](_0x2b356d(0x1df));_0xf3ca32&&this[_0x2b356d(0x1b8)](_0xf3ca32,_0x2b356d(0x198),()=>{const _0x1fc9ff=_0x2b356d,_0x531c11=this[_0x1fc9ff(0x1ce)][_0x1fc9ff(0x1a4)][_0x1fc9ff(0x1b9)][_0x1fc9ff(0x1ca)][_0x1fc9ff(0x1af)]();_0x531c11&&_0x531c11[_0x1fc9ff(0x1c0)](_0x1fc9ff(0x1a3))&&this[_0x1fc9ff(0x1ce)][_0x1fc9ff(0x1d9)][_0x1fc9ff(0x1ba)][_0x1fc9ff(0x1b4)](_0x1fc9ff(0x1a0),()=>{const _0x2bb08a=_0x1fc9ff;_0x83ee42(this[_0x2bb08a(0x1ce)],_0x531c11);});});const _0x1c3d92=this[_0x2b356d(0x1ce)][_0x2b356d(0x1e2)][_0x2b356d(0x1bb)](_0x2b356d(0x1c9));_0x1c3d92&&this[_0x2b356d(0x1b8)](_0x1c3d92,_0x2b356d(0x198),()=>{const _0x4824ea=_0x2b356d,_0x58d3dc=this[_0x4824ea(0x1ce)][_0x4824ea(0x1a4)][_0x4824ea(0x1b9)][_0x4824ea(0x1ca)][_0x4824ea(0x1af)]();_0x58d3dc&&_0x58d3dc[_0x4824ea(0x1c0)](_0x4824ea(0x1a3))&&this[_0x4824ea(0x1ce)][_0x4824ea(0x1d9)][_0x4824ea(0x1ba)][_0x4824ea(0x1b4)](_0x4824ea(0x1a0),()=>{const _0x311a97=_0x4824ea;_0x83ee42(this[_0x311a97(0x1ce)],_0x58d3dc);});});}}function _0x3534(){const _0xc026c3=['remove','1917565xBHoKr','input[uploadcare-file-input]','uploadcare.pubkey','_initSchema','render','_initCtx','imageBlock','uploadcareImageId','model','data-uc-image-id','\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','uploadcare','init','1836394xQtiJd','isOfficialPlugin','uc-config','for','map','iconHrefResolver','getSelectedElement','isRegistered','uploadcare.uploader','body','_configElement','once','PictureEditing','1129102KBDQFk','contentLanguage','listenTo','document','view','get','_initImageProcessingIndicator','_initConversion','requires','conversion','getAttribute','ctxElement','575600tVovbE','_initConfig','appendChild','imageInline','uc-upload-ctx-provider','afterInit','pluginName','uploadcareImageReplace','selection','#uc-icon-arrow-down','add','extend','editor','config','downcast','removeAttribute','querySelector','destroy','elementToAttribute','closeMax','15491752qLqasN','UploadcareEditing','upcast','editing','locale','4Ldgbfr','join','2147730RoMiKf','isPremiumPlugin','insertImage','attributeToAttribute','true','commands','_ctxElement','configElement','replaceImageSource','uploader-','schema','ucContextId','fromCharCode','href','execute','cleanupImage','6442212YCBQeB'];_0x3534=function(){return _0xc026c3;};return _0x3534();}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { type Dialog } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Editor } from 'ckeditor5/src/core.js';
|
|
7
|
+
import type { ModelElement } from 'ckeditor5/src/engine.js';
|
|
8
|
+
declare const UploadcareImageEditController_base: {
|
|
9
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
10
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Controller for the Image Edit Dialog.
|
|
14
|
+
*
|
|
15
|
+
* It manages the dialog and all the related actions during dialog instance lifecycle. It is bound to a dialog instance
|
|
16
|
+
* and an active image element and destroyed when dialog instance is closed.
|
|
17
|
+
*/
|
|
18
|
+
export declare class UploadcareImageEditController extends /* #__PURE__ -- @preserve */ UploadcareImageEditController_base {
|
|
19
|
+
/**
|
|
20
|
+
* Whenever the controller is active and dialog UI visible.
|
|
21
|
+
*
|
|
22
|
+
* @observable
|
|
23
|
+
* @readonly
|
|
24
|
+
*/
|
|
25
|
+
isActive: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Status of the selected image when command is executed:
|
|
28
|
+
*
|
|
29
|
+
* * `uploading` - image is being uploaded to Uploadcare,
|
|
30
|
+
* * `ready` - image is ready to be edited (already in Uploadcare or just uploaded to it),
|
|
31
|
+
* * `error` - error occurred during image upload.
|
|
32
|
+
*
|
|
33
|
+
* @observable
|
|
34
|
+
* @readonly
|
|
35
|
+
*/
|
|
36
|
+
imageStatus: 'uploading' | 'ready' | 'error';
|
|
37
|
+
imageErrorType: 'Network' | 'NotFound' | null;
|
|
38
|
+
/**
|
|
39
|
+
* The Uploadcare image ID.
|
|
40
|
+
*
|
|
41
|
+
* @observable
|
|
42
|
+
* @readonly
|
|
43
|
+
*/
|
|
44
|
+
imageId: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* The Uploadcare image source URL.
|
|
47
|
+
*
|
|
48
|
+
* @observable
|
|
49
|
+
* @readonly
|
|
50
|
+
*/
|
|
51
|
+
imageSrc: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* The image width and height. It is used to calculate proper `srcset` attributes and aspect ratio.
|
|
54
|
+
*
|
|
55
|
+
* @observable
|
|
56
|
+
* @readonly
|
|
57
|
+
*/
|
|
58
|
+
imageDimension: {
|
|
59
|
+
width: number;
|
|
60
|
+
height: number;
|
|
61
|
+
} | null;
|
|
62
|
+
/**
|
|
63
|
+
* The Uploadcare image upload progress.
|
|
64
|
+
*
|
|
65
|
+
* @observable
|
|
66
|
+
* @readonly
|
|
67
|
+
*/
|
|
68
|
+
imageUploadProgress: number | null;
|
|
69
|
+
/**
|
|
70
|
+
* Creates a new instance of `UploadcareImageEditController`.
|
|
71
|
+
*/
|
|
72
|
+
constructor(editor: Editor, dialog: Dialog, imageElement: ModelElement);
|
|
73
|
+
/**
|
|
74
|
+
* Destroys `UploadcareImageEditController` instance.
|
|
75
|
+
*/
|
|
76
|
+
destroy(): void;
|
|
77
|
+
}
|
|
78
|
+
export {};
|