@ckeditor/ckeditor5-uploadcare 46.1.0-alpha.0 → 46.1.0-alpha.1
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 _0x4d5b9f=_0x16ab;(function(_0x16c0e4,_0x813f39){const _0x44619e=_0x16ab,_0x30d70a=_0x16c0e4();while(!![]){try{const _0x43d5c8=-parseInt(_0x44619e(0x18d))/0x1*(parseInt(_0x44619e(0x1b3))/0x2)+-parseInt(_0x44619e(0x186))/0x3+parseInt(_0x44619e(0x1b6))/0x4*(-parseInt(_0x44619e(0x185))/0x5)+-parseInt(_0x44619e(0x18f))/0x6*(parseInt(_0x44619e(0x1b5))/0x7)+parseInt(_0x44619e(0x1bf))/0x8+-parseInt(_0x44619e(0x1d0))/0x9+parseInt(_0x44619e(0x1b0))/0xa;if(_0x43d5c8===_0x813f39)break;else _0x30d70a['push'](_0x30d70a['shift']());}catch(_0x4f9d6c){_0x30d70a['push'](_0x30d70a['shift']());}}}(_0x415b,0x835a7));import{Plugin as _0x2732fc}from'ckeditor5/src/core.js';function _0x415b(){const _0x15a726=['execute','get','config','uc-config','downcast','once','attributeToAttribute','commands','extend','imageBlock','uploadcareImageId','uploadcare.pubkey','_initSchema','configElement','remove','map','26381440TrkdSx','conversion','ctxElement','2SNGYlL','data-uc-image-id','40229oUnlEg','4440ZyTLQe','locale','isPremiumPlugin','ucContextId','join','_initCtx','removeAttribute','for','cleanupImage','1100776REOtaX','imageInline','uploadcare','contentLanguage','render','requires','\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','input[uploadcare-file-input]','replaceImageSource','body','fromCharCode','editing','isRegistered','upcast','PictureEditing','_ctxElement','model','2403117EEQieF','elementToAttribute','listenTo','uploader-','_initConfig','getAttribute','insertImage','iconHrefResolver','afterInit','href','705LvrkFi','2924067QWdaqV','pluginName','closeMax','appendChild','getSelectedElement','true','schema','799277WKzszC','uploadcare.uploader','42yOVsHJ','uc-upload-ctx-provider','_configElement','document','add','_initConversion','UploadcareEditing','querySelector','#uc-icon-arrow-down','selection','init','editor','_initImageProcessingIndicator','isOfficialPlugin','uploadcareImageReplace','destroy','view'];_0x415b=function(){return _0x15a726;};return _0x415b();}function _0x16ab(_0x49002f,_0x4846a3){const _0x415b7d=_0x415b();return _0x16ab=function(_0x16ab26,_0x3c7b67){_0x16ab26=_0x16ab26-0x17e;let _0x32a8a0=_0x415b7d[_0x16ab26];return _0x32a8a0;},_0x16ab(_0x49002f,_0x4846a3);}import{Dialog as _0x6c53fc}from'ckeditor5/src/ui.js';import{createElement as _0x5954a6,global as _0x6681c2,uid as _0x2e1eb6}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x261dd3}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x59035c}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x77c5b7}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2732fc{[_0x4d5b9f(0x191)]=null;[_0x4d5b9f(0x1ce)]=null;static get[_0x4d5b9f(0x187)](){const _0x352d1d=_0x4d5b9f;return _0x352d1d(0x195);}static get[_0x4d5b9f(0x1c4)](){const _0x29715f=_0x4d5b9f;return[_0x29715f(0x1cd),_0x59035c,_0x6c53fc];}static get[_0x4d5b9f(0x19c)](){return!0x0;}static get[_0x4d5b9f(0x1b8)](){return!0x0;}[_0x4d5b9f(0x1b9)];get[_0x4d5b9f(0x1ad)](){const _0x3b155c=_0x4d5b9f;return this[_0x3b155c(0x191)];}get[_0x4d5b9f(0x1b2)](){const _0x17ba01=_0x4d5b9f;return this[_0x17ba01(0x1ce)];}constructor(_0x315982){const _0x3f62de=_0x4d5b9f;super(_0x315982),this[_0x3f62de(0x1b9)]=_0x2e1eb6();}[_0x4d5b9f(0x199)](){const _0x3ee6db=_0x4d5b9f,_0x2a1ad5=this[_0x3ee6db(0x19a)];_0x2a1ad5[_0x3ee6db(0x1a7)][_0x3ee6db(0x193)](_0x3ee6db(0x1c1),new _0x261dd3(_0x2a1ad5));}[_0x4d5b9f(0x183)](){const _0x30c359=_0x4d5b9f;this[_0x30c359(0x1ac)](),this[_0x30c359(0x194)](),this[_0x30c359(0x17f)](),this[_0x30c359(0x1bb)](),this[_0x30c359(0x19b)](),this[_0x30c359(0x1d2)](this[_0x30c359(0x19a)],_0x30c359(0x19e),()=>{const _0x1fb4d5=_0x30c359;this[_0x1fb4d5(0x191)]&&(this[_0x1fb4d5(0x191)][_0x1fb4d5(0x1ae)](),this[_0x1fb4d5(0x191)]=null),this[_0x1fb4d5(0x1ce)]&&(this[_0x1fb4d5(0x1ce)][_0x1fb4d5(0x1ae)](),this[_0x1fb4d5(0x1ce)]=null);const _0x4a6fd5=_0x6681c2[_0x1fb4d5(0x192)][_0x1fb4d5(0x196)](_0x1fb4d5(0x1c6));_0x4a6fd5&&_0x4a6fd5[_0x1fb4d5(0x1ae)]();}),async function(_0x3cdcf4){const _0xa12200=_0x2d6373([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]),_0x25a426=0x3d8d0df,_0x5721a4=0x3dfa2b7^_0x25a426,_0x9fbddd=window[_0x2d6373([0x44,0x61,0x74,0x65])][_0x2d6373([0x6e,0x6f,0x77])](),_0x50b5da=_0x3cdcf4[_0x2d6373([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22e601=new window[(_0x2d6373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe92e7a=>{_0x50b5da[_0x2d6373([0x6f,0x6e,0x63,0x65])](_0x2d6373([0x72,0x65,0x61,0x64,0x79]),_0xe92e7a);}),_0x1b27dc={[_0x2d6373([0x6b,0x74,0x79])]:_0x2d6373([0x45,0x43]),[_0x2d6373([0x75,0x73,0x65])]:_0x2d6373([0x73,0x69,0x67]),[_0x2d6373([0x63,0x72,0x76])]:_0x2d6373([0x50,0x2d,0x32,0x35,0x36]),[_0x2d6373([0x78])]:_0x2d6373([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]),[_0x2d6373([0x79])]:_0x2d6373([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]),[_0x2d6373([0x61,0x6c,0x67])]:_0x2d6373([0x45,0x53,0x32,0x35,0x36])},_0x3a32c8=_0x50b5da[_0x2d6373([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d6373([0x67,0x65,0x74])](_0x2d6373([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c509b(){let _0x59775e,_0x228683=null,_0x6b3bd7=null;try{if(_0x3a32c8==_0x2d6373([0x47,0x50,0x4c]))return _0x2d6373([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59775e=_0x37dbb6(),!_0x59775e)return _0x2d6373([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x59775e[_0x2d6373([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6b3bd7=_0x25c18d(_0x59775e[_0x2d6373([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59775e[_0x2d6373([0x6a,0x74,0x69])])),await _0x511648()?_0x2d2a16()?_0x317ccd()?_0x2d6373([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x149a6a()?(_0x59775e[_0x2d6373([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d6373([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x228683=_0x28a03f(_0x2d6373([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x59775e[_0x2d6373([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d6373([0x74,0x72,0x69,0x61,0x6c])&&(_0x228683=_0x28a03f(_0x2d6373([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20c349()):_0x2d6373([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d6373([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d6373([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2d6373([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x317ccd(){const _0x2943de=[_0x2d6373([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d6373([0x74,0x72,0x69,0x61,0x6c])][_0x2d6373([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59775e[_0x2d6373([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9fbddd/0x3e8:0xe10*_0x5721a4;return _0x59775e[_0x2d6373([0x65,0x78,0x70])]<_0x2943de;}function _0x2d2a16(){const _0x102b2c=_0x59775e[_0x2d6373([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x102b2c&&(!!_0x102b2c[_0x2d6373([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d6373([0x2a]))||!!_0x102b2c[_0x2d6373([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d6373([0x55,0x50,0x4c,0x43])));}function _0x149a6a(){const _0x4004c4=_0x16ab,_0x4d65c9=_0x59775e[_0x2d6373([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d65c9||0x0==_0x4d65c9[_0x2d6373([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5804db}=new URL(window[_0x2d6373([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4004c4(0x184)]);if(_0x4d65c9[_0x2d6373([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5804db))return!0x0;const _0x17d0da=_0x5804db[_0x2d6373([0x73,0x70,0x6c,0x69,0x74])](_0x2d6373([0x2e]));return _0x4d65c9[_0x2d6373([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40f508=>_0x40f508[_0x2d6373([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d6373([0x2a])))[_0x2d6373([0x6d,0x61,0x70])](_0xa9fd12=>_0xa9fd12[_0x2d6373([0x73,0x70,0x6c,0x69,0x74])](_0x2d6373([0x2e])))[_0x2d6373([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2bb7cf=>_0x2bb7cf[_0x2d6373([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x17d0da[_0x2d6373([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d6373([0x6d,0x61,0x70])](_0x1d94a3=>Array(_0x17d0da[_0x2d6373([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d94a3[_0x2d6373([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d6373([0x66,0x69,0x6c,0x6c])](_0x1d94a3[0x0]===_0x2d6373([0x2a])?_0x2d6373([0x2a]):'')[_0x2d6373([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d94a3))[_0x2d6373([0x73,0x6f,0x6d,0x65])](_0x4e7752=>_0x17d0da[_0x2d6373([0x65,0x76,0x65,0x72,0x79])]((_0x4fb3d0,_0x28de82)=>_0x4e7752[_0x28de82]===_0x4fb3d0||_0x4e7752[_0x28de82]===_0x2d6373([0x2a])));}function _0x20c349(){return _0x228683&&_0x6b3bd7?new window[(_0x2d6373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c3b6a,_0x179f3e)=>{_0x228683[_0x2d6373([0x74,0x68,0x65,0x6e])](_0x1c3b6a,_0x179f3e),_0x6b3bd7[_0x2d6373([0x74,0x68,0x65,0x6e])](_0x1f357b=>{_0x1f357b!=_0x2d6373([0x56,0x61,0x6c,0x69,0x64])&&_0x1c3b6a(_0x1f357b);},_0x179f3e);}):_0x228683||_0x6b3bd7||_0x2d6373([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25c18d(_0x6340dd,_0x29886a){return new window[(_0x2d6373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55fc10=>{if(_0x2f6396())return _0x55fc10(_0x2d6373([0x56,0x61,0x6c,0x69,0x64]));_0x1f0667(),_0x50b5da[_0x2d6373([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d6373([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ccef9=!0x1;const _0x35f754=_0x2e1eb6();function _0xb575d4(_0x2a4b5a){return!!_0x2a4b5a&&(typeof _0x2a4b5a===_0x2d6373([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a4b5a===_0x2d6373([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a4b5a[_0x2d6373([0x74,0x68,0x65,0x6e])]===_0x2d6373([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a4b5a[_0x2d6373([0x63,0x61,0x74,0x63,0x68])]===_0x2d6373([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2112cf(_0x3d45a4){_0x162e36(_0x3d45a4)[_0x2d6373([0x74,0x68,0x65,0x6e])](_0x366b0b=>{if(!_0x366b0b||_0x366b0b[_0x2d6373([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d6373([0x6f,0x6b]))return _0x2d6373([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d4ec7(_0x273a51(_0x35f754+_0x29886a))!=_0x366b0b[_0x2d6373([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d6373([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d6373([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d6373([0x74,0x68,0x65,0x6e])](_0x3c94f9=>(_0x529f45(),_0x3c94f9),()=>{const _0x2d3aed=_0x29747e();return null==_0x2d3aed?(_0x529f45(),_0x2d6373([0x56,0x61,0x6c,0x69,0x64])):_0x2d6373(_0x9fbddd-_0x2d3aed>(0x27d454df^_0x25a426)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d6373([0x74,0x68,0x65,0x6e])](_0x55fc10)[_0x2d6373([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55fc10(_0x2d6373([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ff1d6=0x3ee3e5f^_0x25a426;function _0x529f45(){const _0x1e0f67=_0x2d6373([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d4ec7(_0x273a51(_0x6340dd)),_0x32b950=_0x1811ed(_0x3d4ec7(window[_0x2d6373([0x4d,0x61,0x74,0x68])][_0x2d6373([0x63,0x65,0x69,0x6c])](_0x9fbddd/_0x3ff1d6)));window[_0x2d6373([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d6373([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e0f67,_0x32b950);}function _0x29747e(){const _0x5e0e57=_0x2d6373([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d4ec7(_0x273a51(_0x6340dd)),_0x16a79b=window[_0x2d6373([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d6373([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e0e57);return _0x16a79b?window[_0x2d6373([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1811ed(_0x16a79b),0x10)*_0x3ff1d6:null;}function _0x162e36(_0x501d7c){return new window[(_0x2d6373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1376dd,_0x3c5eeb)=>{_0x501d7c[_0x2d6373([0x74,0x68,0x65,0x6e])](_0x1376dd,_0x3c5eeb),window[_0x2d6373([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c5eeb,0x3d9041f^_0x25a426);});}}_0x50b5da[_0x2d6373([0x6f,0x6e])](_0x2d6373([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x230f3d,_0x5a121e)=>{if(_0x5a121e[0x0]!=_0x6340dd)return _0x55fc10(_0x2d6373([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a121e[0x1]={..._0x5a121e[0x1],[_0x2d6373([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35f754};},{[_0x2d6373([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d6373([0x68,0x69,0x67,0x68])}),_0x50b5da[_0x2d6373([0x6f,0x6e])](_0x2d6373([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58c3f7=>{_0xb575d4(_0x58c3f7[_0x2d6373([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ccef9=!0x0,_0x2112cf(_0x58c3f7[_0x2d6373([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d6373([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d6373([0x6c,0x6f,0x77])}),_0x22e601[_0x2d6373([0x74,0x68,0x65,0x6e])](()=>{_0x3ccef9||_0x55fc10(_0x2d6373([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f6396(){return _0x50b5da[_0x2d6373([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d6373([0x76,0x69,0x65,0x77])][_0x2d6373([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d6373([0x61,0x75,0x74,0x6f]);}function _0x1f0667(){_0x50b5da[_0x2d6373([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d6373([0x76,0x69,0x65,0x77])][_0x2d6373([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d6373([0x61,0x75,0x74,0x6f]);}}function _0x28a03f(_0x3db1ca){const _0x19f463=[new window[(_0x2d6373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4be874=>setTimeout(_0x4be874,0x3d1ee13^_0x25a426)),_0x22e601[_0x2d6373([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d6373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47f11c=>{let _0xf041b5=0x0;_0x50b5da[_0x2d6373([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d6373([0x6f,0x6e])](_0x2d6373([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32ed9b,_0x3dddcf)=>{_0x3dddcf[0x0][_0x2d6373([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf041b5++,_0xf041b5==(0x3d8d127^_0x25a426)&&(_0x47f11c(),_0x32ed9b[_0x2d6373([0x6f,0x66,0x66])]());});}))];return window[_0x2d6373([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d6373([0x72,0x61,0x63,0x65])](_0x19f463)[_0x2d6373([0x74,0x68,0x65,0x6e])](()=>_0x3db1ca);}async function _0x4742f3(){await _0x22e601,_0x50b5da[_0x2d6373([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d6373([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc78980,_0x50b5da[_0x2d6373([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d6373([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc78980,_0x50b5da[_0x2d6373([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d6373([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ce5b4(_0xf0e66d){const _0x4e9f49=_0x5e22c6();_0x50b5da[_0x4e9f49]=_0x2d6373([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf0e66d,_0xf0e66d!=_0x2d6373([0x56,0x61,0x6c,0x69,0x64])&&_0x4742f3();}function _0x5e22c6(){const _0x4eab57=window[_0x2d6373([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d6373([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d6373([0x6e,0x6f,0x77])]())[_0x2d6373([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d6373([0x2e]),'');let _0x2e3579=_0x2d6373([0x52]);for(let _0x1edd46=0x0;_0x1edd46<_0x4eab57[_0x2d6373([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1edd46+=0x2){let _0x5c85d6=window[_0x2d6373([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4eab57[_0x2d6373([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1edd46,_0x1edd46+0x2));_0x5c85d6>=_0xa12200[_0x2d6373([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c85d6-=_0xa12200[_0x2d6373([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e3579+=_0xa12200[_0x5c85d6];}return _0x2e3579;}function _0x37dbb6(){const _0x46ba41=_0x3a32c8[_0x2d6373([0x73,0x70,0x6c,0x69,0x74])](_0x2d6373([0x2e]));if(0x3!=_0x46ba41[_0x2d6373([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x392e51(_0x46ba41[0x1]);function _0x392e51(_0x1a1180){const _0x4fd18d=_0x590b37(_0x1a1180);return _0x4fd18d&&_0x43a3da()?_0x4fd18d:null;function _0x43a3da(){const _0x45640d=_0x4fd18d[_0x2d6373([0x6a,0x74,0x69])],_0x5f5390=window[_0x2d6373([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45640d[_0x2d6373([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45640d[_0x2d6373([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x14eb03={..._0x4fd18d,[_0x2d6373([0x6a,0x74,0x69])]:_0x45640d[_0x2d6373([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45640d[_0x2d6373([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x14eb03[_0x2d6373([0x76,0x63])],_0x273a51(_0x14eb03)==_0x5f5390;}}}async function _0x511648(){let _0x1b13b5=!0x0;try{const _0x1f03af=_0x3a32c8[_0x2d6373([0x73,0x70,0x6c,0x69,0x74])](_0x2d6373([0x2e])),[_0x36b14a,_0x5a38d8,_0x460ea6]=_0x1f03af;return _0x5a5f13(_0x36b14a),await _0x22926a(_0x36b14a,_0x5a38d8,_0x460ea6),_0x1b13b5;}catch{return!0x1;}function _0x5a5f13(_0x5d0fad){const _0x1d853d=_0x590b37(_0x5d0fad);_0x1d853d&&_0x1d853d[_0x2d6373([0x61,0x6c,0x67])]==_0x2d6373([0x45,0x53,0x32,0x35,0x36])||(_0x1b13b5=!0x1);}async function _0x22926a(_0x46a560,_0x20b8d6,_0x52ed82){const _0x2da1f4=window[_0x2d6373([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d6373([0x66,0x72,0x6f,0x6d])](_0x486b65(_0x52ed82),_0x40887e=>_0x40887e[_0x2d6373([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dbef0=new window[(_0x2d6373([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d6373([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46a560+_0x2d6373([0x2e])+_0x20b8d6),_0x25ab30=window[_0x2d6373([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d6373([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x25ab30)return;const _0x519ca3=await _0x25ab30[_0x2d6373([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d6373([0x6a,0x77,0x6b]),_0x1b27dc,{[_0x2d6373([0x6e,0x61,0x6d,0x65])]:_0x2d6373([0x45,0x43,0x44,0x53,0x41]),[_0x2d6373([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d6373([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d6373([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x25ab30[_0x2d6373([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d6373([0x6e,0x61,0x6d,0x65])]:_0x2d6373([0x45,0x43,0x44,0x53,0x41]),[_0x2d6373([0x68,0x61,0x73,0x68])]:{[_0x2d6373([0x6e,0x61,0x6d,0x65])]:_0x2d6373([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x519ca3,_0x2da1f4,_0x4dbef0)||(_0x1b13b5=!0x1);}}function _0x590b37(_0x5b6aa0){return _0x5b6aa0[_0x2d6373([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d6373([0x65,0x79]))?JSON[_0x2d6373([0x70,0x61,0x72,0x73,0x65])](_0x486b65(_0x5b6aa0)):null;}function _0x486b65(_0x2bb46f){return window[_0x2d6373([0x61,0x74,0x6f,0x62])](_0x2bb46f[_0x2d6373([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d6373([0x2b]))[_0x2d6373([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d6373([0x2f])));}function _0x273a51(_0x234d31){let _0x5b45f0=0x1505;function _0x579dde(_0x505f8a){for(let _0x119fe0=0x0;_0x119fe0<_0x505f8a[_0x2d6373([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x119fe0++){const _0x486e88=_0x505f8a[_0x2d6373([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x119fe0);_0x5b45f0=(_0x5b45f0<<0x5)+_0x5b45f0+_0x486e88,_0x5b45f0&=_0x5b45f0;}}function _0x58d846(_0x176c84){Array[_0x2d6373([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x176c84)?_0x176c84[_0x2d6373([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58d846):_0x176c84&&typeof _0x176c84==_0x2d6373([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d6373([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x176c84)[_0x2d6373([0x73,0x6f,0x72,0x74])]()[_0x2d6373([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x313839,_0x40533c])=>{_0x579dde(_0x313839),_0x58d846(_0x40533c);}):_0x579dde(window[_0x2d6373([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x176c84));}return _0x58d846(_0x234d31),_0x5b45f0>>>0x0;}function _0x3d4ec7(_0x577066){return _0x577066[_0x2d6373([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d6373([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d6373([0x30]));}function _0x1811ed(_0x418d01){return _0x418d01[_0x2d6373([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d6373([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d6373([0x6a,0x6f,0x69,0x6e])]('');}function _0xc78980(){}function _0x2d6373(_0x14e3c0){const _0x3afacd=_0x16ab;return _0x14e3c0[_0x3afacd(0x1af)](_0x108e9d=>String[_0x3afacd(0x1c9)](_0x108e9d))[_0x3afacd(0x1ba)]('');}_0x5ce5b4(await _0x1c509b());}(this);}[_0x4d5b9f(0x1ac)](){const _0x39ca8f=_0x4d5b9f,_0x1bea38=this[_0x39ca8f(0x19a)][_0x39ca8f(0x1cf)][_0x39ca8f(0x18c)];_0x1bea38[_0x39ca8f(0x1cb)](_0x39ca8f(0x1a9))&&_0x1bea38[_0x39ca8f(0x1a8)](_0x39ca8f(0x1a9),{'allowAttributes':[_0x39ca8f(0x1aa)]}),_0x1bea38[_0x39ca8f(0x1cb)](_0x39ca8f(0x1c0))&&_0x1bea38[_0x39ca8f(0x1a8)](_0x39ca8f(0x1c0),{'allowAttributes':[_0x39ca8f(0x1aa)]});}[_0x4d5b9f(0x194)](){const _0x3613bd=_0x4d5b9f,_0x2bbd38=this[_0x3613bd(0x19a)];_0x2bbd38[_0x3613bd(0x1b1)][_0x3613bd(0x1bd)](_0x3613bd(0x1a4))[_0x3613bd(0x1a6)]({'model':_0x3613bd(0x1aa),'view':_0x3613bd(0x1b4)}),_0x2bbd38[_0x3613bd(0x1b1)][_0x3613bd(0x1bd)](_0x3613bd(0x1cc))[_0x3613bd(0x1d1)]({'model':{'key':_0x3613bd(0x1aa),'value':_0x142df8=>_0x142df8[_0x3613bd(0x180)](_0x3613bd(0x1b4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2e1c5f=_0x2bbd38[_0x3613bd(0x1a7)][_0x3613bd(0x1a1)](_0x3613bd(0x1c7));_0x2e1c5f&&this[_0x3613bd(0x1d2)](_0x2e1c5f,_0x3613bd(0x1be),(_0x25db2d,[_0x106a66,_0x1bf9fe])=>{const _0x12d4ab=_0x3613bd;_0x106a66[_0x12d4ab(0x1bc)](_0x12d4ab(0x1aa),_0x1bf9fe);});}[_0x4d5b9f(0x17f)](){const _0x5c1219=_0x4d5b9f,_0x58c0fe=this[_0x5c1219(0x19a)][_0x5c1219(0x1a2)][_0x5c1219(0x1a1)](_0x5c1219(0x18e))||{},_0xc27bf2=this[_0x5c1219(0x19a)][_0x5c1219(0x1a2)][_0x5c1219(0x1a1)](_0x5c1219(0x1ab))||'';this[_0x5c1219(0x191)]=_0x5954a6(_0x6681c2[_0x5c1219(0x192)],_0x5c1219(0x1a3),{..._0x58c0fe,'pubkey':_0xc27bf2,'ctx-name':_0x5c1219(0x17e)+this[_0x5c1219(0x1b9)],'sourceList':'','imgOnly':_0x5c1219(0x18b),'removeCopyright':_0x5c1219(0x18b),'localeName':this[_0x5c1219(0x19a)][_0x5c1219(0x1b7)][_0x5c1219(0x1c2)],'externalSourcesEmbedCss':_0x5c1219(0x1c5)}),this[_0x5c1219(0x191)][_0x5c1219(0x182)]=_0xb30c27=>{const _0x2bbd78=_0x5c1219;if(_0x2bbd78(0x188)==_0xb30c27)return _0x2bbd78(0x197);},_0x6681c2[_0x5c1219(0x192)][_0x5c1219(0x1c8)][_0x5c1219(0x189)](this[_0x5c1219(0x191)]);}[_0x4d5b9f(0x1bb)](){const _0x547de1=_0x4d5b9f;this[_0x547de1(0x1ce)]=_0x5954a6(_0x6681c2[_0x547de1(0x192)],_0x547de1(0x190),{'ctx-name':_0x547de1(0x17e)+this[_0x547de1(0x1b9)]}),_0x6681c2[_0x547de1(0x192)][_0x547de1(0x1c8)][_0x547de1(0x189)](this[_0x547de1(0x1ce)]);}[_0x4d5b9f(0x19b)](){const _0x1534ca=_0x4d5b9f,_0x3d609b=this[_0x1534ca(0x19a)][_0x1534ca(0x1a7)][_0x1534ca(0x1a1)](_0x1534ca(0x181));_0x3d609b&&this[_0x1534ca(0x1d2)](_0x3d609b,_0x1534ca(0x1a0),()=>{const _0x2337b6=_0x1534ca,_0x52f718=this[_0x2337b6(0x19a)][_0x2337b6(0x1cf)][_0x2337b6(0x192)][_0x2337b6(0x198)][_0x2337b6(0x18a)]();_0x52f718&&_0x52f718[_0x2337b6(0x180)](_0x2337b6(0x1aa))&&this[_0x2337b6(0x19a)][_0x2337b6(0x1ca)][_0x2337b6(0x19f)][_0x2337b6(0x1a5)](_0x2337b6(0x1c3),()=>{const _0x2fcb99=_0x2337b6;_0x77c5b7(this[_0x2fcb99(0x19a)],_0x52f718);});});const _0x103900=this[_0x1534ca(0x19a)][_0x1534ca(0x1a7)][_0x1534ca(0x1a1)](_0x1534ca(0x19d));_0x103900&&this[_0x1534ca(0x1d2)](_0x103900,_0x1534ca(0x1a0),()=>{const _0x498bec=_0x1534ca,_0xb46ab1=this[_0x498bec(0x19a)][_0x498bec(0x1cf)][_0x498bec(0x192)][_0x498bec(0x198)][_0x498bec(0x18a)]();_0xb46ab1&&_0xb46ab1[_0x498bec(0x180)](_0x498bec(0x1aa))&&this[_0x498bec(0x19a)][_0x498bec(0x1ca)][_0x498bec(0x19f)][_0x498bec(0x1a5)](_0x498bec(0x1c3),()=>{const _0x65ff0=_0x498bec;_0x77c5b7(this[_0x65ff0(0x19a)],_0xb46ab1);});});}}
|
|
23
|
+
const _0xd87bff=_0x4c8b;(function(_0x36f3d1,_0x5b7664){const _0x57a2f7=_0x4c8b,_0x3bb03d=_0x36f3d1();while(!![]){try{const _0x5dc75e=parseInt(_0x57a2f7(0xbd))/0x1*(parseInt(_0x57a2f7(0xb5))/0x2)+parseInt(_0x57a2f7(0xbf))/0x3+-parseInt(_0x57a2f7(0x82))/0x4+-parseInt(_0x57a2f7(0x83))/0x5*(parseInt(_0x57a2f7(0x95))/0x6)+parseInt(_0x57a2f7(0x99))/0x7*(parseInt(_0x57a2f7(0xb2))/0x8)+parseInt(_0x57a2f7(0xb1))/0x9+parseInt(_0x57a2f7(0x74))/0xa*(-parseInt(_0x57a2f7(0x76))/0xb);if(_0x5dc75e===_0x5b7664)break;else _0x3bb03d['push'](_0x3bb03d['shift']());}catch(_0x2ed182){_0x3bb03d['push'](_0x3bb03d['shift']());}}}(_0x36ab,0x96d07));function _0x36ab(){const _0x471b06=['_initConversion','7563528ETktFA','238528AmUIsK','model','view','26Cgzezz','selection','config','render','_configElement','_initConfig','uc-config','removeAttribute','59583hOyeWG','elementToAttribute','3226020fseTLH','UploadcareEditing','locale','isPremiumPlugin','cleanupImage','editing','attributeToAttribute','href','ctxElement','requires','imageBlock','15096090vLXfNy','_initSchema','11BwHMAE','remove','imageInline','uploadcare.pubkey','true','conversion','_ctxElement','_initImageProcessingIndicator','uploadcareImageId','document','body','pluginName','2107692MjLRbb','1223780VGUWnk','init','uc-upload-ctx-provider','PictureEditing','isOfficialPlugin','downcast','_initCtx','#uc-icon-arrow-down','for','upcast','getSelectedElement','once','iconHrefResolver','\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','extend','map','getAttribute','fromCharCode','6cdFLmQ','replaceImageSource','data-uc-image-id','appendChild','49BoGMdj','configElement','add','uploadcare.uploader','querySelector','get','contentLanguage','uploadcareImageReplace','listenTo','destroy','join','uploader-','insertImage','input[uploadcare-file-input]','commands','isRegistered','uploadcare','closeMax','execute','editor','schema','ucContextId','afterInit'];_0x36ab=function(){return _0x471b06;};return _0x36ab();}import{Plugin as _0x385e0e}from'ckeditor5/src/core.js';import{Dialog as _0x12fbbd}from'ckeditor5/src/ui.js';import{createElement as _0x3f3026,global as _0x3f4d69,uid as _0x6477cd}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2785db}from'./uploadcarecommand.js';function _0x4c8b(_0x3bc528,_0x19827d){const _0x36aba6=_0x36ab();return _0x4c8b=function(_0x4c8b5c,_0x4fc1ea){_0x4c8b5c=_0x4c8b5c-0x6e;let _0x5c263c=_0x36aba6[_0x4c8b5c];return _0x5c263c;},_0x4c8b(_0x3bc528,_0x19827d);}import{UploadcareUploadAdapter as _0x3daee7}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2ff71d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x385e0e{[_0xd87bff(0xb9)]=null;[_0xd87bff(0x7c)]=null;static get[_0xd87bff(0x81)](){const _0x4dd089=_0xd87bff;return _0x4dd089(0xc0);}static get[_0xd87bff(0x72)](){const _0xc2125a=_0xd87bff;return[_0xc2125a(0x86),_0x3daee7,_0x12fbbd];}static get[_0xd87bff(0x87)](){return!0x0;}static get[_0xd87bff(0xc2)](){return!0x0;}[_0xd87bff(0xae)];get[_0xd87bff(0x9a)](){const _0x3caf04=_0xd87bff;return this[_0x3caf04(0xb9)];}get[_0xd87bff(0x71)](){const _0xee287e=_0xd87bff;return this[_0xee287e(0x7c)];}constructor(_0x5f0a7b){const _0x21e4e5=_0xd87bff;super(_0x5f0a7b),this[_0x21e4e5(0xae)]=_0x6477cd();}[_0xd87bff(0x84)](){const _0x39faf6=_0xd87bff,_0x267efb=this[_0x39faf6(0xac)];_0x267efb[_0x39faf6(0xa7)][_0x39faf6(0x9b)](_0x39faf6(0xa9),new _0x2785db(_0x267efb));}[_0xd87bff(0xaf)](){const _0x2dc220=_0xd87bff;this[_0x2dc220(0x75)](),this[_0x2dc220(0xb0)](),this[_0x2dc220(0xba)](),this[_0x2dc220(0x89)](),this[_0x2dc220(0x7d)](),this[_0x2dc220(0xa1)](this[_0x2dc220(0xac)],_0x2dc220(0xa2),()=>{const _0x47de33=_0x2dc220;this[_0x47de33(0xb9)]&&(this[_0x47de33(0xb9)][_0x47de33(0x77)](),this[_0x47de33(0xb9)]=null),this[_0x47de33(0x7c)]&&(this[_0x47de33(0x7c)][_0x47de33(0x77)](),this[_0x47de33(0x7c)]=null);const _0xde8e4e=_0x3f4d69[_0x47de33(0x7f)][_0x47de33(0x9d)](_0x47de33(0xa6));_0xde8e4e&&_0xde8e4e[_0x47de33(0x77)]();}),async function(_0x5cf9cd){const _0x47e3f0=_0x42cd38([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]),_0xde8514=0x3d8d0df,_0x126c40=0x3dfa23f^_0xde8514,_0x3a6c62=window[_0x42cd38([0x44,0x61,0x74,0x65])][_0x42cd38([0x6e,0x6f,0x77])](),_0x4db571=_0x5cf9cd[_0x42cd38([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ffbfd=new window[(_0x42cd38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x573567=>{_0x4db571[_0x42cd38([0x6f,0x6e,0x63,0x65])](_0x42cd38([0x72,0x65,0x61,0x64,0x79]),_0x573567);}),_0x1e1b3d={[_0x42cd38([0x6b,0x74,0x79])]:_0x42cd38([0x45,0x43]),[_0x42cd38([0x75,0x73,0x65])]:_0x42cd38([0x73,0x69,0x67]),[_0x42cd38([0x63,0x72,0x76])]:_0x42cd38([0x50,0x2d,0x32,0x35,0x36]),[_0x42cd38([0x78])]:_0x42cd38([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]),[_0x42cd38([0x79])]:_0x42cd38([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]),[_0x42cd38([0x61,0x6c,0x67])]:_0x42cd38([0x45,0x53,0x32,0x35,0x36])},_0x2205f1=_0x4db571[_0x42cd38([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42cd38([0x67,0x65,0x74])](_0x42cd38([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x416e66(){let _0x2af68c,_0x203c42=null,_0x3b9cf3=null;try{if(_0x2205f1==_0x42cd38([0x47,0x50,0x4c]))return _0x42cd38([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2af68c=_0x3180de(),!_0x2af68c)return _0x42cd38([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2af68c[_0x42cd38([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b9cf3=_0x28db66(_0x2af68c[_0x42cd38([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2af68c[_0x42cd38([0x6a,0x74,0x69])])),await _0x159ccc()?_0x3fa56()?_0xb5d371()?_0x42cd38([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e14f6()?(_0x2af68c[_0x42cd38([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42cd38([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x203c42=_0x1d6def(_0x42cd38([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2af68c[_0x42cd38([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42cd38([0x74,0x72,0x69,0x61,0x6c])&&(_0x203c42=_0x1d6def(_0x42cd38([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x596793()):_0x42cd38([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42cd38([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42cd38([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42cd38([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb5d371(){const _0x102a50=[_0x42cd38([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42cd38([0x74,0x72,0x69,0x61,0x6c])][_0x42cd38([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2af68c[_0x42cd38([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a6c62/0x3e8:0xe10*_0x126c40;return _0x2af68c[_0x42cd38([0x65,0x78,0x70])]<_0x102a50;}function _0x3fa56(){const _0x10d59f=_0x2af68c[_0x42cd38([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x10d59f&&(!!_0x10d59f[_0x42cd38([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42cd38([0x2a]))||!!_0x10d59f[_0x42cd38([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42cd38([0x55,0x50,0x4c,0x43])));}function _0x5e14f6(){const _0x37cd97=_0x4c8b,_0x3acce1=_0x2af68c[_0x42cd38([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3acce1||0x0==_0x3acce1[_0x42cd38([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3172cb}=new URL(window[_0x42cd38([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x37cd97(0x70)]);if(_0x3acce1[_0x42cd38([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3172cb))return!0x0;const _0x23519c=_0x3172cb[_0x42cd38([0x73,0x70,0x6c,0x69,0x74])](_0x42cd38([0x2e]));return _0x3acce1[_0x42cd38([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cfe81=>_0x1cfe81[_0x42cd38([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42cd38([0x2a])))[_0x42cd38([0x6d,0x61,0x70])](_0x2b3c78=>_0x2b3c78[_0x42cd38([0x73,0x70,0x6c,0x69,0x74])](_0x42cd38([0x2e])))[_0x42cd38([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d6f5f=>_0x2d6f5f[_0x42cd38([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x23519c[_0x42cd38([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42cd38([0x6d,0x61,0x70])](_0x2048ed=>Array(_0x23519c[_0x42cd38([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2048ed[_0x42cd38([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42cd38([0x66,0x69,0x6c,0x6c])](_0x2048ed[0x0]===_0x42cd38([0x2a])?_0x42cd38([0x2a]):'')[_0x42cd38([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2048ed))[_0x42cd38([0x73,0x6f,0x6d,0x65])](_0x43e93e=>_0x23519c[_0x42cd38([0x65,0x76,0x65,0x72,0x79])]((_0x39d64f,_0x183c93)=>_0x43e93e[_0x183c93]===_0x39d64f||_0x43e93e[_0x183c93]===_0x42cd38([0x2a])));}function _0x596793(){return _0x203c42&&_0x3b9cf3?new window[(_0x42cd38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ad481,_0x18af30)=>{_0x203c42[_0x42cd38([0x74,0x68,0x65,0x6e])](_0x4ad481,_0x18af30),_0x3b9cf3[_0x42cd38([0x74,0x68,0x65,0x6e])](_0x39afb1=>{_0x39afb1!=_0x42cd38([0x56,0x61,0x6c,0x69,0x64])&&_0x4ad481(_0x39afb1);},_0x18af30);}):_0x203c42||_0x3b9cf3||_0x42cd38([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28db66(_0x28ba8a,_0x2bc4ab){return new window[(_0x42cd38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bac92=>{if(_0x4455ec())return _0x4bac92(_0x42cd38([0x56,0x61,0x6c,0x69,0x64]));_0x32c782(),_0x4db571[_0x42cd38([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42cd38([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37d4a7=!0x1;const _0xd68272=_0x6477cd();function _0x1c238f(_0x4382df){return!!_0x4382df&&(typeof _0x4382df===_0x42cd38([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4382df===_0x42cd38([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4382df[_0x42cd38([0x74,0x68,0x65,0x6e])]===_0x42cd38([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4382df[_0x42cd38([0x63,0x61,0x74,0x63,0x68])]===_0x42cd38([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x235c1b(_0x2cdd4e){_0x2cec3e(_0x2cdd4e)[_0x42cd38([0x74,0x68,0x65,0x6e])](_0x521f24=>{if(!_0x521f24||_0x521f24[_0x42cd38([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42cd38([0x6f,0x6b]))return _0x42cd38([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b1177(_0x3d8e81(_0xd68272+_0x2bc4ab))!=_0x521f24[_0x42cd38([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42cd38([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42cd38([0x56,0x61,0x6c,0x69,0x64]);})[_0x42cd38([0x74,0x68,0x65,0x6e])](_0x55cb3b=>(_0x5a54f6(),_0x55cb3b),()=>{const _0x1ecc6e=_0x23715e();return null==_0x1ecc6e?(_0x5a54f6(),_0x42cd38([0x56,0x61,0x6c,0x69,0x64])):_0x42cd38(_0x3a6c62-_0x1ecc6e>(0x27d454df^_0xde8514)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42cd38([0x74,0x68,0x65,0x6e])](_0x4bac92)[_0x42cd38([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bac92(_0x42cd38([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3808be=0x3ee3e5f^_0xde8514;function _0x5a54f6(){const _0x4db4e3=_0x42cd38([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b1177(_0x3d8e81(_0x28ba8a)),_0x4e83d7=_0x5abd77(_0x3b1177(window[_0x42cd38([0x4d,0x61,0x74,0x68])][_0x42cd38([0x63,0x65,0x69,0x6c])](_0x3a6c62/_0x3808be)));window[_0x42cd38([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42cd38([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4db4e3,_0x4e83d7);}function _0x23715e(){const _0x1acde2=_0x42cd38([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b1177(_0x3d8e81(_0x28ba8a)),_0x33b583=window[_0x42cd38([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42cd38([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1acde2);return _0x33b583?window[_0x42cd38([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5abd77(_0x33b583),0x10)*_0x3808be:null;}function _0x2cec3e(_0x2926f6){return new window[(_0x42cd38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57470d,_0x493c34)=>{_0x2926f6[_0x42cd38([0x74,0x68,0x65,0x6e])](_0x57470d,_0x493c34),window[_0x42cd38([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x493c34,0x3d9041f^_0xde8514);});}}_0x4db571[_0x42cd38([0x6f,0x6e])](_0x42cd38([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5556df,_0x2900af)=>{if(_0x2900af[0x0]!=_0x28ba8a)return _0x4bac92(_0x42cd38([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2900af[0x1]={..._0x2900af[0x1],[_0x42cd38([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd68272};},{[_0x42cd38([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42cd38([0x68,0x69,0x67,0x68])}),_0x4db571[_0x42cd38([0x6f,0x6e])](_0x42cd38([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e3983=>{_0x1c238f(_0x5e3983[_0x42cd38([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37d4a7=!0x0,_0x235c1b(_0x5e3983[_0x42cd38([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42cd38([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42cd38([0x6c,0x6f,0x77])}),_0x2ffbfd[_0x42cd38([0x74,0x68,0x65,0x6e])](()=>{_0x37d4a7||_0x4bac92(_0x42cd38([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4455ec(){return _0x4db571[_0x42cd38([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42cd38([0x76,0x69,0x65,0x77])][_0x42cd38([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42cd38([0x61,0x75,0x74,0x6f]);}function _0x32c782(){_0x4db571[_0x42cd38([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42cd38([0x76,0x69,0x65,0x77])][_0x42cd38([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42cd38([0x61,0x75,0x74,0x6f]);}}function _0x1d6def(_0x486a77){const _0x45b0a7=[new window[(_0x42cd38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d9ddb=>setTimeout(_0x3d9ddb,0x3d1ee13^_0xde8514)),_0x2ffbfd[_0x42cd38([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42cd38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x118256=>{let _0x48dcec=0x0;_0x4db571[_0x42cd38([0x6d,0x6f,0x64,0x65,0x6c])][_0x42cd38([0x6f,0x6e])](_0x42cd38([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e7425,_0x1b07ad)=>{_0x1b07ad[0x0][_0x42cd38([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x48dcec++,_0x48dcec==(0x3d8d127^_0xde8514)&&(_0x118256(),_0x5e7425[_0x42cd38([0x6f,0x66,0x66])]());});}))];return window[_0x42cd38([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42cd38([0x72,0x61,0x63,0x65])](_0x45b0a7)[_0x42cd38([0x74,0x68,0x65,0x6e])](()=>_0x486a77);}async function _0x4ad640(){await _0x2ffbfd,_0x4db571[_0x42cd38([0x6d,0x6f,0x64,0x65,0x6c])][_0x42cd38([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b988f,_0x4db571[_0x42cd38([0x6d,0x6f,0x64,0x65,0x6c])][_0x42cd38([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b988f,_0x4db571[_0x42cd38([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42cd38([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x522693(_0x2a3981){const _0x279a6f=_0x273ffd();_0x4db571[_0x279a6f]=_0x42cd38([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a3981,_0x2a3981!=_0x42cd38([0x56,0x61,0x6c,0x69,0x64])&&_0x4ad640();}function _0x273ffd(){const _0x566ac1=window[_0x42cd38([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42cd38([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42cd38([0x6e,0x6f,0x77])]())[_0x42cd38([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42cd38([0x2e]),'');let _0x4a57d6=_0x42cd38([0x52]);for(let _0x4d0d10=0x0;_0x4d0d10<_0x566ac1[_0x42cd38([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d0d10+=0x2){let _0x142a94=window[_0x42cd38([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x566ac1[_0x42cd38([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d0d10,_0x4d0d10+0x2));_0x142a94>=_0x47e3f0[_0x42cd38([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x142a94-=_0x47e3f0[_0x42cd38([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a57d6+=_0x47e3f0[_0x142a94];}return _0x4a57d6;}function _0x3180de(){const _0x190d9d=_0x2205f1[_0x42cd38([0x73,0x70,0x6c,0x69,0x74])](_0x42cd38([0x2e]));if(0x3!=_0x190d9d[_0x42cd38([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x339c46(_0x190d9d[0x1]);function _0x339c46(_0x991fc0){const _0x1b5461=_0x47a2a3(_0x991fc0);return _0x1b5461&&_0x385312()?_0x1b5461:null;function _0x385312(){const _0x5e8904=_0x1b5461[_0x42cd38([0x6a,0x74,0x69])],_0x587fbe=window[_0x42cd38([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e8904[_0x42cd38([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e8904[_0x42cd38([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37613a={..._0x1b5461,[_0x42cd38([0x6a,0x74,0x69])]:_0x5e8904[_0x42cd38([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e8904[_0x42cd38([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37613a[_0x42cd38([0x76,0x63])],_0x3d8e81(_0x37613a)==_0x587fbe;}}}async function _0x159ccc(){let _0x28fa42=!0x0;try{const _0x5e918b=_0x2205f1[_0x42cd38([0x73,0x70,0x6c,0x69,0x74])](_0x42cd38([0x2e])),[_0x8e697e,_0x1314e9,_0x4398f8]=_0x5e918b;return _0x1be219(_0x8e697e),await _0x5451e8(_0x8e697e,_0x1314e9,_0x4398f8),_0x28fa42;}catch{return!0x1;}function _0x1be219(_0x5c439b){const _0x1da221=_0x47a2a3(_0x5c439b);_0x1da221&&_0x1da221[_0x42cd38([0x61,0x6c,0x67])]==_0x42cd38([0x45,0x53,0x32,0x35,0x36])||(_0x28fa42=!0x1);}async function _0x5451e8(_0x55b0d6,_0x1ff5a7,_0x50355d){const _0x190b13=window[_0x42cd38([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42cd38([0x66,0x72,0x6f,0x6d])](_0x497510(_0x50355d),_0x4676fa=>_0x4676fa[_0x42cd38([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x582a80=new window[(_0x42cd38([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42cd38([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55b0d6+_0x42cd38([0x2e])+_0x1ff5a7),_0x5b5eea=window[_0x42cd38([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42cd38([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b5eea)return;const _0x474ec7=await _0x5b5eea[_0x42cd38([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42cd38([0x6a,0x77,0x6b]),_0x1e1b3d,{[_0x42cd38([0x6e,0x61,0x6d,0x65])]:_0x42cd38([0x45,0x43,0x44,0x53,0x41]),[_0x42cd38([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42cd38([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42cd38([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b5eea[_0x42cd38([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42cd38([0x6e,0x61,0x6d,0x65])]:_0x42cd38([0x45,0x43,0x44,0x53,0x41]),[_0x42cd38([0x68,0x61,0x73,0x68])]:{[_0x42cd38([0x6e,0x61,0x6d,0x65])]:_0x42cd38([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x474ec7,_0x190b13,_0x582a80)||(_0x28fa42=!0x1);}}function _0x47a2a3(_0x58e64c){return _0x58e64c[_0x42cd38([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42cd38([0x65,0x79]))?JSON[_0x42cd38([0x70,0x61,0x72,0x73,0x65])](_0x497510(_0x58e64c)):null;}function _0x497510(_0x4a9ca8){return window[_0x42cd38([0x61,0x74,0x6f,0x62])](_0x4a9ca8[_0x42cd38([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42cd38([0x2b]))[_0x42cd38([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42cd38([0x2f])));}function _0x3d8e81(_0x1ecc37){let _0x38654c=0x1505;function _0x4df62c(_0x452328){for(let _0x5e6314=0x0;_0x5e6314<_0x452328[_0x42cd38([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e6314++){const _0x16fc01=_0x452328[_0x42cd38([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5e6314);_0x38654c=(_0x38654c<<0x5)+_0x38654c+_0x16fc01,_0x38654c&=_0x38654c;}}function _0x30ca38(_0x3dcc1c){Array[_0x42cd38([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3dcc1c)?_0x3dcc1c[_0x42cd38([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30ca38):_0x3dcc1c&&typeof _0x3dcc1c==_0x42cd38([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42cd38([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3dcc1c)[_0x42cd38([0x73,0x6f,0x72,0x74])]()[_0x42cd38([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d3577,_0x3d3e82])=>{_0x4df62c(_0x4d3577),_0x30ca38(_0x3d3e82);}):_0x4df62c(window[_0x42cd38([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3dcc1c));}return _0x30ca38(_0x1ecc37),_0x38654c>>>0x0;}function _0x3b1177(_0x2c273d){return _0x2c273d[_0x42cd38([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42cd38([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42cd38([0x30]));}function _0x5abd77(_0x317fe1){return _0x317fe1[_0x42cd38([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42cd38([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42cd38([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b988f(){}function _0x42cd38(_0x13df6c){const _0x352154=_0x4c8b;return _0x13df6c[_0x352154(0x92)](_0x402ad4=>String[_0x352154(0x94)](_0x402ad4))[_0x352154(0xa3)]('');}_0x522693(await _0x416e66());}(this);}[_0xd87bff(0x75)](){const _0x12086b=_0xd87bff,_0x52940c=this[_0x12086b(0xac)][_0x12086b(0xb3)][_0x12086b(0xad)];_0x52940c[_0x12086b(0xa8)](_0x12086b(0x73))&&_0x52940c[_0x12086b(0x91)](_0x12086b(0x73),{'allowAttributes':[_0x12086b(0x7e)]}),_0x52940c[_0x12086b(0xa8)](_0x12086b(0x78))&&_0x52940c[_0x12086b(0x91)](_0x12086b(0x78),{'allowAttributes':[_0x12086b(0x7e)]});}[_0xd87bff(0xb0)](){const _0x4637af=_0xd87bff,_0x3c1584=this[_0x4637af(0xac)];_0x3c1584[_0x4637af(0x7b)][_0x4637af(0x8b)](_0x4637af(0x88))[_0x4637af(0x6f)]({'model':_0x4637af(0x7e),'view':_0x4637af(0x97)}),_0x3c1584[_0x4637af(0x7b)][_0x4637af(0x8b)](_0x4637af(0x8c))[_0x4637af(0xbe)]({'model':{'key':_0x4637af(0x7e),'value':_0x130e56=>_0x130e56[_0x4637af(0x93)](_0x4637af(0x97))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1d52a6=_0x3c1584[_0x4637af(0xa7)][_0x4637af(0x9e)](_0x4637af(0x96));_0x1d52a6&&this[_0x4637af(0xa1)](_0x1d52a6,_0x4637af(0xc3),(_0x1cf1e0,[_0xaf8cd6,_0x123ac1])=>{const _0x6b18f8=_0x4637af;_0xaf8cd6[_0x6b18f8(0xbc)](_0x6b18f8(0x7e),_0x123ac1);});}[_0xd87bff(0xba)](){const _0x1d28b4=_0xd87bff,_0x55a15d=this[_0x1d28b4(0xac)][_0x1d28b4(0xb7)][_0x1d28b4(0x9e)](_0x1d28b4(0x9c))||{},_0x536fad=this[_0x1d28b4(0xac)][_0x1d28b4(0xb7)][_0x1d28b4(0x9e)](_0x1d28b4(0x79))||'';this[_0x1d28b4(0xb9)]=_0x3f3026(_0x3f4d69[_0x1d28b4(0x7f)],_0x1d28b4(0xbb),{..._0x55a15d,'pubkey':_0x536fad,'ctx-name':_0x1d28b4(0xa4)+this[_0x1d28b4(0xae)],'sourceList':'','imgOnly':_0x1d28b4(0x7a),'removeCopyright':_0x1d28b4(0x7a),'localeName':this[_0x1d28b4(0xac)][_0x1d28b4(0xc1)][_0x1d28b4(0x9f)],'externalSourcesEmbedCss':_0x1d28b4(0x90)}),this[_0x1d28b4(0xb9)][_0x1d28b4(0x8f)]=_0x51f9fa=>{const _0x176484=_0x1d28b4;if(_0x176484(0xaa)==_0x51f9fa)return _0x176484(0x8a);},_0x3f4d69[_0x1d28b4(0x7f)][_0x1d28b4(0x80)][_0x1d28b4(0x98)](this[_0x1d28b4(0xb9)]);}[_0xd87bff(0x89)](){const _0x2c988e=_0xd87bff;this[_0x2c988e(0x7c)]=_0x3f3026(_0x3f4d69[_0x2c988e(0x7f)],_0x2c988e(0x85),{'ctx-name':_0x2c988e(0xa4)+this[_0x2c988e(0xae)]}),_0x3f4d69[_0x2c988e(0x7f)][_0x2c988e(0x80)][_0x2c988e(0x98)](this[_0x2c988e(0x7c)]);}[_0xd87bff(0x7d)](){const _0x3779d0=_0xd87bff,_0x4ee99d=this[_0x3779d0(0xac)][_0x3779d0(0xa7)][_0x3779d0(0x9e)](_0x3779d0(0xa5));_0x4ee99d&&this[_0x3779d0(0xa1)](_0x4ee99d,_0x3779d0(0xab),()=>{const _0x337104=_0x3779d0,_0xc4ef27=this[_0x337104(0xac)][_0x337104(0xb3)][_0x337104(0x7f)][_0x337104(0xb6)][_0x337104(0x8d)]();_0xc4ef27&&_0xc4ef27[_0x337104(0x93)](_0x337104(0x7e))&&this[_0x337104(0xac)][_0x337104(0x6e)][_0x337104(0xb4)][_0x337104(0x8e)](_0x337104(0xb8),()=>{const _0x18d27d=_0x337104;_0x2ff71d(this[_0x18d27d(0xac)],_0xc4ef27);});});const _0x33cd2f=this[_0x3779d0(0xac)][_0x3779d0(0xa7)][_0x3779d0(0x9e)](_0x3779d0(0xa0));_0x33cd2f&&this[_0x3779d0(0xa1)](_0x33cd2f,_0x3779d0(0xab),()=>{const _0x59fde1=_0x3779d0,_0x5163f4=this[_0x59fde1(0xac)][_0x59fde1(0xb3)][_0x59fde1(0x7f)][_0x59fde1(0xb6)][_0x59fde1(0x8d)]();_0x5163f4&&_0x5163f4[_0x59fde1(0x93)](_0x59fde1(0x7e))&&this[_0x59fde1(0xac)][_0x59fde1(0x6e)][_0x59fde1(0xb4)][_0x59fde1(0x8e)](_0x59fde1(0xb8),()=>{const _0x5c21b1=_0x59fde1;_0x2ff71d(this[_0x5c21b1(0xac)],_0x5163f4);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2f06f6,ObservableMixin as _0x3ae273}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2ced2d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5d932b}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x462cff}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x35afc6}from'../../utils/uploadutils.js';import{getImageUrls as _0x5c5246,getImageDimension as _0x5790eb}from'../../utils/editingutils.js';import{isAncestor as _0x1cc384}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3ae273(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x10c7a1,_0x119537,_0x1348ea){super(),this['_editor']=_0x10c7a1,this['_dialog']=_0x119537,this['_imageElement']=_0x1348ea,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 _0x591ca9=this['_imageElement'],_0x119af4=_0x591ca9['getAttribute']('uploadcareImageId'),_0x36bb83=_0x591ca9['getAttribute']('src');if(_0x119af4)await this['_loadImageInfo'](_0x119af4,_0x36bb83);else{if(this['_imageCache']['has'](_0x36bb83)){const _0x5656b7=this['_imageCache']['get'](_0x36bb83);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5656b7['url'],this['imageDimension']=_0x5656b7['dimension'],this['imageId']=_0x5656b7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1faf6a}=this['_editor'],t=_0x1faf6a['t'],_0x30033e=new _0x462cff(_0x1faf6a,this['imageStatus'],this['_attributes']);_0x30033e['bind']('status')['to'](this,'imageStatus'),_0x30033e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x30033e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x30033e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x30033e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5d932b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x30033e,'position':_0x2ced2d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x30033e['focus']();},'onHide':()=>{_0x30033e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x6b0525=>!_0x1cc384(_0x6b0525,_0x30033e['element'])}});}['_loadImageInfo'](_0x49d61d,_0x2b3788){return _0x35afc6['getInfo'](_0x49d61d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4ab868=>{const {width:_0x759cc5,height:_0xeb588f}=_0x4ab868['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b3788,this['imageDimension']={'width':_0x759cc5,'height':_0xeb588f},this['imageId']=_0x49d61d;})['catch'](_0xe81a00=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xe81a00['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3ea90d,_0xf7365e){return this['_getImageAsFile'](_0x3ea90d)['then'](_0x4eadbc=>_0x35afc6['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':_0xf7365e['signal'],'file':_0x4eadbc,'onProgress':_0x34b772=>{_0x34b772&&_0x34b772['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x34b772['value']));}}))['then'](_0x1fc792=>{const {width:_0x581286,height:_0x2d4635}=_0x1fc792['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1fc792['cdnUrl'],this['imageDimension']={'width':_0x581286,'height':_0x2d4635},this['imageId']=_0x1fc792['uuid'],this['imageUploadProgress']=null;const _0x16c5d1=_0x3ea90d['getAttribute']('src');this['_imageCache']['set'](_0x16c5d1,{'id':_0x1fc792['uuid'],'url':_0x1fc792['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x10480b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x10480b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x57f579,_0x349ee4){_0x57f579['on']('apply',(_0x75d34a,_0x2f947b)=>{this['_replaceImage'](_0x349ee4,_0x2f947b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x57f579['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x57f579['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x33a59f,_0x537e8e,_0x2197de){const _0x257255=this['_editor'],{width:_0x406251,height:_0x5c8313}=_0x5790eb(_0x537e8e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5e412c,imageSources:_0x21623a}=_0x5c5246(_0x537e8e,_0x406251);_0x257255['model']['change'](_0x2d5b44=>{if('$graveyard'===_0x33a59f['root']['rootName']){_0x257255['execute']('insertImage',{'imageType':_0x33a59f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x33a59f['getAttributes']()),'uploadcareImageId':_0x2197de,'src':_0x5e412c,'sources':_0x21623a,'width':_0x406251,'height':_0x5c8313}});const _0x2dc385=_0x33a59f['getChildren']();_0x33a59f=_0x257255['model']['document']['selection']['getSelectedElement']();for(const _0x5350bc of _0x2dc385)_0x2d5b44['append'](_0x2d5b44['cloneElement'](_0x5350bc),_0x33a59f);}else _0x2d5b44['setSelection'](_0x33a59f,'on'),_0x257255['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x33a59f['getAttributes']()),'uploadcareImageId':_0x2197de,'src':_0x5e412c,'sources':_0x21623a,'width':_0x406251,'height':_0x5c8313},_0x33a59f);_0x2d5b44['setSelection'](_0x33a59f,'on');});}async['_getImageAsFile'](_0x5f7c1a){const _0x1311ba=_0x2f06f6['window'],_0x295607=_0x2f06f6['document']['location']['href'],_0x395da3=new _0x1311ba['URL'](_0x5f7c1a['getAttribute']('src'),_0x295607);if('data:'===_0x395da3['protocol']){const _0x57669b=_0x395da3['href']['split'](','),_0x5c169d=_0x57669b[0x0]['match'](/:(.*?);/)[0x1],_0x367cc9=_0x5c169d['split']('/')[0x1],_0x363b94=_0x1311ba['atob'](_0x57669b[_0x57669b['length']-0x1]);let _0x7fbcd8=_0x363b94['length'];const _0xa24aa3=new _0x1311ba['Uint8Array'](_0x7fbcd8);for(;_0x7fbcd8--;)_0xa24aa3[_0x7fbcd8]=_0x363b94['charCodeAt'](_0x7fbcd8);return new _0x1311ba['File']([_0xa24aa3],'image.'+_0x367cc9,{'type':_0x5c169d});}const _0x1bd5ff=_0x395da3['href']['split']('/'),_0x23350f=_0x1bd5ff[_0x1bd5ff['length']-0x1],_0x24639a=_0x23350f['split']('.')[0x1];return _0x1311ba['fetch'](_0x395da3['href'])['then'](_0x575d24=>_0x575d24['clone']()['blob']())['then'](_0x50bf38=>new _0x1311ba['File']([_0x50bf38],_0x23350f,{'type':'image/'+_0x24639a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x47c9(_0x5bb5d9,_0x5ddd37){const _0x164a3e=_0x164a();return _0x47c9=function(_0x47c9cc,_0x2048ed){_0x47c9cc=_0x47c9cc-0x9c;let _0x299bec=_0x164a3e[_0x47c9cc];return _0x299bec;},_0x47c9(_0x5bb5d9,_0x5ddd37);}(function(_0x2ed07e,_0x346d2f){const _0xe7ab00=_0x47c9,_0xe90885=_0x2ed07e();while(!![]){try{const _0x48c112=parseInt(_0xe7ab00(0xab))/0x1+-parseInt(_0xe7ab00(0xac))/0x2+-parseInt(_0xe7ab00(0xa6))/0x3*(-parseInt(_0xe7ab00(0x9e))/0x4)+-parseInt(_0xe7ab00(0xa8))/0x5*(parseInt(_0xe7ab00(0xa4))/0x6)+parseInt(_0xe7ab00(0xa5))/0x7+parseInt(_0xe7ab00(0xa2))/0x8+-parseInt(_0xe7ab00(0xa9))/0x9;if(_0x48c112===_0x346d2f)break;else _0xe90885['push'](_0xe90885['shift']());}catch(_0x335710){_0xe90885['push'](_0xe90885['shift']());}}}(_0x164a,0xe01f9));import{View as _0x106dce}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x106dce{constructor(_0x212c8c,_0xbcbf2a){const _0x2b8b7b=_0x47c9;super(_0x212c8c);const _0x53e41f=this[_0x2b8b7b(0xa7)];this[_0x2b8b7b(0xa3)](_0x2b8b7b(0xa1),''),this[_0x2b8b7b(0x9d)]({'tag':_0x2b8b7b(0x9c),'attributes':{..._0xbcbf2a,'class':[_0x2b8b7b(0xa0),_0x2b8b7b(0xaa)],'ctx-name':_0x2b8b7b(0x9f),'cdn-url':_0x53e41f['to'](_0x2b8b7b(0xa1))}});}}function _0x164a(){const _0x4f1530=['465144weCkJY','6837740nckREo','43233NOaGJp','bindTemplate','80KEIqKm','6489027lzMULc','ck-uploadcare-theme','106096HXaFWM','1308842xWZMqy','uc-cloud-image-editor','setTemplate','236EPfXqL','image-edit','uc-light','imageSrc','12805216ZcTVYS','set'];_0x164a=function(){return _0x4f1530;};return _0x164a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x73ebda}from'ckeditor5/src/icons.js';import{ButtonView as _0x29ea76,IconView as _0x31f2ae,View as _0x4bf503}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x4bf503{constructor(_0x59768d){super(_0x59768d);const t=_0x59768d['t'];this['set']('errorType',null);const _0x111494=new _0x29ea76(_0x59768d);_0x111494['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x111494['withText']=!0x0,_0x111494['class']='ck-button-action',_0x111494['on']('execute',()=>{this['fire']('retry');}),_0x111494['bind']('isVisible')['to'](this,'errorType',_0x4f865b=>'NotFound'!==_0x4f865b);const _0x38635c=new _0x31f2ae();_0x38635c['content']=_0x73ebda,_0x38635c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x581932=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':[_0x38635c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x581932['to']('errorType',_0x3bc783=>t('NotFound'!==_0x3bc783?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x111494]},{'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 _0x90007b,View as _0x56e3a0}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x56e3a0{constructor(_0xa3204f){super(_0xa3204f);const t=_0xa3204f['t'],_0x2d0994=this['bindTemplate'],_0x247c0d=new _0x90007b();_0x247c0d['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':[_0x247c0d,{'text':_0x2d0994['to']('imageUploadProgress',_0x860a85=>t('Loading\x20image...')+'\x20('+(_0x860a85||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
|
+
function _0x5394(_0x8d9d26,_0x13c69d){const _0x515777=_0x5157();return _0x5394=function(_0x539475,_0x59abdb){_0x539475=_0x539475-0x1c3;let _0xafe452=_0x515777[_0x539475];return _0xafe452;},_0x5394(_0x8d9d26,_0x13c69d);}const _0x591ebb=_0x5394;(function(_0x11e63e,_0x271232){const _0x1ec5fb=_0x5394,_0x127d79=_0x11e63e();while(!![]){try{const _0x277d33=parseInt(_0x1ec5fb(0x1f1))/0x1*(-parseInt(_0x1ec5fb(0x1d4))/0x2)+-parseInt(_0x1ec5fb(0x1f7))/0x3+-parseInt(_0x1ec5fb(0x1f9))/0x4*(parseInt(_0x1ec5fb(0x1c3))/0x5)+-parseInt(_0x1ec5fb(0x1ef))/0x6+-parseInt(_0x1ec5fb(0x1dd))/0x7+parseInt(_0x1ec5fb(0x1e9))/0x8*(-parseInt(_0x1ec5fb(0x1d7))/0x9)+parseInt(_0x1ec5fb(0x1c4))/0xa;if(_0x277d33===_0x271232)break;else _0x127d79['push'](_0x127d79['shift']());}catch(_0x4e930e){_0x127d79['push'](_0x127d79['shift']());}}}(_0x5157,0x3c969));import{View as _0x41132c}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1fc130}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x27721d}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1070ef}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x546b1a}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x5157(){const _0x4d9d8e=['_addUploadcareImageEditorListeners','target','2JrnWks','status','getFocusableElement','252117QGInUP','disconnect','div','setTemplate','apply','querySelector','1471876pxIXkp','add','_loadingView','addEventListener','_waitForImageEditorComponent','cdnUrl','clear','set','render','addMany','retry','detail','8swIRoo','uc-cloud-image-editor','focus','change:status','createCollection','_focusableView','2685198VkLgnU','uploading','456287ruRLAt','cancel','fire','nodeName','_errorView','length','406812tdBGGv','addedNodes','13648uZPbZq','685MeZoGJ','19933180dZiFhG','_editingView','_addErrorViewListeners','ready','observe','error','_setView','filter','once','ck-uploadcare-form','ck-reset_all-excluded','element','_items','toLowerCase'];_0x5157=function(){return _0x4d9d8e;};return _0x5157();}export class UploadcareImageEditFormView extends _0x546b1a{[_0x591ebb(0x1d0)];[_0x591ebb(0x1df)];[_0x591ebb(0x1f5)];[_0x591ebb(0x1c5)];[_0x591ebb(0x1ee)];constructor(_0x5001d5,_0x3f919f,_0x3a9fde){const _0x1f5e08=_0x591ebb;super(_0x5001d5),this[_0x1f5e08(0x1d0)]=this[_0x1f5e08(0x1ed)](),this[_0x1f5e08(0x1df)]=new _0x1fc130(_0x5001d5),this[_0x1f5e08(0x1f5)]=new _0x27721d(_0x5001d5),this[_0x1f5e08(0x1c5)]=new _0x1070ef(_0x5001d5,_0x3a9fde),this[_0x1f5e08(0x1ee)]=new _0x41132c(_0x5001d5),this[_0x1f5e08(0x1ee)][_0x1f5e08(0x1da)](this[_0x1f5e08(0x1d6)]()),this[_0x1f5e08(0x1e4)](_0x1f5e08(0x1d5),_0x3f919f),this[_0x1f5e08(0x1da)]({'tag':_0x1f5e08(0x1d9),'attributes':{'class':['ck',_0x1f5e08(0x1ce),_0x1f5e08(0x1cd)],'tabindex':'-1'},'children':this[_0x1f5e08(0x1d0)]}),this[_0x1f5e08(0x1ca)](),this[_0x1f5e08(0x1cc)](_0x1f5e08(0x1e5),()=>{const _0x41fd93=_0x1f5e08;this[_0x41fd93(0x1e1)](this[_0x41fd93(0x1cf)],_0x456c71=>{const _0xd01458=_0x41fd93;this[_0xd01458(0x1d2)](_0x456c71);});}),this['on'](_0x1f5e08(0x1ec),()=>{const _0x43ee94=_0x1f5e08;this[_0x43ee94(0x1ca)]();}),this[_0x1f5e08(0x1c6)]();}[_0x591ebb(0x1eb)](){const _0x3733b4=_0x591ebb;this[_0x3733b4(0x1cf)][_0x3733b4(0x1eb)]();}[_0x591ebb(0x1ca)](){const _0x1596bd=_0x591ebb;switch(this[_0x1596bd(0x1d0)][_0x1596bd(0x1e3)](),this[_0x1596bd(0x1d5)]){case _0x1596bd(0x1f0):this[_0x1596bd(0x1d0)][_0x1596bd(0x1de)](this[_0x1596bd(0x1df)]);break;case _0x1596bd(0x1c9):this[_0x1596bd(0x1d0)][_0x1596bd(0x1de)](this[_0x1596bd(0x1f5)]);break;case _0x1596bd(0x1c7):this[_0x1596bd(0x1d0)][_0x1596bd(0x1e6)]([this[_0x1596bd(0x1c5)],this[_0x1596bd(0x1ee)]]);}}[_0x591ebb(0x1e1)](_0x42397d,_0x493935){const _0x5985d5=_0x591ebb,_0x2c47c5=_0x5985d5(0x1ea),_0x414edb=_0x42397d[_0x5985d5(0x1dc)](_0x2c47c5);if(_0x414edb)return _0x493935(_0x414edb);const _0x230b5f=new MutationObserver(_0x48c90a=>{const _0x30985a=_0x5985d5,_0x10261e=_0x48c90a[_0x30985a(0x1cb)](_0x5caa50=>_0x5caa50[_0x30985a(0x1d3)]===_0x42397d&&_0x5caa50[_0x30985a(0x1f8)][_0x30985a(0x1f6)]>0x0&&_0x5caa50[_0x30985a(0x1f8)][0x0][_0x30985a(0x1f4)][_0x30985a(0x1d1)]()===_0x2c47c5);_0x10261e[_0x30985a(0x1f6)]&&(_0x230b5f[_0x30985a(0x1d8)](),_0x493935(_0x10261e[0x0][_0x30985a(0x1f8)][0x0]));});_0x230b5f[_0x5985d5(0x1c8)](_0x42397d,{'childList':!0x0,'subtree':!0x0});}[_0x591ebb(0x1d2)](_0x12ea42){const _0x4bdd05=_0x591ebb;_0x12ea42[_0x4bdd05(0x1e0)](_0x4bdd05(0x1db),_0x5a7350=>{const _0x1afbe7=_0x4bdd05;this[_0x1afbe7(0x1f3)](_0x1afbe7(0x1db),{'imageSrc':_0x5a7350[_0x1afbe7(0x1e8)][_0x1afbe7(0x1e2)]});}),_0x12ea42[_0x4bdd05(0x1e0)](_0x4bdd05(0x1f2),()=>{const _0x26f54e=_0x4bdd05;this[_0x26f54e(0x1f3)](_0x26f54e(0x1f2));});}[_0x591ebb(0x1c6)](){const _0x3a3a77=_0x591ebb;this[_0x3a3a77(0x1f5)]['on'](_0x3a3a77(0x1e7),()=>{const _0x351bea=_0x3a3a77;this[_0x351bea(0x1f3)](_0x351bea(0x1e7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1af9(_0x379da2,_0x154433){const _0x5e640e=_0x5e64();return _0x1af9=function(_0x1af919,_0x30c2c3){_0x1af919=_0x1af919-0x15d;let _0x5dcada=_0x5e640e[_0x1af919];return _0x5dcada;},_0x1af9(_0x379da2,_0x154433);}const _0x251d33=_0x1af9;(function(_0x5cf65c,_0x2e882c){const _0x7f5364=_0x1af9,_0x514fb3=_0x5cf65c();while(!![]){try{const _0x21fab6=-parseInt(_0x7f5364(0x174))/0x1*(-parseInt(_0x7f5364(0x168))/0x2)+parseInt(_0x7f5364(0x177))/0x3*(parseInt(_0x7f5364(0x17f))/0x4)+parseInt(_0x7f5364(0x175))/0x5*(parseInt(_0x7f5364(0x176))/0x6)+-parseInt(_0x7f5364(0x166))/0x7+-parseInt(_0x7f5364(0x15f))/0x8*(parseInt(_0x7f5364(0x179))/0x9)+parseInt(_0x7f5364(0x17a))/0xa*(parseInt(_0x7f5364(0x165))/0xb)+-parseInt(_0x7f5364(0x163))/0xc*(-parseInt(_0x7f5364(0x16e))/0xd);if(_0x21fab6===_0x2e882c)break;else _0x514fb3['push'](_0x514fb3['shift']());}catch(_0x1ee58b){_0x514fb3['push'](_0x514fb3['shift']());}}}(_0x5e64,0x631e7));import{Command as _0x223aeb}from'ckeditor5/src/core.js';function _0x5e64(){const _0x566b06=['selection','editor','_isEditable','24JCrUDg','getSelectedElement','88946oJhNbs','3703833aXSveQ','get','200158qSsKho','bind','requires','isEnabled','isActive','config','464789lkAuuO','imageInline','set','element','unbind','imageBlock','6KQUIoL','30PeAzia','205164YnEPPb','654TliMKS','document','126DWslsy','570nGRxKg','refresh','execute','plugins','imageEditController','4528fzLOcU','uploadcare.allowExternalImagesEditing','model','371264wIxjCG'];_0x5e64=function(){return _0x566b06;};return _0x5e64();}import{Dialog as _0x1e9755}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x37cc34}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5c7a00}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x223aeb{[_0x251d33(0x17e)];static get[_0x251d33(0x16a)](){return[_0x1e9755];}[_0x251d33(0x162)];constructor(_0x39dba1){const _0x53a984=_0x251d33;super(_0x39dba1),this[_0x53a984(0x17e)]=void 0x0,this[_0x53a984(0x162)]=_0x5c7a00(_0x39dba1[_0x53a984(0x16d)][_0x53a984(0x167)](_0x53a984(0x15d))||[]),this[_0x53a984(0x170)]({'isActive':!0x1});}[_0x251d33(0x17b)](){const _0x9b7e54=_0x251d33,_0x297834=this[_0x9b7e54(0x161)][_0x9b7e54(0x15e)][_0x9b7e54(0x178)][_0x9b7e54(0x160)][_0x9b7e54(0x164)]();this[_0x9b7e54(0x16b)]=this[_0x9b7e54(0x162)](_0x297834);}[_0x251d33(0x17c)](){const _0x4cfcd5=_0x251d33;this[_0x4cfcd5(0x17e)]&&(this[_0x4cfcd5(0x172)](_0x4cfcd5(0x16c)),this[_0x4cfcd5(0x17e)]=void 0x0);const _0x1740e8=this[_0x4cfcd5(0x161)][_0x4cfcd5(0x15e)][_0x4cfcd5(0x178)][_0x4cfcd5(0x160)][_0x4cfcd5(0x164)]();_0x1740e8&&(_0x1740e8['is'](_0x4cfcd5(0x171),_0x4cfcd5(0x173))||_0x1740e8['is'](_0x4cfcd5(0x171),_0x4cfcd5(0x16f)))&&(this[_0x4cfcd5(0x17e)]=new _0x37cc34(this[_0x4cfcd5(0x161)],this[_0x4cfcd5(0x161)][_0x4cfcd5(0x17d)][_0x4cfcd5(0x167)](_0x1e9755),_0x1740e8),this[_0x4cfcd5(0x169)](_0x4cfcd5(0x16c))['to'](this[_0x4cfcd5(0x17e)],_0x4cfcd5(0x16c)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cf04c=_0x5bfd;(function(_0x5d1c67,_0x2e5829){const _0x3bc412=_0x5bfd,_0xd28e1e=_0x5d1c67();while(!![]){try{const _0x2ffc6f=parseInt(_0x3bc412(0xbc))/0x1*(-parseInt(_0x3bc412(0xcb))/0x2)+parseInt(_0x3bc412(0xb8))/0x3+-parseInt(_0x3bc412(0xbf))/0x4+-parseInt(_0x3bc412(0xcd))/0x5*(parseInt(_0x3bc412(0xc2))/0x6)+parseInt(_0x3bc412(0xce))/0x7*(-parseInt(_0x3bc412(0xbb))/0x8)+parseInt(_0x3bc412(0xc7))/0x9*(parseInt(_0x3bc412(0xc0))/0xa)+-parseInt(_0x3bc412(0xb7))/0xb*(-parseInt(_0x3bc412(0xb9))/0xc);if(_0x2ffc6f===_0x2e5829)break;else _0xd28e1e['push'](_0xd28e1e['shift']());}catch(_0x3cc2cf){_0xd28e1e['push'](_0xd28e1e['shift']());}}}(_0x5a5c,0x2463f));function _0x5bfd(_0x3683ec,_0x4a0f02){const _0x5a5c10=_0x5a5c();return _0x5bfd=function(_0x5bfd75,_0x514156){_0x5bfd75=_0x5bfd75-0xb7;let _0x48140a=_0x5a5c10[_0x5bfd75];return _0x48140a;},_0x5bfd(_0x3683ec,_0x4a0f02);}import{Plugin as _0x1a00cf}from'ckeditor5/src/core.js';import{Notification as _0x45981d}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x503daa}from'./uploadcareimageeditcommand.js';function _0x5a5c(){const _0x317942=['3386244AJHiiN','ImageUtils','24LHcwaw','37ZSaRsL','init','uploadcareImageEdit','671524LkWEPL','1940HbZfEe','isPremiumPlugin','2622CvoPlz','commands','ImageEditing','pluginName','add','8847fguSVe','UploadcareImageEditEditing','isOfficialPlugin','requires','6520maIJrF','uploadcareImageReplace','865PtJbaX','307041lpAhdA','11IbVsHg','515571crVQKr'];_0x5a5c=function(){return _0x317942;};return _0x5a5c();}import{UploadcareImageReplaceCommand as _0x37970c}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x133111}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1a00cf{static get[_0x1cf04c(0xc5)](){const _0x371d19=_0x1cf04c;return _0x371d19(0xc8);}static get[_0x1cf04c(0xca)](){const _0x5a7c3f=_0x1cf04c;return[_0x133111,_0x45981d,_0x5a7c3f(0xba),_0x5a7c3f(0xc4)];}static get[_0x1cf04c(0xc9)](){return!0x0;}static get[_0x1cf04c(0xc1)](){return!0x0;}[_0x1cf04c(0xbd)](){const _0x467fca=_0x1cf04c,{editor:_0xbfa1a2}=this;_0xbfa1a2[_0x467fca(0xc3)][_0x467fca(0xc6)](_0x467fca(0xbe),new _0x503daa(_0xbfa1a2)),_0xbfa1a2[_0x467fca(0xc3)][_0x467fca(0xc6)](_0x467fca(0xcc),new _0x37970c(_0xbfa1a2));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x11a9ac}from'ckeditor5/src/core.js';import{ButtonView as _0x4c37f8}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x36e5ea}from'ckeditor5/src/icons.js';import{createElement as _0x134b77}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 _0x11a9ac{['_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 _0xaa87f7=this['editor'];_0xaa87f7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1194af=>{const _0x154713=_0xaa87f7['commands']['get']('uploadcareImageEdit'),_0x404a9d=new _0x4c37f8(_0x1194af),t=_0x1194af['t'];return _0x404a9d['set']({'icon':_0x36e5ea,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x404a9d['bind']('isEnabled')['to'](_0x154713),_0x404a9d['bind']('isOn')['to'](_0x154713,'isActive'),this['listenTo'](_0x404a9d,'execute',()=>{_0xaa87f7['execute']('uploadcareImageEdit'),_0xaa87f7['editing']['view']['focus']();}),_0x404a9d;}),this['_initConfig']();}['_initConfig'](){const _0x55a2c9=_0x134b77(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x55a2c9),this['listenTo'](this['editor'],'destroy',()=>{_0x55a2c9['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1207(_0x38d9bf,_0x1d96a9){const _0x476695=_0x4766();return _0x1207=function(_0x1207cc,_0x525a5d){_0x1207cc=_0x1207cc-0xa3;let _0x484516=_0x476695[_0x1207cc];return _0x484516;},_0x1207(_0x38d9bf,_0x1d96a9);}const _0x3e1c57=_0x1207;(function(_0x5a2676,_0x555f51){const _0x42d325=_0x1207,_0x3fc4e2=_0x5a2676();while(!![]){try{const _0x17335c=-parseInt(_0x42d325(0xa4))/0x1+parseInt(_0x42d325(0xaf))/0x2+-parseInt(_0x42d325(0xab))/0x3+-parseInt(_0x42d325(0xb8))/0x4*(parseInt(_0x42d325(0xb5))/0x5)+-parseInt(_0x42d325(0xb4))/0x6+-parseInt(_0x42d325(0xae))/0x7+parseInt(_0x42d325(0xb6))/0x8;if(_0x17335c===_0x555f51)break;else _0x3fc4e2['push'](_0x3fc4e2['shift']());}catch(_0x5005c1){_0x3fc4e2['push'](_0x3fc4e2['shift']());}}}(_0x4766,0x5c489));import{Command as _0x2d1b9c}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x2d1b9c{[_0x3e1c57(0xb7)](){const _0x4679a2=_0x3e1c57,_0x2561ae=this[_0x4679a2(0xba)][_0x4679a2(0xa5)][_0x4679a2(0xa6)][_0x4679a2(0xa9)][_0x4679a2(0xaa)]();this[_0x4679a2(0xac)]=Boolean(_0x2561ae&&(_0x2561ae['is'](_0x4679a2(0xa7),_0x4679a2(0xad))||_0x2561ae['is'](_0x4679a2(0xa7),_0x4679a2(0xb9))));}[_0x3e1c57(0xa3)](_0xbe9e08){const _0x6c67b3=_0x3e1c57,_0x34d692=this[_0x6c67b3(0xba)][_0x6c67b3(0xa5)][_0x6c67b3(0xa6)][_0x6c67b3(0xa9)][_0x6c67b3(0xaa)]();this[_0x6c67b3(0xba)][_0x6c67b3(0xa5)][_0x6c67b3(0xb3)](_0x19d5c6=>{const _0x39a0d3=_0x6c67b3;_0x19d5c6[_0x39a0d3(0xa8)](_0xbe9e08,_0x34d692),_0x19d5c6[_0x39a0d3(0xb2)](_0x39a0d3(0xb1),_0x34d692),_0x19d5c6[_0x39a0d3(0xb2)](_0x39a0d3(0xb0),_0x34d692);});}}function _0x4766(){const _0x112362=['srcset','removeAttribute','change','4280430VWFoaz','5GDCgvs','18017480RVQkoi','refresh','960524cpeIkA','imageInline','editor','execute','317474bOLAic','model','document','element','setAttributes','selection','getSelectedElement','1015869mQuYiX','isEnabled','imageBlock','4343234tUxgjf','711806ICZxdK','sizes'];_0x4766=function(){return _0x112362;};return _0x4766();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3cf013=_0x23e6;(function(_0xa92c1c,_0x98f1c6){var _0x1e40be=_0x23e6,_0x3400ea=_0xa92c1c();while(!![]){try{var _0x2e363c=parseInt(_0x1e40be(0xf6))/0x1*(-parseInt(_0x1e40be(0xfe))/0x2)+parseInt(_0x1e40be(0xfb))/0x3+-parseInt(_0x1e40be(0xff))/0x4+-parseInt(_0x1e40be(0x100))/0x5+-parseInt(_0x1e40be(0xfc))/0x6*(-parseInt(_0x1e40be(0xfa))/0x7)+parseInt(_0x1e40be(0xfd))/0x8+parseInt(_0x1e40be(0x103))/0x9*(-parseInt(_0x1e40be(0xf8))/0xa);if(_0x2e363c===_0x98f1c6)break;else _0x3400ea['push'](_0x3400ea['shift']());}catch(_0x4adaa1){_0x3400ea['push'](_0x3400ea['shift']());}}}(_0x4b7b,0x691a1));function _0x4b7b(){var _0x358aca=['2368992rtyJcw','6042uIdlgI','3186248eAjoMY','2FnnkJQ','1607036THlMUk','1375375sWSKbV','pluginName','requires','9xUaCAN','UploadcareImageEdit','357061EFWRBL','isOfficialPlugin','4717540CPQnmS','isPremiumPlugin','5201ytPSCF'];_0x4b7b=function(){return _0x358aca;};return _0x4b7b();}import{Plugin as _0x23fc43}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x2e9e8}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x23e6(_0x2d2b3e,_0x90c87){var _0x4b7b3e=_0x4b7b();return _0x23e6=function(_0x23e678,_0x4adf5b){_0x23e678=_0x23e678-0xf5;var _0x19b4cf=_0x4b7b3e[_0x23e678];return _0x19b4cf;},_0x23e6(_0x2d2b3e,_0x90c87);}import{UploadcareImageEditUI as _0x4bd563}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x23fc43{static get[_0x3cf013(0x101)](){var _0x3358dd=_0x3cf013;return _0x3358dd(0xf5);}static get[_0x3cf013(0x102)](){return[_0x2e9e8,_0x4bd563];}static get[_0x3cf013(0xf7)](){return!0x0;}static get[_0x3cf013(0xf9)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8887a5=_0x1a59;(function(_0x2d476c,_0x5cd270){const _0x5d11f0=_0x1a59,_0x1d5baa=_0x2d476c();while(!![]){try{const _0xdaeda3=-parseInt(_0x5d11f0(0x1c7))/0x1+parseInt(_0x5d11f0(0x1d6))/0x2+-parseInt(_0x5d11f0(0x1c9))/0x3*(parseInt(_0x5d11f0(0x1bf))/0x4)+parseInt(_0x5d11f0(0x1de))/0x5+-parseInt(_0x5d11f0(0x200))/0x6*(-parseInt(_0x5d11f0(0x1cf))/0x7)+-parseInt(_0x5d11f0(0x1e4))/0x8+parseInt(_0x5d11f0(0x206))/0x9;if(_0xdaeda3===_0x5cd270)break;else _0x1d5baa['push'](_0x1d5baa['shift']());}catch(_0xcc0e2c){_0x1d5baa['push'](_0x1d5baa['shift']());}}}(_0x275a,0xbc27e));import{Plugin as _0x53b332}from'ckeditor5/src/core.js';function _0x275a(){const _0x43957d=['tooltip','commands','featureNotAllowed','_getIntegrationKey','icon','plugins','isEnabled','_createButton','pluginName','isOfficialPlugin','Local','evaluationLimit','uploadcare.uploader.sourceList','editor','uploadcare','uploadcareLicenseKeyUsageLimit','_createMenuBarButtons','init','type','OneDrive','execute','6hLGXsR','label','url','locale','GPhotos','_showLicenseError','3891906gkqggS','upload','destroy','forEach','_createToolbarButton','licenseKey','entries','uploadcareLicenseKeyEvaluationLimit','uploadcareLicenseKeyDomainLimit','12XEObnx','isPremiumPlugin','uploadcareLicenseKeyNotAllowed','Replace','assetManager','withText','text','bind','948850YqooCZ','Uploadcare','263901LiOpEC','map','uploadcareLicenseKeyExpired','invalid','trialLimit','push','8479177vWESWy','has','uploadcareLicenseKeyInvalid','afterInit','Facebook','expired','config','891828yqLVmM','URL','GDrive','Dropbox','uploadcareLicenseKeyValid','_normalizeConfigSourceList','Insert','reduce','1992855kGocrW','get','uploadcareLicenseKeyTrialLimit','_licenseKeyCheckInterval','ImageInsertUI','usageLimit','4038344hvAmpQ','domainLimit','UploadcareUI','_createDropdownButtons','isImageSelected','shortText','registerIntegration'];_0x275a=function(){return _0x43957d;};return _0x275a();}import{IconDropbox as _0x5dbfba,IconFacebook as _0x170c50,IconGoogleDrive as _0x392b08,IconGooglePhotos as _0x5e23fc,IconUploadcareImageUpload as _0x40996e,IconUploadcareLink as _0x2fd350,IconOneDrive as _0x403b04}from'ckeditor5/src/icons.js';import{ButtonView as _0x33b651,MenuBarMenuListItemButtonView as _0x5067de}from'ckeditor5/src/ui.js';function _0x1a59(_0x26717b,_0x45c9e6){const _0x275aa1=_0x275a();return _0x1a59=function(_0x1a5987,_0x3fc5de){_0x1a5987=_0x1a5987-0x1ba;let _0x7fc0e6=_0x275aa1[_0x1a5987];return _0x7fc0e6;},_0x1a59(_0x26717b,_0x45c9e6);}import{UploadcareSource as _0x2d3f75}from'./uploadcareconfig.js';import{getTranslation as _0x1b22a4}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x53b332{[_0x8887a5(0x1bb)];[_0x8887a5(0x1e1)];static get[_0x8887a5(0x1f3)](){const _0x3e5519=_0x8887a5;return _0x3e5519(0x1e6);}static get[_0x8887a5(0x1f4)](){return!0x0;}static get[_0x8887a5(0x1c0)](){return!0x0;}[_0x8887a5(0x1fc)](){const _0x2c3486=_0x8887a5;this[_0x2c3486(0x1bb)]=this[_0x2c3486(0x1f8)][_0x2c3486(0x1d5)][_0x2c3486(0x1df)](_0x2c3486(0x1bb));const _0x25b4a3=this[_0x2c3486(0x1f8)];this[_0x2c3486(0x1e1)]=setInterval(()=>{const _0xad3011=_0x2c3486;let _0x29a7c;for(const _0x3a3feb in _0x25b4a3){const _0x374842=_0x3a3feb,_0x1f0275=_0x25b4a3[_0x374842];if(_0xad3011(0x1da)==_0x1f0275||_0xad3011(0x1d1)==_0x1f0275||_0xad3011(0x1cb)==_0x1f0275||_0xad3011(0x1be)==_0x1f0275||_0xad3011(0x1c1)==_0x1f0275||_0xad3011(0x1bd)==_0x1f0275||_0xad3011(0x1e0)==_0x1f0275||_0xad3011(0x1fa)==_0x1f0275){delete _0x25b4a3[_0x374842],_0x29a7c=_0x1f0275,clearInterval(this[_0xad3011(0x1e1)]),this[_0xad3011(0x1e1)]=void 0x0;break;}}_0xad3011(0x1d1)==_0x29a7c&&_0x25b4a3[_0xad3011(0x205)](_0xad3011(0x1cc)),_0xad3011(0x1cb)==_0x29a7c&&_0x25b4a3[_0xad3011(0x205)](_0xad3011(0x1d4)),_0xad3011(0x1be)==_0x29a7c&&_0x25b4a3[_0xad3011(0x205)](_0xad3011(0x1e5)),_0xad3011(0x1c1)==_0x29a7c&&_0x25b4a3[_0xad3011(0x205)](_0xad3011(0x1ed),_0xad3011(0x1c8)),_0xad3011(0x1bd)==_0x29a7c&&_0x25b4a3[_0xad3011(0x205)](_0xad3011(0x1f6)),_0xad3011(0x1e0)==_0x29a7c&&_0x25b4a3[_0xad3011(0x205)](_0xad3011(0x1cd)),_0xad3011(0x1fa)==_0x29a7c&&_0x25b4a3[_0xad3011(0x205)](_0xad3011(0x1e3));},0x3e8);}[_0x8887a5(0x1d2)](){const _0x35ef73=_0x8887a5,{editor:_0x514bba}=this,_0x4ec11b=_0x514bba[_0x35ef73(0x1ec)][_0x35ef73(0x1df)](_0x35ef73(0x1f9));if(!_0x4ec11b)return;const _0xc8fe19=this[_0x35ef73(0x1db)](_0x514bba[_0x35ef73(0x1d5)][_0x35ef73(0x1df)](_0x35ef73(0x1f7)))[_0x35ef73(0x1dd)]((_0x57c271,_0x365818)=>{const _0xacca4f=_0x35ef73,_0x4a4fe2=this[_0xacca4f(0x1ee)](_0x365818[_0xacca4f(0x1fd)]);return _0x57c271[_0x4a4fe2]||(_0x57c271[_0x4a4fe2]=[]),_0x57c271[_0x4a4fe2][_0xacca4f(0x1ce)](_0x365818),_0x57c271;},{});_0x514bba[_0x35ef73(0x1f0)][_0x35ef73(0x1d0)](_0x35ef73(0x1e2))&&_0x514bba[_0x35ef73(0x1ec)][_0x35ef73(0x1df)](_0x35ef73(0x1f9))&&Object[_0x35ef73(0x1bc)](_0xc8fe19)[_0x35ef73(0x209)](([_0x46eab9,_0x2e28b9])=>{const _0xf3180c=_0x35ef73;_0x514bba[_0xf3180c(0x1f0)][_0xf3180c(0x1df)](_0xf3180c(0x1e2))[_0xf3180c(0x1ea)]({'name':_0x46eab9,'observable':()=>_0x4ec11b,'buttonViewCreator':()=>this[_0xf3180c(0x1ba)](_0x2e28b9),'formViewCreator':()=>this[_0xf3180c(0x1e7)](_0x2e28b9),'menuBarButtonViewCreator':()=>this[_0xf3180c(0x1fb)](_0x2e28b9),'override':_0xf3180c(0x1c3)!==_0x46eab9});});}[_0x8887a5(0x208)](){const _0x579c0c=_0x8887a5;super[_0x579c0c(0x208)](),this[_0x579c0c(0x1e1)]&&clearInterval(this[_0x579c0c(0x1e1)]);}[_0x8887a5(0x1db)](_0x2cc0c2){const _0x2a938e=_0x8887a5,{locale:_0x183179}=this[_0x2a938e(0x1f8)];return _0x2cc0c2[_0x2a938e(0x1ca)](_0x54fa07=>{const _0x2c3f9f=_0x2a938e,_0xc879ff=_0x1b22a4(_0x183179,_0x54fa07,_0x2c3f9f(0x1dc));switch(_0x54fa07){case _0x2d3f75[_0x2c3f9f(0x1f5)]:return{'icon':_0x40996e,'type':_0x2d3f75[_0x2c3f9f(0x1f5)],..._0xc879ff};case _0x2d3f75[_0x2c3f9f(0x1d7)]:return{'icon':_0x2fd350,'type':_0x2d3f75[_0x2c3f9f(0x1d7)],..._0xc879ff};case _0x2d3f75[_0x2c3f9f(0x1d9)]:return{'icon':_0x5dbfba,'type':_0x2d3f75[_0x2c3f9f(0x1d9)],..._0xc879ff};case _0x2d3f75[_0x2c3f9f(0x1d3)]:return{'icon':_0x170c50,'type':_0x2d3f75[_0x2c3f9f(0x1d3)],..._0xc879ff};case _0x2d3f75[_0x2c3f9f(0x1d8)]:return{'icon':_0x392b08,'type':_0x2d3f75[_0x2c3f9f(0x1d8)],..._0xc879ff};case _0x2d3f75[_0x2c3f9f(0x204)]:return{'icon':_0x5e23fc,'type':_0x2d3f75[_0x2c3f9f(0x204)],..._0xc879ff};case _0x2d3f75[_0x2c3f9f(0x1fe)]:return{'icon':_0x403b04,'type':_0x2d3f75[_0x2c3f9f(0x1fe)],..._0xc879ff};}});}[_0x8887a5(0x1ee)](_0x357746){const _0x35f54a=_0x8887a5;switch(_0x357746){case _0x2d3f75[_0x35f54a(0x1f5)]:return _0x35f54a(0x207);case _0x2d3f75[_0x35f54a(0x1d7)]:return _0x35f54a(0x202);default:return _0x35f54a(0x1c3);}}[_0x8887a5(0x1f2)](_0x2233bc,_0x486618){const _0x131173=_0x8887a5,_0x1964e7=this[_0x131173(0x1f8)],_0x12137a=new _0x2233bc(_0x1964e7[_0x131173(0x203)]),_0x2c6d3c=_0x1964e7[_0x131173(0x1ec)][_0x131173(0x1df)](_0x131173(0x1f9));return _0x12137a[_0x131173(0x1c6)](_0x131173(0x1f1))['to'](_0x2c6d3c),_0x12137a['on'](_0x131173(0x1ff),()=>{const _0x18c702=_0x131173;_0x2c6d3c[_0x18c702(0x1ff)](_0x486618);}),_0x12137a;}[_0x8887a5(0x1ba)](_0xb3c81){const _0x5c0fd7=_0x8887a5,{locale:_0xcc24c9}=this[_0x5c0fd7(0x1f8)],_0x1fc395=this[_0x5c0fd7(0x1f8)][_0x5c0fd7(0x1f0)][_0x5c0fd7(0x1df)](_0x5c0fd7(0x1e2)),_0x3f8520=_0xb3c81[0x0],_0x1aeeb8=this[_0x5c0fd7(0x1f2)](_0x33b651,_0x3f8520[_0x5c0fd7(0x1fd)]);return _0x1aeeb8[_0x5c0fd7(0x1ef)]=_0x3f8520[_0x5c0fd7(0x1ef)],_0x1aeeb8[_0x5c0fd7(0x1c6)](_0x5c0fd7(0x201))['to'](_0x1fc395,_0x5c0fd7(0x1e8),_0x25ffd9=>_0x1b22a4(_0xcc24c9,_0x3f8520[_0x5c0fd7(0x1fd)],_0x25ffd9?_0x5c0fd7(0x1c2):_0x5c0fd7(0x1dc))[_0x5c0fd7(0x1c5)]),_0x1aeeb8[_0x5c0fd7(0x1eb)]=!0x0,_0x1aeeb8;}[_0x8887a5(0x1e7)](_0x2293d9){const _0x2c2baa=_0x8887a5,{locale:_0x5822cc}=this[_0x2c2baa(0x1f8)],_0x299967=this[_0x2c2baa(0x1f8)][_0x2c2baa(0x1f0)][_0x2c2baa(0x1df)](_0x2c2baa(0x1e2));return _0x2293d9[_0x2c2baa(0x1ca)](_0x514512=>{const _0xd03341=_0x2c2baa,_0x39057c=this[_0xd03341(0x1f2)](_0x33b651,_0x514512[_0xd03341(0x1fd)]);return _0x39057c[_0xd03341(0x1c4)]=!0x0,_0x39057c[_0xd03341(0x1ef)]=_0x514512[_0xd03341(0x1ef)],_0x39057c[_0xd03341(0x1c6)](_0xd03341(0x201))['to'](_0x299967,_0xd03341(0x1e8),_0x571ae2=>_0x1b22a4(_0x5822cc,_0x514512[_0xd03341(0x1fd)],_0x571ae2?_0xd03341(0x1c2):_0xd03341(0x1dc))[_0xd03341(0x1c5)]),_0x39057c;});}[_0x8887a5(0x1fb)](_0x501108){const _0xeef084=_0x8887a5;return _0x501108[_0xeef084(0x1ca)](_0x4c6151=>{const _0x1d511b=_0xeef084,_0x47c807=this[_0x1d511b(0x1f2)](_0x5067de,_0x4c6151[_0x1d511b(0x1fd)]);return _0x47c807[_0x1d511b(0x1ef)]=_0x4c6151[_0x1d511b(0x1ef)],_0x47c807[_0x1d511b(0x201)]=_0x4c6151[_0x1d511b(0x1e9)],_0x47c807;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x911483}from'ckeditor5/src/core.js';import{FileRepository as _0x3e971d}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x489e7e}from'./uploadcareediting.js';import{UploadUtils as _0x4d684d}from'./utils/uploadutils.js';import{getImageUrls as _0x40f931}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x911483{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3e971d,_0x489e7e];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5ba955=this['editor'];if(!!!_0x5ba955['config']['get']('uploadcare'))return;_0x5ba955['plugins']['get'](_0x3e971d)['createUploadAdapter']=_0x235e0a=>new k(_0x235e0a,_0x5ba955),_0x5ba955['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4ca4cf,{imageElement:_0x2d1e3a,data:_0xc6e75c})=>{_0x5ba955['model']['change'](_0x4aaa4b=>{_0x4aaa4b['setAttribute']('uploadcareImageId',_0xc6e75c['uploadcareImageId'],_0x2d1e3a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x376d46,_0xd89062){this['loader']=_0x376d46,this['editor']=_0xd89062,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3e1c48=await this['loader']['file'];return _0x4d684d['upload']({'file':_0x3e1c48,'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':_0x11bc45=>{_0x11bc45&&_0x11bc45['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x11bc45['value']);}})['then'](async _0x2bea23=>{const {imageFallbackUrl:_0x297a2a,imageSources:_0x3f0f6a}=_0x40f931(_0x2bea23['cdnUrl'],_0x2bea23['imageInfo']['width']);return{'uploadcareImageId':_0x2bea23['uuid'],'default':_0x297a2a,'sources':_0x3f0f6a};})['catch'](()=>{const _0x15b135=t('Cannot\x20upload\x20file:')+('\x20'+_0x3e1c48['name']+'.');return Promise['reject'](_0x15b135);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x42ac68}from'../uploadcareconfig.js';export function getTranslation(_0x3ae396,_0x341d80,_0x3757e2){const t=_0x3ae396['t'],_0x2240fa=_0x3ae396['t'];switch(_0x341d80){case _0x42ac68['Local']:return{'text':_0x2240fa('Insert'===_0x3757e2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2240fa('From\x20computer')};case _0x42ac68['URL']:return{'text':'Insert'===_0x3757e2?_0x2240fa('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2240fa('Via\x20URL')};case _0x42ac68['Dropbox']:return{'text':t('Insert'===_0x3757e2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x42ac68['Facebook']:return{'text':t('Insert'===_0x3757e2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x42ac68['GDrive']:return{'text':t('Insert'===_0x3757e2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x42ac68['GPhotos']:return{'text':t('Insert'===_0x3757e2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x42ac68['OneDrive']:return{'text':t('Insert'===_0x3757e2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x341d80;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4dc3f9=_0x453d;function _0x1e8d(){var _0x110bd2=['5JQmSQZ','395226uKNcbF','1416908CNikJT','div','bindTemplate','12556296rpPyvw','focusCycler','fire','createCollection','4KROAAA','forwardCycle','2081796cJthXQ','2955925rOOpLq','focusTracker','true','2986984AYNgYA','401121WIApUJ','10XmxqaG','getFocusableElement'];_0x1e8d=function(){return _0x110bd2;};return _0x1e8d();}(function(_0x22e05e,_0x21e3ad){var _0x4826ca=_0x453d,_0x545767=_0x22e05e();while(!![]){try{var _0x673e55=parseInt(_0x4826ca(0x13a))/0x1+-parseInt(_0x4826ca(0x142))/0x2*(parseInt(_0x4826ca(0x149))/0x3)+parseInt(_0x4826ca(0x13b))/0x4+parseInt(_0x4826ca(0x139))/0x5*(parseInt(_0x4826ca(0x144))/0x6)+parseInt(_0x4826ca(0x145))/0x7+parseInt(_0x4826ca(0x148))/0x8+parseInt(_0x4826ca(0x13e))/0x9*(-parseInt(_0x4826ca(0x14a))/0xa);if(_0x673e55===_0x21e3ad)break;else _0x545767['push'](_0x545767['shift']());}catch(_0x2fb00b){_0x545767['push'](_0x545767['shift']());}}}(_0x1e8d,0x38085));function _0x453d(_0x510e33,_0x21016a){var _0x1e8deb=_0x1e8d();return _0x453d=function(_0x453d4e,_0x552868){_0x453d4e=_0x453d4e-0x138;var _0x4fe19a=_0x1e8deb[_0x453d4e];return _0x4fe19a;},_0x453d(_0x510e33,_0x21016a);}import{FocusTracker as _0xa6b529}from'ckeditor5/src/utils.js';import{View as _0x354c52,FocusCycler as _0x1a0e8c}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x354c52{[_0x4dc3f9(0x146)];[_0x4dc3f9(0x13f)];constructor(_0x1b7b89){var _0x366f79=_0x4dc3f9;super(_0x1b7b89),this[_0x366f79(0x146)]=new _0xa6b529(),this[_0x366f79(0x13f)]=new _0x1a0e8c({'focusables':this[_0x366f79(0x141)](),'focusTracker':this[_0x366f79(0x146)]});}[_0x4dc3f9(0x138)](){var _0x2330d0=_0x4dc3f9;return{'tag':_0x2330d0(0x13c),'attributes':{'aria-hidden':_0x2330d0(0x147),'tabindex':'0'},'on':{'focus':this[_0x2330d0(0x13d)]['to'](()=>{var _0xc88de3=_0x2330d0;this[_0xc88de3(0x13f)][_0xc88de3(0x140)](_0xc88de3(0x143));})}};}}
|