@ckeditor/ckeditor5-uploadcare 47.0.0-alpha.5 → 47.0.0-alpha.6
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 _0x1b6d66=_0x4df1;function _0x4df1(_0x330f2f,_0x5491f8){const _0x2ee53f=_0x2ee5();return _0x4df1=function(_0x4df194,_0x33891e){_0x4df194=_0x4df194-0x7e;let _0x2396bf=_0x2ee53f[_0x4df194];return _0x2396bf;},_0x4df1(_0x330f2f,_0x5491f8);}(function(_0x4fb164,_0x13fefe){const _0x19a510=_0x4df1,_0x310824=_0x4fb164();while(!![]){try{const _0x83e828=parseInt(_0x19a510(0x7f))/0x1+parseInt(_0x19a510(0x7e))/0x2*(-parseInt(_0x19a510(0xae))/0x3)+-parseInt(_0x19a510(0xbd))/0x4+parseInt(_0x19a510(0xa4))/0x5+-parseInt(_0x19a510(0xb4))/0x6*(parseInt(_0x19a510(0xcb))/0x7)+parseInt(_0x19a510(0xb1))/0x8+parseInt(_0x19a510(0x80))/0x9*(parseInt(_0x19a510(0xb0))/0xa);if(_0x83e828===_0x13fefe)break;else _0x310824['push'](_0x310824['shift']());}catch(_0xe5c95d){_0x310824['push'](_0x310824['shift']());}}}(_0x2ee5,0x56db5));import{Plugin as _0x3167fd}from'ckeditor5/src/core.js';import{Dialog as _0x243efb}from'ckeditor5/src/ui.js';function _0x2ee5(){const _0x149b3a=['_initSchema','view','configElement','schema','1047050HHGvsK','editing','fromCharCode','render','#uc-icon-arrow-down','input[uploadcare-file-input]','upcast','attributeToAttribute','conversion','_initCtx','1911hzYffQ','true','40DpeJKH','1192904yFIWlv','downcast','isOfficialPlugin','3242082EiVLSX','uploader-','init','data-uc-image-id','UploadcareEditing','config','for','uc-upload-ctx-provider','uploadcareImageId','124096nRIsxV','afterInit','listenTo','uploadcare','join','elementToAttribute','contentLanguage','isRegistered','_initConversion','execute','requires','model','map','get','7nFGrEO','ctxElement','_initConfig','destroy','extend','querySelector','once','appendChild','802hJzdAt','416226NazErk','917604ihlRAg','replaceImageSource','locale','_ctxElement','insertImage','uploadcare.uploader','remove','getAttribute','commands','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','getSelectedElement','ucContextId','document','editor','_configElement','uc-config','removeAttribute','href','imageBlock','cleanupImage','PictureEditing','closeMax','iconHrefResolver','pluginName','selection','body','uploadcareImageReplace','imageInline','uploadcare.pubkey','_initImageProcessingIndicator','isPremiumPlugin','add'];_0x2ee5=function(){return _0x149b3a;};return _0x2ee5();}import{createElement as _0x432b05,global as _0x4505bc,uid as _0x110434}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x297aa1}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4988a6}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x271a9b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3167fd{[_0x1b6d66(0x8e)]=null;[_0x1b6d66(0x83)]=null;static get[_0x1b6d66(0x97)](){const _0xc40061=_0x1b6d66;return _0xc40061(0xb8);}static get[_0x1b6d66(0xc7)](){const _0x44db7c=_0x1b6d66;return[_0x44db7c(0x94),_0x4988a6,_0x243efb];}static get[_0x1b6d66(0xb3)](){return!0x0;}static get[_0x1b6d66(0x9e)](){return!0x0;}[_0x1b6d66(0x8b)];get[_0x1b6d66(0xa2)](){const _0x55c5cc=_0x1b6d66;return this[_0x55c5cc(0x8e)];}get[_0x1b6d66(0xcc)](){const _0x3c959e=_0x1b6d66;return this[_0x3c959e(0x83)];}constructor(_0x42815f){const _0x3bb1aa=_0x1b6d66;super(_0x42815f),this[_0x3bb1aa(0x8b)]=_0x110434();}[_0x1b6d66(0xb6)](){const _0x3a96c0=_0x1b6d66,_0x485cf4=this[_0x3a96c0(0x8d)];_0x485cf4[_0x3a96c0(0x88)][_0x3a96c0(0x9f)](_0x3a96c0(0xc0),new _0x297aa1(_0x485cf4));}[_0x1b6d66(0xbe)](){const _0x484ebb=_0x1b6d66;this[_0x484ebb(0xa0)](),this[_0x484ebb(0xc5)](),this[_0x484ebb(0xcd)](),this[_0x484ebb(0xad)](),this[_0x484ebb(0x9d)](),this[_0x484ebb(0xbf)](this[_0x484ebb(0x8d)],_0x484ebb(0xce),()=>{const _0x4e42d0=_0x484ebb;this[_0x4e42d0(0x8e)]&&(this[_0x4e42d0(0x8e)][_0x4e42d0(0x86)](),this[_0x4e42d0(0x8e)]=null),this[_0x4e42d0(0x83)]&&(this[_0x4e42d0(0x83)][_0x4e42d0(0x86)](),this[_0x4e42d0(0x83)]=null);const _0x1b1f10=_0x4505bc[_0x4e42d0(0x8c)][_0x4e42d0(0xd0)](_0x4e42d0(0xa9));_0x1b1f10&&_0x1b1f10[_0x4e42d0(0x86)]();}),async function(_0x58b6f0){const _0x6d884c=_0x2494d9([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x3c3ac5=0x3d8d0df,_0x2ad1df=0x3dfa41f^_0x3c3ac5,_0x2bdb8e=window[_0x2494d9([0x44,0x61,0x74,0x65])][_0x2494d9([0x6e,0x6f,0x77])](),_0x38efd1=_0x58b6f0[_0x2494d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x520e57=new window[(_0x2494d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x512b17=>{_0x38efd1[_0x2494d9([0x6f,0x6e,0x63,0x65])](_0x2494d9([0x72,0x65,0x61,0x64,0x79]),_0x512b17);}),_0xcbb127={[_0x2494d9([0x6b,0x74,0x79])]:_0x2494d9([0x45,0x43]),[_0x2494d9([0x75,0x73,0x65])]:_0x2494d9([0x73,0x69,0x67]),[_0x2494d9([0x63,0x72,0x76])]:_0x2494d9([0x50,0x2d,0x32,0x35,0x36]),[_0x2494d9([0x78])]:_0x2494d9([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]),[_0x2494d9([0x79])]:_0x2494d9([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]),[_0x2494d9([0x61,0x6c,0x67])]:_0x2494d9([0x45,0x53,0x32,0x35,0x36])},_0x54a9fa=_0x38efd1[_0x2494d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2494d9([0x67,0x65,0x74])](_0x2494d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51bad6(){let _0x4dee24,_0x4f01e4=null,_0x2f544=null;try{if(_0x54a9fa==_0x2494d9([0x47,0x50,0x4c]))return _0x2494d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4dee24=_0x3bc985(),!_0x4dee24)return _0x2494d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4dee24[_0x2494d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f544=_0x373db6(_0x4dee24[_0x2494d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4dee24[_0x2494d9([0x6a,0x74,0x69])])),await _0x381bdb()?_0x1d3d2d()?_0x38462a()?_0x2494d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e4526()?(_0x4dee24[_0x2494d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2494d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f01e4=_0x353313(_0x2494d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4dee24[_0x2494d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2494d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f01e4=_0x353313(_0x2494d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x288a25()):_0x2494d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2494d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2494d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2494d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38462a(){const _0x775769=[_0x2494d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2494d9([0x74,0x72,0x69,0x61,0x6c])][_0x2494d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dee24[_0x2494d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2bdb8e/0x3e8:0xe10*_0x2ad1df;return _0x4dee24[_0x2494d9([0x65,0x78,0x70])]<_0x775769;}function _0x1d3d2d(){const _0x5f06fd=_0x4dee24[_0x2494d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5f06fd&&(!!_0x5f06fd[_0x2494d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2494d9([0x2a]))||!!_0x5f06fd[_0x2494d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2494d9([0x55,0x50,0x4c,0x43])));}function _0x4e4526(){const _0x4bd137=_0x4df1,_0x4eba12=_0x4dee24[_0x2494d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4eba12||0x0==_0x4eba12[_0x2494d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x343c56}=new URL(window[_0x2494d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4bd137(0x91)]);if(_0x4eba12[_0x2494d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343c56))return!0x0;const _0x23b315=_0x343c56[_0x2494d9([0x73,0x70,0x6c,0x69,0x74])](_0x2494d9([0x2e]));return _0x4eba12[_0x2494d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5059f5=>_0x5059f5[_0x2494d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2494d9([0x2a])))[_0x2494d9([0x6d,0x61,0x70])](_0x358115=>_0x358115[_0x2494d9([0x73,0x70,0x6c,0x69,0x74])](_0x2494d9([0x2e])))[_0x2494d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x164898=>_0x164898[_0x2494d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x23b315[_0x2494d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2494d9([0x6d,0x61,0x70])](_0x519847=>Array(_0x23b315[_0x2494d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x519847[_0x2494d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2494d9([0x66,0x69,0x6c,0x6c])](_0x519847[0x0]===_0x2494d9([0x2a])?_0x2494d9([0x2a]):'')[_0x2494d9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x519847))[_0x2494d9([0x73,0x6f,0x6d,0x65])](_0xd5791c=>_0x23b315[_0x2494d9([0x65,0x76,0x65,0x72,0x79])]((_0x746a35,_0x152856)=>_0xd5791c[_0x152856]===_0x746a35||_0xd5791c[_0x152856]===_0x2494d9([0x2a])));}function _0x288a25(){return _0x4f01e4&&_0x2f544?new window[(_0x2494d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3da39f,_0x5385aa)=>{_0x4f01e4[_0x2494d9([0x74,0x68,0x65,0x6e])](_0x3da39f,_0x5385aa),_0x2f544[_0x2494d9([0x74,0x68,0x65,0x6e])](_0x45fa88=>{_0x45fa88!=_0x2494d9([0x56,0x61,0x6c,0x69,0x64])&&_0x3da39f(_0x45fa88);},_0x5385aa);}):_0x4f01e4||_0x2f544||_0x2494d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x373db6(_0x217003,_0x23232c){return new window[(_0x2494d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b7e30=>{if(_0x3a1c79())return _0x1b7e30(_0x2494d9([0x56,0x61,0x6c,0x69,0x64]));_0x303f8e(),_0x38efd1[_0x2494d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2494d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1fc796=!0x1;const _0x6f45ca=_0x110434();function _0x175f55(_0x5bb1d4){return!!_0x5bb1d4&&(typeof _0x5bb1d4===_0x2494d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bb1d4===_0x2494d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bb1d4[_0x2494d9([0x74,0x68,0x65,0x6e])]===_0x2494d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bb1d4[_0x2494d9([0x63,0x61,0x74,0x63,0x68])]===_0x2494d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1807f9(_0x1ea3ef){_0x8d0edc(_0x1ea3ef)[_0x2494d9([0x74,0x68,0x65,0x6e])](_0x57703b=>{if(!_0x57703b||_0x57703b[_0x2494d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2494d9([0x6f,0x6b]))return _0x2494d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf3c17e(_0x18611b(_0x6f45ca+_0x23232c))!=_0x57703b[_0x2494d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2494d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2494d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x2494d9([0x74,0x68,0x65,0x6e])](_0x26d83c=>(_0x1ca3c6(),_0x26d83c),()=>{const _0x59eab4=_0x122625();return null==_0x59eab4?(_0x1ca3c6(),_0x2494d9([0x56,0x61,0x6c,0x69,0x64])):_0x2494d9(_0x2bdb8e-_0x59eab4>(0x27d454df^_0x3c3ac5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2494d9([0x74,0x68,0x65,0x6e])](_0x1b7e30)[_0x2494d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b7e30(_0x2494d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b1862=0x3ee3e5f^_0x3c3ac5;function _0x1ca3c6(){const _0x4dbd43=_0x2494d9([0x6c,0x6c,0x63,0x74,0x2d])+_0xf3c17e(_0x18611b(_0x217003)),_0x29fd8d=_0x4d3600(_0xf3c17e(window[_0x2494d9([0x4d,0x61,0x74,0x68])][_0x2494d9([0x63,0x65,0x69,0x6c])](_0x2bdb8e/_0x4b1862)));window[_0x2494d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2494d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dbd43,_0x29fd8d);}function _0x122625(){const _0x3879b8=_0x2494d9([0x6c,0x6c,0x63,0x74,0x2d])+_0xf3c17e(_0x18611b(_0x217003)),_0x13540b=window[_0x2494d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2494d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3879b8);return _0x13540b?window[_0x2494d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d3600(_0x13540b),0x10)*_0x4b1862:null;}function _0x8d0edc(_0x443a22){return new window[(_0x2494d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4aeb10,_0x38b0aa)=>{_0x443a22[_0x2494d9([0x74,0x68,0x65,0x6e])](_0x4aeb10,_0x38b0aa),window[_0x2494d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38b0aa,0x3d9041f^_0x3c3ac5);});}}_0x38efd1[_0x2494d9([0x6f,0x6e])](_0x2494d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe66f83,_0x7f8edf)=>{if(_0x7f8edf[0x0]!=_0x217003)return _0x1b7e30(_0x2494d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x7f8edf[0x1]={..._0x7f8edf[0x1],[_0x2494d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6f45ca};},{[_0x2494d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2494d9([0x68,0x69,0x67,0x68])}),_0x38efd1[_0x2494d9([0x6f,0x6e])](_0x2494d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x252416=>{_0x175f55(_0x252416[_0x2494d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1fc796=!0x0,_0x1807f9(_0x252416[_0x2494d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2494d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2494d9([0x6c,0x6f,0x77])}),_0x520e57[_0x2494d9([0x74,0x68,0x65,0x6e])](()=>{_0x1fc796||_0x1b7e30(_0x2494d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a1c79(){return _0x38efd1[_0x2494d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2494d9([0x76,0x69,0x65,0x77])][_0x2494d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2494d9([0x61,0x75,0x74,0x6f]);}function _0x303f8e(){_0x38efd1[_0x2494d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2494d9([0x76,0x69,0x65,0x77])][_0x2494d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2494d9([0x61,0x75,0x74,0x6f]);}}function _0x353313(_0x271890){const _0x249e25=[new window[(_0x2494d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3953d6=>setTimeout(_0x3953d6,0x3d1ee13^_0x3c3ac5)),_0x520e57[_0x2494d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2494d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24a09b=>{let _0x89eaa9=0x0;_0x38efd1[_0x2494d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2494d9([0x6f,0x6e])](_0x2494d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xaa6c06,_0x186415)=>{_0x186415[0x0][_0x2494d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x89eaa9++,_0x89eaa9==(0x3d8d127^_0x3c3ac5)&&(_0x24a09b(),_0xaa6c06[_0x2494d9([0x6f,0x66,0x66])]());});}))];return window[_0x2494d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2494d9([0x72,0x61,0x63,0x65])](_0x249e25)[_0x2494d9([0x74,0x68,0x65,0x6e])](()=>_0x271890);}async function _0x5cbdb3(){await _0x520e57,_0x38efd1[_0x2494d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2494d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47605a,_0x38efd1[_0x2494d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x2494d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47605a,_0x38efd1[_0x2494d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2494d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x395afa(_0x41c08d){const _0x18aa79=_0xa6e7a9();_0x38efd1[_0x18aa79]=_0x2494d9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x41c08d,_0x41c08d!=_0x2494d9([0x56,0x61,0x6c,0x69,0x64])&&_0x5cbdb3();}function _0xa6e7a9(){const _0x90968a=window[_0x2494d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2494d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2494d9([0x6e,0x6f,0x77])]())[_0x2494d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2494d9([0x2e]),'');let _0xc9ca0c=_0x2494d9([0x52]);for(let _0x549134=0x0;_0x549134<_0x90968a[_0x2494d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x549134+=0x2){let _0x3d01ea=window[_0x2494d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x90968a[_0x2494d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x549134,_0x549134+0x2));_0x3d01ea>=_0x6d884c[_0x2494d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3d01ea-=_0x6d884c[_0x2494d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc9ca0c+=_0x6d884c[_0x3d01ea];}return _0xc9ca0c;}function _0x3bc985(){const _0x5e2f94=_0x54a9fa[_0x2494d9([0x73,0x70,0x6c,0x69,0x74])](_0x2494d9([0x2e]));if(0x3!=_0x5e2f94[_0x2494d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x218451(_0x5e2f94[0x1]);function _0x218451(_0x2355ce){const _0x4159b3=_0x44174b(_0x2355ce);return _0x4159b3&&_0x5b7ad3()?_0x4159b3:null;function _0x5b7ad3(){const _0x469ff8=_0x4159b3[_0x2494d9([0x6a,0x74,0x69])],_0x4a0a18=window[_0x2494d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x469ff8[_0x2494d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x469ff8[_0x2494d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x349557={..._0x4159b3,[_0x2494d9([0x6a,0x74,0x69])]:_0x469ff8[_0x2494d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x469ff8[_0x2494d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x349557[_0x2494d9([0x76,0x63])],_0x18611b(_0x349557)==_0x4a0a18;}}}async function _0x381bdb(){let _0x5e27fb=!0x0;try{const _0x5d8172=_0x54a9fa[_0x2494d9([0x73,0x70,0x6c,0x69,0x74])](_0x2494d9([0x2e])),[_0x3698c1,_0x34f784,_0x405603]=_0x5d8172;return _0x3d060f(_0x3698c1),await _0xe93164(_0x3698c1,_0x34f784,_0x405603),_0x5e27fb;}catch{return!0x1;}function _0x3d060f(_0x46af41){const _0x17227a=_0x44174b(_0x46af41);_0x17227a&&_0x17227a[_0x2494d9([0x61,0x6c,0x67])]==_0x2494d9([0x45,0x53,0x32,0x35,0x36])||(_0x5e27fb=!0x1);}async function _0xe93164(_0x5b2504,_0x274190,_0x3b0b0e){const _0x183039=window[_0x2494d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2494d9([0x66,0x72,0x6f,0x6d])](_0x483e27(_0x3b0b0e),_0x5592f9=>_0x5592f9[_0x2494d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x141222=new window[(_0x2494d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2494d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b2504+_0x2494d9([0x2e])+_0x274190),_0x211dad=window[_0x2494d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2494d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x211dad)return;const _0x2e8dc5=await _0x211dad[_0x2494d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2494d9([0x6a,0x77,0x6b]),_0xcbb127,{[_0x2494d9([0x6e,0x61,0x6d,0x65])]:_0x2494d9([0x45,0x43,0x44,0x53,0x41]),[_0x2494d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2494d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2494d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x211dad[_0x2494d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2494d9([0x6e,0x61,0x6d,0x65])]:_0x2494d9([0x45,0x43,0x44,0x53,0x41]),[_0x2494d9([0x68,0x61,0x73,0x68])]:{[_0x2494d9([0x6e,0x61,0x6d,0x65])]:_0x2494d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e8dc5,_0x183039,_0x141222)||(_0x5e27fb=!0x1);}}function _0x44174b(_0xcb6279){return _0xcb6279[_0x2494d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2494d9([0x65,0x79]))?JSON[_0x2494d9([0x70,0x61,0x72,0x73,0x65])](_0x483e27(_0xcb6279)):null;}function _0x483e27(_0x5d9f14){return window[_0x2494d9([0x61,0x74,0x6f,0x62])](_0x5d9f14[_0x2494d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2494d9([0x2b]))[_0x2494d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2494d9([0x2f])));}function _0x18611b(_0x632b3f){let _0x5acdf5=0x1505;function _0x1a6a36(_0x19906e){for(let _0x1a7408=0x0;_0x1a7408<_0x19906e[_0x2494d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a7408++){const _0x1c2fcb=_0x19906e[_0x2494d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a7408);_0x5acdf5=(_0x5acdf5<<0x5)+_0x5acdf5+_0x1c2fcb,_0x5acdf5&=_0x5acdf5;}}function _0x508fc7(_0x23c7a3){Array[_0x2494d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23c7a3)?_0x23c7a3[_0x2494d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x508fc7):_0x23c7a3&&typeof _0x23c7a3==_0x2494d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2494d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23c7a3)[_0x2494d9([0x73,0x6f,0x72,0x74])]()[_0x2494d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5490cf,_0x3940a9])=>{_0x1a6a36(_0x5490cf),_0x508fc7(_0x3940a9);}):_0x1a6a36(window[_0x2494d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23c7a3));}return _0x508fc7(_0x632b3f),_0x5acdf5>>>0x0;}function _0xf3c17e(_0x142671){return _0x142671[_0x2494d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2494d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2494d9([0x30]));}function _0x4d3600(_0x423094){return _0x423094[_0x2494d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2494d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2494d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x47605a(){}function _0x2494d9(_0x1ee02b){const _0x3ddd85=_0x4df1;return _0x1ee02b[_0x3ddd85(0xc9)](_0x10c8d9=>String[_0x3ddd85(0xa6)](_0x10c8d9))[_0x3ddd85(0xc1)]('');}_0x395afa(await _0x51bad6());}(this);}[_0x1b6d66(0xa0)](){const _0x20949b=_0x1b6d66,_0x136e63=this[_0x20949b(0x8d)][_0x20949b(0xc8)][_0x20949b(0xa3)];_0x136e63[_0x20949b(0xc4)](_0x20949b(0x92))&&_0x136e63[_0x20949b(0xcf)](_0x20949b(0x92),{'allowAttributes':[_0x20949b(0xbc)]}),_0x136e63[_0x20949b(0xc4)](_0x20949b(0x9b))&&_0x136e63[_0x20949b(0xcf)](_0x20949b(0x9b),{'allowAttributes':[_0x20949b(0xbc)]});}[_0x1b6d66(0xc5)](){const _0x5abf8f=_0x1b6d66,_0x5de162=this[_0x5abf8f(0x8d)];_0x5de162[_0x5abf8f(0xac)][_0x5abf8f(0xba)](_0x5abf8f(0xb2))[_0x5abf8f(0xab)]({'model':_0x5abf8f(0xbc),'view':_0x5abf8f(0xb7)}),_0x5de162[_0x5abf8f(0xac)][_0x5abf8f(0xba)](_0x5abf8f(0xaa))[_0x5abf8f(0xc2)]({'model':{'key':_0x5abf8f(0xbc),'value':_0x2d6df3=>_0x2d6df3[_0x5abf8f(0x87)](_0x5abf8f(0xb7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4b99cd=_0x5de162[_0x5abf8f(0x88)][_0x5abf8f(0xca)](_0x5abf8f(0x81));_0x4b99cd&&this[_0x5abf8f(0xbf)](_0x4b99cd,_0x5abf8f(0x93),(_0x4fc946,[_0xcfd21c,_0x31c3ac])=>{const _0x4815bb=_0x5abf8f;_0xcfd21c[_0x4815bb(0x90)](_0x4815bb(0xbc),_0x31c3ac);});}[_0x1b6d66(0xcd)](){const _0x5641a8=_0x1b6d66,_0x34c78e=this[_0x5641a8(0x8d)][_0x5641a8(0xb9)][_0x5641a8(0xca)](_0x5641a8(0x85))||{},_0x22af04=this[_0x5641a8(0x8d)][_0x5641a8(0xb9)][_0x5641a8(0xca)](_0x5641a8(0x9c))||'';this[_0x5641a8(0x8e)]=_0x432b05(_0x4505bc[_0x5641a8(0x8c)],_0x5641a8(0x8f),{..._0x34c78e,'pubkey':_0x22af04,'ctx-name':_0x5641a8(0xb5)+this[_0x5641a8(0x8b)],'sourceList':'','imgOnly':_0x5641a8(0xaf),'removeCopyright':_0x5641a8(0xaf),'localeName':this[_0x5641a8(0x8d)][_0x5641a8(0x82)][_0x5641a8(0xc3)],'externalSourcesEmbedCss':_0x5641a8(0x89)}),this[_0x5641a8(0x8e)][_0x5641a8(0x96)]=_0xd4c2dd=>{const _0x1e84e2=_0x5641a8;if(_0x1e84e2(0x95)==_0xd4c2dd)return _0x1e84e2(0xa8);},_0x4505bc[_0x5641a8(0x8c)][_0x5641a8(0x99)][_0x5641a8(0xd2)](this[_0x5641a8(0x8e)]);}[_0x1b6d66(0xad)](){const _0xdc0bde=_0x1b6d66;this[_0xdc0bde(0x83)]=_0x432b05(_0x4505bc[_0xdc0bde(0x8c)],_0xdc0bde(0xbb),{'ctx-name':_0xdc0bde(0xb5)+this[_0xdc0bde(0x8b)]}),_0x4505bc[_0xdc0bde(0x8c)][_0xdc0bde(0x99)][_0xdc0bde(0xd2)](this[_0xdc0bde(0x83)]);}[_0x1b6d66(0x9d)](){const _0x3cc129=_0x1b6d66,_0x3d06b7=this[_0x3cc129(0x8d)][_0x3cc129(0x88)][_0x3cc129(0xca)](_0x3cc129(0x84));_0x3d06b7&&this[_0x3cc129(0xbf)](_0x3d06b7,_0x3cc129(0xc6),()=>{const _0x28a097=_0x3cc129,_0x1be5be=this[_0x28a097(0x8d)][_0x28a097(0xc8)][_0x28a097(0x8c)][_0x28a097(0x98)][_0x28a097(0x8a)]();_0x1be5be&&_0x1be5be[_0x28a097(0x87)](_0x28a097(0xbc))&&this[_0x28a097(0x8d)][_0x28a097(0xa5)][_0x28a097(0xa1)][_0x28a097(0xd1)](_0x28a097(0xa7),()=>{const _0x10a541=_0x28a097;_0x271a9b(this[_0x10a541(0x8d)],_0x1be5be);});});const _0x263387=this[_0x3cc129(0x8d)][_0x3cc129(0x88)][_0x3cc129(0xca)](_0x3cc129(0x9a));_0x263387&&this[_0x3cc129(0xbf)](_0x263387,_0x3cc129(0xc6),()=>{const _0x21afed=_0x3cc129,_0x1e1272=this[_0x21afed(0x8d)][_0x21afed(0xc8)][_0x21afed(0x8c)][_0x21afed(0x98)][_0x21afed(0x8a)]();_0x1e1272&&_0x1e1272[_0x21afed(0x87)](_0x21afed(0xbc))&&this[_0x21afed(0x8d)][_0x21afed(0xa5)][_0x21afed(0xa1)][_0x21afed(0xd1)](_0x21afed(0xa7),()=>{const _0x33685b=_0x21afed;_0x271a9b(this[_0x33685b(0x8d)],_0x1e1272);});});}}
|
|
23
|
+
function _0x4cfe(){const _0x9f4128=['UploadcareEditing','isOfficialPlugin','selection','pluginName','locale','add','requires','commands','fromCharCode','conversion','afterInit','_initSchema','imageBlock','uploadcare.pubkey','uploader-','iconHrefResolver','data-uc-image-id','for','cleanupImage','map','getSelectedElement','querySelector','uploadcareImageId','imageInline','href','configElement','model','3335586rrteTY','_ctxElement','view','document','schema','ucContextId','_configElement','render','closeMax','isPremiumPlugin','downcast','extend','uc-config','22196530IJbWDz','editing','ctxElement','appendChild','_initImageProcessingIndicator','listenTo','uploadcare','PictureEditing','21OTOcGD','\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','body','execute','true','replaceImageSource','uc-upload-ctx-provider','removeAttribute','_initConfig','uploadcareImageReplace','_initConversion','6460445MLjCQo','editor','#uc-icon-arrow-down','196665tueRay','753672IZXzVb','4SgYsoP','getAttribute','init','upcast','22uqGJOF','insertImage','49ZHzNli','config','input[uploadcare-file-input]','destroy','isRegistered','_initCtx','join','get','4123548ZskNBZ','once','contentLanguage','remove','uploadcare.uploader','54194qkAdrC','attributeToAttribute','elementToAttribute'];_0x4cfe=function(){return _0x9f4128;};return _0x4cfe();}const _0x91201d=_0x4564;(function(_0x5a3672,_0x316567){const _0x21b387=_0x4564,_0x3165b6=_0x5a3672();while(!![]){try{const _0x3d1dc4=parseInt(_0x21b387(0x1a4))/0x1*(-parseInt(_0x21b387(0x1c7))/0x2)+-parseInt(_0x21b387(0x1b2))/0x3*(-parseInt(_0x21b387(0x1b4))/0x4)+-parseInt(_0x21b387(0x1af))/0x5+-parseInt(_0x21b387(0x1e5))/0x6+-parseInt(_0x21b387(0x1ba))/0x7*(parseInt(_0x21b387(0x1b3))/0x8)+-parseInt(_0x21b387(0x1c2))/0x9+parseInt(_0x21b387(0x1f2))/0xa*(parseInt(_0x21b387(0x1b8))/0xb);if(_0x3d1dc4===_0x316567)break;else _0x3165b6['push'](_0x3165b6['shift']());}catch(_0x34a532){_0x3165b6['push'](_0x3165b6['shift']());}}}(_0x4cfe,0xecdb9));import{Plugin as _0x367138}from'ckeditor5/src/core.js';import{Dialog as _0xbefb7a}from'ckeditor5/src/ui.js';import{createElement as _0x1bfa4e,global as _0xfe5ddc,uid as _0x350220}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4fc4b3}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4bab7b}from'./uploadcareuploadadapter.js';function _0x4564(_0x2cbc16,_0x433130){const _0x4cfed8=_0x4cfe();return _0x4564=function(_0x45649f,_0x430fb6){_0x45649f=_0x45649f-0x1a3;let _0x9a5be9=_0x4cfed8[_0x45649f];return _0x9a5be9;},_0x4564(_0x2cbc16,_0x433130);}import{showImageProcessingIndicator as _0x2fcad3}from'./utils/editingutils.js';export class UploadcareEditing extends _0x367138{[_0x91201d(0x1eb)]=null;[_0x91201d(0x1e6)]=null;static get[_0x91201d(0x1cd)](){const _0xdb2339=_0x91201d;return _0xdb2339(0x1ca);}static get[_0x91201d(0x1d0)](){const _0x43dc59=_0x91201d;return[_0x43dc59(0x1a3),_0x4bab7b,_0xbefb7a];}static get[_0x91201d(0x1cb)](){return!0x0;}static get[_0x91201d(0x1ee)](){return!0x0;}[_0x91201d(0x1ea)];get[_0x91201d(0x1e3)](){const _0x552be9=_0x91201d;return this[_0x552be9(0x1eb)];}get[_0x91201d(0x1f4)](){const _0x2c14d4=_0x91201d;return this[_0x2c14d4(0x1e6)];}constructor(_0x49965b){const _0x2ccf38=_0x91201d;super(_0x49965b),this[_0x2ccf38(0x1ea)]=_0x350220();}[_0x91201d(0x1b6)](){const _0x496793=_0x91201d,_0x298f9f=this[_0x496793(0x1b0)];_0x298f9f[_0x496793(0x1d1)][_0x496793(0x1cf)](_0x496793(0x1f8),new _0x4fc4b3(_0x298f9f));}[_0x91201d(0x1d4)](){const _0x8b6863=_0x91201d;this[_0x8b6863(0x1d5)](),this[_0x8b6863(0x1ae)](),this[_0x8b6863(0x1ac)](),this[_0x8b6863(0x1bf)](),this[_0x8b6863(0x1f6)](),this[_0x8b6863(0x1f7)](this[_0x8b6863(0x1b0)],_0x8b6863(0x1bd),()=>{const _0x3072ef=_0x8b6863;this[_0x3072ef(0x1eb)]&&(this[_0x3072ef(0x1eb)][_0x3072ef(0x1c5)](),this[_0x3072ef(0x1eb)]=null),this[_0x3072ef(0x1e6)]&&(this[_0x3072ef(0x1e6)][_0x3072ef(0x1c5)](),this[_0x3072ef(0x1e6)]=null);const _0x3be53d=_0xfe5ddc[_0x3072ef(0x1e8)][_0x3072ef(0x1df)](_0x3072ef(0x1bc));_0x3be53d&&_0x3be53d[_0x3072ef(0x1c5)]();}),async function(_0x42a119){const _0x1324d0=_0x4ed4c0([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x5ede34=0x3d8d0df,_0x22e89c=0x3dfa41f^_0x5ede34,_0x1df78b=window[_0x4ed4c0([0x44,0x61,0x74,0x65])][_0x4ed4c0([0x6e,0x6f,0x77])](),_0x819dd4=_0x42a119[_0x4ed4c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f2571=new window[(_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29a102=>{_0x819dd4[_0x4ed4c0([0x6f,0x6e,0x63,0x65])](_0x4ed4c0([0x72,0x65,0x61,0x64,0x79]),_0x29a102);}),_0x514bf2={[_0x4ed4c0([0x6b,0x74,0x79])]:_0x4ed4c0([0x45,0x43]),[_0x4ed4c0([0x75,0x73,0x65])]:_0x4ed4c0([0x73,0x69,0x67]),[_0x4ed4c0([0x63,0x72,0x76])]:_0x4ed4c0([0x50,0x2d,0x32,0x35,0x36]),[_0x4ed4c0([0x78])]:_0x4ed4c0([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]),[_0x4ed4c0([0x79])]:_0x4ed4c0([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]),[_0x4ed4c0([0x61,0x6c,0x67])]:_0x4ed4c0([0x45,0x53,0x32,0x35,0x36])},_0x588104=_0x819dd4[_0x4ed4c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ed4c0([0x67,0x65,0x74])](_0x4ed4c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57a954(){let _0x2ff2ef,_0x11c956=null,_0x3737b1=null;try{if(_0x588104==_0x4ed4c0([0x47,0x50,0x4c]))return _0x4ed4c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ff2ef=_0x203371(),!_0x2ff2ef)return _0x4ed4c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ff2ef[_0x4ed4c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3737b1=_0x599b1d(_0x2ff2ef[_0x4ed4c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ff2ef[_0x4ed4c0([0x6a,0x74,0x69])])),await _0x3118d1()?_0x3ba2eb()?_0x43a1cd()?_0x4ed4c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xda7996()?(_0x2ff2ef[_0x4ed4c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ed4c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11c956=_0xca6a2b(_0x4ed4c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ff2ef[_0x4ed4c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ed4c0([0x74,0x72,0x69,0x61,0x6c])&&(_0x11c956=_0xca6a2b(_0x4ed4c0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a1046()):_0x4ed4c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ed4c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ed4c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ed4c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43a1cd(){const _0x2fdd1e=[_0x4ed4c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ed4c0([0x74,0x72,0x69,0x61,0x6c])][_0x4ed4c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ff2ef[_0x4ed4c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1df78b/0x3e8:0xe10*_0x22e89c;return _0x2ff2ef[_0x4ed4c0([0x65,0x78,0x70])]<_0x2fdd1e;}function _0x3ba2eb(){const _0x24a461=_0x2ff2ef[_0x4ed4c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x24a461&&(!!_0x24a461[_0x4ed4c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ed4c0([0x2a]))||!!_0x24a461[_0x4ed4c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ed4c0([0x55,0x50,0x4c,0x43])));}function _0xda7996(){const _0xd50a01=_0x4564,_0x11c2fc=_0x2ff2ef[_0x4ed4c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11c2fc||0x0==_0x11c2fc[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58188b}=new URL(window[_0x4ed4c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xd50a01(0x1e2)]);if(_0x11c2fc[_0x4ed4c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58188b))return!0x0;const _0x238093=_0x58188b[_0x4ed4c0([0x73,0x70,0x6c,0x69,0x74])](_0x4ed4c0([0x2e]));return _0x11c2fc[_0x4ed4c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11f662=>_0x11f662[_0x4ed4c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ed4c0([0x2a])))[_0x4ed4c0([0x6d,0x61,0x70])](_0x1af0d9=>_0x1af0d9[_0x4ed4c0([0x73,0x70,0x6c,0x69,0x74])](_0x4ed4c0([0x2e])))[_0x4ed4c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59a64f=>_0x59a64f[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x238093[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ed4c0([0x6d,0x61,0x70])](_0x533b31=>Array(_0x238093[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x533b31[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ed4c0([0x66,0x69,0x6c,0x6c])](_0x533b31[0x0]===_0x4ed4c0([0x2a])?_0x4ed4c0([0x2a]):'')[_0x4ed4c0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x533b31))[_0x4ed4c0([0x73,0x6f,0x6d,0x65])](_0x15854a=>_0x238093[_0x4ed4c0([0x65,0x76,0x65,0x72,0x79])]((_0x52beb9,_0x26750b)=>_0x15854a[_0x26750b]===_0x52beb9||_0x15854a[_0x26750b]===_0x4ed4c0([0x2a])));}function _0x1a1046(){return _0x11c956&&_0x3737b1?new window[(_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1cd1d6,_0x51610b)=>{_0x11c956[_0x4ed4c0([0x74,0x68,0x65,0x6e])](_0x1cd1d6,_0x51610b),_0x3737b1[_0x4ed4c0([0x74,0x68,0x65,0x6e])](_0x298391=>{_0x298391!=_0x4ed4c0([0x56,0x61,0x6c,0x69,0x64])&&_0x1cd1d6(_0x298391);},_0x51610b);}):_0x11c956||_0x3737b1||_0x4ed4c0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x599b1d(_0x3ea55c,_0x33e1c1){return new window[(_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ab970=>{if(_0xc1e02b())return _0x4ab970(_0x4ed4c0([0x56,0x61,0x6c,0x69,0x64]));_0x39f4a6(),_0x819dd4[_0x4ed4c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ed4c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51572e=!0x1;const _0x3dbe3d=_0x350220();function _0x13ee35(_0x14881a){return!!_0x14881a&&(typeof _0x14881a===_0x4ed4c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x14881a===_0x4ed4c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x14881a[_0x4ed4c0([0x74,0x68,0x65,0x6e])]===_0x4ed4c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x14881a[_0x4ed4c0([0x63,0x61,0x74,0x63,0x68])]===_0x4ed4c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x78de00(_0x1b2d2c){_0xbaf13b(_0x1b2d2c)[_0x4ed4c0([0x74,0x68,0x65,0x6e])](_0x112b8f=>{if(!_0x112b8f||_0x112b8f[_0x4ed4c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ed4c0([0x6f,0x6b]))return _0x4ed4c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ee7fe(_0x27dffd(_0x3dbe3d+_0x33e1c1))!=_0x112b8f[_0x4ed4c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ed4c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ed4c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ed4c0([0x74,0x68,0x65,0x6e])](_0x38470a=>(_0x390c45(),_0x38470a),()=>{const _0x2b6fdc=_0x420429();return null==_0x2b6fdc?(_0x390c45(),_0x4ed4c0([0x56,0x61,0x6c,0x69,0x64])):_0x4ed4c0(_0x1df78b-_0x2b6fdc>(0x27d454df^_0x5ede34)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ed4c0([0x74,0x68,0x65,0x6e])](_0x4ab970)[_0x4ed4c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ab970(_0x4ed4c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x663ac4=0x3ee3e5f^_0x5ede34;function _0x390c45(){const _0x1b0c09=_0x4ed4c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ee7fe(_0x27dffd(_0x3ea55c)),_0x2bc1d7=_0x3bbe2b(_0x4ee7fe(window[_0x4ed4c0([0x4d,0x61,0x74,0x68])][_0x4ed4c0([0x63,0x65,0x69,0x6c])](_0x1df78b/_0x663ac4)));window[_0x4ed4c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ed4c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b0c09,_0x2bc1d7);}function _0x420429(){const _0x116e6d=_0x4ed4c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ee7fe(_0x27dffd(_0x3ea55c)),_0x20dfc8=window[_0x4ed4c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ed4c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x116e6d);return _0x20dfc8?window[_0x4ed4c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bbe2b(_0x20dfc8),0x10)*_0x663ac4:null;}function _0xbaf13b(_0x4239aa){return new window[(_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f252f,_0x228397)=>{_0x4239aa[_0x4ed4c0([0x74,0x68,0x65,0x6e])](_0x1f252f,_0x228397),window[_0x4ed4c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x228397,0x3d9041f^_0x5ede34);});}}_0x819dd4[_0x4ed4c0([0x6f,0x6e])](_0x4ed4c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe43a0d,_0x1f7e17)=>{if(_0x1f7e17[0x0]!=_0x3ea55c)return _0x4ab970(_0x4ed4c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f7e17[0x1]={..._0x1f7e17[0x1],[_0x4ed4c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3dbe3d};},{[_0x4ed4c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ed4c0([0x68,0x69,0x67,0x68])}),_0x819dd4[_0x4ed4c0([0x6f,0x6e])](_0x4ed4c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xeff493=>{_0x13ee35(_0xeff493[_0x4ed4c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51572e=!0x0,_0x78de00(_0xeff493[_0x4ed4c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ed4c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ed4c0([0x6c,0x6f,0x77])}),_0x4f2571[_0x4ed4c0([0x74,0x68,0x65,0x6e])](()=>{_0x51572e||_0x4ab970(_0x4ed4c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc1e02b(){return _0x819dd4[_0x4ed4c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ed4c0([0x76,0x69,0x65,0x77])][_0x4ed4c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ed4c0([0x61,0x75,0x74,0x6f]);}function _0x39f4a6(){_0x819dd4[_0x4ed4c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ed4c0([0x76,0x69,0x65,0x77])][_0x4ed4c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ed4c0([0x61,0x75,0x74,0x6f]);}}function _0xca6a2b(_0x13166a){const _0x4a6069=[new window[(_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b3864=>setTimeout(_0x4b3864,0x3d1ee13^_0x5ede34)),_0x4f2571[_0x4ed4c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x106468=>{let _0x354f4a=0x0;_0x819dd4[_0x4ed4c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ed4c0([0x6f,0x6e])](_0x4ed4c0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x573f1d,_0x1a1fcd)=>{_0x1a1fcd[0x0][_0x4ed4c0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x354f4a++,_0x354f4a==(0x3d8d127^_0x5ede34)&&(_0x106468(),_0x573f1d[_0x4ed4c0([0x6f,0x66,0x66])]());});}))];return window[_0x4ed4c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ed4c0([0x72,0x61,0x63,0x65])](_0x4a6069)[_0x4ed4c0([0x74,0x68,0x65,0x6e])](()=>_0x13166a);}async function _0x482cf5(){await _0x4f2571,_0x819dd4[_0x4ed4c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ed4c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50d8b2,_0x819dd4[_0x4ed4c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ed4c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50d8b2,_0x819dd4[_0x4ed4c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ed4c0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x239e49(_0x412b5d){const _0x217653=_0x5c9ffc();_0x819dd4[_0x217653]=_0x4ed4c0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x412b5d,_0x412b5d!=_0x4ed4c0([0x56,0x61,0x6c,0x69,0x64])&&_0x482cf5();}function _0x5c9ffc(){const _0x60b684=window[_0x4ed4c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ed4c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ed4c0([0x6e,0x6f,0x77])]())[_0x4ed4c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ed4c0([0x2e]),'');let _0x1a7265=_0x4ed4c0([0x52]);for(let _0xd2f037=0x0;_0xd2f037<_0x60b684[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd2f037+=0x2){let _0x4e71a0=window[_0x4ed4c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x60b684[_0x4ed4c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd2f037,_0xd2f037+0x2));_0x4e71a0>=_0x1324d0[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e71a0-=_0x1324d0[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a7265+=_0x1324d0[_0x4e71a0];}return _0x1a7265;}function _0x203371(){const _0x64a6a2=_0x588104[_0x4ed4c0([0x73,0x70,0x6c,0x69,0x74])](_0x4ed4c0([0x2e]));if(0x3!=_0x64a6a2[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x23bd72(_0x64a6a2[0x1]);function _0x23bd72(_0x2b344a){const _0x378257=_0x5861ef(_0x2b344a);return _0x378257&&_0x2080e0()?_0x378257:null;function _0x2080e0(){const _0xa4dc10=_0x378257[_0x4ed4c0([0x6a,0x74,0x69])],_0x593c7d=window[_0x4ed4c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa4dc10[_0x4ed4c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa4dc10[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5e7c64={..._0x378257,[_0x4ed4c0([0x6a,0x74,0x69])]:_0xa4dc10[_0x4ed4c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa4dc10[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5e7c64[_0x4ed4c0([0x76,0x63])],_0x27dffd(_0x5e7c64)==_0x593c7d;}}}async function _0x3118d1(){let _0x44b392=!0x0;try{const _0x3e26c7=_0x588104[_0x4ed4c0([0x73,0x70,0x6c,0x69,0x74])](_0x4ed4c0([0x2e])),[_0x4fcb42,_0x1e1def,_0x3ce353]=_0x3e26c7;return _0x725ac2(_0x4fcb42),await _0x2ccb65(_0x4fcb42,_0x1e1def,_0x3ce353),_0x44b392;}catch{return!0x1;}function _0x725ac2(_0x2ddace){const _0x1233ca=_0x5861ef(_0x2ddace);_0x1233ca&&_0x1233ca[_0x4ed4c0([0x61,0x6c,0x67])]==_0x4ed4c0([0x45,0x53,0x32,0x35,0x36])||(_0x44b392=!0x1);}async function _0x2ccb65(_0x3d4e6b,_0x2bd5da,_0x7fcb86){const _0x2bde83=window[_0x4ed4c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ed4c0([0x66,0x72,0x6f,0x6d])](_0x2f4f63(_0x7fcb86),_0x2b5ad9=>_0x2b5ad9[_0x4ed4c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46237b=new window[(_0x4ed4c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ed4c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d4e6b+_0x4ed4c0([0x2e])+_0x2bd5da),_0x2ef0e9=window[_0x4ed4c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ed4c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ef0e9)return;const _0x3081c8=await _0x2ef0e9[_0x4ed4c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ed4c0([0x6a,0x77,0x6b]),_0x514bf2,{[_0x4ed4c0([0x6e,0x61,0x6d,0x65])]:_0x4ed4c0([0x45,0x43,0x44,0x53,0x41]),[_0x4ed4c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ed4c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ed4c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ef0e9[_0x4ed4c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ed4c0([0x6e,0x61,0x6d,0x65])]:_0x4ed4c0([0x45,0x43,0x44,0x53,0x41]),[_0x4ed4c0([0x68,0x61,0x73,0x68])]:{[_0x4ed4c0([0x6e,0x61,0x6d,0x65])]:_0x4ed4c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3081c8,_0x2bde83,_0x46237b)||(_0x44b392=!0x1);}}function _0x5861ef(_0x1f0fda){return _0x1f0fda[_0x4ed4c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ed4c0([0x65,0x79]))?JSON[_0x4ed4c0([0x70,0x61,0x72,0x73,0x65])](_0x2f4f63(_0x1f0fda)):null;}function _0x2f4f63(_0x4ae040){return window[_0x4ed4c0([0x61,0x74,0x6f,0x62])](_0x4ae040[_0x4ed4c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ed4c0([0x2b]))[_0x4ed4c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ed4c0([0x2f])));}function _0x27dffd(_0x45dfc0){let _0x256684=0x1505;function _0x4921aa(_0x6c0a63){for(let _0x4f9426=0x0;_0x4f9426<_0x6c0a63[_0x4ed4c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f9426++){const _0x44e12b=_0x6c0a63[_0x4ed4c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f9426);_0x256684=(_0x256684<<0x5)+_0x256684+_0x44e12b,_0x256684&=_0x256684;}}function _0x1d263d(_0x1dbad2){Array[_0x4ed4c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1dbad2)?_0x1dbad2[_0x4ed4c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d263d):_0x1dbad2&&typeof _0x1dbad2==_0x4ed4c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ed4c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1dbad2)[_0x4ed4c0([0x73,0x6f,0x72,0x74])]()[_0x4ed4c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47358d,_0x2b35bb])=>{_0x4921aa(_0x47358d),_0x1d263d(_0x2b35bb);}):_0x4921aa(window[_0x4ed4c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1dbad2));}return _0x1d263d(_0x45dfc0),_0x256684>>>0x0;}function _0x4ee7fe(_0xa6fd82){return _0xa6fd82[_0x4ed4c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ed4c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ed4c0([0x30]));}function _0x3bbe2b(_0x2d5502){return _0x2d5502[_0x4ed4c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ed4c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ed4c0([0x6a,0x6f,0x69,0x6e])]('');}function _0x50d8b2(){}function _0x4ed4c0(_0x47235b){const _0x33f218=_0x4564;return _0x47235b[_0x33f218(0x1dd)](_0x406352=>String[_0x33f218(0x1d2)](_0x406352))[_0x33f218(0x1c0)]('');}_0x239e49(await _0x57a954());}(this);}[_0x91201d(0x1d5)](){const _0x276a12=_0x91201d,_0x2749a2=this[_0x276a12(0x1b0)][_0x276a12(0x1e4)][_0x276a12(0x1e9)];_0x2749a2[_0x276a12(0x1be)](_0x276a12(0x1d6))&&_0x2749a2[_0x276a12(0x1f0)](_0x276a12(0x1d6),{'allowAttributes':[_0x276a12(0x1e0)]}),_0x2749a2[_0x276a12(0x1be)](_0x276a12(0x1e1))&&_0x2749a2[_0x276a12(0x1f0)](_0x276a12(0x1e1),{'allowAttributes':[_0x276a12(0x1e0)]});}[_0x91201d(0x1ae)](){const _0x1dcbe3=_0x91201d,_0x1f72e5=this[_0x1dcbe3(0x1b0)];_0x1f72e5[_0x1dcbe3(0x1d3)][_0x1dcbe3(0x1db)](_0x1dcbe3(0x1ef))[_0x1dcbe3(0x1c8)]({'model':_0x1dcbe3(0x1e0),'view':_0x1dcbe3(0x1da)}),_0x1f72e5[_0x1dcbe3(0x1d3)][_0x1dcbe3(0x1db)](_0x1dcbe3(0x1b7))[_0x1dcbe3(0x1c9)]({'model':{'key':_0x1dcbe3(0x1e0),'value':_0x53db73=>_0x53db73[_0x1dcbe3(0x1b5)](_0x1dcbe3(0x1da))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x51021c=_0x1f72e5[_0x1dcbe3(0x1d1)][_0x1dcbe3(0x1c1)](_0x1dcbe3(0x1a9));_0x51021c&&this[_0x1dcbe3(0x1f7)](_0x51021c,_0x1dcbe3(0x1dc),(_0x461e96,[_0x4ce2c3,_0x552da3])=>{const _0x1a57c9=_0x1dcbe3;_0x4ce2c3[_0x1a57c9(0x1ab)](_0x1a57c9(0x1e0),_0x552da3);});}[_0x91201d(0x1ac)](){const _0x11d84b=_0x91201d,_0x36d3ec=this[_0x11d84b(0x1b0)][_0x11d84b(0x1bb)][_0x11d84b(0x1c1)](_0x11d84b(0x1c6))||{},_0x5b7900=this[_0x11d84b(0x1b0)][_0x11d84b(0x1bb)][_0x11d84b(0x1c1)](_0x11d84b(0x1d7))||'';this[_0x11d84b(0x1eb)]=_0x1bfa4e(_0xfe5ddc[_0x11d84b(0x1e8)],_0x11d84b(0x1f1),{..._0x36d3ec,'pubkey':_0x5b7900,'ctx-name':_0x11d84b(0x1d8)+this[_0x11d84b(0x1ea)],'sourceList':'','imgOnly':_0x11d84b(0x1a8),'removeCopyright':_0x11d84b(0x1a8),'localeName':this[_0x11d84b(0x1b0)][_0x11d84b(0x1ce)][_0x11d84b(0x1c4)],'externalSourcesEmbedCss':_0x11d84b(0x1a5)}),this[_0x11d84b(0x1eb)][_0x11d84b(0x1d9)]=_0x171fe6=>{const _0x14ed13=_0x11d84b;if(_0x14ed13(0x1ed)==_0x171fe6)return _0x14ed13(0x1b1);},_0xfe5ddc[_0x11d84b(0x1e8)][_0x11d84b(0x1a6)][_0x11d84b(0x1f5)](this[_0x11d84b(0x1eb)]);}[_0x91201d(0x1bf)](){const _0x56b7ac=_0x91201d;this[_0x56b7ac(0x1e6)]=_0x1bfa4e(_0xfe5ddc[_0x56b7ac(0x1e8)],_0x56b7ac(0x1aa),{'ctx-name':_0x56b7ac(0x1d8)+this[_0x56b7ac(0x1ea)]}),_0xfe5ddc[_0x56b7ac(0x1e8)][_0x56b7ac(0x1a6)][_0x56b7ac(0x1f5)](this[_0x56b7ac(0x1e6)]);}[_0x91201d(0x1f6)](){const _0x328b3e=_0x91201d,_0x4db080=this[_0x328b3e(0x1b0)][_0x328b3e(0x1d1)][_0x328b3e(0x1c1)](_0x328b3e(0x1b9));_0x4db080&&this[_0x328b3e(0x1f7)](_0x4db080,_0x328b3e(0x1a7),()=>{const _0x3305dd=_0x328b3e,_0x36f290=this[_0x3305dd(0x1b0)][_0x3305dd(0x1e4)][_0x3305dd(0x1e8)][_0x3305dd(0x1cc)][_0x3305dd(0x1de)]();_0x36f290&&_0x36f290[_0x3305dd(0x1b5)](_0x3305dd(0x1e0))&&this[_0x3305dd(0x1b0)][_0x3305dd(0x1f3)][_0x3305dd(0x1e7)][_0x3305dd(0x1c3)](_0x3305dd(0x1ec),()=>{const _0xfac45a=_0x3305dd;_0x2fcad3(this[_0xfac45a(0x1b0)],_0x36f290);});});const _0x1a0307=this[_0x328b3e(0x1b0)][_0x328b3e(0x1d1)][_0x328b3e(0x1c1)](_0x328b3e(0x1ad));_0x1a0307&&this[_0x328b3e(0x1f7)](_0x1a0307,_0x328b3e(0x1a7),()=>{const _0x4721d6=_0x328b3e,_0x1d6139=this[_0x4721d6(0x1b0)][_0x4721d6(0x1e4)][_0x4721d6(0x1e8)][_0x4721d6(0x1cc)][_0x4721d6(0x1de)]();_0x1d6139&&_0x1d6139[_0x4721d6(0x1b5)](_0x4721d6(0x1e0))&&this[_0x4721d6(0x1b0)][_0x4721d6(0x1f3)][_0x4721d6(0x1e7)][_0x4721d6(0x1c3)](_0x4721d6(0x1ec),()=>{const _0x73457a=_0x4721d6;_0x2fcad3(this[_0x73457a(0x1b0)],_0x1d6139);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x146499,ObservableMixin as _0x2a1e37}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x214e4e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x365cba}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x58730a}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1af0b2}from'../../utils/uploadutils.js';import{getImageUrls as _0x3286cb,getImageDimension as _0x4253d5}from'../../utils/editingutils.js';import{isAncestor as _0x50fde8}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a1e37(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2a2655,_0x397e73,_0x513eca){super(),this['_editor']=_0x2a2655,this['_dialog']=_0x397e73,this['_imageElement']=_0x513eca,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 _0x10290d=this['_imageElement'],_0x2f2b56=_0x10290d['getAttribute']('uploadcareImageId'),_0x13a30b=_0x10290d['getAttribute']('src');if(_0x2f2b56)await this['_loadImageInfo'](_0x2f2b56,_0x13a30b);else{if(this['_imageCache']['has'](_0x13a30b)){const _0xa3c5e2=this['_imageCache']['get'](_0x13a30b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa3c5e2['url'],this['imageDimension']=_0xa3c5e2['dimension'],this['imageId']=_0xa3c5e2['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4fb3ea}=this['_editor'],t=_0x4fb3ea['t'],_0x2398fb=new _0x58730a(_0x4fb3ea,this['imageStatus'],this['_attributes']);_0x2398fb['bind']('status')['to'](this,'imageStatus'),_0x2398fb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2398fb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2398fb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2398fb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x365cba,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2398fb,'position':_0x214e4e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2398fb['focus']();},'onHide':()=>{_0x2398fb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x52e21f=>!_0x50fde8(_0x52e21f,_0x2398fb['element'])}});}['_loadImageInfo'](_0x447ece,_0x4138ac){return _0x1af0b2['getInfo'](_0x447ece,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x23888b=>{const {width:_0x49bb2d,height:_0x1378b2}=_0x23888b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4138ac,this['imageDimension']={'width':_0x49bb2d,'height':_0x1378b2},this['imageId']=_0x447ece;})['catch'](_0x7f9b17=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x7f9b17['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x538517,_0x47bd9f){return this['_getImageAsFile'](_0x538517)['then'](_0x8ffd56=>_0x1af0b2['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':_0x47bd9f['signal'],'file':_0x8ffd56,'onProgress':_0x46960c=>{_0x46960c&&_0x46960c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x46960c['value']));}}))['then'](_0x26cc22=>{const {width:_0x1632e7,height:_0x2699e3}=_0x26cc22['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x26cc22['cdnUrl'],this['imageDimension']={'width':_0x1632e7,'height':_0x2699e3},this['imageId']=_0x26cc22['uuid'],this['imageUploadProgress']=null;const _0x27af4a=_0x538517['getAttribute']('src');this['_imageCache']['set'](_0x27af4a,{'id':_0x26cc22['uuid'],'url':_0x26cc22['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x46ca20=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x46ca20['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xd7f50f,_0x3203b8){_0xd7f50f['on']('apply',(_0x4d6c27,_0x72f930)=>{this['_replaceImage'](_0x3203b8,_0x72f930['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xd7f50f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xd7f50f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x20cb3e,_0x114358,_0x18dac9){const _0x5ba95f=this['_editor'],{width:_0x51240c,height:_0x4857db}=_0x4253d5(_0x114358,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x430788,imageSources:_0x4f8b53}=_0x3286cb(_0x114358,_0x51240c);_0x5ba95f['model']['change'](_0x2f95c0=>{if('$graveyard'===_0x20cb3e['root']['rootName']){_0x5ba95f['execute']('insertImage',{'imageType':_0x20cb3e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x20cb3e['getAttributes']()),'uploadcareImageId':_0x18dac9,'src':_0x430788,'sources':_0x4f8b53,'width':_0x51240c,'height':_0x4857db}});const _0x12151b=_0x20cb3e['getChildren']();_0x20cb3e=_0x5ba95f['model']['document']['selection']['getSelectedElement']();for(const _0x213386 of _0x12151b)_0x2f95c0['append'](_0x2f95c0['cloneElement'](_0x213386),_0x20cb3e);}else _0x2f95c0['setSelection'](_0x20cb3e,'on'),_0x5ba95f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x20cb3e['getAttributes']()),'uploadcareImageId':_0x18dac9,'src':_0x430788,'sources':_0x4f8b53,'width':_0x51240c,'height':_0x4857db},_0x20cb3e);_0x2f95c0['setSelection'](_0x20cb3e,'on');});}async['_getImageAsFile'](_0x1d2f76){const _0x19a8fe=_0x146499['window'],_0x3c6c7a=_0x146499['document']['location']['href'],_0x2996a9=new _0x19a8fe['URL'](_0x1d2f76['getAttribute']('src'),_0x3c6c7a);if('data:'===_0x2996a9['protocol']){const _0x2ba396=_0x2996a9['href']['split'](','),_0xeaa48a=_0x2ba396[0x0]['match'](/:(.*?);/)[0x1],_0x4c2953=_0xeaa48a['split']('/')[0x1],_0x88cbeb=_0x19a8fe['atob'](_0x2ba396[_0x2ba396['length']-0x1]);let _0x179eb7=_0x88cbeb['length'];const _0x154cc6=new _0x19a8fe['Uint8Array'](_0x179eb7);for(;_0x179eb7--;)_0x154cc6[_0x179eb7]=_0x88cbeb['charCodeAt'](_0x179eb7);return new _0x19a8fe['File']([_0x154cc6],'image.'+_0x4c2953,{'type':_0xeaa48a});}const _0x460aaf=_0x2996a9['href']['split']('/'),_0x3b02ee=_0x460aaf[_0x460aaf['length']-0x1],_0x180d61=_0x3b02ee['split']('.')[0x1];return _0x19a8fe['fetch'](_0x2996a9['href'])['then'](_0x1e1b87=>_0x1e1b87['clone']()['blob']())['then'](_0x32bec4=>new _0x19a8fe['File']([_0x32bec4],_0x3b02ee,{'type':'image/'+_0x180d61}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x13222a,_0x46b6a5){const _0x25d940=_0x5834,_0x219098=_0x13222a();while(!![]){try{const _0x5bbd4b=parseInt(_0x25d940(0x181))/0x1+parseInt(_0x25d940(0x183))/0x2*(parseInt(_0x25d940(0x184))/0x3)+parseInt(_0x25d940(0x17c))/0x4+-parseInt(_0x25d940(0x17b))/0x5+parseInt(_0x25d940(0x186))/0x6*(parseInt(_0x25d940(0x182))/0x7)+parseInt(_0x25d940(0x17d))/0x8+-parseInt(_0x25d940(0x17f))/0x9;if(_0x5bbd4b===_0x46b6a5)break;else _0x219098['push'](_0x219098['shift']());}catch(_0x2d06cf){_0x219098['push'](_0x219098['shift']());}}}(_0x90fa,0x24270));import{View as _0x4b284e}from'ckeditor5/src/ui.js';function _0x5834(_0x43e52e,_0x4baba9){const _0x90fabb=_0x90fa();return _0x5834=function(_0x5834cd,_0x2d2536){_0x5834cd=_0x5834cd-0x17b;let _0x5f49ca=_0x90fabb[_0x5834cd];return _0x5f49ca;},_0x5834(_0x43e52e,_0x4baba9);}function _0x90fa(){const _0x2a43bf=['526992jhmQyN','151896PZUxdp','ck-uploadcare-theme','1449135OHPjNO','bindTemplate','36894QzYSyT','7lmQePG','231506tIHnwl','3CciASK','imageSrc','1447266VjnJHh','uc-cloud-image-editor','image-edit','set','setTemplate','uc-light','1177490QWKWuS'];_0x90fa=function(){return _0x2a43bf;};return _0x90fa();}export class UploadcareImageEditFormEditingView extends _0x4b284e{constructor(_0x3ad690,_0x139b6c){const _0x492454=_0x5834;super(_0x3ad690);const _0x27e161=this[_0x492454(0x180)];this[_0x492454(0x189)](_0x492454(0x185),''),this[_0x492454(0x18a)]({'tag':_0x492454(0x187),'attributes':{..._0x139b6c,'class':[_0x492454(0x18b),_0x492454(0x17e)],'ctx-name':_0x492454(0x188),'cdn-url':_0x27e161['to'](_0x492454(0x185))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x23589d}from'ckeditor5/src/icons.js';import{ButtonView as _0x414d07,IconView as _0x1f5da7,View as _0x19c15c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x19c15c{constructor(_0xc9a465){super(_0xc9a465);const t=_0xc9a465['t'];this['set']('errorType',null);const _0x214f36=new _0x414d07(_0xc9a465);_0x214f36['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x214f36['withText']=!0x0,_0x214f36['class']='ck-button-action',_0x214f36['on']('execute',()=>{this['fire']('retry');}),_0x214f36['bind']('isVisible')['to'](this,'errorType',_0x36952a=>'NotFound'!==_0x36952a);const _0x5c70d1=new _0x1f5da7();_0x5c70d1['content']=_0x23589d,_0x5c70d1['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x44a3de=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':[_0x5c70d1,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x44a3de['to']('errorType',_0x589f3d=>t('NotFound'!==_0x589f3d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x214f36]},{'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 _0x19f2f0,View as _0xedb9c4}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0xedb9c4{constructor(_0x1aecf7){super(_0x1aecf7);const t=_0x1aecf7['t'],_0x3cfb32=this['bindTemplate'],_0x4481c3=new _0x19f2f0();_0x4481c3['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':[_0x4481c3,{'text':_0x3cfb32['to']('imageUploadProgress',_0x43c2c9=>t('Loading\x20image...')+'\x20('+(_0x43c2c9||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 _0x7a7c15=_0x3b4d;(function(_0x3b2d36,_0x5e7027){const _0xacee7f=_0x3b4d,_0x5a4a6d=_0x3b2d36();while(!![]){try{const _0x4ecb41=-parseInt(_0xacee7f(0x15c))/0x1+parseInt(_0xacee7f(0x15f))/0x2+parseInt(_0xacee7f(0x155))/0x3+-parseInt(_0xacee7f(0x12a))/0x4*(-parseInt(_0xacee7f(0x15b))/0x5)+-parseInt(_0xacee7f(0x134))/0x6*(-parseInt(_0xacee7f(0x14c))/0x7)+-parseInt(_0xacee7f(0x130))/0x8+-parseInt(_0xacee7f(0x133))/0x9*(parseInt(_0xacee7f(0x14a))/0xa);if(_0x4ecb41===_0x5e7027)break;else _0x5a4a6d['push'](_0x5a4a6d['shift']());}catch(_0x5e4320){_0x5a4a6d['push'](_0x5a4a6d['shift']());}}}(_0x34cf,0x41cc4));function _0x3b4d(_0x181ca7,_0x567815){const _0x34cf79=_0x34cf();return _0x3b4d=function(_0x3b4dfc,_0x472509){_0x3b4dfc=_0x3b4dfc-0x12a;let _0x4aced8=_0x34cf79[_0x3b4dfc];return _0x4aced8;},_0x3b4d(_0x181ca7,_0x567815);}import{View as _0x2c584c}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0xf6b639}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x26dd35}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x568392}from'./uploadcareimageeditformeditingview.js';function _0x34cf(){const _0x272f39=['render','target','addMany','filter','retry','ck-uploadcare-form','length','disconnect','_addUploadcareImageEditorListeners','uploading','370ASGrzg','add','2811557zibxEv','querySelector','getFocusableElement','focus','ck-reset_all-excluded','element','status','_loadingView','_waitForImageEditorComponent','1245585RDjrBA','error','setTemplate','apply','_items','ready','58415IjbHKk','144852HGOnlV','toLowerCase','addedNodes','742978DkMScz','detail','68clnjhh','observe','once','fire','uc-cloud-image-editor','createCollection','163128xweivn','div','change:status','231615bdsLyk','6DnGhJs','addEventListener','_addErrorViewListeners','_errorView','_setView','cancel','clear','cdnUrl','_editingView','set','nodeName','_focusableView'];_0x34cf=function(){return _0x272f39;};return _0x34cf();}import{DialogFocusManagerView as _0x4e9230}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4e9230{[_0x7a7c15(0x159)];[_0x7a7c15(0x153)];[_0x7a7c15(0x137)];[_0x7a7c15(0x13c)];[_0x7a7c15(0x13f)];constructor(_0x2c4300,_0xdff8b1,_0x2d6925){const _0x57f4ea=_0x7a7c15;super(_0x2c4300),this[_0x57f4ea(0x159)]=this[_0x57f4ea(0x12f)](),this[_0x57f4ea(0x153)]=new _0xf6b639(_0x2c4300),this[_0x57f4ea(0x137)]=new _0x26dd35(_0x2c4300),this[_0x57f4ea(0x13c)]=new _0x568392(_0x2c4300,_0x2d6925),this[_0x57f4ea(0x13f)]=new _0x2c584c(_0x2c4300),this[_0x57f4ea(0x13f)][_0x57f4ea(0x157)](this[_0x57f4ea(0x14e)]()),this[_0x57f4ea(0x13d)](_0x57f4ea(0x152),_0xdff8b1),this[_0x57f4ea(0x157)]({'tag':_0x57f4ea(0x131),'attributes':{'class':['ck',_0x57f4ea(0x150),_0x57f4ea(0x145)],'tabindex':'-1'},'children':this[_0x57f4ea(0x159)]}),this[_0x57f4ea(0x138)](),this[_0x57f4ea(0x12c)](_0x57f4ea(0x140),()=>{const _0x3bbfee=_0x57f4ea;this[_0x3bbfee(0x154)](this[_0x3bbfee(0x151)],_0x282b99=>{const _0x1bfcfc=_0x3bbfee;this[_0x1bfcfc(0x148)](_0x282b99);});}),this['on'](_0x57f4ea(0x132),()=>{const _0xc0e8e7=_0x57f4ea;this[_0xc0e8e7(0x138)]();}),this[_0x57f4ea(0x136)]();}[_0x7a7c15(0x14f)](){const _0x335bcf=_0x7a7c15;this[_0x335bcf(0x151)][_0x335bcf(0x14f)]();}[_0x7a7c15(0x138)](){const _0x1cfd29=_0x7a7c15;switch(this[_0x1cfd29(0x159)][_0x1cfd29(0x13a)](),this[_0x1cfd29(0x152)]){case _0x1cfd29(0x149):this[_0x1cfd29(0x159)][_0x1cfd29(0x14b)](this[_0x1cfd29(0x153)]);break;case _0x1cfd29(0x156):this[_0x1cfd29(0x159)][_0x1cfd29(0x14b)](this[_0x1cfd29(0x137)]);break;case _0x1cfd29(0x15a):this[_0x1cfd29(0x159)][_0x1cfd29(0x142)]([this[_0x1cfd29(0x13c)],this[_0x1cfd29(0x13f)]]);}}[_0x7a7c15(0x154)](_0x54f7c1,_0x75183d){const _0x4ff124=_0x7a7c15,_0x519103=_0x4ff124(0x12e),_0x10374f=_0x54f7c1[_0x4ff124(0x14d)](_0x519103);if(_0x10374f)return _0x75183d(_0x10374f);const _0x303e68=new MutationObserver(_0x3a5c3c=>{const _0x4b8ec4=_0x4ff124,_0x1ded97=_0x3a5c3c[_0x4b8ec4(0x143)](_0x478a90=>_0x478a90[_0x4b8ec4(0x141)]===_0x54f7c1&&_0x478a90[_0x4b8ec4(0x15e)][_0x4b8ec4(0x146)]>0x0&&_0x478a90[_0x4b8ec4(0x15e)][0x0][_0x4b8ec4(0x13e)][_0x4b8ec4(0x15d)]()===_0x519103);_0x1ded97[_0x4b8ec4(0x146)]&&(_0x303e68[_0x4b8ec4(0x147)](),_0x75183d(_0x1ded97[0x0][_0x4b8ec4(0x15e)][0x0]));});_0x303e68[_0x4ff124(0x12b)](_0x54f7c1,{'childList':!0x0,'subtree':!0x0});}[_0x7a7c15(0x148)](_0x54592d){const _0x327dbc=_0x7a7c15;_0x54592d[_0x327dbc(0x135)](_0x327dbc(0x158),_0x2e3682=>{const _0x4aceec=_0x327dbc;this[_0x4aceec(0x12d)](_0x4aceec(0x158),{'imageSrc':_0x2e3682[_0x4aceec(0x160)][_0x4aceec(0x13b)]});}),_0x54592d[_0x327dbc(0x135)](_0x327dbc(0x139),()=>{const _0x5b3033=_0x327dbc;this[_0x5b3033(0x12d)](_0x5b3033(0x139));});}[_0x7a7c15(0x136)](){const _0x4e4ba7=_0x7a7c15;this[_0x4e4ba7(0x137)]['on'](_0x4e4ba7(0x144),()=>{const _0x50e98b=_0x4e4ba7;this[_0x50e98b(0x12d)](_0x50e98b(0x144));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36f660=_0x1933;function _0x1933(_0x4cf5ef,_0x20bdec){const _0x461472=_0x4614();return _0x1933=function(_0x19332c,_0x3fcd47){_0x19332c=_0x19332c-0xd7;let _0x4e52a4=_0x461472[_0x19332c];return _0x4e52a4;},_0x1933(_0x4cf5ef,_0x20bdec);}(function(_0x30c632,_0x58d9d2){const _0x285b28=_0x1933,_0x5cc4bf=_0x30c632();while(!![]){try{const _0x14a3e6=-parseInt(_0x285b28(0xea))/0x1*(parseInt(_0x285b28(0xe7))/0x2)+parseInt(_0x285b28(0xf4))/0x3+parseInt(_0x285b28(0xed))/0x4+parseInt(_0x285b28(0xe2))/0x5*(-parseInt(_0x285b28(0xec))/0x6)+parseInt(_0x285b28(0xe1))/0x7+-parseInt(_0x285b28(0xf3))/0x8+-parseInt(_0x285b28(0xde))/0x9;if(_0x14a3e6===_0x58d9d2)break;else _0x5cc4bf['push'](_0x5cc4bf['shift']());}catch(_0x82793d){_0x5cc4bf['push'](_0x5cc4bf['shift']());}}}(_0x4614,0xa5398));import{Command as _0x19c3bd}from'ckeditor5/src/core.js';import{Dialog as _0x155062}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x27dcee}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5de1a4}from'../utils/editingutils.js';function _0x4614(){const _0x242cbe=['execute','imageBlock','2ARPaso','refresh','30liXtaK','4235880gMLASI','isEnabled','imageInline','selection','_isEditable','element','231584smooCv','2708550WpPrAm','get','model','document','requires','editor','plugins','config','unbind','4260501aNiYNB','getSelectedElement','uploadcare.allowExternalImagesEditing','1946392iiRVAD','1054705vwDNeJ','set','isActive','bind','imageEditController','6074sLPUJI'];_0x4614=function(){return _0x242cbe;};return _0x4614();}export class UploadcareImageEditCommand extends _0x19c3bd{[_0x36f660(0xe6)];static get[_0x36f660(0xd9)](){return[_0x155062];}[_0x36f660(0xf1)];constructor(_0x1ab33e){const _0x43e27e=_0x36f660;super(_0x1ab33e),this[_0x43e27e(0xe6)]=void 0x0,this[_0x43e27e(0xf1)]=_0x5de1a4(_0x1ab33e[_0x43e27e(0xdc)][_0x43e27e(0xf5)](_0x43e27e(0xe0))||[]),this[_0x43e27e(0xe3)]({'isActive':!0x1});}[_0x36f660(0xeb)](){const _0x256b21=_0x36f660,_0x32425d=this[_0x256b21(0xda)][_0x256b21(0xd7)][_0x256b21(0xd8)][_0x256b21(0xf0)][_0x256b21(0xdf)]();this[_0x256b21(0xee)]=this[_0x256b21(0xf1)](_0x32425d);}[_0x36f660(0xe8)](){const _0x3c0c7a=_0x36f660;this[_0x3c0c7a(0xe6)]&&(this[_0x3c0c7a(0xdd)](_0x3c0c7a(0xe4)),this[_0x3c0c7a(0xe6)]=void 0x0);const _0x1613ce=this[_0x3c0c7a(0xda)][_0x3c0c7a(0xd7)][_0x3c0c7a(0xd8)][_0x3c0c7a(0xf0)][_0x3c0c7a(0xdf)]();_0x1613ce&&(_0x1613ce['is'](_0x3c0c7a(0xf2),_0x3c0c7a(0xe9))||_0x1613ce['is'](_0x3c0c7a(0xf2),_0x3c0c7a(0xef)))&&(this[_0x3c0c7a(0xe6)]=new _0x27dcee(this[_0x3c0c7a(0xda)],this[_0x3c0c7a(0xda)][_0x3c0c7a(0xdb)][_0x3c0c7a(0xf5)](_0x155062),_0x1613ce),this[_0x3c0c7a(0xe5)](_0x3c0c7a(0xe4))['to'](this[_0x3c0c7a(0xe6)],_0x3c0c7a(0xe4)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3f40(){const _0x3ff9e3=['1138008OBLMaw','481797Vtajee','isPremiumPlugin','4776184lBwUjb','init','44943MHQxqn','60410FPZYba','33668829YpltWY','10cwcwbQ','126BegFkI','pluginName','requires','isOfficialPlugin','commands','UploadcareImageEditEditing','uploadcareImageEdit','uploadcareImageReplace','add','ImageEditing','5229076wkOUwE','582qVASkX','ImageUtils'];_0x3f40=function(){return _0x3ff9e3;};return _0x3f40();}const _0x53f91a=_0x1da6;(function(_0x19976e,_0x2bdc59){const _0x396f29=_0x1da6,_0x46bd48=_0x19976e();while(!![]){try{const _0x56387b=-parseInt(_0x396f29(0x1f4))/0x1+-parseInt(_0x396f29(0x1e6))/0x2*(parseInt(_0x396f29(0x1f8))/0x3)+-parseInt(_0x396f29(0x1f0))/0x4+parseInt(_0x396f29(0x1f9))/0x5*(-parseInt(_0x396f29(0x1f1))/0x6)+parseInt(_0x396f29(0x1f6))/0x7+parseInt(_0x396f29(0x1f3))/0x8+-parseInt(_0x396f29(0x1fa))/0x9*(-parseInt(_0x396f29(0x1e5))/0xa);if(_0x56387b===_0x2bdc59)break;else _0x46bd48['push'](_0x46bd48['shift']());}catch(_0x269f25){_0x46bd48['push'](_0x46bd48['shift']());}}}(_0x3f40,0xa14f1));import{Plugin as _0x102879}from'ckeditor5/src/core.js';import{Notification as _0x3a0bed}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x2c14ce}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x195a97}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2703a7}from'../uploadcareediting.js';function _0x1da6(_0x3d37a9,_0x43bb97){const _0x3f4074=_0x3f40();return _0x1da6=function(_0x1da6bf,_0x4e0ad4){_0x1da6bf=_0x1da6bf-0x1e5;let _0x3b5fc9=_0x3f4074[_0x1da6bf];return _0x3b5fc9;},_0x1da6(_0x3d37a9,_0x43bb97);}export class UploadcareImageEditEditing extends _0x102879{static get[_0x53f91a(0x1e7)](){const _0x526ea5=_0x53f91a;return _0x526ea5(0x1eb);}static get[_0x53f91a(0x1e8)](){const _0x95109a=_0x53f91a;return[_0x2703a7,_0x3a0bed,_0x95109a(0x1f2),_0x95109a(0x1ef)];}static get[_0x53f91a(0x1e9)](){return!0x0;}static get[_0x53f91a(0x1f5)](){return!0x0;}[_0x53f91a(0x1f7)](){const _0x3dd1f0=_0x53f91a,{editor:_0x474e1e}=this;_0x474e1e[_0x3dd1f0(0x1ea)][_0x3dd1f0(0x1ee)](_0x3dd1f0(0x1ec),new _0x2c14ce(_0x474e1e)),_0x474e1e[_0x3dd1f0(0x1ea)][_0x3dd1f0(0x1ee)](_0x3dd1f0(0x1ed),new _0x195a97(_0x474e1e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4aff35}from'ckeditor5/src/core.js';import{ButtonView as _0x20a0d3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x10d799}from'ckeditor5/src/icons.js';import{createElement as _0x3996d8}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 _0x4aff35{['_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 _0x380dcc=this['editor'];_0x380dcc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2f3024=>{const _0x47dc73=_0x380dcc['commands']['get']('uploadcareImageEdit'),_0x3c2e3e=new _0x20a0d3(_0x2f3024),t=_0x2f3024['t'];return _0x3c2e3e['set']({'icon':_0x10d799,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3c2e3e['bind']('isEnabled')['to'](_0x47dc73),_0x3c2e3e['bind']('isOn')['to'](_0x47dc73,'isActive'),this['listenTo'](_0x3c2e3e,'execute',()=>{_0x380dcc['execute']('uploadcareImageEdit'),_0x380dcc['editing']['view']['focus']();}),_0x3c2e3e;}),this['_initConfig']();}['_initConfig'](){const _0xf63298=_0x3996d8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xf63298),this['listenTo'](this['editor'],'destroy',()=>{_0xf63298['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1db1d8=_0x49f2;(function(_0x2e31d5,_0x20e9de){const _0x108685=_0x49f2,_0x2820c8=_0x2e31d5();while(!![]){try{const _0x8d5e1=-parseInt(_0x108685(0x10f))/0x1+-parseInt(_0x108685(0x110))/0x2+parseInt(_0x108685(0x116))/0x3*(parseInt(_0x108685(0x11b))/0x4)+-parseInt(_0x108685(0x11f))/0x5*(parseInt(_0x108685(0x126))/0x6)+-parseInt(_0x108685(0x113))/0x7+-parseInt(_0x108685(0x10e))/0x8+parseInt(_0x108685(0x11a))/0x9;if(_0x8d5e1===_0x20e9de)break;else _0x2820c8['push'](_0x2820c8['shift']());}catch(_0x5698cc){_0x2820c8['push'](_0x2820c8['shift']());}}}(_0x47ac,0xf0d19));import{Command as _0x56e8b3}from'ckeditor5/src/core.js';function _0x49f2(_0x312573,_0x30d366){const _0x47ac9a=_0x47ac();return _0x49f2=function(_0x49f206,_0xb29492){_0x49f206=_0x49f206-0x10e;let _0x54f7a2=_0x47ac9a[_0x49f206];return _0x54f7a2;},_0x49f2(_0x312573,_0x30d366);}export class UploadcareImageReplaceCommand extends _0x56e8b3{[_0x1db1d8(0x11e)](){const _0x4ba2c2=_0x1db1d8,_0x2dc0ed=this[_0x4ba2c2(0x114)][_0x4ba2c2(0x118)][_0x4ba2c2(0x125)][_0x4ba2c2(0x11d)][_0x4ba2c2(0x112)]();this[_0x4ba2c2(0x111)]=Boolean(_0x2dc0ed&&(_0x2dc0ed['is'](_0x4ba2c2(0x121),_0x4ba2c2(0x11c))||_0x2dc0ed['is'](_0x4ba2c2(0x121),_0x4ba2c2(0x117))));}[_0x1db1d8(0x120)](_0x14f25){const _0x980956=_0x1db1d8,_0x2f48d7=this[_0x980956(0x114)][_0x980956(0x118)][_0x980956(0x125)][_0x980956(0x11d)][_0x980956(0x112)]();this[_0x980956(0x114)][_0x980956(0x118)][_0x980956(0x123)](_0x83376c=>{const _0x1accbb=_0x980956;_0x83376c[_0x1accbb(0x122)](_0x14f25,_0x2f48d7),_0x83376c[_0x1accbb(0x119)](_0x1accbb(0x115),_0x2f48d7),_0x83376c[_0x1accbb(0x119)](_0x1accbb(0x124),_0x2f48d7);});}}function _0x47ac(){const _0x1ea183=['6VOKCoq','imageInline','model','removeAttribute','27867249xZeXQb','2447232auYTif','imageBlock','selection','refresh','1252355EeHTax','execute','element','setAttributes','change','sizes','document','6DAoNHO','656888ojLYbt','514576MfyKRi','1035610rpJdcn','isEnabled','getSelectedElement','13780347ufOdMz','editor','srcset'];_0x47ac=function(){return _0x1ea183;};return _0x47ac();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x3ea687=_0x3c44;(function(_0x416f77,_0x9f5d0d){var _0x1d1f03=_0x3c44,_0xffa6f3=_0x416f77();while(!![]){try{var _0x8ad986=-parseInt(_0x1d1f03(0x10d))/0x1*(parseInt(_0x1d1f03(0x113))/0x2)+-parseInt(_0x1d1f03(0x112))/0x3*(parseInt(_0x1d1f03(0x10f))/0x4)+-parseInt(_0x1d1f03(0x106))/0x5+-parseInt(_0x1d1f03(0x10a))/0x6*(parseInt(_0x1d1f03(0x10b))/0x7)+parseInt(_0x1d1f03(0x114))/0x8*(parseInt(_0x1d1f03(0x10e))/0x9)+-parseInt(_0x1d1f03(0x115))/0xa*(parseInt(_0x1d1f03(0x10c))/0xb)+parseInt(_0x1d1f03(0x109))/0xc*(parseInt(_0x1d1f03(0x116))/0xd);if(_0x8ad986===_0x9f5d0d)break;else _0xffa6f3['push'](_0xffa6f3['shift']());}catch(_0x5845c0){_0xffa6f3['push'](_0xffa6f3['shift']());}}}(_0x7829,0xd35cc));import{Plugin as _0x7ea478}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x4a1193}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x265b3f}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x7ea478{static get[_0x3ea687(0x105)](){var _0x43d691=_0x3ea687;return _0x43d691(0x110);}static get[_0x3ea687(0x108)](){return[_0x4a1193,_0x265b3f];}static get[_0x3ea687(0x111)](){return!0x0;}static get[_0x3ea687(0x107)](){return!0x0;}}function _0x3c44(_0x347481,_0x1a4ece){var _0x782969=_0x7829();return _0x3c44=function(_0x3c44c9,_0x428919){_0x3c44c9=_0x3c44c9-0x105;var _0x32dc4b=_0x782969[_0x3c44c9];return _0x32dc4b;},_0x3c44(_0x347481,_0x1a4ece);}function _0x7829(){var _0x29b20b=['9PhzbqS','306jNDvSu','5922608oMzcpL','42790sUvXEz','78fcRoxw','pluginName','3545625wncjkL','isPremiumPlugin','requires','5454252LPrNWG','7460022pbFYdM','7ssKoRk','990PXOcCi','879OhGcJB','18wfKaDV','1159972SIZHhe','UploadcareImageEdit','isOfficialPlugin'];_0x7829=function(){return _0x29b20b;};return _0x7829();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46f9d1=_0x4c4b;(function(_0x2728ee,_0x3b4032){const _0x205de7=_0x4c4b,_0x399de4=_0x2728ee();while(!![]){try{const _0x56af5e=-parseInt(_0x205de7(0x15f))/0x1+parseInt(_0x205de7(0x185))/0x2*(-parseInt(_0x205de7(0x18b))/0x3)+-parseInt(_0x205de7(0x17b))/0x4*(parseInt(_0x205de7(0x160))/0x5)+-parseInt(_0x205de7(0x16a))/0x6+-parseInt(_0x205de7(0x158))/0x7*(parseInt(_0x205de7(0x18c))/0x8)+parseInt(_0x205de7(0x19e))/0x9+parseInt(_0x205de7(0x177))/0xa*(parseInt(_0x205de7(0x1a1))/0xb);if(_0x56af5e===_0x3b4032)break;else _0x399de4['push'](_0x399de4['shift']());}catch(_0x267cb7){_0x399de4['push'](_0x399de4['shift']());}}}(_0xaebd,0x3ffb7));import{Plugin as _0x1c181b}from'ckeditor5/src/core.js';import{IconDropbox as _0x989aab,IconFacebook as _0x50a363,IconGoogleDrive as _0x254912,IconGooglePhotos as _0x49e980,IconUploadcareImageUpload as _0x5aa364,IconUploadcareLink as _0x2170d8,IconOneDrive as _0x57e436}from'ckeditor5/src/icons.js';import{ButtonView as _0x72fdc4,MenuBarMenuListItemButtonView as _0x1115e7}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x1e5a1a}from'./uploadcareconfig.js';import{getTranslation as _0x217cf9}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x4c4b(_0x4a83ff,_0x2a769d){const _0xaebd54=_0xaebd();return _0x4c4b=function(_0x4c4b14,_0x51c0a6){_0x4c4b14=_0x4c4b14-0x152;let _0x22a726=_0xaebd54[_0x4c4b14];return _0x22a726;},_0x4c4b(_0x4a83ff,_0x2a769d);}function _0xaebd(){const _0x1b3aaf=['map','get','url','3575340WZNGSL','assetManager','_createDropdownButtons','5918627kPkwqH','expired','editor','uploadcareLicenseKeyDomainLimit','featureNotAllowed','Facebook','_showLicenseError','init','afterInit','1988QxOyfi','uploadcareLicenseKeyExpired','pluginName','uploadcareLicenseKeyValid','uploadcareLicenseKeyEvaluationLimit','upload','Uploadcare','466643rqPdHs','5BxwQBi','GDrive','commands','plugins','destroy','_createMenuBarButtons','locale','uploadcareLicenseKeyTrialLimit','_createToolbarButton','domainLimit','217206oVoXkn','registerIntegration','isEnabled','execute','URL','shortText','isImageSelected','bind','uploadcareLicenseKeyNotAllowed','isPremiumPlugin','entries','Local','label','20buxcFu','uploadcare.uploader.sourceList','_licenseKeyCheckInterval','config','699196woMujL','Dropbox','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyUsageLimit','tooltip','type','Insert','has','push','forEach','9136UCYmfi','invalid','isOfficialPlugin','reduce','_getIntegrationKey','withText','216bvcLtn','5768WQhTLA','usageLimit','GPhotos','icon','OneDrive','licenseKey','text','evaluationLimit','trialLimit','uploadcare','_normalizeConfigSourceList','ImageInsertUI','Replace','UploadcareUI','_createButton'];_0xaebd=function(){return _0x1b3aaf;};return _0xaebd();}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x1c181b{[_0x46f9d1(0x191)];[_0x46f9d1(0x179)];static get[_0x46f9d1(0x15a)](){const _0x1f8e03=_0x46f9d1;return _0x1f8e03(0x199);}static get[_0x46f9d1(0x187)](){return!0x0;}static get[_0x46f9d1(0x173)](){return!0x0;}[_0x46f9d1(0x156)](){const _0x4ba0ab=_0x46f9d1;this[_0x4ba0ab(0x191)]=this[_0x4ba0ab(0x1a3)][_0x4ba0ab(0x17a)][_0x4ba0ab(0x19c)](_0x4ba0ab(0x191));const _0x1c17c5=this[_0x4ba0ab(0x1a3)];this[_0x4ba0ab(0x179)]=setInterval(()=>{const _0x337d0c=_0x4ba0ab;let _0x2913c5;for(const _0x2fab0d in _0x1c17c5){const _0x2badaa=_0x2fab0d,_0x5004ff=_0x1c17c5[_0x2badaa];if(_0x337d0c(0x15b)==_0x5004ff||_0x337d0c(0x17d)==_0x5004ff||_0x337d0c(0x159)==_0x5004ff||_0x337d0c(0x152)==_0x5004ff||_0x337d0c(0x172)==_0x5004ff||_0x337d0c(0x15c)==_0x5004ff||_0x337d0c(0x167)==_0x5004ff||_0x337d0c(0x17e)==_0x5004ff){delete _0x1c17c5[_0x2badaa],_0x2913c5=_0x5004ff,clearInterval(this[_0x337d0c(0x179)]),this[_0x337d0c(0x179)]=void 0x0;break;}}_0x337d0c(0x17d)==_0x2913c5&&_0x1c17c5[_0x337d0c(0x155)](_0x337d0c(0x186)),_0x337d0c(0x159)==_0x2913c5&&_0x1c17c5[_0x337d0c(0x155)](_0x337d0c(0x1a2)),_0x337d0c(0x152)==_0x2913c5&&_0x1c17c5[_0x337d0c(0x155)](_0x337d0c(0x169)),_0x337d0c(0x172)==_0x2913c5&&_0x1c17c5[_0x337d0c(0x155)](_0x337d0c(0x153),_0x337d0c(0x15e)),_0x337d0c(0x15c)==_0x2913c5&&_0x1c17c5[_0x337d0c(0x155)](_0x337d0c(0x193)),_0x337d0c(0x167)==_0x2913c5&&_0x1c17c5[_0x337d0c(0x155)](_0x337d0c(0x194)),_0x337d0c(0x17e)==_0x2913c5&&_0x1c17c5[_0x337d0c(0x155)](_0x337d0c(0x18d));},0x3e8);}[_0x46f9d1(0x157)](){const _0x2de48d=_0x46f9d1,{editor:_0x52c3f0}=this,_0xc85a79=_0x52c3f0[_0x2de48d(0x162)][_0x2de48d(0x19c)](_0x2de48d(0x195));if(!_0xc85a79)return;const _0x1f9d9d=this[_0x2de48d(0x196)](_0x52c3f0[_0x2de48d(0x17a)][_0x2de48d(0x19c)](_0x2de48d(0x178)))[_0x2de48d(0x188)]((_0x14aead,_0x41b169)=>{const _0x12bc52=_0x2de48d,_0x411050=this[_0x12bc52(0x189)](_0x41b169[_0x12bc52(0x180)]);return _0x14aead[_0x411050]||(_0x14aead[_0x411050]=[]),_0x14aead[_0x411050][_0x12bc52(0x183)](_0x41b169),_0x14aead;},{});_0x52c3f0[_0x2de48d(0x163)][_0x2de48d(0x182)](_0x2de48d(0x197))&&_0x52c3f0[_0x2de48d(0x162)][_0x2de48d(0x19c)](_0x2de48d(0x195))&&Object[_0x2de48d(0x174)](_0x1f9d9d)[_0x2de48d(0x184)](([_0x2d4398,_0x428f86])=>{const _0x15d0d0=_0x2de48d;_0x52c3f0[_0x15d0d0(0x163)][_0x15d0d0(0x19c)](_0x15d0d0(0x197))[_0x15d0d0(0x16b)]({'name':_0x2d4398,'observable':()=>_0xc85a79,'buttonViewCreator':()=>this[_0x15d0d0(0x168)](_0x428f86),'formViewCreator':()=>this[_0x15d0d0(0x1a0)](_0x428f86),'menuBarButtonViewCreator':()=>this[_0x15d0d0(0x165)](_0x428f86),'override':_0x15d0d0(0x19f)!==_0x2d4398});});}[_0x46f9d1(0x164)](){const _0x13f561=_0x46f9d1;super[_0x13f561(0x164)](),this[_0x13f561(0x179)]&&clearInterval(this[_0x13f561(0x179)]);}[_0x46f9d1(0x196)](_0x4e9df7){const _0x30a714=_0x46f9d1,{locale:_0x3350ba}=this[_0x30a714(0x1a3)];return _0x4e9df7[_0x30a714(0x19b)](_0x14d62f=>{const _0x6cc535=_0x30a714,_0x94f38c=_0x217cf9(_0x3350ba,_0x14d62f,_0x6cc535(0x181));switch(_0x14d62f){case _0x1e5a1a[_0x6cc535(0x175)]:return{'icon':_0x5aa364,'type':_0x1e5a1a[_0x6cc535(0x175)],..._0x94f38c};case _0x1e5a1a[_0x6cc535(0x16e)]:return{'icon':_0x2170d8,'type':_0x1e5a1a[_0x6cc535(0x16e)],..._0x94f38c};case _0x1e5a1a[_0x6cc535(0x17c)]:return{'icon':_0x989aab,'type':_0x1e5a1a[_0x6cc535(0x17c)],..._0x94f38c};case _0x1e5a1a[_0x6cc535(0x154)]:return{'icon':_0x50a363,'type':_0x1e5a1a[_0x6cc535(0x154)],..._0x94f38c};case _0x1e5a1a[_0x6cc535(0x161)]:return{'icon':_0x254912,'type':_0x1e5a1a[_0x6cc535(0x161)],..._0x94f38c};case _0x1e5a1a[_0x6cc535(0x18e)]:return{'icon':_0x49e980,'type':_0x1e5a1a[_0x6cc535(0x18e)],..._0x94f38c};case _0x1e5a1a[_0x6cc535(0x190)]:return{'icon':_0x57e436,'type':_0x1e5a1a[_0x6cc535(0x190)],..._0x94f38c};}});}[_0x46f9d1(0x189)](_0x4cef29){const _0x121542=_0x46f9d1;switch(_0x4cef29){case _0x1e5a1a[_0x121542(0x175)]:return _0x121542(0x15d);case _0x1e5a1a[_0x121542(0x16e)]:return _0x121542(0x19d);default:return _0x121542(0x19f);}}[_0x46f9d1(0x19a)](_0x2b4aba,_0x39fb9c){const _0x3234a9=_0x46f9d1,_0xafde9f=this[_0x3234a9(0x1a3)],_0x57a9d4=new _0x2b4aba(_0xafde9f[_0x3234a9(0x166)]),_0x53ccbb=_0xafde9f[_0x3234a9(0x162)][_0x3234a9(0x19c)](_0x3234a9(0x195));return _0x57a9d4[_0x3234a9(0x171)](_0x3234a9(0x16c))['to'](_0x53ccbb),_0x57a9d4['on'](_0x3234a9(0x16d),()=>{const _0x3f7c0d=_0x3234a9;_0x53ccbb[_0x3f7c0d(0x16d)](_0x39fb9c);}),_0x57a9d4;}[_0x46f9d1(0x168)](_0xc7212){const _0xbaf728=_0x46f9d1,{locale:_0x7b9131}=this[_0xbaf728(0x1a3)],_0x33ec15=this[_0xbaf728(0x1a3)][_0xbaf728(0x163)][_0xbaf728(0x19c)](_0xbaf728(0x197)),_0x2377c5=_0xc7212[0x0],_0xbe5fe=this[_0xbaf728(0x19a)](_0x72fdc4,_0x2377c5[_0xbaf728(0x180)]);return _0xbe5fe[_0xbaf728(0x18f)]=_0x2377c5[_0xbaf728(0x18f)],_0xbe5fe[_0xbaf728(0x171)](_0xbaf728(0x176))['to'](_0x33ec15,_0xbaf728(0x170),_0x57eb4e=>_0x217cf9(_0x7b9131,_0x2377c5[_0xbaf728(0x180)],_0x57eb4e?_0xbaf728(0x198):_0xbaf728(0x181))[_0xbaf728(0x192)]),_0xbe5fe[_0xbaf728(0x17f)]=!0x0,_0xbe5fe;}[_0x46f9d1(0x1a0)](_0x12f358){const _0x27a47a=_0x46f9d1,{locale:_0x10f10e}=this[_0x27a47a(0x1a3)],_0x5ec996=this[_0x27a47a(0x1a3)][_0x27a47a(0x163)][_0x27a47a(0x19c)](_0x27a47a(0x197));return _0x12f358[_0x27a47a(0x19b)](_0x4cc93b=>{const _0xdfba34=_0x27a47a,_0x22c3e9=this[_0xdfba34(0x19a)](_0x72fdc4,_0x4cc93b[_0xdfba34(0x180)]);return _0x22c3e9[_0xdfba34(0x18a)]=!0x0,_0x22c3e9[_0xdfba34(0x18f)]=_0x4cc93b[_0xdfba34(0x18f)],_0x22c3e9[_0xdfba34(0x171)](_0xdfba34(0x176))['to'](_0x5ec996,_0xdfba34(0x170),_0x140bbf=>_0x217cf9(_0x10f10e,_0x4cc93b[_0xdfba34(0x180)],_0x140bbf?_0xdfba34(0x198):_0xdfba34(0x181))[_0xdfba34(0x192)]),_0x22c3e9;});}[_0x46f9d1(0x165)](_0x308ef2){const _0x1dce55=_0x46f9d1;return _0x308ef2[_0x1dce55(0x19b)](_0x59ea83=>{const _0x8004c=_0x1dce55,_0x216acc=this[_0x8004c(0x19a)](_0x1115e7,_0x59ea83[_0x8004c(0x180)]);return _0x216acc[_0x8004c(0x18f)]=_0x59ea83[_0x8004c(0x18f)],_0x216acc[_0x8004c(0x176)]=_0x59ea83[_0x8004c(0x16f)],_0x216acc;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xb82113}from'ckeditor5/src/core.js';import{FileRepository as _0x5a55db}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x1dad8b}from'./uploadcareediting.js';import{UploadUtils as _0x2a7610}from'./utils/uploadutils.js';import{getImageUrls as _0x3ddee8}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0xb82113{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5a55db,_0x1dad8b];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x175f15=this['editor'];if(!!!_0x175f15['config']['get']('uploadcare'))return;_0x175f15['plugins']['get'](_0x5a55db)['createUploadAdapter']=_0x150d5e=>new k(_0x150d5e,_0x175f15),_0x175f15['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x23d2b8,{imageElement:_0x1e01aa,data:_0x36a3b1})=>{_0x175f15['model']['change'](_0x3e2e30=>{_0x3e2e30['setAttribute']('uploadcareImageId',_0x36a3b1['uploadcareImageId'],_0x1e01aa);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x49a2c2,_0x4a8c55){this['loader']=_0x49a2c2,this['editor']=_0x4a8c55,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x55497b=await this['loader']['file'];return _0x2a7610['upload']({'file':_0x55497b,'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':_0x1ff168=>{_0x1ff168&&_0x1ff168['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1ff168['value']);}})['then'](async _0x457b9f=>{const {imageFallbackUrl:_0x364ec0,imageSources:_0x58a6c2}=_0x3ddee8(_0x457b9f['cdnUrl'],_0x457b9f['imageInfo']['width']);return{'uploadcareImageId':_0x457b9f['uuid'],'default':_0x364ec0,'sources':_0x58a6c2};})['catch'](()=>{const _0x4b343=t('Cannot\x20upload\x20file:')+('\x20'+_0x55497b['name']+'.');return Promise['reject'](_0x4b343);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5b3128}from'../uploadcareconfig.js';export function getTranslation(_0x48443b,_0x2d4bf4,_0x43b849){const t=_0x48443b['t'],_0x50b77f=_0x48443b['t'];switch(_0x2d4bf4){case _0x5b3128['Local']:return{'text':_0x50b77f('Insert'===_0x43b849?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x50b77f('From\x20computer')};case _0x5b3128['URL']:return{'text':'Insert'===_0x43b849?_0x50b77f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x50b77f('Via\x20URL')};case _0x5b3128['Dropbox']:return{'text':t('Insert'===_0x43b849?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5b3128['Facebook']:return{'text':t('Insert'===_0x43b849?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5b3128['GDrive']:return{'text':t('Insert'===_0x43b849?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5b3128['GPhotos']:return{'text':t('Insert'===_0x43b849?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5b3128['OneDrive']:return{'text':t('Insert'===_0x43b849?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2d4bf4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x149c38=_0x5ace;function _0x4c9b(){var _0x2f725e=['12RBhdGU','228426fESeSl','1440RfGqyH','4740bHbUeH','1679655Mhojrl','917TAGwNX','20Xrmrxj','bindTemplate','div','15272BLtXbU','getFocusableElement','focusCycler','fire','createCollection','358891NBnTSZ','focusTracker','forwardCycle','92dNztiT','657ILCSCA','true','415748xILEBF','3FDuHEu'];_0x4c9b=function(){return _0x2f725e;};return _0x4c9b();}(function(_0x470aef,_0x2cfc04){var _0x2237fc=_0x5ace,_0x162017=_0x470aef();while(!![]){try{var _0x47f50c=parseInt(_0x2237fc(0x15a))/0x1*(-parseInt(_0x2237fc(0x152))/0x2)+parseInt(_0x2237fc(0x156))/0x3*(-parseInt(_0x2237fc(0x155))/0x4)+parseInt(_0x2237fc(0x15b))/0x5+parseInt(_0x2237fc(0x159))/0x6*(parseInt(_0x2237fc(0x15c))/0x7)+parseInt(_0x2237fc(0x160))/0x8*(parseInt(_0x2237fc(0x153))/0x9)+-parseInt(_0x2237fc(0x15d))/0xa*(-parseInt(_0x2237fc(0x158))/0xb)+-parseInt(_0x2237fc(0x157))/0xc*(parseInt(_0x2237fc(0x14f))/0xd);if(_0x47f50c===_0x2cfc04)break;else _0x162017['push'](_0x162017['shift']());}catch(_0x1e3a8e){_0x162017['push'](_0x162017['shift']());}}}(_0x4c9b,0x30814));function _0x5ace(_0x56856b,_0x449c80){var _0x4c9b72=_0x4c9b();return _0x5ace=function(_0x5aceac,_0x2f6044){_0x5aceac=_0x5aceac-0x14e;var _0x369c39=_0x4c9b72[_0x5aceac];return _0x369c39;},_0x5ace(_0x56856b,_0x449c80);}import{FocusTracker as _0x5a0407}from'ckeditor5/src/utils.js';import{View as _0x360041,FocusCycler as _0x293f4f}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x360041{[_0x149c38(0x150)];[_0x149c38(0x162)];constructor(_0xa8862f){var _0x3eaa64=_0x149c38;super(_0xa8862f),this[_0x3eaa64(0x150)]=new _0x5a0407(),this[_0x3eaa64(0x162)]=new _0x293f4f({'focusables':this[_0x3eaa64(0x14e)](),'focusTracker':this[_0x3eaa64(0x150)]});}[_0x149c38(0x161)](){var _0x341e4a=_0x149c38;return{'tag':_0x341e4a(0x15f),'attributes':{'aria-hidden':_0x341e4a(0x154),'tabindex':'0'},'on':{'focus':this[_0x341e4a(0x15e)]['to'](()=>{var _0x13404e=_0x341e4a;this[_0x13404e(0x162)][_0x13404e(0x163)](_0x13404e(0x151));})}};}}
|