@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260128.0 → 0.0.0-nightly-20260129.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,24 @@
|
|
|
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 _0x675d64=_0x4ee8;(function(_0x5731ff,_0x362636){const _0xfe854c=_0x4ee8,_0x457991=_0x5731ff();while(!![]){try{const _0x447e9b=-parseInt(_0xfe854c(0x1d3))/0x1+-parseInt(_0xfe854c(0x219))/0x2*(parseInt(_0xfe854c(0x1d7))/0x3)+-parseInt(_0xfe854c(0x1fd))/0x4+parseInt(_0xfe854c(0x218))/0x5+parseInt(_0xfe854c(0x214))/0x6+parseInt(_0xfe854c(0x1de))/0x7*(-parseInt(_0xfe854c(0x1e0))/0x8)+parseInt(_0xfe854c(0x20f))/0x9*(parseInt(_0xfe854c(0x203))/0xa);if(_0x447e9b===_0x362636)break;else _0x457991['push'](_0x457991['shift']());}catch(_0xbb7f55){_0x457991['push'](_0x457991['shift']());}}}(_0x51d5,0x6ab15));import{IconUploadcareImageUpload as _0x19f59e}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x126ed6}from'ckeditor5/src/utils.js';function _0x51d5(){const _0x5f3705=['_initDialog','imageInline','_insertImage','uploadCare','imageBlock','change','allEntries','initFlow','done-click','model','idle','_insertAsset','length','113068VxNUfD','text','_dialog','_editor','getLastPosition','setSelection','291470yDVoXw','get','view','focus','attributes','configElement','setAttribute','document','width','status','ctxElement','image','99FjNzvs','detail','uuid','hide','doneFlow','516684GZTfSO','stopListening','execute','getOutputCollectionState','3511615yRdSwD','8582eUXrLo','editing','show','source-list','85075cgbocP','_formView','plugins','removeSelectionAttribute','3tsCTTs','getSelectedElement','_editing','isOpen','stopDelegating','_type','insertImage','970214fhspsC','element','32kHdBIm','setCurrentActivity','removeAllFiles','EDITOR_TOP_CENTER','Insert','_api','addEventListener','_initListeners','getAPI','imageInfo','destroy','ucContextId','Local','selection','Replace','linkHref'];_0x51d5=function(){return _0x5f3705;};return _0x51d5();}function _0x4ee8(_0x38baf2,_0x1edbdd){const _0x51d5c5=_0x51d5();return _0x4ee8=function(_0x4ee8d9,_0x451474){_0x4ee8d9=_0x4ee8d9-0x1d2;let _0x350dba=_0x51d5c5[_0x4ee8d9];return _0x350dba;},_0x4ee8(_0x38baf2,_0x1edbdd);}import{Dialog as _0x5dd861,DialogViewPosition as _0x9ff603}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x17f177}from'./uploadcareformview.js';import{UploadcareSource as _0x4d7845}from'../uploadcareconfig.js';import{getTranslation as _0x5ca3b4}from'../utils/common-translations.js';import{getImageUrls as _0x9c8ebc,getImageDimension as _0x39709c}from'../utils/editingutils.js';import{isAncestor as _0x522894}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x126ed6(){[_0x675d64(0x200)];[_0x675d64(0x1ff)];[_0x675d64(0x1d9)];[_0x675d64(0x1e5)];[_0x675d64(0x1dc)]=null;[_0x675d64(0x1d4)]=null;constructor(_0x4c56c4,_0x2baecf,_0x367a78){const _0x5c8bf1=_0x675d64;super(),this[_0x5c8bf1(0x200)]=_0x4c56c4,this[_0x5c8bf1(0x1d9)]=_0x2baecf,this[_0x5c8bf1(0x1ff)]=_0x4c56c4[_0x5c8bf1(0x1d5)][_0x5c8bf1(0x204)](_0x5dd861),this[_0x5c8bf1(0x1e5)]=_0x2baecf[_0x5c8bf1(0x20d)][_0x5c8bf1(0x1e8)](),this[_0x5c8bf1(0x1dc)]=_0x367a78,this[_0x5c8bf1(0x1d9)][_0x5c8bf1(0x208)][_0x5c8bf1(0x209)](_0x5c8bf1(0x1d2),this[_0x5c8bf1(0x1dc)]),this[_0x5c8bf1(0x1f0)](),this[_0x5c8bf1(0x1e7)](),this[_0x5c8bf1(0x1e5)][_0x5c8bf1(0x1f7)]();}[_0x675d64(0x1ea)](){const _0x4bd20b=_0x675d64;this[_0x4bd20b(0x1d4)]&&(this[_0x4bd20b(0x1d4)][_0x4bd20b(0x1ea)](),this[_0x4bd20b(0x1d4)]=null),this[_0x4bd20b(0x1e5)]&&this[_0x4bd20b(0x1e5)][_0x4bd20b(0x213)](),this[_0x4bd20b(0x215)](),this[_0x4bd20b(0x1db)]();}[_0x675d64(0x1f0)](){const _0x29abfd=_0x675d64,{locale:_0x84c53d,model:_0x51d37c}=this[_0x29abfd(0x200)],_0x400a67=_0x51d37c[_0x29abfd(0x20a)][_0x29abfd(0x1ed)][_0x29abfd(0x1d8)](),_0x3b401b=_0x400a67&&(_0x400a67['is'](_0x29abfd(0x1df),_0x29abfd(0x1f4))||_0x400a67['is'](_0x29abfd(0x1df),_0x29abfd(0x1f1)));this[_0x29abfd(0x1d4)]=new _0x17f177(_0x84c53d,this[_0x29abfd(0x1d9)][_0x29abfd(0x1eb)]),this[_0x29abfd(0x1ff)][_0x29abfd(0x21b)]({'id':_0x29abfd(0x1f3),'icon':_0x19f59e,'title':_0x5ca3b4(_0x84c53d,this[_0x29abfd(0x1dc)],_0x3b401b?_0x29abfd(0x1ee):_0x29abfd(0x1e4))[_0x29abfd(0x1fe)],'content':this[_0x29abfd(0x1d4)],'position':_0x9ff603[_0x29abfd(0x1e3)],'isModal':!0x0,'onShow':()=>{const _0x1447d4=_0x29abfd;this[_0x1447d4(0x1d4)][_0x1447d4(0x206)]();},'onHide':()=>{const _0x2ace0c=_0x29abfd;this[_0x2ace0c(0x1e5)][_0x2ace0c(0x1e2)](),this[_0x2ace0c(0x200)][_0x2ace0c(0x21a)][_0x2ace0c(0x205)][_0x2ace0c(0x206)](),this[_0x2ace0c(0x1ea)]();},'keystrokeHandlerOptions':{'filter':_0x1f9015=>!_0x522894(_0x1f9015,this[_0x29abfd(0x1d4)][_0x29abfd(0x1df)])}});}[_0x675d64(0x1e7)](){const _0x47761d=_0x675d64;this[_0x47761d(0x1d9)][_0x47761d(0x20d)][_0x47761d(0x1e6)](_0x47761d(0x1f8),()=>{const _0x13f428=_0x47761d,{allEntries:_0x3b0362}=this[_0x13f428(0x1e5)][_0x13f428(0x217)]();this[_0x13f428(0x200)][_0x13f428(0x1f9)][_0x13f428(0x1f5)](_0x180dc2=>{const _0x61b1d8=_0x13f428,_0x3bc5c7=_0x3b0362[_0x61b1d8(0x1fc)];for(const _0x1a9807 of _0x3b0362){const _0x35a4e7=_0x1a9807===_0x3b0362[_0x3bc5c7-0x1],{cdnUrl:_0x490cb5,fileInfo:_0x187d70}=_0x1a9807;if(!_0x490cb5||!_0x187d70)continue;const {width:_0x1dda53,height:_0x2c2f29}=_0x187d70[_0x61b1d8(0x1e9)],_0x99bfd8=_0x39709c(_0x490cb5,_0x1dda53,_0x2c2f29),_0x3d1210=_0x9c8ebc(_0x490cb5,_0x99bfd8[_0x61b1d8(0x20b)]),_0x515b71={'id':_0x187d70[_0x61b1d8(0x211)],'type':_0x61b1d8(0x20e),'attributes':{'imageDimension':_0x99bfd8,..._0x3d1210}};this[_0x61b1d8(0x1fb)](_0x515b71,_0x35a4e7,_0x180dc2);}}),this[_0x13f428(0x1ff)][_0x13f428(0x212)]();}),this[_0x47761d(0x1d9)][_0x47761d(0x20d)][_0x47761d(0x1e6)](_0x47761d(0x1f5),_0x1f0d66=>{const _0x57cded=_0x47761d;_0x57cded(0x1fa)===_0x1f0d66[_0x57cded(0x210)][_0x57cded(0x20c)]&&!_0x1f0d66[_0x57cded(0x210)][_0x57cded(0x1f6)][_0x57cded(0x1fc)]&&this[_0x57cded(0x1ff)][_0x57cded(0x1da)]&&(this[_0x57cded(0x1dc)]===_0x4d7845[_0x57cded(0x1ec)]?this[_0x57cded(0x1e5)][_0x57cded(0x1e1)](_0x4d7845[_0x57cded(0x1ec)]):this[_0x57cded(0x1e5)][_0x57cded(0x1f7)]());});}[_0x675d64(0x1fb)](_0xd0f76e,_0x460f1e,_0x147bb0){const _0xd49db3=_0x675d64,_0x475c1a=this[_0xd49db3(0x200)][_0xd49db3(0x1f9)][_0xd49db3(0x20a)][_0xd49db3(0x1ed)],_0x26fe21=_0x475c1a[_0xd49db3(0x1d8)](),_0x4c42dd=!(!_0x26fe21||!_0x26fe21['is'](_0xd49db3(0x1df),_0xd49db3(0x1f1)));_0x147bb0[_0xd49db3(0x1d6)](_0xd49db3(0x1ef)),this[_0xd49db3(0x1f2)](_0xd0f76e,_0x4c42dd),_0x460f1e||_0x147bb0[_0xd49db3(0x202)](_0x475c1a[_0xd49db3(0x201)]());}[_0x675d64(0x1f2)](_0x360393,_0xf5390a){const _0x1b2972=_0x675d64,_0x3bdae5=this[_0x1b2972(0x200)],{imageDimension:_0x270273,imageFallbackUrl:_0x38c7f0,imageSources:_0x4eb72e}=_0x360393[_0x1b2972(0x207)];_0x3bdae5[_0x1b2972(0x216)](_0x1b2972(0x1dd),{'imageType':_0xf5390a?_0x1b2972(0x1f1):null,'source':{'uploadcareImageId':_0x360393['id'],'src':_0x38c7f0,'sources':_0x4eb72e,..._0x270273}});}}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module uploadcare/ui/uploadcareformview
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from '
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { DialogFocusManagerView } from '../utils/dialogfocusmanagerview.js';
|
|
10
10
|
import '../../theme/uploadcare-form.css';
|
|
11
11
|
/**
|
|
@@ -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 _0x84be4b=_0x4e19;(function(_0x3aab1c,_0x184fa4){var _0x5c5710=_0x4e19,_0x401f1e=_0x3aab1c();while(!![]){try{var _0x4be5df=-parseInt(_0x5c5710(0xf4))/0x1+-parseInt(_0x5c5710(0xea))/0x2*(parseInt(_0x5c5710(0xe9))/0x3)+parseInt(_0x5c5710(0xe6))/0x4*(parseInt(_0x5c5710(0xe0))/0x5)+-parseInt(_0x5c5710(0xdf))/0x6+parseInt(_0x5c5710(0xee))/0x7+-parseInt(_0x5c5710(0xe7))/0x8*(parseInt(_0x5c5710(0xe1))/0x9)+parseInt(_0x5c5710(0xe4))/0xa*(parseInt(_0x5c5710(0xf1))/0xb);if(_0x4be5df===_0x184fa4)break;else _0x401f1e['push'](_0x401f1e['shift']());}catch(_0x4ccca5){_0x401f1e['push'](_0x401f1e['shift']());}}}(_0x2c5f,0x9b3da));import{DialogFocusManagerView as _0x41424e}from'../utils/dialogfocusmanagerview.js';function _0x4e19(_0x4fde8c,_0x4fa56e){var _0x2c5ff1=_0x2c5f();return _0x4e19=function(_0x4e1999,_0x435ba5){_0x4e1999=_0x4e1999-0xdf;var _0x1b49ab=_0x2c5ff1[_0x4e1999];return _0x1b49ab;},_0x4e19(_0x4fde8c,_0x4fa56e);}import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x41424e{constructor(_0x17b35f,_0x3e72c0){var _0x1bcca4=_0x4e19;super(_0x17b35f),this[_0x1bcca4(0xe3)]({'tag':_0x1bcca4(0xeb),'attributes':{'class':['ck',_0x1bcca4(0xf2),_0x1bcca4(0xed)],'tabindex':'-1'},'children':[{'tag':_0x1bcca4(0xe2),'attributes':{'class':[_0x1bcca4(0xf3),_0x1bcca4(0xe8)],'ctx-name':_0x1bcca4(0xf0)+_0x3e72c0}},this[_0x1bcca4(0xec)]()]});}[_0x84be4b(0xe5)](){var _0x2684f3=_0x84be4b;this[_0x2684f3(0xef)][_0x2684f3(0xe5)]();}}function _0x2c5f(){var _0x4da0a7=['10525510lHEdHZ','focus','707232BnzHGS','936456MRruqn','ck-uploadcare-theme','665313Ankary','6SdPtWC','div','getFocusableElement','ck-uploadcare-form','8633177wcyTwu','element','uploader-','11LVGkvl','ck-reset_all-excluded','uc-light','966866bXesnX','2587104WJtbKe','15TuuBPY','9JaVjoD','uc-file-uploader-inline','setTemplate'];_0x2c5f=function(){return _0x4da0a7;};return _0x2c5f();}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module uploadcare/uploadcare
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin, type Editor } from '
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { UploadcareUI } from './uploadcareui.js';
|
|
11
11
|
import { UploadcareEditing } from './uploadcareediting.js';
|
|
12
12
|
import * as UC from '@uploadcare/file-uploader';
|
|
@@ -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 _0x56486d=_0xef78;function _0x4231(){const _0x8f20fc=['uploadcare.locale','2089132sqJcDR','16825293eSBMEs','9845017FtEvyi','145wLyLay','locale','editor','Uploadcare','2113248fjTSJf','isPremiumPlugin','10qvXBoL','193740iMTEtM','config','requires','4MvCOQw','get','uploadcare.uploader.sourceList','defineLocale','Local','1784481luWKqu','defineComponents','163456kdLZxC','URL','contentLanguage','pluginName','define','isOfficialPlugin','_defineLocale'];_0x4231=function(){return _0x8f20fc;};return _0x4231();}(function(_0x58871c,_0x3c22a5){const _0x2b4d21=_0xef78,_0x5bc7d6=_0x58871c();while(!![]){try{const _0x344683=parseInt(_0x2b4d21(0x7d))/0x1*(-parseInt(_0x2b4d21(0x76))/0x2)+parseInt(_0x2b4d21(0x7b))/0x3+-parseInt(_0x2b4d21(0x85))/0x4+-parseInt(_0x2b4d21(0x88))/0x5*(-parseInt(_0x2b4d21(0x8f))/0x6)+-parseInt(_0x2b4d21(0x87))/0x7+-parseInt(_0x2b4d21(0x8c))/0x8+-parseInt(_0x2b4d21(0x86))/0x9*(-parseInt(_0x2b4d21(0x8e))/0xa);if(_0x344683===_0x3c22a5)break;else _0x5bc7d6['push'](_0x5bc7d6['shift']());}catch(_0x3c879d){_0x5bc7d6['push'](_0x5bc7d6['shift']());}}}(_0x4231,0xd7124));import{Plugin as _0x1f0bc7}from'ckeditor5/src/core.js';function _0xef78(_0xf6c1f0,_0x1197ff){const _0x4231ca=_0x4231();return _0xef78=function(_0xef7824,_0x43b7dd){_0xef7824=_0xef7824-0x74;let _0x4aabc9=_0x4231ca[_0xef7824];return _0x4aabc9;},_0xef78(_0xf6c1f0,_0x1197ff);}import{UploadcareUI as _0x4b584b}from'./uploadcareui.js';import{UploadcareEditing as _0x13dd7c}from'./uploadcareediting.js';import{UploadcareSource as _0x46792c}from'./uploadcareconfig.js';import*as _0x504ef5 from'@uploadcare/file-uploader';export class Uploadcare extends _0x1f0bc7{static get[_0x56486d(0x75)](){return[_0x13dd7c,_0x4b584b];}static get[_0x56486d(0x80)](){const _0x537101=_0x56486d;return _0x537101(0x8b);}static get[_0x56486d(0x82)](){return!0x0;}static get[_0x56486d(0x8d)](){return!0x0;}constructor(_0x48b8c4){const _0x20ba5d=_0x56486d;super(_0x48b8c4),_0x48b8c4[_0x20ba5d(0x74)][_0x20ba5d(0x81)](_0x20ba5d(0x78),[_0x46792c[_0x20ba5d(0x7a)],_0x46792c[_0x20ba5d(0x7e)]]),_0x504ef5[_0x20ba5d(0x7c)](_0x504ef5),this[_0x20ba5d(0x83)]();}[_0x56486d(0x83)](){const _0x326a36=_0x56486d,_0x31d858=this[_0x326a36(0x8a)][_0x326a36(0x74)][_0x326a36(0x77)](_0x326a36(0x84)),_0x4732a1=this[_0x326a36(0x8a)][_0x326a36(0x89)][_0x326a36(0x7f)];_0x31d858&&_0x504ef5[_0x326a36(0x79)](_0x4732a1,_0x31d858);}}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module uploadcare/uploadcarecommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command, type Editor } from '
|
|
10
|
-
import { Dialog } from '
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
11
|
import { UploadcareEditing } from './uploadcareediting.js';
|
|
12
12
|
import type { UploadcareSource } from './uploadcareconfig.js';
|
|
13
13
|
/**
|
|
@@ -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 _0x25ca7d=_0x189b;(function(_0x5c8f9c,_0x2e9f07){var _0x102784=_0x189b,_0x5ea7ad=_0x5c8f9c();while(!![]){try{var _0x545571=-parseInt(_0x102784(0x12a))/0x1*(-parseInt(_0x102784(0x129))/0x2)+parseInt(_0x102784(0x130))/0x3+parseInt(_0x102784(0x131))/0x4*(-parseInt(_0x102784(0x12f))/0x5)+parseInt(_0x102784(0x121))/0x6+-parseInt(_0x102784(0x11d))/0x7*(-parseInt(_0x102784(0x133))/0x8)+parseInt(_0x102784(0x122))/0x9*(-parseInt(_0x102784(0x134))/0xa)+parseInt(_0x102784(0x11e))/0xb*(-parseInt(_0x102784(0x12d))/0xc);if(_0x545571===_0x2e9f07)break;else _0x5ea7ad['push'](_0x5ea7ad['shift']());}catch(_0x502ad0){_0x5ea7ad['push'](_0x5ea7ad['shift']());}}}(_0x22ac,0xd813f));function _0x22ac(){var _0x3d20a9=['commands','isEnabled','destroy','requires','execute','_checkEnabled','2QnSSiI','1754084HEmsed','refresh','insertImage','120Wyzlpa','editor','5xNjDjS','2764344pcOLkG','5626636BNwjrL','get','275608VGTXaq','12960160emuQEN','_controller','21oQCGYL','476443KnmrQf','_editing','plugins','7451850RYSTHd','9gmcQVB'];_0x22ac=function(){return _0x3d20a9;};return _0x22ac();}import{Command as _0x151058}from'ckeditor5/src/core.js';function _0x189b(_0x725fb4,_0x3bd61a){var _0x22ac09=_0x22ac();return _0x189b=function(_0x189bc5,_0x4f970d){_0x189bc5=_0x189bc5-0x11d;var _0x20df8b=_0x22ac09[_0x189bc5];return _0x20df8b;},_0x189b(_0x725fb4,_0x3bd61a);}import{Dialog as _0x27422d}from'ckeditor5/src/ui.js';import{UploadcareEditing as _0x4174cb}from'./uploadcareediting.js';import{UploadcareController as _0x4b7695}from'./ui/uploadcarecontroller.js';export class UploadcareCommand extends _0x151058{[_0x25ca7d(0x11f)];[_0x25ca7d(0x135)]=null;static get[_0x25ca7d(0x126)](){return[_0x27422d,_0x4174cb];}constructor(_0x3d42de){var _0x2094d6=_0x25ca7d;super(_0x3d42de),this[_0x2094d6(0x11f)]=_0x3d42de[_0x2094d6(0x120)][_0x2094d6(0x132)](_0x4174cb);}[_0x25ca7d(0x12b)](){var _0x16c432=_0x25ca7d;this[_0x16c432(0x124)]=this[_0x16c432(0x128)]();}[_0x25ca7d(0x127)](_0x5c452c){var _0x1eaaec=_0x25ca7d;this[_0x1eaaec(0x135)]&&(this[_0x1eaaec(0x135)][_0x1eaaec(0x125)](),this[_0x1eaaec(0x135)]=null),this[_0x1eaaec(0x135)]=new _0x4b7695(this[_0x1eaaec(0x12e)],this[_0x1eaaec(0x11f)],_0x5c452c);}[_0x25ca7d(0x128)](){var _0x37f903=_0x25ca7d;return this[_0x37f903(0x12e)][_0x37f903(0x123)][_0x37f903(0x132)](_0x37f903(0x12c))[_0x37f903(0x124)];}}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module uploadcare/uploadcareconfig
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import type { ArrayOrItem } from '
|
|
9
|
+
import type { ArrayOrItem } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import type { ConfigType } from '@uploadcare/file-uploader';
|
|
11
11
|
/**
|
|
12
12
|
* Locale definition type matching Uploadcare `LocaleDefinition` type.
|
|
@@ -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 _0x2a3b(){var _0x9a22c8=['facebook','78198kYktsp','url','305FQforO','URL','OneDrive','onedrive','GPhotos','gdrive','2868208kctJBw','124374ewgqLq','GDrive','45544640fhiwOp','69aULOak','Local','964855VfGdTw','7002023gdtgIb','Facebook','dropbox','local','8RSkKXz','Dropbox','2827305BYuIiM','gphotos'];_0x2a3b=function(){return _0x9a22c8;};return _0x2a3b();}function _0xf51b(_0x2e607f,_0x5a3650){var _0x2a3bfc=_0x2a3b();return _0xf51b=function(_0xf51b2b,_0x4618d8){_0xf51b2b=_0xf51b2b-0x13d;var _0x2743ac=_0x2a3bfc[_0xf51b2b];return _0x2743ac;},_0xf51b(_0x2e607f,_0x5a3650);}(function(_0xebd8b7,_0x551de0){var _0x2f52d4=_0xf51b,_0x476e7f=_0xebd8b7();while(!![]){try{var _0x270a94=-parseInt(_0x2f52d4(0x14e))/0x1+-parseInt(_0x2f52d4(0x149))/0x2*(parseInt(_0x2f52d4(0x14c))/0x3)+-parseInt(_0x2f52d4(0x148))/0x4+-parseInt(_0x2f52d4(0x142))/0x5*(-parseInt(_0x2f52d4(0x140))/0x6)+parseInt(_0x2f52d4(0x14f))/0x7*(-parseInt(_0x2f52d4(0x153))/0x8)+-parseInt(_0x2f52d4(0x13d))/0x9+parseInt(_0x2f52d4(0x14b))/0xa;if(_0x270a94===_0x551de0)break;else _0x476e7f['push'](_0x476e7f['shift']());}catch(_0x5f19a1){_0x476e7f['push'](_0x476e7f['shift']());}}}(_0x2a3b,0xe14d3));export var UploadcareSource;!function(_0x549f45){var _0x102506=_0xf51b;_0x549f45[_0x102506(0x14d)]=_0x102506(0x152),_0x549f45[_0x102506(0x143)]=_0x102506(0x141),_0x549f45[_0x102506(0x154)]=_0x102506(0x151),_0x549f45[_0x102506(0x14a)]=_0x102506(0x147),_0x549f45[_0x102506(0x150)]=_0x102506(0x13f),_0x549f45[_0x102506(0x146)]=_0x102506(0x13e),_0x549f45[_0x102506(0x144)]=_0x102506(0x145);}(UploadcareSource||(UploadcareSource={}));
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module uploadcare/uploadcareediting
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin, type Editor } from '
|
|
10
|
-
import { Dialog } from '
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
11
|
import { UploadcareUploadAdapter } from './uploadcareuploadadapter.js';
|
|
12
12
|
import type { UploaderBlock } from '@uploadcare/file-uploader';
|
|
13
13
|
/**
|
|
@@ -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 _0x58b7(_0x25c1c1,_0x3bb4c7){const _0x40fb48=_0x40fb();return _0x58b7=function(_0x58b7c5,_0x23b7ca){_0x58b7c5=_0x58b7c5-0x1e9;let _0x61c1cb=_0x40fb48[_0x58b7c5];return _0x61c1cb;},_0x58b7(_0x25c1c1,_0x3bb4c7);}const _0x30194a=_0x58b7;(function(_0x5d1d10,_0x35d18d){const _0x1d5f54=_0x58b7,_0x2ceb2a=_0x5d1d10();while(!![]){try{const _0x4d285e=parseInt(_0x1d5f54(0x1ec))/0x1*(parseInt(_0x1d5f54(0x21e))/0x2)+-parseInt(_0x1d5f54(0x1f3))/0x3+parseInt(_0x1d5f54(0x1fe))/0x4*(parseInt(_0x1d5f54(0x21f))/0x5)+-parseInt(_0x1d5f54(0x1ee))/0x6+parseInt(_0x1d5f54(0x209))/0x7+-parseInt(_0x1d5f54(0x238))/0x8+-parseInt(_0x1d5f54(0x1ed))/0x9*(-parseInt(_0x1d5f54(0x1eb))/0xa);if(_0x4d285e===_0x35d18d)break;else _0x2ceb2a['push'](_0x2ceb2a['shift']());}catch(_0x2e5e53){_0x2ceb2a['push'](_0x2ceb2a['shift']());}}}(_0x40fb,0x87564));import{Plugin as _0x5b5e52}from'ckeditor5/src/core.js';import{Dialog as _0x24234e}from'ckeditor5/src/ui.js';import{createElement as _0x2098a1,global as _0x295177,uid as _0x2efe7d}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x43f2a7}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x27e3e1}from'./uploadcareuploadadapter.js';function _0x40fb(){const _0x528fdc=['_ctxElement','input[uploadcare-file-input]','#uc-icon-arrow-down','extend','remove','get','editor','insertImage','downcast','3778wjgoXd','130hGQYsW','uploadcareImageReplace','conversion','closeMax','contentLanguage','execute','removeAttribute','\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','view','uploadcare.pubkey','init','uploader-','isPremiumPlugin','isRegistered','querySelector','appendChild','href','configElement','listenTo','PictureEditing','pluginName','imageInline','getSelectedElement','uploadcareImageId','_initImageProcessingIndicator','1628968RQxjfn','_initConfig','cleanupImage','render','_initSchema','fromCharCode','requires','for','2780Ggqolf','542rdyWHl','2844ucheCK','6275940PYMzVM','_configElement','true','document','replaceImageSource','2581545ymrbLe','join','data-uc-image-id','imageBlock','once','uploadcare.uploader','_initCtx','map','uc-config','_initConversion','isOfficialPlugin','100316AEfHCG','destroy','selection','uploadcare','schema','afterInit','iconHrefResolver','getAttribute','config','body','UploadcareEditing','6305082kOLwtO','uc-upload-ctx-provider','attributeToAttribute','elementToAttribute','locale','add','editing','model','upcast','ctxElement','commands','ucContextId'];_0x40fb=function(){return _0x528fdc;};return _0x40fb();}import{showImageProcessingIndicator as _0x2af1d8}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5b5e52{[_0x30194a(0x1ef)]=null;[_0x30194a(0x215)]=null;static get[_0x30194a(0x233)](){const _0x35e8c4=_0x30194a;return _0x35e8c4(0x208);}static get[_0x30194a(0x1e9)](){const _0x4bcafd=_0x30194a;return[_0x4bcafd(0x232),_0x27e3e1,_0x24234e];}static get[_0x30194a(0x1fd)](){return!0x0;}static get[_0x30194a(0x22b)](){return!0x0;}[_0x30194a(0x214)];get[_0x30194a(0x230)](){const _0x51c4ba=_0x30194a;return this[_0x51c4ba(0x1ef)];}get[_0x30194a(0x212)](){const _0x5dd90e=_0x30194a;return this[_0x5dd90e(0x215)];}constructor(_0x14cede){const _0x27be7d=_0x30194a;super(_0x14cede),this[_0x27be7d(0x214)]=_0x2efe7d();}[_0x30194a(0x229)](){const _0x663865=_0x30194a,_0x595072=this[_0x663865(0x21b)];_0x595072[_0x663865(0x213)][_0x663865(0x20e)](_0x663865(0x201),new _0x43f2a7(_0x595072));}[_0x30194a(0x203)](){const _0x26ad72=_0x30194a;this[_0x26ad72(0x23c)](),this[_0x26ad72(0x1fc)](),this[_0x26ad72(0x239)](),this[_0x26ad72(0x1f9)](),this[_0x26ad72(0x237)](),this[_0x26ad72(0x231)](this[_0x26ad72(0x21b)],_0x26ad72(0x1ff),()=>{const _0x4dbd8e=_0x26ad72;this[_0x4dbd8e(0x1ef)]&&(this[_0x4dbd8e(0x1ef)][_0x4dbd8e(0x219)](),this[_0x4dbd8e(0x1ef)]=null),this[_0x4dbd8e(0x215)]&&(this[_0x4dbd8e(0x215)][_0x4dbd8e(0x219)](),this[_0x4dbd8e(0x215)]=null);const _0x4ac0cb=_0x295177[_0x4dbd8e(0x1f1)][_0x4dbd8e(0x22d)](_0x4dbd8e(0x216));_0x4ac0cb&&_0x4ac0cb[_0x4dbd8e(0x219)]();}),async function(_0x13a588){const _0x5c5a29=_0x5a5424([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]),_0x403196=0x535f8c3a,_0x2f0138=0x53580c0a^_0x403196,_0x326733=window[_0x5a5424([0x44,0x61,0x74,0x65])][_0x5a5424([0x6e,0x6f,0x77])](),_0x4314c5=_0x13a588[_0x5a5424([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x37966b=new window[(_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11fe3e=>{_0x4314c5[_0x5a5424([0x6f,0x6e,0x63,0x65])](_0x5a5424([0x72,0x65,0x61,0x64,0x79]),_0x11fe3e);}),_0x561be5={[_0x5a5424([0x6b,0x74,0x79])]:_0x5a5424([0x45,0x43]),[_0x5a5424([0x75,0x73,0x65])]:_0x5a5424([0x73,0x69,0x67]),[_0x5a5424([0x63,0x72,0x76])]:_0x5a5424([0x50,0x2d,0x32,0x35,0x36]),[_0x5a5424([0x78])]:_0x5a5424([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]),[_0x5a5424([0x79])]:_0x5a5424([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]),[_0x5a5424([0x61,0x6c,0x67])]:_0x5a5424([0x45,0x53,0x32,0x35,0x36])},_0x18fb24=_0x4314c5[_0x5a5424([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a5424([0x67,0x65,0x74])](_0x5a5424([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a0803(){let _0x26fac7,_0x57fee7=null,_0xea830e=null;try{if(_0x18fb24==_0x5a5424([0x47,0x50,0x4c]))return _0x5a5424([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26fac7=_0x433ef5(),!_0x26fac7)return _0x5a5424([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26fac7[_0x5a5424([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xea830e=_0x5d36c2(_0x26fac7[_0x5a5424([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26fac7[_0x5a5424([0x6a,0x74,0x69])])),await _0x274f92()?_0x4cbf17()?_0x3163ce()?_0x5a5424([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b96aa()?(_0x26fac7[_0x5a5424([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a5424([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x57fee7=_0x42c568(_0x5a5424([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d3710()):_0x5a5424([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a5424([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a5424([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5a5424([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3163ce(){const _0x1ff638=[_0x5a5424([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a5424([0x74,0x72,0x69,0x61,0x6c])][_0x5a5424([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26fac7[_0x5a5424([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x326733/0x3e8:0xe10*_0x2f0138;return _0x26fac7[_0x5a5424([0x65,0x78,0x70])]<_0x1ff638;}function _0x4cbf17(){const _0x59cb24=_0x26fac7[_0x5a5424([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x59cb24&&(!!_0x59cb24[_0x5a5424([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5424([0x2a]))||!!_0x59cb24[_0x5a5424([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5424([0x55,0x50,0x4c,0x43])));}function _0x3b96aa(){const _0x258e54=_0x58b7,_0xc232f4=_0x26fac7[_0x5a5424([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc232f4||0x0==_0xc232f4[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e0b01}=new URL(window[_0x5a5424([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x258e54(0x22f)]);if(_0xc232f4[_0x5a5424([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e0b01))return!0x0;const _0x1ceb66=_0x3e0b01[_0x5a5424([0x73,0x70,0x6c,0x69,0x74])](_0x5a5424([0x2e]));return _0xc232f4[_0x5a5424([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16266f=>_0x16266f[_0x5a5424([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5424([0x2a])))[_0x5a5424([0x6d,0x61,0x70])](_0x3c4199=>_0x3c4199[_0x5a5424([0x73,0x70,0x6c,0x69,0x74])](_0x5a5424([0x2e])))[_0x5a5424([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f7e5a=>_0x2f7e5a[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ceb66[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a5424([0x6d,0x61,0x70])](_0x3e98ed=>Array(_0x1ceb66[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3e98ed[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a5424([0x66,0x69,0x6c,0x6c])](_0x3e98ed[0x0]===_0x5a5424([0x2a])?_0x5a5424([0x2a]):'')[_0x5a5424([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3e98ed))[_0x5a5424([0x73,0x6f,0x6d,0x65])](_0x54bade=>_0x1ceb66[_0x5a5424([0x65,0x76,0x65,0x72,0x79])]((_0x23fa0b,_0x56e12b)=>_0x54bade[_0x56e12b]===_0x23fa0b||_0x54bade[_0x56e12b]===_0x5a5424([0x2a])));}function _0x3d3710(){return _0x57fee7&&_0xea830e?new window[(_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bd2cd,_0x47d9ed)=>{_0x57fee7[_0x5a5424([0x74,0x68,0x65,0x6e])](_0x2bd2cd,_0x47d9ed),_0xea830e[_0x5a5424([0x74,0x68,0x65,0x6e])](_0x2e93da=>{_0x2e93da!=_0x5a5424([0x56,0x61,0x6c,0x69,0x64])&&_0x2bd2cd(_0x2e93da);},_0x47d9ed);}):_0x57fee7||_0xea830e||_0x5a5424([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d36c2(_0x47e4db,_0x4a85fa){return new window[(_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x366b30=>{if(_0x5c0901())return _0x366b30(_0x5a5424([0x56,0x61,0x6c,0x69,0x64]));_0x23ea1a(),_0x4314c5[_0x5a5424([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a5424([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26c539=!0x1;const _0x502ab3=_0x2efe7d();function _0x294dd7(_0x386de5){return!!_0x386de5&&(typeof _0x386de5===_0x5a5424([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x386de5===_0x5a5424([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x386de5[_0x5a5424([0x74,0x68,0x65,0x6e])]===_0x5a5424([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x386de5[_0x5a5424([0x63,0x61,0x74,0x63,0x68])]===_0x5a5424([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x346c0e(_0x1dec92){_0x15a4d7(_0x1dec92)[_0x5a5424([0x74,0x68,0x65,0x6e])](_0x240518=>{if(!_0x240518||_0x240518[_0x5a5424([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a5424([0x6f,0x6b]))return _0x5a5424([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d365c(_0x4148ce(_0x502ab3+_0x4a85fa))!=_0x240518[_0x5a5424([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a5424([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a5424([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a5424([0x74,0x68,0x65,0x6e])](_0x52a9bb=>(_0x2b6e48(),_0x52a9bb),()=>{const _0x2c1d03=_0x174deb();return null==_0x2c1d03?(_0x2b6e48(),_0x5a5424([0x56,0x61,0x6c,0x69,0x64])):_0x5a5424(_0x326733-_0x2c1d03>(0x7753083a^_0x403196)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a5424([0x74,0x68,0x65,0x6e])](_0x366b30)[_0x5a5424([0x63,0x61,0x74,0x63,0x68])](()=>{_0x366b30(_0x5a5424([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b73f5=0x536962ba^_0x403196;function _0x2b6e48(){const _0xd4ce72=_0x5a5424([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d365c(_0x4148ce(_0x47e4db)),_0x556f5b=_0x3255d8(_0x4d365c(window[_0x5a5424([0x4d,0x61,0x74,0x68])][_0x5a5424([0x63,0x65,0x69,0x6c])](_0x326733/_0x5b73f5)));window[_0x5a5424([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a5424([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd4ce72,_0x556f5b);}function _0x174deb(){const _0x3e92ad=_0x5a5424([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d365c(_0x4148ce(_0x47e4db)),_0x207e70=window[_0x5a5424([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a5424([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e92ad);return _0x207e70?window[_0x5a5424([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3255d8(_0x207e70),0x10)*_0x5b73f5:null;}function _0x15a4d7(_0x4256fd){return new window[(_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x486897,_0x31b6e0)=>{_0x4256fd[_0x5a5424([0x74,0x68,0x65,0x6e])](_0x486897,_0x31b6e0),window[_0x5a5424([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31b6e0,0x535e58fa^_0x403196);});}}_0x4314c5[_0x5a5424([0x6f,0x6e])](_0x5a5424([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48f91f,_0x138baf)=>{if(_0x138baf[0x0]!=_0x47e4db)return _0x366b30(_0x5a5424([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x138baf[0x1]={..._0x138baf[0x1],[_0x5a5424([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x502ab3};},{[_0x5a5424([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a5424([0x68,0x69,0x67,0x68])}),_0x4314c5[_0x5a5424([0x6f,0x6e])](_0x5a5424([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f0c40=>{_0x294dd7(_0x4f0c40[_0x5a5424([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26c539=!0x0,_0x346c0e(_0x4f0c40[_0x5a5424([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a5424([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a5424([0x6c,0x6f,0x77])}),_0x37966b[_0x5a5424([0x74,0x68,0x65,0x6e])](()=>{_0x26c539||_0x366b30(_0x5a5424([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c0901(){return _0x4314c5[_0x5a5424([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a5424([0x76,0x69,0x65,0x77])][_0x5a5424([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a5424([0x61,0x75,0x74,0x6f]);}function _0x23ea1a(){_0x4314c5[_0x5a5424([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a5424([0x76,0x69,0x65,0x77])][_0x5a5424([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a5424([0x61,0x75,0x74,0x6f]);}}function _0x42c568(_0x25d73f){const _0xd553a3=[new window[(_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d5afd=>setTimeout(_0x3d5afd,0x5356b2f6^_0x403196)),_0x37966b[_0x5a5424([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b7e8e=>{let _0x251a58=0x0;_0x4314c5[_0x5a5424([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5424([0x6f,0x6e])](_0x5a5424([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x25258e,_0x3da919)=>{_0x3da919[0x0][_0x5a5424([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x251a58++,_0x251a58==(0x535f89d2^_0x403196)&&(_0x3b7e8e(),_0x25258e[_0x5a5424([0x6f,0x66,0x66])]());});}))];return window[_0x5a5424([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a5424([0x72,0x61,0x63,0x65])](_0xd553a3)[_0x5a5424([0x74,0x68,0x65,0x6e])](()=>_0x25d73f);}async function _0x3ba962(){await _0x37966b,_0x4314c5[_0x5a5424([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5424([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25a1c4,_0x4314c5[_0x5a5424([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a5424([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25a1c4,_0x4314c5[_0x5a5424([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a5424([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x595e45(_0x157e9a){const _0x357f44=_0x5409a0();_0x4314c5[_0x357f44]=_0x5a5424([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x157e9a,_0x157e9a!=_0x5a5424([0x56,0x61,0x6c,0x69,0x64])&&_0x3ba962();}function _0x5409a0(){const _0x20e6c2=window[_0x5a5424([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a5424([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a5424([0x6e,0x6f,0x77])]())[_0x5a5424([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a5424([0x2e]),'');let _0x2b3fe9=_0x5a5424([0x68]);for(let _0x468559=0x0;_0x468559<_0x20e6c2[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x468559+=0x2){let _0x4d7a39=window[_0x5a5424([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20e6c2[_0x5a5424([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x468559,_0x468559+0x2));_0x4d7a39>=_0x5c5a29[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d7a39-=_0x5c5a29[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b3fe9+=_0x5c5a29[_0x4d7a39];}return _0x2b3fe9;}function _0x433ef5(){const _0x35088e=_0x18fb24[_0x5a5424([0x73,0x70,0x6c,0x69,0x74])](_0x5a5424([0x2e]));if(0x3!=_0x35088e[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x278fa7(_0x35088e[0x1]);function _0x278fa7(_0x25f104){const _0x25be77=_0x41e708(_0x25f104);return _0x25be77&&_0x500ef6()?_0x25be77:null;function _0x500ef6(){const _0x4c6933=_0x25be77[_0x5a5424([0x6a,0x74,0x69])],_0x1aecb7=window[_0x5a5424([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c6933[_0x5a5424([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c6933[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xacb66a={..._0x25be77,[_0x5a5424([0x6a,0x74,0x69])]:_0x4c6933[_0x5a5424([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c6933[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xacb66a[_0x5a5424([0x76,0x63])],_0x4148ce(_0xacb66a)==_0x1aecb7;}}}async function _0x274f92(){let _0x5b435f=!0x0;try{const _0x58493b=_0x18fb24[_0x5a5424([0x73,0x70,0x6c,0x69,0x74])](_0x5a5424([0x2e])),[_0x428ee0,_0x3cf937,_0x13a112]=_0x58493b;return _0x2981b1(_0x428ee0),await _0x8f97f3(_0x428ee0,_0x3cf937,_0x13a112),_0x5b435f;}catch{return!0x1;}function _0x2981b1(_0x137074){const _0x312ab7=_0x41e708(_0x137074);_0x312ab7&&_0x312ab7[_0x5a5424([0x61,0x6c,0x67])]==_0x5a5424([0x45,0x53,0x32,0x35,0x36])||(_0x5b435f=!0x1);}async function _0x8f97f3(_0x493882,_0x274c51,_0x1615e8){const _0x346fae=window[_0x5a5424([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a5424([0x66,0x72,0x6f,0x6d])](_0x5be7a6(_0x1615e8),_0x544af5=>_0x544af5[_0x5a5424([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31810f=new window[(_0x5a5424([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a5424([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x493882+_0x5a5424([0x2e])+_0x274c51),_0x76d233=window[_0x5a5424([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a5424([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x76d233)return;const _0x1d3fe4=await _0x76d233[_0x5a5424([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a5424([0x6a,0x77,0x6b]),_0x561be5,{[_0x5a5424([0x6e,0x61,0x6d,0x65])]:_0x5a5424([0x45,0x43,0x44,0x53,0x41]),[_0x5a5424([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a5424([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a5424([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x76d233[_0x5a5424([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a5424([0x6e,0x61,0x6d,0x65])]:_0x5a5424([0x45,0x43,0x44,0x53,0x41]),[_0x5a5424([0x68,0x61,0x73,0x68])]:{[_0x5a5424([0x6e,0x61,0x6d,0x65])]:_0x5a5424([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d3fe4,_0x346fae,_0x31810f)||(_0x5b435f=!0x1);}}function _0x41e708(_0xc31522){return _0xc31522[_0x5a5424([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a5424([0x65,0x79]))?JSON[_0x5a5424([0x70,0x61,0x72,0x73,0x65])](_0x5be7a6(_0xc31522)):null;}function _0x5be7a6(_0x372415){return window[_0x5a5424([0x61,0x74,0x6f,0x62])](_0x372415[_0x5a5424([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a5424([0x2b]))[_0x5a5424([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a5424([0x2f])));}function _0x4148ce(_0x165524){let _0x59a18e=0x1505;function _0x1d58c0(_0x5ae522){for(let _0x104472=0x0;_0x104472<_0x5ae522[_0x5a5424([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x104472++){const _0x133c7c=_0x5ae522[_0x5a5424([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x104472);_0x59a18e=(_0x59a18e<<0x5)+_0x59a18e+_0x133c7c,_0x59a18e&=_0x59a18e;}}function _0x2c7133(_0x832d5f){Array[_0x5a5424([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x832d5f)?_0x832d5f[_0x5a5424([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c7133):_0x832d5f&&typeof _0x832d5f==_0x5a5424([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a5424([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x832d5f)[_0x5a5424([0x73,0x6f,0x72,0x74])]()[_0x5a5424([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cca92,_0x44037a])=>{_0x1d58c0(_0x2cca92),_0x2c7133(_0x44037a);}):_0x1d58c0(window[_0x5a5424([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x832d5f));}return _0x2c7133(_0x165524),_0x59a18e>>>0x0;}function _0x4d365c(_0x1e078f){return _0x1e078f[_0x5a5424([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a5424([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a5424([0x30]));}function _0x3255d8(_0x1f7575){return _0x1f7575[_0x5a5424([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a5424([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a5424([0x6a,0x6f,0x69,0x6e])]('');}function _0x25a1c4(){}function _0x5a5424(_0x4c1b9d){const _0x3ffa1b=_0x58b7;return _0x4c1b9d[_0x3ffa1b(0x1fa)](_0x5a838d=>String[_0x3ffa1b(0x23d)](_0x5a838d))[_0x3ffa1b(0x1f4)]('');}_0x595e45(await _0x4a0803());}(this);}[_0x30194a(0x23c)](){const _0x318557=_0x30194a,_0x225ba3=this[_0x318557(0x21b)][_0x318557(0x210)][_0x318557(0x202)];_0x225ba3[_0x318557(0x22c)](_0x318557(0x1f6))&&_0x225ba3[_0x318557(0x218)](_0x318557(0x1f6),{'allowAttributes':[_0x318557(0x236)]}),_0x225ba3[_0x318557(0x22c)](_0x318557(0x234))&&_0x225ba3[_0x318557(0x218)](_0x318557(0x234),{'allowAttributes':[_0x318557(0x236)]});}[_0x30194a(0x1fc)](){const _0x372676=_0x30194a,_0x4b42fc=this[_0x372676(0x21b)];_0x4b42fc[_0x372676(0x221)][_0x372676(0x1ea)](_0x372676(0x21d))[_0x372676(0x20b)]({'model':_0x372676(0x236),'view':_0x372676(0x1f5)}),_0x4b42fc[_0x372676(0x221)][_0x372676(0x1ea)](_0x372676(0x211))[_0x372676(0x20c)]({'model':{'key':_0x372676(0x236),'value':_0x2e9224=>_0x2e9224[_0x372676(0x205)](_0x372676(0x1f5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e5e90=_0x4b42fc[_0x372676(0x213)][_0x372676(0x21a)](_0x372676(0x1f2));_0x1e5e90&&this[_0x372676(0x231)](_0x1e5e90,_0x372676(0x23a),(_0x5f431c,[_0x232d95,_0x6315e5])=>{const _0x553140=_0x372676;_0x232d95[_0x553140(0x225)](_0x553140(0x236),_0x6315e5);});}[_0x30194a(0x239)](){const _0x6c1b53=_0x30194a,_0x4906aa=this[_0x6c1b53(0x21b)][_0x6c1b53(0x206)][_0x6c1b53(0x21a)](_0x6c1b53(0x1f8))||{},_0x4b308d=this[_0x6c1b53(0x21b)][_0x6c1b53(0x206)][_0x6c1b53(0x21a)](_0x6c1b53(0x228))||'';this[_0x6c1b53(0x1ef)]=_0x2098a1(_0x295177[_0x6c1b53(0x1f1)],_0x6c1b53(0x1fb),{..._0x4906aa,'pubkey':_0x4b308d,'ctx-name':_0x6c1b53(0x22a)+this[_0x6c1b53(0x214)],'sourceList':'','imgOnly':_0x6c1b53(0x1f0),'removeCopyright':_0x6c1b53(0x1f0),'localeName':this[_0x6c1b53(0x21b)][_0x6c1b53(0x20d)][_0x6c1b53(0x223)],'externalSourcesEmbedCss':_0x6c1b53(0x226)}),this[_0x6c1b53(0x1ef)][_0x6c1b53(0x204)]=_0x533b2f=>{const _0x15ff77=_0x6c1b53;if(_0x15ff77(0x222)==_0x533b2f)return _0x15ff77(0x217);},_0x295177[_0x6c1b53(0x1f1)][_0x6c1b53(0x207)][_0x6c1b53(0x22e)](this[_0x6c1b53(0x1ef)]);}[_0x30194a(0x1f9)](){const _0x41d761=_0x30194a;this[_0x41d761(0x215)]=_0x2098a1(_0x295177[_0x41d761(0x1f1)],_0x41d761(0x20a),{'ctx-name':_0x41d761(0x22a)+this[_0x41d761(0x214)]}),_0x295177[_0x41d761(0x1f1)][_0x41d761(0x207)][_0x41d761(0x22e)](this[_0x41d761(0x215)]);}[_0x30194a(0x237)](){const _0x440382=_0x30194a,_0x59f707=this[_0x440382(0x21b)][_0x440382(0x213)][_0x440382(0x21a)](_0x440382(0x21c));_0x59f707&&this[_0x440382(0x231)](_0x59f707,_0x440382(0x224),()=>{const _0x2adb1c=_0x440382,_0x42fae1=this[_0x2adb1c(0x21b)][_0x2adb1c(0x210)][_0x2adb1c(0x1f1)][_0x2adb1c(0x200)][_0x2adb1c(0x235)]();_0x42fae1&&_0x42fae1[_0x2adb1c(0x205)](_0x2adb1c(0x236))&&this[_0x2adb1c(0x21b)][_0x2adb1c(0x20f)][_0x2adb1c(0x227)][_0x2adb1c(0x1f7)](_0x2adb1c(0x23b),()=>{const _0x547e1f=_0x2adb1c;_0x2af1d8(this[_0x547e1f(0x21b)],_0x42fae1);});});const _0x28a1f3=this[_0x440382(0x21b)][_0x440382(0x213)][_0x440382(0x21a)](_0x440382(0x220));_0x28a1f3&&this[_0x440382(0x231)](_0x28a1f3,_0x440382(0x224),()=>{const _0x230622=_0x440382,_0x2acbe=this[_0x230622(0x21b)][_0x230622(0x210)][_0x230622(0x1f1)][_0x230622(0x200)][_0x230622(0x235)]();_0x2acbe&&_0x2acbe[_0x230622(0x205)](_0x230622(0x236))&&this[_0x230622(0x21b)][_0x230622(0x20f)][_0x230622(0x227)][_0x230622(0x1f7)](_0x230622(0x23b),()=>{const _0x2eaa8d=_0x230622;_0x2af1d8(this[_0x2eaa8d(0x21b)],_0x2acbe);});});}}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { type Dialog } from '
|
|
6
|
-
import type { Editor } from '
|
|
7
|
-
import type { ModelElement } from '
|
|
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
8
|
declare const UploadcareImageEditController_base: {
|
|
9
|
-
new (): import("
|
|
10
|
-
prototype: import("
|
|
9
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
10
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* Controller for the Image Edit Dialog.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{global as _0x52aab0,ObservableMixin as _0x39f8b5}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x15ae9b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x230889}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5417bc}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x23e6b6}from'../../utils/uploadutils.js';import{getImageUrls as _0x48040c,getImageDimension as _0x52a4f7}from'../../utils/editingutils.js';import{isAncestor as _0x4e8842}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x39f8b5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5acf1b,_0x376eda,_0x3e06db){super(),this['_editor']=_0x5acf1b,this['_dialog']=_0x376eda,this['_imageElement']=_0x3e06db,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x2bb068=this['_imageElement'],_0x19b4ac=_0x2bb068['getAttribute']('uploadcareImageId'),_0x4166ea=_0x2bb068['getAttribute']('src');if(_0x19b4ac)await this['_loadImageInfo'](_0x19b4ac,_0x4166ea);else{if(this['_imageCache']['has'](_0x4166ea)){const _0x56b9d1=this['_imageCache']['get'](_0x4166ea);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56b9d1['url'],this['imageDimension']=_0x56b9d1['dimension'],this['imageId']=_0x56b9d1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x42ad2e}=this['_editor'],t=_0x42ad2e['t'],_0x5f38c0=new _0x5417bc(_0x42ad2e,this['imageStatus'],this['_attributes']);_0x5f38c0['bind']('status')['to'](this,'imageStatus'),_0x5f38c0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5f38c0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5f38c0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5f38c0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x230889,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5f38c0,'position':_0x15ae9b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5f38c0['focus']();},'onHide':()=>{_0x5f38c0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x450c79=>!_0x4e8842(_0x450c79,_0x5f38c0['element'])}});}['_loadImageInfo'](_0x42e348,_0x47ff03){return _0x23e6b6['getInfo'](_0x42e348,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3f45db=>{const {width:_0x1ad08c,height:_0x2447b}=_0x3f45db['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47ff03,this['imageDimension']={'width':_0x1ad08c,'height':_0x2447b},this['imageId']=_0x42e348;})['catch'](_0x7006af=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x7006af['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2a67c1,_0xf35f9){return this['_getImageAsFile'](_0x2a67c1)['then'](_0x1d550a=>_0x23e6b6['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xf35f9['signal'],'file':_0x1d550a,'onProgress':_0x4ba330=>{_0x4ba330&&_0x4ba330['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ba330['value']));}}))['then'](_0x36e8f7=>{const {width:_0x236f1f,height:_0x1296fd}=_0x36e8f7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36e8f7['cdnUrl'],this['imageDimension']={'width':_0x236f1f,'height':_0x1296fd},this['imageId']=_0x36e8f7['uuid'],this['imageUploadProgress']=null;const _0xbb31f1=_0x2a67c1['getAttribute']('src');this['_imageCache']['set'](_0xbb31f1,{'id':_0x36e8f7['uuid'],'url':_0x36e8f7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3f6ed0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f6ed0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5abbe3,_0x49bd65){_0x5abbe3['on']('apply',(_0xf2276,_0x505094)=>{this['_replaceImage'](_0x49bd65,_0x505094['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5abbe3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5abbe3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x429e0d,_0x4f1c47,_0x4147f1){const _0x3cc026=this['_editor'],{width:_0x1c3670,height:_0x41f895}=_0x52a4f7(_0x4f1c47,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x312dc8,imageSources:_0x433d35}=_0x48040c(_0x4f1c47,_0x1c3670);_0x3cc026['model']['change'](_0x580979=>{if('$graveyard'===_0x429e0d['root']['rootName']){_0x3cc026['execute']('insertImage',{'imageType':_0x429e0d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x429e0d['getAttributes']()),'uploadcareImageId':_0x4147f1,'src':_0x312dc8,'sources':_0x433d35,'width':_0x1c3670,'height':_0x41f895}});const _0x4ef82b=_0x429e0d['getChildren']();_0x429e0d=_0x3cc026['model']['document']['selection']['getSelectedElement']();for(const _0xfc2f0d of _0x4ef82b)_0x580979['append'](_0x580979['cloneElement'](_0xfc2f0d),_0x429e0d);}else _0x580979['setSelection'](_0x429e0d,'on'),_0x3cc026['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x429e0d['getAttributes']()),'uploadcareImageId':_0x4147f1,'src':_0x312dc8,'sources':_0x433d35,'width':_0x1c3670,'height':_0x41f895},_0x429e0d);_0x580979['setSelection'](_0x429e0d,'on');});}async['_getImageAsFile'](_0x3688a0){const _0x21a69b=_0x52aab0['window'],_0x56b09e=_0x52aab0['document']['location']['href'],_0x463663=new _0x21a69b['URL'](_0x3688a0['getAttribute']('src'),_0x56b09e);if('data:'===_0x463663['protocol']){const _0x3e2166=_0x463663['href']['split'](','),_0x15442c=_0x3e2166[0x0]['match'](/:(.*?);/)[0x1],_0x168a50=_0x15442c['split']('/')[0x1],_0x2fc879=_0x21a69b['atob'](_0x3e2166[_0x3e2166['length']-0x1]);let _0x537e81=_0x2fc879['length'];const _0x1974a8=new _0x21a69b['Uint8Array'](_0x537e81);for(;_0x537e81--;)_0x1974a8[_0x537e81]=_0x2fc879['charCodeAt'](_0x537e81);return new _0x21a69b['File']([_0x1974a8],'image.'+_0x168a50,{'type':_0x15442c});}const _0x2a33fc=_0x463663['href']['split']('/'),_0x4aab05=_0x2a33fc[_0x2a33fc['length']-0x1],_0x5df8c1=_0x4aab05['split']('.')[0x1];return _0x21a69b['fetch'](_0x463663['href'])['then'](_0x1d48ba=>_0x1d48ba['clone']()['blob']())['then'](_0x2d9512=>new _0x21a69b['File']([_0x2d9512],_0x4aab05,{'type':'image/'+_0x5df8c1}));}}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformeditingview
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from '
|
|
9
|
-
import { View } from '
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
10
10
|
import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
|
|
11
11
|
/**
|
|
12
12
|
* A class representing the form editing view of the Uploadcare image edit feature.
|
|
@@ -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 _0x34be(){const _0x44b4d8=['ck-uploadcare-theme','71559ZBxDFF','8QTCyze','uc-light','311658lVneCI','image-edit','1393768pktIFA','set','uc-cloud-image-editor','1543355FarpUo','7akGbWQ','61786FGQBFT','6whrQpR','setTemplate','65379zEDoRZ','bindTemplate','imageSrc','507635kLbhVX','10GLXZgr'];_0x34be=function(){return _0x44b4d8;};return _0x34be();}(function(_0x125931,_0x374a24){const _0x5b63a5=_0x2eca,_0x40e4fd=_0x125931();while(!![]){try{const _0xc4450d=-parseInt(_0x5b63a5(0x1bf))/0x1+-parseInt(_0x5b63a5(0x1bc))/0x2+parseInt(_0x5b63a5(0x1b5))/0x3*(-parseInt(_0x5b63a5(0x1b3))/0x4)+parseInt(_0x5b63a5(0x1af))/0x5*(parseInt(_0x5b63a5(0x1bd))/0x6)+parseInt(_0x5b63a5(0x1bb))/0x7*(parseInt(_0x5b63a5(0x1b7))/0x8)+-parseInt(_0x5b63a5(0x1b2))/0x9*(parseInt(_0x5b63a5(0x1b0))/0xa)+parseInt(_0x5b63a5(0x1ba))/0xb;if(_0xc4450d===_0x374a24)break;else _0x40e4fd['push'](_0x40e4fd['shift']());}catch(_0xc80211){_0x40e4fd['push'](_0x40e4fd['shift']());}}}(_0x34be,0x1967a));function _0x2eca(_0x6bb33,_0x12dd76){const _0x34be17=_0x34be();return _0x2eca=function(_0x2ecae9,_0x46dc80){_0x2ecae9=_0x2ecae9-0x1ad;let _0x155a2f=_0x34be17[_0x2ecae9];return _0x155a2f;},_0x2eca(_0x6bb33,_0x12dd76);}import{View as _0x1bddfb}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x1bddfb{constructor(_0x1726c9,_0x4307bf){const _0x5b71d7=_0x2eca;super(_0x1726c9);const _0x34f399=this[_0x5b71d7(0x1ad)];this[_0x5b71d7(0x1b8)](_0x5b71d7(0x1ae),''),this[_0x5b71d7(0x1be)]({'tag':_0x5b71d7(0x1b9),'attributes':{..._0x4307bf,'class':[_0x5b71d7(0x1b4),_0x5b71d7(0x1b1)],'ctx-name':_0x5b71d7(0x1b6),'cdn-url':_0x34f399['to'](_0x5b71d7(0x1ae))}});}}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { View } from '
|
|
6
|
-
import type { Locale } from '
|
|
5
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
7
7
|
import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
|
|
8
8
|
/**
|
|
9
9
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
@@ -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{IconError as _0x3b6e37}from'ckeditor5/src/icons.js';import{ButtonView as _0x244ce6,IconView as _0x1337af,View as _0x25fcb1}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x25fcb1{constructor(_0x1505da){super(_0x1505da);const t=_0x1505da['t'];this['set']('errorType',null);const _0xb6e79=new _0x244ce6(_0x1505da);_0xb6e79['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xb6e79['withText']=!0x0,_0xb6e79['class']='ck-button-action',_0xb6e79['on']('execute',()=>{this['fire']('retry');}),_0xb6e79['bind']('isVisible')['to'](this,'errorType',_0xa6c4fa=>'NotFound'!==_0xa6c4fa);const _0x3fed37=new _0x1337af();_0x3fed37['content']=_0x3b6e37,_0x3fed37['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x339706=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x3fed37,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x339706['to']('errorType',_0x42c3c2=>t('NotFound'!==_0x42c3c2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xb6e79]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformloadingview
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from '
|
|
9
|
-
import { View } from '
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
10
10
|
/**
|
|
11
11
|
* A class representing the form loading view of the Uploadcare image edit feature.
|
|
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{SpinnerView as _0x3dc327,View as _0x2fa17a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x2fa17a{constructor(_0x3b827f){super(_0x3b827f);const t=_0x3b827f['t'],_0x4e138b=this['bindTemplate'],_0x48ef04=new _0x3dc327();_0x48ef04['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x48ef04,{'text':_0x4e138b['to']('imageUploadProgress',_0x364f37=>t('Loading\x20image...')+'\x20('+(_0x364f37||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformview
|
|
7
7
|
*/
|
|
8
|
-
import { type Locale } from '
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { type UploadcareImageEditController } from './uploadcareimageeditcontroller.js';
|
|
10
10
|
import { DialogFocusManagerView } from '../../utils/dialogfocusmanagerview.js';
|
|
11
11
|
import type { UploadcareEditorConfig } from '../../uploadcareconfig.js';
|
|
@@ -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 _0x358d9b=_0x1391;function _0x555d(){const _0xe6d532=['length','8373189CWhkzh','5fNkFln','5054496rHISVV','createCollection','once','clear','_editingView','_addErrorViewListeners','detail','observe','disconnect','_errorView','5376891roWYOR','_addUploadcareImageEditorListeners','7iEMAuQ','cancel','_focusableView','_setView','status','addedNodes','fire','querySelector','59121OMpWKz','14997pDfKVO','target','42PxsrdB','add','retry','addMany','530gyDxOu','ready','ck-reset_all-excluded','656845OjxiLz','filter','_loadingView','change:status','apply','setTemplate','error','70GKBNSo','render','_items','_waitForImageEditorComponent','uc-cloud-image-editor','nodeName','addEventListener','focus','368IydNqd','set','div','125246QtaoeT','ck-uploadcare-form','cdnUrl','element','getFocusableElement','12svvidb','toLowerCase','uploading'];_0x555d=function(){return _0xe6d532;};return _0x555d();}(function(_0x1e6363,_0x18406e){const _0x4462ff=_0x1391,_0x21b05b=_0x1e6363();while(!![]){try{const _0x5319f4=parseInt(_0x4462ff(0x1ad))/0x1*(parseInt(_0x4462ff(0x1a3))/0x2)+parseInt(_0x4462ff(0x1c3))/0x3*(-parseInt(_0x4462ff(0x1a0))/0x4)+parseInt(_0x4462ff(0x1cc))/0x5*(-parseInt(_0x4462ff(0x1c5))/0x6)+parseInt(_0x4462ff(0x1ba))/0x7*(parseInt(_0x4462ff(0x1ae))/0x8)+-parseInt(_0x4462ff(0x1c2))/0x9*(parseInt(_0x4462ff(0x1c9))/0xa)+-parseInt(_0x4462ff(0x1ac))/0xb*(parseInt(_0x4462ff(0x1a8))/0xc)+parseInt(_0x4462ff(0x1b8))/0xd*(parseInt(_0x4462ff(0x198))/0xe);if(_0x5319f4===_0x18406e)break;else _0x21b05b['push'](_0x21b05b['shift']());}catch(_0x1605f9){_0x21b05b['push'](_0x21b05b['shift']());}}}(_0x555d,0x7ff53));function _0x1391(_0x1aebeb,_0x9e87d0){const _0x555d20=_0x555d();return _0x1391=function(_0x13917c,_0x47b2f2){_0x13917c=_0x13917c-0x193;let _0x35fca3=_0x555d20[_0x13917c];return _0x35fca3;},_0x1391(_0x1aebeb,_0x9e87d0);}import{View as _0x4a8021}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3ca41e}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x393d0c}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2ecb32}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x589a18}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x589a18{[_0x358d9b(0x19a)];[_0x358d9b(0x193)];[_0x358d9b(0x1b7)];[_0x358d9b(0x1b2)];[_0x358d9b(0x1bc)];constructor(_0x5e8fb7,_0x3bcb19,_0xf9fd2d){const _0x19ae19=_0x358d9b;super(_0x5e8fb7),this[_0x19ae19(0x19a)]=this[_0x19ae19(0x1af)](),this[_0x19ae19(0x193)]=new _0x3ca41e(_0x5e8fb7),this[_0x19ae19(0x1b7)]=new _0x393d0c(_0x5e8fb7),this[_0x19ae19(0x1b2)]=new _0x2ecb32(_0x5e8fb7,_0xf9fd2d),this[_0x19ae19(0x1bc)]=new _0x4a8021(_0x5e8fb7),this[_0x19ae19(0x1bc)][_0x19ae19(0x196)](this[_0x19ae19(0x1a7)]()),this[_0x19ae19(0x1a1)](_0x19ae19(0x1be),_0x3bcb19),this[_0x19ae19(0x196)]({'tag':_0x19ae19(0x1a2),'attributes':{'class':['ck',_0x19ae19(0x1cb),_0x19ae19(0x1a4)],'tabindex':'-1'},'children':this[_0x19ae19(0x19a)]}),this[_0x19ae19(0x1bd)](),this[_0x19ae19(0x1b0)](_0x19ae19(0x199),()=>{const _0x4fc040=_0x19ae19;this[_0x4fc040(0x19b)](this[_0x4fc040(0x1a6)],_0x5063f4=>{const _0x18deb9=_0x4fc040;this[_0x18deb9(0x1b9)](_0x5063f4);});}),this['on'](_0x19ae19(0x194),()=>{const _0x451360=_0x19ae19;this[_0x451360(0x1bd)]();}),this[_0x19ae19(0x1b3)]();}[_0x358d9b(0x19f)](){const _0x45eb07=_0x358d9b;this[_0x45eb07(0x1a6)][_0x45eb07(0x19f)]();}[_0x358d9b(0x1bd)](){const _0x1e072b=_0x358d9b;switch(this[_0x1e072b(0x19a)][_0x1e072b(0x1b1)](),this[_0x1e072b(0x1be)]){case _0x1e072b(0x1aa):this[_0x1e072b(0x19a)][_0x1e072b(0x1c6)](this[_0x1e072b(0x193)]);break;case _0x1e072b(0x197):this[_0x1e072b(0x19a)][_0x1e072b(0x1c6)](this[_0x1e072b(0x1b7)]);break;case _0x1e072b(0x1ca):this[_0x1e072b(0x19a)][_0x1e072b(0x1c8)]([this[_0x1e072b(0x1b2)],this[_0x1e072b(0x1bc)]]);}}[_0x358d9b(0x19b)](_0x62417c,_0x44a6ef){const _0x11dc71=_0x358d9b,_0x52b3e1=_0x11dc71(0x19c),_0x2e354b=_0x62417c[_0x11dc71(0x1c1)](_0x52b3e1);if(_0x2e354b)return _0x44a6ef(_0x2e354b);const _0xf97f0c=new MutationObserver(_0xe2a003=>{const _0x10f91f=_0x11dc71,_0x1418e4=_0xe2a003[_0x10f91f(0x1cd)](_0x36c231=>_0x36c231[_0x10f91f(0x1c4)]===_0x62417c&&_0x36c231[_0x10f91f(0x1bf)][_0x10f91f(0x1ab)]>0x0&&_0x36c231[_0x10f91f(0x1bf)][0x0][_0x10f91f(0x19d)][_0x10f91f(0x1a9)]()===_0x52b3e1);_0x1418e4[_0x10f91f(0x1ab)]&&(_0xf97f0c[_0x10f91f(0x1b6)](),_0x44a6ef(_0x1418e4[0x0][_0x10f91f(0x1bf)][0x0]));});_0xf97f0c[_0x11dc71(0x1b5)](_0x62417c,{'childList':!0x0,'subtree':!0x0});}[_0x358d9b(0x1b9)](_0x28a24c){const _0x3b87ac=_0x358d9b;_0x28a24c[_0x3b87ac(0x19e)](_0x3b87ac(0x195),_0x24467b=>{const _0x39afeb=_0x3b87ac;this[_0x39afeb(0x1c0)](_0x39afeb(0x195),{'imageSrc':_0x24467b[_0x39afeb(0x1b4)][_0x39afeb(0x1a5)]});}),_0x28a24c[_0x3b87ac(0x19e)](_0x3b87ac(0x1bb),()=>{const _0x3cdb3e=_0x3b87ac;this[_0x3cdb3e(0x1c0)](_0x3cdb3e(0x1bb));});}[_0x358d9b(0x1b3)](){const _0x33bb1a=_0x358d9b;this[_0x33bb1a(0x1b7)]['on'](_0x33bb1a(0x1c7),()=>{const _0xc7bbe0=_0x33bb1a;this[_0xc7bbe0(0x1c0)](_0xc7bbe0(0x1c7));});}}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module uploadcare/uploadcareimageedit/uploadcareimageeditcommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command, type Editor } from '
|
|
10
|
-
import { Dialog } from '
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
11
|
import { UploadcareImageEditController } from './ui/uploadcareimageeditcontroller.js';
|
|
12
12
|
/**
|
|
13
13
|
* The Uploadcare edit image command.
|
|
@@ -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 _0x1febb6=_0x1ad5;(function(_0x43f181,_0xf7878){const _0x25326c=_0x1ad5,_0x3a54e5=_0x43f181();while(!![]){try{const _0x1f65c5=-parseInt(_0x25326c(0x1cb))/0x1*(parseInt(_0x25326c(0x1d5))/0x2)+-parseInt(_0x25326c(0x1d8))/0x3*(-parseInt(_0x25326c(0x1da))/0x4)+-parseInt(_0x25326c(0x1e1))/0x5+-parseInt(_0x25326c(0x1df))/0x6*(-parseInt(_0x25326c(0x1e7))/0x7)+parseInt(_0x25326c(0x1d4))/0x8*(parseInt(_0x25326c(0x1d6))/0x9)+parseInt(_0x25326c(0x1e6))/0xa+-parseInt(_0x25326c(0x1dc))/0xb*(parseInt(_0x25326c(0x1e8))/0xc);if(_0x1f65c5===_0xf7878)break;else _0x3a54e5['push'](_0x3a54e5['shift']());}catch(_0x353017){_0x3a54e5['push'](_0x3a54e5['shift']());}}}(_0x2782,0xc62b9));function _0x2782(){const _0x5842a5=['623xhuWDf','1709088AqfPTW','execute','editor','imageEditController','document','70rRenTT','imageBlock','getSelectedElement','bind','uploadcare.allowExternalImagesEditing','isEnabled','imageInline','unbind','config','8WRNste','2372VNVFgP','11344869madMhk','refresh','11553JPaBCo','plugins','436TlItRZ','element','154aGDDti','selection','model','11238MfbTwp','get','923455YZLDsn','_isEditable','isActive','set','requires','12263550aQyGiP'];_0x2782=function(){return _0x5842a5;};return _0x2782();}function _0x1ad5(_0x572eba,_0x28a3a2){const _0x278255=_0x2782();return _0x1ad5=function(_0x1ad5ca,_0x2caa24){_0x1ad5ca=_0x1ad5ca-0x1c9;let _0xcd4d90=_0x278255[_0x1ad5ca];return _0xcd4d90;},_0x1ad5(_0x572eba,_0x28a3a2);}import{Command as _0x4cac3c}from'ckeditor5/src/core.js';import{Dialog as _0x2ba2bf}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x496c48}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xe270e2}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x4cac3c{[_0x1febb6(0x1c9)];static get[_0x1febb6(0x1e5)](){return[_0x2ba2bf];}[_0x1febb6(0x1e2)];constructor(_0x1e6915){const _0x10a1a4=_0x1febb6;super(_0x1e6915),this[_0x10a1a4(0x1c9)]=void 0x0,this[_0x10a1a4(0x1e2)]=_0xe270e2(_0x1e6915[_0x10a1a4(0x1d3)][_0x10a1a4(0x1e0)](_0x10a1a4(0x1cf))||[]),this[_0x10a1a4(0x1e4)]({'isActive':!0x1});}[_0x1febb6(0x1d7)](){const _0x5e1364=_0x1febb6,_0x1d504a=this[_0x5e1364(0x1ea)][_0x5e1364(0x1de)][_0x5e1364(0x1ca)][_0x5e1364(0x1dd)][_0x5e1364(0x1cd)]();this[_0x5e1364(0x1d0)]=this[_0x5e1364(0x1e2)](_0x1d504a);}[_0x1febb6(0x1e9)](){const _0x480ef3=_0x1febb6;this[_0x480ef3(0x1c9)]&&(this[_0x480ef3(0x1d2)](_0x480ef3(0x1e3)),this[_0x480ef3(0x1c9)]=void 0x0);const _0x5f0e64=this[_0x480ef3(0x1ea)][_0x480ef3(0x1de)][_0x480ef3(0x1ca)][_0x480ef3(0x1dd)][_0x480ef3(0x1cd)]();_0x5f0e64&&(_0x5f0e64['is'](_0x480ef3(0x1db),_0x480ef3(0x1cc))||_0x5f0e64['is'](_0x480ef3(0x1db),_0x480ef3(0x1d1)))&&(this[_0x480ef3(0x1c9)]=new _0x496c48(this[_0x480ef3(0x1ea)],this[_0x480ef3(0x1ea)][_0x480ef3(0x1d9)][_0x480ef3(0x1e0)](_0x2ba2bf),_0x5f0e64),this[_0x480ef3(0x1ce)](_0x480ef3(0x1e3))['to'](this[_0x480ef3(0x1c9)],_0x480ef3(0x1e3)));}}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module uploadcare/uploadcareimageedit/uploadcareimageeditediting
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from '
|
|
10
|
-
import { Notification } from '
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import { Notification } from 'ckeditor5/src/ui.js';
|
|
11
11
|
import { UploadcareEditing } from '../uploadcareediting.js';
|
|
12
12
|
/**
|
|
13
13
|
* The Uploadcare image editing plugin.
|