@ckeditor/ckeditor5-uploadcare 47.5.0-alpha.1 → 47.5.0-alpha.3
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.d.ts +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 _0x5750e7=_0x334b;(function(_0xeb2752,_0x2721d3){const _0x5a718c=_0x334b,_0x441103=_0xeb2752();while(!![]){try{const _0x31b8b9=-parseInt(_0x5a718c(0x212))/0x1*(parseInt(_0x5a718c(0x203))/0x2)+parseInt(_0x5a718c(0x226))/0x3+-parseInt(_0x5a718c(0x1fd))/0x4+-parseInt(_0x5a718c(0x20f))/0x5+-parseInt(_0x5a718c(0x218))/0x6*(-parseInt(_0x5a718c(0x208))/0x7)+-parseInt(_0x5a718c(0x1fa))/0x8+-parseInt(_0x5a718c(0x20b))/0x9*(-parseInt(_0x5a718c(0x1eb))/0xa);if(_0x31b8b9===_0x2721d3)break;else _0x441103['push'](_0x441103['shift']());}catch(_0x21585e){_0x441103['push'](_0x441103['shift']());}}}(_0x6200,0xbbf7f));import{Plugin as _0x19d923}from'ckeditor5/src/core.js';import{Dialog as _0x3540d7}from'ckeditor5/src/ui.js';import{createElement as _0x58aa0a,global as _0x36498b,uid as _0x477bed}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x458b54}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2c3d09}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x45f8df}from'./utils/editingutils.js';function _0x6200(){const _0x752354=['_initConfig','destroy','getSelectedElement','add','uc-config','afterInit','config','UploadcareEditing','isRegistered','editing','uploadcare','appendChild','ctxElement','uploadcareImageId','elementToAttribute','fromCharCode','selection','PictureEditing','_initSchema','get','replaceImageSource','upcast','imageInline','8313290xprEjY','remove','conversion','input[uploadcare-file-input]','contentLanguage','extend','imageBlock','init','schema','isOfficialPlugin','#uc-icon-arrow-down','iconHrefResolver','insertImage','render','map','7219608dodLGi','removeAttribute','querySelector','5830948WHgirv','document','data-uc-image-id','closeMax','href','execute','46LfYMnp','_ctxElement','locale','ucContextId','for','196476QDDlXC','model','uploadcare.pubkey','27umPAob','join','_initConversion','uploadcareImageReplace','5348895vETIdB','attributeToAttribute','editor','9995XkmpwJ','view','\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','requires','_initImageProcessingIndicator','listenTo','198VGzBxy','pluginName','isPremiumPlugin','uploader-','downcast','cleanupImage','body','once','configElement','_configElement','uc-upload-ctx-provider','getAttribute','true','commands','3028620HtcWww','_initCtx','uploadcare.uploader'];_0x6200=function(){return _0x752354;};return _0x6200();}function _0x334b(_0x424550,_0x2833d5){const _0x62002f=_0x6200();return _0x334b=function(_0x334b6c,_0x183af9){_0x334b6c=_0x334b6c-0x1e0;let _0x1cf9fd=_0x62002f[_0x334b6c];return _0x1cf9fd;},_0x334b(_0x424550,_0x2833d5);}export class UploadcareEditing extends _0x19d923{[_0x5750e7(0x221)]=null;[_0x5750e7(0x204)]=null;static get[_0x5750e7(0x219)](){const _0x2b6151=_0x5750e7;return _0x2b6151(0x230);}static get[_0x5750e7(0x215)](){const _0x2d7afb=_0x5750e7;return[_0x2d7afb(0x1e5),_0x2c3d09,_0x3540d7];}static get[_0x5750e7(0x1f4)](){return!0x0;}static get[_0x5750e7(0x21a)](){return!0x0;}[_0x5750e7(0x206)];get[_0x5750e7(0x220)](){const _0x3fa929=_0x5750e7;return this[_0x3fa929(0x221)];}get[_0x5750e7(0x1e0)](){const _0x2b8fb8=_0x5750e7;return this[_0x2b8fb8(0x204)];}constructor(_0xaa8de8){const _0x3191a1=_0x5750e7;super(_0xaa8de8),this[_0x3191a1(0x206)]=_0x477bed();}[_0x5750e7(0x1f2)](){const _0x3f4dec=_0x5750e7,_0xa8f095=this[_0x3f4dec(0x211)];_0xa8f095[_0x3f4dec(0x225)][_0x3f4dec(0x22c)](_0x3f4dec(0x233),new _0x458b54(_0xa8f095));}[_0x5750e7(0x22e)](){const _0x2f524f=_0x5750e7;this[_0x2f524f(0x1e6)](),this[_0x2f524f(0x20d)](),this[_0x2f524f(0x229)](),this[_0x2f524f(0x227)](),this[_0x2f524f(0x216)](),this[_0x2f524f(0x217)](this[_0x2f524f(0x211)],_0x2f524f(0x22a),()=>{const _0x3281d6=_0x2f524f;this[_0x3281d6(0x221)]&&(this[_0x3281d6(0x221)][_0x3281d6(0x1ec)](),this[_0x3281d6(0x221)]=null),this[_0x3281d6(0x204)]&&(this[_0x3281d6(0x204)][_0x3281d6(0x1ec)](),this[_0x3281d6(0x204)]=null);const _0x42a603=_0x36498b[_0x3281d6(0x1fe)][_0x3281d6(0x1fc)](_0x3281d6(0x1ee));_0x42a603&&_0x42a603[_0x3281d6(0x1ec)]();}),async function(_0x4b6939){const _0xd19ba=_0x1a7688([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2c058c=0x535f8c3a,_0x12ad36=0x53580ce2^_0x2c058c,_0x1722da=window[_0x1a7688([0x44,0x61,0x74,0x65])][_0x1a7688([0x6e,0x6f,0x77])](),_0x204ecf=_0x4b6939[_0x1a7688([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf6c3ab=new window[(_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2da840=>{_0x204ecf[_0x1a7688([0x6f,0x6e,0x63,0x65])](_0x1a7688([0x72,0x65,0x61,0x64,0x79]),_0x2da840);}),_0x27e250={[_0x1a7688([0x6b,0x74,0x79])]:_0x1a7688([0x45,0x43]),[_0x1a7688([0x75,0x73,0x65])]:_0x1a7688([0x73,0x69,0x67]),[_0x1a7688([0x63,0x72,0x76])]:_0x1a7688([0x50,0x2d,0x32,0x35,0x36]),[_0x1a7688([0x78])]:_0x1a7688([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]),[_0x1a7688([0x79])]:_0x1a7688([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]),[_0x1a7688([0x61,0x6c,0x67])]:_0x1a7688([0x45,0x53,0x32,0x35,0x36])},_0x2e6c1c=_0x204ecf[_0x1a7688([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a7688([0x67,0x65,0x74])](_0x1a7688([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1481e5(){let _0xce9f1a,_0x21b61f=null,_0x18efd9=null;try{if(_0x2e6c1c==_0x1a7688([0x47,0x50,0x4c]))return _0x1a7688([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xce9f1a=_0x5c42a3(),!_0xce9f1a)return _0x1a7688([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xce9f1a[_0x1a7688([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18efd9=_0x4345b5(_0xce9f1a[_0x1a7688([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xce9f1a[_0x1a7688([0x6a,0x74,0x69])])),await _0x380bae()?_0x2ed2e7()?_0x1347d4()?_0x1a7688([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c715e()?(_0xce9f1a[_0x1a7688([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a7688([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21b61f=_0x48d044(_0x1a7688([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b4e76()):_0x1a7688([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a7688([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a7688([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1a7688([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1347d4(){const _0x4f6ed5=[_0x1a7688([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a7688([0x74,0x72,0x69,0x61,0x6c])][_0x1a7688([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xce9f1a[_0x1a7688([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1722da/0x3e8:0xe10*_0x12ad36;return _0xce9f1a[_0x1a7688([0x65,0x78,0x70])]<_0x4f6ed5;}function _0x2ed2e7(){const _0x5672f7=_0xce9f1a[_0x1a7688([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5672f7&&(!!_0x5672f7[_0x1a7688([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7688([0x2a]))||!!_0x5672f7[_0x1a7688([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7688([0x55,0x50,0x4c,0x43])));}function _0x5c715e(){const _0xdbc0c7=_0x334b,_0xf278bc=_0xce9f1a[_0x1a7688([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf278bc||0x0==_0xf278bc[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c7c53}=new URL(window[_0x1a7688([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xdbc0c7(0x201)]);if(_0xf278bc[_0x1a7688([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c7c53))return!0x0;const _0x33a7c7=_0x2c7c53[_0x1a7688([0x73,0x70,0x6c,0x69,0x74])](_0x1a7688([0x2e]));return _0xf278bc[_0x1a7688([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x458d2c=>_0x458d2c[_0x1a7688([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7688([0x2a])))[_0x1a7688([0x6d,0x61,0x70])](_0x359ddd=>_0x359ddd[_0x1a7688([0x73,0x70,0x6c,0x69,0x74])](_0x1a7688([0x2e])))[_0x1a7688([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35bd4f=>_0x35bd4f[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33a7c7[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a7688([0x6d,0x61,0x70])](_0x1a3018=>Array(_0x33a7c7[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a3018[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a7688([0x66,0x69,0x6c,0x6c])](_0x1a3018[0x0]===_0x1a7688([0x2a])?_0x1a7688([0x2a]):'')[_0x1a7688([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a3018))[_0x1a7688([0x73,0x6f,0x6d,0x65])](_0x30ec14=>_0x33a7c7[_0x1a7688([0x65,0x76,0x65,0x72,0x79])]((_0x2e3b06,_0x6fade3)=>_0x30ec14[_0x6fade3]===_0x2e3b06||_0x30ec14[_0x6fade3]===_0x1a7688([0x2a])));}function _0x3b4e76(){return _0x21b61f&&_0x18efd9?new window[(_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1317d9,_0x5f2362)=>{_0x21b61f[_0x1a7688([0x74,0x68,0x65,0x6e])](_0x1317d9,_0x5f2362),_0x18efd9[_0x1a7688([0x74,0x68,0x65,0x6e])](_0x19328f=>{_0x19328f!=_0x1a7688([0x56,0x61,0x6c,0x69,0x64])&&_0x1317d9(_0x19328f);},_0x5f2362);}):_0x21b61f||_0x18efd9||_0x1a7688([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4345b5(_0x3360a9,_0x5687cf){return new window[(_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a2242=>{if(_0x12e7ac())return _0x2a2242(_0x1a7688([0x56,0x61,0x6c,0x69,0x64]));_0x1a328d(),_0x204ecf[_0x1a7688([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a7688([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b2683=!0x1;const _0x3805e3=_0x477bed();function _0x3ec814(_0x18e376){return!!_0x18e376&&(typeof _0x18e376===_0x1a7688([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18e376===_0x1a7688([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18e376[_0x1a7688([0x74,0x68,0x65,0x6e])]===_0x1a7688([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18e376[_0x1a7688([0x63,0x61,0x74,0x63,0x68])]===_0x1a7688([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c0254(_0x5596d8){_0x4f0287(_0x5596d8)[_0x1a7688([0x74,0x68,0x65,0x6e])](_0x863c34=>{if(!_0x863c34||_0x863c34[_0x1a7688([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a7688([0x6f,0x6b]))return _0x1a7688([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c6718(_0x1bb343(_0x3805e3+_0x5687cf))!=_0x863c34[_0x1a7688([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a7688([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a7688([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a7688([0x74,0x68,0x65,0x6e])](_0x298e38=>(_0x42b6d9(),_0x298e38),()=>{const _0x21a236=_0x3757dc();return null==_0x21a236?(_0x42b6d9(),_0x1a7688([0x56,0x61,0x6c,0x69,0x64])):_0x1a7688(_0x1722da-_0x21a236>(0x7753083a^_0x2c058c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a7688([0x74,0x68,0x65,0x6e])](_0x2a2242)[_0x1a7688([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2a2242(_0x1a7688([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3dced1=0x536962ba^_0x2c058c;function _0x42b6d9(){const _0x2e6e4a=_0x1a7688([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c6718(_0x1bb343(_0x3360a9)),_0xc626ce=_0x59d762(_0x2c6718(window[_0x1a7688([0x4d,0x61,0x74,0x68])][_0x1a7688([0x63,0x65,0x69,0x6c])](_0x1722da/_0x3dced1)));window[_0x1a7688([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a7688([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e6e4a,_0xc626ce);}function _0x3757dc(){const _0x4aa846=_0x1a7688([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c6718(_0x1bb343(_0x3360a9)),_0x983cfa=window[_0x1a7688([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a7688([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4aa846);return _0x983cfa?window[_0x1a7688([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59d762(_0x983cfa),0x10)*_0x3dced1:null;}function _0x4f0287(_0x1154be){return new window[(_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3885ba,_0x21e4e7)=>{_0x1154be[_0x1a7688([0x74,0x68,0x65,0x6e])](_0x3885ba,_0x21e4e7),window[_0x1a7688([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21e4e7,0x535e58fa^_0x2c058c);});}}_0x204ecf[_0x1a7688([0x6f,0x6e])](_0x1a7688([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4d172e,_0x2b438c)=>{if(_0x2b438c[0x0]!=_0x3360a9)return _0x2a2242(_0x1a7688([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b438c[0x1]={..._0x2b438c[0x1],[_0x1a7688([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3805e3};},{[_0x1a7688([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a7688([0x68,0x69,0x67,0x68])}),_0x204ecf[_0x1a7688([0x6f,0x6e])](_0x1a7688([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d8777=>{_0x3ec814(_0x5d8777[_0x1a7688([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b2683=!0x0,_0x5c0254(_0x5d8777[_0x1a7688([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a7688([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a7688([0x6c,0x6f,0x77])}),_0xf6c3ab[_0x1a7688([0x74,0x68,0x65,0x6e])](()=>{_0x5b2683||_0x2a2242(_0x1a7688([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12e7ac(){return _0x204ecf[_0x1a7688([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a7688([0x76,0x69,0x65,0x77])][_0x1a7688([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a7688([0x61,0x75,0x74,0x6f]);}function _0x1a328d(){_0x204ecf[_0x1a7688([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a7688([0x76,0x69,0x65,0x77])][_0x1a7688([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a7688([0x61,0x75,0x74,0x6f]);}}function _0x48d044(_0x4e59bd){const _0x199d81=[new window[(_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f4324=>setTimeout(_0x2f4324,0x5356b2f6^_0x2c058c)),_0xf6c3ab[_0x1a7688([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c6c02=>{let _0x44e837=0x0;_0x204ecf[_0x1a7688([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a7688([0x6f,0x6e])](_0x1a7688([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3124c0,_0x3d2cd8)=>{_0x3d2cd8[0x0][_0x1a7688([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44e837++,_0x44e837==(0x535f89d2^_0x2c058c)&&(_0x1c6c02(),_0x3124c0[_0x1a7688([0x6f,0x66,0x66])]());});}))];return window[_0x1a7688([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a7688([0x72,0x61,0x63,0x65])](_0x199d81)[_0x1a7688([0x74,0x68,0x65,0x6e])](()=>_0x4e59bd);}async function _0x463aa4(){await _0xf6c3ab,_0x204ecf[_0x1a7688([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a7688([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e1fdd,_0x204ecf[_0x1a7688([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a7688([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e1fdd,_0x204ecf[_0x1a7688([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a7688([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x576484(_0x309b4e){const _0x57fc6e=_0x5a93ca();_0x204ecf[_0x57fc6e]=_0x1a7688([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x309b4e,_0x309b4e!=_0x1a7688([0x56,0x61,0x6c,0x69,0x64])&&_0x463aa4();}function _0x5a93ca(){const _0x4a88a1=window[_0x1a7688([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a7688([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a7688([0x6e,0x6f,0x77])]())[_0x1a7688([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a7688([0x2e]),'');let _0x5d2711=_0x1a7688([0x68]);for(let _0x38fd63=0x0;_0x38fd63<_0x4a88a1[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38fd63+=0x2){let _0x1b325b=window[_0x1a7688([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a88a1[_0x1a7688([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38fd63,_0x38fd63+0x2));_0x1b325b>=_0xd19ba[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b325b-=_0xd19ba[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d2711+=_0xd19ba[_0x1b325b];}return _0x5d2711;}function _0x5c42a3(){const _0xd6eb31=_0x2e6c1c[_0x1a7688([0x73,0x70,0x6c,0x69,0x74])](_0x1a7688([0x2e]));if(0x3!=_0xd6eb31[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x466c13(_0xd6eb31[0x1]);function _0x466c13(_0x32ef48){const _0x2f10f6=_0x29c463(_0x32ef48);return _0x2f10f6&&_0x2b3ff1()?_0x2f10f6:null;function _0x2b3ff1(){const _0x21865b=_0x2f10f6[_0x1a7688([0x6a,0x74,0x69])],_0x551433=window[_0x1a7688([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21865b[_0x1a7688([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21865b[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f9b42={..._0x2f10f6,[_0x1a7688([0x6a,0x74,0x69])]:_0x21865b[_0x1a7688([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x21865b[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f9b42[_0x1a7688([0x76,0x63])],_0x1bb343(_0x2f9b42)==_0x551433;}}}async function _0x380bae(){let _0xa3452c=!0x0;try{const _0x66b3b3=_0x2e6c1c[_0x1a7688([0x73,0x70,0x6c,0x69,0x74])](_0x1a7688([0x2e])),[_0x3c9948,_0x34f82f,_0x10e389]=_0x66b3b3;return _0x47a9d1(_0x3c9948),await _0x4c89fd(_0x3c9948,_0x34f82f,_0x10e389),_0xa3452c;}catch{return!0x1;}function _0x47a9d1(_0x49c0bb){const _0x107f4d=_0x29c463(_0x49c0bb);_0x107f4d&&_0x107f4d[_0x1a7688([0x61,0x6c,0x67])]==_0x1a7688([0x45,0x53,0x32,0x35,0x36])||(_0xa3452c=!0x1);}async function _0x4c89fd(_0x59e545,_0x39c3e7,_0x43cd9f){const _0x3c0cdd=window[_0x1a7688([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a7688([0x66,0x72,0x6f,0x6d])](_0x3c5791(_0x43cd9f),_0x14edac=>_0x14edac[_0x1a7688([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8785ce=new window[(_0x1a7688([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a7688([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59e545+_0x1a7688([0x2e])+_0x39c3e7),_0x3d5ec5=window[_0x1a7688([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a7688([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d5ec5)return;const _0xd9fbc=await _0x3d5ec5[_0x1a7688([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a7688([0x6a,0x77,0x6b]),_0x27e250,{[_0x1a7688([0x6e,0x61,0x6d,0x65])]:_0x1a7688([0x45,0x43,0x44,0x53,0x41]),[_0x1a7688([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a7688([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a7688([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d5ec5[_0x1a7688([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a7688([0x6e,0x61,0x6d,0x65])]:_0x1a7688([0x45,0x43,0x44,0x53,0x41]),[_0x1a7688([0x68,0x61,0x73,0x68])]:{[_0x1a7688([0x6e,0x61,0x6d,0x65])]:_0x1a7688([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd9fbc,_0x3c0cdd,_0x8785ce)||(_0xa3452c=!0x1);}}function _0x29c463(_0xeaf507){return _0xeaf507[_0x1a7688([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a7688([0x65,0x79]))?JSON[_0x1a7688([0x70,0x61,0x72,0x73,0x65])](_0x3c5791(_0xeaf507)):null;}function _0x3c5791(_0x587e55){return window[_0x1a7688([0x61,0x74,0x6f,0x62])](_0x587e55[_0x1a7688([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a7688([0x2b]))[_0x1a7688([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a7688([0x2f])));}function _0x1bb343(_0x5c81bc){let _0x4ddc05=0x1505;function _0x5dd7de(_0x178481){for(let _0x2c6007=0x0;_0x2c6007<_0x178481[_0x1a7688([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c6007++){const _0x132219=_0x178481[_0x1a7688([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c6007);_0x4ddc05=(_0x4ddc05<<0x5)+_0x4ddc05+_0x132219,_0x4ddc05&=_0x4ddc05;}}function _0x4eeafe(_0x17f6f2){Array[_0x1a7688([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x17f6f2)?_0x17f6f2[_0x1a7688([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4eeafe):_0x17f6f2&&typeof _0x17f6f2==_0x1a7688([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a7688([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x17f6f2)[_0x1a7688([0x73,0x6f,0x72,0x74])]()[_0x1a7688([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x353c53,_0x226e21])=>{_0x5dd7de(_0x353c53),_0x4eeafe(_0x226e21);}):_0x5dd7de(window[_0x1a7688([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x17f6f2));}return _0x4eeafe(_0x5c81bc),_0x4ddc05>>>0x0;}function _0x2c6718(_0x183772){return _0x183772[_0x1a7688([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a7688([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a7688([0x30]));}function _0x59d762(_0xce84e7){return _0xce84e7[_0x1a7688([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a7688([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a7688([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e1fdd(){}function _0x1a7688(_0x19a204){const _0x1baf8d=_0x334b;return _0x19a204[_0x1baf8d(0x1f9)](_0x4b1b5d=>String[_0x1baf8d(0x1e3)](_0x4b1b5d))[_0x1baf8d(0x20c)]('');}_0x576484(await _0x1481e5());}(this);}[_0x5750e7(0x1e6)](){const _0xbdaa5f=_0x5750e7,_0x5f4a75=this[_0xbdaa5f(0x211)][_0xbdaa5f(0x209)][_0xbdaa5f(0x1f3)];_0x5f4a75[_0xbdaa5f(0x231)](_0xbdaa5f(0x1f1))&&_0x5f4a75[_0xbdaa5f(0x1f0)](_0xbdaa5f(0x1f1),{'allowAttributes':[_0xbdaa5f(0x1e1)]}),_0x5f4a75[_0xbdaa5f(0x231)](_0xbdaa5f(0x1ea))&&_0x5f4a75[_0xbdaa5f(0x1f0)](_0xbdaa5f(0x1ea),{'allowAttributes':[_0xbdaa5f(0x1e1)]});}[_0x5750e7(0x20d)](){const _0x5263a5=_0x5750e7,_0x49e2dc=this[_0x5263a5(0x211)];_0x49e2dc[_0x5263a5(0x1ed)][_0x5263a5(0x207)](_0x5263a5(0x21c))[_0x5263a5(0x210)]({'model':_0x5263a5(0x1e1),'view':_0x5263a5(0x1ff)}),_0x49e2dc[_0x5263a5(0x1ed)][_0x5263a5(0x207)](_0x5263a5(0x1e9))[_0x5263a5(0x1e2)]({'model':{'key':_0x5263a5(0x1e1),'value':_0x48317b=>_0x48317b[_0x5263a5(0x223)](_0x5263a5(0x1ff))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x27a0fe=_0x49e2dc[_0x5263a5(0x225)][_0x5263a5(0x1e7)](_0x5263a5(0x1e8));_0x27a0fe&&this[_0x5263a5(0x217)](_0x27a0fe,_0x5263a5(0x21d),(_0x28f2c0,[_0xa0ebe6,_0x4ae3f2])=>{const _0x282fab=_0x5263a5;_0xa0ebe6[_0x282fab(0x1fb)](_0x282fab(0x1e1),_0x4ae3f2);});}[_0x5750e7(0x229)](){const _0x243cea=_0x5750e7,_0x334417=this[_0x243cea(0x211)][_0x243cea(0x22f)][_0x243cea(0x1e7)](_0x243cea(0x228))||{},_0xa9c90c=this[_0x243cea(0x211)][_0x243cea(0x22f)][_0x243cea(0x1e7)](_0x243cea(0x20a))||'';this[_0x243cea(0x221)]=_0x58aa0a(_0x36498b[_0x243cea(0x1fe)],_0x243cea(0x22d),{..._0x334417,'pubkey':_0xa9c90c,'ctx-name':_0x243cea(0x21b)+this[_0x243cea(0x206)],'sourceList':'','imgOnly':_0x243cea(0x224),'removeCopyright':_0x243cea(0x224),'localeName':this[_0x243cea(0x211)][_0x243cea(0x205)][_0x243cea(0x1ef)],'externalSourcesEmbedCss':_0x243cea(0x214)}),this[_0x243cea(0x221)][_0x243cea(0x1f6)]=_0x18f1a8=>{const _0x253666=_0x243cea;if(_0x253666(0x200)==_0x18f1a8)return _0x253666(0x1f5);},_0x36498b[_0x243cea(0x1fe)][_0x243cea(0x21e)][_0x243cea(0x234)](this[_0x243cea(0x221)]);}[_0x5750e7(0x227)](){const _0x162e9b=_0x5750e7;this[_0x162e9b(0x204)]=_0x58aa0a(_0x36498b[_0x162e9b(0x1fe)],_0x162e9b(0x222),{'ctx-name':_0x162e9b(0x21b)+this[_0x162e9b(0x206)]}),_0x36498b[_0x162e9b(0x1fe)][_0x162e9b(0x21e)][_0x162e9b(0x234)](this[_0x162e9b(0x204)]);}[_0x5750e7(0x216)](){const _0x5e71ad=_0x5750e7,_0x2d6f91=this[_0x5e71ad(0x211)][_0x5e71ad(0x225)][_0x5e71ad(0x1e7)](_0x5e71ad(0x1f7));_0x2d6f91&&this[_0x5e71ad(0x217)](_0x2d6f91,_0x5e71ad(0x202),()=>{const _0x5d8a44=_0x5e71ad,_0xd4b063=this[_0x5d8a44(0x211)][_0x5d8a44(0x209)][_0x5d8a44(0x1fe)][_0x5d8a44(0x1e4)][_0x5d8a44(0x22b)]();_0xd4b063&&_0xd4b063[_0x5d8a44(0x223)](_0x5d8a44(0x1e1))&&this[_0x5d8a44(0x211)][_0x5d8a44(0x232)][_0x5d8a44(0x213)][_0x5d8a44(0x21f)](_0x5d8a44(0x1f8),()=>{const _0x5c5caf=_0x5d8a44;_0x45f8df(this[_0x5c5caf(0x211)],_0xd4b063);});});const _0x4ee5ef=this[_0x5e71ad(0x211)][_0x5e71ad(0x225)][_0x5e71ad(0x1e7)](_0x5e71ad(0x20e));_0x4ee5ef&&this[_0x5e71ad(0x217)](_0x4ee5ef,_0x5e71ad(0x202),()=>{const _0x1c935b=_0x5e71ad,_0x58a08b=this[_0x1c935b(0x211)][_0x1c935b(0x209)][_0x1c935b(0x1fe)][_0x1c935b(0x1e4)][_0x1c935b(0x22b)]();_0x58a08b&&_0x58a08b[_0x1c935b(0x223)](_0x1c935b(0x1e1))&&this[_0x1c935b(0x211)][_0x1c935b(0x232)][_0x1c935b(0x213)][_0x1c935b(0x21f)](_0x1c935b(0x1f8),()=>{const _0x293eda=_0x1c935b;_0x45f8df(this[_0x293eda(0x211)],_0x58a08b);});});}}
|
|
23
|
+
function _0x5c75(){const _0x1914df=['uc-config','once','_ctxElement','153891foxAlv','imageBlock','input[uploadcare-file-input]','appendChild','map','init','document','insertImage','removeAttribute','isPremiumPlugin','data-uc-image-id','closeMax','schema','render','conversion','imageInline','216148GZrzwI','view','144524jbWICp','config','2fYRCxa','isOfficialPlugin','uploader-','execute','10zzzfAG','ucContextId','_initSchema','locale','elementToAttribute','iconHrefResolver','_configElement','editing','_initImageProcessingIndicator','pluginName','querySelector','true','fromCharCode','UploadcareEditing','#uc-icon-arrow-down','downcast','model','uploadcareImageId','contentLanguage','requires','join','_initConversion','7pngfVv','ctxElement','body','uploadcare','extend','commands','configElement','2034nUsXAu','listenTo','137200RmRDiu','221682deAJam','uc-upload-ctx-provider','4432iEMRMZ','PictureEditing','selection','afterInit','5504004uMjPVa','attributeToAttribute','remove','upcast','_initConfig','getAttribute','getSelectedElement','destroy','editor','for','isRegistered','uploadcareImageReplace','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uploadcare.pubkey','uploadcare.uploader','add','_initCtx','replaceImageSource','get','href','cleanupImage'];_0x5c75=function(){return _0x1914df;};return _0x5c75();}const _0x48df96=_0x18de;(function(_0x12eb9e,_0x3d33bf){const _0x147266=_0x18de,_0x2b7f9c=_0x12eb9e();while(!![]){try{const _0x381b02=-parseInt(_0x147266(0x181))/0x1*(parseInt(_0x147266(0x17f))/0x2)+parseInt(_0x147266(0x1c3))/0x3+-parseInt(_0x147266(0x17d))/0x4*(parseInt(_0x147266(0x185))/0x5)+parseInt(_0x147266(0x1a5))/0x6*(-parseInt(_0x147266(0x19b))/0x7)+parseInt(_0x147266(0x1a7))/0x8*(-parseInt(_0x147266(0x1a2))/0x9)+-parseInt(_0x147266(0x1a4))/0xa+parseInt(_0x147266(0x1ab))/0xb;if(_0x381b02===_0x3d33bf)break;else _0x2b7f9c['push'](_0x2b7f9c['shift']());}catch(_0x46dbf0){_0x2b7f9c['push'](_0x2b7f9c['shift']());}}}(_0x5c75,0x1e138));import{Plugin as _0x12b49d}from'ckeditor5/src/core.js';import{Dialog as _0x9881fc}from'ckeditor5/src/ui.js';import{createElement as _0x13aa04,global as _0x30c28e,uid as _0x12893c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1c0f4c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5bd880}from'./uploadcareuploadadapter.js';function _0x18de(_0x421360,_0x514456){const _0x5c7559=_0x5c75();return _0x18de=function(_0x18deed,_0x34d3bd){_0x18deed=_0x18deed-0x17b;let _0x365dee=_0x5c7559[_0x18deed];return _0x365dee;},_0x18de(_0x421360,_0x514456);}import{showImageProcessingIndicator as _0x6499c4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x12b49d{[_0x48df96(0x18b)]=null;[_0x48df96(0x1c2)]=null;static get[_0x48df96(0x18e)](){const _0x3956b0=_0x48df96;return _0x3956b0(0x192);}static get[_0x48df96(0x198)](){const _0x3e7518=_0x48df96;return[_0x3e7518(0x1a8),_0x5bd880,_0x9881fc];}static get[_0x48df96(0x182)](){return!0x0;}static get[_0x48df96(0x1cc)](){return!0x0;}[_0x48df96(0x186)];get[_0x48df96(0x1a1)](){const _0xbecbbf=_0x48df96;return this[_0xbecbbf(0x18b)];}get[_0x48df96(0x19c)](){const _0x1c806f=_0x48df96;return this[_0x1c806f(0x1c2)];}constructor(_0x4f46cd){const _0x4c1db4=_0x48df96;super(_0x4f46cd),this[_0x4c1db4(0x186)]=_0x12893c();}[_0x48df96(0x1c8)](){const _0x4f2040=_0x48df96,_0x5bf19c=this[_0x4f2040(0x1b3)];_0x5bf19c[_0x4f2040(0x1a0)][_0x4f2040(0x1ba)](_0x4f2040(0x19e),new _0x1c0f4c(_0x5bf19c));}[_0x48df96(0x1aa)](){const _0x134b93=_0x48df96;this[_0x134b93(0x187)](),this[_0x134b93(0x19a)](),this[_0x134b93(0x1af)](),this[_0x134b93(0x1bb)](),this[_0x134b93(0x18d)](),this[_0x134b93(0x1a3)](this[_0x134b93(0x1b3)],_0x134b93(0x1b2),()=>{const _0x256257=_0x134b93;this[_0x256257(0x18b)]&&(this[_0x256257(0x18b)][_0x256257(0x1ad)](),this[_0x256257(0x18b)]=null),this[_0x256257(0x1c2)]&&(this[_0x256257(0x1c2)][_0x256257(0x1ad)](),this[_0x256257(0x1c2)]=null);const _0x87ccfd=_0x30c28e[_0x256257(0x1c9)][_0x256257(0x18f)](_0x256257(0x1c5));_0x87ccfd&&_0x87ccfd[_0x256257(0x1ad)]();}),async function(_0x3456be){const _0x747302=_0x533ee6([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4b0458=0x535f8c3a,_0x43faad=0x53580d32^_0x4b0458,_0x291370=window[_0x533ee6([0x44,0x61,0x74,0x65])][_0x533ee6([0x6e,0x6f,0x77])](),_0x36a873=_0x3456be[_0x533ee6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f20df=new window[(_0x533ee6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15fea6=>{_0x36a873[_0x533ee6([0x6f,0x6e,0x63,0x65])](_0x533ee6([0x72,0x65,0x61,0x64,0x79]),_0x15fea6);}),_0x34b7e2={[_0x533ee6([0x6b,0x74,0x79])]:_0x533ee6([0x45,0x43]),[_0x533ee6([0x75,0x73,0x65])]:_0x533ee6([0x73,0x69,0x67]),[_0x533ee6([0x63,0x72,0x76])]:_0x533ee6([0x50,0x2d,0x32,0x35,0x36]),[_0x533ee6([0x78])]:_0x533ee6([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]),[_0x533ee6([0x79])]:_0x533ee6([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]),[_0x533ee6([0x61,0x6c,0x67])]:_0x533ee6([0x45,0x53,0x32,0x35,0x36])},_0x52daa2=_0x36a873[_0x533ee6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x533ee6([0x67,0x65,0x74])](_0x533ee6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3ecffb(){let _0x1e896e,_0x413ecd=null,_0x4f6231=null;try{if(_0x52daa2==_0x533ee6([0x47,0x50,0x4c]))return _0x533ee6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e896e=_0x42c1c8(),!_0x1e896e)return _0x533ee6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e896e[_0x533ee6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f6231=_0x3110ee(_0x1e896e[_0x533ee6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e896e[_0x533ee6([0x6a,0x74,0x69])])),await _0x494046()?_0x21a0b9()?_0x1c86b2()?_0x533ee6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51b608()?(_0x1e896e[_0x533ee6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x533ee6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x413ecd=_0x48de69(_0x533ee6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ed5f5()):_0x533ee6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x533ee6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x533ee6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x533ee6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c86b2(){const _0x90737f=[_0x533ee6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x533ee6([0x74,0x72,0x69,0x61,0x6c])][_0x533ee6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e896e[_0x533ee6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x291370/0x3e8:0xe10*_0x43faad;return _0x1e896e[_0x533ee6([0x65,0x78,0x70])]<_0x90737f;}function _0x21a0b9(){const _0x1c7ecc=_0x1e896e[_0x533ee6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c7ecc&&(!!_0x1c7ecc[_0x533ee6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533ee6([0x2a]))||!!_0x1c7ecc[_0x533ee6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533ee6([0x55,0x50,0x4c,0x43])));}function _0x51b608(){const _0x4071e8=_0x18de,_0xa48335=_0x1e896e[_0x533ee6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa48335||0x0==_0xa48335[_0x533ee6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x352e40}=new URL(window[_0x533ee6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4071e8(0x1be)]);if(_0xa48335[_0x533ee6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x352e40))return!0x0;const _0x3d9a77=_0x352e40[_0x533ee6([0x73,0x70,0x6c,0x69,0x74])](_0x533ee6([0x2e]));return _0xa48335[_0x533ee6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53682e=>_0x53682e[_0x533ee6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533ee6([0x2a])))[_0x533ee6([0x6d,0x61,0x70])](_0x13dd16=>_0x13dd16[_0x533ee6([0x73,0x70,0x6c,0x69,0x74])](_0x533ee6([0x2e])))[_0x533ee6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23eb5b=>_0x23eb5b[_0x533ee6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d9a77[_0x533ee6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x533ee6([0x6d,0x61,0x70])](_0x3dec9f=>Array(_0x3d9a77[_0x533ee6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3dec9f[_0x533ee6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x533ee6([0x66,0x69,0x6c,0x6c])](_0x3dec9f[0x0]===_0x533ee6([0x2a])?_0x533ee6([0x2a]):'')[_0x533ee6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3dec9f))[_0x533ee6([0x73,0x6f,0x6d,0x65])](_0x3376b3=>_0x3d9a77[_0x533ee6([0x65,0x76,0x65,0x72,0x79])]((_0x59b5f8,_0x37dd97)=>_0x3376b3[_0x37dd97]===_0x59b5f8||_0x3376b3[_0x37dd97]===_0x533ee6([0x2a])));}function _0x2ed5f5(){return _0x413ecd&&_0x4f6231?new window[(_0x533ee6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57a334,_0x5b08e1)=>{_0x413ecd[_0x533ee6([0x74,0x68,0x65,0x6e])](_0x57a334,_0x5b08e1),_0x4f6231[_0x533ee6([0x74,0x68,0x65,0x6e])](_0x35ead2=>{_0x35ead2!=_0x533ee6([0x56,0x61,0x6c,0x69,0x64])&&_0x57a334(_0x35ead2);},_0x5b08e1);}):_0x413ecd||_0x4f6231||_0x533ee6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3110ee(_0x206829,_0x18802f){return new window[(_0x533ee6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d1769=>{if(_0x5779ed())return _0x1d1769(_0x533ee6([0x56,0x61,0x6c,0x69,0x64]));_0x482b92(),_0x36a873[_0x533ee6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x533ee6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x191ffd=!0x1;const _0xce6b43=_0x12893c();function _0xd8994e(_0x475d19){return!!_0x475d19&&(typeof _0x475d19===_0x533ee6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x475d19===_0x533ee6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x475d19[_0x533ee6([0x74,0x68,0x65,0x6e])]===_0x533ee6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x475d19[_0x533ee6([0x63,0x61,0x74,0x63,0x68])]===_0x533ee6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42123b(_0x4fae50){_0x24d5dc(_0x4fae50)[_0x533ee6([0x74,0x68,0x65,0x6e])](_0x42dead=>{if(!_0x42dead||_0x42dead[_0x533ee6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x533ee6([0x6f,0x6b]))return _0x533ee6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x18a9fe(_0x2f3df6(_0xce6b43+_0x18802f))!=_0x42dead[_0x533ee6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x533ee6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x533ee6([0x56,0x61,0x6c,0x69,0x64]);})[_0x533ee6([0x74,0x68,0x65,0x6e])](_0x4584e2=>(_0x291273(),_0x4584e2),()=>{const _0x1524ce=_0x193475();return null==_0x1524ce?(_0x291273(),_0x533ee6([0x56,0x61,0x6c,0x69,0x64])):_0x533ee6(_0x291370-_0x1524ce>(0x7753083a^_0x4b0458)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x533ee6([0x74,0x68,0x65,0x6e])](_0x1d1769)[_0x533ee6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d1769(_0x533ee6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x43066a=0x536962ba^_0x4b0458;function _0x291273(){const _0x472939=_0x533ee6([0x6c,0x6c,0x63,0x74,0x2d])+_0x18a9fe(_0x2f3df6(_0x206829)),_0x3e6384=_0x42e28e(_0x18a9fe(window[_0x533ee6([0x4d,0x61,0x74,0x68])][_0x533ee6([0x63,0x65,0x69,0x6c])](_0x291370/_0x43066a)));window[_0x533ee6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x533ee6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x472939,_0x3e6384);}function _0x193475(){const _0x52f087=_0x533ee6([0x6c,0x6c,0x63,0x74,0x2d])+_0x18a9fe(_0x2f3df6(_0x206829)),_0x3196bb=window[_0x533ee6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x533ee6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52f087);return _0x3196bb?window[_0x533ee6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42e28e(_0x3196bb),0x10)*_0x43066a:null;}function _0x24d5dc(_0x20896e){return new window[(_0x533ee6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x525eb7,_0x30d039)=>{_0x20896e[_0x533ee6([0x74,0x68,0x65,0x6e])](_0x525eb7,_0x30d039),window[_0x533ee6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30d039,0x535e58fa^_0x4b0458);});}}_0x36a873[_0x533ee6([0x6f,0x6e])](_0x533ee6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12b2b2,_0x348c44)=>{if(_0x348c44[0x0]!=_0x206829)return _0x1d1769(_0x533ee6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x348c44[0x1]={..._0x348c44[0x1],[_0x533ee6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xce6b43};},{[_0x533ee6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x533ee6([0x68,0x69,0x67,0x68])}),_0x36a873[_0x533ee6([0x6f,0x6e])](_0x533ee6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x230071=>{_0xd8994e(_0x230071[_0x533ee6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x191ffd=!0x0,_0x42123b(_0x230071[_0x533ee6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x533ee6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x533ee6([0x6c,0x6f,0x77])}),_0x4f20df[_0x533ee6([0x74,0x68,0x65,0x6e])](()=>{_0x191ffd||_0x1d1769(_0x533ee6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5779ed(){return _0x36a873[_0x533ee6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533ee6([0x76,0x69,0x65,0x77])][_0x533ee6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x533ee6([0x61,0x75,0x74,0x6f]);}function _0x482b92(){_0x36a873[_0x533ee6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533ee6([0x76,0x69,0x65,0x77])][_0x533ee6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x533ee6([0x61,0x75,0x74,0x6f]);}}function _0x48de69(_0x51ec61){const _0x55db62=[new window[(_0x533ee6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x875988=>setTimeout(_0x875988,0x5356b2f6^_0x4b0458)),_0x4f20df[_0x533ee6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x533ee6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x210eaa=>{let _0x4b0187=0x0;_0x36a873[_0x533ee6([0x6d,0x6f,0x64,0x65,0x6c])][_0x533ee6([0x6f,0x6e])](_0x533ee6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x734e83,_0x3c2b61)=>{_0x3c2b61[0x0][_0x533ee6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b0187++,_0x4b0187==(0x535f89d2^_0x4b0458)&&(_0x210eaa(),_0x734e83[_0x533ee6([0x6f,0x66,0x66])]());});}))];return window[_0x533ee6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x533ee6([0x72,0x61,0x63,0x65])](_0x55db62)[_0x533ee6([0x74,0x68,0x65,0x6e])](()=>_0x51ec61);}async function _0xb79c97(){await _0x4f20df,_0x36a873[_0x533ee6([0x6d,0x6f,0x64,0x65,0x6c])][_0x533ee6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d19f8,_0x36a873[_0x533ee6([0x6d,0x6f,0x64,0x65,0x6c])][_0x533ee6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d19f8,_0x36a873[_0x533ee6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x533ee6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x171673(_0x27e3cf){const _0x4e1932=_0x55975a();_0x36a873[_0x4e1932]=_0x533ee6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27e3cf,_0x27e3cf!=_0x533ee6([0x56,0x61,0x6c,0x69,0x64])&&_0xb79c97();}function _0x55975a(){const _0x16ac3e=window[_0x533ee6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x533ee6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x533ee6([0x6e,0x6f,0x77])]())[_0x533ee6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x533ee6([0x2e]),'');let _0x4c3c4e=_0x533ee6([0x68]);for(let _0x1562d0=0x0;_0x1562d0<_0x16ac3e[_0x533ee6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1562d0+=0x2){let _0x1ae629=window[_0x533ee6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16ac3e[_0x533ee6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1562d0,_0x1562d0+0x2));_0x1ae629>=_0x747302[_0x533ee6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ae629-=_0x747302[_0x533ee6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c3c4e+=_0x747302[_0x1ae629];}return _0x4c3c4e;}function _0x42c1c8(){const _0x32d3d0=_0x52daa2[_0x533ee6([0x73,0x70,0x6c,0x69,0x74])](_0x533ee6([0x2e]));if(0x3!=_0x32d3d0[_0x533ee6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x357ea3(_0x32d3d0[0x1]);function _0x357ea3(_0x2f14f6){const _0x105c75=_0x1d87ce(_0x2f14f6);return _0x105c75&&_0x4d5097()?_0x105c75:null;function _0x4d5097(){const _0x389f30=_0x105c75[_0x533ee6([0x6a,0x74,0x69])],_0x2e2eba=window[_0x533ee6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x389f30[_0x533ee6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x389f30[_0x533ee6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd6faa2={..._0x105c75,[_0x533ee6([0x6a,0x74,0x69])]:_0x389f30[_0x533ee6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x389f30[_0x533ee6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd6faa2[_0x533ee6([0x76,0x63])],_0x2f3df6(_0xd6faa2)==_0x2e2eba;}}}async function _0x494046(){let _0x4fb9bc=!0x0;try{const _0x2ed9ab=_0x52daa2[_0x533ee6([0x73,0x70,0x6c,0x69,0x74])](_0x533ee6([0x2e])),[_0x36fa58,_0x211441,_0x57fd3a]=_0x2ed9ab;return _0x36c830(_0x36fa58),await _0x47339d(_0x36fa58,_0x211441,_0x57fd3a),_0x4fb9bc;}catch{return!0x1;}function _0x36c830(_0xe70df1){const _0x220eae=_0x1d87ce(_0xe70df1);_0x220eae&&_0x220eae[_0x533ee6([0x61,0x6c,0x67])]==_0x533ee6([0x45,0x53,0x32,0x35,0x36])||(_0x4fb9bc=!0x1);}async function _0x47339d(_0x3becfb,_0x4fe49f,_0x354b5c){const _0x57acce=window[_0x533ee6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x533ee6([0x66,0x72,0x6f,0x6d])](_0x34f02f(_0x354b5c),_0x2a8ad3=>_0x2a8ad3[_0x533ee6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32dbf7=new window[(_0x533ee6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x533ee6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3becfb+_0x533ee6([0x2e])+_0x4fe49f),_0x278fbc=window[_0x533ee6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x533ee6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x278fbc)return;const _0x48b041=await _0x278fbc[_0x533ee6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x533ee6([0x6a,0x77,0x6b]),_0x34b7e2,{[_0x533ee6([0x6e,0x61,0x6d,0x65])]:_0x533ee6([0x45,0x43,0x44,0x53,0x41]),[_0x533ee6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x533ee6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x533ee6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x278fbc[_0x533ee6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x533ee6([0x6e,0x61,0x6d,0x65])]:_0x533ee6([0x45,0x43,0x44,0x53,0x41]),[_0x533ee6([0x68,0x61,0x73,0x68])]:{[_0x533ee6([0x6e,0x61,0x6d,0x65])]:_0x533ee6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48b041,_0x57acce,_0x32dbf7)||(_0x4fb9bc=!0x1);}}function _0x1d87ce(_0x4434c8){return _0x4434c8[_0x533ee6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x533ee6([0x65,0x79]))?JSON[_0x533ee6([0x70,0x61,0x72,0x73,0x65])](_0x34f02f(_0x4434c8)):null;}function _0x34f02f(_0xc2db49){return window[_0x533ee6([0x61,0x74,0x6f,0x62])](_0xc2db49[_0x533ee6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x533ee6([0x2b]))[_0x533ee6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x533ee6([0x2f])));}function _0x2f3df6(_0x614b26){let _0x2aff19=0x1505;function _0x3549eb(_0xb9dd73){for(let _0x1ec268=0x0;_0x1ec268<_0xb9dd73[_0x533ee6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ec268++){const _0x412005=_0xb9dd73[_0x533ee6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ec268);_0x2aff19=(_0x2aff19<<0x5)+_0x2aff19+_0x412005,_0x2aff19&=_0x2aff19;}}function _0x132a37(_0x137098){Array[_0x533ee6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x137098)?_0x137098[_0x533ee6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x132a37):_0x137098&&typeof _0x137098==_0x533ee6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x533ee6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x137098)[_0x533ee6([0x73,0x6f,0x72,0x74])]()[_0x533ee6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b2c71,_0x29dcec])=>{_0x3549eb(_0x3b2c71),_0x132a37(_0x29dcec);}):_0x3549eb(window[_0x533ee6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x137098));}return _0x132a37(_0x614b26),_0x2aff19>>>0x0;}function _0x18a9fe(_0x234c46){return _0x234c46[_0x533ee6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x533ee6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x533ee6([0x30]));}function _0x42e28e(_0x55d4be){return _0x55d4be[_0x533ee6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x533ee6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x533ee6([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d19f8(){}function _0x533ee6(_0x4a0230){const _0x3ed247=_0x18de;return _0x4a0230[_0x3ed247(0x1c7)](_0x59552c=>String[_0x3ed247(0x191)](_0x59552c))[_0x3ed247(0x199)]('');}_0x171673(await _0x3ecffb());}(this);}[_0x48df96(0x187)](){const _0x47f5dd=_0x48df96,_0x112d47=this[_0x47f5dd(0x1b3)][_0x47f5dd(0x195)][_0x47f5dd(0x1cf)];_0x112d47[_0x47f5dd(0x1b5)](_0x47f5dd(0x1c4))&&_0x112d47[_0x47f5dd(0x19f)](_0x47f5dd(0x1c4),{'allowAttributes':[_0x47f5dd(0x196)]}),_0x112d47[_0x47f5dd(0x1b5)](_0x47f5dd(0x17c))&&_0x112d47[_0x47f5dd(0x19f)](_0x47f5dd(0x17c),{'allowAttributes':[_0x47f5dd(0x196)]});}[_0x48df96(0x19a)](){const _0x5e3598=_0x48df96,_0x93114d=this[_0x5e3598(0x1b3)];_0x93114d[_0x5e3598(0x17b)][_0x5e3598(0x1b4)](_0x5e3598(0x194))[_0x5e3598(0x1ac)]({'model':_0x5e3598(0x196),'view':_0x5e3598(0x1cd)}),_0x93114d[_0x5e3598(0x17b)][_0x5e3598(0x1b4)](_0x5e3598(0x1ae))[_0x5e3598(0x189)]({'model':{'key':_0x5e3598(0x196),'value':_0x19a2a5=>_0x19a2a5[_0x5e3598(0x1b0)](_0x5e3598(0x1cd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x6bdaba=_0x93114d[_0x5e3598(0x1a0)][_0x5e3598(0x1bd)](_0x5e3598(0x1bc));_0x6bdaba&&this[_0x5e3598(0x1a3)](_0x6bdaba,_0x5e3598(0x1bf),(_0x61a241,[_0x2233c5,_0x3b0145])=>{const _0x147eb0=_0x5e3598;_0x2233c5[_0x147eb0(0x1cb)](_0x147eb0(0x196),_0x3b0145);});}[_0x48df96(0x1af)](){const _0x1dcc04=_0x48df96,_0x4cf047=this[_0x1dcc04(0x1b3)][_0x1dcc04(0x180)][_0x1dcc04(0x1bd)](_0x1dcc04(0x1b9))||{},_0x58dc67=this[_0x1dcc04(0x1b3)][_0x1dcc04(0x180)][_0x1dcc04(0x1bd)](_0x1dcc04(0x1b8))||'';this[_0x1dcc04(0x18b)]=_0x13aa04(_0x30c28e[_0x1dcc04(0x1c9)],_0x1dcc04(0x1c0),{..._0x4cf047,'pubkey':_0x58dc67,'ctx-name':_0x1dcc04(0x183)+this[_0x1dcc04(0x186)],'sourceList':'','imgOnly':_0x1dcc04(0x190),'removeCopyright':_0x1dcc04(0x190),'localeName':this[_0x1dcc04(0x1b3)][_0x1dcc04(0x188)][_0x1dcc04(0x197)],'externalSourcesEmbedCss':_0x1dcc04(0x1b7)}),this[_0x1dcc04(0x18b)][_0x1dcc04(0x18a)]=_0x581307=>{const _0x4dd142=_0x1dcc04;if(_0x4dd142(0x1ce)==_0x581307)return _0x4dd142(0x193);},_0x30c28e[_0x1dcc04(0x1c9)][_0x1dcc04(0x19d)][_0x1dcc04(0x1c6)](this[_0x1dcc04(0x18b)]);}[_0x48df96(0x1bb)](){const _0x2e1cef=_0x48df96;this[_0x2e1cef(0x1c2)]=_0x13aa04(_0x30c28e[_0x2e1cef(0x1c9)],_0x2e1cef(0x1a6),{'ctx-name':_0x2e1cef(0x183)+this[_0x2e1cef(0x186)]}),_0x30c28e[_0x2e1cef(0x1c9)][_0x2e1cef(0x19d)][_0x2e1cef(0x1c6)](this[_0x2e1cef(0x1c2)]);}[_0x48df96(0x18d)](){const _0x38756c=_0x48df96,_0x1cff0e=this[_0x38756c(0x1b3)][_0x38756c(0x1a0)][_0x38756c(0x1bd)](_0x38756c(0x1ca));_0x1cff0e&&this[_0x38756c(0x1a3)](_0x1cff0e,_0x38756c(0x184),()=>{const _0x85c797=_0x38756c,_0x3b947a=this[_0x85c797(0x1b3)][_0x85c797(0x195)][_0x85c797(0x1c9)][_0x85c797(0x1a9)][_0x85c797(0x1b1)]();_0x3b947a&&_0x3b947a[_0x85c797(0x1b0)](_0x85c797(0x196))&&this[_0x85c797(0x1b3)][_0x85c797(0x18c)][_0x85c797(0x17e)][_0x85c797(0x1c1)](_0x85c797(0x1d0),()=>{const _0x9a2d01=_0x85c797;_0x6499c4(this[_0x9a2d01(0x1b3)],_0x3b947a);});});const _0x3aca26=this[_0x38756c(0x1b3)][_0x38756c(0x1a0)][_0x38756c(0x1bd)](_0x38756c(0x1b6));_0x3aca26&&this[_0x38756c(0x1a3)](_0x3aca26,_0x38756c(0x184),()=>{const _0x21667b=_0x38756c,_0x1cca0b=this[_0x21667b(0x1b3)][_0x21667b(0x195)][_0x21667b(0x1c9)][_0x21667b(0x1a9)][_0x21667b(0x1b1)]();_0x1cca0b&&_0x1cca0b[_0x21667b(0x1b0)](_0x21667b(0x196))&&this[_0x21667b(0x1b3)][_0x21667b(0x18c)][_0x21667b(0x17e)][_0x21667b(0x1c1)](_0x21667b(0x1d0),()=>{const _0x4eff20=_0x21667b;_0x6499c4(this[_0x4eff20(0x1b3)],_0x1cca0b);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x52ae7a,ObservableMixin as _0x5274d6}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x22b93f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x55e7b0}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1189ac}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xfa9e62}from'../../utils/uploadutils.js';import{getImageUrls as _0x5ba97d,getImageDimension as _0x3be249}from'../../utils/editingutils.js';import{isAncestor as _0x48c559}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5274d6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x19dc83,_0x4393b3,_0x4a8b00){super(),this['_editor']=_0x19dc83,this['_dialog']=_0x4393b3,this['_imageElement']=_0x4a8b00,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 _0x2641f8=this['_imageElement'],_0x264aa8=_0x2641f8['getAttribute']('uploadcareImageId'),_0x51df76=_0x2641f8['getAttribute']('src');if(_0x264aa8)await this['_loadImageInfo'](_0x264aa8,_0x51df76);else{if(this['_imageCache']['has'](_0x51df76)){const _0x25bce7=this['_imageCache']['get'](_0x51df76);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25bce7['url'],this['imageDimension']=_0x25bce7['dimension'],this['imageId']=_0x25bce7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x14164a}=this['_editor'],t=_0x14164a['t'],_0x279f63=new _0x1189ac(_0x14164a,this['imageStatus'],this['_attributes']);_0x279f63['bind']('status')['to'](this,'imageStatus'),_0x279f63['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x279f63['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x279f63['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x279f63,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x55e7b0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x279f63,'position':_0x22b93f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x279f63['focus']();},'onHide':()=>{_0x279f63['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2da557=>!_0x48c559(_0x2da557,_0x279f63['element'])}});}['_loadImageInfo'](_0x57cd59,_0x5db2c3){return _0xfa9e62['getInfo'](_0x57cd59,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x36a282=>{const {width:_0x15cf9b,height:_0x343eba}=_0x36a282['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5db2c3,this['imageDimension']={'width':_0x15cf9b,'height':_0x343eba},this['imageId']=_0x57cd59;})['catch'](_0x118dab=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x118dab['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3742aa,_0xe93ffe){return this['_getImageAsFile'](_0x3742aa)['then'](_0x1b80ae=>_0xfa9e62['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xe93ffe['signal'],'file':_0x1b80ae,'onProgress':_0x1a1df9=>{_0x1a1df9&&_0x1a1df9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1a1df9['value']));}}))['then'](_0x19cec4=>{const {width:_0x4f4236,height:_0x3177e4}=_0x19cec4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x19cec4['cdnUrl'],this['imageDimension']={'width':_0x4f4236,'height':_0x3177e4},this['imageId']=_0x19cec4['uuid'],this['imageUploadProgress']=null;const _0x534dcb=_0x3742aa['getAttribute']('src');this['_imageCache']['set'](_0x534dcb,{'id':_0x19cec4['uuid'],'url':_0x19cec4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x32fad9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x32fad9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xb280cc,_0x1ef139){_0xb280cc['on']('apply',(_0x31912d,_0x3adfce)=>{this['_replaceImage'](_0x1ef139,_0x3adfce['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xb280cc['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xb280cc['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x558957,_0x47dd45,_0x1f1fed){const _0x22e299=this['_editor'],{width:_0x2636fe,height:_0x3be626}=_0x3be249(_0x47dd45,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3769f7,imageSources:_0x4cf463}=_0x5ba97d(_0x47dd45,_0x2636fe);_0x22e299['model']['change'](_0x3364c8=>{if('$graveyard'===_0x558957['root']['rootName']){_0x22e299['execute']('insertImage',{'imageType':_0x558957['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x558957['getAttributes']()),'uploadcareImageId':_0x1f1fed,'src':_0x3769f7,'sources':_0x4cf463,'width':_0x2636fe,'height':_0x3be626}});const _0x5af318=_0x558957['getChildren']();_0x558957=_0x22e299['model']['document']['selection']['getSelectedElement']();for(const _0x4c623c of _0x5af318)_0x3364c8['append'](_0x3364c8['cloneElement'](_0x4c623c),_0x558957);}else _0x3364c8['setSelection'](_0x558957,'on'),_0x22e299['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x558957['getAttributes']()),'uploadcareImageId':_0x1f1fed,'src':_0x3769f7,'sources':_0x4cf463,'width':_0x2636fe,'height':_0x3be626},_0x558957);_0x3364c8['setSelection'](_0x558957,'on');});}async['_getImageAsFile'](_0x367fe5){const _0x43b2b5=_0x52ae7a['window'],_0x9fd4b5=_0x52ae7a['document']['location']['href'],_0x4e4df2=new _0x43b2b5['URL'](_0x367fe5['getAttribute']('src'),_0x9fd4b5);if('data:'===_0x4e4df2['protocol']){const _0x1041df=_0x4e4df2['href']['split'](','),_0xdc9dda=_0x1041df[0x0]['match'](/:(.*?);/)[0x1],_0xe5baed=_0xdc9dda['split']('/')[0x1],_0x491c03=_0x43b2b5['atob'](_0x1041df[_0x1041df['length']-0x1]);let _0x5eb9a1=_0x491c03['length'];const _0x5c3344=new _0x43b2b5['Uint8Array'](_0x5eb9a1);for(;_0x5eb9a1--;)_0x5c3344[_0x5eb9a1]=_0x491c03['charCodeAt'](_0x5eb9a1);return new _0x43b2b5['File']([_0x5c3344],'image.'+_0xe5baed,{'type':_0xdc9dda});}const _0xfd142e=_0x4e4df2['href']['split']('/'),_0x175d6d=_0xfd142e[_0xfd142e['length']-0x1],_0x3ac95d=_0x175d6d['split']('.')[0x1];return _0x43b2b5['fetch'](_0x4e4df2['href'])['then'](_0x102643=>_0x102643['clone']()['blob']())['then'](_0x57dd25=>new _0x43b2b5['File']([_0x57dd25],_0x175d6d,{'type':'image/'+_0x3ac95d}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x146b(){const _0x22dff9=['uc-cloud-image-editor','486084IXKQod','35EvFkpR','18DGjqQj','ck-uploadcare-theme','1024975SRdFyh','280671dwFeZS','set','36Hcuwrl','bindTemplate','18vrWQwL','imageSrc','image-edit','setTemplate','502660cSvyBP','uc-light','1920904PfVGxW','36648gzTmUX','12351251rwyUDH'];_0x146b=function(){return _0x22dff9;};return _0x146b();}(function(_0x1cfbbe,_0x5e406c){const _0x3c3d8d=_0x41cc,_0x57b533=_0x1cfbbe();while(!![]){try{const _0x595c98=parseInt(_0x3c3d8d(0x8f))/0x1+parseInt(_0x3c3d8d(0x94))/0x2*(parseInt(_0x3c3d8d(0x97))/0x3)+-parseInt(_0x3c3d8d(0x92))/0x4*(parseInt(_0x3c3d8d(0x93))/0x5)+-parseInt(_0x3c3d8d(0x88))/0x6*(-parseInt(_0x3c3d8d(0x96))/0x7)+-parseInt(_0x3c3d8d(0x8e))/0x8*(parseInt(_0x3c3d8d(0x86))/0x9)+parseInt(_0x3c3d8d(0x8c))/0xa+parseInt(_0x3c3d8d(0x90))/0xb;if(_0x595c98===_0x5e406c)break;else _0x57b533['push'](_0x57b533['shift']());}catch(_0x54291c){_0x57b533['push'](_0x57b533['shift']());}}}(_0x146b,0xa6008));import{View as _0x13e744}from'ckeditor5/src/ui.js';function _0x41cc(_0x22daac,_0x3e884f){const _0x146b28=_0x146b();return _0x41cc=function(_0x41ccf2,_0x3295eb){_0x41ccf2=_0x41ccf2-0x86;let _0xb87bc3=_0x146b28[_0x41ccf2];return _0xb87bc3;},_0x41cc(_0x22daac,_0x3e884f);}export class UploadcareImageEditFormEditingView extends _0x13e744{constructor(_0x2d860b,_0x306adb){const _0x527e12=_0x41cc;super(_0x2d860b);const _0x5b18a9=this[_0x527e12(0x87)];this[_0x527e12(0x98)](_0x527e12(0x89),''),this[_0x527e12(0x8b)]({'tag':_0x527e12(0x91),'attributes':{..._0x306adb,'class':[_0x527e12(0x8d),_0x527e12(0x95)],'ctx-name':_0x527e12(0x8a),'cdn-url':_0x5b18a9['to'](_0x527e12(0x89))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x1f5578}from'ckeditor5/src/icons.js';import{ButtonView as _0x9d0265,IconView as _0x5182da,View as _0x5ad369}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5ad369{constructor(_0x3b48ba){super(_0x3b48ba);const t=_0x3b48ba['t'];this['set']('errorType',null);const _0x2f47b7=new _0x9d0265(_0x3b48ba);_0x2f47b7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2f47b7['withText']=!0x0,_0x2f47b7['class']='ck-button-action',_0x2f47b7['on']('execute',()=>{this['fire']('retry');}),_0x2f47b7['bind']('isVisible')['to'](this,'errorType',_0x1e3cd9=>'NotFound'!==_0x1e3cd9);const _0x5aa6f2=new _0x5182da();_0x5aa6f2['content']=_0x1f5578,_0x5aa6f2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5169ca=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':[_0x5aa6f2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5169ca['to']('errorType',_0x1a69cc=>t('NotFound'!==_0x1a69cc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2f47b7]},{'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 _0x496373,View as _0x239d95}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x239d95{constructor(_0xa8e42b){super(_0xa8e42b);const t=_0xa8e42b['t'],_0xb42172=this['bindTemplate'],_0x55380b=new _0x496373();_0x55380b['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':[_0x55380b,{'text':_0xb42172['to']('imageUploadProgress',_0x140e59=>t('Loading\x20image...')+'\x20('+(_0x140e59||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
|
-
const
|
|
23
|
+
const _0x2478bd=_0x1582;(function(_0x5ce9f7,_0xcf2ab0){const _0x223650=_0x1582,_0x140ee4=_0x5ce9f7();while(!![]){try{const _0x3d1c3a=-parseInt(_0x223650(0x1f1))/0x1*(-parseInt(_0x223650(0x204))/0x2)+parseInt(_0x223650(0x201))/0x3*(-parseInt(_0x223650(0x1e2))/0x4)+parseInt(_0x223650(0x1f7))/0x5*(-parseInt(_0x223650(0x1db))/0x6)+-parseInt(_0x223650(0x1e3))/0x7*(parseInt(_0x223650(0x205))/0x8)+-parseInt(_0x223650(0x1ff))/0x9*(parseInt(_0x223650(0x1e8))/0xa)+-parseInt(_0x223650(0x20d))/0xb+parseInt(_0x223650(0x1f5))/0xc;if(_0x3d1c3a===_0xcf2ab0)break;else _0x140ee4['push'](_0x140ee4['shift']());}catch(_0x54640c){_0x140ee4['push'](_0x140ee4['shift']());}}}(_0x6baf,0xe49d6));import{View as _0x2a66cc}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x58ae0b}from'./uploadcareimageeditformloadingview.js';function _0x1582(_0x14983a,_0x2ceb65){const _0x6baf8=_0x6baf();return _0x1582=function(_0x158281,_0x1a977d){_0x158281=_0x158281-0x1d5;let _0x1cc40d=_0x6baf8[_0x158281];return _0x1cc40d;},_0x1582(_0x14983a,_0x2ceb65);}import{UploadcareImageEditFormErrorView as _0x5e16c8}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x5c3df2}from'./uploadcareimageeditformeditingview.js';function _0x6baf(){const _0x23fa92=['ck-reset_all-excluded','addedNodes','filter','element','ready','44040dgTWXp','setTemplate','addMany','querySelector','41027148mVwsGv','target','5LRTkUh','_addErrorViewListeners','uc-cloud-image-editor','retry','error','cdnUrl','render','_loadingView','9CicKyC','observe','18FsSOQr','once','_addUploadcareImageEditorListeners','62lYijSj','17416BBSglk','_errorView','_editingView','_items','change:status','focus','apply','_focusableView','13843522cVmCSv','createCollection','length','getFocusableElement','fire','clear','status','2527284QFczXA','toLowerCase','nodeName','_setView','addEventListener','disconnect','add','77052vxMFKo','1330YRnLIJ','detail','set','ck-uploadcare-form','div','16388390fpYATB','_waitForImageEditorComponent','cancel','uploading'];_0x6baf=function(){return _0x23fa92;};return _0x6baf();}import{DialogFocusManagerView as _0x326439}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x326439{[_0x2478bd(0x208)];[_0x2478bd(0x1fe)];[_0x2478bd(0x206)];[_0x2478bd(0x207)];[_0x2478bd(0x20c)];constructor(_0x524481,_0x18d2a0,_0x340e49){const _0xc86946=_0x2478bd;super(_0x524481),this[_0xc86946(0x208)]=this[_0xc86946(0x1d5)](),this[_0xc86946(0x1fe)]=new _0x58ae0b(_0x524481),this[_0xc86946(0x206)]=new _0x5e16c8(_0x524481),this[_0xc86946(0x207)]=new _0x5c3df2(_0x524481,_0x340e49),this[_0xc86946(0x20c)]=new _0x2a66cc(_0x524481),this[_0xc86946(0x20c)][_0xc86946(0x1f2)](this[_0xc86946(0x1d7)]()),this[_0xc86946(0x1e5)](_0xc86946(0x1da),_0x18d2a0),this[_0xc86946(0x1f2)]({'tag':_0xc86946(0x1e7),'attributes':{'class':['ck',_0xc86946(0x1ec),_0xc86946(0x1e6)],'tabindex':'-1'},'children':this[_0xc86946(0x208)]}),this[_0xc86946(0x1de)](),this[_0xc86946(0x202)](_0xc86946(0x1fd),()=>{const _0x30fd03=_0xc86946;this[_0x30fd03(0x1e9)](this[_0x30fd03(0x1ef)],_0x259286=>{const _0x428fcf=_0x30fd03;this[_0x428fcf(0x203)](_0x259286);});}),this['on'](_0xc86946(0x209),()=>{const _0x587112=_0xc86946;this[_0x587112(0x1de)]();}),this[_0xc86946(0x1f8)]();}[_0x2478bd(0x20a)](){const _0x11e6b2=_0x2478bd;this[_0x11e6b2(0x1ef)][_0x11e6b2(0x20a)]();}[_0x2478bd(0x1de)](){const _0x336bcf=_0x2478bd;switch(this[_0x336bcf(0x208)][_0x336bcf(0x1d9)](),this[_0x336bcf(0x1da)]){case _0x336bcf(0x1eb):this[_0x336bcf(0x208)][_0x336bcf(0x1e1)](this[_0x336bcf(0x1fe)]);break;case _0x336bcf(0x1fb):this[_0x336bcf(0x208)][_0x336bcf(0x1e1)](this[_0x336bcf(0x206)]);break;case _0x336bcf(0x1f0):this[_0x336bcf(0x208)][_0x336bcf(0x1f3)]([this[_0x336bcf(0x207)],this[_0x336bcf(0x20c)]]);}}[_0x2478bd(0x1e9)](_0x19ec57,_0x514703){const _0x1f677d=_0x2478bd,_0xd108a3=_0x1f677d(0x1f9),_0x115ce8=_0x19ec57[_0x1f677d(0x1f4)](_0xd108a3);if(_0x115ce8)return _0x514703(_0x115ce8);const _0xa7103b=new MutationObserver(_0x1e4ad8=>{const _0x37a9da=_0x1f677d,_0x58f155=_0x1e4ad8[_0x37a9da(0x1ee)](_0x107f9a=>_0x107f9a[_0x37a9da(0x1f6)]===_0x19ec57&&_0x107f9a[_0x37a9da(0x1ed)][_0x37a9da(0x1d6)]>0x0&&_0x107f9a[_0x37a9da(0x1ed)][0x0][_0x37a9da(0x1dd)][_0x37a9da(0x1dc)]()===_0xd108a3);_0x58f155[_0x37a9da(0x1d6)]&&(_0xa7103b[_0x37a9da(0x1e0)](),_0x514703(_0x58f155[0x0][_0x37a9da(0x1ed)][0x0]));});_0xa7103b[_0x1f677d(0x200)](_0x19ec57,{'childList':!0x0,'subtree':!0x0});}[_0x2478bd(0x203)](_0x254cfe){const _0x4c5121=_0x2478bd;_0x254cfe[_0x4c5121(0x1df)](_0x4c5121(0x20b),_0x5a8fe6=>{const _0x54f2b6=_0x4c5121;this[_0x54f2b6(0x1d8)](_0x54f2b6(0x20b),{'imageSrc':_0x5a8fe6[_0x54f2b6(0x1e4)][_0x54f2b6(0x1fc)]});}),_0x254cfe[_0x4c5121(0x1df)](_0x4c5121(0x1ea),()=>{const _0x482d24=_0x4c5121;this[_0x482d24(0x1d8)](_0x482d24(0x1ea));});}[_0x2478bd(0x1f8)](){const _0x5ebbbf=_0x2478bd;this[_0x5ebbbf(0x206)]['on'](_0x5ebbbf(0x1fa),()=>{const _0xa1d392=_0x5ebbbf;this[_0xa1d392(0x1d8)](_0xa1d392(0x1fa));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d8bbd=_0xc567;(function(_0x2f3dbe,_0x58926a){const _0x153380=_0xc567,_0x247a5c=_0x2f3dbe();while(!![]){try{const _0x41a532=parseInt(_0x153380(0x146))/0x1+parseInt(_0x153380(0x13f))/0x2*(parseInt(_0x153380(0x152))/0x3)+-parseInt(_0x153380(0x142))/0x4+-parseInt(_0x153380(0x13e))/0x5*(-parseInt(_0x153380(0x14b))/0x6)+parseInt(_0x153380(0x13d))/0x7+-parseInt(_0x153380(0x135))/0x8*(-parseInt(_0x153380(0x144))/0x9)+-parseInt(_0x153380(0x153))/0xa*(parseInt(_0x153380(0x136))/0xb);if(_0x41a532===_0x58926a)break;else _0x247a5c['push'](_0x247a5c['shift']());}catch(_0x3066a5){_0x247a5c['push'](_0x247a5c['shift']());}}}(_0x35e3,0xf2c84));import{Command as _0x3a0025}from'ckeditor5/src/core.js';function _0x35e3(){const _0x37040e=['model','612483XIKKFI','20wXOBrT','element','editor','8TYRKoF','19230310rBbgZl','imageInline','bind','isEnabled','getSelectedElement','imageEditController','isActive','3252788hYXxzz','2846790ltCuFP','4MzfhNU','unbind','execute','668492jFasiK','get','2022066RGCGap','config','1852225cVCSal','_isEditable','refresh','document','set','18VkzWAz','uploadcare.allowExternalImagesEditing','plugins','imageBlock','selection','requires'];_0x35e3=function(){return _0x37040e;};return _0x35e3();}import{Dialog as _0x13407c}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x20376c}from'./ui/uploadcareimageeditcontroller.js';function _0xc567(_0x72bd28,_0x68b215){const _0x35e31f=_0x35e3();return _0xc567=function(_0xc56715,_0xc7eb51){_0xc56715=_0xc56715-0x135;let _0x1ce919=_0x35e31f[_0xc56715];return _0x1ce919;},_0xc567(_0x72bd28,_0x68b215);}import{createEditabilityChecker as _0x5c26e2}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3a0025{[_0x2d8bbd(0x13b)];static get[_0x2d8bbd(0x150)](){return[_0x13407c];}[_0x2d8bbd(0x147)];constructor(_0x19380d){const _0x507c7b=_0x2d8bbd;super(_0x19380d),this[_0x507c7b(0x13b)]=void 0x0,this[_0x507c7b(0x147)]=_0x5c26e2(_0x19380d[_0x507c7b(0x145)][_0x507c7b(0x143)](_0x507c7b(0x14c))||[]),this[_0x507c7b(0x14a)]({'isActive':!0x1});}[_0x2d8bbd(0x148)](){const _0x440692=_0x2d8bbd,_0x1e2295=this[_0x440692(0x155)][_0x440692(0x151)][_0x440692(0x149)][_0x440692(0x14f)][_0x440692(0x13a)]();this[_0x440692(0x139)]=this[_0x440692(0x147)](_0x1e2295);}[_0x2d8bbd(0x141)](){const _0x2ca963=_0x2d8bbd;this[_0x2ca963(0x13b)]&&(this[_0x2ca963(0x140)](_0x2ca963(0x13c)),this[_0x2ca963(0x13b)]=void 0x0);const _0xf25190=this[_0x2ca963(0x155)][_0x2ca963(0x151)][_0x2ca963(0x149)][_0x2ca963(0x14f)][_0x2ca963(0x13a)]();_0xf25190&&(_0xf25190['is'](_0x2ca963(0x154),_0x2ca963(0x14e))||_0xf25190['is'](_0x2ca963(0x154),_0x2ca963(0x137)))&&(this[_0x2ca963(0x13b)]=new _0x20376c(this[_0x2ca963(0x155)],this[_0x2ca963(0x155)][_0x2ca963(0x14d)][_0x2ca963(0x143)](_0x13407c),_0xf25190),this[_0x2ca963(0x138)](_0x2ca963(0x13c))['to'](this[_0x2ca963(0x13b)],_0x2ca963(0x13c)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ade94=_0x9e53;(function(_0x3902d9,_0x4452b3){const _0x637c09=_0x9e53,_0x5a3b47=_0x3902d9();while(!![]){try{const _0x1485f0=-parseInt(_0x637c09(0x80))/0x1*(parseInt(_0x637c09(0x78))/0x2)+parseInt(_0x637c09(0x86))/0x3+parseInt(_0x637c09(0x85))/0x4+parseInt(_0x637c09(0x8c))/0x5+-parseInt(_0x637c09(0x7d))/0x6+-parseInt(_0x637c09(0x89))/0x7*(parseInt(_0x637c09(0x79))/0x8)+parseInt(_0x637c09(0x7c))/0x9*(parseInt(_0x637c09(0x8d))/0xa);if(_0x1485f0===_0x4452b3)break;else _0x5a3b47['push'](_0x5a3b47['shift']());}catch(_0x552d6e){_0x5a3b47['push'](_0x5a3b47['shift']());}}}(_0x3b9b,0x78971));import{Plugin as _0x9fcf}from'ckeditor5/src/core.js';function _0x9e53(_0x27a99c,_0x49d3b9){const _0x3b9bfa=_0x3b9b();return _0x9e53=function(_0x9e531c,_0x4c81ef){_0x9e531c=_0x9e531c-0x78;let _0x2e4b09=_0x3b9bfa[_0x9e531c];return _0x2e4b09;},_0x9e53(_0x27a99c,_0x49d3b9);}import{Notification as _0x3f83f0}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x592613}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x3ad582}from'./uploadcareimagereplacecommand.js';function _0x3b9b(){const _0x47c811=['isPremiumPlugin','requires','add','490700sggANe','610341fpKNqW','uploadcareImageEdit','ImageUtils','2858653vjtlWD','uploadcareImageReplace','ImageEditing','2371685odmOte','4810zlKmPG','16636DuKXLX','8SSeiDG','UploadcareImageEditEditing','commands','5670ALLcZz','59154xOtmgN','isOfficialPlugin','init','23eLAgjc','pluginName'];_0x3b9b=function(){return _0x47c811;};return _0x3b9b();}import{UploadcareEditing as _0x3b05ae}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x9fcf{static get[_0x4ade94(0x81)](){const _0x3c9786=_0x4ade94;return _0x3c9786(0x7a);}static get[_0x4ade94(0x83)](){const _0x48d287=_0x4ade94;return[_0x3b05ae,_0x3f83f0,_0x48d287(0x88),_0x48d287(0x8b)];}static get[_0x4ade94(0x7e)](){return!0x0;}static get[_0x4ade94(0x82)](){return!0x0;}[_0x4ade94(0x7f)](){const _0x4df000=_0x4ade94,{editor:_0x572767}=this;_0x572767[_0x4df000(0x7b)][_0x4df000(0x84)](_0x4df000(0x87),new _0x592613(_0x572767)),_0x572767[_0x4df000(0x7b)][_0x4df000(0x84)](_0x4df000(0x8a),new _0x3ad582(_0x572767));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2c0c9b}from'ckeditor5/src/core.js';import{ButtonView as _0x108eef}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x56ca5f}from'ckeditor5/src/icons.js';import{createElement as _0x11d2aa}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 _0x2c0c9b{['_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 _0x582f21=this['editor'];_0x582f21['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3db5f4=>{const _0x5e7bfa=_0x582f21['commands']['get']('uploadcareImageEdit'),_0x4e2cff=new _0x108eef(_0x3db5f4),t=_0x3db5f4['t'];return _0x4e2cff['set']({'icon':_0x56ca5f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4e2cff['bind']('isEnabled')['to'](_0x5e7bfa),_0x4e2cff['bind']('isOn')['to'](_0x5e7bfa,'isActive'),this['listenTo'](_0x4e2cff,'execute',()=>{_0x582f21['execute']('uploadcareImageEdit'),_0x582f21['editing']['view']['focus']();}),_0x4e2cff;}),this['_initConfig']();}['_initConfig'](){const _0x56ee09=_0x11d2aa(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x56ee09),this['listenTo'](this['editor'],'destroy',()=>{_0x56ee09['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x21d5(){const _0x5375b8=['234afqjDo','removeAttribute','model','element','4714636hWWFaR','1501090FeDYal','7862TroeMf','19355tblrvh','imageBlock','refresh','getSelectedElement','33GpFxXn','imageInline','1622934iDTvAi','selection','change','isEnabled','editor','2416uFVTXb','11099853npVCMp','srcset','sizes','execute','4153164wnNlzO','document','setAttributes','5ltnwQJ'];_0x21d5=function(){return _0x5375b8;};return _0x21d5();}const _0x1f53c0=_0x3714;(function(_0x272a71,_0x4d8d63){const _0x4f8d55=_0x3714,_0x559c1b=_0x272a71();while(!![]){try{const _0x429367=-parseInt(_0x4f8d55(0x119))/0x1*(parseInt(_0x4f8d55(0x11f))/0x2)+parseInt(_0x4f8d55(0x126))/0x3+parseInt(_0x4f8d55(0x11d))/0x4*(parseInt(_0x4f8d55(0x118))/0x5)+parseInt(_0x4f8d55(0x130))/0x6+parseInt(_0x4f8d55(0x120))/0x7*(parseInt(_0x4f8d55(0x12b))/0x8)+-parseInt(_0x4f8d55(0x12c))/0x9+-parseInt(_0x4f8d55(0x11e))/0xa*(parseInt(_0x4f8d55(0x124))/0xb);if(_0x429367===_0x4d8d63)break;else _0x559c1b['push'](_0x559c1b['shift']());}catch(_0x3fd60c){_0x559c1b['push'](_0x559c1b['shift']());}}}(_0x21d5,0x9d123));import{Command as _0x417a97}from'ckeditor5/src/core.js';function _0x3714(_0x17d822,_0x4842c8){const _0x21d5ae=_0x21d5();return _0x3714=function(_0x371468,_0x23ede6){_0x371468=_0x371468-0x116;let _0x229adc=_0x21d5ae[_0x371468];return _0x229adc;},_0x3714(_0x17d822,_0x4842c8);}export class UploadcareImageReplaceCommand extends _0x417a97{[_0x1f53c0(0x122)](){const _0x12c0f7=_0x1f53c0,_0x4053f0=this[_0x12c0f7(0x12a)][_0x12c0f7(0x11b)][_0x12c0f7(0x116)][_0x12c0f7(0x127)][_0x12c0f7(0x123)]();this[_0x12c0f7(0x129)]=Boolean(_0x4053f0&&(_0x4053f0['is'](_0x12c0f7(0x11c),_0x12c0f7(0x121))||_0x4053f0['is'](_0x12c0f7(0x11c),_0x12c0f7(0x125))));}[_0x1f53c0(0x12f)](_0x18459d){const _0x47a701=_0x1f53c0,_0x176627=this[_0x47a701(0x12a)][_0x47a701(0x11b)][_0x47a701(0x116)][_0x47a701(0x127)][_0x47a701(0x123)]();this[_0x47a701(0x12a)][_0x47a701(0x11b)][_0x47a701(0x128)](_0x57282e=>{const _0x467bd9=_0x47a701;_0x57282e[_0x467bd9(0x117)](_0x18459d,_0x176627),_0x57282e[_0x467bd9(0x11a)](_0x467bd9(0x12d),_0x176627),_0x57282e[_0x467bd9(0x11a)](_0x467bd9(0x12e),_0x176627);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x373a02=_0x4c68;(function(_0x37f145,_0x20c43f){var _0x272d18=_0x4c68,_0x3f8677=_0x37f145();while(!![]){try{var _0x3a51d2=parseInt(_0x272d18(0xc0))/0x1+-parseInt(_0x272d18(0xc2))/0x2*(parseInt(_0x272d18(0xbe))/0x3)+-parseInt(_0x272d18(0xc4))/0x4+parseInt(_0x272d18(0xbd))/0x5+parseInt(_0x272d18(0xc1))/0x6+parseInt(_0x272d18(0xc7))/0x7+-parseInt(_0x272d18(0xc6))/0x8*(parseInt(_0x272d18(0xc3))/0x9);if(_0x3a51d2===_0x20c43f)break;else _0x3f8677['push'](_0x3f8677['shift']());}catch(_0x204ccc){_0x3f8677['push'](_0x3f8677['shift']());}}}(_0x1437,0x64d2c));function _0x1437(){var _0x3c5107=['2JMgdiI','731979JsUJWn','516024SEvwnq','requires','48Cvgtpl','1575707XXZmOo','isOfficialPlugin','isPremiumPlugin','pluginName','940730rUCcvi','1967961oNvdVo','UploadcareImageEdit','490092DGRYzs','4695672XRjrXh'];_0x1437=function(){return _0x3c5107;};return _0x1437();}function _0x4c68(_0x4e0a24,_0x5cb4cb){var _0x1437b9=_0x1437();return _0x4c68=function(_0x4c6851,_0x2ec0dc){_0x4c6851=_0x4c6851-0xbc;var _0x12be2b=_0x1437b9[_0x4c6851];return _0x12be2b;},_0x4c68(_0x4e0a24,_0x5cb4cb);}import{Plugin as _0x46201b}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x3853ac}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x341aed}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x46201b{static get[_0x373a02(0xbc)](){var _0x206898=_0x373a02;return _0x206898(0xbf);}static get[_0x373a02(0xc5)](){return[_0x3853ac,_0x341aed];}static get[_0x373a02(0xc8)](){return!0x0;}static get[_0x373a02(0xc9)](){return!0x0;}}
|
package/src/uploadcareui.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import '@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';
|
|
|
11
11
|
import '../theme/uploadcare-theme.css';
|
|
12
12
|
import '../theme/uploadcareimageedit.css';
|
|
13
13
|
/**
|
|
14
|
-
* The UI plugin of the
|
|
14
|
+
* The UI plugin of the Uploadcare image manager.
|
|
15
15
|
*/
|
|
16
16
|
export declare class UploadcareUI extends Plugin {
|
|
17
17
|
/**
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41b044=_0x3496;(function(_0x105f5a,_0x13cfb1){const _0x31f13f=_0x3496,_0x58a8ab=_0x105f5a();while(!![]){try{const _0x4bda93=parseInt(_0x31f13f(0x188))/0x1+-parseInt(_0x31f13f(0x182))/0x2*(-parseInt(_0x31f13f(0x17c))/0x3)+parseInt(_0x31f13f(0x196))/0x4*(-parseInt(_0x31f13f(0x1a3))/0x5)+parseInt(_0x31f13f(0x1b3))/0x6*(-parseInt(_0x31f13f(0x198))/0x7)+-parseInt(_0x31f13f(0x1c1))/0x8*(parseInt(_0x31f13f(0x19c))/0x9)+parseInt(_0x31f13f(0x183))/0xa+parseInt(_0x31f13f(0x1a8))/0xb*(parseInt(_0x31f13f(0x1a6))/0xc);if(_0x4bda93===_0x13cfb1)break;else _0x58a8ab['push'](_0x58a8ab['shift']());}catch(_0x8fa980){_0x58a8ab['push'](_0x58a8ab['shift']());}}}(_0x2a6a,0xa5d41));import{Plugin as _0x3976ba}from'ckeditor5/src/core.js';import{IconDropbox as _0x1bd238,IconFacebook as _0x207f60,IconGoogleDrive as _0x3986cf,IconGooglePhotos as _0x1663de,IconUploadcareImageUpload as _0x43fbf1,IconUploadcareLink as _0x45592d,IconOneDrive as _0x3c2adf}from'ckeditor5/src/icons.js';import{ButtonView as _0x5e7fb6,MenuBarMenuListItemButtonView as _0x13ff7e}from'ckeditor5/src/ui.js';function _0x3496(_0x5cd303,_0x9de907){const _0x2a6a5a=_0x2a6a();return _0x3496=function(_0x349672,_0x2570ad){_0x349672=_0x349672-0x179;let _0x21dad0=_0x2a6a5a[_0x349672];return _0x21dad0;},_0x3496(_0x5cd303,_0x9de907);}import{UploadcareSource as _0x19b784}from'./uploadcareconfig.js';import{getTranslation as _0x584cbb}from'./utils/common-translations.js';function _0x2a6a(){const _0x252560=['assetManager','uploadcareLicenseKeyUsageLimit','licenseKey','_getIntegrationKey','afterInit','usageLimit','registerIntegration','URL','plugins','config','expired','isEnabled','4268NIDbgY','uploadcareLicenseKeyEvaluationLimit','7537292dajXfr','url','Facebook','evaluationLimit','4769073DNenmN','uploadcare','bind','isPremiumPlugin','uploadcareLicenseKeyValid','featureNotAllowed','_licenseKeyCheckInterval','4445fZpGfH','shortText','push','2004KceQWz','Insert','123068eizjkC','_createButton','entries','upload','uploadcareLicenseKeyInvalid','uploadcare.uploader.sourceList','map','Dropbox','init','editor','tooltip','6AYUipJ','uploadcareLicenseKeyNotAllowed','ImageInsertUI','_createDropdownButtons','label','get','type','has','UploadcareUI','_createToolbarButton','domainLimit','text','execute','Uploadcare','8qyiDlR','isImageSelected','GDrive','commands','withText','pluginName','_createMenuBarButtons','forEach','reduce','GPhotos','Local','invalid','1584GMoOYN','OneDrive','locale','_showLicenseError','destroy','Replace','1372fUKuWu','3013030xXnqoL','uploadcareLicenseKeyDomainLimit','isOfficialPlugin','_normalizeConfigSourceList','icon','702542HLFWYj','uploadcareLicenseKeyExpired'];_0x2a6a=function(){return _0x252560;};return _0x2a6a();}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x3976ba{[_0x41b044(0x18c)];[_0x41b044(0x1a2)];static get[_0x41b044(0x1c6)](){const _0x5d04ff=_0x41b044;return _0x5d04ff(0x1bb);}static get[_0x41b044(0x185)](){return!0x0;}static get[_0x41b044(0x19f)](){return!0x0;}[_0x41b044(0x1b0)](){const _0x8e7e02=_0x41b044;this[_0x8e7e02(0x18c)]=this[_0x8e7e02(0x1b1)][_0x8e7e02(0x193)][_0x8e7e02(0x1b8)](_0x8e7e02(0x18c));const _0x5dd471=this[_0x8e7e02(0x1b1)];this[_0x8e7e02(0x1a2)]=setInterval(()=>{const _0x2d8466=_0x8e7e02;let _0x45fd02;for(const _0x2c1432 in _0x5dd471){const _0x20cb72=_0x2c1432,_0x4cd92a=_0x5dd471[_0x20cb72];if(_0x2d8466(0x1a0)==_0x4cd92a||_0x2d8466(0x1ac)==_0x4cd92a||_0x2d8466(0x189)==_0x4cd92a||_0x2d8466(0x184)==_0x4cd92a||_0x2d8466(0x1b4)==_0x4cd92a||_0x2d8466(0x197)==_0x4cd92a||_0x2d8466(0x18b)==_0x4cd92a){delete _0x5dd471[_0x20cb72],_0x45fd02=_0x4cd92a,clearInterval(this[_0x2d8466(0x1a2)]),this[_0x2d8466(0x1a2)]=void 0x0;break;}}_0x2d8466(0x1ac)==_0x45fd02&&_0x5dd471[_0x2d8466(0x17f)](_0x2d8466(0x17b)),_0x2d8466(0x189)==_0x45fd02&&_0x5dd471[_0x2d8466(0x17f)](_0x2d8466(0x194)),_0x2d8466(0x184)==_0x45fd02&&_0x5dd471[_0x2d8466(0x17f)](_0x2d8466(0x1bd)),_0x2d8466(0x1b4)==_0x45fd02&&_0x5dd471[_0x2d8466(0x17f)](_0x2d8466(0x1a1),_0x2d8466(0x1c0)),_0x2d8466(0x197)==_0x45fd02&&_0x5dd471[_0x2d8466(0x17f)](_0x2d8466(0x19b)),_0x2d8466(0x18b)==_0x45fd02&&_0x5dd471[_0x2d8466(0x17f)](_0x2d8466(0x18f));},0x3e8);}[_0x41b044(0x18e)](){const _0x26a6b3=_0x41b044,{editor:_0x672971}=this,_0x5b1d9e=_0x672971[_0x26a6b3(0x1c4)][_0x26a6b3(0x1b8)](_0x26a6b3(0x19d));if(!_0x5b1d9e)return;const _0x1f7fdd=this[_0x26a6b3(0x186)](_0x672971[_0x26a6b3(0x193)][_0x26a6b3(0x1b8)](_0x26a6b3(0x1ad)))[_0x26a6b3(0x1c9)]((_0x1ca412,_0x5ab878)=>{const _0x71519c=_0x26a6b3,_0x136ab7=this[_0x71519c(0x18d)](_0x5ab878[_0x71519c(0x1b9)]);return _0x1ca412[_0x136ab7]||(_0x1ca412[_0x136ab7]=[]),_0x1ca412[_0x136ab7][_0x71519c(0x1a5)](_0x5ab878),_0x1ca412;},{});_0x672971[_0x26a6b3(0x192)][_0x26a6b3(0x1ba)](_0x26a6b3(0x1b5))&&_0x672971[_0x26a6b3(0x1c4)][_0x26a6b3(0x1b8)](_0x26a6b3(0x19d))&&Object[_0x26a6b3(0x1aa)](_0x1f7fdd)[_0x26a6b3(0x1c8)](([_0x91cb64,_0x5d6433])=>{const _0x3f6357=_0x26a6b3;_0x672971[_0x3f6357(0x192)][_0x3f6357(0x1b8)](_0x3f6357(0x1b5))[_0x3f6357(0x190)]({'name':_0x91cb64,'observable':()=>_0x5b1d9e,'buttonViewCreator':()=>this[_0x3f6357(0x1bc)](_0x5d6433),'formViewCreator':()=>this[_0x3f6357(0x1b6)](_0x5d6433),'menuBarButtonViewCreator':()=>this[_0x3f6357(0x1c7)](_0x5d6433),'override':_0x3f6357(0x18a)!==_0x91cb64});});}[_0x41b044(0x180)](){const _0x22d648=_0x41b044;super[_0x22d648(0x180)](),this[_0x22d648(0x1a2)]&&clearInterval(this[_0x22d648(0x1a2)]);}[_0x41b044(0x186)](_0x58c3cb){const _0x4a73ec=_0x41b044,{locale:_0xa58d14}=this[_0x4a73ec(0x1b1)];return _0x58c3cb[_0x4a73ec(0x1ae)](_0x591cc3=>{const _0x1574f2=_0x4a73ec,_0x3ff2be=_0x584cbb(_0xa58d14,_0x591cc3,_0x1574f2(0x1a7));switch(_0x591cc3){case _0x19b784[_0x1574f2(0x17a)]:return{'icon':_0x43fbf1,'type':_0x19b784[_0x1574f2(0x17a)],..._0x3ff2be};case _0x19b784[_0x1574f2(0x191)]:return{'icon':_0x45592d,'type':_0x19b784[_0x1574f2(0x191)],..._0x3ff2be};case _0x19b784[_0x1574f2(0x1af)]:return{'icon':_0x1bd238,'type':_0x19b784[_0x1574f2(0x1af)],..._0x3ff2be};case _0x19b784[_0x1574f2(0x19a)]:return{'icon':_0x207f60,'type':_0x19b784[_0x1574f2(0x19a)],..._0x3ff2be};case _0x19b784[_0x1574f2(0x1c3)]:return{'icon':_0x3986cf,'type':_0x19b784[_0x1574f2(0x1c3)],..._0x3ff2be};case _0x19b784[_0x1574f2(0x179)]:return{'icon':_0x1663de,'type':_0x19b784[_0x1574f2(0x179)],..._0x3ff2be};case _0x19b784[_0x1574f2(0x17d)]:return{'icon':_0x3c2adf,'type':_0x19b784[_0x1574f2(0x17d)],..._0x3ff2be};}});}[_0x41b044(0x18d)](_0x357a39){const _0x3e6428=_0x41b044;switch(_0x357a39){case _0x19b784[_0x3e6428(0x17a)]:return _0x3e6428(0x1ab);case _0x19b784[_0x3e6428(0x191)]:return _0x3e6428(0x199);default:return _0x3e6428(0x18a);}}[_0x41b044(0x1a9)](_0x2f1b29,_0x1c4658){const _0x166586=_0x41b044,_0x108a3f=this[_0x166586(0x1b1)],_0xd747d9=new _0x2f1b29(_0x108a3f[_0x166586(0x17e)]),_0x167296=_0x108a3f[_0x166586(0x1c4)][_0x166586(0x1b8)](_0x166586(0x19d));return _0xd747d9[_0x166586(0x19e)](_0x166586(0x195))['to'](_0x167296),_0xd747d9['on'](_0x166586(0x1bf),()=>{const _0xf173ec=_0x166586;_0x167296[_0xf173ec(0x1bf)](_0x1c4658);}),_0xd747d9;}[_0x41b044(0x1bc)](_0x10d778){const _0x74cd50=_0x41b044,{locale:_0x5db69b}=this[_0x74cd50(0x1b1)],_0x39728b=this[_0x74cd50(0x1b1)][_0x74cd50(0x192)][_0x74cd50(0x1b8)](_0x74cd50(0x1b5)),_0x355136=_0x10d778[0x0],_0x297c11=this[_0x74cd50(0x1a9)](_0x5e7fb6,_0x355136[_0x74cd50(0x1b9)]);return _0x297c11[_0x74cd50(0x187)]=_0x355136[_0x74cd50(0x187)],_0x297c11[_0x74cd50(0x19e)](_0x74cd50(0x1b7))['to'](_0x39728b,_0x74cd50(0x1c2),_0x26d9be=>_0x584cbb(_0x5db69b,_0x355136[_0x74cd50(0x1b9)],_0x26d9be?_0x74cd50(0x181):_0x74cd50(0x1a7))[_0x74cd50(0x1be)]),_0x297c11[_0x74cd50(0x1b2)]=!0x0,_0x297c11;}[_0x41b044(0x1b6)](_0x4a2598){const _0x24db1a=_0x41b044,{locale:_0x53263c}=this[_0x24db1a(0x1b1)],_0x2735bd=this[_0x24db1a(0x1b1)][_0x24db1a(0x192)][_0x24db1a(0x1b8)](_0x24db1a(0x1b5));return _0x4a2598[_0x24db1a(0x1ae)](_0x18027c=>{const _0x39be55=_0x24db1a,_0x238380=this[_0x39be55(0x1a9)](_0x5e7fb6,_0x18027c[_0x39be55(0x1b9)]);return _0x238380[_0x39be55(0x1c5)]=!0x0,_0x238380[_0x39be55(0x187)]=_0x18027c[_0x39be55(0x187)],_0x238380[_0x39be55(0x19e)](_0x39be55(0x1b7))['to'](_0x2735bd,_0x39be55(0x1c2),_0x1918d1=>_0x584cbb(_0x53263c,_0x18027c[_0x39be55(0x1b9)],_0x1918d1?_0x39be55(0x181):_0x39be55(0x1a7))[_0x39be55(0x1be)]),_0x238380;});}[_0x41b044(0x1c7)](_0x4864aa){const _0x528d0e=_0x41b044;return _0x4864aa[_0x528d0e(0x1ae)](_0x3215f2=>{const _0x1ca7a6=_0x528d0e,_0x21ff63=this[_0x1ca7a6(0x1a9)](_0x13ff7e,_0x3215f2[_0x1ca7a6(0x1b9)]);return _0x21ff63[_0x1ca7a6(0x187)]=_0x3215f2[_0x1ca7a6(0x187)],_0x21ff63[_0x1ca7a6(0x1b7)]=_0x3215f2[_0x1ca7a6(0x1a4)],_0x21ff63;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x57534d}from'ckeditor5/src/core.js';import{FileRepository as _0x4e94d7}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xdeae5d}from'./uploadcareediting.js';import{UploadUtils as _0x511d41}from'./utils/uploadutils.js';import{getImageUrls as _0x3731c1}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x57534d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4e94d7,_0xdeae5d];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x255b4a=this['editor'];if(!!!_0x255b4a['config']['get']('uploadcare'))return;_0x255b4a['plugins']['get'](_0x4e94d7)['createUploadAdapter']=_0x155829=>new k(_0x155829,_0x255b4a),_0x255b4a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x42f35f,{imageElement:_0xda44e2,data:_0x27d109})=>{_0x255b4a['model']['change'](_0xff270=>{_0xff270['setAttribute']('uploadcareImageId',_0x27d109['uploadcareImageId'],_0xda44e2);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x102384,_0x479782){this['loader']=_0x102384,this['editor']=_0x479782,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x114112=await this['loader']['file'];return _0x511d41['upload']({'file':_0x114112,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x2ac1be=>{_0x2ac1be&&_0x2ac1be['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2ac1be['value']);}})['then'](async _0x17887b=>{const {imageFallbackUrl:_0x17a832,imageSources:_0x4c0171}=_0x3731c1(_0x17887b['cdnUrl'],_0x17887b['imageInfo']['width']);return{'uploadcareImageId':_0x17887b['uuid'],'default':_0x17a832,'sources':_0x4c0171};})['catch'](()=>{const _0x1ab01d=t('Cannot\x20upload\x20file:')+('\x20'+_0x114112['name']+'.');return Promise['reject'](_0x1ab01d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x36d392}from'../uploadcareconfig.js';export function getTranslation(_0x4ea077,_0x1a664e,_0x2bb237){const t=_0x4ea077['t'],_0x3fb355=_0x4ea077['t'];switch(_0x1a664e){case _0x36d392['Local']:return{'text':_0x3fb355('Insert'===_0x2bb237?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3fb355('From\x20computer')};case _0x36d392['URL']:return{'text':'Insert'===_0x2bb237?_0x3fb355('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3fb355('Via\x20URL')};case _0x36d392['Dropbox']:return{'text':t('Insert'===_0x2bb237?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x36d392['Facebook']:return{'text':t('Insert'===_0x2bb237?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x36d392['GDrive']:return{'text':t('Insert'===_0x2bb237?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x36d392['GPhotos']:return{'text':t('Insert'===_0x2bb237?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x36d392['OneDrive']:return{'text':t('Insert'===_0x2bb237?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1a664e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x404323=_0x123a;(function(_0x4dd657,_0x11797b){var _0x553665=_0x123a,_0x69c9e3=_0x4dd657();while(!![]){try{var _0x44fbc6=-parseInt(_0x553665(0xc0))/0x1+parseInt(_0x553665(0xcd))/0x2+parseInt(_0x553665(0xc9))/0x3*(-parseInt(_0x553665(0xc4))/0x4)+parseInt(_0x553665(0xca))/0x5*(parseInt(_0x553665(0xc1))/0x6)+parseInt(_0x553665(0xbe))/0x7*(parseInt(_0x553665(0xc3))/0x8)+-parseInt(_0x553665(0xc5))/0x9+parseInt(_0x553665(0xcc))/0xa*(parseInt(_0x553665(0xbf))/0xb);if(_0x44fbc6===_0x11797b)break;else _0x69c9e3['push'](_0x69c9e3['shift']());}catch(_0x3375b8){_0x69c9e3['push'](_0x69c9e3['shift']());}}}(_0x2f04,0x3abda));import{FocusTracker as _0x4dfe0b}from'ckeditor5/src/utils.js';function _0x2f04(){var _0x19146a=['createCollection','8bJsVwn','1827880mhaklF','4082085GuwNIT','focusCycler','div','bindTemplate','3pDEcaU','30iRoTJN','forwardCycle','1168220vSuHqb','840304GdETDE','true','getFocusableElement','focusTracker','fire','2997463rHTceC','22LAXFZZ','7002pIYSoQ','76134XfhWNY'];_0x2f04=function(){return _0x19146a;};return _0x2f04();}import{View as _0x51b8e2,FocusCycler as _0x4f715e}from'ckeditor5/src/ui.js';function _0x123a(_0x1fd6e4,_0x1d6682){var _0x2f04c5=_0x2f04();return _0x123a=function(_0x123abf,_0x2e997d){_0x123abf=_0x123abf-0xbe;var _0x2ac635=_0x2f04c5[_0x123abf];return _0x2ac635;},_0x123a(_0x1fd6e4,_0x1d6682);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x51b8e2{[_0x404323(0xd0)];[_0x404323(0xc6)];constructor(_0x37a293){var _0x39942b=_0x404323;super(_0x37a293),this[_0x39942b(0xd0)]=new _0x4dfe0b(),this[_0x39942b(0xc6)]=new _0x4f715e({'focusables':this[_0x39942b(0xc2)](),'focusTracker':this[_0x39942b(0xd0)]});}[_0x404323(0xcf)](){var _0x36d62c=_0x404323;return{'tag':_0x36d62c(0xc7),'attributes':{'aria-hidden':_0x36d62c(0xce),'tabindex':'0'},'on':{'focus':this[_0x36d62c(0xc8)]['to'](()=>{var _0x41ea3f=_0x36d62c;this[_0x41ea3f(0xc6)][_0x41ea3f(0xd1)](_0x41ea3f(0xcb));})}};}}
|