@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250924.0 → 0.0.0-nightly-20250925.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4eb55b=_0x5815;function _0x3e3a(){const _0x145b0b=['998616VUeUrC','uploadcareImageReplace','removeAttribute','selection','PictureEditing','locale','contentLanguage','pluginName','render','_initCtx','data-uc-image-id','href','extend','139141FjKlVs','245KkPRlf','appendChild','UploadcareEditing','commands','getAttribute','iconHrefResolver','editing','true','view','listenTo','downcast','config','configElement','cleanupImage','uploadcare.pubkey','uc-upload-ctx-provider','closeMax','uploadcare.uploader','_initConfig','isPremiumPlugin','uploadcareImageId','for','conversion','731949Tudgyf','uploadcare','_initConversion','1206258aFgSzb','schema','isOfficialPlugin','isRegistered','body','replaceImageSource','imageInline','_configElement','_initSchema','once','destroy','upcast','_initImageProcessingIndicator','\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','join','afterInit','fromCharCode','insertImage','requires','709840xeQLpy','uploader-','get','imageBlock','ucContextId','uc-config','querySelector','attributeToAttribute','_ctxElement','execute','add','elementToAttribute','ctxElement','model','getSelectedElement','#uc-icon-arrow-down','editor','init','input[uploadcare-file-input]','324992OdWXTZ','document','remove','1522434VOBfZq','map'];_0x3e3a=function(){return _0x145b0b;};return _0x3e3a();}(function(_0x18a4d6,_0x506c9e){const _0x8f441f=_0x5815,_0x4cd4b3=_0x18a4d6();while(!![]){try{const _0x448e9a=-parseInt(_0x8f441f(0x7f))/0x1+-parseInt(_0x8f441f(0x70))/0x2+parseInt(_0x8f441f(0x97))/0x3+-parseInt(_0x8f441f(0x72))/0x4+-parseInt(_0x8f441f(0xad))/0x5+parseInt(_0x8f441f(0x9a))/0x6+parseInt(_0x8f441f(0x80))/0x7*(parseInt(_0x8f441f(0x6d))/0x8);if(_0x448e9a===_0x506c9e)break;else _0x4cd4b3['push'](_0x4cd4b3['shift']());}catch(_0x3b0b7d){_0x4cd4b3['push'](_0x4cd4b3['shift']());}}}(_0x3e3a,0x8c5a6));import{Plugin as _0x491260}from'ckeditor5/src/core.js';import{Dialog as _0x15c87f}from'ckeditor5/src/ui.js';import{createElement as _0x5f09bc,global as _0x465139,uid as _0x9f56f6}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1d6dae}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x79b93c}from'./uploadcareuploadadapter.js';function _0x5815(_0x2a3d37,_0x4e6acc){const _0x3e3a95=_0x3e3a();return _0x5815=function(_0x581573,_0x2041bd){_0x581573=_0x581573-0x67;let _0x529617=_0x3e3a95[_0x581573];return _0x529617;},_0x5815(_0x2a3d37,_0x4e6acc);}import{showImageProcessingIndicator as _0x118222}from'./utils/editingutils.js';export class UploadcareEditing extends _0x491260{[_0x4eb55b(0xa1)]=null;[_0x4eb55b(0xb5)]=null;static get[_0x4eb55b(0x79)](){const _0x2db4b4=_0x4eb55b;return _0x2db4b4(0x82);}static get[_0x4eb55b(0xac)](){const _0x1f934e=_0x4eb55b;return[_0x1f934e(0x76),_0x79b93c,_0x15c87f];}static get[_0x4eb55b(0x9c)](){return!0x0;}static get[_0x4eb55b(0x93)](){return!0x0;}[_0x4eb55b(0xb1)];get[_0x4eb55b(0x8c)](){const _0x7069d4=_0x4eb55b;return this[_0x7069d4(0xa1)];}get[_0x4eb55b(0xb9)](){const _0x15d163=_0x4eb55b;return this[_0x15d163(0xb5)];}constructor(_0x54155a){const _0x5a3285=_0x4eb55b;super(_0x54155a),this[_0x5a3285(0xb1)]=_0x9f56f6();}[_0x4eb55b(0x6b)](){const _0xb8ed1d=_0x4eb55b,_0x3f282e=this[_0xb8ed1d(0x6a)];_0x3f282e[_0xb8ed1d(0x83)][_0xb8ed1d(0xb7)](_0xb8ed1d(0x98),new _0x1d6dae(_0x3f282e));}[_0x4eb55b(0xa9)](){const _0x346d89=_0x4eb55b;this[_0x346d89(0xa2)](),this[_0x346d89(0x99)](),this[_0x346d89(0x92)](),this[_0x346d89(0x7b)](),this[_0x346d89(0xa6)](),this[_0x346d89(0x89)](this[_0x346d89(0x6a)],_0x346d89(0xa4),()=>{const _0x7ffb27=_0x346d89;this[_0x7ffb27(0xa1)]&&(this[_0x7ffb27(0xa1)][_0x7ffb27(0x6f)](),this[_0x7ffb27(0xa1)]=null),this[_0x7ffb27(0xb5)]&&(this[_0x7ffb27(0xb5)][_0x7ffb27(0x6f)](),this[_0x7ffb27(0xb5)]=null);const _0x52cfd1=_0x465139[_0x7ffb27(0x6e)][_0x7ffb27(0xb3)](_0x7ffb27(0x6c));_0x52cfd1&&_0x52cfd1[_0x7ffb27(0x6f)]();}),async function(_0x40fc4){const _0x56fda2=_0x5da6cc([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]),_0x30506e=0x3d8d0df,_0xe52b06=0x3dfa497^_0x30506e,_0x538566=window[_0x5da6cc([0x44,0x61,0x74,0x65])][_0x5da6cc([0x6e,0x6f,0x77])](),_0x3029aa=_0x40fc4[_0x5da6cc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x153893=new window[(_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26b8e0=>{_0x3029aa[_0x5da6cc([0x6f,0x6e,0x63,0x65])](_0x5da6cc([0x72,0x65,0x61,0x64,0x79]),_0x26b8e0);}),_0x1b46f8={[_0x5da6cc([0x6b,0x74,0x79])]:_0x5da6cc([0x45,0x43]),[_0x5da6cc([0x75,0x73,0x65])]:_0x5da6cc([0x73,0x69,0x67]),[_0x5da6cc([0x63,0x72,0x76])]:_0x5da6cc([0x50,0x2d,0x32,0x35,0x36]),[_0x5da6cc([0x78])]:_0x5da6cc([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]),[_0x5da6cc([0x79])]:_0x5da6cc([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]),[_0x5da6cc([0x61,0x6c,0x67])]:_0x5da6cc([0x45,0x53,0x32,0x35,0x36])},_0x2d4d61=_0x3029aa[_0x5da6cc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5da6cc([0x67,0x65,0x74])](_0x5da6cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5ccf1d(){let _0x5b3979,_0x4bcd83=null,_0x4f5cd0=null;try{if(_0x2d4d61==_0x5da6cc([0x47,0x50,0x4c]))return _0x5da6cc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5b3979=_0x134c80(),!_0x5b3979)return _0x5da6cc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5b3979[_0x5da6cc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f5cd0=_0x4517a3(_0x5b3979[_0x5da6cc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5b3979[_0x5da6cc([0x6a,0x74,0x69])])),await _0x286ba6()?_0x50e842()?_0x971c35()?_0x5da6cc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ce107()?(_0x5b3979[_0x5da6cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5da6cc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bcd83=_0x4c8443(_0x5da6cc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5b3979[_0x5da6cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5da6cc([0x74,0x72,0x69,0x61,0x6c])&&(_0x4bcd83=_0x4c8443(_0x5da6cc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1102d()):_0x5da6cc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5da6cc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5da6cc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5da6cc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x971c35(){const _0x2a5376=[_0x5da6cc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5da6cc([0x74,0x72,0x69,0x61,0x6c])][_0x5da6cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b3979[_0x5da6cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x538566/0x3e8:0xe10*_0xe52b06;return _0x5b3979[_0x5da6cc([0x65,0x78,0x70])]<_0x2a5376;}function _0x50e842(){const _0x4b9ce5=_0x5b3979[_0x5da6cc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4b9ce5&&(!!_0x4b9ce5[_0x5da6cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5da6cc([0x2a]))||!!_0x4b9ce5[_0x5da6cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5da6cc([0x55,0x50,0x4c,0x43])));}function _0x4ce107(){const _0x171f37=_0x5815,_0xfe678d=_0x5b3979[_0x5da6cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfe678d||0x0==_0xfe678d[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54719b}=new URL(window[_0x5da6cc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x171f37(0x7d)]);if(_0xfe678d[_0x5da6cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54719b))return!0x0;const _0x2fe5e6=_0x54719b[_0x5da6cc([0x73,0x70,0x6c,0x69,0x74])](_0x5da6cc([0x2e]));return _0xfe678d[_0x5da6cc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52f880=>_0x52f880[_0x5da6cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5da6cc([0x2a])))[_0x5da6cc([0x6d,0x61,0x70])](_0x5dbd7f=>_0x5dbd7f[_0x5da6cc([0x73,0x70,0x6c,0x69,0x74])](_0x5da6cc([0x2e])))[_0x5da6cc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x376aa6=>_0x376aa6[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2fe5e6[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5da6cc([0x6d,0x61,0x70])](_0xeb4caa=>Array(_0x2fe5e6[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xeb4caa[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5da6cc([0x66,0x69,0x6c,0x6c])](_0xeb4caa[0x0]===_0x5da6cc([0x2a])?_0x5da6cc([0x2a]):'')[_0x5da6cc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xeb4caa))[_0x5da6cc([0x73,0x6f,0x6d,0x65])](_0x5d1c01=>_0x2fe5e6[_0x5da6cc([0x65,0x76,0x65,0x72,0x79])]((_0x4cc461,_0x583a76)=>_0x5d1c01[_0x583a76]===_0x4cc461||_0x5d1c01[_0x583a76]===_0x5da6cc([0x2a])));}function _0x1102d(){return _0x4bcd83&&_0x4f5cd0?new window[(_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfdcc59,_0x15633f)=>{_0x4bcd83[_0x5da6cc([0x74,0x68,0x65,0x6e])](_0xfdcc59,_0x15633f),_0x4f5cd0[_0x5da6cc([0x74,0x68,0x65,0x6e])](_0x150f3e=>{_0x150f3e!=_0x5da6cc([0x56,0x61,0x6c,0x69,0x64])&&_0xfdcc59(_0x150f3e);},_0x15633f);}):_0x4bcd83||_0x4f5cd0||_0x5da6cc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4517a3(_0x2e694f,_0x4566ce){return new window[(_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x90c575=>{if(_0x14c9b2())return _0x90c575(_0x5da6cc([0x56,0x61,0x6c,0x69,0x64]));_0xe7f300(),_0x3029aa[_0x5da6cc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5da6cc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45bde7=!0x1;const _0x381453=_0x9f56f6();function _0x55bd1e(_0x4f1ff9){return!!_0x4f1ff9&&(typeof _0x4f1ff9===_0x5da6cc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f1ff9===_0x5da6cc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f1ff9[_0x5da6cc([0x74,0x68,0x65,0x6e])]===_0x5da6cc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f1ff9[_0x5da6cc([0x63,0x61,0x74,0x63,0x68])]===_0x5da6cc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c445c(_0x259475){_0x49504c(_0x259475)[_0x5da6cc([0x74,0x68,0x65,0x6e])](_0x165bac=>{if(!_0x165bac||_0x165bac[_0x5da6cc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5da6cc([0x6f,0x6b]))return _0x5da6cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x561a6(_0x42b6cf(_0x381453+_0x4566ce))!=_0x165bac[_0x5da6cc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5da6cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5da6cc([0x56,0x61,0x6c,0x69,0x64]);})[_0x5da6cc([0x74,0x68,0x65,0x6e])](_0x586f1d=>(_0x3f3f7a(),_0x586f1d),()=>{const _0x202000=_0x25ce3a();return null==_0x202000?(_0x3f3f7a(),_0x5da6cc([0x56,0x61,0x6c,0x69,0x64])):_0x5da6cc(_0x538566-_0x202000>(0x27d454df^_0x30506e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5da6cc([0x74,0x68,0x65,0x6e])](_0x90c575)[_0x5da6cc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x90c575(_0x5da6cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x206833=0x3ee3e5f^_0x30506e;function _0x3f3f7a(){const _0x3886ec=_0x5da6cc([0x6c,0x6c,0x63,0x74,0x2d])+_0x561a6(_0x42b6cf(_0x2e694f)),_0x58a6c7=_0x21aa7a(_0x561a6(window[_0x5da6cc([0x4d,0x61,0x74,0x68])][_0x5da6cc([0x63,0x65,0x69,0x6c])](_0x538566/_0x206833)));window[_0x5da6cc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5da6cc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3886ec,_0x58a6c7);}function _0x25ce3a(){const _0x28cb1e=_0x5da6cc([0x6c,0x6c,0x63,0x74,0x2d])+_0x561a6(_0x42b6cf(_0x2e694f)),_0x4b2b75=window[_0x5da6cc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5da6cc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28cb1e);return _0x4b2b75?window[_0x5da6cc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21aa7a(_0x4b2b75),0x10)*_0x206833:null;}function _0x49504c(_0x4b674e){return new window[(_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c7167,_0x50d6a1)=>{_0x4b674e[_0x5da6cc([0x74,0x68,0x65,0x6e])](_0x4c7167,_0x50d6a1),window[_0x5da6cc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50d6a1,0x3d9041f^_0x30506e);});}}_0x3029aa[_0x5da6cc([0x6f,0x6e])](_0x5da6cc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5eaadc,_0xe927df)=>{if(_0xe927df[0x0]!=_0x2e694f)return _0x90c575(_0x5da6cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe927df[0x1]={..._0xe927df[0x1],[_0x5da6cc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x381453};},{[_0x5da6cc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5da6cc([0x68,0x69,0x67,0x68])}),_0x3029aa[_0x5da6cc([0x6f,0x6e])](_0x5da6cc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b214b=>{_0x55bd1e(_0x1b214b[_0x5da6cc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45bde7=!0x0,_0x4c445c(_0x1b214b[_0x5da6cc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5da6cc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5da6cc([0x6c,0x6f,0x77])}),_0x153893[_0x5da6cc([0x74,0x68,0x65,0x6e])](()=>{_0x45bde7||_0x90c575(_0x5da6cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14c9b2(){return _0x3029aa[_0x5da6cc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5da6cc([0x76,0x69,0x65,0x77])][_0x5da6cc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5da6cc([0x61,0x75,0x74,0x6f]);}function _0xe7f300(){_0x3029aa[_0x5da6cc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5da6cc([0x76,0x69,0x65,0x77])][_0x5da6cc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5da6cc([0x61,0x75,0x74,0x6f]);}}function _0x4c8443(_0x594696){const _0x29d065=[new window[(_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58a577=>setTimeout(_0x58a577,0x3d1ee13^_0x30506e)),_0x153893[_0x5da6cc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56ebad=>{let _0x23c7dc=0x0;_0x3029aa[_0x5da6cc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5da6cc([0x6f,0x6e])](_0x5da6cc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c6223,_0x32cacc)=>{_0x32cacc[0x0][_0x5da6cc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x23c7dc++,_0x23c7dc==(0x3d8d127^_0x30506e)&&(_0x56ebad(),_0x2c6223[_0x5da6cc([0x6f,0x66,0x66])]());});}))];return window[_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5da6cc([0x72,0x61,0x63,0x65])](_0x29d065)[_0x5da6cc([0x74,0x68,0x65,0x6e])](()=>_0x594696);}async function _0x244169(){await _0x153893,_0x3029aa[_0x5da6cc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5da6cc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf5cc97,_0x3029aa[_0x5da6cc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5da6cc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf5cc97,_0x3029aa[_0x5da6cc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5da6cc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x444935(_0x1ef2e7){const _0x45e93c=_0x230b85();_0x3029aa[_0x45e93c]=_0x5da6cc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ef2e7,_0x1ef2e7!=_0x5da6cc([0x56,0x61,0x6c,0x69,0x64])&&_0x244169();}function _0x230b85(){const _0x56c29b=window[_0x5da6cc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5da6cc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5da6cc([0x6e,0x6f,0x77])]())[_0x5da6cc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5da6cc([0x2e]),'');let _0x37a88a=_0x5da6cc([0x52]);for(let _0x5c51a2=0x0;_0x5c51a2<_0x56c29b[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c51a2+=0x2){let _0xe48c75=window[_0x5da6cc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56c29b[_0x5da6cc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c51a2,_0x5c51a2+0x2));_0xe48c75>=_0x56fda2[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe48c75-=_0x56fda2[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37a88a+=_0x56fda2[_0xe48c75];}return _0x37a88a;}function _0x134c80(){const _0x791a85=_0x2d4d61[_0x5da6cc([0x73,0x70,0x6c,0x69,0x74])](_0x5da6cc([0x2e]));if(0x3!=_0x791a85[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bc763(_0x791a85[0x1]);function _0x5bc763(_0x565992){const _0x51f2f0=_0x2f2034(_0x565992);return _0x51f2f0&&_0x569f62()?_0x51f2f0:null;function _0x569f62(){const _0x1f4679=_0x51f2f0[_0x5da6cc([0x6a,0x74,0x69])],_0x5bfd95=window[_0x5da6cc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f4679[_0x5da6cc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f4679[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x110c55={..._0x51f2f0,[_0x5da6cc([0x6a,0x74,0x69])]:_0x1f4679[_0x5da6cc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f4679[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x110c55[_0x5da6cc([0x76,0x63])],_0x42b6cf(_0x110c55)==_0x5bfd95;}}}async function _0x286ba6(){let _0x32006d=!0x0;try{const _0xc2f34d=_0x2d4d61[_0x5da6cc([0x73,0x70,0x6c,0x69,0x74])](_0x5da6cc([0x2e])),[_0x4f3700,_0x1b5991,_0xe21c01]=_0xc2f34d;return _0x112597(_0x4f3700),await _0x110d80(_0x4f3700,_0x1b5991,_0xe21c01),_0x32006d;}catch{return!0x1;}function _0x112597(_0x6b70a4){const _0x88768c=_0x2f2034(_0x6b70a4);_0x88768c&&_0x88768c[_0x5da6cc([0x61,0x6c,0x67])]==_0x5da6cc([0x45,0x53,0x32,0x35,0x36])||(_0x32006d=!0x1);}async function _0x110d80(_0x305859,_0x1f72bb,_0x53ec9a){const _0x4ba806=window[_0x5da6cc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5da6cc([0x66,0x72,0x6f,0x6d])](_0x4caa0f(_0x53ec9a),_0x485adb=>_0x485adb[_0x5da6cc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37eecc=new window[(_0x5da6cc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5da6cc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x305859+_0x5da6cc([0x2e])+_0x1f72bb),_0x219ac0=window[_0x5da6cc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5da6cc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x219ac0)return;const _0x313ba1=await _0x219ac0[_0x5da6cc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5da6cc([0x6a,0x77,0x6b]),_0x1b46f8,{[_0x5da6cc([0x6e,0x61,0x6d,0x65])]:_0x5da6cc([0x45,0x43,0x44,0x53,0x41]),[_0x5da6cc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5da6cc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5da6cc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x219ac0[_0x5da6cc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5da6cc([0x6e,0x61,0x6d,0x65])]:_0x5da6cc([0x45,0x43,0x44,0x53,0x41]),[_0x5da6cc([0x68,0x61,0x73,0x68])]:{[_0x5da6cc([0x6e,0x61,0x6d,0x65])]:_0x5da6cc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x313ba1,_0x4ba806,_0x37eecc)||(_0x32006d=!0x1);}}function _0x2f2034(_0x1d4bff){return _0x1d4bff[_0x5da6cc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5da6cc([0x65,0x79]))?JSON[_0x5da6cc([0x70,0x61,0x72,0x73,0x65])](_0x4caa0f(_0x1d4bff)):null;}function _0x4caa0f(_0x538bc1){return window[_0x5da6cc([0x61,0x74,0x6f,0x62])](_0x538bc1[_0x5da6cc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5da6cc([0x2b]))[_0x5da6cc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5da6cc([0x2f])));}function _0x42b6cf(_0x4d8499){let _0x541728=0x1505;function _0x6dd20b(_0x45ad7f){for(let _0x223091=0x0;_0x223091<_0x45ad7f[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x223091++){const _0x5284cf=_0x45ad7f[_0x5da6cc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x223091);_0x541728=(_0x541728<<0x5)+_0x541728+_0x5284cf,_0x541728&=_0x541728;}}function _0xd14d43(_0x151a52){Array[_0x5da6cc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x151a52)?_0x151a52[_0x5da6cc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd14d43):_0x151a52&&typeof _0x151a52==_0x5da6cc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5da6cc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x151a52)[_0x5da6cc([0x73,0x6f,0x72,0x74])]()[_0x5da6cc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a814f,_0x5a2c84])=>{_0x6dd20b(_0x2a814f),_0xd14d43(_0x5a2c84);}):_0x6dd20b(window[_0x5da6cc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x151a52));}return _0xd14d43(_0x4d8499),_0x541728>>>0x0;}function _0x561a6(_0x56bd7c){return _0x56bd7c[_0x5da6cc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5da6cc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5da6cc([0x30]));}function _0x21aa7a(_0x3df2f2){return _0x3df2f2[_0x5da6cc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5da6cc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5da6cc([0x6a,0x6f,0x69,0x6e])]('');}function _0xf5cc97(){}function _0x5da6cc(_0x538ab8){const _0x407e05=_0x5815;return _0x538ab8[_0x407e05(0x71)](_0x5ba9d6=>String[_0x407e05(0xaa)](_0x5ba9d6))[_0x407e05(0xa8)]('');}_0x444935(await _0x5ccf1d());}(this);}[_0x4eb55b(0xa2)](){const _0x4881d2=_0x4eb55b,_0x23240d=this[_0x4881d2(0x6a)][_0x4881d2(0x67)][_0x4881d2(0x9b)];_0x23240d[_0x4881d2(0x9d)](_0x4881d2(0xb0))&&_0x23240d[_0x4881d2(0x7e)](_0x4881d2(0xb0),{'allowAttributes':[_0x4881d2(0x94)]}),_0x23240d[_0x4881d2(0x9d)](_0x4881d2(0xa0))&&_0x23240d[_0x4881d2(0x7e)](_0x4881d2(0xa0),{'allowAttributes':[_0x4881d2(0x94)]});}[_0x4eb55b(0x99)](){const _0x3f35bf=_0x4eb55b,_0x2171ca=this[_0x3f35bf(0x6a)];_0x2171ca[_0x3f35bf(0x96)][_0x3f35bf(0x95)](_0x3f35bf(0x8a))[_0x3f35bf(0xb4)]({'model':_0x3f35bf(0x94),'view':_0x3f35bf(0x7c)}),_0x2171ca[_0x3f35bf(0x96)][_0x3f35bf(0x95)](_0x3f35bf(0xa5))[_0x3f35bf(0xb8)]({'model':{'key':_0x3f35bf(0x94),'value':_0x1e38bb=>_0x1e38bb[_0x3f35bf(0x84)](_0x3f35bf(0x7c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x585dee=_0x2171ca[_0x3f35bf(0x83)][_0x3f35bf(0xaf)](_0x3f35bf(0x9f));_0x585dee&&this[_0x3f35bf(0x89)](_0x585dee,_0x3f35bf(0x8d),(_0x3861f9,[_0x2b5ac0,_0x5a480c])=>{const _0x2fb383=_0x3f35bf;_0x2b5ac0[_0x2fb383(0x74)](_0x2fb383(0x94),_0x5a480c);});}[_0x4eb55b(0x92)](){const _0x4c3bba=_0x4eb55b,_0x2ce269=this[_0x4c3bba(0x6a)][_0x4c3bba(0x8b)][_0x4c3bba(0xaf)](_0x4c3bba(0x91))||{},_0x41732b=this[_0x4c3bba(0x6a)][_0x4c3bba(0x8b)][_0x4c3bba(0xaf)](_0x4c3bba(0x8e))||'';this[_0x4c3bba(0xa1)]=_0x5f09bc(_0x465139[_0x4c3bba(0x6e)],_0x4c3bba(0xb2),{..._0x2ce269,'pubkey':_0x41732b,'ctx-name':_0x4c3bba(0xae)+this[_0x4c3bba(0xb1)],'sourceList':'','imgOnly':_0x4c3bba(0x87),'removeCopyright':_0x4c3bba(0x87),'localeName':this[_0x4c3bba(0x6a)][_0x4c3bba(0x77)][_0x4c3bba(0x78)],'externalSourcesEmbedCss':_0x4c3bba(0xa7)}),this[_0x4c3bba(0xa1)][_0x4c3bba(0x85)]=_0x5cc9d3=>{const _0x2a0b32=_0x4c3bba;if(_0x2a0b32(0x90)==_0x5cc9d3)return _0x2a0b32(0x69);},_0x465139[_0x4c3bba(0x6e)][_0x4c3bba(0x9e)][_0x4c3bba(0x81)](this[_0x4c3bba(0xa1)]);}[_0x4eb55b(0x7b)](){const _0x56f1ad=_0x4eb55b;this[_0x56f1ad(0xb5)]=_0x5f09bc(_0x465139[_0x56f1ad(0x6e)],_0x56f1ad(0x8f),{'ctx-name':_0x56f1ad(0xae)+this[_0x56f1ad(0xb1)]}),_0x465139[_0x56f1ad(0x6e)][_0x56f1ad(0x9e)][_0x56f1ad(0x81)](this[_0x56f1ad(0xb5)]);}[_0x4eb55b(0xa6)](){const _0xf65e01=_0x4eb55b,_0x288d1c=this[_0xf65e01(0x6a)][_0xf65e01(0x83)][_0xf65e01(0xaf)](_0xf65e01(0xab));_0x288d1c&&this[_0xf65e01(0x89)](_0x288d1c,_0xf65e01(0xb6),()=>{const _0x506a22=_0xf65e01,_0x38f53b=this[_0x506a22(0x6a)][_0x506a22(0x67)][_0x506a22(0x6e)][_0x506a22(0x75)][_0x506a22(0x68)]();_0x38f53b&&_0x38f53b[_0x506a22(0x84)](_0x506a22(0x94))&&this[_0x506a22(0x6a)][_0x506a22(0x86)][_0x506a22(0x88)][_0x506a22(0xa3)](_0x506a22(0x7a),()=>{const _0x535a36=_0x506a22;_0x118222(this[_0x535a36(0x6a)],_0x38f53b);});});const _0x36c018=this[_0xf65e01(0x6a)][_0xf65e01(0x83)][_0xf65e01(0xaf)](_0xf65e01(0x73));_0x36c018&&this[_0xf65e01(0x89)](_0x36c018,_0xf65e01(0xb6),()=>{const _0x484ab8=_0xf65e01,_0x19d2f9=this[_0x484ab8(0x6a)][_0x484ab8(0x67)][_0x484ab8(0x6e)][_0x484ab8(0x75)][_0x484ab8(0x68)]();_0x19d2f9&&_0x19d2f9[_0x484ab8(0x84)](_0x484ab8(0x94))&&this[_0x484ab8(0x6a)][_0x484ab8(0x86)][_0x484ab8(0x88)][_0x484ab8(0xa3)](_0x484ab8(0x7a),()=>{const _0x4ad8e8=_0x484ab8;_0x118222(this[_0x4ad8e8(0x6a)],_0x19d2f9);});});}}
|
|
23
|
+
function _0x2271(_0x560894,_0x11a170){const _0x544d2b=_0x544d();return _0x2271=function(_0x2271cb,_0xc518de){_0x2271cb=_0x2271cb-0x7c;let _0x14b932=_0x544d2b[_0x2271cb];return _0x14b932;},_0x2271(_0x560894,_0x11a170);}const _0x38cce1=_0x2271;function _0x544d(){const _0x506039=['attributeToAttribute','_initConfig','1571928bJbEVm','editor','href','iconHrefResolver','isRegistered','UploadcareEditing','document','contentLanguage','getSelectedElement','config','schema','add','for','uploadcareImageId','pluginName','6WKgeko','imageBlock','once','destroy','render','_ctxElement','_initCtx','imageInline','remove','selection','ucContextId','1881540jxpGSZ','cleanupImage','776664UEhwse','uploadcareImageReplace','true','ctxElement','#uc-icon-arrow-down','288820DRzzOG','uploadcare','_initSchema','insertImage','closeMax','getAttribute','view','_initConversion','replaceImageSource','1710430qjRAbl','appendChild','join','uc-upload-ctx-provider','PictureEditing','requires','uploadcare.pubkey','model','conversion','isPremiumPlugin','commands','execute','uploadcare.uploader','input[uploadcare-file-input]','map','body','_configElement','downcast','get','init','configElement','_initImageProcessingIndicator','editing','uploader-','fromCharCode','10447230mbctgN','locale','querySelector','9DTeImO','data-uc-image-id','30510qyhDqg','removeAttribute','uc-config','extend','upcast','afterInit','12adkCzh','listenTo','isOfficialPlugin','elementToAttribute','\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'];_0x544d=function(){return _0x506039;};return _0x544d();}(function(_0x2946d4,_0x39c721){const _0x3af608=_0x2271,_0x296d24=_0x2946d4();while(!![]){try{const _0x5868ab=parseInt(_0x3af608(0xc4))/0x1*(parseInt(_0x3af608(0xb2))/0x2)+-parseInt(_0x3af608(0x96))/0x3+-parseInt(_0x3af608(0xbd))/0x4+-parseInt(_0x3af608(0xcd))/0x5*(parseInt(_0x3af608(0x9c))/0x6)+-parseInt(_0x3af608(0xbf))/0x7+-parseInt(_0x3af608(0xa3))/0x8+parseInt(_0x3af608(0x94))/0x9*(parseInt(_0x3af608(0x91))/0xa);if(_0x5868ab===_0x39c721)break;else _0x296d24['push'](_0x296d24['shift']());}catch(_0x49452e){_0x296d24['push'](_0x296d24['shift']());}}}(_0x544d,0x6b2e5));import{Plugin as _0x37dd4f}from'ckeditor5/src/core.js';import{Dialog as _0x51e542}from'ckeditor5/src/ui.js';import{createElement as _0x6647f8,global as _0xff2a6a,uid as _0x5c945d}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x30461f}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5758e0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3d7732}from'./utils/editingutils.js';export class UploadcareEditing extends _0x37dd4f{[_0x38cce1(0x88)]=null;[_0x38cce1(0xb7)]=null;static get[_0x38cce1(0xb1)](){const _0x590867=_0x38cce1;return _0x590867(0xa8);}static get[_0x38cce1(0x7d)](){const _0x3c0256=_0x38cce1;return[_0x3c0256(0x7c),_0x5758e0,_0x51e542];}static get[_0x38cce1(0x9e)](){return!0x0;}static get[_0x38cce1(0x81)](){return!0x0;}[_0x38cce1(0xbc)];get[_0x38cce1(0x8c)](){const _0xae4779=_0x38cce1;return this[_0xae4779(0x88)];}get[_0x38cce1(0xc2)](){const _0xb4608e=_0x38cce1;return this[_0xb4608e(0xb7)];}constructor(_0x165919){const _0x1dece8=_0x38cce1;super(_0x165919),this[_0x1dece8(0xbc)]=_0x5c945d();}[_0x38cce1(0x8b)](){const _0x5b9b91=_0x38cce1,_0x5ea647=this[_0x5b9b91(0xa4)];_0x5ea647[_0x5b9b91(0x82)][_0x5b9b91(0xae)](_0x5b9b91(0xc5),new _0x30461f(_0x5ea647));}[_0x38cce1(0x9b)](){const _0x3d4479=_0x38cce1;this[_0x3d4479(0xc6)](),this[_0x3d4479(0xcb)](),this[_0x3d4479(0xa2)](),this[_0x3d4479(0xb8)](),this[_0x3d4479(0x8d)](),this[_0x3d4479(0x9d)](this[_0x3d4479(0xa4)],_0x3d4479(0xb5),()=>{const _0x300719=_0x3d4479;this[_0x300719(0x88)]&&(this[_0x300719(0x88)][_0x300719(0xba)](),this[_0x300719(0x88)]=null),this[_0x300719(0xb7)]&&(this[_0x300719(0xb7)][_0x300719(0xba)](),this[_0x300719(0xb7)]=null);const _0x45cfd8=_0xff2a6a[_0x300719(0xa9)][_0x300719(0x93)](_0x300719(0x85));_0x45cfd8&&_0x45cfd8[_0x300719(0xba)]();}),async function(_0x7ccfee){const _0x2fdc60=_0x13282e([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]),_0x387b4e=0x3d8d0df,_0x3b689d=0x3dfa4bf^_0x387b4e,_0x2fb183=window[_0x13282e([0x44,0x61,0x74,0x65])][_0x13282e([0x6e,0x6f,0x77])](),_0x485608=_0x7ccfee[_0x13282e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x144447=new window[(_0x13282e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25f2d6=>{_0x485608[_0x13282e([0x6f,0x6e,0x63,0x65])](_0x13282e([0x72,0x65,0x61,0x64,0x79]),_0x25f2d6);}),_0x36fa00={[_0x13282e([0x6b,0x74,0x79])]:_0x13282e([0x45,0x43]),[_0x13282e([0x75,0x73,0x65])]:_0x13282e([0x73,0x69,0x67]),[_0x13282e([0x63,0x72,0x76])]:_0x13282e([0x50,0x2d,0x32,0x35,0x36]),[_0x13282e([0x78])]:_0x13282e([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]),[_0x13282e([0x79])]:_0x13282e([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]),[_0x13282e([0x61,0x6c,0x67])]:_0x13282e([0x45,0x53,0x32,0x35,0x36])},_0x1c5352=_0x485608[_0x13282e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13282e([0x67,0x65,0x74])](_0x13282e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a386e(){let _0x1383fc,_0x437da2=null,_0x38ed57=null;try{if(_0x1c5352==_0x13282e([0x47,0x50,0x4c]))return _0x13282e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1383fc=_0x4b80a2(),!_0x1383fc)return _0x13282e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1383fc[_0x13282e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38ed57=_0xa43e68(_0x1383fc[_0x13282e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1383fc[_0x13282e([0x6a,0x74,0x69])])),await _0x53a2d8()?_0x2536f3()?_0x3a1410()?_0x13282e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b5d9e()?(_0x1383fc[_0x13282e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13282e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x437da2=_0x255b9e(_0x13282e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1383fc[_0x13282e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13282e([0x74,0x72,0x69,0x61,0x6c])&&(_0x437da2=_0x255b9e(_0x13282e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x235d6f()):_0x13282e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13282e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13282e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x13282e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a1410(){const _0x487882=[_0x13282e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13282e([0x74,0x72,0x69,0x61,0x6c])][_0x13282e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1383fc[_0x13282e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fb183/0x3e8:0xe10*_0x3b689d;return _0x1383fc[_0x13282e([0x65,0x78,0x70])]<_0x487882;}function _0x2536f3(){const _0x428ec6=_0x1383fc[_0x13282e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x428ec6&&(!!_0x428ec6[_0x13282e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13282e([0x2a]))||!!_0x428ec6[_0x13282e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13282e([0x55,0x50,0x4c,0x43])));}function _0x5b5d9e(){const _0x15173b=_0x2271,_0x2a2ab4=_0x1383fc[_0x13282e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2a2ab4||0x0==_0x2a2ab4[_0x13282e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50def6}=new URL(window[_0x13282e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x15173b(0xa5)]);if(_0x2a2ab4[_0x13282e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50def6))return!0x0;const _0x1efcfe=_0x50def6[_0x13282e([0x73,0x70,0x6c,0x69,0x74])](_0x13282e([0x2e]));return _0x2a2ab4[_0x13282e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32ea86=>_0x32ea86[_0x13282e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13282e([0x2a])))[_0x13282e([0x6d,0x61,0x70])](_0x2e4fb0=>_0x2e4fb0[_0x13282e([0x73,0x70,0x6c,0x69,0x74])](_0x13282e([0x2e])))[_0x13282e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x385f3c=>_0x385f3c[_0x13282e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1efcfe[_0x13282e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13282e([0x6d,0x61,0x70])](_0x11d9ee=>Array(_0x1efcfe[_0x13282e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11d9ee[_0x13282e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13282e([0x66,0x69,0x6c,0x6c])](_0x11d9ee[0x0]===_0x13282e([0x2a])?_0x13282e([0x2a]):'')[_0x13282e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11d9ee))[_0x13282e([0x73,0x6f,0x6d,0x65])](_0x570ebd=>_0x1efcfe[_0x13282e([0x65,0x76,0x65,0x72,0x79])]((_0x514ea5,_0x21608d)=>_0x570ebd[_0x21608d]===_0x514ea5||_0x570ebd[_0x21608d]===_0x13282e([0x2a])));}function _0x235d6f(){return _0x437da2&&_0x38ed57?new window[(_0x13282e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b244c,_0x4e6c7e)=>{_0x437da2[_0x13282e([0x74,0x68,0x65,0x6e])](_0x3b244c,_0x4e6c7e),_0x38ed57[_0x13282e([0x74,0x68,0x65,0x6e])](_0x36cf14=>{_0x36cf14!=_0x13282e([0x56,0x61,0x6c,0x69,0x64])&&_0x3b244c(_0x36cf14);},_0x4e6c7e);}):_0x437da2||_0x38ed57||_0x13282e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa43e68(_0x57b8ca,_0x2e451e){return new window[(_0x13282e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x279424=>{if(_0x1c4797())return _0x279424(_0x13282e([0x56,0x61,0x6c,0x69,0x64]));_0x311ede(),_0x485608[_0x13282e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13282e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52752c=!0x1;const _0x36e0ec=_0x5c945d();function _0x1a444a(_0x62e8cc){return!!_0x62e8cc&&(typeof _0x62e8cc===_0x13282e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x62e8cc===_0x13282e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x62e8cc[_0x13282e([0x74,0x68,0x65,0x6e])]===_0x13282e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x62e8cc[_0x13282e([0x63,0x61,0x74,0x63,0x68])]===_0x13282e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c7f56(_0x1d57f0){_0xbb9bcb(_0x1d57f0)[_0x13282e([0x74,0x68,0x65,0x6e])](_0x5b8f99=>{if(!_0x5b8f99||_0x5b8f99[_0x13282e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13282e([0x6f,0x6b]))return _0x13282e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x582a6d(_0x4f3b28(_0x36e0ec+_0x2e451e))!=_0x5b8f99[_0x13282e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13282e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13282e([0x56,0x61,0x6c,0x69,0x64]);})[_0x13282e([0x74,0x68,0x65,0x6e])](_0x2f5477=>(_0x530119(),_0x2f5477),()=>{const _0x4c94b1=_0x30acf7();return null==_0x4c94b1?(_0x530119(),_0x13282e([0x56,0x61,0x6c,0x69,0x64])):_0x13282e(_0x2fb183-_0x4c94b1>(0x27d454df^_0x387b4e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13282e([0x74,0x68,0x65,0x6e])](_0x279424)[_0x13282e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x279424(_0x13282e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2334a2=0x3ee3e5f^_0x387b4e;function _0x530119(){const _0x283d9f=_0x13282e([0x6c,0x6c,0x63,0x74,0x2d])+_0x582a6d(_0x4f3b28(_0x57b8ca)),_0xec6518=_0x580762(_0x582a6d(window[_0x13282e([0x4d,0x61,0x74,0x68])][_0x13282e([0x63,0x65,0x69,0x6c])](_0x2fb183/_0x2334a2)));window[_0x13282e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13282e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x283d9f,_0xec6518);}function _0x30acf7(){const _0x375826=_0x13282e([0x6c,0x6c,0x63,0x74,0x2d])+_0x582a6d(_0x4f3b28(_0x57b8ca)),_0x4a8c40=window[_0x13282e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13282e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x375826);return _0x4a8c40?window[_0x13282e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x580762(_0x4a8c40),0x10)*_0x2334a2:null;}function _0xbb9bcb(_0x4d63e9){return new window[(_0x13282e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30264d,_0x268d2f)=>{_0x4d63e9[_0x13282e([0x74,0x68,0x65,0x6e])](_0x30264d,_0x268d2f),window[_0x13282e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x268d2f,0x3d9041f^_0x387b4e);});}}_0x485608[_0x13282e([0x6f,0x6e])](_0x13282e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x231a03,_0x37d182)=>{if(_0x37d182[0x0]!=_0x57b8ca)return _0x279424(_0x13282e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37d182[0x1]={..._0x37d182[0x1],[_0x13282e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36e0ec};},{[_0x13282e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13282e([0x68,0x69,0x67,0x68])}),_0x485608[_0x13282e([0x6f,0x6e])](_0x13282e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x26c1ba=>{_0x1a444a(_0x26c1ba[_0x13282e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52752c=!0x0,_0x1c7f56(_0x26c1ba[_0x13282e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13282e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13282e([0x6c,0x6f,0x77])}),_0x144447[_0x13282e([0x74,0x68,0x65,0x6e])](()=>{_0x52752c||_0x279424(_0x13282e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c4797(){return _0x485608[_0x13282e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13282e([0x76,0x69,0x65,0x77])][_0x13282e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13282e([0x61,0x75,0x74,0x6f]);}function _0x311ede(){_0x485608[_0x13282e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13282e([0x76,0x69,0x65,0x77])][_0x13282e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13282e([0x61,0x75,0x74,0x6f]);}}function _0x255b9e(_0x464ecd){const _0x5ce94b=[new window[(_0x13282e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29fb85=>setTimeout(_0x29fb85,0x3d1ee13^_0x387b4e)),_0x144447[_0x13282e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13282e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58cc30=>{let _0x3a6a46=0x0;_0x485608[_0x13282e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13282e([0x6f,0x6e])](_0x13282e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28d8f5,_0x4593be)=>{_0x4593be[0x0][_0x13282e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a6a46++,_0x3a6a46==(0x3d8d127^_0x387b4e)&&(_0x58cc30(),_0x28d8f5[_0x13282e([0x6f,0x66,0x66])]());});}))];return window[_0x13282e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13282e([0x72,0x61,0x63,0x65])](_0x5ce94b)[_0x13282e([0x74,0x68,0x65,0x6e])](()=>_0x464ecd);}async function _0x59ccc3(){await _0x144447,_0x485608[_0x13282e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13282e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x40d770,_0x485608[_0x13282e([0x6d,0x6f,0x64,0x65,0x6c])][_0x13282e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x40d770,_0x485608[_0x13282e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13282e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5dd3ef(_0x3ba20b){const _0x2e0866=_0x2767fb();_0x485608[_0x2e0866]=_0x13282e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ba20b,_0x3ba20b!=_0x13282e([0x56,0x61,0x6c,0x69,0x64])&&_0x59ccc3();}function _0x2767fb(){const _0x52b5a1=window[_0x13282e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13282e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13282e([0x6e,0x6f,0x77])]())[_0x13282e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13282e([0x2e]),'');let _0x530e5d=_0x13282e([0x52]);for(let _0x57cd21=0x0;_0x57cd21<_0x52b5a1[_0x13282e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57cd21+=0x2){let _0x6688f5=window[_0x13282e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52b5a1[_0x13282e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57cd21,_0x57cd21+0x2));_0x6688f5>=_0x2fdc60[_0x13282e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x6688f5-=_0x2fdc60[_0x13282e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x530e5d+=_0x2fdc60[_0x6688f5];}return _0x530e5d;}function _0x4b80a2(){const _0x12fe8a=_0x1c5352[_0x13282e([0x73,0x70,0x6c,0x69,0x74])](_0x13282e([0x2e]));if(0x3!=_0x12fe8a[_0x13282e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x403968(_0x12fe8a[0x1]);function _0x403968(_0x24c729){const _0x197491=_0x30839d(_0x24c729);return _0x197491&&_0x343d15()?_0x197491:null;function _0x343d15(){const _0x257c07=_0x197491[_0x13282e([0x6a,0x74,0x69])],_0x5513e0=window[_0x13282e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x257c07[_0x13282e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x257c07[_0x13282e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43ff85={..._0x197491,[_0x13282e([0x6a,0x74,0x69])]:_0x257c07[_0x13282e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x257c07[_0x13282e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43ff85[_0x13282e([0x76,0x63])],_0x4f3b28(_0x43ff85)==_0x5513e0;}}}async function _0x53a2d8(){let _0x484e1b=!0x0;try{const _0x1197b3=_0x1c5352[_0x13282e([0x73,0x70,0x6c,0x69,0x74])](_0x13282e([0x2e])),[_0x2ab336,_0x4e9ece,_0x56b0c4]=_0x1197b3;return _0x3432ac(_0x2ab336),await _0x5cb469(_0x2ab336,_0x4e9ece,_0x56b0c4),_0x484e1b;}catch{return!0x1;}function _0x3432ac(_0x5b2367){const _0x116f7c=_0x30839d(_0x5b2367);_0x116f7c&&_0x116f7c[_0x13282e([0x61,0x6c,0x67])]==_0x13282e([0x45,0x53,0x32,0x35,0x36])||(_0x484e1b=!0x1);}async function _0x5cb469(_0x25b357,_0x2f84aa,_0x35e47b){const _0x55b672=window[_0x13282e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13282e([0x66,0x72,0x6f,0x6d])](_0x409b24(_0x35e47b),_0x184fa1=>_0x184fa1[_0x13282e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x51cb2f=new window[(_0x13282e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13282e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25b357+_0x13282e([0x2e])+_0x2f84aa),_0x3a28c7=window[_0x13282e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13282e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a28c7)return;const _0x41cee8=await _0x3a28c7[_0x13282e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13282e([0x6a,0x77,0x6b]),_0x36fa00,{[_0x13282e([0x6e,0x61,0x6d,0x65])]:_0x13282e([0x45,0x43,0x44,0x53,0x41]),[_0x13282e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13282e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13282e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a28c7[_0x13282e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13282e([0x6e,0x61,0x6d,0x65])]:_0x13282e([0x45,0x43,0x44,0x53,0x41]),[_0x13282e([0x68,0x61,0x73,0x68])]:{[_0x13282e([0x6e,0x61,0x6d,0x65])]:_0x13282e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x41cee8,_0x55b672,_0x51cb2f)||(_0x484e1b=!0x1);}}function _0x30839d(_0x3a9f5a){return _0x3a9f5a[_0x13282e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13282e([0x65,0x79]))?JSON[_0x13282e([0x70,0x61,0x72,0x73,0x65])](_0x409b24(_0x3a9f5a)):null;}function _0x409b24(_0x40f22d){return window[_0x13282e([0x61,0x74,0x6f,0x62])](_0x40f22d[_0x13282e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13282e([0x2b]))[_0x13282e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13282e([0x2f])));}function _0x4f3b28(_0x49040c){let _0xb89063=0x1505;function _0x5f00d7(_0x17c4cc){for(let _0x1b2caf=0x0;_0x1b2caf<_0x17c4cc[_0x13282e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b2caf++){const _0x4c8f6b=_0x17c4cc[_0x13282e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b2caf);_0xb89063=(_0xb89063<<0x5)+_0xb89063+_0x4c8f6b,_0xb89063&=_0xb89063;}}function _0x52eec6(_0x4039bd){Array[_0x13282e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4039bd)?_0x4039bd[_0x13282e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52eec6):_0x4039bd&&typeof _0x4039bd==_0x13282e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13282e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4039bd)[_0x13282e([0x73,0x6f,0x72,0x74])]()[_0x13282e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2418b2,_0x4cce72])=>{_0x5f00d7(_0x2418b2),_0x52eec6(_0x4cce72);}):_0x5f00d7(window[_0x13282e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4039bd));}return _0x52eec6(_0x49040c),_0xb89063>>>0x0;}function _0x582a6d(_0x5b27d1){return _0x5b27d1[_0x13282e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13282e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13282e([0x30]));}function _0x580762(_0x594d67){return _0x594d67[_0x13282e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13282e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13282e([0x6a,0x6f,0x69,0x6e])]('');}function _0x40d770(){}function _0x13282e(_0x5c435f){const _0x24b123=_0x2271;return _0x5c435f[_0x24b123(0x86)](_0x456525=>String[_0x24b123(0x90)](_0x456525))[_0x24b123(0xcf)]('');}_0x5dd3ef(await _0x4a386e());}(this);}[_0x38cce1(0xc6)](){const _0x2a3649=_0x38cce1,_0x51c9c7=this[_0x2a3649(0xa4)][_0x2a3649(0x7f)][_0x2a3649(0xad)];_0x51c9c7[_0x2a3649(0xa7)](_0x2a3649(0xb3))&&_0x51c9c7[_0x2a3649(0x99)](_0x2a3649(0xb3),{'allowAttributes':[_0x2a3649(0xb0)]}),_0x51c9c7[_0x2a3649(0xa7)](_0x2a3649(0xb9))&&_0x51c9c7[_0x2a3649(0x99)](_0x2a3649(0xb9),{'allowAttributes':[_0x2a3649(0xb0)]});}[_0x38cce1(0xcb)](){const _0xaa7c01=_0x38cce1,_0x4ecdf9=this[_0xaa7c01(0xa4)];_0x4ecdf9[_0xaa7c01(0x80)][_0xaa7c01(0xaf)](_0xaa7c01(0x89))[_0xaa7c01(0xa1)]({'model':_0xaa7c01(0xb0),'view':_0xaa7c01(0x95)}),_0x4ecdf9[_0xaa7c01(0x80)][_0xaa7c01(0xaf)](_0xaa7c01(0x9a))[_0xaa7c01(0x9f)]({'model':{'key':_0xaa7c01(0xb0),'value':_0x3ce71d=>_0x3ce71d[_0xaa7c01(0xc9)](_0xaa7c01(0x95))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x122035=_0x4ecdf9[_0xaa7c01(0x82)][_0xaa7c01(0x8a)](_0xaa7c01(0xcc));_0x122035&&this[_0xaa7c01(0x9d)](_0x122035,_0xaa7c01(0xbe),(_0x464485,[_0x1043f5,_0x1d2531])=>{const _0x2b2b6a=_0xaa7c01;_0x1043f5[_0x2b2b6a(0x97)](_0x2b2b6a(0xb0),_0x1d2531);});}[_0x38cce1(0xa2)](){const _0x10b805=_0x38cce1,_0x4c17c0=this[_0x10b805(0xa4)][_0x10b805(0xac)][_0x10b805(0x8a)](_0x10b805(0x84))||{},_0x13b19d=this[_0x10b805(0xa4)][_0x10b805(0xac)][_0x10b805(0x8a)](_0x10b805(0x7e))||'';this[_0x10b805(0x88)]=_0x6647f8(_0xff2a6a[_0x10b805(0xa9)],_0x10b805(0x98),{..._0x4c17c0,'pubkey':_0x13b19d,'ctx-name':_0x10b805(0x8f)+this[_0x10b805(0xbc)],'sourceList':'','imgOnly':_0x10b805(0xc1),'removeCopyright':_0x10b805(0xc1),'localeName':this[_0x10b805(0xa4)][_0x10b805(0x92)][_0x10b805(0xaa)],'externalSourcesEmbedCss':_0x10b805(0xa0)}),this[_0x10b805(0x88)][_0x10b805(0xa6)]=_0x2a47f0=>{const _0x540f9f=_0x10b805;if(_0x540f9f(0xc8)==_0x2a47f0)return _0x540f9f(0xc3);},_0xff2a6a[_0x10b805(0xa9)][_0x10b805(0x87)][_0x10b805(0xce)](this[_0x10b805(0x88)]);}[_0x38cce1(0xb8)](){const _0x5bde31=_0x38cce1;this[_0x5bde31(0xb7)]=_0x6647f8(_0xff2a6a[_0x5bde31(0xa9)],_0x5bde31(0xd0),{'ctx-name':_0x5bde31(0x8f)+this[_0x5bde31(0xbc)]}),_0xff2a6a[_0x5bde31(0xa9)][_0x5bde31(0x87)][_0x5bde31(0xce)](this[_0x5bde31(0xb7)]);}[_0x38cce1(0x8d)](){const _0x113e1d=_0x38cce1,_0x2de2f5=this[_0x113e1d(0xa4)][_0x113e1d(0x82)][_0x113e1d(0x8a)](_0x113e1d(0xc7));_0x2de2f5&&this[_0x113e1d(0x9d)](_0x2de2f5,_0x113e1d(0x83),()=>{const _0x32da36=_0x113e1d,_0x48d453=this[_0x32da36(0xa4)][_0x32da36(0x7f)][_0x32da36(0xa9)][_0x32da36(0xbb)][_0x32da36(0xab)]();_0x48d453&&_0x48d453[_0x32da36(0xc9)](_0x32da36(0xb0))&&this[_0x32da36(0xa4)][_0x32da36(0x8e)][_0x32da36(0xca)][_0x32da36(0xb4)](_0x32da36(0xb6),()=>{const _0x36c72b=_0x32da36;_0x3d7732(this[_0x36c72b(0xa4)],_0x48d453);});});const _0x53e770=this[_0x113e1d(0xa4)][_0x113e1d(0x82)][_0x113e1d(0x8a)](_0x113e1d(0xc0));_0x53e770&&this[_0x113e1d(0x9d)](_0x53e770,_0x113e1d(0x83),()=>{const _0x2a4d78=_0x113e1d,_0x1114f5=this[_0x2a4d78(0xa4)][_0x2a4d78(0x7f)][_0x2a4d78(0xa9)][_0x2a4d78(0xbb)][_0x2a4d78(0xab)]();_0x1114f5&&_0x1114f5[_0x2a4d78(0xc9)](_0x2a4d78(0xb0))&&this[_0x2a4d78(0xa4)][_0x2a4d78(0x8e)][_0x2a4d78(0xca)][_0x2a4d78(0xb4)](_0x2a4d78(0xb6),()=>{const _0x2fdaeb=_0x2a4d78;_0x3d7732(this[_0x2fdaeb(0xa4)],_0x1114f5);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x222711,ObservableMixin as _0x44ce49}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x137b8b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x154760}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3d32df}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x5f3aed}from'../../utils/uploadutils.js';import{getImageUrls as _0x57f6e4,getImageDimension as _0x58bff5}from'../../utils/editingutils.js';import{isAncestor as _0x2948c1}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x44ce49(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x8e46ed,_0x3b9d9e,_0x50dd9d){super(),this['_editor']=_0x8e46ed,this['_dialog']=_0x3b9d9e,this['_imageElement']=_0x50dd9d,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 _0x2276de=this['_imageElement'],_0x590cf5=_0x2276de['getAttribute']('uploadcareImageId'),_0x1b953c=_0x2276de['getAttribute']('src');if(_0x590cf5)await this['_loadImageInfo'](_0x590cf5,_0x1b953c);else{if(this['_imageCache']['has'](_0x1b953c)){const _0x41825d=this['_imageCache']['get'](_0x1b953c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x41825d['url'],this['imageDimension']=_0x41825d['dimension'],this['imageId']=_0x41825d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x40143c}=this['_editor'],t=_0x40143c['t'],_0x44b9dc=new _0x3d32df(_0x40143c,this['imageStatus'],this['_attributes']);_0x44b9dc['bind']('status')['to'](this,'imageStatus'),_0x44b9dc['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x44b9dc['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x44b9dc['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x44b9dc,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x154760,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x44b9dc,'position':_0x137b8b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x44b9dc['focus']();},'onHide':()=>{_0x44b9dc['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3afec8=>!_0x2948c1(_0x3afec8,_0x44b9dc['element'])}});}['_loadImageInfo'](_0x40c2a3,_0x3012f1){return _0x5f3aed['getInfo'](_0x40c2a3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x357ce3=>{const {width:_0x1f3a22,height:_0x5b14e6}=_0x357ce3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3012f1,this['imageDimension']={'width':_0x1f3a22,'height':_0x5b14e6},this['imageId']=_0x40c2a3;})['catch'](_0x33b576=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x33b576['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x373683,_0xa1d43e){return this['_getImageAsFile'](_0x373683)['then'](_0x2be272=>_0x5f3aed['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':_0xa1d43e['signal'],'file':_0x2be272,'onProgress':_0x2cc1fe=>{_0x2cc1fe&&_0x2cc1fe['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2cc1fe['value']));}}))['then'](_0x21eed2=>{const {width:_0x5eb208,height:_0x4dc5a9}=_0x21eed2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x21eed2['cdnUrl'],this['imageDimension']={'width':_0x5eb208,'height':_0x4dc5a9},this['imageId']=_0x21eed2['uuid'],this['imageUploadProgress']=null;const _0x49d21b=_0x373683['getAttribute']('src');this['_imageCache']['set'](_0x49d21b,{'id':_0x21eed2['uuid'],'url':_0x21eed2['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1d1872=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1d1872['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x39b80e,_0x292fbe){_0x39b80e['on']('apply',(_0x2ada14,_0x5eda23)=>{this['_replaceImage'](_0x292fbe,_0x5eda23['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x39b80e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x39b80e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x11419a,_0x56dfc8,_0x4fabbb){const _0x420fb5=this['_editor'],{width:_0x5062cd,height:_0x3eaa37}=_0x58bff5(_0x56dfc8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x30246c,imageSources:_0x16b259}=_0x57f6e4(_0x56dfc8,_0x5062cd);_0x420fb5['model']['change'](_0xbb8912=>{if('$graveyard'===_0x11419a['root']['rootName']){_0x420fb5['execute']('insertImage',{'imageType':_0x11419a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x11419a['getAttributes']()),'uploadcareImageId':_0x4fabbb,'src':_0x30246c,'sources':_0x16b259,'width':_0x5062cd,'height':_0x3eaa37}});const _0x3145dd=_0x11419a['getChildren']();_0x11419a=_0x420fb5['model']['document']['selection']['getSelectedElement']();for(const _0x1ab1bf of _0x3145dd)_0xbb8912['append'](_0xbb8912['cloneElement'](_0x1ab1bf),_0x11419a);}else _0xbb8912['setSelection'](_0x11419a,'on'),_0x420fb5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x11419a['getAttributes']()),'uploadcareImageId':_0x4fabbb,'src':_0x30246c,'sources':_0x16b259,'width':_0x5062cd,'height':_0x3eaa37},_0x11419a);_0xbb8912['setSelection'](_0x11419a,'on');});}async['_getImageAsFile'](_0x351076){const _0x307c6e=_0x222711['window'],_0x4e917f=_0x222711['document']['location']['href'],_0x1b5e7b=new _0x307c6e['URL'](_0x351076['getAttribute']('src'),_0x4e917f);if('data:'===_0x1b5e7b['protocol']){const _0x2c26ba=_0x1b5e7b['href']['split'](','),_0x4012b8=_0x2c26ba[0x0]['match'](/:(.*?);/)[0x1],_0x15484c=_0x4012b8['split']('/')[0x1],_0x410869=_0x307c6e['atob'](_0x2c26ba[_0x2c26ba['length']-0x1]);let _0xc18dce=_0x410869['length'];const _0xb42bbe=new _0x307c6e['Uint8Array'](_0xc18dce);for(;_0xc18dce--;)_0xb42bbe[_0xc18dce]=_0x410869['charCodeAt'](_0xc18dce);return new _0x307c6e['File']([_0xb42bbe],'image.'+_0x15484c,{'type':_0x4012b8});}const _0x5c81bc=_0x1b5e7b['href']['split']('/'),_0x5520a7=_0x5c81bc[_0x5c81bc['length']-0x1],_0x6e0a4a=_0x5520a7['split']('.')[0x1];return _0x307c6e['fetch'](_0x1b5e7b['href'])['then'](_0xba9b9a=>_0xba9b9a['clone']()['blob']())['then'](_0x2e38dd=>new _0x307c6e['File']([_0x2e38dd],_0x5520a7,{'type':'image/'+_0x6e0a4a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3412b5,_0x1333dd){const _0x22a536=_0x2d91,_0x111d24=_0x3412b5();while(!![]){try{const _0x10fd58=parseInt(_0x22a536(0x139))/0x1+-parseInt(_0x22a536(0x138))/0x2*(parseInt(_0x22a536(0x13d))/0x3)+parseInt(_0x22a536(0x13c))/0x4+-parseInt(_0x22a536(0x13f))/0x5+parseInt(_0x22a536(0x13e))/0x6+-parseInt(_0x22a536(0x140))/0x7*(parseInt(_0x22a536(0x143))/0x8)+parseInt(_0x22a536(0x136))/0x9;if(_0x10fd58===_0x1333dd)break;else _0x111d24['push'](_0x111d24['shift']());}catch(_0x4bedee){_0x111d24['push'](_0x111d24['shift']());}}}(_0x57f8,0x4ed69));import{View as _0x516151}from'ckeditor5/src/ui.js';function _0x2d91(_0x1b875d,_0x276f60){const _0x57f8fb=_0x57f8();return _0x2d91=function(_0x2d912e,_0x48f79f){_0x2d912e=_0x2d912e-0x135;let _0x2a59dc=_0x57f8fb[_0x2d912e];return _0x2a59dc;},_0x2d91(_0x1b875d,_0x276f60);}export class UploadcareImageEditFormEditingView extends _0x516151{constructor(_0x1525c4,_0x2fe460){const _0x5211a7=_0x2d91;super(_0x1525c4);const _0x27fded=this[_0x5211a7(0x13a)];this[_0x5211a7(0x141)](_0x5211a7(0x142),''),this[_0x5211a7(0x13b)]({'tag':_0x5211a7(0x144),'attributes':{..._0x2fe460,'class':[_0x5211a7(0x135),_0x5211a7(0x137)],'ctx-name':_0x5211a7(0x145),'cdn-url':_0x27fded['to'](_0x5211a7(0x142))}});}}function _0x57f8(){const _0xf7c2c7=['974186mFFrTM','394340Ahjcam','bindTemplate','setTemplate','1871936xnBFTH','3zhKVZm','388080PDjSGn','1510195zLWnOP','231196vWciNE','set','imageSrc','24MYnjVS','uc-cloud-image-editor','image-edit','uc-light','2557197CyVOcR','ck-uploadcare-theme'];_0x57f8=function(){return _0xf7c2c7;};return _0x57f8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x1a7b2d}from'ckeditor5/src/icons.js';import{ButtonView as _0x3cd7a0,IconView as _0x2b25f3,View as _0x1496da}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1496da{constructor(_0x3cf2fb){super(_0x3cf2fb);const t=_0x3cf2fb['t'];this['set']('errorType',null);const _0x483a68=new _0x3cd7a0(_0x3cf2fb);_0x483a68['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x483a68['withText']=!0x0,_0x483a68['class']='ck-button-action',_0x483a68['on']('execute',()=>{this['fire']('retry');}),_0x483a68['bind']('isVisible')['to'](this,'errorType',_0x4f23d0=>'NotFound'!==_0x4f23d0);const _0x355bbc=new _0x2b25f3();_0x355bbc['content']=_0x1a7b2d,_0x355bbc['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5693ac=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':[_0x355bbc,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5693ac['to']('errorType',_0x9749b6=>t('NotFound'!==_0x9749b6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x483a68]},{'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 _0x536b88,View as _0x4286b7}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4286b7{constructor(_0x333af2){super(_0x333af2);const t=_0x333af2['t'],_0x2101a8=this['bindTemplate'],_0x421fe9=new _0x536b88();_0x421fe9['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':[_0x421fe9,{'text':_0x2101a8['to']('imageUploadProgress',_0x45dc03=>t('Loading\x20image...')+'\x20('+(_0x45dc03||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 _0x595b(_0x5197b0,_0x2125a1){const _0x3327b7=_0x3327();return _0x595b=function(_0x595b20,_0x3ac4e5){_0x595b20=_0x595b20-0x143;let _0x436503=_0x3327b7[_0x595b20];return _0x436503;},_0x595b(_0x5197b0,_0x2125a1);}const _0x533284=_0x595b;(function(_0x929168,_0x4d227c){const _0x5c856d=_0x595b,_0x15ac14=_0x929168();while(!![]){try{const _0x52092b=-parseInt(_0x5c856d(0x143))/0x1+parseInt(_0x5c856d(0x14a))/0x2+-parseInt(_0x5c856d(0x15f))/0x3+-parseInt(_0x5c856d(0x16f))/0x4+parseInt(_0x5c856d(0x15e))/0x5+parseInt(_0x5c856d(0x156))/0x6*(parseInt(_0x5c856d(0x162))/0x7)+parseInt(_0x5c856d(0x15c))/0x8*(parseInt(_0x5c856d(0x178))/0x9);if(_0x52092b===_0x4d227c)break;else _0x15ac14['push'](_0x15ac14['shift']());}catch(_0x168c2c){_0x15ac14['push'](_0x15ac14['shift']());}}}(_0x3327,0x48d60));import{View as _0x27e1b2}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x4925e3}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x159357}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2f6b31}from'./uploadcareimageeditformeditingview.js';function _0x3327(){const _0x356433=['nodeName','addMany','disconnect','apply','element','cdnUrl','length','18GRScFj','94994pIeaUd','focus','observe','ck-reset_all-excluded','fire','change:status','cancel','601206AuoRgr','_editingView','_focusableView','error','createCollection','uploading','add','_addErrorViewListeners','getFocusableElement','div','set','_addUploadcareImageEditorListeners','12sEyYqo','detail','toLowerCase','_items','setTemplate','once','608232fPYQUk','target','664025QniMgR','1012296uTzcmz','_loadingView','ck-uploadcare-form','1434755jWMDJZ','filter','ready','querySelector','addEventListener','uc-cloud-image-editor','_errorView','addedNodes','_setView','_waitForImageEditorComponent','status','retry','clear','1058536hSxERp','render'];_0x3327=function(){return _0x356433;};return _0x3327();}import{DialogFocusManagerView as _0x13e1d0}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x13e1d0{[_0x533284(0x159)];[_0x533284(0x160)];[_0x533284(0x168)];[_0x533284(0x14b)];[_0x533284(0x14c)];constructor(_0x18899f,_0xf96db6,_0xfced22){const _0x3afd85=_0x533284;super(_0x18899f),this[_0x3afd85(0x159)]=this[_0x3afd85(0x14e)](),this[_0x3afd85(0x160)]=new _0x4925e3(_0x18899f),this[_0x3afd85(0x168)]=new _0x159357(_0x18899f),this[_0x3afd85(0x14b)]=new _0x2f6b31(_0x18899f,_0xfced22),this[_0x3afd85(0x14c)]=new _0x27e1b2(_0x18899f),this[_0x3afd85(0x14c)][_0x3afd85(0x15a)](this[_0x3afd85(0x152)]()),this[_0x3afd85(0x154)](_0x3afd85(0x16c),_0xf96db6),this[_0x3afd85(0x15a)]({'tag':_0x3afd85(0x153),'attributes':{'class':['ck',_0x3afd85(0x146),_0x3afd85(0x161)],'tabindex':'-1'},'children':this[_0x3afd85(0x159)]}),this[_0x3afd85(0x16a)](),this[_0x3afd85(0x15b)](_0x3afd85(0x170),()=>{const _0x360f81=_0x3afd85;this[_0x360f81(0x16b)](this[_0x360f81(0x175)],_0x3893f5=>{const _0x5367a7=_0x360f81;this[_0x5367a7(0x155)](_0x3893f5);});}),this['on'](_0x3afd85(0x148),()=>{const _0x18d629=_0x3afd85;this[_0x18d629(0x16a)]();}),this[_0x3afd85(0x151)]();}[_0x533284(0x144)](){const _0x6a089e=_0x533284;this[_0x6a089e(0x175)][_0x6a089e(0x144)]();}[_0x533284(0x16a)](){const _0x1e95a6=_0x533284;switch(this[_0x1e95a6(0x159)][_0x1e95a6(0x16e)](),this[_0x1e95a6(0x16c)]){case _0x1e95a6(0x14f):this[_0x1e95a6(0x159)][_0x1e95a6(0x150)](this[_0x1e95a6(0x160)]);break;case _0x1e95a6(0x14d):this[_0x1e95a6(0x159)][_0x1e95a6(0x150)](this[_0x1e95a6(0x168)]);break;case _0x1e95a6(0x164):this[_0x1e95a6(0x159)][_0x1e95a6(0x172)]([this[_0x1e95a6(0x14b)],this[_0x1e95a6(0x14c)]]);}}[_0x533284(0x16b)](_0x1dfdaa,_0x2c8c55){const _0x41a7a0=_0x533284,_0x12ba82=_0x41a7a0(0x167),_0x57f9fa=_0x1dfdaa[_0x41a7a0(0x165)](_0x12ba82);if(_0x57f9fa)return _0x2c8c55(_0x57f9fa);const _0x5de88b=new MutationObserver(_0x5e429e=>{const _0x11df58=_0x41a7a0,_0x1c42be=_0x5e429e[_0x11df58(0x163)](_0x54b24c=>_0x54b24c[_0x11df58(0x15d)]===_0x1dfdaa&&_0x54b24c[_0x11df58(0x169)][_0x11df58(0x177)]>0x0&&_0x54b24c[_0x11df58(0x169)][0x0][_0x11df58(0x171)][_0x11df58(0x158)]()===_0x12ba82);_0x1c42be[_0x11df58(0x177)]&&(_0x5de88b[_0x11df58(0x173)](),_0x2c8c55(_0x1c42be[0x0][_0x11df58(0x169)][0x0]));});_0x5de88b[_0x41a7a0(0x145)](_0x1dfdaa,{'childList':!0x0,'subtree':!0x0});}[_0x533284(0x155)](_0xef865a){const _0x3a6b3a=_0x533284;_0xef865a[_0x3a6b3a(0x166)](_0x3a6b3a(0x174),_0x55248b=>{const _0x56fa81=_0x3a6b3a;this[_0x56fa81(0x147)](_0x56fa81(0x174),{'imageSrc':_0x55248b[_0x56fa81(0x157)][_0x56fa81(0x176)]});}),_0xef865a[_0x3a6b3a(0x166)](_0x3a6b3a(0x149),()=>{const _0x57b844=_0x3a6b3a;this[_0x57b844(0x147)](_0x57b844(0x149));});}[_0x533284(0x151)](){const _0xe07bb1=_0x533284;this[_0xe07bb1(0x168)]['on'](_0xe07bb1(0x16d),()=>{const _0x53982b=_0xe07bb1;this[_0x53982b(0x147)](_0x53982b(0x16d));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4978d6=_0x1746;(function(_0x25859f,_0x223d89){const _0x3f9f1a=_0x1746,_0x30a9be=_0x25859f();while(!![]){try{const _0x1959df=-parseInt(_0x3f9f1a(0x174))/0x1*(-parseInt(_0x3f9f1a(0x17c))/0x2)+-parseInt(_0x3f9f1a(0x177))/0x3+parseInt(_0x3f9f1a(0x179))/0x4*(parseInt(_0x3f9f1a(0x184))/0x5)+parseInt(_0x3f9f1a(0x16c))/0x6*(parseInt(_0x3f9f1a(0x186))/0x7)+parseInt(_0x3f9f1a(0x182))/0x8+-parseInt(_0x3f9f1a(0x175))/0x9*(-parseInt(_0x3f9f1a(0x170))/0xa)+parseInt(_0x3f9f1a(0x16e))/0xb*(-parseInt(_0x3f9f1a(0x176))/0xc);if(_0x1959df===_0x223d89)break;else _0x30a9be['push'](_0x30a9be['shift']());}catch(_0x4a984b){_0x30a9be['push'](_0x30a9be['shift']());}}}(_0x31b7,0xc07f0));import{Command as _0x2f05e1}from'ckeditor5/src/core.js';function _0x1746(_0x2dbdc8,_0x34b3ef){const _0x31b70f=_0x31b7();return _0x1746=function(_0x17460f,_0x1ed22b){_0x17460f=_0x17460f-0x165;let _0x312eb4=_0x31b70f[_0x17460f];return _0x312eb4;},_0x1746(_0x2dbdc8,_0x34b3ef);}import{Dialog as _0x47226d}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2023b9}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2afefa}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2f05e1{[_0x4978d6(0x16a)];static get[_0x4978d6(0x178)](){return[_0x47226d];}[_0x4978d6(0x180)];constructor(_0x2ef141){const _0x4d6df9=_0x4978d6;super(_0x2ef141),this[_0x4d6df9(0x16a)]=void 0x0,this[_0x4d6df9(0x180)]=_0x2afefa(_0x2ef141[_0x4d6df9(0x165)][_0x4d6df9(0x166)](_0x4d6df9(0x173))||[]),this[_0x4d6df9(0x169)]({'isActive':!0x1});}[_0x4978d6(0x17b)](){const _0x5e53ec=_0x4978d6,_0x278500=this[_0x5e53ec(0x181)][_0x5e53ec(0x172)][_0x5e53ec(0x17d)][_0x5e53ec(0x16d)][_0x5e53ec(0x185)]();this[_0x5e53ec(0x16b)]=this[_0x5e53ec(0x180)](_0x278500);}[_0x4978d6(0x168)](){const _0x89c15=_0x4978d6;this[_0x89c15(0x16a)]&&(this[_0x89c15(0x17e)](_0x89c15(0x183)),this[_0x89c15(0x16a)]=void 0x0);const _0x2a8784=this[_0x89c15(0x181)][_0x89c15(0x172)][_0x89c15(0x17d)][_0x89c15(0x16d)][_0x89c15(0x185)]();_0x2a8784&&(_0x2a8784['is'](_0x89c15(0x17f),_0x89c15(0x17a))||_0x2a8784['is'](_0x89c15(0x17f),_0x89c15(0x171)))&&(this[_0x89c15(0x16a)]=new _0x2023b9(this[_0x89c15(0x181)],this[_0x89c15(0x181)][_0x89c15(0x167)][_0x89c15(0x166)](_0x47226d),_0x2a8784),this[_0x89c15(0x16f)](_0x89c15(0x183))['to'](this[_0x89c15(0x16a)],_0x89c15(0x183)));}}function _0x31b7(){const _0xd4bbb8=['23xqjZJV','1818bGBBix','15676476eEyUiB','1014372zHkSpF','requires','28FmPMaF','imageBlock','refresh','128966kdKUmH','document','unbind','element','_isEditable','editor','3492624zNsDEP','isActive','271970tqTpQG','getSelectedElement','381283xflneu','config','get','plugins','execute','set','imageEditController','isEnabled','150PInzPb','selection','22VsRRzp','bind','3820VRkfRb','imageInline','model','uploadcare.allowExternalImagesEditing'];_0x31b7=function(){return _0xd4bbb8;};return _0x31b7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x166154=_0xa6a3;(function(_0x228187,_0x1e2a6d){const _0x492ebb=_0xa6a3,_0x1c9396=_0x228187();while(!![]){try{const _0xb29411=parseInt(_0x492ebb(0x1e0))/0x1*(parseInt(_0x492ebb(0x1d3))/0x2)+parseInt(_0x492ebb(0x1d9))/0x3*(-parseInt(_0x492ebb(0x1d8))/0x4)+parseInt(_0x492ebb(0x1e5))/0x5*(parseInt(_0x492ebb(0x1de))/0x6)+-parseInt(_0x492ebb(0x1e9))/0x7+-parseInt(_0x492ebb(0x1e1))/0x8+parseInt(_0x492ebb(0x1d5))/0x9*(parseInt(_0x492ebb(0x1d6))/0xa)+parseInt(_0x492ebb(0x1da))/0xb*(parseInt(_0x492ebb(0x1db))/0xc);if(_0xb29411===_0x1e2a6d)break;else _0x1c9396['push'](_0x1c9396['shift']());}catch(_0x2deee7){_0x1c9396['push'](_0x1c9396['shift']());}}}(_0x6966,0x4e20a));function _0x6966(){const _0x592d50=['1004647uKODmO','requires','258218UMpYNR','pluginName','54yqQCUV','531640oFpSII','uploadcareImageEdit','13360cVdGse','141yalNts','57508LylxLk','24BCCEYg','isPremiumPlugin','ImageEditing','320970JLICXc','commands','2nGwevF','165136AxTcWG','uploadcareImageReplace','UploadcareImageEditEditing','isOfficialPlugin','5Ajjrio','init','ImageUtils','add'];_0x6966=function(){return _0x592d50;};return _0x6966();}function _0xa6a3(_0x37ee4d,_0x2b520a){const _0x6966aa=_0x6966();return _0xa6a3=function(_0xa6a3f,_0x5ee3d4){_0xa6a3f=_0xa6a3f-0x1d2;let _0x3c5d85=_0x6966aa[_0xa6a3f];return _0x3c5d85;},_0xa6a3(_0x37ee4d,_0x2b520a);}import{Plugin as _0x4d3080}from'ckeditor5/src/core.js';import{Notification as _0x1297dc}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x4f371e}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x25b90a}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x50c6e5}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4d3080{static get[_0x166154(0x1d4)](){const _0x100a92=_0x166154;return _0x100a92(0x1e3);}static get[_0x166154(0x1d2)](){const _0x365ec7=_0x166154;return[_0x50c6e5,_0x1297dc,_0x365ec7(0x1e7),_0x365ec7(0x1dd)];}static get[_0x166154(0x1e4)](){return!0x0;}static get[_0x166154(0x1dc)](){return!0x0;}[_0x166154(0x1e6)](){const _0x1cf986=_0x166154,{editor:_0x24d7e1}=this;_0x24d7e1[_0x1cf986(0x1df)][_0x1cf986(0x1e8)](_0x1cf986(0x1d7),new _0x4f371e(_0x24d7e1)),_0x24d7e1[_0x1cf986(0x1df)][_0x1cf986(0x1e8)](_0x1cf986(0x1e2),new _0x25b90a(_0x24d7e1));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x34fbef}from'ckeditor5/src/core.js';import{ButtonView as _0x3cd0ec}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x359900}from'ckeditor5/src/icons.js';import{createElement as _0x357e9a}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 _0x34fbef{['_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 _0x350f88=this['editor'];_0x350f88['ui']['componentFactory']['add']('uploadcareImageEdit',_0x216299=>{const _0x6b4877=_0x350f88['commands']['get']('uploadcareImageEdit'),_0x2a546a=new _0x3cd0ec(_0x216299),t=_0x216299['t'];return _0x2a546a['set']({'icon':_0x359900,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2a546a['bind']('isEnabled')['to'](_0x6b4877),_0x2a546a['bind']('isOn')['to'](_0x6b4877,'isActive'),this['listenTo'](_0x2a546a,'execute',()=>{_0x350f88['execute']('uploadcareImageEdit'),_0x350f88['editing']['view']['focus']();}),_0x2a546a;}),this['_initConfig']();}['_initConfig'](){const _0xe00a60=_0x357e9a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xe00a60),this['listenTo'](this['editor'],'destroy',()=>{_0xe00a60['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3ff0(){const _0x375336=['model','setAttributes','selection','imageInline','element','4bjfMnf','isEnabled','execute','2293359JriIoy','getSelectedElement','459930gabhmD','27iKNDOw','605970zZidIx','1081302kZwJxC','editor','refresh','523912bufVaI','sizes','document','imageBlock','5342469cXTkNb','5rWruJA','91Otsihs','removeAttribute','srcset','3442122tLdUaM','change'];_0x3ff0=function(){return _0x375336;};return _0x3ff0();}const _0x3ba471=_0x17bc;(function(_0x3228c1,_0x353cb4){const _0x2b6ece=_0x17bc,_0x200694=_0x3228c1();while(!![]){try{const _0x42cad4=parseInt(_0x2b6ece(0x1c8))/0x1+parseInt(_0x2b6ece(0x1c9))/0x2+parseInt(_0x2b6ece(0x1c4))/0x3*(-parseInt(_0x2b6ece(0x1c1))/0x4)+parseInt(_0x2b6ece(0x1b6))/0x5*(parseInt(_0x2b6ece(0x1ba))/0x6)+-parseInt(_0x2b6ece(0x1b7))/0x7*(parseInt(_0x2b6ece(0x1cc))/0x8)+parseInt(_0x2b6ece(0x1c7))/0x9*(-parseInt(_0x2b6ece(0x1c6))/0xa)+parseInt(_0x2b6ece(0x1b5))/0xb;if(_0x42cad4===_0x353cb4)break;else _0x200694['push'](_0x200694['shift']());}catch(_0x38333f){_0x200694['push'](_0x200694['shift']());}}}(_0x3ff0,0x6e666));import{Command as _0x27db88}from'ckeditor5/src/core.js';function _0x17bc(_0x1bbabc,_0x233cdd){const _0x3ff0be=_0x3ff0();return _0x17bc=function(_0x17bc8e,_0x32e536){_0x17bc8e=_0x17bc8e-0x1b5;let _0x130ea2=_0x3ff0be[_0x17bc8e];return _0x130ea2;},_0x17bc(_0x1bbabc,_0x233cdd);}export class UploadcareImageReplaceCommand extends _0x27db88{[_0x3ba471(0x1cb)](){const _0x1c9e8a=_0x3ba471,_0x37a3fb=this[_0x1c9e8a(0x1ca)][_0x1c9e8a(0x1bc)][_0x1c9e8a(0x1ce)][_0x1c9e8a(0x1be)][_0x1c9e8a(0x1c5)]();this[_0x1c9e8a(0x1c2)]=Boolean(_0x37a3fb&&(_0x37a3fb['is'](_0x1c9e8a(0x1c0),_0x1c9e8a(0x1cf))||_0x37a3fb['is'](_0x1c9e8a(0x1c0),_0x1c9e8a(0x1bf))));}[_0x3ba471(0x1c3)](_0x3a245f){const _0x40d8a9=_0x3ba471,_0x2dd499=this[_0x40d8a9(0x1ca)][_0x40d8a9(0x1bc)][_0x40d8a9(0x1ce)][_0x40d8a9(0x1be)][_0x40d8a9(0x1c5)]();this[_0x40d8a9(0x1ca)][_0x40d8a9(0x1bc)][_0x40d8a9(0x1bb)](_0x3ace1e=>{const _0x379f7e=_0x40d8a9;_0x3ace1e[_0x379f7e(0x1bd)](_0x3a245f,_0x2dd499),_0x3ace1e[_0x379f7e(0x1b8)](_0x379f7e(0x1b9),_0x2dd499),_0x3ace1e[_0x379f7e(0x1b8)](_0x379f7e(0x1cd),_0x2dd499);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5774(_0x3db882,_0x126fe3){var _0x5ac8c4=_0x5ac8();return _0x5774=function(_0x577433,_0x492277){_0x577433=_0x577433-0x9c;var _0x3912fd=_0x5ac8c4[_0x577433];return _0x3912fd;},_0x5774(_0x3db882,_0x126fe3);}var _0x9d476f=_0x5774;(function(_0x2f11b2,_0x1d539c){var _0x5528af=_0x5774,_0x11c06a=_0x2f11b2();while(!![]){try{var _0x507a94=-parseInt(_0x5528af(0x9d))/0x1*(-parseInt(_0x5528af(0xa5))/0x2)+-parseInt(_0x5528af(0xa8))/0x3*(-parseInt(_0x5528af(0x9f))/0x4)+-parseInt(_0x5528af(0xa1))/0x5*(-parseInt(_0x5528af(0xa0))/0x6)+-parseInt(_0x5528af(0xa7))/0x7+parseInt(_0x5528af(0xa9))/0x8+-parseInt(_0x5528af(0x9c))/0x9*(parseInt(_0x5528af(0xaa))/0xa)+-parseInt(_0x5528af(0xa2))/0xb;if(_0x507a94===_0x1d539c)break;else _0x11c06a['push'](_0x11c06a['shift']());}catch(_0x25cdea){_0x11c06a['push'](_0x11c06a['shift']());}}}(_0x5ac8,0x88ab0));import{Plugin as _0x5098c8}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x2a5f25}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x5ac8(){var _0x1cc7a6=['7206fuCTtH','1645PBJwos','18696700SYbbcn','UploadcareImageEdit','isOfficialPlugin','476tyheHX','requires','22603eOArVm','317514quCQop','7987912pGqCav','90wXIKRb','pluginName','364113TWyzsy','1624sMshSb','isPremiumPlugin','32xzhAUl'];_0x5ac8=function(){return _0x1cc7a6;};return _0x5ac8();}import{UploadcareImageEditUI as _0x1d92cb}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x5098c8{static get[_0x9d476f(0xab)](){var _0x547034=_0x9d476f;return _0x547034(0xa3);}static get[_0x9d476f(0xa6)](){return[_0x2a5f25,_0x1d92cb];}static get[_0x9d476f(0xa4)](){return!0x0;}static get[_0x9d476f(0x9e)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33d8f1=_0x4e59;(function(_0x39a8c0,_0xbb5b42){const _0x33329d=_0x4e59,_0x17799b=_0x39a8c0();while(!![]){try{const _0x4fbad0=parseInt(_0x33329d(0x207))/0x1+parseInt(_0x33329d(0x21c))/0x2+-parseInt(_0x33329d(0x20f))/0x3*(-parseInt(_0x33329d(0x200))/0x4)+parseInt(_0x33329d(0x217))/0x5+parseInt(_0x33329d(0x1f6))/0x6+-parseInt(_0x33329d(0x210))/0x7*(parseInt(_0x33329d(0x1e3))/0x8)+-parseInt(_0x33329d(0x1d4))/0x9;if(_0x4fbad0===_0xbb5b42)break;else _0x17799b['push'](_0x17799b['shift']());}catch(_0x4891b5){_0x17799b['push'](_0x17799b['shift']());}}}(_0x309e,0x96673));import{Plugin as _0x19240f}from'ckeditor5/src/core.js';import{IconDropbox as _0x4180a4,IconFacebook as _0x5e2fee,IconGoogleDrive as _0x4787a4,IconGooglePhotos as _0x2fc8a4,IconUploadcareImageUpload as _0x13bb16,IconUploadcareLink as _0x11a3d0,IconOneDrive as _0x1fe500}from'ckeditor5/src/icons.js';import{ButtonView as _0x5cdcf4,MenuBarMenuListItemButtonView as _0x48f430}from'ckeditor5/src/ui.js';function _0x309e(){const _0x44afc9=['_showLicenseError','config','editor','3110982TrKrku','Local','Dropbox','push','execute','uploadcareLicenseKeyValid','_getIntegrationKey','entries','Replace','uploadcareLicenseKeyTrialLimit','1263404bQxEoW','has','uploadcareLicenseKeyDomainLimit','isImageSelected','uploadcare.uploader.sourceList','map','destroy','980859oYiRyN','GPhotos','shortText','ImageInsertUI','uploadcare','uploadcareLicenseKeyNotAllowed','isEnabled','uploadcareLicenseKeyExpired','3FispYb','406vtxSrX','locale','_licenseKeyCheckInterval','isOfficialPlugin','GDrive','featureNotAllowed','UploadcareUI','797990MbupKw','uploadcareLicenseKeyUsageLimit','afterInit','bind','type','601134NZiqSF','text','licenseKey','domainLimit','uploadcareLicenseKeyInvalid','reduce','Facebook','_createButton','5639679CKlSHQ','_createMenuBarButtons','_createToolbarButton','_createDropdownButtons','get','evaluationLimit','icon','expired','plugins','_normalizeConfigSourceList','URL','upload','tooltip','forEach','Insert','142440ZCMZcm','init','trialLimit','pluginName','label','assetManager','isPremiumPlugin','OneDrive','invalid','usageLimit','url','withText','uploadcareLicenseKeyEvaluationLimit','commands','registerIntegration','Uploadcare'];_0x309e=function(){return _0x44afc9;};return _0x309e();}import{UploadcareSource as _0x300621}from'./uploadcareconfig.js';import{getTranslation as _0x10c298}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x4e59(_0x4ab5f7,_0x54e5b5){const _0x309e2d=_0x309e();return _0x4e59=function(_0x4e5980,_0x35406f){_0x4e5980=_0x4e5980-0x1d4;let _0x513133=_0x309e2d[_0x4e5980];return _0x513133;},_0x4e59(_0x4ab5f7,_0x54e5b5);}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x19240f{[_0x33d8f1(0x21e)];[_0x33d8f1(0x212)];static get[_0x33d8f1(0x1e6)](){const _0x4fede1=_0x33d8f1;return _0x4fede1(0x216);}static get[_0x33d8f1(0x213)](){return!0x0;}static get[_0x33d8f1(0x1e9)](){return!0x0;}[_0x33d8f1(0x1e4)](){const _0x43a606=_0x33d8f1;this[_0x43a606(0x21e)]=this[_0x43a606(0x1f5)][_0x43a606(0x1f4)][_0x43a606(0x1d8)](_0x43a606(0x21e));const _0x42e84d=this[_0x43a606(0x1f5)];this[_0x43a606(0x212)]=setInterval(()=>{const _0x147522=_0x43a606;let _0x59c1dd;for(const _0x2bb3e8 in _0x42e84d){const _0x825564=_0x2bb3e8,_0x189ffc=_0x42e84d[_0x825564];if(_0x147522(0x1fb)==_0x189ffc||_0x147522(0x220)==_0x189ffc||_0x147522(0x20e)==_0x189ffc||_0x147522(0x202)==_0x189ffc||_0x147522(0x20c)==_0x189ffc||_0x147522(0x1ef)==_0x189ffc||_0x147522(0x1ff)==_0x189ffc||_0x147522(0x218)==_0x189ffc){delete _0x42e84d[_0x825564],_0x59c1dd=_0x189ffc,clearInterval(this[_0x147522(0x212)]),this[_0x147522(0x212)]=void 0x0;break;}}_0x147522(0x220)==_0x59c1dd&&_0x42e84d[_0x147522(0x1f3)](_0x147522(0x1eb)),_0x147522(0x20e)==_0x59c1dd&&_0x42e84d[_0x147522(0x1f3)](_0x147522(0x1db)),_0x147522(0x202)==_0x59c1dd&&_0x42e84d[_0x147522(0x1f3)](_0x147522(0x21f)),_0x147522(0x20c)==_0x59c1dd&&_0x42e84d[_0x147522(0x1f3)](_0x147522(0x215),_0x147522(0x1f2)),_0x147522(0x1ef)==_0x59c1dd&&_0x42e84d[_0x147522(0x1f3)](_0x147522(0x1d9)),_0x147522(0x1ff)==_0x59c1dd&&_0x42e84d[_0x147522(0x1f3)](_0x147522(0x1e5)),_0x147522(0x218)==_0x59c1dd&&_0x42e84d[_0x147522(0x1f3)](_0x147522(0x1ec));},0x3e8);}[_0x33d8f1(0x219)](){const _0x281f97=_0x33d8f1,{editor:_0x1f3511}=this,_0x5eb6b1=_0x1f3511[_0x281f97(0x1f0)][_0x281f97(0x1d8)](_0x281f97(0x20b));if(!_0x5eb6b1)return;const _0xe558d2=this[_0x281f97(0x1dd)](_0x1f3511[_0x281f97(0x1f4)][_0x281f97(0x1d8)](_0x281f97(0x204)))[_0x281f97(0x221)]((_0x20f525,_0x47101b)=>{const _0x5564d9=_0x281f97,_0x22bb77=this[_0x5564d9(0x1fc)](_0x47101b[_0x5564d9(0x21b)]);return _0x20f525[_0x22bb77]||(_0x20f525[_0x22bb77]=[]),_0x20f525[_0x22bb77][_0x5564d9(0x1f9)](_0x47101b),_0x20f525;},{});_0x1f3511[_0x281f97(0x1dc)][_0x281f97(0x201)](_0x281f97(0x20a))&&_0x1f3511[_0x281f97(0x1f0)][_0x281f97(0x1d8)](_0x281f97(0x20b))&&Object[_0x281f97(0x1fd)](_0xe558d2)[_0x281f97(0x1e1)](([_0x37b5b1,_0x3642a0])=>{const _0x380172=_0x281f97;_0x1f3511[_0x380172(0x1dc)][_0x380172(0x1d8)](_0x380172(0x20a))[_0x380172(0x1f1)]({'name':_0x37b5b1,'observable':()=>_0x5eb6b1,'buttonViewCreator':()=>this[_0x380172(0x1d6)](_0x3642a0),'formViewCreator':()=>this[_0x380172(0x1d7)](_0x3642a0),'menuBarButtonViewCreator':()=>this[_0x380172(0x1d5)](_0x3642a0),'override':_0x380172(0x1e8)!==_0x37b5b1});});}[_0x33d8f1(0x206)](){const _0xd5afd1=_0x33d8f1;super[_0xd5afd1(0x206)](),this[_0xd5afd1(0x212)]&&clearInterval(this[_0xd5afd1(0x212)]);}[_0x33d8f1(0x1dd)](_0x1a9c58){const _0x4cb1e3=_0x33d8f1,{locale:_0xd1e9c7}=this[_0x4cb1e3(0x1f5)];return _0x1a9c58[_0x4cb1e3(0x205)](_0x18bc65=>{const _0x502442=_0x4cb1e3,_0x4b7a40=_0x10c298(_0xd1e9c7,_0x18bc65,_0x502442(0x1e2));switch(_0x18bc65){case _0x300621[_0x502442(0x1f7)]:return{'icon':_0x13bb16,'type':_0x300621[_0x502442(0x1f7)],..._0x4b7a40};case _0x300621[_0x502442(0x1de)]:return{'icon':_0x11a3d0,'type':_0x300621[_0x502442(0x1de)],..._0x4b7a40};case _0x300621[_0x502442(0x1f8)]:return{'icon':_0x4180a4,'type':_0x300621[_0x502442(0x1f8)],..._0x4b7a40};case _0x300621[_0x502442(0x222)]:return{'icon':_0x5e2fee,'type':_0x300621[_0x502442(0x222)],..._0x4b7a40};case _0x300621[_0x502442(0x214)]:return{'icon':_0x4787a4,'type':_0x300621[_0x502442(0x214)],..._0x4b7a40};case _0x300621[_0x502442(0x208)]:return{'icon':_0x2fc8a4,'type':_0x300621[_0x502442(0x208)],..._0x4b7a40};case _0x300621[_0x502442(0x1ea)]:return{'icon':_0x1fe500,'type':_0x300621[_0x502442(0x1ea)],..._0x4b7a40};}});}[_0x33d8f1(0x1fc)](_0x11378f){const _0x3b27e7=_0x33d8f1;switch(_0x11378f){case _0x300621[_0x3b27e7(0x1f7)]:return _0x3b27e7(0x1df);case _0x300621[_0x3b27e7(0x1de)]:return _0x3b27e7(0x1ed);default:return _0x3b27e7(0x1e8);}}[_0x33d8f1(0x223)](_0x100134,_0x7bf212){const _0x32e032=_0x33d8f1,_0x3cc821=this[_0x32e032(0x1f5)],_0x11caf0=new _0x100134(_0x3cc821[_0x32e032(0x211)]),_0x17eaaa=_0x3cc821[_0x32e032(0x1f0)][_0x32e032(0x1d8)](_0x32e032(0x20b));return _0x11caf0[_0x32e032(0x21a)](_0x32e032(0x20d))['to'](_0x17eaaa),_0x11caf0['on'](_0x32e032(0x1fa),()=>{const _0x5b5778=_0x32e032;_0x17eaaa[_0x5b5778(0x1fa)](_0x7bf212);}),_0x11caf0;}[_0x33d8f1(0x1d6)](_0x2a383d){const _0x1f12ee=_0x33d8f1,{locale:_0x1aa608}=this[_0x1f12ee(0x1f5)],_0x3154b1=this[_0x1f12ee(0x1f5)][_0x1f12ee(0x1dc)][_0x1f12ee(0x1d8)](_0x1f12ee(0x20a)),_0x36cd10=_0x2a383d[0x0],_0x2fd9de=this[_0x1f12ee(0x223)](_0x5cdcf4,_0x36cd10[_0x1f12ee(0x21b)]);return _0x2fd9de[_0x1f12ee(0x1da)]=_0x36cd10[_0x1f12ee(0x1da)],_0x2fd9de[_0x1f12ee(0x21a)](_0x1f12ee(0x1e7))['to'](_0x3154b1,_0x1f12ee(0x203),_0x18547d=>_0x10c298(_0x1aa608,_0x36cd10[_0x1f12ee(0x21b)],_0x18547d?_0x1f12ee(0x1fe):_0x1f12ee(0x1e2))[_0x1f12ee(0x21d)]),_0x2fd9de[_0x1f12ee(0x1e0)]=!0x0,_0x2fd9de;}[_0x33d8f1(0x1d7)](_0x14a0ca){const _0x4f15f4=_0x33d8f1,{locale:_0x53316f}=this[_0x4f15f4(0x1f5)],_0x12702b=this[_0x4f15f4(0x1f5)][_0x4f15f4(0x1dc)][_0x4f15f4(0x1d8)](_0x4f15f4(0x20a));return _0x14a0ca[_0x4f15f4(0x205)](_0x4c9304=>{const _0x1b559a=_0x4f15f4,_0x51002b=this[_0x1b559a(0x223)](_0x5cdcf4,_0x4c9304[_0x1b559a(0x21b)]);return _0x51002b[_0x1b559a(0x1ee)]=!0x0,_0x51002b[_0x1b559a(0x1da)]=_0x4c9304[_0x1b559a(0x1da)],_0x51002b[_0x1b559a(0x21a)](_0x1b559a(0x1e7))['to'](_0x12702b,_0x1b559a(0x203),_0x30213c=>_0x10c298(_0x53316f,_0x4c9304[_0x1b559a(0x21b)],_0x30213c?_0x1b559a(0x1fe):_0x1b559a(0x1e2))[_0x1b559a(0x21d)]),_0x51002b;});}[_0x33d8f1(0x1d5)](_0x170b75){const _0xd49bba=_0x33d8f1;return _0x170b75[_0xd49bba(0x205)](_0x1be852=>{const _0x863967=_0xd49bba,_0x1a4b58=this[_0x863967(0x223)](_0x48f430,_0x1be852[_0x863967(0x21b)]);return _0x1a4b58[_0x863967(0x1da)]=_0x1be852[_0x863967(0x1da)],_0x1a4b58[_0x863967(0x1e7)]=_0x1be852[_0x863967(0x209)],_0x1a4b58;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x424bff}from'ckeditor5/src/core.js';import{FileRepository as _0x5d545d}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2018e7}from'./uploadcareediting.js';import{UploadUtils as _0x4effca}from'./utils/uploadutils.js';import{getImageUrls as _0x1e9a6c}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x424bff{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5d545d,_0x2018e7];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4bf0c7=this['editor'];if(!!!_0x4bf0c7['config']['get']('uploadcare'))return;_0x4bf0c7['plugins']['get'](_0x5d545d)['createUploadAdapter']=_0x8531b5=>new k(_0x8531b5,_0x4bf0c7),_0x4bf0c7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1e778f,{imageElement:_0x44ce9e,data:_0x2c9ae4})=>{_0x4bf0c7['model']['change'](_0x33865b=>{_0x33865b['setAttribute']('uploadcareImageId',_0x2c9ae4['uploadcareImageId'],_0x44ce9e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5c9550,_0x420738){this['loader']=_0x5c9550,this['editor']=_0x420738,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x38385c=await this['loader']['file'];return _0x4effca['upload']({'file':_0x38385c,'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':_0x3ca11c=>{_0x3ca11c&&_0x3ca11c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3ca11c['value']);}})['then'](async _0x4ae2a1=>{const {imageFallbackUrl:_0x868b5d,imageSources:_0x218fd6}=_0x1e9a6c(_0x4ae2a1['cdnUrl'],_0x4ae2a1['imageInfo']['width']);return{'uploadcareImageId':_0x4ae2a1['uuid'],'default':_0x868b5d,'sources':_0x218fd6};})['catch'](()=>{const _0x3a1ab2=t('Cannot\x20upload\x20file:')+('\x20'+_0x38385c['name']+'.');return Promise['reject'](_0x3a1ab2);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x458d9f}from'../uploadcareconfig.js';export function getTranslation(_0x3c391a,_0x29166c,_0x4dd0a5){const t=_0x3c391a['t'],_0x5107f3=_0x3c391a['t'];switch(_0x29166c){case _0x458d9f['Local']:return{'text':_0x5107f3('Insert'===_0x4dd0a5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5107f3('From\x20computer')};case _0x458d9f['URL']:return{'text':'Insert'===_0x4dd0a5?_0x5107f3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5107f3('Via\x20URL')};case _0x458d9f['Dropbox']:return{'text':t('Insert'===_0x4dd0a5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x458d9f['Facebook']:return{'text':t('Insert'===_0x4dd0a5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x458d9f['GDrive']:return{'text':t('Insert'===_0x4dd0a5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x458d9f['GPhotos']:return{'text':t('Insert'===_0x4dd0a5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x458d9f['OneDrive']:return{'text':t('Insert'===_0x4dd0a5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x29166c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x1923ec=_0x11f8;(function(_0x2256f1,_0x475e00){var _0x22ec13=_0x11f8,_0xdf744=_0x2256f1();while(!![]){try{var _0x4ab982=parseInt(_0x22ec13(0xb1))/0x1+-parseInt(_0x22ec13(0xba))/0x2*(-parseInt(_0x22ec13(0xb6))/0x3)+parseInt(_0x22ec13(0xc0))/0x4+-parseInt(_0x22ec13(0xaf))/0x5+-parseInt(_0x22ec13(0xbf))/0x6*(parseInt(_0x22ec13(0xb5))/0x7)+parseInt(_0x22ec13(0xbc))/0x8*(-parseInt(_0x22ec13(0xae))/0x9)+parseInt(_0x22ec13(0xb2))/0xa;if(_0x4ab982===_0x475e00)break;else _0xdf744['push'](_0xdf744['shift']());}catch(_0x469303){_0xdf744['push'](_0xdf744['shift']());}}}(_0x5995,0x901e4));import{FocusTracker as _0x1649aa}from'ckeditor5/src/utils.js';function _0x11f8(_0x358d17,_0x3a78a3){var _0x59959d=_0x5995();return _0x11f8=function(_0x11f863,_0x1def94){_0x11f863=_0x11f863-0xae;var _0x273103=_0x59959d[_0x11f863];return _0x273103;},_0x11f8(_0x358d17,_0x3a78a3);}function _0x5995(){var _0x49fc37=['94305Fbphoo','focusTracker','191512sRYAWV','16451830BvdyRJ','bindTemplate','fire','143668AGDDzX','3dwDNFl','createCollection','div','focusCycler','375058FjWiin','forwardCycle','632AmOrLY','true','getFocusableElement','282qHqcvz','1675240CYPWcn','99027bDdNrG'];_0x5995=function(){return _0x49fc37;};return _0x5995();}import{View as _0x2ffdba,FocusCycler as _0x49ce94}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x2ffdba{[_0x1923ec(0xb0)];[_0x1923ec(0xb9)];constructor(_0x44d166){var _0x20f6e0=_0x1923ec;super(_0x44d166),this[_0x20f6e0(0xb0)]=new _0x1649aa(),this[_0x20f6e0(0xb9)]=new _0x49ce94({'focusables':this[_0x20f6e0(0xb7)](),'focusTracker':this[_0x20f6e0(0xb0)]});}[_0x1923ec(0xbe)](){var _0x53de51=_0x1923ec;return{'tag':_0x53de51(0xb8),'attributes':{'aria-hidden':_0x53de51(0xbd),'tabindex':'0'},'on':{'focus':this[_0x53de51(0xb3)]['to'](()=>{var _0x3e58ee=_0x53de51;this[_0x3e58ee(0xb9)][_0x3e58ee(0xb4)](_0x3e58ee(0xbb));})}};}}
|