@ckeditor/ckeditor5-uploadcare 47.7.4 → 47.7.5-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x152e7d=_0x2308;function _0x8ddd(){const _0x2632c0=['downcast','once','init','_ctxElement','editor','for','\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','ucContextId','selection','#uc-icon-arrow-down','UploadcareEditing','querySelector','editing','document','render','afterInit','1316425UluQxH','77022AIflXM','insertImage','destroy','fromCharCode','true','getSelectedElement','5847984Jbqosu','1584168FXSAnJ','isPremiumPlugin','uc-upload-ctx-provider','cleanupImage','_initConversion','2901312uDQSvy','commands','isRegistered','getAttribute','_initConfig','input[uploadcare-file-input]','iconHrefResolver','uploadcare.pubkey','body','3cFfPQa','extend','uploadcare','_initSchema','uploader-','PictureEditing','pluginName','add','uploadcareImageReplace','replaceImageSource','execute','upcast','listenTo','join','href','98XGUgfy','_initCtx','configElement','schema','view','_configElement','uploadcareImageId','elementToAttribute','data-uc-image-id','uploadcare.uploader','requires','get','imageBlock','config','uc-config','ctxElement','contentLanguage','isOfficialPlugin','_initImageProcessingIndicator','remove','closeMax','locale','model','conversion','appendChild','141753yPzAPa','map','63374foqxqi','imageInline','removeAttribute','attributeToAttribute'];_0x8ddd=function(){return _0x2632c0;};return _0x8ddd();}(function(_0x4f625c,_0x2d1da5){const _0x1019d9=_0x2308,_0x267366=_0x4f625c();while(!![]){try{const _0x27d65d=parseInt(_0x1019d9(0x124))/0x1+-parseInt(_0x1019d9(0x126))/0x2*(-parseInt(_0x1019d9(0x150))/0x3)+parseInt(_0x1019d9(0x142))/0x4+-parseInt(_0x1019d9(0x13a))/0x5+parseInt(_0x1019d9(0x13b))/0x6*(parseInt(_0x1019d9(0x10b))/0x7)+parseInt(_0x1019d9(0x147))/0x8+-parseInt(_0x1019d9(0x141))/0x9;if(_0x27d65d===_0x2d1da5)break;else _0x267366['push'](_0x267366['shift']());}catch(_0x1a0599){_0x267366['push'](_0x267366['shift']());}}}(_0x8ddd,0x30893));import{Plugin as _0x59fea0}from'ckeditor5/src/core.js';import{Dialog as _0x1f9e9b}from'ckeditor5/src/ui.js';import{createElement as _0x15adb9,global as _0x371971,uid as _0x2b1e79}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xe85f3a}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x49b046}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3f6323}from'./utils/editingutils.js';function _0x2308(_0x32e5f6,_0x4c0353){const _0x8ddd9d=_0x8ddd();return _0x2308=function(_0x230833,_0x4f1438){_0x230833=_0x230833-0x10b;let _0x5838f1=_0x8ddd9d[_0x230833];return _0x5838f1;},_0x2308(_0x32e5f6,_0x4c0353);}export class UploadcareEditing extends _0x59fea0{[_0x152e7d(0x110)]=null;[_0x152e7d(0x12d)]=null;static get[_0x152e7d(0x156)](){const _0x45fad1=_0x152e7d;return _0x45fad1(0x134);}static get[_0x152e7d(0x115)](){const _0x40203a=_0x152e7d;return[_0x40203a(0x155),_0x49b046,_0x1f9e9b];}static get[_0x152e7d(0x11c)](){return!0x0;}static get[_0x152e7d(0x143)](){return!0x0;}[_0x152e7d(0x131)];get[_0x152e7d(0x10d)](){const _0x104b50=_0x152e7d;return this[_0x104b50(0x110)];}get[_0x152e7d(0x11a)](){const _0x190dbb=_0x152e7d;return this[_0x190dbb(0x12d)];}constructor(_0x3bfd02){const _0x3e6bd6=_0x152e7d;super(_0x3bfd02),this[_0x3e6bd6(0x131)]=_0x2b1e79();}[_0x152e7d(0x12c)](){const _0xd4100=_0x152e7d,_0x4a3a53=this[_0xd4100(0x12e)];_0x4a3a53[_0xd4100(0x148)][_0xd4100(0x157)](_0xd4100(0x152),new _0xe85f3a(_0x4a3a53));}[_0x152e7d(0x139)](){const _0x5e3c01=_0x152e7d;this[_0x5e3c01(0x153)](),this[_0x5e3c01(0x146)](),this[_0x5e3c01(0x14b)](),this[_0x5e3c01(0x10c)](),this[_0x5e3c01(0x11d)](),this[_0x5e3c01(0x15c)](this[_0x5e3c01(0x12e)],_0x5e3c01(0x13d),()=>{const _0x46b6a5=_0x5e3c01;this[_0x46b6a5(0x110)]&&(this[_0x46b6a5(0x110)][_0x46b6a5(0x11e)](),this[_0x46b6a5(0x110)]=null),this[_0x46b6a5(0x12d)]&&(this[_0x46b6a5(0x12d)][_0x46b6a5(0x11e)](),this[_0x46b6a5(0x12d)]=null);const _0x15b080=_0x371971[_0x46b6a5(0x137)][_0x46b6a5(0x135)](_0x46b6a5(0x14c));_0x15b080&&_0x15b080[_0x46b6a5(0x11e)]();}),async function(_0x5a8484){const _0x25efeb=_0x8039e6([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]),_0x20cfee=0x535f8c3a,_0x5b3136=0x535819fa^_0x20cfee,_0x50d1d9=window[_0x8039e6([0x44,0x61,0x74,0x65])][_0x8039e6([0x6e,0x6f,0x77])](),_0x38bd8e=_0x5a8484[_0x8039e6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x135f98=new window[(_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ac78a=>{_0x38bd8e[_0x8039e6([0x6f,0x6e,0x63,0x65])](_0x8039e6([0x72,0x65,0x61,0x64,0x79]),_0x2ac78a);}),_0x350b9b={[_0x8039e6([0x6b,0x74,0x79])]:_0x8039e6([0x45,0x43]),[_0x8039e6([0x75,0x73,0x65])]:_0x8039e6([0x73,0x69,0x67]),[_0x8039e6([0x63,0x72,0x76])]:_0x8039e6([0x50,0x2d,0x32,0x35,0x36]),[_0x8039e6([0x78])]:_0x8039e6([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]),[_0x8039e6([0x79])]:_0x8039e6([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]),[_0x8039e6([0x61,0x6c,0x67])]:_0x8039e6([0x45,0x53,0x32,0x35,0x36])},_0x595ed0=_0x38bd8e[_0x8039e6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8039e6([0x67,0x65,0x74])](_0x8039e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x462739(){let _0x5a68d9,_0x53360a=null,_0x42a1ca=null;try{if(_0x595ed0==_0x8039e6([0x47,0x50,0x4c]))return _0x8039e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a68d9=_0x2a1677(),!_0x5a68d9)return _0x8039e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a68d9[_0x8039e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42a1ca=_0x6cc4fa(_0x5a68d9[_0x8039e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a68d9[_0x8039e6([0x6a,0x74,0x69])])),await _0x3a5a40()?_0x13a634()?_0x14ecbf()?_0x8039e6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ebe7a()?(_0x5a68d9[_0x8039e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8039e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53360a=_0x393cb1(_0x8039e6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b9f47()):_0x8039e6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8039e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8039e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8039e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x14ecbf(){const _0x24e526=[_0x8039e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8039e6([0x74,0x72,0x69,0x61,0x6c])][_0x8039e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a68d9[_0x8039e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50d1d9/0x3e8:0xe10*_0x5b3136;return _0x5a68d9[_0x8039e6([0x65,0x78,0x70])]<_0x24e526;}function _0x13a634(){const _0x2a6d53=_0x5a68d9[_0x8039e6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a6d53&&(!!_0x2a6d53[_0x8039e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8039e6([0x2a]))||!!_0x2a6d53[_0x8039e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8039e6([0x55,0x50,0x4c,0x43])));}function _0x3ebe7a(){const _0xa6f223=_0x2308,_0x2b86af=_0x5a68d9[_0x8039e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b86af||0x0==_0x2b86af[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x466c9c}=new URL(window[_0x8039e6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xa6f223(0x15e)]);if(_0x2b86af[_0x8039e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x466c9c))return!0x0;const _0x53b2ce=_0x466c9c[_0x8039e6([0x73,0x70,0x6c,0x69,0x74])](_0x8039e6([0x2e]));return _0x2b86af[_0x8039e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c64ba=>_0x4c64ba[_0x8039e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8039e6([0x2a])))[_0x8039e6([0x6d,0x61,0x70])](_0x3b1954=>_0x3b1954[_0x8039e6([0x73,0x70,0x6c,0x69,0x74])](_0x8039e6([0x2e])))[_0x8039e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x861ec6=>_0x861ec6[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53b2ce[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8039e6([0x6d,0x61,0x70])](_0x3e9216=>Array(_0x53b2ce[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3e9216[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8039e6([0x66,0x69,0x6c,0x6c])](_0x3e9216[0x0]===_0x8039e6([0x2a])?_0x8039e6([0x2a]):'')[_0x8039e6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3e9216))[_0x8039e6([0x73,0x6f,0x6d,0x65])](_0xd3c2fe=>_0x53b2ce[_0x8039e6([0x65,0x76,0x65,0x72,0x79])]((_0x1428f,_0x153cd4)=>_0xd3c2fe[_0x153cd4]===_0x1428f||_0xd3c2fe[_0x153cd4]===_0x8039e6([0x2a])));}function _0x3b9f47(){return _0x53360a&&_0x42a1ca?new window[(_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47ac7c,_0x358961)=>{_0x53360a[_0x8039e6([0x74,0x68,0x65,0x6e])](_0x47ac7c,_0x358961),_0x42a1ca[_0x8039e6([0x74,0x68,0x65,0x6e])](_0x2f45f9=>{_0x2f45f9!=_0x8039e6([0x56,0x61,0x6c,0x69,0x64])&&_0x47ac7c(_0x2f45f9);},_0x358961);}):_0x53360a||_0x42a1ca||_0x8039e6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6cc4fa(_0x4f7d82,_0x442a62){return new window[(_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x270fb0=>{if(_0xe06d46())return _0x270fb0(_0x8039e6([0x56,0x61,0x6c,0x69,0x64]));_0x56dcb8(),_0x38bd8e[_0x8039e6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8039e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f09ab=!0x1;const _0x39287a=_0x2b1e79();function _0x212372(_0x46f7d2){return!!_0x46f7d2&&(typeof _0x46f7d2===_0x8039e6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46f7d2===_0x8039e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46f7d2[_0x8039e6([0x74,0x68,0x65,0x6e])]===_0x8039e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46f7d2[_0x8039e6([0x63,0x61,0x74,0x63,0x68])]===_0x8039e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10ac91(_0x3f4aec){_0x146400(_0x3f4aec)[_0x8039e6([0x74,0x68,0x65,0x6e])](_0x26f864=>{if(!_0x26f864||_0x26f864[_0x8039e6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8039e6([0x6f,0x6b]))return _0x8039e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a9524(_0x4ebc93(_0x39287a+_0x442a62))!=_0x26f864[_0x8039e6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8039e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8039e6([0x56,0x61,0x6c,0x69,0x64]);})[_0x8039e6([0x74,0x68,0x65,0x6e])](_0xa3d2ac=>(_0x57d2e4(),_0xa3d2ac),()=>{const _0x1274bc=_0x2298c6();return null==_0x1274bc?(_0x57d2e4(),_0x8039e6([0x56,0x61,0x6c,0x69,0x64])):_0x8039e6(_0x50d1d9-_0x1274bc>(0x7753083a^_0x20cfee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8039e6([0x74,0x68,0x65,0x6e])](_0x270fb0)[_0x8039e6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x270fb0(_0x8039e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x217281=0x536962ba^_0x20cfee;function _0x57d2e4(){const _0x4b14ca=_0x8039e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9524(_0x4ebc93(_0x4f7d82)),_0x2a3c3b=_0xaedd(_0x2a9524(window[_0x8039e6([0x4d,0x61,0x74,0x68])][_0x8039e6([0x63,0x65,0x69,0x6c])](_0x50d1d9/_0x217281)));window[_0x8039e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8039e6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b14ca,_0x2a3c3b);}function _0x2298c6(){const _0x558698=_0x8039e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9524(_0x4ebc93(_0x4f7d82)),_0x45e011=window[_0x8039e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8039e6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x558698);return _0x45e011?window[_0x8039e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaedd(_0x45e011),0x10)*_0x217281:null;}function _0x146400(_0x1d3939){return new window[(_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3418ea,_0x3359d5)=>{_0x1d3939[_0x8039e6([0x74,0x68,0x65,0x6e])](_0x3418ea,_0x3359d5),window[_0x8039e6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3359d5,0x535e58fa^_0x20cfee);});}}_0x38bd8e[_0x8039e6([0x6f,0x6e])](_0x8039e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc545c9,_0xa144c1)=>{if(_0xa144c1[0x0]!=_0x4f7d82)return _0x270fb0(_0x8039e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa144c1[0x1]={..._0xa144c1[0x1],[_0x8039e6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x39287a};},{[_0x8039e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8039e6([0x68,0x69,0x67,0x68])}),_0x38bd8e[_0x8039e6([0x6f,0x6e])](_0x8039e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a416e=>{_0x212372(_0x4a416e[_0x8039e6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f09ab=!0x0,_0x10ac91(_0x4a416e[_0x8039e6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8039e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8039e6([0x6c,0x6f,0x77])}),_0x135f98[_0x8039e6([0x74,0x68,0x65,0x6e])](()=>{_0x1f09ab||_0x270fb0(_0x8039e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe06d46(){return _0x38bd8e[_0x8039e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8039e6([0x76,0x69,0x65,0x77])][_0x8039e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8039e6([0x61,0x75,0x74,0x6f]);}function _0x56dcb8(){_0x38bd8e[_0x8039e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8039e6([0x76,0x69,0x65,0x77])][_0x8039e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8039e6([0x61,0x75,0x74,0x6f]);}}function _0x393cb1(_0x4b07ec){const _0x25c30e=[new window[(_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4230c5=>setTimeout(_0x4230c5,0x5356b2f6^_0x20cfee)),_0x135f98[_0x8039e6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b57e5=>{let _0x4b45c3=0x0;_0x38bd8e[_0x8039e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x8039e6([0x6f,0x6e])](_0x8039e6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4db3c5,_0x2057fa)=>{_0x2057fa[0x0][_0x8039e6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b45c3++,_0x4b45c3==(0x535f89d2^_0x20cfee)&&(_0x3b57e5(),_0x4db3c5[_0x8039e6([0x6f,0x66,0x66])]());});}))];return window[_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8039e6([0x72,0x61,0x63,0x65])](_0x25c30e)[_0x8039e6([0x74,0x68,0x65,0x6e])](()=>_0x4b07ec);}async function _0x532652(){await _0x135f98,_0x38bd8e[_0x8039e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x8039e6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c1c52,_0x38bd8e[_0x8039e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x8039e6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c1c52,_0x38bd8e[_0x8039e6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8039e6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x336c91(_0x3bea8a){const _0x403813=_0xfbe2f7();_0x38bd8e[_0x403813]=_0x8039e6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3bea8a,_0x3bea8a!=_0x8039e6([0x56,0x61,0x6c,0x69,0x64])&&_0x532652();}function _0xfbe2f7(){const _0x4dbb86=window[_0x8039e6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8039e6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8039e6([0x6e,0x6f,0x77])]())[_0x8039e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8039e6([0x2e]),'');let _0x584cb4=_0x8039e6([0x68]);for(let _0x1c93e9=0x0;_0x1c93e9<_0x4dbb86[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c93e9+=0x2){let _0x15095f=window[_0x8039e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dbb86[_0x8039e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c93e9,_0x1c93e9+0x2));_0x15095f>=_0x25efeb[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x15095f-=_0x25efeb[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x584cb4+=_0x25efeb[_0x15095f];}return _0x584cb4;}function _0x2a1677(){const _0x25b56e=_0x595ed0[_0x8039e6([0x73,0x70,0x6c,0x69,0x74])](_0x8039e6([0x2e]));if(0x3!=_0x25b56e[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e7c75(_0x25b56e[0x1]);function _0x2e7c75(_0x192ef3){const _0x10be8a=_0x4dc42d(_0x192ef3);return _0x10be8a&&_0x1854fd()?_0x10be8a:null;function _0x1854fd(){const _0x333e53=_0x10be8a[_0x8039e6([0x6a,0x74,0x69])],_0x4abf1f=window[_0x8039e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x333e53[_0x8039e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x333e53[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5dc770={..._0x10be8a,[_0x8039e6([0x6a,0x74,0x69])]:_0x333e53[_0x8039e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x333e53[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5dc770[_0x8039e6([0x76,0x63])],_0x4ebc93(_0x5dc770)==_0x4abf1f;}}}async function _0x3a5a40(){let _0x8f77fb=!0x0;try{const _0xa8054b=_0x595ed0[_0x8039e6([0x73,0x70,0x6c,0x69,0x74])](_0x8039e6([0x2e])),[_0x1d86c3,_0x136e67,_0x59ad34]=_0xa8054b;return _0x3efb95(_0x1d86c3),await _0xe05f41(_0x1d86c3,_0x136e67,_0x59ad34),_0x8f77fb;}catch{return!0x1;}function _0x3efb95(_0x416629){const _0x7b7bf4=_0x4dc42d(_0x416629);_0x7b7bf4&&_0x7b7bf4[_0x8039e6([0x61,0x6c,0x67])]==_0x8039e6([0x45,0x53,0x32,0x35,0x36])||(_0x8f77fb=!0x1);}async function _0xe05f41(_0x11be35,_0x4e0786,_0x2bb9d4){const _0x482599=window[_0x8039e6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8039e6([0x66,0x72,0x6f,0x6d])](_0x529766(_0x2bb9d4),_0x241a98=>_0x241a98[_0x8039e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd8f846=new window[(_0x8039e6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8039e6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11be35+_0x8039e6([0x2e])+_0x4e0786),_0x296c88=window[_0x8039e6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8039e6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x296c88)return;const _0x110d79=await _0x296c88[_0x8039e6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8039e6([0x6a,0x77,0x6b]),_0x350b9b,{[_0x8039e6([0x6e,0x61,0x6d,0x65])]:_0x8039e6([0x45,0x43,0x44,0x53,0x41]),[_0x8039e6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8039e6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8039e6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x296c88[_0x8039e6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8039e6([0x6e,0x61,0x6d,0x65])]:_0x8039e6([0x45,0x43,0x44,0x53,0x41]),[_0x8039e6([0x68,0x61,0x73,0x68])]:{[_0x8039e6([0x6e,0x61,0x6d,0x65])]:_0x8039e6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x110d79,_0x482599,_0xd8f846)||(_0x8f77fb=!0x1);}}function _0x4dc42d(_0x5bf95c){return _0x5bf95c[_0x8039e6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8039e6([0x65,0x79]))?JSON[_0x8039e6([0x70,0x61,0x72,0x73,0x65])](_0x529766(_0x5bf95c)):null;}function _0x529766(_0x228eb8){return window[_0x8039e6([0x61,0x74,0x6f,0x62])](_0x228eb8[_0x8039e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8039e6([0x2b]))[_0x8039e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8039e6([0x2f])));}function _0x4ebc93(_0x2496a9){let _0x24653e=0x1505;function _0x6f8a4e(_0x311a74){for(let _0x4e1b1d=0x0;_0x4e1b1d<_0x311a74[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e1b1d++){const _0xa36873=_0x311a74[_0x8039e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e1b1d);_0x24653e=(_0x24653e<<0x5)+_0x24653e+_0xa36873,_0x24653e&=_0x24653e;}}function _0xf2f862(_0x225656){Array[_0x8039e6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x225656)?_0x225656[_0x8039e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf2f862):_0x225656&&typeof _0x225656==_0x8039e6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8039e6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x225656)[_0x8039e6([0x73,0x6f,0x72,0x74])]()[_0x8039e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42144e,_0x96d9ba])=>{_0x6f8a4e(_0x42144e),_0xf2f862(_0x96d9ba);}):_0x6f8a4e(window[_0x8039e6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x225656));}return _0xf2f862(_0x2496a9),_0x24653e>>>0x0;}function _0x2a9524(_0x1ad308){return _0x1ad308[_0x8039e6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8039e6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8039e6([0x30]));}function _0xaedd(_0x1d71a5){return _0x1d71a5[_0x8039e6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8039e6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8039e6([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c1c52(){}function _0x8039e6(_0x1f9ef3){const _0x4546ac=_0x2308;return _0x1f9ef3[_0x4546ac(0x125)](_0x25776f=>String[_0x4546ac(0x13e)](_0x25776f))[_0x4546ac(0x15d)]('');}_0x336c91(await _0x462739());}(this);}[_0x152e7d(0x153)](){const _0x4df8c0=_0x152e7d,_0x59f9ab=this[_0x4df8c0(0x12e)][_0x4df8c0(0x121)][_0x4df8c0(0x10e)];_0x59f9ab[_0x4df8c0(0x149)](_0x4df8c0(0x117))&&_0x59f9ab[_0x4df8c0(0x151)](_0x4df8c0(0x117),{'allowAttributes':[_0x4df8c0(0x111)]}),_0x59f9ab[_0x4df8c0(0x149)](_0x4df8c0(0x127))&&_0x59f9ab[_0x4df8c0(0x151)](_0x4df8c0(0x127),{'allowAttributes':[_0x4df8c0(0x111)]});}[_0x152e7d(0x146)](){const _0xf3cd2=_0x152e7d,_0xfe9670=this[_0xf3cd2(0x12e)];_0xfe9670[_0xf3cd2(0x122)][_0xf3cd2(0x12f)](_0xf3cd2(0x12a))[_0xf3cd2(0x129)]({'model':_0xf3cd2(0x111),'view':_0xf3cd2(0x113)}),_0xfe9670[_0xf3cd2(0x122)][_0xf3cd2(0x12f)](_0xf3cd2(0x15b))[_0xf3cd2(0x112)]({'model':{'key':_0xf3cd2(0x111),'value':_0x338d33=>_0x338d33[_0xf3cd2(0x14a)](_0xf3cd2(0x113))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2e930f=_0xfe9670[_0xf3cd2(0x148)][_0xf3cd2(0x116)](_0xf3cd2(0x159));_0x2e930f&&this[_0xf3cd2(0x15c)](_0x2e930f,_0xf3cd2(0x145),(_0x75ae6b,[_0x1ec8f1,_0x244861])=>{const _0x22a83d=_0xf3cd2;_0x1ec8f1[_0x22a83d(0x128)](_0x22a83d(0x111),_0x244861);});}[_0x152e7d(0x14b)](){const _0x3616a6=_0x152e7d,_0x375107=this[_0x3616a6(0x12e)][_0x3616a6(0x118)][_0x3616a6(0x116)](_0x3616a6(0x114))||{},_0x4024e3=this[_0x3616a6(0x12e)][_0x3616a6(0x118)][_0x3616a6(0x116)](_0x3616a6(0x14e))||'';this[_0x3616a6(0x110)]=_0x15adb9(_0x371971[_0x3616a6(0x137)],_0x3616a6(0x119),{..._0x375107,'pubkey':_0x4024e3,'ctx-name':_0x3616a6(0x154)+this[_0x3616a6(0x131)],'sourceList':'','imgOnly':_0x3616a6(0x13f),'removeCopyright':_0x3616a6(0x13f),'localeName':this[_0x3616a6(0x12e)][_0x3616a6(0x120)][_0x3616a6(0x11b)],'externalSourcesEmbedCss':_0x3616a6(0x130)}),this[_0x3616a6(0x110)][_0x3616a6(0x14d)]=_0x34247b=>{const _0x513bc2=_0x3616a6;if(_0x513bc2(0x11f)==_0x34247b)return _0x513bc2(0x133);},_0x371971[_0x3616a6(0x137)][_0x3616a6(0x14f)][_0x3616a6(0x123)](this[_0x3616a6(0x110)]);}[_0x152e7d(0x10c)](){const _0x5b4d8f=_0x152e7d;this[_0x5b4d8f(0x12d)]=_0x15adb9(_0x371971[_0x5b4d8f(0x137)],_0x5b4d8f(0x144),{'ctx-name':_0x5b4d8f(0x154)+this[_0x5b4d8f(0x131)]}),_0x371971[_0x5b4d8f(0x137)][_0x5b4d8f(0x14f)][_0x5b4d8f(0x123)](this[_0x5b4d8f(0x12d)]);}[_0x152e7d(0x11d)](){const _0x1cd614=_0x152e7d,_0x15f5a4=this[_0x1cd614(0x12e)][_0x1cd614(0x148)][_0x1cd614(0x116)](_0x1cd614(0x13c));_0x15f5a4&&this[_0x1cd614(0x15c)](_0x15f5a4,_0x1cd614(0x15a),()=>{const _0x221896=_0x1cd614,_0x418394=this[_0x221896(0x12e)][_0x221896(0x121)][_0x221896(0x137)][_0x221896(0x132)][_0x221896(0x140)]();_0x418394&&_0x418394[_0x221896(0x14a)](_0x221896(0x111))&&this[_0x221896(0x12e)][_0x221896(0x136)][_0x221896(0x10f)][_0x221896(0x12b)](_0x221896(0x138),()=>{const _0x551230=_0x221896;_0x3f6323(this[_0x551230(0x12e)],_0x418394);});});const _0x3f0b57=this[_0x1cd614(0x12e)][_0x1cd614(0x148)][_0x1cd614(0x116)](_0x1cd614(0x158));_0x3f0b57&&this[_0x1cd614(0x15c)](_0x3f0b57,_0x1cd614(0x15a),()=>{const _0x4c14cd=_0x1cd614,_0x27950c=this[_0x4c14cd(0x12e)][_0x4c14cd(0x121)][_0x4c14cd(0x137)][_0x4c14cd(0x132)][_0x4c14cd(0x140)]();_0x27950c&&_0x27950c[_0x4c14cd(0x14a)](_0x4c14cd(0x111))&&this[_0x4c14cd(0x12e)][_0x4c14cd(0x136)][_0x4c14cd(0x10f)][_0x4c14cd(0x12b)](_0x4c14cd(0x138),()=>{const _0x3e8231=_0x4c14cd;_0x3f6323(this[_0x3e8231(0x12e)],_0x27950c);});});}}
|
|
23
|
+
const _0x20991d=_0x514e;function _0x54bf(){const _0xc45661=['getSelectedElement','uc-upload-ctx-provider','listenTo','view','model','elementToAttribute','_initImageProcessingIndicator','376oyGtrR','attributeToAttribute','add','imageBlock','href','228kZVJXR','_initSchema','uc-config','uploadcare.pubkey','getAttribute','selection','for','closeMax','2421104gHJtaG','execute','config','replaceImageSource','map','_initConversion','render','requires','configElement','imageInline','pluginName','uploadcareImageReplace','extend','insertImage','uploader-','UploadcareEditing','uploadcareImageId','destroy','1400003qnlJEi','conversion','schema','6xLFqeO','PictureEditing','downcast','remove','5821630vewIpR','#uc-icon-arrow-down','locale','_ctxElement','13AueJEj','init','join','document','body','input[uploadcare-file-input]','contentLanguage','177854QYahZe','data-uc-image-id','isRegistered','fromCharCode','isPremiumPlugin','commands','true','iconHrefResolver','27705rMfJIH','isOfficialPlugin','afterInit','removeAttribute','upcast','ctxElement','1050505lcNoPu','\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','querySelector','get','ucContextId','once','uploadcare.uploader','appendChild','editor','_initCtx','uploadcare','685062dCrWLC','_configElement','56pikEkA','editing','_initConfig','cleanupImage'];_0x54bf=function(){return _0xc45661;};return _0x54bf();}(function(_0x5494a2,_0x51f67a){const _0x813353=_0x514e,_0x478036=_0x5494a2();while(!![]){try{const _0x507da7=parseInt(_0x813353(0x1de))/0x1*(parseInt(_0x813353(0x1e5))/0x2)+-parseInt(_0x813353(0x1ed))/0x3*(-parseInt(_0x813353(0x20b))/0x4)+parseInt(_0x813353(0x1f3))/0x5*(parseInt(_0x813353(0x1d6))/0x6)+-parseInt(_0x813353(0x218))/0x7+-parseInt(_0x813353(0x200))/0x8*(-parseInt(_0x813353(0x1fe))/0x9)+parseInt(_0x813353(0x1da))/0xa+parseInt(_0x813353(0x1d3))/0xb*(-parseInt(_0x813353(0x210))/0xc);if(_0x507da7===_0x51f67a)break;else _0x478036['push'](_0x478036['shift']());}catch(_0x28708f){_0x478036['push'](_0x478036['shift']());}}}(_0x54bf,0x8edd4));import{Plugin as _0x8263d9}from'ckeditor5/src/core.js';import{Dialog as _0x20b12a}from'ckeditor5/src/ui.js';import{createElement as _0x15418e,global as _0x21ffa7,uid as _0x2823ae}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3e166f}from'./uploadcarecommand.js';function _0x514e(_0x41f2ca,_0x532d4a){const _0x54bfa6=_0x54bf();return _0x514e=function(_0x514ef8,_0x4f2b96){_0x514ef8=_0x514ef8-0x1c9;let _0x44ec4e=_0x54bfa6[_0x514ef8];return _0x44ec4e;},_0x514e(_0x41f2ca,_0x532d4a);}import{UploadcareUploadAdapter as _0x5225f9}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2b43a5}from'./utils/editingutils.js';export class UploadcareEditing extends _0x8263d9{[_0x20991d(0x1ff)]=null;[_0x20991d(0x1dd)]=null;static get[_0x20991d(0x1cb)](){const _0x2b2946=_0x20991d;return _0x2b2946(0x1d0);}static get[_0x20991d(0x21f)](){const _0x267b3b=_0x20991d;return[_0x267b3b(0x1d7),_0x5225f9,_0x20b12a];}static get[_0x20991d(0x1ee)](){return!0x0;}static get[_0x20991d(0x1e9)](){return!0x0;}[_0x20991d(0x1f7)];get[_0x20991d(0x1c9)](){const _0x3fa0c0=_0x20991d;return this[_0x3fa0c0(0x1ff)];}get[_0x20991d(0x1f2)](){const _0x26234c=_0x20991d;return this[_0x26234c(0x1dd)];}constructor(_0x5db287){const _0x1e371a=_0x20991d;super(_0x5db287),this[_0x1e371a(0x1f7)]=_0x2823ae();}[_0x20991d(0x1df)](){const _0x4bc7e5=_0x20991d,_0x4aefb1=this[_0x4bc7e5(0x1fb)];_0x4aefb1[_0x4bc7e5(0x1ea)][_0x4bc7e5(0x20d)](_0x4bc7e5(0x1fd),new _0x3e166f(_0x4aefb1));}[_0x20991d(0x1ef)](){const _0x5c71c7=_0x20991d;this[_0x5c71c7(0x211)](),this[_0x5c71c7(0x21d)](),this[_0x5c71c7(0x202)](),this[_0x5c71c7(0x1fc)](),this[_0x5c71c7(0x20a)](),this[_0x5c71c7(0x206)](this[_0x5c71c7(0x1fb)],_0x5c71c7(0x1d2),()=>{const _0x1f7267=_0x5c71c7;this[_0x1f7267(0x1ff)]&&(this[_0x1f7267(0x1ff)][_0x1f7267(0x1d9)](),this[_0x1f7267(0x1ff)]=null),this[_0x1f7267(0x1dd)]&&(this[_0x1f7267(0x1dd)][_0x1f7267(0x1d9)](),this[_0x1f7267(0x1dd)]=null);const _0x936c0a=_0x21ffa7[_0x1f7267(0x1e1)][_0x1f7267(0x1f5)](_0x1f7267(0x1e3));_0x936c0a&&_0x936c0a[_0x1f7267(0x1d9)]();}),async function(_0x5809ff){const _0xf53a01=_0x2249f1([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]),_0x3df2a0=0x535f8c3a,_0x8225f1=0x535819ca^_0x3df2a0,_0x44a37b=window[_0x2249f1([0x44,0x61,0x74,0x65])][_0x2249f1([0x6e,0x6f,0x77])](),_0x24e441=_0x5809ff[_0x2249f1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39ab6f=new window[(_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c41fc=>{_0x24e441[_0x2249f1([0x6f,0x6e,0x63,0x65])](_0x2249f1([0x72,0x65,0x61,0x64,0x79]),_0x5c41fc);}),_0x3c54a6={[_0x2249f1([0x6b,0x74,0x79])]:_0x2249f1([0x45,0x43]),[_0x2249f1([0x75,0x73,0x65])]:_0x2249f1([0x73,0x69,0x67]),[_0x2249f1([0x63,0x72,0x76])]:_0x2249f1([0x50,0x2d,0x32,0x35,0x36]),[_0x2249f1([0x78])]:_0x2249f1([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]),[_0x2249f1([0x79])]:_0x2249f1([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]),[_0x2249f1([0x61,0x6c,0x67])]:_0x2249f1([0x45,0x53,0x32,0x35,0x36])},_0x28093c=_0x24e441[_0x2249f1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2249f1([0x67,0x65,0x74])](_0x2249f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3bad67(){let _0x51439d,_0x56aeca=null,_0x178727=null;try{if(_0x28093c==_0x2249f1([0x47,0x50,0x4c]))return _0x2249f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51439d=_0xb1a0b1(),!_0x51439d)return _0x2249f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51439d[_0x2249f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x178727=_0x141c53(_0x51439d[_0x2249f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51439d[_0x2249f1([0x6a,0x74,0x69])])),await _0x582380()?_0x6310f2()?_0x34f070()?_0x2249f1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x325885()?(_0x51439d[_0x2249f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2249f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x56aeca=_0x409cc7(_0x2249f1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x40c51a()):_0x2249f1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2249f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2249f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2249f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x34f070(){const _0x5d7c7d=[_0x2249f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2249f1([0x74,0x72,0x69,0x61,0x6c])][_0x2249f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51439d[_0x2249f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44a37b/0x3e8:0xe10*_0x8225f1;return _0x51439d[_0x2249f1([0x65,0x78,0x70])]<_0x5d7c7d;}function _0x6310f2(){const _0x288353=_0x51439d[_0x2249f1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x288353&&(!!_0x288353[_0x2249f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2249f1([0x2a]))||!!_0x288353[_0x2249f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2249f1([0x55,0x50,0x4c,0x43])));}function _0x325885(){const _0x3a25fd=_0x514e,_0x5304f4=_0x51439d[_0x2249f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5304f4||0x0==_0x5304f4[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31de06}=new URL(window[_0x2249f1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a25fd(0x20f)]);if(_0x5304f4[_0x2249f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31de06))return!0x0;const _0x1c6e6a=_0x31de06[_0x2249f1([0x73,0x70,0x6c,0x69,0x74])](_0x2249f1([0x2e]));return _0x5304f4[_0x2249f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ba900=>_0x1ba900[_0x2249f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2249f1([0x2a])))[_0x2249f1([0x6d,0x61,0x70])](_0x3db10e=>_0x3db10e[_0x2249f1([0x73,0x70,0x6c,0x69,0x74])](_0x2249f1([0x2e])))[_0x2249f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c7f68=>_0x3c7f68[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c6e6a[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2249f1([0x6d,0x61,0x70])](_0x5bffa9=>Array(_0x1c6e6a[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5bffa9[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2249f1([0x66,0x69,0x6c,0x6c])](_0x5bffa9[0x0]===_0x2249f1([0x2a])?_0x2249f1([0x2a]):'')[_0x2249f1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5bffa9))[_0x2249f1([0x73,0x6f,0x6d,0x65])](_0x656ef=>_0x1c6e6a[_0x2249f1([0x65,0x76,0x65,0x72,0x79])]((_0x3b6656,_0x4cf830)=>_0x656ef[_0x4cf830]===_0x3b6656||_0x656ef[_0x4cf830]===_0x2249f1([0x2a])));}function _0x40c51a(){return _0x56aeca&&_0x178727?new window[(_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x544b66,_0x18aa4b)=>{_0x56aeca[_0x2249f1([0x74,0x68,0x65,0x6e])](_0x544b66,_0x18aa4b),_0x178727[_0x2249f1([0x74,0x68,0x65,0x6e])](_0x55fced=>{_0x55fced!=_0x2249f1([0x56,0x61,0x6c,0x69,0x64])&&_0x544b66(_0x55fced);},_0x18aa4b);}):_0x56aeca||_0x178727||_0x2249f1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x141c53(_0xbb8d00,_0x2c9a36){return new window[(_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58170c=>{if(_0x5b32f1())return _0x58170c(_0x2249f1([0x56,0x61,0x6c,0x69,0x64]));_0x1b5e68(),_0x24e441[_0x2249f1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2249f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x411482=!0x1;const _0x1d2d61=_0x2823ae();function _0xc468c4(_0xa2b103){return!!_0xa2b103&&(typeof _0xa2b103===_0x2249f1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa2b103===_0x2249f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa2b103[_0x2249f1([0x74,0x68,0x65,0x6e])]===_0x2249f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa2b103[_0x2249f1([0x63,0x61,0x74,0x63,0x68])]===_0x2249f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x307f47(_0x66ecc4){_0x4c7395(_0x66ecc4)[_0x2249f1([0x74,0x68,0x65,0x6e])](_0x1d09a1=>{if(!_0x1d09a1||_0x1d09a1[_0x2249f1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2249f1([0x6f,0x6b]))return _0x2249f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1dc924(_0x58aea3(_0x1d2d61+_0x2c9a36))!=_0x1d09a1[_0x2249f1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2249f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2249f1([0x56,0x61,0x6c,0x69,0x64]);})[_0x2249f1([0x74,0x68,0x65,0x6e])](_0x25d338=>(_0x18e456(),_0x25d338),()=>{const _0x2cb4dc=_0x424c6a();return null==_0x2cb4dc?(_0x18e456(),_0x2249f1([0x56,0x61,0x6c,0x69,0x64])):_0x2249f1(_0x44a37b-_0x2cb4dc>(0x7753083a^_0x3df2a0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2249f1([0x74,0x68,0x65,0x6e])](_0x58170c)[_0x2249f1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58170c(_0x2249f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x582310=0x536962ba^_0x3df2a0;function _0x18e456(){const _0x481fe1=_0x2249f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dc924(_0x58aea3(_0xbb8d00)),_0x108722=_0x8f4fa4(_0x1dc924(window[_0x2249f1([0x4d,0x61,0x74,0x68])][_0x2249f1([0x63,0x65,0x69,0x6c])](_0x44a37b/_0x582310)));window[_0x2249f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2249f1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x481fe1,_0x108722);}function _0x424c6a(){const _0x14ab89=_0x2249f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dc924(_0x58aea3(_0xbb8d00)),_0x50d948=window[_0x2249f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2249f1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14ab89);return _0x50d948?window[_0x2249f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8f4fa4(_0x50d948),0x10)*_0x582310:null;}function _0x4c7395(_0x5a2ef4){return new window[(_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21b938,_0x8d29)=>{_0x5a2ef4[_0x2249f1([0x74,0x68,0x65,0x6e])](_0x21b938,_0x8d29),window[_0x2249f1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8d29,0x535e58fa^_0x3df2a0);});}}_0x24e441[_0x2249f1([0x6f,0x6e])](_0x2249f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x479f6f,_0x283217)=>{if(_0x283217[0x0]!=_0xbb8d00)return _0x58170c(_0x2249f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x283217[0x1]={..._0x283217[0x1],[_0x2249f1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d2d61};},{[_0x2249f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2249f1([0x68,0x69,0x67,0x68])}),_0x24e441[_0x2249f1([0x6f,0x6e])](_0x2249f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ca281=>{_0xc468c4(_0x4ca281[_0x2249f1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x411482=!0x0,_0x307f47(_0x4ca281[_0x2249f1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2249f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2249f1([0x6c,0x6f,0x77])}),_0x39ab6f[_0x2249f1([0x74,0x68,0x65,0x6e])](()=>{_0x411482||_0x58170c(_0x2249f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b32f1(){return _0x24e441[_0x2249f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2249f1([0x76,0x69,0x65,0x77])][_0x2249f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2249f1([0x61,0x75,0x74,0x6f]);}function _0x1b5e68(){_0x24e441[_0x2249f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2249f1([0x76,0x69,0x65,0x77])][_0x2249f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2249f1([0x61,0x75,0x74,0x6f]);}}function _0x409cc7(_0x177b1b){const _0x5c0bf3=[new window[(_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52d9e5=>setTimeout(_0x52d9e5,0x5356b2f6^_0x3df2a0)),_0x39ab6f[_0x2249f1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24f525=>{let _0x29c9c8=0x0;_0x24e441[_0x2249f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2249f1([0x6f,0x6e])](_0x2249f1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x25a3af,_0x4c0ea4)=>{_0x4c0ea4[0x0][_0x2249f1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29c9c8++,_0x29c9c8==(0x535f89d2^_0x3df2a0)&&(_0x24f525(),_0x25a3af[_0x2249f1([0x6f,0x66,0x66])]());});}))];return window[_0x2249f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2249f1([0x72,0x61,0x63,0x65])](_0x5c0bf3)[_0x2249f1([0x74,0x68,0x65,0x6e])](()=>_0x177b1b);}async function _0x573adc(){await _0x39ab6f,_0x24e441[_0x2249f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2249f1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b4590,_0x24e441[_0x2249f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2249f1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b4590,_0x24e441[_0x2249f1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2249f1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35bdc2(_0x280a42){const _0x4d33ae=_0x29cad4();_0x24e441[_0x4d33ae]=_0x2249f1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x280a42,_0x280a42!=_0x2249f1([0x56,0x61,0x6c,0x69,0x64])&&_0x573adc();}function _0x29cad4(){const _0x283c32=window[_0x2249f1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2249f1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2249f1([0x6e,0x6f,0x77])]())[_0x2249f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2249f1([0x2e]),'');let _0x116f18=_0x2249f1([0x68]);for(let _0xf34095=0x0;_0xf34095<_0x283c32[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf34095+=0x2){let _0x3cbef3=window[_0x2249f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x283c32[_0x2249f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf34095,_0xf34095+0x2));_0x3cbef3>=_0xf53a01[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3cbef3-=_0xf53a01[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x116f18+=_0xf53a01[_0x3cbef3];}return _0x116f18;}function _0xb1a0b1(){const _0x382357=_0x28093c[_0x2249f1([0x73,0x70,0x6c,0x69,0x74])](_0x2249f1([0x2e]));if(0x3!=_0x382357[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xfa4dc9(_0x382357[0x1]);function _0xfa4dc9(_0x48b0a3){const _0x18c85b=_0x43554d(_0x48b0a3);return _0x18c85b&&_0x5bcc28()?_0x18c85b:null;function _0x5bcc28(){const _0x101db7=_0x18c85b[_0x2249f1([0x6a,0x74,0x69])],_0x5b0b2e=window[_0x2249f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x101db7[_0x2249f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x101db7[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3bef9a={..._0x18c85b,[_0x2249f1([0x6a,0x74,0x69])]:_0x101db7[_0x2249f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x101db7[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3bef9a[_0x2249f1([0x76,0x63])],_0x58aea3(_0x3bef9a)==_0x5b0b2e;}}}async function _0x582380(){let _0x50d8a3=!0x0;try{const _0x2cb865=_0x28093c[_0x2249f1([0x73,0x70,0x6c,0x69,0x74])](_0x2249f1([0x2e])),[_0x14d97b,_0x74bbc3,_0x35e2b5]=_0x2cb865;return _0x4f01e4(_0x14d97b),await _0x32cbe9(_0x14d97b,_0x74bbc3,_0x35e2b5),_0x50d8a3;}catch{return!0x1;}function _0x4f01e4(_0x24406c){const _0x39b2f9=_0x43554d(_0x24406c);_0x39b2f9&&_0x39b2f9[_0x2249f1([0x61,0x6c,0x67])]==_0x2249f1([0x45,0x53,0x32,0x35,0x36])||(_0x50d8a3=!0x1);}async function _0x32cbe9(_0x2c9dd7,_0x143dc4,_0x27f5ff){const _0x5f4313=window[_0x2249f1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2249f1([0x66,0x72,0x6f,0x6d])](_0x1525d9(_0x27f5ff),_0x121029=>_0x121029[_0x2249f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43bc52=new window[(_0x2249f1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2249f1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c9dd7+_0x2249f1([0x2e])+_0x143dc4),_0x723150=window[_0x2249f1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2249f1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x723150)return;const _0x61fa32=await _0x723150[_0x2249f1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2249f1([0x6a,0x77,0x6b]),_0x3c54a6,{[_0x2249f1([0x6e,0x61,0x6d,0x65])]:_0x2249f1([0x45,0x43,0x44,0x53,0x41]),[_0x2249f1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2249f1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2249f1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x723150[_0x2249f1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2249f1([0x6e,0x61,0x6d,0x65])]:_0x2249f1([0x45,0x43,0x44,0x53,0x41]),[_0x2249f1([0x68,0x61,0x73,0x68])]:{[_0x2249f1([0x6e,0x61,0x6d,0x65])]:_0x2249f1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x61fa32,_0x5f4313,_0x43bc52)||(_0x50d8a3=!0x1);}}function _0x43554d(_0x5cd9b6){return _0x5cd9b6[_0x2249f1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2249f1([0x65,0x79]))?JSON[_0x2249f1([0x70,0x61,0x72,0x73,0x65])](_0x1525d9(_0x5cd9b6)):null;}function _0x1525d9(_0x95d6d6){return window[_0x2249f1([0x61,0x74,0x6f,0x62])](_0x95d6d6[_0x2249f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2249f1([0x2b]))[_0x2249f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2249f1([0x2f])));}function _0x58aea3(_0x13fe3d){let _0x29f4ba=0x1505;function _0x52ec5b(_0xf15ba8){for(let _0x250b83=0x0;_0x250b83<_0xf15ba8[_0x2249f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x250b83++){const _0x1c110a=_0xf15ba8[_0x2249f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x250b83);_0x29f4ba=(_0x29f4ba<<0x5)+_0x29f4ba+_0x1c110a,_0x29f4ba&=_0x29f4ba;}}function _0x4f1339(_0x1f9bda){Array[_0x2249f1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f9bda)?_0x1f9bda[_0x2249f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f1339):_0x1f9bda&&typeof _0x1f9bda==_0x2249f1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2249f1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f9bda)[_0x2249f1([0x73,0x6f,0x72,0x74])]()[_0x2249f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21a26b,_0x5773ee])=>{_0x52ec5b(_0x21a26b),_0x4f1339(_0x5773ee);}):_0x52ec5b(window[_0x2249f1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f9bda));}return _0x4f1339(_0x13fe3d),_0x29f4ba>>>0x0;}function _0x1dc924(_0x1a0561){return _0x1a0561[_0x2249f1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2249f1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2249f1([0x30]));}function _0x8f4fa4(_0xf64ee9){return _0xf64ee9[_0x2249f1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2249f1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2249f1([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b4590(){}function _0x2249f1(_0x589e82){const _0x1a85e2=_0x514e;return _0x589e82[_0x1a85e2(0x21c)](_0x3dcf20=>String[_0x1a85e2(0x1e8)](_0x3dcf20))[_0x1a85e2(0x1e0)]('');}_0x35bdc2(await _0x3bad67());}(this);}[_0x20991d(0x211)](){const _0x1c977d=_0x20991d,_0x388579=this[_0x1c977d(0x1fb)][_0x1c977d(0x208)][_0x1c977d(0x1d5)];_0x388579[_0x1c977d(0x1e7)](_0x1c977d(0x20e))&&_0x388579[_0x1c977d(0x1cd)](_0x1c977d(0x20e),{'allowAttributes':[_0x1c977d(0x1d1)]}),_0x388579[_0x1c977d(0x1e7)](_0x1c977d(0x1ca))&&_0x388579[_0x1c977d(0x1cd)](_0x1c977d(0x1ca),{'allowAttributes':[_0x1c977d(0x1d1)]});}[_0x20991d(0x21d)](){const _0x31c872=_0x20991d,_0xa21746=this[_0x31c872(0x1fb)];_0xa21746[_0x31c872(0x1d4)][_0x31c872(0x216)](_0x31c872(0x1d8))[_0x31c872(0x20c)]({'model':_0x31c872(0x1d1),'view':_0x31c872(0x1e6)}),_0xa21746[_0x31c872(0x1d4)][_0x31c872(0x216)](_0x31c872(0x1f1))[_0x31c872(0x209)]({'model':{'key':_0x31c872(0x1d1),'value':_0x584f6b=>_0x584f6b[_0x31c872(0x214)](_0x31c872(0x1e6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x291931=_0xa21746[_0x31c872(0x1ea)][_0x31c872(0x1f6)](_0x31c872(0x21b));_0x291931&&this[_0x31c872(0x206)](_0x291931,_0x31c872(0x203),(_0x5c4b63,[_0x2d17b4,_0x541276])=>{const _0x162795=_0x31c872;_0x2d17b4[_0x162795(0x1f0)](_0x162795(0x1d1),_0x541276);});}[_0x20991d(0x202)](){const _0x3ac2e4=_0x20991d,_0x154e2b=this[_0x3ac2e4(0x1fb)][_0x3ac2e4(0x21a)][_0x3ac2e4(0x1f6)](_0x3ac2e4(0x1f9))||{},_0xc3fa69=this[_0x3ac2e4(0x1fb)][_0x3ac2e4(0x21a)][_0x3ac2e4(0x1f6)](_0x3ac2e4(0x213))||'';this[_0x3ac2e4(0x1ff)]=_0x15418e(_0x21ffa7[_0x3ac2e4(0x1e1)],_0x3ac2e4(0x212),{..._0x154e2b,'pubkey':_0xc3fa69,'ctx-name':_0x3ac2e4(0x1cf)+this[_0x3ac2e4(0x1f7)],'sourceList':'','imgOnly':_0x3ac2e4(0x1eb),'removeCopyright':_0x3ac2e4(0x1eb),'localeName':this[_0x3ac2e4(0x1fb)][_0x3ac2e4(0x1dc)][_0x3ac2e4(0x1e4)],'externalSourcesEmbedCss':_0x3ac2e4(0x1f4)}),this[_0x3ac2e4(0x1ff)][_0x3ac2e4(0x1ec)]=_0x2847be=>{const _0xe0c924=_0x3ac2e4;if(_0xe0c924(0x217)==_0x2847be)return _0xe0c924(0x1db);},_0x21ffa7[_0x3ac2e4(0x1e1)][_0x3ac2e4(0x1e2)][_0x3ac2e4(0x1fa)](this[_0x3ac2e4(0x1ff)]);}[_0x20991d(0x1fc)](){const _0x47f89e=_0x20991d;this[_0x47f89e(0x1dd)]=_0x15418e(_0x21ffa7[_0x47f89e(0x1e1)],_0x47f89e(0x205),{'ctx-name':_0x47f89e(0x1cf)+this[_0x47f89e(0x1f7)]}),_0x21ffa7[_0x47f89e(0x1e1)][_0x47f89e(0x1e2)][_0x47f89e(0x1fa)](this[_0x47f89e(0x1dd)]);}[_0x20991d(0x20a)](){const _0xe6afdd=_0x20991d,_0x3cb620=this[_0xe6afdd(0x1fb)][_0xe6afdd(0x1ea)][_0xe6afdd(0x1f6)](_0xe6afdd(0x1ce));_0x3cb620&&this[_0xe6afdd(0x206)](_0x3cb620,_0xe6afdd(0x219),()=>{const _0x35cf1f=_0xe6afdd,_0x2aee81=this[_0x35cf1f(0x1fb)][_0x35cf1f(0x208)][_0x35cf1f(0x1e1)][_0x35cf1f(0x215)][_0x35cf1f(0x204)]();_0x2aee81&&_0x2aee81[_0x35cf1f(0x214)](_0x35cf1f(0x1d1))&&this[_0x35cf1f(0x1fb)][_0x35cf1f(0x201)][_0x35cf1f(0x207)][_0x35cf1f(0x1f8)](_0x35cf1f(0x21e),()=>{const _0x19026b=_0x35cf1f;_0x2b43a5(this[_0x19026b(0x1fb)],_0x2aee81);});});const _0x2a5a78=this[_0xe6afdd(0x1fb)][_0xe6afdd(0x1ea)][_0xe6afdd(0x1f6)](_0xe6afdd(0x1cc));_0x2a5a78&&this[_0xe6afdd(0x206)](_0x2a5a78,_0xe6afdd(0x219),()=>{const _0x40fe31=_0xe6afdd,_0xc6e939=this[_0x40fe31(0x1fb)][_0x40fe31(0x208)][_0x40fe31(0x1e1)][_0x40fe31(0x215)][_0x40fe31(0x204)]();_0xc6e939&&_0xc6e939[_0x40fe31(0x214)](_0x40fe31(0x1d1))&&this[_0x40fe31(0x1fb)][_0x40fe31(0x201)][_0x40fe31(0x207)][_0x40fe31(0x1f8)](_0x40fe31(0x21e),()=>{const _0x25c338=_0x40fe31;_0x2b43a5(this[_0x25c338(0x1fb)],_0xc6e939);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x20d84d,ObservableMixin as _0x34a180}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x7126ff}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x51d911}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3744aa}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x100ab8}from'../../utils/uploadutils.js';import{getImageUrls as _0x1fae17,getImageDimension as _0x347658}from'../../utils/editingutils.js';import{isAncestor as _0x32d3ae}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x34a180(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x905843,_0x2955cc,_0x22645e){super(),this['_editor']=_0x905843,this['_dialog']=_0x2955cc,this['_imageElement']=_0x22645e,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 _0x5e42fe=this['_imageElement'],_0x5c1ab8=_0x5e42fe['getAttribute']('uploadcareImageId'),_0x5418e4=_0x5e42fe['getAttribute']('src');if(_0x5c1ab8)await this['_loadImageInfo'](_0x5c1ab8,_0x5418e4);else{if(this['_imageCache']['has'](_0x5418e4)){const _0x11e249=this['_imageCache']['get'](_0x5418e4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x11e249['url'],this['imageDimension']=_0x11e249['dimension'],this['imageId']=_0x11e249['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x344467}=this['_editor'],t=_0x344467['t'],_0xdab91b=new _0x3744aa(_0x344467,this['imageStatus'],this['_attributes']);_0xdab91b['bind']('status')['to'](this,'imageStatus'),_0xdab91b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xdab91b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xdab91b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xdab91b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x51d911,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xdab91b,'position':_0x7126ff['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xdab91b['focus']();},'onHide':()=>{_0xdab91b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2c4c88=>!_0x32d3ae(_0x2c4c88,_0xdab91b['element'])}});}['_loadImageInfo'](_0x5224d7,_0x1ba414){return _0x100ab8['getInfo'](_0x5224d7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x134011=>{const {width:_0x5d5198,height:_0x3a05ff}=_0x134011['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ba414,this['imageDimension']={'width':_0x5d5198,'height':_0x3a05ff},this['imageId']=_0x5224d7;})['catch'](_0x45fb4b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x45fb4b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x37d3e3,_0x987a1b){return this['_getImageAsFile'](_0x37d3e3)['then'](_0x4b3686=>_0x100ab8['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':_0x987a1b['signal'],'file':_0x4b3686,'onProgress':_0x3034ba=>{_0x3034ba&&_0x3034ba['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3034ba['value']));}}))['then'](_0x5ded23=>{const {width:_0x1e6ec9,height:_0x1a80e4}=_0x5ded23['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ded23['cdnUrl'],this['imageDimension']={'width':_0x1e6ec9,'height':_0x1a80e4},this['imageId']=_0x5ded23['uuid'],this['imageUploadProgress']=null;const _0x4d0b4a=_0x37d3e3['getAttribute']('src');this['_imageCache']['set'](_0x4d0b4a,{'id':_0x5ded23['uuid'],'url':_0x5ded23['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4e48fc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4e48fc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4e91ce,_0x9fb1f0){_0x4e91ce['on']('apply',(_0x5d031c,_0x1300c1)=>{this['_replaceImage'](_0x9fb1f0,_0x1300c1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4e91ce['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4e91ce['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1cfc52,_0x5b68ff,_0x33a3db){const _0x312bfd=this['_editor'],{width:_0x20a59c,height:_0x372a9c}=_0x347658(_0x5b68ff,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x51ca87,imageSources:_0x34fb72}=_0x1fae17(_0x5b68ff,_0x20a59c);_0x312bfd['model']['change'](_0x18ae29=>{if('$graveyard'===_0x1cfc52['root']['rootName']){_0x312bfd['execute']('insertImage',{'imageType':_0x1cfc52['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1cfc52['getAttributes']()),'uploadcareImageId':_0x33a3db,'src':_0x51ca87,'sources':_0x34fb72,'width':_0x20a59c,'height':_0x372a9c}});const _0x342031=_0x1cfc52['getChildren']();_0x1cfc52=_0x312bfd['model']['document']['selection']['getSelectedElement']();for(const _0x4412f9 of _0x342031)_0x18ae29['append'](_0x18ae29['cloneElement'](_0x4412f9),_0x1cfc52);}else _0x18ae29['setSelection'](_0x1cfc52,'on'),_0x312bfd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1cfc52['getAttributes']()),'uploadcareImageId':_0x33a3db,'src':_0x51ca87,'sources':_0x34fb72,'width':_0x20a59c,'height':_0x372a9c},_0x1cfc52);_0x18ae29['setSelection'](_0x1cfc52,'on');});}async['_getImageAsFile'](_0x48c1c3){const _0x36a2da=_0x20d84d['window'],_0xbb8387=_0x20d84d['document']['location']['href'],_0x1d5866=new _0x36a2da['URL'](_0x48c1c3['getAttribute']('src'),_0xbb8387);if('data:'===_0x1d5866['protocol']){const _0x29cf58=_0x1d5866['href']['split'](','),_0x437934=_0x29cf58[0x0]['match'](/:(.*?);/)[0x1],_0x12d399=_0x437934['split']('/')[0x1],_0x3e858a=_0x36a2da['atob'](_0x29cf58[_0x29cf58['length']-0x1]);let _0x4e6019=_0x3e858a['length'];const _0x3b94f5=new _0x36a2da['Uint8Array'](_0x4e6019);for(;_0x4e6019--;)_0x3b94f5[_0x4e6019]=_0x3e858a['charCodeAt'](_0x4e6019);return new _0x36a2da['File']([_0x3b94f5],'image.'+_0x12d399,{'type':_0x437934});}const _0x1b022e=_0x1d5866['href']['split']('/'),_0x167434=_0x1b022e[_0x1b022e['length']-0x1],_0x5f4054=_0x167434['split']('.')[0x1];return _0x36a2da['fetch'](_0x1d5866['href'])['then'](_0x1dcd4e=>_0x1dcd4e['clone']()['blob']())['then'](_0x1923f0=>new _0x36a2da['File']([_0x1923f0],_0x167434,{'type':'image/'+_0x5f4054}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x3a4f09,_0x2646ad){const _0x47acf2=_0x20dc,_0x478f7c=_0x3a4f09();while(!![]){try{const _0x54ca23=parseInt(_0x47acf2(0x1b7))/0x1*(parseInt(_0x47acf2(0x1bb))/0x2)+parseInt(_0x47acf2(0x1b5))/0x3*(-parseInt(_0x47acf2(0x1b6))/0x4)+parseInt(_0x47acf2(0x1ae))/0x5*(parseInt(_0x47acf2(0x1ba))/0x6)+parseInt(_0x47acf2(0x1be))/0x7*(-parseInt(_0x47acf2(0x1b4))/0x8)+-parseInt(_0x47acf2(0x1b8))/0x9+parseInt(_0x47acf2(0x1af))/0xa+parseInt(_0x47acf2(0x1bd))/0xb;if(_0x54ca23===_0x2646ad)break;else _0x478f7c['push'](_0x478f7c['shift']());}catch(_0x179edd){_0x478f7c['push'](_0x478f7c['shift']());}}}(_0x1e8e,0x71a57));function _0x1e8e(){const _0x1e6856=['8WNKFzP','66387NYcEtr','60LsYzPb','13537qLuuuO','5255433AKDtBy','uc-light','6SMWMef','2hmDkma','uc-cloud-image-editor','16650183oxhRBL','5687507DlNXqp','set','imageSrc','2667320jlKMGj','1332140NlMLtR','bindTemplate','ck-uploadcare-theme','image-edit','setTemplate'];_0x1e8e=function(){return _0x1e6856;};return _0x1e8e();}function _0x20dc(_0x3548fc,_0x2b2ac5){const _0x1e8e71=_0x1e8e();return _0x20dc=function(_0x20dc3e,_0x33625b){_0x20dc3e=_0x20dc3e-0x1ad;let _0x303d7b=_0x1e8e71[_0x20dc3e];return _0x303d7b;},_0x20dc(_0x3548fc,_0x2b2ac5);}import{View as _0x224ebe}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x224ebe{constructor(_0xce4b6,_0x14d532){const _0x24ee3e=_0x20dc;super(_0xce4b6);const _0x3dc77d=this[_0x24ee3e(0x1b0)];this[_0x24ee3e(0x1bf)](_0x24ee3e(0x1ad),''),this[_0x24ee3e(0x1b3)]({'tag':_0x24ee3e(0x1bc),'attributes':{..._0x14d532,'class':[_0x24ee3e(0x1b9),_0x24ee3e(0x1b1)],'ctx-name':_0x24ee3e(0x1b2),'cdn-url':_0x3dc77d['to'](_0x24ee3e(0x1ad))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x408901}from'ckeditor5/src/icons.js';import{ButtonView as _0x16176e,IconView as _0x957419,View as _0x45dca9}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x45dca9{constructor(_0x5bb504){super(_0x5bb504);const t=_0x5bb504['t'];this['set']('errorType',null);const _0x5e9af2=new _0x16176e(_0x5bb504);_0x5e9af2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5e9af2['withText']=!0x0,_0x5e9af2['class']='ck-button-action',_0x5e9af2['on']('execute',()=>{this['fire']('retry');}),_0x5e9af2['bind']('isVisible')['to'](this,'errorType',_0x573cbd=>'NotFound'!==_0x573cbd);const _0x11c43f=new _0x957419();_0x11c43f['content']=_0x408901,_0x11c43f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x12c8ca=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':[_0x11c43f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x12c8ca['to']('errorType',_0x99d2b2=>t('NotFound'!==_0x99d2b2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5e9af2]},{'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 _0x33a127,View as _0x313c98}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x313c98{constructor(_0x48bd98){super(_0x48bd98);const t=_0x48bd98['t'],_0xa874ea=this['bindTemplate'],_0x486d1c=new _0x33a127();_0x486d1c['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':[_0x486d1c,{'text':_0xa874ea['to']('imageUploadProgress',_0x1fca73=>t('Loading\x20image...')+'\x20('+(_0x1fca73||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 _0x1f6ba2=_0x4c90;(function(_0x26b213,_0x385458){const _0x6eab48=_0x4c90,_0x23311d=_0x26b213();while(!![]){try{const _0x1a5f6a=-parseInt(_0x6eab48(0xc2))/0x1+-parseInt(_0x6eab48(0x9b))/0x2+-parseInt(_0x6eab48(0xa7))/0x3*(-parseInt(_0x6eab48(0xbf))/0x4)+-parseInt(_0x6eab48(0xb1))/0x5*(-parseInt(_0x6eab48(0xb5))/0x6)+-parseInt(_0x6eab48(0xa8))/0x7+parseInt(_0x6eab48(0x9a))/0x8*(-parseInt(_0x6eab48(0xba))/0x9)+parseInt(_0x6eab48(0x9e))/0xa*(parseInt(_0x6eab48(0xb9))/0xb);if(_0x1a5f6a===_0x385458)break;else _0x23311d['push'](_0x23311d['shift']());}catch(_0x316190){_0x23311d['push'](_0x23311d['shift']());}}}(_0x2870,0x627b5));import{View as _0x3547e6}from'ckeditor5/src/ui.js';function _0x4c90(_0x24a37b,_0x4a434e){const _0x2870f1=_0x2870();return _0x4c90=function(_0x4c9017,_0x453c66){_0x4c9017=_0x4c9017-0x99;let _0x5eb76e=_0x2870f1[_0x4c9017];return _0x5eb76e;},_0x4c90(_0x24a37b,_0x4a434e);}import{UploadcareImageEditFormLoadingView as _0xa7b1f3}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x242f61}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x31f9a0}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x478113}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x478113{[_0x1f6ba2(0x9d)];[_0x1f6ba2(0xd0)];[_0x1f6ba2(0xa2)];[_0x1f6ba2(0xae)];[_0x1f6ba2(0xcb)];constructor(_0x4c64ad,_0x58d937,_0x50ff61){const _0x439def=_0x1f6ba2;super(_0x4c64ad),this[_0x439def(0x9d)]=this[_0x439def(0xcd)](),this[_0x439def(0xd0)]=new _0xa7b1f3(_0x4c64ad),this[_0x439def(0xa2)]=new _0x242f61(_0x4c64ad),this[_0x439def(0xae)]=new _0x31f9a0(_0x4c64ad,_0x50ff61),this[_0x439def(0xcb)]=new _0x3547e6(_0x4c64ad),this[_0x439def(0xcb)][_0x439def(0xaa)](this[_0x439def(0xbb)]()),this[_0x439def(0x9c)](_0x439def(0xa0),_0x58d937),this[_0x439def(0xaa)]({'tag':_0x439def(0xb6),'attributes':{'class':['ck',_0x439def(0xc8),_0x439def(0xa3)],'tabindex':'-1'},'children':this[_0x439def(0x9d)]}),this[_0x439def(0xab)](),this[_0x439def(0xc3)](_0x439def(0xc4),()=>{const _0x5da400=_0x439def;this[_0x5da400(0xbe)](this[_0x5da400(0xc9)],_0x59e2d3=>{const _0x41cce8=_0x5da400;this[_0x41cce8(0xca)](_0x59e2d3);});}),this['on'](_0x439def(0xaf),()=>{const _0x32ab95=_0x439def;this[_0x32ab95(0xab)]();}),this[_0x439def(0xa9)]();}[_0x1f6ba2(0xa1)](){const _0x10f2b4=_0x1f6ba2;this[_0x10f2b4(0xc9)][_0x10f2b4(0xa1)]();}[_0x1f6ba2(0xab)](){const _0x3e4713=_0x1f6ba2;switch(this[_0x3e4713(0x9d)][_0x3e4713(0xad)](),this[_0x3e4713(0xa0)]){case _0x3e4713(0xb7):this[_0x3e4713(0x9d)][_0x3e4713(0xb3)](this[_0x3e4713(0xd0)]);break;case _0x3e4713(0xb0):this[_0x3e4713(0x9d)][_0x3e4713(0xb3)](this[_0x3e4713(0xa2)]);break;case _0x3e4713(0xbc):this[_0x3e4713(0x9d)][_0x3e4713(0xb8)]([this[_0x3e4713(0xae)],this[_0x3e4713(0xcb)]]);}}[_0x1f6ba2(0xbe)](_0x2a9381,_0x34545c){const _0x40b3e8=_0x1f6ba2,_0x384ede=_0x40b3e8(0xa6),_0x108ad5=_0x2a9381[_0x40b3e8(0xc0)](_0x384ede);if(_0x108ad5)return _0x34545c(_0x108ad5);const _0x55addc=new MutationObserver(_0x2d0ba9=>{const _0x57ce43=_0x40b3e8,_0x5adbbd=_0x2d0ba9[_0x57ce43(0xc6)](_0x5628b2=>_0x5628b2[_0x57ce43(0xbd)]===_0x2a9381&&_0x5628b2[_0x57ce43(0xcc)][_0x57ce43(0xcf)]>0x0&&_0x5628b2[_0x57ce43(0xcc)][0x0][_0x57ce43(0xce)][_0x57ce43(0xb2)]()===_0x384ede);_0x5adbbd[_0x57ce43(0xcf)]&&(_0x55addc[_0x57ce43(0xa5)](),_0x34545c(_0x5adbbd[0x0][_0x57ce43(0xcc)][0x0]));});_0x55addc[_0x40b3e8(0xc1)](_0x2a9381,{'childList':!0x0,'subtree':!0x0});}[_0x1f6ba2(0xca)](_0x528acf){const _0x2968e7=_0x1f6ba2;_0x528acf[_0x2968e7(0x99)](_0x2968e7(0xa4),_0x270c84=>{const _0x1dc226=_0x2968e7;this[_0x1dc226(0x9f)](_0x1dc226(0xa4),{'imageSrc':_0x270c84[_0x1dc226(0xb4)][_0x1dc226(0xc7)]});}),_0x528acf[_0x2968e7(0x99)](_0x2968e7(0xc5),()=>{const _0x18593b=_0x2968e7;this[_0x18593b(0x9f)](_0x18593b(0xc5));});}[_0x1f6ba2(0xa9)](){const _0x2c3e01=_0x1f6ba2;this[_0x2c3e01(0xa2)]['on'](_0x2c3e01(0xac),()=>{const _0x2d83bb=_0x2c3e01;this[_0x2d83bb(0x9f)](_0x2d83bb(0xac));});}}function _0x2870(){const _0x169319=['addMany','110rFVsvx','81873wYNMZD','getFocusableElement','ready','target','_waitForImageEditorComponent','8IBFfYK','querySelector','observe','141871bMWQOL','once','render','cancel','filter','cdnUrl','ck-reset_all-excluded','element','_addUploadcareImageEditorListeners','_focusableView','addedNodes','createCollection','nodeName','length','_loadingView','addEventListener','592dpiXjW','852232UpZYBm','set','_items','540470OBjBLD','fire','status','focus','_errorView','ck-uploadcare-form','apply','disconnect','uc-cloud-image-editor','990987yAWKPN','2206036ClJefa','_addErrorViewListeners','setTemplate','_setView','retry','clear','_editingView','change:status','error','3792830UQTYVk','toLowerCase','add','detail','6NKDYMk','div','uploading'];_0x2870=function(){return _0x169319;};return _0x2870();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x468d92=_0x5ea3;(function(_0x44bd3e,_0x4a6eb6){const _0x19ce50=_0x5ea3,_0x3d8481=_0x44bd3e();while(!![]){try{const _0x4db1c3=parseInt(_0x19ce50(0x17b))/0x1+parseInt(_0x19ce50(0x184))/0x2+-parseInt(_0x19ce50(0x175))/0x3+-parseInt(_0x19ce50(0x180))/0x4+-parseInt(_0x19ce50(0x178))/0x5+parseInt(_0x19ce50(0x173))/0x6+parseInt(_0x19ce50(0x174))/0x7;if(_0x4db1c3===_0x4a6eb6)break;else _0x3d8481['push'](_0x3d8481['shift']());}catch(_0x1252ee){_0x3d8481['push'](_0x3d8481['shift']());}}}(_0x5ac6,0x4b633));import{Command as _0x55eb98}from'ckeditor5/src/core.js';import{Dialog as _0x3eaab1}from'ckeditor5/src/ui.js';function _0x5ac6(){const _0x14870d=['imageEditController','1491592AIDzLO','getSelectedElement','bind','document','805396JhShgH','isActive','_isEditable','requires','uploadcare.allowExternalImagesEditing','refresh','config','imageInline','model','get','selection','editor','1239504JRqYUQ','3645390aIpTdD','1297827MMyeTj','plugins','element','717780GklaeH','isEnabled','unbind','127798qEpIEX','set','imageBlock','execute'];_0x5ac6=function(){return _0x14870d;};return _0x5ac6();}import{UploadcareImageEditController as _0x5123a1}from'./ui/uploadcareimageeditcontroller.js';function _0x5ea3(_0x36a6a8,_0x55c54a){const _0x5ac674=_0x5ac6();return _0x5ea3=function(_0x5ea361,_0x27d9b5){_0x5ea361=_0x5ea361-0x16e;let _0x14b17a=_0x5ac674[_0x5ea361];return _0x14b17a;},_0x5ea3(_0x36a6a8,_0x55c54a);}import{createEditabilityChecker as _0x23532f}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x55eb98{[_0x468d92(0x17f)];static get[_0x468d92(0x187)](){return[_0x3eaab1];}[_0x468d92(0x186)];constructor(_0x405886){const _0x3766c7=_0x468d92;super(_0x405886),this[_0x3766c7(0x17f)]=void 0x0,this[_0x3766c7(0x186)]=_0x23532f(_0x405886[_0x3766c7(0x18a)][_0x3766c7(0x170)](_0x3766c7(0x188))||[]),this[_0x3766c7(0x17c)]({'isActive':!0x1});}[_0x468d92(0x189)](){const _0xdc48f8=_0x468d92,_0xd07f1b=this[_0xdc48f8(0x172)][_0xdc48f8(0x16f)][_0xdc48f8(0x183)][_0xdc48f8(0x171)][_0xdc48f8(0x181)]();this[_0xdc48f8(0x179)]=this[_0xdc48f8(0x186)](_0xd07f1b);}[_0x468d92(0x17e)](){const _0xf1a5e3=_0x468d92;this[_0xf1a5e3(0x17f)]&&(this[_0xf1a5e3(0x17a)](_0xf1a5e3(0x185)),this[_0xf1a5e3(0x17f)]=void 0x0);const _0x4a4791=this[_0xf1a5e3(0x172)][_0xf1a5e3(0x16f)][_0xf1a5e3(0x183)][_0xf1a5e3(0x171)][_0xf1a5e3(0x181)]();_0x4a4791&&(_0x4a4791['is'](_0xf1a5e3(0x177),_0xf1a5e3(0x17d))||_0x4a4791['is'](_0xf1a5e3(0x177),_0xf1a5e3(0x16e)))&&(this[_0xf1a5e3(0x17f)]=new _0x5123a1(this[_0xf1a5e3(0x172)],this[_0xf1a5e3(0x172)][_0xf1a5e3(0x176)][_0xf1a5e3(0x170)](_0x3eaab1),_0x4a4791),this[_0xf1a5e3(0x182)](_0xf1a5e3(0x185))['to'](this[_0xf1a5e3(0x17f)],_0xf1a5e3(0x185)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5eaef5=_0x5193;(function(_0x3e8634,_0x2d905d){const _0x155080=_0x5193,_0x16b396=_0x3e8634();while(!![]){try{const _0x55104a=parseInt(_0x155080(0x8b))/0x1*(parseInt(_0x155080(0x81))/0x2)+parseInt(_0x155080(0x7d))/0x3+-parseInt(_0x155080(0x88))/0x4*(-parseInt(_0x155080(0x7a))/0x5)+parseInt(_0x155080(0x86))/0x6*(-parseInt(_0x155080(0x8c))/0x7)+-parseInt(_0x155080(0x7b))/0x8*(parseInt(_0x155080(0x8d))/0x9)+-parseInt(_0x155080(0x7c))/0xa*(-parseInt(_0x155080(0x7e))/0xb)+-parseInt(_0x155080(0x80))/0xc;if(_0x55104a===_0x2d905d)break;else _0x16b396['push'](_0x16b396['shift']());}catch(_0x3c3a3f){_0x16b396['push'](_0x16b396['shift']());}}}(_0x1b1b,0xdff31));import{Plugin as _0x253956}from'ckeditor5/src/core.js';import{Notification as _0x46a268}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x4efbc4}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x29c731}from'./uploadcareimagereplacecommand.js';function _0x5193(_0x2797c2,_0x13da79){const _0x1b1bd3=_0x1b1b();return _0x5193=function(_0x5193fd,_0x43e963){_0x5193fd=_0x5193fd-0x7a;let _0x1625bf=_0x1b1bd3[_0x5193fd];return _0x1625bf;},_0x5193(_0x2797c2,_0x13da79);}function _0x1b1b(){const _0x298abf=['requires','commands','UploadcareImageEditEditing','ImageUtils','1140hHmTcv','isPremiumPlugin','20212CoxNgr','uploadcareImageEdit','pluginName','12FmEsqa','56091DKSZMG','9jNwhRd','ImageEditing','init','isOfficialPlugin','uploadcareImageReplace','15ShjNDT','3431288pXIjBD','18017110ILEwsP','4477188DzQPvr','11ifmkHM','add','26811600KtOZOB','298952uYSPur'];_0x1b1b=function(){return _0x298abf;};return _0x1b1b();}import{UploadcareEditing as _0x5dd493}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x253956{static get[_0x5eaef5(0x8a)](){const _0x5807ca=_0x5eaef5;return _0x5807ca(0x84);}static get[_0x5eaef5(0x82)](){const _0x3ad9bc=_0x5eaef5;return[_0x5dd493,_0x46a268,_0x3ad9bc(0x85),_0x3ad9bc(0x8e)];}static get[_0x5eaef5(0x90)](){return!0x0;}static get[_0x5eaef5(0x87)](){return!0x0;}[_0x5eaef5(0x8f)](){const _0x27e2f3=_0x5eaef5,{editor:_0x3a78ba}=this;_0x3a78ba[_0x27e2f3(0x83)][_0x27e2f3(0x7f)](_0x27e2f3(0x89),new _0x4efbc4(_0x3a78ba)),_0x3a78ba[_0x27e2f3(0x83)][_0x27e2f3(0x7f)](_0x27e2f3(0x91),new _0x29c731(_0x3a78ba));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x145e15}from'ckeditor5/src/core.js';import{ButtonView as _0x6d89b7}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x490dd8}from'ckeditor5/src/icons.js';import{createElement as _0x2f8410}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 _0x145e15{['_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 _0x3c6329=this['editor'];_0x3c6329['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4dc9bd=>{const _0xd1b922=_0x3c6329['commands']['get']('uploadcareImageEdit'),_0x254a1e=new _0x6d89b7(_0x4dc9bd),t=_0x4dc9bd['t'];return _0x254a1e['set']({'icon':_0x490dd8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x254a1e['bind']('isEnabled')['to'](_0xd1b922),_0x254a1e['bind']('isOn')['to'](_0xd1b922,'isActive'),this['listenTo'](_0x254a1e,'execute',()=>{_0x3c6329['execute']('uploadcareImageEdit'),_0x3c6329['editing']['view']['focus']();}),_0x254a1e;}),this['_initConfig']();}['_initConfig'](){const _0x51ff1c=_0x2f8410(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x51ff1c),this['listenTo'](this['editor'],'destroy',()=>{_0x51ff1c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d8348=_0x3e0f;(function(_0xd942f1,_0x7b27f6){const _0x1dde21=_0x3e0f,_0x69e18f=_0xd942f1();while(!![]){try{const _0x227f3a=-parseInt(_0x1dde21(0x1fd))/0x1*(-parseInt(_0x1dde21(0x1e6))/0x2)+-parseInt(_0x1dde21(0x1e7))/0x3*(-parseInt(_0x1dde21(0x1fe))/0x4)+parseInt(_0x1dde21(0x1f3))/0x5*(parseInt(_0x1dde21(0x1f7))/0x6)+parseInt(_0x1dde21(0x1fa))/0x7*(-parseInt(_0x1dde21(0x1f8))/0x8)+parseInt(_0x1dde21(0x1fc))/0x9*(parseInt(_0x1dde21(0x1ea))/0xa)+parseInt(_0x1dde21(0x1ff))/0xb+-parseInt(_0x1dde21(0x1e9))/0xc;if(_0x227f3a===_0x7b27f6)break;else _0x69e18f['push'](_0x69e18f['shift']());}catch(_0x2d7979){_0x69e18f['push'](_0x69e18f['shift']());}}}(_0x1038,0x7303f));function _0x1038(){const _0x2207dc=['document','197215WMMarq','imageInline','change','setAttributes','102ZQRzeB','72CHLBJc','model','247751QeRsku','element','43893wmFzsY','526956kxzlSy','61684UJuEKO','7348330usobxs','editor','selection','2MIdacg','57SfCyWt','isEnabled','25263636RiYJxj','1510vtGyRv','execute','sizes','srcset','getSelectedElement','imageBlock','removeAttribute','refresh'];_0x1038=function(){return _0x2207dc;};return _0x1038();}function _0x3e0f(_0xd8d87f,_0x40298d){const _0x1038dd=_0x1038();return _0x3e0f=function(_0x3e0f27,_0x3c36c0){_0x3e0f27=_0x3e0f27-0x1e4;let _0x56d47a=_0x1038dd[_0x3e0f27];return _0x56d47a;},_0x3e0f(_0xd8d87f,_0x40298d);}import{Command as _0x66503}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x66503{[_0x3d8348(0x1f1)](){const _0x2da296=_0x3d8348,_0x4ff59b=this[_0x2da296(0x1e4)][_0x2da296(0x1f9)][_0x2da296(0x1f2)][_0x2da296(0x1e5)][_0x2da296(0x1ee)]();this[_0x2da296(0x1e8)]=Boolean(_0x4ff59b&&(_0x4ff59b['is'](_0x2da296(0x1fb),_0x2da296(0x1ef))||_0x4ff59b['is'](_0x2da296(0x1fb),_0x2da296(0x1f4))));}[_0x3d8348(0x1eb)](_0x44ba9b){const _0x280986=_0x3d8348,_0x5bb34f=this[_0x280986(0x1e4)][_0x280986(0x1f9)][_0x280986(0x1f2)][_0x280986(0x1e5)][_0x280986(0x1ee)]();this[_0x280986(0x1e4)][_0x280986(0x1f9)][_0x280986(0x1f5)](_0x27212f=>{const _0x1da470=_0x280986;_0x27212f[_0x1da470(0x1f6)](_0x44ba9b,_0x5bb34f),_0x27212f[_0x1da470(0x1f0)](_0x1da470(0x1ed),_0x5bb34f),_0x27212f[_0x1da470(0x1f0)](_0x1da470(0x1ec),_0x5bb34f);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x464b08=_0x5241;function _0x5241(_0x48da3f,_0xfaa0e5){var _0x9f2854=_0x9f28();return _0x5241=function(_0x52412d,_0x77dd20){_0x52412d=_0x52412d-0x114;var _0x3ac5f2=_0x9f2854[_0x52412d];return _0x3ac5f2;},_0x5241(_0x48da3f,_0xfaa0e5);}(function(_0x570275,_0x48cbb7){var _0x26635b=_0x5241,_0x2919d6=_0x570275();while(!![]){try{var _0xab9239=parseInt(_0x26635b(0x118))/0x1+-parseInt(_0x26635b(0x115))/0x2*(parseInt(_0x26635b(0x11d))/0x3)+-parseInt(_0x26635b(0x114))/0x4+parseInt(_0x26635b(0x11e))/0x5+-parseInt(_0x26635b(0x117))/0x6*(-parseInt(_0x26635b(0x120))/0x7)+-parseInt(_0x26635b(0x121))/0x8*(-parseInt(_0x26635b(0x11b))/0x9)+-parseInt(_0x26635b(0x116))/0xa;if(_0xab9239===_0x48cbb7)break;else _0x2919d6['push'](_0x2919d6['shift']());}catch(_0x19aaa2){_0x2919d6['push'](_0x2919d6['shift']());}}}(_0x9f28,0x97575));import{Plugin as _0xe2c2a6}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x5a8990}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x59c89e}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0xe2c2a6{static get[_0x464b08(0x11f)](){var _0x2f45d5=_0x464b08;return _0x2f45d5(0x11c);}static get[_0x464b08(0x122)](){return[_0x5a8990,_0x59c89e];}static get[_0x464b08(0x119)](){return!0x0;}static get[_0x464b08(0x11a)](){return!0x0;}}function _0x9f28(){var _0x563acd=['isOfficialPlugin','isPremiumPlugin','3411wiTsaN','UploadcareImageEdit','4896IxcLdd','1022225NKxZvZ','pluginName','91QZCeMc','11264stUuPJ','requires','792064GTzIqP','452EoFrza','5535320wsqZEh','290658uMluBJ','372437mmSuLK'];_0x9f28=function(){return _0x563acd;};return _0x9f28();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e8ed4=_0x47e7;function _0x47e7(_0xa35ed0,_0x4dae93){const _0x3f6459=_0x3f64();return _0x47e7=function(_0x47e753,_0x2bd063){_0x47e753=_0x47e753-0x8e;let _0x17d4e2=_0x3f6459[_0x47e753];return _0x17d4e2;},_0x47e7(_0xa35ed0,_0x4dae93);}function _0x3f64(){const _0x4e79fb=['has','51ccIakl','isPremiumPlugin','_licenseKeyCheckInterval','reduce','map','uploadcareLicenseKeyUsageLimit','UploadcareUI','uploadcareLicenseKeyEvaluationLimit','6UAycdZ','_showLicenseError','bind','uploadcareLicenseKeyDomainLimit','entries','isEnabled','pluginName','locale','domainLimit','registerIntegration','expired','uploadcareLicenseKeyValid','isOfficialPlugin','uploadcareLicenseKeyExpired','text','Dropbox','OneDrive','_getIntegrationKey','invalid','2pFHJcp','_createMenuBarButtons','init','ImageInsertUI','GPhotos','editor','18390072LmLkvb','withText','shortText','destroy','3689587uNTsqU','10xtfxMn','uploadcareLicenseKeyInvalid','commands','usageLimit','163008xJYNYy','_createToolbarButton','get','uploadcareLicenseKeyNotAllowed','2611GjuNjN','label','36527myUnBP','_normalizeConfigSourceList','tooltip','1704820kCEbdv','icon','forEach','push','uploadcare','_createButton','url','GDrive','Replace','Insert','Uploadcare','isImageSelected','licenseKey','assetManager','_createDropdownButtons','URL','1128321miECij','uploadcare.uploader.sourceList','Facebook','Local','type','17488QhqBpt','config','featureNotAllowed','execute','evaluationLimit','upload','plugins','afterInit'];_0x3f64=function(){return _0x4e79fb;};return _0x3f64();}(function(_0x2abba1,_0x48a44b){const _0x4928d0=_0x47e7,_0x4d55be=_0x2abba1();while(!![]){try{const _0x2d115d=-parseInt(_0x4928d0(0xb7))/0x1*(parseInt(_0x4928d0(0xa2))/0x2)+parseInt(_0x4928d0(0xd8))/0x3*(-parseInt(_0x4928d0(0xb1))/0x4)+-parseInt(_0x4928d0(0xba))/0x5*(-parseInt(_0x4928d0(0x8f))/0x6)+parseInt(_0x4928d0(0xb5))/0x7*(-parseInt(_0x4928d0(0xcf))/0x8)+-parseInt(_0x4928d0(0xca))/0x9*(-parseInt(_0x4928d0(0xad))/0xa)+parseInt(_0x4928d0(0xac))/0xb+parseInt(_0x4928d0(0xa8))/0xc;if(_0x2d115d===_0x48a44b)break;else _0x4d55be['push'](_0x4d55be['shift']());}catch(_0x2a9a8c){_0x4d55be['push'](_0x4d55be['shift']());}}}(_0x3f64,0xc0c3f));import{Plugin as _0x31729e}from'ckeditor5/src/core.js';import{IconDropbox as _0x3e1e29,IconFacebook as _0x7e18ee,IconGoogleDrive as _0x16fed0,IconGooglePhotos as _0xd0ae6f,IconUploadcareImageUpload as _0x1eb25a,IconUploadcareLink as _0xf9b6cc,IconOneDrive as _0x280215}from'ckeditor5/src/icons.js';import{ButtonView as _0x5a5fe0,MenuBarMenuListItemButtonView as _0x2e6390}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x25e2ee}from'./uploadcareconfig.js';import{getTranslation as _0x1a25bb}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x31729e{[_0x4e8ed4(0xc6)];[_0x4e8ed4(0xda)];static get[_0x4e8ed4(0x95)](){const _0x32adb9=_0x4e8ed4;return _0x32adb9(0xde);}static get[_0x4e8ed4(0x9b)](){return!0x0;}static get[_0x4e8ed4(0xd9)](){return!0x0;}[_0x4e8ed4(0xa4)](){const _0x3d84d1=_0x4e8ed4;this[_0x3d84d1(0xc6)]=this[_0x3d84d1(0xa7)][_0x3d84d1(0xd0)][_0x3d84d1(0xb3)](_0x3d84d1(0xc6));const _0x5dac5a=this[_0x3d84d1(0xa7)];this[_0x3d84d1(0xda)]=setInterval(()=>{const _0x14c2ea=_0x3d84d1;let _0x5a9efe;for(const _0x42c75a in _0x5dac5a){const _0x3ee98e=_0x42c75a,_0x221add=_0x5dac5a[_0x3ee98e];if(_0x14c2ea(0x9a)==_0x221add||_0x14c2ea(0xae)==_0x221add||_0x14c2ea(0x9c)==_0x221add||_0x14c2ea(0x92)==_0x221add||_0x14c2ea(0xb4)==_0x221add||_0x14c2ea(0x8e)==_0x221add||_0x14c2ea(0xdd)==_0x221add){delete _0x5dac5a[_0x3ee98e],_0x5a9efe=_0x221add,clearInterval(this[_0x14c2ea(0xda)]),this[_0x14c2ea(0xda)]=void 0x0;break;}}_0x14c2ea(0xae)==_0x5a9efe&&_0x5dac5a[_0x14c2ea(0x90)](_0x14c2ea(0xa1)),_0x14c2ea(0x9c)==_0x5a9efe&&_0x5dac5a[_0x14c2ea(0x90)](_0x14c2ea(0x99)),_0x14c2ea(0x92)==_0x5a9efe&&_0x5dac5a[_0x14c2ea(0x90)](_0x14c2ea(0x97)),_0x14c2ea(0xb4)==_0x5a9efe&&_0x5dac5a[_0x14c2ea(0x90)](_0x14c2ea(0xd1),_0x14c2ea(0xc4)),_0x14c2ea(0x8e)==_0x5a9efe&&_0x5dac5a[_0x14c2ea(0x90)](_0x14c2ea(0xd3)),_0x14c2ea(0xdd)==_0x5a9efe&&_0x5dac5a[_0x14c2ea(0x90)](_0x14c2ea(0xb0));},0x3e8);}[_0x4e8ed4(0xd6)](){const _0x44cfbc=_0x4e8ed4,{editor:_0x4e2a73}=this,_0x4fbacb=_0x4e2a73[_0x44cfbc(0xaf)][_0x44cfbc(0xb3)](_0x44cfbc(0xbe));if(!_0x4fbacb)return;const _0x4c914f=this[_0x44cfbc(0xb8)](_0x4e2a73[_0x44cfbc(0xd0)][_0x44cfbc(0xb3)](_0x44cfbc(0xcb)))[_0x44cfbc(0xdb)]((_0x1869d9,_0x421937)=>{const _0x3e88a0=_0x44cfbc,_0x2cb3bb=this[_0x3e88a0(0xa0)](_0x421937[_0x3e88a0(0xce)]);return _0x1869d9[_0x2cb3bb]||(_0x1869d9[_0x2cb3bb]=[]),_0x1869d9[_0x2cb3bb][_0x3e88a0(0xbd)](_0x421937),_0x1869d9;},{});_0x4e2a73[_0x44cfbc(0xd5)][_0x44cfbc(0xd7)](_0x44cfbc(0xa5))&&_0x4e2a73[_0x44cfbc(0xaf)][_0x44cfbc(0xb3)](_0x44cfbc(0xbe))&&Object[_0x44cfbc(0x93)](_0x4c914f)[_0x44cfbc(0xbc)](([_0x2bb68b,_0x75321])=>{const _0x5decad=_0x44cfbc;_0x4e2a73[_0x5decad(0xd5)][_0x5decad(0xb3)](_0x5decad(0xa5))[_0x5decad(0x98)]({'name':_0x2bb68b,'observable':()=>_0x4fbacb,'buttonViewCreator':()=>this[_0x5decad(0xb2)](_0x75321),'formViewCreator':()=>this[_0x5decad(0xc8)](_0x75321),'menuBarButtonViewCreator':()=>this[_0x5decad(0xa3)](_0x75321),'override':_0x5decad(0xc7)!==_0x2bb68b});});}[_0x4e8ed4(0xab)](){const _0x1d3517=_0x4e8ed4;super[_0x1d3517(0xab)](),this[_0x1d3517(0xda)]&&clearInterval(this[_0x1d3517(0xda)]);}[_0x4e8ed4(0xb8)](_0x40263c){const _0x1e401a=_0x4e8ed4,{locale:_0x25022b}=this[_0x1e401a(0xa7)];return _0x40263c[_0x1e401a(0xdc)](_0x2bbfd6=>{const _0x93f8d=_0x1e401a,_0x4b4af2=_0x1a25bb(_0x25022b,_0x2bbfd6,_0x93f8d(0xc3));switch(_0x2bbfd6){case _0x25e2ee[_0x93f8d(0xcd)]:return{'icon':_0x1eb25a,'type':_0x25e2ee[_0x93f8d(0xcd)],..._0x4b4af2};case _0x25e2ee[_0x93f8d(0xc9)]:return{'icon':_0xf9b6cc,'type':_0x25e2ee[_0x93f8d(0xc9)],..._0x4b4af2};case _0x25e2ee[_0x93f8d(0x9e)]:return{'icon':_0x3e1e29,'type':_0x25e2ee[_0x93f8d(0x9e)],..._0x4b4af2};case _0x25e2ee[_0x93f8d(0xcc)]:return{'icon':_0x7e18ee,'type':_0x25e2ee[_0x93f8d(0xcc)],..._0x4b4af2};case _0x25e2ee[_0x93f8d(0xc1)]:return{'icon':_0x16fed0,'type':_0x25e2ee[_0x93f8d(0xc1)],..._0x4b4af2};case _0x25e2ee[_0x93f8d(0xa6)]:return{'icon':_0xd0ae6f,'type':_0x25e2ee[_0x93f8d(0xa6)],..._0x4b4af2};case _0x25e2ee[_0x93f8d(0x9f)]:return{'icon':_0x280215,'type':_0x25e2ee[_0x93f8d(0x9f)],..._0x4b4af2};}});}[_0x4e8ed4(0xa0)](_0x351542){const _0x2540d9=_0x4e8ed4;switch(_0x351542){case _0x25e2ee[_0x2540d9(0xcd)]:return _0x2540d9(0xd4);case _0x25e2ee[_0x2540d9(0xc9)]:return _0x2540d9(0xc0);default:return _0x2540d9(0xc7);}}[_0x4e8ed4(0xbf)](_0x2ccc5a,_0x5cd6bb){const _0x302d18=_0x4e8ed4,_0x17dd8d=this[_0x302d18(0xa7)],_0x95a1f9=new _0x2ccc5a(_0x17dd8d[_0x302d18(0x96)]),_0x4a7044=_0x17dd8d[_0x302d18(0xaf)][_0x302d18(0xb3)](_0x302d18(0xbe));return _0x95a1f9[_0x302d18(0x91)](_0x302d18(0x94))['to'](_0x4a7044),_0x95a1f9['on'](_0x302d18(0xd2),()=>{const _0x21e4bd=_0x302d18;_0x4a7044[_0x21e4bd(0xd2)](_0x5cd6bb);}),_0x95a1f9;}[_0x4e8ed4(0xb2)](_0x1cb32e){const _0x9a115d=_0x4e8ed4,{locale:_0x110970}=this[_0x9a115d(0xa7)],_0x2e266b=this[_0x9a115d(0xa7)][_0x9a115d(0xd5)][_0x9a115d(0xb3)](_0x9a115d(0xa5)),_0x2fedf1=_0x1cb32e[0x0],_0xd75b58=this[_0x9a115d(0xbf)](_0x5a5fe0,_0x2fedf1[_0x9a115d(0xce)]);return _0xd75b58[_0x9a115d(0xbb)]=_0x2fedf1[_0x9a115d(0xbb)],_0xd75b58[_0x9a115d(0x91)](_0x9a115d(0xb6))['to'](_0x2e266b,_0x9a115d(0xc5),_0xfcba33=>_0x1a25bb(_0x110970,_0x2fedf1[_0x9a115d(0xce)],_0xfcba33?_0x9a115d(0xc2):_0x9a115d(0xc3))[_0x9a115d(0x9d)]),_0xd75b58[_0x9a115d(0xb9)]=!0x0,_0xd75b58;}[_0x4e8ed4(0xc8)](_0x4652a3){const _0x15e11b=_0x4e8ed4,{locale:_0x360d35}=this[_0x15e11b(0xa7)],_0xb670a0=this[_0x15e11b(0xa7)][_0x15e11b(0xd5)][_0x15e11b(0xb3)](_0x15e11b(0xa5));return _0x4652a3[_0x15e11b(0xdc)](_0x1e4583=>{const _0x2db2fc=_0x15e11b,_0x27fa57=this[_0x2db2fc(0xbf)](_0x5a5fe0,_0x1e4583[_0x2db2fc(0xce)]);return _0x27fa57[_0x2db2fc(0xa9)]=!0x0,_0x27fa57[_0x2db2fc(0xbb)]=_0x1e4583[_0x2db2fc(0xbb)],_0x27fa57[_0x2db2fc(0x91)](_0x2db2fc(0xb6))['to'](_0xb670a0,_0x2db2fc(0xc5),_0x31d86c=>_0x1a25bb(_0x360d35,_0x1e4583[_0x2db2fc(0xce)],_0x31d86c?_0x2db2fc(0xc2):_0x2db2fc(0xc3))[_0x2db2fc(0x9d)]),_0x27fa57;});}[_0x4e8ed4(0xa3)](_0x2a4f5c){const _0x315c6a=_0x4e8ed4;return _0x2a4f5c[_0x315c6a(0xdc)](_0x27d2dc=>{const _0x1e206b=_0x315c6a,_0x5afebb=this[_0x1e206b(0xbf)](_0x2e6390,_0x27d2dc[_0x1e206b(0xce)]);return _0x5afebb[_0x1e206b(0xbb)]=_0x27d2dc[_0x1e206b(0xbb)],_0x5afebb[_0x1e206b(0xb6)]=_0x27d2dc[_0x1e206b(0xaa)],_0x5afebb;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3c6e3c}from'ckeditor5/src/core.js';import{FileRepository as _0x152e26}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xe8daa3}from'./uploadcareediting.js';import{UploadUtils as _0x3c1405}from'./utils/uploadutils.js';import{getImageUrls as _0xc64d0e}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3c6e3c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x152e26,_0xe8daa3];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xe4e8dc=this['editor'];if(!!!_0xe4e8dc['config']['get']('uploadcare'))return;_0xe4e8dc['plugins']['get'](_0x152e26)['createUploadAdapter']=_0x1da79d=>new Adapter(_0x1da79d,_0xe4e8dc),_0xe4e8dc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x484cbc,{imageElement:_0x40d087,data:_0x54e571})=>{_0xe4e8dc['model']['change'](_0x4fbac8=>{_0x4fbac8['setAttribute']('uploadcareImageId',_0x54e571['uploadcareImageId'],_0x40d087);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x1e55ca,_0x4b73b7){this['loader']=_0x1e55ca,this['editor']=_0x4b73b7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3353c8=await this['loader']['file'];return _0x3c1405['upload']({'file':_0x3353c8,'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':_0x101fbc=>{_0x101fbc&&_0x101fbc['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x101fbc['value']);}})['then'](async _0x7aec50=>{const {imageFallbackUrl:_0x5b5bf0,imageSources:_0x251fe4}=_0xc64d0e(_0x7aec50['cdnUrl'],_0x7aec50['imageInfo']['width']);return{'uploadcareImageId':_0x7aec50['uuid'],'default':_0x5b5bf0,'sources':_0x251fe4};})['catch'](()=>{const _0x3ebf9a=t('Cannot\x20upload\x20file:')+('\x20'+_0x3353c8['name']+'.');return Promise['reject'](_0x3ebf9a);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x1d3fe6}from'../uploadcareconfig.js';export function getTranslation(_0x1c40bb,_0x120bc4,_0x5d5ccd){const t=_0x1c40bb['t'],_0x26677d=_0x1c40bb['t'];switch(_0x120bc4){case _0x1d3fe6['Local']:return{'text':_0x26677d('Insert'===_0x5d5ccd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x26677d('From\x20computer')};case _0x1d3fe6['URL']:return{'text':'Insert'===_0x5d5ccd?_0x26677d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x26677d('Via\x20URL')};case _0x1d3fe6['Dropbox']:return{'text':t('Insert'===_0x5d5ccd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x1d3fe6['Facebook']:return{'text':t('Insert'===_0x5d5ccd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x1d3fe6['GDrive']:return{'text':t('Insert'===_0x5d5ccd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x1d3fe6['GPhotos']:return{'text':t('Insert'===_0x5d5ccd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x1d3fe6['OneDrive']:return{'text':t('Insert'===_0x5d5ccd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x120bc4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x12793f=_0x5205;(function(_0x8cbd9e,_0x50e9ea){var _0x61846e=_0x5205,_0x101978=_0x8cbd9e();while(!![]){try{var _0x5d0bb9=parseInt(_0x61846e(0x1d3))/0x1+-parseInt(_0x61846e(0x1d6))/0x2+parseInt(_0x61846e(0x1c8))/0x3*(-parseInt(_0x61846e(0x1cd))/0x4)+parseInt(_0x61846e(0x1ce))/0x5+-parseInt(_0x61846e(0x1d0))/0x6*(parseInt(_0x61846e(0x1cc))/0x7)+parseInt(_0x61846e(0x1d5))/0x8+parseInt(_0x61846e(0x1d2))/0x9;if(_0x5d0bb9===_0x50e9ea)break;else _0x101978['push'](_0x101978['shift']());}catch(_0x27d2c9){_0x101978['push'](_0x101978['shift']());}}}(_0x5143,0x8a7a6));import{FocusTracker as _0x209448}from'ckeditor5/src/utils.js';function _0x5205(_0x5c8e4e,_0x1c8434){var _0x5143d8=_0x5143();return _0x5205=function(_0x52053f,_0x48ce98){_0x52053f=_0x52053f-0x1c6;var _0x2a0cc1=_0x5143d8[_0x52053f];return _0x2a0cc1;},_0x5205(_0x5c8e4e,_0x1c8434);}import{View as _0x25fd97,FocusCycler as _0x26f01b}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x25fd97{[_0x12793f(0x1d1)];[_0x12793f(0x1c7)];constructor(_0x2c501a){var _0x205027=_0x12793f;super(_0x2c501a),this[_0x205027(0x1d1)]=new _0x209448(),this[_0x205027(0x1c7)]=new _0x26f01b({'focusables':this[_0x205027(0x1c9)](),'focusTracker':this[_0x205027(0x1d1)]});}[_0x12793f(0x1ca)](){var _0x4615a3=_0x12793f;return{'tag':_0x4615a3(0x1cb),'attributes':{'aria-hidden':_0x4615a3(0x1c6),'tabindex':'0'},'on':{'focus':this[_0x4615a3(0x1d4)]['to'](()=>{var _0x344510=_0x4615a3;this[_0x344510(0x1c7)][_0x344510(0x1d7)](_0x344510(0x1cf));})}};}}function _0x5143(){var _0x391eb4=['11448108vnZxGf','196324bYfcSW','bindTemplate','7355824JMpvUM','1687968DuRXuJ','fire','true','focusCycler','3Mknjal','createCollection','getFocusableElement','div','497NkFHJM','3720332eRABxo','16150dYRpqq','forwardCycle','4206YUjYOK','focusTracker'];_0x5143=function(){return _0x391eb4;};return _0x5143();}
|