@ckeditor/ckeditor5-uploadcare 47.2.0-alpha.2 → 47.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1a8262=_0xb2fa;(function(_0x5588f4,_0x2a3ca2){const _0x3a80ee=_0xb2fa,_0x30fc32=_0x5588f4();while(!![]){try{const _0x4e2cc2=-parseInt(_0x3a80ee(0x136))/0x1*(parseInt(_0x3a80ee(0x13a))/0x2)+parseInt(_0x3a80ee(0x13b))/0x3*(-parseInt(_0x3a80ee(0x142))/0x4)+-parseInt(_0x3a80ee(0x15a))/0x5+parseInt(_0x3a80ee(0x15d))/0x6*(-parseInt(_0x3a80ee(0x11c))/0x7)+parseInt(_0x3a80ee(0x135))/0x8+-parseInt(_0x3a80ee(0x11d))/0x9+parseInt(_0x3a80ee(0x146))/0xa;if(_0x4e2cc2===_0x2a3ca2)break;else _0x30fc32['push'](_0x30fc32['shift']());}catch(_0x5948b4){_0x30fc32['push'](_0x30fc32['shift']());}}}(_0xc05f,0x75c1e));import{Plugin as _0x703d44}from'ckeditor5/src/core.js';function _0xb2fa(_0x5a926e,_0x33a135){const _0xc05ff=_0xc05f();return _0xb2fa=function(_0xb2fa89,_0x43f22d){_0xb2fa89=_0xb2fa89-0x112;let _0x4c2038=_0xc05ff[_0xb2fa89];return _0x4c2038;},_0xb2fa(_0x5a926e,_0x33a135);}function _0xc05f(){const _0xde875=['contentLanguage','uploader-','3348512apljdY','61NMHKuo','uploadcare.uploader','ctxElement','querySelector','29846zbyUPi','872901wfgrFG','_initConversion','elementToAttribute','editing','replaceImageSource','attributeToAttribute','configElement','12oftueW','schema','getSelectedElement','href','37623470qoYwVg','uc-config','requires','ucContextId','selection','uploadcare.pubkey','iconHrefResolver','removeAttribute','_initConfig','closeMax','appendChild','downcast','commands','true','fromCharCode','isPremiumPlugin','map','afterInit','remove','isOfficialPlugin','2298430FScLCw','render','uc-upload-ctx-provider','4140MECBNh','destroy','\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','data-uc-image-id','extend','isRegistered','input[uploadcare-file-input]','uploadcareImageReplace','conversion','getAttribute','editor','listenTo','get','insertImage','for','UploadcareEditing','config','_initCtx','upcast','_initSchema','5075uCdCBS','8598933aymbTM','#uc-icon-arrow-down','locale','_configElement','body','uploadcare','join','model','_initImageProcessingIndicator','view','PictureEditing','cleanupImage','uploadcareImageId','_ctxElement','pluginName','document','imageBlock','imageInline','add','execute','init','once'];_0xc05f=function(){return _0xde875;};return _0xc05f();}import{Dialog as _0x2586a8}from'ckeditor5/src/ui.js';import{createElement as _0x556257,global as _0x4a3e5c,uid as _0x4d3c46}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x92a050}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4e2e64}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xb88130}from'./utils/editingutils.js';export class UploadcareEditing extends _0x703d44{[_0x1a8262(0x120)]=null;[_0x1a8262(0x12a)]=null;static get[_0x1a8262(0x12b)](){const _0x28ca19=_0x1a8262;return _0x28ca19(0x117);}static get[_0x1a8262(0x148)](){const _0x38763a=_0x1a8262;return[_0x38763a(0x127),_0x4e2e64,_0x2586a8];}static get[_0x1a8262(0x159)](){return!0x0;}static get[_0x1a8262(0x155)](){return!0x0;}[_0x1a8262(0x149)];get[_0x1a8262(0x141)](){const _0x357899=_0x1a8262;return this[_0x357899(0x120)];}get[_0x1a8262(0x138)](){const _0x1afe32=_0x1a8262;return this[_0x1afe32(0x12a)];}constructor(_0x368532){const _0xf15fa2=_0x1a8262;super(_0x368532),this[_0xf15fa2(0x149)]=_0x4d3c46();}[_0x1a8262(0x131)](){const _0x525671=_0x1a8262,_0x4854a9=this[_0x525671(0x112)];_0x4854a9[_0x525671(0x152)][_0x525671(0x12f)](_0x525671(0x122),new _0x92a050(_0x4854a9));}[_0x1a8262(0x157)](){const _0x48c6b2=_0x1a8262;this[_0x48c6b2(0x11b)](),this[_0x48c6b2(0x13c)](),this[_0x48c6b2(0x14e)](),this[_0x48c6b2(0x119)](),this[_0x48c6b2(0x125)](),this[_0x48c6b2(0x113)](this[_0x48c6b2(0x112)],_0x48c6b2(0x15e),()=>{const _0x4d97c2=_0x48c6b2;this[_0x4d97c2(0x120)]&&(this[_0x4d97c2(0x120)][_0x4d97c2(0x158)](),this[_0x4d97c2(0x120)]=null),this[_0x4d97c2(0x12a)]&&(this[_0x4d97c2(0x12a)][_0x4d97c2(0x158)](),this[_0x4d97c2(0x12a)]=null);const _0x1710b3=_0x4a3e5c[_0x4d97c2(0x12c)][_0x4d97c2(0x139)](_0x4d97c2(0x163));_0x1710b3&&_0x1710b3[_0x4d97c2(0x158)]();}),async function(_0x3533e4){const _0x3a57f4=_0x3c0ff1([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x51bf79=0x535f8c3a,_0xfabc6c=0x5358fbfa^_0x51bf79,_0x348c75=window[_0x3c0ff1([0x44,0x61,0x74,0x65])][_0x3c0ff1([0x6e,0x6f,0x77])](),_0x9c7a24=_0x3533e4[_0x3c0ff1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43e9ee=new window[(_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x483600=>{_0x9c7a24[_0x3c0ff1([0x6f,0x6e,0x63,0x65])](_0x3c0ff1([0x72,0x65,0x61,0x64,0x79]),_0x483600);}),_0x2df2fa={[_0x3c0ff1([0x6b,0x74,0x79])]:_0x3c0ff1([0x45,0x43]),[_0x3c0ff1([0x75,0x73,0x65])]:_0x3c0ff1([0x73,0x69,0x67]),[_0x3c0ff1([0x63,0x72,0x76])]:_0x3c0ff1([0x50,0x2d,0x32,0x35,0x36]),[_0x3c0ff1([0x78])]:_0x3c0ff1([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]),[_0x3c0ff1([0x79])]:_0x3c0ff1([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]),[_0x3c0ff1([0x61,0x6c,0x67])]:_0x3c0ff1([0x45,0x53,0x32,0x35,0x36])},_0x2c62df=_0x9c7a24[_0x3c0ff1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c0ff1([0x67,0x65,0x74])](_0x3c0ff1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x384c96(){let _0x40ec48,_0x3e4821=null,_0x473185=null;try{if(_0x2c62df==_0x3c0ff1([0x47,0x50,0x4c]))return _0x3c0ff1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40ec48=_0x39f1d5(),!_0x40ec48)return _0x3c0ff1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40ec48[_0x3c0ff1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x473185=_0x27054f(_0x40ec48[_0x3c0ff1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40ec48[_0x3c0ff1([0x6a,0x74,0x69])])),await _0xf032af()?_0x47a709()?_0x415151()?_0x3c0ff1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x197179()?(_0x40ec48[_0x3c0ff1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c0ff1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e4821=_0x2e998f(_0x3c0ff1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x40ec48[_0x3c0ff1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c0ff1([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e4821=_0x2e998f(_0x3c0ff1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1cab6b()):_0x3c0ff1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c0ff1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c0ff1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c0ff1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x415151(){const _0x5ddbe1=[_0x3c0ff1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c0ff1([0x74,0x72,0x69,0x61,0x6c])][_0x3c0ff1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ec48[_0x3c0ff1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x348c75/0x3e8:0xe10*_0xfabc6c;return _0x40ec48[_0x3c0ff1([0x65,0x78,0x70])]<_0x5ddbe1;}function _0x47a709(){const _0x1d2c53=_0x40ec48[_0x3c0ff1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d2c53&&(!!_0x1d2c53[_0x3c0ff1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c0ff1([0x2a]))||!!_0x1d2c53[_0x3c0ff1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c0ff1([0x55,0x50,0x4c,0x43])));}function _0x197179(){const _0x4cfe3e=_0xb2fa,_0x5b95c5=_0x40ec48[_0x3c0ff1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b95c5||0x0==_0x5b95c5[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42b1a4}=new URL(window[_0x3c0ff1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4cfe3e(0x145)]);if(_0x5b95c5[_0x3c0ff1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b1a4))return!0x0;const _0x95094b=_0x42b1a4[_0x3c0ff1([0x73,0x70,0x6c,0x69,0x74])](_0x3c0ff1([0x2e]));return _0x5b95c5[_0x3c0ff1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x300491=>_0x300491[_0x3c0ff1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c0ff1([0x2a])))[_0x3c0ff1([0x6d,0x61,0x70])](_0x38d9a=>_0x38d9a[_0x3c0ff1([0x73,0x70,0x6c,0x69,0x74])](_0x3c0ff1([0x2e])))[_0x3c0ff1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48e7d1=>_0x48e7d1[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x95094b[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c0ff1([0x6d,0x61,0x70])](_0x1d61fe=>Array(_0x95094b[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d61fe[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c0ff1([0x66,0x69,0x6c,0x6c])](_0x1d61fe[0x0]===_0x3c0ff1([0x2a])?_0x3c0ff1([0x2a]):'')[_0x3c0ff1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d61fe))[_0x3c0ff1([0x73,0x6f,0x6d,0x65])](_0x5e6845=>_0x95094b[_0x3c0ff1([0x65,0x76,0x65,0x72,0x79])]((_0x4e7be7,_0x1da89e)=>_0x5e6845[_0x1da89e]===_0x4e7be7||_0x5e6845[_0x1da89e]===_0x3c0ff1([0x2a])));}function _0x1cab6b(){return _0x3e4821&&_0x473185?new window[(_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x336615,_0x53ff19)=>{_0x3e4821[_0x3c0ff1([0x74,0x68,0x65,0x6e])](_0x336615,_0x53ff19),_0x473185[_0x3c0ff1([0x74,0x68,0x65,0x6e])](_0x17d0ce=>{_0x17d0ce!=_0x3c0ff1([0x56,0x61,0x6c,0x69,0x64])&&_0x336615(_0x17d0ce);},_0x53ff19);}):_0x3e4821||_0x473185||_0x3c0ff1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x27054f(_0x2133f8,_0x41ea63){return new window[(_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1adde7=>{if(_0x1558fe())return _0x1adde7(_0x3c0ff1([0x56,0x61,0x6c,0x69,0x64]));_0x1cddb2(),_0x9c7a24[_0x3c0ff1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c0ff1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf09b7f=!0x1;const _0x5e7bf8=_0x4d3c46();function _0x471bf7(_0x13ce0a){return!!_0x13ce0a&&(typeof _0x13ce0a===_0x3c0ff1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13ce0a===_0x3c0ff1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13ce0a[_0x3c0ff1([0x74,0x68,0x65,0x6e])]===_0x3c0ff1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13ce0a[_0x3c0ff1([0x63,0x61,0x74,0x63,0x68])]===_0x3c0ff1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dbf10(_0x3df0a0){_0x2cfa55(_0x3df0a0)[_0x3c0ff1([0x74,0x68,0x65,0x6e])](_0x474fe0=>{if(!_0x474fe0||_0x474fe0[_0x3c0ff1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c0ff1([0x6f,0x6b]))return _0x3c0ff1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x195847(_0x31b4a8(_0x5e7bf8+_0x41ea63))!=_0x474fe0[_0x3c0ff1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c0ff1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c0ff1([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c0ff1([0x74,0x68,0x65,0x6e])](_0x1f13d1=>(_0x15c91f(),_0x1f13d1),()=>{const _0x2ec837=_0x3098b5();return null==_0x2ec837?(_0x15c91f(),_0x3c0ff1([0x56,0x61,0x6c,0x69,0x64])):_0x3c0ff1(_0x348c75-_0x2ec837>(0x7753083a^_0x51bf79)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c0ff1([0x74,0x68,0x65,0x6e])](_0x1adde7)[_0x3c0ff1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1adde7(_0x3c0ff1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc47079=0x536962ba^_0x51bf79;function _0x15c91f(){const _0x14dbff=_0x3c0ff1([0x6c,0x6c,0x63,0x74,0x2d])+_0x195847(_0x31b4a8(_0x2133f8)),_0x34d3ad=_0x331b15(_0x195847(window[_0x3c0ff1([0x4d,0x61,0x74,0x68])][_0x3c0ff1([0x63,0x65,0x69,0x6c])](_0x348c75/_0xc47079)));window[_0x3c0ff1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c0ff1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14dbff,_0x34d3ad);}function _0x3098b5(){const _0xa75745=_0x3c0ff1([0x6c,0x6c,0x63,0x74,0x2d])+_0x195847(_0x31b4a8(_0x2133f8)),_0x58870f=window[_0x3c0ff1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c0ff1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa75745);return _0x58870f?window[_0x3c0ff1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x331b15(_0x58870f),0x10)*_0xc47079:null;}function _0x2cfa55(_0x41be9e){return new window[(_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12e065,_0x114ed5)=>{_0x41be9e[_0x3c0ff1([0x74,0x68,0x65,0x6e])](_0x12e065,_0x114ed5),window[_0x3c0ff1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x114ed5,0x535e58fa^_0x51bf79);});}}_0x9c7a24[_0x3c0ff1([0x6f,0x6e])](_0x3c0ff1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x578cb5,_0x2d39cd)=>{if(_0x2d39cd[0x0]!=_0x2133f8)return _0x1adde7(_0x3c0ff1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d39cd[0x1]={..._0x2d39cd[0x1],[_0x3c0ff1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e7bf8};},{[_0x3c0ff1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c0ff1([0x68,0x69,0x67,0x68])}),_0x9c7a24[_0x3c0ff1([0x6f,0x6e])](_0x3c0ff1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x553233=>{_0x471bf7(_0x553233[_0x3c0ff1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf09b7f=!0x0,_0x5dbf10(_0x553233[_0x3c0ff1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c0ff1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c0ff1([0x6c,0x6f,0x77])}),_0x43e9ee[_0x3c0ff1([0x74,0x68,0x65,0x6e])](()=>{_0xf09b7f||_0x1adde7(_0x3c0ff1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1558fe(){return _0x9c7a24[_0x3c0ff1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c0ff1([0x76,0x69,0x65,0x77])][_0x3c0ff1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c0ff1([0x61,0x75,0x74,0x6f]);}function _0x1cddb2(){_0x9c7a24[_0x3c0ff1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c0ff1([0x76,0x69,0x65,0x77])][_0x3c0ff1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c0ff1([0x61,0x75,0x74,0x6f]);}}function _0x2e998f(_0x2a84a3){const _0x37d92c=[new window[(_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf228ae=>setTimeout(_0xf228ae,0x5356b2f6^_0x51bf79)),_0x43e9ee[_0x3c0ff1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8595=>{let _0x400782=0x0;_0x9c7a24[_0x3c0ff1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c0ff1([0x6f,0x6e])](_0x3c0ff1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5946ab,_0x5a1304)=>{_0x5a1304[0x0][_0x3c0ff1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x400782++,_0x400782==(0x535f8dc2^_0x51bf79)&&(_0x4a8595(),_0x5946ab[_0x3c0ff1([0x6f,0x66,0x66])]());});}))];return window[_0x3c0ff1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c0ff1([0x72,0x61,0x63,0x65])](_0x37d92c)[_0x3c0ff1([0x74,0x68,0x65,0x6e])](()=>_0x2a84a3);}async function _0x228497(){await _0x43e9ee,_0x9c7a24[_0x3c0ff1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c0ff1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3cd32c,_0x9c7a24[_0x3c0ff1([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c0ff1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3cd32c,_0x9c7a24[_0x3c0ff1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c0ff1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x59a307(_0x3da9e5){const _0x716554=_0x2be261();_0x9c7a24[_0x716554]=_0x3c0ff1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3da9e5,_0x3da9e5!=_0x3c0ff1([0x56,0x61,0x6c,0x69,0x64])&&_0x228497();}function _0x2be261(){const _0x32f314=window[_0x3c0ff1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c0ff1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c0ff1([0x6e,0x6f,0x77])]())[_0x3c0ff1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c0ff1([0x2e]),'');let _0x3896dd=_0x3c0ff1([0x68]);for(let _0x419edd=0x0;_0x419edd<_0x32f314[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x419edd+=0x2){let _0x4cb08d=window[_0x3c0ff1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32f314[_0x3c0ff1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x419edd,_0x419edd+0x2));_0x4cb08d>=_0x3a57f4[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4cb08d-=_0x3a57f4[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3896dd+=_0x3a57f4[_0x4cb08d];}return _0x3896dd;}function _0x39f1d5(){const _0x4b39e8=_0x2c62df[_0x3c0ff1([0x73,0x70,0x6c,0x69,0x74])](_0x3c0ff1([0x2e]));if(0x3!=_0x4b39e8[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2dbfd9(_0x4b39e8[0x1]);function _0x2dbfd9(_0x162f1b){const _0x1b15b=_0x50de9b(_0x162f1b);return _0x1b15b&&_0x5b4f9d()?_0x1b15b:null;function _0x5b4f9d(){const _0xf25ccb=_0x1b15b[_0x3c0ff1([0x6a,0x74,0x69])],_0x4f100d=window[_0x3c0ff1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf25ccb[_0x3c0ff1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf25ccb[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x155df4={..._0x1b15b,[_0x3c0ff1([0x6a,0x74,0x69])]:_0xf25ccb[_0x3c0ff1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf25ccb[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x155df4[_0x3c0ff1([0x76,0x63])],_0x31b4a8(_0x155df4)==_0x4f100d;}}}async function _0xf032af(){let _0x1d46ba=!0x0;try{const _0x4ec8b8=_0x2c62df[_0x3c0ff1([0x73,0x70,0x6c,0x69,0x74])](_0x3c0ff1([0x2e])),[_0x10dcf1,_0x19b4e0,_0x844bde]=_0x4ec8b8;return _0x40582a(_0x10dcf1),await _0xbbc4a2(_0x10dcf1,_0x19b4e0,_0x844bde),_0x1d46ba;}catch{return!0x1;}function _0x40582a(_0x1fd65c){const _0x3b280f=_0x50de9b(_0x1fd65c);_0x3b280f&&_0x3b280f[_0x3c0ff1([0x61,0x6c,0x67])]==_0x3c0ff1([0x45,0x53,0x32,0x35,0x36])||(_0x1d46ba=!0x1);}async function _0xbbc4a2(_0x4469c2,_0xd5e477,_0x26828a){const _0x1c3395=window[_0x3c0ff1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c0ff1([0x66,0x72,0x6f,0x6d])](_0x1863e7(_0x26828a),_0x3ad048=>_0x3ad048[_0x3c0ff1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4257ac=new window[(_0x3c0ff1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c0ff1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4469c2+_0x3c0ff1([0x2e])+_0xd5e477),_0x43d0b8=window[_0x3c0ff1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c0ff1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43d0b8)return;const _0x1db770=await _0x43d0b8[_0x3c0ff1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c0ff1([0x6a,0x77,0x6b]),_0x2df2fa,{[_0x3c0ff1([0x6e,0x61,0x6d,0x65])]:_0x3c0ff1([0x45,0x43,0x44,0x53,0x41]),[_0x3c0ff1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c0ff1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c0ff1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43d0b8[_0x3c0ff1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c0ff1([0x6e,0x61,0x6d,0x65])]:_0x3c0ff1([0x45,0x43,0x44,0x53,0x41]),[_0x3c0ff1([0x68,0x61,0x73,0x68])]:{[_0x3c0ff1([0x6e,0x61,0x6d,0x65])]:_0x3c0ff1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1db770,_0x1c3395,_0x4257ac)||(_0x1d46ba=!0x1);}}function _0x50de9b(_0x3205be){return _0x3205be[_0x3c0ff1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c0ff1([0x65,0x79]))?JSON[_0x3c0ff1([0x70,0x61,0x72,0x73,0x65])](_0x1863e7(_0x3205be)):null;}function _0x1863e7(_0x4d2523){return window[_0x3c0ff1([0x61,0x74,0x6f,0x62])](_0x4d2523[_0x3c0ff1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c0ff1([0x2b]))[_0x3c0ff1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c0ff1([0x2f])));}function _0x31b4a8(_0x33dbc3){let _0x379025=0x1505;function _0x11deeb(_0x2b2dcd){for(let _0xabf8c0=0x0;_0xabf8c0<_0x2b2dcd[_0x3c0ff1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xabf8c0++){const _0x30c7a3=_0x2b2dcd[_0x3c0ff1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xabf8c0);_0x379025=(_0x379025<<0x5)+_0x379025+_0x30c7a3,_0x379025&=_0x379025;}}function _0x523704(_0x3a62db){Array[_0x3c0ff1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a62db)?_0x3a62db[_0x3c0ff1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x523704):_0x3a62db&&typeof _0x3a62db==_0x3c0ff1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c0ff1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a62db)[_0x3c0ff1([0x73,0x6f,0x72,0x74])]()[_0x3c0ff1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f959f,_0x9b58e7])=>{_0x11deeb(_0x2f959f),_0x523704(_0x9b58e7);}):_0x11deeb(window[_0x3c0ff1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a62db));}return _0x523704(_0x33dbc3),_0x379025>>>0x0;}function _0x195847(_0x51a35c){return _0x51a35c[_0x3c0ff1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c0ff1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c0ff1([0x30]));}function _0x331b15(_0x3ef99e){return _0x3ef99e[_0x3c0ff1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c0ff1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c0ff1([0x6a,0x6f,0x69,0x6e])]('');}function _0x3cd32c(){}function _0x3c0ff1(_0x2d428c){const _0x55e408=_0xb2fa;return _0x2d428c[_0x55e408(0x156)](_0x276c3a=>String[_0x55e408(0x154)](_0x276c3a))[_0x55e408(0x123)]('');}_0x59a307(await _0x384c96());}(this);}[_0x1a8262(0x11b)](){const _0x4dbf37=_0x1a8262,_0x5d9e5d=this[_0x4dbf37(0x112)][_0x4dbf37(0x124)][_0x4dbf37(0x143)];_0x5d9e5d[_0x4dbf37(0x162)](_0x4dbf37(0x12d))&&_0x5d9e5d[_0x4dbf37(0x161)](_0x4dbf37(0x12d),{'allowAttributes':[_0x4dbf37(0x129)]}),_0x5d9e5d[_0x4dbf37(0x162)](_0x4dbf37(0x12e))&&_0x5d9e5d[_0x4dbf37(0x161)](_0x4dbf37(0x12e),{'allowAttributes':[_0x4dbf37(0x129)]});}[_0x1a8262(0x13c)](){const _0x3f4859=_0x1a8262,_0x101bbd=this[_0x3f4859(0x112)];_0x101bbd[_0x3f4859(0x165)][_0x3f4859(0x116)](_0x3f4859(0x151))[_0x3f4859(0x140)]({'model':_0x3f4859(0x129),'view':_0x3f4859(0x160)}),_0x101bbd[_0x3f4859(0x165)][_0x3f4859(0x116)](_0x3f4859(0x11a))[_0x3f4859(0x13d)]({'model':{'key':_0x3f4859(0x129),'value':_0x495e2c=>_0x495e2c[_0x3f4859(0x166)](_0x3f4859(0x160))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x460bf0=_0x101bbd[_0x3f4859(0x152)][_0x3f4859(0x114)](_0x3f4859(0x13f));_0x460bf0&&this[_0x3f4859(0x113)](_0x460bf0,_0x3f4859(0x128),(_0x239e7a,[_0x4b7370,_0x3ce971])=>{const _0x400e2b=_0x3f4859;_0x4b7370[_0x400e2b(0x14d)](_0x400e2b(0x129),_0x3ce971);});}[_0x1a8262(0x14e)](){const _0x2cd667=_0x1a8262,_0x48c19d=this[_0x2cd667(0x112)][_0x2cd667(0x118)][_0x2cd667(0x114)](_0x2cd667(0x137))||{},_0x4ded89=this[_0x2cd667(0x112)][_0x2cd667(0x118)][_0x2cd667(0x114)](_0x2cd667(0x14b))||'';this[_0x2cd667(0x120)]=_0x556257(_0x4a3e5c[_0x2cd667(0x12c)],_0x2cd667(0x147),{..._0x48c19d,'pubkey':_0x4ded89,'ctx-name':_0x2cd667(0x134)+this[_0x2cd667(0x149)],'sourceList':'','imgOnly':_0x2cd667(0x153),'removeCopyright':_0x2cd667(0x153),'localeName':this[_0x2cd667(0x112)][_0x2cd667(0x11f)][_0x2cd667(0x133)],'externalSourcesEmbedCss':_0x2cd667(0x15f)}),this[_0x2cd667(0x120)][_0x2cd667(0x14c)]=_0x1e00e4=>{const _0xdaa2e=_0x2cd667;if(_0xdaa2e(0x14f)==_0x1e00e4)return _0xdaa2e(0x11e);},_0x4a3e5c[_0x2cd667(0x12c)][_0x2cd667(0x121)][_0x2cd667(0x150)](this[_0x2cd667(0x120)]);}[_0x1a8262(0x119)](){const _0xf1af50=_0x1a8262;this[_0xf1af50(0x12a)]=_0x556257(_0x4a3e5c[_0xf1af50(0x12c)],_0xf1af50(0x15c),{'ctx-name':_0xf1af50(0x134)+this[_0xf1af50(0x149)]}),_0x4a3e5c[_0xf1af50(0x12c)][_0xf1af50(0x121)][_0xf1af50(0x150)](this[_0xf1af50(0x12a)]);}[_0x1a8262(0x125)](){const _0x1cd33d=_0x1a8262,_0x2e2ede=this[_0x1cd33d(0x112)][_0x1cd33d(0x152)][_0x1cd33d(0x114)](_0x1cd33d(0x115));_0x2e2ede&&this[_0x1cd33d(0x113)](_0x2e2ede,_0x1cd33d(0x130),()=>{const _0x513f35=_0x1cd33d,_0x7e86ce=this[_0x513f35(0x112)][_0x513f35(0x124)][_0x513f35(0x12c)][_0x513f35(0x14a)][_0x513f35(0x144)]();_0x7e86ce&&_0x7e86ce[_0x513f35(0x166)](_0x513f35(0x129))&&this[_0x513f35(0x112)][_0x513f35(0x13e)][_0x513f35(0x126)][_0x513f35(0x132)](_0x513f35(0x15b),()=>{const _0x1e059b=_0x513f35;_0xb88130(this[_0x1e059b(0x112)],_0x7e86ce);});});const _0x4ffa8b=this[_0x1cd33d(0x112)][_0x1cd33d(0x152)][_0x1cd33d(0x114)](_0x1cd33d(0x164));_0x4ffa8b&&this[_0x1cd33d(0x113)](_0x4ffa8b,_0x1cd33d(0x130),()=>{const _0x55a78b=_0x1cd33d,_0xffef1f=this[_0x55a78b(0x112)][_0x55a78b(0x124)][_0x55a78b(0x12c)][_0x55a78b(0x14a)][_0x55a78b(0x144)]();_0xffef1f&&_0xffef1f[_0x55a78b(0x166)](_0x55a78b(0x129))&&this[_0x55a78b(0x112)][_0x55a78b(0x13e)][_0x55a78b(0x126)][_0x55a78b(0x132)](_0x55a78b(0x15b),()=>{const _0x677d14=_0x55a78b;_0xb88130(this[_0x677d14(0x112)],_0xffef1f);});});}}
|
|
23
|
+
const _0x1ef20e=_0x14aa;(function(_0x5593c2,_0xa69b75){const _0x31329a=_0x14aa,_0x4ccef9=_0x5593c2();while(!![]){try{const _0x48b185=-parseInt(_0x31329a(0x16f))/0x1+-parseInt(_0x31329a(0x14d))/0x2+-parseInt(_0x31329a(0x181))/0x3*(-parseInt(_0x31329a(0x186))/0x4)+parseInt(_0x31329a(0x17c))/0x5+-parseInt(_0x31329a(0x183))/0x6*(parseInt(_0x31329a(0x169))/0x7)+parseInt(_0x31329a(0x13d))/0x8+parseInt(_0x31329a(0x14a))/0x9;if(_0x48b185===_0xa69b75)break;else _0x4ccef9['push'](_0x4ccef9['shift']());}catch(_0x547d3c){_0x4ccef9['push'](_0x4ccef9['shift']());}}}(_0x32d5,0xe4b7e));function _0x32d5(){const _0xaf1354=['for','insertImage','schema','2695952SnZlaj','model','removeAttribute','document','isRegistered','view','_initSchema','join','uploadcare','body','isPremiumPlugin','uploadcare.uploader','_initConversion','21432627XkYXZm','_configElement','destroy','2503164URuHpz','input[uploadcare-file-input]','uploader-','PictureEditing','editing','init','closeMax','UploadcareEditing','selection','contentLanguage','get','uploadcareImageReplace','cleanupImage','render','_initImageProcessingIndicator','configElement','imageBlock','#uc-icon-arrow-down','listenTo','imageInline','pluginName','isOfficialPlugin','getAttribute','map','editor','\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','true','execute','2099972ctGIOj','iconHrefResolver','conversion','_initConfig','upcast','uc-config','997675DvfJdx','fromCharCode','config','ucContextId','commands','downcast','extend','locale','requires','href','add','ctxElement','data-uc-image-id','2048805WXsqBH','querySelector','attributeToAttribute','elementToAttribute','uploadcareImageId','2873751KbiFAU','_ctxElement','18nNzTEG','remove','afterInit','4UMumkt','once','_initCtx','uc-upload-ctx-provider','uploadcare.pubkey','appendChild','getSelectedElement','replaceImageSource'];_0x32d5=function(){return _0xaf1354;};return _0x32d5();}import{Plugin as _0x86037c}from'ckeditor5/src/core.js';function _0x14aa(_0x3d00d5,_0x2d90e8){const _0x32d5fe=_0x32d5();return _0x14aa=function(_0x14aa96,_0x315841){_0x14aa96=_0x14aa96-0x133;let _0x1bf656=_0x32d5fe[_0x14aa96];return _0x1bf656;},_0x14aa(_0x3d00d5,_0x2d90e8);}import{Dialog as _0x54536b}from'ckeditor5/src/ui.js';import{createElement as _0x3473d1,global as _0x793322,uid as _0x5a6f6f}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x59df9b}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5d9bfe}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x37dcbe}from'./utils/editingutils.js';export class UploadcareEditing extends _0x86037c{[_0x1ef20e(0x14b)]=null;[_0x1ef20e(0x182)]=null;static get[_0x1ef20e(0x161)](){const _0xf34f7=_0x1ef20e;return _0xf34f7(0x154);}static get[_0x1ef20e(0x177)](){const _0x40872d=_0x1ef20e;return[_0x40872d(0x150),_0x5d9bfe,_0x54536b];}static get[_0x1ef20e(0x162)](){return!0x0;}static get[_0x1ef20e(0x147)](){return!0x0;}[_0x1ef20e(0x172)];get[_0x1ef20e(0x15c)](){const _0x432ec2=_0x1ef20e;return this[_0x432ec2(0x14b)];}get[_0x1ef20e(0x17a)](){const _0x4dbced=_0x1ef20e;return this[_0x4dbced(0x182)];}constructor(_0x3291db){const _0x3ff45c=_0x1ef20e;super(_0x3291db),this[_0x3ff45c(0x172)]=_0x5a6f6f();}[_0x1ef20e(0x152)](){const _0x520906=_0x1ef20e,_0xb05b2b=this[_0x520906(0x165)];_0xb05b2b[_0x520906(0x173)][_0x520906(0x179)](_0x520906(0x145),new _0x59df9b(_0xb05b2b));}[_0x1ef20e(0x185)](){const _0x19e167=_0x1ef20e;this[_0x19e167(0x143)](),this[_0x19e167(0x149)](),this[_0x19e167(0x16c)](),this[_0x19e167(0x134)](),this[_0x19e167(0x15b)](),this[_0x19e167(0x15f)](this[_0x19e167(0x165)],_0x19e167(0x14c),()=>{const _0x43db23=_0x19e167;this[_0x43db23(0x14b)]&&(this[_0x43db23(0x14b)][_0x43db23(0x184)](),this[_0x43db23(0x14b)]=null),this[_0x43db23(0x182)]&&(this[_0x43db23(0x182)][_0x43db23(0x184)](),this[_0x43db23(0x182)]=null);const _0x461dac=_0x793322[_0x43db23(0x140)][_0x43db23(0x17d)](_0x43db23(0x14e));_0x461dac&&_0x461dac[_0x43db23(0x184)]();}),async function(_0x120123){const _0x2d4a89=_0x47d212([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3c16bb=0x535f8c3a,_0xca1b5d=0x5358fbca^_0x3c16bb,_0x344ea2=window[_0x47d212([0x44,0x61,0x74,0x65])][_0x47d212([0x6e,0x6f,0x77])](),_0x1114be=_0x120123[_0x47d212([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x551343=new window[(_0x47d212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x278ec2=>{_0x1114be[_0x47d212([0x6f,0x6e,0x63,0x65])](_0x47d212([0x72,0x65,0x61,0x64,0x79]),_0x278ec2);}),_0x3e1227={[_0x47d212([0x6b,0x74,0x79])]:_0x47d212([0x45,0x43]),[_0x47d212([0x75,0x73,0x65])]:_0x47d212([0x73,0x69,0x67]),[_0x47d212([0x63,0x72,0x76])]:_0x47d212([0x50,0x2d,0x32,0x35,0x36]),[_0x47d212([0x78])]:_0x47d212([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]),[_0x47d212([0x79])]:_0x47d212([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]),[_0x47d212([0x61,0x6c,0x67])]:_0x47d212([0x45,0x53,0x32,0x35,0x36])},_0x3576df=_0x1114be[_0x47d212([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x47d212([0x67,0x65,0x74])](_0x47d212([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54aa3a(){let _0x476b93,_0x1908c8=null,_0x466f99=null;try{if(_0x3576df==_0x47d212([0x47,0x50,0x4c]))return _0x47d212([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x476b93=_0x901d13(),!_0x476b93)return _0x47d212([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x476b93[_0x47d212([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x466f99=_0x52288a(_0x476b93[_0x47d212([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x476b93[_0x47d212([0x6a,0x74,0x69])])),await _0x43cd21()?_0x25e605()?_0x56da91()?_0x47d212([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x6330bb()?(_0x476b93[_0x47d212([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47d212([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1908c8=_0x5dc2be(_0x47d212([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x476b93[_0x47d212([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47d212([0x74,0x72,0x69,0x61,0x6c])&&(_0x1908c8=_0x5dc2be(_0x47d212([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a1b72()):_0x47d212([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x47d212([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x47d212([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x47d212([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56da91(){const _0x925917=[_0x47d212([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x47d212([0x74,0x72,0x69,0x61,0x6c])][_0x47d212([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476b93[_0x47d212([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x344ea2/0x3e8:0xe10*_0xca1b5d;return _0x476b93[_0x47d212([0x65,0x78,0x70])]<_0x925917;}function _0x25e605(){const _0x2d8612=_0x476b93[_0x47d212([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d8612&&(!!_0x2d8612[_0x47d212([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47d212([0x2a]))||!!_0x2d8612[_0x47d212([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47d212([0x55,0x50,0x4c,0x43])));}function _0x6330bb(){const _0x518c84=_0x14aa,_0x27c844=_0x476b93[_0x47d212([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27c844||0x0==_0x27c844[_0x47d212([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3570e7}=new URL(window[_0x47d212([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x518c84(0x178)]);if(_0x27c844[_0x47d212([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3570e7))return!0x0;const _0x3cad36=_0x3570e7[_0x47d212([0x73,0x70,0x6c,0x69,0x74])](_0x47d212([0x2e]));return _0x27c844[_0x47d212([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ec077=>_0x5ec077[_0x47d212([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47d212([0x2a])))[_0x47d212([0x6d,0x61,0x70])](_0x382d41=>_0x382d41[_0x47d212([0x73,0x70,0x6c,0x69,0x74])](_0x47d212([0x2e])))[_0x47d212([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x131673=>_0x131673[_0x47d212([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3cad36[_0x47d212([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47d212([0x6d,0x61,0x70])](_0x2ec578=>Array(_0x3cad36[_0x47d212([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ec578[_0x47d212([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x47d212([0x66,0x69,0x6c,0x6c])](_0x2ec578[0x0]===_0x47d212([0x2a])?_0x47d212([0x2a]):'')[_0x47d212([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ec578))[_0x47d212([0x73,0x6f,0x6d,0x65])](_0x12172e=>_0x3cad36[_0x47d212([0x65,0x76,0x65,0x72,0x79])]((_0x26d257,_0xc15bc4)=>_0x12172e[_0xc15bc4]===_0x26d257||_0x12172e[_0xc15bc4]===_0x47d212([0x2a])));}function _0x5a1b72(){return _0x1908c8&&_0x466f99?new window[(_0x47d212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2761fd,_0x3fc95f)=>{_0x1908c8[_0x47d212([0x74,0x68,0x65,0x6e])](_0x2761fd,_0x3fc95f),_0x466f99[_0x47d212([0x74,0x68,0x65,0x6e])](_0x2afdc9=>{_0x2afdc9!=_0x47d212([0x56,0x61,0x6c,0x69,0x64])&&_0x2761fd(_0x2afdc9);},_0x3fc95f);}):_0x1908c8||_0x466f99||_0x47d212([0x56,0x61,0x6c,0x69,0x64]);}}function _0x52288a(_0x4349f2,_0x45a959){return new window[(_0x47d212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x80a36e=>{if(_0x363172())return _0x80a36e(_0x47d212([0x56,0x61,0x6c,0x69,0x64]));_0x5076b7(),_0x1114be[_0x47d212([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x47d212([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b267b=!0x1;const _0x23a8a6=_0x5a6f6f();function _0x4e56af(_0x512bd9){return!!_0x512bd9&&(typeof _0x512bd9===_0x47d212([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x512bd9===_0x47d212([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x512bd9[_0x47d212([0x74,0x68,0x65,0x6e])]===_0x47d212([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x512bd9[_0x47d212([0x63,0x61,0x74,0x63,0x68])]===_0x47d212([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x817c19(_0x1af0af){_0x391cab(_0x1af0af)[_0x47d212([0x74,0x68,0x65,0x6e])](_0x4aa98e=>{if(!_0x4aa98e||_0x4aa98e[_0x47d212([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x47d212([0x6f,0x6b]))return _0x47d212([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x13d373(_0x450b56(_0x23a8a6+_0x45a959))!=_0x4aa98e[_0x47d212([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x47d212([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x47d212([0x56,0x61,0x6c,0x69,0x64]);})[_0x47d212([0x74,0x68,0x65,0x6e])](_0x47c06b=>(_0x4fac11(),_0x47c06b),()=>{const _0x3344a5=_0x44b722();return null==_0x3344a5?(_0x4fac11(),_0x47d212([0x56,0x61,0x6c,0x69,0x64])):_0x47d212(_0x344ea2-_0x3344a5>(0x7753083a^_0x3c16bb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x47d212([0x74,0x68,0x65,0x6e])](_0x80a36e)[_0x47d212([0x63,0x61,0x74,0x63,0x68])](()=>{_0x80a36e(_0x47d212([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x240de5=0x536962ba^_0x3c16bb;function _0x4fac11(){const _0x14de58=_0x47d212([0x6c,0x6c,0x63,0x74,0x2d])+_0x13d373(_0x450b56(_0x4349f2)),_0x3e2370=_0x57c8fc(_0x13d373(window[_0x47d212([0x4d,0x61,0x74,0x68])][_0x47d212([0x63,0x65,0x69,0x6c])](_0x344ea2/_0x240de5)));window[_0x47d212([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47d212([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14de58,_0x3e2370);}function _0x44b722(){const _0x3ba7c4=_0x47d212([0x6c,0x6c,0x63,0x74,0x2d])+_0x13d373(_0x450b56(_0x4349f2)),_0x2cc0ff=window[_0x47d212([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47d212([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ba7c4);return _0x2cc0ff?window[_0x47d212([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57c8fc(_0x2cc0ff),0x10)*_0x240de5:null;}function _0x391cab(_0x222620){return new window[(_0x47d212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a9cba,_0x40006a)=>{_0x222620[_0x47d212([0x74,0x68,0x65,0x6e])](_0x2a9cba,_0x40006a),window[_0x47d212([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x40006a,0x535e58fa^_0x3c16bb);});}}_0x1114be[_0x47d212([0x6f,0x6e])](_0x47d212([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x37c55a,_0x3f858f)=>{if(_0x3f858f[0x0]!=_0x4349f2)return _0x80a36e(_0x47d212([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f858f[0x1]={..._0x3f858f[0x1],[_0x47d212([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23a8a6};},{[_0x47d212([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47d212([0x68,0x69,0x67,0x68])}),_0x1114be[_0x47d212([0x6f,0x6e])](_0x47d212([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x338252=>{_0x4e56af(_0x338252[_0x47d212([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b267b=!0x0,_0x817c19(_0x338252[_0x47d212([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x47d212([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47d212([0x6c,0x6f,0x77])}),_0x551343[_0x47d212([0x74,0x68,0x65,0x6e])](()=>{_0x5b267b||_0x80a36e(_0x47d212([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x363172(){return _0x1114be[_0x47d212([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47d212([0x76,0x69,0x65,0x77])][_0x47d212([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x47d212([0x61,0x75,0x74,0x6f]);}function _0x5076b7(){_0x1114be[_0x47d212([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47d212([0x76,0x69,0x65,0x77])][_0x47d212([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47d212([0x61,0x75,0x74,0x6f]);}}function _0x5dc2be(_0x3c71f4){const _0x2154c3=[new window[(_0x47d212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4de85a=>setTimeout(_0x4de85a,0x5356b2f6^_0x3c16bb)),_0x551343[_0x47d212([0x74,0x68,0x65,0x6e])](()=>new window[(_0x47d212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3efca3=>{let _0x41becd=0x0;_0x1114be[_0x47d212([0x6d,0x6f,0x64,0x65,0x6c])][_0x47d212([0x6f,0x6e])](_0x47d212([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x977904,_0x1344a0)=>{_0x1344a0[0x0][_0x47d212([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x41becd++,_0x41becd==(0x535f8dc2^_0x3c16bb)&&(_0x3efca3(),_0x977904[_0x47d212([0x6f,0x66,0x66])]());});}))];return window[_0x47d212([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47d212([0x72,0x61,0x63,0x65])](_0x2154c3)[_0x47d212([0x74,0x68,0x65,0x6e])](()=>_0x3c71f4);}async function _0x1fa0c4(){await _0x551343,_0x1114be[_0x47d212([0x6d,0x6f,0x64,0x65,0x6c])][_0x47d212([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b0f34,_0x1114be[_0x47d212([0x6d,0x6f,0x64,0x65,0x6c])][_0x47d212([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b0f34,_0x1114be[_0x47d212([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x47d212([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26508b(_0x529323){const _0x2232b1=_0x3749cc();_0x1114be[_0x2232b1]=_0x47d212([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x529323,_0x529323!=_0x47d212([0x56,0x61,0x6c,0x69,0x64])&&_0x1fa0c4();}function _0x3749cc(){const _0x364cd6=window[_0x47d212([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x47d212([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x47d212([0x6e,0x6f,0x77])]())[_0x47d212([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x47d212([0x2e]),'');let _0x42378a=_0x47d212([0x68]);for(let _0x23b433=0x0;_0x23b433<_0x364cd6[_0x47d212([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23b433+=0x2){let _0x53ae68=window[_0x47d212([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x364cd6[_0x47d212([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23b433,_0x23b433+0x2));_0x53ae68>=_0x2d4a89[_0x47d212([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53ae68-=_0x2d4a89[_0x47d212([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42378a+=_0x2d4a89[_0x53ae68];}return _0x42378a;}function _0x901d13(){const _0x25a534=_0x3576df[_0x47d212([0x73,0x70,0x6c,0x69,0x74])](_0x47d212([0x2e]));if(0x3!=_0x25a534[_0x47d212([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e914f(_0x25a534[0x1]);function _0x2e914f(_0x2241e6){const _0x46b560=_0x296ac3(_0x2241e6);return _0x46b560&&_0x3df522()?_0x46b560:null;function _0x3df522(){const _0x117eea=_0x46b560[_0x47d212([0x6a,0x74,0x69])],_0x2dd679=window[_0x47d212([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x117eea[_0x47d212([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x117eea[_0x47d212([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x195cec={..._0x46b560,[_0x47d212([0x6a,0x74,0x69])]:_0x117eea[_0x47d212([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x117eea[_0x47d212([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x195cec[_0x47d212([0x76,0x63])],_0x450b56(_0x195cec)==_0x2dd679;}}}async function _0x43cd21(){let _0x383a51=!0x0;try{const _0x6c6766=_0x3576df[_0x47d212([0x73,0x70,0x6c,0x69,0x74])](_0x47d212([0x2e])),[_0x13628a,_0xf6190e,_0x37dfe2]=_0x6c6766;return _0x2f3d4f(_0x13628a),await _0x2e59e2(_0x13628a,_0xf6190e,_0x37dfe2),_0x383a51;}catch{return!0x1;}function _0x2f3d4f(_0x5137a6){const _0x25097b=_0x296ac3(_0x5137a6);_0x25097b&&_0x25097b[_0x47d212([0x61,0x6c,0x67])]==_0x47d212([0x45,0x53,0x32,0x35,0x36])||(_0x383a51=!0x1);}async function _0x2e59e2(_0x15d296,_0x1118aa,_0x560716){const _0x51a84c=window[_0x47d212([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x47d212([0x66,0x72,0x6f,0x6d])](_0x4513fd(_0x560716),_0x277e5f=>_0x277e5f[_0x47d212([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x368736=new window[(_0x47d212([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x47d212([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15d296+_0x47d212([0x2e])+_0x1118aa),_0x49628a=window[_0x47d212([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x47d212([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49628a)return;const _0x1d0536=await _0x49628a[_0x47d212([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x47d212([0x6a,0x77,0x6b]),_0x3e1227,{[_0x47d212([0x6e,0x61,0x6d,0x65])]:_0x47d212([0x45,0x43,0x44,0x53,0x41]),[_0x47d212([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x47d212([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x47d212([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49628a[_0x47d212([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x47d212([0x6e,0x61,0x6d,0x65])]:_0x47d212([0x45,0x43,0x44,0x53,0x41]),[_0x47d212([0x68,0x61,0x73,0x68])]:{[_0x47d212([0x6e,0x61,0x6d,0x65])]:_0x47d212([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d0536,_0x51a84c,_0x368736)||(_0x383a51=!0x1);}}function _0x296ac3(_0x39d86a){return _0x39d86a[_0x47d212([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x47d212([0x65,0x79]))?JSON[_0x47d212([0x70,0x61,0x72,0x73,0x65])](_0x4513fd(_0x39d86a)):null;}function _0x4513fd(_0x2bfa2b){return window[_0x47d212([0x61,0x74,0x6f,0x62])](_0x2bfa2b[_0x47d212([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x47d212([0x2b]))[_0x47d212([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x47d212([0x2f])));}function _0x450b56(_0x5cb9){let _0x3b1d56=0x1505;function _0x5d4f9e(_0x3ff8ed){for(let _0x16af6a=0x0;_0x16af6a<_0x3ff8ed[_0x47d212([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16af6a++){const _0x2199d6=_0x3ff8ed[_0x47d212([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x16af6a);_0x3b1d56=(_0x3b1d56<<0x5)+_0x3b1d56+_0x2199d6,_0x3b1d56&=_0x3b1d56;}}function _0x576595(_0x3b3c18){Array[_0x47d212([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b3c18)?_0x3b3c18[_0x47d212([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x576595):_0x3b3c18&&typeof _0x3b3c18==_0x47d212([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x47d212([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b3c18)[_0x47d212([0x73,0x6f,0x72,0x74])]()[_0x47d212([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1d025f,_0x16f28])=>{_0x5d4f9e(_0x1d025f),_0x576595(_0x16f28);}):_0x5d4f9e(window[_0x47d212([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b3c18));}return _0x576595(_0x5cb9),_0x3b1d56>>>0x0;}function _0x13d373(_0x3a1478){return _0x3a1478[_0x47d212([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x47d212([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x47d212([0x30]));}function _0x57c8fc(_0x26fea3){return _0x26fea3[_0x47d212([0x73,0x70,0x6c,0x69,0x74])]('')[_0x47d212([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x47d212([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b0f34(){}function _0x47d212(_0x5f13a9){const _0x399179=_0x14aa;return _0x5f13a9[_0x399179(0x164)](_0x22bd13=>String[_0x399179(0x170)](_0x22bd13))[_0x399179(0x144)]('');}_0x26508b(await _0x54aa3a());}(this);}[_0x1ef20e(0x143)](){const _0x15a5ea=_0x1ef20e,_0x377c24=this[_0x15a5ea(0x165)][_0x15a5ea(0x13e)][_0x15a5ea(0x13c)];_0x377c24[_0x15a5ea(0x141)](_0x15a5ea(0x15d))&&_0x377c24[_0x15a5ea(0x175)](_0x15a5ea(0x15d),{'allowAttributes':[_0x15a5ea(0x180)]}),_0x377c24[_0x15a5ea(0x141)](_0x15a5ea(0x160))&&_0x377c24[_0x15a5ea(0x175)](_0x15a5ea(0x160),{'allowAttributes':[_0x15a5ea(0x180)]});}[_0x1ef20e(0x149)](){const _0x204aa2=_0x1ef20e,_0x27b307=this[_0x204aa2(0x165)];_0x27b307[_0x204aa2(0x16b)][_0x204aa2(0x13a)](_0x204aa2(0x174))[_0x204aa2(0x17e)]({'model':_0x204aa2(0x180),'view':_0x204aa2(0x17b)}),_0x27b307[_0x204aa2(0x16b)][_0x204aa2(0x13a)](_0x204aa2(0x16d))[_0x204aa2(0x17f)]({'model':{'key':_0x204aa2(0x180),'value':_0x4a3fec=>_0x4a3fec[_0x204aa2(0x163)](_0x204aa2(0x17b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xc0b311=_0x27b307[_0x204aa2(0x173)][_0x204aa2(0x157)](_0x204aa2(0x139));_0xc0b311&&this[_0x204aa2(0x15f)](_0xc0b311,_0x204aa2(0x159),(_0x52334f,[_0x3730e7,_0xeef58f])=>{const _0x4ee935=_0x204aa2;_0x3730e7[_0x4ee935(0x13f)](_0x4ee935(0x180),_0xeef58f);});}[_0x1ef20e(0x16c)](){const _0x29b46f=_0x1ef20e,_0x4848d4=this[_0x29b46f(0x165)][_0x29b46f(0x171)][_0x29b46f(0x157)](_0x29b46f(0x148))||{},_0x1299f8=this[_0x29b46f(0x165)][_0x29b46f(0x171)][_0x29b46f(0x157)](_0x29b46f(0x136))||'';this[_0x29b46f(0x14b)]=_0x3473d1(_0x793322[_0x29b46f(0x140)],_0x29b46f(0x16e),{..._0x4848d4,'pubkey':_0x1299f8,'ctx-name':_0x29b46f(0x14f)+this[_0x29b46f(0x172)],'sourceList':'','imgOnly':_0x29b46f(0x167),'removeCopyright':_0x29b46f(0x167),'localeName':this[_0x29b46f(0x165)][_0x29b46f(0x176)][_0x29b46f(0x156)],'externalSourcesEmbedCss':_0x29b46f(0x166)}),this[_0x29b46f(0x14b)][_0x29b46f(0x16a)]=_0x3ad655=>{const _0x2c57fb=_0x29b46f;if(_0x2c57fb(0x153)==_0x3ad655)return _0x2c57fb(0x15e);},_0x793322[_0x29b46f(0x140)][_0x29b46f(0x146)][_0x29b46f(0x137)](this[_0x29b46f(0x14b)]);}[_0x1ef20e(0x134)](){const _0x11475a=_0x1ef20e;this[_0x11475a(0x182)]=_0x3473d1(_0x793322[_0x11475a(0x140)],_0x11475a(0x135),{'ctx-name':_0x11475a(0x14f)+this[_0x11475a(0x172)]}),_0x793322[_0x11475a(0x140)][_0x11475a(0x146)][_0x11475a(0x137)](this[_0x11475a(0x182)]);}[_0x1ef20e(0x15b)](){const _0x48e48b=_0x1ef20e,_0x87dbcd=this[_0x48e48b(0x165)][_0x48e48b(0x173)][_0x48e48b(0x157)](_0x48e48b(0x13b));_0x87dbcd&&this[_0x48e48b(0x15f)](_0x87dbcd,_0x48e48b(0x168),()=>{const _0x591ce7=_0x48e48b,_0x49f77e=this[_0x591ce7(0x165)][_0x591ce7(0x13e)][_0x591ce7(0x140)][_0x591ce7(0x155)][_0x591ce7(0x138)]();_0x49f77e&&_0x49f77e[_0x591ce7(0x163)](_0x591ce7(0x180))&&this[_0x591ce7(0x165)][_0x591ce7(0x151)][_0x591ce7(0x142)][_0x591ce7(0x133)](_0x591ce7(0x15a),()=>{const _0x2b719a=_0x591ce7;_0x37dcbe(this[_0x2b719a(0x165)],_0x49f77e);});});const _0x2ac943=this[_0x48e48b(0x165)][_0x48e48b(0x173)][_0x48e48b(0x157)](_0x48e48b(0x158));_0x2ac943&&this[_0x48e48b(0x15f)](_0x2ac943,_0x48e48b(0x168),()=>{const _0x43b52c=_0x48e48b,_0x15a9bd=this[_0x43b52c(0x165)][_0x43b52c(0x13e)][_0x43b52c(0x140)][_0x43b52c(0x155)][_0x43b52c(0x138)]();_0x15a9bd&&_0x15a9bd[_0x43b52c(0x163)](_0x43b52c(0x180))&&this[_0x43b52c(0x165)][_0x43b52c(0x151)][_0x43b52c(0x142)][_0x43b52c(0x133)](_0x43b52c(0x15a),()=>{const _0xbe25c=_0x43b52c;_0x37dcbe(this[_0xbe25c(0x165)],_0x15a9bd);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x58e927,ObservableMixin as _0x598d59}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x565dc1}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x773507}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x258bd1}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1d7dd8}from'../../utils/uploadutils.js';import{getImageUrls as _0x22fbd5,getImageDimension as _0xc76cab}from'../../utils/editingutils.js';import{isAncestor as _0x1ec2fb}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x598d59(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x389dd6,_0x54a117,_0x1ede41){super(),this['_editor']=_0x389dd6,this['_dialog']=_0x54a117,this['_imageElement']=_0x1ede41,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 _0x7eb53c=this['_imageElement'],_0x499a94=_0x7eb53c['getAttribute']('uploadcareImageId'),_0x439318=_0x7eb53c['getAttribute']('src');if(_0x499a94)await this['_loadImageInfo'](_0x499a94,_0x439318);else{if(this['_imageCache']['has'](_0x439318)){const _0x3b6af2=this['_imageCache']['get'](_0x439318);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b6af2['url'],this['imageDimension']=_0x3b6af2['dimension'],this['imageId']=_0x3b6af2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5536bf}=this['_editor'],t=_0x5536bf['t'],_0x3151e2=new _0x258bd1(_0x5536bf,this['imageStatus'],this['_attributes']);_0x3151e2['bind']('status')['to'](this,'imageStatus'),_0x3151e2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3151e2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3151e2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3151e2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x773507,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3151e2,'position':_0x565dc1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3151e2['focus']();},'onHide':()=>{_0x3151e2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xc769df=>!_0x1ec2fb(_0xc769df,_0x3151e2['element'])}});}['_loadImageInfo'](_0x18ce89,_0x139fc9){return _0x1d7dd8['getInfo'](_0x18ce89,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2e1a1a=>{const {width:_0xff9857,height:_0xba176b}=_0x2e1a1a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x139fc9,this['imageDimension']={'width':_0xff9857,'height':_0xba176b},this['imageId']=_0x18ce89;})['catch'](_0x240796=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x240796['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1f8a33,_0x238bfe){return this['_getImageAsFile'](_0x1f8a33)['then'](_0x5c4833=>_0x1d7dd8['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x238bfe['signal'],'file':_0x5c4833,'onProgress':_0x42d848=>{_0x42d848&&_0x42d848['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x42d848['value']));}}))['then'](_0x34b097=>{const {width:_0x544525,height:_0x4d5ee8}=_0x34b097['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34b097['cdnUrl'],this['imageDimension']={'width':_0x544525,'height':_0x4d5ee8},this['imageId']=_0x34b097['uuid'],this['imageUploadProgress']=null;const _0x3a2830=_0x1f8a33['getAttribute']('src');this['_imageCache']['set'](_0x3a2830,{'id':_0x34b097['uuid'],'url':_0x34b097['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2c2b3d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c2b3d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x14860d,_0x4d2c16){_0x14860d['on']('apply',(_0x35d5b1,_0x17bafd)=>{this['_replaceImage'](_0x4d2c16,_0x17bafd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x14860d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x14860d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x354297,_0x31be0f,_0x8db15d){const _0x1135b3=this['_editor'],{width:_0x1fc3d8,height:_0x4cb0e7}=_0xc76cab(_0x31be0f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x32c781,imageSources:_0x2990d7}=_0x22fbd5(_0x31be0f,_0x1fc3d8);_0x1135b3['model']['change'](_0x3d61d9=>{if('$graveyard'===_0x354297['root']['rootName']){_0x1135b3['execute']('insertImage',{'imageType':_0x354297['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x354297['getAttributes']()),'uploadcareImageId':_0x8db15d,'src':_0x32c781,'sources':_0x2990d7,'width':_0x1fc3d8,'height':_0x4cb0e7}});const _0x4a9eb1=_0x354297['getChildren']();_0x354297=_0x1135b3['model']['document']['selection']['getSelectedElement']();for(const _0x1af5e2 of _0x4a9eb1)_0x3d61d9['append'](_0x3d61d9['cloneElement'](_0x1af5e2),_0x354297);}else _0x3d61d9['setSelection'](_0x354297,'on'),_0x1135b3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x354297['getAttributes']()),'uploadcareImageId':_0x8db15d,'src':_0x32c781,'sources':_0x2990d7,'width':_0x1fc3d8,'height':_0x4cb0e7},_0x354297);_0x3d61d9['setSelection'](_0x354297,'on');});}async['_getImageAsFile'](_0x46b309){const _0x218727=_0x58e927['window'],_0x5238a1=_0x58e927['document']['location']['href'],_0x22e639=new _0x218727['URL'](_0x46b309['getAttribute']('src'),_0x5238a1);if('data:'===_0x22e639['protocol']){const _0x1a9b1d=_0x22e639['href']['split'](','),_0x2babd4=_0x1a9b1d[0x0]['match'](/:(.*?);/)[0x1],_0x5a6b11=_0x2babd4['split']('/')[0x1],_0x1c766d=_0x218727['atob'](_0x1a9b1d[_0x1a9b1d['length']-0x1]);let _0x607c9d=_0x1c766d['length'];const _0x30eee7=new _0x218727['Uint8Array'](_0x607c9d);for(;_0x607c9d--;)_0x30eee7[_0x607c9d]=_0x1c766d['charCodeAt'](_0x607c9d);return new _0x218727['File']([_0x30eee7],'image.'+_0x5a6b11,{'type':_0x2babd4});}const _0x2f84d2=_0x22e639['href']['split']('/'),_0x13f431=_0x2f84d2[_0x2f84d2['length']-0x1],_0x21188a=_0x13f431['split']('.')[0x1];return _0x218727['fetch'](_0x22e639['href'])['then'](_0x15af72=>_0x15af72['clone']()['blob']())['then'](_0x4542e2=>new _0x218727['File']([_0x4542e2],_0x13f431,{'type':'image/'+_0x21188a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x24b086,_0x19908e){const _0x515fe1=_0x2aed,_0x5e8c3c=_0x24b086();while(!![]){try{const _0x4bf4f2=parseInt(_0x515fe1(0x194))/0x1+parseInt(_0x515fe1(0x196))/0x2+-parseInt(_0x515fe1(0x19a))/0x3+-parseInt(_0x515fe1(0x192))/0x4*(-parseInt(_0x515fe1(0x190))/0x5)+-parseInt(_0x515fe1(0x1a1))/0x6+-parseInt(_0x515fe1(0x19d))/0x7*(parseInt(_0x515fe1(0x19f))/0x8)+parseInt(_0x515fe1(0x19b))/0x9*(parseInt(_0x515fe1(0x197))/0xa);if(_0x4bf4f2===_0x19908e)break;else _0x5e8c3c['push'](_0x5e8c3c['shift']());}catch(_0x1e2611){_0x5e8c3c['push'](_0x5e8c3c['shift']());}}}(_0x5358,0x408cc));import{View as _0x447507}from'ckeditor5/src/ui.js';function _0x2aed(_0x5c72d6,_0x229998){const _0x53585c=_0x5358();return _0x2aed=function(_0x2aedcb,_0x3b9eaa){_0x2aedcb=_0x2aedcb-0x190;let _0x36546c=_0x53585c[_0x2aedcb];return _0x36546c;},_0x2aed(_0x5c72d6,_0x229998);}export class UploadcareImageEditFormEditingView extends _0x447507{constructor(_0x206fec,_0x50f6ec){const _0x3d2eb0=_0x2aed;super(_0x206fec);const _0x59fdcd=this[_0x3d2eb0(0x1a0)];this[_0x3d2eb0(0x195)](_0x3d2eb0(0x193),''),this[_0x3d2eb0(0x19c)]({'tag':_0x3d2eb0(0x199),'attributes':{..._0x50f6ec,'class':[_0x3d2eb0(0x19e),_0x3d2eb0(0x191)],'ctx-name':_0x3d2eb0(0x198),'cdn-url':_0x59fdcd['to'](_0x3d2eb0(0x193))}});}}function _0x5358(){const _0x4f5068=['ck-uploadcare-theme','4aqgEbB','imageSrc','448920CIUaBt','set','275408SsxInw','1790vrarwU','image-edit','uc-cloud-image-editor','1148400ODWKnC','30834KEvihB','setTemplate','360577hQHtcz','uc-light','40DBKqhV','bindTemplate','3114408rEYpwU','1119705pusLsI'];_0x5358=function(){return _0x4f5068;};return _0x5358();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x1a029f}from'ckeditor5/src/icons.js';import{ButtonView as _0x1031b9,IconView as _0x12cd67,View as _0x1d48c1}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1d48c1{constructor(_0x3a7ac6){super(_0x3a7ac6);const t=_0x3a7ac6['t'];this['set']('errorType',null);const _0x4ead7d=new _0x1031b9(_0x3a7ac6);_0x4ead7d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4ead7d['withText']=!0x0,_0x4ead7d['class']='ck-button-action',_0x4ead7d['on']('execute',()=>{this['fire']('retry');}),_0x4ead7d['bind']('isVisible')['to'](this,'errorType',_0x11b3b2=>'NotFound'!==_0x11b3b2);const _0x3df718=new _0x12cd67();_0x3df718['content']=_0x1a029f,_0x3df718['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4a18a1=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':[_0x3df718,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4a18a1['to']('errorType',_0xdeb7fe=>t('NotFound'!==_0xdeb7fe?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4ead7d]},{'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 _0x323a81,View as _0x4bd617}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4bd617{constructor(_0xe6b8){super(_0xe6b8);const t=_0xe6b8['t'],_0x1ff2f0=this['bindTemplate'],_0x3794b7=new _0x323a81();_0x3794b7['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':[_0x3794b7,{'text':_0x1ff2f0['to']('imageUploadProgress',_0x1a659c=>t('Loading\x20image...')+'\x20('+(_0x1a659c||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xeb00f3=_0x557b;(function(_0x445868,_0x20faa6){const _0x4ad318=_0x557b,_0x1e43d6=_0x445868();while(!![]){try{const _0x496dc1=-parseInt(_0x4ad318(0x207))/0x1+-parseInt(_0x4ad318(0x1ff))/0x2+parseInt(_0x4ad318(0x1f9))/0x3*(parseInt(_0x4ad318(0x1eb))/0x4)+parseInt(_0x4ad318(0x1fb))/0x5+parseInt(_0x4ad318(0x203))/0x6+-parseInt(_0x4ad318(0x1e7))/0x7*(parseInt(_0x4ad318(0x1e8))/0x8)+parseInt(_0x4ad318(0x1ec))/0x9*(parseInt(_0x4ad318(0x206))/0xa);if(_0x496dc1===_0x20faa6)break;else _0x1e43d6['push'](_0x1e43d6['shift']());}catch(_0x3a2551){_0x1e43d6['push'](_0x1e43d6['shift']());}}}(_0x1bc6,0x68886));function _0x1bc6(){const _0x20e91f=['length','832766PKLaMm','nodeName','createCollection','_editingView','1488078TniOxp','retry','addedNodes','1345750LPHDym','499716OGbmQR','once','setTemplate','uploading','status','querySelector','ck-reset_all-excluded','toLowerCase','add','getFocusableElement','target','filter','ready','_focusableView','apply','detail','error','ck-uploadcare-form','div','addMany','_addErrorViewListeners','_waitForImageEditorComponent','_items','3678486PTgtWT','8rXZZIx','disconnect','element','260384GnYIEd','72gbTsSf','focus','observe','uc-cloud-image-editor','_loadingView','cancel','set','_addUploadcareImageEditorListeners','_errorView','render','addEventListener','clear','change:status','6PytuiR','_setView','2074790NYfjwH','fire','cdnUrl'];_0x1bc6=function(){return _0x20e91f;};return _0x1bc6();}import{View as _0x28eb50}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3b06aa}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x4192a8}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x419783}from'./uploadcareimageeditformeditingview.js';function _0x557b(_0x2352ec,_0x1e9561){const _0x1bc6db=_0x1bc6();return _0x557b=function(_0x557b80,_0x11b0fc){_0x557b80=_0x557b80-0x1d2;let _0x44227a=_0x1bc6db[_0x557b80];return _0x44227a;},_0x557b(_0x2352ec,_0x1e9561);}import{DialogFocusManagerView as _0x4389df}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4389df{[_0xeb00f3(0x1e6)];[_0xeb00f3(0x1f0)];[_0xeb00f3(0x1f4)];[_0xeb00f3(0x202)];[_0xeb00f3(0x1dd)];constructor(_0x131430,_0x97e817,_0x3caa38){const _0x3bd5e1=_0xeb00f3;super(_0x131430),this[_0x3bd5e1(0x1e6)]=this[_0x3bd5e1(0x201)](),this[_0x3bd5e1(0x1f0)]=new _0x3b06aa(_0x131430),this[_0x3bd5e1(0x1f4)]=new _0x4192a8(_0x131430),this[_0x3bd5e1(0x202)]=new _0x419783(_0x131430,_0x3caa38),this[_0x3bd5e1(0x1dd)]=new _0x28eb50(_0x131430),this[_0x3bd5e1(0x1dd)][_0x3bd5e1(0x1d2)](this[_0x3bd5e1(0x1d9)]()),this[_0x3bd5e1(0x1f2)](_0x3bd5e1(0x1d4),_0x97e817),this[_0x3bd5e1(0x1d2)]({'tag':_0x3bd5e1(0x1e2),'attributes':{'class':['ck',_0x3bd5e1(0x1d6),_0x3bd5e1(0x1e1)],'tabindex':'-1'},'children':this[_0x3bd5e1(0x1e6)]}),this[_0x3bd5e1(0x1fa)](),this[_0x3bd5e1(0x208)](_0x3bd5e1(0x1f5),()=>{const _0x247b73=_0x3bd5e1;this[_0x247b73(0x1e5)](this[_0x247b73(0x1ea)],_0x24f6dc=>{const _0x261c5c=_0x247b73;this[_0x261c5c(0x1f3)](_0x24f6dc);});}),this['on'](_0x3bd5e1(0x1f8),()=>{const _0x35cdd2=_0x3bd5e1;this[_0x35cdd2(0x1fa)]();}),this[_0x3bd5e1(0x1e4)]();}[_0xeb00f3(0x1ed)](){const _0x119491=_0xeb00f3;this[_0x119491(0x1ea)][_0x119491(0x1ed)]();}[_0xeb00f3(0x1fa)](){const _0x4b7a45=_0xeb00f3;switch(this[_0x4b7a45(0x1e6)][_0x4b7a45(0x1f7)](),this[_0x4b7a45(0x1d4)]){case _0x4b7a45(0x1d3):this[_0x4b7a45(0x1e6)][_0x4b7a45(0x1d8)](this[_0x4b7a45(0x1f0)]);break;case _0x4b7a45(0x1e0):this[_0x4b7a45(0x1e6)][_0x4b7a45(0x1d8)](this[_0x4b7a45(0x1f4)]);break;case _0x4b7a45(0x1dc):this[_0x4b7a45(0x1e6)][_0x4b7a45(0x1e3)]([this[_0x4b7a45(0x202)],this[_0x4b7a45(0x1dd)]]);}}[_0xeb00f3(0x1e5)](_0x570666,_0x1adeae){const _0x15fce0=_0xeb00f3,_0x4e59f7=_0x15fce0(0x1ef),_0x5d8305=_0x570666[_0x15fce0(0x1d5)](_0x4e59f7);if(_0x5d8305)return _0x1adeae(_0x5d8305);const _0x582109=new MutationObserver(_0x2e8419=>{const _0x201019=_0x15fce0,_0x242a9b=_0x2e8419[_0x201019(0x1db)](_0x15d526=>_0x15d526[_0x201019(0x1da)]===_0x570666&&_0x15d526[_0x201019(0x205)][_0x201019(0x1fe)]>0x0&&_0x15d526[_0x201019(0x205)][0x0][_0x201019(0x200)][_0x201019(0x1d7)]()===_0x4e59f7);_0x242a9b[_0x201019(0x1fe)]&&(_0x582109[_0x201019(0x1e9)](),_0x1adeae(_0x242a9b[0x0][_0x201019(0x205)][0x0]));});_0x582109[_0x15fce0(0x1ee)](_0x570666,{'childList':!0x0,'subtree':!0x0});}[_0xeb00f3(0x1f3)](_0x5e2559){const _0x50b0ec=_0xeb00f3;_0x5e2559[_0x50b0ec(0x1f6)](_0x50b0ec(0x1de),_0x10261e=>{const _0x4dbe21=_0x50b0ec;this[_0x4dbe21(0x1fc)](_0x4dbe21(0x1de),{'imageSrc':_0x10261e[_0x4dbe21(0x1df)][_0x4dbe21(0x1fd)]});}),_0x5e2559[_0x50b0ec(0x1f6)](_0x50b0ec(0x1f1),()=>{const _0x1b8146=_0x50b0ec;this[_0x1b8146(0x1fc)](_0x1b8146(0x1f1));});}[_0xeb00f3(0x1e4)](){const _0x765fa=_0xeb00f3;this[_0x765fa(0x1f4)]['on'](_0x765fa(0x204),()=>{const _0x1d1900=_0x765fa;this[_0x1d1900(0x1fc)](_0x1d1900(0x204));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45d8e8=_0x2c26;function _0x2c26(_0x4032bb,_0x43961f){const _0x3f3e10=_0x3f3e();return _0x2c26=function(_0x2c264c,_0x1702da){_0x2c264c=_0x2c264c-0x79;let _0x5b5190=_0x3f3e10[_0x2c264c];return _0x5b5190;},_0x2c26(_0x4032bb,_0x43961f);}(function(_0x298077,_0x43ed45){const _0x5b36af=_0x2c26,_0x2c6ba0=_0x298077();while(!![]){try{const _0x5d186a=-parseInt(_0x5b36af(0x89))/0x1+-parseInt(_0x5b36af(0x8e))/0x2+-parseInt(_0x5b36af(0x91))/0x3+-parseInt(_0x5b36af(0x83))/0x4+parseInt(_0x5b36af(0x97))/0x5*(parseInt(_0x5b36af(0x95))/0x6)+-parseInt(_0x5b36af(0x8f))/0x7*(parseInt(_0x5b36af(0x80))/0x8)+parseInt(_0x5b36af(0x8d))/0x9*(parseInt(_0x5b36af(0x94))/0xa);if(_0x5d186a===_0x43ed45)break;else _0x2c6ba0['push'](_0x2c6ba0['shift']());}catch(_0x594030){_0x2c6ba0['push'](_0x2c6ba0['shift']());}}}(_0x3f3e,0xb3e10));import{Command as _0x3c15a8}from'ckeditor5/src/core.js';import{Dialog as _0x5a0735}from'ckeditor5/src/ui.js';function _0x3f3e(){const _0x5cb240=['910695pdxMFc','bind','model','set','117GltAwc','230792ZfvRbq','24423xrkZTS','getSelectedElement','2381361naBauq','uploadcare.allowExternalImagesEditing','imageEditController','3321170OtOSYF','3378byTirP','_isEditable','2815lmFPVd','get','requires','plugins','isEnabled','imageInline','editor','refresh','execute','1528eepreh','unbind','document','5645716hclwAF','config','isActive','selection','element','imageBlock'];_0x3f3e=function(){return _0x5cb240;};return _0x3f3e();}import{UploadcareImageEditController as _0x7d52c}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1c67f9}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3c15a8{[_0x45d8e8(0x93)];static get[_0x45d8e8(0x79)](){return[_0x5a0735];}[_0x45d8e8(0x96)];constructor(_0x58ecd6){const _0x5a0d73=_0x45d8e8;super(_0x58ecd6),this[_0x5a0d73(0x93)]=void 0x0,this[_0x5a0d73(0x96)]=_0x1c67f9(_0x58ecd6[_0x5a0d73(0x84)][_0x5a0d73(0x98)](_0x5a0d73(0x92))||[]),this[_0x5a0d73(0x8c)]({'isActive':!0x1});}[_0x45d8e8(0x7e)](){const _0x57211c=_0x45d8e8,_0x55aaf6=this[_0x57211c(0x7d)][_0x57211c(0x8b)][_0x57211c(0x82)][_0x57211c(0x86)][_0x57211c(0x90)]();this[_0x57211c(0x7b)]=this[_0x57211c(0x96)](_0x55aaf6);}[_0x45d8e8(0x7f)](){const _0x5c9950=_0x45d8e8;this[_0x5c9950(0x93)]&&(this[_0x5c9950(0x81)](_0x5c9950(0x85)),this[_0x5c9950(0x93)]=void 0x0);const _0x5eae14=this[_0x5c9950(0x7d)][_0x5c9950(0x8b)][_0x5c9950(0x82)][_0x5c9950(0x86)][_0x5c9950(0x90)]();_0x5eae14&&(_0x5eae14['is'](_0x5c9950(0x87),_0x5c9950(0x88))||_0x5eae14['is'](_0x5c9950(0x87),_0x5c9950(0x7c)))&&(this[_0x5c9950(0x93)]=new _0x7d52c(this[_0x5c9950(0x7d)],this[_0x5c9950(0x7d)][_0x5c9950(0x7a)][_0x5c9950(0x98)](_0x5a0735),_0x5eae14),this[_0x5c9950(0x8a)](_0x5c9950(0x85))['to'](this[_0x5c9950(0x93)],_0x5c9950(0x85)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2db45a=_0x5173;function _0x5c7a(){const _0x27961d=['init','requires','50TqQegB','16YdHrkp','add','1374kOeaQh','5645UVDtIU','54379pnLdQz','isPremiumPlugin','uploadcareImageReplace','isOfficialPlugin','uploadcareImageEdit','ImageEditing','1339765XPgKXf','2frdKcC','228330BdpkbH','UploadcareImageEditEditing','276Knscrv','163339KJlztx','commands','17613dNibZY','36yAKyOV','pluginName','ImageUtils','60222SkgZbC'];_0x5c7a=function(){return _0x27961d;};return _0x5c7a();}(function(_0x2c1032,_0x4e3dda){const _0x353296=_0x5173,_0x210b61=_0x2c1032();while(!![]){try{const _0x198ecb=parseInt(_0x353296(0x1a8))/0x1*(-parseInt(_0x353296(0x199))/0x2)+-parseInt(_0x353296(0x1ae))/0x3*(-parseInt(_0x353296(0x1af))/0x4)+-parseInt(_0x353296(0x1a0))/0x5*(parseInt(_0x353296(0x19f))/0x6)+parseInt(_0x353296(0x1a7))/0x7+-parseInt(_0x353296(0x19d))/0x8*(-parseInt(_0x353296(0x1a9))/0x9)+parseInt(_0x353296(0x19c))/0xa*(parseInt(_0x353296(0x1ac))/0xb)+parseInt(_0x353296(0x1ab))/0xc*(parseInt(_0x353296(0x1a1))/0xd);if(_0x198ecb===_0x4e3dda)break;else _0x210b61['push'](_0x210b61['shift']());}catch(_0x336721){_0x210b61['push'](_0x210b61['shift']());}}}(_0x5c7a,0x23ce9));import{Plugin as _0x315764}from'ckeditor5/src/core.js';import{Notification as _0x48d99d}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x3a9f65}from'./uploadcareimageeditcommand.js';function _0x5173(_0x2d119c,_0x440dda){const _0x5c7afa=_0x5c7a();return _0x5173=function(_0x517309,_0x17fcc8){_0x517309=_0x517309-0x197;let _0x1a4cc0=_0x5c7afa[_0x517309];return _0x1a4cc0;},_0x5173(_0x2d119c,_0x440dda);}import{UploadcareImageReplaceCommand as _0x3e7761}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x389c38}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x315764{static get[_0x2db45a(0x197)](){const _0x1ee6a3=_0x2db45a;return _0x1ee6a3(0x1aa);}static get[_0x2db45a(0x19b)](){const _0x3deddb=_0x2db45a;return[_0x389c38,_0x48d99d,_0x3deddb(0x198),_0x3deddb(0x1a6)];}static get[_0x2db45a(0x1a4)](){return!0x0;}static get[_0x2db45a(0x1a2)](){return!0x0;}[_0x2db45a(0x19a)](){const _0x1818aa=_0x2db45a,{editor:_0x6ad844}=this;_0x6ad844[_0x1818aa(0x1ad)][_0x1818aa(0x19e)](_0x1818aa(0x1a5),new _0x3a9f65(_0x6ad844)),_0x6ad844[_0x1818aa(0x1ad)][_0x1818aa(0x19e)](_0x1818aa(0x1a3),new _0x3e7761(_0x6ad844));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x519b42}from'ckeditor5/src/core.js';import{ButtonView as _0x48fdc1}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x20f3ec}from'ckeditor5/src/icons.js';import{createElement as _0x4405bb}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 _0x519b42{['_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 _0x58078d=this['editor'];_0x58078d['ui']['componentFactory']['add']('uploadcareImageEdit',_0xe93170=>{const _0x432386=_0x58078d['commands']['get']('uploadcareImageEdit'),_0x3d9ebf=new _0x48fdc1(_0xe93170),t=_0xe93170['t'];return _0x3d9ebf['set']({'icon':_0x20f3ec,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3d9ebf['bind']('isEnabled')['to'](_0x432386),_0x3d9ebf['bind']('isOn')['to'](_0x432386,'isActive'),this['listenTo'](_0x3d9ebf,'execute',()=>{_0x58078d['execute']('uploadcareImageEdit'),_0x58078d['editing']['view']['focus']();}),_0x3d9ebf;}),this['_initConfig']();}['_initConfig'](){const _0x14f035=_0x4405bb(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x14f035),this['listenTo'](this['editor'],'destroy',()=>{_0x14f035['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58da66=_0x5d16;function _0xa868(){const _0x5c3ec4=['model','execute','change','imageInline','633382ntryiV','sizes','889rQfQkj','20NtUBin','256968SdxPsl','element','editor','refresh','4916010kOqRXS','3tKWhDA','143118tVuPoO','getSelectedElement','imageBlock','15688UQQugh','isEnabled','selection','19364KLVxho','setAttributes','1656117GexzlR','document','srcset','removeAttribute'];_0xa868=function(){return _0x5c3ec4;};return _0xa868();}(function(_0x15fd11,_0x2f34a3){const _0x13b665=_0x5d16,_0x5f773e=_0x15fd11();while(!![]){try{const _0x50da7d=-parseInt(_0x13b665(0x152))/0x1+-parseInt(_0x13b665(0x162))/0x2*(-parseInt(_0x13b665(0x151))/0x3)+-parseInt(_0x13b665(0x158))/0x4*(-parseInt(_0x13b665(0x14b))/0x5)+-parseInt(_0x13b665(0x14c))/0x6+parseInt(_0x13b665(0x14a))/0x7*(-parseInt(_0x13b665(0x155))/0x8)+-parseInt(_0x13b665(0x15a))/0x9+parseInt(_0x13b665(0x150))/0xa;if(_0x50da7d===_0x2f34a3)break;else _0x5f773e['push'](_0x5f773e['shift']());}catch(_0x27fc9d){_0x5f773e['push'](_0x5f773e['shift']());}}}(_0xa868,0x32f0a));import{Command as _0x29e06e}from'ckeditor5/src/core.js';function _0x5d16(_0x4dbeb0,_0x14589b){const _0xa8683e=_0xa868();return _0x5d16=function(_0x5d1696,_0x468e52){_0x5d1696=_0x5d1696-0x14a;let _0x5d56a0=_0xa8683e[_0x5d1696];return _0x5d56a0;},_0x5d16(_0x4dbeb0,_0x14589b);}export class UploadcareImageReplaceCommand extends _0x29e06e{[_0x58da66(0x14f)](){const _0x220315=_0x58da66,_0x2e8889=this[_0x220315(0x14e)][_0x220315(0x15e)][_0x220315(0x15b)][_0x220315(0x157)][_0x220315(0x153)]();this[_0x220315(0x156)]=Boolean(_0x2e8889&&(_0x2e8889['is'](_0x220315(0x14d),_0x220315(0x154))||_0x2e8889['is'](_0x220315(0x14d),_0x220315(0x161))));}[_0x58da66(0x15f)](_0x351e19){const _0x3d2ef8=_0x58da66,_0x45d0a4=this[_0x3d2ef8(0x14e)][_0x3d2ef8(0x15e)][_0x3d2ef8(0x15b)][_0x3d2ef8(0x157)][_0x3d2ef8(0x153)]();this[_0x3d2ef8(0x14e)][_0x3d2ef8(0x15e)][_0x3d2ef8(0x160)](_0x11277e=>{const _0x3ae657=_0x3d2ef8;_0x11277e[_0x3ae657(0x159)](_0x351e19,_0x45d0a4),_0x11277e[_0x3ae657(0x15d)](_0x3ae657(0x15c),_0x45d0a4),_0x11277e[_0x3ae657(0x15d)](_0x3ae657(0x163),_0x45d0a4);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x27253c=_0x2338;(function(_0x25719c,_0x4ea922){var _0x1df163=_0x2338,_0xa1b832=_0x25719c();while(!![]){try{var _0x5377dc=parseInt(_0x1df163(0x18b))/0x1*(parseInt(_0x1df163(0x182))/0x2)+parseInt(_0x1df163(0x188))/0x3+parseInt(_0x1df163(0x18f))/0x4*(-parseInt(_0x1df163(0x18e))/0x5)+parseInt(_0x1df163(0x181))/0x6*(-parseInt(_0x1df163(0x180))/0x7)+parseInt(_0x1df163(0x18a))/0x8*(parseInt(_0x1df163(0x18d))/0x9)+parseInt(_0x1df163(0x189))/0xa+-parseInt(_0x1df163(0x186))/0xb*(parseInt(_0x1df163(0x187))/0xc);if(_0x5377dc===_0x4ea922)break;else _0xa1b832['push'](_0xa1b832['shift']());}catch(_0x3c3be4){_0xa1b832['push'](_0xa1b832['shift']());}}}(_0x359e,0x56f7c));import{Plugin as _0x12b03e}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x578508}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x2338(_0x14759b,_0x23c852){var _0x359e75=_0x359e();return _0x2338=function(_0x233872,_0x196dd0){_0x233872=_0x233872-0x180;var _0x2aa8ed=_0x359e75[_0x233872];return _0x2aa8ed;},_0x2338(_0x14759b,_0x23c852);}import{UploadcareImageEditUI as _0x55bcc5}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x12b03e{static get[_0x27253c(0x183)](){var _0x53a9e4=_0x27253c;return _0x53a9e4(0x185);}static get[_0x27253c(0x18c)](){return[_0x578508,_0x55bcc5];}static get[_0x27253c(0x190)](){return!0x0;}static get[_0x27253c(0x184)](){return!0x0;}}function _0x359e(){var _0x3c05fb=['105014hZyZIt','pluginName','isPremiumPlugin','UploadcareImageEdit','11sQIwBt','5899668DRCrji','1393239ibPDSY','274440IHPrEy','184QwhDBT','8tIDWHJ','requires','173457TCbhIx','200oESLBo','48672VUXiWM','isOfficialPlugin','21RaSYJD','41226HHYJrm'];_0x359e=function(){return _0x3c05fb;};return _0x359e();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x489f68=_0x2a2d;(function(_0x184efb,_0x485600){const _0x32917b=_0x2a2d,_0x1ecdd1=_0x184efb();while(!![]){try{const _0x21b68d=parseInt(_0x32917b(0x13e))/0x1*(-parseInt(_0x32917b(0x155))/0x2)+parseInt(_0x32917b(0x134))/0x3*(parseInt(_0x32917b(0x145))/0x4)+parseInt(_0x32917b(0x167))/0x5*(-parseInt(_0x32917b(0x158))/0x6)+-parseInt(_0x32917b(0x126))/0x7*(-parseInt(_0x32917b(0x169))/0x8)+-parseInt(_0x32917b(0x127))/0x9+parseInt(_0x32917b(0x166))/0xa+parseInt(_0x32917b(0x153))/0xb*(parseInt(_0x32917b(0x123))/0xc);if(_0x21b68d===_0x485600)break;else _0x1ecdd1['push'](_0x1ecdd1['shift']());}catch(_0x38d6b3){_0x1ecdd1['push'](_0x1ecdd1['shift']());}}}(_0x5149,0x5452c));import{Plugin as _0x49644a}from'ckeditor5/src/core.js';import{IconDropbox as _0x4ac83f,IconFacebook as _0x45c676,IconGoogleDrive as _0x4148de,IconGooglePhotos as _0x3324d8,IconUploadcareImageUpload as _0x4fcc01,IconUploadcareLink as _0x222d51,IconOneDrive as _0x4a1be3}from'ckeditor5/src/icons.js';import{ButtonView as _0x2a7ca1,MenuBarMenuListItemButtonView as _0x31fd42}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x4b079b}from'./uploadcareconfig.js';import{getTranslation as _0x4f815c}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x5149(){const _0xb8cf1e=['plugins','_createButton','uploadcareLicenseKeyValid','label','Uploadcare','invalid','uploadcareLicenseKeyTrialLimit','uploadcare','isEnabled','has','uploadcareLicenseKeyDomainLimit','314149mPNWKy','forEach','2RuRnCu','_normalizeConfigSourceList','execute','731262HlKYHz','UploadcareUI','ImageInsertUI','_createToolbarButton','map','isPremiumPlugin','assetManager','Facebook','expired','Replace','trialLimit','editor','uploadcareLicenseKeyEvaluationLimit','entries','4187200nUWdoj','15zeCqLB','shortText','288JLvInM','_getIntegrationKey','usageLimit','_createMenuBarButtons','reduce','uploadcareLicenseKeyNotAllowed','destroy','bind','locale','domainLimit','_showLicenseError','_licenseKeyCheckInterval','afterInit','300cSGMKj','isImageSelected','GDrive','28826xvLBTB','4656285DDWrPK','pluginName','URL','text','registerIntegration','licenseKey','OneDrive','isOfficialPlugin','commands','uploadcareLicenseKeyUsageLimit','url','GPhotos','push','1220046dhKyBq','Insert','Dropbox','Local','evaluationLimit','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyExpired','type','upload','withText','459241ABOXKZ','featureNotAllowed','icon','init','uploadcare.uploader.sourceList','config','tooltip','4oanNoD','get','_createDropdownButtons'];_0x5149=function(){return _0xb8cf1e;};return _0x5149();}import'../theme/uploadcareimageedit.css';function _0x2a2d(_0x52dba4,_0x5c2bc4){const _0x514906=_0x5149();return _0x2a2d=function(_0x2a2dcb,_0x1f53fb){_0x2a2dcb=_0x2a2dcb-0x120;let _0x3b656d=_0x514906[_0x2a2dcb];return _0x3b656d;},_0x2a2d(_0x52dba4,_0x5c2bc4);}export class UploadcareUI extends _0x49644a{[_0x489f68(0x12c)];[_0x489f68(0x121)];static get[_0x489f68(0x128)](){const _0xbd7c38=_0x489f68;return _0xbd7c38(0x159);}static get[_0x489f68(0x12e)](){return!0x0;}static get[_0x489f68(0x15d)](){return!0x0;}[_0x489f68(0x141)](){const _0x11a558=_0x489f68;this[_0x11a558(0x12c)]=this[_0x11a558(0x163)][_0x11a558(0x143)][_0x11a558(0x146)](_0x11a558(0x12c));const _0x8a7271=this[_0x11a558(0x163)];this[_0x11a558(0x121)]=setInterval(()=>{const _0x31f36b=_0x11a558;let _0x4acf37;for(const _0x445640 in _0x8a7271){const _0x33be90=_0x445640,_0x210c67=_0x8a7271[_0x33be90];if(_0x31f36b(0x14a)==_0x210c67||_0x31f36b(0x139)==_0x210c67||_0x31f36b(0x13a)==_0x210c67||_0x31f36b(0x152)==_0x210c67||_0x31f36b(0x16e)==_0x210c67||_0x31f36b(0x164)==_0x210c67||_0x31f36b(0x14e)==_0x210c67||_0x31f36b(0x130)==_0x210c67){delete _0x8a7271[_0x33be90],_0x4acf37=_0x210c67,clearInterval(this[_0x31f36b(0x121)]),this[_0x31f36b(0x121)]=void 0x0;break;}}_0x31f36b(0x139)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x14d)),_0x31f36b(0x13a)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x160)),_0x31f36b(0x152)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x172)),_0x31f36b(0x16e)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x13f),_0x31f36b(0x14c)),_0x31f36b(0x164)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x138)),_0x31f36b(0x14e)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x162)),_0x31f36b(0x130)==_0x4acf37&&_0x8a7271[_0x31f36b(0x120)](_0x31f36b(0x16b));},0x3e8);}[_0x489f68(0x122)](){const _0x3f6f9c=_0x489f68,{editor:_0x58d712}=this,_0x541a28=_0x58d712[_0x3f6f9c(0x12f)][_0x3f6f9c(0x146)](_0x3f6f9c(0x14f));if(!_0x541a28)return;const _0x94f879=this[_0x3f6f9c(0x156)](_0x58d712[_0x3f6f9c(0x143)][_0x3f6f9c(0x146)](_0x3f6f9c(0x142)))[_0x3f6f9c(0x16d)]((_0x17cd8d,_0x261bbd)=>{const _0x11fdd7=_0x3f6f9c,_0x504d2b=this[_0x11fdd7(0x16a)](_0x261bbd[_0x11fdd7(0x13b)]);return _0x17cd8d[_0x504d2b]||(_0x17cd8d[_0x504d2b]=[]),_0x17cd8d[_0x504d2b][_0x11fdd7(0x133)](_0x261bbd),_0x17cd8d;},{});_0x58d712[_0x3f6f9c(0x148)][_0x3f6f9c(0x151)](_0x3f6f9c(0x15a))&&_0x58d712[_0x3f6f9c(0x12f)][_0x3f6f9c(0x146)](_0x3f6f9c(0x14f))&&Object[_0x3f6f9c(0x165)](_0x94f879)[_0x3f6f9c(0x154)](([_0x3314be,_0x41fe3d])=>{const _0x327701=_0x3f6f9c;_0x58d712[_0x327701(0x148)][_0x327701(0x146)](_0x327701(0x15a))[_0x327701(0x12b)]({'name':_0x3314be,'observable':()=>_0x541a28,'buttonViewCreator':()=>this[_0x327701(0x15b)](_0x41fe3d),'formViewCreator':()=>this[_0x327701(0x147)](_0x41fe3d),'menuBarButtonViewCreator':()=>this[_0x327701(0x16c)](_0x41fe3d),'override':_0x327701(0x15e)!==_0x3314be});});}[_0x489f68(0x16f)](){const _0x44fa10=_0x489f68;super[_0x44fa10(0x16f)](),this[_0x44fa10(0x121)]&&clearInterval(this[_0x44fa10(0x121)]);}[_0x489f68(0x156)](_0x1da575){const _0x10d0ea=_0x489f68,{locale:_0xa4aaa0}=this[_0x10d0ea(0x163)];return _0x1da575[_0x10d0ea(0x15c)](_0x4f8514=>{const _0x2a1a1f=_0x10d0ea,_0x154a29=_0x4f815c(_0xa4aaa0,_0x4f8514,_0x2a1a1f(0x135));switch(_0x4f8514){case _0x4b079b[_0x2a1a1f(0x137)]:return{'icon':_0x4fcc01,'type':_0x4b079b[_0x2a1a1f(0x137)],..._0x154a29};case _0x4b079b[_0x2a1a1f(0x129)]:return{'icon':_0x222d51,'type':_0x4b079b[_0x2a1a1f(0x129)],..._0x154a29};case _0x4b079b[_0x2a1a1f(0x136)]:return{'icon':_0x4ac83f,'type':_0x4b079b[_0x2a1a1f(0x136)],..._0x154a29};case _0x4b079b[_0x2a1a1f(0x15f)]:return{'icon':_0x45c676,'type':_0x4b079b[_0x2a1a1f(0x15f)],..._0x154a29};case _0x4b079b[_0x2a1a1f(0x125)]:return{'icon':_0x4148de,'type':_0x4b079b[_0x2a1a1f(0x125)],..._0x154a29};case _0x4b079b[_0x2a1a1f(0x132)]:return{'icon':_0x3324d8,'type':_0x4b079b[_0x2a1a1f(0x132)],..._0x154a29};case _0x4b079b[_0x2a1a1f(0x12d)]:return{'icon':_0x4a1be3,'type':_0x4b079b[_0x2a1a1f(0x12d)],..._0x154a29};}});}[_0x489f68(0x16a)](_0x14482a){const _0x41c278=_0x489f68;switch(_0x14482a){case _0x4b079b[_0x41c278(0x137)]:return _0x41c278(0x13c);case _0x4b079b[_0x41c278(0x129)]:return _0x41c278(0x131);default:return _0x41c278(0x15e);}}[_0x489f68(0x149)](_0x362834,_0x50fa65){const _0x1ef24c=_0x489f68,_0x219e8d=this[_0x1ef24c(0x163)],_0x22dbdd=new _0x362834(_0x219e8d[_0x1ef24c(0x171)]),_0x2a5b70=_0x219e8d[_0x1ef24c(0x12f)][_0x1ef24c(0x146)](_0x1ef24c(0x14f));return _0x22dbdd[_0x1ef24c(0x170)](_0x1ef24c(0x150))['to'](_0x2a5b70),_0x22dbdd['on'](_0x1ef24c(0x157),()=>{const _0x5642ee=_0x1ef24c;_0x2a5b70[_0x5642ee(0x157)](_0x50fa65);}),_0x22dbdd;}[_0x489f68(0x15b)](_0x486173){const _0x53230c=_0x489f68,{locale:_0x10c333}=this[_0x53230c(0x163)],_0x1b8daf=this[_0x53230c(0x163)][_0x53230c(0x148)][_0x53230c(0x146)](_0x53230c(0x15a)),_0x5affaf=_0x486173[0x0],_0x12614a=this[_0x53230c(0x149)](_0x2a7ca1,_0x5affaf[_0x53230c(0x13b)]);return _0x12614a[_0x53230c(0x140)]=_0x5affaf[_0x53230c(0x140)],_0x12614a[_0x53230c(0x170)](_0x53230c(0x14b))['to'](_0x1b8daf,_0x53230c(0x124),_0x7d8d5b=>_0x4f815c(_0x10c333,_0x5affaf[_0x53230c(0x13b)],_0x7d8d5b?_0x53230c(0x161):_0x53230c(0x135))[_0x53230c(0x12a)]),_0x12614a[_0x53230c(0x144)]=!0x0,_0x12614a;}[_0x489f68(0x147)](_0x498179){const _0x2c060a=_0x489f68,{locale:_0x18e7e4}=this[_0x2c060a(0x163)],_0x37b695=this[_0x2c060a(0x163)][_0x2c060a(0x148)][_0x2c060a(0x146)](_0x2c060a(0x15a));return _0x498179[_0x2c060a(0x15c)](_0x2803f3=>{const _0x59f0c1=_0x2c060a,_0x7b2f3d=this[_0x59f0c1(0x149)](_0x2a7ca1,_0x2803f3[_0x59f0c1(0x13b)]);return _0x7b2f3d[_0x59f0c1(0x13d)]=!0x0,_0x7b2f3d[_0x59f0c1(0x140)]=_0x2803f3[_0x59f0c1(0x140)],_0x7b2f3d[_0x59f0c1(0x170)](_0x59f0c1(0x14b))['to'](_0x37b695,_0x59f0c1(0x124),_0x581df3=>_0x4f815c(_0x18e7e4,_0x2803f3[_0x59f0c1(0x13b)],_0x581df3?_0x59f0c1(0x161):_0x59f0c1(0x135))[_0x59f0c1(0x12a)]),_0x7b2f3d;});}[_0x489f68(0x16c)](_0x5c5bb7){const _0xfd7e2d=_0x489f68;return _0x5c5bb7[_0xfd7e2d(0x15c)](_0x535ea2=>{const _0x4e1168=_0xfd7e2d,_0x3e24dc=this[_0x4e1168(0x149)](_0x31fd42,_0x535ea2[_0x4e1168(0x13b)]);return _0x3e24dc[_0x4e1168(0x140)]=_0x535ea2[_0x4e1168(0x140)],_0x3e24dc[_0x4e1168(0x14b)]=_0x535ea2[_0x4e1168(0x168)],_0x3e24dc;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2197f9}from'ckeditor5/src/core.js';import{FileRepository as _0x56431d}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x5d29a3}from'./uploadcareediting.js';import{UploadUtils as _0x472f0f}from'./utils/uploadutils.js';import{getImageUrls as _0x304101}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x2197f9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x56431d,_0x5d29a3];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5deed2=this['editor'];if(!!!_0x5deed2['config']['get']('uploadcare'))return;_0x5deed2['plugins']['get'](_0x56431d)['createUploadAdapter']=_0x1b346c=>new k(_0x1b346c,_0x5deed2),_0x5deed2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x327d83,{imageElement:_0x2716c8,data:_0x403eb6})=>{_0x5deed2['model']['change'](_0x10738e=>{_0x10738e['setAttribute']('uploadcareImageId',_0x403eb6['uploadcareImageId'],_0x2716c8);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x20f68f,_0x455810){this['loader']=_0x20f68f,this['editor']=_0x455810,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x49f474=await this['loader']['file'];return _0x472f0f['upload']({'file':_0x49f474,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4f9295=>{_0x4f9295&&_0x4f9295['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4f9295['value']);}})['then'](async _0x12e57c=>{const {imageFallbackUrl:_0x3b5838,imageSources:_0x3d4a0f}=_0x304101(_0x12e57c['cdnUrl'],_0x12e57c['imageInfo']['width']);return{'uploadcareImageId':_0x12e57c['uuid'],'default':_0x3b5838,'sources':_0x3d4a0f};})['catch'](()=>{const _0x4da106=t('Cannot\x20upload\x20file:')+('\x20'+_0x49f474['name']+'.');return Promise['reject'](_0x4da106);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x26dd2d}from'../uploadcareconfig.js';export function getTranslation(_0x4821bf,_0x2b13f1,_0x55148a){const t=_0x4821bf['t'],_0x531a92=_0x4821bf['t'];switch(_0x2b13f1){case _0x26dd2d['Local']:return{'text':_0x531a92('Insert'===_0x55148a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x531a92('From\x20computer')};case _0x26dd2d['URL']:return{'text':'Insert'===_0x55148a?_0x531a92('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x531a92('Via\x20URL')};case _0x26dd2d['Dropbox']:return{'text':t('Insert'===_0x55148a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x26dd2d['Facebook']:return{'text':t('Insert'===_0x55148a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x26dd2d['GDrive']:return{'text':t('Insert'===_0x55148a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x26dd2d['GPhotos']:return{'text':t('Insert'===_0x55148a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x26dd2d['OneDrive']:return{'text':t('Insert'===_0x55148a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2b13f1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x812741=_0x47c9;(function(_0x2474f7,_0x39d300){var _0x4194e6=_0x47c9,_0x12db0d=_0x2474f7();while(!![]){try{var _0x170416=parseInt(_0x4194e6(0x1a1))/0x1*(-parseInt(_0x4194e6(0x199))/0x2)+parseInt(_0x4194e6(0x19c))/0x3*(parseInt(_0x4194e6(0x1a2))/0x4)+parseInt(_0x4194e6(0x190))/0x5+-parseInt(_0x4194e6(0x19d))/0x6*(parseInt(_0x4194e6(0x194))/0x7)+parseInt(_0x4194e6(0x195))/0x8+parseInt(_0x4194e6(0x19b))/0x9+-parseInt(_0x4194e6(0x198))/0xa*(parseInt(_0x4194e6(0x192))/0xb);if(_0x170416===_0x39d300)break;else _0x12db0d['push'](_0x12db0d['shift']());}catch(_0x113d66){_0x12db0d['push'](_0x12db0d['shift']());}}}(_0x578e,0xb9a85));import{FocusTracker as _0x2c0b83}from'ckeditor5/src/utils.js';import{View as _0x1934c1,FocusCycler as _0x34ae07}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1934c1{[_0x812741(0x19e)];[_0x812741(0x197)];constructor(_0x2ae3b3){var _0x4859e3=_0x812741;super(_0x2ae3b3),this[_0x4859e3(0x19e)]=new _0x2c0b83(),this[_0x4859e3(0x197)]=new _0x34ae07({'focusables':this[_0x4859e3(0x196)](),'focusTracker':this[_0x4859e3(0x19e)]});}[_0x812741(0x1a0)](){var _0x14d12e=_0x812741;return{'tag':_0x14d12e(0x19a),'attributes':{'aria-hidden':_0x14d12e(0x1a3),'tabindex':'0'},'on':{'focus':this[_0x14d12e(0x19f)]['to'](()=>{var _0x3d6e95=_0x14d12e;this[_0x3d6e95(0x197)][_0x3d6e95(0x193)](_0x3d6e95(0x191));})}};}}function _0x47c9(_0x292295,_0x2bb204){var _0x578e2c=_0x578e();return _0x47c9=function(_0x47c95,_0x3e9e0a){_0x47c95=_0x47c95-0x190;var _0x45176c=_0x578e2c[_0x47c95];return _0x45176c;},_0x47c9(_0x292295,_0x2bb204);}function _0x578e(){var _0x544410=['focusTracker','bindTemplate','getFocusableElement','34zcYTVS','416308yTqBmg','true','1206410nYBwhQ','forwardCycle','22xfZstu','fire','28sgXBdb','3369376kUyHSP','createCollection','focusCycler','413960xvdxTP','46286unodrv','div','7039764bbuSnW','27YnOiNH','1126854ubuJOb'];_0x578e=function(){return _0x544410;};return _0x578e();}
|