@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260118.0 → 0.0.0-nightly-20260119.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/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 +2 -2
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- 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 +46 -23
- package/src/augmentation.js +23 -0
- package/src/index.js +23 -0
- package/{dist → src}/ui/uploadcarecontroller.d.ts +3 -3
- package/src/ui/uploadcarecontroller.js +24 -0
- package/{dist → src}/ui/uploadcareformview.d.ts +1 -1
- package/src/ui/uploadcareformview.js +23 -0
- package/{dist → src}/uploadcare.d.ts +1 -1
- package/src/uploadcare.js +23 -0
- package/{dist → src}/uploadcarecommand.d.ts +2 -2
- package/src/uploadcarecommand.js +23 -0
- package/{dist → src}/uploadcareconfig.d.ts +1 -1
- package/src/uploadcareconfig.js +23 -0
- package/{dist → src}/uploadcareediting.d.ts +2 -2
- package/src/uploadcareediting.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +5 -5
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +24 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +23 -0
- package/{dist → src}/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditcommand.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditediting.d.ts +2 -2
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimageeditui.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +23 -0
- package/{dist → src}/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +23 -0
- package/{dist → src}/uploadcareimageedit.d.ts +1 -1
- package/src/uploadcareimageedit.js +23 -0
- package/{dist → src}/uploadcareui.d.ts +1 -1
- package/src/uploadcareui.js +23 -0
- package/{dist → src}/uploadcareuploadadapter.d.ts +2 -2
- package/src/uploadcareuploadadapter.js +23 -0
- package/src/utils/common-translations.js +23 -0
- package/{dist → src}/utils/dialogfocusmanagerview.d.ts +2 -2
- package/src/utils/dialogfocusmanagerview.js +23 -0
- package/src/utils/editingutils.js +23 -0
- package/src/utils/isancestor.js +23 -0
- package/src/utils/uploadutils.js +23 -0
- package/theme/uploadcare-form.css +201 -0
- package/theme/uploadcare-theme.css +20 -0
- package/theme/uploadcareimageedit.css +64 -0
- /package/{dist → src}/augmentation.d.ts +0 -0
- /package/{dist → src}/index.d.ts +0 -0
- /package/{dist → src}/utils/common-translations.d.ts +0 -0
- /package/{dist → src}/utils/editingutils.d.ts +0 -0
- /package/{dist → src}/utils/isancestor.d.ts +0 -0
- /package/{dist → src}/utils/uploadutils.d.ts +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
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 _0x270573=_0x5b86;(function(_0x251e97,_0x5931da){const _0x174c98=_0x5b86,_0xe20df6=_0x251e97();while(!![]){try{const _0x468fdf=parseInt(_0x174c98(0x1f9))/0x1+parseInt(_0x174c98(0x1f8))/0x2*(-parseInt(_0x174c98(0x1ed))/0x3)+-parseInt(_0x174c98(0x1eb))/0x4*(parseInt(_0x174c98(0x1f5))/0x5)+-parseInt(_0x174c98(0x1ea))/0x6*(-parseInt(_0x174c98(0x1ff))/0x7)+parseInt(_0x174c98(0x1fb))/0x8+parseInt(_0x174c98(0x1f7))/0x9*(-parseInt(_0x174c98(0x1f6))/0xa)+parseInt(_0x174c98(0x1f4))/0xb;if(_0x468fdf===_0x5931da)break;else _0xe20df6['push'](_0xe20df6['shift']());}catch(_0x3e4a4f){_0xe20df6['push'](_0xe20df6['shift']());}}}(_0x2aa2,0xb4a1e));import{Plugin as _0x15656e}from'ckeditor5/src/core.js';import{Notification as _0x3f96b2}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x144ff5}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5d7624}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x10bd81}from'../uploadcareediting.js';function _0x5b86(_0x4c8381,_0x2445fd){const _0x2aa2ef=_0x2aa2();return _0x5b86=function(_0x5b86d9,_0x2a9857){_0x5b86d9=_0x5b86d9-0x1ea;let _0x32a167=_0x2aa2ef[_0x5b86d9];return _0x32a167;},_0x5b86(_0x4c8381,_0x2445fd);}function _0x2aa2(){const _0x5f2657=['103628vgoqSs','isOfficialPlugin','498cNOrCk','28FgGwjE','uploadcareImageReplace','102QDNeEI','pluginName','isPremiumPlugin','ImageEditing','add','ImageUtils','UploadcareImageEditEditing','7849523cgjoDM','238215ShfhhL','374830dwIjAM','315riSjuC','61930wRDmTS','1419286jHvpnm','commands','611800XqETpF','init','uploadcareImageEdit','requires'];_0x2aa2=function(){return _0x5f2657;};return _0x2aa2();}export class UploadcareImageEditEditing extends _0x15656e{static get[_0x270573(0x1ee)](){const _0xc7d7e6=_0x270573;return _0xc7d7e6(0x1f3);}static get[_0x270573(0x1fe)](){const _0x291a83=_0x270573;return[_0x10bd81,_0x3f96b2,_0x291a83(0x1f2),_0x291a83(0x1f0)];}static get[_0x270573(0x200)](){return!0x0;}static get[_0x270573(0x1ef)](){return!0x0;}[_0x270573(0x1fc)](){const _0x368b1c=_0x270573,{editor:_0x2fcd0b}=this;_0x2fcd0b[_0x368b1c(0x1fa)][_0x368b1c(0x1f1)](_0x368b1c(0x1fd),new _0x144ff5(_0x2fcd0b)),_0x2fcd0b[_0x368b1c(0x1fa)][_0x368b1c(0x1f1)](_0x368b1c(0x1ec),new _0x5d7624(_0x2fcd0b));}}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module uploadcare/uploadcareimageedit/uploadcareimageeditui
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from '
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
10
|
import '@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';
|
|
11
11
|
import '../../theme/uploadcare-theme.css';
|
|
12
12
|
/**
|
|
@@ -0,0 +1,23 @@
|
|
|
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 _0x6cfac5}from'ckeditor5/src/core.js';import{ButtonView as _0x207e0b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x553a97}from'ckeditor5/src/icons.js';import{createElement as _0x1f13a3}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 _0x6cfac5{['_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 _0x50e31d=this['editor'];_0x50e31d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x11484a=>{const _0x22518e=_0x50e31d['commands']['get']('uploadcareImageEdit'),_0x3b2720=new _0x207e0b(_0x11484a),t=_0x11484a['t'];return _0x3b2720['set']({'icon':_0x553a97,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3b2720['bind']('isEnabled')['to'](_0x22518e),_0x3b2720['bind']('isOn')['to'](_0x22518e,'isActive'),this['listenTo'](_0x3b2720,'execute',()=>{_0x50e31d['execute']('uploadcareImageEdit'),_0x50e31d['editing']['view']['focus']();}),_0x3b2720;}),this['_initConfig']();}['_initConfig'](){const _0x206fb9=_0x1f13a3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x206fb9),this['listenTo'](this['editor'],'destroy',()=>{_0x206fb9['remove']();});}}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 _0x1a71(_0x465c77,_0x39812b){const _0x3f355f=_0x3f35();return _0x1a71=function(_0x1a7131,_0xdb92f1){_0x1a7131=_0x1a7131-0xd4;let _0x47c912=_0x3f355f[_0x1a7131];return _0x47c912;},_0x1a71(_0x465c77,_0x39812b);}const _0xbd8785=_0x1a71;function _0x3f35(){const _0x3febdb=['1719522AsFhDN','getSelectedElement','refresh','selection','setAttributes','10565SEFldI','removeAttribute','isEnabled','2317bajVnq','9075gXcGrj','document','5038410gygkAu','change','227756EyUcRz','element','78OmVdTT','2712GdSrBB','execute','imageInline','srcset','editor','479628spxaCi','model','sizes','imageBlock','220WaTBJi'];_0x3f35=function(){return _0x3febdb;};return _0x3f35();}(function(_0x30fc88,_0x52a23b){const _0x166261=_0x1a71,_0x566ab0=_0x30fc88();while(!![]){try{const _0x45f4ed=parseInt(_0x166261(0xe5))/0x1+parseInt(_0x166261(0xe7))/0x2*(parseInt(_0x166261(0xe1))/0x3)+-parseInt(_0x166261(0xd7))/0x4*(-parseInt(_0x166261(0xdd))/0x5)+parseInt(_0x166261(0xed))/0x6+parseInt(_0x166261(0xe0))/0x7*(-parseInt(_0x166261(0xe8))/0x8)+parseInt(_0x166261(0xd8))/0x9+-parseInt(_0x166261(0xe3))/0xa;if(_0x45f4ed===_0x52a23b)break;else _0x566ab0['push'](_0x566ab0['shift']());}catch(_0x4c9903){_0x566ab0['push'](_0x566ab0['shift']());}}}(_0x3f35,0x1c89c));import{Command as _0x2efae7}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x2efae7{[_0xbd8785(0xda)](){const _0x19ef6a=_0xbd8785,_0xc3621d=this[_0x19ef6a(0xec)][_0x19ef6a(0xd4)][_0x19ef6a(0xe2)][_0x19ef6a(0xdb)][_0x19ef6a(0xd9)]();this[_0x19ef6a(0xdf)]=Boolean(_0xc3621d&&(_0xc3621d['is'](_0x19ef6a(0xe6),_0x19ef6a(0xd6))||_0xc3621d['is'](_0x19ef6a(0xe6),_0x19ef6a(0xea))));}[_0xbd8785(0xe9)](_0xe05629){const _0x341950=_0xbd8785,_0x4af020=this[_0x341950(0xec)][_0x341950(0xd4)][_0x341950(0xe2)][_0x341950(0xdb)][_0x341950(0xd9)]();this[_0x341950(0xec)][_0x341950(0xd4)][_0x341950(0xe4)](_0x1885ea=>{const _0x29a15f=_0x341950;_0x1885ea[_0x29a15f(0xdc)](_0xe05629,_0x4af020),_0x1885ea[_0x29a15f(0xde)](_0x29a15f(0xeb),_0x4af020),_0x1885ea[_0x29a15f(0xde)](_0x29a15f(0xd5),_0x4af020);});}}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module uploadcare/uploadcareimageedit
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from '
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { UploadcareImageEditEditing } from './uploadcareimageedit/uploadcareimageeditediting.js';
|
|
11
11
|
import { UploadcareImageEditUI } from './uploadcareimageedit/uploadcareimageeditui.js';
|
|
12
12
|
/**
|
|
@@ -0,0 +1,23 @@
|
|
|
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 _0x410261=_0x5a5a;(function(_0x407757,_0x4ad393){var _0x4ddc36=_0x5a5a,_0x9f6f0e=_0x407757();while(!![]){try{var _0x1ad61a=parseInt(_0x4ddc36(0x11c))/0x1+-parseInt(_0x4ddc36(0x115))/0x2+parseInt(_0x4ddc36(0x113))/0x3*(-parseInt(_0x4ddc36(0x11a))/0x4)+parseInt(_0x4ddc36(0x111))/0x5*(-parseInt(_0x4ddc36(0x10f))/0x6)+-parseInt(_0x4ddc36(0x116))/0x7+-parseInt(_0x4ddc36(0x117))/0x8+-parseInt(_0x4ddc36(0x11d))/0x9*(-parseInt(_0x4ddc36(0x112))/0xa);if(_0x1ad61a===_0x4ad393)break;else _0x9f6f0e['push'](_0x9f6f0e['shift']());}catch(_0xc35533){_0x9f6f0e['push'](_0x9f6f0e['shift']());}}}(_0x8544,0xe426b));function _0x8544(){var _0x333134=['13405257OWbnlm','33864iyXwHO','UploadcareImageEdit','1315YeIGnZ','40UpXfgz','45870WvoXCf','isPremiumPlugin','2037228YcBMCG','11396770sCJElS','2916208kKVxOX','requires','isOfficialPlugin','452NxmByD','pluginName','1200007QCzZuZ'];_0x8544=function(){return _0x333134;};return _0x8544();}import{Plugin as _0x5d871b}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x467f4c}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x5a5a(_0x392d77,_0x125261){var _0x85442f=_0x8544();return _0x5a5a=function(_0x5a5af7,_0x3ede14){_0x5a5af7=_0x5a5af7-0x10f;var _0x5a027d=_0x85442f[_0x5a5af7];return _0x5a027d;},_0x5a5a(_0x392d77,_0x125261);}import{UploadcareImageEditUI as _0x4142d5}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x5d871b{static get[_0x410261(0x11b)](){var _0x40b072=_0x410261;return _0x40b072(0x110);}static get[_0x410261(0x118)](){return[_0x467f4c,_0x4142d5];}static get[_0x410261(0x119)](){return!0x0;}static get[_0x410261(0x114)](){return!0x0;}}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module uploadcare/uploadcareui
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from '
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
10
|
import '@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';
|
|
11
11
|
import '../theme/uploadcare-theme.css';
|
|
12
12
|
import '../theme/uploadcareimageedit.css';
|
|
@@ -0,0 +1,23 @@
|
|
|
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 _0x4dcea8=_0x9cd5;(function(_0x5f1e41,_0x271b98){const _0x470ccc=_0x9cd5,_0x59c1ac=_0x5f1e41();while(!![]){try{const _0xc36ceb=parseInt(_0x470ccc(0x1a4))/0x1+-parseInt(_0x470ccc(0x1af))/0x2*(parseInt(_0x470ccc(0x1b8))/0x3)+-parseInt(_0x470ccc(0x1a8))/0x4+parseInt(_0x470ccc(0x1e1))/0x5*(-parseInt(_0x470ccc(0x1b9))/0x6)+-parseInt(_0x470ccc(0x1c1))/0x7+parseInt(_0x470ccc(0x19a))/0x8*(-parseInt(_0x470ccc(0x1a2))/0x9)+parseInt(_0x470ccc(0x1c2))/0xa;if(_0xc36ceb===_0x271b98)break;else _0x59c1ac['push'](_0x59c1ac['shift']());}catch(_0x48ad19){_0x59c1ac['push'](_0x59c1ac['shift']());}}}(_0x3449,0x9c61d));import{Plugin as _0x386a90}from'ckeditor5/src/core.js';import{IconDropbox as _0x58bb16,IconFacebook as _0x2eb2f8,IconGoogleDrive as _0x2cd82a,IconGooglePhotos as _0x5acbd5,IconUploadcareImageUpload as _0x4e929a,IconUploadcareLink as _0x57d734,IconOneDrive as _0x564018}from'ckeditor5/src/icons.js';function _0x9cd5(_0x211d58,_0x22dddd){const _0x34495f=_0x3449();return _0x9cd5=function(_0x9cd59c,_0x44b72c){_0x9cd59c=_0x9cd59c-0x197;let _0x1896a9=_0x34495f[_0x9cd59c];return _0x1896a9;},_0x9cd5(_0x211d58,_0x22dddd);}import{ButtonView as _0x4eca97,MenuBarMenuListItemButtonView as _0x55f544}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x1b319f}from'./uploadcareconfig.js';import{getTranslation as _0x3273a0}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x3449(){const _0x338cb2=['isEnabled','map','registerIntegration','uploadcare.uploader.sourceList','_createToolbarButton','shortText','get','1305SodIIp','evaluationLimit','140234KEcjyT','upload','uploadcareLicenseKeyNotAllowed','_normalizeConfigSourceList','3830916JfhAxF','url','Facebook','_showLicenseError','uploadcareLicenseKeyUsageLimit','label','plugins','2aVmvsU','isPremiumPlugin','uploadcareLicenseKeyInvalid','editor','_createDropdownButtons','bind','init','uploadcareLicenseKeyValid','OneDrive','1191315bZuJpf','4896FeGvTX','Replace','icon','Uploadcare','assetManager','isImageSelected','Dropbox','Insert','3365621jHiScK','33961270nJnszL','GDrive','type','usageLimit','text','_createButton','forEach','config','_licenseKeyCheckInterval','Local','commands','UploadcareUI','domainLimit','withText','locale','execute','isOfficialPlugin','destroy','licenseKey','uploadcareLicenseKeyExpired','tooltip','has','push','_getIntegrationKey','GPhotos','_createMenuBarButtons','expired','URL','pluginName','uploadcare','entries','3590gZfvha','featureNotAllowed','invalid','afterInit','uploadcareLicenseKeyEvaluationLimit','reduce','uploadcareLicenseKeyDomainLimit','ImageInsertUI','26168fENyxz'];_0x3449=function(){return _0x338cb2;};return _0x3449();}export class UploadcareUI extends _0x386a90{[_0x4dcea8(0x1d4)];[_0x4dcea8(0x1ca)];static get[_0x4dcea8(0x1de)](){const _0x5394f2=_0x4dcea8;return _0x5394f2(0x1cd);}static get[_0x4dcea8(0x1d2)](){return!0x0;}static get[_0x4dcea8(0x1b0)](){return!0x0;}[_0x4dcea8(0x1b5)](){const _0x50d7c2=_0x4dcea8;this[_0x50d7c2(0x1d4)]=this[_0x50d7c2(0x1b2)][_0x50d7c2(0x1c9)][_0x50d7c2(0x1a1)](_0x50d7c2(0x1d4));const _0x23537e=this[_0x50d7c2(0x1b2)];this[_0x50d7c2(0x1ca)]=setInterval(()=>{const _0x54ed4c=_0x50d7c2;let _0x344a9a;for(const _0x31ff90 in _0x23537e){const _0x3ebd41=_0x31ff90,_0x5242b1=_0x23537e[_0x3ebd41];if(_0x54ed4c(0x1b6)==_0x5242b1||_0x54ed4c(0x1b1)==_0x5242b1||_0x54ed4c(0x1d5)==_0x5242b1||_0x54ed4c(0x198)==_0x5242b1||_0x54ed4c(0x1a6)==_0x5242b1||_0x54ed4c(0x1e5)==_0x5242b1||_0x54ed4c(0x1ac)==_0x5242b1){delete _0x23537e[_0x3ebd41],_0x344a9a=_0x5242b1,clearInterval(this[_0x54ed4c(0x1ca)]),this[_0x54ed4c(0x1ca)]=void 0x0;break;}}_0x54ed4c(0x1b1)==_0x344a9a&&_0x23537e[_0x54ed4c(0x1ab)](_0x54ed4c(0x1e3)),_0x54ed4c(0x1d5)==_0x344a9a&&_0x23537e[_0x54ed4c(0x1ab)](_0x54ed4c(0x1dc)),_0x54ed4c(0x198)==_0x344a9a&&_0x23537e[_0x54ed4c(0x1ab)](_0x54ed4c(0x1ce)),_0x54ed4c(0x1a6)==_0x344a9a&&_0x23537e[_0x54ed4c(0x1ab)](_0x54ed4c(0x1e2),_0x54ed4c(0x1bc)),_0x54ed4c(0x1e5)==_0x344a9a&&_0x23537e[_0x54ed4c(0x1ab)](_0x54ed4c(0x1a3)),_0x54ed4c(0x1ac)==_0x344a9a&&_0x23537e[_0x54ed4c(0x1ab)](_0x54ed4c(0x1c5));},0x3e8);}[_0x4dcea8(0x1e4)](){const _0x441fa6=_0x4dcea8,{editor:_0x2d30e9}=this,_0x870c83=_0x2d30e9[_0x441fa6(0x1cc)][_0x441fa6(0x1a1)](_0x441fa6(0x1df));if(!_0x870c83)return;const _0x3b0941=this[_0x441fa6(0x1a7)](_0x2d30e9[_0x441fa6(0x1c9)][_0x441fa6(0x1a1)](_0x441fa6(0x19e)))[_0x441fa6(0x197)]((_0x2a82c5,_0x16c99b)=>{const _0x413695=_0x441fa6,_0x256df6=this[_0x413695(0x1d9)](_0x16c99b[_0x413695(0x1c4)]);return _0x2a82c5[_0x256df6]||(_0x2a82c5[_0x256df6]=[]),_0x2a82c5[_0x256df6][_0x413695(0x1d8)](_0x16c99b),_0x2a82c5;},{});_0x2d30e9[_0x441fa6(0x1ae)][_0x441fa6(0x1d7)](_0x441fa6(0x199))&&_0x2d30e9[_0x441fa6(0x1cc)][_0x441fa6(0x1a1)](_0x441fa6(0x1df))&&Object[_0x441fa6(0x1e0)](_0x3b0941)[_0x441fa6(0x1c8)](([_0x4569ff,_0x3703ec])=>{const _0x5c0cf6=_0x441fa6;_0x2d30e9[_0x5c0cf6(0x1ae)][_0x5c0cf6(0x1a1)](_0x5c0cf6(0x199))[_0x5c0cf6(0x19d)]({'name':_0x4569ff,'observable':()=>_0x870c83,'buttonViewCreator':()=>this[_0x5c0cf6(0x19f)](_0x3703ec),'formViewCreator':()=>this[_0x5c0cf6(0x1b3)](_0x3703ec),'menuBarButtonViewCreator':()=>this[_0x5c0cf6(0x1db)](_0x3703ec),'override':_0x5c0cf6(0x1bd)!==_0x4569ff});});}[_0x4dcea8(0x1d3)](){const _0x16d62b=_0x4dcea8;super[_0x16d62b(0x1d3)](),this[_0x16d62b(0x1ca)]&&clearInterval(this[_0x16d62b(0x1ca)]);}[_0x4dcea8(0x1a7)](_0x166498){const _0xcfec5b=_0x4dcea8,{locale:_0x9acae3}=this[_0xcfec5b(0x1b2)];return _0x166498[_0xcfec5b(0x19c)](_0x3579d8=>{const _0x230d90=_0xcfec5b,_0x1bbf34=_0x3273a0(_0x9acae3,_0x3579d8,_0x230d90(0x1c0));switch(_0x3579d8){case _0x1b319f[_0x230d90(0x1cb)]:return{'icon':_0x4e929a,'type':_0x1b319f[_0x230d90(0x1cb)],..._0x1bbf34};case _0x1b319f[_0x230d90(0x1dd)]:return{'icon':_0x57d734,'type':_0x1b319f[_0x230d90(0x1dd)],..._0x1bbf34};case _0x1b319f[_0x230d90(0x1bf)]:return{'icon':_0x58bb16,'type':_0x1b319f[_0x230d90(0x1bf)],..._0x1bbf34};case _0x1b319f[_0x230d90(0x1aa)]:return{'icon':_0x2eb2f8,'type':_0x1b319f[_0x230d90(0x1aa)],..._0x1bbf34};case _0x1b319f[_0x230d90(0x1c3)]:return{'icon':_0x2cd82a,'type':_0x1b319f[_0x230d90(0x1c3)],..._0x1bbf34};case _0x1b319f[_0x230d90(0x1da)]:return{'icon':_0x5acbd5,'type':_0x1b319f[_0x230d90(0x1da)],..._0x1bbf34};case _0x1b319f[_0x230d90(0x1b7)]:return{'icon':_0x564018,'type':_0x1b319f[_0x230d90(0x1b7)],..._0x1bbf34};}});}[_0x4dcea8(0x1d9)](_0x5efa12){const _0x1fc7df=_0x4dcea8;switch(_0x5efa12){case _0x1b319f[_0x1fc7df(0x1cb)]:return _0x1fc7df(0x1a5);case _0x1b319f[_0x1fc7df(0x1dd)]:return _0x1fc7df(0x1a9);default:return _0x1fc7df(0x1bd);}}[_0x4dcea8(0x1c7)](_0x507214,_0x6071a9){const _0x166b0e=_0x4dcea8,_0x26eacb=this[_0x166b0e(0x1b2)],_0x32374d=new _0x507214(_0x26eacb[_0x166b0e(0x1d0)]),_0x5b307e=_0x26eacb[_0x166b0e(0x1cc)][_0x166b0e(0x1a1)](_0x166b0e(0x1df));return _0x32374d[_0x166b0e(0x1b4)](_0x166b0e(0x19b))['to'](_0x5b307e),_0x32374d['on'](_0x166b0e(0x1d1),()=>{const _0x2497cd=_0x166b0e;_0x5b307e[_0x2497cd(0x1d1)](_0x6071a9);}),_0x32374d;}[_0x4dcea8(0x19f)](_0xb6a24c){const _0x522090=_0x4dcea8,{locale:_0x2e4f26}=this[_0x522090(0x1b2)],_0x232481=this[_0x522090(0x1b2)][_0x522090(0x1ae)][_0x522090(0x1a1)](_0x522090(0x199)),_0x442e5a=_0xb6a24c[0x0],_0x340742=this[_0x522090(0x1c7)](_0x4eca97,_0x442e5a[_0x522090(0x1c4)]);return _0x340742[_0x522090(0x1bb)]=_0x442e5a[_0x522090(0x1bb)],_0x340742[_0x522090(0x1b4)](_0x522090(0x1ad))['to'](_0x232481,_0x522090(0x1be),_0x59a4b1=>_0x3273a0(_0x2e4f26,_0x442e5a[_0x522090(0x1c4)],_0x59a4b1?_0x522090(0x1ba):_0x522090(0x1c0))[_0x522090(0x1c6)]),_0x340742[_0x522090(0x1d6)]=!0x0,_0x340742;}[_0x4dcea8(0x1b3)](_0x389e36){const _0x513775=_0x4dcea8,{locale:_0x993181}=this[_0x513775(0x1b2)],_0x4d630a=this[_0x513775(0x1b2)][_0x513775(0x1ae)][_0x513775(0x1a1)](_0x513775(0x199));return _0x389e36[_0x513775(0x19c)](_0x4637bc=>{const _0xeebfd5=_0x513775,_0x893033=this[_0xeebfd5(0x1c7)](_0x4eca97,_0x4637bc[_0xeebfd5(0x1c4)]);return _0x893033[_0xeebfd5(0x1cf)]=!0x0,_0x893033[_0xeebfd5(0x1bb)]=_0x4637bc[_0xeebfd5(0x1bb)],_0x893033[_0xeebfd5(0x1b4)](_0xeebfd5(0x1ad))['to'](_0x4d630a,_0xeebfd5(0x1be),_0x12cbe8=>_0x3273a0(_0x993181,_0x4637bc[_0xeebfd5(0x1c4)],_0x12cbe8?_0xeebfd5(0x1ba):_0xeebfd5(0x1c0))[_0xeebfd5(0x1c6)]),_0x893033;});}[_0x4dcea8(0x1db)](_0x15544c){const _0x313430=_0x4dcea8;return _0x15544c[_0x313430(0x19c)](_0x294437=>{const _0x273dd7=_0x313430,_0x537abe=this[_0x273dd7(0x1c7)](_0x55f544,_0x294437[_0x273dd7(0x1c4)]);return _0x537abe[_0x273dd7(0x1bb)]=_0x294437[_0x273dd7(0x1bb)],_0x537abe[_0x273dd7(0x1ad)]=_0x294437[_0x273dd7(0x1a0)],_0x537abe;});}}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module uploadcare/uploadcareuploadadapter
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from '
|
|
10
|
-
import { FileRepository } from '
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { FileRepository } from 'ckeditor5/src/upload.js';
|
|
11
11
|
import { UploadcareEditing } from './uploadcareediting.js';
|
|
12
12
|
/**
|
|
13
13
|
* A plugin that enables file uploads in CKEditor 5 using the Uploadcare server–side connector.
|
|
@@ -0,0 +1,23 @@
|
|
|
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 _0x4705a7}from'ckeditor5/src/core.js';import{FileRepository as _0x50f94f}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2bb6ed}from'./uploadcareediting.js';import{UploadUtils as _0x493209}from'./utils/uploadutils.js';import{getImageUrls as _0x51d76a}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x4705a7{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x50f94f,_0x2bb6ed];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x200223=this['editor'];if(!!!_0x200223['config']['get']('uploadcare'))return;_0x200223['plugins']['get'](_0x50f94f)['createUploadAdapter']=_0x5d621a=>new k(_0x5d621a,_0x200223),_0x200223['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x46dc08,{imageElement:_0x281bb1,data:_0x381ff4})=>{_0x200223['model']['change'](_0x5eaf39=>{_0x5eaf39['setAttribute']('uploadcareImageId',_0x381ff4['uploadcareImageId'],_0x281bb1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x50234b,_0x30254c){this['loader']=_0x50234b,this['editor']=_0x30254c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3aa5c7=await this['loader']['file'];return _0x493209['upload']({'file':_0x3aa5c7,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x50f66b=>{_0x50f66b&&_0x50f66b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x50f66b['value']);}})['then'](async _0x3d2101=>{const {imageFallbackUrl:_0x29d11b,imageSources:_0x54753b}=_0x51d76a(_0x3d2101['cdnUrl'],_0x3d2101['imageInfo']['width']);return{'uploadcareImageId':_0x3d2101['uuid'],'default':_0x29d11b,'sources':_0x54753b};})['catch'](()=>{const _0x5da110=t('Cannot\x20upload\x20file:')+('\x20'+_0x3aa5c7['name']+'.');return Promise['reject'](_0x5da110);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -0,0 +1,23 @@
|
|
|
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{UploadcareSource as _0x1b8874}from'../uploadcareconfig.js';export function getTranslation(_0xa076cd,_0x277542,_0x8d0325){const t=_0xa076cd['t'],_0x4bed4f=_0xa076cd['t'];switch(_0x277542){case _0x1b8874['Local']:return{'text':_0x4bed4f('Insert'===_0x8d0325?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4bed4f('From\x20computer')};case _0x1b8874['URL']:return{'text':'Insert'===_0x8d0325?_0x4bed4f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4bed4f('Via\x20URL')};case _0x1b8874['Dropbox']:return{'text':t('Insert'===_0x8d0325?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x1b8874['Facebook']:return{'text':t('Insert'===_0x8d0325?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x1b8874['GDrive']:return{'text':t('Insert'===_0x8d0325?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x1b8874['GPhotos']:return{'text':t('Insert'===_0x8d0325?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x1b8874['OneDrive']:return{'text':t('Insert'===_0x8d0325?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x277542;}}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module uploadcare/utils/dialogfocusmanagerview
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from '
|
|
9
|
-
import { View, type TemplateDefinition } from '
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View, type TemplateDefinition } from 'ckeditor5/src/ui.js';
|
|
10
10
|
import '../../theme/uploadcare-form.css';
|
|
11
11
|
/**
|
|
12
12
|
* A helper class that facilitates managing focus within a dialog form. It provides a mechanism
|
|
@@ -0,0 +1,23 @@
|
|
|
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 _0x1da7(_0x4e7fcd,_0x4fb166){var _0x19a91c=_0x19a9();return _0x1da7=function(_0x1da7a1,_0x629043){_0x1da7a1=_0x1da7a1-0x17c;var _0x2b0545=_0x19a91c[_0x1da7a1];return _0x2b0545;},_0x1da7(_0x4e7fcd,_0x4fb166);}var _0x352ae3=_0x1da7;(function(_0x3b4d27,_0x3686c4){var _0x495400=_0x1da7,_0x23a47b=_0x3b4d27();while(!![]){try{var _0x582d90=parseInt(_0x495400(0x18e))/0x1*(-parseInt(_0x495400(0x18c))/0x2)+-parseInt(_0x495400(0x17e))/0x3+parseInt(_0x495400(0x17d))/0x4+-parseInt(_0x495400(0x188))/0x5*(parseInt(_0x495400(0x184))/0x6)+-parseInt(_0x495400(0x183))/0x7+parseInt(_0x495400(0x185))/0x8+parseInt(_0x495400(0x17c))/0x9*(parseInt(_0x495400(0x18d))/0xa);if(_0x582d90===_0x3686c4)break;else _0x23a47b['push'](_0x23a47b['shift']());}catch(_0x39353f){_0x23a47b['push'](_0x23a47b['shift']());}}}(_0x19a9,0x8a883));import{FocusTracker as _0xcec784}from'ckeditor5/src/utils.js';import{View as _0x542d87,FocusCycler as _0x2300ec}from'ckeditor5/src/ui.js';function _0x19a9(){var _0x36eb88=['886324VvDspJ','2103480WUgfZW','focusTracker','createCollection','bindTemplate','forwardCycle','5077373lnshTV','36eyFNjP','5015568VqtpUq','true','fire','42980HESWJn','focusCycler','div','getFocusableElement','1236190lkvBoG','955300XDbBva','1xBmGfE','171EgjBLg'];_0x19a9=function(){return _0x36eb88;};return _0x19a9();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x542d87{[_0x352ae3(0x17f)];[_0x352ae3(0x189)];constructor(_0x10de26){var _0x2158dd=_0x352ae3;super(_0x10de26),this[_0x2158dd(0x17f)]=new _0xcec784(),this[_0x2158dd(0x189)]=new _0x2300ec({'focusables':this[_0x2158dd(0x180)](),'focusTracker':this[_0x2158dd(0x17f)]});}[_0x352ae3(0x18b)](){var _0x3cd412=_0x352ae3;return{'tag':_0x3cd412(0x18a),'attributes':{'aria-hidden':_0x3cd412(0x186),'tabindex':'0'},'on':{'focus':this[_0x3cd412(0x181)]['to'](()=>{var _0x3da7a2=_0x3cd412;this[_0x3da7a2(0x189)][_0x3da7a2(0x187)](_0x3da7a2(0x182));})}};}}
|
|
@@ -0,0 +1,23 @@
|
|
|
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(_0x47c529,_0x3f4039){const _0x4cc736=_0x59e1,_0x1f8c24=_0x47c529();while(!![]){try{const _0x3cca35=parseInt(_0x4cc736(0x189))/0x1*(-parseInt(_0x4cc736(0x18f))/0x2)+parseInt(_0x4cc736(0x18c))/0x3+-parseInt(_0x4cc736(0x16c))/0x4*(-parseInt(_0x4cc736(0x171))/0x5)+-parseInt(_0x4cc736(0x175))/0x6*(parseInt(_0x4cc736(0x17a))/0x7)+parseInt(_0x4cc736(0x193))/0x8*(-parseInt(_0x4cc736(0x195))/0x9)+-parseInt(_0x4cc736(0x173))/0xa+parseInt(_0x4cc736(0x187))/0xb;if(_0x3cca35===_0x3f4039)break;else _0x1f8c24['push'](_0x1f8c24['shift']());}catch(_0x360052){_0x1f8c24['push'](_0x1f8c24['shift']());}}}(_0x4b72,0x457e4));import{global as _0x20fa18,DomEmitterMixin as _0x1adad4}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x579dd9){const _0x11a189=_0x59e1,_0x3045e9=z(_0x579dd9);return _0x3b52b0=>!(!_0x3b52b0||!_0x3b52b0['is'](_0x11a189(0x186),_0x11a189(0x184))&&!_0x3b52b0['is'](_0x11a189(0x186),_0x11a189(0x16b)))&&(!!_0x3b52b0[_0x11a189(0x188)](_0x11a189(0x180))||!!_0x3b52b0[_0x11a189(0x188)](_0x11a189(0x194))&&_0x3045e9(_0x3b52b0[_0x11a189(0x166)](_0x11a189(0x194))));}function _0x4b72(){const _0x14ce96=['removeClass','match','(max-width:\x20','getAttribute','join','/-/resize/','change','plugins','imageInline','12KGUhco','get','ImageUtils','function','editing','102815CVBYws','mapper','4726440VjwFCS','setStyle','2273268Dtqzoy','baseURI','isArray','document','listenTo','7dxTidK','viewToDom','stopListening','location','window','image-processing','uploadcareImageId','removeStyle','toViewElement','px)\x20100vw,\x20','imageBlock','origin','element','13841036cVDcAt','hasAttribute','3mNshfv','domConverter','findViewImgElement','1690767UsHMjs','height','x/\x20','157302luzQnE','replace','map','image/webp','17560sMmjpx','src','2097vVTLne','load','addClass','aspect-ratio','filter','width','view','some'];_0x4b72=function(){return _0x14ce96;};return _0x4b72();}function _0x59e1(_0x4dd82c,_0x3935af){const _0x4b7276=_0x4b72();return _0x59e1=function(_0x59e145,_0x477266){_0x59e145=_0x59e145-0x163;let _0x40c155=_0x4b7276[_0x59e145];return _0x40c155;},_0x59e1(_0x4dd82c,_0x3935af);}export function getImageUrls(_0x123109,_0x2155bb){const _0x3842c9=_0x59e1,_0x1a7ac1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x3842c9(0x199)](_0x1eaebb=>_0x1eaebb<=_0x2155bb)[_0x3842c9(0x191)](_0x121525=>_0x123109[_0x3842c9(0x190)](/\/$/,'')+_0x3842c9(0x168)+_0x121525+_0x3842c9(0x18e)+_0x121525+'w');return{'imageFallbackUrl':_0x123109,'imageSources':[{'srcset':_0x1a7ac1[_0x3842c9(0x167)](',\x20'),'sizes':_0x3842c9(0x165)+_0x2155bb+_0x3842c9(0x183)+_0x2155bb+'px','type':_0x3842c9(0x192)}]};}export function getImageDimension(_0x5eb40a,_0x3c9d13,_0x5b79e7){const _0x551ba2=_0x59e1,_0x5248d5=_0x5eb40a[_0x551ba2(0x164)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5248d5?parseInt(_0x5248d5[0x1],0xa):_0x3c9d13,'height':_0x5248d5?parseInt(_0x5248d5[0x2],0xa):_0x5b79e7};}export function showImageProcessingIndicator(_0x4453fe,_0x40d918){const _0x5530ab=_0x59e1,_0x1cdbc2=new(_0x1adad4())(),_0x1fef64=_0x4453fe[_0x5530ab(0x16a)][_0x5530ab(0x16d)](_0x5530ab(0x16e)),_0x2a9e38=_0x4453fe[_0x5530ab(0x170)][_0x5530ab(0x172)][_0x5530ab(0x182)](_0x40d918),_0x45fcbb=_0x1fef64[_0x5530ab(0x18b)](_0x2a9e38),_0x61e4a9=_0x4453fe[_0x5530ab(0x170)][_0x5530ab(0x19b)][_0x5530ab(0x18a)][_0x5530ab(0x17b)](_0x45fcbb),_0x3fc63d=_0x40d918[_0x5530ab(0x166)](_0x5530ab(0x19a)),_0x2b4ee1=_0x40d918[_0x5530ab(0x166)](_0x5530ab(0x18d)),_0x9f8f5c=_0x5530ab(0x17f);_0x4453fe[_0x5530ab(0x170)][_0x5530ab(0x19b)][_0x5530ab(0x169)](_0x4dada9=>{const _0x1d08d6=_0x5530ab;_0x4dada9[_0x1d08d6(0x197)](_0x9f8f5c,_0x2a9e38),_0x4dada9[_0x1d08d6(0x174)](_0x1d08d6(0x198),_0x3fc63d+'/'+_0x2b4ee1,_0x45fcbb);}),_0x1cdbc2[_0x5530ab(0x179)](_0x61e4a9,_0x5530ab(0x196),()=>{const _0x54c2d0=_0x5530ab;_0x1cdbc2[_0x54c2d0(0x17c)](_0x61e4a9,_0x54c2d0(0x196)),_0x4453fe[_0x54c2d0(0x170)][_0x54c2d0(0x19b)][_0x54c2d0(0x169)](_0x18c088=>{const _0x57c12d=_0x54c2d0;_0x18c088[_0x57c12d(0x163)](_0x9f8f5c,_0x2a9e38),_0x18c088[_0x57c12d(0x181)](_0x57c12d(0x198),_0x45fcbb);});});}function z(_0x3fab09){const _0x2d3f05=_0x59e1;if(Array[_0x2d3f05(0x177)](_0x3fab09)){const _0x476b96=_0x3fab09[_0x2d3f05(0x191)](z);return _0x3b3d2b=>_0x476b96[_0x2d3f05(0x19c)](_0x5b9ec6=>_0x5b9ec6(_0x3b3d2b));}if(_0x2d3f05(0x185)==_0x3fab09){const _0x4c0144=_0x20fa18[_0x2d3f05(0x17e)][_0x2d3f05(0x17d)][_0x2d3f05(0x185)];return _0x135e45=>new URL(_0x135e45,_0x20fa18[_0x2d3f05(0x178)][_0x2d3f05(0x176)])[_0x2d3f05(0x185)]==_0x4c0144;}return _0x2d3f05(0x16f)==typeof _0x3fab09?_0x3fab09:_0x3fab09 instanceof RegExp?_0x44f63d=>!(!_0x44f63d[_0x2d3f05(0x164)](_0x3fab09)&&!_0x44f63d[_0x2d3f05(0x190)](/^https?:\/\//,'')[_0x2d3f05(0x164)](_0x3fab09)):()=>!0x1;}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 _0x2fbf(){var _0x2edd9b=['1528376eClEfl','38943580aPGnBU','2253XeQVBt','4ODYAQe','target','18yreGIN','1926930dnQxoi','includes','6901720QzzciM','919366GUfQKN','2126lJlrSZ','1070526OfUItG'];_0x2fbf=function(){return _0x2edd9b;};return _0x2fbf();}(function(_0x3ba6a0,_0xe31fd8){var _0x182114=_0x3f08,_0x4e5827=_0x3ba6a0();while(!![]){try{var _0x487ff8=-parseInt(_0x182114(0x12d))/0x1+-parseInt(_0x182114(0x12e))/0x2*(parseInt(_0x182114(0x132))/0x3)+parseInt(_0x182114(0x133))/0x4*(-parseInt(_0x182114(0x136))/0x5)+parseInt(_0x182114(0x12f))/0x6+-parseInt(_0x182114(0x12c))/0x7+-parseInt(_0x182114(0x130))/0x8*(parseInt(_0x182114(0x135))/0x9)+parseInt(_0x182114(0x131))/0xa;if(_0x487ff8===_0xe31fd8)break;else _0x4e5827['push'](_0x4e5827['shift']());}catch(_0x39c710){_0x4e5827['push'](_0x4e5827['shift']());}}}(_0x2fbf,0x92e3c));function _0x3f08(_0x40add8,_0x2a4127){var _0x2fbfc9=_0x2fbf();return _0x3f08=function(_0x3f082c,_0x566b12){_0x3f082c=_0x3f082c-0x12c;var _0x2333de=_0x2fbfc9[_0x3f082c];return _0x2333de;},_0x3f08(_0x40add8,_0x2a4127);}import{getAncestors as _0x270004}from'ckeditor5/src/utils.js';export function isAncestor(_0x37d54c,_0x3720fb){var _0x37048e=_0x3f08;return _0x270004(_0x37d54c[_0x37048e(0x134)])[_0x37048e(0x137)](_0x3720fb);}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 _0x23854a=_0x2f8b;function _0x2f8b(_0x21f889,_0x2e5e0b){var _0x5b2f3c=_0x5b2f();return _0x2f8b=function(_0x2f8b1,_0x4205bc){_0x2f8b1=_0x2f8b1-0x1db;var _0x2d3901=_0x5b2f3c[_0x2f8b1];return _0x2d3901;},_0x2f8b(_0x21f889,_0x2e5e0b);}(function(_0x335ef7,_0x21152a){var _0x445f60=_0x2f8b,_0x442a42=_0x335ef7();while(!![]){try{var _0x3758ae=-parseInt(_0x445f60(0x1e0))/0x1+-parseInt(_0x445f60(0x1de))/0x2*(-parseInt(_0x445f60(0x1dd))/0x3)+parseInt(_0x445f60(0x1dc))/0x4+parseInt(_0x445f60(0x1df))/0x5+-parseInt(_0x445f60(0x1e5))/0x6+parseInt(_0x445f60(0x1e4))/0x7+parseInt(_0x445f60(0x1e2))/0x8*(-parseInt(_0x445f60(0x1e3))/0x9);if(_0x3758ae===_0x21152a)break;else _0x442a42['push'](_0x442a42['shift']());}catch(_0x2318a0){_0x442a42['push'](_0x442a42['shift']());}}}(_0x5b2f,0xcb7b5));import{uploadFile as _0x5ad977,info as _0x1a76cd}from'@uploadcare/upload-client';export class UploadUtils{static[_0x23854a(0x1e1)]({file:_0x2b5d6f,..._0x4a225b}){return _0x5ad977(_0x2b5d6f,_0x4a225b);}static[_0x23854a(0x1db)](_0x36663d,_0x102f00){return _0x1a76cd(_0x36663d,_0x102f00);}}function _0x5b2f(){var _0x5707f0=['1908035QvUwSI','546681quQJIU','upload','4168104JrKdOW','9BchbJL','8578815lejInN','9046332FEpsSt','getInfo','5303568frkmMN','1427499dOBWSt','2sLkVxD'];_0x5b2f=function(){return _0x5707f0;};return _0x5b2f();}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
3
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
@import "@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css";
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
--ck-uploadcare-form-view-width: 700px;
|
|
14
|
+
--ck-uploadcare-external-source-view-height: 350px;
|
|
15
|
+
--ck-uploadcare-color-image-background: oklch(0.97 0 0);
|
|
16
|
+
--ck-uploadcare-color-icon-error: hsl(15, 100%, 43%);
|
|
17
|
+
--ck-uploadcare-color-skeleton: hsl(0, 0%, 98%);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* stylelint-disable no-descending-specificity */
|
|
21
|
+
.ck .ck-uploadcare-form,
|
|
22
|
+
.ck .ck-uploadcare-form:not(#\#) {
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
width: var(--ck-uploadcare-form-view-width);
|
|
25
|
+
|
|
26
|
+
.ck-uploadcare-form__loading {
|
|
27
|
+
.ck-uploadcare-form__loading-spinner {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: var(--ck-uploadcare-external-source-view-height);
|
|
30
|
+
background-color: var(--ck-uploadcare-color-image-background);
|
|
31
|
+
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
|
|
37
|
+
.ck-spinner-container {
|
|
38
|
+
margin-bottom: 10px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ck-uploadcare-form__error {
|
|
44
|
+
.ck-uploadcare-form__error-contents {
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: var(--ck-uploadcare-external-source-view-height);
|
|
47
|
+
background-color: var(--ck-uploadcare-color-image-background);
|
|
48
|
+
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
gap: 5px;
|
|
54
|
+
|
|
55
|
+
h3 {
|
|
56
|
+
font-weight: 700;
|
|
57
|
+
padding: 0;
|
|
58
|
+
margin: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ck-icon {
|
|
62
|
+
color: var(--ck-uploadcare-color-icon-error);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ck-button {
|
|
66
|
+
margin-top: 10px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ck-uploadcare-form__skeleton {
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 115px;
|
|
74
|
+
|
|
75
|
+
div {
|
|
76
|
+
height: 50%;
|
|
77
|
+
display: flex;
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
min-width: 100%;
|
|
80
|
+
flex-direction: row;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
align-items: center;
|
|
83
|
+
|
|
84
|
+
span {
|
|
85
|
+
display: block;
|
|
86
|
+
width: 32px;
|
|
87
|
+
height: 32px;
|
|
88
|
+
background-color: var(--ck-uploadcare-color-skeleton);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
div + div {
|
|
93
|
+
gap: 20px;
|
|
94
|
+
|
|
95
|
+
span:first-child {
|
|
96
|
+
position: absolute;
|
|
97
|
+
left: 8px;
|
|
98
|
+
width: 80px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
span:last-child {
|
|
102
|
+
position: absolute;
|
|
103
|
+
right: 8px;
|
|
104
|
+
width: 80px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
div:first-child {
|
|
109
|
+
gap: 4px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* The following styles overrides the default Uploadcare styles */
|
|
114
|
+
|
|
115
|
+
/* stylelint-disable selector-type-no-unknown */
|
|
116
|
+
.mini-btn {
|
|
117
|
+
display: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.uc-viewport {
|
|
121
|
+
height: var(--ck-uploadcare-external-source-view-height);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
uc-btn-ui button, .uc-primary-btn, .uc-secondary-btn {
|
|
125
|
+
padding: var(--ck-spacing-tiny) var(--ck-spacing-standard);
|
|
126
|
+
min-width: var(--ck-ui-component-min-height);
|
|
127
|
+
min-height: var(--ck-ui-component-min-height);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.uc-primary-btn, uc-btn-ui.uc-primary button {
|
|
131
|
+
@mixin ck-button-colors --ck-color-button-action;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.uc-secondary-btn, uc-btn-ui.uc-secondary button {
|
|
135
|
+
@mixin ck-button-colors --ck-color-button-default;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
uc-upload-list {
|
|
139
|
+
& .uc-toolbar {
|
|
140
|
+
gap: var(--ck-spacing-large);
|
|
141
|
+
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
& .uc-files {
|
|
145
|
+
padding-top: var(--ck-spacing-large);
|
|
146
|
+
max-height: var(--ck-uploadcare-external-source-view-height);
|
|
147
|
+
overflow-y: auto;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.uc-content {
|
|
152
|
+
padding: var(--ck-spacing-large);
|
|
153
|
+
gap: var(--ck-spacing-large);
|
|
154
|
+
|
|
155
|
+
& > .uc-iframe-wrapper {
|
|
156
|
+
height: var(--ck-uploadcare-external-source-view-height);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
& > .uc-toolbar {
|
|
160
|
+
padding: var(--ck-spacing-large) 0 0;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
uc-start-from {
|
|
165
|
+
& .uc-content {
|
|
166
|
+
gap: 0;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
uc-file-item {
|
|
171
|
+
& > .uc-inner {
|
|
172
|
+
font-size: 1em;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
& > .uc-inner:where([finished]) .uc-badge {
|
|
177
|
+
background: var(--ck-color-button-action-active-background);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
uc-external-source .uc-cancel-btn {
|
|
182
|
+
visibility: hidden;
|
|
183
|
+
pointer-events: none;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
uc-activity-header {
|
|
187
|
+
display: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
uc-source-list {
|
|
191
|
+
display: none;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
uc-cloud-image-editor-block {
|
|
195
|
+
[icon="closeMax"] .uc-icon_left {
|
|
196
|
+
transform: rotate(90deg);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
/* stylelint-enable selector-type-no-unknown */
|
|
200
|
+
}
|
|
201
|
+
/* stylelint-enable no-descending-specificity */
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
3
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
.ck-uploadcare-theme {
|
|
11
|
+
--uc-font-size: 13px; /* --ck-font-size-base */
|
|
12
|
+
--uc-radius: 2px; /* --ck-border-radius */
|
|
13
|
+
--uc-padding: calc(0.6em * 1.5); /* --ck-spacing-large */
|
|
14
|
+
|
|
15
|
+
--uc-primary-oklch-light: 54.45% 0.182 263.76;
|
|
16
|
+
--uc-foreground-light: hsl(0, 0%, 20%); /* --ck-color-text */
|
|
17
|
+
--uc-secondary-foreground-light: hsl(0, 0%, 20%); /* --ck-color-text */
|
|
18
|
+
--uc-muted-foreground-light: hsl(0, 0%, 20%); /* --ck-color-text */
|
|
19
|
+
--uc-border-light: hsl(220, 6%, 81%); /* --ck-color-base-border */
|
|
20
|
+
}
|