@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260130.0 → 0.0.0-nightly-20260131.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
|
+
function _0x30c4(){const _0x5c1dca=['_type','get','ucContextId','stopDelegating','_initListeners','configElement','_api','hide','removeAllFiles','getAPI','ctxElement','attributes','931601DySGUa','stopListening','show','setSelection','_editing','element','isOpen','2055KthSRb','insertImage','imageBlock','imageInfo','document','_insertAsset','plugins','761931vZGZjF','setAttribute','removeSelectionAttribute','image','change','Replace','status','8eiADgZ','Insert','model','953706NOdxun','78482wPurFa','_formView','text','uuid','selection','source-list','_editor','getSelectedElement','focus','_dialog','initFlow','40fYCNSM','imageInline','editing','linkHref','getOutputCollectionState','detail','idle','1708nRpJXF','execute','view','_insertImage','width','length','4VDOPQY','uploadCare','destroy','done-click','196364AJHybl','_initDialog','getLastPosition','allEntries','doneFlow','Local','EDITOR_TOP_CENTER','setCurrentActivity','addEventListener','1418427NIvaMw'];_0x30c4=function(){return _0x5c1dca;};return _0x30c4();}const _0x51e27b=_0x1ddb;(function(_0x52263b,_0x30f0d1){const _0xdfbb5d=_0x1ddb,_0x9abd4f=_0x52263b();while(!![]){try{const _0x37c987=parseInt(_0xdfbb5d(0x19b))/0x1*(-parseInt(_0xdfbb5d(0x1ce))/0x2)+-parseInt(_0xdfbb5d(0x1c3))/0x3+parseInt(_0xdfbb5d(0x195))/0x4*(parseInt(_0xdfbb5d(0x1bc))/0x5)+-parseInt(_0xdfbb5d(0x1cd))/0x6+parseInt(_0xdfbb5d(0x19f))/0x7+parseInt(_0xdfbb5d(0x1ca))/0x8*(parseInt(_0xdfbb5d(0x1a8))/0x9)+parseInt(_0xdfbb5d(0x18e))/0xa*(parseInt(_0xdfbb5d(0x1b5))/0xb);if(_0x37c987===_0x30f0d1)break;else _0x9abd4f['push'](_0x9abd4f['shift']());}catch(_0x11fff4){_0x9abd4f['push'](_0x9abd4f['shift']());}}}(_0x30c4,0x1fbe8));import{IconUploadcareImageUpload as _0x449c04}from'ckeditor5/src/icons.js';function _0x1ddb(_0x56c78f,_0xa522a7){const _0x30c4ea=_0x30c4();return _0x1ddb=function(_0x1ddb83,_0x5b8a06){_0x1ddb83=_0x1ddb83-0x18d;let _0x440f92=_0x30c4ea[_0x1ddb83];return _0x440f92;},_0x1ddb(_0x56c78f,_0xa522a7);}import{ObservableMixin as _0x118aa6}from'ckeditor5/src/utils.js';import{Dialog as _0x28b774,DialogViewPosition as _0x301898}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x2262ae}from'./uploadcareformview.js';import{UploadcareSource as _0xf9aca4}from'../uploadcareconfig.js';import{getTranslation as _0x133930}from'../utils/common-translations.js';import{getImageUrls as _0x4ea798,getImageDimension as _0x2281d1}from'../utils/editingutils.js';import{isAncestor as _0x10be1f}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x118aa6(){[_0x51e27b(0x1d4)];[_0x51e27b(0x1d7)];[_0x51e27b(0x1b9)];[_0x51e27b(0x1af)];[_0x51e27b(0x1a9)]=null;[_0x51e27b(0x1cf)]=null;constructor(_0x82b70,_0x2f17e4,_0x8487a6){const _0x4338e0=_0x51e27b;super(),this[_0x4338e0(0x1d4)]=_0x82b70,this[_0x4338e0(0x1b9)]=_0x2f17e4,this[_0x4338e0(0x1d7)]=_0x82b70[_0x4338e0(0x1c2)][_0x4338e0(0x1aa)](_0x28b774),this[_0x4338e0(0x1af)]=_0x2f17e4[_0x4338e0(0x1b3)][_0x4338e0(0x1b2)](),this[_0x4338e0(0x1a9)]=_0x8487a6,this[_0x4338e0(0x1b9)][_0x4338e0(0x1ae)][_0x4338e0(0x1c4)](_0x4338e0(0x1d3),this[_0x4338e0(0x1a9)]),this[_0x4338e0(0x1a0)](),this[_0x4338e0(0x1ad)](),this[_0x4338e0(0x1af)][_0x4338e0(0x18d)]();}[_0x51e27b(0x19d)](){const _0x438d47=_0x51e27b;this[_0x438d47(0x1cf)]&&(this[_0x438d47(0x1cf)][_0x438d47(0x19d)](),this[_0x438d47(0x1cf)]=null),this[_0x438d47(0x1af)]&&this[_0x438d47(0x1af)][_0x438d47(0x1a3)](),this[_0x438d47(0x1b6)](),this[_0x438d47(0x1ac)]();}[_0x51e27b(0x1a0)](){const _0x3e92a2=_0x51e27b,{locale:_0x1ab74b,model:_0x2ce8ac}=this[_0x3e92a2(0x1d4)],_0x2a29b2=_0x2ce8ac[_0x3e92a2(0x1c0)][_0x3e92a2(0x1d2)][_0x3e92a2(0x1d5)](),_0x5cbd34=_0x2a29b2&&(_0x2a29b2['is'](_0x3e92a2(0x1ba),_0x3e92a2(0x1be))||_0x2a29b2['is'](_0x3e92a2(0x1ba),_0x3e92a2(0x18f)));this[_0x3e92a2(0x1cf)]=new _0x2262ae(_0x1ab74b,this[_0x3e92a2(0x1b9)][_0x3e92a2(0x1ab)]),this[_0x3e92a2(0x1d7)][_0x3e92a2(0x1b7)]({'id':_0x3e92a2(0x19c),'icon':_0x449c04,'title':_0x133930(_0x1ab74b,this[_0x3e92a2(0x1a9)],_0x5cbd34?_0x3e92a2(0x1c8):_0x3e92a2(0x1cb))[_0x3e92a2(0x1d0)],'content':this[_0x3e92a2(0x1cf)],'position':_0x301898[_0x3e92a2(0x1a5)],'isModal':!0x0,'onShow':()=>{const _0x42f0fc=_0x3e92a2;this[_0x42f0fc(0x1cf)][_0x42f0fc(0x1d6)]();},'onHide':()=>{const _0x251989=_0x3e92a2;this[_0x251989(0x1af)][_0x251989(0x1b1)](),this[_0x251989(0x1d4)][_0x251989(0x190)][_0x251989(0x197)][_0x251989(0x1d6)](),this[_0x251989(0x19d)]();},'keystrokeHandlerOptions':{'filter':_0x4dc8ba=>!_0x10be1f(_0x4dc8ba,this[_0x3e92a2(0x1cf)][_0x3e92a2(0x1ba)])}});}[_0x51e27b(0x1ad)](){const _0xf19162=_0x51e27b;this[_0xf19162(0x1b9)][_0xf19162(0x1b3)][_0xf19162(0x1a7)](_0xf19162(0x19e),()=>{const _0x2e2dcd=_0xf19162,{allEntries:_0xb32eaf}=this[_0x2e2dcd(0x1af)][_0x2e2dcd(0x192)]();this[_0x2e2dcd(0x1d4)][_0x2e2dcd(0x1cc)][_0x2e2dcd(0x1c7)](_0x114da=>{const _0x46e567=_0x2e2dcd,_0x170ff3=_0xb32eaf[_0x46e567(0x19a)];for(const _0x52d587 of _0xb32eaf){const _0x4a6e34=_0x52d587===_0xb32eaf[_0x170ff3-0x1],{cdnUrl:_0x1d4265,fileInfo:_0x227bc0}=_0x52d587;if(!_0x1d4265||!_0x227bc0)continue;const {width:_0x567ead,height:_0x2d71c1}=_0x227bc0[_0x46e567(0x1bf)],_0x3f3dc6=_0x2281d1(_0x1d4265,_0x567ead,_0x2d71c1),_0x2e728a=_0x4ea798(_0x1d4265,_0x3f3dc6[_0x46e567(0x199)]),_0x4be2cd={'id':_0x227bc0[_0x46e567(0x1d1)],'type':_0x46e567(0x1c6),'attributes':{'imageDimension':_0x3f3dc6,..._0x2e728a}};this[_0x46e567(0x1c1)](_0x4be2cd,_0x4a6e34,_0x114da);}}),this[_0x2e2dcd(0x1d7)][_0x2e2dcd(0x1b0)]();}),this[_0xf19162(0x1b9)][_0xf19162(0x1b3)][_0xf19162(0x1a7)](_0xf19162(0x1c7),_0x3fe1bf=>{const _0x1f1f63=_0xf19162;_0x1f1f63(0x194)===_0x3fe1bf[_0x1f1f63(0x193)][_0x1f1f63(0x1c9)]&&!_0x3fe1bf[_0x1f1f63(0x193)][_0x1f1f63(0x1a2)][_0x1f1f63(0x19a)]&&this[_0x1f1f63(0x1d7)][_0x1f1f63(0x1bb)]&&(this[_0x1f1f63(0x1a9)]===_0xf9aca4[_0x1f1f63(0x1a4)]?this[_0x1f1f63(0x1af)][_0x1f1f63(0x1a6)](_0xf9aca4[_0x1f1f63(0x1a4)]):this[_0x1f1f63(0x1af)][_0x1f1f63(0x18d)]());});}[_0x51e27b(0x1c1)](_0x4ca3c7,_0x34f8d0,_0x2be7ec){const _0x429aba=_0x51e27b,_0x2129d7=this[_0x429aba(0x1d4)][_0x429aba(0x1cc)][_0x429aba(0x1c0)][_0x429aba(0x1d2)],_0xfccb84=_0x2129d7[_0x429aba(0x1d5)](),_0x196244=!(!_0xfccb84||!_0xfccb84['is'](_0x429aba(0x1ba),_0x429aba(0x18f)));_0x2be7ec[_0x429aba(0x1c5)](_0x429aba(0x191)),this[_0x429aba(0x198)](_0x4ca3c7,_0x196244),_0x34f8d0||_0x2be7ec[_0x429aba(0x1b8)](_0x2129d7[_0x429aba(0x1a1)]());}[_0x51e27b(0x198)](_0x5b1901,_0x2a4b6e){const _0x20ef00=_0x51e27b,_0x2471f8=this[_0x20ef00(0x1d4)],{imageDimension:_0x395620,imageFallbackUrl:_0x11b6f4,imageSources:_0x1c292d}=_0x5b1901[_0x20ef00(0x1b4)];_0x2471f8[_0x20ef00(0x196)](_0x20ef00(0x1bd),{'imageType':_0x2a4b6e?_0x20ef00(0x18f):null,'source':{'uploadcareImageId':_0x5b1901['id'],'src':_0x11b6f4,'sources':_0x1c292d,..._0x395620}});}}
|
|
@@ -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 _0x2cb2fc=_0x51dd;(function(_0x579d64,_0x29fbbc){var _0x401626=_0x51dd,_0x99a48e=_0x579d64();while(!![]){try{var _0x183c33=parseInt(_0x401626(0x7c))/0x1+-parseInt(_0x401626(0x82))/0x2+-parseInt(_0x401626(0x7e))/0x3+-parseInt(_0x401626(0x75))/0x4+parseInt(_0x401626(0x74))/0x5*(-parseInt(_0x401626(0x7b))/0x6)+-parseInt(_0x401626(0x7d))/0x7+parseInt(_0x401626(0x73))/0x8;if(_0x183c33===_0x29fbbc)break;else _0x99a48e['push'](_0x99a48e['shift']());}catch(_0xdafc3f){_0x99a48e['push'](_0x99a48e['shift']());}}}(_0x2a6d,0x1cb31));function _0x51dd(_0x44c963,_0x2fb337){var _0x2a6dd7=_0x2a6d();return _0x51dd=function(_0x51ddfb,_0x4a8f38){_0x51ddfb=_0x51ddfb-0x71;var _0x386b3a=_0x2a6dd7[_0x51ddfb];return _0x386b3a;},_0x51dd(_0x44c963,_0x2fb337);}function _0x2a6d(){var _0x282e26=['155976rNqGXI','uc-light','ck-uploadcare-form','setTemplate','4735592mByWrZ','290vsjrLL','880448lfjNIu','div','ck-uploadcare-theme','getFocusableElement','uc-file-uploader-inline','ck-reset_all-excluded','3732JRMYTN','139540IFmRkD','341754iATtaf','692814UKUzVD','element','uploader-','focus'];_0x2a6d=function(){return _0x282e26;};return _0x2a6d();}import{DialogFocusManagerView as _0x427ced}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x427ced{constructor(_0x181fa8,_0x486c82){var _0x54ecd3=_0x51dd;super(_0x181fa8),this[_0x54ecd3(0x72)]({'tag':_0x54ecd3(0x76),'attributes':{'class':['ck',_0x54ecd3(0x7a),_0x54ecd3(0x71)],'tabindex':'-1'},'children':[{'tag':_0x54ecd3(0x79),'attributes':{'class':[_0x54ecd3(0x83),_0x54ecd3(0x77)],'ctx-name':_0x54ecd3(0x80)+_0x486c82}},this[_0x54ecd3(0x78)]()]});}[_0x2cb2fc(0x81)](){var _0x173bd2=_0x2cb2fc;this[_0x173bd2(0x7f)][_0x173bd2(0x81)]();}}
|
|
@@ -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
|
+
function _0x5252(_0x3600bf,_0x15b2a3){const _0x4c9a54=_0x4c9a();return _0x5252=function(_0x525212,_0x5850bf){_0x525212=_0x525212-0x185;let _0x43a9bc=_0x4c9a54[_0x525212];return _0x43a9bc;},_0x5252(_0x3600bf,_0x15b2a3);}const _0x174310=_0x5252;(function(_0x44ab9c,_0x5b9c40){const _0x5be988=_0x5252,_0xfa2ba1=_0x44ab9c();while(!![]){try{const _0x5b00c5=parseInt(_0x5be988(0x18f))/0x1*(-parseInt(_0x5be988(0x186))/0x2)+parseInt(_0x5be988(0x189))/0x3*(-parseInt(_0x5be988(0x195))/0x4)+parseInt(_0x5be988(0x193))/0x5+-parseInt(_0x5be988(0x197))/0x6+parseInt(_0x5be988(0x1a0))/0x7*(-parseInt(_0x5be988(0x19b))/0x8)+parseInt(_0x5be988(0x19d))/0x9+parseInt(_0x5be988(0x191))/0xa*(parseInt(_0x5be988(0x18a))/0xb);if(_0x5b00c5===_0x5b9c40)break;else _0xfa2ba1['push'](_0xfa2ba1['shift']());}catch(_0x268695){_0xfa2ba1['push'](_0xfa2ba1['shift']());}}}(_0x4c9a,0xa8a4d));import{Plugin as _0x46b40d}from'ckeditor5/src/core.js';import{UploadcareUI as _0x360728}from'./uploadcareui.js';import{UploadcareEditing as _0xb90eda}from'./uploadcareediting.js';function _0x4c9a(){const _0x5a1e3a=['95425wUlrvu','editor','defineComponents','defineLocale','locale','523027pndGFD','contentLanguage','2890TLpWfJ','requires','6246315EnSOIZ','uploadcare.uploader.sourceList','68LAcvdz','config','2894190jzmZfg','_defineLocale','uploadcare.locale','Local','4808FBxZtR','isOfficialPlugin','1141632VgOvQa','URL','get','13482gdGcbb','isPremiumPlugin','define','2NPTQbL','pluginName','Uploadcare','181677vJHIKv'];_0x4c9a=function(){return _0x5a1e3a;};return _0x4c9a();}import{UploadcareSource as _0x4e8d8c}from'./uploadcareconfig.js';import*as _0x596cf4 from'@uploadcare/file-uploader';export class Uploadcare extends _0x46b40d{static get[_0x174310(0x192)](){return[_0xb90eda,_0x360728];}static get[_0x174310(0x187)](){const _0x2707b8=_0x174310;return _0x2707b8(0x188);}static get[_0x174310(0x19c)](){return!0x0;}static get[_0x174310(0x1a1)](){return!0x0;}constructor(_0x244d8a){const _0x57c917=_0x174310;super(_0x244d8a),_0x244d8a[_0x57c917(0x196)][_0x57c917(0x185)](_0x57c917(0x194),[_0x4e8d8c[_0x57c917(0x19a)],_0x4e8d8c[_0x57c917(0x19e)]]),_0x596cf4[_0x57c917(0x18c)](_0x596cf4),this[_0x57c917(0x198)]();}[_0x174310(0x198)](){const _0x26a860=_0x174310,_0x564150=this[_0x26a860(0x18b)][_0x26a860(0x196)][_0x26a860(0x19f)](_0x26a860(0x199)),_0x4cd9ee=this[_0x26a860(0x18b)][_0x26a860(0x18e)][_0x26a860(0x190)];_0x564150&&_0x596cf4[_0x26a860(0x18d)](_0x4cd9ee,_0x564150);}}
|
|
@@ -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
|
+
function _0x6b88(){var _0x2e9237=['_editing','778050aekMIg','requires','_controller','4854408CCvivh','destroy','_checkEnabled','7biEFfD','90oDhcee','insertImage','editor','23540YCpFwh','3072249hnnNrN','2786108maQoSc','4mJHPPJ','get','16314dfFRar','isEnabled','3080wXgIMv','refresh','1874931GMLSyd','commands','plugins','execute'];_0x6b88=function(){return _0x2e9237;};return _0x6b88();}var _0x382217=_0xfce7;(function(_0x1ec234,_0x8fa454){var _0xe104d1=_0xfce7,_0x4e072a=_0x1ec234();while(!![]){try{var _0x2d7838=-parseInt(_0xe104d1(0x180))/0x1+-parseInt(_0xe104d1(0x175))/0x2*(-parseInt(_0xe104d1(0x17b))/0x3)+-parseInt(_0xe104d1(0x174))/0x4+-parseInt(_0xe104d1(0x16f))/0x5*(parseInt(_0xe104d1(0x177))/0x6)+-parseInt(_0xe104d1(0x16e))/0x7*(-parseInt(_0xe104d1(0x16b))/0x8)+-parseInt(_0xe104d1(0x173))/0x9+parseInt(_0xe104d1(0x179))/0xa*(parseInt(_0xe104d1(0x172))/0xb);if(_0x2d7838===_0x8fa454)break;else _0x4e072a['push'](_0x4e072a['shift']());}catch(_0xe84337){_0x4e072a['push'](_0x4e072a['shift']());}}}(_0x6b88,0x9eef3));import{Command as _0x734bc4}from'ckeditor5/src/core.js';import{Dialog as _0x2ac879}from'ckeditor5/src/ui.js';function _0xfce7(_0x305d7a,_0x14b466){var _0x6b88cb=_0x6b88();return _0xfce7=function(_0xfce73,_0x11cfde){_0xfce73=_0xfce73-0x169;var _0x3dc6c7=_0x6b88cb[_0xfce73];return _0x3dc6c7;},_0xfce7(_0x305d7a,_0x14b466);}import{UploadcareEditing as _0x11c57d}from'./uploadcareediting.js';import{UploadcareController as _0xc32bb2}from'./ui/uploadcarecontroller.js';export class UploadcareCommand extends _0x734bc4{[_0x382217(0x17f)];[_0x382217(0x16a)]=null;static get[_0x382217(0x169)](){return[_0x2ac879,_0x11c57d];}constructor(_0x7f441a){var _0x4c010d=_0x382217;super(_0x7f441a),this[_0x4c010d(0x17f)]=_0x7f441a[_0x4c010d(0x17d)][_0x4c010d(0x176)](_0x11c57d);}[_0x382217(0x17a)](){var _0x108913=_0x382217;this[_0x108913(0x178)]=this[_0x108913(0x16d)]();}[_0x382217(0x17e)](_0x406b8a){var _0x2fc818=_0x382217;this[_0x2fc818(0x16a)]&&(this[_0x2fc818(0x16a)][_0x2fc818(0x16c)](),this[_0x2fc818(0x16a)]=null),this[_0x2fc818(0x16a)]=new _0xc32bb2(this[_0x2fc818(0x171)],this[_0x2fc818(0x17f)],_0x406b8a);}[_0x382217(0x16d)](){var _0x2f1480=_0x382217;return this[_0x2f1480(0x171)][_0x2f1480(0x17c)][_0x2f1480(0x176)](_0x2f1480(0x170))[_0x2f1480(0x178)];}}
|
|
@@ -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(_0x4e53a5,_0x1c6436){var _0x23a13a=_0x1f9c,_0x14115c=_0x4e53a5();while(!![]){try{var _0x1972f2=parseInt(_0x23a13a(0x13d))/0x1*(-parseInt(_0x23a13a(0x136))/0x2)+parseInt(_0x23a13a(0x13c))/0x3+-parseInt(_0x23a13a(0x13b))/0x4*(-parseInt(_0x23a13a(0x13e))/0x5)+parseInt(_0x23a13a(0x141))/0x6*(parseInt(_0x23a13a(0x12c))/0x7)+-parseInt(_0x23a13a(0x12b))/0x8*(parseInt(_0x23a13a(0x131))/0x9)+parseInt(_0x23a13a(0x130))/0xa*(parseInt(_0x23a13a(0x12f))/0xb)+parseInt(_0x23a13a(0x13a))/0xc;if(_0x1972f2===_0x1c6436)break;else _0x14115c['push'](_0x14115c['shift']());}catch(_0x7737e9){_0x14115c['push'](_0x14115c['shift']());}}}(_0x163e,0x5561e));export var UploadcareSource;function _0x163e(){var _0x315575=['gdrive','gphotos','Dropbox','4661388iFSSdm','11364DiBtTg','391446WHXfiw','25967mNNlgn','905CFbTwd','Local','local','42EppEpV','url','URL','onedrive','1251680mvSpWA','68628wlUzVo','Facebook','dropbox','3460237SzbJMj','10zQNlCw','27HKwKhT','facebook','GDrive','GPhotos','OneDrive','46LWbCwF'];_0x163e=function(){return _0x315575;};return _0x163e();}function _0x1f9c(_0x83e75b,_0x5c1f02){var _0x163e50=_0x163e();return _0x1f9c=function(_0x1f9cae,_0x9ad9bd){_0x1f9cae=_0x1f9cae-0x12b;var _0x362b84=_0x163e50[_0x1f9cae];return _0x362b84;},_0x1f9c(_0x83e75b,_0x5c1f02);}!function(_0x232d6f){var _0x45fc11=_0x1f9c;_0x232d6f[_0x45fc11(0x13f)]=_0x45fc11(0x140),_0x232d6f[_0x45fc11(0x143)]=_0x45fc11(0x142),_0x232d6f[_0x45fc11(0x139)]=_0x45fc11(0x12e),_0x232d6f[_0x45fc11(0x133)]=_0x45fc11(0x137),_0x232d6f[_0x45fc11(0x12d)]=_0x45fc11(0x132),_0x232d6f[_0x45fc11(0x134)]=_0x45fc11(0x138),_0x232d6f[_0x45fc11(0x135)]=_0x45fc11(0x144);}(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
|
+
const _0x593bfd=_0x42be;(function(_0x529bad,_0x3797f4){const _0x16b5c8=_0x42be,_0xc0750b=_0x529bad();while(!![]){try{const _0x58cb6d=-parseInt(_0x16b5c8(0x19d))/0x1+parseInt(_0x16b5c8(0x171))/0x2*(parseInt(_0x16b5c8(0x176))/0x3)+-parseInt(_0x16b5c8(0x194))/0x4*(parseInt(_0x16b5c8(0x177))/0x5)+parseInt(_0x16b5c8(0x161))/0x6+-parseInt(_0x16b5c8(0x1a4))/0x7+parseInt(_0x16b5c8(0x179))/0x8+parseInt(_0x16b5c8(0x16f))/0x9;if(_0x58cb6d===_0x3797f4)break;else _0xc0750b['push'](_0xc0750b['shift']());}catch(_0x2666ac){_0xc0750b['push'](_0xc0750b['shift']());}}}(_0x25df,0xcb348));import{Plugin as _0x92d4a2}from'ckeditor5/src/core.js';import{Dialog as _0x301609}from'ckeditor5/src/ui.js';function _0x42be(_0x1ee280,_0x529217){const _0x25dfff=_0x25df();return _0x42be=function(_0x42be65,_0x44d40e){_0x42be65=_0x42be65-0x153;let _0x4bbadd=_0x25dfff[_0x42be65];return _0x4bbadd;},_0x42be(_0x1ee280,_0x529217);}import{createElement as _0x3926d0,global as _0x1f3673,uid as _0x506d8b}from'ckeditor5/src/utils.js';function _0x25df(){const _0x59ac5c=['isRegistered','join','UploadcareEditing','once','_ctxElement','uc-config','_initImageProcessingIndicator','imageInline','destroy','config','input[uploadcare-file-input]','_configElement','init','map','replaceImageSource','insertImage','model','commands','24OpZDwg','afterInit','cleanupImage','attributeToAttribute','uploader-','true','_initConfig','removeAttribute','uploadcare.pubkey','545866LhDZPl','PictureEditing','requires','appendChild','render','conversion','_initSchema','10432849GmrLfk','imageBlock','ucContextId','href','schema','fromCharCode','closeMax','for','data-uc-image-id','configElement','uploadcareImageId','editor','selection','elementToAttribute','extend','remove','editing','1577874yQuAuN','querySelector','getAttribute','getSelectedElement','iconHrefResolver','_initConversion','_initCtx','view','document','uc-upload-ctx-provider','isPremiumPlugin','uploadcare.uploader','locale','listenTo','6625683FERZHe','contentLanguage','2ZypePm','get','execute','uploadcare','#uc-icon-arrow-down','3226053HpFfOV','673315kUnbzl','downcast','12816496awrkjq','ctxElement','add','body','isOfficialPlugin','uploadcareImageReplace','\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','upcast','pluginName'];_0x25df=function(){return _0x59ac5c;};return _0x25df();}import{UploadcareCommand as _0x74c8ec}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x14ecc9}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x202511}from'./utils/editingutils.js';export class UploadcareEditing extends _0x92d4a2{[_0x593bfd(0x18d)]=null;[_0x593bfd(0x186)]=null;static get[_0x593bfd(0x181)](){const _0x190684=_0x593bfd;return _0x190684(0x184);}static get[_0x593bfd(0x19f)](){const _0x374102=_0x593bfd;return[_0x374102(0x19e),_0x14ecc9,_0x301609];}static get[_0x593bfd(0x17d)](){return!0x0;}static get[_0x593bfd(0x16b)](){return!0x0;}[_0x593bfd(0x1a6)];get[_0x593bfd(0x159)](){const _0x34cc06=_0x593bfd;return this[_0x34cc06(0x18d)];}get[_0x593bfd(0x17a)](){const _0x1860bc=_0x593bfd;return this[_0x1860bc(0x186)];}constructor(_0x5d5718){const _0x246ea7=_0x593bfd;super(_0x5d5718),this[_0x246ea7(0x1a6)]=_0x506d8b();}[_0x593bfd(0x18e)](){const _0x53a98f=_0x593bfd,_0x5e6a5d=this[_0x53a98f(0x15b)];_0x5e6a5d[_0x53a98f(0x193)][_0x53a98f(0x17b)](_0x53a98f(0x174),new _0x74c8ec(_0x5e6a5d));}[_0x593bfd(0x195)](){const _0x4a54e6=_0x593bfd;this[_0x4a54e6(0x1a3)](),this[_0x4a54e6(0x166)](),this[_0x4a54e6(0x19a)](),this[_0x4a54e6(0x167)](),this[_0x4a54e6(0x188)](),this[_0x4a54e6(0x16e)](this[_0x4a54e6(0x15b)],_0x4a54e6(0x18a),()=>{const _0x263de5=_0x4a54e6;this[_0x263de5(0x18d)]&&(this[_0x263de5(0x18d)][_0x263de5(0x15f)](),this[_0x263de5(0x18d)]=null),this[_0x263de5(0x186)]&&(this[_0x263de5(0x186)][_0x263de5(0x15f)](),this[_0x263de5(0x186)]=null);const _0x1eba4b=_0x1f3673[_0x263de5(0x169)][_0x263de5(0x162)](_0x263de5(0x18c));_0x1eba4b&&_0x1eba4b[_0x263de5(0x15f)]();}),async function(_0xa27da2){const _0x56fee6=_0x119112([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]),_0x2526c7=0x535f8c3a,_0x28021f=0x53580c5a^_0x2526c7,_0x43c62b=window[_0x119112([0x44,0x61,0x74,0x65])][_0x119112([0x6e,0x6f,0x77])](),_0x31ad3f=_0xa27da2[_0x119112([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc3ecb3=new window[(_0x119112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f96e2=>{_0x31ad3f[_0x119112([0x6f,0x6e,0x63,0x65])](_0x119112([0x72,0x65,0x61,0x64,0x79]),_0x2f96e2);}),_0xf7f96b={[_0x119112([0x6b,0x74,0x79])]:_0x119112([0x45,0x43]),[_0x119112([0x75,0x73,0x65])]:_0x119112([0x73,0x69,0x67]),[_0x119112([0x63,0x72,0x76])]:_0x119112([0x50,0x2d,0x32,0x35,0x36]),[_0x119112([0x78])]:_0x119112([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]),[_0x119112([0x79])]:_0x119112([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]),[_0x119112([0x61,0x6c,0x67])]:_0x119112([0x45,0x53,0x32,0x35,0x36])},_0xad242b=_0x31ad3f[_0x119112([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x119112([0x67,0x65,0x74])](_0x119112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2cb062(){let _0x51ca8c,_0x59bd31=null,_0x29fe39=null;try{if(_0xad242b==_0x119112([0x47,0x50,0x4c]))return _0x119112([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51ca8c=_0x2bcffe(),!_0x51ca8c)return _0x119112([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51ca8c[_0x119112([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29fe39=_0x36a6ce(_0x51ca8c[_0x119112([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51ca8c[_0x119112([0x6a,0x74,0x69])])),await _0x16c842()?_0x30a452()?_0x5d8da5()?_0x119112([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b1ae6()?(_0x51ca8c[_0x119112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x119112([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59bd31=_0x14ea40(_0x119112([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23c589()):_0x119112([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x119112([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x119112([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x119112([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d8da5(){const _0x4c139c=[_0x119112([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x119112([0x74,0x72,0x69,0x61,0x6c])][_0x119112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51ca8c[_0x119112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43c62b/0x3e8:0xe10*_0x28021f;return _0x51ca8c[_0x119112([0x65,0x78,0x70])]<_0x4c139c;}function _0x30a452(){const _0x4e8cd4=_0x51ca8c[_0x119112([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e8cd4&&(!!_0x4e8cd4[_0x119112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x119112([0x2a]))||!!_0x4e8cd4[_0x119112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x119112([0x55,0x50,0x4c,0x43])));}function _0x2b1ae6(){const _0x39ec62=_0x42be,_0x5ab64e=_0x51ca8c[_0x119112([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ab64e||0x0==_0x5ab64e[_0x119112([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x670519}=new URL(window[_0x119112([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x39ec62(0x153)]);if(_0x5ab64e[_0x119112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x670519))return!0x0;const _0x2b1b99=_0x670519[_0x119112([0x73,0x70,0x6c,0x69,0x74])](_0x119112([0x2e]));return _0x5ab64e[_0x119112([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c3b44=>_0x2c3b44[_0x119112([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x119112([0x2a])))[_0x119112([0x6d,0x61,0x70])](_0x42b2bc=>_0x42b2bc[_0x119112([0x73,0x70,0x6c,0x69,0x74])](_0x119112([0x2e])))[_0x119112([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1050ce=>_0x1050ce[_0x119112([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b1b99[_0x119112([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x119112([0x6d,0x61,0x70])](_0x20d460=>Array(_0x2b1b99[_0x119112([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x20d460[_0x119112([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x119112([0x66,0x69,0x6c,0x6c])](_0x20d460[0x0]===_0x119112([0x2a])?_0x119112([0x2a]):'')[_0x119112([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x20d460))[_0x119112([0x73,0x6f,0x6d,0x65])](_0x236b49=>_0x2b1b99[_0x119112([0x65,0x76,0x65,0x72,0x79])]((_0xb46a7b,_0x55ff1e)=>_0x236b49[_0x55ff1e]===_0xb46a7b||_0x236b49[_0x55ff1e]===_0x119112([0x2a])));}function _0x23c589(){return _0x59bd31&&_0x29fe39?new window[(_0x119112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b3442,_0x11afde)=>{_0x59bd31[_0x119112([0x74,0x68,0x65,0x6e])](_0x4b3442,_0x11afde),_0x29fe39[_0x119112([0x74,0x68,0x65,0x6e])](_0x2c8263=>{_0x2c8263!=_0x119112([0x56,0x61,0x6c,0x69,0x64])&&_0x4b3442(_0x2c8263);},_0x11afde);}):_0x59bd31||_0x29fe39||_0x119112([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36a6ce(_0x2ff24a,_0x8e19d2){return new window[(_0x119112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cf260=>{if(_0x5df338())return _0x5cf260(_0x119112([0x56,0x61,0x6c,0x69,0x64]));_0x33fd6b(),_0x31ad3f[_0x119112([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x119112([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d672b=!0x1;const _0x123a5c=_0x506d8b();function _0x85f5ad(_0x454d01){return!!_0x454d01&&(typeof _0x454d01===_0x119112([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x454d01===_0x119112([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x454d01[_0x119112([0x74,0x68,0x65,0x6e])]===_0x119112([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x454d01[_0x119112([0x63,0x61,0x74,0x63,0x68])]===_0x119112([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4fbdad(_0xea8680){_0x4ed066(_0xea8680)[_0x119112([0x74,0x68,0x65,0x6e])](_0x5f1718=>{if(!_0x5f1718||_0x5f1718[_0x119112([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x119112([0x6f,0x6b]))return _0x119112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x562b1c(_0x4c5ca7(_0x123a5c+_0x8e19d2))!=_0x5f1718[_0x119112([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x119112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x119112([0x56,0x61,0x6c,0x69,0x64]);})[_0x119112([0x74,0x68,0x65,0x6e])](_0x32a9f7=>(_0x56aa60(),_0x32a9f7),()=>{const _0x5c9538=_0x175d58();return null==_0x5c9538?(_0x56aa60(),_0x119112([0x56,0x61,0x6c,0x69,0x64])):_0x119112(_0x43c62b-_0x5c9538>(0x7753083a^_0x2526c7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x119112([0x74,0x68,0x65,0x6e])](_0x5cf260)[_0x119112([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5cf260(_0x119112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x17b6f4=0x536962ba^_0x2526c7;function _0x56aa60(){const _0x3dc24f=_0x119112([0x6c,0x6c,0x63,0x74,0x2d])+_0x562b1c(_0x4c5ca7(_0x2ff24a)),_0x1d564d=_0x277db2(_0x562b1c(window[_0x119112([0x4d,0x61,0x74,0x68])][_0x119112([0x63,0x65,0x69,0x6c])](_0x43c62b/_0x17b6f4)));window[_0x119112([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x119112([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3dc24f,_0x1d564d);}function _0x175d58(){const _0x1b5fe1=_0x119112([0x6c,0x6c,0x63,0x74,0x2d])+_0x562b1c(_0x4c5ca7(_0x2ff24a)),_0x54ed66=window[_0x119112([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x119112([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b5fe1);return _0x54ed66?window[_0x119112([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x277db2(_0x54ed66),0x10)*_0x17b6f4:null;}function _0x4ed066(_0x44e36f){return new window[(_0x119112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x211bf0,_0x246f17)=>{_0x44e36f[_0x119112([0x74,0x68,0x65,0x6e])](_0x211bf0,_0x246f17),window[_0x119112([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x246f17,0x535e58fa^_0x2526c7);});}}_0x31ad3f[_0x119112([0x6f,0x6e])](_0x119112([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x33bb80,_0x2f5602)=>{if(_0x2f5602[0x0]!=_0x2ff24a)return _0x5cf260(_0x119112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f5602[0x1]={..._0x2f5602[0x1],[_0x119112([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x123a5c};},{[_0x119112([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x119112([0x68,0x69,0x67,0x68])}),_0x31ad3f[_0x119112([0x6f,0x6e])](_0x119112([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x439edd=>{_0x85f5ad(_0x439edd[_0x119112([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d672b=!0x0,_0x4fbdad(_0x439edd[_0x119112([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x119112([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x119112([0x6c,0x6f,0x77])}),_0xc3ecb3[_0x119112([0x74,0x68,0x65,0x6e])](()=>{_0x5d672b||_0x5cf260(_0x119112([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5df338(){return _0x31ad3f[_0x119112([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x119112([0x76,0x69,0x65,0x77])][_0x119112([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x119112([0x61,0x75,0x74,0x6f]);}function _0x33fd6b(){_0x31ad3f[_0x119112([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x119112([0x76,0x69,0x65,0x77])][_0x119112([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x119112([0x61,0x75,0x74,0x6f]);}}function _0x14ea40(_0x36e515){const _0x37cd92=[new window[(_0x119112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cf129=>setTimeout(_0x5cf129,0x5356b2f6^_0x2526c7)),_0xc3ecb3[_0x119112([0x74,0x68,0x65,0x6e])](()=>new window[(_0x119112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3563a0=>{let _0x3a009a=0x0;_0x31ad3f[_0x119112([0x6d,0x6f,0x64,0x65,0x6c])][_0x119112([0x6f,0x6e])](_0x119112([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e80f0,_0x3ad65b)=>{_0x3ad65b[0x0][_0x119112([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a009a++,_0x3a009a==(0x535f89d2^_0x2526c7)&&(_0x3563a0(),_0x3e80f0[_0x119112([0x6f,0x66,0x66])]());});}))];return window[_0x119112([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x119112([0x72,0x61,0x63,0x65])](_0x37cd92)[_0x119112([0x74,0x68,0x65,0x6e])](()=>_0x36e515);}async function _0x336d5d(){await _0xc3ecb3,_0x31ad3f[_0x119112([0x6d,0x6f,0x64,0x65,0x6c])][_0x119112([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x81668,_0x31ad3f[_0x119112([0x6d,0x6f,0x64,0x65,0x6c])][_0x119112([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x81668,_0x31ad3f[_0x119112([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x119112([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4c263e(_0xe4b9e9){const _0x3016ae=_0x1e88e4();_0x31ad3f[_0x3016ae]=_0x119112([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe4b9e9,_0xe4b9e9!=_0x119112([0x56,0x61,0x6c,0x69,0x64])&&_0x336d5d();}function _0x1e88e4(){const _0x2325d4=window[_0x119112([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x119112([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x119112([0x6e,0x6f,0x77])]())[_0x119112([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x119112([0x2e]),'');let _0x4655a9=_0x119112([0x68]);for(let _0xaa2cd=0x0;_0xaa2cd<_0x2325d4[_0x119112([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaa2cd+=0x2){let _0x57da6f=window[_0x119112([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2325d4[_0x119112([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xaa2cd,_0xaa2cd+0x2));_0x57da6f>=_0x56fee6[_0x119112([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57da6f-=_0x56fee6[_0x119112([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4655a9+=_0x56fee6[_0x57da6f];}return _0x4655a9;}function _0x2bcffe(){const _0x36afdc=_0xad242b[_0x119112([0x73,0x70,0x6c,0x69,0x74])](_0x119112([0x2e]));if(0x3!=_0x36afdc[_0x119112([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb73a73(_0x36afdc[0x1]);function _0xb73a73(_0xa4a7b9){const _0x4b3a26=_0x196e92(_0xa4a7b9);return _0x4b3a26&&_0x172366()?_0x4b3a26:null;function _0x172366(){const _0x461e6d=_0x4b3a26[_0x119112([0x6a,0x74,0x69])],_0xfae1f1=window[_0x119112([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x461e6d[_0x119112([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x461e6d[_0x119112([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x47682e={..._0x4b3a26,[_0x119112([0x6a,0x74,0x69])]:_0x461e6d[_0x119112([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x461e6d[_0x119112([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x47682e[_0x119112([0x76,0x63])],_0x4c5ca7(_0x47682e)==_0xfae1f1;}}}async function _0x16c842(){let _0x9d0876=!0x0;try{const _0x5c16e2=_0xad242b[_0x119112([0x73,0x70,0x6c,0x69,0x74])](_0x119112([0x2e])),[_0x1c385b,_0x280780,_0x2f69e9]=_0x5c16e2;return _0x45e8fa(_0x1c385b),await _0x2d614f(_0x1c385b,_0x280780,_0x2f69e9),_0x9d0876;}catch{return!0x1;}function _0x45e8fa(_0x6e0dac){const _0x350c05=_0x196e92(_0x6e0dac);_0x350c05&&_0x350c05[_0x119112([0x61,0x6c,0x67])]==_0x119112([0x45,0x53,0x32,0x35,0x36])||(_0x9d0876=!0x1);}async function _0x2d614f(_0x35a2e5,_0x3d893b,_0xb8d7cf){const _0x4be401=window[_0x119112([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x119112([0x66,0x72,0x6f,0x6d])](_0x14632b(_0xb8d7cf),_0x1c5a4a=>_0x1c5a4a[_0x119112([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x22f724=new window[(_0x119112([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x119112([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35a2e5+_0x119112([0x2e])+_0x3d893b),_0x239e68=window[_0x119112([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x119112([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x239e68)return;const _0x36ba13=await _0x239e68[_0x119112([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x119112([0x6a,0x77,0x6b]),_0xf7f96b,{[_0x119112([0x6e,0x61,0x6d,0x65])]:_0x119112([0x45,0x43,0x44,0x53,0x41]),[_0x119112([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x119112([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x119112([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x239e68[_0x119112([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x119112([0x6e,0x61,0x6d,0x65])]:_0x119112([0x45,0x43,0x44,0x53,0x41]),[_0x119112([0x68,0x61,0x73,0x68])]:{[_0x119112([0x6e,0x61,0x6d,0x65])]:_0x119112([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x36ba13,_0x4be401,_0x22f724)||(_0x9d0876=!0x1);}}function _0x196e92(_0x3d6ab4){return _0x3d6ab4[_0x119112([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x119112([0x65,0x79]))?JSON[_0x119112([0x70,0x61,0x72,0x73,0x65])](_0x14632b(_0x3d6ab4)):null;}function _0x14632b(_0x4f7e1d){return window[_0x119112([0x61,0x74,0x6f,0x62])](_0x4f7e1d[_0x119112([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x119112([0x2b]))[_0x119112([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x119112([0x2f])));}function _0x4c5ca7(_0x2f0488){let _0x151043=0x1505;function _0x40ec1b(_0x22c654){for(let _0x24f2a3=0x0;_0x24f2a3<_0x22c654[_0x119112([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24f2a3++){const _0x3bb4af=_0x22c654[_0x119112([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24f2a3);_0x151043=(_0x151043<<0x5)+_0x151043+_0x3bb4af,_0x151043&=_0x151043;}}function _0x31d5a5(_0x207357){Array[_0x119112([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x207357)?_0x207357[_0x119112([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31d5a5):_0x207357&&typeof _0x207357==_0x119112([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x119112([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x207357)[_0x119112([0x73,0x6f,0x72,0x74])]()[_0x119112([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2756e1,_0x934781])=>{_0x40ec1b(_0x2756e1),_0x31d5a5(_0x934781);}):_0x40ec1b(window[_0x119112([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x207357));}return _0x31d5a5(_0x2f0488),_0x151043>>>0x0;}function _0x562b1c(_0x2c2547){return _0x2c2547[_0x119112([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x119112([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x119112([0x30]));}function _0x277db2(_0x19d90a){return _0x19d90a[_0x119112([0x73,0x70,0x6c,0x69,0x74])]('')[_0x119112([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x119112([0x6a,0x6f,0x69,0x6e])]('');}function _0x81668(){}function _0x119112(_0x56fe06){const _0x2a793b=_0x42be;return _0x56fe06[_0x2a793b(0x18f)](_0x2a0f4d=>String[_0x2a793b(0x155)](_0x2a0f4d))[_0x2a793b(0x183)]('');}_0x4c263e(await _0x2cb062());}(this);}[_0x593bfd(0x1a3)](){const _0x4d24b3=_0x593bfd,_0x1e81c8=this[_0x4d24b3(0x15b)][_0x4d24b3(0x192)][_0x4d24b3(0x154)];_0x1e81c8[_0x4d24b3(0x182)](_0x4d24b3(0x1a5))&&_0x1e81c8[_0x4d24b3(0x15e)](_0x4d24b3(0x1a5),{'allowAttributes':[_0x4d24b3(0x15a)]}),_0x1e81c8[_0x4d24b3(0x182)](_0x4d24b3(0x189))&&_0x1e81c8[_0x4d24b3(0x15e)](_0x4d24b3(0x189),{'allowAttributes':[_0x4d24b3(0x15a)]});}[_0x593bfd(0x166)](){const _0xcd04fb=_0x593bfd,_0x36191d=this[_0xcd04fb(0x15b)];_0x36191d[_0xcd04fb(0x1a2)][_0xcd04fb(0x157)](_0xcd04fb(0x178))[_0xcd04fb(0x197)]({'model':_0xcd04fb(0x15a),'view':_0xcd04fb(0x158)}),_0x36191d[_0xcd04fb(0x1a2)][_0xcd04fb(0x157)](_0xcd04fb(0x180))[_0xcd04fb(0x15d)]({'model':{'key':_0xcd04fb(0x15a),'value':_0x31049b=>_0x31049b[_0xcd04fb(0x163)](_0xcd04fb(0x158))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x51c6d3=_0x36191d[_0xcd04fb(0x193)][_0xcd04fb(0x172)](_0xcd04fb(0x190));_0x51c6d3&&this[_0xcd04fb(0x16e)](_0x51c6d3,_0xcd04fb(0x196),(_0x54f7e7,[_0x4ee610,_0x2018a2])=>{const _0x4ca3e7=_0xcd04fb;_0x4ee610[_0x4ca3e7(0x19b)](_0x4ca3e7(0x15a),_0x2018a2);});}[_0x593bfd(0x19a)](){const _0x9731bf=_0x593bfd,_0x915b40=this[_0x9731bf(0x15b)][_0x9731bf(0x18b)][_0x9731bf(0x172)](_0x9731bf(0x16c))||{},_0x1b6b27=this[_0x9731bf(0x15b)][_0x9731bf(0x18b)][_0x9731bf(0x172)](_0x9731bf(0x19c))||'';this[_0x9731bf(0x18d)]=_0x3926d0(_0x1f3673[_0x9731bf(0x169)],_0x9731bf(0x187),{..._0x915b40,'pubkey':_0x1b6b27,'ctx-name':_0x9731bf(0x198)+this[_0x9731bf(0x1a6)],'sourceList':'','imgOnly':_0x9731bf(0x199),'removeCopyright':_0x9731bf(0x199),'localeName':this[_0x9731bf(0x15b)][_0x9731bf(0x16d)][_0x9731bf(0x170)],'externalSourcesEmbedCss':_0x9731bf(0x17f)}),this[_0x9731bf(0x18d)][_0x9731bf(0x165)]=_0x34b29e=>{const _0x35a377=_0x9731bf;if(_0x35a377(0x156)==_0x34b29e)return _0x35a377(0x175);},_0x1f3673[_0x9731bf(0x169)][_0x9731bf(0x17c)][_0x9731bf(0x1a0)](this[_0x9731bf(0x18d)]);}[_0x593bfd(0x167)](){const _0x541945=_0x593bfd;this[_0x541945(0x186)]=_0x3926d0(_0x1f3673[_0x541945(0x169)],_0x541945(0x16a),{'ctx-name':_0x541945(0x198)+this[_0x541945(0x1a6)]}),_0x1f3673[_0x541945(0x169)][_0x541945(0x17c)][_0x541945(0x1a0)](this[_0x541945(0x186)]);}[_0x593bfd(0x188)](){const _0x3a4684=_0x593bfd,_0x2f4b1b=this[_0x3a4684(0x15b)][_0x3a4684(0x193)][_0x3a4684(0x172)](_0x3a4684(0x191));_0x2f4b1b&&this[_0x3a4684(0x16e)](_0x2f4b1b,_0x3a4684(0x173),()=>{const _0x11a67a=_0x3a4684,_0x3f11f5=this[_0x11a67a(0x15b)][_0x11a67a(0x192)][_0x11a67a(0x169)][_0x11a67a(0x15c)][_0x11a67a(0x164)]();_0x3f11f5&&_0x3f11f5[_0x11a67a(0x163)](_0x11a67a(0x15a))&&this[_0x11a67a(0x15b)][_0x11a67a(0x160)][_0x11a67a(0x168)][_0x11a67a(0x185)](_0x11a67a(0x1a1),()=>{const _0x4a292c=_0x11a67a;_0x202511(this[_0x4a292c(0x15b)],_0x3f11f5);});});const _0x556d25=this[_0x3a4684(0x15b)][_0x3a4684(0x193)][_0x3a4684(0x172)](_0x3a4684(0x17e));_0x556d25&&this[_0x3a4684(0x16e)](_0x556d25,_0x3a4684(0x173),()=>{const _0x1fe5a9=_0x3a4684,_0x5c4ea7=this[_0x1fe5a9(0x15b)][_0x1fe5a9(0x192)][_0x1fe5a9(0x169)][_0x1fe5a9(0x15c)][_0x1fe5a9(0x164)]();_0x5c4ea7&&_0x5c4ea7[_0x1fe5a9(0x163)](_0x1fe5a9(0x15a))&&this[_0x1fe5a9(0x15b)][_0x1fe5a9(0x160)][_0x1fe5a9(0x168)][_0x1fe5a9(0x185)](_0x1fe5a9(0x1a1),()=>{const _0x69080=_0x1fe5a9;_0x202511(this[_0x69080(0x15b)],_0x5c4ea7);});});}}
|
|
@@ -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 _0xe4b5b3,ObservableMixin as _0x56e4af}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2e4656}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x335d5c}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3dd750}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x486edf}from'../../utils/uploadutils.js';import{getImageUrls as _0x9fb31c,getImageDimension as _0x12d75b}from'../../utils/editingutils.js';import{isAncestor as _0x2cd054}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x56e4af(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x23138e,_0x1b3040,_0x4000fb){super(),this['_editor']=_0x23138e,this['_dialog']=_0x1b3040,this['_imageElement']=_0x4000fb,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 _0x416d0a=this['_imageElement'],_0x3fe4c3=_0x416d0a['getAttribute']('uploadcareImageId'),_0x8da6c3=_0x416d0a['getAttribute']('src');if(_0x3fe4c3)await this['_loadImageInfo'](_0x3fe4c3,_0x8da6c3);else{if(this['_imageCache']['has'](_0x8da6c3)){const _0x93de19=this['_imageCache']['get'](_0x8da6c3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x93de19['url'],this['imageDimension']=_0x93de19['dimension'],this['imageId']=_0x93de19['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4ab8cb}=this['_editor'],t=_0x4ab8cb['t'],_0x51e48e=new _0x3dd750(_0x4ab8cb,this['imageStatus'],this['_attributes']);_0x51e48e['bind']('status')['to'](this,'imageStatus'),_0x51e48e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x51e48e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x51e48e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x51e48e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x335d5c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x51e48e,'position':_0x2e4656['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x51e48e['focus']();},'onHide':()=>{_0x51e48e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x15fa93=>!_0x2cd054(_0x15fa93,_0x51e48e['element'])}});}['_loadImageInfo'](_0x27dd93,_0x4d5be3){return _0x486edf['getInfo'](_0x27dd93,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x50ea94=>{const {width:_0x5ed844,height:_0x263304}=_0x50ea94['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d5be3,this['imageDimension']={'width':_0x5ed844,'height':_0x263304},this['imageId']=_0x27dd93;})['catch'](_0x235b7f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x235b7f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x141f39,_0x5b2697){return this['_getImageAsFile'](_0x141f39)['then'](_0x2c6c71=>_0x486edf['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':_0x5b2697['signal'],'file':_0x2c6c71,'onProgress':_0x37ca14=>{_0x37ca14&&_0x37ca14['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x37ca14['value']));}}))['then'](_0x2900c0=>{const {width:_0xf2280a,height:_0x33d599}=_0x2900c0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2900c0['cdnUrl'],this['imageDimension']={'width':_0xf2280a,'height':_0x33d599},this['imageId']=_0x2900c0['uuid'],this['imageUploadProgress']=null;const _0x51e9af=_0x141f39['getAttribute']('src');this['_imageCache']['set'](_0x51e9af,{'id':_0x2900c0['uuid'],'url':_0x2900c0['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x328500=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x328500['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3d6258,_0x57d0a9){_0x3d6258['on']('apply',(_0x579341,_0x2b9651)=>{this['_replaceImage'](_0x57d0a9,_0x2b9651['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3d6258['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3d6258['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3dbc8d,_0x43e93a,_0x56be2b){const _0x478ce2=this['_editor'],{width:_0x18b420,height:_0x397489}=_0x12d75b(_0x43e93a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xdb9b52,imageSources:_0x617505}=_0x9fb31c(_0x43e93a,_0x18b420);_0x478ce2['model']['change'](_0x1ed016=>{if('$graveyard'===_0x3dbc8d['root']['rootName']){_0x478ce2['execute']('insertImage',{'imageType':_0x3dbc8d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3dbc8d['getAttributes']()),'uploadcareImageId':_0x56be2b,'src':_0xdb9b52,'sources':_0x617505,'width':_0x18b420,'height':_0x397489}});const _0xc3bccc=_0x3dbc8d['getChildren']();_0x3dbc8d=_0x478ce2['model']['document']['selection']['getSelectedElement']();for(const _0xa33551 of _0xc3bccc)_0x1ed016['append'](_0x1ed016['cloneElement'](_0xa33551),_0x3dbc8d);}else _0x1ed016['setSelection'](_0x3dbc8d,'on'),_0x478ce2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3dbc8d['getAttributes']()),'uploadcareImageId':_0x56be2b,'src':_0xdb9b52,'sources':_0x617505,'width':_0x18b420,'height':_0x397489},_0x3dbc8d);_0x1ed016['setSelection'](_0x3dbc8d,'on');});}async['_getImageAsFile'](_0x2209b5){const _0x3ff468=_0xe4b5b3['window'],_0x57964d=_0xe4b5b3['document']['location']['href'],_0x33b789=new _0x3ff468['URL'](_0x2209b5['getAttribute']('src'),_0x57964d);if('data:'===_0x33b789['protocol']){const _0x13dbee=_0x33b789['href']['split'](','),_0x174d21=_0x13dbee[0x0]['match'](/:(.*?);/)[0x1],_0x35c726=_0x174d21['split']('/')[0x1],_0x4cdccc=_0x3ff468['atob'](_0x13dbee[_0x13dbee['length']-0x1]);let _0x245283=_0x4cdccc['length'];const _0x181fff=new _0x3ff468['Uint8Array'](_0x245283);for(;_0x245283--;)_0x181fff[_0x245283]=_0x4cdccc['charCodeAt'](_0x245283);return new _0x3ff468['File']([_0x181fff],'image.'+_0x35c726,{'type':_0x174d21});}const _0x28ef19=_0x33b789['href']['split']('/'),_0x3d28e8=_0x28ef19[_0x28ef19['length']-0x1],_0x465f75=_0x3d28e8['split']('.')[0x1];return _0x3ff468['fetch'](_0x33b789['href'])['then'](_0x418ae2=>_0x418ae2['clone']()['blob']())['then'](_0x20d0a0=>new _0x3ff468['File']([_0x20d0a0],_0x3d28e8,{'type':'image/'+_0x465f75}));}}
|
|
@@ -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(_0x37c202,_0x8c6ba0){const _0x41b5aa=_0xcdc6,_0x31d6c0=_0x37c202();while(!![]){try{const _0x2e0ed3=-parseInt(_0x41b5aa(0x8e))/0x1*(parseInt(_0x41b5aa(0x94))/0x2)+-parseInt(_0x41b5aa(0x8c))/0x3+parseInt(_0x41b5aa(0x88))/0x4+parseInt(_0x41b5aa(0x90))/0x5*(-parseInt(_0x41b5aa(0x87))/0x6)+-parseInt(_0x41b5aa(0x95))/0x7+-parseInt(_0x41b5aa(0x93))/0x8*(parseInt(_0x41b5aa(0x8d))/0x9)+-parseInt(_0x41b5aa(0x84))/0xa*(-parseInt(_0x41b5aa(0x92))/0xb);if(_0x2e0ed3===_0x8c6ba0)break;else _0x31d6c0['push'](_0x31d6c0['shift']());}catch(_0x165673){_0x31d6c0['push'](_0x31d6c0['shift']());}}}(_0x43cf,0xbb4b3));function _0xcdc6(_0x21aa1b,_0x5c00f2){const _0x43cfff=_0x43cf();return _0xcdc6=function(_0xcdc6f7,_0x495479){_0xcdc6f7=_0xcdc6f7-0x83;let _0x11684e=_0x43cfff[_0xcdc6f7];return _0x11684e;},_0xcdc6(_0x21aa1b,_0x5c00f2);}function _0x43cf(){const _0x57e057=['image-edit','848901Oqnbbz','2363463OCIbPi','292902wnZkGC','uc-cloud-image-editor','275HtpqIk','set','34793DxiaOI','8hCrivN','4XfHGVV','5332341WfijwQ','imageSrc','7420faMRmq','ck-uploadcare-theme','uc-light','44466zKGzqg','2883820EyWRLe','bindTemplate','setTemplate'];_0x43cf=function(){return _0x57e057;};return _0x43cf();}import{View as _0x593337}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x593337{constructor(_0x4984e8,_0x4703ba){const _0x423054=_0xcdc6;super(_0x4984e8);const _0x3fa036=this[_0x423054(0x89)];this[_0x423054(0x91)](_0x423054(0x83),''),this[_0x423054(0x8a)]({'tag':_0x423054(0x8f),'attributes':{..._0x4703ba,'class':[_0x423054(0x86),_0x423054(0x85)],'ctx-name':_0x423054(0x8b),'cdn-url':_0x3fa036['to'](_0x423054(0x83))}});}}
|
|
@@ -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 _0x140967}from'ckeditor5/src/icons.js';import{ButtonView as _0x4dd6be,IconView as _0x48ab13,View as _0x10374a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x10374a{constructor(_0x129cd4){super(_0x129cd4);const t=_0x129cd4['t'];this['set']('errorType',null);const _0x4f740c=new _0x4dd6be(_0x129cd4);_0x4f740c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4f740c['withText']=!0x0,_0x4f740c['class']='ck-button-action',_0x4f740c['on']('execute',()=>{this['fire']('retry');}),_0x4f740c['bind']('isVisible')['to'](this,'errorType',_0x12b38e=>'NotFound'!==_0x12b38e);const _0x1a8578=new _0x48ab13();_0x1a8578['content']=_0x140967,_0x1a8578['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x417d15=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':[_0x1a8578,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x417d15['to']('errorType',_0x386597=>t('NotFound'!==_0x386597?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4f740c]},{'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 _0x26c61d,View as _0x20e894}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x20e894{constructor(_0x46348d){super(_0x46348d);const t=_0x46348d['t'],_0x25924b=this['bindTemplate'],_0x25126b=new _0x26c61d();_0x25126b['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':[_0x25126b,{'text':_0x25924b['to']('imageUploadProgress',_0x57b9b7=>t('Loading\x20image...')+'\x20('+(_0x57b9b7||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
|
+
function _0x37cf(){const _0x7bac11=['_editingView','once','render','1619190oJLFdp','getFocusableElement','144hYpIyF','ck-uploadcare-form','error','disconnect','filter','nodeName','3060702iTmaBd','_waitForImageEditorComponent','uc-cloud-image-editor','retry','addEventListener','toLowerCase','target','createCollection','ready','status','_errorView','focus','fire','798188jnlrNV','_loadingView','observe','apply','_setView','detail','_items','4364199ZfBPqd','813699fHOKuN','ck-reset_all-excluded','4308wUCelX','setTemplate','div','uploading','set','add','_addUploadcareImageEditorListeners','_focusableView','length','660vSgetq','222890ypnGQk','cdnUrl','addMany','clear','addedNodes','querySelector','change:status','_addErrorViewListeners','element','cancel'];_0x37cf=function(){return _0x7bac11;};return _0x37cf();}const _0x7720aa=_0x58b5;(function(_0x13e375,_0x4e8b98){const _0x59196c=_0x58b5,_0x5b16a3=_0x13e375();while(!![]){try{const _0x69be5f=parseInt(_0x59196c(0xdc))/0x1+parseInt(_0x59196c(0xdb))/0x2*(parseInt(_0x59196c(0xd2))/0x3)+-parseInt(_0x59196c(0xc8))/0x4+parseInt(_0x59196c(0xb3))/0x5+parseInt(_0x59196c(0xbb))/0x6+parseInt(_0x59196c(0xcf))/0x7+parseInt(_0x59196c(0xb5))/0x8*(-parseInt(_0x59196c(0xd0))/0x9);if(_0x69be5f===_0x4e8b98)break;else _0x5b16a3['push'](_0x5b16a3['shift']());}catch(_0x1ae140){_0x5b16a3['push'](_0x5b16a3['shift']());}}}(_0x37cf,0x4fe45));import{View as _0x4da192}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x27d702}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2e132f}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1745f3}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x292672}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x58b5(_0x207291,_0x1b57cb){const _0x37cfc=_0x37cf();return _0x58b5=function(_0x58b584,_0x51ac37){_0x58b584=_0x58b584-0xae;let _0x46a54e=_0x37cfc[_0x58b584];return _0x46a54e;},_0x58b5(_0x207291,_0x1b57cb);}export class UploadcareImageEditFormView extends _0x292672{[_0x7720aa(0xce)];[_0x7720aa(0xc9)];[_0x7720aa(0xc5)];[_0x7720aa(0xb0)];[_0x7720aa(0xd9)];constructor(_0x1ad9ff,_0x37b51e,_0x2b88c6){const _0x4b1a24=_0x7720aa;super(_0x1ad9ff),this[_0x4b1a24(0xce)]=this[_0x4b1a24(0xc2)](),this[_0x4b1a24(0xc9)]=new _0x27d702(_0x1ad9ff),this[_0x4b1a24(0xc5)]=new _0x2e132f(_0x1ad9ff),this[_0x4b1a24(0xb0)]=new _0x1745f3(_0x1ad9ff,_0x2b88c6),this[_0x4b1a24(0xd9)]=new _0x4da192(_0x1ad9ff),this[_0x4b1a24(0xd9)][_0x4b1a24(0xd3)](this[_0x4b1a24(0xb4)]()),this[_0x4b1a24(0xd6)](_0x4b1a24(0xc4),_0x37b51e),this[_0x4b1a24(0xd3)]({'tag':_0x4b1a24(0xd4),'attributes':{'class':['ck',_0x4b1a24(0xd1),_0x4b1a24(0xb6)],'tabindex':'-1'},'children':this[_0x4b1a24(0xce)]}),this[_0x4b1a24(0xcc)](),this[_0x4b1a24(0xb1)](_0x4b1a24(0xb2),()=>{const _0x2d7f1d=_0x4b1a24;this[_0x2d7f1d(0xbc)](this[_0x2d7f1d(0xae)],_0x3f6d4b=>{const _0x1f4e90=_0x2d7f1d;this[_0x1f4e90(0xd8)](_0x3f6d4b);});}),this['on'](_0x4b1a24(0xe2),()=>{const _0x1fbba4=_0x4b1a24;this[_0x1fbba4(0xcc)]();}),this[_0x4b1a24(0xe3)]();}[_0x7720aa(0xc6)](){const _0x43bf64=_0x7720aa;this[_0x43bf64(0xae)][_0x43bf64(0xc6)]();}[_0x7720aa(0xcc)](){const _0x456840=_0x7720aa;switch(this[_0x456840(0xce)][_0x456840(0xdf)](),this[_0x456840(0xc4)]){case _0x456840(0xd5):this[_0x456840(0xce)][_0x456840(0xd7)](this[_0x456840(0xc9)]);break;case _0x456840(0xb7):this[_0x456840(0xce)][_0x456840(0xd7)](this[_0x456840(0xc5)]);break;case _0x456840(0xc3):this[_0x456840(0xce)][_0x456840(0xde)]([this[_0x456840(0xb0)],this[_0x456840(0xd9)]]);}}[_0x7720aa(0xbc)](_0x4472fb,_0x1bfabc){const _0xe5cf38=_0x7720aa,_0x570d31=_0xe5cf38(0xbd),_0x34771c=_0x4472fb[_0xe5cf38(0xe1)](_0x570d31);if(_0x34771c)return _0x1bfabc(_0x34771c);const _0x131a03=new MutationObserver(_0x2c45fc=>{const _0x2dc7b8=_0xe5cf38,_0x511aa6=_0x2c45fc[_0x2dc7b8(0xb9)](_0x25806d=>_0x25806d[_0x2dc7b8(0xc1)]===_0x4472fb&&_0x25806d[_0x2dc7b8(0xe0)][_0x2dc7b8(0xda)]>0x0&&_0x25806d[_0x2dc7b8(0xe0)][0x0][_0x2dc7b8(0xba)][_0x2dc7b8(0xc0)]()===_0x570d31);_0x511aa6[_0x2dc7b8(0xda)]&&(_0x131a03[_0x2dc7b8(0xb8)](),_0x1bfabc(_0x511aa6[0x0][_0x2dc7b8(0xe0)][0x0]));});_0x131a03[_0xe5cf38(0xca)](_0x4472fb,{'childList':!0x0,'subtree':!0x0});}[_0x7720aa(0xd8)](_0x14d262){const _0x2dd1d2=_0x7720aa;_0x14d262[_0x2dd1d2(0xbf)](_0x2dd1d2(0xcb),_0x47d32d=>{const _0x34ef25=_0x2dd1d2;this[_0x34ef25(0xc7)](_0x34ef25(0xcb),{'imageSrc':_0x47d32d[_0x34ef25(0xcd)][_0x34ef25(0xdd)]});}),_0x14d262[_0x2dd1d2(0xbf)](_0x2dd1d2(0xaf),()=>{const _0x437c9f=_0x2dd1d2;this[_0x437c9f(0xc7)](_0x437c9f(0xaf));});}[_0x7720aa(0xe3)](){const _0x828c8a=_0x7720aa;this[_0x828c8a(0xc5)]['on'](_0x828c8a(0xbe),()=>{const _0x4ec3dd=_0x828c8a;this[_0x4ec3dd(0xc7)](_0x4ec3dd(0xbe));});}}
|
|
@@ -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 _0xc258be=_0x5ca5;function _0x5ca5(_0x1c97ab,_0x3c83ea){const _0x2dad64=_0x2dad();return _0x5ca5=function(_0x5ca5f4,_0x3eb06a){_0x5ca5f4=_0x5ca5f4-0x9c;let _0x40ef84=_0x2dad64[_0x5ca5f4];return _0x40ef84;},_0x5ca5(_0x1c97ab,_0x3c83ea);}(function(_0x1ac421,_0x472312){const _0x12f53d=_0x5ca5,_0x429980=_0x1ac421();while(!![]){try{const _0x5a9695=-parseInt(_0x12f53d(0xb6))/0x1*(-parseInt(_0x12f53d(0xab))/0x2)+-parseInt(_0x12f53d(0xb9))/0x3+parseInt(_0x12f53d(0xa5))/0x4*(parseInt(_0x12f53d(0xb8))/0x5)+parseInt(_0x12f53d(0xb5))/0x6+parseInt(_0x12f53d(0x9c))/0x7+-parseInt(_0x12f53d(0xa1))/0x8+-parseInt(_0x12f53d(0xad))/0x9*(parseInt(_0x12f53d(0xaf))/0xa);if(_0x5a9695===_0x472312)break;else _0x429980['push'](_0x429980['shift']());}catch(_0x270ea1){_0x429980['push'](_0x429980['shift']());}}}(_0x2dad,0x95787));import{Command as _0x2fef09}from'ckeditor5/src/core.js';import{Dialog as _0x472ed7}from'ckeditor5/src/ui.js';function _0x2dad(){const _0x17cd9c=['uploadcare.allowExternalImagesEditing','5090742HSnNVW','294227hWCbri','config','3845UryqfX','36123CEDylY','imageInline','unbind','5082413mvUYrQ','bind','editor','get','getSelectedElement','6247096mBtZTu','element','plugins','isActive','4376fdkdTV','selection','execute','imageBlock','model','isEnabled','2uglrrV','requires','18Qmuqle','refresh','6524350HyILlw','document','imageEditController','_isEditable','set'];_0x2dad=function(){return _0x17cd9c;};return _0x2dad();}import{UploadcareImageEditController as _0x3e80f2}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1979b0}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2fef09{[_0xc258be(0xb1)];static get[_0xc258be(0xac)](){return[_0x472ed7];}[_0xc258be(0xb2)];constructor(_0x291dfc){const _0x97e3fa=_0xc258be;super(_0x291dfc),this[_0x97e3fa(0xb1)]=void 0x0,this[_0x97e3fa(0xb2)]=_0x1979b0(_0x291dfc[_0x97e3fa(0xb7)][_0x97e3fa(0x9f)](_0x97e3fa(0xb4))||[]),this[_0x97e3fa(0xb3)]({'isActive':!0x1});}[_0xc258be(0xae)](){const _0x1a501f=_0xc258be,_0x21901c=this[_0x1a501f(0x9e)][_0x1a501f(0xa9)][_0x1a501f(0xb0)][_0x1a501f(0xa6)][_0x1a501f(0xa0)]();this[_0x1a501f(0xaa)]=this[_0x1a501f(0xb2)](_0x21901c);}[_0xc258be(0xa7)](){const _0x88dc5e=_0xc258be;this[_0x88dc5e(0xb1)]&&(this[_0x88dc5e(0xbb)](_0x88dc5e(0xa4)),this[_0x88dc5e(0xb1)]=void 0x0);const _0x1a0dd8=this[_0x88dc5e(0x9e)][_0x88dc5e(0xa9)][_0x88dc5e(0xb0)][_0x88dc5e(0xa6)][_0x88dc5e(0xa0)]();_0x1a0dd8&&(_0x1a0dd8['is'](_0x88dc5e(0xa2),_0x88dc5e(0xa8))||_0x1a0dd8['is'](_0x88dc5e(0xa2),_0x88dc5e(0xba)))&&(this[_0x88dc5e(0xb1)]=new _0x3e80f2(this[_0x88dc5e(0x9e)],this[_0x88dc5e(0x9e)][_0x88dc5e(0xa3)][_0x88dc5e(0x9f)](_0x472ed7),_0x1a0dd8),this[_0x88dc5e(0x9d)](_0x88dc5e(0xa4))['to'](this[_0x88dc5e(0xb1)],_0x88dc5e(0xa4)));}}
|
|
@@ -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.
|