@ckeditor/ckeditor5-uploadcare 46.0.2-alpha.0 → 46.0.2
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 _0x2def88=_0x295a;(function(_0x2657fa,_0x1a6073){const _0x16cdd0=_0x295a,_0x389a60=_0x2657fa();while(!![]){try{const _0x4f4c94=parseInt(_0x16cdd0(0x139))/0x1*(-parseInt(_0x16cdd0(0xf8))/0x2)+parseInt(_0x16cdd0(0xf4))/0x3*(parseInt(_0x16cdd0(0x106))/0x4)+parseInt(_0x16cdd0(0x115))/0x5+-parseInt(_0x16cdd0(0x104))/0x6+-parseInt(_0x16cdd0(0xff))/0x7*(-parseInt(_0x16cdd0(0x13d))/0x8)+-parseInt(_0x16cdd0(0xf1))/0x9*(parseInt(_0x16cdd0(0x125))/0xa)+-parseInt(_0x16cdd0(0x129))/0xb*(-parseInt(_0x16cdd0(0x138))/0xc);if(_0x4f4c94===_0x1a6073)break;else _0x389a60['push'](_0x389a60['shift']());}catch(_0x5e7068){_0x389a60['push'](_0x389a60['shift']());}}}(_0x2934,0x4776c));function _0x2934(){const _0x54eed1=['fromCharCode','editor','uploadcareImageReplace','document','config','_initCtx','isOfficialPlugin','1913680vHJmZo','data-uc-image-id','uploadcare','uploadcare.uploader','#uc-icon-arrow-down','isPremiumPlugin','uc-upload-ctx-provider','uploadcare.pubkey','ucContextId','body','listenTo','UploadcareEditing','uploadcareImageId','init','href','_initConversion','10pkhwib','map','getSelectedElement','add','7629787CVzLSP','contentLanguage','uc-config','join','schema','conversion','getAttribute','isRegistered','iconHrefResolver','locale','_initImageProcessingIndicator','\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','removeAttribute','true','attributeToAttribute','12pAXyVi','1naWEGB','extend','input[uploadcare-file-input]','requires','3208752bzEasq','_initSchema','upcast','model','appendChild','once','configElement','get','elementToAttribute','closeMax','imageInline','4607019ipGfBD','_ctxElement','for','519aeOYVA','pluginName','destroy','ctxElement','1073734tTvmaA','uploader-','cleanupImage','PictureEditing','view','remove','selection','7YqhRsM','downcast','afterInit','execute','imageBlock','1628592JoQIhW','editing','3132HJhWTH','render','insertImage','_configElement','querySelector','commands','replaceImageSource','_initConfig'];_0x2934=function(){return _0x54eed1;};return _0x2934();}function _0x295a(_0x5deae9,_0x5bf2df){const _0x2934bf=_0x2934();return _0x295a=function(_0x295a50,_0x4f067f){_0x295a50=_0x295a50-0xee;let _0x559fe9=_0x2934bf[_0x295a50];return _0x559fe9;},_0x295a(_0x5deae9,_0x5bf2df);}import{Plugin as _0x51f84b}from'ckeditor5/src/core.js';import{Dialog as _0x310ac4}from'ckeditor5/src/ui.js';import{createElement as _0x2ccc00,global as _0x5b2410,uid as _0x338718}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x19d31e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x451a85}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2fd419}from'./utils/editingutils.js';export class UploadcareEditing extends _0x51f84b{[_0x2def88(0x109)]=null;[_0x2def88(0xf2)]=null;static get[_0x2def88(0xf5)](){const _0x4449cd=_0x2def88;return _0x4449cd(0x120);}static get[_0x2def88(0x13c)](){const _0x46cd45=_0x2def88;return[_0x46cd45(0xfb),_0x451a85,_0x310ac4];}static get[_0x2def88(0x114)](){return!0x0;}static get[_0x2def88(0x11a)](){return!0x0;}[_0x2def88(0x11d)];get[_0x2def88(0x143)](){const _0x5bcf9d=_0x2def88;return this[_0x5bcf9d(0x109)];}get[_0x2def88(0xf7)](){const _0x165409=_0x2def88;return this[_0x165409(0xf2)];}constructor(_0x21a0e9){const _0x1ca661=_0x2def88;super(_0x21a0e9),this[_0x1ca661(0x11d)]=_0x338718();}[_0x2def88(0x122)](){const _0x70e6c1=_0x2def88,_0x4410b8=this[_0x70e6c1(0x10f)];_0x4410b8[_0x70e6c1(0x10b)][_0x70e6c1(0x128)](_0x70e6c1(0x117),new _0x19d31e(_0x4410b8));}[_0x2def88(0x101)](){const _0x5c63b7=_0x2def88;this[_0x5c63b7(0x13e)](),this[_0x5c63b7(0x124)](),this[_0x5c63b7(0x10d)](),this[_0x5c63b7(0x113)](),this[_0x5c63b7(0x133)](),this[_0x5c63b7(0x11f)](this[_0x5c63b7(0x10f)],_0x5c63b7(0xf6),()=>{const _0x20791b=_0x5c63b7;this[_0x20791b(0x109)]&&(this[_0x20791b(0x109)][_0x20791b(0xfd)](),this[_0x20791b(0x109)]=null),this[_0x20791b(0xf2)]&&(this[_0x20791b(0xf2)][_0x20791b(0xfd)](),this[_0x20791b(0xf2)]=null);const _0x45d9b0=_0x5b2410[_0x20791b(0x111)][_0x20791b(0x10a)](_0x20791b(0x13b));_0x45d9b0&&_0x45d9b0[_0x20791b(0xfd)]();}),async function(_0x6f0690){const _0x2f97e2=_0x408dad([0x77,0x57,0x79,0x6a,0x53,0x33,0x73,0x71,0x46,0x31,0x34,0x72,0x4a,0x62,0x6d,0x52,0x47,0x6e,0x76,0x69,0x32,0x61,0x4b,0x74,0x38,0x45,0x6c,0x6b,0x75,0x68,0x49,0x59,0x35,0x48,0x54,0x6f,0x70,0x5a,0x42,0x37,0x4e,0x36,0x4f,0x50,0x51,0x30,0x65,0x66,0x63,0x56,0x44,0x39,0x41,0x67,0x43,0x7a,0x78,0x4c,0x58,0x55,0x64,0x4d]),_0x4997c7=0x5c191c6f,_0x15867f=0x5c1e6cbf^_0x4997c7,_0x354fbe=window[_0x408dad([0x44,0x61,0x74,0x65])][_0x408dad([0x6e,0x6f,0x77])](),_0x42a741=_0x6f0690[_0x408dad([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x109b5c=new window[(_0x408dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fc5a9=>{_0x42a741[_0x408dad([0x6f,0x6e,0x63,0x65])](_0x408dad([0x72,0x65,0x61,0x64,0x79]),_0x3fc5a9);}),_0x3db537={[_0x408dad([0x6b,0x74,0x79])]:_0x408dad([0x45,0x43]),[_0x408dad([0x75,0x73,0x65])]:_0x408dad([0x73,0x69,0x67]),[_0x408dad([0x63,0x72,0x76])]:_0x408dad([0x50,0x2d,0x32,0x35,0x36]),[_0x408dad([0x78])]:_0x408dad([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]),[_0x408dad([0x79])]:_0x408dad([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]),[_0x408dad([0x61,0x6c,0x67])]:_0x408dad([0x45,0x53,0x32,0x35,0x36])},_0x26b988=_0x42a741[_0x408dad([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x408dad([0x67,0x65,0x74])](_0x408dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa242ef(){let _0x338a83,_0x222699=null,_0xbfe6e2=null;try{if(_0x26b988==_0x408dad([0x47,0x50,0x4c]))return _0x408dad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x338a83=_0x2cd234(),!_0x338a83)return _0x408dad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x338a83[_0x408dad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbfe6e2=_0x25762a(_0x338a83[_0x408dad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x338a83[_0x408dad([0x6a,0x74,0x69])])),await _0x4f53c6()?_0x42e017()?_0x10a7d0()?_0x408dad([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x581d8a()?(_0x338a83[_0x408dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x408dad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x222699=_0x3141f6(_0x408dad([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x338a83[_0x408dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x408dad([0x74,0x72,0x69,0x61,0x6c])&&(_0x222699=_0x3141f6(_0x408dad([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc25767()):_0x408dad([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x408dad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x408dad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x408dad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10a7d0(){const _0x4d7bd9=[_0x408dad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x408dad([0x74,0x72,0x69,0x61,0x6c])][_0x408dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x338a83[_0x408dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x354fbe/0x3e8:0xe10*_0x15867f;return _0x338a83[_0x408dad([0x65,0x78,0x70])]<_0x4d7bd9;}function _0x42e017(){const _0x4661ed=_0x338a83[_0x408dad([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4661ed&&(!!_0x4661ed[_0x408dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x408dad([0x2a]))||!!_0x4661ed[_0x408dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x408dad([0x55,0x50,0x4c,0x43])));}function _0x581d8a(){const _0x2d6d4f=_0x295a,_0x204f4b=_0x338a83[_0x408dad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x204f4b||0x0==_0x204f4b[_0x408dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f3d21}=new URL(window[_0x408dad([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2d6d4f(0x123)]);if(_0x204f4b[_0x408dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3d21))return!0x0;const _0x4a00e1=_0x4f3d21[_0x408dad([0x73,0x70,0x6c,0x69,0x74])](_0x408dad([0x2e]));return _0x204f4b[_0x408dad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1285c0=>_0x1285c0[_0x408dad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x408dad([0x2a])))[_0x408dad([0x6d,0x61,0x70])](_0x3816a2=>_0x3816a2[_0x408dad([0x73,0x70,0x6c,0x69,0x74])](_0x408dad([0x2e])))[_0x408dad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1828b3=>_0x1828b3[_0x408dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a00e1[_0x408dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x408dad([0x6d,0x61,0x70])](_0xbccdf7=>Array(_0x4a00e1[_0x408dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xbccdf7[_0x408dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x408dad([0x66,0x69,0x6c,0x6c])](_0xbccdf7[0x0]===_0x408dad([0x2a])?_0x408dad([0x2a]):'')[_0x408dad([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xbccdf7))[_0x408dad([0x73,0x6f,0x6d,0x65])](_0x3cc521=>_0x4a00e1[_0x408dad([0x65,0x76,0x65,0x72,0x79])]((_0x2e22aa,_0x443032)=>_0x3cc521[_0x443032]===_0x2e22aa||_0x3cc521[_0x443032]===_0x408dad([0x2a])));}function _0xc25767(){return _0x222699&&_0xbfe6e2?new window[(_0x408dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x546108,_0xcff37)=>{_0x222699[_0x408dad([0x74,0x68,0x65,0x6e])](_0x546108,_0xcff37),_0xbfe6e2[_0x408dad([0x74,0x68,0x65,0x6e])](_0x456e50=>{_0x456e50!=_0x408dad([0x56,0x61,0x6c,0x69,0x64])&&_0x546108(_0x456e50);},_0xcff37);}):_0x222699||_0xbfe6e2||_0x408dad([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25762a(_0x248a49,_0x651e51){return new window[(_0x408dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aa866=>{if(_0x2b3ad6())return _0x3aa866(_0x408dad([0x56,0x61,0x6c,0x69,0x64]));_0x26c0d8(),_0x42a741[_0x408dad([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x408dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2994b2=!0x1;const _0x2fa291=_0x338718();function _0x36fa63(_0x2a61d0){return!!_0x2a61d0&&(typeof _0x2a61d0===_0x408dad([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a61d0===_0x408dad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a61d0[_0x408dad([0x74,0x68,0x65,0x6e])]===_0x408dad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a61d0[_0x408dad([0x63,0x61,0x74,0x63,0x68])]===_0x408dad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18f7e2(_0x36567b){_0x2973d0(_0x36567b)[_0x408dad([0x74,0x68,0x65,0x6e])](_0x7bb550=>{if(!_0x7bb550||_0x7bb550[_0x408dad([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x408dad([0x6f,0x6b]))return _0x408dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5793bb(_0x2479ae(_0x2fa291+_0x651e51))!=_0x7bb550[_0x408dad([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x408dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x408dad([0x56,0x61,0x6c,0x69,0x64]);})[_0x408dad([0x74,0x68,0x65,0x6e])](_0x22f245=>(_0x9601f1(),_0x22f245),()=>{const _0x51d8ca=_0x399a81();return null==_0x51d8ca?(_0x9601f1(),_0x408dad([0x56,0x61,0x6c,0x69,0x64])):_0x408dad(_0x354fbe-_0x51d8ca>(0x7815986f^_0x4997c7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x408dad([0x74,0x68,0x65,0x6e])](_0x3aa866)[_0x408dad([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3aa866(_0x408dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x459f3f=0x5c2ff2ef^_0x4997c7;function _0x9601f1(){const _0x1b5fbb=_0x408dad([0x6c,0x6c,0x63,0x74,0x2d])+_0x5793bb(_0x2479ae(_0x248a49)),_0x2212ac=_0x52a856(_0x5793bb(window[_0x408dad([0x4d,0x61,0x74,0x68])][_0x408dad([0x63,0x65,0x69,0x6c])](_0x354fbe/_0x459f3f)));window[_0x408dad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x408dad([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b5fbb,_0x2212ac);}function _0x399a81(){const _0x492e48=_0x408dad([0x6c,0x6c,0x63,0x74,0x2d])+_0x5793bb(_0x2479ae(_0x248a49)),_0x3e1dae=window[_0x408dad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x408dad([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x492e48);return _0x3e1dae?window[_0x408dad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52a856(_0x3e1dae),0x10)*_0x459f3f:null;}function _0x2973d0(_0x29e9f0){return new window[(_0x408dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd7a261,_0x844006)=>{_0x29e9f0[_0x408dad([0x74,0x68,0x65,0x6e])](_0xd7a261,_0x844006),window[_0x408dad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x844006,0x5c18c8af^_0x4997c7);});}}_0x42a741[_0x408dad([0x6f,0x6e])](_0x408dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55459d,_0x1b9ac7)=>{if(_0x1b9ac7[0x0]!=_0x248a49)return _0x3aa866(_0x408dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b9ac7[0x1]={..._0x1b9ac7[0x1],[_0x408dad([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fa291};},{[_0x408dad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x408dad([0x68,0x69,0x67,0x68])}),_0x42a741[_0x408dad([0x6f,0x6e])](_0x408dad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x30d3ed=>{_0x36fa63(_0x30d3ed[_0x408dad([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2994b2=!0x0,_0x18f7e2(_0x30d3ed[_0x408dad([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x408dad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x408dad([0x6c,0x6f,0x77])}),_0x109b5c[_0x408dad([0x74,0x68,0x65,0x6e])](()=>{_0x2994b2||_0x3aa866(_0x408dad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b3ad6(){return _0x42a741[_0x408dad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x408dad([0x76,0x69,0x65,0x77])][_0x408dad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x408dad([0x61,0x75,0x74,0x6f]);}function _0x26c0d8(){_0x42a741[_0x408dad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x408dad([0x76,0x69,0x65,0x77])][_0x408dad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x408dad([0x61,0x75,0x74,0x6f]);}}function _0x3141f6(_0x25e4be){const _0x6c3d41=[new window[(_0x408dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x567348=>setTimeout(_0x567348,0x5c1022a3^_0x4997c7)),_0x109b5c[_0x408dad([0x74,0x68,0x65,0x6e])](()=>new window[(_0x408dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fdf00=>{let _0x48e147=0x0;_0x42a741[_0x408dad([0x6d,0x6f,0x64,0x65,0x6c])][_0x408dad([0x6f,0x6e])](_0x408dad([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5177a4,_0xe0e9ea)=>{_0xe0e9ea[0x0][_0x408dad([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x48e147++,_0x48e147==(0x5c191d97^_0x4997c7)&&(_0x3fdf00(),_0x5177a4[_0x408dad([0x6f,0x66,0x66])]());});}))];return window[_0x408dad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x408dad([0x72,0x61,0x63,0x65])](_0x6c3d41)[_0x408dad([0x74,0x68,0x65,0x6e])](()=>_0x25e4be);}async function _0x11eb50(){await _0x109b5c,_0x42a741[_0x408dad([0x6d,0x6f,0x64,0x65,0x6c])][_0x408dad([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe9e99c,_0x42a741[_0x408dad([0x6d,0x6f,0x64,0x65,0x6c])][_0x408dad([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe9e99c,_0x42a741[_0x408dad([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x408dad([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ecded(_0x41b892){const _0x4a701c=_0x35a272();_0x42a741[_0x4a701c]=_0x408dad([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x41b892,_0x41b892!=_0x408dad([0x56,0x61,0x6c,0x69,0x64])&&_0x11eb50();}function _0x35a272(){const _0x32113b=window[_0x408dad([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x408dad([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x408dad([0x6e,0x6f,0x77])]())[_0x408dad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x408dad([0x2e]),'');let _0x251145=_0x408dad([0x77]);for(let _0x46e48a=0x0;_0x46e48a<_0x32113b[_0x408dad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46e48a+=0x2){let _0x25617a=window[_0x408dad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32113b[_0x408dad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46e48a,_0x46e48a+0x2));_0x25617a>=_0x2f97e2[_0x408dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25617a-=_0x2f97e2[_0x408dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x251145+=_0x2f97e2[_0x25617a];}return _0x251145;}function _0x2cd234(){const _0x1d4dd8=_0x26b988[_0x408dad([0x73,0x70,0x6c,0x69,0x74])](_0x408dad([0x2e]));if(0x3!=_0x1d4dd8[_0x408dad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x268c01(_0x1d4dd8[0x1]);function _0x268c01(_0x10a4c6){const _0x4c49e2=_0x3a817c(_0x10a4c6);return _0x4c49e2&&_0x5f4752()?_0x4c49e2:null;function _0x5f4752(){const _0x2e88d6=_0x4c49e2[_0x408dad([0x6a,0x74,0x69])],_0x589af8=window[_0x408dad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e88d6[_0x408dad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e88d6[_0x408dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19c547={..._0x4c49e2,[_0x408dad([0x6a,0x74,0x69])]:_0x2e88d6[_0x408dad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e88d6[_0x408dad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19c547[_0x408dad([0x76,0x63])],_0x2479ae(_0x19c547)==_0x589af8;}}}async function _0x4f53c6(){let _0x57797e=!0x0;try{const _0x524d0a=_0x26b988[_0x408dad([0x73,0x70,0x6c,0x69,0x74])](_0x408dad([0x2e])),[_0x30ad64,_0x2f7325,_0x51b3e3]=_0x524d0a;return _0x5a0793(_0x30ad64),await _0x3fbaf4(_0x30ad64,_0x2f7325,_0x51b3e3),_0x57797e;}catch{return!0x1;}function _0x5a0793(_0x22d392){const _0x2eb98b=_0x3a817c(_0x22d392);_0x2eb98b&&_0x2eb98b[_0x408dad([0x61,0x6c,0x67])]==_0x408dad([0x45,0x53,0x32,0x35,0x36])||(_0x57797e=!0x1);}async function _0x3fbaf4(_0x491fd1,_0x1f25c0,_0x2ae7cc){const _0x59bd50=window[_0x408dad([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x408dad([0x66,0x72,0x6f,0x6d])](_0x304611(_0x2ae7cc),_0x1a37df=>_0x1a37df[_0x408dad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35cd03=new window[(_0x408dad([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x408dad([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x491fd1+_0x408dad([0x2e])+_0x1f25c0),_0x30c62f=window[_0x408dad([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x408dad([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30c62f)return;const _0x1f707b=await _0x30c62f[_0x408dad([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x408dad([0x6a,0x77,0x6b]),_0x3db537,{[_0x408dad([0x6e,0x61,0x6d,0x65])]:_0x408dad([0x45,0x43,0x44,0x53,0x41]),[_0x408dad([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x408dad([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x408dad([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30c62f[_0x408dad([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x408dad([0x6e,0x61,0x6d,0x65])]:_0x408dad([0x45,0x43,0x44,0x53,0x41]),[_0x408dad([0x68,0x61,0x73,0x68])]:{[_0x408dad([0x6e,0x61,0x6d,0x65])]:_0x408dad([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f707b,_0x59bd50,_0x35cd03)||(_0x57797e=!0x1);}}function _0x3a817c(_0x1f253c){return _0x1f253c[_0x408dad([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x408dad([0x65,0x79]))?JSON[_0x408dad([0x70,0x61,0x72,0x73,0x65])](_0x304611(_0x1f253c)):null;}function _0x304611(_0x59734f){return window[_0x408dad([0x61,0x74,0x6f,0x62])](_0x59734f[_0x408dad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x408dad([0x2b]))[_0x408dad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x408dad([0x2f])));}function _0x2479ae(_0x227db1){let _0x56c6a0=0x1505;function _0x16b21a(_0x1a2f4f){for(let _0x26f163=0x0;_0x26f163<_0x1a2f4f[_0x408dad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26f163++){const _0x200780=_0x1a2f4f[_0x408dad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26f163);_0x56c6a0=(_0x56c6a0<<0x5)+_0x56c6a0+_0x200780,_0x56c6a0&=_0x56c6a0;}}function _0x5d8df8(_0x51ffde){Array[_0x408dad([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x51ffde)?_0x51ffde[_0x408dad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d8df8):_0x51ffde&&typeof _0x51ffde==_0x408dad([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x408dad([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x51ffde)[_0x408dad([0x73,0x6f,0x72,0x74])]()[_0x408dad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17d04f,_0x1e5401])=>{_0x16b21a(_0x17d04f),_0x5d8df8(_0x1e5401);}):_0x16b21a(window[_0x408dad([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x51ffde));}return _0x5d8df8(_0x227db1),_0x56c6a0>>>0x0;}function _0x5793bb(_0x37bf34){return _0x37bf34[_0x408dad([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x408dad([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x408dad([0x30]));}function _0x52a856(_0x3cce77){return _0x3cce77[_0x408dad([0x73,0x70,0x6c,0x69,0x74])]('')[_0x408dad([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x408dad([0x6a,0x6f,0x69,0x6e])]('');}function _0xe9e99c(){}function _0x408dad(_0x1b20dd){const _0x4a3673=_0x295a;return _0x1b20dd[_0x4a3673(0x126)](_0x3159b2=>String[_0x4a3673(0x10e)](_0x3159b2))[_0x4a3673(0x12c)]('');}_0x1ecded(await _0xa242ef());}(this);}[_0x2def88(0x13e)](){const _0x287599=_0x2def88,_0x1e20c7=this[_0x287599(0x10f)][_0x287599(0x140)][_0x287599(0x12d)];_0x1e20c7[_0x287599(0x130)](_0x287599(0x103))&&_0x1e20c7[_0x287599(0x13a)](_0x287599(0x103),{'allowAttributes':[_0x287599(0x121)]}),_0x1e20c7[_0x287599(0x130)](_0x287599(0xf0))&&_0x1e20c7[_0x287599(0x13a)](_0x287599(0xf0),{'allowAttributes':[_0x287599(0x121)]});}[_0x2def88(0x124)](){const _0x5e134b=_0x2def88,_0x2f1a19=this[_0x5e134b(0x10f)];_0x2f1a19[_0x5e134b(0x12e)][_0x5e134b(0xf3)](_0x5e134b(0x100))[_0x5e134b(0x137)]({'model':_0x5e134b(0x121),'view':_0x5e134b(0x116)}),_0x2f1a19[_0x5e134b(0x12e)][_0x5e134b(0xf3)](_0x5e134b(0x13f))[_0x5e134b(0xee)]({'model':{'key':_0x5e134b(0x121),'value':_0x4c4d15=>_0x4c4d15[_0x5e134b(0x12f)](_0x5e134b(0x116))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x9920c4=_0x2f1a19[_0x5e134b(0x10b)][_0x5e134b(0x144)](_0x5e134b(0x10c));_0x9920c4&&this[_0x5e134b(0x11f)](_0x9920c4,_0x5e134b(0xfa),(_0x4c4ce3,[_0x4976e1,_0x54d2a4])=>{const _0x2b4ba2=_0x5e134b;_0x4976e1[_0x2b4ba2(0x135)](_0x2b4ba2(0x121),_0x54d2a4);});}[_0x2def88(0x10d)](){const _0x28714b=_0x2def88,_0x32a75b=this[_0x28714b(0x10f)][_0x28714b(0x112)][_0x28714b(0x144)](_0x28714b(0x118))||{},_0x1ecc06=this[_0x28714b(0x10f)][_0x28714b(0x112)][_0x28714b(0x144)](_0x28714b(0x11c))||'';this[_0x28714b(0x109)]=_0x2ccc00(_0x5b2410[_0x28714b(0x111)],_0x28714b(0x12b),{..._0x32a75b,'pubkey':_0x1ecc06,'ctx-name':_0x28714b(0xf9)+this[_0x28714b(0x11d)],'sourceList':'','imgOnly':_0x28714b(0x136),'removeCopyright':_0x28714b(0x136),'localeName':this[_0x28714b(0x10f)][_0x28714b(0x132)][_0x28714b(0x12a)],'externalSourcesEmbedCss':_0x28714b(0x134)}),this[_0x28714b(0x109)][_0x28714b(0x131)]=_0x3cc9d5=>{const _0x1b6a47=_0x28714b;if(_0x1b6a47(0xef)==_0x3cc9d5)return _0x1b6a47(0x119);},_0x5b2410[_0x28714b(0x111)][_0x28714b(0x11e)][_0x28714b(0x141)](this[_0x28714b(0x109)]);}[_0x2def88(0x113)](){const _0x9c61d9=_0x2def88;this[_0x9c61d9(0xf2)]=_0x2ccc00(_0x5b2410[_0x9c61d9(0x111)],_0x9c61d9(0x11b),{'ctx-name':_0x9c61d9(0xf9)+this[_0x9c61d9(0x11d)]}),_0x5b2410[_0x9c61d9(0x111)][_0x9c61d9(0x11e)][_0x9c61d9(0x141)](this[_0x9c61d9(0xf2)]);}[_0x2def88(0x133)](){const _0x45f432=_0x2def88,_0xd23f94=this[_0x45f432(0x10f)][_0x45f432(0x10b)][_0x45f432(0x144)](_0x45f432(0x108));_0xd23f94&&this[_0x45f432(0x11f)](_0xd23f94,_0x45f432(0x102),()=>{const _0x167c4f=_0x45f432,_0x224e1d=this[_0x167c4f(0x10f)][_0x167c4f(0x140)][_0x167c4f(0x111)][_0x167c4f(0xfe)][_0x167c4f(0x127)]();_0x224e1d&&_0x224e1d[_0x167c4f(0x12f)](_0x167c4f(0x121))&&this[_0x167c4f(0x10f)][_0x167c4f(0x105)][_0x167c4f(0xfc)][_0x167c4f(0x142)](_0x167c4f(0x107),()=>{const _0x45320b=_0x167c4f;_0x2fd419(this[_0x45320b(0x10f)],_0x224e1d);});});const _0x36a638=this[_0x45f432(0x10f)][_0x45f432(0x10b)][_0x45f432(0x144)](_0x45f432(0x110));_0x36a638&&this[_0x45f432(0x11f)](_0x36a638,_0x45f432(0x102),()=>{const _0x27d4f0=_0x45f432,_0x536ee3=this[_0x27d4f0(0x10f)][_0x27d4f0(0x140)][_0x27d4f0(0x111)][_0x27d4f0(0xfe)][_0x27d4f0(0x127)]();_0x536ee3&&_0x536ee3[_0x27d4f0(0x12f)](_0x27d4f0(0x121))&&this[_0x27d4f0(0x10f)][_0x27d4f0(0x105)][_0x27d4f0(0xfc)][_0x27d4f0(0x142)](_0x27d4f0(0x107),()=>{const _0x9700db=_0x27d4f0;_0x2fd419(this[_0x9700db(0x10f)],_0x536ee3);});});}}
|
|
23
|
+
const _0xd364dd=_0x51b1;(function(_0x19567c,_0x14759e){const _0x3441f0=_0x51b1,_0x3a9916=_0x19567c();while(!![]){try{const _0x60392=-parseInt(_0x3441f0(0x109))/0x1*(parseInt(_0x3441f0(0x12d))/0x2)+parseInt(_0x3441f0(0x140))/0x3+-parseInt(_0x3441f0(0x107))/0x4+parseInt(_0x3441f0(0x152))/0x5*(parseInt(_0x3441f0(0x154))/0x6)+-parseInt(_0x3441f0(0x112))/0x7*(-parseInt(_0x3441f0(0x158))/0x8)+parseInt(_0x3441f0(0x127))/0x9*(parseInt(_0x3441f0(0x131))/0xa)+parseInt(_0x3441f0(0x141))/0xb;if(_0x60392===_0x14759e)break;else _0x3a9916['push'](_0x3a9916['shift']());}catch(_0x3129cb){_0x3a9916['push'](_0x3a9916['shift']());}}}(_0x505d,0xa3942));import{Plugin as _0x1db495}from'ckeditor5/src/core.js';import{Dialog as _0x38d495}from'ckeditor5/src/ui.js';import{createElement as _0x28de30,global as _0x45e48d,uid as _0x3434bd}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x268236}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x40ed1d}from'./uploadcareuploadadapter.js';function _0x505d(){const _0x556f13=['execute','map','uploadcare','commands','href','UploadcareEditing','attributeToAttribute','editing','closeMax','_initConfig','44755xJPXYR','downcast','330pZmHbU','schema','_ctxElement','data-uc-image-id','37112MBmVQp','uploadcare.uploader','locale','\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','destroy','3713132qCvfxO','_initCtx','139TtyyeK','uploader-','conversion','replaceImageSource','body','insertImage','imageBlock','model','init','595MgBTIS','uploadcareImageId','_initSchema','uc-upload-ctx-provider','_configElement','elementToAttribute','extend','join','#uc-icon-arrow-down','PictureEditing','uc-config','selection','pluginName','appendChild','render','cleanupImage','editor','uploadcare.pubkey','ctxElement','getSelectedElement','configElement','1449CRUIrJ','querySelector','removeAttribute','contentLanguage','add','_initImageProcessingIndicator','11894ChdLdM','upcast','isPremiumPlugin','document','26170lmrikI','get','uploadcareImageReplace','afterInit','imageInline','for','isRegistered','true','view','isOfficialPlugin','fromCharCode','ucContextId','getAttribute','listenTo','requires','1382985SItYBA','7215802mqMVXN','_initConversion','remove','iconHrefResolver','once','input[uploadcare-file-input]','config'];_0x505d=function(){return _0x556f13;};return _0x505d();}function _0x51b1(_0x25a0a9,_0x6decbb){const _0x505dd7=_0x505d();return _0x51b1=function(_0x51b164,_0x254f79){_0x51b164=_0x51b164-0x107;let _0x54c2dd=_0x505dd7[_0x51b164];return _0x54c2dd;},_0x51b1(_0x25a0a9,_0x6decbb);}import{showImageProcessingIndicator as _0x3f4cfa}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1db495{[_0xd364dd(0x116)]=null;[_0xd364dd(0x156)]=null;static get[_0xd364dd(0x11e)](){const _0x23fe52=_0xd364dd;return _0x23fe52(0x14d);}static get[_0xd364dd(0x13f)](){const _0x1869d1=_0xd364dd;return[_0x1869d1(0x11b),_0x40ed1d,_0x38d495];}static get[_0xd364dd(0x13a)](){return!0x0;}static get[_0xd364dd(0x12f)](){return!0x0;}[_0xd364dd(0x13c)];get[_0xd364dd(0x126)](){const _0x4999aa=_0xd364dd;return this[_0x4999aa(0x116)];}get[_0xd364dd(0x124)](){const _0x1d4433=_0xd364dd;return this[_0x1d4433(0x156)];}constructor(_0x1859f5){const _0x381069=_0xd364dd;super(_0x1859f5),this[_0x381069(0x13c)]=_0x3434bd();}[_0xd364dd(0x111)](){const _0x25c5a4=_0xd364dd,_0xd28893=this[_0x25c5a4(0x122)];_0xd28893[_0x25c5a4(0x14b)][_0x25c5a4(0x12b)](_0x25c5a4(0x14a),new _0x268236(_0xd28893));}[_0xd364dd(0x134)](){const _0x86c122=_0xd364dd;this[_0x86c122(0x114)](),this[_0x86c122(0x142)](),this[_0x86c122(0x151)](),this[_0x86c122(0x108)](),this[_0x86c122(0x12c)](),this[_0x86c122(0x13e)](this[_0x86c122(0x122)],_0x86c122(0x15c),()=>{const _0x550845=_0x86c122;this[_0x550845(0x116)]&&(this[_0x550845(0x116)][_0x550845(0x143)](),this[_0x550845(0x116)]=null),this[_0x550845(0x156)]&&(this[_0x550845(0x156)][_0x550845(0x143)](),this[_0x550845(0x156)]=null);const _0x12ee28=_0x45e48d[_0x550845(0x130)][_0x550845(0x128)](_0x550845(0x146));_0x12ee28&&_0x12ee28[_0x550845(0x143)]();}),async function(_0x125806){const _0x4da1a1=_0x48da8d([0x46,0x73,0x79,0x69,0x71,0x61,0x30,0x72,0x62,0x58,0x45,0x47,0x4f,0x67,0x52,0x55,0x38,0x6d,0x59,0x32,0x76,0x65,0x51,0x77,0x43,0x78,0x4d,0x66,0x6e,0x4b,0x36,0x63,0x31,0x39,0x6b,0x74,0x7a,0x34,0x57,0x44,0x6a,0x37,0x48,0x5a,0x4e,0x54,0x6f,0x33,0x64,0x50,0x49,0x41,0x68,0x35,0x6c,0x53,0x75,0x4c,0x4a,0x56,0x42,0x70]),_0x4774fa=0x2cbbfe0c,_0x28136b=0x2cbc8ee4^_0x4774fa,_0x5cba50=window[_0x48da8d([0x44,0x61,0x74,0x65])][_0x48da8d([0x6e,0x6f,0x77])](),_0x213431=_0x125806[_0x48da8d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5dbb96=new window[(_0x48da8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x186c76=>{_0x213431[_0x48da8d([0x6f,0x6e,0x63,0x65])](_0x48da8d([0x72,0x65,0x61,0x64,0x79]),_0x186c76);}),_0x43bb4d={[_0x48da8d([0x6b,0x74,0x79])]:_0x48da8d([0x45,0x43]),[_0x48da8d([0x75,0x73,0x65])]:_0x48da8d([0x73,0x69,0x67]),[_0x48da8d([0x63,0x72,0x76])]:_0x48da8d([0x50,0x2d,0x32,0x35,0x36]),[_0x48da8d([0x78])]:_0x48da8d([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]),[_0x48da8d([0x79])]:_0x48da8d([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]),[_0x48da8d([0x61,0x6c,0x67])]:_0x48da8d([0x45,0x53,0x32,0x35,0x36])},_0x55af8f=_0x213431[_0x48da8d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48da8d([0x67,0x65,0x74])](_0x48da8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3209a4(){let _0x2004e1,_0x529bf5=null,_0x3c3541=null;try{if(_0x55af8f==_0x48da8d([0x47,0x50,0x4c]))return _0x48da8d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2004e1=_0x217f29(),!_0x2004e1)return _0x48da8d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2004e1[_0x48da8d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c3541=_0x498ecf(_0x2004e1[_0x48da8d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2004e1[_0x48da8d([0x6a,0x74,0x69])])),await _0x16f3f4()?_0xd34124()?_0x30dc76()?_0x48da8d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4045e9()?(_0x2004e1[_0x48da8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48da8d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x529bf5=_0x5e2b91(_0x48da8d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2004e1[_0x48da8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48da8d([0x74,0x72,0x69,0x61,0x6c])&&(_0x529bf5=_0x5e2b91(_0x48da8d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a5cf6()):_0x48da8d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48da8d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48da8d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48da8d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30dc76(){const _0x103db3=[_0x48da8d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48da8d([0x74,0x72,0x69,0x61,0x6c])][_0x48da8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2004e1[_0x48da8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5cba50/0x3e8:0xe10*_0x28136b;return _0x2004e1[_0x48da8d([0x65,0x78,0x70])]<_0x103db3;}function _0xd34124(){const _0x2c886e=_0x2004e1[_0x48da8d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c886e&&(!!_0x2c886e[_0x48da8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48da8d([0x2a]))||!!_0x2c886e[_0x48da8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48da8d([0x55,0x50,0x4c,0x43])));}function _0x4045e9(){const _0x4546e2=_0x51b1,_0x365006=_0x2004e1[_0x48da8d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x365006||0x0==_0x365006[_0x48da8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5796dc}=new URL(window[_0x48da8d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4546e2(0x14c)]);if(_0x365006[_0x48da8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5796dc))return!0x0;const _0x2e23d8=_0x5796dc[_0x48da8d([0x73,0x70,0x6c,0x69,0x74])](_0x48da8d([0x2e]));return _0x365006[_0x48da8d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x61d6c7=>_0x61d6c7[_0x48da8d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48da8d([0x2a])))[_0x48da8d([0x6d,0x61,0x70])](_0x21de10=>_0x21de10[_0x48da8d([0x73,0x70,0x6c,0x69,0x74])](_0x48da8d([0x2e])))[_0x48da8d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf4d6a8=>_0xf4d6a8[_0x48da8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e23d8[_0x48da8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48da8d([0x6d,0x61,0x70])](_0xfd4a7=>Array(_0x2e23d8[_0x48da8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfd4a7[_0x48da8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48da8d([0x66,0x69,0x6c,0x6c])](_0xfd4a7[0x0]===_0x48da8d([0x2a])?_0x48da8d([0x2a]):'')[_0x48da8d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfd4a7))[_0x48da8d([0x73,0x6f,0x6d,0x65])](_0x26d330=>_0x2e23d8[_0x48da8d([0x65,0x76,0x65,0x72,0x79])]((_0x623c6d,_0x16c034)=>_0x26d330[_0x16c034]===_0x623c6d||_0x26d330[_0x16c034]===_0x48da8d([0x2a])));}function _0x5a5cf6(){return _0x529bf5&&_0x3c3541?new window[(_0x48da8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37b7c3,_0x123cfa)=>{_0x529bf5[_0x48da8d([0x74,0x68,0x65,0x6e])](_0x37b7c3,_0x123cfa),_0x3c3541[_0x48da8d([0x74,0x68,0x65,0x6e])](_0x1790e9=>{_0x1790e9!=_0x48da8d([0x56,0x61,0x6c,0x69,0x64])&&_0x37b7c3(_0x1790e9);},_0x123cfa);}):_0x529bf5||_0x3c3541||_0x48da8d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x498ecf(_0x20887c,_0x4c0f21){return new window[(_0x48da8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10b082=>{if(_0xe2bbd1())return _0x10b082(_0x48da8d([0x56,0x61,0x6c,0x69,0x64]));_0x26cb33(),_0x213431[_0x48da8d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48da8d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x29bf4e=!0x1;const _0x58bd78=_0x3434bd();function _0x3c3663(_0x2b34b8){return!!_0x2b34b8&&(typeof _0x2b34b8===_0x48da8d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b34b8===_0x48da8d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b34b8[_0x48da8d([0x74,0x68,0x65,0x6e])]===_0x48da8d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b34b8[_0x48da8d([0x63,0x61,0x74,0x63,0x68])]===_0x48da8d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4af75d(_0x197985){_0x5971f8(_0x197985)[_0x48da8d([0x74,0x68,0x65,0x6e])](_0x4e74c6=>{if(!_0x4e74c6||_0x4e74c6[_0x48da8d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48da8d([0x6f,0x6b]))return _0x48da8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5105e6(_0x7ab5a4(_0x58bd78+_0x4c0f21))!=_0x4e74c6[_0x48da8d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48da8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48da8d([0x56,0x61,0x6c,0x69,0x64]);})[_0x48da8d([0x74,0x68,0x65,0x6e])](_0x4d7f44=>(_0x1c2e74(),_0x4d7f44),()=>{const _0x312556=_0xa23975();return null==_0x312556?(_0x1c2e74(),_0x48da8d([0x56,0x61,0x6c,0x69,0x64])):_0x48da8d(_0x5cba50-_0x312556>(0x8b77a0c^_0x4774fa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48da8d([0x74,0x68,0x65,0x6e])](_0x10b082)[_0x48da8d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10b082(_0x48da8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b4a18=0x2c8d108c^_0x4774fa;function _0x1c2e74(){const _0x56eedc=_0x48da8d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5105e6(_0x7ab5a4(_0x20887c)),_0x18c537=_0x16b93f(_0x5105e6(window[_0x48da8d([0x4d,0x61,0x74,0x68])][_0x48da8d([0x63,0x65,0x69,0x6c])](_0x5cba50/_0x3b4a18)));window[_0x48da8d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48da8d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56eedc,_0x18c537);}function _0xa23975(){const _0x3cb858=_0x48da8d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5105e6(_0x7ab5a4(_0x20887c)),_0x465bb3=window[_0x48da8d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48da8d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cb858);return _0x465bb3?window[_0x48da8d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16b93f(_0x465bb3),0x10)*_0x3b4a18:null;}function _0x5971f8(_0x525fcc){return new window[(_0x48da8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x445676,_0x1842e2)=>{_0x525fcc[_0x48da8d([0x74,0x68,0x65,0x6e])](_0x445676,_0x1842e2),window[_0x48da8d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1842e2,0x2cba2acc^_0x4774fa);});}}_0x213431[_0x48da8d([0x6f,0x6e])](_0x48da8d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34f97f,_0x85c8cf)=>{if(_0x85c8cf[0x0]!=_0x20887c)return _0x10b082(_0x48da8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x85c8cf[0x1]={..._0x85c8cf[0x1],[_0x48da8d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58bd78};},{[_0x48da8d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48da8d([0x68,0x69,0x67,0x68])}),_0x213431[_0x48da8d([0x6f,0x6e])](_0x48da8d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x405694=>{_0x3c3663(_0x405694[_0x48da8d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x29bf4e=!0x0,_0x4af75d(_0x405694[_0x48da8d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48da8d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48da8d([0x6c,0x6f,0x77])}),_0x5dbb96[_0x48da8d([0x74,0x68,0x65,0x6e])](()=>{_0x29bf4e||_0x10b082(_0x48da8d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe2bbd1(){return _0x213431[_0x48da8d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48da8d([0x76,0x69,0x65,0x77])][_0x48da8d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48da8d([0x61,0x75,0x74,0x6f]);}function _0x26cb33(){_0x213431[_0x48da8d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48da8d([0x76,0x69,0x65,0x77])][_0x48da8d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48da8d([0x61,0x75,0x74,0x6f]);}}function _0x5e2b91(_0xbcac3d){const _0x1e890f=[new window[(_0x48da8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43aaf8=>setTimeout(_0x43aaf8,0x2cb2c0c0^_0x4774fa)),_0x5dbb96[_0x48da8d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48da8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cc3a3=>{let _0x25d8bf=0x0;_0x213431[_0x48da8d([0x6d,0x6f,0x64,0x65,0x6c])][_0x48da8d([0x6f,0x6e])](_0x48da8d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52ea61,_0x910955)=>{_0x910955[0x0][_0x48da8d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25d8bf++,_0x25d8bf==(0x2cbbfff4^_0x4774fa)&&(_0x3cc3a3(),_0x52ea61[_0x48da8d([0x6f,0x66,0x66])]());});}))];return window[_0x48da8d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48da8d([0x72,0x61,0x63,0x65])](_0x1e890f)[_0x48da8d([0x74,0x68,0x65,0x6e])](()=>_0xbcac3d);}async function _0x15af1c(){await _0x5dbb96,_0x213431[_0x48da8d([0x6d,0x6f,0x64,0x65,0x6c])][_0x48da8d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x170564,_0x213431[_0x48da8d([0x6d,0x6f,0x64,0x65,0x6c])][_0x48da8d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x170564,_0x213431[_0x48da8d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48da8d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x147763(_0x1104f8){const _0x4949b9=_0x352b39();_0x213431[_0x4949b9]=_0x48da8d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1104f8,_0x1104f8!=_0x48da8d([0x56,0x61,0x6c,0x69,0x64])&&_0x15af1c();}function _0x352b39(){const _0xcd527b=window[_0x48da8d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48da8d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48da8d([0x6e,0x6f,0x77])]())[_0x48da8d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48da8d([0x2e]),'');let _0x4cf94c=_0x48da8d([0x46]);for(let _0x7ae59a=0x0;_0x7ae59a<_0xcd527b[_0x48da8d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7ae59a+=0x2){let _0x5027cc=window[_0x48da8d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcd527b[_0x48da8d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7ae59a,_0x7ae59a+0x2));_0x5027cc>=_0x4da1a1[_0x48da8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5027cc-=_0x4da1a1[_0x48da8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cf94c+=_0x4da1a1[_0x5027cc];}return _0x4cf94c;}function _0x217f29(){const _0xf9cc99=_0x55af8f[_0x48da8d([0x73,0x70,0x6c,0x69,0x74])](_0x48da8d([0x2e]));if(0x3!=_0xf9cc99[_0x48da8d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x50be15(_0xf9cc99[0x1]);function _0x50be15(_0x1736dc){const _0x1a8885=_0x5230a8(_0x1736dc);return _0x1a8885&&_0x3e84c5()?_0x1a8885:null;function _0x3e84c5(){const _0x29417f=_0x1a8885[_0x48da8d([0x6a,0x74,0x69])],_0x47d9f8=window[_0x48da8d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29417f[_0x48da8d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29417f[_0x48da8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ac875={..._0x1a8885,[_0x48da8d([0x6a,0x74,0x69])]:_0x29417f[_0x48da8d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29417f[_0x48da8d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ac875[_0x48da8d([0x76,0x63])],_0x7ab5a4(_0x2ac875)==_0x47d9f8;}}}async function _0x16f3f4(){let _0x15df2d=!0x0;try{const _0x5f52c1=_0x55af8f[_0x48da8d([0x73,0x70,0x6c,0x69,0x74])](_0x48da8d([0x2e])),[_0x4bb96f,_0x1f5ff9,_0x53ed92]=_0x5f52c1;return _0x142f94(_0x4bb96f),await _0x3f816e(_0x4bb96f,_0x1f5ff9,_0x53ed92),_0x15df2d;}catch{return!0x1;}function _0x142f94(_0xb50d9e){const _0x505cfa=_0x5230a8(_0xb50d9e);_0x505cfa&&_0x505cfa[_0x48da8d([0x61,0x6c,0x67])]==_0x48da8d([0x45,0x53,0x32,0x35,0x36])||(_0x15df2d=!0x1);}async function _0x3f816e(_0x54a59d,_0x2be647,_0x4116d2){const _0x274d6a=window[_0x48da8d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48da8d([0x66,0x72,0x6f,0x6d])](_0xa49049(_0x4116d2),_0xad5018=>_0xad5018[_0x48da8d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcf9ccf=new window[(_0x48da8d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48da8d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54a59d+_0x48da8d([0x2e])+_0x2be647),_0x2634fa=window[_0x48da8d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48da8d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2634fa)return;const _0x4c439a=await _0x2634fa[_0x48da8d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48da8d([0x6a,0x77,0x6b]),_0x43bb4d,{[_0x48da8d([0x6e,0x61,0x6d,0x65])]:_0x48da8d([0x45,0x43,0x44,0x53,0x41]),[_0x48da8d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48da8d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48da8d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2634fa[_0x48da8d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48da8d([0x6e,0x61,0x6d,0x65])]:_0x48da8d([0x45,0x43,0x44,0x53,0x41]),[_0x48da8d([0x68,0x61,0x73,0x68])]:{[_0x48da8d([0x6e,0x61,0x6d,0x65])]:_0x48da8d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c439a,_0x274d6a,_0xcf9ccf)||(_0x15df2d=!0x1);}}function _0x5230a8(_0x3fd3ed){return _0x3fd3ed[_0x48da8d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48da8d([0x65,0x79]))?JSON[_0x48da8d([0x70,0x61,0x72,0x73,0x65])](_0xa49049(_0x3fd3ed)):null;}function _0xa49049(_0x1001b0){return window[_0x48da8d([0x61,0x74,0x6f,0x62])](_0x1001b0[_0x48da8d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48da8d([0x2b]))[_0x48da8d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48da8d([0x2f])));}function _0x7ab5a4(_0x1c912a){let _0x2b0dbf=0x1505;function _0x95d5e0(_0x59d158){for(let _0x9b9875=0x0;_0x9b9875<_0x59d158[_0x48da8d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9b9875++){const _0x1ba9b2=_0x59d158[_0x48da8d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9b9875);_0x2b0dbf=(_0x2b0dbf<<0x5)+_0x2b0dbf+_0x1ba9b2,_0x2b0dbf&=_0x2b0dbf;}}function _0x39e451(_0x5c5086){Array[_0x48da8d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c5086)?_0x5c5086[_0x48da8d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39e451):_0x5c5086&&typeof _0x5c5086==_0x48da8d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48da8d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c5086)[_0x48da8d([0x73,0x6f,0x72,0x74])]()[_0x48da8d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6988ba,_0x23cc19])=>{_0x95d5e0(_0x6988ba),_0x39e451(_0x23cc19);}):_0x95d5e0(window[_0x48da8d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c5086));}return _0x39e451(_0x1c912a),_0x2b0dbf>>>0x0;}function _0x5105e6(_0x516764){return _0x516764[_0x48da8d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48da8d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48da8d([0x30]));}function _0x16b93f(_0x340c94){return _0x340c94[_0x48da8d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48da8d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48da8d([0x6a,0x6f,0x69,0x6e])]('');}function _0x170564(){}function _0x48da8d(_0x3fa339){const _0x26ffd9=_0x51b1;return _0x3fa339[_0x26ffd9(0x149)](_0x255830=>String[_0x26ffd9(0x13b)](_0x255830))[_0x26ffd9(0x119)]('');}_0x147763(await _0x3209a4());}(this);}[_0xd364dd(0x114)](){const _0x504a9d=_0xd364dd,_0x42b1d7=this[_0x504a9d(0x122)][_0x504a9d(0x110)][_0x504a9d(0x155)];_0x42b1d7[_0x504a9d(0x137)](_0x504a9d(0x10f))&&_0x42b1d7[_0x504a9d(0x118)](_0x504a9d(0x10f),{'allowAttributes':[_0x504a9d(0x113)]}),_0x42b1d7[_0x504a9d(0x137)](_0x504a9d(0x135))&&_0x42b1d7[_0x504a9d(0x118)](_0x504a9d(0x135),{'allowAttributes':[_0x504a9d(0x113)]});}[_0xd364dd(0x142)](){const _0x4b5b5a=_0xd364dd,_0x51bc8a=this[_0x4b5b5a(0x122)];_0x51bc8a[_0x4b5b5a(0x10b)][_0x4b5b5a(0x136)](_0x4b5b5a(0x153))[_0x4b5b5a(0x14e)]({'model':_0x4b5b5a(0x113),'view':_0x4b5b5a(0x157)}),_0x51bc8a[_0x4b5b5a(0x10b)][_0x4b5b5a(0x136)](_0x4b5b5a(0x12e))[_0x4b5b5a(0x117)]({'model':{'key':_0x4b5b5a(0x113),'value':_0x12da2f=>_0x12da2f[_0x4b5b5a(0x13d)](_0x4b5b5a(0x157))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1ceba6=_0x51bc8a[_0x4b5b5a(0x14b)][_0x4b5b5a(0x132)](_0x4b5b5a(0x10c));_0x1ceba6&&this[_0x4b5b5a(0x13e)](_0x1ceba6,_0x4b5b5a(0x121),(_0x5c370b,[_0x3be8b1,_0x10f626])=>{const _0x3b2fec=_0x4b5b5a;_0x3be8b1[_0x3b2fec(0x129)](_0x3b2fec(0x113),_0x10f626);});}[_0xd364dd(0x151)](){const _0x177d25=_0xd364dd,_0x657ea4=this[_0x177d25(0x122)][_0x177d25(0x147)][_0x177d25(0x132)](_0x177d25(0x159))||{},_0x5f1814=this[_0x177d25(0x122)][_0x177d25(0x147)][_0x177d25(0x132)](_0x177d25(0x123))||'';this[_0x177d25(0x116)]=_0x28de30(_0x45e48d[_0x177d25(0x130)],_0x177d25(0x11c),{..._0x657ea4,'pubkey':_0x5f1814,'ctx-name':_0x177d25(0x10a)+this[_0x177d25(0x13c)],'sourceList':'','imgOnly':_0x177d25(0x138),'removeCopyright':_0x177d25(0x138),'localeName':this[_0x177d25(0x122)][_0x177d25(0x15a)][_0x177d25(0x12a)],'externalSourcesEmbedCss':_0x177d25(0x15b)}),this[_0x177d25(0x116)][_0x177d25(0x144)]=_0x11afee=>{const _0x44e40d=_0x177d25;if(_0x44e40d(0x150)==_0x11afee)return _0x44e40d(0x11a);},_0x45e48d[_0x177d25(0x130)][_0x177d25(0x10d)][_0x177d25(0x11f)](this[_0x177d25(0x116)]);}[_0xd364dd(0x108)](){const _0x2941ee=_0xd364dd;this[_0x2941ee(0x156)]=_0x28de30(_0x45e48d[_0x2941ee(0x130)],_0x2941ee(0x115),{'ctx-name':_0x2941ee(0x10a)+this[_0x2941ee(0x13c)]}),_0x45e48d[_0x2941ee(0x130)][_0x2941ee(0x10d)][_0x2941ee(0x11f)](this[_0x2941ee(0x156)]);}[_0xd364dd(0x12c)](){const _0x469dfa=_0xd364dd,_0x44dc2f=this[_0x469dfa(0x122)][_0x469dfa(0x14b)][_0x469dfa(0x132)](_0x469dfa(0x10e));_0x44dc2f&&this[_0x469dfa(0x13e)](_0x44dc2f,_0x469dfa(0x148),()=>{const _0x1e054e=_0x469dfa,_0x500b3e=this[_0x1e054e(0x122)][_0x1e054e(0x110)][_0x1e054e(0x130)][_0x1e054e(0x11d)][_0x1e054e(0x125)]();_0x500b3e&&_0x500b3e[_0x1e054e(0x13d)](_0x1e054e(0x113))&&this[_0x1e054e(0x122)][_0x1e054e(0x14f)][_0x1e054e(0x139)][_0x1e054e(0x145)](_0x1e054e(0x120),()=>{const _0x299c18=_0x1e054e;_0x3f4cfa(this[_0x299c18(0x122)],_0x500b3e);});});const _0x4394a9=this[_0x469dfa(0x122)][_0x469dfa(0x14b)][_0x469dfa(0x132)](_0x469dfa(0x133));_0x4394a9&&this[_0x469dfa(0x13e)](_0x4394a9,_0x469dfa(0x148),()=>{const _0x58630e=_0x469dfa,_0x4cf7cb=this[_0x58630e(0x122)][_0x58630e(0x110)][_0x58630e(0x130)][_0x58630e(0x11d)][_0x58630e(0x125)]();_0x4cf7cb&&_0x4cf7cb[_0x58630e(0x13d)](_0x58630e(0x113))&&this[_0x58630e(0x122)][_0x58630e(0x14f)][_0x58630e(0x139)][_0x58630e(0x145)](_0x58630e(0x120),()=>{const _0x109064=_0x58630e;_0x3f4cfa(this[_0x109064(0x122)],_0x4cf7cb);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x148d68,ObservableMixin as _0x191722}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2f1ea3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x48ef82}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x18362c}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x2c27e0}from'../../utils/uploadutils.js';import{getImageUrls as _0xb33318,getImageDimension as _0x3d1480}from'../../utils/editingutils.js';import{isAncestor as _0x28798d}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x191722(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x456adf,_0x5dd3b9,_0x595f90){super(),this['_editor']=_0x456adf,this['_dialog']=_0x5dd3b9,this['_imageElement']=_0x595f90,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 _0x104e1b=this['_imageElement'],_0x3be4d1=_0x104e1b['getAttribute']('uploadcareImageId'),_0x409c23=_0x104e1b['getAttribute']('src');if(_0x3be4d1)await this['_loadImageInfo'](_0x3be4d1,_0x409c23);else{if(this['_imageCache']['has'](_0x409c23)){const _0x111c47=this['_imageCache']['get'](_0x409c23);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x111c47['url'],this['imageDimension']=_0x111c47['dimension'],this['imageId']=_0x111c47['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x59b44e}=this['_editor'],t=_0x59b44e['t'],_0x40fdd2=new _0x18362c(_0x59b44e,this['imageStatus'],this['_attributes']);_0x40fdd2['bind']('status')['to'](this,'imageStatus'),_0x40fdd2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x40fdd2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x40fdd2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x40fdd2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x48ef82,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x40fdd2,'position':_0x2f1ea3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x40fdd2['focus']();},'onHide':()=>{_0x40fdd2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3ba9d7=>!_0x28798d(_0x3ba9d7,_0x40fdd2['element'])}});}['_loadImageInfo'](_0x4d7760,_0x3f6fc2){return _0x2c27e0['getInfo'](_0x4d7760,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5efa5a=>{const {width:_0x4e37c5,height:_0x385823}=_0x5efa5a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f6fc2,this['imageDimension']={'width':_0x4e37c5,'height':_0x385823},this['imageId']=_0x4d7760;})['catch'](_0x1e174a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e174a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x22e89b,_0x215ee6){return this['_getImageAsFile'](_0x22e89b)['then'](_0x3b662c=>_0x2c27e0['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x215ee6['signal'],'file':_0x3b662c,'onProgress':_0x2a2d76=>{_0x2a2d76&&_0x2a2d76['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2a2d76['value']));}}))['then'](_0x506193=>{const {width:_0x1de684,height:_0x5cb79e}=_0x506193['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x506193['cdnUrl'],this['imageDimension']={'width':_0x1de684,'height':_0x5cb79e},this['imageId']=_0x506193['uuid'],this['imageUploadProgress']=null;const _0x24edbc=_0x22e89b['getAttribute']('src');this['_imageCache']['set'](_0x24edbc,{'id':_0x506193['uuid'],'url':_0x506193['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x9777ee=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x9777ee['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1d9ab4,_0x5ef6ef){_0x1d9ab4['on']('apply',(_0x39700b,_0x53c560)=>{this['_replaceImage'](_0x5ef6ef,_0x53c560['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1d9ab4['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1d9ab4['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x523716,_0x4fb4db,_0x117d2e){const _0x29c85f=this['_editor'],{width:_0x1e9831,height:_0x581932}=_0x3d1480(_0x4fb4db,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5ab260,imageSources:_0x28c2ac}=_0xb33318(_0x4fb4db,_0x1e9831);_0x29c85f['model']['change'](_0x51a9c8=>{if('$graveyard'===_0x523716['root']['rootName']){_0x29c85f['execute']('insertImage',{'imageType':_0x523716['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x523716['getAttributes']()),'uploadcareImageId':_0x117d2e,'src':_0x5ab260,'sources':_0x28c2ac,'width':_0x1e9831,'height':_0x581932}});const _0x5e3aa5=_0x523716['getChildren']();_0x523716=_0x29c85f['model']['document']['selection']['getSelectedElement']();for(const _0x4ebe51 of _0x5e3aa5)_0x51a9c8['append'](_0x51a9c8['cloneElement'](_0x4ebe51),_0x523716);}else _0x51a9c8['setSelection'](_0x523716,'on'),_0x29c85f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x523716['getAttributes']()),'uploadcareImageId':_0x117d2e,'src':_0x5ab260,'sources':_0x28c2ac,'width':_0x1e9831,'height':_0x581932},_0x523716);_0x51a9c8['setSelection'](_0x523716,'on');});}async['_getImageAsFile'](_0x3f289c){const _0x5f3c88=_0x148d68['window'],_0x39fad7=_0x148d68['document']['location']['href'],_0x3e5e22=new _0x5f3c88['URL'](_0x3f289c['getAttribute']('src'),_0x39fad7);if('data:'===_0x3e5e22['protocol']){const _0x580f8e=_0x3e5e22['href']['split'](','),_0x288764=_0x580f8e[0x0]['match'](/:(.*?);/)[0x1],_0x35abc0=_0x288764['split']('/')[0x1],_0x510050=_0x5f3c88['atob'](_0x580f8e[_0x580f8e['length']-0x1]);let _0x463e4b=_0x510050['length'];const _0x19e119=new _0x5f3c88['Uint8Array'](_0x463e4b);for(;_0x463e4b--;)_0x19e119[_0x463e4b]=_0x510050['charCodeAt'](_0x463e4b);return new _0x5f3c88['File']([_0x19e119],'image.'+_0x35abc0,{'type':_0x288764});}const _0x22332e=_0x3e5e22['href']['split']('/'),_0x14ccf5=_0x22332e[_0x22332e['length']-0x1],_0x514e83=_0x14ccf5['split']('.')[0x1];return _0x5f3c88['fetch'](_0x3e5e22['href'])['then'](_0x4e542d=>_0x4e542d['clone']()['blob']())['then'](_0x441d07=>new _0x5f3c88['File']([_0x441d07],_0x14ccf5,{'type':'image/'+_0x514e83}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x307bde,_0x3d6e07){const _0x298ddb=_0x1b30,_0x1b418f=_0x307bde();while(!![]){try{const _0x5eaae9=-parseInt(_0x298ddb(0xe1))/0x1+parseInt(_0x298ddb(0xd8))/0x2+parseInt(_0x298ddb(0xdb))/0x3*(parseInt(_0x298ddb(0xdc))/0x4)+-parseInt(_0x298ddb(0xd4))/0x5+-parseInt(_0x298ddb(0xdd))/0x6+parseInt(_0x298ddb(0xde))/0x7*(parseInt(_0x298ddb(0xd6))/0x8)+parseInt(_0x298ddb(0xe2))/0x9;if(_0x5eaae9===_0x3d6e07)break;else _0x1b418f['push'](_0x1b418f['shift']());}catch(_0x5ebd8e){_0x1b418f['push'](_0x1b418f['shift']());}}}(_0x365b,0x5c074));import{View as _0x5731cf}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x5731cf{constructor(_0x5106c3,_0x2eaa8d){const _0x15f1c5=_0x1b30;super(_0x5106c3);const _0x4a02f1=this[_0x15f1c5(0xda)];this[_0x15f1c5(0xe3)](_0x15f1c5(0xdf),''),this[_0x15f1c5(0xd5)]({'tag':_0x15f1c5(0xe4),'attributes':{..._0x2eaa8d,'class':[_0x15f1c5(0xd7),_0x15f1c5(0xe0)],'ctx-name':_0x15f1c5(0xd9),'cdn-url':_0x4a02f1['to'](_0x15f1c5(0xdf))}});}}function _0x1b30(_0x45ffda,_0x368bcf){const _0x365b71=_0x365b();return _0x1b30=function(_0x1b30a4,_0x2057a9){_0x1b30a4=_0x1b30a4-0xd4;let _0x59ff26=_0x365b71[_0x1b30a4];return _0x59ff26;},_0x1b30(_0x45ffda,_0x368bcf);}function _0x365b(){const _0x1a2dce=['9212238yuaKgy','set','uc-cloud-image-editor','1507780NntXMP','setTemplate','1307272dhgMjI','uc-light','96206RKtVmP','image-edit','bindTemplate','16341FUlECW','184JHrWuB','1462092CaEBQc','7QKauDM','imageSrc','ck-uploadcare-theme','563470XeCBhh'];_0x365b=function(){return _0x1a2dce;};return _0x365b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x14d406}from'ckeditor5/src/icons.js';import{ButtonView as _0x17fc8a,IconView as _0x1b5e8c,View as _0x590037}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x590037{constructor(_0x3776b3){super(_0x3776b3);const t=_0x3776b3['t'];this['set']('errorType',null);const _0x33fc6f=new _0x17fc8a(_0x3776b3);_0x33fc6f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x33fc6f['withText']=!0x0,_0x33fc6f['class']='ck-button-action',_0x33fc6f['on']('execute',()=>{this['fire']('retry');}),_0x33fc6f['bind']('isVisible')['to'](this,'errorType',_0x383360=>'NotFound'!==_0x383360);const _0x367ab7=new _0x1b5e8c();_0x367ab7['content']=_0x14d406,_0x367ab7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x10a338=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':[_0x367ab7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x10a338['to']('errorType',_0x418c88=>t('NotFound'!==_0x418c88?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x33fc6f]},{'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 _0x239e47,View as _0x6bf995}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x6bf995{constructor(_0x450ddf){super(_0x450ddf);const t=_0x450ddf['t'],_0x2b7a75=this['bindTemplate'],_0x3947f3=new _0x239e47();_0x3947f3['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':[_0x3947f3,{'text':_0x2b7a75['to']('imageUploadProgress',_0x217294=>t('Loading\x20image...')+'\x20('+(_0x217294||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 _0xec2c0b=_0xe42c;(function(_0x27975b,_0x490108){const _0x1574b9=_0xe42c,_0x3d75cb=_0x27975b();while(!![]){try{const _0x45634a=-parseInt(_0x1574b9(0x200))/0x1+parseInt(_0x1574b9(0x1f1))/0x2*(-parseInt(_0x1574b9(0x1fa))/0x3)+parseInt(_0x1574b9(0x1ee))/0x4*(parseInt(_0x1574b9(0x1f9))/0x5)+-parseInt(_0x1574b9(0x1e5))/0x6*(-parseInt(_0x1574b9(0x201))/0x7)+parseInt(_0x1574b9(0x1f2))/0x8*(-parseInt(_0x1574b9(0x1ef))/0x9)+parseInt(_0x1574b9(0x208))/0xa+parseInt(_0x1574b9(0x1fc))/0xb*(parseInt(_0x1574b9(0x1f3))/0xc);if(_0x45634a===_0x490108)break;else _0x3d75cb['push'](_0x3d75cb['shift']());}catch(_0x2aadc4){_0x3d75cb['push'](_0x3d75cb['shift']());}}}(_0x4d0a,0x85898));function _0xe42c(_0x31cccb,_0x4707d5){const _0x4d0a12=_0x4d0a();return _0xe42c=function(_0xe42cdd,_0x1b37a3){_0xe42cdd=_0xe42cdd-0x1e4;let _0x2d48af=_0x4d0a12[_0xe42cdd];return _0x2d48af;},_0xe42c(_0x31cccb,_0x4707d5);}import{View as _0x5b1fe1}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x515472}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x93080c}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x44f690}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0xac70dd}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x4d0a(){const _0x263f98=['cancel','_loadingView','_editingView','ck-uploadcare-form','_addErrorViewListeners','set','_waitForImageEditorComponent','2945346hoDHxi','element','render','addedNodes','once','change:status','status','div','ck-reset_all-excluded','668hYpUCN','213606nAPefZ','uploading','15220yklpfD','336xHNEHK','25472208wLpsSp','cdnUrl','uc-cloud-image-editor','_focusableView','retry','createCollection','10995MQFoWY','351eYlHDp','focus','11EBjPyL','_addUploadcareImageEditorListeners','_items','querySelector','890326dphinE','7nastaw','addMany','length','setTemplate','detail','fire','_setView','3436840UpSjAQ','disconnect','filter','addEventListener','add','getFocusableElement','error','observe','clear','apply','ready','nodeName','toLowerCase','target','_errorView'];_0x4d0a=function(){return _0x263f98;};return _0x4d0a();}export class UploadcareImageEditFormView extends _0xac70dd{[_0xec2c0b(0x1fe)];[_0xec2c0b(0x218)];[_0xec2c0b(0x216)];[_0xec2c0b(0x219)];[_0xec2c0b(0x1f6)];constructor(_0x4036ee,_0x5c406c,_0x43cada){const _0x4069c1=_0xec2c0b;super(_0x4036ee),this[_0x4069c1(0x1fe)]=this[_0x4069c1(0x1f8)](),this[_0x4069c1(0x218)]=new _0x515472(_0x4036ee),this[_0x4069c1(0x216)]=new _0x93080c(_0x4036ee),this[_0x4069c1(0x219)]=new _0x44f690(_0x4036ee,_0x43cada),this[_0x4069c1(0x1f6)]=new _0x5b1fe1(_0x4036ee),this[_0x4069c1(0x1f6)][_0x4069c1(0x204)](this[_0x4069c1(0x20d)]()),this[_0x4069c1(0x21c)](_0x4069c1(0x1eb),_0x5c406c),this[_0x4069c1(0x204)]({'tag':_0x4069c1(0x1ec),'attributes':{'class':['ck',_0x4069c1(0x1ed),_0x4069c1(0x21a)],'tabindex':'-1'},'children':this[_0x4069c1(0x1fe)]}),this[_0x4069c1(0x207)](),this[_0x4069c1(0x1e9)](_0x4069c1(0x1e7),()=>{const _0x430822=_0x4069c1;this[_0x430822(0x1e4)](this[_0x430822(0x1e6)],_0x2b0279=>{const _0x2135dc=_0x430822;this[_0x2135dc(0x1fd)](_0x2b0279);});}),this['on'](_0x4069c1(0x1ea),()=>{const _0x1211f2=_0x4069c1;this[_0x1211f2(0x207)]();}),this[_0x4069c1(0x21b)]();}[_0xec2c0b(0x1fb)](){const _0x4b9bc8=_0xec2c0b;this[_0x4b9bc8(0x1e6)][_0x4b9bc8(0x1fb)]();}[_0xec2c0b(0x207)](){const _0x149342=_0xec2c0b;switch(this[_0x149342(0x1fe)][_0x149342(0x210)](),this[_0x149342(0x1eb)]){case _0x149342(0x1f0):this[_0x149342(0x1fe)][_0x149342(0x20c)](this[_0x149342(0x218)]);break;case _0x149342(0x20e):this[_0x149342(0x1fe)][_0x149342(0x20c)](this[_0x149342(0x216)]);break;case _0x149342(0x212):this[_0x149342(0x1fe)][_0x149342(0x202)]([this[_0x149342(0x219)],this[_0x149342(0x1f6)]]);}}[_0xec2c0b(0x1e4)](_0x5a505d,_0x59e78c){const _0x119740=_0xec2c0b,_0x2333f6=_0x119740(0x1f5),_0x42dcae=_0x5a505d[_0x119740(0x1ff)](_0x2333f6);if(_0x42dcae)return _0x59e78c(_0x42dcae);const _0x88f366=new MutationObserver(_0x471cdb=>{const _0x49332a=_0x119740,_0xc2d8a8=_0x471cdb[_0x49332a(0x20a)](_0x2665da=>_0x2665da[_0x49332a(0x215)]===_0x5a505d&&_0x2665da[_0x49332a(0x1e8)][_0x49332a(0x203)]>0x0&&_0x2665da[_0x49332a(0x1e8)][0x0][_0x49332a(0x213)][_0x49332a(0x214)]()===_0x2333f6);_0xc2d8a8[_0x49332a(0x203)]&&(_0x88f366[_0x49332a(0x209)](),_0x59e78c(_0xc2d8a8[0x0][_0x49332a(0x1e8)][0x0]));});_0x88f366[_0x119740(0x20f)](_0x5a505d,{'childList':!0x0,'subtree':!0x0});}[_0xec2c0b(0x1fd)](_0x112a12){const _0x214309=_0xec2c0b;_0x112a12[_0x214309(0x20b)](_0x214309(0x211),_0x277a98=>{const _0x1d6fd5=_0x214309;this[_0x1d6fd5(0x206)](_0x1d6fd5(0x211),{'imageSrc':_0x277a98[_0x1d6fd5(0x205)][_0x1d6fd5(0x1f4)]});}),_0x112a12[_0x214309(0x20b)](_0x214309(0x217),()=>{const _0x4aa9ff=_0x214309;this[_0x4aa9ff(0x206)](_0x4aa9ff(0x217));});}[_0xec2c0b(0x21b)](){const _0x213e8d=_0xec2c0b;this[_0x213e8d(0x216)]['on'](_0x213e8d(0x1f7),()=>{const _0x1b2d44=_0x213e8d;this[_0x1b2d44(0x206)](_0x1b2d44(0x1f7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xcaf2cb=_0x5695;function _0x5906(){const _0x2d1ec3=['requires','refresh','isActive','156959NfXSga','get','2168776DUNitm','imageInline','config','getSelectedElement','46VeXQVj','7EWODhe','imageEditController','68mAkrFG','218745IwGxsA','element','139551DGcNgC','unbind','5577813YgelqJ','bind','selection','970aAcLka','set','plugins','uploadcare.allowExternalImagesEditing','model','_isEditable','1148914pBoEwO','13128FTefmc','editor','document','isEnabled','execute','imageBlock'];_0x5906=function(){return _0x2d1ec3;};return _0x5906();}function _0x5695(_0x3be3c8,_0x662dfa){const _0x5906a6=_0x5906();return _0x5695=function(_0x569576,_0x2d84a2){_0x569576=_0x569576-0x151;let _0xed2b81=_0x5906a6[_0x569576];return _0xed2b81;},_0x5695(_0x3be3c8,_0x662dfa);}(function(_0x33a052,_0x1b643d){const _0x34c7f6=_0x5695,_0x1f0503=_0x33a052();while(!![]){try{const _0x36b073=parseInt(_0x34c7f6(0x16e))/0x1+-parseInt(_0x34c7f6(0x15d))/0x2*(-parseInt(_0x34c7f6(0x163))/0x3)+parseInt(_0x34c7f6(0x160))/0x4*(parseInt(_0x34c7f6(0x161))/0x5)+parseInt(_0x34c7f6(0x16f))/0x6+parseInt(_0x34c7f6(0x15e))/0x7*(-parseInt(_0x34c7f6(0x159))/0x8)+-parseInt(_0x34c7f6(0x165))/0x9+parseInt(_0x34c7f6(0x168))/0xa*(-parseInt(_0x34c7f6(0x157))/0xb);if(_0x36b073===_0x1b643d)break;else _0x1f0503['push'](_0x1f0503['shift']());}catch(_0x54de70){_0x1f0503['push'](_0x1f0503['shift']());}}}(_0x5906,0xa8673));import{Command as _0x113b66}from'ckeditor5/src/core.js';import{Dialog as _0x475356}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x50d3fe}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2c7a5d}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x113b66{[_0xcaf2cb(0x15f)];static get[_0xcaf2cb(0x154)](){return[_0x475356];}[_0xcaf2cb(0x16d)];constructor(_0xb0009c){const _0x2138b8=_0xcaf2cb;super(_0xb0009c),this[_0x2138b8(0x15f)]=void 0x0,this[_0x2138b8(0x16d)]=_0x2c7a5d(_0xb0009c[_0x2138b8(0x15b)][_0x2138b8(0x158)](_0x2138b8(0x16b))||[]),this[_0x2138b8(0x169)]({'isActive':!0x1});}[_0xcaf2cb(0x155)](){const _0x4528c1=_0xcaf2cb,_0x13a46e=this[_0x4528c1(0x170)][_0x4528c1(0x16c)][_0x4528c1(0x171)][_0x4528c1(0x167)][_0x4528c1(0x15c)]();this[_0x4528c1(0x151)]=this[_0x4528c1(0x16d)](_0x13a46e);}[_0xcaf2cb(0x152)](){const _0x30101b=_0xcaf2cb;this[_0x30101b(0x15f)]&&(this[_0x30101b(0x164)](_0x30101b(0x156)),this[_0x30101b(0x15f)]=void 0x0);const _0xd8c79e=this[_0x30101b(0x170)][_0x30101b(0x16c)][_0x30101b(0x171)][_0x30101b(0x167)][_0x30101b(0x15c)]();_0xd8c79e&&(_0xd8c79e['is'](_0x30101b(0x162),_0x30101b(0x153))||_0xd8c79e['is'](_0x30101b(0x162),_0x30101b(0x15a)))&&(this[_0x30101b(0x15f)]=new _0x50d3fe(this[_0x30101b(0x170)],this[_0x30101b(0x170)][_0x30101b(0x16a)][_0x30101b(0x158)](_0x475356),_0xd8c79e),this[_0x30101b(0x166)](_0x30101b(0x156))['to'](this[_0x30101b(0x15f)],_0x30101b(0x156)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e1887=_0x451c;(function(_0x178347,_0x3ff239){const _0x4ef634=_0x451c,_0x480a26=_0x178347();while(!![]){try{const _0x371038=-parseInt(_0x4ef634(0x1ad))/0x1+-parseInt(_0x4ef634(0x1af))/0x2*(parseInt(_0x4ef634(0x1ac))/0x3)+parseInt(_0x4ef634(0x1c0))/0x4*(parseInt(_0x4ef634(0x1aa))/0x5)+-parseInt(_0x4ef634(0x1b0))/0x6*(parseInt(_0x4ef634(0x1ae))/0x7)+-parseInt(_0x4ef634(0x1b2))/0x8*(parseInt(_0x4ef634(0x1b8))/0x9)+-parseInt(_0x4ef634(0x1b5))/0xa+-parseInt(_0x4ef634(0x1b9))/0xb*(-parseInt(_0x4ef634(0x1b3))/0xc);if(_0x371038===_0x3ff239)break;else _0x480a26['push'](_0x480a26['shift']());}catch(_0x1999f5){_0x480a26['push'](_0x480a26['shift']());}}}(_0x1876,0x5bd03));import{Plugin as _0x329d79}from'ckeditor5/src/core.js';import{Notification as _0x2500f6}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x31d3cb}from'./uploadcareimageeditcommand.js';function _0x451c(_0x56869c,_0x58bc35){const _0x18764f=_0x1876();return _0x451c=function(_0x451c1d,_0x18ed70){_0x451c1d=_0x451c1d-0x1aa;let _0x2632cd=_0x18764f[_0x451c1d];return _0x2632cd;},_0x451c(_0x56869c,_0x58bc35);}import{UploadcareImageReplaceCommand as _0x8e79fe}from'./uploadcareimagereplacecommand.js';function _0x1876(){const _0x26a60f=['540750SfPugd','isOfficialPlugin','uploadcareImageReplace','767691cMydwp','3938dyRRhz','add','requires','pluginName','commands','UploadcareImageEditEditing','isPremiumPlugin','1090984jhAtLB','ImageEditing','5xoYysU','ImageUtils','18yyHAXO','56422rVDzHw','13881GgzQDd','84606uWguqP','1686KeIVFq','uploadcareImageEdit','8kPOUqj','37212TTiEDd','init'];_0x1876=function(){return _0x26a60f;};return _0x1876();}import{UploadcareEditing as _0x5be62f}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x329d79{static get[_0x3e1887(0x1bc)](){const _0x10384a=_0x3e1887;return _0x10384a(0x1be);}static get[_0x3e1887(0x1bb)](){const _0x44995f=_0x3e1887;return[_0x5be62f,_0x2500f6,_0x44995f(0x1ab),_0x44995f(0x1c1)];}static get[_0x3e1887(0x1b6)](){return!0x0;}static get[_0x3e1887(0x1bf)](){return!0x0;}[_0x3e1887(0x1b4)](){const _0x61c0e5=_0x3e1887,{editor:_0x198327}=this;_0x198327[_0x61c0e5(0x1bd)][_0x61c0e5(0x1ba)](_0x61c0e5(0x1b1),new _0x31d3cb(_0x198327)),_0x198327[_0x61c0e5(0x1bd)][_0x61c0e5(0x1ba)](_0x61c0e5(0x1b7),new _0x8e79fe(_0x198327));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4ebb93}from'ckeditor5/src/core.js';import{ButtonView as _0x40bd50}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x254323}from'ckeditor5/src/icons.js';import{createElement as _0x4aa470}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x4ebb93{['_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 _0x341353=this['editor'];_0x341353['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5b4b0f=>{const _0x32018e=_0x341353['commands']['get']('uploadcareImageEdit'),_0x2e0237=new _0x40bd50(_0x5b4b0f),t=_0x5b4b0f['t'];return _0x2e0237['set']({'icon':_0x254323,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2e0237['bind']('isEnabled')['to'](_0x32018e),_0x2e0237['bind']('isOn')['to'](_0x32018e,'isActive'),this['listenTo'](_0x2e0237,'execute',()=>{_0x341353['execute']('uploadcareImageEdit'),_0x341353['editing']['view']['focus']();}),_0x2e0237;}),this['_initConfig']();}['_initConfig'](){const _0x99ae7d=_0x4aa470(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x99ae7d),this['listenTo'](this['editor'],'destroy',()=>{_0x99ae7d['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5dac09=_0x3aff;function _0x3aff(_0x457964,_0x4d3159){const _0xa8829b=_0xa882();return _0x3aff=function(_0x3aff69,_0xd54d91){_0x3aff69=_0x3aff69-0x184;let _0x4083a1=_0xa8829b[_0x3aff69];return _0x4083a1;},_0x3aff(_0x457964,_0x4d3159);}(function(_0x2b417f,_0x2f7748){const _0x5c94ec=_0x3aff,_0x5a48fb=_0x2b417f();while(!![]){try{const _0x2ad0ac=parseInt(_0x5c94ec(0x18c))/0x1*(parseInt(_0x5c94ec(0x19b))/0x2)+parseInt(_0x5c94ec(0x19d))/0x3*(parseInt(_0x5c94ec(0x18d))/0x4)+parseInt(_0x5c94ec(0x198))/0x5+parseInt(_0x5c94ec(0x189))/0x6+-parseInt(_0x5c94ec(0x19e))/0x7*(parseInt(_0x5c94ec(0x18f))/0x8)+-parseInt(_0x5c94ec(0x194))/0x9*(parseInt(_0x5c94ec(0x187))/0xa)+-parseInt(_0x5c94ec(0x19c))/0xb*(parseInt(_0x5c94ec(0x19f))/0xc);if(_0x2ad0ac===_0x2f7748)break;else _0x5a48fb['push'](_0x5a48fb['shift']());}catch(_0x47f60a){_0x5a48fb['push'](_0x5a48fb['shift']());}}}(_0xa882,0x5c702));import{Command as _0xd995c0}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0xd995c0{[_0x5dac09(0x190)](){const _0x2a05b7=_0x5dac09,_0x240f2c=this[_0x2a05b7(0x18e)][_0x2a05b7(0x192)][_0x2a05b7(0x18b)][_0x2a05b7(0x191)][_0x2a05b7(0x193)]();this[_0x2a05b7(0x185)]=Boolean(_0x240f2c&&(_0x240f2c['is'](_0x2a05b7(0x188),_0x2a05b7(0x184))||_0x240f2c['is'](_0x2a05b7(0x188),_0x2a05b7(0x199))));}[_0x5dac09(0x19a)](_0x833dc){const _0x252c33=_0x5dac09,_0x5991d7=this[_0x252c33(0x18e)][_0x252c33(0x192)][_0x252c33(0x18b)][_0x252c33(0x191)][_0x252c33(0x193)]();this[_0x252c33(0x18e)][_0x252c33(0x192)][_0x252c33(0x18a)](_0x17b3dd=>{const _0xcd7543=_0x252c33;_0x17b3dd[_0xcd7543(0x197)](_0x833dc,_0x5991d7),_0x17b3dd[_0xcd7543(0x195)](_0xcd7543(0x186),_0x5991d7),_0x17b3dd[_0xcd7543(0x195)](_0xcd7543(0x196),_0x5991d7);});}}function _0xa882(){const _0x41528f=['setAttributes','1504825KGNIyK','imageInline','execute','4SsUmHX','11NekrIt','39237imCiIK','49945nBduwy','439656eLfDkb','imageBlock','isEnabled','srcset','738970xEJClU','element','2064930EFJPsv','change','document','28461FwPGOB','44ETdUeP','editor','400GjhzZN','refresh','selection','model','getSelectedElement','9ydyaKs','removeAttribute','sizes'];_0xa882=function(){return _0x41528f;};return _0xa882();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x2657e5=_0x2226;function _0x2ca6(){var _0xc14637=['4135965GKQZsl','8044862QFzHjA','964SMfuNI','158523ZpfKRU','isOfficialPlugin','1926qmgywh','60OLErUK','pluginName','isPremiumPlugin','36832640HnPHSX','6874152zLnEgH','requires','UploadcareImageEdit','317kEktsp','20088HMRIcL'];_0x2ca6=function(){return _0xc14637;};return _0x2ca6();}(function(_0x4e0fe6,_0x42ebdc){var _0x5edaed=_0x2226,_0x56dbb0=_0x4e0fe6();while(!![]){try{var _0x213e8d=-parseInt(_0x5edaed(0x1f0))/0x1*(parseInt(_0x5edaed(0x1e5))/0x2)+parseInt(_0x5edaed(0x1e6))/0x3*(parseInt(_0x5edaed(0x1e9))/0x4)+parseInt(_0x5edaed(0x1f2))/0x5+parseInt(_0x5edaed(0x1ed))/0x6+parseInt(_0x5edaed(0x1e4))/0x7+-parseInt(_0x5edaed(0x1f1))/0x8*(-parseInt(_0x5edaed(0x1e8))/0x9)+-parseInt(_0x5edaed(0x1ec))/0xa;if(_0x213e8d===_0x42ebdc)break;else _0x56dbb0['push'](_0x56dbb0['shift']());}catch(_0x1172e4){_0x56dbb0['push'](_0x56dbb0['shift']());}}}(_0x2ca6,0x9667e));import{Plugin as _0x375575}from'ckeditor5/src/core.js';function _0x2226(_0x91640d,_0x54ac62){var _0x2ca67c=_0x2ca6();return _0x2226=function(_0x2226fe,_0x2fa867){_0x2226fe=_0x2226fe-0x1e4;var _0x4e3397=_0x2ca67c[_0x2226fe];return _0x4e3397;},_0x2226(_0x91640d,_0x54ac62);}import{UploadcareImageEditEditing as _0x21a2b1}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x1ec895}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x375575{static get[_0x2657e5(0x1ea)](){var _0x25a5b0=_0x2657e5;return _0x25a5b0(0x1ef);}static get[_0x2657e5(0x1ee)](){return[_0x21a2b1,_0x1ec895];}static get[_0x2657e5(0x1e7)](){return!0x0;}static get[_0x2657e5(0x1eb)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c6129=_0x5e8e;function _0x5e8e(_0x13f3c6,_0x9b9dad){const _0x2b1421=_0x2b14();return _0x5e8e=function(_0x5e8e36,_0x9f060b){_0x5e8e36=_0x5e8e36-0xea;let _0x4e99b9=_0x2b1421[_0x5e8e36];return _0x4e99b9;},_0x5e8e(_0x13f3c6,_0x9b9dad);}(function(_0x2854e3,_0x3767f1){const _0x2def6a=_0x5e8e,_0x382388=_0x2854e3();while(!![]){try{const _0x4af16e=parseInt(_0x2def6a(0x139))/0x1+-parseInt(_0x2def6a(0xf0))/0x2*(parseInt(_0x2def6a(0xec))/0x3)+parseInt(_0x2def6a(0x11f))/0x4*(parseInt(_0x2def6a(0xf1))/0x5)+-parseInt(_0x2def6a(0xf6))/0x6*(-parseInt(_0x2def6a(0x126))/0x7)+parseInt(_0x2def6a(0x125))/0x8+-parseInt(_0x2def6a(0x12f))/0x9+-parseInt(_0x2def6a(0xff))/0xa;if(_0x4af16e===_0x3767f1)break;else _0x382388['push'](_0x382388['shift']());}catch(_0x1dadd1){_0x382388['push'](_0x382388['shift']());}}}(_0x2b14,0x7ad35));import{Plugin as _0x370b72}from'ckeditor5/src/core.js';import{IconDropbox as _0x4ade33,IconFacebook as _0x20d9c4,IconGoogleDrive as _0x2cbf6e,IconGooglePhotos as _0x2f1564,IconUploadcareImageUpload as _0x2fc000,IconUploadcareLink as _0x167e13,IconOneDrive as _0x410774}from'ckeditor5/src/icons.js';import{ButtonView as _0x28123a,MenuBarMenuListItemButtonView as _0x20cb7a}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x2755f9}from'./uploadcareconfig.js';import{getTranslation as _0x2d4798}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x2b14(){const _0x5eef12=['icon','UploadcareUI','plugins','destroy','commands','5731970IMEcJS','push','config','GDrive','uploadcareLicenseKeyTrialLimit','_createMenuBarButtons','entries','_normalizeConfigSourceList','type','isImageSelected','registerIntegration','uploadcareLicenseKeyInvalid','isOfficialPlugin','assetManager','uploadcare.uploader.sourceList','_showLicenseError','upload','shortText','url','uploadcareLicenseKeyNotAllowed','uploadcareLicenseKeyEvaluationLimit','expired','URL','uploadcareLicenseKeyUsageLimit','Dropbox','OneDrive','usageLimit','_createButton','withText','execute','uploadcareLicenseKeyExpired','afterInit','148648WGmDTh','text','Facebook','isEnabled','Uploadcare','locale','679616CuJKrX','7HFYUPx','get','evaluationLimit','label','reduce','domainLimit','_getIntegrationKey','uploadcareLicenseKeyValid','featureNotAllowed','1305657rHBmgP','forEach','_licenseKeyCheckInterval','has','invalid','pluginName','editor','uploadcareLicenseKeyDomainLimit','licenseKey','ImageInsertUI','169774icttLs','isPremiumPlugin','bind','_createDropdownButtons','253173wXrBlv','Local','_createToolbarButton','uploadcare','4GYXeUz','65DDHyNF','Replace','map','Insert','trialLimit','3913878EQAsNa','init','tooltip','GPhotos'];_0x2b14=function(){return _0x5eef12;};return _0x2b14();}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x370b72{[_0x4c6129(0x137)];[_0x4c6129(0x131)];static get[_0x4c6129(0x134)](){const _0x1ddd58=_0x4c6129;return _0x1ddd58(0xfb);}static get[_0x4c6129(0x10b)](){return!0x0;}static get[_0x4c6129(0x13a)](){return!0x0;}[_0x4c6129(0xf7)](){const _0x4ec1b4=_0x4c6129;this[_0x4ec1b4(0x137)]=this[_0x4ec1b4(0x135)][_0x4ec1b4(0x101)][_0x4ec1b4(0x127)](_0x4ec1b4(0x137));const _0x53aef9=this[_0x4ec1b4(0x135)];this[_0x4ec1b4(0x131)]=setInterval(()=>{const _0x3138cb=_0x4ec1b4;let _0x436652;for(const _0x508f2a in _0x53aef9){const _0x1eb706=_0x508f2a,_0x199df3=_0x53aef9[_0x1eb706];if(_0x3138cb(0x12d)==_0x199df3||_0x3138cb(0x10a)==_0x199df3||_0x3138cb(0x11d)==_0x199df3||_0x3138cb(0x136)==_0x199df3||_0x3138cb(0x112)==_0x199df3||_0x3138cb(0x113)==_0x199df3||_0x3138cb(0x103)==_0x199df3||_0x3138cb(0x116)==_0x199df3){delete _0x53aef9[_0x1eb706],_0x436652=_0x199df3,clearInterval(this[_0x3138cb(0x131)]),this[_0x3138cb(0x131)]=void 0x0;break;}}_0x3138cb(0x10a)==_0x436652&&_0x53aef9[_0x3138cb(0x10e)](_0x3138cb(0x133)),_0x3138cb(0x11d)==_0x436652&&_0x53aef9[_0x3138cb(0x10e)](_0x3138cb(0x114)),_0x3138cb(0x136)==_0x436652&&_0x53aef9[_0x3138cb(0x10e)](_0x3138cb(0x12b)),_0x3138cb(0x112)==_0x436652&&_0x53aef9[_0x3138cb(0x10e)](_0x3138cb(0x12e),_0x3138cb(0x123)),_0x3138cb(0x113)==_0x436652&&_0x53aef9[_0x3138cb(0x10e)](_0x3138cb(0x128)),_0x3138cb(0x103)==_0x436652&&_0x53aef9[_0x3138cb(0x10e)](_0x3138cb(0xf5)),_0x3138cb(0x116)==_0x436652&&_0x53aef9[_0x3138cb(0x10e)](_0x3138cb(0x119));},0x3e8);}[_0x4c6129(0x11e)](){const _0xfe5ce8=_0x4c6129,{editor:_0x50a369}=this,_0x27e986=_0x50a369[_0xfe5ce8(0xfe)][_0xfe5ce8(0x127)](_0xfe5ce8(0xef));if(!_0x27e986)return;const _0x12d43f=this[_0xfe5ce8(0x106)](_0x50a369[_0xfe5ce8(0x101)][_0xfe5ce8(0x127)](_0xfe5ce8(0x10d)))[_0xfe5ce8(0x12a)]((_0x37212b,_0x1e1faa)=>{const _0x278942=_0xfe5ce8,_0x23336a=this[_0x278942(0x12c)](_0x1e1faa[_0x278942(0x107)]);return _0x37212b[_0x23336a]||(_0x37212b[_0x23336a]=[]),_0x37212b[_0x23336a][_0x278942(0x100)](_0x1e1faa),_0x37212b;},{});_0x50a369[_0xfe5ce8(0xfc)][_0xfe5ce8(0x132)](_0xfe5ce8(0x138))&&_0x50a369[_0xfe5ce8(0xfe)][_0xfe5ce8(0x127)](_0xfe5ce8(0xef))&&Object[_0xfe5ce8(0x105)](_0x12d43f)[_0xfe5ce8(0x130)](([_0x290274,_0x3e8d5d])=>{const _0x2af56b=_0xfe5ce8;_0x50a369[_0x2af56b(0xfc)][_0x2af56b(0x127)](_0x2af56b(0x138))[_0x2af56b(0x109)]({'name':_0x290274,'observable':()=>_0x27e986,'buttonViewCreator':()=>this[_0x2af56b(0xee)](_0x3e8d5d),'formViewCreator':()=>this[_0x2af56b(0xeb)](_0x3e8d5d),'menuBarButtonViewCreator':()=>this[_0x2af56b(0x104)](_0x3e8d5d),'override':_0x2af56b(0x10c)!==_0x290274});});}[_0x4c6129(0xfd)](){const _0x2ff572=_0x4c6129;super[_0x2ff572(0xfd)](),this[_0x2ff572(0x131)]&&clearInterval(this[_0x2ff572(0x131)]);}[_0x4c6129(0x106)](_0x2bdbc9){const _0x335572=_0x4c6129,{locale:_0x2ef726}=this[_0x335572(0x135)];return _0x2bdbc9[_0x335572(0xf3)](_0x4746c4=>{const _0x390565=_0x335572,_0x53a60a=_0x2d4798(_0x2ef726,_0x4746c4,_0x390565(0xf4));switch(_0x4746c4){case _0x2755f9[_0x390565(0xed)]:return{'icon':_0x2fc000,'type':_0x2755f9[_0x390565(0xed)],..._0x53a60a};case _0x2755f9[_0x390565(0x115)]:return{'icon':_0x167e13,'type':_0x2755f9[_0x390565(0x115)],..._0x53a60a};case _0x2755f9[_0x390565(0x117)]:return{'icon':_0x4ade33,'type':_0x2755f9[_0x390565(0x117)],..._0x53a60a};case _0x2755f9[_0x390565(0x121)]:return{'icon':_0x20d9c4,'type':_0x2755f9[_0x390565(0x121)],..._0x53a60a};case _0x2755f9[_0x390565(0x102)]:return{'icon':_0x2cbf6e,'type':_0x2755f9[_0x390565(0x102)],..._0x53a60a};case _0x2755f9[_0x390565(0xf9)]:return{'icon':_0x2f1564,'type':_0x2755f9[_0x390565(0xf9)],..._0x53a60a};case _0x2755f9[_0x390565(0x118)]:return{'icon':_0x410774,'type':_0x2755f9[_0x390565(0x118)],..._0x53a60a};}});}[_0x4c6129(0x12c)](_0x17a2d1){const _0x28cd58=_0x4c6129;switch(_0x17a2d1){case _0x2755f9[_0x28cd58(0xed)]:return _0x28cd58(0x10f);case _0x2755f9[_0x28cd58(0x115)]:return _0x28cd58(0x111);default:return _0x28cd58(0x10c);}}[_0x4c6129(0x11a)](_0x15b993,_0x16982b){const _0x5e5545=_0x4c6129,_0x2e29c0=this[_0x5e5545(0x135)],_0x40c770=new _0x15b993(_0x2e29c0[_0x5e5545(0x124)]),_0x79920e=_0x2e29c0[_0x5e5545(0xfe)][_0x5e5545(0x127)](_0x5e5545(0xef));return _0x40c770[_0x5e5545(0xea)](_0x5e5545(0x122))['to'](_0x79920e),_0x40c770['on'](_0x5e5545(0x11c),()=>{const _0x2be322=_0x5e5545;_0x79920e[_0x2be322(0x11c)](_0x16982b);}),_0x40c770;}[_0x4c6129(0xee)](_0x284831){const _0xa9688e=_0x4c6129,{locale:_0x169156}=this[_0xa9688e(0x135)],_0x5898f5=this[_0xa9688e(0x135)][_0xa9688e(0xfc)][_0xa9688e(0x127)](_0xa9688e(0x138)),_0x5e9c1a=_0x284831[0x0],_0x372e40=this[_0xa9688e(0x11a)](_0x28123a,_0x5e9c1a[_0xa9688e(0x107)]);return _0x372e40[_0xa9688e(0xfa)]=_0x5e9c1a[_0xa9688e(0xfa)],_0x372e40[_0xa9688e(0xea)](_0xa9688e(0x129))['to'](_0x5898f5,_0xa9688e(0x108),_0x3e6162=>_0x2d4798(_0x169156,_0x5e9c1a[_0xa9688e(0x107)],_0x3e6162?_0xa9688e(0xf2):_0xa9688e(0xf4))[_0xa9688e(0x120)]),_0x372e40[_0xa9688e(0xf8)]=!0x0,_0x372e40;}[_0x4c6129(0xeb)](_0xb5da99){const _0x249165=_0x4c6129,{locale:_0x406346}=this[_0x249165(0x135)],_0x51aef8=this[_0x249165(0x135)][_0x249165(0xfc)][_0x249165(0x127)](_0x249165(0x138));return _0xb5da99[_0x249165(0xf3)](_0xd57a60=>{const _0x4c1c5e=_0x249165,_0x22f2a2=this[_0x4c1c5e(0x11a)](_0x28123a,_0xd57a60[_0x4c1c5e(0x107)]);return _0x22f2a2[_0x4c1c5e(0x11b)]=!0x0,_0x22f2a2[_0x4c1c5e(0xfa)]=_0xd57a60[_0x4c1c5e(0xfa)],_0x22f2a2[_0x4c1c5e(0xea)](_0x4c1c5e(0x129))['to'](_0x51aef8,_0x4c1c5e(0x108),_0x26edbf=>_0x2d4798(_0x406346,_0xd57a60[_0x4c1c5e(0x107)],_0x26edbf?_0x4c1c5e(0xf2):_0x4c1c5e(0xf4))[_0x4c1c5e(0x120)]),_0x22f2a2;});}[_0x4c6129(0x104)](_0x2e2b87){const _0x3f91f7=_0x4c6129;return _0x2e2b87[_0x3f91f7(0xf3)](_0x45a93d=>{const _0x805fd0=_0x3f91f7,_0x5863f8=this[_0x805fd0(0x11a)](_0x20cb7a,_0x45a93d[_0x805fd0(0x107)]);return _0x5863f8[_0x805fd0(0xfa)]=_0x45a93d[_0x805fd0(0xfa)],_0x5863f8[_0x805fd0(0x129)]=_0x45a93d[_0x805fd0(0x110)],_0x5863f8;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1ce3ce}from'ckeditor5/src/core.js';import{FileRepository as _0x11790e}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x5a04d9}from'./uploadcareediting.js';import{UploadUtils as _0x58413b}from'./utils/uploadutils.js';import{getImageUrls as _0xce9c0d}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x1ce3ce{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x11790e,_0x5a04d9];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xe2aa92=this['editor'];if(!!!_0xe2aa92['config']['get']('uploadcare'))return;_0xe2aa92['plugins']['get'](_0x11790e)['createUploadAdapter']=_0x54e8cf=>new A(_0x54e8cf,_0xe2aa92),_0xe2aa92['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x998eaa,{imageElement:_0xd4ef4c,data:_0x1f24b6})=>{_0xe2aa92['model']['change'](_0x5f3ab2=>{_0x5f3ab2['setAttribute']('uploadcareImageId',_0x1f24b6['uploadcareImageId'],_0xd4ef4c);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x152fe1,_0x15654b){this['loader']=_0x152fe1,this['editor']=_0x15654b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x6206fe=this['editor']['config']['get']('uploadcare.pubkey'),_0x45c0e7=await this['loader']['file'];return _0x58413b['upload']({'file':_0x45c0e7,'publicKey':_0x6206fe,'signal':this['controller']['signal'],'onProgress':_0x527426=>{_0x527426&&_0x527426['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x527426['value']);}})['then'](async _0x1794e5=>{const {imageFallbackUrl:_0x56284a,imageSources:_0x1fd911}=_0xce9c0d(_0x1794e5['cdnUrl'],_0x1794e5['imageInfo']['width']);return{'uploadcareImageId':_0x1794e5['uuid'],'default':_0x56284a,'sources':_0x1fd911};})['catch'](()=>{const _0x5e28bb=t('Cannot\x20upload\x20file:')+('\x20'+_0x45c0e7['name']+'.');return Promise['reject'](_0x5e28bb);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x485bdd}from'../uploadcareconfig.js';export function getTranslation(_0x35625e,_0x43354e,_0x1d08d7){const t=_0x35625e['t'],_0x7eb715=_0x35625e['t'];switch(_0x43354e){case _0x485bdd['Local']:return{'text':_0x7eb715('Insert'===_0x1d08d7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x7eb715('From\x20computer')};case _0x485bdd['URL']:return{'text':'Insert'===_0x1d08d7?_0x7eb715('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x7eb715('Via\x20URL')};case _0x485bdd['Dropbox']:return{'text':t('Insert'===_0x1d08d7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x485bdd['Facebook']:return{'text':t('Insert'===_0x1d08d7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x485bdd['GDrive']:return{'text':t('Insert'===_0x1d08d7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x485bdd['GPhotos']:return{'text':t('Insert'===_0x1d08d7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x485bdd['OneDrive']:return{'text':t('Insert'===_0x1d08d7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x43354e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x34e5(_0x31d617,_0x474577){var _0x28f570=_0x28f5();return _0x34e5=function(_0x34e540,_0xdeb99e){_0x34e540=_0x34e540-0xfe;var _0x34fa69=_0x28f570[_0x34e540];return _0x34fa69;},_0x34e5(_0x31d617,_0x474577);}function _0x28f5(){var _0x3ca2f1=['bindTemplate','true','88SBAdCR','689432siQubZ','110152ANFxIb','forwardCycle','263586LyAOVV','2490954ZoqMCc','1197035icTTPc','251736sqBTVA','fire','2551470EbZDHs','createCollection','div','16AGUPCR','getFocusableElement','9GEHIXZ','focusCycler','focusTracker'];_0x28f5=function(){return _0x3ca2f1;};return _0x28f5();}var _0xf2d160=_0x34e5;(function(_0x4a85d7,_0x146d99){var _0x14ca80=_0x34e5,_0x33b3a2=_0x4a85d7();while(!![]){try{var _0x592138=-parseInt(_0x14ca80(0x10a))/0x1+-parseInt(_0x14ca80(0x107))/0x2+parseInt(_0x14ca80(0x10d))/0x3*(parseInt(_0x14ca80(0xff))/0x4)+-parseInt(_0x14ca80(0x10c))/0x5+parseInt(_0x14ca80(0x10b))/0x6+parseInt(_0x14ca80(0x108))/0x7*(parseInt(_0x14ca80(0x106))/0x8)+-parseInt(_0x14ca80(0x101))/0x9*(-parseInt(_0x14ca80(0x10f))/0xa);if(_0x592138===_0x146d99)break;else _0x33b3a2['push'](_0x33b3a2['shift']());}catch(_0x5dde13){_0x33b3a2['push'](_0x33b3a2['shift']());}}}(_0x28f5,0x50e4d));import{FocusTracker as _0x20db43}from'ckeditor5/src/utils.js';import{View as _0x3ff48c,FocusCycler as _0xf79350}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3ff48c{[_0xf2d160(0x103)];[_0xf2d160(0x102)];constructor(_0x36a27c){var _0x3087db=_0xf2d160;super(_0x36a27c),this[_0x3087db(0x103)]=new _0x20db43(),this[_0x3087db(0x102)]=new _0xf79350({'focusables':this[_0x3087db(0x110)](),'focusTracker':this[_0x3087db(0x103)]});}[_0xf2d160(0x100)](){var _0x4e78fd=_0xf2d160;return{'tag':_0x4e78fd(0xfe),'attributes':{'aria-hidden':_0x4e78fd(0x105),'tabindex':'0'},'on':{'focus':this[_0x4e78fd(0x104)]['to'](()=>{var _0x5e6632=_0x4e78fd;this[_0x5e6632(0x102)][_0x5e6632(0x10e)](_0x5e6632(0x109));})}};}}
|