@ckeditor/ckeditor5-uploadcare 45.0.0-alpha.5 → 45.0.0-alpha.7
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/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- 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.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/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2cff78=_0x168c;(function(_0x1eea44,_0x465663){const _0x4a1e77=_0x168c,_0x51e416=_0x1eea44();while(!![]){try{const _0x4fcc38=parseInt(_0x4a1e77(0x10a))/0x1*(-parseInt(_0x4a1e77(0x10e))/0x2)+-parseInt(_0x4a1e77(0x118))/0x3+-parseInt(_0x4a1e77(0xfa))/0x4*(-parseInt(_0x4a1e77(0x127))/0x5)+-parseInt(_0x4a1e77(0xfb))/0x6*(-parseInt(_0x4a1e77(0x12d))/0x7)+-parseInt(_0x4a1e77(0x124))/0x8+parseInt(_0x4a1e77(0x11f))/0x9*(-parseInt(_0x4a1e77(0x10d))/0xa)+parseInt(_0x4a1e77(0x11a))/0xb;if(_0x4fcc38===_0x465663)break;else _0x51e416['push'](_0x51e416['shift']());}catch(_0x3483b0){_0x51e416['push'](_0x51e416['shift']());}}}(_0x3926,0x5ff66));import{Plugin as _0x2553f6}from'ckeditor5/src/core.js';import{Dialog as _0x52473c}from'ckeditor5/src/ui.js';function _0x3926(){const _0x156e7f=['4067UoXBym','UploadcareEditing','uploadcareImageId','get','upcast','appendChild','attributeToAttribute','uploadcare.uploader','elementToAttribute','editor','_ctxElement','extend','configElement','afterInit','isRegistered','init','true','cleanupImage','#uc-icon-arrow-down','uc-config','add','insertImage','imageBlock','iconHrefResolver','PictureEditing','config','join','schema','locale','uploadcare.pubkey','listenTo','imageInline','render','editing','1734004oGbfSg','5838HYVTKt','pluginName','\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','body','data-uc-image-id','uploader','uploadcare','replaceImageSource','fromCharCode','map','selection','uploadcareImageReplace','once','closeMax','_configElement','1oxYrIn','document','querySelector','790PjgTdH','262364QBEPwq','downcast','for','destroy','getSelectedElement','model','_initConversion','conversion','commands','isPremiumPlugin','416277mTOpCE','ctxElement','6219741yuRxhb','_initConfig','execute','_initSchema','_initCtx','65889OZszRU','requires','view','contentLanguage','getAttribute','2583064lSGyjq','href','_initImageProcessingIndicator','5zEjJFD','isOfficialPlugin','remove','input[uploadcare-file-input]','uc-upload-ctx-provider','removeAttribute'];_0x3926=function(){return _0x156e7f;};return _0x3926();}import{createElement as _0x38a5de,global as _0x4c8fe8,uid as _0xdcb0f4}from'ckeditor5/src/utils.js';import _0x4d7005 from'./uploadcarecommand.js';import _0x252243 from'./uploadcareuploadadapter.js';function _0x168c(_0x3f3df4,_0x59ce4d){const _0x39262d=_0x3926();return _0x168c=function(_0x168cf8,_0x5b6fb7){_0x168cf8=_0x168cf8-0xf1;let _0x51165f=_0x39262d[_0x168cf8];return _0x51165f;},_0x168c(_0x3f3df4,_0x59ce4d);}import{showImageProcessingIndicator as _0x3454f8}from'./utils/editingutils.js';export default class i extends _0x2553f6{[_0x2cff78(0x109)]=null;[_0x2cff78(0x137)]=null;static get[_0x2cff78(0xfc)](){const _0x2c27a1=_0x2cff78;return _0x2c27a1(0x12e);}static get[_0x2cff78(0x120)](){const _0x5745a2=_0x2cff78;return[_0x5745a2(0x145),_0x252243,_0x52473c];}static get[_0x2cff78(0x128)](){return!0x0;}static get[_0x2cff78(0x117)](){return!0x0;}get[_0x2cff78(0x139)](){const _0x248405=_0x2cff78;return this[_0x248405(0x109)];}get[_0x2cff78(0x119)](){const _0x1fdbd4=_0x2cff78;return this[_0x1fdbd4(0x137)];}[_0x2cff78(0x13c)](){const _0xd837a9=_0x2cff78,_0x3003ea=this[_0xd837a9(0x136)];_0x3003ea[_0xd837a9(0x116)][_0xd837a9(0x141)](_0xd837a9(0x101),new _0x4d7005(_0x3003ea));}[_0x2cff78(0x13a)](){const _0x5a28f6=_0x2cff78;this[_0x5a28f6(0x11d)](),this[_0x5a28f6(0x114)](),this[_0x5a28f6(0x11b)](),this[_0x5a28f6(0x11e)](),this[_0x5a28f6(0x126)](),this[_0x5a28f6(0xf6)](this[_0x5a28f6(0x136)],_0x5a28f6(0x111),()=>{const _0x5572ac=_0x5a28f6;this[_0x5572ac(0x109)]&&(this[_0x5572ac(0x109)][_0x5572ac(0x129)](),this[_0x5572ac(0x109)]=null),this[_0x5572ac(0x137)]&&(this[_0x5572ac(0x137)][_0x5572ac(0x129)](),this[_0x5572ac(0x137)]=null);const _0x460d32=_0x4c8fe8[_0x5572ac(0x10b)][_0x5572ac(0x10c)](_0x5572ac(0x12a));_0x460d32&&_0x460d32[_0x5572ac(0x129)]();}),async function(_0x483ebd){const _0x8ad683=_0x2ea7aa([0x57,0x31,0x76,0x68,0x4f,0x7a,0x67,0x78,0x6d,0x4b,0x35,0x47,0x71,0x30,0x62,0x42,0x4e,0x5a,0x39,0x50,0x69,0x73,0x45,0x61,0x52,0x48,0x38,0x54,0x65,0x36,0x64,0x63,0x44,0x6f,0x74,0x79,0x75,0x51,0x4a,0x43,0x33,0x49,0x66,0x77,0x55,0x46,0x4c,0x56,0x37,0x6a,0x6e,0x34,0x70,0x58,0x4d,0x72,0x59,0x41,0x32,0x53,0x6b,0x6c]),_0x4c6199=0x598afa2c,_0x29ee92=0x598d999c^_0x4c6199,_0x37dd04=window[_0x2ea7aa([0x44,0x61,0x74,0x65])][_0x2ea7aa([0x6e,0x6f,0x77])](),_0x3550db=_0x483ebd[_0x2ea7aa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x372511=new window[(_0x2ea7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d02ca=>{_0x3550db[_0x2ea7aa([0x6f,0x6e,0x63,0x65])](_0x2ea7aa([0x72,0x65,0x61,0x64,0x79]),_0x1d02ca);}),_0x4b5afc={[_0x2ea7aa([0x6b,0x74,0x79])]:_0x2ea7aa([0x45,0x43]),[_0x2ea7aa([0x75,0x73,0x65])]:_0x2ea7aa([0x73,0x69,0x67]),[_0x2ea7aa([0x63,0x72,0x76])]:_0x2ea7aa([0x50,0x2d,0x32,0x35,0x36]),[_0x2ea7aa([0x78])]:_0x2ea7aa([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]),[_0x2ea7aa([0x79])]:_0x2ea7aa([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]),[_0x2ea7aa([0x61,0x6c,0x67])]:_0x2ea7aa([0x45,0x53,0x32,0x35,0x36])},_0x48e200=_0x3550db[_0x2ea7aa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ea7aa([0x67,0x65,0x74])](_0x2ea7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b7784(){let _0x1c6012,_0x5c2821=null,_0x106807=null;try{if(_0x48e200==_0x2ea7aa([0x47,0x50,0x4c]))return _0x2ea7aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c6012=_0x269601(),!_0x1c6012)return _0x2ea7aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c6012[_0x2ea7aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x106807=_0x319572(_0x1c6012[_0x2ea7aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c6012[_0x2ea7aa([0x6a,0x74,0x69])])),await _0x23dd46()?_0x32e601()?_0x21204d()?_0x2ea7aa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58eef0()?(_0x1c6012[_0x2ea7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ea7aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c2821=_0x22570d(_0x2ea7aa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c6012[_0x2ea7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ea7aa([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c2821=_0x22570d(_0x2ea7aa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14d5a0()):_0x2ea7aa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ea7aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ea7aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x25305e){return _0x2ea7aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x21204d(){const _0xc19ce7=[_0x2ea7aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ea7aa([0x74,0x72,0x69,0x61,0x6c])][_0x2ea7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c6012[_0x2ea7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x37dd04/0x3e8:0xe10*_0x29ee92;return _0x1c6012[_0x2ea7aa([0x65,0x78,0x70])]<_0xc19ce7;}function _0x32e601(){const _0x5c95cc=_0x1c6012[_0x2ea7aa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5c95cc&&(!!_0x5c95cc[_0x2ea7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ea7aa([0x2a]))||!!_0x5c95cc[_0x2ea7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ea7aa([0x55,0x50,0x4c,0x43])));}function _0x58eef0(){const _0x37bb89=_0x168c,_0xea36f9=_0x1c6012[_0x2ea7aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xea36f9||0x0==_0xea36f9[_0x2ea7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x341724}=new URL(window[_0x2ea7aa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x37bb89(0x125)]);if(_0xea36f9[_0x2ea7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341724))return!0x0;const _0x3e8e4f=_0x341724[_0x2ea7aa([0x73,0x70,0x6c,0x69,0x74])](_0x2ea7aa([0x2e]));return _0xea36f9[_0x2ea7aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32355f=>_0x32355f[_0x2ea7aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ea7aa([0x2a])))[_0x2ea7aa([0x6d,0x61,0x70])](_0x595f09=>_0x595f09[_0x2ea7aa([0x73,0x70,0x6c,0x69,0x74])](_0x2ea7aa([0x2e])))[_0x2ea7aa([0x73,0x6f,0x6d,0x65])](_0x3eb5a1=>_0x3e8e4f[_0x2ea7aa([0x65,0x76,0x65,0x72,0x79])]((_0x26bebd,_0x172f51)=>_0x3eb5a1[_0x172f51]===_0x26bebd||_0x3eb5a1[_0x172f51]===_0x2ea7aa([0x2a])));}function _0x14d5a0(){return _0x5c2821&&_0x106807?new window[(_0x2ea7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b930e,_0x3abac1)=>{_0x5c2821[_0x2ea7aa([0x74,0x68,0x65,0x6e])](_0x1b930e,_0x3abac1),_0x106807[_0x2ea7aa([0x74,0x68,0x65,0x6e])](_0x5b9ac0=>{_0x5b9ac0!=_0x2ea7aa([0x56,0x61,0x6c,0x69,0x64])&&_0x1b930e(_0x5b9ac0);},_0x3abac1);}):_0x5c2821||_0x106807||_0x2ea7aa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x319572(_0x32003c,_0x23dcd6){return new window[(_0x2ea7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f983c=>{if(_0x2befdc())return _0x5f983c(_0x2ea7aa([0x56,0x61,0x6c,0x69,0x64]));_0x5c9e87(),_0x3550db[_0x2ea7aa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ea7aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c8b0b=!0x1;const _0x1a62a5=_0xdcb0f4();function _0x564745(_0x3d40){return!!_0x3d40&&(typeof _0x3d40===_0x2ea7aa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d40===_0x2ea7aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d40[_0x2ea7aa([0x74,0x68,0x65,0x6e])]===_0x2ea7aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d40[_0x2ea7aa([0x63,0x61,0x74,0x63,0x68])]===_0x2ea7aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4273ef(_0x52609d){_0x24c0d0(_0x52609d)[_0x2ea7aa([0x74,0x68,0x65,0x6e])](_0x134a33=>{if(!_0x134a33||_0x134a33[_0x2ea7aa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ea7aa([0x6f,0x6b]))return _0x2ea7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34380a(_0x54f13c(_0x1a62a5+_0x23dcd6))!=_0x134a33[_0x2ea7aa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ea7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ea7aa([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ea7aa([0x74,0x68,0x65,0x6e])](_0xde8791=>(_0x3e8eaf(),_0xde8791),()=>{const _0xfc28d6=_0x3be22f();return null==_0xfc28d6?(_0x3e8eaf(),_0x2ea7aa([0x56,0x61,0x6c,0x69,0x64])):_0x2ea7aa(_0x37dd04-_0xfc28d6>(0x7d867e2c^_0x4c6199)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ea7aa([0x74,0x68,0x65,0x6e])](_0x5f983c)[_0x2ea7aa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f983c(_0x2ea7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1fc54c=0x59bc14ac^_0x4c6199;function _0x3e8eaf(){const _0x580321=_0x2ea7aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x34380a(_0x54f13c(_0x32003c)),_0x13ddfc=_0x3e7d83(_0x34380a(window[_0x2ea7aa([0x4d,0x61,0x74,0x68])][_0x2ea7aa([0x63,0x65,0x69,0x6c])](_0x37dd04/_0x1fc54c)));window[_0x2ea7aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ea7aa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x580321,_0x13ddfc);}function _0x3be22f(){const _0x57b6b2=_0x2ea7aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x34380a(_0x54f13c(_0x32003c)),_0x3534d8=window[_0x2ea7aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ea7aa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57b6b2);return _0x3534d8?window[_0x2ea7aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e7d83(_0x3534d8),0x10)*_0x1fc54c:null;}function _0x24c0d0(_0x19f709){return new window[(_0x2ea7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x133796,_0x3e985e)=>{_0x19f709[_0x2ea7aa([0x74,0x68,0x65,0x6e])](_0x133796,_0x3e985e),window[_0x2ea7aa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e985e,0x598b2eec^_0x4c6199);});}}_0x3550db[_0x2ea7aa([0x6f,0x6e])](_0x2ea7aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x435537,_0x4b7a5d)=>{if(_0x4b7a5d[0x0]!=_0x32003c)return _0x5f983c(_0x2ea7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b7a5d[0x1]={..._0x4b7a5d[0x1],[_0x2ea7aa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a62a5};},{[_0x2ea7aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ea7aa([0x68,0x69,0x67,0x68])}),_0x3550db[_0x2ea7aa([0x6f,0x6e])](_0x2ea7aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b3f5b=>{_0x564745(_0x5b3f5b[_0x2ea7aa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c8b0b=!0x0,_0x4273ef(_0x5b3f5b[_0x2ea7aa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ea7aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ea7aa([0x6c,0x6f,0x77])}),_0x372511[_0x2ea7aa([0x74,0x68,0x65,0x6e])](()=>{_0x4c8b0b||_0x5f983c(_0x2ea7aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2befdc(){return _0x3550db[_0x2ea7aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ea7aa([0x76,0x69,0x65,0x77])][_0x2ea7aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ea7aa([0x61,0x75,0x74,0x6f]);}function _0x5c9e87(){_0x3550db[_0x2ea7aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ea7aa([0x76,0x69,0x65,0x77])][_0x2ea7aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ea7aa([0x61,0x75,0x74,0x6f]);}}function _0x22570d(_0x3526d3){const _0x53f5fd=[new window[(_0x2ea7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x148304=>setTimeout(_0x148304,0x5983c4e0^_0x4c6199)),_0x372511[_0x2ea7aa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ea7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f907a=>{let _0x4e946b=0x0;_0x3550db[_0x2ea7aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ea7aa([0x6f,0x6e])](_0x2ea7aa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e2d52,_0x4e375a)=>{_0x4e375a[0x0][_0x2ea7aa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e946b++,_0x4e946b==(0x598afbd4^_0x4c6199)&&(_0x4f907a(),_0x1e2d52[_0x2ea7aa([0x6f,0x66,0x66])]());});}))];return window[_0x2ea7aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ea7aa([0x72,0x61,0x63,0x65])](_0x53f5fd)[_0x2ea7aa([0x74,0x68,0x65,0x6e])](()=>_0x3526d3);}async function _0x54f847(){await _0x372511,_0x3550db[_0x2ea7aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ea7aa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x365cd4,_0x3550db[_0x2ea7aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ea7aa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x365cd4,_0x3550db[_0x2ea7aa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ea7aa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17fbe3(_0x1332c1){const _0xb2ee28=_0x4cadc7();_0x3550db[_0xb2ee28]=_0x2ea7aa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1332c1,_0x1332c1!=_0x2ea7aa([0x56,0x61,0x6c,0x69,0x64])&&_0x54f847();}function _0x4cadc7(){const _0x1fd9d8=window[_0x2ea7aa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ea7aa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ea7aa([0x6e,0x6f,0x77])]())[_0x2ea7aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ea7aa([0x2e]),'');let _0x33a683=_0x2ea7aa([0x57]);for(let _0x2e96b0=0x0;_0x2e96b0<_0x1fd9d8[_0x2ea7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e96b0+=0x2){let _0x310b8c=window[_0x2ea7aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fd9d8[_0x2ea7aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e96b0,_0x2e96b0+0x2));_0x310b8c>=_0x8ad683[_0x2ea7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x310b8c-=_0x8ad683[_0x2ea7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x33a683+=_0x8ad683[_0x310b8c];}return _0x33a683;}function _0x269601(){const _0x2ed438=_0x48e200[_0x2ea7aa([0x73,0x70,0x6c,0x69,0x74])](_0x2ea7aa([0x2e]));if(0x3!=_0x2ed438[_0x2ea7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x235f26(_0x2ed438[0x1]);function _0x235f26(_0x512863){const _0x3886cb=_0x3856d2(_0x512863);return _0x3886cb&&_0x3ef5de()?_0x3886cb:null;function _0x3ef5de(){const _0x1c20d2=_0x3886cb[_0x2ea7aa([0x6a,0x74,0x69])],_0x26cc15=window[_0x2ea7aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c20d2[_0x2ea7aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c20d2[_0x2ea7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ce198={..._0x3886cb,[_0x2ea7aa([0x6a,0x74,0x69])]:_0x1c20d2[_0x2ea7aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1c20d2[_0x2ea7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ce198[_0x2ea7aa([0x76,0x63])],_0x54f13c(_0x4ce198)==_0x26cc15;}}}async function _0x23dd46(){let _0xf197a=!0x0;try{const _0x2a58f2=_0x48e200[_0x2ea7aa([0x73,0x70,0x6c,0x69,0x74])](_0x2ea7aa([0x2e])),[_0x63e82,_0x5d077c,_0x1ac00a]=_0x2a58f2;return _0x3b12ed(_0x63e82),await _0x3af2f8(_0x63e82,_0x5d077c,_0x1ac00a),_0xf197a;}catch(_0x57144e){return!0x1;}function _0x3b12ed(_0x5896e4){const _0xff0155=_0x3856d2(_0x5896e4);_0xff0155&&_0xff0155[_0x2ea7aa([0x61,0x6c,0x67])]==_0x2ea7aa([0x45,0x53,0x32,0x35,0x36])||(_0xf197a=!0x1);}async function _0x3af2f8(_0x5a89e8,_0x1593b0,_0x206642){const _0x93bc1c=window[_0x2ea7aa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ea7aa([0x66,0x72,0x6f,0x6d])](_0x42b7b7(_0x206642),_0x1ef8fe=>_0x1ef8fe[_0x2ea7aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46b009=new window[(_0x2ea7aa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ea7aa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a89e8+_0x2ea7aa([0x2e])+_0x1593b0),_0x214c4a=window[_0x2ea7aa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ea7aa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x214c4a)return;const _0x5cfdd2=await _0x214c4a[_0x2ea7aa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ea7aa([0x6a,0x77,0x6b]),_0x4b5afc,{[_0x2ea7aa([0x6e,0x61,0x6d,0x65])]:_0x2ea7aa([0x45,0x43,0x44,0x53,0x41]),[_0x2ea7aa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ea7aa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ea7aa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x214c4a[_0x2ea7aa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ea7aa([0x6e,0x61,0x6d,0x65])]:_0x2ea7aa([0x45,0x43,0x44,0x53,0x41]),[_0x2ea7aa([0x68,0x61,0x73,0x68])]:{[_0x2ea7aa([0x6e,0x61,0x6d,0x65])]:_0x2ea7aa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cfdd2,_0x93bc1c,_0x46b009)||(_0xf197a=!0x1);}}function _0x3856d2(_0x5e2d53){return _0x5e2d53[_0x2ea7aa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ea7aa([0x65,0x79]))?JSON[_0x2ea7aa([0x70,0x61,0x72,0x73,0x65])](_0x42b7b7(_0x5e2d53)):null;}function _0x42b7b7(_0x28d1bf){return window[_0x2ea7aa([0x61,0x74,0x6f,0x62])](_0x28d1bf[_0x2ea7aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ea7aa([0x2b]))[_0x2ea7aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ea7aa([0x2f])));}function _0x54f13c(_0x203632){let _0x44874f=0x1505;function _0x48e443(_0x1d923e){for(let _0x42c09e=0x0;_0x42c09e<_0x1d923e[_0x2ea7aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42c09e++){const _0x1e51c3=_0x1d923e[_0x2ea7aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42c09e);_0x44874f=(_0x44874f<<0x5)+_0x44874f+_0x1e51c3,_0x44874f&=_0x44874f;}}function _0x3e9443(_0x810f55){Array[_0x2ea7aa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x810f55)?_0x810f55[_0x2ea7aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e9443):_0x810f55&&typeof _0x810f55==_0x2ea7aa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ea7aa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x810f55)[_0x2ea7aa([0x73,0x6f,0x72,0x74])]()[_0x2ea7aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53a77a,_0x245efd])=>{_0x48e443(_0x53a77a),_0x3e9443(_0x245efd);}):_0x48e443(window[_0x2ea7aa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x810f55));}return _0x3e9443(_0x203632),_0x44874f>>>0x0;}function _0x34380a(_0x222697){return _0x222697[_0x2ea7aa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ea7aa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ea7aa([0x30]));}function _0x3e7d83(_0xc11ce3){return _0xc11ce3[_0x2ea7aa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ea7aa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ea7aa([0x6a,0x6f,0x69,0x6e])]('');}function _0x365cd4(){}function _0x2ea7aa(_0x5ad1f9){const _0x356761=_0x168c;return _0x5ad1f9[_0x356761(0x104)](_0x4d96d2=>String[_0x356761(0x103)](_0x4d96d2))[_0x356761(0xf2)]('');}_0x17fbe3(await _0x3b7784());}(this);}[_0x2cff78(0x11d)](){const _0x4dc161=_0x2cff78,_0x4bd5ad=this[_0x4dc161(0x136)][_0x4dc161(0x113)][_0x4dc161(0xf3)];_0x4bd5ad[_0x4dc161(0x13b)](_0x4dc161(0x143))&&_0x4bd5ad[_0x4dc161(0x138)](_0x4dc161(0x143),{'allowAttributes':[_0x4dc161(0x12f)]}),_0x4bd5ad[_0x4dc161(0x13b)](_0x4dc161(0xf7))&&_0x4bd5ad[_0x4dc161(0x138)](_0x4dc161(0xf7),{'allowAttributes':[_0x4dc161(0x12f)]});}[_0x2cff78(0x114)](){const _0x515f37=_0x2cff78,_0x4bfac5=this[_0x515f37(0x136)];_0x4bfac5[_0x515f37(0x115)][_0x515f37(0x110)](_0x515f37(0x10f))[_0x515f37(0x133)]({'model':_0x515f37(0x12f),'view':_0x515f37(0xff)}),_0x4bfac5[_0x515f37(0x115)][_0x515f37(0x110)](_0x515f37(0x131))[_0x515f37(0x135)]({'model':{'key':_0x515f37(0x12f),'value':_0x538af0=>_0x538af0[_0x515f37(0x123)](_0x515f37(0xff))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4f7c02=_0x4bfac5[_0x515f37(0x116)][_0x515f37(0x130)](_0x515f37(0x102));_0x4f7c02&&this[_0x515f37(0xf6)](_0x4f7c02,_0x515f37(0x13e),(_0x4bb7ec,[_0x3d84bb,_0x2d1e12])=>{const _0x4ec72e=_0x515f37;_0x3d84bb[_0x4ec72e(0x12c)](_0x4ec72e(0x12f),_0x2d1e12);});}[_0x2cff78(0x11b)](){const _0x533d46=_0x2cff78,_0xc64793=this[_0x533d46(0x136)][_0x533d46(0xf1)][_0x533d46(0x130)](_0x533d46(0x134))||{},_0x3b13d4=this[_0x533d46(0x136)][_0x533d46(0xf1)][_0x533d46(0x130)](_0x533d46(0xf5))||'';this[_0x533d46(0x109)]=_0x38a5de(_0x4c8fe8[_0x533d46(0x10b)],_0x533d46(0x140),{..._0xc64793,'pubkey':_0x3b13d4,'ctx-name':_0x533d46(0x100),'sourceList':'','imgOnly':_0x533d46(0x13d),'removeCopyright':_0x533d46(0x13d),'localeName':this[_0x533d46(0x136)][_0x533d46(0xf4)][_0x533d46(0x122)],'externalSourcesEmbedCss':_0x533d46(0xfd)}),this[_0x533d46(0x109)][_0x533d46(0x144)]=_0x6289bf=>{const _0xea7d1=_0x533d46;if(_0xea7d1(0x108)==_0x6289bf)return _0xea7d1(0x13f);},_0x4c8fe8[_0x533d46(0x10b)][_0x533d46(0xfe)][_0x533d46(0x132)](this[_0x533d46(0x109)]);}[_0x2cff78(0x11e)](){const _0x3194f5=_0x2cff78;this[_0x3194f5(0x137)]=_0x38a5de(_0x4c8fe8[_0x3194f5(0x10b)],_0x3194f5(0x12b),{'ctx-name':_0x3194f5(0x100)}),_0x4c8fe8[_0x3194f5(0x10b)][_0x3194f5(0xfe)][_0x3194f5(0x132)](this[_0x3194f5(0x137)]);}[_0x2cff78(0x126)](){const _0x52d432=_0x2cff78,_0x5a1f6d=this[_0x52d432(0x136)][_0x52d432(0x116)][_0x52d432(0x130)](_0x52d432(0x142));_0x5a1f6d&&this[_0x52d432(0xf6)](_0x5a1f6d,_0x52d432(0x11c),()=>{const _0x455468=_0x52d432,_0x25c0cb=this[_0x455468(0x136)][_0x455468(0x113)][_0x455468(0x10b)][_0x455468(0x105)][_0x455468(0x112)]();_0x25c0cb&&_0x25c0cb[_0x455468(0x123)](_0x455468(0x12f))&&this[_0x455468(0x136)][_0x455468(0xf9)][_0x455468(0x121)][_0x455468(0x107)](_0x455468(0xf8),()=>{const _0xaabc5d=_0x455468;_0x3454f8(this[_0xaabc5d(0x136)],_0x25c0cb);});});const _0x1e666e=this[_0x52d432(0x136)][_0x52d432(0x116)][_0x52d432(0x130)](_0x52d432(0x106));_0x1e666e&&this[_0x52d432(0xf6)](_0x1e666e,_0x52d432(0x11c),()=>{const _0x18c95c=_0x52d432,_0x4e21d0=this[_0x18c95c(0x136)][_0x18c95c(0x113)][_0x18c95c(0x10b)][_0x18c95c(0x105)][_0x18c95c(0x112)]();_0x4e21d0&&_0x4e21d0[_0x18c95c(0x123)](_0x18c95c(0x12f))&&this[_0x18c95c(0x136)][_0x18c95c(0xf9)][_0x18c95c(0x121)][_0x18c95c(0x107)](_0x18c95c(0xf8),()=>{const _0x2ca051=_0x18c95c;_0x3454f8(this[_0x2ca051(0x136)],_0x4e21d0);});});}}
|
|
23
|
+
const _0x7456ae=_0x2a39;function _0x2a39(_0x5966fa,_0x4806d9){const _0x1dd21f=_0x1dd2();return _0x2a39=function(_0x2a3988,_0x54894c){_0x2a3988=_0x2a3988-0x1dd;let _0x7d14ac=_0x1dd21f[_0x2a3988];return _0x7d14ac;},_0x2a39(_0x5966fa,_0x4806d9);}(function(_0x2b4b4c,_0x10a6c2){const _0x31d335=_0x2a39,_0xed5994=_0x2b4b4c();while(!![]){try{const _0x120a43=-parseInt(_0x31d335(0x209))/0x1*(parseInt(_0x31d335(0x1e8))/0x2)+parseInt(_0x31d335(0x216))/0x3*(parseInt(_0x31d335(0x211))/0x4)+-parseInt(_0x31d335(0x1e6))/0x5+parseInt(_0x31d335(0x1e3))/0x6+-parseInt(_0x31d335(0x220))/0x7+parseInt(_0x31d335(0x1e2))/0x8+parseInt(_0x31d335(0x224))/0x9*(parseInt(_0x31d335(0x201))/0xa);if(_0x120a43===_0x10a6c2)break;else _0xed5994['push'](_0xed5994['shift']());}catch(_0x3ba758){_0xed5994['push'](_0xed5994['shift']());}}}(_0x1dd2,0x2a52f));import{Plugin as _0x18ddfb}from'ckeditor5/src/core.js';import{Dialog as _0x5286bf}from'ckeditor5/src/ui.js';function _0x1dd2(){const _0x33b7ae=['document','1224424MZoqCa','1148598dULvsV','upcast','requires','1027300wMPpBf','render','2oaKCGf','ctxElement','config','schema','pluginName','get','conversion','elementToAttribute','join','listenTo','extend','uploadcare.pubkey','querySelector','uploadcareImageId','cleanupImage','selection','_initConversion','iconHrefResolver','uploadcareImageReplace','configElement','data-uc-image-id','PictureEditing','imageInline','afterInit','getSelectedElement','61180ZPIrKR','_ctxElement','init','true','contentLanguage','view','body','imageBlock','212987lWtewC','removeAttribute','fromCharCode','isPremiumPlugin','uploadcare','\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','map','_initSchema','323848AxvQfS','attributeToAttribute','for','commands','_initCtx','9YZooea','closeMax','href','getAttribute','uc-upload-ctx-provider','editing','isOfficialPlugin','uploadcare.uploader','editor','remove','782656vnJbYa','UploadcareEditing','downcast','uploader','171gbXAgv','model','uc-config','_initImageProcessingIndicator','insertImage','isRegistered','add','execute','once','locale','input[uploadcare-file-input]','_initConfig','_configElement','appendChild','#uc-icon-arrow-down','destroy','replaceImageSource'];_0x1dd2=function(){return _0x33b7ae;};return _0x1dd2();}import{createElement as _0x3c1283,global as _0x112af3,uid as _0x344e30}from'ckeditor5/src/utils.js';import _0x2b2d5b from'./uploadcarecommand.js';import _0x30f1fd from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1278e4}from'./utils/editingutils.js';export default class i extends _0x18ddfb{[_0x7456ae(0x230)]=null;[_0x7456ae(0x202)]=null;static get[_0x7456ae(0x1ec)](){const _0x46cb75=_0x7456ae;return _0x46cb75(0x221);}static get[_0x7456ae(0x1e5)](){const _0x424bdf=_0x7456ae;return[_0x424bdf(0x1fd),_0x30f1fd,_0x5286bf];}static get[_0x7456ae(0x21c)](){return!0x0;}static get[_0x7456ae(0x20c)](){return!0x0;}get[_0x7456ae(0x1fb)](){const _0x26bad7=_0x7456ae;return this[_0x26bad7(0x230)];}get[_0x7456ae(0x1e9)](){const _0x8eccfa=_0x7456ae;return this[_0x8eccfa(0x202)];}[_0x7456ae(0x203)](){const _0x2e3de0=_0x7456ae,_0x14c95d=this[_0x2e3de0(0x21e)];_0x14c95d[_0x2e3de0(0x214)][_0x2e3de0(0x22a)](_0x2e3de0(0x20d),new _0x2b2d5b(_0x14c95d));}[_0x7456ae(0x1ff)](){const _0x217d98=_0x7456ae;this[_0x217d98(0x210)](),this[_0x217d98(0x1f8)](),this[_0x217d98(0x22f)](),this[_0x217d98(0x215)](),this[_0x217d98(0x227)](),this[_0x217d98(0x1f1)](this[_0x217d98(0x21e)],_0x217d98(0x1df),()=>{const _0x4d0e32=_0x217d98;this[_0x4d0e32(0x230)]&&(this[_0x4d0e32(0x230)][_0x4d0e32(0x21f)](),this[_0x4d0e32(0x230)]=null),this[_0x4d0e32(0x202)]&&(this[_0x4d0e32(0x202)][_0x4d0e32(0x21f)](),this[_0x4d0e32(0x202)]=null);const _0x4773e1=_0x112af3[_0x4d0e32(0x1e1)][_0x4d0e32(0x1f4)](_0x4d0e32(0x22e));_0x4773e1&&_0x4773e1[_0x4d0e32(0x21f)]();}),async function(_0x5ee1b1){const _0xf366ee=_0xe086c6([0x48,0x4c,0x66,0x55,0x6c,0x4d,0x4e,0x33,0x34,0x7a,0x75,0x63,0x71,0x65,0x37,0x6f,0x4f,0x4a,0x4b,0x68,0x44,0x74,0x41,0x61,0x67,0x43,0x70,0x79,0x47,0x58,0x56,0x42,0x72,0x57,0x62,0x52,0x46,0x45,0x32,0x6e,0x36,0x35,0x5a,0x30,0x31,0x59,0x49,0x69,0x39,0x78,0x6b,0x73,0x6d,0x64,0x38,0x54,0x53,0x77,0x6a,0x51,0x76,0x50]),_0xa53408=0x6324f138,_0x2df84c=0x632392d8^_0xa53408,_0x2b97de=window[_0xe086c6([0x44,0x61,0x74,0x65])][_0xe086c6([0x6e,0x6f,0x77])](),_0x3d2b1a=_0x5ee1b1[_0xe086c6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54e66=new window[(_0xe086c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325a62=>{_0x3d2b1a[_0xe086c6([0x6f,0x6e,0x63,0x65])](_0xe086c6([0x72,0x65,0x61,0x64,0x79]),_0x325a62);}),_0x1d1e74={[_0xe086c6([0x6b,0x74,0x79])]:_0xe086c6([0x45,0x43]),[_0xe086c6([0x75,0x73,0x65])]:_0xe086c6([0x73,0x69,0x67]),[_0xe086c6([0x63,0x72,0x76])]:_0xe086c6([0x50,0x2d,0x32,0x35,0x36]),[_0xe086c6([0x78])]:_0xe086c6([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]),[_0xe086c6([0x79])]:_0xe086c6([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]),[_0xe086c6([0x61,0x6c,0x67])]:_0xe086c6([0x45,0x53,0x32,0x35,0x36])},_0x1b5b8d=_0x3d2b1a[_0xe086c6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe086c6([0x67,0x65,0x74])](_0xe086c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x55093c(){let _0x3033fd,_0x3e7501=null,_0x3e23b2=null;try{if(_0x1b5b8d==_0xe086c6([0x47,0x50,0x4c]))return _0xe086c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3033fd=_0x7458ff(),!_0x3033fd)return _0xe086c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3033fd[_0xe086c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e23b2=_0x192f60(_0x3033fd[_0xe086c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3033fd[_0xe086c6([0x6a,0x74,0x69])])),await _0x17028d()?_0x3fce68()?_0x3dfd74()?_0xe086c6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8a8c3c()?(_0x3033fd[_0xe086c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe086c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e7501=_0x2d2971(_0xe086c6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3033fd[_0xe086c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe086c6([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e7501=_0x2d2971(_0xe086c6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d2101()):_0xe086c6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe086c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe086c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2f124f){return _0xe086c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3dfd74(){const _0x3038ea=[_0xe086c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe086c6([0x74,0x72,0x69,0x61,0x6c])][_0xe086c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3033fd[_0xe086c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b97de/0x3e8:0xe10*_0x2df84c;return _0x3033fd[_0xe086c6([0x65,0x78,0x70])]<_0x3038ea;}function _0x3fce68(){const _0x2a4e94=_0x3033fd[_0xe086c6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a4e94&&(!!_0x2a4e94[_0xe086c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe086c6([0x2a]))||!!_0x2a4e94[_0xe086c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe086c6([0x55,0x50,0x4c,0x43])));}function _0x8a8c3c(){const _0x2b09a8=_0x2a39,_0xe70828=_0x3033fd[_0xe086c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe70828||0x0==_0xe70828[_0xe086c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6740be}=new URL(window[_0xe086c6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2b09a8(0x218)]);if(_0xe70828[_0xe086c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6740be))return!0x0;const _0x4e6ad1=_0x6740be[_0xe086c6([0x73,0x70,0x6c,0x69,0x74])](_0xe086c6([0x2e]));return _0xe70828[_0xe086c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3de65f=>_0x3de65f[_0xe086c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe086c6([0x2a])))[_0xe086c6([0x6d,0x61,0x70])](_0x259c25=>_0x259c25[_0xe086c6([0x73,0x70,0x6c,0x69,0x74])](_0xe086c6([0x2e])))[_0xe086c6([0x73,0x6f,0x6d,0x65])](_0xc26773=>_0x4e6ad1[_0xe086c6([0x65,0x76,0x65,0x72,0x79])]((_0xf1595f,_0x3aab53)=>_0xc26773[_0x3aab53]===_0xf1595f||_0xc26773[_0x3aab53]===_0xe086c6([0x2a])));}function _0x2d2101(){return _0x3e7501&&_0x3e23b2?new window[(_0xe086c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4757cc,_0x6ce991)=>{_0x3e7501[_0xe086c6([0x74,0x68,0x65,0x6e])](_0x4757cc,_0x6ce991),_0x3e23b2[_0xe086c6([0x74,0x68,0x65,0x6e])](_0x19b822=>{_0x19b822!=_0xe086c6([0x56,0x61,0x6c,0x69,0x64])&&_0x4757cc(_0x19b822);},_0x6ce991);}):_0x3e7501||_0x3e23b2||_0xe086c6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x192f60(_0x3e5fd2,_0x12aebd){return new window[(_0xe086c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x182863=>{if(_0x24d89a())return _0x182863(_0xe086c6([0x56,0x61,0x6c,0x69,0x64]));_0x595479(),_0x3d2b1a[_0xe086c6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe086c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x641ad9=!0x1;const _0x3d1e6d=_0x344e30();function _0x3f7868(_0x3ee118){return!!_0x3ee118&&(typeof _0x3ee118===_0xe086c6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ee118===_0xe086c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ee118[_0xe086c6([0x74,0x68,0x65,0x6e])]===_0xe086c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ee118[_0xe086c6([0x63,0x61,0x74,0x63,0x68])]===_0xe086c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e7384(_0x2e07b2){_0x8f9da7(_0x2e07b2)[_0xe086c6([0x74,0x68,0x65,0x6e])](_0x2bd959=>{if(!_0x2bd959||_0x2bd959[_0xe086c6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe086c6([0x6f,0x6b]))return _0xe086c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x26a425(_0x3e96c5(_0x3d1e6d+_0x12aebd))!=_0x2bd959[_0xe086c6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe086c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe086c6([0x56,0x61,0x6c,0x69,0x64]);})[_0xe086c6([0x74,0x68,0x65,0x6e])](_0x4c10c8=>(_0x3042f6(),_0x4c10c8),()=>{const _0x121c34=_0x37432e();return null==_0x121c34?(_0x3042f6(),_0xe086c6([0x56,0x61,0x6c,0x69,0x64])):_0xe086c6(_0x2b97de-_0x121c34>(0x47287538^_0xa53408)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe086c6([0x74,0x68,0x65,0x6e])](_0x182863)[_0xe086c6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x182863(_0xe086c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x171ea5=0x63121fb8^_0xa53408;function _0x3042f6(){const _0x21e09f=_0xe086c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x26a425(_0x3e96c5(_0x3e5fd2)),_0x1c4bb1=_0xc1551e(_0x26a425(window[_0xe086c6([0x4d,0x61,0x74,0x68])][_0xe086c6([0x63,0x65,0x69,0x6c])](_0x2b97de/_0x171ea5)));window[_0xe086c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe086c6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21e09f,_0x1c4bb1);}function _0x37432e(){const _0x1b1531=_0xe086c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x26a425(_0x3e96c5(_0x3e5fd2)),_0x22c751=window[_0xe086c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe086c6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b1531);return _0x22c751?window[_0xe086c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc1551e(_0x22c751),0x10)*_0x171ea5:null;}function _0x8f9da7(_0x118e91){return new window[(_0xe086c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47f88c,_0x1685aa)=>{_0x118e91[_0xe086c6([0x74,0x68,0x65,0x6e])](_0x47f88c,_0x1685aa),window[_0xe086c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1685aa,0x632525f8^_0xa53408);});}}_0x3d2b1a[_0xe086c6([0x6f,0x6e])](_0xe086c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43fc60,_0xe2ea80)=>{if(_0xe2ea80[0x0]!=_0x3e5fd2)return _0x182863(_0xe086c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe2ea80[0x1]={..._0xe2ea80[0x1],[_0xe086c6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d1e6d};},{[_0xe086c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe086c6([0x68,0x69,0x67,0x68])}),_0x3d2b1a[_0xe086c6([0x6f,0x6e])](_0xe086c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3fbbd9=>{_0x3f7868(_0x3fbbd9[_0xe086c6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x641ad9=!0x0,_0x2e7384(_0x3fbbd9[_0xe086c6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe086c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe086c6([0x6c,0x6f,0x77])}),_0x54e66[_0xe086c6([0x74,0x68,0x65,0x6e])](()=>{_0x641ad9||_0x182863(_0xe086c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24d89a(){return _0x3d2b1a[_0xe086c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe086c6([0x76,0x69,0x65,0x77])][_0xe086c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe086c6([0x61,0x75,0x74,0x6f]);}function _0x595479(){_0x3d2b1a[_0xe086c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe086c6([0x76,0x69,0x65,0x77])][_0xe086c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe086c6([0x61,0x75,0x74,0x6f]);}}function _0x2d2971(_0x150ca5){const _0x78eb42=[new window[(_0xe086c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15841a=>setTimeout(_0x15841a,0x632dcff4^_0xa53408)),_0x54e66[_0xe086c6([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe086c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4824d6=>{let _0x1998fd=0x0;_0x3d2b1a[_0xe086c6([0x6d,0x6f,0x64,0x65,0x6c])][_0xe086c6([0x6f,0x6e])](_0xe086c6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x268608,_0x218cb1)=>{_0x218cb1[0x0][_0xe086c6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1998fd++,_0x1998fd==(0x6324f0c0^_0xa53408)&&(_0x4824d6(),_0x268608[_0xe086c6([0x6f,0x66,0x66])]());});}))];return window[_0xe086c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe086c6([0x72,0x61,0x63,0x65])](_0x78eb42)[_0xe086c6([0x74,0x68,0x65,0x6e])](()=>_0x150ca5);}async function _0x4b275a(){await _0x54e66,_0x3d2b1a[_0xe086c6([0x6d,0x6f,0x64,0x65,0x6c])][_0xe086c6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17a449,_0x3d2b1a[_0xe086c6([0x6d,0x6f,0x64,0x65,0x6c])][_0xe086c6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17a449,_0x3d2b1a[_0xe086c6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe086c6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x181eeb(_0x1c24c7){const _0x41ca3a=_0x1057bd();_0x3d2b1a[_0x41ca3a]=_0xe086c6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c24c7,_0x1c24c7!=_0xe086c6([0x56,0x61,0x6c,0x69,0x64])&&_0x4b275a();}function _0x1057bd(){const _0x3bed49=window[_0xe086c6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe086c6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe086c6([0x6e,0x6f,0x77])]())[_0xe086c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe086c6([0x2e]),'');let _0x1e22f1=_0xe086c6([0x48]);for(let _0x45f517=0x0;_0x45f517<_0x3bed49[_0xe086c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45f517+=0x2){let _0x2c075b=window[_0xe086c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bed49[_0xe086c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45f517,_0x45f517+0x2));_0x2c075b>=_0xf366ee[_0xe086c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2c075b-=_0xf366ee[_0xe086c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e22f1+=_0xf366ee[_0x2c075b];}return _0x1e22f1;}function _0x7458ff(){const _0x42fe74=_0x1b5b8d[_0xe086c6([0x73,0x70,0x6c,0x69,0x74])](_0xe086c6([0x2e]));if(0x3!=_0x42fe74[_0xe086c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x280062(_0x42fe74[0x1]);function _0x280062(_0x865cbe){const _0x1d8e31=_0x317b85(_0x865cbe);return _0x1d8e31&&_0x3c2ef0()?_0x1d8e31:null;function _0x3c2ef0(){const _0x53fe1d=_0x1d8e31[_0xe086c6([0x6a,0x74,0x69])],_0x1249df=window[_0xe086c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53fe1d[_0xe086c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53fe1d[_0xe086c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3fbdad={..._0x1d8e31,[_0xe086c6([0x6a,0x74,0x69])]:_0x53fe1d[_0xe086c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53fe1d[_0xe086c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3fbdad[_0xe086c6([0x76,0x63])],_0x3e96c5(_0x3fbdad)==_0x1249df;}}}async function _0x17028d(){let _0x2b88f5=!0x0;try{const _0x3e61ed=_0x1b5b8d[_0xe086c6([0x73,0x70,0x6c,0x69,0x74])](_0xe086c6([0x2e])),[_0x1a6573,_0x51fff6,_0x263701]=_0x3e61ed;return _0xcc1073(_0x1a6573),await _0x416187(_0x1a6573,_0x51fff6,_0x263701),_0x2b88f5;}catch(_0x576b68){return!0x1;}function _0xcc1073(_0x34cad9){const _0xbd8f66=_0x317b85(_0x34cad9);_0xbd8f66&&_0xbd8f66[_0xe086c6([0x61,0x6c,0x67])]==_0xe086c6([0x45,0x53,0x32,0x35,0x36])||(_0x2b88f5=!0x1);}async function _0x416187(_0x2d2fc0,_0x16f171,_0x2013dd){const _0x389c85=window[_0xe086c6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe086c6([0x66,0x72,0x6f,0x6d])](_0x11296d(_0x2013dd),_0x578959=>_0x578959[_0xe086c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdb18d2=new window[(_0xe086c6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe086c6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d2fc0+_0xe086c6([0x2e])+_0x16f171),_0x51f0f7=window[_0xe086c6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe086c6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51f0f7)return;const _0xd1c291=await _0x51f0f7[_0xe086c6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe086c6([0x6a,0x77,0x6b]),_0x1d1e74,{[_0xe086c6([0x6e,0x61,0x6d,0x65])]:_0xe086c6([0x45,0x43,0x44,0x53,0x41]),[_0xe086c6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe086c6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe086c6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51f0f7[_0xe086c6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe086c6([0x6e,0x61,0x6d,0x65])]:_0xe086c6([0x45,0x43,0x44,0x53,0x41]),[_0xe086c6([0x68,0x61,0x73,0x68])]:{[_0xe086c6([0x6e,0x61,0x6d,0x65])]:_0xe086c6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd1c291,_0x389c85,_0xdb18d2)||(_0x2b88f5=!0x1);}}function _0x317b85(_0x3c76d7){return _0x3c76d7[_0xe086c6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe086c6([0x65,0x79]))?JSON[_0xe086c6([0x70,0x61,0x72,0x73,0x65])](_0x11296d(_0x3c76d7)):null;}function _0x11296d(_0x42106c){return window[_0xe086c6([0x61,0x74,0x6f,0x62])](_0x42106c[_0xe086c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe086c6([0x2b]))[_0xe086c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe086c6([0x2f])));}function _0x3e96c5(_0x3762d4){let _0x33a59d=0x1505;function _0xff2442(_0x305cac){for(let _0x1561ff=0x0;_0x1561ff<_0x305cac[_0xe086c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1561ff++){const _0x553d66=_0x305cac[_0xe086c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1561ff);_0x33a59d=(_0x33a59d<<0x5)+_0x33a59d+_0x553d66,_0x33a59d&=_0x33a59d;}}function _0x195879(_0x105999){Array[_0xe086c6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x105999)?_0x105999[_0xe086c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x195879):_0x105999&&typeof _0x105999==_0xe086c6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe086c6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x105999)[_0xe086c6([0x73,0x6f,0x72,0x74])]()[_0xe086c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40c473,_0x24731f])=>{_0xff2442(_0x40c473),_0x195879(_0x24731f);}):_0xff2442(window[_0xe086c6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x105999));}return _0x195879(_0x3762d4),_0x33a59d>>>0x0;}function _0x26a425(_0x31fe63){return _0x31fe63[_0xe086c6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe086c6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe086c6([0x30]));}function _0xc1551e(_0x36004f){return _0x36004f[_0xe086c6([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe086c6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe086c6([0x6a,0x6f,0x69,0x6e])]('');}function _0x17a449(){}function _0xe086c6(_0x1d7edc){const _0x4de003=_0x2a39;return _0x1d7edc[_0x4de003(0x20f)](_0x2c3d21=>String[_0x4de003(0x20b)](_0x2c3d21))[_0x4de003(0x1f0)]('');}_0x181eeb(await _0x55093c());}(this);}[_0x7456ae(0x210)](){const _0x5c1b19=_0x7456ae,_0x5f0eec=this[_0x5c1b19(0x21e)][_0x5c1b19(0x225)][_0x5c1b19(0x1eb)];_0x5f0eec[_0x5c1b19(0x229)](_0x5c1b19(0x208))&&_0x5f0eec[_0x5c1b19(0x1f2)](_0x5c1b19(0x208),{'allowAttributes':[_0x5c1b19(0x1f5)]}),_0x5f0eec[_0x5c1b19(0x229)](_0x5c1b19(0x1fe))&&_0x5f0eec[_0x5c1b19(0x1f2)](_0x5c1b19(0x1fe),{'allowAttributes':[_0x5c1b19(0x1f5)]});}[_0x7456ae(0x1f8)](){const _0x326ad7=_0x7456ae,_0x421c20=this[_0x326ad7(0x21e)];_0x421c20[_0x326ad7(0x1ee)][_0x326ad7(0x213)](_0x326ad7(0x222))[_0x326ad7(0x212)]({'model':_0x326ad7(0x1f5),'view':_0x326ad7(0x1fc)}),_0x421c20[_0x326ad7(0x1ee)][_0x326ad7(0x213)](_0x326ad7(0x1e4))[_0x326ad7(0x1ef)]({'model':{'key':_0x326ad7(0x1f5),'value':_0x3a0bd0=>_0x3a0bd0[_0x326ad7(0x219)](_0x326ad7(0x1fc))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5902b0=_0x421c20[_0x326ad7(0x214)][_0x326ad7(0x1ed)](_0x326ad7(0x1e0));_0x5902b0&&this[_0x326ad7(0x1f1)](_0x5902b0,_0x326ad7(0x1f6),(_0x2eb3be,[_0x1ad438,_0xb6daad])=>{const _0x11783e=_0x326ad7;_0x1ad438[_0x11783e(0x20a)](_0x11783e(0x1f5),_0xb6daad);});}[_0x7456ae(0x22f)](){const _0x2a5503=_0x7456ae,_0x56a3c0=this[_0x2a5503(0x21e)][_0x2a5503(0x1ea)][_0x2a5503(0x1ed)](_0x2a5503(0x21d))||{},_0x3b5ab8=this[_0x2a5503(0x21e)][_0x2a5503(0x1ea)][_0x2a5503(0x1ed)](_0x2a5503(0x1f3))||'';this[_0x2a5503(0x230)]=_0x3c1283(_0x112af3[_0x2a5503(0x1e1)],_0x2a5503(0x226),{..._0x56a3c0,'pubkey':_0x3b5ab8,'ctx-name':_0x2a5503(0x223),'sourceList':'','imgOnly':_0x2a5503(0x204),'removeCopyright':_0x2a5503(0x204),'localeName':this[_0x2a5503(0x21e)][_0x2a5503(0x22d)][_0x2a5503(0x205)],'externalSourcesEmbedCss':_0x2a5503(0x20e)}),this[_0x2a5503(0x230)][_0x2a5503(0x1f9)]=_0x1c4098=>{const _0x227093=_0x2a5503;if(_0x227093(0x217)==_0x1c4098)return _0x227093(0x1de);},_0x112af3[_0x2a5503(0x1e1)][_0x2a5503(0x207)][_0x2a5503(0x1dd)](this[_0x2a5503(0x230)]);}[_0x7456ae(0x215)](){const _0x142d08=_0x7456ae;this[_0x142d08(0x202)]=_0x3c1283(_0x112af3[_0x142d08(0x1e1)],_0x142d08(0x21a),{'ctx-name':_0x142d08(0x223)}),_0x112af3[_0x142d08(0x1e1)][_0x142d08(0x207)][_0x142d08(0x1dd)](this[_0x142d08(0x202)]);}[_0x7456ae(0x227)](){const _0x51674f=_0x7456ae,_0x3f0179=this[_0x51674f(0x21e)][_0x51674f(0x214)][_0x51674f(0x1ed)](_0x51674f(0x228));_0x3f0179&&this[_0x51674f(0x1f1)](_0x3f0179,_0x51674f(0x22b),()=>{const _0x306d83=_0x51674f,_0x4b7d30=this[_0x306d83(0x21e)][_0x306d83(0x225)][_0x306d83(0x1e1)][_0x306d83(0x1f7)][_0x306d83(0x200)]();_0x4b7d30&&_0x4b7d30[_0x306d83(0x219)](_0x306d83(0x1f5))&&this[_0x306d83(0x21e)][_0x306d83(0x21b)][_0x306d83(0x206)][_0x306d83(0x22c)](_0x306d83(0x1e7),()=>{const _0x4eb1ea=_0x306d83;_0x1278e4(this[_0x4eb1ea(0x21e)],_0x4b7d30);});});const _0x4e8bf9=this[_0x51674f(0x21e)][_0x51674f(0x214)][_0x51674f(0x1ed)](_0x51674f(0x1fa));_0x4e8bf9&&this[_0x51674f(0x1f1)](_0x4e8bf9,_0x51674f(0x22b),()=>{const _0x4d2881=_0x51674f,_0x584a71=this[_0x4d2881(0x21e)][_0x4d2881(0x225)][_0x4d2881(0x1e1)][_0x4d2881(0x1f7)][_0x4d2881(0x200)]();_0x584a71&&_0x584a71[_0x4d2881(0x219)](_0x4d2881(0x1f5))&&this[_0x4d2881(0x21e)][_0x4d2881(0x21b)][_0x4d2881(0x206)][_0x4d2881(0x22c)](_0x4d2881(0x1e7),()=>{const _0x54e553=_0x4d2881;_0x1278e4(this[_0x54e553(0x21e)],_0x584a71);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x53ddec,ObservableMixin as _0x563859}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1aa38c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x336012}from'ckeditor5/src/icons.js';import _0x5a832c from'./uploadcareimageeditformview.js';import _0x41f135 from'../../utils/uploadutils.js';import{getImageUrls as _0x58fb73,getImageDimension as _0x5f1851}from'../../utils/editingutils.js';import{isAncestor as _0x32b31c}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x563859(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x242ff8,_0x23af9f,_0x17c5b5){super(),this['_editor']=_0x242ff8,this['_dialog']=_0x23af9f,this['_imageElement']=_0x17c5b5,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 _0x38a855=this['_imageElement'],_0x1c9f5a=_0x38a855['getAttribute']('uploadcareImageId'),_0x2aa235=_0x38a855['getAttribute']('src');if(_0x1c9f5a)await this['_loadImageInfo'](_0x1c9f5a,_0x2aa235);else{if(this['_imageCache']['has'](_0x2aa235)){const _0x5e0e71=this['_imageCache']['get'](_0x2aa235);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e0e71['url'],this['imageDimension']=_0x5e0e71['dimension'],this['imageId']=_0x5e0e71['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3318bd}=this['_editor'],t=_0x3318bd['t'],_0xc8f948=new _0x5a832c(_0x3318bd,this['imageStatus'],this['_attributes']);_0xc8f948['bind']('status')['to'](this,'imageStatus'),_0xc8f948['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xc8f948['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xc8f948['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xc8f948,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x336012,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xc8f948,'position':_0x1aa38c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xc8f948['focus']();},'onHide':()=>{_0xc8f948['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3e4e4f=>!_0x32b31c(_0x3e4e4f,_0xc8f948['element'])}});}['_loadImageInfo'](_0x2d462a,_0x113f7e){return _0x41f135['getInfo'](_0x2d462a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x939765=>{const {width:_0x1e6b98,height:_0x236096}=_0x939765['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x113f7e,this['imageDimension']={'width':_0x1e6b98,'height':_0x236096},this['imageId']=_0x2d462a;})['catch'](_0x5db9de=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5db9de['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1fb121,_0x1c7221){return this['_getImageAsFile'](_0x1fb121)['then'](_0x4105f3=>_0x41f135['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1c7221['signal'],'file':_0x4105f3,'onProgress':_0x42f83=>{_0x42f83&&_0x42f83['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x42f83['value']));}}))['then'](_0x170250=>{const {width:_0x232172,height:_0x29ed4c}=_0x170250['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x170250['cdnUrl'],this['imageDimension']={'width':_0x232172,'height':_0x29ed4c},this['imageId']=_0x170250['uuid'],this['imageUploadProgress']=null;const _0x52b71b=_0x1fb121['getAttribute']('src');this['_imageCache']['set'](_0x52b71b,{'id':_0x170250['uuid'],'url':_0x170250['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x400673=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x400673['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x218473,_0x26e4cd){_0x218473['on']('apply',(_0x1e982,_0x1065d7)=>{this['_replaceImage'](_0x26e4cd,_0x1065d7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x218473['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x218473['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x488773,_0xeffa23,_0x24d886){const _0xb1c2dc=this['_editor'],{width:_0x6116e7,height:_0x15a537}=_0x5f1851(_0xeffa23,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xdf60da,imageSources:_0x34bee2}=_0x58fb73(_0xeffa23,_0x6116e7);_0xb1c2dc['model']['change'](_0x42ef3f=>{if('$graveyard'===_0x488773['root']['rootName']){_0xb1c2dc['execute']('insertImage',{'imageType':_0x488773['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x488773['getAttributes']()),'uploadcareImageId':_0x24d886,'src':_0xdf60da,'sources':_0x34bee2,'width':_0x6116e7,'height':_0x15a537}});const _0x304e3f=_0x488773['getChildren']();_0x488773=_0xb1c2dc['model']['document']['selection']['getSelectedElement']();for(const _0x158c1d of _0x304e3f)_0x42ef3f['append'](_0x42ef3f['cloneElement'](_0x158c1d),_0x488773);}else _0x42ef3f['setSelection'](_0x488773,'on'),_0xb1c2dc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x488773['getAttributes']()),'uploadcareImageId':_0x24d886,'src':_0xdf60da,'sources':_0x34bee2,'width':_0x6116e7,'height':_0x15a537},_0x488773);_0x42ef3f['setSelection'](_0x488773,'on');});}async['_getImageAsFile'](_0x100bb1){const _0x5bf9a2=_0x53ddec['window'],_0x462e83=_0x53ddec['document']['location']['href'],_0x4194a5=new _0x5bf9a2['URL'](_0x100bb1['getAttribute']('src'),_0x462e83);if('data:'===_0x4194a5['protocol']){const _0x1581c7=_0x4194a5['href']['split'](','),_0xd65ca3=_0x1581c7[0x0]['match'](/:(.*?);/)[0x1],_0x32b510=_0xd65ca3['split']('/')[0x1],_0x4f121c=_0x5bf9a2['atob'](_0x1581c7[_0x1581c7['length']-0x1]);let _0x29a808=_0x4f121c['length'];const _0x590489=new _0x5bf9a2['Uint8Array'](_0x29a808);for(;_0x29a808--;)_0x590489[_0x29a808]=_0x4f121c['charCodeAt'](_0x29a808);return new _0x5bf9a2['File']([_0x590489],'image.'+_0x32b510,{'type':_0xd65ca3});}const _0x415518=_0x4194a5['href']['split']('/'),_0x139333=_0x415518[_0x415518['length']-0x1],_0x4e7aee=_0x139333['split']('.')[0x1];return _0x5bf9a2['fetch'](_0x4194a5['href'])['then'](_0x1d7cd9=>_0x1d7cd9['clone']()['blob']())['then'](_0x1773e0=>new _0x5bf9a2['File']([_0x1773e0],_0x139333,{'type':'image/'+_0x4e7aee}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2b3c(){const _0x1b56d9=['uc-cloud-image-editor','3003280bVkhrJ','167372QadIqC','2135328YcBUAy','4781421aOOizK','imageSrc','setTemplate','ck-uploadcare-theme','13042beazSi','bindTemplate','385RuYGXr','uc-light','39chelkA','set','36114CHhwpR','image-edit','1229730JHZUXy','113cxptWd'];_0x2b3c=function(){return _0x1b56d9;};return _0x2b3c();}function _0x3950(_0x59e9d1,_0x408ad1){const _0x2b3c48=_0x2b3c();return _0x3950=function(_0x3950d2,_0x272f09){_0x3950d2=_0x3950d2-0x1dc;let _0x32ce86=_0x2b3c48[_0x3950d2];return _0x32ce86;},_0x3950(_0x59e9d1,_0x408ad1);}(function(_0x5877c0,_0x4b247f){const _0x5d9bf7=_0x3950,_0x5d7830=_0x5877c0();while(!![]){try{const _0x51b5dd=-parseInt(_0x5d9bf7(0x1e0))/0x1*(parseInt(_0x5d9bf7(0x1e9))/0x2)+parseInt(_0x5d9bf7(0x1ed))/0x3*(parseInt(_0x5d9bf7(0x1e3))/0x4)+parseInt(_0x5d9bf7(0x1df))/0x5+-parseInt(_0x5d9bf7(0x1dd))/0x6*(-parseInt(_0x5d9bf7(0x1eb))/0x7)+parseInt(_0x5d9bf7(0x1e4))/0x8+-parseInt(_0x5d9bf7(0x1e5))/0x9+parseInt(_0x5d9bf7(0x1e2))/0xa;if(_0x51b5dd===_0x4b247f)break;else _0x5d7830['push'](_0x5d7830['shift']());}catch(_0x1c2076){_0x5d7830['push'](_0x5d7830['shift']());}}}(_0x2b3c,0x668d4));import{View as _0x2c5a18}from'ckeditor5/src/ui.js';export default class tt extends _0x2c5a18{constructor(_0x5dd363,_0x978d8){const _0x300d1a=_0x3950;super(_0x5dd363);const _0x50c2e7=this[_0x300d1a(0x1ea)];this[_0x300d1a(0x1dc)](_0x300d1a(0x1e6),''),this[_0x300d1a(0x1e7)]({'tag':_0x300d1a(0x1e1),'attributes':{..._0x978d8,'class':[_0x300d1a(0x1ec),_0x300d1a(0x1e8)],'ctx-name':_0x300d1a(0x1de),'cdn-url':_0x50c2e7['to'](_0x300d1a(0x1e6))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x283b84,IconView as at,View as _0x567aab}from'ckeditor5/src/ui.js';export default class rt extends _0x567aab{constructor(_0xd910dd){super(_0xd910dd);const t=_0xd910dd['t'];this['set']('errorType',null);const _0x53f121=new _0x283b84(_0xd910dd);_0x53f121['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x53f121['withText']=!0x0,_0x53f121['class']='ck-button-action',_0x53f121['on']('execute',()=>{this['fire']('retry');}),_0x53f121['bind']('isVisible')['to'](this,'errorType',_0x4b30dd=>'NotFound'!==_0x4b30dd);const _0x4adab9=new at();_0x4adab9['content']=et,_0x4adab9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4d2989=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':[_0x4adab9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4d2989['to']('errorType',_0x516ff3=>t('NotFound'!==_0x516ff3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x53f121]},{'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 _0x3434bd,View as _0x5520a3}from'ckeditor5/src/ui.js';export default class ta extends _0x5520a3{constructor(_0x5075e7){super(_0x5075e7);const t=_0x5075e7['t'],_0x1b6d64=this['bindTemplate'],_0x50d382=new _0x3434bd();_0x50d382['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':[_0x50d382,{'text':_0x1b6d64['to']('imageUploadProgress',_0x41db3c=>t('Loading\x20image...')+'\x20('+(_0x41db3c||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
|
-
|
|
23
|
+
const _0x190066=_0x3e0e;(function(_0x51bd68,_0x13f436){const _0x20058b=_0x3e0e,_0x58963e=_0x51bd68();while(!![]){try{const _0x2c886d=parseInt(_0x20058b(0x1eb))/0x1*(parseInt(_0x20058b(0x1d0))/0x2)+parseInt(_0x20058b(0x1e5))/0x3+parseInt(_0x20058b(0x1df))/0x4+parseInt(_0x20058b(0x1ee))/0x5*(parseInt(_0x20058b(0x1ed))/0x6)+-parseInt(_0x20058b(0x1d2))/0x7+-parseInt(_0x20058b(0x1d4))/0x8*(parseInt(_0x20058b(0x1e1))/0x9)+-parseInt(_0x20058b(0x1ea))/0xa*(parseInt(_0x20058b(0x1d9))/0xb);if(_0x2c886d===_0x13f436)break;else _0x58963e['push'](_0x58963e['shift']());}catch(_0x53af14){_0x58963e['push'](_0x58963e['shift']());}}}(_0x22f0,0x1df98));function _0x22f0(){const _0x54ecb5=['_focusableView','ck-uploadcare-form','set','length','add','disconnect','addedNodes','uploading','126urQiaP','target','656537POdugy','ready','1961176hfrXKZ','nodeName','observe','_items','createCollection','178299cnaOhk','toLowerCase','uc-cloud-image-editor','_addUploadcareImageEditorListeners','cdnUrl','fire','669040LajPbs','filter','9zIQTvC','cancel','element','detail','514353OMbjcF','getFocusableElement','retry','render','addEventListener','10ZOYGdZ','389hpgkxw','_errorView','688230tiyyMk','5WpxAec','ck-reset_all-excluded','_waitForImageEditorComponent','addMany','apply','change:status','setTemplate','_addErrorViewListeners','status','focus','div','error','_setView','once','querySelector','clear','_editingView','_loadingView'];_0x22f0=function(){return _0x54ecb5;};return _0x22f0();}import{View as _0x46126d}from'ckeditor5/src/ui.js';import _0x40f34e from'./uploadcareimageeditformloadingview.js';import _0x488c38 from'./uploadcareimageeditformerrorview.js';import _0x7e8e70 from'./uploadcareimageeditformeditingview.js';import _0x2ae696 from'../../utils/dialogfocusmanagerview.js';function _0x3e0e(_0x23c7cd,_0x4d9f88){const _0x22f004=_0x22f0();return _0x3e0e=function(_0x3e0e4a,_0x1047ea){_0x3e0e4a=_0x3e0e4a-0x1bf;let _0x2ed227=_0x22f004[_0x3e0e4a];return _0x2ed227;},_0x3e0e(_0x23c7cd,_0x4d9f88);}import'../../../theme/uploadcare-form.css';export default class Z extends _0x2ae696{[_0x190066(0x1d7)];[_0x190066(0x1c7)];[_0x190066(0x1ec)];[_0x190066(0x1c6)];[_0x190066(0x1c8)];constructor(_0x2b928e,_0x5ccefb,_0x9adb34){const _0x22ec5e=_0x190066;super(_0x2b928e),this[_0x22ec5e(0x1d7)]=this[_0x22ec5e(0x1d8)](),this[_0x22ec5e(0x1c7)]=new _0x40f34e(_0x2b928e),this[_0x22ec5e(0x1ec)]=new _0x488c38(_0x2b928e),this[_0x22ec5e(0x1c6)]=new _0x7e8e70(_0x2b928e,_0x9adb34),this[_0x22ec5e(0x1c8)]=new _0x46126d(_0x2b928e),this[_0x22ec5e(0x1c8)][_0x22ec5e(0x1f4)](this[_0x22ec5e(0x1e6)]()),this[_0x22ec5e(0x1ca)](_0x22ec5e(0x1f6),_0x5ccefb),this[_0x22ec5e(0x1f4)]({'tag':_0x22ec5e(0x1c0),'attributes':{'class':['ck',_0x22ec5e(0x1ef),_0x22ec5e(0x1c9)],'tabindex':'-1'},'children':this[_0x22ec5e(0x1d7)]}),this[_0x22ec5e(0x1c2)](),this[_0x22ec5e(0x1c3)](_0x22ec5e(0x1e8),()=>{const _0x4b9b29=_0x22ec5e;this[_0x4b9b29(0x1f0)](this[_0x4b9b29(0x1e3)],_0x3934e0=>{const _0x66c736=_0x4b9b29;this[_0x66c736(0x1dc)](_0x3934e0);});}),this['on'](_0x22ec5e(0x1f3),()=>{const _0x5e7245=_0x22ec5e;this[_0x5e7245(0x1c2)]();}),this[_0x22ec5e(0x1f5)]();}[_0x190066(0x1bf)](){const _0x2a5703=_0x190066;this[_0x2a5703(0x1e3)][_0x2a5703(0x1bf)]();}[_0x190066(0x1c2)](){const _0x5d2c42=_0x190066;switch(this[_0x5d2c42(0x1d7)][_0x5d2c42(0x1c5)](),this[_0x5d2c42(0x1f6)]){case _0x5d2c42(0x1cf):this[_0x5d2c42(0x1d7)][_0x5d2c42(0x1cc)](this[_0x5d2c42(0x1c7)]);break;case _0x5d2c42(0x1c1):this[_0x5d2c42(0x1d7)][_0x5d2c42(0x1cc)](this[_0x5d2c42(0x1ec)]);break;case _0x5d2c42(0x1d3):this[_0x5d2c42(0x1d7)][_0x5d2c42(0x1f1)]([this[_0x5d2c42(0x1c6)],this[_0x5d2c42(0x1c8)]]);}}[_0x190066(0x1f0)](_0x3d0537,_0x9cd3a6){const _0x2fd441=_0x190066,_0x1df29e=_0x2fd441(0x1db),_0xab77ea=_0x3d0537[_0x2fd441(0x1c4)](_0x1df29e);if(_0xab77ea)return _0x9cd3a6(_0xab77ea);const _0xd357a7=new MutationObserver(_0x90a1ab=>{const _0x3b54c0=_0x2fd441,_0x367547=_0x90a1ab[_0x3b54c0(0x1e0)](_0x1ea3d3=>_0x1ea3d3[_0x3b54c0(0x1d1)]===_0x3d0537&&_0x1ea3d3[_0x3b54c0(0x1ce)][_0x3b54c0(0x1cb)]>0x0&&_0x1ea3d3[_0x3b54c0(0x1ce)][0x0][_0x3b54c0(0x1d5)][_0x3b54c0(0x1da)]()===_0x1df29e);_0x367547[_0x3b54c0(0x1cb)]&&(_0xd357a7[_0x3b54c0(0x1cd)](),_0x9cd3a6(_0x367547[0x0][_0x3b54c0(0x1ce)][0x0]));});_0xd357a7[_0x2fd441(0x1d6)](_0x3d0537,{'childList':!0x0,'subtree':!0x0});}[_0x190066(0x1dc)](_0x53fc05){const _0x472b47=_0x190066;_0x53fc05[_0x472b47(0x1e9)](_0x472b47(0x1f2),_0x4ad64b=>{const _0x33ec8a=_0x472b47;this[_0x33ec8a(0x1de)](_0x33ec8a(0x1f2),{'imageSrc':_0x4ad64b[_0x33ec8a(0x1e4)][_0x33ec8a(0x1dd)]});}),_0x53fc05[_0x472b47(0x1e9)](_0x472b47(0x1e2),()=>{const _0x387d40=_0x472b47;this[_0x387d40(0x1de)](_0x387d40(0x1e2));});}[_0x190066(0x1f5)](){const _0x5e72be=_0x190066;this[_0x5e72be(0x1ec)]['on'](_0x5e72be(0x1e7),()=>{const _0x4a7ca0=_0x5e72be;this[_0x4a7ca0(0x1de)](_0x4a7ca0(0x1e7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51ca8c=_0x512c;(function(_0x15774b,_0x3203af){const _0x486bc3=_0x512c,_0x1dd110=_0x15774b();while(!![]){try{const _0xfc45d9=-parseInt(_0x486bc3(0xb0))/0x1+-parseInt(_0x486bc3(0xaf))/0x2*(parseInt(_0x486bc3(0xb8))/0x3)+-parseInt(_0x486bc3(0xbb))/0x4+parseInt(_0x486bc3(0x9f))/0x5+parseInt(_0x486bc3(0xa4))/0x6*(parseInt(_0x486bc3(0xba))/0x7)+-parseInt(_0x486bc3(0xb2))/0x8*(parseInt(_0x486bc3(0xb3))/0x9)+parseInt(_0x486bc3(0xa6))/0xa;if(_0xfc45d9===_0x3203af)break;else _0x1dd110['push'](_0x1dd110['shift']());}catch(_0x5dd93e){_0x1dd110['push'](_0x1dd110['shift']());}}}(_0x22ac,0x9e585));import{Command as _0x592397}from'ckeditor5/src/core.js';function _0x512c(_0x52fe08,_0x2ab2d0){const _0x22ac74=_0x22ac();return _0x512c=function(_0x512c9b,_0x463a13){_0x512c9b=_0x512c9b-0x9e;let _0x461ed5=_0x22ac74[_0x512c9b];return _0x461ed5;},_0x512c(_0x52fe08,_0x2ab2d0);}function _0x22ac(){const _0x282070=['6132hqbdrk','885680fMlugA','requires','getSelectedElement','config','1429545QSFEZH','plugins','isActive','document','refresh','7662RPiOgg','selection','23943890gjpxox','isEnabled','element','set','imageInline','uploadcare.allowExternalImagesEditing','execute','_isEditable','imageBlock','2573442NCuNUk','1028401XZFYhA','bind','545624OAqWjE','81ynSyqE','model','editor','get','unbind','3uMGCQS','imageEditController'];_0x22ac=function(){return _0x282070;};return _0x22ac();}import{Dialog as _0x57d51d}from'ckeditor5/src/ui.js';import _0x1d12fb from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x18fee0}from'../utils/editingutils.js';export default class J extends _0x592397{[_0x51ca8c(0xb9)];static get[_0x51ca8c(0xbc)](){return[_0x57d51d];}[_0x51ca8c(0xad)];constructor(_0x16c984){const _0x2181ae=_0x51ca8c;super(_0x16c984),this[_0x2181ae(0xb9)]=void 0x0,this[_0x2181ae(0xad)]=_0x18fee0(_0x16c984[_0x2181ae(0x9e)][_0x2181ae(0xb6)](_0x2181ae(0xab))||[]),this[_0x2181ae(0xa9)]({'isActive':!0x1});}[_0x51ca8c(0xa3)](){const _0x4c0e33=_0x51ca8c,_0x44c735=this[_0x4c0e33(0xb5)][_0x4c0e33(0xb4)][_0x4c0e33(0xa2)][_0x4c0e33(0xa5)][_0x4c0e33(0xbd)]();this[_0x4c0e33(0xa7)]=this[_0x4c0e33(0xad)](_0x44c735);}[_0x51ca8c(0xac)](){const _0x4f746f=_0x51ca8c;this[_0x4f746f(0xb9)]&&(this[_0x4f746f(0xb7)](_0x4f746f(0xa1)),this[_0x4f746f(0xb9)]=void 0x0);const _0x3a458c=this[_0x4f746f(0xb5)][_0x4f746f(0xb4)][_0x4f746f(0xa2)][_0x4f746f(0xa5)][_0x4f746f(0xbd)]();_0x3a458c&&(_0x3a458c['is'](_0x4f746f(0xa8),_0x4f746f(0xae))||_0x3a458c['is'](_0x4f746f(0xa8),_0x4f746f(0xaa)))&&(this[_0x4f746f(0xb9)]=new _0x1d12fb(this[_0x4f746f(0xb5)],this[_0x4f746f(0xb5)][_0x4f746f(0xa0)][_0x4f746f(0xb6)](_0x57d51d),_0x3a458c),this[_0x4f746f(0xb1)](_0x4f746f(0xa1))['to'](this[_0x4f746f(0xb9)],_0x4f746f(0xa1)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29153e=_0x4f70;(function(_0x206edc,_0x2e687a){const _0x1cac1c=_0x4f70,_0xec6469=_0x206edc();while(!![]){try{const _0x2528f3=parseInt(_0x1cac1c(0x1c9))/0x1*(-parseInt(_0x1cac1c(0x1b9))/0x2)+-parseInt(_0x1cac1c(0x1c4))/0x3*(parseInt(_0x1cac1c(0x1b5))/0x4)+-parseInt(_0x1cac1c(0x1b8))/0x5*(parseInt(_0x1cac1c(0x1c3))/0x6)+parseInt(_0x1cac1c(0x1c2))/0x7+-parseInt(_0x1cac1c(0x1bb))/0x8+parseInt(_0x1cac1c(0x1b6))/0x9*(-parseInt(_0x1cac1c(0x1bd))/0xa)+-parseInt(_0x1cac1c(0x1c5))/0xb*(-parseInt(_0x1cac1c(0x1b2))/0xc);if(_0x2528f3===_0x2e687a)break;else _0xec6469['push'](_0xec6469['shift']());}catch(_0x553d2d){_0xec6469['push'](_0xec6469['shift']());}}}(_0x5e87,0x4cc79));import{Plugin as _0x1302b6}from'ckeditor5/src/core.js';import{Notification as _0x2cd34c}from'ckeditor5/src/ui.js';function _0x5e87(){const _0xcf8f34=['8smyppi','ImageEditing','3837808glPDDK','ImageUtils','72470uxYXca','isOfficialPlugin','init','uploadcareImageEdit','add','2703533iinfSx','6ehTqTU','126051FkQDYq','66VrrvIL','UploadcareImageEditEditing','uploadcareImageReplace','requires','54766PuwViz','2562528hKbFfE','isPremiumPlugin','commands','4Qwgkpx','171UPXFLr','pluginName','2372470OEbWmd'];_0x5e87=function(){return _0xcf8f34;};return _0x5e87();}import _0x56885c from'./uploadcareimageeditcommand.js';import _0x550095 from'./uploadcareimagereplacecommand.js';import _0x250b76 from'../uploadcareediting.js';function _0x4f70(_0x1e3012,_0x460efd){const _0x5e87c7=_0x5e87();return _0x4f70=function(_0x4f70d4,_0x36d580){_0x4f70d4=_0x4f70d4-0x1b2;let _0x5839d6=_0x5e87c7[_0x4f70d4];return _0x5839d6;},_0x4f70(_0x1e3012,_0x460efd);}export default class g extends _0x1302b6{static get[_0x29153e(0x1b7)](){const _0x25817d=_0x29153e;return _0x25817d(0x1c6);}static get[_0x29153e(0x1c8)](){const _0x5487f6=_0x29153e;return[_0x250b76,_0x2cd34c,_0x5487f6(0x1bc),_0x5487f6(0x1ba)];}static get[_0x29153e(0x1be)](){return!0x0;}static get[_0x29153e(0x1b3)](){return!0x0;}[_0x29153e(0x1bf)](){const _0x2b9328=_0x29153e,{editor:_0x19daf6}=this;_0x19daf6[_0x2b9328(0x1b4)][_0x2b9328(0x1c1)](_0x2b9328(0x1c0),new _0x56885c(_0x19daf6)),_0x19daf6[_0x2b9328(0x1b4)][_0x2b9328(0x1c1)](_0x2b9328(0x1c7),new _0x550095(_0x19daf6));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5e02cb}from'ckeditor5/src/core.js';import{ButtonView as _0xbfd2be}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5d0155}from'ckeditor5/src/icons.js';import{createElement as _0x52f5b3}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x5e02cb{['_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 _0xd434cc=this['editor'];_0xd434cc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3f47ca=>{const _0x4f3237=_0xd434cc['commands']['get']('uploadcareImageEdit'),_0x2f19c0=new _0xbfd2be(_0x3f47ca),t=_0x3f47ca['t'];return _0x2f19c0['set']({'icon':_0x5d0155,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2f19c0['bind']('isEnabled')['to'](_0x4f3237),_0x2f19c0['bind']('isOn')['to'](_0x4f3237,'isActive'),this['listenTo'](_0x2f19c0,'execute',()=>{_0xd434cc['execute']('uploadcareImageEdit'),_0xd434cc['editing']['view']['focus']();}),_0x2f19c0;}),this['_initConfig']();}['_initConfig'](){const _0xe2aab7=_0x52f5b3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xe2aab7),this['listenTo'](this['editor'],'destroy',()=>{_0xe2aab7['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xedf3b0=_0x1fb1;function _0x1fb1(_0x318866,_0x2fd1b5){const _0x1b8822=_0x1b88();return _0x1fb1=function(_0x1fb11d,_0x769227){_0x1fb11d=_0x1fb11d-0x7d;let _0x54e976=_0x1b8822[_0x1fb11d];return _0x54e976;},_0x1fb1(_0x318866,_0x2fd1b5);}function _0x1b88(){const _0x5d70e9=['1950296GrXemm','editor','document','187dCutor','9BmrAsg','removeAttribute','1893150hnIeAL','refresh','sizes','33pnGTOM','element','84ePqMbe','54EJwUit','change','96716ezBDVi','execute','setAttributes','imageInline','model','786461WadmIh','imageBlock','srcset','getSelectedElement','isEnabled','34FdpAaw','selection','22935lWCbxr','195670kekHGD','3161RpFDDW'];_0x1b88=function(){return _0x5d70e9;};return _0x1b88();}(function(_0x36bf5e,_0x4bbeb5){const _0x13f2a7=_0x1fb1,_0x2cdc6b=_0x36bf5e();while(!![]){try{const _0x544139=-parseInt(_0x13f2a7(0x91))/0x1*(-parseInt(_0x13f2a7(0x8d))/0x2)+-parseInt(_0x13f2a7(0x7e))/0x3*(-parseInt(_0x13f2a7(0x83))/0x4)+parseInt(_0x13f2a7(0x8f))/0x5*(-parseInt(_0x13f2a7(0x81))/0x6)+parseInt(_0x13f2a7(0x98))/0x7+parseInt(_0x13f2a7(0x92))/0x8*(-parseInt(_0x13f2a7(0x96))/0x9)+parseInt(_0x13f2a7(0x90))/0xa*(parseInt(_0x13f2a7(0x95))/0xb)+-parseInt(_0x13f2a7(0x80))/0xc*(parseInt(_0x13f2a7(0x88))/0xd);if(_0x544139===_0x4bbeb5)break;else _0x2cdc6b['push'](_0x2cdc6b['shift']());}catch(_0x5d4514){_0x2cdc6b['push'](_0x2cdc6b['shift']());}}}(_0x1b88,0x344e6));import{Command as _0x27bc59}from'ckeditor5/src/core.js';export default class O extends _0x27bc59{[_0xedf3b0(0x99)](){const _0x5e6a90=_0xedf3b0,_0x375b97=this[_0x5e6a90(0x93)][_0x5e6a90(0x87)][_0x5e6a90(0x94)][_0x5e6a90(0x8e)][_0x5e6a90(0x8b)]();this[_0x5e6a90(0x8c)]=Boolean(_0x375b97&&(_0x375b97['is'](_0x5e6a90(0x7f),_0x5e6a90(0x89))||_0x375b97['is'](_0x5e6a90(0x7f),_0x5e6a90(0x86))));}[_0xedf3b0(0x84)](_0x3c2a0c){const _0x680c91=_0xedf3b0,_0x4d797a=this[_0x680c91(0x93)][_0x680c91(0x87)][_0x680c91(0x94)][_0x680c91(0x8e)][_0x680c91(0x8b)]();this[_0x680c91(0x93)][_0x680c91(0x87)][_0x680c91(0x82)](_0x348124=>{const _0x5a8ac5=_0x680c91;_0x348124[_0x5a8ac5(0x85)](_0x3c2a0c,_0x4d797a),_0x348124[_0x5a8ac5(0x97)](_0x5a8ac5(0x8a),_0x4d797a),_0x348124[_0x5a8ac5(0x97)](_0x5a8ac5(0x7d),_0x4d797a);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x21d717=_0x45e4;function _0x45e4(_0x5edac6,_0x432490){var _0x2c0a50=_0x2c0a();return _0x45e4=function(_0x45e469,_0x1669e1){_0x45e469=_0x45e469-0x9f;var _0x472897=_0x2c0a50[_0x45e469];return _0x472897;},_0x45e4(_0x5edac6,_0x432490);}(function(_0x23bc22,_0x4d8090){var _0x1a64e4=_0x45e4,_0x36bd40=_0x23bc22();while(!![]){try{var _0x306c1b=parseInt(_0x1a64e4(0xaa))/0x1*(-parseInt(_0x1a64e4(0xa4))/0x2)+-parseInt(_0x1a64e4(0xa2))/0x3*(-parseInt(_0x1a64e4(0xa6))/0x4)+parseInt(_0x1a64e4(0xa1))/0x5*(-parseInt(_0x1a64e4(0xab))/0x6)+parseInt(_0x1a64e4(0xae))/0x7+-parseInt(_0x1a64e4(0xa7))/0x8*(parseInt(_0x1a64e4(0xac))/0x9)+-parseInt(_0x1a64e4(0xaf))/0xa+parseInt(_0x1a64e4(0x9f))/0xb*(parseInt(_0x1a64e4(0xa8))/0xc);if(_0x306c1b===_0x4d8090)break;else _0x36bd40['push'](_0x36bd40['shift']());}catch(_0x13a1e1){_0x36bd40['push'](_0x36bd40['shift']());}}}(_0x2c0a,0xd7d2f));import{Plugin as _0x33f999}from'ckeditor5/src/core.js';import _0x3b2aab from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x322bc9 from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x2c0a(){var _0x411a61=['isPremiumPlugin','8023575BybeNW','2320620kZajap','17961823vdgbLG','UploadcareImageEdit','335XuXFIf','717kvXeiB','isOfficialPlugin','1646sycFpr','requires','11828wFdRsl','40WYsdQt','12bxzVVZ','pluginName','792BdHAAQ','38334pVpvFC','2321793kxcQAQ'];_0x2c0a=function(){return _0x411a61;};return _0x2c0a();}export default class P extends _0x33f999{static get[_0x21d717(0xa9)](){var _0x245b8b=_0x21d717;return _0x245b8b(0xa0);}static get[_0x21d717(0xa5)](){return[_0x3b2aab,_0x322bc9];}static get[_0x21d717(0xa3)](){return!0x0;}static get[_0x21d717(0xad)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3226(){const _0xa0e14=['isPremiumPlugin','uploadcareLicenseKeyDomainLimit','forEach','uploadcareLicenseKeyUsageLimit','19956IHwOte','uploadcareLicenseKeyEvaluationLimit','destroy','afterInit','url','upload','execute','label','shortText','UploadcareUI','uploadcare','map','Replace','editor','_createMenuBarButtons','uploadcareLicenseKeyValid','config','3tZXiAF','4705968OAeVzX','uploadcareLicenseKeyNotAllowed','_createButton','featureNotAllowed','2762052pJsOEE','bind','invalid','plugins','uploadcare.uploader.sourceList','Facebook','_createToolbarButton','isOfficialPlugin','trialLimit','OneDrive','URL','entries','425732hxdFGd','usageLimit','isImageSelected','Uploadcare','Local','2501652bTRncw','2770262uEoPDB','50eGxutN','commands','push','type','Dropbox','132NrZJTO','Insert','assetManager','uploadcareLicenseKeyExpired','_createDropdownButtons','GPhotos','tooltip','560IpCELr','icon','has','ImageInsertUI','_showLicenseError','reduce','_getIntegrationKey','7bCyqiA','withText','82152rNxKiB','licenseKey','GDrive','evaluationLimit','expired','locale','uploadcareLicenseKeyTrialLimit','registerIntegration','isEnabled','pluginName','get','init','domainLimit','_normalizeConfigSourceList','text','uploadcareLicenseKeyInvalid','_licenseKeyCheckInterval'];_0x3226=function(){return _0xa0e14;};return _0x3226();}const _0x4c83c8=_0x20c8;(function(_0x13ec87,_0x77ea10){const _0xad8a8b=_0x20c8,_0x189ed7=_0x13ec87();while(!![]){try{const _0x506d22=-parseInt(_0xad8a8b(0x1b3))/0x1*(-parseInt(_0xad8a8b(0x1c4))/0x2)+parseInt(_0xad8a8b(0x1c9))/0x3+parseInt(_0xad8a8b(0x1b8))/0x4+parseInt(_0xad8a8b(0x1cb))/0x5*(-parseInt(_0xad8a8b(0x1a2))/0x6)+-parseInt(_0xad8a8b(0x18b))/0x7*(-parseInt(_0xad8a8b(0x1b4))/0x8)+-parseInt(_0xad8a8b(0x18d))/0x9*(-parseInt(_0xad8a8b(0x184))/0xa)+parseInt(_0xad8a8b(0x1ca))/0xb*(-parseInt(_0xad8a8b(0x1d0))/0xc);if(_0x506d22===_0x77ea10)break;else _0x189ed7['push'](_0x189ed7['shift']());}catch(_0x33b228){_0x189ed7['push'](_0x189ed7['shift']());}}}(_0x3226,0x70087));import{Plugin as _0x552d85}from'ckeditor5/src/core.js';import{IconDropbox as _0x5a9551,IconFacebook as _0x44dddd,IconGoogleDrive as _0x30fa30,IconGooglePhotos as _0x44f2ff,IconUploadcareImageUpload as _0x2b9824,IconUploadcareLink as _0x426aed,IconOneDrive as _0x296bdf}from'ckeditor5/src/icons.js';import{ButtonView as _0x45d00a,MenuBarMenuListItemButtonView as _0x4e9ecf}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x311b1f}from'./uploadcareconfig.js';import{getTranslation as _0x9ad92e}from'./utils/common-translations.js';function _0x20c8(_0x8c5ac,_0x19a431){const _0x3226b0=_0x3226();return _0x20c8=function(_0x20c89c,_0x323172){_0x20c89c=_0x20c89c-0x182;let _0x2e7ab2=_0x3226b0[_0x20c89c];return _0x2e7ab2;},_0x20c8(_0x8c5ac,_0x19a431);}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 _0x552d85{[_0x4c83c8(0x18e)];[_0x4c83c8(0x19d)];static get[_0x4c83c8(0x196)](){const _0x210fa6=_0x4c83c8;return _0x210fa6(0x1ab);}static get[_0x4c83c8(0x1bf)](){return!0x0;}static get[_0x4c83c8(0x19e)](){return!0x0;}[_0x4c83c8(0x198)](){const _0x1fdcb3=_0x4c83c8;this[_0x1fdcb3(0x18e)]=this[_0x1fdcb3(0x1af)][_0x1fdcb3(0x1b2)][_0x1fdcb3(0x197)](_0x1fdcb3(0x18e));const _0xc5da5d=this[_0x1fdcb3(0x1af)];this[_0x1fdcb3(0x19d)]=setInterval(()=>{const _0x3ee622=_0x1fdcb3;let _0x59d541;for(const _0x1dacb7 in _0xc5da5d){const _0x5de05a=_0x1dacb7,_0x215af4=_0xc5da5d[_0x5de05a];if(_0x3ee622(0x1b1)==_0x215af4||_0x3ee622(0x19c)==_0x215af4||_0x3ee622(0x1d3)==_0x215af4||_0x3ee622(0x19f)==_0x215af4||_0x3ee622(0x1b5)==_0x215af4||_0x3ee622(0x1a3)==_0x215af4||_0x3ee622(0x193)==_0x215af4||_0x3ee622(0x1a1)==_0x215af4){delete _0xc5da5d[_0x5de05a],_0x59d541=_0x215af4,clearInterval(this[_0x3ee622(0x19d)]),this[_0x3ee622(0x19d)]=void 0x0;break;}}_0x3ee622(0x19c)==_0x59d541&&_0xc5da5d[_0x3ee622(0x188)](_0x3ee622(0x1ba)),_0x3ee622(0x1d3)==_0x59d541&&_0xc5da5d[_0x3ee622(0x188)](_0x3ee622(0x191)),_0x3ee622(0x19f)==_0x59d541&&_0xc5da5d[_0x3ee622(0x188)](_0x3ee622(0x199)),_0x3ee622(0x1b5)==_0x59d541&&_0xc5da5d[_0x3ee622(0x188)](_0x3ee622(0x1b7),_0x3ee622(0x1c7)),_0x3ee622(0x1a3)==_0x59d541&&_0xc5da5d[_0x3ee622(0x188)](_0x3ee622(0x190)),_0x3ee622(0x193)==_0x59d541&&_0xc5da5d[_0x3ee622(0x188)](_0x3ee622(0x1c0)),_0x3ee622(0x1a1)==_0x59d541&&_0xc5da5d[_0x3ee622(0x188)](_0x3ee622(0x1c5));},0x3e8);}[_0x4c83c8(0x1a5)](){const _0x41c7d2=_0x4c83c8,{editor:_0x3c4b6e}=this,_0xa016aa=_0x3c4b6e[_0x41c7d2(0x1cc)][_0x41c7d2(0x197)](_0x41c7d2(0x1ac));if(!_0xa016aa)return;const _0x5218a2=this[_0x41c7d2(0x19a)](_0x3c4b6e[_0x41c7d2(0x1b2)][_0x41c7d2(0x197)](_0x41c7d2(0x1bc)))[_0x41c7d2(0x189)]((_0x42bd81,_0x3808cf)=>{const _0x3ffe3e=_0x41c7d2,_0x10dff8=this[_0x3ffe3e(0x18a)](_0x3808cf[_0x3ffe3e(0x1ce)]);return _0x42bd81[_0x10dff8]||(_0x42bd81[_0x10dff8]=[]),_0x42bd81[_0x10dff8][_0x3ffe3e(0x1cd)](_0x3808cf),_0x42bd81;},{});_0x3c4b6e[_0x41c7d2(0x1bb)][_0x41c7d2(0x186)](_0x41c7d2(0x187))&&_0x3c4b6e[_0x41c7d2(0x1cc)][_0x41c7d2(0x197)](_0x41c7d2(0x1ac))&&Object[_0x41c7d2(0x1c3)](_0x5218a2)[_0x41c7d2(0x1a0)](([_0x18e766,_0x527329])=>{const _0x51283d=_0x41c7d2;_0x3c4b6e[_0x51283d(0x1bb)][_0x51283d(0x197)](_0x51283d(0x187))[_0x51283d(0x194)]({'name':_0x18e766,'observable':()=>_0xa016aa,'buttonViewCreator':()=>this[_0x51283d(0x1be)](_0x527329),'formViewCreator':()=>this[_0x51283d(0x1d4)](_0x527329),'menuBarButtonViewCreator':()=>this[_0x51283d(0x1b0)](_0x527329),'override':_0x51283d(0x1d2)!==_0x18e766});});}[_0x4c83c8(0x1a4)](){const _0x1789b3=_0x4c83c8;super[_0x1789b3(0x1a4)](),this[_0x1789b3(0x19d)]&&clearInterval(this[_0x1789b3(0x19d)]);}[_0x4c83c8(0x19a)](_0x5c1c2f){const _0x520a16=_0x4c83c8,{locale:_0x2ca260}=this[_0x520a16(0x1af)];return _0x5c1c2f[_0x520a16(0x1ad)](_0x21d8a6=>{const _0x181c2f=_0x520a16,_0x54fcc6=_0x9ad92e(_0x2ca260,_0x21d8a6,_0x181c2f(0x1d1));switch(_0x21d8a6){case _0x311b1f[_0x181c2f(0x1c8)]:return{'icon':_0x2b9824,'type':_0x311b1f[_0x181c2f(0x1c8)],..._0x54fcc6};case _0x311b1f[_0x181c2f(0x1c2)]:return{'icon':_0x426aed,'type':_0x311b1f[_0x181c2f(0x1c2)],..._0x54fcc6};case _0x311b1f[_0x181c2f(0x1cf)]:return{'icon':_0x5a9551,'type':_0x311b1f[_0x181c2f(0x1cf)],..._0x54fcc6};case _0x311b1f[_0x181c2f(0x1bd)]:return{'icon':_0x44dddd,'type':_0x311b1f[_0x181c2f(0x1bd)],..._0x54fcc6};case _0x311b1f[_0x181c2f(0x18f)]:return{'icon':_0x30fa30,'type':_0x311b1f[_0x181c2f(0x18f)],..._0x54fcc6};case _0x311b1f[_0x181c2f(0x182)]:return{'icon':_0x44f2ff,'type':_0x311b1f[_0x181c2f(0x182)],..._0x54fcc6};case _0x311b1f[_0x181c2f(0x1c1)]:return{'icon':_0x296bdf,'type':_0x311b1f[_0x181c2f(0x1c1)],..._0x54fcc6};}});}[_0x4c83c8(0x18a)](_0x10b27e){const _0x2a53bb=_0x4c83c8;switch(_0x10b27e){case _0x311b1f[_0x2a53bb(0x1c8)]:return _0x2a53bb(0x1a7);case _0x311b1f[_0x2a53bb(0x1c2)]:return _0x2a53bb(0x1a6);default:return _0x2a53bb(0x1d2);}}[_0x4c83c8(0x1b6)](_0x5d5617,_0x30ef18){const _0x555453=_0x4c83c8,_0x1f7d73=this[_0x555453(0x1af)],_0x23df1a=new _0x5d5617(_0x1f7d73[_0x555453(0x192)]),_0x25818b=_0x1f7d73[_0x555453(0x1cc)][_0x555453(0x197)](_0x555453(0x1ac));return _0x23df1a[_0x555453(0x1b9)](_0x555453(0x195))['to'](_0x25818b),_0x23df1a['on'](_0x555453(0x1a8),()=>{const _0x52d182=_0x555453;_0x25818b[_0x52d182(0x1a8)](_0x30ef18);}),_0x23df1a;}[_0x4c83c8(0x1be)](_0x354060){const _0x1345b5=_0x4c83c8,{locale:_0x11ef33}=this[_0x1345b5(0x1af)],_0x163f05=this[_0x1345b5(0x1af)][_0x1345b5(0x1bb)][_0x1345b5(0x197)](_0x1345b5(0x187)),_0x5161bf=_0x354060[0x0],_0x3fc723=this[_0x1345b5(0x1b6)](_0x45d00a,_0x5161bf[_0x1345b5(0x1ce)]);return _0x3fc723[_0x1345b5(0x185)]=_0x5161bf[_0x1345b5(0x185)],_0x3fc723[_0x1345b5(0x1b9)](_0x1345b5(0x1a9))['to'](_0x163f05,_0x1345b5(0x1c6),_0x2e423d=>_0x9ad92e(_0x11ef33,_0x5161bf[_0x1345b5(0x1ce)],_0x2e423d?_0x1345b5(0x1ae):_0x1345b5(0x1d1))[_0x1345b5(0x19b)]),_0x3fc723[_0x1345b5(0x183)]=!0x0,_0x3fc723;}[_0x4c83c8(0x1d4)](_0x2495f5){const _0x79539b=_0x4c83c8,{locale:_0x4130aa}=this[_0x79539b(0x1af)],_0xfc1884=this[_0x79539b(0x1af)][_0x79539b(0x1bb)][_0x79539b(0x197)](_0x79539b(0x187));return _0x2495f5[_0x79539b(0x1ad)](_0x42f62f=>{const _0x5dc95a=_0x79539b,_0x5ea829=this[_0x5dc95a(0x1b6)](_0x45d00a,_0x42f62f[_0x5dc95a(0x1ce)]);return _0x5ea829[_0x5dc95a(0x18c)]=!0x0,_0x5ea829[_0x5dc95a(0x185)]=_0x42f62f[_0x5dc95a(0x185)],_0x5ea829[_0x5dc95a(0x1b9)](_0x5dc95a(0x1a9))['to'](_0xfc1884,_0x5dc95a(0x1c6),_0x55311f=>_0x9ad92e(_0x4130aa,_0x42f62f[_0x5dc95a(0x1ce)],_0x55311f?_0x5dc95a(0x1ae):_0x5dc95a(0x1d1))[_0x5dc95a(0x19b)]),_0x5ea829;});}[_0x4c83c8(0x1b0)](_0x449950){const _0x2f8350=_0x4c83c8;return _0x449950[_0x2f8350(0x1ad)](_0x382dff=>{const _0x54a8bb=_0x2f8350,_0x4ce6b3=this[_0x54a8bb(0x1b6)](_0x4e9ecf,_0x382dff[_0x54a8bb(0x1ce)]);return _0x4ce6b3[_0x54a8bb(0x185)]=_0x382dff[_0x54a8bb(0x185)],_0x4ce6b3[_0x54a8bb(0x1a9)]=_0x382dff[_0x54a8bb(0x1aa)],_0x4ce6b3;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x153cb2}from'ckeditor5/src/core.js';import{FileRepository as _0x3388e1}from'ckeditor5/src/upload.js';import _0x45a0c2 from'./uploadcareediting.js';import _0xc593cf from'./utils/uploadutils.js';import{getImageUrls as _0x199155}from'./utils/editingutils.js';export default class p extends _0x153cb2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3388e1,_0x45a0c2];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x376888=this['editor'];if(!!!_0x376888['config']['get']('uploadcare'))return;_0x376888['plugins']['get'](_0x3388e1)['createUploadAdapter']=_0x3d6a40=>new x(_0x3d6a40,_0x376888),_0x376888['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2fe6df,{imageElement:_0x1a6df4,data:_0x2785f1})=>{_0x376888['model']['change'](_0x48d625=>{_0x48d625['setAttribute']('uploadcareImageId',_0x2785f1['uploadcareImageId'],_0x1a6df4);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x22cefe,_0x5a8af7){this['loader']=_0x22cefe,this['editor']=_0x5a8af7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x295588=this['editor']['config']['get']('uploadcare.pubkey'),_0x4acaae=await this['loader']['file'];return _0xc593cf['upload']({'file':_0x4acaae,'publicKey':_0x295588,'signal':this['controller']['signal'],'onProgress':_0x583ec1=>{_0x583ec1&&_0x583ec1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x583ec1['value']);}})['then'](async _0x558727=>{const {imageFallbackUrl:_0x539f39,imageSources:_0xf2f419}=_0x199155(_0x558727['cdnUrl'],_0x558727['imageInfo']['width']);return{'uploadcareImageId':_0x558727['uuid'],'default':_0x539f39,'sources':_0xf2f419};})['catch'](()=>{const _0x5e1a70=t('Cannot\x20upload\x20file:')+('\x20'+_0x4acaae['name']+'.');return Promise['reject'](_0x5e1a70);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x11a78b}from'../uploadcareconfig.js';export function getTranslation(_0x596361,_0x57e9c7,_0x4aee59){const t=_0x596361['t'],_0xf8c413=_0x596361['t'];switch(_0x57e9c7){case _0x11a78b['Local']:return{'text':_0xf8c413('Insert'===_0x4aee59?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xf8c413('From\x20computer')};case _0x11a78b['URL']:return{'text':'Insert'===_0x4aee59?_0xf8c413('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xf8c413('Via\x20URL')};case _0x11a78b['Dropbox']:return{'text':t('Insert'===_0x4aee59?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x11a78b['Facebook']:return{'text':t('Insert'===_0x4aee59?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x11a78b['GDrive']:return{'text':t('Insert'===_0x4aee59?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x11a78b['GPhotos']:return{'text':t('Insert'===_0x4aee59?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x11a78b['OneDrive']:return{'text':t('Insert'===_0x4aee59?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x57e9c7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x33b358=_0x3402;function _0x3402(_0xe4541d,_0x273234){var _0xec743a=_0xec74();return _0x3402=function(_0x340236,_0x56608d){_0x340236=_0x340236-0x1cc;var _0x37c926=_0xec743a[_0x340236];return _0x37c926;},_0x3402(_0xe4541d,_0x273234);}(function(_0x136283,_0xaef5b0){var _0x1b3090=_0x3402,_0x5eaf7a=_0x136283();while(!![]){try{var _0x14e115=-parseInt(_0x1b3090(0x1dc))/0x1+parseInt(_0x1b3090(0x1d5))/0x2+-parseInt(_0x1b3090(0x1d9))/0x3*(parseInt(_0x1b3090(0x1dd))/0x4)+-parseInt(_0x1b3090(0x1de))/0x5+parseInt(_0x1b3090(0x1cc))/0x6*(-parseInt(_0x1b3090(0x1d4))/0x7)+parseInt(_0x1b3090(0x1d3))/0x8+-parseInt(_0x1b3090(0x1d6))/0x9*(-parseInt(_0x1b3090(0x1cf))/0xa);if(_0x14e115===_0xaef5b0)break;else _0x5eaf7a['push'](_0x5eaf7a['shift']());}catch(_0xf4b363){_0x5eaf7a['push'](_0x5eaf7a['shift']());}}}(_0xec74,0x9279f));function _0xec74(){var _0x45b9e4=['515881PhiOku','61052cpzjpV','5989585IHUKkA','446496TMovhE','fire','focusTracker','140NFFYVO','bindTemplate','forwardCycle','focusCycler','8478456fSITPt','63PKiunB','2171318kdqbkt','803664FuOxIX','createCollection','true','81TrnydX','div','getFocusableElement'];_0xec74=function(){return _0x45b9e4;};return _0xec74();}import{FocusTracker as _0x34def8}from'ckeditor5/src/utils.js';import{View as _0x22a2ee,FocusCycler as _0x34b1b6}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x22a2ee{[_0x33b358(0x1ce)];[_0x33b358(0x1d2)];constructor(_0x1a233b){var _0x57e98c=_0x33b358;super(_0x1a233b),this[_0x57e98c(0x1ce)]=new _0x34def8(),this[_0x57e98c(0x1d2)]=new _0x34b1b6({'focusables':this[_0x57e98c(0x1d7)](),'focusTracker':this[_0x57e98c(0x1ce)]});}[_0x33b358(0x1db)](){var _0x532088=_0x33b358;return{'tag':_0x532088(0x1da),'attributes':{'aria-hidden':_0x532088(0x1d8),'tabindex':'0'},'on':{'focus':this[_0x532088(0x1d0)]['to'](()=>{var _0x370330=_0x532088;this[_0x370330(0x1d2)][_0x370330(0x1cd)](_0x370330(0x1d1));})}};}}
|