@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.6 → 46.0.1-alpha.8
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
|
-
function _0x4b55(){const _0x381caf=['ucContextId','downcast','isRegistered','for','imageBlock','870XgUjia','render','model','contentLanguage','uploadcare','UploadcareEditing','upcast','5367648wvzgqH','true','16wQONIa','7286384LllJWi','uc-config','_initCtx','document','ctxElement','getAttribute','243531UrdKNI','_configElement','imageInline','uploadcare.pubkey','isOfficialPlugin','_ctxElement','uploadcareImageReplace','init','appendChild','52044NQIUhV','remove','uc-upload-ctx-provider','removeAttribute','editing','locale','execute','map','extend','2366794QIOZyf','uploadcareImageId','add','replaceImageSource','selection','insertImage','_initSchema','getSelectedElement','listenTo','271413CVIqMG','body','fromCharCode','elementToAttribute','#uc-icon-arrow-down','data-uc-image-id','_initImageProcessingIndicator','cleanupImage','uploadcare.uploader','requires','once','editor','conversion','isPremiumPlugin','commands','\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','PictureEditing','schema','get','input[uploadcare-file-input]','href','querySelector','closeMax','_initConfig','attributeToAttribute','afterInit','configElement','config','_initConversion','view','pluginName','iconHrefResolver','16781859ruTBCY','join','destroy','uploader-'];_0x4b55=function(){return _0x381caf;};return _0x4b55();}const _0x2894bd=_0x4b60;(function(_0x42646d,_0x4b900c){const _0xd38ee=_0x4b60,_0x483399=_0x42646d();while(!![]){try{const _0x11faf4=parseInt(_0xd38ee(0x1f1))/0x1+-parseInt(_0xd38ee(0x23c))/0x2+-parseInt(_0xd38ee(0x22a))/0x3*(parseInt(_0xd38ee(0x223))/0x4)+-parseInt(_0xd38ee(0x21a))/0x5*(parseInt(_0xd38ee(0x233))/0x6)+parseInt(_0xd38ee(0x224))/0x7+parseInt(_0xd38ee(0x221))/0x8+parseInt(_0xd38ee(0x211))/0x9;if(_0x11faf4===_0x4b900c)break;else _0x483399['push'](_0x483399['shift']());}catch(_0x26336f){_0x483399['push'](_0x483399['shift']());}}}(_0x4b55,0xcac57));import{Plugin as _0x27f434}from'ckeditor5/src/core.js';import{Dialog as _0x216eb5}from'ckeditor5/src/ui.js';import{createElement as _0x3cb199,global as _0x5c081a,uid as _0x42c9e1}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1cd646}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1af35e}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x30dc50}from'./utils/editingutils.js';function _0x4b60(_0x19f36e,_0xd79291){const _0x4b555a=_0x4b55();return _0x4b60=function(_0x4b60bc,_0x4af7fd){_0x4b60bc=_0x4b60bc-0x1f0;let _0x1c0b90=_0x4b555a[_0x4b60bc];return _0x1c0b90;},_0x4b60(_0x19f36e,_0xd79291);}export class UploadcareEditing extends _0x27f434{[_0x2894bd(0x22b)]=null;[_0x2894bd(0x22f)]=null;static get[_0x2894bd(0x20f)](){const _0x404906=_0x2894bd;return _0x404906(0x21f);}static get[_0x2894bd(0x1fa)](){const _0x1d706b=_0x2894bd;return[_0x1d706b(0x201),_0x1af35e,_0x216eb5];}static get[_0x2894bd(0x22e)](){return!0x0;}static get[_0x2894bd(0x1fe)](){return!0x0;}[_0x2894bd(0x215)];get[_0x2894bd(0x20b)](){const _0x4defe5=_0x2894bd;return this[_0x4defe5(0x22b)];}get[_0x2894bd(0x228)](){const _0x77e787=_0x2894bd;return this[_0x77e787(0x22f)];}constructor(_0x1e9e36){const _0x76ee04=_0x2894bd;super(_0x1e9e36),this[_0x76ee04(0x215)]=_0x42c9e1();}[_0x2894bd(0x231)](){const _0x34e0ee=_0x2894bd,_0xbd5cb6=this[_0x34e0ee(0x1fc)];_0xbd5cb6[_0x34e0ee(0x1ff)][_0x34e0ee(0x23e)](_0x34e0ee(0x21e),new _0x1cd646(_0xbd5cb6));}[_0x2894bd(0x20a)](){const _0x5adf79=_0x2894bd;this[_0x5adf79(0x242)](),this[_0x5adf79(0x20d)](),this[_0x5adf79(0x208)](),this[_0x5adf79(0x226)](),this[_0x5adf79(0x1f7)](),this[_0x5adf79(0x1f0)](this[_0x5adf79(0x1fc)],_0x5adf79(0x213),()=>{const _0x297bc7=_0x5adf79;this[_0x297bc7(0x22b)]&&(this[_0x297bc7(0x22b)][_0x297bc7(0x234)](),this[_0x297bc7(0x22b)]=null),this[_0x297bc7(0x22f)]&&(this[_0x297bc7(0x22f)][_0x297bc7(0x234)](),this[_0x297bc7(0x22f)]=null);const _0x56df0a=_0x5c081a[_0x297bc7(0x227)][_0x297bc7(0x206)](_0x297bc7(0x204));_0x56df0a&&_0x56df0a[_0x297bc7(0x234)]();}),async function(_0x14a5a9){const _0x354ba7=_0x21ffb5([0x72,0x32,0x6c,0x79,0x64,0x74,0x4a,0x4c,0x5a,0x58,0x30,0x56,0x69,0x70,0x66,0x45,0x38,0x48,0x65,0x34,0x43,0x6e,0x47,0x6d,0x7a,0x33,0x59,0x35,0x42,0x68,0x51,0x57,0x73,0x67,0x50,0x77,0x49,0x52,0x39,0x55,0x4e,0x78,0x6a,0x75,0x53,0x61,0x4b,0x41,0x44,0x54,0x76,0x31,0x37,0x6b,0x71,0x62,0x6f,0x36,0x46,0x63,0x4f,0x4d]),_0x54a515=0x59eb7e2a,_0x5e604a=0x59ec11b2^_0x54a515,_0x465fd7=window[_0x21ffb5([0x44,0x61,0x74,0x65])][_0x21ffb5([0x6e,0x6f,0x77])](),_0x1693a5=_0x14a5a9[_0x21ffb5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58b26b=new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x318c65=>{_0x1693a5[_0x21ffb5([0x6f,0x6e,0x63,0x65])](_0x21ffb5([0x72,0x65,0x61,0x64,0x79]),_0x318c65);}),_0x4564fc={[_0x21ffb5([0x6b,0x74,0x79])]:_0x21ffb5([0x45,0x43]),[_0x21ffb5([0x75,0x73,0x65])]:_0x21ffb5([0x73,0x69,0x67]),[_0x21ffb5([0x63,0x72,0x76])]:_0x21ffb5([0x50,0x2d,0x32,0x35,0x36]),[_0x21ffb5([0x78])]:_0x21ffb5([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]),[_0x21ffb5([0x79])]:_0x21ffb5([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]),[_0x21ffb5([0x61,0x6c,0x67])]:_0x21ffb5([0x45,0x53,0x32,0x35,0x36])},_0x5b89a8=_0x1693a5[_0x21ffb5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21ffb5([0x67,0x65,0x74])](_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b56c7(){let _0x2bb5c5,_0x5f2996=null,_0x4c05bd=null;try{if(_0x5b89a8==_0x21ffb5([0x47,0x50,0x4c]))return _0x21ffb5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2bb5c5=_0x3d82a8(),!_0x2bb5c5)return _0x21ffb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2bb5c5[_0x21ffb5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c05bd=_0x4d62ce(_0x2bb5c5[_0x21ffb5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2bb5c5[_0x21ffb5([0x6a,0x74,0x69])])),await _0x325b3f()?_0x2cd158()?_0x526953()?_0x21ffb5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x543a0e()?(_0x2bb5c5[_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21ffb5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5f2996=_0x4facea(_0x21ffb5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bb5c5[_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21ffb5([0x74,0x72,0x69,0x61,0x6c])&&(_0x5f2996=_0x4facea(_0x21ffb5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ccba3()):_0x21ffb5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21ffb5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21ffb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x21ffb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x526953(){const _0x79957f=[_0x21ffb5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21ffb5([0x74,0x72,0x69,0x61,0x6c])][_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bb5c5[_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x465fd7/0x3e8:0xe10*_0x5e604a;return _0x2bb5c5[_0x21ffb5([0x65,0x78,0x70])]<_0x79957f;}function _0x2cd158(){const _0x39beb8=_0x2bb5c5[_0x21ffb5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39beb8&&(!!_0x39beb8[_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ffb5([0x2a]))||!!_0x39beb8[_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ffb5([0x55,0x50,0x4c,0x43])));}function _0x543a0e(){const _0x2b3299=_0x4b60,_0x23919e=_0x2bb5c5[_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23919e||0x0==_0x23919e[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x594789}=new URL(window[_0x21ffb5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2b3299(0x205)]);if(_0x23919e[_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x594789))return!0x0;const _0xc7af07=_0x594789[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])](_0x21ffb5([0x2e]));return _0x23919e[_0x21ffb5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f22b6=>_0x1f22b6[_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ffb5([0x2a])))[_0x21ffb5([0x6d,0x61,0x70])](_0x10bf3a=>_0x10bf3a[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])](_0x21ffb5([0x2e])))[_0x21ffb5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c8ab3=>_0x5c8ab3[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xc7af07[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21ffb5([0x6d,0x61,0x70])](_0x3a3e7b=>Array(_0xc7af07[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a3e7b[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21ffb5([0x66,0x69,0x6c,0x6c])](_0x3a3e7b[0x0]===_0x21ffb5([0x2a])?_0x21ffb5([0x2a]):'')[_0x21ffb5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a3e7b))[_0x21ffb5([0x73,0x6f,0x6d,0x65])](_0x3befec=>_0xc7af07[_0x21ffb5([0x65,0x76,0x65,0x72,0x79])]((_0x533fab,_0x3762b2)=>_0x3befec[_0x3762b2]===_0x533fab||_0x3befec[_0x3762b2]===_0x21ffb5([0x2a])));}function _0x4ccba3(){return _0x5f2996&&_0x4c05bd?new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e7a36,_0x485e98)=>{_0x5f2996[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x2e7a36,_0x485e98),_0x4c05bd[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x495162=>{_0x495162!=_0x21ffb5([0x56,0x61,0x6c,0x69,0x64])&&_0x2e7a36(_0x495162);},_0x485e98);}):_0x5f2996||_0x4c05bd||_0x21ffb5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d62ce(_0xc24792,_0x440e2a){return new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d38d=>{if(_0x5e3543())return _0x29d38d(_0x21ffb5([0x56,0x61,0x6c,0x69,0x64]));_0x351798(),_0x1693a5[_0x21ffb5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21ffb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bcf0b=!0x1;const _0x36ba0a=_0x42c9e1();function _0x99d62a(_0x339803){return!!_0x339803&&(typeof _0x339803===_0x21ffb5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x339803===_0x21ffb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x339803[_0x21ffb5([0x74,0x68,0x65,0x6e])]===_0x21ffb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x339803[_0x21ffb5([0x63,0x61,0x74,0x63,0x68])]===_0x21ffb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e79cc(_0x16c276){_0x36239a(_0x16c276)[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x3d53c4=>{if(!_0x3d53c4||_0x3d53c4[_0x21ffb5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21ffb5([0x6f,0x6b]))return _0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4bd609(_0x4216ed(_0x36ba0a+_0x440e2a))!=_0x3d53c4[_0x21ffb5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21ffb5([0x56,0x61,0x6c,0x69,0x64]);})[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x58e639=>(_0x361282(),_0x58e639),()=>{const _0x2596bb=_0x129849();return null==_0x2596bb?(_0x361282(),_0x21ffb5([0x56,0x61,0x6c,0x69,0x64])):_0x21ffb5(_0x465fd7-_0x2596bb>(0x7de7fa2a^_0x54a515)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x29d38d)[_0x21ffb5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29d38d(_0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x42d374=0x59dd90aa^_0x54a515;function _0x361282(){const _0x285a03=_0x21ffb5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bd609(_0x4216ed(_0xc24792)),_0x3640eb=_0x32575f(_0x4bd609(window[_0x21ffb5([0x4d,0x61,0x74,0x68])][_0x21ffb5([0x63,0x65,0x69,0x6c])](_0x465fd7/_0x42d374)));window[_0x21ffb5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21ffb5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x285a03,_0x3640eb);}function _0x129849(){const _0x8718ef=_0x21ffb5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bd609(_0x4216ed(_0xc24792)),_0x4cc405=window[_0x21ffb5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21ffb5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8718ef);return _0x4cc405?window[_0x21ffb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32575f(_0x4cc405),0x10)*_0x42d374:null;}function _0x36239a(_0x3988ec){return new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51a56f,_0x35ae94)=>{_0x3988ec[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x51a56f,_0x35ae94),window[_0x21ffb5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35ae94,0x59eaaaea^_0x54a515);});}}_0x1693a5[_0x21ffb5([0x6f,0x6e])](_0x21ffb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46e3f6,_0x488497)=>{if(_0x488497[0x0]!=_0xc24792)return _0x29d38d(_0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x488497[0x1]={..._0x488497[0x1],[_0x21ffb5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36ba0a};},{[_0x21ffb5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21ffb5([0x68,0x69,0x67,0x68])}),_0x1693a5[_0x21ffb5([0x6f,0x6e])](_0x21ffb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fbff2=>{_0x99d62a(_0x1fbff2[_0x21ffb5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bcf0b=!0x0,_0x1e79cc(_0x1fbff2[_0x21ffb5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21ffb5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21ffb5([0x6c,0x6f,0x77])}),_0x58b26b[_0x21ffb5([0x74,0x68,0x65,0x6e])](()=>{_0x5bcf0b||_0x29d38d(_0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e3543(){return _0x1693a5[_0x21ffb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21ffb5([0x76,0x69,0x65,0x77])][_0x21ffb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21ffb5([0x61,0x75,0x74,0x6f]);}function _0x351798(){_0x1693a5[_0x21ffb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21ffb5([0x76,0x69,0x65,0x77])][_0x21ffb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21ffb5([0x61,0x75,0x74,0x6f]);}}function _0x4facea(_0x48c952){const _0x4ec5a9=[new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x79faca=>setTimeout(_0x79faca,0x59e240e6^_0x54a515)),_0x58b26b[_0x21ffb5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8adbe0=>{let _0x3f2ac9=0x0;_0x1693a5[_0x21ffb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ffb5([0x6f,0x6e])](_0x21ffb5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x31ac2c,_0x119203)=>{_0x119203[0x0][_0x21ffb5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f2ac9++,_0x3f2ac9==(0x59eb7fd2^_0x54a515)&&(_0x8adbe0(),_0x31ac2c[_0x21ffb5([0x6f,0x66,0x66])]());});}))];return window[_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21ffb5([0x72,0x61,0x63,0x65])](_0x4ec5a9)[_0x21ffb5([0x74,0x68,0x65,0x6e])](()=>_0x48c952);}async function _0x545d82(){await _0x58b26b,_0x1693a5[_0x21ffb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ffb5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c6ec1,_0x1693a5[_0x21ffb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ffb5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c6ec1,_0x1693a5[_0x21ffb5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21ffb5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10d7b2(_0x89f7f){const _0x9616ce=_0x449bb3();_0x1693a5[_0x9616ce]=_0x21ffb5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x89f7f,_0x89f7f!=_0x21ffb5([0x56,0x61,0x6c,0x69,0x64])&&_0x545d82();}function _0x449bb3(){const _0x59c341=window[_0x21ffb5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21ffb5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21ffb5([0x6e,0x6f,0x77])]())[_0x21ffb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21ffb5([0x2e]),'');let _0x3d2ac5=_0x21ffb5([0x72]);for(let _0x2f17c3=0x0;_0x2f17c3<_0x59c341[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f17c3+=0x2){let _0x4c62f1=window[_0x21ffb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59c341[_0x21ffb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f17c3,_0x2f17c3+0x2));_0x4c62f1>=_0x354ba7[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c62f1-=_0x354ba7[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d2ac5+=_0x354ba7[_0x4c62f1];}return _0x3d2ac5;}function _0x3d82a8(){const _0x1298c5=_0x5b89a8[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])](_0x21ffb5([0x2e]));if(0x3!=_0x1298c5[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a68b7(_0x1298c5[0x1]);function _0x3a68b7(_0x1be66d){const _0x44a412=_0x52cb62(_0x1be66d);return _0x44a412&&_0xa9bc1c()?_0x44a412:null;function _0xa9bc1c(){const _0x2e7377=_0x44a412[_0x21ffb5([0x6a,0x74,0x69])],_0x2a16bc=window[_0x21ffb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e7377[_0x21ffb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7377[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x90da3={..._0x44a412,[_0x21ffb5([0x6a,0x74,0x69])]:_0x2e7377[_0x21ffb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e7377[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x90da3[_0x21ffb5([0x76,0x63])],_0x4216ed(_0x90da3)==_0x2a16bc;}}}async function _0x325b3f(){let _0xa242d8=!0x0;try{const _0x2ad448=_0x5b89a8[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])](_0x21ffb5([0x2e])),[_0x251cec,_0x3283ad,_0x452e38]=_0x2ad448;return _0x1be59a(_0x251cec),await _0x5872d9(_0x251cec,_0x3283ad,_0x452e38),_0xa242d8;}catch{return!0x1;}function _0x1be59a(_0x3fd5a1){const _0x43c251=_0x52cb62(_0x3fd5a1);_0x43c251&&_0x43c251[_0x21ffb5([0x61,0x6c,0x67])]==_0x21ffb5([0x45,0x53,0x32,0x35,0x36])||(_0xa242d8=!0x1);}async function _0x5872d9(_0x5c5e35,_0x5d6816,_0x17e040){const _0x56fa4e=window[_0x21ffb5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21ffb5([0x66,0x72,0x6f,0x6d])](_0x37857b(_0x17e040),_0x53bd3c=>_0x53bd3c[_0x21ffb5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4affb0=new window[(_0x21ffb5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21ffb5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c5e35+_0x21ffb5([0x2e])+_0x5d6816),_0x111156=window[_0x21ffb5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21ffb5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x111156)return;const _0xebebc5=await _0x111156[_0x21ffb5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21ffb5([0x6a,0x77,0x6b]),_0x4564fc,{[_0x21ffb5([0x6e,0x61,0x6d,0x65])]:_0x21ffb5([0x45,0x43,0x44,0x53,0x41]),[_0x21ffb5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21ffb5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21ffb5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x111156[_0x21ffb5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21ffb5([0x6e,0x61,0x6d,0x65])]:_0x21ffb5([0x45,0x43,0x44,0x53,0x41]),[_0x21ffb5([0x68,0x61,0x73,0x68])]:{[_0x21ffb5([0x6e,0x61,0x6d,0x65])]:_0x21ffb5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xebebc5,_0x56fa4e,_0x4affb0)||(_0xa242d8=!0x1);}}function _0x52cb62(_0x46ea55){return _0x46ea55[_0x21ffb5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21ffb5([0x65,0x79]))?JSON[_0x21ffb5([0x70,0x61,0x72,0x73,0x65])](_0x37857b(_0x46ea55)):null;}function _0x37857b(_0x3a84d4){return window[_0x21ffb5([0x61,0x74,0x6f,0x62])](_0x3a84d4[_0x21ffb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21ffb5([0x2b]))[_0x21ffb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21ffb5([0x2f])));}function _0x4216ed(_0x24d87b){let _0x262463=0x1505;function _0x7afbd3(_0x5d7606){for(let _0x1e3867=0x0;_0x1e3867<_0x5d7606[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e3867++){const _0x5833e3=_0x5d7606[_0x21ffb5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e3867);_0x262463=(_0x262463<<0x5)+_0x262463+_0x5833e3,_0x262463&=_0x262463;}}function _0x4f9fad(_0x4edb82){Array[_0x21ffb5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4edb82)?_0x4edb82[_0x21ffb5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f9fad):_0x4edb82&&typeof _0x4edb82==_0x21ffb5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21ffb5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4edb82)[_0x21ffb5([0x73,0x6f,0x72,0x74])]()[_0x21ffb5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1b52a2,_0x4e46ac])=>{_0x7afbd3(_0x1b52a2),_0x4f9fad(_0x4e46ac);}):_0x7afbd3(window[_0x21ffb5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4edb82));}return _0x4f9fad(_0x24d87b),_0x262463>>>0x0;}function _0x4bd609(_0x2c6e57){return _0x2c6e57[_0x21ffb5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21ffb5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21ffb5([0x30]));}function _0x32575f(_0x4c9721){return _0x4c9721[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21ffb5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21ffb5([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c6ec1(){}function _0x21ffb5(_0xd6114e){const _0x5b9e9f=_0x4b60;return _0xd6114e[_0x5b9e9f(0x23a)](_0x5510b7=>String[_0x5b9e9f(0x1f3)](_0x5510b7))[_0x5b9e9f(0x212)]('');}_0x10d7b2(await _0x4b56c7());}(this);}[_0x2894bd(0x242)](){const _0x2f5b3f=_0x2894bd,_0x440b7f=this[_0x2f5b3f(0x1fc)][_0x2f5b3f(0x21c)][_0x2f5b3f(0x202)];_0x440b7f[_0x2f5b3f(0x217)](_0x2f5b3f(0x219))&&_0x440b7f[_0x2f5b3f(0x23b)](_0x2f5b3f(0x219),{'allowAttributes':[_0x2f5b3f(0x23d)]}),_0x440b7f[_0x2f5b3f(0x217)](_0x2f5b3f(0x22c))&&_0x440b7f[_0x2f5b3f(0x23b)](_0x2f5b3f(0x22c),{'allowAttributes':[_0x2f5b3f(0x23d)]});}[_0x2894bd(0x20d)](){const _0x4da586=_0x2894bd,_0xae38d8=this[_0x4da586(0x1fc)];_0xae38d8[_0x4da586(0x1fd)][_0x4da586(0x218)](_0x4da586(0x216))[_0x4da586(0x209)]({'model':_0x4da586(0x23d),'view':_0x4da586(0x1f6)}),_0xae38d8[_0x4da586(0x1fd)][_0x4da586(0x218)](_0x4da586(0x220))[_0x4da586(0x1f4)]({'model':{'key':_0x4da586(0x23d),'value':_0x34db99=>_0x34db99[_0x4da586(0x229)](_0x4da586(0x1f6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3ad309=_0xae38d8[_0x4da586(0x1ff)][_0x4da586(0x203)](_0x4da586(0x23f));_0x3ad309&&this[_0x4da586(0x1f0)](_0x3ad309,_0x4da586(0x1f8),(_0x3d39c9,[_0x21c041,_0x14704c])=>{const _0x448ad3=_0x4da586;_0x21c041[_0x448ad3(0x236)](_0x448ad3(0x23d),_0x14704c);});}[_0x2894bd(0x208)](){const _0x48c9ad=_0x2894bd,_0x5460b6=this[_0x48c9ad(0x1fc)][_0x48c9ad(0x20c)][_0x48c9ad(0x203)](_0x48c9ad(0x1f9))||{},_0x28a117=this[_0x48c9ad(0x1fc)][_0x48c9ad(0x20c)][_0x48c9ad(0x203)](_0x48c9ad(0x22d))||'';this[_0x48c9ad(0x22b)]=_0x3cb199(_0x5c081a[_0x48c9ad(0x227)],_0x48c9ad(0x225),{..._0x5460b6,'pubkey':_0x28a117,'ctx-name':_0x48c9ad(0x214)+this[_0x48c9ad(0x215)],'sourceList':'','imgOnly':_0x48c9ad(0x222),'removeCopyright':_0x48c9ad(0x222),'localeName':this[_0x48c9ad(0x1fc)][_0x48c9ad(0x238)][_0x48c9ad(0x21d)],'externalSourcesEmbedCss':_0x48c9ad(0x200)}),this[_0x48c9ad(0x22b)][_0x48c9ad(0x210)]=_0x387bef=>{const _0x1c5de8=_0x48c9ad;if(_0x1c5de8(0x207)==_0x387bef)return _0x1c5de8(0x1f5);},_0x5c081a[_0x48c9ad(0x227)][_0x48c9ad(0x1f2)][_0x48c9ad(0x232)](this[_0x48c9ad(0x22b)]);}[_0x2894bd(0x226)](){const _0x46adb8=_0x2894bd;this[_0x46adb8(0x22f)]=_0x3cb199(_0x5c081a[_0x46adb8(0x227)],_0x46adb8(0x235),{'ctx-name':_0x46adb8(0x214)+this[_0x46adb8(0x215)]}),_0x5c081a[_0x46adb8(0x227)][_0x46adb8(0x1f2)][_0x46adb8(0x232)](this[_0x46adb8(0x22f)]);}[_0x2894bd(0x1f7)](){const _0x3739c9=_0x2894bd,_0x4ac9ee=this[_0x3739c9(0x1fc)][_0x3739c9(0x1ff)][_0x3739c9(0x203)](_0x3739c9(0x241));_0x4ac9ee&&this[_0x3739c9(0x1f0)](_0x4ac9ee,_0x3739c9(0x239),()=>{const _0x509653=_0x3739c9,_0x50fc4d=this[_0x509653(0x1fc)][_0x509653(0x21c)][_0x509653(0x227)][_0x509653(0x240)][_0x509653(0x243)]();_0x50fc4d&&_0x50fc4d[_0x509653(0x229)](_0x509653(0x23d))&&this[_0x509653(0x1fc)][_0x509653(0x237)][_0x509653(0x20e)][_0x509653(0x1fb)](_0x509653(0x21b),()=>{const _0x1f4f8a=_0x509653;_0x30dc50(this[_0x1f4f8a(0x1fc)],_0x50fc4d);});});const _0x226cf2=this[_0x3739c9(0x1fc)][_0x3739c9(0x1ff)][_0x3739c9(0x203)](_0x3739c9(0x230));_0x226cf2&&this[_0x3739c9(0x1f0)](_0x226cf2,_0x3739c9(0x239),()=>{const _0x1942d4=_0x3739c9,_0x353d6f=this[_0x1942d4(0x1fc)][_0x1942d4(0x21c)][_0x1942d4(0x227)][_0x1942d4(0x240)][_0x1942d4(0x243)]();_0x353d6f&&_0x353d6f[_0x1942d4(0x229)](_0x1942d4(0x23d))&&this[_0x1942d4(0x1fc)][_0x1942d4(0x237)][_0x1942d4(0x20e)][_0x1942d4(0x1fb)](_0x1942d4(0x21b),()=>{const _0x272b23=_0x1942d4;_0x30dc50(this[_0x272b23(0x1fc)],_0x353d6f);});});}}
|
|
23
|
+
const _0x525748=_0x4a6d;(function(_0x16f59a,_0x8f596c){const _0x6819ac=_0x4a6d,_0x40e474=_0x16f59a();while(!![]){try{const _0x261654=-parseInt(_0x6819ac(0xd3))/0x1*(parseInt(_0x6819ac(0xa8))/0x2)+-parseInt(_0x6819ac(0xb5))/0x3+-parseInt(_0x6819ac(0xa1))/0x4*(-parseInt(_0x6819ac(0xb9))/0x5)+-parseInt(_0x6819ac(0xcc))/0x6*(parseInt(_0x6819ac(0xe2))/0x7)+parseInt(_0x6819ac(0xc0))/0x8+parseInt(_0x6819ac(0xc4))/0x9+parseInt(_0x6819ac(0xbe))/0xa;if(_0x261654===_0x8f596c)break;else _0x40e474['push'](_0x40e474['shift']());}catch(_0x416d5c){_0x40e474['push'](_0x40e474['shift']());}}}(_0x163b,0x84a36));function _0x4a6d(_0x684da4,_0x140948){const _0x163b28=_0x163b();return _0x4a6d=function(_0x4a6d59,_0x15cebf){_0x4a6d59=_0x4a6d59-0x98;let _0x49948a=_0x163b28[_0x4a6d59];return _0x49948a;},_0x4a6d(_0x684da4,_0x140948);}function _0x163b(){const _0x58d1e1=['afterInit','ucContextId','isRegistered','downcast','map','uploadcare.uploader','pluginName','get','upcast','2260601esMdwE','uc-config','getSelectedElement','join','isOfficialPlugin','iconHrefResolver','href','body','uc-upload-ctx-provider','init','insertImage','imageBlock','remove','destroy','removeAttribute','PictureEditing','attributeToAttribute','contentLanguage','_configElement','isPremiumPlugin','1440092BMjTTH','uploadcareImageId','true','elementToAttribute','_initSchema','uploadcareImageReplace','data-uc-image-id','4766NVJFvl','#uc-icon-arrow-down','appendChild','imageInline','editing','listenTo','querySelector','uploadcare.pubkey','\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','UploadcareEditing','conversion','_initConversion','_initImageProcessingIndicator','2943336GMTYzL','add','document','_initConfig','5MtYwZA','schema','replaceImageSource','config','ctxElement','12632270lTsfer','model','1598912XqIUEw','input[uploadcare-file-input]','closeMax','for','4378761UPNswH','uploadcare','once','configElement','execute','commands','view','editor','6cjHInh','fromCharCode','_initCtx','render','_ctxElement','cleanupImage','requires','194NgKrvL','getAttribute','selection','locale','extend','uploader-'];_0x163b=function(){return _0x58d1e1;};return _0x163b();}import{Plugin as _0x5778a0}from'ckeditor5/src/core.js';import{Dialog as _0x2aaf2b}from'ckeditor5/src/ui.js';import{createElement as _0x2b77a5,global as _0x20bebf,uid as _0x2291f5}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4323c3}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2132ee}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1f7017}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5778a0{[_0x525748(0x9f)]=null;[_0x525748(0xd0)]=null;static get[_0x525748(0xdf)](){const _0xf36775=_0x525748;return _0xf36775(0xb1);}static get[_0x525748(0xd2)](){const _0x12cac8=_0x525748;return[_0x12cac8(0x9c),_0x2132ee,_0x2aaf2b];}static get[_0x525748(0xe6)](){return!0x0;}static get[_0x525748(0xa0)](){return!0x0;}[_0x525748(0xda)];get[_0x525748(0xc7)](){const _0xf552a0=_0x525748;return this[_0xf552a0(0x9f)];}get[_0x525748(0xbd)](){const _0x472dcb=_0x525748;return this[_0x472dcb(0xd0)];}constructor(_0x4b2a73){const _0x47c158=_0x525748;super(_0x4b2a73),this[_0x47c158(0xda)]=_0x2291f5();}[_0x525748(0xeb)](){const _0xc7aa2e=_0x525748,_0x1405dc=this[_0xc7aa2e(0xcb)];_0x1405dc[_0xc7aa2e(0xc9)][_0xc7aa2e(0xb6)](_0xc7aa2e(0xc5),new _0x4323c3(_0x1405dc));}[_0x525748(0xd9)](){const _0x15cbd2=_0x525748;this[_0x15cbd2(0xa5)](),this[_0x15cbd2(0xb3)](),this[_0x15cbd2(0xb8)](),this[_0x15cbd2(0xce)](),this[_0x15cbd2(0xb4)](),this[_0x15cbd2(0xad)](this[_0x15cbd2(0xcb)],_0x15cbd2(0x9a),()=>{const _0x5756f8=_0x15cbd2;this[_0x5756f8(0x9f)]&&(this[_0x5756f8(0x9f)][_0x5756f8(0x99)](),this[_0x5756f8(0x9f)]=null),this[_0x5756f8(0xd0)]&&(this[_0x5756f8(0xd0)][_0x5756f8(0x99)](),this[_0x5756f8(0xd0)]=null);const _0x17eac5=_0x20bebf[_0x5756f8(0xb7)][_0x5756f8(0xae)](_0x5756f8(0xc1));_0x17eac5&&_0x17eac5[_0x5756f8(0x99)]();}),async function(_0x30100f){const _0x3f2856=_0xbda4b2([0x55,0x57,0x4d,0x36,0x50,0x56,0x79,0x75,0x4b,0x63,0x6d,0x5a,0x77,0x32,0x6c,0x59,0x52,0x6f,0x74,0x42,0x4e,0x45,0x6b,0x49,0x31,0x41,0x78,0x43,0x58,0x53,0x47,0x39,0x61,0x30,0x67,0x37,0x73,0x72,0x66,0x4f,0x46,0x4a,0x76,0x6a,0x48,0x33,0x62,0x64,0x68,0x44,0x70,0x65,0x34,0x4c,0x7a,0x35,0x6e,0x38,0x71,0x54,0x69,0x51]),_0x480e5a=0xedc7fa3,_0x3b284a=0xedb1013^_0x480e5a,_0x4d3164=window[_0xbda4b2([0x44,0x61,0x74,0x65])][_0xbda4b2([0x6e,0x6f,0x77])](),_0x5cd70a=_0x30100f[_0xbda4b2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x940e5c=new window[(_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cf3d1=>{_0x5cd70a[_0xbda4b2([0x6f,0x6e,0x63,0x65])](_0xbda4b2([0x72,0x65,0x61,0x64,0x79]),_0x5cf3d1);}),_0x491614={[_0xbda4b2([0x6b,0x74,0x79])]:_0xbda4b2([0x45,0x43]),[_0xbda4b2([0x75,0x73,0x65])]:_0xbda4b2([0x73,0x69,0x67]),[_0xbda4b2([0x63,0x72,0x76])]:_0xbda4b2([0x50,0x2d,0x32,0x35,0x36]),[_0xbda4b2([0x78])]:_0xbda4b2([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]),[_0xbda4b2([0x79])]:_0xbda4b2([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]),[_0xbda4b2([0x61,0x6c,0x67])]:_0xbda4b2([0x45,0x53,0x32,0x35,0x36])},_0x47f14e=_0x5cd70a[_0xbda4b2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xbda4b2([0x67,0x65,0x74])](_0xbda4b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b0877(){let _0x46cfab,_0x11eaf4=null,_0x5491d0=null;try{if(_0x47f14e==_0xbda4b2([0x47,0x50,0x4c]))return _0xbda4b2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x46cfab=_0x47fff3(),!_0x46cfab)return _0xbda4b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x46cfab[_0xbda4b2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5491d0=_0x29c997(_0x46cfab[_0xbda4b2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x46cfab[_0xbda4b2([0x6a,0x74,0x69])])),await _0x3b7a36()?_0x122914()?_0x30fb26()?_0xbda4b2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ca4b1()?(_0x46cfab[_0xbda4b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbda4b2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11eaf4=_0x5472da(_0xbda4b2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x46cfab[_0xbda4b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbda4b2([0x74,0x72,0x69,0x61,0x6c])&&(_0x11eaf4=_0x5472da(_0xbda4b2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2469a6()):_0xbda4b2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xbda4b2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xbda4b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xbda4b2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30fb26(){const _0x6ff39f=[_0xbda4b2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xbda4b2([0x74,0x72,0x69,0x61,0x6c])][_0xbda4b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46cfab[_0xbda4b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d3164/0x3e8:0xe10*_0x3b284a;return _0x46cfab[_0xbda4b2([0x65,0x78,0x70])]<_0x6ff39f;}function _0x122914(){const _0x17bc35=_0x46cfab[_0xbda4b2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17bc35&&(!!_0x17bc35[_0xbda4b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbda4b2([0x2a]))||!!_0x17bc35[_0xbda4b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbda4b2([0x55,0x50,0x4c,0x43])));}function _0x5ca4b1(){const _0x2d797a=_0x4a6d,_0x6da593=_0x46cfab[_0xbda4b2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6da593||0x0==_0x6da593[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56b92f}=new URL(window[_0xbda4b2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2d797a(0xe8)]);if(_0x6da593[_0xbda4b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56b92f))return!0x0;const _0x46f43a=_0x56b92f[_0xbda4b2([0x73,0x70,0x6c,0x69,0x74])](_0xbda4b2([0x2e]));return _0x6da593[_0xbda4b2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d6d3a=>_0x3d6d3a[_0xbda4b2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbda4b2([0x2a])))[_0xbda4b2([0x6d,0x61,0x70])](_0x285c56=>_0x285c56[_0xbda4b2([0x73,0x70,0x6c,0x69,0x74])](_0xbda4b2([0x2e])))[_0xbda4b2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3eaa7d=>_0x3eaa7d[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46f43a[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbda4b2([0x6d,0x61,0x70])](_0x52568c=>Array(_0x46f43a[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x52568c[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbda4b2([0x66,0x69,0x6c,0x6c])](_0x52568c[0x0]===_0xbda4b2([0x2a])?_0xbda4b2([0x2a]):'')[_0xbda4b2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x52568c))[_0xbda4b2([0x73,0x6f,0x6d,0x65])](_0x5caab3=>_0x46f43a[_0xbda4b2([0x65,0x76,0x65,0x72,0x79])]((_0xcb244c,_0x41494f)=>_0x5caab3[_0x41494f]===_0xcb244c||_0x5caab3[_0x41494f]===_0xbda4b2([0x2a])));}function _0x2469a6(){return _0x11eaf4&&_0x5491d0?new window[(_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c4db0,_0x4fb679)=>{_0x11eaf4[_0xbda4b2([0x74,0x68,0x65,0x6e])](_0x5c4db0,_0x4fb679),_0x5491d0[_0xbda4b2([0x74,0x68,0x65,0x6e])](_0x5bb966=>{_0x5bb966!=_0xbda4b2([0x56,0x61,0x6c,0x69,0x64])&&_0x5c4db0(_0x5bb966);},_0x4fb679);}):_0x11eaf4||_0x5491d0||_0xbda4b2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x29c997(_0xd5a185,_0x518200){return new window[(_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50be1e=>{if(_0x409702())return _0x50be1e(_0xbda4b2([0x56,0x61,0x6c,0x69,0x64]));_0x591774(),_0x5cd70a[_0xbda4b2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xbda4b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a7c52=!0x1;const _0x417111=_0x2291f5();function _0x1018f5(_0x2fba2e){return!!_0x2fba2e&&(typeof _0x2fba2e===_0xbda4b2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2fba2e===_0xbda4b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2fba2e[_0xbda4b2([0x74,0x68,0x65,0x6e])]===_0xbda4b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2fba2e[_0xbda4b2([0x63,0x61,0x74,0x63,0x68])]===_0xbda4b2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45ae98(_0x5a6f3d){_0x4aa8d1(_0x5a6f3d)[_0xbda4b2([0x74,0x68,0x65,0x6e])](_0x1c9016=>{if(!_0x1c9016||_0x1c9016[_0xbda4b2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xbda4b2([0x6f,0x6b]))return _0xbda4b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x872070(_0x2e3613(_0x417111+_0x518200))!=_0x1c9016[_0xbda4b2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xbda4b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xbda4b2([0x56,0x61,0x6c,0x69,0x64]);})[_0xbda4b2([0x74,0x68,0x65,0x6e])](_0x54e0ec=>(_0x5b0d77(),_0x54e0ec),()=>{const _0x3db137=_0x5ad90f();return null==_0x3db137?(_0x5b0d77(),_0xbda4b2([0x56,0x61,0x6c,0x69,0x64])):_0xbda4b2(_0x4d3164-_0x3db137>(0x2ad0fba3^_0x480e5a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xbda4b2([0x74,0x68,0x65,0x6e])](_0x50be1e)[_0xbda4b2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50be1e(_0xbda4b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x358528=0xeea9123^_0x480e5a;function _0x5b0d77(){const _0x3dbd30=_0xbda4b2([0x6c,0x6c,0x63,0x74,0x2d])+_0x872070(_0x2e3613(_0xd5a185)),_0x16197d=_0x494705(_0x872070(window[_0xbda4b2([0x4d,0x61,0x74,0x68])][_0xbda4b2([0x63,0x65,0x69,0x6c])](_0x4d3164/_0x358528)));window[_0xbda4b2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbda4b2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3dbd30,_0x16197d);}function _0x5ad90f(){const _0x4f42d7=_0xbda4b2([0x6c,0x6c,0x63,0x74,0x2d])+_0x872070(_0x2e3613(_0xd5a185)),_0x63013a=window[_0xbda4b2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbda4b2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f42d7);return _0x63013a?window[_0xbda4b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x494705(_0x63013a),0x10)*_0x358528:null;}function _0x4aa8d1(_0x45b164){return new window[(_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38f8f7,_0x14d122)=>{_0x45b164[_0xbda4b2([0x74,0x68,0x65,0x6e])](_0x38f8f7,_0x14d122),window[_0xbda4b2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14d122,0xeddab63^_0x480e5a);});}}_0x5cd70a[_0xbda4b2([0x6f,0x6e])](_0xbda4b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ab25f,_0x193314)=>{if(_0x193314[0x0]!=_0xd5a185)return _0x50be1e(_0xbda4b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x193314[0x1]={..._0x193314[0x1],[_0xbda4b2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x417111};},{[_0xbda4b2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbda4b2([0x68,0x69,0x67,0x68])}),_0x5cd70a[_0xbda4b2([0x6f,0x6e])](_0xbda4b2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a8091=>{_0x1018f5(_0x3a8091[_0xbda4b2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a7c52=!0x0,_0x45ae98(_0x3a8091[_0xbda4b2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xbda4b2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbda4b2([0x6c,0x6f,0x77])}),_0x940e5c[_0xbda4b2([0x74,0x68,0x65,0x6e])](()=>{_0x5a7c52||_0x50be1e(_0xbda4b2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x409702(){return _0x5cd70a[_0xbda4b2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbda4b2([0x76,0x69,0x65,0x77])][_0xbda4b2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xbda4b2([0x61,0x75,0x74,0x6f]);}function _0x591774(){_0x5cd70a[_0xbda4b2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbda4b2([0x76,0x69,0x65,0x77])][_0xbda4b2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbda4b2([0x61,0x75,0x74,0x6f]);}}function _0x5472da(_0x41f00b){const _0x5605f6=[new window[(_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aef07=>setTimeout(_0x3aef07,0xed5416f^_0x480e5a)),_0x940e5c[_0xbda4b2([0x74,0x68,0x65,0x6e])](()=>new window[(_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf14f1e=>{let _0xa4a59d=0x0;_0x5cd70a[_0xbda4b2([0x6d,0x6f,0x64,0x65,0x6c])][_0xbda4b2([0x6f,0x6e])](_0xbda4b2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c6d8a,_0x16a8fc)=>{_0x16a8fc[0x0][_0xbda4b2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa4a59d++,_0xa4a59d==(0xedc7e5b^_0x480e5a)&&(_0xf14f1e(),_0x3c6d8a[_0xbda4b2([0x6f,0x66,0x66])]());});}))];return window[_0xbda4b2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbda4b2([0x72,0x61,0x63,0x65])](_0x5605f6)[_0xbda4b2([0x74,0x68,0x65,0x6e])](()=>_0x41f00b);}async function _0x40bd2d(){await _0x940e5c,_0x5cd70a[_0xbda4b2([0x6d,0x6f,0x64,0x65,0x6c])][_0xbda4b2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd7c084,_0x5cd70a[_0xbda4b2([0x6d,0x6f,0x64,0x65,0x6c])][_0xbda4b2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd7c084,_0x5cd70a[_0xbda4b2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xbda4b2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e544a(_0x183a22){const _0x55ac23=_0x515497();_0x5cd70a[_0x55ac23]=_0xbda4b2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x183a22,_0x183a22!=_0xbda4b2([0x56,0x61,0x6c,0x69,0x64])&&_0x40bd2d();}function _0x515497(){const _0xa6af6a=window[_0xbda4b2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xbda4b2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xbda4b2([0x6e,0x6f,0x77])]())[_0xbda4b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xbda4b2([0x2e]),'');let _0x1922b8=_0xbda4b2([0x55]);for(let _0x3aa0ca=0x0;_0x3aa0ca<_0xa6af6a[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3aa0ca+=0x2){let _0x49df4c=window[_0xbda4b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa6af6a[_0xbda4b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3aa0ca,_0x3aa0ca+0x2));_0x49df4c>=_0x3f2856[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49df4c-=_0x3f2856[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1922b8+=_0x3f2856[_0x49df4c];}return _0x1922b8;}function _0x47fff3(){const _0x39e2df=_0x47f14e[_0xbda4b2([0x73,0x70,0x6c,0x69,0x74])](_0xbda4b2([0x2e]));if(0x3!=_0x39e2df[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7f487(_0x39e2df[0x1]);function _0x7f487(_0x57765b){const _0x2e1b94=_0x257e09(_0x57765b);return _0x2e1b94&&_0x52cb9b()?_0x2e1b94:null;function _0x52cb9b(){const _0x513705=_0x2e1b94[_0xbda4b2([0x6a,0x74,0x69])],_0x5c8f02=window[_0xbda4b2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x513705[_0xbda4b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x513705[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18bcad={..._0x2e1b94,[_0xbda4b2([0x6a,0x74,0x69])]:_0x513705[_0xbda4b2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x513705[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18bcad[_0xbda4b2([0x76,0x63])],_0x2e3613(_0x18bcad)==_0x5c8f02;}}}async function _0x3b7a36(){let _0xb094fa=!0x0;try{const _0x450175=_0x47f14e[_0xbda4b2([0x73,0x70,0x6c,0x69,0x74])](_0xbda4b2([0x2e])),[_0x18125b,_0x1f815f,_0xc0068f]=_0x450175;return _0x513f48(_0x18125b),await _0x25822a(_0x18125b,_0x1f815f,_0xc0068f),_0xb094fa;}catch{return!0x1;}function _0x513f48(_0x280dc1){const _0x475371=_0x257e09(_0x280dc1);_0x475371&&_0x475371[_0xbda4b2([0x61,0x6c,0x67])]==_0xbda4b2([0x45,0x53,0x32,0x35,0x36])||(_0xb094fa=!0x1);}async function _0x25822a(_0x46f6e5,_0x3b7be2,_0x2dc762){const _0x5c5ef0=window[_0xbda4b2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xbda4b2([0x66,0x72,0x6f,0x6d])](_0x4fc190(_0x2dc762),_0x199b3e=>_0x199b3e[_0xbda4b2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x159b3f=new window[(_0xbda4b2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xbda4b2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46f6e5+_0xbda4b2([0x2e])+_0x3b7be2),_0x2c6925=window[_0xbda4b2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xbda4b2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c6925)return;const _0x326ad2=await _0x2c6925[_0xbda4b2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xbda4b2([0x6a,0x77,0x6b]),_0x491614,{[_0xbda4b2([0x6e,0x61,0x6d,0x65])]:_0xbda4b2([0x45,0x43,0x44,0x53,0x41]),[_0xbda4b2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xbda4b2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xbda4b2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c6925[_0xbda4b2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xbda4b2([0x6e,0x61,0x6d,0x65])]:_0xbda4b2([0x45,0x43,0x44,0x53,0x41]),[_0xbda4b2([0x68,0x61,0x73,0x68])]:{[_0xbda4b2([0x6e,0x61,0x6d,0x65])]:_0xbda4b2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x326ad2,_0x5c5ef0,_0x159b3f)||(_0xb094fa=!0x1);}}function _0x257e09(_0x43389f){return _0x43389f[_0xbda4b2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xbda4b2([0x65,0x79]))?JSON[_0xbda4b2([0x70,0x61,0x72,0x73,0x65])](_0x4fc190(_0x43389f)):null;}function _0x4fc190(_0x48b4e7){return window[_0xbda4b2([0x61,0x74,0x6f,0x62])](_0x48b4e7[_0xbda4b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xbda4b2([0x2b]))[_0xbda4b2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xbda4b2([0x2f])));}function _0x2e3613(_0x4b6107){let _0x27e093=0x1505;function _0x1aac76(_0x52e4ae){for(let _0x149304=0x0;_0x149304<_0x52e4ae[_0xbda4b2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x149304++){const _0x100495=_0x52e4ae[_0xbda4b2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x149304);_0x27e093=(_0x27e093<<0x5)+_0x27e093+_0x100495,_0x27e093&=_0x27e093;}}function _0x135127(_0xbc9066){Array[_0xbda4b2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xbc9066)?_0xbc9066[_0xbda4b2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x135127):_0xbc9066&&typeof _0xbc9066==_0xbda4b2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xbda4b2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xbc9066)[_0xbda4b2([0x73,0x6f,0x72,0x74])]()[_0xbda4b2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10c130,_0x166419])=>{_0x1aac76(_0x10c130),_0x135127(_0x166419);}):_0x1aac76(window[_0xbda4b2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xbc9066));}return _0x135127(_0x4b6107),_0x27e093>>>0x0;}function _0x872070(_0x6a492){return _0x6a492[_0xbda4b2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xbda4b2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xbda4b2([0x30]));}function _0x494705(_0x40d263){return _0x40d263[_0xbda4b2([0x73,0x70,0x6c,0x69,0x74])]('')[_0xbda4b2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xbda4b2([0x6a,0x6f,0x69,0x6e])]('');}function _0xd7c084(){}function _0xbda4b2(_0x28a918){const _0x5082b7=_0x4a6d;return _0x28a918[_0x5082b7(0xdd)](_0x2caf80=>String[_0x5082b7(0xcd)](_0x2caf80))[_0x5082b7(0xe5)]('');}_0x2e544a(await _0x5b0877());}(this);}[_0x525748(0xa5)](){const _0x1bcc52=_0x525748,_0x9e83b8=this[_0x1bcc52(0xcb)][_0x1bcc52(0xbf)][_0x1bcc52(0xba)];_0x9e83b8[_0x1bcc52(0xdb)](_0x1bcc52(0x98))&&_0x9e83b8[_0x1bcc52(0xd7)](_0x1bcc52(0x98),{'allowAttributes':[_0x1bcc52(0xa2)]}),_0x9e83b8[_0x1bcc52(0xdb)](_0x1bcc52(0xab))&&_0x9e83b8[_0x1bcc52(0xd7)](_0x1bcc52(0xab),{'allowAttributes':[_0x1bcc52(0xa2)]});}[_0x525748(0xb3)](){const _0x27b266=_0x525748,_0x307911=this[_0x27b266(0xcb)];_0x307911[_0x27b266(0xb2)][_0x27b266(0xc3)](_0x27b266(0xdc))[_0x27b266(0x9d)]({'model':_0x27b266(0xa2),'view':_0x27b266(0xa7)}),_0x307911[_0x27b266(0xb2)][_0x27b266(0xc3)](_0x27b266(0xe1))[_0x27b266(0xa4)]({'model':{'key':_0x27b266(0xa2),'value':_0x16107f=>_0x16107f[_0x27b266(0xd4)](_0x27b266(0xa7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x210a53=_0x307911[_0x27b266(0xc9)][_0x27b266(0xe0)](_0x27b266(0xbb));_0x210a53&&this[_0x27b266(0xad)](_0x210a53,_0x27b266(0xd1),(_0x4ced55,[_0x1605a5,_0x33f4f5])=>{const _0x37cb02=_0x27b266;_0x1605a5[_0x37cb02(0x9b)](_0x37cb02(0xa2),_0x33f4f5);});}[_0x525748(0xb8)](){const _0x3f1f6e=_0x525748,_0x546c5d=this[_0x3f1f6e(0xcb)][_0x3f1f6e(0xbc)][_0x3f1f6e(0xe0)](_0x3f1f6e(0xde))||{},_0x43dd88=this[_0x3f1f6e(0xcb)][_0x3f1f6e(0xbc)][_0x3f1f6e(0xe0)](_0x3f1f6e(0xaf))||'';this[_0x3f1f6e(0x9f)]=_0x2b77a5(_0x20bebf[_0x3f1f6e(0xb7)],_0x3f1f6e(0xe3),{..._0x546c5d,'pubkey':_0x43dd88,'ctx-name':_0x3f1f6e(0xd8)+this[_0x3f1f6e(0xda)],'sourceList':'','imgOnly':_0x3f1f6e(0xa3),'removeCopyright':_0x3f1f6e(0xa3),'localeName':this[_0x3f1f6e(0xcb)][_0x3f1f6e(0xd6)][_0x3f1f6e(0x9e)],'externalSourcesEmbedCss':_0x3f1f6e(0xb0)}),this[_0x3f1f6e(0x9f)][_0x3f1f6e(0xe7)]=_0x2b36db=>{const _0x1517f3=_0x3f1f6e;if(_0x1517f3(0xc2)==_0x2b36db)return _0x1517f3(0xa9);},_0x20bebf[_0x3f1f6e(0xb7)][_0x3f1f6e(0xe9)][_0x3f1f6e(0xaa)](this[_0x3f1f6e(0x9f)]);}[_0x525748(0xce)](){const _0x4b06e5=_0x525748;this[_0x4b06e5(0xd0)]=_0x2b77a5(_0x20bebf[_0x4b06e5(0xb7)],_0x4b06e5(0xea),{'ctx-name':_0x4b06e5(0xd8)+this[_0x4b06e5(0xda)]}),_0x20bebf[_0x4b06e5(0xb7)][_0x4b06e5(0xe9)][_0x4b06e5(0xaa)](this[_0x4b06e5(0xd0)]);}[_0x525748(0xb4)](){const _0x2a4df9=_0x525748,_0x5d743b=this[_0x2a4df9(0xcb)][_0x2a4df9(0xc9)][_0x2a4df9(0xe0)](_0x2a4df9(0xec));_0x5d743b&&this[_0x2a4df9(0xad)](_0x5d743b,_0x2a4df9(0xc8),()=>{const _0x32b6b2=_0x2a4df9,_0x24a897=this[_0x32b6b2(0xcb)][_0x32b6b2(0xbf)][_0x32b6b2(0xb7)][_0x32b6b2(0xd5)][_0x32b6b2(0xe4)]();_0x24a897&&_0x24a897[_0x32b6b2(0xd4)](_0x32b6b2(0xa2))&&this[_0x32b6b2(0xcb)][_0x32b6b2(0xac)][_0x32b6b2(0xca)][_0x32b6b2(0xc6)](_0x32b6b2(0xcf),()=>{const _0x390963=_0x32b6b2;_0x1f7017(this[_0x390963(0xcb)],_0x24a897);});});const _0x2ddfc6=this[_0x2a4df9(0xcb)][_0x2a4df9(0xc9)][_0x2a4df9(0xe0)](_0x2a4df9(0xa6));_0x2ddfc6&&this[_0x2a4df9(0xad)](_0x2ddfc6,_0x2a4df9(0xc8),()=>{const _0x3aed0c=_0x2a4df9,_0x415493=this[_0x3aed0c(0xcb)][_0x3aed0c(0xbf)][_0x3aed0c(0xb7)][_0x3aed0c(0xd5)][_0x3aed0c(0xe4)]();_0x415493&&_0x415493[_0x3aed0c(0xd4)](_0x3aed0c(0xa2))&&this[_0x3aed0c(0xcb)][_0x3aed0c(0xac)][_0x3aed0c(0xca)][_0x3aed0c(0xc6)](_0x3aed0c(0xcf),()=>{const _0x4e7763=_0x3aed0c;_0x1f7017(this[_0x4e7763(0xcb)],_0x415493);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0xa3e9b0,ObservableMixin as _0x2e33fc}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4e066b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2694b0}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4b8aae}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xb4b398}from'../../utils/uploadutils.js';import{getImageUrls as _0x37ddb0,getImageDimension as _0x73c831}from'../../utils/editingutils.js';import{isAncestor as _0x4e21a8}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2e33fc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x551a43,_0x2655f6,_0x14ac41){super(),this['_editor']=_0x551a43,this['_dialog']=_0x2655f6,this['_imageElement']=_0x14ac41,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 _0x5a96e4=this['_imageElement'],_0x1a0561=_0x5a96e4['getAttribute']('uploadcareImageId'),_0x1e54ed=_0x5a96e4['getAttribute']('src');if(_0x1a0561)await this['_loadImageInfo'](_0x1a0561,_0x1e54ed);else{if(this['_imageCache']['has'](_0x1e54ed)){const _0x53c27a=this['_imageCache']['get'](_0x1e54ed);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53c27a['url'],this['imageDimension']=_0x53c27a['dimension'],this['imageId']=_0x53c27a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x6813ee}=this['_editor'],t=_0x6813ee['t'],_0x4dd16b=new _0x4b8aae(_0x6813ee,this['imageStatus'],this['_attributes']);_0x4dd16b['bind']('status')['to'](this,'imageStatus'),_0x4dd16b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4dd16b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4dd16b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4dd16b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2694b0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4dd16b,'position':_0x4e066b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4dd16b['focus']();},'onHide':()=>{_0x4dd16b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e2795=>!_0x4e21a8(_0x5e2795,_0x4dd16b['element'])}});}['_loadImageInfo'](_0x584dc3,_0x2ebd54){return _0xb4b398['getInfo'](_0x584dc3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x52a82a=>{const {width:_0x9c4456,height:_0x3875f0}=_0x52a82a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ebd54,this['imageDimension']={'width':_0x9c4456,'height':_0x3875f0},this['imageId']=_0x584dc3;})['catch'](_0x21790f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x21790f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x12cc16,_0x3791f5){return this['_getImageAsFile'](_0x12cc16)['then'](_0xcb54a9=>_0xb4b398['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3791f5['signal'],'file':_0xcb54a9,'onProgress':_0x5ac106=>{_0x5ac106&&_0x5ac106['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5ac106['value']));}}))['then'](_0x15c5a2=>{const {width:_0xa3a7f,height:_0xd9667f}=_0x15c5a2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15c5a2['cdnUrl'],this['imageDimension']={'width':_0xa3a7f,'height':_0xd9667f},this['imageId']=_0x15c5a2['uuid'],this['imageUploadProgress']=null;const _0x39f2b9=_0x12cc16['getAttribute']('src');this['_imageCache']['set'](_0x39f2b9,{'id':_0x15c5a2['uuid'],'url':_0x15c5a2['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x525110=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x525110['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3530ee,_0x5e48a1){_0x3530ee['on']('apply',(_0xdbe954,_0x4661c0)=>{this['_replaceImage'](_0x5e48a1,_0x4661c0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3530ee['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3530ee['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x549119,_0x564473,_0x6dcb15){const _0xce8dac=this['_editor'],{width:_0xfaa2be,height:_0x514888}=_0x73c831(_0x564473,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x58caf7,imageSources:_0x212081}=_0x37ddb0(_0x564473,_0xfaa2be);_0xce8dac['model']['change'](_0x113573=>{if('$graveyard'===_0x549119['root']['rootName']){_0xce8dac['execute']('insertImage',{'imageType':_0x549119['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x549119['getAttributes']()),'uploadcareImageId':_0x6dcb15,'src':_0x58caf7,'sources':_0x212081,'width':_0xfaa2be,'height':_0x514888}});const _0x133505=_0x549119['getChildren']();_0x549119=_0xce8dac['model']['document']['selection']['getSelectedElement']();for(const _0x2caf76 of _0x133505)_0x113573['append'](_0x113573['cloneElement'](_0x2caf76),_0x549119);}else _0x113573['setSelection'](_0x549119,'on'),_0xce8dac['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x549119['getAttributes']()),'uploadcareImageId':_0x6dcb15,'src':_0x58caf7,'sources':_0x212081,'width':_0xfaa2be,'height':_0x514888},_0x549119);_0x113573['setSelection'](_0x549119,'on');});}async['_getImageAsFile'](_0x5161c5){const _0x1bc4ee=_0xa3e9b0['window'],_0xbfa49d=_0xa3e9b0['document']['location']['href'],_0x10ab4c=new _0x1bc4ee['URL'](_0x5161c5['getAttribute']('src'),_0xbfa49d);if('data:'===_0x10ab4c['protocol']){const _0x3bda90=_0x10ab4c['href']['split'](','),_0x2c725a=_0x3bda90[0x0]['match'](/:(.*?);/)[0x1],_0x508810=_0x2c725a['split']('/')[0x1],_0x2f5506=_0x1bc4ee['atob'](_0x3bda90[_0x3bda90['length']-0x1]);let _0x2b43da=_0x2f5506['length'];const _0x3cbcf6=new _0x1bc4ee['Uint8Array'](_0x2b43da);for(;_0x2b43da--;)_0x3cbcf6[_0x2b43da]=_0x2f5506['charCodeAt'](_0x2b43da);return new _0x1bc4ee['File']([_0x3cbcf6],'image.'+_0x508810,{'type':_0x2c725a});}const _0x4cdd3d=_0x10ab4c['href']['split']('/'),_0x3a62ca=_0x4cdd3d[_0x4cdd3d['length']-0x1],_0x3366cf=_0x3a62ca['split']('.')[0x1];return _0x1bc4ee['fetch'](_0x10ab4c['href'])['then'](_0x414af2=>_0x414af2['clone']()['blob']())['then'](_0x26a856=>new _0x1bc4ee['File']([_0x26a856],_0x3a62ca,{'type':'image/'+_0x3366cf}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x31c2(_0x2ebc77,_0x1e12ef){const _0x42cc08=_0x42cc();return _0x31c2=function(_0x31c290,_0x85ddab){_0x31c290=_0x31c290-0x147;let _0x4977b5=_0x42cc08[_0x31c290];return _0x4977b5;},_0x31c2(_0x2ebc77,_0x1e12ef);}(function(_0x54e722,_0x30ef32){const _0x59b2fe=_0x31c2,_0x213281=_0x54e722();while(!![]){try{const _0x3cb890=parseInt(_0x59b2fe(0x150))/0x1+parseInt(_0x59b2fe(0x14a))/0x2+parseInt(_0x59b2fe(0x152))/0x3+parseInt(_0x59b2fe(0x149))/0x4*(-parseInt(_0x59b2fe(0x147))/0x5)+-parseInt(_0x59b2fe(0x151))/0x6+-parseInt(_0x59b2fe(0x155))/0x7+parseInt(_0x59b2fe(0x148))/0x8;if(_0x3cb890===_0x30ef32)break;else _0x213281['push'](_0x213281['shift']());}catch(_0x5d0ae6){_0x213281['push'](_0x213281['shift']());}}}(_0x42cc,0x93290));import{View as _0x111853}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x111853{constructor(_0x5ad8ea,_0x2a1ddd){const _0x181fa8=_0x31c2;super(_0x5ad8ea);const _0x407aa1=this[_0x181fa8(0x153)];this[_0x181fa8(0x154)](_0x181fa8(0x14e),''),this[_0x181fa8(0x14c)]({'tag':_0x181fa8(0x156),'attributes':{..._0x2a1ddd,'class':[_0x181fa8(0x14d),_0x181fa8(0x14f)],'ctx-name':_0x181fa8(0x14b),'cdn-url':_0x407aa1['to'](_0x181fa8(0x14e))}});}}function _0x42cc(){const _0x5b7516=['20226728SZVeLe','4bWHLke','1822ZNAKdO','image-edit','setTemplate','uc-light','imageSrc','ck-uploadcare-theme','37119lLqOCH','2787654vqJNlF','1849224zSCNBC','bindTemplate','set','6690040IwgZdv','uc-cloud-image-editor','5798410pfNFJd'];_0x42cc=function(){return _0x5b7516;};return _0x42cc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2b25d3}from'ckeditor5/src/icons.js';import{ButtonView as _0x3ed5b6,IconView as _0x233c9f,View as _0x16c742}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x16c742{constructor(_0x4099bf){super(_0x4099bf);const t=_0x4099bf['t'];this['set']('errorType',null);const _0x1a3df0=new _0x3ed5b6(_0x4099bf);_0x1a3df0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1a3df0['withText']=!0x0,_0x1a3df0['class']='ck-button-action',_0x1a3df0['on']('execute',()=>{this['fire']('retry');}),_0x1a3df0['bind']('isVisible')['to'](this,'errorType',_0x59fe97=>'NotFound'!==_0x59fe97);const _0xc8dab1=new _0x233c9f();_0xc8dab1['content']=_0x2b25d3,_0xc8dab1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x18a201=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':[_0xc8dab1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x18a201['to']('errorType',_0xfb37a4=>t('NotFound'!==_0xfb37a4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1a3df0]},{'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 _0x1642ec,View as _0x1f5ac9}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1f5ac9{constructor(_0x453575){super(_0x453575);const t=_0x453575['t'],_0x4938df=this['bindTemplate'],_0x167b29=new _0x1642ec();_0x167b29['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':[_0x167b29,{'text':_0x4938df['to']('imageUploadProgress',_0x2d941e=>t('Loading\x20image...')+'\x20('+(_0x2d941e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3653a=_0x4e9e;(function(_0xbe0c76,_0x21aff7){const _0xc2344b=_0x4e9e,_0x361802=_0xbe0c76();while(!![]){try{const _0x5c7766=parseInt(_0xc2344b(0xc3))/0x1+parseInt(_0xc2344b(0xdb))/0x2*(-parseInt(_0xc2344b(0xdc))/0x3)+-parseInt(_0xc2344b(0xd8))/0x4+parseInt(_0xc2344b(0xc2))/0x5+-parseInt(_0xc2344b(0xb4))/0x6+parseInt(_0xc2344b(0xd1))/0x7+-parseInt(_0xc2344b(0xc8))/0x8*(-parseInt(_0xc2344b(0xb9))/0x9);if(_0x5c7766===_0x21aff7)break;else _0x361802['push'](_0x361802['shift']());}catch(_0x3b9b1f){_0x361802['push'](_0x361802['shift']());}}}(_0x3adb,0x3a15c));function _0x4e9e(_0x2ea49b,_0x531f92){const _0x3adbfe=_0x3adb();return _0x4e9e=function(_0x4e9ec4,_0x2a696e){_0x4e9ec4=_0x4e9ec4-0xb3;let _0x30563a=_0x3adbfe[_0x4e9ec4];return _0x30563a;},_0x4e9e(_0x2ea49b,_0x531f92);}import{View as _0x195132}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x9572f5}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x1a9bd0}from'./uploadcareimageeditformerrorview.js';function _0x3adb(){const _0x43efd6=['nodeName','_errorView','getFocusableElement','fire','apply','1416100yPkfUD','35636LljKQS','_focusableView','error','div','ck-reset_all-excluded','138440TvEuWe','render','addedNodes','_items','uploading','addEventListener','change:status','setTemplate','ready','2848195nfoouc','disconnect','status','once','length','addMany','clear','589908lmzZPT','filter','_loadingView','526unplqI','1191zOEJTM','cdnUrl','detail','_editingView','element','add','_setView','retry','querySelector','uc-cloud-image-editor','cancel','focus','observe','set','1727112Uoilei','ck-uploadcare-form','_waitForImageEditorComponent','_addErrorViewListeners','createCollection','27LmoTAn','_addUploadcareImageEditorListeners','toLowerCase','target'];_0x3adb=function(){return _0x43efd6;};return _0x3adb();}import{UploadcareImageEditFormEditingView as _0x5bdc98}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4efe36}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4efe36{[_0x3653a(0xcb)];[_0x3653a(0xda)];[_0x3653a(0xbe)];[_0x3653a(0xdf)];[_0x3653a(0xc4)];constructor(_0x389db3,_0x8f42c1,_0x43d2dc){const _0x2c3633=_0x3653a;super(_0x389db3),this[_0x2c3633(0xcb)]=this[_0x2c3633(0xb8)](),this[_0x2c3633(0xda)]=new _0x9572f5(_0x389db3),this[_0x2c3633(0xbe)]=new _0x1a9bd0(_0x389db3),this[_0x2c3633(0xdf)]=new _0x5bdc98(_0x389db3,_0x43d2dc),this[_0x2c3633(0xc4)]=new _0x195132(_0x389db3),this[_0x2c3633(0xc4)][_0x2c3633(0xcf)](this[_0x2c3633(0xbf)]()),this[_0x2c3633(0xb3)](_0x2c3633(0xd3),_0x8f42c1),this[_0x2c3633(0xcf)]({'tag':_0x2c3633(0xc6),'attributes':{'class':['ck',_0x2c3633(0xc7),_0x2c3633(0xb5)],'tabindex':'-1'},'children':this[_0x2c3633(0xcb)]}),this[_0x2c3633(0xe2)](),this[_0x2c3633(0xd4)](_0x2c3633(0xc9),()=>{const _0x51bad2=_0x2c3633;this[_0x51bad2(0xb6)](this[_0x51bad2(0xe0)],_0x87a59c=>{const _0x10181c=_0x51bad2;this[_0x10181c(0xba)](_0x87a59c);});}),this['on'](_0x2c3633(0xce),()=>{const _0x52c0ce=_0x2c3633;this[_0x52c0ce(0xe2)]();}),this[_0x2c3633(0xb7)]();}[_0x3653a(0xe7)](){const _0x1b89a4=_0x3653a;this[_0x1b89a4(0xe0)][_0x1b89a4(0xe7)]();}[_0x3653a(0xe2)](){const _0x47a90c=_0x3653a;switch(this[_0x47a90c(0xcb)][_0x47a90c(0xd7)](),this[_0x47a90c(0xd3)]){case _0x47a90c(0xcc):this[_0x47a90c(0xcb)][_0x47a90c(0xe1)](this[_0x47a90c(0xda)]);break;case _0x47a90c(0xc5):this[_0x47a90c(0xcb)][_0x47a90c(0xe1)](this[_0x47a90c(0xbe)]);break;case _0x47a90c(0xd0):this[_0x47a90c(0xcb)][_0x47a90c(0xd6)]([this[_0x47a90c(0xdf)],this[_0x47a90c(0xc4)]]);}}[_0x3653a(0xb6)](_0x2f97cd,_0x543967){const _0x3ba7c5=_0x3653a,_0x15ac6b=_0x3ba7c5(0xe5),_0x175f32=_0x2f97cd[_0x3ba7c5(0xe4)](_0x15ac6b);if(_0x175f32)return _0x543967(_0x175f32);const _0x4fabb3=new MutationObserver(_0x469156=>{const _0x570a74=_0x3ba7c5,_0x29be71=_0x469156[_0x570a74(0xd9)](_0x4bcb75=>_0x4bcb75[_0x570a74(0xbc)]===_0x2f97cd&&_0x4bcb75[_0x570a74(0xca)][_0x570a74(0xd5)]>0x0&&_0x4bcb75[_0x570a74(0xca)][0x0][_0x570a74(0xbd)][_0x570a74(0xbb)]()===_0x15ac6b);_0x29be71[_0x570a74(0xd5)]&&(_0x4fabb3[_0x570a74(0xd2)](),_0x543967(_0x29be71[0x0][_0x570a74(0xca)][0x0]));});_0x4fabb3[_0x3ba7c5(0xe8)](_0x2f97cd,{'childList':!0x0,'subtree':!0x0});}[_0x3653a(0xba)](_0x28cd3b){const _0x561eb4=_0x3653a;_0x28cd3b[_0x561eb4(0xcd)](_0x561eb4(0xc1),_0x4f26d1=>{const _0x5317b2=_0x561eb4;this[_0x5317b2(0xc0)](_0x5317b2(0xc1),{'imageSrc':_0x4f26d1[_0x5317b2(0xde)][_0x5317b2(0xdd)]});}),_0x28cd3b[_0x561eb4(0xcd)](_0x561eb4(0xe6),()=>{const _0x43e93e=_0x561eb4;this[_0x43e93e(0xc0)](_0x43e93e(0xe6));});}[_0x3653a(0xb7)](){const _0x25fe64=_0x3653a;this[_0x25fe64(0xbe)]['on'](_0x25fe64(0xe3),()=>{const _0x1d1f5f=_0x25fe64;this[_0x1d1f5f(0xc0)](_0x1d1f5f(0xe3));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x204a63=_0x24fe;(function(_0x2e3503,_0x154fa4){const _0x373a03=_0x24fe,_0x5a657e=_0x2e3503();while(!![]){try{const _0x4a1676=-parseInt(_0x373a03(0x154))/0x1+-parseInt(_0x373a03(0x14a))/0x2+-parseInt(_0x373a03(0x14d))/0x3+parseInt(_0x373a03(0x15c))/0x4+parseInt(_0x373a03(0x149))/0x5+-parseInt(_0x373a03(0x143))/0x6*(parseInt(_0x373a03(0x14f))/0x7)+-parseInt(_0x373a03(0x14c))/0x8*(-parseInt(_0x373a03(0x142))/0x9);if(_0x4a1676===_0x154fa4)break;else _0x5a657e['push'](_0x5a657e['shift']());}catch(_0x3d5edd){_0x5a657e['push'](_0x5a657e['shift']());}}}(_0xd97d,0x2e3b8));import{Command as _0x2afc12}from'ckeditor5/src/core.js';import{Dialog as _0x2bd37e}from'ckeditor5/src/ui.js';function _0x24fe(_0x38631e,_0x2ef099){const _0xd97da7=_0xd97d();return _0x24fe=function(_0x24fe60,_0x5b6941){_0x24fe60=_0x24fe60-0x140;let _0xa4d614=_0xd97da7[_0x24fe60];return _0xa4d614;},_0x24fe(_0x38631e,_0x2ef099);}import{UploadcareImageEditController as _0x3e8fb2}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1b9d02}from'../utils/editingutils.js';function _0xd97d(){const _0x57ff41=['refresh','plugins','unbind','editor','366445pFJdNg','isActive','config','bind','element','isEnabled','imageBlock','imageInline','810324GLWigk','getSelectedElement','get','execute','selection','3035079xWZACL','23352KNKmdN','_isEditable','uploadcare.allowExternalImagesEditing','set','imageEditController','model','563020HihdfR','141846EnvVvG','requires','16MvRewh','294765tanvtQ','document','476PMUsKn'];_0xd97d=function(){return _0x57ff41;};return _0xd97d();}export class UploadcareImageEditCommand extends _0x2afc12{[_0x204a63(0x147)];static get[_0x204a63(0x14b)](){return[_0x2bd37e];}[_0x204a63(0x144)];constructor(_0x115feb){const _0x4f0792=_0x204a63;super(_0x115feb),this[_0x4f0792(0x147)]=void 0x0,this[_0x4f0792(0x144)]=_0x1b9d02(_0x115feb[_0x4f0792(0x156)][_0x4f0792(0x15e)](_0x4f0792(0x145))||[]),this[_0x4f0792(0x146)]({'isActive':!0x1});}[_0x204a63(0x150)](){const _0x1f05e8=_0x204a63,_0x1a2830=this[_0x1f05e8(0x153)][_0x1f05e8(0x148)][_0x1f05e8(0x14e)][_0x1f05e8(0x141)][_0x1f05e8(0x15d)]();this[_0x1f05e8(0x159)]=this[_0x1f05e8(0x144)](_0x1a2830);}[_0x204a63(0x140)](){const _0x12ea3d=_0x204a63;this[_0x12ea3d(0x147)]&&(this[_0x12ea3d(0x152)](_0x12ea3d(0x155)),this[_0x12ea3d(0x147)]=void 0x0);const _0x5907c6=this[_0x12ea3d(0x153)][_0x12ea3d(0x148)][_0x12ea3d(0x14e)][_0x12ea3d(0x141)][_0x12ea3d(0x15d)]();_0x5907c6&&(_0x5907c6['is'](_0x12ea3d(0x158),_0x12ea3d(0x15a))||_0x5907c6['is'](_0x12ea3d(0x158),_0x12ea3d(0x15b)))&&(this[_0x12ea3d(0x147)]=new _0x3e8fb2(this[_0x12ea3d(0x153)],this[_0x12ea3d(0x153)][_0x12ea3d(0x151)][_0x12ea3d(0x15e)](_0x2bd37e),_0x5907c6),this[_0x12ea3d(0x157)](_0x12ea3d(0x155))['to'](this[_0x12ea3d(0x147)],_0x12ea3d(0x155)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x76e2(_0x1bbc31,_0x17ff9d){const _0x13646f=_0x1364();return _0x76e2=function(_0x76e23d,_0x45ce6b){_0x76e23d=_0x76e23d-0x1f1;let _0x477e5f=_0x13646f[_0x76e23d];return _0x477e5f;},_0x76e2(_0x1bbc31,_0x17ff9d);}const _0x53b858=_0x76e2;(function(_0x59a7e6,_0x889318){const _0x5daff3=_0x76e2,_0x23f2cb=_0x59a7e6();while(!![]){try{const _0x2ebf3a=-parseInt(_0x5daff3(0x1f1))/0x1+parseInt(_0x5daff3(0x201))/0x2+parseInt(_0x5daff3(0x1f9))/0x3+-parseInt(_0x5daff3(0x1fe))/0x4*(-parseInt(_0x5daff3(0x205))/0x5)+-parseInt(_0x5daff3(0x202))/0x6+parseInt(_0x5daff3(0x1f2))/0x7*(parseInt(_0x5daff3(0x1fb))/0x8)+-parseInt(_0x5daff3(0x1fc))/0x9;if(_0x2ebf3a===_0x889318)break;else _0x23f2cb['push'](_0x23f2cb['shift']());}catch(_0x1b8be8){_0x23f2cb['push'](_0x23f2cb['shift']());}}}(_0x1364,0x24fdd));import{Plugin as _0x42c65f}from'ckeditor5/src/core.js';import{Notification as _0x2152c6}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x146c86}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x34fa9f}from'./uploadcareimagereplacecommand.js';function _0x1364(){const _0x3b8779=['UploadcareImageEditEditing','9930ZotYSN','add','8mfFIsO','260685RujxRY','uploadcareImageReplace','12KBkBll','ImageUtils','commands','54212rkWFvj','180882nfAQFa','isOfficialPlugin','init','254245VYElrc','187751qkXmdq','1507919iyvsWv','ImageEditing','requires','uploadcareImageEdit','isPremiumPlugin','pluginName'];_0x1364=function(){return _0x3b8779;};return _0x1364();}import{UploadcareEditing as _0x319861}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x42c65f{static get[_0x53b858(0x1f7)](){const _0x3185dc=_0x53b858;return _0x3185dc(0x1f8);}static get[_0x53b858(0x1f4)](){const _0x34fffb=_0x53b858;return[_0x319861,_0x2152c6,_0x34fffb(0x1ff),_0x34fffb(0x1f3)];}static get[_0x53b858(0x203)](){return!0x0;}static get[_0x53b858(0x1f6)](){return!0x0;}[_0x53b858(0x204)](){const _0x116b9d=_0x53b858,{editor:_0x26f5e9}=this;_0x26f5e9[_0x116b9d(0x200)][_0x116b9d(0x1fa)](_0x116b9d(0x1f5),new _0x146c86(_0x26f5e9)),_0x26f5e9[_0x116b9d(0x200)][_0x116b9d(0x1fa)](_0x116b9d(0x1fd),new _0x34fa9f(_0x26f5e9));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x442877}from'ckeditor5/src/core.js';import{ButtonView as _0x1ff7ba}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x122721}from'ckeditor5/src/icons.js';import{createElement as _0x3dde1e}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 _0x442877{['_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 _0x592501=this['editor'];_0x592501['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3e4fa6=>{const _0x48ed17=_0x592501['commands']['get']('uploadcareImageEdit'),_0x52fbe8=new _0x1ff7ba(_0x3e4fa6),t=_0x3e4fa6['t'];return _0x52fbe8['set']({'icon':_0x122721,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x52fbe8['bind']('isEnabled')['to'](_0x48ed17),_0x52fbe8['bind']('isOn')['to'](_0x48ed17,'isActive'),this['listenTo'](_0x52fbe8,'execute',()=>{_0x592501['execute']('uploadcareImageEdit'),_0x592501['editing']['view']['focus']();}),_0x52fbe8;}),this['_initConfig']();}['_initConfig'](){const _0x3f9d19=_0x3dde1e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3f9d19),this['listenTo'](this['editor'],'destroy',()=>{_0x3f9d19['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x21f4(_0x580086,_0x4a0f3e){const _0x44ae5f=_0x44ae();return _0x21f4=function(_0x21f471,_0x85438c){_0x21f471=_0x21f471-0xc7;let _0x1388c8=_0x44ae5f[_0x21f471];return _0x1388c8;},_0x21f4(_0x580086,_0x4a0f3e);}const _0x239ebb=_0x21f4;(function(_0x53388e,_0x1c6814){const _0x209223=_0x21f4,_0x36b4b8=_0x53388e();while(!![]){try{const _0x2ac32d=parseInt(_0x209223(0xd8))/0x1*(-parseInt(_0x209223(0xcf))/0x2)+-parseInt(_0x209223(0xd3))/0x3+parseInt(_0x209223(0xd1))/0x4+-parseInt(_0x209223(0xc9))/0x5+parseInt(_0x209223(0xd0))/0x6+parseInt(_0x209223(0xdb))/0x7*(-parseInt(_0x209223(0xce))/0x8)+parseInt(_0x209223(0xd7))/0x9*(parseInt(_0x209223(0xda))/0xa);if(_0x2ac32d===_0x1c6814)break;else _0x36b4b8['push'](_0x36b4b8['shift']());}catch(_0x31b515){_0x36b4b8['push'](_0x36b4b8['shift']());}}}(_0x44ae,0xe3a6d));import{Command as _0x552232}from'ckeditor5/src/core.js';function _0x44ae(){const _0x21995f=['5198304wxuwTL','5388240cUsEAg','isEnabled','4580082uUgARU','srcset','getSelectedElement','imageInline','145611TOGphW','310521mneQFp','sizes','2690MkxfkS','9193919jkWRUG','imageBlock','setAttributes','refresh','document','element','removeAttribute','selection','4649485okpvek','change','model','editor','execute','8eKDOkB','12PgYMCI'];_0x44ae=function(){return _0x21995f;};return _0x44ae();}export class UploadcareImageReplaceCommand extends _0x552232{[_0x239ebb(0xde)](){const _0x201957=_0x239ebb,_0x5c47ed=this[_0x201957(0xcc)][_0x201957(0xcb)][_0x201957(0xdf)][_0x201957(0xc8)][_0x201957(0xd5)]();this[_0x201957(0xd2)]=Boolean(_0x5c47ed&&(_0x5c47ed['is'](_0x201957(0xe0),_0x201957(0xdc))||_0x5c47ed['is'](_0x201957(0xe0),_0x201957(0xd6))));}[_0x239ebb(0xcd)](_0x4a13ab){const _0x36192f=_0x239ebb,_0x180bac=this[_0x36192f(0xcc)][_0x36192f(0xcb)][_0x36192f(0xdf)][_0x36192f(0xc8)][_0x36192f(0xd5)]();this[_0x36192f(0xcc)][_0x36192f(0xcb)][_0x36192f(0xca)](_0x5382e4=>{const _0x5bef87=_0x36192f;_0x5382e4[_0x5bef87(0xdd)](_0x4a13ab,_0x180bac),_0x5382e4[_0x5bef87(0xc7)](_0x5bef87(0xd4),_0x180bac),_0x5382e4[_0x5bef87(0xc7)](_0x5bef87(0xd9),_0x180bac);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x10958e=_0x27c1;function _0x27c1(_0x530e77,_0x25a8c4){var _0x5841d9=_0x5841();return _0x27c1=function(_0x27c15d,_0x53ba34){_0x27c15d=_0x27c15d-0x103;var _0x1ce55d=_0x5841d9[_0x27c15d];return _0x1ce55d;},_0x27c1(_0x530e77,_0x25a8c4);}(function(_0x48b4bd,_0x150b30){var _0x16b9de=_0x27c1,_0x491ff6=_0x48b4bd();while(!![]){try{var _0x18faec=parseInt(_0x16b9de(0x106))/0x1*(parseInt(_0x16b9de(0x105))/0x2)+parseInt(_0x16b9de(0x10c))/0x3+-parseInt(_0x16b9de(0x10a))/0x4+-parseInt(_0x16b9de(0x109))/0x5*(parseInt(_0x16b9de(0x104))/0x6)+parseInt(_0x16b9de(0x10e))/0x7*(-parseInt(_0x16b9de(0x110))/0x8)+parseInt(_0x16b9de(0x10d))/0x9+parseInt(_0x16b9de(0x103))/0xa*(parseInt(_0x16b9de(0x112))/0xb);if(_0x18faec===_0x150b30)break;else _0x491ff6['push'](_0x491ff6['shift']());}catch(_0x3797af){_0x491ff6['push'](_0x491ff6['shift']());}}}(_0x5841,0x2073f));function _0x5841(){var _0x5e72cd=['15eFQmfg','665100qvcavl','UploadcareImageEdit','614355gucwee','721332GZgEbu','127456kFgVTB','isOfficialPlugin','56sFBIJa','isPremiumPlugin','10076CeSPpm','610lsDgQY','249270FWFapl','210484YrSjeE','2btnxMO','pluginName','requires'];_0x5841=function(){return _0x5e72cd;};return _0x5841();}import{Plugin as _0x28c4ee}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x2c9533}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x9d57dc}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x28c4ee{static get[_0x10958e(0x107)](){var _0x4dfb89=_0x10958e;return _0x4dfb89(0x10b);}static get[_0x10958e(0x108)](){return[_0x2c9533,_0x9d57dc];}static get[_0x10958e(0x10f)](){return!0x0;}static get[_0x10958e(0x111)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5747(){const _0xf9d7a8=['trialLimit','268vdoCDm','_createButton','url','featureNotAllowed','get','uploadcare.uploader.sourceList','63rddxvL','15741540NpUCtX','commands','isEnabled','uploadcareLicenseKeyTrialLimit','licenseKey','has','config','URL','destroy','init','Local','_licenseKeyCheckInterval','Uploadcare','_createMenuBarButtons','150114ZrTiRy','uploadcareLicenseKeyEvaluationLimit','Replace','Insert','uploadcareLicenseKeyNotAllowed','_createDropdownButtons','expired','registerIntegration','execute','upload','ImageInsertUI','editor','13119DMvbnk','isPremiumPlugin','evaluationLimit','map','invalid','_showLicenseError','13768579AxvKQl','text','uploadcareLicenseKeyDomainLimit','Facebook','_normalizeConfigSourceList','locale','forEach','5854JoKBTf','isOfficialPlugin','GPhotos','GDrive','afterInit','UploadcareUI','209115KFnJUh','bind','entries','OneDrive','136tDHXJm','uploadcare','pluginName','shortText','label','assetManager','uploadcareLicenseKeyExpired','withText','10ehGuNr','push','Dropbox','_getIntegrationKey','1394520UAFlYr','_createToolbarButton','domainLimit','uploadcareLicenseKeyValid','type','isImageSelected','usageLimit','plugins','uploadcareLicenseKeyUsageLimit','icon','tooltip','reduce','uploadcareLicenseKeyInvalid','1004CqyoPq'];_0x5747=function(){return _0xf9d7a8;};return _0x5747();}const _0x5d1ac9=_0x2e34;(function(_0x44a972,_0x552112){const _0x199c6c=_0x2e34,_0x69c50=_0x44a972();while(!![]){try{const _0x6fcaa2=-parseInt(_0x199c6c(0xb7))/0x1*(parseInt(_0x199c6c(0xdc))/0x2)+-parseInt(_0x199c6c(0xaa))/0x3*(-parseInt(_0x199c6c(0xda))/0x4)+parseInt(_0x199c6c(0xcd))/0x5+parseInt(_0x199c6c(0xf1))/0x6*(-parseInt(_0x199c6c(0xe2))/0x7)+-parseInt(_0x199c6c(0xc1))/0x8*(-parseInt(_0x199c6c(0xbd))/0x9)+-parseInt(_0x199c6c(0xc9))/0xa*(parseInt(_0x199c6c(0xb0))/0xb)+parseInt(_0x199c6c(0xe3))/0xc;if(_0x6fcaa2===_0x552112)break;else _0x69c50['push'](_0x69c50['shift']());}catch(_0x11cbd7){_0x69c50['push'](_0x69c50['shift']());}}}(_0x5747,0xc8b05));import{Plugin as _0x16bd89}from'ckeditor5/src/core.js';import{IconDropbox as _0x2c680c,IconFacebook as _0x429e82,IconGoogleDrive as _0x461b5f,IconGooglePhotos as _0x151ec7,IconUploadcareImageUpload as _0xf364e9,IconUploadcareLink as _0x18c21b,IconOneDrive as _0x18f3a2}from'ckeditor5/src/icons.js';import{ButtonView as _0x568388,MenuBarMenuListItemButtonView as _0x4623a0}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x1b1cf4}from'./uploadcareconfig.js';import{getTranslation as _0x166142}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';function _0x2e34(_0x19fb5e,_0x10b82b){const _0x574762=_0x5747();return _0x2e34=function(_0x2e3459,_0x4dc5eb){_0x2e3459=_0x2e3459-0xa7;let _0x4b4c13=_0x574762[_0x2e3459];return _0x4b4c13;},_0x2e34(_0x19fb5e,_0x10b82b);}export class UploadcareUI extends _0x16bd89{[_0x5d1ac9(0xe7)];[_0x5d1ac9(0xee)];static get[_0x5d1ac9(0xc3)](){const _0x1ce311=_0x5d1ac9;return _0x1ce311(0xbc);}static get[_0x5d1ac9(0xb8)](){return!0x0;}static get[_0x5d1ac9(0xab)](){return!0x0;}[_0x5d1ac9(0xec)](){const _0x35418d=_0x5d1ac9;this[_0x35418d(0xe7)]=this[_0x35418d(0xa9)][_0x35418d(0xe9)][_0x35418d(0xe0)](_0x35418d(0xe7));const _0x4f1222=this[_0x35418d(0xa9)];this[_0x35418d(0xee)]=setInterval(()=>{const _0x49ee5d=_0x35418d;let _0x5ea7cd;for(const _0x246055 in _0x4f1222){const _0x599cf3=_0x246055,_0x16894a=_0x4f1222[_0x599cf3];if(_0x49ee5d(0xd0)==_0x16894a||_0x49ee5d(0xd9)==_0x16894a||_0x49ee5d(0xc7)==_0x16894a||_0x49ee5d(0xb2)==_0x16894a||_0x49ee5d(0xf5)==_0x16894a||_0x49ee5d(0xf2)==_0x16894a||_0x49ee5d(0xe6)==_0x16894a||_0x49ee5d(0xd5)==_0x16894a){delete _0x4f1222[_0x599cf3],_0x5ea7cd=_0x16894a,clearInterval(this[_0x49ee5d(0xee)]),this[_0x49ee5d(0xee)]=void 0x0;break;}}_0x49ee5d(0xd9)==_0x5ea7cd&&_0x4f1222[_0x49ee5d(0xaf)](_0x49ee5d(0xae)),_0x49ee5d(0xc7)==_0x5ea7cd&&_0x4f1222[_0x49ee5d(0xaf)](_0x49ee5d(0xf7)),_0x49ee5d(0xb2)==_0x5ea7cd&&_0x4f1222[_0x49ee5d(0xaf)](_0x49ee5d(0xcf)),_0x49ee5d(0xf5)==_0x5ea7cd&&_0x4f1222[_0x49ee5d(0xaf)](_0x49ee5d(0xdf),_0x49ee5d(0xef)),_0x49ee5d(0xf2)==_0x5ea7cd&&_0x4f1222[_0x49ee5d(0xaf)](_0x49ee5d(0xac)),_0x49ee5d(0xe6)==_0x5ea7cd&&_0x4f1222[_0x49ee5d(0xaf)](_0x49ee5d(0xdb)),_0x49ee5d(0xd5)==_0x5ea7cd&&_0x4f1222[_0x49ee5d(0xaf)](_0x49ee5d(0xd3));},0x3e8);}[_0x5d1ac9(0xbb)](){const _0x219908=_0x5d1ac9,{editor:_0x58e4ac}=this,_0x4c511a=_0x58e4ac[_0x219908(0xe4)][_0x219908(0xe0)](_0x219908(0xc2));if(!_0x4c511a)return;const _0x2819e8=this[_0x219908(0xb4)](_0x58e4ac[_0x219908(0xe9)][_0x219908(0xe0)](_0x219908(0xe1)))[_0x219908(0xd8)]((_0x32fa63,_0x21e779)=>{const _0x48f0bb=_0x219908,_0x289bde=this[_0x48f0bb(0xcc)](_0x21e779[_0x48f0bb(0xd1)]);return _0x32fa63[_0x289bde]||(_0x32fa63[_0x289bde]=[]),_0x32fa63[_0x289bde][_0x48f0bb(0xca)](_0x21e779),_0x32fa63;},{});_0x58e4ac[_0x219908(0xd4)][_0x219908(0xe8)](_0x219908(0xa8))&&_0x58e4ac[_0x219908(0xe4)][_0x219908(0xe0)](_0x219908(0xc2))&&Object[_0x219908(0xbf)](_0x2819e8)[_0x219908(0xb6)](([_0xecb9eb,_0x33503f])=>{const _0x5bf036=_0x219908;_0x58e4ac[_0x5bf036(0xd4)][_0x5bf036(0xe0)](_0x5bf036(0xa8))[_0x5bf036(0xf8)]({'name':_0xecb9eb,'observable':()=>_0x4c511a,'buttonViewCreator':()=>this[_0x5bf036(0xce)](_0x33503f),'formViewCreator':()=>this[_0x5bf036(0xf6)](_0x33503f),'menuBarButtonViewCreator':()=>this[_0x5bf036(0xf0)](_0x33503f),'override':_0x5bf036(0xc6)!==_0xecb9eb});});}[_0x5d1ac9(0xeb)](){const _0x2fc5d5=_0x5d1ac9;super[_0x2fc5d5(0xeb)](),this[_0x2fc5d5(0xee)]&&clearInterval(this[_0x2fc5d5(0xee)]);}[_0x5d1ac9(0xb4)](_0x2ab0e1){const _0x541425=_0x5d1ac9,{locale:_0x413622}=this[_0x541425(0xa9)];return _0x2ab0e1[_0x541425(0xad)](_0x1ee4f8=>{const _0x3a7211=_0x541425,_0x3defe0=_0x166142(_0x413622,_0x1ee4f8,_0x3a7211(0xf4));switch(_0x1ee4f8){case _0x1b1cf4[_0x3a7211(0xed)]:return{'icon':_0xf364e9,'type':_0x1b1cf4[_0x3a7211(0xed)],..._0x3defe0};case _0x1b1cf4[_0x3a7211(0xea)]:return{'icon':_0x18c21b,'type':_0x1b1cf4[_0x3a7211(0xea)],..._0x3defe0};case _0x1b1cf4[_0x3a7211(0xcb)]:return{'icon':_0x2c680c,'type':_0x1b1cf4[_0x3a7211(0xcb)],..._0x3defe0};case _0x1b1cf4[_0x3a7211(0xb3)]:return{'icon':_0x429e82,'type':_0x1b1cf4[_0x3a7211(0xb3)],..._0x3defe0};case _0x1b1cf4[_0x3a7211(0xba)]:return{'icon':_0x461b5f,'type':_0x1b1cf4[_0x3a7211(0xba)],..._0x3defe0};case _0x1b1cf4[_0x3a7211(0xb9)]:return{'icon':_0x151ec7,'type':_0x1b1cf4[_0x3a7211(0xb9)],..._0x3defe0};case _0x1b1cf4[_0x3a7211(0xc0)]:return{'icon':_0x18f3a2,'type':_0x1b1cf4[_0x3a7211(0xc0)],..._0x3defe0};}});}[_0x5d1ac9(0xcc)](_0xfa3ba3){const _0x4c58e8=_0x5d1ac9;switch(_0xfa3ba3){case _0x1b1cf4[_0x4c58e8(0xed)]:return _0x4c58e8(0xa7);case _0x1b1cf4[_0x4c58e8(0xea)]:return _0x4c58e8(0xde);default:return _0x4c58e8(0xc6);}}[_0x5d1ac9(0xdd)](_0x2c226a,_0xe7872d){const _0x55eb6c=_0x5d1ac9,_0x7dda12=this[_0x55eb6c(0xa9)],_0x700035=new _0x2c226a(_0x7dda12[_0x55eb6c(0xb5)]),_0x70f396=_0x7dda12[_0x55eb6c(0xe4)][_0x55eb6c(0xe0)](_0x55eb6c(0xc2));return _0x700035[_0x55eb6c(0xbe)](_0x55eb6c(0xe5))['to'](_0x70f396),_0x700035['on'](_0x55eb6c(0xf9),()=>{const _0x379baa=_0x55eb6c;_0x70f396[_0x379baa(0xf9)](_0xe7872d);}),_0x700035;}[_0x5d1ac9(0xce)](_0x3b42e5){const _0x1f3c2a=_0x5d1ac9,{locale:_0x1ce3b7}=this[_0x1f3c2a(0xa9)],_0x5e8a74=this[_0x1f3c2a(0xa9)][_0x1f3c2a(0xd4)][_0x1f3c2a(0xe0)](_0x1f3c2a(0xa8)),_0x1f249c=_0x3b42e5[0x0],_0x178020=this[_0x1f3c2a(0xdd)](_0x568388,_0x1f249c[_0x1f3c2a(0xd1)]);return _0x178020[_0x1f3c2a(0xd6)]=_0x1f249c[_0x1f3c2a(0xd6)],_0x178020[_0x1f3c2a(0xbe)](_0x1f3c2a(0xc5))['to'](_0x5e8a74,_0x1f3c2a(0xd2),_0x308b2e=>_0x166142(_0x1ce3b7,_0x1f249c[_0x1f3c2a(0xd1)],_0x308b2e?_0x1f3c2a(0xf3):_0x1f3c2a(0xf4))[_0x1f3c2a(0xb1)]),_0x178020[_0x1f3c2a(0xd7)]=!0x0,_0x178020;}[_0x5d1ac9(0xf6)](_0x3f1cde){const _0x4e14cd=_0x5d1ac9,{locale:_0x3438de}=this[_0x4e14cd(0xa9)],_0x2eb04b=this[_0x4e14cd(0xa9)][_0x4e14cd(0xd4)][_0x4e14cd(0xe0)](_0x4e14cd(0xa8));return _0x3f1cde[_0x4e14cd(0xad)](_0x3e1023=>{const _0x1345f7=_0x4e14cd,_0x139c64=this[_0x1345f7(0xdd)](_0x568388,_0x3e1023[_0x1345f7(0xd1)]);return _0x139c64[_0x1345f7(0xc8)]=!0x0,_0x139c64[_0x1345f7(0xd6)]=_0x3e1023[_0x1345f7(0xd6)],_0x139c64[_0x1345f7(0xbe)](_0x1345f7(0xc5))['to'](_0x2eb04b,_0x1345f7(0xd2),_0x1fd907=>_0x166142(_0x3438de,_0x3e1023[_0x1345f7(0xd1)],_0x1fd907?_0x1345f7(0xf3):_0x1345f7(0xf4))[_0x1345f7(0xb1)]),_0x139c64;});}[_0x5d1ac9(0xf0)](_0x7e64be){const _0x1efbf3=_0x5d1ac9;return _0x7e64be[_0x1efbf3(0xad)](_0x96320=>{const _0x2fa1d7=_0x1efbf3,_0x5841b2=this[_0x2fa1d7(0xdd)](_0x4623a0,_0x96320[_0x2fa1d7(0xd1)]);return _0x5841b2[_0x2fa1d7(0xd6)]=_0x96320[_0x2fa1d7(0xd6)],_0x5841b2[_0x2fa1d7(0xc5)]=_0x96320[_0x2fa1d7(0xc4)],_0x5841b2;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x35dd5e}from'ckeditor5/src/core.js';import{FileRepository as _0x29a532}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x293e40}from'./uploadcareediting.js';import{UploadUtils as _0x12f294}from'./utils/uploadutils.js';import{getImageUrls as _0x43eeaa}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x35dd5e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x29a532,_0x293e40];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2e1a59=this['editor'];if(!!!_0x2e1a59['config']['get']('uploadcare'))return;_0x2e1a59['plugins']['get'](_0x29a532)['createUploadAdapter']=_0x2893a8=>new A(_0x2893a8,_0x2e1a59),_0x2e1a59['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x16bae0,{imageElement:_0x535928,data:_0x55171f})=>{_0x2e1a59['model']['change'](_0x3e8524=>{_0x3e8524['setAttribute']('uploadcareImageId',_0x55171f['uploadcareImageId'],_0x535928);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x19d86d,_0x47dc43){this['loader']=_0x19d86d,this['editor']=_0x47dc43,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x41f0a5=this['editor']['config']['get']('uploadcare.pubkey'),_0x2100c3=await this['loader']['file'];return _0x12f294['upload']({'file':_0x2100c3,'publicKey':_0x41f0a5,'signal':this['controller']['signal'],'onProgress':_0x3bf29a=>{_0x3bf29a&&_0x3bf29a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3bf29a['value']);}})['then'](async _0x34e33a=>{const {imageFallbackUrl:_0x4480ee,imageSources:_0x16970d}=_0x43eeaa(_0x34e33a['cdnUrl'],_0x34e33a['imageInfo']['width']);return{'uploadcareImageId':_0x34e33a['uuid'],'default':_0x4480ee,'sources':_0x16970d};})['catch'](()=>{const _0x36e3a7=t('Cannot\x20upload\x20file:')+('\x20'+_0x2100c3['name']+'.');return Promise['reject'](_0x36e3a7);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x4e9dd5}from'../uploadcareconfig.js';export function getTranslation(_0x4366fd,_0x35339c,_0x5d27a7){const t=_0x4366fd['t'],_0x218a89=_0x4366fd['t'];switch(_0x35339c){case _0x4e9dd5['Local']:return{'text':_0x218a89('Insert'===_0x5d27a7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x218a89('From\x20computer')};case _0x4e9dd5['URL']:return{'text':'Insert'===_0x5d27a7?_0x218a89('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x218a89('Via\x20URL')};case _0x4e9dd5['Dropbox']:return{'text':t('Insert'===_0x5d27a7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x4e9dd5['Facebook']:return{'text':t('Insert'===_0x5d27a7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x4e9dd5['GDrive']:return{'text':t('Insert'===_0x5d27a7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x4e9dd5['GPhotos']:return{'text':t('Insert'===_0x5d27a7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x4e9dd5['OneDrive']:return{'text':t('Insert'===_0x5d27a7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x35339c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x512d0b=_0x1281;(function(_0x3c8b9c,_0x5da597){var _0x48ecd7=_0x1281,_0x2f9831=_0x3c8b9c();while(!![]){try{var _0x55e212=parseInt(_0x48ecd7(0x1d7))/0x1+-parseInt(_0x48ecd7(0x1de))/0x2*(-parseInt(_0x48ecd7(0x1da))/0x3)+parseInt(_0x48ecd7(0x1e9))/0x4*(parseInt(_0x48ecd7(0x1df))/0x5)+parseInt(_0x48ecd7(0x1dd))/0x6*(-parseInt(_0x48ecd7(0x1e7))/0x7)+parseInt(_0x48ecd7(0x1d6))/0x8+parseInt(_0x48ecd7(0x1d9))/0x9+-parseInt(_0x48ecd7(0x1e3))/0xa*(parseInt(_0x48ecd7(0x1e2))/0xb);if(_0x55e212===_0x5da597)break;else _0x2f9831['push'](_0x2f9831['shift']());}catch(_0x4f1d58){_0x2f9831['push'](_0x2f9831['shift']());}}}(_0x3280,0x7dcfe));import{FocusTracker as _0x3b92d0}from'ckeditor5/src/utils.js';function _0x3280(){var _0x110af7=['true','93736tDgWUi','5641640XPzNuF','621806KiJgGg','focusTracker','6200829feBNbZ','1177419YvfDKy','focusCycler','createCollection','103242uKwQJy','2NpNpso','115BkyRUU','div','fire','15158NsmDiQ','12530XRAPLX','bindTemplate','forwardCycle','getFocusableElement','287qZQjPY'];_0x3280=function(){return _0x110af7;};return _0x3280();}import{View as _0x85ca01,FocusCycler as _0x1f8139}from'ckeditor5/src/ui.js';function _0x1281(_0x5a4f47,_0x1e1ed0){var _0x3280a4=_0x3280();return _0x1281=function(_0x12814a,_0xbef8ce){_0x12814a=_0x12814a-0x1d6;var _0x4fe517=_0x3280a4[_0x12814a];return _0x4fe517;},_0x1281(_0x5a4f47,_0x1e1ed0);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x85ca01{[_0x512d0b(0x1d8)];[_0x512d0b(0x1db)];constructor(_0x1b838e){var _0x5d05dd=_0x512d0b;super(_0x1b838e),this[_0x5d05dd(0x1d8)]=new _0x3b92d0(),this[_0x5d05dd(0x1db)]=new _0x1f8139({'focusables':this[_0x5d05dd(0x1dc)](),'focusTracker':this[_0x5d05dd(0x1d8)]});}[_0x512d0b(0x1e6)](){var _0x4c6a9b=_0x512d0b;return{'tag':_0x4c6a9b(0x1e0),'attributes':{'aria-hidden':_0x4c6a9b(0x1e8),'tabindex':'0'},'on':{'focus':this[_0x4c6a9b(0x1e4)]['to'](()=>{var _0x56f208=_0x4c6a9b;this[_0x56f208(0x1db)][_0x56f208(0x1e1)](_0x56f208(0x1e5));})}};}}
|