@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250224.0 → 0.0.0-nightly-20250225.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/uploadcare.js +1 -1
- package/ckeditor5-metadata.json +1 -1
- 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/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/package.json +8 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +6 -2
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +4 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
- package/theme/icons/dropbox.svg +11 -0
- package/theme/icons/error.svg +1 -0
- package/theme/icons/facebook.svg +11 -0
- package/theme/icons/google-drive.svg +11 -0
- package/theme/icons/google-photos.svg +11 -0
- package/theme/icons/image-upload.svg +11 -0
- package/theme/icons/link.svg +11 -0
- package/theme/icons/local.svg +11 -0
- package/theme/icons/onedrive.svg +11 -0
- package/theme/icons/uploadcare-image-edit.svg +11 -0
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x56cf66=_0x2520;(function(_0x125005,_0xdcef91){const _0x262f7e=_0x2520,_0xb66584=_0x125005();while(!![]){try{const _0x439f66=parseInt(_0x262f7e(0x12f))/0x1*(-parseInt(_0x262f7e(0x14a))/0x2)+-parseInt(_0x262f7e(0x16f))/0x3+-parseInt(_0x262f7e(0x133))/0x4+parseInt(_0x262f7e(0x12c))/0x5+parseInt(_0x262f7e(0x164))/0x6+-parseInt(_0x262f7e(0x125))/0x7*(parseInt(_0x262f7e(0x15b))/0x8)+parseInt(_0x262f7e(0x14b))/0x9;if(_0x439f66===_0xdcef91)break;else _0xb66584['push'](_0xb66584['shift']());}catch(_0x365780){_0xb66584['push'](_0xb66584['shift']());}}}(_0x1f56,0x43776));import{Plugin as _0x452a75}from'ckeditor5/src/core.js';function _0x2520(_0x4b8da2,_0x3c9bd6){const _0x1f56ca=_0x1f56();return _0x2520=function(_0x252066,_0x4f285c){_0x252066=_0x252066-0x11d;let _0x282399=_0x1f56ca[_0x252066];return _0x282399;},_0x2520(_0x4b8da2,_0x3c9bd6);}import{Dialog as _0x3b2687}from'ckeditor5/src/ui.js';import{createElement as _0x4840f9,global as _0x1ce684,uid as _0x3adf9d}from'ckeditor5/src/utils.js';import _0x5a9632 from'./uploadcarecommand.js';function _0x1f56(){const _0x260370=['_ctxElement','closeMax','input[uploadcare-file-input]','uploadcare.uploader','removeAttribute','true','162068QmVSqm','9558990tlFuuD','schema','commands','contentLanguage','#uc-icon-arrow-down','editing','uc-upload-ctx-provider','ctxElement','imageBlock','requires','uploadcareImageId','attributeToAttribute','afterInit','fromCharCode','pluginName','render','8wNkhWe','isOfficialPlugin','listenTo','imageInline','_initCtx','isPremiumPlugin','locale','getSelectedElement','cleanupImage','584268OilAiq','getAttribute','once','for','appendChild','conversion','uploadcare','PictureEditing','get','_initSchema','insertImage','1277352sGiCDP','upcast','uploadcare.pubkey','execute','document','extend','_initImageProcessingIndicator','uc-config','uploadcareImageReplace','441147BvloCe','_initConversion','replaceImageSource','model','add','_initConfig','querySelector','148065TJjVxg','join','elementToAttribute','2CCPcBX','map','view','isRegistered','1047544aennml','\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','configElement','downcast','destroy','data-uc-image-id','uploader','_configElement','selection','remove','href','body','init','UploadcareEditing','iconHrefResolver','editor','config'];_0x1f56=function(){return _0x260370;};return _0x1f56();}import _0x36ed48 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x19c6b1}from'./utils/editingutils.js';export default class i extends _0x452a75{[_0x56cf66(0x13a)]=null;[_0x56cf66(0x144)]=null;static get[_0x56cf66(0x159)](){const _0x3c8e5e=_0x56cf66;return _0x3c8e5e(0x140);}static get[_0x56cf66(0x154)](){const _0x4c590e=_0x56cf66;return[_0x4c590e(0x16b),_0x36ed48,_0x3b2687];}static get[_0x56cf66(0x15c)](){return!0x0;}static get[_0x56cf66(0x160)](){return!0x0;}get[_0x56cf66(0x135)](){const _0x46788f=_0x56cf66;return this[_0x46788f(0x13a)];}get[_0x56cf66(0x152)](){const _0x1dbcbf=_0x56cf66;return this[_0x1dbcbf(0x144)];}[_0x56cf66(0x13f)](){const _0x5852f3=_0x56cf66,_0x1bf461=this[_0x5852f3(0x142)];_0x1bf461[_0x5852f3(0x14d)][_0x5852f3(0x129)](_0x5852f3(0x16a),new _0x5a9632(_0x1bf461));}[_0x56cf66(0x157)](){const _0x57914c=_0x56cf66;this[_0x57914c(0x16d)](),this[_0x57914c(0x126)](),this[_0x57914c(0x12a)](),this[_0x57914c(0x15f)](),this[_0x57914c(0x122)](),this[_0x57914c(0x15d)](this[_0x57914c(0x142)],_0x57914c(0x137),()=>{const _0x4d36a0=_0x57914c;this[_0x4d36a0(0x13a)]&&(this[_0x4d36a0(0x13a)][_0x4d36a0(0x13c)](),this[_0x4d36a0(0x13a)]=null),this[_0x4d36a0(0x144)]&&(this[_0x4d36a0(0x144)][_0x4d36a0(0x13c)](),this[_0x4d36a0(0x144)]=null);const _0x15da63=_0x1ce684[_0x4d36a0(0x120)][_0x4d36a0(0x12b)](_0x4d36a0(0x146));_0x15da63&&_0x15da63[_0x4d36a0(0x13c)]();}),async function(_0x2dcc0c){const _0x2fb0cb=_0x3b1e28([0x34,0x4f,0x33,0x6a,0x65,0x47,0x4a,0x4c,0x61,0x56,0x4d,0x52,0x57,0x6b,0x6c,0x39,0x35,0x48,0x6d,0x4b,0x37,0x59,0x70,0x6f,0x63,0x78,0x49,0x30,0x54,0x58,0x32,0x73,0x68,0x31,0x44,0x41,0x4e,0x43,0x76,0x66,0x55,0x53,0x50,0x51,0x46,0x36,0x75,0x69,0x7a,0x79,0x6e,0x77,0x67,0x42,0x71,0x62,0x45,0x38,0x5a,0x64,0x74,0x72]),_0x4a2760=0x7a518d21,_0x2cab19=0x7a56ed49^_0x4a2760,_0xff4ba4=window[_0x3b1e28([0x44,0x61,0x74,0x65])][_0x3b1e28([0x6e,0x6f,0x77])](),_0x357c7d=_0x2dcc0c[_0x3b1e28([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b3cd8=new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x102fbc=>{_0x357c7d[_0x3b1e28([0x6f,0x6e,0x63,0x65])](_0x3b1e28([0x72,0x65,0x61,0x64,0x79]),_0x102fbc);}),_0x4e0c8f={[_0x3b1e28([0x6b,0x74,0x79])]:_0x3b1e28([0x45,0x43]),[_0x3b1e28([0x75,0x73,0x65])]:_0x3b1e28([0x73,0x69,0x67]),[_0x3b1e28([0x63,0x72,0x76])]:_0x3b1e28([0x50,0x2d,0x32,0x35,0x36]),[_0x3b1e28([0x78])]:_0x3b1e28([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]),[_0x3b1e28([0x79])]:_0x3b1e28([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]),[_0x3b1e28([0x61,0x6c,0x67])]:_0x3b1e28([0x45,0x53,0x32,0x35,0x36])},_0x38a858=_0x357c7d[_0x3b1e28([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b1e28([0x67,0x65,0x74])](_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d87ef(){let _0x3463ae,_0x43bc15=null,_0x1164f3=null;try{if(_0x38a858==_0x3b1e28([0x47,0x50,0x4c]))return _0x3b1e28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3463ae=_0x374278(),!_0x3463ae)return _0x3b1e28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3463ae[_0x3b1e28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1164f3=_0x33cb09(_0x3463ae[_0x3b1e28([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3463ae[_0x3b1e28([0x6a,0x74,0x69])])),await _0x30b819()?_0x25af70()?_0x5e5243()?_0x3b1e28([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x390b09()?(_0x3463ae[_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b1e28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43bc15=_0x341192(_0x3b1e28([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3463ae[_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b1e28([0x74,0x72,0x69,0x61,0x6c])&&(_0x43bc15=_0x341192(_0x3b1e28([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x203a00()):_0x3b1e28([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b1e28([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b1e28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4dbf2b){return _0x3b1e28([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e5243(){const _0x1c06e3=[_0x3b1e28([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b1e28([0x74,0x72,0x69,0x61,0x6c])][_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3463ae[_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xff4ba4/0x3e8:0xe10*_0x2cab19;return _0x3463ae[_0x3b1e28([0x65,0x78,0x70])]<_0x1c06e3;}function _0x25af70(){const _0xc132f9=_0x3463ae[_0x3b1e28([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc132f9&&(!!_0xc132f9[_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b1e28([0x2a]))||!!_0xc132f9[_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b1e28([0x55,0x50,0x4c,0x43])));}function _0x390b09(){const _0x4ac69e=_0x2520,_0x7c446=_0x3463ae[_0x3b1e28([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7c446||0x0==_0x7c446[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x23c510}=new URL(window[_0x3b1e28([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4ac69e(0x13d)]);if(_0x7c446[_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c510))return!0x0;const _0x5d845c=_0x23c510[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])](_0x3b1e28([0x2e]));return _0x7c446[_0x3b1e28([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d5047=>_0x4d5047[_0x3b1e28([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b1e28([0x2a])))[_0x3b1e28([0x6d,0x61,0x70])](_0x249845=>_0x249845[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])](_0x3b1e28([0x2e])))[_0x3b1e28([0x73,0x6f,0x6d,0x65])](_0x4ecf38=>_0x5d845c[_0x3b1e28([0x65,0x76,0x65,0x72,0x79])]((_0x5b5533,_0x5a71e0)=>_0x4ecf38[_0x5a71e0]===_0x5b5533||_0x4ecf38[_0x5a71e0]===_0x3b1e28([0x2a])));}function _0x203a00(){return _0x43bc15&&_0x1164f3?new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e8eb3,_0x59dce6)=>{_0x43bc15[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x5e8eb3,_0x59dce6),_0x1164f3[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x4fe41e=>{_0x4fe41e!=_0x3b1e28([0x56,0x61,0x6c,0x69,0x64])&&_0x5e8eb3(_0x4fe41e);},_0x59dce6);}):_0x43bc15||_0x1164f3||_0x3b1e28([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33cb09(_0x34af4f,_0x603bbf){return new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24d962=>{if(_0x375ca1())return _0x24d962(_0x3b1e28([0x56,0x61,0x6c,0x69,0x64]));_0x2fa4e7(),_0x357c7d[_0x3b1e28([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b1e28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f833e=!0x1;const _0x53b76d=_0x3adf9d();function _0x320ecf(_0x25ab94){return!!_0x25ab94&&(typeof _0x25ab94===_0x3b1e28([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25ab94===_0x3b1e28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25ab94[_0x3b1e28([0x74,0x68,0x65,0x6e])]===_0x3b1e28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25ab94[_0x3b1e28([0x63,0x61,0x74,0x63,0x68])]===_0x3b1e28([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fe33b(_0x22840e){_0x3cd40c(_0x22840e)[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x7b30f3=>{if(!_0x7b30f3||_0x7b30f3[_0x3b1e28([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b1e28([0x6f,0x6b]))return _0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2130f(_0x13c3a8(_0x53b76d+_0x603bbf))!=_0x7b30f3[_0x3b1e28([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b1e28([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x244ccc=>(_0x582259(),_0x244ccc),()=>{const _0x553540=_0x2e2bab();return null==_0x553540?(_0x582259(),_0x3b1e28([0x56,0x61,0x6c,0x69,0x64])):_0x3b1e28(_0xff4ba4-_0x553540>(0x5e5d0921^_0x4a2760)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0x24d962)[_0x3b1e28([0x63,0x61,0x74,0x63,0x68])](()=>{_0x24d962(_0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d3dee=0x7a6763a1^_0x4a2760;function _0x582259(){const _0x5da311=_0x3b1e28([0x6c,0x6c,0x63,0x74,0x2d])+_0x2130f(_0x13c3a8(_0x34af4f)),_0x4fdcdb=_0x35beaa(_0x2130f(window[_0x3b1e28([0x4d,0x61,0x74,0x68])][_0x3b1e28([0x63,0x65,0x69,0x6c])](_0xff4ba4/_0x2d3dee)));window[_0x3b1e28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b1e28([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5da311,_0x4fdcdb);}function _0x2e2bab(){const _0x52220d=_0x3b1e28([0x6c,0x6c,0x63,0x74,0x2d])+_0x2130f(_0x13c3a8(_0x34af4f)),_0x47ca8c=window[_0x3b1e28([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b1e28([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52220d);return _0x47ca8c?window[_0x3b1e28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35beaa(_0x47ca8c),0x10)*_0x2d3dee:null;}function _0x3cd40c(_0x33b01d){return new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xec4bcf,_0x3de029)=>{_0x33b01d[_0x3b1e28([0x74,0x68,0x65,0x6e])](_0xec4bcf,_0x3de029),window[_0x3b1e28([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3de029,0x7a5059e1^_0x4a2760);});}}_0x357c7d[_0x3b1e28([0x6f,0x6e])](_0x3b1e28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e786c,_0x3d5f57)=>{if(_0x3d5f57[0x0]!=_0x34af4f)return _0x24d962(_0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d5f57[0x1]={..._0x3d5f57[0x1],[_0x3b1e28([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x53b76d};},{[_0x3b1e28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b1e28([0x68,0x69,0x67,0x68])}),_0x357c7d[_0x3b1e28([0x6f,0x6e])](_0x3b1e28([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17f417=>{_0x320ecf(_0x17f417[_0x3b1e28([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f833e=!0x0,_0x2fe33b(_0x17f417[_0x3b1e28([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b1e28([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b1e28([0x6c,0x6f,0x77])}),_0x5b3cd8[_0x3b1e28([0x74,0x68,0x65,0x6e])](()=>{_0x3f833e||_0x24d962(_0x3b1e28([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x375ca1(){return _0x357c7d[_0x3b1e28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b1e28([0x76,0x69,0x65,0x77])][_0x3b1e28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b1e28([0x61,0x75,0x74,0x6f]);}function _0x2fa4e7(){_0x357c7d[_0x3b1e28([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b1e28([0x76,0x69,0x65,0x77])][_0x3b1e28([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b1e28([0x61,0x75,0x74,0x6f]);}}function _0x341192(_0x38b8ff){const _0x47ee29=[new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f4384=>setTimeout(_0x1f4384,0x7a58b3ed^_0x4a2760)),_0x5b3cd8[_0x3b1e28([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x523aaf=>{let _0x51b0da=0x0;_0x357c7d[_0x3b1e28([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b1e28([0x6f,0x6e])](_0x3b1e28([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3bcaeb,_0x17ae68)=>{_0x17ae68[0x0][_0x3b1e28([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51b0da++,_0x51b0da==(0x7a518cd9^_0x4a2760)&&(_0x523aaf(),_0x3bcaeb[_0x3b1e28([0x6f,0x66,0x66])]());});}))];return window[_0x3b1e28([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b1e28([0x72,0x61,0x63,0x65])](_0x47ee29)[_0x3b1e28([0x74,0x68,0x65,0x6e])](()=>_0x38b8ff);}async function _0x3f4ec1(){await _0x5b3cd8,_0x357c7d[_0x3b1e28([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b1e28([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cd869,_0x357c7d[_0x3b1e28([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b1e28([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cd869,_0x357c7d[_0x3b1e28([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b1e28([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14ad2f(_0x298588){const _0x2e8281=_0x243508();_0x357c7d[_0x2e8281]=_0x3b1e28([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x298588,_0x298588!=_0x3b1e28([0x56,0x61,0x6c,0x69,0x64])&&_0x3f4ec1();}function _0x243508(){const _0x543475=window[_0x3b1e28([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b1e28([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b1e28([0x6e,0x6f,0x77])]())[_0x3b1e28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b1e28([0x2e]),'');let _0x1e5078=_0x3b1e28([0x4f]);for(let _0x5b16dd=0x0;_0x5b16dd<_0x543475[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b16dd+=0x2){let _0x45e6ad=window[_0x3b1e28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x543475[_0x3b1e28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b16dd,_0x5b16dd+0x2));_0x45e6ad>=_0x2fb0cb[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45e6ad-=_0x2fb0cb[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e5078+=_0x2fb0cb[_0x45e6ad];}return _0x1e5078;}function _0x374278(){const _0xc2dcf1=_0x38a858[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])](_0x3b1e28([0x2e]));if(0x3!=_0xc2dcf1[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8ad042(_0xc2dcf1[0x1]);function _0x8ad042(_0x5e9aeb){const _0x55d0fa=_0xf65741(_0x5e9aeb);return _0x55d0fa&&_0x3e061c()?_0x55d0fa:null;function _0x3e061c(){const _0x497922=_0x55d0fa[_0x3b1e28([0x6a,0x74,0x69])],_0x3b9a38=window[_0x3b1e28([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x497922[_0x3b1e28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x497922[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e3c8a={..._0x55d0fa,[_0x3b1e28([0x6a,0x74,0x69])]:_0x497922[_0x3b1e28([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x497922[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e3c8a[_0x3b1e28([0x76,0x63])],_0x13c3a8(_0x2e3c8a)==_0x3b9a38;}}}async function _0x30b819(){let _0x408964=!0x0;try{const _0x5b4a41=_0x38a858[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])](_0x3b1e28([0x2e])),[_0x4aa57b,_0x41ef84,_0x4f5a3a]=_0x5b4a41;return _0x5faaa(_0x4aa57b),await _0x274132(_0x4aa57b,_0x41ef84,_0x4f5a3a),_0x408964;}catch(_0x15a5fe){return!0x1;}function _0x5faaa(_0x76119d){const _0x183424=_0xf65741(_0x76119d);_0x183424&&_0x183424[_0x3b1e28([0x61,0x6c,0x67])]==_0x3b1e28([0x45,0x53,0x32,0x35,0x36])||(_0x408964=!0x1);}async function _0x274132(_0x417a2d,_0x5a209e,_0x11f067){const _0x177717=window[_0x3b1e28([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b1e28([0x66,0x72,0x6f,0x6d])](_0x15da3c(_0x11f067),_0x1ab005=>_0x1ab005[_0x3b1e28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x189d10=new window[(_0x3b1e28([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b1e28([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x417a2d+_0x3b1e28([0x2e])+_0x5a209e),_0x3a7bc8=window[_0x3b1e28([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b1e28([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a7bc8)return;const _0x1b7a70=await _0x3a7bc8[_0x3b1e28([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b1e28([0x6a,0x77,0x6b]),_0x4e0c8f,{[_0x3b1e28([0x6e,0x61,0x6d,0x65])]:_0x3b1e28([0x45,0x43,0x44,0x53,0x41]),[_0x3b1e28([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b1e28([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b1e28([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a7bc8[_0x3b1e28([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b1e28([0x6e,0x61,0x6d,0x65])]:_0x3b1e28([0x45,0x43,0x44,0x53,0x41]),[_0x3b1e28([0x68,0x61,0x73,0x68])]:{[_0x3b1e28([0x6e,0x61,0x6d,0x65])]:_0x3b1e28([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b7a70,_0x177717,_0x189d10)||(_0x408964=!0x1);}}function _0xf65741(_0x2ac001){return _0x2ac001[_0x3b1e28([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b1e28([0x65,0x79]))?JSON[_0x3b1e28([0x70,0x61,0x72,0x73,0x65])](_0x15da3c(_0x2ac001)):null;}function _0x15da3c(_0x4ceafe){return window[_0x3b1e28([0x61,0x74,0x6f,0x62])](_0x4ceafe[_0x3b1e28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b1e28([0x2b]))[_0x3b1e28([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b1e28([0x2f])));}function _0x13c3a8(_0x2cf3ea){let _0x25bcc7=0x1505;function _0x229d9c(_0x5ed81e){for(let _0x4c8fcd=0x0;_0x4c8fcd<_0x5ed81e[_0x3b1e28([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c8fcd++){const _0x25161d=_0x5ed81e[_0x3b1e28([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c8fcd);_0x25bcc7=(_0x25bcc7<<0x5)+_0x25bcc7+_0x25161d,_0x25bcc7&=_0x25bcc7;}}function _0x33b03b(_0x21ef6a){Array[_0x3b1e28([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21ef6a)?_0x21ef6a[_0x3b1e28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33b03b):_0x21ef6a&&typeof _0x21ef6a==_0x3b1e28([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b1e28([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21ef6a)[_0x3b1e28([0x73,0x6f,0x72,0x74])]()[_0x3b1e28([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e8dc7,_0x4e4f32])=>{_0x229d9c(_0x1e8dc7),_0x33b03b(_0x4e4f32);}):_0x229d9c(window[_0x3b1e28([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21ef6a));}return _0x33b03b(_0x2cf3ea),_0x25bcc7>>>0x0;}function _0x2130f(_0x41219d){return _0x41219d[_0x3b1e28([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b1e28([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b1e28([0x30]));}function _0x35beaa(_0x3333c6){return _0x3333c6[_0x3b1e28([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b1e28([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b1e28([0x6a,0x6f,0x69,0x6e])]('');}function _0x5cd869(){}function _0x3b1e28(_0x5dfc01){const _0x9c80ad=_0x2520;return _0x5dfc01[_0x9c80ad(0x130)](_0x55c866=>String[_0x9c80ad(0x158)](_0x55c866))[_0x9c80ad(0x12d)]('');}_0x14ad2f(await _0x5d87ef());}(this);}[_0x56cf66(0x16d)](){const _0x1c9e51=_0x56cf66,_0x4ef7d1=this[_0x1c9e51(0x142)][_0x1c9e51(0x128)][_0x1c9e51(0x14c)];_0x4ef7d1[_0x1c9e51(0x132)](_0x1c9e51(0x153))&&_0x4ef7d1[_0x1c9e51(0x121)](_0x1c9e51(0x153),{'allowAttributes':[_0x1c9e51(0x155)]}),_0x4ef7d1[_0x1c9e51(0x132)](_0x1c9e51(0x15e))&&_0x4ef7d1[_0x1c9e51(0x121)](_0x1c9e51(0x15e),{'allowAttributes':[_0x1c9e51(0x155)]});}[_0x56cf66(0x126)](){const _0x9bb09=_0x56cf66,_0x7f4561=this[_0x9bb09(0x142)];_0x7f4561[_0x9bb09(0x169)][_0x9bb09(0x167)](_0x9bb09(0x136))[_0x9bb09(0x156)]({'model':_0x9bb09(0x155),'view':_0x9bb09(0x138)}),_0x7f4561[_0x9bb09(0x169)][_0x9bb09(0x167)](_0x9bb09(0x11d))[_0x9bb09(0x12e)]({'model':{'key':_0x9bb09(0x155),'value':_0x21adc8=>_0x21adc8[_0x9bb09(0x165)](_0x9bb09(0x138))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x232c22=_0x7f4561[_0x9bb09(0x14d)][_0x9bb09(0x16c)](_0x9bb09(0x127));_0x232c22&&this[_0x9bb09(0x15d)](_0x232c22,_0x9bb09(0x163),(_0x5d8102,[_0x173a89,_0x4dd1b2])=>{const _0x2edd28=_0x9bb09;_0x173a89[_0x2edd28(0x148)](_0x2edd28(0x155),_0x4dd1b2);});}[_0x56cf66(0x12a)](){const _0x14c046=_0x56cf66,_0x4fb57f=this[_0x14c046(0x142)][_0x14c046(0x143)][_0x14c046(0x16c)](_0x14c046(0x147))||{},_0x1ea874=this[_0x14c046(0x142)][_0x14c046(0x143)][_0x14c046(0x16c)](_0x14c046(0x11e))||'';this[_0x14c046(0x13a)]=_0x4840f9(_0x1ce684[_0x14c046(0x120)],_0x14c046(0x123),{..._0x4fb57f,'pubkey':_0x1ea874,'ctx-name':_0x14c046(0x139),'sourceList':'','imgOnly':_0x14c046(0x149),'removeCopyright':_0x14c046(0x149),'localeName':this[_0x14c046(0x142)][_0x14c046(0x161)][_0x14c046(0x14e)],'externalSourcesEmbedCss':_0x14c046(0x134)}),this[_0x14c046(0x13a)][_0x14c046(0x141)]=_0x2a1618=>{const _0x319ef3=_0x14c046;if(_0x319ef3(0x145)==_0x2a1618)return _0x319ef3(0x14f);},_0x1ce684[_0x14c046(0x120)][_0x14c046(0x13e)][_0x14c046(0x168)](this[_0x14c046(0x13a)]);}[_0x56cf66(0x15f)](){const _0x2c741b=_0x56cf66;this[_0x2c741b(0x144)]=_0x4840f9(_0x1ce684[_0x2c741b(0x120)],_0x2c741b(0x151),{'ctx-name':_0x2c741b(0x139)}),_0x1ce684[_0x2c741b(0x120)][_0x2c741b(0x13e)][_0x2c741b(0x168)](this[_0x2c741b(0x144)]);}[_0x56cf66(0x122)](){const _0x522ce5=_0x56cf66,_0x449fb7=this[_0x522ce5(0x142)][_0x522ce5(0x14d)][_0x522ce5(0x16c)](_0x522ce5(0x16e));_0x449fb7&&this[_0x522ce5(0x15d)](_0x449fb7,_0x522ce5(0x11f),()=>{const _0xdea683=_0x522ce5,_0x1c1063=this[_0xdea683(0x142)][_0xdea683(0x128)][_0xdea683(0x120)][_0xdea683(0x13b)][_0xdea683(0x162)]();_0x1c1063&&_0x1c1063[_0xdea683(0x165)](_0xdea683(0x155))&&this[_0xdea683(0x142)][_0xdea683(0x150)][_0xdea683(0x131)][_0xdea683(0x166)](_0xdea683(0x15a),()=>{const _0x3c3fcb=_0xdea683;_0x19c6b1(this[_0x3c3fcb(0x142)],_0x1c1063);});});const _0x2fac61=this[_0x522ce5(0x142)][_0x522ce5(0x14d)][_0x522ce5(0x16c)](_0x522ce5(0x124));_0x2fac61&&this[_0x522ce5(0x15d)](_0x2fac61,_0x522ce5(0x11f),()=>{const _0x26de24=_0x522ce5,_0x5e2655=this[_0x26de24(0x142)][_0x26de24(0x128)][_0x26de24(0x120)][_0x26de24(0x13b)][_0x26de24(0x162)]();_0x5e2655&&_0x5e2655[_0x26de24(0x165)](_0x26de24(0x155))&&this[_0x26de24(0x142)][_0x26de24(0x150)][_0x26de24(0x131)][_0x26de24(0x166)](_0x26de24(0x15a),()=>{const _0x1e0bd8=_0x26de24;_0x19c6b1(this[_0x1e0bd8(0x142)],_0x5e2655);});});}}
|
|
23
|
+
const _0x5b2957=_0x4b22;(function(_0x4d6b52,_0x89a57b){const _0x172818=_0x4b22,_0x2b9c9c=_0x4d6b52();while(!![]){try{const _0x21119a=-parseInt(_0x172818(0xdf))/0x1*(-parseInt(_0x172818(0xcc))/0x2)+-parseInt(_0x172818(0xcf))/0x3*(-parseInt(_0x172818(0xd2))/0x4)+parseInt(_0x172818(0xe0))/0x5+parseInt(_0x172818(0xeb))/0x6+-parseInt(_0x172818(0xed))/0x7*(parseInt(_0x172818(0xfd))/0x8)+-parseInt(_0x172818(0xf8))/0x9+parseInt(_0x172818(0x102))/0xa;if(_0x21119a===_0x89a57b)break;else _0x2b9c9c['push'](_0x2b9c9c['shift']());}catch(_0x5dc1b3){_0x2b9c9c['push'](_0x2b9c9c['shift']());}}}(_0xb94c,0xb769f));import{Plugin as _0x13a4f8}from'ckeditor5/src/core.js';function _0x4b22(_0x12a43b,_0x575c4a){const _0xb94c52=_0xb94c();return _0x4b22=function(_0x4b22f8,_0x4479c1){_0x4b22f8=_0x4b22f8-0xbc;let _0x459418=_0xb94c52[_0x4b22f8];return _0x459418;},_0x4b22(_0x12a43b,_0x575c4a);}import{Dialog as _0x4dc86b}from'ckeditor5/src/ui.js';import{createElement as _0x4e586a,global as _0x169508,uid as _0x103cfb}from'ckeditor5/src/utils.js';import _0x2c2efa from'./uploadcarecommand.js';import _0x13af55 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x92d3f}from'./utils/editingutils.js';export default class i extends _0x13a4f8{constructor(){const _0x3a7884=_0x4b22;super(...arguments),this[_0x3a7884(0xc5)]=null,this[_0x3a7884(0xea)]=null;}static get[_0x5b2957(0x10b)](){const _0x2043a8=_0x5b2957;return _0x2043a8(0xc1);}static get[_0x5b2957(0xcb)](){const _0x59a7da=_0x5b2957;return[_0x59a7da(0xc4),_0x13af55,_0x4dc86b];}static get[_0x5b2957(0xcd)](){return!0x0;}static get[_0x5b2957(0xd5)](){return!0x0;}get[_0x5b2957(0xfe)](){const _0x34a607=_0x5b2957;return this[_0x34a607(0xc5)];}get[_0x5b2957(0xe5)](){const _0x426c09=_0x5b2957;return this[_0x426c09(0xea)];}[_0x5b2957(0xf0)](){const _0x52bfae=_0x5b2957,_0x3b801f=this[_0x52bfae(0xce)];_0x3b801f[_0x52bfae(0x10f)][_0x52bfae(0x103)](_0x52bfae(0xc8),new _0x2c2efa(_0x3b801f));}[_0x5b2957(0xe8)](){const _0x216570=_0x5b2957;this[_0x216570(0xc7)](),this[_0x216570(0xfc)](),this[_0x216570(0x101)](),this[_0x216570(0xc3)](),this[_0x216570(0xc6)](),this[_0x216570(0xf4)](this[_0x216570(0xce)],_0x216570(0xbe),()=>{const _0x33ade5=_0x216570;this[_0x33ade5(0xc5)]&&(this[_0x33ade5(0xc5)][_0x33ade5(0xf9)](),this[_0x33ade5(0xc5)]=null),this[_0x33ade5(0xea)]&&(this[_0x33ade5(0xea)][_0x33ade5(0xf9)](),this[_0x33ade5(0xea)]=null);const _0x3212e=_0x169508[_0x33ade5(0xc0)][_0x33ade5(0xdc)](_0x33ade5(0xee));_0x3212e&&_0x3212e[_0x33ade5(0xf9)]();}),async function(_0x21bba0){const _0x27eb53=_0x35b8e8([0x78,0x79,0x47,0x37,0x63,0x5a,0x75,0x56,0x53,0x61,0x58,0x64,0x34,0x48,0x52,0x43,0x6b,0x74,0x57,0x6c,0x31,0x54,0x32,0x59,0x42,0x36,0x7a,0x4d,0x4e,0x69,0x50,0x45,0x65,0x77,0x73,0x38,0x35,0x76,0x70,0x4c,0x4f,0x55,0x33,0x6f,0x30,0x51,0x68,0x4a,0x6d,0x67,0x72,0x49,0x44,0x66,0x6e,0x62,0x6a,0x71,0x4b,0x46,0x39,0x41]),_0x550c1c=0x10310b38,_0x2efb41=0x10366bb8^_0x550c1c,_0x30443b=window[_0x35b8e8([0x44,0x61,0x74,0x65])][_0x35b8e8([0x6e,0x6f,0x77])](),_0x4eff73=_0x21bba0[_0x35b8e8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3821f9=new window[(_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x91f2a6=>{_0x4eff73[_0x35b8e8([0x6f,0x6e,0x63,0x65])](_0x35b8e8([0x72,0x65,0x61,0x64,0x79]),_0x91f2a6);}),_0x14b57b={[_0x35b8e8([0x6b,0x74,0x79])]:_0x35b8e8([0x45,0x43]),[_0x35b8e8([0x75,0x73,0x65])]:_0x35b8e8([0x73,0x69,0x67]),[_0x35b8e8([0x63,0x72,0x76])]:_0x35b8e8([0x50,0x2d,0x32,0x35,0x36]),[_0x35b8e8([0x78])]:_0x35b8e8([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]),[_0x35b8e8([0x79])]:_0x35b8e8([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]),[_0x35b8e8([0x61,0x6c,0x67])]:_0x35b8e8([0x45,0x53,0x32,0x35,0x36])},_0x52553f=_0x4eff73[_0x35b8e8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35b8e8([0x67,0x65,0x74])](_0x35b8e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x326e67(){let _0x52c9bf,_0x46bf87=null,_0x5b9475=null;try{if(_0x52553f==_0x35b8e8([0x47,0x50,0x4c]))return _0x35b8e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52c9bf=_0x3aba30(),!_0x52c9bf)return _0x35b8e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52c9bf[_0x35b8e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b9475=_0xf43ba0(_0x52c9bf[_0x35b8e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52c9bf[_0x35b8e8([0x6a,0x74,0x69])])),await _0x436561()?_0x44d794()?_0x4bc7d5()?_0x35b8e8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x114514()?(_0x52c9bf[_0x35b8e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35b8e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x46bf87=_0x28758a(_0x35b8e8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52c9bf[_0x35b8e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35b8e8([0x74,0x72,0x69,0x61,0x6c])&&(_0x46bf87=_0x28758a(_0x35b8e8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3cea54()):_0x35b8e8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35b8e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35b8e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1d537e){return _0x35b8e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4bc7d5(){const _0x534770=[_0x35b8e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35b8e8([0x74,0x72,0x69,0x61,0x6c])][_0x35b8e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c9bf[_0x35b8e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30443b/0x3e8:0xe10*_0x2efb41;return _0x52c9bf[_0x35b8e8([0x65,0x78,0x70])]<_0x534770;}function _0x44d794(){const _0x40da60=_0x52c9bf[_0x35b8e8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x40da60&&(!!_0x40da60[_0x35b8e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35b8e8([0x2a]))||!!_0x40da60[_0x35b8e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35b8e8([0x55,0x50,0x4c,0x43])));}function _0x114514(){const _0x428ee0=_0x4b22,_0x39673a=_0x52c9bf[_0x35b8e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39673a||0x0==_0x39673a[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bf288}=new URL(window[_0x35b8e8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x428ee0(0x10a)]);if(_0x39673a[_0x35b8e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf288))return!0x0;const _0x2f6f54=_0x5bf288[_0x35b8e8([0x73,0x70,0x6c,0x69,0x74])](_0x35b8e8([0x2e]));return _0x39673a[_0x35b8e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45192f=>_0x45192f[_0x35b8e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35b8e8([0x2a])))[_0x35b8e8([0x6d,0x61,0x70])](_0x14c571=>_0x14c571[_0x35b8e8([0x73,0x70,0x6c,0x69,0x74])](_0x35b8e8([0x2e])))[_0x35b8e8([0x73,0x6f,0x6d,0x65])](_0x25a7e4=>_0x2f6f54[_0x35b8e8([0x65,0x76,0x65,0x72,0x79])]((_0x5bf4e3,_0x74bd93)=>_0x25a7e4[_0x74bd93]===_0x5bf4e3||_0x25a7e4[_0x74bd93]===_0x35b8e8([0x2a])));}function _0x3cea54(){return _0x46bf87&&_0x5b9475?new window[(_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d5c76,_0x4b7db9)=>{_0x46bf87[_0x35b8e8([0x74,0x68,0x65,0x6e])](_0x5d5c76,_0x4b7db9),_0x5b9475[_0x35b8e8([0x74,0x68,0x65,0x6e])](_0x189639=>{_0x189639!=_0x35b8e8([0x56,0x61,0x6c,0x69,0x64])&&_0x5d5c76(_0x189639);},_0x4b7db9);}):_0x46bf87||_0x5b9475||_0x35b8e8([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf43ba0(_0x329890,_0x6ab27e){return new window[(_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb0ad49=>{if(_0x100550())return _0xb0ad49(_0x35b8e8([0x56,0x61,0x6c,0x69,0x64]));_0x294161(),_0x4eff73[_0x35b8e8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35b8e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x577b20=!0x1;const _0x2e0b6a=_0x103cfb();function _0x50e9d2(_0x253447){return!!_0x253447&&(typeof _0x253447===_0x35b8e8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x253447===_0x35b8e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x253447[_0x35b8e8([0x74,0x68,0x65,0x6e])]===_0x35b8e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x253447[_0x35b8e8([0x63,0x61,0x74,0x63,0x68])]===_0x35b8e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x43ea73(_0x51ff1c){_0x309e51(_0x51ff1c)[_0x35b8e8([0x74,0x68,0x65,0x6e])](_0x1da7ab=>{if(!_0x1da7ab||_0x1da7ab[_0x35b8e8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35b8e8([0x6f,0x6b]))return _0x35b8e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10941a(_0x13f30c(_0x2e0b6a+_0x6ab27e))!=_0x1da7ab[_0x35b8e8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35b8e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35b8e8([0x56,0x61,0x6c,0x69,0x64]);})[_0x35b8e8([0x74,0x68,0x65,0x6e])](_0x5dedbd=>(_0x2f3e08(),_0x5dedbd),()=>{const _0x266739=_0x41d45c();return null==_0x266739?(_0x2f3e08(),_0x35b8e8([0x56,0x61,0x6c,0x69,0x64])):_0x35b8e8(_0x30443b-_0x266739>(0x343d8f38^_0x550c1c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35b8e8([0x74,0x68,0x65,0x6e])](_0xb0ad49)[_0x35b8e8([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb0ad49(_0x35b8e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3549a0=0x1007e5b8^_0x550c1c;function _0x2f3e08(){const _0x3ca613=_0x35b8e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x10941a(_0x13f30c(_0x329890)),_0x197ef3=_0x1fddcc(_0x10941a(window[_0x35b8e8([0x4d,0x61,0x74,0x68])][_0x35b8e8([0x63,0x65,0x69,0x6c])](_0x30443b/_0x3549a0)));window[_0x35b8e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35b8e8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ca613,_0x197ef3);}function _0x41d45c(){const _0x333dff=_0x35b8e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x10941a(_0x13f30c(_0x329890)),_0x3958ac=window[_0x35b8e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35b8e8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x333dff);return _0x3958ac?window[_0x35b8e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fddcc(_0x3958ac),0x10)*_0x3549a0:null;}function _0x309e51(_0x3bd191){return new window[(_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28e4cf,_0xd45a44)=>{_0x3bd191[_0x35b8e8([0x74,0x68,0x65,0x6e])](_0x28e4cf,_0xd45a44),window[_0x35b8e8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd45a44,0x1030dff8^_0x550c1c);});}}_0x4eff73[_0x35b8e8([0x6f,0x6e])](_0x35b8e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x11f79d,_0x1097db)=>{if(_0x1097db[0x0]!=_0x329890)return _0xb0ad49(_0x35b8e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1097db[0x1]={..._0x1097db[0x1],[_0x35b8e8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2e0b6a};},{[_0x35b8e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35b8e8([0x68,0x69,0x67,0x68])}),_0x4eff73[_0x35b8e8([0x6f,0x6e])](_0x35b8e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a7053=>{_0x50e9d2(_0x5a7053[_0x35b8e8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x577b20=!0x0,_0x43ea73(_0x5a7053[_0x35b8e8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35b8e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35b8e8([0x6c,0x6f,0x77])}),_0x3821f9[_0x35b8e8([0x74,0x68,0x65,0x6e])](()=>{_0x577b20||_0xb0ad49(_0x35b8e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x100550(){return _0x4eff73[_0x35b8e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35b8e8([0x76,0x69,0x65,0x77])][_0x35b8e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35b8e8([0x61,0x75,0x74,0x6f]);}function _0x294161(){_0x4eff73[_0x35b8e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35b8e8([0x76,0x69,0x65,0x77])][_0x35b8e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35b8e8([0x61,0x75,0x74,0x6f]);}}function _0x28758a(_0x3755e5){const _0x5a6f65=[new window[(_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2087e6=>setTimeout(_0x2087e6,0x103835f4^_0x550c1c)),_0x3821f9[_0x35b8e8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c4b4f=>{let _0x809a6f=0x0;_0x4eff73[_0x35b8e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x35b8e8([0x6f,0x6e])](_0x35b8e8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11fd79,_0xd8f5bb)=>{_0xd8f5bb[0x0][_0x35b8e8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x809a6f++,_0x809a6f==(0x10310ac0^_0x550c1c)&&(_0x1c4b4f(),_0x11fd79[_0x35b8e8([0x6f,0x66,0x66])]());});}))];return window[_0x35b8e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35b8e8([0x72,0x61,0x63,0x65])](_0x5a6f65)[_0x35b8e8([0x74,0x68,0x65,0x6e])](()=>_0x3755e5);}async function _0x144e21(){await _0x3821f9,_0x4eff73[_0x35b8e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x35b8e8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39cac5,_0x4eff73[_0x35b8e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x35b8e8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39cac5,_0x4eff73[_0x35b8e8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35b8e8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1adfd2(_0x187476){const _0x49d5c7=_0x5eab95();_0x4eff73[_0x49d5c7]=_0x35b8e8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x187476,_0x187476!=_0x35b8e8([0x56,0x61,0x6c,0x69,0x64])&&_0x144e21();}function _0x5eab95(){const _0x147ef3=window[_0x35b8e8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35b8e8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35b8e8([0x6e,0x6f,0x77])]())[_0x35b8e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35b8e8([0x2e]),'');let _0x12287d=_0x35b8e8([0x78]);for(let _0x14fa1c=0x0;_0x14fa1c<_0x147ef3[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14fa1c+=0x2){let _0xe31146=window[_0x35b8e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x147ef3[_0x35b8e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14fa1c,_0x14fa1c+0x2));_0xe31146>=_0x27eb53[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe31146-=_0x27eb53[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12287d+=_0x27eb53[_0xe31146];}return _0x12287d;}function _0x3aba30(){const _0x19dfbd=_0x52553f[_0x35b8e8([0x73,0x70,0x6c,0x69,0x74])](_0x35b8e8([0x2e]));if(0x3!=_0x19dfbd[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x38e75b(_0x19dfbd[0x1]);function _0x38e75b(_0x35fe74){const _0x2e4b0b=_0x1b767a(_0x35fe74);return _0x2e4b0b&&_0x23d561()?_0x2e4b0b:null;function _0x23d561(){const _0x196b07=_0x2e4b0b[_0x35b8e8([0x6a,0x74,0x69])],_0x5d8f4a=window[_0x35b8e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x196b07[_0x35b8e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x196b07[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x476b2c={..._0x2e4b0b,[_0x35b8e8([0x6a,0x74,0x69])]:_0x196b07[_0x35b8e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x196b07[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x476b2c[_0x35b8e8([0x76,0x63])],_0x13f30c(_0x476b2c)==_0x5d8f4a;}}}async function _0x436561(){let _0x41f6ed=!0x0;try{const _0x5e3650=_0x52553f[_0x35b8e8([0x73,0x70,0x6c,0x69,0x74])](_0x35b8e8([0x2e])),[_0x3c5a96,_0x2377b4,_0x564c00]=_0x5e3650;return _0x4cf0c3(_0x3c5a96),await _0x136b3c(_0x3c5a96,_0x2377b4,_0x564c00),_0x41f6ed;}catch(_0x2cb4b6){return!0x1;}function _0x4cf0c3(_0x210224){const _0x3d712d=_0x1b767a(_0x210224);_0x3d712d&&_0x3d712d[_0x35b8e8([0x61,0x6c,0x67])]==_0x35b8e8([0x45,0x53,0x32,0x35,0x36])||(_0x41f6ed=!0x1);}async function _0x136b3c(_0x32ccff,_0x22907e,_0x233b7a){const _0x515b78=window[_0x35b8e8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35b8e8([0x66,0x72,0x6f,0x6d])](_0x5ef8e1(_0x233b7a),_0x58d146=>_0x58d146[_0x35b8e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57ebbf=new window[(_0x35b8e8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35b8e8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32ccff+_0x35b8e8([0x2e])+_0x22907e),_0x57b5c0=window[_0x35b8e8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35b8e8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57b5c0)return;const _0x1628c2=await _0x57b5c0[_0x35b8e8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35b8e8([0x6a,0x77,0x6b]),_0x14b57b,{[_0x35b8e8([0x6e,0x61,0x6d,0x65])]:_0x35b8e8([0x45,0x43,0x44,0x53,0x41]),[_0x35b8e8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35b8e8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35b8e8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57b5c0[_0x35b8e8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35b8e8([0x6e,0x61,0x6d,0x65])]:_0x35b8e8([0x45,0x43,0x44,0x53,0x41]),[_0x35b8e8([0x68,0x61,0x73,0x68])]:{[_0x35b8e8([0x6e,0x61,0x6d,0x65])]:_0x35b8e8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1628c2,_0x515b78,_0x57ebbf)||(_0x41f6ed=!0x1);}}function _0x1b767a(_0x1e6306){return _0x1e6306[_0x35b8e8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35b8e8([0x65,0x79]))?JSON[_0x35b8e8([0x70,0x61,0x72,0x73,0x65])](_0x5ef8e1(_0x1e6306)):null;}function _0x5ef8e1(_0x21480a){return window[_0x35b8e8([0x61,0x74,0x6f,0x62])](_0x21480a[_0x35b8e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35b8e8([0x2b]))[_0x35b8e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35b8e8([0x2f])));}function _0x13f30c(_0x26dd47){let _0x25a39a=0x1505;function _0x57baf0(_0xc759fa){for(let _0x15bf65=0x0;_0x15bf65<_0xc759fa[_0x35b8e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15bf65++){const _0x22da90=_0xc759fa[_0x35b8e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15bf65);_0x25a39a=(_0x25a39a<<0x5)+_0x25a39a+_0x22da90,_0x25a39a&=_0x25a39a;}}function _0x7db905(_0x4d995c){Array[_0x35b8e8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d995c)?_0x4d995c[_0x35b8e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7db905):_0x4d995c&&typeof _0x4d995c==_0x35b8e8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35b8e8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d995c)[_0x35b8e8([0x73,0x6f,0x72,0x74])]()[_0x35b8e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4642bb,_0x7c709a])=>{_0x57baf0(_0x4642bb),_0x7db905(_0x7c709a);}):_0x57baf0(window[_0x35b8e8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d995c));}return _0x7db905(_0x26dd47),_0x25a39a>>>0x0;}function _0x10941a(_0x1d3b81){return _0x1d3b81[_0x35b8e8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35b8e8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35b8e8([0x30]));}function _0x1fddcc(_0x43970c){return _0x43970c[_0x35b8e8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35b8e8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35b8e8([0x6a,0x6f,0x69,0x6e])]('');}function _0x39cac5(){}function _0x35b8e8(_0x1349c7){const _0x47d886=_0x4b22;return _0x1349c7[_0x47d886(0xd3)](_0x4a57f7=>String[_0x47d886(0xd1)](_0x4a57f7))[_0x47d886(0xff)]('');}_0x1adfd2(await _0x326e67());}(this);}[_0x5b2957(0xc7)](){const _0x308a0e=_0x5b2957,_0x83b661=this[_0x308a0e(0xce)][_0x308a0e(0xf7)][_0x308a0e(0xd6)];_0x83b661[_0x308a0e(0xe6)](_0x308a0e(0xe2))&&_0x83b661[_0x308a0e(0xd9)](_0x308a0e(0xe2),{'allowAttributes':[_0x308a0e(0xc9)]}),_0x83b661[_0x308a0e(0xe6)](_0x308a0e(0x108))&&_0x83b661[_0x308a0e(0xd9)](_0x308a0e(0x108),{'allowAttributes':[_0x308a0e(0xc9)]});}[_0x5b2957(0xfc)](){const _0x447c38=_0x5b2957,_0x276bd6=this[_0x447c38(0xce)];_0x276bd6[_0x447c38(0xbf)][_0x447c38(0xde)](_0x447c38(0xe7))[_0x447c38(0xbd)]({'model':_0x447c38(0xc9),'view':_0x447c38(0xf5)}),_0x276bd6[_0x447c38(0xbf)][_0x447c38(0xde)](_0x447c38(0xf6))[_0x447c38(0xfa)]({'model':{'key':_0x447c38(0xc9),'value':_0x26d9aa=>_0x26d9aa[_0x447c38(0xd0)](_0x447c38(0xf5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x526805=_0x276bd6[_0x447c38(0x10f)][_0x447c38(0x10d)](_0x447c38(0xc2));_0x526805&&this[_0x447c38(0xf4)](_0x526805,_0x447c38(0xf1),(_0x2cf8ea,[_0xbe740c,_0x30a425])=>{const _0x428111=_0x447c38;_0xbe740c[_0x428111(0xdb)](_0x428111(0xc9),_0x30a425);});}[_0x5b2957(0x101)](){const _0x1f63d9=_0x5b2957,_0x29a106=this[_0x1f63d9(0xce)][_0x1f63d9(0xda)][_0x1f63d9(0x10d)](_0x1f63d9(0x107))||{},_0x42cd12=this[_0x1f63d9(0xce)][_0x1f63d9(0xda)][_0x1f63d9(0x10d)](_0x1f63d9(0xf2))||'';this[_0x1f63d9(0xc5)]=_0x4e586a(_0x169508[_0x1f63d9(0xc0)],_0x1f63d9(0xf3),{..._0x29a106,'pubkey':_0x42cd12,'ctx-name':_0x1f63d9(0xca),'sourceList':'','imgOnly':_0x1f63d9(0xe4),'removeCopyright':_0x1f63d9(0xe4),'localeName':this[_0x1f63d9(0xce)][_0x1f63d9(0x105)][_0x1f63d9(0xd7)],'externalSourcesEmbedCss':_0x1f63d9(0xe9)}),this[_0x1f63d9(0xc5)][_0x1f63d9(0xd8)]=_0x1a7666=>{const _0x59d684=_0x1f63d9;if(_0x59d684(0xe3)==_0x1a7666)return _0x59d684(0xfb);},_0x169508[_0x1f63d9(0xc0)][_0x1f63d9(0x106)][_0x1f63d9(0x109)](this[_0x1f63d9(0xc5)]);}[_0x5b2957(0xc3)](){const _0x49f05e=_0x5b2957;this[_0x49f05e(0xea)]=_0x4e586a(_0x169508[_0x49f05e(0xc0)],_0x49f05e(0xec),{'ctx-name':_0x49f05e(0xca)}),_0x169508[_0x49f05e(0xc0)][_0x49f05e(0x106)][_0x49f05e(0x109)](this[_0x49f05e(0xea)]);}[_0x5b2957(0xc6)](){const _0x59cf8f=_0x5b2957,_0x2c5c02=this[_0x59cf8f(0xce)][_0x59cf8f(0x10f)][_0x59cf8f(0x10d)](_0x59cf8f(0x10c));_0x2c5c02&&this[_0x59cf8f(0xf4)](_0x2c5c02,_0x59cf8f(0x10e),()=>{const _0xb0b140=_0x59cf8f,_0x25452d=this[_0xb0b140(0xce)][_0xb0b140(0xf7)][_0xb0b140(0xc0)][_0xb0b140(0xe1)][_0xb0b140(0x104)]();_0x25452d&&_0x25452d[_0xb0b140(0xd0)](_0xb0b140(0xc9))&&this[_0xb0b140(0xce)][_0xb0b140(0xbc)][_0xb0b140(0xdd)][_0xb0b140(0x100)](_0xb0b140(0xef),()=>{const _0x141078=_0xb0b140;_0x92d3f(this[_0x141078(0xce)],_0x25452d);});});const _0x2df04e=this[_0x59cf8f(0xce)][_0x59cf8f(0x10f)][_0x59cf8f(0x10d)](_0x59cf8f(0xd4));_0x2df04e&&this[_0x59cf8f(0xf4)](_0x2df04e,_0x59cf8f(0x10e),()=>{const _0x57ae4b=_0x59cf8f,_0x31d22e=this[_0x57ae4b(0xce)][_0x57ae4b(0xf7)][_0x57ae4b(0xc0)][_0x57ae4b(0xe1)][_0x57ae4b(0x104)]();_0x31d22e&&_0x31d22e[_0x57ae4b(0xd0)](_0x57ae4b(0xc9))&&this[_0x57ae4b(0xce)][_0x57ae4b(0xbc)][_0x57ae4b(0xdd)][_0x57ae4b(0x100)](_0x57ae4b(0xef),()=>{const _0x4ed138=_0x57ae4b;_0x92d3f(this[_0x4ed138(0xce)],_0x31d22e);});});}}function _0xb94c(){const _0x20254d=['uploadcareImageId','uploader','requires','5878XgKhOm','isOfficialPlugin','editor','1879734gvVXbr','getAttribute','fromCharCode','4tgrJVd','map','uploadcareImageReplace','isPremiumPlugin','schema','contentLanguage','iconHrefResolver','extend','config','removeAttribute','querySelector','view','for','316AlyRlp','1705980JZhRGa','selection','imageBlock','closeMax','true','ctxElement','isRegistered','downcast','afterInit','\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','_ctxElement','3681534LFIKXb','uc-upload-ctx-provider','57169fNPJpw','input[uploadcare-file-input]','render','init','cleanupImage','uploadcare.pubkey','uc-config','listenTo','data-uc-image-id','upcast','model','7797717akDFOg','remove','elementToAttribute','#uc-icon-arrow-down','_initConversion','1096ogefzh','configElement','join','once','_initConfig','2264680NWFGnI','add','getSelectedElement','locale','body','uploadcare.uploader','imageInline','appendChild','href','pluginName','insertImage','get','execute','commands','editing','attributeToAttribute','destroy','conversion','document','UploadcareEditing','replaceImageSource','_initCtx','PictureEditing','_configElement','_initImageProcessingIndicator','_initSchema','uploadcare'];_0xb94c=function(){return _0x20254d;};return _0xb94c();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x35fb64,ObservableMixin as _0x222806}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x17fdc7}from'ckeditor5/src/ui.js';import _0x28abd5 from'./uploadcareimageeditformview.js';import _0x41d4b9 from'../../utils/uploadutils.js';import _0x1e8583 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x5d9adb,getImageDimension as _0x200ad0}from'../../utils/editingutils.js';import{isAncestor as _0x16c3e1}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x222806(){constructor(_0x2dce30,_0x5a624d,_0x18953c){super(),this['_editor']=_0x2dce30,this['_dialog']=_0x5a624d,this['_imageElement']=_0x18953c,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 _0x58edea=this['_imageElement'],_0x3e7ce0=_0x58edea['getAttribute']('uploadcareImageId'),_0x5f5ca2=_0x58edea['getAttribute']('src');if(_0x3e7ce0)await this['_loadImageInfo'](_0x3e7ce0,_0x5f5ca2);else{if(this['_imageCache']['has'](_0x5f5ca2)){const _0x2cca9e=this['_imageCache']['get'](_0x5f5ca2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2cca9e['url'],this['imageDimension']=_0x2cca9e['dimension'],this['imageId']=_0x2cca9e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x36a9c9}=this['_editor'],t=_0x36a9c9['t'],_0x146309=new _0x28abd5(_0x36a9c9,this['imageStatus'],this['_attributes']);_0x146309['bind']('status')['to'](this,'imageStatus'),_0x146309['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x146309['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x146309['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x146309,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e8583,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x146309,'position':_0x17fdc7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x146309['focus']();},'onHide':()=>{_0x146309['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x145113=>!_0x16c3e1(_0x145113,_0x146309['element'])}});}['_loadImageInfo'](_0xaae7fd,_0x57a771){return _0x41d4b9['getInfo'](_0xaae7fd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1f6ce1=>{const {width:_0xf2e3c2,height:_0x5bcd54}=_0x1f6ce1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57a771,this['imageDimension']={'width':_0xf2e3c2,'height':_0x5bcd54},this['imageId']=_0xaae7fd;})['catch'](_0x1be081=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1be081['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2c4856,_0x15b3fb){return this['_getImageAsFile'](_0x2c4856)['then'](_0x5e61dc=>_0x41d4b9['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x15b3fb['signal'],'file':_0x5e61dc,'onProgress':_0x13c67c=>{_0x13c67c&&_0x13c67c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x13c67c['value']));}}))['then'](_0x503ec6=>{const {width:_0x482067,height:_0x4fbed5}=_0x503ec6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x503ec6['cdnUrl'],this['imageDimension']={'width':_0x482067,'height':_0x4fbed5},this['imageId']=_0x503ec6['uuid'],this['imageUploadProgress']=null;const _0x4169e8=_0x2c4856['getAttribute']('src');this['_imageCache']['set'](_0x4169e8,{'id':_0x503ec6['uuid'],'url':_0x503ec6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4b6858=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4b6858['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1b7477,_0x5c82be){_0x1b7477['on']('apply',(_0x53d03e,_0x471c8f)=>{this['_replaceImage'](_0x5c82be,_0x471c8f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1b7477['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1b7477['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f0cc7,_0x48f9ea,_0x4fc71b){const _0x3b98e3=this['_editor'],{width:_0x50ec78,height:_0x176ed8}=_0x200ad0(_0x48f9ea,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4546f8,imageSources:_0x1a1e21}=_0x5d9adb(_0x48f9ea,_0x50ec78);_0x3b98e3['model']['change'](_0x4220da=>{if('$graveyard'===_0x1f0cc7['root']['rootName']){_0x3b98e3['execute']('insertImage',{'imageType':_0x1f0cc7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f0cc7['getAttributes']()),'uploadcareImageId':_0x4fc71b,'src':_0x4546f8,'sources':_0x1a1e21,'width':_0x50ec78,'height':_0x176ed8}});const _0x2be96a=_0x1f0cc7['getChildren']();_0x1f0cc7=_0x3b98e3['model']['document']['selection']['getSelectedElement']();for(const _0x453fa5 of _0x2be96a)_0x4220da['append'](_0x4220da['cloneElement'](_0x453fa5),_0x1f0cc7);}else _0x4220da['setSelection'](_0x1f0cc7,'on'),_0x3b98e3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f0cc7['getAttributes']()),'uploadcareImageId':_0x4fc71b,'src':_0x4546f8,'sources':_0x1a1e21,'width':_0x50ec78,'height':_0x176ed8},_0x1f0cc7);_0x4220da['setSelection'](_0x1f0cc7,'on');});}async['_getImageAsFile'](_0x8b4fe7){const _0x2b8ec7=_0x35fb64['window'],_0x5e5a6e=_0x35fb64['document']['location']['href'],_0x1a009e=new _0x2b8ec7['URL'](_0x8b4fe7['getAttribute']('src'),_0x5e5a6e);if('data:'===_0x1a009e['protocol']){const _0x226682=_0x1a009e['href']['split'](','),_0x5eea81=_0x226682[0x0]['match'](/:(.*?);/)[0x1],_0x57a912=_0x5eea81['split']('/')[0x1],_0x4bbb73=_0x2b8ec7['atob'](_0x226682[_0x226682['length']-0x1]);let _0x50dd11=_0x4bbb73['length'];const _0x546e8e=new _0x2b8ec7['Uint8Array'](_0x50dd11);for(;_0x50dd11--;)_0x546e8e[_0x50dd11]=_0x4bbb73['charCodeAt'](_0x50dd11);return new _0x2b8ec7['File']([_0x546e8e],'image.'+_0x57a912,{'type':_0x5eea81});}const _0x1486db=_0x1a009e['href']['split']('/'),_0x4a821c=_0x1486db[_0x1486db['length']-0x1],_0x22e319=_0x4a821c['split']('.')[0x1];return _0x2b8ec7['fetch'](_0x1a009e['href'])['then'](_0x234626=>_0x234626['clone']()['blob']())['then'](_0x1c59a2=>new _0x2b8ec7['File']([_0x1c59a2],_0x4a821c,{'type':'image/'+_0x22e319}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x44fd53,_0x20534a){const _0x31f898=_0x3ae2,_0x2a0c14=_0x44fd53();while(!![]){try{const _0x15fe53=-parseInt(_0x31f898(0x172))/0x1+-parseInt(_0x31f898(0x16f))/0x2*(-parseInt(_0x31f898(0x169))/0x3)+-parseInt(_0x31f898(0x170))/0x4*(parseInt(_0x31f898(0x167))/0x5)+parseInt(_0x31f898(0x175))/0x6+parseInt(_0x31f898(0x16b))/0x7+parseInt(_0x31f898(0x173))/0x8*(-parseInt(_0x31f898(0x16a))/0x9)+parseInt(_0x31f898(0x171))/0xa*(parseInt(_0x31f898(0x176))/0xb);if(_0x15fe53===_0x20534a)break;else _0x2a0c14['push'](_0x2a0c14['shift']());}catch(_0x231050){_0x2a0c14['push'](_0x2a0c14['shift']());}}}(_0x25f3,0x56223));import{View as _0x52b562}from'ckeditor5/src/ui.js';function _0x3ae2(_0xdc9d01,_0x1af5b9){const _0x25f325=_0x25f3();return _0x3ae2=function(_0x3ae256,_0x3288a9){_0x3ae256=_0x3ae256-0x165;let _0x4ef3ee=_0x25f325[_0x3ae256];return _0x4ef3ee;},_0x3ae2(_0xdc9d01,_0x1af5b9);}export default class tt extends _0x52b562{constructor(_0x144ee4,_0x586165){const _0x399190=_0x3ae2;super(_0x144ee4);const _0x1d752b=this[_0x399190(0x168)];this[_0x399190(0x174)](_0x399190(0x16e),''),this[_0x399190(0x16d)]({'tag':_0x399190(0x166),'attributes':{..._0x586165,'class':[_0x399190(0x16c),_0x399190(0x177)],'ctx-name':_0x399190(0x165),'cdn-url':_0x1d752b['to'](_0x399190(0x16e))}});}}function _0x25f3(){const _0x18d297=['5YEYDPA','bindTemplate','16647rTxSFr','9pqpPKt','947618svAexV','uc-light','setTemplate','imageSrc','218TrFbDY','2096596SBTOSG','10vJkGBC','382782fafULz','4976920wtmpYK','set','1643778XMRrhp','9544381rqUlHD','ck-uploadcare-theme','image-edit','uc-cloud-image-editor'];_0x25f3=function(){return _0x18d297;};return _0x25f3();}
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, 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
|
+
/**
|
|
6
|
+
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformerrorview
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
5
9
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
-
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
7
10
|
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
8
11
|
/**
|
|
9
12
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{
|
|
23
|
+
import{ButtonView as _0xcc080f,IconView as et,View as _0x2b127f}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x2b127f{constructor(_0x44188e){super(_0x44188e);const t=_0x44188e['t'];this['set']('errorType',null);const _0x59556d=new _0xcc080f(_0x44188e);_0x59556d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x59556d['withText']=!0x0,_0x59556d['class']='ck-button-action',_0x59556d['on']('execute',()=>{this['fire']('retry');}),_0x59556d['bind']('isVisible')['to'](this,'errorType',_0x4cff01=>'NotFound'!==_0x4cff01);const _0x2b37db=new et();_0x2b37db['content']=at,_0x2b37db['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4a0c06=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':[_0x2b37db,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4a0c06['to']('errorType',_0x571a18=>t('NotFound'!==_0x571a18?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x59556d]},{'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'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0x199c2a,View as _0x270653}from'ckeditor5/src/ui.js';export default class ta extends _0x270653{constructor(_0x3f3a9f){super(_0x3f3a9f);const t=_0x3f3a9f['t'],_0x3efb46=this['bindTemplate'],_0x240a33=new _0x199c2a();_0x240a33['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':[_0x240a33,{'text':_0x3efb46['to']('imageUploadProgress',_0x64bd89=>t('Loading\x20image...')+'\x20('+(_0x64bd89||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'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x189a83=_0x5ef6;function _0x3a92(){const _0x38e6fa=['disconnect','length','filter','createCollection','uc-cloud-image-editor','ck-uploadcare-form','addEventListener','addedNodes','_errorView','getFocusableElement','element','fire','_waitForImageEditorComponent','107795IMjcmK','1502775cfUNtj','_items','2472rHOQDN','_editingView','error','once','327NfMkCv','detail','change:status','target','18AjGSQV','ck-reset_all-excluded','131294ExYeBp','nodeName','_loadingView','1ZNjwmO','addMany','cancel','uploading','_focusableView','div','querySelector','render','setTemplate','apply','set','toLowerCase','cdnUrl','clear','retry','611792rfZKwU','_addUploadcareImageEditorListeners','ready','status','_addErrorViewListeners','add','focus','_setView','5055130eFphSk','1467767bszsRU','observe'];_0x3a92=function(){return _0x38e6fa;};return _0x3a92();}(function(_0xdc381d,_0x375fdd){const _0x10c8c4=_0x5ef6,_0x4634fd=_0xdc381d();while(!![]){try{const _0x184dc9=parseInt(_0x10c8c4(0x115))/0x1*(parseInt(_0x10c8c4(0x112))/0x2)+-parseInt(_0x10c8c4(0x10c))/0x3*(parseInt(_0x10c8c4(0x108))/0x4)+-parseInt(_0x10c8c4(0x105))/0x5*(-parseInt(_0x10c8c4(0x110))/0x6)+-parseInt(_0x10c8c4(0x12d))/0x7+-parseInt(_0x10c8c4(0x124))/0x8+-parseInt(_0x10c8c4(0x106))/0x9+parseInt(_0x10c8c4(0x12c))/0xa;if(_0x184dc9===_0x375fdd)break;else _0x4634fd['push'](_0x4634fd['shift']());}catch(_0x5b6841){_0x4634fd['push'](_0x4634fd['shift']());}}}(_0x3a92,0x1c291));function _0x5ef6(_0x489019,_0x46f390){const _0x3a92eb=_0x3a92();return _0x5ef6=function(_0x5ef60c,_0x5dd153){_0x5ef60c=_0x5ef60c-0xf9;let _0x255550=_0x3a92eb[_0x5ef60c];return _0x255550;},_0x5ef6(_0x489019,_0x46f390);}import{View as _0x24464b}from'ckeditor5/src/ui.js';import _0x11ea88 from'./uploadcareimageeditformloadingview.js';import _0x3721d8 from'./uploadcareimageeditformerrorview.js';import _0x2d6e06 from'./uploadcareimageeditformeditingview.js';import _0x1aaeee from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x1aaeee{constructor(_0x581dcc,_0x765b1,_0x3add61){const _0x1d7799=_0x5ef6;super(_0x581dcc),this[_0x1d7799(0x107)]=this[_0x1d7799(0xfb)](),this[_0x1d7799(0x114)]=new _0x11ea88(_0x581dcc),this[_0x1d7799(0x100)]=new _0x3721d8(_0x581dcc),this[_0x1d7799(0x109)]=new _0x2d6e06(_0x581dcc,_0x3add61),this[_0x1d7799(0x119)]=new _0x24464b(_0x581dcc),this[_0x1d7799(0x119)][_0x1d7799(0x11d)](this[_0x1d7799(0x101)]()),this[_0x1d7799(0x11f)](_0x1d7799(0x127),_0x765b1),this[_0x1d7799(0x11d)]({'tag':_0x1d7799(0x11a),'attributes':{'class':['ck',_0x1d7799(0x111),_0x1d7799(0xfd)],'tabindex':'-1'},'children':this[_0x1d7799(0x107)]}),this[_0x1d7799(0x12b)](),this[_0x1d7799(0x10b)](_0x1d7799(0x11c),()=>{const _0x2cd85d=_0x1d7799;this[_0x2cd85d(0x104)](this[_0x2cd85d(0x102)],_0x1b8d84=>{const _0x69fc26=_0x2cd85d;this[_0x69fc26(0x125)](_0x1b8d84);});}),this['on'](_0x1d7799(0x10e),()=>{const _0x486438=_0x1d7799;this[_0x486438(0x12b)]();}),this[_0x1d7799(0x128)]();}[_0x189a83(0x12a)](){const _0xc0aae6=_0x189a83;this[_0xc0aae6(0x102)][_0xc0aae6(0x12a)]();}[_0x189a83(0x12b)](){const _0x760b0d=_0x189a83;switch(this[_0x760b0d(0x107)][_0x760b0d(0x122)](),this[_0x760b0d(0x127)]){case _0x760b0d(0x118):this[_0x760b0d(0x107)][_0x760b0d(0x129)](this[_0x760b0d(0x114)]);break;case _0x760b0d(0x10a):this[_0x760b0d(0x107)][_0x760b0d(0x129)](this[_0x760b0d(0x100)]);break;case _0x760b0d(0x126):this[_0x760b0d(0x107)][_0x760b0d(0x116)]([this[_0x760b0d(0x109)],this[_0x760b0d(0x119)]]);}}[_0x189a83(0x104)](_0xb6b2c2,_0x1b813f){const _0x2d2a81=_0x189a83,_0x46d303=_0x2d2a81(0xfc),_0x5c0336=_0xb6b2c2[_0x2d2a81(0x11b)](_0x46d303);if(_0x5c0336)return _0x1b813f(_0x5c0336);const _0x341b2e=new MutationObserver(_0x2db947=>{const _0x3f1e7e=_0x2d2a81,_0x24fb08=_0x2db947[_0x3f1e7e(0xfa)](_0x2e117c=>_0x2e117c[_0x3f1e7e(0x10f)]===_0xb6b2c2&&_0x2e117c[_0x3f1e7e(0xff)][_0x3f1e7e(0xf9)]>0x0&&_0x2e117c[_0x3f1e7e(0xff)][0x0][_0x3f1e7e(0x113)][_0x3f1e7e(0x120)]()===_0x46d303);_0x24fb08[_0x3f1e7e(0xf9)]&&(_0x341b2e[_0x3f1e7e(0x12f)](),_0x1b813f(_0x24fb08[0x0][_0x3f1e7e(0xff)][0x0]));});_0x341b2e[_0x2d2a81(0x12e)](_0xb6b2c2,{'childList':!0x0,'subtree':!0x0});}[_0x189a83(0x125)](_0x33c534){const _0x5cb179=_0x189a83;_0x33c534[_0x5cb179(0xfe)](_0x5cb179(0x11e),_0x478e15=>{const _0x5ddde2=_0x5cb179;this[_0x5ddde2(0x103)](_0x5ddde2(0x11e),{'imageSrc':_0x478e15[_0x5ddde2(0x10d)][_0x5ddde2(0x121)]});}),_0x33c534[_0x5cb179(0xfe)](_0x5cb179(0x117),()=>{const _0x552955=_0x5cb179;this[_0x552955(0x103)](_0x552955(0x117));});}[_0x189a83(0x128)](){const _0x190271=_0x189a83;this[_0x190271(0x100)]['on'](_0x190271(0x123),()=>{const _0x2843e6=_0x190271;this[_0x2843e6(0x103)](_0x2843e6(0x123));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3dea(){const _0x2941bc=['imageInline','imageBlock','1810dCpJMP','document','bind','getSelectedElement','set','4110kuSbMq','uploadcare.allowExternalImagesEditing','selection','isActive','11377527WCfyYI','5802zchCaH','isEnabled','_isEditable','get','185967ZqPBSl','67632xjDCnt','execute','13799992CRCScr','element','model','refresh','plugins','config','unbind','editor','159JOYTlo','requires','3443832qKCtku','1337800mvqcHz','imageEditController'];_0x3dea=function(){return _0x2941bc;};return _0x3dea();}const _0x33e3b3=_0x2872;function _0x2872(_0xfd902e,_0x3589c9){const _0x3deaa3=_0x3dea();return _0x2872=function(_0x287212,_0x32381){_0x287212=_0x287212-0x6a;let _0x111ff7=_0x3deaa3[_0x287212];return _0x111ff7;},_0x2872(_0xfd902e,_0x3589c9);}(function(_0x35cf71,_0x1e4f28){const _0x5f02a0=_0x2872,_0x31d650=_0x35cf71();while(!![]){try{const _0xe07eeb=parseInt(_0x5f02a0(0x7f))/0x1+-parseInt(_0x5f02a0(0x72))/0x2*(-parseInt(_0x5f02a0(0x7c))/0x3)+parseInt(_0x5f02a0(0x7e))/0x4+-parseInt(_0x5f02a0(0x88))/0x5*(-parseInt(_0x5f02a0(0x6d))/0x6)+parseInt(_0x5f02a0(0x6c))/0x7+-parseInt(_0x5f02a0(0x74))/0x8+parseInt(_0x5f02a0(0x71))/0x9*(-parseInt(_0x5f02a0(0x83))/0xa);if(_0xe07eeb===_0x1e4f28)break;else _0x31d650['push'](_0x31d650['shift']());}catch(_0x2f6670){_0x31d650['push'](_0x31d650['shift']());}}}(_0x3dea,0xe703f));import{Command as _0x5e8bd7}from'ckeditor5/src/core.js';import{Dialog as _0x59d116}from'ckeditor5/src/ui.js';import _0x4986be from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5e7085}from'../utils/editingutils.js';export default class J extends _0x5e8bd7{static get[_0x33e3b3(0x7d)](){return[_0x59d116];}constructor(_0x563fd5){const _0x499ac8=_0x33e3b3;super(_0x563fd5),this[_0x499ac8(0x80)]=void 0x0,this[_0x499ac8(0x6f)]=_0x5e7085(_0x563fd5[_0x499ac8(0x79)][_0x499ac8(0x70)](_0x499ac8(0x89))||[]),this[_0x499ac8(0x87)]({'isActive':!0x1});}[_0x33e3b3(0x77)](){const _0x3e00f1=_0x33e3b3,_0x4296f2=this[_0x3e00f1(0x7b)][_0x3e00f1(0x76)][_0x3e00f1(0x84)][_0x3e00f1(0x6a)][_0x3e00f1(0x86)]();this[_0x3e00f1(0x6e)]=this[_0x3e00f1(0x6f)](_0x4296f2);}[_0x33e3b3(0x73)](){const _0x3809a3=_0x33e3b3;this[_0x3809a3(0x80)]&&(this[_0x3809a3(0x7a)](_0x3809a3(0x6b)),this[_0x3809a3(0x80)]=void 0x0);const _0x213f08=this[_0x3809a3(0x7b)][_0x3809a3(0x76)][_0x3809a3(0x84)][_0x3809a3(0x6a)][_0x3809a3(0x86)]();_0x213f08&&(_0x213f08['is'](_0x3809a3(0x75),_0x3809a3(0x82))||_0x213f08['is'](_0x3809a3(0x75),_0x3809a3(0x81)))&&(this[_0x3809a3(0x80)]=new _0x4986be(this[_0x3809a3(0x7b)],this[_0x3809a3(0x7b)][_0x3809a3(0x78)][_0x3809a3(0x70)](_0x59d116),_0x213f08),this[_0x3809a3(0x85)](_0x3809a3(0x6b))['to'](this[_0x3809a3(0x80)],_0x3809a3(0x6b)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x40ab(_0x58d755,_0x60bef8){const _0x25ac86=_0x25ac();return _0x40ab=function(_0x40ab3b,_0x11bbbd){_0x40ab3b=_0x40ab3b-0x1bd;let _0x18e8f0=_0x25ac86[_0x40ab3b];return _0x18e8f0;},_0x40ab(_0x58d755,_0x60bef8);}const _0x1c3f20=_0x40ab;(function(_0x4e8e6d,_0x4fe3e4){const _0x2b8827=_0x40ab,_0x225b7b=_0x4e8e6d();while(!![]){try{const _0x32b9be=parseInt(_0x2b8827(0x1d2))/0x1*(-parseInt(_0x2b8827(0x1c7))/0x2)+parseInt(_0x2b8827(0x1bf))/0x3*(parseInt(_0x2b8827(0x1c6))/0x4)+-parseInt(_0x2b8827(0x1d4))/0x5*(parseInt(_0x2b8827(0x1ca))/0x6)+parseInt(_0x2b8827(0x1d3))/0x7*(parseInt(_0x2b8827(0x1c0))/0x8)+parseInt(_0x2b8827(0x1cc))/0x9+parseInt(_0x2b8827(0x1d1))/0xa*(parseInt(_0x2b8827(0x1c9))/0xb)+parseInt(_0x2b8827(0x1cf))/0xc;if(_0x32b9be===_0x4fe3e4)break;else _0x225b7b['push'](_0x225b7b['shift']());}catch(_0x4a2f91){_0x225b7b['push'](_0x225b7b['shift']());}}}(_0x25ac,0xa3ecb));import{Plugin as _0x33e9ab}from'ckeditor5/src/core.js';import{Notification as _0x1f68d0}from'ckeditor5/src/ui.js';function _0x25ac(){const _0x22decd=['1OOpIvc','119sgWyfi','3216030biqEVf','isPremiumPlugin','UploadcareImageEditEditing','9opdYQT','240776KyHLUN','init','requires','commands','uploadcareImageReplace','isOfficialPlugin','1412356OvXgrm','1916126hSDlfa','uploadcareImageEdit','11kBwPfQ','12XiujDY','ImageUtils','5639949bGmEVO','pluginName','add','372480VGLKyA','ImageEditing','6872930rLdttz'];_0x25ac=function(){return _0x22decd;};return _0x25ac();}import _0x30487c from'./uploadcareimageeditcommand.js';import _0x2762bf from'./uploadcareimagereplacecommand.js';import _0x3aa3ea from'../uploadcareediting.js';export default class m extends _0x33e9ab{static get[_0x1c3f20(0x1cd)](){const _0x2adfe2=_0x1c3f20;return _0x2adfe2(0x1be);}static get[_0x1c3f20(0x1c2)](){const _0x348fb0=_0x1c3f20;return[_0x3aa3ea,_0x1f68d0,_0x348fb0(0x1cb),_0x348fb0(0x1d0)];}static get[_0x1c3f20(0x1c5)](){return!0x0;}static get[_0x1c3f20(0x1bd)](){return!0x0;}[_0x1c3f20(0x1c1)](){const _0x3c7206=_0x1c3f20,{editor:_0x5a88bd}=this;_0x5a88bd[_0x3c7206(0x1c3)][_0x3c7206(0x1ce)](_0x3c7206(0x1c8),new _0x30487c(_0x5a88bd)),_0x5a88bd[_0x3c7206(0x1c3)][_0x3c7206(0x1ce)](_0x3c7206(0x1c4),new _0x2762bf(_0x5a88bd));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5aa746}from'ckeditor5/src/core.js';import{ButtonView as _0x40f708}from'ckeditor5/src/ui.js';import{createElement as _0x175d76}from'ckeditor5/src/utils.js';import _0x6aab03 from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x5aa746{constructor(){super(...arguments),this['_imageCache']=new Map();}static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x51637d=this['editor'];_0x51637d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a4252=>{const _0x29bc7d=_0x51637d['commands']['get']('uploadcareImageEdit'),_0x267a75=new _0x40f708(_0x3a4252),t=_0x3a4252['t'];return _0x267a75['set']({'icon':_0x6aab03,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x267a75['bind']('isEnabled')['to'](_0x29bc7d),_0x267a75['bind']('isOn')['to'](_0x29bc7d,'isActive'),this['listenTo'](_0x267a75,'execute',()=>{_0x51637d['execute']('uploadcareImageEdit'),_0x51637d['editing']['view']['focus']();}),_0x267a75;}),this['_initConfig']();}['_initConfig'](){const _0x4c68d2=_0x175d76(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4c68d2),this['listenTo'](this['editor'],'destroy',()=>{_0x4c68d2['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5056ca=_0x58b8;(function(_0x1260f5,_0x521ee8){const _0x33bccc=_0x58b8,_0x963ad4=_0x1260f5();while(!![]){try{const _0x2291d6=-parseInt(_0x33bccc(0xd9))/0x1+-parseInt(_0x33bccc(0xcf))/0x2*(-parseInt(_0x33bccc(0xd6))/0x3)+-parseInt(_0x33bccc(0xcc))/0x4*(-parseInt(_0x33bccc(0xc9))/0x5)+parseInt(_0x33bccc(0xd7))/0x6+parseInt(_0x33bccc(0xd1))/0x7+-parseInt(_0x33bccc(0xd3))/0x8*(parseInt(_0x33bccc(0xce))/0x9)+-parseInt(_0x33bccc(0xc7))/0xa*(parseInt(_0x33bccc(0xc6))/0xb);if(_0x2291d6===_0x521ee8)break;else _0x963ad4['push'](_0x963ad4['shift']());}catch(_0x1214cc){_0x963ad4['push'](_0x963ad4['shift']());}}}(_0x5b20,0x45789));import{Command as _0x34f933}from'ckeditor5/src/core.js';function _0x58b8(_0x157406,_0x51ce25){const _0x5b203e=_0x5b20();return _0x58b8=function(_0x58b8e5,_0x5765b5){_0x58b8e5=_0x58b8e5-0xc0;let _0x54495d=_0x5b203e[_0x58b8e5];return _0x54495d;},_0x58b8(_0x157406,_0x51ce25);}export default class O extends _0x34f933{[_0x5056ca(0xc4)](){const _0x1a4546=_0x5056ca,_0x15ca27=this[_0x1a4546(0xc2)][_0x1a4546(0xda)][_0x1a4546(0xc0)][_0x1a4546(0xd0)][_0x1a4546(0xcb)]();this[_0x1a4546(0xcd)]=Boolean(_0x15ca27&&(_0x15ca27['is'](_0x1a4546(0xc5),_0x1a4546(0xc8))||_0x15ca27['is'](_0x1a4546(0xc5),_0x1a4546(0xca))));}[_0x5056ca(0xd5)](_0x5c8054){const _0x5b642c=_0x5056ca,_0x2e02af=this[_0x5b642c(0xc2)][_0x5b642c(0xda)][_0x5b642c(0xc0)][_0x5b642c(0xd0)][_0x5b642c(0xcb)]();this[_0x5b642c(0xc2)][_0x5b642c(0xda)][_0x5b642c(0xd2)](_0x4900ef=>{const _0x4bd83e=_0x5b642c;_0x4900ef[_0x4bd83e(0xd8)](_0x5c8054,_0x2e02af),_0x4900ef[_0x4bd83e(0xc1)](_0x4bd83e(0xd4),_0x2e02af),_0x4900ef[_0x4bd83e(0xc1)](_0x4bd83e(0xc3),_0x2e02af);});}}function _0x5b20(){const _0x3ba54f=['document','removeAttribute','editor','sizes','refresh','element','13686453PxPBJO','10drZVPx','imageBlock','531120raZHfz','imageInline','getSelectedElement','8zAKUtS','isEnabled','20601eRjlXe','2BPAfDh','selection','2973537gfYHQn','change','168EXQbcj','srcset','execute','1593717rnGdxH','2651262akBakR','setAttributes','33510clAaHJ','model'];_0x5b20=function(){return _0x3ba54f;};return _0x5b20();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x70d2(_0x130f3d,_0x4f242b){var _0x15e135=_0x15e1();return _0x70d2=function(_0x70d29d,_0x5bd9e1){_0x70d29d=_0x70d29d-0xb6;var _0x2e242d=_0x15e135[_0x70d29d];return _0x2e242d;},_0x70d2(_0x130f3d,_0x4f242b);}var _0xa91eb8=_0x70d2;(function(_0x5e5d9c,_0x23f796){var _0x3f59cb=_0x70d2,_0x2e74c3=_0x5e5d9c();while(!![]){try{var _0x364a22=parseInt(_0x3f59cb(0xc4))/0x1+-parseInt(_0x3f59cb(0xc3))/0x2+-parseInt(_0x3f59cb(0xc5))/0x3*(parseInt(_0x3f59cb(0xc1))/0x4)+parseInt(_0x3f59cb(0xbd))/0x5*(parseInt(_0x3f59cb(0xb8))/0x6)+-parseInt(_0x3f59cb(0xbb))/0x7*(parseInt(_0x3f59cb(0xba))/0x8)+parseInt(_0x3f59cb(0xb9))/0x9+parseInt(_0x3f59cb(0xbe))/0xa*(-parseInt(_0x3f59cb(0xc2))/0xb);if(_0x364a22===_0x23f796)break;else _0x2e74c3['push'](_0x2e74c3['shift']());}catch(_0x122458){_0x2e74c3['push'](_0x2e74c3['shift']());}}}(_0x15e1,0x85f59));import{Plugin as _0xad28b2}from'ckeditor5/src/core.js';import _0x1389d9 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0xab3ab6 from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x15e1(){var _0x4ae1d8=['101913bjMWMV','UploadcareImageEdit','1165WFQNXU','10DRrjmr','isOfficialPlugin','requires','644544QtHnNb','3100295iFATkW','562646RgleMy','706351TqIqDJ','15jUSwsR','isPremiumPlugin','pluginName','7080dBlNTt','8819379DSRrsa','24KcackC'];_0x15e1=function(){return _0x4ae1d8;};return _0x15e1();}export default class j extends _0xad28b2{static get[_0xa91eb8(0xb7)](){var _0x2806a9=_0xa91eb8;return _0x2806a9(0xbc);}static get[_0xa91eb8(0xc0)](){return[_0x1389d9,_0xab3ab6];}static get[_0xa91eb8(0xbf)](){return!0x0;}static get[_0xa91eb8(0xb6)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xdb1892=_0x4fa3;(function(_0x264af2,_0x6b6982){const _0x536e8c=_0x4fa3,_0x235519=_0x264af2();while(!![]){try{const _0x35dcf9=-parseInt(_0x536e8c(0xe3))/0x1*(parseInt(_0x536e8c(0xdc))/0x2)+parseInt(_0x536e8c(0xfe))/0x3*(parseInt(_0x536e8c(0x103))/0x4)+parseInt(_0x536e8c(0xe8))/0x5*(-parseInt(_0x536e8c(0x124))/0x6)+-parseInt(_0x536e8c(0xf3))/0x7*(parseInt(_0x536e8c(0xfc))/0x8)+-parseInt(_0x536e8c(0xdf))/0x9+-parseInt(_0x536e8c(0xe0))/0xa+parseInt(_0x536e8c(0x117))/0xb;if(_0x35dcf9===_0x6b6982)break;else _0x235519['push'](_0x235519['shift']());}catch(_0x128696){_0x235519['push'](_0x235519['shift']());}}}(_0x3e93,0xf1003));import{Plugin as _0x5b6236,icons as _0x127329}from'ckeditor5/src/core.js';import{ButtonView as _0x14adc7,MenuBarMenuListItemButtonView as _0x49be31}from'ckeditor5/src/ui.js';import _0x4fecac from'../theme/icons/dropbox.svg';function _0x3e93(){const _0x4fadeb=['uploadcare','entries','1282124mOtvsf','_showLicenseError','tooltip','2207475oTCoeG','14167500RlgGhF','uploadcareLicenseKeyInvalid','expired','2KrMGQl','push','shortText','label','uploadcare.uploader.sourceList','171435ckRBbj','Uploadcare','forEach','GPhotos','uploadcareLicenseKeyExpired','_getIntegrationKey','_createDropdownButtons','featureNotAllowed','trialLimit','get','domainLimit','4711pQKWwR','uploadcareLicenseKeyValid','uploadcareLicenseKeyNotAllowed','_createButton','execute','uploadcareLicenseKeyTrialLimit','afterInit','uploadcareLicenseKeyUsageLimit','URL','22712fXPTvz','plugins','2259gwDHWz','text','Dropbox','isPremiumPlugin','_normalizeConfigSourceList','3396EavSCt','bind','isOfficialPlugin','config','url','commands','OneDrive','has','GDrive','assetManager','isEnabled','_createToolbarButton','evaluationLimit','type','usageLimit','invalid','uploadcareLicenseKeyDomainLimit','locale','icon','destroy','61754902CZbejX','editor','uploadcareLicenseKeyEvaluationLimit','_licenseKeyCheckInterval','withText','Local','ImageInsertUI','reduce','UploadcareUI','Replace','imageUpload','upload','isImageSelected','72qWhtbU','registerIntegration','_createMenuBarButtons','map','init','Insert','pluginName','Facebook','licenseKey'];_0x3e93=function(){return _0x4fadeb;};return _0x3e93();}import _0x4d28b9 from'../theme/icons/facebook.svg';import _0x405dd4 from'../theme/icons/google-drive.svg';import _0x3a2413 from'../theme/icons/google-photos.svg';function _0x4fa3(_0x2276f0,_0x1ccc28){const _0x3e9369=_0x3e93();return _0x4fa3=function(_0x4fa328,_0x4b0074){_0x4fa328=_0x4fa328-0xd4;let _0x3f0fc2=_0x3e9369[_0x4fa328];return _0x3f0fc2;},_0x4fa3(_0x2276f0,_0x1ccc28);}import _0x33b7fd from'../theme/icons/link.svg';import _0x18c2da from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x59b130}from'./uploadcareconfig.js';import{getTranslation as _0x40302d}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x5b6236{static get[_0xdb1892(0xd7)](){const _0x58442a=_0xdb1892;return _0x58442a(0x11f);}static get[_0xdb1892(0x105)](){return!0x0;}static get[_0xdb1892(0x101)](){return!0x0;}[_0xdb1892(0xd5)](){const _0x38fdc8=_0xdb1892;this[_0x38fdc8(0xd9)]=this[_0x38fdc8(0x118)][_0x38fdc8(0x106)][_0x38fdc8(0xf1)](_0x38fdc8(0xd9));const _0x3a58cf=this[_0x38fdc8(0x118)];this[_0x38fdc8(0x11a)]=setInterval(()=>{const _0x5936e2=_0x38fdc8;let _0x18bf51;for(const _0x325f20 in _0x3a58cf){const _0x469503=_0x325f20,_0x445399=_0x3a58cf[_0x469503];if(_0x5936e2(0xf4)==_0x445399||_0x5936e2(0xe1)==_0x445399||_0x5936e2(0xec)==_0x445399||_0x5936e2(0x113)==_0x445399||_0x5936e2(0xf5)==_0x445399||_0x5936e2(0x119)==_0x445399||_0x5936e2(0xf8)==_0x445399||_0x5936e2(0xfa)==_0x445399){delete _0x3a58cf[_0x469503],_0x18bf51=_0x445399,clearInterval(this[_0x5936e2(0x11a)]),this[_0x5936e2(0x11a)]=void 0x0;break;}}_0x5936e2(0xe1)==_0x18bf51&&_0x3a58cf[_0x5936e2(0xdd)](_0x5936e2(0x112)),_0x5936e2(0xec)==_0x18bf51&&_0x3a58cf[_0x5936e2(0xdd)](_0x5936e2(0xe2)),_0x5936e2(0x113)==_0x18bf51&&_0x3a58cf[_0x5936e2(0xdd)](_0x5936e2(0xf2)),_0x5936e2(0xf5)==_0x18bf51&&_0x3a58cf[_0x5936e2(0xdd)](_0x5936e2(0xef),_0x5936e2(0xe9)),_0x5936e2(0x119)==_0x18bf51&&_0x3a58cf[_0x5936e2(0xdd)](_0x5936e2(0x10f)),_0x5936e2(0xf8)==_0x18bf51&&_0x3a58cf[_0x5936e2(0xdd)](_0x5936e2(0xf0)),_0x5936e2(0xfa)==_0x18bf51&&_0x3a58cf[_0x5936e2(0xdd)](_0x5936e2(0x111));},0x3e8);}[_0xdb1892(0xf9)](){const _0x2d40d4=_0xdb1892,{editor:_0x23e143}=this,_0x28d61e=_0x23e143[_0x2d40d4(0x108)][_0x2d40d4(0xf1)](_0x2d40d4(0xda));if(!_0x28d61e)return;const _0x28f3da=this[_0x2d40d4(0x102)](_0x23e143[_0x2d40d4(0x106)][_0x2d40d4(0xf1)](_0x2d40d4(0xe7)))[_0x2d40d4(0x11e)]((_0xd01018,_0x4537f1)=>{const _0x5bfec2=_0x2d40d4,_0x106595=this[_0x5bfec2(0xed)](_0x4537f1[_0x5bfec2(0x110)]);return _0xd01018[_0x106595]||(_0xd01018[_0x106595]=[]),_0xd01018[_0x106595][_0x5bfec2(0xe4)](_0x4537f1),_0xd01018;},{});_0x23e143[_0x2d40d4(0xfd)][_0x2d40d4(0x10a)](_0x2d40d4(0x11d))&&_0x23e143[_0x2d40d4(0x108)][_0x2d40d4(0xf1)](_0x2d40d4(0xda))&&Object[_0x2d40d4(0xdb)](_0x28f3da)[_0x2d40d4(0xea)](([_0x2fb7c3,_0x590eff])=>{const _0x183491=_0x2d40d4;_0x23e143[_0x183491(0xfd)][_0x183491(0xf1)](_0x183491(0x11d))[_0x183491(0x125)]({'name':_0x2fb7c3,'observable':()=>_0x28d61e,'buttonViewCreator':()=>this[_0x183491(0x10e)](_0x590eff),'formViewCreator':()=>this[_0x183491(0xee)](_0x590eff),'menuBarButtonViewCreator':()=>this[_0x183491(0x126)](_0x590eff),'override':_0x183491(0x10c)!==_0x2fb7c3});});}[_0xdb1892(0x116)](){const _0x55b517=_0xdb1892;super[_0x55b517(0x116)](),this[_0x55b517(0x11a)]&&clearInterval(this[_0x55b517(0x11a)]);}[_0xdb1892(0x102)](_0x33dacd){const _0x3ca672=_0xdb1892,{locale:_0xd5adcf}=this[_0x3ca672(0x118)];return _0x33dacd[_0x3ca672(0xd4)](_0x50c6a1=>{const _0x531baa=_0x3ca672,_0xb4df0=_0x40302d(_0xd5adcf,_0x50c6a1,_0x531baa(0xd6));switch(_0x50c6a1){case _0x59b130[_0x531baa(0x11c)]:return{'icon':_0x127329[_0x531baa(0x121)],'type':_0x59b130[_0x531baa(0x11c)],..._0xb4df0};case _0x59b130[_0x531baa(0xfb)]:return{'icon':_0x33b7fd,'type':_0x59b130[_0x531baa(0xfb)],..._0xb4df0};case _0x59b130[_0x531baa(0x100)]:return{'icon':_0x4fecac,'type':_0x59b130[_0x531baa(0x100)],..._0xb4df0};case _0x59b130[_0x531baa(0xd8)]:return{'icon':_0x4d28b9,'type':_0x59b130[_0x531baa(0xd8)],..._0xb4df0};case _0x59b130[_0x531baa(0x10b)]:return{'icon':_0x405dd4,'type':_0x59b130[_0x531baa(0x10b)],..._0xb4df0};case _0x59b130[_0x531baa(0xeb)]:return{'icon':_0x3a2413,'type':_0x59b130[_0x531baa(0xeb)],..._0xb4df0};case _0x59b130[_0x531baa(0x109)]:return{'icon':_0x18c2da,'type':_0x59b130[_0x531baa(0x109)],..._0xb4df0};}});}[_0xdb1892(0xed)](_0x44d3d2){const _0x569b52=_0xdb1892;switch(_0x44d3d2){case _0x59b130[_0x569b52(0x11c)]:return _0x569b52(0x122);case _0x59b130[_0x569b52(0xfb)]:return _0x569b52(0x107);default:return _0x569b52(0x10c);}}[_0xdb1892(0xf6)](_0x25f62d,_0x259a24){const _0x4a28bc=_0xdb1892,_0x22813e=this[_0x4a28bc(0x118)],_0x9b3fb9=new _0x25f62d(_0x22813e[_0x4a28bc(0x114)]),_0x25b68b=_0x22813e[_0x4a28bc(0x108)][_0x4a28bc(0xf1)](_0x4a28bc(0xda));return _0x9b3fb9[_0x4a28bc(0x104)](_0x4a28bc(0x10d))['to'](_0x25b68b),_0x9b3fb9['on'](_0x4a28bc(0xf7),()=>{const _0x4ec54c=_0x4a28bc;_0x25b68b[_0x4ec54c(0xf7)](_0x259a24);}),_0x9b3fb9;}[_0xdb1892(0x10e)](_0x797df8){const _0x1552fc=_0xdb1892,{locale:_0xbda21a}=this[_0x1552fc(0x118)],_0x342664=this[_0x1552fc(0x118)][_0x1552fc(0xfd)][_0x1552fc(0xf1)](_0x1552fc(0x11d)),_0x2e91ea=_0x797df8[0x0],_0x4a4a7d=this[_0x1552fc(0xf6)](_0x14adc7,_0x2e91ea[_0x1552fc(0x110)]);return _0x4a4a7d[_0x1552fc(0x115)]=_0x2e91ea[_0x1552fc(0x115)],_0x4a4a7d[_0x1552fc(0x104)](_0x1552fc(0xe6))['to'](_0x342664,_0x1552fc(0x123),_0x4d3423=>_0x40302d(_0xbda21a,_0x2e91ea[_0x1552fc(0x110)],_0x4d3423?_0x1552fc(0x120):_0x1552fc(0xd6))[_0x1552fc(0xff)]),_0x4a4a7d[_0x1552fc(0xde)]=!0x0,_0x4a4a7d;}[_0xdb1892(0xee)](_0x70f3ce){const _0x50a569=_0xdb1892,{locale:_0x1562bf}=this[_0x50a569(0x118)],_0x82ae98=this[_0x50a569(0x118)][_0x50a569(0xfd)][_0x50a569(0xf1)](_0x50a569(0x11d));return _0x70f3ce[_0x50a569(0xd4)](_0x5a8d6f=>{const _0x2cea7d=_0x50a569,_0x4106ae=this[_0x2cea7d(0xf6)](_0x14adc7,_0x5a8d6f[_0x2cea7d(0x110)]);return _0x4106ae[_0x2cea7d(0x11b)]=!0x0,_0x4106ae[_0x2cea7d(0x115)]=_0x5a8d6f[_0x2cea7d(0x115)],_0x4106ae[_0x2cea7d(0x104)](_0x2cea7d(0xe6))['to'](_0x82ae98,_0x2cea7d(0x123),_0xcc779e=>_0x40302d(_0x1562bf,_0x5a8d6f[_0x2cea7d(0x110)],_0xcc779e?_0x2cea7d(0x120):_0x2cea7d(0xd6))[_0x2cea7d(0xff)]),_0x4106ae;});}[_0xdb1892(0x126)](_0x3ffcfd){const _0x36acac=_0xdb1892;return _0x3ffcfd[_0x36acac(0xd4)](_0x3e6a16=>{const _0x2236d3=_0x36acac,_0xfc5b7=this[_0x2236d3(0xf6)](_0x49be31,_0x3e6a16[_0x2236d3(0x110)]);return _0xfc5b7[_0x2236d3(0x115)]=_0x3e6a16[_0x2236d3(0x115)],_0xfc5b7[_0x2236d3(0xe6)]=_0x3e6a16[_0x2236d3(0xe5)],_0xfc5b7;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3c4dc4}from'ckeditor5/src/core.js';import{FileRepository as _0x3043f8}from'ckeditor5/src/upload.js';import _0x1d80cc from'./uploadcareediting.js';import _0x2a706a from'./utils/uploadutils.js';import{getImageUrls as _0x1f5c68}from'./utils/editingutils.js';export default class f extends _0x3c4dc4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3043f8,_0x1d80cc];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x31faf6=this['editor'];if(!!!_0x31faf6['config']['get']('uploadcare'))return;_0x31faf6['plugins']['get'](_0x3043f8)['createUploadAdapter']=_0x43721e=>new E(_0x43721e,_0x31faf6),_0x31faf6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x11aa54,{imageElement:_0x197a9d,data:_0x40fae4})=>{_0x31faf6['model']['change'](_0x465ca3=>{_0x465ca3['setAttribute']('uploadcareImageId',_0x40fae4['uploadcareImageId'],_0x197a9d);});});}}class E{constructor(_0x15e039,_0x4f47f1){this['loader']=_0x15e039,this['editor']=_0x4f47f1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x8b703d=this['editor']['config']['get']('uploadcare.pubkey'),_0x1ad96b=await this['loader']['file'];return _0x2a706a['upload']({'file':_0x1ad96b,'publicKey':_0x8b703d,'signal':this['controller']['signal'],'onProgress':_0x27aa87=>{_0x27aa87&&_0x27aa87['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x27aa87['value']);}})['then'](async _0x315282=>{const {imageFallbackUrl:_0xf1b907,imageSources:_0x9ea63b}=_0x1f5c68(_0x315282['cdnUrl'],_0x315282['imageInfo']['width']);return{'uploadcareImageId':_0x315282['uuid'],'default':_0xf1b907,'sources':_0x9ea63b};})['catch'](()=>{const _0x176777=t('Cannot\x20upload\x20file:')+('\x20'+_0x1ad96b['name']+'.');return Promise['reject'](_0x176777);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x3677f8}from'../uploadcareconfig.js';export function getTranslation(_0x3b47e4,_0x441e89,_0x10835e){const t=_0x3b47e4['t'],_0x2da65e=_0x3b47e4['t'];switch(_0x441e89){case _0x3677f8['Local']:return{'text':_0x2da65e('Insert'===_0x10835e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2da65e('From\x20computer')};case _0x3677f8['URL']:return{'text':'Insert'===_0x10835e?_0x2da65e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2da65e('Via\x20URL')};case _0x3677f8['Dropbox']:return{'text':t('Insert'===_0x10835e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3677f8['Facebook']:return{'text':t('Insert'===_0x10835e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3677f8['GDrive']:return{'text':t('Insert'===_0x10835e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3677f8['GPhotos']:return{'text':t('Insert'===_0x10835e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3677f8['OneDrive']:return{'text':t('Insert'===_0x10835e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x441e89;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4df61e=_0x1fa4;(function(_0x226155,_0x3a9c0b){var _0x1519e0=_0x1fa4,_0x1525fd=_0x226155();while(!![]){try{var _0x1977d4=-parseInt(_0x1519e0(0x19e))/0x1+-parseInt(_0x1519e0(0x198))/0x2+-parseInt(_0x1519e0(0x1a8))/0x3+parseInt(_0x1519e0(0x1a7))/0x4*(-parseInt(_0x1519e0(0x1a2))/0x5)+-parseInt(_0x1519e0(0x1a3))/0x6*(parseInt(_0x1519e0(0x19a))/0x7)+-parseInt(_0x1519e0(0x1aa))/0x8*(parseInt(_0x1519e0(0x1a5))/0x9)+parseInt(_0x1519e0(0x19c))/0xa*(parseInt(_0x1519e0(0x1a0))/0xb);if(_0x1977d4===_0x3a9c0b)break;else _0x1525fd['push'](_0x1525fd['shift']());}catch(_0x288844){_0x1525fd['push'](_0x1525fd['shift']());}}}(_0x12a8,0x72571));function _0x12a8(){var _0xa4c7c5=['35104XJbrUq','createCollection','2934591btlbuW','bindTemplate','27430kpFoAt','18pgFoCe','getFocusableElement','7582347pFKgkG','forwardCycle','104xuLDoy','2770701HMymuN','fire','8LrxFYH','div','318664koYLbM','focusTracker','224819IEdnZG','true','100enyGIc','focusCycler'];_0x12a8=function(){return _0xa4c7c5;};return _0x12a8();}import{FocusTracker as _0x33acc8}from'ckeditor5/src/utils.js';import{View as _0x1a4b1,FocusCycler as _0x47b3d0}from'ckeditor5/src/ui.js';function _0x1fa4(_0xa17bd8,_0x3ee42a){var _0x12a84c=_0x12a8();return _0x1fa4=function(_0x1fa49e,_0x5a5166){_0x1fa49e=_0x1fa49e-0x198;var _0x5d5202=_0x12a84c[_0x1fa49e];return _0x5d5202;},_0x1fa4(_0xa17bd8,_0x3ee42a);}import'../../theme/uploadcare-form.css';export default class q extends _0x1a4b1{constructor(_0x42bb84){var _0x5688c3=_0x1fa4;super(_0x42bb84),this[_0x5688c3(0x199)]=new _0x33acc8(),this[_0x5688c3(0x19d)]=new _0x47b3d0({'focusables':this[_0x5688c3(0x19f)](),'focusTracker':this[_0x5688c3(0x199)]});}[_0x4df61e(0x1a4)](){var _0x279253=_0x4df61e;return{'tag':_0x279253(0x1ab),'attributes':{'aria-hidden':_0x279253(0x19b),'tabindex':'0'},'on':{'focus':this[_0x279253(0x1a1)]['to'](()=>{var _0x1f2afa=_0x279253;this[_0x1f2afa(0x19d)][_0x1f2afa(0x1a9)](_0x1f2afa(0x1a6));})}};}}
|